@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,171 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { EntityOperationType } from './entity.enums';
|
|
4
|
-
import { EntityKey, EntityOperationState, EntityTransactionOptions } from './entity.interfaces';
|
|
5
|
-
import { EntityStore } from './store';
|
|
6
|
-
export interface EntityOperation<E extends object = object> {
|
|
7
|
-
key: EntityKey;
|
|
8
|
-
type: EntityOperationType;
|
|
9
|
-
previous: E | undefined;
|
|
10
|
-
current: E | undefined;
|
|
11
|
-
store?: EntityStore<E>;
|
|
12
|
-
meta?: Record<string, any>;
|
|
13
|
-
}
|
|
14
|
-
export type EntityTransactionCommitHandler = (transaction: EntityTransaction, operations: EntityOperation[]) => Observable<any>;
|
|
15
|
-
/**
|
|
16
|
-
* This class holds a reference to the insert, update and delete
|
|
17
|
-
* operations performed on a store. This is useful to commit
|
|
18
|
-
* these operations in a single pass or to cancel them.
|
|
19
|
-
*/
|
|
20
|
-
export declare class EntityTransaction {
|
|
21
|
-
/**
|
|
22
|
-
* Store holding the operations on another store
|
|
23
|
-
*/
|
|
24
|
-
readonly operations: EntityStore<EntityOperation, EntityOperationState>;
|
|
25
|
-
/**
|
|
26
|
-
* Method to get an entity's id
|
|
27
|
-
*/
|
|
28
|
-
readonly getKey: (E: any) => EntityKey;
|
|
29
|
-
/**
|
|
30
|
-
* Whether there are pending operations
|
|
31
|
-
*/
|
|
32
|
-
get empty$(): BehaviorSubject<boolean>;
|
|
33
|
-
/**
|
|
34
|
-
* Whether there are pending operations
|
|
35
|
-
*/
|
|
36
|
-
get empty(): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Whether thise store is in commit phase
|
|
39
|
-
*/
|
|
40
|
-
get inCommitPhase(): boolean;
|
|
41
|
-
readonly inCommitPhase$: BehaviorSubject<boolean>;
|
|
42
|
-
constructor(options?: EntityTransactionOptions);
|
|
43
|
-
destroy(): void;
|
|
44
|
-
/**
|
|
45
|
-
* Insert an entity into a store. If no store is specified, an insert
|
|
46
|
-
* operation is still created but the transaction won't add the new
|
|
47
|
-
* entity to the store.
|
|
48
|
-
* @param current The entity to insert
|
|
49
|
-
* @param store Optional: The store to insert the entity into
|
|
50
|
-
* @param meta Optional: Any metadata on the operation
|
|
51
|
-
*/
|
|
52
|
-
insert(current: object, store?: EntityStore<object>, meta?: Record<string, any>): void;
|
|
53
|
-
/**
|
|
54
|
-
* Update an entity in a store. If no store is specified, an update
|
|
55
|
-
* operation is still created but the transaction won't update the
|
|
56
|
-
* entity into the store.
|
|
57
|
-
* @param previous The entity before update
|
|
58
|
-
* @param current The entity after update
|
|
59
|
-
* @param store Optional: The store to update the entity into
|
|
60
|
-
* @param meta Optional: Any metadata on the operation
|
|
61
|
-
*/
|
|
62
|
-
update(previous: object, current: object, store?: EntityStore<object>, meta?: Record<string, any>): void;
|
|
63
|
-
/**
|
|
64
|
-
* Delete an entity from a store. If no store is specified, a delete
|
|
65
|
-
* operation is still created but the transaction won't remove the
|
|
66
|
-
* entity from the store.
|
|
67
|
-
* @param previous The entity before delete
|
|
68
|
-
* @param store Optional: The store to delete the entity from
|
|
69
|
-
* @param meta Optional: Any metadata on the operation
|
|
70
|
-
*/
|
|
71
|
-
delete(previous: object, store?: EntityStore<object>, meta?: Record<string, any>): void;
|
|
72
|
-
/**
|
|
73
|
-
* Commit operations the transaction. This method doesn't do much
|
|
74
|
-
* in itself. The handler it receives does the hard work and it's
|
|
75
|
-
* implementation is left to the caller. This method simply wraps
|
|
76
|
-
* the handler into an error catching mechanism to update
|
|
77
|
-
* the transaction afterward. The caller needs to subscribe to this
|
|
78
|
-
* method's output (observable) for the commit to be performed.
|
|
79
|
-
* @param operations Operations to commit
|
|
80
|
-
* @param handler Function that handles the commit operation
|
|
81
|
-
* @returns The handler output (observable)
|
|
82
|
-
*/
|
|
83
|
-
commit(operations: EntityOperation[], handler: EntityTransactionCommitHandler): Observable<any>;
|
|
84
|
-
/**
|
|
85
|
-
* Commit all the operations of the transaction.
|
|
86
|
-
* @param handler Function that handles the commit operation
|
|
87
|
-
* @returns The handler output (observable)
|
|
88
|
-
*/
|
|
89
|
-
commitAll(handler: EntityTransactionCommitHandler): Observable<any>;
|
|
90
|
-
/**
|
|
91
|
-
* Rollback this transaction
|
|
92
|
-
*/
|
|
93
|
-
rollback(): void;
|
|
94
|
-
/**
|
|
95
|
-
* Rollback specific operations
|
|
96
|
-
*/
|
|
97
|
-
rollbackOperations(operations: EntityOperation[]): void;
|
|
98
|
-
/**
|
|
99
|
-
* Clear this transaction
|
|
100
|
-
* @todo Raise event and synchronize stores?
|
|
101
|
-
*/
|
|
102
|
-
clear(): void;
|
|
103
|
-
/**
|
|
104
|
-
* Get any existing operation on an entity
|
|
105
|
-
* @param entity Entity
|
|
106
|
-
* @returns Either an insert, update or delete operation
|
|
107
|
-
*/
|
|
108
|
-
getOperationByEntity(entity: object): EntityOperation;
|
|
109
|
-
/**
|
|
110
|
-
* Merge another transaction in this one
|
|
111
|
-
* @param transaction Another transaction
|
|
112
|
-
*/
|
|
113
|
-
mergeTransaction(transaction: EntityTransaction): void;
|
|
114
|
-
/**
|
|
115
|
-
* Create an insert operation and add an entity to the store
|
|
116
|
-
* @param current The entity to insert
|
|
117
|
-
* @param store Optional: The store to insert the entity into
|
|
118
|
-
* @param meta Optional: Any metadata on the operation
|
|
119
|
-
*/
|
|
120
|
-
private doInsert;
|
|
121
|
-
/**
|
|
122
|
-
* Create an update operation and update an entity into the store
|
|
123
|
-
* @param previous The entity before update
|
|
124
|
-
* @param current The entity after update
|
|
125
|
-
* @param store Optional: The store to update the entity into
|
|
126
|
-
* @param meta Optional: Any metadata on the operation
|
|
127
|
-
*/
|
|
128
|
-
private doUpdate;
|
|
129
|
-
/**
|
|
130
|
-
* Create a delete operation and delete an entity from the store
|
|
131
|
-
* @param previous The entity before delete
|
|
132
|
-
* @param store Optional: The store to delete the entity from
|
|
133
|
-
* @param meta Optional: Any metadata on the operation
|
|
134
|
-
*/
|
|
135
|
-
private doDelete;
|
|
136
|
-
/**
|
|
137
|
-
* Remove committed operations from store
|
|
138
|
-
* @param operations Commited operations
|
|
139
|
-
* @todo Raise event and synchronize stores?
|
|
140
|
-
*/
|
|
141
|
-
private resolveOperations;
|
|
142
|
-
/**
|
|
143
|
-
* On commit success, resolve commited operations and exit commit phase
|
|
144
|
-
* @param operations Commited operations
|
|
145
|
-
*/
|
|
146
|
-
private onCommitSuccess;
|
|
147
|
-
/**
|
|
148
|
-
* On commit error, abort transaction
|
|
149
|
-
* @param operations Commited operations
|
|
150
|
-
*/
|
|
151
|
-
private onCommitError;
|
|
152
|
-
/**
|
|
153
|
-
* Add an operation to the operations store
|
|
154
|
-
* @param operation Operation to add
|
|
155
|
-
*/
|
|
156
|
-
private addOperation;
|
|
157
|
-
/**
|
|
158
|
-
* Remove an operation from the operations store
|
|
159
|
-
* @param operation Operation to remove
|
|
160
|
-
*/
|
|
161
|
-
private removeOperation;
|
|
162
|
-
/**
|
|
163
|
-
* Get all the operations to commit
|
|
164
|
-
* @returns Operations to commit
|
|
165
|
-
*/
|
|
166
|
-
private getOperationsInCommit;
|
|
167
|
-
/**
|
|
168
|
-
* Check if the transaction is in the commit phase and throw an error if it is
|
|
169
|
-
*/
|
|
170
|
-
private checkInCommitPhase;
|
|
171
|
-
}
|
package/entity/shared/view.d.ts
DELETED
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
|
-
import { EntityFilterClause, EntityJoinClause, EntityKey, EntitySortClause } from './entity.interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* An entity view streams entities from an observable source. These entities
|
|
5
|
-
* can be filtered or sorted without affecting the source. A view can also
|
|
6
|
-
* combine data from multiple sources, joined together.
|
|
7
|
-
*/
|
|
8
|
-
export declare class EntityView<E extends object, V extends object = E> {
|
|
9
|
-
private source$;
|
|
10
|
-
/**
|
|
11
|
-
* Observable stream of values
|
|
12
|
-
*/
|
|
13
|
-
readonly values$: BehaviorSubject<V[]>;
|
|
14
|
-
/**
|
|
15
|
-
* Subscription to the source (and joined sources) values
|
|
16
|
-
*/
|
|
17
|
-
private values$$;
|
|
18
|
-
/**
|
|
19
|
-
* Whether this view has been lifted
|
|
20
|
-
*/
|
|
21
|
-
private lifted;
|
|
22
|
-
/**
|
|
23
|
-
* Join clauses
|
|
24
|
-
*/
|
|
25
|
-
private joins;
|
|
26
|
-
/**
|
|
27
|
-
* Observable of a filter clause
|
|
28
|
-
*/
|
|
29
|
-
private filter$;
|
|
30
|
-
/**
|
|
31
|
-
* Observable of filter clauses
|
|
32
|
-
*/
|
|
33
|
-
private filters$;
|
|
34
|
-
/**
|
|
35
|
-
* Filters index
|
|
36
|
-
*/
|
|
37
|
-
private filterIndex;
|
|
38
|
-
/**
|
|
39
|
-
* Observable of a sort clause
|
|
40
|
-
*/
|
|
41
|
-
private sort$;
|
|
42
|
-
/**
|
|
43
|
-
* Method for indexing
|
|
44
|
-
*/
|
|
45
|
-
get getKey(): (V: any) => EntityKey;
|
|
46
|
-
private getKey$;
|
|
47
|
-
/**
|
|
48
|
-
* Number of entities
|
|
49
|
-
*/
|
|
50
|
-
readonly count$: BehaviorSubject<number>;
|
|
51
|
-
get count(): number;
|
|
52
|
-
/**
|
|
53
|
-
* Whether the store is empty
|
|
54
|
-
*/
|
|
55
|
-
readonly empty$: BehaviorSubject<boolean>;
|
|
56
|
-
get empty(): boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Store index
|
|
59
|
-
*/
|
|
60
|
-
get index(): Map<EntityKey, V>;
|
|
61
|
-
private _index;
|
|
62
|
-
constructor(source$: BehaviorSubject<E[]>);
|
|
63
|
-
/**
|
|
64
|
-
* Get a value from the view by key
|
|
65
|
-
* @param key Key
|
|
66
|
-
* @returns Value
|
|
67
|
-
*/
|
|
68
|
-
get(key: EntityKey): V;
|
|
69
|
-
/**
|
|
70
|
-
* Get all the values
|
|
71
|
-
* @returns Array of values
|
|
72
|
-
*/
|
|
73
|
-
all(): V[];
|
|
74
|
-
/**
|
|
75
|
-
* Observe all the values
|
|
76
|
-
* @returns Observable of values
|
|
77
|
-
*/
|
|
78
|
-
all$(): BehaviorSubject<V[]>;
|
|
79
|
-
/**
|
|
80
|
-
* Get the first value that respects a criteria
|
|
81
|
-
* @returns A value
|
|
82
|
-
*/
|
|
83
|
-
firstBy(clause: EntityFilterClause<V>): V;
|
|
84
|
-
/**
|
|
85
|
-
* Observe the first value that respects a criteria
|
|
86
|
-
* @returns Observable of a value
|
|
87
|
-
*/
|
|
88
|
-
firstBy$(clause: EntityFilterClause<V>): Observable<V>;
|
|
89
|
-
/**
|
|
90
|
-
* Get all the values that respect a criteria
|
|
91
|
-
* @returns Array of values
|
|
92
|
-
*/
|
|
93
|
-
manyBy(clause: EntityFilterClause<V>): V[];
|
|
94
|
-
/**
|
|
95
|
-
* Observe all the values that respect a criteria
|
|
96
|
-
* @returns Observable of values
|
|
97
|
-
*/
|
|
98
|
-
manyBy$(clause: EntityFilterClause<V>): Observable<V[]>;
|
|
99
|
-
/**
|
|
100
|
-
* Clear the filter and sort and unsubscribe from the source
|
|
101
|
-
*/
|
|
102
|
-
clear(): void;
|
|
103
|
-
destroy(): void;
|
|
104
|
-
/**
|
|
105
|
-
* Create an index
|
|
106
|
-
* @param getKey Method to get a value's id
|
|
107
|
-
* @returns The view
|
|
108
|
-
*/
|
|
109
|
-
createIndex(getKey: (E: any) => EntityKey): EntityView<E, V>;
|
|
110
|
-
/**
|
|
111
|
-
* Join another source to the stream (chainable)
|
|
112
|
-
* @param clause Join clause
|
|
113
|
-
* @returns The view
|
|
114
|
-
*/
|
|
115
|
-
join(clause: EntityJoinClause): EntityView<E, V>;
|
|
116
|
-
/**
|
|
117
|
-
* Filter values (chainable)
|
|
118
|
-
* @param clause Filter clause
|
|
119
|
-
* @returns The view
|
|
120
|
-
*/
|
|
121
|
-
filter(clause: EntityFilterClause<V>): EntityView<E, V>;
|
|
122
|
-
/**
|
|
123
|
-
* @param clause Filter clause
|
|
124
|
-
* @returns The filter id
|
|
125
|
-
*/
|
|
126
|
-
addFilter(clause: EntityFilterClause<V>): string;
|
|
127
|
-
/**
|
|
128
|
-
* Remove a filter by id
|
|
129
|
-
* @param clause Filter clause
|
|
130
|
-
*/
|
|
131
|
-
removeFilter(id: string): void;
|
|
132
|
-
/**
|
|
133
|
-
* Sort values (chainable)
|
|
134
|
-
* @param clauseSort clause
|
|
135
|
-
* @returns The view
|
|
136
|
-
*/
|
|
137
|
-
sort(clause: EntitySortClause<V>): EntityView<E, V>;
|
|
138
|
-
/**
|
|
139
|
-
* Create the final observable
|
|
140
|
-
* @returns Observable
|
|
141
|
-
*/
|
|
142
|
-
lift(): void;
|
|
143
|
-
/**
|
|
144
|
-
* Create the source observable when no joins are defined
|
|
145
|
-
* @returns Observable
|
|
146
|
-
*/
|
|
147
|
-
private liftSource;
|
|
148
|
-
/**
|
|
149
|
-
* Create the source observable when joins are defined
|
|
150
|
-
* @returns Observable
|
|
151
|
-
*/
|
|
152
|
-
private liftJoinedSource;
|
|
153
|
-
/**
|
|
154
|
-
* Apply joins to a source's entity and return the final value
|
|
155
|
-
* @returns Final value
|
|
156
|
-
*/
|
|
157
|
-
private computeJoinedValue;
|
|
158
|
-
/**
|
|
159
|
-
* Filter and sort values before streaming them
|
|
160
|
-
* @param values Values
|
|
161
|
-
* @param filters Filter clauses
|
|
162
|
-
* @param filter Filter clause
|
|
163
|
-
* @param sort Sort clause
|
|
164
|
-
* @returns Filtered and sorted values
|
|
165
|
-
*/
|
|
166
|
-
private processValues;
|
|
167
|
-
/**
|
|
168
|
-
* Filter values
|
|
169
|
-
* @param values Values
|
|
170
|
-
* @param filters Filter clauses
|
|
171
|
-
* @returns Filtered values
|
|
172
|
-
*/
|
|
173
|
-
private filterValues;
|
|
174
|
-
/**
|
|
175
|
-
* Sort values
|
|
176
|
-
* @param values Values
|
|
177
|
-
* @param sort Sort clause
|
|
178
|
-
* @returns Sorted values
|
|
179
|
-
*/
|
|
180
|
-
private sortValues;
|
|
181
|
-
/**
|
|
182
|
-
* Set value and optionally generate an index
|
|
183
|
-
* @param values Values
|
|
184
|
-
* @param generateIndex boolean
|
|
185
|
-
*/
|
|
186
|
-
private setValues;
|
|
187
|
-
/**
|
|
188
|
-
* Generate a complete index of all the values
|
|
189
|
-
* @param entities Entities
|
|
190
|
-
* @returns Index
|
|
191
|
-
*/
|
|
192
|
-
private generateIndex;
|
|
193
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { EntityStore } from './store';
|
|
3
|
-
/**
|
|
4
|
-
* This class is used to synchronize a component's changes
|
|
5
|
-
* detection with an EntityStore changes. For example, it is frequent
|
|
6
|
-
* to have a component subscribe to a store's selected entity and, at the same time,
|
|
7
|
-
* this component provides a way to select an entity with, let's say, a click.
|
|
8
|
-
*
|
|
9
|
-
* This class automatically handles those case and triggers the compoent's
|
|
10
|
-
* change detection when needed.
|
|
11
|
-
*
|
|
12
|
-
* Note: If the component observes the store's stateView, a workspace is
|
|
13
|
-
* probably not required because the stateView catches any changes to the
|
|
14
|
-
* entities and their state.
|
|
15
|
-
*/
|
|
16
|
-
export declare class EntityStoreWatcher<E extends object> {
|
|
17
|
-
/**
|
|
18
|
-
* Component change detector
|
|
19
|
-
*/
|
|
20
|
-
private cdRef;
|
|
21
|
-
/**
|
|
22
|
-
* Entity store
|
|
23
|
-
*/
|
|
24
|
-
private store;
|
|
25
|
-
/**
|
|
26
|
-
* Component inner state
|
|
27
|
-
*/
|
|
28
|
-
private innerStateIndex;
|
|
29
|
-
/**
|
|
30
|
-
* Subscription to the store's entities
|
|
31
|
-
*/
|
|
32
|
-
private entities$$;
|
|
33
|
-
/**
|
|
34
|
-
* Subscription to the store's state
|
|
35
|
-
*/
|
|
36
|
-
private state$$;
|
|
37
|
-
constructor(store?: EntityStore<E>, cdRef?: ChangeDetectorRef);
|
|
38
|
-
destroy(): void;
|
|
39
|
-
/**
|
|
40
|
-
* Bind this workspace to a store and start watching for changes
|
|
41
|
-
* @param store Entity store
|
|
42
|
-
*/
|
|
43
|
-
setStore(store?: EntityStore<E>): void;
|
|
44
|
-
/**
|
|
45
|
-
* Bind this workspace to a component's change detector
|
|
46
|
-
* @param cdRef Change detector
|
|
47
|
-
*/
|
|
48
|
-
setChangeDetector(cdRef?: ChangeDetectorRef): void;
|
|
49
|
-
/**
|
|
50
|
-
* Set up observers on a store's entities and their state
|
|
51
|
-
* @param store Entity store
|
|
52
|
-
*/
|
|
53
|
-
private setupObservers;
|
|
54
|
-
/**
|
|
55
|
-
* Teardown store observers
|
|
56
|
-
*/
|
|
57
|
-
private teardownObservers;
|
|
58
|
-
/**
|
|
59
|
-
* When the entities change, always trigger the changes detection
|
|
60
|
-
*/
|
|
61
|
-
private onEntitiesChange;
|
|
62
|
-
/**
|
|
63
|
-
* When the entities state change, trigger the change detection
|
|
64
|
-
* only if the component has not handled these changes yet. For example,
|
|
65
|
-
* the component might have initiated thoses changes itself.
|
|
66
|
-
*/
|
|
67
|
-
private onStateChange;
|
|
68
|
-
/**
|
|
69
|
-
* Trigger the change detection of the workspace is bound to a change detector
|
|
70
|
-
*/
|
|
71
|
-
private detectChanges;
|
|
72
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '@angular/material' as mat;
|
|
3
|
-
|
|
4
|
-
@mixin theme($theme) {
|
|
5
|
-
@include density($theme);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
@mixin density($theme) {
|
|
9
|
-
$density: mat.get-theme-density($theme);
|
|
10
|
-
|
|
11
|
-
$theme: map.merge(
|
|
12
|
-
$theme,
|
|
13
|
-
(
|
|
14
|
-
density: $density - 2
|
|
15
|
-
)
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
igo-entity-selector {
|
|
19
|
-
@include mat.form-field-density($theme);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '@angular/material' as mat;
|
|
3
|
-
|
|
4
|
-
@mixin theme($theme) {
|
|
5
|
-
@include density($theme);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
@mixin density($theme) {
|
|
9
|
-
$density: mat.get-theme-density($theme);
|
|
10
|
-
|
|
11
|
-
$theme: map.merge(
|
|
12
|
-
$theme,
|
|
13
|
-
(
|
|
14
|
-
density: $density - 1
|
|
15
|
-
)
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
igo-entity-table {
|
|
19
|
-
@include mat.table-density($theme);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
@use './entity-table/entity-table.theming' as entity-table;
|
|
2
|
-
@use './entity-selector/entity-selector.theming' as entity-selector;
|
|
3
|
-
|
|
4
|
-
@mixin themes($theme) {
|
|
5
|
-
@include entity-table.theme($theme);
|
|
6
|
-
@include entity-selector.theme($theme);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@mixin densities($theme) {
|
|
10
|
-
@include entity-table.density($theme);
|
|
11
|
-
@include entity-selector.density($theme);
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface EnvironmentOptions {
|
|
2
|
-
depot?: DepotOptions;
|
|
3
|
-
interactiveTour?: InteractiveTourConfigOptions;
|
|
4
|
-
}
|
|
5
|
-
export interface DepotOptions {
|
|
6
|
-
url: string;
|
|
7
|
-
trainingGuides?: string[];
|
|
8
|
-
}
|
|
9
|
-
export interface InteractiveTourConfigOptions {
|
|
10
|
-
activateInteractiveTour?: boolean;
|
|
11
|
-
tourInMobile?: boolean;
|
|
12
|
-
pathToConfigFile?: string;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './environment.interface';
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { MediaService } from '@igo2/core/media';
|
|
3
|
-
import { FlexibleDirection, FlexibleState } from './flexible.type';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FlexibleComponent implements OnInit, OnDestroy {
|
|
6
|
-
private el;
|
|
7
|
-
private mediaService;
|
|
8
|
-
private cdr;
|
|
9
|
-
static transitionTime: number;
|
|
10
|
-
main: any;
|
|
11
|
-
get initial(): string;
|
|
12
|
-
set initial(value: string);
|
|
13
|
-
private _initial;
|
|
14
|
-
get collapsed(): string;
|
|
15
|
-
set collapsed(value: string);
|
|
16
|
-
private _collapsed;
|
|
17
|
-
get expanded(): string;
|
|
18
|
-
set expanded(value: string);
|
|
19
|
-
private _expanded;
|
|
20
|
-
get initialMobile(): string;
|
|
21
|
-
set initialMobile(value: string);
|
|
22
|
-
private _initialMobile;
|
|
23
|
-
get collapsedMobile(): string;
|
|
24
|
-
set collapsedMobile(value: string);
|
|
25
|
-
private _collapsedMobile;
|
|
26
|
-
get expandedMobile(): string;
|
|
27
|
-
set expandedMobile(value: string);
|
|
28
|
-
private _expandedMobile;
|
|
29
|
-
get direction(): FlexibleDirection;
|
|
30
|
-
set direction(value: FlexibleDirection);
|
|
31
|
-
private _direction;
|
|
32
|
-
get state(): FlexibleState;
|
|
33
|
-
set state(value: FlexibleState);
|
|
34
|
-
private _state;
|
|
35
|
-
private mediaService$$;
|
|
36
|
-
constructor(el: ElementRef, mediaService: MediaService, cdr: ChangeDetectorRef);
|
|
37
|
-
ngOnInit(): void;
|
|
38
|
-
ngOnDestroy(): void;
|
|
39
|
-
private setSize;
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FlexibleComponent, never>;
|
|
41
|
-
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>;
|
|
42
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./flexible.component";
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated import the FlexibleComponent directly
|
|
6
|
-
*/
|
|
7
|
-
export declare class IgoFlexibleModule {
|
|
8
|
-
static forRoot(): ModuleWithProviders<IgoFlexibleModule>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IgoFlexibleModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFlexibleModule, never, [typeof i1.FlexibleComponent], [typeof i1.FlexibleComponent]>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IgoFlexibleModule>;
|
|
12
|
-
}
|
package/flexible/public_api.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { Form } from '../shared/form.interfaces';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* A configurable form
|
|
6
|
-
*/
|
|
7
|
-
export declare class FormComponent implements OnChanges {
|
|
8
|
-
/**
|
|
9
|
-
* Form
|
|
10
|
-
*/
|
|
11
|
-
form: Form;
|
|
12
|
-
/**
|
|
13
|
-
* Input data
|
|
14
|
-
*/
|
|
15
|
-
formData: Record<string, any>;
|
|
16
|
-
/**
|
|
17
|
-
* Form autocomplete
|
|
18
|
-
*/
|
|
19
|
-
autocomplete: string;
|
|
20
|
-
/**
|
|
21
|
-
* Event emitted when the form is submitted
|
|
22
|
-
*/
|
|
23
|
-
submitForm: EventEmitter<Record<string, any>>;
|
|
24
|
-
buttons: ElementRef;
|
|
25
|
-
get hasButtons(): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Is the entity or the template change, recreate the form or repopulate it.
|
|
28
|
-
* @internal
|
|
29
|
-
*/
|
|
30
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
31
|
-
/**
|
|
32
|
-
* Transform the form data to a feature and emit an event
|
|
33
|
-
* @param event Form submit event
|
|
34
|
-
* @internal
|
|
35
|
-
*/
|
|
36
|
-
onSubmit(): void;
|
|
37
|
-
getData(): Record<string, any>;
|
|
38
|
-
private setData;
|
|
39
|
-
private updateDataWithFormField;
|
|
40
|
-
/**
|
|
41
|
-
* Clear form
|
|
42
|
-
*/
|
|
43
|
-
private clear;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
45
|
-
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>;
|
|
46
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./form.component";
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated import the FormComponent directly
|
|
5
|
-
*/
|
|
6
|
-
export declare class IgoFormFormModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IgoFormFormModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFormFormModule, never, [typeof i1.FormComponent], [typeof i1.FormComponent]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IgoFormFormModule>;
|
|
10
|
-
}
|
package/form/form/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import { LanguageService } from '@igo2/core/language';
|
|
3
|
-
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { Form, FormService } from '../shared';
|
|
5
|
-
import { FormDialogData } from './form-dialog.interface';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class FormDialogComponent {
|
|
8
|
-
languageService: LanguageService;
|
|
9
|
-
dialogRef: MatDialogRef<FormDialogComponent>;
|
|
10
|
-
private formService;
|
|
11
|
-
data: FormDialogData;
|
|
12
|
-
form$: BehaviorSubject<Form>;
|
|
13
|
-
data$: BehaviorSubject<Record<string, any>>;
|
|
14
|
-
constructor(languageService: LanguageService, dialogRef: MatDialogRef<FormDialogComponent>, formService: FormService, data: FormDialogData);
|
|
15
|
-
onSubmit(data: Record<string, any>): void;
|
|
16
|
-
cancel(): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormDialogComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormDialogComponent, "igo-form-dialog", never, {}, {}, never, never, true, never>;
|
|
19
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MatDialogConfig } from '@angular/material/dialog';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { FormFieldConfig, FormGroupsConfig } from '../shared/form.interfaces';
|
|
4
|
-
export interface FormDialogFormConfig {
|
|
5
|
-
formFieldConfigs?: FormFieldConfig[];
|
|
6
|
-
formGroupsConfigs?: FormGroupsConfig[];
|
|
7
|
-
}
|
|
8
|
-
export interface FormDialogData extends FormDialogOptions, FormDialogFormConfig {
|
|
9
|
-
}
|
|
10
|
-
export interface FormDialogOptions extends MatDialogConfig {
|
|
11
|
-
data$?: BehaviorSubject<Record<string, any>>;
|
|
12
|
-
title?: string;
|
|
13
|
-
processButtonText?: string;
|
|
14
|
-
cancelButtonText?: string;
|
|
15
|
-
notice?: string;
|
|
16
|
-
}
|