wj-elements 0.1.199 → 0.1.201
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/packages/index.d.ts +107 -0
- package/dist/packages/internals/form-associated-element.d.ts +143 -0
- package/dist/packages/localize/localize.d.ts +47 -0
- package/dist/packages/translations/en-gb.d.ts +18 -0
- package/dist/packages/translations/sk-sk.d.ts +13 -0
- package/dist/packages/utils/animations.d.ts +2 -0
- package/dist/packages/utils/base-path.d.ts +14 -0
- package/dist/packages/utils/date.d.ts +2 -0
- package/dist/packages/utils/element-utils.d.ts +46 -0
- package/dist/packages/utils/event.d.ts +67 -0
- package/dist/packages/utils/icon-library.d.ts +3 -0
- package/dist/packages/utils/localize.d.ts +4 -0
- package/dist/packages/utils/permissions.d.ts +40 -0
- package/dist/packages/utils/universal-service.d.ts +18 -0
- package/dist/packages/utils/utils.d.ts +1 -0
- package/dist/packages/wje-accordion/accordion.d.ts +2 -0
- package/dist/packages/wje-accordion/accordion.element.d.ts +72 -0
- package/dist/packages/wje-accordion/accordion.test.d.ts +0 -0
- package/dist/packages/wje-accordion-item/accordion-item.d.ts +2 -0
- package/dist/packages/wje-accordion-item/accordion-item.element.d.ts +40 -0
- package/dist/packages/wje-animation/animation.d.ts +2 -0
- package/dist/packages/wje-animation/animation.element.d.ts +158 -0
- package/dist/packages/wje-animation/animation.test.d.ts +1 -0
- package/dist/packages/wje-aside/aside.d.ts +2 -0
- package/dist/packages/wje-aside/aside.element.d.ts +31 -0
- package/dist/packages/wje-avatar/avatar.d.ts +2 -0
- package/dist/packages/wje-avatar/avatar.element.d.ts +76 -0
- package/dist/packages/wje-avatar/avatar.test.d.ts +1 -0
- package/dist/packages/wje-avatar/service/service.d.ts +40 -0
- package/dist/packages/wje-badge/badge.d.ts +2 -0
- package/dist/packages/wje-badge/badge.element.d.ts +35 -0
- package/dist/packages/wje-badge/badge.test.d.ts +1 -0
- package/dist/packages/wje-breadcrumb/breadcrumb.d.ts +2 -0
- package/dist/packages/wje-breadcrumb/breadcrumb.element.d.ts +80 -0
- package/dist/packages/wje-breadcrumbs/breadcrumbs.d.ts +2 -0
- package/dist/packages/wje-breadcrumbs/breadcrumbs.element.d.ts +97 -0
- package/dist/packages/wje-breadcrumbs/breadcrumbs.test.d.ts +1 -0
- package/dist/packages/wje-button/button.d.ts +2 -0
- package/dist/packages/wje-button/button.element.d.ts +204 -0
- package/dist/packages/wje-button/button.test.d.ts +1 -0
- package/dist/packages/wje-button-group/button-group.d.ts +2 -0
- package/dist/packages/wje-button-group/button-group.element.d.ts +96 -0
- package/dist/packages/wje-card/card.d.ts +2 -0
- package/dist/packages/wje-card/card.element.d.ts +29 -0
- package/dist/packages/wje-card-content/card-content.d.ts +2 -0
- package/dist/packages/wje-card-content/card-content.element.d.ts +22 -0
- package/dist/packages/wje-card-controls/card-controls.d.ts +2 -0
- package/dist/packages/wje-card-controls/card-controls.element.d.ts +23 -0
- package/dist/packages/wje-card-header/card-header.d.ts +2 -0
- package/dist/packages/wje-card-header/card-header.element.d.ts +22 -0
- package/dist/packages/wje-card-subtitle/card-subtitle.d.ts +2 -0
- package/dist/packages/wje-card-subtitle/card-subtitle.element.d.ts +30 -0
- package/dist/packages/wje-card-title/card-title.d.ts +2 -0
- package/dist/packages/wje-card-title/card-title.element.d.ts +32 -0
- package/dist/packages/wje-carousel/carousel.d.ts +2 -0
- package/dist/packages/wje-carousel/carousel.element.d.ts +146 -0
- package/dist/packages/wje-carousel-item/carousel-item.d.ts +2 -0
- package/dist/packages/wje-carousel-item/carousel-item.element.d.ts +38 -0
- package/dist/packages/wje-checkbox/checkbox.d.ts +2 -0
- package/dist/packages/wje-checkbox/checkbox.element.d.ts +99 -0
- package/dist/packages/wje-chip/chip.d.ts +2 -0
- package/dist/packages/wje-chip/chip.element.d.ts +64 -0
- package/dist/packages/wje-col/col.d.ts +2 -0
- package/dist/packages/wje-col/col.element.d.ts +16 -0
- package/dist/packages/wje-color-picker/color-picker.d.ts +2 -0
- package/dist/packages/wje-color-picker/color-picker.element.d.ts +187 -0
- package/dist/packages/wje-color-picker/color-picker.test.d.ts +1 -0
- package/dist/packages/wje-container/container.d.ts +2 -0
- package/dist/packages/wje-container/container.element.d.ts +31 -0
- package/dist/packages/wje-copy-button/copy-button.d.ts +2 -0
- package/dist/packages/wje-copy-button/copy-button.element.d.ts +89 -0
- package/dist/packages/wje-copy-button/service/service.d.ts +12 -0
- package/dist/packages/wje-dialog/dialog.d.ts +2 -0
- package/dist/packages/wje-dialog/dialog.element.d.ts +127 -0
- package/dist/packages/wje-divider/divider.d.ts +2 -0
- package/dist/packages/wje-divider/divider.element.d.ts +32 -0
- package/dist/packages/wje-dropdown/dropdown.d.ts +2 -0
- package/dist/packages/wje-dropdown/dropdown.element.d.ts +84 -0
- package/dist/packages/wje-element/element.d.ts +306 -0
- package/dist/packages/wje-file-upload/file-upload.d.ts +2 -0
- package/dist/packages/wje-file-upload/file-upload.element.d.ts +191 -0
- package/dist/packages/wje-file-upload/service/service.d.ts +70 -0
- package/dist/packages/wje-file-upload-item/file-upload-item.d.ts +2 -0
- package/dist/packages/wje-file-upload-item/file-upload-item.element.d.ts +68 -0
- package/dist/packages/wje-footer/footer.d.ts +2 -0
- package/dist/packages/wje-footer/footer.element.d.ts +28 -0
- package/dist/packages/wje-form/form.d.ts +2 -0
- package/dist/packages/wje-form/form.element.d.ts +28 -0
- package/dist/packages/wje-format-digital/format-digital.d.ts +2 -0
- package/dist/packages/wje-format-digital/format-digital.element.d.ts +83 -0
- package/dist/packages/wje-format-digital/format-digital.test.d.ts +1 -0
- package/dist/packages/wje-grid/grid.d.ts +2 -0
- package/dist/packages/wje-grid/grid.element.d.ts +26 -0
- package/dist/packages/wje-header/header.d.ts +2 -0
- package/dist/packages/wje-header/header.element.d.ts +35 -0
- package/dist/packages/wje-icon/icon.d.ts +2 -0
- package/dist/packages/wje-icon/icon.element.d.ts +40 -0
- package/dist/packages/wje-icon/service/library.d.ts +3 -0
- package/dist/packages/wje-icon/service/service.d.ts +11 -0
- package/dist/packages/wje-icon-picker/icon-picker.d.ts +2 -0
- package/dist/packages/wje-icon-picker/icon-picker.element.d.ts +187 -0
- package/dist/packages/wje-img/img.d.ts +2 -0
- package/dist/packages/wje-img/img.element.d.ts +118 -0
- package/dist/packages/wje-img-comparer/img-comparer.d.ts +2 -0
- package/dist/packages/wje-img-comparer/img-comparer.element.d.ts +60 -0
- package/dist/packages/wje-img-comparer/service/service.d.ts +1 -0
- package/dist/packages/wje-infinite-scroll/infinite-scroll.d.ts +2 -0
- package/dist/packages/wje-infinite-scroll/infinite-scroll.element.d.ts +172 -0
- package/dist/packages/wje-input/input.d.ts +2 -0
- package/dist/packages/wje-input/input.element.d.ts +159 -0
- package/dist/packages/wje-input-file/input-file.d.ts +2 -0
- package/dist/packages/wje-input-file/input-file.element.d.ts +50 -0
- package/dist/packages/wje-item/item.d.ts +2 -0
- package/dist/packages/wje-item/item.element.d.ts +68 -0
- package/dist/packages/wje-kanban/kanban.d.ts +2 -0
- package/dist/packages/wje-kanban/kanban.element.d.ts +182 -0
- package/dist/packages/wje-label/label.d.ts +2 -0
- package/dist/packages/wje-label/label.element.d.ts +34 -0
- package/dist/packages/wje-level-indicator/level-indicator.d.ts +2 -0
- package/dist/packages/wje-level-indicator/level-indicator.element.d.ts +91 -0
- package/dist/packages/wje-list/list.d.ts +2 -0
- package/dist/packages/wje-list/list.element.d.ts +31 -0
- package/dist/packages/wje-main/main.d.ts +2 -0
- package/dist/packages/wje-main/main.element.d.ts +30 -0
- package/dist/packages/wje-masonry/masonry.d.ts +2 -0
- package/dist/packages/wje-masonry/masonry.element.d.ts +114 -0
- package/dist/packages/wje-masonry/service/service.d.ts +32 -0
- package/dist/packages/wje-menu/menu.d.ts +2 -0
- package/dist/packages/wje-menu/menu.element.d.ts +47 -0
- package/dist/packages/wje-menu-button/menu-button.d.ts +2 -0
- package/dist/packages/wje-menu-button/menu-button.element.d.ts +34 -0
- package/dist/packages/wje-menu-item/menu-item.d.ts +2 -0
- package/dist/packages/wje-menu-item/menu-item.element.d.ts +158 -0
- package/dist/packages/wje-menu-label/menu-label.d.ts +2 -0
- package/dist/packages/wje-menu-label/menu-label.element.d.ts +39 -0
- package/dist/packages/wje-option/option.d.ts +2 -0
- package/dist/packages/wje-option/option.element.d.ts +95 -0
- package/dist/packages/wje-options/options.d.ts +2 -0
- package/dist/packages/wje-options/options.element.d.ts +232 -0
- package/dist/packages/wje-orgchart/orgchart.d.ts +2 -0
- package/dist/packages/wje-orgchart/orgchart.element.d.ts +24 -0
- package/dist/packages/wje-orgchart-group/orgchart-group.d.ts +2 -0
- package/dist/packages/wje-orgchart-group/orgchart-group.element.d.ts +28 -0
- package/dist/packages/wje-orgchart-item/orgchart-item.d.ts +2 -0
- package/dist/packages/wje-orgchart-item/orgchart-item.element.d.ts +49 -0
- package/dist/packages/wje-pagination/pagination.d.ts +2 -0
- package/dist/packages/wje-pagination/pagination.element.d.ts +166 -0
- package/dist/packages/wje-pagination/pagination.test.d.ts +1 -0
- package/dist/packages/wje-pagination/service/service.d.ts +9 -0
- package/dist/packages/wje-panel/panel.d.ts +2 -0
- package/dist/packages/wje-panel/panel.element.d.ts +34 -0
- package/dist/packages/wje-popup/popup.d.ts +2 -0
- package/dist/packages/wje-popup/popup.element.d.ts +94 -0
- package/dist/packages/wje-progress-bar/progress-bar.d.ts +2 -0
- package/dist/packages/wje-progress-bar/progress-bar.element.d.ts +96 -0
- package/dist/packages/wje-qr-code/qr-code.d.ts +2 -0
- package/dist/packages/wje-qr-code/qr-code.element.d.ts +33 -0
- package/dist/packages/wje-radio/radio.d.ts +2 -0
- package/dist/packages/wje-radio/radio.element.d.ts +64 -0
- package/dist/packages/wje-radio-group/radio-group.d.ts +2 -0
- package/dist/packages/wje-radio-group/radio-group.element.d.ts +61 -0
- package/dist/packages/wje-rate/rate.d.ts +2 -0
- package/dist/packages/wje-rate/rate.element.d.ts +156 -0
- package/dist/packages/wje-relative-time/relative-time.d.ts +2 -0
- package/dist/packages/wje-relative-time/relative-time.element.d.ts +55 -0
- package/dist/packages/wje-relative-time/relative-time.test.d.ts +1 -0
- package/dist/packages/wje-reorder/reorder.d.ts +2 -0
- package/dist/packages/wje-reorder/reorder.element.d.ts +119 -0
- package/dist/packages/wje-reorder-dropzone/reorder-dropzone.d.ts +2 -0
- package/dist/packages/wje-reorder-dropzone/reorder-dropzone.element.d.ts +23 -0
- package/dist/packages/wje-reorder-handle/reorder-handle.d.ts +2 -0
- package/dist/packages/wje-reorder-handle/reorder-handle.element.d.ts +84 -0
- package/dist/packages/wje-reorder-item/reorder-item.d.ts +2 -0
- package/dist/packages/wje-reorder-item/reorder-item.element.d.ts +24 -0
- package/dist/packages/wje-route/route.d.ts +2 -0
- package/dist/packages/wje-route/route.element.d.ts +22 -0
- package/dist/packages/wje-router/router.d.ts +2 -0
- package/dist/packages/wje-router/router.element.d.ts +39 -0
- package/dist/packages/wje-router-link/router-link.d.ts +2 -0
- package/dist/packages/wje-router-link/router-link.element.d.ts +31 -0
- package/dist/packages/wje-router-outlet/router-outlet.d.ts +2 -0
- package/dist/packages/wje-router-outlet/router-outlet.element.d.ts +16 -0
- package/dist/packages/wje-row/row.d.ts +2 -0
- package/dist/packages/wje-row/row.element.d.ts +23 -0
- package/dist/packages/wje-select/select.d.ts +2 -0
- package/dist/packages/wje-select/select.element.d.ts +358 -0
- package/dist/packages/wje-slider/slider.d.ts +2 -0
- package/dist/packages/wje-slider/slider.element.d.ts +103 -0
- package/dist/packages/wje-sliding-container/sliding-container.d.ts +2 -0
- package/dist/packages/wje-sliding-container/sliding-container.element.d.ts +265 -0
- package/dist/packages/wje-split-view/service/service.d.ts +1 -0
- package/dist/packages/wje-split-view/split-view.d.ts +2 -0
- package/dist/packages/wje-split-view/split-view.element.d.ts +65 -0
- package/dist/packages/wje-status/status.d.ts +2 -0
- package/dist/packages/wje-status/status.element.d.ts +26 -0
- package/dist/packages/wje-step/step.d.ts +2 -0
- package/dist/packages/wje-step/step.element.d.ts +23 -0
- package/dist/packages/wje-stepper/stepper.d.ts +2 -0
- package/dist/packages/wje-stepper/stepper.element.d.ts +80 -0
- package/dist/packages/wje-store/default-store-actions.d.ts +25 -0
- package/dist/packages/wje-store/pubsub.d.ts +22 -0
- package/dist/packages/wje-store/store.d.ts +153 -0
- package/dist/packages/wje-tab/tab.d.ts +2 -0
- package/dist/packages/wje-tab/tab.element.d.ts +66 -0
- package/dist/packages/wje-tab-group/tab-group.d.ts +2 -0
- package/dist/packages/wje-tab-group/tab-group.element.d.ts +107 -0
- package/dist/packages/wje-tab-panel/tab-panel.d.ts +2 -0
- package/dist/packages/wje-tab-panel/tab-panel.element.d.ts +23 -0
- package/dist/packages/wje-textarea/textarea.d.ts +2 -0
- package/dist/packages/wje-textarea/textarea.element.d.ts +89 -0
- package/dist/packages/wje-thumbnail/thumbnail.d.ts +2 -0
- package/dist/packages/wje-thumbnail/thumbnail.element.d.ts +31 -0
- package/dist/packages/wje-timeline/timeline.d.ts +2 -0
- package/dist/packages/wje-timeline/timeline.element.d.ts +25 -0
- package/dist/packages/wje-timeline-item/timeline-item.d.ts +2 -0
- package/dist/packages/wje-timeline-item/timeline-item.element.d.ts +27 -0
- package/dist/packages/wje-toast/toast.d.ts +2 -0
- package/dist/packages/wje-toast/toast.element.d.ts +173 -0
- package/dist/packages/wje-toast/toast.test.d.ts +1 -0
- package/dist/packages/wje-toggle/toggle.d.ts +2 -0
- package/dist/packages/wje-toggle/toggle.element.d.ts +65 -0
- package/dist/packages/wje-toolbar/toolbar.d.ts +2 -0
- package/dist/packages/wje-toolbar/toolbar.element.d.ts +39 -0
- package/dist/packages/wje-toolbar-action/toolbar-action.d.ts +2 -0
- package/dist/packages/wje-toolbar-action/toolbar-action.element.d.ts +35 -0
- package/dist/packages/wje-tooltip/tooltip.d.ts +2 -0
- package/dist/packages/wje-tooltip/tooltip.element.d.ts +77 -0
- package/dist/packages/wje-tree/tree.d.ts +2 -0
- package/dist/packages/wje-tree/tree.element.d.ts +105 -0
- package/dist/packages/wje-tree/tree.test.d.ts +1 -0
- package/dist/packages/wje-tree-item/tree-item.d.ts +2 -0
- package/dist/packages/wje-tree-item/tree-item.element.d.ts +155 -0
- package/dist/packages/wje-tree-item/tree-item.test.d.ts +1 -0
- package/dist/packages/wje-visually-hidden/visually-hidden.d.ts +2 -0
- package/dist/packages/wje-visually-hidden/visually-hidden.element.d.ts +29 -0
- package/dist/wje-reorder-handle.js +38 -26
- package/dist/wje-reorder-handle.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,232 @@
|
|
|
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.js';
|
|
4
|
+
import { default as List } from '../wje-list/list.js';
|
|
5
|
+
/**
|
|
6
|
+
* `Options` is a custom web component that represents a set of options. It extends from `WJElement`.
|
|
7
|
+
* @summary This element represents a set of options.
|
|
8
|
+
* @documentation https://elements.webjet.sk/components/options
|
|
9
|
+
* @status stable
|
|
10
|
+
* @tag wje-options
|
|
11
|
+
*/
|
|
12
|
+
export default class Options extends WJElement {
|
|
13
|
+
/**
|
|
14
|
+
* Returns the CSS styles for the component.
|
|
15
|
+
* @static
|
|
16
|
+
* @returns {CSSStyleSheet} The CSS styles for the component.
|
|
17
|
+
*/
|
|
18
|
+
static get cssStyleSheet(): CSSStyleSheet;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves an array of attributes that should be observed for changes.
|
|
21
|
+
* The method returns a list of attribute names that the browser will monitor for changes.
|
|
22
|
+
* @returns {Array<string>} An array of attribute names to observe.
|
|
23
|
+
*/
|
|
24
|
+
static get observedAttributes(): Array<string>;
|
|
25
|
+
dependencies: {
|
|
26
|
+
'wje-option': typeof Option;
|
|
27
|
+
'wje-infinite-scroll': typeof InfiniteScroll;
|
|
28
|
+
'wje-list': typeof List;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Sets the option array path attribute.
|
|
32
|
+
* @param {string} value The value to set for the option array path.
|
|
33
|
+
*/
|
|
34
|
+
set optionArrayPath(value: string);
|
|
35
|
+
/**
|
|
36
|
+
* Gets the option array path attribute.
|
|
37
|
+
* @returns {string} The value of the option array path attribute or "data" if not set.
|
|
38
|
+
*/
|
|
39
|
+
get optionArrayPath(): string;
|
|
40
|
+
/**
|
|
41
|
+
* Checks if the option array path attribute is present.
|
|
42
|
+
* @returns {boolean} True if the option array path attribute is present, false otherwise.
|
|
43
|
+
*/
|
|
44
|
+
get hasOptionArrayPath(): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Sets the dropdown height attribute.
|
|
47
|
+
* @param {string} value The value to set for the dropdown height.
|
|
48
|
+
*/
|
|
49
|
+
set dropdownHeight(value: string);
|
|
50
|
+
/**
|
|
51
|
+
* Gets the dropdown height attribute.
|
|
52
|
+
* @returns {string} The value of the dropdown height attribute or "100%" if not set.
|
|
53
|
+
*/
|
|
54
|
+
get dropdownHeight(): string;
|
|
55
|
+
/**
|
|
56
|
+
* Sets the item value attribute.
|
|
57
|
+
* @param {string} value The value to set for the item value.
|
|
58
|
+
*/
|
|
59
|
+
set itemValue(value: string);
|
|
60
|
+
/**
|
|
61
|
+
* Gets the item value attribute.
|
|
62
|
+
* @returns {string} The value of the item value attribute or "value" if not set.
|
|
63
|
+
*/
|
|
64
|
+
get itemValue(): string;
|
|
65
|
+
/**
|
|
66
|
+
* Sets the item text attribute.
|
|
67
|
+
* @param {string} value The value to set for the item text.
|
|
68
|
+
*/
|
|
69
|
+
set itemText(value: string);
|
|
70
|
+
/**
|
|
71
|
+
* Gets the item text attribute.
|
|
72
|
+
* @returns {string} The value of the item text attribute or "text" if not set.
|
|
73
|
+
*/
|
|
74
|
+
get itemText(): string;
|
|
75
|
+
/**
|
|
76
|
+
* Sets the lazy load size attribute.
|
|
77
|
+
* @param {number} value The value to set for the lazy load size.
|
|
78
|
+
*/
|
|
79
|
+
set lazyLoadSize(value: number);
|
|
80
|
+
/**
|
|
81
|
+
* Gets the lazy load size attribute.
|
|
82
|
+
* @returns {number} The value of the lazy load size attribute or 10 if not set.
|
|
83
|
+
*/
|
|
84
|
+
get lazyLoadSize(): number;
|
|
85
|
+
/**
|
|
86
|
+
* Sets the search attribute.
|
|
87
|
+
* @param {string} value The value to set for the search.
|
|
88
|
+
*/
|
|
89
|
+
set search(value: string);
|
|
90
|
+
/**
|
|
91
|
+
* Gets the search attribute.
|
|
92
|
+
* @returns {string} The value of the search attribute.
|
|
93
|
+
*/
|
|
94
|
+
get search(): string;
|
|
95
|
+
/**
|
|
96
|
+
* Checks if the search attribute is present.
|
|
97
|
+
* @returns {boolean} True if the search attribute is present, false otherwise.
|
|
98
|
+
*/
|
|
99
|
+
get hasSearch(): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Sets the value to define search-to-query params behavior.
|
|
102
|
+
* @param {string} value The value to be set for the search-to-query-params attribute.
|
|
103
|
+
*/
|
|
104
|
+
set searchToQueryParams(value: string);
|
|
105
|
+
/**
|
|
106
|
+
* Retrieves the value of the 'search-to-query-params' attribute from the current instance.
|
|
107
|
+
* @returns {string | null} The value of the 'search-to-query-params' attribute, or null if the attribute is not set.
|
|
108
|
+
*/
|
|
109
|
+
get searchToQueryParams(): string | null;
|
|
110
|
+
/**
|
|
111
|
+
* Determines whether the 'search-to-query-params' attribute is present on the element.
|
|
112
|
+
* @returns {boolean} True if the 'search-to-query-params' attribute exists, otherwise false.
|
|
113
|
+
*/
|
|
114
|
+
get hasSearchToQueryParams(): boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Sets the value of the search parameter name attribute.
|
|
117
|
+
* @param {string} value The string value to set as the search parameter name.
|
|
118
|
+
*/
|
|
119
|
+
set searchParamName(value: string);
|
|
120
|
+
/**
|
|
121
|
+
* Gets the search parameter name used in queries.
|
|
122
|
+
* Retrieves the value of the 'search-param-name' attribute.
|
|
123
|
+
* If the attribute is not set, it defaults to 'search'.
|
|
124
|
+
* @returns {string} The search parameter name used for queries.
|
|
125
|
+
*/
|
|
126
|
+
get searchParamName(): string;
|
|
127
|
+
/**
|
|
128
|
+
* Sets the queryParams attribute on the element.
|
|
129
|
+
* @param {string} value The query parameters to set, represented as a string.
|
|
130
|
+
*/
|
|
131
|
+
set queryParams(value: string);
|
|
132
|
+
/**
|
|
133
|
+
* Retrieves the value of the 'query-params' attribute.
|
|
134
|
+
* @returns {string | null} The value of the 'query-params' attribute, or null if the attribute is not set.
|
|
135
|
+
*/
|
|
136
|
+
get queryParams(): string | null;
|
|
137
|
+
/**
|
|
138
|
+
* Sets the lazy attribute.
|
|
139
|
+
* @param {boolean} value The value to set for the lazy attribute.
|
|
140
|
+
*/
|
|
141
|
+
set lazy(value: boolean);
|
|
142
|
+
/**
|
|
143
|
+
* Checks if the lazy attribute is present.
|
|
144
|
+
* @returns {boolean} True if the lazy attribute is present, false otherwise.
|
|
145
|
+
*/
|
|
146
|
+
get lazy(): boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Gets the loaded options.
|
|
149
|
+
* @returns {Array} The loaded options.
|
|
150
|
+
*/
|
|
151
|
+
get options(): any[];
|
|
152
|
+
/**
|
|
153
|
+
* Sets the loaded options.
|
|
154
|
+
* @type {Array}
|
|
155
|
+
*/
|
|
156
|
+
set loadedOptions(loadedOptions: any[]);
|
|
157
|
+
/**
|
|
158
|
+
* Gets the loaded options.
|
|
159
|
+
* @type {Array}
|
|
160
|
+
*/
|
|
161
|
+
get loadedOptions(): any[];
|
|
162
|
+
/**
|
|
163
|
+
* Sets the elements that are preloaded and ready to be drawn.
|
|
164
|
+
* @param {Array|object} elements The elements to be set for preloading. This can be an array or a specific object containing drawable elements.
|
|
165
|
+
*/
|
|
166
|
+
private set drawPreloadedElements(elements);
|
|
167
|
+
/**
|
|
168
|
+
* Array of preloaded elements.
|
|
169
|
+
* @type {Array}
|
|
170
|
+
* @private
|
|
171
|
+
*/
|
|
172
|
+
private get drawPreloadedElements();
|
|
173
|
+
/**
|
|
174
|
+
* Draws the component.
|
|
175
|
+
* @returns {DocumentFragment}
|
|
176
|
+
*/
|
|
177
|
+
draw(): DocumentFragment;
|
|
178
|
+
infiniteScroll: HTMLElement;
|
|
179
|
+
response: any;
|
|
180
|
+
afterDraw(): void;
|
|
181
|
+
dispatchOptionsLoadEvent: (e: any) => void;
|
|
182
|
+
/**
|
|
183
|
+
* Processes the provided data based on the optional array path set in the instance.
|
|
184
|
+
* @param {object} data The input data to be processed.
|
|
185
|
+
* @returns {Array} The resolved options array from the data or an empty array if no match is found.
|
|
186
|
+
*/
|
|
187
|
+
processData(data: object): any[];
|
|
188
|
+
/**
|
|
189
|
+
* Filters out options from the response object that have already been drawn, based on the specified option array path.
|
|
190
|
+
* @param {object} response The response object containing data to process.
|
|
191
|
+
* @returns {object} The filtered response object with drawn options removed.
|
|
192
|
+
*/
|
|
193
|
+
filterOutDrawnOptions(response: object): object;
|
|
194
|
+
/**
|
|
195
|
+
* Recursively updates the object based on the provided path to the property.
|
|
196
|
+
* @param {object | Array | null} object
|
|
197
|
+
* @param {Array<string> | null} pathToProperty
|
|
198
|
+
* @returns {object | Array | null}
|
|
199
|
+
*/
|
|
200
|
+
recursiveUpdate: (object: object | any[] | null, pathToProperty: Array<string> | null) => object | any[] | null;
|
|
201
|
+
/**
|
|
202
|
+
* Generates an HTML option element based on the provided item.
|
|
203
|
+
* @param {object} item The item to generate the option element for.
|
|
204
|
+
* @returns {HTMLElement} The generated option element.
|
|
205
|
+
*/
|
|
206
|
+
htmlItem: (item: object) => HTMLElement;
|
|
207
|
+
/**
|
|
208
|
+
* Fetches the pages from the provided URL.
|
|
209
|
+
* @param {number} page The page number to fetch.
|
|
210
|
+
* @returns {Promise<object>} The fetched data.
|
|
211
|
+
* @throws Will throw an error if the response is not ok.
|
|
212
|
+
*/
|
|
213
|
+
getPages(page: number): Promise<object>;
|
|
214
|
+
/**
|
|
215
|
+
* Finds the selected option data based on the given selected option values.
|
|
216
|
+
* @param {Array} selectedOptionValues The array of selected option values.
|
|
217
|
+
* @returns {Array} - The array of option data that matches the selected option values.
|
|
218
|
+
*/
|
|
219
|
+
findSelectedOptionData(selectedOptionValues?: any[]): any[];
|
|
220
|
+
/**
|
|
221
|
+
* Adds an option to the element.
|
|
222
|
+
* @param {object} optionData The data of the option to be added.
|
|
223
|
+
*/
|
|
224
|
+
addOption(optionData: object): void;
|
|
225
|
+
/**
|
|
226
|
+
* Adds options to the element.
|
|
227
|
+
* @param {Array} optionsData The array of option data to be added.
|
|
228
|
+
* @param {boolean} [silent] Whether to suppress events triggered by adding options.
|
|
229
|
+
*/
|
|
230
|
+
addOptions(optionsData?: any[], silent?: boolean): void;
|
|
231
|
+
#private;
|
|
232
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
+
import { Localizer } from '../utils/localize.js';
|
|
3
|
+
/**
|
|
4
|
+
* @summary This class represents the Pagination component for navigating through paginated content and dynamically updating navigation elements based on attributes like the number of items, page size, etc. Extends the WJElement class.
|
|
5
|
+
* @documentation https://elements.webjet.sk/components/pagination
|
|
6
|
+
* @status stable
|
|
7
|
+
* @augments WJElement
|
|
8
|
+
* @dependency wje-icon, wje-button
|
|
9
|
+
* @csspart native - The wrapper element for the pagination component.
|
|
10
|
+
*/
|
|
11
|
+
export default class Pagination extends WJElement {
|
|
12
|
+
/**
|
|
13
|
+
* Returns the CSS styles for the component.
|
|
14
|
+
* @static
|
|
15
|
+
* @returns {CSSStyleSheet}
|
|
16
|
+
*/
|
|
17
|
+
static get cssStyleSheet(): CSSStyleSheet;
|
|
18
|
+
/**
|
|
19
|
+
* Getter for the observedAttributes attribute of the input element.
|
|
20
|
+
* @returns {Array} The attributes to observe for changes.
|
|
21
|
+
*/
|
|
22
|
+
static get observedAttributes(): any[];
|
|
23
|
+
localizer: Localizer;
|
|
24
|
+
_paginateObj: any;
|
|
25
|
+
/**
|
|
26
|
+
* Sets the value of the 'page' attribute for the object.
|
|
27
|
+
* @param {string} value The value to set for the 'page' attribute.
|
|
28
|
+
*/
|
|
29
|
+
set page(value: string);
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves the current page number as a numeric value.
|
|
32
|
+
* @returns {number} The current page number. Returns 0 if the attribute 'page' is not set or is not a numeric value.
|
|
33
|
+
*/
|
|
34
|
+
get page(): number;
|
|
35
|
+
/**
|
|
36
|
+
* Sets the maximum number of pages.
|
|
37
|
+
* Updates the 'max-pages' attribute with the provided value.
|
|
38
|
+
* @param {number|string} value The maximum number of pages to set. Can be a number or a parsable string representing a number.
|
|
39
|
+
*/
|
|
40
|
+
set maxPages(value: number | string);
|
|
41
|
+
/**
|
|
42
|
+
* Gets the maximum number of pages.
|
|
43
|
+
* This getter retrieves the value of the "max-pages" attribute from the element.
|
|
44
|
+
* If the attribute is not set or is invalid, it defaults to 3.
|
|
45
|
+
* @returns {number} The maximum number of pages as a numeric value.
|
|
46
|
+
*/
|
|
47
|
+
get maxPages(): number;
|
|
48
|
+
/**
|
|
49
|
+
* Sets the `pageSize` attribute to the specified value.
|
|
50
|
+
* @param {number|string} value The desired page size value. This can be a number or a string representation of the size.
|
|
51
|
+
*/
|
|
52
|
+
set pageSize(value: number | string);
|
|
53
|
+
/**
|
|
54
|
+
* Retrieves the value of the 'page-size' attribute and converts it to a number.
|
|
55
|
+
* If the attribute is not set or is invalid, returns the default value of 3.
|
|
56
|
+
* @returns {number} The numeric value of the 'page-size' attribute or the default value of 3.
|
|
57
|
+
*/
|
|
58
|
+
get pageSize(): number;
|
|
59
|
+
/**
|
|
60
|
+
* Sets the total number of items.
|
|
61
|
+
* @param {number} value The new total number of items to set.
|
|
62
|
+
*/
|
|
63
|
+
set totalItems(value: number);
|
|
64
|
+
/**
|
|
65
|
+
* Retrieves the total number of items represented by the 'total-items' attribute.
|
|
66
|
+
* @returns {number} The total number of items. Defaults to 0 if the attribute is not set or is invalid.
|
|
67
|
+
*/
|
|
68
|
+
get totalItems(): number;
|
|
69
|
+
/**
|
|
70
|
+
* Sets the visibility of the first button based on the provided value.
|
|
71
|
+
* Adds the 'show-first-button' attribute when the value is truthy, and removes it otherwise.
|
|
72
|
+
* @param {boolean} value Determines whether to show the first button. If true, the 'show-first-button' attribute is added; if false, it is removed.
|
|
73
|
+
*/
|
|
74
|
+
set showFirstButton(value: boolean);
|
|
75
|
+
/**
|
|
76
|
+
* Determines whether the 'show-first-button' attribute is present on the element.
|
|
77
|
+
* @returns {boolean} True if the 'show-first-button' attribute is set; otherwise, false.
|
|
78
|
+
*/
|
|
79
|
+
get showFirstButton(): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Sets the visibility of the "last" button. This method controls the presence
|
|
82
|
+
* or absence of the "show-last-button" attribute based on the provided value.
|
|
83
|
+
* @param {boolean} value A boolean value indicating whether to show the "last" button.
|
|
84
|
+
* If true, the "show-last-button" attribute is added;
|
|
85
|
+
* if false, the attribute is removed.
|
|
86
|
+
*/
|
|
87
|
+
set showLastButton(value: boolean);
|
|
88
|
+
/**
|
|
89
|
+
* Determines if the 'show-last-button' attribute is present on the element.
|
|
90
|
+
* @returns {boolean} True if the 'show-last-button' attribute is present, otherwise false.
|
|
91
|
+
*/
|
|
92
|
+
get showLastButton(): boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Sets the pagination object by calculating the pagination details
|
|
95
|
+
* based on the total items, current page, page size, and maximum pages.
|
|
96
|
+
* @param {object} value The value to set the pagination object. The pagination details are computed internally.
|
|
97
|
+
*/
|
|
98
|
+
set paginateObj(value: object);
|
|
99
|
+
/**
|
|
100
|
+
* Retrieves the pagination object used for managing paginated data.
|
|
101
|
+
* @returns {object} The pagination object containing details and functionality for paginating data.
|
|
102
|
+
*/
|
|
103
|
+
get paginateObj(): object;
|
|
104
|
+
/**
|
|
105
|
+
* Sets the 'round' attribute on the element. If the provided value is truthy,
|
|
106
|
+
* the 'round' attribute is added. If the value is falsy, the attribute is removed.
|
|
107
|
+
* @param {boolean} value A boolean value determining whether to add or remove the 'round' attribute.
|
|
108
|
+
*/
|
|
109
|
+
set round(value: boolean);
|
|
110
|
+
/**
|
|
111
|
+
* Retrieves the value of the 'round' attribute for the current element.
|
|
112
|
+
* @returns {boolean} A boolean indicating whether the 'round' attribute is present on the element.
|
|
113
|
+
*/
|
|
114
|
+
get round(): boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Sets the `show-info` attribute on the element based on the provided value.
|
|
117
|
+
* @param {boolean} value A boolean indicating whether to add or remove the `show-info` attribute.
|
|
118
|
+
*/
|
|
119
|
+
set showInfo(value: boolean);
|
|
120
|
+
/**
|
|
121
|
+
* Retrieves the value of the 'show-info' attribute.
|
|
122
|
+
* Checks if the 'show-info' attribute is present on the element.
|
|
123
|
+
* @returns {boolean} True if the 'show-info' attribute is present, otherwise false.
|
|
124
|
+
*/
|
|
125
|
+
get showInfo(): boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Dependencies of the Button element.
|
|
128
|
+
* @type {object}
|
|
129
|
+
*/
|
|
130
|
+
dependencies: object;
|
|
131
|
+
beforeDraw(): Promise<void>;
|
|
132
|
+
/**
|
|
133
|
+
* Creates a document fragment, appends a new slot element to it, and returns the fragment.
|
|
134
|
+
* @returns {DocumentFragment} A document fragment containing a slot element.
|
|
135
|
+
*/
|
|
136
|
+
draw(): DocumentFragment;
|
|
137
|
+
/**
|
|
138
|
+
* Creates a pagination control for navigating between pages of content.
|
|
139
|
+
* This method generates and returns a document fragment containing pagination controls, including buttons for navigating to the first, previous, next, and last pages, as well as optional informational text about the current set of displayed items and total number of items.
|
|
140
|
+
* @returns {DocumentFragment} A document fragment containing the pagination controls.
|
|
141
|
+
*/
|
|
142
|
+
htmlPagination(): DocumentFragment;
|
|
143
|
+
/**
|
|
144
|
+
* Creates and returns a DocumentFragment containing a series of buttons for pagination purposes,
|
|
145
|
+
* based on the provided pagination object.
|
|
146
|
+
* @param {object} paginateObj An object containing pagination details.
|
|
147
|
+
* @param {number} paginateObj.currentPage The current active page index (1-based).
|
|
148
|
+
* @param {Array<number>} paginateObj.pages An array of page numbers to display in the pagination.
|
|
149
|
+
* @param {number} paginateObj.totalPages Total number of pages available for pagination.
|
|
150
|
+
* @returns {DocumentFragment} A DocumentFragment containing the buttons and additional pagination elements.
|
|
151
|
+
*/
|
|
152
|
+
htmlStackButtons(paginateObj: {
|
|
153
|
+
currentPage: number;
|
|
154
|
+
pages: Array<number>;
|
|
155
|
+
totalPages: number;
|
|
156
|
+
}): DocumentFragment;
|
|
157
|
+
/**
|
|
158
|
+
* Handles the click action for pagination and updates the current page.
|
|
159
|
+
* If the clicked page number is the same as the current page, no action is performed.
|
|
160
|
+
* Otherwise, the current page is updated to the new page number, and a custom event
|
|
161
|
+
* 'wje-pagination:page-change' is dispatched with the pagination object.
|
|
162
|
+
* @param {Event} e The event triggered by the page click.
|
|
163
|
+
* @param {number} page The page number that was clicked.
|
|
164
|
+
*/
|
|
165
|
+
pageClickAction: (e: Event, page: number) => void;
|
|
166
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Paginates items based on the total number of items, current page, page size, and maximum number of pages to display.
|
|
3
|
+
* @param {number} totalItems The total number of items to paginate.
|
|
4
|
+
* @param {number} [currentPage] The current page number (default is 1).
|
|
5
|
+
* @param {number} [pageSize] The number of items per page (default is 10).
|
|
6
|
+
* @param {number} [maxPages] The maximum number of pages to display in the pagination control (default is 5).
|
|
7
|
+
* @returns {object} An object containing pagination details including total items, current page, page size, total pages, start/end page, start/end index, and the pages array.
|
|
8
|
+
*/
|
|
9
|
+
export function paginate(totalItems: number, currentPage?: number, pageSize?: number, maxPages?: number): object;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
+
/**
|
|
3
|
+
* `Panel` is a custom web component that represents a panel.
|
|
4
|
+
* @summary This element represents a panel.
|
|
5
|
+
* @documentation https://elements.webjet.sk/components/panel
|
|
6
|
+
* @status stable
|
|
7
|
+
* @augments {WJElement}
|
|
8
|
+
* @slot - The default slot for the panel.
|
|
9
|
+
* @tag wje-panel
|
|
10
|
+
*/
|
|
11
|
+
export default class Panel extends WJElement {
|
|
12
|
+
/**
|
|
13
|
+
* Returns the CSS styles for the component.
|
|
14
|
+
* @static
|
|
15
|
+
* @returns {CSSStyleSheet}
|
|
16
|
+
*/
|
|
17
|
+
static get cssStyleSheet(): CSSStyleSheet;
|
|
18
|
+
last: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Draws the component for the panel.
|
|
21
|
+
* @returns {DocumentFragment}
|
|
22
|
+
*/
|
|
23
|
+
draw(): DocumentFragment;
|
|
24
|
+
/**
|
|
25
|
+
* Adds event listeners after the component is drawn.
|
|
26
|
+
* Handles the collapsing of breadcrumbs.
|
|
27
|
+
*/
|
|
28
|
+
afterDraw(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Returns all the breadcrumb elements in the panel.
|
|
31
|
+
* @returns {Array<Element>} The breadcrumb elements.
|
|
32
|
+
*/
|
|
33
|
+
getBreadcrumbs(): Array<Element>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
+
/**
|
|
3
|
+
* `Popup` is a custom web component that represents a popup.
|
|
4
|
+
* @summary This element represents a popup.
|
|
5
|
+
* @documentation https://elements.webjet.sk/components/popup
|
|
6
|
+
* @status stable
|
|
7
|
+
* @augments {WJElement}
|
|
8
|
+
* @csspart native - The native part of the popup.
|
|
9
|
+
* @slot anchor - The slot for the anchor of the popup.
|
|
10
|
+
* @slot arrow - The slot for the arrow of the popup.
|
|
11
|
+
* @slot - The default slot for the popup.
|
|
12
|
+
* // @fires wje-popup:reposition - Event fired when the popup is repositioned.
|
|
13
|
+
* // @fires wje-popup:show - Event fired when the popup is shown.
|
|
14
|
+
* // @fires wje-popup:hide - Event fired when the popup is hidden.
|
|
15
|
+
* @tag wje-popup
|
|
16
|
+
*/
|
|
17
|
+
export default class Popup extends WJElement {
|
|
18
|
+
/**
|
|
19
|
+
* Returns the CSS styles for the component.
|
|
20
|
+
* @static
|
|
21
|
+
* @returns {CSSStyleSheet} The CSS styles for the component.
|
|
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
|
+
_manual: boolean;
|
|
31
|
+
set loader(value: boolean);
|
|
32
|
+
get loader(): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Sets the manual property of the popup.
|
|
35
|
+
* @param {boolean} value The value to set.
|
|
36
|
+
*/
|
|
37
|
+
set manual(value: boolean);
|
|
38
|
+
/**
|
|
39
|
+
* Gets the manual property of the popup.
|
|
40
|
+
* @returns {boolean} The value of the manual property.
|
|
41
|
+
*/
|
|
42
|
+
get manual(): boolean;
|
|
43
|
+
beforeDraw(context: any, store: any, params: any): void;
|
|
44
|
+
/**
|
|
45
|
+
* Draws the component for the popup.
|
|
46
|
+
* @returns {DocumentFragment}
|
|
47
|
+
*/
|
|
48
|
+
draw(): DocumentFragment;
|
|
49
|
+
slotAnchor: HTMLSlotElement;
|
|
50
|
+
slotArrow: HTMLSlotElement;
|
|
51
|
+
native: HTMLDivElement;
|
|
52
|
+
loaderEl: HTMLDivElement;
|
|
53
|
+
/**
|
|
54
|
+
* After Draws the component.
|
|
55
|
+
*/
|
|
56
|
+
afterDraw(): void;
|
|
57
|
+
/**
|
|
58
|
+
* Sets the anchor for the popup.
|
|
59
|
+
* Adds a click event listener to the anchor element.
|
|
60
|
+
*/
|
|
61
|
+
setAnchor(): void;
|
|
62
|
+
anchorEl: any;
|
|
63
|
+
manualCallback: (e: any) => void;
|
|
64
|
+
clickHandler: (e: any) => void;
|
|
65
|
+
/**
|
|
66
|
+
* Toggles the active attribute of the popup.
|
|
67
|
+
*/
|
|
68
|
+
showHide(): void;
|
|
69
|
+
/**
|
|
70
|
+
* Repositions the popup.
|
|
71
|
+
* Uses the floating-ui library to compute the position.
|
|
72
|
+
*/
|
|
73
|
+
reposition(): void;
|
|
74
|
+
offsetCalc: number;
|
|
75
|
+
arrow: Element;
|
|
76
|
+
/**
|
|
77
|
+
* Shows the popup.
|
|
78
|
+
* Adds the popup-active class to the native element.
|
|
79
|
+
* Sets up auto update for repositioning.
|
|
80
|
+
*/
|
|
81
|
+
show(dispatchEvent?: boolean): void;
|
|
82
|
+
cleanup: any;
|
|
83
|
+
/**
|
|
84
|
+
* Hides the popup.
|
|
85
|
+
* Removes the popup-active class from the native element.
|
|
86
|
+
* Cleans up the auto update for repositioning.
|
|
87
|
+
*/
|
|
88
|
+
hide(dispatchEvent?: boolean): void;
|
|
89
|
+
/**
|
|
90
|
+
* Removes the active attribute when the popup is hidden.
|
|
91
|
+
*/
|
|
92
|
+
handleHide: () => void;
|
|
93
|
+
markContentReady(): void;
|
|
94
|
+
}
|