@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,84 +0,0 @@
|
|
|
1
|
-
import { ComponentFactory, ViewContainerRef } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* This class is used in the DynamicComponentOutlet component. It holds
|
|
4
|
-
* a reference to a component factory and can render that component
|
|
5
|
-
* in a target element on demand. It's also possible to set inputs
|
|
6
|
-
* and to subscribe to outputs.
|
|
7
|
-
*/
|
|
8
|
-
export declare class DynamicComponent<C> {
|
|
9
|
-
private componentFactory;
|
|
10
|
-
/**
|
|
11
|
-
* Component reference
|
|
12
|
-
*/
|
|
13
|
-
private componentRef;
|
|
14
|
-
/**
|
|
15
|
-
* Subscriptions to the component's outputs. Those need
|
|
16
|
-
* to be unsubscribed when the component is destroyed.
|
|
17
|
-
*/
|
|
18
|
-
private subscriptions;
|
|
19
|
-
/**
|
|
20
|
-
* Component target element
|
|
21
|
-
*/
|
|
22
|
-
private target;
|
|
23
|
-
/**
|
|
24
|
-
* Component inputs
|
|
25
|
-
*/
|
|
26
|
-
private inputs;
|
|
27
|
-
/**
|
|
28
|
-
* Subscriptions to the component's async inputs
|
|
29
|
-
*/
|
|
30
|
-
private inputs$$;
|
|
31
|
-
/**
|
|
32
|
-
* Subscribers to the component's outputs
|
|
33
|
-
*/
|
|
34
|
-
private subscribers;
|
|
35
|
-
constructor(componentFactory: ComponentFactory<C>);
|
|
36
|
-
/**
|
|
37
|
-
* Render the component to a target element.
|
|
38
|
-
* Set it's inputs and subscribe to it's outputs.
|
|
39
|
-
* @param target Target element
|
|
40
|
-
*/
|
|
41
|
-
setTarget(target: ViewContainerRef): void;
|
|
42
|
-
/**
|
|
43
|
-
* Destroy this component. That means, removing from it's target
|
|
44
|
-
* element and unsubscribing to it's outputs.
|
|
45
|
-
*/
|
|
46
|
-
destroy(): void;
|
|
47
|
-
/**
|
|
48
|
-
* Update the component inputs. This is an update so any
|
|
49
|
-
* key not defined won't be overwritten.
|
|
50
|
-
*/
|
|
51
|
-
updateInputs(inputs: Record<string, any>): void;
|
|
52
|
-
/**
|
|
53
|
-
* Set an instance's input value
|
|
54
|
-
* @param instance Component instance
|
|
55
|
-
* @param key Input key
|
|
56
|
-
* @param value Input value
|
|
57
|
-
*/
|
|
58
|
-
private setInputValue;
|
|
59
|
-
/**
|
|
60
|
-
* Update the component subscribers. This is an update so any
|
|
61
|
-
* key not defined won't be overwritten.
|
|
62
|
-
*/
|
|
63
|
-
updateSubscribers(subscribers: Record<string, (event: any) => void>): void;
|
|
64
|
-
/**
|
|
65
|
-
* Subscribe to an observable input and update the component's input value
|
|
66
|
-
* accordingly
|
|
67
|
-
* @param key Input key
|
|
68
|
-
* @param observable Observable
|
|
69
|
-
*/
|
|
70
|
-
private observeInput;
|
|
71
|
-
/**
|
|
72
|
-
* Unsubscribe to an observable input
|
|
73
|
-
* @param key Input key
|
|
74
|
-
*/
|
|
75
|
-
private unobserveInput;
|
|
76
|
-
/**
|
|
77
|
-
* Unsubscribe to all outputs.
|
|
78
|
-
*/
|
|
79
|
-
private unobserveAllInputs;
|
|
80
|
-
/**
|
|
81
|
-
* Unsubscribe to all outputs.
|
|
82
|
-
*/
|
|
83
|
-
private unsubscribeAll;
|
|
84
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ComponentFactoryResolver } from '@angular/core';
|
|
2
|
-
import { DynamicComponent } from './dynamic-component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Service to creates DynamicComponent instances from base component classes
|
|
6
|
-
*/
|
|
7
|
-
export declare class DynamicComponentService {
|
|
8
|
-
private resolver;
|
|
9
|
-
constructor(resolver: ComponentFactoryResolver);
|
|
10
|
-
/**
|
|
11
|
-
* Creates a DynamicComponent instance from a base component class
|
|
12
|
-
* @param componentCls The component class
|
|
13
|
-
* @returns DynamicComponent instance
|
|
14
|
-
*/
|
|
15
|
-
create(componentCls: any): DynamicComponent<any>;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentService, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicComponentService>;
|
|
18
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { EntityStore } from '../shared/store';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export interface EntitySelectorChange<T = any> {
|
|
6
|
-
selected: boolean;
|
|
7
|
-
value: T;
|
|
8
|
-
}
|
|
9
|
-
export declare class EntitySelectorComponent implements OnInit, OnDestroy {
|
|
10
|
-
private cdRef;
|
|
11
|
-
/**
|
|
12
|
-
* The selected entity
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
readonly selected$: BehaviorSubject<object>;
|
|
16
|
-
/**
|
|
17
|
-
* The current multi select option text
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
20
|
-
readonly multiText$: BehaviorSubject<string>;
|
|
21
|
-
readonly multiSelectValue: {
|
|
22
|
-
id: string;
|
|
23
|
-
};
|
|
24
|
-
readonly emptyValue: {
|
|
25
|
-
id: string;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Subscription to the selected entity
|
|
29
|
-
*/
|
|
30
|
-
private selected$$;
|
|
31
|
-
/**
|
|
32
|
-
* Store watcher
|
|
33
|
-
*/
|
|
34
|
-
private watcher;
|
|
35
|
-
/**
|
|
36
|
-
* Entity store
|
|
37
|
-
*/
|
|
38
|
-
store: EntityStore<object>;
|
|
39
|
-
/**
|
|
40
|
-
* Title accessor
|
|
41
|
-
*/
|
|
42
|
-
titleAccessor: (object: any) => string;
|
|
43
|
-
/**
|
|
44
|
-
* Text to display when nothing is selected
|
|
45
|
-
*/
|
|
46
|
-
emptyText: string;
|
|
47
|
-
/**
|
|
48
|
-
* Wheter selecting many entities is allowed
|
|
49
|
-
*/
|
|
50
|
-
multi: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Text to display for the select all option
|
|
53
|
-
*/
|
|
54
|
-
multiAllText: string;
|
|
55
|
-
/**
|
|
56
|
-
* Text to display for the select none option
|
|
57
|
-
*/
|
|
58
|
-
multiNoneText: string;
|
|
59
|
-
/**
|
|
60
|
-
* Field placeholder
|
|
61
|
-
*/
|
|
62
|
-
placeholder: string;
|
|
63
|
-
/**
|
|
64
|
-
* Wheter the selector is disabled or not
|
|
65
|
-
*/
|
|
66
|
-
disabled: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Event emitted when the selection changes
|
|
69
|
-
*/
|
|
70
|
-
selectedChange: EventEmitter<EntitySelectorChange<any>>;
|
|
71
|
-
constructor(cdRef: ChangeDetectorRef);
|
|
72
|
-
/**
|
|
73
|
-
* Create a store watcher and subscribe to the selected entity
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
|
-
ngOnInit(): void;
|
|
77
|
-
/**
|
|
78
|
-
* Unsubscribe to the selected entity and destroy the store watcher
|
|
79
|
-
* @internal
|
|
80
|
-
*/
|
|
81
|
-
ngOnDestroy(): void;
|
|
82
|
-
/**
|
|
83
|
-
* On selection change, update the store's state and emit an event
|
|
84
|
-
* @internal
|
|
85
|
-
*/
|
|
86
|
-
onSelectionChange(event: {
|
|
87
|
-
value: object | undefined;
|
|
88
|
-
}): void;
|
|
89
|
-
private onSelectFromStore;
|
|
90
|
-
private updateMultiToggleWithEntities;
|
|
91
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntitySelectorComponent, never>;
|
|
92
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EntitySelectorComponent, "igo-entity-selector", never, { "store": { "alias": "store"; "required": false; }; "titleAccessor": { "alias": "titleAccessor"; "required": false; }; "emptyText": { "alias": "emptyText"; "required": false; }; "multi": { "alias": "multi"; "required": false; }; "multiAllText": { "alias": "multiAllText"; "required": false; }; "multiNoneText": { "alias": "multiNoneText"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
93
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./entity-selector.component";
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated import the EntitySelectorComponent directly
|
|
5
|
-
*/
|
|
6
|
-
export declare class IgoEntitySelectorModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IgoEntitySelectorModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoEntitySelectorModule, never, [typeof i1.EntitySelectorComponent], [typeof i1.EntitySelectorComponent]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IgoEntitySelectorModule>;
|
|
10
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, Renderer2 } from '@angular/core';
|
|
2
|
-
import { EntityTableScrollBehavior } from '../shared/entity.enums';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Directive that handles an entity table row click and selection.
|
|
6
|
-
*/
|
|
7
|
-
export declare class EntityTableRowDirective {
|
|
8
|
-
private renderer;
|
|
9
|
-
private el;
|
|
10
|
-
/**
|
|
11
|
-
* Class added to a selected row
|
|
12
|
-
*/
|
|
13
|
-
static selectedCls: string;
|
|
14
|
-
/**
|
|
15
|
-
* Class added to a highlighted row
|
|
16
|
-
*/
|
|
17
|
-
static highlightedCls: string;
|
|
18
|
-
/**
|
|
19
|
-
* Whether a row supports selection
|
|
20
|
-
*/
|
|
21
|
-
selection: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Whether clicking a row should select it (if selection is true)
|
|
24
|
-
*/
|
|
25
|
-
selectOnClick: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Whether the selected row should be highlighted
|
|
28
|
-
*/
|
|
29
|
-
highlightSelection: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Whether a row is selected
|
|
32
|
-
*/
|
|
33
|
-
set selected(value: boolean);
|
|
34
|
-
get selected(): boolean;
|
|
35
|
-
private _selected;
|
|
36
|
-
/**
|
|
37
|
-
* Scroll behavior on selection
|
|
38
|
-
*/
|
|
39
|
-
scrollBehavior: EntityTableScrollBehavior;
|
|
40
|
-
/**
|
|
41
|
-
* Event emitted when a row is selected
|
|
42
|
-
*/
|
|
43
|
-
select: EventEmitter<EntityTableRowDirective>;
|
|
44
|
-
/**
|
|
45
|
-
* When a row is clicked, select it if it's supported
|
|
46
|
-
* @ignore
|
|
47
|
-
*/
|
|
48
|
-
onClick(): void;
|
|
49
|
-
constructor(renderer: Renderer2, el: ElementRef);
|
|
50
|
-
/**
|
|
51
|
-
* Select a row and add or remove the selected class from it
|
|
52
|
-
* @param selected Whether the row should be selected
|
|
53
|
-
*/
|
|
54
|
-
private toggleSelected;
|
|
55
|
-
/**
|
|
56
|
-
* Scroll to the selected row
|
|
57
|
-
*/
|
|
58
|
-
private scroll;
|
|
59
|
-
/**
|
|
60
|
-
* Add the selected CSS class
|
|
61
|
-
*/
|
|
62
|
-
private addCls;
|
|
63
|
-
/**
|
|
64
|
-
* Remove the selected CSS class
|
|
65
|
-
*/
|
|
66
|
-
private removeCls;
|
|
67
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntityTableRowDirective, never>;
|
|
68
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<EntityTableRowDirective, "[igoEntityTableRow]", never, { "selection": { "alias": "selection"; "required": false; }; "selectOnClick": { "alias": "selectOnClick"; "required": false; }; "highlightSelection": { "alias": "highlightSelection"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "scrollBehavior": { "alias": "scrollBehavior"; "required": false; }; }, { "select": "select"; }, never, never, true, never>;
|
|
69
|
-
}
|
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TrackByFunction } from '@angular/core';
|
|
3
|
-
import { FormControlName, NgControl, NgForm, UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
4
|
-
import { DateAdapter, ErrorStateMatcher } from '@angular/material/core';
|
|
5
|
-
import { MatPaginator } from '@angular/material/paginator';
|
|
6
|
-
import { MatTableDataSource } from '@angular/material/table';
|
|
7
|
-
import { BehaviorSubject } from 'rxjs';
|
|
8
|
-
import { EntityTablePaginatorOptions } from '../entity-table-paginator/entity-table-paginator.interface';
|
|
9
|
-
import { EntityRecord, EntityState, EntityStore, EntityTableColumn, EntityTableColumnRenderer, EntityTableScrollBehavior, EntityTableSelectionState, EntityTableTemplate } from '../shared';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
type CellData = Record<string, {
|
|
12
|
-
value: any;
|
|
13
|
-
class: Record<string, boolean>;
|
|
14
|
-
isUrl: boolean;
|
|
15
|
-
isImg: boolean;
|
|
16
|
-
}>;
|
|
17
|
-
interface RowData {
|
|
18
|
-
record: EntityRecord<object, EntityState>;
|
|
19
|
-
cellData: CellData;
|
|
20
|
-
}
|
|
21
|
-
export declare class EntityTableComponent implements OnInit, OnChanges, OnDestroy {
|
|
22
|
-
private cdRef;
|
|
23
|
-
private formBuilder;
|
|
24
|
-
protected _focusMonitor: FocusMonitor;
|
|
25
|
-
protected _elementRef: ElementRef<HTMLElement>;
|
|
26
|
-
ngControl: NgControl;
|
|
27
|
-
protected _parentForm: NgForm;
|
|
28
|
-
protected _controlName: FormControlName;
|
|
29
|
-
protected _defaultErrorStateMatcher: ErrorStateMatcher;
|
|
30
|
-
private dateAdapter;
|
|
31
|
-
entitySortChange$: BehaviorSubject<boolean>;
|
|
32
|
-
formGroup: UntypedFormGroup;
|
|
33
|
-
filteredOptions: {};
|
|
34
|
-
/**
|
|
35
|
-
* Reference to the column renderer types
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
|
-
entityTableColumnRenderer: typeof EntityTableColumnRenderer;
|
|
39
|
-
/**
|
|
40
|
-
* Reference to the selection's state
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
|
-
entityTableSelectionState: typeof EntityTableSelectionState;
|
|
44
|
-
/**
|
|
45
|
-
* Observable of the selection,s state
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
|
-
readonly selectionState$: BehaviorSubject<EntityTableSelectionState>;
|
|
49
|
-
/**
|
|
50
|
-
* Subscription to the store's selection
|
|
51
|
-
*/
|
|
52
|
-
private selection$$;
|
|
53
|
-
/**
|
|
54
|
-
* Subscription to the dataSource
|
|
55
|
-
*/
|
|
56
|
-
private dataSource$$;
|
|
57
|
-
/**
|
|
58
|
-
* The last record checked. Useful for selecting
|
|
59
|
-
* multiple records by holding the shift key and checking
|
|
60
|
-
* checkboxes.
|
|
61
|
-
*/
|
|
62
|
-
private lastRecordCheckedKey;
|
|
63
|
-
/**
|
|
64
|
-
* Entity store
|
|
65
|
-
*/
|
|
66
|
-
store: EntityStore<object>;
|
|
67
|
-
/**
|
|
68
|
-
* Table paginator
|
|
69
|
-
*/
|
|
70
|
-
set paginator(value: MatPaginator);
|
|
71
|
-
get paginator(): MatPaginator;
|
|
72
|
-
private _paginator;
|
|
73
|
-
/**
|
|
74
|
-
* Table template
|
|
75
|
-
*/
|
|
76
|
-
template: EntityTableTemplate;
|
|
77
|
-
/**
|
|
78
|
-
* Scroll behavior on selection
|
|
79
|
-
*/
|
|
80
|
-
scrollBehavior: EntityTableScrollBehavior;
|
|
81
|
-
/**
|
|
82
|
-
* Whether nulls should be first when sorting
|
|
83
|
-
*/
|
|
84
|
-
sortNullsFirst: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Show the table paginator or not. False by default.
|
|
87
|
-
*/
|
|
88
|
-
withPaginator: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* Paginator options
|
|
91
|
-
*/
|
|
92
|
-
paginatorOptions: EntityTablePaginatorOptions;
|
|
93
|
-
/**
|
|
94
|
-
* Event emitted when an entity (row) is clicked
|
|
95
|
-
*/
|
|
96
|
-
entityClick: EventEmitter<object>;
|
|
97
|
-
/**
|
|
98
|
-
* Event emitted when an entity (row) is selected
|
|
99
|
-
*/
|
|
100
|
-
entitySelectChange: EventEmitter<{
|
|
101
|
-
added: object[];
|
|
102
|
-
}>;
|
|
103
|
-
/**
|
|
104
|
-
* Event emitted when the table sort is changed.
|
|
105
|
-
*/
|
|
106
|
-
entitySortChange: EventEmitter<{
|
|
107
|
-
column: EntityTableColumn;
|
|
108
|
-
direction: string;
|
|
109
|
-
}>;
|
|
110
|
-
/**
|
|
111
|
-
* Table headers
|
|
112
|
-
* @internal
|
|
113
|
-
*/
|
|
114
|
-
get headers(): string[];
|
|
115
|
-
/**
|
|
116
|
-
* Data source consumable by the underlying material table
|
|
117
|
-
* @internal
|
|
118
|
-
*/
|
|
119
|
-
dataSource: MatTableDataSource<RowData, MatPaginator>;
|
|
120
|
-
/**
|
|
121
|
-
* Whether selection is supported
|
|
122
|
-
* @internal
|
|
123
|
-
*/
|
|
124
|
-
get selection(): boolean;
|
|
125
|
-
/**
|
|
126
|
-
* Whether a selection checkbox should be displayed
|
|
127
|
-
* @internal
|
|
128
|
-
*/
|
|
129
|
-
get selectionCheckbox(): boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Whether selection many entities should eb supported
|
|
132
|
-
* @internal
|
|
133
|
-
*/
|
|
134
|
-
get selectMany(): boolean;
|
|
135
|
-
/**
|
|
136
|
-
* Whether selection many entities should eb supported
|
|
137
|
-
* @internal
|
|
138
|
-
*/
|
|
139
|
-
get fixedHeader(): boolean;
|
|
140
|
-
get tableHeight(): string;
|
|
141
|
-
constructor(cdRef: ChangeDetectorRef, formBuilder: UntypedFormBuilder, _focusMonitor: FocusMonitor, _elementRef: ElementRef<HTMLElement>, ngControl: NgControl, _parentForm: NgForm, _controlName: FormControlName, _defaultErrorStateMatcher: ErrorStateMatcher, dateAdapter: DateAdapter<Date>);
|
|
142
|
-
/**
|
|
143
|
-
* Track the selection state to properly display the selection checkboxes
|
|
144
|
-
* @internal
|
|
145
|
-
*/
|
|
146
|
-
ngOnInit(): void;
|
|
147
|
-
/**
|
|
148
|
-
* @internal
|
|
149
|
-
*/
|
|
150
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
151
|
-
/**
|
|
152
|
-
* Process text or number value change (edition)
|
|
153
|
-
*/
|
|
154
|
-
onValueChange(column: string, record: EntityRecord<any>, event: any): void;
|
|
155
|
-
/**
|
|
156
|
-
* Process boolean value change (edition)
|
|
157
|
-
*/
|
|
158
|
-
onBooleanValueChange(column: string, record: EntityRecord<any>, event: any): void;
|
|
159
|
-
/**
|
|
160
|
-
* Process select value change (edition)
|
|
161
|
-
*/
|
|
162
|
-
onSelectValueChange(column: string, record: EntityRecord<any>, event: any): void;
|
|
163
|
-
/**
|
|
164
|
-
* Process autocomplete value change (edition)
|
|
165
|
-
*/
|
|
166
|
-
onAutocompleteValueChange(column: EntityTableColumn, record: EntityRecord<any>, event: any): void;
|
|
167
|
-
/**
|
|
168
|
-
* Process date value change (edition)
|
|
169
|
-
*/
|
|
170
|
-
onDateChange(column: string, record: EntityRecord<any>, event: any): void;
|
|
171
|
-
/**
|
|
172
|
-
* Enable edition mode for one row
|
|
173
|
-
* More than one row can be edited at the same time
|
|
174
|
-
*/
|
|
175
|
-
private enableEdit;
|
|
176
|
-
private handleDatasource;
|
|
177
|
-
/**
|
|
178
|
-
* Unbind the store watcher
|
|
179
|
-
* @internal
|
|
180
|
-
*/
|
|
181
|
-
ngOnDestroy(): void;
|
|
182
|
-
private unsubscribeStore;
|
|
183
|
-
/**
|
|
184
|
-
* Trackby function
|
|
185
|
-
* @param record Record
|
|
186
|
-
* @param index Record index
|
|
187
|
-
* @internal
|
|
188
|
-
*/
|
|
189
|
-
getTrackByFunction(): TrackByFunction<RowData>;
|
|
190
|
-
/**
|
|
191
|
-
* Trigger a refresh of the table. This can be useful when
|
|
192
|
-
* the data source doesn't emit a new value but for some reason
|
|
193
|
-
* the records need an update.
|
|
194
|
-
* @internal
|
|
195
|
-
*/
|
|
196
|
-
refresh(): void;
|
|
197
|
-
paginatorChange(event: MatPaginator): void;
|
|
198
|
-
/**
|
|
199
|
-
* On sort, sort the store
|
|
200
|
-
* @param event Sort event
|
|
201
|
-
* @internal
|
|
202
|
-
*/
|
|
203
|
-
onSort(event: {
|
|
204
|
-
active: string;
|
|
205
|
-
direction: string;
|
|
206
|
-
}): void;
|
|
207
|
-
/**
|
|
208
|
-
* When an entity is clicked, emit an event
|
|
209
|
-
* @param record Record
|
|
210
|
-
* @internal
|
|
211
|
-
*/
|
|
212
|
-
onRowClick(record: EntityRecord<object>): void;
|
|
213
|
-
/**
|
|
214
|
-
* When an entity is selected, select it in the store and emit an event. Even if
|
|
215
|
-
* "many" is set to true, this method always select a single, exclusive row. Selecting
|
|
216
|
-
* multiple rows should be achieved by using the checkboxes.
|
|
217
|
-
* @param record Record
|
|
218
|
-
* @internal
|
|
219
|
-
*/
|
|
220
|
-
onRowSelect(record: EntityRecord<object>): void;
|
|
221
|
-
/**
|
|
222
|
-
* Select or unselect all rows at once. On select, emit an event.
|
|
223
|
-
* @param toggle Select or unselect
|
|
224
|
-
* @internal
|
|
225
|
-
*/
|
|
226
|
-
onToggleRows(toggle: boolean): void;
|
|
227
|
-
/**
|
|
228
|
-
* When an entity is toggled, select or unselect it in the store. On select,
|
|
229
|
-
* emit an event.
|
|
230
|
-
* @param toggle Select or unselect
|
|
231
|
-
* @param record Record
|
|
232
|
-
* @internal
|
|
233
|
-
*/
|
|
234
|
-
onToggleRow(toggle: boolean, record: EntityRecord<object>): void;
|
|
235
|
-
/**
|
|
236
|
-
* When an entity is toggled, select or unselect it in the store. On select,
|
|
237
|
-
* emit an event.
|
|
238
|
-
* @param toggle Select or unselect
|
|
239
|
-
* @param record Record
|
|
240
|
-
* @internal
|
|
241
|
-
*/
|
|
242
|
-
onShiftToggleRow(toggle: boolean, record: EntityRecord<object>, event: MouseEvent): void;
|
|
243
|
-
/**
|
|
244
|
-
* Compute the selection state
|
|
245
|
-
* @returns Whether all, some or no rows are selected
|
|
246
|
-
* @internal
|
|
247
|
-
*/
|
|
248
|
-
private computeSelectionState;
|
|
249
|
-
/**
|
|
250
|
-
* Whether a column is sortable
|
|
251
|
-
* @param column Column
|
|
252
|
-
* @returns True if a column is sortable
|
|
253
|
-
* @internal
|
|
254
|
-
*/
|
|
255
|
-
columnIsSortable(column: EntityTableColumn): boolean;
|
|
256
|
-
/**
|
|
257
|
-
* Whether a row is should be selected based on the underlying entity state
|
|
258
|
-
* @param record Record
|
|
259
|
-
* @returns True if a row should be selected
|
|
260
|
-
* @internal
|
|
261
|
-
*/
|
|
262
|
-
rowIsSelected(record: EntityRecord<object>): boolean;
|
|
263
|
-
isImg(value: any): boolean;
|
|
264
|
-
isUrl(value: any): boolean;
|
|
265
|
-
/**
|
|
266
|
-
* Method to access an entity's values
|
|
267
|
-
* @param record Record
|
|
268
|
-
* @param column Column
|
|
269
|
-
* @returns Any value
|
|
270
|
-
* @internal
|
|
271
|
-
*/
|
|
272
|
-
getValue(record: EntityRecord<object>, column: EntityTableColumn): any;
|
|
273
|
-
/**
|
|
274
|
-
* Method to access an entity's validation values
|
|
275
|
-
* @param column Column
|
|
276
|
-
* @param validationType string
|
|
277
|
-
* @returns Any value (false if no validation or not the one concerned)
|
|
278
|
-
* @internal
|
|
279
|
-
*/
|
|
280
|
-
getValidationAttributeValue(column: EntityTableColumn, validationType: string): any;
|
|
281
|
-
isEdition(record: any): boolean;
|
|
282
|
-
/**
|
|
283
|
-
* Return the type of renderer of a column
|
|
284
|
-
* @param column Column
|
|
285
|
-
* @returns Renderer type
|
|
286
|
-
* @internal
|
|
287
|
-
*/
|
|
288
|
-
getColumnRenderer(column: EntityTableColumn): EntityTableColumnRenderer;
|
|
289
|
-
/**
|
|
290
|
-
* Return the table ngClass
|
|
291
|
-
* @returns ngClass
|
|
292
|
-
* @internal
|
|
293
|
-
*/
|
|
294
|
-
getTableClass(): Record<string, boolean>;
|
|
295
|
-
/**
|
|
296
|
-
* Return a header ngClass
|
|
297
|
-
* @returns ngClass
|
|
298
|
-
* @internal
|
|
299
|
-
*/
|
|
300
|
-
getHeaderClass(): Record<string, boolean>;
|
|
301
|
-
/**
|
|
302
|
-
* Return a row ngClass
|
|
303
|
-
* @param record Record
|
|
304
|
-
* @returns ngClass
|
|
305
|
-
* @internal
|
|
306
|
-
*/
|
|
307
|
-
getRowClass(record: EntityRecord<object>): Record<string, boolean>;
|
|
308
|
-
/**
|
|
309
|
-
* Return a row ngClass
|
|
310
|
-
* @param record Record
|
|
311
|
-
* @param column Column
|
|
312
|
-
* @returns ngClass
|
|
313
|
-
* @internal
|
|
314
|
-
*/
|
|
315
|
-
getCellClass(record: EntityRecord<object>, column: EntityTableColumn): Record<string, boolean>;
|
|
316
|
-
/**
|
|
317
|
-
* When a button is clicked
|
|
318
|
-
* @param func Function
|
|
319
|
-
* @param record Record
|
|
320
|
-
* @internal
|
|
321
|
-
*/
|
|
322
|
-
onButtonClick(clickFunc: (entity: object, record?: EntityRecord<object>) => void, record: EntityRecord<object>): void;
|
|
323
|
-
/**
|
|
324
|
-
* Retrieve column name without his "properties" tag (useful for edition workspace properties)
|
|
325
|
-
*/
|
|
326
|
-
getColumnKeyWithoutPropertiesTag(column: string): string;
|
|
327
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntityTableComponent, [null, null, null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, null, null]>;
|
|
328
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EntityTableComponent, "igo-entity-table", never, { "store": { "alias": "store"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "template": { "alias": "template"; "required": false; }; "scrollBehavior": { "alias": "scrollBehavior"; "required": false; }; "sortNullsFirst": { "alias": "sortNullsFirst"; "required": false; }; "withPaginator": { "alias": "withPaginator"; "required": false; }; "paginatorOptions": { "alias": "paginatorOptions"; "required": false; }; }, { "entityClick": "entityClick"; "entitySelectChange": "entitySelectChange"; "entitySortChange": "entitySortChange"; }, never, never, true, never>;
|
|
329
|
-
}
|
|
330
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./entity-table.component";
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated import the EntityTableComponent directly
|
|
5
|
-
*/
|
|
6
|
-
export declare class IgoEntityTableModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IgoEntityTableModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoEntityTableModule, never, [typeof i1.EntityTableComponent], [typeof i1.EntityTableComponent]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IgoEntityTableModule>;
|
|
10
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
-
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
3
|
-
import { LanguageService } from '@igo2/core/language';
|
|
4
|
-
import { MediaService } from '@igo2/core/media';
|
|
5
|
-
import { BehaviorSubject } from 'rxjs';
|
|
6
|
-
import { EntityStore } from '../shared';
|
|
7
|
-
import { EntityTablePaginatorOptions } from './entity-table-paginator.interface';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class EntityTablePaginatorComponent implements OnChanges, OnDestroy {
|
|
10
|
-
private languageService;
|
|
11
|
-
private mediaService;
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
hidePageSize: boolean;
|
|
14
|
-
pageIndex: number;
|
|
15
|
-
pageSize: number;
|
|
16
|
-
pageSizeOptions: number[];
|
|
17
|
-
showFirstLastButtons: boolean;
|
|
18
|
-
private count$$;
|
|
19
|
-
private entitySortChange$$;
|
|
20
|
-
private paginationLabelTranslation$$;
|
|
21
|
-
entitySortChange$: BehaviorSubject<boolean>;
|
|
22
|
-
/**
|
|
23
|
-
* Entity store
|
|
24
|
-
*/
|
|
25
|
-
store: EntityStore<object>;
|
|
26
|
-
/**
|
|
27
|
-
* Paginator options
|
|
28
|
-
*/
|
|
29
|
-
paginatorOptions: EntityTablePaginatorOptions;
|
|
30
|
-
/**
|
|
31
|
-
* Event emitted when the paginator changes the page size or page index.
|
|
32
|
-
*/
|
|
33
|
-
page: EventEmitter<PageEvent>;
|
|
34
|
-
length: number;
|
|
35
|
-
/**
|
|
36
|
-
* Paginator emitted.
|
|
37
|
-
*/
|
|
38
|
-
paginatorChange: EventEmitter<MatPaginator>;
|
|
39
|
-
constructor(languageService: LanguageService, mediaService: MediaService);
|
|
40
|
-
paginator: MatPaginator;
|
|
41
|
-
ngOnChanges(): void;
|
|
42
|
-
initPaginatorOptions(): void;
|
|
43
|
-
translateLabels(): void;
|
|
44
|
-
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
45
|
-
private unsubscribeAll;
|
|
46
|
-
ngOnDestroy(): void;
|
|
47
|
-
emitPaginator(): void;
|
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntityTablePaginatorComponent, never>;
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EntityTablePaginatorComponent, "igo-entity-table-paginator", never, { "entitySortChange$": { "alias": "entitySortChange$"; "required": false; }; "store": { "alias": "store"; "required": false; }; "paginatorOptions": { "alias": "paginatorOptions"; "required": false; }; }, { "page": "page"; "paginatorChange": "paginatorChange"; }, never, never, true, never>;
|
|
50
|
-
}
|