@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,152 +0,0 @@
1
- import { TextInput } from '../zd-text-input/text-input';
2
- import { IDateInput } from './interfaces';
3
- /**
4
- * Base class for Date component.
5
- */
6
- export declare class DateInput extends TextInput implements IDateInput {
7
- /**
8
- * Restricts which dates can be selected.
9
- */
10
- allowedDates?: ((date: string) => boolean) | string[];
11
- /**
12
- * Determines the type of the view mode - month for month picker.
13
- */
14
- viewMode: string;
15
- /**
16
- * Input auto complete.
17
- */
18
- autocomplete: boolean;
19
- /**
20
- * Defines the date format.
21
- */
22
- dateFormat: string;
23
- /**
24
- * Defines the date format displayed.
25
- */
26
- displayFormat: string;
27
- /**
28
- * Defines the date input format.
29
- */
30
- inputFormat?: string;
31
- /**
32
- * Shows the date picker.
33
- */
34
- showDatePicker: boolean;
35
- /**
36
- * Sets the first day of the week, starting with 0 for Sunday.
37
- */
38
- firstDayOfWeek: number | string;
39
- /**
40
- * Forces 100% width.
41
- */
42
- fullWidth: boolean;
43
- /**
44
- * Toggles visibility of the week numbers in the body of the calendar.
45
- */
46
- showWeek: boolean;
47
- /**
48
- * Helper options.
49
- */
50
- helperOptions?: string[];
51
- /**
52
- * Helper value.
53
- */
54
- helperValue?: string;
55
- /**
56
- * Max value allowed.
57
- */
58
- max?: string;
59
- /**
60
- * Min value allowed.
61
- */
62
- min?: string;
63
- /**
64
- * Width of the picker.
65
- */
66
- width: number | string;
67
- protected isoFormat: string;
68
- protected dateError: boolean;
69
- protected formatterFn: (...args: any) => any;
70
- protected parserFn: (...args: any) => any;
71
- protected initialMask?: string;
72
- protected isSimpleDisplay: boolean;
73
- inputMode?: string;
74
- /**
75
- * Creates a new Date.
76
- * @param props Date properties
77
- */
78
- constructor(props: IDateInput);
79
- appendIconClick(event: Event, element: any): void;
80
- private getInitialMask;
81
- formatter(value: string): string;
82
- parser(value: string): any;
83
- /**
84
- * Triggered when date is clicked.
85
- * @param event
86
- * @param element
87
- */
88
- selectDate(date: string, event?: Event, element?: any): void;
89
- get value(): string;
90
- set value(value: string);
91
- get displayValue(): string;
92
- set displayValue(newValue: string);
93
- /**
94
- * Assign the updated mask to mask property
95
- */
96
- updateMask(): any;
97
- /**
98
- * Gets the updated masked, based on displayFormat if the initial mask is undefined
99
- */
100
- protected getUpdatedMask(): string | undefined;
101
- protected maskFormat(format: string): string;
102
- setDateValue(displayValue: string): void;
103
- private setValidDateValue;
104
- private setInvalidDateValue;
105
- isValidDate(value: string, format: string, strict?: boolean): boolean;
106
- isValidFormatDate(value: string, format: string, strict?: boolean): boolean;
107
- private dateObject;
108
- getNativeDate(): Date | null;
109
- setNativeDate(date: Date): void;
110
- getAllowedDates(date: Date): boolean;
111
- formatISODateValue(value: string): string;
112
- parseISODateValue(value: string): any;
113
- dateValidation(): boolean | string;
114
- click(event?: Event, element?: any): void;
115
- blur(event: Event, element: any): void;
116
- onMounted(): void;
117
- focus(event: Event, element: any): void;
118
- /**
119
- * Add date mask
120
- */
121
- protected addDateMask(): void;
122
- /**
123
- * Removes the component mask if value is valid
124
- */
125
- protected removeDateMask(): void;
126
- /**
127
- * Toggle showDatePicker value
128
- */
129
- togglePicker(): void;
130
- /**
131
- * Triggered when the appended icon is clicked.
132
- * @param event DOM event
133
- * @param element Text input
134
- */
135
- iconClick(event: Event, element: any): void;
136
- /**
137
- * Checks if a date format is simple.
138
- * Simple date formats are the ones that consists only of 'DD', 'MM' or 'YYYY', and mask delimiters
139
- * @param format The format to be checked
140
- * @returns true if it is simple, false otherwise
141
- */
142
- protected isSimpleFormat(format: string): boolean;
143
- private previousHint;
144
- private previousPersistentHint;
145
- updateHelperHint(): void;
146
- change(event?: Event, element?: any): void;
147
- /**
148
- * Converts a date format to a mask
149
- */
150
- private toMask;
151
- getMask(): string;
152
- }
@@ -1,27 +0,0 @@
1
- import { IEvent, IEventParam } from '@zeedhi/core';
2
- import { ITextInput, ITextInputEvents } from '../zd-text-input/interfaces';
3
- import { DateInput } from './date-input';
4
- export interface IDateEventParam extends IEventParam<DateInput> {
5
- date: string;
6
- }
7
- export interface IDateEvents<T = IDateEventParam | IEventParam<any>> extends ITextInputEvents<T> {
8
- onSelectDate?: IEvent<T> | string;
9
- }
10
- export interface IDateInput extends ITextInput {
11
- allowedDates?: ((date: string) => boolean) | string[];
12
- dateFormat?: string;
13
- displayFormat?: string;
14
- events?: IDateEvents;
15
- firstDayOfWeek?: number | string;
16
- fullWidth?: boolean;
17
- inputFormat?: string;
18
- showDatePicker?: boolean;
19
- showWeek?: boolean;
20
- width?: number | string;
21
- orderedDates?: boolean;
22
- helperOptions?: string[];
23
- helperValue?: string;
24
- max?: string;
25
- min?: string;
26
- viewMode?: string;
27
- }
@@ -1,158 +0,0 @@
1
- import { IDateRange } from './interfaces';
2
- import { TextInput } from '../zd-text-input/text-input';
3
- export declare class DateRange extends TextInput implements IDateRange {
4
- /**
5
- * Input auto complete.
6
- */
7
- autocomplete: boolean;
8
- /**
9
- * Defines the date format.
10
- */
11
- dateFormat: string;
12
- /**
13
- * Defines the date format displayed.
14
- */
15
- displayFormat: string;
16
- /**
17
- * Defines the date input format.
18
- */
19
- inputFormat?: string;
20
- /**
21
- * Shows the date picker.
22
- */
23
- showDatePicker: boolean;
24
- /**
25
- * Sets the first day of the week, starting with 0 for Sunday.
26
- */
27
- firstDayOfWeek: number | string;
28
- /**
29
- * Forces 100% width.
30
- */
31
- fullWidth: boolean;
32
- /**
33
- * Sets the locale. Accepts a string with a BCP 47 language tag.
34
- */
35
- locale?: string;
36
- /**
37
- * Allows changing displayed month with mouse scroll
38
- */
39
- scrollable: boolean;
40
- /**
41
- * Toggles visibility of the week numbers in the body of the calendar.
42
- */
43
- showWeek: boolean;
44
- /**
45
- * Character that will separate the two dates
46
- */
47
- get splitter(): string;
48
- set splitter(splitter: string);
49
- private internalSplitter;
50
- /**
51
- * Width of the picker.
52
- */
53
- width: number | string;
54
- /**
55
- * Helper options.
56
- */
57
- helperOptions?: string[];
58
- /**
59
- * Max value allowed.
60
- */
61
- max?: string;
62
- /**
63
- * Min value allowed.
64
- */
65
- min?: string;
66
- /**
67
- * Helper value.
68
- */
69
- helperValue?: string;
70
- protected isoFormat: string;
71
- protected dateError: boolean;
72
- protected formatterFn: (...args: any) => any;
73
- protected parserFn: (...args: any) => any;
74
- protected initialMask?: string;
75
- unitMask?: string;
76
- protected isSimpleDisplay: boolean;
77
- inputMode?: string | undefined;
78
- /**
79
- * Creates a new Date.
80
- * @param props Date properties
81
- */
82
- constructor(props: IDateRange);
83
- private getInitialMask;
84
- formatter(value: any): string;
85
- parser(value: string): any;
86
- get displayValue(): string;
87
- set displayValue(newValue: string);
88
- get value(): string[];
89
- set value(value: unknown);
90
- /**
91
- * Returns all days ranging from start to end as dayjs objects
92
- * @returns an array of dayjs objects containing all days between start and end
93
- */
94
- private getDatesInRange;
95
- /**
96
- * Assign the updated mask to mask property
97
- */
98
- updateMask(): any;
99
- /**
100
- * Gets the updated masked, based on displayFormat if the initial mask is undefined
101
- */
102
- protected getUpdatedMask(): string | undefined;
103
- protected maskFormat(format: string): string;
104
- setDateValue(displayValue: string): void;
105
- /**
106
- * Faz a validação do array de datas
107
- * @param format o formato da data
108
- * @param values o array de datas
109
- * @returns true se todos os valores forem validados
110
- * */
111
- isValidDateArray(format: string, values?: string[]): boolean;
112
- private splitValues;
113
- isValidDate(value: string, format: string, strict?: boolean): boolean;
114
- isValidFormatDate(value: string, format: string, strict?: boolean): boolean;
115
- get isoRangeValue(): string[];
116
- set isoRangeValue(newValue: string[]);
117
- formatISODateRangeValue(dates: string[] | string): string[];
118
- parseISODateRangeValue(values: string[]): any;
119
- private sortDates;
120
- dateValidation(): boolean | string;
121
- click(event?: Event, element?: any): void;
122
- blur(event: Event, element: any): void;
123
- focus(event: Event, element: any): void;
124
- /**
125
- * Add date mask
126
- */
127
- protected addDateMask(): void;
128
- /**
129
- * Removes the component mask if value is valid
130
- */
131
- protected removeDateMask(): void;
132
- /**
133
- * Toggle showDatePicker value
134
- */
135
- togglePicker(): void;
136
- /**
137
- * Triggered when the appended icon is clicked.
138
- * @param event DOM event
139
- * @param element Text input
140
- */
141
- iconClick(event: Event, element: any): void;
142
- /**
143
- * Checks if a date format is simple.
144
- * Simple date formats are the ones that consists only of 'DD', 'MM' or 'YYYY', and mask delimiters
145
- * @param format The format to be checked
146
- * @returns true if it is simple, false otherwise
147
- */
148
- protected isSimpleFormat(format: string): boolean;
149
- private previousHint;
150
- private previousPersistentHint;
151
- updateHelperHint(helperValue: string): void;
152
- change(event?: Event, element?: any): void;
153
- private getExtremities;
154
- setNativeDate(date: Date[]): void;
155
- private dateObject;
156
- getNativeDate(): Date[];
157
- getMaskValue(): any;
158
- }
@@ -1,18 +0,0 @@
1
- import { ITextInput } from '../zd-text-input/interfaces';
2
- export interface IDateRange extends ITextInput {
3
- allowedDates?: ((date: string) => boolean) | string[];
4
- dateFormat?: string;
5
- displayFormat?: string;
6
- firstDayOfWeek?: number | string;
7
- fullWidth?: boolean;
8
- inputFormat?: string;
9
- showDatePicker?: boolean;
10
- showWeek?: boolean;
11
- width?: number | string;
12
- orderedDates?: boolean;
13
- helperOptions?: string[];
14
- helperValue?: string;
15
- max?: string;
16
- min?: string;
17
- viewMode?: string;
18
- }
@@ -1,76 +0,0 @@
1
- import { IButton } from '../zd-button/interfaces';
2
- import { Component } from '../zd-component/component';
3
- import { IDialog } from './interfaces';
4
- /**
5
- * Base class for Dialog component.
6
- */
7
- export declare class Dialog extends Component implements IDialog {
8
- /**
9
- * Buttons collection that will be displayed on dialog footer
10
- */
11
- buttons: IButton[];
12
- /**
13
- * The maximum width of the content
14
- */
15
- maxWidth: string | number;
16
- /**
17
- * Clicking outside will not dismiss the dialog
18
- */
19
- persistent: boolean;
20
- /**
21
- * The text displayed on dialog
22
- */
23
- text: string;
24
- /**
25
- * The title displayed on dialog
26
- */
27
- title: string;
28
- /**
29
- * Dialog type (normal, success, error, warning, info)
30
- */
31
- type: string;
32
- /**
33
- * Confirm button component name
34
- */
35
- confirmButton?: string;
36
- /**
37
- * Deny button component name
38
- */
39
- denyButton?: string;
40
- exit?: boolean;
41
- /**
42
- * Default dialog buttons
43
- * @private
44
- */
45
- private getDefaultButtons;
46
- protected defaultValues: {
47
- confirmButton: string | undefined;
48
- denyButton: string | undefined;
49
- name: string;
50
- maxWidth: string | number;
51
- persistent: boolean;
52
- type: string;
53
- title: string;
54
- text: string;
55
- exit: boolean | undefined;
56
- };
57
- /**
58
- * Creates a new Dialog
59
- * @param props Dialog structure
60
- */
61
- constructor(props: IDialog);
62
- /**
63
- * Assign all dialog properties
64
- * @param dialog Dialog structure
65
- */
66
- assignDialogProperties(dialog: IDialog): void;
67
- protected clickDefaultButtonKeyMapping(): any;
68
- /**
69
- * Displays dialog
70
- */
71
- show(): void;
72
- /**
73
- * Hides dialog
74
- */
75
- hide(): void;
76
- }
@@ -1,13 +0,0 @@
1
- import { IButton } from '../zd-button/interfaces';
2
- import { IComponent } from '../zd-component/interfaces';
3
- export interface IDialog extends IComponent {
4
- buttons?: IButton[];
5
- maxWidth?: string | number;
6
- persistent?: boolean;
7
- confirmButton?: string;
8
- denyButton?: string;
9
- text?: string;
10
- title?: string;
11
- type?: string;
12
- exit?: boolean;
13
- }
@@ -1,20 +0,0 @@
1
- import { ComponentRender } from '../zd-component/component-render';
2
- import { IDivider } from './interfaces';
3
- /**
4
- * Base class for Divider component.
5
- */
6
- export declare class Divider extends ComponentRender implements IDivider {
7
- /**
8
- * Adds indentation (72px) for normal dividers, reduces max height for vertical.
9
- */
10
- inset: boolean;
11
- /**
12
- * Displays dividers vertically.
13
- */
14
- vertical: boolean;
15
- /**
16
- * Creates a new Divider.
17
- * @param props Divider properties
18
- */
19
- constructor(props: IDivider);
20
- }
@@ -1,8 +0,0 @@
1
- import { IEventParam } from '@zeedhi/core';
2
- import { IComponentRender } from '../zd-component/interfaces';
3
- import { Divider } from './divider';
4
- export type IDividerEvent = IEventParam<Divider>;
5
- export interface IDivider extends IComponentRender {
6
- inset?: boolean;
7
- vertical?: boolean;
8
- }
@@ -1,81 +0,0 @@
1
- import { ComponentRender } from '../zd-component/component-render';
2
- import { IComponentRender } from '../zd-component/interfaces';
3
- import { IDropdown } from './interfaces';
4
- /**
5
- * Base class for Dropdown component.
6
- */
7
- export declare class Dropdown extends ComponentRender implements IDropdown {
8
- /**
9
- * Applies position absolute to the dropdown.
10
- */
11
- absolute: boolean;
12
- /**
13
- * Designate to put the component that activates the menu.
14
- */
15
- activator: IComponentRender;
16
- /**
17
- * Designates if menu should close when its content is clicked.
18
- */
19
- closeOnContentClick: boolean;
20
- /**
21
- * Designates if menu should close on outside-activator click.
22
- */
23
- closeOnClick: boolean;
24
- /**
25
- * Applies a cursor to the dropdown.
26
- */
27
- cursor: string;
28
- /**
29
- * Disables the menu.
30
- */
31
- disabled: boolean;
32
- /**
33
- * Applies hover to the dropdown.
34
- */
35
- hover: boolean;
36
- /**
37
- * Sets the height for the dropdown.
38
- */
39
- height?: number | string;
40
- /**
41
- * Sets the maximum height for the dropdown.
42
- */
43
- maxHeight: number | string;
44
- /**
45
- * Sets the maximum width for the dropdown.
46
- */
47
- maxWidth: number | string;
48
- /**
49
- * Sets the minimum height for the dropdown.
50
- */
51
- minHeight: number | string;
52
- /**
53
- * Sets the minimum width for the dropdown.
54
- */
55
- minWidth: number | string;
56
- /**
57
- * Offset the menu on the x-axis.
58
- */
59
- offsetX: boolean;
60
- /**
61
- * Offset the menu on the x-axis.
62
- */
63
- offsetY: boolean;
64
- /**
65
- * Designates whether menu should open on activator click.
66
- */
67
- openOnClick: boolean;
68
- /**
69
- * Designates whether menu should open on activator hover.
70
- */
71
- openOnHover: boolean;
72
- /**
73
- * Controls whether the component is visible or hidden.
74
- */
75
- value?: any;
76
- /**
77
- * Creates a new DropDown.
78
- * @param props DropDown properties
79
- */
80
- constructor(props: IDropdown);
81
- }
@@ -1,23 +0,0 @@
1
- import { IEventParam } from '@zeedhi/core';
2
- import { IComponentRender } from '../zd-component/interfaces';
3
- import { Dropdown } from './dropdown';
4
- export type IDropdownEvent = IEventParam<Dropdown>;
5
- export interface IDropdown extends IComponentRender {
6
- absolute?: boolean;
7
- activator: IComponentRender;
8
- disabled?: boolean;
9
- closeOnContentClick?: boolean;
10
- closeOnClick?: boolean;
11
- cursor?: string;
12
- hover?: boolean;
13
- height?: number | string;
14
- maxHeight?: number | string;
15
- maxWidth?: number | string;
16
- minHeight?: number | string;
17
- minWidth?: number | string;
18
- offsetX?: boolean;
19
- offsetY?: boolean;
20
- openOnClick?: boolean;
21
- openOnHover?: boolean;
22
- value?: any;
23
- }
@@ -1,80 +0,0 @@
1
- import { ComponentRender } from '../zd-component/component-render';
2
- import { IComponentRender } from '../zd-component/interfaces';
3
- import { IFooter } from './interfaces';
4
- /**
5
- * Base class for Footer component.
6
- */
7
- export declare class Footer extends ComponentRender implements IFooter {
8
- /**
9
- * Applies position absolute to footer.
10
- */
11
- absolute: boolean;
12
- /**
13
- * Designates the footer as part of the application layout.
14
- */
15
- app: boolean;
16
- /**
17
- * Render components on the middle of footer.
18
- */
19
- centerSlot: IComponentRender[];
20
- /**
21
- * Applies specified color to the control. It can be the name of material or css color in hexa.
22
- */
23
- color: string;
24
- /**
25
- * Events registered to the footer.
26
- */
27
- /**
28
- * Applies position fixed to footer.
29
- */
30
- fixed: boolean;
31
- /**
32
- * Sets the height for footer.
33
- */
34
- height: number | string;
35
- /**
36
- * Positions the footer inside the application content.
37
- */
38
- inset: boolean;
39
- /**
40
- * Render components on the left of footer.
41
- */
42
- leftSlot: IComponentRender[];
43
- /**
44
- * Sets the maximum height for the footer.
45
- */
46
- maxHeight?: number | string;
47
- /**
48
- * Sets the maximum width for the footer.
49
- */
50
- maxWidth?: number | string;
51
- /**
52
- * Sets the minimum height for the footer.
53
- */
54
- minHeight?: number | string;
55
- /**
56
- * Sets the minimum width for the footer.
57
- */
58
- minWidth?: number | string;
59
- /**
60
- * Remove all padding from the footer.
61
- */
62
- padless: boolean;
63
- /**
64
- * Render components on the right of footer.
65
- */
66
- rightSlot: IComponentRender[];
67
- /**
68
- * Sets the width for the component.
69
- */
70
- width?: number | string;
71
- /**
72
- * Creates a new Footer.
73
- * @param props Footer properties
74
- */
75
- constructor(props: IFooter);
76
- /**
77
- * Retrieves named slots visibility
78
- */
79
- get namedSlotsIsVisible(): number;
80
- }
@@ -1,26 +0,0 @@
1
- import { IEventParam } from '@zeedhi/core';
2
- import { IComponentEvents, IComponentRender } from '../zd-component/interfaces';
3
- import { Footer } from './footer';
4
- export type IFooterEvent = IEventParam<Footer>;
5
- export interface IFooterEvents extends IComponentEvents<IFooterEvent> {
6
- blur: undefined;
7
- click: undefined;
8
- focus: undefined;
9
- }
10
- export interface IFooter extends IComponentRender {
11
- absolute?: boolean;
12
- app?: boolean;
13
- centerSlot?: IComponentRender[];
14
- color?: string;
15
- fixed?: boolean;
16
- height?: number | string;
17
- inset?: boolean;
18
- leftSlot?: IComponentRender[];
19
- maxHeight?: number | string;
20
- maxWidth?: number | string;
21
- minHeight?: number | string;
22
- minWidth?: number | string;
23
- padless?: boolean;
24
- rightSlot?: IComponentRender[];
25
- width?: number | string;
26
- }