@zeedhi/common 1.129.0 → 1.129.1

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 (219) hide show
  1. package/dist/zd-common.esm.js +98 -96
  2. package/dist/zd-common.umd.js +95 -93
  3. package/package.json +2 -2
  4. package/types/index.d.ts +1 -1
  5. package/types/services/zd-json-cache/json-cache-service.d.ts +12 -0
  6. package/types/utils/combine-urls/combine-urls.d.ts +2 -0
  7. package/types/utils/combine-urls/index.d.ts +1 -0
  8. package/types/utils/index.d.ts +2 -2
  9. package/dist/types/components/index.d.ts +0 -151
  10. package/dist/types/components/zd-alert/alert.d.ts +0 -94
  11. package/dist/types/components/zd-alert/interfaces.d.ts +0 -18
  12. package/dist/types/components/zd-badge/badge.d.ts +0 -28
  13. package/dist/types/components/zd-badge/interfaces.d.ts +0 -10
  14. package/dist/types/components/zd-breadcrumbs/breadcrumbs.d.ts +0 -32
  15. package/dist/types/components/zd-breadcrumbs/interfaces.d.ts +0 -24
  16. package/dist/types/components/zd-button/button.d.ts +0 -89
  17. package/dist/types/components/zd-button/interfaces.d.ts +0 -48
  18. package/dist/types/components/zd-button-group/button-group.d.ts +0 -67
  19. package/dist/types/components/zd-button-group/interfaces.d.ts +0 -25
  20. package/dist/types/components/zd-card/card.d.ts +0 -152
  21. package/dist/types/components/zd-card/interfaces.d.ts +0 -40
  22. package/dist/types/components/zd-carousel/carousel.d.ts +0 -163
  23. package/dist/types/components/zd-carousel/interfaces.d.ts +0 -49
  24. package/dist/types/components/zd-checkbox/checkbox.d.ts +0 -12
  25. package/dist/types/components/zd-checkbox/interfaces.d.ts +0 -5
  26. package/dist/types/components/zd-checkbox-multiple/checkbox-multiple.d.ts +0 -39
  27. package/dist/types/components/zd-checkbox-multiple/interfaces.d.ts +0 -13
  28. package/dist/types/components/zd-chip/chip.d.ts +0 -60
  29. package/dist/types/components/zd-chip/interfaces.d.ts +0 -18
  30. package/dist/types/components/zd-code-viewer/code-viewer.d.ts +0 -86
  31. package/dist/types/components/zd-code-viewer/interfaces.d.ts +0 -13
  32. package/dist/types/components/zd-col/col.d.ts +0 -33
  33. package/dist/types/components/zd-col/interfaces.d.ts +0 -15
  34. package/dist/types/components/zd-collapse-card/collapse-card.d.ts +0 -56
  35. package/dist/types/components/zd-collapse-card/interfaces.d.ts +0 -14
  36. package/dist/types/components/zd-component/child-not-found.d.ts +0 -6
  37. package/dist/types/components/zd-component/component-render.d.ts +0 -16
  38. package/dist/types/components/zd-component/component.d.ts +0 -120
  39. package/dist/types/components/zd-component/interfaces.d.ts +0 -74
  40. package/dist/types/components/zd-container/container.d.ts +0 -45
  41. package/dist/types/components/zd-container/interfaces.d.ts +0 -12
  42. package/dist/types/components/zd-currency/currency.d.ts +0 -12
  43. package/dist/types/components/zd-currency/interfaces.d.ts +0 -6
  44. package/dist/types/components/zd-date-input/date-input.d.ts +0 -152
  45. package/dist/types/components/zd-date-input/interfaces.d.ts +0 -27
  46. package/dist/types/components/zd-date-range/date-range.d.ts +0 -158
  47. package/dist/types/components/zd-date-range/interfaces.d.ts +0 -18
  48. package/dist/types/components/zd-dialog/dialog.d.ts +0 -76
  49. package/dist/types/components/zd-dialog/interfaces.d.ts +0 -13
  50. package/dist/types/components/zd-divider/divider.d.ts +0 -20
  51. package/dist/types/components/zd-divider/interfaces.d.ts +0 -8
  52. package/dist/types/components/zd-dropdown/dropdown.d.ts +0 -81
  53. package/dist/types/components/zd-dropdown/interfaces.d.ts +0 -23
  54. package/dist/types/components/zd-footer/footer.d.ts +0 -80
  55. package/dist/types/components/zd-footer/interfaces.d.ts +0 -26
  56. package/dist/types/components/zd-form/form.d.ts +0 -174
  57. package/dist/types/components/zd-form/interfaces.d.ts +0 -36
  58. package/dist/types/components/zd-frame/frame.d.ts +0 -81
  59. package/dist/types/components/zd-frame/interfaces.d.ts +0 -23
  60. package/dist/types/components/zd-frame-page/frame-page.d.ts +0 -14
  61. package/dist/types/components/zd-frame-page/interfaces.d.ts +0 -4
  62. package/dist/types/components/zd-grid/data-navigator.d.ts +0 -12
  63. package/dist/types/components/zd-grid/data-selector.d.ts +0 -25
  64. package/dist/types/components/zd-grid/grid-column.d.ts +0 -47
  65. package/dist/types/components/zd-grid/grid-events.d.ts +0 -26
  66. package/dist/types/components/zd-grid/grid.d.ts +0 -85
  67. package/dist/types/components/zd-grid/index.d.ts +0 -11
  68. package/dist/types/components/zd-grid/interfaces.d.ts +0 -148
  69. package/dist/types/components/zd-grid/iterable-table.d.ts +0 -28
  70. package/dist/types/components/zd-grid/keymap-merger.d.ts +0 -26
  71. package/dist/types/components/zd-grid/keymap-navigation.d.ts +0 -6
  72. package/dist/types/components/zd-grid/table-action-builder.d.ts +0 -19
  73. package/dist/types/components/zd-grid/view-navigator.d.ts +0 -10
  74. package/dist/types/components/zd-grid-editable/data-editor-with-add.d.ts +0 -35
  75. package/dist/types/components/zd-grid-editable/data-editor.d.ts +0 -64
  76. package/dist/types/components/zd-grid-editable/errors/index.d.ts +0 -2
  77. package/dist/types/components/zd-grid-editable/errors/not-editing.d.ts +0 -6
  78. package/dist/types/components/zd-grid-editable/errors/row-not-found.d.ts +0 -6
  79. package/dist/types/components/zd-grid-editable/grid-column-editable.d.ts +0 -9
  80. package/dist/types/components/zd-grid-editable/grid-editable-controller.d.ts +0 -8
  81. package/dist/types/components/zd-grid-editable/grid-editable-events.d.ts +0 -32
  82. package/dist/types/components/zd-grid-editable/grid-editable.d.ts +0 -124
  83. package/dist/types/components/zd-grid-editable/index.d.ts +0 -8
  84. package/dist/types/components/zd-grid-editable/interfaces.d.ts +0 -66
  85. package/dist/types/components/zd-grid-editable/keymap-editing.d.ts +0 -7
  86. package/dist/types/components/zd-header/header.d.ts +0 -94
  87. package/dist/types/components/zd-header/interfaces.d.ts +0 -29
  88. package/dist/types/components/zd-icon/icon.d.ts +0 -55
  89. package/dist/types/components/zd-icon/interfaces.d.ts +0 -13
  90. package/dist/types/components/zd-image/image.d.ts +0 -73
  91. package/dist/types/components/zd-image/interfaces.d.ts +0 -17
  92. package/dist/types/components/zd-increment/increment.d.ts +0 -56
  93. package/dist/types/components/zd-increment/interfaces.d.ts +0 -9
  94. package/dist/types/components/zd-input/input-factory.d.ts +0 -6
  95. package/dist/types/components/zd-input/input.d.ts +0 -223
  96. package/dist/types/components/zd-input/interfaces.d.ts +0 -38
  97. package/dist/types/components/zd-iterable/column-not-found.d.ts +0 -6
  98. package/dist/types/components/zd-iterable/column.d.ts +0 -78
  99. package/dist/types/components/zd-iterable/conditions-manager.d.ts +0 -49
  100. package/dist/types/components/zd-iterable/interfaces.d.ts +0 -103
  101. package/dist/types/components/zd-iterable/iterable-columns-button-controller.d.ts +0 -9
  102. package/dist/types/components/zd-iterable/iterable-columns-button.d.ts +0 -35
  103. package/dist/types/components/zd-iterable/iterable-controller.d.ts +0 -8
  104. package/dist/types/components/zd-iterable/iterable-page-component.d.ts +0 -27
  105. package/dist/types/components/zd-iterable/iterable-page-info.d.ts +0 -7
  106. package/dist/types/components/zd-iterable/iterable-page-size.d.ts +0 -62
  107. package/dist/types/components/zd-iterable/iterable-pagination.d.ts +0 -28
  108. package/dist/types/components/zd-iterable/iterable.d.ts +0 -77
  109. package/dist/types/components/zd-iterable/search.d.ts +0 -31
  110. package/dist/types/components/zd-iterable-component-render/interfaces.d.ts +0 -34
  111. package/dist/types/components/zd-iterable-component-render/iterable-component-render.d.ts +0 -84
  112. package/dist/types/components/zd-layout/interfaces.d.ts +0 -7
  113. package/dist/types/components/zd-layout/layout.d.ts +0 -9
  114. package/dist/types/components/zd-list/interfaces.d.ts +0 -44
  115. package/dist/types/components/zd-list/item-not-found.d.ts +0 -6
  116. package/dist/types/components/zd-list/list-group.d.ts +0 -30
  117. package/dist/types/components/zd-list/list-item.d.ts +0 -46
  118. package/dist/types/components/zd-list/list.d.ts +0 -81
  119. package/dist/types/components/zd-loading/interfaces.d.ts +0 -7
  120. package/dist/types/components/zd-loading/loading.d.ts +0 -21
  121. package/dist/types/components/zd-login/interfaces.d.ts +0 -25
  122. package/dist/types/components/zd-login/login-button.d.ts +0 -50
  123. package/dist/types/components/zd-login/login.d.ts +0 -54
  124. package/dist/types/components/zd-main/interfaces.d.ts +0 -5
  125. package/dist/types/components/zd-main/main.d.ts +0 -7
  126. package/dist/types/components/zd-master-detail/detail-not-found.d.ts +0 -7
  127. package/dist/types/components/zd-master-detail/interfaces.d.ts +0 -10
  128. package/dist/types/components/zd-master-detail/master-detail.d.ts +0 -18
  129. package/dist/types/components/zd-master-detail/master-not-found.d.ts +0 -7
  130. package/dist/types/components/zd-menu/interfaces.d.ts +0 -68
  131. package/dist/types/components/zd-menu/menu-button.d.ts +0 -29
  132. package/dist/types/components/zd-menu/menu-group.d.ts +0 -61
  133. package/dist/types/components/zd-menu/menu-link.d.ts +0 -50
  134. package/dist/types/components/zd-menu/menu-separator.d.ts +0 -7
  135. package/dist/types/components/zd-menu/menu.d.ts +0 -199
  136. package/dist/types/components/zd-modal/interfaces.d.ts +0 -35
  137. package/dist/types/components/zd-modal/modal-close-button.d.ts +0 -28
  138. package/dist/types/components/zd-modal/modal.d.ts +0 -53
  139. package/dist/types/components/zd-month/interfaces.d.ts +0 -6
  140. package/dist/types/components/zd-month/month.d.ts +0 -33
  141. package/dist/types/components/zd-number-input/interfaces.d.ts +0 -8
  142. package/dist/types/components/zd-number-input/number-input.d.ts +0 -43
  143. package/dist/types/components/zd-password/interfaces.d.ts +0 -6
  144. package/dist/types/components/zd-password/password.d.ts +0 -17
  145. package/dist/types/components/zd-progress/interfaces.d.ts +0 -10
  146. package/dist/types/components/zd-progress/progress.d.ts +0 -41
  147. package/dist/types/components/zd-radio/interfaces.d.ts +0 -11
  148. package/dist/types/components/zd-radio/radio.d.ts +0 -35
  149. package/dist/types/components/zd-row/interfaces.d.ts +0 -13
  150. package/dist/types/components/zd-row/row.d.ts +0 -39
  151. package/dist/types/components/zd-select/interfaces.d.ts +0 -24
  152. package/dist/types/components/zd-select/select.d.ts +0 -238
  153. package/dist/types/components/zd-select-multiple/interfaces.d.ts +0 -18
  154. package/dist/types/components/zd-select-multiple/select-multiple.d.ts +0 -113
  155. package/dist/types/components/zd-svg-map/interfaces.d.ts +0 -26
  156. package/dist/types/components/zd-svg-map/svg-map.d.ts +0 -35
  157. package/dist/types/components/zd-switch/interfaces.d.ts +0 -7
  158. package/dist/types/components/zd-switch/switch.d.ts +0 -16
  159. package/dist/types/components/zd-table/interfaces.d.ts +0 -25
  160. package/dist/types/components/zd-table/table.d.ts +0 -42
  161. package/dist/types/components/zd-tabs/interfaces.d.ts +0 -40
  162. package/dist/types/components/zd-tabs/tab-not-found.d.ts +0 -11
  163. package/dist/types/components/zd-tabs/tab.d.ts +0 -57
  164. package/dist/types/components/zd-tabs/tabs.d.ts +0 -86
  165. package/dist/types/components/zd-tag/interfaces.d.ts +0 -7
  166. package/dist/types/components/zd-tag/tag.d.ts +0 -13
  167. package/dist/types/components/zd-text/interfaces.d.ts +0 -9
  168. package/dist/types/components/zd-text/text.d.ts +0 -8
  169. package/dist/types/components/zd-text-input/interfaces.d.ts +0 -23
  170. package/dist/types/components/zd-text-input/text-input.d.ts +0 -91
  171. package/dist/types/components/zd-textarea/interfaces.d.ts +0 -21
  172. package/dist/types/components/zd-textarea/textarea.d.ts +0 -71
  173. package/dist/types/components/zd-time/interfaces.d.ts +0 -22
  174. package/dist/types/components/zd-time/time-format-selector.d.ts +0 -8
  175. package/dist/types/components/zd-time/time.d.ts +0 -149
  176. package/dist/types/components/zd-toggleable/interfaces.d.ts +0 -6
  177. package/dist/types/components/zd-toggleable/toggleable.d.ts +0 -21
  178. package/dist/types/components/zd-tooltip/interfaces.d.ts +0 -18
  179. package/dist/types/components/zd-tooltip/tooltip.d.ts +0 -57
  180. package/dist/types/components/zd-tree/interfaces.d.ts +0 -107
  181. package/dist/types/components/zd-tree/tree.d.ts +0 -161
  182. package/dist/types/components/zd-tree-grid/index.d.ts +0 -6
  183. package/dist/types/components/zd-tree-grid/interfaces.d.ts +0 -35
  184. package/dist/types/components/zd-tree-grid/iterable-tree.d.ts +0 -10
  185. package/dist/types/components/zd-tree-grid/keymap-tree.d.ts +0 -7
  186. package/dist/types/components/zd-tree-grid/tree-data-navigator.d.ts +0 -10
  187. package/dist/types/components/zd-tree-grid/tree-data-selector.d.ts +0 -18
  188. package/dist/types/components/zd-tree-grid/tree-grid.d.ts +0 -119
  189. package/dist/types/error/delete-rows.d.ts +0 -7
  190. package/dist/types/error/index.d.ts +0 -3
  191. package/dist/types/error/non-initialized.d.ts +0 -7
  192. package/dist/types/error/zeedhi-error.d.ts +0 -6
  193. package/dist/types/index.d.ts +0 -6
  194. package/dist/types/services/index.d.ts +0 -4
  195. package/dist/types/services/zd-alert/alert-queue.d.ts +0 -13
  196. package/dist/types/services/zd-alert/alert-replace.d.ts +0 -18
  197. package/dist/types/services/zd-alert/alert-service.d.ts +0 -45
  198. package/dist/types/services/zd-alert/alert-stack.d.ts +0 -9
  199. package/dist/types/services/zd-alert/index.d.ts +0 -5
  200. package/dist/types/services/zd-alert/interfaces.d.ts +0 -6
  201. package/dist/types/services/zd-dialog/dialog-service.d.ts +0 -24
  202. package/dist/types/services/zd-loading/loading-service.d.ts +0 -17
  203. package/dist/types/services/zd-modal/modal-service.d.ts +0 -39
  204. package/dist/types/utils/data-value-out/data-value-out.d.ts +0 -5
  205. package/dist/types/utils/data-value-out/index.d.ts +0 -2
  206. package/dist/types/utils/data-value-out/interfaces.d.ts +0 -8
  207. package/dist/types/utils/datasource-searcher/datasource-searcher.d.ts +0 -6
  208. package/dist/types/utils/datasource-searcher/index.d.ts +0 -2
  209. package/dist/types/utils/datasource-searcher/interfaces.d.ts +0 -5
  210. package/dist/types/utils/icons/icons.d.ts +0 -24
  211. package/dist/types/utils/index.d.ts +0 -7
  212. package/dist/types/utils/omit/omit.d.ts +0 -11
  213. package/dist/types/utils/theme/theme.d.ts +0 -34
  214. package/dist/types/utils/tree-data-structure/index.d.ts +0 -2
  215. package/dist/types/utils/tree-data-structure/interfaces.d.ts +0 -30
  216. package/dist/types/utils/tree-data-structure/tree-data-structure.d.ts +0 -155
  217. package/dist/types/utils/unique-by/unique-by.d.ts +0 -3
  218. package/dist/zd-common.js +0 -13133
  219. package/dist/zd-common.min.js +0 -13133
