@zeedhi/common 1.120.0 → 1.120.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/dist/zd-common.esm.js +2 -32
  2. package/dist/zd-common.umd.js +2 -32
  3. package/package.json +2 -2
  4. package/types/components/zd-iterable/search.d.ts +2 -2
  5. package/types/components/zd-number/number.d.ts +1 -7
  6. package/dist/types/components/index.d.ts +0 -151
  7. package/dist/types/components/zd-alert/alert.d.ts +0 -94
  8. package/dist/types/components/zd-alert/interfaces.d.ts +0 -18
  9. package/dist/types/components/zd-badge/badge.d.ts +0 -28
  10. package/dist/types/components/zd-badge/interfaces.d.ts +0 -10
  11. package/dist/types/components/zd-breadcrumbs/breadcrumbs.d.ts +0 -32
  12. package/dist/types/components/zd-breadcrumbs/interfaces.d.ts +0 -24
  13. package/dist/types/components/zd-button/button.d.ts +0 -89
  14. package/dist/types/components/zd-button/interfaces.d.ts +0 -48
  15. package/dist/types/components/zd-button-group/button-group.d.ts +0 -67
  16. package/dist/types/components/zd-button-group/interfaces.d.ts +0 -25
  17. package/dist/types/components/zd-card/card.d.ts +0 -152
  18. package/dist/types/components/zd-card/interfaces.d.ts +0 -40
  19. package/dist/types/components/zd-carousel/carousel.d.ts +0 -163
  20. package/dist/types/components/zd-carousel/interfaces.d.ts +0 -49
  21. package/dist/types/components/zd-checkbox/checkbox.d.ts +0 -12
  22. package/dist/types/components/zd-checkbox/interfaces.d.ts +0 -5
  23. package/dist/types/components/zd-checkbox-multiple/checkbox-multiple.d.ts +0 -39
  24. package/dist/types/components/zd-checkbox-multiple/interfaces.d.ts +0 -13
  25. package/dist/types/components/zd-chip/chip.d.ts +0 -60
  26. package/dist/types/components/zd-chip/interfaces.d.ts +0 -18
  27. package/dist/types/components/zd-code-viewer/code-viewer.d.ts +0 -86
  28. package/dist/types/components/zd-code-viewer/interfaces.d.ts +0 -13
  29. package/dist/types/components/zd-col/col.d.ts +0 -33
  30. package/dist/types/components/zd-col/interfaces.d.ts +0 -15
  31. package/dist/types/components/zd-collapse-card/collapse-card.d.ts +0 -56
  32. package/dist/types/components/zd-collapse-card/interfaces.d.ts +0 -14
  33. package/dist/types/components/zd-component/child-not-found.d.ts +0 -6
  34. package/dist/types/components/zd-component/component-render.d.ts +0 -16
  35. package/dist/types/components/zd-component/component.d.ts +0 -120
  36. package/dist/types/components/zd-component/interfaces.d.ts +0 -74
  37. package/dist/types/components/zd-container/container.d.ts +0 -45
  38. package/dist/types/components/zd-container/interfaces.d.ts +0 -12
  39. package/dist/types/components/zd-currency/currency.d.ts +0 -12
  40. package/dist/types/components/zd-currency/interfaces.d.ts +0 -6
  41. package/dist/types/components/zd-date-input/date-input.d.ts +0 -152
  42. package/dist/types/components/zd-date-input/interfaces.d.ts +0 -27
  43. package/dist/types/components/zd-date-range/date-range.d.ts +0 -158
  44. package/dist/types/components/zd-date-range/interfaces.d.ts +0 -18
  45. package/dist/types/components/zd-dialog/dialog.d.ts +0 -76
  46. package/dist/types/components/zd-dialog/interfaces.d.ts +0 -13
  47. package/dist/types/components/zd-divider/divider.d.ts +0 -20
  48. package/dist/types/components/zd-divider/interfaces.d.ts +0 -8
  49. package/dist/types/components/zd-dropdown/dropdown.d.ts +0 -81
  50. package/dist/types/components/zd-dropdown/interfaces.d.ts +0 -23
  51. package/dist/types/components/zd-footer/footer.d.ts +0 -80
  52. package/dist/types/components/zd-footer/interfaces.d.ts +0 -26
  53. package/dist/types/components/zd-form/form.d.ts +0 -174
  54. package/dist/types/components/zd-form/interfaces.d.ts +0 -36
  55. package/dist/types/components/zd-frame/frame.d.ts +0 -81
  56. package/dist/types/components/zd-frame/interfaces.d.ts +0 -23
  57. package/dist/types/components/zd-frame-page/frame-page.d.ts +0 -14
  58. package/dist/types/components/zd-frame-page/interfaces.d.ts +0 -4
  59. package/dist/types/components/zd-grid/data-navigator.d.ts +0 -12
  60. package/dist/types/components/zd-grid/data-selector.d.ts +0 -25
  61. package/dist/types/components/zd-grid/grid-column.d.ts +0 -47
  62. package/dist/types/components/zd-grid/grid-events.d.ts +0 -26
  63. package/dist/types/components/zd-grid/grid.d.ts +0 -85
  64. package/dist/types/components/zd-grid/index.d.ts +0 -11
  65. package/dist/types/components/zd-grid/interfaces.d.ts +0 -148
  66. package/dist/types/components/zd-grid/iterable-table.d.ts +0 -28
  67. package/dist/types/components/zd-grid/keymap-merger.d.ts +0 -26
  68. package/dist/types/components/zd-grid/keymap-navigation.d.ts +0 -6
  69. package/dist/types/components/zd-grid/table-action-builder.d.ts +0 -19
  70. package/dist/types/components/zd-grid/view-navigator.d.ts +0 -10
  71. package/dist/types/components/zd-grid-editable/data-editor-with-add.d.ts +0 -35
  72. package/dist/types/components/zd-grid-editable/data-editor.d.ts +0 -64
  73. package/dist/types/components/zd-grid-editable/errors/index.d.ts +0 -2
  74. package/dist/types/components/zd-grid-editable/errors/not-editing.d.ts +0 -6
  75. package/dist/types/components/zd-grid-editable/errors/row-not-found.d.ts +0 -6
  76. package/dist/types/components/zd-grid-editable/grid-column-editable.d.ts +0 -9
  77. package/dist/types/components/zd-grid-editable/grid-editable-controller.d.ts +0 -8
  78. package/dist/types/components/zd-grid-editable/grid-editable-events.d.ts +0 -32
  79. package/dist/types/components/zd-grid-editable/grid-editable.d.ts +0 -124
  80. package/dist/types/components/zd-grid-editable/index.d.ts +0 -8
  81. package/dist/types/components/zd-grid-editable/interfaces.d.ts +0 -66
  82. package/dist/types/components/zd-grid-editable/keymap-editing.d.ts +0 -7
  83. package/dist/types/components/zd-header/header.d.ts +0 -94
  84. package/dist/types/components/zd-header/interfaces.d.ts +0 -29
  85. package/dist/types/components/zd-icon/icon.d.ts +0 -55
  86. package/dist/types/components/zd-icon/interfaces.d.ts +0 -13
  87. package/dist/types/components/zd-image/image.d.ts +0 -73
  88. package/dist/types/components/zd-image/interfaces.d.ts +0 -17
  89. package/dist/types/components/zd-increment/increment.d.ts +0 -56
  90. package/dist/types/components/zd-increment/interfaces.d.ts +0 -9
  91. package/dist/types/components/zd-input/input-factory.d.ts +0 -6
  92. package/dist/types/components/zd-input/input.d.ts +0 -223
  93. package/dist/types/components/zd-input/interfaces.d.ts +0 -38
  94. package/dist/types/components/zd-iterable/column-not-found.d.ts +0 -6
  95. package/dist/types/components/zd-iterable/column.d.ts +0 -78
  96. package/dist/types/components/zd-iterable/conditions-manager.d.ts +0 -49
  97. package/dist/types/components/zd-iterable/interfaces.d.ts +0 -103
  98. package/dist/types/components/zd-iterable/iterable-columns-button-controller.d.ts +0 -9
  99. package/dist/types/components/zd-iterable/iterable-columns-button.d.ts +0 -35
  100. package/dist/types/components/zd-iterable/iterable-controller.d.ts +0 -8
  101. package/dist/types/components/zd-iterable/iterable-page-component.d.ts +0 -27
  102. package/dist/types/components/zd-iterable/iterable-page-info.d.ts +0 -7
  103. package/dist/types/components/zd-iterable/iterable-page-size.d.ts +0 -62
  104. package/dist/types/components/zd-iterable/iterable-pagination.d.ts +0 -28
  105. package/dist/types/components/zd-iterable/iterable.d.ts +0 -77
  106. package/dist/types/components/zd-iterable/search.d.ts +0 -31
  107. package/dist/types/components/zd-iterable-component-render/interfaces.d.ts +0 -34
  108. package/dist/types/components/zd-iterable-component-render/iterable-component-render.d.ts +0 -84
  109. package/dist/types/components/zd-layout/interfaces.d.ts +0 -7
  110. package/dist/types/components/zd-layout/layout.d.ts +0 -9
  111. package/dist/types/components/zd-list/interfaces.d.ts +0 -44
  112. package/dist/types/components/zd-list/item-not-found.d.ts +0 -6
  113. package/dist/types/components/zd-list/list-group.d.ts +0 -30
  114. package/dist/types/components/zd-list/list-item.d.ts +0 -46
  115. package/dist/types/components/zd-list/list.d.ts +0 -81
  116. package/dist/types/components/zd-loading/interfaces.d.ts +0 -7
  117. package/dist/types/components/zd-loading/loading.d.ts +0 -21
  118. package/dist/types/components/zd-login/interfaces.d.ts +0 -25
  119. package/dist/types/components/zd-login/login-button.d.ts +0 -50
  120. package/dist/types/components/zd-login/login.d.ts +0 -54
  121. package/dist/types/components/zd-main/interfaces.d.ts +0 -5
  122. package/dist/types/components/zd-main/main.d.ts +0 -7
  123. package/dist/types/components/zd-master-detail/detail-not-found.d.ts +0 -7
  124. package/dist/types/components/zd-master-detail/interfaces.d.ts +0 -10
  125. package/dist/types/components/zd-master-detail/master-detail.d.ts +0 -18
  126. package/dist/types/components/zd-master-detail/master-not-found.d.ts +0 -7
  127. package/dist/types/components/zd-menu/interfaces.d.ts +0 -68
  128. package/dist/types/components/zd-menu/menu-button.d.ts +0 -29
  129. package/dist/types/components/zd-menu/menu-group.d.ts +0 -61
  130. package/dist/types/components/zd-menu/menu-link.d.ts +0 -50
  131. package/dist/types/components/zd-menu/menu-separator.d.ts +0 -7
  132. package/dist/types/components/zd-menu/menu.d.ts +0 -199
  133. package/dist/types/components/zd-modal/interfaces.d.ts +0 -35
  134. package/dist/types/components/zd-modal/modal-close-button.d.ts +0 -28
  135. package/dist/types/components/zd-modal/modal.d.ts +0 -53
  136. package/dist/types/components/zd-month/interfaces.d.ts +0 -6
  137. package/dist/types/components/zd-month/month.d.ts +0 -33
  138. package/dist/types/components/zd-number-input/interfaces.d.ts +0 -8
  139. package/dist/types/components/zd-number-input/number-input.d.ts +0 -43
  140. package/dist/types/components/zd-password/interfaces.d.ts +0 -6
  141. package/dist/types/components/zd-password/password.d.ts +0 -17
  142. package/dist/types/components/zd-progress/interfaces.d.ts +0 -10
  143. package/dist/types/components/zd-progress/progress.d.ts +0 -41
  144. package/dist/types/components/zd-radio/interfaces.d.ts +0 -11
  145. package/dist/types/components/zd-radio/radio.d.ts +0 -35
  146. package/dist/types/components/zd-row/interfaces.d.ts +0 -13
  147. package/dist/types/components/zd-row/row.d.ts +0 -39
  148. package/dist/types/components/zd-select/interfaces.d.ts +0 -24
  149. package/dist/types/components/zd-select/select.d.ts +0 -238
  150. package/dist/types/components/zd-select-multiple/interfaces.d.ts +0 -18
  151. package/dist/types/components/zd-select-multiple/select-multiple.d.ts +0 -113
  152. package/dist/types/components/zd-svg-map/interfaces.d.ts +0 -26
  153. package/dist/types/components/zd-svg-map/svg-map.d.ts +0 -35
  154. package/dist/types/components/zd-switch/interfaces.d.ts +0 -7
  155. package/dist/types/components/zd-switch/switch.d.ts +0 -16
  156. package/dist/types/components/zd-table/interfaces.d.ts +0 -25
  157. package/dist/types/components/zd-table/table.d.ts +0 -42
  158. package/dist/types/components/zd-tabs/interfaces.d.ts +0 -40
  159. package/dist/types/components/zd-tabs/tab-not-found.d.ts +0 -11
  160. package/dist/types/components/zd-tabs/tab.d.ts +0 -57
  161. package/dist/types/components/zd-tabs/tabs.d.ts +0 -86
  162. package/dist/types/components/zd-tag/interfaces.d.ts +0 -7
  163. package/dist/types/components/zd-tag/tag.d.ts +0 -13
  164. package/dist/types/components/zd-text/interfaces.d.ts +0 -9
  165. package/dist/types/components/zd-text/text.d.ts +0 -8
  166. package/dist/types/components/zd-text-input/interfaces.d.ts +0 -23
  167. package/dist/types/components/zd-text-input/text-input.d.ts +0 -91
  168. package/dist/types/components/zd-textarea/interfaces.d.ts +0 -21
  169. package/dist/types/components/zd-textarea/textarea.d.ts +0 -71
  170. package/dist/types/components/zd-time/interfaces.d.ts +0 -22
  171. package/dist/types/components/zd-time/time-format-selector.d.ts +0 -8
  172. package/dist/types/components/zd-time/time.d.ts +0 -149
  173. package/dist/types/components/zd-toggleable/interfaces.d.ts +0 -6
  174. package/dist/types/components/zd-toggleable/toggleable.d.ts +0 -21
  175. package/dist/types/components/zd-tooltip/interfaces.d.ts +0 -18
  176. package/dist/types/components/zd-tooltip/tooltip.d.ts +0 -57
  177. package/dist/types/components/zd-tree/interfaces.d.ts +0 -107
  178. package/dist/types/components/zd-tree/tree.d.ts +0 -161
  179. package/dist/types/components/zd-tree-grid/index.d.ts +0 -6
  180. package/dist/types/components/zd-tree-grid/interfaces.d.ts +0 -35
  181. package/dist/types/components/zd-tree-grid/iterable-tree.d.ts +0 -10
  182. package/dist/types/components/zd-tree-grid/keymap-tree.d.ts +0 -7
  183. package/dist/types/components/zd-tree-grid/tree-data-navigator.d.ts +0 -10
  184. package/dist/types/components/zd-tree-grid/tree-data-selector.d.ts +0 -18
  185. package/dist/types/components/zd-tree-grid/tree-grid.d.ts +0 -119
  186. package/dist/types/error/delete-rows.d.ts +0 -7
  187. package/dist/types/error/index.d.ts +0 -3
  188. package/dist/types/error/non-initialized.d.ts +0 -7
  189. package/dist/types/error/zeedhi-error.d.ts +0 -6
  190. package/dist/types/index.d.ts +0 -6
  191. package/dist/types/services/index.d.ts +0 -4
  192. package/dist/types/services/zd-alert/alert-queue.d.ts +0 -13
  193. package/dist/types/services/zd-alert/alert-replace.d.ts +0 -18
  194. package/dist/types/services/zd-alert/alert-service.d.ts +0 -45
  195. package/dist/types/services/zd-alert/alert-stack.d.ts +0 -9
  196. package/dist/types/services/zd-alert/index.d.ts +0 -5
  197. package/dist/types/services/zd-alert/interfaces.d.ts +0 -6
  198. package/dist/types/services/zd-dialog/dialog-service.d.ts +0 -24
  199. package/dist/types/services/zd-loading/loading-service.d.ts +0 -17
  200. package/dist/types/services/zd-modal/modal-service.d.ts +0 -39
  201. package/dist/types/utils/data-value-out/data-value-out.d.ts +0 -5
  202. package/dist/types/utils/data-value-out/index.d.ts +0 -2
  203. package/dist/types/utils/data-value-out/interfaces.d.ts +0 -8
  204. package/dist/types/utils/datasource-searcher/datasource-searcher.d.ts +0 -6
  205. package/dist/types/utils/datasource-searcher/index.d.ts +0 -2
  206. package/dist/types/utils/datasource-searcher/interfaces.d.ts +0 -5
  207. package/dist/types/utils/icons/icons.d.ts +0 -24
  208. package/dist/types/utils/index.d.ts +0 -7
  209. package/dist/types/utils/omit/omit.d.ts +0 -11
  210. package/dist/types/utils/theme/theme.d.ts +0 -34
  211. package/dist/types/utils/tree-data-structure/index.d.ts +0 -2
  212. package/dist/types/utils/tree-data-structure/interfaces.d.ts +0 -30
  213. package/dist/types/utils/tree-data-structure/tree-data-structure.d.ts +0 -155
  214. package/dist/types/utils/unique-by/unique-by.d.ts +0 -3
  215. package/dist/zd-common.js +0 -13133
  216. package/dist/zd-common.min.js +0 -13133
