wj-elements 0.7.4 → 0.7.6
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 +6937 -6800
- package/dist/dark.css +1 -1
- package/dist/light.css +1 -1
- package/dist/packages/translations/en-gb.d.ts +1 -0
- package/dist/packages/translations/sk-sk.d.ts +1 -0
- package/dist/packages/wje-button/button.element.d.ts +14 -1
- package/dist/packages/wje-pagination/pagination.element.d.ts +21 -0
- package/dist/web-types.json +531 -517
- package/dist/wje-button.js +55 -10
- package/dist/wje-button.js.map +1 -1
- package/dist/wje-checkbox.js +1 -1
- package/dist/wje-master.js +3 -1
- package/dist/wje-master.js.map +1 -1
- package/dist/wje-pagination.js +29 -3
- package/dist/wje-pagination.js.map +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.6",
|
|
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,33 +515,9 @@
|
|
|
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
|
-
"description": "This class represents Button element, extending the WJElement class.\n---\n\n\n### **Events:**\n \n\n### **Methods:**\n - **setupAttributes()** - Setup attributes for the Button element.\n- **draw(): _object_** - Draw method for the Button element.\n- **afterDraw()** - After draw method for the Button element.\n- **beforeDisconnect()** - Before disconnect method for the Button element.\n- **syncToggleState()** - Keeps toggle slot visibility aligned with the current value.\n- **syncAria()** - Syncs
|
|
520
|
+
"description": "This class represents Button element, extending the WJElement class.\n---\n\n\n### **Events:**\n \n\n### **Methods:**\n - **setupAttributes()** - Setup attributes for the Button element.\n- **draw(): _object_** - Draw method for the Button element.\n- **afterDraw()** - After draw method for the Button element.\n- **beforeDisconnect()** - Before disconnect method for the Button element.\n- **syncToggleState()** - Keeps toggle slot visibility aligned with the current value.\n- **syncAria()** - Syncs accessibility attributes on the internal native control.\n\n### **Slots:**\n - _default_ - The button main content.\n- **icon** - The button icon.\n- **icon-only** - The icon used when the button has no visible text.\n- **caret** - The button caret.\n- **start** - The button start slot.\n- **end** - The button end slot.\n- **toggle** - The button toggle slot.\n\n### **CSS Properties:**\n - **--wje-button-background-color** - Background color of the component; _(default: transparent)_\n- **--wje-button-border-color** - Border color of the component; _(default: --wje-color-contrast-4)_\n- **--wje-button-color** - Color of the component; _(default: --wje-color-contrast-11)_\n- **--wje-button-border-radius** - Border radius of the component; _(default: --wje-border-radius-medium)_\n- **--wje-button-border-width** - Border width of the component; _(default: 1px)_\n- **--wje-button-border-style** - Border style of the component; _(default: solid)_\n- **--wje-button-border-color** - Border color of the component; _(default: --wje-color-contrast-1)_\n- **--wje-button-margin-inline** - Margin inline of the component; _(default: 0)_\n\n### **CSS Parts:**\n - **native** - The component's native wrapper.",
|
|
521
521
|
"doc-url": "",
|
|
522
522
|
"attributes": [
|
|
523
523
|
{ "name": "disabled", "value": { "type": "string" } },
|
|
@@ -525,11 +525,21 @@
|
|
|
525
525
|
{ "name": "value", "value": { "type": "string" } },
|
|
526
526
|
{ "name": "active", "value": { "type": "string" } },
|
|
527
527
|
{ "name": "href", "value": { "type": "string" } },
|
|
528
|
-
{ "name": "toggle", "value": { "type": "string" } }
|
|
528
|
+
{ "name": "toggle", "value": { "type": "string" } },
|
|
529
|
+
{
|
|
530
|
+
"name": "label",
|
|
531
|
+
"description": "Accessible name forwarded to the internal native button or link.",
|
|
532
|
+
"value": { "type": "string" }
|
|
533
|
+
},
|
|
534
|
+
{ "name": "aria-label", "value": { "type": "string" } }
|
|
529
535
|
],
|
|
530
536
|
"slots": [
|
|
531
537
|
{ "name": "", "description": "The button main content." },
|
|
532
538
|
{ "name": "icon", "description": "The button icon." },
|
|
539
|
+
{
|
|
540
|
+
"name": "icon-only",
|
|
541
|
+
"description": "The icon used when the button has no visible text."
|
|
542
|
+
},
|
|
533
543
|
{ "name": "caret", "description": "The button caret." },
|
|
534
544
|
{ "name": "start", "description": "The button start slot." },
|
|
535
545
|
{ "name": "end", "description": "The button end slot." },
|
|
@@ -559,6 +569,10 @@
|
|
|
559
569
|
"name": "tooltip",
|
|
560
570
|
"description": "Get variant of the Button element."
|
|
561
571
|
},
|
|
572
|
+
{
|
|
573
|
+
"name": "label",
|
|
574
|
+
"description": "Get the accessible label of the Button element."
|
|
575
|
+
},
|
|
562
576
|
{
|
|
563
577
|
"name": "dialog",
|
|
564
578
|
"description": "Get variant of the Button element."
|
|
@@ -1024,6 +1038,51 @@
|
|
|
1024
1038
|
"events": []
|
|
1025
1039
|
}
|
|
1026
1040
|
},
|
|
1041
|
+
{
|
|
1042
|
+
"name": "wje-dialog",
|
|
1043
|
+
"description": "This element represents a dialog.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(context: _object_, store: _object_, params: _object_): _DocumentFragment_** - Draws the component.\n- **afterDraw(context: _object_, store: _object_, params: _object_)** - Draws the component after it has been drawn.\n- **htmlDialogBody(dialog)** - Creates the dialog body.\n- **close(e)** - Closes the dialog.\n- **beforeDisconnect()** - Before the component is disconnected.\n- **beforeOpen(dialog, trigger)** - Before the dialog opens.\n- **afterOpen(dialog, trigger)** - After the dialog opens.\n- **beforeClose(dialog, trigger)** - Before the dialog closes.\n- **afterClose(dialog, trigger)** - After the dialog closes.\n- **registerBlockingEvent(button: _HTMLElement_, promise: _Function_)** - Registers an event listener on the provided button that triggers a blocking UI element\nand executes a given promise when the button is clicked.\n\n### **Slots:**\n - **header** - Slot for the header content.\n- **body** - Slot for the body content.\n- **footer** - Slot for the footer content.\n\n### **CSS Properties:**\n - **--wje-dialog-background** - Specifies the background color of the dialog. _(default: var(--wje-background-color))_\n- **--wje-dialog-color** - Defines the text color within the dialog. _(default: var(--wje-text-color))_\n- **--wje-dialog-padding** - Controls the padding inside the dialog. _(default: 1rem)_\n- **--wje-dialog-border-radius** - Sets the border radius for the dialog's corners. _(default: 0.5rem)_\n- **--wje-dialog-box-shadow** - Applies a shadow effect to the dialog. _(default: 0 2px 10px rgba(0, 0, 0, 0.1))_\n\n### **CSS Parts:**\n - **dialog** - The dialog wrapper.\n- **header** - The header of the dialog.\n- **body** - The body of the dialog.\n- **footer** - The footer of the dialog.\n- **close** - The close button of the dialog.",
|
|
1044
|
+
"doc-url": "",
|
|
1045
|
+
"attributes": [],
|
|
1046
|
+
"slots": [
|
|
1047
|
+
{ "name": "header", "description": "Slot for the header content." },
|
|
1048
|
+
{ "name": "body", "description": "Slot for the body content." },
|
|
1049
|
+
{ "name": "footer", "description": "Slot for the footer content." }
|
|
1050
|
+
],
|
|
1051
|
+
"events": [],
|
|
1052
|
+
"js": {
|
|
1053
|
+
"properties": [
|
|
1054
|
+
{
|
|
1055
|
+
"name": "headline",
|
|
1056
|
+
"description": "Retrieves the value of the \"headline\" attribute from the element.\nIf the \"headline\" attribute is not present, returns an empty string."
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
"name": "placement",
|
|
1060
|
+
"description": "Gets the headline of the dialog."
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"name": "async",
|
|
1064
|
+
"description": "Gets the headline of the dialog."
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"name": "closeHidden",
|
|
1068
|
+
"description": "Gets the headline of the dialog."
|
|
1069
|
+
},
|
|
1070
|
+
{ "name": "hiddenHeader" },
|
|
1071
|
+
{ "name": "hiddenFooter" },
|
|
1072
|
+
{
|
|
1073
|
+
"name": "className",
|
|
1074
|
+
"description": "Sets the headline of the dialog.",
|
|
1075
|
+
"type": "string"
|
|
1076
|
+
},
|
|
1077
|
+
{ "name": "onOpen", "description": "Opens the dialog." },
|
|
1078
|
+
{ "name": "onClose", "description": "Closes the dialog." },
|
|
1079
|
+
{ "name": "onNativeDialogClose" },
|
|
1080
|
+
{ "name": "syncHostOpenState" },
|
|
1081
|
+
{ "name": "_opening", "type": "boolean" }
|
|
1082
|
+
],
|
|
1083
|
+
"events": []
|
|
1084
|
+
}
|
|
1085
|
+
},
|
|
1027
1086
|
{
|
|
1028
1087
|
"name": "wje-copy-button",
|
|
1029
1088
|
"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.",
|
|
@@ -1082,51 +1141,6 @@
|
|
|
1082
1141
|
"events": []
|
|
1083
1142
|
}
|
|
1084
1143
|
},
|
|
1085
|
-
{
|
|
1086
|
-
"name": "wje-dialog",
|
|
1087
|
-
"description": "This element represents a dialog.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(context: _object_, store: _object_, params: _object_): _DocumentFragment_** - Draws the component.\n- **afterDraw(context: _object_, store: _object_, params: _object_)** - Draws the component after it has been drawn.\n- **htmlDialogBody(dialog)** - Creates the dialog body.\n- **close(e)** - Closes the dialog.\n- **beforeDisconnect()** - Before the component is disconnected.\n- **beforeOpen(dialog, trigger)** - Before the dialog opens.\n- **afterOpen(dialog, trigger)** - After the dialog opens.\n- **beforeClose(dialog, trigger)** - Before the dialog closes.\n- **afterClose(dialog, trigger)** - After the dialog closes.\n- **registerBlockingEvent(button: _HTMLElement_, promise: _Function_)** - Registers an event listener on the provided button that triggers a blocking UI element\nand executes a given promise when the button is clicked.\n\n### **Slots:**\n - **header** - Slot for the header content.\n- **body** - Slot for the body content.\n- **footer** - Slot for the footer content.\n\n### **CSS Properties:**\n - **--wje-dialog-background** - Specifies the background color of the dialog. _(default: var(--wje-background-color))_\n- **--wje-dialog-color** - Defines the text color within the dialog. _(default: var(--wje-text-color))_\n- **--wje-dialog-padding** - Controls the padding inside the dialog. _(default: 1rem)_\n- **--wje-dialog-border-radius** - Sets the border radius for the dialog's corners. _(default: 0.5rem)_\n- **--wje-dialog-box-shadow** - Applies a shadow effect to the dialog. _(default: 0 2px 10px rgba(0, 0, 0, 0.1))_\n\n### **CSS Parts:**\n - **dialog** - The dialog wrapper.\n- **header** - The header of the dialog.\n- **body** - The body of the dialog.\n- **footer** - The footer of the dialog.\n- **close** - The close button of the dialog.",
|
|
1088
|
-
"doc-url": "",
|
|
1089
|
-
"attributes": [],
|
|
1090
|
-
"slots": [
|
|
1091
|
-
{ "name": "header", "description": "Slot for the header content." },
|
|
1092
|
-
{ "name": "body", "description": "Slot for the body content." },
|
|
1093
|
-
{ "name": "footer", "description": "Slot for the footer content." }
|
|
1094
|
-
],
|
|
1095
|
-
"events": [],
|
|
1096
|
-
"js": {
|
|
1097
|
-
"properties": [
|
|
1098
|
-
{
|
|
1099
|
-
"name": "headline",
|
|
1100
|
-
"description": "Retrieves the value of the \"headline\" attribute from the element.\nIf the \"headline\" attribute is not present, returns an empty string."
|
|
1101
|
-
},
|
|
1102
|
-
{
|
|
1103
|
-
"name": "placement",
|
|
1104
|
-
"description": "Gets the headline of the dialog."
|
|
1105
|
-
},
|
|
1106
|
-
{
|
|
1107
|
-
"name": "async",
|
|
1108
|
-
"description": "Gets the headline of the dialog."
|
|
1109
|
-
},
|
|
1110
|
-
{
|
|
1111
|
-
"name": "closeHidden",
|
|
1112
|
-
"description": "Gets the headline of the dialog."
|
|
1113
|
-
},
|
|
1114
|
-
{ "name": "hiddenHeader" },
|
|
1115
|
-
{ "name": "hiddenFooter" },
|
|
1116
|
-
{
|
|
1117
|
-
"name": "className",
|
|
1118
|
-
"description": "Sets the headline of the dialog.",
|
|
1119
|
-
"type": "string"
|
|
1120
|
-
},
|
|
1121
|
-
{ "name": "onOpen", "description": "Opens the dialog." },
|
|
1122
|
-
{ "name": "onClose", "description": "Closes the dialog." },
|
|
1123
|
-
{ "name": "onNativeDialogClose" },
|
|
1124
|
-
{ "name": "syncHostOpenState" },
|
|
1125
|
-
{ "name": "_opening", "type": "boolean" }
|
|
1126
|
-
],
|
|
1127
|
-
"events": []
|
|
1128
|
-
}
|
|
1129
|
-
},
|
|
1130
1144
|
{
|
|
1131
1145
|
"name": "wje-divider",
|
|
1132
1146
|
"description": "Divider is a custom web component that extends WJElement.\nIt provides a simple divider line that can be used to separate content.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the Divider.\n- **draw(): _DocumentFragment_** - Draws the Divider.\n\n### **Slots:**\n - _default_ - This is a default/unnamed slot.\n\n### **CSS Properties:**\n - **--wje-border-width** - The size of the border. _(default: 1px)_\n- **--wje-divider-border-color** - The color of the divider borderline. _(default: var(--wje-border-color))_\n- **--wje-divider-border-width** - The width of the divider borderline. _(default: var(--wje-border-width, 1px))_\n- **--wje-divider-spacing** - The spacing for the divider. _(default: 0)_",
|
|
@@ -1353,23 +1367,6 @@
|
|
|
1353
1367
|
]
|
|
1354
1368
|
}
|
|
1355
1369
|
},
|
|
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
1370
|
{
|
|
1374
1371
|
"name": "wje-file-upload-item",
|
|
1375
1372
|
"description": "This element allows users to upload files.\n`FileUploadItem` is a custom web component that represents a file upload item.\nIt extends from `WJElement` and uses the `Localizer` utility for localization.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Method to draw the component on the screen.\n- **afterDraw()** - Called after the component has been drawn.\n- **syncAria()** - Sync ARIA attributes on host and actions.\n\n### **Slots:**\n - **img** - Slot for the image\n- **action** - Slot for the action buttons\n\n### **CSS Properties:**\n - **--primary-color** - The primary color of the file upload item. //@fires wje-button:click - Dispatches when the delete button is clicked _(default: undefined)_\n\n### **CSS Parts:**\n - **button** - The delete button part\n- **image** - The image part\n- **name** - The name part\n- **size** - The size part",
|
|
@@ -1408,6 +1405,23 @@
|
|
|
1408
1405
|
"events": []
|
|
1409
1406
|
}
|
|
1410
1407
|
},
|
|
1408
|
+
{
|
|
1409
|
+
"name": "wje-footer",
|
|
1410
|
+
"description": "This element represents a footer. `Footer` is a custom web component that represents a footer.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component.\n\n### **Slots:**\n - **default** - Default slot for the footer content\n\n### **CSS Properties:**\n - **--primary-color** - The primary color of the footer _(default: undefined)_",
|
|
1411
|
+
"doc-url": "",
|
|
1412
|
+
"attributes": [],
|
|
1413
|
+
"slots": [
|
|
1414
|
+
{
|
|
1415
|
+
"name": "default",
|
|
1416
|
+
"description": "Default slot for the footer content"
|
|
1417
|
+
}
|
|
1418
|
+
],
|
|
1419
|
+
"events": [],
|
|
1420
|
+
"js": {
|
|
1421
|
+
"properties": [{ "name": "className", "type": "string" }],
|
|
1422
|
+
"events": []
|
|
1423
|
+
}
|
|
1424
|
+
},
|
|
1411
1425
|
{
|
|
1412
1426
|
"name": "wje-form",
|
|
1413
1427
|
"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.",
|
|
@@ -1501,6 +1515,23 @@
|
|
|
1501
1515
|
"events": []
|
|
1502
1516
|
}
|
|
1503
1517
|
},
|
|
1518
|
+
{
|
|
1519
|
+
"name": "wje-header",
|
|
1520
|
+
"description": "`Header` is a custom web component that represents a header. It extends from `WJElement`.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component.\n\n### **Slots:**\n - **default** - Default slot for the header content\n\n### **CSS Properties:**\n - **--wje-header-background** - The background of the header element. _(default: var(--wje-background))_\n- **--wje-header-border-color** - The border color of the header element. _(default: var(--wje-border-color))_\n- **--wje-header-border-width** - The border width of the header element. _(default: 0 0 1px 0)_\n- **--wje-header-border-style** - The border styles of the header _(default: solid)_\n- **--wje-header-top** - The position top of the header _(default: 0)_\n- **--wje-header-height** - The height of the header element. _(default: 60px)_\n- **--wje-header-z-index** - The z-index used when the header is sticky. _(default: 100)_\n\n### **CSS Parts:**\n - **native** - The native part",
|
|
1521
|
+
"doc-url": "",
|
|
1522
|
+
"attributes": [],
|
|
1523
|
+
"slots": [
|
|
1524
|
+
{
|
|
1525
|
+
"name": "default",
|
|
1526
|
+
"description": "Default slot for the header content"
|
|
1527
|
+
}
|
|
1528
|
+
],
|
|
1529
|
+
"events": [],
|
|
1530
|
+
"js": {
|
|
1531
|
+
"properties": [{ "name": "className", "type": "string" }],
|
|
1532
|
+
"events": []
|
|
1533
|
+
}
|
|
1534
|
+
},
|
|
1504
1535
|
{
|
|
1505
1536
|
"name": "wje-icon",
|
|
1506
1537
|
"description": "This element represents an icon. `IconElement` is a custom web component that represents an icon.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(context: _object_, store: _object_, params: _object_): _DocumentFragment_** - Draws the component.\n- **afterDraw()** - Called after the component has been drawn.\n- **syncAria()** - Sync ARIA attributes on host.\n\n### **CSS Properties:**\n - **--wje-icon-size** - The size of the icon element _(default: 1rem)_\n- **--wje-icon-width** - The width of the icon element _(default: var(--wje-icon-size, 100%))_\n- **--wje-icon-height** - The height of the icon element _(default: var(--wje-icon-size, 100%))_\n\n### **CSS Parts:**\n - **svg** - The SVG part of the icon",
|
|
@@ -1522,23 +1553,6 @@
|
|
|
1522
1553
|
"events": []
|
|
1523
1554
|
}
|
|
1524
1555
|
},
|
|
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
1556
|
{
|
|
1543
1557
|
"name": "wje-icon-picker",
|
|
1544
1558
|
"description": "This element allows users to pick an icon from a set of available options.\n`IconPicker` is a custom web component that represents an interactive icon picker. It features\nsearch functionality, infinite scrolling, and popup-based selection. The component is highly customizable\nand integrates seamlessly with other `WJElement` components.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **beforeDraw(): _Promise<void>_** - Prepares data before the draw operation by fetching tags, transforming objects, and creating an index.\n- **draw(): _DocumentFragment_** - Draws and initializes the native color picker component on the DOM.\nThis method creates and appends the necessary elements, including input and infinite scroll components,\nand sets their attributes and event listeners. It also provides custom data handling for infinite scrolling\nand manages the way icons are displayed based on input.\n- **afterDraw(): _void_** - Executes actions that occur after the component finishes its draw phase. Sets up event listeners for input clear\nand infinite scroll item clicks, resets initialization state, and rebinds scroll-related events.\n- **syncAria()** - Sync ARIA attributes on host.\n- **initial()** - Initializes the component.\n- **getTags(): _Promise<Array>_** - Gets the tags.\n- **beforeDisconnect()** - Called when the component is disconnected.\n- **clearIconsContainer()** - Clears the icons container.\n- **debounce(fn: _Function_, delay: _number_): _Function_** - Creates a debounced version of the provided function that delays its execution\nuntil after the specified delay has passed since the last time it was invoked.\n\n### **CSS Properties:**\n - **--wje-color-picker-value** - The default color value. _(default: #ff0000)_\n- **--wje-color-picker-area** - The background color of the color picker area. _(default: transparent)_\n- **--wje-color-picker-swatch** - The background color of the swatch picker. _(default: transparent)_\n- **--wje-color-picker-size** - The size of the icons in the picker. _(default: 1rem)_\n- **--wje-color-picker-radius** - The border radius of the picker. _(default: 4px)_\n\n### **CSS Parts:**\n - **native** - The native part of the component.\n- **anchor** - The part representing the anchor button displaying the selected icon.\n- **picker** - The picker part containing the search and icon selection interface.\n- **input** - The input part for searching icons.",
|
|
@@ -1597,44 +1611,101 @@
|
|
|
1597
1611
|
}
|
|
1598
1612
|
},
|
|
1599
1613
|
{
|
|
1600
|
-
"name": "wje-img
|
|
1601
|
-
"description": "This element
|
|
1614
|
+
"name": "wje-img",
|
|
1615
|
+
"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
1616
|
"doc-url": "",
|
|
1603
|
-
"attributes": [
|
|
1604
|
-
|
|
1605
|
-
{ "name": "
|
|
1606
|
-
{ "name": "
|
|
1617
|
+
"attributes": [
|
|
1618
|
+
{ "name": "src", "value": { "type": "string" } },
|
|
1619
|
+
{ "name": "alt", "value": { "type": "string" } },
|
|
1620
|
+
{ "name": "no-lazy", "value": { "type": "string" } }
|
|
1607
1621
|
],
|
|
1608
1622
|
"events": [],
|
|
1609
1623
|
"js": {
|
|
1610
1624
|
"properties": [
|
|
1611
1625
|
{
|
|
1612
|
-
"name": "
|
|
1613
|
-
"description": "
|
|
1614
|
-
"type": "
|
|
1626
|
+
"name": "src",
|
|
1627
|
+
"description": "The source URL of the image.",
|
|
1628
|
+
"type": "string"
|
|
1615
1629
|
},
|
|
1616
|
-
{ "name": "className", "type": "string" },
|
|
1617
1630
|
{
|
|
1618
|
-
"name": "
|
|
1619
|
-
"description": "
|
|
1631
|
+
"name": "alt",
|
|
1632
|
+
"description": "The alternative text for the image.",
|
|
1633
|
+
"type": "string"
|
|
1620
1634
|
},
|
|
1621
1635
|
{
|
|
1622
|
-
"name": "
|
|
1623
|
-
"description": "
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1636
|
+
"name": "fallout",
|
|
1637
|
+
"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'.",
|
|
1638
|
+
"type": "string"
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
"name": "loader",
|
|
1642
|
+
"description": "The URL of the image loader to display while the image is loading.",
|
|
1643
|
+
"type": "string"
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
"name": "noLazy",
|
|
1647
|
+
"description": "Disables lazy loading and renders the image source immediately.",
|
|
1648
|
+
"type": "boolean"
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
"name": "className",
|
|
1652
|
+
"description": "The class name for the component.",
|
|
1653
|
+
"type": "string"
|
|
1654
|
+
},
|
|
1655
|
+
{ "name": "setAvatarInitials" },
|
|
1656
|
+
{
|
|
1657
|
+
"name": "deleteImage",
|
|
1658
|
+
"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."
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
"name": "onerrorFunc",
|
|
1662
|
+
"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."
|
|
1663
|
+
},
|
|
1664
|
+
{ "name": "_fallout", "type": "boolean" },
|
|
1665
|
+
{ "name": "actions", "type": "object" }
|
|
1666
|
+
],
|
|
1667
|
+
"events": []
|
|
1668
|
+
}
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
"name": "wje-img-comparer",
|
|
1672
|
+
"description": "This element allows users to compare two images. `ImgComparer` is a custom web component that represents an image comparer.\nIt extends from `WJElement` and uses the `Icon` component.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component.\n\n### **Slots:**\n - **before** - The before image slot.\n- **after** - The after image slot.\n\n### **CSS Properties:**\n - **--wje-img-compare-divider-area** - The area of the divider. This is the size of the divider. Accepts any valid CSS size. _(default: 12px)_\n- **--wje-img-compare-divider-background** - Sets the background color of the divider in the image comparison component. Accepts any valid CSS color value (e.g., `red`, `#ff0000`, `rgba(255, 255, 255, 0.5)`). The default value is `white`, which ensures high contrast in most designs. _(default: white)_\n- **--wje-img-compare-divider-size** - The size of the divider. This is the thickness of the divider. Accepts any valid CSS size. _(default: 2px)_\n- **--wje-img-compare-divider-left** - The left position of the divider. This is the initial position of the divider. _(default: 50%)_\n- **--wje-img-compare-position** - The position of the divider. This is the position of the divider. _(default: 50%)_\n- **--wje-img-compare-clip-path** - The clip path of the divider. This is the clip path of the divider. _(default: inset(0 calc(100% - var(--wje-img-compare-position)) 0 0))_\n\n### **CSS Parts:**\n - **divider** - The divider part.",
|
|
1673
|
+
"doc-url": "",
|
|
1674
|
+
"attributes": [],
|
|
1675
|
+
"slots": [
|
|
1676
|
+
{ "name": "before", "description": "The before image slot." },
|
|
1677
|
+
{ "name": "after", "description": "The after image slot." }
|
|
1678
|
+
],
|
|
1679
|
+
"events": [],
|
|
1680
|
+
"js": {
|
|
1681
|
+
"properties": [
|
|
1682
|
+
{
|
|
1683
|
+
"name": "dependencies",
|
|
1684
|
+
"description": "Dependencies of the ImgComparer component.",
|
|
1685
|
+
"type": "object"
|
|
1686
|
+
},
|
|
1687
|
+
{ "name": "className", "type": "string" },
|
|
1688
|
+
{
|
|
1689
|
+
"name": "handleDrag",
|
|
1690
|
+
"description": "Handles the drag event."
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
"name": "clamp",
|
|
1694
|
+
"description": "Clamps a number between a minimum and maximum value."
|
|
1695
|
+
}
|
|
1696
|
+
],
|
|
1697
|
+
"events": []
|
|
1698
|
+
}
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
"name": "wje-infinite-scroll",
|
|
1702
|
+
"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.",
|
|
1703
|
+
"doc-url": "",
|
|
1704
|
+
"attributes": [],
|
|
1705
|
+
"slots": [
|
|
1706
|
+
{
|
|
1707
|
+
"name": "",
|
|
1708
|
+
"description": "The default slot for the infinite scroll."
|
|
1638
1709
|
}
|
|
1639
1710
|
],
|
|
1640
1711
|
"events": [],
|
|
@@ -1686,63 +1757,6 @@
|
|
|
1686
1757
|
"events": []
|
|
1687
1758
|
}
|
|
1688
1759
|
},
|
|
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
1760
|
{
|
|
1747
1761
|
"name": "wje-input",
|
|
1748
1762
|
"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.",
|
|
@@ -2346,6 +2360,33 @@
|
|
|
2346
2360
|
"events": []
|
|
2347
2361
|
}
|
|
2348
2362
|
},
|
|
2363
|
+
{
|
|
2364
|
+
"name": "wje-orgchart",
|
|
2365
|
+
"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.",
|
|
2366
|
+
"doc-url": "",
|
|
2367
|
+
"attributes": [
|
|
2368
|
+
{
|
|
2369
|
+
"name": "flat",
|
|
2370
|
+
"description": "Removes the incoming connector spacing for nested charts that should visually continue on the same level.",
|
|
2371
|
+
"value": { "type": "boolean" }
|
|
2372
|
+
}
|
|
2373
|
+
],
|
|
2374
|
+
"events": [],
|
|
2375
|
+
"js": {
|
|
2376
|
+
"properties": [
|
|
2377
|
+
{
|
|
2378
|
+
"name": "flat",
|
|
2379
|
+
"description": "Gets whether the chart omits its incoming connector spacing."
|
|
2380
|
+
},
|
|
2381
|
+
{ "name": "className", "type": "string" },
|
|
2382
|
+
{
|
|
2383
|
+
"name": "syncFlatChildren",
|
|
2384
|
+
"description": "Marks direct children that are rendered inside a flat chart."
|
|
2385
|
+
}
|
|
2386
|
+
],
|
|
2387
|
+
"events": []
|
|
2388
|
+
}
|
|
2389
|
+
},
|
|
2349
2390
|
{
|
|
2350
2391
|
"name": "wje-orgchart-item",
|
|
2351
2392
|
"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 item.\n- **afterDraw()** - After Draws the component for the org chart item.\n\n### **Slots:**\n - _default_ - The default slot for the orgchart item.\n- **child** - The child slot for the orgchart item.\n\n### **CSS Parts:**\n - **** - Styles the element.\n- **native** - Styles the native element.\n- **expander** - Styles the expander element. // @fires wje-orgchart-item:click - Emitted when the item card is clicked.",
|
|
@@ -2393,36 +2434,9 @@
|
|
|
2393
2434
|
"events": []
|
|
2394
2435
|
}
|
|
2395
2436
|
},
|
|
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
2437
|
{
|
|
2424
2438
|
"name": "wje-pagination",
|
|
2425
|
-
"description": "This class represents the Pagination component for navigating through paginated content and dynamically updating navigation elements based on attributes like the number of items, page size, etc. Extends the WJElement class.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Creates a document fragment, appends a new slot element to it, and returns the fragment.\n- **htmlPagination(): _DocumentFragment_** - Creates a pagination control for navigating between pages of content.\nThis method generates and returns a document fragment containing pagination controls, including buttons for navigating to the first, previous, next, and last pages, as well as optional informational text about the current set of displayed items and total number of items.\n- **htmlStackButtons(paginateObj: _@param {number} paginateObj.currentPage The current active page index (1-based).\n * @param {Array<number>} paginateObj.pages An array of page numbers to display in the pagination.\n * @param {number} paginateObj.totalPages Total number of pages available for pagination.\n * _): _DocumentFragment_** - Creates and returns a DocumentFragment containing a series of buttons for pagination purposes,\nbased on the provided pagination object.\n\n### **CSS Parts:**\n - **native** - The wrapper element for the pagination component.",
|
|
2439
|
+
"description": "This class represents the Pagination component for navigating through paginated content and dynamically updating navigation elements based on attributes like the number of items, page size, etc. Extends the WJElement class.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Creates a document fragment, appends a new slot element to it, and returns the fragment.\n- **htmlPagination(): _DocumentFragment_** - Creates a pagination control for navigating between pages of content.\nThis method generates and returns a document fragment containing pagination controls, including buttons for navigating to the first, previous, next, and last pages, as well as optional informational text about the current set of displayed items and total number of items.\n- **htmlStackButtons(paginateObj: _@param {number} paginateObj.currentPage The current active page index (1-based).\n * @param {Array<number>} paginateObj.pages An array of page numbers to display in the pagination.\n * @param {number} paginateObj.totalPages Total number of pages available for pagination.\n * _): _DocumentFragment_** - Creates and returns a DocumentFragment containing a series of buttons for pagination purposes,\nbased on the provided pagination object.\n\n### **CSS Properties:**\n - **--wje-pagination-gap** - Gap between the summary and page navigation. _(default: 1rem)_\n- **--wje-pagination-summary-gap** - Gap between summary items. _(default: 1rem)_\n- **--wje-pagination-page-size-gap** - Gap between the page-size label and selector. _(default: var(--wje-spacing-small))_\n- **--wje-pagination-mobile-gap** - Gap between pagination rows below the md container width. _(default: var(--wje-spacing-x-large))_\n- **--wje-pagination-page-size-width** - Width of the page-size selector. _(default: 68px)_\n- **--wje-pagination-page-button-width** - Width of pagination buttons. _(default: 32px)_\n- **--wje-pagination-page-button-gap** - Gap between pagination buttons. _(default: 0.5rem)_\n\n### **CSS Parts:**\n - **native** - The wrapper element for the pagination component.\n- **summary** - The wrapper for the page-size selector and item range.\n- **page-size** - The wrapper for the page-size label and selector.\n- **page-size-label** - The page-size selector label.\n- **page-size-select** - The page-size selector.\n- **info** - The item range information.\n- **pages** - The page navigation wrapper.\n- **page-button** - Any pagination button.\n- **page-number** - A numbered page button.\n- **current-page** - The current page button.\n- **first-button** - The button that navigates to the first page.\n- **previous-button** - The button that navigates to the previous page.\n- **next-button** - The button that navigates to the next page.\n- **last-button** - The button that navigates to the last page.\n- **dots** - The page range ellipsis.",
|
|
2426
2440
|
"doc-url": "",
|
|
2427
2441
|
"attributes": [
|
|
2428
2442
|
{ "name": "page", "value": { "type": "string" } },
|
|
@@ -2627,6 +2641,45 @@
|
|
|
2627
2641
|
"events": []
|
|
2628
2642
|
}
|
|
2629
2643
|
},
|
|
2644
|
+
{
|
|
2645
|
+
"name": "wje-radio-group",
|
|
2646
|
+
"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.",
|
|
2647
|
+
"doc-url": "",
|
|
2648
|
+
"attributes": [
|
|
2649
|
+
{ "name": "required", "value": { "type": "string" } },
|
|
2650
|
+
{ "name": "value", "value": { "type": "string" } },
|
|
2651
|
+
{ "name": "disabled", "value": { "type": "string" } },
|
|
2652
|
+
{ "name": "invalid", "value": { "type": "string" } },
|
|
2653
|
+
{ "name": "label", "value": { "type": "string" } }
|
|
2654
|
+
],
|
|
2655
|
+
"slots": [
|
|
2656
|
+
{
|
|
2657
|
+
"name": "",
|
|
2658
|
+
"description": "The default slot for the radio group."
|
|
2659
|
+
}
|
|
2660
|
+
],
|
|
2661
|
+
"events": [],
|
|
2662
|
+
"js": {
|
|
2663
|
+
"properties": [
|
|
2664
|
+
{
|
|
2665
|
+
"name": "value",
|
|
2666
|
+
"description": "Getter for the value attribute."
|
|
2667
|
+
},
|
|
2668
|
+
{
|
|
2669
|
+
"name": "required",
|
|
2670
|
+
"description": "Getter for the name attribute."
|
|
2671
|
+
},
|
|
2672
|
+
{
|
|
2673
|
+
"name": "label",
|
|
2674
|
+
"description": "Getter for the label attribute."
|
|
2675
|
+
},
|
|
2676
|
+
{ "name": "className", "type": "string" },
|
|
2677
|
+
{ "name": "invalid", "type": "boolean" },
|
|
2678
|
+
{ "name": "pristine", "type": "boolean" }
|
|
2679
|
+
],
|
|
2680
|
+
"events": []
|
|
2681
|
+
}
|
|
2682
|
+
},
|
|
2630
2683
|
{
|
|
2631
2684
|
"name": "wje-qr-code",
|
|
2632
2685
|
"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.",
|
|
@@ -2815,6 +2868,29 @@
|
|
|
2815
2868
|
"events": []
|
|
2816
2869
|
}
|
|
2817
2870
|
},
|
|
2871
|
+
{
|
|
2872
|
+
"name": "wje-reorder-dropzone",
|
|
2873
|
+
"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.",
|
|
2874
|
+
"doc-url": "",
|
|
2875
|
+
"attributes": [],
|
|
2876
|
+
"slots": [
|
|
2877
|
+
{
|
|
2878
|
+
"name": "",
|
|
2879
|
+
"description": "The default slot for the reorder dropzone."
|
|
2880
|
+
}
|
|
2881
|
+
],
|
|
2882
|
+
"events": [],
|
|
2883
|
+
"js": {
|
|
2884
|
+
"properties": [
|
|
2885
|
+
{
|
|
2886
|
+
"name": "className",
|
|
2887
|
+
"description": "The class name for the component.",
|
|
2888
|
+
"type": "string"
|
|
2889
|
+
}
|
|
2890
|
+
],
|
|
2891
|
+
"events": []
|
|
2892
|
+
}
|
|
2893
|
+
},
|
|
2818
2894
|
{
|
|
2819
2895
|
"name": "wje-reorder",
|
|
2820
2896
|
"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.",
|
|
@@ -2875,62 +2951,49 @@
|
|
|
2875
2951
|
}
|
|
2876
2952
|
},
|
|
2877
2953
|
{
|
|
2878
|
-
"name": "wje-
|
|
2879
|
-
"description": "This element represents a
|
|
2954
|
+
"name": "wje-reorder-handle",
|
|
2955
|
+
"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.",
|
|
2880
2956
|
"doc-url": "",
|
|
2881
2957
|
"attributes": [
|
|
2882
|
-
{ "name": "
|
|
2883
|
-
{ "name": "
|
|
2884
|
-
|
|
2885
|
-
{ "name": "invalid", "value": { "type": "string" } },
|
|
2886
|
-
{ "name": "label", "value": { "type": "string" } }
|
|
2887
|
-
],
|
|
2958
|
+
{ "name": "dropzone", "value": { "type": "string" } },
|
|
2959
|
+
{ "name": "parent", "value": { "type": "string" } }
|
|
2960
|
+
],
|
|
2888
2961
|
"slots": [
|
|
2889
2962
|
{
|
|
2890
2963
|
"name": "",
|
|
2891
|
-
"description": "The default slot for the
|
|
2964
|
+
"description": "The default slot for the reorder handle."
|
|
2892
2965
|
}
|
|
2893
2966
|
],
|
|
2894
2967
|
"events": [],
|
|
2895
2968
|
"js": {
|
|
2896
2969
|
"properties": [
|
|
2897
2970
|
{
|
|
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" }
|
|
2971
|
+
"name": "className",
|
|
2972
|
+
"description": "The class name for the component.",
|
|
2973
|
+
"type": "string"
|
|
2974
|
+
}
|
|
2912
2975
|
],
|
|
2913
2976
|
"events": []
|
|
2914
2977
|
}
|
|
2915
2978
|
},
|
|
2916
2979
|
{
|
|
2917
|
-
"name": "wje-
|
|
2918
|
-
"description": "This element represents a
|
|
2980
|
+
"name": "wje-router",
|
|
2981
|
+
"description": "This element represents a router in a routing system.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **beforeDraw()** - Sets up the router after the component is drawn.\n- **parseElement(element: _Element_): _object_** - Parses an element and returns an object representation.\n- **beforeDisconnect()** - Cleans up before the component is disconnected.",
|
|
2919
2982
|
"doc-url": "",
|
|
2920
2983
|
"attributes": [],
|
|
2921
|
-
"slots": [
|
|
2922
|
-
{
|
|
2923
|
-
"name": "",
|
|
2924
|
-
"description": "The default slot for the reorder dropzone."
|
|
2925
|
-
}
|
|
2926
|
-
],
|
|
2927
2984
|
"events": [],
|
|
2928
2985
|
"js": {
|
|
2929
2986
|
"properties": [
|
|
2987
|
+
{ "name": "routes" },
|
|
2988
|
+
{ "name": "rootElement" },
|
|
2989
|
+
{ "name": "className", "type": "string" },
|
|
2930
2990
|
{
|
|
2931
|
-
"name": "
|
|
2932
|
-
"description": "
|
|
2933
|
-
|
|
2991
|
+
"name": "setBreadcrumb",
|
|
2992
|
+
"description": "Sets the breadcrumb for the transition."
|
|
2993
|
+
},
|
|
2994
|
+
{
|
|
2995
|
+
"name": "resetScrollPosition",
|
|
2996
|
+
"description": "Resets the scroll position."
|
|
2934
2997
|
}
|
|
2935
2998
|
],
|
|
2936
2999
|
"events": []
|
|
@@ -2960,51 +3023,19 @@
|
|
|
2960
3023
|
}
|
|
2961
3024
|
},
|
|
2962
3025
|
{
|
|
2963
|
-
"name": "wje-
|
|
2964
|
-
"description": "This element represents a
|
|
3026
|
+
"name": "wje-router-link",
|
|
3027
|
+
"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.",
|
|
2965
3028
|
"doc-url": "",
|
|
2966
|
-
"attributes": [
|
|
2967
|
-
{ "name": "dropzone", "value": { "type": "string" } },
|
|
2968
|
-
{ "name": "parent", "value": { "type": "string" } }
|
|
2969
|
-
],
|
|
3029
|
+
"attributes": [],
|
|
2970
3030
|
"slots": [
|
|
2971
3031
|
{
|
|
2972
3032
|
"name": "",
|
|
2973
|
-
"description": "The default slot for the
|
|
3033
|
+
"description": "The default slot for the router link."
|
|
2974
3034
|
}
|
|
2975
3035
|
],
|
|
2976
3036
|
"events": [],
|
|
2977
3037
|
"js": {
|
|
2978
|
-
"properties": [
|
|
2979
|
-
{
|
|
2980
|
-
"name": "className",
|
|
2981
|
-
"description": "The class name for the component.",
|
|
2982
|
-
"type": "string"
|
|
2983
|
-
}
|
|
2984
|
-
],
|
|
2985
|
-
"events": []
|
|
2986
|
-
}
|
|
2987
|
-
},
|
|
2988
|
-
{
|
|
2989
|
-
"name": "wje-router",
|
|
2990
|
-
"description": "This element represents a router in a routing system.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **beforeDraw()** - Sets up the router after the component is drawn.\n- **parseElement(element: _Element_): _object_** - Parses an element and returns an object representation.\n- **beforeDisconnect()** - Cleans up before the component is disconnected.",
|
|
2991
|
-
"doc-url": "",
|
|
2992
|
-
"attributes": [],
|
|
2993
|
-
"events": [],
|
|
2994
|
-
"js": {
|
|
2995
|
-
"properties": [
|
|
2996
|
-
{ "name": "routes" },
|
|
2997
|
-
{ "name": "rootElement" },
|
|
2998
|
-
{ "name": "className", "type": "string" },
|
|
2999
|
-
{
|
|
3000
|
-
"name": "setBreadcrumb",
|
|
3001
|
-
"description": "Sets the breadcrumb for the transition."
|
|
3002
|
-
},
|
|
3003
|
-
{
|
|
3004
|
-
"name": "resetScrollPosition",
|
|
3005
|
-
"description": "Resets the scroll position."
|
|
3006
|
-
}
|
|
3007
|
-
],
|
|
3038
|
+
"properties": [{ "name": "className", "type": "string" }],
|
|
3008
3039
|
"events": []
|
|
3009
3040
|
}
|
|
3010
3041
|
},
|
|
@@ -3019,23 +3050,6 @@
|
|
|
3019
3050
|
"events": []
|
|
3020
3051
|
}
|
|
3021
3052
|
},
|
|
3022
|
-
{
|
|
3023
|
-
"name": "wje-router-link",
|
|
3024
|
-
"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.",
|
|
3025
|
-
"doc-url": "",
|
|
3026
|
-
"attributes": [],
|
|
3027
|
-
"slots": [
|
|
3028
|
-
{
|
|
3029
|
-
"name": "",
|
|
3030
|
-
"description": "The default slot for the router link."
|
|
3031
|
-
}
|
|
3032
|
-
],
|
|
3033
|
-
"events": [],
|
|
3034
|
-
"js": {
|
|
3035
|
-
"properties": [{ "name": "className", "type": "string" }],
|
|
3036
|
-
"events": []
|
|
3037
|
-
}
|
|
3038
|
-
},
|
|
3039
3053
|
{
|
|
3040
3054
|
"name": "wje-router-outlet",
|
|
3041
3055
|
"description": "This element represents a route in a routing system.\n---\n",
|
|
@@ -3074,107 +3088,45 @@
|
|
|
3074
3088
|
}
|
|
3075
3089
|
},
|
|
3076
3090
|
{
|
|
3077
|
-
"name": "wje-
|
|
3078
|
-
"description": "
|
|
3091
|
+
"name": "wje-slider",
|
|
3092
|
+
"description": "Represents a slider component that extends the WJElement class.\nThis slider supports features such as min, max, step values, bubble display, and event handling.\nIt offers both getter and setter methods for its attributes and dynamically handles rendering and updates.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the slider.\n- **afterDraw(): _void_** - Handles the post-rendering logic for a custom slider component. This method performs the following tasks:\n- Sets the position of the handle.\n- Displays a bubble indicator with the current value, if the slider has a \"bubble\" attribute.\n- Dispatches initialization, movement, and change custom events for the slider input element.\n- Updates the bubble position and value dynamically on input changes.\n- **syncAria()** - Syncs ARIA attributes on the host element.\n- **getPercentage(min: _number_, max: _number_, value: _number_): _number_** - Calculates the percentage of a value within a given range.",
|
|
3079
3093
|
"doc-url": "",
|
|
3080
3094
|
"attributes": [
|
|
3081
|
-
{ "name": "
|
|
3095
|
+
{ "name": "max", "value": { "type": "string" } },
|
|
3096
|
+
{ "name": "min", "value": { "type": "string" } },
|
|
3097
|
+
{ "name": "step", "value": { "type": "string" } },
|
|
3098
|
+
{ "name": "value", "value": { "type": "string" } },
|
|
3082
3099
|
{ "name": "disabled", "value": { "type": "string" } },
|
|
3083
|
-
{ "name": "
|
|
3084
|
-
{ "name": "portaled", "value": { "type": "string" } }
|
|
3100
|
+
{ "name": "bubble", "value": { "type": "string" } }
|
|
3085
3101
|
],
|
|
3086
3102
|
"events": [],
|
|
3087
3103
|
"js": {
|
|
3088
3104
|
"properties": [
|
|
3089
|
-
{
|
|
3090
|
-
"name": "dependencies",
|
|
3091
|
-
"description": "An object representing component dependencies with their respective classes.\nEach property in the object maps a custom component name (as a string key)\nto its corresponding class or constructor.",
|
|
3092
|
-
"type": "object"
|
|
3093
|
-
},
|
|
3094
3105
|
{
|
|
3095
3106
|
"name": "value",
|
|
3096
|
-
"description": "
|
|
3097
|
-
},
|
|
3098
|
-
{
|
|
3099
|
-
"name": "maxOptions",
|
|
3100
|
-
"description": "Retrieves the maximum number of options allowed.\nParses the value of the 'max-options' attribute from the element and converts it to a number.\nIf the attribute is not present or cannot be converted to a valid number, defaults to 1."
|
|
3101
|
-
},
|
|
3102
|
-
{ "name": "defaultValue" },
|
|
3103
|
-
{
|
|
3104
|
-
"name": "portaled",
|
|
3105
|
-
"description": "Getter for the `portaled` attribute value."
|
|
3106
|
-
},
|
|
3107
|
-
{
|
|
3108
|
-
"name": "isPortaled",
|
|
3109
|
-
"description": "Checks whether popup content should be portaled."
|
|
3110
|
-
},
|
|
3111
|
-
{
|
|
3112
|
-
"name": "trigger",
|
|
3113
|
-
"description": "Returns the trigger value."
|
|
3114
|
-
},
|
|
3115
|
-
{
|
|
3116
|
-
"name": "disabled",
|
|
3117
|
-
"description": "Retrieves the current state of the 'disabled' attribute."
|
|
3118
|
-
},
|
|
3119
|
-
{
|
|
3120
|
-
"name": "readonly",
|
|
3121
|
-
"description": "Checks if the 'readonly' attribute is present on the element."
|
|
3122
|
-
},
|
|
3123
|
-
{
|
|
3124
|
-
"name": "maxHeight",
|
|
3125
|
-
"description": "Retrieves the maximum height value, which is determined by the 'max-height' attribute.\nIf the attribute is not set, a default value of '200px' is returned."
|
|
3126
|
-
},
|
|
3127
|
-
{
|
|
3128
|
-
"name": "offset",
|
|
3129
|
-
"description": "Gets the value of the offset attribute of the current element.\nIf the offset attribute is not present, returns a default value of '0'."
|
|
3130
|
-
},
|
|
3131
|
-
{
|
|
3132
|
-
"name": "selectedOptions",
|
|
3133
|
-
"description": "Retrieves the selected options."
|
|
3134
|
-
},
|
|
3135
|
-
{
|
|
3136
|
-
"name": "lazy",
|
|
3137
|
-
"description": "Getter for the 'lazy' property."
|
|
3107
|
+
"description": "Returns the value of the slider."
|
|
3138
3108
|
},
|
|
3139
3109
|
{
|
|
3140
|
-
"name": "
|
|
3141
|
-
"description": "
|
|
3110
|
+
"name": "min",
|
|
3111
|
+
"description": "Returns the minimum value of the slider."
|
|
3142
3112
|
},
|
|
3143
3113
|
{
|
|
3144
|
-
"name": "
|
|
3145
|
-
"description": "
|
|
3114
|
+
"name": "max",
|
|
3115
|
+
"description": "Returns the maximum value of the slider."
|
|
3146
3116
|
},
|
|
3147
3117
|
{
|
|
3148
|
-
"name": "
|
|
3149
|
-
"description": "
|
|
3118
|
+
"name": "step",
|
|
3119
|
+
"description": "Returns the step value of the slider."
|
|
3150
3120
|
},
|
|
3151
3121
|
{ "name": "className", "type": "string" },
|
|
3152
3122
|
{
|
|
3153
|
-
"name": "
|
|
3154
|
-
"description": "
|
|
3155
|
-
},
|
|
3156
|
-
{
|
|
3157
|
-
"name": "processClickedOption",
|
|
3158
|
-
"description": "Handles the logic for processing the selection state of a clicked option element."
|
|
3123
|
+
"name": "setHandlePosition",
|
|
3124
|
+
"description": "Sets the handle position of the slider."
|
|
3159
3125
|
},
|
|
3160
3126
|
{
|
|
3161
|
-
"name": "
|
|
3162
|
-
"description": "
|
|
3163
|
-
}
|
|
3164
|
-
{ "name": "localizer" },
|
|
3165
|
-
{ "name": "native", "type": "HTMLElement|null" },
|
|
3166
|
-
{ "name": "popup", "type": "HTMLElement|null" },
|
|
3167
|
-
{ "name": "labelElement", "type": "HTMLElement|null" },
|
|
3168
|
-
{ "name": "slotStart", "type": "HTMLElement|null" },
|
|
3169
|
-
{ "name": "slotEnd", "type": "HTMLElement|null" },
|
|
3170
|
-
{ "name": "input", "type": "HTMLElement|null" },
|
|
3171
|
-
{ "name": "displayText", "type": "HTMLElement|null" },
|
|
3172
|
-
{ "name": "chips", "type": "HTMLElement|null" },
|
|
3173
|
-
{ "name": "clear", "type": "HTMLElement|null" },
|
|
3174
|
-
{ "name": "list", "type": "HTMLElement|null" },
|
|
3175
|
-
{ "name": "emptyState", "type": "HTMLElement|null" },
|
|
3176
|
-
{ "name": "_value", "type": "array" },
|
|
3177
|
-
{ "name": "_selectedOptions", "type": "array" }
|
|
3127
|
+
"name": "setBubble",
|
|
3128
|
+
"description": "Updates the position and content of a bubble element based on the input value.\n\nThis function calculates the position of the bubble using the percentage representation\nof the input's current value relative to its minimum and maximum bounds. It then adjusts\nthe bubble's left position dynamically for aesthetic purposes and updates its displayed\ncontent to reflect the current input value.\n\nThe function relies on the following elements:\n- `this.input`: Represents the input element with properties `min`, `max`, and `value`.\n- `this.output`: Represents the bubble element to be positioned and updated.\n\nThe left positioning of the bubble ensures precise alignment with the input value indicator."
|
|
3129
|
+
}
|
|
3178
3130
|
],
|
|
3179
3131
|
"events": []
|
|
3180
3132
|
}
|
|
@@ -3425,87 +3377,149 @@
|
|
|
3425
3377
|
}
|
|
3426
3378
|
},
|
|
3427
3379
|
{
|
|
3428
|
-
"name": "wje-
|
|
3429
|
-
"description": "
|
|
3380
|
+
"name": "wje-select",
|
|
3381
|
+
"description": "\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the select.\n- **afterDraw(): _void_** - Executes post-render logic for the custom element.\nThis includes validation, event listener registration, managing custom attributes, and\nhandling options initialization for the component.\n- **getAllOptions(): _NodeList_** - Returns all the options as HTML.\n- **selectionChanged(options: _Array|null_, length: _number_): _void_** - Handles changes in the selection for a component, updating internal values, input fields,\nand visual presentation (like chips or slots) as per the given selection options.\n- **selections(silence: _boolean_): _void_** - Handles the logic for updating selections based on the current selected options,\nupdating chips content, and dispatching change events if necessary.\n- **counter(): _void_** - Updates the counter element to reflect the current state of selected values relative to the maximum allowed options.\nIf the maximum options are selected, the counter element is removed. If it does not already exist and needs to be displayed, it is created.\n- **getChip(option: _object_): _HTMLElement_** - Creates and returns a chip element with specified properties and a label.\n- **htmlOption(item: _object_, map: _@param {string} [map.value] The property of the item to use for the option's value.\n\t * @param {string} [map.text] The property of the item to use for the option's text.\n\t * _): _HTMLElement_** - Generates an HTML option element based on the provided item and mapping.\n- **htmlSelectedItem(item: _any_): _any_** - Returns the provided item.\n- **addOption(optionData: _object_, silent: _boolean_, map: _@param {string} [map.value] The key in optionData that represents the value of the option.\n\t * @param {string} [map.text] The key in optionData that represents the text of the option.\n\t * _): _void_** - Adds a new option to the component.\n- **addOptions(optionsData: _Array | object_, silent: _boolean_, map: _@param {string} [map.value] The property in the optionsData that represents the value of the option.\n\t * @param {string} [map.text] The property in the optionsData that represents the text of the option.\n\t * _): _void_** - Adds one or more options to a collection. If the input is an array, it adds each option within the array.\nOtherwise, it adds a single option.\n- **selectOption(value: _string_, silent: _boolean_): _void_** - Selects an option from the available options within the component.\n- **selectOptions(values: _any|any[]_, silent: _boolean_): _void_** - Selects multiple options based on the provided values. If a single value is provided, it selects that option.\nIf an array of values is provided, it iterates through the array and selects each option.\n- **optionCheckSlot(option: _HTMLElement_): _void_** - Clones and appends an icon with the \"check\" slot to the specified option element.\nIf the option already contains a custom element with slot=\"check\" (e.g. <wje-status slot=\"check\">),\nit is left untouched and no template icon is added.\n- **clearSelections(): _void_** - Clears all selected options and resets selections.\nThe method ensures that all options are deselected, updates the internal state, validates the selections,\npropagates the validation status, and indicates invalid state if necessary.\n- **syncAria()** - Syncs ARIA attributes on the host element.",
|
|
3430
3382
|
"doc-url": "",
|
|
3431
3383
|
"attributes": [
|
|
3432
|
-
{ "name": "
|
|
3433
|
-
{ "name": "min", "value": { "type": "string" } },
|
|
3434
|
-
{ "name": "step", "value": { "type": "string" } },
|
|
3435
|
-
{ "name": "value", "value": { "type": "string" } },
|
|
3384
|
+
{ "name": "active", "value": { "type": "string" } },
|
|
3436
3385
|
{ "name": "disabled", "value": { "type": "string" } },
|
|
3437
|
-
{ "name": "
|
|
3386
|
+
{ "name": "readonly", "value": { "type": "string" } },
|
|
3387
|
+
{ "name": "portaled", "value": { "type": "string" } }
|
|
3438
3388
|
],
|
|
3439
3389
|
"events": [],
|
|
3440
3390
|
"js": {
|
|
3441
3391
|
"properties": [
|
|
3392
|
+
{
|
|
3393
|
+
"name": "dependencies",
|
|
3394
|
+
"description": "An object representing component dependencies with their respective classes.\nEach property in the object maps a custom component name (as a string key)\nto its corresponding class or constructor.",
|
|
3395
|
+
"type": "object"
|
|
3396
|
+
},
|
|
3442
3397
|
{
|
|
3443
3398
|
"name": "value",
|
|
3444
|
-
"description": "
|
|
3399
|
+
"description": "Retrieves the current value."
|
|
3400
|
+
},
|
|
3401
|
+
{
|
|
3402
|
+
"name": "maxOptions",
|
|
3403
|
+
"description": "Retrieves the maximum number of options allowed.\nParses the value of the 'max-options' attribute from the element and converts it to a number.\nIf the attribute is not present or cannot be converted to a valid number, defaults to 1."
|
|
3404
|
+
},
|
|
3405
|
+
{ "name": "defaultValue" },
|
|
3406
|
+
{
|
|
3407
|
+
"name": "portaled",
|
|
3408
|
+
"description": "Getter for the `portaled` attribute value."
|
|
3409
|
+
},
|
|
3410
|
+
{
|
|
3411
|
+
"name": "isPortaled",
|
|
3412
|
+
"description": "Checks whether popup content should be portaled."
|
|
3413
|
+
},
|
|
3414
|
+
{
|
|
3415
|
+
"name": "trigger",
|
|
3416
|
+
"description": "Returns the trigger value."
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
"name": "disabled",
|
|
3420
|
+
"description": "Retrieves the current state of the 'disabled' attribute."
|
|
3421
|
+
},
|
|
3422
|
+
{
|
|
3423
|
+
"name": "readonly",
|
|
3424
|
+
"description": "Checks if the 'readonly' attribute is present on the element."
|
|
3425
|
+
},
|
|
3426
|
+
{
|
|
3427
|
+
"name": "maxHeight",
|
|
3428
|
+
"description": "Retrieves the maximum height value, which is determined by the 'max-height' attribute.\nIf the attribute is not set, a default value of '200px' is returned."
|
|
3429
|
+
},
|
|
3430
|
+
{
|
|
3431
|
+
"name": "offset",
|
|
3432
|
+
"description": "Gets the value of the offset attribute of the current element.\nIf the offset attribute is not present, returns a default value of '0'."
|
|
3433
|
+
},
|
|
3434
|
+
{
|
|
3435
|
+
"name": "selectedOptions",
|
|
3436
|
+
"description": "Retrieves the selected options."
|
|
3437
|
+
},
|
|
3438
|
+
{
|
|
3439
|
+
"name": "lazy",
|
|
3440
|
+
"description": "Getter for the 'lazy' property."
|
|
3441
|
+
},
|
|
3442
|
+
{
|
|
3443
|
+
"name": "noSize",
|
|
3444
|
+
"description": "Gets the value of the 'no-size' attribute for the element."
|
|
3445
3445
|
},
|
|
3446
3446
|
{
|
|
3447
|
-
"name": "
|
|
3448
|
-
"description": "
|
|
3447
|
+
"name": "customErrorDisplay",
|
|
3448
|
+
"description": "Getter for the customErrorDisplay attribute."
|
|
3449
3449
|
},
|
|
3450
3450
|
{
|
|
3451
|
-
"name": "
|
|
3452
|
-
"description": "
|
|
3451
|
+
"name": "options",
|
|
3452
|
+
"description": "Retrieves the complete list of options available for the component.\nThe options are determined by combining elements from various sources, including loaded options, added options, and HTML-sourced options.\nIf a `wje-options` element is present within the component, its loaded options are included in the merged list.\nIn the absence of a `wje-options` element, duplicates among the added and HTML options are removed, retaining their order."
|
|
3453
3453
|
},
|
|
3454
|
+
{ "name": "className", "type": "string" },
|
|
3454
3455
|
{
|
|
3455
|
-
"name": "
|
|
3456
|
-
"description": "
|
|
3456
|
+
"name": "optionChange",
|
|
3457
|
+
"description": "Handles the change event for an option element within a select-like component.\nThis method processes user interactions with options and updates the state of the component,\nincluding selection management, validation, and UI updates. Behavior differs based on\nwhether the component supports multiple selections.\nKey functionality:\n- Prevents the default behavior, event propagation, and immediate propagation of the event.\n- Retrieves all options within the component.\n- If the component doesn't support multiple selection:\n - Marks only the clicked option as selected and deselects others.\n - Hides the option popup.\n- If the component supports multiple selection:\n - Processes the clicked option without deselecting others.\n- Updates the selected options and triggers validation.\n- Marks the form state as non-pristine.\n- Propagates the validation state to other relevant parts of the component or system."
|
|
3457
3458
|
},
|
|
3458
|
-
{ "name": "className", "type": "string" },
|
|
3459
3459
|
{
|
|
3460
|
-
"name": "
|
|
3461
|
-
"description": "
|
|
3460
|
+
"name": "processClickedOption",
|
|
3461
|
+
"description": "Handles the logic for processing the selection state of a clicked option element."
|
|
3462
3462
|
},
|
|
3463
3463
|
{
|
|
3464
|
-
"name": "
|
|
3465
|
-
"description": "
|
|
3466
|
-
}
|
|
3464
|
+
"name": "removeChip",
|
|
3465
|
+
"description": "Handles the removal of a chip element from the DOM and updates the related state."
|
|
3466
|
+
},
|
|
3467
|
+
{ "name": "localizer" },
|
|
3468
|
+
{ "name": "native", "type": "HTMLElement|null" },
|
|
3469
|
+
{ "name": "popup", "type": "HTMLElement|null" },
|
|
3470
|
+
{ "name": "labelElement", "type": "HTMLElement|null" },
|
|
3471
|
+
{ "name": "slotStart", "type": "HTMLElement|null" },
|
|
3472
|
+
{ "name": "slotEnd", "type": "HTMLElement|null" },
|
|
3473
|
+
{ "name": "input", "type": "HTMLElement|null" },
|
|
3474
|
+
{ "name": "displayText", "type": "HTMLElement|null" },
|
|
3475
|
+
{ "name": "chips", "type": "HTMLElement|null" },
|
|
3476
|
+
{ "name": "clear", "type": "HTMLElement|null" },
|
|
3477
|
+
{ "name": "list", "type": "HTMLElement|null" },
|
|
3478
|
+
{ "name": "emptyState", "type": "HTMLElement|null" },
|
|
3479
|
+
{ "name": "_value", "type": "array" },
|
|
3480
|
+
{ "name": "_selectedOptions", "type": "array" }
|
|
3467
3481
|
],
|
|
3468
3482
|
"events": []
|
|
3469
3483
|
}
|
|
3470
3484
|
},
|
|
3471
3485
|
{
|
|
3472
|
-
"name": "wje-
|
|
3473
|
-
"description": "This
|
|
3486
|
+
"name": "wje-split-view",
|
|
3487
|
+
"description": "This element represents a split view.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the split view.\n- **afterDraw()** - Sets up the event listeners after the component is drawn.\n- **detectSize()** - Detects the size of the split view.\n- **pixelsToPercentage(value: _number_): _number_** - Converts pixels to a percentage.\n\n### **Slots:**\n - **start** - Slot for the start view.\n- **end** - Slot for the end view.\n- **divider** - Slot for the divider.\n\n### **CSS Properties:**\n - **--wje-split-view-divider-area** - Defines the interactive area (hitbox) of the divider for resizing. Accepts any valid CSS length unit (e.g., `px`, `rem`, `%`). _(default: 12px)_\n- **--wje-split-view-divider-width** - Specifies the visual width of the divider. Controls how thick the divider appears. _(default: 4px)_\n- **--wje-split-view-min** - Sets the minimum size limit for the split views. Ensures that a view cannot be resized below this value. _(default: 0%)_\n- **--wje-split-view-max** - Sets the maximum size limit for the split views. Ensures that a view cannot be resized beyond this value. _(default: 100%)_\n- **--wje-split-view-calc-a** - Represents the calculated size of the first view. This is used to dynamically set the size of the first view. _(default: 50%)_\n- **--wje-split-view-calc-b** - Represents the calculated size of the second view. This is used to dynamically set the size of the second view. _(default: 50%)_\n- **--wje-split-view-clamp-a** - Clamps the size of the first view between minimum and maximum limits. Ensures the calculated size stays within the defined range. _(default: clamp(var(--wje-split-view-min), var(--wje-split-view-calc-a), var(--wje-split-view-max)))_\n- **--wje-split-view-clamp-b** - Clamps the size of the second view between minimum and maximum limits. Ensures the calculated size stays within the defined range. _(default: clamp(var(--wje-split-view-min), var(--wje-split-view-calc-b), var(--wje-split-view-max)))_\n- **--wje-split-view-divider-background** - Sets the background color of the divider. Accepts any valid CSS color value (e.g., hex, RGB, or CSS variable). _(default: var(--wje-border-color))_\n- **--wje-split-view-divider-size** - Defines the overall size of the divider, affecting both its visual and interactive dimensions. Accepts any valid CSS length unit. _(default: 4px)_\n\n### **CSS Parts:**\n - **wje-divider** - The divider of the split view.",
|
|
3474
3488
|
"doc-url": "",
|
|
3475
3489
|
"attributes": [],
|
|
3476
3490
|
"slots": [
|
|
3477
|
-
{ "name": "", "description": "
|
|
3478
|
-
{ "name": "
|
|
3479
|
-
{ "name": "
|
|
3491
|
+
{ "name": "start", "description": "Slot for the start view." },
|
|
3492
|
+
{ "name": "end", "description": "Slot for the end view." },
|
|
3493
|
+
{ "name": "divider", "description": "Slot for the divider." }
|
|
3480
3494
|
],
|
|
3481
3495
|
"events": [],
|
|
3482
3496
|
"js": {
|
|
3483
3497
|
"properties": [
|
|
3484
|
-
{
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
"type": "string"
|
|
3488
|
-
}
|
|
3498
|
+
{ "name": "initial" },
|
|
3499
|
+
{ "name": "className", "type": "string" },
|
|
3500
|
+
{ "name": "handleDrag", "description": "Handles the drag event." }
|
|
3489
3501
|
],
|
|
3490
3502
|
"events": []
|
|
3491
3503
|
}
|
|
3492
3504
|
},
|
|
3493
3505
|
{
|
|
3494
|
-
"name": "wje-
|
|
3495
|
-
"description": "This
|
|
3506
|
+
"name": "wje-status",
|
|
3507
|
+
"description": "This class represents Status element, extending the WJElement class.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _object_** - Draws the component for the status.\n\n### **Slots:**\n - _default_ - The status main content.\n- **start** - The status start content.\n- **end** - The status end content.\n\n### **CSS Parts:**\n - **native** - The native part of the status.\n- **bullet** - The bullet part of the status.",
|
|
3496
3508
|
"doc-url": "",
|
|
3497
3509
|
"attributes": [],
|
|
3498
3510
|
"slots": [
|
|
3499
|
-
{ "name": "
|
|
3500
|
-
{ "name": "
|
|
3501
|
-
{ "name": "
|
|
3511
|
+
{ "name": "", "description": "The status main content." },
|
|
3512
|
+
{ "name": "start", "description": "The status start content." },
|
|
3513
|
+
{ "name": "end", "description": "The status end content." }
|
|
3502
3514
|
],
|
|
3503
3515
|
"events": [],
|
|
3504
3516
|
"js": {
|
|
3505
3517
|
"properties": [
|
|
3506
|
-
{
|
|
3507
|
-
|
|
3508
|
-
|
|
3518
|
+
{
|
|
3519
|
+
"name": "className",
|
|
3520
|
+
"description": "The class name for the component.",
|
|
3521
|
+
"type": "string"
|
|
3522
|
+
}
|
|
3509
3523
|
],
|
|
3510
3524
|
"events": []
|
|
3511
3525
|
}
|
|
@@ -3670,47 +3684,21 @@
|
|
|
3670
3684
|
}
|
|
3671
3685
|
},
|
|
3672
3686
|
{
|
|
3673
|
-
"name": "wje-
|
|
3674
|
-
"description": "This element represents a
|
|
3687
|
+
"name": "wje-timeline",
|
|
3688
|
+
"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.",
|
|
3675
3689
|
"doc-url": "",
|
|
3676
|
-
"attributes": [
|
|
3677
|
-
|
|
3678
|
-
{ "name": "
|
|
3679
|
-
{ "name": "disabled", "value": { "type": "string" } },
|
|
3680
|
-
{ "name": "placeholder", "value": { "type": "string" } },
|
|
3681
|
-
{ "name": "label", "value": { "type": "string" } },
|
|
3682
|
-
{ "name": "required", "value": { "type": "string" } },
|
|
3683
|
-
{ "name": "readonly", "value": { "type": "string" } },
|
|
3684
|
-
{ "name": "invalid", "value": { "type": "string" } },
|
|
3685
|
-
{ "name": "rows", "value": { "type": "string" } }
|
|
3690
|
+
"attributes": [],
|
|
3691
|
+
"slots": [
|
|
3692
|
+
{ "name": "", "description": "Slot for the timeline items." }
|
|
3686
3693
|
],
|
|
3687
3694
|
"events": [],
|
|
3688
3695
|
"js": {
|
|
3689
3696
|
"properties": [
|
|
3690
3697
|
{
|
|
3691
|
-
"name": "
|
|
3692
|
-
"description": "
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
"name": "label",
|
|
3696
|
-
"description": "Retrieves the value of the 'label' attribute if it exists.\nIf the 'label' attribute is not set, it returns false."
|
|
3697
|
-
},
|
|
3698
|
-
{
|
|
3699
|
-
"name": "validateOnChange",
|
|
3700
|
-
"description": "Getter for the validateOnChange attribute."
|
|
3701
|
-
},
|
|
3702
|
-
{ "name": "placeholder" },
|
|
3703
|
-
{ "name": "className", "type": "string" },
|
|
3704
|
-
{
|
|
3705
|
-
"name": "setTextareaHeight",
|
|
3706
|
-
"description": "Sets the height of the textarea."
|
|
3707
|
-
},
|
|
3708
|
-
{
|
|
3709
|
-
"name": "counterFn",
|
|
3710
|
-
"description": "Updates the counter for the textarea."
|
|
3711
|
-
},
|
|
3712
|
-
{ "name": "invalid", "type": "boolean" },
|
|
3713
|
-
{ "name": "pristine", "type": "boolean" }
|
|
3698
|
+
"name": "className",
|
|
3699
|
+
"description": "The class name for the component.",
|
|
3700
|
+
"type": "string"
|
|
3701
|
+
}
|
|
3714
3702
|
],
|
|
3715
3703
|
"events": []
|
|
3716
3704
|
}
|
|
@@ -3738,26 +3726,6 @@
|
|
|
3738
3726
|
"events": []
|
|
3739
3727
|
}
|
|
3740
3728
|
},
|
|
3741
|
-
{
|
|
3742
|
-
"name": "wje-timeline",
|
|
3743
|
-
"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.",
|
|
3744
|
-
"doc-url": "",
|
|
3745
|
-
"attributes": [],
|
|
3746
|
-
"slots": [
|
|
3747
|
-
{ "name": "", "description": "Slot for the timeline items." }
|
|
3748
|
-
],
|
|
3749
|
-
"events": [],
|
|
3750
|
-
"js": {
|
|
3751
|
-
"properties": [
|
|
3752
|
-
{
|
|
3753
|
-
"name": "className",
|
|
3754
|
-
"description": "The class name for the component.",
|
|
3755
|
-
"type": "string"
|
|
3756
|
-
}
|
|
3757
|
-
],
|
|
3758
|
-
"events": []
|
|
3759
|
-
}
|
|
3760
|
-
},
|
|
3761
3729
|
{
|
|
3762
3730
|
"name": "wje-timeline-item",
|
|
3763
3731
|
"description": "This element represents a timeline item.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the timeline item.\n\n### **Slots:**\n - _default_ - Slot for the content of the timeline item.\n- **status** - Slot for the status of the timeline item.\n\n### **CSS Parts:**\n - **native** - The native part of the timeline item.\n- **content-container** - The content container part of the timeline item.\n- **default-icon** - The default icon part of the timeline item.",
|
|
@@ -3786,16 +3754,19 @@
|
|
|
3786
3754
|
}
|
|
3787
3755
|
},
|
|
3788
3756
|
{
|
|
3789
|
-
"name": "wje-
|
|
3790
|
-
"description": "This element represents a
|
|
3757
|
+
"name": "wje-textarea",
|
|
3758
|
+
"description": "This element represents a textarea input.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the textarea.\n- **afterDraw()** - Sets up the event listeners after the component is drawn.\n- **syncAria()** - Syncs ARIA attributes on the host element.\n- **beforeDisconnect()** - Disconnects the component.\n\n### **CSS Properties:**\n - **--wje-textarea-font-family** - Specifies the font family used for the textarea. Accepts any valid CSS font-family value. _(default: var(--wje-font-family))_\n- **--wje-textarea-background-color** - Sets the background color of the textarea. Accepts any valid CSS color value. _(default: var(--wje-background))_\n- **--wje-textarea-color** - Defines the text color within the textarea. Accepts any valid CSS color value. _(default: var(--wje-color))_\n- **--wje-textarea-color-invalid** - Changes the text color of the textarea when it is invalid. Useful for highlighting validation errors. _(default: var(--wje-color-danger))_\n- **--wje-textarea-error-background-color** - Controls the background color of the validation error bubble. _(default: var(--wje-tooltip-background))_\n- **--wje-textarea-error-color** - Controls the text color of the validation error bubble. _(default: var(--wje-tooltip-color))_\n- **--wje-textarea-border-width** - Specifies the width of the textarea's border. Accepts any valid CSS length unit. _(default: 1px)_\n- **--wje-textarea-border-style** - Sets the style of the textarea's border. Accepts standard CSS border styles such as `solid`, `dashed`, or `dotted`. _(default: solid)_\n- **--wje-textarea-border-color** - Defines the border color of the textarea. Accepts any valid CSS color value. _(default: var(--wje-border-color))_\n- **--wje-textarea-border-color-focus** - Specifies the border color of the textarea when it is focused. Enhances the user experience by providing visual feedback. _(default: var(--wje-color-primary))_\n- **--wje-textarea-border-radius** - Determines the border radius of the textarea, defining how rounded its corners are. Accepts any valid CSS length unit. _(default: 4px)_\n- **--wje-textarea-margin-bottom** - Sets the bottom margin of the textarea. Ensures spacing between the textarea and other elements. _(default: .5rem)_\n- **--wje-textarea-line-height** - Specifies the line height of the text within the textarea. Helps control the vertical spacing of the text. _(default: 20px)_\n- **--wje-textarea-padding** - Defines the padding inside the textarea. Controls the spacing between the content and the border. _(default: 0.5rem)_\n\n### **CSS Parts:**\n - **native** - The native textarea wrapper.\n- **input** - The textarea input.\n- **wrapper** - The textarea wrapper.",
|
|
3791
3759
|
"doc-url": "",
|
|
3792
3760
|
"attributes": [
|
|
3793
|
-
{ "name": "
|
|
3761
|
+
{ "name": "value", "value": { "type": "string" } },
|
|
3762
|
+
{ "name": "name", "value": { "type": "string" } },
|
|
3794
3763
|
{ "name": "disabled", "value": { "type": "string" } },
|
|
3795
|
-
{ "name": "
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
{ "name": "", "
|
|
3764
|
+
{ "name": "placeholder", "value": { "type": "string" } },
|
|
3765
|
+
{ "name": "label", "value": { "type": "string" } },
|
|
3766
|
+
{ "name": "required", "value": { "type": "string" } },
|
|
3767
|
+
{ "name": "readonly", "value": { "type": "string" } },
|
|
3768
|
+
{ "name": "invalid", "value": { "type": "string" } },
|
|
3769
|
+
{ "name": "rows", "value": { "type": "string" } }
|
|
3799
3770
|
],
|
|
3800
3771
|
"events": [],
|
|
3801
3772
|
"js": {
|
|
@@ -3805,18 +3776,23 @@
|
|
|
3805
3776
|
"description": "Getter for the value attribute."
|
|
3806
3777
|
},
|
|
3807
3778
|
{
|
|
3808
|
-
"name": "
|
|
3809
|
-
"description": "
|
|
3779
|
+
"name": "label",
|
|
3780
|
+
"description": "Retrieves the value of the 'label' attribute if it exists.\nIf the 'label' attribute is not set, it returns false."
|
|
3810
3781
|
},
|
|
3811
3782
|
{
|
|
3812
3783
|
"name": "validateOnChange",
|
|
3813
3784
|
"description": "Getter for the validateOnChange attribute."
|
|
3814
3785
|
},
|
|
3786
|
+
{ "name": "placeholder" },
|
|
3787
|
+
{ "name": "className", "type": "string" },
|
|
3788
|
+
{
|
|
3789
|
+
"name": "setTextareaHeight",
|
|
3790
|
+
"description": "Sets the height of the textarea."
|
|
3791
|
+
},
|
|
3815
3792
|
{
|
|
3816
|
-
"name": "
|
|
3817
|
-
"description": "
|
|
3793
|
+
"name": "counterFn",
|
|
3794
|
+
"description": "Updates the counter for the textarea."
|
|
3818
3795
|
},
|
|
3819
|
-
{ "name": "checked", "description": "Get checked attribute." },
|
|
3820
3796
|
{ "name": "invalid", "type": "boolean" },
|
|
3821
3797
|
{ "name": "pristine", "type": "boolean" }
|
|
3822
3798
|
],
|
|
@@ -3951,46 +3927,39 @@
|
|
|
3951
3927
|
}
|
|
3952
3928
|
},
|
|
3953
3929
|
{
|
|
3954
|
-
"name": "wje-
|
|
3955
|
-
"description": "This element represents a
|
|
3930
|
+
"name": "wje-toggle",
|
|
3931
|
+
"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.",
|
|
3956
3932
|
"doc-url": "",
|
|
3957
3933
|
"attributes": [
|
|
3958
|
-
{ "name": "
|
|
3959
|
-
{ "name": "
|
|
3960
|
-
{ "name": "
|
|
3934
|
+
{ "name": "checked", "value": { "type": "string" } },
|
|
3935
|
+
{ "name": "disabled", "value": { "type": "string" } },
|
|
3936
|
+
{ "name": "required", "value": { "type": "string" } }
|
|
3961
3937
|
],
|
|
3962
3938
|
"slots": [
|
|
3963
|
-
{
|
|
3964
|
-
"name": "",
|
|
3965
|
-
"description": "The default slot for the toolbar action."
|
|
3966
|
-
}
|
|
3939
|
+
{ "name": "", "description": "The default slot for the toggle." }
|
|
3967
3940
|
],
|
|
3968
3941
|
"events": [],
|
|
3969
3942
|
"js": {
|
|
3970
3943
|
"properties": [
|
|
3971
3944
|
{
|
|
3972
|
-
"name": "
|
|
3973
|
-
"description": "
|
|
3974
|
-
"type": "string"
|
|
3945
|
+
"name": "value",
|
|
3946
|
+
"description": "Getter for the value attribute."
|
|
3975
3947
|
},
|
|
3976
3948
|
{
|
|
3977
|
-
"name": "
|
|
3978
|
-
"description": "
|
|
3949
|
+
"name": "customErrorDisplay",
|
|
3950
|
+
"description": "Getter for the customErrorDisplay attribute."
|
|
3979
3951
|
},
|
|
3980
3952
|
{
|
|
3981
|
-
"name": "
|
|
3982
|
-
"description": "
|
|
3953
|
+
"name": "validateOnChange",
|
|
3954
|
+
"description": "Getter for the validateOnChange attribute."
|
|
3983
3955
|
},
|
|
3984
3956
|
{
|
|
3985
|
-
"name": "
|
|
3986
|
-
"description": "
|
|
3957
|
+
"name": "defaultValue",
|
|
3958
|
+
"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."
|
|
3987
3959
|
},
|
|
3988
|
-
{ "name": "
|
|
3989
|
-
{ "name": "
|
|
3990
|
-
{ "name": "
|
|
3991
|
-
{ "name": "_overflowRetryFrame", "type": "null" },
|
|
3992
|
-
{ "name": "_applyOverflowFrame", "type": "null" },
|
|
3993
|
-
{ "name": "_observedDropdown", "type": "null" }
|
|
3960
|
+
{ "name": "checked", "description": "Get checked attribute." },
|
|
3961
|
+
{ "name": "invalid", "type": "boolean" },
|
|
3962
|
+
{ "name": "pristine", "type": "boolean" }
|
|
3994
3963
|
],
|
|
3995
3964
|
"events": []
|
|
3996
3965
|
}
|
|
@@ -4021,6 +3990,51 @@
|
|
|
4021
3990
|
"events": []
|
|
4022
3991
|
}
|
|
4023
3992
|
},
|
|
3993
|
+
{
|
|
3994
|
+
"name": "wje-toolbar-action",
|
|
3995
|
+
"description": "This element represents a toolbar action.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _object_** - Draws the component for the toolbar action.\n- **afterDraw()** - Applies the current visible action limit after the component is drawn.\n- **afterDisconnect()** - Removes listeners after disconnect.\n- **scheduleOverflow(doubleFrame: _boolean_)** - Schedules overflow application after layout settles.\n- **getActions(): _Array<HTMLElement>_** - Returns the actions for the toolbar action.\n- **getAssignedElements(): _Array<HTMLElement>_** - Returns direct children assigned to the default slot.\n- **getExistingDropdown(): _HTMLElement|null_** - Returns an existing top-level dropdown if present.\n- **observeExistingDropdown()** - Observes the external dropdown for late menu/content changes.\n- **getOverflowDropdown(): _HTMLElement_** - Returns the dropdown that should receive overflow items.\n- **getOverflowMenu(): _HTMLElement|null_** - Returns the menu used for overflow items.\n- **getVisibleLimit(): _number_** - Gets the number of actions that should stay visible.\n- **shouldCollapseByBreakpoint(): _boolean_** - Returns whether the toolbar action should collapse based on the configured breakpoint.\n- **isCollapsedByBreakpoint(): _boolean_** - Returns the cached breakpoint collapse state.\n- **handleBreakpointResize(): _void_** - Reacts to viewport resize only when the breakpoint mode actually changes.\n- **getBreakpointWidth(): _number|null_** - Resolves the configured breakpoint to a pixel width.\n- **applyOverflow(): _void_** - Updates visible actions and the overflow dropdown.\n- **restoreManagedActions(actions: _Array<HTMLElement>_)** - Restores buttons hidden by this component.\n- **restoreManagedOverflowContent()** - Removes overflow menu nodes that were previously injected by this component.\n- **createMenuItem(action: _HTMLElement_): _HTMLElement_** - Creates a dropdown menu proxy for an overflowed button.\n- **cloneActionMenuNode(node: _Node_): _Node_** - Clones action content for menu usage and normalizes button icon slots.\n- **normalizeActionMenuIconSlot(element: _Element_)** - Moves button-only icon slots to the menu item start slot.\n- **getActionLabel(action: _HTMLElement_): _string_** - Resolves readable text for a toolbar action copied into an overflow menu.\n- **createOverflowDivider(): _HTMLElement_** - Creates a divider separating existing dropdown actions from responsive overflow actions.\n- **handleMenuItemClick(e: _Event_, action: _HTMLElement_)** - Forwards menu item activation to the original button.\n- **measureActionMetrics(): _{count: number, widths: number[], gap: number, moreWidth: number, getWidthForCount: Function}_** - Measures action widths while preserving current overflow state.\n- **measureMoreWidth(): _number_** - Measures the overflow dropdown trigger.\n\n### **Slots:**\n - _default_ - The default slot for the toolbar action.\n\n### **CSS Parts:**\n - **native** - The native toolbar action wrapper.",
|
|
3996
|
+
"doc-url": "",
|
|
3997
|
+
"attributes": [
|
|
3998
|
+
{ "name": "breakpoint", "value": { "type": "string" } },
|
|
3999
|
+
{ "name": "max-items", "value": { "type": "string" } },
|
|
4000
|
+
{ "name": "visible-items", "value": { "type": "string" } }
|
|
4001
|
+
],
|
|
4002
|
+
"slots": [
|
|
4003
|
+
{
|
|
4004
|
+
"name": "",
|
|
4005
|
+
"description": "The default slot for the toolbar action."
|
|
4006
|
+
}
|
|
4007
|
+
],
|
|
4008
|
+
"events": [],
|
|
4009
|
+
"js": {
|
|
4010
|
+
"properties": [
|
|
4011
|
+
{
|
|
4012
|
+
"name": "className",
|
|
4013
|
+
"description": "The class name for the component.",
|
|
4014
|
+
"type": "string"
|
|
4015
|
+
},
|
|
4016
|
+
{
|
|
4017
|
+
"name": "breakpoint",
|
|
4018
|
+
"description": "Gets the collapse breakpoint token or value."
|
|
4019
|
+
},
|
|
4020
|
+
{
|
|
4021
|
+
"name": "maxItems",
|
|
4022
|
+
"description": "Gets the maximum number of visible actions."
|
|
4023
|
+
},
|
|
4024
|
+
{
|
|
4025
|
+
"name": "visibleItems",
|
|
4026
|
+
"description": "Gets the responsive visible action count."
|
|
4027
|
+
},
|
|
4028
|
+
{ "name": "_managedHiddenActions" },
|
|
4029
|
+
{ "name": "_isCollapsedByBreakpoint", "type": "null" },
|
|
4030
|
+
{ "name": "_managedOverflowNodes" },
|
|
4031
|
+
{ "name": "_overflowRetryFrame", "type": "null" },
|
|
4032
|
+
{ "name": "_applyOverflowFrame", "type": "null" },
|
|
4033
|
+
{ "name": "_observedDropdown", "type": "null" }
|
|
4034
|
+
],
|
|
4035
|
+
"events": []
|
|
4036
|
+
}
|
|
4037
|
+
},
|
|
4024
4038
|
{
|
|
4025
4039
|
"name": "wje-tooltip",
|
|
4026
4040
|
"description": "This element represents a tooltip.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _object_** - Draws the component for the tooltip.\n- **afterDraw()** - Draws the component for the tooltip.\n- **checkSelector(anchorEl: _HTMLElement_): _HTMLElement|null_** - Validates if the specified selector exists within the provided element.\nLogs an error if the selector is not found and returns the found element or `null`.\n\n### **Slots:**\n - **arrow** - The arrow slot for the tooltip.\n- **anchor** - The anchor slot for the tooltip.\n\n### **CSS Properties:**\n - **--wje-tooltip-arrow-color** - Specifies the color of the tooltip's arrow. This property determines the visual color of the arrow that points to the element the tooltip is attached to. Accepts any valid CSS color value such as `hex`, `rgb`, or `CSS variable`. _(default: var(--wje-color-contrast-11))_\n\n### **CSS Parts:**\n - **native** - The native tooltip wrapper.",
|