@zeedhi/common 1.123.0 → 1.125.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/zd-common.esm.js +6 -6
- package/dist/zd-common.umd.js +6 -6
- package/package.json +2 -2
- package/types/components/zd-date/date-range.d.ts +1 -1
- package/types/components/zd-date/date.d.ts +1 -1
- package/types/components/zd-date/interfaces.d.ts +1 -1
- package/types/components/zd-time/interfaces.d.ts +1 -0
- package/types/components/zd-time/time.d.ts +1 -1
- package/types/services/zd-json-cache/json-cache-service.d.ts +12 -0
- 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,199 +0,0 @@
|
|
|
1
|
-
import { ComponentRender } from '../zd-component/component-render';
|
|
2
|
-
import { IComponentRender } from '../zd-component/interfaces';
|
|
3
|
-
import { IMenu, IMenuItem } from './interfaces';
|
|
4
|
-
/**
|
|
5
|
-
* Base class for Menu component.
|
|
6
|
-
*/
|
|
7
|
-
export declare class Menu extends ComponentRender implements IMenu {
|
|
8
|
-
/**
|
|
9
|
-
* Defines if the menu is an application menu
|
|
10
|
-
*/
|
|
11
|
-
app: boolean | string;
|
|
12
|
-
/**
|
|
13
|
-
* Defines if the menu must be rendered inside an absolute div
|
|
14
|
-
*/
|
|
15
|
-
absolute: boolean | string;
|
|
16
|
-
/**
|
|
17
|
-
* Defines if the menu should rests under the application toolbar
|
|
18
|
-
*/
|
|
19
|
-
clipped: boolean | string;
|
|
20
|
-
/**
|
|
21
|
-
* Applies position: fixed to the menu
|
|
22
|
-
*/
|
|
23
|
-
fixed: boolean | string;
|
|
24
|
-
/**
|
|
25
|
-
* Defines if the menu should have a visible container
|
|
26
|
-
*/
|
|
27
|
-
floating: boolean | string;
|
|
28
|
-
/**
|
|
29
|
-
* Defines if the menu should stay visible regardless of screen size
|
|
30
|
-
*/
|
|
31
|
-
permanent: boolean | string;
|
|
32
|
-
/**
|
|
33
|
-
* Create the menu with smaller items.
|
|
34
|
-
*/
|
|
35
|
-
dense: boolean | string;
|
|
36
|
-
/**
|
|
37
|
-
* Create the menu with condensed width. Only icons and no label.
|
|
38
|
-
*/
|
|
39
|
-
mini: boolean | string;
|
|
40
|
-
/**
|
|
41
|
-
* Defines the width of the menu when in mini state
|
|
42
|
-
*/
|
|
43
|
-
miniWidth: number | string;
|
|
44
|
-
/**
|
|
45
|
-
* Defines if the menu is mini
|
|
46
|
-
*/
|
|
47
|
-
miniState: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Defines if the menu is temporary. Temporary menu sits over above the application and uses a overlay div.
|
|
50
|
-
*/
|
|
51
|
-
temporary: boolean | string;
|
|
52
|
-
/**
|
|
53
|
-
* Array of menu items
|
|
54
|
-
*/
|
|
55
|
-
private menuItems;
|
|
56
|
-
/**
|
|
57
|
-
* Defines if the close event will turn menu to mini
|
|
58
|
-
*/
|
|
59
|
-
closeToMini: boolean | string;
|
|
60
|
-
/**
|
|
61
|
-
* Defines if the search is shown
|
|
62
|
-
*/
|
|
63
|
-
showSearch: boolean | string;
|
|
64
|
-
/**
|
|
65
|
-
* Defines if items are local
|
|
66
|
-
*/
|
|
67
|
-
isLocal: boolean | string;
|
|
68
|
-
/**
|
|
69
|
-
* Defines if menu is opened
|
|
70
|
-
*/
|
|
71
|
-
drawer: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Initial opened prop value
|
|
74
|
-
*/
|
|
75
|
-
openedInitialValue?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Defines if the mouse is over the menu
|
|
78
|
-
*/
|
|
79
|
-
mouseOver: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Defines the menu width in pixels
|
|
82
|
-
*/
|
|
83
|
-
width: number | string;
|
|
84
|
-
/**
|
|
85
|
-
* Defines the mobile breakpoint in pixels
|
|
86
|
-
*/
|
|
87
|
-
mobileBreakpoint: number | string;
|
|
88
|
-
/**
|
|
89
|
-
* Array of components to be rendered on the top part of the menu
|
|
90
|
-
*/
|
|
91
|
-
topSlot: IComponentRender[];
|
|
92
|
-
/**
|
|
93
|
-
* Object to store all the routes
|
|
94
|
-
*/
|
|
95
|
-
private routes;
|
|
96
|
-
/**
|
|
97
|
-
* Selected path
|
|
98
|
-
*/
|
|
99
|
-
private selectedPath;
|
|
100
|
-
/**
|
|
101
|
-
* Array of selected items
|
|
102
|
-
*/
|
|
103
|
-
private selectedItems;
|
|
104
|
-
/**
|
|
105
|
-
* Defines the url to get menu items
|
|
106
|
-
*/
|
|
107
|
-
private menuItemsUrl;
|
|
108
|
-
private openingMenuTimeout;
|
|
109
|
-
/** Control toolip for overflown items */
|
|
110
|
-
showTooltip: boolean;
|
|
111
|
-
/** Toolip text for overflown items */
|
|
112
|
-
tooltipText: string;
|
|
113
|
-
/** Toolip anchor */
|
|
114
|
-
tooltipAnchor?: HTMLElement;
|
|
115
|
-
/** Toolip content props */
|
|
116
|
-
tooltipContentProps?: any;
|
|
117
|
-
/** Filtered menu items */
|
|
118
|
-
private filteredMenuItems;
|
|
119
|
-
/** Search value */
|
|
120
|
-
private searchValue;
|
|
121
|
-
/** Store the current item focused */
|
|
122
|
-
currentItem: IMenuItem | null;
|
|
123
|
-
cache?: boolean;
|
|
124
|
-
disableRouteWatcher?: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* Creates a new Menu.
|
|
127
|
-
* @param props Menu properties
|
|
128
|
-
*/
|
|
129
|
-
constructor(props: IMenu);
|
|
130
|
-
/**
|
|
131
|
-
* Defines the url to get menu items
|
|
132
|
-
*/
|
|
133
|
-
get itemsUrl(): string;
|
|
134
|
-
set itemsUrl(url: string);
|
|
135
|
-
/**
|
|
136
|
-
* Menu items
|
|
137
|
-
*/
|
|
138
|
-
get items(): IMenuItem[];
|
|
139
|
-
set items(items: IMenuItem[]);
|
|
140
|
-
get opened(): boolean;
|
|
141
|
-
set opened(openedValue: boolean);
|
|
142
|
-
/**
|
|
143
|
-
* Get menu items from a given url
|
|
144
|
-
* @param element Element mounted reference
|
|
145
|
-
*/
|
|
146
|
-
onMounted(element: any): void;
|
|
147
|
-
/**
|
|
148
|
-
* Load the menu metadata
|
|
149
|
-
* @param url url of the json file
|
|
150
|
-
*/
|
|
151
|
-
loadMetadata(url: string): Promise<void>;
|
|
152
|
-
/**
|
|
153
|
-
* Save all Link routes parent groups
|
|
154
|
-
*/
|
|
155
|
-
private saveLinkRoutes;
|
|
156
|
-
/**
|
|
157
|
-
* Toggle menu
|
|
158
|
-
*/
|
|
159
|
-
toggleMenu(): void;
|
|
160
|
-
/**
|
|
161
|
-
* Close all menu
|
|
162
|
-
*/
|
|
163
|
-
closeAllMenus(): void;
|
|
164
|
-
/**
|
|
165
|
-
* Saves the selected path
|
|
166
|
-
* @param path Path name
|
|
167
|
-
*/
|
|
168
|
-
selectPath(path: string): void;
|
|
169
|
-
/**
|
|
170
|
-
* Select an item
|
|
171
|
-
* @param item Menu item
|
|
172
|
-
*/
|
|
173
|
-
selectItem(items: IMenuItem[]): void;
|
|
174
|
-
/**
|
|
175
|
-
* @param item Menu item
|
|
176
|
-
* @returns Item is selected or not
|
|
177
|
-
*/
|
|
178
|
-
isSelected(item: IMenuItem): boolean;
|
|
179
|
-
menuMouseEnter(): void;
|
|
180
|
-
/**
|
|
181
|
-
* Open all selected items
|
|
182
|
-
*/
|
|
183
|
-
openSelectedTree(): void;
|
|
184
|
-
menuMouseLeave(): void;
|
|
185
|
-
/**
|
|
186
|
-
* Responds to Url changes
|
|
187
|
-
*/
|
|
188
|
-
urlChanged(current: any): void;
|
|
189
|
-
get search(): string;
|
|
190
|
-
set search(value: string);
|
|
191
|
-
clearSearch(): void;
|
|
192
|
-
/**
|
|
193
|
-
* Search inside menu items
|
|
194
|
-
*/
|
|
195
|
-
doSearch(): void;
|
|
196
|
-
private getAccessorValue;
|
|
197
|
-
private isItemVisible;
|
|
198
|
-
private searchItems;
|
|
199
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { IEventParam } from '@zeedhi/core';
|
|
2
|
-
import { IButton } from '../zd-button/interfaces';
|
|
3
|
-
import { EventDef, IComponent, IComponentEvents } from '../zd-component/interfaces';
|
|
4
|
-
import { Modal } from './modal';
|
|
5
|
-
export type IModalEvent = IEventParam<Modal>;
|
|
6
|
-
export interface IModalEvents<T = IEventParam<any>> extends IComponentEvents<T> {
|
|
7
|
-
onShow?: EventDef<T>;
|
|
8
|
-
onHide?: EventDef<T>;
|
|
9
|
-
}
|
|
10
|
-
export interface IModalGrid {
|
|
11
|
-
cols?: number | string;
|
|
12
|
-
xs?: number | string;
|
|
13
|
-
sm?: number | string;
|
|
14
|
-
md?: number | string;
|
|
15
|
-
lg?: number | string;
|
|
16
|
-
xl?: number | string;
|
|
17
|
-
'offset-xs'?: number | string;
|
|
18
|
-
'offset-sm'?: number | string;
|
|
19
|
-
'offset-md'?: number | string;
|
|
20
|
-
'offset-lg'?: number | string;
|
|
21
|
-
'offset-xl'?: number | string;
|
|
22
|
-
}
|
|
23
|
-
export interface IModal extends IComponent {
|
|
24
|
-
title?: string;
|
|
25
|
-
fullscreen?: boolean;
|
|
26
|
-
grid?: IModalGrid;
|
|
27
|
-
persistent?: boolean;
|
|
28
|
-
draggable?: boolean;
|
|
29
|
-
dragHandle?: string;
|
|
30
|
-
escKeydownStop?: boolean;
|
|
31
|
-
events?: IModalEvents;
|
|
32
|
-
}
|
|
33
|
-
export interface IModalCloseButton extends IButton {
|
|
34
|
-
modalName: string;
|
|
35
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Button } from '../zd-button/button';
|
|
2
|
-
import { IModalCloseButton } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for Modal Close Button component.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ModalCloseButton extends Button implements IModalCloseButton {
|
|
7
|
-
/**
|
|
8
|
-
* Name of Modal component to be closed
|
|
9
|
-
*/
|
|
10
|
-
modalName: string;
|
|
11
|
-
/**
|
|
12
|
-
* Makes the background transparent (equal to text prop in Vuetify).
|
|
13
|
-
*/
|
|
14
|
-
flat: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Designates the button as icon, round and flat.
|
|
17
|
-
*/
|
|
18
|
-
icon: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Designates the button icon, that will be rendered before the label.
|
|
21
|
-
*/
|
|
22
|
-
iconName: string;
|
|
23
|
-
/**
|
|
24
|
-
* Creates a new modal close button
|
|
25
|
-
* @param props Modal close button structure
|
|
26
|
-
*/
|
|
27
|
-
constructor(props: IModalCloseButton);
|
|
28
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { Component } from '../zd-component/component';
|
|
2
|
-
import { IModal, IModalEvents, IModalGrid } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for Modal component.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Modal extends Component implements IModal {
|
|
7
|
-
/**
|
|
8
|
-
* Sets the modal's title
|
|
9
|
-
*/
|
|
10
|
-
title: string;
|
|
11
|
-
/**
|
|
12
|
-
* If true the modal will open as fullscreen
|
|
13
|
-
*/
|
|
14
|
-
fullscreen: boolean;
|
|
15
|
-
grid: IModalGrid;
|
|
16
|
-
/**
|
|
17
|
-
* If true the modal won't close when overlay is clicked
|
|
18
|
-
*/
|
|
19
|
-
persistent: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Allows modal to be dragged around in the screen
|
|
22
|
-
*/
|
|
23
|
-
draggable: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Css selector of the drag handle
|
|
26
|
-
*/
|
|
27
|
-
dragHandle?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Set if esc keydown event should to stop propagation
|
|
30
|
-
*/
|
|
31
|
-
escKeydownStop?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Defines modal events.
|
|
34
|
-
*/
|
|
35
|
-
events: IModalEvents;
|
|
36
|
-
/**
|
|
37
|
-
* Creates a new modal
|
|
38
|
-
* @param props Modal structure
|
|
39
|
-
*/
|
|
40
|
-
constructor(props: IModal);
|
|
41
|
-
/**
|
|
42
|
-
* Removes modal from modals collection
|
|
43
|
-
*/
|
|
44
|
-
destroy(): void;
|
|
45
|
-
/**
|
|
46
|
-
* Displays modal
|
|
47
|
-
*/
|
|
48
|
-
show(): void;
|
|
49
|
-
/**
|
|
50
|
-
* Closes modal
|
|
51
|
-
*/
|
|
52
|
-
hide(): void;
|
|
53
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { DateInput } from '../zd-date-input/date-input';
|
|
2
|
-
import { IMonth } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for Month Picker component.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Month extends DateInput implements IMonth {
|
|
7
|
-
/**
|
|
8
|
-
* Defines the month format.
|
|
9
|
-
*/
|
|
10
|
-
dateFormat: string;
|
|
11
|
-
/**
|
|
12
|
-
* Defines the month format displayed.
|
|
13
|
-
*/
|
|
14
|
-
displayFormat: string;
|
|
15
|
-
/**
|
|
16
|
-
* Defines the month input format.
|
|
17
|
-
*/
|
|
18
|
-
inputFormat?: string;
|
|
19
|
-
protected isoFormat: string;
|
|
20
|
-
/**
|
|
21
|
-
* Determines the type of the view mode - month for month picker.
|
|
22
|
-
*/
|
|
23
|
-
viewMode: string;
|
|
24
|
-
protected formatterFn: (...args: any) => any;
|
|
25
|
-
protected parserFn: (...args: any) => any;
|
|
26
|
-
/**
|
|
27
|
-
* Creates a new Month picker.
|
|
28
|
-
* @param props Month properties
|
|
29
|
-
*/
|
|
30
|
-
constructor(props: IMonth);
|
|
31
|
-
blur(event: Event, element: any): void;
|
|
32
|
-
focus(event: Event, element: any): void;
|
|
33
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IEventParam } from '@zeedhi/core';
|
|
2
|
-
import { ITextInput } from '../zd-text-input/interfaces';
|
|
3
|
-
import { NumberInput } from './number-input';
|
|
4
|
-
export type INumberEvent = IEventParam<NumberInput>;
|
|
5
|
-
export interface INumberInput extends ITextInput {
|
|
6
|
-
mask?: any;
|
|
7
|
-
value?: number;
|
|
8
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { TextInput } from '../zd-text-input/text-input';
|
|
2
|
-
import { INumberInput } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for Number component
|
|
5
|
-
*/
|
|
6
|
-
export declare class NumberInput extends TextInput implements INumberInput {
|
|
7
|
-
mask: any;
|
|
8
|
-
protected defaultMask: any;
|
|
9
|
-
align: string;
|
|
10
|
-
/**
|
|
11
|
-
* AutoNumeric object
|
|
12
|
-
*/
|
|
13
|
-
autoNumericObj: any;
|
|
14
|
-
private formattedValue?;
|
|
15
|
-
private localValue?;
|
|
16
|
-
protected formatterFn: (...args: any) => any;
|
|
17
|
-
protected parserFn: (...args: any) => any;
|
|
18
|
-
private maskValid;
|
|
19
|
-
/**
|
|
20
|
-
* Creates a new number input
|
|
21
|
-
*/
|
|
22
|
-
constructor(props: INumberInput);
|
|
23
|
-
validateMask(): void;
|
|
24
|
-
get value(): any;
|
|
25
|
-
set value(value: any);
|
|
26
|
-
/**
|
|
27
|
-
* Input displayed value.
|
|
28
|
-
*/
|
|
29
|
-
get displayValue(): any;
|
|
30
|
-
set displayValue(value: any);
|
|
31
|
-
/**
|
|
32
|
-
* Retrieves a formatted value with mask
|
|
33
|
-
* @param value Any value
|
|
34
|
-
* @returns A Formatted value
|
|
35
|
-
*/
|
|
36
|
-
formatter(value: any): string;
|
|
37
|
-
/**
|
|
38
|
-
* Retrieves a parsed value without mask
|
|
39
|
-
* @param value Any value
|
|
40
|
-
* @returns A parsed value
|
|
41
|
-
*/
|
|
42
|
-
parser(value: any): any;
|
|
43
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { TextInput } from '../zd-text-input/text-input';
|
|
2
|
-
import { IPassword } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for Password component.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Password extends TextInput implements IPassword {
|
|
7
|
-
/**
|
|
8
|
-
* Sets password input type.
|
|
9
|
-
*/
|
|
10
|
-
type: string;
|
|
11
|
-
appendIcon: string;
|
|
12
|
-
onCreated(): void;
|
|
13
|
-
/**
|
|
14
|
-
* Change password view
|
|
15
|
-
*/
|
|
16
|
-
toggleView(): void;
|
|
17
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IComponentRender } from '../zd-component/interfaces';
|
|
2
|
-
export interface IProgress extends IComponentRender {
|
|
3
|
-
backgroundColor?: string;
|
|
4
|
-
backgroundOpacity?: string;
|
|
5
|
-
color?: string;
|
|
6
|
-
height?: number | string;
|
|
7
|
-
indeterminate?: boolean;
|
|
8
|
-
centerSlot?: IComponentRender[];
|
|
9
|
-
value?: number | string;
|
|
10
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { ComponentRender } from '../zd-component/component-render';
|
|
2
|
-
import { IComponentRender } from '../zd-component/interfaces';
|
|
3
|
-
import { IProgress } from './interfaces';
|
|
4
|
-
/**
|
|
5
|
-
* Base class for Progress component
|
|
6
|
-
*/
|
|
7
|
-
export declare class Progress extends ComponentRender implements IProgress {
|
|
8
|
-
/**
|
|
9
|
-
* Set component's background color
|
|
10
|
-
*/
|
|
11
|
-
backgroundColor: string;
|
|
12
|
-
/**
|
|
13
|
-
* Set component's background opacity
|
|
14
|
-
*/
|
|
15
|
-
backgroundOpacity: string;
|
|
16
|
-
/**
|
|
17
|
-
* Defines the value color
|
|
18
|
-
*/
|
|
19
|
-
color: string;
|
|
20
|
-
/**
|
|
21
|
-
* Sets the height for the component
|
|
22
|
-
*/
|
|
23
|
-
height: number | string;
|
|
24
|
-
/**
|
|
25
|
-
* Animates the component constantly
|
|
26
|
-
*/
|
|
27
|
-
indeterminate: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Render components on the progress component
|
|
30
|
-
*/
|
|
31
|
-
centerSlot: IComponentRender[];
|
|
32
|
-
/**
|
|
33
|
-
* The percentage value for current progress
|
|
34
|
-
*/
|
|
35
|
-
value: number | string;
|
|
36
|
-
/**
|
|
37
|
-
* Create a new Progress
|
|
38
|
-
* @param props Progress definition
|
|
39
|
-
*/
|
|
40
|
-
constructor(props: IProgress);
|
|
41
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IDatasource, IEventParam } from '@zeedhi/core';
|
|
2
|
-
import { IInput } from '../zd-input/interfaces';
|
|
3
|
-
import { Radio } from './radio';
|
|
4
|
-
export type IRadioEvent = IEventParam<Radio>;
|
|
5
|
-
export interface IRadio extends IInput {
|
|
6
|
-
dataColor?: string;
|
|
7
|
-
dataLabel?: string;
|
|
8
|
-
datasource?: IDatasource;
|
|
9
|
-
dataValue?: string;
|
|
10
|
-
vertical?: boolean;
|
|
11
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { IDatasource } from '@zeedhi/core';
|
|
2
|
-
import { Input } from '../zd-input/input';
|
|
3
|
-
import { IRadio } from './interfaces';
|
|
4
|
-
/**
|
|
5
|
-
* Base class for Radio component.
|
|
6
|
-
*/
|
|
7
|
-
export declare class Radio extends Input implements IRadio {
|
|
8
|
-
/**
|
|
9
|
-
* Field on datasource.data that will be used to set radio's color
|
|
10
|
-
*/
|
|
11
|
-
dataColor: string;
|
|
12
|
-
/**
|
|
13
|
-
* Field on datasource.data that will be used to set radio's label
|
|
14
|
-
*/
|
|
15
|
-
dataLabel: string;
|
|
16
|
-
/**
|
|
17
|
-
* Source of radio items
|
|
18
|
-
*/
|
|
19
|
-
datasource?: IDatasource;
|
|
20
|
-
/**
|
|
21
|
-
* Field on datasource.data that will be used to set radio's value
|
|
22
|
-
*/
|
|
23
|
-
dataValue: string;
|
|
24
|
-
/**
|
|
25
|
-
* Defines the radio list direction
|
|
26
|
-
*/
|
|
27
|
-
vertical: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Create a new Radio.
|
|
30
|
-
* @param props Radio properties
|
|
31
|
-
*/
|
|
32
|
-
constructor(props: IRadio);
|
|
33
|
-
onBeforeDestroy(): void;
|
|
34
|
-
onCreated(): void;
|
|
35
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IEventParam } from '@zeedhi/core';
|
|
2
|
-
import { IComponentRender } from '../zd-component/interfaces';
|
|
3
|
-
import { Row } from './row';
|
|
4
|
-
export type IRowEvent = IEventParam<Row>;
|
|
5
|
-
export interface IRow extends IComponentRender {
|
|
6
|
-
align?: string;
|
|
7
|
-
dense?: boolean;
|
|
8
|
-
justify?: string;
|
|
9
|
-
noGutters?: boolean;
|
|
10
|
-
height?: number | string;
|
|
11
|
-
maxHeight?: number | string;
|
|
12
|
-
minHeight?: number | string;
|
|
13
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ComponentRender } from '../zd-component/component-render';
|
|
2
|
-
import { IRow } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for Row component.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Row extends ComponentRender implements IRow {
|
|
7
|
-
/**
|
|
8
|
-
* Applies the align-items css property.
|
|
9
|
-
* Available options are start, center, end, space-between, space-around and stretch.
|
|
10
|
-
*/
|
|
11
|
-
align?: string;
|
|
12
|
-
dense: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Applies the justify-content css property.
|
|
15
|
-
* Available options are start, center, end, space-between and space-around.
|
|
16
|
-
*/
|
|
17
|
-
justify?: string;
|
|
18
|
-
noGutters: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Defines the component height. Possible values for this property can be
|
|
21
|
-
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
22
|
-
*/
|
|
23
|
-
height: string | number;
|
|
24
|
-
/**
|
|
25
|
-
* Defines the component min height. Possible values for this property can be
|
|
26
|
-
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
27
|
-
*/
|
|
28
|
-
minHeight: string | number;
|
|
29
|
-
/**
|
|
30
|
-
* Defines the component max height. Possible values for this property can be
|
|
31
|
-
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
32
|
-
*/
|
|
33
|
-
maxHeight: string | number;
|
|
34
|
-
/**
|
|
35
|
-
* Creates a new Row.
|
|
36
|
-
* @param props Row properties
|
|
37
|
-
*/
|
|
38
|
-
constructor(props: IRow);
|
|
39
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { IDatasource } from '@zeedhi/core';
|
|
2
|
-
import { ISelectDataValueOut } from '../../utils';
|
|
3
|
-
import { SearchParam } from '../../utils/datasource-searcher/interfaces';
|
|
4
|
-
import { IComponentRender } from '../zd-component/interfaces';
|
|
5
|
-
import { ITextInput } from '../zd-text-input/interfaces';
|
|
6
|
-
export interface ISelect extends ITextInput, ISelectDataValueOut {
|
|
7
|
-
autocomplete?: boolean;
|
|
8
|
-
autoSelection?: boolean;
|
|
9
|
-
datasource?: IDatasource;
|
|
10
|
-
dataText?: string | any[];
|
|
11
|
-
dataTextDiscrete?: string | any[];
|
|
12
|
-
dataTextSeparator?: string;
|
|
13
|
-
dataValue?: string;
|
|
14
|
-
dataDisabled?: string;
|
|
15
|
-
menuMaxHeight?: string | number;
|
|
16
|
-
menuMaxWidth?: string | number;
|
|
17
|
-
preventLoadOnFocus?: boolean;
|
|
18
|
-
returnObject?: boolean;
|
|
19
|
-
itemBeforeSlot?: IComponentRender[];
|
|
20
|
-
itemAfterSlot?: IComponentRender[];
|
|
21
|
-
disabledItems?: any[];
|
|
22
|
-
manualMode?: boolean;
|
|
23
|
-
searchParam?: SearchParam;
|
|
24
|
-
}
|