@igo2/common 20.2.0 → 21.0.0-next.10

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 (109) hide show
  1. package/fesm2022/igo2-common-action.mjs +62 -77
  2. package/fesm2022/igo2-common-action.mjs.map +1 -1
  3. package/fesm2022/igo2-common-backdrop.mjs +11 -20
  4. package/fesm2022/igo2-common-backdrop.mjs.map +1 -1
  5. package/fesm2022/igo2-common-badge.mjs +7 -8
  6. package/fesm2022/igo2-common-badge.mjs.map +1 -1
  7. package/fesm2022/igo2-common-clickout.mjs +11 -11
  8. package/fesm2022/igo2-common-clickout.mjs.map +1 -1
  9. package/fesm2022/igo2-common-clone.mjs +8 -9
  10. package/fesm2022/igo2-common-clone.mjs.map +1 -1
  11. package/fesm2022/igo2-common-collapsible.mjs +18 -27
  12. package/fesm2022/igo2-common-collapsible.mjs.map +1 -1
  13. package/fesm2022/igo2-common-color.mjs +10 -10
  14. package/fesm2022/igo2-common-color.mjs.map +1 -1
  15. package/fesm2022/igo2-common-confirm-dialog.mjs +12 -11
  16. package/fesm2022/igo2-common-confirm-dialog.mjs.map +1 -1
  17. package/fesm2022/igo2-common-context-menu.mjs +23 -27
  18. package/fesm2022/igo2-common-context-menu.mjs.map +1 -1
  19. package/fesm2022/igo2-common-custom-html.mjs +11 -12
  20. package/fesm2022/igo2-common-custom-html.mjs.map +1 -1
  21. package/fesm2022/igo2-common-datepicker.mjs +26 -20
  22. package/fesm2022/igo2-common-datepicker.mjs.map +1 -1
  23. package/fesm2022/igo2-common-dom.mjs +10 -8
  24. package/fesm2022/igo2-common-dom.mjs.map +1 -1
  25. package/fesm2022/igo2-common-drag-drop.mjs +83 -55
  26. package/fesm2022/igo2-common-drag-drop.mjs.map +1 -1
  27. package/fesm2022/igo2-common-dynamic-component.mjs +27 -21
  28. package/fesm2022/igo2-common-dynamic-component.mjs.map +1 -1
  29. package/fesm2022/igo2-common-entity.mjs +181 -148
  30. package/fesm2022/igo2-common-entity.mjs.map +1 -1
  31. package/fesm2022/igo2-common-flexible.mjs +26 -78
  32. package/fesm2022/igo2-common-flexible.mjs.map +1 -1
  33. package/fesm2022/igo2-common-form.mjs +426 -125
  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-icon.mjs +8 -8
  37. package/fesm2022/igo2-common-icon.mjs.map +1 -1
  38. package/fesm2022/igo2-common-image.mjs +14 -16
  39. package/fesm2022/igo2-common-image.mjs.map +1 -1
  40. package/fesm2022/igo2-common-interactive-tour.mjs +55 -32
  41. package/fesm2022/igo2-common-interactive-tour.mjs.map +1 -1
  42. package/fesm2022/igo2-common-json-dialog.mjs +11 -11
  43. package/fesm2022/igo2-common-json-dialog.mjs.map +1 -1
  44. package/fesm2022/igo2-common-keyvalue.mjs +11 -10
  45. package/fesm2022/igo2-common-keyvalue.mjs.map +1 -1
  46. package/fesm2022/igo2-common-list.mjs +28 -31
  47. package/fesm2022/igo2-common-list.mjs.map +1 -1
  48. package/fesm2022/igo2-common-panel.mjs +12 -13
  49. package/fesm2022/igo2-common-panel.mjs.map +1 -1
  50. package/fesm2022/igo2-common-resizable-bar.mjs +11 -17
  51. package/fesm2022/igo2-common-resizable-bar.mjs.map +1 -1
  52. package/fesm2022/igo2-common-select-value-dialog.mjs +23 -13
  53. package/fesm2022/igo2-common-select-value-dialog.mjs.map +1 -1
  54. package/fesm2022/igo2-common-sidenav.mjs +14 -19
  55. package/fesm2022/igo2-common-sidenav.mjs.map +1 -1
  56. package/fesm2022/igo2-common-spinner.mjs +14 -15
  57. package/fesm2022/igo2-common-spinner.mjs.map +1 -1
  58. package/fesm2022/igo2-common-stop-propagation.mjs +12 -14
  59. package/fesm2022/igo2-common-stop-propagation.mjs.map +1 -1
  60. package/fesm2022/igo2-common-table.mjs +62 -69
  61. package/fesm2022/igo2-common-table.mjs.map +1 -1
  62. package/fesm2022/igo2-common-timepicker.mjs +14 -15
  63. package/fesm2022/igo2-common-timepicker.mjs.map +1 -1
  64. package/fesm2022/igo2-common-tool.mjs +35 -32
  65. package/fesm2022/igo2-common-tool.mjs.map +1 -1
  66. package/fesm2022/igo2-common-widget.mjs +18 -18
  67. package/fesm2022/igo2-common-widget.mjs.map +1 -1
  68. package/fesm2022/igo2-common-workspace.mjs +28 -32
  69. package/fesm2022/igo2-common-workspace.mjs.map +1 -1
  70. package/package.json +60 -59
  71. package/{action/index.d.ts → types/igo2-common-action.d.ts} +2 -5
  72. package/{backdrop/index.d.ts → types/igo2-common-backdrop.d.ts} +2 -4
  73. package/{badge/index.d.ts → types/igo2-common-badge.d.ts} +4 -4
  74. package/{clickout/index.d.ts → types/igo2-common-clickout.d.ts} +1 -1
  75. package/{collapsible/index.d.ts → types/igo2-common-collapsible.d.ts} +2 -4
  76. package/{confirm-dialog/index.d.ts → types/igo2-common-confirm-dialog.d.ts} +1 -1
  77. package/{context-menu/index.d.ts → types/igo2-common-context-menu.d.ts} +2 -2
  78. package/{datepicker/index.d.ts → types/igo2-common-datepicker.d.ts} +9 -9
  79. package/{drag-drop/index.d.ts → types/igo2-common-drag-drop.d.ts} +15 -13
  80. package/{dynamic-component/index.d.ts → types/igo2-common-dynamic-component.d.ts} +3 -3
  81. package/{entity/index.d.ts → types/igo2-common-entity.d.ts} +64 -60
  82. package/types/igo2-common-flexible.d.ts +42 -0
  83. package/types/igo2-common-form.d.ts +568 -0
  84. package/{icon/index.d.ts → types/igo2-common-icon.d.ts} +1 -1
  85. package/{interactive-tour/index.d.ts → types/igo2-common-interactive-tour.d.ts} +6 -6
  86. package/{json-dialog/index.d.ts → types/igo2-common-json-dialog.d.ts} +4 -4
  87. package/{keyvalue/index.d.ts → types/igo2-common-keyvalue.d.ts} +4 -1
  88. package/{list/index.d.ts → types/igo2-common-list.d.ts} +7 -7
  89. package/{panel/index.d.ts → types/igo2-common-panel.d.ts} +1 -1
  90. package/{resizable-bar/index.d.ts → types/igo2-common-resizable-bar.d.ts} +4 -5
  91. package/{select-value-dialog/index.d.ts → types/igo2-common-select-value-dialog.d.ts} +2 -2
  92. package/{sidenav/index.d.ts → types/igo2-common-sidenav.d.ts} +2 -2
  93. package/{spinner/index.d.ts → types/igo2-common-spinner.d.ts} +1 -1
  94. package/{table/index.d.ts → types/igo2-common-table.d.ts} +17 -18
  95. package/{timepicker/index.d.ts → types/igo2-common-timepicker.d.ts} +3 -3
  96. package/{tool/index.d.ts → types/igo2-common-tool.d.ts} +7 -8
  97. package/{widget/index.d.ts → types/igo2-common-widget.d.ts} +7 -7
  98. package/{workspace/index.d.ts → types/igo2-common-workspace.d.ts} +12 -12
  99. package/flexible/index.d.ts +0 -56
  100. package/form/index.d.ts +0 -429
  101. /package/{clone/index.d.ts → types/igo2-common-clone.d.ts} +0 -0
  102. /package/{color/index.d.ts → types/igo2-common-color.d.ts} +0 -0
  103. /package/{custom-html/index.d.ts → types/igo2-common-custom-html.d.ts} +0 -0
  104. /package/{dom/index.d.ts → types/igo2-common-dom.d.ts} +0 -0
  105. /package/{environment/index.d.ts → types/igo2-common-environment.d.ts} +0 -0
  106. /package/{home-button/index.d.ts → types/igo2-common-home-button.d.ts} +0 -0
  107. /package/{image/index.d.ts → types/igo2-common-image.d.ts} +0 -0
  108. /package/{stop-propagation/index.d.ts → types/igo2-common-stop-propagation.d.ts} +0 -0
  109. /package/{index.d.ts → types/igo2-common.d.ts} +0 -0
