wj-elements 0.7.2 → 0.7.3
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 +3761 -3754
- package/dist/dark.css +3 -0
- package/dist/light.css +3 -0
- package/dist/packages/wje-file-upload/file-upload.element.d.ts +1 -0
- package/dist/web-types.json +570 -570
- package/dist/wje-file-upload.js +1 -1
- package/dist/wje-file-upload.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.3",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -726,26 +726,6 @@
|
|
|
726
726
|
"events": []
|
|
727
727
|
}
|
|
728
728
|
},
|
|
729
|
-
{
|
|
730
|
-
"name": "wje-card-title",
|
|
731
|
-
"description": "CardTitle class that extends WJElement.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the CardTitle.\n- **draw(): _DocumentFragment_** - Draws the CardTitle element.\n\n### **Slots:**\n - _default_ - The card title main content.\n\n### **CSS Properties:**\n - **--wje-card-title-font-size** - Font size of the component; _(default: 24px)_\n- **--wje-card-title-font-weight** - Font weight of the component; _(default: 500)_\n- **--wje-card-title-margin** - Margin of the component; _(default: 0)_\n- **--wje-card-title-padding** - Padding of the component; _(default: 0)_\n- **--wje-card-title-line-height** - Line height of the component; _(default: 1.2)_",
|
|
732
|
-
"doc-url": "",
|
|
733
|
-
"attributes": [],
|
|
734
|
-
"slots": [
|
|
735
|
-
{ "name": "", "description": "The card title main content." }
|
|
736
|
-
],
|
|
737
|
-
"events": [],
|
|
738
|
-
"js": {
|
|
739
|
-
"properties": [
|
|
740
|
-
{
|
|
741
|
-
"name": "className",
|
|
742
|
-
"description": "Class name for the CardTitle.",
|
|
743
|
-
"type": "string"
|
|
744
|
-
}
|
|
745
|
-
],
|
|
746
|
-
"events": []
|
|
747
|
-
}
|
|
748
|
-
},
|
|
749
729
|
{
|
|
750
730
|
"name": "wje-card-subtitle",
|
|
751
731
|
"description": "CardSubtitle class that extends WJElement.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the CardSubtitle.\n- **draw(): _DocumentFragment_** - Draws the CardSubtitle element.\n\n### **Slots:**\n - _default_ - The card subtitle main content.\n\n### **CSS Properties:**\n - **--wje-card-subtitle-font-size** - Font size of the component; _(default: 11px)_\n- **--wje-card-subtitle-font-family** - Font family of the component; _(default: var(--wje-font-family-secondary))_\n- **--wje-card-subtitle-padding** - Padding of the component; _(default: 0)_",
|
|
@@ -767,19 +747,19 @@
|
|
|
767
747
|
}
|
|
768
748
|
},
|
|
769
749
|
{
|
|
770
|
-
"name": "wje-
|
|
771
|
-
"description": "
|
|
750
|
+
"name": "wje-card-title",
|
|
751
|
+
"description": "CardTitle class that extends WJElement.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the CardTitle.\n- **draw(): _DocumentFragment_** - Draws the CardTitle element.\n\n### **Slots:**\n - _default_ - The card title main content.\n\n### **CSS Properties:**\n - **--wje-card-title-font-size** - Font size of the component; _(default: 24px)_\n- **--wje-card-title-font-weight** - Font weight of the component; _(default: 500)_\n- **--wje-card-title-margin** - Margin of the component; _(default: 0)_\n- **--wje-card-title-padding** - Padding of the component; _(default: 0)_\n- **--wje-card-title-line-height** - Line height of the component; _(default: 1.2)_",
|
|
772
752
|
"doc-url": "",
|
|
773
753
|
"attributes": [],
|
|
774
754
|
"slots": [
|
|
775
|
-
{ "name": "", "description": "The
|
|
755
|
+
{ "name": "", "description": "The card title main content." }
|
|
776
756
|
],
|
|
777
757
|
"events": [],
|
|
778
758
|
"js": {
|
|
779
759
|
"properties": [
|
|
780
760
|
{
|
|
781
761
|
"name": "className",
|
|
782
|
-
"description": "Class name for the
|
|
762
|
+
"description": "Class name for the CardTitle.",
|
|
783
763
|
"type": "string"
|
|
784
764
|
}
|
|
785
765
|
],
|
|
@@ -823,6 +803,26 @@
|
|
|
823
803
|
"events": []
|
|
824
804
|
}
|
|
825
805
|
},
|
|
806
|
+
{
|
|
807
|
+
"name": "wje-carousel-item",
|
|
808
|
+
"description": "This class represents CarouselItem element, extending the WJElement class.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the CarouselItem.\n- **draw(): _DocumentFragment_** - Draws the CarouselItem element.\n- **afterDraw()** - After draw event for the CarouselItem element.\n- **syncContentLayoutMode()** - Keeps a simple layout hint for single-wrapper content.\n\n### **Slots:**\n - _default_ - The carousel item main content.\n\n### **CSS Properties:**\n - **--wje-carousel-item-background-color** - Background color of the component; _(default: transparent)_\n- **--wje-carousel-item-border-color** - Border color of the component; _(default: --wje-color-contrast-4)_\n- **--wje-carousel-item-color** - Color of the component; _(default: --wje-color-contrast-11)_\n- **--wje-carousel-item-border-radius** - Border radius of the component; _(default: --wje-border-radius-medium)_\n- **--wje-carousel-item-border-width** - Border width of the component; _(default: 1px)_\n- **--wje-carousel-item-border-style** - Border style of the component; _(default: solid)_\n- **--wje-carousel-item-border-color** - Border color of the component; _(default: --wje-color-contrast-1)_\n- **--wje-carousel-item-margin-inline** - Margin inline of the component; _(default: 0)_\n\n### **CSS Parts:**\n - **native** - The component's native wrapper.",
|
|
809
|
+
"doc-url": "",
|
|
810
|
+
"attributes": [],
|
|
811
|
+
"slots": [
|
|
812
|
+
{ "name": "", "description": "The carousel item main content." }
|
|
813
|
+
],
|
|
814
|
+
"events": [],
|
|
815
|
+
"js": {
|
|
816
|
+
"properties": [
|
|
817
|
+
{
|
|
818
|
+
"name": "className",
|
|
819
|
+
"description": "Class name for the CarouselItem element.",
|
|
820
|
+
"type": "string"
|
|
821
|
+
}
|
|
822
|
+
],
|
|
823
|
+
"events": []
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
826
|
{
|
|
827
827
|
"name": "wje-checkbox",
|
|
828
828
|
"description": "This method dispatches a custom event named \"wje-toggle:change\".\nIt is triggered when the input event is fired, which happens when the state of the checkbox changes.\nThe event is dispatched on the current instance of the Checkbox class.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the checkbox.\n- **draw(): _DocumentFragment_** - Draws the checkbox element.\n- **afterDraw()** - Adds an event listener after drawing the checkbox.\n- **syncAria()** - Syncs ARIA attributes on the host element.\n- **beforeDisconnect()** - Removes the event listener when the checkbox is disconnected.\n\n### **Slots:**\n - _default_ - The checkbox main content.\n\n### **CSS Properties:**\n - **--wje-checkbox-border-radius** - Border radius of the component; _(default: --wje-border-radius-medium)_\n- **--wje-checkbox-border-width** - Border width of the component; _(default: 1px)_\n- **--wje-checkbox-border-style** - Border style of the component; _(default: solid)_\n- **--wje-checkbox-border-color** - Border color of the component; _(default: --wje-color-contrast-1)_\n- **--wje-checkbox-margin-inline** - Margin inline of the component; _(default: 0)_\n\n### **CSS Parts:**\n - **native** - The component's native wrapper.",
|
|
@@ -956,74 +956,6 @@
|
|
|
956
956
|
"events": []
|
|
957
957
|
}
|
|
958
958
|
},
|
|
959
|
-
{
|
|
960
|
-
"name": "wje-color-picker",
|
|
961
|
-
"description": "ColorPicker is a custom web component that extends WJElement.\nIt provides a color picker functionality with a color area, hue slider, alpha slider, and color swatches.\nThe color picker allows users to select a color by moving a marker on the color area, adjusting the hue and alpha sliders, or clicking on a color swatch.\n---\n\n\n### **Methods:**\n - **parseSwatches(value: _string_): _string[]_** - Normalizes swatch colors from a string to an array.\nSupports comma and semicolon separators.\n- **setupAttributes()** - Sets up the attributes for the ColorPicker.\n- **draw(): _DocumentFragment_** - Creates and returns a document fragment containing the structure and components of a custom color picker.\nThe method initializes DOM elements such as divs, sliders, and inputs, with specific classes and attributes,\nand attaches various event listeners to handle user interactions.\n- **afterDraw(): _void_** - Executes after the component is drawn. Initializes some configurations if not already initialized,\nincluding updating slider values, setting marker positions, and applying initial color settings.\nThis method ensures that all necessary visual elements and configurations are properly set up.\n- **createSwatches(node)** - Sets the hue.\n- **setSliders(color)** - Sets the sliders to the given color.\n- **dimension(): _object_** - Retrieves the dimensions and position of the color area element relative to the viewport.\n- **beforeDisconnect(): _void_** - Method executed before disconnecting. Resets the initialization state to false.\n- **getPointerPosition(e): _{x: number, y: number}_** - Gets the pointer position in client coordinates (viewport-relative).\n- **setMarkerPosition(x, y)** - Sets the position of the marker.\n- **clampMarkerPosition(x: _number_, y: _number_): _{x: number, y: number}_** - Clamps marker coordinates to the color area boundaries.\n- **setColorAtPosition(x, y, alpha): _*|tinycolor_** - Sets the color at the given position.\n- **getHueAreaColor(color: _string_): _string_** - Returns fully saturated and bright color for the current hue.\nUsed as base color for the SV area so neutral grays do not black out the palette.\n\n### **Slots:**\n - _default_ - The card header main content.\n\n### **CSS Properties:**\n - **--wje-color-picker-area** - The color of the color area background. _(default: undefined)_\n- **--wje-color-picker-value** - The value of the color picker input. _(default: undefined)_\n- **--wje-color-picker-swatch** - The color of the color swatch button. _(default: undefined)_\n- **--wje-color-picker-size** - The color of the color marker. _(default: undefined)_\n- **--wje-color-picker-radius** - The color of the color anchor. _(default: undefined)_\n\n### **CSS Parts:**\n - **anchor** - The anchor part of the color picker.\n- **picker** - The main part of the color picker.\n- **marker** - The marker part of the color picker.\n- **color-area** - The color area part of the color picker.\n- **hue** - The hue slider part of the color picker.\n- **alpha** - The alpha slider part of the color picker.\n- **color-preview** - The color preview part of the color picker.\n- **input** - The input part of the color picker.",
|
|
962
|
-
"doc-url": "",
|
|
963
|
-
"attributes": [
|
|
964
|
-
{
|
|
965
|
-
"name": "input-editable",
|
|
966
|
-
"description": "Enables manual color typing into the input field.",
|
|
967
|
-
"value": { "type": "boolean" }
|
|
968
|
-
}
|
|
969
|
-
],
|
|
970
|
-
"slots": [
|
|
971
|
-
{ "name": "", "description": "The card header main content." }
|
|
972
|
-
],
|
|
973
|
-
"events": [],
|
|
974
|
-
"js": {
|
|
975
|
-
"properties": [
|
|
976
|
-
{
|
|
977
|
-
"name": "color",
|
|
978
|
-
"description": "Retrieves the color attribute of the element."
|
|
979
|
-
},
|
|
980
|
-
{
|
|
981
|
-
"name": "markerPosition",
|
|
982
|
-
"description": "Getter for the marker position."
|
|
983
|
-
},
|
|
984
|
-
{
|
|
985
|
-
"name": "swatches",
|
|
986
|
-
"description": "Getter for the color swatches."
|
|
987
|
-
},
|
|
988
|
-
{
|
|
989
|
-
"name": "noColorArea",
|
|
990
|
-
"description": "Getter method to check if the 'no-color-area' attribute is applied."
|
|
991
|
-
},
|
|
992
|
-
{
|
|
993
|
-
"name": "noControls",
|
|
994
|
-
"description": "Checks if the 'no-controls' attribute is present on the element."
|
|
995
|
-
},
|
|
996
|
-
{
|
|
997
|
-
"name": "noSwatches",
|
|
998
|
-
"description": "Checks if the 'no-swatches' attribute is present on the element."
|
|
999
|
-
},
|
|
1000
|
-
{
|
|
1001
|
-
"name": "inputEditable",
|
|
1002
|
-
"description": "Returns true when manual input typing is enabled."
|
|
1003
|
-
},
|
|
1004
|
-
{ "name": "className", "type": "string" },
|
|
1005
|
-
{
|
|
1006
|
-
"name": "moveMarker",
|
|
1007
|
-
"description": "Updates the position of the marker based on the pointer event.\nThis function calculates the position of the marker relative to the color area\ndimensions based on the given event. It adjusts the marker position and updates\nthe color associated with the new position. It is intended to handle pointer movement\nevents such as mouse or touch interactions."
|
|
1008
|
-
},
|
|
1009
|
-
{
|
|
1010
|
-
"name": "setMarkerPositionByColor",
|
|
1011
|
-
"description": "Sets the marker position by color."
|
|
1012
|
-
},
|
|
1013
|
-
{
|
|
1014
|
-
"name": "setColor",
|
|
1015
|
-
"description": "Updates the color picker's current color and its associated UI elements."
|
|
1016
|
-
},
|
|
1017
|
-
{ "name": "setHue", "description": "Sets the hue." },
|
|
1018
|
-
{ "name": "setAlpha", "description": "Sets the alpha." },
|
|
1019
|
-
{
|
|
1020
|
-
"name": "getHSVA",
|
|
1021
|
-
"description": "Converts hue and alpha values into an HSVA color string."
|
|
1022
|
-
}
|
|
1023
|
-
],
|
|
1024
|
-
"events": []
|
|
1025
|
-
}
|
|
1026
|
-
},
|
|
1027
959
|
{
|
|
1028
960
|
"name": "wje-copy-button",
|
|
1029
961
|
"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.",
|
|
@@ -1083,20 +1015,68 @@
|
|
|
1083
1015
|
}
|
|
1084
1016
|
},
|
|
1085
1017
|
{
|
|
1086
|
-
"name": "wje-
|
|
1087
|
-
"description": "
|
|
1018
|
+
"name": "wje-color-picker",
|
|
1019
|
+
"description": "ColorPicker is a custom web component that extends WJElement.\nIt provides a color picker functionality with a color area, hue slider, alpha slider, and color swatches.\nThe color picker allows users to select a color by moving a marker on the color area, adjusting the hue and alpha sliders, or clicking on a color swatch.\n---\n\n\n### **Methods:**\n - **parseSwatches(value: _string_): _string[]_** - Normalizes swatch colors from a string to an array.\nSupports comma and semicolon separators.\n- **setupAttributes()** - Sets up the attributes for the ColorPicker.\n- **draw(): _DocumentFragment_** - Creates and returns a document fragment containing the structure and components of a custom color picker.\nThe method initializes DOM elements such as divs, sliders, and inputs, with specific classes and attributes,\nand attaches various event listeners to handle user interactions.\n- **afterDraw(): _void_** - Executes after the component is drawn. Initializes some configurations if not already initialized,\nincluding updating slider values, setting marker positions, and applying initial color settings.\nThis method ensures that all necessary visual elements and configurations are properly set up.\n- **createSwatches(node)** - Sets the hue.\n- **setSliders(color)** - Sets the sliders to the given color.\n- **dimension(): _object_** - Retrieves the dimensions and position of the color area element relative to the viewport.\n- **beforeDisconnect(): _void_** - Method executed before disconnecting. Resets the initialization state to false.\n- **getPointerPosition(e): _{x: number, y: number}_** - Gets the pointer position in client coordinates (viewport-relative).\n- **setMarkerPosition(x, y)** - Sets the position of the marker.\n- **clampMarkerPosition(x: _number_, y: _number_): _{x: number, y: number}_** - Clamps marker coordinates to the color area boundaries.\n- **setColorAtPosition(x, y, alpha): _*|tinycolor_** - Sets the color at the given position.\n- **getHueAreaColor(color: _string_): _string_** - Returns fully saturated and bright color for the current hue.\nUsed as base color for the SV area so neutral grays do not black out the palette.\n\n### **Slots:**\n - _default_ - The card header main content.\n\n### **CSS Properties:**\n - **--wje-color-picker-area** - The color of the color area background. _(default: undefined)_\n- **--wje-color-picker-value** - The value of the color picker input. _(default: undefined)_\n- **--wje-color-picker-swatch** - The color of the color swatch button. _(default: undefined)_\n- **--wje-color-picker-size** - The color of the color marker. _(default: undefined)_\n- **--wje-color-picker-radius** - The color of the color anchor. _(default: undefined)_\n\n### **CSS Parts:**\n - **anchor** - The anchor part of the color picker.\n- **picker** - The main part of the color picker.\n- **marker** - The marker part of the color picker.\n- **color-area** - The color area part of the color picker.\n- **hue** - The hue slider part of the color picker.\n- **alpha** - The alpha slider part of the color picker.\n- **color-preview** - The color preview part of the color picker.\n- **input** - The input part of the color picker.",
|
|
1088
1020
|
"doc-url": "",
|
|
1089
|
-
"attributes": [
|
|
1021
|
+
"attributes": [
|
|
1022
|
+
{
|
|
1023
|
+
"name": "input-editable",
|
|
1024
|
+
"description": "Enables manual color typing into the input field.",
|
|
1025
|
+
"value": { "type": "boolean" }
|
|
1026
|
+
}
|
|
1027
|
+
],
|
|
1090
1028
|
"slots": [
|
|
1091
|
-
{ "name": "", "description": "
|
|
1029
|
+
{ "name": "", "description": "The card header main content." }
|
|
1092
1030
|
],
|
|
1093
1031
|
"events": [],
|
|
1094
1032
|
"js": {
|
|
1095
1033
|
"properties": [
|
|
1096
1034
|
{
|
|
1097
|
-
"name": "
|
|
1098
|
-
"description": "
|
|
1099
|
-
|
|
1035
|
+
"name": "color",
|
|
1036
|
+
"description": "Retrieves the color attribute of the element."
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"name": "markerPosition",
|
|
1040
|
+
"description": "Getter for the marker position."
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"name": "swatches",
|
|
1044
|
+
"description": "Getter for the color swatches."
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"name": "noColorArea",
|
|
1048
|
+
"description": "Getter method to check if the 'no-color-area' attribute is applied."
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"name": "noControls",
|
|
1052
|
+
"description": "Checks if the 'no-controls' attribute is present on the element."
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"name": "noSwatches",
|
|
1056
|
+
"description": "Checks if the 'no-swatches' attribute is present on the element."
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
"name": "inputEditable",
|
|
1060
|
+
"description": "Returns true when manual input typing is enabled."
|
|
1061
|
+
},
|
|
1062
|
+
{ "name": "className", "type": "string" },
|
|
1063
|
+
{
|
|
1064
|
+
"name": "moveMarker",
|
|
1065
|
+
"description": "Updates the position of the marker based on the pointer event.\nThis function calculates the position of the marker relative to the color area\ndimensions based on the given event. It adjusts the marker position and updates\nthe color associated with the new position. It is intended to handle pointer movement\nevents such as mouse or touch interactions."
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
"name": "setMarkerPositionByColor",
|
|
1069
|
+
"description": "Sets the marker position by color."
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"name": "setColor",
|
|
1073
|
+
"description": "Updates the color picker's current color and its associated UI elements."
|
|
1074
|
+
},
|
|
1075
|
+
{ "name": "setHue", "description": "Sets the hue." },
|
|
1076
|
+
{ "name": "setAlpha", "description": "Sets the alpha." },
|
|
1077
|
+
{
|
|
1078
|
+
"name": "getHSVA",
|
|
1079
|
+
"description": "Converts hue and alpha values into an HSVA color string."
|
|
1100
1080
|
}
|
|
1101
1081
|
],
|
|
1102
1082
|
"events": []
|
|
@@ -1147,6 +1127,26 @@
|
|
|
1147
1127
|
"events": []
|
|
1148
1128
|
}
|
|
1149
1129
|
},
|
|
1130
|
+
{
|
|
1131
|
+
"name": "wje-divider",
|
|
1132
|
+
"description": "Divider is a custom web component that extends WJElement.\nIt provides a simple divider line that can be used to separate content.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the Divider.\n- **draw(): _DocumentFragment_** - Draws the Divider.\n\n### **Slots:**\n - _default_ - This is a default/unnamed slot.\n\n### **CSS Properties:**\n - **--wje-border-width** - The size of the border. _(default: 1px)_\n- **--wje-divider-border-color** - The color of the divider borderline. _(default: var(--wje-border-color))_\n- **--wje-divider-border-width** - The width of the divider borderline. _(default: var(--wje-border-width, 1px))_\n- **--wje-divider-spacing** - The spacing for the divider. _(default: 0)_",
|
|
1133
|
+
"doc-url": "",
|
|
1134
|
+
"attributes": [],
|
|
1135
|
+
"slots": [
|
|
1136
|
+
{ "name": "", "description": "This is a default/unnamed slot." }
|
|
1137
|
+
],
|
|
1138
|
+
"events": [],
|
|
1139
|
+
"js": {
|
|
1140
|
+
"properties": [
|
|
1141
|
+
{
|
|
1142
|
+
"name": "className",
|
|
1143
|
+
"description": "The class name for the Divider class.",
|
|
1144
|
+
"type": "string"
|
|
1145
|
+
}
|
|
1146
|
+
],
|
|
1147
|
+
"events": []
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
1150
|
{
|
|
1151
1151
|
"name": "wje-dropdown",
|
|
1152
1152
|
"description": "This element represents a dropdown menu.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the dropdown.\n- **beforeDraw()** - Removes the popup element.\n- **draw(): _DocumentFragment_** - Draws the dropdown element and returns the created document fragment.\n- **afterDraw()** - Adds event listeners for the mouseenter and mouseleave events.\n- **afterDisconnect()** - Adds event listeners for the mouseenter and mouseleave events.\n- **syncPopupOwner()** - Assigns the current dropdown instance as the owner of its popup layers.\nOwner metadata is later used to resolve which dropdown should react to\ndelegated menu-item clicks, including portaled popup content.\n- **syncOwnedContentOwner(root: _HTMLElement_)** - Recursively assigns owner metadata to the dropdown content subtree while\nleaving nested dropdown roots untouched, so each nested dropdown can keep\nits own ownership boundary.\n- **getMenuItemOwner(path: _EventTarget[]_, item: _HTMLElement_): _HTMLElement|null_** - Resolves the dropdown that owns a clicked menu item. The lookup prefers\nexplicit owner metadata and falls back to DOM traversal so both regular\nand portaled dropdown content can be scoped correctly.\n- **afterShow()** - This method is called after the dropdown is shown.\n- **syncAria()** - Syncs ARIA attributes for the trigger element.\n\n### **Slots:**\n - **trigger** - The slot for the trigger of the dropdown.\n- _default_ - The default slot for the dropdown.\n\n### **CSS Properties:**\n - **--wje-popup-backdrop-background** - Backdrop background used by mobile bottom sheet dropdowns. _(default: var(--wje-backdrop))_\n- **--wje-popup-backdrop-opacity** - Backdrop opacity used by mobile bottom sheet dropdowns. _(default: 1)_\n- **--wje-popup-mobile-background** - Background of the mobile bottom sheet panel. _(default: var(--wje-select-options-background-color))_\n- **--wje-popup-mobile-border-radius** - Border radius of the mobile bottom sheet panel. _(default: var(--wje-border-radius-large) var(--wje-border-radius-large) 0 0)_\n- **--wje-popup-mobile-box-shadow** - Shadow of the mobile bottom sheet panel. _(default: 0 -8px 32px rgba(0, 0, 0, 0.16))_\n- **--wje-popup-mobile-max-height** - Maximum height of the mobile bottom sheet panel. _(default: 90vh)_\n- **--wje-popup-mobile-transition-duration** - Transition duration for the mobile bottom sheet and backdrop. _(default: 250ms)_\n- **--wje-popup-mobile-transition-easing** - Transition easing for the mobile bottom sheet and backdrop. _(default: ease)_\n\n### **CSS Parts:**\n - **native** - The native part of the dropdown.\n- **popup-native** - The exported native popup panel part.\n- **backdrop** - The exported mobile bottom sheet backdrop part.",
|
|
@@ -1229,7 +1229,7 @@
|
|
|
1229
1229
|
},
|
|
1230
1230
|
{
|
|
1231
1231
|
"name": "wje-file-upload",
|
|
1232
|
-
"description": "FileUpload is a custom web component for uploading files.\nIt extends from WJElement and provides functionalities for file upload.\n---\n\n\n### **Events:**\n - **change** - Fires when the file input changes.\n- **drop** - Fires when a file is dropped into the component.\n\n### **Methods:**\n - **setupAttributes()** - Method to setup attributes for the component.\n- **draw(): _DocumentFragment_** - Method to draw the component on the screen.\n- **afterDraw()** - Method to perform actions after the component is drawn.\n- **handleSubmit(e: _Event_)** - Method to handle form submission.\n- **addFilesToQueue(files)** - Method to add files to the queue.\n- **uploadFiles()** - Method to upload files.\n- **createPreview(file: _File_, reader: _FileReader_): _HTMLElement_** - Method to create a preview for the file.\n- **createThumbnail(file: _File_, reader: _FileReader_): _HTMLElement_** - Method to create a thumbnail for the file.\n- **assertFilesValid(file: _File_)** - Method to validate the files.\n- **resetFormState()** - Method to reset the form state.\n- **showError(error: _object|Error_)** - Shows a user-facing validation error inside the dropzone.\n- **clearError()** - Clears the currently displayed validation error.\n- **getErrorMessage(error: _object|Error_): _string_** - Resolves a readable upload error message.\n\n### **Slots:**\n - _default_ - This is a default/unnamed slot.\n\n### **CSS Parts:**\n - **native** - The native file upload part.\n- **file-list** - The file list part.\n- **upload-button** - The label part.",
|
|
1232
|
+
"description": "FileUpload is a custom web component for uploading files.\nIt extends from WJElement and provides functionalities for file upload.\n---\n\n\n### **Events:**\n - **change** - Fires when the file input changes.\n- **drop** - Fires when a file is dropped into the component.\n\n### **Methods:**\n - **setupAttributes()** - Method to setup attributes for the component.\n- **draw(): _DocumentFragment_** - Method to draw the component on the screen.\n- **afterDraw()** - Method to perform actions after the component is drawn.\n- **handleSubmit(e: _Event_)** - Method to handle form submission.\n- **addFilesToQueue(files)** - Method to add files to the queue.\n- **uploadFiles()** - Method to upload files.\n- **createPreview(file: _File_, reader: _FileReader_): _HTMLElement_** - Method to create a preview for the file.\n- **createThumbnail(file: _File_, reader: _FileReader_): _HTMLElement_** - Method to create a thumbnail for the file.\n- **assertFilesValid(file: _File_)** - Method to validate the files.\n- **resetFormState()** - Method to reset the form state.\n- **showError(error: _object|Error_)** - Shows a user-facing validation error inside the dropzone.\n- **clearError()** - Clears the currently displayed validation error.\n- **getErrorMessage(error: _object|Error_): _string_** - Resolves a readable upload error message.\n\n### **Slots:**\n - _default_ - This is a default/unnamed slot.\n\n### **CSS Properties:**\n - **--wje-file-upload-padding** - Controls the padding around the native file upload area. _(default: 0)_\n\n### **CSS Parts:**\n - **native** - The native file upload part.\n- **file-list** - The file list part.\n- **upload-button** - The label part.",
|
|
1233
1233
|
"doc-url": "",
|
|
1234
1234
|
"attributes": [
|
|
1235
1235
|
{ "name": "label", "value": { "type": "string" } },
|
|
@@ -1408,29 +1408,6 @@
|
|
|
1408
1408
|
"events": []
|
|
1409
1409
|
}
|
|
1410
1410
|
},
|
|
1411
|
-
{
|
|
1412
|
-
"name": "wje-form",
|
|
1413
|
-
"description": "The Form class is a custom\nweb component that extends WJElement. It is a simple form that can hold other elements or components.\nIt provides a slot for adding child elements or components.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the Form.\n- **draw(): _DocumentFragment_** - Draws the Form.\n\n### **Slots:**\n - _default_ - The slot for adding child elements or components.",
|
|
1414
|
-
"doc-url": "",
|
|
1415
|
-
"attributes": [],
|
|
1416
|
-
"slots": [
|
|
1417
|
-
{
|
|
1418
|
-
"name": "",
|
|
1419
|
-
"description": "The slot for adding child elements or components."
|
|
1420
|
-
}
|
|
1421
|
-
],
|
|
1422
|
-
"events": [],
|
|
1423
|
-
"js": {
|
|
1424
|
-
"properties": [
|
|
1425
|
-
{
|
|
1426
|
-
"name": "className",
|
|
1427
|
-
"description": "The class name for the Form class.",
|
|
1428
|
-
"type": "string"
|
|
1429
|
-
}
|
|
1430
|
-
],
|
|
1431
|
-
"events": []
|
|
1432
|
-
}
|
|
1433
|
-
},
|
|
1434
1411
|
{
|
|
1435
1412
|
"name": "wje-format-digital",
|
|
1436
1413
|
"description": "This element formats and displays digital values such as file sizes or data transfer rates.\n`FormatDigital` is a custom web component that represents a formatted digital value with units like\nbytes or bits. It extends from `WJElement` and utilizes the `Localizer` class for locale-aware formatting.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\nInitializes the shadow DOM.\n- **beforeDraw()** - Prepares the component before rendering.\nComputes the formatted value based on the input value and unit.\n- **draw(): _DocumentFragment_** - Renders the component and returns a document fragment.\nThe rendered structure includes a formatted value wrapped in a container\nwith slots for additional customization.\n\n### **CSS Parts:**\n - **native** - The native part of the component.\n- **formatted** - The part representing the formatted value.\n- **start** - Slot for content before the formatted value.\n- **end** - Slot for content after the formatted value.",
|
|
@@ -1478,6 +1455,29 @@
|
|
|
1478
1455
|
"events": []
|
|
1479
1456
|
}
|
|
1480
1457
|
},
|
|
1458
|
+
{
|
|
1459
|
+
"name": "wje-form",
|
|
1460
|
+
"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.",
|
|
1461
|
+
"doc-url": "",
|
|
1462
|
+
"attributes": [],
|
|
1463
|
+
"slots": [
|
|
1464
|
+
{
|
|
1465
|
+
"name": "",
|
|
1466
|
+
"description": "The slot for adding child elements or components."
|
|
1467
|
+
}
|
|
1468
|
+
],
|
|
1469
|
+
"events": [],
|
|
1470
|
+
"js": {
|
|
1471
|
+
"properties": [
|
|
1472
|
+
{
|
|
1473
|
+
"name": "className",
|
|
1474
|
+
"description": "The class name for the Form class.",
|
|
1475
|
+
"type": "string"
|
|
1476
|
+
}
|
|
1477
|
+
],
|
|
1478
|
+
"events": []
|
|
1479
|
+
}
|
|
1480
|
+
},
|
|
1481
1481
|
{
|
|
1482
1482
|
"name": "wje-grid",
|
|
1483
1483
|
"description": "The Grid class is a custom web component that extends WJElement. It is a simple grid that can hold other elements or components.\nIt provides a slot for adding child elements or components.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the Grid.\n- **draw(): _DocumentFragment_** - Draws the Grid element.\n\n### **Slots:**\n - _default_ - The slot for adding child elements or components.",
|
|
@@ -1654,22 +1654,52 @@
|
|
|
1654
1654
|
}
|
|
1655
1655
|
},
|
|
1656
1656
|
{
|
|
1657
|
-
"name": "wje-
|
|
1658
|
-
"description": "This element allows users to
|
|
1657
|
+
"name": "wje-img-comparer",
|
|
1658
|
+
"description": "This element allows users to compare two images. `ImgComparer` is a custom web component that represents an image comparer.\nIt extends from `WJElement` and uses the `Icon` component.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component.\n\n### **Slots:**\n - **before** - The before image slot.\n- **after** - The after image slot.\n\n### **CSS Properties:**\n - **--wje-img-compare-divider-area** - The area of the divider. This is the size of the divider. Accepts any valid CSS size. _(default: 12px)_\n- **--wje-img-compare-divider-background** - Sets the background color of the divider in the image comparison component. Accepts any valid CSS color value (e.g., `red`, `#ff0000`, `rgba(255, 255, 255, 0.5)`). The default value is `white`, which ensures high contrast in most designs. _(default: white)_\n- **--wje-img-compare-divider-size** - The size of the divider. This is the thickness of the divider. Accepts any valid CSS size. _(default: 2px)_\n- **--wje-img-compare-divider-left** - The left position of the divider. This is the initial position of the divider. _(default: 50%)_\n- **--wje-img-compare-position** - The position of the divider. This is the position of the divider. _(default: 50%)_\n- **--wje-img-compare-clip-path** - The clip path of the divider. This is the clip path of the divider. _(default: inset(0 calc(100% - var(--wje-img-compare-position)) 0 0))_\n\n### **CSS Parts:**\n - **divider** - The divider part.",
|
|
1659
1659
|
"doc-url": "",
|
|
1660
1660
|
"attributes": [],
|
|
1661
1661
|
"slots": [
|
|
1662
|
-
{
|
|
1663
|
-
|
|
1664
|
-
"description": "The default slot for the infinite scroll."
|
|
1665
|
-
}
|
|
1662
|
+
{ "name": "before", "description": "The before image slot." },
|
|
1663
|
+
{ "name": "after", "description": "The after image slot." }
|
|
1666
1664
|
],
|
|
1667
1665
|
"events": [],
|
|
1668
1666
|
"js": {
|
|
1669
1667
|
"properties": [
|
|
1670
1668
|
{
|
|
1671
|
-
"name": "
|
|
1672
|
-
"description": "
|
|
1669
|
+
"name": "dependencies",
|
|
1670
|
+
"description": "Dependencies of the ImgComparer component.",
|
|
1671
|
+
"type": "object"
|
|
1672
|
+
},
|
|
1673
|
+
{ "name": "className", "type": "string" },
|
|
1674
|
+
{
|
|
1675
|
+
"name": "handleDrag",
|
|
1676
|
+
"description": "Handles the drag event."
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
"name": "clamp",
|
|
1680
|
+
"description": "Clamps a number between a minimum and maximum value."
|
|
1681
|
+
}
|
|
1682
|
+
],
|
|
1683
|
+
"events": []
|
|
1684
|
+
}
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
"name": "wje-infinite-scroll",
|
|
1688
|
+
"description": "This element allows users to scroll through a potentially infinite amount of content.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **beforeDraw(): _void_** - Prepares the component for updates before it is drawn.\nThis method handles the removal of templates for iteration, adjusts the height styling of the component,\nand manages abort signals for loading operations.\n- **draw(): _DocumentFragment_** - Creates and returns a document fragment containing the structure for an infinite scroll component.\nThe structure includes native elements, slots for customization, and optional loading content.\n- **afterDraw()** - Called after the component has been drawn.\n- **syncAria()** - Sync ARIA attributes on host.\n- **getPages(page: _number_): _Promise<object>_** - Fetches the pages from the server.\n- **hideLoader()** - Hides the loader.\n- **showLoader(): _void_** - Displays the loader element by adding the 'show' class to its class list.\nThis method is useful for indicating a loading or processing state in the UI.\n- **hasMorePages(page: _number_): _boolean_** - Checks if there are more pages to load.\n- **loadPages(page: _number_)** - Loads the pages.\n\n### **Slots:**\n - _default_ - The default slot for the infinite scroll.\n\n### **CSS Properties:**\n - **--wje-infinite-scroll-width** - Sets the width of the infinite scroll container. his property determines how wide the infinite scroll area will be relative to its parent element. Accepts any valid CSS width value, such as percentages (`%`), pixels (`px`), or viewport units (`vw`). The default value is `100%`, which makes it span the full width of its container. _(default: 100%)_\n- **--wje-infinite-scroll-height** - Defines the height of the infinite scroll container. This property specifies how tall the infinite scroll area should be. Accepts any valid CSS height value, such as pixels (`px`), percentages (`%`), or viewport units (`vh`). The default value is `300px`, providing a fixed height suitable for most use cases. //@fires wje-infinite-scroll:click-item - Event fired when an item is clicked. _(default: 300px)_\n\n### **CSS Parts:**\n - **loader** - The loader part of the infinite scroll.",
|
|
1689
|
+
"doc-url": "",
|
|
1690
|
+
"attributes": [],
|
|
1691
|
+
"slots": [
|
|
1692
|
+
{
|
|
1693
|
+
"name": "",
|
|
1694
|
+
"description": "The default slot for the infinite scroll."
|
|
1695
|
+
}
|
|
1696
|
+
],
|
|
1697
|
+
"events": [],
|
|
1698
|
+
"js": {
|
|
1699
|
+
"properties": [
|
|
1700
|
+
{
|
|
1701
|
+
"name": "infiniteScrollTemplate",
|
|
1702
|
+
"description": "Getter for the infiniteScrollTemplate property."
|
|
1673
1703
|
},
|
|
1674
1704
|
{
|
|
1675
1705
|
"name": "response",
|
|
@@ -1787,6 +1817,28 @@
|
|
|
1787
1817
|
"events": []
|
|
1788
1818
|
}
|
|
1789
1819
|
},
|
|
1820
|
+
{
|
|
1821
|
+
"name": "wje-input-file",
|
|
1822
|
+
"description": "This element represents a file input.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _object_** - Draws the component.\n- **afterDraw()** - After draw method for the InputFile class.\n\n### **CSS Parts:**\n - **native** - The native file input wrapper.\n- **input** - The text input.\n- **file-input** - The file input element. // @fires wje-input-file:change - Event fired when the file input changes.",
|
|
1823
|
+
"doc-url": "",
|
|
1824
|
+
"attributes": [],
|
|
1825
|
+
"events": [],
|
|
1826
|
+
"js": {
|
|
1827
|
+
"properties": [
|
|
1828
|
+
{
|
|
1829
|
+
"name": "value",
|
|
1830
|
+
"description": "Gets the value of the input file."
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
"name": "className",
|
|
1834
|
+
"description": "The class name for the InputFile class.",
|
|
1835
|
+
"type": "string"
|
|
1836
|
+
},
|
|
1837
|
+
{ "name": "_value", "type": "string" }
|
|
1838
|
+
],
|
|
1839
|
+
"events": []
|
|
1840
|
+
}
|
|
1841
|
+
},
|
|
1790
1842
|
{
|
|
1791
1843
|
"name": "wje-item",
|
|
1792
1844
|
"description": "This element represents an item.\n---\n\n\n### **Methods:**\n - **isClickable(): _boolean_** - Returns the CSS styles for the component.\n- **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the item.\n- **afterDraw()** - Called after the component has been drawn.\n- **syncAria()** - Sync ARIA attributes on host.\n\n### **Slots:**\n - **start** - The start slot\n- **end** - The end slot\n- **error** - The error slot\n- **helper** - The helper slot\n\n### **CSS Properties:**\n - **--wje-item-background** - Sets the background color of the item. Accepts any valid CSS color value. _(default: var(--wje-background))_\n- **--wje-item-color** - Defines the text color for the item. Accepts any valid CSS color value. _(default: var(--wje-color))_\n- **--wje-item-padding-start** - Specifies the left padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-padding-end** - Specifies the right padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-padding-top** - Specifies the top padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-padding-bottom** - Specifies the bottom padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-inner-padding-start** - Specifies the left inner padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-inner-padding-end** - Specifies the right inner padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-inner-padding-top** - Specifies the top inner padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-inner-padding-bottom** - Specifies the bottom inner padding of the item. Accepts any valid CSS length. _(default: var(--wje-padding))_\n- **--wje-item-border-radius** - Defines the border radius, providing rounded corners for the item. _(default: var(--wje-border-radius))_\n- **--wje-item-border-width** - Sets the border width of the item. Accepts any valid CSS length. _(default: var(--wje-border-width))_\n- **--wje-item-border-style** - Specifies the style of the border, such as `solid`, `dashed`, or `dotted`. _(default: var(--wje-border-style))_\n- **--wje-item-border-color** - Defines the color of the item's border. Accepts any valid CSS color value. _(default: var(--wje-border-color))_\n- **--wje-item-min-height** - Sets the minimum height of the item to ensure consistent layout. _(default: var(--wje-min-height))_\n- **--wje-item-transition** - Specifies the transition effects for the item, such as for hover or focus states. _(default: var(--wje-transition))_\n- **--wje-item-inner-box-shadow** - Adds a shadow effect inside the item for a 3D appearance. _(default: var(--wje-box-shadow))_\n\n### **CSS Parts:**\n - **native** - The native part\n- **inner** - The inner part",
|
|
@@ -1825,28 +1877,6 @@
|
|
|
1825
1877
|
"events": []
|
|
1826
1878
|
}
|
|
1827
1879
|
},
|
|
1828
|
-
{
|
|
1829
|
-
"name": "wje-input-file",
|
|
1830
|
-
"description": "This element represents a file input.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _object_** - Draws the component.\n- **afterDraw()** - After draw method for the InputFile class.\n\n### **CSS Parts:**\n - **native** - The native file input wrapper.\n- **input** - The text input.\n- **file-input** - The file input element. // @fires wje-input-file:change - Event fired when the file input changes.",
|
|
1831
|
-
"doc-url": "",
|
|
1832
|
-
"attributes": [],
|
|
1833
|
-
"events": [],
|
|
1834
|
-
"js": {
|
|
1835
|
-
"properties": [
|
|
1836
|
-
{
|
|
1837
|
-
"name": "value",
|
|
1838
|
-
"description": "Gets the value of the input file."
|
|
1839
|
-
},
|
|
1840
|
-
{
|
|
1841
|
-
"name": "className",
|
|
1842
|
-
"description": "The class name for the InputFile class.",
|
|
1843
|
-
"type": "string"
|
|
1844
|
-
},
|
|
1845
|
-
{ "name": "_value", "type": "string" }
|
|
1846
|
-
],
|
|
1847
|
-
"events": []
|
|
1848
|
-
}
|
|
1849
|
-
},
|
|
1850
1880
|
{
|
|
1851
1881
|
"name": "wje-kanban",
|
|
1852
1882
|
"description": "This element represents a Kanban board.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **beforeDraw(context: _object_, store: _object_, params: _object_)** - Prepares the component before drawing.\n- **draw(): _DocumentFragment_** - Draws the component after it has been prepared.\n- **syncAria()** - Sync ARIA attributes on host.\n- **afterDraw()** - Called after the component has been drawn.\n- **setupDragAndDropEvents()** - Sets up the drag and drop events for the component.\n- **setupSelectAllCardsEvent()** - Sets up the select all cards event for the component.\n- **setupMenuItemClickEvents()** - Sets up the menu item click events for the component.\n- **updateSelectedCards(pool: _HTMLElement_, isChecked: _boolean_)** - Updates the selected cards in the pool.\n- **handlePoolAction(action: _string_, pool: _HTMLElement_)** - Handles the pool action.\n- **movePool(pool: _HTMLElement_, direction: _string_)** - Moves the pool in the specified direction.\n- **renamePool(pool: _HTMLElement_)** - Renames the pool.\n- **getCardPlaceholder(): _null|*_** - Gets the card placeholder.\n- **live(eventType: _string_, selector: _string_, callback: _function_)** - Adds a live event listener to the component.\n- **setSelectedCards(isChecked: _boolean_, card: _HTMLElement_)** - Sets the selected cards.\n- **setSelectedItems()** - Sets the selected items.\n- **getPages(page): _Promise<any>_** - Fetches the pages.\n\n### **Slots:**\n - _default_ - The default slot for the Kanban board.\n\n### **CSS Parts:**\n - **native-infinite-scroll** - Styles the native part of the Kanban board.",
|
|
@@ -1923,36 +1953,6 @@
|
|
|
1923
1953
|
"events": []
|
|
1924
1954
|
}
|
|
1925
1955
|
},
|
|
1926
|
-
{
|
|
1927
|
-
"name": "wje-img-comparer",
|
|
1928
|
-
"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.",
|
|
1929
|
-
"doc-url": "",
|
|
1930
|
-
"attributes": [],
|
|
1931
|
-
"slots": [
|
|
1932
|
-
{ "name": "before", "description": "The before image slot." },
|
|
1933
|
-
{ "name": "after", "description": "The after image slot." }
|
|
1934
|
-
],
|
|
1935
|
-
"events": [],
|
|
1936
|
-
"js": {
|
|
1937
|
-
"properties": [
|
|
1938
|
-
{
|
|
1939
|
-
"name": "dependencies",
|
|
1940
|
-
"description": "Dependencies of the ImgComparer component.",
|
|
1941
|
-
"type": "object"
|
|
1942
|
-
},
|
|
1943
|
-
{ "name": "className", "type": "string" },
|
|
1944
|
-
{
|
|
1945
|
-
"name": "handleDrag",
|
|
1946
|
-
"description": "Handles the drag event."
|
|
1947
|
-
},
|
|
1948
|
-
{
|
|
1949
|
-
"name": "clamp",
|
|
1950
|
-
"description": "Clamps a number between a minimum and maximum value."
|
|
1951
|
-
}
|
|
1952
|
-
],
|
|
1953
|
-
"events": []
|
|
1954
|
-
}
|
|
1955
|
-
},
|
|
1956
1956
|
{
|
|
1957
1957
|
"name": "wje-level-indicator",
|
|
1958
1958
|
"description": "LevelIndicator is a custom web component that extends WJElement.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Creates a document fragment, appends a new slot element to it, and returns the fragment.\n- **afterDraw(): _void_** - Executes any additional operations or updates required after the drawing process is completed.\n- **syncAria()** - Sync ARIA attributes on host.\n- **updateBars(level: _number_, bars: _Array_): _void_** - Updates the class of each bar element based on the specified level.\n- **getColor(level: _number_, bars: _number_): _string | undefined_** - Determines the color indicator based on the given level and bars.\n\n### **CSS Parts:**\n - **** - Styles the element.",
|
|
@@ -2103,26 +2103,6 @@
|
|
|
2103
2103
|
"events": []
|
|
2104
2104
|
}
|
|
2105
2105
|
},
|
|
2106
|
-
{
|
|
2107
|
-
"name": "wje-menu-label",
|
|
2108
|
-
"description": "This element represents a menu label.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the menu label.\n\n### **Slots:**\n - _default_ - The default slot for the menu label.\n\n### **CSS Properties:**\n - **--wje-menu-label-font-size** - Sets the font size of the menu label. Accepts any valid CSS length unit (e.g., `rem`, `px`, `em`). _(default: .75rem)_\n- **--wje-menu-label-weight** - Specifies the font weight of the menu label. Accepts values such as `normal`, `bold`, or numeric values (e.g., `400`, `600`). _(default: 600)_\n- **--wje-letter-spacing** - Defines the spacing between letters in the menu label. Accepts any valid CSS length unit. Default value ensures slight spacing for improved readability. _(default: .025rem)_\n- **--wje-menu-label-color** - Specifies the text color of the menu label. Accepts any valid CSS color value, including variables and named colors. _(default: var(--wje-color-contrast-6))_\n- **--wje-padding-top** - Sets the top padding of the menu label. Accepts any valid CSS length value to control spacing above the label. _(default: 0)_\n- **--wje-padding-bottom** - Sets the bottom padding of the menu label. Accepts any valid CSS length value to control spacing below the label. _(default: 0)_\n- **--wje-padding-start** - Specifies the left padding of the menu label in left-to-right (LTR) layouts. In right-to-left (RTL) layouts, this becomes the right padding. Accepts any valid CSS length value. _(default: 1.5rem)_\n- **--wje-padding-end** - Specifies the right padding of the menu label in left-to-right (LTR) layouts. In right-to-left (RTL) layouts, this becomes the left padding. Accepts any valid CSS length value. _(default: 1.5rem)_\n\n### **CSS Parts:**\n - **native** - The native part of the menu label.",
|
|
2109
|
-
"doc-url": "",
|
|
2110
|
-
"attributes": [],
|
|
2111
|
-
"slots": [
|
|
2112
|
-
{
|
|
2113
|
-
"name": "",
|
|
2114
|
-
"description": "The default slot for the menu label."
|
|
2115
|
-
}
|
|
2116
|
-
],
|
|
2117
|
-
"events": [],
|
|
2118
|
-
"js": {
|
|
2119
|
-
"properties": [
|
|
2120
|
-
{ "name": "className", "type": "string" },
|
|
2121
|
-
{ "name": "hasSubmenu" }
|
|
2122
|
-
],
|
|
2123
|
-
"events": []
|
|
2124
|
-
}
|
|
2125
|
-
},
|
|
2126
2106
|
{
|
|
2127
2107
|
"name": "wje-menu-item",
|
|
2128
2108
|
"description": "This element represents a menu item.\n---\n\n\n### **Events:**\n \n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the MenuItem element.\n- **beforeDraw()** - Removes the active attribute from the menu before drawing the MenuItem.\n- **draw(): _DocumentFragment_** - Draws the MenuItem element and sets the variant and collapse attributes.\n- **afterDraw()** - Adds event listeners after drawing the MenuItem.\n- **syncAria()** - Syncs ARIA attributes based on menu item state.\n- **collapseItem(native: _HTMLElement_): _HTMLElement_** - Creates a tooltip for the MenuItem when it is collapsed.\n- **showSubmenu()** - Shows the submenu of the MenuItem.\n- **hideSubmenu()** - Hides the submenu of the MenuItem.\n- **submenuToggle(e: _Event_)** - Toggles the active state of the submenu element.\nIf the submenu is not active, it sets the \"active\" attribute.\nIf the submenu is already active, it removes the \"active\" attribute.\n- **deactivateSubmenu()** - Deactivates the submenu by removing the \"active\" attribute.\n- **activateSubmenu()** - Activates the submenu of the menu item.\n- **beforeDisconnect()** - Gets the text from the element and returns it.\n- **getTextFromElement(element: _HTMLElement_): _string_** - Extracts and returns the concatenated text content from all text nodes within the specified element.\n\n### **Slots:**\n - _default_ - The default slot for the menu item.\n- **start** - The slot for the start of the menu item.\n- **end** - The slot for the end of the menu item.\n- **submenu** - The slot for the submenu of the menu item.\n\n### **CSS Properties:**\n - **--wje-menu-item-color** - Sets the text color of a menu item. Accepts any valid CSS color value. _(default: var(--wje-color))_\n- **--wje-menu-item-background** - Defines the background color of a menu item. Default is `transparent`. Accepts any valid CSS color value. _(default: transparent)_\n- **--wje-menu-item-color-hover** - Specifies the text color of a menu item when hovered. Accepts any valid CSS color value. _(default: var(--wje-color-contrast-8))_\n- **--wje-menu-item-background-hover** - Sets the background color of a menu item when hovered. Accepts any valid CSS color value. _(default: var(--wje-border-color))_\n- **--wje-menu-item-color-focus** - Defines the text color of a menu item when focused. Accepts any valid CSS color value. _(default: var(--wje-color-contrast-8))_\n- **--wje-menu-item-background-focus** - Specifies the background color of a menu item when focused. Accepts any valid CSS color value. _(default: var(--wje-border-color))_\n- **--wje-menu-item-color-active** - Sets the text color of a menu item when active. Accepts any valid CSS color value. _(default: var(--wje-color-contrast-8))_\n- **--wje-menu-item-background-active** - Specifies the background color of a menu item when active. Accepts any valid CSS color value. _(default: var(--wje-border-color))_\n- **--wje-menu-item-padding-top** - Specifies the top padding inside a menu item. Accepts any valid CSS length value (e.g., `px`, `rem`). _(default: .5rem)_\n- **--wje-menu-item-padding-bottom** - Specifies the bottom padding inside a menu item. Accepts any valid CSS length value (e.g., `px`, `rem`). _(default: .5rem)_\n- **--wje-menu-item-line-height** - Sets the line height for the text within a menu item. Accepts any valid CSS length value. _(default: 1.8rem)_\n- **--wje-menu-submenu-offset** - Determines the horizontal offset of a submenu relative to its parent. Accepts any valid CSS length value. _(default: 0)_\n- **--wje-menu-item-icon-visibility** - Controls the visibility of the icon in a menu item. Accepts `visible`, `hidden`, or `collapse`. _(default: hidden)_\n- **--wje-menu-item-safe-triangle-cursor-x** - Specifies the x-coordinate of the cursor for the safe triangle area. Used for managing hover or focus transitions between menu items and submenus. _(default: undefined)_\n- **--wje-menu-item-safe-triangle-cursor-y** - Specifies the y-coordinate of the cursor for the safe triangle area. _(default: undefined)_\n- **--wje-menu-item-safe-triangle-submenu-start-x** - Defines the x-coordinate where the submenu's safe triangle starts. Helps prevent accidental submenu closing when navigating. _(default: undefined)_\n- **--wje-menu-item-safe-triangle-submenu-start-y** - Defines the y-coordinate where the submenu's safe triangle starts. _(default: undefined)_\n- **--wje-menu-item-safe-triangle-submenu-end-x** - Specifies the x-coordinate where the submenu's safe triangle ends. _(default: undefined)_\n- **--wje-menu-item-safe-triangle-submenu-end-y** - Specifies the y-coordinate where the submenu's safe triangle ends. _(default: undefined)_\n\n### **CSS Parts:**\n - **native** - The native part of the menu item.\n- **submenu** - The submenu part of the menu item.",
|
|
@@ -2198,6 +2178,26 @@
|
|
|
2198
2178
|
"events": []
|
|
2199
2179
|
}
|
|
2200
2180
|
},
|
|
2181
|
+
{
|
|
2182
|
+
"name": "wje-menu-label",
|
|
2183
|
+
"description": "This element represents a menu label.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the menu label.\n\n### **Slots:**\n - _default_ - The default slot for the menu label.\n\n### **CSS Properties:**\n - **--wje-menu-label-font-size** - Sets the font size of the menu label. Accepts any valid CSS length unit (e.g., `rem`, `px`, `em`). _(default: .75rem)_\n- **--wje-menu-label-weight** - Specifies the font weight of the menu label. Accepts values such as `normal`, `bold`, or numeric values (e.g., `400`, `600`). _(default: 600)_\n- **--wje-letter-spacing** - Defines the spacing between letters in the menu label. Accepts any valid CSS length unit. Default value ensures slight spacing for improved readability. _(default: .025rem)_\n- **--wje-menu-label-color** - Specifies the text color of the menu label. Accepts any valid CSS color value, including variables and named colors. _(default: var(--wje-color-contrast-6))_\n- **--wje-padding-top** - Sets the top padding of the menu label. Accepts any valid CSS length value to control spacing above the label. _(default: 0)_\n- **--wje-padding-bottom** - Sets the bottom padding of the menu label. Accepts any valid CSS length value to control spacing below the label. _(default: 0)_\n- **--wje-padding-start** - Specifies the left padding of the menu label in left-to-right (LTR) layouts. In right-to-left (RTL) layouts, this becomes the right padding. Accepts any valid CSS length value. _(default: 1.5rem)_\n- **--wje-padding-end** - Specifies the right padding of the menu label in left-to-right (LTR) layouts. In right-to-left (RTL) layouts, this becomes the left padding. Accepts any valid CSS length value. _(default: 1.5rem)_\n\n### **CSS Parts:**\n - **native** - The native part of the menu label.",
|
|
2184
|
+
"doc-url": "",
|
|
2185
|
+
"attributes": [],
|
|
2186
|
+
"slots": [
|
|
2187
|
+
{
|
|
2188
|
+
"name": "",
|
|
2189
|
+
"description": "The default slot for the menu label."
|
|
2190
|
+
}
|
|
2191
|
+
],
|
|
2192
|
+
"events": [],
|
|
2193
|
+
"js": {
|
|
2194
|
+
"properties": [
|
|
2195
|
+
{ "name": "className", "type": "string" },
|
|
2196
|
+
{ "name": "hasSubmenu" }
|
|
2197
|
+
],
|
|
2198
|
+
"events": []
|
|
2199
|
+
}
|
|
2200
|
+
},
|
|
2201
2201
|
{
|
|
2202
2202
|
"name": "wje-option",
|
|
2203
2203
|
"description": "This element represents an option.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the option.\n- **afterDraw(): _void_** - Method executed after the drawing process is completed.\nSets up an event listener for 'click' events, linking them to the specified callback function.\n- **syncAria()** - Syncs ARIA attributes on the host element.\n- **beforeDisconnect(): _void_** - Handles operations or cleanup tasks that need to occur before disconnecting.\nRemoves an event listener associated with the 'click' event and a specified callback function.\n- **optionClickCallback(e: _Event_): _void_** - Handles the click event on an option element and dispatches a custom event when triggered.\n\n### **Slots:**\n - **start** - The slot for the start of the option.\n- _default_ - The default slot for the option.\n- **end** - The slot for the end of the option. // @fires wje-option:change - Event fired when the option is clicked.\n\n### **CSS Parts:**\n - **native** - The native part of the option.",
|
|
@@ -2420,6 +2420,23 @@
|
|
|
2420
2420
|
"events": []
|
|
2421
2421
|
}
|
|
2422
2422
|
},
|
|
2423
|
+
{
|
|
2424
|
+
"name": "wje-panel",
|
|
2425
|
+
"description": "This element represents a panel.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the panel.\n- **afterDraw()** - Adds event listeners after the component is drawn.\nHandles the collapsing of breadcrumbs.\n- **getBreadcrumbs(): _Array<Element>_** - Returns all the breadcrumb elements in the panel.\n\n### **Slots:**\n - _default_ - The default slot for the panel.",
|
|
2426
|
+
"doc-url": "",
|
|
2427
|
+
"attributes": [],
|
|
2428
|
+
"slots": [
|
|
2429
|
+
{ "name": "", "description": "The default slot for the panel." }
|
|
2430
|
+
],
|
|
2431
|
+
"events": [],
|
|
2432
|
+
"js": {
|
|
2433
|
+
"properties": [
|
|
2434
|
+
{ "name": "className", "type": "string" },
|
|
2435
|
+
{ "name": "last", "type": "boolean" }
|
|
2436
|
+
],
|
|
2437
|
+
"events": []
|
|
2438
|
+
}
|
|
2439
|
+
},
|
|
2423
2440
|
{
|
|
2424
2441
|
"name": "wje-pagination",
|
|
2425
2442
|
"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.",
|
|
@@ -2490,23 +2507,6 @@
|
|
|
2490
2507
|
"events": []
|
|
2491
2508
|
}
|
|
2492
2509
|
},
|
|
2493
|
-
{
|
|
2494
|
-
"name": "wje-panel",
|
|
2495
|
-
"description": "This element represents a panel.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the panel.\n- **afterDraw()** - Adds event listeners after the component is drawn.\nHandles the collapsing of breadcrumbs.\n- **getBreadcrumbs(): _Array<Element>_** - Returns all the breadcrumb elements in the panel.\n\n### **Slots:**\n - _default_ - The default slot for the panel.",
|
|
2496
|
-
"doc-url": "",
|
|
2497
|
-
"attributes": [],
|
|
2498
|
-
"slots": [
|
|
2499
|
-
{ "name": "", "description": "The default slot for the panel." }
|
|
2500
|
-
],
|
|
2501
|
-
"events": [],
|
|
2502
|
-
"js": {
|
|
2503
|
-
"properties": [
|
|
2504
|
-
{ "name": "className", "type": "string" },
|
|
2505
|
-
{ "name": "last", "type": "boolean" }
|
|
2506
|
-
],
|
|
2507
|
-
"events": []
|
|
2508
|
-
}
|
|
2509
|
-
},
|
|
2510
2510
|
{
|
|
2511
2511
|
"name": "wje-popup",
|
|
2512
2512
|
"description": "This element represents a popup.\n---\n\n\n### **Events:**\n - **wje-portal:restored**\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the popup.\n- **afterDraw()** - After Draws the component.\n- **setAnchor()** - Sets the anchor for the popup.\nAdds a click event listener to the anchor element.\n- **showHide()** - Toggles the active attribute of the popup.\n- **reposition()** - Repositions the popup.\nUses the floating-ui library to compute the position.\n- **_mountContentToPortal(): _void_** - Mounts content to a portal container by creating or ensuring a portal root and mirroring\nthe host's classes, attributes, and slot contents onto the portal. This method manages the\nmovement of default and arrow slot content into the portal shadow DOM, while also setting\nup necessary mutation observers to keep attributes in sync.\n- **_restoreContentFromPortal(): _void_** - Restores the content previously moved to a portal back to its original location.\nThis method handles restoring default slot content, arrow placeholders, disconnecting\nattribute mirroring observers, and cleaning up elements and containers related to the portal.\nEnsures all placeholders and native portal elements are properly removed from the DOM.\n- **_ensurePortalRoot(): _void_** - Ensures that a portal root is created and initialized properly with a shadow DOM and attached styles.\nIf the portal root already exists, the method exits early.\nThe method creates a `div` element in the document body and attaches a shadow DOM to it.\nIt also applies the required styles to the shadow DOM, either using constructable stylesheets\nor by appending a `<style>` element. Additionally, it copies CSS custom properties from the\ncomponent's computed styles to the portal host to ensure proper style resolution.\n- **show(dispatchEvent: _boolean_): _void_** - Displays the popup by portaling the content, managing the loader state, and attaching event handlers.\nOptionally dispatches a custom event when the popup is shown.\n- **hide(dispatchEvent)** - Hides the popup.\nRemoves the popup-active class from the floating element.\nCleans up the auto update for repositioning.\n\n### **Slots:**\n - **anchor** - The slot for the anchor of the popup.\n- **arrow** - The slot for the arrow of the popup.\n- _default_ - The default slot for the popup.\n\n### **CSS Properties:**\n - **--wje-popup-backdrop-background** - Backdrop background used by mobile bottom sheet popups. _(default: var(--wje-backdrop))_\n- **--wje-popup-backdrop-opacity** - Backdrop opacity used by mobile bottom sheet popups. _(default: 1)_\n- **--wje-popup-mobile-background** - Background of the mobile bottom sheet panel. _(default: var(--wje-select-options-background-color))_\n- **--wje-popup-mobile-border-radius** - Border radius of the mobile bottom sheet panel. _(default: var(--wje-border-radius-large) var(--wje-border-radius-large) 0 0)_\n- **--wje-popup-mobile-box-shadow** - Shadow of the mobile bottom sheet panel. _(default: 0 -8px 32px rgba(0, 0, 0, 0.16))_\n- **--wje-popup-mobile-max-height** - Maximum height of the mobile bottom sheet panel. _(default: 90vh)_\n- **--wje-popup-mobile-transition-duration** - Transition duration for the mobile bottom sheet and backdrop. _(default: 250ms)_\n- **--wje-popup-mobile-transition-easing** - Transition easing for the mobile bottom sheet and backdrop. _(default: ease)_\n- **--wje-popup-loader-inset** - Inset used by the popup loader overlay. _(default: 0)_\n\n### **CSS Parts:**\n - **native** - The native part of the popup.\n- **backdrop** - The backdrop used by mobile bottom sheet presentation.",
|
|
@@ -2627,73 +2627,6 @@
|
|
|
2627
2627
|
"events": []
|
|
2628
2628
|
}
|
|
2629
2629
|
},
|
|
2630
|
-
{
|
|
2631
|
-
"name": "wje-qr-code",
|
|
2632
|
-
"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.",
|
|
2633
|
-
"doc-url": "",
|
|
2634
|
-
"attributes": [],
|
|
2635
|
-
"slots": [
|
|
2636
|
-
{
|
|
2637
|
-
"name": "top",
|
|
2638
|
-
"description": "The slot for the top content of the QR code."
|
|
2639
|
-
},
|
|
2640
|
-
{
|
|
2641
|
-
"name": "bottom",
|
|
2642
|
-
"description": "The slot for the bottom content of the QR code."
|
|
2643
|
-
}
|
|
2644
|
-
],
|
|
2645
|
-
"events": [],
|
|
2646
|
-
"js": {
|
|
2647
|
-
"properties": [
|
|
2648
|
-
{
|
|
2649
|
-
"name": "value",
|
|
2650
|
-
"description": "Content encoded into the QR code.",
|
|
2651
|
-
"type": "string"
|
|
2652
|
-
},
|
|
2653
|
-
{
|
|
2654
|
-
"name": "background",
|
|
2655
|
-
"description": "Background color of the QR code.",
|
|
2656
|
-
"type": "string|null"
|
|
2657
|
-
},
|
|
2658
|
-
{
|
|
2659
|
-
"name": "backgroundAlpha",
|
|
2660
|
-
"description": "Background alpha channel in range 0-1.\nSupports aliases: background-alpha, backgroundalpha, backgroundAlpha.",
|
|
2661
|
-
"type": "number|null"
|
|
2662
|
-
},
|
|
2663
|
-
{
|
|
2664
|
-
"name": "foreground",
|
|
2665
|
-
"description": "Foreground color of the QR code.",
|
|
2666
|
-
"type": "string|null"
|
|
2667
|
-
},
|
|
2668
|
-
{
|
|
2669
|
-
"name": "foregroundAlpha",
|
|
2670
|
-
"description": "Foreground alpha channel in range 0-1.\nSupports aliases: foreground-alpha, foregroundalpha, foregroundAlpha.",
|
|
2671
|
-
"type": "number|null"
|
|
2672
|
-
},
|
|
2673
|
-
{
|
|
2674
|
-
"name": "level",
|
|
2675
|
-
"description": "Error correction level. Accepted values: L, M, Q, H.",
|
|
2676
|
-
"type": "string|null"
|
|
2677
|
-
},
|
|
2678
|
-
{
|
|
2679
|
-
"name": "padding",
|
|
2680
|
-
"description": "Padding around the QR code in pixels.",
|
|
2681
|
-
"type": "number|null"
|
|
2682
|
-
},
|
|
2683
|
-
{
|
|
2684
|
-
"name": "size",
|
|
2685
|
-
"description": "Output QR code size in pixels.",
|
|
2686
|
-
"type": "number|null"
|
|
2687
|
-
},
|
|
2688
|
-
{
|
|
2689
|
-
"name": "className",
|
|
2690
|
-
"description": "The class name for the component.",
|
|
2691
|
-
"type": "string"
|
|
2692
|
-
}
|
|
2693
|
-
],
|
|
2694
|
-
"events": []
|
|
2695
|
-
}
|
|
2696
|
-
},
|
|
2697
2630
|
{
|
|
2698
2631
|
"name": "wje-radio",
|
|
2699
2632
|
"description": "This class represents a Radio button element, extending the WJElement class.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the radio button.\n- **afterDraw()** - Sets up the event listeners for the component.\n- **syncAria()** - Syncs ARIA attributes on the host element.\n- **beforeDisconnect()** - Toggles the radio button.\n\n### **Slots:**\n - _default_ - Default slot for the radio button label content.\n\n### **CSS Properties:**\n - **--wje-radio-margin-inline** - Specifies the horizontal (left and right) margin for the radio button. Accepts any valid CSS length unit (e.g., `px`, `rem`, `%`) to control spacing on both sides of the component. _(default: 0)_\n- **--wje-radio-margin-top** - Defines the top margin for the radio button. Accepts any valid CSS length value to adjust vertical spacing above the component. _(default: 0)_\n- **--wje-radio-margin-bottom** - Sets the bottom margin for the radio button. Accepts any valid CSS length value to adjust vertical spacing below the component. // @fires wje-radio:change - Dispatched when the radio button's state changes. // @fires wje-radio:input - Dispatched when the radio button is interacted with. _(default: 0)_\n\n### **CSS Parts:**\n - **native-radio** - The native wrapper for the radio button.",
|
|
@@ -2735,13 +2668,119 @@
|
|
|
2735
2668
|
}
|
|
2736
2669
|
},
|
|
2737
2670
|
{
|
|
2738
|
-
"name": "wje-
|
|
2739
|
-
"description": "This element represents a
|
|
2671
|
+
"name": "wje-radio-group",
|
|
2672
|
+
"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.",
|
|
2740
2673
|
"doc-url": "",
|
|
2741
2674
|
"attributes": [
|
|
2742
|
-
{ "name": "
|
|
2675
|
+
{ "name": "required", "value": { "type": "string" } },
|
|
2743
2676
|
{ "name": "value", "value": { "type": "string" } },
|
|
2744
|
-
{
|
|
2677
|
+
{ "name": "disabled", "value": { "type": "string" } },
|
|
2678
|
+
{ "name": "invalid", "value": { "type": "string" } },
|
|
2679
|
+
{ "name": "label", "value": { "type": "string" } }
|
|
2680
|
+
],
|
|
2681
|
+
"slots": [
|
|
2682
|
+
{
|
|
2683
|
+
"name": "",
|
|
2684
|
+
"description": "The default slot for the radio group."
|
|
2685
|
+
}
|
|
2686
|
+
],
|
|
2687
|
+
"events": [],
|
|
2688
|
+
"js": {
|
|
2689
|
+
"properties": [
|
|
2690
|
+
{
|
|
2691
|
+
"name": "value",
|
|
2692
|
+
"description": "Getter for the value attribute."
|
|
2693
|
+
},
|
|
2694
|
+
{
|
|
2695
|
+
"name": "required",
|
|
2696
|
+
"description": "Getter for the name attribute."
|
|
2697
|
+
},
|
|
2698
|
+
{
|
|
2699
|
+
"name": "label",
|
|
2700
|
+
"description": "Getter for the label attribute."
|
|
2701
|
+
},
|
|
2702
|
+
{ "name": "className", "type": "string" },
|
|
2703
|
+
{ "name": "invalid", "type": "boolean" },
|
|
2704
|
+
{ "name": "pristine", "type": "boolean" }
|
|
2705
|
+
],
|
|
2706
|
+
"events": []
|
|
2707
|
+
}
|
|
2708
|
+
},
|
|
2709
|
+
{
|
|
2710
|
+
"name": "wje-qr-code",
|
|
2711
|
+
"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.",
|
|
2712
|
+
"doc-url": "",
|
|
2713
|
+
"attributes": [],
|
|
2714
|
+
"slots": [
|
|
2715
|
+
{
|
|
2716
|
+
"name": "top",
|
|
2717
|
+
"description": "The slot for the top content of the QR code."
|
|
2718
|
+
},
|
|
2719
|
+
{
|
|
2720
|
+
"name": "bottom",
|
|
2721
|
+
"description": "The slot for the bottom content of the QR code."
|
|
2722
|
+
}
|
|
2723
|
+
],
|
|
2724
|
+
"events": [],
|
|
2725
|
+
"js": {
|
|
2726
|
+
"properties": [
|
|
2727
|
+
{
|
|
2728
|
+
"name": "value",
|
|
2729
|
+
"description": "Content encoded into the QR code.",
|
|
2730
|
+
"type": "string"
|
|
2731
|
+
},
|
|
2732
|
+
{
|
|
2733
|
+
"name": "background",
|
|
2734
|
+
"description": "Background color of the QR code.",
|
|
2735
|
+
"type": "string|null"
|
|
2736
|
+
},
|
|
2737
|
+
{
|
|
2738
|
+
"name": "backgroundAlpha",
|
|
2739
|
+
"description": "Background alpha channel in range 0-1.\nSupports aliases: background-alpha, backgroundalpha, backgroundAlpha.",
|
|
2740
|
+
"type": "number|null"
|
|
2741
|
+
},
|
|
2742
|
+
{
|
|
2743
|
+
"name": "foreground",
|
|
2744
|
+
"description": "Foreground color of the QR code.",
|
|
2745
|
+
"type": "string|null"
|
|
2746
|
+
},
|
|
2747
|
+
{
|
|
2748
|
+
"name": "foregroundAlpha",
|
|
2749
|
+
"description": "Foreground alpha channel in range 0-1.\nSupports aliases: foreground-alpha, foregroundalpha, foregroundAlpha.",
|
|
2750
|
+
"type": "number|null"
|
|
2751
|
+
},
|
|
2752
|
+
{
|
|
2753
|
+
"name": "level",
|
|
2754
|
+
"description": "Error correction level. Accepted values: L, M, Q, H.",
|
|
2755
|
+
"type": "string|null"
|
|
2756
|
+
},
|
|
2757
|
+
{
|
|
2758
|
+
"name": "padding",
|
|
2759
|
+
"description": "Padding around the QR code in pixels.",
|
|
2760
|
+
"type": "number|null"
|
|
2761
|
+
},
|
|
2762
|
+
{
|
|
2763
|
+
"name": "size",
|
|
2764
|
+
"description": "Output QR code size in pixels.",
|
|
2765
|
+
"type": "number|null"
|
|
2766
|
+
},
|
|
2767
|
+
{
|
|
2768
|
+
"name": "className",
|
|
2769
|
+
"description": "The class name for the component.",
|
|
2770
|
+
"type": "string"
|
|
2771
|
+
}
|
|
2772
|
+
],
|
|
2773
|
+
"events": []
|
|
2774
|
+
}
|
|
2775
|
+
},
|
|
2776
|
+
{
|
|
2777
|
+
"name": "wje-rate",
|
|
2778
|
+
"description": "This element represents a rating component.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the rating component.\n- **afterDraw()** - Adds event listeners after the component is drawn.\n- **createIcons(i: _number_): _Element_** - Creates the icons for the rating component.\n- **changeRate()** - Changes the rate of the rating component.\n- **syncAria()** - Sync ARIA attributes on host.\n- **getIcons(index: _number_): _Element_** - Returns the icons for the rating component.\n- **getValueFromXPosition(coordinate: _number_): _number_** - Returns the value from the x position.\n- **roundToPrecision(numberToRound: _number_, precision: _number_): _number_** - Rounds a given number to the nearest specified precision.\n\n### **CSS Properties:**\n - **--wje-rate-gap** - Defines the spacing (gap) between individual items in the rating component. Accepts any valid CSS length unit (e.g., `px`, `rem`, `em`) to adjust the distance between rating elements. _(default: .25rem)_\n- **--wje-rate-color** - Specifies the default color of the rating items. Accepts any valid CSS color value, including named colors, hex values, RGB, or CSS variables. _(default: var(--wje-color-contrast-11))_\n- **--wje-rate-selected-color** - Sets the color for selected or highlighted rating items. This property helps visually distinguish selected ratings. Accepts any valid CSS color value. _(default: var(--wje-color-danger-9))_\n\n### **CSS Parts:**\n - **native** - The native part of the rating component.",
|
|
2779
|
+
"doc-url": "",
|
|
2780
|
+
"attributes": [
|
|
2781
|
+
{ "name": "is-hover", "value": { "type": "string" } },
|
|
2782
|
+
{ "name": "value", "value": { "type": "string" } },
|
|
2783
|
+
{
|
|
2745
2784
|
"name": "max",
|
|
2746
2785
|
"description": "The maximum value of the rating component.",
|
|
2747
2786
|
"value": { "type": "number" }
|
|
@@ -2816,40 +2855,30 @@
|
|
|
2816
2855
|
}
|
|
2817
2856
|
},
|
|
2818
2857
|
{
|
|
2819
|
-
"name": "wje-
|
|
2820
|
-
"description": "This element represents a
|
|
2858
|
+
"name": "wje-relative-time",
|
|
2859
|
+
"description": "This element represents a relative time component.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the relative time.\n- **getRelativeTimeString(lang)** - Returns the relative time string for the given date.\n- **isISODate(str: _string_): _boolean_** - Checks if the given string is an ISO date.\n\n### **CSS Parts:**\n - **native** - The native part of the relative time component.",
|
|
2821
2860
|
"doc-url": "",
|
|
2822
2861
|
"attributes": [
|
|
2823
|
-
{ "name": "
|
|
2824
|
-
{ "name": "
|
|
2825
|
-
{ "name": "disabled", "value": { "type": "string" } },
|
|
2826
|
-
{ "name": "invalid", "value": { "type": "string" } },
|
|
2827
|
-
{ "name": "label", "value": { "type": "string" } }
|
|
2828
|
-
],
|
|
2829
|
-
"slots": [
|
|
2830
|
-
{
|
|
2831
|
-
"name": "",
|
|
2832
|
-
"description": "The default slot for the radio group."
|
|
2833
|
-
}
|
|
2862
|
+
{ "name": "date", "value": { "type": "string" } },
|
|
2863
|
+
{ "name": "lang", "value": { "type": "string" } }
|
|
2834
2864
|
],
|
|
2835
2865
|
"events": [],
|
|
2836
2866
|
"js": {
|
|
2837
2867
|
"properties": [
|
|
2838
2868
|
{
|
|
2839
|
-
"name": "
|
|
2840
|
-
"description": "
|
|
2869
|
+
"name": "date",
|
|
2870
|
+
"description": "Gets the date of the relative time component."
|
|
2841
2871
|
},
|
|
2842
2872
|
{
|
|
2843
|
-
"name": "
|
|
2844
|
-
"description": "
|
|
2873
|
+
"name": "objectDate",
|
|
2874
|
+
"description": "Gets the object date of the relative time component."
|
|
2845
2875
|
},
|
|
2846
2876
|
{
|
|
2847
|
-
"name": "
|
|
2848
|
-
"description": "
|
|
2877
|
+
"name": "className",
|
|
2878
|
+
"description": "Sets the lang of the relative time component.",
|
|
2879
|
+
"type": "string"
|
|
2849
2880
|
},
|
|
2850
|
-
{ "name": "
|
|
2851
|
-
{ "name": "invalid", "type": "boolean" },
|
|
2852
|
-
{ "name": "pristine", "type": "boolean" }
|
|
2881
|
+
{ "name": "localizer" }
|
|
2853
2882
|
],
|
|
2854
2883
|
"events": []
|
|
2855
2884
|
}
|
|
@@ -2907,35 +2936,6 @@
|
|
|
2907
2936
|
"events": []
|
|
2908
2937
|
}
|
|
2909
2938
|
},
|
|
2910
|
-
{
|
|
2911
|
-
"name": "wje-relative-time",
|
|
2912
|
-
"description": "This element represents a relative time component.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the relative time.\n- **getRelativeTimeString(lang)** - Returns the relative time string for the given date.\n- **isISODate(str: _string_): _boolean_** - Checks if the given string is an ISO date.\n\n### **CSS Parts:**\n - **native** - The native part of the relative time component.",
|
|
2913
|
-
"doc-url": "",
|
|
2914
|
-
"attributes": [
|
|
2915
|
-
{ "name": "date", "value": { "type": "string" } },
|
|
2916
|
-
{ "name": "lang", "value": { "type": "string" } }
|
|
2917
|
-
],
|
|
2918
|
-
"events": [],
|
|
2919
|
-
"js": {
|
|
2920
|
-
"properties": [
|
|
2921
|
-
{
|
|
2922
|
-
"name": "date",
|
|
2923
|
-
"description": "Gets the date of the relative time component."
|
|
2924
|
-
},
|
|
2925
|
-
{
|
|
2926
|
-
"name": "objectDate",
|
|
2927
|
-
"description": "Gets the object date of the relative time component."
|
|
2928
|
-
},
|
|
2929
|
-
{
|
|
2930
|
-
"name": "className",
|
|
2931
|
-
"description": "Sets the lang of the relative time component.",
|
|
2932
|
-
"type": "string"
|
|
2933
|
-
},
|
|
2934
|
-
{ "name": "localizer" }
|
|
2935
|
-
],
|
|
2936
|
-
"events": []
|
|
2937
|
-
}
|
|
2938
|
-
},
|
|
2939
2939
|
{
|
|
2940
2940
|
"name": "wje-reorder-handle",
|
|
2941
2941
|
"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.",
|
|
@@ -3036,6 +3036,70 @@
|
|
|
3036
3036
|
"events": []
|
|
3037
3037
|
}
|
|
3038
3038
|
},
|
|
3039
|
+
{
|
|
3040
|
+
"name": "wje-row",
|
|
3041
|
+
"description": "This element represents a row in a layout system.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the row.\n\n### **Slots:**\n - _default_ - The default slot for the row.",
|
|
3042
|
+
"doc-url": "",
|
|
3043
|
+
"attributes": [],
|
|
3044
|
+
"slots": [
|
|
3045
|
+
{ "name": "", "description": "The default slot for the row." }
|
|
3046
|
+
],
|
|
3047
|
+
"events": [],
|
|
3048
|
+
"js": {
|
|
3049
|
+
"properties": [
|
|
3050
|
+
{
|
|
3051
|
+
"name": "className",
|
|
3052
|
+
"description": "The class name for the component.",
|
|
3053
|
+
"type": "string"
|
|
3054
|
+
}
|
|
3055
|
+
],
|
|
3056
|
+
"events": []
|
|
3057
|
+
}
|
|
3058
|
+
},
|
|
3059
|
+
{
|
|
3060
|
+
"name": "wje-slider",
|
|
3061
|
+
"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.",
|
|
3062
|
+
"doc-url": "",
|
|
3063
|
+
"attributes": [
|
|
3064
|
+
{ "name": "max", "value": { "type": "string" } },
|
|
3065
|
+
{ "name": "min", "value": { "type": "string" } },
|
|
3066
|
+
{ "name": "step", "value": { "type": "string" } },
|
|
3067
|
+
{ "name": "value", "value": { "type": "string" } },
|
|
3068
|
+
{ "name": "disabled", "value": { "type": "string" } },
|
|
3069
|
+
{ "name": "bubble", "value": { "type": "string" } }
|
|
3070
|
+
],
|
|
3071
|
+
"events": [],
|
|
3072
|
+
"js": {
|
|
3073
|
+
"properties": [
|
|
3074
|
+
{
|
|
3075
|
+
"name": "value",
|
|
3076
|
+
"description": "Returns the value of the slider."
|
|
3077
|
+
},
|
|
3078
|
+
{
|
|
3079
|
+
"name": "min",
|
|
3080
|
+
"description": "Returns the minimum value of the slider."
|
|
3081
|
+
},
|
|
3082
|
+
{
|
|
3083
|
+
"name": "max",
|
|
3084
|
+
"description": "Returns the maximum value of the slider."
|
|
3085
|
+
},
|
|
3086
|
+
{
|
|
3087
|
+
"name": "step",
|
|
3088
|
+
"description": "Returns the step value of the slider."
|
|
3089
|
+
},
|
|
3090
|
+
{ "name": "className", "type": "string" },
|
|
3091
|
+
{
|
|
3092
|
+
"name": "setHandlePosition",
|
|
3093
|
+
"description": "Sets the handle position of the slider."
|
|
3094
|
+
},
|
|
3095
|
+
{
|
|
3096
|
+
"name": "setBubble",
|
|
3097
|
+
"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."
|
|
3098
|
+
}
|
|
3099
|
+
],
|
|
3100
|
+
"events": []
|
|
3101
|
+
}
|
|
3102
|
+
},
|
|
3039
3103
|
{
|
|
3040
3104
|
"name": "wje-router-outlet",
|
|
3041
3105
|
"description": "This element represents a route in a routing system.\n---\n",
|
|
@@ -3159,50 +3223,6 @@
|
|
|
3159
3223
|
"events": []
|
|
3160
3224
|
}
|
|
3161
3225
|
},
|
|
3162
|
-
{
|
|
3163
|
-
"name": "wje-slider",
|
|
3164
|
-
"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.",
|
|
3165
|
-
"doc-url": "",
|
|
3166
|
-
"attributes": [
|
|
3167
|
-
{ "name": "max", "value": { "type": "string" } },
|
|
3168
|
-
{ "name": "min", "value": { "type": "string" } },
|
|
3169
|
-
{ "name": "step", "value": { "type": "string" } },
|
|
3170
|
-
{ "name": "value", "value": { "type": "string" } },
|
|
3171
|
-
{ "name": "disabled", "value": { "type": "string" } },
|
|
3172
|
-
{ "name": "bubble", "value": { "type": "string" } }
|
|
3173
|
-
],
|
|
3174
|
-
"events": [],
|
|
3175
|
-
"js": {
|
|
3176
|
-
"properties": [
|
|
3177
|
-
{
|
|
3178
|
-
"name": "value",
|
|
3179
|
-
"description": "Returns the value of the slider."
|
|
3180
|
-
},
|
|
3181
|
-
{
|
|
3182
|
-
"name": "min",
|
|
3183
|
-
"description": "Returns the minimum value of the slider."
|
|
3184
|
-
},
|
|
3185
|
-
{
|
|
3186
|
-
"name": "max",
|
|
3187
|
-
"description": "Returns the maximum value of the slider."
|
|
3188
|
-
},
|
|
3189
|
-
{
|
|
3190
|
-
"name": "step",
|
|
3191
|
-
"description": "Returns the step value of the slider."
|
|
3192
|
-
},
|
|
3193
|
-
{ "name": "className", "type": "string" },
|
|
3194
|
-
{
|
|
3195
|
-
"name": "setHandlePosition",
|
|
3196
|
-
"description": "Sets the handle position of the slider."
|
|
3197
|
-
},
|
|
3198
|
-
{
|
|
3199
|
-
"name": "setBubble",
|
|
3200
|
-
"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."
|
|
3201
|
-
}
|
|
3202
|
-
],
|
|
3203
|
-
"events": []
|
|
3204
|
-
}
|
|
3205
|
-
},
|
|
3206
3226
|
{
|
|
3207
3227
|
"name": "wje-split-view",
|
|
3208
3228
|
"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.",
|
|
@@ -3537,102 +3557,31 @@
|
|
|
3537
3557
|
"js": {
|
|
3538
3558
|
"properties": [
|
|
3539
3559
|
{
|
|
3540
|
-
"name": "startIndex",
|
|
3541
|
-
"description": "Retrieves the starting index value stored as an attribute.\nIf the attribute 'start-index' exists and is not null, it parses the value as an integer and returns it.\nIf the attribute does not exist, it returns the default value of 0."
|
|
3542
|
-
},
|
|
3543
|
-
{ "name": "active" },
|
|
3544
|
-
{ "name": "done" },
|
|
3545
|
-
{ "name": "className", "type": "string" },
|
|
3546
|
-
{
|
|
3547
|
-
"name": "beforeOpen",
|
|
3548
|
-
"description": "A callback function that is executed before opening a step in a process.\nThis allows for custom behavior or logic to be applied before the step is displayed."
|
|
3549
|
-
},
|
|
3550
|
-
{
|
|
3551
|
-
"name": "afterOpen",
|
|
3552
|
-
"description": "Callback function executed after a step is opened.\nThis function can be overridden to implement custom behavior\nthat should take place immediately after a step is opened."
|
|
3553
|
-
},
|
|
3554
|
-
{ "name": "currentStep", "type": "number" },
|
|
3555
|
-
{ "name": "localizer" },
|
|
3556
|
-
{ "name": "steps", "type": "array" },
|
|
3557
|
-
{ "name": "headerSteps", "type": "array" },
|
|
3558
|
-
{ "name": "_stepperId", "type": "number" }
|
|
3559
|
-
],
|
|
3560
|
-
"events": [
|
|
3561
|
-
{ "name": "stepper:next", "type": "CustomEvent" },
|
|
3562
|
-
{ "name": "stepper:prev", "type": "CustomEvent" },
|
|
3563
|
-
{ "name": "stepper:finish", "type": "CustomEvent" }
|
|
3564
|
-
]
|
|
3565
|
-
}
|
|
3566
|
-
},
|
|
3567
|
-
{
|
|
3568
|
-
"name": "wje-tab",
|
|
3569
|
-
"description": "This element represents a tab.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the tab.\n- **afterDraw()** - Sets up event listeners after the component is rendered.\n//\n- **syncAriaLabel()** - Sync aria-label on host based on slotted text when not provided.\n- **setRovingTabIndex(value: _number_)** - Sets the roving tabindex on the internal focusable anchor.\n- **beforeDisconnect()** - Cleans up before the component is disconnected.\n\n### **CSS Properties:**\n - **--wje-tab-text-transform** - The text transformation for the tab (e.g., uppercase, lowercase). _(default: uppercase)_\n- **--wje-tab-font-weight** - The font weight of the tab text. _(default: 500)_\n- **--wje-tab-letter-spacing** - The letter spacing of the tab text. _(default: 0.06em)_\n- **--wje-tab-padding-inline** - The horizontal padding of the tab. _(default: 1rem)_\n- **--wje-tab-padding-top** - The top padding of the tab text. _(default: .75rem)_\n- **--wje-tab-padding-bottom** - The bottom padding of the tab text. _(default: .75rem)_\n- **--wje-tab-color-active** - The text color of the active tab. _(default: var(--wje-color-primary-11))_\n- **--wje-tab-color-hover** - The text color of the tab when hovered. //@fires wje-tab:change - Dispatched when the tab is changed. _(default: var(--wje-color-primary-1))_",
|
|
3570
|
-
"doc-url": "",
|
|
3571
|
-
"attributes": [],
|
|
3572
|
-
"events": [],
|
|
3573
|
-
"js": {
|
|
3574
|
-
"properties": [
|
|
3575
|
-
{
|
|
3576
|
-
"name": "panel",
|
|
3577
|
-
"description": "Retrieves the value of the 'panel' attribute of the element."
|
|
3578
|
-
},
|
|
3579
|
-
{
|
|
3580
|
-
"name": "route",
|
|
3581
|
-
"description": "Retrieves the value of the 'route' attribute.\nIf the 'route' attribute is not set, it returns null."
|
|
3582
|
-
},
|
|
3583
|
-
{
|
|
3584
|
-
"name": "className",
|
|
3585
|
-
"description": "The class name for the component.",
|
|
3586
|
-
"type": "string"
|
|
3587
|
-
},
|
|
3588
|
-
{
|
|
3589
|
-
"name": "last",
|
|
3590
|
-
"description": "Indicates whether this is the last tab.",
|
|
3591
|
-
"type": "boolean"
|
|
3592
|
-
},
|
|
3593
|
-
{ "name": "_hasPanel", "type": "boolean" }
|
|
3594
|
-
],
|
|
3595
|
-
"events": []
|
|
3596
|
-
}
|
|
3597
|
-
},
|
|
3598
|
-
{
|
|
3599
|
-
"name": "wje-row",
|
|
3600
|
-
"description": "This element represents a row in a layout system.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the row.\n\n### **Slots:**\n - _default_ - The default slot for the row.",
|
|
3601
|
-
"doc-url": "",
|
|
3602
|
-
"attributes": [],
|
|
3603
|
-
"slots": [
|
|
3604
|
-
{ "name": "", "description": "The default slot for the row." }
|
|
3605
|
-
],
|
|
3606
|
-
"events": [],
|
|
3607
|
-
"js": {
|
|
3608
|
-
"properties": [
|
|
3609
|
-
{
|
|
3610
|
-
"name": "className",
|
|
3611
|
-
"description": "The class name for the component.",
|
|
3612
|
-
"type": "string"
|
|
3613
|
-
}
|
|
3614
|
-
],
|
|
3615
|
-
"events": []
|
|
3616
|
-
}
|
|
3617
|
-
},
|
|
3618
|
-
{
|
|
3619
|
-
"name": "wje-tab-panel",
|
|
3620
|
-
"description": "This element represents a tab panel.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the tab panel.\n\n### **Slots:**\n - _default_ - The default slot for the tab panel.",
|
|
3621
|
-
"doc-url": "",
|
|
3622
|
-
"attributes": [],
|
|
3623
|
-
"slots": [
|
|
3624
|
-
{ "name": "", "description": "The default slot for the tab panel." }
|
|
3625
|
-
],
|
|
3626
|
-
"events": [],
|
|
3627
|
-
"js": {
|
|
3628
|
-
"properties": [
|
|
3629
|
-
{
|
|
3630
|
-
"name": "className",
|
|
3631
|
-
"description": "The class name for the component.",
|
|
3632
|
-
"type": "string"
|
|
3633
|
-
}
|
|
3560
|
+
"name": "startIndex",
|
|
3561
|
+
"description": "Retrieves the starting index value stored as an attribute.\nIf the attribute 'start-index' exists and is not null, it parses the value as an integer and returns it.\nIf the attribute does not exist, it returns the default value of 0."
|
|
3562
|
+
},
|
|
3563
|
+
{ "name": "active" },
|
|
3564
|
+
{ "name": "done" },
|
|
3565
|
+
{ "name": "className", "type": "string" },
|
|
3566
|
+
{
|
|
3567
|
+
"name": "beforeOpen",
|
|
3568
|
+
"description": "A callback function that is executed before opening a step in a process.\nThis allows for custom behavior or logic to be applied before the step is displayed."
|
|
3569
|
+
},
|
|
3570
|
+
{
|
|
3571
|
+
"name": "afterOpen",
|
|
3572
|
+
"description": "Callback function executed after a step is opened.\nThis function can be overridden to implement custom behavior\nthat should take place immediately after a step is opened."
|
|
3573
|
+
},
|
|
3574
|
+
{ "name": "currentStep", "type": "number" },
|
|
3575
|
+
{ "name": "localizer" },
|
|
3576
|
+
{ "name": "steps", "type": "array" },
|
|
3577
|
+
{ "name": "headerSteps", "type": "array" },
|
|
3578
|
+
{ "name": "_stepperId", "type": "number" }
|
|
3634
3579
|
],
|
|
3635
|
-
"events": [
|
|
3580
|
+
"events": [
|
|
3581
|
+
{ "name": "stepper:next", "type": "CustomEvent" },
|
|
3582
|
+
{ "name": "stepper:prev", "type": "CustomEvent" },
|
|
3583
|
+
{ "name": "stepper:finish", "type": "CustomEvent" }
|
|
3584
|
+
]
|
|
3636
3585
|
}
|
|
3637
3586
|
},
|
|
3638
3587
|
{
|
|
@@ -3669,6 +3618,37 @@
|
|
|
3669
3618
|
"events": []
|
|
3670
3619
|
}
|
|
3671
3620
|
},
|
|
3621
|
+
{
|
|
3622
|
+
"name": "wje-tab",
|
|
3623
|
+
"description": "This element represents a tab.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the tab.\n- **afterDraw()** - Sets up event listeners after the component is rendered.\n//\n- **syncAriaLabel()** - Sync aria-label on host based on slotted text when not provided.\n- **setRovingTabIndex(value: _number_)** - Sets the roving tabindex on the internal focusable anchor.\n- **beforeDisconnect()** - Cleans up before the component is disconnected.\n\n### **CSS Properties:**\n - **--wje-tab-text-transform** - The text transformation for the tab (e.g., uppercase, lowercase). _(default: uppercase)_\n- **--wje-tab-font-weight** - The font weight of the tab text. _(default: 500)_\n- **--wje-tab-letter-spacing** - The letter spacing of the tab text. _(default: 0.06em)_\n- **--wje-tab-padding-inline** - The horizontal padding of the tab. _(default: 1rem)_\n- **--wje-tab-padding-top** - The top padding of the tab text. _(default: .75rem)_\n- **--wje-tab-padding-bottom** - The bottom padding of the tab text. _(default: .75rem)_\n- **--wje-tab-color-active** - The text color of the active tab. _(default: var(--wje-color-primary-11))_\n- **--wje-tab-color-hover** - The text color of the tab when hovered. //@fires wje-tab:change - Dispatched when the tab is changed. _(default: var(--wje-color-primary-1))_",
|
|
3624
|
+
"doc-url": "",
|
|
3625
|
+
"attributes": [],
|
|
3626
|
+
"events": [],
|
|
3627
|
+
"js": {
|
|
3628
|
+
"properties": [
|
|
3629
|
+
{
|
|
3630
|
+
"name": "panel",
|
|
3631
|
+
"description": "Retrieves the value of the 'panel' attribute of the element."
|
|
3632
|
+
},
|
|
3633
|
+
{
|
|
3634
|
+
"name": "route",
|
|
3635
|
+
"description": "Retrieves the value of the 'route' attribute.\nIf the 'route' attribute is not set, it returns null."
|
|
3636
|
+
},
|
|
3637
|
+
{
|
|
3638
|
+
"name": "className",
|
|
3639
|
+
"description": "The class name for the component.",
|
|
3640
|
+
"type": "string"
|
|
3641
|
+
},
|
|
3642
|
+
{
|
|
3643
|
+
"name": "last",
|
|
3644
|
+
"description": "Indicates whether this is the last tab.",
|
|
3645
|
+
"type": "boolean"
|
|
3646
|
+
},
|
|
3647
|
+
{ "name": "_hasPanel", "type": "boolean" }
|
|
3648
|
+
],
|
|
3649
|
+
"events": []
|
|
3650
|
+
}
|
|
3651
|
+
},
|
|
3672
3652
|
{
|
|
3673
3653
|
"name": "wje-textarea",
|
|
3674
3654
|
"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.",
|
|
@@ -3715,6 +3695,26 @@
|
|
|
3715
3695
|
"events": []
|
|
3716
3696
|
}
|
|
3717
3697
|
},
|
|
3698
|
+
{
|
|
3699
|
+
"name": "wje-tab-panel",
|
|
3700
|
+
"description": "This element represents a tab panel.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the tab panel.\n\n### **Slots:**\n - _default_ - The default slot for the tab panel.",
|
|
3701
|
+
"doc-url": "",
|
|
3702
|
+
"attributes": [],
|
|
3703
|
+
"slots": [
|
|
3704
|
+
{ "name": "", "description": "The default slot for the tab panel." }
|
|
3705
|
+
],
|
|
3706
|
+
"events": [],
|
|
3707
|
+
"js": {
|
|
3708
|
+
"properties": [
|
|
3709
|
+
{
|
|
3710
|
+
"name": "className",
|
|
3711
|
+
"description": "The class name for the component.",
|
|
3712
|
+
"type": "string"
|
|
3713
|
+
}
|
|
3714
|
+
],
|
|
3715
|
+
"events": []
|
|
3716
|
+
}
|
|
3717
|
+
},
|
|
3718
3718
|
{
|
|
3719
3719
|
"name": "wje-timeline",
|
|
3720
3720
|
"description": "This element represents a timeline.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _DocumentFragment_** - Draws the component for the timeline.\n- **syncAria()** - Sync ARIA attributes on host.\n\n### **Slots:**\n - _default_ - Slot for the timeline items.\n\n### **CSS Parts:**\n - **native** - The native part of the rating component.\n- **vertical-line** - The vertical line part of the rating component.",
|
|
@@ -3759,39 +3759,28 @@
|
|
|
3759
3759
|
}
|
|
3760
3760
|
},
|
|
3761
3761
|
{
|
|
3762
|
-
"name": "wje-
|
|
3763
|
-
"description": "This element represents a
|
|
3762
|
+
"name": "wje-timeline-item",
|
|
3763
|
+
"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.",
|
|
3764
3764
|
"doc-url": "",
|
|
3765
|
-
"attributes": [
|
|
3766
|
-
{ "name": "checked", "value": { "type": "string" } },
|
|
3767
|
-
{ "name": "disabled", "value": { "type": "string" } },
|
|
3768
|
-
{ "name": "required", "value": { "type": "string" } }
|
|
3769
|
-
],
|
|
3765
|
+
"attributes": [],
|
|
3770
3766
|
"slots": [
|
|
3771
|
-
{
|
|
3767
|
+
{
|
|
3768
|
+
"name": "",
|
|
3769
|
+
"description": "Slot for the content of the timeline item."
|
|
3770
|
+
},
|
|
3771
|
+
{
|
|
3772
|
+
"name": "status",
|
|
3773
|
+
"description": "Slot for the status of the timeline item."
|
|
3774
|
+
}
|
|
3772
3775
|
],
|
|
3773
3776
|
"events": [],
|
|
3774
3777
|
"js": {
|
|
3775
3778
|
"properties": [
|
|
3776
3779
|
{
|
|
3777
|
-
"name": "
|
|
3778
|
-
"description": "
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
"name": "customErrorDisplay",
|
|
3782
|
-
"description": "Getter for the customErrorDisplay attribute."
|
|
3783
|
-
},
|
|
3784
|
-
{
|
|
3785
|
-
"name": "validateOnChange",
|
|
3786
|
-
"description": "Getter for the validateOnChange attribute."
|
|
3787
|
-
},
|
|
3788
|
-
{
|
|
3789
|
-
"name": "defaultValue",
|
|
3790
|
-
"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."
|
|
3791
|
-
},
|
|
3792
|
-
{ "name": "checked", "description": "Get checked attribute." },
|
|
3793
|
-
{ "name": "invalid", "type": "boolean" },
|
|
3794
|
-
{ "name": "pristine", "type": "boolean" }
|
|
3780
|
+
"name": "className",
|
|
3781
|
+
"description": "Returns the class name of the tab.",
|
|
3782
|
+
"type": "string"
|
|
3783
|
+
}
|
|
3795
3784
|
],
|
|
3796
3785
|
"events": []
|
|
3797
3786
|
}
|
|
@@ -3950,73 +3939,39 @@
|
|
|
3950
3939
|
}
|
|
3951
3940
|
},
|
|
3952
3941
|
{
|
|
3953
|
-
"name": "wje-
|
|
3954
|
-
"description": "This element represents a
|
|
3942
|
+
"name": "wje-toggle",
|
|
3943
|
+
"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.",
|
|
3955
3944
|
"doc-url": "",
|
|
3956
3945
|
"attributes": [
|
|
3957
|
-
{ "name": "
|
|
3958
|
-
{ "name": "
|
|
3959
|
-
{ "name": "
|
|
3946
|
+
{ "name": "checked", "value": { "type": "string" } },
|
|
3947
|
+
{ "name": "disabled", "value": { "type": "string" } },
|
|
3948
|
+
{ "name": "required", "value": { "type": "string" } }
|
|
3960
3949
|
],
|
|
3961
3950
|
"slots": [
|
|
3962
|
-
{
|
|
3963
|
-
"name": "",
|
|
3964
|
-
"description": "The default slot for the toolbar action."
|
|
3965
|
-
}
|
|
3951
|
+
{ "name": "", "description": "The default slot for the toggle." }
|
|
3966
3952
|
],
|
|
3967
3953
|
"events": [],
|
|
3968
3954
|
"js": {
|
|
3969
3955
|
"properties": [
|
|
3970
3956
|
{
|
|
3971
|
-
"name": "
|
|
3972
|
-
"description": "
|
|
3973
|
-
"type": "string"
|
|
3957
|
+
"name": "value",
|
|
3958
|
+
"description": "Getter for the value attribute."
|
|
3974
3959
|
},
|
|
3975
3960
|
{
|
|
3976
|
-
"name": "
|
|
3977
|
-
"description": "
|
|
3961
|
+
"name": "customErrorDisplay",
|
|
3962
|
+
"description": "Getter for the customErrorDisplay attribute."
|
|
3978
3963
|
},
|
|
3979
3964
|
{
|
|
3980
|
-
"name": "
|
|
3981
|
-
"description": "
|
|
3965
|
+
"name": "validateOnChange",
|
|
3966
|
+
"description": "Getter for the validateOnChange attribute."
|
|
3982
3967
|
},
|
|
3983
3968
|
{
|
|
3984
|
-
"name": "
|
|
3985
|
-
"description": "
|
|
3969
|
+
"name": "defaultValue",
|
|
3970
|
+
"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."
|
|
3986
3971
|
},
|
|
3987
|
-
{ "name": "
|
|
3988
|
-
{ "name": "
|
|
3989
|
-
{ "name": "
|
|
3990
|
-
{ "name": "_overflowRetryFrame", "type": "null" },
|
|
3991
|
-
{ "name": "_applyOverflowFrame", "type": "null" },
|
|
3992
|
-
{ "name": "_observedDropdown", "type": "null" }
|
|
3993
|
-
],
|
|
3994
|
-
"events": []
|
|
3995
|
-
}
|
|
3996
|
-
},
|
|
3997
|
-
{
|
|
3998
|
-
"name": "wje-timeline-item",
|
|
3999
|
-
"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.",
|
|
4000
|
-
"doc-url": "",
|
|
4001
|
-
"attributes": [],
|
|
4002
|
-
"slots": [
|
|
4003
|
-
{
|
|
4004
|
-
"name": "",
|
|
4005
|
-
"description": "Slot for the content of the timeline item."
|
|
4006
|
-
},
|
|
4007
|
-
{
|
|
4008
|
-
"name": "status",
|
|
4009
|
-
"description": "Slot for the status of the timeline item."
|
|
4010
|
-
}
|
|
4011
|
-
],
|
|
4012
|
-
"events": [],
|
|
4013
|
-
"js": {
|
|
4014
|
-
"properties": [
|
|
4015
|
-
{
|
|
4016
|
-
"name": "className",
|
|
4017
|
-
"description": "Returns the class name of the tab.",
|
|
4018
|
-
"type": "string"
|
|
4019
|
-
}
|
|
3972
|
+
{ "name": "checked", "description": "Get checked attribute." },
|
|
3973
|
+
{ "name": "invalid", "type": "boolean" },
|
|
3974
|
+
{ "name": "pristine", "type": "boolean" }
|
|
4020
3975
|
],
|
|
4021
3976
|
"events": []
|
|
4022
3977
|
}
|
|
@@ -4074,32 +4029,46 @@
|
|
|
4074
4029
|
}
|
|
4075
4030
|
},
|
|
4076
4031
|
{
|
|
4077
|
-
"name": "wje-
|
|
4078
|
-
"description": "This element
|
|
4032
|
+
"name": "wje-toolbar-action",
|
|
4033
|
+
"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.",
|
|
4079
4034
|
"doc-url": "",
|
|
4080
|
-
"attributes": [
|
|
4035
|
+
"attributes": [
|
|
4036
|
+
{ "name": "breakpoint", "value": { "type": "string" } },
|
|
4037
|
+
{ "name": "max-items", "value": { "type": "string" } },
|
|
4038
|
+
{ "name": "visible-items", "value": { "type": "string" } }
|
|
4039
|
+
],
|
|
4081
4040
|
"slots": [
|
|
4082
4041
|
{
|
|
4083
4042
|
"name": "",
|
|
4084
|
-
"description": "The default slot
|
|
4043
|
+
"description": "The default slot for the toolbar action."
|
|
4085
4044
|
}
|
|
4086
4045
|
],
|
|
4087
4046
|
"events": [],
|
|
4088
4047
|
"js": {
|
|
4089
4048
|
"properties": [
|
|
4090
|
-
{
|
|
4091
|
-
"name": "selection",
|
|
4092
|
-
"description": "Gets the current selection mode for the element.\nIf no selection is explicitly set, it defaults to 'single'."
|
|
4093
|
-
},
|
|
4094
4049
|
{
|
|
4095
4050
|
"name": "className",
|
|
4096
4051
|
"description": "The class name for the component.",
|
|
4097
4052
|
"type": "string"
|
|
4098
4053
|
},
|
|
4099
4054
|
{
|
|
4100
|
-
"name": "
|
|
4101
|
-
"description": "
|
|
4102
|
-
}
|
|
4055
|
+
"name": "breakpoint",
|
|
4056
|
+
"description": "Gets the collapse breakpoint token or value."
|
|
4057
|
+
},
|
|
4058
|
+
{
|
|
4059
|
+
"name": "maxItems",
|
|
4060
|
+
"description": "Gets the maximum number of visible actions."
|
|
4061
|
+
},
|
|
4062
|
+
{
|
|
4063
|
+
"name": "visibleItems",
|
|
4064
|
+
"description": "Gets the responsive visible action count."
|
|
4065
|
+
},
|
|
4066
|
+
{ "name": "_managedHiddenActions" },
|
|
4067
|
+
{ "name": "_isCollapsedByBreakpoint", "type": "null" },
|
|
4068
|
+
{ "name": "_managedOverflowNodes" },
|
|
4069
|
+
{ "name": "_overflowRetryFrame", "type": "null" },
|
|
4070
|
+
{ "name": "_applyOverflowFrame", "type": "null" },
|
|
4071
|
+
{ "name": "_observedDropdown", "type": "null" }
|
|
4103
4072
|
],
|
|
4104
4073
|
"events": []
|
|
4105
4074
|
}
|
|
@@ -4147,6 +4116,37 @@
|
|
|
4147
4116
|
"events": []
|
|
4148
4117
|
}
|
|
4149
4118
|
},
|
|
4119
|
+
{
|
|
4120
|
+
"name": "wje-tree",
|
|
4121
|
+
"description": "This element visually represents a tree structure, supporting single or multiple selection modes and hierarchy management.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Setup attributes for the Button element.\n- **beforeDraw(): _void_** - A method called before the drawing or rendering process of tree items.\nIt iterates through all `wje-tree-item` elements, updating their selection state\nand managing their expand/collapse icons accordingly.\n- **draw(): _object_** - Draw method for the toast notification.\n- **afterDraw(): _void_** - Called after the draw process of the component is completed.\nTypically used to add event listeners or perform operations\nthat are dependent on the component's drawn state.\n- **syncAria()** - Syncs ARIA attributes on the host element.\n- **getAllItems(): _Array<Element>_** - Retrieves all items that match the selector 'wje-tree-item' within the current context.\n- **getExpandCollapseIcon(item: _HTMLElement_, status: _string_): _void_** - Retrieves and appends an expand/collapse icon to a given item based on the provided status.\n- **updateCheckboxState(changedItem: _object_, isInitialSync: _boolean_): _void_** - Updates the state of a checkbox, syncing the state both upwards to parent elements\nand downwards to child elements as necessary.\n- **updateParentState(item: _object_): _void_** - Updates the state of the parent item based on the state of its child items.\nRecursively propagates changes up to all parent items to reflect the selection\nor indeterminate state accurately.\n- **propagateStateUpwards(item: _HTMLElement_): _void_** - Propagates the state changes of an item upwards through its ancestors in the hierarchy.\nCalls the `updateParentState` method for each parent element until no parent exists.\n- **propagateStateDownwards(item: _object_): _void_** - Propagates the selected state of an item to its children recursively. Depending on the `isInitialSync` flag,\nit also determines how the state should be applied to the child items and updates the parent state if needed.\n\n### **Slots:**\n - _default_ - The default slot to place `wje-tree-item` child components.\n\n### **CSS Parts:**\n - **native** - The native container part of the tree.",
|
|
4122
|
+
"doc-url": "",
|
|
4123
|
+
"attributes": [],
|
|
4124
|
+
"slots": [
|
|
4125
|
+
{
|
|
4126
|
+
"name": "",
|
|
4127
|
+
"description": "The default slot to place `wje-tree-item` child components."
|
|
4128
|
+
}
|
|
4129
|
+
],
|
|
4130
|
+
"events": [],
|
|
4131
|
+
"js": {
|
|
4132
|
+
"properties": [
|
|
4133
|
+
{
|
|
4134
|
+
"name": "selection",
|
|
4135
|
+
"description": "Gets the current selection mode for the element.\nIf no selection is explicitly set, it defaults to 'single'."
|
|
4136
|
+
},
|
|
4137
|
+
{
|
|
4138
|
+
"name": "className",
|
|
4139
|
+
"description": "The class name for the component.",
|
|
4140
|
+
"type": "string"
|
|
4141
|
+
},
|
|
4142
|
+
{
|
|
4143
|
+
"name": "handleClick",
|
|
4144
|
+
"description": "Handles the click event triggered by the user interaction.\nIdentifies the closest tree item element to the event target and sets it\nas the selected item. Ensures that only one item is selected at a time, resetting\nthe selection state for all other items."
|
|
4145
|
+
}
|
|
4146
|
+
],
|
|
4147
|
+
"events": []
|
|
4148
|
+
}
|
|
4149
|
+
},
|
|
4150
4150
|
{
|
|
4151
4151
|
"name": "wje-visually-hidden",
|
|
4152
4152
|
"description": "This element represents a visually hidden element.\n---\n\n\n### **Methods:**\n - **setupAttributes()** - Sets up the attributes for the component.\n- **draw(): _object_** - Draws the component for the visually hidden element.\n\n### **Slots:**\n - _default_ - The default slot for the visually hidden element.",
|