wj-elements 0.1.195 → 0.1.197
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-dialog.js +1 -1
- package/dist/wje-dropdown.js +6 -11
- package/dist/wje-dropdown.js.map +1 -1
- package/dist/wje-file-upload.js +1 -2
- package/dist/wje-file-upload.js.map +1 -1
- package/dist/wje-routerx.js +1 -1
- package/dist/wje-routerx.js.map +1 -1
- package/package.json +1 -1
- package/dist/packages/index.d.ts +0 -107
- package/dist/packages/internals/form-associated-element.d.ts +0 -143
- package/dist/packages/localize/localize.d.ts +0 -47
- 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/base-path.d.ts +0 -14
- package/dist/packages/utils/date.d.ts +0 -2
- package/dist/packages/utils/element-utils.d.ts +0 -46
- package/dist/packages/utils/event.d.ts +0 -67
- package/dist/packages/utils/icon-library.d.ts +0 -3
- package/dist/packages/utils/localize.d.ts +0 -4
- package/dist/packages/utils/permissions.d.ts +0 -40
- package/dist/packages/utils/universal-service.d.ts +0 -18
- package/dist/packages/utils/utils.d.ts +0 -1
- 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 -204
- 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 -96
- 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 -99
- package/dist/packages/wje-chip/chip.d.ts +0 -2
- package/dist/packages/wje-chip/chip.element.d.ts +0 -64
- 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 -127
- 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 -84
- package/dist/packages/wje-element/element.d.ts +0 -306
- 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 -68
- 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 -83
- 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/library.d.ts +0 -3
- 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 -187
- package/dist/packages/wje-img/img.d.ts +0 -2
- package/dist/packages/wje-img/img.element.d.ts +0 -118
- 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 -172
- package/dist/packages/wje-input/input.d.ts +0 -2
- package/dist/packages/wje-input/input.element.d.ts +0 -159
- 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 -182
- 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 -158
- 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 -95
- package/dist/packages/wje-options/options.d.ts +0 -2
- package/dist/packages/wje-options/options.element.d.ts +0 -232
- 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 -94
- 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 -64
- package/dist/packages/wje-radio-group/radio-group.d.ts +0 -2
- package/dist/packages/wje-radio-group/radio-group.element.d.ts +0 -61
- 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 -358
- 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-sliding-container/sliding-container.d.ts +0 -2
- package/dist/packages/wje-sliding-container/sliding-container.element.d.ts +0 -265
- 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 -65
- 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 -80
- package/dist/packages/wje-store/default-store-actions.d.ts +0 -25
- package/dist/packages/wje-store/pubsub.d.ts +0 -22
- 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 -66
- package/dist/packages/wje-tab-group/tab-group.d.ts +0 -2
- package/dist/packages/wje-tab-group/tab-group.element.d.ts +0 -107
- 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 -89
- 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 -77
- package/dist/packages/wje-tree/tree.d.ts +0 -2
- package/dist/packages/wje-tree/tree.element.d.ts +0 -105
- 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,96 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* `ProgressBar` is a custom web component that represents a progress bar.
|
|
4
|
-
* @summary This element represents a progress bar.
|
|
5
|
-
* @documentation https://elements.webjet.sk/components/progress-bar
|
|
6
|
-
* @status stable
|
|
7
|
-
* @augments {WJElement}
|
|
8
|
-
* @slot - The default slot for the progress bar.
|
|
9
|
-
* @slot start - The start slot of the progress bar.
|
|
10
|
-
* @slot end - The end slot of the progress bar.
|
|
11
|
-
* @cssproperty [--wje-progress-bar-color=var(--wje-color-contrast-6)] - Sets the color of the progress bar. This property controls the fill color of the progress indicator. Accepts any valid CSS color value, such as named colors (`red`), hex values (`#ff0000`), or CSS variables.
|
|
12
|
-
* @cssproperty [--wje-progress-bar-text-size=.75rem] - Defines the font size of the text displayed within the progress bar. Accepts any valid CSS length unit (e.g., `rem`, `px`, `em`) to control text size relative to the bar's design.
|
|
13
|
-
* @cssproperty [--wje-progress-bar-text-color=var(--wje-color)] - Specifies the color of the text displayed within the progress bar. Accepts any valid CSS color value to ensure contrast and readability against the progress bar's background.
|
|
14
|
-
* @tag wje-progress-bar
|
|
15
|
-
*/
|
|
16
|
-
export default class ProgressBar 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(): Array<string>;
|
|
29
|
-
/**
|
|
30
|
-
* Sets the radius of the progress bar.
|
|
31
|
-
* @param {number} value The value to set.
|
|
32
|
-
*/
|
|
33
|
-
set radius(value: number);
|
|
34
|
-
/**
|
|
35
|
-
* Gets the radius of the progress bar.
|
|
36
|
-
* @returns {number} The value of the radius.
|
|
37
|
-
*/
|
|
38
|
-
get radius(): number;
|
|
39
|
-
/**
|
|
40
|
-
* Gets the diameter of the progress bar.
|
|
41
|
-
* @returns {number} The value of the diameter.
|
|
42
|
-
*/
|
|
43
|
-
get diameter(): number;
|
|
44
|
-
/**
|
|
45
|
-
* Gets the diameter of the progress bar.
|
|
46
|
-
* @returns {number} The value of the diameter.
|
|
47
|
-
*/
|
|
48
|
-
get containerSize(): number;
|
|
49
|
-
/**
|
|
50
|
-
* Sets the stroke of the progress bar.
|
|
51
|
-
* @param {number} value The value to set.
|
|
52
|
-
*/
|
|
53
|
-
set stroke(value: number);
|
|
54
|
-
/**
|
|
55
|
-
* Gets the stroke of the progress bar.
|
|
56
|
-
* @returns {number} The value of the stroke.
|
|
57
|
-
*/
|
|
58
|
-
get stroke(): number;
|
|
59
|
-
/**
|
|
60
|
-
* Gets the linecap of the progress bar.
|
|
61
|
-
* @returns {string} The value of the linecap.
|
|
62
|
-
*/
|
|
63
|
-
get linecap(): string;
|
|
64
|
-
/**
|
|
65
|
-
* Draws the component.
|
|
66
|
-
* @param {object} context The context for drawing.
|
|
67
|
-
* @param {object} store The store for drawing.
|
|
68
|
-
* @param {object} params The parameters for drawing.
|
|
69
|
-
* @returns {DocumentFragment}
|
|
70
|
-
*/
|
|
71
|
-
draw(context: object, store: object, params: object): DocumentFragment;
|
|
72
|
-
background: SVGCircleElement | SVGRectElement;
|
|
73
|
-
bar: SVGCircleElement | SVGRectElement;
|
|
74
|
-
/**
|
|
75
|
-
* Adds event listeners after the component is drawn.
|
|
76
|
-
*/
|
|
77
|
-
afterDraw(): void;
|
|
78
|
-
/**
|
|
79
|
-
* Returns the dasharray for a circle with the given radius.
|
|
80
|
-
* @param {number} radius The radius of the circle in pixels.
|
|
81
|
-
* @returns {number} The dasharray value.
|
|
82
|
-
*/
|
|
83
|
-
getCircleDasharray(radius?: number): number;
|
|
84
|
-
/**
|
|
85
|
-
* Returns the dashoffset for a circle with the given progress and radius.
|
|
86
|
-
* @param {number} progress The progress of the circle in percentage.
|
|
87
|
-
* @param {number} radius The radius of the circle in pixels.
|
|
88
|
-
* @returns {number} The dashoffset value.
|
|
89
|
-
*/
|
|
90
|
-
getCircleDashoffset(progress?: number, radius?: number): number;
|
|
91
|
-
/**
|
|
92
|
-
* Sets the progress of the circle.
|
|
93
|
-
* @param percent
|
|
94
|
-
*/
|
|
95
|
-
setCircleProgress(percent: any): void;
|
|
96
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* `QrCode` is a custom web component that generates a QR code.
|
|
4
|
-
* @summary This element represents a QR code generator.
|
|
5
|
-
* @documentation https://elements.webjet.sk/components/qr-code
|
|
6
|
-
* @status stable
|
|
7
|
-
* @augments {WJElement}
|
|
8
|
-
* @csspart native - The native part of the QR code.
|
|
9
|
-
* @slot top - The slot for the top content of the QR code.
|
|
10
|
-
* @slot bottom - The slot for the bottom content of the QR code.
|
|
11
|
-
* @tag wje-qr-code
|
|
12
|
-
*/
|
|
13
|
-
export default class QrCode extends WJElement {
|
|
14
|
-
/**
|
|
15
|
-
* Returns the CSS stylesheet for the component.
|
|
16
|
-
* @returns {CSSStyleSheet} The CSS stylesheet.
|
|
17
|
-
*/
|
|
18
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
19
|
-
/**
|
|
20
|
-
* Returns the list of observed attributes.
|
|
21
|
-
* @returns {string[]} The list of observed attributes.
|
|
22
|
-
*/
|
|
23
|
-
static get observedAttributes(): string[];
|
|
24
|
-
/**
|
|
25
|
-
* Draws the QR code component.
|
|
26
|
-
* @returns {DocumentFragment} The document fragment containing the QR code component.
|
|
27
|
-
*/
|
|
28
|
-
draw(): DocumentFragment;
|
|
29
|
-
/**
|
|
30
|
-
* Called after the component is drawn to generate the QR code.
|
|
31
|
-
*/
|
|
32
|
-
afterDraw(): void;
|
|
33
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* @summary This class represents a Radio button element, extending the WJElement class.
|
|
4
|
-
* @documentation https://elements.webjet.sk/components/radio
|
|
5
|
-
* @status stable
|
|
6
|
-
* @augments WJElement
|
|
7
|
-
* @slot - Default slot for the radio button label content.
|
|
8
|
-
* @csspart native-radio - The native wrapper for the radio button.
|
|
9
|
-
* @cssproperty [--wje-radio-margin-inline=0] - Specifies the horizontal (left and right) margin for the radio button. Accepts any valid CSS length unit (e.g., `px`, `rem`, `%`) to control spacing on both sides of the component.
|
|
10
|
-
* @cssproperty [--wje-radio-margin-top=0] - Defines the top margin for the radio button. Accepts any valid CSS length value to adjust vertical spacing above the component.
|
|
11
|
-
* @cssproperty [--wje-radio-margin-bottom=0] - Sets the bottom margin for the radio button. Accepts any valid CSS length value to adjust vertical spacing below the component.
|
|
12
|
-
* // @fires wje-radio:change - Dispatched when the radio button's state changes.
|
|
13
|
-
* // @fires wje-radio:input - Dispatched when the radio button is interacted with.
|
|
14
|
-
*/
|
|
15
|
-
export default class Radio extends WJElement {
|
|
16
|
-
/**
|
|
17
|
-
* Returns the CSS styles for the component.
|
|
18
|
-
* @returns {CSSStyleSheet}
|
|
19
|
-
*/
|
|
20
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
21
|
-
/**
|
|
22
|
-
* Returns the list of attributes to observe for changes.
|
|
23
|
-
* @static
|
|
24
|
-
* @returns {Array<string>}
|
|
25
|
-
*/
|
|
26
|
-
static get observedAttributes(): Array<string>;
|
|
27
|
-
set value(value: string);
|
|
28
|
-
get value(): string;
|
|
29
|
-
/**
|
|
30
|
-
* Sets the name of the radio button.
|
|
31
|
-
* @param value
|
|
32
|
-
*/
|
|
33
|
-
set checked(value: boolean);
|
|
34
|
-
/**
|
|
35
|
-
* Gets the checked property of the radio button.
|
|
36
|
-
* @returns {boolean}
|
|
37
|
-
*/
|
|
38
|
-
get checked(): boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Set checked attribute.
|
|
41
|
-
* @param {boolean} value true if the toggle is checked, false otherwise
|
|
42
|
-
*/
|
|
43
|
-
set disabled(value: boolean);
|
|
44
|
-
/**
|
|
45
|
-
* Get disabled attribute value.
|
|
46
|
-
* @returns {boolean} true if the toggle is disabled, false otherwise
|
|
47
|
-
*/
|
|
48
|
-
get disabled(): boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Draws the radio button.
|
|
51
|
-
* @returns {DocumentFragment}
|
|
52
|
-
*/
|
|
53
|
-
draw(): DocumentFragment;
|
|
54
|
-
input: HTMLInputElement;
|
|
55
|
-
/**
|
|
56
|
-
* Sets up the event listeners for the component.
|
|
57
|
-
*/
|
|
58
|
-
afterDraw(): void;
|
|
59
|
-
/**
|
|
60
|
-
* Called when an attribute changes.
|
|
61
|
-
* @param {object} e
|
|
62
|
-
*/
|
|
63
|
-
inputEvent: (e: object) => void;
|
|
64
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { FormAssociatedElement } from '../internals/form-associated-element.js';
|
|
2
|
-
import { default as Radio } from '../wje-radio/radio.js';
|
|
3
|
-
/**
|
|
4
|
-
* `RadioGroup` is a custom web component that represents a group of radio buttons.
|
|
5
|
-
* @summary This element represents a group of radio buttons.
|
|
6
|
-
* @documentation https://elements.webjet.sk/components/radio-group
|
|
7
|
-
* @status stable
|
|
8
|
-
* @augments {FormAssociatedElement}
|
|
9
|
-
* @slot - The default slot for the radio group.
|
|
10
|
-
* @tag wje-radio-group
|
|
11
|
-
*/
|
|
12
|
-
export default class RadioGroup extends FormAssociatedElement {
|
|
13
|
-
/**
|
|
14
|
-
* Returns the CSS styles for the component.
|
|
15
|
-
* @static
|
|
16
|
-
* @returns {CSSStyleSheet}
|
|
17
|
-
*/
|
|
18
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
19
|
-
static get observedAttributes(): any[];
|
|
20
|
-
pristine: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Setter for the value attribute.
|
|
23
|
-
* @param {string} value The value to set.
|
|
24
|
-
*/
|
|
25
|
-
set value(value: string);
|
|
26
|
-
/**
|
|
27
|
-
* Getter for the value attribute.
|
|
28
|
-
* @returns {string} The value of the attribute.
|
|
29
|
-
*/
|
|
30
|
-
get value(): string;
|
|
31
|
-
/**
|
|
32
|
-
* Draws the component for the radio group.
|
|
33
|
-
* @returns {DocumentFragment}
|
|
34
|
-
*/
|
|
35
|
-
draw(): DocumentFragment;
|
|
36
|
-
input: HTMLInputElement;
|
|
37
|
-
/**
|
|
38
|
-
* Adds event listeners after the component is drawn. Handles the selection of radio buttons.
|
|
39
|
-
*/
|
|
40
|
-
afterDraw(): void;
|
|
41
|
-
/**
|
|
42
|
-
* Returns the radio button with the given value.
|
|
43
|
-
* @param {string} value The value of the radio button.
|
|
44
|
-
* @returns {Radio} The radio button.
|
|
45
|
-
*/
|
|
46
|
-
getRadioByValue(value: string): Radio;
|
|
47
|
-
/**
|
|
48
|
-
* Removes the check from all radio buttons.
|
|
49
|
-
*/
|
|
50
|
-
removeCheck(): void;
|
|
51
|
-
/**
|
|
52
|
-
* Sets the given radio button to checked.
|
|
53
|
-
*/
|
|
54
|
-
checkRadio(radio: any): boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Retrieves all direct child elements of the current element.
|
|
57
|
-
* @returns {HTMLElement[]} An array of child elements.
|
|
58
|
-
*/
|
|
59
|
-
getAllElements(): HTMLElement[];
|
|
60
|
-
#private;
|
|
61
|
-
}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* `Rate` is a custom web component that represents a rating component.
|
|
4
|
-
* @summary This element represents a rating component.
|
|
5
|
-
* @documentation https://elements.webjet.sk/components/rate
|
|
6
|
-
* @status stable
|
|
7
|
-
* @augments {WJElement}
|
|
8
|
-
* @attribute {number} precision - The precision of the rating component.
|
|
9
|
-
* @attribute {number} max - The maximum value of the rating component.
|
|
10
|
-
* @attribute {Array<string>} icons - The icons of the rating component.
|
|
11
|
-
* @csspart native - The native part of the rating component.
|
|
12
|
-
* @cssproperty [--wje-rate-gap=.25rem] - Defines the spacing (gap) between individual items in the rating component. Accepts any valid CSS length unit (e.g., `px`, `rem`, `em`) to adjust the distance between rating elements.
|
|
13
|
-
* @cssproperty [--wje-rate-color=var(--wje-color-contrast-11)] - Specifies the default color of the rating items. Accepts any valid CSS color value, including named colors, hex values, RGB, or CSS variables.
|
|
14
|
-
* @cssproperty [--wje-rate-selected-color=var(--wje-color-danger-9)] - Sets the color for selected or highlighted rating items. This property helps visually distinguish selected ratings. Accepts any valid CSS color value.
|
|
15
|
-
* @tag wje-rate
|
|
16
|
-
*/
|
|
17
|
-
export default class Rate extends WJElement {
|
|
18
|
-
/**
|
|
19
|
-
* Returns the CSS styles for the component.
|
|
20
|
-
* @static
|
|
21
|
-
* @returns {CSSStyleSheet}
|
|
22
|
-
*/
|
|
23
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
24
|
-
/**
|
|
25
|
-
* Returns the list of attributes to observe for changes.
|
|
26
|
-
* @static
|
|
27
|
-
* @returns {Array<string>}
|
|
28
|
-
*/
|
|
29
|
-
static get observedAttributes(): Array<string>;
|
|
30
|
-
/**
|
|
31
|
-
* Sets the precision of the rating component.
|
|
32
|
-
* @param {number} value The value to set.
|
|
33
|
-
*/
|
|
34
|
-
set precision(value: number);
|
|
35
|
-
/**
|
|
36
|
-
* Gets the precision of the rating component.
|
|
37
|
-
* @returns {number} The value of the precision.
|
|
38
|
-
*/
|
|
39
|
-
get precision(): number;
|
|
40
|
-
/**
|
|
41
|
-
* Sets the maximum value of the rating component.
|
|
42
|
-
* @param {number} value The value to set.
|
|
43
|
-
*/
|
|
44
|
-
set max(value: number);
|
|
45
|
-
/**
|
|
46
|
-
* Gets the maximum value of the rating component.
|
|
47
|
-
* @returns {number} The value of the maximum value.
|
|
48
|
-
*/
|
|
49
|
-
get max(): number;
|
|
50
|
-
/**
|
|
51
|
-
* Sets the icons of the rating component.
|
|
52
|
-
* @param {Array<string>} value The value to set.
|
|
53
|
-
*/
|
|
54
|
-
set icons(value: Array<string>);
|
|
55
|
-
/**
|
|
56
|
-
* Gets the icons of the rating component.
|
|
57
|
-
* @returns {Array<string>} The value of the icons.
|
|
58
|
-
*/
|
|
59
|
-
get icons(): Array<string>;
|
|
60
|
-
/**
|
|
61
|
-
* Sets the value of the rating component.
|
|
62
|
-
* @param {number} value The value to set.
|
|
63
|
-
*/
|
|
64
|
-
set value(value: number);
|
|
65
|
-
/**
|
|
66
|
-
* Gets the value of the rating component.
|
|
67
|
-
* @returns {number} The value of the rating component.
|
|
68
|
-
*/
|
|
69
|
-
get value(): number;
|
|
70
|
-
/**
|
|
71
|
-
* Called when an attribute changes.
|
|
72
|
-
* @param {string} name The name of the attribute that changed.
|
|
73
|
-
* @param {string} old The old value of the attribute.
|
|
74
|
-
* @param {string} newName The new value of the attribute.
|
|
75
|
-
*/
|
|
76
|
-
attributeChangedCallback(name: string, old: string, newName: string): void;
|
|
77
|
-
/**
|
|
78
|
-
* Draws the component for the rating component.
|
|
79
|
-
* @returns {DocumentFragment}
|
|
80
|
-
*/
|
|
81
|
-
draw(): DocumentFragment;
|
|
82
|
-
native: HTMLDivElement;
|
|
83
|
-
/**
|
|
84
|
-
* Adds event listeners after the component is drawn.
|
|
85
|
-
*/
|
|
86
|
-
afterDraw(): void;
|
|
87
|
-
/**
|
|
88
|
-
* Creates the icons for the rating component.
|
|
89
|
-
* @param {number} i The index of the icon.
|
|
90
|
-
* @returns {Element} The icon element.
|
|
91
|
-
*/
|
|
92
|
-
createIcons(i: number): Element;
|
|
93
|
-
/**
|
|
94
|
-
* Changes the rate of the rating component.
|
|
95
|
-
*/
|
|
96
|
-
changeRate(): void;
|
|
97
|
-
/**
|
|
98
|
-
* Event handler for the mouse enter event.
|
|
99
|
-
* @param {Event} e The event.
|
|
100
|
-
*/
|
|
101
|
-
onMouseEnter: (e: Event) => void;
|
|
102
|
-
hoverValue: any;
|
|
103
|
-
/**
|
|
104
|
-
* Event handler for the mouse leave event.
|
|
105
|
-
* @param {Event} e The event.
|
|
106
|
-
*/
|
|
107
|
-
onMouseLeave: (e: Event) => void;
|
|
108
|
-
/**
|
|
109
|
-
* Event handler for the mouse move event.
|
|
110
|
-
* @param {Event} e The event.
|
|
111
|
-
*/
|
|
112
|
-
onMouseMove: (e: Event) => void;
|
|
113
|
-
/**
|
|
114
|
-
* Event handler for the touch start event.
|
|
115
|
-
* @param {Event} e The event.
|
|
116
|
-
*/
|
|
117
|
-
onTouchStart: (e: Event) => void;
|
|
118
|
-
/**
|
|
119
|
-
* Event handler for the touch end event.
|
|
120
|
-
* @param {Event} e The event.
|
|
121
|
-
*/
|
|
122
|
-
onTouchEnd: (e: Event) => void;
|
|
123
|
-
/**
|
|
124
|
-
* Event handler for the touch move event.
|
|
125
|
-
* @param {Event} e The event.
|
|
126
|
-
*/
|
|
127
|
-
onTouchMove: (e: Event) => void;
|
|
128
|
-
/**
|
|
129
|
-
* Event handler for the click event.
|
|
130
|
-
* @param {Event} e The event.
|
|
131
|
-
*/
|
|
132
|
-
onClick: (e: Event) => void;
|
|
133
|
-
/**
|
|
134
|
-
* Returns the icons for the rating component.
|
|
135
|
-
* @param {number} index The index of the icon.
|
|
136
|
-
* @returns {Element} The icon element.
|
|
137
|
-
*/
|
|
138
|
-
getIcons(index: number): Element;
|
|
139
|
-
/**
|
|
140
|
-
* Returns the value from the x position.
|
|
141
|
-
* @param {number} coordinate The x coordinate.
|
|
142
|
-
* @returns {number} The value from the x position.
|
|
143
|
-
*/
|
|
144
|
-
getValueFromXPosition(coordinate: number): number;
|
|
145
|
-
/**
|
|
146
|
-
* Rounds a given number to the nearest specified precision.
|
|
147
|
-
* @param {number} numberToRound The number to be rounded.
|
|
148
|
-
* @param {number} [precision] The precision to which the number should be rounded.
|
|
149
|
-
* @returns {number} - The rounded number.
|
|
150
|
-
* @example
|
|
151
|
-
* roundToPrecision(2.3); // Returns 2.5
|
|
152
|
-
* roundToPrecision(2.3, 0.1); // Returns 2.3
|
|
153
|
-
* roundToPrecision(2.6, 1); // Returns 3
|
|
154
|
-
*/
|
|
155
|
-
roundToPrecision(numberToRound: number, precision?: number): number;
|
|
156
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
import { Localizer } from '../utils/localize.js';
|
|
3
|
-
/**
|
|
4
|
-
* `RelativeTime` is a custom web component that represents a relative time component.
|
|
5
|
-
* @summary This element represents a relative time component.
|
|
6
|
-
* @documentation https://elements.webjet.sk/components/relative-time
|
|
7
|
-
* @status stable
|
|
8
|
-
* @augments WJElement
|
|
9
|
-
* @csspart native - The native part of the relative time component.
|
|
10
|
-
* @tag wje-relative-time
|
|
11
|
-
*/
|
|
12
|
-
export default class RelativeTime extends WJElement {
|
|
13
|
-
/**
|
|
14
|
-
* Returns the list of attributes to observe for changes.
|
|
15
|
-
* @static
|
|
16
|
-
* @returns {Array<string>}
|
|
17
|
-
*/
|
|
18
|
-
static get observedAttributes(): Array<string>;
|
|
19
|
-
localizer: Localizer;
|
|
20
|
-
/**
|
|
21
|
-
* Sets the date of the relative time component.
|
|
22
|
-
* @param value
|
|
23
|
-
*/
|
|
24
|
-
set date(value: string);
|
|
25
|
-
/**
|
|
26
|
-
* Gets the date of the relative time component.
|
|
27
|
-
* @returns {string}
|
|
28
|
-
*/
|
|
29
|
-
get date(): string;
|
|
30
|
-
/**
|
|
31
|
-
* Sets the object date of the relative time component.
|
|
32
|
-
* @param value
|
|
33
|
-
*/
|
|
34
|
-
set objectDate(value: Date);
|
|
35
|
-
/**
|
|
36
|
-
* Gets the object date of the relative time component.
|
|
37
|
-
* @returns {Date}
|
|
38
|
-
*/
|
|
39
|
-
get objectDate(): Date;
|
|
40
|
-
/**
|
|
41
|
-
* Draws the component for the relative time.
|
|
42
|
-
* @returns {DocumentFragment}
|
|
43
|
-
*/
|
|
44
|
-
draw(): DocumentFragment;
|
|
45
|
-
/**
|
|
46
|
-
* Returns the relative time string for the given date.
|
|
47
|
-
*/
|
|
48
|
-
getRelativeTimeString(lang?: string): string;
|
|
49
|
-
/**
|
|
50
|
-
* Checks if the given string is an ISO date.
|
|
51
|
-
* @param {string} str The string to check.
|
|
52
|
-
* @returns {boolean} True if the string is an ISO date, false otherwise.
|
|
53
|
-
*/
|
|
54
|
-
isISODate(str: string): boolean;
|
|
55
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* `Reorder` is a custom web component that represents a reorder.
|
|
4
|
-
* It extends from `WJElement`.
|
|
5
|
-
* @summary This element represents a reorder.
|
|
6
|
-
* @documentation https://elements.webjet.sk/components/reorder
|
|
7
|
-
* @status stable
|
|
8
|
-
* @augments WJElement
|
|
9
|
-
* @csspart native - The native part of the reorder.
|
|
10
|
-
* @slot - The default slot for the reorder.
|
|
11
|
-
* // @fires wje-reorder:change - Event fired when the reorder is changed.
|
|
12
|
-
* @tag wje-reorder
|
|
13
|
-
*/
|
|
14
|
-
export default class Reorder extends WJElement {
|
|
15
|
-
/**
|
|
16
|
-
* Returns the CSS styles for the component.
|
|
17
|
-
* @static
|
|
18
|
-
* @returns {CSSStyleSheet}
|
|
19
|
-
*/
|
|
20
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
21
|
-
/**
|
|
22
|
-
* Returns the list of attributes to observe for changes.
|
|
23
|
-
* @static
|
|
24
|
-
* @returns {Array<string>}
|
|
25
|
-
*/
|
|
26
|
-
static get observedAttributes(): Array<string>;
|
|
27
|
-
dragEl: Element;
|
|
28
|
-
items: any[];
|
|
29
|
-
originalIndex: number;
|
|
30
|
-
isDragging: boolean;
|
|
31
|
-
offsetX: number;
|
|
32
|
-
offsetY: number;
|
|
33
|
-
cloneEl: Node;
|
|
34
|
-
/**
|
|
35
|
-
* Draws the component after it is connected to the DOM.
|
|
36
|
-
* @returns {DocumentFragment}
|
|
37
|
-
*/
|
|
38
|
-
draw(): DocumentFragment;
|
|
39
|
-
container: HTMLDivElement;
|
|
40
|
-
/**
|
|
41
|
-
* Adds event listeners after the component is drawn.
|
|
42
|
-
*/
|
|
43
|
-
afterDraw(): void;
|
|
44
|
-
/**
|
|
45
|
-
* Attaches event listeners to the element.
|
|
46
|
-
* @param element
|
|
47
|
-
*/
|
|
48
|
-
attachEventListeners(element: any): void;
|
|
49
|
-
/**
|
|
50
|
-
* Handles the mouse down event.
|
|
51
|
-
* @param {object} e
|
|
52
|
-
*/
|
|
53
|
-
mouseDown(e: object): void;
|
|
54
|
-
/**
|
|
55
|
-
* Handles the touch start event.
|
|
56
|
-
* @param e
|
|
57
|
-
*/
|
|
58
|
-
touchStart(e: any): void;
|
|
59
|
-
/**
|
|
60
|
-
* Initializes the dragging process for a reorderable item.
|
|
61
|
-
* @param {number} clientX The x-coordinate of the mouse pointer when the drag starts.
|
|
62
|
-
* @param {number} clientY The y-coordinate of the mouse pointer when the drag starts.
|
|
63
|
-
* @param {HTMLElement} target The target element where the drag event originated.
|
|
64
|
-
*/
|
|
65
|
-
startDragging(clientX: number, clientY: number, target: HTMLElement): void;
|
|
66
|
-
originalParent: ParentNode;
|
|
67
|
-
/**
|
|
68
|
-
* Handles the mouse move event.
|
|
69
|
-
* @param e
|
|
70
|
-
*/
|
|
71
|
-
mouseMove(e: any): void;
|
|
72
|
-
/**
|
|
73
|
-
* Handles the `touchmove` event and updates the position of the dragged element.
|
|
74
|
-
* @param {TouchEvent} e The touch event containing touch position data.
|
|
75
|
-
*/
|
|
76
|
-
touchMove(e: TouchEvent): void;
|
|
77
|
-
/**
|
|
78
|
-
* Updates the position of the dragged element and handles reordering logic based on the mouse position.
|
|
79
|
-
* @param {number} pageX The x-coordinate of the mouse pointer relative to the viewport during the move event.
|
|
80
|
-
* @param {number} pageY The y-coordinate of the mouse pointer relative to the viewport during the move event.
|
|
81
|
-
*/
|
|
82
|
-
moveElement(pageX: number, pageY: number): void;
|
|
83
|
-
/**
|
|
84
|
-
* Handles the mouse up event.
|
|
85
|
-
*/
|
|
86
|
-
mouseUp(): void;
|
|
87
|
-
/**
|
|
88
|
-
* Handles the touch end event.
|
|
89
|
-
*/
|
|
90
|
-
touchEnd(): void;
|
|
91
|
-
/**
|
|
92
|
-
* Stops dragging the element.
|
|
93
|
-
*/
|
|
94
|
-
stopDragging(): void;
|
|
95
|
-
/**
|
|
96
|
-
* Prevents the default behavior of the `dragstart` event.
|
|
97
|
-
* @param {DragEvent} e The drag event triggered when a drag operation starts.
|
|
98
|
-
*/
|
|
99
|
-
dragStart(e: DragEvent): void;
|
|
100
|
-
/**
|
|
101
|
-
* Creates a clone of the element.
|
|
102
|
-
*/
|
|
103
|
-
createClone(): void;
|
|
104
|
-
/**
|
|
105
|
-
* Checks if the dragged element is moving down.
|
|
106
|
-
* @param droppedElement
|
|
107
|
-
* @returns {boolean}
|
|
108
|
-
*/
|
|
109
|
-
isMovingDown(droppedElement: any): boolean;
|
|
110
|
-
/**
|
|
111
|
-
* Dispatches a custom event to signal that a reordering operation has occurred.
|
|
112
|
-
* @param {number} from The original index of the dragged item.
|
|
113
|
-
* @param {number} to The new index of the dragged item after reordering.
|
|
114
|
-
* @param {Array<number>} order The updated order of items after the reordering.
|
|
115
|
-
* // @fires wje-reorder:change - Dispatched when the reordering is completed.
|
|
116
|
-
* The event includes details about the initial position, the new position, and the new order.
|
|
117
|
-
*/
|
|
118
|
-
dispatchChange(from: number, to: number, order: Array<number>, orderElements: any): void;
|
|
119
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
-
/**
|
|
3
|
-
* `ReorderDropzone` is a custom web component that represents a reorder dropzone.
|
|
4
|
-
* @summary This element represents a reorder dropzone.
|
|
5
|
-
* @documentation https://elements.webjet.sk/components/reorder-dropzone
|
|
6
|
-
* @status stable
|
|
7
|
-
* @augments WJElement
|
|
8
|
-
* @csspart native - The native part of the reorder dropzone.
|
|
9
|
-
* @slot - The default slot for the reorder dropzone.
|
|
10
|
-
* @tag wje-reorder-dropzone
|
|
11
|
-
*/
|
|
12
|
-
export default class ReorderDropzone extends WJElement {
|
|
13
|
-
/**
|
|
14
|
-
* Returns the CSS stylesheet for the component.
|
|
15
|
-
* @returns {CSSStyleSheet} The CSS stylesheet.
|
|
16
|
-
*/
|
|
17
|
-
static get cssStyleSheet(): CSSStyleSheet;
|
|
18
|
-
/**
|
|
19
|
-
* Returns the list of observed attributes.
|
|
20
|
-
* @returns {DocumentFragment}
|
|
21
|
-
*/
|
|
22
|
-
draw(): DocumentFragment;
|
|
23
|
-
}
|