@igo2/common 19.0.3 → 20.0.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action/index.d.ts +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
package/drag-drop/index.d.ts
CHANGED
|
@@ -1,5 +1,126 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, AfterContentInit, OnDestroy, QueryList, ModuleWithProviders } from '@angular/core';
|
|
3
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
4
|
+
import { FlatTreeControl } from '@angular/cdk/tree';
|
|
5
|
+
import { MatTreeNode } from '@angular/material/tree';
|
|
6
|
+
|
|
7
|
+
declare class DragAndDropDirective {
|
|
8
|
+
allowedExtensions: string[];
|
|
9
|
+
protected filesDropped: EventEmitter<File[]>;
|
|
10
|
+
protected filesInvalid: EventEmitter<File[]>;
|
|
11
|
+
private background;
|
|
12
|
+
onDragOver(evt: any): void;
|
|
13
|
+
onDragLeave(evt: any): void;
|
|
14
|
+
onDrop(evt: any): void;
|
|
15
|
+
private validExtensions;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragAndDropDirective, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DragAndDropDirective, "[igoDragAndDrop]", never, { "allowedExtensions": { "alias": "allowedExtensions"; "required": false; }; }, { "filesDropped": "filesDropped"; "filesInvalid": "filesInvalid"; }, never, never, true, never>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface TreeFlatNode<T = any> {
|
|
21
|
+
id: string;
|
|
22
|
+
isGroup: boolean;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
level: number;
|
|
25
|
+
descendantLevels?: number;
|
|
26
|
+
data: T;
|
|
27
|
+
}
|
|
28
|
+
interface DropPosition {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
level: number;
|
|
32
|
+
type: DropPositionType;
|
|
33
|
+
}
|
|
34
|
+
type DropPositionType = 'above' | 'below' | 'inside';
|
|
35
|
+
|
|
36
|
+
interface TreeDropEvent<T = any> {
|
|
37
|
+
node: TreeFlatNode<T>;
|
|
38
|
+
ref: TreeFlatNode<T>;
|
|
39
|
+
position: DropPositionType;
|
|
40
|
+
}
|
|
41
|
+
interface DragNodeListeners {
|
|
42
|
+
element: HTMLElement;
|
|
43
|
+
listeners: [string, EventListenerOrEventListenerObject][];
|
|
44
|
+
}
|
|
45
|
+
interface DropPermission {
|
|
46
|
+
canDrop: boolean;
|
|
47
|
+
message?: string;
|
|
48
|
+
params?: Record<string, unknown>;
|
|
49
|
+
}
|
|
1
50
|
/**
|
|
2
|
-
*
|
|
51
|
+
* This directive should be use with a MatTree flatened
|
|
52
|
+
* It should add all logic to drag the MatTreeNode and connect the (onDrop) output
|
|
53
|
+
* Class added:
|
|
54
|
+
* Tree: --dragging
|
|
55
|
+
* Node: --drag-hover | --dragged
|
|
3
56
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
57
|
+
declare class TreeDragDropDirective implements AfterContentInit, OnDestroy {
|
|
58
|
+
private elementRef;
|
|
59
|
+
private renderer;
|
|
60
|
+
draggedNode: TreeFlatNode;
|
|
61
|
+
dropNodeTarget: TreeFlatNode;
|
|
62
|
+
expandTimeout: number;
|
|
63
|
+
nodesListeners: DragNodeListeners[] | undefined;
|
|
64
|
+
dropLineTarget: HTMLElement;
|
|
65
|
+
highlightedNode: SelectionModel<TreeFlatNode<any>>;
|
|
66
|
+
treeControl: FlatTreeControl<TreeFlatNode>;
|
|
67
|
+
/** The default is 5 */
|
|
68
|
+
maxLevel: number;
|
|
69
|
+
set treeDragDropIsDisabled(disabled: boolean);
|
|
70
|
+
private isDisabled;
|
|
71
|
+
dragStart: EventEmitter<TreeFlatNode<any>>;
|
|
72
|
+
onDrop: EventEmitter<TreeDropEvent<any>>;
|
|
73
|
+
onDropError: EventEmitter<DropPermission>;
|
|
74
|
+
hostDragOver(event: Event): void;
|
|
75
|
+
hostDrop(event: DragEvent): void;
|
|
76
|
+
dragging: boolean;
|
|
77
|
+
nodes: QueryList<MatTreeNode<TreeFlatNode>>;
|
|
78
|
+
constructor();
|
|
79
|
+
ngAfterContentInit(): void;
|
|
80
|
+
ngOnDestroy(): void;
|
|
81
|
+
onDragStart(node: TreeFlatNode): void;
|
|
82
|
+
dragEnd(): void;
|
|
83
|
+
dragOver(node: TreeFlatNode, event: DragEvent): void;
|
|
84
|
+
dragLeave(): void;
|
|
85
|
+
drop(event: DragEvent): void;
|
|
86
|
+
private addNodeClass;
|
|
87
|
+
private removeNodeClass;
|
|
88
|
+
private addAllListener;
|
|
89
|
+
private addListener;
|
|
90
|
+
private removeAllListener;
|
|
91
|
+
private setHighlightedNode;
|
|
92
|
+
private addDropTargetLine;
|
|
93
|
+
private removeDropTargetLine;
|
|
94
|
+
private updateDropTargetLinePosition;
|
|
95
|
+
private handleGroupExpansion;
|
|
96
|
+
private getNodeElement;
|
|
97
|
+
private canDropNode;
|
|
98
|
+
private canDropGroup;
|
|
99
|
+
private validateMaxHierarchyLevel;
|
|
100
|
+
private isHoverDescendant;
|
|
101
|
+
private getPosition;
|
|
102
|
+
private getPositionY;
|
|
103
|
+
private getPositionType;
|
|
104
|
+
private getPositionLevel;
|
|
105
|
+
/**
|
|
106
|
+
* @param level if level is defined with go to the defined levle to find ancestor. Sinon on prend le current ancestor
|
|
107
|
+
*/
|
|
108
|
+
private getNodeAncestors;
|
|
109
|
+
private getDirectDescendants;
|
|
110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TreeDragDropDirective, never>;
|
|
111
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TreeDragDropDirective, "[igoTreeDragDrop]", never, { "treeControl": { "alias": "treeControl"; "required": true; }; "maxLevel": { "alias": "maxLevel"; "required": false; }; "treeDragDropIsDisabled": { "alias": "treeDragDropIsDisabled"; "required": false; }; }, { "dragStart": "dragStart"; "onDrop": "onDrop"; "onDropError": "onDropError"; }, ["nodes"], never, true, never>;
|
|
112
|
+
static ngAcceptInputType_treeDragDropIsDisabled: unknown;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @deprecated import the DragAndDropDirective directly
|
|
117
|
+
*/
|
|
118
|
+
declare class IgoDrapDropModule {
|
|
119
|
+
static forRoot(): ModuleWithProviders<IgoDrapDropModule>;
|
|
120
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoDrapDropModule, never>;
|
|
121
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoDrapDropModule, never, [typeof DragAndDropDirective, typeof TreeDragDropDirective], [typeof DragAndDropDirective, typeof TreeDragDropDirective]>;
|
|
122
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoDrapDropModule>;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export { DragAndDropDirective, IgoDrapDropModule, TreeDragDropDirective };
|
|
126
|
+
export type { DropPermission, DropPosition, DropPositionType, TreeDropEvent, TreeFlatNode };
|
|
@@ -1,5 +1,188 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ComponentFactory, ViewContainerRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
interface OnUpdateInputs {
|
|
5
|
+
onUpdateInputs: () => void;
|
|
6
|
+
}
|
|
7
|
+
|
|
1
8
|
/**
|
|
2
|
-
*
|
|
9
|
+
* This class is used in the DynamicComponentOutlet component. It holds
|
|
10
|
+
* a reference to a component factory and can render that component
|
|
11
|
+
* in a target element on demand. It's also possible to set inputs
|
|
12
|
+
* and to subscribe to outputs.
|
|
3
13
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
14
|
+
declare class DynamicComponent<C> {
|
|
15
|
+
private componentFactory;
|
|
16
|
+
/**
|
|
17
|
+
* Component reference
|
|
18
|
+
*/
|
|
19
|
+
private componentRef;
|
|
20
|
+
/**
|
|
21
|
+
* Subscriptions to the component's outputs. Those need
|
|
22
|
+
* to be unsubscribed when the component is destroyed.
|
|
23
|
+
*/
|
|
24
|
+
private subscriptions;
|
|
25
|
+
/**
|
|
26
|
+
* Component target element
|
|
27
|
+
*/
|
|
28
|
+
private target;
|
|
29
|
+
/**
|
|
30
|
+
* Component inputs
|
|
31
|
+
*/
|
|
32
|
+
private inputs;
|
|
33
|
+
/**
|
|
34
|
+
* Subscriptions to the component's async inputs
|
|
35
|
+
*/
|
|
36
|
+
private inputs$$;
|
|
37
|
+
/**
|
|
38
|
+
* Subscribers to the component's outputs
|
|
39
|
+
*/
|
|
40
|
+
private subscribers;
|
|
41
|
+
constructor(componentFactory: ComponentFactory<C>);
|
|
42
|
+
/**
|
|
43
|
+
* Render the component to a target element.
|
|
44
|
+
* Set it's inputs and subscribe to it's outputs.
|
|
45
|
+
* @param target Target element
|
|
46
|
+
*/
|
|
47
|
+
setTarget(target: ViewContainerRef): void;
|
|
48
|
+
/**
|
|
49
|
+
* Destroy this component. That means, removing from it's target
|
|
50
|
+
* element and unsubscribing to it's outputs.
|
|
51
|
+
*/
|
|
52
|
+
destroy(): void;
|
|
53
|
+
/**
|
|
54
|
+
* Update the component inputs. This is an update so any
|
|
55
|
+
* key not defined won't be overwritten.
|
|
56
|
+
*/
|
|
57
|
+
updateInputs(inputs: Record<string, any>): void;
|
|
58
|
+
/**
|
|
59
|
+
* Set an instance's input value
|
|
60
|
+
* @param instance Component instance
|
|
61
|
+
* @param key Input key
|
|
62
|
+
* @param value Input value
|
|
63
|
+
*/
|
|
64
|
+
private setInputValue;
|
|
65
|
+
/**
|
|
66
|
+
* Update the component subscribers. This is an update so any
|
|
67
|
+
* key not defined won't be overwritten.
|
|
68
|
+
*/
|
|
69
|
+
updateSubscribers(subscribers: Record<string, (event: any) => void>): void;
|
|
70
|
+
/**
|
|
71
|
+
* Subscribe to an observable input and update the component's input value
|
|
72
|
+
* accordingly
|
|
73
|
+
* @param key Input key
|
|
74
|
+
* @param observable Observable
|
|
75
|
+
*/
|
|
76
|
+
private observeInput;
|
|
77
|
+
/**
|
|
78
|
+
* Unsubscribe to an observable input
|
|
79
|
+
* @param key Input key
|
|
80
|
+
*/
|
|
81
|
+
private unobserveInput;
|
|
82
|
+
/**
|
|
83
|
+
* Unsubscribe to all outputs.
|
|
84
|
+
*/
|
|
85
|
+
private unobserveAllInputs;
|
|
86
|
+
/**
|
|
87
|
+
* Unsubscribe to all outputs.
|
|
88
|
+
*/
|
|
89
|
+
private unsubscribeAll;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Service to creates DynamicComponent instances from base component classes
|
|
94
|
+
*/
|
|
95
|
+
declare class DynamicComponentService {
|
|
96
|
+
private resolver;
|
|
97
|
+
/**
|
|
98
|
+
* Creates a DynamicComponent instance from a base component class
|
|
99
|
+
* @param componentCls The component class
|
|
100
|
+
* @returns DynamicComponent instance
|
|
101
|
+
*/
|
|
102
|
+
create(componentCls: any): DynamicComponent<any>;
|
|
103
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentService, never>;
|
|
104
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicComponentService>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare class DynamicOutletComponent implements OnChanges, OnDestroy {
|
|
108
|
+
private dynamicComponentService;
|
|
109
|
+
private cdRef;
|
|
110
|
+
/**
|
|
111
|
+
* The dynamic component base class or the dynamic component itself
|
|
112
|
+
*/
|
|
113
|
+
component: DynamicComponent<any> | any;
|
|
114
|
+
/**
|
|
115
|
+
* The dynamic component inputs
|
|
116
|
+
*/
|
|
117
|
+
inputs: Record<string, any>;
|
|
118
|
+
/**
|
|
119
|
+
* The subscribers to the dynamic component outputs
|
|
120
|
+
*/
|
|
121
|
+
subscribers: Record<string, (event: any) => void>;
|
|
122
|
+
/**
|
|
123
|
+
* The dynamic component
|
|
124
|
+
*/
|
|
125
|
+
private dynamicComponent;
|
|
126
|
+
/**
|
|
127
|
+
* The view element to render the component to
|
|
128
|
+
* @ignore
|
|
129
|
+
*/
|
|
130
|
+
private target;
|
|
131
|
+
/**
|
|
132
|
+
* If the dynamic component changes, create it.
|
|
133
|
+
* If the inputs or subscribers change, update the current component's
|
|
134
|
+
* inputs or subscribers.
|
|
135
|
+
* @internal
|
|
136
|
+
*/
|
|
137
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
138
|
+
/**
|
|
139
|
+
* Destroy the dynamic component and all it's subscribers
|
|
140
|
+
* @internal
|
|
141
|
+
*/
|
|
142
|
+
ngOnDestroy(): void;
|
|
143
|
+
/**
|
|
144
|
+
* Create a DynamicComponent out of the component class and render it.
|
|
145
|
+
* @internal
|
|
146
|
+
*/
|
|
147
|
+
private createComponent;
|
|
148
|
+
/**
|
|
149
|
+
* Create and render the dynamic component. Set it's inputs and subscribers
|
|
150
|
+
* @internal
|
|
151
|
+
*/
|
|
152
|
+
private renderComponent;
|
|
153
|
+
/**
|
|
154
|
+
* Update the dynamic component inputs. This is an update so any
|
|
155
|
+
* key not defined won't be overwritten.
|
|
156
|
+
* @internal
|
|
157
|
+
*/
|
|
158
|
+
private updateInputs;
|
|
159
|
+
/**
|
|
160
|
+
* Update the dynamic component subscribers. This is an update so any
|
|
161
|
+
* key not defined won't be overwritten.
|
|
162
|
+
* @internal
|
|
163
|
+
*/
|
|
164
|
+
private updateSubscribers;
|
|
165
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicOutletComponent, never>;
|
|
166
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicOutletComponent, "igo-dynamic-outlet", never, { "component": { "alias": "component"; "required": false; }; "inputs": { "alias": "inputs"; "required": false; }; "subscribers": { "alias": "subscribers"; "required": false; }; }, {}, never, never, true, never>;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @deprecated import the DynamicOutletComponent directly
|
|
171
|
+
*/
|
|
172
|
+
declare class IgoDynamicComponentModule {
|
|
173
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoDynamicComponentModule, never>;
|
|
174
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoDynamicComponentModule, never, [typeof DynamicOutletComponent], [typeof DynamicOutletComponent]>;
|
|
175
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoDynamicComponentModule>;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @deprecated import the DynamicOutletComponent directly
|
|
180
|
+
*/
|
|
181
|
+
declare class IgoDynamicOutletModule {
|
|
182
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoDynamicOutletModule, never>;
|
|
183
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoDynamicOutletModule, never, [typeof DynamicOutletComponent], [typeof DynamicOutletComponent]>;
|
|
184
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoDynamicOutletModule>;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export { DynamicComponent, DynamicComponentService, DynamicOutletComponent, IgoDynamicComponentModule, IgoDynamicOutletModule };
|
|
188
|
+
export type { OnUpdateInputs };
|