wj-elements 0.2.0-alpha.5 → 0.2.0-alpha.7

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 (245) hide show
  1. package/dist/wje-file-upload.js +1 -0
  2. package/dist/wje-file-upload.js.map +1 -1
  3. package/dist/wje-select.js +76 -32
  4. package/dist/wje-select.js.map +1 -1
  5. package/package.json +1 -1
  6. package/dist/packages/index.d.ts +0 -107
  7. package/dist/packages/internals/form-associated-element.d.ts +0 -143
  8. package/dist/packages/localize/localize.d.ts +0 -48
  9. package/dist/packages/translations/en-gb.d.ts +0 -18
  10. package/dist/packages/translations/sk-sk.d.ts +0 -13
  11. package/dist/packages/utils/animations.d.ts +0 -2
  12. package/dist/packages/utils/base-path.d.ts +0 -14
  13. package/dist/packages/utils/date.d.ts +0 -2
  14. package/dist/packages/utils/element-utils.d.ts +0 -46
  15. package/dist/packages/utils/event.d.ts +0 -67
  16. package/dist/packages/utils/icon-library.d.ts +0 -3
  17. package/dist/packages/utils/localize.d.ts +0 -4
  18. package/dist/packages/utils/permissions.d.ts +0 -40
  19. package/dist/packages/utils/universal-service.d.ts +0 -18
  20. package/dist/packages/utils/utils.d.ts +0 -1
  21. package/dist/packages/wje-accordion/accordion.d.ts +0 -2
  22. package/dist/packages/wje-accordion/accordion.element.d.ts +0 -72
  23. package/dist/packages/wje-accordion/accordion.test.d.ts +0 -0
  24. package/dist/packages/wje-accordion-item/accordion-item.d.ts +0 -2
  25. package/dist/packages/wje-accordion-item/accordion-item.element.d.ts +0 -40
  26. package/dist/packages/wje-animation/animation.d.ts +0 -2
  27. package/dist/packages/wje-animation/animation.element.d.ts +0 -158
  28. package/dist/packages/wje-animation/animation.test.d.ts +0 -1
  29. package/dist/packages/wje-aside/aside.d.ts +0 -2
  30. package/dist/packages/wje-aside/aside.element.d.ts +0 -31
  31. package/dist/packages/wje-avatar/avatar.d.ts +0 -2
  32. package/dist/packages/wje-avatar/avatar.element.d.ts +0 -76
  33. package/dist/packages/wje-avatar/avatar.test.d.ts +0 -1
  34. package/dist/packages/wje-avatar/service/service.d.ts +0 -52
  35. package/dist/packages/wje-badge/badge.d.ts +0 -2
  36. package/dist/packages/wje-badge/badge.element.d.ts +0 -35
  37. package/dist/packages/wje-badge/badge.test.d.ts +0 -1
  38. package/dist/packages/wje-breadcrumb/breadcrumb.d.ts +0 -2
  39. package/dist/packages/wje-breadcrumb/breadcrumb.element.d.ts +0 -98
  40. package/dist/packages/wje-breadcrumbs/breadcrumbs.d.ts +0 -2
  41. package/dist/packages/wje-breadcrumbs/breadcrumbs.element.d.ts +0 -105
  42. package/dist/packages/wje-breadcrumbs/breadcrumbs.test.d.ts +0 -1
  43. package/dist/packages/wje-button/button.d.ts +0 -2
  44. package/dist/packages/wje-button/button.element.d.ts +0 -204
  45. package/dist/packages/wje-button/button.test.d.ts +0 -1
  46. package/dist/packages/wje-button-group/button-group.d.ts +0 -2
  47. package/dist/packages/wje-button-group/button-group.element.d.ts +0 -96
  48. package/dist/packages/wje-card/card.d.ts +0 -2
  49. package/dist/packages/wje-card/card.element.d.ts +0 -31
  50. package/dist/packages/wje-card-content/card-content.d.ts +0 -2
  51. package/dist/packages/wje-card-content/card-content.element.d.ts +0 -22
  52. package/dist/packages/wje-card-controls/card-controls.d.ts +0 -2
  53. package/dist/packages/wje-card-controls/card-controls.element.d.ts +0 -23
  54. package/dist/packages/wje-card-header/card-header.d.ts +0 -2
  55. package/dist/packages/wje-card-header/card-header.element.d.ts +0 -22
  56. package/dist/packages/wje-card-subtitle/card-subtitle.d.ts +0 -2
  57. package/dist/packages/wje-card-subtitle/card-subtitle.element.d.ts +0 -30
  58. package/dist/packages/wje-card-title/card-title.d.ts +0 -2
  59. package/dist/packages/wje-card-title/card-title.element.d.ts +0 -32
  60. package/dist/packages/wje-carousel/carousel.d.ts +0 -2
  61. package/dist/packages/wje-carousel/carousel.element.d.ts +0 -154
  62. package/dist/packages/wje-carousel-item/carousel-item.d.ts +0 -2
  63. package/dist/packages/wje-carousel-item/carousel-item.element.d.ts +0 -38
  64. package/dist/packages/wje-checkbox/checkbox.d.ts +0 -2
  65. package/dist/packages/wje-checkbox/checkbox.element.d.ts +0 -100
  66. package/dist/packages/wje-chip/chip.d.ts +0 -2
  67. package/dist/packages/wje-chip/chip.element.d.ts +0 -76
  68. package/dist/packages/wje-chip/chip.test.d.ts +0 -1
  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 -230
  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 -132
  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 -108
  85. package/dist/packages/wje-element/element.d.ts +0 -341
  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 -203
  88. package/dist/packages/wje-file-upload/file-upload.test.d.ts +0 -1
  89. package/dist/packages/wje-file-upload/service/service.d.ts +0 -70
  90. package/dist/packages/wje-file-upload-item/file-upload-item.d.ts +0 -2
  91. package/dist/packages/wje-file-upload-item/file-upload-item.element.d.ts +0 -84
  92. package/dist/packages/wje-footer/footer.d.ts +0 -2
  93. package/dist/packages/wje-footer/footer.element.d.ts +0 -28
  94. package/dist/packages/wje-form/form.d.ts +0 -2
  95. package/dist/packages/wje-form/form.element.d.ts +0 -28
  96. package/dist/packages/wje-format-digital/format-digital.d.ts +0 -2
  97. package/dist/packages/wje-format-digital/format-digital.element.d.ts +0 -83
  98. package/dist/packages/wje-format-digital/format-digital.test.d.ts +0 -1
  99. package/dist/packages/wje-grid/grid.d.ts +0 -2
  100. package/dist/packages/wje-grid/grid.element.d.ts +0 -26
  101. package/dist/packages/wje-header/header.d.ts +0 -2
  102. package/dist/packages/wje-header/header.element.d.ts +0 -35
  103. package/dist/packages/wje-icon/icon.d.ts +0 -2
  104. package/dist/packages/wje-icon/icon.element.d.ts +0 -40
  105. package/dist/packages/wje-icon/service/library.d.ts +0 -3
  106. package/dist/packages/wje-icon/service/service.d.ts +0 -11
  107. package/dist/packages/wje-icon-picker/icon-picker.d.ts +0 -2
  108. package/dist/packages/wje-icon-picker/icon-picker.element.d.ts +0 -210
  109. package/dist/packages/wje-img/img.d.ts +0 -2
  110. package/dist/packages/wje-img/img.element.d.ts +0 -118
  111. package/dist/packages/wje-img-comparer/img-comparer.d.ts +0 -2
  112. package/dist/packages/wje-img-comparer/img-comparer.element.d.ts +0 -60
  113. package/dist/packages/wje-img-comparer/service/service.d.ts +0 -1
  114. package/dist/packages/wje-infinite-scroll/infinite-scroll.d.ts +0 -2
  115. package/dist/packages/wje-infinite-scroll/infinite-scroll.element.d.ts +0 -173
  116. package/dist/packages/wje-input/input.d.ts +0 -2
  117. package/dist/packages/wje-input/input.element.d.ts +0 -159
  118. package/dist/packages/wje-input-file/input-file.d.ts +0 -2
  119. package/dist/packages/wje-input-file/input-file.element.d.ts +0 -50
  120. package/dist/packages/wje-item/item.d.ts +0 -2
  121. package/dist/packages/wje-item/item.element.d.ts +0 -68
  122. package/dist/packages/wje-kanban/kanban.d.ts +0 -2
  123. package/dist/packages/wje-kanban/kanban.element.d.ts +0 -182
  124. package/dist/packages/wje-label/label.d.ts +0 -2
  125. package/dist/packages/wje-label/label.element.d.ts +0 -34
  126. package/dist/packages/wje-level-indicator/level-indicator.d.ts +0 -2
  127. package/dist/packages/wje-level-indicator/level-indicator.element.d.ts +0 -91
  128. package/dist/packages/wje-list/list.d.ts +0 -2
  129. package/dist/packages/wje-list/list.element.d.ts +0 -31
  130. package/dist/packages/wje-main/main.d.ts +0 -2
  131. package/dist/packages/wje-main/main.element.d.ts +0 -30
  132. package/dist/packages/wje-masonry/masonry.d.ts +0 -2
  133. package/dist/packages/wje-masonry/masonry.element.d.ts +0 -114
  134. package/dist/packages/wje-masonry/service/service.d.ts +0 -32
  135. package/dist/packages/wje-menu/menu.d.ts +0 -2
  136. package/dist/packages/wje-menu/menu.element.d.ts +0 -47
  137. package/dist/packages/wje-menu-button/menu-button.d.ts +0 -2
  138. package/dist/packages/wje-menu-button/menu-button.element.d.ts +0 -34
  139. package/dist/packages/wje-menu-item/menu-item.d.ts +0 -2
  140. package/dist/packages/wje-menu-item/menu-item.element.d.ts +0 -161
  141. package/dist/packages/wje-menu-label/menu-label.d.ts +0 -2
  142. package/dist/packages/wje-menu-label/menu-label.element.d.ts +0 -39
  143. package/dist/packages/wje-option/option.d.ts +0 -2
  144. package/dist/packages/wje-option/option.element.d.ts +0 -95
  145. package/dist/packages/wje-options/options.d.ts +0 -2
  146. package/dist/packages/wje-options/options.element.d.ts +0 -232
  147. package/dist/packages/wje-orgchart/orgchart.d.ts +0 -2
  148. package/dist/packages/wje-orgchart/orgchart.element.d.ts +0 -24
  149. package/dist/packages/wje-orgchart-group/orgchart-group.d.ts +0 -2
  150. package/dist/packages/wje-orgchart-group/orgchart-group.element.d.ts +0 -28
  151. package/dist/packages/wje-orgchart-item/orgchart-item.d.ts +0 -2
  152. package/dist/packages/wje-orgchart-item/orgchart-item.element.d.ts +0 -49
  153. package/dist/packages/wje-pagination/pagination.d.ts +0 -2
  154. package/dist/packages/wje-pagination/pagination.element.d.ts +0 -178
  155. package/dist/packages/wje-pagination/pagination.test.d.ts +0 -1
  156. package/dist/packages/wje-pagination/service/service.d.ts +0 -9
  157. package/dist/packages/wje-panel/panel.d.ts +0 -2
  158. package/dist/packages/wje-panel/panel.element.d.ts +0 -34
  159. package/dist/packages/wje-popup/popup.d.ts +0 -2
  160. package/dist/packages/wje-popup/popup.element.d.ts +0 -145
  161. package/dist/packages/wje-progress-bar/progress-bar.d.ts +0 -2
  162. package/dist/packages/wje-progress-bar/progress-bar.element.d.ts +0 -96
  163. package/dist/packages/wje-qr-code/qr-code.d.ts +0 -2
  164. package/dist/packages/wje-qr-code/qr-code.element.d.ts +0 -33
  165. package/dist/packages/wje-radio/radio.d.ts +0 -2
  166. package/dist/packages/wje-radio/radio.element.d.ts +0 -64
  167. package/dist/packages/wje-radio-group/radio-group.d.ts +0 -2
  168. package/dist/packages/wje-radio-group/radio-group.element.d.ts +0 -61
  169. package/dist/packages/wje-rate/rate.d.ts +0 -2
  170. package/dist/packages/wje-rate/rate.element.d.ts +0 -156
  171. package/dist/packages/wje-relative-time/relative-time.d.ts +0 -2
  172. package/dist/packages/wje-relative-time/relative-time.element.d.ts +0 -55
  173. package/dist/packages/wje-relative-time/relative-time.test.d.ts +0 -1
  174. package/dist/packages/wje-reorder/reorder.d.ts +0 -2
  175. package/dist/packages/wje-reorder/reorder.element.d.ts +0 -119
  176. package/dist/packages/wje-reorder-dropzone/reorder-dropzone.d.ts +0 -2
  177. package/dist/packages/wje-reorder-dropzone/reorder-dropzone.element.d.ts +0 -23
  178. package/dist/packages/wje-reorder-handle/reorder-handle.d.ts +0 -2
  179. package/dist/packages/wje-reorder-handle/reorder-handle.element.d.ts +0 -84
  180. package/dist/packages/wje-reorder-item/reorder-item.d.ts +0 -2
  181. package/dist/packages/wje-reorder-item/reorder-item.element.d.ts +0 -24
  182. package/dist/packages/wje-route/route.d.ts +0 -2
  183. package/dist/packages/wje-route/route.element.d.ts +0 -22
  184. package/dist/packages/wje-router/router.d.ts +0 -2
  185. package/dist/packages/wje-router/router.element.d.ts +0 -43
  186. package/dist/packages/wje-router-link/router-link.d.ts +0 -2
  187. package/dist/packages/wje-router-link/router-link.element.d.ts +0 -31
  188. package/dist/packages/wje-router-outlet/router-outlet.d.ts +0 -2
  189. package/dist/packages/wje-router-outlet/router-outlet.element.d.ts +0 -16
  190. package/dist/packages/wje-row/row.d.ts +0 -2
  191. package/dist/packages/wje-row/row.element.d.ts +0 -23
  192. package/dist/packages/wje-select/select.d.ts +0 -2
  193. package/dist/packages/wje-select/select.element.d.ts +0 -386
  194. package/dist/packages/wje-select/select.test.d.ts +0 -1
  195. package/dist/packages/wje-slider/slider.d.ts +0 -2
  196. package/dist/packages/wje-slider/slider.element.d.ts +0 -103
  197. package/dist/packages/wje-sliding-container/sliding-container.d.ts +0 -2
  198. package/dist/packages/wje-sliding-container/sliding-container.element.d.ts +0 -265
  199. package/dist/packages/wje-split-view/service/service.d.ts +0 -1
  200. package/dist/packages/wje-split-view/split-view.d.ts +0 -2
  201. package/dist/packages/wje-split-view/split-view.element.d.ts +0 -65
  202. package/dist/packages/wje-status/status.d.ts +0 -2
  203. package/dist/packages/wje-status/status.element.d.ts +0 -26
  204. package/dist/packages/wje-step/step.d.ts +0 -2
  205. package/dist/packages/wje-step/step.element.d.ts +0 -23
  206. package/dist/packages/wje-stepper/stepper.d.ts +0 -2
  207. package/dist/packages/wje-stepper/stepper.element.d.ts +0 -125
  208. package/dist/packages/wje-store/default-store-actions.d.ts +0 -25
  209. package/dist/packages/wje-store/pubsub.d.ts +0 -22
  210. package/dist/packages/wje-store/store.d.ts +0 -153
  211. package/dist/packages/wje-tab/tab.d.ts +0 -2
  212. package/dist/packages/wje-tab/tab.element.d.ts +0 -66
  213. package/dist/packages/wje-tab-group/tab-group.d.ts +0 -2
  214. package/dist/packages/wje-tab-group/tab-group.element.d.ts +0 -131
  215. package/dist/packages/wje-tab-group/tab-group.test.d.ts +0 -1
  216. package/dist/packages/wje-tab-panel/tab-panel.d.ts +0 -2
  217. package/dist/packages/wje-tab-panel/tab-panel.element.d.ts +0 -23
  218. package/dist/packages/wje-textarea/textarea.d.ts +0 -2
  219. package/dist/packages/wje-textarea/textarea.element.d.ts +0 -89
  220. package/dist/packages/wje-thumbnail/thumbnail.d.ts +0 -2
  221. package/dist/packages/wje-thumbnail/thumbnail.element.d.ts +0 -31
  222. package/dist/packages/wje-timeline/timeline.d.ts +0 -2
  223. package/dist/packages/wje-timeline/timeline.element.d.ts +0 -25
  224. package/dist/packages/wje-timeline-item/timeline-item.d.ts +0 -2
  225. package/dist/packages/wje-timeline-item/timeline-item.element.d.ts +0 -27
  226. package/dist/packages/wje-toast/toast.d.ts +0 -2
  227. package/dist/packages/wje-toast/toast.element.d.ts +0 -173
  228. package/dist/packages/wje-toast/toast.test.d.ts +0 -1
  229. package/dist/packages/wje-toggle/toggle.d.ts +0 -2
  230. package/dist/packages/wje-toggle/toggle.element.d.ts +0 -81
  231. package/dist/packages/wje-toggle/toggle.test.d.ts +0 -1
  232. package/dist/packages/wje-toolbar/toolbar.d.ts +0 -2
  233. package/dist/packages/wje-toolbar/toolbar.element.d.ts +0 -39
  234. package/dist/packages/wje-toolbar-action/toolbar-action.d.ts +0 -2
  235. package/dist/packages/wje-toolbar-action/toolbar-action.element.d.ts +0 -35
  236. package/dist/packages/wje-tooltip/tooltip.d.ts +0 -2
  237. package/dist/packages/wje-tooltip/tooltip.element.d.ts +0 -77
  238. package/dist/packages/wje-tree/tree.d.ts +0 -2
  239. package/dist/packages/wje-tree/tree.element.d.ts +0 -105
  240. package/dist/packages/wje-tree/tree.test.d.ts +0 -1
  241. package/dist/packages/wje-tree-item/tree-item.d.ts +0 -2
  242. package/dist/packages/wje-tree-item/tree-item.element.d.ts +0 -155
  243. package/dist/packages/wje-tree-item/tree-item.test.d.ts +0 -1
  244. package/dist/packages/wje-visually-hidden/visually-hidden.d.ts +0 -2
  245. package/dist/packages/wje-visually-hidden/visually-hidden.element.d.ts +0 -29
