@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.
Files changed (220) hide show
  1. package/dist/zd-common.esm.js +6 -6
  2. package/dist/zd-common.umd.js +6 -6
  3. package/package.json +2 -2
  4. package/types/components/zd-date/date-range.d.ts +1 -1
  5. package/types/components/zd-date/date.d.ts +1 -1
  6. package/types/components/zd-date/interfaces.d.ts +1 -1
  7. package/types/components/zd-time/interfaces.d.ts +1 -0
  8. package/types/components/zd-time/time.d.ts +1 -1
  9. package/types/services/zd-json-cache/json-cache-service.d.ts +12 -0
  10. package/dist/types/components/index.d.ts +0 -151
  11. package/dist/types/components/zd-alert/alert.d.ts +0 -94
  12. package/dist/types/components/zd-alert/interfaces.d.ts +0 -18
  13. package/dist/types/components/zd-badge/badge.d.ts +0 -28
  14. package/dist/types/components/zd-badge/interfaces.d.ts +0 -10
  15. package/dist/types/components/zd-breadcrumbs/breadcrumbs.d.ts +0 -32
  16. package/dist/types/components/zd-breadcrumbs/interfaces.d.ts +0 -24
  17. package/dist/types/components/zd-button/button.d.ts +0 -89
  18. package/dist/types/components/zd-button/interfaces.d.ts +0 -48
  19. package/dist/types/components/zd-button-group/button-group.d.ts +0 -67
  20. package/dist/types/components/zd-button-group/interfaces.d.ts +0 -25
  21. package/dist/types/components/zd-card/card.d.ts +0 -152
  22. package/dist/types/components/zd-card/interfaces.d.ts +0 -40
  23. package/dist/types/components/zd-carousel/carousel.d.ts +0 -163
  24. package/dist/types/components/zd-carousel/interfaces.d.ts +0 -49
  25. package/dist/types/components/zd-checkbox/checkbox.d.ts +0 -12
  26. package/dist/types/components/zd-checkbox/interfaces.d.ts +0 -5
  27. package/dist/types/components/zd-checkbox-multiple/checkbox-multiple.d.ts +0 -39
  28. package/dist/types/components/zd-checkbox-multiple/interfaces.d.ts +0 -13
  29. package/dist/types/components/zd-chip/chip.d.ts +0 -60
  30. package/dist/types/components/zd-chip/interfaces.d.ts +0 -18
  31. package/dist/types/components/zd-code-viewer/code-viewer.d.ts +0 -86
  32. package/dist/types/components/zd-code-viewer/interfaces.d.ts +0 -13
  33. package/dist/types/components/zd-col/col.d.ts +0 -33
  34. package/dist/types/components/zd-col/interfaces.d.ts +0 -15
  35. package/dist/types/components/zd-collapse-card/collapse-card.d.ts +0 -56
  36. package/dist/types/components/zd-collapse-card/interfaces.d.ts +0 -14
  37. package/dist/types/components/zd-component/child-not-found.d.ts +0 -6
  38. package/dist/types/components/zd-component/component-render.d.ts +0 -16
  39. package/dist/types/components/zd-component/component.d.ts +0 -120
  40. package/dist/types/components/zd-component/interfaces.d.ts +0 -74
  41. package/dist/types/components/zd-container/container.d.ts +0 -45
  42. package/dist/types/components/zd-container/interfaces.d.ts +0 -12
  43. package/dist/types/components/zd-currency/currency.d.ts +0 -12
  44. package/dist/types/components/zd-currency/interfaces.d.ts +0 -6
  45. package/dist/types/components/zd-date-input/date-input.d.ts +0 -152
  46. package/dist/types/components/zd-date-input/interfaces.d.ts +0 -27
  47. package/dist/types/components/zd-date-range/date-range.d.ts +0 -158
  48. package/dist/types/components/zd-date-range/interfaces.d.ts +0 -18
  49. package/dist/types/components/zd-dialog/dialog.d.ts +0 -76
  50. package/dist/types/components/zd-dialog/interfaces.d.ts +0 -13
  51. package/dist/types/components/zd-divider/divider.d.ts +0 -20
  52. package/dist/types/components/zd-divider/interfaces.d.ts +0 -8
  53. package/dist/types/components/zd-dropdown/dropdown.d.ts +0 -81
  54. package/dist/types/components/zd-dropdown/interfaces.d.ts +0 -23
  55. package/dist/types/components/zd-footer/footer.d.ts +0 -80
  56. package/dist/types/components/zd-footer/interfaces.d.ts +0 -26
  57. package/dist/types/components/zd-form/form.d.ts +0 -174
  58. package/dist/types/components/zd-form/interfaces.d.ts +0 -36
  59. package/dist/types/components/zd-frame/frame.d.ts +0 -81
  60. package/dist/types/components/zd-frame/interfaces.d.ts +0 -23
  61. package/dist/types/components/zd-frame-page/frame-page.d.ts +0 -14
  62. package/dist/types/components/zd-frame-page/interfaces.d.ts +0 -4
  63. package/dist/types/components/zd-grid/data-navigator.d.ts +0 -12
  64. package/dist/types/components/zd-grid/data-selector.d.ts +0 -25
  65. package/dist/types/components/zd-grid/grid-column.d.ts +0 -47
  66. package/dist/types/components/zd-grid/grid-events.d.ts +0 -26
  67. package/dist/types/components/zd-grid/grid.d.ts +0 -85
  68. package/dist/types/components/zd-grid/index.d.ts +0 -11
  69. package/dist/types/components/zd-grid/interfaces.d.ts +0 -148
  70. package/dist/types/components/zd-grid/iterable-table.d.ts +0 -28
  71. package/dist/types/components/zd-grid/keymap-merger.d.ts +0 -26
  72. package/dist/types/components/zd-grid/keymap-navigation.d.ts +0 -6
  73. package/dist/types/components/zd-grid/table-action-builder.d.ts +0 -19
  74. package/dist/types/components/zd-grid/view-navigator.d.ts +0 -10
  75. package/dist/types/components/zd-grid-editable/data-editor-with-add.d.ts +0 -35
  76. package/dist/types/components/zd-grid-editable/data-editor.d.ts +0 -64
  77. package/dist/types/components/zd-grid-editable/errors/index.d.ts +0 -2
  78. package/dist/types/components/zd-grid-editable/errors/not-editing.d.ts +0 -6
  79. package/dist/types/components/zd-grid-editable/errors/row-not-found.d.ts +0 -6
  80. package/dist/types/components/zd-grid-editable/grid-column-editable.d.ts +0 -9
  81. package/dist/types/components/zd-grid-editable/grid-editable-controller.d.ts +0 -8
  82. package/dist/types/components/zd-grid-editable/grid-editable-events.d.ts +0 -32
  83. package/dist/types/components/zd-grid-editable/grid-editable.d.ts +0 -124
  84. package/dist/types/components/zd-grid-editable/index.d.ts +0 -8
  85. package/dist/types/components/zd-grid-editable/interfaces.d.ts +0 -66
  86. package/dist/types/components/zd-grid-editable/keymap-editing.d.ts +0 -7
  87. package/dist/types/components/zd-header/header.d.ts +0 -94
  88. package/dist/types/components/zd-header/interfaces.d.ts +0 -29
  89. package/dist/types/components/zd-icon/icon.d.ts +0 -55
  90. package/dist/types/components/zd-icon/interfaces.d.ts +0 -13
  91. package/dist/types/components/zd-image/image.d.ts +0 -73
  92. package/dist/types/components/zd-image/interfaces.d.ts +0 -17
  93. package/dist/types/components/zd-increment/increment.d.ts +0 -56
  94. package/dist/types/components/zd-increment/interfaces.d.ts +0 -9
  95. package/dist/types/components/zd-input/input-factory.d.ts +0 -6
  96. package/dist/types/components/zd-input/input.d.ts +0 -223
  97. package/dist/types/components/zd-input/interfaces.d.ts +0 -38
  98. package/dist/types/components/zd-iterable/column-not-found.d.ts +0 -6
  99. package/dist/types/components/zd-iterable/column.d.ts +0 -78
  100. package/dist/types/components/zd-iterable/conditions-manager.d.ts +0 -49
  101. package/dist/types/components/zd-iterable/interfaces.d.ts +0 -103
  102. package/dist/types/components/zd-iterable/iterable-columns-button-controller.d.ts +0 -9
  103. package/dist/types/components/zd-iterable/iterable-columns-button.d.ts +0 -35
  104. package/dist/types/components/zd-iterable/iterable-controller.d.ts +0 -8
  105. package/dist/types/components/zd-iterable/iterable-page-component.d.ts +0 -27
  106. package/dist/types/components/zd-iterable/iterable-page-info.d.ts +0 -7
  107. package/dist/types/components/zd-iterable/iterable-page-size.d.ts +0 -62
  108. package/dist/types/components/zd-iterable/iterable-pagination.d.ts +0 -28
  109. package/dist/types/components/zd-iterable/iterable.d.ts +0 -77
  110. package/dist/types/components/zd-iterable/search.d.ts +0 -31
  111. package/dist/types/components/zd-iterable-component-render/interfaces.d.ts +0 -34
  112. package/dist/types/components/zd-iterable-component-render/iterable-component-render.d.ts +0 -84
  113. package/dist/types/components/zd-layout/interfaces.d.ts +0 -7
  114. package/dist/types/components/zd-layout/layout.d.ts +0 -9
  115. package/dist/types/components/zd-list/interfaces.d.ts +0 -44
  116. package/dist/types/components/zd-list/item-not-found.d.ts +0 -6
  117. package/dist/types/components/zd-list/list-group.d.ts +0 -30
  118. package/dist/types/components/zd-list/list-item.d.ts +0 -46
  119. package/dist/types/components/zd-list/list.d.ts +0 -81
  120. package/dist/types/components/zd-loading/interfaces.d.ts +0 -7
  121. package/dist/types/components/zd-loading/loading.d.ts +0 -21
  122. package/dist/types/components/zd-login/interfaces.d.ts +0 -25
  123. package/dist/types/components/zd-login/login-button.d.ts +0 -50
  124. package/dist/types/components/zd-login/login.d.ts +0 -54
  125. package/dist/types/components/zd-main/interfaces.d.ts +0 -5
  126. package/dist/types/components/zd-main/main.d.ts +0 -7
  127. package/dist/types/components/zd-master-detail/detail-not-found.d.ts +0 -7
  128. package/dist/types/components/zd-master-detail/interfaces.d.ts +0 -10
  129. package/dist/types/components/zd-master-detail/master-detail.d.ts +0 -18
  130. package/dist/types/components/zd-master-detail/master-not-found.d.ts +0 -7
  131. package/dist/types/components/zd-menu/interfaces.d.ts +0 -68
  132. package/dist/types/components/zd-menu/menu-button.d.ts +0 -29
  133. package/dist/types/components/zd-menu/menu-group.d.ts +0 -61
  134. package/dist/types/components/zd-menu/menu-link.d.ts +0 -50
  135. package/dist/types/components/zd-menu/menu-separator.d.ts +0 -7
  136. package/dist/types/components/zd-menu/menu.d.ts +0 -199
  137. package/dist/types/components/zd-modal/interfaces.d.ts +0 -35
  138. package/dist/types/components/zd-modal/modal-close-button.d.ts +0 -28
  139. package/dist/types/components/zd-modal/modal.d.ts +0 -53
  140. package/dist/types/components/zd-month/interfaces.d.ts +0 -6
  141. package/dist/types/components/zd-month/month.d.ts +0 -33
  142. package/dist/types/components/zd-number-input/interfaces.d.ts +0 -8
  143. package/dist/types/components/zd-number-input/number-input.d.ts +0 -43
  144. package/dist/types/components/zd-password/interfaces.d.ts +0 -6
  145. package/dist/types/components/zd-password/password.d.ts +0 -17
  146. package/dist/types/components/zd-progress/interfaces.d.ts +0 -10
  147. package/dist/types/components/zd-progress/progress.d.ts +0 -41
  148. package/dist/types/components/zd-radio/interfaces.d.ts +0 -11
  149. package/dist/types/components/zd-radio/radio.d.ts +0 -35
  150. package/dist/types/components/zd-row/interfaces.d.ts +0 -13
  151. package/dist/types/components/zd-row/row.d.ts +0 -39
  152. package/dist/types/components/zd-select/interfaces.d.ts +0 -24
  153. package/dist/types/components/zd-select/select.d.ts +0 -238
  154. package/dist/types/components/zd-select-multiple/interfaces.d.ts +0 -18
  155. package/dist/types/components/zd-select-multiple/select-multiple.d.ts +0 -113
  156. package/dist/types/components/zd-svg-map/interfaces.d.ts +0 -26
  157. package/dist/types/components/zd-svg-map/svg-map.d.ts +0 -35
  158. package/dist/types/components/zd-switch/interfaces.d.ts +0 -7
  159. package/dist/types/components/zd-switch/switch.d.ts +0 -16
  160. package/dist/types/components/zd-table/interfaces.d.ts +0 -25
  161. package/dist/types/components/zd-table/table.d.ts +0 -42
  162. package/dist/types/components/zd-tabs/interfaces.d.ts +0 -40
  163. package/dist/types/components/zd-tabs/tab-not-found.d.ts +0 -11
  164. package/dist/types/components/zd-tabs/tab.d.ts +0 -57
  165. package/dist/types/components/zd-tabs/tabs.d.ts +0 -86
  166. package/dist/types/components/zd-tag/interfaces.d.ts +0 -7
  167. package/dist/types/components/zd-tag/tag.d.ts +0 -13
  168. package/dist/types/components/zd-text/interfaces.d.ts +0 -9
  169. package/dist/types/components/zd-text/text.d.ts +0 -8
  170. package/dist/types/components/zd-text-input/interfaces.d.ts +0 -23
  171. package/dist/types/components/zd-text-input/text-input.d.ts +0 -91
  172. package/dist/types/components/zd-textarea/interfaces.d.ts +0 -21
  173. package/dist/types/components/zd-textarea/textarea.d.ts +0 -71
  174. package/dist/types/components/zd-time/interfaces.d.ts +0 -22
  175. package/dist/types/components/zd-time/time-format-selector.d.ts +0 -8
  176. package/dist/types/components/zd-time/time.d.ts +0 -149
  177. package/dist/types/components/zd-toggleable/interfaces.d.ts +0 -6
  178. package/dist/types/components/zd-toggleable/toggleable.d.ts +0 -21
  179. package/dist/types/components/zd-tooltip/interfaces.d.ts +0 -18
  180. package/dist/types/components/zd-tooltip/tooltip.d.ts +0 -57
  181. package/dist/types/components/zd-tree/interfaces.d.ts +0 -107
  182. package/dist/types/components/zd-tree/tree.d.ts +0 -161
  183. package/dist/types/components/zd-tree-grid/index.d.ts +0 -6
  184. package/dist/types/components/zd-tree-grid/interfaces.d.ts +0 -35
  185. package/dist/types/components/zd-tree-grid/iterable-tree.d.ts +0 -10
  186. package/dist/types/components/zd-tree-grid/keymap-tree.d.ts +0 -7
  187. package/dist/types/components/zd-tree-grid/tree-data-navigator.d.ts +0 -10
  188. package/dist/types/components/zd-tree-grid/tree-data-selector.d.ts +0 -18
  189. package/dist/types/components/zd-tree-grid/tree-grid.d.ts +0 -119
  190. package/dist/types/error/delete-rows.d.ts +0 -7
  191. package/dist/types/error/index.d.ts +0 -3
  192. package/dist/types/error/non-initialized.d.ts +0 -7
  193. package/dist/types/error/zeedhi-error.d.ts +0 -6
  194. package/dist/types/index.d.ts +0 -6
  195. package/dist/types/services/index.d.ts +0 -4
  196. package/dist/types/services/zd-alert/alert-queue.d.ts +0 -13
  197. package/dist/types/services/zd-alert/alert-replace.d.ts +0 -18
  198. package/dist/types/services/zd-alert/alert-service.d.ts +0 -45
  199. package/dist/types/services/zd-alert/alert-stack.d.ts +0 -9
  200. package/dist/types/services/zd-alert/index.d.ts +0 -5
  201. package/dist/types/services/zd-alert/interfaces.d.ts +0 -6
  202. package/dist/types/services/zd-dialog/dialog-service.d.ts +0 -24
  203. package/dist/types/services/zd-loading/loading-service.d.ts +0 -17
  204. package/dist/types/services/zd-modal/modal-service.d.ts +0 -39
  205. package/dist/types/utils/data-value-out/data-value-out.d.ts +0 -5
  206. package/dist/types/utils/data-value-out/index.d.ts +0 -2
  207. package/dist/types/utils/data-value-out/interfaces.d.ts +0 -8
  208. package/dist/types/utils/datasource-searcher/datasource-searcher.d.ts +0 -6
  209. package/dist/types/utils/datasource-searcher/index.d.ts +0 -2
  210. package/dist/types/utils/datasource-searcher/interfaces.d.ts +0 -5
  211. package/dist/types/utils/icons/icons.d.ts +0 -24
  212. package/dist/types/utils/index.d.ts +0 -7
  213. package/dist/types/utils/omit/omit.d.ts +0 -11
  214. package/dist/types/utils/theme/theme.d.ts +0 -34
  215. package/dist/types/utils/tree-data-structure/index.d.ts +0 -2
  216. package/dist/types/utils/tree-data-structure/interfaces.d.ts +0 -30
  217. package/dist/types/utils/tree-data-structure/tree-data-structure.d.ts +0 -155
  218. package/dist/types/utils/unique-by/unique-by.d.ts +0 -3
  219. package/dist/zd-common.js +0 -13133
  220. package/dist/zd-common.min.js +0 -13133
