wj-elements 0.1.151 → 0.1.152

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 (232) hide show
  1. package/dist/packages/index.d.ts +104 -0
  2. package/dist/packages/localize/localize.d.ts +17 -0
  3. package/dist/packages/translations/en-gb.d.ts +18 -0
  4. package/dist/packages/translations/sk-sk.d.ts +13 -0
  5. package/dist/packages/utils/animations.d.ts +2 -0
  6. package/dist/packages/utils/date.d.ts +1 -0
  7. package/dist/packages/utils/element-utils.d.ts +46 -0
  8. package/dist/packages/utils/event.d.ts +67 -0
  9. package/dist/packages/utils/localize.d.ts +4 -0
  10. package/dist/packages/utils/permissions-api.d.ts +34 -0
  11. package/dist/packages/utils/utils.d.ts +1 -0
  12. package/dist/packages/utils/wje-import-firefox.d.ts +0 -0
  13. package/dist/packages/utils/wje-import.d.ts +0 -0
  14. package/dist/packages/wje-accordion/accordion.d.ts +2 -0
  15. package/dist/packages/wje-accordion/accordion.element.d.ts +72 -0
  16. package/dist/packages/wje-accordion/accordion.test.d.ts +0 -0
  17. package/dist/packages/wje-accordion-item/accordion-item.d.ts +2 -0
  18. package/dist/packages/wje-accordion-item/accordion-item.element.d.ts +40 -0
  19. package/dist/packages/wje-animation/animation.d.ts +2 -0
  20. package/dist/packages/wje-animation/animation.element.d.ts +158 -0
  21. package/dist/packages/wje-animation/animation.test.d.ts +1 -0
  22. package/dist/packages/wje-aside/aside.d.ts +2 -0
  23. package/dist/packages/wje-aside/aside.element.d.ts +31 -0
  24. package/dist/packages/wje-avatar/avatar.d.ts +2 -0
  25. package/dist/packages/wje-avatar/avatar.element.d.ts +76 -0
  26. package/dist/packages/wje-avatar/avatar.test.d.ts +1 -0
  27. package/dist/packages/wje-avatar/service/service.d.ts +40 -0
  28. package/dist/packages/wje-badge/badge.d.ts +2 -0
  29. package/dist/packages/wje-badge/badge.element.d.ts +35 -0
  30. package/dist/packages/wje-badge/badge.test.d.ts +1 -0
  31. package/dist/packages/wje-breadcrumb/breadcrumb.d.ts +2 -0
  32. package/dist/packages/wje-breadcrumb/breadcrumb.element.d.ts +80 -0
  33. package/dist/packages/wje-breadcrumbs/breadcrumbs.d.ts +2 -0
  34. package/dist/packages/wje-breadcrumbs/breadcrumbs.element.d.ts +97 -0
  35. package/dist/packages/wje-breadcrumbs/breadcrumbs.test.d.ts +1 -0
  36. package/dist/packages/wje-button/button.d.ts +2 -0
  37. package/dist/packages/wje-button/button.element.d.ts +173 -0
  38. package/dist/packages/wje-button/button.test.d.ts +1 -0
  39. package/dist/packages/wje-button-group/button-group.d.ts +2 -0
  40. package/dist/packages/wje-button-group/button-group.element.d.ts +39 -0
  41. package/dist/packages/wje-card/card.d.ts +2 -0
  42. package/dist/packages/wje-card/card.element.d.ts +29 -0
  43. package/dist/packages/wje-card-content/card-content.d.ts +2 -0
  44. package/dist/packages/wje-card-content/card-content.element.d.ts +22 -0
  45. package/dist/packages/wje-card-controls/card-controls.d.ts +2 -0
  46. package/dist/packages/wje-card-controls/card-controls.element.d.ts +23 -0
  47. package/dist/packages/wje-card-header/card-header.d.ts +2 -0
  48. package/dist/packages/wje-card-header/card-header.element.d.ts +22 -0
  49. package/dist/packages/wje-card-subtitle/card-subtitle.d.ts +2 -0
  50. package/dist/packages/wje-card-subtitle/card-subtitle.element.d.ts +30 -0
  51. package/dist/packages/wje-card-title/card-title.d.ts +2 -0
  52. package/dist/packages/wje-card-title/card-title.element.d.ts +32 -0
  53. package/dist/packages/wje-carousel/carousel.d.ts +2 -0
  54. package/dist/packages/wje-carousel/carousel.element.d.ts +146 -0
  55. package/dist/packages/wje-carousel-item/carousel-item.d.ts +2 -0
  56. package/dist/packages/wje-carousel-item/carousel-item.element.d.ts +38 -0
  57. package/dist/packages/wje-checkbox/checkbox.d.ts +2 -0
  58. package/dist/packages/wje-checkbox/checkbox.element.d.ts +171 -0
  59. package/dist/packages/wje-chip/chip.d.ts +2 -0
  60. package/dist/packages/wje-chip/chip.element.d.ts +30 -0
  61. package/dist/packages/wje-col/col.d.ts +2 -0
  62. package/dist/packages/wje-col/col.element.d.ts +16 -0
  63. package/dist/packages/wje-color-picker/color-picker.d.ts +2 -0
  64. package/dist/packages/wje-color-picker/color-picker.element.d.ts +187 -0
  65. package/dist/packages/wje-color-picker/color-picker.test.d.ts +1 -0
  66. package/dist/packages/wje-container/container.d.ts +2 -0
  67. package/dist/packages/wje-container/container.element.d.ts +31 -0
  68. package/dist/packages/wje-copy-button/copy-button.d.ts +2 -0
  69. package/dist/packages/wje-copy-button/copy-button.element.d.ts +89 -0
  70. package/dist/packages/wje-copy-button/service/service.d.ts +12 -0
  71. package/dist/packages/wje-dialog/dialog.d.ts +2 -0
  72. package/dist/packages/wje-dialog/dialog.element.d.ts +116 -0
  73. package/dist/packages/wje-divider/divider.d.ts +2 -0
  74. package/dist/packages/wje-divider/divider.element.d.ts +32 -0
  75. package/dist/packages/wje-dropdown/dropdown.d.ts +2 -0
  76. package/dist/packages/wje-dropdown/dropdown.element.d.ts +85 -0
  77. package/dist/packages/wje-element/element.d.ts +316 -0
  78. package/dist/packages/wje-element/service/universal-service.d.ts +18 -0
  79. package/dist/packages/wje-file-upload/file-upload.d.ts +2 -0
  80. package/dist/packages/wje-file-upload/file-upload.element.d.ts +191 -0
  81. package/dist/packages/wje-file-upload/service/service.d.ts +70 -0
  82. package/dist/packages/wje-file-upload-item/file-upload-item.d.ts +2 -0
  83. package/dist/packages/wje-file-upload-item/file-upload-item.element.d.ts +66 -0
  84. package/dist/packages/wje-footer/footer.d.ts +2 -0
  85. package/dist/packages/wje-footer/footer.element.d.ts +28 -0
  86. package/dist/packages/wje-form/form.d.ts +2 -0
  87. package/dist/packages/wje-form/form.element.d.ts +28 -0
  88. package/dist/packages/wje-format-digital/format-digital.d.ts +2 -0
  89. package/dist/packages/wje-format-digital/format-digital.element.d.ts +87 -0
  90. package/dist/packages/wje-format-digital/format-digital.test.d.ts +1 -0
  91. package/dist/packages/wje-grid/grid.d.ts +2 -0
  92. package/dist/packages/wje-grid/grid.element.d.ts +26 -0
  93. package/dist/packages/wje-header/header.d.ts +2 -0
  94. package/dist/packages/wje-header/header.element.d.ts +35 -0
  95. package/dist/packages/wje-icon/icon.d.ts +2 -0
  96. package/dist/packages/wje-icon/icon.element.d.ts +40 -0
  97. package/dist/packages/wje-icon/service/service.d.ts +11 -0
  98. package/dist/packages/wje-icon-picker/icon-picker.d.ts +2 -0
  99. package/dist/packages/wje-icon-picker/icon-picker.element.d.ts +197 -0
  100. package/dist/packages/wje-img/img.d.ts +2 -0
  101. package/dist/packages/wje-img/img.element.d.ts +117 -0
  102. package/dist/packages/wje-img-comparer/img-comparer.d.ts +2 -0
  103. package/dist/packages/wje-img-comparer/img-comparer.element.d.ts +60 -0
  104. package/dist/packages/wje-img-comparer/service/service.d.ts +1 -0
  105. package/dist/packages/wje-infinite-scroll/infinite-scroll.d.ts +2 -0
  106. package/dist/packages/wje-infinite-scroll/infinite-scroll.element.d.ts +173 -0
  107. package/dist/packages/wje-input/input.d.ts +2 -0
  108. package/dist/packages/wje-input/input.element.d.ts +204 -0
  109. package/dist/packages/wje-input-file/input-file.d.ts +2 -0
  110. package/dist/packages/wje-input-file/input-file.element.d.ts +50 -0
  111. package/dist/packages/wje-item/item.d.ts +2 -0
  112. package/dist/packages/wje-item/item.element.d.ts +68 -0
  113. package/dist/packages/wje-kanban/kanban.d.ts +2 -0
  114. package/dist/packages/wje-kanban/kanban.element.d.ts +183 -0
  115. package/dist/packages/wje-label/label.d.ts +2 -0
  116. package/dist/packages/wje-label/label.element.d.ts +34 -0
  117. package/dist/packages/wje-level-indicator/level-indicator.d.ts +2 -0
  118. package/dist/packages/wje-level-indicator/level-indicator.element.d.ts +91 -0
  119. package/dist/packages/wje-list/list.d.ts +2 -0
  120. package/dist/packages/wje-list/list.element.d.ts +31 -0
  121. package/dist/packages/wje-main/main.d.ts +2 -0
  122. package/dist/packages/wje-main/main.element.d.ts +30 -0
  123. package/dist/packages/wje-masonry/masonry.d.ts +2 -0
  124. package/dist/packages/wje-masonry/masonry.element.d.ts +114 -0
  125. package/dist/packages/wje-masonry/service/service.d.ts +32 -0
  126. package/dist/packages/wje-menu/menu.d.ts +2 -0
  127. package/dist/packages/wje-menu/menu.element.d.ts +47 -0
  128. package/dist/packages/wje-menu-button/menu-button.d.ts +2 -0
  129. package/dist/packages/wje-menu-button/menu-button.element.d.ts +34 -0
  130. package/dist/packages/wje-menu-item/menu-item.d.ts +2 -0
  131. package/dist/packages/wje-menu-item/menu-item.element.d.ts +139 -0
  132. package/dist/packages/wje-menu-label/menu-label.d.ts +2 -0
  133. package/dist/packages/wje-menu-label/menu-label.element.d.ts +39 -0
  134. package/dist/packages/wje-option/option.d.ts +2 -0
  135. package/dist/packages/wje-option/option.element.d.ts +59 -0
  136. package/dist/packages/wje-options/options.d.ts +2 -0
  137. package/dist/packages/wje-options/options.element.d.ts +183 -0
  138. package/dist/packages/wje-orgchart/orgchart.d.ts +2 -0
  139. package/dist/packages/wje-orgchart/orgchart.element.d.ts +24 -0
  140. package/dist/packages/wje-orgchart-group/orgchart-group.d.ts +2 -0
  141. package/dist/packages/wje-orgchart-group/orgchart-group.element.d.ts +28 -0
  142. package/dist/packages/wje-orgchart-item/orgchart-item.d.ts +2 -0
  143. package/dist/packages/wje-orgchart-item/orgchart-item.element.d.ts +49 -0
  144. package/dist/packages/wje-pagination/pagination.d.ts +2 -0
  145. package/dist/packages/wje-pagination/pagination.element.d.ts +166 -0
  146. package/dist/packages/wje-pagination/pagination.test.d.ts +1 -0
  147. package/dist/packages/wje-pagination/service/service.d.ts +9 -0
  148. package/dist/packages/wje-panel/panel.d.ts +2 -0
  149. package/dist/packages/wje-panel/panel.element.d.ts +34 -0
  150. package/dist/packages/wje-popup/popup.d.ts +2 -0
  151. package/dist/packages/wje-popup/popup.element.d.ts +93 -0
  152. package/dist/packages/wje-progress-bar/progress-bar.d.ts +2 -0
  153. package/dist/packages/wje-progress-bar/progress-bar.element.d.ts +96 -0
  154. package/dist/packages/wje-qr-code/qr-code.d.ts +2 -0
  155. package/dist/packages/wje-qr-code/qr-code.element.d.ts +33 -0
  156. package/dist/packages/wje-radio/radio.d.ts +2 -0
  157. package/dist/packages/wje-radio/radio.element.d.ts +53 -0
  158. package/dist/packages/wje-radio-group/radio-group.d.ts +2 -0
  159. package/dist/packages/wje-radio-group/radio-group.element.d.ts +137 -0
  160. package/dist/packages/wje-rate/rate.d.ts +2 -0
  161. package/dist/packages/wje-rate/rate.element.d.ts +156 -0
  162. package/dist/packages/wje-relative-time/relative-time.d.ts +2 -0
  163. package/dist/packages/wje-relative-time/relative-time.element.d.ts +55 -0
  164. package/dist/packages/wje-relative-time/relative-time.test.d.ts +1 -0
  165. package/dist/packages/wje-reorder/reorder.d.ts +2 -0
  166. package/dist/packages/wje-reorder/reorder.element.d.ts +119 -0
  167. package/dist/packages/wje-reorder-dropzone/reorder-dropzone.d.ts +2 -0
  168. package/dist/packages/wje-reorder-dropzone/reorder-dropzone.element.d.ts +23 -0
  169. package/dist/packages/wje-reorder-handle/reorder-handle.d.ts +2 -0
  170. package/dist/packages/wje-reorder-handle/reorder-handle.element.d.ts +75 -0
  171. package/dist/packages/wje-reorder-item/reorder-item.d.ts +2 -0
  172. package/dist/packages/wje-reorder-item/reorder-item.element.d.ts +24 -0
  173. package/dist/packages/wje-route/route.d.ts +2 -0
  174. package/dist/packages/wje-route/route.element.d.ts +22 -0
  175. package/dist/packages/wje-router/router.d.ts +2 -0
  176. package/dist/packages/wje-router/router.element.d.ts +39 -0
  177. package/dist/packages/wje-router-link/router-link.d.ts +2 -0
  178. package/dist/packages/wje-router-link/router-link.element.d.ts +31 -0
  179. package/dist/packages/wje-router-outlet/router-outlet.d.ts +2 -0
  180. package/dist/packages/wje-router-outlet/router-outlet.element.d.ts +15 -0
  181. package/dist/packages/wje-row/row.d.ts +2 -0
  182. package/dist/packages/wje-row/row.element.d.ts +23 -0
  183. package/dist/packages/wje-select/select.d.ts +2 -0
  184. package/dist/packages/wje-select/select.element.d.ts +315 -0
  185. package/dist/packages/wje-slider/slider.d.ts +2 -0
  186. package/dist/packages/wje-slider/slider.element.d.ts +103 -0
  187. package/dist/packages/wje-split-view/service/service.d.ts +1 -0
  188. package/dist/packages/wje-split-view/split-view.d.ts +2 -0
  189. package/dist/packages/wje-split-view/split-view.element.d.ts +66 -0
  190. package/dist/packages/wje-status/status.d.ts +2 -0
  191. package/dist/packages/wje-status/status.element.d.ts +26 -0
  192. package/dist/packages/wje-step/step.d.ts +2 -0
  193. package/dist/packages/wje-step/step.element.d.ts +23 -0
  194. package/dist/packages/wje-stepper/stepper.d.ts +2 -0
  195. package/dist/packages/wje-stepper/stepper.element.d.ts +78 -0
  196. package/dist/packages/wje-store/default-store-actions.d.ts +25 -0
  197. package/dist/packages/wje-store/pubsub.d.ts +21 -0
  198. package/dist/packages/wje-store/store.d.ts +153 -0
  199. package/dist/packages/wje-tab/tab.d.ts +2 -0
  200. package/dist/packages/wje-tab/tab.element.d.ts +41 -0
  201. package/dist/packages/wje-tab-group/tab-group.d.ts +2 -0
  202. package/dist/packages/wje-tab-group/tab-group.element.d.ts +67 -0
  203. package/dist/packages/wje-tab-panel/tab-panel.d.ts +2 -0
  204. package/dist/packages/wje-tab-panel/tab-panel.element.d.ts +23 -0
  205. package/dist/packages/wje-textarea/textarea.d.ts +2 -0
  206. package/dist/packages/wje-textarea/textarea.element.d.ts +176 -0
  207. package/dist/packages/wje-thumbnail/thumbnail.d.ts +2 -0
  208. package/dist/packages/wje-thumbnail/thumbnail.element.d.ts +31 -0
  209. package/dist/packages/wje-timeline/timeline.d.ts +2 -0
  210. package/dist/packages/wje-timeline/timeline.element.d.ts +25 -0
  211. package/dist/packages/wje-timeline-item/timeline-item.d.ts +2 -0
  212. package/dist/packages/wje-timeline-item/timeline-item.element.d.ts +27 -0
  213. package/dist/packages/wje-toast/toast.d.ts +2 -0
  214. package/dist/packages/wje-toast/toast.element.d.ts +173 -0
  215. package/dist/packages/wje-toast/toast.test.d.ts +1 -0
  216. package/dist/packages/wje-toggle/toggle.d.ts +2 -0
  217. package/dist/packages/wje-toggle/toggle.element.d.ts +65 -0
  218. package/dist/packages/wje-toolbar/toolbar.d.ts +2 -0
  219. package/dist/packages/wje-toolbar/toolbar.element.d.ts +39 -0
  220. package/dist/packages/wje-toolbar-action/toolbar-action.d.ts +2 -0
  221. package/dist/packages/wje-toolbar-action/toolbar-action.element.d.ts +35 -0
  222. package/dist/packages/wje-tooltip/tooltip.d.ts +2 -0
  223. package/dist/packages/wje-tooltip/tooltip.element.d.ts +71 -0
  224. package/dist/packages/wje-tree/tree.d.ts +2 -0
  225. package/dist/packages/wje-tree/tree.element.d.ts +104 -0
  226. package/dist/packages/wje-tree/tree.test.d.ts +1 -0
  227. package/dist/packages/wje-tree-item/tree-item.d.ts +2 -0
  228. package/dist/packages/wje-tree-item/tree-item.element.d.ts +155 -0
  229. package/dist/packages/wje-tree-item/tree-item.test.d.ts +1 -0
  230. package/dist/packages/wje-visually-hidden/visually-hidden.d.ts +2 -0
  231. package/dist/packages/wje-visually-hidden/visually-hidden.element.d.ts +29 -0
  232. package/package.json +1 -1
