@zeedhi/common 1.120.0 → 1.120.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/dist/zd-common.esm.js +2 -32
- package/dist/zd-common.umd.js +2 -32
- package/package.json +2 -2
- package/types/components/zd-iterable/search.d.ts +2 -2
- package/types/components/zd-number/number.d.ts +1 -7
- package/dist/types/components/index.d.ts +0 -151
- package/dist/types/components/zd-alert/alert.d.ts +0 -94
- package/dist/types/components/zd-alert/interfaces.d.ts +0 -18
- package/dist/types/components/zd-badge/badge.d.ts +0 -28
- package/dist/types/components/zd-badge/interfaces.d.ts +0 -10
- package/dist/types/components/zd-breadcrumbs/breadcrumbs.d.ts +0 -32
- package/dist/types/components/zd-breadcrumbs/interfaces.d.ts +0 -24
- package/dist/types/components/zd-button/button.d.ts +0 -89
- package/dist/types/components/zd-button/interfaces.d.ts +0 -48
- package/dist/types/components/zd-button-group/button-group.d.ts +0 -67
- package/dist/types/components/zd-button-group/interfaces.d.ts +0 -25
- package/dist/types/components/zd-card/card.d.ts +0 -152
- package/dist/types/components/zd-card/interfaces.d.ts +0 -40
- package/dist/types/components/zd-carousel/carousel.d.ts +0 -163
- package/dist/types/components/zd-carousel/interfaces.d.ts +0 -49
- package/dist/types/components/zd-checkbox/checkbox.d.ts +0 -12
- package/dist/types/components/zd-checkbox/interfaces.d.ts +0 -5
- package/dist/types/components/zd-checkbox-multiple/checkbox-multiple.d.ts +0 -39
- package/dist/types/components/zd-checkbox-multiple/interfaces.d.ts +0 -13
- package/dist/types/components/zd-chip/chip.d.ts +0 -60
- package/dist/types/components/zd-chip/interfaces.d.ts +0 -18
- package/dist/types/components/zd-code-viewer/code-viewer.d.ts +0 -86
- package/dist/types/components/zd-code-viewer/interfaces.d.ts +0 -13
- package/dist/types/components/zd-col/col.d.ts +0 -33
- package/dist/types/components/zd-col/interfaces.d.ts +0 -15
- package/dist/types/components/zd-collapse-card/collapse-card.d.ts +0 -56
- package/dist/types/components/zd-collapse-card/interfaces.d.ts +0 -14
- package/dist/types/components/zd-component/child-not-found.d.ts +0 -6
- package/dist/types/components/zd-component/component-render.d.ts +0 -16
- package/dist/types/components/zd-component/component.d.ts +0 -120
- package/dist/types/components/zd-component/interfaces.d.ts +0 -74
- package/dist/types/components/zd-container/container.d.ts +0 -45
- package/dist/types/components/zd-container/interfaces.d.ts +0 -12
- package/dist/types/components/zd-currency/currency.d.ts +0 -12
- package/dist/types/components/zd-currency/interfaces.d.ts +0 -6
- package/dist/types/components/zd-date-input/date-input.d.ts +0 -152
- package/dist/types/components/zd-date-input/interfaces.d.ts +0 -27
- package/dist/types/components/zd-date-range/date-range.d.ts +0 -158
- package/dist/types/components/zd-date-range/interfaces.d.ts +0 -18
- package/dist/types/components/zd-dialog/dialog.d.ts +0 -76
- package/dist/types/components/zd-dialog/interfaces.d.ts +0 -13
- package/dist/types/components/zd-divider/divider.d.ts +0 -20
- package/dist/types/components/zd-divider/interfaces.d.ts +0 -8
- package/dist/types/components/zd-dropdown/dropdown.d.ts +0 -81
- package/dist/types/components/zd-dropdown/interfaces.d.ts +0 -23
- package/dist/types/components/zd-footer/footer.d.ts +0 -80
- package/dist/types/components/zd-footer/interfaces.d.ts +0 -26
- package/dist/types/components/zd-form/form.d.ts +0 -174
- package/dist/types/components/zd-form/interfaces.d.ts +0 -36
- package/dist/types/components/zd-frame/frame.d.ts +0 -81
- package/dist/types/components/zd-frame/interfaces.d.ts +0 -23
- package/dist/types/components/zd-frame-page/frame-page.d.ts +0 -14
- package/dist/types/components/zd-frame-page/interfaces.d.ts +0 -4
- package/dist/types/components/zd-grid/data-navigator.d.ts +0 -12
- package/dist/types/components/zd-grid/data-selector.d.ts +0 -25
- package/dist/types/components/zd-grid/grid-column.d.ts +0 -47
- package/dist/types/components/zd-grid/grid-events.d.ts +0 -26
- package/dist/types/components/zd-grid/grid.d.ts +0 -85
- package/dist/types/components/zd-grid/index.d.ts +0 -11
- package/dist/types/components/zd-grid/interfaces.d.ts +0 -148
- package/dist/types/components/zd-grid/iterable-table.d.ts +0 -28
- package/dist/types/components/zd-grid/keymap-merger.d.ts +0 -26
- package/dist/types/components/zd-grid/keymap-navigation.d.ts +0 -6
- package/dist/types/components/zd-grid/table-action-builder.d.ts +0 -19
- package/dist/types/components/zd-grid/view-navigator.d.ts +0 -10
- package/dist/types/components/zd-grid-editable/data-editor-with-add.d.ts +0 -35
- package/dist/types/components/zd-grid-editable/data-editor.d.ts +0 -64
- package/dist/types/components/zd-grid-editable/errors/index.d.ts +0 -2
- package/dist/types/components/zd-grid-editable/errors/not-editing.d.ts +0 -6
- package/dist/types/components/zd-grid-editable/errors/row-not-found.d.ts +0 -6
- package/dist/types/components/zd-grid-editable/grid-column-editable.d.ts +0 -9
- package/dist/types/components/zd-grid-editable/grid-editable-controller.d.ts +0 -8
- package/dist/types/components/zd-grid-editable/grid-editable-events.d.ts +0 -32
- package/dist/types/components/zd-grid-editable/grid-editable.d.ts +0 -124
- package/dist/types/components/zd-grid-editable/index.d.ts +0 -8
- package/dist/types/components/zd-grid-editable/interfaces.d.ts +0 -66
- package/dist/types/components/zd-grid-editable/keymap-editing.d.ts +0 -7
- package/dist/types/components/zd-header/header.d.ts +0 -94
- package/dist/types/components/zd-header/interfaces.d.ts +0 -29
- package/dist/types/components/zd-icon/icon.d.ts +0 -55
- package/dist/types/components/zd-icon/interfaces.d.ts +0 -13
- package/dist/types/components/zd-image/image.d.ts +0 -73
- package/dist/types/components/zd-image/interfaces.d.ts +0 -17
- package/dist/types/components/zd-increment/increment.d.ts +0 -56
- package/dist/types/components/zd-increment/interfaces.d.ts +0 -9
- package/dist/types/components/zd-input/input-factory.d.ts +0 -6
- package/dist/types/components/zd-input/input.d.ts +0 -223
- package/dist/types/components/zd-input/interfaces.d.ts +0 -38
- package/dist/types/components/zd-iterable/column-not-found.d.ts +0 -6
- package/dist/types/components/zd-iterable/column.d.ts +0 -78
- package/dist/types/components/zd-iterable/conditions-manager.d.ts +0 -49
- package/dist/types/components/zd-iterable/interfaces.d.ts +0 -103
- package/dist/types/components/zd-iterable/iterable-columns-button-controller.d.ts +0 -9
- package/dist/types/components/zd-iterable/iterable-columns-button.d.ts +0 -35
- package/dist/types/components/zd-iterable/iterable-controller.d.ts +0 -8
- package/dist/types/components/zd-iterable/iterable-page-component.d.ts +0 -27
- package/dist/types/components/zd-iterable/iterable-page-info.d.ts +0 -7
- package/dist/types/components/zd-iterable/iterable-page-size.d.ts +0 -62
- package/dist/types/components/zd-iterable/iterable-pagination.d.ts +0 -28
- package/dist/types/components/zd-iterable/iterable.d.ts +0 -77
- package/dist/types/components/zd-iterable/search.d.ts +0 -31
- package/dist/types/components/zd-iterable-component-render/interfaces.d.ts +0 -34
- package/dist/types/components/zd-iterable-component-render/iterable-component-render.d.ts +0 -84
- package/dist/types/components/zd-layout/interfaces.d.ts +0 -7
- package/dist/types/components/zd-layout/layout.d.ts +0 -9
- package/dist/types/components/zd-list/interfaces.d.ts +0 -44
- package/dist/types/components/zd-list/item-not-found.d.ts +0 -6
- package/dist/types/components/zd-list/list-group.d.ts +0 -30
- package/dist/types/components/zd-list/list-item.d.ts +0 -46
- package/dist/types/components/zd-list/list.d.ts +0 -81
- package/dist/types/components/zd-loading/interfaces.d.ts +0 -7
- package/dist/types/components/zd-loading/loading.d.ts +0 -21
- package/dist/types/components/zd-login/interfaces.d.ts +0 -25
- package/dist/types/components/zd-login/login-button.d.ts +0 -50
- package/dist/types/components/zd-login/login.d.ts +0 -54
- package/dist/types/components/zd-main/interfaces.d.ts +0 -5
- package/dist/types/components/zd-main/main.d.ts +0 -7
- package/dist/types/components/zd-master-detail/detail-not-found.d.ts +0 -7
- package/dist/types/components/zd-master-detail/interfaces.d.ts +0 -10
- package/dist/types/components/zd-master-detail/master-detail.d.ts +0 -18
- package/dist/types/components/zd-master-detail/master-not-found.d.ts +0 -7
- package/dist/types/components/zd-menu/interfaces.d.ts +0 -68
- package/dist/types/components/zd-menu/menu-button.d.ts +0 -29
- package/dist/types/components/zd-menu/menu-group.d.ts +0 -61
- package/dist/types/components/zd-menu/menu-link.d.ts +0 -50
- package/dist/types/components/zd-menu/menu-separator.d.ts +0 -7
- package/dist/types/components/zd-menu/menu.d.ts +0 -199
- package/dist/types/components/zd-modal/interfaces.d.ts +0 -35
- package/dist/types/components/zd-modal/modal-close-button.d.ts +0 -28
- package/dist/types/components/zd-modal/modal.d.ts +0 -53
- package/dist/types/components/zd-month/interfaces.d.ts +0 -6
- package/dist/types/components/zd-month/month.d.ts +0 -33
- package/dist/types/components/zd-number-input/interfaces.d.ts +0 -8
- package/dist/types/components/zd-number-input/number-input.d.ts +0 -43
- package/dist/types/components/zd-password/interfaces.d.ts +0 -6
- package/dist/types/components/zd-password/password.d.ts +0 -17
- package/dist/types/components/zd-progress/interfaces.d.ts +0 -10
- package/dist/types/components/zd-progress/progress.d.ts +0 -41
- package/dist/types/components/zd-radio/interfaces.d.ts +0 -11
- package/dist/types/components/zd-radio/radio.d.ts +0 -35
- package/dist/types/components/zd-row/interfaces.d.ts +0 -13
- package/dist/types/components/zd-row/row.d.ts +0 -39
- package/dist/types/components/zd-select/interfaces.d.ts +0 -24
- package/dist/types/components/zd-select/select.d.ts +0 -238
- package/dist/types/components/zd-select-multiple/interfaces.d.ts +0 -18
- package/dist/types/components/zd-select-multiple/select-multiple.d.ts +0 -113
- package/dist/types/components/zd-svg-map/interfaces.d.ts +0 -26
- package/dist/types/components/zd-svg-map/svg-map.d.ts +0 -35
- package/dist/types/components/zd-switch/interfaces.d.ts +0 -7
- package/dist/types/components/zd-switch/switch.d.ts +0 -16
- package/dist/types/components/zd-table/interfaces.d.ts +0 -25
- package/dist/types/components/zd-table/table.d.ts +0 -42
- package/dist/types/components/zd-tabs/interfaces.d.ts +0 -40
- package/dist/types/components/zd-tabs/tab-not-found.d.ts +0 -11
- package/dist/types/components/zd-tabs/tab.d.ts +0 -57
- package/dist/types/components/zd-tabs/tabs.d.ts +0 -86
- package/dist/types/components/zd-tag/interfaces.d.ts +0 -7
- package/dist/types/components/zd-tag/tag.d.ts +0 -13
- package/dist/types/components/zd-text/interfaces.d.ts +0 -9
- package/dist/types/components/zd-text/text.d.ts +0 -8
- package/dist/types/components/zd-text-input/interfaces.d.ts +0 -23
- package/dist/types/components/zd-text-input/text-input.d.ts +0 -91
- package/dist/types/components/zd-textarea/interfaces.d.ts +0 -21
- package/dist/types/components/zd-textarea/textarea.d.ts +0 -71
- package/dist/types/components/zd-time/interfaces.d.ts +0 -22
- package/dist/types/components/zd-time/time-format-selector.d.ts +0 -8
- package/dist/types/components/zd-time/time.d.ts +0 -149
- package/dist/types/components/zd-toggleable/interfaces.d.ts +0 -6
- package/dist/types/components/zd-toggleable/toggleable.d.ts +0 -21
- package/dist/types/components/zd-tooltip/interfaces.d.ts +0 -18
- package/dist/types/components/zd-tooltip/tooltip.d.ts +0 -57
- package/dist/types/components/zd-tree/interfaces.d.ts +0 -107
- package/dist/types/components/zd-tree/tree.d.ts +0 -161
- package/dist/types/components/zd-tree-grid/index.d.ts +0 -6
- package/dist/types/components/zd-tree-grid/interfaces.d.ts +0 -35
- package/dist/types/components/zd-tree-grid/iterable-tree.d.ts +0 -10
- package/dist/types/components/zd-tree-grid/keymap-tree.d.ts +0 -7
- package/dist/types/components/zd-tree-grid/tree-data-navigator.d.ts +0 -10
- package/dist/types/components/zd-tree-grid/tree-data-selector.d.ts +0 -18
- package/dist/types/components/zd-tree-grid/tree-grid.d.ts +0 -119
- package/dist/types/error/delete-rows.d.ts +0 -7
- package/dist/types/error/index.d.ts +0 -3
- package/dist/types/error/non-initialized.d.ts +0 -7
- package/dist/types/error/zeedhi-error.d.ts +0 -6
- package/dist/types/index.d.ts +0 -6
- package/dist/types/services/index.d.ts +0 -4
- package/dist/types/services/zd-alert/alert-queue.d.ts +0 -13
- package/dist/types/services/zd-alert/alert-replace.d.ts +0 -18
- package/dist/types/services/zd-alert/alert-service.d.ts +0 -45
- package/dist/types/services/zd-alert/alert-stack.d.ts +0 -9
- package/dist/types/services/zd-alert/index.d.ts +0 -5
- package/dist/types/services/zd-alert/interfaces.d.ts +0 -6
- package/dist/types/services/zd-dialog/dialog-service.d.ts +0 -24
- package/dist/types/services/zd-loading/loading-service.d.ts +0 -17
- package/dist/types/services/zd-modal/modal-service.d.ts +0 -39
- package/dist/types/utils/data-value-out/data-value-out.d.ts +0 -5
- package/dist/types/utils/data-value-out/index.d.ts +0 -2
- package/dist/types/utils/data-value-out/interfaces.d.ts +0 -8
- package/dist/types/utils/datasource-searcher/datasource-searcher.d.ts +0 -6
- package/dist/types/utils/datasource-searcher/index.d.ts +0 -2
- package/dist/types/utils/datasource-searcher/interfaces.d.ts +0 -5
- package/dist/types/utils/icons/icons.d.ts +0 -24
- package/dist/types/utils/index.d.ts +0 -7
- package/dist/types/utils/omit/omit.d.ts +0 -11
- package/dist/types/utils/theme/theme.d.ts +0 -34
- package/dist/types/utils/tree-data-structure/index.d.ts +0 -2
- package/dist/types/utils/tree-data-structure/interfaces.d.ts +0 -30
- package/dist/types/utils/tree-data-structure/tree-data-structure.d.ts +0 -155
- package/dist/types/utils/unique-by/unique-by.d.ts +0 -3
- package/dist/zd-common.js +0 -13133
- package/dist/zd-common.min.js +0 -13133
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
import { Datasource, IDictionary } from '@zeedhi/core';
|
|
2
|
-
import { ISelectDataValueOutItem, SearchParam } from '../../utils';
|
|
3
|
-
import { IComponentRender } from '../zd-component/interfaces';
|
|
4
|
-
import { TextInput } from '../zd-text-input/text-input';
|
|
5
|
-
import { ISelect } from './interfaces';
|
|
6
|
-
/**
|
|
7
|
-
* Base class for Select component.
|
|
8
|
-
*/
|
|
9
|
-
export declare class Select extends TextInput implements ISelect {
|
|
10
|
-
/**
|
|
11
|
-
* Source of select items
|
|
12
|
-
*/
|
|
13
|
-
datasource: Datasource;
|
|
14
|
-
/**
|
|
15
|
-
* Field used to display values
|
|
16
|
-
*/
|
|
17
|
-
dataText: string | any[];
|
|
18
|
-
/**
|
|
19
|
-
* Field used to display values when the select is closed
|
|
20
|
-
*/
|
|
21
|
-
dataTextDiscrete: string | any[];
|
|
22
|
-
/**
|
|
23
|
-
* Value used to join display values
|
|
24
|
-
*/
|
|
25
|
-
dataTextSeparator: string;
|
|
26
|
-
/**
|
|
27
|
-
* Field used to save values
|
|
28
|
-
*/
|
|
29
|
-
dataValue: string;
|
|
30
|
-
/**
|
|
31
|
-
* Field used to make the item disabled
|
|
32
|
-
*/
|
|
33
|
-
dataDisabled: string;
|
|
34
|
-
/**
|
|
35
|
-
* Defines if field value should be an object
|
|
36
|
-
*/
|
|
37
|
-
returnObject: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Enables search input
|
|
40
|
-
*/
|
|
41
|
-
autocomplete: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Automatically select option if only one is filtered
|
|
44
|
-
*/
|
|
45
|
-
autoSelection: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Prevents load select data when the input is focused
|
|
48
|
-
*/
|
|
49
|
-
preventLoadOnFocus: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Maximum height of select menu
|
|
52
|
-
*/
|
|
53
|
-
menuMaxHeight: string | number;
|
|
54
|
-
/**
|
|
55
|
-
* Maximum width of select menu
|
|
56
|
-
*/
|
|
57
|
-
menuMaxWidth: string | number;
|
|
58
|
-
/**
|
|
59
|
-
* Input select value
|
|
60
|
-
*/
|
|
61
|
-
selectValue: IDictionary<any> | null;
|
|
62
|
-
/**
|
|
63
|
-
* Components that will be rendered in itemAfterSlot case
|
|
64
|
-
*/
|
|
65
|
-
itemAfterSlot: IComponentRender[];
|
|
66
|
-
/**
|
|
67
|
-
* Components that will be rendered in itemBeforeSlot case
|
|
68
|
-
*/
|
|
69
|
-
itemBeforeSlot: IComponentRender[];
|
|
70
|
-
/**
|
|
71
|
-
* Items that will be disabled for selection. Users will still see them
|
|
72
|
-
*/
|
|
73
|
-
disabledItems: any[];
|
|
74
|
-
/**
|
|
75
|
-
* Defines if data handling should be manual or automatic
|
|
76
|
-
*/
|
|
77
|
-
manualMode: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Defines if data handling should be manual or automatic
|
|
80
|
-
*/
|
|
81
|
-
searchParam: SearchParam;
|
|
82
|
-
/**
|
|
83
|
-
* Defines other columns that must me set on form on change
|
|
84
|
-
*/
|
|
85
|
-
dataValueOut: ISelectDataValueOutItem[];
|
|
86
|
-
/**
|
|
87
|
-
* Defines the name of the form target to set using dataValueOut
|
|
88
|
-
*/
|
|
89
|
-
dataValueOutFormName: string;
|
|
90
|
-
/**
|
|
91
|
-
* Input search value
|
|
92
|
-
*/
|
|
93
|
-
private searchValue;
|
|
94
|
-
protected dirtySearchValue: string;
|
|
95
|
-
protected formatterFn: (...args: any) => any;
|
|
96
|
-
private discreteProps?;
|
|
97
|
-
loadMoreAmount: number;
|
|
98
|
-
/**
|
|
99
|
-
* Conditions for pushing a value:
|
|
100
|
-
* 1. Every time a value from outside the datasource is set
|
|
101
|
-
* 2. On blur, if the current value is not part of the cache
|
|
102
|
-
* 3. When the datasource is reloaded, if the current value is not part of the datasource but is in another page
|
|
103
|
-
*
|
|
104
|
-
* Conditions for removing a push
|
|
105
|
-
* 1. When the datasource is reloaded, if the current value cannot be found in another page
|
|
106
|
-
* 2. When the datasource is reloaded, if the push is already part of the datasource
|
|
107
|
-
* 3. When the search is empty
|
|
108
|
-
* 4. On blur, if the current value is null
|
|
109
|
-
*/
|
|
110
|
-
pushedValue: IDictionary | null;
|
|
111
|
-
defaultValue: any;
|
|
112
|
-
protected cachedData: IDictionary[];
|
|
113
|
-
protected cachedTotal: number;
|
|
114
|
-
/**
|
|
115
|
-
* Create a new Select.
|
|
116
|
-
* @param props Select properties
|
|
117
|
-
*/
|
|
118
|
-
constructor(props: ISelect);
|
|
119
|
-
onCreated(): Promise<void>;
|
|
120
|
-
onMounted(element: any): void;
|
|
121
|
-
/**
|
|
122
|
-
* Select items list, containing all of the items that appear on the menu
|
|
123
|
-
* including the pushedValue
|
|
124
|
-
*/
|
|
125
|
-
get items(): IDictionary<any>[];
|
|
126
|
-
/**
|
|
127
|
-
* Initializes the select data properties: dataText, dataValue and dataTextDiscrete
|
|
128
|
-
* @param props Select props
|
|
129
|
-
*/
|
|
130
|
-
private setDataProperties;
|
|
131
|
-
private getAccessorValue;
|
|
132
|
-
/**
|
|
133
|
-
* Retrieves datasource structure applying infinity scroll
|
|
134
|
-
* @param field Field structure
|
|
135
|
-
*/
|
|
136
|
-
private getDefaultDatasource;
|
|
137
|
-
/**
|
|
138
|
-
* Returns the currentRow in the dataText key
|
|
139
|
-
*/
|
|
140
|
-
formatter(value?: string | IDictionary<any> | null, props?: {
|
|
141
|
-
dataText: string | any[];
|
|
142
|
-
dataTextSeparator: string;
|
|
143
|
-
}): any;
|
|
144
|
-
protected registerGetCallback(): void;
|
|
145
|
-
get search(): string;
|
|
146
|
-
set search(value: string);
|
|
147
|
-
/**
|
|
148
|
-
* Sets select default value and dispatches defaultAssigned event.
|
|
149
|
-
* @param value Default value
|
|
150
|
-
*/
|
|
151
|
-
protected setDefaultValue(value: any): Promise<void>;
|
|
152
|
-
/**
|
|
153
|
-
* Finds and retrieves items searching by value
|
|
154
|
-
* @param value Default value
|
|
155
|
-
*/
|
|
156
|
-
protected getItemsBySearchValue(value: any): Promise<IDictionary<any>[]>;
|
|
157
|
-
focus(event: Event, element: any): Promise<void>;
|
|
158
|
-
protected afterFocus(): Promise<void>;
|
|
159
|
-
/**
|
|
160
|
-
* Field value
|
|
161
|
-
*/
|
|
162
|
-
get value(): any;
|
|
163
|
-
set value(value: any);
|
|
164
|
-
setValue(value: any, callEvent?: boolean): Promise<void>;
|
|
165
|
-
protected setFieldValue(value: any): Promise<boolean>;
|
|
166
|
-
/**
|
|
167
|
-
* Set value accessors
|
|
168
|
-
* @param row
|
|
169
|
-
* @param value
|
|
170
|
-
*/
|
|
171
|
-
protected setFieldRowValue(row: any): void;
|
|
172
|
-
/**
|
|
173
|
-
* Retrieves value based on the returnObject definition
|
|
174
|
-
*/
|
|
175
|
-
protected getReturnValue(value: IDictionary | null): any;
|
|
176
|
-
/**
|
|
177
|
-
* Retrieves a single-value (dataValue property)
|
|
178
|
-
*/
|
|
179
|
-
protected getValue(value: any | IDictionary | null): any;
|
|
180
|
-
/**
|
|
181
|
-
* Event trigged when component loses the focus and value changes
|
|
182
|
-
* @param value inputted value
|
|
183
|
-
*/
|
|
184
|
-
selectChange(value: any, event?: Event, element?: any): void;
|
|
185
|
-
protected callChangeEvent(value: any, event?: Event, element?: any): void;
|
|
186
|
-
/**
|
|
187
|
-
* Event trigged when value is inputted
|
|
188
|
-
* @param value inputted value
|
|
189
|
-
*/
|
|
190
|
-
selectInput(value: any, event?: Event, element?: any): void;
|
|
191
|
-
/**
|
|
192
|
-
* Updates search value
|
|
193
|
-
* @param value Search value
|
|
194
|
-
*/
|
|
195
|
-
updateSearch(value: string): Promise<void>;
|
|
196
|
-
/**
|
|
197
|
-
* Update datasource data
|
|
198
|
-
*/
|
|
199
|
-
updateData(data: IDictionary<any>[]): Promise<any>;
|
|
200
|
-
/**
|
|
201
|
-
* Update datasource items
|
|
202
|
-
*/
|
|
203
|
-
updateItems(items: (string | number)[]): Promise<any>;
|
|
204
|
-
protected doSearch(value: string): Promise<void>;
|
|
205
|
-
private debounceSearch;
|
|
206
|
-
/**
|
|
207
|
-
* Load more data
|
|
208
|
-
*/
|
|
209
|
-
loadMore(): Promise<void>;
|
|
210
|
-
/**
|
|
211
|
-
* Triggered when the component loses focus.
|
|
212
|
-
* @param event DOM event
|
|
213
|
-
* @param element Element that lost the focus
|
|
214
|
-
*/
|
|
215
|
-
blur(event: Event, element: any): void;
|
|
216
|
-
protected checkValueOnBlur(): void;
|
|
217
|
-
/**
|
|
218
|
-
* Checks if the 'load more' option should be shown \
|
|
219
|
-
* conditions to show:
|
|
220
|
-
* - datasource has data
|
|
221
|
-
* - datasource is not loading
|
|
222
|
-
* - datasource is not loadAll
|
|
223
|
-
* - datasource current data length is less than the total
|
|
224
|
-
*/
|
|
225
|
-
showLoadMore(): boolean;
|
|
226
|
-
/**
|
|
227
|
-
* Checks if skeleton loaders should be shown \
|
|
228
|
-
* conditions to show:
|
|
229
|
-
* - datasource is loading and
|
|
230
|
-
* - datasource has no data or has less data than the total
|
|
231
|
-
*/
|
|
232
|
-
showSkeletonLoaders(): boolean;
|
|
233
|
-
onBeforeDestroy(): void;
|
|
234
|
-
/**
|
|
235
|
-
* Retrieves the index of a select value inside a data array
|
|
236
|
-
*/
|
|
237
|
-
indexOf(search: IDictionary | string | number, data?: IDictionary[]): number;
|
|
238
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IEventParam } from '@zeedhi/core';
|
|
2
|
-
import { EventDef, IComponentEvents } from '../zd-component/interfaces';
|
|
3
|
-
import { ISelect } from '../zd-select/interfaces';
|
|
4
|
-
import { SelectMultiple } from './select-multiple';
|
|
5
|
-
export type ISelectMultipleEvent = IEventParam<SelectMultiple>;
|
|
6
|
-
export interface ISelectMultipleEvents<T = IEventParam<any>> extends IComponentEvents<T> {
|
|
7
|
-
selectedAll?: EventDef<T>;
|
|
8
|
-
unselectedAll?: EventDef<T>;
|
|
9
|
-
}
|
|
10
|
-
export interface ISelectMultiple extends ISelect {
|
|
11
|
-
moreChip?: number;
|
|
12
|
-
showSelectAll?: boolean;
|
|
13
|
-
events?: ISelectMultipleEvents;
|
|
14
|
-
maxRows?: string | number;
|
|
15
|
-
limit?: number | null;
|
|
16
|
-
showCheckboxAll?: boolean;
|
|
17
|
-
checkboxAll?: boolean;
|
|
18
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { IDictionary } from '@zeedhi/core';
|
|
2
|
-
import { Select } from '../zd-select/select';
|
|
3
|
-
import { ISelectMultiple } from './interfaces';
|
|
4
|
-
export declare class SelectMultiple extends Select implements ISelectMultiple {
|
|
5
|
-
/**
|
|
6
|
-
* Selected items that were added to datasource
|
|
7
|
-
*/
|
|
8
|
-
insertedValues: IDictionary<any>[];
|
|
9
|
-
/**
|
|
10
|
-
* Inserted values that were unselected
|
|
11
|
-
*/
|
|
12
|
-
private insertsRemoved;
|
|
13
|
-
/**
|
|
14
|
-
* Max number of rows the component can have
|
|
15
|
-
*/
|
|
16
|
-
maxRows?: string | number;
|
|
17
|
-
/**
|
|
18
|
-
* Limit the display of selected options. The rest will be hidden within the 'limitText' string
|
|
19
|
-
*/
|
|
20
|
-
limit: number | null;
|
|
21
|
-
showSelectAll: boolean;
|
|
22
|
-
showCheckboxAll: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Create a new Select.
|
|
25
|
-
* @param props Select properties
|
|
26
|
-
*/
|
|
27
|
-
constructor(props: ISelectMultiple);
|
|
28
|
-
selectValue: IDictionary<any>[];
|
|
29
|
-
updateSelectValue(rows: IDictionary<any>): void;
|
|
30
|
-
private checkboxAllValue;
|
|
31
|
-
get checkboxAll(): boolean;
|
|
32
|
-
set checkboxAll(value: boolean);
|
|
33
|
-
/**
|
|
34
|
-
* Removes item from array a and add it to array b if condition is satisfied
|
|
35
|
-
*/
|
|
36
|
-
private cutFromAToB;
|
|
37
|
-
protected getCondition(filterValue: any): (row: any) => boolean;
|
|
38
|
-
protected setFieldValue(value: any[]): Promise<boolean>;
|
|
39
|
-
/**
|
|
40
|
-
* Set value accessors
|
|
41
|
-
* @param value
|
|
42
|
-
*/
|
|
43
|
-
protected setFieldRowValue(rows: any[]): void;
|
|
44
|
-
setValue(value: any[] | any, callEvent?: boolean): Promise<void>;
|
|
45
|
-
private getDisplayValue;
|
|
46
|
-
/**
|
|
47
|
-
* Retrieves input value
|
|
48
|
-
* @param value inputted
|
|
49
|
-
* @private
|
|
50
|
-
*/
|
|
51
|
-
protected getValue(value: any): any[] | IDictionary<any>[];
|
|
52
|
-
/**
|
|
53
|
-
* Retrieves input value
|
|
54
|
-
* @param value inputed
|
|
55
|
-
* @protected
|
|
56
|
-
*/
|
|
57
|
-
protected getValues(value: IDictionary<any>[]): IDictionary<any>[] | any[];
|
|
58
|
-
/**
|
|
59
|
-
* Updates search value
|
|
60
|
-
* @param value Search value
|
|
61
|
-
*/
|
|
62
|
-
updateSearch(value: string): Promise<void>;
|
|
63
|
-
/**
|
|
64
|
-
* Inserts selected items in datasource
|
|
65
|
-
*/
|
|
66
|
-
protected insertSelected(): void;
|
|
67
|
-
protected removePushedValue(): void;
|
|
68
|
-
protected doSearch(value: string): Promise<void>;
|
|
69
|
-
/**
|
|
70
|
-
* Removes unselected inserts from datasource
|
|
71
|
-
*/
|
|
72
|
-
private removeInserts;
|
|
73
|
-
/**
|
|
74
|
-
* Return formatted dataText and values
|
|
75
|
-
*/
|
|
76
|
-
formatter(value: IDictionary<any>[]): any;
|
|
77
|
-
/**
|
|
78
|
-
* Returns the text shown when there's one or more selected items that doesn't fit in the input
|
|
79
|
-
*/
|
|
80
|
-
getMoreChipText(moreChip: number): string;
|
|
81
|
-
showLoadMore(): boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Load more data
|
|
84
|
-
*/
|
|
85
|
-
loadMore(): Promise<void>;
|
|
86
|
-
/**
|
|
87
|
-
* Triggered when the component loses focus.
|
|
88
|
-
* @param event DOM event
|
|
89
|
-
* @param element Element that lost the focus
|
|
90
|
-
*/
|
|
91
|
-
blur(event: Event, element: any): void;
|
|
92
|
-
/**
|
|
93
|
-
* Dispatches select/unselect event
|
|
94
|
-
* @param isChanged checked is changed
|
|
95
|
-
* @param event DOM event
|
|
96
|
-
* @param element DOM Element
|
|
97
|
-
*/
|
|
98
|
-
onSelectAll(isSelected: boolean, event: Event, element: any): void;
|
|
99
|
-
selectAllItems(): Promise<void>;
|
|
100
|
-
unSelectAllItems(): Promise<void>;
|
|
101
|
-
protected checkValueOnBlur(): void;
|
|
102
|
-
protected afterFocus(): Promise<void>;
|
|
103
|
-
private setCache;
|
|
104
|
-
protected registerGetCallback(): void;
|
|
105
|
-
/**
|
|
106
|
-
* Updates input rules.
|
|
107
|
-
*/
|
|
108
|
-
protected updateRules(): void;
|
|
109
|
-
/**
|
|
110
|
-
* Retrieves value based on the returnObject definition
|
|
111
|
-
*/
|
|
112
|
-
protected getReturnValue(value: IDictionary[] | null): any[];
|
|
113
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { IDictionary, IEventParam } from '@zeedhi/core';
|
|
2
|
-
import { EventDef, IComponentEvents, IComponentRender } from '../zd-component/interfaces';
|
|
3
|
-
import { SvgMap } from './svg-map';
|
|
4
|
-
export interface ISvgMapEventParam extends IEventParam<SvgMap> {
|
|
5
|
-
area: SVGElement;
|
|
6
|
-
}
|
|
7
|
-
export interface ISvgMapEvents<T = ISvgMapEventParam | IEventParam<any>> extends IComponentEvents<T> {
|
|
8
|
-
areaClick?: EventDef<T>;
|
|
9
|
-
}
|
|
10
|
-
export type TooltipData = {
|
|
11
|
-
labels: IDictionary;
|
|
12
|
-
data: IDictionary[];
|
|
13
|
-
};
|
|
14
|
-
export interface ISvgMap extends IComponentRender {
|
|
15
|
-
areaColor?: string;
|
|
16
|
-
areaHoverColor?: string;
|
|
17
|
-
areaSelectColor?: string;
|
|
18
|
-
events?: ISvgMapEvents;
|
|
19
|
-
height?: string | number;
|
|
20
|
-
multiple?: boolean;
|
|
21
|
-
selectedArea?: string | string[];
|
|
22
|
-
src?: string;
|
|
23
|
-
width?: string | number;
|
|
24
|
-
tooltipData?: TooltipData;
|
|
25
|
-
keyColumn?: string;
|
|
26
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ComponentRender } from '../zd-component/component-render';
|
|
2
|
-
import { ISvgMap, ISvgMapEvents, TooltipData } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for SvgMap component.
|
|
5
|
-
*/
|
|
6
|
-
export declare class SvgMap extends ComponentRender implements ISvgMap {
|
|
7
|
-
areaColor?: string;
|
|
8
|
-
areaHoverColor?: string;
|
|
9
|
-
areaSelectColor?: string;
|
|
10
|
-
events: ISvgMapEvents;
|
|
11
|
-
height: string | number;
|
|
12
|
-
multiple: boolean;
|
|
13
|
-
width: string | number;
|
|
14
|
-
svgContent: string;
|
|
15
|
-
svgContainer: any;
|
|
16
|
-
tooltipData?: TooltipData | undefined;
|
|
17
|
-
loading?: boolean;
|
|
18
|
-
keyColumn: string;
|
|
19
|
-
private mapAreas;
|
|
20
|
-
private srcValue;
|
|
21
|
-
private selectedAreaValue;
|
|
22
|
-
protected viewBeforeUpdate?: () => void;
|
|
23
|
-
protected viewUpdate?: () => void;
|
|
24
|
-
constructor(props: ISvgMap);
|
|
25
|
-
get src(): string;
|
|
26
|
-
set src(value: string);
|
|
27
|
-
get selectedArea(): string | string[];
|
|
28
|
-
set selectedArea(value: string | string[]);
|
|
29
|
-
private updateSelectedArea;
|
|
30
|
-
private getSVG;
|
|
31
|
-
setViewBeforeUpdate(beforeUpdate: () => void): void;
|
|
32
|
-
setViewUpdate(update: () => void): void;
|
|
33
|
-
updateSVGContainer(): void;
|
|
34
|
-
mapClick(element: SVGElement): void;
|
|
35
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Toggleable } from '../zd-toggleable/toggleable';
|
|
2
|
-
import { ISwitch } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for Switch component.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Switch extends Toggleable implements ISwitch {
|
|
7
|
-
/**
|
|
8
|
-
* It can make switch render in inset mode.
|
|
9
|
-
*/
|
|
10
|
-
inset: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Create a new Switch.
|
|
13
|
-
* @param props Switch properties
|
|
14
|
-
*/
|
|
15
|
-
constructor(props: ISwitch);
|
|
16
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { IEventParam } from '@zeedhi/core';
|
|
2
|
-
import { IIterable, IIterableProps } from '../zd-iterable/interfaces';
|
|
3
|
-
import { Table } from './table';
|
|
4
|
-
export type ITabletEvent = IEventParam<Table>;
|
|
5
|
-
export interface ITableProps extends IIterableProps {
|
|
6
|
-
caption?: ITableCaption;
|
|
7
|
-
showTableHead?: boolean;
|
|
8
|
-
fillWidth?: boolean;
|
|
9
|
-
height?: number | string;
|
|
10
|
-
maxHeight?: number | string;
|
|
11
|
-
minHeight?: number | string;
|
|
12
|
-
}
|
|
13
|
-
export interface ITable extends IIterable {
|
|
14
|
-
caption: ITableCaption;
|
|
15
|
-
showTableHead: boolean;
|
|
16
|
-
fillWidth: boolean;
|
|
17
|
-
height: number | string;
|
|
18
|
-
maxHeight: number | string;
|
|
19
|
-
minHeight: number | string;
|
|
20
|
-
}
|
|
21
|
-
export interface ITableCaption {
|
|
22
|
-
label?: string;
|
|
23
|
-
isVisible?: boolean;
|
|
24
|
-
align?: string;
|
|
25
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Column } from '../zd-iterable/column';
|
|
2
|
-
import { IColumn } from '../zd-iterable/interfaces';
|
|
3
|
-
import { Iterable } from '../zd-iterable/iterable';
|
|
4
|
-
import { ITable, ITableCaption, ITableProps } from './interfaces';
|
|
5
|
-
/**
|
|
6
|
-
* Base class for Table component.
|
|
7
|
-
*/
|
|
8
|
-
export declare class Table extends Iterable implements ITable {
|
|
9
|
-
/**
|
|
10
|
-
* Defines table caption.
|
|
11
|
-
*/
|
|
12
|
-
caption: ITableCaption;
|
|
13
|
-
/**
|
|
14
|
-
* Controls table width.
|
|
15
|
-
*/
|
|
16
|
-
fillWidth: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Controls table head visibility.
|
|
19
|
-
*/
|
|
20
|
-
showTableHead: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Defines the component height. Possible values for this property can be
|
|
23
|
-
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
24
|
-
*/
|
|
25
|
-
height: string | number;
|
|
26
|
-
/**
|
|
27
|
-
* Defines the component min height. Possible values for this property can be
|
|
28
|
-
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
29
|
-
*/
|
|
30
|
-
minHeight: string | number;
|
|
31
|
-
/**
|
|
32
|
-
* Defines the component max height. Possible values for this property can be
|
|
33
|
-
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
34
|
-
*/
|
|
35
|
-
maxHeight: string | number;
|
|
36
|
-
/**
|
|
37
|
-
* Creates a new Table.
|
|
38
|
-
* @param table Table properties
|
|
39
|
-
*/
|
|
40
|
-
constructor(props: ITableProps);
|
|
41
|
-
createColumn(column: IColumn): Column;
|
|
42
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { IEventParam } from '@zeedhi/core';
|
|
2
|
-
import { EventDef, IComponent, IComponentEvents, IComponentRender } from '../zd-component/interfaces';
|
|
3
|
-
import { Tabs } from './tabs';
|
|
4
|
-
export type ITabsEventParam = IEventParam<Tabs>;
|
|
5
|
-
export interface ITabsBeforeChangeEventParam extends ITabsEventParam {
|
|
6
|
-
tabIndex: number;
|
|
7
|
-
}
|
|
8
|
-
export interface ITabsEvents<T = ITabsEventParam | ITabsBeforeChangeEventParam | IEventParam<any>> extends IComponentEvents<T> {
|
|
9
|
-
change?: EventDef<T>;
|
|
10
|
-
beforeChange?: EventDef<T>;
|
|
11
|
-
}
|
|
12
|
-
export interface ITab extends IComponent {
|
|
13
|
-
tabTitle: string;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
lazyLoad?: boolean;
|
|
16
|
-
color?: string;
|
|
17
|
-
dense?: boolean;
|
|
18
|
-
direction?: 'horizontal' | 'vertical';
|
|
19
|
-
fixed?: boolean;
|
|
20
|
-
iconName?: string;
|
|
21
|
-
rounded?: string | number | boolean;
|
|
22
|
-
selectedClass?: string;
|
|
23
|
-
value?: any;
|
|
24
|
-
variant?: 'text' | 'flat' | 'elevated' | 'tonal' | 'outlined' | 'plain';
|
|
25
|
-
width?: string | number;
|
|
26
|
-
}
|
|
27
|
-
export interface ITabs extends IComponentRender {
|
|
28
|
-
activeTab?: number;
|
|
29
|
-
tabs?: ITab[];
|
|
30
|
-
height?: number | string;
|
|
31
|
-
maxHeight?: number | string;
|
|
32
|
-
minHeight?: number | string;
|
|
33
|
-
color?: string;
|
|
34
|
-
backgroudColor?: string;
|
|
35
|
-
dense?: boolean;
|
|
36
|
-
direction?: 'horizontal' | 'vertical';
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
grow?: boolean;
|
|
39
|
-
max?: number;
|
|
40
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Component } from '../zd-component/component';
|
|
2
|
-
import { ITab } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for Tab component.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Tab extends Component implements ITab {
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
tabTitle: string;
|
|
9
|
-
lazyLoad: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Applies specified color to the control
|
|
12
|
-
*/
|
|
13
|
-
color: string;
|
|
14
|
-
/**
|
|
15
|
-
* Adjusts the vertical height used by the component.
|
|
16
|
-
*/
|
|
17
|
-
dense: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Changes the direction of the tabs. Can be either horizontal or vertical.
|
|
20
|
-
*/
|
|
21
|
-
direction: 'horizontal' | 'vertical';
|
|
22
|
-
/**
|
|
23
|
-
* Forces component to take up all available space up to
|
|
24
|
-
* their maximum width (300px), and centers it.
|
|
25
|
-
*/
|
|
26
|
-
fixed: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Enable and show the icon with respective icon name.
|
|
29
|
-
*/
|
|
30
|
-
iconName?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Designates the border-radius applied to the component.
|
|
33
|
-
*/
|
|
34
|
-
rounded: string | number | boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Configure the active CSS class applied when an item is selected.
|
|
37
|
-
*/
|
|
38
|
-
selectedClass: string;
|
|
39
|
-
/**
|
|
40
|
-
* The value used when the component is selected in a group.
|
|
41
|
-
* If not provided, a unique ID will be used.
|
|
42
|
-
*/
|
|
43
|
-
value: any;
|
|
44
|
-
/**
|
|
45
|
-
* Applies a distinct style to the component
|
|
46
|
-
*/
|
|
47
|
-
variant: 'text' | 'flat' | 'elevated' | 'tonal' | 'outlined' | 'plain';
|
|
48
|
-
/**
|
|
49
|
-
* Sets the width for the component.
|
|
50
|
-
*/
|
|
51
|
-
width?: string | number;
|
|
52
|
-
/**
|
|
53
|
-
* Create a new Tab.
|
|
54
|
-
* @param props Tab properties
|
|
55
|
-
*/
|
|
56
|
-
constructor(props: ITab);
|
|
57
|
-
}
|