@igo2/common 19.0.3 → 20.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action/index.d.ts +194 -3
- package/backdrop/index.d.ts +20 -3
- package/badge/index.d.ts +44 -3
- package/clickout/index.d.ts +20 -3
- package/clone/index.d.ts +18 -3
- package/collapsible/index.d.ts +43 -3
- package/color/index.d.ts +38 -3
- package/confirm-dialog/index.d.ts +39 -5
- package/context-menu/index.d.ts +50 -3
- package/custom-html/index.d.ts +30 -3
- package/dom/index.d.ts +34 -3
- package/drag-drop/index.d.ts +124 -3
- package/dynamic-component/index.d.ts +186 -3
- package/entity/index.d.ts +1532 -3
- package/environment/index.d.ts +15 -5
- package/fesm2022/igo2-common-action.mjs +28 -38
- 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 +10 -13
- package/fesm2022/igo2-common-badge.mjs.map +1 -1
- package/fesm2022/igo2-common-clickout.mjs +10 -13
- package/fesm2022/igo2-common-clickout.mjs.map +1 -1
- package/fesm2022/igo2-common-clone.mjs +7 -7
- package/fesm2022/igo2-common-clone.mjs.map +1 -1
- package/fesm2022/igo2-common-collapsible.mjs +14 -18
- package/fesm2022/igo2-common-collapsible.mjs.map +1 -1
- package/fesm2022/igo2-common-color.mjs +9 -9
- package/fesm2022/igo2-common-color.mjs.map +1 -1
- package/fesm2022/igo2-common-confirm-dialog.mjs +19 -26
- package/fesm2022/igo2-common-confirm-dialog.mjs.map +1 -1
- package/fesm2022/igo2-common-context-menu.mjs +16 -21
- package/fesm2022/igo2-common-context-menu.mjs.map +1 -1
- package/fesm2022/igo2-common-custom-html.mjs +14 -17
- package/fesm2022/igo2-common-custom-html.mjs.map +1 -1
- package/fesm2022/igo2-common-dom.mjs +11 -14
- package/fesm2022/igo2-common-dom.mjs.map +1 -1
- package/fesm2022/igo2-common-drag-drop.mjs +15 -17
- package/fesm2022/igo2-common-drag-drop.mjs.map +1 -1
- package/fesm2022/igo2-common-dynamic-component.mjs +20 -27
- package/fesm2022/igo2-common-dynamic-component.mjs.map +1 -1
- package/fesm2022/igo2-common-entity.mjs +69 -108
- package/fesm2022/igo2-common-entity.mjs.map +1 -1
- package/fesm2022/igo2-common-flexible.mjs +13 -18
- package/fesm2022/igo2-common-flexible.mjs.map +1 -1
- package/fesm2022/igo2-common-form.mjs +77 -112
- package/fesm2022/igo2-common-form.mjs.map +1 -1
- package/fesm2022/igo2-common-home-button.mjs +7 -7
- package/fesm2022/igo2-common-home-button.mjs.map +1 -1
- package/fesm2022/igo2-common-icon.mjs +14 -21
- package/fesm2022/igo2-common-icon.mjs.map +1 -1
- package/fesm2022/igo2-common-image.mjs +53 -57
- package/fesm2022/igo2-common-image.mjs.map +1 -1
- package/fesm2022/igo2-common-interactive-tour.mjs +43 -56
- package/fesm2022/igo2-common-interactive-tour.mjs.map +1 -1
- package/fesm2022/igo2-common-json-dialog.mjs +19 -28
- package/fesm2022/igo2-common-json-dialog.mjs.map +1 -1
- package/fesm2022/igo2-common-keyvalue.mjs +7 -7
- package/fesm2022/igo2-common-keyvalue.mjs.map +1 -1
- package/fesm2022/igo2-common-list.mjs +16 -23
- package/fesm2022/igo2-common-list.mjs.map +1 -1
- package/fesm2022/igo2-common-panel.mjs +9 -9
- package/fesm2022/igo2-common-panel.mjs.map +1 -1
- package/fesm2022/igo2-common-resizable-bar.mjs +6 -6
- package/fesm2022/igo2-common-resizable-bar.mjs.map +1 -1
- package/fesm2022/igo2-common-select-value-dialog.mjs +28 -44
- package/fesm2022/igo2-common-select-value-dialog.mjs.map +1 -1
- package/fesm2022/igo2-common-sidenav.mjs +10 -16
- package/fesm2022/igo2-common-sidenav.mjs.map +1 -1
- package/fesm2022/igo2-common-spinner.mjs +15 -21
- 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 +9 -11
- package/fesm2022/igo2-common-table.mjs.map +1 -1
- package/fesm2022/igo2-common-tool.mjs +16 -22
- package/fesm2022/igo2-common-tool.mjs.map +1 -1
- package/fesm2022/igo2-common-widget.mjs +19 -24
- package/fesm2022/igo2-common-widget.mjs.map +1 -1
- package/fesm2022/igo2-common-workspace.mjs +20 -20
- package/fesm2022/igo2-common-workspace.mjs.map +1 -1
- package/flexible/index.d.ts +54 -3
- package/form/index.d.ts +429 -3
- package/home-button/index.d.ts +18 -3
- package/icon/index.d.ts +42 -3
- package/image/index.d.ts +35 -3
- package/index.d.ts +16 -5
- package/interactive-tour/index.d.ts +116 -5
- package/json-dialog/index.d.ts +34 -5
- package/keyvalue/index.d.ts +18 -3
- package/list/index.d.ts +102 -3
- package/package.json +10 -13
- package/panel/index.d.ts +20 -3
- package/resizable-bar/index.d.ts +37 -5
- package/select-value-dialog/index.d.ts +65 -5
- package/sidenav/index.d.ts +29 -3
- package/spinner/index.d.ts +51 -3
- package/src/style/partial/common-utils.scss +1 -1
- package/stop-propagation/index.d.ts +26 -3
- package/table/index.d.ts +105 -3
- package/tool/index.d.ts +289 -3
- package/widget/index.d.ts +105 -3
- package/workspace/index.d.ts +237 -3
- package/action/action.module.d.ts +0 -10
- package/action/actionbar/actionbar-item.component.d.ts +0 -73
- package/action/actionbar/actionbar.component.d.ts +0 -148
- package/action/actionbar/actionbar.module.d.ts +0 -10
- package/action/public_api.d.ts +0 -4
- package/action/shared/action.enums.d.ts +0 -5
- package/action/shared/action.interfaces.d.ts +0 -16
- package/action/shared/index.d.ts +0 -3
- package/action/shared/store.d.ts +0 -8
- package/action/src/action.theming.scss +0 -9
- package/action/src/actionbar/actionbar-item.theming.scss +0 -20
- package/backdrop/backdrop.component.d.ts +0 -8
- package/backdrop/backdrop.module.d.ts +0 -12
- package/backdrop/public_api.d.ts +0 -2
- package/badge/badge-icon.directive.d.ts +0 -34
- package/badge/badge-icon.module.d.ts +0 -12
- package/badge/public_api.d.ts +0 -2
- package/clickout/clickout.directive.d.ts +0 -10
- package/clickout/clickout.module.d.ts +0 -12
- package/clickout/public_api.d.ts +0 -2
- package/clone/clone.module.d.ts +0 -12
- package/clone/clone.pipe.d.ts +0 -7
- package/clone/public_api.d.ts +0 -2
- package/collapsible/collapse.directive.d.ts +0 -19
- package/collapsible/collapsible.component.d.ts +0 -13
- package/collapsible/collapsible.module.d.ts +0 -13
- package/collapsible/public_api.d.ts +0 -6
- package/color/color-picker-form-field/color-picker-form-field.component.d.ts +0 -29
- package/color/color-picker-form-field/color-picker-form-field.module.d.ts +0 -10
- package/color/color-picker-form-field/index.d.ts +0 -2
- package/color/public_api.d.ts +0 -1
- package/confirm-dialog/confirm-dialog.component.d.ts +0 -12
- package/confirm-dialog/confirm-dialog.interface.d.ts +0 -4
- package/confirm-dialog/confirm-dialog.module.d.ts +0 -12
- package/confirm-dialog/confirm-dialog.service.d.ts +0 -11
- package/confirm-dialog/public_api.d.ts +0 -4
- package/context-menu/context-menu.directive.d.ts +0 -21
- package/context-menu/context-menu.module.d.ts +0 -13
- package/context-menu/long-press.directive.d.ts +0 -19
- package/context-menu/public_api.d.ts +0 -6
- package/custom-html/custom-html.component.d.ts +0 -8
- package/custom-html/custom-html.module.d.ts +0 -13
- package/custom-html/custom-html.pipe.d.ts +0 -10
- package/custom-html/public_api.d.ts +0 -6
- package/dom/dom.interfaces.d.ts +0 -10
- package/dom/dom.module.d.ts +0 -14
- package/dom/dom.service.d.ts +0 -10
- package/dom/public_api.d.ts +0 -3
- package/drag-drop/drag-drop.directive.d.ts +0 -14
- package/drag-drop/drag-drop.module.d.ts +0 -13
- package/drag-drop/public_api.d.ts +0 -3
- package/drag-drop/tree-drag-drop/index.d.ts +0 -2
- package/drag-drop/tree-drag-drop/tree-drag-drop.directive.d.ts +0 -85
- package/drag-drop/tree-drag-drop/tree-drag-drop.interface.d.ts +0 -15
- package/dynamic-component/dynamic-component.module.d.ts +0 -10
- package/dynamic-component/dynamic-outlet/dynamic-outlet.component.d.ts +0 -66
- package/dynamic-component/dynamic-outlet/dynamic-outlet.module.d.ts +0 -10
- package/dynamic-component/public_api.d.ts +0 -4
- package/dynamic-component/shared/dynamic-component.d.ts +0 -84
- package/dynamic-component/shared/dynamic-component.interfaces.d.ts +0 -3
- package/dynamic-component/shared/dynamic-component.service.d.ts +0 -18
- package/dynamic-component/shared/index.d.ts +0 -3
- package/entity/entity-selector/entity-selector.component.d.ts +0 -93
- package/entity/entity-selector/entity-selector.module.d.ts +0 -10
- package/entity/entity-selector/index.d.ts +0 -2
- package/entity/entity-table/entity-table-row.directive.d.ts +0 -69
- package/entity/entity-table/entity-table.component.d.ts +0 -330
- package/entity/entity-table/entity-table.module.d.ts +0 -10
- package/entity/entity-table/index.d.ts +0 -2
- package/entity/entity-table-paginator/entity-table-paginator.component.d.ts +0 -50
- package/entity/entity-table-paginator/entity-table-paginator.interface.d.ts +0 -8
- package/entity/entity-table-paginator/entity-table-paginator.module.d.ts +0 -10
- package/entity/entity-table-paginator/index.d.ts +0 -3
- package/entity/entity.module.d.ts +0 -16
- package/entity/public_api.d.ts +0 -5
- package/entity/shared/entity.enums.d.ts +0 -23
- package/entity/shared/entity.interfaces.d.ts +0 -92
- package/entity/shared/entity.utils.d.ts +0 -49
- package/entity/shared/index.d.ts +0 -9
- package/entity/shared/state.d.ts +0 -108
- package/entity/shared/store.d.ts +0 -180
- package/entity/shared/strategies/filter-custom-function.d.ts +0 -51
- package/entity/shared/strategies/filter-selection.d.ts +0 -48
- package/entity/shared/strategies/index.d.ts +0 -3
- package/entity/shared/strategies/strategy.d.ts +0 -56
- package/entity/shared/transaction.d.ts +0 -171
- package/entity/shared/view.d.ts +0 -193
- package/entity/shared/watcher.d.ts +0 -72
- package/entity/src/entity-selector/entity-selector.theming.scss +0 -21
- package/entity/src/entity-table/entity-table.theming.scss +0 -21
- package/entity/src/entity.theming.scss +0 -12
- package/environment/environment.interface.d.ts +0 -13
- package/environment/public_api.d.ts +0 -1
- package/flexible/flexible.component.d.ts +0 -42
- package/flexible/flexible.module.d.ts +0 -12
- package/flexible/flexible.type.d.ts +0 -2
- package/flexible/public_api.d.ts +0 -3
- package/form/form/form.component.d.ts +0 -46
- package/form/form/form.module.d.ts +0 -10
- package/form/form/index.d.ts +0 -2
- package/form/form-dialog/form-dialog.component.d.ts +0 -19
- package/form/form-dialog/form-dialog.interface.d.ts +0 -16
- package/form/form-dialog/form-dialog.module.d.ts +0 -16
- package/form/form-dialog/form-dialog.service.d.ts +0 -11
- package/form/form-dialog/index.d.ts +0 -4
- package/form/form-field/form-field-select.component.d.ts +0 -50
- package/form/form-field/form-field-text.component.d.ts +0 -49
- package/form/form-field/form-field-textarea.component.d.ts +0 -39
- package/form/form-field/form-field.component.d.ts +0 -29
- package/form/form-field/form-field.directive.d.ts +0 -5
- package/form/form-field/form-field.module.d.ts +0 -13
- package/form/form-field/index.d.ts +0 -6
- package/form/form-group/form-group.component.d.ts +0 -44
- package/form/form-group/form-group.module.d.ts +0 -10
- package/form/form-group/index.d.ts +0 -2
- package/form/form.module.d.ts +0 -18
- package/form/public_api.d.ts +0 -6
- package/form/shared/form-field-component.d.ts +0 -1
- package/form/shared/form-field.service.d.ts +0 -16
- package/form/shared/form.interfaces.d.ts +0 -60
- package/form/shared/form.service.d.ts +0 -15
- package/form/shared/form.utils.d.ts +0 -7
- package/form/shared/index.d.ts +0 -5
- package/home-button/home-button.component.d.ts +0 -8
- package/home-button/home-button.module.d.ts +0 -10
- package/home-button/public_api.d.ts +0 -2
- package/icon/icon/icon.component.d.ts +0 -15
- package/icon/icon.provider.d.ts +0 -4
- package/icon/public_api.d.ts +0 -3
- package/icon/shared/icon.interface.d.ts +0 -4
- package/icon/shared/icon.service.d.ts +0 -12
- package/icon/shared/icons.d.ts +0 -11
- package/icon/shared/index.d.ts +0 -3
- package/image/image-error.directive.d.ts +0 -11
- package/image/image.module.d.ts +0 -13
- package/image/public_api.d.ts +0 -6
- package/image/secure-image.pipe.d.ts +0 -13
- package/interactive-tour/interactive-tour.component.d.ts +0 -33
- package/interactive-tour/interactive-tour.interface.d.ts +0 -35
- package/interactive-tour/interactive-tour.loader.d.ts +0 -18
- package/interactive-tour/interactive-tour.module.d.ts +0 -7
- package/interactive-tour/interactive-tour.service.d.ts +0 -30
- package/interactive-tour/public_api.d.ts +0 -5
- package/json-dialog/json-dialog.component.d.ts +0 -13
- package/json-dialog/json-dialog.module.d.ts +0 -12
- package/json-dialog/json-dialog.service.d.ts +0 -10
- package/json-dialog/public_api.d.ts +0 -3
- package/keyvalue/keyvalue.module.d.ts +0 -12
- package/keyvalue/keyvalue.pipe.d.ts +0 -7
- package/keyvalue/public_api.d.ts +0 -2
- package/list/list-item.directive.d.ts +0 -43
- package/list/list.component.d.ts +0 -51
- package/list/list.module.d.ts +0 -13
- package/list/public_api.d.ts +0 -6
- package/panel/panel.component.d.ts +0 -10
- package/panel/panel.module.d.ts +0 -10
- package/panel/public_api.d.ts +0 -2
- package/panel/src/panel.theming.scss +0 -20
- package/public_api.d.ts +0 -16
- package/resizable-bar/public_api.d.ts +0 -2
- package/resizable-bar/resizable-bar.component.d.ts +0 -23
- package/resizable-bar/shared/resize.directive.d.ts +0 -12
- package/select-value-dialog/public_api.d.ts +0 -5
- package/select-value-dialog/select-value-check-radio-dialog.component.d.ts +0 -25
- package/select-value-dialog/select-value-dialog.enums.d.ts +0 -4
- package/select-value-dialog/select-value-dialog.interface.d.ts +0 -16
- package/select-value-dialog/select-value-dialog.module.d.ts +0 -12
- package/select-value-dialog/select-value-dialog.service.d.ts +0 -11
- package/sidenav/public_api.d.ts +0 -2
- package/sidenav/sidenav-shim.directive.d.ts +0 -20
- package/sidenav/sidenav.module.d.ts +0 -12
- package/spinner/public_api.d.ts +0 -3
- package/spinner/spinner-activity.directive.d.ts +0 -32
- package/spinner/spinner.component.d.ts +0 -11
- package/spinner/spinner.module.d.ts +0 -14
- package/src/common.theme.scss +0 -18
- package/stop-propagation/public_api.d.ts +0 -6
- package/stop-propagation/stop-drop-propagation.directive.d.ts +0 -6
- package/stop-propagation/stop-propagation.directive.d.ts +0 -6
- package/stop-propagation/stop-propagation.module.d.ts +0 -13
- package/table/public_api.d.ts +0 -6
- package/table/table-action-color.enum.d.ts +0 -5
- package/table/table-database.d.ts +0 -10
- package/table/table-datasource.d.ts +0 -18
- package/table/table-model.interface.d.ts +0 -24
- package/table/table.component.d.ts +0 -40
- package/table/table.module.d.ts +0 -12
- package/tool/public_api.d.ts +0 -3
- package/tool/shared/index.d.ts +0 -5
- package/tool/shared/tool-component.d.ts +0 -2
- package/tool/shared/tool.interface.d.ts +0 -16
- package/tool/shared/tool.service.d.ts +0 -28
- package/tool/shared/toolbox.d.ts +0 -96
- package/tool/shared/toolbox.enums.d.ts +0 -1
- package/tool/src/tool.theming.scss +0 -5
- package/tool/src/toolbox/toolbox.theming.scss +0 -22
- package/tool/tool.module.d.ts +0 -15
- package/tool/toolbox/index.d.ts +0 -2
- package/tool/toolbox/toolbox.animation.d.ts +0 -2
- package/tool/toolbox/toolbox.component.d.ts +0 -126
- package/tool/toolbox/toolbox.module.d.ts +0 -10
- package/widget/public_api.d.ts +0 -3
- package/widget/shared/index.d.ts +0 -3
- package/widget/shared/widget.d.ts +0 -4
- package/widget/shared/widget.interfaces.d.ts +0 -12
- package/widget/shared/widget.service.d.ts +0 -10
- package/widget/widget-outlet/index.d.ts +0 -2
- package/widget/widget-outlet/widget-outlet.component.d.ts +0 -64
- package/widget/widget-outlet/widget-outlet.module.d.ts +0 -10
- package/widget/widget.module.d.ts +0 -10
- package/workspace/public_api.d.ts +0 -4
- package/workspace/shared/index.d.ts +0 -3
- package/workspace/shared/store.d.ts +0 -20
- package/workspace/shared/workspace.d.ts +0 -98
- package/workspace/shared/workspace.interfaces.d.ts +0 -9
- package/workspace/workspace-selector/index.d.ts +0 -2
- package/workspace/workspace-selector/workspace-selector.component.d.ts +0 -38
- package/workspace/workspace-selector/workspace-selector.module.d.ts +0 -10
- package/workspace/workspace-widget-outlet/index.d.ts +0 -2
- package/workspace/workspace-widget-outlet/workspace-widget-outlet.component.d.ts +0 -52
- package/workspace/workspace-widget-outlet/workspace-widget-outlet.module.d.ts +0 -10
- package/workspace/workspace.module.d.ts +0 -14
|
@@ -1,29 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { DynamicComponent, DynamicOutletComponent } from '@igo2/common/dynamic-component';
|
|
1
|
+
import { DynamicComponent, DynamicComponentService, DynamicOutletComponent } from '@igo2/common/dynamic-component';
|
|
3
2
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Injectable, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
5
|
-
import { NgIf } from '@angular/common';
|
|
3
|
+
import { inject, Injectable, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
4
|
|
|
7
5
|
class Widget extends DynamicComponent {
|
|
8
6
|
}
|
|
9
7
|
|
|
10
8
|
class WidgetService {
|
|
11
|
-
dynamicComponentService;
|
|
12
|
-
constructor(dynamicComponentService) {
|
|
13
|
-
this.dynamicComponentService = dynamicComponentService;
|
|
14
|
-
}
|
|
9
|
+
dynamicComponentService = inject(DynamicComponentService);
|
|
15
10
|
create(widgetCls) {
|
|
16
11
|
return this.dynamicComponentService.create(widgetCls);
|
|
17
12
|
}
|
|
18
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
19
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: WidgetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: WidgetService, providedIn: 'root' });
|
|
20
15
|
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: WidgetService, decorators: [{
|
|
22
17
|
type: Injectable,
|
|
23
18
|
args: [{
|
|
24
19
|
providedIn: 'root'
|
|
25
20
|
}]
|
|
26
|
-
}]
|
|
21
|
+
}] });
|
|
27
22
|
|
|
28
23
|
/**
|
|
29
24
|
* This component dynamically renders a widget. It also subscribes
|
|
@@ -115,12 +110,12 @@ class WidgetOutletComponent {
|
|
|
115
110
|
}
|
|
116
111
|
this.widget = undefined;
|
|
117
112
|
}
|
|
118
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
119
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
113
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: WidgetOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
114
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: WidgetOutletComponent, isStandalone: true, selector: "igo-widget-outlet", inputs: { widget: "widget", inputs: "inputs", subscribers: "subscribers" }, outputs: { complete: "complete", cancel: "cancel" }, ngImport: i0, template: "@if (widget) {\n <igo-dynamic-outlet\n [component]=\"widget\"\n [inputs]=\"inputs\"\n [subscribers]=\"getEffectiveSubscribers()\"\n >\n </igo-dynamic-outlet>\n}\n", styles: [":host igo-dynamic-outlet{height:100%}\n"], dependencies: [{ kind: "component", type: DynamicOutletComponent, selector: "igo-dynamic-outlet", inputs: ["component", "inputs", "subscribers"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
120
115
|
}
|
|
121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: WidgetOutletComponent, decorators: [{
|
|
122
117
|
type: Component,
|
|
123
|
-
args: [{ selector: 'igo-widget-outlet', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
118
|
+
args: [{ selector: 'igo-widget-outlet', changeDetection: ChangeDetectionStrategy.OnPush, imports: [DynamicOutletComponent], template: "@if (widget) {\n <igo-dynamic-outlet\n [component]=\"widget\"\n [inputs]=\"inputs\"\n [subscribers]=\"getEffectiveSubscribers()\"\n >\n </igo-dynamic-outlet>\n}\n", styles: [":host igo-dynamic-outlet{height:100%}\n"] }]
|
|
124
119
|
}], propDecorators: { widget: [{
|
|
125
120
|
type: Input
|
|
126
121
|
}], inputs: [{
|
|
@@ -137,11 +132,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
137
132
|
* @deprecated import the WidgetOutletComponent directly
|
|
138
133
|
*/
|
|
139
134
|
class IgoWidgetOutletModule {
|
|
140
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
141
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
142
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
135
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IgoWidgetOutletModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
136
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.4", ngImport: i0, type: IgoWidgetOutletModule, imports: [WidgetOutletComponent], exports: [WidgetOutletComponent] });
|
|
137
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IgoWidgetOutletModule, imports: [WidgetOutletComponent] });
|
|
143
138
|
}
|
|
144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IgoWidgetOutletModule, decorators: [{
|
|
145
140
|
type: NgModule,
|
|
146
141
|
args: [{
|
|
147
142
|
imports: [WidgetOutletComponent],
|
|
@@ -153,11 +148,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
153
148
|
* @deprecated import the WidgetOutletComponent directly
|
|
154
149
|
*/
|
|
155
150
|
class IgoWidgetModule {
|
|
156
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
157
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
158
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
151
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IgoWidgetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
152
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.4", ngImport: i0, type: IgoWidgetModule, imports: [IgoWidgetOutletModule], exports: [IgoWidgetOutletModule] });
|
|
153
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IgoWidgetModule, providers: [WidgetService], imports: [IgoWidgetOutletModule, IgoWidgetOutletModule] });
|
|
159
154
|
}
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IgoWidgetModule, decorators: [{
|
|
161
156
|
type: NgModule,
|
|
162
157
|
args: [{
|
|
163
158
|
imports: [IgoWidgetOutletModule],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"igo2-common-widget.mjs","sources":["../../../packages/common/widget/src/shared/widget.ts","../../../packages/common/widget/src/shared/widget.service.ts","../../../packages/common/widget/src/widget-outlet/widget-outlet.component.ts","../../../packages/common/widget/src/widget-outlet/widget-outlet.component.html","../../../packages/common/widget/src/widget-outlet/widget-outlet.module.ts","../../../packages/common/widget/src/widget.module.ts","../../../packages/common/widget/src/igo2-common-widget.ts"],"sourcesContent":["import { DynamicComponent } from '@igo2/common/dynamic-component';\n\nimport { WidgetComponent } from './widget.interfaces';\n\nexport class Widget extends DynamicComponent<WidgetComponent> {}\n","import { Injectable } from '@angular/core';\n\nimport { DynamicComponentService } from '@igo2/common/dynamic-component';\n\nimport { Widget } from './widget';\nimport { WidgetComponent } from './widget.interfaces';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class WidgetService {\n
|
|
1
|
+
{"version":3,"file":"igo2-common-widget.mjs","sources":["../../../packages/common/widget/src/shared/widget.ts","../../../packages/common/widget/src/shared/widget.service.ts","../../../packages/common/widget/src/widget-outlet/widget-outlet.component.ts","../../../packages/common/widget/src/widget-outlet/widget-outlet.component.html","../../../packages/common/widget/src/widget-outlet/widget-outlet.module.ts","../../../packages/common/widget/src/widget.module.ts","../../../packages/common/widget/src/igo2-common-widget.ts"],"sourcesContent":["import { DynamicComponent } from '@igo2/common/dynamic-component';\n\nimport { WidgetComponent } from './widget.interfaces';\n\nexport class Widget extends DynamicComponent<WidgetComponent> {}\n","import { Injectable, inject } from '@angular/core';\n\nimport { DynamicComponentService } from '@igo2/common/dynamic-component';\n\nimport { Widget } from './widget';\nimport { WidgetComponent } from './widget.interfaces';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class WidgetService {\n private dynamicComponentService = inject(DynamicComponentService);\n\n create(widgetCls: any): Widget {\n return this.dynamicComponentService.create(widgetCls as WidgetComponent);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n OnDestroy,\n Output\n} from '@angular/core';\n\nimport {\n DynamicComponent,\n DynamicOutletComponent\n} from '@igo2/common/dynamic-component';\n\nimport { WidgetComponent } from '../shared/widget.interfaces';\n\n/**\n * This component dynamically renders a widget. It also subscribes\n * to the widget's 'cancel' and 'complete' events and destroys it\n * when any of those event is emitted.\n */\n@Component({\n selector: 'igo-widget-outlet',\n templateUrl: './widget-outlet.component.html',\n styleUrls: ['./widget-outlet.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [DynamicOutletComponent]\n})\nexport class WidgetOutletComponent implements OnDestroy {\n /**\n * Widget subscribers to 'cancel' and 'complete'\n * @internal\n */\n private baseSubscribers = {\n cancel: (event: any) => this.onCancel(event),\n complete: (event: any) => this.onComplete(event)\n };\n\n /**\n * Widget\n */\n @Input() widget: DynamicComponent<WidgetComponent>;\n\n /**\n * Widget inputs\n */\n @Input() inputs: Record<string, any>;\n\n /**\n * Widget subscribers\n */\n @Input() subscribers: Record<string, (event: any) => void> = {};\n\n /**\n * Event emitted when the widget emits 'complete'\n */\n @Output() complete = new EventEmitter<any>();\n\n /**\n * Event emitted when the widget emits 'cancel'\n */\n @Output() cancel = new EventEmitter<any>();\n\n /**\n * Destroy the current widget and all it's inner subscriptions\n * @internal\n */\n ngOnDestroy() {\n this.destroyWidget();\n }\n\n /**\n * Get the effective subscribers. That means a combination of the base\n * subscribers and any subscriber given as input.\n * @returns Combined subscribers\n * @internal\n */\n getEffectiveSubscribers(): Record<string, (event: any) => void> {\n const subscribers = Object.assign({}, this.subscribers);\n\n // Base subscribers\n Object.keys(this.baseSubscribers).forEach((key: string) => {\n const subscriber = subscribers[key];\n const baseSubscriber = this.baseSubscribers[key];\n if (subscriber !== undefined) {\n subscribers[key] = (event: any) => {\n subscriber(event);\n baseSubscriber(event);\n };\n } else {\n subscribers[key] = baseSubscriber;\n }\n });\n\n return subscribers;\n }\n\n /**\n * When the widget emits 'cancel', propagate that event and destroy\n * the widget\n */\n private onCancel(event: any) {\n this.cancel.emit(event);\n this.destroyWidget();\n }\n\n /**\n * When the widget emits 'complete', propagate that event and destroy\n * the widget\n */\n private onComplete(event: any) {\n this.complete.emit(event);\n this.destroyWidget();\n }\n\n /**\n * Destroy the current widget\n */\n private destroyWidget() {\n if (this.widget !== undefined) {\n this.widget.destroy();\n }\n this.widget = undefined;\n }\n}\n","@if (widget) {\n <igo-dynamic-outlet\n [component]=\"widget\"\n [inputs]=\"inputs\"\n [subscribers]=\"getEffectiveSubscribers()\"\n >\n </igo-dynamic-outlet>\n}\n","import { NgModule } from '@angular/core';\n\nimport { WidgetOutletComponent } from './widget-outlet.component';\n\n/**\n * @deprecated import the WidgetOutletComponent directly\n */\n@NgModule({\n imports: [WidgetOutletComponent],\n exports: [WidgetOutletComponent]\n})\nexport class IgoWidgetOutletModule {}\n","import { NgModule } from '@angular/core';\n\nimport { WidgetService } from './shared/widget.service';\nimport { IgoWidgetOutletModule } from './widget-outlet/widget-outlet.module';\n\n/**\n * @deprecated import the WidgetOutletComponent directly\n */\n@NgModule({\n imports: [IgoWidgetOutletModule],\n exports: [IgoWidgetOutletModule],\n declarations: [],\n providers: [WidgetService]\n})\nexport class IgoWidgetModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;AAIM,MAAO,MAAO,SAAQ,gBAAiC,CAAA;AAAG;;MCMnD,aAAa,CAAA;AAChB,IAAA,uBAAuB,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAEjE,IAAA,MAAM,CAAC,SAAc,EAAA;QACnB,OAAO,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,SAA4B,CAAC;IAC1E;uGALW,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAb,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,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IpB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,aAFf,CAAC,aAAa,CAAC,EAAA,OAAA,EAAA,CAHhB,qBAAqB,EACrB,qBAAqB,CAAA,EAAA,CAAA;;2FAIpB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAN3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,qBAAqB,CAAC;oBAChC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AAChC,oBAAA,YAAY,EAAE,EAAE;oBAChB,SAAS,EAAE,CAAC,aAAa;AAC1B,iBAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -2,7 +2,7 @@ import { EntityStore, getEntityTitle, EntitySelectorComponent } from '@igo2/comm
|
|
|
2
2
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { EventEmitter, Output, Input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
5
|
-
import {
|
|
5
|
+
import { AsyncPipe } from '@angular/common';
|
|
6
6
|
import { WidgetOutletComponent } from '@igo2/common/widget';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -215,10 +215,10 @@ class WorkspaceSelectorComponent {
|
|
|
215
215
|
this.store.activateWorkspace(workspace);
|
|
216
216
|
this.selectedChange.emit({ selected: true, value: workspace });
|
|
217
217
|
}
|
|
218
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
219
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
218
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: WorkspaceSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
219
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: WorkspaceSelectorComponent, isStandalone: true, selector: "igo-workspace-selector", inputs: { store: "store", disabled: "disabled" }, outputs: { selectedChange: "selectedChange" }, ngImport: i0, template: "<igo-entity-selector\n [store]=\"store\"\n [multi]=\"false\"\n [titleAccessor]=\"getWorkspaceTitle\"\n [disabled]=\"disabled\"\n (selectedChange)=\"onSelectedChange($event)\"\n>\n</igo-entity-selector>\n", styles: [""], dependencies: [{ kind: "component", type: EntitySelectorComponent, selector: "igo-entity-selector", inputs: ["store", "titleAccessor", "emptyText", "multi", "multiAllText", "multiNoneText", "placeholder", "disabled"], outputs: ["selectedChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
220
220
|
}
|
|
221
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: WorkspaceSelectorComponent, decorators: [{
|
|
222
222
|
type: Component,
|
|
223
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</igo-entity-selector>\n" }]
|
|
224
224
|
}], propDecorators: { store: [{
|
|
@@ -233,11 +233,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
233
233
|
* @deprecated import the WorkspaceSelectorComponent directly
|
|
234
234
|
*/
|
|
235
235
|
class IgoWorkspaceSelectorModule {
|
|
236
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
237
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
238
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
236
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IgoWorkspaceSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
237
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.4", ngImport: i0, type: IgoWorkspaceSelectorModule, imports: [WorkspaceSelectorComponent], exports: [WorkspaceSelectorComponent] });
|
|
238
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IgoWorkspaceSelectorModule, imports: [WorkspaceSelectorComponent] });
|
|
239
239
|
}
|
|
240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IgoWorkspaceSelectorModule, decorators: [{
|
|
241
241
|
type: NgModule,
|
|
242
242
|
args: [{
|
|
243
243
|
imports: [WorkspaceSelectorComponent],
|
|
@@ -301,12 +301,12 @@ class WorkspaceWidgetOutletComponent {
|
|
|
301
301
|
this.workspace.deactivateWidget();
|
|
302
302
|
this.deactivateWidget.emit(widget);
|
|
303
303
|
}
|
|
304
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
305
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
304
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: WorkspaceWidgetOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
305
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: WorkspaceWidgetOutletComponent, isStandalone: true, selector: "igo-workspace-widget-outlet", inputs: { workspace: "workspace" }, 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 </igo-widget-outlet>\n}\n", styles: ["igo-widget-outlet{height:100%}\n"], dependencies: [{ kind: "component", type: WidgetOutletComponent, selector: "igo-widget-outlet", inputs: ["widget", "inputs", "subscribers"], outputs: ["complete", "cancel"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
306
306
|
}
|
|
307
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: WorkspaceWidgetOutletComponent, decorators: [{
|
|
308
308
|
type: Component,
|
|
309
|
-
args: [{ selector: 'igo-workspace-widget-outlet', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
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 >\n </igo-widget-outlet>\n}\n", styles: ["igo-widget-outlet{height:100%}\n"] }]
|
|
310
310
|
}], propDecorators: { workspace: [{
|
|
311
311
|
type: Input
|
|
312
312
|
}], deactivateWidget: [{
|
|
@@ -317,11 +317,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
317
317
|
* @deprecated import the WorkspaceWidgetOutletComponent directly
|
|
318
318
|
*/
|
|
319
319
|
class IgoWorkspaceWidgetOutletModule {
|
|
320
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
321
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
322
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
320
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
321
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.4", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, imports: [WorkspaceWidgetOutletComponent], exports: [WorkspaceWidgetOutletComponent] });
|
|
322
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, imports: [WorkspaceWidgetOutletComponent] });
|
|
323
323
|
}
|
|
324
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IgoWorkspaceWidgetOutletModule, decorators: [{
|
|
325
325
|
type: NgModule,
|
|
326
326
|
args: [{
|
|
327
327
|
imports: [WorkspaceWidgetOutletComponent],
|
|
@@ -337,13 +337,13 @@ const WORKSPACE_DIRECTIVES = [
|
|
|
337
337
|
* @deprecated import the components directly or WORKSPACE_DIRECTIVES for every components/directives
|
|
338
338
|
*/
|
|
339
339
|
class IgoWorkspaceModule {
|
|
340
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
341
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
340
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IgoWorkspaceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
341
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.4", ngImport: i0, type: IgoWorkspaceModule, imports: [WorkspaceSelectorComponent,
|
|
342
342
|
WorkspaceWidgetOutletComponent], exports: [WorkspaceSelectorComponent,
|
|
343
343
|
WorkspaceWidgetOutletComponent] });
|
|
344
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
344
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IgoWorkspaceModule, imports: [WORKSPACE_DIRECTIVES] });
|
|
345
345
|
}
|
|
346
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
346
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IgoWorkspaceModule, decorators: [{
|
|
347
347
|
type: NgModule,
|
|
348
348
|
args: [{
|
|
349
349
|
imports: [...WORKSPACE_DIRECTIVES],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"igo2-common-workspace.mjs","sources":["../../../packages/common/workspace/src/shared/store.ts","../../../packages/common/workspace/src/shared/workspace.ts","../../../packages/common/workspace/src/workspace-selector/workspace-selector.component.ts","../../../packages/common/workspace/src/workspace-selector/workspace-selector.component.html","../../../packages/common/workspace/src/workspace-selector/workspace-selector.module.ts","../../../packages/common/workspace/src/workspace-widget-outlet/workspace-widget-outlet.component.ts","../../../packages/common/workspace/src/workspace-widget-outlet/workspace-widget-outlet.component.html","../../../packages/common/workspace/src/workspace-widget-outlet/workspace-widget-outlet.module.ts","../../../packages/common/workspace/src/workspace.module.ts","../../../packages/common/workspace/src/igo2-common-workspace.ts"],"sourcesContent":["import { EntityStore } from '@igo2/common/entity';\n\nimport { BehaviorSubject } from 'rxjs';\n\nimport { Workspace } from './workspace';\n\n/**\n * The class is a specialized version of an EntityStore that stores\n * workspaces.\n */\nexport class WorkspaceStore extends EntityStore<Workspace> {\n activeWorkspace$ = 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, NgIf } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n Output\n} from '@angular/core';\n\nimport { Widget, WidgetOutletComponent } from '@igo2/common/widget';\n\nimport { BehaviorSubject } from 'rxjs';\n\nimport { Workspace } from '../shared/workspace';\n\n/**\n * This component dynamically render an Workspace's active widget.\n * It also deactivate that widget whenever the widget's component\n * emit the 'cancel' or 'complete' event.\n */\n@Component({\n selector: 'igo-workspace-widget-outlet',\n templateUrl: './workspace-widget-outlet.component.html',\n styleUrls: ['./workspace-widget-outlet.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgIf, WidgetOutletComponent, AsyncPipe]\n})\nexport class WorkspaceWidgetOutletComponent {\n /**\n * Workspace\n */\n @Input() workspace: Workspace;\n\n /**\n * Event emitted when a widget is deactivate which happens\n * when the widget's component emits the 'cancel' or 'complete' event.\n */\n @Output() deactivateWidget = new EventEmitter<Widget>();\n\n /**\n * Observable of the workspace's active widget\n * @internal\n */\n get widget$(): BehaviorSubject<Widget> {\n return this.workspace.widget$;\n }\n\n /**\n * Observable of the workspace's widget inputs\n * @internal\n */\n get widgetInputs$(): BehaviorSubject<Record<string, any>> {\n return this.workspace.widgetInputs$;\n }\n\n /**\n * Observable of the workspace's widget inputs\n * @internal\n */\n get widgetSubscribers$(): BehaviorSubject<\n Record<string, (event: any) => void>\n > {\n return this.workspace.widgetSubscribers$;\n }\n\n /**\n * When a widget's component emit the 'cancel' event,\n * deactivate that widget and emit the 'deactivateWidget' event.\n * @param widget Widget\n * @internal\n */\n onWidgetCancel(widget: Widget) {\n this.workspace.deactivateWidget();\n this.deactivateWidget.emit(widget);\n }\n\n /**\n * When a widget's component emit the 'cancel' event,\n * deactivate that widget and emit the 'deactivateWidget' event.\n * @param widget Widget\n * @internal\n */\n onWidgetComplete(widget: Widget) {\n this.workspace.deactivateWidget();\n this.deactivateWidget.emit(widget);\n }\n}\n","<ng-container *ngIf=\"widget$ | async as widget\">\n <igo-widget-outlet\n [widget]=\"widget\"\n [inputs]=\"widgetInputs$ | async\"\n [subscribers]=\"widgetSubscribers$ | async\"\n (cancel)=\"onWidgetCancel(widget)\"\n (complete)=\"onWidgetComplete(widget)\"\n >\n </igo-widget-outlet>\n</ng-container>\n","import { NgModule } from '@angular/core';\n\nimport { WorkspaceWidgetOutletComponent } from './workspace-widget-outlet.component';\n\n/**\n * @deprecated import the WorkspaceWidgetOutletComponent directly\n */\n@NgModule({\n imports: [WorkspaceWidgetOutletComponent],\n exports: [WorkspaceWidgetOutletComponent]\n})\nexport class IgoWorkspaceWidgetOutletModule {}\n","import { NgModule } from '@angular/core';\n\nimport { WorkspaceSelectorComponent } from './workspace-selector';\nimport { WorkspaceWidgetOutletComponent } from './workspace-widget-outlet';\n\nexport const WORKSPACE_DIRECTIVES = [\n WorkspaceSelectorComponent,\n WorkspaceWidgetOutletComponent\n] as const;\n\n/**\n * @deprecated import the components directly or WORKSPACE_DIRECTIVES for every components/directives\n */\n@NgModule({\n imports: [...WORKSPACE_DIRECTIVES],\n exports: [...WORKSPACE_DIRECTIVES],\n declarations: []\n})\nexport class IgoWorkspaceModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;AAMA;;;AAGG;AACG,MAAO,cAAe,SAAQ,WAAsB,CAAA;AACxD,IAAA,gBAAgB,GAAG,IAAI,eAAe,CAAY,SAAS,CAAC;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;;QAGrB,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;;;AAIxB;;;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AA,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);\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,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;;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B,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;;;;"}
|
package/flexible/index.d.ts
CHANGED
|
@@ -1,5 +1,56 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy, ModuleWithProviders } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
type FlexibleState = 'initial' | 'collapsed' | 'expanded' | 'transition';
|
|
5
|
+
type FlexibleDirection = 'column' | 'row';
|
|
6
|
+
|
|
7
|
+
declare class FlexibleComponent implements OnInit, OnDestroy {
|
|
8
|
+
private el;
|
|
9
|
+
private mediaService;
|
|
10
|
+
private cdr;
|
|
11
|
+
static transitionTime: number;
|
|
12
|
+
main: any;
|
|
13
|
+
get initial(): string;
|
|
14
|
+
set initial(value: string);
|
|
15
|
+
private _initial;
|
|
16
|
+
get collapsed(): string;
|
|
17
|
+
set collapsed(value: string);
|
|
18
|
+
private _collapsed;
|
|
19
|
+
get expanded(): string;
|
|
20
|
+
set expanded(value: string);
|
|
21
|
+
private _expanded;
|
|
22
|
+
get initialMobile(): string;
|
|
23
|
+
set initialMobile(value: string);
|
|
24
|
+
private _initialMobile;
|
|
25
|
+
get collapsedMobile(): string;
|
|
26
|
+
set collapsedMobile(value: string);
|
|
27
|
+
private _collapsedMobile;
|
|
28
|
+
get expandedMobile(): string;
|
|
29
|
+
set expandedMobile(value: string);
|
|
30
|
+
private _expandedMobile;
|
|
31
|
+
get direction(): FlexibleDirection;
|
|
32
|
+
set direction(value: FlexibleDirection);
|
|
33
|
+
private _direction;
|
|
34
|
+
get state(): FlexibleState;
|
|
35
|
+
set state(value: FlexibleState);
|
|
36
|
+
private _state;
|
|
37
|
+
private mediaService$$;
|
|
38
|
+
ngOnInit(): void;
|
|
39
|
+
ngOnDestroy(): void;
|
|
40
|
+
private setSize;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlexibleComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlexibleComponent, "igo-flexible", never, { "initial": { "alias": "initial"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "initialMobile": { "alias": "initialMobile"; "required": false; }; "collapsedMobile": { "alias": "collapsedMobile"; "required": false; }; "expandedMobile": { "alias": "expandedMobile"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "state": { "alias": "state"; "required": false; }; }, {}, never, ["*", "[igoFlexibleFill]"], true, never>;
|
|
43
|
+
}
|
|
44
|
+
|
|
1
45
|
/**
|
|
2
|
-
*
|
|
46
|
+
* @deprecated import the FlexibleComponent directly
|
|
3
47
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
48
|
+
declare class IgoFlexibleModule {
|
|
49
|
+
static forRoot(): ModuleWithProviders<IgoFlexibleModule>;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoFlexibleModule, never>;
|
|
51
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFlexibleModule, never, [typeof FlexibleComponent], [typeof FlexibleComponent]>;
|
|
52
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoFlexibleModule>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { FlexibleComponent, IgoFlexibleModule };
|
|
56
|
+
export type { FlexibleDirection, FlexibleState };
|