@@ -1,94 +0,0 @@
1
- import { ComponentRender } from '../zd-component/component-render';
2
- import { IComponentRender } from '../zd-component/interfaces';
3
- import { IFrameEvents } from '../zd-frame/interfaces';
4
- import { IHeader } from './interfaces';
5
- /**
6
- * Base class for Header component.
7
- */
8
- export declare class Header extends ComponentRender implements IHeader {
9
- /**
10
- * Applies position absolute to header.
11
- */
12
- absolute: boolean;
13
- /**
14
- * Designates the header as part of the application layout.
15
- */
16
- app: boolean;
17
- /**
18
- * Render components on the middle of header.
19
- */
20
- centerSlot: IComponentRender[];
21
- /**
22
- * Applies specified color to the control. It can be the name of material or css color in hexa.
23
- */
24
- color: string;
25
- /**
26
- * Reduces the height of the toolbar content to 48px.
27
- */
28
- dense: boolean;
29
- /**
30
- * Designates an elevation applied to the component between 0 and 24.
31
- */
32
- elevation: number | string;
33
- /**
34
- * Events registered to the header.
35
- */
36
- events: IFrameEvents;
37
- /**
38
- * Applies position fixed to header.
39
- */
40
- fixed: boolean;
41
- /**
42
- * Sets the height for header.
43
- */
44
- height: number | string;
45
- /**
46
- * Render components on the left of header.
47
- */
48
- leftSlot: IComponentRender[];
49
- /**
50
- * Sets the maximum height for the header.
51
- */
52
- maxHeight?: number | string;
53
- /**
54
- * Sets the maximum width for the header.
55
- */
56
- maxWidth?: number | string;
57
- /**
58
- * Sets the minimum height for the header.
59
- */
60
- minHeight?: number | string;
61
- /**
62
- * Sets the minimum width for the header.
63
- */
64
- minWidth?: number | string;
65
- /**
66
- * Removes internal padding from header.
67
- */
68
- padless?: boolean;
69
- /**
70
- * Render components on the right of header.
71
- */
72
- rightSlot: IComponentRender[];
73
- /**
74
- * Sets the width for the component.
75
- */
76
- width?: number | string;
77
- /**
78
- * Specifies a v-img as the component’s background.
79
- */
80
- image?: string;
81
- /**
82
- * Adjust the order of the component in relation to its registration order.
83
- */
84
- order?: string | number;
85
- /**
86
- * Creates a new header.
87
- * @param props Header properties
88
- */
89
- constructor(props: IHeader);
90
- /**
91
- * Retrieves named slots visibility
92
- */
93
- get namedSlotsIsVisible(): number;
94
- }
@@ -1,29 +0,0 @@
1
- import { IEventParam } from '@zeedhi/core';
2
- import { IComponentEvents, IComponentRender } from '../zd-component/interfaces';
3
- import { Header } from './header';
4
- export type IHeaderEvent = IEventParam<Header>;
5
- export interface IHeaderEvents extends IComponentEvents<IHeaderEvent> {
6
- blur: undefined;
7
- click: undefined;
8
- focus: undefined;
9
- }
10
- export interface IHeader extends IComponentRender {
11
- absolute?: boolean;
12
- app?: boolean;
13
- centerSlot?: IComponentRender[];
14
- color?: string;
15
- dense?: boolean;
16
- elevation?: number | string;
17
- fixed?: boolean;
18
- height?: number | string;
19
- leftSlot?: IComponentRender[];
20
- maxHeight?: number | string;
21
- maxWidth?: number | string;
22
- minHeight?: number | string;
23
- minWidth?: number | string;
24
- padless?: boolean;
25
- rightSlot?: IComponentRender[];
26
- width?: number | string;
27
- image?: string;
28
- order?: string | number;
29
- }
@@ -1,55 +0,0 @@
1
- import { ComponentRender } from '../zd-component/component-render';
2
- import { IIcon } from './interfaces';
3
- /**
4
- * The Icon component <code>zd-icon</code> is used to show an icon.
5
- */
6
- export declare class Icon extends ComponentRender implements IIcon {
7
- /**
8
- * Applies specified color to the control - it can be the name of material color
9
- * (for example success or purple) or css color (#033 or rgba(255, 0, 0, 0.5)).
10
- */
11
- color: string;
12
- /**
13
- * Makes icon smaller (20px)
14
- */
15
- dense: boolean;
16
- /**
17
- * Disable the icon
18
- */
19
- disabled: boolean;
20
- /**
21
- * Defines the icon, that will be rendered
22
- */
23
- iconName: string;
24
- /**
25
- * Makes the component large.
26
- */
27
- large: boolean;
28
- /**
29
- * Applies appropriate margins to the icon inside
30
- * of a button when placed to the left of another element or text
31
- */
32
- left: boolean;
33
- /**
34
- * Applies appropriate margins to the icon inside of
35
- * a button when placed to the right of another element or text
36
- */
37
- right: boolean;
38
- /**
39
- * Specifies a custom font size for the icon
40
- */
41
- size: number | string;
42
- /**
43
- * Makes the component small.
44
- */
45
- small: boolean;
46
- /**
47
- * Specifies a custom tag to be used
48
- */
49
- tag: string;
50
- /**
51
- * Create a new Button
52
- * @param props Icon definition
53
- */
54
- constructor(props: IIcon);
55
- }
@@ -1,13 +0,0 @@
1
- import { IComponentRender } from '../zd-component/interfaces';
2
- export interface IIcon extends IComponentRender {
3
- color?: string;
4
- dense?: boolean;
5
- disabled?: boolean;
6
- large?: boolean;
7
- left?: boolean;
8
- right?: boolean;
9
- size?: number | string;
10
- small?: boolean;
11
- tag?: string;
12
- iconName: string;
13
- }
@@ -1,73 +0,0 @@
1
- import { ComponentRender } from '../zd-component/component-render';
2
- import { IImage } from './interfaces';
3
- export declare class Image extends ComponentRender implements IImage {
4
- /**
5
- * Alternative text for the image, if the image cannot be displayed.
6
- */
7
- alt: string;
8
- /**
9
- * Path of the image to be shown if an error occurs.
10
- */
11
- errorImagePath: string;
12
- /**
13
- * Text to be shown if an error occurs.
14
- */
15
- errorImageText: string;
16
- /**
17
- * Defines how the image should be resized to fit its container.
18
- * See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit\"
19
- * alt=\"Object fit in MDN\" target=\"_blank\">MDN Web Docs</a>
20
- * for more details.
21
- */
22
- objectFit: string;
23
- /**
24
- * Defines the component height. Possible values for this property can be
25
- * <samp>'auto', '100%', '400px' or 400</samp>
26
- */
27
- height: string | number;
28
- /**
29
- * Defines the component min height. Possible values for this property can be
30
- * <samp>'auto', '100%', '400px' or 400</samp>
31
- */
32
- minHeight: string | number;
33
- /**
34
- * Defines the component max height. Possible values for this property can be
35
- * <samp>'auto', '100%', '400px' or 400</samp>
36
- */
37
- maxHeight: string | number;
38
- /**
39
- * Defines the component width. Possible values for this property can be
40
- * <samp>'auto', '100%', '400px' or 400</samp>
41
- */
42
- width: string | number;
43
- /**
44
- * Defines the component min width. Possible values for this property can be
45
- * <samp>'auto', '100%', '400px' or 400</samp>
46
- */
47
- minWidth: string | number;
48
- /**
49
- * Defines the component max height. Possible values for this property can be
50
- * <samp>'auto', '100%', '400px' or 400</samp>
51
- */
52
- maxWidth: string | number;
53
- /**
54
- * Source of the image file.
55
- */
56
- private srcValue;
57
- validImage?: boolean;
58
- /**
59
- * Creates a new Image.
60
- * @param props Image properties
61
- */
62
- constructor(props: IImage);
63
- /**
64
- * Event to be called after the error image is loaded
65
- */
66
- loadImage(): void;
67
- /**
68
- * Event to be called after the image is not loaded
69
- */
70
- errorImage(): void;
71
- get src(): string;
72
- set src(src: string);
73
- }
@@ -1,17 +0,0 @@
1
- import { IEventParam } from '@zeedhi/core';
2
- import { IComponentRender } from '../zd-component/interfaces';
3
- import { Image } from './image';
4
- export type IImageEvents = IEventParam<Image>;
5
- export interface IImage extends IComponentRender {
6
- alt?: string;
7
- errorImagePath?: string;
8
- errorImageText?: string;
9
- objectFit?: string;
10
- src?: string;
11
- height?: number | string;
12
- maxHeight?: number | string;
13
- minHeight?: number | string;
14
- width?: number | string;
15
- maxWidth?: number | string;
16
- minWidth?: number | string;
17
- }
@@ -1,56 +0,0 @@
1
- import { NumberInput as ZdNumber } from '../zd-number-input/number-input';
2
- import { IIncrement } from './interfaces';
3
- /**
4
- * Base class for Increment component.
5
- */
6
- export declare class Increment extends ZdNumber implements IIncrement {
7
- align: string;
8
- /**
9
- * Appends a plus icon inside of the component
10
- */
11
- appendIcon: string;
12
- /**
13
- * Maximum value of increment
14
- */
15
- maxValue?: number;
16
- /**
17
- * Minimum value of decrement
18
- */
19
- minValue?: number;
20
- /**
21
- * Prepends a minus icon inside of the component
22
- */
23
- prependIcon: string;
24
- /**
25
- * Defines the increment value
26
- */
27
- step: number;
28
- /**
29
- * Creates a new Increment.
30
- * @param props Increment properties
31
- */
32
- constructor(props: IIncrement & {
33
- component: string;
34
- name: string;
35
- });
36
- /**
37
- * Triggered when the prepended icon is clicked.
38
- * @param event DOM event
39
- * @param element Increment
40
- */
41
- minusClick(event: Event, element: any): void;
42
- /**
43
- * Triggered when the appended icon is clicked.
44
- * @param event DOM event
45
- * @param element Increment
46
- */
47
- plusClick(event: Event, element: any): void;
48
- /**
49
- * Method to increment the value
50
- */
51
- increment(): void;
52
- /**
53
- * Method to decrement the value
54
- */
55
- decrement(): void;
56
- }
@@ -1,9 +0,0 @@
1
- import { IEventParam } from '@zeedhi/core';
2
- import { INumberInput } from '../zd-number-input/interfaces';
3
- import { Increment } from './increment';
4
- export type IIncrementEvent = IEventParam<Increment>;
5
- export interface IIncrement extends INumberInput {
6
- step?: number;
7
- maxValue?: number;
8
- minValue?: number;
9
- }
@@ -1,6 +0,0 @@
1
- import { IDictionary, INewable } from '@zeedhi/core';
2
- export declare class InputFactory {
3
- private static inputClasses;
4
- static register(className: string, inputClass: INewable<any>): void;
5
- static factory(props: IDictionary<any>): any;
6
- }
@@ -1,223 +0,0 @@
1
- import { IDictionary } from '@zeedhi/core';
2
- import { ComponentRender } from '../zd-component/component-render';
3
- import { Form } from '../zd-form/form';
4
- import { IInput, IInputEvents } from './interfaces';
5
- import { IFormGrid } from '../zd-form/interfaces';
6
- /**
7
- * Base class for Input component.
8
- */
9
- export declare class Input extends ComponentRender implements IInput {
10
- /**
11
- * Input content alignment.
12
- */
13
- align: string;
14
- /**
15
- * Always show error messages even if showHelper is false.
16
- */
17
- alwaysShowError: boolean;
18
- /**
19
- * Input auto complete.
20
- */
21
- autofill: boolean;
22
- /**
23
- * Add input clear functionality if the input isn't readonly or disabled.
24
- */
25
- clearable: boolean;
26
- /**
27
- * Applies specified color to the control.
28
- * It can be the name of material or css color in hex.
29
- */
30
- color: string;
31
- /**
32
- * Defines smaller input.
33
- */
34
- dense: boolean;
35
- /**
36
- * Removes the ability to click or target the input.
37
- */
38
- disabled: boolean;
39
- /**
40
- * Defines input events.
41
- */
42
- events: IInputEvents;
43
- /**
44
- * Hint text.
45
- */
46
- hint: string;
47
- /**
48
- * Defines the input label.
49
- */
50
- label: string;
51
- /**
52
- * Applies a custom character mask to the input.
53
- */
54
- mask?: any;
55
- /**
56
- * Input max character length.
57
- */
58
- maxLength: number;
59
- /**
60
- * Forces hint to always be visible.
61
- */
62
- persistentHint: boolean;
63
- /**
64
- * Sets the input’s placeholder text.
65
- */
66
- placeholder: string;
67
- /**
68
- * Puts input in readonly state.
69
- */
70
- readonly: boolean;
71
- /**
72
- * Reverses the input orientation.
73
- */
74
- reverse: boolean;
75
- /**
76
- * Rules that will validate the input value.
77
- */
78
- rules: ((value?: any) => boolean | string)[];
79
- /**
80
- * Shows input border.
81
- */
82
- showBorder: boolean;
83
- /**
84
- * Shows input helper.
85
- */
86
- showHelper: boolean;
87
- /**
88
- * Shows input label.
89
- */
90
- showLabel: boolean;
91
- /**
92
- * Show rules details in input.
93
- */
94
- autoHintDetails: boolean;
95
- /**
96
- * Used to watch a value from store.
97
- */
98
- storePath: string;
99
- /**
100
- * Input validations.
101
- */
102
- validations: IDictionary<IDictionary<string | number>>;
103
- /**
104
- * Optional validation method assigned by view layer.
105
- */
106
- private viewValidate?;
107
- /**
108
- * Reset validation method assigned by view layer.
109
- */
110
- private viewResetValidation?;
111
- /**
112
- * Parsed field rules.
113
- */
114
- protected parsedValidations: IDictionary<(value?: any) => boolean | string>;
115
- protected formatterFn: (...args: any) => any;
116
- protected parserFn: (...args: any) => any;
117
- protected internalDisplayValue: string;
118
- protected internalValue: any;
119
- formParent?: Form;
120
- grid: IFormGrid;
121
- /**
122
- * Creates a new Input.
123
- * @param props Input properties
124
- */
125
- constructor(props: IInput);
126
- onCreated(): void;
127
- /**
128
- * Validates input.
129
- */
130
- validate(): Promise<string[]>;
131
- /**
132
- * Sets view validation method.
133
- */
134
- setViewValidate(viewValidate: (silent?: boolean) => Promise<string[]>): void;
135
- /**
136
- * Sets view reset validation method.
137
- */
138
- setViewResetValidation(viewResetValidation: () => void): void;
139
- /**
140
- * Reset all form validation errors.
141
- * @throws Will throw if viewResetValidation is undefined
142
- */
143
- resetValidation(): void;
144
- /**
145
- * Adds parsed validations based on field validations.
146
- * @param validations Field validations
147
- */
148
- private parseValidations;
149
- /**
150
- * Adds input validation.
151
- * @param name Validation name
152
- * @param config Validation config
153
- */
154
- addValidation(name: string, config?: IDictionary<any>): void;
155
- /**
156
- * Removes input validation.
157
- * @param name Validation name
158
- */
159
- removeValidation(name: string): void;
160
- /**
161
- * Removes all input validation.
162
- */
163
- clearValidations(): void;
164
- /**
165
- * Updates input rules.
166
- */
167
- protected updateRules(): void;
168
- /**
169
- * Input value.
170
- */
171
- get value(): any;
172
- set value(value: any);
173
- /**
174
- * Input displayed value.
175
- */
176
- get displayValue(): any;
177
- set displayValue(value: any);
178
- /**
179
- * Retrieves a formatted value.
180
- * @param value Any value
181
- * @returns A Formatted value
182
- */
183
- formatter(value: any): any;
184
- /**
185
- * Retrieves a parsed value.
186
- * @param value Any value
187
- * @returns A parsed value
188
- */
189
- parser(value: any): any;
190
- /**
191
- * Checks the input value are valid to all applied rules.
192
- * @returns Input is valid
193
- */
194
- isValid(value?: any): boolean;
195
- private lastChangeValue;
196
- /**
197
- * Triggered when the input value changes.
198
- * @param event DOM event
199
- * @param element Element clicked
200
- */
201
- change(event?: Event, element?: any): void;
202
- protected lastInputValue: any;
203
- protected callInputEvent: ({ event, element, component }: IDictionary) => void;
204
- /**
205
- * Triggered when the data is inputted.
206
- * @param event DOM event
207
- * @param element Element focused
208
- */
209
- input(event?: Event, element?: any): void;
210
- /**
211
- * Triggered when a keyboard key is released.
212
- * @param event DOM event
213
- * @param element Element that lost the focus
214
- */
215
- keyup(event?: Event, element?: any): void;
216
- /**
217
- * Triggered when the user presses a key on the keyboard.
218
- * @param event DOM event
219
- * @param element Element that lost the focus
220
- */
221
- keydown(event?: Event, element?: any): void;
222
- private getFormParent;
223
- }
@@ -1,38 +0,0 @@
1
- import { IDictionary, IEventParam } from '@zeedhi/core';
2
- import { EventDef, IComponentEvents, IComponentRender } from '../zd-component/interfaces';
3
- import { Input } from './input';
4
- import { IFormGrid } from '../zd-form/interfaces';
5
- export type IInputEvent = IEventParam<Input>;
6
- export interface IInputEvents<T = IEventParam<any>> extends IComponentEvents<T> {
7
- change?: EventDef<T>;
8
- input?: EventDef<T>;
9
- keydown?: EventDef<T>;
10
- keyup?: EventDef<T>;
11
- }
12
- export interface IInput extends IComponentRender {
13
- align?: string;
14
- alwaysShowError?: boolean;
15
- autofill?: boolean;
16
- clearable?: boolean;
17
- color?: string;
18
- dense?: boolean;
19
- disabled?: boolean;
20
- displayValue?: any;
21
- events?: IInputEvents;
22
- hint?: string;
23
- label?: string;
24
- mask?: any;
25
- maxLength?: number;
26
- persistentHint?: boolean;
27
- autoHintDetails?: boolean;
28
- placeholder?: string;
29
- readonly?: boolean;
30
- reverse?: boolean;
31
- showBorder?: boolean;
32
- showHelper?: boolean;
33
- showLabel?: boolean;
34
- storePath?: string;
35
- validations?: IDictionary<IDictionary<string | number>>;
36
- value?: any;
37
- grid?: IFormGrid;
38
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * Column not found error
3
- */
4
- export declare class ColumnNotFoundError extends Error {
5
- constructor(name: string, parentName: string);
6
- }