@igo2/common 20.0.0 → 20.1.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action/index.d.ts +22 -22
- package/clickout/index.d.ts +2 -2
- package/collapsible/index.d.ts +6 -10
- package/color/index.d.ts +3 -4
- package/context-menu/index.d.ts +9 -9
- package/datepicker/index.d.ts +65 -0
- package/drag-drop/index.d.ts +21 -23
- package/dynamic-component/index.d.ts +7 -7
- package/entity/index.d.ts +45 -48
- package/fesm2022/igo2-common-action.mjs +60 -97
- package/fesm2022/igo2-common-action.mjs.map +1 -1
- package/fesm2022/igo2-common-backdrop.mjs +7 -7
- package/fesm2022/igo2-common-backdrop.mjs.map +1 -1
- package/fesm2022/igo2-common-badge.mjs +7 -7
- package/fesm2022/igo2-common-badge.mjs.map +1 -1
- package/fesm2022/igo2-common-clickout.mjs +10 -12
- package/fesm2022/igo2-common-clickout.mjs.map +1 -1
- package/fesm2022/igo2-common-clone.mjs +7 -7
- package/fesm2022/igo2-common-collapsible.mjs +18 -39
- package/fesm2022/igo2-common-collapsible.mjs.map +1 -1
- package/fesm2022/igo2-common-color.mjs +14 -18
- package/fesm2022/igo2-common-color.mjs.map +1 -1
- package/fesm2022/igo2-common-confirm-dialog.mjs +10 -10
- package/fesm2022/igo2-common-context-menu.mjs +22 -31
- package/fesm2022/igo2-common-context-menu.mjs.map +1 -1
- package/fesm2022/igo2-common-custom-html.mjs +10 -10
- package/fesm2022/igo2-common-custom-html.mjs.map +1 -1
- package/fesm2022/igo2-common-datepicker.mjs +316 -0
- package/fesm2022/igo2-common-datepicker.mjs.map +1 -0
- package/fesm2022/igo2-common-dom.mjs +7 -7
- package/fesm2022/igo2-common-drag-drop.mjs +59 -75
- package/fesm2022/igo2-common-drag-drop.mjs.map +1 -1
- package/fesm2022/igo2-common-dynamic-component.mjs +34 -52
- package/fesm2022/igo2-common-dynamic-component.mjs.map +1 -1
- package/fesm2022/igo2-common-entity.mjs +154 -206
- package/fesm2022/igo2-common-entity.mjs.map +1 -1
- package/fesm2022/igo2-common-flexible.mjs +13 -16
- package/fesm2022/igo2-common-flexible.mjs.map +1 -1
- package/fesm2022/igo2-common-form.mjs +120 -174
- package/fesm2022/igo2-common-form.mjs.map +1 -1
- package/fesm2022/igo2-common-home-button.mjs +11 -12
- package/fesm2022/igo2-common-home-button.mjs.map +1 -1
- package/fesm2022/igo2-common-icon.mjs +18 -24
- package/fesm2022/igo2-common-icon.mjs.map +1 -1
- package/fesm2022/igo2-common-image.mjs +16 -20
- package/fesm2022/igo2-common-image.mjs.map +1 -1
- package/fesm2022/igo2-common-interactive-tour.mjs +28 -33
- package/fesm2022/igo2-common-interactive-tour.mjs.map +1 -1
- package/fesm2022/igo2-common-json-dialog.mjs +11 -11
- package/fesm2022/igo2-common-json-dialog.mjs.map +1 -1
- package/fesm2022/igo2-common-keyvalue.mjs +7 -7
- package/fesm2022/igo2-common-list.mjs +49 -66
- package/fesm2022/igo2-common-list.mjs.map +1 -1
- package/fesm2022/igo2-common-panel.mjs +15 -28
- package/fesm2022/igo2-common-panel.mjs.map +1 -1
- package/fesm2022/igo2-common-resizable-bar.mjs +25 -32
- package/fesm2022/igo2-common-resizable-bar.mjs.map +1 -1
- package/fesm2022/igo2-common-select-value-dialog.mjs +10 -10
- package/fesm2022/igo2-common-sidenav.mjs +7 -7
- package/fesm2022/igo2-common-sidenav.mjs.map +1 -1
- package/fesm2022/igo2-common-spinner.mjs +11 -11
- package/fesm2022/igo2-common-spinner.mjs.map +1 -1
- package/fesm2022/igo2-common-stop-propagation.mjs +10 -10
- package/fesm2022/igo2-common-stop-propagation.mjs.map +1 -1
- package/fesm2022/igo2-common-table.mjs +57 -87
- package/fesm2022/igo2-common-table.mjs.map +1 -1
- package/fesm2022/igo2-common-timepicker.mjs +105 -0
- package/fesm2022/igo2-common-timepicker.mjs.map +1 -0
- package/fesm2022/igo2-common-tool.mjs +29 -35
- package/fesm2022/igo2-common-tool.mjs.map +1 -1
- package/fesm2022/igo2-common-widget.mjs +27 -36
- package/fesm2022/igo2-common-widget.mjs.map +1 -1
- package/fesm2022/igo2-common-workspace.mjs +34 -44
- package/fesm2022/igo2-common-workspace.mjs.map +1 -1
- package/flexible/index.d.ts +2 -2
- package/form/index.d.ts +31 -33
- package/home-button/index.d.ts +1 -2
- package/icon/index.d.ts +4 -5
- package/image/index.d.ts +3 -3
- package/interactive-tour/index.d.ts +5 -5
- package/list/index.d.ts +23 -23
- package/package.json +11 -3
- package/panel/index.d.ts +4 -6
- package/resizable-bar/index.d.ts +11 -13
- package/table/index.d.ts +13 -19
- package/timepicker/index.d.ts +33 -0
- package/tool/index.d.ts +4 -4
- package/widget/index.d.ts +9 -9
- package/workspace/index.d.ts +7 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EntityStore, getEntityTitle, EntitySelectorComponent } from '@igo2/common/entity';
|
|
2
2
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import {
|
|
4
|
+
import { input, output, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
5
5
|
import { AsyncPipe } from '@angular/common';
|
|
6
6
|
import { WidgetOutletComponent } from '@igo2/common/widget';
|
|
7
7
|
|
|
@@ -189,15 +189,15 @@ class WorkspaceSelectorComponent {
|
|
|
189
189
|
/**
|
|
190
190
|
* Store that holds the available workspaces.
|
|
191
191
|
*/
|
|
192
|
-
store;
|
|
192
|
+
store = input(undefined, ...(ngDevMode ? [{ debugName: "store" }] : []));
|
|
193
193
|
/**
|
|
194
194
|
* Wheither the selector must be disabled or not.
|
|
195
195
|
*/
|
|
196
|
-
disabled;
|
|
196
|
+
disabled = input(undefined, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
197
197
|
/**
|
|
198
198
|
* Event emitted when an workspace is selected or unselected
|
|
199
199
|
*/
|
|
200
|
-
selectedChange =
|
|
200
|
+
selectedChange = output();
|
|
201
201
|
/**
|
|
202
202
|
* @internal
|
|
203
203
|
*/
|
|
@@ -212,32 +212,26 @@ class WorkspaceSelectorComponent {
|
|
|
212
212
|
*/
|
|
213
213
|
onSelectedChange(event) {
|
|
214
214
|
const workspace = event.value;
|
|
215
|
-
this.store.activateWorkspace(workspace);
|
|
215
|
+
this.store().activateWorkspace(workspace);
|
|
216
216
|
this.selectedChange.emit({ selected: true, value: workspace });
|
|
217
217
|
}
|
|
218
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
219
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
218
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: WorkspaceSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
219
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.6", 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 });
|
|
220
220
|
}
|
|
221
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: WorkspaceSelectorComponent, decorators: [{
|
|
222
222
|
type: Component,
|
|
223
|
-
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
|
|
224
|
-
}], propDecorators: { store: [{
|
|
225
|
-
type: Input
|
|
226
|
-
}], disabled: [{
|
|
227
|
-
type: Input
|
|
228
|
-
}], selectedChange: [{
|
|
229
|
-
type: Output
|
|
230
|
-
}] } });
|
|
223
|
+
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"] }] } });
|
|
231
225
|
|
|
232
226
|
/**
|
|
233
227
|
* @deprecated import the WorkspaceSelectorComponent directly
|
|
234
228
|
*/
|
|
235
229
|
class IgoWorkspaceSelectorModule {
|
|
236
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
237
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
238
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
230
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: IgoWorkspaceSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
231
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.6", ngImport: i0, type: IgoWorkspaceSelectorModule, imports: [WorkspaceSelectorComponent], exports: [WorkspaceSelectorComponent] });
|
|
232
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: IgoWorkspaceSelectorModule, imports: [WorkspaceSelectorComponent] });
|
|
239
233
|
}
|
|
240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
234
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: IgoWorkspaceSelectorModule, decorators: [{
|
|
241
235
|
type: NgModule,
|
|
242
236
|
args: [{
|
|
243
237
|
imports: [WorkspaceSelectorComponent],
|
|
@@ -254,32 +248,32 @@ class WorkspaceWidgetOutletComponent {
|
|
|
254
248
|
/**
|
|
255
249
|
* Workspace
|
|
256
250
|
*/
|
|
257
|
-
workspace;
|
|
251
|
+
workspace = input(undefined, ...(ngDevMode ? [{ debugName: "workspace" }] : []));
|
|
258
252
|
/**
|
|
259
253
|
* Event emitted when a widget is deactivate which happens
|
|
260
254
|
* when the widget's component emits the 'cancel' or 'complete' event.
|
|
261
255
|
*/
|
|
262
|
-
deactivateWidget =
|
|
256
|
+
deactivateWidget = output();
|
|
263
257
|
/**
|
|
264
258
|
* Observable of the workspace's active widget
|
|
265
259
|
* @internal
|
|
266
260
|
*/
|
|
267
261
|
get widget$() {
|
|
268
|
-
return this.workspace.widget$;
|
|
262
|
+
return this.workspace().widget$;
|
|
269
263
|
}
|
|
270
264
|
/**
|
|
271
265
|
* Observable of the workspace's widget inputs
|
|
272
266
|
* @internal
|
|
273
267
|
*/
|
|
274
268
|
get widgetInputs$() {
|
|
275
|
-
return this.workspace.widgetInputs$;
|
|
269
|
+
return this.workspace().widgetInputs$;
|
|
276
270
|
}
|
|
277
271
|
/**
|
|
278
272
|
* Observable of the workspace's widget inputs
|
|
279
273
|
* @internal
|
|
280
274
|
*/
|
|
281
275
|
get widgetSubscribers$() {
|
|
282
|
-
return this.workspace.widgetSubscribers$;
|
|
276
|
+
return this.workspace().widgetSubscribers$;
|
|
283
277
|
}
|
|
284
278
|
/**
|
|
285
279
|
* When a widget's component emit the 'cancel' event,
|
|
@@ -288,7 +282,7 @@ class WorkspaceWidgetOutletComponent {
|
|
|
288
282
|
* @internal
|
|
289
283
|
*/
|
|
290
284
|
onWidgetCancel(widget) {
|
|
291
|
-
this.workspace.deactivateWidget();
|
|
285
|
+
this.workspace().deactivateWidget();
|
|
292
286
|
this.deactivateWidget.emit(widget);
|
|
293
287
|
}
|
|
294
288
|
/**
|
|
@@ -298,30 +292,26 @@ class WorkspaceWidgetOutletComponent {
|
|
|
298
292
|
* @internal
|
|
299
293
|
*/
|
|
300
294
|
onWidgetComplete(widget) {
|
|
301
|
-
this.workspace.deactivateWidget();
|
|
295
|
+
this.workspace().deactivateWidget();
|
|
302
296
|
this.deactivateWidget.emit(widget);
|
|
303
297
|
}
|
|
304
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
305
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
298
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: WorkspaceWidgetOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
299
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.6", 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 });
|
|
306
300
|
}
|
|
307
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: WorkspaceWidgetOutletComponent, decorators: [{
|
|
308
302
|
type: Component,
|
|
309
|
-
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
|
|
310
|
-
}], propDecorators: { workspace: [{
|
|
311
|
-
type: Input
|
|
312
|
-
}], deactivateWidget: [{
|
|
313
|
-
type: Output
|
|
314
|
-
}] } });
|
|
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"] }] } });
|
|
315
305
|
|
|
316
306
|
/**
|
|
317
307
|
* @deprecated import the WorkspaceWidgetOutletComponent directly
|
|
318
308
|
*/
|
|
319
309
|
class IgoWorkspaceWidgetOutletModule {
|
|
320
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
321
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
322
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
310
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
311
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.6", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, imports: [WorkspaceWidgetOutletComponent], exports: [WorkspaceWidgetOutletComponent] });
|
|
312
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, imports: [WorkspaceWidgetOutletComponent] });
|
|
323
313
|
}
|
|
324
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, decorators: [{
|
|
325
315
|
type: NgModule,
|
|
326
316
|
args: [{
|
|
327
317
|
imports: [WorkspaceWidgetOutletComponent],
|
|
@@ -337,13 +327,13 @@ const WORKSPACE_DIRECTIVES = [
|
|
|
337
327
|
* @deprecated import the components directly or WORKSPACE_DIRECTIVES for every components/directives
|
|
338
328
|
*/
|
|
339
329
|
class IgoWorkspaceModule {
|
|
340
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
341
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
330
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: IgoWorkspaceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
331
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.6", ngImport: i0, type: IgoWorkspaceModule, imports: [WorkspaceSelectorComponent,
|
|
342
332
|
WorkspaceWidgetOutletComponent], exports: [WorkspaceSelectorComponent,
|
|
343
333
|
WorkspaceWidgetOutletComponent] });
|
|
344
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
334
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: IgoWorkspaceModule, imports: [WORKSPACE_DIRECTIVES] });
|
|
345
335
|
}
|
|
346
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
336
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: IgoWorkspaceModule, decorators: [{
|
|
347
337
|
type: NgModule,
|
|
348
338
|
args: [{
|
|
349
339
|
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 {\n return this.options.id;\n }\n\n /**\n * Workspace title\n */\n get title(): string {\n return this.options.title;\n }\n\n /**\n * Workspace title\n */\n get meta(): Record<string, any> {\n return this.options.meta || {};\n }\n\n /**\n * Entities store\n */\n get entityStore(): EntityStore<E> {\n return this.options.entityStore as EntityStore<E>;\n }\n\n /**\n * Actions store (some actions activate a widget)\n */\n get actionStore(): ActionStore {\n return this.options.actionStore;\n }\n\n /**\n * Selected widget\n */\n get widget(): Widget {\n return this.widget$.value;\n }\n\n /**\n * Whether a widget is selected\n */\n get hasWidget(): boolean {\n return this.widget !== undefined;\n }\n\n constructor(protected options: WorkspaceOptions) {}\n\n /**\n * Whether this strategy is active\n * @internal\n */\n get active(): boolean {\n return this.active$.value;\n }\n readonly active$ = new BehaviorSubject<boolean>(false);\n\n /**\n * Activate the workspace. By doing that, the workspace will observe\n * the selected entity (from the store) and update the actions availability.\n * For example, some actions require an entity to be selected.\n */\n activate() {\n if (this.active === true) {\n this.deactivate();\n }\n this.active$.next(true);\n\n if (this.entityStore !== undefined) {\n this.entities$$ = this.entityStore.stateView\n .all$()\n .subscribe(() => this.onStateChange());\n }\n\n this.change.next();\n }\n\n /**\n * Deactivate the workspace. Unsubcribe to the selected entity.\n */\n deactivate() {\n this.active$.next(false);\n this.deactivateWidget();\n\n if (this.entities$$ !== undefined) {\n this.entities$$.unsubscribe();\n }\n if (this.change$ !== undefined) {\n this.change$.unsubscribe();\n }\n }\n\n /**\n * Activate a widget. In itself, activating a widget doesn't render it but,\n * if an WorkspaceWidgetOutlet component is bound to this workspace, the widget will\n * show up.\n * @param widget Widget\n * @param inputs Inputs the widget will receive\n */\n activateWidget(\n widget: Widget,\n inputs: Record<string, any> = {},\n subscribers: Record<string, (event: any) => void> = {}\n ) {\n this.widget$.next(widget);\n this.widgetInputs$.next(inputs);\n this.widgetSubscribers$.next(subscribers);\n this.change.next();\n }\n\n /**\n * Deactivate a widget.\n */\n deactivateWidget() {\n this.widget$.next(undefined);\n this.change.next();\n }\n\n /**\n * When the state changes, update the actions availability.\n */\n private onStateChange() {\n this.change.next();\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n Output\n} from '@angular/core';\n\nimport {\n EntitySelectorChange,\n EntitySelectorComponent,\n getEntityTitle\n} from '@igo2/common/entity';\n\nimport { WorkspaceStore } from '../shared/store';\nimport { Workspace } from '../shared/workspace';\n\n/**\n * Drop list that activates the selected workspace emit an event.\n */\n@Component({\n selector: 'igo-workspace-selector',\n templateUrl: './workspace-selector.component.html',\n styleUrls: ['./workspace-selector.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [EntitySelectorComponent]\n})\nexport class WorkspaceSelectorComponent {\n /**\n * Store that holds the available workspaces.\n */\n @Input() store: WorkspaceStore;\n\n /**\n * Wheither the selector must be disabled or not.\n */\n @Input() disabled: boolean;\n\n /**\n * Event emitted when an workspace is selected or unselected\n */\n @Output() selectedChange = new EventEmitter<{\n selected: boolean;\n value: Workspace;\n }>();\n\n /**\n * @internal\n */\n getWorkspaceTitle(workspace: Workspace): string {\n return getEntityTitle(workspace);\n }\n\n /**\n * When an workspace is manually selected, select it into the\n * store and emit an event.\n * @internal\n * @param event The selection change event\n */\n onSelectedChange(event: EntitySelectorChange<Workspace>) {\n const workspace = event.value;\n this.store.activateWorkspace(workspace);\n this.selectedChange.emit({ selected: true, value: workspace });\n }\n}\n","<igo-entity-selector\n [store]=\"store\"\n [multi]=\"false\"\n [titleAccessor]=\"getWorkspaceTitle\"\n [disabled]=\"disabled\"\n (selectedChange)=\"onSelectedChange($event)\"\n>\n</igo-entity-selector>\n","import { NgModule } from '@angular/core';\n\nimport { WorkspaceSelectorComponent } from './workspace-selector.component';\n\n/**\n * @deprecated import the WorkspaceSelectorComponent directly\n */\n@NgModule({\n imports: [WorkspaceSelectorComponent],\n exports: [WorkspaceSelectorComponent]\n})\nexport class IgoWorkspaceSelectorModule {}\n","import { AsyncPipe } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n Output\n} from '@angular/core';\n\nimport { Widget, WidgetOutletComponent } from '@igo2/common/widget';\n\nimport { BehaviorSubject } from 'rxjs';\n\nimport { Workspace } from '../shared/workspace';\n\n/**\n * This component dynamically render an Workspace's active widget.\n * It also deactivate that widget whenever the widget's component\n * emit the 'cancel' or 'complete' event.\n */\n@Component({\n selector: 'igo-workspace-widget-outlet',\n templateUrl: './workspace-widget-outlet.component.html',\n styleUrls: ['./workspace-widget-outlet.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [WidgetOutletComponent, AsyncPipe]\n})\nexport class WorkspaceWidgetOutletComponent {\n /**\n * Workspace\n */\n @Input() workspace: Workspace;\n\n /**\n * Event emitted when a widget is deactivate which happens\n * when the widget's component emits the 'cancel' or 'complete' event.\n */\n @Output() deactivateWidget = new EventEmitter<Widget>();\n\n /**\n * Observable of the workspace's active widget\n * @internal\n */\n get widget$(): BehaviorSubject<Widget> {\n return this.workspace.widget$;\n }\n\n /**\n * Observable of the workspace's widget inputs\n * @internal\n */\n get widgetInputs$(): BehaviorSubject<Record<string, any>> {\n return this.workspace.widgetInputs$;\n }\n\n /**\n * Observable of the workspace's widget inputs\n * @internal\n */\n get widgetSubscribers$(): BehaviorSubject<\n Record<string, (event: any) => void>\n > {\n return this.workspace.widgetSubscribers$;\n }\n\n /**\n * When a widget's component emit the 'cancel' event,\n * deactivate that widget and emit the 'deactivateWidget' event.\n * @param widget Widget\n * @internal\n */\n onWidgetCancel(widget: Widget) {\n this.workspace.deactivateWidget();\n this.deactivateWidget.emit(widget);\n }\n\n /**\n * When a widget's component emit the 'cancel' event,\n * deactivate that widget and emit the 'deactivateWidget' event.\n * @param widget Widget\n * @internal\n */\n onWidgetComplete(widget: Widget) {\n this.workspace.deactivateWidget();\n this.deactivateWidget.emit(widget);\n }\n}\n","@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 </igo-widget-outlet>\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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,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;uGAAlB,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,QAAA,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,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAJhB,oBAAoB,CAAA,EAAA,CAAA;;2FAItB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC;AAClC,oBAAA,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC;AAClC,oBAAA,YAAY,EAAE;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);\n\n /**\n * Activate the an workspace workspace and deactivate the one currently active\n * @param workspace Workspace\n */\n activateWorkspace(workspace: Workspace) {\n const active = this.activeWorkspace$.value;\n if (active !== undefined) {\n active.deactivate();\n }\n\n this.deactivateWorkspace();\n if (workspace !== undefined) {\n this.state.update(workspace, { active: true, selected: true }, true);\n this.activeWorkspace$.next(workspace);\n workspace.activate();\n }\n }\n\n /**\n * Deactivate the current workspace\n * @param workspace Workspace\n */\n deactivateWorkspace() {\n const active = this.activeWorkspace$.value;\n if (active !== undefined) {\n active.deactivate();\n this.activeWorkspace$.next(undefined);\n }\n }\n}\n","import { ActionStore } from '@igo2/common/action';\nimport { EntityStore } from '@igo2/common/entity';\nimport { Widget } from '@igo2/common/widget';\n\nimport { BehaviorSubject, Subject, Subscription } from 'rxjs';\n\nimport { WorkspaceOptions } from './workspace.interfaces';\n\n/**\n * This class is responsible of managing the relations between\n * entities and the actions that consume them. It also defines an\n * entity table template that may be used by an entity table component.\n */\nexport class Workspace<E extends object = object> {\n /**\n * Observable of the selected widget\n */\n readonly widget$ = new BehaviorSubject<Widget>(undefined);\n\n /**\n * Observable of the selected widget's inputs\n */\n readonly widgetInputs$ = new BehaviorSubject<Record<string, any>>({});\n\n /**\n * Observable of the selected widget's subscribers\n */\n readonly widgetSubscribers$ = new BehaviorSubject<\n Record<string, (event: any) => void>\n >({});\n\n /**\n * Subscription to the selected entity\n */\n private entities$$: Subscription;\n\n /**\n * State change that trigger an update of the actions availability\n */\n private change = new Subject<void>();\n\n /**\n * Subscription to state changes\n */\n private change$: Subscription;\n\n /**\n * Workspace id\n */\n get id(): string {\n return this.options.id;\n }\n\n /**\n * Workspace title\n */\n get title(): string {\n return this.options.title;\n }\n\n /**\n * Workspace title\n */\n get meta(): Record<string, any> {\n return this.options.meta || {};\n }\n\n /**\n * Entities store\n */\n get entityStore(): EntityStore<E> {\n return this.options.entityStore as EntityStore<E>;\n }\n\n /**\n * Actions store (some actions activate a widget)\n */\n get actionStore(): ActionStore {\n return this.options.actionStore;\n }\n\n /**\n * Selected widget\n */\n get widget(): Widget {\n return this.widget$.value;\n }\n\n /**\n * Whether a widget is selected\n */\n get hasWidget(): boolean {\n return this.widget !== undefined;\n }\n\n constructor(protected options: WorkspaceOptions) {}\n\n /**\n * Whether this strategy is active\n * @internal\n */\n get active(): boolean {\n return this.active$.value;\n }\n readonly active$ = new BehaviorSubject<boolean>(false);\n\n /**\n * Activate the workspace. By doing that, the workspace will observe\n * the selected entity (from the store) and update the actions availability.\n * For example, some actions require an entity to be selected.\n */\n activate() {\n if (this.active === true) {\n this.deactivate();\n }\n this.active$.next(true);\n\n if (this.entityStore !== undefined) {\n this.entities$$ = this.entityStore.stateView\n .all$()\n .subscribe(() => this.onStateChange());\n }\n\n this.change.next();\n }\n\n /**\n * Deactivate the workspace. Unsubcribe to the selected entity.\n */\n deactivate() {\n this.active$.next(false);\n this.deactivateWidget();\n\n if (this.entities$$ !== undefined) {\n this.entities$$.unsubscribe();\n }\n if (this.change$ !== undefined) {\n this.change$.unsubscribe();\n }\n }\n\n /**\n * Activate a widget. In itself, activating a widget doesn't render it but,\n * if an WorkspaceWidgetOutlet component is bound to this workspace, the widget will\n * show up.\n * @param widget Widget\n * @param inputs Inputs the widget will receive\n */\n activateWidget(\n widget: Widget,\n inputs: Record<string, any> = {},\n subscribers: Record<string, (event: any) => void> = {}\n ) {\n this.widget$.next(widget);\n this.widgetInputs$.next(inputs);\n this.widgetSubscribers$.next(subscribers);\n this.change.next();\n }\n\n /**\n * Deactivate a widget.\n */\n deactivateWidget() {\n this.widget$.next(undefined);\n this.change.next();\n }\n\n /**\n * When the state changes, update the actions availability.\n */\n private onStateChange() {\n this.change.next();\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n 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,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A,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/flexible/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, OnDestroy, ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy, ElementRef, ModuleWithProviders } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
type FlexibleState = 'initial' | 'collapsed' | 'expanded' | 'transition';
|
|
5
5
|
type FlexibleDirection = 'column' | 'row';
|
|
@@ -9,7 +9,7 @@ declare class FlexibleComponent implements OnInit, OnDestroy {
|
|
|
9
9
|
private mediaService;
|
|
10
10
|
private cdr;
|
|
11
11
|
static transitionTime: number;
|
|
12
|
-
main: any
|
|
12
|
+
readonly main: i0.Signal<ElementRef<any>>;
|
|
13
13
|
get initial(): string;
|
|
14
14
|
set initial(value: string);
|
|
15
15
|
private _initial;
|
package/form/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _igo2_common_form from '@igo2/common/form';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { OnChanges,
|
|
3
|
+
import { OnChanges, ElementRef, SimpleChanges, OnInit, ModuleWithProviders } from '@angular/core';
|
|
4
4
|
import { ValidatorFn, UntypedFormControl, UntypedFormGroup, AbstractControl } from '@angular/forms';
|
|
5
5
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
6
6
|
import * as i1 from '@angular/material/dialog';
|
|
@@ -72,20 +72,20 @@ declare class FormComponent implements OnChanges {
|
|
|
72
72
|
/**
|
|
73
73
|
* Form
|
|
74
74
|
*/
|
|
75
|
-
form: Form
|
|
75
|
+
readonly form: i0.InputSignal<Form>;
|
|
76
76
|
/**
|
|
77
77
|
* Input data
|
|
78
78
|
*/
|
|
79
|
-
formData: Record<string, any
|
|
79
|
+
readonly formData: i0.InputSignal<Record<string, any>>;
|
|
80
80
|
/**
|
|
81
81
|
* Form autocomplete
|
|
82
82
|
*/
|
|
83
|
-
autocomplete: string
|
|
83
|
+
readonly autocomplete: i0.InputSignal<string>;
|
|
84
84
|
/**
|
|
85
85
|
* Event emitted when the form is submitted
|
|
86
86
|
*/
|
|
87
|
-
submitForm:
|
|
88
|
-
buttons: ElementRef
|
|
87
|
+
readonly submitForm: i0.OutputEmitterRef<Record<string, any>>;
|
|
88
|
+
readonly buttons: i0.Signal<ElementRef<any>>;
|
|
89
89
|
get hasButtons(): boolean;
|
|
90
90
|
/**
|
|
91
91
|
* Is the entity or the template change, recreate the form or repopulate it.
|
|
@@ -106,7 +106,7 @@ declare class FormComponent implements OnChanges {
|
|
|
106
106
|
*/
|
|
107
107
|
private clear;
|
|
108
108
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
109
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "igo-form", never, { "form": { "alias": "form"; "required": false; }; "formData": { "alias": "formData"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; }, { "submitForm": "submitForm"; }, never, ["*", "[formButtons]"], true, never>;
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "igo-form", never, { "form": { "alias": "form"; "required": false; "isSignal": true; }; "formData": { "alias": "formData"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; }, { "submitForm": "submitForm"; }, never, ["*", "[formButtons]"], true, never>;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
/**
|
|
@@ -127,11 +127,11 @@ declare class FormGroupComponent {
|
|
|
127
127
|
/**
|
|
128
128
|
* Form field group
|
|
129
129
|
*/
|
|
130
|
-
group: FormFieldGroup
|
|
130
|
+
readonly group: i0.InputSignal<FormFieldGroup>;
|
|
131
131
|
/**
|
|
132
132
|
* Field placeholder
|
|
133
133
|
*/
|
|
134
|
-
errors: Record<string, string
|
|
134
|
+
readonly errors: i0.InputSignal<Record<string, string>>;
|
|
135
135
|
/**
|
|
136
136
|
* Form group control
|
|
137
137
|
*/
|
|
@@ -157,7 +157,7 @@ declare class FormGroupComponent {
|
|
|
157
157
|
*/
|
|
158
158
|
getErrorMessage(): string;
|
|
159
159
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupComponent, never>;
|
|
160
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormGroupComponent, "igo-form-group", never, { "group": { "alias": "group"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
160
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormGroupComponent, "igo-form-group", never, { "group": { "alias": "group"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
/**
|
|
@@ -178,7 +178,7 @@ declare class FormFieldComponent {
|
|
|
178
178
|
/**
|
|
179
179
|
* Field configuration
|
|
180
180
|
*/
|
|
181
|
-
field: FormField
|
|
181
|
+
readonly field: i0.InputSignal<FormField<FormFieldInputs>>;
|
|
182
182
|
/**
|
|
183
183
|
* Field inputs cache
|
|
184
184
|
*/
|
|
@@ -192,40 +192,38 @@ declare class FormFieldComponent {
|
|
|
192
192
|
getFieldInputs(): FormFieldInputs;
|
|
193
193
|
getFieldSubscribers(): FormFieldSubscribers;
|
|
194
194
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
195
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "igo-form-field", never, { "field": { "alias": "field"; "required": false; }; }, {}, never, never, true, never>;
|
|
195
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "igo-form-field", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
199
|
* This component renders a select field
|
|
200
200
|
*/
|
|
201
201
|
declare class FormFieldSelectComponent implements OnInit {
|
|
202
|
-
readonly disabled
|
|
202
|
+
readonly disabled: i0.WritableSignal<boolean>;
|
|
203
203
|
/**
|
|
204
204
|
* Select input choices
|
|
205
205
|
*/
|
|
206
|
-
|
|
207
|
-
get choices(): FormFieldSelectChoice[];
|
|
208
|
-
readonly choices$: BehaviorSubject<FormFieldSelectChoice[]>;
|
|
206
|
+
readonly choices: i0.InputSignal<FormFieldSelectChoice[]>;
|
|
209
207
|
/**
|
|
210
208
|
* If the select allow multiple selections
|
|
211
209
|
*/
|
|
212
|
-
multiple: boolean
|
|
210
|
+
readonly multiple: i0.InputSignal<boolean>;
|
|
213
211
|
/**
|
|
214
212
|
* The field's form control
|
|
215
213
|
*/
|
|
216
|
-
formControl: UntypedFormControl
|
|
214
|
+
readonly formControl: i0.InputSignal<UntypedFormControl>;
|
|
217
215
|
/**
|
|
218
216
|
* Field placeholder
|
|
219
217
|
*/
|
|
220
|
-
placeholder: string
|
|
218
|
+
readonly placeholder: i0.InputSignal<string>;
|
|
221
219
|
/**
|
|
222
220
|
* Field placeholder
|
|
223
221
|
*/
|
|
224
|
-
errors: Record<string, string
|
|
222
|
+
readonly errors: i0.InputSignal<Record<string, string>>;
|
|
225
223
|
/**
|
|
226
224
|
* Wheter a disable switch should be available
|
|
227
225
|
*/
|
|
228
|
-
disableSwitch: boolean
|
|
226
|
+
readonly disableSwitch: i0.InputSignal<boolean>;
|
|
229
227
|
/**
|
|
230
228
|
* Whether the field is required
|
|
231
229
|
*/
|
|
@@ -238,7 +236,7 @@ declare class FormFieldSelectComponent implements OnInit {
|
|
|
238
236
|
onDisableSwitchClick(): void;
|
|
239
237
|
private toggleDisabled;
|
|
240
238
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldSelectComponent, never>;
|
|
241
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldSelectComponent, "igo-form-field-select", never, { "choices": { "alias": "choices"; "required":
|
|
239
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldSelectComponent, "igo-form-field-select", never, { "choices": { "alias": "choices"; "required": true; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "formControl": { "alias": "formControl"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
242
240
|
}
|
|
243
241
|
|
|
244
242
|
/**
|
|
@@ -252,23 +250,23 @@ declare class FormFieldTextComponent implements OnInit {
|
|
|
252
250
|
/**
|
|
253
251
|
* The field's form control
|
|
254
252
|
*/
|
|
255
|
-
formControl: UntypedFormControl
|
|
253
|
+
readonly formControl: i0.InputSignal<UntypedFormControl>;
|
|
256
254
|
/**
|
|
257
255
|
* Field placeholder
|
|
258
256
|
*/
|
|
259
|
-
placeholder: string
|
|
257
|
+
readonly placeholder: i0.InputSignal<string>;
|
|
260
258
|
/**
|
|
261
259
|
* if the input is a password
|
|
262
260
|
*/
|
|
263
|
-
isPassword: boolean
|
|
261
|
+
readonly isPassword: i0.InputSignal<boolean>;
|
|
264
262
|
/**
|
|
265
263
|
* Field placeholder
|
|
266
264
|
*/
|
|
267
|
-
errors: Record<string, string
|
|
265
|
+
readonly errors: i0.InputSignal<Record<string, string>>;
|
|
268
266
|
/**
|
|
269
267
|
* Wheter a disable switch should be available
|
|
270
268
|
*/
|
|
271
|
-
disableSwitch: boolean
|
|
269
|
+
readonly disableSwitch: i0.InputSignal<boolean>;
|
|
272
270
|
/**
|
|
273
271
|
* Whether the field is required
|
|
274
272
|
*/
|
|
@@ -283,7 +281,7 @@ declare class FormFieldTextComponent implements OnInit {
|
|
|
283
281
|
togglePassword(): void;
|
|
284
282
|
delayedHide(delayMS?: number): void;
|
|
285
283
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldTextComponent, never>;
|
|
286
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTextComponent, "igo-form-field-text", never, { "formControl": { "alias": "formControl"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "isPassword": { "alias": "isPassword"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; }; }, {}, never, never, true, never>;
|
|
284
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTextComponent, "igo-form-field-text", never, { "formControl": { "alias": "formControl"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "isPassword": { "alias": "isPassword"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
287
285
|
}
|
|
288
286
|
|
|
289
287
|
/**
|
|
@@ -294,19 +292,19 @@ declare class FormFieldTextareaComponent implements OnInit {
|
|
|
294
292
|
/**
|
|
295
293
|
* The field's form control
|
|
296
294
|
*/
|
|
297
|
-
formControl: UntypedFormControl
|
|
295
|
+
readonly formControl: i0.InputSignal<UntypedFormControl>;
|
|
298
296
|
/**
|
|
299
297
|
* Field placeholder
|
|
300
298
|
*/
|
|
301
|
-
placeholder: string
|
|
299
|
+
readonly placeholder: i0.InputSignal<string>;
|
|
302
300
|
/**
|
|
303
301
|
* Field placeholder
|
|
304
302
|
*/
|
|
305
|
-
errors: Record<string, string
|
|
303
|
+
readonly errors: i0.InputSignal<Record<string, string>>;
|
|
306
304
|
/**
|
|
307
305
|
* Wheter a disable switch should be available
|
|
308
306
|
*/
|
|
309
|
-
disableSwitch: boolean
|
|
307
|
+
readonly disableSwitch: i0.InputSignal<boolean>;
|
|
310
308
|
/**
|
|
311
309
|
* Whether the field is required
|
|
312
310
|
*/
|
|
@@ -319,7 +317,7 @@ declare class FormFieldTextareaComponent implements OnInit {
|
|
|
319
317
|
onDisableSwitchClick(): void;
|
|
320
318
|
private toggleDisabled;
|
|
321
319
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldTextareaComponent, never>;
|
|
322
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTextareaComponent, "igo-form-field-textarea", never, { "formControl": { "alias": "formControl"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; }; }, {}, never, never, true, never>;
|
|
320
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTextareaComponent, "igo-form-field-textarea", never, { "formControl": { "alias": "formControl"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
323
321
|
}
|
|
324
322
|
|
|
325
323
|
declare const FORM_DIRECTIVES: readonly [typeof _igo2_common_form.FormFieldComponent, typeof _igo2_common_form.FormFieldSelectComponent, typeof _igo2_common_form.FormFieldTextComponent, typeof _igo2_common_form.FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent];
|
package/home-button/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter } from '@angular/core';
|
|
3
2
|
|
|
4
3
|
declare class HomeButtonComponent {
|
|
5
|
-
unselectButton:
|
|
4
|
+
readonly unselectButton: i0.OutputEmitterRef<void>;
|
|
6
5
|
onUnselectButtonClick(): void;
|
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<HomeButtonComponent, never>;
|
|
8
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<HomeButtonComponent, "igo-home-button", never, {}, { "unselectButton": "unselectButton"; }, never, never, true, never>;
|
package/icon/index.d.ts
CHANGED
|
@@ -30,14 +30,13 @@ declare function provideIcon(style?: MaterialSymbolStyle): EnvironmentProviders;
|
|
|
30
30
|
|
|
31
31
|
declare class IgoIconComponent {
|
|
32
32
|
private iconService;
|
|
33
|
-
color: string
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
private _icon;
|
|
33
|
+
readonly color: i0.InputSignal<string>;
|
|
34
|
+
readonly icon: i0.InputSignal<string | IconSvg>;
|
|
35
|
+
constructor();
|
|
37
36
|
registerSvg(icon: IconSvg): void;
|
|
38
37
|
isSvg(icon: string | IconSvg): icon is IconSvg;
|
|
39
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgoIconComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IgoIconComponent, "igo-icon", never, { "color": { "alias": "color"; "required": false; }; "icon": { "alias": "icon"; "required": true; }; }, {}, never, never, true, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IgoIconComponent, "igo-icon", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
export { CIRCLE_SMALL_ICON, ENGINE_ICON, IconService, IgoIconComponent, KEYBOARD_ESC_ICON, MICROSOFT_ICON, PRESENTATION_PLAY_ICON, SELECTION_MARKER_ICON, VECTOR_SQUARE_ICON, provideIcon };
|
package/image/index.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ import { HttpClient } from '@angular/common/http';
|
|
|
5
5
|
|
|
6
6
|
declare class ImageErrorDirective {
|
|
7
7
|
private el;
|
|
8
|
-
errorImageUrl: string
|
|
9
|
-
hideError: boolean
|
|
8
|
+
readonly errorImageUrl: i0.InputSignal<string>;
|
|
9
|
+
readonly hideError: i0.InputSignal<boolean>;
|
|
10
10
|
onError(event: any): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageErrorDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ImageErrorDirective, "[igoImageError]", never, { "errorImageUrl": { "alias": "errorImageUrl"; "required": false; }; "hideError": { "alias": "hideError"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ImageErrorDirective, "[igoImageError]", never, { "errorImageUrl": { "alias": "errorImageUrl"; "required": false; "isSignal": true; }; "hideError": { "alias": "hideError"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
declare class SecureImagePipe implements PipeTransform {
|
|
@@ -12,9 +12,10 @@ declare class InteractiveTourComponent {
|
|
|
12
12
|
/**
|
|
13
13
|
* Toolbox that holds main tools
|
|
14
14
|
*/
|
|
15
|
-
tourToStart: string
|
|
16
|
-
styleButton:
|
|
17
|
-
discoverTitleInLocale$: Observable<string
|
|
15
|
+
readonly tourToStart: i0.InputSignal<string>;
|
|
16
|
+
readonly styleButton: i0.InputSignal<"icon" | "raised">;
|
|
17
|
+
readonly discoverTitleInLocale$: i0.InputSignal<Observable<string>>;
|
|
18
|
+
constructor();
|
|
18
19
|
getClass(): {
|
|
19
20
|
'tour-button-tool-icon': boolean;
|
|
20
21
|
'tour-button-tool': boolean;
|
|
@@ -27,10 +28,9 @@ declare class InteractiveTourComponent {
|
|
|
27
28
|
get showTourButton(): boolean;
|
|
28
29
|
get isTourDisplayInMobile(): boolean;
|
|
29
30
|
get disabledTourButton(): boolean;
|
|
30
|
-
constructor();
|
|
31
31
|
startInteractiveTour(): void;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<InteractiveTourComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InteractiveTourComponent, "igo-interactive-tour", never, { "tourToStart": { "alias": "tourToStart"; "required": false; }; "styleButton": { "alias": "styleButton"; "required": false; }; "discoverTitleInLocale$": { "alias": "discoverTitleInLocale$"; "required": false; }; }, {}, never, never, true, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InteractiveTourComponent, "igo-interactive-tour", never, { "tourToStart": { "alias": "tourToStart"; "required": false; "isSignal": true; }; "styleButton": { "alias": "styleButton"; "required": false; "isSignal": true; }; "discoverTitleInLocale$": { "alias": "discoverTitleInLocale$"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
declare class IgoInteractiveTourModule {
|