@@ -1,86 +0,0 @@
1
- import { ComponentRender } from '../zd-component/component-render';
2
- import { ITabs, ITabsEvents } from './interfaces';
3
- import { Tab } from './tab';
4
- /**
5
- * Base class for Tabs component.
6
- */
7
- export declare class Tabs extends ComponentRender implements ITabs {
8
- activeTabValue: number;
9
- events: ITabsEvents;
10
- tabs: Tab[];
11
- /**
12
- * Defines the component height. Possible values for this property can be
13
- * <samp>'auto', '100%', '400px' or 400</samp>
14
- */
15
- height: string | number;
16
- /**
17
- * Defines the component min height. Possible values for this property can be
18
- * <samp>'auto', '100%', '400px' or 400</samp>
19
- */
20
- minHeight: string | number;
21
- /**
22
- * Defines the component max height. Possible values for this property can be
23
- * <samp>'auto', '100%', '400px' or 400</samp>
24
- */
25
- maxHeight: string | number;
26
- /**
27
- * Applies specified color to the selected tabs.
28
- */
29
- color?: string | undefined;
30
- /**
31
- * Applies specified color to the control’s background.
32
- */
33
- backgroudColor?: string;
34
- /**
35
- * Adjusts the vertical height used by the component.
36
- */
37
- dense?: boolean;
38
- /**
39
- * Changes the direction of the tabs. Can be either horizontal or vertical
40
- */
41
- direction?: 'horizontal' | 'vertical';
42
- /**
43
- * Puts all children components into a disabled state
44
- */
45
- disabled?: boolean;
46
- /**
47
- * Force v-tab’s to take up all available space
48
- */
49
- grow?: boolean;
50
- /**
51
- * Sets a maximum number of selections that can be made.
52
- */
53
- max?: number;
54
- /**
55
- * Create a new Tabs.
56
- * @param props Tabs properties
57
- */
58
- constructor(props: ITabs);
59
- get activeTab(): number;
60
- set activeTab(index: number);
61
- private getTabs;
62
- getTab(name: string): Tab;
63
- /**
64
- * Method for navigating to the next tab
65
- * @param loop Defines if want a loop navigation
66
- */
67
- nextTab(loop?: boolean): void;
68
- /**
69
- * Method for navigating to the previous tab
70
- * @param loop Defines if want a loop navigation
71
- */
72
- previousTab(loop?: boolean): void;
73
- /**
74
- * Triggered before tab is change.
75
- * @param event DOM event
76
- * @param index Tab index
77
- * @param element Tabs element
78
- */
79
- beforeChange(event?: Event, index?: number, element?: any): void;
80
- /**
81
- * Triggered when active tab changes
82
- * @param event DOM event
83
- * @param element Tabs element
84
- */
85
- change(event?: Event, element?: any): void;
86
- }
@@ -1,7 +0,0 @@
1
- import { IEventParam } from '@zeedhi/core';
2
- import { IComponentRender } from '../zd-component/interfaces';
3
- import { Tag } from './tag';
4
- export type ITagEvent = IEventParam<Tag>;
5
- export interface ITag extends IComponentRender {
6
- tag: string;
7
- }
@@ -1,13 +0,0 @@
1
- import { ComponentRender } from '../zd-component/component-render';
2
- import { ITag } from './interfaces';
3
- /**
4
- * Base class for Tag component.
5
- */
6
- export declare class Tag extends ComponentRender implements ITag {
7
- tag: string;
8
- /**
9
- * Creates a new Tag.
10
- * @param props Tag properties
11
- */
12
- constructor(props: ITag);
13
- }
@@ -1,9 +0,0 @@
1
- import { IEventParam } from '@zeedhi/core';
2
- import { IComponentRender } from '../zd-component/interfaces';
3
- import { Text } from './text';
4
- export type ITextEvent = IEventParam<Text>;
5
- export interface IText extends IComponentRender {
6
- tag?: string;
7
- text: string | string[];
8
- compile?: boolean;
9
- }
@@ -1,8 +0,0 @@
1
- import { ComponentRender } from '../zd-component/component-render';
2
- import { IText } from './interfaces';
3
- export declare class Text extends ComponentRender implements IText {
4
- tag?: string | undefined;
5
- text: string | string[];
6
- compile: boolean;
7
- constructor(props: IText);
8
- }
@@ -1,23 +0,0 @@
1
- import { IEvent, IEventParam } from '@zeedhi/core';
2
- import { IInput, IInputEvents } from '../zd-input/interfaces';
3
- import { TextInput } from './text-input';
4
- export type ITextInputEvent = IEventParam<TextInput>;
5
- export interface ITextInputEvents<T = IEventParam<any>> extends IInputEvents<T> {
6
- appendIconClick?: IEvent<T> | string;
7
- appendOuterIconClick?: IEvent<T> | string;
8
- prependOuterIconClick?: IEvent<T> | string;
9
- prependIconClick?: IEvent<T> | string;
10
- }
11
- export interface ITextInput extends IInput {
12
- appendIcon?: string;
13
- appendOuterIcon?: string;
14
- events?: ITextInputEvents;
15
- prependIcon?: string;
16
- prependOuterIcon?: string;
17
- type?: string;
18
- prefix?: string;
19
- suffix?: string;
20
- valueWithPrefix?: boolean;
21
- valueWithSuffix?: boolean;
22
- inputMode?: string;
23
- }
@@ -1,91 +0,0 @@
1
- import { Input } from '../zd-input/input';
2
- import { ITextInput } from './interfaces';
3
- /**
4
- * Base class for Text component.
5
- */
6
- export declare class TextInput extends Input implements ITextInput {
7
- /**
8
- * Appends an icon inside text input component.
9
- */
10
- appendIcon: string;
11
- /**
12
- * Appends an icon outside text input component.
13
- */
14
- appendOuterIcon: string;
15
- /**
16
- * Displays a prefix text inside text input component. Overrides prependIcon prop.
17
- */
18
- prefix: string;
19
- /**
20
- * Prepends an icon inside text input component.
21
- */
22
- prependIcon: string;
23
- /**
24
- * Prepends an icon outside text input component.
25
- */
26
- prependOuterIcon: string;
27
- /**
28
- * Displays a suffix text inside text input component. Overrides appendIcon prop.
29
- */
30
- suffix: string;
31
- /**
32
- * Sets input type.
33
- */
34
- type: string;
35
- /**
36
- * Defines text input value should concat the prefix text.
37
- */
38
- valueWithPrefix: boolean;
39
- /**
40
- * Defines text input value should concat the suffix text.
41
- */
42
- valueWithSuffix: boolean;
43
- inputMode?: string | undefined;
44
- protected formatterFn: (...args: any) => any;
45
- protected parserFn: (...args: any) => any;
46
- /**
47
- * Create a new TextInput.
48
- * @param props TextInput properties
49
- */
50
- constructor(props: ITextInput);
51
- onCreated(): void;
52
- private addKeyMap;
53
- private callSingleIconEvent;
54
- /**
55
- * Retrieves a formatted value without valueSuffix and with mask.
56
- * @param value Text value
57
- * @returns Text formatted value
58
- */
59
- formatter(value: string): any;
60
- /**
61
- * Retrieves a parsed value with prefix and suffix if it is needed and without mask.
62
- * @param value Text value
63
- * @returns Text parsed value
64
- */
65
- parser(value: string): any;
66
- /**
67
- * Triggered when the appended icon is clicked.
68
- * @param event DOM event
69
- * @param element Text input
70
- */
71
- appendIconClick(event: Event, element: any): void;
72
- /**
73
- * Triggered when the appended outer icon is clicked.
74
- * @param event DOM event
75
- * @param element Text input
76
- */
77
- appendOuterIconClick(event: Event, element: any): void;
78
- /**
79
- * Triggered when the prepended icon is clicked.
80
- * @param event DOM event
81
- * @param element Text input
82
- */
83
- prependIconClick(event: Event, element: any): void;
84
- /**
85
- * Triggered when the prepended outer icon is clicked.
86
- * @param event DOM event
87
- * @param element Text input
88
- */
89
- prependOuterIconClick(event: Event, element: any): void;
90
- getMask(): any;
91
- }
@@ -1,21 +0,0 @@
1
- import { IEventParam } from '@zeedhi/core';
2
- import { ITextInput } from '../zd-text-input/interfaces';
3
- import { Textarea } from './textarea';
4
- export type ITextareaEvent = IEventParam<Textarea>;
5
- export interface ITextarea extends ITextInput {
6
- autoGrow?: boolean;
7
- backgroundColor?: string;
8
- clearIcon?: string;
9
- counter?: boolean | number | string;
10
- filled?: boolean;
11
- loading?: boolean | string;
12
- resize?: boolean;
13
- reverse?: boolean;
14
- rounded?: boolean;
15
- rowHeight?: number | string;
16
- rows?: number | string;
17
- height?: number | string;
18
- maxHeight?: number | string;
19
- minHeight?: number | string;
20
- fillHeight?: boolean;
21
- }
@@ -1,71 +0,0 @@
1
- import { TextInput } from '../zd-text-input/text-input';
2
- import { ITextarea } from './interfaces';
3
- /**
4
- * Base class for Textarea component.
5
- */
6
- export declare class Textarea extends TextInput implements ITextarea {
7
- /**
8
- * Automatically grow the textarea depending on amount of text.
9
- */
10
- autoGrow: boolean;
11
- /**
12
- * Changes the background-color of the input.
13
- */
14
- backgroundColor: string;
15
- /**
16
- * Applied when using clearable and the input is dirty.
17
- */
18
- clearIcon: string;
19
- /**
20
- * Creates counter for input length; if no number is specified, it defaults to 25. Does not apply any validation.
21
- */
22
- counter?: boolean | string | number;
23
- /**
24
- * Applies the alternate filled input style.
25
- */
26
- filled: boolean;
27
- /**
28
- * Displays linear progress bar.
29
- */
30
- loading: boolean | string;
31
- /**
32
- * Remove resize handle.
33
- */
34
- resize: boolean;
35
- /**
36
- * Adds a border radius to the input.
37
- */
38
- rounded: boolean;
39
- /**
40
- * Height value for each row. Requires the use of the auto-grow prop.
41
- */
42
- rowHeight: number | string;
43
- /**
44
- * Default row count.
45
- */
46
- rows: number | string;
47
- /**
48
- * Defines the component height. Possible values for this property can be
49
- * <samp>'auto', '100%', '400px' or 400</samp>
50
- */
51
- height: string | number;
52
- /**
53
- * Defines the component min height. Possible values for this property can be
54
- * <samp>'auto', '100%', '400px' or 400</samp>
55
- */
56
- minHeight: string | number;
57
- /**
58
- * Defines the component max height. Possible values for this property can be
59
- * <samp>'auto', '100%', '400px' or 400</samp>
60
- */
61
- maxHeight: string | number;
62
- /**
63
- * Set component height to fill all space available
64
- */
65
- fillHeight: boolean;
66
- /**
67
- * Create a new Textarea.
68
- * @param props Textarea properties
69
- */
70
- constructor(props: ITextarea);
71
- }
@@ -1,22 +0,0 @@
1
- import { IEventParam } from '@zeedhi/core';
2
- import { ITextInput, ITextInputEvents } from '../zd-text-input/interfaces';
3
- import { Time } from './time';
4
- export type ITimeEvent = IEventParam<Time>;
5
- export type ITimeEvents = ITextInputEvents<ITimeEvent>;
6
- export interface ITime extends ITextInput {
7
- allowedHours?: any[];
8
- allowedMinutes?: any[];
9
- allowedSeconds?: any[];
10
- displayValue?: string;
11
- displayFormat?: string;
12
- fullWidth?: boolean;
13
- maxTime?: string;
14
- minTime?: string;
15
- events?: ITimeEvents;
16
- scrollable?: boolean;
17
- showTimePicker?: boolean;
18
- timeFormat?: string;
19
- useSeconds?: boolean;
20
- valueFormat?: string;
21
- inputFormat?: string;
22
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * Selects the time format by the rule:
3
- * non-common format > common format
4
- * and if the format is a common format, it will be overriden by timeFormat
5
- */
6
- export declare class TimeFormatSelector {
7
- getFormat(format: string, timeFormat: string, useSeconds: boolean): any;
8
- }
@@ -1,149 +0,0 @@
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
- }
@@ -1,6 +0,0 @@
1
- import { IInput } from '../zd-input/interfaces';
2
- export type StateType = boolean | string | number | null | object;
3
- export interface IToggleable extends IInput {
4
- falseValue?: StateType;
5
- trueValue?: StateType;
6
- }
@@ -1,21 +0,0 @@
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
- }
@@ -1,18 +0,0 @@
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
- }
@@ -1,57 +0,0 @@
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
- }