wj-elements 0.2.0-alpha.3 → 0.2.0-alpha.4
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/index.d.ts +107 -0
- package/dist/internals/form-associated-element.d.ts +143 -0
- package/dist/localize/localize.d.ts +48 -0
- package/dist/packages/wje-file-upload/file-upload.element.d.ts +12 -0
- package/dist/packages/wje-file-upload-item/file-upload-item.element.d.ts +24 -8
- package/dist/packages/wje-sliding-container/sliding-container.element.d.ts +2 -2
- package/dist/translations/en-gb.d.ts +18 -0
- package/dist/translations/sk-sk.d.ts +13 -0
- package/dist/utils/animations.d.ts +2 -0
- package/dist/utils/base-path.d.ts +14 -0
- package/dist/utils/date.d.ts +2 -0
- package/dist/utils/element-utils.d.ts +46 -0
- package/dist/utils/event.d.ts +67 -0
- package/dist/utils/icon-library.d.ts +3 -0
- package/dist/utils/localize.d.ts +4 -0
- package/dist/utils/permissions.d.ts +40 -0
- package/dist/utils/universal-service.d.ts +18 -0
- package/dist/utils/utils.d.ts +1 -0
- package/dist/wje-accordion/accordion.d.ts +2 -0
- package/dist/wje-accordion/accordion.element.d.ts +72 -0
- package/dist/wje-accordion/accordion.test.d.ts +0 -0
- package/dist/wje-accordion-item/accordion-item.d.ts +2 -0
- package/dist/wje-accordion-item/accordion-item.element.d.ts +40 -0
- package/dist/wje-animation/animation.d.ts +2 -0
- package/dist/wje-animation/animation.element.d.ts +158 -0
- package/dist/wje-animation/animation.test.d.ts +1 -0
- package/dist/wje-aside/aside.d.ts +2 -0
- package/dist/wje-aside/aside.element.d.ts +31 -0
- package/dist/wje-avatar/avatar.d.ts +2 -0
- package/dist/wje-avatar/avatar.element.d.ts +76 -0
- package/dist/wje-avatar/avatar.test.d.ts +1 -0
- package/dist/wje-avatar/service/service.d.ts +52 -0
- package/dist/wje-badge/badge.d.ts +2 -0
- package/dist/wje-badge/badge.element.d.ts +35 -0
- package/dist/wje-badge/badge.test.d.ts +1 -0
- package/dist/wje-breadcrumb/breadcrumb.d.ts +2 -0
- package/dist/wje-breadcrumb/breadcrumb.element.d.ts +98 -0
- package/dist/wje-breadcrumbs/breadcrumbs.d.ts +2 -0
- package/dist/wje-breadcrumbs/breadcrumbs.element.d.ts +105 -0
- package/dist/wje-breadcrumbs/breadcrumbs.test.d.ts +1 -0
- package/dist/wje-button/button.d.ts +2 -0
- package/dist/wje-button/button.element.d.ts +204 -0
- package/dist/wje-button/button.test.d.ts +1 -0
- package/dist/wje-button-group/button-group.d.ts +2 -0
- package/dist/wje-button-group/button-group.element.d.ts +96 -0
- package/dist/wje-card/card.d.ts +2 -0
- package/dist/wje-card/card.element.d.ts +31 -0
- package/dist/wje-card-content/card-content.d.ts +2 -0
- package/dist/wje-card-content/card-content.element.d.ts +22 -0
- package/dist/wje-card-controls/card-controls.d.ts +2 -0
- package/dist/wje-card-controls/card-controls.element.d.ts +23 -0
- package/dist/wje-card-header/card-header.d.ts +2 -0
- package/dist/wje-card-header/card-header.element.d.ts +22 -0
- package/dist/wje-card-subtitle/card-subtitle.d.ts +2 -0
- package/dist/wje-card-subtitle/card-subtitle.element.d.ts +30 -0
- package/dist/wje-card-title/card-title.d.ts +2 -0
- package/dist/wje-card-title/card-title.element.d.ts +32 -0
- package/dist/wje-carousel/carousel.d.ts +2 -0
- package/dist/wje-carousel/carousel.element.d.ts +154 -0
- package/dist/wje-carousel-item/carousel-item.d.ts +2 -0
- package/dist/wje-carousel-item/carousel-item.element.d.ts +38 -0
- package/dist/wje-checkbox/checkbox.d.ts +2 -0
- package/dist/wje-checkbox/checkbox.element.d.ts +100 -0
- package/dist/wje-chip/chip.d.ts +2 -0
- package/dist/wje-chip/chip.element.d.ts +76 -0
- package/dist/wje-chip/chip.test.d.ts +1 -0
- package/dist/wje-col/col.d.ts +2 -0
- package/dist/wje-col/col.element.d.ts +16 -0
- package/dist/wje-color-picker/color-picker.d.ts +2 -0
- package/dist/wje-color-picker/color-picker.element.d.ts +230 -0
- package/dist/wje-color-picker/color-picker.test.d.ts +1 -0
- package/dist/wje-container/container.d.ts +2 -0
- package/dist/wje-container/container.element.d.ts +31 -0
- package/dist/wje-copy-button/copy-button.d.ts +2 -0
- package/dist/wje-copy-button/copy-button.element.d.ts +89 -0
- package/dist/wje-copy-button/service/service.d.ts +12 -0
- package/dist/wje-dialog/dialog.d.ts +2 -0
- package/dist/wje-dialog/dialog.element.d.ts +132 -0
- package/dist/wje-divider/divider.d.ts +2 -0
- package/dist/wje-divider/divider.element.d.ts +32 -0
- package/dist/wje-dropdown/dropdown.d.ts +2 -0
- package/dist/wje-dropdown/dropdown.element.d.ts +108 -0
- package/dist/wje-element/element.d.ts +341 -0
- package/dist/wje-file-upload/file-upload.d.ts +2 -0
- package/dist/wje-file-upload/file-upload.element.d.ts +191 -0
- package/dist/wje-file-upload/service/service.d.ts +70 -0
- package/dist/wje-file-upload-item/file-upload-item.d.ts +2 -0
- package/dist/wje-file-upload-item/file-upload-item.element.d.ts +68 -0
- package/dist/wje-file-upload-item.js +26 -7
- package/dist/wje-file-upload-item.js.map +1 -1
- package/dist/wje-file-upload.js +30 -0
- package/dist/wje-file-upload.js.map +1 -1
- package/dist/wje-footer/footer.d.ts +2 -0
- package/dist/wje-footer/footer.element.d.ts +28 -0
- package/dist/wje-form/form.d.ts +2 -0
- package/dist/wje-form/form.element.d.ts +28 -0
- package/dist/wje-format-digital/format-digital.d.ts +2 -0
- package/dist/wje-format-digital/format-digital.element.d.ts +83 -0
- package/dist/wje-format-digital/format-digital.test.d.ts +1 -0
- package/dist/wje-grid/grid.d.ts +2 -0
- package/dist/wje-grid/grid.element.d.ts +26 -0
- package/dist/wje-header/header.d.ts +2 -0
- package/dist/wje-header/header.element.d.ts +35 -0
- package/dist/wje-icon/icon.d.ts +2 -0
- package/dist/wje-icon/icon.element.d.ts +40 -0
- package/dist/wje-icon/service/library.d.ts +3 -0
- package/dist/wje-icon/service/service.d.ts +11 -0
- package/dist/wje-icon-picker/icon-picker.d.ts +2 -0
- package/dist/wje-icon-picker/icon-picker.element.d.ts +210 -0
- package/dist/wje-img/img.d.ts +2 -0
- package/dist/wje-img/img.element.d.ts +118 -0
- package/dist/wje-img-comparer/img-comparer.d.ts +2 -0
- package/dist/wje-img-comparer/img-comparer.element.d.ts +60 -0
- package/dist/wje-img-comparer/service/service.d.ts +1 -0
- package/dist/wje-infinite-scroll/infinite-scroll.d.ts +2 -0
- package/dist/wje-infinite-scroll/infinite-scroll.element.d.ts +173 -0
- package/dist/wje-input/input.d.ts +2 -0
- package/dist/wje-input/input.element.d.ts +159 -0
- package/dist/wje-input-file/input-file.d.ts +2 -0
- package/dist/wje-input-file/input-file.element.d.ts +50 -0
- package/dist/wje-item/item.d.ts +2 -0
- package/dist/wje-item/item.element.d.ts +68 -0
- package/dist/wje-kanban/kanban.d.ts +2 -0
- package/dist/wje-kanban/kanban.element.d.ts +182 -0
- package/dist/wje-label/label.d.ts +2 -0
- package/dist/wje-label/label.element.d.ts +34 -0
- package/dist/wje-level-indicator/level-indicator.d.ts +2 -0
- package/dist/wje-level-indicator/level-indicator.element.d.ts +91 -0
- package/dist/wje-list/list.d.ts +2 -0
- package/dist/wje-list/list.element.d.ts +31 -0
- package/dist/wje-main/main.d.ts +2 -0
- package/dist/wje-main/main.element.d.ts +30 -0
- package/dist/wje-masonry/masonry.d.ts +2 -0
- package/dist/wje-masonry/masonry.element.d.ts +114 -0
- package/dist/wje-masonry/service/service.d.ts +32 -0
- package/dist/wje-menu/menu.d.ts +2 -0
- package/dist/wje-menu/menu.element.d.ts +47 -0
- package/dist/wje-menu-button/menu-button.d.ts +2 -0
- package/dist/wje-menu-button/menu-button.element.d.ts +34 -0
- package/dist/wje-menu-item/menu-item.d.ts +2 -0
- package/dist/wje-menu-item/menu-item.element.d.ts +161 -0
- package/dist/wje-menu-label/menu-label.d.ts +2 -0
- package/dist/wje-menu-label/menu-label.element.d.ts +39 -0
- package/dist/wje-option/option.d.ts +2 -0
- package/dist/wje-option/option.element.d.ts +95 -0
- package/dist/wje-options/options.d.ts +2 -0
- package/dist/wje-options/options.element.d.ts +232 -0
- package/dist/wje-orgchart/orgchart.d.ts +2 -0
- package/dist/wje-orgchart/orgchart.element.d.ts +24 -0
- package/dist/wje-orgchart-group/orgchart-group.d.ts +2 -0
- package/dist/wje-orgchart-group/orgchart-group.element.d.ts +28 -0
- package/dist/wje-orgchart-item/orgchart-item.d.ts +2 -0
- package/dist/wje-orgchart-item/orgchart-item.element.d.ts +49 -0
- package/dist/wje-pagination/pagination.d.ts +2 -0
- package/dist/wje-pagination/pagination.element.d.ts +178 -0
- package/dist/wje-pagination/pagination.test.d.ts +1 -0
- package/dist/wje-pagination/service/service.d.ts +9 -0
- package/dist/wje-panel/panel.d.ts +2 -0
- package/dist/wje-panel/panel.element.d.ts +34 -0
- package/dist/wje-popup/popup.d.ts +2 -0
- package/dist/wje-popup/popup.element.d.ts +145 -0
- package/dist/wje-progress-bar/progress-bar.d.ts +2 -0
- package/dist/wje-progress-bar/progress-bar.element.d.ts +96 -0
- package/dist/wje-qr-code/qr-code.d.ts +2 -0
- package/dist/wje-qr-code/qr-code.element.d.ts +33 -0
- package/dist/wje-radio/radio.d.ts +2 -0
- package/dist/wje-radio/radio.element.d.ts +64 -0
- package/dist/wje-radio-group/radio-group.d.ts +2 -0
- package/dist/wje-radio-group/radio-group.element.d.ts +61 -0
- package/dist/wje-rate/rate.d.ts +2 -0
- package/dist/wje-rate/rate.element.d.ts +156 -0
- package/dist/wje-relative-time/relative-time.d.ts +2 -0
- package/dist/wje-relative-time/relative-time.element.d.ts +55 -0
- package/dist/wje-relative-time/relative-time.test.d.ts +1 -0
- package/dist/wje-reorder/reorder.d.ts +2 -0
- package/dist/wje-reorder/reorder.element.d.ts +119 -0
- package/dist/wje-reorder-dropzone/reorder-dropzone.d.ts +2 -0
- package/dist/wje-reorder-dropzone/reorder-dropzone.element.d.ts +23 -0
- package/dist/wje-reorder-handle/reorder-handle.d.ts +2 -0
- package/dist/wje-reorder-handle/reorder-handle.element.d.ts +84 -0
- package/dist/wje-reorder-item/reorder-item.d.ts +2 -0
- package/dist/wje-reorder-item/reorder-item.element.d.ts +24 -0
- package/dist/wje-route/route.d.ts +2 -0
- package/dist/wje-route/route.element.d.ts +22 -0
- package/dist/wje-router/router.d.ts +2 -0
- package/dist/wje-router/router.element.d.ts +43 -0
- package/dist/wje-router-link/router-link.d.ts +2 -0
- package/dist/wje-router-link/router-link.element.d.ts +31 -0
- package/dist/wje-router-outlet/router-outlet.d.ts +2 -0
- package/dist/wje-router-outlet/router-outlet.element.d.ts +16 -0
- package/dist/wje-row/row.d.ts +2 -0
- package/dist/wje-row/row.element.d.ts +23 -0
- package/dist/wje-select/select.d.ts +2 -0
- package/dist/wje-select/select.element.d.ts +386 -0
- package/dist/wje-select/select.test.d.ts +1 -0
- package/dist/wje-slider/slider.d.ts +2 -0
- package/dist/wje-slider/slider.element.d.ts +103 -0
- package/dist/wje-sliding-container/sliding-container.d.ts +2 -0
- package/dist/wje-sliding-container/sliding-container.element.d.ts +265 -0
- package/dist/wje-split-view/service/service.d.ts +1 -0
- package/dist/wje-split-view/split-view.d.ts +2 -0
- package/dist/wje-split-view/split-view.element.d.ts +65 -0
- package/dist/wje-status/status.d.ts +2 -0
- package/dist/wje-status/status.element.d.ts +26 -0
- package/dist/wje-step/step.d.ts +2 -0
- package/dist/wje-step/step.element.d.ts +23 -0
- package/dist/wje-stepper/stepper.d.ts +2 -0
- package/dist/wje-stepper/stepper.element.d.ts +125 -0
- package/dist/wje-store/default-store-actions.d.ts +25 -0
- package/dist/wje-store/pubsub.d.ts +22 -0
- package/dist/wje-store/store.d.ts +153 -0
- package/dist/wje-tab/tab.d.ts +2 -0
- package/dist/wje-tab/tab.element.d.ts +66 -0
- package/dist/wje-tab-group/tab-group.d.ts +2 -0
- package/dist/wje-tab-group/tab-group.element.d.ts +131 -0
- package/dist/wje-tab-group/tab-group.test.d.ts +1 -0
- package/dist/wje-tab-panel/tab-panel.d.ts +2 -0
- package/dist/wje-tab-panel/tab-panel.element.d.ts +23 -0
- package/dist/wje-textarea/textarea.d.ts +2 -0
- package/dist/wje-textarea/textarea.element.d.ts +89 -0
- package/dist/wje-thumbnail/thumbnail.d.ts +2 -0
- package/dist/wje-thumbnail/thumbnail.element.d.ts +31 -0
- package/dist/wje-timeline/timeline.d.ts +2 -0
- package/dist/wje-timeline/timeline.element.d.ts +25 -0
- package/dist/wje-timeline-item/timeline-item.d.ts +2 -0
- package/dist/wje-timeline-item/timeline-item.element.d.ts +27 -0
- package/dist/wje-toast/toast.d.ts +2 -0
- package/dist/wje-toast/toast.element.d.ts +173 -0
- package/dist/wje-toast/toast.test.d.ts +1 -0
- package/dist/wje-toggle/toggle.d.ts +2 -0
- package/dist/wje-toggle/toggle.element.d.ts +81 -0
- package/dist/wje-toggle/toggle.test.d.ts +1 -0
- package/dist/wje-toolbar/toolbar.d.ts +2 -0
- package/dist/wje-toolbar/toolbar.element.d.ts +39 -0
- package/dist/wje-toolbar-action/toolbar-action.d.ts +2 -0
- package/dist/wje-toolbar-action/toolbar-action.element.d.ts +35 -0
- package/dist/wje-tooltip/tooltip.d.ts +2 -0
- package/dist/wje-tooltip/tooltip.element.d.ts +77 -0
- package/dist/wje-tree/tree.d.ts +2 -0
- package/dist/wje-tree/tree.element.d.ts +105 -0
- package/dist/wje-tree/tree.test.d.ts +1 -0
- package/dist/wje-tree-item/tree-item.d.ts +2 -0
- package/dist/wje-tree-item/tree-item.element.d.ts +155 -0
- package/dist/wje-tree-item/tree-item.test.d.ts +1 -0
- package/dist/wje-visually-hidden/visually-hidden.d.ts +2 -0
- package/dist/wje-visually-hidden/visually-hidden.element.d.ts +29 -0
- package/package.json +2 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export { Localizer } from './utils/localize.js';
|
|
2
|
+
export { Permissions } from './utils/permissions.js';
|
|
3
|
+
export { UniversalService } from './utils/universal-service.js';
|
|
4
|
+
export { fetchAndParseCSS } from './utils/animations.js';
|
|
5
|
+
export { event } from './utils/event.js';
|
|
6
|
+
export { skSk } from './translations/sk-sk.js';
|
|
7
|
+
export { enGb } from './translations/en-gb.js';
|
|
8
|
+
export { default as Accordion } from './wje-accordion/accordion.js';
|
|
9
|
+
export { default as AccordionItem } from './wje-accordion-item/accordion-item.js';
|
|
10
|
+
export { default as Animation } from './wje-animation/animation.js';
|
|
11
|
+
export { default as Aside } from './wje-aside/aside.js';
|
|
12
|
+
export { default as Avatar } from './wje-avatar/avatar.js';
|
|
13
|
+
export { default as Badge } from './wje-badge/badge.js';
|
|
14
|
+
export { default as Breadcrumb } from './wje-breadcrumb/breadcrumb.js';
|
|
15
|
+
export { default as Breadcrumbs } from './wje-breadcrumbs/breadcrumbs.js';
|
|
16
|
+
export { default as Button } from './wje-button/button.js';
|
|
17
|
+
export { default as ButtonGroup } from './wje-button-group/button-group.js';
|
|
18
|
+
export { default as Card } from './wje-card/card.js';
|
|
19
|
+
export { default as CardContent } from './wje-card-content/card-content.js';
|
|
20
|
+
export { default as CardControls } from './wje-card-controls/card-controls.js';
|
|
21
|
+
export { default as CardHeader } from './wje-card-header/card-header.js';
|
|
22
|
+
export { default as CardSubtitle } from './wje-card-subtitle/card-subtitle.js';
|
|
23
|
+
export { default as CardTitle } from './wje-card-title/card-title.js';
|
|
24
|
+
export { default as Carousel } from './wje-carousel/carousel.js';
|
|
25
|
+
export { default as CarouselItem } from './wje-carousel-item/carousel-item.js';
|
|
26
|
+
export { default as Checkbox } from './wje-checkbox/checkbox.js';
|
|
27
|
+
export { default as Chip } from './wje-chip/chip.js';
|
|
28
|
+
export { default as Col } from './wje-col/col.js';
|
|
29
|
+
export { default as ColorPicker } from './wje-color-picker/color-picker.js';
|
|
30
|
+
export { default as Container } from './wje-container/container.js';
|
|
31
|
+
export { default as CopyButton } from './wje-copy-button/copy-button.js';
|
|
32
|
+
export { default as Dialog } from './wje-dialog/dialog.js';
|
|
33
|
+
export { default as Divider } from './wje-divider/divider.js';
|
|
34
|
+
export { default as Dropdown } from './wje-dropdown/dropdown.js';
|
|
35
|
+
export { default as WJElement } from './wje-element/element.js';
|
|
36
|
+
export { default as FileUpload } from './wje-file-upload/file-upload.js';
|
|
37
|
+
export { default as FileUploadItem } from './wje-file-upload-item/file-upload-item.js';
|
|
38
|
+
export { default as Footer } from './wje-footer/footer.js';
|
|
39
|
+
export { default as FormatDigital } from './wje-format-digital/format-digital.js';
|
|
40
|
+
export { default as Grid } from './wje-grid/grid.js';
|
|
41
|
+
export { default as Header } from './wje-header/header.js';
|
|
42
|
+
export { default as Icon } from './wje-icon/icon.js';
|
|
43
|
+
export { default as IconPicker } from './wje-icon-picker/icon-picker.js';
|
|
44
|
+
export { default as Img } from './wje-img/img.js';
|
|
45
|
+
export { default as ImgComparer } from './wje-img-comparer/img-comparer.js';
|
|
46
|
+
export { default as InfiniteScroll } from './wje-infinite-scroll/infinite-scroll.js';
|
|
47
|
+
export { default as Input } from './wje-input/input.js';
|
|
48
|
+
export { default as InputFile } from './wje-input-file/input-file.js';
|
|
49
|
+
export { default as Item } from './wje-item/item.js';
|
|
50
|
+
export { default as Kanban } from './wje-kanban/kanban.js';
|
|
51
|
+
export { default as Label } from './wje-label/label.js';
|
|
52
|
+
export { default as LevelIndicator } from './wje-level-indicator/level-indicator.js';
|
|
53
|
+
export { default as List } from './wje-list/list.js';
|
|
54
|
+
export { default as Main } from './wje-main/main.js';
|
|
55
|
+
export { default as Masonry } from './wje-masonry/masonry.js';
|
|
56
|
+
export { default as Menu } from './wje-menu/menu.js';
|
|
57
|
+
export { default as MenuButton } from './wje-menu-button/menu-button.js';
|
|
58
|
+
export { default as MenuItem } from './wje-menu-item/menu-item.js';
|
|
59
|
+
export { default as MenuLabel } from './wje-menu-label/menu-label.js';
|
|
60
|
+
export { default as Option } from './wje-option/option.js';
|
|
61
|
+
export { default as Options } from './wje-options/options.js';
|
|
62
|
+
export { default as Orgchart } from './wje-orgchart/orgchart.js';
|
|
63
|
+
export { default as OrgchartGroup } from './wje-orgchart-group/orgchart-group.js';
|
|
64
|
+
export { default as OrgchartItem } from './wje-orgchart-item/orgchart-item.js';
|
|
65
|
+
export { default as Pagination } from './wje-pagination/pagination.js';
|
|
66
|
+
export { default as Popup } from './wje-popup/popup.js';
|
|
67
|
+
export { default as ProgressBar } from './wje-progress-bar/progress-bar.js';
|
|
68
|
+
export { default as QrCode } from './wje-qr-code/qr-code.js';
|
|
69
|
+
export { default as Radio } from './wje-radio/radio.js';
|
|
70
|
+
export { default as RadioGroup } from './wje-radio-group/radio-group.js';
|
|
71
|
+
export { default as Rate } from './wje-rate/rate.js';
|
|
72
|
+
export { default as RelativeTime } from './wje-relative-time/relative-time.js';
|
|
73
|
+
export { default as Reorder } from './wje-reorder/reorder.js';
|
|
74
|
+
export { default as ReorderDropzone } from './wje-reorder-dropzone/reorder-dropzone.js';
|
|
75
|
+
export { default as ReorderHandle } from './wje-reorder-handle/reorder-handle.js';
|
|
76
|
+
export { default as ReorderItem } from './wje-reorder-item/reorder-item.js';
|
|
77
|
+
export { default as Route } from './wje-route/route.js';
|
|
78
|
+
export { default as Routerx } from './wje-router/router.js';
|
|
79
|
+
export { default as RouterLink } from './wje-router-link/router-link.js';
|
|
80
|
+
export { default as RouterOutlet } from './wje-router-outlet/router-outlet.js';
|
|
81
|
+
export { default as Row } from './wje-row/row.js';
|
|
82
|
+
export { default as Select } from './wje-select/select.js';
|
|
83
|
+
export { default as Slider } from './wje-slider/slider.js';
|
|
84
|
+
export { default as SlidingContainer } from './wje-sliding-container/sliding-container.js';
|
|
85
|
+
export { default as SplitView } from './wje-split-view/split-view.js';
|
|
86
|
+
export { default as Status } from './wje-status/status.js';
|
|
87
|
+
export { default as Step } from './wje-step/step.js';
|
|
88
|
+
export { default as Stepper } from './wje-stepper/stepper.js';
|
|
89
|
+
export { default as Tab } from './wje-tab/tab.js';
|
|
90
|
+
export { default as TabGroup } from './wje-tab-group/tab-group.js';
|
|
91
|
+
export { default as TabPanel } from './wje-tab-panel/tab-panel.js';
|
|
92
|
+
export { default as Textarea } from './wje-textarea/textarea.js';
|
|
93
|
+
export { default as Thumbnail } from './wje-thumbnail/thumbnail.js';
|
|
94
|
+
export { default as Timeline } from './wje-timeline/timeline.js';
|
|
95
|
+
export { default as TimelineItem } from './wje-timeline-item/timeline-item.js';
|
|
96
|
+
export { default as Toast } from './wje-toast/toast.js';
|
|
97
|
+
export { default as Toggle } from './wje-toggle/toggle.js';
|
|
98
|
+
export { default as Toolbar } from './wje-toolbar/toolbar.js';
|
|
99
|
+
export { default as ToolbarAction } from './wje-toolbar-action/toolbar-action.js';
|
|
100
|
+
export { default as Tooltip } from './wje-tooltip/tooltip.js';
|
|
101
|
+
export { default as Tree } from './wje-tree/tree.js';
|
|
102
|
+
export { default as TreeItem } from './wje-tree-item/tree-item.js';
|
|
103
|
+
export { default as VisuallyHidden } from './wje-visually-hidden/visually-hidden.js';
|
|
104
|
+
export { setBasePath, getBasePath } from './utils/base-path.js';
|
|
105
|
+
export { formatDate, toSafeDate } from './utils/date.js';
|
|
106
|
+
export { registerIconLibrary, unregisterIconLibrary } from './utils/icon-library.js';
|
|
107
|
+
export { defaultStoreActions, store } from './wje-store/store.js';
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { default as WJElement } from '../wje-element/element.js';
|
|
2
|
+
export class FormAssociatedElement extends WJElement {
|
|
3
|
+
static formAssociated: boolean;
|
|
4
|
+
internals: ElementInternals;
|
|
5
|
+
/**
|
|
6
|
+
* Sets the 'name' attribute to the given value.
|
|
7
|
+
* @param {string} value The new value for the 'name' attribute.
|
|
8
|
+
*/
|
|
9
|
+
set name(value: string);
|
|
10
|
+
/**
|
|
11
|
+
* Getter for the name attribute.
|
|
12
|
+
* @returns {string} The name of the input.
|
|
13
|
+
*/
|
|
14
|
+
get name(): string;
|
|
15
|
+
/**
|
|
16
|
+
* Getter for the type attribute.
|
|
17
|
+
* @returns {string} The type of the input.
|
|
18
|
+
*/
|
|
19
|
+
get type(): string;
|
|
20
|
+
/**
|
|
21
|
+
* Sets or removes the 'required' attribute on the element.
|
|
22
|
+
* @param {boolean} value If true, adds the 'required' attribute. If false, removes the 'required' attribute.
|
|
23
|
+
*/
|
|
24
|
+
set required(value: boolean);
|
|
25
|
+
/**
|
|
26
|
+
* Checks if the 'required' attribute is present on the element.
|
|
27
|
+
* @returns {boolean} `true` if the 'required' attribute is set, otherwise `false`.
|
|
28
|
+
*/
|
|
29
|
+
get required(): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Setter for the invalid attribute.
|
|
32
|
+
* @param {boolean} isInvalid Whether the input is invalid.
|
|
33
|
+
*/
|
|
34
|
+
set invalid(isInvalid: boolean);
|
|
35
|
+
/**
|
|
36
|
+
* Getter for the invalid attribute.
|
|
37
|
+
* @returns {boolean} Whether the attribute is present.
|
|
38
|
+
*/
|
|
39
|
+
get invalid(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Set checked attribute.
|
|
42
|
+
* @param {boolean} value true if the toggle is checked, false otherwise
|
|
43
|
+
*/
|
|
44
|
+
set disabled(value: boolean);
|
|
45
|
+
/**
|
|
46
|
+
* Get disabled attribute value.
|
|
47
|
+
* @returns {boolean} true if the toggle is disabled, false otherwise
|
|
48
|
+
*/
|
|
49
|
+
get disabled(): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Retrieves the form element associated with this object.
|
|
52
|
+
* @returns {HTMLFormElement|null} The associated form element, or null if there isn't one.
|
|
53
|
+
*/
|
|
54
|
+
get form(): HTMLFormElement | null;
|
|
55
|
+
/**
|
|
56
|
+
* Retrieves the validity state of the element by returning the validity object from the internal element.
|
|
57
|
+
* The validity object provides information on whether the element satisfies its validation constraints.
|
|
58
|
+
* @returns {ValidityState} The validity state object representing the element's validation constraints.
|
|
59
|
+
*/
|
|
60
|
+
get validity(): ValidityState;
|
|
61
|
+
/**
|
|
62
|
+
* Retrieves the current validation message associated with the element.
|
|
63
|
+
* @returns {string} The validation message that describes why the element's value fails validity checks.
|
|
64
|
+
*/
|
|
65
|
+
get validationMessage(): string;
|
|
66
|
+
/**
|
|
67
|
+
* Indicates whether the element is a candidate for constraint validation.
|
|
68
|
+
* @returns {boolean} Returns true if the element will be validated during constraint validation, false otherwise.
|
|
69
|
+
*/
|
|
70
|
+
get willValidate(): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Validates the input element associated with the component and updates its validity state
|
|
73
|
+
* and error messages based on the user's input and the current validation rules.
|
|
74
|
+
* @returns {void} This method does not return a value. It modifies the validity state
|
|
75
|
+
* internally and sets appropriate validation messages.
|
|
76
|
+
*/
|
|
77
|
+
validate(): void;
|
|
78
|
+
validationError: string;
|
|
79
|
+
/**
|
|
80
|
+
* Propagates a validation event based on the validity state of the component.
|
|
81
|
+
*
|
|
82
|
+
* This method checks the validity status of the component and emits a custom
|
|
83
|
+
* event if the component is invalid. The event's name and additional details
|
|
84
|
+
* can be specified.
|
|
85
|
+
* @param {string} [eventName] The name of the event to dispatch when the component is invalid.
|
|
86
|
+
* @param {object} [detail] Additional detail to include in the dispatched event.
|
|
87
|
+
* @returns {void} This method does not return a value.
|
|
88
|
+
*/
|
|
89
|
+
propagateValidation(eventName?: string, detail?: object): void;
|
|
90
|
+
/**
|
|
91
|
+
* Displays an invalid message for the current element.
|
|
92
|
+
* If an error message element does not exist within the designated slot,
|
|
93
|
+
* it creates one and appends it to the slot. Updates the text content
|
|
94
|
+
* of the error message element with the validation message from the
|
|
95
|
+
* element's internals.
|
|
96
|
+
* @returns {void} This method does not return any value.
|
|
97
|
+
*/
|
|
98
|
+
showInvalidMessage(): void;
|
|
99
|
+
/**
|
|
100
|
+
* Checks the validity of the input by invoking custom validation logic
|
|
101
|
+
* and then verifying against internal validation rules.
|
|
102
|
+
* @returns {boolean} Returns true if the input is valid according to both custom validation and internal validation rules, otherwise false.
|
|
103
|
+
*/
|
|
104
|
+
checkValidity(): boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Callback to handle the reset action for a form.
|
|
107
|
+
* Resets the value of the form control to its default value, updates the form value, and clears any validity states.
|
|
108
|
+
* @returns {void} Does not return a value.
|
|
109
|
+
*/
|
|
110
|
+
formResetCallback(): void;
|
|
111
|
+
value: any;
|
|
112
|
+
/**
|
|
113
|
+
* Restores the form state by assigning the provided state value
|
|
114
|
+
* and updating the internal form value and validity.
|
|
115
|
+
* @param {object} state The state object containing the value to restore the form.
|
|
116
|
+
* @param {*} state.value The value to set for the form element.
|
|
117
|
+
* @returns {void} This method does not return any value.
|
|
118
|
+
*/
|
|
119
|
+
formStateRestoreCallback(state: {
|
|
120
|
+
value: any;
|
|
121
|
+
}): void;
|
|
122
|
+
/**
|
|
123
|
+
* Callback method to save the current state of a form.
|
|
124
|
+
* This method captures and returns the form's value property.
|
|
125
|
+
* @returns {object} An object containing the `value` property of the current form state.
|
|
126
|
+
*/
|
|
127
|
+
formStateSaveCallback(): object;
|
|
128
|
+
/**
|
|
129
|
+
* Toggles the disabled state of the component and updates corresponding attributes.
|
|
130
|
+
* @param {boolean} disabled Indicates whether the form should be marked as disabled.
|
|
131
|
+
* If true, the 'disabled' class is added, and the 'disabled' attribute is set.
|
|
132
|
+
* If false, both the class and attribute are removed.
|
|
133
|
+
* @returns {void}
|
|
134
|
+
*/
|
|
135
|
+
formDisabledCallback(disabled: boolean): void;
|
|
136
|
+
/**
|
|
137
|
+
* A lifecycle callback that is executed when the element is associated with a form.
|
|
138
|
+
* It updates the form's value field with the element's value and sets up an event
|
|
139
|
+
* listener to perform validation and propagate it whenever the form is submitted.
|
|
140
|
+
* @returns {void} Does not return any value.
|
|
141
|
+
*/
|
|
142
|
+
formAssociatedCallback(): void;
|
|
143
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export function registerTranslation(...translation: any[]): void;
|
|
2
|
+
export class LocalizerDefault {
|
|
3
|
+
constructor(element: any);
|
|
4
|
+
element: any;
|
|
5
|
+
lang: any;
|
|
6
|
+
dir: any;
|
|
7
|
+
currentLang: string;
|
|
8
|
+
get languages(): any;
|
|
9
|
+
setLanguage(): void;
|
|
10
|
+
convertLangCode: (lang: any) => any;
|
|
11
|
+
/**
|
|
12
|
+
* Translates a given translation key based on the currently selected language.
|
|
13
|
+
* @param {string} key The key representing the text to be translated.
|
|
14
|
+
* @returns {string} The translated text if available; otherwise, returns the original key.
|
|
15
|
+
*/
|
|
16
|
+
translate(key: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Translates a key into a localized string based on the provided count and pluralization type.
|
|
19
|
+
* @param {string} key The base translation key to be used for fetching the localized string.
|
|
20
|
+
* @param {number} [count=0] The count value used to determine the pluralization form.
|
|
21
|
+
* @param {string} [type='cardinal'] The type of pluralization to use, such as 'cardinal' or 'ordinal'.
|
|
22
|
+
* @returns {string} The translated string, adapted to the pluralization rules and count.
|
|
23
|
+
*/
|
|
24
|
+
translatePlural(key: string, count?: number, type?: string): string;
|
|
25
|
+
/**
|
|
26
|
+
* Formats a number according to the specified locale and formatting options.
|
|
27
|
+
* @param {number} number The numeric value to format.
|
|
28
|
+
* @param {object} options An object containing formatting options for the number.
|
|
29
|
+
* @returns {string} The formatted number as a string.
|
|
30
|
+
*/
|
|
31
|
+
formatNumber(number: number, options: object): string;
|
|
32
|
+
/**
|
|
33
|
+
* Formats a given date based on the specified options and the current language setting.
|
|
34
|
+
* @param {string|Date|number} date The date to format. Can be a Date object, a timestamp, or a date string.
|
|
35
|
+
* @param {object} options The formatting options to customize the output, as supported by Intl.DateTimeFormat.
|
|
36
|
+
* @returns {string} The formatted date string based on the specified options and current language.
|
|
37
|
+
*/
|
|
38
|
+
formatDate(date: string | Date | number, options: object): string;
|
|
39
|
+
/**
|
|
40
|
+
* Formats a relative time string based on a given language, value, unit, and formatting options.
|
|
41
|
+
* @param {string} lang The language to use for formatting. Defaults to `this.currentLang` if not provided.
|
|
42
|
+
* @param {number} value The numerical value to format, representing the time difference.
|
|
43
|
+
* @param {string} [unit] The unit of time to use (e.g., "second", "minute", "hour", "day", "week", "month", "year").
|
|
44
|
+
* @param {object} [options] An object containing formatting options, such as the style for the numeric representation.
|
|
45
|
+
* @returns {string} The formatted relative time string in the specified language.
|
|
46
|
+
*/
|
|
47
|
+
relativeTime(lang: string, value?: number, unit?: string, options?: object): string;
|
|
48
|
+
}
|
|
@@ -119,6 +119,18 @@ export default class FileUpload extends WJElement {
|
|
|
119
119
|
* @returns {boolean}
|
|
120
120
|
*/
|
|
121
121
|
get toChunk(): boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Sets the maximum number of files that can be uploaded or managed.
|
|
124
|
+
* Assigns the specified value to the 'max-files' attribute.
|
|
125
|
+
* @param {number} value The maximum allowable number of files.
|
|
126
|
+
*/
|
|
127
|
+
set maxFiles(value: number);
|
|
128
|
+
/**
|
|
129
|
+
* Retrieves the maximum number of files allowed from the `max-files` attribute.
|
|
130
|
+
* If the attribute is not set or is invalid, defaults to 0.
|
|
131
|
+
* @returns {number} The maximum number of files allowed.
|
|
132
|
+
*/
|
|
133
|
+
get maxFiles(): number;
|
|
122
134
|
beforeDraw(): void;
|
|
123
135
|
uploadFunction: Function;
|
|
124
136
|
/**
|
|
@@ -31,22 +31,38 @@ export default class FileUploadItem extends WJElement {
|
|
|
31
31
|
*/
|
|
32
32
|
static get observedAttributes(): Array<string>;
|
|
33
33
|
localizer: Localizer;
|
|
34
|
+
/**
|
|
35
|
+
* Sets the 'is-uploaded' attribute to indicate the uploaded status.
|
|
36
|
+
* @param {boolean} value The value to determine if the element is uploaded.
|
|
37
|
+
*/
|
|
34
38
|
set isUploaded(value: boolean);
|
|
39
|
+
/**
|
|
40
|
+
* Checks if the 'is-uploaded' attribute is present on the element.
|
|
41
|
+
* @returns {boolean} True if the 'is-uploaded' attribute exists, otherwise false.
|
|
42
|
+
*/
|
|
35
43
|
get isUploaded(): boolean;
|
|
36
|
-
|
|
37
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Sets the size attribute of the element.
|
|
46
|
+
* @param {string | number} value The value to set for the size attribute.
|
|
47
|
+
*/
|
|
48
|
+
set size(value: string | number);
|
|
49
|
+
/**
|
|
50
|
+
* Retrieves the value of the 'size' attribute.
|
|
51
|
+
* @returns {string|null} The value of the 'size' attribute, or null if the attribute is not present.
|
|
52
|
+
*/
|
|
53
|
+
get size(): string | null;
|
|
38
54
|
/**
|
|
39
55
|
* Dependencies for the component.
|
|
40
56
|
* @type {object}
|
|
41
57
|
*/
|
|
42
58
|
dependencies: object;
|
|
43
59
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* @param {string} name The name of the attribute
|
|
47
|
-
* @param {string
|
|
48
|
-
* @param {string
|
|
49
|
-
* @returns {void}
|
|
60
|
+
* A lifecycle method that is called when one of the observed attributes of the custom element is added, removed, or changed.
|
|
61
|
+
* This method is used to react to changes in the specified attributes.
|
|
62
|
+
* @param {string} name The name of the attribute that was changed.
|
|
63
|
+
* @param {string|null} oldValue The previous value of the attribute before the change, or null if the attribute was not previously set.
|
|
64
|
+
* @param {string|null} newValue The new value of the attribute after the change, or null if the attribute has been removed.
|
|
65
|
+
* @returns {void} This method does not return a value.
|
|
50
66
|
*/
|
|
51
67
|
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
52
68
|
/**
|
|
@@ -242,8 +242,8 @@ export default class SlidingContainer extends WJElement {
|
|
|
242
242
|
* @returns {Promise<void>} A promise that resolves when the transition animation is completed.
|
|
243
243
|
*/
|
|
244
244
|
doAnimateTransition(): Promise<void>;
|
|
245
|
-
animation:
|
|
246
|
-
nativeAnimation:
|
|
245
|
+
animation: Animation;
|
|
246
|
+
nativeAnimation: Animation;
|
|
247
247
|
/**
|
|
248
248
|
* Opens the sliding container by performing necessary preparatory and transitional operations.
|
|
249
249
|
* @param {Event} e The event that triggered the open operation.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const enGb: {
|
|
2
|
+
code: string;
|
|
3
|
+
name: string;
|
|
4
|
+
dir: string;
|
|
5
|
+
welcome: string;
|
|
6
|
+
'wj.file.upload.button': string;
|
|
7
|
+
'wj.file.upload.uploaded': string;
|
|
8
|
+
'wj.file.upload.from': string;
|
|
9
|
+
'wj.stepper.button.next': string;
|
|
10
|
+
'wj.stepper.button.finish': string;
|
|
11
|
+
'wj.stepper.button.previous': string;
|
|
12
|
+
'wj.stepper.step': string;
|
|
13
|
+
'wj.pagination.of': string;
|
|
14
|
+
'wj.pagination.first': string;
|
|
15
|
+
'wj.pagination.prev': string;
|
|
16
|
+
'wj.pagination.next': string;
|
|
17
|
+
'wj.pagination.last': string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const skSk: {
|
|
2
|
+
code: string;
|
|
3
|
+
name: string;
|
|
4
|
+
dir: string;
|
|
5
|
+
welcome: string;
|
|
6
|
+
'wj.file.upload.button': string;
|
|
7
|
+
'wj.file.upload.uploaded': string;
|
|
8
|
+
'wj.file.upload.from': string;
|
|
9
|
+
'wj.stepper.button.next': string;
|
|
10
|
+
'wj.stepper.button.finish': string;
|
|
11
|
+
'wj.stepper.button.previous': string;
|
|
12
|
+
'wj.stepper.step': string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sets the base path for the application.
|
|
3
|
+
* @param {string} path The base path to be set.
|
|
4
|
+
* @returns {void} This function does not return anything.
|
|
5
|
+
*/
|
|
6
|
+
export function setBasePath(path: string): void;
|
|
7
|
+
/**
|
|
8
|
+
* Returns the base path of the application, optionally appending a specified relative path.
|
|
9
|
+
* If the base path has not been set, it determines the base path from the first script element
|
|
10
|
+
* with a `base-path` attribute or generates it based on the current script location.
|
|
11
|
+
* @param {string} [appendedPath] The relative path to append to the base path. Defaults to an empty string.
|
|
12
|
+
* @returns {string} The complete base path, with the appended relative path if specified.
|
|
13
|
+
*/
|
|
14
|
+
export function getBasePath(appendedPath?: string): string;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export class WjElementUtils {
|
|
2
|
+
/**
|
|
3
|
+
* This function creates an element.
|
|
4
|
+
* @param element : HTMLElement - The element value.
|
|
5
|
+
* @param object : Object - The object value.
|
|
6
|
+
*/
|
|
7
|
+
static setAttributesToElement(element: any, object: any): void;
|
|
8
|
+
/**
|
|
9
|
+
* This function gets the attributes from an element.
|
|
10
|
+
* @param {string|HTMLElement} el The element or selector to retrieve attributes from.
|
|
11
|
+
* @returns {object} - An object containing the element's attributes as key-value pairs.
|
|
12
|
+
*/
|
|
13
|
+
static getAttributes(el: string | HTMLElement): object;
|
|
14
|
+
/**
|
|
15
|
+
* This function gets the events from an element.
|
|
16
|
+
* @param {string|HTMLElement} el The element or selector to retrieve events from.
|
|
17
|
+
* @returns {Map<any, any>} - The map value.
|
|
18
|
+
*/
|
|
19
|
+
static getEvents(el: string | HTMLElement): Map<any, any>;
|
|
20
|
+
/**
|
|
21
|
+
* This function converts an object to a string.
|
|
22
|
+
* @param {object} object The object to convert.
|
|
23
|
+
* @returns {string} - The string value.
|
|
24
|
+
*/
|
|
25
|
+
static attributesToString(object: object): string;
|
|
26
|
+
/**
|
|
27
|
+
* This function checks if the slot exists.
|
|
28
|
+
* @param {string|HTMLElement} el The element or selector to check for slots.
|
|
29
|
+
* @param slotName The slot name to check for.
|
|
30
|
+
* @returns {boolean} - The boolean value.
|
|
31
|
+
*/
|
|
32
|
+
static hasSlot(el: string | HTMLElement, slotName?: any): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* This function checks if the slot has content.
|
|
35
|
+
* @param {string|HTMLElement} el The element or selector to check for slot content
|
|
36
|
+
* @param slotName The slot name to check for.
|
|
37
|
+
* @returns {boolean} - The boolean value.
|
|
38
|
+
*/
|
|
39
|
+
static hasSlotContent(el: string | HTMLElement, slotName?: any): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* This function converts a string to a boolean.
|
|
42
|
+
* @param {string | object} value The value to convert to a boolean. If the value is a boolean, it will be returned as is.
|
|
43
|
+
* @returns {boolean} - The boolean value.
|
|
44
|
+
*/
|
|
45
|
+
static stringToBoolean(value: string | object): boolean;
|
|
46
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export let event: Event;
|
|
2
|
+
declare class Event {
|
|
3
|
+
customEventWeakMap: WeakMap<WeakKey, any>;
|
|
4
|
+
/**
|
|
5
|
+
* Dispatch custom event to the element with the specified event name and detail.
|
|
6
|
+
* @param element
|
|
7
|
+
* @param event
|
|
8
|
+
* @param detail
|
|
9
|
+
*/
|
|
10
|
+
dispatchCustomEvent(element: any, event: any, detail: any): void;
|
|
11
|
+
/**
|
|
12
|
+
* Find record by element in the storage.
|
|
13
|
+
* @param element
|
|
14
|
+
* @returns {*}
|
|
15
|
+
*/
|
|
16
|
+
findRecordByElement(element: any): any;
|
|
17
|
+
/**
|
|
18
|
+
* Add listener to the element. If the element is an array, the listener will be added to all elements in the array.
|
|
19
|
+
* @param element
|
|
20
|
+
* @param originalEvent
|
|
21
|
+
* @param event
|
|
22
|
+
* @param listener
|
|
23
|
+
* @param options
|
|
24
|
+
*/
|
|
25
|
+
addListener(element: any, originalEvent: any, event: any, listener: any, options: any): void;
|
|
26
|
+
/**
|
|
27
|
+
* Write record to the storage.
|
|
28
|
+
* @param element
|
|
29
|
+
* @param originalEvent
|
|
30
|
+
* @param event
|
|
31
|
+
* @param listener
|
|
32
|
+
* @param options
|
|
33
|
+
*/
|
|
34
|
+
writeRecord(element: any, originalEvent: any, event: any, listener: any, options: any): void;
|
|
35
|
+
/**
|
|
36
|
+
* Performs a deep equality check between two objects.
|
|
37
|
+
* @param x The first object to compare.
|
|
38
|
+
* @param y The second object to compare.
|
|
39
|
+
* @returns - Returns `true` if the objects are deeply equal, `false` otherwise.
|
|
40
|
+
*/
|
|
41
|
+
deepEqual(x: any, y: any): any;
|
|
42
|
+
/**
|
|
43
|
+
* Check if the listener already exists on the element.
|
|
44
|
+
* @param records
|
|
45
|
+
* @param eventObj
|
|
46
|
+
* @returns
|
|
47
|
+
*/
|
|
48
|
+
listenerExists(records: any, eventObj: any): any;
|
|
49
|
+
isRecordExists(records: any, eventObj: any): any;
|
|
50
|
+
/**
|
|
51
|
+
* Remove listener from the element and delete the listener from the custom event storage.
|
|
52
|
+
* @param element
|
|
53
|
+
* @param originalEvent
|
|
54
|
+
* @param event
|
|
55
|
+
* @param listener
|
|
56
|
+
* @param options
|
|
57
|
+
*/
|
|
58
|
+
removeListener(element: any, originalEvent: any, event: any, listener: any, options: any): void;
|
|
59
|
+
/**
|
|
60
|
+
* Remove all event listeners from the specified element and delete the element from the custom event storage.
|
|
61
|
+
* @param {HTMLElement} element The element from which all listeners will be removed.
|
|
62
|
+
*/
|
|
63
|
+
removeElement(element: HTMLElement): void;
|
|
64
|
+
createPromiseFromEvent(element: any, event: any): Promise<any>;
|
|
65
|
+
#private;
|
|
66
|
+
}
|
|
67
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PermissionsApi is a utility class for managing permissions.
|
|
3
|
+
* It allows setting, retrieving, and checking permissions stored in the browser's local storage.
|
|
4
|
+
*/
|
|
5
|
+
export class Permissions {
|
|
6
|
+
static _permissionKey: string;
|
|
7
|
+
/**
|
|
8
|
+
* Sets the permission key for the PermissionsApi.
|
|
9
|
+
* The key is stored internally and defaults to 'permissions' if no value is provided.
|
|
10
|
+
* @param {string} value The key to set for permissions. If no value is provided, the default is 'permissions'.
|
|
11
|
+
*/
|
|
12
|
+
static set permissionKey(value: string);
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves the permission key used for accessing the permissions API.
|
|
15
|
+
* @returns {string} The permission key associated with the PermissionsApi.
|
|
16
|
+
*/
|
|
17
|
+
static get permissionKey(): string;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the permissions by storing them in the local storage.
|
|
20
|
+
* @param {object} value The permissions object to be stored.
|
|
21
|
+
*/
|
|
22
|
+
static set permissions(value: object);
|
|
23
|
+
/**
|
|
24
|
+
* Retrieves the list of permissions stored in the browser's local storage.
|
|
25
|
+
* @returns {Array} An array of permissions. If no permissions are found, returns an empty array.
|
|
26
|
+
*/
|
|
27
|
+
static get permissions(): any[];
|
|
28
|
+
/**
|
|
29
|
+
* Determines whether the specified key exists in the permissions list.
|
|
30
|
+
* @param {string} key The key to check for existence in the permissions list.
|
|
31
|
+
* @returns {boolean} Returns true if the key exists in the permissions list; otherwise, returns false.
|
|
32
|
+
*/
|
|
33
|
+
static includesKey(key: string): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Checks if at least one of the given permissions is fulfilled, based on the permissions available in `PermissionsApi`.
|
|
36
|
+
* @param {Array<string>} permissions The list of permissions to check against the permissions available in `PermissionsApi`.
|
|
37
|
+
* @returns {boolean} Returns `true` if any of the given permissions match the permissions available in `PermissionsApi`, otherwise returns `false`.
|
|
38
|
+
*/
|
|
39
|
+
static isPermissionFulfilled(permissions: Array<string>): boolean;
|
|
40
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export class UniversalService {
|
|
2
|
+
constructor(props?: {});
|
|
3
|
+
_store: any;
|
|
4
|
+
findByKey: (attrName: any, key: any, keyValue: any) => any;
|
|
5
|
+
findById: (attrName: any, id: any) => any;
|
|
6
|
+
findAttributeValue: (attrName: any) => any;
|
|
7
|
+
update: (data: any, action: any) => void;
|
|
8
|
+
add: (data: any, action: any) => void;
|
|
9
|
+
_request(url: any, data: any, action: any, dispatchMethod: any, method: any, signal: any): any;
|
|
10
|
+
put(url: any, data: any, action: any, dispatchMethod?: boolean, signal?: any): any;
|
|
11
|
+
post(url: any, data: any, action: any, dispatchMethod?: boolean, signal?: any): any;
|
|
12
|
+
delete(url: any, data: any, action: any, dispatchMethod?: boolean, signal?: any): any;
|
|
13
|
+
get(url: any, action: any, dispatchMethod?: boolean, signal?: any): any;
|
|
14
|
+
patch(url: any, data: any, action: any, dispatchMethod?: boolean, signal?: any): any;
|
|
15
|
+
dispatch(promise: any, dispatchMethod: any, action: any): any;
|
|
16
|
+
loadPromise: (url: any, action: any, method?: string, data?: string, permissionCallBack?: () => void) => Promise<any>;
|
|
17
|
+
loadOnePromise: (url: any, action: any) => Promise<any>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function bool(v: any): boolean;
|