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,105 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary This class represents a Breadcrumbs container, extending the WJElement class. It acts as a wrapper for individual breadcrumb elements and manages their behavior, such as collapsing and marking the last breadcrumb.
4
+ * @documentation https://elements.webjet.sk/components/breadcrumbs
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @slot - The container for breadcrumb elements.
8
+ * @csspart container - The component's container wrapper.
9
+ * @attribute {number} max-items - The maximum number of visible breadcrumbs before collapsing.
10
+ * @attribute {number} items-before-collapse - The number of breadcrumbs to show before the collapsed indicator.
11
+ * @attribute {number} items-after-collapse - The number of breadcrumbs to show after the collapsed indicator.
12
+ * @tag wje-breadcrumbs
13
+ * @example
14
+ * <!-- Example usage -->
15
+ * <wje-breadcrumbs max-items="5" items-before-collapse="2" items-after-collapse="2">
16
+ * <wje-breadcrumb>Home</wje-breadcrumb>
17
+ * <wje-breadcrumb>About</wje-breadcrumb>
18
+ * <wje-breadcrumb>Services</wje-breadcrumb>
19
+ * <wje-breadcrumb>Portfolio</wje-breadcrumb>
20
+ * <wje-breadcrumb>Contact</wje-breadcrumb>
21
+ * </wje-breadcrumbs>
22
+ *
23
+ * <!-- Output: Only the first two and last two breadcrumbs will be visible, with a collapsed indicator in the middle -->
24
+ */
25
+ export default class Breadcrumbs extends WJElement {
26
+ /**
27
+ * Get CSS stylesheet for the Breadcrumbs element.
28
+ * @static
29
+ * @returns {object} styles - The CSS styles
30
+ */
31
+ static get cssStyleSheet(): object;
32
+ /**
33
+ * Get observed attributes for the Breadcrumb element.
34
+ * @static
35
+ * @returns {Array<string>} - The observed attributes array for the Breadcrumb element.
36
+ */
37
+ static get observedAttributes(): Array<string>;
38
+ /**
39
+ * Last breadcrumb flag
40
+ * @type {boolean}
41
+ */
42
+ last: boolean;
43
+ /**
44
+ * Set variant attribute for the Breadcrumbs element.
45
+ * @param value
46
+ */
47
+ set variant(value: string);
48
+ /**
49
+ * Get variant attribute for the Breadcrumbs element.
50
+ * @returns {string}
51
+ */
52
+ get variant(): string;
53
+ /**
54
+ * Get items before collapse attribute.
55
+ * @param {string} value
56
+ */
57
+ set maxItems(value: string);
58
+ /**
59
+ * Get items before collapse attribute.
60
+ * @returns {number}
61
+ */
62
+ get maxItems(): number;
63
+ /**
64
+ * Get items before collapse attribute.
65
+ * @param value
66
+ */
67
+ set itemsBeforeCollapse(value: number);
68
+ /**
69
+ * Get items before collapse attribute.
70
+ * @returns {number}
71
+ */
72
+ get itemsBeforeCollapse(): number;
73
+ /**
74
+ * Get items after collapse attribute.
75
+ * @param value
76
+ */
77
+ set itemsAfterCollapse(value: number);
78
+ /**
79
+ * Get items after collapse attribute.
80
+ * @returns {number}
81
+ */
82
+ get itemsAfterCollapse(): number;
83
+ /**
84
+ * Draw method for the Breadcrumbs element.
85
+ * @returns {object} fragment - The document fragment
86
+ */
87
+ draw(): object;
88
+ /**
89
+ * Updates the breadcrumb elements after they are drawn on the page.
90
+ * It manages attributes on breadcrumb items and handles the logic for collapsing breadcrumbs
91
+ * if the total exceeds the specified maximum items.
92
+ * @returns {void} This method does not return a value.
93
+ */
94
+ afterDraw(): void;
95
+ /**
96
+ * Retrieves all breadcrumb elements within the current instance.
97
+ * @returns {Array<Element>} An array of breadcrumb elements (`wje-breadcrumb`) found within the instance. Returns an empty array if no breadcrumbs are found.
98
+ */
99
+ getBreadcrumbs(): Array<Element>;
100
+ /**
101
+ * Retrieves all breadcrumb elements that have the 'collapsed' attribute.
102
+ * @returns {Array<Element>} An array of DOM elements representing breadcrumbs with the 'collapsed' attribute.
103
+ */
104
+ getBreadcrumbsCollapsed(): Array<Element>;
105
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { default as Button } from './button.element.js';
2
+ export default Button;
@@ -0,0 +1,204 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary This class represents Button element, extending the WJElement class.
4
+ * @documentation https://elements.webjet.sk/components/button
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @dependency wje-icon
8
+ * @slot - The button main content.
9
+ * @slot icon - The button icon.
10
+ * @slot caret - The button caret.
11
+ * @slot start - The button start slot.
12
+ * @slot end - The button end slot.
13
+ * @slot toggle - The button toggle slot.
14
+ * @csspart native - The component's native wrapper.
15
+ * @cssproperty [--wje-button-background-color=transparent] - Background color of the component;
16
+ * @cssproperty [--wje-button-border-color=--wje-color-contrast-4] - Border color of the component;
17
+ * @cssproperty [--wje-button-color=--wje-color-contrast-11] - Color of the component;
18
+ * @cssproperty [--wje-button-border-radius=--wje-border-radius-medium] - Border radius of the component;
19
+ * @cssproperty [--wje-button-border-width=1px] - Border width of the component;
20
+ * @cssproperty [--wje-button-border-style=solid] - Border style of the component;
21
+ * @cssproperty [--wje-button-border-color=--wje-color-contrast-1] - Border color of the component;
22
+ * @cssproperty [--wje-button-margin-inline=0] - Margin inline of the component;
23
+ */
24
+ export default class Button extends WJElement {
25
+ /**
26
+ * Get CSS stylesheet for the Button element.
27
+ * @static
28
+ * @returns {CSSStyleSheet} styles - The CSS stylesheet for the Button element.
29
+ */
30
+ static get cssStyleSheet(): CSSStyleSheet;
31
+ /**
32
+ * Get observed attributes for the Button element.
33
+ * @static
34
+ * @returns {Array<string>} observedAttributes - The observed attributes array for the Button element.
35
+ */
36
+ static get observedAttributes(): Array<string>;
37
+ /**
38
+ * @summary A static property that indicates whether the custom element is form-associated or not.
39
+ * Form-associated custom elements are elements that can participate in form submission.
40
+ * @type {boolean}
41
+ */
42
+ static formAssociated: boolean;
43
+ internals_: ElementInternals;
44
+ /**
45
+ * Dependencies of the Button element.
46
+ * @type {object}
47
+ */
48
+ dependencies: object;
49
+ /**
50
+ * Properties of the element Button.
51
+ * @param value
52
+ */
53
+ set color(value: string | string);
54
+ /**
55
+ * Get color of the Button element.
56
+ * @returns {string|string}
57
+ */
58
+ get color(): string | string;
59
+ /**
60
+ * Set variant of the Button element.
61
+ * @param value
62
+ */
63
+ set caret(value: boolean);
64
+ /**
65
+ * Get variant of the Button element.
66
+ * @returns {boolean}
67
+ */
68
+ get caret(): boolean;
69
+ /**
70
+ * Sets the 'round' attribute on the element. If the value is true, the attribute is added;
71
+ * otherwise, it is removed from the element.
72
+ * @param {boolean} value A boolean indicating whether to set or remove the 'round' attribute.
73
+ */
74
+ set round(value: boolean);
75
+ /**
76
+ * Retrieves the value of the 'round' attribute as a boolean.
77
+ * Checks if the 'round' attribute is present on the element.
78
+ * @returns {boolean} True if the 'round' attribute exists, otherwise false.
79
+ */
80
+ get round(): boolean;
81
+ /**
82
+ * Set variant of the Button element.
83
+ * @param value
84
+ */
85
+ set tooltip(value: boolean);
86
+ /**
87
+ * Get variant of the Button element.
88
+ * @returns {boolean}
89
+ */
90
+ get tooltip(): boolean;
91
+ /**
92
+ * Set variant of the Button element.
93
+ * @param value
94
+ */
95
+ set dialog(value: string | object);
96
+ /**
97
+ * Get variant of the Button element.
98
+ * @returns {string|object}
99
+ */
100
+ get dialog(): string | object;
101
+ /**
102
+ * Set active state of the Button element.
103
+ * @param {boolean} value The value to set
104
+ */
105
+ set active(value: boolean);
106
+ /**
107
+ * Get active state of the Button element.
108
+ * @returns {boolean} active - The active state
109
+ */
110
+ get active(): boolean;
111
+ /**
112
+ * Set disabled state of the Button element.
113
+ * @param {boolean} value The value to set
114
+ */
115
+ set disabled(value: boolean);
116
+ /**
117
+ * Get disabled state of the Button element.
118
+ * @returns {boolean} disabled - The disabled state
119
+ */
120
+ get disabled(): boolean;
121
+ /**
122
+ * Set fill of the Button element.
123
+ * @param {string} value The value to set
124
+ */
125
+ set fill(value: string);
126
+ /**
127
+ * Get fill of the Button element.
128
+ * @returns {string} fill - The fill value
129
+ */
130
+ get fill(): string;
131
+ /**
132
+ * Set outline state of the Button element.
133
+ * @param {boolean} value The value to set
134
+ */
135
+ set outline(value: boolean);
136
+ /**
137
+ * Get outline state of the Button element.
138
+ * @returns {boolean} outline - The outline state
139
+ */
140
+ get outline(): boolean;
141
+ /**
142
+ * Set stop propagation state of the Button element.
143
+ * @param {boolean} value The value to set
144
+ */
145
+ set stopPropagation(value: boolean);
146
+ /**
147
+ * Get stop propagation state of the Button element.
148
+ * @returns {boolean} stopPropagation - The stop propagation state
149
+ */
150
+ get stopPropagation(): boolean;
151
+ /**
152
+ * Sets the value of the custom event attribute.
153
+ * @param {string} value The value to be assigned to the custom event attribute.
154
+ */
155
+ set customEvent(value: string);
156
+ /**
157
+ * Retrieves the value of the 'custom-event' attribute from the element.
158
+ * @returns {string | null} The value of the 'custom-event' attribute, or null if the attribute is not set.
159
+ */
160
+ get customEvent(): string | null;
161
+ /**
162
+ * Retrieves a mapped object containing custom event parameters extracted from the element's attributes.
163
+ * Attributes considered are those that begin with 'custom-event-'.
164
+ * The mapped object's keys are derived by removing the 'custom-event-' prefix from the attribute names,
165
+ * and the values are the corresponding attribute values.
166
+ * @returns {object} An object containing key-value pairs of custom event parameters.
167
+ */
168
+ get customEventParameters(): object;
169
+ /**
170
+ * @summary Callback function that is called when the custom element is associated with a form.
171
+ * This function sets the internal `_form` property to the associated form.
172
+ * @param {HTMLFormElement} form The form the custom element is associated with.
173
+ */
174
+ formAssociatedCallback(form: HTMLFormElement): void;
175
+ _form: HTMLFormElement;
176
+ /**
177
+ * @summary Callback function that is called when the form-associated state of the custom element changes.
178
+ * This function updates the 'disabled' attribute of the element based on the new state.
179
+ * @param {boolean} disabled The new form-associated state.
180
+ */
181
+ formDisabledCallback(disabled: boolean): void;
182
+ /**
183
+ * Draw method for the Button element.
184
+ * @returns {object} fragment - The document fragment containing the drawn element.
185
+ */
186
+ draw(): object;
187
+ hasToggle: boolean;
188
+ slotToggle: HTMLSlotElement;
189
+ /**
190
+ * After draw method for the Button element.
191
+ */
192
+ afterDraw(): void;
193
+ unbindRouterLinks: any;
194
+ /**
195
+ * Event dialog open method for the Button element.
196
+ * @param {Event} e The event object
197
+ */
198
+ eventDialogOpen: (e: Event) => void;
199
+ /**
200
+ * Toggle states method for the Button element.
201
+ */
202
+ toggleStates: () => void;
203
+ #private;
204
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { default as ButtonGroup } from './button-group.element.js';
2
+ export default ButtonGroup;
@@ -0,0 +1,96 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary ButtonGroup class
4
+ * @class
5
+ * @augments WJElement
6
+ * @csspart native - The component's native wrapper.
7
+ * @slot - The button group main content.
8
+ * @csspart native - The component's native wrapper.
9
+ */
10
+ export default class ButtonGroup extends WJElement {
11
+ /**
12
+ * Get CSS stylesheet for the ButtonGroup element.
13
+ * @static
14
+ * @returns {object} styles - The CSS styles
15
+ */
16
+ static get cssStyleSheet(): object;
17
+ /**
18
+ * Get observed attributes for the ButtonGroup element.
19
+ * @static
20
+ * @returns {Array<string>} observedAttributes - The observed attributes array
21
+ */
22
+ static get observedAttributes(): Array<string>;
23
+ /**
24
+ * Sets the "active" attribute to indicate the active state.
25
+ * @param {boolean|string|number} value The value to set for the "active" attribute, indicating the active state.
26
+ */
27
+ set active(value: boolean | string | number);
28
+ /**
29
+ * Retrieves the value of the 'active' attribute.
30
+ * If the attribute is not set, it returns false.
31
+ * @returns {string|boolean} The value of the 'active' attribute or false if it is not set.
32
+ */
33
+ get active(): string | boolean;
34
+ /**
35
+ * Sets the color attribute of the element.
36
+ * @param {string} value The value to set for the color attribute.
37
+ */
38
+ set color(value: string);
39
+ /**
40
+ * Retrieves the current value of the 'color' attribute.
41
+ * If the 'color' attribute is not set, it defaults to 'primary'.
42
+ * @returns {string} The value of the 'color' attribute or the default value 'primary'.
43
+ */
44
+ get color(): string;
45
+ /**
46
+ * Sets the round attribute for the element.
47
+ * @param {string} value The value to set for the round attribute.
48
+ */
49
+ set round(value: string);
50
+ /**
51
+ * Returns whether the element has the 'round' attribute.
52
+ * @returns {boolean} True if the 'round' attribute is present, otherwise false.
53
+ */
54
+ get round(): boolean;
55
+ /**
56
+ * Sets the 'fill' attribute of the element.
57
+ * @param {string} value The value to assign to the 'fill' attribute.
58
+ */
59
+ set fill(value: string);
60
+ /**
61
+ * Retrieves the 'fill' attribute of the element. If the 'fill' attribute is not set,
62
+ * it returns the default value 'link'.
63
+ * @returns {string} The value of the 'fill' attribute, or 'link' if the attribute is not present.
64
+ */
65
+ get fill(): string;
66
+ /**
67
+ * Draw method for the ButtonGroup element.
68
+ * @returns {object} fragment - The document fragment
69
+ */
70
+ draw(): object;
71
+ slotElement: HTMLSlotElement;
72
+ /**
73
+ * After draw method for the ButtonGroup element.
74
+ */
75
+ afterDraw(): void;
76
+ /**
77
+ * Find button method to find the button element.
78
+ * @param {object} el The element
79
+ * @returns {object} button - The button element
80
+ */
81
+ findButton(el: object): object;
82
+ /**
83
+ * Toggles the state of a group of buttons based on the active button.
84
+ * @param {object} activeButton The button that is currently active.
85
+ * @param {Array<object>} buttons An array of button objects to be toggled.
86
+ * @returns {void} This method does not return a value.
87
+ */
88
+ toggle(activeButton: object, buttons: Array<object>, index: any): void;
89
+ /**
90
+ * Updates the state of a button by removing one mode attribute and setting another mode attribute.
91
+ * @param {HTMLElement} button The button element whose state is to be updated.
92
+ * @param {string} modeToRemove The mode attribute to be removed from the button. Expected values are 'color' or 'fill'.
93
+ * @returns {void}
94
+ */
95
+ updateButtonState(button: HTMLElement, modeToRemove: string): void;
96
+ }
@@ -0,0 +1,2 @@
1
+ import { default as Card } from './card.element.js';
2
+ export default Card;
@@ -0,0 +1,31 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary This class represents Card element, extending the WJElement class.
4
+ * @documentation https://elements.webjet.sk/components/card
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @slot - The card main content.
8
+ * @cssproperty [--wje-card-background=#fff] - Background of the component;
9
+ * @cssproperty [--wje-card-color=#000] - Color of the component;
10
+ * @cssproperty [--wje-card-border-color=transparent] - Border color of the component;
11
+ * @cssproperty [--wje-card-border-style=solid] - Border style of the component;
12
+ * @cssproperty [--wje-card-border-width=1px] - Border width of the component;
13
+ * @cssproperty [--wje-card-border-radius=0.5rem] - Border radius of the component;
14
+ * @cssproperty [--wje-card-shadow=var(--wje-shadow-x-large)] - Shadow of the component;
15
+ */
16
+ export default class Card extends WJElement {
17
+ /**
18
+ * Get CSS stylesheet for the Card element.
19
+ * @static
20
+ * @returns {object} styles - The CSS styles
21
+ */
22
+ static get cssStyleSheet(): object;
23
+ /**
24
+ * Draw method for the Card element.
25
+ * @param {object} context The context object
26
+ * @param {object} store The store object
27
+ * @param {object} params The parameters
28
+ * @returns {object} fragment - The document fragment
29
+ */
30
+ draw(context: object, store: object, params: object): object;
31
+ }
@@ -0,0 +1,2 @@
1
+ import { default as CardContent } from './card-content.element.js';
2
+ export default CardContent;
@@ -0,0 +1,22 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary This class represents an Card Content element, extending the WJElement class.
4
+ * @documentation https://elements.webjet.sk/components/card-content
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @slot - The card content main content.
8
+ * @cssproperty [--wje-card-padding=0] - Padding of the component;
9
+ */
10
+ export default class CardContent extends WJElement {
11
+ /**
12
+ * Get CSS stylesheet for the CardContent element.
13
+ * @static
14
+ * @returns {object} styles - The CSS styles for the CardContent element.
15
+ */
16
+ static get cssStyleSheet(): object;
17
+ /**
18
+ * Draw method for the CardContent element.
19
+ * @returns {object} fragment - The document fragment containing the drawn element.
20
+ */
21
+ draw(): object;
22
+ }
@@ -0,0 +1,2 @@
1
+ import { default as CardControls } from './card-controls.element.js';
2
+ export default CardControls;
@@ -0,0 +1,23 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary This class represents Card Controls element, extending the WJElement class.
4
+ * @documentation https://elements.webjet.sk/components/card-controls
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @slot - The card controls main content.
8
+ * @cssproperty [--wje-card-controls-font-size=11px] - Font size of the component;
9
+ * @cssproperty [--wje-card-controls-font-family=--wje-font-family-secondary] - Font family of the component;
10
+ */
11
+ export default class CardControls extends WJElement {
12
+ /**
13
+ * Get CSS stylesheet for the CardControls element.
14
+ * @static
15
+ * @returns {object} styles - The CSS styles
16
+ */
17
+ static get cssStyleSheet(): object;
18
+ /**
19
+ * Draw method for the CardControls element.
20
+ * @returns {object} fragment - The document fragment
21
+ */
22
+ draw(): object;
23
+ }
@@ -0,0 +1,2 @@
1
+ import { default as CardHeader } from './card-header.element.js';
2
+ export default CardHeader;
@@ -0,0 +1,22 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary CardHeader class that extends WJElement.
4
+ * @documentation https://elements.webjet.sk/components/card-header
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @slot - The card header main content.
8
+ * @cssproperty [--wje-card-header-padding=1rem 1rem 0.5rem] - Padding of the component;
9
+ */
10
+ export default class CardHeader extends WJElement {
11
+ /**
12
+ * Getter for the CSS stylesheet.
13
+ * @returns {object} The styles object.
14
+ * @static
15
+ */
16
+ static get cssStyleSheet(): object;
17
+ /**
18
+ * Draws the CardHeader.
19
+ * @returns {DocumentFragment} The created document fragment.
20
+ */
21
+ draw(): DocumentFragment;
22
+ }
@@ -0,0 +1,2 @@
1
+ import { default as CardSubtitle } from './card-subtitle.element.js';
2
+ export default CardSubtitle;
@@ -0,0 +1,30 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary CardSubtitle class that extends WJElement.
4
+ * @documentation https://elements.webjet.sk/components/card-subtitle
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @slot - The card subtitle main content.
8
+ * @cssproperty [--wje-card-subtitle-font-size=11px] - Font size of the component;
9
+ * @cssproperty [--wje-card-subtitle-font-family=var(--wje-font-family-secondary)] - Font family of the component;
10
+ * @cssproperty [--wje-card-subtitle-padding=0] - Padding of the component;
11
+ */
12
+ export default class CardSubtitle extends WJElement {
13
+ /**
14
+ * Getter for the CSS stylesheet.
15
+ * @returns {object} The styles object.
16
+ * @static
17
+ */
18
+ static get cssStyleSheet(): object;
19
+ /**
20
+ * Getter for the observed attributes.
21
+ * @returns {Array} An empty array.
22
+ * @static
23
+ */
24
+ static get observedAttributes(): any[];
25
+ /**
26
+ * Draws the CardSubtitle element.
27
+ * @returns {DocumentFragment} The created document fragment.
28
+ */
29
+ draw(): DocumentFragment;
30
+ }
@@ -0,0 +1,2 @@
1
+ import { default as CardTitle } from './card-title.element.js';
2
+ export default CardTitle;
@@ -0,0 +1,32 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary CardTitle class that extends WJElement.
4
+ * @documentation https://elements.webjet.sk/components/card-title
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @slot - The card title main content.
8
+ * @cssproperty [--wje-card-title-font-size=24px] - Font size of the component;
9
+ * @cssproperty [--wje-card-title-font-weight=500] - Font weight of the component;
10
+ * @cssproperty [--wje-card-title-margin=0] - Margin of the component;
11
+ * @cssproperty [--wje-card-title-padding=0] - Padding of the component;
12
+ * @cssproperty [--wje-card-title-line-height=1.2] - Line height of the component;
13
+ */
14
+ export default class CardTitle extends WJElement {
15
+ /**
16
+ * Getter for the CSS stylesheet.
17
+ * @returns {object} The styles object.
18
+ * @static
19
+ */
20
+ static get cssStyleSheet(): object;
21
+ /**
22
+ * Getter for the observed attributes.
23
+ * @returns {Array} An empty array.
24
+ * @static
25
+ */
26
+ static get observedAttributes(): any[];
27
+ /**
28
+ * Draws the CardTitle element.
29
+ * @returns {DocumentFragment} The created document fragment.
30
+ */
31
+ draw(): DocumentFragment;
32
+ }
@@ -0,0 +1,2 @@
1
+ import { default as Carousel } from './carousel.element.js';
2
+ export default Carousel;