@zeedhi/common 1.123.0 → 1.125.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/dist/zd-common.esm.js +6 -6
  2. package/dist/zd-common.umd.js +6 -6
  3. package/package.json +2 -2
  4. package/types/components/zd-date/date-range.d.ts +1 -1
  5. package/types/components/zd-date/date.d.ts +1 -1
  6. package/types/components/zd-date/interfaces.d.ts +1 -1
  7. package/types/components/zd-time/interfaces.d.ts +1 -0
  8. package/types/components/zd-time/time.d.ts +1 -1
  9. package/types/services/zd-json-cache/json-cache-service.d.ts +12 -0
  10. package/dist/types/components/index.d.ts +0 -151
  11. package/dist/types/components/zd-alert/alert.d.ts +0 -94
  12. package/dist/types/components/zd-alert/interfaces.d.ts +0 -18
  13. package/dist/types/components/zd-badge/badge.d.ts +0 -28
  14. package/dist/types/components/zd-badge/interfaces.d.ts +0 -10
  15. package/dist/types/components/zd-breadcrumbs/breadcrumbs.d.ts +0 -32
  16. package/dist/types/components/zd-breadcrumbs/interfaces.d.ts +0 -24
  17. package/dist/types/components/zd-button/button.d.ts +0 -89
  18. package/dist/types/components/zd-button/interfaces.d.ts +0 -48
  19. package/dist/types/components/zd-button-group/button-group.d.ts +0 -67
  20. package/dist/types/components/zd-button-group/interfaces.d.ts +0 -25
  21. package/dist/types/components/zd-card/card.d.ts +0 -152
  22. package/dist/types/components/zd-card/interfaces.d.ts +0 -40
  23. package/dist/types/components/zd-carousel/carousel.d.ts +0 -163
  24. package/dist/types/components/zd-carousel/interfaces.d.ts +0 -49
  25. package/dist/types/components/zd-checkbox/checkbox.d.ts +0 -12
  26. package/dist/types/components/zd-checkbox/interfaces.d.ts +0 -5
  27. package/dist/types/components/zd-checkbox-multiple/checkbox-multiple.d.ts +0 -39
  28. package/dist/types/components/zd-checkbox-multiple/interfaces.d.ts +0 -13
  29. package/dist/types/components/zd-chip/chip.d.ts +0 -60
  30. package/dist/types/components/zd-chip/interfaces.d.ts +0 -18
  31. package/dist/types/components/zd-code-viewer/code-viewer.d.ts +0 -86
  32. package/dist/types/components/zd-code-viewer/interfaces.d.ts +0 -13
  33. package/dist/types/components/zd-col/col.d.ts +0 -33
  34. package/dist/types/components/zd-col/interfaces.d.ts +0 -15
  35. package/dist/types/components/zd-collapse-card/collapse-card.d.ts +0 -56
  36. package/dist/types/components/zd-collapse-card/interfaces.d.ts +0 -14
  37. package/dist/types/components/zd-component/child-not-found.d.ts +0 -6
  38. package/dist/types/components/zd-component/component-render.d.ts +0 -16
  39. package/dist/types/components/zd-component/component.d.ts +0 -120
  40. package/dist/types/components/zd-component/interfaces.d.ts +0 -74
  41. package/dist/types/components/zd-container/container.d.ts +0 -45
  42. package/dist/types/components/zd-container/interfaces.d.ts +0 -12
  43. package/dist/types/components/zd-currency/currency.d.ts +0 -12
  44. package/dist/types/components/zd-currency/interfaces.d.ts +0 -6
  45. package/dist/types/components/zd-date-input/date-input.d.ts +0 -152
  46. package/dist/types/components/zd-date-input/interfaces.d.ts +0 -27
  47. package/dist/types/components/zd-date-range/date-range.d.ts +0 -158
  48. package/dist/types/components/zd-date-range/interfaces.d.ts +0 -18
  49. package/dist/types/components/zd-dialog/dialog.d.ts +0 -76
  50. package/dist/types/components/zd-dialog/interfaces.d.ts +0 -13
  51. package/dist/types/components/zd-divider/divider.d.ts +0 -20
  52. package/dist/types/components/zd-divider/interfaces.d.ts +0 -8
  53. package/dist/types/components/zd-dropdown/dropdown.d.ts +0 -81
  54. package/dist/types/components/zd-dropdown/interfaces.d.ts +0 -23
  55. package/dist/types/components/zd-footer/footer.d.ts +0 -80
  56. package/dist/types/components/zd-footer/interfaces.d.ts +0 -26
  57. package/dist/types/components/zd-form/form.d.ts +0 -174
  58. package/dist/types/components/zd-form/interfaces.d.ts +0 -36
  59. package/dist/types/components/zd-frame/frame.d.ts +0 -81
  60. package/dist/types/components/zd-frame/interfaces.d.ts +0 -23
  61. package/dist/types/components/zd-frame-page/frame-page.d.ts +0 -14
  62. package/dist/types/components/zd-frame-page/interfaces.d.ts +0 -4
  63. package/dist/types/components/zd-grid/data-navigator.d.ts +0 -12
  64. package/dist/types/components/zd-grid/data-selector.d.ts +0 -25
  65. package/dist/types/components/zd-grid/grid-column.d.ts +0 -47
  66. package/dist/types/components/zd-grid/grid-events.d.ts +0 -26
  67. package/dist/types/components/zd-grid/grid.d.ts +0 -85
  68. package/dist/types/components/zd-grid/index.d.ts +0 -11
  69. package/dist/types/components/zd-grid/interfaces.d.ts +0 -148
  70. package/dist/types/components/zd-grid/iterable-table.d.ts +0 -28
  71. package/dist/types/components/zd-grid/keymap-merger.d.ts +0 -26
  72. package/dist/types/components/zd-grid/keymap-navigation.d.ts +0 -6
  73. package/dist/types/components/zd-grid/table-action-builder.d.ts +0 -19
  74. package/dist/types/components/zd-grid/view-navigator.d.ts +0 -10
  75. package/dist/types/components/zd-grid-editable/data-editor-with-add.d.ts +0 -35
  76. package/dist/types/components/zd-grid-editable/data-editor.d.ts +0 -64
  77. package/dist/types/components/zd-grid-editable/errors/index.d.ts +0 -2
  78. package/dist/types/components/zd-grid-editable/errors/not-editing.d.ts +0 -6
  79. package/dist/types/components/zd-grid-editable/errors/row-not-found.d.ts +0 -6
  80. package/dist/types/components/zd-grid-editable/grid-column-editable.d.ts +0 -9
  81. package/dist/types/components/zd-grid-editable/grid-editable-controller.d.ts +0 -8
  82. package/dist/types/components/zd-grid-editable/grid-editable-events.d.ts +0 -32
  83. package/dist/types/components/zd-grid-editable/grid-editable.d.ts +0 -124
  84. package/dist/types/components/zd-grid-editable/index.d.ts +0 -8
  85. package/dist/types/components/zd-grid-editable/interfaces.d.ts +0 -66
  86. package/dist/types/components/zd-grid-editable/keymap-editing.d.ts +0 -7
  87. package/dist/types/components/zd-header/header.d.ts +0 -94
  88. package/dist/types/components/zd-header/interfaces.d.ts +0 -29
  89. package/dist/types/components/zd-icon/icon.d.ts +0 -55
  90. package/dist/types/components/zd-icon/interfaces.d.ts +0 -13
  91. package/dist/types/components/zd-image/image.d.ts +0 -73
  92. package/dist/types/components/zd-image/interfaces.d.ts +0 -17
  93. package/dist/types/components/zd-increment/increment.d.ts +0 -56
  94. package/dist/types/components/zd-increment/interfaces.d.ts +0 -9
  95. package/dist/types/components/zd-input/input-factory.d.ts +0 -6
  96. package/dist/types/components/zd-input/input.d.ts +0 -223
  97. package/dist/types/components/zd-input/interfaces.d.ts +0 -38
  98. package/dist/types/components/zd-iterable/column-not-found.d.ts +0 -6
  99. package/dist/types/components/zd-iterable/column.d.ts +0 -78
  100. package/dist/types/components/zd-iterable/conditions-manager.d.ts +0 -49
  101. package/dist/types/components/zd-iterable/interfaces.d.ts +0 -103
  102. package/dist/types/components/zd-iterable/iterable-columns-button-controller.d.ts +0 -9
  103. package/dist/types/components/zd-iterable/iterable-columns-button.d.ts +0 -35
  104. package/dist/types/components/zd-iterable/iterable-controller.d.ts +0 -8
  105. package/dist/types/components/zd-iterable/iterable-page-component.d.ts +0 -27
  106. package/dist/types/components/zd-iterable/iterable-page-info.d.ts +0 -7
  107. package/dist/types/components/zd-iterable/iterable-page-size.d.ts +0 -62
  108. package/dist/types/components/zd-iterable/iterable-pagination.d.ts +0 -28
  109. package/dist/types/components/zd-iterable/iterable.d.ts +0 -77
  110. package/dist/types/components/zd-iterable/search.d.ts +0 -31
  111. package/dist/types/components/zd-iterable-component-render/interfaces.d.ts +0 -34
  112. package/dist/types/components/zd-iterable-component-render/iterable-component-render.d.ts +0 -84
  113. package/dist/types/components/zd-layout/interfaces.d.ts +0 -7
  114. package/dist/types/components/zd-layout/layout.d.ts +0 -9
  115. package/dist/types/components/zd-list/interfaces.d.ts +0 -44
  116. package/dist/types/components/zd-list/item-not-found.d.ts +0 -6
  117. package/dist/types/components/zd-list/list-group.d.ts +0 -30
  118. package/dist/types/components/zd-list/list-item.d.ts +0 -46
  119. package/dist/types/components/zd-list/list.d.ts +0 -81
  120. package/dist/types/components/zd-loading/interfaces.d.ts +0 -7
  121. package/dist/types/components/zd-loading/loading.d.ts +0 -21
  122. package/dist/types/components/zd-login/interfaces.d.ts +0 -25
  123. package/dist/types/components/zd-login/login-button.d.ts +0 -50
  124. package/dist/types/components/zd-login/login.d.ts +0 -54
  125. package/dist/types/components/zd-main/interfaces.d.ts +0 -5
  126. package/dist/types/components/zd-main/main.d.ts +0 -7
  127. package/dist/types/components/zd-master-detail/detail-not-found.d.ts +0 -7
  128. package/dist/types/components/zd-master-detail/interfaces.d.ts +0 -10
  129. package/dist/types/components/zd-master-detail/master-detail.d.ts +0 -18
  130. package/dist/types/components/zd-master-detail/master-not-found.d.ts +0 -7
  131. package/dist/types/components/zd-menu/interfaces.d.ts +0 -68
  132. package/dist/types/components/zd-menu/menu-button.d.ts +0 -29
  133. package/dist/types/components/zd-menu/menu-group.d.ts +0 -61
  134. package/dist/types/components/zd-menu/menu-link.d.ts +0 -50
  135. package/dist/types/components/zd-menu/menu-separator.d.ts +0 -7
  136. package/dist/types/components/zd-menu/menu.d.ts +0 -199
  137. package/dist/types/components/zd-modal/interfaces.d.ts +0 -35
  138. package/dist/types/components/zd-modal/modal-close-button.d.ts +0 -28
  139. package/dist/types/components/zd-modal/modal.d.ts +0 -53
  140. package/dist/types/components/zd-month/interfaces.d.ts +0 -6
  141. package/dist/types/components/zd-month/month.d.ts +0 -33
  142. package/dist/types/components/zd-number-input/interfaces.d.ts +0 -8
  143. package/dist/types/components/zd-number-input/number-input.d.ts +0 -43
  144. package/dist/types/components/zd-password/interfaces.d.ts +0 -6
  145. package/dist/types/components/zd-password/password.d.ts +0 -17
  146. package/dist/types/components/zd-progress/interfaces.d.ts +0 -10
  147. package/dist/types/components/zd-progress/progress.d.ts +0 -41
  148. package/dist/types/components/zd-radio/interfaces.d.ts +0 -11
  149. package/dist/types/components/zd-radio/radio.d.ts +0 -35
  150. package/dist/types/components/zd-row/interfaces.d.ts +0 -13
  151. package/dist/types/components/zd-row/row.d.ts +0 -39
  152. package/dist/types/components/zd-select/interfaces.d.ts +0 -24
  153. package/dist/types/components/zd-select/select.d.ts +0 -238
  154. package/dist/types/components/zd-select-multiple/interfaces.d.ts +0 -18
  155. package/dist/types/components/zd-select-multiple/select-multiple.d.ts +0 -113
  156. package/dist/types/components/zd-svg-map/interfaces.d.ts +0 -26
  157. package/dist/types/components/zd-svg-map/svg-map.d.ts +0 -35
  158. package/dist/types/components/zd-switch/interfaces.d.ts +0 -7
  159. package/dist/types/components/zd-switch/switch.d.ts +0 -16
  160. package/dist/types/components/zd-table/interfaces.d.ts +0 -25
  161. package/dist/types/components/zd-table/table.d.ts +0 -42
  162. package/dist/types/components/zd-tabs/interfaces.d.ts +0 -40
  163. package/dist/types/components/zd-tabs/tab-not-found.d.ts +0 -11
  164. package/dist/types/components/zd-tabs/tab.d.ts +0 -57
  165. package/dist/types/components/zd-tabs/tabs.d.ts +0 -86
  166. package/dist/types/components/zd-tag/interfaces.d.ts +0 -7
  167. package/dist/types/components/zd-tag/tag.d.ts +0 -13
  168. package/dist/types/components/zd-text/interfaces.d.ts +0 -9
  169. package/dist/types/components/zd-text/text.d.ts +0 -8
  170. package/dist/types/components/zd-text-input/interfaces.d.ts +0 -23
  171. package/dist/types/components/zd-text-input/text-input.d.ts +0 -91
  172. package/dist/types/components/zd-textarea/interfaces.d.ts +0 -21
  173. package/dist/types/components/zd-textarea/textarea.d.ts +0 -71
  174. package/dist/types/components/zd-time/interfaces.d.ts +0 -22
  175. package/dist/types/components/zd-time/time-format-selector.d.ts +0 -8
  176. package/dist/types/components/zd-time/time.d.ts +0 -149
  177. package/dist/types/components/zd-toggleable/interfaces.d.ts +0 -6
  178. package/dist/types/components/zd-toggleable/toggleable.d.ts +0 -21
  179. package/dist/types/components/zd-tooltip/interfaces.d.ts +0 -18
  180. package/dist/types/components/zd-tooltip/tooltip.d.ts +0 -57
  181. package/dist/types/components/zd-tree/interfaces.d.ts +0 -107
  182. package/dist/types/components/zd-tree/tree.d.ts +0 -161
  183. package/dist/types/components/zd-tree-grid/index.d.ts +0 -6
  184. package/dist/types/components/zd-tree-grid/interfaces.d.ts +0 -35
  185. package/dist/types/components/zd-tree-grid/iterable-tree.d.ts +0 -10
  186. package/dist/types/components/zd-tree-grid/keymap-tree.d.ts +0 -7
  187. package/dist/types/components/zd-tree-grid/tree-data-navigator.d.ts +0 -10
  188. package/dist/types/components/zd-tree-grid/tree-data-selector.d.ts +0 -18
  189. package/dist/types/components/zd-tree-grid/tree-grid.d.ts +0 -119
  190. package/dist/types/error/delete-rows.d.ts +0 -7
  191. package/dist/types/error/index.d.ts +0 -3
  192. package/dist/types/error/non-initialized.d.ts +0 -7
  193. package/dist/types/error/zeedhi-error.d.ts +0 -6
  194. package/dist/types/index.d.ts +0 -6
  195. package/dist/types/services/index.d.ts +0 -4
  196. package/dist/types/services/zd-alert/alert-queue.d.ts +0 -13
  197. package/dist/types/services/zd-alert/alert-replace.d.ts +0 -18
  198. package/dist/types/services/zd-alert/alert-service.d.ts +0 -45
  199. package/dist/types/services/zd-alert/alert-stack.d.ts +0 -9
  200. package/dist/types/services/zd-alert/index.d.ts +0 -5
  201. package/dist/types/services/zd-alert/interfaces.d.ts +0 -6
  202. package/dist/types/services/zd-dialog/dialog-service.d.ts +0 -24
  203. package/dist/types/services/zd-loading/loading-service.d.ts +0 -17
  204. package/dist/types/services/zd-modal/modal-service.d.ts +0 -39
  205. package/dist/types/utils/data-value-out/data-value-out.d.ts +0 -5
  206. package/dist/types/utils/data-value-out/index.d.ts +0 -2
  207. package/dist/types/utils/data-value-out/interfaces.d.ts +0 -8
  208. package/dist/types/utils/datasource-searcher/datasource-searcher.d.ts +0 -6
  209. package/dist/types/utils/datasource-searcher/index.d.ts +0 -2
  210. package/dist/types/utils/datasource-searcher/interfaces.d.ts +0 -5
  211. package/dist/types/utils/icons/icons.d.ts +0 -24
  212. package/dist/types/utils/index.d.ts +0 -7
  213. package/dist/types/utils/omit/omit.d.ts +0 -11
  214. package/dist/types/utils/theme/theme.d.ts +0 -34
  215. package/dist/types/utils/tree-data-structure/index.d.ts +0 -2
  216. package/dist/types/utils/tree-data-structure/interfaces.d.ts +0 -30
  217. package/dist/types/utils/tree-data-structure/tree-data-structure.d.ts +0 -155
  218. package/dist/types/utils/unique-by/unique-by.d.ts +0 -3
  219. package/dist/zd-common.js +0 -13133
  220. package/dist/zd-common.min.js +0 -13133
