wj-elements 0.1.196 → 0.1.197

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/wje-dialog.js +1 -1
  2. package/dist/wje-file-upload.js +1 -2
  3. package/dist/wje-file-upload.js.map +1 -1
  4. package/dist/wje-routerx.js +1 -1
  5. package/dist/wje-routerx.js.map +1 -1
  6. package/package.json +1 -1
  7. package/dist/packages/index.d.ts +0 -107
  8. package/dist/packages/internals/form-associated-element.d.ts +0 -143
  9. package/dist/packages/localize/localize.d.ts +0 -47
  10. package/dist/packages/translations/en-gb.d.ts +0 -18
  11. package/dist/packages/translations/sk-sk.d.ts +0 -13
  12. package/dist/packages/utils/animations.d.ts +0 -2
  13. package/dist/packages/utils/base-path.d.ts +0 -14
  14. package/dist/packages/utils/date.d.ts +0 -2
  15. package/dist/packages/utils/element-utils.d.ts +0 -46
  16. package/dist/packages/utils/event.d.ts +0 -67
  17. package/dist/packages/utils/icon-library.d.ts +0 -3
  18. package/dist/packages/utils/localize.d.ts +0 -4
  19. package/dist/packages/utils/permissions.d.ts +0 -40
  20. package/dist/packages/utils/universal-service.d.ts +0 -18
  21. package/dist/packages/utils/utils.d.ts +0 -1
  22. package/dist/packages/wje-accordion/accordion.d.ts +0 -2
  23. package/dist/packages/wje-accordion/accordion.element.d.ts +0 -72
  24. package/dist/packages/wje-accordion/accordion.test.d.ts +0 -0
  25. package/dist/packages/wje-accordion-item/accordion-item.d.ts +0 -2
  26. package/dist/packages/wje-accordion-item/accordion-item.element.d.ts +0 -40
  27. package/dist/packages/wje-animation/animation.d.ts +0 -2
  28. package/dist/packages/wje-animation/animation.element.d.ts +0 -158
  29. package/dist/packages/wje-animation/animation.test.d.ts +0 -1
  30. package/dist/packages/wje-aside/aside.d.ts +0 -2
  31. package/dist/packages/wje-aside/aside.element.d.ts +0 -31
  32. package/dist/packages/wje-avatar/avatar.d.ts +0 -2
  33. package/dist/packages/wje-avatar/avatar.element.d.ts +0 -76
  34. package/dist/packages/wje-avatar/avatar.test.d.ts +0 -1
  35. package/dist/packages/wje-avatar/service/service.d.ts +0 -40
  36. package/dist/packages/wje-badge/badge.d.ts +0 -2
  37. package/dist/packages/wje-badge/badge.element.d.ts +0 -35
  38. package/dist/packages/wje-badge/badge.test.d.ts +0 -1
  39. package/dist/packages/wje-breadcrumb/breadcrumb.d.ts +0 -2
  40. package/dist/packages/wje-breadcrumb/breadcrumb.element.d.ts +0 -80
  41. package/dist/packages/wje-breadcrumbs/breadcrumbs.d.ts +0 -2
  42. package/dist/packages/wje-breadcrumbs/breadcrumbs.element.d.ts +0 -97
  43. package/dist/packages/wje-breadcrumbs/breadcrumbs.test.d.ts +0 -1
  44. package/dist/packages/wje-button/button.d.ts +0 -2
  45. package/dist/packages/wje-button/button.element.d.ts +0 -204
  46. package/dist/packages/wje-button/button.test.d.ts +0 -1
  47. package/dist/packages/wje-button-group/button-group.d.ts +0 -2
  48. package/dist/packages/wje-button-group/button-group.element.d.ts +0 -96
  49. package/dist/packages/wje-card/card.d.ts +0 -2
  50. package/dist/packages/wje-card/card.element.d.ts +0 -29
  51. package/dist/packages/wje-card-content/card-content.d.ts +0 -2
  52. package/dist/packages/wje-card-content/card-content.element.d.ts +0 -22
  53. package/dist/packages/wje-card-controls/card-controls.d.ts +0 -2
  54. package/dist/packages/wje-card-controls/card-controls.element.d.ts +0 -23
  55. package/dist/packages/wje-card-header/card-header.d.ts +0 -2
  56. package/dist/packages/wje-card-header/card-header.element.d.ts +0 -22
  57. package/dist/packages/wje-card-subtitle/card-subtitle.d.ts +0 -2
  58. package/dist/packages/wje-card-subtitle/card-subtitle.element.d.ts +0 -30
  59. package/dist/packages/wje-card-title/card-title.d.ts +0 -2
  60. package/dist/packages/wje-card-title/card-title.element.d.ts +0 -32
  61. package/dist/packages/wje-carousel/carousel.d.ts +0 -2
  62. package/dist/packages/wje-carousel/carousel.element.d.ts +0 -146
  63. package/dist/packages/wje-carousel-item/carousel-item.d.ts +0 -2
  64. package/dist/packages/wje-carousel-item/carousel-item.element.d.ts +0 -38
  65. package/dist/packages/wje-checkbox/checkbox.d.ts +0 -2
  66. package/dist/packages/wje-checkbox/checkbox.element.d.ts +0 -99
  67. package/dist/packages/wje-chip/chip.d.ts +0 -2
  68. package/dist/packages/wje-chip/chip.element.d.ts +0 -64
  69. package/dist/packages/wje-col/col.d.ts +0 -2
  70. package/dist/packages/wje-col/col.element.d.ts +0 -16
  71. package/dist/packages/wje-color-picker/color-picker.d.ts +0 -2
  72. package/dist/packages/wje-color-picker/color-picker.element.d.ts +0 -187
  73. package/dist/packages/wje-color-picker/color-picker.test.d.ts +0 -1
  74. package/dist/packages/wje-container/container.d.ts +0 -2
  75. package/dist/packages/wje-container/container.element.d.ts +0 -31
  76. package/dist/packages/wje-copy-button/copy-button.d.ts +0 -2
  77. package/dist/packages/wje-copy-button/copy-button.element.d.ts +0 -89
  78. package/dist/packages/wje-copy-button/service/service.d.ts +0 -12
  79. package/dist/packages/wje-dialog/dialog.d.ts +0 -2
  80. package/dist/packages/wje-dialog/dialog.element.d.ts +0 -127
  81. package/dist/packages/wje-divider/divider.d.ts +0 -2
  82. package/dist/packages/wje-divider/divider.element.d.ts +0 -32
  83. package/dist/packages/wje-dropdown/dropdown.d.ts +0 -2
  84. package/dist/packages/wje-dropdown/dropdown.element.d.ts +0 -84
  85. package/dist/packages/wje-element/element.d.ts +0 -306
  86. package/dist/packages/wje-file-upload/file-upload.d.ts +0 -2
  87. package/dist/packages/wje-file-upload/file-upload.element.d.ts +0 -191
  88. package/dist/packages/wje-file-upload/service/service.d.ts +0 -70
  89. package/dist/packages/wje-file-upload-item/file-upload-item.d.ts +0 -2
  90. package/dist/packages/wje-file-upload-item/file-upload-item.element.d.ts +0 -68
  91. package/dist/packages/wje-footer/footer.d.ts +0 -2
  92. package/dist/packages/wje-footer/footer.element.d.ts +0 -28
  93. package/dist/packages/wje-form/form.d.ts +0 -2
  94. package/dist/packages/wje-form/form.element.d.ts +0 -28
  95. package/dist/packages/wje-format-digital/format-digital.d.ts +0 -2
  96. package/dist/packages/wje-format-digital/format-digital.element.d.ts +0 -83
  97. package/dist/packages/wje-format-digital/format-digital.test.d.ts +0 -1
  98. package/dist/packages/wje-grid/grid.d.ts +0 -2
  99. package/dist/packages/wje-grid/grid.element.d.ts +0 -26
  100. package/dist/packages/wje-header/header.d.ts +0 -2
  101. package/dist/packages/wje-header/header.element.d.ts +0 -35
  102. package/dist/packages/wje-icon/icon.d.ts +0 -2
  103. package/dist/packages/wje-icon/icon.element.d.ts +0 -40
  104. package/dist/packages/wje-icon/service/library.d.ts +0 -3
  105. package/dist/packages/wje-icon/service/service.d.ts +0 -11
  106. package/dist/packages/wje-icon-picker/icon-picker.d.ts +0 -2
  107. package/dist/packages/wje-icon-picker/icon-picker.element.d.ts +0 -187
  108. package/dist/packages/wje-img/img.d.ts +0 -2
  109. package/dist/packages/wje-img/img.element.d.ts +0 -118
  110. package/dist/packages/wje-img-comparer/img-comparer.d.ts +0 -2
  111. package/dist/packages/wje-img-comparer/img-comparer.element.d.ts +0 -60
  112. package/dist/packages/wje-img-comparer/service/service.d.ts +0 -1
  113. package/dist/packages/wje-infinite-scroll/infinite-scroll.d.ts +0 -2
  114. package/dist/packages/wje-infinite-scroll/infinite-scroll.element.d.ts +0 -172
  115. package/dist/packages/wje-input/input.d.ts +0 -2
  116. package/dist/packages/wje-input/input.element.d.ts +0 -159
  117. package/dist/packages/wje-input-file/input-file.d.ts +0 -2
  118. package/dist/packages/wje-input-file/input-file.element.d.ts +0 -50
  119. package/dist/packages/wje-item/item.d.ts +0 -2
  120. package/dist/packages/wje-item/item.element.d.ts +0 -68
  121. package/dist/packages/wje-kanban/kanban.d.ts +0 -2
  122. package/dist/packages/wje-kanban/kanban.element.d.ts +0 -182
  123. package/dist/packages/wje-label/label.d.ts +0 -2
  124. package/dist/packages/wje-label/label.element.d.ts +0 -34
  125. package/dist/packages/wje-level-indicator/level-indicator.d.ts +0 -2
  126. package/dist/packages/wje-level-indicator/level-indicator.element.d.ts +0 -91
  127. package/dist/packages/wje-list/list.d.ts +0 -2
  128. package/dist/packages/wje-list/list.element.d.ts +0 -31
  129. package/dist/packages/wje-main/main.d.ts +0 -2
  130. package/dist/packages/wje-main/main.element.d.ts +0 -30
  131. package/dist/packages/wje-masonry/masonry.d.ts +0 -2
  132. package/dist/packages/wje-masonry/masonry.element.d.ts +0 -114
  133. package/dist/packages/wje-masonry/service/service.d.ts +0 -32
  134. package/dist/packages/wje-menu/menu.d.ts +0 -2
  135. package/dist/packages/wje-menu/menu.element.d.ts +0 -47
  136. package/dist/packages/wje-menu-button/menu-button.d.ts +0 -2
  137. package/dist/packages/wje-menu-button/menu-button.element.d.ts +0 -34
  138. package/dist/packages/wje-menu-item/menu-item.d.ts +0 -2
  139. package/dist/packages/wje-menu-item/menu-item.element.d.ts +0 -158
  140. package/dist/packages/wje-menu-label/menu-label.d.ts +0 -2
  141. package/dist/packages/wje-menu-label/menu-label.element.d.ts +0 -39
  142. package/dist/packages/wje-option/option.d.ts +0 -2
  143. package/dist/packages/wje-option/option.element.d.ts +0 -95
  144. package/dist/packages/wje-options/options.d.ts +0 -2
  145. package/dist/packages/wje-options/options.element.d.ts +0 -232
  146. package/dist/packages/wje-orgchart/orgchart.d.ts +0 -2
  147. package/dist/packages/wje-orgchart/orgchart.element.d.ts +0 -24
  148. package/dist/packages/wje-orgchart-group/orgchart-group.d.ts +0 -2
  149. package/dist/packages/wje-orgchart-group/orgchart-group.element.d.ts +0 -28
  150. package/dist/packages/wje-orgchart-item/orgchart-item.d.ts +0 -2
  151. package/dist/packages/wje-orgchart-item/orgchart-item.element.d.ts +0 -49
  152. package/dist/packages/wje-pagination/pagination.d.ts +0 -2
  153. package/dist/packages/wje-pagination/pagination.element.d.ts +0 -166
  154. package/dist/packages/wje-pagination/pagination.test.d.ts +0 -1
  155. package/dist/packages/wje-pagination/service/service.d.ts +0 -9
  156. package/dist/packages/wje-panel/panel.d.ts +0 -2
  157. package/dist/packages/wje-panel/panel.element.d.ts +0 -34
  158. package/dist/packages/wje-popup/popup.d.ts +0 -2
  159. package/dist/packages/wje-popup/popup.element.d.ts +0 -94
  160. package/dist/packages/wje-progress-bar/progress-bar.d.ts +0 -2
  161. package/dist/packages/wje-progress-bar/progress-bar.element.d.ts +0 -96
  162. package/dist/packages/wje-qr-code/qr-code.d.ts +0 -2
  163. package/dist/packages/wje-qr-code/qr-code.element.d.ts +0 -33
  164. package/dist/packages/wje-radio/radio.d.ts +0 -2
  165. package/dist/packages/wje-radio/radio.element.d.ts +0 -64
  166. package/dist/packages/wje-radio-group/radio-group.d.ts +0 -2
  167. package/dist/packages/wje-radio-group/radio-group.element.d.ts +0 -61
  168. package/dist/packages/wje-rate/rate.d.ts +0 -2
  169. package/dist/packages/wje-rate/rate.element.d.ts +0 -156
  170. package/dist/packages/wje-relative-time/relative-time.d.ts +0 -2
  171. package/dist/packages/wje-relative-time/relative-time.element.d.ts +0 -55
  172. package/dist/packages/wje-relative-time/relative-time.test.d.ts +0 -1
  173. package/dist/packages/wje-reorder/reorder.d.ts +0 -2
  174. package/dist/packages/wje-reorder/reorder.element.d.ts +0 -119
  175. package/dist/packages/wje-reorder-dropzone/reorder-dropzone.d.ts +0 -2
  176. package/dist/packages/wje-reorder-dropzone/reorder-dropzone.element.d.ts +0 -23
  177. package/dist/packages/wje-reorder-handle/reorder-handle.d.ts +0 -2
  178. package/dist/packages/wje-reorder-handle/reorder-handle.element.d.ts +0 -75
  179. package/dist/packages/wje-reorder-item/reorder-item.d.ts +0 -2
  180. package/dist/packages/wje-reorder-item/reorder-item.element.d.ts +0 -24
  181. package/dist/packages/wje-route/route.d.ts +0 -2
  182. package/dist/packages/wje-route/route.element.d.ts +0 -22
  183. package/dist/packages/wje-router/router.d.ts +0 -2
  184. package/dist/packages/wje-router/router.element.d.ts +0 -39
  185. package/dist/packages/wje-router-link/router-link.d.ts +0 -2
  186. package/dist/packages/wje-router-link/router-link.element.d.ts +0 -31
  187. package/dist/packages/wje-router-outlet/router-outlet.d.ts +0 -2
  188. package/dist/packages/wje-router-outlet/router-outlet.element.d.ts +0 -15
  189. package/dist/packages/wje-row/row.d.ts +0 -2
  190. package/dist/packages/wje-row/row.element.d.ts +0 -23
  191. package/dist/packages/wje-select/select.d.ts +0 -2
  192. package/dist/packages/wje-select/select.element.d.ts +0 -358
  193. package/dist/packages/wje-slider/slider.d.ts +0 -2
  194. package/dist/packages/wje-slider/slider.element.d.ts +0 -103
  195. package/dist/packages/wje-sliding-container/sliding-container.d.ts +0 -2
  196. package/dist/packages/wje-sliding-container/sliding-container.element.d.ts +0 -265
  197. package/dist/packages/wje-split-view/service/service.d.ts +0 -1
  198. package/dist/packages/wje-split-view/split-view.d.ts +0 -2
  199. package/dist/packages/wje-split-view/split-view.element.d.ts +0 -65
  200. package/dist/packages/wje-status/status.d.ts +0 -2
  201. package/dist/packages/wje-status/status.element.d.ts +0 -26
  202. package/dist/packages/wje-step/step.d.ts +0 -2
  203. package/dist/packages/wje-step/step.element.d.ts +0 -23
  204. package/dist/packages/wje-stepper/stepper.d.ts +0 -2
  205. package/dist/packages/wje-stepper/stepper.element.d.ts +0 -80
  206. package/dist/packages/wje-store/default-store-actions.d.ts +0 -25
  207. package/dist/packages/wje-store/pubsub.d.ts +0 -22
  208. package/dist/packages/wje-store/store.d.ts +0 -153
  209. package/dist/packages/wje-tab/tab.d.ts +0 -2
  210. package/dist/packages/wje-tab/tab.element.d.ts +0 -66
  211. package/dist/packages/wje-tab-group/tab-group.d.ts +0 -2
  212. package/dist/packages/wje-tab-group/tab-group.element.d.ts +0 -107
  213. package/dist/packages/wje-tab-panel/tab-panel.d.ts +0 -2
  214. package/dist/packages/wje-tab-panel/tab-panel.element.d.ts +0 -23
  215. package/dist/packages/wje-textarea/textarea.d.ts +0 -2
  216. package/dist/packages/wje-textarea/textarea.element.d.ts +0 -89
  217. package/dist/packages/wje-thumbnail/thumbnail.d.ts +0 -2
  218. package/dist/packages/wje-thumbnail/thumbnail.element.d.ts +0 -31
  219. package/dist/packages/wje-timeline/timeline.d.ts +0 -2
  220. package/dist/packages/wje-timeline/timeline.element.d.ts +0 -25
  221. package/dist/packages/wje-timeline-item/timeline-item.d.ts +0 -2
  222. package/dist/packages/wje-timeline-item/timeline-item.element.d.ts +0 -27
  223. package/dist/packages/wje-toast/toast.d.ts +0 -2
  224. package/dist/packages/wje-toast/toast.element.d.ts +0 -173
  225. package/dist/packages/wje-toast/toast.test.d.ts +0 -1
  226. package/dist/packages/wje-toggle/toggle.d.ts +0 -2
  227. package/dist/packages/wje-toggle/toggle.element.d.ts +0 -65
  228. package/dist/packages/wje-toolbar/toolbar.d.ts +0 -2
  229. package/dist/packages/wje-toolbar/toolbar.element.d.ts +0 -39
  230. package/dist/packages/wje-toolbar-action/toolbar-action.d.ts +0 -2
  231. package/dist/packages/wje-toolbar-action/toolbar-action.element.d.ts +0 -35
  232. package/dist/packages/wje-tooltip/tooltip.d.ts +0 -2
  233. package/dist/packages/wje-tooltip/tooltip.element.d.ts +0 -77
  234. package/dist/packages/wje-tree/tree.d.ts +0 -2
  235. package/dist/packages/wje-tree/tree.element.d.ts +0 -105
  236. package/dist/packages/wje-tree/tree.test.d.ts +0 -1
  237. package/dist/packages/wje-tree-item/tree-item.d.ts +0 -2
  238. package/dist/packages/wje-tree-item/tree-item.element.d.ts +0 -155
  239. package/dist/packages/wje-tree-item/tree-item.test.d.ts +0 -1
  240. package/dist/packages/wje-visually-hidden/visually-hidden.d.ts +0 -2
  241. package/dist/packages/wje-visually-hidden/visually-hidden.element.d.ts +0 -29