@@ -1,13 +0,0 @@
1
- export const skSk: {
2
- code: string;
3
- name: string;
4
- dir: string;
5
- welcome: string;
6
- 'wj.file.upload.button': string;
7
- 'wj.file.upload.uploaded': string;
8
- 'wj.file.upload.from': string;
9
- 'wj.stepper.button.next': string;
10
- 'wj.stepper.button.finish': string;
11
- 'wj.stepper.button.previous': string;
12
- 'wj.stepper.step': string;
13
- };
@@ -1,2 +0,0 @@
1
- export function fetchAndParseCSS(css: any): Promise<any[]>;
2
- export let animations: any[];
@@ -1,14 +0,0 @@
1
- /**
2
- * Sets the base path for the application.
3
- * @param {string} path The base path to be set.
4
- * @returns {void} This function does not return anything.
5
- */
6
- export function setBasePath(path: string): void;
7
- /**
8
- * Returns the base path of the application, optionally appending a specified relative path.
9
- * If the base path has not been set, it determines the base path from the first script element
10
- * with a `base-path` attribute or generates it based on the current script location.
11
- * @param {string} [appendedPath] The relative path to append to the base path. Defaults to an empty string.
12
- * @returns {string} The complete base path, with the appended relative path if specified.
13
- */
14
- export function getBasePath(appendedPath?: string): string;
@@ -1,2 +0,0 @@
1
- export function formatDate(input: any, format: any): any;
2
- export function toSafeDate(iso: any): any;
@@ -1,46 +0,0 @@
1
- export class WjElementUtils {
2
- /**
3
- * This function creates an element.
4
- * @param element : HTMLElement - The element value.
5
- * @param object : Object - The object value.
6
- */
7
- static setAttributesToElement(element: any, object: any): void;
8
- /**
9
- * This function gets the attributes from an element.
10
- * @param {string|HTMLElement} el The element or selector to retrieve attributes from.
11
- * @returns {object} - An object containing the element's attributes as key-value pairs.
12
- */
13
- static getAttributes(el: string | HTMLElement): object;
14
- /**
15
- * This function gets the events from an element.
16
- * @param {string|HTMLElement} el The element or selector to retrieve events from.
17
- * @returns {Map<any, any>} - The map value.
18
- */
19
- static getEvents(el: string | HTMLElement): Map<any, any>;
20
- /**
21
- * This function converts an object to a string.
22
- * @param {object} object The object to convert.
23
- * @returns {string} - The string value.
24
- */
25
- static attributesToString(object: object): string;
26
- /**
27
- * This function checks if the slot exists.
28
- * @param {string|HTMLElement} el The element or selector to check for slots.
29
- * @param slotName The slot name to check for.
30
- * @returns {boolean} - The boolean value.
31
- */
32
- static hasSlot(el: string | HTMLElement, slotName?: any): boolean;
33
- /**
34
- * This function checks if the slot has content.
35
- * @param {string|HTMLElement} el The element or selector to check for slot content
36
- * @param slotName The slot name to check for.
37
- * @returns {boolean} - The boolean value.
38
- */
39
- static hasSlotContent(el: string | HTMLElement, slotName?: any): boolean;
40
- /**
41
- * This function converts a string to a boolean.
42
- * @param {string | object} value The value to convert to a boolean. If the value is a boolean, it will be returned as is.
43
- * @returns {boolean} - The boolean value.
44
- */
45
- static stringToBoolean(value: string | object): boolean;
46
- }
@@ -1,67 +0,0 @@
1
- export let event: Event;
2
- declare class Event {
3
- customEventWeakMap: WeakMap<WeakKey, any>;
4
- /**
5
- * Dispatch custom event to the element with the specified event name and detail.
6
- * @param element
7
- * @param event
8
- * @param detail
9
- */
10
- dispatchCustomEvent(element: any, event: any, detail: any): void;
11
- /**
12
- * Find record by element in the storage.
13
- * @param element
14
- * @returns {*}
15
- */
16
- findRecordByElement(element: any): any;
17
- /**
18
- * Add listener to the element. If the element is an array, the listener will be added to all elements in the array.
19
- * @param element
20
- * @param originalEvent
21
- * @param event
22
- * @param listener
23
- * @param options
24
- */
25
- addListener(element: any, originalEvent: any, event: any, listener: any, options: any): void;
26
- /**
27
- * Write record to the storage.
28
- * @param element
29
- * @param originalEvent
30
- * @param event
31
- * @param listener
32
- * @param options
33
- */
34
- writeRecord(element: any, originalEvent: any, event: any, listener: any, options: any): void;
35
- /**
36
- * Performs a deep equality check between two objects.
37
- * @param x The first object to compare.
38
- * @param y The second object to compare.
39
- * @returns - Returns `true` if the objects are deeply equal, `false` otherwise.
40
- */
41
- deepEqual(x: any, y: any): any;
42
- /**
43
- * Check if the listener already exists on the element.
44
- * @param records
45
- * @param eventObj
46
- * @returns
47
- */
48
- listenerExists(records: any, eventObj: any): any;
49
- isRecordExists(records: any, eventObj: any): any;
50
- /**
51
- * Remove listener from the element and delete the listener from the custom event storage.
52
- * @param element
53
- * @param originalEvent
54
- * @param event
55
- * @param listener
56
- * @param options
57
- */
58
- removeListener(element: any, originalEvent: any, event: any, listener: any, options: any): void;
59
- /**
60
- * Remove all event listeners from the specified element and delete the element from the custom event storage.
61
- * @param {HTMLElement} element The element from which all listeners will be removed.
62
- */
63
- removeElement(element: HTMLElement): void;
64
- createPromiseFromEvent(element: any, event: any): Promise<any>;
65
- #private;
66
- }
67
- export {};
@@ -1,3 +0,0 @@
1
- export function getIconLibrary(name: any): any;
2
- export function registerIconLibrary(name: any, options: any): void;
3
- export function unregisterIconLibrary(name: any): void;
@@ -1,4 +0,0 @@
1
- import { LocalizerDefault } from '../localize/localize.js';
2
- export class Localizer extends LocalizerDefault {
3
- static registerTranslation(...translation: any[]): void;
4
- }
@@ -1,40 +0,0 @@
1
- /**
2
- * PermissionsApi is a utility class for managing permissions.
3
- * It allows setting, retrieving, and checking permissions stored in the browser's local storage.
4
- */
5
- export class Permissions {
6
- static _permissionKey: string;
7
- /**
8
- * Sets the permission key for the PermissionsApi.
9
- * The key is stored internally and defaults to 'permissions' if no value is provided.
10
- * @param {string} value The key to set for permissions. If no value is provided, the default is 'permissions'.
11
- */
12
- static set permissionKey(value: string);
13
- /**
14
- * Retrieves the permission key used for accessing the permissions API.
15
- * @returns {string} The permission key associated with the PermissionsApi.
16
- */
17
- static get permissionKey(): string;
18
- /**
19
- * Sets the permissions by storing them in the local storage.
20
- * @param {object} value The permissions object to be stored.
21
- */
22
- static set permissions(value: object);
23
- /**
24
- * Retrieves the list of permissions stored in the browser's local storage.
25
- * @returns {Array} An array of permissions. If no permissions are found, returns an empty array.
26
- */
27
- static get permissions(): any[];
28
- /**
29
- * Determines whether the specified key exists in the permissions list.
30
- * @param {string} key The key to check for existence in the permissions list.
31
- * @returns {boolean} Returns true if the key exists in the permissions list; otherwise, returns false.
32
- */
33
- static includesKey(key: string): boolean;
34
- /**
35
- * Checks if at least one of the given permissions is fulfilled, based on the permissions available in `PermissionsApi`.
36
- * @param {Array<string>} permissions The list of permissions to check against the permissions available in `PermissionsApi`.
37
- * @returns {boolean} Returns `true` if any of the given permissions match the permissions available in `PermissionsApi`, otherwise returns `false`.
38
- */
39
- static isPermissionFulfilled(permissions: Array<string>): boolean;
40
- }
@@ -1,18 +0,0 @@
1
- export class UniversalService {
2
- constructor(props?: {});
3
- _store: any;
4
- findByKey: (attrName: any, key: any, keyValue: any) => any;
5
- findById: (attrName: any, id: any) => any;
6
- findAttributeValue: (attrName: any) => any;
7
- update: (data: any, action: any) => void;
8
- add: (data: any, action: any) => void;
9
- _request(url: any, data: any, action: any, dispatchMethod: any, method: any, signal: any): any;
10
- put(url: any, data: any, action: any, dispatchMethod?: boolean, signal?: any): any;
11
- post(url: any, data: any, action: any, dispatchMethod?: boolean, signal?: any): any;
12
- delete(url: any, data: any, action: any, dispatchMethod?: boolean, signal?: any): any;
13
- get(url: any, action: any, dispatchMethod?: boolean, signal?: any): any;
14
- patch(url: any, data: any, action: any, dispatchMethod?: boolean, signal?: any): any;
15
- dispatch(promise: any, dispatchMethod: any, action: any): any;
16
- loadPromise: (url: any, action: any, method?: string, data?: string, permissionCallBack?: () => void) => Promise<any>;
17
- loadOnePromise: (url: any, action: any) => Promise<any>;
18
- }
@@ -1 +0,0 @@
1
- export function bool(v: any): boolean;
@@ -1,2 +0,0 @@
1
- import { default as Accordion } from './accordion.element.js';
2
- export default Accordion;
@@ -1,72 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * @summary This class represents an Accordion element, extending the WJElement class.
4
- * @documentation https://elements.webjet.sk/components/accordion
5
- * @status stable
6
- * @augments WJElement
7
- * @attribute {boolean} multiple - The multiple attribute for the accordion.
8
- * @attribute {number} index - The index attribute for the accordion.
9
- * @attribute {boolean} disabled - The disabled attribute for the accordion.
10
- * @attribute {boolean} expanded - The expanded attribute for the accordion.
11
- * @slot - The accordion main content.
12
- * //@fires [wje-accordion-item:open] The event fired when the accordion item is opened.
13
- * @tag wje-accordion
14
- */
15
- export default class Accordion extends WJElement {
16
- /**
17
- * Getter for the CSS stylesheet.
18
- * @returns {object} The styles for the Accordion element.
19
- */
20
- static get cssStyleSheet(): object;
21
- /**
22
- * Getter for the observed attributes.
23
- * @returns {Array} An array containing the name of the observed attribute.
24
- */
25
- static get observedAttributes(): any[];
26
- /**
27
- * Sets the `multiple` attribute on the element.
28
- * If `true`, the `multiple` attribute is added.
29
- * If `false`, the `multiple` attribute is removed.
30
- * @param {boolean} value A boolean value indicating whether the element should support multiple selections.
31
- */
32
- set multiple(value: boolean);
33
- /**
34
- * Determines whether the element has the `multiple` attribute.
35
- * @returns {boolean} `true` if the `multiple` attribute is present, otherwise `false`.
36
- */
37
- get multiple(): boolean;
38
- /**
39
- * Sets the value of the `index` attribute.
40
- * @param {number|string} value The value to set for the `index` attribute.
41
- */
42
- set index(value: number | string);
43
- /**
44
- * Retrieves the value of the `index` attribute as a number.
45
- * @returns {number} The numerical value of the `index` attribute, or `0` if the attribute is not set.
46
- */
47
- get index(): number;
48
- /**
49
- * Method to run before the element is drawn.
50
- */
51
- beforeDraw(): void;
52
- /**
53
- * Method to draw the Accordion element.
54
- * @returns {object} The document fragment containing the drawn element.
55
- */
56
- draw(): object;
57
- slotEl: HTMLSlotElement;
58
- /**
59
- * Method to run after the element is drawn.
60
- */
61
- afterDraw(): void;
62
- /**
63
- * Method to run after the element is drawn.
64
- * @param exception
65
- */
66
- collapseAll(exception: any): void;
67
- /**
68
- * Method to get the accordions.
69
- * @returns {Array} An array containing the accordions.
70
- */
71
- getAccordions(): any[];
72
- }
File without changes
@@ -1,2 +0,0 @@
1
- import { default as AccordionItem } from './accordion-item.element.js';
2
- export default AccordionItem;
@@ -1,40 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * @summary This class represents an Accordion Item element, extending the WJElement class.
4
- * @documentation https://elements.webjet.sk/components/accordion-item
5
- * @status stable
6
- * @augments WJElement
7
- * @slot - The accordion item main content.
8
- * @tag wje-accordion
9
- */
10
- export default class AccordionItem extends WJElement {
11
- /**
12
- * Getter for the CSS stylesheet.
13
- * @returns {object} The styles for the Accordion Item element.
14
- */
15
- static get cssStyleSheet(): object;
16
- /**
17
- * Getter for the observed attributes.
18
- * @returns {Array} An array containing the name of the observed attribute.
19
- */
20
- static get observedAttributes(): any[];
21
- /**
22
- * Method to draw the Accordion Item element. This method returns a document fragment containing the drawn element.
23
- * @returns {object} The document fragment containing the drawn element.
24
- */
25
- draw(): object;
26
- headline: HTMLDivElement;
27
- toggle: HTMLSlotElement;
28
- /**
29
- * Method to execute after the Accordion Item element is drawn.
30
- */
31
- afterDraw(): void;
32
- /**
33
- * Method to handle the attribute changes.
34
- */
35
- collapse: () => void;
36
- /**
37
- * Method to handle the attribute changes.
38
- */
39
- expand: () => void;
40
- }
@@ -1,2 +0,0 @@
1
- import { default as Animation } from './animation.element.js';
2
- export default Animation;
@@ -1,158 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * @summary This class represents an Animation element, extending the WJElement class.
4
- * @documentation https://elements.webjet.sk/components/animation
5
- * @status stable
6
- * @augments WJElement
7
- * @slot - The animation main content.
8
- * @cssproperty --size - The size of the avatar.
9
- * @tag wje-animation
10
- */
11
- export default class Animation extends WJElement {
12
- /**
13
- * Getter for the CSS stylesheet.
14
- * @returns {object} The styles for the Animation element.
15
- */
16
- static get cssStyleSheet(): object;
17
- /**
18
- * Getter for the observed attributes.
19
- * @returns {Array} An array containing the name of the observed attribute.
20
- */
21
- static get observedAttributes(): any[];
22
- _animations: any[];
23
- /**
24
- * Setter for the name attribute.
25
- * @param value
26
- */
27
- set name(value: string);
28
- /**
29
- * Getter for the name attribute.
30
- * @returns {string}
31
- */
32
- get name(): string;
33
- /**
34
- * Setter for the name attribute.
35
- * @param value
36
- */
37
- set duration(value: number);
38
- /**
39
- * Getter for the name attribute.
40
- * @returns {number}
41
- */
42
- get duration(): number;
43
- /**
44
- * Setter for the name attribute.
45
- * @param value
46
- */
47
- set delay(value: number);
48
- /**
49
- * Getter for the name attribute.
50
- * @returns {number}
51
- */
52
- get delay(): number;
53
- /**
54
- * Setter for the name attribute.
55
- * @param value
56
- */
57
- set endDelay(value: number);
58
- /**
59
- * Getter for the name attribute.
60
- * @returns {number}
61
- */
62
- get endDelay(): number;
63
- /**
64
- * Setter for the name attribute.
65
- * @param value
66
- */
67
- set fill(value: string);
68
- /**
69
- * Getter for the name attribute.
70
- * @returns {string}
71
- */
72
- get fill(): string;
73
- /**
74
- * Setter for the name attribute.
75
- * @param value
76
- */
77
- set iterations(value: string | number);
78
- /**
79
- * Getter for the name attribute.
80
- * @returns {string|number}
81
- */
82
- get iterations(): string | number;
83
- /**
84
- * Setter for the name attribute.
85
- * @param value
86
- */
87
- set iterationStart(value: number);
88
- /**
89
- * Getter for the name attribute.
90
- * @returns {number}
91
- */
92
- get iterationStart(): number;
93
- /**
94
- * Setter for the name attribute.
95
- * @param value
96
- */
97
- set direction(value: string);
98
- /**
99
- * Getter for the name attribute.
100
- * @returns {string}
101
- */
102
- get direction(): string;
103
- /**
104
- * Setter for the name attribute.
105
- * @param value
106
- */
107
- set easing(value: string);
108
- /**
109
- * Getter for the name attribute.
110
- * @returns {string}
111
- */
112
- get easing(): string;
113
- /**
114
- * Setter for the animations property.
115
- * @param {Array} value The new value for the animations property.
116
- */
117
- set animations(value: any[]);
118
- /**
119
- * Getter for the animations' property.
120
- * @returns {Array} The current value of the animations' property.
121
- */
122
- get animations(): any[];
123
- /**
124
- * Method to draw the Animation element.
125
- * @returns {object} The document fragment containing the drawn element.
126
- */
127
- draw(): object;
128
- slotEl: HTMLSlotElement;
129
- /**
130
- * Method to perform actions after the Animation element is drawn.
131
- * This method destroys any existing animation, fetches a new animations array,
132
- * selects the appropriate animation, and applies it to the element.
133
- */
134
- afterDraw(): Promise<void>;
135
- animation: Animation;
136
- /**
137
- * Method to fetch and parse the animations array from a CSS file.
138
- * @returns {Array} An array of animation definitions parsed from the CSS file.
139
- */
140
- getAnimationsArray(): any[];
141
- /**
142
- * Terminates and cleans up the currently active animation if it exists.
143
- * Calls the `cancel` method to stop the animation process.
144
- * @returns {void} Does not return any value.
145
- */
146
- destroyAnimation(): void;
147
- /**
148
- * Plays the currently assigned animation, if available.
149
- * @returns {void} This method does not return any value.
150
- */
151
- play(): void;
152
- /**
153
- * Cancels the current animation if it is initialized and has a cancel method.
154
- * Logs a warning if the animation is not initialized or the cancel method is unavailable.
155
- * @returns {void} Does not return a value.
156
- */
157
- cancel(): void;
158
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import { default as Aside } from './aside.element.js';
2
- export default Aside;
@@ -1,31 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * @summary This class represents an Aside element, extending the WJElement class.
4
- * @documentation https://elements.webjet.sk/components/aside
5
- * @status stable
6
- * @augments WJElement
7
- * @slot - The aside main content.
8
- * @cssproperty --wje-aside-width;
9
- * @cssproperty --wje-aside-top;
10
- * @cssproperty --wje-aside-border-color: var(--wje-border-color);
11
- * @cssproperty --wje-aside-border-width;
12
- * @cssproperty --wje-aside-border-style;
13
- * @tag wje-aside
14
- */
15
- export default class Aside extends WJElement {
16
- /**
17
- * Getter for the CSS stylesheet.
18
- * @returns {object} The styles for the Aside element.
19
- */
20
- static get cssStyleSheet(): object;
21
- /**
22
- * Getter for the observed attributes.
23
- * @returns {Array} An empty array as there are no observed attributes.
24
- */
25
- static get observedAttributes(): any[];
26
- /**
27
- * Method to draw the Aside element.
28
- * @returns {object} The document fragment containing the drawn element.
29
- */
30
- draw(): object;
31
- }
@@ -1,2 +0,0 @@
1
- import { default as Avatar } from './avatar.element.js';
2
- export default Avatar;
@@ -1,76 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * @summary This class represents an Avatar element, extending the WJElement class.
4
- * @documentation https://elements.webjet.sk/components/avatar
5
- * @status stable
6
- * @augments WJElement
7
- * @slot - The avatar main content.
8
- * @csspart native - The component's native wrapper.
9
- * @cssproperty --wje-avatar-width;
10
- * @cssproperty --wje-avatar-height;
11
- * @cssproperty --wje-avatar-font-size;
12
- * @cssproperty --wje-avatar-font-weight;
13
- * @cssproperty --wje-avatar-color;
14
- * @cssproperty --wje-avatar-background-color;
15
- * @cssproperty --wje-avatar-border-radius;
16
- * @cssproperty --wje-avatar-border-color;
17
- * @cssproperty --wje-avatar-border-width;
18
- * @cssproperty --wje-avatar-border-style;
19
- * @tag wje-avatar
20
- */
21
- export default class Avatar extends WJElement {
22
- /**
23
- * Getter for cssStyleSheet.
24
- * @returns {string} styles
25
- */
26
- static get cssStyleSheet(): string;
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
- /**
34
- * Sets the value of the 'label' attribute for the element.
35
- * @param {string} value The new value to be set for the 'label' attribute.
36
- */
37
- set label(value: string);
38
- /**
39
- * Retrieves the value of the 'label' attribute for the element.
40
- * If the attribute is not set, it defaults to an empty string.
41
- * @returns {string} The value of the 'label' attribute or an empty string if not defined.
42
- */
43
- get label(): string;
44
- /**
45
- * Sets the value of initials for the element by updating
46
- * the 'initials' attribute with the provided value.
47
- * @param {string} value The value to be set as the initials.
48
- */
49
- set initials(value: string);
50
- /**
51
- * Retrieves the value of the 'initials' attribute if it exists.
52
- * @returns {boolean} Returns true if the 'initials' attribute is present, otherwise false.
53
- */
54
- get initials(): boolean;
55
- /**
56
- * Sets the size attribute for the element.
57
- * @param {string | number} value The value to set for the size attribute.
58
- */
59
- set size(value: string | number);
60
- /**
61
- * Retrieves the size attribute of the element. If the size attribute
62
- * is not defined, it returns the default value 'medium'.
63
- * @returns {string} The size value of the element or 'medium' if not specified.
64
- */
65
- get size(): string;
66
- /**
67
- * Method to draw the avatar element and return a document fragment.
68
- * @returns {object} fragment - The document fragment
69
- */
70
- draw(): object;
71
- /**
72
- * Method to check if the avatar is an image.
73
- * @returns {boolean} - True if the avatar is an image, false otherwise
74
- */
75
- isImage(): boolean;
76
- }
@@ -1 +0,0 @@
1
- export {};