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,265 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary SlidingContainer is a custom web component that extends WJElement.
4
+ * @documentation https://elements.webjet.sk/components/SlidingContainer
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @csspart - Styles the element.
8
+ * @slot - The default slot for the SlidingContainer.
9
+ * @property {string} maxWidth - The maximum width of the SlidingContainer.
10
+ * @property {string} maxHeight - The maximum height of the SlidingContainer.
11
+ * @property {string} trigger - The trigger for the SlidingContainer.
12
+ * @property {string} direction - Specifies the sliding direction of the container (e.g., 'left' or 'right').
13
+ * @property {string} variant - Determines how the SlidingContainer behaves, such as 'over' or 'in-place'.
14
+ * @property {string} screenBreakPoint - The width (in pixels) at which the SlidingContainer switches to the "over" variant for smaller screens.
15
+ * @property {boolean} removeChildAfterClose - Removes the child after the SlidingContainer is closed.
16
+ * @property {string} animationDuration - Specifies the duration (in milliseconds) of the sliding animation.
17
+ * @property {string} animationEasing - Specifies the easing function used for the sliding animation (e.g., 'linear', 'ease-in', 'ease-out').
18
+ * @property {boolean} hasOpacity - Sets the opacity of the SlidingContainer.
19
+ * @tag wje-sliding-container
20
+ * @example
21
+ * <wje-sliding-container trigger="test-resize-container-event-right" id="left-in-place" direction="left" max-width="100px" max-height="100%">
22
+ * <wje-card>
23
+ * <wje-card-header>
24
+ * <wje-card-subtitle>CONTENT Subtitle</wje-card-subtitle>
25
+ * <wje-card-title>CONTENT Title</wje-card-title>
26
+ * </wje-card-header>
27
+ * <wje-card-content>
28
+ * CONTENT Lorem ipsum dolor sit amet, consectetur adipiscing elit.
29
+ * </wje-card-content>
30
+ * </wje-card>
31
+ * </wje-sliding-container>
32
+ */
33
+ export default class SlidingContainer extends WJElement {
34
+ /**
35
+ * Returns the observed attributes for the component.
36
+ * @returns {string[]}
37
+ */
38
+ static get observedAttributes(): string[];
39
+ /**
40
+ * Returns the CSS styles for the component.
41
+ * @static
42
+ * @returns {CSSStyleSheet}
43
+ */
44
+ static get cssStyleSheet(): CSSStyleSheet;
45
+ _isOpen: boolean;
46
+ _lastCaller: EventTarget;
47
+ _resizeObserver: ResizeObserver;
48
+ /**
49
+ * Sets the 'variant' attribute to the specified value.
50
+ * @param {string} value The value to set for the 'variant' attribute.
51
+ */
52
+ set variant(value: string);
53
+ /**
54
+ * Retrieves the value of the "variant" attribute. If the attribute is not set,
55
+ * it returns the default value 'in-place'.
56
+ * @returns {string} The variant value or the default value 'in-place'.
57
+ */
58
+ get variant(): string;
59
+ /**
60
+ * Sets the maximum width of an element by updating the 'max-width' attribute.
61
+ * @param {string} value The maximum width value to be set (e.g., '100px', '50%', etc.).
62
+ */
63
+ set maxWidth(value: string);
64
+ /**
65
+ * Gets the maximum width value of the element.
66
+ * Retrieves the value of the 'max-width' attribute. If the attribute is not set, it defaults to 'auto'.
67
+ * @returns {string} The maximum width value of the element or 'auto' if the attribute is not defined.
68
+ */
69
+ get maxWidth(): string;
70
+ /**
71
+ * Sets the maximum height for the element.
72
+ * @param {string} value The maximum height value to be applied to the element. This can include units such as "px", "em", "%", etc.
73
+ */
74
+ set maxHeight(value: string);
75
+ /**
76
+ * Retrieves the maximum height value of the element, or returns 'auto' if not set.
77
+ * @returns {string} The maximum height value or 'auto' if the attribute is not specified.
78
+ */
79
+ get maxHeight(): string;
80
+ /**
81
+ * Sets the 'trigger' attribute for the element.
82
+ * @param {string} value The value to set for the 'trigger' attribute.
83
+ */
84
+ set trigger(value: string);
85
+ /**
86
+ * Retrieves the value of the 'trigger' attribute. If the attribute is not set, it defaults to 'sliding-container'.
87
+ * @returns {string} The value of the 'trigger' attribute or the default value 'sliding-container' if not defined.
88
+ */
89
+ get trigger(): string;
90
+ /**
91
+ * Sets the direction attribute for the element.
92
+ * @param {string} value The direction value to be assigned. Possible values are typically 'ltr' (left-to-right), 'rtl' (right-to-left), or 'auto'.
93
+ */
94
+ set direction(value: string);
95
+ /**
96
+ * Retrieves the direction attribute of the instance.
97
+ * If the direction attribute is not set, it defaults to 'right'.
98
+ * @returns {string} The value of the direction attribute or 'right' if not set.
99
+ */
100
+ get direction(): string;
101
+ /**
102
+ * Sets the value of the `remove-child-after-close` attribute.
103
+ * This attribute determines if a child element should be removed after a close operation.
104
+ * @param {boolean|string} value The value to set for the `remove-child-after-close` attribute. The value can be a boolean or a string representation of a boolean.
105
+ */
106
+ set removeChildAfterClose(value: boolean | string);
107
+ /**
108
+ * Gets the value indicating whether the child element should be removed after closing.
109
+ *
110
+ * This property checks the presence of the 'remove-child-after-close' attribute on the element.
111
+ * Returns `false` if the attribute does not exist.
112
+ * @returns {boolean} True if the 'remove-child-after-close' attribute is present, otherwise false.
113
+ */
114
+ get removeChildAfterClose(): boolean;
115
+ /**
116
+ * Sets the screen break point value to determine responsive behavior.
117
+ * @param {string} value The value to set as the screen break point.
118
+ */
119
+ set screenBreakPoint(value: string);
120
+ /**
121
+ * Retrieves the value of the 'screen-break-point' attribute.
122
+ * @returns {string} The value of the 'screen-break-point' attribute.
123
+ */
124
+ get screenBreakPoint(): string;
125
+ /**
126
+ * Sets the duration of the animation by updating the `animation-duration` attribute.
127
+ * @param {string} value The duration value for the animation, specified in a format
128
+ * such as seconds (e.g., "2s") or milliseconds (e.g., "200ms").
129
+ */
130
+ set animationDuration(value: string);
131
+ /**
132
+ * Gets the animation duration for an element.
133
+ * It retrieves the value of the 'animation-duration' attribute if present; otherwise, it defaults to '500'.
134
+ * @returns {string} The value of the animation duration, either from the attribute or the default '500'.
135
+ */
136
+ get animationDuration(): string;
137
+ /**
138
+ * Sets the easing function for the animation.
139
+ * @param {string} value The easing function to use for the animation. This can be any valid CSS timing function such as "ease", "linear", "ease-in", "ease-out", etc.
140
+ */
141
+ set animationEasing(value: string);
142
+ /**
143
+ * Retrieves the easing function for the animation.
144
+ * @returns {string} The value of the 'animation-easing' attribute if set, otherwise defaults to 'linear'.
145
+ */
146
+ get animationEasing(): string;
147
+ /**
148
+ * Determines if the element has an 'has-opacity' attribute.
149
+ * @returns {boolean} True if the element has the 'has-opacity' attribute, otherwise false.
150
+ */
151
+ get hasOpacity(): boolean;
152
+ /**
153
+ * Sets the value of the 'add-to-height' attribute.
154
+ * This attribute is used to modify or adjust the height dynamically.
155
+ * @param {string} value The value to be assigned to the 'add-to-height' attribute.
156
+ */
157
+ set addToHeight(value: string);
158
+ /**
159
+ * Retrieves the value of the 'add-to-height' attribute from the element.
160
+ * If the attribute is not set, it defaults to '0'.
161
+ * @returns {string} The value of the 'add-to-height' attribute or '0' if the attribute is not present.
162
+ */
163
+ get addToHeight(): string;
164
+ /**
165
+ * Determines whether the current state is open.
166
+ * @returns {boolean} True if the state is open, otherwise false.
167
+ */
168
+ get isOpen(): boolean;
169
+ /**
170
+ * Executes before drawing the element.
171
+ */
172
+ beforeDraw(): void;
173
+ /**
174
+ * Draws the component.
175
+ * @param {object} context The context for drawing.
176
+ * @param {object} store The store for drawing.
177
+ * @param {object} params The parameters for drawing.
178
+ * @returns {DocumentFragment}
179
+ */
180
+ draw(context: object, store: object, params: object): DocumentFragment;
181
+ transparentDiv: HTMLDivElement;
182
+ wrapperDiv: HTMLDivElement;
183
+ nativeElement: HTMLDivElement;
184
+ /**
185
+ * Performs actions after the element is drawn on the screen.
186
+ * Attaches an event listener to the document based on the specified trigger.
187
+ * Sets the variant to "over" if the document width is smaller than the screen break point.
188
+ * Calls the checkForVariant method with the current variant.
189
+ */
190
+ afterDraw(): void;
191
+ /**
192
+ * Creates and returns a styled close button element with an icon,
193
+ * including an event listener to trigger the close method.
194
+ * @returns {HTMLElement} The close button element configured with styles, an icon, and event listener.
195
+ */
196
+ htmlCloseButton(): HTMLElement;
197
+ /**
198
+ * Retrieves the parent element of the current element.
199
+ * If the parent element is not found, it attempts to find the root host element.
200
+ * @returns {Element|null} The parent element or the root host element if no parent exists. Returns null if neither is found.
201
+ */
202
+ getParentElement(): Element | null;
203
+ /**
204
+ * Adjusts the position and dimensions of the current element based on the specified variant.
205
+ *
206
+ * The method handles modifications to the element's positioning style, aligns it relative to its parent,
207
+ * and manages alignment to its siblings based on the specified direction.
208
+ * @param {string} variant The variant to determine how the element should be updated. For example, when set to 'over', specific adjustments to the position and size are performed.
209
+ * @returns {void} No value is returned, the method modifies the element's style properties directly.
210
+ */
211
+ checkForVariant(variant: string): void;
212
+ /**
213
+ * Triggers the event based on the target element.
214
+ * If the target element is different from the last caller, it refreshes the children by calling the `open` method.
215
+ * If the target element is the same as the last caller, it toggles the state by calling the `toggle` method.
216
+ * @param {Event} e The event object.
217
+ */
218
+ triggerEvent: (e: Event) => Promise<void>;
219
+ /**
220
+ * Executes before the element is opened.
221
+ */
222
+ beforeOpen(e: any): void;
223
+ /**
224
+ * Callback function called after the element is opened.
225
+ */
226
+ afterOpen(e: any): void;
227
+ /**
228
+ * Executes before closing the element.
229
+ */
230
+ beforeClose(e: any): void;
231
+ /**
232
+ * Callback function that is called after the container is closed.
233
+ */
234
+ afterClose(e: any): void;
235
+ /**
236
+ * Animates the transition of elements with specified options, toggling the visibility and/or dimensions
237
+ * of the associated elements based on their current state.
238
+ *
239
+ * This method handles both forward and reverse animations for two elements (`transparentDiv` and `nativeElement`)
240
+ * with optional opacity changes. It ensures smooth transitioning by canceling any previous animations on the provided
241
+ * elements before initiating a new animation sequence.
242
+ * @returns {Promise<void>} A promise that resolves when the transition animation is completed.
243
+ */
244
+ doAnimateTransition(): Promise<void>;
245
+ animation: any;
246
+ nativeAnimation: any;
247
+ /**
248
+ * Opens the sliding container by performing necessary preparatory and transitional operations.
249
+ * @param {Event} e The event that triggered the open operation.
250
+ * @returns {Promise<void>} A promise that resolves when the open operation, including animations and subsequent handlers, is complete.
251
+ */
252
+ open(e: Event): Promise<void>;
253
+ /**
254
+ * Closes the sliding container and performs associated operations such as animations and event dispatches.
255
+ * @param {Event} e The event object associated with the close action.
256
+ * @returns {Promise<void>} A promise that resolves when the closing operation, including animations and child element removal, is completed.
257
+ */
258
+ close(e: Event): Promise<void>;
259
+ /**
260
+ * Toggles the state between open and closed.
261
+ * @param {Event} e The event object triggering the toggle.
262
+ * @returns {Promise<void>} A promise that resolves once the toggle operation (open or close) is complete.
263
+ */
264
+ toggle(e: Event): Promise<void>;
265
+ }
@@ -0,0 +1 @@
1
+ export function drag(container: any, options: any): void;
@@ -0,0 +1,2 @@
1
+ import { default as SplitView } from './split-view.element.js';
2
+ export default SplitView;
@@ -0,0 +1,65 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * `SplitView` is a custom web component that represents a split view.
4
+ * @summary This element represents a split view.
5
+ * @documentation https://elements.webjet.sk/components/split-view
6
+ * @status stable
7
+ * @augments WJElement
8
+ * @slot start - Slot for the start view.
9
+ * @slot end - Slot for the end view.
10
+ * @slot divider - Slot for the divider.
11
+ * @csspart wje-divider - The divider of the split view.
12
+ * @cssproperty [--wje-split-view-divider-area=12px] - Defines the interactive area (hitbox) of the divider for resizing. Accepts any valid CSS length unit (e.g., `px`, `rem`, `%`).
13
+ * @cssproperty [--wje-split-view-divider-width=4px] - Specifies the visual width of the divider. Controls how thick the divider appears.
14
+ * @cssproperty [--wje-split-view-min=0%] - Sets the minimum size limit for the split views. Ensures that a view cannot be resized below this value.
15
+ * @cssproperty [--wje-split-view-max=100%] - Sets the maximum size limit for the split views. Ensures that a view cannot be resized beyond this value.
16
+ * @cssproperty [--wje-split-view-calc-a=50%] - Represents the calculated size of the first view. This is used to dynamically set the size of the first view.
17
+ * @cssproperty [--wje-split-view-calc-b=50%] - Represents the calculated size of the second view. This is used to dynamically set the size of the second view.
18
+ * @cssproperty [--wje-split-view-clamp-a=clamp(var(--wje-split-view-min), var(--wje-split-view-calc-a), var(--wje-split-view-max))] - Clamps the size of the first view between minimum and maximum limits. Ensures the calculated size stays within the defined range.
19
+ * @cssproperty [--wje-split-view-clamp-b=clamp(var(--wje-split-view-min), var(--wje-split-view-calc-b), var(--wje-split-view-max))] - Clamps the size of the second view between minimum and maximum limits. Ensures the calculated size stays within the defined range.
20
+ * @cssproperty [--wje-split-view-divider-background=var(--wje-border-color)] - Sets the background color of the divider. Accepts any valid CSS color value (e.g., hex, RGB, or CSS variable).
21
+ * @cssproperty [--wje-split-view-divider-size=4px] - Defines the overall size of the divider, affecting both its visual and interactive dimensions. Accepts any valid CSS length unit.
22
+ * @tag wje-split-view
23
+ */
24
+ export default class SplitView extends WJElement {
25
+ /**
26
+ * Returns the CSS styles for the component.
27
+ * @static
28
+ * @returns {CSSStyleSheet}
29
+ */
30
+ static get cssStyleSheet(): CSSStyleSheet;
31
+ /**
32
+ * Returns the list of attributes to observe for changes.
33
+ * @static
34
+ * @returns {Array<string>}
35
+ */
36
+ static get observedAttributes(): Array<string>;
37
+ set initial(value: number);
38
+ get initial(): number;
39
+ /**
40
+ * Draws the component for the split view.
41
+ * @returns {DocumentFragment}
42
+ */
43
+ draw(): DocumentFragment;
44
+ /**
45
+ * Sets up the event listeners after the component is drawn.
46
+ */
47
+ afterDraw(): void;
48
+ resizeObserver: ResizeObserver;
49
+ /**
50
+ * Handles the drag event.
51
+ * @param {Event} e The event object.
52
+ */
53
+ handleDrag: (e: Event) => void;
54
+ /**
55
+ * Detects the size of the split view.
56
+ */
57
+ detectSize(): void;
58
+ size: number;
59
+ /**
60
+ * Converts pixels to a percentage.
61
+ * @param {number} value The pixel value.
62
+ * @returns {number} The percentage value.
63
+ */
64
+ pixelsToPercentage(value: number): number;
65
+ }
@@ -0,0 +1,2 @@
1
+ import { default as Status } from './status.element.js';
2
+ export default Status;
@@ -0,0 +1,26 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary This class represents Status element, extending the WJElement class.
4
+ * @documentation https://elements.webjet.sk/components/status
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @slot - The status main content.
8
+ * @slot start - The status start content.
9
+ * @slot end - The status end content.
10
+ * @csspart native - The native part of the status.
11
+ * @csspart bullet - The bullet part of the status.
12
+ * @tag wje-status
13
+ */
14
+ export default class Status extends WJElement {
15
+ /**
16
+ * Returns the CSS stylesheet for the component.
17
+ * @static
18
+ * @returns {CSSStyleSheet} The CSS stylesheet
19
+ */
20
+ static get cssStyleSheet(): CSSStyleSheet;
21
+ /**
22
+ * Draws the component for the status.
23
+ * @returns {object} fragment - The document fragment
24
+ */
25
+ draw(): object;
26
+ }
@@ -0,0 +1,2 @@
1
+ import { default as Step } from './step.element.js';
2
+ export default Step;
@@ -0,0 +1,23 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * `Step` is a custom web component that represents a step.
4
+ * @summary This element represents a step.
5
+ * @documentation https://elements.webjet.sk/components/step
6
+ * @status stable
7
+ * @augments WJElement
8
+ * @csspart native - The native part of the step.
9
+ * @slot - The default slot for the step.
10
+ * @tag wje-step
11
+ */
12
+ export default class Step extends WJElement {
13
+ /**
14
+ * Returns the CSS stylesheet for the component.
15
+ * @returns {CSSStyleSheet} The CSS stylesheet.
16
+ */
17
+ static get cssStyleSheet(): CSSStyleSheet;
18
+ /**
19
+ * Returns the list of observed attributes.
20
+ * @returns {DocumentFragment}
21
+ */
22
+ draw(): DocumentFragment;
23
+ }
@@ -0,0 +1,2 @@
1
+ import { default as Stepper } from './stepper.element.js';
2
+ export default Stepper;
@@ -0,0 +1,125 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ import { Localizer } from '../utils/localize.js';
3
+ /**
4
+ * `Stepper` is a custom web component that represents a stepper.
5
+ * @summary This element represents a stepper.
6
+ * @documentation https://elements.webjet.sk/components/stepper
7
+ * @status stable
8
+ * @augments WJElement
9
+ * @attribute {string} active - The active color for the stepper.
10
+ * @attribute {string} done - The done color for the stepper.
11
+ * @slot - The default slot for the stepper.
12
+ * @csspart native - The native part of the stepper.
13
+ * @csspart header - The header part of the stepper.
14
+ * @csspart content - The content part of the stepper.
15
+ * @tag wje-stepper
16
+ */
17
+ export default class Stepper extends WJElement {
18
+ static get cssStyleSheet(): any;
19
+ currentStep: number;
20
+ localizer: Localizer;
21
+ steps: any[];
22
+ headerSteps: any[];
23
+ /**
24
+ * Sets the start index for an operation or a process. This method assigns
25
+ * the provided value to the attribute 'start-index'.
26
+ * @param {number|string} value The value to set for the 'start-index' attribute.
27
+ */
28
+ set startIndex(value: number | string);
29
+ /**
30
+ * Retrieves the starting index value stored as an attribute.
31
+ * If the attribute 'start-index' exists and is not null, it parses the value as an integer and returns it.
32
+ * If the attribute does not exist, it returns the default value of 0.
33
+ * @returns {number} The starting index as an integer, or 0 if the attribute is not present.
34
+ */
35
+ get startIndex(): number;
36
+ get active(): string;
37
+ get done(): string;
38
+ /**
39
+ * Draws the component for the stepper.
40
+ * @returns {DocumentFragment}
41
+ */
42
+ draw(): DocumentFragment;
43
+ header: HTMLDivElement;
44
+ prev: HTMLSlotElement;
45
+ next: HTMLSlotElement;
46
+ finish: HTMLSlotElement;
47
+ processStep(index: any, step: any, header: any, steps: any): HTMLDivElement;
48
+ /**
49
+ * Sets up the attributes for the component.
50
+ */
51
+ afterDraw(): void;
52
+ /**
53
+ * Navigates to a different step in a multi-step process based on the provided direction.
54
+ * @param {number} direction The navigation direction.
55
+ * Use a positive value to move forward or a negative value to move backward.
56
+ */
57
+ navigate(direction: number): void;
58
+ /**
59
+ * Navigates to a specific step in a workflow or process.
60
+ * Executes a set of operations before and after the step transition.
61
+ * @param {number} stepIndex The index of the step to navigate to.
62
+ * @returns {void} This method does not return a value.
63
+ */
64
+ goToStep(stepIndex: number): void;
65
+ _executeGoToStep(stepIndex?: number): void;
66
+ /**
67
+ * Resets a step to its default state by clearing its active and done attributes.
68
+ * Updates the step's badge to show its index and removes any color styling.
69
+ * @param {HTMLElement} nav The navigation element representing the step.
70
+ * @param {HTMLElement|null} [badge] The badge element within the step. If not provided, it will be selected from the `nav` element.
71
+ * @param {number} [stepIndex] The index of the step, used to set the badge content.
72
+ */
73
+ setStepDefault(nav: HTMLElement, badge?: HTMLElement | null, stepIndex?: number): void;
74
+ /**
75
+ * Sets a step as active by adding the `active` attribute and updating the step's badge.
76
+ * @param {HTMLElement} nav The navigation element representing the step to activate.
77
+ * @param {HTMLElement|null} [badge] The badge element within the step. If not provided, it will be selected from the `nav` element.
78
+ * @param {number|null} [stepIndex] The index of the step, used to set the badge content. Defaults to `null` if not provided.
79
+ */
80
+ setStepActive(nav: HTMLElement, badge?: HTMLElement | null, stepIndex?: number | null): void;
81
+ /**
82
+ * Activates the content of a specific step by displaying it and hiding all others.
83
+ * @param {number} stepIndex The index of the step whose content should be displayed.
84
+ */
85
+ setContentActive(stepIndex: number): void;
86
+ /**
87
+ * Returns the DOM element of a step by index.
88
+ * @param {number} stepIndex
89
+ * @returns {HTMLElement}
90
+ */
91
+ getStepElement(stepIndex: number): HTMLElement;
92
+ /**
93
+ * Appends or replaces content inside the step container.
94
+ * @param {number} stepIndex
95
+ * @param {Node|string|Node[]} content DOM node(s) or HTML string to insert.
96
+ * @param {{ replace?: boolean }} [options]
97
+ */
98
+ renderStepContent(stepIndex: number, content: Node | string | Node[], options?: {
99
+ replace?: boolean;
100
+ }): void;
101
+ /**
102
+ * Marks a step as completed by setting the `done` attribute and updating its badge with a check icon.
103
+ * @param {HTMLElement} nav The navigation element representing the completed step.
104
+ * @param {HTMLElement|null} [badge] The badge element within the step. If not provided, it will be selected from the `nav` element.
105
+ */
106
+ setStepDone(nav: HTMLElement, badge?: HTMLElement | null): void;
107
+ setStepLocked(nav: any, badge?: any): void;
108
+ /**
109
+ * A callback function that is executed before opening a step in a process.
110
+ * This allows for custom behavior or logic to be applied before the step is displayed.
111
+ * @callback beforeOpen
112
+ * @param {number} stepIndex The index of the step that is about to be opened.
113
+ * @param {object} currentStep The current step data or configuration object before opening the new step.
114
+ */
115
+ beforeOpen: (stepIndex: any, currentStep: any) => void;
116
+ /**
117
+ * Callback function executed after a step is opened.
118
+ * This function can be overridden to implement custom behavior
119
+ * that should take place immediately after a step is opened.
120
+ * @function afterOpen
121
+ * @param {number} stepIndex The index of the step that has been opened.
122
+ * @param {object} currentStep The object representing the current step that has been opened.
123
+ */
124
+ afterOpen: (stepIndex: number, currentStep: object) => void;
125
+ }
@@ -0,0 +1,25 @@
1
+ export function addAction(stateValueName: any): (payload2: any) => {
2
+ type: string;
3
+ payload: any;
4
+ actionType: string;
5
+ };
6
+ export function deleteAction(stateValueName: any): (payload2: any) => {
7
+ type: string;
8
+ payload: any;
9
+ actionType: string;
10
+ };
11
+ export function loadAction(stateValueName: any): (payload2: any) => {
12
+ type: string;
13
+ payload: any;
14
+ actionType: string;
15
+ };
16
+ export function updateAction(stateValueName: any): (payload2: any) => {
17
+ type: string;
18
+ payload: any;
19
+ actionType: string;
20
+ };
21
+ export function addManyAction(stateValueName: any): (payload2: any) => {
22
+ type: string;
23
+ payload: any;
24
+ actionType: string;
25
+ };
@@ -0,0 +1,22 @@
1
+ export default class PubSub {
2
+ events: {};
3
+ /**
4
+ * Either create a new event instance for passed `event` name.
5
+ * or push a new callback into the existing collection.
6
+ * @param {string} event The event name to subscribe to
7
+ * @param {Function} callback The callback function to subscribe to the event
8
+ * @returns {number} A count of callbacks for this event
9
+ * @memberof PubSub
10
+ */
11
+ subscribe(event: string, callback: Function): number;
12
+ /**
13
+ * If the passed event has callbacks attached to it, loop through each one and call it.
14
+ * @param {string} event The name of the event to publish
15
+ * @param {any} state The current state to pass to the callbacks
16
+ * @param {object} [newData] The new data to pass to the callbacks
17
+ * @param {object} [oldData] The old data to pass to the callbacks
18
+ * @returns {Array} The results of the callbacks for this event, or an empty array if no event exists
19
+ * @memberof PubSub
20
+ */
21
+ publish(event: string, state: any, newData?: object, oldData?: object): any[];
22
+ }