wj-elements 0.7.5 → 0.7.7
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/custom-elements.json +7471 -7345
- package/dist/packages/translations/en-gb.d.ts +1 -0
- package/dist/packages/translations/sk-sk.d.ts +1 -0
- package/dist/packages/wje-button/button.element.d.ts +14 -1
- package/dist/packages/wje-img/img.element.d.ts +4 -4
- package/dist/packages/wje-pagination/pagination.element.d.ts +21 -0
- package/dist/web-types.json +611 -597
- package/dist/wje-breadcrumb.js +7 -3
- package/dist/wje-breadcrumb.js.map +1 -1
- package/dist/wje-button.js +54 -9
- package/dist/wje-button.js.map +1 -1
- package/dist/wje-chip.js +1 -1
- package/dist/wje-chip.js.map +1 -1
- package/dist/wje-dialog.js +1 -1
- package/dist/wje-dialog.js.map +1 -1
- package/dist/wje-file-upload-item.js +2 -2
- package/dist/wje-file-upload-item.js.map +1 -1
- package/dist/wje-file-upload.js +2 -2
- package/dist/wje-file-upload.js.map +1 -1
- package/dist/wje-img.js +4 -3
- package/dist/wje-img.js.map +1 -1
- package/dist/wje-master.js +2 -0
- package/dist/wje-master.js.map +1 -1
- package/dist/wje-pagination.js +33 -7
- package/dist/wje-pagination.js.map +1 -1
- package/dist/wje-toast.js +1 -1
- package/dist/wje-toast.js.map +1 -1
- package/dist/wje-toolbar-action.js +1 -1
- package/dist/wje-toolbar-action.js.map +1 -1
- package/package.json +2 -1
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.7.
|
|
4
|
+
"version": "0.7.7",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -517,7 +517,7 @@
|
|
|
517
517
|
},
|
|
518
518
|
{
|
|
519
519
|
"name": "wje-button",
|
|
520
|
-
"description": "This class represents Button element, extending the WJElement class.\n---\n\n\n### **Events:**\n \n\n### **Methods:**\n - **setupAttributes()** - Setup attributes for the Button element.\n- **draw(): _object_** - Draw method for the Button element.\n- **afterDraw()** - After draw method for the Button element.\n- **beforeDisconnect()** - Before disconnect method for the Button element.\n- **syncToggleState()** - Keeps toggle slot visibility aligned with the current value.\n- **syncAria()** - Syncs
|
|
520
|
+
"description": "This class represents Button element, extending the WJElement class.\n---\n\n\n### **Events:**\n \n\n### **Methods:**\n - **setupAttributes()** - Setup attributes for the Button element.\n- **draw(): _object_** - Draw method for the Button element.\n- **afterDraw()** - After draw method for the Button element.\n- **beforeDisconnect()** - Before disconnect method for the Button element.\n- **syncToggleState()** - Keeps toggle slot visibility aligned with the current value.\n- **syncAria()** - Syncs accessibility attributes on the internal native control.\n\n### **Slots:**\n - _default_ - The button main content.\n- **icon** - The button icon.\n- **icon-only** - The icon used when the button has no visible text.\n- **caret** - The button caret.\n- **start** - The button start slot.\n- **end** - The button end slot.\n- **toggle** - The button toggle slot.\n\n### **CSS Properties:**\n - **--wje-button-background-color** - Background color of the component; _(default: transparent)_\n- **--wje-button-border-color** - Border color of the component; _(default: --wje-color-contrast-4)_\n- **--wje-button-color** - Color of the component; _(default: --wje-color-contrast-11)_\n- **--wje-button-border-radius** - Border radius of the component; _(default: --wje-border-radius-medium)_\n- **--wje-button-border-width** - Border width of the component; _(default: 1px)_\n- **--wje-button-border-style** - Border style of the component; _(default: solid)_\n- **--wje-button-border-color** - Border color of the component; _(default: --wje-color-contrast-1)_\n- **--wje-button-margin-inline** - Margin inline of the component; _(default: 0)_\n\n### **CSS Parts:**\n - **native** - The component's native wrapper.",
|
|
521
521
|
"doc-url": "",
|
|
522
522
|
"attributes": [
|
|
523
523
|
{ "name": "disabled", "value": { "type": "string" } },
|
|
@@ -525,11 +525,21 @@
|
|
|
525
525
|
{ "name": "value", "value": { "type": "string" } },
|
|
526
526
|
{ "name": "active", "value": { "type": "string" } },
|
|
527
527
|
{ "name": "href", "value": { "type": "string" } },
|
|
528
|
-
{ "name": "toggle", "value": { "type": "string" } }
|
|
528
|
+
{ "name": "toggle", "value": { "type": "string" } },
|
|
529
|
+
{
|
|
530
|
+
"name": "label",
|
|
531
|
+
"description": "Accessible name forwarded to the internal native button or link.",
|
|
532
|
+
"value": { "type": "string" }
|
|
533
|
+
},
|
|
534
|
+
{ "name": "aria-label", "value": { "type": "string" } }
|
|
529
535
|
],
|
|
530
536
|
"slots": [
|
|
531
537
|
{ "name": "", "description": "The button main content." },
|
|
532
538
|
{ "name": "icon", "description": "The button icon." },
|
|
539
|
+
{
|
|
540
|
+
"name": "icon-only",
|
|
541
|
+
"description": "The icon used when the button has no visible text."
|
|
542
|
+
},
|
|
533
543
|
{ "name": "caret", "description": "The button caret." },
|
|
534
544
|
{ "name": "start", "description": "The button start slot." },
|
|
535
545
|
{ "name": "end", "description": "The button end slot." },
|
|
@@ -559,6 +569,10 @@
|
|
|
559
569
|
"name": "tooltip",
|
|
560
570
|
"description": "Get variant of the Button element."
|
|
561
571
|
},
|
|
572
|
+
{
|
|
573
|
+
"name": "label",
|
|
574
|
+
"description": "Get the accessible label of the Button element."
|
|
575
|
+
},
|
|
562
576
|
{
|
|
563
577
|
"name": "dialog",
|
|
564
578
|
"description": "Get variant of the Button element."
|
|
@@ -746,6 +760,26 @@
|
|
|
746
760
|
"events": []
|
|
747
761
|
}
|
|
748
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
|
+
},
|
|
749
783
|
{
|
|
750
784
|
"name": "wje-carousel",
|
|
751
785
|
"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)_",
|
|
@@ -803,26 +837,6 @@
|
|
|
803
837
|
"events": []
|
|
804
838
|
}
|
|
805
839
|
},
|
|
806
|
-
{
|
|
807
|
-
"name": "wje-card-title",
|
|
808
|
-
"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)_",
|
|
809
|
-
"doc-url": "",
|
|
810
|
-
"attributes": [],
|
|
811
|
-
"slots": [
|
|
812
|
-
{ "name": "", "description": "The card title main content." }
|
|
813
|
-
],
|
|
814
|
-
"events": [],
|
|
815
|
-
"js": {
|
|
816
|
-
"properties": [
|
|
817
|
-
{
|
|
818
|
-
"name": "className",
|
|
819
|
-
"description": "Class name for the CardTitle.",
|
|
820
|
-
"type": "string"
|
|
821
|
-
}
|
|
822
|
-
],
|
|
823
|
-
"events": []
|
|
824
|
-
}
|
|
825
|
-
},
|
|
826
840
|
{
|
|
827
841
|
"name": "wje-checkbox",
|
|
828
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.",
|
|
@@ -1001,6 +1015,29 @@
|
|
|
1001
1015
|
"events": []
|
|
1002
1016
|
}
|
|
1003
1017
|
},
|
|
1018
|
+
{
|
|
1019
|
+
"name": "wje-container",
|
|
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)_",
|
|
1021
|
+
"doc-url": "",
|
|
1022
|
+
"attributes": [],
|
|
1023
|
+
"slots": [
|
|
1024
|
+
{
|
|
1025
|
+
"name": "",
|
|
1026
|
+
"description": "The slot for adding child elements or components."
|
|
1027
|
+
}
|
|
1028
|
+
],
|
|
1029
|
+
"events": [],
|
|
1030
|
+
"js": {
|
|
1031
|
+
"properties": [
|
|
1032
|
+
{
|
|
1033
|
+
"name": "className",
|
|
1034
|
+
"description": "Class name for the Container.",
|
|
1035
|
+
"type": "string"
|
|
1036
|
+
}
|
|
1037
|
+
],
|
|
1038
|
+
"events": []
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1004
1041
|
{
|
|
1005
1042
|
"name": "wje-copy-button",
|
|
1006
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.",
|
|
@@ -1104,29 +1141,6 @@
|
|
|
1104
1141
|
"events": []
|
|
1105
1142
|
}
|
|
1106
1143
|
},
|
|
1107
|
-
{
|
|
1108
|
-
"name": "wje-container",
|
|
1109
|
-
"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)_",
|
|
1110
|
-
"doc-url": "",
|
|
1111
|
-
"attributes": [],
|
|
1112
|
-
"slots": [
|
|
1113
|
-
{
|
|
1114
|
-
"name": "",
|
|
1115
|
-
"description": "The slot for adding child elements or components."
|
|
1116
|
-
}
|
|
1117
|
-
],
|
|
1118
|
-
"events": [],
|
|
1119
|
-
"js": {
|
|
1120
|
-
"properties": [
|
|
1121
|
-
{
|
|
1122
|
-
"name": "className",
|
|
1123
|
-
"description": "Class name for the Container.",
|
|
1124
|
-
"type": "string"
|
|
1125
|
-
}
|
|
1126
|
-
],
|
|
1127
|
-
"events": []
|
|
1128
|
-
}
|
|
1129
|
-
},
|
|
1130
1144
|
{
|
|
1131
1145
|
"name": "wje-divider",
|
|
1132
1146
|
"description": "Divider is a custom web component that extends WJElement.\nIt provides a simple divider line that can be used to separate content.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the Divider.\n- **draw(): _DocumentFragment_** - Draws the Divider.\n\n### **Slots:**\n - _default_ - This is a default/unnamed slot.\n\n### **CSS Properties:**\n - **--wje-border-width** - The size of the border. _(default: 1px)_\n- **--wje-divider-border-color** - The color of the divider borderline. _(default: var(--wje-border-color))_\n- **--wje-divider-border-width** - The width of the divider borderline. _(default: var(--wje-border-width, 1px))_\n- **--wje-divider-spacing** - The spacing for the divider. _(default: 0)_",
|
|
@@ -1227,6 +1241,44 @@
|
|
|
1227
1241
|
"events": []
|
|
1228
1242
|
}
|
|
1229
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" } }
|
|
1251
|
+
],
|
|
1252
|
+
"slots": [
|
|
1253
|
+
{ "name": "img", "description": "Slot for the image" },
|
|
1254
|
+
{ "name": "action", "description": "Slot for the action buttons" }
|
|
1255
|
+
],
|
|
1256
|
+
"events": [],
|
|
1257
|
+
"js": {
|
|
1258
|
+
"properties": [
|
|
1259
|
+
{
|
|
1260
|
+
"name": "isUploaded",
|
|
1261
|
+
"description": "Checks if the 'is-uploaded' attribute is present on the element."
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"name": "size",
|
|
1265
|
+
"description": "Retrieves the value of the 'size' attribute."
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
"name": "dependencies",
|
|
1269
|
+
"description": "Dependencies for the component.",
|
|
1270
|
+
"type": "object"
|
|
1271
|
+
},
|
|
1272
|
+
{ "name": "className", "type": "string" },
|
|
1273
|
+
{
|
|
1274
|
+
"name": "onDelete",
|
|
1275
|
+
"description": "Handles the delete action."
|
|
1276
|
+
},
|
|
1277
|
+
{ "name": "localizer" }
|
|
1278
|
+
],
|
|
1279
|
+
"events": []
|
|
1280
|
+
}
|
|
1281
|
+
},
|
|
1230
1282
|
{
|
|
1231
1283
|
"name": "wje-file-upload",
|
|
1232
1284
|
"description": "FileUpload is a custom web component for uploading files.\nIt extends from WJElement and provides functionalities for file upload.\n---\n\n\n### **Events:**\n - **change** - Fires when the file input changes.\n- **drop** - Fires when a file is dropped into the component.\n\n### **Methods:**\n - **setupAttributes()** - Method to setup attributes for the component.\n- **draw(): _DocumentFragment_** - Method to draw the component on the screen.\n- **afterDraw()** - Method to perform actions after the component is drawn.\n- **handleSubmit(e: _Event_)** - Method to handle form submission.\n- **addFilesToQueue(files)** - Method to add files to the queue.\n- **uploadFiles()** - Method to upload files.\n- **createPreview(file: _File_, reader: _FileReader_): _HTMLElement_** - Method to create a preview for the file.\n- **createThumbnail(file: _File_, reader: _FileReader_): _HTMLElement_** - Method to create a thumbnail for the file.\n- **assertFilesValid(file: _File_)** - Method to validate the files.\n- **resetFormState()** - Method to reset the form state.\n- **showError(error: _object|Error_)** - Shows a user-facing validation error inside the dropzone.\n- **clearError()** - Clears the currently displayed validation error.\n- **getErrorMessage(error: _object|Error_): _string_** - Resolves a readable upload error message.\n\n### **Slots:**\n - _default_ - This is a default/unnamed slot.\n\n### **CSS Properties:**\n - **--wje-file-upload-padding** - Controls the padding around the native file upload area. _(default: 0)_\n\n### **CSS Parts:**\n - **native** - The native file upload part.\n- **file-list** - The file list part.\n- **upload-button** - The label part.",
|
|
@@ -1354,39 +1406,24 @@
|
|
|
1354
1406
|
}
|
|
1355
1407
|
},
|
|
1356
1408
|
{
|
|
1357
|
-
"name": "wje-
|
|
1358
|
-
"description": "
|
|
1409
|
+
"name": "wje-form",
|
|
1410
|
+
"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.",
|
|
1359
1411
|
"doc-url": "",
|
|
1360
|
-
"attributes": [
|
|
1361
|
-
{ "name": "uploaded", "value": { "type": "string" } },
|
|
1362
|
-
{ "name": "is-uploaded", "value": { "type": "string" } }
|
|
1363
|
-
],
|
|
1412
|
+
"attributes": [],
|
|
1364
1413
|
"slots": [
|
|
1365
|
-
{
|
|
1366
|
-
|
|
1414
|
+
{
|
|
1415
|
+
"name": "",
|
|
1416
|
+
"description": "The slot for adding child elements or components."
|
|
1417
|
+
}
|
|
1367
1418
|
],
|
|
1368
1419
|
"events": [],
|
|
1369
1420
|
"js": {
|
|
1370
1421
|
"properties": [
|
|
1371
1422
|
{
|
|
1372
|
-
"name": "
|
|
1373
|
-
"description": "
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
"name": "size",
|
|
1377
|
-
"description": "Retrieves the value of the 'size' attribute."
|
|
1378
|
-
},
|
|
1379
|
-
{
|
|
1380
|
-
"name": "dependencies",
|
|
1381
|
-
"description": "Dependencies for the component.",
|
|
1382
|
-
"type": "object"
|
|
1383
|
-
},
|
|
1384
|
-
{ "name": "className", "type": "string" },
|
|
1385
|
-
{
|
|
1386
|
-
"name": "onDelete",
|
|
1387
|
-
"description": "Handles the delete action."
|
|
1388
|
-
},
|
|
1389
|
-
{ "name": "localizer" }
|
|
1423
|
+
"name": "className",
|
|
1424
|
+
"description": "The class name for the Form class.",
|
|
1425
|
+
"type": "string"
|
|
1426
|
+
}
|
|
1390
1427
|
],
|
|
1391
1428
|
"events": []
|
|
1392
1429
|
}
|
|
@@ -1408,29 +1445,6 @@
|
|
|
1408
1445
|
"events": []
|
|
1409
1446
|
}
|
|
1410
1447
|
},
|
|
1411
|
-
{
|
|
1412
|
-
"name": "wje-form",
|
|
1413
|
-
"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.",
|
|
1414
|
-
"doc-url": "",
|
|
1415
|
-
"attributes": [],
|
|
1416
|
-
"slots": [
|
|
1417
|
-
{
|
|
1418
|
-
"name": "",
|
|
1419
|
-
"description": "The slot for adding child elements or components."
|
|
1420
|
-
}
|
|
1421
|
-
],
|
|
1422
|
-
"events": [],
|
|
1423
|
-
"js": {
|
|
1424
|
-
"properties": [
|
|
1425
|
-
{
|
|
1426
|
-
"name": "className",
|
|
1427
|
-
"description": "The class name for the Form class.",
|
|
1428
|
-
"type": "string"
|
|
1429
|
-
}
|
|
1430
|
-
],
|
|
1431
|
-
"events": []
|
|
1432
|
-
}
|
|
1433
|
-
},
|
|
1434
1448
|
{
|
|
1435
1449
|
"name": "wje-grid",
|
|
1436
1450
|
"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.",
|
|
@@ -1501,23 +1515,6 @@
|
|
|
1501
1515
|
"events": []
|
|
1502
1516
|
}
|
|
1503
1517
|
},
|
|
1504
|
-
{
|
|
1505
|
-
"name": "wje-header",
|
|
1506
|
-
"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",
|
|
1507
|
-
"doc-url": "",
|
|
1508
|
-
"attributes": [],
|
|
1509
|
-
"slots": [
|
|
1510
|
-
{
|
|
1511
|
-
"name": "default",
|
|
1512
|
-
"description": "Default slot for the header content"
|
|
1513
|
-
}
|
|
1514
|
-
],
|
|
1515
|
-
"events": [],
|
|
1516
|
-
"js": {
|
|
1517
|
-
"properties": [{ "name": "className", "type": "string" }],
|
|
1518
|
-
"events": []
|
|
1519
|
-
}
|
|
1520
|
-
},
|
|
1521
1518
|
{
|
|
1522
1519
|
"name": "wje-icon",
|
|
1523
1520
|
"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",
|
|
@@ -1539,6 +1536,23 @@
|
|
|
1539
1536
|
"events": []
|
|
1540
1537
|
}
|
|
1541
1538
|
},
|
|
1539
|
+
{
|
|
1540
|
+
"name": "wje-header",
|
|
1541
|
+
"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",
|
|
1542
|
+
"doc-url": "",
|
|
1543
|
+
"attributes": [],
|
|
1544
|
+
"slots": [
|
|
1545
|
+
{
|
|
1546
|
+
"name": "default",
|
|
1547
|
+
"description": "Default slot for the header content"
|
|
1548
|
+
}
|
|
1549
|
+
],
|
|
1550
|
+
"events": [],
|
|
1551
|
+
"js": {
|
|
1552
|
+
"properties": [{ "name": "className", "type": "string" }],
|
|
1553
|
+
"events": []
|
|
1554
|
+
}
|
|
1555
|
+
},
|
|
1542
1556
|
{
|
|
1543
1557
|
"name": "wje-icon-picker",
|
|
1544
1558
|
"description": "This element allows users to pick an icon from a set of available options.\n`IconPicker` is a custom web component that represents an interactive icon picker. It features\nsearch functionality, infinite scrolling, and popup-based selection. The component is highly customizable\nand integrates seamlessly with other `WJElement` components.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **beforeDraw(): _Promise<void>_** - Prepares data before the draw operation by fetching tags, transforming objects, and creating an index.\n- **draw(): _DocumentFragment_** - Draws and initializes the native color picker component on the DOM.\nThis method creates and appends the necessary elements, including input and infinite scroll components,\nand sets their attributes and event listeners. It also provides custom data handling for infinite scrolling\nand manages the way icons are displayed based on input.\n- **afterDraw(): _void_** - Executes actions that occur after the component finishes its draw phase. Sets up event listeners for input clear\nand infinite scroll item clicks, resets initialization state, and rebinds scroll-related events.\n- **syncAria()** - Sync ARIA attributes on host.\n- **initial()** - Initializes the component.\n- **getTags(): _Promise<Array>_** - Gets the tags.\n- **beforeDisconnect()** - Called when the component is disconnected.\n- **clearIconsContainer()** - Clears the icons container.\n- **debounce(fn: _Function_, delay: _number_): _Function_** - Creates a debounced version of the provided function that delays its execution\nuntil after the specified delay has passed since the last time it was invoked.\n\n### **CSS Properties:**\n - **--wje-color-picker-value** - The default color value. _(default: #ff0000)_\n- **--wje-color-picker-area** - The background color of the color picker area. _(default: transparent)_\n- **--wje-color-picker-swatch** - The background color of the swatch picker. _(default: transparent)_\n- **--wje-color-picker-size** - The size of the icons in the picker. _(default: 1rem)_\n- **--wje-color-picker-radius** - The border radius of the picker. _(default: 4px)_\n\n### **CSS Parts:**\n - **native** - The native part of the component.\n- **anchor** - The part representing the anchor button displaying the selected icon.\n- **picker** - The picker part containing the search and icon selection interface.\n- **input** - The input part for searching icons.",
|
|
@@ -1625,7 +1639,7 @@
|
|
|
1625
1639
|
},
|
|
1626
1640
|
{
|
|
1627
1641
|
"name": "loader",
|
|
1628
|
-
"description": "The URL of the image loader to display while the image is loading.",
|
|
1642
|
+
"description": "The URL of the image loader to display while the image is loading. Defaults to the loader asset resolved from the configured base path.",
|
|
1629
1643
|
"type": "string"
|
|
1630
1644
|
},
|
|
1631
1645
|
{
|
|
@@ -2087,42 +2101,112 @@
|
|
|
2087
2101
|
}
|
|
2088
2102
|
},
|
|
2089
2103
|
{
|
|
2090
|
-
"name": "wje-menu-
|
|
2091
|
-
"description": "This element represents a menu
|
|
2104
|
+
"name": "wje-menu-label",
|
|
2105
|
+
"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.",
|
|
2092
2106
|
"doc-url": "",
|
|
2093
2107
|
"attributes": [],
|
|
2094
2108
|
"slots": [
|
|
2095
2109
|
{
|
|
2096
2110
|
"name": "",
|
|
2097
|
-
"description": "The default slot for the menu
|
|
2111
|
+
"description": "The default slot for the menu label."
|
|
2098
2112
|
}
|
|
2099
2113
|
],
|
|
2100
2114
|
"events": [],
|
|
2101
2115
|
"js": {
|
|
2102
|
-
"properties": [
|
|
2116
|
+
"properties": [
|
|
2117
|
+
{ "name": "className", "type": "string" },
|
|
2118
|
+
{ "name": "hasSubmenu" }
|
|
2119
|
+
],
|
|
2103
2120
|
"events": []
|
|
2104
2121
|
}
|
|
2105
2122
|
},
|
|
2106
2123
|
{
|
|
2107
|
-
"name": "wje-
|
|
2108
|
-
"description": "This element represents
|
|
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.",
|
|
2109
2126
|
"doc-url": "",
|
|
2110
|
-
"attributes": [],
|
|
2127
|
+
"attributes": [{ "name": "selected", "value": { "type": "string" } }],
|
|
2111
2128
|
"slots": [
|
|
2112
|
-
{
|
|
2113
|
-
"name": "",
|
|
2114
|
-
"description": "The default slot for the menu item."
|
|
2115
|
-
},
|
|
2116
2129
|
{
|
|
2117
2130
|
"name": "start",
|
|
2118
|
-
"description": "The slot for the start of the
|
|
2131
|
+
"description": "The slot for the start of the option."
|
|
2119
2132
|
},
|
|
2133
|
+
{ "name": "", "description": "The default slot for the option." },
|
|
2120
2134
|
{
|
|
2121
2135
|
"name": "end",
|
|
2122
|
-
"description": "The slot for the end of the
|
|
2123
|
-
}
|
|
2124
|
-
|
|
2125
|
-
|
|
2136
|
+
"description": "The slot for the end of the option. // @fires wje-option:change - Event fired when the option is clicked."
|
|
2137
|
+
}
|
|
2138
|
+
],
|
|
2139
|
+
"events": [],
|
|
2140
|
+
"js": {
|
|
2141
|
+
"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
|
+
{
|
|
2161
|
+
"name": "value",
|
|
2162
|
+
"description": "Sets the value attribute of the option."
|
|
2163
|
+
},
|
|
2164
|
+
{
|
|
2165
|
+
"name": "text",
|
|
2166
|
+
"description": "Sets the text content of the option."
|
|
2167
|
+
},
|
|
2168
|
+
{ "name": "className", "type": "string" }
|
|
2169
|
+
],
|
|
2170
|
+
"events": []
|
|
2171
|
+
}
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
"name": "wje-menu-button",
|
|
2175
|
+
"description": "This element represents a menu button.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the menu button.\n- **afterDraw()** - Refreshes the component after drawing. Adds a click event listener that toggles the \"open\" class on the content element.\n\n### **Slots:**\n - _default_ - The default slot for the menu button. // @fires click - Event fired when the menu button is clicked.",
|
|
2176
|
+
"doc-url": "",
|
|
2177
|
+
"attributes": [],
|
|
2178
|
+
"slots": [
|
|
2179
|
+
{
|
|
2180
|
+
"name": "",
|
|
2181
|
+
"description": "The default slot for the menu button. // @fires click - Event fired when the menu button is clicked."
|
|
2182
|
+
}
|
|
2183
|
+
],
|
|
2184
|
+
"events": [],
|
|
2185
|
+
"js": {
|
|
2186
|
+
"properties": [{ "name": "className", "type": "string" }],
|
|
2187
|
+
"events": []
|
|
2188
|
+
}
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
"name": "wje-menu-item",
|
|
2192
|
+
"description": "This element represents a menu item.\n---\n\n\n### **Events:**\n \n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the MenuItem element.\n- **beforeDraw()** - Removes the active attribute from the menu before drawing the MenuItem.\n- **draw(): _DocumentFragment_** - Draws the MenuItem element and sets the variant and collapse attributes.\n- **afterDraw()** - Adds event listeners after drawing the MenuItem.\n- **syncAria()** - Syncs ARIA attributes based on menu item state.\n- **collapseItem(native: _HTMLElement_): _HTMLElement_** - Creates a tooltip for the MenuItem when it is collapsed.\n- **showSubmenu()** - Shows the submenu of the MenuItem.\n- **hideSubmenu()** - Hides the submenu of the MenuItem.\n- **submenuToggle(e: _Event_)** - Toggles the active state of the submenu element.\nIf the submenu is not active, it sets the \"active\" attribute.\nIf the submenu is already active, it removes the \"active\" attribute.\n- **deactivateSubmenu()** - Deactivates the submenu by removing the \"active\" attribute.\n- **activateSubmenu()** - Activates the submenu of the menu item.\n- **beforeDisconnect()** - Gets the text from the element and returns it.\n- **getTextFromElement(element: _HTMLElement_): _string_** - Extracts and returns the concatenated text content from all text nodes within the specified element.\n\n### **Slots:**\n - _default_ - The default slot for the menu item.\n- **start** - The slot for the start of the menu item.\n- **end** - The slot for the end of the menu item.\n- **submenu** - The slot for the submenu of the menu item.\n\n### **CSS Properties:**\n - **--wje-menu-item-color** - Sets the text color of a menu item. Accepts any valid CSS color value. _(default: var(--wje-color))_\n- **--wje-menu-item-background** - Defines the background color of a menu item. Default is `transparent`. Accepts any valid CSS color value. _(default: transparent)_\n- **--wje-menu-item-color-hover** - Specifies the text color of a menu item when hovered. Accepts any valid CSS color value. _(default: var(--wje-color-contrast-8))_\n- **--wje-menu-item-background-hover** - Sets the background color of a menu item when hovered. Accepts any valid CSS color value. _(default: var(--wje-border-color))_\n- **--wje-menu-item-color-focus** - Defines the text color of a menu item when focused. Accepts any valid CSS color value. _(default: var(--wje-color-contrast-8))_\n- **--wje-menu-item-background-focus** - Specifies the background color of a menu item when focused. Accepts any valid CSS color value. _(default: var(--wje-border-color))_\n- **--wje-menu-item-color-active** - Sets the text color of a menu item when active. Accepts any valid CSS color value. _(default: var(--wje-color-contrast-8))_\n- **--wje-menu-item-background-active** - Specifies the background color of a menu item when active. Accepts any valid CSS color value. _(default: var(--wje-border-color))_\n- **--wje-menu-item-padding-top** - Specifies the top padding inside a menu item. Accepts any valid CSS length value (e.g., `px`, `rem`). _(default: .5rem)_\n- **--wje-menu-item-padding-bottom** - Specifies the bottom padding inside a menu item. Accepts any valid CSS length value (e.g., `px`, `rem`). _(default: .5rem)_\n- **--wje-menu-item-line-height** - Sets the line height for the text within a menu item. Accepts any valid CSS length value. _(default: 1.8rem)_\n- **--wje-menu-submenu-offset** - Determines the horizontal offset of a submenu relative to its parent. Accepts any valid CSS length value. _(default: 0)_\n- **--wje-menu-item-icon-visibility** - Controls the visibility of the icon in a menu item. Accepts `visible`, `hidden`, or `collapse`. _(default: hidden)_\n- **--wje-menu-item-safe-triangle-cursor-x** - Specifies the x-coordinate of the cursor for the safe triangle area. Used for managing hover or focus transitions between menu items and submenus. _(default: undefined)_\n- **--wje-menu-item-safe-triangle-cursor-y** - Specifies the y-coordinate of the cursor for the safe triangle area. _(default: undefined)_\n- **--wje-menu-item-safe-triangle-submenu-start-x** - Defines the x-coordinate where the submenu's safe triangle starts. Helps prevent accidental submenu closing when navigating. _(default: undefined)_\n- **--wje-menu-item-safe-triangle-submenu-start-y** - Defines the y-coordinate where the submenu's safe triangle starts. _(default: undefined)_\n- **--wje-menu-item-safe-triangle-submenu-end-x** - Specifies the x-coordinate where the submenu's safe triangle ends. _(default: undefined)_\n- **--wje-menu-item-safe-triangle-submenu-end-y** - Specifies the y-coordinate where the submenu's safe triangle ends. _(default: undefined)_\n\n### **CSS Parts:**\n - **native** - The native part of the menu item.\n- **submenu** - The submenu part of the menu item.",
|
|
2193
|
+
"doc-url": "",
|
|
2194
|
+
"attributes": [],
|
|
2195
|
+
"slots": [
|
|
2196
|
+
{
|
|
2197
|
+
"name": "",
|
|
2198
|
+
"description": "The default slot for the menu item."
|
|
2199
|
+
},
|
|
2200
|
+
{
|
|
2201
|
+
"name": "start",
|
|
2202
|
+
"description": "The slot for the start of the menu item."
|
|
2203
|
+
},
|
|
2204
|
+
{
|
|
2205
|
+
"name": "end",
|
|
2206
|
+
"description": "The slot for the end of the menu item."
|
|
2207
|
+
},
|
|
2208
|
+
{
|
|
2209
|
+
"name": "submenu",
|
|
2126
2210
|
"description": "The slot for the submenu of the menu item."
|
|
2127
2211
|
}
|
|
2128
2212
|
],
|
|
@@ -2179,71 +2263,28 @@
|
|
|
2179
2263
|
}
|
|
2180
2264
|
},
|
|
2181
2265
|
{
|
|
2182
|
-
"name": "wje-
|
|
2183
|
-
"description": "
|
|
2184
|
-
"doc-url": "",
|
|
2185
|
-
"attributes": [],
|
|
2186
|
-
"slots": [
|
|
2187
|
-
{
|
|
2188
|
-
"name": "",
|
|
2189
|
-
"description": "The default slot for the menu label."
|
|
2190
|
-
}
|
|
2191
|
-
],
|
|
2192
|
-
"events": [],
|
|
2193
|
-
"js": {
|
|
2194
|
-
"properties": [
|
|
2195
|
-
{ "name": "className", "type": "string" },
|
|
2196
|
-
{ "name": "hasSubmenu" }
|
|
2197
|
-
],
|
|
2198
|
-
"events": []
|
|
2199
|
-
}
|
|
2200
|
-
},
|
|
2201
|
-
{
|
|
2202
|
-
"name": "wje-option",
|
|
2203
|
-
"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.",
|
|
2266
|
+
"name": "wje-orgchart",
|
|
2267
|
+
"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.",
|
|
2204
2268
|
"doc-url": "",
|
|
2205
|
-
"attributes": [
|
|
2206
|
-
"slots": [
|
|
2207
|
-
{
|
|
2208
|
-
"name": "start",
|
|
2209
|
-
"description": "The slot for the start of the option."
|
|
2210
|
-
},
|
|
2211
|
-
{ "name": "", "description": "The default slot for the option." },
|
|
2269
|
+
"attributes": [
|
|
2212
2270
|
{
|
|
2213
|
-
"name": "
|
|
2214
|
-
"description": "
|
|
2271
|
+
"name": "flat",
|
|
2272
|
+
"description": "Removes the incoming connector spacing for nested charts that should visually continue on the same level.",
|
|
2273
|
+
"value": { "type": "boolean" }
|
|
2215
2274
|
}
|
|
2216
2275
|
],
|
|
2217
2276
|
"events": [],
|
|
2218
2277
|
"js": {
|
|
2219
2278
|
"properties": [
|
|
2220
2279
|
{
|
|
2221
|
-
"name": "
|
|
2222
|
-
"description": "
|
|
2223
|
-
"type": "object"
|
|
2224
|
-
},
|
|
2225
|
-
{
|
|
2226
|
-
"name": "selected",
|
|
2227
|
-
"description": "Retrieves the 'selected' attribute status of the element."
|
|
2228
|
-
},
|
|
2229
|
-
{
|
|
2230
|
-
"name": "checkbox",
|
|
2231
|
-
"description": "Retrieves the value indicating whether the closest 'wje-select' element has a 'checkbox' attribute."
|
|
2232
|
-
},
|
|
2233
|
-
{
|
|
2234
|
-
"name": "multiple",
|
|
2235
|
-
"description": "Determines whether the closest 'wje-select' element has the 'multiple' attribute."
|
|
2236
|
-
},
|
|
2237
|
-
{ "name": "ownerSelect" },
|
|
2238
|
-
{
|
|
2239
|
-
"name": "value",
|
|
2240
|
-
"description": "Sets the value attribute of the option."
|
|
2280
|
+
"name": "flat",
|
|
2281
|
+
"description": "Gets whether the chart omits its incoming connector spacing."
|
|
2241
2282
|
},
|
|
2283
|
+
{ "name": "className", "type": "string" },
|
|
2242
2284
|
{
|
|
2243
|
-
"name": "
|
|
2244
|
-
"description": "
|
|
2245
|
-
}
|
|
2246
|
-
{ "name": "className", "type": "string" }
|
|
2285
|
+
"name": "syncFlatChildren",
|
|
2286
|
+
"description": "Marks direct children that are rendered inside a flat chart."
|
|
2287
|
+
}
|
|
2247
2288
|
],
|
|
2248
2289
|
"events": []
|
|
2249
2290
|
}
|
|
@@ -2329,33 +2370,6 @@
|
|
|
2329
2370
|
"events": []
|
|
2330
2371
|
}
|
|
2331
2372
|
},
|
|
2332
|
-
{
|
|
2333
|
-
"name": "wje-orgchart",
|
|
2334
|
-
"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.",
|
|
2335
|
-
"doc-url": "",
|
|
2336
|
-
"attributes": [
|
|
2337
|
-
{
|
|
2338
|
-
"name": "flat",
|
|
2339
|
-
"description": "Removes the incoming connector spacing for nested charts that should visually continue on the same level.",
|
|
2340
|
-
"value": { "type": "boolean" }
|
|
2341
|
-
}
|
|
2342
|
-
],
|
|
2343
|
-
"events": [],
|
|
2344
|
-
"js": {
|
|
2345
|
-
"properties": [
|
|
2346
|
-
{
|
|
2347
|
-
"name": "flat",
|
|
2348
|
-
"description": "Gets whether the chart omits its incoming connector spacing."
|
|
2349
|
-
},
|
|
2350
|
-
{ "name": "className", "type": "string" },
|
|
2351
|
-
{
|
|
2352
|
-
"name": "syncFlatChildren",
|
|
2353
|
-
"description": "Marks direct children that are rendered inside a flat chart."
|
|
2354
|
-
}
|
|
2355
|
-
],
|
|
2356
|
-
"events": []
|
|
2357
|
-
}
|
|
2358
|
-
},
|
|
2359
2373
|
{
|
|
2360
2374
|
"name": "wje-orgchart-group",
|
|
2361
2375
|
"description": "OrgchartItem 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 group.\n- **afterDraw()** - After Draws the component for the org chart group.\n\n### **CSS Parts:**\n - **** - Styles the element.",
|
|
@@ -2420,9 +2434,26 @@
|
|
|
2420
2434
|
"events": []
|
|
2421
2435
|
}
|
|
2422
2436
|
},
|
|
2437
|
+
{
|
|
2438
|
+
"name": "wje-panel",
|
|
2439
|
+
"description": "This element represents a panel.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the panel.\n- **afterDraw()** - Adds event listeners after the component is drawn.\nHandles the collapsing of breadcrumbs.\n- **getBreadcrumbs(): _Array<Element>_** - Returns all the breadcrumb elements in the panel.\n\n### **Slots:**\n - _default_ - The default slot for the panel.",
|
|
2440
|
+
"doc-url": "",
|
|
2441
|
+
"attributes": [],
|
|
2442
|
+
"slots": [
|
|
2443
|
+
{ "name": "", "description": "The default slot for the panel." }
|
|
2444
|
+
],
|
|
2445
|
+
"events": [],
|
|
2446
|
+
"js": {
|
|
2447
|
+
"properties": [
|
|
2448
|
+
{ "name": "className", "type": "string" },
|
|
2449
|
+
{ "name": "last", "type": "boolean" }
|
|
2450
|
+
],
|
|
2451
|
+
"events": []
|
|
2452
|
+
}
|
|
2453
|
+
},
|
|
2423
2454
|
{
|
|
2424
2455
|
"name": "wje-pagination",
|
|
2425
|
-
"description": "This class represents the Pagination component for navigating through paginated content and dynamically updating navigation elements based on attributes like the number of items, page size, etc. Extends the WJElement class.\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- **htmlPagination(): _DocumentFragment_** - Creates a pagination control for navigating between pages of content.\nThis method generates and returns a document fragment containing pagination controls, including buttons for navigating to the first, previous, next, and last pages, as well as optional informational text about the current set of displayed items and total number of items.\n- **htmlStackButtons(paginateObj: _@param {number} paginateObj.currentPage The current active page index (1-based).\n * @param {Array<number>} paginateObj.pages An array of page numbers to display in the pagination.\n * @param {number} paginateObj.totalPages Total number of pages available for pagination.\n * _): _DocumentFragment_** - Creates and returns a DocumentFragment containing a series of buttons for pagination purposes,\nbased on the provided pagination object.\n\n### **CSS Parts:**\n - **native** - The wrapper element for the pagination component.",
|
|
2456
|
+
"description": "This class represents the Pagination component for navigating through paginated content and dynamically updating navigation elements based on attributes like the number of items, page size, etc. Extends the WJElement class.\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- **htmlPagination(): _DocumentFragment_** - Creates a pagination control for navigating between pages of content.\nThis method generates and returns a document fragment containing pagination controls, including buttons for navigating to the first, previous, next, and last pages, as well as optional informational text about the current set of displayed items and total number of items.\n- **htmlStackButtons(paginateObj: _@param {number} paginateObj.currentPage The current active page index (1-based).\n * @param {Array<number>} paginateObj.pages An array of page numbers to display in the pagination.\n * @param {number} paginateObj.totalPages Total number of pages available for pagination.\n * _): _DocumentFragment_** - Creates and returns a DocumentFragment containing a series of buttons for pagination purposes,\nbased on the provided pagination object.\n\n### **CSS Properties:**\n - **--wje-pagination-gap** - Gap between the summary and page navigation. _(default: 1rem)_\n- **--wje-pagination-summary-gap** - Gap between summary items. _(default: 1rem)_\n- **--wje-pagination-page-size-gap** - Gap between the page-size label and selector. _(default: var(--wje-spacing-small))_\n- **--wje-pagination-mobile-gap** - Gap between pagination rows below the md container width. _(default: var(--wje-spacing-x-large))_\n- **--wje-pagination-page-size-width** - Width of the page-size selector. _(default: 68px)_\n- **--wje-pagination-page-button-width** - Width of pagination buttons. _(default: 32px)_\n- **--wje-pagination-page-button-gap** - Gap between pagination buttons. _(default: 0.5rem)_\n\n### **CSS Parts:**\n - **native** - The wrapper element for the pagination component.\n- **summary** - The wrapper for the page-size selector and item range.\n- **page-size** - The wrapper for the page-size label and selector.\n- **page-size-label** - The page-size selector label.\n- **page-size-select** - The page-size selector.\n- **info** - The item range information.\n- **pages** - The page navigation wrapper.\n- **page-button** - Any pagination button.\n- **page-number** - A numbered page button.\n- **current-page** - The current page button.\n- **first-button** - The button that navigates to the first page.\n- **previous-button** - The button that navigates to the previous page.\n- **next-button** - The button that navigates to the next page.\n- **last-button** - The button that navigates to the last page.\n- **dots** - The page range ellipsis.",
|
|
2426
2457
|
"doc-url": "",
|
|
2427
2458
|
"attributes": [
|
|
2428
2459
|
{ "name": "page", "value": { "type": "string" } },
|
|
@@ -2490,23 +2521,6 @@
|
|
|
2490
2521
|
"events": []
|
|
2491
2522
|
}
|
|
2492
2523
|
},
|
|
2493
|
-
{
|
|
2494
|
-
"name": "wje-panel",
|
|
2495
|
-
"description": "This element represents a panel.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the panel.\n- **afterDraw()** - Adds event listeners after the component is drawn.\nHandles the collapsing of breadcrumbs.\n- **getBreadcrumbs(): _Array<Element>_** - Returns all the breadcrumb elements in the panel.\n\n### **Slots:**\n - _default_ - The default slot for the panel.",
|
|
2496
|
-
"doc-url": "",
|
|
2497
|
-
"attributes": [],
|
|
2498
|
-
"slots": [
|
|
2499
|
-
{ "name": "", "description": "The default slot for the panel." }
|
|
2500
|
-
],
|
|
2501
|
-
"events": [],
|
|
2502
|
-
"js": {
|
|
2503
|
-
"properties": [
|
|
2504
|
-
{ "name": "className", "type": "string" },
|
|
2505
|
-
{ "name": "last", "type": "boolean" }
|
|
2506
|
-
],
|
|
2507
|
-
"events": []
|
|
2508
|
-
}
|
|
2509
|
-
},
|
|
2510
2524
|
{
|
|
2511
2525
|
"name": "wje-popup",
|
|
2512
2526
|
"description": "This element represents a popup.\n---\n\n\n### **Events:**\n - **wje-portal:restored**\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the popup.\n- **afterDraw()** - After Draws the component.\n- **setAnchor()** - Sets the anchor for the popup.\nAdds a click event listener to the anchor element.\n- **showHide()** - Toggles the active attribute of the popup.\n- **reposition()** - Repositions the popup.\nUses the floating-ui library to compute the position.\n- **_mountContentToPortal(): _void_** - Mounts content to a portal container by creating or ensuring a portal root and mirroring\nthe host's classes, attributes, and slot contents onto the portal. This method manages the\nmovement of default and arrow slot content into the portal shadow DOM, while also setting\nup necessary mutation observers to keep attributes in sync.\n- **_restoreContentFromPortal(): _void_** - Restores the content previously moved to a portal back to its original location.\nThis method handles restoring default slot content, arrow placeholders, disconnecting\nattribute mirroring observers, and cleaning up elements and containers related to the portal.\nEnsures all placeholders and native portal elements are properly removed from the DOM.\n- **_ensurePortalRoot(): _void_** - Ensures that a portal root is created and initialized properly with a shadow DOM and attached styles.\nIf the portal root already exists, the method exits early.\nThe method creates a `div` element in the document body and attaches a shadow DOM to it.\nIt also applies the required styles to the shadow DOM, either using constructable stylesheets\nor by appending a `<style>` element. Additionally, it copies CSS custom properties from the\ncomponent's computed styles to the portal host to ensure proper style resolution.\n- **show(dispatchEvent: _boolean_): _void_** - Displays the popup by portaling the content, managing the loader state, and attaching event handlers.\nOptionally dispatches a custom event when the popup is shown.\n- **hide(dispatchEvent)** - Hides the popup.\nRemoves the popup-active class from the floating element.\nCleans up the auto update for repositioning.\n\n### **Slots:**\n - **anchor** - The slot for the anchor of the popup.\n- **arrow** - The slot for the arrow of the popup.\n- _default_ - The default slot for the popup.\n\n### **CSS Properties:**\n - **--wje-popup-backdrop-background** - Backdrop background used by mobile bottom sheet popups. _(default: var(--wje-backdrop))_\n- **--wje-popup-backdrop-opacity** - Backdrop opacity used by mobile bottom sheet popups. _(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- **--wje-popup-loader-inset** - Inset used by the popup loader overlay. _(default: 0)_\n\n### **CSS Parts:**\n - **native** - The native part of the popup.\n- **backdrop** - The backdrop used by mobile bottom sheet presentation.",
|
|
@@ -2627,46 +2641,6 @@
|
|
|
2627
2641
|
"events": []
|
|
2628
2642
|
}
|
|
2629
2643
|
},
|
|
2630
|
-
{
|
|
2631
|
-
"name": "wje-radio",
|
|
2632
|
-
"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.",
|
|
2633
|
-
"doc-url": "",
|
|
2634
|
-
"attributes": [
|
|
2635
|
-
{ "name": "checked", "value": { "type": "string" } },
|
|
2636
|
-
{ "name": "disabled", "value": { "type": "string" } },
|
|
2637
|
-
{ "name": "value", "value": { "type": "string" } }
|
|
2638
|
-
],
|
|
2639
|
-
"slots": [
|
|
2640
|
-
{
|
|
2641
|
-
"name": "",
|
|
2642
|
-
"description": "Default slot for the radio button label content."
|
|
2643
|
-
}
|
|
2644
|
-
],
|
|
2645
|
-
"events": [],
|
|
2646
|
-
"js": {
|
|
2647
|
-
"properties": [
|
|
2648
|
-
{ "name": "value" },
|
|
2649
|
-
{
|
|
2650
|
-
"name": "checked",
|
|
2651
|
-
"description": "Gets the checked property of the radio button."
|
|
2652
|
-
},
|
|
2653
|
-
{
|
|
2654
|
-
"name": "disabled",
|
|
2655
|
-
"description": "Get disabled attribute value."
|
|
2656
|
-
},
|
|
2657
|
-
{
|
|
2658
|
-
"name": "className",
|
|
2659
|
-
"description": "Sets the color of the radio button.",
|
|
2660
|
-
"type": "string"
|
|
2661
|
-
},
|
|
2662
|
-
{
|
|
2663
|
-
"name": "inputEvent",
|
|
2664
|
-
"description": "Called when an attribute changes."
|
|
2665
|
-
}
|
|
2666
|
-
],
|
|
2667
|
-
"events": []
|
|
2668
|
-
}
|
|
2669
|
-
},
|
|
2670
2644
|
{
|
|
2671
2645
|
"name": "wje-qr-code",
|
|
2672
2646
|
"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.",
|
|
@@ -2735,27 +2709,67 @@
|
|
|
2735
2709
|
}
|
|
2736
2710
|
},
|
|
2737
2711
|
{
|
|
2738
|
-
"name": "wje-radio
|
|
2739
|
-
"description": "This
|
|
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.",
|
|
2740
2714
|
"doc-url": "",
|
|
2741
2715
|
"attributes": [
|
|
2742
|
-
{ "name": "
|
|
2743
|
-
{ "name": "value", "value": { "type": "string" } },
|
|
2716
|
+
{ "name": "checked", "value": { "type": "string" } },
|
|
2744
2717
|
{ "name": "disabled", "value": { "type": "string" } },
|
|
2745
|
-
{ "name": "
|
|
2746
|
-
{ "name": "label", "value": { "type": "string" } }
|
|
2718
|
+
{ "name": "value", "value": { "type": "string" } }
|
|
2747
2719
|
],
|
|
2748
2720
|
"slots": [
|
|
2749
2721
|
{
|
|
2750
2722
|
"name": "",
|
|
2751
|
-
"description": "
|
|
2723
|
+
"description": "Default slot for the radio button label content."
|
|
2752
2724
|
}
|
|
2753
2725
|
],
|
|
2754
2726
|
"events": [],
|
|
2755
2727
|
"js": {
|
|
2756
2728
|
"properties": [
|
|
2729
|
+
{ "name": "value" },
|
|
2757
2730
|
{
|
|
2758
|
-
"name": "
|
|
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
|
+
{
|
|
2752
|
+
"name": "wje-radio-group",
|
|
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.",
|
|
2754
|
+
"doc-url": "",
|
|
2755
|
+
"attributes": [
|
|
2756
|
+
{ "name": "required", "value": { "type": "string" } },
|
|
2757
|
+
{ "name": "value", "value": { "type": "string" } },
|
|
2758
|
+
{ "name": "disabled", "value": { "type": "string" } },
|
|
2759
|
+
{ "name": "invalid", "value": { "type": "string" } },
|
|
2760
|
+
{ "name": "label", "value": { "type": "string" } }
|
|
2761
|
+
],
|
|
2762
|
+
"slots": [
|
|
2763
|
+
{
|
|
2764
|
+
"name": "",
|
|
2765
|
+
"description": "The default slot for the radio group."
|
|
2766
|
+
}
|
|
2767
|
+
],
|
|
2768
|
+
"events": [],
|
|
2769
|
+
"js": {
|
|
2770
|
+
"properties": [
|
|
2771
|
+
{
|
|
2772
|
+
"name": "value",
|
|
2759
2773
|
"description": "Getter for the value attribute."
|
|
2760
2774
|
},
|
|
2761
2775
|
{
|
|
@@ -2773,6 +2787,36 @@
|
|
|
2773
2787
|
"events": []
|
|
2774
2788
|
}
|
|
2775
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
|
+
},
|
|
2776
2820
|
{
|
|
2777
2821
|
"name": "wje-rate",
|
|
2778
2822
|
"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.",
|
|
@@ -2854,35 +2898,6 @@
|
|
|
2854
2898
|
"events": []
|
|
2855
2899
|
}
|
|
2856
2900
|
},
|
|
2857
|
-
{
|
|
2858
|
-
"name": "wje-relative-time",
|
|
2859
|
-
"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.",
|
|
2860
|
-
"doc-url": "",
|
|
2861
|
-
"attributes": [
|
|
2862
|
-
{ "name": "date", "value": { "type": "string" } },
|
|
2863
|
-
{ "name": "lang", "value": { "type": "string" } }
|
|
2864
|
-
],
|
|
2865
|
-
"events": [],
|
|
2866
|
-
"js": {
|
|
2867
|
-
"properties": [
|
|
2868
|
-
{
|
|
2869
|
-
"name": "date",
|
|
2870
|
-
"description": "Gets the date of the relative time component."
|
|
2871
|
-
},
|
|
2872
|
-
{
|
|
2873
|
-
"name": "objectDate",
|
|
2874
|
-
"description": "Gets the object date of the relative time component."
|
|
2875
|
-
},
|
|
2876
|
-
{
|
|
2877
|
-
"name": "className",
|
|
2878
|
-
"description": "Sets the lang of the relative time component.",
|
|
2879
|
-
"type": "string"
|
|
2880
|
-
},
|
|
2881
|
-
{ "name": "localizer" }
|
|
2882
|
-
],
|
|
2883
|
-
"events": []
|
|
2884
|
-
}
|
|
2885
|
-
},
|
|
2886
2901
|
{
|
|
2887
2902
|
"name": "wje-reorder-dropzone",
|
|
2888
2903
|
"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.",
|
|
@@ -2907,17 +2922,14 @@
|
|
|
2907
2922
|
}
|
|
2908
2923
|
},
|
|
2909
2924
|
{
|
|
2910
|
-
"name": "wje-reorder-
|
|
2911
|
-
"description": "This element represents a reorder
|
|
2925
|
+
"name": "wje-reorder-item",
|
|
2926
|
+
"description": "This element represents a reorder item.\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 item.\n\n### **CSS Parts:**\n - **native-reorder-item** - The native part of the reorder item.\n- **handle-part** - The handle part of the reorder item when the handle slot is present.",
|
|
2912
2927
|
"doc-url": "",
|
|
2913
|
-
"attributes": [
|
|
2914
|
-
{ "name": "dropzone", "value": { "type": "string" } },
|
|
2915
|
-
{ "name": "parent", "value": { "type": "string" } }
|
|
2916
|
-
],
|
|
2928
|
+
"attributes": [],
|
|
2917
2929
|
"slots": [
|
|
2918
2930
|
{
|
|
2919
2931
|
"name": "",
|
|
2920
|
-
"description": "The default slot for the reorder
|
|
2932
|
+
"description": "The default slot for the reorder item."
|
|
2921
2933
|
}
|
|
2922
2934
|
],
|
|
2923
2935
|
"events": [],
|
|
@@ -2933,54 +2945,41 @@
|
|
|
2933
2945
|
}
|
|
2934
2946
|
},
|
|
2935
2947
|
{
|
|
2936
|
-
"name": "wje-
|
|
2937
|
-
"description": "This element represents a
|
|
2948
|
+
"name": "wje-route",
|
|
2949
|
+
"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.",
|
|
2938
2950
|
"doc-url": "",
|
|
2939
2951
|
"attributes": [],
|
|
2940
|
-
"
|
|
2941
|
-
{
|
|
2942
|
-
"name": "",
|
|
2943
|
-
"description": "The default slot for the reorder. // @fires wje-reorder:change - Event fired when the reorder is changed."
|
|
2944
|
-
}
|
|
2945
|
-
],
|
|
2946
|
-
"events": [{ "name": "wje-reorder:change", "type": "CustomEvent" }],
|
|
2952
|
+
"events": [],
|
|
2947
2953
|
"js": {
|
|
2948
|
-
"properties": [
|
|
2949
|
-
|
|
2950
|
-
"name": "className",
|
|
2951
|
-
"description": "The class name for the component.",
|
|
2952
|
-
"type": "string"
|
|
2953
|
-
},
|
|
2954
|
-
{ "name": "dragEl", "type": "null" },
|
|
2955
|
-
{ "name": "items", "type": "array" },
|
|
2956
|
-
{ "name": "originalIndex", "type": "null" },
|
|
2957
|
-
{ "name": "isDragging", "type": "boolean" },
|
|
2958
|
-
{ "name": "offsetX", "type": "number" },
|
|
2959
|
-
{ "name": "offsetY", "type": "number" },
|
|
2960
|
-
{ "name": "cloneEl", "type": "null" }
|
|
2961
|
-
],
|
|
2962
|
-
"events": [{ "name": "wje-reorder:change", "type": "CustomEvent" }]
|
|
2954
|
+
"properties": [{ "name": "className", "type": "string" }],
|
|
2955
|
+
"events": []
|
|
2963
2956
|
}
|
|
2964
2957
|
},
|
|
2965
2958
|
{
|
|
2966
|
-
"name": "wje-
|
|
2967
|
-
"description": "This element represents a
|
|
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.",
|
|
2968
2961
|
"doc-url": "",
|
|
2969
|
-
"attributes": [
|
|
2970
|
-
|
|
2971
|
-
{
|
|
2972
|
-
"name": "",
|
|
2973
|
-
"description": "The default slot for the reorder item."
|
|
2974
|
-
}
|
|
2962
|
+
"attributes": [
|
|
2963
|
+
{ "name": "date", "value": { "type": "string" } },
|
|
2964
|
+
{ "name": "lang", "value": { "type": "string" } }
|
|
2975
2965
|
],
|
|
2976
2966
|
"events": [],
|
|
2977
2967
|
"js": {
|
|
2978
2968
|
"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
|
+
},
|
|
2979
2977
|
{
|
|
2980
2978
|
"name": "className",
|
|
2981
|
-
"description": "
|
|
2979
|
+
"description": "Sets the lang of the relative time component.",
|
|
2982
2980
|
"type": "string"
|
|
2983
|
-
}
|
|
2981
|
+
},
|
|
2982
|
+
{ "name": "localizer" }
|
|
2984
2983
|
],
|
|
2985
2984
|
"events": []
|
|
2986
2985
|
}
|
|
@@ -3009,30 +3008,28 @@
|
|
|
3009
3008
|
}
|
|
3010
3009
|
},
|
|
3011
3010
|
{
|
|
3012
|
-
"name": "wje-
|
|
3013
|
-
"description": "This element represents a
|
|
3011
|
+
"name": "wje-reorder-handle",
|
|
3012
|
+
"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.",
|
|
3014
3013
|
"doc-url": "",
|
|
3015
|
-
"attributes": [
|
|
3014
|
+
"attributes": [
|
|
3015
|
+
{ "name": "dropzone", "value": { "type": "string" } },
|
|
3016
|
+
{ "name": "parent", "value": { "type": "string" } }
|
|
3017
|
+
],
|
|
3016
3018
|
"slots": [
|
|
3017
3019
|
{
|
|
3018
3020
|
"name": "",
|
|
3019
|
-
"description": "The default slot for the
|
|
3021
|
+
"description": "The default slot for the reorder handle."
|
|
3020
3022
|
}
|
|
3021
3023
|
],
|
|
3022
3024
|
"events": [],
|
|
3023
3025
|
"js": {
|
|
3024
|
-
"properties": [
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
"doc-url": "",
|
|
3032
|
-
"attributes": [],
|
|
3033
|
-
"events": [],
|
|
3034
|
-
"js": {
|
|
3035
|
-
"properties": [{ "name": "className", "type": "string" }],
|
|
3026
|
+
"properties": [
|
|
3027
|
+
{
|
|
3028
|
+
"name": "className",
|
|
3029
|
+
"description": "The class name for the component.",
|
|
3030
|
+
"type": "string"
|
|
3031
|
+
}
|
|
3032
|
+
],
|
|
3036
3033
|
"events": []
|
|
3037
3034
|
}
|
|
3038
3035
|
},
|
|
@@ -3074,107 +3071,62 @@
|
|
|
3074
3071
|
}
|
|
3075
3072
|
},
|
|
3076
3073
|
{
|
|
3077
|
-
"name": "wje-
|
|
3078
|
-
"description": "
|
|
3074
|
+
"name": "wje-router-link",
|
|
3075
|
+
"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.",
|
|
3076
|
+
"doc-url": "",
|
|
3077
|
+
"attributes": [],
|
|
3078
|
+
"slots": [
|
|
3079
|
+
{
|
|
3080
|
+
"name": "",
|
|
3081
|
+
"description": "The default slot for the router link."
|
|
3082
|
+
}
|
|
3083
|
+
],
|
|
3084
|
+
"events": [],
|
|
3085
|
+
"js": {
|
|
3086
|
+
"properties": [{ "name": "className", "type": "string" }],
|
|
3087
|
+
"events": []
|
|
3088
|
+
}
|
|
3089
|
+
},
|
|
3090
|
+
{
|
|
3091
|
+
"name": "wje-slider",
|
|
3092
|
+
"description": "Represents a slider component that extends the WJElement class.\nThis slider supports features such as min, max, step values, bubble display, and event handling.\nIt offers both getter and setter methods for its attributes and dynamically handles rendering and updates.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the slider.\n- **afterDraw(): _void_** - Handles the post-rendering logic for a custom slider component. This method performs the following tasks:\n- Sets the position of the handle.\n- Displays a bubble indicator with the current value, if the slider has a \"bubble\" attribute.\n- Dispatches initialization, movement, and change custom events for the slider input element.\n- Updates the bubble position and value dynamically on input changes.\n- **syncAria()** - Syncs ARIA attributes on the host element.\n- **getPercentage(min: _number_, max: _number_, value: _number_): _number_** - Calculates the percentage of a value within a given range.",
|
|
3079
3093
|
"doc-url": "",
|
|
3080
3094
|
"attributes": [
|
|
3081
|
-
{ "name": "
|
|
3095
|
+
{ "name": "max", "value": { "type": "string" } },
|
|
3096
|
+
{ "name": "min", "value": { "type": "string" } },
|
|
3097
|
+
{ "name": "step", "value": { "type": "string" } },
|
|
3098
|
+
{ "name": "value", "value": { "type": "string" } },
|
|
3082
3099
|
{ "name": "disabled", "value": { "type": "string" } },
|
|
3083
|
-
{ "name": "
|
|
3084
|
-
{ "name": "portaled", "value": { "type": "string" } }
|
|
3100
|
+
{ "name": "bubble", "value": { "type": "string" } }
|
|
3085
3101
|
],
|
|
3086
3102
|
"events": [],
|
|
3087
3103
|
"js": {
|
|
3088
3104
|
"properties": [
|
|
3089
|
-
{
|
|
3090
|
-
"name": "dependencies",
|
|
3091
|
-
"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.",
|
|
3092
|
-
"type": "object"
|
|
3093
|
-
},
|
|
3094
3105
|
{
|
|
3095
3106
|
"name": "value",
|
|
3096
|
-
"description": "
|
|
3097
|
-
},
|
|
3098
|
-
{
|
|
3099
|
-
"name": "maxOptions",
|
|
3100
|
-
"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."
|
|
3101
|
-
},
|
|
3102
|
-
{ "name": "defaultValue" },
|
|
3103
|
-
{
|
|
3104
|
-
"name": "portaled",
|
|
3105
|
-
"description": "Getter for the `portaled` attribute value."
|
|
3106
|
-
},
|
|
3107
|
-
{
|
|
3108
|
-
"name": "isPortaled",
|
|
3109
|
-
"description": "Checks whether popup content should be portaled."
|
|
3110
|
-
},
|
|
3111
|
-
{
|
|
3112
|
-
"name": "trigger",
|
|
3113
|
-
"description": "Returns the trigger value."
|
|
3114
|
-
},
|
|
3115
|
-
{
|
|
3116
|
-
"name": "disabled",
|
|
3117
|
-
"description": "Retrieves the current state of the 'disabled' attribute."
|
|
3118
|
-
},
|
|
3119
|
-
{
|
|
3120
|
-
"name": "readonly",
|
|
3121
|
-
"description": "Checks if the 'readonly' attribute is present on the element."
|
|
3122
|
-
},
|
|
3123
|
-
{
|
|
3124
|
-
"name": "maxHeight",
|
|
3125
|
-
"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."
|
|
3126
|
-
},
|
|
3127
|
-
{
|
|
3128
|
-
"name": "offset",
|
|
3129
|
-
"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'."
|
|
3130
|
-
},
|
|
3131
|
-
{
|
|
3132
|
-
"name": "selectedOptions",
|
|
3133
|
-
"description": "Retrieves the selected options."
|
|
3134
|
-
},
|
|
3135
|
-
{
|
|
3136
|
-
"name": "lazy",
|
|
3137
|
-
"description": "Getter for the 'lazy' property."
|
|
3107
|
+
"description": "Returns the value of the slider."
|
|
3138
3108
|
},
|
|
3139
3109
|
{
|
|
3140
|
-
"name": "
|
|
3141
|
-
"description": "
|
|
3110
|
+
"name": "min",
|
|
3111
|
+
"description": "Returns the minimum value of the slider."
|
|
3142
3112
|
},
|
|
3143
3113
|
{
|
|
3144
|
-
"name": "
|
|
3145
|
-
"description": "
|
|
3114
|
+
"name": "max",
|
|
3115
|
+
"description": "Returns the maximum value of the slider."
|
|
3146
3116
|
},
|
|
3147
3117
|
{
|
|
3148
|
-
"name": "
|
|
3149
|
-
"description": "
|
|
3118
|
+
"name": "step",
|
|
3119
|
+
"description": "Returns the step value of the slider."
|
|
3150
3120
|
},
|
|
3151
3121
|
{ "name": "className", "type": "string" },
|
|
3152
3122
|
{
|
|
3153
|
-
"name": "
|
|
3154
|
-
"description": "
|
|
3155
|
-
},
|
|
3156
|
-
{
|
|
3157
|
-
"name": "processClickedOption",
|
|
3158
|
-
"description": "Handles the logic for processing the selection state of a clicked option element."
|
|
3123
|
+
"name": "setHandlePosition",
|
|
3124
|
+
"description": "Sets the handle position of the slider."
|
|
3159
3125
|
},
|
|
3160
3126
|
{
|
|
3161
|
-
"name": "
|
|
3162
|
-
"description": "
|
|
3163
|
-
}
|
|
3164
|
-
{ "name": "localizer" },
|
|
3165
|
-
{ "name": "native", "type": "HTMLElement|null" },
|
|
3166
|
-
{ "name": "popup", "type": "HTMLElement|null" },
|
|
3167
|
-
{ "name": "labelElement", "type": "HTMLElement|null" },
|
|
3168
|
-
{ "name": "slotStart", "type": "HTMLElement|null" },
|
|
3169
|
-
{ "name": "slotEnd", "type": "HTMLElement|null" },
|
|
3170
|
-
{ "name": "input", "type": "HTMLElement|null" },
|
|
3171
|
-
{ "name": "displayText", "type": "HTMLElement|null" },
|
|
3172
|
-
{ "name": "chips", "type": "HTMLElement|null" },
|
|
3173
|
-
{ "name": "clear", "type": "HTMLElement|null" },
|
|
3174
|
-
{ "name": "list", "type": "HTMLElement|null" },
|
|
3175
|
-
{ "name": "emptyState", "type": "HTMLElement|null" },
|
|
3176
|
-
{ "name": "_value", "type": "array" },
|
|
3177
|
-
{ "name": "_selectedOptions", "type": "array" }
|
|
3127
|
+
"name": "setBubble",
|
|
3128
|
+
"description": "Updates the position and content of a bubble element based on the input value.\n\nThis function calculates the position of the bubble using the percentage representation\nof the input's current value relative to its minimum and maximum bounds. It then adjusts\nthe bubble's left position dynamically for aesthetic purposes and updates its displayed\ncontent to reflect the current input value.\n\nThe function relies on the following elements:\n- `this.input`: Represents the input element with properties `min`, `max`, and `value`.\n- `this.output`: Represents the bubble element to be positioned and updated.\n\nThe left positioning of the bubble ensures precise alignment with the input value indicator."
|
|
3129
|
+
}
|
|
3178
3130
|
],
|
|
3179
3131
|
"events": []
|
|
3180
3132
|
}
|
|
@@ -3425,45 +3377,127 @@
|
|
|
3425
3377
|
}
|
|
3426
3378
|
},
|
|
3427
3379
|
{
|
|
3428
|
-
"name": "wje-
|
|
3429
|
-
"description": "
|
|
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.",
|
|
3430
3382
|
"doc-url": "",
|
|
3431
3383
|
"attributes": [
|
|
3432
|
-
{ "name": "
|
|
3433
|
-
{ "name": "min", "value": { "type": "string" } },
|
|
3434
|
-
{ "name": "step", "value": { "type": "string" } },
|
|
3435
|
-
{ "name": "value", "value": { "type": "string" } },
|
|
3384
|
+
{ "name": "active", "value": { "type": "string" } },
|
|
3436
3385
|
{ "name": "disabled", "value": { "type": "string" } },
|
|
3437
|
-
{ "name": "
|
|
3386
|
+
{ "name": "readonly", "value": { "type": "string" } },
|
|
3387
|
+
{ "name": "portaled", "value": { "type": "string" } }
|
|
3438
3388
|
],
|
|
3439
3389
|
"events": [],
|
|
3440
3390
|
"js": {
|
|
3441
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
|
+
},
|
|
3442
3397
|
{
|
|
3443
3398
|
"name": "value",
|
|
3444
|
-
"description": "
|
|
3399
|
+
"description": "Retrieves the current value."
|
|
3445
3400
|
},
|
|
3446
3401
|
{
|
|
3447
|
-
"name": "
|
|
3448
|
-
"description": "
|
|
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."
|
|
3449
3404
|
},
|
|
3405
|
+
{ "name": "defaultValue" },
|
|
3450
3406
|
{
|
|
3451
|
-
"name": "
|
|
3452
|
-
"description": "
|
|
3407
|
+
"name": "portaled",
|
|
3408
|
+
"description": "Getter for the `portaled` attribute value."
|
|
3453
3409
|
},
|
|
3454
3410
|
{
|
|
3455
|
-
"name": "
|
|
3456
|
-
"description": "
|
|
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."
|
|
3457
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" }
|
|
3481
|
+
],
|
|
3482
|
+
"events": []
|
|
3483
|
+
}
|
|
3484
|
+
},
|
|
3485
|
+
{
|
|
3486
|
+
"name": "wje-split-view",
|
|
3487
|
+
"description": "This element represents a split view.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the split view.\n- **afterDraw()** - Sets up the event listeners after the component is drawn.\n- **detectSize()** - Detects the size of the split view.\n- **pixelsToPercentage(value: _number_): _number_** - Converts pixels to a percentage.\n\n### **Slots:**\n - **start** - Slot for the start view.\n- **end** - Slot for the end view.\n- **divider** - Slot for the divider.\n\n### **CSS Properties:**\n - **--wje-split-view-divider-area** - Defines the interactive area (hitbox) of the divider for resizing. Accepts any valid CSS length unit (e.g., `px`, `rem`, `%`). _(default: 12px)_\n- **--wje-split-view-divider-width** - Specifies the visual width of the divider. Controls how thick the divider appears. _(default: 4px)_\n- **--wje-split-view-min** - Sets the minimum size limit for the split views. Ensures that a view cannot be resized below this value. _(default: 0%)_\n- **--wje-split-view-max** - Sets the maximum size limit for the split views. Ensures that a view cannot be resized beyond this value. _(default: 100%)_\n- **--wje-split-view-calc-a** - Represents the calculated size of the first view. This is used to dynamically set the size of the first view. _(default: 50%)_\n- **--wje-split-view-calc-b** - Represents the calculated size of the second view. This is used to dynamically set the size of the second view. _(default: 50%)_\n- **--wje-split-view-clamp-a** - Clamps the size of the first view between minimum and maximum limits. Ensures the calculated size stays within the defined range. _(default: clamp(var(--wje-split-view-min), var(--wje-split-view-calc-a), var(--wje-split-view-max)))_\n- **--wje-split-view-clamp-b** - Clamps the size of the second view between minimum and maximum limits. Ensures the calculated size stays within the defined range. _(default: clamp(var(--wje-split-view-min), var(--wje-split-view-calc-b), var(--wje-split-view-max)))_\n- **--wje-split-view-divider-background** - Sets the background color of the divider. Accepts any valid CSS color value (e.g., hex, RGB, or CSS variable). _(default: var(--wje-border-color))_\n- **--wje-split-view-divider-size** - Defines the overall size of the divider, affecting both its visual and interactive dimensions. Accepts any valid CSS length unit. _(default: 4px)_\n\n### **CSS Parts:**\n - **wje-divider** - The divider of the split view.",
|
|
3488
|
+
"doc-url": "",
|
|
3489
|
+
"attributes": [],
|
|
3490
|
+
"slots": [
|
|
3491
|
+
{ "name": "start", "description": "Slot for the start view." },
|
|
3492
|
+
{ "name": "end", "description": "Slot for the end view." },
|
|
3493
|
+
{ "name": "divider", "description": "Slot for the divider." }
|
|
3494
|
+
],
|
|
3495
|
+
"events": [],
|
|
3496
|
+
"js": {
|
|
3497
|
+
"properties": [
|
|
3498
|
+
{ "name": "initial" },
|
|
3458
3499
|
{ "name": "className", "type": "string" },
|
|
3459
|
-
{
|
|
3460
|
-
"name": "setHandlePosition",
|
|
3461
|
-
"description": "Sets the handle position of the slider."
|
|
3462
|
-
},
|
|
3463
|
-
{
|
|
3464
|
-
"name": "setBubble",
|
|
3465
|
-
"description": "Updates the position and content of a bubble element based on the input value.\n\nThis function calculates the position of the bubble using the percentage representation\nof the input's current value relative to its minimum and maximum bounds. It then adjusts\nthe bubble's left position dynamically for aesthetic purposes and updates its displayed\ncontent to reflect the current input value.\n\nThe function relies on the following elements:\n- `this.input`: Represents the input element with properties `min`, `max`, and `value`.\n- `this.output`: Represents the bubble element to be positioned and updated.\n\nThe left positioning of the bubble ensures precise alignment with the input value indicator."
|
|
3466
|
-
}
|
|
3500
|
+
{ "name": "handleDrag", "description": "Handles the drag event." }
|
|
3467
3501
|
],
|
|
3468
3502
|
"events": []
|
|
3469
3503
|
}
|
|
@@ -3490,26 +3524,6 @@
|
|
|
3490
3524
|
"events": []
|
|
3491
3525
|
}
|
|
3492
3526
|
},
|
|
3493
|
-
{
|
|
3494
|
-
"name": "wje-split-view",
|
|
3495
|
-
"description": "This element represents a split view.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the split view.\n- **afterDraw()** - Sets up the event listeners after the component is drawn.\n- **detectSize()** - Detects the size of the split view.\n- **pixelsToPercentage(value: _number_): _number_** - Converts pixels to a percentage.\n\n### **Slots:**\n - **start** - Slot for the start view.\n- **end** - Slot for the end view.\n- **divider** - Slot for the divider.\n\n### **CSS Properties:**\n - **--wje-split-view-divider-area** - Defines the interactive area (hitbox) of the divider for resizing. Accepts any valid CSS length unit (e.g., `px`, `rem`, `%`). _(default: 12px)_\n- **--wje-split-view-divider-width** - Specifies the visual width of the divider. Controls how thick the divider appears. _(default: 4px)_\n- **--wje-split-view-min** - Sets the minimum size limit for the split views. Ensures that a view cannot be resized below this value. _(default: 0%)_\n- **--wje-split-view-max** - Sets the maximum size limit for the split views. Ensures that a view cannot be resized beyond this value. _(default: 100%)_\n- **--wje-split-view-calc-a** - Represents the calculated size of the first view. This is used to dynamically set the size of the first view. _(default: 50%)_\n- **--wje-split-view-calc-b** - Represents the calculated size of the second view. This is used to dynamically set the size of the second view. _(default: 50%)_\n- **--wje-split-view-clamp-a** - Clamps the size of the first view between minimum and maximum limits. Ensures the calculated size stays within the defined range. _(default: clamp(var(--wje-split-view-min), var(--wje-split-view-calc-a), var(--wje-split-view-max)))_\n- **--wje-split-view-clamp-b** - Clamps the size of the second view between minimum and maximum limits. Ensures the calculated size stays within the defined range. _(default: clamp(var(--wje-split-view-min), var(--wje-split-view-calc-b), var(--wje-split-view-max)))_\n- **--wje-split-view-divider-background** - Sets the background color of the divider. Accepts any valid CSS color value (e.g., hex, RGB, or CSS variable). _(default: var(--wje-border-color))_\n- **--wje-split-view-divider-size** - Defines the overall size of the divider, affecting both its visual and interactive dimensions. Accepts any valid CSS length unit. _(default: 4px)_\n\n### **CSS Parts:**\n - **wje-divider** - The divider of the split view.",
|
|
3496
|
-
"doc-url": "",
|
|
3497
|
-
"attributes": [],
|
|
3498
|
-
"slots": [
|
|
3499
|
-
{ "name": "start", "description": "Slot for the start view." },
|
|
3500
|
-
{ "name": "end", "description": "Slot for the end view." },
|
|
3501
|
-
{ "name": "divider", "description": "Slot for the divider." }
|
|
3502
|
-
],
|
|
3503
|
-
"events": [],
|
|
3504
|
-
"js": {
|
|
3505
|
-
"properties": [
|
|
3506
|
-
{ "name": "initial" },
|
|
3507
|
-
{ "name": "className", "type": "string" },
|
|
3508
|
-
{ "name": "handleDrag", "description": "Handles the drag event." }
|
|
3509
|
-
],
|
|
3510
|
-
"events": []
|
|
3511
|
-
}
|
|
3512
|
-
},
|
|
3513
3527
|
{
|
|
3514
3528
|
"name": "wje-step",
|
|
3515
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.",
|
|
@@ -3584,6 +3598,37 @@
|
|
|
3584
3598
|
]
|
|
3585
3599
|
}
|
|
3586
3600
|
},
|
|
3601
|
+
{
|
|
3602
|
+
"name": "wje-tab",
|
|
3603
|
+
"description": "This element represents a tab.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the tab.\n- **afterDraw()** - Sets up event listeners after the component is rendered.\n//\n- **syncAriaLabel()** - Sync aria-label on host based on slotted text when not provided.\n- **setRovingTabIndex(value: _number_)** - Sets the roving tabindex on the internal focusable anchor.\n- **beforeDisconnect()** - Cleans up before the component is disconnected.\n\n### **CSS Properties:**\n - **--wje-tab-text-transform** - The text transformation for the tab (e.g., uppercase, lowercase). _(default: uppercase)_\n- **--wje-tab-font-weight** - The font weight of the tab text. _(default: 500)_\n- **--wje-tab-letter-spacing** - The letter spacing of the tab text. _(default: 0.06em)_\n- **--wje-tab-padding-inline** - The horizontal padding of the tab. _(default: 1rem)_\n- **--wje-tab-padding-top** - The top padding of the tab text. _(default: .75rem)_\n- **--wje-tab-padding-bottom** - The bottom padding of the tab text. _(default: .75rem)_\n- **--wje-tab-color-active** - The text color of the active tab. _(default: var(--wje-color-primary-11))_\n- **--wje-tab-color-hover** - The text color of the tab when hovered. //@fires wje-tab:change - Dispatched when the tab is changed. _(default: var(--wje-color-primary-1))_",
|
|
3604
|
+
"doc-url": "",
|
|
3605
|
+
"attributes": [],
|
|
3606
|
+
"events": [],
|
|
3607
|
+
"js": {
|
|
3608
|
+
"properties": [
|
|
3609
|
+
{
|
|
3610
|
+
"name": "panel",
|
|
3611
|
+
"description": "Retrieves the value of the 'panel' attribute of the element."
|
|
3612
|
+
},
|
|
3613
|
+
{
|
|
3614
|
+
"name": "route",
|
|
3615
|
+
"description": "Retrieves the value of the 'route' attribute.\nIf the 'route' attribute is not set, it returns null."
|
|
3616
|
+
},
|
|
3617
|
+
{
|
|
3618
|
+
"name": "className",
|
|
3619
|
+
"description": "The class name for the component.",
|
|
3620
|
+
"type": "string"
|
|
3621
|
+
},
|
|
3622
|
+
{
|
|
3623
|
+
"name": "last",
|
|
3624
|
+
"description": "Indicates whether this is the last tab.",
|
|
3625
|
+
"type": "boolean"
|
|
3626
|
+
},
|
|
3627
|
+
{ "name": "_hasPanel", "type": "boolean" }
|
|
3628
|
+
],
|
|
3629
|
+
"events": []
|
|
3630
|
+
}
|
|
3631
|
+
},
|
|
3587
3632
|
{
|
|
3588
3633
|
"name": "wje-tab-group",
|
|
3589
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)_",
|
|
@@ -3619,32 +3664,24 @@
|
|
|
3619
3664
|
}
|
|
3620
3665
|
},
|
|
3621
3666
|
{
|
|
3622
|
-
"name": "wje-
|
|
3623
|
-
"description": "
|
|
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))_",
|
|
3624
3669
|
"doc-url": "",
|
|
3625
3670
|
"attributes": [],
|
|
3671
|
+
"slots": [
|
|
3672
|
+
{
|
|
3673
|
+
"name": "thumbnail-slot",
|
|
3674
|
+
"description": "The slot for the thumbnail content."
|
|
3675
|
+
}
|
|
3676
|
+
],
|
|
3626
3677
|
"events": [],
|
|
3627
3678
|
"js": {
|
|
3628
3679
|
"properties": [
|
|
3629
|
-
{
|
|
3630
|
-
"name": "panel",
|
|
3631
|
-
"description": "Retrieves the value of the 'panel' attribute of the element."
|
|
3632
|
-
},
|
|
3633
|
-
{
|
|
3634
|
-
"name": "route",
|
|
3635
|
-
"description": "Retrieves the value of the 'route' attribute.\nIf the 'route' attribute is not set, it returns null."
|
|
3636
|
-
},
|
|
3637
3680
|
{
|
|
3638
3681
|
"name": "className",
|
|
3639
|
-
"description": "The class name for the component
|
|
3682
|
+
"description": "The class name for the component",
|
|
3640
3683
|
"type": "string"
|
|
3641
|
-
}
|
|
3642
|
-
{
|
|
3643
|
-
"name": "last",
|
|
3644
|
-
"description": "Indicates whether this is the last tab.",
|
|
3645
|
-
"type": "boolean"
|
|
3646
|
-
},
|
|
3647
|
-
{ "name": "_hasPanel", "type": "boolean" }
|
|
3684
|
+
}
|
|
3648
3685
|
],
|
|
3649
3686
|
"events": []
|
|
3650
3687
|
}
|
|
@@ -3927,55 +3964,6 @@
|
|
|
3927
3964
|
"events": []
|
|
3928
3965
|
}
|
|
3929
3966
|
},
|
|
3930
|
-
{
|
|
3931
|
-
"name": "wje-thumbnail",
|
|
3932
|
-
"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))_",
|
|
3933
|
-
"doc-url": "",
|
|
3934
|
-
"attributes": [],
|
|
3935
|
-
"slots": [
|
|
3936
|
-
{
|
|
3937
|
-
"name": "thumbnail-slot",
|
|
3938
|
-
"description": "The slot for the thumbnail content."
|
|
3939
|
-
}
|
|
3940
|
-
],
|
|
3941
|
-
"events": [],
|
|
3942
|
-
"js": {
|
|
3943
|
-
"properties": [
|
|
3944
|
-
{
|
|
3945
|
-
"name": "className",
|
|
3946
|
-
"description": "The class name for the component",
|
|
3947
|
-
"type": "string"
|
|
3948
|
-
}
|
|
3949
|
-
],
|
|
3950
|
-
"events": []
|
|
3951
|
-
}
|
|
3952
|
-
},
|
|
3953
|
-
{
|
|
3954
|
-
"name": "wje-toolbar",
|
|
3955
|
-
"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.",
|
|
3956
|
-
"doc-url": "",
|
|
3957
|
-
"attributes": [],
|
|
3958
|
-
"slots": [
|
|
3959
|
-
{
|
|
3960
|
-
"name": "start",
|
|
3961
|
-
"description": "The start slot for the toolbar."
|
|
3962
|
-
},
|
|
3963
|
-
{ "name": "end", "description": "The end slot for the toolbar." }
|
|
3964
|
-
],
|
|
3965
|
-
"events": [],
|
|
3966
|
-
"js": {
|
|
3967
|
-
"properties": [
|
|
3968
|
-
{
|
|
3969
|
-
"name": "className",
|
|
3970
|
-
"description": "The class name for the component.",
|
|
3971
|
-
"type": "string"
|
|
3972
|
-
},
|
|
3973
|
-
{ "name": "_breadcrumbState" },
|
|
3974
|
-
{ "name": "_responsiveFrame", "type": "null" }
|
|
3975
|
-
],
|
|
3976
|
-
"events": []
|
|
3977
|
-
}
|
|
3978
|
-
},
|
|
3979
3967
|
{
|
|
3980
3968
|
"name": "wje-toolbar-action",
|
|
3981
3969
|
"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.",
|
|
@@ -4021,50 +4009,6 @@
|
|
|
4021
4009
|
"events": []
|
|
4022
4010
|
}
|
|
4023
4011
|
},
|
|
4024
|
-
{
|
|
4025
|
-
"name": "wje-tree-item",
|
|
4026
|
-
"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.",
|
|
4027
|
-
"doc-url": "",
|
|
4028
|
-
"attributes": [
|
|
4029
|
-
{ "name": "selected", "value": { "type": "string" } },
|
|
4030
|
-
{ "name": "indeterminate", "value": { "type": "string" } },
|
|
4031
|
-
{ "name": "expanded", "value": { "type": "string" } }
|
|
4032
|
-
],
|
|
4033
|
-
"slots": [
|
|
4034
|
-
{
|
|
4035
|
-
"name": "",
|
|
4036
|
-
"description": "Default slot for rendering the tree item's content (e.g., text or custom elements)."
|
|
4037
|
-
}
|
|
4038
|
-
],
|
|
4039
|
-
"events": [],
|
|
4040
|
-
"js": {
|
|
4041
|
-
"properties": [
|
|
4042
|
-
{
|
|
4043
|
-
"name": "expanded",
|
|
4044
|
-
"description": "Retrieves the value of the 'expanded' state for the current element.\nThis getter checks whether the 'expanded' attribute is present on the element.\nIf the attribute exists, it returns true, representing that the element is expanded.\nOtherwise, it returns false, indicating that the element is not expanded."
|
|
4045
|
-
},
|
|
4046
|
-
{
|
|
4047
|
-
"name": "selected",
|
|
4048
|
-
"description": "Getter method for determining if the 'selected' attribute is present on the element."
|
|
4049
|
-
},
|
|
4050
|
-
{
|
|
4051
|
-
"name": "selection",
|
|
4052
|
-
"description": "Retrieves the current selection."
|
|
4053
|
-
},
|
|
4054
|
-
{
|
|
4055
|
-
"name": "indeterminate",
|
|
4056
|
-
"description": "Retrieves the state of the indeterminate attribute."
|
|
4057
|
-
},
|
|
4058
|
-
{
|
|
4059
|
-
"name": "className",
|
|
4060
|
-
"description": "The class name for the component.",
|
|
4061
|
-
"type": "string"
|
|
4062
|
-
},
|
|
4063
|
-
{ "name": "_selection", "type": "string" }
|
|
4064
|
-
],
|
|
4065
|
-
"events": []
|
|
4066
|
-
}
|
|
4067
|
-
},
|
|
4068
4012
|
{
|
|
4069
4013
|
"name": "wje-tooltip",
|
|
4070
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.",
|
|
@@ -4117,6 +4061,32 @@
|
|
|
4117
4061
|
"events": []
|
|
4118
4062
|
}
|
|
4119
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
|
+
},
|
|
4120
4090
|
{
|
|
4121
4091
|
"name": "wje-tree",
|
|
4122
4092
|
"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.",
|
|
@@ -4177,6 +4147,50 @@
|
|
|
4177
4147
|
"events": []
|
|
4178
4148
|
}
|
|
4179
4149
|
},
|
|
4150
|
+
{
|
|
4151
|
+
"name": "wje-tree-item",
|
|
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.",
|
|
4153
|
+
"doc-url": "",
|
|
4154
|
+
"attributes": [
|
|
4155
|
+
{ "name": "selected", "value": { "type": "string" } },
|
|
4156
|
+
{ "name": "indeterminate", "value": { "type": "string" } },
|
|
4157
|
+
{ "name": "expanded", "value": { "type": "string" } }
|
|
4158
|
+
],
|
|
4159
|
+
"slots": [
|
|
4160
|
+
{
|
|
4161
|
+
"name": "",
|
|
4162
|
+
"description": "Default slot for rendering the tree item's content (e.g., text or custom elements)."
|
|
4163
|
+
}
|
|
4164
|
+
],
|
|
4165
|
+
"events": [],
|
|
4166
|
+
"js": {
|
|
4167
|
+
"properties": [
|
|
4168
|
+
{
|
|
4169
|
+
"name": "expanded",
|
|
4170
|
+
"description": "Retrieves the value of the 'expanded' state for the current element.\nThis getter checks whether the 'expanded' attribute is present on the element.\nIf the attribute exists, it returns true, representing that the element is expanded.\nOtherwise, it returns false, indicating that the element is not expanded."
|
|
4171
|
+
},
|
|
4172
|
+
{
|
|
4173
|
+
"name": "selected",
|
|
4174
|
+
"description": "Getter method for determining if the 'selected' attribute is present on the element."
|
|
4175
|
+
},
|
|
4176
|
+
{
|
|
4177
|
+
"name": "selection",
|
|
4178
|
+
"description": "Retrieves the current selection."
|
|
4179
|
+
},
|
|
4180
|
+
{
|
|
4181
|
+
"name": "indeterminate",
|
|
4182
|
+
"description": "Retrieves the state of the indeterminate attribute."
|
|
4183
|
+
},
|
|
4184
|
+
{
|
|
4185
|
+
"name": "className",
|
|
4186
|
+
"description": "The class name for the component.",
|
|
4187
|
+
"type": "string"
|
|
4188
|
+
},
|
|
4189
|
+
{ "name": "_selection", "type": "string" }
|
|
4190
|
+
],
|
|
4191
|
+
"events": []
|
|
4192
|
+
}
|
|
4193
|
+
},
|
|
4180
4194
|
{
|
|
4181
4195
|
"name": "wje-visually-hidden",
|
|
4182
4196
|
"description": "This element represents a visually hidden element.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _object_** - Draws the component for the visually hidden element.\n\n### **Slots:**\n - _default_ - The default slot for the visually hidden element.",
|