wj-elements 0.7.7 → 0.8.0
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/animations.js +28 -51
- package/dist/animations.js.map +1 -1
- package/dist/base-path.js +19 -31
- package/dist/base-path.js.map +1 -1
- package/dist/custom-elements.json +11504 -11499
- package/dist/dark.css +1 -302
- package/dist/date.js +16 -36
- package/dist/date.js.map +1 -1
- package/dist/element-utils.js +20 -81
- package/dist/element-utils.js.map +1 -1
- package/dist/event.js +49 -165
- package/dist/event.js.map +1 -1
- package/dist/form-associated-element-BjeJn7j8.js +101 -0
- package/dist/{form-associated-element-DEQ4y-jn.js.map → form-associated-element-BjeJn7j8.js.map} +1 -1
- package/dist/icon-DmsqtDpL.js +102 -0
- package/dist/{icon-CReYMzAK.js.map → icon-DmsqtDpL.js.map} +1 -1
- package/dist/light.css +1 -731
- package/dist/localize.js +36 -111
- package/dist/localize.js.map +1 -1
- package/dist/packages/wje-accordion-item/accordion-item.element.d.ts +3 -2
- package/dist/permissions.js +14 -41
- package/dist/permissions.js.map +1 -1
- package/dist/popup.element-CbkhthPP.js +806 -0
- package/dist/{popup.element-CwXvVFK7.js.map → popup.element-CbkhthPP.js.map} +1 -1
- package/dist/router-links-CNsJ-elb.js +105 -0
- package/dist/{router-links-wjqCnncc.js.map → router-links-CNsJ-elb.js.map} +1 -1
- package/dist/skeleton.css +1 -197
- package/dist/styles.css +1 -866
- package/dist/universal-service.js +48 -109
- package/dist/universal-service.js.map +1 -1
- package/dist/utils.js +11 -18
- package/dist/utils.js.map +1 -1
- package/dist/web-types.json +760 -760
- package/dist/wje-accordion-item.js +33 -106
- package/dist/wje-accordion-item.js.map +1 -1
- package/dist/wje-accordion.js +19 -84
- package/dist/wje-accordion.js.map +1 -1
- package/dist/wje-animation.js +37 -4258
- package/dist/wje-animation.js.map +1 -1
- package/dist/wje-aside.js +9 -34
- package/dist/wje-aside.js.map +1 -1
- package/dist/wje-avatar.js +36 -126
- package/dist/wje-avatar.js.map +1 -1
- package/dist/wje-badge.js +10 -52
- package/dist/wje-badge.js.map +1 -1
- package/dist/wje-breadcrumb.js +205 -672
- package/dist/wje-breadcrumb.js.map +1 -1
- package/dist/wje-breadcrumbs.js +177 -633
- package/dist/wje-breadcrumbs.js.map +1 -1
- package/dist/wje-button-group.js +48 -153
- package/dist/wje-button-group.js.map +1 -1
- package/dist/wje-button.js +92 -413
- package/dist/wje-button.js.map +1 -1
- package/dist/wje-card-content.js +7 -30
- package/dist/wje-card-content.js.map +1 -1
- package/dist/wje-card-controls.js +7 -30
- package/dist/wje-card-controls.js.map +1 -1
- package/dist/wje-card-header.js +7 -30
- package/dist/wje-card-header.js.map +1 -1
- package/dist/wje-card-subtitle.js +7 -34
- package/dist/wje-card-subtitle.js.map +1 -1
- package/dist/wje-card-title.js +7 -34
- package/dist/wje-card-title.js.map +1 -1
- package/dist/wje-card.js +15 -71
- package/dist/wje-card.js.map +1 -1
- package/dist/wje-carousel-item.js +12 -56
- package/dist/wje-carousel-item.js.map +1 -1
- package/dist/wje-carousel.js +154 -509
- package/dist/wje-carousel.js.map +1 -1
- package/dist/wje-checkbox.js +50 -227
- package/dist/wje-checkbox.js.map +1 -1
- package/dist/wje-chip.js +43 -160
- package/dist/wje-chip.js.map +1 -1
- package/dist/wje-col.js +7 -20
- package/dist/wje-col.js.map +1 -1
- package/dist/wje-color-picker.js +445 -1464
- package/dist/wje-color-picker.js.map +1 -1
- package/dist/wje-container.js +9 -35
- package/dist/wje-container.js.map +1 -1
- package/dist/wje-copy-button.js +64 -204
- package/dist/wje-copy-button.js.map +1 -1
- package/dist/wje-dialog.js +85 -553
- package/dist/wje-dialog.js.map +1 -1
- package/dist/wje-divider.js +7 -34
- package/dist/wje-divider.js.map +1 -1
- package/dist/wje-dropdown.js +78 -305
- package/dist/wje-dropdown.js.map +1 -1
- package/dist/wje-element.js +191 -700
- package/dist/wje-element.js.map +1 -1
- package/dist/wje-file-upload-item.js +51 -156
- package/dist/wje-file-upload-item.js.map +1 -1
- package/dist/wje-file-upload.js +181 -619
- package/dist/wje-file-upload.js.map +1 -1
- package/dist/wje-footer.js +7 -31
- package/dist/wje-footer.js.map +1 -1
- package/dist/wje-form.js +7 -32
- package/dist/wje-form.js.map +1 -1
- package/dist/wje-format-digital.js +26 -118
- package/dist/wje-format-digital.js.map +1 -1
- package/dist/wje-grid.js +7 -33
- package/dist/wje-grid.js.map +1 -1
- package/dist/wje-header.js +9 -35
- package/dist/wje-header.js.map +1 -1
- package/dist/wje-icon-library.js +12 -18
- package/dist/wje-icon-library.js.map +1 -1
- package/dist/wje-icon-picker.js +65 -320
- package/dist/wje-icon-picker.js.map +1 -1
- package/dist/wje-icon.js +1 -1
- package/dist/wje-img-comparer.js +37 -114
- package/dist/wje-img-comparer.js.map +1 -1
- package/dist/wje-img.js +50 -198
- package/dist/wje-img.js.map +1 -1
- package/dist/wje-infinite-scroll.js +94 -346
- package/dist/wje-infinite-scroll.js.map +1 -1
- package/dist/wje-input-file.js +23 -84
- package/dist/wje-input-file.js.map +1 -1
- package/dist/wje-input.js +78 -392
- package/dist/wje-input.js.map +1 -1
- package/dist/wje-item.js +11 -64
- package/dist/wje-item.js.map +1 -1
- package/dist/wje-kanban.js +124 -401
- package/dist/wje-kanban.js.map +1 -1
- package/dist/wje-label.js +9 -32
- package/dist/wje-label.js.map +1 -1
- package/dist/wje-level-indicator.js +38 -157
- package/dist/wje-level-indicator.js.map +1 -1
- package/dist/wje-list.js +10 -40
- package/dist/wje-list.js.map +1 -1
- package/dist/wje-main.js +7 -31
- package/dist/wje-main.js.map +1 -1
- package/dist/wje-masonry.js +66 -211
- package/dist/wje-masonry.js.map +1 -1
- package/dist/wje-master.js +45 -161
- package/dist/wje-master.js.map +1 -1
- package/dist/wje-menu-button.js +10 -38
- package/dist/wje-menu-button.js.map +1 -1
- package/dist/wje-menu-item.js +127 -577
- package/dist/wje-menu-item.js.map +1 -1
- package/dist/wje-menu-label.js +9 -35
- package/dist/wje-menu-label.js.map +1 -1
- package/dist/wje-menu.js +14 -49
- package/dist/wje-menu.js.map +1 -1
- package/dist/wje-option.js +48 -279
- package/dist/wje-option.js.map +1 -1
- package/dist/wje-options.js +130 -384
- package/dist/wje-options.js.map +1 -1
- package/dist/wje-orgchart-group.js +16 -52
- package/dist/wje-orgchart-group.js.map +1 -1
- package/dist/wje-orgchart-item.js +24 -93
- package/dist/wje-orgchart-item.js.map +1 -1
- package/dist/wje-orgchart.js +18 -68
- package/dist/wje-orgchart.js.map +1 -1
- package/dist/wje-pagination.js +113 -397
- package/dist/wje-pagination.js.map +1 -1
- package/dist/wje-popup.js +3 -3
- package/dist/wje-popup.js.map +1 -1
- package/dist/wje-progress-bar.js +53 -205
- package/dist/wje-progress-bar.js.map +1 -1
- package/dist/wje-qr-code.js +398 -2980
- package/dist/wje-qr-code.js.map +1 -1
- package/dist/wje-radio-group.js +52 -190
- package/dist/wje-radio-group.js.map +1 -1
- package/dist/wje-radio.js +24 -118
- package/dist/wje-radio.js.map +1 -1
- package/dist/wje-rate.js +62 -266
- package/dist/wje-rate.js.map +1 -1
- package/dist/wje-relative-time.js +24 -99
- package/dist/wje-relative-time.js.map +1 -1
- package/dist/wje-reorder-dropzone.js +9 -31
- package/dist/wje-reorder-dropzone.js.map +1 -1
- package/dist/wje-reorder-handle.js +67 -204
- package/dist/wje-reorder-handle.js.map +1 -1
- package/dist/wje-reorder-item.js +14 -44
- package/dist/wje-reorder-item.js.map +1 -1
- package/dist/wje-reorder.js +61 -246
- package/dist/wje-reorder.js.map +1 -1
- package/dist/wje-route.js +6 -24
- package/dist/wje-route.js.map +1 -1
- package/dist/wje-router-link.js +11 -39
- package/dist/wje-router-link.js.map +1 -1
- package/dist/wje-router-outlet.js +76 -172
- package/dist/wje-router-outlet.js.map +1 -1
- package/dist/wje-routerx.js +537 -1331
- package/dist/wje-routerx.js.map +1 -1
- package/dist/wje-row.js +9 -31
- package/dist/wje-row.js.map +1 -1
- package/dist/wje-select.js +326 -1152
- package/dist/wje-select.js.map +1 -1
- package/dist/wje-slider.js +44 -225
- package/dist/wje-slider.js.map +1 -1
- package/dist/wje-sliding-container.js +295 -1319
- package/dist/wje-sliding-container.js.map +1 -1
- package/dist/wje-split-view.js +35 -121
- package/dist/wje-split-view.js.map +1 -1
- package/dist/wje-status.js +14 -45
- package/dist/wje-status.js.map +1 -1
- package/dist/wje-step.js +9 -32
- package/dist/wje-step.js.map +1 -1
- package/dist/wje-stepper.js +109 -357
- package/dist/wje-stepper.js.map +1 -1
- package/dist/wje-store.js +67 -360
- package/dist/wje-store.js.map +1 -1
- package/dist/wje-tab-group.js +85 -314
- package/dist/wje-tab-group.js.map +1 -1
- package/dist/wje-tab-panel.js +7 -28
- package/dist/wje-tab-panel.js.map +1 -1
- package/dist/wje-tab.js +21 -198
- package/dist/wje-tab.js.map +1 -1
- package/dist/wje-textarea.js +64 -264
- package/dist/wje-textarea.js.map +1 -1
- package/dist/wje-thumbnail.js +10 -51
- package/dist/wje-thumbnail.js.map +1 -1
- package/dist/wje-toast.js +127 -632
- package/dist/wje-toast.js.map +1 -1
- package/dist/wje-toggle.js +52 -177
- package/dist/wje-toggle.js.map +1 -1
- package/dist/wje-toolbar-action.js +128 -456
- package/dist/wje-toolbar-action.js.map +1 -1
- package/dist/wje-toolbar.js +75 -270
- package/dist/wje-toolbar.js.map +1 -1
- package/dist/wje-tooltip.js +50 -161
- package/dist/wje-tooltip.js.map +1 -1
- package/dist/wje-tree-item.js +70 -301
- package/dist/wje-tree-item.js.map +1 -1
- package/dist/wje-tree.js +145 -489
- package/dist/wje-tree.js.map +1 -1
- package/dist/wje-visually-hidden.js +7 -34
- package/dist/wje-visually-hidden.js.map +1 -1
- package/package.json +3 -2
- package/dist/form-associated-element-DEQ4y-jn.js +0 -245
- package/dist/icon-CReYMzAK.js +0 -245
- package/dist/popup.element-CwXvVFK7.js +0 -2133
- package/dist/router-links-wjqCnncc.js +0 -156
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "wj-elements",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"name": "wje-accordion-item",
|
|
53
|
-
"description": "This class represents an Accordion Item element, extending the WJElement class.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Method to setup attributes for the Accordion Item element.\n- **draw(): _object_** - Method to draw the Accordion Item element. This method returns a document fragment containing the drawn element.\n- **afterDraw()** - Method to execute after the Accordion Item element is drawn.\n- **collapse()** - Collapses the accordion item
|
|
53
|
+
"description": "This class represents an Accordion Item element, extending the WJElement class.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Method to setup attributes for the Accordion Item element.\n- **draw(): _object_** - Method to draw the Accordion Item element. This method returns a document fragment containing the drawn element.\n- **afterDraw()** - Method to execute after the Accordion Item element is drawn.\n- **collapse()** - Collapses the accordion item, updates the headline ARIA state, and makes its content inert.\n- **expand()** - Expands the accordion item, updates the headline ARIA state, and makes its content interactive.\n\n### **Slots:**\n - **headline** - Slot for the clickable accordion headline content.\n- **description** - Slot for supporting text shown below the headline.\n- **toggle** - Slot for a custom toggle icon or toggle content.\n- **content** - Slot for the expandable panel body.\n\n### **CSS Properties:**\n - **--wje-accordion-background** - Background color of the collapsed item wrapper. _(default: var(--wje-color-contrast-0))_\n- **--wje-accordion-border** - Border color of the collapsed item wrapper. _(default: var(--wje-color-contrast-0))_\n- **--wje-accordion-border-radius** - Border radius of the item wrapper. _(default: var(--wje-border-radius-large))_\n- **--wje-accordion-background-hover** - Background color used when the headline is hovered. _(default: var(--wje-color-contrast-1))_\n- **--wje-accordion-border-hover** - Border color used when the headline is hovered. _(default: var(--wje-color-contrast-2))_\n- **--wje-accordion-background-expanded** - Background color of the expanded item wrapper. _(default: var(--wje-color-contrast-0))_\n- **--wje-accordion-border-expanded** - Border color of the expanded item wrapper. _(default: var(--wje-color-contrast-0))_\n- **--wje-accordion-headline-color** - Text color of the headline area. _(default: var(--wje-color-contrast-11))_\n- **--wje-accordion-content-color** - Text color of the expandable content area. _(default: var(--wje-color-contrast-6))_\n- **--wje-accordion-content-margin** - Margin around the slotted expandable content. _(default: 0 var(--wje-spacing-small, 0.75rem) var(--wje-spacing-small, 0.75rem))_\n- **--wje-accordion-marker-rotate** - Rotation applied to the toggle marker icon. // @fires wje-accordion-item:open - Dispatched when the item is expanded. // @fires wje-accordion-item:close - Dispatched when the item is collapsed. _(default: 0deg)_\n\n### **CSS Parts:**\n - **native** - The wrapper of the whole accordion item.\n- **headline** - The clickable headline area.\n- **description** - The description slot container inside the headline.\n- **toggle** - The toggle slot container and fallback chevron area.\n- **content** - The expandable content panel.",
|
|
54
54
|
"doc-url": "",
|
|
55
55
|
"attributes": [
|
|
56
56
|
{
|
|
@@ -760,26 +760,6 @@
|
|
|
760
760
|
"events": []
|
|
761
761
|
}
|
|
762
762
|
},
|
|
763
|
-
{
|
|
764
|
-
"name": "wje-card-title",
|
|
765
|
-
"description": "CardTitle class that extends WJElement.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the CardTitle.\n- **draw(): _DocumentFragment_** - Draws the CardTitle element.\n\n### **Slots:**\n - _default_ - The card title main content.\n\n### **CSS Properties:**\n - **--wje-card-title-font-size** - Font size of the component; _(default: 24px)_\n- **--wje-card-title-font-weight** - Font weight of the component; _(default: 500)_\n- **--wje-card-title-margin** - Margin of the component; _(default: 0)_\n- **--wje-card-title-padding** - Padding of the component; _(default: 0)_\n- **--wje-card-title-line-height** - Line height of the component; _(default: 1.2)_",
|
|
766
|
-
"doc-url": "",
|
|
767
|
-
"attributes": [],
|
|
768
|
-
"slots": [
|
|
769
|
-
{ "name": "", "description": "The card title main content." }
|
|
770
|
-
],
|
|
771
|
-
"events": [],
|
|
772
|
-
"js": {
|
|
773
|
-
"properties": [
|
|
774
|
-
{
|
|
775
|
-
"name": "className",
|
|
776
|
-
"description": "Class name for the CardTitle.",
|
|
777
|
-
"type": "string"
|
|
778
|
-
}
|
|
779
|
-
],
|
|
780
|
-
"events": []
|
|
781
|
-
}
|
|
782
|
-
},
|
|
783
763
|
{
|
|
784
764
|
"name": "wje-carousel",
|
|
785
765
|
"description": "Carousel class that extends WJElement.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the Carousel.\n- **beforeDraw()** - Before draw method for the Carousel.\n- **draw(): _DocumentFragment_** - Draw method for the Carousel.\n- **afterDraw()** - After draw method for the Carousel.\n- **syncActiveToSnapStart()** - Sync `activeSlide` to the slide whose leading edge is closest to the snap start.\n- **syncSlideMetrics()** - Syncs computed CSS variables derived from `slide-per-page`.\n- **getScrollPaddingInlineStart(): _number_** - Returns the inline scroll padding used by the snap area.\n- **getControlBehavior(): _string_** - Returns the interaction scroll behavior for UI controls.\nContinuous multi-slide loops use instant snapping to avoid blank edge states\nwhile the browser is still animating a previous smooth scroll.\n- **setIntersectionObserver()** - Sets up the IntersectionObserver for the Carousel.\n- **goToSlide(index, behavior, next)** - Goes to the slide.\n- **setActiveVisualSlide(vIndex: _number_)** - Sets the active class on the currently targeted visual slide and removes it elsewhere.\n- **syncAria()** - Syncs ARIA attributes on the carousel and slides.\n- **cloneFirstAndLastItems()** - Clones the first and last items.\n- **createLoopClone(item: _HTMLElement_): _HTMLElement_** - Creates a sanitized loop clone that does not inherit transient render state\nsuch as inline `visibility: hidden` from the source slide.\n- **removeLoopClones()** - Removes loop clones so they can be rebuilt for the current configuration.\n- **getLoopCloneCount(totalSlides: _number_): _number_** - Returns how many slides should be cloned on each side when loop is enabled.\n- **scrollToVisualIndex(vIndex: _number_, behavior: _string_)** - Scrolls the carousel to a visual slide index.\n- **removeActiveSlide()** - Goes to the next slide.\n- **changePagination()** - Goes to the next slide.\n- **changeThumbnails()** - Goes to the next slide.\n- **createNextButton(): _Element_** - Goes to the next slide.\n- **createPreviousButton(): _Element_** - Goes to the next slide.\n- **createPagination(): _Element_** - Goes to the next slide.\n- **createThumbnails(): _Element_** - Goes to the next slide.\n- **nextSlide()** - Goes to the next slide.\n- **previousSlide()** - Goes to the previous slide.\n- **getSlides(): _Array_** - Goes to the slide.\n- **getSlidesWithClones(): _Array_** - Goes to the slide.\n- **getVisualIndexForLogical(index)** - Maps logical index to visual index, including leading clones when loop is enabled.\n- **getLogicalIndexForVisual(vIndex)** - Maps visual index to logical index, including edge clones when loop is enabled.\n- **getMaxVisibleStartIndex(totalSlides: _number_): _number_** - Returns the maximum logical slide index that can still render a full viewport.\n- **normalizeLoopIndex(index: _number_, totalSlides: _number_): _number_** - Normalizes a logical index for the active loop mode.\n- **getLoopLogicalCount(totalSlides: _number_): _number_** - Returns how many logical positions are reachable for the current loop mode.\n- **getPaginationIndexes(): _number[]_** - Returns the pagination indexes for the current carousel mode.\n- **canGoNext(): _boolean_** - Goes to the slide.\n- **canGoPrevious(): _boolean_** - Goes to the slide.\n\n### **Slots:**\n - _default_ - The carousel main content.\n\n### **CSS Properties:**\n - **--wje-carousel-size** - Effective size of one carousel item. _(default: 100%)_\n- **--wje-carousel-gap** - Gap between carousel items. _(default: 0.5rem)_",
|
|
@@ -837,6 +817,26 @@
|
|
|
837
817
|
"events": []
|
|
838
818
|
}
|
|
839
819
|
},
|
|
820
|
+
{
|
|
821
|
+
"name": "wje-card-title",
|
|
822
|
+
"description": "CardTitle class that extends WJElement.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the CardTitle.\n- **draw(): _DocumentFragment_** - Draws the CardTitle element.\n\n### **Slots:**\n - _default_ - The card title main content.\n\n### **CSS Properties:**\n - **--wje-card-title-font-size** - Font size of the component; _(default: 24px)_\n- **--wje-card-title-font-weight** - Font weight of the component; _(default: 500)_\n- **--wje-card-title-margin** - Margin of the component; _(default: 0)_\n- **--wje-card-title-padding** - Padding of the component; _(default: 0)_\n- **--wje-card-title-line-height** - Line height of the component; _(default: 1.2)_",
|
|
823
|
+
"doc-url": "",
|
|
824
|
+
"attributes": [],
|
|
825
|
+
"slots": [
|
|
826
|
+
{ "name": "", "description": "The card title main content." }
|
|
827
|
+
],
|
|
828
|
+
"events": [],
|
|
829
|
+
"js": {
|
|
830
|
+
"properties": [
|
|
831
|
+
{
|
|
832
|
+
"name": "className",
|
|
833
|
+
"description": "Class name for the CardTitle.",
|
|
834
|
+
"type": "string"
|
|
835
|
+
}
|
|
836
|
+
],
|
|
837
|
+
"events": []
|
|
838
|
+
}
|
|
839
|
+
},
|
|
840
840
|
{
|
|
841
841
|
"name": "wje-checkbox",
|
|
842
842
|
"description": "This method dispatches a custom event named \"wje-toggle:change\".\nIt is triggered when the input event is fired, which happens when the state of the checkbox changes.\nThe event is dispatched on the current instance of the Checkbox class.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the checkbox.\n- **draw(): _DocumentFragment_** - Draws the checkbox element.\n- **afterDraw()** - Adds an event listener after drawing the checkbox.\n- **syncAria()** - Syncs ARIA attributes on the host element.\n- **beforeDisconnect()** - Removes the event listener when the checkbox is disconnected.\n\n### **Slots:**\n - _default_ - The checkbox main content.\n\n### **CSS Properties:**\n - **--wje-checkbox-border-radius** - Border radius of the component; _(default: --wje-border-radius-medium)_\n- **--wje-checkbox-border-width** - Border width of the component; _(default: 1px)_\n- **--wje-checkbox-border-style** - Border style of the component; _(default: solid)_\n- **--wje-checkbox-border-color** - Border color of the component; _(default: --wje-color-contrast-1)_\n- **--wje-checkbox-margin-inline** - Margin inline of the component; _(default: 0)_\n\n### **CSS Parts:**\n - **native** - The component's native wrapper.",
|
|
@@ -935,18 +935,6 @@
|
|
|
935
935
|
"events": []
|
|
936
936
|
}
|
|
937
937
|
},
|
|
938
|
-
{
|
|
939
|
-
"name": "wje-col",
|
|
940
|
-
"description": "Col class that extends WJElement.\n---\n\n\n### **Methods:**\n - **draw(): _DocumentFragment_** - Draws the component element.\n\n### **Slots:**\n - _default_ - The col main content.",
|
|
941
|
-
"doc-url": "",
|
|
942
|
-
"attributes": [],
|
|
943
|
-
"slots": [{ "name": "", "description": "The col main content." }],
|
|
944
|
-
"events": [],
|
|
945
|
-
"js": {
|
|
946
|
-
"properties": [{ "name": "className", "type": "string" }],
|
|
947
|
-
"events": []
|
|
948
|
-
}
|
|
949
|
-
},
|
|
950
938
|
{
|
|
951
939
|
"name": "wje-color-picker",
|
|
952
940
|
"description": "ColorPicker is a custom web component that extends WJElement.\nIt provides a color picker functionality with a color area, hue slider, alpha slider, and color swatches.\nThe color picker allows users to select a color by moving a marker on the color area, adjusting the hue and alpha sliders, or clicking on a color swatch.\n---\n\n\n### **Methods:**\n - **parseSwatches(value: _string_): _string[]_** - Normalizes swatch colors from a string to an array.\nSupports comma and semicolon separators.\n- **setupAttributes()** - Sets up the attributes for the ColorPicker.\n- **draw(): _DocumentFragment_** - Creates and returns a document fragment containing the structure and components of a custom color picker.\nThe method initializes DOM elements such as divs, sliders, and inputs, with specific classes and attributes,\nand attaches various event listeners to handle user interactions.\n- **afterDraw(): _void_** - Executes after the component is drawn. Initializes some configurations if not already initialized,\nincluding updating slider values, setting marker positions, and applying initial color settings.\nThis method ensures that all necessary visual elements and configurations are properly set up.\n- **createSwatches(node)** - Sets the hue.\n- **setSliders(color)** - Sets the sliders to the given color.\n- **dimension(): _object_** - Retrieves the dimensions and position of the color area element relative to the viewport.\n- **beforeDisconnect(): _void_** - Method executed before disconnecting. Resets the initialization state to false.\n- **getPointerPosition(e): _{x: number, y: number}_** - Gets the pointer position in client coordinates (viewport-relative).\n- **setMarkerPosition(x, y)** - Sets the position of the marker.\n- **clampMarkerPosition(x: _number_, y: _number_): _{x: number, y: number}_** - Clamps marker coordinates to the color area boundaries.\n- **setColorAtPosition(x, y, alpha): _*|tinycolor_** - Sets the color at the given position.\n- **getHueAreaColor(color: _string_): _string_** - Returns fully saturated and bright color for the current hue.\nUsed as base color for the SV area so neutral grays do not black out the palette.\n\n### **Slots:**\n - _default_ - The card header main content.\n\n### **CSS Properties:**\n - **--wje-color-picker-area** - The color of the color area background. _(default: undefined)_\n- **--wje-color-picker-value** - The value of the color picker input. _(default: undefined)_\n- **--wje-color-picker-swatch** - The color of the color swatch button. _(default: undefined)_\n- **--wje-color-picker-size** - The color of the color marker. _(default: undefined)_\n- **--wje-color-picker-radius** - The color of the color anchor. _(default: undefined)_\n\n### **CSS Parts:**\n - **anchor** - The anchor part of the color picker.\n- **picker** - The main part of the color picker.\n- **marker** - The marker part of the color picker.\n- **color-area** - The color area part of the color picker.\n- **hue** - The hue slider part of the color picker.\n- **alpha** - The alpha slider part of the color picker.\n- **color-preview** - The color preview part of the color picker.\n- **input** - The input part of the color picker.",
|
|
@@ -1015,6 +1003,18 @@
|
|
|
1015
1003
|
"events": []
|
|
1016
1004
|
}
|
|
1017
1005
|
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "wje-col",
|
|
1008
|
+
"description": "Col class that extends WJElement.\n---\n\n\n### **Methods:**\n - **draw(): _DocumentFragment_** - Draws the component element.\n\n### **Slots:**\n - _default_ - The col main content.",
|
|
1009
|
+
"doc-url": "",
|
|
1010
|
+
"attributes": [],
|
|
1011
|
+
"slots": [{ "name": "", "description": "The col main content." }],
|
|
1012
|
+
"events": [],
|
|
1013
|
+
"js": {
|
|
1014
|
+
"properties": [{ "name": "className", "type": "string" }],
|
|
1015
|
+
"events": []
|
|
1016
|
+
}
|
|
1017
|
+
},
|
|
1018
1018
|
{
|
|
1019
1019
|
"name": "wje-container",
|
|
1020
1020
|
"description": "The Container class is a custom web component that extends WJElement. It is a simple container that can hold other elements or components.\nIt provides a slot for adding child elements or components. The Container class also supports indentation through the `indent` property.\nThe indentation is applied as a CSS variable (`--wje-container-indent`) which can be used in the styles of child elements or components.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the Container.\n- **draw(): _DocumentFragment_** - Draws the Container element.\n\n### **Slots:**\n - _default_ - The slot for adding child elements or components.\n\n### **CSS Properties:**\n - **--wje-container-indent** - The indentation of the container. _(default: undefined)_",
|
|
@@ -1038,64 +1038,6 @@
|
|
|
1038
1038
|
"events": []
|
|
1039
1039
|
}
|
|
1040
1040
|
},
|
|
1041
|
-
{
|
|
1042
|
-
"name": "wje-copy-button",
|
|
1043
|
-
"description": "CopyButton is a custom web component that extends WJElement.\nIt provides a button that, when clicked, copies a specified text to the clipboard.\nThe text to be copied can be specified through the `value` attribute.\nThe CopyButton also supports keyboard interaction, copying the text when the space or enter key is pressed.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the CopyButton.\n- **draw(): _DocumentFragment_** - Draws the ColorPicker element.\n- **afterDraw()** - Adds event listeners for the click, focus, and blur events.\n- **syncAria()** - Sync ARIA attributes on host.\n- **copy(button: _HTMLElement_)** - Copies the specified text or node.\n- **copyTarget(content: _HTMLElement_): _Promise_** - Copies the target content.\n\n### **Slots:**\n - _default_ - This is a default/unnamed slot.\n\n### **CSS Properties:**\n - **--text-color** - Controls the color of the text. _(default: undefined)_\n- **--background-color** - Controls the background color of the button. //@fires wje:copy-button - Dispatched when the button is clicked and the text is copied. _(default: undefined)_\n\n### **CSS Parts:**\n - **button** - Styles the button element.",
|
|
1044
|
-
"doc-url": "",
|
|
1045
|
-
"attributes": [
|
|
1046
|
-
{
|
|
1047
|
-
"name": "for",
|
|
1048
|
-
"description": "The id of the element to copy content from.",
|
|
1049
|
-
"value": { "type": "string" }
|
|
1050
|
-
},
|
|
1051
|
-
{
|
|
1052
|
-
"name": "label",
|
|
1053
|
-
"description": "Accessible label for the button. Also used as fallback tooltip text when the `tooltip` attribute is present without a value.",
|
|
1054
|
-
"value": { "type": "string" }
|
|
1055
|
-
},
|
|
1056
|
-
{
|
|
1057
|
-
"name": "label-success",
|
|
1058
|
-
"description": "Text displayed in the tooltip after a successful copy. Used only when the `tooltip` attribute is present.",
|
|
1059
|
-
"value": { "type": "string" }
|
|
1060
|
-
},
|
|
1061
|
-
{
|
|
1062
|
-
"name": "tooltip",
|
|
1063
|
-
"description": "Enables the tooltip. When set to a string, the value is used as the default tooltip content.",
|
|
1064
|
-
"value": { "type": "string" }
|
|
1065
|
-
},
|
|
1066
|
-
{
|
|
1067
|
-
"name": "value",
|
|
1068
|
-
"description": "The text to be copied.",
|
|
1069
|
-
"value": { "type": "string" }
|
|
1070
|
-
}
|
|
1071
|
-
],
|
|
1072
|
-
"slots": [
|
|
1073
|
-
{ "name": "", "description": "This is a default/unnamed slot." }
|
|
1074
|
-
],
|
|
1075
|
-
"events": [],
|
|
1076
|
-
"js": {
|
|
1077
|
-
"properties": [
|
|
1078
|
-
{
|
|
1079
|
-
"name": "value",
|
|
1080
|
-
"description": "Getter for the value property."
|
|
1081
|
-
},
|
|
1082
|
-
{ "name": "className", "type": "string" },
|
|
1083
|
-
{ "name": "clicked", "description": "Handles the click event." },
|
|
1084
|
-
{
|
|
1085
|
-
"name": "keydown",
|
|
1086
|
-
"description": "Handles the keydown event."
|
|
1087
|
-
},
|
|
1088
|
-
{ "name": "focused", "description": "Handles the focus event." },
|
|
1089
|
-
{ "name": "blurred", "description": "Handles the blur event." },
|
|
1090
|
-
{
|
|
1091
|
-
"name": "copied",
|
|
1092
|
-
"description": "Handles the copied event.\nYou can override this method to customize the behavior when the text is copied."
|
|
1093
|
-
},
|
|
1094
|
-
{ "name": "timeout", "type": "number" }
|
|
1095
|
-
],
|
|
1096
|
-
"events": []
|
|
1097
|
-
}
|
|
1098
|
-
},
|
|
1099
1041
|
{
|
|
1100
1042
|
"name": "wje-dialog",
|
|
1101
1043
|
"description": "This element represents a dialog.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(context: _object_, store: _object_, params: _object_): _DocumentFragment_** - Draws the component.\n- **afterDraw(context: _object_, store: _object_, params: _object_)** - Draws the component after it has been drawn.\n- **htmlDialogBody(dialog)** - Creates the dialog body.\n- **close(e)** - Closes the dialog.\n- **beforeDisconnect()** - Before the component is disconnected.\n- **beforeOpen(dialog, trigger)** - Before the dialog opens.\n- **afterOpen(dialog, trigger)** - After the dialog opens.\n- **beforeClose(dialog, trigger)** - Before the dialog closes.\n- **afterClose(dialog, trigger)** - After the dialog closes.\n- **registerBlockingEvent(button: _HTMLElement_, promise: _Function_)** - Registers an event listener on the provided button that triggers a blocking UI element\nand executes a given promise when the button is clicked.\n\n### **Slots:**\n - **header** - Slot for the header content.\n- **body** - Slot for the body content.\n- **footer** - Slot for the footer content.\n\n### **CSS Properties:**\n - **--wje-dialog-background** - Specifies the background color of the dialog. _(default: var(--wje-background-color))_\n- **--wje-dialog-color** - Defines the text color within the dialog. _(default: var(--wje-text-color))_\n- **--wje-dialog-padding** - Controls the padding inside the dialog. _(default: 1rem)_\n- **--wje-dialog-border-radius** - Sets the border radius for the dialog's corners. _(default: 0.5rem)_\n- **--wje-dialog-box-shadow** - Applies a shadow effect to the dialog. _(default: 0 2px 10px rgba(0, 0, 0, 0.1))_\n\n### **CSS Parts:**\n - **dialog** - The dialog wrapper.\n- **header** - The header of the dialog.\n- **body** - The body of the dialog.\n- **footer** - The footer of the dialog.\n- **close** - The close button of the dialog.",
|
|
@@ -1162,119 +1104,59 @@
|
|
|
1162
1104
|
}
|
|
1163
1105
|
},
|
|
1164
1106
|
{
|
|
1165
|
-
"name": "wje-
|
|
1166
|
-
"description": "
|
|
1107
|
+
"name": "wje-copy-button",
|
|
1108
|
+
"description": "CopyButton is a custom web component that extends WJElement.\nIt provides a button that, when clicked, copies a specified text to the clipboard.\nThe text to be copied can be specified through the `value` attribute.\nThe CopyButton also supports keyboard interaction, copying the text when the space or enter key is pressed.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the CopyButton.\n- **draw(): _DocumentFragment_** - Draws the ColorPicker element.\n- **afterDraw()** - Adds event listeners for the click, focus, and blur events.\n- **syncAria()** - Sync ARIA attributes on host.\n- **copy(button: _HTMLElement_)** - Copies the specified text or node.\n- **copyTarget(content: _HTMLElement_): _Promise_** - Copies the target content.\n\n### **Slots:**\n - _default_ - This is a default/unnamed slot.\n\n### **CSS Properties:**\n - **--text-color** - Controls the color of the text. _(default: undefined)_\n- **--background-color** - Controls the background color of the button. //@fires wje:copy-button - Dispatched when the button is clicked and the text is copied. _(default: undefined)_\n\n### **CSS Parts:**\n - **button** - Styles the button element.",
|
|
1167
1109
|
"doc-url": "",
|
|
1168
1110
|
"attributes": [
|
|
1169
|
-
{ "name": "active", "value": { "type": "string" } },
|
|
1170
1111
|
{
|
|
1171
|
-
"name": "
|
|
1172
|
-
"description": "
|
|
1112
|
+
"name": "for",
|
|
1113
|
+
"description": "The id of the element to copy content from.",
|
|
1173
1114
|
"value": { "type": "string" }
|
|
1174
1115
|
},
|
|
1175
1116
|
{
|
|
1176
|
-
"name": "
|
|
1177
|
-
"description": "
|
|
1117
|
+
"name": "label",
|
|
1118
|
+
"description": "Accessible label for the button. Also used as fallback tooltip text when the `tooltip` attribute is present without a value.",
|
|
1178
1119
|
"value": { "type": "string" }
|
|
1179
|
-
}
|
|
1180
|
-
],
|
|
1181
|
-
"slots": [
|
|
1120
|
+
},
|
|
1182
1121
|
{
|
|
1183
|
-
"name": "
|
|
1184
|
-
"description": "
|
|
1122
|
+
"name": "label-success",
|
|
1123
|
+
"description": "Text displayed in the tooltip after a successful copy. Used only when the `tooltip` attribute is present.",
|
|
1124
|
+
"value": { "type": "string" }
|
|
1185
1125
|
},
|
|
1186
|
-
{
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
{
|
|
1197
|
-
"name": "portaled",
|
|
1198
|
-
"description": "Getter method for the `portaled` property.\nChecks if the `portaled` attribute is present on the element."
|
|
1199
|
-
},
|
|
1200
|
-
{
|
|
1201
|
-
"name": "isPortaled",
|
|
1202
|
-
"description": "Checks whether the element has the 'portaled' attribute."
|
|
1203
|
-
},
|
|
1204
|
-
{
|
|
1205
|
-
"name": "trigger",
|
|
1206
|
-
"description": "Gets the placement of the dropdown."
|
|
1207
|
-
},
|
|
1208
|
-
{
|
|
1209
|
-
"name": "mobilePresentation",
|
|
1210
|
-
"description": "Enables a responsive presentation, currently \"bottom-sheet\".",
|
|
1211
|
-
"type": "string"
|
|
1212
|
-
},
|
|
1213
|
-
{
|
|
1214
|
-
"name": "mobileBreakPoint",
|
|
1215
|
-
"description": "Viewport width where the mobile presentation becomes active. Defaults to \"768\".",
|
|
1216
|
-
"type": "string"
|
|
1217
|
-
},
|
|
1218
|
-
{
|
|
1219
|
-
"name": "className",
|
|
1220
|
-
"description": "Sets the placement of the dropdown.",
|
|
1221
|
-
"type": "string"
|
|
1222
|
-
},
|
|
1223
|
-
{
|
|
1224
|
-
"name": "otherDropdownOpennedCallback",
|
|
1225
|
-
"description": "Callback function to handle other dropdowns being opened. Close the dropdown if it is not the target and collapse is enabled."
|
|
1226
|
-
},
|
|
1227
|
-
{
|
|
1228
|
-
"name": "popupHideCallback",
|
|
1229
|
-
"description": "Handles popup hide events and closes only the dropdown that owns the popup.\nThis prevents nested dropdowns from collapsing their parent dropdown when the\nchild popup is hidden."
|
|
1230
|
-
},
|
|
1231
|
-
{
|
|
1232
|
-
"name": "onMenuItemClick",
|
|
1233
|
-
"description": "Handles delegated clicks from inside the popup and closes the dropdown when a leaf menu item is selected.\nThis works even when the menu is portaled, because we rely on the composed path."
|
|
1234
|
-
},
|
|
1235
|
-
{ "name": "toggleCallback" },
|
|
1236
|
-
{ "name": "onOpen", "description": "Open the popup element." },
|
|
1237
|
-
{ "name": "beforeClose" },
|
|
1238
|
-
{ "name": "afterClose" },
|
|
1239
|
-
{ "name": "onClose" }
|
|
1240
|
-
],
|
|
1241
|
-
"events": []
|
|
1242
|
-
}
|
|
1243
|
-
},
|
|
1244
|
-
{
|
|
1245
|
-
"name": "wje-file-upload-item",
|
|
1246
|
-
"description": "This element allows users to upload files.\n`FileUploadItem` is a custom web component that represents a file upload item.\nIt extends from `WJElement` and uses the `Localizer` utility for localization.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Method to draw the component on the screen.\n- **afterDraw()** - Called after the component has been drawn.\n- **syncAria()** - Sync ARIA attributes on host and actions.\n\n### **Slots:**\n - **img** - Slot for the image\n- **action** - Slot for the action buttons\n\n### **CSS Properties:**\n - **--primary-color** - The primary color of the file upload item. //@fires wje-button:click - Dispatches when the delete button is clicked _(default: undefined)_\n\n### **CSS Parts:**\n - **button** - The delete button part\n- **image** - The image part\n- **name** - The name part\n- **size** - The size part",
|
|
1247
|
-
"doc-url": "",
|
|
1248
|
-
"attributes": [
|
|
1249
|
-
{ "name": "uploaded", "value": { "type": "string" } },
|
|
1250
|
-
{ "name": "is-uploaded", "value": { "type": "string" } }
|
|
1126
|
+
{
|
|
1127
|
+
"name": "tooltip",
|
|
1128
|
+
"description": "Enables the tooltip. When set to a string, the value is used as the default tooltip content.",
|
|
1129
|
+
"value": { "type": "string" }
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"name": "value",
|
|
1133
|
+
"description": "The text to be copied.",
|
|
1134
|
+
"value": { "type": "string" }
|
|
1135
|
+
}
|
|
1251
1136
|
],
|
|
1252
1137
|
"slots": [
|
|
1253
|
-
{ "name": "
|
|
1254
|
-
{ "name": "action", "description": "Slot for the action buttons" }
|
|
1138
|
+
{ "name": "", "description": "This is a default/unnamed slot." }
|
|
1255
1139
|
],
|
|
1256
1140
|
"events": [],
|
|
1257
1141
|
"js": {
|
|
1258
1142
|
"properties": [
|
|
1259
1143
|
{
|
|
1260
|
-
"name": "
|
|
1261
|
-
"description": "
|
|
1262
|
-
},
|
|
1263
|
-
{
|
|
1264
|
-
"name": "size",
|
|
1265
|
-
"description": "Retrieves the value of the 'size' attribute."
|
|
1144
|
+
"name": "value",
|
|
1145
|
+
"description": "Getter for the value property."
|
|
1266
1146
|
},
|
|
1147
|
+
{ "name": "className", "type": "string" },
|
|
1148
|
+
{ "name": "clicked", "description": "Handles the click event." },
|
|
1267
1149
|
{
|
|
1268
|
-
"name": "
|
|
1269
|
-
"description": "
|
|
1270
|
-
"type": "object"
|
|
1150
|
+
"name": "keydown",
|
|
1151
|
+
"description": "Handles the keydown event."
|
|
1271
1152
|
},
|
|
1272
|
-
{ "name": "
|
|
1153
|
+
{ "name": "focused", "description": "Handles the focus event." },
|
|
1154
|
+
{ "name": "blurred", "description": "Handles the blur event." },
|
|
1273
1155
|
{
|
|
1274
|
-
"name": "
|
|
1275
|
-
"description": "Handles the
|
|
1156
|
+
"name": "copied",
|
|
1157
|
+
"description": "Handles the copied event.\nYou can override this method to customize the behavior when the text is copied."
|
|
1276
1158
|
},
|
|
1277
|
-
{ "name": "
|
|
1159
|
+
{ "name": "timeout", "type": "number" }
|
|
1278
1160
|
],
|
|
1279
1161
|
"events": []
|
|
1280
1162
|
}
|
|
@@ -1406,65 +1288,137 @@
|
|
|
1406
1288
|
}
|
|
1407
1289
|
},
|
|
1408
1290
|
{
|
|
1409
|
-
"name": "wje-
|
|
1410
|
-
"description": "
|
|
1291
|
+
"name": "wje-dropdown",
|
|
1292
|
+
"description": "This element represents a dropdown menu.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the dropdown.\n- **beforeDraw()** - Removes the popup element.\n- **draw(): _DocumentFragment_** - Draws the dropdown element and returns the created document fragment.\n- **afterDraw()** - Adds event listeners for the mouseenter and mouseleave events.\n- **afterDisconnect()** - Adds event listeners for the mouseenter and mouseleave events.\n- **syncPopupOwner()** - Assigns the current dropdown instance as the owner of its popup layers.\nOwner metadata is later used to resolve which dropdown should react to\ndelegated menu-item clicks, including portaled popup content.\n- **syncOwnedContentOwner(root: _HTMLElement_)** - Recursively assigns owner metadata to the dropdown content subtree while\nleaving nested dropdown roots untouched, so each nested dropdown can keep\nits own ownership boundary.\n- **getMenuItemOwner(path: _EventTarget[]_, item: _HTMLElement_): _HTMLElement|null_** - Resolves the dropdown that owns a clicked menu item. The lookup prefers\nexplicit owner metadata and falls back to DOM traversal so both regular\nand portaled dropdown content can be scoped correctly.\n- **afterShow()** - This method is called after the dropdown is shown.\n- **syncAria()** - Syncs ARIA attributes for the trigger element.\n\n### **Slots:**\n - **trigger** - The slot for the trigger of the dropdown.\n- _default_ - The default slot for the dropdown.\n\n### **CSS Properties:**\n - **--wje-popup-backdrop-background** - Backdrop background used by mobile bottom sheet dropdowns. _(default: var(--wje-backdrop))_\n- **--wje-popup-backdrop-opacity** - Backdrop opacity used by mobile bottom sheet dropdowns. _(default: 1)_\n- **--wje-popup-mobile-background** - Background of the mobile bottom sheet panel. _(default: var(--wje-select-options-background-color))_\n- **--wje-popup-mobile-border-radius** - Border radius of the mobile bottom sheet panel. _(default: var(--wje-border-radius-large) var(--wje-border-radius-large) 0 0)_\n- **--wje-popup-mobile-box-shadow** - Shadow of the mobile bottom sheet panel. _(default: 0 -8px 32px rgba(0, 0, 0, 0.16))_\n- **--wje-popup-mobile-max-height** - Maximum height of the mobile bottom sheet panel. _(default: 90vh)_\n- **--wje-popup-mobile-transition-duration** - Transition duration for the mobile bottom sheet and backdrop. _(default: 250ms)_\n- **--wje-popup-mobile-transition-easing** - Transition easing for the mobile bottom sheet and backdrop. _(default: ease)_\n\n### **CSS Parts:**\n - **native** - The native part of the dropdown.\n- **popup-native** - The exported native popup panel part.\n- **backdrop** - The exported mobile bottom sheet backdrop part.",
|
|
1411
1293
|
"doc-url": "",
|
|
1412
|
-
"attributes": [
|
|
1413
|
-
|
|
1294
|
+
"attributes": [
|
|
1295
|
+
{ "name": "active", "value": { "type": "string" } },
|
|
1414
1296
|
{
|
|
1415
|
-
"name": "",
|
|
1416
|
-
"description": "
|
|
1297
|
+
"name": "mobile-presentation",
|
|
1298
|
+
"description": "Enables a responsive presentation, currently \"bottom-sheet\".",
|
|
1299
|
+
"value": { "type": "string" }
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
"name": "mobile-break-point",
|
|
1303
|
+
"description": "Viewport width where the mobile presentation becomes active. Defaults to \"768\". // @fires wje-dropdown:open - Event fired when the dropdown is opened. // @fires wje-dropdown:close - Event fired when the dropdown is closed.",
|
|
1304
|
+
"value": { "type": "string" }
|
|
1417
1305
|
}
|
|
1418
1306
|
],
|
|
1307
|
+
"slots": [
|
|
1308
|
+
{
|
|
1309
|
+
"name": "trigger",
|
|
1310
|
+
"description": "The slot for the trigger of the dropdown."
|
|
1311
|
+
},
|
|
1312
|
+
{ "name": "", "description": "The default slot for the dropdown." }
|
|
1313
|
+
],
|
|
1419
1314
|
"events": [],
|
|
1420
1315
|
"js": {
|
|
1421
1316
|
"properties": [
|
|
1317
|
+
{
|
|
1318
|
+
"name": "dependencies",
|
|
1319
|
+
"description": "The placement of the dropdown.",
|
|
1320
|
+
"type": "{\"wje-popup\": Popup}"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"name": "portaled",
|
|
1324
|
+
"description": "Getter method for the `portaled` property.\nChecks if the `portaled` attribute is present on the element."
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"name": "isPortaled",
|
|
1328
|
+
"description": "Checks whether the element has the 'portaled' attribute."
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"name": "trigger",
|
|
1332
|
+
"description": "Gets the placement of the dropdown."
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
"name": "mobilePresentation",
|
|
1336
|
+
"description": "Enables a responsive presentation, currently \"bottom-sheet\".",
|
|
1337
|
+
"type": "string"
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
"name": "mobileBreakPoint",
|
|
1341
|
+
"description": "Viewport width where the mobile presentation becomes active. Defaults to \"768\".",
|
|
1342
|
+
"type": "string"
|
|
1343
|
+
},
|
|
1422
1344
|
{
|
|
1423
1345
|
"name": "className",
|
|
1424
|
-
"description": "
|
|
1346
|
+
"description": "Sets the placement of the dropdown.",
|
|
1425
1347
|
"type": "string"
|
|
1426
|
-
}
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
"name": "otherDropdownOpennedCallback",
|
|
1351
|
+
"description": "Callback function to handle other dropdowns being opened. Close the dropdown if it is not the target and collapse is enabled."
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"name": "popupHideCallback",
|
|
1355
|
+
"description": "Handles popup hide events and closes only the dropdown that owns the popup.\nThis prevents nested dropdowns from collapsing their parent dropdown when the\nchild popup is hidden."
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
"name": "onMenuItemClick",
|
|
1359
|
+
"description": "Handles delegated clicks from inside the popup and closes the dropdown when a leaf menu item is selected.\nThis works even when the menu is portaled, because we rely on the composed path."
|
|
1360
|
+
},
|
|
1361
|
+
{ "name": "toggleCallback" },
|
|
1362
|
+
{ "name": "onOpen", "description": "Open the popup element." },
|
|
1363
|
+
{ "name": "beforeClose" },
|
|
1364
|
+
{ "name": "afterClose" },
|
|
1365
|
+
{ "name": "onClose" }
|
|
1427
1366
|
],
|
|
1428
1367
|
"events": []
|
|
1429
1368
|
}
|
|
1430
1369
|
},
|
|
1431
1370
|
{
|
|
1432
|
-
"name": "wje-
|
|
1433
|
-
"description": "This element
|
|
1371
|
+
"name": "wje-file-upload-item",
|
|
1372
|
+
"description": "This element allows users to upload files.\n`FileUploadItem` is a custom web component that represents a file upload item.\nIt extends from `WJElement` and uses the `Localizer` utility for localization.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Method to draw the component on the screen.\n- **afterDraw()** - Called after the component has been drawn.\n- **syncAria()** - Sync ARIA attributes on host and actions.\n\n### **Slots:**\n - **img** - Slot for the image\n- **action** - Slot for the action buttons\n\n### **CSS Properties:**\n - **--primary-color** - The primary color of the file upload item. //@fires wje-button:click - Dispatches when the delete button is clicked _(default: undefined)_\n\n### **CSS Parts:**\n - **button** - The delete button part\n- **image** - The image part\n- **name** - The name part\n- **size** - The size part",
|
|
1434
1373
|
"doc-url": "",
|
|
1435
|
-
"attributes": [
|
|
1374
|
+
"attributes": [
|
|
1375
|
+
{ "name": "uploaded", "value": { "type": "string" } },
|
|
1376
|
+
{ "name": "is-uploaded", "value": { "type": "string" } }
|
|
1377
|
+
],
|
|
1436
1378
|
"slots": [
|
|
1437
|
-
{
|
|
1438
|
-
|
|
1439
|
-
"description": "Default slot for the footer content"
|
|
1440
|
-
}
|
|
1379
|
+
{ "name": "img", "description": "Slot for the image" },
|
|
1380
|
+
{ "name": "action", "description": "Slot for the action buttons" }
|
|
1441
1381
|
],
|
|
1442
1382
|
"events": [],
|
|
1443
1383
|
"js": {
|
|
1444
|
-
"properties": [
|
|
1384
|
+
"properties": [
|
|
1385
|
+
{
|
|
1386
|
+
"name": "isUploaded",
|
|
1387
|
+
"description": "Checks if the 'is-uploaded' attribute is present on the element."
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
"name": "size",
|
|
1391
|
+
"description": "Retrieves the value of the 'size' attribute."
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
"name": "dependencies",
|
|
1395
|
+
"description": "Dependencies for the component.",
|
|
1396
|
+
"type": "object"
|
|
1397
|
+
},
|
|
1398
|
+
{ "name": "className", "type": "string" },
|
|
1399
|
+
{
|
|
1400
|
+
"name": "onDelete",
|
|
1401
|
+
"description": "Handles the delete action."
|
|
1402
|
+
},
|
|
1403
|
+
{ "name": "localizer" }
|
|
1404
|
+
],
|
|
1445
1405
|
"events": []
|
|
1446
1406
|
}
|
|
1447
1407
|
},
|
|
1448
1408
|
{
|
|
1449
|
-
"name": "wje-
|
|
1450
|
-
"description": "
|
|
1409
|
+
"name": "wje-footer",
|
|
1410
|
+
"description": "This element represents a footer. `Footer` is a custom web component that represents a footer.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component.\n\n### **Slots:**\n - **default** - Default slot for the footer content\n\n### **CSS Properties:**\n - **--primary-color** - The primary color of the footer _(default: undefined)_",
|
|
1451
1411
|
"doc-url": "",
|
|
1452
1412
|
"attributes": [],
|
|
1453
1413
|
"slots": [
|
|
1454
1414
|
{
|
|
1455
|
-
"name": "",
|
|
1456
|
-
"description": "
|
|
1415
|
+
"name": "default",
|
|
1416
|
+
"description": "Default slot for the footer content"
|
|
1457
1417
|
}
|
|
1458
1418
|
],
|
|
1459
1419
|
"events": [],
|
|
1460
1420
|
"js": {
|
|
1461
|
-
"properties": [
|
|
1462
|
-
{
|
|
1463
|
-
"name": "className",
|
|
1464
|
-
"description": "The class name for the Grid class.",
|
|
1465
|
-
"type": "string"
|
|
1466
|
-
}
|
|
1467
|
-
],
|
|
1421
|
+
"properties": [{ "name": "className", "type": "string" }],
|
|
1468
1422
|
"events": []
|
|
1469
1423
|
}
|
|
1470
1424
|
},
|
|
@@ -1516,20 +1470,39 @@
|
|
|
1516
1470
|
}
|
|
1517
1471
|
},
|
|
1518
1472
|
{
|
|
1519
|
-
"name": "wje-
|
|
1520
|
-
"description": "
|
|
1473
|
+
"name": "wje-header",
|
|
1474
|
+
"description": "`Header` is a custom web component that represents a header. It extends from `WJElement`.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component.\n\n### **Slots:**\n - **default** - Default slot for the header content\n\n### **CSS Properties:**\n - **--wje-header-background** - The background of the header element. _(default: var(--wje-background))_\n- **--wje-header-border-color** - The border color of the header element. _(default: var(--wje-border-color))_\n- **--wje-header-border-width** - The border width of the header element. _(default: 0 0 1px 0)_\n- **--wje-header-border-style** - The border styles of the header _(default: solid)_\n- **--wje-header-top** - The position top of the header _(default: 0)_\n- **--wje-header-height** - The height of the header element. _(default: 60px)_\n- **--wje-header-z-index** - The z-index used when the header is sticky. _(default: 100)_\n\n### **CSS Parts:**\n - **native** - The native part",
|
|
1521
1475
|
"doc-url": "",
|
|
1522
|
-
"attributes": [
|
|
1523
|
-
|
|
1524
|
-
{
|
|
1525
|
-
|
|
1476
|
+
"attributes": [],
|
|
1477
|
+
"slots": [
|
|
1478
|
+
{
|
|
1479
|
+
"name": "default",
|
|
1480
|
+
"description": "Default slot for the header content"
|
|
1481
|
+
}
|
|
1482
|
+
],
|
|
1483
|
+
"events": [],
|
|
1484
|
+
"js": {
|
|
1485
|
+
"properties": [{ "name": "className", "type": "string" }],
|
|
1486
|
+
"events": []
|
|
1487
|
+
}
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
"name": "wje-grid",
|
|
1491
|
+
"description": "The Grid class is a custom web component that extends WJElement. It is a simple grid that can hold other elements or components.\nIt provides a slot for adding child elements or components.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the Grid.\n- **draw(): _DocumentFragment_** - Draws the Grid element.\n\n### **Slots:**\n - _default_ - The slot for adding child elements or components.",
|
|
1492
|
+
"doc-url": "",
|
|
1493
|
+
"attributes": [],
|
|
1494
|
+
"slots": [
|
|
1495
|
+
{
|
|
1496
|
+
"name": "",
|
|
1497
|
+
"description": "The slot for adding child elements or components."
|
|
1498
|
+
}
|
|
1526
1499
|
],
|
|
1527
1500
|
"events": [],
|
|
1528
1501
|
"js": {
|
|
1529
1502
|
"properties": [
|
|
1530
1503
|
{
|
|
1531
1504
|
"name": "className",
|
|
1532
|
-
"description": "
|
|
1505
|
+
"description": "The class name for the Grid class.",
|
|
1533
1506
|
"type": "string"
|
|
1534
1507
|
}
|
|
1535
1508
|
],
|
|
@@ -1537,19 +1510,46 @@
|
|
|
1537
1510
|
}
|
|
1538
1511
|
},
|
|
1539
1512
|
{
|
|
1540
|
-
"name": "wje-
|
|
1541
|
-
"description": "
|
|
1513
|
+
"name": "wje-form",
|
|
1514
|
+
"description": "The Form class is a custom\nweb component that extends WJElement. It is a simple form that can hold other elements or components.\nIt provides a slot for adding child elements or components.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the Form.\n- **draw(): _DocumentFragment_** - Draws the Form.\n\n### **Slots:**\n - _default_ - The slot for adding child elements or components.",
|
|
1542
1515
|
"doc-url": "",
|
|
1543
1516
|
"attributes": [],
|
|
1544
1517
|
"slots": [
|
|
1545
1518
|
{
|
|
1546
|
-
"name": "
|
|
1547
|
-
"description": "
|
|
1519
|
+
"name": "",
|
|
1520
|
+
"description": "The slot for adding child elements or components."
|
|
1548
1521
|
}
|
|
1549
1522
|
],
|
|
1550
1523
|
"events": [],
|
|
1551
1524
|
"js": {
|
|
1552
|
-
"properties": [
|
|
1525
|
+
"properties": [
|
|
1526
|
+
{
|
|
1527
|
+
"name": "className",
|
|
1528
|
+
"description": "The class name for the Form class.",
|
|
1529
|
+
"type": "string"
|
|
1530
|
+
}
|
|
1531
|
+
],
|
|
1532
|
+
"events": []
|
|
1533
|
+
}
|
|
1534
|
+
},
|
|
1535
|
+
{
|
|
1536
|
+
"name": "wje-icon",
|
|
1537
|
+
"description": "This element represents an icon. `IconElement` is a custom web component that represents an icon.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(context: _object_, store: _object_, params: _object_): _DocumentFragment_** - Draws the component.\n- **afterDraw()** - Called after the component has been drawn.\n- **syncAria()** - Sync ARIA attributes on host.\n\n### **CSS Properties:**\n - **--wje-icon-size** - The size of the icon element _(default: 1rem)_\n- **--wje-icon-width** - The width of the icon element _(default: var(--wje-icon-size, 100%))_\n- **--wje-icon-height** - The height of the icon element _(default: var(--wje-icon-size, 100%))_\n\n### **CSS Parts:**\n - **svg** - The SVG part of the icon",
|
|
1538
|
+
"doc-url": "",
|
|
1539
|
+
"attributes": [
|
|
1540
|
+
{ "name": "name", "value": { "type": "string" } },
|
|
1541
|
+
{ "name": "filled", "value": { "type": "string" } },
|
|
1542
|
+
{ "name": "label", "value": { "type": "string" } }
|
|
1543
|
+
],
|
|
1544
|
+
"events": [],
|
|
1545
|
+
"js": {
|
|
1546
|
+
"properties": [
|
|
1547
|
+
{
|
|
1548
|
+
"name": "className",
|
|
1549
|
+
"description": "Sets the name of the icon.",
|
|
1550
|
+
"type": "string"
|
|
1551
|
+
}
|
|
1552
|
+
],
|
|
1553
1553
|
"events": []
|
|
1554
1554
|
}
|
|
1555
1555
|
},
|
|
@@ -1667,36 +1667,6 @@
|
|
|
1667
1667
|
"events": []
|
|
1668
1668
|
}
|
|
1669
1669
|
},
|
|
1670
|
-
{
|
|
1671
|
-
"name": "wje-img-comparer",
|
|
1672
|
-
"description": "This element allows users to compare two images. `ImgComparer` is a custom web component that represents an image comparer.\nIt extends from `WJElement` and uses the `Icon` component.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component.\n\n### **Slots:**\n - **before** - The before image slot.\n- **after** - The after image slot.\n\n### **CSS Properties:**\n - **--wje-img-compare-divider-area** - The area of the divider. This is the size of the divider. Accepts any valid CSS size. _(default: 12px)_\n- **--wje-img-compare-divider-background** - Sets the background color of the divider in the image comparison component. Accepts any valid CSS color value (e.g., `red`, `#ff0000`, `rgba(255, 255, 255, 0.5)`). The default value is `white`, which ensures high contrast in most designs. _(default: white)_\n- **--wje-img-compare-divider-size** - The size of the divider. This is the thickness of the divider. Accepts any valid CSS size. _(default: 2px)_\n- **--wje-img-compare-divider-left** - The left position of the divider. This is the initial position of the divider. _(default: 50%)_\n- **--wje-img-compare-position** - The position of the divider. This is the position of the divider. _(default: 50%)_\n- **--wje-img-compare-clip-path** - The clip path of the divider. This is the clip path of the divider. _(default: inset(0 calc(100% - var(--wje-img-compare-position)) 0 0))_\n\n### **CSS Parts:**\n - **divider** - The divider part.",
|
|
1673
|
-
"doc-url": "",
|
|
1674
|
-
"attributes": [],
|
|
1675
|
-
"slots": [
|
|
1676
|
-
{ "name": "before", "description": "The before image slot." },
|
|
1677
|
-
{ "name": "after", "description": "The after image slot." }
|
|
1678
|
-
],
|
|
1679
|
-
"events": [],
|
|
1680
|
-
"js": {
|
|
1681
|
-
"properties": [
|
|
1682
|
-
{
|
|
1683
|
-
"name": "dependencies",
|
|
1684
|
-
"description": "Dependencies of the ImgComparer component.",
|
|
1685
|
-
"type": "object"
|
|
1686
|
-
},
|
|
1687
|
-
{ "name": "className", "type": "string" },
|
|
1688
|
-
{
|
|
1689
|
-
"name": "handleDrag",
|
|
1690
|
-
"description": "Handles the drag event."
|
|
1691
|
-
},
|
|
1692
|
-
{
|
|
1693
|
-
"name": "clamp",
|
|
1694
|
-
"description": "Clamps a number between a minimum and maximum value."
|
|
1695
|
-
}
|
|
1696
|
-
],
|
|
1697
|
-
"events": []
|
|
1698
|
-
}
|
|
1699
|
-
},
|
|
1700
1670
|
{
|
|
1701
1671
|
"name": "wje-infinite-scroll",
|
|
1702
1672
|
"description": "This element allows users to scroll through a potentially infinite amount of content.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **beforeDraw(): _void_** - Prepares the component for updates before it is drawn.\nThis method handles the removal of templates for iteration, adjusts the height styling of the component,\nand manages abort signals for loading operations.\n- **draw(): _DocumentFragment_** - Creates and returns a document fragment containing the structure for an infinite scroll component.\nThe structure includes native elements, slots for customization, and optional loading content.\n- **afterDraw()** - Called after the component has been drawn.\n- **syncAria()** - Sync ARIA attributes on host.\n- **getPages(page: _number_): _Promise<object>_** - Fetches the pages from the server.\n- **hideLoader()** - Hides the loader.\n- **showLoader(): _void_** - Displays the loader element by adding the 'show' class to its class list.\nThis method is useful for indicating a loading or processing state in the UI.\n- **hasMorePages(page: _number_): _boolean_** - Checks if there are more pages to load.\n- **loadPages(page: _number_)** - Loads the pages.\n\n### **Slots:**\n - _default_ - The default slot for the infinite scroll.\n\n### **CSS Properties:**\n - **--wje-infinite-scroll-width** - Sets the width of the infinite scroll container. his property determines how wide the infinite scroll area will be relative to its parent element. Accepts any valid CSS width value, such as percentages (`%`), pixels (`px`), or viewport units (`vw`). The default value is `100%`, which makes it span the full width of its container. _(default: 100%)_\n- **--wje-infinite-scroll-height** - Defines the height of the infinite scroll container. This property specifies how tall the infinite scroll area should be. Accepts any valid CSS height value, such as pixels (`px`), percentages (`%`), or viewport units (`vh`). The default value is `300px`, providing a fixed height suitable for most use cases. //@fires wje-infinite-scroll:click-item - Event fired when an item is clicked. _(default: 300px)_\n\n### **CSS Parts:**\n - **loader** - The loader part of the infinite scroll.",
|
|
@@ -1832,75 +1802,45 @@
|
|
|
1832
1802
|
}
|
|
1833
1803
|
},
|
|
1834
1804
|
{
|
|
1835
|
-
"name": "wje-
|
|
1836
|
-
"description": "This element
|
|
1805
|
+
"name": "wje-img-comparer",
|
|
1806
|
+
"description": "This element allows users to compare two images. `ImgComparer` is a custom web component that represents an image comparer.\nIt extends from `WJElement` and uses the `Icon` component.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component.\n\n### **Slots:**\n - **before** - The before image slot.\n- **after** - The after image slot.\n\n### **CSS Properties:**\n - **--wje-img-compare-divider-area** - The area of the divider. This is the size of the divider. Accepts any valid CSS size. _(default: 12px)_\n- **--wje-img-compare-divider-background** - Sets the background color of the divider in the image comparison component. Accepts any valid CSS color value (e.g., `red`, `#ff0000`, `rgba(255, 255, 255, 0.5)`). The default value is `white`, which ensures high contrast in most designs. _(default: white)_\n- **--wje-img-compare-divider-size** - The size of the divider. This is the thickness of the divider. Accepts any valid CSS size. _(default: 2px)_\n- **--wje-img-compare-divider-left** - The left position of the divider. This is the initial position of the divider. _(default: 50%)_\n- **--wje-img-compare-position** - The position of the divider. This is the position of the divider. _(default: 50%)_\n- **--wje-img-compare-clip-path** - The clip path of the divider. This is the clip path of the divider. _(default: inset(0 calc(100% - var(--wje-img-compare-position)) 0 0))_\n\n### **CSS Parts:**\n - **divider** - The divider part.",
|
|
1837
1807
|
"doc-url": "",
|
|
1838
1808
|
"attributes": [],
|
|
1809
|
+
"slots": [
|
|
1810
|
+
{ "name": "before", "description": "The before image slot." },
|
|
1811
|
+
{ "name": "after", "description": "The after image slot." }
|
|
1812
|
+
],
|
|
1839
1813
|
"events": [],
|
|
1840
1814
|
"js": {
|
|
1841
1815
|
"properties": [
|
|
1842
1816
|
{
|
|
1843
|
-
"name": "
|
|
1844
|
-
"description": "
|
|
1817
|
+
"name": "dependencies",
|
|
1818
|
+
"description": "Dependencies of the ImgComparer component.",
|
|
1819
|
+
"type": "object"
|
|
1845
1820
|
},
|
|
1821
|
+
{ "name": "className", "type": "string" },
|
|
1846
1822
|
{
|
|
1847
|
-
"name": "
|
|
1848
|
-
"description": "
|
|
1849
|
-
"type": "string"
|
|
1823
|
+
"name": "handleDrag",
|
|
1824
|
+
"description": "Handles the drag event."
|
|
1850
1825
|
},
|
|
1851
|
-
{
|
|
1826
|
+
{
|
|
1827
|
+
"name": "clamp",
|
|
1828
|
+
"description": "Clamps a number between a minimum and maximum value."
|
|
1829
|
+
}
|
|
1852
1830
|
],
|
|
1853
1831
|
"events": []
|
|
1854
1832
|
}
|
|
1855
1833
|
},
|
|
1856
1834
|
{
|
|
1857
|
-
"name": "wje-
|
|
1858
|
-
"description": "This element represents
|
|
1835
|
+
"name": "wje-kanban",
|
|
1836
|
+
"description": "This element represents a Kanban board.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **beforeDraw(context: _object_, store: _object_, params: _object_)** - Prepares the component before drawing.\n- **draw(): _DocumentFragment_** - Draws the component after it has been prepared.\n- **syncAria()** - Sync ARIA attributes on host.\n- **afterDraw()** - Called after the component has been drawn.\n- **setupDragAndDropEvents()** - Sets up the drag and drop events for the component.\n- **setupSelectAllCardsEvent()** - Sets up the select all cards event for the component.\n- **setupMenuItemClickEvents()** - Sets up the menu item click events for the component.\n- **updateSelectedCards(pool: _HTMLElement_, isChecked: _boolean_)** - Updates the selected cards in the pool.\n- **handlePoolAction(action: _string_, pool: _HTMLElement_)** - Handles the pool action.\n- **movePool(pool: _HTMLElement_, direction: _string_)** - Moves the pool in the specified direction.\n- **renamePool(pool: _HTMLElement_)** - Renames the pool.\n- **getCardPlaceholder(): _null|*_** - Gets the card placeholder.\n- **live(eventType: _string_, selector: _string_, callback: _function_)** - Adds a live event listener to the component.\n- **setSelectedCards(isChecked: _boolean_, card: _HTMLElement_)** - Sets the selected cards.\n- **setSelectedItems()** - Sets the selected items.\n- **getPages(page): _Promise<any>_** - Fetches the pages.\n\n### **Slots:**\n - _default_ - The default slot for the Kanban board.\n\n### **CSS Parts:**\n - **native-infinite-scroll** - Styles the native part of the Kanban board.",
|
|
1859
1837
|
"doc-url": "",
|
|
1860
1838
|
"attributes": [],
|
|
1861
1839
|
"slots": [
|
|
1862
|
-
{
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
],
|
|
1867
|
-
"events": [],
|
|
1868
|
-
"js": {
|
|
1869
|
-
"properties": [
|
|
1870
|
-
{
|
|
1871
|
-
"name": "className",
|
|
1872
|
-
"description": "Returns the CSS styles for the component.",
|
|
1873
|
-
"type": "string"
|
|
1874
|
-
},
|
|
1875
|
-
{
|
|
1876
|
-
"name": "hostContext",
|
|
1877
|
-
"description": "Determines if the given element or any of its ancestors matches the specified selector."
|
|
1878
|
-
},
|
|
1879
|
-
{ "name": "labelColorStyles", "type": "object" },
|
|
1880
|
-
{ "name": "itemStyles" },
|
|
1881
|
-
{ "name": "inheritedAriaAttributes", "type": "object" },
|
|
1882
|
-
{ "name": "multipleInputs", "type": "boolean" },
|
|
1883
|
-
{ "name": "focusable", "type": "boolean" },
|
|
1884
|
-
{ "name": "button", "type": "boolean" },
|
|
1885
|
-
{ "name": "detailIcon" },
|
|
1886
|
-
{ "name": "disabled", "type": "boolean" },
|
|
1887
|
-
{ "name": "counter", "type": "boolean" },
|
|
1888
|
-
{ "name": "routerDirection", "type": "string" },
|
|
1889
|
-
{ "name": "type", "type": "string" }
|
|
1890
|
-
],
|
|
1891
|
-
"events": []
|
|
1892
|
-
}
|
|
1893
|
-
},
|
|
1894
|
-
{
|
|
1895
|
-
"name": "wje-kanban",
|
|
1896
|
-
"description": "This element represents a Kanban board.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **beforeDraw(context: _object_, store: _object_, params: _object_)** - Prepares the component before drawing.\n- **draw(): _DocumentFragment_** - Draws the component after it has been prepared.\n- **syncAria()** - Sync ARIA attributes on host.\n- **afterDraw()** - Called after the component has been drawn.\n- **setupDragAndDropEvents()** - Sets up the drag and drop events for the component.\n- **setupSelectAllCardsEvent()** - Sets up the select all cards event for the component.\n- **setupMenuItemClickEvents()** - Sets up the menu item click events for the component.\n- **updateSelectedCards(pool: _HTMLElement_, isChecked: _boolean_)** - Updates the selected cards in the pool.\n- **handlePoolAction(action: _string_, pool: _HTMLElement_)** - Handles the pool action.\n- **movePool(pool: _HTMLElement_, direction: _string_)** - Moves the pool in the specified direction.\n- **renamePool(pool: _HTMLElement_)** - Renames the pool.\n- **getCardPlaceholder(): _null|*_** - Gets the card placeholder.\n- **live(eventType: _string_, selector: _string_, callback: _function_)** - Adds a live event listener to the component.\n- **setSelectedCards(isChecked: _boolean_, card: _HTMLElement_)** - Sets the selected cards.\n- **setSelectedItems()** - Sets the selected items.\n- **getPages(page): _Promise<any>_** - Fetches the pages.\n\n### **Slots:**\n - _default_ - The default slot for the Kanban board.\n\n### **CSS Parts:**\n - **native-infinite-scroll** - Styles the native part of the Kanban board.",
|
|
1897
|
-
"doc-url": "",
|
|
1898
|
-
"attributes": [],
|
|
1899
|
-
"slots": [
|
|
1900
|
-
{
|
|
1901
|
-
"name": "",
|
|
1902
|
-
"description": "The default slot for the Kanban board."
|
|
1903
|
-
}
|
|
1840
|
+
{
|
|
1841
|
+
"name": "",
|
|
1842
|
+
"description": "The default slot for the Kanban board."
|
|
1843
|
+
}
|
|
1904
1844
|
],
|
|
1905
1845
|
"events": [],
|
|
1906
1846
|
"js": {
|
|
@@ -1968,33 +1908,39 @@
|
|
|
1968
1908
|
}
|
|
1969
1909
|
},
|
|
1970
1910
|
{
|
|
1971
|
-
"name": "wje-
|
|
1972
|
-
"description": "
|
|
1911
|
+
"name": "wje-item",
|
|
1912
|
+
"description": "This element represents an item.\n---\n\n\n### **Methods:**\n - **isClickable(): _boolean_** - Returns the CSS styles for the component.\n- **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the item.\n- **afterDraw()** - Called after the component has been drawn.\n- **syncAria()** - Sync ARIA attributes on host.\n\n### **Slots:**\n - **start** - The start slot\n- **end** - The end slot\n- **error** - The error slot\n- **helper** - The helper slot\n\n### **CSS Properties:**\n - **--wje-item-background** - Sets the background color of the item. Accepts any valid CSS color value. _(default: var(--wje-background))_\n- **--wje-item-color** - Defines the text color for the item. Accepts any valid CSS color value. _(default: var(--wje-color))_\n- **--wje-item-padding-start** - Specifies the left padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-padding-end** - Specifies the right padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-padding-top** - Specifies the top padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-padding-bottom** - Specifies the bottom padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-inner-padding-start** - Specifies the left inner padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-inner-padding-end** - Specifies the right inner padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-inner-padding-top** - Specifies the top inner padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-inner-padding-bottom** - Specifies the bottom inner padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-border-radius** - Defines the border radius, providing rounded corners for the item. _(default: var(--wje-border-radius))_\n- **--wje-item-border-width** - Sets the border width of the item. Accepts any valid CSS length. _(default: var(--wje-border-width))_\n- **--wje-item-border-style** - Specifies the style of the border, such as `solid`, `dashed`, or `dotted`. _(default: var(--wje-border-style))_\n- **--wje-item-border-color** - Defines the color of the item's border. Accepts any valid CSS color value. _(default: var(--wje-border-color))_\n- **--wje-item-min-height** - Sets the minimum height of the item to ensure consistent layout. _(default: var(--wje-min-height))_\n- **--wje-item-transition** - Specifies the transition effects for the item, such as for hover or focus states. _(default: var(--wje-transition))_\n- **--wje-item-inner-box-shadow** - Adds a shadow effect inside the item for a 3D appearance. _(default: var(--wje-box-shadow))_\n\n### **CSS Parts:**\n - **native** - The native part\n- **inner** - The inner part",
|
|
1973
1913
|
"doc-url": "",
|
|
1974
|
-
"attributes": [
|
|
1975
|
-
|
|
1976
|
-
{ "name": "
|
|
1914
|
+
"attributes": [],
|
|
1915
|
+
"slots": [
|
|
1916
|
+
{ "name": "start", "description": "The start slot" },
|
|
1917
|
+
{ "name": "end", "description": "The end slot" },
|
|
1918
|
+
{ "name": "error", "description": "The error slot" },
|
|
1919
|
+
{ "name": "helper", "description": "The helper slot" }
|
|
1977
1920
|
],
|
|
1978
1921
|
"events": [],
|
|
1979
1922
|
"js": {
|
|
1980
1923
|
"properties": [
|
|
1981
1924
|
{
|
|
1982
|
-
"name": "
|
|
1983
|
-
"description": "
|
|
1984
|
-
|
|
1985
|
-
{
|
|
1986
|
-
"name": "bars",
|
|
1987
|
-
"description": "Retrieves the value of the \"bars\" attribute, parses it as an integer,\nand ensures it is at least 1. If the attribute is not set, defaults to 3."
|
|
1988
|
-
},
|
|
1989
|
-
{
|
|
1990
|
-
"name": "colorize",
|
|
1991
|
-
"description": "Determines whether the element has the \"colorize\" attribute set."
|
|
1925
|
+
"name": "className",
|
|
1926
|
+
"description": "Returns the CSS styles for the component.",
|
|
1927
|
+
"type": "string"
|
|
1992
1928
|
},
|
|
1993
1929
|
{
|
|
1994
|
-
"name": "
|
|
1995
|
-
"description": "
|
|
1930
|
+
"name": "hostContext",
|
|
1931
|
+
"description": "Determines if the given element or any of its ancestors matches the specified selector."
|
|
1996
1932
|
},
|
|
1997
|
-
{ "name": "
|
|
1933
|
+
{ "name": "labelColorStyles", "type": "object" },
|
|
1934
|
+
{ "name": "itemStyles" },
|
|
1935
|
+
{ "name": "inheritedAriaAttributes", "type": "object" },
|
|
1936
|
+
{ "name": "multipleInputs", "type": "boolean" },
|
|
1937
|
+
{ "name": "focusable", "type": "boolean" },
|
|
1938
|
+
{ "name": "button", "type": "boolean" },
|
|
1939
|
+
{ "name": "detailIcon" },
|
|
1940
|
+
{ "name": "disabled", "type": "boolean" },
|
|
1941
|
+
{ "name": "counter", "type": "boolean" },
|
|
1942
|
+
{ "name": "routerDirection", "type": "string" },
|
|
1943
|
+
{ "name": "type", "type": "string" }
|
|
1998
1944
|
],
|
|
1999
1945
|
"events": []
|
|
2000
1946
|
}
|
|
@@ -2014,19 +1960,34 @@
|
|
|
2014
1960
|
}
|
|
2015
1961
|
},
|
|
2016
1962
|
{
|
|
2017
|
-
"name": "wje-
|
|
2018
|
-
"description": "
|
|
1963
|
+
"name": "wje-level-indicator",
|
|
1964
|
+
"description": "LevelIndicator is a custom web component that extends WJElement.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Creates a document fragment, appends a new slot element to it, and returns the fragment.\n- **afterDraw(): _void_** - Executes any additional operations or updates required after the drawing process is completed.\n- **syncAria()** - Sync ARIA attributes on host.\n- **updateBars(level: _number_, bars: _Array_): _void_** - Updates the class of each bar element based on the specified level.\n- **getColor(level: _number_, bars: _number_): _string | undefined_** - Determines the color indicator based on the given level and bars.\n\n### **CSS Parts:**\n - **** - Styles the element.",
|
|
2019
1965
|
"doc-url": "",
|
|
2020
|
-
"attributes": [
|
|
2021
|
-
|
|
2022
|
-
{
|
|
2023
|
-
"name": "",
|
|
2024
|
-
"description": "The default slot for the main section."
|
|
2025
|
-
}
|
|
1966
|
+
"attributes": [
|
|
1967
|
+
{ "name": "level", "value": { "type": "string" } },
|
|
1968
|
+
{ "name": "bars", "value": { "type": "string" } }
|
|
2026
1969
|
],
|
|
2027
1970
|
"events": [],
|
|
2028
1971
|
"js": {
|
|
2029
|
-
"properties": [
|
|
1972
|
+
"properties": [
|
|
1973
|
+
{
|
|
1974
|
+
"name": "level",
|
|
1975
|
+
"description": "Retrieves the level attribute of an element, with validation to ensure\nit is within the range of 0 to 3. If the level attribute is not present,\nthe default value is 1. The result is parsed as an integer and constrained\nto the valid range."
|
|
1976
|
+
},
|
|
1977
|
+
{
|
|
1978
|
+
"name": "bars",
|
|
1979
|
+
"description": "Retrieves the value of the \"bars\" attribute, parses it as an integer,\nand ensures it is at least 1. If the attribute is not set, defaults to 3."
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
"name": "colorize",
|
|
1983
|
+
"description": "Determines whether the element has the \"colorize\" attribute set."
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
"name": "reverse",
|
|
1987
|
+
"description": "Getter method to check if the \"reverse\" attribute is present on the element."
|
|
1988
|
+
},
|
|
1989
|
+
{ "name": "className", "type": "string" }
|
|
1990
|
+
],
|
|
2030
1991
|
"events": []
|
|
2031
1992
|
}
|
|
2032
1993
|
},
|
|
@@ -2101,71 +2062,23 @@
|
|
|
2101
2062
|
}
|
|
2102
2063
|
},
|
|
2103
2064
|
{
|
|
2104
|
-
"name": "wje-
|
|
2105
|
-
"description": "This element represents a
|
|
2065
|
+
"name": "wje-input-file",
|
|
2066
|
+
"description": "This element represents a file input.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _object_** - Draws the component.\n- **afterDraw()** - After draw method for the InputFile class.\n\n### **CSS Parts:**\n - **native** - The native file input wrapper.\n- **input** - The text input.\n- **file-input** - The file input element. // @fires wje-input-file:change - Event fired when the file input changes.",
|
|
2106
2067
|
"doc-url": "",
|
|
2107
2068
|
"attributes": [],
|
|
2108
|
-
"slots": [
|
|
2109
|
-
{
|
|
2110
|
-
"name": "",
|
|
2111
|
-
"description": "The default slot for the menu label."
|
|
2112
|
-
}
|
|
2113
|
-
],
|
|
2114
|
-
"events": [],
|
|
2115
|
-
"js": {
|
|
2116
|
-
"properties": [
|
|
2117
|
-
{ "name": "className", "type": "string" },
|
|
2118
|
-
{ "name": "hasSubmenu" }
|
|
2119
|
-
],
|
|
2120
|
-
"events": []
|
|
2121
|
-
}
|
|
2122
|
-
},
|
|
2123
|
-
{
|
|
2124
|
-
"name": "wje-option",
|
|
2125
|
-
"description": "This element represents an option.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the option.\n- **afterDraw(): _void_** - Method executed after the drawing process is completed.\nSets up an event listener for 'click' events, linking them to the specified callback function.\n- **syncAria()** - Syncs ARIA attributes on the host element.\n- **beforeDisconnect(): _void_** - Handles operations or cleanup tasks that need to occur before disconnecting.\nRemoves an event listener associated with the 'click' event and a specified callback function.\n- **optionClickCallback(e: _Event_): _void_** - Handles the click event on an option element and dispatches a custom event when triggered.\n\n### **Slots:**\n - **start** - The slot for the start of the option.\n- _default_ - The default slot for the option.\n- **end** - The slot for the end of the option. // @fires wje-option:change - Event fired when the option is clicked.\n\n### **CSS Parts:**\n - **native** - The native part of the option.",
|
|
2126
|
-
"doc-url": "",
|
|
2127
|
-
"attributes": [{ "name": "selected", "value": { "type": "string" } }],
|
|
2128
|
-
"slots": [
|
|
2129
|
-
{
|
|
2130
|
-
"name": "start",
|
|
2131
|
-
"description": "The slot for the start of the option."
|
|
2132
|
-
},
|
|
2133
|
-
{ "name": "", "description": "The default slot for the option." },
|
|
2134
|
-
{
|
|
2135
|
-
"name": "end",
|
|
2136
|
-
"description": "The slot for the end of the option. // @fires wje-option:change - Event fired when the option is clicked."
|
|
2137
|
-
}
|
|
2138
|
-
],
|
|
2139
2069
|
"events": [],
|
|
2140
2070
|
"js": {
|
|
2141
2071
|
"properties": [
|
|
2142
|
-
{
|
|
2143
|
-
"name": "dependencies",
|
|
2144
|
-
"description": "Dependencies of the Option component.",
|
|
2145
|
-
"type": "object"
|
|
2146
|
-
},
|
|
2147
|
-
{
|
|
2148
|
-
"name": "selected",
|
|
2149
|
-
"description": "Retrieves the 'selected' attribute status of the element."
|
|
2150
|
-
},
|
|
2151
|
-
{
|
|
2152
|
-
"name": "checkbox",
|
|
2153
|
-
"description": "Retrieves the value indicating whether the closest 'wje-select' element has a 'checkbox' attribute."
|
|
2154
|
-
},
|
|
2155
|
-
{
|
|
2156
|
-
"name": "multiple",
|
|
2157
|
-
"description": "Determines whether the closest 'wje-select' element has the 'multiple' attribute."
|
|
2158
|
-
},
|
|
2159
|
-
{ "name": "ownerSelect" },
|
|
2160
2072
|
{
|
|
2161
2073
|
"name": "value",
|
|
2162
|
-
"description": "
|
|
2074
|
+
"description": "Gets the value of the input file."
|
|
2163
2075
|
},
|
|
2164
2076
|
{
|
|
2165
|
-
"name": "
|
|
2166
|
-
"description": "
|
|
2077
|
+
"name": "className",
|
|
2078
|
+
"description": "The class name for the InputFile class.",
|
|
2079
|
+
"type": "string"
|
|
2167
2080
|
},
|
|
2168
|
-
{ "name": "
|
|
2081
|
+
{ "name": "_value", "type": "string" }
|
|
2169
2082
|
],
|
|
2170
2083
|
"events": []
|
|
2171
2084
|
}
|
|
@@ -2263,28 +2176,88 @@
|
|
|
2263
2176
|
}
|
|
2264
2177
|
},
|
|
2265
2178
|
{
|
|
2266
|
-
"name": "wje-
|
|
2267
|
-
"description": "
|
|
2179
|
+
"name": "wje-main",
|
|
2180
|
+
"description": "This element represents a main section.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the main section.\n\n### **Slots:**\n - _default_ - The default slot for the main section.",
|
|
2268
2181
|
"doc-url": "",
|
|
2269
|
-
"attributes": [
|
|
2182
|
+
"attributes": [],
|
|
2183
|
+
"slots": [
|
|
2270
2184
|
{
|
|
2271
|
-
"name": "
|
|
2272
|
-
"description": "
|
|
2273
|
-
|
|
2185
|
+
"name": "",
|
|
2186
|
+
"description": "The default slot for the main section."
|
|
2187
|
+
}
|
|
2188
|
+
],
|
|
2189
|
+
"events": [],
|
|
2190
|
+
"js": {
|
|
2191
|
+
"properties": [{ "name": "className", "type": "string" }],
|
|
2192
|
+
"events": []
|
|
2193
|
+
}
|
|
2194
|
+
},
|
|
2195
|
+
{
|
|
2196
|
+
"name": "wje-option",
|
|
2197
|
+
"description": "This element represents an option.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the option.\n- **afterDraw(): _void_** - Method executed after the drawing process is completed.\nSets up an event listener for 'click' events, linking them to the specified callback function.\n- **syncAria()** - Syncs ARIA attributes on the host element.\n- **beforeDisconnect(): _void_** - Handles operations or cleanup tasks that need to occur before disconnecting.\nRemoves an event listener associated with the 'click' event and a specified callback function.\n- **optionClickCallback(e: _Event_): _void_** - Handles the click event on an option element and dispatches a custom event when triggered.\n\n### **Slots:**\n - **start** - The slot for the start of the option.\n- _default_ - The default slot for the option.\n- **end** - The slot for the end of the option. // @fires wje-option:change - Event fired when the option is clicked.\n\n### **CSS Parts:**\n - **native** - The native part of the option.",
|
|
2198
|
+
"doc-url": "",
|
|
2199
|
+
"attributes": [{ "name": "selected", "value": { "type": "string" } }],
|
|
2200
|
+
"slots": [
|
|
2201
|
+
{
|
|
2202
|
+
"name": "start",
|
|
2203
|
+
"description": "The slot for the start of the option."
|
|
2204
|
+
},
|
|
2205
|
+
{ "name": "", "description": "The default slot for the option." },
|
|
2206
|
+
{
|
|
2207
|
+
"name": "end",
|
|
2208
|
+
"description": "The slot for the end of the option. // @fires wje-option:change - Event fired when the option is clicked."
|
|
2274
2209
|
}
|
|
2275
2210
|
],
|
|
2276
2211
|
"events": [],
|
|
2277
2212
|
"js": {
|
|
2278
2213
|
"properties": [
|
|
2279
2214
|
{
|
|
2280
|
-
"name": "
|
|
2281
|
-
"description": "
|
|
2215
|
+
"name": "dependencies",
|
|
2216
|
+
"description": "Dependencies of the Option component.",
|
|
2217
|
+
"type": "object"
|
|
2282
2218
|
},
|
|
2283
|
-
{ "name": "className", "type": "string" },
|
|
2284
2219
|
{
|
|
2285
|
-
"name": "
|
|
2286
|
-
"description": "
|
|
2287
|
-
}
|
|
2220
|
+
"name": "selected",
|
|
2221
|
+
"description": "Retrieves the 'selected' attribute status of the element."
|
|
2222
|
+
},
|
|
2223
|
+
{
|
|
2224
|
+
"name": "checkbox",
|
|
2225
|
+
"description": "Retrieves the value indicating whether the closest 'wje-select' element has a 'checkbox' attribute."
|
|
2226
|
+
},
|
|
2227
|
+
{
|
|
2228
|
+
"name": "multiple",
|
|
2229
|
+
"description": "Determines whether the closest 'wje-select' element has the 'multiple' attribute."
|
|
2230
|
+
},
|
|
2231
|
+
{ "name": "ownerSelect" },
|
|
2232
|
+
{
|
|
2233
|
+
"name": "value",
|
|
2234
|
+
"description": "Sets the value attribute of the option."
|
|
2235
|
+
},
|
|
2236
|
+
{
|
|
2237
|
+
"name": "text",
|
|
2238
|
+
"description": "Sets the text content of the option."
|
|
2239
|
+
},
|
|
2240
|
+
{ "name": "className", "type": "string" }
|
|
2241
|
+
],
|
|
2242
|
+
"events": []
|
|
2243
|
+
}
|
|
2244
|
+
},
|
|
2245
|
+
{
|
|
2246
|
+
"name": "wje-menu-label",
|
|
2247
|
+
"description": "This element represents a menu label.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the menu label.\n\n### **Slots:**\n - _default_ - The default slot for the menu label.\n\n### **CSS Properties:**\n - **--wje-menu-label-font-size** - Sets the font size of the menu label. Accepts any valid CSS length unit (e.g., `rem`, `px`, `em`). _(default: .75rem)_\n- **--wje-menu-label-weight** - Specifies the font weight of the menu label. Accepts values such as `normal`, `bold`, or numeric values (e.g., `400`, `600`). _(default: 600)_\n- **--wje-letter-spacing** - Defines the spacing between letters in the menu label. Accepts any valid CSS length unit. Default value ensures slight spacing for improved readability. _(default: .025rem)_\n- **--wje-menu-label-color** - Specifies the text color of the menu label. Accepts any valid CSS color value, including variables and named colors. _(default: var(--wje-color-contrast-6))_\n- **--wje-padding-top** - Sets the top padding of the menu label. Accepts any valid CSS length value to control spacing above the label. _(default: 0)_\n- **--wje-padding-bottom** - Sets the bottom padding of the menu label. Accepts any valid CSS length value to control spacing below the label. _(default: 0)_\n- **--wje-padding-start** - Specifies the left padding of the menu label in left-to-right (LTR) layouts. In right-to-left (RTL) layouts, this becomes the right padding. Accepts any valid CSS length value. _(default: 1.5rem)_\n- **--wje-padding-end** - Specifies the right padding of the menu label in left-to-right (LTR) layouts. In right-to-left (RTL) layouts, this becomes the left padding. Accepts any valid CSS length value. _(default: 1.5rem)_\n\n### **CSS Parts:**\n - **native** - The native part of the menu label.",
|
|
2248
|
+
"doc-url": "",
|
|
2249
|
+
"attributes": [],
|
|
2250
|
+
"slots": [
|
|
2251
|
+
{
|
|
2252
|
+
"name": "",
|
|
2253
|
+
"description": "The default slot for the menu label."
|
|
2254
|
+
}
|
|
2255
|
+
],
|
|
2256
|
+
"events": [],
|
|
2257
|
+
"js": {
|
|
2258
|
+
"properties": [
|
|
2259
|
+
{ "name": "className", "type": "string" },
|
|
2260
|
+
{ "name": "hasSubmenu" }
|
|
2288
2261
|
],
|
|
2289
2262
|
"events": []
|
|
2290
2263
|
}
|
|
@@ -2595,7 +2568,34 @@
|
|
|
2595
2568
|
}
|
|
2596
2569
|
},
|
|
2597
2570
|
{
|
|
2598
|
-
"name": "wje-
|
|
2571
|
+
"name": "wje-orgchart",
|
|
2572
|
+
"description": "Orgchart is a custom web component that extends WJElement.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the org chart.\n- **afterDraw()** - Syncs flat chart state to direct slotted children.\n- **syncAria()** - Sync ARIA attributes on host.\n\n### **CSS Parts:**\n - **** - Styles the element.\n- **native** - Styles the native element.",
|
|
2573
|
+
"doc-url": "",
|
|
2574
|
+
"attributes": [
|
|
2575
|
+
{
|
|
2576
|
+
"name": "flat",
|
|
2577
|
+
"description": "Removes the incoming connector spacing for nested charts that should visually continue on the same level.",
|
|
2578
|
+
"value": { "type": "boolean" }
|
|
2579
|
+
}
|
|
2580
|
+
],
|
|
2581
|
+
"events": [],
|
|
2582
|
+
"js": {
|
|
2583
|
+
"properties": [
|
|
2584
|
+
{
|
|
2585
|
+
"name": "flat",
|
|
2586
|
+
"description": "Gets whether the chart omits its incoming connector spacing."
|
|
2587
|
+
},
|
|
2588
|
+
{ "name": "className", "type": "string" },
|
|
2589
|
+
{
|
|
2590
|
+
"name": "syncFlatChildren",
|
|
2591
|
+
"description": "Marks direct children that are rendered inside a flat chart."
|
|
2592
|
+
}
|
|
2593
|
+
],
|
|
2594
|
+
"events": []
|
|
2595
|
+
}
|
|
2596
|
+
},
|
|
2597
|
+
{
|
|
2598
|
+
"name": "wje-progress-bar",
|
|
2599
2599
|
"description": "This element represents a progress bar.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(context: _object_, store: _object_, params: _object_): _DocumentFragment_** - Draws the component.\n- **syncAria()** - Sync ARIA attributes on host.\n- **afterDraw()** - Adds event listeners after the component is drawn.\n- **getCircleDasharray(radius: _number_): _number_** - Returns the dasharray for a circle with the given radius.\n- **getCircleDashoffset(progress: _number_, radius: _number_): _number_** - Returns the dashoffset for a circle with the given progress and radius.\n- **setCircleProgress(percent)** - Sets the progress of the circle.\n\n### **Slots:**\n - _default_ - The default slot for the progress bar.\n- **start** - The start slot of the progress bar.\n- **end** - The end slot of the progress bar.\n\n### **CSS Properties:**\n - **--wje-progress-bar-color** - 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. _(default: var(--wje-color-contrast-6))_\n- **--wje-progress-bar-text-size** - 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. _(default: .75rem)_\n- **--wje-progress-bar-text-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. _(default: var(--wje-color))_",
|
|
2600
2600
|
"doc-url": "",
|
|
2601
2601
|
"attributes": [{ "name": "progress", "value": { "type": "string" } }],
|
|
@@ -2641,6 +2641,46 @@
|
|
|
2641
2641
|
"events": []
|
|
2642
2642
|
}
|
|
2643
2643
|
},
|
|
2644
|
+
{
|
|
2645
|
+
"name": "wje-radio",
|
|
2646
|
+
"description": "This class represents a Radio button element, extending the WJElement class.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the radio button.\n- **afterDraw()** - Sets up the event listeners for the component.\n- **syncAria()** - Syncs ARIA attributes on the host element.\n- **beforeDisconnect()** - Toggles the radio button.\n\n### **Slots:**\n - _default_ - Default slot for the radio button label content.\n\n### **CSS Properties:**\n - **--wje-radio-margin-inline** - 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. _(default: 0)_\n- **--wje-radio-margin-top** - Defines the top margin for the radio button. Accepts any valid CSS length value to adjust vertical spacing above the component. _(default: 0)_\n- **--wje-radio-margin-bottom** - Sets the bottom margin for the radio button. Accepts any valid CSS length value to adjust vertical spacing below the component. // @fires wje-radio:change - Dispatched when the radio button's state changes. // @fires wje-radio:input - Dispatched when the radio button is interacted with. _(default: 0)_\n\n### **CSS Parts:**\n - **native-radio** - The native wrapper for the radio button.",
|
|
2647
|
+
"doc-url": "",
|
|
2648
|
+
"attributes": [
|
|
2649
|
+
{ "name": "checked", "value": { "type": "string" } },
|
|
2650
|
+
{ "name": "disabled", "value": { "type": "string" } },
|
|
2651
|
+
{ "name": "value", "value": { "type": "string" } }
|
|
2652
|
+
],
|
|
2653
|
+
"slots": [
|
|
2654
|
+
{
|
|
2655
|
+
"name": "",
|
|
2656
|
+
"description": "Default slot for the radio button label content."
|
|
2657
|
+
}
|
|
2658
|
+
],
|
|
2659
|
+
"events": [],
|
|
2660
|
+
"js": {
|
|
2661
|
+
"properties": [
|
|
2662
|
+
{ "name": "value" },
|
|
2663
|
+
{
|
|
2664
|
+
"name": "checked",
|
|
2665
|
+
"description": "Gets the checked property of the radio button."
|
|
2666
|
+
},
|
|
2667
|
+
{
|
|
2668
|
+
"name": "disabled",
|
|
2669
|
+
"description": "Get disabled attribute value."
|
|
2670
|
+
},
|
|
2671
|
+
{
|
|
2672
|
+
"name": "className",
|
|
2673
|
+
"description": "Sets the color of the radio button.",
|
|
2674
|
+
"type": "string"
|
|
2675
|
+
},
|
|
2676
|
+
{
|
|
2677
|
+
"name": "inputEvent",
|
|
2678
|
+
"description": "Called when an attribute changes."
|
|
2679
|
+
}
|
|
2680
|
+
],
|
|
2681
|
+
"events": []
|
|
2682
|
+
}
|
|
2683
|
+
},
|
|
2644
2684
|
{
|
|
2645
2685
|
"name": "wje-qr-code",
|
|
2646
2686
|
"description": "This element represents a QR code generator.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the QR code component.\n- **afterDraw()** - Called after the component is drawn to generate the QR code.\n- **getAttributeFromAliases(aliases: _string[]_): _string|null_** - Returns first defined attribute value from alias list.\n- **setAliasedAttribute(optionName: _string_, value: _string|number|null|undefined_)** - Writes value to the canonical attribute and clears alternate aliases.\n\n### **Slots:**\n - **top** - The slot for the top content of the QR code.\n- **bottom** - The slot for the bottom content of the QR code.\n\n### **CSS Parts:**\n - **native** - The native part of the QR code.",
|
|
@@ -2708,46 +2748,6 @@
|
|
|
2708
2748
|
"events": []
|
|
2709
2749
|
}
|
|
2710
2750
|
},
|
|
2711
|
-
{
|
|
2712
|
-
"name": "wje-radio",
|
|
2713
|
-
"description": "This class represents a Radio button element, extending the WJElement class.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the radio button.\n- **afterDraw()** - Sets up the event listeners for the component.\n- **syncAria()** - Syncs ARIA attributes on the host element.\n- **beforeDisconnect()** - Toggles the radio button.\n\n### **Slots:**\n - _default_ - Default slot for the radio button label content.\n\n### **CSS Properties:**\n - **--wje-radio-margin-inline** - 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. _(default: 0)_\n- **--wje-radio-margin-top** - Defines the top margin for the radio button. Accepts any valid CSS length value to adjust vertical spacing above the component. _(default: 0)_\n- **--wje-radio-margin-bottom** - Sets the bottom margin for the radio button. Accepts any valid CSS length value to adjust vertical spacing below the component. // @fires wje-radio:change - Dispatched when the radio button's state changes. // @fires wje-radio:input - Dispatched when the radio button is interacted with. _(default: 0)_\n\n### **CSS Parts:**\n - **native-radio** - The native wrapper for the radio button.",
|
|
2714
|
-
"doc-url": "",
|
|
2715
|
-
"attributes": [
|
|
2716
|
-
{ "name": "checked", "value": { "type": "string" } },
|
|
2717
|
-
{ "name": "disabled", "value": { "type": "string" } },
|
|
2718
|
-
{ "name": "value", "value": { "type": "string" } }
|
|
2719
|
-
],
|
|
2720
|
-
"slots": [
|
|
2721
|
-
{
|
|
2722
|
-
"name": "",
|
|
2723
|
-
"description": "Default slot for the radio button label content."
|
|
2724
|
-
}
|
|
2725
|
-
],
|
|
2726
|
-
"events": [],
|
|
2727
|
-
"js": {
|
|
2728
|
-
"properties": [
|
|
2729
|
-
{ "name": "value" },
|
|
2730
|
-
{
|
|
2731
|
-
"name": "checked",
|
|
2732
|
-
"description": "Gets the checked property of the radio button."
|
|
2733
|
-
},
|
|
2734
|
-
{
|
|
2735
|
-
"name": "disabled",
|
|
2736
|
-
"description": "Get disabled attribute value."
|
|
2737
|
-
},
|
|
2738
|
-
{
|
|
2739
|
-
"name": "className",
|
|
2740
|
-
"description": "Sets the color of the radio button.",
|
|
2741
|
-
"type": "string"
|
|
2742
|
-
},
|
|
2743
|
-
{
|
|
2744
|
-
"name": "inputEvent",
|
|
2745
|
-
"description": "Called when an attribute changes."
|
|
2746
|
-
}
|
|
2747
|
-
],
|
|
2748
|
-
"events": []
|
|
2749
|
-
}
|
|
2750
|
-
},
|
|
2751
2751
|
{
|
|
2752
2752
|
"name": "wje-radio-group",
|
|
2753
2753
|
"description": "This element represents a group of radio buttons.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the radio group.\n- **afterDraw()** - Adds event listeners after the component is drawn. Handles the selection of radio buttons.\n- **syncAria()** - Syncs ARIA attributes on the host element.\n- **getRadioByValue(value: _string_): _Radio_** - Returns the radio button with the given value.\n- **removeCheck()** - Removes the check from all radio buttons.\n- **checkRadio(radio)** - Sets the given radio button to checked.\n- **getAllElements(): _HTMLElement[]_** - Retrieves all direct child elements of the current element.\n\n### **Slots:**\n - _default_ - The default slot for the radio group.",
|
|
@@ -2787,36 +2787,6 @@
|
|
|
2787
2787
|
"events": []
|
|
2788
2788
|
}
|
|
2789
2789
|
},
|
|
2790
|
-
{
|
|
2791
|
-
"name": "wje-reorder",
|
|
2792
|
-
"description": "This element represents a reorder.\n---\n\n\n### **Events:**\n - **wje-reorder:change**\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component after it is connected to the DOM.\n- **afterDraw()** - Adds event listeners after the component is drawn.\n- **syncAria()** - Sync ARIA attributes on host.\n- **attachEventListeners(element)** - Attaches event listeners to the element.\n- **mouseDown(e: _object_)** - Handles the mouse down event.\n- **touchStart(e)** - Handles the touch start event.\n- **startDragging(clientX: _number_, clientY: _number_, target: _HTMLElement_)** - Initializes the dragging process for a reorderable item.\n- **mouseMove(e)** - Handles the mouse move event.\n- **touchMove(e: _TouchEvent_)** - Handles the `touchmove` event and updates the position of the dragged element.\n- **moveElement(pageX: _number_, pageY: _number_)** - Updates the position of the dragged element and handles reordering logic based on the mouse position.\n- **mouseUp()** - Handles the mouse up event.\n- **touchEnd()** - Handles the touch end event.\n- **stopDragging()** - Stops dragging the element.\n- **dragStart(e: _DragEvent_)** - Prevents the default behavior of the `dragstart` event.\n- **createClone()** - Creates a clone of the element.\n- **isMovingDown(droppedElement): _boolean_** - Checks if the dragged element is moving down.\n- **dispatchChange(from: _number_, to: _number_, order: _Array<number>_, orderElements)** - Dispatches a custom event to signal that a reordering operation has occurred.\n\n### **Slots:**\n - _default_ - The default slot for the reorder. // @fires wje-reorder:change - Event fired when the reorder is changed.\n\n### **CSS Parts:**\n - **native** - The native part of the reorder.",
|
|
2793
|
-
"doc-url": "",
|
|
2794
|
-
"attributes": [],
|
|
2795
|
-
"slots": [
|
|
2796
|
-
{
|
|
2797
|
-
"name": "",
|
|
2798
|
-
"description": "The default slot for the reorder. // @fires wje-reorder:change - Event fired when the reorder is changed."
|
|
2799
|
-
}
|
|
2800
|
-
],
|
|
2801
|
-
"events": [{ "name": "wje-reorder:change", "type": "CustomEvent" }],
|
|
2802
|
-
"js": {
|
|
2803
|
-
"properties": [
|
|
2804
|
-
{
|
|
2805
|
-
"name": "className",
|
|
2806
|
-
"description": "The class name for the component.",
|
|
2807
|
-
"type": "string"
|
|
2808
|
-
},
|
|
2809
|
-
{ "name": "dragEl", "type": "null" },
|
|
2810
|
-
{ "name": "items", "type": "array" },
|
|
2811
|
-
{ "name": "originalIndex", "type": "null" },
|
|
2812
|
-
{ "name": "isDragging", "type": "boolean" },
|
|
2813
|
-
{ "name": "offsetX", "type": "number" },
|
|
2814
|
-
{ "name": "offsetY", "type": "number" },
|
|
2815
|
-
{ "name": "cloneEl", "type": "null" }
|
|
2816
|
-
],
|
|
2817
|
-
"events": [{ "name": "wje-reorder:change", "type": "CustomEvent" }]
|
|
2818
|
-
}
|
|
2819
|
-
},
|
|
2820
2790
|
{
|
|
2821
2791
|
"name": "wje-rate",
|
|
2822
2792
|
"description": "This element represents a rating component.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the rating component.\n- **afterDraw()** - Adds event listeners after the component is drawn.\n- **createIcons(i: _number_): _Element_** - Creates the icons for the rating component.\n- **changeRate()** - Changes the rate of the rating component.\n- **syncAria()** - Sync ARIA attributes on host.\n- **getIcons(index: _number_): _Element_** - Returns the icons for the rating component.\n- **getValueFromXPosition(coordinate: _number_): _number_** - Returns the value from the x position.\n- **roundToPrecision(numberToRound: _number_, precision: _number_): _number_** - Rounds a given number to the nearest specified precision.\n\n### **CSS Properties:**\n - **--wje-rate-gap** - 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. _(default: .25rem)_\n- **--wje-rate-color** - Specifies the default color of the rating items. Accepts any valid CSS color value, including named colors, hex values, RGB, or CSS variables. _(default: var(--wje-color-contrast-11))_\n- **--wje-rate-selected-color** - Sets the color for selected or highlighted rating items. This property helps visually distinguish selected ratings. Accepts any valid CSS color value. _(default: var(--wje-color-danger-9))_\n\n### **CSS Parts:**\n - **native** - The native part of the rating component.",
|
|
@@ -2898,6 +2868,65 @@
|
|
|
2898
2868
|
"events": []
|
|
2899
2869
|
}
|
|
2900
2870
|
},
|
|
2871
|
+
{
|
|
2872
|
+
"name": "wje-relative-time",
|
|
2873
|
+
"description": "This element represents a relative time component.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the relative time.\n- **getRelativeTimeString(lang)** - Returns the relative time string for the given date.\n- **isISODate(str: _string_): _boolean_** - Checks if the given string is an ISO date.\n\n### **CSS Parts:**\n - **native** - The native part of the relative time component.",
|
|
2874
|
+
"doc-url": "",
|
|
2875
|
+
"attributes": [
|
|
2876
|
+
{ "name": "date", "value": { "type": "string" } },
|
|
2877
|
+
{ "name": "lang", "value": { "type": "string" } }
|
|
2878
|
+
],
|
|
2879
|
+
"events": [],
|
|
2880
|
+
"js": {
|
|
2881
|
+
"properties": [
|
|
2882
|
+
{
|
|
2883
|
+
"name": "date",
|
|
2884
|
+
"description": "Gets the date of the relative time component."
|
|
2885
|
+
},
|
|
2886
|
+
{
|
|
2887
|
+
"name": "objectDate",
|
|
2888
|
+
"description": "Gets the object date of the relative time component."
|
|
2889
|
+
},
|
|
2890
|
+
{
|
|
2891
|
+
"name": "className",
|
|
2892
|
+
"description": "Sets the lang of the relative time component.",
|
|
2893
|
+
"type": "string"
|
|
2894
|
+
},
|
|
2895
|
+
{ "name": "localizer" }
|
|
2896
|
+
],
|
|
2897
|
+
"events": []
|
|
2898
|
+
}
|
|
2899
|
+
},
|
|
2900
|
+
{
|
|
2901
|
+
"name": "wje-reorder",
|
|
2902
|
+
"description": "This element represents a reorder.\n---\n\n\n### **Events:**\n - **wje-reorder:change**\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component after it is connected to the DOM.\n- **afterDraw()** - Adds event listeners after the component is drawn.\n- **syncAria()** - Sync ARIA attributes on host.\n- **attachEventListeners(element)** - Attaches event listeners to the element.\n- **mouseDown(e: _object_)** - Handles the mouse down event.\n- **touchStart(e)** - Handles the touch start event.\n- **startDragging(clientX: _number_, clientY: _number_, target: _HTMLElement_)** - Initializes the dragging process for a reorderable item.\n- **mouseMove(e)** - Handles the mouse move event.\n- **touchMove(e: _TouchEvent_)** - Handles the `touchmove` event and updates the position of the dragged element.\n- **moveElement(pageX: _number_, pageY: _number_)** - Updates the position of the dragged element and handles reordering logic based on the mouse position.\n- **mouseUp()** - Handles the mouse up event.\n- **touchEnd()** - Handles the touch end event.\n- **stopDragging()** - Stops dragging the element.\n- **dragStart(e: _DragEvent_)** - Prevents the default behavior of the `dragstart` event.\n- **createClone()** - Creates a clone of the element.\n- **isMovingDown(droppedElement): _boolean_** - Checks if the dragged element is moving down.\n- **dispatchChange(from: _number_, to: _number_, order: _Array<number>_, orderElements)** - Dispatches a custom event to signal that a reordering operation has occurred.\n\n### **Slots:**\n - _default_ - The default slot for the reorder. // @fires wje-reorder:change - Event fired when the reorder is changed.\n\n### **CSS Parts:**\n - **native** - The native part of the reorder.",
|
|
2903
|
+
"doc-url": "",
|
|
2904
|
+
"attributes": [],
|
|
2905
|
+
"slots": [
|
|
2906
|
+
{
|
|
2907
|
+
"name": "",
|
|
2908
|
+
"description": "The default slot for the reorder. // @fires wje-reorder:change - Event fired when the reorder is changed."
|
|
2909
|
+
}
|
|
2910
|
+
],
|
|
2911
|
+
"events": [{ "name": "wje-reorder:change", "type": "CustomEvent" }],
|
|
2912
|
+
"js": {
|
|
2913
|
+
"properties": [
|
|
2914
|
+
{
|
|
2915
|
+
"name": "className",
|
|
2916
|
+
"description": "The class name for the component.",
|
|
2917
|
+
"type": "string"
|
|
2918
|
+
},
|
|
2919
|
+
{ "name": "dragEl", "type": "null" },
|
|
2920
|
+
{ "name": "items", "type": "array" },
|
|
2921
|
+
{ "name": "originalIndex", "type": "null" },
|
|
2922
|
+
{ "name": "isDragging", "type": "boolean" },
|
|
2923
|
+
{ "name": "offsetX", "type": "number" },
|
|
2924
|
+
{ "name": "offsetY", "type": "number" },
|
|
2925
|
+
{ "name": "cloneEl", "type": "null" }
|
|
2926
|
+
],
|
|
2927
|
+
"events": [{ "name": "wje-reorder:change", "type": "CustomEvent" }]
|
|
2928
|
+
}
|
|
2929
|
+
},
|
|
2901
2930
|
{
|
|
2902
2931
|
"name": "wje-reorder-dropzone",
|
|
2903
2932
|
"description": "This element represents a reorder dropzone.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Returns the list of observed attributes.\n\n### **Slots:**\n - _default_ - The default slot for the reorder dropzone.\n\n### **CSS Parts:**\n - **native** - The native part of the reorder dropzone.",
|
|
@@ -2945,45 +2974,42 @@
|
|
|
2945
2974
|
}
|
|
2946
2975
|
},
|
|
2947
2976
|
{
|
|
2948
|
-
"name": "wje-
|
|
2949
|
-
"description": "This element represents a
|
|
2950
|
-
"doc-url": "",
|
|
2951
|
-
"attributes": [],
|
|
2952
|
-
"events": [],
|
|
2953
|
-
"js": {
|
|
2954
|
-
"properties": [{ "name": "className", "type": "string" }],
|
|
2955
|
-
"events": []
|
|
2956
|
-
}
|
|
2957
|
-
},
|
|
2958
|
-
{
|
|
2959
|
-
"name": "wje-relative-time",
|
|
2960
|
-
"description": "This element represents a relative time component.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the relative time.\n- **getRelativeTimeString(lang)** - Returns the relative time string for the given date.\n- **isISODate(str: _string_): _boolean_** - Checks if the given string is an ISO date.\n\n### **CSS Parts:**\n - **native** - The native part of the relative time component.",
|
|
2977
|
+
"name": "wje-reorder-handle",
|
|
2978
|
+
"description": "This element represents a reorder handle.\n---\n\n\n### **Methods:**\n - **draw(): _DocumentFragment_** - Draws the component.\n- **afterDraw()** - Draws the component after it is connected to the DOM.\n- **syncAria()** - Sync ARIA attributes on host.\n- **startDrag(e: _DragEvent_)** - Handles the attribute changes.\n- **startTouchDrag(e: _TouchEvent_)** - Handles the touch start event.\n- **startDragAction(clientX: _number_, clientY: _number_)** - Initiates the drag-and-drop action for a sortable element.\n- **getDraggable(): _Element|null_** - Retrieves the closest draggable element based on attribute conditions.\nIf the element has a \"parent\" attribute, the method attempts to find the closest ancestor\nmatching the CSS selector specified in the attribute. If no such ancestor exists,\nthe method defaults to returning the immediate parent element.\n- **getDropzone(element: _HTMLElement_): _HTMLElement|null_** - Retrieves the nearest dropzone element based on the element's attributes or its parent element.\n- **getClosestDropzone(clientX: _number_, clientY: _number_): _HTMLElement|null_** - Retrieves the closest dropzone element at the specified coordinates.\n- **getElementsFromPointAll(x: _number_, y: _number_, root: _Document|ShadowRoot_, visited: _Set<Node>_): _HTMLElement[]_** - Retrieves all elements at the specified coordinates, including those within shadow DOMs.\n- **reIndexItems(container: _HTMLElement_): _void_** - Re-indexes child elements of the given container by setting their dataset index.\n\n### **Slots:**\n - _default_ - The default slot for the reorder handle.\n\n### **CSS Parts:**\n - **native** - The native part of the reorder handle.",
|
|
2961
2979
|
"doc-url": "",
|
|
2962
2980
|
"attributes": [
|
|
2963
|
-
{ "name": "
|
|
2964
|
-
{ "name": "
|
|
2981
|
+
{ "name": "dropzone", "value": { "type": "string" } },
|
|
2982
|
+
{ "name": "parent", "value": { "type": "string" } }
|
|
2983
|
+
],
|
|
2984
|
+
"slots": [
|
|
2985
|
+
{
|
|
2986
|
+
"name": "",
|
|
2987
|
+
"description": "The default slot for the reorder handle."
|
|
2988
|
+
}
|
|
2965
2989
|
],
|
|
2966
2990
|
"events": [],
|
|
2967
2991
|
"js": {
|
|
2968
2992
|
"properties": [
|
|
2969
|
-
{
|
|
2970
|
-
"name": "date",
|
|
2971
|
-
"description": "Gets the date of the relative time component."
|
|
2972
|
-
},
|
|
2973
|
-
{
|
|
2974
|
-
"name": "objectDate",
|
|
2975
|
-
"description": "Gets the object date of the relative time component."
|
|
2976
|
-
},
|
|
2977
2993
|
{
|
|
2978
2994
|
"name": "className",
|
|
2979
|
-
"description": "
|
|
2995
|
+
"description": "The class name for the component.",
|
|
2980
2996
|
"type": "string"
|
|
2981
|
-
}
|
|
2982
|
-
{ "name": "localizer" }
|
|
2997
|
+
}
|
|
2983
2998
|
],
|
|
2984
2999
|
"events": []
|
|
2985
3000
|
}
|
|
2986
3001
|
},
|
|
3002
|
+
{
|
|
3003
|
+
"name": "wje-route",
|
|
3004
|
+
"description": "This element represents a route in a routing system.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the route.",
|
|
3005
|
+
"doc-url": "",
|
|
3006
|
+
"attributes": [],
|
|
3007
|
+
"events": [],
|
|
3008
|
+
"js": {
|
|
3009
|
+
"properties": [{ "name": "className", "type": "string" }],
|
|
3010
|
+
"events": []
|
|
3011
|
+
}
|
|
3012
|
+
},
|
|
2987
3013
|
{
|
|
2988
3014
|
"name": "wje-router",
|
|
2989
3015
|
"description": "This element represents a router in a routing system.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **beforeDraw()** - Sets up the router after the component is drawn.\n- **parseElement(element: _Element_): _object_** - Parses an element and returns an object representation.\n- **beforeDisconnect()** - Cleans up before the component is disconnected.",
|
|
@@ -3008,28 +3034,19 @@
|
|
|
3008
3034
|
}
|
|
3009
3035
|
},
|
|
3010
3036
|
{
|
|
3011
|
-
"name": "wje-
|
|
3012
|
-
"description": "This element represents a
|
|
3037
|
+
"name": "wje-router-link",
|
|
3038
|
+
"description": "This element represents a router link in a routing system.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the router link.\n- **beforeDisconnect()** - Cleans up before the component is disconnected.\n\n### **Slots:**\n - _default_ - The default slot for the router link.",
|
|
3013
3039
|
"doc-url": "",
|
|
3014
|
-
"attributes": [
|
|
3015
|
-
{ "name": "dropzone", "value": { "type": "string" } },
|
|
3016
|
-
{ "name": "parent", "value": { "type": "string" } }
|
|
3017
|
-
],
|
|
3040
|
+
"attributes": [],
|
|
3018
3041
|
"slots": [
|
|
3019
3042
|
{
|
|
3020
3043
|
"name": "",
|
|
3021
|
-
"description": "The default slot for the
|
|
3044
|
+
"description": "The default slot for the router link."
|
|
3022
3045
|
}
|
|
3023
3046
|
],
|
|
3024
3047
|
"events": [],
|
|
3025
3048
|
"js": {
|
|
3026
|
-
"properties": [
|
|
3027
|
-
{
|
|
3028
|
-
"name": "className",
|
|
3029
|
-
"description": "The class name for the component.",
|
|
3030
|
-
"type": "string"
|
|
3031
|
-
}
|
|
3032
|
-
],
|
|
3049
|
+
"properties": [{ "name": "className", "type": "string" }],
|
|
3033
3050
|
"events": []
|
|
3034
3051
|
}
|
|
3035
3052
|
},
|
|
@@ -3071,19 +3088,108 @@
|
|
|
3071
3088
|
}
|
|
3072
3089
|
},
|
|
3073
3090
|
{
|
|
3074
|
-
"name": "wje-
|
|
3075
|
-
"description": "
|
|
3091
|
+
"name": "wje-select",
|
|
3092
|
+
"description": "\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the select.\n- **afterDraw(): _void_** - Executes post-render logic for the custom element.\nThis includes validation, event listener registration, managing custom attributes, and\nhandling options initialization for the component.\n- **getAllOptions(): _NodeList_** - Returns all the options as HTML.\n- **selectionChanged(options: _Array|null_, length: _number_): _void_** - Handles changes in the selection for a component, updating internal values, input fields,\nand visual presentation (like chips or slots) as per the given selection options.\n- **selections(silence: _boolean_): _void_** - Handles the logic for updating selections based on the current selected options,\nupdating chips content, and dispatching change events if necessary.\n- **counter(): _void_** - Updates the counter element to reflect the current state of selected values relative to the maximum allowed options.\nIf the maximum options are selected, the counter element is removed. If it does not already exist and needs to be displayed, it is created.\n- **getChip(option: _object_): _HTMLElement_** - Creates and returns a chip element with specified properties and a label.\n- **htmlOption(item: _object_, map: _@param {string} [map.value] The property of the item to use for the option's value.\n\t * @param {string} [map.text] The property of the item to use for the option's text.\n\t * _): _HTMLElement_** - Generates an HTML option element based on the provided item and mapping.\n- **htmlSelectedItem(item: _any_): _any_** - Returns the provided item.\n- **addOption(optionData: _object_, silent: _boolean_, map: _@param {string} [map.value] The key in optionData that represents the value of the option.\n\t * @param {string} [map.text] The key in optionData that represents the text of the option.\n\t * _): _void_** - Adds a new option to the component.\n- **addOptions(optionsData: _Array | object_, silent: _boolean_, map: _@param {string} [map.value] The property in the optionsData that represents the value of the option.\n\t * @param {string} [map.text] The property in the optionsData that represents the text of the option.\n\t * _): _void_** - Adds one or more options to a collection. If the input is an array, it adds each option within the array.\nOtherwise, it adds a single option.\n- **selectOption(value: _string_, silent: _boolean_): _void_** - Selects an option from the available options within the component.\n- **selectOptions(values: _any|any[]_, silent: _boolean_): _void_** - Selects multiple options based on the provided values. If a single value is provided, it selects that option.\nIf an array of values is provided, it iterates through the array and selects each option.\n- **optionCheckSlot(option: _HTMLElement_): _void_** - Clones and appends an icon with the \"check\" slot to the specified option element.\nIf the option already contains a custom element with slot=\"check\" (e.g. <wje-status slot=\"check\">),\nit is left untouched and no template icon is added.\n- **clearSelections(): _void_** - Clears all selected options and resets selections.\nThe method ensures that all options are deselected, updates the internal state, validates the selections,\npropagates the validation status, and indicates invalid state if necessary.\n- **syncAria()** - Syncs ARIA attributes on the host element.",
|
|
3076
3093
|
"doc-url": "",
|
|
3077
|
-
"attributes": [
|
|
3078
|
-
|
|
3079
|
-
{
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
}
|
|
3094
|
+
"attributes": [
|
|
3095
|
+
{ "name": "active", "value": { "type": "string" } },
|
|
3096
|
+
{ "name": "disabled", "value": { "type": "string" } },
|
|
3097
|
+
{ "name": "readonly", "value": { "type": "string" } },
|
|
3098
|
+
{ "name": "portaled", "value": { "type": "string" } }
|
|
3083
3099
|
],
|
|
3084
3100
|
"events": [],
|
|
3085
3101
|
"js": {
|
|
3086
|
-
"properties": [
|
|
3102
|
+
"properties": [
|
|
3103
|
+
{
|
|
3104
|
+
"name": "dependencies",
|
|
3105
|
+
"description": "An object representing component dependencies with their respective classes.\nEach property in the object maps a custom component name (as a string key)\nto its corresponding class or constructor.",
|
|
3106
|
+
"type": "object"
|
|
3107
|
+
},
|
|
3108
|
+
{
|
|
3109
|
+
"name": "value",
|
|
3110
|
+
"description": "Retrieves the current value."
|
|
3111
|
+
},
|
|
3112
|
+
{
|
|
3113
|
+
"name": "maxOptions",
|
|
3114
|
+
"description": "Retrieves the maximum number of options allowed.\nParses the value of the 'max-options' attribute from the element and converts it to a number.\nIf the attribute is not present or cannot be converted to a valid number, defaults to 1."
|
|
3115
|
+
},
|
|
3116
|
+
{ "name": "defaultValue" },
|
|
3117
|
+
{
|
|
3118
|
+
"name": "portaled",
|
|
3119
|
+
"description": "Getter for the `portaled` attribute value."
|
|
3120
|
+
},
|
|
3121
|
+
{
|
|
3122
|
+
"name": "isPortaled",
|
|
3123
|
+
"description": "Checks whether popup content should be portaled."
|
|
3124
|
+
},
|
|
3125
|
+
{
|
|
3126
|
+
"name": "trigger",
|
|
3127
|
+
"description": "Returns the trigger value."
|
|
3128
|
+
},
|
|
3129
|
+
{
|
|
3130
|
+
"name": "disabled",
|
|
3131
|
+
"description": "Retrieves the current state of the 'disabled' attribute."
|
|
3132
|
+
},
|
|
3133
|
+
{
|
|
3134
|
+
"name": "readonly",
|
|
3135
|
+
"description": "Checks if the 'readonly' attribute is present on the element."
|
|
3136
|
+
},
|
|
3137
|
+
{
|
|
3138
|
+
"name": "maxHeight",
|
|
3139
|
+
"description": "Retrieves the maximum height value, which is determined by the 'max-height' attribute.\nIf the attribute is not set, a default value of '200px' is returned."
|
|
3140
|
+
},
|
|
3141
|
+
{
|
|
3142
|
+
"name": "offset",
|
|
3143
|
+
"description": "Gets the value of the offset attribute of the current element.\nIf the offset attribute is not present, returns a default value of '0'."
|
|
3144
|
+
},
|
|
3145
|
+
{
|
|
3146
|
+
"name": "selectedOptions",
|
|
3147
|
+
"description": "Retrieves the selected options."
|
|
3148
|
+
},
|
|
3149
|
+
{
|
|
3150
|
+
"name": "lazy",
|
|
3151
|
+
"description": "Getter for the 'lazy' property."
|
|
3152
|
+
},
|
|
3153
|
+
{
|
|
3154
|
+
"name": "noSize",
|
|
3155
|
+
"description": "Gets the value of the 'no-size' attribute for the element."
|
|
3156
|
+
},
|
|
3157
|
+
{
|
|
3158
|
+
"name": "customErrorDisplay",
|
|
3159
|
+
"description": "Getter for the customErrorDisplay attribute."
|
|
3160
|
+
},
|
|
3161
|
+
{
|
|
3162
|
+
"name": "options",
|
|
3163
|
+
"description": "Retrieves the complete list of options available for the component.\nThe options are determined by combining elements from various sources, including loaded options, added options, and HTML-sourced options.\nIf a `wje-options` element is present within the component, its loaded options are included in the merged list.\nIn the absence of a `wje-options` element, duplicates among the added and HTML options are removed, retaining their order."
|
|
3164
|
+
},
|
|
3165
|
+
{ "name": "className", "type": "string" },
|
|
3166
|
+
{
|
|
3167
|
+
"name": "optionChange",
|
|
3168
|
+
"description": "Handles the change event for an option element within a select-like component.\nThis method processes user interactions with options and updates the state of the component,\nincluding selection management, validation, and UI updates. Behavior differs based on\nwhether the component supports multiple selections.\nKey functionality:\n- Prevents the default behavior, event propagation, and immediate propagation of the event.\n- Retrieves all options within the component.\n- If the component doesn't support multiple selection:\n - Marks only the clicked option as selected and deselects others.\n - Hides the option popup.\n- If the component supports multiple selection:\n - Processes the clicked option without deselecting others.\n- Updates the selected options and triggers validation.\n- Marks the form state as non-pristine.\n- Propagates the validation state to other relevant parts of the component or system."
|
|
3169
|
+
},
|
|
3170
|
+
{
|
|
3171
|
+
"name": "processClickedOption",
|
|
3172
|
+
"description": "Handles the logic for processing the selection state of a clicked option element."
|
|
3173
|
+
},
|
|
3174
|
+
{
|
|
3175
|
+
"name": "removeChip",
|
|
3176
|
+
"description": "Handles the removal of a chip element from the DOM and updates the related state."
|
|
3177
|
+
},
|
|
3178
|
+
{ "name": "localizer" },
|
|
3179
|
+
{ "name": "native", "type": "HTMLElement|null" },
|
|
3180
|
+
{ "name": "popup", "type": "HTMLElement|null" },
|
|
3181
|
+
{ "name": "labelElement", "type": "HTMLElement|null" },
|
|
3182
|
+
{ "name": "slotStart", "type": "HTMLElement|null" },
|
|
3183
|
+
{ "name": "slotEnd", "type": "HTMLElement|null" },
|
|
3184
|
+
{ "name": "input", "type": "HTMLElement|null" },
|
|
3185
|
+
{ "name": "displayText", "type": "HTMLElement|null" },
|
|
3186
|
+
{ "name": "chips", "type": "HTMLElement|null" },
|
|
3187
|
+
{ "name": "clear", "type": "HTMLElement|null" },
|
|
3188
|
+
{ "name": "list", "type": "HTMLElement|null" },
|
|
3189
|
+
{ "name": "emptyState", "type": "HTMLElement|null" },
|
|
3190
|
+
{ "name": "_value", "type": "array" },
|
|
3191
|
+
{ "name": "_selectedOptions", "type": "array" }
|
|
3192
|
+
],
|
|
3087
3193
|
"events": []
|
|
3088
3194
|
}
|
|
3089
3195
|
},
|
|
@@ -3358,126 +3464,20 @@
|
|
|
3358
3464
|
},
|
|
3359
3465
|
{
|
|
3360
3466
|
"name": "handleSheetTouchEnd",
|
|
3361
|
-
"description": "Ends mobile bottom sheet resizing from a touch event."
|
|
3362
|
-
},
|
|
3363
|
-
{
|
|
3364
|
-
"name": "triggerEvent",
|
|
3365
|
-
"description": "Triggers the event based on the target element.\nIf the target element is different from the last caller, it refreshes the children by calling the `open` method.\nIf the target element is the same as the last caller, it toggles the state by calling the `toggle` method."
|
|
3366
|
-
},
|
|
3367
|
-
{ "name": "_isOpen", "type": "boolean" },
|
|
3368
|
-
{ "name": "_lastCaller", "type": "null" },
|
|
3369
|
-
{ "name": "_sheetDrag", "type": "null" },
|
|
3370
|
-
{ "name": "_sheetIgnoreDismissUntil", "type": "number" },
|
|
3371
|
-
{ "name": "_sheetBackdropGesture", "type": "null" },
|
|
3372
|
-
{ "name": "_sheetBackdropHandledUntil", "type": "number" },
|
|
3373
|
-
{ "name": "_bottomSheetScopeFrame", "type": "null" },
|
|
3374
|
-
{ "name": "_resizeObserver" }
|
|
3375
|
-
],
|
|
3376
|
-
"events": []
|
|
3377
|
-
}
|
|
3378
|
-
},
|
|
3379
|
-
{
|
|
3380
|
-
"name": "wje-select",
|
|
3381
|
-
"description": "\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the select.\n- **afterDraw(): _void_** - Executes post-render logic for the custom element.\nThis includes validation, event listener registration, managing custom attributes, and\nhandling options initialization for the component.\n- **getAllOptions(): _NodeList_** - Returns all the options as HTML.\n- **selectionChanged(options: _Array|null_, length: _number_): _void_** - Handles changes in the selection for a component, updating internal values, input fields,\nand visual presentation (like chips or slots) as per the given selection options.\n- **selections(silence: _boolean_): _void_** - Handles the logic for updating selections based on the current selected options,\nupdating chips content, and dispatching change events if necessary.\n- **counter(): _void_** - Updates the counter element to reflect the current state of selected values relative to the maximum allowed options.\nIf the maximum options are selected, the counter element is removed. If it does not already exist and needs to be displayed, it is created.\n- **getChip(option: _object_): _HTMLElement_** - Creates and returns a chip element with specified properties and a label.\n- **htmlOption(item: _object_, map: _@param {string} [map.value] The property of the item to use for the option's value.\n\t * @param {string} [map.text] The property of the item to use for the option's text.\n\t * _): _HTMLElement_** - Generates an HTML option element based on the provided item and mapping.\n- **htmlSelectedItem(item: _any_): _any_** - Returns the provided item.\n- **addOption(optionData: _object_, silent: _boolean_, map: _@param {string} [map.value] The key in optionData that represents the value of the option.\n\t * @param {string} [map.text] The key in optionData that represents the text of the option.\n\t * _): _void_** - Adds a new option to the component.\n- **addOptions(optionsData: _Array | object_, silent: _boolean_, map: _@param {string} [map.value] The property in the optionsData that represents the value of the option.\n\t * @param {string} [map.text] The property in the optionsData that represents the text of the option.\n\t * _): _void_** - Adds one or more options to a collection. If the input is an array, it adds each option within the array.\nOtherwise, it adds a single option.\n- **selectOption(value: _string_, silent: _boolean_): _void_** - Selects an option from the available options within the component.\n- **selectOptions(values: _any|any[]_, silent: _boolean_): _void_** - Selects multiple options based on the provided values. If a single value is provided, it selects that option.\nIf an array of values is provided, it iterates through the array and selects each option.\n- **optionCheckSlot(option: _HTMLElement_): _void_** - Clones and appends an icon with the \"check\" slot to the specified option element.\nIf the option already contains a custom element with slot=\"check\" (e.g. <wje-status slot=\"check\">),\nit is left untouched and no template icon is added.\n- **clearSelections(): _void_** - Clears all selected options and resets selections.\nThe method ensures that all options are deselected, updates the internal state, validates the selections,\npropagates the validation status, and indicates invalid state if necessary.\n- **syncAria()** - Syncs ARIA attributes on the host element.",
|
|
3382
|
-
"doc-url": "",
|
|
3383
|
-
"attributes": [
|
|
3384
|
-
{ "name": "active", "value": { "type": "string" } },
|
|
3385
|
-
{ "name": "disabled", "value": { "type": "string" } },
|
|
3386
|
-
{ "name": "readonly", "value": { "type": "string" } },
|
|
3387
|
-
{ "name": "portaled", "value": { "type": "string" } }
|
|
3388
|
-
],
|
|
3389
|
-
"events": [],
|
|
3390
|
-
"js": {
|
|
3391
|
-
"properties": [
|
|
3392
|
-
{
|
|
3393
|
-
"name": "dependencies",
|
|
3394
|
-
"description": "An object representing component dependencies with their respective classes.\nEach property in the object maps a custom component name (as a string key)\nto its corresponding class or constructor.",
|
|
3395
|
-
"type": "object"
|
|
3396
|
-
},
|
|
3397
|
-
{
|
|
3398
|
-
"name": "value",
|
|
3399
|
-
"description": "Retrieves the current value."
|
|
3400
|
-
},
|
|
3401
|
-
{
|
|
3402
|
-
"name": "maxOptions",
|
|
3403
|
-
"description": "Retrieves the maximum number of options allowed.\nParses the value of the 'max-options' attribute from the element and converts it to a number.\nIf the attribute is not present or cannot be converted to a valid number, defaults to 1."
|
|
3404
|
-
},
|
|
3405
|
-
{ "name": "defaultValue" },
|
|
3406
|
-
{
|
|
3407
|
-
"name": "portaled",
|
|
3408
|
-
"description": "Getter for the `portaled` attribute value."
|
|
3409
|
-
},
|
|
3410
|
-
{
|
|
3411
|
-
"name": "isPortaled",
|
|
3412
|
-
"description": "Checks whether popup content should be portaled."
|
|
3413
|
-
},
|
|
3414
|
-
{
|
|
3415
|
-
"name": "trigger",
|
|
3416
|
-
"description": "Returns the trigger value."
|
|
3417
|
-
},
|
|
3418
|
-
{
|
|
3419
|
-
"name": "disabled",
|
|
3420
|
-
"description": "Retrieves the current state of the 'disabled' attribute."
|
|
3421
|
-
},
|
|
3422
|
-
{
|
|
3423
|
-
"name": "readonly",
|
|
3424
|
-
"description": "Checks if the 'readonly' attribute is present on the element."
|
|
3425
|
-
},
|
|
3426
|
-
{
|
|
3427
|
-
"name": "maxHeight",
|
|
3428
|
-
"description": "Retrieves the maximum height value, which is determined by the 'max-height' attribute.\nIf the attribute is not set, a default value of '200px' is returned."
|
|
3429
|
-
},
|
|
3430
|
-
{
|
|
3431
|
-
"name": "offset",
|
|
3432
|
-
"description": "Gets the value of the offset attribute of the current element.\nIf the offset attribute is not present, returns a default value of '0'."
|
|
3433
|
-
},
|
|
3434
|
-
{
|
|
3435
|
-
"name": "selectedOptions",
|
|
3436
|
-
"description": "Retrieves the selected options."
|
|
3437
|
-
},
|
|
3438
|
-
{
|
|
3439
|
-
"name": "lazy",
|
|
3440
|
-
"description": "Getter for the 'lazy' property."
|
|
3441
|
-
},
|
|
3442
|
-
{
|
|
3443
|
-
"name": "noSize",
|
|
3444
|
-
"description": "Gets the value of the 'no-size' attribute for the element."
|
|
3445
|
-
},
|
|
3446
|
-
{
|
|
3447
|
-
"name": "customErrorDisplay",
|
|
3448
|
-
"description": "Getter for the customErrorDisplay attribute."
|
|
3449
|
-
},
|
|
3450
|
-
{
|
|
3451
|
-
"name": "options",
|
|
3452
|
-
"description": "Retrieves the complete list of options available for the component.\nThe options are determined by combining elements from various sources, including loaded options, added options, and HTML-sourced options.\nIf a `wje-options` element is present within the component, its loaded options are included in the merged list.\nIn the absence of a `wje-options` element, duplicates among the added and HTML options are removed, retaining their order."
|
|
3453
|
-
},
|
|
3454
|
-
{ "name": "className", "type": "string" },
|
|
3455
|
-
{
|
|
3456
|
-
"name": "optionChange",
|
|
3457
|
-
"description": "Handles the change event for an option element within a select-like component.\nThis method processes user interactions with options and updates the state of the component,\nincluding selection management, validation, and UI updates. Behavior differs based on\nwhether the component supports multiple selections.\nKey functionality:\n- Prevents the default behavior, event propagation, and immediate propagation of the event.\n- Retrieves all options within the component.\n- If the component doesn't support multiple selection:\n - Marks only the clicked option as selected and deselects others.\n - Hides the option popup.\n- If the component supports multiple selection:\n - Processes the clicked option without deselecting others.\n- Updates the selected options and triggers validation.\n- Marks the form state as non-pristine.\n- Propagates the validation state to other relevant parts of the component or system."
|
|
3458
|
-
},
|
|
3459
|
-
{
|
|
3460
|
-
"name": "processClickedOption",
|
|
3461
|
-
"description": "Handles the logic for processing the selection state of a clicked option element."
|
|
3462
|
-
},
|
|
3463
|
-
{
|
|
3464
|
-
"name": "removeChip",
|
|
3465
|
-
"description": "Handles the removal of a chip element from the DOM and updates the related state."
|
|
3466
|
-
},
|
|
3467
|
-
{ "name": "localizer" },
|
|
3468
|
-
{ "name": "native", "type": "HTMLElement|null" },
|
|
3469
|
-
{ "name": "popup", "type": "HTMLElement|null" },
|
|
3470
|
-
{ "name": "labelElement", "type": "HTMLElement|null" },
|
|
3471
|
-
{ "name": "slotStart", "type": "HTMLElement|null" },
|
|
3472
|
-
{ "name": "slotEnd", "type": "HTMLElement|null" },
|
|
3473
|
-
{ "name": "input", "type": "HTMLElement|null" },
|
|
3474
|
-
{ "name": "displayText", "type": "HTMLElement|null" },
|
|
3475
|
-
{ "name": "chips", "type": "HTMLElement|null" },
|
|
3476
|
-
{ "name": "clear", "type": "HTMLElement|null" },
|
|
3477
|
-
{ "name": "list", "type": "HTMLElement|null" },
|
|
3478
|
-
{ "name": "emptyState", "type": "HTMLElement|null" },
|
|
3479
|
-
{ "name": "_value", "type": "array" },
|
|
3480
|
-
{ "name": "_selectedOptions", "type": "array" }
|
|
3467
|
+
"description": "Ends mobile bottom sheet resizing from a touch event."
|
|
3468
|
+
},
|
|
3469
|
+
{
|
|
3470
|
+
"name": "triggerEvent",
|
|
3471
|
+
"description": "Triggers the event based on the target element.\nIf the target element is different from the last caller, it refreshes the children by calling the `open` method.\nIf the target element is the same as the last caller, it toggles the state by calling the `toggle` method."
|
|
3472
|
+
},
|
|
3473
|
+
{ "name": "_isOpen", "type": "boolean" },
|
|
3474
|
+
{ "name": "_lastCaller", "type": "null" },
|
|
3475
|
+
{ "name": "_sheetDrag", "type": "null" },
|
|
3476
|
+
{ "name": "_sheetIgnoreDismissUntil", "type": "number" },
|
|
3477
|
+
{ "name": "_sheetBackdropGesture", "type": "null" },
|
|
3478
|
+
{ "name": "_sheetBackdropHandledUntil", "type": "number" },
|
|
3479
|
+
{ "name": "_bottomSheetScopeFrame", "type": "null" },
|
|
3480
|
+
{ "name": "_resizeObserver" }
|
|
3481
3481
|
],
|
|
3482
3482
|
"events": []
|
|
3483
3483
|
}
|
|
@@ -3524,26 +3524,6 @@
|
|
|
3524
3524
|
"events": []
|
|
3525
3525
|
}
|
|
3526
3526
|
},
|
|
3527
|
-
{
|
|
3528
|
-
"name": "wje-step",
|
|
3529
|
-
"description": "This element represents a step.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Returns the list of observed attributes.\n\n### **Slots:**\n - _default_ - The default slot for the step.\n\n### **CSS Parts:**\n - **native** - The native part of the step.",
|
|
3530
|
-
"doc-url": "",
|
|
3531
|
-
"attributes": [],
|
|
3532
|
-
"slots": [
|
|
3533
|
-
{ "name": "", "description": "The default slot for the step." }
|
|
3534
|
-
],
|
|
3535
|
-
"events": [],
|
|
3536
|
-
"js": {
|
|
3537
|
-
"properties": [
|
|
3538
|
-
{
|
|
3539
|
-
"name": "className",
|
|
3540
|
-
"description": "The class name for the component.",
|
|
3541
|
-
"type": "string"
|
|
3542
|
-
}
|
|
3543
|
-
],
|
|
3544
|
-
"events": []
|
|
3545
|
-
}
|
|
3546
|
-
},
|
|
3547
3527
|
{
|
|
3548
3528
|
"name": "wje-stepper",
|
|
3549
3529
|
"description": "This element represents a stepper.\n---\n\n\n### **Events:**\n - **stepper:next**\n- **stepper:prev**\n- **stepper:finish**\n\n### **Methods:**\n - **draw(): _DocumentFragment_** - Draws the component for the stepper.\n- **afterDraw()** - Sets up the attributes for the component.\n- **navigate(direction: _number_)** - Navigates to a different step in a multi-step process based on the provided direction.\n- **goToStep(stepIndex: _number_): _void_** - Navigates to a specific step in a workflow or process.\nExecutes a set of operations before and after the step transition.\n- **setStepDefault(nav: _HTMLElement_, badge: _HTMLElement|null_, stepIndex: _number_)** - Resets a step to its default state by clearing its active and done attributes.\nUpdates the step's badge to show its index and removes any color styling.\n- **setStepActive(nav: _HTMLElement_, badge: _HTMLElement|null_, stepIndex: _number|null_)** - Sets a step as active by adding the `active` attribute and updating the step's badge.\n- **setContentActive(stepIndex: _number_)** - Activates the content of a specific step by displaying it and hiding all others.\n- **getStepElement(stepIndex: _number_): _HTMLElement_** - Returns the DOM element of a step by index.\n- **renderStepContent(stepIndex: _number_, content: _Node|string|Node[]_, options: _{ replace?: boolean }_)** - Appends or replaces content inside the step container.\n- **setStepDone(nav: _HTMLElement_, badge: _HTMLElement|null_)** - Marks a step as completed by setting the `done` attribute and updating its badge with a check icon.\n\n### **Slots:**\n - _default_ - The default slot for the stepper.\n\n### **CSS Parts:**\n - **native** - The native part of the stepper.\n- **header** - The header part of the stepper.\n- **content** - The content part of the stepper.",
|
|
@@ -3629,6 +3609,26 @@
|
|
|
3629
3609
|
"events": []
|
|
3630
3610
|
}
|
|
3631
3611
|
},
|
|
3612
|
+
{
|
|
3613
|
+
"name": "wje-step",
|
|
3614
|
+
"description": "This element represents a step.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Returns the list of observed attributes.\n\n### **Slots:**\n - _default_ - The default slot for the step.\n\n### **CSS Parts:**\n - **native** - The native part of the step.",
|
|
3615
|
+
"doc-url": "",
|
|
3616
|
+
"attributes": [],
|
|
3617
|
+
"slots": [
|
|
3618
|
+
{ "name": "", "description": "The default slot for the step." }
|
|
3619
|
+
],
|
|
3620
|
+
"events": [],
|
|
3621
|
+
"js": {
|
|
3622
|
+
"properties": [
|
|
3623
|
+
{
|
|
3624
|
+
"name": "className",
|
|
3625
|
+
"description": "The class name for the component.",
|
|
3626
|
+
"type": "string"
|
|
3627
|
+
}
|
|
3628
|
+
],
|
|
3629
|
+
"events": []
|
|
3630
|
+
}
|
|
3631
|
+
},
|
|
3632
3632
|
{
|
|
3633
3633
|
"name": "wje-tab-group",
|
|
3634
3634
|
"description": "This element represents a group of tabs.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **beforeDraw()** - Sets up the event listeners before the component is drawn.\nThis method is called before the component is drawn.\nIt is used to set up event listeners.\n- **draw(): _DocumentFragment_** - Creates and returns a document fragment containing a structured layout for a tab group.\nThe tab group layout includes a `header` section with navigational elements,\na `section` element for tab panels, and slots for customization such as additional navigation items,\ndropdowns, and more.\nThe structure comprises:\n- A `div` container with relevant styling and part attributes.\n- A `header` for tabs, including a slot for navigation (`nav`) and additional tabs in a dropdown (`moreDropdown`).\n- A `section` for tab panels with a customizable `slot`.\nThis function also initializes the `nav` and `moreDropdown` properties for external use.\n- **afterDraw(): _void_** - Executes necessary initializations and attaches event listeners after a drawing operation.\nHandles active tab selection, 'wje-tab:change' event binding, and window resize event for overflow checking.\n- **removeActiveTab(): _void_** - Removes the 'active' class from all panel and tab elements.\n- **setActiveTab(tab: _string_)** - Sets the active tab and panel.\n- **getActiveTab(): _Element|null_** - Returns the currently active tab.\n- **getTabAll(): _Array<Element>_** - Returns all tabs.\n- **getAllTabs(): _Array<Element>_** - Returns all tabs, including those moved to \"more\".\n- **getPanelAll(): _Array<Element>_** - Returns all panels.\n- **getPanelAllName(): _Array<string>_** - Returns the names of all tabs.\n- **toggleMoreVisibility(): _void_** - Toggles the visibility of the \"more\" dropdown based on the presence of tabs in the \"more\" slot.\n- **initTabMetrics(): _void_** - Initializes metrics for tabs within the component. Assigns each tab to the navigation slot\nand calculates their dimensions for further operations.\n- **measureTabMetrics(): _Array<{el: Element, width: number}>_** - Measures current tab widths while all tabs are temporarily placed into the main nav slot.\n- **measureMoreWidth(): _void_** - Stores the measured width of the more dropdown trigger when available.\n- **checkOverflow(): _void_** - Checks if the tabs within a navigation bar overflow the available space.\nMoves overflowing tabs into a dropdown menu and updates their state accordingly.\n- **dropdownActive(el: _HTMLElement_): _void_** - Toggles the \"dropdown-active\" class on the element based on its \"active\" status\nand the value of its \"slot\" attribute.\n- **syncAria()** - Syncs ARIA attributes on tabs and panels.\n\n### **Slots:**\n - _default_ - The default slot for the tab group.\n- **nav** - Slot for the navigation of the tab group.\n\n### **CSS Properties:**\n - **--wje-tab-group-padding** - Specifies the padding inside the tab group. This property defines the space between the content of the tab group and its outer boundary. Accepts any valid CSS length unit (e.g., `px`, `rem`, `em`, `%`). _(default: 1rem)_",
|
|
@@ -3663,29 +3663,6 @@
|
|
|
3663
3663
|
"events": []
|
|
3664
3664
|
}
|
|
3665
3665
|
},
|
|
3666
|
-
{
|
|
3667
|
-
"name": "wje-thumbnail",
|
|
3668
|
-
"description": "Thumbnail class\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _object_** - Draws the component for the thumbnail.\n- **syncAria()** - Sync ARIA attributes on host.\n\n### **Slots:**\n - **thumbnail-slot** - The slot for the thumbnail content.\n\n### **CSS Properties:**\n - **--wje-thumbnail-width** - Defines the width of the thumbnail. Accepts any valid CSS length unit such as `px`, `rem`, or `%`. _(default: 48px)_\n- **--wje-thumbnail-height** - Specifies the height of the thumbnail. Accepts any valid CSS length unit. _(default: 48px)_\n- **--wje-thumbnail-border-radius** - Sets the border radius of the thumbnail, determining how rounded its corners appear. Accepts any valid CSS length unit or CSS variable. _(default: var(--wje-border-radius-medium))_",
|
|
3669
|
-
"doc-url": "",
|
|
3670
|
-
"attributes": [],
|
|
3671
|
-
"slots": [
|
|
3672
|
-
{
|
|
3673
|
-
"name": "thumbnail-slot",
|
|
3674
|
-
"description": "The slot for the thumbnail content."
|
|
3675
|
-
}
|
|
3676
|
-
],
|
|
3677
|
-
"events": [],
|
|
3678
|
-
"js": {
|
|
3679
|
-
"properties": [
|
|
3680
|
-
{
|
|
3681
|
-
"name": "className",
|
|
3682
|
-
"description": "The class name for the component",
|
|
3683
|
-
"type": "string"
|
|
3684
|
-
}
|
|
3685
|
-
],
|
|
3686
|
-
"events": []
|
|
3687
|
-
}
|
|
3688
|
-
},
|
|
3689
3666
|
{
|
|
3690
3667
|
"name": "wje-tab-panel",
|
|
3691
3668
|
"description": "This element represents a tab panel.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the tab panel.\n\n### **Slots:**\n - _default_ - The default slot for the tab panel.",
|
|
@@ -3772,6 +3749,29 @@
|
|
|
3772
3749
|
"events": []
|
|
3773
3750
|
}
|
|
3774
3751
|
},
|
|
3752
|
+
{
|
|
3753
|
+
"name": "wje-thumbnail",
|
|
3754
|
+
"description": "Thumbnail class\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _object_** - Draws the component for the thumbnail.\n- **syncAria()** - Sync ARIA attributes on host.\n\n### **Slots:**\n - **thumbnail-slot** - The slot for the thumbnail content.\n\n### **CSS Properties:**\n - **--wje-thumbnail-width** - Defines the width of the thumbnail. Accepts any valid CSS length unit such as `px`, `rem`, or `%`. _(default: 48px)_\n- **--wje-thumbnail-height** - Specifies the height of the thumbnail. Accepts any valid CSS length unit. _(default: 48px)_\n- **--wje-thumbnail-border-radius** - Sets the border radius of the thumbnail, determining how rounded its corners appear. Accepts any valid CSS length unit or CSS variable. _(default: var(--wje-border-radius-medium))_",
|
|
3755
|
+
"doc-url": "",
|
|
3756
|
+
"attributes": [],
|
|
3757
|
+
"slots": [
|
|
3758
|
+
{
|
|
3759
|
+
"name": "thumbnail-slot",
|
|
3760
|
+
"description": "The slot for the thumbnail content."
|
|
3761
|
+
}
|
|
3762
|
+
],
|
|
3763
|
+
"events": [],
|
|
3764
|
+
"js": {
|
|
3765
|
+
"properties": [
|
|
3766
|
+
{
|
|
3767
|
+
"name": "className",
|
|
3768
|
+
"description": "The class name for the component",
|
|
3769
|
+
"type": "string"
|
|
3770
|
+
}
|
|
3771
|
+
],
|
|
3772
|
+
"events": []
|
|
3773
|
+
}
|
|
3774
|
+
},
|
|
3775
3775
|
{
|
|
3776
3776
|
"name": "wje-timeline-item",
|
|
3777
3777
|
"description": "This element represents a timeline item.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the timeline item.\n\n### **Slots:**\n - _default_ - Slot for the content of the timeline item.\n- **status** - Slot for the status of the timeline item.\n\n### **CSS Parts:**\n - **native** - The native part of the timeline item.\n- **content-container** - The content container part of the timeline item.\n- **default-icon** - The default icon part of the timeline item.",
|
|
@@ -3964,6 +3964,32 @@
|
|
|
3964
3964
|
"events": []
|
|
3965
3965
|
}
|
|
3966
3966
|
},
|
|
3967
|
+
{
|
|
3968
|
+
"name": "wje-toolbar",
|
|
3969
|
+
"description": "This element represents a toolbar.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _object_** - Draws the component for the toolbar.\n- **afterDraw()** - Initializes responsive layout observers.\n- **afterDisconnect()** - Cleans up responsive layout observers.\n- **syncAria()** - Sync ARIA attributes on host.\n- **scheduleResponsiveLayout()** - Schedules responsive layout recalculation.\n- **updateResponsiveLayout(): _Promise<void>_** - Updates slotted breadcrumbs and actions to fit the toolbar width.\n- **measureBreadcrumbs(breadcrumbs: _HTMLElement_): _Promise<{count: number, fullWidth: number, compactWidth: number}>_** - Measures breadcrumbs in their full state.\n- **ensureBreadcrumbState(breadcrumbs: _HTMLElement_, count: _number_): _{compactMaxItems: number}_** - Stores original breadcrumb settings used as responsive compact target.\n- **setBreadcrumbCompactState(breadcrumbs: _HTMLElement|null_, compact: _boolean_)** - Applies the compact or full breadcrumb state.\n- **setBreadcrumbMaxItems(breadcrumbs: _HTMLElement_, value: _number_)** - Sets breadcrumb max-items only when it changed.\n- **getVisibleActionsForWidth(actionMetrics: _object_, width: _number_): _number_** - Finds how many actions fit into the available width.\n- **setVisibleActions(action: _HTMLElement|null_, count: _number_)** - Applies visible action count.\n- **clearVisibleActions(action: _HTMLElement|null_)** - Clears toolbar-managed visible action state when actions manage themselves.\n- **getToolbarAction(): _HTMLElement|null_** - Returns the slotted toolbar action.\n- **getBreadcrumbs(): _HTMLElement|null_** - Returns the slotted breadcrumbs.\n- **isSelfManagedAction(action: _HTMLElement|null_): _boolean_** - Returns whether toolbar actions are managed by their own breakpoint logic.\n- **isSelfManagedBreadcrumbs(breadcrumbs: _HTMLElement|null_, action): _boolean_** - Returns whether breadcrumb collapse is managed by its own breakpoint logic.\n- **nextFrame(): _Promise<void>_** - Waits for one animation frame.\n\n### **Slots:**\n - **start** - The start slot for the toolbar.\n- **end** - The end slot for the toolbar.\n\n### **CSS Properties:**\n - **--wje-toolbar-background** - Specifies the background color of the toolbar. Accepts any valid CSS color value, such as `hex`, `rgb`, or `CSS variable`. _(default: var(--wje-background))_\n- **--wje-toolbar-height** - Defines the height of the toolbar. If set to `auto`, the height adjusts based on the content. _(default: auto)_\n- **--wje-toolbar-min-height** - Sets the minimum height of the toolbar. Ensures the toolbar maintains a consistent minimum size. _(default: 70px)_\n- **--wje-toolbar-padding-top** - Specifies the padding at the top of the toolbar. Accepts any valid CSS length unit. _(default: 1rem)_\n- **--wje-toolbar-padding-bottom** - Specifies the padding at the bottom of the toolbar. Helps create spacing between the content and the bottom edge. _(default: 1rem)_\n- **--wje-toolbar-padding-inline** - Defines the horizontal padding (left and right) of the toolbar. Creates consistent spacing on both sides. _(default: 1.5rem)_\n- **--wje-toolbar-margin-block** - Defines the vertical margin outside the toolbar. Accepts any valid CSS length value. _(default: 0)_\n- **--wje-toolbar-margin-inline** - Defines the horizontal margin outside the toolbar. Accepts any valid CSS length value. _(default: 0)_\n- **--wje-toolbar-border-color** - Sets the color of the toolbar's border. Accepts any valid CSS color value. _(default: var(--wje-border-color))_\n- **--wje-toolbar-top** - Specifies the vertical position of the toolbar relative to its container. Useful for fixed or sticky toolbars. _(default: 0)_\n\n### **CSS Parts:**\n - **native** - The native toolbar wrapper.",
|
|
3970
|
+
"doc-url": "",
|
|
3971
|
+
"attributes": [],
|
|
3972
|
+
"slots": [
|
|
3973
|
+
{
|
|
3974
|
+
"name": "start",
|
|
3975
|
+
"description": "The start slot for the toolbar."
|
|
3976
|
+
},
|
|
3977
|
+
{ "name": "end", "description": "The end slot for the toolbar." }
|
|
3978
|
+
],
|
|
3979
|
+
"events": [],
|
|
3980
|
+
"js": {
|
|
3981
|
+
"properties": [
|
|
3982
|
+
{
|
|
3983
|
+
"name": "className",
|
|
3984
|
+
"description": "The class name for the component.",
|
|
3985
|
+
"type": "string"
|
|
3986
|
+
},
|
|
3987
|
+
{ "name": "_breadcrumbState" },
|
|
3988
|
+
{ "name": "_responsiveFrame", "type": "null" }
|
|
3989
|
+
],
|
|
3990
|
+
"events": []
|
|
3991
|
+
}
|
|
3992
|
+
},
|
|
3967
3993
|
{
|
|
3968
3994
|
"name": "wje-toolbar-action",
|
|
3969
3995
|
"description": "This element represents a toolbar action.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _object_** - Draws the component for the toolbar action.\n- **afterDraw()** - Applies the current visible action limit after the component is drawn.\n- **afterDisconnect()** - Removes listeners after disconnect.\n- **scheduleOverflow(doubleFrame: _boolean_)** - Schedules overflow application after layout settles.\n- **getActions(): _Array<HTMLElement>_** - Returns the actions for the toolbar action.\n- **getAssignedElements(): _Array<HTMLElement>_** - Returns direct children assigned to the default slot.\n- **getExistingDropdown(): _HTMLElement|null_** - Returns an existing top-level dropdown if present.\n- **observeExistingDropdown()** - Observes the external dropdown for late menu/content changes.\n- **getOverflowDropdown(): _HTMLElement_** - Returns the dropdown that should receive overflow items.\n- **getOverflowMenu(): _HTMLElement|null_** - Returns the menu used for overflow items.\n- **getVisibleLimit(): _number_** - Gets the number of actions that should stay visible.\n- **shouldCollapseByBreakpoint(): _boolean_** - Returns whether the toolbar action should collapse based on the configured breakpoint.\n- **isCollapsedByBreakpoint(): _boolean_** - Returns the cached breakpoint collapse state.\n- **handleBreakpointResize(): _void_** - Reacts to viewport resize only when the breakpoint mode actually changes.\n- **getBreakpointWidth(): _number|null_** - Resolves the configured breakpoint to a pixel width.\n- **applyOverflow(): _void_** - Updates visible actions and the overflow dropdown.\n- **restoreManagedActions(actions: _Array<HTMLElement>_)** - Restores buttons hidden by this component.\n- **restoreManagedOverflowContent()** - Removes overflow menu nodes that were previously injected by this component.\n- **createMenuItem(action: _HTMLElement_): _HTMLElement_** - Creates a dropdown menu proxy for an overflowed button.\n- **cloneActionMenuNode(node: _Node_): _Node_** - Clones action content for menu usage and normalizes button icon slots.\n- **normalizeActionMenuIconSlot(element: _Element_)** - Moves button-only icon slots to the menu item start slot.\n- **getActionLabel(action: _HTMLElement_): _string_** - Resolves readable text for a toolbar action copied into an overflow menu.\n- **createOverflowDivider(): _HTMLElement_** - Creates a divider separating existing dropdown actions from responsive overflow actions.\n- **handleMenuItemClick(e: _Event_, action: _HTMLElement_)** - Forwards menu item activation to the original button.\n- **measureActionMetrics(): _{count: number, widths: number[], gap: number, moreWidth: number, getWidthForCount: Function}_** - Measures action widths while preserving current overflow state.\n- **measureMoreWidth(): _number_** - Measures the overflow dropdown trigger.\n\n### **Slots:**\n - _default_ - The default slot for the toolbar action.\n\n### **CSS Parts:**\n - **native** - The native toolbar action wrapper.",
|
|
@@ -4009,84 +4035,6 @@
|
|
|
4009
4035
|
"events": []
|
|
4010
4036
|
}
|
|
4011
4037
|
},
|
|
4012
|
-
{
|
|
4013
|
-
"name": "wje-tooltip",
|
|
4014
|
-
"description": "This element represents a tooltip.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _object_** - Draws the component for the tooltip.\n- **afterDraw()** - Draws the component for the tooltip.\n- **checkSelector(anchorEl: _HTMLElement_): _HTMLElement|null_** - Validates if the specified selector exists within the provided element.\nLogs an error if the selector is not found and returns the found element or `null`.\n\n### **Slots:**\n - **arrow** - The arrow slot for the tooltip.\n- **anchor** - The anchor slot for the tooltip.\n\n### **CSS Properties:**\n - **--wje-tooltip-arrow-color** - Specifies the color of the tooltip's arrow. This property determines the visual color of the arrow that points to the element the tooltip is attached to. Accepts any valid CSS color value such as `hex`, `rgb`, or `CSS variable`. _(default: var(--wje-color-contrast-11))_\n\n### **CSS Parts:**\n - **native** - The native tooltip wrapper.",
|
|
4015
|
-
"doc-url": "",
|
|
4016
|
-
"attributes": [
|
|
4017
|
-
{ "name": "active", "value": { "type": "string" } },
|
|
4018
|
-
{
|
|
4019
|
-
"name": "content",
|
|
4020
|
-
"description": "The content of the tooltip element. Accepts any valid string value.",
|
|
4021
|
-
"value": { "type": "string" }
|
|
4022
|
-
}
|
|
4023
|
-
],
|
|
4024
|
-
"slots": [
|
|
4025
|
-
{
|
|
4026
|
-
"name": "arrow",
|
|
4027
|
-
"description": "The arrow slot for the tooltip."
|
|
4028
|
-
},
|
|
4029
|
-
{
|
|
4030
|
-
"name": "anchor",
|
|
4031
|
-
"description": "The anchor slot for the tooltip."
|
|
4032
|
-
}
|
|
4033
|
-
],
|
|
4034
|
-
"events": [],
|
|
4035
|
-
"js": {
|
|
4036
|
-
"properties": [
|
|
4037
|
-
{
|
|
4038
|
-
"name": "dependencies",
|
|
4039
|
-
"description": "Dependencies of the Button element.",
|
|
4040
|
-
"type": "object"
|
|
4041
|
-
},
|
|
4042
|
-
{
|
|
4043
|
-
"name": "content",
|
|
4044
|
-
"description": "Get active attribute for the tooltip element."
|
|
4045
|
-
},
|
|
4046
|
-
{
|
|
4047
|
-
"name": "className",
|
|
4048
|
-
"description": "The class name for the component.",
|
|
4049
|
-
"type": "string"
|
|
4050
|
-
},
|
|
4051
|
-
{ "name": "popupHideCallback" },
|
|
4052
|
-
{
|
|
4053
|
-
"name": "onShow",
|
|
4054
|
-
"description": "Handles the logic for showing the component's popup or tooltip.\nAdds the `active` class, invokes lifecycle hooks, and manages the popup visibility."
|
|
4055
|
-
},
|
|
4056
|
-
{
|
|
4057
|
-
"name": "onHide",
|
|
4058
|
-
"description": "Hides the component's popup or tooltip.\nRemoves the `active` class from the component and hides the popup element."
|
|
4059
|
-
}
|
|
4060
|
-
],
|
|
4061
|
-
"events": []
|
|
4062
|
-
}
|
|
4063
|
-
},
|
|
4064
|
-
{
|
|
4065
|
-
"name": "wje-toolbar",
|
|
4066
|
-
"description": "This element represents a toolbar.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _object_** - Draws the component for the toolbar.\n- **afterDraw()** - Initializes responsive layout observers.\n- **afterDisconnect()** - Cleans up responsive layout observers.\n- **syncAria()** - Sync ARIA attributes on host.\n- **scheduleResponsiveLayout()** - Schedules responsive layout recalculation.\n- **updateResponsiveLayout(): _Promise<void>_** - Updates slotted breadcrumbs and actions to fit the toolbar width.\n- **measureBreadcrumbs(breadcrumbs: _HTMLElement_): _Promise<{count: number, fullWidth: number, compactWidth: number}>_** - Measures breadcrumbs in their full state.\n- **ensureBreadcrumbState(breadcrumbs: _HTMLElement_, count: _number_): _{compactMaxItems: number}_** - Stores original breadcrumb settings used as responsive compact target.\n- **setBreadcrumbCompactState(breadcrumbs: _HTMLElement|null_, compact: _boolean_)** - Applies the compact or full breadcrumb state.\n- **setBreadcrumbMaxItems(breadcrumbs: _HTMLElement_, value: _number_)** - Sets breadcrumb max-items only when it changed.\n- **getVisibleActionsForWidth(actionMetrics: _object_, width: _number_): _number_** - Finds how many actions fit into the available width.\n- **setVisibleActions(action: _HTMLElement|null_, count: _number_)** - Applies visible action count.\n- **clearVisibleActions(action: _HTMLElement|null_)** - Clears toolbar-managed visible action state when actions manage themselves.\n- **getToolbarAction(): _HTMLElement|null_** - Returns the slotted toolbar action.\n- **getBreadcrumbs(): _HTMLElement|null_** - Returns the slotted breadcrumbs.\n- **isSelfManagedAction(action: _HTMLElement|null_): _boolean_** - Returns whether toolbar actions are managed by their own breakpoint logic.\n- **isSelfManagedBreadcrumbs(breadcrumbs: _HTMLElement|null_, action): _boolean_** - Returns whether breadcrumb collapse is managed by its own breakpoint logic.\n- **nextFrame(): _Promise<void>_** - Waits for one animation frame.\n\n### **Slots:**\n - **start** - The start slot for the toolbar.\n- **end** - The end slot for the toolbar.\n\n### **CSS Properties:**\n - **--wje-toolbar-background** - Specifies the background color of the toolbar. Accepts any valid CSS color value, such as `hex`, `rgb`, or `CSS variable`. _(default: var(--wje-background))_\n- **--wje-toolbar-height** - Defines the height of the toolbar. If set to `auto`, the height adjusts based on the content. _(default: auto)_\n- **--wje-toolbar-min-height** - Sets the minimum height of the toolbar. Ensures the toolbar maintains a consistent minimum size. _(default: 70px)_\n- **--wje-toolbar-padding-top** - Specifies the padding at the top of the toolbar. Accepts any valid CSS length unit. _(default: 1rem)_\n- **--wje-toolbar-padding-bottom** - Specifies the padding at the bottom of the toolbar. Helps create spacing between the content and the bottom edge. _(default: 1rem)_\n- **--wje-toolbar-padding-inline** - Defines the horizontal padding (left and right) of the toolbar. Creates consistent spacing on both sides. _(default: 1.5rem)_\n- **--wje-toolbar-margin-block** - Defines the vertical margin outside the toolbar. Accepts any valid CSS length value. _(default: 0)_\n- **--wje-toolbar-margin-inline** - Defines the horizontal margin outside the toolbar. Accepts any valid CSS length value. _(default: 0)_\n- **--wje-toolbar-border-color** - Sets the color of the toolbar's border. Accepts any valid CSS color value. _(default: var(--wje-border-color))_\n- **--wje-toolbar-top** - Specifies the vertical position of the toolbar relative to its container. Useful for fixed or sticky toolbars. _(default: 0)_\n\n### **CSS Parts:**\n - **native** - The native toolbar wrapper.",
|
|
4067
|
-
"doc-url": "",
|
|
4068
|
-
"attributes": [],
|
|
4069
|
-
"slots": [
|
|
4070
|
-
{
|
|
4071
|
-
"name": "start",
|
|
4072
|
-
"description": "The start slot for the toolbar."
|
|
4073
|
-
},
|
|
4074
|
-
{ "name": "end", "description": "The end slot for the toolbar." }
|
|
4075
|
-
],
|
|
4076
|
-
"events": [],
|
|
4077
|
-
"js": {
|
|
4078
|
-
"properties": [
|
|
4079
|
-
{
|
|
4080
|
-
"name": "className",
|
|
4081
|
-
"description": "The class name for the component.",
|
|
4082
|
-
"type": "string"
|
|
4083
|
-
},
|
|
4084
|
-
{ "name": "_breadcrumbState" },
|
|
4085
|
-
{ "name": "_responsiveFrame", "type": "null" }
|
|
4086
|
-
],
|
|
4087
|
-
"events": []
|
|
4088
|
-
}
|
|
4089
|
-
},
|
|
4090
4038
|
{
|
|
4091
4039
|
"name": "wje-tree",
|
|
4092
4040
|
"description": "This element visually represents a tree structure, supporting single or multiple selection modes and hierarchy management.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Setup attributes for the Button element.\n- **beforeDraw(): _void_** - A method called before the drawing or rendering process of tree items.\nIt iterates through all `wje-tree-item` elements, updating their selection state\nand managing their expand/collapse icons accordingly.\n- **draw(): _object_** - Draw method for the tree.\n- **afterDraw(): _void_** - Called after the draw process of the component is completed.\nTypically used to add event listeners or perform operations\nthat are dependent on the component's drawn state.\n- **syncAria()** - Syncs ARIA attributes on the host element.\n- **getAllItems(): _Array<Element>_** - Retrieves all items that match the selector 'wje-tree-item' within the current context.\n- **appendTemplateSlot(item: _HTMLElement_, template: _HTMLTemplateElement|null_, slotName: _string_): _void_** - Retrieves and appends a template slot to a tree item.\n- **getTemplateSlotClass(slotName: _string_): _string_** - Returns the internal class used to identify cloned template slot content.\n- **setupReorderHandle(item: _HTMLElement_): _void_** - Marks direct start slot content as the drag handle for reorderable trees.\n- **getTreeItemFromEvent(e: _Event_): _HTMLElement|null_** - Finds a tree item from a composed event path.\n- **isReorderHandleEvent(e: _Event_): _boolean_** - Checks whether the event started from a reorder handle.\n- **isTreeItem(node: _object_): _boolean_** - Checks whether a node is a tree item element.\n- **getDirectTreeItems(parent: _HTMLElement_): _HTMLElement[]_** - Returns direct tree item children for a tree or tree item parent.\n- **getTreeItemIndex(item: _HTMLElement_): _number_** - Gets the index of a tree item among direct tree item siblings.\n- **canDrop(draggedItem: _HTMLElement_, targetItem: _HTMLElement_): _boolean_** - Determines whether the dragged item can be dropped on the target.\n- **getDropPosition(e: _DragEvent_, target: _HTMLElement|null_): _'before'|'inside'|'after'_** - Resolves the drop position against the visible tree item row.\n- **setDropState(target: _HTMLElement_, position: _string_): _void_** - Applies the visual drop position to the current target item.\n- **clearDropState(): _void_** - Clears visual drop target state.\n- **clearDragState(): _void_** - Clears the active drag state.\n- **getDropPositionClass(position: _'before'|'inside'|'after'_): _string_** - Returns the internal class used to render a drop marker.\n- **moveItem(draggedItem: _HTMLElement_, targetItem: _HTMLElement_, position: _'before'|'inside'|'after'_): _object|null_** - Moves a tree item relative to another tree item and syncs nesting metadata.\n- **getOrderElements(parent: _HTMLElement_): _HTMLElement[]_** - Returns cloned direct tree item children for an event detail.\n- **getOrderIds(parent: _HTMLElement_): _Array<string|null>_** - Returns stable ids for direct tree item children when they are available.\n- **getItemId(item: _HTMLElement|null_): _string|null_** - Gets an application-facing id from a tree item.\n- **syncTreeItems(): _void_** - Syncs item selection mode and nesting metadata after a DOM move.\n- **refreshMovedItems(items: _HTMLElement[]_): _void_** - Redraws affected parent items so expand/collapse affordances match current children.\n- **updateCheckboxState(changedItem: _object_, isInitialSync: _boolean_): _void_** - Updates the state of a checkbox, syncing the state both upwards to parent elements\nand downwards to child elements as necessary.\n- **updateParentState(item: _object_): _void_** - Updates the state of the parent item based on the state of its child items.\nRecursively propagates changes up to all parent items to reflect the selection\nor indeterminate state accurately.\n- **propagateStateUpwards(item: _HTMLElement_): _void_** - Propagates the state changes of an item upwards through its ancestors in the hierarchy.\nCalls the `updateParentState` method for each parent element until no parent exists.\n- **propagateStateDownwards(item: _object_): _void_** - Propagates the selected state of an item to its children recursively. Depending on the `isInitialSync` flag,\nit also determines how the state should be applied to the child items and updates the parent state if needed.\n\n### **Slots:**\n - _default_ - The default slot to place `wje-tree-item` child components.\n\n### **CSS Parts:**\n - **native** - The native container part of the tree.",
|
|
@@ -4147,6 +4095,58 @@
|
|
|
4147
4095
|
"events": []
|
|
4148
4096
|
}
|
|
4149
4097
|
},
|
|
4098
|
+
{
|
|
4099
|
+
"name": "wje-tooltip",
|
|
4100
|
+
"description": "This element represents a tooltip.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _object_** - Draws the component for the tooltip.\n- **afterDraw()** - Draws the component for the tooltip.\n- **checkSelector(anchorEl: _HTMLElement_): _HTMLElement|null_** - Validates if the specified selector exists within the provided element.\nLogs an error if the selector is not found and returns the found element or `null`.\n\n### **Slots:**\n - **arrow** - The arrow slot for the tooltip.\n- **anchor** - The anchor slot for the tooltip.\n\n### **CSS Properties:**\n - **--wje-tooltip-arrow-color** - Specifies the color of the tooltip's arrow. This property determines the visual color of the arrow that points to the element the tooltip is attached to. Accepts any valid CSS color value such as `hex`, `rgb`, or `CSS variable`. _(default: var(--wje-color-contrast-11))_\n\n### **CSS Parts:**\n - **native** - The native tooltip wrapper.",
|
|
4101
|
+
"doc-url": "",
|
|
4102
|
+
"attributes": [
|
|
4103
|
+
{ "name": "active", "value": { "type": "string" } },
|
|
4104
|
+
{
|
|
4105
|
+
"name": "content",
|
|
4106
|
+
"description": "The content of the tooltip element. Accepts any valid string value.",
|
|
4107
|
+
"value": { "type": "string" }
|
|
4108
|
+
}
|
|
4109
|
+
],
|
|
4110
|
+
"slots": [
|
|
4111
|
+
{
|
|
4112
|
+
"name": "arrow",
|
|
4113
|
+
"description": "The arrow slot for the tooltip."
|
|
4114
|
+
},
|
|
4115
|
+
{
|
|
4116
|
+
"name": "anchor",
|
|
4117
|
+
"description": "The anchor slot for the tooltip."
|
|
4118
|
+
}
|
|
4119
|
+
],
|
|
4120
|
+
"events": [],
|
|
4121
|
+
"js": {
|
|
4122
|
+
"properties": [
|
|
4123
|
+
{
|
|
4124
|
+
"name": "dependencies",
|
|
4125
|
+
"description": "Dependencies of the Button element.",
|
|
4126
|
+
"type": "object"
|
|
4127
|
+
},
|
|
4128
|
+
{
|
|
4129
|
+
"name": "content",
|
|
4130
|
+
"description": "Get active attribute for the tooltip element."
|
|
4131
|
+
},
|
|
4132
|
+
{
|
|
4133
|
+
"name": "className",
|
|
4134
|
+
"description": "The class name for the component.",
|
|
4135
|
+
"type": "string"
|
|
4136
|
+
},
|
|
4137
|
+
{ "name": "popupHideCallback" },
|
|
4138
|
+
{
|
|
4139
|
+
"name": "onShow",
|
|
4140
|
+
"description": "Handles the logic for showing the component's popup or tooltip.\nAdds the `active` class, invokes lifecycle hooks, and manages the popup visibility."
|
|
4141
|
+
},
|
|
4142
|
+
{
|
|
4143
|
+
"name": "onHide",
|
|
4144
|
+
"description": "Hides the component's popup or tooltip.\nRemoves the `active` class from the component and hides the popup element."
|
|
4145
|
+
}
|
|
4146
|
+
],
|
|
4147
|
+
"events": []
|
|
4148
|
+
}
|
|
4149
|
+
},
|
|
4150
4150
|
{
|
|
4151
4151
|
"name": "wje-tree-item",
|
|
4152
4152
|
"description": "Represents a single item in a tree structure.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Setup attributes for the Button element.\n- **beforeDraw(): _void_** - Custom logic executed before the draw process begins.\nDetermines and sets the appropriate slot if the current item is nested.\n- **syncNestingState(): _void_** - Synchronizes the nesting-related state on the host element.\nSets the \"slot\" to children for nested items and updates\nthe nesting depth used to compute visual indentation.\n- **draw(): _DocumentFragment_** - Creates and returns a document fragment representing the structure of a tree item component.\nThe method constructs the DOM elements including the native container, indentation, toggle button,\nselection checkbox, label, and children container, along with their respective slots and attributes.\nIt dynamically handles the creation of expand and collapse icons, as well as appending slots for\nchild components.\n- **afterDraw(): _void_** - Executes operations to be performed after the draw action is completed.\nIf the state indicates it is expanded, toggles its children.\nAdditionally, sets up an event listener on the button element to handle toggling children upon click.\n- **isNestedItem(): _boolean_** - Determines if the current item is a nested item within a tree structure.\nChecks if the item's parent element exists and is also a tree item.\n- **getNestingDepth(): _number_** - Calculates nesting depth based on ancestor tree items.\nRoot items have depth 0, direct children depth 1, etc.\n- **isTreeItem(node: _object_): _boolean_** - Checks whether the given node is a tree item.\n- **toggleChildren(): _void_** - Toggles the visibility state of the children element and updates the class of the parent element.\nThe method toggles the 'open' class on the children elements and the 'expanded' class on the parent element,\neffectively showing or hiding the children and indicating the expanded state.\n- **setChildrenExpanded(expanded: _boolean_, options: _@param {boolean} [options.syncAttribute] Mirrors the visual state to the host attribute when true.\n * _): _void_** - Sets the rendered children visibility and optionally mirrors it to the expanded attribute.\n- **syncAria()** - Syncs ARIA attributes on the host element.\n- **getChildrenItems(options: _@param {boolean} [options.includeDisabled] Determines whether disabled items should be included in the result. Defaults to true.\n * _): _Array_** - Retrieves the child items from the `childrenSlot` that match specific criteria.\n- **getAllChildrenFlat(options: _object_): _Array_** - Retrieves all descendant children of the current object in a flattened array structure.\n\n### **Slots:**\n - _default_ - Default slot for rendering the tree item's content (e.g., text or custom elements).\n\n### **CSS Properties:**\n - **--wje-tree-item-indent** - Defines the indentation for nested tree items. _(default: var(--wje-spacing-large))_\n- **--wje-tree-item-indent-guid-width** - Specifies the width of the guide element shown next to a tree item. _(default: 0px)_\n- **--wje-tree-item-indent-guid-style** - Defines the guide border style for nested tree items. _(default: solid)_\n- **--wje-tree-item-indent-guid-color** - Defines the guide border color for nested tree items. _(default: var(--wje-border-color))_\n- **--wje-tree-item-border-radius** - Sets the border radius of the tree item's container. _(default: var(--wje-border-radius-medium))_\n- **--wje-tree-item-border-width** - Sets the border width of the tree item row. _(default: 0px)_\n- **--wje-tree-item-border-style** - Sets the border style of the tree item row. _(default: solid)_\n- **--wje-tree-item-border-color** - Sets the border color of the tree item row. _(default: transparent)_\n- **--wje-tree-item-border-color-hover** - Sets the border color of the hovered tree item row. _(default: transparent)_\n- **--wje-tree-item-border-color-selected** - Sets the border color of the selected tree item row. _(default: transparent)_\n- **--wje-tree-item-drop-color** - Sets the color of reorder drop indicators. _(default: var(--wje-color-primary))_\n- **--wje-tree-item-drop-line-width** - Sets the thickness of before/after reorder drop indicators. _(default: 2px)_\n- **--wje-tree-item-drop-line-border-radius** - Sets the radius of before/after reorder drop indicators. _(default: var(--wje-border-radius-pill))_\n- **--wje-tree-item-drop-border-width** - Sets the width of the inside reorder drop border. _(default: 1px)_\n- **--wje-tree-item-drop-border-style** - Sets the style of the inside reorder drop border. _(default: solid)_\n- **--wje-tree-item-drop-border-color** - Sets the color of the inside reorder drop border. _(default: var(--wje-tree-item-drop-color))_\n- **--wje-tree-item-drop-border-radius** - Sets the radius of the inside reorder drop border. _(default: inherit)_\n\n### **CSS Parts:**\n - **native** - The native container of the tree item.",
|