wj-elements 0.1.198 → 0.1.199

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 (238) hide show
  1. package/dist/wje-router-outlet.js +2 -0
  2. package/dist/wje-router-outlet.js.map +1 -1
  3. package/package.json +1 -1
  4. package/dist/packages/index.d.ts +0 -107
  5. package/dist/packages/internals/form-associated-element.d.ts +0 -143
  6. package/dist/packages/localize/localize.d.ts +0 -47
  7. package/dist/packages/translations/en-gb.d.ts +0 -18
  8. package/dist/packages/translations/sk-sk.d.ts +0 -13
  9. package/dist/packages/utils/animations.d.ts +0 -2
  10. package/dist/packages/utils/base-path.d.ts +0 -14
  11. package/dist/packages/utils/date.d.ts +0 -2
  12. package/dist/packages/utils/element-utils.d.ts +0 -46
  13. package/dist/packages/utils/event.d.ts +0 -67
  14. package/dist/packages/utils/icon-library.d.ts +0 -3
  15. package/dist/packages/utils/localize.d.ts +0 -4
  16. package/dist/packages/utils/permissions.d.ts +0 -40
  17. package/dist/packages/utils/universal-service.d.ts +0 -18
  18. package/dist/packages/utils/utils.d.ts +0 -1
  19. package/dist/packages/wje-accordion/accordion.d.ts +0 -2
  20. package/dist/packages/wje-accordion/accordion.element.d.ts +0 -72
  21. package/dist/packages/wje-accordion/accordion.test.d.ts +0 -0
  22. package/dist/packages/wje-accordion-item/accordion-item.d.ts +0 -2
  23. package/dist/packages/wje-accordion-item/accordion-item.element.d.ts +0 -40
  24. package/dist/packages/wje-animation/animation.d.ts +0 -2
  25. package/dist/packages/wje-animation/animation.element.d.ts +0 -158
  26. package/dist/packages/wje-animation/animation.test.d.ts +0 -1
  27. package/dist/packages/wje-aside/aside.d.ts +0 -2
  28. package/dist/packages/wje-aside/aside.element.d.ts +0 -31
  29. package/dist/packages/wje-avatar/avatar.d.ts +0 -2
  30. package/dist/packages/wje-avatar/avatar.element.d.ts +0 -76
  31. package/dist/packages/wje-avatar/avatar.test.d.ts +0 -1
  32. package/dist/packages/wje-avatar/service/service.d.ts +0 -40
  33. package/dist/packages/wje-badge/badge.d.ts +0 -2
  34. package/dist/packages/wje-badge/badge.element.d.ts +0 -35
  35. package/dist/packages/wje-badge/badge.test.d.ts +0 -1
  36. package/dist/packages/wje-breadcrumb/breadcrumb.d.ts +0 -2
  37. package/dist/packages/wje-breadcrumb/breadcrumb.element.d.ts +0 -80
  38. package/dist/packages/wje-breadcrumbs/breadcrumbs.d.ts +0 -2
  39. package/dist/packages/wje-breadcrumbs/breadcrumbs.element.d.ts +0 -97
  40. package/dist/packages/wje-breadcrumbs/breadcrumbs.test.d.ts +0 -1
  41. package/dist/packages/wje-button/button.d.ts +0 -2
  42. package/dist/packages/wje-button/button.element.d.ts +0 -204
  43. package/dist/packages/wje-button/button.test.d.ts +0 -1
  44. package/dist/packages/wje-button-group/button-group.d.ts +0 -2
  45. package/dist/packages/wje-button-group/button-group.element.d.ts +0 -96
  46. package/dist/packages/wje-card/card.d.ts +0 -2
  47. package/dist/packages/wje-card/card.element.d.ts +0 -29
  48. package/dist/packages/wje-card-content/card-content.d.ts +0 -2
  49. package/dist/packages/wje-card-content/card-content.element.d.ts +0 -22
  50. package/dist/packages/wje-card-controls/card-controls.d.ts +0 -2
  51. package/dist/packages/wje-card-controls/card-controls.element.d.ts +0 -23
  52. package/dist/packages/wje-card-header/card-header.d.ts +0 -2
  53. package/dist/packages/wje-card-header/card-header.element.d.ts +0 -22
  54. package/dist/packages/wje-card-subtitle/card-subtitle.d.ts +0 -2
  55. package/dist/packages/wje-card-subtitle/card-subtitle.element.d.ts +0 -30
  56. package/dist/packages/wje-card-title/card-title.d.ts +0 -2
  57. package/dist/packages/wje-card-title/card-title.element.d.ts +0 -32
  58. package/dist/packages/wje-carousel/carousel.d.ts +0 -2
  59. package/dist/packages/wje-carousel/carousel.element.d.ts +0 -146
  60. package/dist/packages/wje-carousel-item/carousel-item.d.ts +0 -2
  61. package/dist/packages/wje-carousel-item/carousel-item.element.d.ts +0 -38
  62. package/dist/packages/wje-checkbox/checkbox.d.ts +0 -2
  63. package/dist/packages/wje-checkbox/checkbox.element.d.ts +0 -99
  64. package/dist/packages/wje-chip/chip.d.ts +0 -2
  65. package/dist/packages/wje-chip/chip.element.d.ts +0 -64
  66. package/dist/packages/wje-col/col.d.ts +0 -2
  67. package/dist/packages/wje-col/col.element.d.ts +0 -16
  68. package/dist/packages/wje-color-picker/color-picker.d.ts +0 -2
  69. package/dist/packages/wje-color-picker/color-picker.element.d.ts +0 -187
  70. package/dist/packages/wje-color-picker/color-picker.test.d.ts +0 -1
  71. package/dist/packages/wje-container/container.d.ts +0 -2
  72. package/dist/packages/wje-container/container.element.d.ts +0 -31
  73. package/dist/packages/wje-copy-button/copy-button.d.ts +0 -2
  74. package/dist/packages/wje-copy-button/copy-button.element.d.ts +0 -89
  75. package/dist/packages/wje-copy-button/service/service.d.ts +0 -12
  76. package/dist/packages/wje-dialog/dialog.d.ts +0 -2
  77. package/dist/packages/wje-dialog/dialog.element.d.ts +0 -127
  78. package/dist/packages/wje-divider/divider.d.ts +0 -2
  79. package/dist/packages/wje-divider/divider.element.d.ts +0 -32
  80. package/dist/packages/wje-dropdown/dropdown.d.ts +0 -2
  81. package/dist/packages/wje-dropdown/dropdown.element.d.ts +0 -84
  82. package/dist/packages/wje-element/element.d.ts +0 -306
  83. package/dist/packages/wje-file-upload/file-upload.d.ts +0 -2
  84. package/dist/packages/wje-file-upload/file-upload.element.d.ts +0 -191
  85. package/dist/packages/wje-file-upload/service/service.d.ts +0 -70
  86. package/dist/packages/wje-file-upload-item/file-upload-item.d.ts +0 -2
  87. package/dist/packages/wje-file-upload-item/file-upload-item.element.d.ts +0 -68
  88. package/dist/packages/wje-footer/footer.d.ts +0 -2
  89. package/dist/packages/wje-footer/footer.element.d.ts +0 -28
  90. package/dist/packages/wje-form/form.d.ts +0 -2
  91. package/dist/packages/wje-form/form.element.d.ts +0 -28
  92. package/dist/packages/wje-format-digital/format-digital.d.ts +0 -2
  93. package/dist/packages/wje-format-digital/format-digital.element.d.ts +0 -83
  94. package/dist/packages/wje-format-digital/format-digital.test.d.ts +0 -1
  95. package/dist/packages/wje-grid/grid.d.ts +0 -2
  96. package/dist/packages/wje-grid/grid.element.d.ts +0 -26
  97. package/dist/packages/wje-header/header.d.ts +0 -2
  98. package/dist/packages/wje-header/header.element.d.ts +0 -35
  99. package/dist/packages/wje-icon/icon.d.ts +0 -2
  100. package/dist/packages/wje-icon/icon.element.d.ts +0 -40
  101. package/dist/packages/wje-icon/service/library.d.ts +0 -3
  102. package/dist/packages/wje-icon/service/service.d.ts +0 -11
  103. package/dist/packages/wje-icon-picker/icon-picker.d.ts +0 -2
  104. package/dist/packages/wje-icon-picker/icon-picker.element.d.ts +0 -187
  105. package/dist/packages/wje-img/img.d.ts +0 -2
  106. package/dist/packages/wje-img/img.element.d.ts +0 -118
  107. package/dist/packages/wje-img-comparer/img-comparer.d.ts +0 -2
  108. package/dist/packages/wje-img-comparer/img-comparer.element.d.ts +0 -60
  109. package/dist/packages/wje-img-comparer/service/service.d.ts +0 -1
  110. package/dist/packages/wje-infinite-scroll/infinite-scroll.d.ts +0 -2
  111. package/dist/packages/wje-infinite-scroll/infinite-scroll.element.d.ts +0 -172
  112. package/dist/packages/wje-input/input.d.ts +0 -2
  113. package/dist/packages/wje-input/input.element.d.ts +0 -159
  114. package/dist/packages/wje-input-file/input-file.d.ts +0 -2
  115. package/dist/packages/wje-input-file/input-file.element.d.ts +0 -50
  116. package/dist/packages/wje-item/item.d.ts +0 -2
  117. package/dist/packages/wje-item/item.element.d.ts +0 -68
  118. package/dist/packages/wje-kanban/kanban.d.ts +0 -2
  119. package/dist/packages/wje-kanban/kanban.element.d.ts +0 -182
  120. package/dist/packages/wje-label/label.d.ts +0 -2
  121. package/dist/packages/wje-label/label.element.d.ts +0 -34
  122. package/dist/packages/wje-level-indicator/level-indicator.d.ts +0 -2
  123. package/dist/packages/wje-level-indicator/level-indicator.element.d.ts +0 -91
  124. package/dist/packages/wje-list/list.d.ts +0 -2
  125. package/dist/packages/wje-list/list.element.d.ts +0 -31
  126. package/dist/packages/wje-main/main.d.ts +0 -2
  127. package/dist/packages/wje-main/main.element.d.ts +0 -30
  128. package/dist/packages/wje-masonry/masonry.d.ts +0 -2
  129. package/dist/packages/wje-masonry/masonry.element.d.ts +0 -114
  130. package/dist/packages/wje-masonry/service/service.d.ts +0 -32
  131. package/dist/packages/wje-menu/menu.d.ts +0 -2
  132. package/dist/packages/wje-menu/menu.element.d.ts +0 -47
  133. package/dist/packages/wje-menu-button/menu-button.d.ts +0 -2
  134. package/dist/packages/wje-menu-button/menu-button.element.d.ts +0 -34
  135. package/dist/packages/wje-menu-item/menu-item.d.ts +0 -2
  136. package/dist/packages/wje-menu-item/menu-item.element.d.ts +0 -158
  137. package/dist/packages/wje-menu-label/menu-label.d.ts +0 -2
  138. package/dist/packages/wje-menu-label/menu-label.element.d.ts +0 -39
  139. package/dist/packages/wje-option/option.d.ts +0 -2
  140. package/dist/packages/wje-option/option.element.d.ts +0 -95
  141. package/dist/packages/wje-options/options.d.ts +0 -2
  142. package/dist/packages/wje-options/options.element.d.ts +0 -232
  143. package/dist/packages/wje-orgchart/orgchart.d.ts +0 -2
  144. package/dist/packages/wje-orgchart/orgchart.element.d.ts +0 -24
  145. package/dist/packages/wje-orgchart-group/orgchart-group.d.ts +0 -2
  146. package/dist/packages/wje-orgchart-group/orgchart-group.element.d.ts +0 -28
  147. package/dist/packages/wje-orgchart-item/orgchart-item.d.ts +0 -2
  148. package/dist/packages/wje-orgchart-item/orgchart-item.element.d.ts +0 -49
  149. package/dist/packages/wje-pagination/pagination.d.ts +0 -2
  150. package/dist/packages/wje-pagination/pagination.element.d.ts +0 -166
  151. package/dist/packages/wje-pagination/pagination.test.d.ts +0 -1
  152. package/dist/packages/wje-pagination/service/service.d.ts +0 -9
  153. package/dist/packages/wje-panel/panel.d.ts +0 -2
  154. package/dist/packages/wje-panel/panel.element.d.ts +0 -34
  155. package/dist/packages/wje-popup/popup.d.ts +0 -2
  156. package/dist/packages/wje-popup/popup.element.d.ts +0 -94
  157. package/dist/packages/wje-progress-bar/progress-bar.d.ts +0 -2
  158. package/dist/packages/wje-progress-bar/progress-bar.element.d.ts +0 -96
  159. package/dist/packages/wje-qr-code/qr-code.d.ts +0 -2
  160. package/dist/packages/wje-qr-code/qr-code.element.d.ts +0 -33
  161. package/dist/packages/wje-radio/radio.d.ts +0 -2
  162. package/dist/packages/wje-radio/radio.element.d.ts +0 -64
  163. package/dist/packages/wje-radio-group/radio-group.d.ts +0 -2
  164. package/dist/packages/wje-radio-group/radio-group.element.d.ts +0 -61
  165. package/dist/packages/wje-rate/rate.d.ts +0 -2
  166. package/dist/packages/wje-rate/rate.element.d.ts +0 -156
  167. package/dist/packages/wje-relative-time/relative-time.d.ts +0 -2
  168. package/dist/packages/wje-relative-time/relative-time.element.d.ts +0 -55
  169. package/dist/packages/wje-relative-time/relative-time.test.d.ts +0 -1
  170. package/dist/packages/wje-reorder/reorder.d.ts +0 -2
  171. package/dist/packages/wje-reorder/reorder.element.d.ts +0 -119
  172. package/dist/packages/wje-reorder-dropzone/reorder-dropzone.d.ts +0 -2
  173. package/dist/packages/wje-reorder-dropzone/reorder-dropzone.element.d.ts +0 -23
  174. package/dist/packages/wje-reorder-handle/reorder-handle.d.ts +0 -2
  175. package/dist/packages/wje-reorder-handle/reorder-handle.element.d.ts +0 -75
  176. package/dist/packages/wje-reorder-item/reorder-item.d.ts +0 -2
  177. package/dist/packages/wje-reorder-item/reorder-item.element.d.ts +0 -24
  178. package/dist/packages/wje-route/route.d.ts +0 -2
  179. package/dist/packages/wje-route/route.element.d.ts +0 -22
  180. package/dist/packages/wje-router/router.d.ts +0 -2
  181. package/dist/packages/wje-router/router.element.d.ts +0 -39
  182. package/dist/packages/wje-router-link/router-link.d.ts +0 -2
  183. package/dist/packages/wje-router-link/router-link.element.d.ts +0 -31
  184. package/dist/packages/wje-router-outlet/router-outlet.d.ts +0 -2
  185. package/dist/packages/wje-router-outlet/router-outlet.element.d.ts +0 -15
  186. package/dist/packages/wje-row/row.d.ts +0 -2
  187. package/dist/packages/wje-row/row.element.d.ts +0 -23
  188. package/dist/packages/wje-select/select.d.ts +0 -2
  189. package/dist/packages/wje-select/select.element.d.ts +0 -358
  190. package/dist/packages/wje-slider/slider.d.ts +0 -2
  191. package/dist/packages/wje-slider/slider.element.d.ts +0 -103
  192. package/dist/packages/wje-sliding-container/sliding-container.d.ts +0 -2
  193. package/dist/packages/wje-sliding-container/sliding-container.element.d.ts +0 -265
  194. package/dist/packages/wje-split-view/service/service.d.ts +0 -1
  195. package/dist/packages/wje-split-view/split-view.d.ts +0 -2
  196. package/dist/packages/wje-split-view/split-view.element.d.ts +0 -65
  197. package/dist/packages/wje-status/status.d.ts +0 -2
  198. package/dist/packages/wje-status/status.element.d.ts +0 -26
  199. package/dist/packages/wje-step/step.d.ts +0 -2
  200. package/dist/packages/wje-step/step.element.d.ts +0 -23
  201. package/dist/packages/wje-stepper/stepper.d.ts +0 -2
  202. package/dist/packages/wje-stepper/stepper.element.d.ts +0 -80
  203. package/dist/packages/wje-store/default-store-actions.d.ts +0 -25
  204. package/dist/packages/wje-store/pubsub.d.ts +0 -22
  205. package/dist/packages/wje-store/store.d.ts +0 -153
  206. package/dist/packages/wje-tab/tab.d.ts +0 -2
  207. package/dist/packages/wje-tab/tab.element.d.ts +0 -66
  208. package/dist/packages/wje-tab-group/tab-group.d.ts +0 -2
  209. package/dist/packages/wje-tab-group/tab-group.element.d.ts +0 -107
  210. package/dist/packages/wje-tab-panel/tab-panel.d.ts +0 -2
  211. package/dist/packages/wje-tab-panel/tab-panel.element.d.ts +0 -23
  212. package/dist/packages/wje-textarea/textarea.d.ts +0 -2
  213. package/dist/packages/wje-textarea/textarea.element.d.ts +0 -89
  214. package/dist/packages/wje-thumbnail/thumbnail.d.ts +0 -2
  215. package/dist/packages/wje-thumbnail/thumbnail.element.d.ts +0 -31
  216. package/dist/packages/wje-timeline/timeline.d.ts +0 -2
  217. package/dist/packages/wje-timeline/timeline.element.d.ts +0 -25
  218. package/dist/packages/wje-timeline-item/timeline-item.d.ts +0 -2
  219. package/dist/packages/wje-timeline-item/timeline-item.element.d.ts +0 -27
  220. package/dist/packages/wje-toast/toast.d.ts +0 -2
  221. package/dist/packages/wje-toast/toast.element.d.ts +0 -173
  222. package/dist/packages/wje-toast/toast.test.d.ts +0 -1
  223. package/dist/packages/wje-toggle/toggle.d.ts +0 -2
  224. package/dist/packages/wje-toggle/toggle.element.d.ts +0 -65
  225. package/dist/packages/wje-toolbar/toolbar.d.ts +0 -2
  226. package/dist/packages/wje-toolbar/toolbar.element.d.ts +0 -39
  227. package/dist/packages/wje-toolbar-action/toolbar-action.d.ts +0 -2
  228. package/dist/packages/wje-toolbar-action/toolbar-action.element.d.ts +0 -35
  229. package/dist/packages/wje-tooltip/tooltip.d.ts +0 -2
  230. package/dist/packages/wje-tooltip/tooltip.element.d.ts +0 -77
  231. package/dist/packages/wje-tree/tree.d.ts +0 -2
  232. package/dist/packages/wje-tree/tree.element.d.ts +0 -105
  233. package/dist/packages/wje-tree/tree.test.d.ts +0 -1
  234. package/dist/packages/wje-tree-item/tree-item.d.ts +0 -2
  235. package/dist/packages/wje-tree-item/tree-item.element.d.ts +0 -155
  236. package/dist/packages/wje-tree-item/tree-item.test.d.ts +0 -1
  237. package/dist/packages/wje-visually-hidden/visually-hidden.d.ts +0 -2
  238. package/dist/packages/wje-visually-hidden/visually-hidden.element.d.ts +0 -29
