@igo2/common 21.0.0-next.4 → 21.0.0-next.40

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.
Files changed (82) hide show
  1. package/fesm2022/igo2-common-action.mjs +16 -16
  2. package/fesm2022/igo2-common-action.mjs.map +1 -1
  3. package/fesm2022/igo2-common-backdrop.mjs +7 -7
  4. package/fesm2022/igo2-common-backdrop.mjs.map +1 -1
  5. package/fesm2022/igo2-common-badge.mjs +7 -7
  6. package/fesm2022/igo2-common-badge.mjs.map +1 -1
  7. package/fesm2022/igo2-common-clickout.mjs +7 -7
  8. package/fesm2022/igo2-common-clickout.mjs.map +1 -1
  9. package/fesm2022/igo2-common-clone.mjs +7 -7
  10. package/fesm2022/igo2-common-clone.mjs.map +1 -1
  11. package/fesm2022/igo2-common-collapsible.mjs +10 -10
  12. package/fesm2022/igo2-common-collapsible.mjs.map +1 -1
  13. package/fesm2022/igo2-common-color.mjs +8 -8
  14. package/fesm2022/igo2-common-color.mjs.map +1 -1
  15. package/fesm2022/igo2-common-confirm-dialog.mjs +10 -10
  16. package/fesm2022/igo2-common-confirm-dialog.mjs.map +1 -1
  17. package/fesm2022/igo2-common-context-menu.mjs +10 -10
  18. package/fesm2022/igo2-common-context-menu.mjs.map +1 -1
  19. package/fesm2022/igo2-common-custom-html.mjs +10 -10
  20. package/fesm2022/igo2-common-custom-html.mjs.map +1 -1
  21. package/fesm2022/igo2-common-datepicker.mjs +3 -3
  22. package/fesm2022/igo2-common-datepicker.mjs.map +1 -1
  23. package/fesm2022/igo2-common-dom.mjs +7 -7
  24. package/fesm2022/igo2-common-dom.mjs.map +1 -1
  25. package/fesm2022/igo2-common-drag-drop.mjs +31 -10
  26. package/fesm2022/igo2-common-drag-drop.mjs.map +1 -1
  27. package/fesm2022/igo2-common-dynamic-component.mjs +14 -14
  28. package/fesm2022/igo2-common-dynamic-component.mjs.map +1 -1
  29. package/fesm2022/igo2-common-entity.mjs +31 -31
  30. package/fesm2022/igo2-common-entity.mjs.map +1 -1
  31. package/fesm2022/igo2-common-flexible.mjs +17 -14
  32. package/fesm2022/igo2-common-flexible.mjs.map +1 -1
  33. package/fesm2022/igo2-common-form.mjs +811 -110
  34. package/fesm2022/igo2-common-form.mjs.map +1 -1
  35. package/fesm2022/igo2-common-home-button.mjs +7 -7
  36. package/fesm2022/igo2-common-home-button.mjs.map +1 -1
  37. package/fesm2022/igo2-common-icon.mjs +6 -6
  38. package/fesm2022/igo2-common-icon.mjs.map +1 -1
  39. package/fesm2022/igo2-common-image.mjs +10 -10
  40. package/fesm2022/igo2-common-image.mjs.map +1 -1
  41. package/fesm2022/igo2-common-interactive-tour.mjs +13 -13
  42. package/fesm2022/igo2-common-interactive-tour.mjs.map +1 -1
  43. package/fesm2022/igo2-common-json-dialog.mjs +10 -10
  44. package/fesm2022/igo2-common-json-dialog.mjs.map +1 -1
  45. package/fesm2022/igo2-common-keyvalue.mjs +7 -7
  46. package/fesm2022/igo2-common-keyvalue.mjs.map +1 -1
  47. package/fesm2022/igo2-common-list.mjs +10 -10
  48. package/fesm2022/igo2-common-list.mjs.map +1 -1
  49. package/fesm2022/igo2-common-panel.mjs +7 -7
  50. package/fesm2022/igo2-common-panel.mjs.map +1 -1
  51. package/fesm2022/igo2-common-resizable-bar.mjs +6 -6
  52. package/fesm2022/igo2-common-resizable-bar.mjs.map +1 -1
  53. package/fesm2022/igo2-common-sidenav.mjs +7 -7
  54. package/fesm2022/igo2-common-sidenav.mjs.map +1 -1
  55. package/fesm2022/igo2-common-spinner.mjs +10 -10
  56. package/fesm2022/igo2-common-spinner.mjs.map +1 -1
  57. package/fesm2022/igo2-common-stop-propagation.mjs +10 -10
  58. package/fesm2022/igo2-common-stop-propagation.mjs.map +1 -1
  59. package/fesm2022/igo2-common-table.mjs +7 -7
  60. package/fesm2022/igo2-common-table.mjs.map +1 -1
  61. package/fesm2022/igo2-common-timepicker.mjs +3 -3
  62. package/fesm2022/igo2-common-timepicker.mjs.map +1 -1
  63. package/fesm2022/igo2-common-tool.mjs +14 -14
  64. package/fesm2022/igo2-common-tool.mjs.map +1 -1
  65. package/fesm2022/igo2-common-widget.mjs +14 -14
  66. package/fesm2022/igo2-common-widget.mjs.map +1 -1
  67. package/fesm2022/igo2-common-workspace.mjs +18 -18
  68. package/fesm2022/igo2-common-workspace.mjs.map +1 -1
  69. package/fesm2022/igo2-common.mjs +0 -1
  70. package/fesm2022/igo2-common.mjs.map +1 -1
  71. package/locale/en.common.json +0 -7
  72. package/locale/fr.common.json +0 -7
  73. package/package.json +3 -7
  74. package/style/style.css +1 -1
  75. package/types/igo2-common-drag-drop.d.ts +3 -1
  76. package/types/igo2-common-entity.d.ts +2 -2
  77. package/types/igo2-common-flexible.d.ts +3 -2
  78. package/types/igo2-common-form.d.ts +365 -76
  79. package/types/igo2-common.d.ts +0 -1
  80. package/fesm2022/igo2-common-select-value-dialog.mjs +0 -155
  81. package/fesm2022/igo2-common-select-value-dialog.mjs.map +0 -1
  82. package/types/igo2-common-select-value-dialog.d.ts +0 -65