@@ -1,120 +0,0 @@
1
- import { IDictionary, IKeyMap } from '@zeedhi/core';
2
- import { IComponent, IComponentDirectives, IComponentEvents, IComponentInstance } from './interfaces';
3
- /**
4
- * Base class for all Zeedhi components.
5
- */
6
- export declare class Component<T extends IComponent = IComponent> implements IComponentInstance {
7
- allowDuplicate: boolean;
8
- autofocus: boolean;
9
- children: IComponent[];
10
- childrenInstances: any[];
11
- /**
12
- * CSS classes to be added to the DOM element when rendering.
13
- * To apply multiple CSS classes use space as separator
14
- * (e.g. <samp>\"class1 class2\"</samp>).
15
- */
16
- cssClass: string;
17
- cssStyle: string | IDictionary<string>;
18
- directives: IComponentDirectives;
19
- events: IComponentEvents;
20
- isVisible: boolean;
21
- name: string;
22
- dark: boolean;
23
- light: boolean;
24
- theme?: string;
25
- /**
26
- * Set component height to fill all space available
27
- */
28
- fillHeight: boolean;
29
- /**
30
- * Parent component instance. This property should be used when is
31
- * necessary create dynamic components.
32
- */
33
- parent?: IComponentInstance;
34
- componentId: number;
35
- keyMap: IKeyMap;
36
- isFocused: boolean;
37
- tabStop: boolean;
38
- private accessorManager;
39
- private element?;
40
- protected viewFocus?: () => void;
41
- userProperties: IDictionary<any>;
42
- protected props: T;
43
- /**
44
- * Creates a new Component.
45
- * @param props Components properties
46
- */
47
- constructor(props: T);
48
- setViewFocus(viewFocus: () => void): void;
49
- setFocus(): void;
50
- /**
51
- * Retrieves initial value for the attribute and if it is an accessor,
52
- * updates props value.
53
- * @param name Attribute name
54
- * @param value Attribute value
55
- * @param defaultValue Attribute default value
56
- * @returns Initial value
57
- */
58
- protected getInitValue(name: string, value: any, defaultValue: any): any;
59
- protected createAccessors(): void;
60
- /**
61
- * Creates the accessors defined inside an object recursively
62
- * @param obj Object having the accessors
63
- * @param path Name of the `obj` property inside the component
64
- */
65
- protected createObjAccessors(obj: any, path: string): void;
66
- /** Test and trigger an event */
67
- callEvent(eventName: string, args: any): boolean;
68
- /**
69
- * Adds a new child
70
- * @param child Child component structure
71
- */
72
- addChild(child: IComponent): void;
73
- /**
74
- * Removes child by name
75
- * @param name Child name
76
- */
77
- removeChild(name: string): void;
78
- /**
79
- * Retrieves a child instance by name
80
- * @param name Child name
81
- * @throws Will throw if child not exists
82
- */
83
- getChildInstance<T>(name: string): T;
84
- /**
85
- * Adds new child instance
86
- * @param instance Child instance
87
- */
88
- addChildInstance(instance: Component): void;
89
- onCreated(): void;
90
- onBeforeMount(): void;
91
- /**
92
- * Triggered when the component is mounted.
93
- * @param element Element mounted reference
94
- */
95
- onMounted(element: any): void;
96
- onBeforeDestroy(): void;
97
- onDestroyed(): void;
98
- /**
99
- * Triggered when the component is clicked.
100
- * @param event DOM event
101
- * @param element Element clicked
102
- */
103
- click(event?: Event, element?: any): void;
104
- /**
105
- * Triggered when the component is focused.
106
- * @param event DOM event
107
- * @param element Element focused
108
- */
109
- focus(event: Event, element: any): void;
110
- /**
111
- * Triggered when the component loses focus.
112
- * @param event DOM event
113
- * @param element Element that lost the focus
114
- */
115
- blur(event: Event, element: any): void;
116
- mouseenter(event?: Event, element?: any): void;
117
- mouseleave(event?: Event, element?: any): void;
118
- mouseout(event?: Event, element?: any): void;
119
- mouseover(event?: Event, element?: any): void;
120
- }
@@ -1,74 +0,0 @@
1
- import { IDictionary, IEvent, IEventParam, IEvents, IKeyMap } from '@zeedhi/core';
2
- import { Component } from './component';
3
- export type EventDef<T, K = IEvent<T>> = K | string | (K | string)[];
4
- export interface IComponentEvents<T = IEventParam<any>> extends IEvents<T> {
5
- blur?: EventDef<T>;
6
- click?: EventDef<T>;
7
- focus?: EventDef<T>;
8
- onCreated?: EventDef<T>;
9
- onBeforeMount?: EventDef<T>;
10
- onMounted?: EventDef<T>;
11
- onBeforeDestroy?: EventDef<T>;
12
- onDestroyed?: EventDef<T>;
13
- }
14
- export interface IComponentDirectives {
15
- touch?: IComponentEvents;
16
- [key: string]: IComponentEvents | undefined;
17
- }
18
- export interface IPropAccessor {
19
- [key: string]: {
20
- instance: any;
21
- accessor: string;
22
- };
23
- }
24
- export interface IComponent {
25
- allowDuplicate?: boolean;
26
- autofocus?: boolean;
27
- children?: IComponent[];
28
- componentId?: number;
29
- cssClass?: string;
30
- cssStyle?: string | IDictionary;
31
- events?: IComponentEvents;
32
- directives?: IComponentDirectives;
33
- isVisible?: boolean | string;
34
- dark?: boolean;
35
- light?: boolean;
36
- theme?: string;
37
- keyMap?: IKeyMap;
38
- name: string;
39
- parent?: IComponentInstance;
40
- tabStop?: boolean;
41
- userProperties?: IDictionary;
42
- fillHeight?: boolean;
43
- [key: string]: any;
44
- }
45
- export interface IComponentInstance {
46
- addChildInstance(component: Component): void;
47
- getChildInstance<T extends Component>(name: string): T;
48
- allowDuplicate: boolean;
49
- autofocus: boolean;
50
- children: IComponent[];
51
- componentId: number;
52
- cssClass: string;
53
- cssStyle: string | IDictionary;
54
- events: IComponentEvents;
55
- directives: IComponentDirectives;
56
- isVisible: boolean | string;
57
- dark: boolean;
58
- light: boolean;
59
- theme?: string;
60
- keyMap: IKeyMap;
61
- name: string;
62
- parent?: IComponentInstance;
63
- tabStop: boolean;
64
- userProperties: IDictionary;
65
- fillHeight: boolean;
66
- }
67
- export interface IComponentRender extends IComponent {
68
- children?: IComponentRender[];
69
- component: string;
70
- }
71
- export interface IComponentRenderInstance extends IComponentInstance {
72
- children: IComponentRender[];
73
- component: string;
74
- }
@@ -1,45 +0,0 @@
1
- import { ComponentRender } from '../zd-component/component-render';
2
- import { IContainer } from './interfaces';
3
- export declare class Container extends ComponentRender implements IContainer {
4
- /**
5
- * Sets the height for the component.
6
- */
7
- height: number | string;
8
- /**
9
- * Sets the maximum height for the component.
10
- */
11
- maxHeight: number | string;
12
- /**
13
- * Sets the minimum height for the component.
14
- */
15
- minHeight: number | string;
16
- /**
17
- * Defines the component width. Possible values for this property can be
18
- * <samp>'auto', '100%', '400px' or 400</samp>
19
- */
20
- width: string | number;
21
- /**
22
- * Defines the component min width. Possible values for this property can be
23
- * <samp>'auto', '100%', '400px' or 400</samp>
24
- */
25
- minWidth: string | number;
26
- /**
27
- * Defines the component max height. Possible values for this property can be
28
- * <samp>'auto', '100%', '400px' or 400</samp>
29
- */
30
- maxWidth: string | number;
31
- /**
32
- * Removes viewport maximum-width size breakpoints.
33
- */
34
- fluid: boolean;
35
- /**
36
- * Define if the container is a scroll view
37
- */
38
- scrollView: boolean;
39
- tag: string;
40
- /**
41
- * Creates a new Container.
42
- * @param props Container properties
43
- */
44
- constructor(props: IContainer);
45
- }
@@ -1,12 +0,0 @@
1
- import { IComponentRender } from '../zd-component/interfaces';
2
- export interface IContainer extends IComponentRender {
3
- fluid?: boolean;
4
- height?: string | number;
5
- maxHeight?: string | number;
6
- minHeight?: string | number;
7
- width?: string | number;
8
- maxWidth?: string | number;
9
- minWidth?: string | number;
10
- scrollView?: boolean;
11
- tag?: string;
12
- }
@@ -1,12 +0,0 @@
1
- import { NumberInput as ZdNumber } from '../zd-number-input/number-input';
2
- import { ICurrency } from './interfaces';
3
- /**
4
- * Base class for Currency component
5
- */
6
- export declare class Currency extends ZdNumber implements ICurrency {
7
- mask: any;
8
- protected defaultMask: any;
9
- protected formatterFn: (...args: any) => any;
10
- protected parserFn: (...args: any) => any;
11
- constructor(props: ICurrency);
12
- }
@@ -1,6 +0,0 @@
1
- import { IEventParam } from '@zeedhi/core';
2
- import { INumberInput } from '../zd-number-input/interfaces';
3
- import { Currency } from './currency';
4
- export type ICurrencyEvent = IEventParam<Currency>;
5
- export interface ICurrency extends INumberInput {
6
- }
@@ -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
- }