wj-elements 0.1.149 → 0.1.151
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.
- package/dist/wje-element.js +3 -1
- package/dist/wje-element.js.map +1 -1
- package/dist/wje-img.js +2 -2
- package/dist/wje-img.js.map +1 -1
- package/dist/wje-pagination.js +3 -3
- package/dist/wje-pagination.js.map +1 -1
- package/package.json +1 -1
- package/dist/packages/index.d.ts +0 -104
- package/dist/packages/localize/localize.d.ts +0 -17
- package/dist/packages/translations/en-gb.d.ts +0 -18
- package/dist/packages/translations/sk-sk.d.ts +0 -13
- package/dist/packages/utils/animations.d.ts +0 -2
- package/dist/packages/utils/date.d.ts +0 -1
- package/dist/packages/utils/element-utils.d.ts +0 -46
- package/dist/packages/utils/event.d.ts +0 -67
- package/dist/packages/utils/localize.d.ts +0 -4
- package/dist/packages/utils/permissions-api.d.ts +0 -34
- package/dist/packages/utils/utils.d.ts +0 -1
- package/dist/packages/utils/wje-import-firefox.d.ts +0 -0
- package/dist/packages/utils/wje-import.d.ts +0 -0
- package/dist/packages/wje-accordion/accordion.d.ts +0 -2
- package/dist/packages/wje-accordion/accordion.element.d.ts +0 -72
- package/dist/packages/wje-accordion/accordion.test.d.ts +0 -0
- package/dist/packages/wje-accordion-item/accordion-item.d.ts +0 -2
- package/dist/packages/wje-accordion-item/accordion-item.element.d.ts +0 -40
- package/dist/packages/wje-animation/animation.d.ts +0 -2
- package/dist/packages/wje-animation/animation.element.d.ts +0 -158
- package/dist/packages/wje-animation/animation.test.d.ts +0 -1
- package/dist/packages/wje-aside/aside.d.ts +0 -2
- package/dist/packages/wje-aside/aside.element.d.ts +0 -31
- package/dist/packages/wje-avatar/avatar.d.ts +0 -2
- package/dist/packages/wje-avatar/avatar.element.d.ts +0 -76
- package/dist/packages/wje-avatar/avatar.test.d.ts +0 -1
- package/dist/packages/wje-avatar/service/service.d.ts +0 -40
- package/dist/packages/wje-badge/badge.d.ts +0 -2
- package/dist/packages/wje-badge/badge.element.d.ts +0 -35
- package/dist/packages/wje-badge/badge.test.d.ts +0 -1
- package/dist/packages/wje-breadcrumb/breadcrumb.d.ts +0 -2
- package/dist/packages/wje-breadcrumb/breadcrumb.element.d.ts +0 -80
- package/dist/packages/wje-breadcrumbs/breadcrumbs.d.ts +0 -2
- package/dist/packages/wje-breadcrumbs/breadcrumbs.element.d.ts +0 -97
- package/dist/packages/wje-breadcrumbs/breadcrumbs.test.d.ts +0 -1
- package/dist/packages/wje-button/button.d.ts +0 -2
- package/dist/packages/wje-button/button.element.d.ts +0 -173
- package/dist/packages/wje-button/button.test.d.ts +0 -1
- package/dist/packages/wje-button-group/button-group.d.ts +0 -2
- package/dist/packages/wje-button-group/button-group.element.d.ts +0 -39
- package/dist/packages/wje-card/card.d.ts +0 -2
- package/dist/packages/wje-card/card.element.d.ts +0 -29
- package/dist/packages/wje-card-content/card-content.d.ts +0 -2
- package/dist/packages/wje-card-content/card-content.element.d.ts +0 -22
- package/dist/packages/wje-card-controls/card-controls.d.ts +0 -2
- package/dist/packages/wje-card-controls/card-controls.element.d.ts +0 -23
- package/dist/packages/wje-card-header/card-header.d.ts +0 -2
- package/dist/packages/wje-card-header/card-header.element.d.ts +0 -22
- package/dist/packages/wje-card-subtitle/card-subtitle.d.ts +0 -2
- package/dist/packages/wje-card-subtitle/card-subtitle.element.d.ts +0 -30
- package/dist/packages/wje-card-title/card-title.d.ts +0 -2
- package/dist/packages/wje-card-title/card-title.element.d.ts +0 -32
- package/dist/packages/wje-carousel/carousel.d.ts +0 -2
- package/dist/packages/wje-carousel/carousel.element.d.ts +0 -146
- package/dist/packages/wje-carousel-item/carousel-item.d.ts +0 -2
- package/dist/packages/wje-carousel-item/carousel-item.element.d.ts +0 -38
- package/dist/packages/wje-checkbox/checkbox.d.ts +0 -2
- package/dist/packages/wje-checkbox/checkbox.element.d.ts +0 -171
- package/dist/packages/wje-chip/chip.d.ts +0 -2
- package/dist/packages/wje-chip/chip.element.d.ts +0 -30
- package/dist/packages/wje-col/col.d.ts +0 -2
- package/dist/packages/wje-col/col.element.d.ts +0 -16
- package/dist/packages/wje-color-picker/color-picker.d.ts +0 -2
- package/dist/packages/wje-color-picker/color-picker.element.d.ts +0 -187
- package/dist/packages/wje-color-picker/color-picker.test.d.ts +0 -1
- package/dist/packages/wje-container/container.d.ts +0 -2
- package/dist/packages/wje-container/container.element.d.ts +0 -31
- package/dist/packages/wje-copy-button/copy-button.d.ts +0 -2
- package/dist/packages/wje-copy-button/copy-button.element.d.ts +0 -89
- package/dist/packages/wje-copy-button/service/service.d.ts +0 -12
- package/dist/packages/wje-dialog/dialog.d.ts +0 -2
- package/dist/packages/wje-dialog/dialog.element.d.ts +0 -116
- package/dist/packages/wje-divider/divider.d.ts +0 -2
- package/dist/packages/wje-divider/divider.element.d.ts +0 -32
- package/dist/packages/wje-dropdown/dropdown.d.ts +0 -2
- package/dist/packages/wje-dropdown/dropdown.element.d.ts +0 -85
- package/dist/packages/wje-element/element.d.ts +0 -315
- package/dist/packages/wje-element/service/universal-service.d.ts +0 -18
- package/dist/packages/wje-file-upload/file-upload.d.ts +0 -2
- package/dist/packages/wje-file-upload/file-upload.element.d.ts +0 -191
- package/dist/packages/wje-file-upload/service/service.d.ts +0 -70
- package/dist/packages/wje-file-upload-item/file-upload-item.d.ts +0 -2
- package/dist/packages/wje-file-upload-item/file-upload-item.element.d.ts +0 -66
- package/dist/packages/wje-footer/footer.d.ts +0 -2
- package/dist/packages/wje-footer/footer.element.d.ts +0 -28
- package/dist/packages/wje-form/form.d.ts +0 -2
- package/dist/packages/wje-form/form.element.d.ts +0 -28
- package/dist/packages/wje-format-digital/format-digital.d.ts +0 -2
- package/dist/packages/wje-format-digital/format-digital.element.d.ts +0 -87
- package/dist/packages/wje-format-digital/format-digital.test.d.ts +0 -1
- package/dist/packages/wje-grid/grid.d.ts +0 -2
- package/dist/packages/wje-grid/grid.element.d.ts +0 -26
- package/dist/packages/wje-header/header.d.ts +0 -2
- package/dist/packages/wje-header/header.element.d.ts +0 -35
- package/dist/packages/wje-icon/icon.d.ts +0 -2
- package/dist/packages/wje-icon/icon.element.d.ts +0 -40
- package/dist/packages/wje-icon/service/service.d.ts +0 -11
- package/dist/packages/wje-icon-picker/icon-picker.d.ts +0 -2
- package/dist/packages/wje-icon-picker/icon-picker.element.d.ts +0 -197
- package/dist/packages/wje-img/img.d.ts +0 -2
- package/dist/packages/wje-img/img.element.d.ts +0 -117
- package/dist/packages/wje-img-comparer/img-comparer.d.ts +0 -2
- package/dist/packages/wje-img-comparer/img-comparer.element.d.ts +0 -60
- package/dist/packages/wje-img-comparer/service/service.d.ts +0 -1
- package/dist/packages/wje-infinite-scroll/infinite-scroll.d.ts +0 -2
- package/dist/packages/wje-infinite-scroll/infinite-scroll.element.d.ts +0 -173
- package/dist/packages/wje-input/input.d.ts +0 -2
- package/dist/packages/wje-input/input.element.d.ts +0 -204
- package/dist/packages/wje-input-file/input-file.d.ts +0 -2
- package/dist/packages/wje-input-file/input-file.element.d.ts +0 -50
- package/dist/packages/wje-item/item.d.ts +0 -2
- package/dist/packages/wje-item/item.element.d.ts +0 -68
- package/dist/packages/wje-kanban/kanban.d.ts +0 -2
- package/dist/packages/wje-kanban/kanban.element.d.ts +0 -183
- package/dist/packages/wje-label/label.d.ts +0 -2
- package/dist/packages/wje-label/label.element.d.ts +0 -34
- package/dist/packages/wje-level-indicator/level-indicator.d.ts +0 -2
- package/dist/packages/wje-level-indicator/level-indicator.element.d.ts +0 -91
- package/dist/packages/wje-list/list.d.ts +0 -2
- package/dist/packages/wje-list/list.element.d.ts +0 -31
- package/dist/packages/wje-main/main.d.ts +0 -2
- package/dist/packages/wje-main/main.element.d.ts +0 -30
- package/dist/packages/wje-masonry/masonry.d.ts +0 -2
- package/dist/packages/wje-masonry/masonry.element.d.ts +0 -114
- package/dist/packages/wje-masonry/service/service.d.ts +0 -32
- package/dist/packages/wje-menu/menu.d.ts +0 -2
- package/dist/packages/wje-menu/menu.element.d.ts +0 -47
- package/dist/packages/wje-menu-button/menu-button.d.ts +0 -2
- package/dist/packages/wje-menu-button/menu-button.element.d.ts +0 -34
- package/dist/packages/wje-menu-item/menu-item.d.ts +0 -2
- package/dist/packages/wje-menu-item/menu-item.element.d.ts +0 -139
- package/dist/packages/wje-menu-label/menu-label.d.ts +0 -2
- package/dist/packages/wje-menu-label/menu-label.element.d.ts +0 -39
- package/dist/packages/wje-option/option.d.ts +0 -2
- package/dist/packages/wje-option/option.element.d.ts +0 -59
- package/dist/packages/wje-options/options.d.ts +0 -2
- package/dist/packages/wje-options/options.element.d.ts +0 -183
- package/dist/packages/wje-orgchart/orgchart.d.ts +0 -2
- package/dist/packages/wje-orgchart/orgchart.element.d.ts +0 -24
- package/dist/packages/wje-orgchart-group/orgchart-group.d.ts +0 -2
- package/dist/packages/wje-orgchart-group/orgchart-group.element.d.ts +0 -28
- package/dist/packages/wje-orgchart-item/orgchart-item.d.ts +0 -2
- package/dist/packages/wje-orgchart-item/orgchart-item.element.d.ts +0 -49
- package/dist/packages/wje-pagination/pagination.d.ts +0 -2
- package/dist/packages/wje-pagination/pagination.element.d.ts +0 -166
- package/dist/packages/wje-pagination/pagination.test.d.ts +0 -1
- package/dist/packages/wje-pagination/service/service.d.ts +0 -9
- package/dist/packages/wje-panel/panel.d.ts +0 -2
- package/dist/packages/wje-panel/panel.element.d.ts +0 -34
- package/dist/packages/wje-popup/popup.d.ts +0 -2
- package/dist/packages/wje-popup/popup.element.d.ts +0 -93
- package/dist/packages/wje-progress-bar/progress-bar.d.ts +0 -2
- package/dist/packages/wje-progress-bar/progress-bar.element.d.ts +0 -96
- package/dist/packages/wje-qr-code/qr-code.d.ts +0 -2
- package/dist/packages/wje-qr-code/qr-code.element.d.ts +0 -33
- package/dist/packages/wje-radio/radio.d.ts +0 -2
- package/dist/packages/wje-radio/radio.element.d.ts +0 -53
- package/dist/packages/wje-radio-group/radio-group.d.ts +0 -2
- package/dist/packages/wje-radio-group/radio-group.element.d.ts +0 -137
- package/dist/packages/wje-rate/rate.d.ts +0 -2
- package/dist/packages/wje-rate/rate.element.d.ts +0 -156
- package/dist/packages/wje-relative-time/relative-time.d.ts +0 -2
- package/dist/packages/wje-relative-time/relative-time.element.d.ts +0 -55
- package/dist/packages/wje-relative-time/relative-time.test.d.ts +0 -1
- package/dist/packages/wje-reorder/reorder.d.ts +0 -2
- package/dist/packages/wje-reorder/reorder.element.d.ts +0 -119
- package/dist/packages/wje-reorder-dropzone/reorder-dropzone.d.ts +0 -2
- package/dist/packages/wje-reorder-dropzone/reorder-dropzone.element.d.ts +0 -23
- package/dist/packages/wje-reorder-handle/reorder-handle.d.ts +0 -2
- package/dist/packages/wje-reorder-handle/reorder-handle.element.d.ts +0 -75
- package/dist/packages/wje-reorder-item/reorder-item.d.ts +0 -2
- package/dist/packages/wje-reorder-item/reorder-item.element.d.ts +0 -24
- package/dist/packages/wje-route/route.d.ts +0 -2
- package/dist/packages/wje-route/route.element.d.ts +0 -22
- package/dist/packages/wje-router/router.d.ts +0 -2
- package/dist/packages/wje-router/router.element.d.ts +0 -39
- package/dist/packages/wje-router-link/router-link.d.ts +0 -2
- package/dist/packages/wje-router-link/router-link.element.d.ts +0 -31
- package/dist/packages/wje-router-outlet/router-outlet.d.ts +0 -2
- package/dist/packages/wje-router-outlet/router-outlet.element.d.ts +0 -15
- package/dist/packages/wje-row/row.d.ts +0 -2
- package/dist/packages/wje-row/row.element.d.ts +0 -23
- package/dist/packages/wje-select/select.d.ts +0 -2
- package/dist/packages/wje-select/select.element.d.ts +0 -315
- package/dist/packages/wje-slider/slider.d.ts +0 -2
- package/dist/packages/wje-slider/slider.element.d.ts +0 -103
- package/dist/packages/wje-split-view/service/service.d.ts +0 -1
- package/dist/packages/wje-split-view/split-view.d.ts +0 -2
- package/dist/packages/wje-split-view/split-view.element.d.ts +0 -66
- package/dist/packages/wje-status/status.d.ts +0 -2
- package/dist/packages/wje-status/status.element.d.ts +0 -26
- package/dist/packages/wje-step/step.d.ts +0 -2
- package/dist/packages/wje-step/step.element.d.ts +0 -23
- package/dist/packages/wje-stepper/stepper.d.ts +0 -2
- package/dist/packages/wje-stepper/stepper.element.d.ts +0 -78
- package/dist/packages/wje-store/default-store-actions.d.ts +0 -25
- package/dist/packages/wje-store/pubsub.d.ts +0 -21
- package/dist/packages/wje-store/store.d.ts +0 -153
- package/dist/packages/wje-tab/tab.d.ts +0 -2
- package/dist/packages/wje-tab/tab.element.d.ts +0 -41
- package/dist/packages/wje-tab-group/tab-group.d.ts +0 -2
- package/dist/packages/wje-tab-group/tab-group.element.d.ts +0 -67
- package/dist/packages/wje-tab-panel/tab-panel.d.ts +0 -2
- package/dist/packages/wje-tab-panel/tab-panel.element.d.ts +0 -23
- package/dist/packages/wje-textarea/textarea.d.ts +0 -2
- package/dist/packages/wje-textarea/textarea.element.d.ts +0 -176
- package/dist/packages/wje-thumbnail/thumbnail.d.ts +0 -2
- package/dist/packages/wje-thumbnail/thumbnail.element.d.ts +0 -31
- package/dist/packages/wje-timeline/timeline.d.ts +0 -2
- package/dist/packages/wje-timeline/timeline.element.d.ts +0 -25
- package/dist/packages/wje-timeline-item/timeline-item.d.ts +0 -2
- package/dist/packages/wje-timeline-item/timeline-item.element.d.ts +0 -27
- package/dist/packages/wje-toast/toast.d.ts +0 -2
- package/dist/packages/wje-toast/toast.element.d.ts +0 -173
- package/dist/packages/wje-toast/toast.test.d.ts +0 -1
- package/dist/packages/wje-toggle/toggle.d.ts +0 -2
- package/dist/packages/wje-toggle/toggle.element.d.ts +0 -65
- package/dist/packages/wje-toolbar/toolbar.d.ts +0 -2
- package/dist/packages/wje-toolbar/toolbar.element.d.ts +0 -39
- package/dist/packages/wje-toolbar-action/toolbar-action.d.ts +0 -2
- package/dist/packages/wje-toolbar-action/toolbar-action.element.d.ts +0 -35
- package/dist/packages/wje-tooltip/tooltip.d.ts +0 -2
- package/dist/packages/wje-tooltip/tooltip.element.d.ts +0 -71
- package/dist/packages/wje-tree/tree.d.ts +0 -2
- package/dist/packages/wje-tree/tree.element.d.ts +0 -104
- package/dist/packages/wje-tree/tree.test.d.ts +0 -1
- package/dist/packages/wje-tree-item/tree-item.d.ts +0 -2
- package/dist/packages/wje-tree-item/tree-item.element.d.ts +0 -155
- package/dist/packages/wje-tree-item/tree-item.test.d.ts +0 -1
- package/dist/packages/wje-visually-hidden/visually-hidden.d.ts +0 -2
- package/dist/packages/wje-visually-hidden/visually-hidden.element.d.ts +0 -29
|
@@ -1,139 +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
|
-
* Removes the active attribute from the menu before drawing the MenuItem.
|
|
69
|
-
*/
|
|
70
|
-
beforeDraw(): void;
|
|
71
|
-
/**
|
|
72
|
-
* Draws the MenuItem element and sets the variant and collapse attributes.
|
|
73
|
-
* @returns {DocumentFragment} The fragment to be appended to the MenuItem.
|
|
74
|
-
*/
|
|
75
|
-
draw(): DocumentFragment;
|
|
76
|
-
hasSubmenu: boolean;
|
|
77
|
-
popup: HTMLElement;
|
|
78
|
-
native: HTMLDivElement;
|
|
79
|
-
submenu: HTMLSlotElement;
|
|
80
|
-
/**
|
|
81
|
-
* Adds event listeners after drawing the MenuItem.
|
|
82
|
-
*/
|
|
83
|
-
afterDraw(): void;
|
|
84
|
-
unbindRouterLinks: any;
|
|
85
|
-
mouseenterHandler: (e: any) => void;
|
|
86
|
-
/**
|
|
87
|
-
* Handles the click event on the MenuItem.
|
|
88
|
-
* @param {object} e
|
|
89
|
-
*/
|
|
90
|
-
clickHandler: (e: object) => void;
|
|
91
|
-
/**
|
|
92
|
-
* Checks if the submenu should be hidden based on the event.
|
|
93
|
-
* @param {Event} e The event object.
|
|
94
|
-
*/
|
|
95
|
-
shouldHideSubmenu: (e: Event) => void;
|
|
96
|
-
/**
|
|
97
|
-
* Creates a tooltip for the MenuItem when it is collapsed.
|
|
98
|
-
* @param {HTMLElement} native The native MenuItem element.
|
|
99
|
-
* @returns {HTMLElement} The tooltip element.
|
|
100
|
-
*/
|
|
101
|
-
collapseItem(native: HTMLElement): HTMLElement;
|
|
102
|
-
/**
|
|
103
|
-
* Dispatches a mousemove event.
|
|
104
|
-
*/
|
|
105
|
-
dispatchMove: (e: any) => void;
|
|
106
|
-
/**
|
|
107
|
-
* Dispatches a reposition event.
|
|
108
|
-
*/
|
|
109
|
-
dispatchReposition: (e: any) => void;
|
|
110
|
-
/**
|
|
111
|
-
* Shows the submenu of the MenuItem.
|
|
112
|
-
*/
|
|
113
|
-
showSubmenu(): void;
|
|
114
|
-
/**
|
|
115
|
-
* Hides the submenu of the MenuItem.
|
|
116
|
-
*/
|
|
117
|
-
hideSubmenu(): void;
|
|
118
|
-
/**
|
|
119
|
-
* Toggles the active state of the submenu element.
|
|
120
|
-
* If the submenu is not active, it sets the "active" attribute.
|
|
121
|
-
* If the submenu is already active, it removes the "active" attribute.
|
|
122
|
-
* @param {Event} e The event object.
|
|
123
|
-
*/
|
|
124
|
-
submenuToggle(e: Event): void;
|
|
125
|
-
/**
|
|
126
|
-
* Deactivates the submenu by removing the "active" attribute.
|
|
127
|
-
*/
|
|
128
|
-
deactivateSubmenu(): void;
|
|
129
|
-
/**
|
|
130
|
-
* Activates the submenu of the menu item.
|
|
131
|
-
*/
|
|
132
|
-
activateSubmenu(): void;
|
|
133
|
-
/**
|
|
134
|
-
* Extracts and returns the concatenated text content from all text nodes within the specified element.
|
|
135
|
-
* @param {HTMLElement} element The HTML element from which to extract text content.
|
|
136
|
-
* @returns {string} The concatenated and trimmed text content from the element's text nodes.
|
|
137
|
-
*/
|
|
138
|
-
getTextFromElement(element: HTMLElement): string;
|
|
139
|
-
}
|
|
@@ -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(): string[];
|
|
33
|
-
hasSubmenu: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Draws the component for the menu label.
|
|
36
|
-
* @returns {DocumentFragment}
|
|
37
|
-
*/
|
|
38
|
-
draw(): DocumentFragment;
|
|
39
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
import { default as Icon } from '../wje-icon/icon.js';
|
|
3
|
-
/**
|
|
4
|
-
* `Option` is a custom web component that represents an option.
|
|
5
|
-
* @summary This element represents an option.
|
|
6
|
-
* @documentation https://elements.webjet.sk/components/option
|
|
7
|
-
* @status stable
|
|
8
|
-
* @augments {WJElement}
|
|
9
|
-
* @csspart native - The native part of the option.
|
|
10
|
-
* @slot start - The slot for the start of the option.
|
|
11
|
-
* @slot - The default slot for the option.
|
|
12
|
-
* @slot end - The slot for the end of the option.
|
|
13
|
-
* // @fires wje-option:change - Event fired when the option is clicked.
|
|
14
|
-
* @tag wje-option
|
|
15
|
-
*/
|
|
16
|
-
export default class Option 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
|
-
* Dependencies of the Option component.
|
|
31
|
-
*/
|
|
32
|
-
dependencies: {
|
|
33
|
-
'wje-icon': typeof Icon;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Sets the selected attribute of the option.
|
|
37
|
-
* @param {boolean} value The value to set.
|
|
38
|
-
*/
|
|
39
|
-
set selected(value: boolean);
|
|
40
|
-
/**
|
|
41
|
-
* Sets the value attribute of the option.
|
|
42
|
-
* @param {string} value The value to set.
|
|
43
|
-
*/
|
|
44
|
-
set value(value: string);
|
|
45
|
-
/**
|
|
46
|
-
* Sets the text content of the option.
|
|
47
|
-
* @param {string} value The text to set.
|
|
48
|
-
*/
|
|
49
|
-
set text(value: string);
|
|
50
|
-
/**
|
|
51
|
-
* Draws the component for the option.
|
|
52
|
-
* @returns {DocumentFragment}
|
|
53
|
-
*/
|
|
54
|
-
draw(): DocumentFragment;
|
|
55
|
-
/**
|
|
56
|
-
* Adds event listeners after the component is drawn.
|
|
57
|
-
*/
|
|
58
|
-
afterDraw(): void;
|
|
59
|
-
}
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
import { default as Option } from '../wje-option/option.js';
|
|
3
|
-
import { default as InfiniteScroll } from '../wje-infinite-scroll/infinite-scroll.element.js';
|
|
4
|
-
import { default as List } from '../wje-list/list.element.js';
|
|
5
|
-
/**
|
|
6
|
-
* `Options` is a custom web component that represents a set of options.
|
|
7
|
-
* It extends from `WJElement`.
|
|
8
|
-
* @summary This element represents a set of options.
|
|
9
|
-
* @documentation https://elements.webjet.sk/components/options
|
|
10
|
-
* @status stable
|
|
11
|
-
* @augments {WJElement}
|
|
12
|
-
* // @fires wje-options:load - Event fired when the options are loaded.
|
|
13
|
-
* @tag wje-options
|
|
14
|
-
*/
|
|
15
|
-
export default class Options extends WJElement {
|
|
16
|
-
/**
|
|
17
|
-
* Returns the list of attributes to observe for changes.
|
|
18
|
-
* @static
|
|
19
|
-
* @returns {Array<string>}
|
|
20
|
-
*/
|
|
21
|
-
static get observedAttributes(): string[];
|
|
22
|
-
_loadedOptions: any[];
|
|
23
|
-
dependencies: {
|
|
24
|
-
'wje-option': typeof Option;
|
|
25
|
-
'wje-infinite-scroll': typeof InfiniteScroll;
|
|
26
|
-
'wje-list': typeof List;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Sets the option array path attribute.
|
|
30
|
-
* @param {string} value The value to set for the option array path.
|
|
31
|
-
*/
|
|
32
|
-
set optionArrayPath(value: string);
|
|
33
|
-
/**
|
|
34
|
-
* Gets the option array path attribute.
|
|
35
|
-
* @returns {string} The value of the option array path attribute or "data" if not set.
|
|
36
|
-
*/
|
|
37
|
-
get optionArrayPath(): string;
|
|
38
|
-
/**
|
|
39
|
-
* Checks if the option array path attribute is present.
|
|
40
|
-
* @returns {boolean} True if the option array path attribute is present, false otherwise.
|
|
41
|
-
*/
|
|
42
|
-
get hasOptionArrayPath(): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Sets the dropdown height attribute.
|
|
45
|
-
* @param {string} value The value to set for the dropdown height.
|
|
46
|
-
*/
|
|
47
|
-
set dropdownHeight(value: string);
|
|
48
|
-
/**
|
|
49
|
-
* Gets the dropdown height attribute.
|
|
50
|
-
* @returns {string} The value of the dropdown height attribute or "100%" if not set.
|
|
51
|
-
*/
|
|
52
|
-
get dropdownHeight(): string;
|
|
53
|
-
/**
|
|
54
|
-
* Sets the item value attribute.
|
|
55
|
-
* @param {string} value The value to set for the item value.
|
|
56
|
-
*/
|
|
57
|
-
set itemValue(value: string);
|
|
58
|
-
/**
|
|
59
|
-
* Gets the item value attribute.
|
|
60
|
-
* @returns {string} The value of the item value attribute or "value" if not set.
|
|
61
|
-
*/
|
|
62
|
-
get itemValue(): string;
|
|
63
|
-
/**
|
|
64
|
-
* Sets the item text attribute.
|
|
65
|
-
* @param {string} value The value to set for the item text.
|
|
66
|
-
*/
|
|
67
|
-
set itemText(value: string);
|
|
68
|
-
/**
|
|
69
|
-
* Gets the item text attribute.
|
|
70
|
-
* @returns {string} The value of the item text attribute or "text" if not set.
|
|
71
|
-
*/
|
|
72
|
-
get itemText(): string;
|
|
73
|
-
/**
|
|
74
|
-
* Sets the lazy load size attribute.
|
|
75
|
-
* @param {number} value The value to set for the lazy load size.
|
|
76
|
-
*/
|
|
77
|
-
set lazyLoadSize(value: number);
|
|
78
|
-
/**
|
|
79
|
-
* Gets the lazy load size attribute.
|
|
80
|
-
* @returns {number} The value of the lazy load size attribute or 10 if not set.
|
|
81
|
-
*/
|
|
82
|
-
get lazyLoadSize(): number;
|
|
83
|
-
/**
|
|
84
|
-
* Sets the search attribute.
|
|
85
|
-
* @param {string} value The value to set for the search.
|
|
86
|
-
*/
|
|
87
|
-
set search(value: string);
|
|
88
|
-
/**
|
|
89
|
-
* Gets the search attribute.
|
|
90
|
-
* @returns {string} The value of the search attribute.
|
|
91
|
-
*/
|
|
92
|
-
get search(): string;
|
|
93
|
-
/**
|
|
94
|
-
* Checks if the search attribute is present.
|
|
95
|
-
* @returns {boolean} True if the search attribute is present, false otherwise.
|
|
96
|
-
*/
|
|
97
|
-
get hasSearch(): boolean;
|
|
98
|
-
set searchToQueryParams(value: string);
|
|
99
|
-
get searchToQueryParams(): string;
|
|
100
|
-
get hasSearchToQueryParams(): boolean;
|
|
101
|
-
/**
|
|
102
|
-
* Sets the lazy attribute.
|
|
103
|
-
* @param {boolean} value The value to set for the lazy attribute.
|
|
104
|
-
*/
|
|
105
|
-
set lazy(value: boolean);
|
|
106
|
-
/**
|
|
107
|
-
* Checks if the lazy attribute is present.
|
|
108
|
-
* @returns {boolean} True if the lazy attribute is present, false otherwise.
|
|
109
|
-
*/
|
|
110
|
-
get lazy(): boolean;
|
|
111
|
-
/**
|
|
112
|
-
* Gets the loaded options.
|
|
113
|
-
* @returns {Array} The loaded options.
|
|
114
|
-
*/
|
|
115
|
-
get options(): any[];
|
|
116
|
-
set loadedOptions(loadedOptions: any[]);
|
|
117
|
-
get loadedOptions(): any[];
|
|
118
|
-
/**
|
|
119
|
-
* Lifecycle method, called whenever an observed property changes.
|
|
120
|
-
*/
|
|
121
|
-
attributeChangedCallback(name: any, oldValue: any, newValue: any): void;
|
|
122
|
-
/**
|
|
123
|
-
* Prepares the component before drawing.
|
|
124
|
-
* Fetches the pages and creates the options elements.
|
|
125
|
-
*/
|
|
126
|
-
afterDraw(): void;
|
|
127
|
-
/**
|
|
128
|
-
* Draws the component.
|
|
129
|
-
* @returns {DocumentFragment}
|
|
130
|
-
*/
|
|
131
|
-
draw(): DocumentFragment;
|
|
132
|
-
infiniteScroll: HTMLElement;
|
|
133
|
-
response: any;
|
|
134
|
-
/**
|
|
135
|
-
* Processes the given data and returns the options based on the option array path.
|
|
136
|
-
* @param {any} data The data to be processed.
|
|
137
|
-
* @returns {any} - The options based on the option array path.
|
|
138
|
-
*/
|
|
139
|
-
processData(data: any): any;
|
|
140
|
-
/**
|
|
141
|
-
* Filters out drawn options from the response.
|
|
142
|
-
* @param {object | null} response The response to filter.
|
|
143
|
-
* @returns {object} The filtered response.
|
|
144
|
-
*/
|
|
145
|
-
filterOutDrawnOptions(response: object | null): object;
|
|
146
|
-
/**
|
|
147
|
-
* Recursively updates the object based on the provided path to the property.
|
|
148
|
-
* @param {object | Array | null} object
|
|
149
|
-
* @param {Array<string> | null} pathToProperty
|
|
150
|
-
* @returns {object | Array | null}
|
|
151
|
-
*/
|
|
152
|
-
recursiveUpdate: (object: object | any[] | null, pathToProperty: Array<string> | null) => object | any[] | null;
|
|
153
|
-
/**
|
|
154
|
-
* Generates an HTML option element based on the provided item.
|
|
155
|
-
* @param {object} item The item to generate the option element for.
|
|
156
|
-
* @returns {HTMLElement} The generated option element.
|
|
157
|
-
*/
|
|
158
|
-
htmlItem: (item: object) => HTMLElement;
|
|
159
|
-
/**
|
|
160
|
-
* Fetches the pages from the provided URL.
|
|
161
|
-
* @param {number} page The page number to fetch.
|
|
162
|
-
* @returns {Promise<object>} The fetched data.
|
|
163
|
-
* @throws Will throw an error if the response is not ok.
|
|
164
|
-
*/
|
|
165
|
-
getPages(page: number): Promise<object>;
|
|
166
|
-
/**
|
|
167
|
-
* Finds the selected option data based on the given selected option values.
|
|
168
|
-
* @param {Array} selectedOptionValues The array of selected option values.
|
|
169
|
-
* @returns {Array} - The array of option data that matches the selected option values.
|
|
170
|
-
*/
|
|
171
|
-
findSelectedOptionData(selectedOptionValues?: any[]): any[];
|
|
172
|
-
/**
|
|
173
|
-
* Adds an option to the element.
|
|
174
|
-
* @param {object} optionData The data of the option to be added.
|
|
175
|
-
*/
|
|
176
|
-
addOption(optionData: object): void;
|
|
177
|
-
/**
|
|
178
|
-
* Adds options to the element.
|
|
179
|
-
* @param {Array} optionsData The array of option data to be added.
|
|
180
|
-
* @param {boolean} [silent] Whether to suppress events triggered by adding options.
|
|
181
|
-
*/
|
|
182
|
-
addOptions(optionsData?: any[], silent?: boolean): void;
|
|
183
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* @summary Orgchart is a custom web component that extends WJElement.
|
|
4
|
-
* @documentation https://elements.webjet.sk/components/Orgchart
|
|
5
|
-
* @status stable
|
|
6
|
-
* @augments WJElement
|
|
7
|
-
* @csspart - Styles the element.
|
|
8
|
-
* @tag wje-orgchart
|
|
9
|
-
* @example
|
|
10
|
-
*/
|
|
11
|
-
export default class Orgchart extends WJElement {
|
|
12
|
-
/**
|
|
13
|
-
* Returns the CSS styles for the component.
|
|
14
|
-
* @static
|
|
15
|
-
* @returns {CSSStyleSheet}
|
|
16
|
-
*/
|
|
17
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
18
|
-
/**
|
|
19
|
-
* Draws the component for the org chart.
|
|
20
|
-
* @returns {DocumentFragment}
|
|
21
|
-
*/
|
|
22
|
-
draw(): DocumentFragment;
|
|
23
|
-
native: HTMLDivElement;
|
|
24
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* @summary OrgchartItem is a custom web component that extends WJElement.
|
|
4
|
-
* @documentation https://elements.webjet.sk/components/OrgchartItem
|
|
5
|
-
* @status stable
|
|
6
|
-
* @augments WJElement
|
|
7
|
-
* @csspart - Styles the element.
|
|
8
|
-
* @tag wje-orgchart-item
|
|
9
|
-
* @example
|
|
10
|
-
*/
|
|
11
|
-
export default class OrgchartGroup extends WJElement {
|
|
12
|
-
/**
|
|
13
|
-
* Returns the CSS styles for the component.
|
|
14
|
-
* @static
|
|
15
|
-
* @returns {CSSStyleSheet}
|
|
16
|
-
*/
|
|
17
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
18
|
-
/**
|
|
19
|
-
* Draws the component for the org chart group.
|
|
20
|
-
* @returns {DocumentFragment}
|
|
21
|
-
*/
|
|
22
|
-
draw(): DocumentFragment;
|
|
23
|
-
card: HTMLElement;
|
|
24
|
-
/**
|
|
25
|
-
* After Draws the component for the org chart group.
|
|
26
|
-
*/
|
|
27
|
-
afterDraw(): void;
|
|
28
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* @summary OrgchartItem is a custom web component that extends WJElement.
|
|
4
|
-
* @documentation https://elements.webjet.sk/components/OrgchartItem
|
|
5
|
-
* @status stable
|
|
6
|
-
* @augments WJElement
|
|
7
|
-
* @attribute {boolean} boss - The boss of the orgchart item (default: false).
|
|
8
|
-
* @slot - The default slot for the orgchart item.
|
|
9
|
-
* @slot child - The child slot for the orgchart item.
|
|
10
|
-
* @csspart - Styles the element.
|
|
11
|
-
* @csspart native - Styles the native element.
|
|
12
|
-
* @csspart expander - Styles the expander element.
|
|
13
|
-
* @tag wje-orgchart-item
|
|
14
|
-
*/
|
|
15
|
-
export default class OrgchartItem extends WJElement {
|
|
16
|
-
/**
|
|
17
|
-
* Returns the CSS styles for the component.
|
|
18
|
-
* @static
|
|
19
|
-
* @returns {CSSStyleSheet}
|
|
20
|
-
*/
|
|
21
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
22
|
-
/**
|
|
23
|
-
* Sets the boss of the orgchart item.
|
|
24
|
-
* @param value
|
|
25
|
-
*/
|
|
26
|
-
set boss(value: boolean);
|
|
27
|
-
/**
|
|
28
|
-
* Gets the boss of the orgchart item.
|
|
29
|
-
* @returns {boolean}
|
|
30
|
-
*/
|
|
31
|
-
get boss(): boolean;
|
|
32
|
-
beforeDraw(): void;
|
|
33
|
-
/**
|
|
34
|
-
* Draws the component for the org chart item.
|
|
35
|
-
* @returns {DocumentFragment}
|
|
36
|
-
*/
|
|
37
|
-
draw(): DocumentFragment;
|
|
38
|
-
expander: HTMLDivElement;
|
|
39
|
-
/**
|
|
40
|
-
* After Draws the component for the org chart item.
|
|
41
|
-
*/
|
|
42
|
-
afterDraw(): void;
|
|
43
|
-
/**
|
|
44
|
-
* Toggles the children of the orgchart item.
|
|
45
|
-
* @param e The event object.
|
|
46
|
-
*/
|
|
47
|
-
toggleChildren: (e: any) => void;
|
|
48
|
-
dispatchEvent(e: any): boolean;
|
|
49
|
-
}
|