@@ -1 +1 @@
1
- {"version":3,"file":"igo2-common-widget.mjs","sources":["../../../packages/common/widget/src/shared/widget.ts","../../../packages/common/widget/src/shared/widget.service.ts","../../../packages/common/widget/src/widget-outlet/widget-outlet.component.ts","../../../packages/common/widget/src/widget-outlet/widget-outlet.component.html","../../../packages/common/widget/src/widget-outlet/widget-outlet.module.ts","../../../packages/common/widget/src/widget.module.ts","../../../packages/common/widget/src/igo2-common-widget.ts"],"sourcesContent":["import { DynamicComponent } from '@igo2/common/dynamic-component';\n\nimport { WidgetComponent } from './widget.interfaces';\n\nexport class Widget extends DynamicComponent<WidgetComponent> {}\n","import { Injectable, inject } from '@angular/core';\n\nimport { DynamicComponentService } from '@igo2/common/dynamic-component';\n\nimport { Widget } from './widget';\nimport { WidgetComponent } from './widget.interfaces';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class WidgetService {\n private dynamicComponentService = inject(DynamicComponentService);\n\n create(widgetCls: any): Widget {\n return this.dynamicComponentService.create(widgetCls as WidgetComponent);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n OnDestroy,\n input,\n model,\n output\n} from '@angular/core';\n\nimport {\n DynamicComponent,\n DynamicOutletComponent\n} from '@igo2/common/dynamic-component';\n\nimport { WidgetComponent } from '../shared/widget.interfaces';\n\n/**\n * This component dynamically renders a widget. It also subscribes\n * to the widget's 'cancel' and 'complete' events and destroys it\n * when any of those event is emitted.\n */\n@Component({\n selector: 'igo-widget-outlet',\n templateUrl: './widget-outlet.component.html',\n styleUrls: ['./widget-outlet.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [DynamicOutletComponent]\n})\nexport class WidgetOutletComponent implements OnDestroy {\n /**\n * Widget subscribers to 'cancel' and 'complete'\n * @internal\n */\n private baseSubscribers: Record<string, (event: string) => void> = {\n cancel: (event: string) => this.onCancel(event),\n complete: (event: string) => this.onComplete(event)\n };\n\n /**\n * Widget\n */\n readonly widget = model<DynamicComponent<WidgetComponent>>();\n\n /**\n * Widget inputs\n */\n readonly inputs = input.required<Record<string, unknown> | undefined>();\n\n /**\n * Widget subscribers\n */\n readonly subscribers = input<Record<string, (event: string) => void>>({});\n\n /**\n * Event emitted when the widget emits 'complete'\n */\n readonly complete = output<string>();\n\n /**\n * Event emitted when the widget emits 'cancel'\n */\n readonly cancel = output<string>();\n\n /**\n * Destroy the current widget and all it's inner subscriptions\n * @internal\n */\n ngOnDestroy() {\n this.destroyWidget();\n }\n\n /**\n * Get the effective subscribers. That means a combination of the base\n * subscribers and any subscriber given as input.\n * @returns Combined subscribers\n * @internal\n */\n getEffectiveSubscribers(): Record<string, (event: string) => void> {\n const subscribers = Object.assign({}, this.subscribers());\n\n // Base subscribers\n Object.keys(this.baseSubscribers).forEach((key: string) => {\n const subscriber = subscribers[key];\n const baseSubscriber = this.baseSubscribers[key];\n if (subscriber !== undefined) {\n subscribers[key] = (event: string) => {\n subscriber(event);\n baseSubscriber(event);\n };\n } else {\n subscribers[key] = baseSubscriber;\n }\n });\n\n return subscribers;\n }\n\n /**\n * When the widget emits 'cancel', propagate that event and destroy\n * the widget\n */\n private onCancel(event: string) {\n this.cancel.emit(event);\n this.destroyWidget();\n }\n\n /**\n * When the widget emits 'complete', propagate that event and destroy\n * the widget\n */\n private onComplete(event: string) {\n this.complete.emit(event);\n this.destroyWidget();\n }\n\n /**\n * Destroy the current widget\n */\n private destroyWidget() {\n const widget = this.widget();\n if (widget !== undefined) {\n widget.destroy();\n }\n this.widget.set(undefined);\n }\n}\n","@if (widget()) {\n <igo-dynamic-outlet\n [component]=\"widget()\"\n [inputs]=\"inputs()\"\n [subscribers]=\"getEffectiveSubscribers()\"\n />\n}\n","import { NgModule } from '@angular/core';\n\nimport { WidgetOutletComponent } from './widget-outlet.component';\n\n/**\n * @deprecated import the WidgetOutletComponent directly\n */\n@NgModule({\n imports: [WidgetOutletComponent],\n exports: [WidgetOutletComponent]\n})\nexport class IgoWidgetOutletModule {}\n","import { NgModule } from '@angular/core';\n\nimport { WidgetService } from './shared/widget.service';\nimport { IgoWidgetOutletModule } from './widget-outlet/widget-outlet.module';\n\n/**\n * @deprecated import the WidgetOutletComponent directly\n */\n@NgModule({\n imports: [IgoWidgetOutletModule],\n exports: [IgoWidgetOutletModule],\n declarations: [],\n providers: [WidgetService]\n})\nexport class IgoWidgetModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;AAIM,MAAO,MAAO,SAAQ,gBAAiC,CAAA;AAAG;;MCMnD,aAAa,CAAA;AAChB,IAAA,uBAAuB,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAEjE,IAAA,MAAM,CAAC,SAAc,EAAA;QACnB,OAAO,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,SAA4B,CAAC;IAC1E;wGALW,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAA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AAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,YAHtB,qBAAqB,CAAA,EAAA,CAAA;;4FAGpB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAJjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,qBAAqB,CAAC;oBAChC,OAAO,EAAE,CAAC,qBAAqB;AAChC,iBAAA;;;ACLD;;AAEG;MAOU,eAAe,CAAA;wGAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;yGAAf,eAAe,EAAA,OAAA,EAAA,CALhB,qBAAqB,CAAA,EAAA,OAAA,EAAA,CACrB,qBAAqB,CAAA,EAAA,CAAA;AAIpB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,aAFf,CAAC,aAAa,CAAC,EAAA,OAAA,EAAA,CAHhB,qBAAqB,EACrB,qBAAqB,CAAA,EAAA,CAAA;;4FAIpB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAN3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,qBAAqB,CAAC;oBAChC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AAChC,oBAAA,YAAY,EAAE,EAAE;oBAChB,SAAS,EAAE,CAAC,aAAa;AAC1B,iBAAA;;;ACbD;;AAEG;;;;"}
1
+ {"version":3,"file":"igo2-common-widget.mjs","sources":["../../../packages/common/widget/src/shared/widget.ts","../../../packages/common/widget/src/shared/widget.service.ts","../../../packages/common/widget/src/widget-outlet/widget-outlet.component.ts","../../../packages/common/widget/src/widget-outlet/widget-outlet.component.html","../../../packages/common/widget/src/widget-outlet/widget-outlet.module.ts","../../../packages/common/widget/src/widget.module.ts","../../../packages/common/widget/src/igo2-common-widget.ts"],"sourcesContent":["import { DynamicComponent } from '@igo2/common/dynamic-component';\n\nimport { WidgetComponent } from './widget.interfaces';\n\nexport class Widget extends DynamicComponent<WidgetComponent> {}\n","import { Injectable, inject } from '@angular/core';\n\nimport { DynamicComponentService } from '@igo2/common/dynamic-component';\n\nimport { Widget } from './widget';\nimport { WidgetComponent } from './widget.interfaces';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class WidgetService {\n private dynamicComponentService = inject(DynamicComponentService);\n\n create(widgetCls: any): Widget {\n return this.dynamicComponentService.create(widgetCls as WidgetComponent);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n OnDestroy,\n input,\n model,\n output\n} from '@angular/core';\n\nimport {\n DynamicComponent,\n DynamicOutletComponent\n} from '@igo2/common/dynamic-component';\n\nimport { WidgetComponent } from '../shared/widget.interfaces';\n\n/**\n * This component dynamically renders a widget. It also subscribes\n * to the widget's 'cancel' and 'complete' events and destroys it\n * when any of those event is emitted.\n */\n@Component({\n selector: 'igo-widget-outlet',\n templateUrl: './widget-outlet.component.html',\n styleUrls: ['./widget-outlet.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [DynamicOutletComponent]\n})\nexport class WidgetOutletComponent implements OnDestroy {\n /**\n * Widget subscribers to 'cancel' and 'complete'\n * @internal\n */\n private baseSubscribers: Record<string, (event: string) => void> = {\n cancel: (event: string) => this.onCancel(event),\n complete: (event: string) => this.onComplete(event)\n };\n\n /**\n * Widget\n */\n readonly widget = model<DynamicComponent<WidgetComponent>>();\n\n /**\n * Widget inputs\n */\n readonly inputs = input.required<Record<string, unknown> | undefined>();\n\n /**\n * Widget subscribers\n */\n readonly subscribers = input<Record<string, (event: string) => void>>({});\n\n /**\n * Event emitted when the widget emits 'complete'\n */\n readonly complete = output<string>();\n\n /**\n * Event emitted when the widget emits 'cancel'\n */\n readonly cancel = output<string>();\n\n /**\n * Destroy the current widget and all it's inner subscriptions\n * @internal\n */\n ngOnDestroy() {\n this.destroyWidget();\n }\n\n /**\n * Get the effective subscribers. That means a combination of the base\n * subscribers and any subscriber given as input.\n * @returns Combined subscribers\n * @internal\n */\n getEffectiveSubscribers(): Record<string, (event: string) => void> {\n const subscribers = Object.assign({}, this.subscribers());\n\n // Base subscribers\n Object.keys(this.baseSubscribers).forEach((key: string) => {\n const subscriber = subscribers[key];\n const baseSubscriber = this.baseSubscribers[key];\n if (subscriber !== undefined) {\n subscribers[key] = (event: string) => {\n subscriber(event);\n baseSubscriber(event);\n };\n } else {\n subscribers[key] = baseSubscriber;\n }\n });\n\n return subscribers;\n }\n\n /**\n * When the widget emits 'cancel', propagate that event and destroy\n * the widget\n */\n private onCancel(event: string) {\n this.cancel.emit(event);\n this.destroyWidget();\n }\n\n /**\n * When the widget emits 'complete', propagate that event and destroy\n * the widget\n */\n private onComplete(event: string) {\n this.complete.emit(event);\n this.destroyWidget();\n }\n\n /**\n * Destroy the current widget\n */\n private destroyWidget() {\n const widget = this.widget();\n if (widget !== undefined) {\n widget.destroy();\n }\n this.widget.set(undefined);\n }\n}\n","@if (widget()) {\n <igo-dynamic-outlet\n [component]=\"widget()\"\n [inputs]=\"inputs()\"\n [subscribers]=\"getEffectiveSubscribers()\"\n />\n}\n","import { NgModule } from '@angular/core';\n\nimport { WidgetOutletComponent } from './widget-outlet.component';\n\n/**\n * @deprecated import the WidgetOutletComponent directly\n */\n@NgModule({\n imports: [WidgetOutletComponent],\n exports: [WidgetOutletComponent]\n})\nexport class IgoWidgetOutletModule {}\n","import { NgModule } from '@angular/core';\n\nimport { WidgetService } from './shared/widget.service';\nimport { IgoWidgetOutletModule } from './widget-outlet/widget-outlet.module';\n\n/**\n * @deprecated import the WidgetOutletComponent directly\n */\n@NgModule({\n imports: [IgoWidgetOutletModule],\n exports: [IgoWidgetOutletModule],\n declarations: [],\n providers: [WidgetService]\n})\n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,UAAA,EAAA,CAAA;kBAN3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,qBAAqB,CAAC;oBAChC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AAChC,oBAAA,YAAY,EAAE,EAAE;oBAChB,SAAS,EAAE,CAAC,aAAa;AAC1B,iBAAA;;;ACbD;;AAEG;;"}
@@ -211,10 +211,10 @@ class WorkspaceSelectorComponent {
211
211
  this.store().activateWorkspace(workspace);
212
212
  this.selectedChange.emit({ selected: true, value: workspace });
213
213
  }
214
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: WorkspaceSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
215
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.10", type: WorkspaceSelectorComponent, isStandalone: true, selector: "igo-workspace-selector", inputs: { store: { classPropertyName: "store", publicName: "store", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, 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", 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 });
214
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: WorkspaceSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
215
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.24", type: WorkspaceSelectorComponent, isStandalone: true, selector: "igo-workspace-selector", inputs: { store: { classPropertyName: "store", publicName: "store", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, 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", 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 });
216
216
  }
