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