wj-elements 0.7.4 → 0.7.5
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 +4764 -4753
- package/dist/dark.css +1 -1
- package/dist/light.css +1 -1
- package/dist/web-types.json +528 -528
- package/dist/wje-button.js +1 -1
- package/dist/wje-checkbox.js +1 -1
- package/dist/wje-master.js +1 -1
- package/dist/wje-select.js +21 -7
- package/dist/wje-select.js.map +1 -1
- package/dist/wje-stepper.js +1 -1
- package/dist/wje-store.js +1 -1
- package/dist/wje-store.js.map +1 -1
- package/package.json +1 -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.5",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -305,6 +305,30 @@
|
|
|
305
305
|
"events": []
|
|
306
306
|
}
|
|
307
307
|
},
|
|
308
|
+
{
|
|
309
|
+
"name": "wje-badge",
|
|
310
|
+
"description": "This class represents a Badge element, extending the WJElement class.\n---\n\n\n### **Methods:**\n - **setupAttributes(): _void_** - Configures initial attributes for the Badge element.\n- **draw(): _DocumentFragment_** - Creates the DOM structure for the Badge element.\n\n### **Slots:**\n - _default_ - The badge's main content.\n\n### **CSS Properties:**\n - **--wje-badge-border-radius** - Border radius of the badge element. _(default: var(--wje-border-radius-pill))_\n\n### **CSS Parts:**\n - **native** - The component's native wrapper.",
|
|
311
|
+
"doc-url": "",
|
|
312
|
+
"attributes": [
|
|
313
|
+
{
|
|
314
|
+
"name": "color",
|
|
315
|
+
"description": "The color of the badge element. Accepts any valid string primary, secondary, success, danger, warning, info, default.",
|
|
316
|
+
"value": { "type": "string" }
|
|
317
|
+
}
|
|
318
|
+
],
|
|
319
|
+
"slots": [{ "name": "", "description": "The badge's main content." }],
|
|
320
|
+
"events": [],
|
|
321
|
+
"js": {
|
|
322
|
+
"properties": [
|
|
323
|
+
{
|
|
324
|
+
"name": "className",
|
|
325
|
+
"description": "The class name for the Badge element.",
|
|
326
|
+
"type": "string"
|
|
327
|
+
}
|
|
328
|
+
],
|
|
329
|
+
"events": []
|
|
330
|
+
}
|
|
331
|
+
},
|
|
308
332
|
{
|
|
309
333
|
"name": "wje-breadcrumb",
|
|
310
334
|
"description": "This class represents a Breadcrumb element, extending the WJElement class. It provides a navigational aid in user interfaces, displaying the current location within a hierarchy.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Setup attributes for the Breadcrumb element.\n- **draw(): _object_** - Draw method for the Breadcrumb element.\n- **shouldRenderSeparator(): _boolean_** - Returns whether the separator should be visible after this breadcrumb.\n- **hasVisibleBreadcrumbAfter(): _boolean_** - Returns whether any later breadcrumb is still visible in the rendered trail.\n- **isBreadcrumbVisibleInTrail(breadcrumb: _Element_): _boolean_** - Returns whether a breadcrumb is visible in the rendered trail.\n- **syncNativeAttributes()** - Synchronizes host attributes to the internal anchor.\n- **afterDraw()** - Sets up native anchor listeners after render.\n- **beforeDisconnect()** - Removes native anchor listeners before redraw/disconnect.\n- **handleDisabledNativeClick(e: _MouseEvent_)** - Prevents disabled breadcrumbs from navigating or bubbling click handlers.\n- **drawCollapsedIndicator(): _any_** - Renders the collapsed indicator based on the current collapsed variant.\nIf the collapsed variant is 'DROPDOWN', it invokes the collapseDropdown method.\nMobile breakpoint variants render compact breadcrumb summaries, otherwise the default button is used.\n- **isMobileCollapsedVariant(): _boolean_** - Returns whether the current collapsed variant is a compact mobile layout.\n- **collapseDropdown(): _HTMLElement_** - Creates and returns a dropdown UI component for collapsed breadcrumbs.\nThis method generates a dropdown element with a button trigger and a menu populated with items corresponding\nto the collapsed breadcrumbs. The dropdown is configured to handle specific interactions and ensure that\nevents are appropriately managed to avoid propagation issues. Menu items are linked to their corresponding\nbreadcrumbs, enabling the same functionality as clicking on the original breadcrumb.\n- **createBreadcrumbDropdown({ breadcrumbs, trigger, placement = 'bottom' }, options: _@param {Array<HTMLElement>} options.breadcrumbs Breadcrumb elements to mirror in the menu.\n * @param {HTMLElement} options.trigger Element assigned to the dropdown trigger slot.\n * @param {string} options.placement Floating UI placement token for the popup.\n * _): _HTMLElement_** - Creates a dropdown containing breadcrumb menu items.\n- **createCollapsedBreadcrumbMenu(breadcrumbs: _Array<HTMLElement>_): _HTMLElement_** - Creates the menu used by collapsed dropdown variants.\n- **getCollapsedMenuBreadcrumbs(isBreakpointMenuIndicator: _boolean_): _Array<HTMLElement>_** - Returns breadcrumbs that should be exposed in a collapsed menu.\n- **collapseMobileVariant(variant: _string_): _HTMLElement_** - Renders one of the compact mobile breakpoint variants.\n- **collapseMobileText(): _HTMLElement_** - Renders only the current breadcrumb title.\n- **collapseMobileBack(): _HTMLElement_** - Renders a parent back action above the current title.\n- **collapseMobileParentTitle(): _HTMLElement_** - Renders parent context above the current title.\n- **collapseMobileMenuTitle(): _HTMLElement_** - Renders a menu trigger with the current title.\n- **collapseMobileSheet(): _HTMLElement_** - Renders the future sheet variant using the dropdown fallback for now.\n- **createMobileDropdown(trigger: _HTMLElement_): _HTMLElement_** - Creates a dropdown fallback for mobile menu-like variants.\n- **createMobileDropdownTrigger({ icon, iconPosition = 'start', label, ariaLabel, className }, options: _@param {string} options.icon Icon shown next to the title.\n * @param {string} options.iconPosition Whether the icon renders at the start or end.\n * @param {string} options.label Current breadcrumb label shown beside the icon.\n * @param {string} options.ariaLabel Accessible name for the dropdown trigger.\n * @param {string} options.className Variant-specific class applied to the trigger.\n * _): _HTMLElement_** - Creates a compact mobile dropdown trigger.\n- **createMobileContainer(className: _string_): _HTMLElement_** - Creates a wrapper for compact mobile breadcrumb variants.\n- **createMobileBreadcrumbControl(breadcrumb: _HTMLElement|null_, className: _string_, { actionable = false, ariaCurrent = false, ariaLabel, icon }, options: _@param {boolean} options.actionable Whether clicks should forward to the source breadcrumb.\n * @param {boolean} options.ariaCurrent Whether the control marks the current page.\n * @param {string} options.ariaLabel Accessible name for action controls.\n * @param {string} options.icon Optional icon shown before the label.\n * _): _HTMLElement_** - Creates a text or button control for a breadcrumb.\n- **getTrailBreadcrumbs(): _Array<HTMLElement>_** - Returns the full trail of sibling breadcrumbs.\n- **getCurrentBreadcrumb(): _HTMLElement|null_** - Returns the current breadcrumb item.\n- **getParentBreadcrumb(): _HTMLElement|null_** - Returns the parent breadcrumb item.\n- **isBreadcrumbActionable(breadcrumb: _HTMLElement|null_): _boolean_** - Returns whether a breadcrumb has a known action to forward.\n- **forwardBreadcrumbClick(breadcrumb: _HTMLElement|null_)** - Forwards a compact control or menu item click to the original breadcrumb.\n- **createCollapsedDropdownTrigger(isBreakpointMenuIndicator: _boolean_): _HTMLElement_** - Creates the dropdown trigger for collapsed breadcrumbs.\n- **getCollapsedDropdownIcon(isBreakpointMenuIndicator: _boolean_): _string_** - Resolves the icon used by the default dropdown trigger.\n- **populateCollapsedMenuItem(menuItem: _HTMLElement_, breadcrumb: _HTMLElement_)** - Copies breadcrumb content into a collapsed menu item.\n- **getBreadcrumbLabel(breadcrumb: _HTMLElement|null_): _string_** - Resolves a readable label for a breadcrumb item.\n- **getCollapsedMenuItemLabel(breadcrumb: _HTMLElement_): _string_** - Resolves a readable label for icon-only collapsed menu items.\n- **humanizeCollapsedMenuItemLabel(value: _string_): _string_** - Turns a URL segment into a readable menu label.\n- **isBreakpointMenuIndicator(): _boolean_** - Returns whether this collapsed indicator represents the full breakpoint menu.\n- **collapseButton(): _HTMLButtonElement_** - Creates a button element that expands hidden breadcrumbs when clicked.\nThe button is set with appropriate attributes and event listeners to handle\nthe expanding of hidden breadcrumb elements. Clicking the button will remove\nthe button itself, reveal hidden breadcrumbs, and stop the current event\npropagation.\n- **getBreadcrumbs(): _Element_** - Retrieves the breadcrumb trail for the current element by returning its parent element.\n\n### **Slots:**\n - _default_ - The main content of the breadcrumb.\n- **start** - Slot for content at the start of the breadcrumb.\n- **end** - Slot for content at the end of the breadcrumb.\n- **separator** - Slot for a custom separator between breadcrumb items.\n\n### **CSS Properties:**\n - **--wje-breadcrumb-a** - The color of the breadcrumb text. _(default: var(--wje-color-contrast-8))_\n- **--wje-breadcrumb-a-hover** - The color of the breadcrumb separator line. _(default: var(--wje-color-contrast-6))_\n- **--wje-breadcrumb-line-height** - Controls the vertical rhythm of breadcrumb text. _(default: 1.5)_\n- **--wje-breadcrumb-native-line-height** - Controls the line height of the native breadcrumb wrapper. _(default: var(--wje-breadcrumb-line-height))_\n- **--wje-breadcrumb-native-margin** - Sets outer spacing around the native breadcrumb wrapper. _(default: 0)_\n- **--wje-breadcrumb-native-padding** - Sets inner spacing inside the native breadcrumb wrapper. _(default: 0.25rem 0.75rem)_\n- **--wje-breadcrumb-margin** - Backwards-compatible alias for native breadcrumb margin. _(default: var(--wje-breadcrumb-native-margin))_\n- **--wje-breadcrumb-padding** - Backwards-compatible alias for native breadcrumb padding. _(default: var(--wje-breadcrumb-native-padding))_\n\n### **CSS Parts:**\n - **native** - The native wrapper of the breadcrumb component.\n- **separator** - The separator between breadcrumb items.",
|
|
@@ -491,30 +515,6 @@
|
|
|
491
515
|
"events": []
|
|
492
516
|
}
|
|
493
517
|
},
|
|
494
|
-
{
|
|
495
|
-
"name": "wje-badge",
|
|
496
|
-
"description": "This class represents a Badge element, extending the WJElement class.\n---\n\n\n### **Methods:**\n - **setupAttributes(): _void_** - Configures initial attributes for the Badge element.\n- **draw(): _DocumentFragment_** - Creates the DOM structure for the Badge element.\n\n### **Slots:**\n - _default_ - The badge's main content.\n\n### **CSS Properties:**\n - **--wje-badge-border-radius** - Border radius of the badge element. _(default: var(--wje-border-radius-pill))_\n\n### **CSS Parts:**\n - **native** - The component's native wrapper.",
|
|
497
|
-
"doc-url": "",
|
|
498
|
-
"attributes": [
|
|
499
|
-
{
|
|
500
|
-
"name": "color",
|
|
501
|
-
"description": "The color of the badge element. Accepts any valid string primary, secondary, success, danger, warning, info, default.",
|
|
502
|
-
"value": { "type": "string" }
|
|
503
|
-
}
|
|
504
|
-
],
|
|
505
|
-
"slots": [{ "name": "", "description": "The badge's main content." }],
|
|
506
|
-
"events": [],
|
|
507
|
-
"js": {
|
|
508
|
-
"properties": [
|
|
509
|
-
{
|
|
510
|
-
"name": "className",
|
|
511
|
-
"description": "The class name for the Badge element.",
|
|
512
|
-
"type": "string"
|
|
513
|
-
}
|
|
514
|
-
],
|
|
515
|
-
"events": []
|
|
516
|
-
}
|
|
517
|
-
},
|
|
518
518
|
{
|
|
519
519
|
"name": "wje-button",
|
|
520
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 ARIA attributes on the host element.\n\n### **Slots:**\n - _default_ - The button main content.\n- **icon** - The button icon.\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.",
|
|
@@ -746,26 +746,6 @@
|
|
|
746
746
|
"events": []
|
|
747
747
|
}
|
|
748
748
|
},
|
|
749
|
-
{
|
|
750
|
-
"name": "wje-card-title",
|
|
751
|
-
"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)_",
|
|
752
|
-
"doc-url": "",
|
|
753
|
-
"attributes": [],
|
|
754
|
-
"slots": [
|
|
755
|
-
{ "name": "", "description": "The card title main content." }
|
|
756
|
-
],
|
|
757
|
-
"events": [],
|
|
758
|
-
"js": {
|
|
759
|
-
"properties": [
|
|
760
|
-
{
|
|
761
|
-
"name": "className",
|
|
762
|
-
"description": "Class name for the CardTitle.",
|
|
763
|
-
"type": "string"
|
|
764
|
-
}
|
|
765
|
-
],
|
|
766
|
-
"events": []
|
|
767
|
-
}
|
|
768
|
-
},
|
|
769
749
|
{
|
|
770
750
|
"name": "wje-carousel",
|
|
771
751
|
"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)_",
|
|
@@ -823,6 +803,26 @@
|
|
|
823
803
|
"events": []
|
|
824
804
|
}
|
|
825
805
|
},
|
|
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
826
|
{
|
|
827
827
|
"name": "wje-checkbox",
|
|
828
828
|
"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,29 +1001,6 @@
|
|
|
1001
1001
|
"events": []
|
|
1002
1002
|
}
|
|
1003
1003
|
},
|
|
1004
|
-
{
|
|
1005
|
-
"name": "wje-container",
|
|
1006
|
-
"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)_",
|
|
1007
|
-
"doc-url": "",
|
|
1008
|
-
"attributes": [],
|
|
1009
|
-
"slots": [
|
|
1010
|
-
{
|
|
1011
|
-
"name": "",
|
|
1012
|
-
"description": "The slot for adding child elements or components."
|
|
1013
|
-
}
|
|
1014
|
-
],
|
|
1015
|
-
"events": [],
|
|
1016
|
-
"js": {
|
|
1017
|
-
"properties": [
|
|
1018
|
-
{
|
|
1019
|
-
"name": "className",
|
|
1020
|
-
"description": "Class name for the Container.",
|
|
1021
|
-
"type": "string"
|
|
1022
|
-
}
|
|
1023
|
-
],
|
|
1024
|
-
"events": []
|
|
1025
|
-
}
|
|
1026
|
-
},
|
|
1027
1004
|
{
|
|
1028
1005
|
"name": "wje-copy-button",
|
|
1029
1006
|
"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.",
|
|
@@ -1127,6 +1104,29 @@
|
|
|
1127
1104
|
"events": []
|
|
1128
1105
|
}
|
|
1129
1106
|
},
|
|
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
1130
|
{
|
|
1131
1131
|
"name": "wje-divider",
|
|
1132
1132
|
"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)_",
|
|
@@ -1353,23 +1353,6 @@
|
|
|
1353
1353
|
]
|
|
1354
1354
|
}
|
|
1355
1355
|
},
|
|
1356
|
-
{
|
|
1357
|
-
"name": "wje-footer",
|
|
1358
|
-
"description": "This element represents a footer. `Footer` is a custom web component that represents a footer.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component.\n\n### **Slots:**\n - **default** - Default slot for the footer content\n\n### **CSS Properties:**\n - **--primary-color** - The primary color of the footer _(default: undefined)_",
|
|
1359
|
-
"doc-url": "",
|
|
1360
|
-
"attributes": [],
|
|
1361
|
-
"slots": [
|
|
1362
|
-
{
|
|
1363
|
-
"name": "default",
|
|
1364
|
-
"description": "Default slot for the footer content"
|
|
1365
|
-
}
|
|
1366
|
-
],
|
|
1367
|
-
"events": [],
|
|
1368
|
-
"js": {
|
|
1369
|
-
"properties": [{ "name": "className", "type": "string" }],
|
|
1370
|
-
"events": []
|
|
1371
|
-
}
|
|
1372
|
-
},
|
|
1373
1356
|
{
|
|
1374
1357
|
"name": "wje-file-upload-item",
|
|
1375
1358
|
"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",
|
|
@@ -1408,6 +1391,23 @@
|
|
|
1408
1391
|
"events": []
|
|
1409
1392
|
}
|
|
1410
1393
|
},
|
|
1394
|
+
{
|
|
1395
|
+
"name": "wje-footer",
|
|
1396
|
+
"description": "This element represents a footer. `Footer` is a custom web component that represents a footer.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component.\n\n### **Slots:**\n - **default** - Default slot for the footer content\n\n### **CSS Properties:**\n - **--primary-color** - The primary color of the footer _(default: undefined)_",
|
|
1397
|
+
"doc-url": "",
|
|
1398
|
+
"attributes": [],
|
|
1399
|
+
"slots": [
|
|
1400
|
+
{
|
|
1401
|
+
"name": "default",
|
|
1402
|
+
"description": "Default slot for the footer content"
|
|
1403
|
+
}
|
|
1404
|
+
],
|
|
1405
|
+
"events": [],
|
|
1406
|
+
"js": {
|
|
1407
|
+
"properties": [{ "name": "className", "type": "string" }],
|
|
1408
|
+
"events": []
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1411
1411
|
{
|
|
1412
1412
|
"name": "wje-form",
|
|
1413
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.",
|
|
@@ -1431,6 +1431,29 @@
|
|
|
1431
1431
|
"events": []
|
|
1432
1432
|
}
|
|
1433
1433
|
},
|
|
1434
|
+
{
|
|
1435
|
+
"name": "wje-grid",
|
|
1436
|
+
"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.",
|
|
1437
|
+
"doc-url": "",
|
|
1438
|
+
"attributes": [],
|
|
1439
|
+
"slots": [
|
|
1440
|
+
{
|
|
1441
|
+
"name": "",
|
|
1442
|
+
"description": "The slot for adding child elements or components."
|
|
1443
|
+
}
|
|
1444
|
+
],
|
|
1445
|
+
"events": [],
|
|
1446
|
+
"js": {
|
|
1447
|
+
"properties": [
|
|
1448
|
+
{
|
|
1449
|
+
"name": "className",
|
|
1450
|
+
"description": "The class name for the Grid class.",
|
|
1451
|
+
"type": "string"
|
|
1452
|
+
}
|
|
1453
|
+
],
|
|
1454
|
+
"events": []
|
|
1455
|
+
}
|
|
1456
|
+
},
|
|
1434
1457
|
{
|
|
1435
1458
|
"name": "wje-format-digital",
|
|
1436
1459
|
"description": "This element formats and displays digital values such as file sizes or data transfer rates.\n`FormatDigital` is a custom web component that represents a formatted digital value with units like\nbytes or bits. It extends from `WJElement` and utilizes the `Localizer` class for locale-aware formatting.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\nInitializes the shadow DOM.\n- **beforeDraw()** - Prepares the component before rendering.\nComputes the formatted value based on the input value and unit.\n- **draw(): _DocumentFragment_** - Renders the component and returns a document fragment.\nThe rendered structure includes a formatted value wrapped in a container\nwith slots for additional customization.\n\n### **CSS Parts:**\n - **native** - The native part of the component.\n- **formatted** - The part representing the formatted value.\n- **start** - Slot for content before the formatted value.\n- **end** - Slot for content after the formatted value.",
|
|
@@ -1479,25 +1502,19 @@
|
|
|
1479
1502
|
}
|
|
1480
1503
|
},
|
|
1481
1504
|
{
|
|
1482
|
-
"name": "wje-
|
|
1483
|
-
"description": "
|
|
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",
|
|
1484
1507
|
"doc-url": "",
|
|
1485
1508
|
"attributes": [],
|
|
1486
1509
|
"slots": [
|
|
1487
1510
|
{
|
|
1488
|
-
"name": "",
|
|
1489
|
-
"description": "
|
|
1511
|
+
"name": "default",
|
|
1512
|
+
"description": "Default slot for the header content"
|
|
1490
1513
|
}
|
|
1491
1514
|
],
|
|
1492
1515
|
"events": [],
|
|
1493
1516
|
"js": {
|
|
1494
|
-
"properties": [
|
|
1495
|
-
{
|
|
1496
|
-
"name": "className",
|
|
1497
|
-
"description": "The class name for the Grid class.",
|
|
1498
|
-
"type": "string"
|
|
1499
|
-
}
|
|
1500
|
-
],
|
|
1517
|
+
"properties": [{ "name": "className", "type": "string" }],
|
|
1501
1518
|
"events": []
|
|
1502
1519
|
}
|
|
1503
1520
|
},
|
|
@@ -1522,23 +1539,6 @@
|
|
|
1522
1539
|
"events": []
|
|
1523
1540
|
}
|
|
1524
1541
|
},
|
|
1525
|
-
{
|
|
1526
|
-
"name": "wje-header",
|
|
1527
|
-
"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",
|
|
1528
|
-
"doc-url": "",
|
|
1529
|
-
"attributes": [],
|
|
1530
|
-
"slots": [
|
|
1531
|
-
{
|
|
1532
|
-
"name": "default",
|
|
1533
|
-
"description": "Default slot for the header content"
|
|
1534
|
-
}
|
|
1535
|
-
],
|
|
1536
|
-
"events": [],
|
|
1537
|
-
"js": {
|
|
1538
|
-
"properties": [{ "name": "className", "type": "string" }],
|
|
1539
|
-
"events": []
|
|
1540
|
-
}
|
|
1541
|
-
},
|
|
1542
1542
|
{
|
|
1543
1543
|
"name": "wje-icon-picker",
|
|
1544
1544
|
"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.",
|
|
@@ -1597,36 +1597,93 @@
|
|
|
1597
1597
|
}
|
|
1598
1598
|
},
|
|
1599
1599
|
{
|
|
1600
|
-
"name": "wje-img
|
|
1601
|
-
"description": "This element
|
|
1600
|
+
"name": "wje-img",
|
|
1601
|
+
"description": "This element represents an image. `Img` is a custom web component that represents an image. It extends from `WJElement`.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Creates and assembles a lazy-loaded image element within a document fragment.\n- **afterDraw(): _void_** - Handles post-draw operations, such as setting up a lazy image loader using an IntersectionObserver.\nObserves when the target element becomes visible in the viewport and updates its source with the provided image source.\nRemoves the `lazy` class once the image source is updated and unobserves the element.\nIt also invokes the `onerrorFunc` method at the beginning to handle potential error scenarios.\n- **addAction(name: _string_, func: _Function_): _void_** - Adds a new action to the internal actions object.\n- **removeAction(name: _string_): _void_** - Removes an action from the actions list if it exists.\n\n### **CSS Properties:**\n - **--img-width** - The width of the image _(default: undefined)_\n- **--img-height** - The height of the image _(default: undefined)_",
|
|
1602
1602
|
"doc-url": "",
|
|
1603
|
-
"attributes": [
|
|
1604
|
-
|
|
1605
|
-
{ "name": "
|
|
1606
|
-
{ "name": "
|
|
1603
|
+
"attributes": [
|
|
1604
|
+
{ "name": "src", "value": { "type": "string" } },
|
|
1605
|
+
{ "name": "alt", "value": { "type": "string" } },
|
|
1606
|
+
{ "name": "no-lazy", "value": { "type": "string" } }
|
|
1607
1607
|
],
|
|
1608
1608
|
"events": [],
|
|
1609
1609
|
"js": {
|
|
1610
1610
|
"properties": [
|
|
1611
1611
|
{
|
|
1612
|
-
"name": "
|
|
1613
|
-
"description": "
|
|
1614
|
-
"type": "
|
|
1612
|
+
"name": "src",
|
|
1613
|
+
"description": "The source URL of the image.",
|
|
1614
|
+
"type": "string"
|
|
1615
1615
|
},
|
|
1616
|
-
{ "name": "className", "type": "string" },
|
|
1617
1616
|
{
|
|
1618
|
-
"name": "
|
|
1619
|
-
"description": "
|
|
1617
|
+
"name": "alt",
|
|
1618
|
+
"description": "The alternative text for the image.",
|
|
1619
|
+
"type": "string"
|
|
1620
1620
|
},
|
|
1621
1621
|
{
|
|
1622
|
-
"name": "
|
|
1623
|
-
"description": "
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1622
|
+
"name": "fallout",
|
|
1623
|
+
"description": "The action to perform when an error occurs while loading the image. The value can be a function or a predefined action like 'delete'.",
|
|
1624
|
+
"type": "string"
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
"name": "loader",
|
|
1628
|
+
"description": "The URL of the image loader to display while the image is loading.",
|
|
1629
|
+
"type": "string"
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
"name": "noLazy",
|
|
1633
|
+
"description": "Disables lazy loading and renders the image source immediately.",
|
|
1634
|
+
"type": "boolean"
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
"name": "className",
|
|
1638
|
+
"description": "The class name for the component.",
|
|
1639
|
+
"type": "string"
|
|
1640
|
+
},
|
|
1641
|
+
{ "name": "setAvatarInitials" },
|
|
1642
|
+
{
|
|
1643
|
+
"name": "deleteImage",
|
|
1644
|
+
"description": "Deletes the current image by calling the remove method.\nThis function is typically used to trigger the removal of an image element\nor perform cleanup operations related to the image."
|
|
1645
|
+
},
|
|
1646
|
+
{
|
|
1647
|
+
"name": "onerrorFunc",
|
|
1648
|
+
"description": "Handles error scenarios by checking the `fallout` property and performing\ncorresponding actions. If `fallout` is not defined, the function terminates\nearly. Logs the active actions and attempts to assign an error handler\nbased on the `fallout` value. If the `fallout` value does not correspond to\na recognized action, it logs an error message."
|
|
1649
|
+
},
|
|
1650
|
+
{ "name": "_fallout", "type": "boolean" },
|
|
1651
|
+
{ "name": "actions", "type": "object" }
|
|
1652
|
+
],
|
|
1653
|
+
"events": []
|
|
1654
|
+
}
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
"name": "wje-img-comparer",
|
|
1658
|
+
"description": "This element allows users to compare two images. `ImgComparer` is a custom web component that represents an image comparer.\nIt extends from `WJElement` and uses the `Icon` component.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component.\n\n### **Slots:**\n - **before** - The before image slot.\n- **after** - The after image slot.\n\n### **CSS Properties:**\n - **--wje-img-compare-divider-area** - The area of the divider. This is the size of the divider. Accepts any valid CSS size. _(default: 12px)_\n- **--wje-img-compare-divider-background** - Sets the background color of the divider in the image comparison component. Accepts any valid CSS color value (e.g., `red`, `#ff0000`, `rgba(255, 255, 255, 0.5)`). The default value is `white`, which ensures high contrast in most designs. _(default: white)_\n- **--wje-img-compare-divider-size** - The size of the divider. This is the thickness of the divider. Accepts any valid CSS size. _(default: 2px)_\n- **--wje-img-compare-divider-left** - The left position of the divider. This is the initial position of the divider. _(default: 50%)_\n- **--wje-img-compare-position** - The position of the divider. This is the position of the divider. _(default: 50%)_\n- **--wje-img-compare-clip-path** - The clip path of the divider. This is the clip path of the divider. _(default: inset(0 calc(100% - var(--wje-img-compare-position)) 0 0))_\n\n### **CSS Parts:**\n - **divider** - The divider part.",
|
|
1659
|
+
"doc-url": "",
|
|
1660
|
+
"attributes": [],
|
|
1661
|
+
"slots": [
|
|
1662
|
+
{ "name": "before", "description": "The before image slot." },
|
|
1663
|
+
{ "name": "after", "description": "The after image slot." }
|
|
1664
|
+
],
|
|
1665
|
+
"events": [],
|
|
1666
|
+
"js": {
|
|
1667
|
+
"properties": [
|
|
1668
|
+
{
|
|
1669
|
+
"name": "dependencies",
|
|
1670
|
+
"description": "Dependencies of the ImgComparer component.",
|
|
1671
|
+
"type": "object"
|
|
1672
|
+
},
|
|
1673
|
+
{ "name": "className", "type": "string" },
|
|
1674
|
+
{
|
|
1675
|
+
"name": "handleDrag",
|
|
1676
|
+
"description": "Handles the drag event."
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
"name": "clamp",
|
|
1680
|
+
"description": "Clamps a number between a minimum and maximum value."
|
|
1681
|
+
}
|
|
1682
|
+
],
|
|
1683
|
+
"events": []
|
|
1684
|
+
}
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1630
1687
|
"name": "wje-infinite-scroll",
|
|
1631
1688
|
"description": "This element allows users to scroll through a potentially infinite amount of content.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **beforeDraw(): _void_** - Prepares the component for updates before it is drawn.\nThis method handles the removal of templates for iteration, adjusts the height styling of the component,\nand manages abort signals for loading operations.\n- **draw(): _DocumentFragment_** - Creates and returns a document fragment containing the structure for an infinite scroll component.\nThe structure includes native elements, slots for customization, and optional loading content.\n- **afterDraw()** - Called after the component has been drawn.\n- **syncAria()** - Sync ARIA attributes on host.\n- **getPages(page: _number_): _Promise<object>_** - Fetches the pages from the server.\n- **hideLoader()** - Hides the loader.\n- **showLoader(): _void_** - Displays the loader element by adding the 'show' class to its class list.\nThis method is useful for indicating a loading or processing state in the UI.\n- **hasMorePages(page: _number_): _boolean_** - Checks if there are more pages to load.\n- **loadPages(page: _number_)** - Loads the pages.\n\n### **Slots:**\n - _default_ - The default slot for the infinite scroll.\n\n### **CSS Properties:**\n - **--wje-infinite-scroll-width** - Sets the width of the infinite scroll container. his property determines how wide the infinite scroll area will be relative to its parent element. Accepts any valid CSS width value, such as percentages (`%`), pixels (`px`), or viewport units (`vw`). The default value is `100%`, which makes it span the full width of its container. _(default: 100%)_\n- **--wje-infinite-scroll-height** - Defines the height of the infinite scroll container. This property specifies how tall the infinite scroll area should be. Accepts any valid CSS height value, such as pixels (`px`), percentages (`%`), or viewport units (`vh`). The default value is `300px`, providing a fixed height suitable for most use cases. //@fires wje-infinite-scroll:click-item - Event fired when an item is clicked. _(default: 300px)_\n\n### **CSS Parts:**\n - **loader** - The loader part of the infinite scroll.",
|
|
1632
1689
|
"doc-url": "",
|
|
@@ -1686,63 +1743,6 @@
|
|
|
1686
1743
|
"events": []
|
|
1687
1744
|
}
|
|
1688
1745
|
},
|
|
1689
|
-
{
|
|
1690
|
-
"name": "wje-img",
|
|
1691
|
-
"description": "This element represents an image. `Img` is a custom web component that represents an image. It extends from `WJElement`.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Creates and assembles a lazy-loaded image element within a document fragment.\n- **afterDraw(): _void_** - Handles post-draw operations, such as setting up a lazy image loader using an IntersectionObserver.\nObserves when the target element becomes visible in the viewport and updates its source with the provided image source.\nRemoves the `lazy` class once the image source is updated and unobserves the element.\nIt also invokes the `onerrorFunc` method at the beginning to handle potential error scenarios.\n- **addAction(name: _string_, func: _Function_): _void_** - Adds a new action to the internal actions object.\n- **removeAction(name: _string_): _void_** - Removes an action from the actions list if it exists.\n\n### **CSS Properties:**\n - **--img-width** - The width of the image _(default: undefined)_\n- **--img-height** - The height of the image _(default: undefined)_",
|
|
1692
|
-
"doc-url": "",
|
|
1693
|
-
"attributes": [
|
|
1694
|
-
{ "name": "src", "value": { "type": "string" } },
|
|
1695
|
-
{ "name": "alt", "value": { "type": "string" } },
|
|
1696
|
-
{ "name": "no-lazy", "value": { "type": "string" } }
|
|
1697
|
-
],
|
|
1698
|
-
"events": [],
|
|
1699
|
-
"js": {
|
|
1700
|
-
"properties": [
|
|
1701
|
-
{
|
|
1702
|
-
"name": "src",
|
|
1703
|
-
"description": "The source URL of the image.",
|
|
1704
|
-
"type": "string"
|
|
1705
|
-
},
|
|
1706
|
-
{
|
|
1707
|
-
"name": "alt",
|
|
1708
|
-
"description": "The alternative text for the image.",
|
|
1709
|
-
"type": "string"
|
|
1710
|
-
},
|
|
1711
|
-
{
|
|
1712
|
-
"name": "fallout",
|
|
1713
|
-
"description": "The action to perform when an error occurs while loading the image. The value can be a function or a predefined action like 'delete'.",
|
|
1714
|
-
"type": "string"
|
|
1715
|
-
},
|
|
1716
|
-
{
|
|
1717
|
-
"name": "loader",
|
|
1718
|
-
"description": "The URL of the image loader to display while the image is loading.",
|
|
1719
|
-
"type": "string"
|
|
1720
|
-
},
|
|
1721
|
-
{
|
|
1722
|
-
"name": "noLazy",
|
|
1723
|
-
"description": "Disables lazy loading and renders the image source immediately.",
|
|
1724
|
-
"type": "boolean"
|
|
1725
|
-
},
|
|
1726
|
-
{
|
|
1727
|
-
"name": "className",
|
|
1728
|
-
"description": "The class name for the component.",
|
|
1729
|
-
"type": "string"
|
|
1730
|
-
},
|
|
1731
|
-
{ "name": "setAvatarInitials" },
|
|
1732
|
-
{
|
|
1733
|
-
"name": "deleteImage",
|
|
1734
|
-
"description": "Deletes the current image by calling the remove method.\nThis function is typically used to trigger the removal of an image element\nor perform cleanup operations related to the image."
|
|
1735
|
-
},
|
|
1736
|
-
{
|
|
1737
|
-
"name": "onerrorFunc",
|
|
1738
|
-
"description": "Handles error scenarios by checking the `fallout` property and performing\ncorresponding actions. If `fallout` is not defined, the function terminates\nearly. Logs the active actions and attempts to assign an error handler\nbased on the `fallout` value. If the `fallout` value does not correspond to\na recognized action, it logs an error message."
|
|
1739
|
-
},
|
|
1740
|
-
{ "name": "_fallout", "type": "boolean" },
|
|
1741
|
-
{ "name": "actions", "type": "object" }
|
|
1742
|
-
],
|
|
1743
|
-
"events": []
|
|
1744
|
-
}
|
|
1745
|
-
},
|
|
1746
1746
|
{
|
|
1747
1747
|
"name": "wje-input",
|
|
1748
1748
|
"description": "This class represents a custom input element. It extends the WJElement class and provides additional functionality for handling input.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the input.\n- **draw(): _DocumentFragment_** - Draws the input element.\n- **afterDraw()** - Runs after the input is drawn to the DOM.\n- **syncAria()** - Syncs ARIA attributes on the host element.\n- **hasSlot(el: _HTMLElement_, slotName: _string_): _boolean_** - Checks whether the input has a slot.\n\n### **Slots:**\n - **start** - Slot for content at the start of the input.\n- **end** - Slot for content at the end of the input.\n\n### **CSS Properties:**\n - **--wje-input-font-family** - Defines the font family for the input text. _(default: var(--wje-font-family))_\n- **--wje-input-background-color** - Specifies the background color of the input field. _(default: var(--wje-background))_\n- **--wje-input-color** - Sets the text color within the input field. _(default: var(--wje-color))_\n- **--wje-input-color-invalid** - Changes the text color when the input value is invalid. _(default: var(--wje-color-danger))_\n- **--wje-input-error-background-color** - Controls the background color of the validation error bubble. _(default: var(--wje-tooltip-background))_\n- **--wje-input-error-color** - Controls the text color of the validation error bubble. _(default: var(--wje-tooltip-color))_\n- **--wje-input-border-color** - Defines the border color of the input field. _(default: var(--wje-border-color))_\n- **--wje-input-border-color-focus** - Specifies the border color when the input is focused. _(default: var(--wje-color-primary))_\n- **--wje-input-border-width** - Sets the width of the input border. _(default: 1px)_\n- **--wje-input-border-style** - Defines the border style of the input (e.g., solid, dashed). _(default: solid)_\n- **--wje-input-border-radius** - Specifies the border radius, creating rounded corners. _(default: 4px)_\n- **--wje-input-margin-bottom** - Adds spacing below the input field. _(default: .5rem)_\n- **--wje-input-line-height** - Sets the line height of the text within the input field. _(default: 20px)_\n- **--wje-input-slot-padding-inline** - Controls the padding on the left and right of the input slot content. // @fires wje-input:input - Dispatched when the input value changes. // @fires wje-input:clear - Dispatched when the input is cleared. _(default: .5rem)_\n\n### **CSS Parts:**\n - **native** - The native part.\n- **wrapper** - The wrapper part.\n- **input** - The input part.\n- **clear** - The clear part.",
|
|
@@ -1817,6 +1817,28 @@
|
|
|
1817
1817
|
"events": []
|
|
1818
1818
|
}
|
|
1819
1819
|
},
|
|
1820
|
+
{
|
|
1821
|
+
"name": "wje-input-file",
|
|
1822
|
+
"description": "This element represents a file input.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _object_** - Draws the component.\n- **afterDraw()** - After draw method for the InputFile class.\n\n### **CSS Parts:**\n - **native** - The native file input wrapper.\n- **input** - The text input.\n- **file-input** - The file input element. // @fires wje-input-file:change - Event fired when the file input changes.",
|
|
1823
|
+
"doc-url": "",
|
|
1824
|
+
"attributes": [],
|
|
1825
|
+
"events": [],
|
|
1826
|
+
"js": {
|
|
1827
|
+
"properties": [
|
|
1828
|
+
{
|
|
1829
|
+
"name": "value",
|
|
1830
|
+
"description": "Gets the value of the input file."
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
"name": "className",
|
|
1834
|
+
"description": "The class name for the InputFile class.",
|
|
1835
|
+
"type": "string"
|
|
1836
|
+
},
|
|
1837
|
+
{ "name": "_value", "type": "string" }
|
|
1838
|
+
],
|
|
1839
|
+
"events": []
|
|
1840
|
+
}
|
|
1841
|
+
},
|
|
1820
1842
|
{
|
|
1821
1843
|
"name": "wje-item",
|
|
1822
1844
|
"description": "This element represents an item.\n---\n\n\n### **Methods:**\n - **isClickable(): _boolean_** - Returns the CSS styles for the component.\n- **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the item.\n- **afterDraw()** - Called after the component has been drawn.\n- **syncAria()** - Sync ARIA attributes on host.\n\n### **Slots:**\n - **start** - The start slot\n- **end** - The end slot\n- **error** - The error slot\n- **helper** - The helper slot\n\n### **CSS Properties:**\n - **--wje-item-background** - Sets the background color of the item. Accepts any valid CSS color value. _(default: var(--wje-background))_\n- **--wje-item-color** - Defines the text color for the item. Accepts any valid CSS color value. _(default: var(--wje-color))_\n- **--wje-item-padding-start** - Specifies the left padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-padding-end** - Specifies the right padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-padding-top** - Specifies the top padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-padding-bottom** - Specifies the bottom padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-inner-padding-start** - Specifies the left inner padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-inner-padding-end** - Specifies the right inner padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-inner-padding-top** - Specifies the top inner padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-inner-padding-bottom** - Specifies the bottom inner padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-border-radius** - Defines the border radius, providing rounded corners for the item. _(default: var(--wje-border-radius))_\n- **--wje-item-border-width** - Sets the border width of the item. Accepts any valid CSS length. _(default: var(--wje-border-width))_\n- **--wje-item-border-style** - Specifies the style of the border, such as `solid`, `dashed`, or `dotted`. _(default: var(--wje-border-style))_\n- **--wje-item-border-color** - Defines the color of the item's border. Accepts any valid CSS color value. _(default: var(--wje-border-color))_\n- **--wje-item-min-height** - Sets the minimum height of the item to ensure consistent layout. _(default: var(--wje-min-height))_\n- **--wje-item-transition** - Specifies the transition effects for the item, such as for hover or focus states. _(default: var(--wje-transition))_\n- **--wje-item-inner-box-shadow** - Adds a shadow effect inside the item for a 3D appearance. _(default: var(--wje-box-shadow))_\n\n### **CSS Parts:**\n - **native** - The native part\n- **inner** - The inner part",
|
|
@@ -1855,42 +1877,6 @@
|
|
|
1855
1877
|
"events": []
|
|
1856
1878
|
}
|
|
1857
1879
|
},
|
|
1858
|
-
{
|
|
1859
|
-
"name": "wje-input-file",
|
|
1860
|
-
"description": "This element represents a file input.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _object_** - Draws the component.\n- **afterDraw()** - After draw method for the InputFile class.\n\n### **CSS Parts:**\n - **native** - The native file input wrapper.\n- **input** - The text input.\n- **file-input** - The file input element. // @fires wje-input-file:change - Event fired when the file input changes.",
|
|
1861
|
-
"doc-url": "",
|
|
1862
|
-
"attributes": [],
|
|
1863
|
-
"events": [],
|
|
1864
|
-
"js": {
|
|
1865
|
-
"properties": [
|
|
1866
|
-
{
|
|
1867
|
-
"name": "value",
|
|
1868
|
-
"description": "Gets the value of the input file."
|
|
1869
|
-
},
|
|
1870
|
-
{
|
|
1871
|
-
"name": "className",
|
|
1872
|
-
"description": "The class name for the InputFile class.",
|
|
1873
|
-
"type": "string"
|
|
1874
|
-
},
|
|
1875
|
-
{ "name": "_value", "type": "string" }
|
|
1876
|
-
],
|
|
1877
|
-
"events": []
|
|
1878
|
-
}
|
|
1879
|
-
},
|
|
1880
|
-
{
|
|
1881
|
-
"name": "wje-label",
|
|
1882
|
-
"description": "This element represents a label.\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_ - The default slot for the label.\n\n### **CSS Properties:**\n - **--wje-label-color** - Defines the text color of the label. This property determines the color of the label's text. Accepts any valid CSS color value (e.g., named colors like `black`, `red`, or values like `#000000`, `rgb(0, 0, 0)`). _(default: black)_\n- **--wje-label-font-size** - Specifies the font size of the label. This property sets the size of the label's text. Accepts any valid CSS length unit (e.g., `px`, `em`, `rem`). The default value is `16px`, which provides optimal readability in most designs. // @fires wje-label:change - Event fired when the label is changed. _(default: 16px)_\n\n### **CSS Parts:**\n - **label** - The label part of the component.",
|
|
1883
|
-
"doc-url": "",
|
|
1884
|
-
"attributes": [],
|
|
1885
|
-
"slots": [
|
|
1886
|
-
{ "name": "", "description": "The default slot for the label." }
|
|
1887
|
-
],
|
|
1888
|
-
"events": [],
|
|
1889
|
-
"js": {
|
|
1890
|
-
"properties": [{ "name": "className", "type": "string" }],
|
|
1891
|
-
"events": []
|
|
1892
|
-
}
|
|
1893
|
-
},
|
|
1894
1880
|
{
|
|
1895
1881
|
"name": "wje-kanban",
|
|
1896
1882
|
"description": "This element represents a Kanban board.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **beforeDraw(context: _object_, store: _object_, params: _object_)** - Prepares the component before drawing.\n- **draw(): _DocumentFragment_** - Draws the component after it has been prepared.\n- **syncAria()** - Sync ARIA attributes on host.\n- **afterDraw()** - Called after the component has been drawn.\n- **setupDragAndDropEvents()** - Sets up the drag and drop events for the component.\n- **setupSelectAllCardsEvent()** - Sets up the select all cards event for the component.\n- **setupMenuItemClickEvents()** - Sets up the menu item click events for the component.\n- **updateSelectedCards(pool: _HTMLElement_, isChecked: _boolean_)** - Updates the selected cards in the pool.\n- **handlePoolAction(action: _string_, pool: _HTMLElement_)** - Handles the pool action.\n- **movePool(pool: _HTMLElement_, direction: _string_)** - Moves the pool in the specified direction.\n- **renamePool(pool: _HTMLElement_)** - Renames the pool.\n- **getCardPlaceholder(): _null|*_** - Gets the card placeholder.\n- **live(eventType: _string_, selector: _string_, callback: _function_)** - Adds a live event listener to the component.\n- **setSelectedCards(isChecked: _boolean_, card: _HTMLElement_)** - Sets the selected cards.\n- **setSelectedItems()** - Sets the selected items.\n- **getPages(page): _Promise<any>_** - Fetches the pages.\n\n### **Slots:**\n - _default_ - The default slot for the Kanban board.\n\n### **CSS Parts:**\n - **native-infinite-scroll** - Styles the native part of the Kanban board.",
|
|
@@ -1954,12 +1940,12 @@
|
|
|
1954
1940
|
}
|
|
1955
1941
|
},
|
|
1956
1942
|
{
|
|
1957
|
-
"name": "wje-
|
|
1958
|
-
"description": "This element represents a
|
|
1943
|
+
"name": "wje-label",
|
|
1944
|
+
"description": "This element represents a label.\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_ - The default slot for the label.\n\n### **CSS Properties:**\n - **--wje-label-color** - Defines the text color of the label. This property determines the color of the label's text. Accepts any valid CSS color value (e.g., named colors like `black`, `red`, or values like `#000000`, `rgb(0, 0, 0)`). _(default: black)_\n- **--wje-label-font-size** - Specifies the font size of the label. This property sets the size of the label's text. Accepts any valid CSS length unit (e.g., `px`, `em`, `rem`). The default value is `16px`, which provides optimal readability in most designs. // @fires wje-label:change - Event fired when the label is changed. _(default: 16px)_\n\n### **CSS Parts:**\n - **label** - The label part of the component.",
|
|
1959
1945
|
"doc-url": "",
|
|
1960
1946
|
"attributes": [],
|
|
1961
1947
|
"slots": [
|
|
1962
|
-
{ "name": "", "description": "The default slot for the
|
|
1948
|
+
{ "name": "", "description": "The default slot for the label." }
|
|
1963
1949
|
],
|
|
1964
1950
|
"events": [],
|
|
1965
1951
|
"js": {
|
|
@@ -1999,6 +1985,20 @@
|
|
|
1999
1985
|
"events": []
|
|
2000
1986
|
}
|
|
2001
1987
|
},
|
|
1988
|
+
{
|
|
1989
|
+
"name": "wje-list",
|
|
1990
|
+
"description": "This element represents a list.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Returns the list of attributes to observe for changes.\n- **afterDraw()** - Called after the component has been drawn.\n- **syncAria()** - Sync ARIA attributes on host.\n\n### **Slots:**\n - _default_ - The default slot for the list.\n\n### **CSS Properties:**\n - **--wje-list-inset-padding** - The padding of the list when it is inset. _(default: 1rem)_\n- **--wje-list-border-radius** - The border radius of the list. Accepts any valid CSS length. _(default: 8px)_\n- **--wje-list-background** - The background of the list. Accepts any valid CSS color value. _(default: var(--wje-background))_",
|
|
1991
|
+
"doc-url": "",
|
|
1992
|
+
"attributes": [],
|
|
1993
|
+
"slots": [
|
|
1994
|
+
{ "name": "", "description": "The default slot for the list." }
|
|
1995
|
+
],
|
|
1996
|
+
"events": [],
|
|
1997
|
+
"js": {
|
|
1998
|
+
"properties": [{ "name": "className", "type": "string" }],
|
|
1999
|
+
"events": []
|
|
2000
|
+
}
|
|
2001
|
+
},
|
|
2002
2002
|
{
|
|
2003
2003
|
"name": "wje-main",
|
|
2004
2004
|
"description": "This element represents a main section.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the main section.\n\n### **Slots:**\n - _default_ - The default slot for the main section.",
|
|
@@ -2103,26 +2103,6 @@
|
|
|
2103
2103
|
"events": []
|
|
2104
2104
|
}
|
|
2105
2105
|
},
|
|
2106
|
-
{
|
|
2107
|
-
"name": "wje-menu-label",
|
|
2108
|
-
"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.",
|
|
2109
|
-
"doc-url": "",
|
|
2110
|
-
"attributes": [],
|
|
2111
|
-
"slots": [
|
|
2112
|
-
{
|
|
2113
|
-
"name": "",
|
|
2114
|
-
"description": "The default slot for the menu label."
|
|
2115
|
-
}
|
|
2116
|
-
],
|
|
2117
|
-
"events": [],
|
|
2118
|
-
"js": {
|
|
2119
|
-
"properties": [
|
|
2120
|
-
{ "name": "className", "type": "string" },
|
|
2121
|
-
{ "name": "hasSubmenu" }
|
|
2122
|
-
],
|
|
2123
|
-
"events": []
|
|
2124
|
-
}
|
|
2125
|
-
},
|
|
2126
2106
|
{
|
|
2127
2107
|
"name": "wje-menu-item",
|
|
2128
2108
|
"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.",
|
|
@@ -2198,6 +2178,26 @@
|
|
|
2198
2178
|
"events": []
|
|
2199
2179
|
}
|
|
2200
2180
|
},
|
|
2181
|
+
{
|
|
2182
|
+
"name": "wje-menu-label",
|
|
2183
|
+
"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.",
|
|
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
2201
|
{
|
|
2202
2202
|
"name": "wje-option",
|
|
2203
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.",
|
|
@@ -2330,18 +2330,45 @@
|
|
|
2330
2330
|
}
|
|
2331
2331
|
},
|
|
2332
2332
|
{
|
|
2333
|
-
"name": "wje-orgchart
|
|
2334
|
-
"description": "
|
|
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
2335
|
"doc-url": "",
|
|
2336
|
-
"attributes": [
|
|
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
|
+
],
|
|
2337
2343
|
"events": [],
|
|
2338
2344
|
"js": {
|
|
2339
2345
|
"properties": [
|
|
2340
2346
|
{
|
|
2341
|
-
"name": "
|
|
2342
|
-
"description": "
|
|
2343
|
-
|
|
2344
|
-
}
|
|
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
|
+
{
|
|
2360
|
+
"name": "wje-orgchart-group",
|
|
2361
|
+
"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.",
|
|
2362
|
+
"doc-url": "",
|
|
2363
|
+
"attributes": [],
|
|
2364
|
+
"events": [],
|
|
2365
|
+
"js": {
|
|
2366
|
+
"properties": [
|
|
2367
|
+
{
|
|
2368
|
+
"name": "className",
|
|
2369
|
+
"description": "The class name for the component.",
|
|
2370
|
+
"type": "string"
|
|
2371
|
+
}
|
|
2345
2372
|
],
|
|
2346
2373
|
"events": []
|
|
2347
2374
|
}
|
|
@@ -2393,33 +2420,6 @@
|
|
|
2393
2420
|
"events": []
|
|
2394
2421
|
}
|
|
2395
2422
|
},
|
|
2396
|
-
{
|
|
2397
|
-
"name": "wje-orgchart",
|
|
2398
|
-
"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.",
|
|
2399
|
-
"doc-url": "",
|
|
2400
|
-
"attributes": [
|
|
2401
|
-
{
|
|
2402
|
-
"name": "flat",
|
|
2403
|
-
"description": "Removes the incoming connector spacing for nested charts that should visually continue on the same level.",
|
|
2404
|
-
"value": { "type": "boolean" }
|
|
2405
|
-
}
|
|
2406
|
-
],
|
|
2407
|
-
"events": [],
|
|
2408
|
-
"js": {
|
|
2409
|
-
"properties": [
|
|
2410
|
-
{
|
|
2411
|
-
"name": "flat",
|
|
2412
|
-
"description": "Gets whether the chart omits its incoming connector spacing."
|
|
2413
|
-
},
|
|
2414
|
-
{ "name": "className", "type": "string" },
|
|
2415
|
-
{
|
|
2416
|
-
"name": "syncFlatChildren",
|
|
2417
|
-
"description": "Marks direct children that are rendered inside a flat chart."
|
|
2418
|
-
}
|
|
2419
|
-
],
|
|
2420
|
-
"events": []
|
|
2421
|
-
}
|
|
2422
|
-
},
|
|
2423
2423
|
{
|
|
2424
2424
|
"name": "wje-pagination",
|
|
2425
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.",
|
|
@@ -2627,6 +2627,46 @@
|
|
|
2627
2627
|
"events": []
|
|
2628
2628
|
}
|
|
2629
2629
|
},
|
|
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
|
+
},
|
|
2630
2670
|
{
|
|
2631
2671
|
"name": "wje-qr-code",
|
|
2632
2672
|
"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.",
|
|
@@ -2695,41 +2735,40 @@
|
|
|
2695
2735
|
}
|
|
2696
2736
|
},
|
|
2697
2737
|
{
|
|
2698
|
-
"name": "wje-radio",
|
|
2699
|
-
"description": "This
|
|
2738
|
+
"name": "wje-radio-group",
|
|
2739
|
+
"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.",
|
|
2700
2740
|
"doc-url": "",
|
|
2701
2741
|
"attributes": [
|
|
2702
|
-
{ "name": "
|
|
2742
|
+
{ "name": "required", "value": { "type": "string" } },
|
|
2743
|
+
{ "name": "value", "value": { "type": "string" } },
|
|
2703
2744
|
{ "name": "disabled", "value": { "type": "string" } },
|
|
2704
|
-
{ "name": "
|
|
2745
|
+
{ "name": "invalid", "value": { "type": "string" } },
|
|
2746
|
+
{ "name": "label", "value": { "type": "string" } }
|
|
2705
2747
|
],
|
|
2706
2748
|
"slots": [
|
|
2707
2749
|
{
|
|
2708
2750
|
"name": "",
|
|
2709
|
-
"description": "
|
|
2751
|
+
"description": "The default slot for the radio group."
|
|
2710
2752
|
}
|
|
2711
2753
|
],
|
|
2712
2754
|
"events": [],
|
|
2713
2755
|
"js": {
|
|
2714
2756
|
"properties": [
|
|
2715
|
-
{ "name": "value" },
|
|
2716
2757
|
{
|
|
2717
|
-
"name": "
|
|
2718
|
-
"description": "
|
|
2758
|
+
"name": "value",
|
|
2759
|
+
"description": "Getter for the value attribute."
|
|
2719
2760
|
},
|
|
2720
2761
|
{
|
|
2721
|
-
"name": "
|
|
2722
|
-
"description": "
|
|
2762
|
+
"name": "required",
|
|
2763
|
+
"description": "Getter for the name attribute."
|
|
2723
2764
|
},
|
|
2724
2765
|
{
|
|
2725
|
-
"name": "
|
|
2726
|
-
"description": "
|
|
2727
|
-
"type": "string"
|
|
2766
|
+
"name": "label",
|
|
2767
|
+
"description": "Getter for the label attribute."
|
|
2728
2768
|
},
|
|
2729
|
-
{
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
}
|
|
2769
|
+
{ "name": "className", "type": "string" },
|
|
2770
|
+
{ "name": "invalid", "type": "boolean" },
|
|
2771
|
+
{ "name": "pristine", "type": "boolean" }
|
|
2733
2772
|
],
|
|
2734
2773
|
"events": []
|
|
2735
2774
|
}
|
|
@@ -2815,36 +2854,6 @@
|
|
|
2815
2854
|
"events": []
|
|
2816
2855
|
}
|
|
2817
2856
|
},
|
|
2818
|
-
{
|
|
2819
|
-
"name": "wje-reorder",
|
|
2820
|
-
"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.",
|
|
2821
|
-
"doc-url": "",
|
|
2822
|
-
"attributes": [],
|
|
2823
|
-
"slots": [
|
|
2824
|
-
{
|
|
2825
|
-
"name": "",
|
|
2826
|
-
"description": "The default slot for the reorder. // @fires wje-reorder:change - Event fired when the reorder is changed."
|
|
2827
|
-
}
|
|
2828
|
-
],
|
|
2829
|
-
"events": [{ "name": "wje-reorder:change", "type": "CustomEvent" }],
|
|
2830
|
-
"js": {
|
|
2831
|
-
"properties": [
|
|
2832
|
-
{
|
|
2833
|
-
"name": "className",
|
|
2834
|
-
"description": "The class name for the component.",
|
|
2835
|
-
"type": "string"
|
|
2836
|
-
},
|
|
2837
|
-
{ "name": "dragEl", "type": "null" },
|
|
2838
|
-
{ "name": "items", "type": "array" },
|
|
2839
|
-
{ "name": "originalIndex", "type": "null" },
|
|
2840
|
-
{ "name": "isDragging", "type": "boolean" },
|
|
2841
|
-
{ "name": "offsetX", "type": "number" },
|
|
2842
|
-
{ "name": "offsetY", "type": "number" },
|
|
2843
|
-
{ "name": "cloneEl", "type": "null" }
|
|
2844
|
-
],
|
|
2845
|
-
"events": [{ "name": "wje-reorder:change", "type": "CustomEvent" }]
|
|
2846
|
-
}
|
|
2847
|
-
},
|
|
2848
2857
|
{
|
|
2849
2858
|
"name": "wje-relative-time",
|
|
2850
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.",
|
|
@@ -2875,53 +2884,40 @@
|
|
|
2875
2884
|
}
|
|
2876
2885
|
},
|
|
2877
2886
|
{
|
|
2878
|
-
"name": "wje-
|
|
2879
|
-
"description": "This element represents a
|
|
2887
|
+
"name": "wje-reorder-dropzone",
|
|
2888
|
+
"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.",
|
|
2880
2889
|
"doc-url": "",
|
|
2881
|
-
"attributes": [
|
|
2882
|
-
{ "name": "required", "value": { "type": "string" } },
|
|
2883
|
-
{ "name": "value", "value": { "type": "string" } },
|
|
2884
|
-
{ "name": "disabled", "value": { "type": "string" } },
|
|
2885
|
-
{ "name": "invalid", "value": { "type": "string" } },
|
|
2886
|
-
{ "name": "label", "value": { "type": "string" } }
|
|
2887
|
-
],
|
|
2890
|
+
"attributes": [],
|
|
2888
2891
|
"slots": [
|
|
2889
2892
|
{
|
|
2890
2893
|
"name": "",
|
|
2891
|
-
"description": "The default slot for the
|
|
2894
|
+
"description": "The default slot for the reorder dropzone."
|
|
2892
2895
|
}
|
|
2893
2896
|
],
|
|
2894
2897
|
"events": [],
|
|
2895
2898
|
"js": {
|
|
2896
2899
|
"properties": [
|
|
2897
2900
|
{
|
|
2898
|
-
"name": "
|
|
2899
|
-
"description": "
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
"name": "required",
|
|
2903
|
-
"description": "Getter for the name attribute."
|
|
2904
|
-
},
|
|
2905
|
-
{
|
|
2906
|
-
"name": "label",
|
|
2907
|
-
"description": "Getter for the label attribute."
|
|
2908
|
-
},
|
|
2909
|
-
{ "name": "className", "type": "string" },
|
|
2910
|
-
{ "name": "invalid", "type": "boolean" },
|
|
2911
|
-
{ "name": "pristine", "type": "boolean" }
|
|
2901
|
+
"name": "className",
|
|
2902
|
+
"description": "The class name for the component.",
|
|
2903
|
+
"type": "string"
|
|
2904
|
+
}
|
|
2912
2905
|
],
|
|
2913
2906
|
"events": []
|
|
2914
2907
|
}
|
|
2915
2908
|
},
|
|
2916
2909
|
{
|
|
2917
|
-
"name": "wje-reorder-
|
|
2918
|
-
"description": "This element represents a reorder
|
|
2910
|
+
"name": "wje-reorder-handle",
|
|
2911
|
+
"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.",
|
|
2919
2912
|
"doc-url": "",
|
|
2920
|
-
"attributes": [
|
|
2913
|
+
"attributes": [
|
|
2914
|
+
{ "name": "dropzone", "value": { "type": "string" } },
|
|
2915
|
+
{ "name": "parent", "value": { "type": "string" } }
|
|
2916
|
+
],
|
|
2921
2917
|
"slots": [
|
|
2922
2918
|
{
|
|
2923
2919
|
"name": "",
|
|
2924
|
-
"description": "The default slot for the reorder
|
|
2920
|
+
"description": "The default slot for the reorder handle."
|
|
2925
2921
|
}
|
|
2926
2922
|
],
|
|
2927
2923
|
"events": [],
|
|
@@ -2937,40 +2933,44 @@
|
|
|
2937
2933
|
}
|
|
2938
2934
|
},
|
|
2939
2935
|
{
|
|
2940
|
-
"name": "wje-reorder
|
|
2941
|
-
"description": "This element represents a reorder
|
|
2936
|
+
"name": "wje-reorder",
|
|
2937
|
+
"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.",
|
|
2942
2938
|
"doc-url": "",
|
|
2943
2939
|
"attributes": [],
|
|
2944
2940
|
"slots": [
|
|
2945
2941
|
{
|
|
2946
2942
|
"name": "",
|
|
2947
|
-
"description": "The default slot for the reorder
|
|
2943
|
+
"description": "The default slot for the reorder. // @fires wje-reorder:change - Event fired when the reorder is changed."
|
|
2948
2944
|
}
|
|
2949
2945
|
],
|
|
2950
|
-
"events": [],
|
|
2946
|
+
"events": [{ "name": "wje-reorder:change", "type": "CustomEvent" }],
|
|
2951
2947
|
"js": {
|
|
2952
2948
|
"properties": [
|
|
2953
2949
|
{
|
|
2954
2950
|
"name": "className",
|
|
2955
2951
|
"description": "The class name for the component.",
|
|
2956
2952
|
"type": "string"
|
|
2957
|
-
}
|
|
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" }
|
|
2958
2961
|
],
|
|
2959
|
-
"events": []
|
|
2962
|
+
"events": [{ "name": "wje-reorder:change", "type": "CustomEvent" }]
|
|
2960
2963
|
}
|
|
2961
2964
|
},
|
|
2962
2965
|
{
|
|
2963
|
-
"name": "wje-reorder-
|
|
2964
|
-
"description": "This element represents a reorder
|
|
2966
|
+
"name": "wje-reorder-item",
|
|
2967
|
+
"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.",
|
|
2965
2968
|
"doc-url": "",
|
|
2966
|
-
"attributes": [
|
|
2967
|
-
{ "name": "dropzone", "value": { "type": "string" } },
|
|
2968
|
-
{ "name": "parent", "value": { "type": "string" } }
|
|
2969
|
-
],
|
|
2969
|
+
"attributes": [],
|
|
2970
2970
|
"slots": [
|
|
2971
2971
|
{
|
|
2972
2972
|
"name": "",
|
|
2973
|
-
"description": "The default slot for the reorder
|
|
2973
|
+
"description": "The default slot for the reorder item."
|
|
2974
2974
|
}
|
|
2975
2975
|
],
|
|
2976
2976
|
"events": [],
|
|
@@ -3009,10 +3009,16 @@
|
|
|
3009
3009
|
}
|
|
3010
3010
|
},
|
|
3011
3011
|
{
|
|
3012
|
-
"name": "wje-
|
|
3013
|
-
"description": "This element represents a
|
|
3012
|
+
"name": "wje-router-link",
|
|
3013
|
+
"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.",
|
|
3014
3014
|
"doc-url": "",
|
|
3015
3015
|
"attributes": [],
|
|
3016
|
+
"slots": [
|
|
3017
|
+
{
|
|
3018
|
+
"name": "",
|
|
3019
|
+
"description": "The default slot for the router link."
|
|
3020
|
+
}
|
|
3021
|
+
],
|
|
3016
3022
|
"events": [],
|
|
3017
3023
|
"js": {
|
|
3018
3024
|
"properties": [{ "name": "className", "type": "string" }],
|
|
@@ -3020,16 +3026,10 @@
|
|
|
3020
3026
|
}
|
|
3021
3027
|
},
|
|
3022
3028
|
{
|
|
3023
|
-
"name": "wje-
|
|
3024
|
-
"description": "This element represents a
|
|
3029
|
+
"name": "wje-route",
|
|
3030
|
+
"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.",
|
|
3025
3031
|
"doc-url": "",
|
|
3026
3032
|
"attributes": [],
|
|
3027
|
-
"slots": [
|
|
3028
|
-
{
|
|
3029
|
-
"name": "",
|
|
3030
|
-
"description": "The default slot for the router link."
|
|
3031
|
-
}
|
|
3032
|
-
],
|
|
3033
3033
|
"events": [],
|
|
3034
3034
|
"js": {
|
|
3035
3035
|
"properties": [{ "name": "className", "type": "string" }],
|
|
@@ -3585,39 +3585,8 @@
|
|
|
3585
3585
|
}
|
|
3586
3586
|
},
|
|
3587
3587
|
{
|
|
3588
|
-
"name": "wje-tab",
|
|
3589
|
-
"description": "This element represents a
|
|
3590
|
-
"doc-url": "",
|
|
3591
|
-
"attributes": [],
|
|
3592
|
-
"events": [],
|
|
3593
|
-
"js": {
|
|
3594
|
-
"properties": [
|
|
3595
|
-
{
|
|
3596
|
-
"name": "panel",
|
|
3597
|
-
"description": "Retrieves the value of the 'panel' attribute of the element."
|
|
3598
|
-
},
|
|
3599
|
-
{
|
|
3600
|
-
"name": "route",
|
|
3601
|
-
"description": "Retrieves the value of the 'route' attribute.\nIf the 'route' attribute is not set, it returns null."
|
|
3602
|
-
},
|
|
3603
|
-
{
|
|
3604
|
-
"name": "className",
|
|
3605
|
-
"description": "The class name for the component.",
|
|
3606
|
-
"type": "string"
|
|
3607
|
-
},
|
|
3608
|
-
{
|
|
3609
|
-
"name": "last",
|
|
3610
|
-
"description": "Indicates whether this is the last tab.",
|
|
3611
|
-
"type": "boolean"
|
|
3612
|
-
},
|
|
3613
|
-
{ "name": "_hasPanel", "type": "boolean" }
|
|
3614
|
-
],
|
|
3615
|
-
"events": []
|
|
3616
|
-
}
|
|
3617
|
-
},
|
|
3618
|
-
{
|
|
3619
|
-
"name": "wje-tab-group",
|
|
3620
|
-
"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)_",
|
|
3588
|
+
"name": "wje-tab-group",
|
|
3589
|
+
"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)_",
|
|
3621
3590
|
"doc-url": "",
|
|
3622
3591
|
"attributes": [],
|
|
3623
3592
|
"slots": [
|
|
@@ -3649,6 +3618,37 @@
|
|
|
3649
3618
|
"events": []
|
|
3650
3619
|
}
|
|
3651
3620
|
},
|
|
3621
|
+
{
|
|
3622
|
+
"name": "wje-tab",
|
|
3623
|
+
"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))_",
|
|
3624
|
+
"doc-url": "",
|
|
3625
|
+
"attributes": [],
|
|
3626
|
+
"events": [],
|
|
3627
|
+
"js": {
|
|
3628
|
+
"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
|
+
{
|
|
3638
|
+
"name": "className",
|
|
3639
|
+
"description": "The class name for the component.",
|
|
3640
|
+
"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" }
|
|
3648
|
+
],
|
|
3649
|
+
"events": []
|
|
3650
|
+
}
|
|
3651
|
+
},
|
|
3652
3652
|
{
|
|
3653
3653
|
"name": "wje-tab-panel",
|
|
3654
3654
|
"description": "This element represents a tab panel.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the tab panel.\n\n### **Slots:**\n - _default_ - The default slot for the tab panel.",
|
|
@@ -3715,29 +3715,6 @@
|
|
|
3715
3715
|
"events": []
|
|
3716
3716
|
}
|
|
3717
3717
|
},
|
|
3718
|
-
{
|
|
3719
|
-
"name": "wje-thumbnail",
|
|
3720
|
-
"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))_",
|
|
3721
|
-
"doc-url": "",
|
|
3722
|
-
"attributes": [],
|
|
3723
|
-
"slots": [
|
|
3724
|
-
{
|
|
3725
|
-
"name": "thumbnail-slot",
|
|
3726
|
-
"description": "The slot for the thumbnail content."
|
|
3727
|
-
}
|
|
3728
|
-
],
|
|
3729
|
-
"events": [],
|
|
3730
|
-
"js": {
|
|
3731
|
-
"properties": [
|
|
3732
|
-
{
|
|
3733
|
-
"name": "className",
|
|
3734
|
-
"description": "The class name for the component",
|
|
3735
|
-
"type": "string"
|
|
3736
|
-
}
|
|
3737
|
-
],
|
|
3738
|
-
"events": []
|
|
3739
|
-
}
|
|
3740
|
-
},
|
|
3741
3718
|
{
|
|
3742
3719
|
"name": "wje-timeline",
|
|
3743
3720
|
"description": "This element represents a timeline.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the timeline.\n- **syncAria()** - Sync ARIA attributes on host.\n\n### **Slots:**\n - _default_ - Slot for the timeline items.\n\n### **CSS Parts:**\n - **native** - The native part of the rating component.\n- **vertical-line** - The vertical line part of the rating component.",
|
|
@@ -3785,44 +3762,6 @@
|
|
|
3785
3762
|
"events": []
|
|
3786
3763
|
}
|
|
3787
3764
|
},
|
|
3788
|
-
{
|
|
3789
|
-
"name": "wje-toggle",
|
|
3790
|
-
"description": "This element represents a toggle input.\n---\n\n\n### **Methods:**\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 default slot for the toggle.\n\n### **CSS Properties:**\n - **--wje-toggle-color-base** - The base background color of the toggle. Defines the default background color when the toggle is in an unselected state. _(default: var(--wje-color-contrast-3))_\n- **--wje-toggle-width** - The overall width of the toggle switch. Determines how wide the toggle component appears. _(default: 30px)_\n- **--wje-toggle-height** - The overall height of the toggle switch. Specifies how tall the toggle component appears. _(default: 18px)_\n- **--wje-toggle-border-radius** - The border radius of the toggle. Controls how rounded the corners of the toggle are. _(default: 50px)_\n- **--wje-toggle-handle-width** - The width of the toggle handle (knob). Determines the size of the handle for user interaction. _(default: 14px)_\n- **--wje-toggle-handle-height** - The height of the toggle handle (knob). Specifies the vertical size of the handle. _(default: 14px)_\n- **--wje-toggle-handle-border-radius** - The border radius of the toggle handle. Controls how rounded the handle is. _(default: 9px)_\n- **--wje-toggle-handle-color** - The color of the toggle handle. Accepts any valid CSS color, such as `hex`, `rgb`, or `css variable`. _(default: #fff)_\n- **--wje-toggle-handle-shadow** - The shadow applied to the toggle handle. Adds a subtle shadow effect for better visual clarity. _(default: 1px 0 1px 0.5px rgba(0,0,0,0.12), 2px 4px 6px rgba(0,0,0,0.2))_\n- **--wje-toggle-handle-shadow-checked** - The shadow applied to the toggle handle when it is in the checked (on) state. Provides visual feedback to indicate the toggle state. _(default: 1px 1px 0 rgba(0,0,0,0.08), -3px 3px 6px rgba(0,0,0,0.3))_\n- **--wje-toggle-duration** - The duration of the toggle animation in milliseconds. Controls how long the toggle animation lasts during state changes. _(default: 250ms)_\n- **--wje-toggle-curve** - The easing curve used for the toggle animation. Defines the speed curve for the animation, enhancing the user experience with smooth transitions. _(default: cubic-bezier(.4,0,.2,1))_\n\n### **CSS Parts:**\n - **native** - The native toggle wrapper.\n- **input** - The toggle input.\n- **toggle** - The toggle part.",
|
|
3791
|
-
"doc-url": "",
|
|
3792
|
-
"attributes": [
|
|
3793
|
-
{ "name": "checked", "value": { "type": "string" } },
|
|
3794
|
-
{ "name": "disabled", "value": { "type": "string" } },
|
|
3795
|
-
{ "name": "required", "value": { "type": "string" } }
|
|
3796
|
-
],
|
|
3797
|
-
"slots": [
|
|
3798
|
-
{ "name": "", "description": "The default slot for the toggle." }
|
|
3799
|
-
],
|
|
3800
|
-
"events": [],
|
|
3801
|
-
"js": {
|
|
3802
|
-
"properties": [
|
|
3803
|
-
{
|
|
3804
|
-
"name": "value",
|
|
3805
|
-
"description": "Getter for the value attribute."
|
|
3806
|
-
},
|
|
3807
|
-
{
|
|
3808
|
-
"name": "customErrorDisplay",
|
|
3809
|
-
"description": "Getter for the customErrorDisplay attribute."
|
|
3810
|
-
},
|
|
3811
|
-
{
|
|
3812
|
-
"name": "validateOnChange",
|
|
3813
|
-
"description": "Getter for the validateOnChange attribute."
|
|
3814
|
-
},
|
|
3815
|
-
{
|
|
3816
|
-
"name": "defaultValue",
|
|
3817
|
-
"description": "Getter for the defaultValue attribute.\nThis method retrieves the 'value' attribute of the custom input element.\nThe 'value' attribute represents the default value of the input element.\nIf the 'value' attribute is not set, it returns an empty string."
|
|
3818
|
-
},
|
|
3819
|
-
{ "name": "checked", "description": "Get checked attribute." },
|
|
3820
|
-
{ "name": "invalid", "type": "boolean" },
|
|
3821
|
-
{ "name": "pristine", "type": "boolean" }
|
|
3822
|
-
],
|
|
3823
|
-
"events": []
|
|
3824
|
-
}
|
|
3825
|
-
},
|
|
3826
3765
|
{
|
|
3827
3766
|
"name": "wje-toast",
|
|
3828
3767
|
"description": "This element represents a toast notification.\n---\n\n\n### **Methods:**\n - **createToastStack(): _HTMLDivElement_** - Creates a toast stack container.\n- **getToastStackKey(): _string_** - Returns the key of the toast stack.\n- **applyToastStackPlacement(stack: _HTMLDivElement_)** - Applies the stack placement directly on the element so demo/app layout CSS cannot override it accidentally.\n- **syncToastStack(stack: _HTMLDivElement_)** - Applies the current toast stack configuration to a stack element.\n- **clearStackItemStyles(toast: _Toast_)** - Clears transient stack styling from a toast.\n- **getToastVisualHeight(toast: _Toast_): _number_** - Measures the rendered height of a toast for stack overlap calculations.\n- **updateToastStack(stack: _HTMLDivElement_)** - Recomputes the visual order of toasts inside the stack.\n- **setupAttributes()** - Setup attributes for the Button element.\n- **draw(): _object_** - Draw method for the toast notification.\n- **afterDraw()** - After draw method for the toast notification.\n- **beforeDisconnect()** - Before disconnect method\nThis method is called before the element is disconnected from the document.\n- **startTimer()** - Starts the timer.\nThis method sets the `startTime` property to the current time and sets\nthe `timeoutID` property to the ID of the timeout. The method also\ndispatches the `wje-toast:after-hide` custom event when the timeout\nexpires.\n- **stopTimer()** - Stops the timer.\nThis method clears the timeout and calculates the remaining time.\nThe method is called when the toast notification is paused.\n- **resumeTimer()** - Resumes the timer.\nThis method resumes the timer if the remaining time is greater\nthan zero. The method is called when the toast notification is resumed.\n- **removeChildAndStack()** - Removes the toast notification and the toast stack.\n\nThis method removes the toast notification from the toast stack and\nremoves the toast stack from the document body if the toast stack is\nempty.\n\n### **Slots:**\n - _default_ - The content of the toast.\n- **media** - The media of the toast.\n\n### **CSS Properties:**\n - **--wje-toast-stack-width** - Defines the width of the toast stack container. Useful for centered stacked toasts and demo layouts. // @fires wje-toast:after-show - Fired after the toast is shown. // @fires wje-toast:after-hide - Fired after the toast is hidden. _(default: 300px)_\n\n### **CSS Parts:**\n - **native** - The native part",
|
|
@@ -3950,6 +3889,93 @@
|
|
|
3950
3889
|
"events": []
|
|
3951
3890
|
}
|
|
3952
3891
|
},
|
|
3892
|
+
{
|
|
3893
|
+
"name": "wje-toggle",
|
|
3894
|
+
"description": "This element represents a toggle input.\n---\n\n\n### **Methods:**\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 default slot for the toggle.\n\n### **CSS Properties:**\n - **--wje-toggle-color-base** - The base background color of the toggle. Defines the default background color when the toggle is in an unselected state. _(default: var(--wje-color-contrast-3))_\n- **--wje-toggle-width** - The overall width of the toggle switch. Determines how wide the toggle component appears. _(default: 30px)_\n- **--wje-toggle-height** - The overall height of the toggle switch. Specifies how tall the toggle component appears. _(default: 18px)_\n- **--wje-toggle-border-radius** - The border radius of the toggle. Controls how rounded the corners of the toggle are. _(default: 50px)_\n- **--wje-toggle-handle-width** - The width of the toggle handle (knob). Determines the size of the handle for user interaction. _(default: 14px)_\n- **--wje-toggle-handle-height** - The height of the toggle handle (knob). Specifies the vertical size of the handle. _(default: 14px)_\n- **--wje-toggle-handle-border-radius** - The border radius of the toggle handle. Controls how rounded the handle is. _(default: 9px)_\n- **--wje-toggle-handle-color** - The color of the toggle handle. Accepts any valid CSS color, such as `hex`, `rgb`, or `css variable`. _(default: #fff)_\n- **--wje-toggle-handle-shadow** - The shadow applied to the toggle handle. Adds a subtle shadow effect for better visual clarity. _(default: 1px 0 1px 0.5px rgba(0,0,0,0.12), 2px 4px 6px rgba(0,0,0,0.2))_\n- **--wje-toggle-handle-shadow-checked** - The shadow applied to the toggle handle when it is in the checked (on) state. Provides visual feedback to indicate the toggle state. _(default: 1px 1px 0 rgba(0,0,0,0.08), -3px 3px 6px rgba(0,0,0,0.3))_\n- **--wje-toggle-duration** - The duration of the toggle animation in milliseconds. Controls how long the toggle animation lasts during state changes. _(default: 250ms)_\n- **--wje-toggle-curve** - The easing curve used for the toggle animation. Defines the speed curve for the animation, enhancing the user experience with smooth transitions. _(default: cubic-bezier(.4,0,.2,1))_\n\n### **CSS Parts:**\n - **native** - The native toggle wrapper.\n- **input** - The toggle input.\n- **toggle** - The toggle part.",
|
|
3895
|
+
"doc-url": "",
|
|
3896
|
+
"attributes": [
|
|
3897
|
+
{ "name": "checked", "value": { "type": "string" } },
|
|
3898
|
+
{ "name": "disabled", "value": { "type": "string" } },
|
|
3899
|
+
{ "name": "required", "value": { "type": "string" } }
|
|
3900
|
+
],
|
|
3901
|
+
"slots": [
|
|
3902
|
+
{ "name": "", "description": "The default slot for the toggle." }
|
|
3903
|
+
],
|
|
3904
|
+
"events": [],
|
|
3905
|
+
"js": {
|
|
3906
|
+
"properties": [
|
|
3907
|
+
{
|
|
3908
|
+
"name": "value",
|
|
3909
|
+
"description": "Getter for the value attribute."
|
|
3910
|
+
},
|
|
3911
|
+
{
|
|
3912
|
+
"name": "customErrorDisplay",
|
|
3913
|
+
"description": "Getter for the customErrorDisplay attribute."
|
|
3914
|
+
},
|
|
3915
|
+
{
|
|
3916
|
+
"name": "validateOnChange",
|
|
3917
|
+
"description": "Getter for the validateOnChange attribute."
|
|
3918
|
+
},
|
|
3919
|
+
{
|
|
3920
|
+
"name": "defaultValue",
|
|
3921
|
+
"description": "Getter for the defaultValue attribute.\nThis method retrieves the 'value' attribute of the custom input element.\nThe 'value' attribute represents the default value of the input element.\nIf the 'value' attribute is not set, it returns an empty string."
|
|
3922
|
+
},
|
|
3923
|
+
{ "name": "checked", "description": "Get checked attribute." },
|
|
3924
|
+
{ "name": "invalid", "type": "boolean" },
|
|
3925
|
+
{ "name": "pristine", "type": "boolean" }
|
|
3926
|
+
],
|
|
3927
|
+
"events": []
|
|
3928
|
+
}
|
|
3929
|
+
},
|
|
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
|
+
},
|
|
3953
3979
|
{
|
|
3954
3980
|
"name": "wje-toolbar-action",
|
|
3955
3981
|
"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.",
|
|
@@ -3996,27 +4022,45 @@
|
|
|
3996
4022
|
}
|
|
3997
4023
|
},
|
|
3998
4024
|
{
|
|
3999
|
-
"name": "wje-
|
|
4000
|
-
"description": "
|
|
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.",
|
|
4001
4027
|
"doc-url": "",
|
|
4002
|
-
"attributes": [
|
|
4028
|
+
"attributes": [
|
|
4029
|
+
{ "name": "selected", "value": { "type": "string" } },
|
|
4030
|
+
{ "name": "indeterminate", "value": { "type": "string" } },
|
|
4031
|
+
{ "name": "expanded", "value": { "type": "string" } }
|
|
4032
|
+
],
|
|
4003
4033
|
"slots": [
|
|
4004
4034
|
{
|
|
4005
|
-
"name": "
|
|
4006
|
-
"description": "
|
|
4007
|
-
}
|
|
4008
|
-
{ "name": "end", "description": "The end slot for the toolbar." }
|
|
4035
|
+
"name": "",
|
|
4036
|
+
"description": "Default slot for rendering the tree item's content (e.g., text or custom elements)."
|
|
4037
|
+
}
|
|
4009
4038
|
],
|
|
4010
4039
|
"events": [],
|
|
4011
4040
|
"js": {
|
|
4012
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
|
+
},
|
|
4013
4058
|
{
|
|
4014
4059
|
"name": "className",
|
|
4015
4060
|
"description": "The class name for the component.",
|
|
4016
4061
|
"type": "string"
|
|
4017
4062
|
},
|
|
4018
|
-
{ "name": "
|
|
4019
|
-
{ "name": "_responsiveFrame", "type": "null" }
|
|
4063
|
+
{ "name": "_selection", "type": "string" }
|
|
4020
4064
|
],
|
|
4021
4065
|
"events": []
|
|
4022
4066
|
}
|
|
@@ -4155,50 +4199,6 @@
|
|
|
4155
4199
|
],
|
|
4156
4200
|
"events": []
|
|
4157
4201
|
}
|
|
4158
|
-
},
|
|
4159
|
-
{
|
|
4160
|
-
"name": "wje-tree-item",
|
|
4161
|
-
"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.",
|
|
4162
|
-
"doc-url": "",
|
|
4163
|
-
"attributes": [
|
|
4164
|
-
{ "name": "selected", "value": { "type": "string" } },
|
|
4165
|
-
{ "name": "indeterminate", "value": { "type": "string" } },
|
|
4166
|
-
{ "name": "expanded", "value": { "type": "string" } }
|
|
4167
|
-
],
|
|
4168
|
-
"slots": [
|
|
4169
|
-
{
|
|
4170
|
-
"name": "",
|
|
4171
|
-
"description": "Default slot for rendering the tree item's content (e.g., text or custom elements)."
|
|
4172
|
-
}
|
|
4173
|
-
],
|
|
4174
|
-
"events": [],
|
|
4175
|
-
"js": {
|
|
4176
|
-
"properties": [
|
|
4177
|
-
{
|
|
4178
|
-
"name": "expanded",
|
|
4179
|
-
"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."
|
|
4180
|
-
},
|
|
4181
|
-
{
|
|
4182
|
-
"name": "selected",
|
|
4183
|
-
"description": "Getter method for determining if the 'selected' attribute is present on the element."
|
|
4184
|
-
},
|
|
4185
|
-
{
|
|
4186
|
-
"name": "selection",
|
|
4187
|
-
"description": "Retrieves the current selection."
|
|
4188
|
-
},
|
|
4189
|
-
{
|
|
4190
|
-
"name": "indeterminate",
|
|
4191
|
-
"description": "Retrieves the state of the indeterminate attribute."
|
|
4192
|
-
},
|
|
4193
|
-
{
|
|
4194
|
-
"name": "className",
|
|
4195
|
-
"description": "The class name for the component.",
|
|
4196
|
-
"type": "string"
|
|
4197
|
-
},
|
|
4198
|
-
{ "name": "_selection", "type": "string" }
|
|
4199
|
-
],
|
|
4200
|
-
"events": []
|
|
4201
|
-
}
|
|
4202
4202
|
}
|
|
4203
4203
|
]
|
|
4204
4204
|
}
|