wj-elements 0.2.0-alpha.2 → 0.2.0-alpha.4

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 (247) hide show
  1. package/dist/index.d.ts +107 -0
  2. package/dist/internals/form-associated-element.d.ts +143 -0
  3. package/dist/localize/localize.d.ts +48 -0
  4. package/dist/packages/wje-file-upload/file-upload.element.d.ts +12 -0
  5. package/dist/packages/wje-file-upload-item/file-upload-item.element.d.ts +24 -8
  6. package/dist/packages/wje-sliding-container/sliding-container.element.d.ts +2 -2
  7. package/dist/translations/en-gb.d.ts +18 -0
  8. package/dist/translations/sk-sk.d.ts +13 -0
  9. package/dist/utils/animations.d.ts +2 -0
  10. package/dist/utils/base-path.d.ts +14 -0
  11. package/dist/utils/date.d.ts +2 -0
  12. package/dist/utils/element-utils.d.ts +46 -0
  13. package/dist/utils/event.d.ts +67 -0
  14. package/dist/utils/icon-library.d.ts +3 -0
  15. package/dist/utils/localize.d.ts +4 -0
  16. package/dist/utils/permissions.d.ts +40 -0
  17. package/dist/utils/universal-service.d.ts +18 -0
  18. package/dist/utils/utils.d.ts +1 -0
  19. package/dist/wje-accordion/accordion.d.ts +2 -0
  20. package/dist/wje-accordion/accordion.element.d.ts +72 -0
  21. package/dist/wje-accordion/accordion.test.d.ts +0 -0
  22. package/dist/wje-accordion-item/accordion-item.d.ts +2 -0
  23. package/dist/wje-accordion-item/accordion-item.element.d.ts +40 -0
  24. package/dist/wje-animation/animation.d.ts +2 -0
  25. package/dist/wje-animation/animation.element.d.ts +158 -0
  26. package/dist/wje-animation/animation.test.d.ts +1 -0
  27. package/dist/wje-aside/aside.d.ts +2 -0
  28. package/dist/wje-aside/aside.element.d.ts +31 -0
  29. package/dist/wje-avatar/avatar.d.ts +2 -0
  30. package/dist/wje-avatar/avatar.element.d.ts +76 -0
  31. package/dist/wje-avatar/avatar.test.d.ts +1 -0
  32. package/dist/wje-avatar/service/service.d.ts +52 -0
  33. package/dist/wje-badge/badge.d.ts +2 -0
  34. package/dist/wje-badge/badge.element.d.ts +35 -0
  35. package/dist/wje-badge/badge.test.d.ts +1 -0
  36. package/dist/wje-breadcrumb/breadcrumb.d.ts +2 -0
  37. package/dist/wje-breadcrumb/breadcrumb.element.d.ts +98 -0
  38. package/dist/wje-breadcrumbs/breadcrumbs.d.ts +2 -0
  39. package/dist/wje-breadcrumbs/breadcrumbs.element.d.ts +105 -0
  40. package/dist/wje-breadcrumbs/breadcrumbs.test.d.ts +1 -0
  41. package/dist/wje-button/button.d.ts +2 -0
  42. package/dist/wje-button/button.element.d.ts +204 -0
  43. package/dist/wje-button/button.test.d.ts +1 -0
  44. package/dist/wje-button-group/button-group.d.ts +2 -0
  45. package/dist/wje-button-group/button-group.element.d.ts +96 -0
  46. package/dist/wje-card/card.d.ts +2 -0
  47. package/dist/wje-card/card.element.d.ts +31 -0
  48. package/dist/wje-card-content/card-content.d.ts +2 -0
  49. package/dist/wje-card-content/card-content.element.d.ts +22 -0
  50. package/dist/wje-card-controls/card-controls.d.ts +2 -0
  51. package/dist/wje-card-controls/card-controls.element.d.ts +23 -0
  52. package/dist/wje-card-header/card-header.d.ts +2 -0
  53. package/dist/wje-card-header/card-header.element.d.ts +22 -0
  54. package/dist/wje-card-subtitle/card-subtitle.d.ts +2 -0
  55. package/dist/wje-card-subtitle/card-subtitle.element.d.ts +30 -0
  56. package/dist/wje-card-title/card-title.d.ts +2 -0
  57. package/dist/wje-card-title/card-title.element.d.ts +32 -0
  58. package/dist/wje-carousel/carousel.d.ts +2 -0
  59. package/dist/wje-carousel/carousel.element.d.ts +154 -0
  60. package/dist/wje-carousel-item/carousel-item.d.ts +2 -0
  61. package/dist/wje-carousel-item/carousel-item.element.d.ts +38 -0
  62. package/dist/wje-checkbox/checkbox.d.ts +2 -0
  63. package/dist/wje-checkbox/checkbox.element.d.ts +100 -0
  64. package/dist/wje-chip/chip.d.ts +2 -0
  65. package/dist/wje-chip/chip.element.d.ts +76 -0
  66. package/dist/wje-chip/chip.test.d.ts +1 -0
  67. package/dist/wje-col/col.d.ts +2 -0
  68. package/dist/wje-col/col.element.d.ts +16 -0
  69. package/dist/wje-color-picker/color-picker.d.ts +2 -0
  70. package/dist/wje-color-picker/color-picker.element.d.ts +230 -0
  71. package/dist/wje-color-picker/color-picker.test.d.ts +1 -0
  72. package/dist/wje-container/container.d.ts +2 -0
  73. package/dist/wje-container/container.element.d.ts +31 -0
  74. package/dist/wje-copy-button/copy-button.d.ts +2 -0
  75. package/dist/wje-copy-button/copy-button.element.d.ts +89 -0
  76. package/dist/wje-copy-button/service/service.d.ts +12 -0
  77. package/dist/wje-dialog/dialog.d.ts +2 -0
  78. package/dist/wje-dialog/dialog.element.d.ts +132 -0
  79. package/dist/wje-divider/divider.d.ts +2 -0
  80. package/dist/wje-divider/divider.element.d.ts +32 -0
  81. package/dist/wje-dropdown/dropdown.d.ts +2 -0
  82. package/dist/wje-dropdown/dropdown.element.d.ts +108 -0
  83. package/dist/wje-element/element.d.ts +341 -0
  84. package/dist/wje-file-upload/file-upload.d.ts +2 -0
  85. package/dist/wje-file-upload/file-upload.element.d.ts +191 -0
  86. package/dist/wje-file-upload/service/service.d.ts +70 -0
  87. package/dist/wje-file-upload-item/file-upload-item.d.ts +2 -0
  88. package/dist/wje-file-upload-item/file-upload-item.element.d.ts +68 -0
  89. package/dist/wje-file-upload-item.js +26 -7
  90. package/dist/wje-file-upload-item.js.map +1 -1
  91. package/dist/wje-file-upload.js +30 -0
  92. package/dist/wje-file-upload.js.map +1 -1
  93. package/dist/wje-footer/footer.d.ts +2 -0
  94. package/dist/wje-footer/footer.element.d.ts +28 -0
  95. package/dist/wje-form/form.d.ts +2 -0
  96. package/dist/wje-form/form.element.d.ts +28 -0
  97. package/dist/wje-format-digital/format-digital.d.ts +2 -0
  98. package/dist/wje-format-digital/format-digital.element.d.ts +83 -0
  99. package/dist/wje-format-digital/format-digital.test.d.ts +1 -0
  100. package/dist/wje-grid/grid.d.ts +2 -0
  101. package/dist/wje-grid/grid.element.d.ts +26 -0
  102. package/dist/wje-header/header.d.ts +2 -0
  103. package/dist/wje-header/header.element.d.ts +35 -0
  104. package/dist/wje-icon/icon.d.ts +2 -0
  105. package/dist/wje-icon/icon.element.d.ts +40 -0
  106. package/dist/wje-icon/service/library.d.ts +3 -0
  107. package/dist/wje-icon/service/service.d.ts +11 -0
  108. package/dist/wje-icon-picker/icon-picker.d.ts +2 -0
  109. package/dist/wje-icon-picker/icon-picker.element.d.ts +210 -0
  110. package/dist/wje-img/img.d.ts +2 -0
  111. package/dist/wje-img/img.element.d.ts +118 -0
  112. package/dist/wje-img-comparer/img-comparer.d.ts +2 -0
  113. package/dist/wje-img-comparer/img-comparer.element.d.ts +60 -0
  114. package/dist/wje-img-comparer/service/service.d.ts +1 -0
  115. package/dist/wje-infinite-scroll/infinite-scroll.d.ts +2 -0
  116. package/dist/wje-infinite-scroll/infinite-scroll.element.d.ts +173 -0
  117. package/dist/wje-input/input.d.ts +2 -0
  118. package/dist/wje-input/input.element.d.ts +159 -0
  119. package/dist/wje-input-file/input-file.d.ts +2 -0
  120. package/dist/wje-input-file/input-file.element.d.ts +50 -0
  121. package/dist/wje-item/item.d.ts +2 -0
  122. package/dist/wje-item/item.element.d.ts +68 -0
  123. package/dist/wje-kanban/kanban.d.ts +2 -0
  124. package/dist/wje-kanban/kanban.element.d.ts +182 -0
  125. package/dist/wje-label/label.d.ts +2 -0
  126. package/dist/wje-label/label.element.d.ts +34 -0
  127. package/dist/wje-level-indicator/level-indicator.d.ts +2 -0
  128. package/dist/wje-level-indicator/level-indicator.element.d.ts +91 -0
  129. package/dist/wje-list/list.d.ts +2 -0
  130. package/dist/wje-list/list.element.d.ts +31 -0
  131. package/dist/wje-main/main.d.ts +2 -0
  132. package/dist/wje-main/main.element.d.ts +30 -0
  133. package/dist/wje-masonry/masonry.d.ts +2 -0
  134. package/dist/wje-masonry/masonry.element.d.ts +114 -0
  135. package/dist/wje-masonry/service/service.d.ts +32 -0
  136. package/dist/wje-menu/menu.d.ts +2 -0
  137. package/dist/wje-menu/menu.element.d.ts +47 -0
  138. package/dist/wje-menu-button/menu-button.d.ts +2 -0
  139. package/dist/wje-menu-button/menu-button.element.d.ts +34 -0
  140. package/dist/wje-menu-item/menu-item.d.ts +2 -0
  141. package/dist/wje-menu-item/menu-item.element.d.ts +161 -0
  142. package/dist/wje-menu-label/menu-label.d.ts +2 -0
  143. package/dist/wje-menu-label/menu-label.element.d.ts +39 -0
  144. package/dist/wje-option/option.d.ts +2 -0
  145. package/dist/wje-option/option.element.d.ts +95 -0
  146. package/dist/wje-options/options.d.ts +2 -0
  147. package/dist/wje-options/options.element.d.ts +232 -0
  148. package/dist/wje-orgchart/orgchart.d.ts +2 -0
  149. package/dist/wje-orgchart/orgchart.element.d.ts +24 -0
  150. package/dist/wje-orgchart-group/orgchart-group.d.ts +2 -0
  151. package/dist/wje-orgchart-group/orgchart-group.element.d.ts +28 -0
  152. package/dist/wje-orgchart-item/orgchart-item.d.ts +2 -0
  153. package/dist/wje-orgchart-item/orgchart-item.element.d.ts +49 -0
  154. package/dist/wje-pagination/pagination.d.ts +2 -0
  155. package/dist/wje-pagination/pagination.element.d.ts +178 -0
  156. package/dist/wje-pagination/pagination.test.d.ts +1 -0
  157. package/dist/wje-pagination/service/service.d.ts +9 -0
  158. package/dist/wje-panel/panel.d.ts +2 -0
  159. package/dist/wje-panel/panel.element.d.ts +34 -0
  160. package/dist/wje-popup/popup.d.ts +2 -0
  161. package/dist/wje-popup/popup.element.d.ts +145 -0
  162. package/dist/wje-progress-bar/progress-bar.d.ts +2 -0
  163. package/dist/wje-progress-bar/progress-bar.element.d.ts +96 -0
  164. package/dist/wje-qr-code/qr-code.d.ts +2 -0
  165. package/dist/wje-qr-code/qr-code.element.d.ts +33 -0
  166. package/dist/wje-radio/radio.d.ts +2 -0
  167. package/dist/wje-radio/radio.element.d.ts +64 -0
  168. package/dist/wje-radio-group/radio-group.d.ts +2 -0
  169. package/dist/wje-radio-group/radio-group.element.d.ts +61 -0
  170. package/dist/wje-rate/rate.d.ts +2 -0
  171. package/dist/wje-rate/rate.element.d.ts +156 -0
  172. package/dist/wje-relative-time/relative-time.d.ts +2 -0
  173. package/dist/wje-relative-time/relative-time.element.d.ts +55 -0
  174. package/dist/wje-relative-time/relative-time.test.d.ts +1 -0
  175. package/dist/wje-reorder/reorder.d.ts +2 -0
  176. package/dist/wje-reorder/reorder.element.d.ts +119 -0
  177. package/dist/wje-reorder-dropzone/reorder-dropzone.d.ts +2 -0
  178. package/dist/wje-reorder-dropzone/reorder-dropzone.element.d.ts +23 -0
  179. package/dist/wje-reorder-handle/reorder-handle.d.ts +2 -0
  180. package/dist/wje-reorder-handle/reorder-handle.element.d.ts +84 -0
  181. package/dist/wje-reorder-item/reorder-item.d.ts +2 -0
  182. package/dist/wje-reorder-item/reorder-item.element.d.ts +24 -0
  183. package/dist/wje-route/route.d.ts +2 -0
  184. package/dist/wje-route/route.element.d.ts +22 -0
  185. package/dist/wje-router/router.d.ts +2 -0
  186. package/dist/wje-router/router.element.d.ts +43 -0
  187. package/dist/wje-router-link/router-link.d.ts +2 -0
  188. package/dist/wje-router-link/router-link.element.d.ts +31 -0
  189. package/dist/wje-router-outlet/router-outlet.d.ts +2 -0
  190. package/dist/wje-router-outlet/router-outlet.element.d.ts +16 -0
  191. package/dist/wje-row/row.d.ts +2 -0
  192. package/dist/wje-row/row.element.d.ts +23 -0
  193. package/dist/wje-select/select.d.ts +2 -0
  194. package/dist/wje-select/select.element.d.ts +386 -0
  195. package/dist/wje-select/select.test.d.ts +1 -0
  196. package/dist/wje-slider/slider.d.ts +2 -0
  197. package/dist/wje-slider/slider.element.d.ts +103 -0
  198. package/dist/wje-sliding-container/sliding-container.d.ts +2 -0
  199. package/dist/wje-sliding-container/sliding-container.element.d.ts +265 -0
  200. package/dist/wje-split-view/service/service.d.ts +1 -0
  201. package/dist/wje-split-view/split-view.d.ts +2 -0
  202. package/dist/wje-split-view/split-view.element.d.ts +65 -0
  203. package/dist/wje-status/status.d.ts +2 -0
  204. package/dist/wje-status/status.element.d.ts +26 -0
  205. package/dist/wje-step/step.d.ts +2 -0
  206. package/dist/wje-step/step.element.d.ts +23 -0
  207. package/dist/wje-stepper/stepper.d.ts +2 -0
  208. package/dist/wje-stepper/stepper.element.d.ts +125 -0
  209. package/dist/wje-store/default-store-actions.d.ts +25 -0
  210. package/dist/wje-store/pubsub.d.ts +22 -0
  211. package/dist/wje-store/store.d.ts +153 -0
  212. package/dist/wje-tab/tab.d.ts +2 -0
  213. package/dist/wje-tab/tab.element.d.ts +66 -0
  214. package/dist/wje-tab-group/tab-group.d.ts +2 -0
  215. package/dist/wje-tab-group/tab-group.element.d.ts +131 -0
  216. package/dist/wje-tab-group/tab-group.test.d.ts +1 -0
  217. package/dist/wje-tab-panel/tab-panel.d.ts +2 -0
  218. package/dist/wje-tab-panel/tab-panel.element.d.ts +23 -0
  219. package/dist/wje-textarea/textarea.d.ts +2 -0
  220. package/dist/wje-textarea/textarea.element.d.ts +89 -0
  221. package/dist/wje-thumbnail/thumbnail.d.ts +2 -0
  222. package/dist/wje-thumbnail/thumbnail.element.d.ts +31 -0
  223. package/dist/wje-timeline/timeline.d.ts +2 -0
  224. package/dist/wje-timeline/timeline.element.d.ts +25 -0
  225. package/dist/wje-timeline-item/timeline-item.d.ts +2 -0
  226. package/dist/wje-timeline-item/timeline-item.element.d.ts +27 -0
  227. package/dist/wje-toast/toast.d.ts +2 -0
  228. package/dist/wje-toast/toast.element.d.ts +173 -0
  229. package/dist/wje-toast/toast.test.d.ts +1 -0
  230. package/dist/wje-toggle/toggle.d.ts +2 -0
  231. package/dist/wje-toggle/toggle.element.d.ts +81 -0
  232. package/dist/wje-toggle/toggle.test.d.ts +1 -0
  233. package/dist/wje-toolbar/toolbar.d.ts +2 -0
  234. package/dist/wje-toolbar/toolbar.element.d.ts +39 -0
  235. package/dist/wje-toolbar-action/toolbar-action.d.ts +2 -0
  236. package/dist/wje-toolbar-action/toolbar-action.element.d.ts +35 -0
  237. package/dist/wje-tooltip/tooltip.d.ts +2 -0
  238. package/dist/wje-tooltip/tooltip.element.d.ts +77 -0
  239. package/dist/wje-tree/tree.d.ts +2 -0
  240. package/dist/wje-tree/tree.element.d.ts +105 -0
  241. package/dist/wje-tree/tree.test.d.ts +1 -0
  242. package/dist/wje-tree-item/tree-item.d.ts +2 -0
  243. package/dist/wje-tree-item/tree-item.element.d.ts +155 -0
  244. package/dist/wje-tree-item/tree-item.test.d.ts +1 -0
  245. package/dist/wje-visually-hidden/visually-hidden.d.ts +2 -0
  246. package/dist/wje-visually-hidden/visually-hidden.element.d.ts +29 -0
  247. package/package.json +10 -9