@@ -0,0 +1,183 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ import { default as Checkbox } from '../wje-checkbox/checkbox.js';
3
+ import { default as MenuItem } from '../wje-menu-item/menu-item.js';
4
+ /**
5
+ * `Kanban` is a custom web component that represents a Kanban board with draggable columns and cards.
6
+ * @summary This element represents a Kanban board.
7
+ * @documentation https://elements.webjet.sk/components/kanban
8
+ * @status stable
9
+ * @augments {WJElement}
10
+ * @slot - The default slot for the Kanban board.
11
+ * @csspart native - Styles the native part of the Kanban board.
12
+ * @csspart pool - Styles the pool of the Kanban board.
13
+ * @tag wje-kanban
14
+ */
15
+ export default class Kanban extends WJElement {
16
+ /**
17
+ * Returns the CSS styles for the component.
18
+ * @static
19
+ * @returns {CSSStyleSheet}
20
+ */
21
+ static get cssStyleSheet(): CSSStyleSheet;
22
+ /**
23
+ * Returns the list of attributes to observe for changes.
24
+ * @static
25
+ * @returns {Array<string>}
26
+ */
27
+ static get observedAttributes(): string[];
28
+ totalPages: number;
29
+ isLoading: any[];
30
+ _response: {};
31
+ isDragging: boolean;
32
+ selectedCards: any[];
33
+ /**
34
+ * Dependencies of the Option component.
35
+ */
36
+ dependencies: {
37
+ 'wje-checkbox': typeof Checkbox;
38
+ 'wje-menu-item': typeof MenuItem;
39
+ };
40
+ /**
41
+ * Sets the URL for fetching data.
42
+ * @param value {string}
43
+ */
44
+ set response(value: any);
45
+ /**
46
+ * Gets the URL for fetching data.
47
+ * @returns {*|{}|{}}
48
+ */
49
+ get response(): any;
50
+ /**
51
+ * Sets the URL for fetching data.
52
+ * @param value {array}
53
+ */
54
+ set selectedItems(value: any[]);
55
+ /**
56
+ * Gets the URL for fetching data.
57
+ * @returns {Array}
58
+ */
59
+ get selectedItems(): any[];
60
+ _selectedItems: any[];
61
+ /**
62
+ * Prepares the component before drawing.
63
+ * @param {object} context The context for drawing.
64
+ * @param {object} store The store for drawing.
65
+ * @param {object} params The parameters for drawing.
66
+ */
67
+ beforeDraw(context: object, store: object, params: object): Promise<void>;
68
+ /**
69
+ * Draws the component after it has been prepared.
70
+ * @returns {DocumentFragment}
71
+ */
72
+ draw(): DocumentFragment;
73
+ /**
74
+ * Called after the component has been drawn.
75
+ */
76
+ afterDraw(): void;
77
+ ui: {
78
+ elBoard: HTMLElement;
79
+ elTotalCardCount: HTMLElement;
80
+ elCardPlaceholder: any;
81
+ };
82
+ /**
83
+ * Iterates over a list of items, generates an HTML card for each, and appends it to the specified pool's content area.
84
+ * @param {HTMLElement} pool The container element where the cards will be appended. It should contain an element with the class `.pool-content`.
85
+ * @param {Array} items An array of items used to generate HTML cards.
86
+ */
87
+ customForeach: (pool: HTMLElement, items: any[]) => void;
88
+ /**
89
+ * Sets up the drag and drop events for the component.
90
+ */
91
+ setupDragAndDropEvents(): void;
92
+ draggedElementWidth: any;
93
+ draggedElementHeight: any;
94
+ /**
95
+ * Sets up the select all cards event for the component.
96
+ */
97
+ setupSelectAllCardsEvent(): void;
98
+ /**
99
+ * Sets up the menu item click events for the component.
100
+ */
101
+ setupMenuItemClickEvents(): void;
102
+ /**
103
+ * Handles the menu item click event.
104
+ * @param e
105
+ */
106
+ menuItemClickHandler: (e: any) => void;
107
+ /**
108
+ * Updates the selected cards in the pool.
109
+ * @param pool {HTMLElement}
110
+ * @param isChecked {boolean}
111
+ */
112
+ updateSelectedCards(pool: HTMLElement, isChecked: boolean): void;
113
+ /**
114
+ * Updates the column item count.
115
+ */
116
+ updateColumnItemCount: () => void;
117
+ /**
118
+ * Handles the pool action.
119
+ * @param action {string}
120
+ * @param pool {HTMLElement}
121
+ */
122
+ handlePoolAction(action: string, pool: HTMLElement): void;
123
+ /**
124
+ * Moves the pool in the specified direction.
125
+ * @param pool {HTMLElement}
126
+ * @param direction {string}
127
+ */
128
+ movePool(pool: HTMLElement, direction: string): void;
129
+ /**
130
+ * Renames the pool.
131
+ * @param pool {HTMLElement}
132
+ */
133
+ renamePool(pool: HTMLElement): void;
134
+ /**
135
+ * Gets the card placeholder.
136
+ * @returns {null|*}
137
+ */
138
+ getCardPlaceholder(): null | any;
139
+ /**
140
+ * Adds a live event listener to the component.
141
+ * @param eventType {string}
142
+ * @param selector {string}
143
+ * @param callback {function}
144
+ */
145
+ live(eventType: string, selector: string, callback: Function): void;
146
+ /**
147
+ * Sets the selected cards.
148
+ * @param isChecked {boolean}
149
+ * @param card {HTMLElement}
150
+ */
151
+ setSelectedCards(isChecked: boolean, card: HTMLElement): void;
152
+ /**
153
+ * Sets the selected items.
154
+ */
155
+ setSelectedItems(): void;
156
+ /**
157
+ * Fetches the pages.
158
+ * @param page
159
+ * @returns {Promise<any>}
160
+ */
161
+ getPages(page?: number): Promise<any>;
162
+ /**
163
+ * Gets the pool.
164
+ * @param data {Array}
165
+ * @param poolName {string}
166
+ * @returns {*}
167
+ */
168
+ getPool: (data: any[], poolName: string) => any;
169
+ /**
170
+ * Returns the HTML for the pool.
171
+ * @param title {string}
172
+ * @param countItems {number}
173
+ * @returns {Element}
174
+ */
175
+ htmlPool: (title: string, countItems: number) => Element;
176
+ /**
177
+ * Returns the HTML for the card.
178
+ * @param item {Object}
179
+ * @returns {Element}
180
+ */
181
+ htmlCard: (item: any) => Element;
182
+ dispatchEvent(event: any): boolean;
183
+ }
@@ -0,0 +1,2 @@
1
+ import { default as Label } from './label.element.js';
2
+ export default Label;
@@ -0,0 +1,34 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * `Label` is a custom web component that represents a label.
4
+ * It extends from `WJElement`.
5
+ * @summary This element represents a label.
6
+ * @documentation https://elements.webjet.sk/components/label
7
+ * @status stable
8
+ * @augments {WJElement}
9
+ * @csspart label - The label part of the component.
10
+ * @slot - The default slot for the label.
11
+ * @cssproperty [--wje-label-color=black] - Defines the text color of the label. This property determines the color of the label's text. Accepts any valid CSS color value (e.g., named colors like `black`, `red`, or values like `#000000`, `rgb(0, 0, 0)`).
12
+ * @cssproperty [--wje-label-font-size=16px] - Specifies the font size of the label. This property sets the size of the label's text. Accepts any valid CSS length unit (e.g., `px`, `em`, `rem`). The default value is `16px`, which provides optimal readability in most designs.
13
+ * // @fires wje-label:change - Event fired when the label is changed.
14
+ * @tag wje-label
15
+ */
16
+ export default class Label extends WJElement {
17
+ /**
18
+ * Returns the CSS styles for the component.
19
+ * @static
20
+ * @returns {CSSStyleSheet}
21
+ */
22
+ static get cssStyleSheet(): CSSStyleSheet;
23
+ /**
24
+ * Returns the list of attributes to observe for changes.
25
+ * @static
26
+ * @returns {Array<string>}
27
+ */
28
+ static get observedAttributes(): string[];
29
+ /**
30
+ * Draws the component.
31
+ * @returns {DocumentFragment}
32
+ */
33
+ draw(): DocumentFragment;
34
+ }
@@ -0,0 +1,2 @@
1
+ import { default as LevelIndicator } from './level-indicator.element.js';
2
+ export default LevelIndicator;
@@ -0,0 +1,91 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * @summary LevelIndicator is a custom web component that extends WJElement.
4
+ * @documentation https://elements.webjet.sk/components/LevelIndicator
5
+ * @status stable
6
+ * @augments WJElement
7
+ * @csspart - Styles the element.
8
+ * @tag wje-level-indicator
9
+ * @example
10
+ * <wje-level-indicator></wje-level-indicator>
11
+ */
12
+ export default class LevelIndicator extends WJElement {
13
+ /**
14
+ * Returns the CSS styles for the component.
15
+ * @static
16
+ * @returns {CSSStyleSheet}
17
+ */
18
+ static get cssStyleSheet(): CSSStyleSheet;
19
+ /**
20
+ * Sets the level attribute for an instance.
21
+ * @param {string} value The value to set for the 'level' attribute.
22
+ */
23
+ set level(value: number);
24
+ /**
25
+ * Retrieves the level attribute of an element, with validation to ensure
26
+ * it is within the range of 0 to 3. If the level attribute is not present,
27
+ * the default value is 1. The result is parsed as an integer and constrained
28
+ * to the valid range.
29
+ * @returns {number} The normalized level value, which is an integer between 0 and 3.
30
+ */
31
+ get level(): number;
32
+ /**
33
+ * Sets the value of the "bars" attribute.
34
+ * @param {string} value The value to set for the "bars" attribute.
35
+ */
36
+ set bars(value: number);
37
+ /**
38
+ * Retrieves the value of the "bars" attribute, parses it as an integer,
39
+ * and ensures it is at least 1. If the attribute is not set, defaults to 3.
40
+ * @returns {number} The parsed integer value of the "bars" attribute or the default value of 3, constrained to a minimum of 1.
41
+ */
42
+ get bars(): number;
43
+ /**
44
+ * Sets the 'colorize' attribute on the element. If the provided value is truthy,
45
+ * the attribute will be set. If the value is falsy, the attribute will be removed.
46
+ * @param {boolean} value A boolean determining whether to set or remove the 'colorize' attribute.
47
+ */
48
+ set colorize(value: boolean);
49
+ /**
50
+ * Determines whether the element has the "colorize" attribute set.
51
+ * @returns {boolean} Returns true if the "colorize" attribute is present, otherwise false.
52
+ */
53
+ get colorize(): boolean;
54
+ /**
55
+ * Sets the 'reverse' attribute on the element. If the provided value is truthy, the attribute is added;
56
+ * otherwise, the attribute is removed.
57
+ * @param {boolean} value The value determining whether to set or remove the 'reverse' attribute.
58
+ */
59
+ set reverse(value: boolean);
60
+ /**
61
+ * Getter method to check if the "reverse" attribute is present on the element.
62
+ * @returns {boolean} Returns true if the "reverse" attribute is set; otherwise, returns false.
63
+ */
64
+ get reverse(): boolean;
65
+ /**
66
+ * Creates a document fragment, appends a new slot element to it, and returns the fragment.
67
+ * @returns {DocumentFragment} A document fragment containing a slot element.
68
+ */
69
+ draw(): DocumentFragment;
70
+ barsArray: any[];
71
+ native: HTMLDivElement;
72
+ /**
73
+ * Executes any additional operations or updates required after the drawing process is completed.
74
+ * @returns {void} This method does not return any value.
75
+ */
76
+ afterDraw(): void;
77
+ /**
78
+ * Updates the class of each bar element based on the specified level.
79
+ * @param {number} level The threshold level determining how many bars should be active.
80
+ * @param {Array} bars An array of bar elements to be updated.
81
+ * @returns {void} This method does not return a value.
82
+ */
83
+ updateBars(level: number, bars: any[]): void;
84
+ /**
85
+ * Determines the color indicator based on the given level and bars.
86
+ * @param {number} level The current value level used to calculate the ratio.
87
+ * @param {number} bars The maximum value that level can reach.
88
+ * @returns {string | undefined} A string representing the color code based on the ratio, or undefined if colorize is disabled.
89
+ */
90
+ getColor(level: number, bars: number): string | undefined;
91
+ }
@@ -0,0 +1,2 @@
1
+ import { default as List } from './list.element.js';
2
+ export default List;
@@ -0,0 +1,31 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * `List` is a custom web component that represents a list.
4
+ * It extends from `WJElement`.
5
+ * @summary This element represents a list.
6
+ * @documentation https://elements.webjet.sk/components/list
7
+ * @status stable
8
+ * @augments {WJElement}
9
+ * @slot - The default slot for the list.
10
+ * @cssproperty [--wje-list-inset-padding=1rem] - The padding of the list when it is inset.
11
+ * @cssproperty [--wje-list-border-radius=8px] - The border radius of the list. Accepts any valid CSS length.
12
+ * @cssproperty [--wje-list-background=var(--wje-background)] - The background of the list. Accepts any valid CSS color value.
13
+ * @tag wje-list
14
+ */
15
+ export default class List extends WJElement {
16
+ /**
17
+ * Returns the CSS styles for the component.
18
+ * @static
19
+ * @returns {CSSStyleSheet}
20
+ */
21
+ static get cssStyleSheet(): CSSStyleSheet;
22
+ /**
23
+ * Returns the list of attributes to observe for changes.
24
+ * @returns {DocumentFragment}
25
+ */
26
+ draw(): DocumentFragment;
27
+ /**
28
+ * Called after the component has been drawn.
29
+ */
30
+ afterDraw(): void;
31
+ }
@@ -0,0 +1,2 @@
1
+ import { default as Main } from './main.element.js';
2
+ export default Main;
@@ -0,0 +1,30 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * `Main` is a custom web component that represents a main section.
4
+ * It extends from `WJElement`.
5
+ * @summary This element represents a main section.
6
+ * @documentation https://elements.webjet.sk/components/main
7
+ * @status stable
8
+ * @augments {WJElement}
9
+ * @slot - The default slot for the main section.
10
+ * @tag wje-main
11
+ */
12
+ export default class Main extends WJElement {
13
+ /**
14
+ * Returns the CSS styles for the component.
15
+ * @static
16
+ * @returns {CSSStyleSheet}
17
+ */
18
+ static get cssStyleSheet(): CSSStyleSheet;
19
+ /**
20
+ * Returns the list of attributes to observe for changes.
21
+ * @static
22
+ * @returns {Array<string>}
23
+ */
24
+ static get observedAttributes(): string[];
25
+ /**
26
+ * Draws the component for the main section.
27
+ * @returns {DocumentFragment}
28
+ */
29
+ draw(): DocumentFragment;
30
+ }
@@ -0,0 +1,2 @@
1
+ import { default as Masonry } from './masonry.element.js';
2
+ export default Masonry;
@@ -0,0 +1,114 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * `Masonry` is a custom web component that represents a masonry layout.
4
+ * It extends from `WJElement`.
5
+ * @summary This element represents a masonry layout.
6
+ * @documentation https://elements.webjet.sk/components/masonry
7
+ * @status stable
8
+ * @augments {WJElement}
9
+ * @csspart native - The native part of the masonry layout.
10
+ * @csspart column - The individual columns in the masonry layout.
11
+ * @slot - The default slot for the masonry layout.
12
+ * @cssproperty [--wje-masonry-gap=1rem] - The gap between items in the masonry layout. Accepts any valid CSS length. Default is 1rem.
13
+ * @cssproperty [--wje-masonry-layout-col-count=1] - The count column in the masonry layout. Accepts any valid CSS length.
14
+ * @tag wje-masonry
15
+ */
16
+ export default class Masonry extends WJElement {
17
+ /**
18
+ * Getter for the cssStyleSheet property.
19
+ * @static
20
+ * @returns {CSSStyleSheet} The CSS style sheet for the masonry layout.
21
+ */
22
+ static get cssStyleSheet(): CSSStyleSheet;
23
+ /**
24
+ * Getter for the observedAttributes property.
25
+ * @returns {Array} An array of the observed attributes.
26
+ */
27
+ static get observedAttributes(): any[];
28
+ debounceId: string;
29
+ ro: any;
30
+ currentRequestAnimationFrameCallback: number;
31
+ unsetSlot: HTMLSlotElement;
32
+ /**
33
+ * Setter for the maxColWidth property.
34
+ * @param {number} value The maximum column width.
35
+ */
36
+ set maxColWidth(value: number);
37
+ /**
38
+ * Getter for the maxColWidth property.
39
+ * @returns {number} The maximum column width.
40
+ */
41
+ get maxColWidth(): number;
42
+ /**
43
+ * Setter for the cols property.
44
+ * @param {number} value The number of columns.
45
+ */
46
+ set cols(value: number);
47
+ /**
48
+ * Getter for the cols property.
49
+ * @returns {number} The number of columns.
50
+ */
51
+ get cols(): number;
52
+ /**
53
+ * Setter for the gap property.
54
+ * @param {number} value The gap between columns.
55
+ */
56
+ set gap(value: number);
57
+ /**
58
+ * Getter for the gap property.
59
+ * @returns {number} The gap between columns.
60
+ */
61
+ get gap(): number;
62
+ /**
63
+ * Setter for the debounce property.
64
+ * @param {number} value The debounce time.
65
+ */
66
+ set debounce(value: number);
67
+ /**
68
+ * Getter for the debounce property.
69
+ * @returns {number} The debounce time.
70
+ */
71
+ get debounce(): number;
72
+ /**
73
+ * Getter for the columns property.
74
+ * @returns {Array} An array of all the columns.
75
+ */
76
+ get columns(): any[];
77
+ /**
78
+ * Callback for when an attribute changes.
79
+ */
80
+ attributeChangedCallback(name: any, old: any, newName: any): void;
81
+ /**
82
+ * Draws the element for the masonry layout.
83
+ * @returns {DocumentFragment} The drawn element.
84
+ */
85
+ draw(): DocumentFragment;
86
+ native: HTMLDivElement;
87
+ /**
88
+ * Called after the element is drawn.
89
+ */
90
+ afterDraw(): void;
91
+ /**
92
+ * Called when the slot changes.
93
+ */
94
+ onSlotChange: () => void;
95
+ /**
96
+ * Called when the window resizes.
97
+ * @param {Array} entries The entries to use.
98
+ */
99
+ onResize: (entries: any[]) => void;
100
+ /**
101
+ * Renders the columns.
102
+ * @param {number} colCount The number of columns to render.
103
+ */
104
+ renderCols(colCount: number): void;
105
+ /**
106
+ * Schedules a layout.
107
+ * @param {number} ms The number of milliseconds to wait before laying out.
108
+ */
109
+ scheduleLayout(ms?: number): void;
110
+ /**
111
+ * Lays out the element.
112
+ */
113
+ layout: () => void;
114
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Returns a number attribute from an element.
3
+ * @param $elem
4
+ * @param name
5
+ * @param defaultValue
6
+ * @returns {string|number}
7
+ */
8
+ export function getNumberAttribute($elem: any, name: any, defaultValue: any): string | number;
9
+ /**
10
+ * Returns the amount of cols that the masonry grid should have.
11
+ * @param totalWidth
12
+ * @param cols
13
+ * @param maxColWidth
14
+ */
15
+ export function getColCount(totalWidth: any, cols: any, maxColWidth: any): any;
16
+ /**
17
+ * Debounces a function.
18
+ * @param cb
19
+ * @param ms
20
+ * @param id
21
+ */
22
+ export function debounce(cb: any, ms: any, id: any): void;
23
+ /**
24
+ * Returns the index of the column with the smallest height.
25
+ * @param colHeights
26
+ */
27
+ export function findSmallestColIndex(colHeights: any): number;
28
+ export const DEFAULT_MAX_COL_WIDTH: 500;
29
+ export const DEFAULT_DEBOUNCE_MS: 300;
30
+ export const COL_COUNT_CSS_VAR_NAME: "--wje-masonry-layout-col-count";
31
+ export const GAP_CSS_VAR_NAME: "--wje-masonry-layout-gap";
32
+ export const ELEMENT_NODE_TYPE: 1;
@@ -0,0 +1,2 @@
1
+ import { default as Menu } from './menu.element.js';
2
+ export default Menu;
@@ -0,0 +1,47 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * `Menu` is a custom web component that represents a menu.
4
+ * It extends from `WJElement`.
5
+ * @summary This element represents a menu.
6
+ * @documentation https://elements.webjet.sk/components/menu
7
+ * @status stable
8
+ * @augments {WJElement}
9
+ * @csspart native - The native part of the menu.
10
+ * @slot - The default slot for the menu.
11
+ * @cssproperty [--wje-menu-background=var(--wje-background)] - Defines the background color of the menu. Accepts any valid CSS color value, such as `#ffffff`, `rgb(255, 255, 255)`, or CSS variables.
12
+ * @cssproperty [--wje-menu-border-width=1px] - Specifies the width of the menu's border. Accepts any valid CSS length value (e.g., `px`, `em`, `%`).
13
+ * @cssproperty [--wje-menu-border-style=solid] - Sets the style of the menu's border. Common values include `solid`, `dashed`, `dotted`, etc.
14
+ * @cssproperty [--wje-menu-border-color=var(--wje-border-color)] - Defines the color of the menu's border. Accepts any valid CSS color value.
15
+ * @cssproperty [--wje-menu-border-radius=var(--wje-border-radius-small)] - Determines the radius of the menu's corners, creating rounded edges. Accepts any valid CSS length value (e.g., `px`, `%`).
16
+ * @cssproperty [--wje-menu-padding-top=.5rem] - Specifies the top padding inside the menu. Accepts any valid CSS length value.
17
+ * @cssproperty [--wje-menu-padding-bottom=.5rem] - Specifies the bottom padding inside the menu. Accepts any valid CSS length value.
18
+ * @cssproperty [--wje-menu-padding-inline=0] - Sets the horizontal (left and right) padding inside the menu. Accepts any valid CSS length value.
19
+ * @cssproperty [--wje-menu-margin-top=0] - Defines the top margin outside the menu. Accepts any valid CSS length value.
20
+ * @cssproperty [--wje-menu-margin-bottom=0] - Defines the bottom margin outside the menu. Accepts any valid CSS length value.
21
+ * @cssproperty [--wje-menu-margin-inline=0] - Specifies the horizontal (left and right) margin outside the menu. Accepts any valid CSS length value.
22
+ * @cssproperty [--wje-menu-collapse-width=65px] - Sets the width of the menu when it is collapsed. This property is typically used to define the reduced size of the menu in collapsed state. Accepts any valid CSS length value.
23
+ * @tag wje-menu
24
+ */
25
+ export default class Menu extends WJElement {
26
+ /**
27
+ * Returns the CSS styles for the component.
28
+ * @static
29
+ * @returns {CSSStyleSheet}
30
+ */
31
+ static get cssStyleSheet(): CSSStyleSheet;
32
+ /**
33
+ * Returns the list of attributes to observe for changes.
34
+ * @static
35
+ * @returns {Array<string>}
36
+ */
37
+ static get observedAttributes(): string[];
38
+ /**
39
+ * Draws the component for the menu.
40
+ * @returns {DocumentFragment}
41
+ */
42
+ draw(): DocumentFragment;
43
+ /**
44
+ * Refreshes the component after drawing.
45
+ */
46
+ afterDraw(): void;
47
+ }
@@ -0,0 +1,2 @@
1
+ import { default as MenuButton } from './menu-button.element.js';
2
+ export default MenuButton;
@@ -0,0 +1,34 @@
1
+ import { default as WJElement } from '../wje-element/element.js';
2
+ /**
3
+ * `MenuButton` is a custom web component that represents a menu button.
4
+ * @summary This element represents a menu button.
5
+ * @documentation https://elements.webjet.sk/components/menu-button
6
+ * @status stable
7
+ * @augments {WJElement}
8
+ * @slot - The default slot for the menu button.
9
+ * // @fires click - Event fired when the menu button is clicked.
10
+ * @tag wje-menu-button
11
+ */
12
+ export default class MenuButton extends WJElement {
13
+ /**
14
+ * Returns the CSS styles for the component.
15
+ * @static
16
+ * @returns {CSSStyleSheet}
17
+ */
18
+ static get cssStyleSheet(): CSSStyleSheet;
19
+ /**
20
+ * Returns the list of attributes to observe for changes.
21
+ * @static
22
+ * @returns {Array<string>}
23
+ */
24
+ static get observedAttributes(): string[];
25
+ /**
26
+ * Draws the component for the menu button.
27
+ * @returns {DocumentFragment}
28
+ */
29
+ draw(): DocumentFragment;
30
+ /**
31
+ * Refreshes the component after drawing. Adds a click event listener that toggles the "open" class on the content element.
32
+ */
33
+ afterDraw(): void;
34
+ }
@@ -0,0 +1,2 @@
1
+ import { default as MenuItem } from './menu-item.element.js';
2
+ export default MenuItem;