@zeedhi/common 1.118.0 → 1.120.0
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/dist/types/components/index.d.ts +151 -0
- package/dist/types/components/zd-alert/alert.d.ts +94 -0
- package/dist/types/components/zd-alert/interfaces.d.ts +18 -0
- package/dist/types/components/zd-badge/badge.d.ts +28 -0
- package/dist/types/components/zd-badge/interfaces.d.ts +10 -0
- package/dist/types/components/zd-breadcrumbs/breadcrumbs.d.ts +32 -0
- package/dist/types/components/zd-breadcrumbs/interfaces.d.ts +24 -0
- package/dist/types/components/zd-button/button.d.ts +89 -0
- package/dist/types/components/zd-button/interfaces.d.ts +48 -0
- package/dist/types/components/zd-button-group/button-group.d.ts +67 -0
- package/dist/types/components/zd-button-group/interfaces.d.ts +25 -0
- package/dist/types/components/zd-card/card.d.ts +152 -0
- package/dist/types/components/zd-card/interfaces.d.ts +40 -0
- package/dist/types/components/zd-carousel/carousel.d.ts +163 -0
- package/dist/types/components/zd-carousel/interfaces.d.ts +49 -0
- package/dist/types/components/zd-checkbox/checkbox.d.ts +12 -0
- package/dist/types/components/zd-checkbox/interfaces.d.ts +5 -0
- package/dist/types/components/zd-checkbox-multiple/checkbox-multiple.d.ts +39 -0
- package/dist/types/components/zd-checkbox-multiple/interfaces.d.ts +13 -0
- package/dist/types/components/zd-chip/chip.d.ts +60 -0
- package/dist/types/components/zd-chip/interfaces.d.ts +18 -0
- package/dist/types/components/zd-code-viewer/code-viewer.d.ts +86 -0
- package/dist/types/components/zd-code-viewer/interfaces.d.ts +13 -0
- package/dist/types/components/zd-col/col.d.ts +33 -0
- package/dist/types/components/zd-col/interfaces.d.ts +15 -0
- package/dist/types/components/zd-collapse-card/collapse-card.d.ts +56 -0
- package/dist/types/components/zd-collapse-card/interfaces.d.ts +14 -0
- package/dist/types/components/zd-component/child-not-found.d.ts +6 -0
- package/dist/types/components/zd-component/component-render.d.ts +16 -0
- package/dist/types/components/zd-component/component.d.ts +120 -0
- package/dist/types/components/zd-component/interfaces.d.ts +74 -0
- package/dist/types/components/zd-container/container.d.ts +45 -0
- package/dist/types/components/zd-container/interfaces.d.ts +12 -0
- package/dist/types/components/zd-currency/currency.d.ts +12 -0
- package/dist/types/components/zd-currency/interfaces.d.ts +6 -0
- package/dist/types/components/zd-date-input/date-input.d.ts +152 -0
- package/dist/types/components/zd-date-input/interfaces.d.ts +27 -0
- package/dist/types/components/zd-date-range/date-range.d.ts +158 -0
- package/dist/types/components/zd-date-range/interfaces.d.ts +18 -0
- package/dist/types/components/zd-dialog/dialog.d.ts +76 -0
- package/dist/types/components/zd-dialog/interfaces.d.ts +13 -0
- package/dist/types/components/zd-divider/divider.d.ts +20 -0
- package/dist/types/components/zd-divider/interfaces.d.ts +8 -0
- package/dist/types/components/zd-dropdown/dropdown.d.ts +81 -0
- package/dist/types/components/zd-dropdown/interfaces.d.ts +23 -0
- package/dist/types/components/zd-footer/footer.d.ts +80 -0
- package/dist/types/components/zd-footer/interfaces.d.ts +26 -0
- package/dist/types/components/zd-form/form.d.ts +174 -0
- package/dist/types/components/zd-form/interfaces.d.ts +36 -0
- package/dist/types/components/zd-frame/frame.d.ts +81 -0
- package/dist/types/components/zd-frame/interfaces.d.ts +23 -0
- package/dist/types/components/zd-frame-page/frame-page.d.ts +14 -0
- package/dist/types/components/zd-frame-page/interfaces.d.ts +4 -0
- package/dist/types/components/zd-grid/data-navigator.d.ts +12 -0
- package/dist/types/components/zd-grid/data-selector.d.ts +25 -0
- package/dist/types/components/zd-grid/grid-column.d.ts +47 -0
- package/dist/types/components/zd-grid/grid-events.d.ts +26 -0
- package/dist/types/components/zd-grid/grid.d.ts +85 -0
- package/dist/types/components/zd-grid/index.d.ts +11 -0
- package/dist/types/components/zd-grid/interfaces.d.ts +148 -0
- package/dist/types/components/zd-grid/iterable-table.d.ts +28 -0
- package/dist/types/components/zd-grid/keymap-merger.d.ts +26 -0
- package/dist/types/components/zd-grid/keymap-navigation.d.ts +6 -0
- package/dist/types/components/zd-grid/table-action-builder.d.ts +19 -0
- package/dist/types/components/zd-grid/view-navigator.d.ts +10 -0
- package/dist/types/components/zd-grid-editable/data-editor-with-add.d.ts +35 -0
- package/dist/types/components/zd-grid-editable/data-editor.d.ts +64 -0
- package/dist/types/components/zd-grid-editable/errors/index.d.ts +2 -0
- package/dist/types/components/zd-grid-editable/errors/not-editing.d.ts +6 -0
- package/dist/types/components/zd-grid-editable/errors/row-not-found.d.ts +6 -0
- package/dist/types/components/zd-grid-editable/grid-column-editable.d.ts +9 -0
- package/dist/types/components/zd-grid-editable/grid-editable-controller.d.ts +8 -0
- package/dist/types/components/zd-grid-editable/grid-editable-events.d.ts +32 -0
- package/dist/types/components/zd-grid-editable/grid-editable.d.ts +124 -0
- package/dist/types/components/zd-grid-editable/index.d.ts +8 -0
- package/dist/types/components/zd-grid-editable/interfaces.d.ts +66 -0
- package/dist/types/components/zd-grid-editable/keymap-editing.d.ts +7 -0
- package/dist/types/components/zd-header/header.d.ts +94 -0
- package/dist/types/components/zd-header/interfaces.d.ts +29 -0
- package/dist/types/components/zd-icon/icon.d.ts +55 -0
- package/dist/types/components/zd-icon/interfaces.d.ts +13 -0
- package/dist/types/components/zd-image/image.d.ts +73 -0
- package/dist/types/components/zd-image/interfaces.d.ts +17 -0
- package/dist/types/components/zd-increment/increment.d.ts +56 -0
- package/dist/types/components/zd-increment/interfaces.d.ts +9 -0
- package/dist/types/components/zd-input/input-factory.d.ts +6 -0
- package/dist/types/components/zd-input/input.d.ts +223 -0
- package/dist/types/components/zd-input/interfaces.d.ts +38 -0
- package/dist/types/components/zd-iterable/column-not-found.d.ts +6 -0
- package/dist/types/components/zd-iterable/column.d.ts +78 -0
- package/dist/types/components/zd-iterable/conditions-manager.d.ts +49 -0
- package/dist/types/components/zd-iterable/interfaces.d.ts +103 -0
- package/dist/types/components/zd-iterable/iterable-columns-button-controller.d.ts +9 -0
- package/dist/types/components/zd-iterable/iterable-columns-button.d.ts +35 -0
- package/dist/types/components/zd-iterable/iterable-controller.d.ts +8 -0
- package/dist/types/components/zd-iterable/iterable-page-component.d.ts +27 -0
- package/dist/types/components/zd-iterable/iterable-page-info.d.ts +7 -0
- package/dist/types/components/zd-iterable/iterable-page-size.d.ts +62 -0
- package/dist/types/components/zd-iterable/iterable-pagination.d.ts +28 -0
- package/dist/types/components/zd-iterable/iterable.d.ts +77 -0
- package/dist/types/components/zd-iterable/search.d.ts +31 -0
- package/dist/types/components/zd-iterable-component-render/interfaces.d.ts +34 -0
- package/dist/types/components/zd-iterable-component-render/iterable-component-render.d.ts +84 -0
- package/dist/types/components/zd-layout/interfaces.d.ts +7 -0
- package/dist/types/components/zd-layout/layout.d.ts +9 -0
- package/dist/types/components/zd-list/interfaces.d.ts +44 -0
- package/dist/types/components/zd-list/item-not-found.d.ts +6 -0
- package/dist/types/components/zd-list/list-group.d.ts +30 -0
- package/dist/types/components/zd-list/list-item.d.ts +46 -0
- package/dist/types/components/zd-list/list.d.ts +81 -0
- package/dist/types/components/zd-loading/interfaces.d.ts +7 -0
- package/dist/types/components/zd-loading/loading.d.ts +21 -0
- package/dist/types/components/zd-login/interfaces.d.ts +25 -0
- package/dist/types/components/zd-login/login-button.d.ts +50 -0
- package/dist/types/components/zd-login/login.d.ts +54 -0
- package/dist/types/components/zd-main/interfaces.d.ts +5 -0
- package/dist/types/components/zd-main/main.d.ts +7 -0
- package/dist/types/components/zd-master-detail/detail-not-found.d.ts +7 -0
- package/dist/types/components/zd-master-detail/interfaces.d.ts +10 -0
- package/dist/types/components/zd-master-detail/master-detail.d.ts +18 -0
- package/dist/types/components/zd-master-detail/master-not-found.d.ts +7 -0
- package/dist/types/components/zd-menu/interfaces.d.ts +68 -0
- package/dist/types/components/zd-menu/menu-button.d.ts +29 -0
- package/dist/types/components/zd-menu/menu-group.d.ts +61 -0
- package/dist/types/components/zd-menu/menu-link.d.ts +50 -0
- package/dist/types/components/zd-menu/menu-separator.d.ts +7 -0
- package/dist/types/components/zd-menu/menu.d.ts +199 -0
- package/dist/types/components/zd-modal/interfaces.d.ts +35 -0
- package/dist/types/components/zd-modal/modal-close-button.d.ts +28 -0
- package/dist/types/components/zd-modal/modal.d.ts +53 -0
- package/dist/types/components/zd-month/interfaces.d.ts +6 -0
- package/dist/types/components/zd-month/month.d.ts +33 -0
- package/dist/types/components/zd-number-input/interfaces.d.ts +8 -0
- package/dist/types/components/zd-number-input/number-input.d.ts +43 -0
- package/dist/types/components/zd-password/interfaces.d.ts +6 -0
- package/dist/types/components/zd-password/password.d.ts +17 -0
- package/dist/types/components/zd-progress/interfaces.d.ts +10 -0
- package/dist/types/components/zd-progress/progress.d.ts +41 -0
- package/dist/types/components/zd-radio/interfaces.d.ts +11 -0
- package/dist/types/components/zd-radio/radio.d.ts +35 -0
- package/dist/types/components/zd-row/interfaces.d.ts +13 -0
- package/dist/types/components/zd-row/row.d.ts +39 -0
- package/dist/types/components/zd-select/interfaces.d.ts +24 -0
- package/dist/types/components/zd-select/select.d.ts +238 -0
- package/dist/types/components/zd-select-multiple/interfaces.d.ts +18 -0
- package/dist/types/components/zd-select-multiple/select-multiple.d.ts +113 -0
- package/dist/types/components/zd-svg-map/interfaces.d.ts +26 -0
- package/dist/types/components/zd-svg-map/svg-map.d.ts +35 -0
- package/dist/types/components/zd-switch/interfaces.d.ts +7 -0
- package/dist/types/components/zd-switch/switch.d.ts +16 -0
- package/dist/types/components/zd-table/interfaces.d.ts +25 -0
- package/dist/types/components/zd-table/table.d.ts +42 -0
- package/dist/types/components/zd-tabs/interfaces.d.ts +40 -0
- package/dist/types/components/zd-tabs/tab-not-found.d.ts +11 -0
- package/dist/types/components/zd-tabs/tab.d.ts +57 -0
- package/dist/types/components/zd-tabs/tabs.d.ts +86 -0
- package/dist/types/components/zd-tag/interfaces.d.ts +7 -0
- package/dist/types/components/zd-tag/tag.d.ts +13 -0
- package/dist/types/components/zd-text/interfaces.d.ts +9 -0
- package/dist/types/components/zd-text/text.d.ts +8 -0
- package/dist/types/components/zd-text-input/interfaces.d.ts +23 -0
- package/dist/types/components/zd-text-input/text-input.d.ts +91 -0
- package/dist/types/components/zd-textarea/interfaces.d.ts +21 -0
- package/dist/types/components/zd-textarea/textarea.d.ts +71 -0
- package/dist/types/components/zd-time/interfaces.d.ts +22 -0
- package/dist/types/components/zd-time/time-format-selector.d.ts +8 -0
- package/dist/types/components/zd-time/time.d.ts +149 -0
- package/dist/types/components/zd-toggleable/interfaces.d.ts +6 -0
- package/dist/types/components/zd-toggleable/toggleable.d.ts +21 -0
- package/dist/types/components/zd-tooltip/interfaces.d.ts +18 -0
- package/dist/types/components/zd-tooltip/tooltip.d.ts +57 -0
- package/dist/types/components/zd-tree/interfaces.d.ts +107 -0
- package/dist/types/components/zd-tree/tree.d.ts +161 -0
- package/dist/types/components/zd-tree-grid/index.d.ts +6 -0
- package/dist/types/components/zd-tree-grid/interfaces.d.ts +35 -0
- package/dist/types/components/zd-tree-grid/iterable-tree.d.ts +10 -0
- package/dist/types/components/zd-tree-grid/keymap-tree.d.ts +7 -0
- package/dist/types/components/zd-tree-grid/tree-data-navigator.d.ts +10 -0
- package/dist/types/components/zd-tree-grid/tree-data-selector.d.ts +18 -0
- package/dist/types/components/zd-tree-grid/tree-grid.d.ts +119 -0
- package/dist/types/error/delete-rows.d.ts +7 -0
- package/dist/types/error/index.d.ts +3 -0
- package/dist/types/error/non-initialized.d.ts +7 -0
- package/dist/types/error/zeedhi-error.d.ts +6 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/services/index.d.ts +4 -0
- package/dist/types/services/zd-alert/alert-queue.d.ts +13 -0
- package/dist/types/services/zd-alert/alert-replace.d.ts +18 -0
- package/dist/types/services/zd-alert/alert-service.d.ts +45 -0
- package/dist/types/services/zd-alert/alert-stack.d.ts +9 -0
- package/dist/types/services/zd-alert/index.d.ts +5 -0
- package/dist/types/services/zd-alert/interfaces.d.ts +6 -0
- package/dist/types/services/zd-dialog/dialog-service.d.ts +24 -0
- package/dist/types/services/zd-loading/loading-service.d.ts +17 -0
- package/dist/types/services/zd-modal/modal-service.d.ts +39 -0
- package/dist/types/utils/data-value-out/data-value-out.d.ts +5 -0
- package/dist/types/utils/data-value-out/index.d.ts +2 -0
- package/dist/types/utils/data-value-out/interfaces.d.ts +8 -0
- package/dist/types/utils/datasource-searcher/datasource-searcher.d.ts +6 -0
- package/dist/types/utils/datasource-searcher/index.d.ts +2 -0
- package/dist/types/utils/datasource-searcher/interfaces.d.ts +5 -0
- package/dist/types/utils/icons/icons.d.ts +24 -0
- package/dist/types/utils/index.d.ts +7 -0
- package/dist/types/utils/omit/omit.d.ts +11 -0
- package/dist/types/utils/theme/theme.d.ts +34 -0
- package/dist/types/utils/tree-data-structure/index.d.ts +2 -0
- package/dist/types/utils/tree-data-structure/interfaces.d.ts +30 -0
- package/dist/types/utils/tree-data-structure/tree-data-structure.d.ts +155 -0
- package/dist/types/utils/unique-by/unique-by.d.ts +3 -0
- package/dist/zd-common.esm.js +87 -24
- package/dist/zd-common.js +13133 -0
- package/dist/zd-common.min.js +13133 -0
- package/dist/zd-common.umd.js +87 -24
- package/package.json +2 -2
- package/types/components/zd-apex-chart/apex-chart.d.ts +1 -1
- package/types/components/zd-apex-chart/interfaces.d.ts +1 -1
- package/types/components/zd-card/card.d.ts +1 -1
- package/types/components/zd-card/interfaces.d.ts +1 -1
- package/types/components/zd-carousel/carousel.d.ts +1 -1
- package/types/components/zd-carousel/interfaces.d.ts +1 -1
- package/types/components/zd-code-editor/code-editor.d.ts +1 -1
- package/types/components/zd-code-editor/interfaces.d.ts +1 -1
- package/types/components/zd-col/col.d.ts +1 -1
- package/types/components/zd-col/interfaces.d.ts +1 -1
- package/types/components/zd-container/container.d.ts +1 -1
- package/types/components/zd-container/interfaces.d.ts +1 -1
- package/types/components/zd-dashboard/dashboard.d.ts +1 -1
- package/types/components/zd-dashboard/interfaces.d.ts +1 -1
- package/types/components/zd-date/date-range.d.ts +24 -4
- package/types/components/zd-form/form.d.ts +1 -1
- package/types/components/zd-form/interfaces.d.ts +1 -1
- package/types/components/zd-frame/frame.d.ts +1 -1
- package/types/components/zd-frame/interfaces.d.ts +1 -1
- package/types/components/zd-grid/grid.d.ts +1 -1
- package/types/components/zd-grid/interfaces.d.ts +1 -1
- package/types/components/zd-image/image.d.ts +1 -1
- package/types/components/zd-image/interfaces.d.ts +1 -1
- package/types/components/zd-iterable-component-render/interfaces.d.ts +1 -1
- package/types/components/zd-iterable-component-render/iterable-component-render.d.ts +1 -1
- package/types/components/zd-list/interfaces.d.ts +1 -1
- package/types/components/zd-list/list.d.ts +1 -1
- package/types/components/zd-master-detail/interfaces.d.ts +1 -1
- package/types/components/zd-master-detail/master-detail.d.ts +1 -1
- package/types/components/zd-row/interfaces.d.ts +1 -1
- package/types/components/zd-row/row.d.ts +1 -1
- package/types/components/zd-selectable-list/interfaces.d.ts +1 -1
- package/types/components/zd-selectable-list/selectable-list.d.ts +1 -1
- package/types/components/zd-table/interfaces.d.ts +1 -1
- package/types/components/zd-table/table.d.ts +1 -1
- package/types/components/zd-tabs/interfaces.d.ts +1 -1
- package/types/components/zd-tabs/tabs.d.ts +1 -1
- package/types/components/zd-textarea/interfaces.d.ts +1 -1
- package/types/components/zd-textarea/textarea.d.ts +1 -1
- package/types/components/zd-tooltip/interfaces.d.ts +1 -0
- package/types/components/zd-tooltip/tooltip.d.ts +4 -0
- package/types/components/zd-tree/interfaces.d.ts +1 -1
- package/types/components/zd-tree/tree.d.ts +1 -1
- package/types/services/zd-json-cache/json-cache-service.d.ts +0 -12
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { TextInput } from '../zd-text-input/text-input';
|
|
2
|
+
import { ITime } from './interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Base class for Time Picker component.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Time extends TextInput implements ITime {
|
|
7
|
+
/**
|
|
8
|
+
* Restricts which hours can be selected.
|
|
9
|
+
*/
|
|
10
|
+
allowedHours?: any[];
|
|
11
|
+
/**
|
|
12
|
+
* Restricts which minutes can be selected.
|
|
13
|
+
*/
|
|
14
|
+
allowedMinutes?: any[];
|
|
15
|
+
/**
|
|
16
|
+
* Restricts which seconds can be selected.
|
|
17
|
+
*/
|
|
18
|
+
allowedSeconds?: any[];
|
|
19
|
+
/**
|
|
20
|
+
* Input auto complete.
|
|
21
|
+
*/
|
|
22
|
+
autofill: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Defines the format of a time displayed in picker. Available options are ampm and 24hr.
|
|
25
|
+
*/
|
|
26
|
+
timeFormat: string;
|
|
27
|
+
/**
|
|
28
|
+
* Forces 100% width.
|
|
29
|
+
*/
|
|
30
|
+
fullWidth: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Maximum allowed time.
|
|
33
|
+
*/
|
|
34
|
+
maxTime: string;
|
|
35
|
+
/**
|
|
36
|
+
* Minimum allowed time.
|
|
37
|
+
*/
|
|
38
|
+
minTime: string;
|
|
39
|
+
/**
|
|
40
|
+
* Allows changing hour/minute with mouse scroll.
|
|
41
|
+
*/
|
|
42
|
+
scrollable: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Shows the time picker.
|
|
45
|
+
*/
|
|
46
|
+
showTimePicker: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Toggles the use of seconds in picker.
|
|
49
|
+
*/
|
|
50
|
+
useSeconds: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Width of the picker.
|
|
53
|
+
*/
|
|
54
|
+
width: number | string;
|
|
55
|
+
protected formatterFn: (...args: any) => any;
|
|
56
|
+
protected parserFn: (...args: any) => any;
|
|
57
|
+
private isoFormatValue;
|
|
58
|
+
private valueFormatInternal;
|
|
59
|
+
private displayFormatInternal;
|
|
60
|
+
/**
|
|
61
|
+
* Defines the time input format.
|
|
62
|
+
*/
|
|
63
|
+
inputFormat?: string;
|
|
64
|
+
/**
|
|
65
|
+
* True when displayValue is valid
|
|
66
|
+
*/
|
|
67
|
+
protected isDisplayValid: boolean;
|
|
68
|
+
protected initialMask?: string;
|
|
69
|
+
protected isSimpleDisplay: boolean;
|
|
70
|
+
protected timeError: boolean;
|
|
71
|
+
inputMode?: string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Create a new Time Picker.
|
|
74
|
+
* @param props Time properties
|
|
75
|
+
*/
|
|
76
|
+
constructor(props: ITime);
|
|
77
|
+
private getFormat;
|
|
78
|
+
get displayFormat(): string;
|
|
79
|
+
set displayFormat(value: string);
|
|
80
|
+
get valueFormat(): string;
|
|
81
|
+
set valueFormat(value: string);
|
|
82
|
+
private get isoFormat();
|
|
83
|
+
private getInitialMask;
|
|
84
|
+
formatter(value: string): string;
|
|
85
|
+
parser(value: string): any;
|
|
86
|
+
/**
|
|
87
|
+
* Triggered when date is clicked.
|
|
88
|
+
* @param event
|
|
89
|
+
* @param element
|
|
90
|
+
*/
|
|
91
|
+
selectTime(time: string, event?: Event, element?: any): void;
|
|
92
|
+
get displayValue(): string;
|
|
93
|
+
set displayValue(newValue: string);
|
|
94
|
+
/**
|
|
95
|
+
* Assign the updated mask to mask property
|
|
96
|
+
*/
|
|
97
|
+
updateMask(): any;
|
|
98
|
+
/**
|
|
99
|
+
* Gets the updated masked, based on displayFormat if the initial mask is undefined
|
|
100
|
+
*/
|
|
101
|
+
protected getUpdatedMask(): string;
|
|
102
|
+
protected maskFormat(format: string): string;
|
|
103
|
+
setTimeValue(displayValue: string): void;
|
|
104
|
+
isValidTime(value: string, format: string | undefined, strict?: boolean): boolean;
|
|
105
|
+
get isoValue(): string;
|
|
106
|
+
set isoValue(newValue: string);
|
|
107
|
+
formatISOTimeValue(value: string): string;
|
|
108
|
+
parseISOTimeValue(value: string): any;
|
|
109
|
+
/**
|
|
110
|
+
* Checks if a time format is simple.
|
|
111
|
+
* Simple time formats are the ones that consists only of 'HH', 'mm', 'mm' or 'YYYY', and mask delimiters
|
|
112
|
+
* @param format The format to be checked
|
|
113
|
+
* @returns true if it is simple, false otherwise
|
|
114
|
+
*/
|
|
115
|
+
protected isSimpleFormat(format: string): boolean;
|
|
116
|
+
timeValidation(): boolean | string;
|
|
117
|
+
timeAllowedValidation(): boolean | string;
|
|
118
|
+
click(event?: Event, element?: any): void;
|
|
119
|
+
blur(event: Event, element: any): void;
|
|
120
|
+
focus(event: Event, element: any): void;
|
|
121
|
+
/**
|
|
122
|
+
* Add date mask
|
|
123
|
+
*/
|
|
124
|
+
protected addTimeMask(): void;
|
|
125
|
+
/**
|
|
126
|
+
* Removes the component mask if value is valid
|
|
127
|
+
*/
|
|
128
|
+
protected removeTimeMask(): void;
|
|
129
|
+
/**
|
|
130
|
+
* Checks if value is valid according to valueFormat and if displayValue
|
|
131
|
+
* is true
|
|
132
|
+
*/
|
|
133
|
+
isFullyValid(value?: string): boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Last invalid value passed to formatter
|
|
136
|
+
*/
|
|
137
|
+
isTimeAllowed(value?: string): boolean;
|
|
138
|
+
isSameOrAfterMin(value: string): boolean;
|
|
139
|
+
isSameOrBeforeMax(value: string): boolean;
|
|
140
|
+
isHourAllowed(value: string): boolean;
|
|
141
|
+
isMinuteAllowed(value: string): boolean;
|
|
142
|
+
isSecondAllowed(value: string): boolean;
|
|
143
|
+
clear(): void;
|
|
144
|
+
/**
|
|
145
|
+
* Converts a date format to a mask
|
|
146
|
+
*/
|
|
147
|
+
private toMask;
|
|
148
|
+
getMask(): string;
|
|
149
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Input } from '../zd-input/input';
|
|
2
|
+
import { IToggleable, StateType } from './interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Base class for Toggleable inputs.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Toggleable extends Input implements IToggleable {
|
|
7
|
+
/**
|
|
8
|
+
* Value for falsy state
|
|
9
|
+
*/
|
|
10
|
+
falseValue: StateType;
|
|
11
|
+
/**
|
|
12
|
+
* Value for truthy state
|
|
13
|
+
*/
|
|
14
|
+
trueValue: StateType;
|
|
15
|
+
/**
|
|
16
|
+
* Create a new Toggleable input.
|
|
17
|
+
* @param props Toggleable properties
|
|
18
|
+
*/
|
|
19
|
+
constructor(props: IToggleable);
|
|
20
|
+
toggleValue(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IEventParam } from '@zeedhi/core';
|
|
2
|
+
import { IComponentRender } from '../zd-component/interfaces';
|
|
3
|
+
import { Tooltip } from './tooltip';
|
|
4
|
+
export type ITooltipEvent = IEventParam<Tooltip>;
|
|
5
|
+
export interface ITooltip extends IComponentRender {
|
|
6
|
+
bottom?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
label?: string;
|
|
9
|
+
left?: boolean;
|
|
10
|
+
maxWidth?: number | string;
|
|
11
|
+
minWidth?: number | string;
|
|
12
|
+
nudge?: number | string;
|
|
13
|
+
openOnClick?: boolean;
|
|
14
|
+
openOnFocus?: boolean;
|
|
15
|
+
openOnHover?: boolean;
|
|
16
|
+
right?: boolean;
|
|
17
|
+
top?: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ComponentRender } from '../zd-component/component-render';
|
|
2
|
+
import { ITooltip } from './interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Base class for Tooltip component.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Tooltip extends ComponentRender implements ITooltip {
|
|
7
|
+
/**
|
|
8
|
+
* Aligns the component towards the bottom
|
|
9
|
+
*/
|
|
10
|
+
bottom: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Disables the tooltip
|
|
13
|
+
*/
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
label: string;
|
|
16
|
+
/**
|
|
17
|
+
* Aligns the component towards the left
|
|
18
|
+
*/
|
|
19
|
+
left: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Sets the maximum width for the content
|
|
22
|
+
*/
|
|
23
|
+
maxWidth?: number | string;
|
|
24
|
+
/**
|
|
25
|
+
* Sets the minimum width for the content
|
|
26
|
+
*/
|
|
27
|
+
minWidth?: number | string;
|
|
28
|
+
/**
|
|
29
|
+
* Nudge the content
|
|
30
|
+
*/
|
|
31
|
+
nudge: number | string;
|
|
32
|
+
/**
|
|
33
|
+
* Open the tooltip on activator click
|
|
34
|
+
*/
|
|
35
|
+
openOnClick: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Open the tooltip on activator focus
|
|
38
|
+
*/
|
|
39
|
+
openOnFocus: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Open the tooltip on activator hover
|
|
42
|
+
*/
|
|
43
|
+
openOnHover: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Nudge the content to the top
|
|
46
|
+
*/
|
|
47
|
+
right: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Nudge the content to the top
|
|
50
|
+
*/
|
|
51
|
+
top: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Create a new Tooltip
|
|
54
|
+
* @param props Tooltip definition
|
|
55
|
+
*/
|
|
56
|
+
constructor(props: ITooltip);
|
|
57
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { IDatasource, IDictionary, IEventParam } from '@zeedhi/core';
|
|
2
|
+
import { ITreeComponent } from '../../utils';
|
|
3
|
+
import { EventDef, IComponentEvents, IComponentRender, IComponentRenderInstance } from '../zd-component/interfaces';
|
|
4
|
+
import { Tree } from './tree';
|
|
5
|
+
export interface ITreeNodeModel<T> {
|
|
6
|
+
title: string;
|
|
7
|
+
isLeaf?: boolean;
|
|
8
|
+
children?: ITreeNodeModel<T>[];
|
|
9
|
+
isExpanded?: boolean;
|
|
10
|
+
isSelected?: boolean;
|
|
11
|
+
isDraggable?: boolean;
|
|
12
|
+
isSelectable?: boolean;
|
|
13
|
+
data?: T;
|
|
14
|
+
}
|
|
15
|
+
export interface ITreeNode<T> extends ITreeNodeModel<T> {
|
|
16
|
+
isFirstChild?: boolean;
|
|
17
|
+
isLastChild?: boolean;
|
|
18
|
+
isVisible?: boolean;
|
|
19
|
+
level?: number;
|
|
20
|
+
ind?: number;
|
|
21
|
+
path?: number[];
|
|
22
|
+
pathStr?: string;
|
|
23
|
+
children?: ITreeNode<T>[];
|
|
24
|
+
}
|
|
25
|
+
export interface ICursorPosition<T> {
|
|
26
|
+
node: ITreeNode<T>;
|
|
27
|
+
placement: 'before' | 'inside' | 'after';
|
|
28
|
+
}
|
|
29
|
+
export interface ITreeSelectEvent extends IEventParam<Tree> {
|
|
30
|
+
nodes: ITreeNode<IDictionary>[];
|
|
31
|
+
}
|
|
32
|
+
export interface ITreeDropEvent extends IEventParam<Tree> {
|
|
33
|
+
nodes: ITreeNode<IDictionary>[];
|
|
34
|
+
position: ICursorPosition<IDictionary>;
|
|
35
|
+
}
|
|
36
|
+
export interface ITreeClickEvent extends IEventParam<Tree> {
|
|
37
|
+
node: ITreeNode<IDictionary>;
|
|
38
|
+
}
|
|
39
|
+
export interface ITreeConditionComponent extends IComponentRender {
|
|
40
|
+
conditions?: IDictionary;
|
|
41
|
+
}
|
|
42
|
+
export interface ITreeEvents extends IComponentEvents<any> {
|
|
43
|
+
onNodeDrop?: EventDef<ITreeDropEvent>;
|
|
44
|
+
onNodeSelect?: EventDef<ITreeSelectEvent>;
|
|
45
|
+
onNodeClick?: EventDef<ITreeClickEvent>;
|
|
46
|
+
onNodeDblClick?: EventDef<ITreeClickEvent>;
|
|
47
|
+
onNodeCheck?: EventDef<ITreeSelectEvent>;
|
|
48
|
+
}
|
|
49
|
+
export interface ITreeProps extends IComponentRender {
|
|
50
|
+
nodes?: ITreeNodeModel<IDictionary>[];
|
|
51
|
+
itemIconName?: string;
|
|
52
|
+
groupIconName?: string;
|
|
53
|
+
openedIconName?: string;
|
|
54
|
+
closedIconName?: string;
|
|
55
|
+
allowMultiSelect?: boolean;
|
|
56
|
+
allowDragDrop?: boolean;
|
|
57
|
+
afterTitleSlot?: ITreeConditionComponent;
|
|
58
|
+
toolbarSlot?: IComponentRender[];
|
|
59
|
+
titleSlot?: ITreeConditionComponent[];
|
|
60
|
+
events?: ITreeEvents;
|
|
61
|
+
height?: number | string;
|
|
62
|
+
maxHeight?: number | string;
|
|
63
|
+
minHeight?: number | string;
|
|
64
|
+
fillHeight?: boolean;
|
|
65
|
+
width?: number | string;
|
|
66
|
+
maxWidth?: number | string;
|
|
67
|
+
minWidth?: number | string;
|
|
68
|
+
datasource?: IDatasource;
|
|
69
|
+
parentField?: string;
|
|
70
|
+
titleField?: string;
|
|
71
|
+
dataField?: string;
|
|
72
|
+
checkedField?: string;
|
|
73
|
+
openLevelOnLoad?: number | boolean;
|
|
74
|
+
checkbox?: boolean;
|
|
75
|
+
disableCheckbox?: (args: {
|
|
76
|
+
node: ITreeNode<IDictionary>;
|
|
77
|
+
component: Tree;
|
|
78
|
+
}) => boolean;
|
|
79
|
+
}
|
|
80
|
+
export interface ITree extends IComponentRenderInstance, ITreeComponent {
|
|
81
|
+
nodes: ITreeNodeModel<IDictionary>[];
|
|
82
|
+
itemIconName: string;
|
|
83
|
+
groupIconName: string;
|
|
84
|
+
openedIconName: string;
|
|
85
|
+
closedIconName: string;
|
|
86
|
+
allowMultiSelect: boolean;
|
|
87
|
+
allowDragDrop: boolean;
|
|
88
|
+
afterTitleSlot?: ITreeConditionComponent;
|
|
89
|
+
toolbarSlot: IComponentRender[];
|
|
90
|
+
titleSlot: ITreeConditionComponent[];
|
|
91
|
+
events: ITreeEvents;
|
|
92
|
+
height: number | string;
|
|
93
|
+
maxHeight: number | string;
|
|
94
|
+
minHeight: number | string;
|
|
95
|
+
fillHeight: boolean;
|
|
96
|
+
width: number | string;
|
|
97
|
+
maxWidth: number | string;
|
|
98
|
+
minWidth: number | string;
|
|
99
|
+
titleField: string;
|
|
100
|
+
dataField: string;
|
|
101
|
+
checkedField: string;
|
|
102
|
+
checkbox: boolean;
|
|
103
|
+
disableCheckbox?: (args: {
|
|
104
|
+
node: ITreeNode<IDictionary>;
|
|
105
|
+
component: Tree;
|
|
106
|
+
}) => boolean;
|
|
107
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { Datasource, Event, IDictionary, IEvents } from '@zeedhi/core';
|
|
2
|
+
import { ComponentRender } from '../zd-component/component-render';
|
|
3
|
+
import { IComponent, IComponentRender, IComponentRenderInstance } from '../zd-component/interfaces';
|
|
4
|
+
import { ICursorPosition, ITree, ITreeConditionComponent, ITreeNode, ITreeNodeModel, ITreeProps } from './interfaces';
|
|
5
|
+
export declare class Tree extends ComponentRender implements ITree {
|
|
6
|
+
/** Tree nodes */
|
|
7
|
+
nodesValue: ITreeNodeModel<IDictionary>[];
|
|
8
|
+
/** Tree Item icon name */
|
|
9
|
+
itemIconName: string;
|
|
10
|
+
/** Tree Group icon name */
|
|
11
|
+
groupIconName: string;
|
|
12
|
+
/** Tree opened group icon name */
|
|
13
|
+
openedIconName: string;
|
|
14
|
+
/** Tree closed group icon name */
|
|
15
|
+
closedIconName: string;
|
|
16
|
+
/** Allow selecting multiple nodes */
|
|
17
|
+
allowMultiSelect: boolean;
|
|
18
|
+
/** Allow dragging nodes */
|
|
19
|
+
allowDragDrop: boolean;
|
|
20
|
+
/** Render a component in front of the node title */
|
|
21
|
+
afterTitleSlot?: ITreeConditionComponent;
|
|
22
|
+
/**
|
|
23
|
+
* Components that will be rendered on toolbar slot
|
|
24
|
+
*/
|
|
25
|
+
toolbarSlot: IComponentRender[];
|
|
26
|
+
/**
|
|
27
|
+
* Defines the component height. Possible values for this property can be
|
|
28
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
29
|
+
*/
|
|
30
|
+
height: string | number;
|
|
31
|
+
/**
|
|
32
|
+
* Defines the component min height. Possible values for this property can be
|
|
33
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
34
|
+
*/
|
|
35
|
+
minHeight: string | number;
|
|
36
|
+
/**
|
|
37
|
+
* Defines the component max height. Possible values for this property can be
|
|
38
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
39
|
+
*/
|
|
40
|
+
maxHeight: string | number;
|
|
41
|
+
/**
|
|
42
|
+
* Set component height to fill all space available
|
|
43
|
+
*/
|
|
44
|
+
fillHeight: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Defines the component width. Possible values for this property can be
|
|
47
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
48
|
+
*/
|
|
49
|
+
width: string | number;
|
|
50
|
+
/**
|
|
51
|
+
* Defines the component min width. Possible values for this property can be
|
|
52
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
53
|
+
*/
|
|
54
|
+
minWidth: string | number;
|
|
55
|
+
/**
|
|
56
|
+
* Defines the component max height. Possible values for this property can be
|
|
57
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
58
|
+
*/
|
|
59
|
+
maxWidth: string | number;
|
|
60
|
+
/**
|
|
61
|
+
* Components that will be rendered on title slot
|
|
62
|
+
*/
|
|
63
|
+
titleSlot: ITreeConditionComponent[];
|
|
64
|
+
/** Datasource object */
|
|
65
|
+
datasource: Datasource;
|
|
66
|
+
/** Datasource parent field */
|
|
67
|
+
parentField: string;
|
|
68
|
+
/** Datasource title field */
|
|
69
|
+
titleField: string;
|
|
70
|
+
/** Datasource data field */
|
|
71
|
+
dataField: string;
|
|
72
|
+
/** Datasource checked field */
|
|
73
|
+
checkedField: string;
|
|
74
|
+
/**
|
|
75
|
+
* Defines if the tree will be opened or not (true/false) or if it should open only until a specific level
|
|
76
|
+
*/
|
|
77
|
+
openLevelOnLoad: number | boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Allow row check
|
|
80
|
+
*/
|
|
81
|
+
checkbox: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Function to check if node check should be disabled
|
|
84
|
+
*/
|
|
85
|
+
disableCheckbox?: (args: {
|
|
86
|
+
node: ITreeNode<IDictionary>;
|
|
87
|
+
component: Tree;
|
|
88
|
+
}) => boolean;
|
|
89
|
+
/** SlVueTree component */
|
|
90
|
+
private tree;
|
|
91
|
+
/** SlVueTree component */
|
|
92
|
+
private treeDataStructure?;
|
|
93
|
+
/**
|
|
94
|
+
* Defines if should wait and not execute GET method when Datasource is created
|
|
95
|
+
*/
|
|
96
|
+
private lazyLoad;
|
|
97
|
+
/**
|
|
98
|
+
* Dictionary of nodePath ponting to Dictionary of path pointing to the condition (applied) return value
|
|
99
|
+
*/
|
|
100
|
+
private appliedConditions;
|
|
101
|
+
private factoredConditions;
|
|
102
|
+
/**
|
|
103
|
+
* Creates a new instance of LabelsTree
|
|
104
|
+
* @param props Image Link props
|
|
105
|
+
*/
|
|
106
|
+
constructor(props: ITreeProps);
|
|
107
|
+
/**
|
|
108
|
+
* Initialize all the properties of the declared nodes (reactivity)
|
|
109
|
+
*/
|
|
110
|
+
initNodes(nodes: ITreeNodeModel<IDictionary>[], override?: IDictionary): ITreeNodeModel<IDictionary>[];
|
|
111
|
+
/** Nodes */
|
|
112
|
+
get nodes(): ITreeNodeModel<IDictionary>[];
|
|
113
|
+
set nodes(value: ITreeNodeModel<IDictionary>[]);
|
|
114
|
+
onCreated(): Promise<void>;
|
|
115
|
+
getCheckedNodes(): ITreeNode<IDictionary<any>>[];
|
|
116
|
+
/** Returns the selected nodes */
|
|
117
|
+
get selectedNodes(): ITreeNode<IDictionary>[];
|
|
118
|
+
private createDataStructure;
|
|
119
|
+
/** create nodes from datasource object */
|
|
120
|
+
createNodesFromDatasource(buildTree?: boolean): void;
|
|
121
|
+
private createNodeFromRow;
|
|
122
|
+
private createChildrenNodes;
|
|
123
|
+
/** Insert nodes by the current cursor position */
|
|
124
|
+
insertNode(newNode: ITreeNodeModel<IDictionary>): void;
|
|
125
|
+
/** Import multiples nodes by the current cursor position */
|
|
126
|
+
importNodes(nodes: ITreeNodeModel<IDictionary>[]): void;
|
|
127
|
+
/** Remove selected node */
|
|
128
|
+
removeSelected(): void;
|
|
129
|
+
/** Update selected node */
|
|
130
|
+
updateNodeData(node: ITreeNode<IDictionary>, value: IDictionary): void;
|
|
131
|
+
setTree(tree: any): void;
|
|
132
|
+
/**
|
|
133
|
+
* Return plain conditions object
|
|
134
|
+
* @param conditions Conditions object
|
|
135
|
+
* @param parentPath Path to parent property
|
|
136
|
+
*/
|
|
137
|
+
protected getPlainConditions(conditions: IDictionary<any>, parentPath?: string): IDictionary<string>;
|
|
138
|
+
protected createConditions(children: ITreeConditionComponent[], parentPath?: string): void;
|
|
139
|
+
protected applyCondition(node: ITreeNode<any>, factoredConditions: IEvents<ITreeNode<IDictionary>>): IDictionary<any>;
|
|
140
|
+
protected applyChildCondition(node: ITreeNode<any>, factoredConditions?: IDictionary<IEvents<ITreeNode<IDictionary<any>>>>): IDictionary<any>;
|
|
141
|
+
reapplyConditions(node: ITreeNode<any>): IDictionary;
|
|
142
|
+
private filterObject;
|
|
143
|
+
private deleteAccessorProps;
|
|
144
|
+
protected updateActionInstance(instanceName: string, newComponent: IComponent): ComponentRender<IComponentRender>;
|
|
145
|
+
getSlotComponent(slot: IComponentRender | IComponentRender[], node: ITreeNode<IDictionary>, parentPath?: string): (IComponentRender | IComponentRenderInstance)[];
|
|
146
|
+
/** Triggers when dragging nodes have been dropped */
|
|
147
|
+
nodeDrop(nodes: ITreeNode<IDictionary>[], position: ICursorPosition<IDictionary>, event?: Event, element?: any): void;
|
|
148
|
+
/** Triggers when a node has been selected/deselected */
|
|
149
|
+
nodeSelect(nodes: ITreeNode<IDictionary>[], event?: Event, element?: any): void;
|
|
150
|
+
/** Handle click event on node */
|
|
151
|
+
nodeClick(node: ITreeNode<IDictionary>, event?: Event, element?: any): void;
|
|
152
|
+
/** Handle dblclick event on node */
|
|
153
|
+
nodeDblClick(node: ITreeNode<IDictionary>, event?: Event, element?: any): void;
|
|
154
|
+
/** Triggers when a node has been checked/unchecked */
|
|
155
|
+
nodeCheck(node: ITreeNode<IDictionary>, event?: Event, element?: HTMLElement): void;
|
|
156
|
+
clearSelection(nodes?: ITreeNodeModel<IDictionary<any>>[]): void;
|
|
157
|
+
getNode(path: number[]): ITreeNodeModel<IDictionary<any>> | undefined;
|
|
158
|
+
getParentNode(node: ITreeNode<IDictionary>): any;
|
|
159
|
+
private searchPath;
|
|
160
|
+
callDisableCheckbox(node: ITreeNode<IDictionary>): boolean;
|
|
161
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IDictionary } from '@zeedhi/core';
|
|
2
|
+
import { ITreeComponent, ITreeDataStructure } from '../../utils/tree-data-structure/interfaces';
|
|
3
|
+
import { IDataSelector, IGrid, IGridProps } from '../zd-grid';
|
|
4
|
+
export interface ITreeDataSelector extends IDataSelector {
|
|
5
|
+
selectChildren(row: IDictionary<any>): void;
|
|
6
|
+
unselectChildren(row: IDictionary<any>): void;
|
|
7
|
+
}
|
|
8
|
+
export interface IIterableTree {
|
|
9
|
+
onMounted(element: HTMLElement): void;
|
|
10
|
+
buildTree(doGet?: boolean): void;
|
|
11
|
+
setViewUpdateScrollData(fn: () => void): void;
|
|
12
|
+
updateScrollData(): void;
|
|
13
|
+
}
|
|
14
|
+
export interface ITreeGridProps extends IGridProps {
|
|
15
|
+
parentField?: string;
|
|
16
|
+
openLevelOnLoad?: number | boolean;
|
|
17
|
+
fetchOnDemand?: boolean;
|
|
18
|
+
fieldHasChild?: string;
|
|
19
|
+
flat?: boolean;
|
|
20
|
+
detach?: boolean;
|
|
21
|
+
lazyLoad?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface ITreeGrid extends ITreeComponent, IGrid, ITreeDataSelector, IIterableTree {
|
|
24
|
+
flat: boolean;
|
|
25
|
+
lazyLoad: boolean;
|
|
26
|
+
treeDataStructure: ITreeDataStructure;
|
|
27
|
+
getChildren(row: IDictionary): IDictionary[];
|
|
28
|
+
findDataIndex(data: IDictionary<any>[], value: any): number;
|
|
29
|
+
getParentRow(row: IDictionary): IDictionary;
|
|
30
|
+
buildTreeStructure(): void;
|
|
31
|
+
resetTree(): void;
|
|
32
|
+
filterRootData(): Promise<any>;
|
|
33
|
+
navigateToggle(collapse: boolean): void;
|
|
34
|
+
toggleExpand(row: IDictionary<any>, rowIndex?: number): Promise<IDictionary<any>[] | undefined>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IIterableTree, ITreeGrid } from './interfaces';
|
|
2
|
+
export declare class IterableTree implements IIterableTree {
|
|
3
|
+
private treeGrid;
|
|
4
|
+
viewUpdateScrollData?: () => void;
|
|
5
|
+
constructor(treeGrid: ITreeGrid);
|
|
6
|
+
onMounted(): void;
|
|
7
|
+
buildTree(doGet?: boolean): void;
|
|
8
|
+
setViewUpdateScrollData(fn: () => void): void;
|
|
9
|
+
updateScrollData(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IKeyMap } from '@zeedhi/core';
|
|
2
|
+
import { Component } from '../zd-component/component';
|
|
3
|
+
import { IKeyMapConfig } from '../zd-grid';
|
|
4
|
+
import { ITreeGrid } from './interfaces';
|
|
5
|
+
export declare class KeyMapTree implements IKeyMapConfig<ITreeGrid> {
|
|
6
|
+
getMap(instance: Component & ITreeGrid): IKeyMap;
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IDataNavigator, VerticalDirection } from '../zd-grid';
|
|
2
|
+
import { ITreeGrid } from './interfaces';
|
|
3
|
+
export declare class TreeDataNavigator implements IDataNavigator {
|
|
4
|
+
private treeGrid;
|
|
5
|
+
private dataNavigator;
|
|
6
|
+
constructor(treeGrid: ITreeGrid);
|
|
7
|
+
navigateDatasource(direction: VerticalDirection): void;
|
|
8
|
+
navigatePageUp(): void;
|
|
9
|
+
navigatePageDown(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IDictionary } from '@zeedhi/core';
|
|
2
|
+
import { ITreeDataSelector, ITreeGrid } from './interfaces';
|
|
3
|
+
export declare class TreeDataSelector implements ITreeDataSelector {
|
|
4
|
+
private treeGrid;
|
|
5
|
+
private dataSelector;
|
|
6
|
+
constructor(treeGrid: ITreeGrid);
|
|
7
|
+
private removeDuplicates;
|
|
8
|
+
selectChildren(row: IDictionary<any>): void;
|
|
9
|
+
unselectChildren(row: IDictionary<any>): void;
|
|
10
|
+
private selectParents;
|
|
11
|
+
private unselectParents;
|
|
12
|
+
selectRow(row: IDictionary<any>, select: boolean): void;
|
|
13
|
+
selectAll(isSelected: boolean): void;
|
|
14
|
+
toggleRow(row: IDictionary): void;
|
|
15
|
+
callDisableSelection(row: IDictionary): boolean;
|
|
16
|
+
selectClick(row: IDictionary<any>, isSelected: boolean, event: Event, element?: HTMLElement): void;
|
|
17
|
+
selectAllClick(isSelected: boolean, event: Event, element?: HTMLElement): void;
|
|
18
|
+
}
|