@@ -0,0 +1,72 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary This class represents an Accordion element, extending the WJElement class.
4
+ * @documentation https://elements.webjet.sk/components/accordion
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @attribute {boolean} multiple - The multiple attribute for the accordion.
8
+ * @attribute {number} index - The index attribute for the accordion.
9
+ * @attribute {boolean} disabled - The disabled attribute for the accordion.
10
+ * @attribute {boolean} expanded - The expanded attribute for the accordion.
11
+ * @slot - The accordion main content.
12
+ * //@fires [wje-accordion-item:open] The event fired when the accordion item is opened.
13
+ * @tag wje-accordion
14
+ */
15
+ export default class Accordion extends WJElement {
16
+ /**
17
+ * Getter for the CSS stylesheet.
18
+ * @returns {object} The styles for the Accordion element.
19
+ */
20
+ static get cssStyleSheet(): object;
21
+ /**
22
+ * Getter for the observed attributes.
23
+ * @returns {Array} An array containing the name of the observed attribute.
24
+ */
25
+ static get observedAttributes(): any[];
26
+ /**
27
+ * Sets the `multiple` attribute on the element.
28
+ * If `true`, the `multiple` attribute is added.
29
+ * If `false`, the `multiple` attribute is removed.
30
+ * @param {boolean} value A boolean value indicating whether the element should support multiple selections.
31
+ */
32
+ set multiple(value: boolean);
33
+ /**
34
+ * Determines whether the element has the `multiple` attribute.
35
+ * @returns {boolean} `true` if the `multiple` attribute is present, otherwise `false`.
36
+ */
37
+ get multiple(): boolean;
38
+ /**
39
+ * Sets the value of the `index` attribute.
40
+ * @param {number|string} value The value to set for the `index` attribute.
41
+ */
42
+ set index(value: number | string);
43
+ /**
44
+ * Retrieves the value of the `index` attribute as a number.
45
+ * @returns {number} The numerical value of the `index` attribute, or `0` if the attribute is not set.
46
+ */
47
+ get index(): number;
48
+ /**
49
+ * Method to run before the element is drawn.
50
+ */
51
+ beforeDraw(): void;
52
+ /**
53
+ * Method to draw the Accordion element.
54
+ * @returns {object} The document fragment containing the drawn element.
55
+ */
56
+ draw(): object;
57
+ slotEl: HTMLSlotElement;
58
+ /**
59
+ * Method to run after the element is drawn.
60
+ */
61
+ afterDraw(): void;
62
+ /**
63
+ * Method to run after the element is drawn.
64
+ * @param exception
65
+ */
66
+ collapseAll(exception: any): void;
67
+ /**
68
+ * Method to get the accordions.
69
+ * @returns {Array} An array containing the accordions.
70
+ */
71
+ getAccordions(): any[];
72
+ }
File without changes
@@ -0,0 +1,2 @@
1
+ import { default as AccordionItem } from './accordion-item.element.js';
2
+ export default AccordionItem;
@@ -0,0 +1,40 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary This class represents an Accordion Item element, extending the WJElement class.
4
+ * @documentation https://elements.webjet.sk/components/accordion-item
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @slot - The accordion item main content.
8
+ * @tag wje-accordion
9
+ */
10
+ export default class AccordionItem extends WJElement {
11
+ /**
12
+ * Getter for the CSS stylesheet.
13
+ * @returns {object} The styles for the Accordion Item element.
14
+ */
15
+ static get cssStyleSheet(): object;
16
+ /**
17
+ * Getter for the observed attributes.
18
+ * @returns {Array} An array containing the name of the observed attribute.
19
+ */
20
+ static get observedAttributes(): any[];
21
+ /**
22
+ * Method to draw the Accordion Item element. This method returns a document fragment containing the drawn element.
23
+ * @returns {object} The document fragment containing the drawn element.
24
+ */
25
+ draw(): object;
26
+ headline: HTMLDivElement;
27
+ toggle: HTMLSlotElement;
28
+ /**
29
+ * Method to execute after the Accordion Item element is drawn.
30
+ */
31
+ afterDraw(): void;
32
+ /**
33
+ * Method to handle the attribute changes.
34
+ */
35
+ collapse: () => void;
36
+ /**
37
+ * Method to handle the attribute changes.
38
+ */
39
+ expand: () => void;
40
+ }
@@ -0,0 +1,2 @@
1
+ import { default as Animation } from './animation.element.js';
2
+ export default Animation;
@@ -0,0 +1,158 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary This class represents an Animation element, extending the WJElement class.
4
+ * @documentation https://elements.webjet.sk/components/animation
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @slot - The animation main content.
8
+ * @cssproperty --size - The size of the avatar.
9
+ * @tag wje-animation
10
+ */
11
+ export default class Animation extends WJElement {
12
+ /**
13
+ * Getter for the CSS stylesheet.
14
+ * @returns {object} The styles for the Animation element.
15
+ */
16
+ static get cssStyleSheet(): object;
17
+ /**
18
+ * Getter for the observed attributes.
19
+ * @returns {Array} An array containing the name of the observed attribute.
20
+ */
21
+ static get observedAttributes(): any[];
22
+ _animations: any[];
23
+ /**
24
+ * Setter for the name attribute.
25
+ * @param value
26
+ */
27
+ set name(value: string);
28
+ /**
29
+ * Getter for the name attribute.
30
+ * @returns {string}
31
+ */
32
+ get name(): string;
33
+ /**
34
+ * Setter for the name attribute.
35
+ * @param value
36
+ */
37
+ set duration(value: number);
38
+ /**
39
+ * Getter for the name attribute.
40
+ * @returns {number}
41
+ */
42
+ get duration(): number;
43
+ /**
44
+ * Setter for the name attribute.
45
+ * @param value
46
+ */
47
+ set delay(value: number);
48
+ /**
49
+ * Getter for the name attribute.
50
+ * @returns {number}
51
+ */
52
+ get delay(): number;
53
+ /**
54
+ * Setter for the name attribute.
55
+ * @param value
56
+ */
57
+ set endDelay(value: number);
58
+ /**
59
+ * Getter for the name attribute.
60
+ * @returns {number}
61
+ */
62
+ get endDelay(): number;
63
+ /**
64
+ * Setter for the name attribute.
65
+ * @param value
66
+ */
67
+ set fill(value: string);
68
+ /**
69
+ * Getter for the name attribute.
70
+ * @returns {string}
71
+ */
72
+ get fill(): string;
73
+ /**
74
+ * Setter for the name attribute.
75
+ * @param value
76
+ */
77
+ set iterations(value: string | number);
78
+ /**
79
+ * Getter for the name attribute.
80
+ * @returns {string|number}
81
+ */
82
+ get iterations(): string | number;
83
+ /**
84
+ * Setter for the name attribute.
85
+ * @param value
86
+ */
87
+ set iterationStart(value: number);
88
+ /**
89
+ * Getter for the name attribute.
90
+ * @returns {number}
91
+ */
92
+ get iterationStart(): number;
93
+ /**
94
+ * Setter for the name attribute.
95
+ * @param value
96
+ */
97
+ set direction(value: string);
98
+ /**
99
+ * Getter for the name attribute.
100
+ * @returns {string}
101
+ */
102
+ get direction(): string;
103
+ /**
104
+ * Setter for the name attribute.
105
+ * @param value
106
+ */
107
+ set easing(value: string);
108
+ /**
109
+ * Getter for the name attribute.
110
+ * @returns {string}
111
+ */
112
+ get easing(): string;
113
+ /**
114
+ * Setter for the animations property.
115
+ * @param {Array} value The new value for the animations property.
116
+ */
117
+ set animations(value: any[]);
118
+ /**
119
+ * Getter for the animations' property.
120
+ * @returns {Array} The current value of the animations' property.
121
+ */
122
+ get animations(): any[];
123
+ /**
124
+ * Method to draw the Animation element.
125
+ * @returns {object} The document fragment containing the drawn element.
126
+ */
127
+ draw(): object;
128
+ slotEl: HTMLSlotElement;
129
+ /**
130
+ * Method to perform actions after the Animation element is drawn.
131
+ * This method destroys any existing animation, fetches a new animations array,
132
+ * selects the appropriate animation, and applies it to the element.
133
+ */
134
+ afterDraw(): Promise<void>;
135
+ animation: Animation;
136
+ /**
137
+ * Method to fetch and parse the animations array from a CSS file.
138
+ * @returns {Array} An array of animation definitions parsed from the CSS file.
139
+ */
140
+ getAnimationsArray(): any[];
141
+ /**
142
+ * Terminates and cleans up the currently active animation if it exists.
143
+ * Calls the `cancel` method to stop the animation process.
144
+ * @returns {void} Does not return any value.
145
+ */
146
+ destroyAnimation(): void;
147
+ /**
148
+ * Plays the currently assigned animation, if available.
149
+ * @returns {void} This method does not return any value.
150
+ */
151
+ play(): void;
152
+ /**
153
+ * Cancels the current animation if it is initialized and has a cancel method.
154
+ * Logs a warning if the animation is not initialized or the cancel method is unavailable.
155
+ * @returns {void} Does not return a value.
156
+ */
157
+ cancel(): void;
158
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { default as Aside } from './aside.element.js';
2
+ export default Aside;
@@ -0,0 +1,31 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary This class represents an Aside element, extending the WJElement class.
4
+ * @documentation https://elements.webjet.sk/components/aside
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @slot - The aside main content.
8
+ * @cssproperty --wje-aside-width;
9
+ * @cssproperty --wje-aside-top;
10
+ * @cssproperty --wje-aside-border-color: var(--wje-border-color);
11
+ * @cssproperty --wje-aside-border-width;
12
+ * @cssproperty --wje-aside-border-style;
13
+ * @tag wje-aside
14
+ */
15
+ export default class Aside extends WJElement {
16
+ /**
17
+ * Getter for the CSS stylesheet.
18
+ * @returns {object} The styles for the Aside element.
19
+ */
20
+ static get cssStyleSheet(): object;
21
+ /**
22
+ * Getter for the observed attributes.
23
+ * @returns {Array} An empty array as there are no observed attributes.
24
+ */
25
+ static get observedAttributes(): any[];
26
+ /**
27
+ * Method to draw the Aside element.
28
+ * @returns {object} The document fragment containing the drawn element.
29
+ */
30
+ draw(): object;
31
+ }
@@ -0,0 +1,2 @@
1
+ import { default as Avatar } from './avatar.element.js';
2
+ export default Avatar;
@@ -0,0 +1,76 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary This class represents an Avatar element, extending the WJElement class.
4
+ * @documentation https://elements.webjet.sk/components/avatar
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @slot - The avatar main content.
8
+ * @csspart native - The component's native wrapper.
9
+ * @cssproperty --wje-avatar-width;
10
+ * @cssproperty --wje-avatar-height;
11
+ * @cssproperty --wje-avatar-font-size;
12
+ * @cssproperty --wje-avatar-font-weight;
13
+ * @cssproperty --wje-avatar-color;
14
+ * @cssproperty --wje-avatar-background-color;
15
+ * @cssproperty --wje-avatar-border-radius;
16
+ * @cssproperty --wje-avatar-border-color;
17
+ * @cssproperty --wje-avatar-border-width;
18
+ * @cssproperty --wje-avatar-border-style;
19
+ * @tag wje-avatar
20
+ */
21
+ export default class Avatar extends WJElement {
22
+ /**
23
+ * Getter for cssStyleSheet.
24
+ * @returns {string} styles
25
+ */
26
+ static get cssStyleSheet(): string;
27
+ /**
28
+ * Returns the list of attributes to observe for changes.
29
+ * @static
30
+ * @returns {Array<string>}
31
+ */
32
+ static get observedAttributes(): Array<string>;
33
+ /**
34
+ * Sets the value of the 'label' attribute for the element.
35
+ * @param {string} value The new value to be set for the 'label' attribute.
36
+ */
37
+ set label(value: string);
38
+ /**
39
+ * Retrieves the value of the 'label' attribute for the element.
40
+ * If the attribute is not set, it defaults to an empty string.
41
+ * @returns {string} The value of the 'label' attribute or an empty string if not defined.
42
+ */
43
+ get label(): string;
44
+ /**
45
+ * Sets the value of initials for the element by updating
46
+ * the 'initials' attribute with the provided value.
47
+ * @param {string} value The value to be set as the initials.
48
+ */
49
+ set initials(value: string);
50
+ /**
51
+ * Retrieves the value of the 'initials' attribute if it exists.
52
+ * @returns {boolean} Returns true if the 'initials' attribute is present, otherwise false.
53
+ */
54
+ get initials(): boolean;
55
+ /**
56
+ * Sets the size attribute for the element.
57
+ * @param {string | number} value The value to set for the size attribute.
58
+ */
59
+ set size(value: string | number);
60
+ /**
61
+ * Retrieves the size attribute of the element. If the size attribute
62
+ * is not defined, it returns the default value 'medium'.
63
+ * @returns {string} The size value of the element or 'medium' if not specified.
64
+ */
65
+ get size(): string;
66
+ /**
67
+ * Method to draw the avatar element and return a document fragment.
68
+ * @returns {object} fragment - The document fragment
69
+ */
70
+ draw(): object;
71
+ /**
72
+ * Method to check if the avatar is an image.
73
+ * @returns {boolean} - True if the avatar is an image, false otherwise
74
+ */
75
+ isImage(): boolean;
76
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Generates an HSL color value based on the input text.
3
+ * @param {string} text The input text to generate the HSL color.
4
+ * @param {number} [s] The saturation value (in percentage) for the HSL color.
5
+ * @param {number} [l] The lightness value (in percentage) for the HSL color.
6
+ * @returns {string} - The HSL color string in the format `hsl(h, s%, l%)`.
7
+ * @description
8
+ * This function computes a hash from the input text and uses it to generate
9
+ * a hue value. The hue is combined with the provided saturation and lightness
10
+ * values to create an HSL color. This can be useful for consistently assigning
11
+ * colors based on text input, such as for avatars or tags.
12
+ * @example
13
+ * // Returns 'hsl(180, 40%, 65%)'
14
+ * getHsl('example');
15
+ * @example
16
+ * // Returns 'hsl(300, 50%, 70%)'
17
+ * getHsl('test', 50, 70);
18
+ */
19
+ export function getHsl(text: string, s?: number, l?: number): string;
20
+ /**
21
+ * Generates background and text HSL colors for avatars based on input text.
22
+ * The text color is a darker, more saturated variant of the background color
23
+ * to ensure sufficient contrast while keeping the same hue.
24
+ *
25
+ * @param {string} text The input text (e.g. initials or name).
26
+ * @returns {{ background: string, color: string }}
27
+ */
28
+ export function getAvatarColors(text: string): {
29
+ background: string;
30
+ color: string;
31
+ };
32
+ /**
33
+ * Generates initials from a given string.
34
+ * @param {string} string The input string, typically a full name.
35
+ * @param {number} [length] The desired number of initials (default is 2).
36
+ * @returns {string} - The generated initials in uppercase.
37
+ * @description
38
+ * This function takes a string, splits it by spaces, and generates initials.
39
+ * It always includes the first character of the first word. If the input string
40
+ * contains more than one word and the `length` parameter is greater than 1, it
41
+ * also includes the first character of the last word.
42
+ * @example
43
+ * // Returns 'JD'
44
+ * getInitials('John Doe');
45
+ * @example
46
+ * // Returns 'J'
47
+ * getInitials('John');
48
+ * @example
49
+ * // Returns 'JM'
50
+ * getInitials('John Michael Doe', 2);
51
+ */
52
+ export function getInitials(string: string, length?: number): string;
@@ -0,0 +1,2 @@
1
+ import { default as Badge } from './badge.element.js';
2
+ export default Badge;
@@ -0,0 +1,35 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary This class represents a Badge element, extending the WJElement class.
4
+ * @documentation https://elements.webjet.sk/components/badge
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @attribute {string} color - The color of the badge element. Accepts any valid string primary, secondary, success, danger, warning, info, default.
8
+ * @slot - The badge's main content.
9
+ * @csspart native - The component's native wrapper.
10
+ * @cssproperty [--wje-badge-border-radius=var(--wje-border-radius-pill)] - Border radius of the badge element.
11
+ * @tag wje-badge
12
+ */
13
+ export default class Badge extends WJElement {
14
+ /**
15
+ * Retrieves the CSS stylesheet for the Badge element.
16
+ * @static
17
+ * @returns {CSSStyleSheet} The CSS styles associated with the Badge.
18
+ */
19
+ static get cssStyleSheet(): CSSStyleSheet;
20
+ /**
21
+ * Specifies the attributes to observe for changes.
22
+ * @static
23
+ * @returns {Array<string>} An array containing the names of attributes to observe.
24
+ * @example
25
+ * static get observedAttributes() {
26
+ * return ['color'];
27
+ * }
28
+ */
29
+ static get observedAttributes(): Array<string>;
30
+ /**
31
+ * Creates the DOM structure for the Badge element.
32
+ * @returns {DocumentFragment} A document fragment containing the Badge's structure.
33
+ */
34
+ draw(): DocumentFragment;
35
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { default as Breadcrumb } from './breadcrumb.element.js';
2
+ export default Breadcrumb;
@@ -0,0 +1,98 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary This class represents a Breadcrumb element, extending the WJElement class. It provides a navigational aid in user interfaces, displaying the current location within a hierarchy.
4
+ * @documentation https://elements.webjet.sk/components/breadcrumb
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @slot - The main content of the breadcrumb.
8
+ * @slot start - Slot for content at the start of the breadcrumb.
9
+ * @slot end - Slot for content at the end of the breadcrumb.
10
+ * @slot separator - Slot for a custom separator between breadcrumb items.
11
+ * @csspart native - The native wrapper of the breadcrumb component.
12
+ * @csspart separator - The separator between breadcrumb items.
13
+ * @cssproperty [--wje-breadcrumb-a=var(--wje-color-contrast-8)] - The color of the breadcrumb text.
14
+ * @cssproperty [--wje-breadcrumb-a-hover=var(--wje-color-contrast-6)] - The color of the breadcrumb separator line.
15
+ * @tag wje-breadcrumb
16
+ */
17
+ export default class Breadcrumb extends WJElement {
18
+ /**
19
+ * Get CSS stylesheet for the Breadcrumb element.
20
+ * @static
21
+ * @returns {object} styles - The CSS styles
22
+ */
23
+ static get cssStyleSheet(): object;
24
+ /**
25
+ * Get observed attributes for the Breadcrumb element.
26
+ * @static
27
+ * @returns {Array<string>} - The observed attributes array for the Breadcrumb element.
28
+ */
29
+ static get observedAttributes(): Array<string>;
30
+ _showSeparator: boolean;
31
+ _showCollapsedIndicator: boolean;
32
+ /**
33
+ * Set show separator flag.
34
+ * @param {boolean} value The value to set
35
+ */
36
+ set showSeparator(value: boolean);
37
+ /**
38
+ * Get show separator flag.
39
+ * @returns {boolean} showSeparator - The show separator flag
40
+ */
41
+ get showSeparator(): boolean;
42
+ /**
43
+ * Set collapsed variant.
44
+ * @param {string} value The value to set
45
+ */
46
+ set collapsedVariant(value: string);
47
+ /**
48
+ * Get collapsed variant.
49
+ * @returns {string} The collapsed variant value in uppercase.
50
+ */
51
+ get collapsedVariant(): string;
52
+ _collapsedVariant: string;
53
+ /**
54
+ * Handles attribute changes for the custom element and updates its behavior or appearance accordingly.
55
+ * @param {string} name The name of the attribute that was changed.
56
+ * @param {string|null} oldValue The previous value of the attribute before it was changed. Null if the attribute was not previously set.
57
+ * @param {string|null} newValue The new value of the attribute after it was changed. Null if the attribute was removed.
58
+ * @returns {boolean} Returns false to signal no default behavior is implemented.
59
+ */
60
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): boolean;
61
+ active: boolean;
62
+ /**
63
+ * Draw method for the Breadcrumb element.
64
+ * @returns {object} fragment - The document fragment
65
+ */
66
+ draw(): object;
67
+ native: HTMLAnchorElement;
68
+ /**
69
+ * Renders the collapsed indicator based on the current collapsed variant.
70
+ * If the collapsed variant is 'DROPDOWN', it invokes the collapseDropdown method.
71
+ * Otherwise, it invokes the collapseButton method.
72
+ * @returns {any} The rendered collapsed indicator, either as a dropdown or a button.
73
+ */
74
+ drawCollapsedIndicator(): any;
75
+ /**
76
+ * Creates and returns a dropdown UI component for collapsed breadcrumbs.
77
+ * This method generates a dropdown element with a button trigger and a menu populated with items corresponding
78
+ * to the collapsed breadcrumbs. The dropdown is configured to handle specific interactions and ensure that
79
+ * events are appropriately managed to avoid propagation issues. Menu items are linked to their corresponding
80
+ * breadcrumbs, enabling the same functionality as clicking on the original breadcrumb.
81
+ * @returns {HTMLElement} A configured dropdown element containing a button as trigger and a menu with breadcrumb items.
82
+ */
83
+ collapseDropdown(): HTMLElement;
84
+ /**
85
+ * Creates a button element that expands hidden breadcrumbs when clicked.
86
+ * The button is set with appropriate attributes and event listeners to handle
87
+ * the expanding of hidden breadcrumb elements. Clicking the button will remove
88
+ * the button itself, reveal hidden breadcrumbs, and stop the current event
89
+ * propagation.
90
+ * @returns {HTMLButtonElement} The created button configured to expand breadcrumbs.
91
+ */
92
+ collapseButton(): HTMLButtonElement;
93
+ /**
94
+ * Retrieves the breadcrumb trail for the current element by returning its parent element.
95
+ * @returns {Element} The parent element representing the breadcrumb trail.
96
+ */
97
+ getBreadcrumbs(): Element;
98
+ }
@@ -0,0 +1,2 @@
1
+ import { default as Breadcrumbs } from './breadcrumbs.element.js';
2
+ export default Breadcrumbs;