wj-elements 0.2.0-alpha.7 → 0.2.0-alpha.8

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 (241) hide show
  1. package/dist/packages/index.d.ts +107 -0
  2. package/dist/packages/internals/form-associated-element.d.ts +143 -0
  3. package/dist/packages/localize/localize.d.ts +48 -0
  4. package/dist/packages/translations/en-gb.d.ts +18 -0
  5. package/dist/packages/translations/sk-sk.d.ts +13 -0
  6. package/dist/packages/utils/animations.d.ts +2 -0
  7. package/dist/packages/utils/base-path.d.ts +14 -0
  8. package/dist/packages/utils/date.d.ts +2 -0
  9. package/dist/packages/utils/element-utils.d.ts +46 -0
  10. package/dist/packages/utils/event.d.ts +67 -0
  11. package/dist/packages/utils/icon-library.d.ts +3 -0
  12. package/dist/packages/utils/localize.d.ts +4 -0
  13. package/dist/packages/utils/permissions.d.ts +40 -0
  14. package/dist/packages/utils/universal-service.d.ts +18 -0
  15. package/dist/packages/utils/utils.d.ts +1 -0
  16. package/dist/packages/wje-accordion/accordion.d.ts +2 -0
  17. package/dist/packages/wje-accordion/accordion.element.d.ts +72 -0
  18. package/dist/packages/wje-accordion/accordion.test.d.ts +0 -0
  19. package/dist/packages/wje-accordion-item/accordion-item.d.ts +2 -0
  20. package/dist/packages/wje-accordion-item/accordion-item.element.d.ts +40 -0
  21. package/dist/packages/wje-animation/animation.d.ts +2 -0
  22. package/dist/packages/wje-animation/animation.element.d.ts +158 -0
  23. package/dist/packages/wje-animation/animation.test.d.ts +1 -0
  24. package/dist/packages/wje-aside/aside.d.ts +2 -0
  25. package/dist/packages/wje-aside/aside.element.d.ts +31 -0
  26. package/dist/packages/wje-avatar/avatar.d.ts +2 -0
  27. package/dist/packages/wje-avatar/avatar.element.d.ts +76 -0
  28. package/dist/packages/wje-avatar/avatar.test.d.ts +1 -0
  29. package/dist/packages/wje-avatar/service/service.d.ts +52 -0
  30. package/dist/packages/wje-badge/badge.d.ts +2 -0
  31. package/dist/packages/wje-badge/badge.element.d.ts +35 -0
  32. package/dist/packages/wje-badge/badge.test.d.ts +1 -0
  33. package/dist/packages/wje-breadcrumb/breadcrumb.d.ts +2 -0
  34. package/dist/packages/wje-breadcrumb/breadcrumb.element.d.ts +98 -0
  35. package/dist/packages/wje-breadcrumbs/breadcrumbs.d.ts +2 -0
  36. package/dist/packages/wje-breadcrumbs/breadcrumbs.element.d.ts +105 -0
  37. package/dist/packages/wje-breadcrumbs/breadcrumbs.test.d.ts +1 -0
  38. package/dist/packages/wje-button/button.d.ts +2 -0
  39. package/dist/packages/wje-button/button.element.d.ts +204 -0
  40. package/dist/packages/wje-button/button.test.d.ts +1 -0
  41. package/dist/packages/wje-button-group/button-group.d.ts +2 -0
  42. package/dist/packages/wje-button-group/button-group.element.d.ts +96 -0
  43. package/dist/packages/wje-card/card.d.ts +2 -0
  44. package/dist/packages/wje-card/card.element.d.ts +31 -0
  45. package/dist/packages/wje-card-content/card-content.d.ts +2 -0
  46. package/dist/packages/wje-card-content/card-content.element.d.ts +22 -0
  47. package/dist/packages/wje-card-controls/card-controls.d.ts +2 -0
  48. package/dist/packages/wje-card-controls/card-controls.element.d.ts +23 -0
  49. package/dist/packages/wje-card-header/card-header.d.ts +2 -0
  50. package/dist/packages/wje-card-header/card-header.element.d.ts +22 -0
  51. package/dist/packages/wje-card-subtitle/card-subtitle.d.ts +2 -0
  52. package/dist/packages/wje-card-subtitle/card-subtitle.element.d.ts +30 -0
  53. package/dist/packages/wje-card-title/card-title.d.ts +2 -0
  54. package/dist/packages/wje-card-title/card-title.element.d.ts +32 -0
  55. package/dist/packages/wje-carousel/carousel.d.ts +2 -0
  56. package/dist/packages/wje-carousel/carousel.element.d.ts +154 -0
  57. package/dist/packages/wje-carousel-item/carousel-item.d.ts +2 -0
  58. package/dist/packages/wje-carousel-item/carousel-item.element.d.ts +38 -0
  59. package/dist/packages/wje-checkbox/checkbox.d.ts +2 -0
  60. package/dist/packages/wje-checkbox/checkbox.element.d.ts +100 -0
  61. package/dist/packages/wje-chip/chip.d.ts +2 -0
  62. package/dist/packages/wje-chip/chip.element.d.ts +76 -0
  63. package/dist/packages/wje-chip/chip.test.d.ts +1 -0
  64. package/dist/packages/wje-col/col.d.ts +2 -0
  65. package/dist/packages/wje-col/col.element.d.ts +16 -0
  66. package/dist/packages/wje-color-picker/color-picker.d.ts +2 -0
  67. package/dist/packages/wje-color-picker/color-picker.element.d.ts +230 -0
  68. package/dist/packages/wje-color-picker/color-picker.test.d.ts +1 -0
  69. package/dist/packages/wje-container/container.d.ts +2 -0
  70. package/dist/packages/wje-container/container.element.d.ts +31 -0
  71. package/dist/packages/wje-copy-button/copy-button.d.ts +2 -0
  72. package/dist/packages/wje-copy-button/copy-button.element.d.ts +89 -0
  73. package/dist/packages/wje-copy-button/service/service.d.ts +12 -0
  74. package/dist/packages/wje-dialog/dialog.d.ts +2 -0
  75. package/dist/packages/wje-dialog/dialog.element.d.ts +132 -0
  76. package/dist/packages/wje-divider/divider.d.ts +2 -0
  77. package/dist/packages/wje-divider/divider.element.d.ts +32 -0
  78. package/dist/packages/wje-dropdown/dropdown.d.ts +2 -0
  79. package/dist/packages/wje-dropdown/dropdown.element.d.ts +108 -0
  80. package/dist/packages/wje-element/element.d.ts +341 -0
  81. package/dist/packages/wje-file-upload/file-upload.d.ts +2 -0
  82. package/dist/packages/wje-file-upload/file-upload.element.d.ts +203 -0
  83. package/dist/packages/wje-file-upload/file-upload.test.d.ts +1 -0
  84. package/dist/packages/wje-file-upload/service/service.d.ts +70 -0
  85. package/dist/packages/wje-file-upload-item/file-upload-item.d.ts +2 -0
  86. package/dist/packages/wje-file-upload-item/file-upload-item.element.d.ts +84 -0
  87. package/dist/packages/wje-footer/footer.d.ts +2 -0
  88. package/dist/packages/wje-footer/footer.element.d.ts +28 -0
  89. package/dist/packages/wje-form/form.d.ts +2 -0
  90. package/dist/packages/wje-form/form.element.d.ts +28 -0
  91. package/dist/packages/wje-format-digital/format-digital.d.ts +2 -0
  92. package/dist/packages/wje-format-digital/format-digital.element.d.ts +83 -0
  93. package/dist/packages/wje-format-digital/format-digital.test.d.ts +1 -0
  94. package/dist/packages/wje-grid/grid.d.ts +2 -0
  95. package/dist/packages/wje-grid/grid.element.d.ts +26 -0
  96. package/dist/packages/wje-header/header.d.ts +2 -0
  97. package/dist/packages/wje-header/header.element.d.ts +35 -0
  98. package/dist/packages/wje-icon/icon.d.ts +2 -0
  99. package/dist/packages/wje-icon/icon.element.d.ts +40 -0
  100. package/dist/packages/wje-icon/service/library.d.ts +3 -0
  101. package/dist/packages/wje-icon/service/service.d.ts +11 -0
  102. package/dist/packages/wje-icon-picker/icon-picker.d.ts +2 -0
  103. package/dist/packages/wje-icon-picker/icon-picker.element.d.ts +210 -0
  104. package/dist/packages/wje-img/img.d.ts +2 -0
  105. package/dist/packages/wje-img/img.element.d.ts +118 -0
  106. package/dist/packages/wje-img-comparer/img-comparer.d.ts +2 -0
  107. package/dist/packages/wje-img-comparer/img-comparer.element.d.ts +60 -0
  108. package/dist/packages/wje-img-comparer/service/service.d.ts +1 -0
  109. package/dist/packages/wje-infinite-scroll/infinite-scroll.d.ts +2 -0
  110. package/dist/packages/wje-infinite-scroll/infinite-scroll.element.d.ts +173 -0
  111. package/dist/packages/wje-input/input.d.ts +2 -0
  112. package/dist/packages/wje-input/input.element.d.ts +159 -0
  113. package/dist/packages/wje-input-file/input-file.d.ts +2 -0
  114. package/dist/packages/wje-input-file/input-file.element.d.ts +50 -0
  115. package/dist/packages/wje-item/item.d.ts +2 -0
  116. package/dist/packages/wje-item/item.element.d.ts +68 -0
  117. package/dist/packages/wje-kanban/kanban.d.ts +2 -0
  118. package/dist/packages/wje-kanban/kanban.element.d.ts +182 -0
  119. package/dist/packages/wje-label/label.d.ts +2 -0
  120. package/dist/packages/wje-label/label.element.d.ts +34 -0
  121. package/dist/packages/wje-level-indicator/level-indicator.d.ts +2 -0
  122. package/dist/packages/wje-level-indicator/level-indicator.element.d.ts +91 -0
  123. package/dist/packages/wje-list/list.d.ts +2 -0
  124. package/dist/packages/wje-list/list.element.d.ts +31 -0
  125. package/dist/packages/wje-main/main.d.ts +2 -0
  126. package/dist/packages/wje-main/main.element.d.ts +30 -0
  127. package/dist/packages/wje-masonry/masonry.d.ts +2 -0
  128. package/dist/packages/wje-masonry/masonry.element.d.ts +114 -0
  129. package/dist/packages/wje-masonry/service/service.d.ts +32 -0
  130. package/dist/packages/wje-menu/menu.d.ts +2 -0
  131. package/dist/packages/wje-menu/menu.element.d.ts +47 -0
  132. package/dist/packages/wje-menu-button/menu-button.d.ts +2 -0
  133. package/dist/packages/wje-menu-button/menu-button.element.d.ts +34 -0
  134. package/dist/packages/wje-menu-item/menu-item.d.ts +2 -0
  135. package/dist/packages/wje-menu-item/menu-item.element.d.ts +161 -0
  136. package/dist/packages/wje-menu-label/menu-label.d.ts +2 -0
  137. package/dist/packages/wje-menu-label/menu-label.element.d.ts +39 -0
  138. package/dist/packages/wje-option/option.d.ts +2 -0
  139. package/dist/packages/wje-option/option.element.d.ts +95 -0
  140. package/dist/packages/wje-options/options.d.ts +2 -0
  141. package/dist/packages/wje-options/options.element.d.ts +232 -0
  142. package/dist/packages/wje-orgchart/orgchart.d.ts +2 -0
  143. package/dist/packages/wje-orgchart/orgchart.element.d.ts +24 -0
  144. package/dist/packages/wje-orgchart-group/orgchart-group.d.ts +2 -0
  145. package/dist/packages/wje-orgchart-group/orgchart-group.element.d.ts +28 -0
  146. package/dist/packages/wje-orgchart-item/orgchart-item.d.ts +2 -0
  147. package/dist/packages/wje-orgchart-item/orgchart-item.element.d.ts +49 -0
  148. package/dist/packages/wje-pagination/pagination.d.ts +2 -0
  149. package/dist/packages/wje-pagination/pagination.element.d.ts +178 -0
  150. package/dist/packages/wje-pagination/pagination.test.d.ts +1 -0
  151. package/dist/packages/wje-pagination/service/service.d.ts +9 -0
  152. package/dist/packages/wje-panel/panel.d.ts +2 -0
  153. package/dist/packages/wje-panel/panel.element.d.ts +34 -0
  154. package/dist/packages/wje-popup/popup.d.ts +2 -0
  155. package/dist/packages/wje-popup/popup.element.d.ts +145 -0
  156. package/dist/packages/wje-progress-bar/progress-bar.d.ts +2 -0
  157. package/dist/packages/wje-progress-bar/progress-bar.element.d.ts +96 -0
  158. package/dist/packages/wje-qr-code/qr-code.d.ts +2 -0
  159. package/dist/packages/wje-qr-code/qr-code.element.d.ts +33 -0
  160. package/dist/packages/wje-radio/radio.d.ts +2 -0
  161. package/dist/packages/wje-radio/radio.element.d.ts +64 -0
  162. package/dist/packages/wje-radio-group/radio-group.d.ts +2 -0
  163. package/dist/packages/wje-radio-group/radio-group.element.d.ts +61 -0
  164. package/dist/packages/wje-rate/rate.d.ts +2 -0
  165. package/dist/packages/wje-rate/rate.element.d.ts +156 -0
  166. package/dist/packages/wje-relative-time/relative-time.d.ts +2 -0
  167. package/dist/packages/wje-relative-time/relative-time.element.d.ts +55 -0
  168. package/dist/packages/wje-relative-time/relative-time.test.d.ts +1 -0
  169. package/dist/packages/wje-reorder/reorder.d.ts +2 -0
  170. package/dist/packages/wje-reorder/reorder.element.d.ts +119 -0
  171. package/dist/packages/wje-reorder-dropzone/reorder-dropzone.d.ts +2 -0
  172. package/dist/packages/wje-reorder-dropzone/reorder-dropzone.element.d.ts +23 -0
  173. package/dist/packages/wje-reorder-handle/reorder-handle.d.ts +2 -0
  174. package/dist/packages/wje-reorder-handle/reorder-handle.element.d.ts +84 -0
  175. package/dist/packages/wje-reorder-item/reorder-item.d.ts +2 -0
  176. package/dist/packages/wje-reorder-item/reorder-item.element.d.ts +24 -0
  177. package/dist/packages/wje-route/route.d.ts +2 -0
  178. package/dist/packages/wje-route/route.element.d.ts +22 -0
  179. package/dist/packages/wje-router/router.d.ts +2 -0
  180. package/dist/packages/wje-router/router.element.d.ts +43 -0
  181. package/dist/packages/wje-router-link/router-link.d.ts +2 -0
  182. package/dist/packages/wje-router-link/router-link.element.d.ts +31 -0
  183. package/dist/packages/wje-router-outlet/router-outlet.d.ts +2 -0
  184. package/dist/packages/wje-router-outlet/router-outlet.element.d.ts +16 -0
  185. package/dist/packages/wje-row/row.d.ts +2 -0
  186. package/dist/packages/wje-row/row.element.d.ts +23 -0
  187. package/dist/packages/wje-select/select.d.ts +2 -0
  188. package/dist/packages/wje-select/select.element.d.ts +388 -0
  189. package/dist/packages/wje-select/select.test.d.ts +1 -0
  190. package/dist/packages/wje-slider/slider.d.ts +2 -0
  191. package/dist/packages/wje-slider/slider.element.d.ts +103 -0
  192. package/dist/packages/wje-sliding-container/sliding-container.d.ts +2 -0
  193. package/dist/packages/wje-sliding-container/sliding-container.element.d.ts +265 -0
  194. package/dist/packages/wje-split-view/service/service.d.ts +1 -0
  195. package/dist/packages/wje-split-view/split-view.d.ts +2 -0
  196. package/dist/packages/wje-split-view/split-view.element.d.ts +65 -0
  197. package/dist/packages/wje-status/status.d.ts +2 -0
  198. package/dist/packages/wje-status/status.element.d.ts +26 -0
  199. package/dist/packages/wje-step/step.d.ts +2 -0
  200. package/dist/packages/wje-step/step.element.d.ts +23 -0
  201. package/dist/packages/wje-stepper/stepper.d.ts +2 -0
  202. package/dist/packages/wje-stepper/stepper.element.d.ts +125 -0
  203. package/dist/packages/wje-store/default-store-actions.d.ts +25 -0
  204. package/dist/packages/wje-store/pubsub.d.ts +22 -0
  205. package/dist/packages/wje-store/store.d.ts +153 -0
  206. package/dist/packages/wje-tab/tab.d.ts +2 -0
  207. package/dist/packages/wje-tab/tab.element.d.ts +66 -0
  208. package/dist/packages/wje-tab-group/tab-group.d.ts +2 -0
  209. package/dist/packages/wje-tab-group/tab-group.element.d.ts +131 -0
  210. package/dist/packages/wje-tab-group/tab-group.test.d.ts +1 -0
  211. package/dist/packages/wje-tab-panel/tab-panel.d.ts +2 -0
  212. package/dist/packages/wje-tab-panel/tab-panel.element.d.ts +23 -0
  213. package/dist/packages/wje-textarea/textarea.d.ts +2 -0
  214. package/dist/packages/wje-textarea/textarea.element.d.ts +89 -0
  215. package/dist/packages/wje-thumbnail/thumbnail.d.ts +2 -0
  216. package/dist/packages/wje-thumbnail/thumbnail.element.d.ts +31 -0
  217. package/dist/packages/wje-timeline/timeline.d.ts +2 -0
  218. package/dist/packages/wje-timeline/timeline.element.d.ts +25 -0
  219. package/dist/packages/wje-timeline-item/timeline-item.d.ts +2 -0
  220. package/dist/packages/wje-timeline-item/timeline-item.element.d.ts +27 -0
  221. package/dist/packages/wje-toast/toast.d.ts +2 -0
  222. package/dist/packages/wje-toast/toast.element.d.ts +173 -0
  223. package/dist/packages/wje-toast/toast.test.d.ts +1 -0
  224. package/dist/packages/wje-toggle/toggle.d.ts +2 -0
  225. package/dist/packages/wje-toggle/toggle.element.d.ts +81 -0
  226. package/dist/packages/wje-toggle/toggle.test.d.ts +1 -0
  227. package/dist/packages/wje-toolbar/toolbar.d.ts +2 -0
  228. package/dist/packages/wje-toolbar/toolbar.element.d.ts +39 -0
  229. package/dist/packages/wje-toolbar-action/toolbar-action.d.ts +2 -0
  230. package/dist/packages/wje-toolbar-action/toolbar-action.element.d.ts +35 -0
  231. package/dist/packages/wje-tooltip/tooltip.d.ts +2 -0
  232. package/dist/packages/wje-tooltip/tooltip.element.d.ts +77 -0
  233. package/dist/packages/wje-tree/tree.d.ts +2 -0
  234. package/dist/packages/wje-tree/tree.element.d.ts +105 -0
  235. package/dist/packages/wje-tree/tree.test.d.ts +1 -0
  236. package/dist/packages/wje-tree-item/tree-item.d.ts +2 -0
  237. package/dist/packages/wje-tree-item/tree-item.element.d.ts +155 -0
  238. package/dist/packages/wje-tree-item/tree-item.test.d.ts +1 -0
  239. package/dist/packages/wje-visually-hidden/visually-hidden.d.ts +2 -0
  240. package/dist/packages/wje-visually-hidden/visually-hidden.element.d.ts +29 -0
  241. package/package.json +1 -1