@@ -1,2 +0,0 @@
1
- import { default as Masonry } from './masonry.element.js';
2
- export default Masonry;
@@ -1,114 +0,0 @@
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-layout-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
- }
@@ -1,32 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- import { default as Menu } from './menu.element.js';
2
- export default Menu;
@@ -1,47 +0,0 @@
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(): Array<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
- }
@@ -1,2 +0,0 @@
1
- import { default as MenuButton } from './menu-button.element.js';
2
- export default MenuButton;
@@ -1,34 +0,0 @@
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(): Array<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
- }
@@ -1,2 +0,0 @@
1
- import { default as MenuItem } from './menu-item.element.js';
2
- export default MenuItem;
@@ -1,158 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `MenuItem` is a custom web component that represents a menu item.
4
- * @summary This element represents a menu item.
5
- * @documentation https://elements.webjet.sk/components/menu-item
6
- * @status stable
7
- * @augments {WJElement}
8
- * @csspart native - The native part of the menu item.
9
- * @csspart submenu - The submenu part of the menu item.
10
- * @slot - The default slot for the menu item.
11
- * @slot start - The slot for the start of the menu item.
12
- * @slot end - The slot for the end of the menu item.
13
- * @slot submenu - The slot for the submenu of the menu item.
14
- * @cssproperty [--wje-menu-item-color=var(--wje-color)] - Sets the text color of a menu item. Accepts any valid CSS color value.
15
- * @cssproperty [--wje-menu-item-background=transparent] - Defines the background color of a menu item. Default is `transparent`. Accepts any valid CSS color value.
16
- * @cssproperty [--wje-menu-item-color-hover=var(--wje-color-contrast-8)] - Specifies the text color of a menu item when hovered. Accepts any valid CSS color value.
17
- * @cssproperty [--wje-menu-item-background-hover=var(--wje-border-color)] - Sets the background color of a menu item when hovered. Accepts any valid CSS color value.
18
- * @cssproperty [--wje-menu-item-color-focus=var(--wje-color-contrast-8)] - Defines the text color of a menu item when focused. Accepts any valid CSS color value.
19
- * @cssproperty [--wje-menu-item-background-focus=var(--wje-border-color)] - Specifies the background color of a menu item when focused. Accepts any valid CSS color value.
20
- * @cssproperty [--wje-menu-item-color-active=var(--wje-color-contrast-8)] - Sets the text color of a menu item when active. Accepts any valid CSS color value.
21
- * @cssproperty [--wje-menu-item-background-active=var(--wje-border-color)] - Specifies the background color of a menu item when active. Accepts any valid CSS color value.
22
- * @cssproperty [--wje-menu-item-padding-top=.5rem] - Specifies the top padding inside a menu item. Accepts any valid CSS length value (e.g., `px`, `rem`).
23
- * @cssproperty [--wje-menu-item-padding-bottom=.5rem] - Specifies the bottom padding inside a menu item. Accepts any valid CSS length value (e.g., `px`, `rem`).
24
- * @cssproperty [--wje-menu-item-line-height=1.8rem] - Sets the line height for the text within a menu item. Accepts any valid CSS length value.
25
- * @cssproperty [--wje-menu-submenu-offset=0] - Determines the horizontal offset of a submenu relative to its parent. Accepts any valid CSS length value.
26
- * @cssproperty [--wje-menu-item-icon-visibility=hidden] - Controls the visibility of the icon in a menu item. Accepts `visible`, `hidden`, or `collapse`.
27
- * @cssproperty [--wje-menu-item-safe-triangle-cursor-x] - Specifies the x-coordinate of the cursor for the safe triangle area. Used for managing hover or focus transitions between menu items and submenus.
28
- * @cssproperty [--wje-menu-item-safe-triangle-cursor-y] - Specifies the y-coordinate of the cursor for the safe triangle area.
29
- * @cssproperty [--wje-menu-item-safe-triangle-submenu-start-x] - Defines the x-coordinate where the submenu's safe triangle starts. Helps prevent accidental submenu closing when navigating.
30
- * @cssproperty [--wje-menu-item-safe-triangle-submenu-start-y] - Defines the y-coordinate where the submenu's safe triangle starts.
31
- * @cssproperty [--wje-menu-item-safe-triangle-submenu-end-x] - Specifies the x-coordinate where the submenu's safe triangle ends.
32
- * @cssproperty [--wje-menu-item-safe-triangle-submenu-end-y] - Specifies the y-coordinate where the submenu's safe triangle ends.
33
- * @tag wje-menu-item
34
- */
35
- export default class MenuItem extends WJElement {
36
- /**
37
- * Getter for cssStyleSheet.
38
- * @returns {string} The styles imported from styles.css.
39
- */
40
- static get cssStyleSheet(): string;
41
- /**
42
- * Getter for observedAttributes.
43
- * @returns {Array} An empty array as no attributes are being observed.
44
- */
45
- static get observedAttributes(): any[];
46
- _collapsible: boolean;
47
- /**
48
- * Getter for placement attribute.
49
- * @returns {string} The placement attribute of the menu or "right-start" if it doesn't exist.
50
- */
51
- get placement(): string;
52
- /**
53
- * Getter for offset attribute.
54
- * @returns {string} The offset attribute of the menu or "0" if it doesn't exist.
55
- */
56
- get offset(): string;
57
- /**
58
- * Getter for variant attribute.
59
- * @returns {string} The variant attribute of the menu or "CONTEXT" if it doesn't exist.
60
- */
61
- get variant(): string;
62
- /**
63
- * Getter for collapse attribute.
64
- * @returns {boolean} True if the closest parent has the collapse attribute, false otherwise.
65
- */
66
- get collapse(): boolean;
67
- /**
68
- * Sets the value of the custom event attribute.
69
- * @param {string} value The value to be assigned to the custom event attribute.
70
- */
71
- set customEvent(value: string);
72
- /**
73
- * Retrieves the value of the 'custom-event' attribute from the element.
74
- * @returns {string | null} The value of the 'custom-event' attribute, or null if the attribute is not set.
75
- */
76
- get customEvent(): string | null;
77
- /**
78
- * Retrieves a mapped object containing custom event parameters extracted from the element's attributes.
79
- * Attributes considered are those that begin with 'custom-event-'.
80
- * The mapped object's keys are derived by removing the 'custom-event-' prefix from the attribute names,
81
- * and the values are the corresponding attribute values.
82
- * @returns {object} An object containing key-value pairs of custom event parameters.
83
- */
84
- get customEventParameters(): object;
85
- /**
86
- * Removes the active attribute from the menu before drawing the MenuItem.
87
- */
88
- beforeDraw(): void;
89
- /**
90
- * Draws the MenuItem element and sets the variant and collapse attributes.
91
- * @returns {DocumentFragment} The fragment to be appended to the MenuItem.
92
- */
93
- draw(): DocumentFragment;
94
- hasSubmenu: boolean;
95
- popup: HTMLElement;
96
- native: HTMLDivElement;
97
- submenu: HTMLSlotElement;
98
- /**
99
- * Adds event listeners after drawing the MenuItem.
100
- */
101
- afterDraw(): void;
102
- unbindRouterLinks: any;
103
- mouseenterHandler: (e: any) => void;
104
- /**
105
- * Handles the click event on the MenuItem.
106
- * @param {object} e
107
- */
108
- clickHandler: (e: object) => void;
109
- /**
110
- * Checks if the submenu should be hidden based on the event.
111
- * @param {Event} e The event object.
112
- */
113
- shouldHideSubmenu: (e: Event) => void;
114
- /**
115
- * Creates a tooltip for the MenuItem when it is collapsed.
116
- * @param {HTMLElement} native The native MenuItem element.
117
- * @returns {HTMLElement} The tooltip element.
118
- */
119
- collapseItem(native: HTMLElement): HTMLElement;
120
- /**
121
- * Dispatches a mousemove event.
122
- */
123
- dispatchMove: (e: any) => void;
124
- /**
125
- * Dispatches a reposition event.
126
- */
127
- dispatchReposition: (e: any) => void;
128
- /**
129
- * Shows the submenu of the MenuItem.
130
- */
131
- showSubmenu(): void;
132
- /**
133
- * Hides the submenu of the MenuItem.
134
- */
135
- hideSubmenu(): void;
136
- /**
137
- * Toggles the active state of the submenu element.
138
- * If the submenu is not active, it sets the "active" attribute.
139
- * If the submenu is already active, it removes the "active" attribute.
140
- * @param {Event} e The event object.
141
- */
142
- submenuToggle(e: Event): void;
143
- /**
144
- * Deactivates the submenu by removing the "active" attribute.
145
- */
146
- deactivateSubmenu(): void;
147
- /**
148
- * Activates the submenu of the menu item.
149
- */
150
- activateSubmenu(): void;
151
- /**
152
- * Extracts and returns the concatenated text content from all text nodes within the specified element.
153
- * @param {HTMLElement} element The HTML element from which to extract text content.
154
- * @returns {string} The concatenated and trimmed text content from the element's text nodes.
155
- */
156
- getTextFromElement(element: HTMLElement): string;
157
- #private;
158
- }
@@ -1,2 +0,0 @@
1
- import { default as MenuLabel } from './menu-label.element.js';
2
- export default MenuLabel;
@@ -1,39 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `MenuLabel` is a custom web component that represents a menu label.
4
- * @summary This element represents a menu label.
5
- * @documentation https://elements.webjet.sk/components/menu-label
6
- * @status stable
7
- * @augments {WJElement}
8
- * @csspart native - The native part of the menu label.
9
- * @slot - The default slot for the menu label.
10
- * @cssproperty [--wje-menu-label-font-size=.75rem] - Sets the font size of the menu label. Accepts any valid CSS length unit (e.g., `rem`, `px`, `em`).
11
- * @cssproperty [--wje-menu-label-weight=600] - Specifies the font weight of the menu label. Accepts values such as `normal`, `bold`, or numeric values (e.g., `400`, `600`).
12
- * @cssproperty [--wje-letter-spacing=.025rem] - Defines the spacing between letters in the menu label. Accepts any valid CSS length unit. Default value ensures slight spacing for improved readability.
13
- * @cssproperty [--wje-menu-label-color=var(--wje-color-contrast-6)] - Specifies the text color of the menu label. Accepts any valid CSS color value, including variables and named colors.
14
- * @cssproperty [--wje-padding-top=0] - Sets the top padding of the menu label. Accepts any valid CSS length value to control spacing above the label.
15
- * @cssproperty [--wje-padding-bottom=0] - Sets the bottom padding of the menu label. Accepts any valid CSS length value to control spacing below the label.
16
- * @cssproperty [--wje-padding-start=1.5rem] - Specifies the left padding of the menu label in left-to-right (LTR) layouts. In right-to-left (RTL) layouts, this becomes the right padding. Accepts any valid CSS length value.
17
- * @cssproperty [--wje-padding-end=1.5rem] - Specifies the right padding of the menu label in left-to-right (LTR) layouts. In right-to-left (RTL) layouts, this becomes the left padding. Accepts any valid CSS length value.
18
- * @tag wje-menu-label
19
- */
20
- export default class MenuLabel extends WJElement {
21
- /**
22
- * Returns the CSS styles for the component.
23
- * @static
24
- * @returns {CSSStyleSheet}
25
- */
26
- static get cssStyleSheet(): CSSStyleSheet;
27
- /**
28
- * Returns the list of attributes to observe for changes.
29
- * @static
30
- * @returns {Array<string>}
31
- */
32
- static get observedAttributes(): Array<string>;
33
- hasSubmenu: boolean;
34
- /**
35
- * Draws the component for the menu label.
36
- * @returns {DocumentFragment}
37
- */
38
- draw(): DocumentFragment;
39
- }
@@ -1,2 +0,0 @@
1
- import { default as Option } from './option.element.js';
2
- export default Option;
@@ -1,95 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- import { default as Icon } from '../wje-icon/icon.js';
3
- import { default as Checkbox } from '../wje-checkbox/checkbox.js';
4
- /**
5
- * `Option` is a custom web component that represents an option.
6
- * @summary This element represents an option.
7
- * @documentation https://elements.webjet.sk/components/option
8
- * @status stable
9
- * @augments {WJElement}
10
- * @csspart native - The native part of the option.
11
- * @slot start - The slot for the start of the option.
12
- * @slot - The default slot for the option.
13
- * @slot end - The slot for the end of the option.
14
- * // @fires wje-option:change - Event fired when the option is clicked.
15
- * @tag wje-option
16
- */
17
- export default class Option extends WJElement {
18
- /**
19
- * Returns the CSS styles for the component.
20
- * @static
21
- * @returns {CSSStyleSheet}
22
- */
23
- static get cssStyleSheet(): CSSStyleSheet;
24
- /**
25
- * Returns the list of attributes to observe for changes.
26
- * @static
27
- * @returns {Array<string>}
28
- */
29
- static get observedAttributes(): Array<string>;
30
- /**
31
- * Dependencies of the Option component.
32
- */
33
- dependencies: {
34
- 'wje-icon': typeof Icon;
35
- 'wje-checkbox': typeof Checkbox;
36
- };
37
- /**
38
- * Sets the selected attribute of the option.
39
- * @param {boolean} value The value to set.
40
- */
41
- set selected(value: boolean);
42
- /**
43
- * Retrieves the 'selected' attribute status of the element.
44
- * @returns {boolean} Returns true if the 'selected' attribute is set on the element; otherwise, false.
45
- */
46
- get selected(): boolean;
47
- /**
48
- * Retrieves the value indicating whether the closest 'wje-select' element has a 'checkbox' attribute.
49
- * @returns {boolean} True if the closest 'wje-select' element has a 'checkbox' attribute; otherwise, false.
50
- */
51
- get checkbox(): boolean;
52
- /**
53
- * Determines whether the closest 'wje-select' element has the 'multiple' attribute.
54
- * @returns {boolean} Returns true if the 'wje-select' element has the 'multiple' attribute, otherwise false.
55
- */
56
- get multiple(): boolean;
57
- /**
58
- * Sets the value attribute of the option.
59
- * @param {string} value The value to set.
60
- */
61
- set value(value: string);
62
- get value(): string;
63
- /**
64
- * Sets the text content of the option.
65
- * @param {string} value The text to set.
66
- */
67
- set text(value: string);
68
- /**
69
- * This method is called whenever an observed attribute is added, removed, or changed.
70
- * @param {string} name The name of the attribute that was changed.
71
- * @param {*} old The previous value of the attribute before the change.
72
- * @param {*} newName The new value of the attribute after the change.
73
- * @returns {void} This method does not return a value.
74
- */
75
- attributeChangedCallback(name: string, old: any, newName: any): void;
76
- /**
77
- * Draws the component for the option.
78
- * @returns {DocumentFragment}
79
- */
80
- draw(): DocumentFragment;
81
- check: HTMLSlotElement;
82
- /**
83
- * Method executed after the drawing process is completed.
84
- * Sets up an event listener for 'click' events, linking them to the specified callback function.
85
- * @returns {void} Does not return a value.
86
- */
87
- afterDraw(): void;
88
- /**
89
- * Handles the click event on an option element and dispatches a custom event when triggered.
90
- * @param {Event} e The click event object that triggered the callback.
91
- * @returns {void} No return value.
92
- */
93
- optionClickCallback(e: Event): void;
94
- #private;
95
- }
@@ -1,2 +0,0 @@
1
- import { default as Options } from './options.element.js';
2
- export default Options;