@igo2/common 17.0.0 → 17.0.1-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action/actionbar/actionbar-item.component.d.ts +1 -3
- package/action/shared/action.interfaces.d.ts +1 -3
- package/action/src/actionbar/actionbar-item.theming.scss +3 -3
- package/backdrop/backdrop.component.d.ts +0 -1
- package/clone/clone.pipe.d.ts +1 -1
- package/context-menu/long-press.directive.d.ts +0 -1
- package/custom-html/custom-html.component.d.ts +0 -1
- package/drag-drop/drag-drop.directive.d.ts +1 -1
- package/dynamic-component/dynamic-outlet/dynamic-outlet.component.d.ts +2 -6
- package/dynamic-component/shared/dynamic-component.d.ts +2 -6
- package/entity/entity-table/entity-table.component.d.ts +10 -22
- package/entity/shared/entity.interfaces.d.ts +6 -16
- package/entity/shared/transaction.d.ts +4 -12
- package/entity/src/entity-selector/entity-selector.theming.scss +1 -1
- package/entity/src/entity-table/entity-table.theming.scss +4 -4
- package/esm2022/action/action.module.mjs +4 -4
- package/esm2022/action/actionbar/actionbar-item.component.mjs +4 -4
- package/esm2022/action/actionbar/actionbar.component.mjs +3 -3
- package/esm2022/action/actionbar/actionbar.module.mjs +4 -4
- package/esm2022/action/shared/action.interfaces.mjs +1 -1
- package/esm2022/backdrop/backdrop.component.mjs +5 -6
- package/esm2022/backdrop/backdrop.module.mjs +4 -4
- package/esm2022/badge/badge-icon.directive.mjs +3 -3
- package/esm2022/badge/badge-icon.module.mjs +4 -4
- package/esm2022/clickout/clickout.directive.mjs +3 -3
- package/esm2022/clickout/clickout.module.mjs +4 -4
- package/esm2022/clone/clone.module.mjs +4 -4
- package/esm2022/clone/clone.pipe.mjs +5 -5
- package/esm2022/collapsible/collapse.directive.mjs +4 -4
- package/esm2022/collapsible/collapsible.component.mjs +4 -4
- package/esm2022/collapsible/collapsible.module.mjs +4 -4
- package/esm2022/color/color-picker-form-field/color-picker-form-field.component.mjs +6 -6
- package/esm2022/color/color-picker-form-field/color-picker-form-field.module.mjs +4 -4
- package/esm2022/confirm-dialog/confirm-dialog.component.mjs +4 -4
- package/esm2022/confirm-dialog/confirm-dialog.module.mjs +4 -4
- package/esm2022/confirm-dialog/confirm-dialog.service.mjs +3 -3
- package/esm2022/context-menu/context-menu.directive.mjs +3 -3
- package/esm2022/context-menu/context-menu.module.mjs +4 -4
- package/esm2022/context-menu/long-press.directive.mjs +5 -6
- package/esm2022/custom-html/custom-html.component.mjs +5 -6
- package/esm2022/custom-html/custom-html.module.mjs +4 -4
- package/esm2022/custom-html/custom-html.pipe.mjs +3 -3
- package/esm2022/dom/dom.module.mjs +4 -4
- package/esm2022/dom/dom.service.mjs +3 -3
- package/esm2022/drag-drop/drag-drop.directive.mjs +4 -4
- package/esm2022/drag-drop/drag-drop.module.mjs +4 -4
- package/esm2022/dynamic-component/dynamic-component.module.mjs +4 -4
- package/esm2022/dynamic-component/dynamic-outlet/dynamic-outlet.component.mjs +4 -4
- package/esm2022/dynamic-component/dynamic-outlet/dynamic-outlet.module.mjs +4 -4
- package/esm2022/dynamic-component/shared/dynamic-component.mjs +3 -3
- package/esm2022/dynamic-component/shared/dynamic-component.service.mjs +3 -3
- package/esm2022/entity/entity-selector/entity-selector.component.mjs +4 -4
- package/esm2022/entity/entity-selector/entity-selector.module.mjs +4 -4
- package/esm2022/entity/entity-table/entity-table-row.directive.mjs +4 -4
- package/esm2022/entity/entity-table/entity-table.component.mjs +8 -8
- package/esm2022/entity/entity-table/entity-table.module.mjs +4 -4
- package/esm2022/entity/entity-table-paginator/entity-table-paginator.component.mjs +4 -4
- package/esm2022/entity/entity-table-paginator/entity-table-paginator.module.mjs +4 -4
- package/esm2022/entity/entity.module.mjs +4 -4
- package/esm2022/entity/shared/entity.interfaces.mjs +1 -1
- package/esm2022/entity/shared/state.mjs +1 -1
- package/esm2022/entity/shared/store.mjs +1 -1
- package/esm2022/entity/shared/strategies/filter-custom-function.mjs +1 -1
- package/esm2022/entity/shared/strategies/filter-selection.mjs +1 -1
- package/esm2022/entity/shared/strategies/strategy.mjs +7 -3
- package/esm2022/entity/shared/transaction.mjs +3 -3
- package/esm2022/entity/shared/view.mjs +1 -1
- package/esm2022/entity/shared/watcher.mjs +3 -3
- package/esm2022/flexible/flexible.component.mjs +10 -8
- package/esm2022/flexible/flexible.module.mjs +4 -4
- package/esm2022/form/form/form.component.mjs +5 -6
- package/esm2022/form/form/form.module.mjs +4 -4
- package/esm2022/form/form-dialog/form-dialog.component.mjs +6 -6
- package/esm2022/form/form-dialog/form-dialog.interface.mjs +1 -1
- package/esm2022/form/form-dialog/form-dialog.module.mjs +4 -4
- package/esm2022/form/form-dialog/form-dialog.service.mjs +4 -4
- package/esm2022/form/form-field/form-field-select.component.mjs +4 -4
- package/esm2022/form/form-field/form-field-text.component.mjs +4 -4
- package/esm2022/form/form-field/form-field-textarea.component.mjs +4 -4
- package/esm2022/form/form-field/form-field.component.mjs +3 -3
- package/esm2022/form/form-field/form-field.module.mjs +4 -4
- package/esm2022/form/form-group/form-group.component.mjs +5 -6
- package/esm2022/form/form-group/form-group.module.mjs +4 -4
- package/esm2022/form/form.module.mjs +4 -4
- package/esm2022/form/shared/form-field.service.mjs +5 -6
- package/esm2022/form/shared/form.interfaces.mjs +1 -1
- package/esm2022/form/shared/form.service.mjs +3 -3
- package/esm2022/form/shared/form.utils.mjs +1 -1
- package/esm2022/home-button/home-button.component.mjs +5 -6
- package/esm2022/home-button/home-button.module.mjs +4 -4
- package/esm2022/icon/icon/icon.component.mjs +3 -3
- package/esm2022/icon/shared/icon.service.mjs +3 -3
- package/esm2022/image/image-error.directive.mjs +4 -4
- package/esm2022/image/image.module.mjs +4 -4
- package/esm2022/image/secure-image.pipe.mjs +3 -3
- package/esm2022/interactive-tour/interactive-tour.component.mjs +6 -8
- package/esm2022/interactive-tour/interactive-tour.loader.mjs +5 -5
- package/esm2022/interactive-tour/interactive-tour.module.mjs +4 -4
- package/esm2022/interactive-tour/interactive-tour.service.mjs +5 -5
- package/esm2022/json-dialog/json-dialog.component.mjs +3 -3
- package/esm2022/json-dialog/json-dialog.module.mjs +4 -4
- package/esm2022/json-dialog/json-dialog.service.mjs +3 -3
- package/esm2022/keyvalue/keyvalue.module.mjs +4 -4
- package/esm2022/keyvalue/keyvalue.pipe.mjs +5 -5
- package/esm2022/list/list-item.directive.mjs +3 -3
- package/esm2022/list/list.component.mjs +5 -5
- package/esm2022/list/list.module.mjs +4 -4
- package/esm2022/panel/panel.component.mjs +4 -4
- package/esm2022/panel/panel.module.mjs +4 -4
- package/esm2022/select-value-dialog/select-value-check-radio-dialog.component.mjs +4 -4
- package/esm2022/select-value-dialog/select-value-dialog.module.mjs +4 -4
- package/esm2022/select-value-dialog/select-value-dialog.service.mjs +3 -3
- package/esm2022/sidenav/sidenav-shim.directive.mjs +3 -3
- package/esm2022/sidenav/sidenav.module.mjs +4 -4
- package/esm2022/spinner/spinner-activity.directive.mjs +3 -3
- package/esm2022/spinner/spinner.component.mjs +5 -6
- package/esm2022/spinner/spinner.module.mjs +4 -4
- package/esm2022/stop-propagation/stop-drop-propagation.directive.mjs +3 -3
- package/esm2022/stop-propagation/stop-propagation.directive.mjs +3 -3
- package/esm2022/stop-propagation/stop-propagation.module.mjs +4 -4
- package/esm2022/table/table-datasource.mjs +4 -2
- package/esm2022/table/table-model.interface.mjs +1 -1
- package/esm2022/table/table.component.mjs +4 -4
- package/esm2022/table/table.module.mjs +4 -4
- package/esm2022/tool/shared/tool.interface.mjs +1 -1
- package/esm2022/tool/shared/tool.service.mjs +4 -4
- package/esm2022/tool/shared/toolbox.mjs +2 -2
- package/esm2022/tool/tool.module.mjs +4 -4
- package/esm2022/tool/toolbox/toolbox.component.mjs +5 -5
- package/esm2022/tool/toolbox/toolbox.module.mjs +4 -4
- package/esm2022/widget/shared/widget.service.mjs +3 -3
- package/esm2022/widget/widget-outlet/widget-outlet.component.mjs +5 -6
- package/esm2022/widget/widget-outlet/widget-outlet.module.mjs +4 -4
- package/esm2022/widget/widget.module.mjs +4 -4
- package/esm2022/workspace/shared/store.mjs +1 -1
- package/esm2022/workspace/shared/workspace.interfaces.mjs +1 -1
- package/esm2022/workspace/shared/workspace.mjs +1 -1
- package/esm2022/workspace/workspace-selector/workspace-selector.component.mjs +3 -3
- package/esm2022/workspace/workspace-selector/workspace-selector.module.mjs +4 -4
- package/esm2022/workspace/workspace-widget-outlet/workspace-widget-outlet.component.mjs +5 -6
- package/esm2022/workspace/workspace-widget-outlet/workspace-widget-outlet.module.mjs +4 -4
- package/esm2022/workspace/workspace.module.mjs +4 -4
- package/fesm2022/igo2-common-action.mjs +14 -14
- package/fesm2022/igo2-common-action.mjs.map +1 -1
- package/fesm2022/igo2-common-backdrop.mjs +8 -9
- package/fesm2022/igo2-common-backdrop.mjs.map +1 -1
- package/fesm2022/igo2-common-badge.mjs +7 -7
- package/fesm2022/igo2-common-clickout.mjs +7 -7
- package/fesm2022/igo2-common-clone.mjs +8 -8
- package/fesm2022/igo2-common-clone.mjs.map +1 -1
- package/fesm2022/igo2-common-collapsible.mjs +10 -10
- package/fesm2022/igo2-common-collapsible.mjs.map +1 -1
- package/fesm2022/igo2-common-color.mjs +9 -9
- package/fesm2022/igo2-common-color.mjs.map +1 -1
- package/fesm2022/igo2-common-confirm-dialog.mjs +10 -10
- package/fesm2022/igo2-common-confirm-dialog.mjs.map +1 -1
- package/fesm2022/igo2-common-context-menu.mjs +11 -12
- package/fesm2022/igo2-common-context-menu.mjs.map +1 -1
- package/fesm2022/igo2-common-custom-html.mjs +11 -12
- package/fesm2022/igo2-common-custom-html.mjs.map +1 -1
- package/fesm2022/igo2-common-dom.mjs +7 -7
- package/fesm2022/igo2-common-drag-drop.mjs +7 -7
- package/fesm2022/igo2-common-drag-drop.mjs.map +1 -1
- package/fesm2022/igo2-common-dynamic-component.mjs +16 -16
- package/fesm2022/igo2-common-dynamic-component.mjs.map +1 -1
- package/fesm2022/igo2-common-entity.mjs +42 -38
- package/fesm2022/igo2-common-entity.mjs.map +1 -1
- package/fesm2022/igo2-common-flexible.mjs +12 -10
- package/fesm2022/igo2-common-flexible.mjs.map +1 -1
- package/fesm2022/igo2-common-form.mjs +55 -58
- package/fesm2022/igo2-common-form.mjs.map +1 -1
- package/fesm2022/igo2-common-home-button.mjs +8 -9
- package/fesm2022/igo2-common-home-button.mjs.map +1 -1
- package/fesm2022/igo2-common-icon.mjs +6 -6
- package/fesm2022/igo2-common-image.mjs +10 -10
- package/fesm2022/igo2-common-image.mjs.map +1 -1
- package/fesm2022/igo2-common-interactive-tour.mjs +17 -19
- package/fesm2022/igo2-common-interactive-tour.mjs.map +1 -1
- package/fesm2022/igo2-common-json-dialog.mjs +10 -10
- package/fesm2022/igo2-common-keyvalue.mjs +8 -8
- package/fesm2022/igo2-common-keyvalue.mjs.map +1 -1
- package/fesm2022/igo2-common-list.mjs +11 -11
- package/fesm2022/igo2-common-list.mjs.map +1 -1
- package/fesm2022/igo2-common-panel.mjs +7 -7
- package/fesm2022/igo2-common-panel.mjs.map +1 -1
- package/fesm2022/igo2-common-select-value-dialog.mjs +10 -10
- package/fesm2022/igo2-common-select-value-dialog.mjs.map +1 -1
- package/fesm2022/igo2-common-sidenav.mjs +7 -7
- package/fesm2022/igo2-common-spinner.mjs +11 -12
- package/fesm2022/igo2-common-spinner.mjs.map +1 -1
- package/fesm2022/igo2-common-stop-propagation.mjs +10 -10
- package/fesm2022/igo2-common-table.mjs +10 -8
- package/fesm2022/igo2-common-table.mjs.map +1 -1
- package/fesm2022/igo2-common-tool.mjs +16 -16
- package/fesm2022/igo2-common-tool.mjs.map +1 -1
- package/fesm2022/igo2-common-widget.mjs +15 -16
- package/fesm2022/igo2-common-widget.mjs.map +1 -1
- package/fesm2022/igo2-common-workspace.mjs +19 -20
- package/fesm2022/igo2-common-workspace.mjs.map +1 -1
- package/flexible/flexible.component.d.ts +3 -2
- package/form/form/form.component.d.ts +3 -10
- package/form/form-dialog/form-dialog.component.d.ts +2 -6
- package/form/form-dialog/form-dialog.interface.d.ts +1 -3
- package/form/form-dialog/form-dialog.service.d.ts +1 -3
- package/form/form-field/form-field-select.component.d.ts +1 -3
- package/form/form-field/form-field-text.component.d.ts +1 -3
- package/form/form-field/form-field-textarea.component.d.ts +1 -3
- package/form/form-group/form-group.component.d.ts +2 -7
- package/form/shared/form-field.service.d.ts +1 -4
- package/form/shared/form.interfaces.d.ts +3 -9
- package/form/shared/form.utils.d.ts +2 -6
- package/home-button/home-button.component.d.ts +0 -1
- package/home-button/src/home-button.theming.scss +3 -3
- package/interactive-tour/src/interactive-tour.theming.scss +3 -3
- package/keyvalue/keyvalue.pipe.d.ts +1 -1
- package/list/src/list.theming.scss +9 -9
- package/package.json +10 -10
- package/panel/src/panel.theming.scss +3 -3
- package/spinner/spinner.component.d.ts +0 -1
- package/table/table-model.interface.d.ts +2 -6
- package/tool/shared/tool.interface.d.ts +1 -3
- package/tool/shared/tool.service.d.ts +1 -3
- package/tool/shared/toolbox.d.ts +1 -3
- package/tool/src/toolbox/toolbox.theming.scss +7 -7
- package/tool/toolbox/toolbox.component.d.ts +1 -3
- package/widget/widget-outlet/widget-outlet.component.d.ts +3 -10
- package/workspace/shared/store.d.ts +1 -1
- package/workspace/shared/workspace.d.ts +4 -14
- package/workspace/shared/workspace.interfaces.d.ts +1 -3
- package/workspace/workspace-widget-outlet/workspace-widget-outlet.component.d.ts +2 -7
|
@@ -215,10 +215,10 @@ class WorkspaceSelectorComponent {
|
|
|
215
215
|
this.store.activateWorkspace(workspace);
|
|
216
216
|
this.selectedChange.emit({ selected: true, value: workspace });
|
|
217
217
|
}
|
|
218
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
219
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
218
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: WorkspaceSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
219
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: WorkspaceSelectorComponent, isStandalone: true, selector: "igo-workspace-selector", inputs: { store: "store", disabled: "disabled" }, outputs: { selectedChange: "selectedChange" }, ngImport: i0, template: "<igo-entity-selector\n [store]=\"store\"\n [multi]=\"false\"\n [titleAccessor]=\"getWorkspaceTitle\"\n [disabled]=\"disabled\"\n (selectedChange)=\"onSelectedChange($event)\"\n>\n</igo-entity-selector>\n", styles: [""], dependencies: [{ kind: "component", type: EntitySelectorComponent, selector: "igo-entity-selector", inputs: ["store", "titleAccessor", "emptyText", "multi", "multiAllText", "multiNoneText", "placeholder", "disabled"], outputs: ["selectedChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
220
220
|
}
|
|
221
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: WorkspaceSelectorComponent, decorators: [{
|
|
222
222
|
type: Component,
|
|
223
223
|
args: [{ selector: 'igo-workspace-selector', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntitySelectorComponent], template: "<igo-entity-selector\n [store]=\"store\"\n [multi]=\"false\"\n [titleAccessor]=\"getWorkspaceTitle\"\n [disabled]=\"disabled\"\n (selectedChange)=\"onSelectedChange($event)\"\n>\n</igo-entity-selector>\n" }]
|
|
224
224
|
}], propDecorators: { store: [{
|
|
@@ -233,11 +233,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImpor
|
|
|
233
233
|
* @deprecated import the WorkspaceSelectorComponent directly
|
|
234
234
|
*/
|
|
235
235
|
class IgoWorkspaceSelectorModule {
|
|
236
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
237
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
238
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
236
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: IgoWorkspaceSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
237
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.2", ngImport: i0, type: IgoWorkspaceSelectorModule, imports: [WorkspaceSelectorComponent], exports: [WorkspaceSelectorComponent] });
|
|
238
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: IgoWorkspaceSelectorModule, imports: [WorkspaceSelectorComponent] });
|
|
239
239
|
}
|
|
240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: IgoWorkspaceSelectorModule, decorators: [{
|
|
241
241
|
type: NgModule,
|
|
242
242
|
args: [{
|
|
243
243
|
imports: [WorkspaceSelectorComponent],
|
|
@@ -281,7 +281,6 @@ class WorkspaceWidgetOutletComponent {
|
|
|
281
281
|
get widgetSubscribers$() {
|
|
282
282
|
return this.workspace.widgetSubscribers$;
|
|
283
283
|
}
|
|
284
|
-
constructor() { }
|
|
285
284
|
/**
|
|
286
285
|
* When a widget's component emit the 'cancel' event,
|
|
287
286
|
* deactivate that widget and emit the 'deactivateWidget' event.
|
|
@@ -302,13 +301,13 @@ class WorkspaceWidgetOutletComponent {
|
|
|
302
301
|
this.workspace.deactivateWidget();
|
|
303
302
|
this.deactivateWidget.emit(widget);
|
|
304
303
|
}
|
|
305
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
306
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
304
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: WorkspaceWidgetOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
305
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: WorkspaceWidgetOutletComponent, isStandalone: true, selector: "igo-workspace-widget-outlet", inputs: { workspace: "workspace" }, outputs: { deactivateWidget: "deactivateWidget" }, ngImport: i0, template: "<ng-container *ngIf=\"widget$ | async as widget\">\n <igo-widget-outlet\n [widget]=\"widget\"\n [inputs]=\"widgetInputs$ | async\"\n [subscribers]=\"widgetSubscribers$ | async\"\n (cancel)=\"onWidgetCancel(widget)\"\n (complete)=\"onWidgetComplete(widget)\"\n >\n </igo-widget-outlet>\n</ng-container>\n", styles: ["igo-widget-outlet{height:100%}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: WidgetOutletComponent, selector: "igo-widget-outlet", inputs: ["widget", "inputs", "subscribers"], outputs: ["complete", "cancel"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
307
306
|
}
|
|
308
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: WorkspaceWidgetOutletComponent, decorators: [{
|
|
309
308
|
type: Component,
|
|
310
309
|
args: [{ selector: 'igo-workspace-widget-outlet', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, WidgetOutletComponent, AsyncPipe], template: "<ng-container *ngIf=\"widget$ | async as widget\">\n <igo-widget-outlet\n [widget]=\"widget\"\n [inputs]=\"widgetInputs$ | async\"\n [subscribers]=\"widgetSubscribers$ | async\"\n (cancel)=\"onWidgetCancel(widget)\"\n (complete)=\"onWidgetComplete(widget)\"\n >\n </igo-widget-outlet>\n</ng-container>\n", styles: ["igo-widget-outlet{height:100%}\n"] }]
|
|
311
|
-
}],
|
|
310
|
+
}], propDecorators: { workspace: [{
|
|
312
311
|
type: Input
|
|
313
312
|
}], deactivateWidget: [{
|
|
314
313
|
type: Output
|
|
@@ -318,11 +317,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImpor
|
|
|
318
317
|
* @deprecated import the WorkspaceWidgetOutletComponent directly
|
|
319
318
|
*/
|
|
320
319
|
class IgoWorkspaceWidgetOutletModule {
|
|
321
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
322
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
323
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
320
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
321
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.2", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, imports: [WorkspaceWidgetOutletComponent], exports: [WorkspaceWidgetOutletComponent] });
|
|
322
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, imports: [WorkspaceWidgetOutletComponent] });
|
|
324
323
|
}
|
|
325
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, decorators: [{
|
|
326
325
|
type: NgModule,
|
|
327
326
|
args: [{
|
|
328
327
|
imports: [WorkspaceWidgetOutletComponent],
|
|
@@ -338,13 +337,13 @@ const WORKSPACE_DIRECTIVES = [
|
|
|
338
337
|
* @deprecated import the components directly or WORKSPACE_DIRECTIVES for every components/directives
|
|
339
338
|
*/
|
|
340
339
|
class IgoWorkspaceModule {
|
|
341
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
342
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
340
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: IgoWorkspaceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
341
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.2", ngImport: i0, type: IgoWorkspaceModule, imports: [WorkspaceSelectorComponent,
|
|
343
342
|
WorkspaceWidgetOutletComponent], exports: [WorkspaceSelectorComponent,
|
|
344
343
|
WorkspaceWidgetOutletComponent] });
|
|
345
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
344
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: IgoWorkspaceModule, imports: [WORKSPACE_DIRECTIVES] });
|
|
346
345
|
}
|
|
347
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
346
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: IgoWorkspaceModule, decorators: [{
|
|
348
347
|
type: NgModule,
|
|
349
348
|
args: [{
|
|
350
349
|
imports: [...WORKSPACE_DIRECTIVES],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"igo2-common-workspace.mjs","sources":["../../../packages/common/workspace/src/shared/store.ts","../../../packages/common/workspace/src/shared/workspace.ts","../../../packages/common/workspace/src/workspace-selector/workspace-selector.component.ts","../../../packages/common/workspace/src/workspace-selector/workspace-selector.component.html","../../../packages/common/workspace/src/workspace-selector/workspace-selector.module.ts","../../../packages/common/workspace/src/workspace-widget-outlet/workspace-widget-outlet.component.ts","../../../packages/common/workspace/src/workspace-widget-outlet/workspace-widget-outlet.component.html","../../../packages/common/workspace/src/workspace-widget-outlet/workspace-widget-outlet.module.ts","../../../packages/common/workspace/src/workspace.module.ts","../../../packages/common/workspace/src/igo2-common-workspace.ts"],"sourcesContent":["import { EntityStore } from '@igo2/common/entity';\n\nimport { BehaviorSubject } from 'rxjs';\n\nimport { Workspace } from './workspace';\n\n/**\n * The class is a specialized version of an EntityStore that stores\n * workspaces.\n */\nexport class WorkspaceStore extends EntityStore<Workspace> {\n activeWorkspace$: BehaviorSubject<Workspace> = new BehaviorSubject(undefined);\n\n /**\n * Activate the an workspace workspace and deactivate the one currently active\n * @param workspace Workspace\n */\n activateWorkspace(workspace: Workspace) {\n const active = this.activeWorkspace$.value;\n if (active !== undefined) {\n active.deactivate();\n }\n\n this.deactivateWorkspace();\n if (workspace !== undefined) {\n this.state.update(workspace, { active: true, selected: true }, true);\n this.activeWorkspace$.next(workspace);\n workspace.activate();\n }\n }\n\n /**\n * Deactivate the current workspace\n * @param workspace Workspace\n */\n deactivateWorkspace() {\n const active = this.activeWorkspace$.value;\n if (active !== undefined) {\n active.deactivate();\n this.activeWorkspace$.next(undefined);\n }\n }\n}\n","import { ActionStore } from '@igo2/common/action';\nimport { EntityStore } from '@igo2/common/entity';\nimport { Widget } from '@igo2/common/widget';\n\nimport { BehaviorSubject, Subject, Subscription } from 'rxjs';\n\nimport { WorkspaceOptions } from './workspace.interfaces';\n\n/**\n * This class is responsible of managing the relations between\n * entities and the actions that consume them. It also defines an\n * entity table template that may be used by an entity table component.\n */\nexport class Workspace<E extends object = object> {\n /**\n * Observable of the selected widget\n */\n readonly widget$ = new BehaviorSubject<Widget>(undefined);\n\n /**\n * Observable of the selected widget's inputs\n */\n readonly widgetInputs$ = new BehaviorSubject<{ [key: string]: any }>({});\n\n /**\n * Observable of the selected widget's subscribers\n */\n readonly widgetSubscribers$ = new BehaviorSubject<{\n [key: string]: (event: any) => void;\n }>({});\n\n /**\n * Subscription to the selected entity\n */\n private entities$$: Subscription;\n\n /**\n * State change that trigger an update of the actions availability\n */\n private change: Subject<void> = new Subject();\n\n /**\n * Subscription to state changes\n */\n private change$: Subscription;\n\n /**\n * Workspace id\n */\n get id(): string {\n return this.options.id;\n }\n\n /**\n * Workspace title\n */\n get title(): string {\n return this.options.title;\n }\n\n /**\n * Workspace title\n */\n get meta(): { [key: string]: any } {\n return this.options.meta || {};\n }\n\n /**\n * Entities store\n */\n get entityStore(): EntityStore<E> {\n return this.options.entityStore as EntityStore<E>;\n }\n\n /**\n * Actions store (some actions activate a widget)\n */\n get actionStore(): ActionStore {\n return this.options.actionStore;\n }\n\n /**\n * Selected widget\n */\n get widget(): Widget {\n return this.widget$.value;\n }\n\n /**\n * Whether a widget is selected\n */\n get hasWidget(): boolean {\n return this.widget !== undefined;\n }\n\n constructor(protected options: WorkspaceOptions) {}\n\n /**\n * Whether this strategy is active\n * @internal\n */\n get active(): boolean {\n return this.active$.value;\n }\n readonly active$: BehaviorSubject<boolean> = new BehaviorSubject(false);\n\n /**\n * Activate the workspace. By doing that, the workspace will observe\n * the selected entity (from the store) and update the actions availability.\n * For example, some actions require an entity to be selected.\n */\n activate() {\n if (this.active === true) {\n this.deactivate();\n }\n this.active$.next(true);\n\n if (this.entityStore !== undefined) {\n this.entities$$ = this.entityStore.stateView\n .all$()\n .subscribe(() => this.onStateChange());\n }\n\n this.change.next();\n }\n\n /**\n * Deactivate the workspace. Unsubcribe to the selected entity.\n */\n deactivate() {\n this.active$.next(false);\n this.deactivateWidget();\n\n if (this.entities$$ !== undefined) {\n this.entities$$.unsubscribe();\n }\n if (this.change$ !== undefined) {\n this.change$.unsubscribe();\n }\n }\n\n /**\n * Activate a widget. In itself, activating a widget doesn't render it but,\n * if an WorkspaceWidgetOutlet component is bound to this workspace, the widget will\n * show up.\n * @param widget Widget\n * @param inputs Inputs the widget will receive\n */\n activateWidget(\n widget: Widget,\n inputs: { [key: string]: any } = {},\n subscribers: { [key: string]: (event: any) => void } = {}\n ) {\n this.widget$.next(widget);\n this.widgetInputs$.next(inputs);\n this.widgetSubscribers$.next(subscribers);\n this.change.next();\n }\n\n /**\n * Deactivate a widget.\n */\n deactivateWidget() {\n this.widget$.next(undefined);\n this.change.next();\n }\n\n /**\n * When the state changes, update the actions availability.\n */\n private onStateChange() {\n this.change.next();\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n Output\n} from '@angular/core';\n\nimport {\n EntitySelectorChange,\n EntitySelectorComponent,\n getEntityTitle\n} from '@igo2/common/entity';\n\nimport { WorkspaceStore } from '../shared/store';\nimport { Workspace } from '../shared/workspace';\n\n/**\n * Drop list that activates the selected workspace emit an event.\n */\n@Component({\n selector: 'igo-workspace-selector',\n templateUrl: './workspace-selector.component.html',\n styleUrls: ['./workspace-selector.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n imports: [EntitySelectorComponent]\n})\nexport class WorkspaceSelectorComponent {\n /**\n * Store that holds the available workspaces.\n */\n @Input() store: WorkspaceStore;\n\n /**\n * Wheither the selector must be disabled or not.\n */\n @Input() disabled: boolean;\n\n /**\n * Event emitted when an workspace is selected or unselected\n */\n @Output() selectedChange = new EventEmitter<{\n selected: boolean;\n value: Workspace;\n }>();\n\n /**\n * @internal\n */\n getWorkspaceTitle(workspace: Workspace): string {\n return getEntityTitle(workspace);\n }\n\n /**\n * When an workspace is manually selected, select it into the\n * store and emit an event.\n * @internal\n * @param event The selection change event\n */\n onSelectedChange(event: EntitySelectorChange<Workspace>) {\n const workspace = event.value;\n this.store.activateWorkspace(workspace);\n this.selectedChange.emit({ selected: true, value: workspace });\n }\n}\n","<igo-entity-selector\n [store]=\"store\"\n [multi]=\"false\"\n [titleAccessor]=\"getWorkspaceTitle\"\n [disabled]=\"disabled\"\n (selectedChange)=\"onSelectedChange($event)\"\n>\n</igo-entity-selector>\n","import { NgModule } from '@angular/core';\n\nimport { WorkspaceSelectorComponent } from './workspace-selector.component';\n\n/**\n * @deprecated import the WorkspaceSelectorComponent directly\n */\n@NgModule({\n imports: [WorkspaceSelectorComponent],\n exports: [WorkspaceSelectorComponent]\n})\nexport class IgoWorkspaceSelectorModule {}\n","import { AsyncPipe, NgIf } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n Output\n} from '@angular/core';\n\nimport { Widget, WidgetOutletComponent } from '@igo2/common/widget';\n\nimport { BehaviorSubject } from 'rxjs';\n\nimport { Workspace } from '../shared/workspace';\n\n/**\n * This component dynamically render an Workspace's active widget.\n * It also deactivate that widget whenever the widget's component\n * emit the 'cancel' or 'complete' event.\n */\n@Component({\n selector: 'igo-workspace-widget-outlet',\n templateUrl: './workspace-widget-outlet.component.html',\n styleUrls: ['./workspace-widget-outlet.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n imports: [NgIf, WidgetOutletComponent, AsyncPipe]\n})\nexport class WorkspaceWidgetOutletComponent {\n /**\n * Workspace\n */\n @Input() workspace: Workspace;\n\n /**\n * Event emitted when a widget is deactivate which happens\n * when the widget's component emits the 'cancel' or 'complete' event.\n */\n @Output() deactivateWidget = new EventEmitter<Widget>();\n\n /**\n * Observable of the workspace's active widget\n * @internal\n */\n get widget$(): BehaviorSubject<Widget> {\n return this.workspace.widget$;\n }\n\n /**\n * Observable of the workspace's widget inputs\n * @internal\n */\n get widgetInputs$(): BehaviorSubject<{ [key: string]: any }> {\n return this.workspace.widgetInputs$;\n }\n\n /**\n * Observable of the workspace's widget inputs\n * @internal\n */\n get widgetSubscribers$(): BehaviorSubject<{\n [key: string]: (event: any) => void;\n }> {\n return this.workspace.widgetSubscribers$;\n }\n\n constructor() {}\n\n /**\n * When a widget's component emit the 'cancel' event,\n * deactivate that widget and emit the 'deactivateWidget' event.\n * @param widget Widget\n * @internal\n */\n onWidgetCancel(widget: Widget) {\n this.workspace.deactivateWidget();\n this.deactivateWidget.emit(widget);\n }\n\n /**\n * When a widget's component emit the 'cancel' event,\n * deactivate that widget and emit the 'deactivateWidget' event.\n * @param widget Widget\n * @internal\n */\n onWidgetComplete(widget: Widget) {\n this.workspace.deactivateWidget();\n this.deactivateWidget.emit(widget);\n }\n}\n","<ng-container *ngIf=\"widget$ | async as widget\">\n <igo-widget-outlet\n [widget]=\"widget\"\n [inputs]=\"widgetInputs$ | async\"\n [subscribers]=\"widgetSubscribers$ | async\"\n (cancel)=\"onWidgetCancel(widget)\"\n (complete)=\"onWidgetComplete(widget)\"\n >\n </igo-widget-outlet>\n</ng-container>\n","import { NgModule } from '@angular/core';\n\nimport { WorkspaceWidgetOutletComponent } from './workspace-widget-outlet.component';\n\n/**\n * @deprecated import the WorkspaceWidgetOutletComponent directly\n */\n@NgModule({\n imports: [WorkspaceWidgetOutletComponent],\n exports: [WorkspaceWidgetOutletComponent]\n})\nexport class IgoWorkspaceWidgetOutletModule {}\n","import { NgModule } from '@angular/core';\n\nimport { WorkspaceSelectorComponent } from './workspace-selector';\nimport { WorkspaceWidgetOutletComponent } from './workspace-widget-outlet';\n\nexport const WORKSPACE_DIRECTIVES = [\n WorkspaceSelectorComponent,\n WorkspaceWidgetOutletComponent\n] as const;\n\n/**\n * @deprecated import the components directly or WORKSPACE_DIRECTIVES for every components/directives\n */\n@NgModule({\n imports: [...WORKSPACE_DIRECTIVES],\n exports: [...WORKSPACE_DIRECTIVES],\n declarations: []\n})\nexport class IgoWorkspaceModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;AAMA;;;AAGG;AACG,MAAO,cAAe,SAAQ,WAAsB,CAAA;AACxD,IAAA,gBAAgB,GAA+B,IAAI,eAAe,CAAC,SAAS,CAAC,CAAC;AAE9E;;;AAGG;AACH,IAAA,iBAAiB,CAAC,SAAoB,EAAA;AACpC,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,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QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAZ7B,0BAA0B;AAC1B,YAAA,8BAA8B,aAD9B,0BAA0B;YAC1B,8BAA8B,CAAA,EAAA,CAAA,CAAA;AAWnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAJhB,oBAAoB,CAAA,EAAA,CAAA,CAAA;;2FAItB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC;AAClC,oBAAA,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC;AAClC,oBAAA,YAAY,EAAE,EAAE;AACjB,iBAAA,CAAA;;;ACjBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"igo2-common-workspace.mjs","sources":["../../../packages/common/workspace/src/shared/store.ts","../../../packages/common/workspace/src/shared/workspace.ts","../../../packages/common/workspace/src/workspace-selector/workspace-selector.component.ts","../../../packages/common/workspace/src/workspace-selector/workspace-selector.component.html","../../../packages/common/workspace/src/workspace-selector/workspace-selector.module.ts","../../../packages/common/workspace/src/workspace-widget-outlet/workspace-widget-outlet.component.ts","../../../packages/common/workspace/src/workspace-widget-outlet/workspace-widget-outlet.component.html","../../../packages/common/workspace/src/workspace-widget-outlet/workspace-widget-outlet.module.ts","../../../packages/common/workspace/src/workspace.module.ts","../../../packages/common/workspace/src/igo2-common-workspace.ts"],"sourcesContent":["import { EntityStore } from '@igo2/common/entity';\n\nimport { BehaviorSubject } from 'rxjs';\n\nimport { Workspace } from './workspace';\n\n/**\n * The class is a specialized version of an EntityStore that stores\n * workspaces.\n */\nexport class WorkspaceStore extends EntityStore<Workspace> {\n activeWorkspace$ = new BehaviorSubject<Workspace>(undefined);\n\n /**\n * Activate the an workspace workspace and deactivate the one currently active\n * @param workspace Workspace\n */\n activateWorkspace(workspace: Workspace) {\n const active = this.activeWorkspace$.value;\n if (active !== undefined) {\n active.deactivate();\n }\n\n this.deactivateWorkspace();\n if (workspace !== undefined) {\n this.state.update(workspace, { active: true, selected: true }, true);\n this.activeWorkspace$.next(workspace);\n workspace.activate();\n }\n }\n\n /**\n * Deactivate the current workspace\n * @param workspace Workspace\n */\n deactivateWorkspace() {\n const active = this.activeWorkspace$.value;\n if (active !== undefined) {\n active.deactivate();\n this.activeWorkspace$.next(undefined);\n }\n }\n}\n","import { ActionStore } from '@igo2/common/action';\nimport { EntityStore } from '@igo2/common/entity';\nimport { Widget } from '@igo2/common/widget';\n\nimport { BehaviorSubject, Subject, Subscription } from 'rxjs';\n\nimport { WorkspaceOptions } from './workspace.interfaces';\n\n/**\n * This class is responsible of managing the relations between\n * entities and the actions that consume them. It also defines an\n * entity table template that may be used by an entity table component.\n */\nexport class Workspace<E extends object = object> {\n /**\n * Observable of the selected widget\n */\n readonly widget$ = new BehaviorSubject<Widget>(undefined);\n\n /**\n * Observable of the selected widget's inputs\n */\n readonly widgetInputs$ = new BehaviorSubject<Record<string, any>>({});\n\n /**\n * Observable of the selected widget's subscribers\n */\n readonly widgetSubscribers$ = new BehaviorSubject<\n Record<string, (event: any) => void>\n >({});\n\n /**\n * Subscription to the selected entity\n */\n private entities$$: Subscription;\n\n /**\n * State change that trigger an update of the actions availability\n */\n private change = new Subject<void>();\n\n /**\n * Subscription to state changes\n */\n private change$: Subscription;\n\n /**\n * Workspace id\n */\n get id(): string {\n return this.options.id;\n }\n\n /**\n * Workspace title\n */\n get title(): string {\n return this.options.title;\n }\n\n /**\n * Workspace title\n */\n get meta(): Record<string, any> {\n return this.options.meta || {};\n }\n\n /**\n * Entities store\n */\n get entityStore(): EntityStore<E> {\n return this.options.entityStore as EntityStore<E>;\n }\n\n /**\n * Actions store (some actions activate a widget)\n */\n get actionStore(): ActionStore {\n return this.options.actionStore;\n }\n\n /**\n * Selected widget\n */\n get widget(): Widget {\n return this.widget$.value;\n }\n\n /**\n * Whether a widget is selected\n */\n get hasWidget(): boolean {\n return this.widget !== undefined;\n }\n\n constructor(protected options: WorkspaceOptions) {}\n\n /**\n * Whether this strategy is active\n * @internal\n */\n get active(): boolean {\n return this.active$.value;\n }\n readonly active$ = new BehaviorSubject<boolean>(false);\n\n /**\n * Activate the workspace. By doing that, the workspace will observe\n * the selected entity (from the store) and update the actions availability.\n * For example, some actions require an entity to be selected.\n */\n activate() {\n if (this.active === true) {\n this.deactivate();\n }\n this.active$.next(true);\n\n if (this.entityStore !== undefined) {\n this.entities$$ = this.entityStore.stateView\n .all$()\n .subscribe(() => this.onStateChange());\n }\n\n this.change.next();\n }\n\n /**\n * Deactivate the workspace. Unsubcribe to the selected entity.\n */\n deactivate() {\n this.active$.next(false);\n this.deactivateWidget();\n\n if (this.entities$$ !== undefined) {\n this.entities$$.unsubscribe();\n }\n if (this.change$ !== undefined) {\n this.change$.unsubscribe();\n }\n }\n\n /**\n * Activate a widget. In itself, activating a widget doesn't render it but,\n * if an WorkspaceWidgetOutlet component is bound to this workspace, the widget will\n * show up.\n * @param widget Widget\n * @param inputs Inputs the widget will receive\n */\n activateWidget(\n widget: Widget,\n inputs: Record<string, any> = {},\n subscribers: Record<string, (event: any) => void> = {}\n ) {\n this.widget$.next(widget);\n this.widgetInputs$.next(inputs);\n this.widgetSubscribers$.next(subscribers);\n this.change.next();\n }\n\n /**\n * Deactivate a widget.\n */\n deactivateWidget() {\n this.widget$.next(undefined);\n this.change.next();\n }\n\n /**\n * When the state changes, update the actions availability.\n */\n private onStateChange() {\n this.change.next();\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n Output\n} from '@angular/core';\n\nimport {\n EntitySelectorChange,\n EntitySelectorComponent,\n getEntityTitle\n} from '@igo2/common/entity';\n\nimport { WorkspaceStore } from '../shared/store';\nimport { Workspace } from '../shared/workspace';\n\n/**\n * Drop list that activates the selected workspace emit an event.\n */\n@Component({\n selector: 'igo-workspace-selector',\n templateUrl: './workspace-selector.component.html',\n styleUrls: ['./workspace-selector.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n imports: [EntitySelectorComponent]\n})\nexport class WorkspaceSelectorComponent {\n /**\n * Store that holds the available workspaces.\n */\n @Input() store: WorkspaceStore;\n\n /**\n * Wheither the selector must be disabled or not.\n */\n @Input() disabled: boolean;\n\n /**\n * Event emitted when an workspace is selected or unselected\n */\n @Output() selectedChange = new EventEmitter<{\n selected: boolean;\n value: Workspace;\n }>();\n\n /**\n * @internal\n */\n getWorkspaceTitle(workspace: Workspace): string {\n return getEntityTitle(workspace);\n }\n\n /**\n * When an workspace is manually selected, select it into the\n * store and emit an event.\n * @internal\n * @param event The selection change event\n */\n onSelectedChange(event: EntitySelectorChange<Workspace>) {\n const workspace = event.value;\n this.store.activateWorkspace(workspace);\n this.selectedChange.emit({ selected: true, value: workspace });\n }\n}\n","<igo-entity-selector\n [store]=\"store\"\n [multi]=\"false\"\n [titleAccessor]=\"getWorkspaceTitle\"\n [disabled]=\"disabled\"\n (selectedChange)=\"onSelectedChange($event)\"\n>\n</igo-entity-selector>\n","import { NgModule } from '@angular/core';\n\nimport { WorkspaceSelectorComponent } from './workspace-selector.component';\n\n/**\n * @deprecated import the WorkspaceSelectorComponent directly\n */\n@NgModule({\n imports: [WorkspaceSelectorComponent],\n exports: [WorkspaceSelectorComponent]\n})\nexport class IgoWorkspaceSelectorModule {}\n","import { AsyncPipe, NgIf } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n Output\n} from '@angular/core';\n\nimport { Widget, WidgetOutletComponent } from '@igo2/common/widget';\n\nimport { BehaviorSubject } from 'rxjs';\n\nimport { Workspace } from '../shared/workspace';\n\n/**\n * This component dynamically render an Workspace's active widget.\n * It also deactivate that widget whenever the widget's component\n * emit the 'cancel' or 'complete' event.\n */\n@Component({\n selector: 'igo-workspace-widget-outlet',\n templateUrl: './workspace-widget-outlet.component.html',\n styleUrls: ['./workspace-widget-outlet.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n imports: [NgIf, WidgetOutletComponent, AsyncPipe]\n})\nexport class WorkspaceWidgetOutletComponent {\n /**\n * Workspace\n */\n @Input() workspace: Workspace;\n\n /**\n * Event emitted when a widget is deactivate which happens\n * when the widget's component emits the 'cancel' or 'complete' event.\n */\n @Output() deactivateWidget = new EventEmitter<Widget>();\n\n /**\n * Observable of the workspace's active widget\n * @internal\n */\n get widget$(): BehaviorSubject<Widget> {\n return this.workspace.widget$;\n }\n\n /**\n * Observable of the workspace's widget inputs\n * @internal\n */\n get widgetInputs$(): BehaviorSubject<Record<string, any>> {\n return this.workspace.widgetInputs$;\n }\n\n /**\n * Observable of the workspace's widget inputs\n * @internal\n */\n get widgetSubscribers$(): BehaviorSubject<\n Record<string, (event: any) => void>\n > {\n return this.workspace.widgetSubscribers$;\n }\n\n /**\n * When a widget's component emit the 'cancel' event,\n * deactivate that widget and emit the 'deactivateWidget' event.\n * @param widget Widget\n * @internal\n */\n onWidgetCancel(widget: Widget) {\n this.workspace.deactivateWidget();\n this.deactivateWidget.emit(widget);\n }\n\n /**\n * When a widget's component emit the 'cancel' event,\n * deactivate that widget and emit the 'deactivateWidget' event.\n * @param widget Widget\n * @internal\n */\n onWidgetComplete(widget: Widget) {\n this.workspace.deactivateWidget();\n this.deactivateWidget.emit(widget);\n }\n}\n","<ng-container *ngIf=\"widget$ | async as widget\">\n <igo-widget-outlet\n [widget]=\"widget\"\n [inputs]=\"widgetInputs$ | async\"\n [subscribers]=\"widgetSubscribers$ | async\"\n (cancel)=\"onWidgetCancel(widget)\"\n (complete)=\"onWidgetComplete(widget)\"\n >\n </igo-widget-outlet>\n</ng-container>\n","import { NgModule } from '@angular/core';\n\nimport { WorkspaceWidgetOutletComponent } from './workspace-widget-outlet.component';\n\n/**\n * @deprecated import the WorkspaceWidgetOutletComponent directly\n */\n@NgModule({\n imports: [WorkspaceWidgetOutletComponent],\n exports: [WorkspaceWidgetOutletComponent]\n})\nexport class IgoWorkspaceWidgetOutletModule {}\n","import { NgModule } from '@angular/core';\n\nimport { WorkspaceSelectorComponent } from './workspace-selector';\nimport { WorkspaceWidgetOutletComponent } from './workspace-widget-outlet';\n\nexport const WORKSPACE_DIRECTIVES = [\n WorkspaceSelectorComponent,\n WorkspaceWidgetOutletComponent\n] as const;\n\n/**\n * @deprecated import the components directly or WORKSPACE_DIRECTIVES for every components/directives\n */\n@NgModule({\n imports: [...WORKSPACE_DIRECTIVES],\n exports: [...WORKSPACE_DIRECTIVES],\n declarations: []\n})\nexport class IgoWorkspaceModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;AAMA;;;AAGG;AACG,MAAO,cAAe,SAAQ,WAAsB,CAAA;AACxD,IAAA,gBAAgB,GAAG,IAAI,eAAe,CAAY,SAAS,CAAC,CAAC;AAE7D;;;AAGG;AACH,IAAA,iBAAiB,CAAC,SAAoB,EAAA;AACpC,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC;AAC3C,QAAA,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MAAM,CAAC,UAAU,EAAE,CAAC;SACrB;QAED,IAAI,CAAC,mBAAmB,EAAE,CAAC;AAC3B,QAAA,IAAI,SAAS,KAAK,SAAS,EAAE;AAC3B,YAAA,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC;AACrE,YAAA,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACtC,SAAS,CAAC,QAAQ,EAAE,CAAC;SACtB;KACF;AAED;;;AAGG;IACH,mBAAmB,GAAA;AACjB,QAAA,MAAM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ClC,oBAAA,YAAY,EAAE,EAAE;AACjB,iBAAA,CAAA;;;ACjBD;;AAEG;;;;"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { MediaService } from '@igo2/core/media';
|
|
3
3
|
import { FlexibleDirection, FlexibleState } from './flexible.type';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FlexibleComponent implements OnInit, OnDestroy {
|
|
6
6
|
private el;
|
|
7
7
|
private mediaService;
|
|
8
|
+
private cdr;
|
|
8
9
|
static transitionTime: number;
|
|
9
10
|
main: any;
|
|
10
11
|
get initial(): string;
|
|
@@ -32,7 +33,7 @@ export declare class FlexibleComponent implements OnInit, OnDestroy {
|
|
|
32
33
|
set state(value: FlexibleState);
|
|
33
34
|
private _state;
|
|
34
35
|
private mediaService$$;
|
|
35
|
-
constructor(el: ElementRef, mediaService: MediaService);
|
|
36
|
+
constructor(el: ElementRef, mediaService: MediaService, cdr: ChangeDetectorRef);
|
|
36
37
|
ngOnInit(): void;
|
|
37
38
|
ngOnDestroy(): void;
|
|
38
39
|
private setSize;
|
|
@@ -12,9 +12,7 @@ export declare class FormComponent implements OnChanges {
|
|
|
12
12
|
/**
|
|
13
13
|
* Input data
|
|
14
14
|
*/
|
|
15
|
-
formData:
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
};
|
|
15
|
+
formData: Record<string, any>;
|
|
18
16
|
/**
|
|
19
17
|
* Form autocomplete
|
|
20
18
|
*/
|
|
@@ -22,12 +20,9 @@ export declare class FormComponent implements OnChanges {
|
|
|
22
20
|
/**
|
|
23
21
|
* Event emitted when the form is submitted
|
|
24
22
|
*/
|
|
25
|
-
submitForm: EventEmitter<
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
}>;
|
|
23
|
+
submitForm: EventEmitter<Record<string, any>>;
|
|
28
24
|
buttons: ElementRef;
|
|
29
25
|
get hasButtons(): boolean;
|
|
30
|
-
constructor();
|
|
31
26
|
/**
|
|
32
27
|
* Is the entity or the template change, recreate the form or repopulate it.
|
|
33
28
|
* @internal
|
|
@@ -39,9 +34,7 @@ export declare class FormComponent implements OnChanges {
|
|
|
39
34
|
* @internal
|
|
40
35
|
*/
|
|
41
36
|
onSubmit(): void;
|
|
42
|
-
getData():
|
|
43
|
-
[key: string]: any;
|
|
44
|
-
};
|
|
37
|
+
getData(): Record<string, any>;
|
|
45
38
|
private setData;
|
|
46
39
|
private updateDataWithFormField;
|
|
47
40
|
/**
|
|
@@ -10,13 +10,9 @@ export declare class FormDialogComponent {
|
|
|
10
10
|
private formService;
|
|
11
11
|
data: FormDialogData;
|
|
12
12
|
form$: BehaviorSubject<Form>;
|
|
13
|
-
data$: BehaviorSubject<
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
}>;
|
|
13
|
+
data$: BehaviorSubject<Record<string, any>>;
|
|
16
14
|
constructor(languageService: LanguageService, dialogRef: MatDialogRef<FormDialogComponent>, formService: FormService, data: FormDialogData);
|
|
17
|
-
onSubmit(data:
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
}): void;
|
|
15
|
+
onSubmit(data: Record<string, any>): void;
|
|
20
16
|
cancel(): void;
|
|
21
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormDialogComponent, never>;
|
|
22
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormDialogComponent, "igo-form-dialog", never, {}, {}, never, never, true, never>;
|
|
@@ -8,9 +8,7 @@ export interface FormDialogFormConfig {
|
|
|
8
8
|
export interface FormDialogData extends FormDialogOptions, FormDialogFormConfig {
|
|
9
9
|
}
|
|
10
10
|
export interface FormDialogOptions extends MatDialogConfig {
|
|
11
|
-
data$?: BehaviorSubject<
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}>;
|
|
11
|
+
data$?: BehaviorSubject<Record<string, any>>;
|
|
14
12
|
title?: string;
|
|
15
13
|
processButtonText?: string;
|
|
16
14
|
cancelButtonText?: string;
|
|
@@ -5,9 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class FormDialogService {
|
|
6
6
|
private dialog;
|
|
7
7
|
constructor(dialog: MatDialog);
|
|
8
|
-
open(formDialogConfig?: FormDialogFormConfig, options?: FormDialogOptions): Observable<
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}>;
|
|
8
|
+
open(formDialogConfig?: FormDialogFormConfig, options?: FormDialogOptions): Observable<Record<string, any>>;
|
|
11
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormDialogService, never>;
|
|
12
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<FormDialogService>;
|
|
13
11
|
}
|
|
@@ -14,14 +14,11 @@ export declare class FormGroupComponent {
|
|
|
14
14
|
/**
|
|
15
15
|
* Field placeholder
|
|
16
16
|
*/
|
|
17
|
-
errors:
|
|
18
|
-
[key: string]: string;
|
|
19
|
-
};
|
|
17
|
+
errors: Record<string, string>;
|
|
20
18
|
/**
|
|
21
19
|
* Form group control
|
|
22
20
|
*/
|
|
23
21
|
get formControl(): UntypedFormGroup;
|
|
24
|
-
constructor();
|
|
25
22
|
/**
|
|
26
23
|
* Return the number of columns a field should occupy.
|
|
27
24
|
* The maximum allowed is 2, even if the field config says more.
|
|
@@ -37,9 +34,7 @@ export declare class FormGroupComponent {
|
|
|
37
34
|
* @returns Number of columns
|
|
38
35
|
* @internal
|
|
39
36
|
*/
|
|
40
|
-
getFieldNgClass(field: FormField):
|
|
41
|
-
[key: string]: boolean;
|
|
42
|
-
};
|
|
37
|
+
getFieldNgClass(field: FormField): Record<string, boolean>;
|
|
43
38
|
/**
|
|
44
39
|
* Get error message
|
|
45
40
|
*/
|
|
@@ -3,11 +3,8 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
* Service where all available form fields are registered.
|
|
4
4
|
*/
|
|
5
5
|
export declare class FormFieldService {
|
|
6
|
-
static fields:
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
};
|
|
6
|
+
static fields: Record<string, any>;
|
|
9
7
|
static register(type: string, component: any): void;
|
|
10
|
-
constructor();
|
|
11
8
|
/**
|
|
12
9
|
* Return field component by type
|
|
13
10
|
* @param type Field type
|
|
@@ -16,9 +16,7 @@ export interface FormFieldGroup extends FormFieldGroupConfig {
|
|
|
16
16
|
}
|
|
17
17
|
export interface FormFieldGroupOptions {
|
|
18
18
|
validator?: ValidatorFn;
|
|
19
|
-
errors?:
|
|
20
|
-
[key: string]: string;
|
|
21
|
-
};
|
|
19
|
+
errors?: Record<string, string>;
|
|
22
20
|
}
|
|
23
21
|
export interface FormGroupsConfig {
|
|
24
22
|
name: string;
|
|
@@ -32,9 +30,7 @@ export interface FormFieldConfig<T extends FormFieldInputs = FormFieldInputs> {
|
|
|
32
30
|
inputs?: T;
|
|
33
31
|
subscribers?: FormFieldSubscribers;
|
|
34
32
|
}
|
|
35
|
-
export type FormFieldSubscribers =
|
|
36
|
-
[key: string]: FormFieldSubscriber;
|
|
37
|
-
};
|
|
33
|
+
export type FormFieldSubscribers = Record<string, FormFieldSubscriber>;
|
|
38
34
|
type FormFieldSubscriber = (options: FormFieldSubscriberOptions) => void;
|
|
39
35
|
interface FormFieldSubscriberOptions {
|
|
40
36
|
field: FormField;
|
|
@@ -48,9 +44,7 @@ export interface FormFieldOptions {
|
|
|
48
44
|
disabled?: boolean;
|
|
49
45
|
visible?: boolean;
|
|
50
46
|
cols?: number;
|
|
51
|
-
errors?:
|
|
52
|
-
[key: string]: string;
|
|
53
|
-
};
|
|
47
|
+
errors?: Record<string, string>;
|
|
54
48
|
disableSwitch?: boolean;
|
|
55
49
|
}
|
|
56
50
|
export interface FormFieldInputs {
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { AbstractControl } from '@angular/forms';
|
|
2
2
|
import { Form, FormField } from './form.interfaces';
|
|
3
3
|
export declare function formControlIsRequired(control: AbstractControl): boolean;
|
|
4
|
-
export declare function getDefaultErrorMessages():
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
export declare function getControlErrorMessage(control: AbstractControl, messages: {
|
|
8
|
-
[key: string]: string;
|
|
9
|
-
}): string;
|
|
4
|
+
export declare function getDefaultErrorMessages(): Record<string, string>;
|
|
5
|
+
export declare function getControlErrorMessage(control: AbstractControl, messages: Record<string, string>): string;
|
|
10
6
|
export declare function getAllFormFields(form: Form): FormField[];
|
|
11
7
|
export declare function getFormFieldByName(form: Form, name: string): FormField;
|
|
@@ -2,7 +2,6 @@ import { EventEmitter } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class HomeButtonComponent {
|
|
4
4
|
unselectButton: EventEmitter<any>;
|
|
5
|
-
constructor();
|
|
6
5
|
onUnselectButtonClick(): void;
|
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<HomeButtonComponent, never>;
|
|
8
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<HomeButtonComponent, "igo-home-button", never, {}, { "unselectButton": "unselectButton"; }, never, never, true, never>;
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
$foreground: map.get($theme, foreground);
|
|
8
8
|
|
|
9
9
|
igo-home-button > #homeButton {
|
|
10
|
-
background-color: mat.get-color-from-palette($primary);
|
|
11
|
-
color: mat.get-color-from-palette($primary, default-contrast);
|
|
10
|
+
background-color: mat.m2-get-color-from-palette($primary);
|
|
11
|
+
color: mat.m2-get-color-from-palette($primary, default-contrast);
|
|
12
12
|
|
|
13
13
|
&:hover {
|
|
14
|
-
background-color: mat.get-color-from-palette($accent, lighter);
|
|
14
|
+
background-color: mat.m2-get-color-from-palette($accent, lighter);
|
|
15
15
|
color: black;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
igo-interactive-tour {
|
|
14
14
|
button {
|
|
15
15
|
&.tour-button-tool-icon {
|
|
16
|
-
color: mat.get-color-from-palette($primary, darker-contrast);
|
|
16
|
+
color: mat.m2-get-color-from-palette($primary, darker-contrast);
|
|
17
17
|
|
|
18
18
|
&:hover {
|
|
19
|
-
background-color: mat.get-color-from-palette(
|
|
19
|
+
background-color: mat.m2-get-color-from-palette(
|
|
20
20
|
$primary,
|
|
21
21
|
default-contrast
|
|
22
22
|
);
|
|
23
|
-
color: mat.get-color-from-palette($primary);
|
|
23
|
+
color: mat.m2-get-color-from-palette($primary);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class KeyValuePipe implements PipeTransform {
|
|
4
|
-
transform(value: any
|
|
4
|
+
transform(value: any): any;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<KeyValuePipe, never>;
|
|
6
6
|
static ɵpipe: i0.ɵɵPipeDeclaration<KeyValuePipe, "keyvalue", true>;
|
|
7
7
|
}
|
|
@@ -10,26 +10,26 @@
|
|
|
10
10
|
[igolistitem] {
|
|
11
11
|
&[color='primary'] {
|
|
12
12
|
&.igo-list-item-selected > mat-list-item {
|
|
13
|
-
background-color: mat.get-color-from-palette($primary);
|
|
14
|
-
color: mat.get-color-from-palette($primary, default-contrast);
|
|
13
|
+
background-color: mat.m2-get-color-from-palette($primary);
|
|
14
|
+
color: mat.m2-get-color-from-palette($primary, default-contrast);
|
|
15
15
|
}
|
|
16
16
|
&:not(.igo-list-item-disabled):hover > mat-list-item,
|
|
17
17
|
&.igo-list-item-focused > mat-list-item {
|
|
18
|
-
background-color: mat.get-color-from-palette($primary, lighter);
|
|
19
|
-
color: mat.get-color-from-palette($primary, default-contrast);
|
|
18
|
+
background-color: mat.m2-get-color-from-palette($primary, lighter);
|
|
19
|
+
color: mat.m2-get-color-from-palette($primary, default-contrast);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&[color='accent'] {
|
|
24
24
|
&.igo-list-item-selected > mat-list-item {
|
|
25
|
-
background-color: mat.get-color-from-palette($accent);
|
|
26
|
-
color: mat.get-color-from-palette($accent, default-contrast);
|
|
25
|
+
background-color: mat.m2-get-color-from-palette($accent);
|
|
26
|
+
color: mat.m2-get-color-from-palette($accent, default-contrast);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&:not(.igo-list-item-disabled):hover > mat-list-item,
|
|
30
30
|
&.igo-list-item-focused > mat-list-item {
|
|
31
|
-
background-color: mat.get-color-from-palette($accent, lighter);
|
|
32
|
-
color: mat.get-color-from-palette($accent, default-contrast);
|
|
31
|
+
background-color: mat.m2-get-color-from-palette($accent, lighter);
|
|
32
|
+
color: mat.m2-get-color-from-palette($accent, default-contrast);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
@mixin density($theme) {
|
|
44
|
-
$density: mat.get-density-config($theme);
|
|
44
|
+
$density: mat.m2-get-density-config($theme);
|
|
45
45
|
|
|
46
46
|
$theme: map.merge(
|
|
47
47
|
$theme,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igo2/common",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.1-next.2",
|
|
4
4
|
"description": "IGO Library",
|
|
5
5
|
"author": "IGO Community",
|
|
6
6
|
"keywords": [
|
|
@@ -237,21 +237,21 @@
|
|
|
237
237
|
"tslib": "^2.6.0"
|
|
238
238
|
},
|
|
239
239
|
"peerDependencies": {
|
|
240
|
-
"@angular/common": "^
|
|
241
|
-
"@angular/core": "^
|
|
242
|
-
"@angular/material": "^
|
|
243
|
-
"@angular/platform-browser": "^
|
|
244
|
-
"@floating-ui/utils": "^0.
|
|
245
|
-
"@igo2/core": "^17.0.
|
|
246
|
-
"@igo2/utils": "^17.0.
|
|
247
|
-
"angular-shepherd": "
|
|
240
|
+
"@angular/common": "^18.0.0",
|
|
241
|
+
"@angular/core": "^18.0.0",
|
|
242
|
+
"@angular/material": "^18.0.0",
|
|
243
|
+
"@angular/platform-browser": "^18.0.0",
|
|
244
|
+
"@floating-ui/utils": "^0.2.0",
|
|
245
|
+
"@igo2/core": "^17.0.1-next.2",
|
|
246
|
+
"@igo2/utils": "^17.0.1-next.2",
|
|
247
|
+
"angular-shepherd": "^18.0.0",
|
|
248
248
|
"ngx-color": "^9.0.0",
|
|
249
249
|
"scroll-into-view-if-needed": "^3.0.0",
|
|
250
250
|
"tinycolor2": "^1.6.0",
|
|
251
251
|
"typy": "^3.3.0"
|
|
252
252
|
},
|
|
253
253
|
"engines": {
|
|
254
|
-
"node": "
|
|
254
|
+
"node": "^18.19.1 || ^20.11.1 || >=22.0.0"
|
|
255
255
|
},
|
|
256
256
|
"module": "fesm2022/igo2-common.mjs",
|
|
257
257
|
"typings": "index.d.ts",
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
$primary: map.get($theme, primary);
|
|
11
11
|
|
|
12
12
|
igo-panel > .igo-panel-header {
|
|
13
|
-
background-color: mat.get-color-from-palette($primary);
|
|
14
|
-
color: mat.get-color-from-palette($primary, default-contrast);
|
|
13
|
+
background-color: mat.m2-get-color-from-palette($primary);
|
|
14
|
+
color: mat.m2-get-color-from-palette($primary, default-contrast);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
@mixin density($theme) {
|
|
19
|
-
$density: mat.get-density-config($theme);
|
|
19
|
+
$density: mat.m2-get-density-config($theme);
|
|
20
20
|
$theme: map.merge(
|
|
21
21
|
$theme,
|
|
22
22
|
(
|
|
@@ -7,12 +7,8 @@ export interface TableColumn {
|
|
|
7
7
|
displayed?: boolean;
|
|
8
8
|
html?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export type RowClassFunc = (row: any) =>
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
export type CellClassFunc = (row: any, column: TableColumn) => {
|
|
14
|
-
[key: string]: string;
|
|
15
|
-
};
|
|
10
|
+
export type RowClassFunc = (row: any) => Record<string, string>;
|
|
11
|
+
export type CellClassFunc = (row: any, column: TableColumn) => Record<string, string>;
|
|
16
12
|
export type ClickAction = (item: any) => void;
|
|
17
13
|
export interface TableAction {
|
|
18
14
|
icon: string;
|