@@ -1,48 +0,0 @@
1
- import { IEventParam } from '@zeedhi/core';
2
- import { IComponentEvents, IComponentRender } from '../zd-component/interfaces';
3
- import { Button } from './button';
4
- export type IButtonEvent = IEventParam<Button>;
5
- export type IButtonEvents = IComponentEvents<IButtonEvent>;
6
- export interface IButton extends IComponentRender {
7
- absolute?: boolean;
8
- block?: boolean;
9
- bottom?: boolean;
10
- color?: string;
11
- disabled?: boolean;
12
- events?: IButtonEvents;
13
- fab?: boolean;
14
- fixed?: boolean;
15
- flat?: boolean;
16
- href?: string;
17
- icon?: boolean;
18
- iconName?: string;
19
- label?: string;
20
- large?: boolean;
21
- left?: boolean;
22
- outline?: boolean;
23
- reverse?: boolean;
24
- right?: boolean;
25
- round?: string | number | boolean;
26
- small?: boolean;
27
- target?: string;
28
- tile?: boolean;
29
- to?: string;
30
- top?: boolean;
31
- type?: string;
32
- width?: number | string;
33
- active?: boolean;
34
- appendIcon?: string;
35
- border?: string | number | boolean;
36
- density?: 'default' | 'comfortable' | 'compact';
37
- elevation?: string | number;
38
- loading?: boolean | string;
39
- position?: 'relative' | 'absolute' | 'static' | 'fixed' | 'sticky';
40
- prependIcon?: string;
41
- replace?: boolean;
42
- ripple?: boolean;
43
- selectedClass?: string;
44
- size?: 'x-small' | 'small' | 'default' | 'large' | 'x-large';
45
- stacked?: boolean;
46
- tag?: string;
47
- variant?: 'text' | 'flat' | 'elevated' | 'tonal' | 'outlined' | 'plain';
48
- }
@@ -1,67 +0,0 @@
1
- import { ComponentRender } from '../zd-component/component-render';
2
- import { IButtonGroup } from './interfaces';
3
- /**
4
- * Base class for Button Group component.
5
- */
6
- export declare class ButtonGroup extends ComponentRender implements IButtonGroup {
7
- /**
8
- * Changes the background-color for the component.
9
- */
10
- backgroundColor: string;
11
- /**
12
- * Removes the group's border.
13
- */
14
- borderless: boolean;
15
- /**
16
- * Applies specified color to the control.
17
- * It can be the name of material or css color in hexa
18
- */
19
- color: string;
20
- /**
21
- * Reduces the button size and padding.
22
- */
23
- dense: boolean;
24
- /**
25
- * Applies mandatory selected button
26
- */
27
- mandatory: boolean;
28
- /**
29
- * The multiple prop will allow a user to select multiple
30
- * return values as an array.
31
- */
32
- multiple: boolean;
33
- /**
34
- * Round edge buttons
35
- */
36
- rounded: boolean;
37
- /**
38
- * Applies a large border radius on the top left and
39
- * bottom right of the card.
40
- */
41
- shaped: boolean;
42
- /**
43
- * Specify a custom tag used on the root element.
44
- */
45
- tag: string;
46
- /**
47
- * Removes the component's border-radius.
48
- */
49
- tile: boolean;
50
- /**
51
- * Buttons selected.
52
- */
53
- selectedButtons: number | string | number[] | null;
54
- large: boolean;
55
- small: boolean;
56
- /**
57
- * Create a new ButtonGroup
58
- * @param props ButtonGroup definition
59
- */
60
- constructor(props: IButtonGroup);
61
- /**
62
- * Triggered when the input value changes.
63
- * @param event DOM event
64
- * @param element Element clicked
65
- */
66
- change(event?: Event, element?: any): void;
67
- }
@@ -1,25 +0,0 @@
1
- import { IEventParam } from '@zeedhi/core';
2
- import { IButton } from '../zd-button/interfaces';
3
- import { EventDef, IComponentEvents, IComponentRender } from '../zd-component/interfaces';
4
- import { ButtonGroup } from './button-group';
5
- export type IButtonGroupEvent = IEventParam<ButtonGroup>;
6
- export interface IButtonGroupEvents<T = IEventParam<any>> extends IComponentEvents<T> {
7
- change?: EventDef<T>;
8
- }
9
- export interface IButtonGroup extends IComponentRender {
10
- children?: IButton[];
11
- backgroundColor?: string;
12
- borderless?: boolean;
13
- color?: string;
14
- dense?: boolean;
15
- events?: IButtonGroupEvents;
16
- mandatory?: boolean;
17
- multiple?: boolean;
18
- rounded?: boolean;
19
- shaped?: boolean;
20
- large?: boolean;
21
- small?: boolean;
22
- tag?: string;
23
- tile?: boolean;
24
- selectedButtons?: number | string | number[] | null;
25
- }
@@ -1,152 +0,0 @@
1
- import { ComponentRender } from '../zd-component/component-render';
2
- import { ICard, ICardEvents } from './interfaces';
3
- /**
4
- * Base class for Card component.
5
- */
6
- export declare class Card extends ComponentRender implements ICard {
7
- /**
8
- * Configure the active CSS class applied when the link is active
9
- */
10
- activeClass: string;
11
- /**
12
- * Setting append prop always appends the relative path to the current path
13
- */
14
- append: boolean;
15
- /**
16
- * Applies specified color to the control. It can be the name of material color
17
- */
18
- color: string;
19
- /**
20
- * Removes the ability to click or target the component
21
- */
22
- disabled: boolean;
23
- /**
24
- * Designates an elevation applied to the card between 0 and 24
25
- */
26
- elevation?: number | string;
27
- /**
28
- * Events registered to the card
29
- */
30
- events: ICardEvents;
31
- /**
32
- * Removes the card's elevation
33
- */
34
- flat: boolean;
35
- /**
36
- * Sets the height for the card.
37
- * Possible values for height can be 'auto', '100%', '400px' or 400
38
- */
39
- height?: number | string;
40
- /**
41
- * Will apply an elevation of 6dp when hovered
42
- */
43
- hover: boolean;
44
- /**
45
- * Designates the component as anchor and applies the href attribute
46
- */
47
- href?: string;
48
- /**
49
- * Specifies an image background for the card
50
- */
51
- img: string;
52
- /**
53
- * Designates that the card is a link
54
- */
55
- link: boolean;
56
- /**
57
- * Sets the maximum height for the card.
58
- * Possible values for width can be 'auto', '100%', '400px' or 400
59
- */
60
- maxHeight: number | string;
61
- /**
62
- * Sets the maximum width for the card.
63
- * Possible values for width can be 'auto', '100%', '400px' or 400
64
- */
65
- maxWidth: number | string;
66
- /**
67
- * Sets the minimum height for the card.
68
- * Possible values for width can be 'auto', '100%', '400px' or 400
69
- */
70
- minHeight: number | string;
71
- /**
72
- * Sets the minimum width for the card.
73
- * Possible values for width can be 'auto', '100%', '400px' or 400
74
- */
75
- minWidth: number | string;
76
- /**
77
- * Removes card elevation shadow and adds a thin border
78
- */
79
- outlined: boolean;
80
- /**
81
- * Specifies a higher default elevation (16dp)
82
- */
83
- raised: boolean;
84
- /**
85
- * Apply the ripple effect to show action from a user
86
- */
87
- ripple: boolean;
88
- /**
89
- * Removes the component's border-radius
90
- */
91
- tile: boolean;
92
- /**
93
- * Designates the component as anchor and applies the router.to attribute
94
- */
95
- to?: string;
96
- /**
97
- * Sets the width for the card.
98
- * Possible values for width can be 'auto', '100%', '400px' or 400
99
- */
100
- width?: number | string;
101
- /**
102
- * Applies border style to component
103
- */
104
- border: string | number | boolean;
105
- /**
106
- * Adjusts the vertical height of the component
107
- * Possible values: 'default', 'comfortable' and 'compact'
108
- */
109
- density: 'default' | 'comfortable' | 'compact';
110
- /**
111
- * Displays the loading progress bar
112
- */
113
- loading: string | boolean;
114
- /**
115
- * Defines the position of the component.
116
- * Possible values: 'relative' | 'absolute' | 'static' | 'fixed' | 'sticky'
117
- */
118
- position?: 'relative' | 'absolute' | 'static' | 'fixed' | 'sticky';
119
- /**
120
- * Defines if the component will call router.replace() or router.push()
121
- */
122
- replace: boolean;
123
- /**
124
- * Applies a large border radius on the button
125
- */
126
- round: string | number | boolean;
127
- /**
128
- * Defines card subtitle
129
- */
130
- subtitle?: string;
131
- /**
132
- * Root element tag
133
- */
134
- tag?: string;
135
- /**
136
- * Defines card text
137
- */
138
- text?: string;
139
- /**
140
- * Defines card title
141
- */
142
- title?: string;
143
- /**
144
- * Applies style to component
145
- */
146
- variant?: 'text' | 'flat' | 'elevated' | 'tonal' | 'outlined' | 'plain';
147
- /**
148
- * Creates a new Card.
149
- * @param props Card properties
150
- */
151
- constructor(props: ICard);
152
- }
@@ -1,40 +0,0 @@
1
- import { IEventParam } from '@zeedhi/core';
2
- import { IComponentEvents, IComponentRender } from '../zd-component/interfaces';
3
- import { Card } from './card';
4
- export type ICardEvent = IEventParam<Card>;
5
- export type ICardEvents = IComponentEvents<ICardEvent>;
6
- export interface ICard extends IComponentRender {
7
- activeClass?: string;
8
- append?: boolean;
9
- color?: string;
10
- elevation?: number | string;
11
- events?: ICardEvents;
12
- disabled?: boolean;
13
- flat?: boolean;
14
- hover?: boolean;
15
- href?: string;
16
- img?: string;
17
- link?: boolean;
18
- outlined?: boolean;
19
- raised?: boolean;
20
- ripple?: boolean;
21
- tile?: boolean;
22
- to?: string;
23
- height?: number | string;
24
- maxHeight?: number | string;
25
- minHeight?: number | string;
26
- width?: number | string;
27
- maxWidth?: number | string;
28
- minWidth?: number | string;
29
- border?: string | number | boolean;
30
- density?: 'default' | 'comfortable' | 'compact';
31
- loading?: boolean | string;
32
- position?: 'relative' | 'absolute' | 'static' | 'fixed' | 'sticky';
33
- replace?: boolean;
34
- round?: string | number | boolean;
35
- subtitle?: string;
36
- tag?: string;
37
- text?: string;
38
- title?: string;
39
- variant?: 'text' | 'flat' | 'elevated' | 'tonal' | 'outlined' | 'plain';
40
- }
@@ -1,163 +0,0 @@
1
- import { IButton } from '../zd-button/interfaces';
2
- import { ComponentRender } from '../zd-component/component-render';
3
- import { ICarousel, ICarouselEvents, ISlideData } from './interfaces';
4
- /**
5
- * Base class for Carousel component.
6
- */
7
- export declare class Carousel extends ComponentRender implements ICarousel {
8
- /**
9
- * Configures the carousel to play automatically
10
- */
11
- autoPlay: boolean;
12
- /**
13
- * Configures the carousel to show buttons outside the slides area
14
- */
15
- buttonsOutside: boolean;
16
- /**
17
- * Displays the carousel items always in the center (only when using
18
- * a non-integer number in slidesPerView, like 1.5)
19
- */
20
- center: boolean;
21
- /**
22
- * Current slide being displayed
23
- */
24
- currentSlide: number;
25
- /**
26
- * Events registered to the carousel
27
- */
28
- events: ICarouselEvents;
29
- /**
30
- * Displays the pagination as a fraction in the following format: currentSlide/slidesCount.
31
- * Only works when <code>showPagination</code> property is true
32
- */
33
- fractionPagination: boolean;
34
- /**
35
- * Sets the carousel height. Example values: 'auto', '100%', '400px',
36
- * '30em', '400', 400. Values without measurement unit will be notated in pixels by default
37
- */
38
- height: number | string;
39
- /**
40
- * Sets the carousel max height. Example values: 'auto', '100%', '400px',
41
- * '30em', '400', 400. Values without measurement unit will be notated in pixels by default
42
- */
43
- maxHeight: number | string;
44
- /**
45
- * Sets the carousel min height. Example values: 'auto', '100%', '400px',
46
- * '30em', '400', 400. Values without measurement unit will be notated in pixels by default
47
- */
48
- minHeight: number | string;
49
- /**
50
- * Set component height to fill all space available
51
- */
52
- fillHeight: boolean;
53
- /**
54
- * Configures the carousel as infinite (the slide after the last one is the first slide, and vice-versa)
55
- */
56
- infiniteScroll: boolean;
57
- /**
58
- * Configures the carousel's initial slide
59
- */
60
- initialSlide: number;
61
- /**
62
- * If autoPlay is enabled, sets the time duration of each slide in milliseconds
63
- */
64
- interval: number;
65
- /**
66
- * Allows controlling the carousel using the keyboard arrow keys
67
- */
68
- keysControl: boolean;
69
- /**
70
- * Allows controlling the carousel using mouse drag
71
- */
72
- mouseControl: boolean;
73
- /**
74
- * Displays the pagination background
75
- */
76
- paginationBackground: boolean;
77
- /**
78
- * If autoPlay is enabled, it will pause on mouse hover
79
- */
80
- pauseOnHover: boolean;
81
- /**
82
- * Show the navigation arrows.
83
- */
84
- showArrows: boolean;
85
- /**
86
- * The navigation arrows will be shown only on mouse hover.
87
- * Only works when <code>showArrows</code> property is true
88
- */
89
- showArrowsOnHover: boolean;
90
- /**
91
- * Show the carousel pagination menu
92
- */
93
- showPagination: boolean;
94
- /**
95
- * Show a progress bar that fills as the carousel approaches the last slide
96
- */
97
- showProgress: boolean;
98
- /**
99
- * Css class to be added to slides
100
- */
101
- slideCssClass: string;
102
- /**
103
- * Number of slides to be shown for each view (non-integer numbers are allowed)
104
- */
105
- slidesPerView: number;
106
- /**
107
- * Number of slides to be slided
108
- */
109
- slidesToSlide: number;
110
- /**
111
- * Allows controlling the carousel using touch for mobile
112
- */
113
- touchControl: boolean;
114
- /**
115
- * Duration of the slide transition in milliseconds
116
- */
117
- transitionDuration: number;
118
- /**
119
- * Allows controlling the carousel using the mouse wheel
120
- */
121
- wheelControl: boolean;
122
- /**
123
- * Carousel's right side button.
124
- */
125
- nextButton: IButton;
126
- /**
127
- * Carousel's left side button
128
- */
129
- prevButton: IButton;
130
- /**
131
- * Creates a new Carousel
132
- * @param props Carousel properties
133
- */
134
- constructor(props: ICarousel);
135
- /**
136
- * Slides the carousel to the defined index
137
- * @param index Index of the slide to be slided to
138
- */
139
- slideTo(index: number): void;
140
- /**
141
- * Slides to the next slide
142
- */
143
- slideNext(): void;
144
- /**
145
- * Slides to the previous slide
146
- */
147
- slidePrev(): void;
148
- /**
149
- * Event triggered before the current slide changes
150
- * @param event Event that triggered the beforeSlide event
151
- * @param element Carousel element
152
- * @param slideData Data related to the beforeSlide event
153
- */
154
- beforeSlide(element: any, slideData: ISlideData, event?: Event): void;
155
- /**
156
- * Event triggered when the current slide changes.
157
- * @param event Event that triggered the slide event
158
- * @param element Carousel element
159
- * @param slideData Data related to the slide event
160
- */
161
- slide(element: any, slideData: ISlideData, event?: Event): void;
162
- private changeDefaultButtonName;
163
- }
@@ -1,49 +0,0 @@
1
- import { IButton } from '../zd-button/interfaces';
2
- import { IComponentEvents, IComponentRender } from '../zd-component/interfaces';
3
- import { Carousel } from './carousel';
4
- export interface ISlideData {
5
- currentSlide: number;
6
- slideFrom?: number;
7
- slideTo?: number;
8
- }
9
- export interface ICarouselEventParam {
10
- component: Carousel;
11
- event?: Event | undefined;
12
- element?: any;
13
- slideData?: ISlideData;
14
- }
15
- export interface ICarouselEvents extends IComponentEvents<ICarouselEventParam> {
16
- beforeSlide?: (data: ICarouselEventParam) => void;
17
- slide?: (data: ICarouselEventParam) => void;
18
- }
19
- export interface ICarousel extends IComponentRender {
20
- autoPlay?: boolean;
21
- buttonsOutside?: boolean;
22
- center?: boolean;
23
- currentSlide?: number;
24
- infiniteScroll?: boolean;
25
- initialSlide?: number;
26
- interval?: number;
27
- keysControl?: boolean;
28
- mouseControl?: boolean;
29
- nextButton?: IButton;
30
- fractionPagination?: boolean;
31
- paginationBackground?: boolean;
32
- pauseOnHover?: boolean;
33
- prevButton?: IButton;
34
- showArrowsOnHover?: boolean;
35
- showArrows?: boolean;
36
- showPagination?: boolean;
37
- showProgress?: boolean;
38
- slideCssClass?: string;
39
- slidesPerView?: number;
40
- slidesToSlide?: number;
41
- touchControl?: boolean;
42
- transitionDuration?: number;
43
- wheelControl?: boolean;
44
- height?: number | string;
45
- maxHeight?: number | string;
46
- minHeight?: number | string;
47
- fillHeight?: boolean;
48
- events?: ICarouselEvents;
49
- }
@@ -1,12 +0,0 @@
1
- import { Toggleable } from '../zd-toggleable/toggleable';
2
- import { ICheckbox } from './interfaces';
3
- /**
4
- * Base class for Checkbox component.
5
- */
6
- export declare class Checkbox extends Toggleable implements ICheckbox {
7
- /**
8
- * Create a new Checkbox.
9
- * @param props Checkbox properties
10
- */
11
- constructor(props: ICheckbox);
12
- }
@@ -1,5 +0,0 @@
1
- import { IEventParam } from '@zeedhi/core';
2
- import { IToggleable } from '../zd-toggleable/interfaces';
3
- import { Checkbox } from './checkbox';
4
- export type ICheckboxEvent = IEventParam<Checkbox>;
5
- export type ICheckbox = IToggleable;
@@ -1,39 +0,0 @@
1
- import { Datasource } from '@zeedhi/core';
2
- import { Input } from '../zd-input/input';
3
- import { ICheckboxMultiple } from './interfaces';
4
- /**
5
- * Base class for Checkbox multiple component.
6
- */
7
- export declare class CheckboxMultiple extends Input implements ICheckboxMultiple {
8
- /**
9
- * Quantity of columns that will be rendered on non vertical case
10
- */
11
- columns: number;
12
- /**
13
- * Field on datasource.data that will be used to set checkbox's label
14
- */
15
- dataLabel: string;
16
- /**
17
- * Source of checkbox items
18
- */
19
- datasource: Datasource;
20
- /**
21
- * Field on datasource.data that will be used to set checkbox's value
22
- */
23
- dataValue: string;
24
- /**
25
- * Defines the checkbox list direction
26
- */
27
- vertical: boolean;
28
- /**
29
- * Defines if field value should be an object
30
- */
31
- returnObject: boolean;
32
- /**
33
- * Create a new Checkbox Multiple.
34
- * @param props CheckBpox Multiple properties
35
- */
36
- constructor(props: ICheckboxMultiple);
37
- onBeforeDestroy(): void;
38
- onCreated(): void;
39
- }
@@ -1,13 +0,0 @@
1
- import { IDatasource, IEventParam } from '@zeedhi/core';
2
- import { IInput } from '../zd-input/interfaces';
3
- import { CheckboxMultiple } from './checkbox-multiple';
4
- export type ICheckboxMultipleEvent = IEventParam<CheckboxMultiple>;
5
- export interface ICheckboxMultiple extends IInput {
6
- dataLabel?: string;
7
- datasource: IDatasource;
8
- dataValue?: string;
9
- value?: any[];
10
- vertical?: boolean;
11
- columns?: number;
12
- returnObject?: boolean;
13
- }
@@ -1,60 +0,0 @@
1
- import { Button } from '../zd-button/button';
2
- import { IChip } from './interfaces';
3
- /**
4
- * Base class for Chip component.
5
- */
6
- export declare class Chip extends Button implements IChip {
7
- /**
8
- * Determines whether the chip is active or not
9
- */
10
- active: boolean;
11
- /**
12
- * Configure the active CSS class applied when the link is active
13
- */
14
- activeClass: string;
15
- /**
16
- * Adds remove button
17
- */
18
- closable: boolean;
19
- /**
20
- * Change the default icon used for close chips
21
- */
22
- closeIcon: string;
23
- /**
24
- * Makes the chip draggable
25
- */
26
- draggable: boolean;
27
- /**
28
- * Explicitly define the chip as a link
29
- */
30
- link: boolean;
31
- /**
32
- * Removes background and applies border and text color
33
- */
34
- outlined: boolean;
35
- /**
36
- * Applies the ripple
37
- */
38
- ripple: boolean;
39
- /**
40
- * Applies a large border radius on the chip
41
- */
42
- round: boolean;
43
- /**
44
- * Value Model
45
- */
46
- value: boolean;
47
- /**
48
- * Makes the component extra large
49
- */
50
- xLarge: boolean;
51
- /**
52
- * Makes the component extra small
53
- */
54
- xSmall: boolean;
55
- /**
56
- * Create a new Chip
57
- * @param props Chip definition
58
- */
59
- constructor(props: IChip);
60
- }