@@ -70,7 +70,7 @@ class Workspace {
70
70
  /**
71
71
  * Subscription to state changes
72
72
  */
73
- change$;
73
+ change$$;
74
74
  /**
75
75
  * Workspace id
76
76
  */
@@ -147,12 +147,8 @@ class Workspace {
147
147
  deactivate() {
148
148
  this.active$.next(false);
149
149
  this.deactivateWidget();
150
- if (this.entities$$ !== undefined) {
151
- this.entities$$.unsubscribe();
152
- }
153
- if (this.change$ !== undefined) {
154
- this.change$.unsubscribe();
155
- }
150
+ this.entities$$?.unsubscribe();
151
+ this.change$$?.unsubscribe();
156
152
  }
157
153
  /**
158
154
  * Activate a widget. In itself, activating a widget doesn't render it but,
@@ -189,11 +185,11 @@ class WorkspaceSelectorComponent {
189
185
  /**
190
186
  * Store that holds the available workspaces.
191
187
  */
192
- store = input(undefined, ...(ngDevMode ? [{ debugName: "store" }] : []));
188
+ store = input.required(...(ngDevMode ? [{ debugName: "store" }] : /* istanbul ignore next */ []));
193
189
  /**
194
190
  * Wheither the selector must be disabled or not.
195
191
  */
196
- disabled = input(undefined, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
192
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
197
193
  /**
198
194
  * Event emitted when an workspace is selected or unselected
199
195
  */
@@ -215,23 +211,23 @@ class WorkspaceSelectorComponent {
215
211
  this.store().activateWorkspace(workspace);
216
212
  this.selectedChange.emit({ selected: true, value: workspace });
217
213
  }
218
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: WorkspaceSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
219
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.19", type: WorkspaceSelectorComponent, isStandalone: true, selector: "igo-workspace-selector", inputs: { store: { classPropertyName: "store", publicName: "store", isSignal: true, isRequired: false, 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.14", ngImport: i0, type: WorkspaceSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
215
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", 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 });
220
216
  }
221
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: WorkspaceSelectorComponent, decorators: [{
217
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: WorkspaceSelectorComponent, decorators: [{
222
218
  type: Component,
223
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" }]
224
- }], propDecorators: { store: [{ type: i0.Input, args: [{ isSignal: true, alias: "store", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], selectedChange: [{ type: i0.Output, args: ["selectedChange"] }] } });
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"] }] } });
225
221
 
226
222
  /**
227
223
  * @deprecated import the WorkspaceSelectorComponent directly
228
224
  */
229
225
  class IgoWorkspaceSelectorModule {
230
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: IgoWorkspaceSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
231
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.19", ngImport: i0, type: IgoWorkspaceSelectorModule, imports: [WorkspaceSelectorComponent], exports: [WorkspaceSelectorComponent] });
232
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: IgoWorkspaceSelectorModule, imports: [WorkspaceSelectorComponent] });
226
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: IgoWorkspaceSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
227
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.14", ngImport: i0, type: IgoWorkspaceSelectorModule, imports: [WorkspaceSelectorComponent], exports: [WorkspaceSelectorComponent] });
228
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: IgoWorkspaceSelectorModule, imports: [WorkspaceSelectorComponent] });
233
229
  }
234
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: IgoWorkspaceSelectorModule, decorators: [{
230
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: IgoWorkspaceSelectorModule, decorators: [{
235
231
  type: NgModule,
236
232
  args: [{
237
233
  imports: [WorkspaceSelectorComponent],
@@ -248,7 +244,7 @@ class WorkspaceWidgetOutletComponent {
248
244
  /**
249
245
  * Workspace
250
246
  */
251
- workspace = input(undefined, ...(ngDevMode ? [{ debugName: "workspace" }] : []));
247
+ workspace = input.required(...(ngDevMode ? [{ debugName: "workspace" }] : /* istanbul ignore next */ []));
252
248
  /**
253
249
  * Event emitted when a widget is deactivate which happens
254
250
  * when the widget's component emits the 'cancel' or 'complete' event.
@@ -273,7 +269,7 @@ class WorkspaceWidgetOutletComponent {
273
269
  * @internal
274
270
  */
275
271
  get widgetSubscribers$() {
276
- return this.workspace().widgetSubscribers$;
272
+ return this.workspace()?.widgetSubscribers$;
277
273
  }
278
274
  /**
279
275
  * When a widget's component emit the 'cancel' event,
@@ -295,23 +291,23 @@ class WorkspaceWidgetOutletComponent {
295
291
  this.workspace().deactivateWidget();
296
292
  this.deactivateWidget.emit(widget);
297
293
  }
298
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: WorkspaceWidgetOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
299
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: WorkspaceWidgetOutletComponent, isStandalone: true, selector: "igo-workspace-widget-outlet", inputs: { workspace: { classPropertyName: "workspace", publicName: "workspace", isSignal: true, isRequired: false, 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.14", ngImport: i0, type: WorkspaceWidgetOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
295
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", 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 });
300
296
  }
301
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: WorkspaceWidgetOutletComponent, decorators: [{
297
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: WorkspaceWidgetOutletComponent, decorators: [{
302
298
  type: Component,
303
- 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"] }]
304
- }], propDecorators: { workspace: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspace", required: false }] }], deactivateWidget: [{ type: i0.Output, args: ["deactivateWidget"] }] } });
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
+ }], propDecorators: { workspace: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspace", required: true }] }], deactivateWidget: [{ type: i0.Output, args: ["deactivateWidget"] }] } });
305
301
 
306
302
  /**
307
303
  * @deprecated import the WorkspaceWidgetOutletComponent directly
308
304
  */
309
305
  class IgoWorkspaceWidgetOutletModule {
310
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
311
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.19", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, imports: [WorkspaceWidgetOutletComponent], exports: [WorkspaceWidgetOutletComponent] });
312
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, imports: [WorkspaceWidgetOutletComponent] });
306
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
307
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.14", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, imports: [WorkspaceWidgetOutletComponent], exports: [WorkspaceWidgetOutletComponent] });
308
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, imports: [WorkspaceWidgetOutletComponent] });
313
309
  }
314
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, decorators: [{
310
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, decorators: [{
315
311
  type: NgModule,
316
312
  args: [{
317
313
  imports: [WorkspaceWidgetOutletComponent],
@@ -327,13 +323,13 @@ const WORKSPACE_DIRECTIVES = [
327
323
  * @deprecated import the components directly or WORKSPACE_DIRECTIVES for every components/directives
328
324
  */
329
325
  class IgoWorkspaceModule {
330
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: IgoWorkspaceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
331
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.19", ngImport: i0, type: IgoWorkspaceModule, imports: [WorkspaceSelectorComponent,
326
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: IgoWorkspaceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
327
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.14", ngImport: i0, type: IgoWorkspaceModule, imports: [WorkspaceSelectorComponent,
332
328
  WorkspaceWidgetOutletComponent], exports: [WorkspaceSelectorComponent,
333
329
  WorkspaceWidgetOutletComponent] });
334
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: IgoWorkspaceModule, imports: [WORKSPACE_DIRECTIVES] });
330
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: IgoWorkspaceModule, imports: [WORKSPACE_DIRECTIVES] });
335
331
  }
336
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: IgoWorkspaceModule, decorators: [{
332
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: IgoWorkspaceModule, decorators: [{
337
333
  type: NgModule,
338
334
  args: [{
339
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);\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 | 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> {\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 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<WorkspaceStore>(undefined);\n\n /**\n * Wheither the selector must be disabled or not.\n */\n readonly disabled = input<boolean>(undefined);\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<Workspace>(undefined);\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> {\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","@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,CAAY,SAAS,CAAC;AAE5D;;;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,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC;QACvC;IACF;AACD;;AClCD;;;;AAIG;MACU,SAAS,CAAA;AAkFE,IAAA,OAAA;AAjFtB;;AAEG;AACM,IAAA,OAAO,GAAG,IAAI,eAAe,CAAS,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AAkB,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>>\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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AA,CAAA;;4FAG7B,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAJ1C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,8BAA8B,CAAC;oBACzC,OAAO,EAAE,CAAC,8BAA8B;AACzC,iBAAA;;;ACLM,MAAM,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;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igo2/common",
3
- "version": "20.2.0",
3
+ "version": "21.0.0-next.10",
4
4
  "description": "IGO Library",
5
5
  "author": "IGO Community",
6
6
  "keywords": [
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "exports": {
20
20
  ".": {
21
- "types": "./index.d.ts",
21
+ "types": "./types/igo2-common.d.ts",
22
22
  "default": "./fesm2022/igo2-common.mjs"
23
23
  },
24
24
  "./style": {
@@ -28,168 +28,168 @@
28
28
  "sass": "./src/style/partial/*.scss"
29
29
  },
30
30
  "./environment": {
31
- "types": "./environment/index.d.ts",
31
+ "types": "./types/igo2-common-environment.d.ts",
32
32
  "default": "./fesm2022/igo2-common-environment.mjs"
33
33
  },
34
34
  "./action": {
35
- "types": "./action/index.d.ts",
35
+ "types": "./types/igo2-common-action.d.ts",
36
36
  "default": "./fesm2022/igo2-common-action.mjs"
37
37
  },
38
38
  "./backdrop": {
39
- "types": "./backdrop/index.d.ts",
39
+ "types": "./types/igo2-common-backdrop.d.ts",
40
40
  "default": "./fesm2022/igo2-common-backdrop.mjs"
41
41
  },
42
42
  "./badge": {
43
- "types": "./badge/index.d.ts",
43
+ "types": "./types/igo2-common-badge.d.ts",
44
44
  "default": "./fesm2022/igo2-common-badge.mjs"
45
45
  },
46
46
  "./clickout": {
47
- "types": "./clickout/index.d.ts",
47
+ "types": "./types/igo2-common-clickout.d.ts",
48
48
  "default": "./fesm2022/igo2-common-clickout.mjs"
49
49
  },
50
50
  "./clone": {
51
- "types": "./clone/index.d.ts",
51
+ "types": "./types/igo2-common-clone.d.ts",
52
52
  "default": "./fesm2022/igo2-common-clone.mjs"
53
53
  },
54
54
  "./collapsible": {
55
- "types": "./collapsible/index.d.ts",
55
+ "types": "./types/igo2-common-collapsible.d.ts",
56
56
  "default": "./fesm2022/igo2-common-collapsible.mjs"
57
57
  },
58
58
  "./color": {
59
- "types": "./color/index.d.ts",
59
+ "types": "./types/igo2-common-color.d.ts",
60
60
  "default": "./fesm2022/igo2-common-color.mjs"
61
61
  },
62
62
  "./confirm-dialog": {
63
- "types": "./confirm-dialog/index.d.ts",
63
+ "types": "./types/igo2-common-confirm-dialog.d.ts",
64
64
  "default": "./fesm2022/igo2-common-confirm-dialog.mjs"
65
65
  },
66
66
  "./context-menu": {
67
- "types": "./context-menu/index.d.ts",
67
+ "types": "./types/igo2-common-context-menu.d.ts",
68
68
  "default": "./fesm2022/igo2-common-context-menu.mjs"
69
69
  },
70
70
  "./custom-html": {
71
- "types": "./custom-html/index.d.ts",
71
+ "types": "./types/igo2-common-custom-html.d.ts",
72
72
  "default": "./fesm2022/igo2-common-custom-html.mjs"
73
73
  },
74
+ "./datepicker": {
75
+ "types": "./types/igo2-common-datepicker.d.ts",
76
+ "default": "./fesm2022/igo2-common-datepicker.mjs"
77
+ },
74
78
  "./dom": {
75
- "types": "./dom/index.d.ts",
79
+ "types": "./types/igo2-common-dom.d.ts",
76
80
  "default": "./fesm2022/igo2-common-dom.mjs"
77
81
  },
78
82
  "./drag-drop": {
79
- "types": "./drag-drop/index.d.ts",
83
+ "types": "./types/igo2-common-drag-drop.d.ts",
80
84
  "default": "./fesm2022/igo2-common-drag-drop.mjs"
81
85
  },
82
86
  "./dynamic-component": {
83
- "types": "./dynamic-component/index.d.ts",
87
+ "types": "./types/igo2-common-dynamic-component.d.ts",
84
88
  "default": "./fesm2022/igo2-common-dynamic-component.mjs"
85
89
  },
86
90
  "./entity": {
87
- "types": "./entity/index.d.ts",
91
+ "types": "./types/igo2-common-entity.d.ts",
88
92
  "default": "./fesm2022/igo2-common-entity.mjs"
89
93
  },
90
94
  "./flexible": {
91
- "types": "./flexible/index.d.ts",
95
+ "types": "./types/igo2-common-flexible.d.ts",
92
96
  "default": "./fesm2022/igo2-common-flexible.mjs"
93
97
  },
94
98
  "./form": {
95
- "types": "./form/index.d.ts",
99
+ "types": "./types/igo2-common-form.d.ts",
96
100
  "default": "./fesm2022/igo2-common-form.mjs"
97
101
  },
98
102
  "./home-button": {
99
- "types": "./home-button/index.d.ts",
103
+ "types": "./types/igo2-common-home-button.d.ts",
100
104
  "default": "./fesm2022/igo2-common-home-button.mjs"
101
105
  },
102
106
  "./icon": {
103
- "types": "./icon/index.d.ts",
107
+ "types": "./types/igo2-common-icon.d.ts",
104
108
  "default": "./fesm2022/igo2-common-icon.mjs"
105
109
  },
106
110
  "./image": {
107
- "types": "./image/index.d.ts",
111
+ "types": "./types/igo2-common-image.d.ts",
108
112
  "default": "./fesm2022/igo2-common-image.mjs"
109
113
  },
110
114
  "./interactive-tour": {
111
- "types": "./interactive-tour/index.d.ts",
115
+ "types": "./types/igo2-common-interactive-tour.d.ts",
112
116
  "default": "./fesm2022/igo2-common-interactive-tour.mjs"
113
117
  },
114
118
  "./json-dialog": {
115
- "types": "./json-dialog/index.d.ts",
119
+ "types": "./types/igo2-common-json-dialog.d.ts",
116
120
  "default": "./fesm2022/igo2-common-json-dialog.mjs"
117
121
  },
118
122
  "./keyvalue": {
119
- "types": "./keyvalue/index.d.ts",
123
+ "types": "./types/igo2-common-keyvalue.d.ts",
120
124
  "default": "./fesm2022/igo2-common-keyvalue.mjs"
121
125
  },
122
126
  "./list": {
123
- "types": "./list/index.d.ts",
127
+ "types": "./types/igo2-common-list.d.ts",
124
128
  "default": "./fesm2022/igo2-common-list.mjs"
125
129
  },
126
130
  "./panel": {
127
- "types": "./panel/index.d.ts",
131
+ "types": "./types/igo2-common-panel.d.ts",
128
132
  "default": "./fesm2022/igo2-common-panel.mjs"
129
133
  },
134
+ "./resizable-bar": {
135
+ "types": "./types/igo2-common-resizable-bar.d.ts",
136
+ "default": "./fesm2022/igo2-common-resizable-bar.mjs"
137
+ },
130
138
  "./select-value-dialog": {
131
- "types": "./select-value-dialog/index.d.ts",
139
+ "types": "./types/igo2-common-select-value-dialog.d.ts",
132
140
  "default": "./fesm2022/igo2-common-select-value-dialog.mjs"
133
141
  },
134
142
  "./sidenav": {
135
- "types": "./sidenav/index.d.ts",
143
+ "types": "./types/igo2-common-sidenav.d.ts",
136
144
  "default": "./fesm2022/igo2-common-sidenav.mjs"
137
145
  },
138
146
  "./spinner": {
139
- "types": "./spinner/index.d.ts",
147
+ "types": "./types/igo2-common-spinner.d.ts",
140
148
  "default": "./fesm2022/igo2-common-spinner.mjs"
141
149
  },
142
150
  "./stop-propagation": {
143
- "types": "./stop-propagation/index.d.ts",
151
+ "types": "./types/igo2-common-stop-propagation.d.ts",
144
152
  "default": "./fesm2022/igo2-common-stop-propagation.mjs"
145
153
  },
146
154
  "./table": {
147
- "types": "./table/index.d.ts",
155
+ "types": "./types/igo2-common-table.d.ts",
148
156
  "default": "./fesm2022/igo2-common-table.mjs"
149
157
  },
158
+ "./timepicker": {
159
+ "types": "./types/igo2-common-timepicker.d.ts",
160
+ "default": "./fesm2022/igo2-common-timepicker.mjs"
161
+ },
150
162
  "./tool": {
151
- "types": "./tool/index.d.ts",
163
+ "types": "./types/igo2-common-tool.d.ts",
152
164
  "default": "./fesm2022/igo2-common-tool.mjs"
153
165
  },
154
166
  "./widget": {
155
- "types": "./widget/index.d.ts",
167
+ "types": "./types/igo2-common-widget.d.ts",
156
168
  "default": "./fesm2022/igo2-common-widget.mjs"
157
169
  },
158
170
  "./workspace": {
159
- "types": "./workspace/index.d.ts",
171
+ "types": "./types/igo2-common-workspace.d.ts",
160
172
  "default": "./fesm2022/igo2-common-workspace.mjs"
161
173
  },
162
174
  "./package.json": {
163
175
  "default": "./package.json"
164
- },
165
- "./datepicker": {
166
- "types": "./datepicker/index.d.ts",
167
- "default": "./fesm2022/igo2-common-datepicker.mjs"
168
- },
169
- "./resizable-bar": {
170
- "types": "./resizable-bar/index.d.ts",
171
- "default": "./fesm2022/igo2-common-resizable-bar.mjs"
172
- },
173
- "./timepicker": {
174
- "types": "./timepicker/index.d.ts",
175
- "default": "./fesm2022/igo2-common-timepicker.mjs"
176
176
  }
177
177
  },
178
178
  "dependencies": {
179
179
  "tslib": "^2.6.0"
180
180
  },
181
181
  "peerDependencies": {
182
- "@angular/common": "^20.0.0",
183
- "@angular/core": "^20.0.0",
184
- "@angular/forms": "^20.0.0",
185
- "@angular/material-moment-adapter": "^20.0.0",
186
- "@angular/material": "^20.0.0",
187
- "@angular/platform-browser": "^20.0.0",
182
+ "@angular/common": "^21.0.0",
183
+ "@angular/core": "^21.0.0",
184
+ "@angular/forms": "^21.0.0",
185
+ "@angular/material-moment-adapter": "^21.0.0",
186
+ "@angular/material": "^21.0.0",
187
+ "@angular/platform-browser": "^21.0.0",
188
188
  "@floating-ui/utils": "^0.2.0",
189
- "@igo2/core": "^20.2.0",
190
- "@igo2/utils": "^20.2.0",
191
- "angular-shepherd": "^20.0.0",
192
- "ngx-color": "^10.0.0",
189
+ "@igo2/core": "^21.0.0-next.10",
190
+ "@igo2/utils": "^21.0.0-next.10",
191
+ "angular-shepherd": "^22.0.0",
192
+ "ngx-color": "^10.1.0",
193
193
  "scroll-into-view-if-needed": "^3.1.0",
194
194
  "tinycolor2": "^1.6.0",
195
195
  "typy": "^3.3.0"
@@ -198,6 +198,7 @@
198
198
  "node": "^18.19.1 || ^20.11.1 || >=22.0.0"
199
199
  },
200
200
  "module": "fesm2022/igo2-common.mjs",
201
- "typings": "index.d.ts",
202
- "sideEffects": false
201
+ "typings": "types/igo2-common.d.ts",
202
+ "sideEffects": false,
203
+ "type": "module"
203
204
  }
@@ -67,7 +67,7 @@ declare class ActionbarComponent implements OnDestroy, OnChanges {
67
67
  * Action store watcher
68
68
  * @internal
69
69
  */
70
- private watcher;
70
+ private watcher?;
71
71
  /**
72
72
  * Height Condition for scroll button
73
73
  */
@@ -159,9 +159,6 @@ declare class ActionbarComponent implements OnDestroy, OnChanges {
159
159
  * @internal
160
160
  */
161
161
  ngOnChanges(changes: SimpleChanges): void;
162
- /**
163
- * @internal
164
- */
165
162
  ngOnDestroy(): void;
166
163
  /**
167
164
  * Invoke the action handler
@@ -171,7 +168,7 @@ declare class ActionbarComponent implements OnDestroy, OnChanges {
171
168
  scrollDown(): void;
172
169
  scrollUp(): void;
173
170
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActionbarComponent, never>;
174
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionbarComponent, "igo-actionbar", never, { "store": { "alias": "store"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "withToggleButton": { "alias": "withToggleButton"; "required": false; "isSignal": true; }; "horizontal": { "alias": "horizontal"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "iconColor": { "alias": "iconColor"; "required": false; "isSignal": true; }; "withTitle": { "alias": "withTitle"; "required": false; "isSignal": true; }; "withTooltip": { "alias": "withTooltip"; "required": false; "isSignal": true; }; "scrollActive": { "alias": "scrollActive"; "required": false; "isSignal": true; }; "withIcon": { "alias": "withIcon"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "xPosition": { "alias": "xPosition"; "required": false; "isSignal": true; }; "yPosition": { "alias": "yPosition"; "required": false; "isSignal": true; }; "overlayClass": { "alias": "overlayClass"; "required": false; }; }, {}, never, never, true, never>;
171
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionbarComponent, "igo-actionbar", never, { "store": { "alias": "store"; "required": true; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "withToggleButton": { "alias": "withToggleButton"; "required": false; "isSignal": true; }; "horizontal": { "alias": "horizontal"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "iconColor": { "alias": "iconColor"; "required": false; "isSignal": true; }; "withTitle": { "alias": "withTitle"; "required": false; "isSignal": true; }; "withTooltip": { "alias": "withTooltip"; "required": false; "isSignal": true; }; "scrollActive": { "alias": "scrollActive"; "required": false; "isSignal": true; }; "withIcon": { "alias": "withIcon"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "xPosition": { "alias": "xPosition"; "required": false; "isSignal": true; }; "yPosition": { "alias": "yPosition"; "required": false; "isSignal": true; }; "overlayClass": { "alias": "overlayClass"; "required": false; }; }, {}, never, never, true, never>;
175
172
  }
176
173
 
177
174
  /**
@@ -2,11 +2,9 @@ import * as i0 from '@angular/core';
2
2
  import { ModuleWithProviders } from '@angular/core';
3
3
 
4
4
  declare class BackdropComponent {
5
- get shown(): boolean;
6
- set shown(value: boolean);
7
- private _shown;
5
+ shown: i0.InputSignal<boolean>;
8
6
  static ɵfac: i0.ɵɵFactoryDeclaration<BackdropComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<BackdropComponent, "igo-backdrop", never, { "shown": { "alias": "shown"; "required": false; }; }, {}, never, never, true, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<BackdropComponent, "igo-backdrop", never, { "shown": { "alias": "shown"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
10
8
  }
11
9
 
12
10
  /**
@@ -9,7 +9,7 @@ import { OnInit, ModuleWithProviders } from '@angular/core';
9
9
  declare class IgoBadgeIconDirective implements OnInit {
10
10
  private el;
11
11
  set igoMatBadgeIcon(value: string);
12
- private html;
12
+ private html?;
13
13
  set matBadgeHidden(value: boolean);
14
14
  private hidden;
15
15
  set matBadgeDisabled(value: boolean);
@@ -19,11 +19,11 @@ declare class IgoBadgeIconDirective implements OnInit {
19
19
  set igoMatBadgeInheritColor(value: boolean);
20
20
  private inheritColor;
21
21
  set igoMatBadgeColor(value: string);
22
- private color;
22
+ private color?;
23
23
  set igoMatBadgeBackgroundColor(value: string | null);
24
- private backgroundColor;
24
+ private backgroundColor?;
25
25
  get badge(): any;
26
- private originalColor;
26
+ private originalColor?;
27
27
  ngOnInit(): void;
28
28
  private updateHtml;
29
29
  private updateColor;
@@ -4,7 +4,7 @@ import { ModuleWithProviders } from '@angular/core';
4
4
  declare class ClickoutDirective {
5
5
  private el;
6
6
  readonly clickout: i0.OutputEmitterRef<MouseEvent>;
7
- handleMouseClick(event: MouseEvent, target: HTMLElement): void;
7
+ handleMouseClick(event: MouseEvent): void;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<ClickoutDirective, never>;
9
9
  static ɵdir: i0.ɵɵDirectiveDeclaration<ClickoutDirective, "[igoClickout]", never, {}, { "clickout": "clickout"; }, never, never, true, never>;
10
10
  }
@@ -4,9 +4,7 @@ import { ModuleWithProviders } from '@angular/core';
4
4
  declare class CollapseDirective {
5
5
  private renderer;
6
6
  private el;
7
- get target(): Element;
8
- set target(value: Element);
9
- private _target;
7
+ target: i0.InputSignal<Element | undefined>;
10
8
  get collapsed(): boolean;
11
9
  set collapsed(collapsed: boolean);
12
10
  private _collapsed;
@@ -15,7 +13,7 @@ declare class CollapseDirective {
15
13
  private collapseTarget;
16
14
  private expandTarget;
17
15
  static ɵfac: i0.ɵɵFactoryDeclaration<CollapseDirective, never>;
18
- static ɵdir: i0.ɵɵDirectiveDeclaration<CollapseDirective, "[igoCollapse]", never, { "target": { "alias": "target"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; }, { "toggle": "toggle"; }, never, never, true, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CollapseDirective, "[igoCollapse]", never, { "target": { "alias": "target"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; }; }, { "toggle": "toggle"; }, never, never, true, never>;
19
17
  }
20
18
 
21
19
  declare class CollapsibleComponent {
@@ -5,7 +5,7 @@ import { Observable } from 'rxjs';
5
5
 
6
6
  declare class ConfirmDialogComponent {
7
7
  dialogRef: MatDialogRef<ConfirmDialogComponent, any>;
8
- confirmMessage: string;
8
+ confirmMessage?: string;
9
9
  titleKey: string;
10
10
  proccessKey: string;
11
11
  cancelKey: string;