@@ -0,0 +1,159 @@
1
+ import { FormAssociatedElement } from '../internals/form-associated-element.js';
2
+ /**
3
+ * @summary This class represents a custom input element. It extends the WJElement class and provides additional functionality for handling input.
4
+ * @documentation https://elements.webjet.sk/components/input
5
+ * @status stable
6
+ * @augments {FormAssociatedElement}
7
+ * @csspart native - The native part.
8
+ * @csspart wrapper - The wrapper part.
9
+ * @csspart input - The input part.
10
+ * @csspart clear - The clear part.
11
+ * @slot start - Slot for content at the start of the input.
12
+ * @slot end - Slot for content at the end of the input.
13
+ * @cssproperty [--wje-input-font-family=var(--wje-font-family)] - Defines the font family for the input text.
14
+ * @cssproperty [--wje-input-background-color=var(--wje-background)] - Specifies the background color of the input field.
15
+ * @cssproperty [--wje-input-color=var(--wje-color)] - Sets the text color within the input field.
16
+ * @cssproperty [--wje-input-color-invalid=var(--wje-color-danger)] - Changes the text color when the input value is invalid.
17
+ * @cssproperty [--wje-input-border-color=var(--wje-border-color)] - Defines the border color of the input field.
18
+ * @cssproperty [--wje-input-border-color-focus=var(--wje-color-primary)] - Specifies the border color when the input is focused.
19
+ * @cssproperty [--wje-input-border-width=1px] - Sets the width of the input border.
20
+ * @cssproperty [--wje-input-border-style=solid] - Defines the border style of the input (e.g., solid, dashed).
21
+ * @cssproperty [--wje-input-border-radius=4px] - Specifies the border radius, creating rounded corners.
22
+ * @cssproperty [--wje-input-margin-bottom=.5rem] - Adds spacing below the input field.
23
+ * @cssproperty [--wje-input-line-height=20px] - Sets the line height of the text within the input field.
24
+ * @cssproperty [--wje-input-slot-padding-inline=.5rem] - Controls the padding on the left and right of the input slot content.
25
+ * // @fires wje-input:input - Dispatched when the input value changes.
26
+ * // @fires wje-input:clear - Dispatched when the input is cleared.
27
+ */
28
+ export default class Input extends FormAssociatedElement {
29
+ /**
30
+ * Getter for the cssStyleSheet attribute.
31
+ * @returns {CSSStyleSheet} The CSS style sheet of the input element.
32
+ */
33
+ static get cssStyleSheet(): CSSStyleSheet;
34
+ /**
35
+ * Getter for the observedAttributes attribute of the input element.
36
+ * @returns {Array} The attributes to observe for changes.
37
+ */
38
+ static get observedAttributes(): any[];
39
+ pristine: boolean;
40
+ /**
41
+ * Setter for the value attribute.
42
+ * @param {string} value The value to set.
43
+ */
44
+ set value(value: string);
45
+ /**
46
+ * Retrieves the value from the input element if available; otherwise,
47
+ * returns the internal _value property or an empty string as the default.
48
+ * @returns {string} The current value from the input element, the internal _value, or an empty string.
49
+ */
50
+ get value(): string;
51
+ _value: string;
52
+ /**
53
+ * Sets the label attribute of the element.
54
+ * @param {string} value The value to set as the label attribute.
55
+ */
56
+ set label(value: string);
57
+ /**
58
+ * Retrieves the value of the 'label' attribute if it exists.
59
+ * If the 'label' attribute is not set, it returns false.
60
+ * @returns {string|boolean} The value of the 'label' attribute as a string, or false if the attribute is not set.
61
+ */
62
+ get label(): string | boolean;
63
+ /**
64
+ * Sets the custom error display attribute for an element.
65
+ * @param {boolean} value If true, adds the 'custom-error-display' attribute to the element. If false, removes the attribute from the element.
66
+ */
67
+ set customErrorDisplay(value: boolean);
68
+ /**
69
+ * Getter for the customErrorDisplay attribute.
70
+ * @returns {boolean} Whether the attribute is present.
71
+ */
72
+ get customErrorDisplay(): boolean;
73
+ /**
74
+ * Sets the `validateOnChange` property. If set to a truthy value, it adds the
75
+ * `validate-on-change` attribute to the element. If set to a falsy value, it
76
+ * removes the `validate-on-change` attribute from the element.
77
+ * @param {boolean} value Determines whether to add or remove the
78
+ * `validate-on-change` attribute. A truthy value adds the attribute, whereas a
79
+ * falsy value removes it.
80
+ */
81
+ set validateOnChange(value: boolean);
82
+ /**
83
+ * Getter for the validateOnChange attribute.
84
+ * @returns {boolean} Whether the attribute is present.
85
+ */
86
+ get validateOnChange(): boolean;
87
+ /**
88
+ * @summary Setter for the defaultValue attribute.
89
+ * This method sets the 'value' attribute of the custom input element to the provided value.
90
+ * The 'value' attribute represents the default value of the input element.
91
+ * @param {string} value The value to set as the default value.
92
+ */
93
+ set defaultValue(value: string);
94
+ /**
95
+ * @summary Getter for the defaultValue attribute.
96
+ * This method retrieves the 'value' attribute of the custom input element.
97
+ * The 'value' attribute represents the default value of the input element.
98
+ * If the 'value' attribute is not set, it returns an empty string.
99
+ * @returns {string} The default value of the input element.
100
+ */
101
+ get defaultValue(): string;
102
+ /**
103
+ * Sets or removes the 'clearable' attribute on the element.
104
+ * When set to a truthy value, the 'clearable' attribute is added; when falsy, the attribute is removed.
105
+ * @param {boolean} value Determines whether to set or remove the 'clearable' attribute. If true, the 'clearable' attribute is added. If false, it is removed.
106
+ */
107
+ set clearable(value: boolean);
108
+ /**
109
+ * Checks if the 'clearable' attribute is present on the element.
110
+ * @returns {boolean} True if the 'clearable' attribute is set, otherwise false.
111
+ */
112
+ get clearable(): boolean;
113
+ /**
114
+ * Sets the placeholder value for an element. If the provided value is non-empty,
115
+ * it assigns the value to the "placeholder" attribute. Otherwise, it removes
116
+ * the "placeholder" attribute from the element.
117
+ * @param {string} value The placeholder text to set or null/undefined to remove the attribute.
118
+ */
119
+ set placeholder(value: string);
120
+ /**
121
+ * Retrieves the value of the 'placeholder' attribute from the element.
122
+ * If the attribute is not set, it returns an empty string.
123
+ * @returns {string} The value of the 'placeholder' attribute or an empty string if not set.
124
+ */
125
+ get placeholder(): string;
126
+ /**
127
+ * Sets the `variant` attribute on the element. If a value is provided, it will set the attribute to the given value.
128
+ * If no value is provided, it removes the `variant` attribute from the element.
129
+ * @param {string} value The value to set for the `variant` attribute. If falsy, the attribute is removed.
130
+ */
131
+ set variant(value: string);
132
+ /**
133
+ * Retrieves the value of the 'variant' attribute from the element.
134
+ * If the attribute is not set, it defaults to 'default'.
135
+ * @returns {string} The value of the 'variant' attribute or 'default' if not set.
136
+ */
137
+ get variant(): string;
138
+ /**
139
+ * Draws the input element.
140
+ * @returns {DocumentFragment} The drawn input.
141
+ */
142
+ draw(): DocumentFragment;
143
+ clear: HTMLElement;
144
+ native: HTMLDivElement;
145
+ labelElement: HTMLLabelElement;
146
+ input: HTMLInputElement;
147
+ errorMessage: HTMLDivElement;
148
+ /**
149
+ * Runs after the input is drawn to the DOM.
150
+ */
151
+ afterDraw(): void;
152
+ /**
153
+ * Checks whether the input has a slot.
154
+ * @param {HTMLElement} el The element to check.
155
+ * @param {string} slotName The name of the slot to check for.
156
+ * @returns {boolean} Whether the input has the slot.
157
+ */
158
+ hasSlot(el: HTMLElement, slotName?: string): boolean;
159
+ }
@@ -0,0 +1,2 @@
1
+ import { default as InputFile } from './input-file.element.js';
2
+ export default InputFile;
@@ -0,0 +1,50 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * `InputFile` is a custom web component that represents a file input.
4
+ * @summary This element represents a file input.
5
+ * @documentation https://elements.webjet.sk/components/input-file
6
+ * @status stable
7
+ * @augments {WJElement}
8
+ * @csspart native - The native file input wrapper.
9
+ * @csspart input - The text input.
10
+ * @csspart file-input - The file input element.
11
+ * // @fires wje-input-file:change - Event fired when the file input changes.
12
+ * @tag wje-input-file
13
+ */
14
+ export default class InputFile extends WJElement {
15
+ /**
16
+ * Returns the CSS stylesheet.
17
+ * @static
18
+ * @returns {object} styles
19
+ */
20
+ static get cssStyleSheet(): object;
21
+ /**
22
+ * Returns the observed attributes.
23
+ * @static
24
+ * @returns {Array} An empty array
25
+ */
26
+ static get observedAttributes(): any[];
27
+ _value: string;
28
+ /**
29
+ * @summary Sets the value of the input file.
30
+ * @param {string} value The value to set for the input file.
31
+ */
32
+ set value(value: string);
33
+ /**
34
+ * Gets the value of the input file.
35
+ * @returns {string}
36
+ */
37
+ get value(): string;
38
+ /**
39
+ * Draws the component.
40
+ * @returns {object} Document fragment
41
+ */
42
+ draw(): object;
43
+ native: HTMLDivElement;
44
+ input: HTMLElement;
45
+ fileInput: HTMLInputElement;
46
+ /**
47
+ * After draw method for the InputFile class.
48
+ */
49
+ afterDraw(): void;
50
+ }
@@ -0,0 +1,2 @@
1
+ import { default as Item } from './item.element.js';
2
+ export default Item;
@@ -0,0 +1,68 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * `Item` is a custom web component that represents an item.
4
+ * @summary This element represents an item.
5
+ * @documentation https://elements.webjet.sk/components/item
6
+ * @status stable
7
+ * @augments {WJElement}
8
+ * @csspart native - The native part
9
+ * @csspart inner - The inner part
10
+ * @slot start - The start slot
11
+ * @slot end - The end slot
12
+ * @slot error - The error slot
13
+ * @slot helper - The helper slot
14
+ * @cssproperty [--wje-item-background=var(--wje-background)] - Sets the background color of the item. Accepts any valid CSS color value.
15
+ * @cssproperty [--wje-item-color=var(--wje-color)] - Defines the text color for the item. Accepts any valid CSS color value.
16
+ * @cssproperty [--wje-item-padding-start=var(--wje-padding)] - Specifies the left padding of the item. Accepts any valid CSS length.
17
+ * @cssproperty [--wje-item-padding-end=var(--wje-padding)] - Specifies the right padding of the item. Accepts any valid CSS length.
18
+ * @cssproperty [--wje-item-padding-top=var(--wje-padding)] - Specifies the top padding of the item. Accepts any valid CSS length.
19
+ * @cssproperty [--wje-item-padding-bottom=var(--wje-padding)] - Specifies the bottom padding of the item. Accepts any valid CSS length.
20
+ * @cssproperty [--wje-item-inner-padding-start=var(--wje-padding)] - Specifies the left inner padding of the item. Accepts any valid CSS length.
21
+ * @cssproperty [--wje-item-inner-padding-end=var(--wje-padding)] - Specifies the right inner padding of the item. Accepts any valid CSS length.
22
+ * @cssproperty [--wje-item-inner-padding-top=var(--wje-padding)] - Specifies the top inner padding of the item. Accepts any valid CSS length.
23
+ * @cssproperty [--wje-item-inner-padding-bottom=var(--wje-padding)] - Specifies the bottom inner padding of the item. Accepts any valid CSS length.
24
+ * @cssproperty [--wje-item-border-radius=var(--wje-border-radius)] - Defines the border radius, providing rounded corners for the item.
25
+ * @cssproperty [--wje-item-border-width=var(--wje-border-width)] - Sets the border width of the item. Accepts any valid CSS length.
26
+ * @cssproperty [--wje-item-border-style=var(--wje-border-style)] - Specifies the style of the border, such as `solid`, `dashed`, or `dotted`.
27
+ * @cssproperty [--wje-item-border-color=var(--wje-border-color)] - Defines the color of the item's border. Accepts any valid CSS color value.
28
+ * @cssproperty [--wje-item-min-height=var(--wje-min-height)] - Sets the minimum height of the item to ensure consistent layout.
29
+ * @cssproperty [--wje-item-transition=var(--wje-transition)] - Specifies the transition effects for the item, such as for hover or focus states.
30
+ * @cssproperty [--wje-item-inner-box-shadow=var(--wje-box-shadow)] - Adds a shadow effect inside the item for a 3D appearance.
31
+ * @tag wje-item
32
+ */
33
+ export default class Item extends WJElement {
34
+ /**
35
+ * Returns the CSS styles for the component.
36
+ * @static
37
+ * @returns {object} styles
38
+ */
39
+ static get cssStyleSheet(): object;
40
+ labelColorStyles: {};
41
+ itemStyles: Map<any, any>;
42
+ inheritedAriaAttributes: {};
43
+ multipleInputs: boolean;
44
+ focusable: boolean;
45
+ button: boolean;
46
+ detailIcon: string;
47
+ disabled: boolean;
48
+ counter: boolean;
49
+ routerDirection: string;
50
+ type: string;
51
+ /**
52
+ * Returns the CSS styles for the component.
53
+ * @returns {boolean}
54
+ */
55
+ isClickable(): boolean;
56
+ /**
57
+ * Draws the component for the item.
58
+ * @returns {DocumentFragment}
59
+ */
60
+ draw(): DocumentFragment;
61
+ /**
62
+ * Determines if the given element or any of its ancestors matches the specified selector.
63
+ * @param {string} selector The CSS selector to match against the element's ancestors.
64
+ * @param {HTMLElement} el The element from which to start the search.
65
+ * @returns {boolean} - Returns `true` if the element or one of its ancestors matches the selector; otherwise, `false`.
66
+ */
67
+ hostContext: (selector: string, el: HTMLElement) => boolean;
68
+ }
@@ -0,0 +1,2 @@
1
+ import { default as Kanban } from './kanban.element.js';
2
+ export default Kanban;
@@ -0,0 +1,182 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ import { default as Checkbox } from '../wje-checkbox/checkbox.js';
3
+ import { default as MenuItem } from '../wje-menu-item/menu-item.js';
4
+ /**
5
+ * `Kanban` is a custom web component that represents a Kanban board with draggable columns and cards.
6
+ * @summary This element represents a Kanban board.
7
+ * @documentation https://elements.webjet.sk/components/kanban
8
+ * @status stable
9
+ * @augments {WJElement}
10
+ * @slot - The default slot for the Kanban board.
11
+ * @csspart native-infinite-scroll - Styles the native part of the Kanban board.
12
+ * @tag wje-kanban
13
+ */
14
+ export default class Kanban extends WJElement {
15
+ /**
16
+ * Returns the CSS styles for the component.
17
+ * @static
18
+ * @returns {CSSStyleSheet}
19
+ */
20
+ static get cssStyleSheet(): CSSStyleSheet;
21
+ /**
22
+ * Returns the list of attributes to observe for changes.
23
+ * @static
24
+ * @returns {Array<string>}
25
+ */
26
+ static get observedAttributes(): Array<string>;
27
+ totalPages: number;
28
+ isLoading: any[];
29
+ _response: {};
30
+ isDragging: boolean;
31
+ selectedCards: any[];
32
+ /**
33
+ * Dependencies of the Option component.
34
+ */
35
+ dependencies: {
36
+ 'wje-checkbox': typeof Checkbox;
37
+ 'wje-menu-item': typeof MenuItem;
38
+ };
39
+ /**
40
+ * Sets the URL for fetching data.
41
+ * @param value {string}
42
+ */
43
+ set response(value: string);
44
+ /**
45
+ * Gets the URL for fetching data.
46
+ * @returns {*|{}|{}}
47
+ */
48
+ get response(): any | {} | {};
49
+ /**
50
+ * Sets the URL for fetching data.
51
+ * @param value {array}
52
+ */
53
+ set selectedItems(value: any[]);
54
+ /**
55
+ * Gets the URL for fetching data.
56
+ * @returns {Array}
57
+ */
58
+ get selectedItems(): any[];
59
+ _selectedItems: any[];
60
+ /**
61
+ * Prepares the component before drawing.
62
+ * @param {object} context The context for drawing.
63
+ * @param {object} store The store for drawing.
64
+ * @param {object} params The parameters for drawing.
65
+ */
66
+ beforeDraw(context: object, store: object, params: object): Promise<void>;
67
+ /**
68
+ * Draws the component after it has been prepared.
69
+ * @returns {DocumentFragment}
70
+ */
71
+ draw(): DocumentFragment;
72
+ /**
73
+ * Called after the component has been drawn.
74
+ */
75
+ afterDraw(): void;
76
+ ui: {
77
+ elBoard: HTMLElement;
78
+ elTotalCardCount: HTMLElement;
79
+ elCardPlaceholder: any;
80
+ };
81
+ /**
82
+ * Iterates over a list of items, generates an HTML card for each, and appends it to the specified pool's content area.
83
+ * @param {HTMLElement} pool The container element where the cards will be appended. It should contain an element with the class `.pool-content`.
84
+ * @param {Array} items An array of items used to generate HTML cards.
85
+ */
86
+ customForeach: (pool: HTMLElement, items: any[]) => void;
87
+ /**
88
+ * Sets up the drag and drop events for the component.
89
+ */
90
+ setupDragAndDropEvents(): void;
91
+ draggedElementWidth: any;
92
+ draggedElementHeight: any;
93
+ /**
94
+ * Sets up the select all cards event for the component.
95
+ */
96
+ setupSelectAllCardsEvent(): void;
97
+ /**
98
+ * Sets up the menu item click events for the component.
99
+ */
100
+ setupMenuItemClickEvents(): void;
101
+ /**
102
+ * Handles the menu item click event.
103
+ * @param e
104
+ */
105
+ menuItemClickHandler: (e: any) => void;
106
+ /**
107
+ * Updates the selected cards in the pool.
108
+ * @param pool {HTMLElement}
109
+ * @param isChecked {boolean}
110
+ */
111
+ updateSelectedCards(pool: HTMLElement, isChecked: boolean): void;
112
+ /**
113
+ * Updates the column item count.
114
+ */
115
+ updateColumnItemCount: () => void;
116
+ /**
117
+ * Handles the pool action.
118
+ * @param action {string}
119
+ * @param pool {HTMLElement}
120
+ */
121
+ handlePoolAction(action: string, pool: HTMLElement): void;
122
+ /**
123
+ * Moves the pool in the specified direction.
124
+ * @param pool {HTMLElement}
125
+ * @param direction {string}
126
+ */
127
+ movePool(pool: HTMLElement, direction: string): void;
128
+ /**
129
+ * Renames the pool.
130
+ * @param pool {HTMLElement}
131
+ */
132
+ renamePool(pool: HTMLElement): void;
133
+ /**
134
+ * Gets the card placeholder.
135
+ * @returns {null|*}
136
+ */
137
+ getCardPlaceholder(): null | any;
138
+ /**
139
+ * Adds a live event listener to the component.
140
+ * @param eventType {string}
141
+ * @param selector {string}
142
+ * @param callback {function}
143
+ */
144
+ live(eventType: string, selector: string, callback: Function): void;
145
+ /**
146
+ * Sets the selected cards.
147
+ * @param isChecked {boolean}
148
+ * @param card {HTMLElement}
149
+ */
150
+ setSelectedCards(isChecked: boolean, card: HTMLElement): void;
151
+ /**
152
+ * Sets the selected items.
153
+ */
154
+ setSelectedItems(): void;
155
+ /**
156
+ * Fetches the pages.
157
+ * @param page
158
+ * @returns {Promise<any>}
159
+ */
160
+ getPages(page?: number): Promise<any>;
161
+ /**
162
+ * Gets the pool.
163
+ * @param data {Array}
164
+ * @param poolName {string}
165
+ * @returns {*}
166
+ */
167
+ getPool: (data: any[], poolName: string) => any;
168
+ /**
169
+ * Returns the HTML for the pool.
170
+ * @param title {string}
171
+ * @param countItems {number}
172
+ * @returns {Element}
173
+ */
174
+ htmlPool: (title: string, countItems: number) => Element;
175
+ /**
176
+ * Returns the HTML for the card.
177
+ * @param item {Object}
178
+ * @returns {Element}
179
+ */
180
+ htmlCard: (item: any) => Element;
181
+ dispatchEvent(event: any): boolean;
182
+ }
@@ -0,0 +1,2 @@
1
+ import { default as Label } from './label.element.js';
2
+ export default Label;
@@ -0,0 +1,34 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * `Label` is a custom web component that represents a label.
4
+ * It extends from `WJElement`.
5
+ * @summary This element represents a label.
6
+ * @documentation https://elements.webjet.sk/components/label
7
+ * @status stable
8
+ * @augments {WJElement}
9
+ * @csspart label - The label part of the component.
10
+ * @slot - The default slot for the label.
11
+ * @cssproperty [--wje-label-color=black] - Defines the text color of the label. This property determines the color of the label's text. Accepts any valid CSS color value (e.g., named colors like `black`, `red`, or values like `#000000`, `rgb(0, 0, 0)`).
12
+ * @cssproperty [--wje-label-font-size=16px] - Specifies the font size of the label. This property sets the size of the label's text. Accepts any valid CSS length unit (e.g., `px`, `em`, `rem`). The default value is `16px`, which provides optimal readability in most designs.
13
+ * // @fires wje-label:change - Event fired when the label is changed.
14
+ * @tag wje-label
15
+ */
16
+ export default class Label extends WJElement {
17
+ /**
18
+ * Returns the CSS styles for the component.
19
+ * @static
20
+ * @returns {CSSStyleSheet}
21
+ */
22
+ static get cssStyleSheet(): CSSStyleSheet;
23
+ /**
24
+ * Returns the list of attributes to observe for changes.
25
+ * @static
26
+ * @returns {Array<string>}
27
+ */
28
+ static get observedAttributes(): Array<string>;
29
+ /**
30
+ * Draws the component.
31
+ * @returns {DocumentFragment}
32
+ */
33
+ draw(): DocumentFragment;
34
+ }
@@ -0,0 +1,2 @@
1
+ import { default as LevelIndicator } from './level-indicator.element.js';
2
+ export default LevelIndicator;
@@ -0,0 +1,91 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary LevelIndicator is a custom web component that extends WJElement.
4
+ * @documentation https://elements.webjet.sk/components/LevelIndicator
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @csspart - Styles the element.
8
+ * @tag wje-level-indicator
9
+ * @example
10
+ * <wje-level-indicator></wje-level-indicator>
11
+ */
12
+ export default class LevelIndicator extends WJElement {
13
+ /**
14
+ * Returns the CSS styles for the component.
15
+ * @static
16
+ * @returns {CSSStyleSheet}
17
+ */
18
+ static get cssStyleSheet(): CSSStyleSheet;
19
+ /**
20
+ * Sets the level attribute for an instance.
21
+ * @param {string} value The value to set for the 'level' attribute.
22
+ */
23
+ set level(value: string);
24
+ /**
25
+ * Retrieves the level attribute of an element, with validation to ensure
26
+ * it is within the range of 0 to 3. If the level attribute is not present,
27
+ * the default value is 1. The result is parsed as an integer and constrained
28
+ * to the valid range.
29
+ * @returns {number} The normalized level value, which is an integer between 0 and 3.
30
+ */
31
+ get level(): number;
32
+ /**
33
+ * Sets the value of the "bars" attribute.
34
+ * @param {string} value The value to set for the "bars" attribute.
35
+ */
36
+ set bars(value: string);
37
+ /**
38
+ * Retrieves the value of the "bars" attribute, parses it as an integer,
39
+ * and ensures it is at least 1. If the attribute is not set, defaults to 3.
40
+ * @returns {number} The parsed integer value of the "bars" attribute or the default value of 3, constrained to a minimum of 1.
41
+ */
42
+ get bars(): number;
43
+ /**
44
+ * Sets the 'colorize' attribute on the element. If the provided value is truthy,
45
+ * the attribute will be set. If the value is falsy, the attribute will be removed.
46
+ * @param {boolean} value A boolean determining whether to set or remove the 'colorize' attribute.
47
+ */
48
+ set colorize(value: boolean);
49
+ /**
50
+ * Determines whether the element has the "colorize" attribute set.
51
+ * @returns {boolean} Returns true if the "colorize" attribute is present, otherwise false.
52
+ */
53
+ get colorize(): boolean;
54
+ /**
55
+ * Sets the 'reverse' attribute on the element. If the provided value is truthy, the attribute is added;
56
+ * otherwise, the attribute is removed.
57
+ * @param {boolean} value The value determining whether to set or remove the 'reverse' attribute.
58
+ */
59
+ set reverse(value: boolean);
60
+ /**
61
+ * Getter method to check if the "reverse" attribute is present on the element.
62
+ * @returns {boolean} Returns true if the "reverse" attribute is set; otherwise, returns false.
63
+ */
64
+ get reverse(): boolean;
65
+ /**
66
+ * Creates a document fragment, appends a new slot element to it, and returns the fragment.
67
+ * @returns {DocumentFragment} A document fragment containing a slot element.
68
+ */
69
+ draw(): DocumentFragment;
70
+ barsArray: any[];
71
+ native: HTMLDivElement;
72
+ /**
73
+ * Executes any additional operations or updates required after the drawing process is completed.
74
+ * @returns {void} This method does not return any value.
75
+ */
76
+ afterDraw(): void;
77
+ /**
78
+ * Updates the class of each bar element based on the specified level.
79
+ * @param {number} level The threshold level determining how many bars should be active.
80
+ * @param {Array} bars An array of bar elements to be updated.
81
+ * @returns {void} This method does not return a value.
82
+ */
83
+ updateBars(level: number, bars: any[]): void;
84
+ /**
85
+ * Determines the color indicator based on the given level and bars.
86
+ * @param {number} level The current value level used to calculate the ratio.
87
+ * @param {number} bars The maximum value that level can reach.
88
+ * @returns {string | undefined} A string representing the color code based on the ratio, or undefined if colorize is disabled.
89
+ */
90
+ getColor(level: number, bars: number): string | undefined;
91
+ }
@@ -0,0 +1,2 @@
1
+ import { default as List } from './list.element.js';
2
+ export default List;
@@ -0,0 +1,31 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * `List` is a custom web component that represents a list.
4
+ * It extends from `WJElement`.
5
+ * @summary This element represents a list.
6
+ * @documentation https://elements.webjet.sk/components/list
7
+ * @status stable
8
+ * @augments {WJElement}
9
+ * @slot - The default slot for the list.
10
+ * @cssproperty [--wje-list-inset-padding=1rem] - The padding of the list when it is inset.
11
+ * @cssproperty [--wje-list-border-radius=8px] - The border radius of the list. Accepts any valid CSS length.
12
+ * @cssproperty [--wje-list-background=var(--wje-background)] - The background of the list. Accepts any valid CSS color value.
13
+ * @tag wje-list
14
+ */
15
+ export default class List extends WJElement {
16
+ /**
17
+ * Returns the CSS styles for the component.
18
+ * @static
19
+ * @returns {CSSStyleSheet}
20
+ */
21
+ static get cssStyleSheet(): CSSStyleSheet;
22
+ /**
23
+ * Returns the list of attributes to observe for changes.
24
+ * @returns {DocumentFragment}
25
+ */
26
+ draw(): DocumentFragment;
27
+ /**
28
+ * Called after the component has been drawn.
29
+ */
30
+ afterDraw(): void;
31
+ }
@@ -0,0 +1,2 @@
1
+ import { default as Main } from './main.element.js';
2
+ export default Main;
@@ -0,0 +1,30 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * `Main` is a custom web component that represents a main section.
4
+ * It extends from `WJElement`.
5
+ * @summary This element represents a main section.
6
+ * @documentation https://elements.webjet.sk/components/main
7
+ * @status stable
8
+ * @augments {WJElement}
9
+ * @slot - The default slot for the main section.
10
+ * @tag wje-main
11
+ */
12
+ export default class Main extends WJElement {
13
+ /**
14
+ * Returns the CSS styles for the component.
15
+ * @static
16
+ * @returns {CSSStyleSheet}
17
+ */
18
+ static get cssStyleSheet(): CSSStyleSheet;
19
+ /**
20
+ * Returns the list of attributes to observe for changes.
21
+ * @static
22
+ * @returns {Array<string>}
23
+ */
24
+ static get observedAttributes(): Array<string>;
25
+ /**
26
+ * Draws the component for the main section.
27
+ * @returns {DocumentFragment}
28
+ */
29
+ draw(): DocumentFragment;
30
+ }