217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: WorkspaceSelectorComponent, decorators: [{
217
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: WorkspaceSelectorComponent, decorators: [{
218
218
  type: Component,
219
219
  args: [{ selector: 'igo-workspace-selector', changeDetection: ChangeDetectionStrategy.OnPush, imports: [EntitySelectorComponent], template: "<igo-entity-selector\n [store]=\"store()\"\n [multi]=\"false\"\n [titleAccessor]=\"getWorkspaceTitle\"\n [disabled]=\"disabled()\"\n (selectedChange)=\"onSelectedChange($event)\"\n/>\n" }]
220
220
  }], propDecorators: { store: [{ type: i0.Input, args: [{ isSignal: true, alias: "store", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], selectedChange: [{ type: i0.Output, args: ["selectedChange"] }] } });
@@ -223,11 +223,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
223
223
  * @deprecated import the WorkspaceSelectorComponent directly
224
224
  */
225
225
  class IgoWorkspaceSelectorModule {
226
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: IgoWorkspaceSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
227
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.10", ngImport: i0, type: IgoWorkspaceSelectorModule, imports: [WorkspaceSelectorComponent], exports: [WorkspaceSelectorComponent] });
228
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: IgoWorkspaceSelectorModule, imports: [WorkspaceSelectorComponent] });
226
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: IgoWorkspaceSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
227
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.24", ngImport: i0, type: IgoWorkspaceSelectorModule, imports: [WorkspaceSelectorComponent], exports: [WorkspaceSelectorComponent] });
228
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: IgoWorkspaceSelectorModule, imports: [WorkspaceSelectorComponent] });
229
229
  }