@@ -1,75 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `ReorderHandle` is a custom web component that represents a reorder handle.
4
- * @summary This element represents a reorder handle.
5
- * @documentation https://elements.webjet.sk/components/reorder-handle
6
- * @status stable
7
- * @augments WJElement
8
- * @csspart native - The native part of the reorder handle.
9
- * @slot - The default slot for the reorder handle.
10
- * @tag wje-reorder-handle
11
- */
12
- export default class ReorderHandle extends WJElement {
13
- /**
14
- * Returns the CSS styles for the component.
15
- * @returns {*}
16
- */
17
- static get cssStyleSheet(): any;
18
- /**
19
- * Returns the list of attributes to observe for changes.
20
- * @returns {string[]}
21
- */
22
- static get observedAttributes(): string[];
23
- /**
24
- * Draws the component.
25
- * @returns {DocumentFragment}
26
- */
27
- draw(): DocumentFragment;
28
- /**
29
- * Draws the component after it is connected to the DOM.
30
- */
31
- afterDraw(): void;
32
- /**
33
- * Handles the attribute changes.
34
- * @param {DragEvent} event
35
- */
36
- startDrag(event: DragEvent): void;
37
- /**
38
- * Handles the touch start event.
39
- * @param {TouchEvent} event
40
- */
41
- startTouchDrag(event: TouchEvent): void;
42
- /**
43
- * Initiates the drag-and-drop action for a sortable element.
44
- * @param {number} clientX The x-coordinate of the mouse pointer at the start of the drag action.
45
- * @param {number} clientY The y-coordinate of the mouse pointer at the start of the drag action.
46
- */
47
- startDragAction(clientX: number, clientY: number): void;
48
- /**
49
- * Retrieves the dropzone associated with the given element.
50
- * @param {HTMLElement} element The element from which to search for the closest dropzone.
51
- * @returns {HTMLElement|null} - The closest dropzone element matching the `dropzone` attribute, or the parent element if no dropzone is found.
52
- */
53
- getDropzone(element: HTMLElement): HTMLElement | null;
54
- /**
55
- * Retrieves the closest dropzone element at the specified coordinates.
56
- * @param {number} clientX The x-coordinate relative to the viewport.
57
- * @param {number} clientY The y-coordinate relative to the viewport.
58
- * @returns {HTMLElement|null} - The closest dropzone element matching the `dropzone` attribute, or `null` if none is found.
59
- */
60
- getClosestDropzone(clientX: number, clientY: number): HTMLElement | null;
61
- /**
62
- * Retrieves all elements at the specified coordinates, including those within shadow DOMs.
63
- * @param {number} x The x-coordinate relative to the viewport.
64
- * @param {number} y The y-coordinate relative to the viewport.
65
- * @param {Document|ShadowRoot} [root] The root context in which to search. Defaults to the main document.
66
- * @param {Set<Node>} [visited] A set of already visited nodes to avoid infinite recursion in nested shadow DOMs.
67
- * @returns {HTMLElement[]} An array of all elements found at the specified coordinates, including shadow DOM elements.
68
- */
69
- getElementsFromPointAll(x: number, y: number, root?: Document | ShadowRoot, visited?: Set<Node>): HTMLElement[];
70
- /**
71
- * Re-indexes the items in the container.
72
- * @param container
73
- */
74
- reIndexItems(container: any): void;
75
- }
@@ -1,2 +0,0 @@
1
- import { default as ReorderItem } from './reorder-item.element.js';
2
- export default ReorderItem;
@@ -1,24 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `ReorderItem` is a custom web component that represents a reorder item.
4
- * @summary This element represents a reorder item.
5
- * @documentation https://elements.webjet.sk/components/reorder-item
6
- * @status stable
7
- * @augments WJElement
8
- * @csspart native-reorder-item - The native part of the reorder item.
9
- * @csspart handle-part - The handle part of the reorder item when the handle slot is present.
10
- * @slot - The default slot for the reorder item.
11
- * @tag wje-reorder-item
12
- */
13
- export default class ReorderItem extends WJElement {
14
- /**
15
- * Returns the CSS stylesheet for the component.
16
- * @returns {CSSStyleSheet} The CSS stylesheet.
17
- */
18
- static get cssStyleSheet(): CSSStyleSheet;
19
- /**
20
- * Returns the list of observed attributes.
21
- * @returns {DocumentFragment}
22
- */
23
- draw(): DocumentFragment;
24
- }
@@ -1,2 +0,0 @@
1
- import { default as Route } from './route.element.js';
2
- export default Route;
@@ -1,22 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `Route` is a custom web component that represents a route in a routing system.
4
- * @summary This element represents a route in a routing system.
5
- * @documentation https://elements.webjet.sk/components/route
6
- * @status stable
7
- * @augments WJElement
8
- * @tag wje-route
9
- */
10
- export default class Route extends WJElement {
11
- /**
12
- * Returns the list of attributes to observe for changes.
13
- * @static
14
- * @returns {Array<string>}
15
- */
16
- static get observedAttributes(): Array<string>;
17
- /**
18
- * Draws the component for the route.
19
- * @returns {DocumentFragment}
20
- */
21
- draw(): DocumentFragment;
22
- }
@@ -1,2 +0,0 @@
1
- import { default as Routerx } from './router.element.js';
2
- export default Routerx;
@@ -1,39 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `Routerx` is a custom web component that represents a router in a routing system.
4
- * @summary This element represents a router in a routing system.
5
- * @documentation https://elements.webjet.sk/components/router
6
- * @status stable
7
- * @augments {WJElement}
8
- * @tag wje-router
9
- */
10
- export default class Routerx extends WJElement {
11
- /**
12
- * Returns the list of attributes to observe for changes.
13
- * @static
14
- * @returns {Array<string>}
15
- */
16
- static get observedAttributes(): Array<string>;
17
- /**
18
- * Sets up the router after the component is drawn.
19
- */
20
- beforeDraw(): void;
21
- router: any;
22
- unbindIntercept: any;
23
- /**
24
- * Parses an element and returns an object representation.
25
- * @param {Element} element The element to parse.
26
- * @returns {object} The object representation of the element.
27
- */
28
- parseElement(element: Element): object;
29
- /**
30
- * Sets the breadcrumb for the transition.
31
- * @param {object} transition The transition object.
32
- */
33
- setBreadcrumb: (transition: object) => void;
34
- /**
35
- * Resets the scroll position.
36
- * @param {object} transition The transition object.
37
- */
38
- resetScrollPosition: (transition: object) => void;
39
- }
@@ -1,2 +0,0 @@
1
- import { default as RouterLink } from './router-link.element.js';
2
- export default RouterLink;
@@ -1,31 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `RouterLink` is a custom web component that represents a router link in a routing system.
4
- * @summary This element represents a router link in a routing system.
5
- * @documentation https://elements.webjet.sk/components/router-link
6
- * @status stable
7
- * @augments {WJElement}
8
- * @slot - The default slot for the router link.
9
- * @tag wje-router-link
10
- */
11
- export default class RouterLink extends WJElement {
12
- /**
13
- * Returns the CSS styles for the component.
14
- * @static
15
- * @returns {CSSStyleSheet}
16
- */
17
- static get cssStyleSheet(): CSSStyleSheet;
18
- /**
19
- * Returns the list of attributes to observe for changes.
20
- * @static
21
- * @returns {Array<string>}
22
- */
23
- static get observedAttributes(): Array<string>;
24
- /**
25
- * Draws the component for the router link.
26
- * @returns {DocumentFragment}
27
- */
28
- draw(): DocumentFragment;
29
- afterDraw(context: any, appStore: any, attributes: any): void;
30
- unbindRouterLinks: any;
31
- }
@@ -1,2 +0,0 @@
1
- import { default as RouterOutlet } from './router-outlet.element.js';
2
- export default RouterOutlet;
@@ -1,15 +0,0 @@
1
- /**
2
- * `Route` is a custom web component that represents a route in a routing system.
3
- * @summary This element represents a route in a routing system.
4
- * @documentation https://elements.webjet.sk/components/route
5
- * @status stable
6
- * @augments AnimatedOutlet
7
- * @tag wje-router-outlet
8
- */
9
- export default class RouterOutlet {
10
- /**
11
- * The class name for the component.
12
- * @type {string}
13
- */
14
- className: string;
15
- }
@@ -1,2 +0,0 @@
1
- import { default as Row } from './row.element.js';
2
- export default Row;
@@ -1,23 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `Row` is a custom web component that represents a row in a layout system.
4
- * @summary This element represents a row in a layout system.
5
- * @documentation https://elements.webjet.sk/components/row
6
- * @status stable
7
- * @augments WJElement
8
- * @slot - The default slot for the row.
9
- * @tag wje-row
10
- */
11
- export default class Row extends WJElement {
12
- /**
13
- * Returns the CSS styles for the component.
14
- * @static
15
- * @returns {CSSStyleSheet}
16
- */
17
- static get cssStyleSheet(): CSSStyleSheet;
18
- /**
19
- * Draws the component for the row.
20
- * @returns {DocumentFragment}
21
- */
22
- draw(): DocumentFragment;
23
- }
@@ -1,2 +0,0 @@
1
- import { Select } from './select.element.js';
2
- export default Select;
@@ -1,358 +0,0 @@
1
- import { FormAssociatedElement } from '../internals/form-associated-element.js';
2
- import { default as Button } from '../wje-button/button.js';
3
- import { default as Popup } from '../wje-popup/popup.js';
4
- import { default as Icon } from '../wje-icon/icon.js';
5
- import { default as Label } from '../wje-label/label.js';
6
- import { default as Chip } from '../wje-chip/chip.js';
7
- import { default as Input } from '../wje-input/input.js';
8
- import { default as Option } from '../wje-option/option.js';
9
- import { default as Options } from '../wje-options/options.js';
10
- import { default as Checkbox } from '../wje-checkbox/checkbox.js';
11
- export class Select extends FormAssociatedElement {
12
- /**
13
- * Returns the CSS styles for the component.
14
- * @static
15
- * @returns {CSSStyleSheet}
16
- */
17
- static get cssStyleSheet(): CSSStyleSheet;
18
- /**
19
- * Returns the list of attributes to observe for changes.
20
- * @static
21
- * @returns {Array<string>}
22
- */
23
- static get observedAttributes(): Array<string>;
24
- /**
25
- * @type {HTMLElement|null}
26
- * @description A reference to the counter element, initially null.
27
- * @private
28
- */
29
- private counterEl;
30
- /**
31
- * @type {boolean}
32
- * @description Tracks whether the select element was previously opened, initially false.
33
- * @private
34
- * @default {boolean} false
35
- */
36
- private _wasOppened;
37
- /**
38
- * @type {HTMLElement|null}
39
- * @description A reference to the native select element, initially null.
40
- */
41
- native: HTMLElement | null;
42
- /**
43
- * @type {HTMLElement|null}
44
- * @description A reference to the popup element, initially null.
45
- */
46
- popup: HTMLElement | null;
47
- /**
48
- * @type {HTMLElement|null}
49
- * @description A reference to the label element, initially null.
50
- */
51
- labelElement: HTMLElement | null;
52
- /**
53
- * @type {HTMLElement|null}
54
- * @description A reference to the slot start element, initially null.
55
- */
56
- slotStart: HTMLElement | null;
57
- /**
58
- * @type {HTMLElement|null}
59
- * @description A reference to the slot end element, initially null.
60
- */
61
- slotEnd: HTMLElement | null;
62
- /**
63
- * @type {HTMLElement|null}
64
- * @description A reference to the input element, initially null.
65
- */
66
- input: HTMLElement | null;
67
- /**
68
- * @type {HTMLElement|null}
69
- * @description A reference to the chips element, initially null.
70
- */
71
- chips: HTMLElement | null;
72
- /**
73
- * @type {HTMLElement|null}
74
- * @description A reference to the clear button element, initially null.
75
- */
76
- clear: HTMLElement | null;
77
- /**
78
- * @type {HTMLElement|null}
79
- * @description A reference to the list element, initially null.
80
- */
81
- list: HTMLElement | null;
82
- _value: any[];
83
- _selectedOptions: any[];
84
- /**
85
- * An object representing component dependencies with their respective classes.
86
- * Each property in the object maps a custom component name (as a string key)
87
- * to its corresponding class or constructor.
88
- * @typedef {{[key: string]: Function}} Dependencies
89
- * @property {Function} 'wje-button' Represents the Button component class.
90
- * @property {Function} 'wje-popup' Represents the Popup component class.
91
- * @property {Function} 'wje-icon' Represents the Icon component class.
92
- * @property {Function} 'wje-label' Represents the Label component class.
93
- * @property {Function} 'wje-chip' Represents the Chip component class.
94
- * @property {Function} 'wje-input' Represents the Input component class.
95
- * @property {Function} 'wje-option' Represents the Option component class.
96
- * @property {Function} 'wje-checkbox' Represents the Checkbox component class.
97
- */
98
- dependencies: {
99
- 'wje-button': typeof Button;
100
- 'wje-popup': typeof Popup;
101
- 'wje-icon': typeof Icon;
102
- 'wje-label': typeof Label;
103
- 'wje-chip': typeof Chip;
104
- 'wje-input': typeof Input;
105
- 'wje-option': typeof Option;
106
- 'wje-options': typeof Options;
107
- 'wje-checkbox': typeof Checkbox;
108
- };
109
- /**
110
- * Sets the maximum number of options allowed.
111
- * @param { number | object} value The value to set as the maximum number of options.
112
- * If null, the 'max-options' attribute will be removed.
113
- */
114
- set maxOptions(value: number | object);
115
- /**
116
- * Retrieves the maximum number of options allowed.
117
- * Parses the value of the 'max-options' attribute from the element and converts it to a number.
118
- * If the attribute is not present or cannot be converted to a valid number, defaults to 1.
119
- * @returns {number} The maximum number of options, or 0 if the attribute is not set or invalid.
120
- */
121
- get maxOptions(): number;
122
- /**
123
- * @summary Setter for the defaultValue attribute.
124
- * This method sets the 'value' attribute of the custom input element to the provided value.
125
- * The 'value' attribute represents the default value of the input element.
126
- * @param {string} value The value to set as the default value.
127
- */
128
- set defaultValue(value: string);
129
- /**
130
- * @summary Getter for the defaultValue attribute.
131
- * This method retrieves the 'value' attribute of the custom input element.
132
- * The 'value' attribute represents the default value of the input element.
133
- * If the 'value' attribute is not set, it returns an empty string.
134
- * @returns {string} The default value of the input element.
135
- */
136
- get defaultValue(): string;
137
- /**
138
- * Sets the trigger value.
139
- * @param {string} value The trigger value to set.
140
- */
141
- set trigger(value: string);
142
- /**
143
- * Returns the trigger value.
144
- * @returns {string} The trigger value.
145
- */
146
- get trigger(): string;
147
- /**
148
- * Sets the offset attribute for the element.
149
- * @param {string} value The value to assign to the offset attribute.
150
- */
151
- set offset(value: string);
152
- /**
153
- * Gets the value of the offset attribute of the current element.
154
- * If the offset attribute is not present, returns a default value of '0'.
155
- * @returns {string} The value of the offset attribute or the default value '0'.
156
- */
157
- get offset(): string;
158
- /**
159
- * Sets the selected options for the object.
160
- * @param {Array|object} value The new value for the selected options. It can be an array or object containing the selected options.
161
- */
162
- set selectedOptions(value: any[] | object);
163
- /**
164
- * Retrieves the selected options.
165
- * @returns {Array} An array containing the currently selected options. If no options are selected, an empty array is returned.
166
- */
167
- get selectedOptions(): any[];
168
- /**
169
- * Sets the `lazy` attribute on the element. If the provided value is truthy, the `lazy` attribute is added. If the value is falsy, the `lazy` attribute is removed.
170
- * @param {boolean} value A boolean value indicating whether to add or remove the `lazy` attribute. If `true`, the attribute is added; if `false`, it is removed.
171
- */
172
- set lazy(value: boolean);
173
- /**
174
- * Getter for the 'lazy' property.
175
- * @returns {boolean} Returns true if the 'lazy' attribute is present on the element, otherwise false.
176
- */
177
- get lazy(): boolean;
178
- /**
179
- * Sets or removes the 'no-size' attribute on an element.
180
- * @param {boolean} value A boolean indicating whether to add or remove the 'no-size' attribute. If true, the attribute is added; if false, the attribute is removed.
181
- */
182
- set noSize(value: boolean);
183
- /**
184
- * Gets the value of the 'no-size' attribute for the element.
185
- * @returns {boolean} True if the 'no-size' attribute is present, otherwise false.
186
- */
187
- get noSize(): boolean;
188
- /**
189
- * Getter for the customErrorDisplay attribute.
190
- * @returns {boolean} Whether the attribute is present.
191
- */
192
- get customErrorDisplay(): boolean;
193
- /**
194
- * Retrieves the complete list of options available for the component.
195
- * The options are determined by combining elements from various sources, including loaded options, added options, and HTML-sourced options.
196
- * If a `wje-options` element is present within the component, its loaded options are included in the merged list.
197
- * In the absence of a `wje-options` element, duplicates among the added and HTML options are removed, retaining their order.
198
- * @returns {Array<object>} An array containing all the available options, combining the loaded, added, and HTML-based options, with duplicates removed where applicable.
199
- */
200
- get options(): Array<object>;
201
- beforeDraw(): void;
202
- /**
203
- * Draws the component for the select.
204
- * @returns {DocumentFragment}
205
- */
206
- draw(): DocumentFragment;
207
- findEl: HTMLElement;
208
- displayInput: HTMLInputElement;
209
- /**
210
- * Executes post-render logic for the custom element.
211
- * This includes validation, event listener registration, managing custom attributes, and
212
- * handling options initialization for the component.
213
- * @returns {void} This method does not return any value.
214
- */
215
- afterDraw(): void;
216
- pristine: boolean;
217
- /**
218
- * Handles the change event for an option element within a select-like component.
219
- * This method processes user interactions with options and updates the state of the component,
220
- * including selection management, validation, and UI updates. Behavior differs based on
221
- * whether the component supports multiple selections.
222
- * Key functionality:
223
- * - Prevents the default behavior, event propagation, and immediate propagation of the event.
224
- * - Retrieves all options within the component.
225
- * - If the component doesn't support multiple selection:
226
- * - Marks only the clicked option as selected and deselects others.
227
- * - Hides the option popup.
228
- * - If the component supports multiple selection:
229
- * - Processes the clicked option without deselecting others.
230
- * - Updates the selected options and triggers validation.
231
- * - Marks the form state as non-pristine.
232
- * - Propagates the validation state to other relevant parts of the component or system.
233
- * @param {Event} e The event object representing the option change interaction.
234
- */
235
- optionChange: (e: Event) => void;
236
- /**
237
- * Handles the logic for processing the selection state of a clicked option element.
238
- * @function processClickedOption
239
- * @param {Element} option The option element that is clicked.
240
- * @param {boolean} [multiple] A Boolean indicating whether multiple options can be selected. Defaults to false.
241
- * Changes the selected state of the passed option and updates the selected options list.
242
- * Checks if the option already has a "selected" attribute, toggles its state,
243
- * and updates the internal selected options.
244
- */
245
- processClickedOption: (option: Element, multiple?: boolean) => void;
246
- /**
247
- * Returns all the options as HTML.
248
- * @returns {NodeList} The options as HTML.
249
- */
250
- getAllOptions(): NodeList;
251
- /**
252
- * Handles changes in the selection for a component, updating internal values, input fields,
253
- * and visual presentation (like chips or slots) as per the given selection options.
254
- * @param {Array|null} options The collection of selected option elements. If null, no options are selected.
255
- * @param {number} length The total number of selected options.
256
- * @returns {void}
257
- */
258
- selectionChanged(options?: any[] | null, length?: number): void;
259
- /**
260
- * Handles the logic for updating selections based on the current selected options,
261
- * updating chips content, and dispatching change events if necessary.
262
- * @param {boolean} [silence] If true, suppresses the dispatch of a custom change event.
263
- * @returns {void} This method does not return a value.
264
- */
265
- selections(silence?: boolean): void;
266
- /**
267
- * Updates the counter element to reflect the current state of selected values relative to the maximum allowed options.
268
- * If the maximum options are selected, the counter element is removed. If it does not already exist and needs to be displayed, it is created.
269
- * @returns {void} Does not return a value.
270
- */
271
- counter(): void;
272
- /**
273
- * Creates and returns a chip element with specified properties and a label.
274
- * @param {object} option The configuration object for the chip. Typically includes properties such as value and textContent to set up the chip's label and data.
275
- * @returns {HTMLElement} The newly created chip element with a label and default properties.
276
- */
277
- getChip(option: object): HTMLElement;
278
- /**
279
- * Handles the removal of a chip element from the DOM and updates the related state.
280
- * @param {Event} e The event object triggered by the chip removal action.
281
- * The target of the event is expected to be the chip element itself.
282
- */
283
- removeChip: (e: Event) => void;
284
- /**
285
- * Generates an HTML option element based on the provided item and mapping.
286
- * @param {object} item The item to generate the option for.
287
- * @param {object} [map] The mapping object that specifies the properties of the item to use for the option's value and text.
288
- * @param {string} [map.value] The property of the item to use for the option's value.
289
- * @param {string} [map.text] The property of the item to use for the option's text.
290
- * @returns {HTMLElement} The generated HTML option element.
291
- */
292
- htmlOption(item: object, map?: {
293
- value?: string;
294
- text?: string;
295
- }): HTMLElement;
296
- /**
297
- * Returns the provided item.
298
- * @param {any} item The item to be returned.
299
- * @returns {any} The same item that was passed as input.
300
- */
301
- htmlSelectedItem(item: any): any;
302
- /**
303
- * Adds a new option to the component.
304
- * @param {object} optionData The data used to create the new option.
305
- * @param {boolean} [silent] Whether the addition should trigger events or not.
306
- * @param {object} [map] Mapping of keys to identify value and text in the optionData.
307
- * @param {string} [map.value] The key in optionData that represents the value of the option.
308
- * @param {string} [map.text] The key in optionData that represents the text of the option.
309
- * @returns {void}
310
- */
311
- addOption(optionData: object, silent?: boolean, map?: {
312
- value?: string;
313
- text?: string;
314
- }): void;
315
- /**
316
- * Adds one or more options to a collection. If the input is an array, it adds each option within the array.
317
- * Otherwise, it adds a single option.
318
- * @param {Array | object} optionsData The data representing the options to be added. It can be a single object or an array of objects.
319
- * @param {boolean} [silent] Optional flag to determine if events or notifications should be suppressed while adding options.
320
- * @param {object} [map] An optional mapping object specifying how to map data properties to value and text for the options.
321
- * @param {string} [map.value] The property in the optionsData that represents the value of the option.
322
- * @param {string} [map.text] The property in the optionsData that represents the text of the option.
323
- * @returns {void}
324
- */
325
- addOptions(optionsData: any[] | object, silent?: boolean, map?: {
326
- value?: string;
327
- text?: string;
328
- }): void;
329
- /**
330
- * Selects an option from the available options within the component.
331
- * @param {string} value The value of the option to be selected.
332
- * @param {boolean} [silent] Determines whether the selection should trigger notification or updates. Defaults to false.
333
- * @returns {void} Does not return a value.
334
- */
335
- selectOption(value: string, silent?: boolean): void;
336
- /**
337
- * Selects multiple options based on the provided values. If a single value is provided, it selects that option.
338
- * If an array of values is provided, it iterates through the array and selects each option.
339
- * @param {any|any[]} values A single value or an array of values to be selected.
340
- * @param {boolean} [silent] Determines whether the selection action should occur silently without triggering other side effects or events.
341
- * @returns {void} This method does not return a value.
342
- */
343
- selectOptions(values: any | any[], silent?: boolean): void;
344
- /**
345
- * Clones and appends an icon with the "check" slot to the specified option element.
346
- * @param {HTMLElement} option The target HTML element to which the cloned "check" icon will be appended.
347
- * @returns {void} This method does not return a value, but it modifies the DOM by appending a cloned "check" icon to the provided option element.
348
- */
349
- optionCheckSlot(option: HTMLElement): void;
350
- /**
351
- * Clears all selected options and resets selections.
352
- * The method ensures that all options are deselected, updates the internal state, validates the selections,
353
- * propagates the validation status, and indicates invalid state if necessary.
354
- * @returns {void} No value is returned by this method.
355
- */
356
- clearSelections(): void;
357
- #private;
358
- }
@@ -1,2 +0,0 @@
1
- import { default as Slider } from './slider.element.js';
2
- export default Slider;