Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(geo): add modularity for search and direction #1669

Merged
merged 6 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
},
"common": {
"root": "packages/common",
"sourceRoot": "packages/common/src",
"sourceRoot": "packages/common",
"projectType": "library",
"prefix": "igo",
"schematics": {
Expand Down
30 changes: 16 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { MatButtonModule } from '@angular/material/button';

import { AuthService } from '@igo2/auth';
import { IconSvg, IgoIconComponent, MICROSOFT_ICON } from '@igo2/common';
import { IconSvg, IgoIconComponent, MICROSOFT_ICON } from '@igo2/common/icon';
import { ConfigService } from '@igo2/core/config';
import { IgoLanguageModule } from '@igo2/core/language';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { MatButtonModule } from '@angular/material/button';

import { AuthService } from '@igo2/auth';
import { IconSvg, IgoIconComponent, MICROSOFT_ICON } from '@igo2/common';
import { IconSvg, IgoIconComponent, MICROSOFT_ICON } from '@igo2/common/icon';
import { ConfigService } from '@igo2/core/config';
import { IgoLanguageModule } from '@igo2/core/language';

Expand Down
1 change: 1 addition & 0 deletions packages/common/action/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/public_api';
1 change: 1 addition & 0 deletions packages/common/action/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import { MatIconModule } from '@angular/material/icon';
import { MatListModule } from '@angular/material/list';
import { MatTooltipModule } from '@angular/material/tooltip';

import { IgoIconComponent } from '@igo2/common/icon';
import { IgoLanguageModule } from '@igo2/core/language';

import { BehaviorSubject, Subscription, isObservable } from 'rxjs';

import { IgoIconComponent } from '../../icons';
import { Action } from '../shared/action.interfaces';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../../../../core/src/style/partial/media';
@import '../../../../core/src/style/partial/media';

$igo-actionbar-item-height: 46px;
$igo-actionbar-item-padding: 3px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ import {
} from '@angular/material/menu';
import { MatTooltipModule } from '@angular/material/tooltip';

import { EntityStoreWatcher } from '@igo2/common/entity';
import { IgoLanguageModule } from '@igo2/core/language';
import { Media, MediaService } from '@igo2/core/media';

import { BehaviorSubject } from 'rxjs';

import { EntityStoreWatcher } from '../../entity';
import { ActionbarMode } from '../shared/action.enums';
import { Action } from '../shared/action.interfaces';
import { ActionStore } from '../shared/store';
Expand Down
4 changes: 4 additions & 0 deletions packages/common/action/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export * from './shared';
export * from './action.module';
export * from './actionbar/actionbar.module';
export * from './actionbar/actionbar.component';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Observable } from 'rxjs';
import { IconSvg } from '@igo2/common/icon';

import { IconSvg } from '../../icons';
import { Observable } from 'rxjs';

export interface Action {
id: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { EntityStore } from '../../entity';
import { EntityStore } from '@igo2/common/entity';

import { Action } from './action.interfaces';

/**
Expand Down
1 change: 1 addition & 0 deletions packages/common/backdrop/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/public_api';
1 change: 1 addition & 0 deletions packages/common/backdrop/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../../../core/src/style/partial/media';
@import '../../../core/src/style/partial/media';

:host > div {
position: absolute;
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './backdrop.module';
export * from './backdrop.component';
1 change: 1 addition & 0 deletions packages/common/badge/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/public_api';
1 change: 1 addition & 0 deletions packages/common/badge/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './badge-icon.directive';
export * from './badge-icon.module';
1 change: 1 addition & 0 deletions packages/common/clickout/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/public_api';
1 change: 1 addition & 0 deletions packages/common/clickout/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './clickout.directive';
export * from './clickout.module';
1 change: 1 addition & 0 deletions packages/common/clone/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/public_api';
1 change: 1 addition & 0 deletions packages/common/clone/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 2 additions & 0 deletions packages/common/clone/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './clone.pipe';
export * from './clone.module';
1 change: 1 addition & 0 deletions packages/common/collapsible/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/public_api';
1 change: 1 addition & 0 deletions packages/common/collapsible/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { CollapseDirective } from './collapse.directive';
import { CollapsibleComponent } from './collapsible.component';

export * from './collapsible.component';
export * from './collapsible.module';
export * from './collapse.directive';

export const COLLAPSIBLE_DIRECTIVES = [
Expand Down
1 change: 1 addition & 0 deletions packages/common/color/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/public_api';
1 change: 1 addition & 0 deletions packages/common/color/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './color-picker-form-field.component';
export * from './color-picker-form-field.module';
1 change: 1 addition & 0 deletions packages/common/color/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './color-picker-form-field';
1 change: 1 addition & 0 deletions packages/common/confirm-dialog/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/public_api';
1 change: 1 addition & 0 deletions packages/common/confirm-dialog/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './confirm-dialog.module';
export * from './confirm-dialog.component';
export * from './confirm-dialog.interface';
export * from './confirm-dialog.service';
1 change: 1 addition & 0 deletions packages/common/context-menu/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/public_api';
1 change: 1 addition & 0 deletions packages/common/context-menu/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ContextMenuDirective } from './context-menu.directive';
import { LongPressDirective } from './long-press.directive';

export * from './context-menu.module';
export * from './context-menu.directive';
export * from './long-press.directive';

Expand Down
1 change: 1 addition & 0 deletions packages/common/custom-html/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/public_api';
1 change: 1 addition & 0 deletions packages/common/custom-html/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { CustomHtmlComponent } from './custom-html.component';
import { SanitizeHtmlPipe } from './custom-html.pipe';

export * from './custom-html.module';
export * from './custom-html.component';
export * from './custom-html.pipe';

Expand Down
1 change: 1 addition & 0 deletions packages/common/dom/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/public_api';
1 change: 1 addition & 0 deletions packages/common/dom/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './dom.module';
export * from './dom.service';
export * from './dom.interfaces';
1 change: 1 addition & 0 deletions packages/common/drag-drop/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/public_api';
1 change: 1 addition & 0 deletions packages/common/drag-drop/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './drag-drop.module';
export * from './drag-drop.directive';
1 change: 1 addition & 0 deletions packages/common/dynamic-component/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/public_api';
1 change: 1 addition & 0 deletions packages/common/dynamic-component/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
4 changes: 4 additions & 0 deletions packages/common/dynamic-component/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export * from './shared';
export * from './dynamic-component.module';
export * from './dynamic-outlet/dynamic-outlet.component';
export * from './dynamic-outlet/dynamic-outlet.module';
1 change: 1 addition & 0 deletions packages/common/entity/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/public_api';
1 change: 1 addition & 0 deletions packages/common/entity/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 2 additions & 0 deletions packages/common/entity/src/entity-selector/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './entity-selector.module';
export * from './entity-selector.component';
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './entity-table-paginator.module';
export * from './entity-table-paginator.component';
export * from './entity-table-paginator.interface';
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,16 @@ import { MatSortModule } from '@angular/material/sort';
import { MatTableDataSource, MatTableModule } from '@angular/material/table';
import { MatTooltipModule } from '@angular/material/tooltip';

import { SanitizeHtmlPipe } from '@igo2/common/custom-html';
import { ImageErrorDirective, SecureImagePipe } from '@igo2/common/image';
import { StopPropagationDirective } from '@igo2/common/stop-propagation';
import { IgoLanguageModule } from '@igo2/core/language';
import { StringUtils } from '@igo2/utils';

import { default as moment } from 'moment';
import { BehaviorSubject, Observable, Subscription } from 'rxjs';
import { debounceTime, map } from 'rxjs/operators';

import { SanitizeHtmlPipe } from '../../custom-html/custom-html.pipe';
import { ImageErrorDirective } from '../../image/image-error.directive';
import { SecureImagePipe } from '../../image/secure-image.pipe';
import { StopPropagationDirective } from '../../stop-propagation/stop-propagation.directive';
import { EntityTablePaginatorComponent } from '../entity-table-paginator/entity-table-paginator.component';
import { EntityTablePaginatorOptions } from '../entity-table-paginator/entity-table-paginator.interface';
import {
Expand Down
2 changes: 2 additions & 0 deletions packages/common/entity/src/entity-table/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './entity-table.module';
export * from './entity-table.component';
20 changes: 20 additions & 0 deletions packages/common/entity/src/entity.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { NgModule } from '@angular/core';

import { EntitySelectorComponent } from './entity-selector';
import { EntityTableComponent } from './entity-table';
import { EntityTablePaginatorComponent } from './entity-table-paginator';

export const ENTITY_DIRECTIVES = [
EntitySelectorComponent,
EntityTableComponent,
EntityTablePaginatorComponent
] as const;

/**
* @deprecated import the components directly or ENTITY_DIRECTIVES for every components/directives
*/
@NgModule({
imports: [...ENTITY_DIRECTIVES],
exports: [...ENTITY_DIRECTIVES]
})
export class IgoEntityModule {}
5 changes: 5 additions & 0 deletions packages/common/entity/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export * from './shared';
export * from './entity.module';
export * from './entity-selector';
export * from './entity-table';
export * from './entity-table-paginator';
1 change: 1 addition & 0 deletions packages/common/environment/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/public_api';
1 change: 1 addition & 0 deletions packages/common/environment/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions packages/common/flexible/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/public_api';
1 change: 1 addition & 0 deletions packages/common/flexible/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../../../core/src/style/partial/core.variables';
@import '../../../core/src/style/partial/core.variables';

:host {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './flexible.module';
export * from './flexible.type';
export * from './flexible.component';
1 change: 1 addition & 0 deletions packages/common/form/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/public_api';
1 change: 1 addition & 0 deletions packages/common/form/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading
Loading