230
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: IgoWorkspaceSelectorModule, decorators: [{
230
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: IgoWorkspaceSelectorModule, decorators: [{
231
231
  type: NgModule,
232
232
  args: [{
233
233
  imports: [WorkspaceSelectorComponent],
@@ -291,10 +291,10 @@ class WorkspaceWidgetOutletComponent {
291
291
  this.workspace().deactivateWidget();
292
292
  this.deactivateWidget.emit(widget);
293
293
  }
294
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: WorkspaceWidgetOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
295
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.10", type: WorkspaceWidgetOutletComponent, isStandalone: true, selector: "igo-workspace-widget-outlet", inputs: { workspace: { classPropertyName: "workspace", publicName: "workspace", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { deactivateWidget: "deactivateWidget" }, ngImport: i0, template: "@if (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}\n", styles: ["igo-widget-outlet{height:100%}\n"], dependencies: [{ kind: "component", type: WidgetOutletComponent, selector: "igo-widget-outlet", inputs: ["widget", "inputs", "subscribers"], outputs: ["widgetChange", "complete", "cancel"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
294
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: WorkspaceWidgetOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
295
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: WorkspaceWidgetOutletComponent, isStandalone: true, selector: "igo-workspace-widget-outlet", inputs: { workspace: { classPropertyName: "workspace", publicName: "workspace", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { deactivateWidget: "deactivateWidget" }, ngImport: i0, template: "@if (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}\n", styles: ["igo-widget-outlet{height:100%}\n"], dependencies: [{ kind: "component", type: WidgetOutletComponent, selector: "igo-widget-outlet", inputs: ["widget", "inputs", "subscribers"], outputs: ["widgetChange", "complete", "cancel"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
296
296
  }
297
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: WorkspaceWidgetOutletComponent, decorators: [{
297
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: WorkspaceWidgetOutletComponent, decorators: [{
298
298
  type: Component,
299
299
  args: [{ selector: 'igo-workspace-widget-outlet', changeDetection: ChangeDetectionStrategy.OnPush, imports: [WidgetOutletComponent, AsyncPipe], template: "@if (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}\n", styles: ["igo-widget-outlet{height:100%}\n"] }]
300
300
  }], propDecorators: { workspace: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspace", required: true }] }], deactivateWidget: [{ type: i0.Output, args: ["deactivateWidget"] }] } });
@@ -303,11 +303,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
303
303
  * @deprecated import the WorkspaceWidgetOutletComponent directly
304
304
  */
305
305
  class IgoWorkspaceWidgetOutletModule {
306
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
307
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.10", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, imports: [WorkspaceWidgetOutletComponent], exports: [WorkspaceWidgetOutletComponent] });
308
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, imports: [WorkspaceWidgetOutletComponent] });
306
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
307
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.24", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, imports: [WorkspaceWidgetOutletComponent], exports: [WorkspaceWidgetOutletComponent] });
308
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, imports: [WorkspaceWidgetOutletComponent] });
309
309
  }
310
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, decorators: [{
310
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, decorators: [{
311
311
  type: NgModule,
312
312
  args: [{
313
313
  imports: [WorkspaceWidgetOutletComponent],
@@ -323,13 +323,13 @@ const WORKSPACE_DIRECTIVES = [
323
323
  * @deprecated import the components directly or WORKSPACE_DIRECTIVES for every components/directives
324
324
  */
325
325
  class IgoWorkspaceModule {
326
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: IgoWorkspaceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
327
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.10", ngImport: i0, type: IgoWorkspaceModule, imports: [WorkspaceSelectorComponent,
326
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: IgoWorkspaceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
327
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.24", ngImport: i0, type: IgoWorkspaceModule, imports: [WorkspaceSelectorComponent,
328
328
  WorkspaceWidgetOutletComponent], exports: [WorkspaceSelectorComponent,
329
329
  WorkspaceWidgetOutletComponent] });
330
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: IgoWorkspaceModule, imports: [WORKSPACE_DIRECTIVES] });
330
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: IgoWorkspaceModule, imports: [WORKSPACE_DIRECTIVES] });
331
331
  }
332
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: IgoWorkspaceModule, decorators: [{
332
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: IgoWorkspaceModule, decorators: [{
333
333
  type: NgModule,
334
334
  args: [{
335
335
  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$ = new BehaviorSubject<Workspace | undefined>(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>(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 | number {\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> | undefined {\n return this.options.entityStore as EntityStore<E> | undefined;\n }\n\n /**\n * Actions store (some actions activate a widget)\n */\n get actionStore(): ActionStore | undefined {\n return this.options.actionStore;\n }\n\n /**\n * Selected widget\n */\n get widget(): Widget | undefined {\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 this.entities$$?.unsubscribe();\n this.change$$?.unsubscribe();\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 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 imports: [EntitySelectorComponent]\n})\nexport class WorkspaceSelectorComponent {\n /**\n * Store that holds the available workspaces.\n */\n readonly store = input.required<WorkspaceStore>();\n\n /**\n * Wheither the selector must be disabled or not.\n */\n readonly disabled = input<boolean>(false);\n\n /**\n * Event emitted when an workspace is selected or unselected\n */\n readonly selectedChange = output<{\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","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 } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\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 imports: [WidgetOutletComponent, AsyncPipe]\n})\nexport class WorkspaceWidgetOutletComponent {\n /**\n * Workspace\n */\n readonly workspace = input.required<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 readonly deactivateWidget = output<Widget>();\n\n /**\n * Observable of the workspace's active widget\n * @internal\n */\n get widget$(): BehaviorSubject<Widget | undefined> {\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, unknown>> {\n return this.workspace().widgetInputs$;\n }\n\n /**\n * Observable of the workspace's widget inputs\n * @internal\n */\n get widgetSubscribers$():\n | BehaviorSubject<Record<string, (event: unknown) => void>>\n | undefined {\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","@if (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}\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,CAAwB,SAAS,CAAC;AAExE;;;AAGG;AACH,IAAA,iBAAiB,CAAC,SAAoB,EAAA;AACpC,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,KAAK;AAC1C,QAAA,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MAAM,CAAC,UAAU,EAAE;QACrB;QAEA,IAAI,CAAC,mBAAmB,EAAE;AAC1B,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;AACpE,YAAA,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC;YACrC,SAAS,CAAC,QAAQ,EAAE;QACtB;IACF;AAEA;;;AAGG;IACH,mBAAmB,GAAA;AACjB,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,KAAK;AAC1C,QAAA,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MAAM,CAAC,UAAU,EAAE;AACnB,YAAA,IAA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,oBAAoB,GAAG;IAClC,0BAA0B;IAC1B;;AAGF;;AAEG;MAMU,kBAAkB,CAAA;wGAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAlB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAZ7B,0BAA0B;AAC1B,YAAA,8BAA8B,aAD9B,0BAA0B;YAC1B,8BAA8B,CAAA,EAAA,CAAA;AAWnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAJhB,oBAAoB,CAAA,EAAA,CAAA;;4FAItB,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;AACf,iBAAA;;;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>(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>(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 | number {\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> | undefined {\n return this.options.entityStore as EntityStore<E> | undefined;\n }\n\n /**\n * Actions store (some actions activate a widget)\n */\n get actionStore(): ActionStore | undefined {\n return this.options.actionStore;\n }\n\n /**\n * Selected widget\n */\n get widget(): Widget | undefined {\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 this.entities$$?.unsubscribe();\n this.change$$?.unsubscribe();\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 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 imports: [EntitySelectorComponent]\n})\nexport class WorkspaceSelectorComponent {\n /**\n * Store that holds the available workspaces.\n */\n readonly store = input.required<WorkspaceStore>();\n\n /**\n * Wheither the selector must be disabled or not.\n */\n readonly disabled = input<boolean>(false);\n\n /**\n * Event emitted when an workspace is selected or unselected\n */\n readonly selectedChange = output<{\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","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 } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\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 imports: [WidgetOutletComponent, AsyncPipe]\n})\nexport class WorkspaceWidgetOutletComponent {\n /**\n * Workspace\n */\n readonly workspace = input.required<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 readonly deactivateWidget = output<Widget>();\n\n /**\n * Observable of the workspace's active widget\n * @internal\n */\n get widget$(): BehaviorSubject<Widget | undefined> {\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, unknown>> {\n return this.workspace().widgetInputs$;\n }\n\n /**\n * Observable of the workspace's widget inputs\n * @internal\n */\n get widgetSubscribers$():\n BehaviorSubject<Record<string, (event: unknown) => void>> | undefined {\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","@if (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}\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,CAAwB,SAAS,CAAC;AAExE;;;AAGG;AACH,IAAA,iBAAiB,CAAC,SAAoB,EAAA;AACpC,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,KAAK;AAC1C,QAAA,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MAAM,CAAC,UAAU,EAAE;QACrB;QAEA,IAAI,CAAC,mBAAmB,EAAE;AAC1B,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;AACpE,YAAA,IAAI,CAAC,gBAAgB,CAA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'@igo2/common/form';
7
7
  export { IgoListModule } from '@igo2/common/list';
8
8
  export { IgoPanelModule } from '@igo2/common/panel';
9
- export { IgoSelectValueDialogModule } from '@igo2/common/select-value-dialog';
10
9
  export { IgoSidenavModule } from '@igo2/common/sidenav';
11
10
  export { IgoSpinnerModule } from '@igo2/common/spinner';
12
11
  export { IgoStopPropagationModule } from '@igo2/common/stop-propagation';
@@ -1 +1 @@
1
- {"version":3,"file":"igo2-common.mjs","sources":["../../../packages/common/src/public_api.ts","../../../packages/common/src/igo2-common.ts"],"sourcesContent":["/*\n * Public API Surface of common\n */\n\nexport { IgoHomeButtonModule } from '@igo2/common/home-button';\nexport { IgoImageModule } from '@igo2/common/image';\nexport { IgoInteractiveTourModule } from '@igo2/common/interactive-tour';\nexport { IgoJsonDialogModule } from '@igo2/common/json-dialog';\nexport { IgoKeyValueModule } from '@igo2/common/keyvalue';\nexport {\n IgoFormDialogModule,\n IgoFormFormModule,\n IgoFormFieldModule,\n IgoFormGroupModule,\n IgoFormModule\n} from '@igo2/common/form';\nexport { IgoListModule } from '@igo2/common/list';\nexport { IgoPanelModule } from '@igo2/common/panel';\nexport { IgoSelectValueDialogModule } from '@igo2/common/select-value-dialog';\nexport { IgoSidenavModule } from '@igo2/common/sidenav';\nexport { IgoSpinnerModule } from '@igo2/common/spinner';\nexport { IgoStopPropagationModule } from '@igo2/common/stop-propagation';\nexport { IgoTableModule } from '@igo2/common/table';\nexport { IgoToolModule, IgoToolboxModule } from '@igo2/common/tool';\nexport { IgoWidgetModule, IgoWidgetOutletModule } from '@igo2/common/widget';\nexport {\n IgoWorkspaceModule,\n IgoWorkspaceSelectorModule,\n IgoWorkspaceWidgetOutletModule\n} from '@igo2/common/workspace';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;AAEG;;ACFH;;AAEG"}
1
+ {"version":3,"file":"igo2-common.mjs","sources":["../../../packages/common/src/public_api.ts","../../../packages/common/src/igo2-common.ts"],"sourcesContent":["/*\n * Public API Surface of common\n */\n\nexport { IgoHomeButtonModule } from '@igo2/common/home-button';\nexport { IgoImageModule } from '@igo2/common/image';\nexport { IgoInteractiveTourModule } from '@igo2/common/interactive-tour';\nexport { IgoJsonDialogModule } from '@igo2/common/json-dialog';\nexport { IgoKeyValueModule } from '@igo2/common/keyvalue';\nexport {\n IgoFormDialogModule,\n IgoFormFormModule,\n IgoFormFieldModule,\n IgoFormGroupModule,\n IgoFormModule\n} from '@igo2/common/form';\nexport { IgoListModule } from '@igo2/common/list';\nexport { IgoPanelModule } from '@igo2/common/panel';\nexport { IgoSidenavModule } from '@igo2/common/sidenav';\nexport { IgoSpinnerModule } from '@igo2/common/spinner';\nexport { IgoStopPropagationModule } from '@igo2/common/stop-propagation';\nexport { IgoTableModule } from '@igo2/common/table';\nexport { IgoToolModule, IgoToolboxModule } from '@igo2/common/tool';\nexport { IgoWidgetModule, IgoWidgetOutletModule } from '@igo2/common/widget';\nexport {\n IgoWorkspaceModule,\n IgoWorkspaceSelectorModule,\n IgoWorkspaceWidgetOutletModule\n} from '@igo2/common/workspace';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;AAEG;;ACFH;;AAEG"}
@@ -15,13 +15,6 @@
15
15
  "maxLevel": "The maximum hierarchical level is reached ({{value}})"
16
16
  }
17
17
  },
18
- "selectValueDialog": {
19
- "cancelButtonText": "Cancel",
20
- "processButtonText": "Select",
21
- "multipleTitle": "Please, select values",
22
- "title": "Please, select a value",
23
- "selectFieldText": "Options"
24
- },
25
18
  "formDialog": {
26
19
  "cancelButtonText": "Cancel",
27
20
  "processButtonText": "Submit",
@@ -15,13 +15,6 @@
15
15
  "maxLevel": "Le maximum de niveau hiérarchique est atteint ({{value}})"
16
16
  }
17
17
  },
18
- "selectValueDialog": {
19
- "cancelButtonText": "Annuler",
20
- "processButtonText": "Sélectionner",
21
- "multipleTitle": "Veuiller sélectionner une ou plusieurs valeurs",
22
- "title": "Veuiller sélectionner une valeur",
23
- "selectFieldText": "Options"
24
- },
25
18
  "formDialog": {
26
19
  "cancelButtonText": "Annuler",
27
20
  "processButtonText": "Confirmer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igo2/common",
3
- "version": "21.0.0-next.4",
3
+ "version": "21.0.0-next.40",
4
4
  "description": "IGO Library",
5
5
  "author": "IGO Community",
6
6
  "keywords": [
@@ -135,10 +135,6 @@
135
135
  "types": "./types/igo2-common-resizable-bar.d.ts",
136
136
  "default": "./fesm2022/igo2-common-resizable-bar.mjs"
137
137
  },
138
- "./select-value-dialog": {
139
- "types": "./types/igo2-common-select-value-dialog.d.ts",
140
- "default": "./fesm2022/igo2-common-select-value-dialog.mjs"
141
- },
142
138
  "./sidenav": {
143
139
  "types": "./types/igo2-common-sidenav.d.ts",
144
140
  "default": "./fesm2022/igo2-common-sidenav.mjs"
@@ -186,8 +182,8 @@
186
182
  "@angular/material": "^21.0.0",
187
183
  "@angular/platform-browser": "^21.0.0",
188
184
  "@floating-ui/utils": "^0.2.0",
189
- "@igo2/core": "^21.0.0-next.4",
190
- "@igo2/utils": "^21.0.0-next.4",
185
+ "@igo2/core": "^21.0.0-next.40",
186
+ "@igo2/utils": "^21.0.0-next.40",
191
187
  "angular-shepherd": "^22.0.0",
192
188
  "ngx-color": "^10.1.0",
193
189
  "scroll-into-view-if-needed": "^3.1.0",
package/style/style.css CHANGED
@@ -178,7 +178,7 @@
178
178
  background-color: #e6e6e6;
179
179
  }
180
180
 
181
- .shepherd-target-click-disabled.shepherd-enabled.shepherd-target, .shepherd-target-click-disabled.shepherd-enabled.shepherd-target * {
181
+ .shepherd-target-click-disabled.shepherd-target-click-disabled.shepherd-target-click-disabled, .shepherd-target-click-disabled.shepherd-target-click-disabled.shepherd-target-click-disabled * {
182
182
  pointer-events: none;
183
183
  }
184
184
 
@@ -82,7 +82,8 @@ declare class TreeDragDropDirective<T extends {
82
82
  get isGroup(): (node: T) => boolean;
83
83
  get getDescendantLevels(): (node: T) => number | undefined;
84
84
  ngOnDestroy(): void;
85
- hostDragOver(event: Event): void;
85
+ hostDragEnter(event: DragEvent): void;
86
+ hostDragOver(event: DragEvent): void;
86
87
  hostDragLeave(event: DragEvent): void;
87
88
  hostDrop(event: DragEvent): void;
88
89
  onDragStart(node: T): void;
@@ -102,6 +103,7 @@ declare class TreeDragDropDirective<T extends {
102
103
  private showDropTargetLine;
103
104
  private updateDropTargetLinePosition;
104
105
  private handleGroupExpansion;
106
+ private getLastRenderedNode;
105
107
  private getNodeElement;
106
108
  private canDropNode;
107
109
  private canDropGroup;
@@ -97,9 +97,9 @@ interface SelectOption {
97
97
  value: string;
98
98
  disabled?: boolean;
99
99
  }
100
- interface EntityTableButton {
100
+ interface EntityTableButton<T extends object> {
101
101
  icon: string;
102
- click: (entity: object, record: EntityRecord<object>) => void;
102
+ click: (record: EntityRecord<T>) => void;
103
103
  color?: 'primary' | 'accent' | 'warn';
104
104
  disabled?: boolean;
105
105
  style?: 'mat-mini-fab' | 'mat-icon-button';
@@ -1,10 +1,10 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { OnInit, OnDestroy, ElementRef, ModuleWithProviders } from '@angular/core';
2
+ import { OnInit, AfterViewInit, OnDestroy, ElementRef, ModuleWithProviders } from '@angular/core';
3
3
 
4
4
  type FlexibleState = 'initial' | 'collapsed' | 'expanded' | 'transition';
5
5
  type FlexibleDirection = 'column' | 'row';
6
6
 
7
- declare class FlexibleComponent implements OnInit, OnDestroy {
7
+ declare class FlexibleComponent implements OnInit, AfterViewInit, OnDestroy {
8
8
  private el;
9
9
  private mediaService;
10
10
  private cdr;
@@ -22,6 +22,7 @@ declare class FlexibleComponent implements OnInit, OnDestroy {
22
22
  private _state;
23
23
  private mediaService$$;
24
24
  ngOnInit(): void;
25
+ ngAfterViewInit(): void;
25
26
  ngOnDestroy(): void;
26
27
  private setSize;
27
28
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<FlexibleComponent, never>;