@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
package/table/index.d.ts
CHANGED
|
@@ -1,5 +1,107 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnChanges, OnInit, AfterViewInit, EventEmitter, ElementRef, ModuleWithProviders } from '@angular/core';
|
|
3
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
4
|
+
import { MatSort } from '@angular/material/sort';
|
|
5
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
6
|
+
import { DataSource } from '@angular/cdk/table';
|
|
7
|
+
|
|
8
|
+
declare class TableDatabase {
|
|
9
|
+
/** Stream that emits whenever the data has been modified. */
|
|
10
|
+
dataChange: BehaviorSubject<any[]>;
|
|
11
|
+
get data(): any[];
|
|
12
|
+
constructor(data?: any);
|
|
13
|
+
set(data: any): void;
|
|
14
|
+
add(item: any): void;
|
|
15
|
+
remove(item: any): void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare enum TableActionColor {
|
|
19
|
+
primary = 0,
|
|
20
|
+
accent = 1,
|
|
21
|
+
warn = 2
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface TableColumn {
|
|
25
|
+
name: string;
|
|
26
|
+
title: string;
|
|
27
|
+
sortable?: boolean;
|
|
28
|
+
filterable?: boolean;
|
|
29
|
+
displayed?: boolean;
|
|
30
|
+
html?: boolean;
|
|
31
|
+
}
|
|
32
|
+
type RowClassFunc = (row: any) => Record<string, string>;
|
|
33
|
+
type CellClassFunc = (row: any, column: TableColumn) => Record<string, string>;
|
|
34
|
+
type ClickAction = (item: any) => void;
|
|
35
|
+
interface TableAction {
|
|
36
|
+
icon: string;
|
|
37
|
+
color?: TableActionColor;
|
|
38
|
+
click: ClickAction;
|
|
39
|
+
}
|
|
40
|
+
interface TableModel {
|
|
41
|
+
columns: TableColumn[];
|
|
42
|
+
actions?: TableAction[];
|
|
43
|
+
selectionCheckbox?: boolean;
|
|
44
|
+
rowClassFunc?: RowClassFunc;
|
|
45
|
+
cellClassFunc?: CellClassFunc;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare class TableDataSource extends DataSource<any> {
|
|
49
|
+
private _database;
|
|
50
|
+
private _model;
|
|
51
|
+
private _sort;
|
|
52
|
+
get filter(): string;
|
|
53
|
+
set filter(filter: string);
|
|
54
|
+
private _filterChange;
|
|
55
|
+
constructor(_database: TableDatabase, _model: TableModel, _sort: MatSort);
|
|
56
|
+
connect(): Observable<any[]>;
|
|
57
|
+
disconnect(): void;
|
|
58
|
+
getFilteredData(data: any): any[];
|
|
59
|
+
getSortedData(data: any): any[];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare class TableComponent implements OnChanges, OnInit, AfterViewInit {
|
|
63
|
+
get database(): TableDatabase;
|
|
64
|
+
set database(value: TableDatabase);
|
|
65
|
+
private _database;
|
|
66
|
+
get model(): TableModel;
|
|
67
|
+
set model(value: TableModel);
|
|
68
|
+
private _model;
|
|
69
|
+
get hasFilterInput(): boolean;
|
|
70
|
+
set hasFilterInput(value: boolean);
|
|
71
|
+
private _hasFIlterInput;
|
|
72
|
+
displayedColumns: any;
|
|
73
|
+
dataSource: TableDataSource | null;
|
|
74
|
+
selection: SelectionModel<any>;
|
|
75
|
+
select: EventEmitter<{
|
|
76
|
+
added: any[];
|
|
77
|
+
removed: any[];
|
|
78
|
+
source: SelectionModel<any>;
|
|
79
|
+
}>;
|
|
80
|
+
filter: ElementRef;
|
|
81
|
+
sort: MatSort;
|
|
82
|
+
ngOnInit(): void;
|
|
83
|
+
ngAfterViewInit(): void;
|
|
84
|
+
ngOnChanges(change: any): void;
|
|
85
|
+
getActionColor(colorId: number): string;
|
|
86
|
+
getValue(row: any, key: any): any;
|
|
87
|
+
/** Whether the number of selected elements matches the total number of rows. */
|
|
88
|
+
isAllSelected(): boolean;
|
|
89
|
+
/** Selects all rows if they are not all selected; otherwise clear selection. */
|
|
90
|
+
masterToggle(): void;
|
|
91
|
+
handleClickAction(event: any, action: any, row: any): void;
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
93
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "igo-table", never, { "database": { "alias": "database"; "required": false; }; "model": { "alias": "model"; "required": false; }; "hasFilterInput": { "alias": "hasFilterInput"; "required": false; }; }, { "select": "select"; }, never, never, true, never>;
|
|
94
|
+
}
|
|
95
|
+
|
|
1
96
|
/**
|
|
2
|
-
*
|
|
97
|
+
* @deprecated import the TableComponent directly
|
|
3
98
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
99
|
+
declare class IgoTableModule {
|
|
100
|
+
static forRoot(): ModuleWithProviders<IgoTableModule>;
|
|
101
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoTableModule, never>;
|
|
102
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoTableModule, never, [typeof TableComponent], [typeof TableComponent]>;
|
|
103
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoTableModule>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export { IgoTableModule, TableActionColor, TableComponent, TableDataSource, TableDatabase };
|
|
107
|
+
export type { CellClassFunc, ClickAction, RowClassFunc, TableAction, TableColumn, TableModel };
|
package/tool/index.d.ts
CHANGED
|
@@ -1,5 +1,291 @@
|
|
|
1
|
+
import { IconSvg } from '@igo2/common/icon';
|
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { OnInit, OnDestroy, ModuleWithProviders } from '@angular/core';
|
|
5
|
+
import { ActionStore } from '@igo2/common/action';
|
|
6
|
+
|
|
7
|
+
interface Tool {
|
|
8
|
+
name: string;
|
|
9
|
+
component: any;
|
|
10
|
+
title?: string;
|
|
11
|
+
icon?: string | IconSvg;
|
|
12
|
+
tooltip?: string;
|
|
13
|
+
global?: boolean;
|
|
14
|
+
options?: Record<string, any>;
|
|
15
|
+
parent?: string;
|
|
16
|
+
children?: string[];
|
|
17
|
+
id?: string;
|
|
18
|
+
}
|
|
19
|
+
interface ToolboxOptions {
|
|
20
|
+
toolbar?: string[];
|
|
21
|
+
}
|
|
22
|
+
|
|
1
23
|
/**
|
|
2
|
-
*
|
|
24
|
+
* Service where all available tools and their component are registered.
|
|
3
25
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
26
|
+
declare class Toolbox {
|
|
27
|
+
private options;
|
|
28
|
+
/**
|
|
29
|
+
* Observable of the active tool
|
|
30
|
+
*/
|
|
31
|
+
activeTool$: BehaviorSubject<Tool>;
|
|
32
|
+
/**
|
|
33
|
+
* Ordered list of tool names to display in a toolbar
|
|
34
|
+
*/
|
|
35
|
+
toolbar$: BehaviorSubject<string[]>;
|
|
36
|
+
/**
|
|
37
|
+
* Observable of the active tool
|
|
38
|
+
*/
|
|
39
|
+
private activeTool$$;
|
|
40
|
+
/**
|
|
41
|
+
* Active tool history. Useful for activating the previous tool.
|
|
42
|
+
*/
|
|
43
|
+
private activeToolHistory;
|
|
44
|
+
private previousToolName;
|
|
45
|
+
private currentToolName;
|
|
46
|
+
/**
|
|
47
|
+
* Tool store
|
|
48
|
+
*/
|
|
49
|
+
private store;
|
|
50
|
+
get tools$(): BehaviorSubject<Tool[]>;
|
|
51
|
+
constructor(options?: ToolboxOptions);
|
|
52
|
+
/**
|
|
53
|
+
* Destroy the toolbox
|
|
54
|
+
*/
|
|
55
|
+
destroy(): void;
|
|
56
|
+
/**
|
|
57
|
+
* Return a tool
|
|
58
|
+
* @param name Tool name
|
|
59
|
+
* @returns tool Tool
|
|
60
|
+
*/
|
|
61
|
+
getTool(name: string): Tool;
|
|
62
|
+
/**
|
|
63
|
+
* Return all tools
|
|
64
|
+
* @returns Array of tools
|
|
65
|
+
*/
|
|
66
|
+
getTools(): Tool[];
|
|
67
|
+
/**
|
|
68
|
+
* Set tool configurations
|
|
69
|
+
* @param tools Tools
|
|
70
|
+
*/
|
|
71
|
+
setTools(tools: Tool[]): void;
|
|
72
|
+
/**
|
|
73
|
+
* Get toolbar
|
|
74
|
+
* @returns Toolbar value
|
|
75
|
+
*/
|
|
76
|
+
getToolbar(): string[];
|
|
77
|
+
/**
|
|
78
|
+
* Set toolbar
|
|
79
|
+
* @param toolbar A list of tool names
|
|
80
|
+
*/
|
|
81
|
+
setToolbar(toolbar: string[]): void;
|
|
82
|
+
/**
|
|
83
|
+
* Activate a tool (and deactivate other tools)
|
|
84
|
+
* @param name Tool name
|
|
85
|
+
* @param options Tool options
|
|
86
|
+
*/
|
|
87
|
+
activateTool(name: string, options?: Record<string, any>): void;
|
|
88
|
+
/**
|
|
89
|
+
* Activate the previous tool, if any
|
|
90
|
+
*/
|
|
91
|
+
activatePreviousTool(): void;
|
|
92
|
+
getCurrentPreviousToolName(): [string, string];
|
|
93
|
+
/**
|
|
94
|
+
* Activate the tool below, if any
|
|
95
|
+
*/
|
|
96
|
+
/**
|
|
97
|
+
* Activate the tool above, if any
|
|
98
|
+
*/
|
|
99
|
+
/**
|
|
100
|
+
* Deactivate the active tool
|
|
101
|
+
*/
|
|
102
|
+
deactivateTool(): void;
|
|
103
|
+
/**
|
|
104
|
+
* Initialize the tool store and start observing the active tool
|
|
105
|
+
*/
|
|
106
|
+
private initStore;
|
|
107
|
+
/**
|
|
108
|
+
* Set the active tool and update the tool history
|
|
109
|
+
* @param tool Tool
|
|
110
|
+
*/
|
|
111
|
+
private setActiveTool;
|
|
112
|
+
/**
|
|
113
|
+
* Clear the tool history
|
|
114
|
+
*/
|
|
115
|
+
private clearActiveToolHistory;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Service where runtime tool configurations are registered
|
|
120
|
+
*/
|
|
121
|
+
declare class ToolService {
|
|
122
|
+
static tools: Record<string, Tool>;
|
|
123
|
+
/**
|
|
124
|
+
* Toolbox that holds main tools
|
|
125
|
+
*/
|
|
126
|
+
toolbox: Toolbox;
|
|
127
|
+
static register(tool: Tool): void;
|
|
128
|
+
constructor();
|
|
129
|
+
/**
|
|
130
|
+
* Return a tool
|
|
131
|
+
* @param name Tool name
|
|
132
|
+
* @returns tool Tool
|
|
133
|
+
*/
|
|
134
|
+
getTool(name: string): Tool;
|
|
135
|
+
/**
|
|
136
|
+
* Return all tools
|
|
137
|
+
* @returns tTols
|
|
138
|
+
*/
|
|
139
|
+
getTools(): Tool[];
|
|
140
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolService, never>;
|
|
141
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ToolService>;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare function ToolComponent(tool: Partial<Tool>): (cls: any) => any;
|
|
145
|
+
|
|
146
|
+
type ToolboxColor = 'white' | 'grey' | 'primary';
|
|
147
|
+
|
|
148
|
+
declare class ToolboxComponent implements OnInit, OnDestroy {
|
|
149
|
+
/**
|
|
150
|
+
* Observable of the active tool
|
|
151
|
+
*/
|
|
152
|
+
activeTool$: BehaviorSubject<Tool>;
|
|
153
|
+
get isActive(): boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Store of actions that toggle tools
|
|
156
|
+
*/
|
|
157
|
+
actionStore: ActionStore;
|
|
158
|
+
/**
|
|
159
|
+
* Observable of he anmation state
|
|
160
|
+
*/
|
|
161
|
+
animation$: BehaviorSubject<string>;
|
|
162
|
+
/**
|
|
163
|
+
* Observable of the toolbar
|
|
164
|
+
*/
|
|
165
|
+
toolbar$: BehaviorSubject<string[]>;
|
|
166
|
+
/**
|
|
167
|
+
* Whether the Toolbar should display actions' titles
|
|
168
|
+
*/
|
|
169
|
+
toolbarWithTitle$: Observable<boolean>;
|
|
170
|
+
/**
|
|
171
|
+
* Subscription to the active tool
|
|
172
|
+
*/
|
|
173
|
+
private activeTool$$;
|
|
174
|
+
/**
|
|
175
|
+
* Subscription to the toolbar
|
|
176
|
+
*/
|
|
177
|
+
private toolbar$$;
|
|
178
|
+
/**
|
|
179
|
+
* Observable of the ongoing animation. This is useful when
|
|
180
|
+
* multiple animations are triggered at once i.e. when the user clicks
|
|
181
|
+
* too fast on different actions
|
|
182
|
+
*/
|
|
183
|
+
private animating$;
|
|
184
|
+
/**
|
|
185
|
+
* Subscription to the ongoing animation
|
|
186
|
+
*/
|
|
187
|
+
private animating$$;
|
|
188
|
+
/**
|
|
189
|
+
* Toolbox
|
|
190
|
+
*/
|
|
191
|
+
toolbox: Toolbox;
|
|
192
|
+
/**
|
|
193
|
+
* Whether the toolbox should animate the first tool entering
|
|
194
|
+
*/
|
|
195
|
+
animate: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* Color of Toolbox
|
|
198
|
+
*/
|
|
199
|
+
color: ToolboxColor;
|
|
200
|
+
/**
|
|
201
|
+
* @ignore
|
|
202
|
+
*/
|
|
203
|
+
get classColorGrey(): boolean;
|
|
204
|
+
/**
|
|
205
|
+
* @ignore
|
|
206
|
+
*/
|
|
207
|
+
get classColorPrimary(): boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Initialize the toolbar and subscribe to the active tool
|
|
210
|
+
* @internal
|
|
211
|
+
*/
|
|
212
|
+
ngOnInit(): void;
|
|
213
|
+
/**
|
|
214
|
+
* Unsubscribe to the active tool and destroy the action store
|
|
215
|
+
* @internal
|
|
216
|
+
*/
|
|
217
|
+
ngOnDestroy(): void;
|
|
218
|
+
/**
|
|
219
|
+
* Track the starting animation
|
|
220
|
+
* @internal
|
|
221
|
+
*/
|
|
222
|
+
onAnimationStart(): void;
|
|
223
|
+
/**
|
|
224
|
+
* Untrack the completed animation
|
|
225
|
+
* @internal
|
|
226
|
+
*/
|
|
227
|
+
onAnimationComplete(): void;
|
|
228
|
+
/**
|
|
229
|
+
* Return a tool's inputs
|
|
230
|
+
* @param tool Tool
|
|
231
|
+
* @returns Tool inputs
|
|
232
|
+
* @internal
|
|
233
|
+
*/
|
|
234
|
+
getToolInputs(tool: Tool): Record<string, any>;
|
|
235
|
+
/**
|
|
236
|
+
* Initialize an action store
|
|
237
|
+
* @param toolbar Toolbar
|
|
238
|
+
*/
|
|
239
|
+
private onToolbarChange;
|
|
240
|
+
/**
|
|
241
|
+
* Activate a tool and trigger an animation or not
|
|
242
|
+
* @param tool Tool to activate
|
|
243
|
+
*/
|
|
244
|
+
private onActiveToolChange;
|
|
245
|
+
/**
|
|
246
|
+
* Set the active tool
|
|
247
|
+
* @param tool Tool to activate
|
|
248
|
+
*/
|
|
249
|
+
private setActiveTool;
|
|
250
|
+
/**
|
|
251
|
+
* Initialize the toolbar
|
|
252
|
+
*/
|
|
253
|
+
private setToolbar;
|
|
254
|
+
/**
|
|
255
|
+
* Observe the ongoing animation and ignore any incoming animation
|
|
256
|
+
* while one is still ongoing.
|
|
257
|
+
* @param callback Callback to execute when the animation completes
|
|
258
|
+
*/
|
|
259
|
+
private onAnimate;
|
|
260
|
+
/**
|
|
261
|
+
* Stop observing an animation when it's complete
|
|
262
|
+
*/
|
|
263
|
+
private unAnimate;
|
|
264
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolboxComponent, never>;
|
|
265
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolboxComponent, "igo-toolbox", never, { "toolbox": { "alias": "toolbox"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* @deprecated import the ToolboxComponent directly
|
|
270
|
+
*/
|
|
271
|
+
declare class IgoToolboxModule {
|
|
272
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoToolboxModule, never>;
|
|
273
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoToolboxModule, never, [typeof ToolboxComponent], [typeof ToolboxComponent]>;
|
|
274
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoToolboxModule>;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* @deprecated import the ToolboxComponent directly
|
|
279
|
+
*/
|
|
280
|
+
declare class IgoToolModule {
|
|
281
|
+
/**
|
|
282
|
+
* @deprecated it has no effect
|
|
283
|
+
*/
|
|
284
|
+
static forRoot(): ModuleWithProviders<IgoToolModule>;
|
|
285
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoToolModule, never>;
|
|
286
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoToolModule, never, never, [typeof IgoToolboxModule]>;
|
|
287
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoToolModule>;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export { IgoToolModule, IgoToolboxModule, ToolComponent, ToolService, Toolbox, ToolboxComponent };
|
|
291
|
+
export type { Tool, ToolboxColor, ToolboxOptions };
|
package/widget/index.d.ts
CHANGED
|
@@ -1,5 +1,107 @@
|
|
|
1
|
+
import { DynamicComponent } from '@igo2/common/dynamic-component';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
4
|
+
|
|
1
5
|
/**
|
|
2
|
-
*
|
|
6
|
+
* This is the interface a widget component needs to implement. A widget
|
|
7
|
+
* component is component that can be created dynamically. It needs
|
|
8
|
+
* to emit the 'complete' and 'cancel' event at some time in it's lifecycle.
|
|
9
|
+
* Since a widget's inputs are set manually, you may want to implement the 'onUpdateInputs'
|
|
10
|
+
* method. This method could, for example, trigger the change detection.
|
|
3
11
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
12
|
+
interface WidgetComponent {
|
|
13
|
+
complete: EventEmitter<any>;
|
|
14
|
+
cancel: EventEmitter<any>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class Widget extends DynamicComponent<WidgetComponent> {
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare class WidgetService {
|
|
21
|
+
private dynamicComponentService;
|
|
22
|
+
create(widgetCls: any): Widget;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WidgetService>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* This component dynamically renders a widget. It also subscribes
|
|
29
|
+
* to the widget's 'cancel' and 'complete' events and destroys it
|
|
30
|
+
* when any of those event is emitted.
|
|
31
|
+
*/
|
|
32
|
+
declare class WidgetOutletComponent implements OnDestroy {
|
|
33
|
+
/**
|
|
34
|
+
* Widget subscribers to 'cancel' and 'complete'
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
private baseSubscribers;
|
|
38
|
+
/**
|
|
39
|
+
* Widget
|
|
40
|
+
*/
|
|
41
|
+
widget: DynamicComponent<WidgetComponent>;
|
|
42
|
+
/**
|
|
43
|
+
* Widget inputs
|
|
44
|
+
*/
|
|
45
|
+
inputs: Record<string, any>;
|
|
46
|
+
/**
|
|
47
|
+
* Widget subscribers
|
|
48
|
+
*/
|
|
49
|
+
subscribers: Record<string, (event: any) => void>;
|
|
50
|
+
/**
|
|
51
|
+
* Event emitted when the widget emits 'complete'
|
|
52
|
+
*/
|
|
53
|
+
complete: EventEmitter<any>;
|
|
54
|
+
/**
|
|
55
|
+
* Event emitted when the widget emits 'cancel'
|
|
56
|
+
*/
|
|
57
|
+
cancel: EventEmitter<any>;
|
|
58
|
+
/**
|
|
59
|
+
* Destroy the current widget and all it's inner subscriptions
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
ngOnDestroy(): void;
|
|
63
|
+
/**
|
|
64
|
+
* Get the effective subscribers. That means a combination of the base
|
|
65
|
+
* subscribers and any subscriber given as input.
|
|
66
|
+
* @returns Combined subscribers
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
getEffectiveSubscribers(): Record<string, (event: any) => void>;
|
|
70
|
+
/**
|
|
71
|
+
* When the widget emits 'cancel', propagate that event and destroy
|
|
72
|
+
* the widget
|
|
73
|
+
*/
|
|
74
|
+
private onCancel;
|
|
75
|
+
/**
|
|
76
|
+
* When the widget emits 'complete', propagate that event and destroy
|
|
77
|
+
* the widget
|
|
78
|
+
*/
|
|
79
|
+
private onComplete;
|
|
80
|
+
/**
|
|
81
|
+
* Destroy the current widget
|
|
82
|
+
*/
|
|
83
|
+
private destroyWidget;
|
|
84
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetOutletComponent, never>;
|
|
85
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetOutletComponent, "igo-widget-outlet", never, { "widget": { "alias": "widget"; "required": false; }; "inputs": { "alias": "inputs"; "required": false; }; "subscribers": { "alias": "subscribers"; "required": false; }; }, { "complete": "complete"; "cancel": "cancel"; }, never, never, true, never>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @deprecated import the WidgetOutletComponent directly
|
|
90
|
+
*/
|
|
91
|
+
declare class IgoWidgetOutletModule {
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoWidgetOutletModule, never>;
|
|
93
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoWidgetOutletModule, never, [typeof WidgetOutletComponent], [typeof WidgetOutletComponent]>;
|
|
94
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoWidgetOutletModule>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated import the WidgetOutletComponent directly
|
|
99
|
+
*/
|
|
100
|
+
declare class IgoWidgetModule {
|
|
101
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoWidgetModule, never>;
|
|
102
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoWidgetModule, never, [typeof IgoWidgetOutletModule], [typeof IgoWidgetOutletModule]>;
|
|
103
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoWidgetModule>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export { IgoWidgetModule, IgoWidgetOutletModule, Widget, WidgetOutletComponent, WidgetService };
|
|
107
|
+
export type { WidgetComponent };
|