@luzmo/lucero 1.0.1-alpha.4 → 1.0.1-alpha.42
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/components/accordion/index.cjs +6 -6
- package/components/accordion/index.js +14 -13
- package/components/action-bar/index.cjs +4 -4
- package/components/action-bar/index.js +20 -18
- package/components/action-button/index.cjs +3 -3
- package/components/action-button/index.js +7 -6
- package/components/action-group/index.cjs +1 -1
- package/components/action-group/index.js +2 -2
- package/components/{action-group-DBImibFn.js → action-group-Bwt9w8Vh.js} +10 -9
- package/components/action-group-D917z7XF.cjs +20 -0
- package/components/action-menu/index.cjs +9 -9
- package/components/action-menu/index.js +10 -10
- package/components/avatar/index.cjs +3 -3
- package/components/avatar/index.js +7 -7
- package/components/base-5nDSSNeT.cjs +18 -0
- package/components/base-CdYjmV_8.js +96 -0
- package/components/button/button-base.d.ts +16 -0
- package/components/button/button.d.ts +38 -2
- package/components/button/index.cjs +2 -2
- package/components/button/index.js +84 -50
- package/components/{button-base-DbkDzb71.js → button-base-B_SkfcFn.js} +54 -39
- package/components/button-base-BdzHcHRs.cjs +25 -0
- package/components/button-group/index.cjs +1 -1
- package/components/button-group/index.js +11 -9
- package/components/calendar/index.cjs +96 -1
- package/components/calendar/index.js +538 -6
- package/components/chat-message/chat-message.d.ts +127 -0
- package/components/chat-message/index.cjs +80 -0
- package/components/chat-message/index.d.ts +8 -0
- package/components/chat-message/index.js +254 -0
- package/components/chat-message-group/chat-message-group.d.ts +50 -0
- package/components/chat-message-group/index.cjs +24 -0
- package/components/chat-message-group/index.d.ts +7 -0
- package/components/chat-message-group/index.js +144 -0
- package/components/checkbox/index.cjs +4 -4
- package/components/checkbox/index.js +12 -10
- package/components/{checkbox-mixin-Do7EgtpQ.js → checkbox-mixin-DUbGDm7f.js} +9 -9
- package/components/{checkbox-mixin-BDN0dBtS.cjs → checkbox-mixin-DhN8CIXY.cjs} +3 -3
- package/components/close-button-CGZxCNlI.js +52 -0
- package/components/close-button-Decm0Qbb.cjs +18 -0
- package/components/color-area/index.cjs +5 -5
- package/components/color-area/index.js +12 -11
- package/components/color-controller-7sNUf7SP.js +386 -0
- package/components/color-controller-ChN-A9Ft.cjs +18 -0
- package/components/color-field/color-field.d.ts +8 -0
- package/components/color-field/index.cjs +4 -4
- package/components/color-field/index.js +38 -25
- package/components/color-handle/index.cjs +2 -2
- package/components/color-handle/index.js +8 -6
- package/components/color-loupe/index.cjs +1 -1
- package/components/color-loupe/index.js +2 -2
- package/components/color-loupe-CIEFp7ln.cjs +56 -0
- package/components/{color-loupe-CmMsXbjT.js → color-loupe-CLPX6xVb.js} +6 -4
- package/components/color-menu/index.cjs +8 -8
- package/components/color-menu/index.js +46 -46
- package/components/color-palette/color-palette.d.ts +6 -2
- package/components/color-palette/index.cjs +1 -1
- package/components/color-palette/index.js +35 -34
- package/components/color-palette-group/color-palette-group.d.ts +79 -0
- package/components/color-palette-group/index.cjs +28 -0
- package/components/color-palette-group/index.d.ts +7 -0
- package/components/color-palette-group/index.js +206 -0
- package/components/color-picker/color-picker.d.ts +31 -2
- package/components/color-picker/index.cjs +6 -5
- package/components/color-picker/index.js +16 -12
- package/components/color-slider/index.cjs +40 -1
- package/components/color-slider/index.js +452 -6
- package/components/date-time-picker/index.cjs +16 -16
- package/components/date-time-picker/index.js +105 -106
- package/components/{dependency-manger-CEXvGQUV.js → dependency-manger-CO-VPlqq.js} +4 -4
- package/components/{dependency-manger-C5HCkMMB.cjs → dependency-manger-uthev62E.cjs} +1 -1
- package/components/divider/index.cjs +1 -1
- package/components/divider/index.js +11 -9
- package/components/field-group/index.cjs +1 -1
- package/components/field-group/index.js +2 -2
- package/components/field-group-BYHNJmv0.cjs +23 -0
- package/components/{field-group-DXfBWrkO.js → field-group-CHmw159R.js} +7 -5
- package/components/field-label/index.cjs +1 -1
- package/components/field-label/index.js +2 -2
- package/components/{field-label-CZ2zzChK.js → field-label-Cy3xMWZ-.js} +9 -8
- package/components/field-label-DZoeqJJX.cjs +25 -0
- package/components/{focus-visible-DBlJGoEW.js → focus-visible-BvScGDCE.js} +20 -20
- package/components/focus-visible-D4BXb5RB.cjs +18 -0
- package/components/{focusable-BxtpnzWp.js → focusable-BjvsvVam.js} +3 -2
- package/components/focusable-CbVKgGfS.cjs +18 -0
- package/components/icon/index.cjs +1 -1
- package/components/icon/index.js +22 -20
- package/components/index.cjs +205 -1
- package/components/index.js +972 -167
- package/components/infield-button/index.cjs +2 -2
- package/components/infield-button/index.js +6 -5
- package/components/label/index.cjs +1 -1
- package/components/label/index.js +7 -5
- package/components/{language-resolution-8yZa5r_P.js → language-resolution-B-wjV5bb.js} +9 -8
- package/components/{directive-C7oCP5Bh.cjs → language-resolution-EUER43cg.cjs} +1 -5
- package/components/like-anchor-B2EqJPdw.cjs +32 -0
- package/components/{like-anchor-Bvn_vLQ8.js → like-anchor-CgqCU210.js} +23 -22
- package/components/{manage-help-text-DhgARkZX.cjs → manage-help-text-Bat9yGvF.cjs} +3 -3
- package/components/{manage-help-text-syYnjKGL.js → manage-help-text-C9sCHK3R.js} +8 -8
- package/components/menu/index.cjs +38 -13
- package/components/menu/index.js +138 -105
- package/components/menu/menu-item.d.ts +8 -1
- package/components/multi-language-field/index.cjs +2 -2
- package/components/multi-language-field/index.js +9 -7
- package/components/number-field/index.cjs +5 -5
- package/components/number-field/index.js +122 -85
- package/components/number-field/number-field.d.ts +145 -0
- package/components/observe-slot-presence-CNltc0C0.cjs +18 -0
- package/components/{observe-slot-presence-CmVi0zTc.js → observe-slot-presence-DFi6GE3H.js} +1 -1
- package/components/observe-slot-text-CBMHpuIK.cjs +18 -0
- package/components/{observe-slot-text-BPfIQQtz.js → observe-slot-text-DorVpCL4.js} +14 -15
- package/components/options/index.cjs +26 -58
- package/components/options/index.js +205 -849
- package/components/overlay/index.cjs +6 -6
- package/components/overlay/index.js +31 -32
- package/components/overlay-BhrVS5h7.cjs +47 -0
- package/components/overlay-C-No3oJQ.js +1736 -0
- package/components/{pending-state-CaH1si5b.cjs → pending-state-DQctFHI8.cjs} +2 -2
- package/components/{pending-state-DTX7ggyF.js → pending-state-Dx1u3EXA.js} +2 -2
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +3 -3
- package/components/picker-DxYgh4LR.cjs +123 -0
- package/components/{picker-BmoXv1jt.js → picker-GyeSAxxY.js} +45 -45
- package/components/picker-button/index.cjs +4 -4
- package/components/picker-button/index.js +9 -8
- package/components/{platform-BiXhwqk3.cjs → platform-BJnOJJag.cjs} +1 -1
- package/components/{platform-BM-uMWpX.js → platform-CqwNrovd.js} +12 -12
- package/components/popover/index.cjs +1 -1
- package/components/popover/index.js +2 -2
- package/components/popover-lcZnODPK.cjs +30 -0
- package/components/{popover-DjX0aAnY.js → popover-ucIgjbQs.js} +8 -7
- package/components/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.js +2 -2
- package/components/{progress-circle-DXH9z8-6.js → progress-circle-D5J0ZwY0.js} +8 -7
- package/components/progress-circle-DgMbqrzG.cjs +33 -0
- package/components/prompt-box/index.d.ts +8 -0
- package/components/prompt-box/prompt-box.d.ts +326 -0
- package/components/radio/index.cjs +2 -2
- package/components/radio/index.js +12 -11
- package/components/search/index.cjs +6 -6
- package/components/search/index.js +6 -6
- package/components/select/index.cjs +43 -42
- package/components/select/index.js +142 -126
- package/components/select/select.d.ts +1 -1
- package/components/{base-BjTwmyRF.cjs → sized-mixin-DcvJLFeo.cjs} +1 -5
- package/components/{sized-mixin-D4ACoVUr.js → sized-mixin-cJbo3PKR.js} +5 -5
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +48 -1101
- package/components/{strategies-9indNIEb.js → strategies-Bk97oVn1.js} +15 -50
- package/components/strategies-CNgBb6dM.cjs +18 -0
- package/components/{streaming-listener-CP-JE6Fa.js → streaming-listener-BlWm-XZU.js} +5 -6
- package/components/streaming-listener-D9Wc7skA.cjs +18 -0
- package/components/swatch/index.cjs +7 -7
- package/components/swatch/index.js +18 -17
- package/components/switch/index.cjs +2 -2
- package/components/switch/index.js +6 -5
- package/components/tabs/index.cjs +16 -24
- package/components/tabs/index.js +94 -162
- package/components/tags/index.cjs +5 -5
- package/components/tags/index.js +39 -25
- package/components/tags/tag.d.ts +2 -0
- package/components/tags/tags.d.ts +3 -1
- package/components/text-field/index.cjs +3 -3
- package/components/text-field/index.js +13 -11
- package/components/text-field/text-field.d.ts +1 -0
- package/components/{text-field-BIADXoLC.js → text-field-BHaLKkf1.js} +73 -99
- package/components/text-field-DFP7p8Rv.cjs +81 -0
- package/components/text-field.module-Bp4Mwuvj.js +21 -0
- package/components/text-field.module-eAEqjvZu.cjs +18 -0
- package/components/toast/index.cjs +11 -11
- package/components/toast/index.js +12 -10
- package/components/tooltip/index.cjs +4 -4
- package/components/tooltip/index.js +60 -36
- package/components/tooltip/tooltip.d.ts +12 -1
- package/components/utils.cjs +1 -1
- package/components/utils.js +14 -12
- package/components/voice-recorder-BRq_gEkz.js +210 -0
- package/components/voice-recorder-CAm5iDre.cjs +18 -0
- package/custom-elements.json +1 -1
- package/index.d.ts +4 -1
- package/package.json +84 -6
- package/utils/index.d.ts +1 -0
- package/utils/voice-recorder.d.ts +121 -0
- package/components/NumberFormatter-DewVDY5w.cjs +0 -18
- package/components/NumberFormatter-DgOUVrge.js +0 -136
- package/components/NumberParser-Dik4a0h-.cjs +0 -18
- package/components/NumberParser-ci9J5EKv.js +0 -173
- package/components/action-group-DJGMcRHb.cjs +0 -20
- package/components/async-directive-BX1T1e1_.cjs +0 -22
- package/components/async-directive-BfcqVjDp.js +0 -82
- package/components/base-CBCg3yyw.cjs +0 -40
- package/components/base-D76d76ww.js +0 -26
- package/components/base-WsynuqaS.js +0 -677
- package/components/button-base-XgPLmwP-.cjs +0 -25
- package/components/class-map-Di1D_rCm.cjs +0 -22
- package/components/class-map-NbVXqBU0.js +0 -51
- package/components/clear-button-DoeRUWQ3.js +0 -53
- package/components/clear-button-Qi1pMA5S.cjs +0 -18
- package/components/close-button-BFMBEw3q.cjs +0 -18
- package/components/close-button-BWXdHSx3.js +0 -51
- package/components/color-controller-DTp1juRz.js +0 -3198
- package/components/color-controller-_ZwyhvaU.cjs +0 -18
- package/components/color-loupe-CaA_Lfkk.cjs +0 -56
- package/components/directive-helpers-Cm6gitnu.js +0 -62
- package/components/directive-helpers-DyIRTWwA.cjs +0 -22
- package/components/directive-oAbCiebi.js +0 -44
- package/components/field-group-DkGst3r5.cjs +0 -23
- package/components/field-label-mO1AkUgR.cjs +0 -25
- package/components/flow-D-0MTYCm.js +0 -527
- package/components/flow-DM3dNAKs.cjs +0 -30
- package/components/focus-visible-B0P9aY_G.cjs +0 -18
- package/components/focusable-EbipgXRh.cjs +0 -18
- package/components/if-defined-C9YGdo33.cjs +0 -22
- package/components/if-defined-DOaE2coe.js +0 -27
- package/components/index-A-yOTB_d.js +0 -1490
- package/components/index-BLWuwZXx.cjs +0 -113
- package/components/index-BwxgAdzi.cjs +0 -57
- package/components/index-HjQa8tew.js +0 -1174
- package/components/language-resolution-DJzmyzZq.cjs +0 -18
- package/components/like-anchor-sod1C1fR.cjs +0 -32
- package/components/luzmo-icons-DbwDQtuO.js +0 -229
- package/components/luzmo-icons-DletXGWU.cjs +0 -29
- package/components/mutation-controller-DH7YOCyj.js +0 -52
- package/components/mutation-controller-DkOMCW-c.cjs +0 -22
- package/components/observe-slot-presence-bc9chhsi.cjs +0 -18
- package/components/observe-slot-text-Ceb7SvYT.cjs +0 -18
- package/components/overlay-Cig9r6uU.js +0 -2747
- package/components/overlay-KSKMzzkh.cjs +0 -47
- package/components/picker-DWsBWdPN.cjs +0 -123
- package/components/popover-KFfO0IYL.cjs +0 -30
- package/components/progress-circle-BvRJNuNo.cjs +0 -33
- package/components/query-BL-TJj7K.cjs +0 -22
- package/components/query-D_KR_GUc.js +0 -51
- package/components/query-assigned-elements-DjfhL1cl.js +0 -36
- package/components/query-assigned-elements-DsKsfk7G.cjs +0 -22
- package/components/query-assigned-nodes-BcKWmGzy.cjs +0 -22
- package/components/query-assigned-nodes-C76XVPWY.js +0 -36
- package/components/sized-mixin-CPxE5C96.cjs +0 -18
- package/components/state-D8JEtYqe.cjs +0 -22
- package/components/state-Deh-vKYE.js +0 -29
- package/components/strategies-BACP6MhR.cjs +0 -18
- package/components/streaming-listener-B00MvALi.cjs +0 -18
- package/components/style-map-CeilmSgs.cjs +0 -22
- package/components/style-map-IgqIKvlE.js +0 -53
- package/components/text-field-D5d_Gt0t.cjs +0 -85
- package/components/text-field.module-ColtFhf_.js +0 -21
- package/components/text-field.module-p_VF2tC_.cjs +0 -18
- package/components/unit-input/index.cjs +0 -43
- package/components/unit-input/index.d.ts +0 -7
- package/components/unit-input/index.js +0 -183
- package/components/unit-input/unit-input.d.ts +0 -33
- package/components/when-CDK1Tt5Y.js +0 -28
- package/components/when-CDZyJPvd.cjs +0 -22
|
@@ -15,14 +15,460 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
import {
|
|
19
|
-
|
|
18
|
+
import { TinyColor as d } from "@ctrl/tinycolor";
|
|
19
|
+
import { unsafeCSS as k, html as _ } from "lit";
|
|
20
|
+
import { property as h, query as C } from "lit/decorators.js";
|
|
21
|
+
import { ifDefined as z } from "lit/directives/if-defined.js";
|
|
22
|
+
import { styleMap as H } from "lit/directives/style-map.js";
|
|
23
|
+
import "../color-handle/index.js";
|
|
24
|
+
import { F as P } from "../focusable-BjvsvVam.js";
|
|
25
|
+
import { L as $ } from "../language-resolution-B-wjV5bb.js";
|
|
26
|
+
import { s as R } from "../streaming-listener-BlWm-XZU.js";
|
|
27
|
+
const S = () => {
|
|
20
28
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
21
|
-
const
|
|
22
|
-
|
|
29
|
+
const a = document.createElement("style");
|
|
30
|
+
a.setAttribute("data-luzmo-vars", ""), a.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 10px;--luzmo-icon-size-xs: 12px;--luzmo-icon-size-s: 14px;--luzmo-icon-size-m: 16px;--luzmo-icon-size-l: 18px;--luzmo-icon-size-xl: 20px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(a);
|
|
23
31
|
}
|
|
24
32
|
};
|
|
25
|
-
|
|
33
|
+
S();
|
|
34
|
+
const v = /^hs[v|l]a?\s?\((\d{1,3}\.?\d*?),?\s?(\d{1,3})/, y = /(^hs[v|l]a?\s?\()\d{1,3}\.?\d*?(,?\s?)\d{1,3}/, x = /(^hs[v|l]a?\()\d{1,3}/, b = (a, o) => o ? a.toHexString() : a.toHex();
|
|
35
|
+
class E {
|
|
36
|
+
constructor(o, {
|
|
37
|
+
applyColorToState: t,
|
|
38
|
+
extractColorFromState: r,
|
|
39
|
+
maintains: l
|
|
40
|
+
}) {
|
|
41
|
+
this.maintains = "hue", this._hue = 0, this._opacity = 1, this.getColorProcesses = {
|
|
42
|
+
rgb: (e, i) => i ? e.toRgbString() : e.toRgb(),
|
|
43
|
+
prgb: (e, i) => i ? e.toPercentageRgbString() : e.toPercentageRgb(),
|
|
44
|
+
hex8: (e, i) => i ? e.toHex8String() : e.toHex8(),
|
|
45
|
+
name: (e) => e.toName() || e.toRgbString(),
|
|
46
|
+
hsl: (e, i) => {
|
|
47
|
+
if (this.maintains === "hue") {
|
|
48
|
+
if (i)
|
|
49
|
+
return e.toHslString().replace(x, `$1${this.hue}`);
|
|
50
|
+
const { s: u, l: g, a: f } = e.toHsl();
|
|
51
|
+
return { h: this.hue, s: u, l: g, a: f };
|
|
52
|
+
}
|
|
53
|
+
if (i)
|
|
54
|
+
return e.toHslString().replace(
|
|
55
|
+
y,
|
|
56
|
+
`$1${this.hue}$2${this.saturation}`
|
|
57
|
+
);
|
|
58
|
+
const { s: c, l: m, a: p } = e.toHsl();
|
|
59
|
+
return { h: this.hue, s: c, l: m, a: p };
|
|
60
|
+
},
|
|
61
|
+
hsv: (e, i) => {
|
|
62
|
+
if (this.maintains === "hue") {
|
|
63
|
+
if (i)
|
|
64
|
+
return e.toHsvString().replace(x, `$1${this.hue}`);
|
|
65
|
+
const { s: u, v: g, a: f } = e.toHsv();
|
|
66
|
+
return { h: this.hue, s: u, v: g, a: f };
|
|
67
|
+
}
|
|
68
|
+
if (i)
|
|
69
|
+
return e.toHsvString().replace(
|
|
70
|
+
y,
|
|
71
|
+
`$1${this.hue}$2${this.saturation}`
|
|
72
|
+
);
|
|
73
|
+
const { s: c, v: m, a: p } = e.toHsv();
|
|
74
|
+
return { h: this.hue, s: c, v: m, a: p };
|
|
75
|
+
},
|
|
76
|
+
hex: b,
|
|
77
|
+
hex3: b,
|
|
78
|
+
hex4: b,
|
|
79
|
+
hex6: b
|
|
80
|
+
}, this._color = new d({ h: 0, s: 1, v: 1 }), this._previousColor = new d({ h: 0, s: 1, v: 1 }), this._format = {
|
|
81
|
+
format: "",
|
|
82
|
+
isString: !1
|
|
83
|
+
}, this.host = o, this.applyColorToState = t, this.extractColorFromState = r, this.maintains = l || this.maintains;
|
|
84
|
+
}
|
|
85
|
+
setColorProcess(o, t, r, l) {
|
|
86
|
+
this.maintains === "hue" ? this.setColorMaintainHue(o, t, r, l) : this.maintains === "saturation" && this.setColorMaintainSaturation(
|
|
87
|
+
o,
|
|
88
|
+
t,
|
|
89
|
+
r,
|
|
90
|
+
l
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
setColorMaintainHue(o, t, r, l) {
|
|
94
|
+
const { h: e, s: i, v: c, a: m } = this._color.toHsv();
|
|
95
|
+
let p;
|
|
96
|
+
if (l && r.startsWith("hs")) {
|
|
97
|
+
const u = v.exec(t);
|
|
98
|
+
if (u !== null) {
|
|
99
|
+
const [, g] = u;
|
|
100
|
+
p = Number(g);
|
|
101
|
+
}
|
|
102
|
+
} else if (!l && r.startsWith("hs")) {
|
|
103
|
+
const u = o.originalInput;
|
|
104
|
+
p = Object.values(u)[0];
|
|
105
|
+
}
|
|
106
|
+
this.hue = p || e, this.opacity = m ?? 1, this.applyColorToState({ h: e, s: i, v: c, a: m });
|
|
107
|
+
}
|
|
108
|
+
setColorMaintainSaturation(o, t, r, l) {
|
|
109
|
+
const { a: e } = this._color.toHsv();
|
|
110
|
+
if (l && r.startsWith("hs")) {
|
|
111
|
+
const i = v.exec(t);
|
|
112
|
+
if (i !== null) {
|
|
113
|
+
const [, c, m] = i;
|
|
114
|
+
this.hue = Number(c), this.saturation = Number(m);
|
|
115
|
+
}
|
|
116
|
+
} else if (!l && r.startsWith("hs")) {
|
|
117
|
+
const i = o.originalInput, c = Object.values(i);
|
|
118
|
+
this.hue = c[0], this.saturation = c[1];
|
|
119
|
+
} else {
|
|
120
|
+
const { h: i } = o.toHsv();
|
|
121
|
+
this.hue = i;
|
|
122
|
+
}
|
|
123
|
+
this.opacity = e ?? 1, this.applyColorToState(o.toHsv());
|
|
124
|
+
}
|
|
125
|
+
applyColorFromState() {
|
|
126
|
+
this._color = new d(this.extractColorFromState(this));
|
|
127
|
+
}
|
|
128
|
+
get hue() {
|
|
129
|
+
return this._hue;
|
|
130
|
+
}
|
|
131
|
+
set hue(o) {
|
|
132
|
+
const t = Math.min(360, Math.max(0, o));
|
|
133
|
+
if (t === this.hue)
|
|
134
|
+
return;
|
|
135
|
+
const r = this.hue, { s: l, v: e, a: i } = this._color.toHsv();
|
|
136
|
+
this._color = new d({ h: t, s: l, v: e, a: i }), this._hue = t, this.host.requestUpdate("hue", r);
|
|
137
|
+
}
|
|
138
|
+
get opacity() {
|
|
139
|
+
return this._opacity;
|
|
140
|
+
}
|
|
141
|
+
set opacity(o) {
|
|
142
|
+
const t = Math.min(1, Math.max(0, o));
|
|
143
|
+
if (t === this.opacity)
|
|
144
|
+
return;
|
|
145
|
+
const r = this.opacity, { h: l, s: e, v: i } = this._color.toHsv();
|
|
146
|
+
this._color = new d({ h: l, s: e, v: i, a: t }), this._opacity = t, this.host.requestUpdate("opacity", r);
|
|
147
|
+
}
|
|
148
|
+
/* c8 ignore next 3 */
|
|
149
|
+
get value() {
|
|
150
|
+
return this.color;
|
|
151
|
+
}
|
|
152
|
+
get color() {
|
|
153
|
+
return this.getColorProcesses[this._format.format || "hex"](
|
|
154
|
+
this._color,
|
|
155
|
+
this._format.isString
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
set color(o) {
|
|
159
|
+
if (o === this.color)
|
|
160
|
+
return;
|
|
161
|
+
const t = this._color;
|
|
162
|
+
this._color = new d(o);
|
|
163
|
+
const r = this._color.format;
|
|
164
|
+
let l = typeof o == "string" || o instanceof String;
|
|
165
|
+
r.startsWith("hex") && (l = o.startsWith("#")), this._format = {
|
|
166
|
+
format: r,
|
|
167
|
+
isString: l
|
|
168
|
+
}, this.setColorProcess(this._color, o, r, l), this.host.requestUpdate("color", t);
|
|
169
|
+
}
|
|
170
|
+
getColor(o) {
|
|
171
|
+
const t = {
|
|
172
|
+
hsl: "toHsl"
|
|
173
|
+
};
|
|
174
|
+
return this._color[t[o]]();
|
|
175
|
+
}
|
|
176
|
+
setColor(o) {
|
|
177
|
+
this._color = o;
|
|
178
|
+
const t = typeof this._color.originalInput == "string" || this._color.originalInput instanceof String;
|
|
179
|
+
this.setColorProcess(this._color, o, this._color.format, t);
|
|
180
|
+
}
|
|
181
|
+
getHslString() {
|
|
182
|
+
return this._color.toHslString();
|
|
183
|
+
}
|
|
184
|
+
savePreviousColor() {
|
|
185
|
+
this._previousColor = this._color.clone();
|
|
186
|
+
}
|
|
187
|
+
restorePreviousColor() {
|
|
188
|
+
this.setColor(this._previousColor);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
const M = '.opacity-checkerboard{position:absolute;block-size:100%;inline-size:100%;background:repeating-conic-gradient(var(--luzmo-color-loupe-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-color-loupe-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-color-loupe-checkerboard-position, left top)/calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2) calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2)}:host{--luzmo-color-slider-gradient-fallback: rgb(255 0 0) 0%, rgb(255 255 0) 17%, rgb(0 255 0) 33%, rgb(0 255 255) 50%, rgb(0 0 255) 67%, rgb(255 0 255) 83%, rgb(255 0 0) 100%;touch-action:none}:host([vertical]) .handle{inset-block-start:unset;inset-block-end:0}:host([vertical]) .slider{-webkit-appearance:slider-vertical;-moz-appearance:slider-vertical;appearance:slider-vertical}:host(:focus){outline:none}.gradient{overflow:hidden}::slotted(*){width:100%;height:100%}@media (forced-colors: active){:host{--highcontrast-color-slider-border-color: CanvasText;--highcontrast-color-slider-border-color-disabled: GrayText;--highcontrast-color-slider-background-color-disabled: Canvas;forced-color-adjust:none}}:host{--luzmo-color-handle-hitarea-border-radius: var( --luzmo-color-slider-handle-hitarea-border-radius, 0px );min-inline-size:var(--luzmo-color-slider-minimum-length, 80px);inline-size:var(--luzmo-color-slider-length, 192px);block-size:var(--luzmo-color-slider-control-track-width, 24px);-webkit-user-select:none;user-select:none;cursor:default;display:block;position:relative}:host([focused]){z-index:2}:host([disabled]){pointer-events:none}:host([disabled]) .gradient{display:none}:host([vertical]){min-block-size:var(--luzmo-color-slider-vertical-minimum-height, var(--luzmo-color-slider-minimum-length, 80px));block-size:var(--luzmo-color-slider-vertical-height, var(--luzmo-color-slider-length, 192px));min-inline-size:0;inline-size:var(--luzmo-color-slider-vertical-control-track-width, var(--luzmo-color-slider-control-track-height, 24px));display:inline-block}:host([vertical]) .handle{inset-inline-start:50%}.handle{inset-block-start:50%;inset-inline-start:0}.checkerboard{--luzmo-color-slider-border-color-local: var( --highcontrast-color-slider-border-color, var(--luzmo-color-slider-border-color, var(--luzmo-border-color)) )}.checkerboard:before{content:"";z-index:1;box-shadow:inset 0 0 0 var(--luzmo-color-slider-border-width, var(--luzmo-border-width)) var(--luzmo-color-slider-border-color-local);border-radius:var(--luzmo-color-slider-border-rounding, var(--luzmo-border-radius-s));position:absolute;top:0;right:0;bottom:0;left:0}:host([disabled]) .checkerboard{--luzmo-color-slider-border-color-local: var( --highcontrast-color-slider-border-color-disabled, var(--luzmo-color-slider-border-color-disabled, var(--luzmo-dimmed-color)) );background:var(--highcontrast-color-slider-background-color-disabled, var(--luzmo-color-slider-background-color-disabled, var(--luzmo-dimmed-color)))}.checkerboard,.gradient{inline-size:100%;block-size:100%;border-radius:var(--luzmo-color-slider-border-rounding, var(--luzmo-border-radius-s))}.gradient:dir(rtl),:host([dir=rtl]) .gradient{transform:scaleX(-1)}.slider{opacity:0;inline-size:100%;block-size:100%;z-index:0;pointer-events:none;margin:0;position:absolute;inset-block-start:0;inset-inline-start:0}';
|
|
192
|
+
var F = Object.defineProperty, I = Object.getOwnPropertyDescriptor, n = (a, o, t, r) => {
|
|
193
|
+
for (var l = r > 1 ? void 0 : r ? I(o, t) : o, e = a.length - 1, i; e >= 0; e--)
|
|
194
|
+
(i = a[e]) && (l = (r ? i(o, t, l) : i(l)) || l);
|
|
195
|
+
return r && l && F(o, t, l), l;
|
|
196
|
+
};
|
|
197
|
+
class s extends P {
|
|
198
|
+
constructor() {
|
|
199
|
+
super(...arguments), this.disabled = !1, this.focused = !1, this.label = "hue", this.vertical = !1, this.languageResolver = new $(this), this.colorController = new E(this, {
|
|
200
|
+
/* c8 ignore next 3 */
|
|
201
|
+
applyColorToState: () => {
|
|
202
|
+
if (this.mode === "opacity") {
|
|
203
|
+
const o = new d(this.colorController.color);
|
|
204
|
+
this.sliderHandlePosition = 100 * o.getAlpha();
|
|
205
|
+
} else
|
|
206
|
+
this.sliderHandlePosition = 100 * (this.colorController.hue / 360);
|
|
207
|
+
},
|
|
208
|
+
extractColorFromState: (o) => this.mode === "opacity" ? {
|
|
209
|
+
...o.getColor("hsl"),
|
|
210
|
+
a: this.value
|
|
211
|
+
} : {
|
|
212
|
+
...o.getColor("hsl"),
|
|
213
|
+
h: this.value
|
|
214
|
+
},
|
|
215
|
+
maintains: "saturation"
|
|
216
|
+
}), this.sliderHandlePosition = 0, this.step = 1, this.isLTR = !0, this._altered = 0, this._pointerDown = !1;
|
|
217
|
+
}
|
|
218
|
+
static get styles() {
|
|
219
|
+
return [k(M)];
|
|
220
|
+
}
|
|
221
|
+
get value() {
|
|
222
|
+
return this.mode === "opacity" ? this.colorController.opacity : this.colorController.hue;
|
|
223
|
+
}
|
|
224
|
+
set value(o) {
|
|
225
|
+
this.mode === "opacity" ? this.colorController.opacity = o : this.colorController.hue = o;
|
|
226
|
+
}
|
|
227
|
+
get color() {
|
|
228
|
+
return this.colorController.color;
|
|
229
|
+
}
|
|
230
|
+
set color(o) {
|
|
231
|
+
this.colorController.color = o;
|
|
232
|
+
}
|
|
233
|
+
get altered() {
|
|
234
|
+
return this._altered;
|
|
235
|
+
}
|
|
236
|
+
set altered(o) {
|
|
237
|
+
this._altered = o, this.step = Math.max(1, this.altered * 10);
|
|
238
|
+
}
|
|
239
|
+
get focusElement() {
|
|
240
|
+
return this.input;
|
|
241
|
+
}
|
|
242
|
+
handleKeydown(o) {
|
|
243
|
+
const { key: t } = o;
|
|
244
|
+
this.focused = !0, this.altered = [o.shiftKey, o.ctrlKey, o.altKey].filter(
|
|
245
|
+
(i) => !!i
|
|
246
|
+
).length;
|
|
247
|
+
let r = 0;
|
|
248
|
+
switch (t) {
|
|
249
|
+
case "ArrowUp": {
|
|
250
|
+
r = this.step;
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
case "ArrowDown": {
|
|
254
|
+
r = -this.step;
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
case "ArrowLeft": {
|
|
258
|
+
r = this.step * (this.isLTR ? -1 : 1);
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
case "ArrowRight": {
|
|
262
|
+
r = this.step * (this.isLTR ? 1 : -1);
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
default:
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
o.preventDefault();
|
|
269
|
+
const e = 100 / (this.mode === "opacity" ? 100 : 360);
|
|
270
|
+
this.sliderHandlePosition = Math.min(
|
|
271
|
+
100,
|
|
272
|
+
Math.max(0, this.sliderHandlePosition + r * e)
|
|
273
|
+
), this.value = this.mode === "opacity" ? Math.min(1, Math.max(0, this.value + r / 100)) : Math.min(360, Math.max(0, this.value + r)), this.colorController.applyColorFromState(), r !== 0 && (this.dispatchEvent(
|
|
274
|
+
new Event("input", {
|
|
275
|
+
bubbles: !0,
|
|
276
|
+
composed: !0
|
|
277
|
+
})
|
|
278
|
+
), this.dispatchEvent(
|
|
279
|
+
new Event("change", {
|
|
280
|
+
bubbles: !0,
|
|
281
|
+
composed: !0
|
|
282
|
+
})
|
|
283
|
+
));
|
|
284
|
+
}
|
|
285
|
+
handleInput(o) {
|
|
286
|
+
const { valueAsNumber: t } = o.target;
|
|
287
|
+
this.value = t, this.sliderHandlePosition = 100 * (this.mode === "opacity" ? this.value : this.value / 360), this.colorController.applyColorFromState();
|
|
288
|
+
}
|
|
289
|
+
handleChange(o) {
|
|
290
|
+
this.handleInput(o), this.dispatchEvent(
|
|
291
|
+
new Event("change", {
|
|
292
|
+
bubbles: !0,
|
|
293
|
+
composed: !0
|
|
294
|
+
})
|
|
295
|
+
);
|
|
296
|
+
}
|
|
297
|
+
focus(o = {}) {
|
|
298
|
+
super.focus(o), this.forwardFocus();
|
|
299
|
+
}
|
|
300
|
+
forwardFocus() {
|
|
301
|
+
this.input.focus();
|
|
302
|
+
}
|
|
303
|
+
handleFocus() {
|
|
304
|
+
this.focused = !0;
|
|
305
|
+
}
|
|
306
|
+
handleBlur() {
|
|
307
|
+
this._pointerDown || (this.altered = 0, this.focused = !1);
|
|
308
|
+
}
|
|
309
|
+
handlePointerdown(o) {
|
|
310
|
+
if (o.button !== 0) {
|
|
311
|
+
o.preventDefault();
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
this._pointerDown = !0, this.colorController.savePreviousColor(), this.boundingClientRect = this.getBoundingClientRect(), o.target.setPointerCapture(o.pointerId), o.pointerType === "mouse" && (this.focused = !0);
|
|
315
|
+
}
|
|
316
|
+
handlePointermove(o) {
|
|
317
|
+
this.sliderHandlePosition = this.calculateHandlePosition(o), this.value = (this.mode === "opacity" ? 1 : 360) * (this.sliderHandlePosition / 100), this.colorController.applyColorFromState(), this.dispatchEvent(
|
|
318
|
+
new Event("input", {
|
|
319
|
+
bubbles: !0,
|
|
320
|
+
composed: !0,
|
|
321
|
+
cancelable: !0
|
|
322
|
+
})
|
|
323
|
+
);
|
|
324
|
+
}
|
|
325
|
+
handlePointerup(o) {
|
|
326
|
+
this._pointerDown = !1, o.target.releasePointerCapture(o.pointerId), this.dispatchEvent(
|
|
327
|
+
new Event("change", {
|
|
328
|
+
bubbles: !0,
|
|
329
|
+
composed: !0,
|
|
330
|
+
cancelable: !0
|
|
331
|
+
})
|
|
332
|
+
) || this.colorController.restorePreviousColor(), this.focus(), o.pointerType === "mouse" && (this.focused = !1);
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Returns the value under the cursor
|
|
336
|
+
* @param: PointerEvent on slider
|
|
337
|
+
* @return: Slider value that correlates to the position under the pointer
|
|
338
|
+
*/
|
|
339
|
+
calculateHandlePosition(o) {
|
|
340
|
+
if (!this.boundingClientRect)
|
|
341
|
+
return this.sliderHandlePosition;
|
|
342
|
+
const t = this.boundingClientRect, r = this.vertical ? t.top : t.left, l = this.vertical ? o.clientY : o.clientX, e = this.vertical ? t.height : t.width, i = Math.max(0, Math.min(1, (l - r) / e));
|
|
343
|
+
return this.vertical || !this.isLTR ? 100 - 100 * i : 100 * i;
|
|
344
|
+
}
|
|
345
|
+
handleGradientPointerdown(o) {
|
|
346
|
+
o.button === 0 && (o.stopPropagation(), o.preventDefault(), this.handle.dispatchEvent(new PointerEvent("pointerdown", o)), this.handlePointermove(o));
|
|
347
|
+
}
|
|
348
|
+
get handlePositionStyles() {
|
|
349
|
+
return `${this.vertical ? "inset-block-end" : "inset-inline-start"}: ${this.sliderHandlePosition}%`;
|
|
350
|
+
}
|
|
351
|
+
get getColorSliderStyle() {
|
|
352
|
+
const o = this.vertical ? "top" : "right";
|
|
353
|
+
if (this.mode === "opacity") {
|
|
354
|
+
const t = new d(this.colorController.color).setAlpha(1).toRgbString();
|
|
355
|
+
return {
|
|
356
|
+
background: `linear-gradient(to ${o}, transparent, ${t})`
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
return {
|
|
360
|
+
background: `linear-gradient(to ${o}, var(--luzmo-color-slider-gradient, var(--luzmo-color-slider-gradient-fallback)))`
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
render() {
|
|
364
|
+
return _`
|
|
365
|
+
<div
|
|
366
|
+
class="opacity-checkerboard checkerboard"
|
|
367
|
+
role="presentation"
|
|
368
|
+
@pointerdown=${this.handleGradientPointerdown}
|
|
369
|
+
>
|
|
370
|
+
<div
|
|
371
|
+
class="gradient"
|
|
372
|
+
role="presentation"
|
|
373
|
+
style=${H(this.getColorSliderStyle)}
|
|
374
|
+
>
|
|
375
|
+
<slot name="gradient"></slot>
|
|
376
|
+
</div>
|
|
377
|
+
</div>
|
|
378
|
+
<luzmo-color-handle
|
|
379
|
+
tabindex=${z(this.focused ? void 0 : "0")}
|
|
380
|
+
@focus=${this.forwardFocus}
|
|
381
|
+
?focused=${this.focused}
|
|
382
|
+
class="handle"
|
|
383
|
+
color=${this.mode === "opacity" ? this.color : "hsl(" + this.value + ", 100%, 50%)"}
|
|
384
|
+
?disabled=${this.disabled}
|
|
385
|
+
style=${this.handlePositionStyles}
|
|
386
|
+
${R({
|
|
387
|
+
start: ["pointerdown", this.handlePointerdown],
|
|
388
|
+
streamInside: ["pointermove", this.handlePointermove],
|
|
389
|
+
end: [
|
|
390
|
+
["pointerup", "pointercancel", "pointerleave"],
|
|
391
|
+
this.handlePointerup
|
|
392
|
+
]
|
|
393
|
+
})}
|
|
394
|
+
></luzmo-color-handle>
|
|
395
|
+
<input
|
|
396
|
+
type="range"
|
|
397
|
+
class="slider"
|
|
398
|
+
min="0"
|
|
399
|
+
max=${this.mode === "opacity" ? "100" : "360"}
|
|
400
|
+
aria-orientation=${z(this.vertical ? "vertical" : void 0)}
|
|
401
|
+
orient=${z(this.vertical ? "vertical" : void 0)}
|
|
402
|
+
step=${this.step}
|
|
403
|
+
aria-label=${this.label}
|
|
404
|
+
.value=${String(
|
|
405
|
+
this.mode === "opacity" ? this.value * 100 : this.value
|
|
406
|
+
)}
|
|
407
|
+
aria-valuetext=${`${new Intl.NumberFormat(
|
|
408
|
+
this.languageResolver.language,
|
|
409
|
+
{
|
|
410
|
+
maximumFractionDigits: 0,
|
|
411
|
+
minimumIntegerDigits: 1,
|
|
412
|
+
style: "unit",
|
|
413
|
+
unit: this.mode === "opacity" ? "percent" : "degree",
|
|
414
|
+
unitDisplay: "narrow"
|
|
415
|
+
}
|
|
416
|
+
).format(this.mode === "opacity" ? this.value * 100 : this.value)}`}
|
|
417
|
+
@input=${this.handleInput}
|
|
418
|
+
@change=${this.handleChange}
|
|
419
|
+
@keydown=${this.handleKeydown}
|
|
420
|
+
/>
|
|
421
|
+
`;
|
|
422
|
+
}
|
|
423
|
+
firstUpdated(o) {
|
|
424
|
+
super.firstUpdated(o), this.boundingClientRect = this.getBoundingClientRect(), this.addEventListener("focus", this.handleFocus), this.addEventListener("blur", this.handleBlur);
|
|
425
|
+
}
|
|
426
|
+
updated(o) {
|
|
427
|
+
o.has("mode") && (this.handle.style.insetInlineStart = "", this.handle.style.insetBlockEnd = "", this.mode === "opacity" && (this.colorController.color = new d(
|
|
428
|
+
this.colorController.color
|
|
429
|
+
).toRgbString(), this.handle.style.insetInlineStart = 100 * this.colorController.opacity + "%"));
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
n([
|
|
433
|
+
h({ type: String, reflect: !0 })
|
|
434
|
+
], s.prototype, "dir", 2);
|
|
435
|
+
n([
|
|
436
|
+
h({ type: String, reflect: !0 })
|
|
437
|
+
], s.prototype, "mode", 2);
|
|
438
|
+
n([
|
|
439
|
+
h({ type: Boolean, reflect: !0 })
|
|
440
|
+
], s.prototype, "disabled", 2);
|
|
441
|
+
n([
|
|
442
|
+
h({ type: Boolean, reflect: !0 })
|
|
443
|
+
], s.prototype, "focused", 2);
|
|
444
|
+
n([
|
|
445
|
+
C(".handle")
|
|
446
|
+
], s.prototype, "handle", 2);
|
|
447
|
+
n([
|
|
448
|
+
h({ type: String })
|
|
449
|
+
], s.prototype, "label", 2);
|
|
450
|
+
n([
|
|
451
|
+
h({ type: Boolean, reflect: !0 })
|
|
452
|
+
], s.prototype, "vertical", 2);
|
|
453
|
+
n([
|
|
454
|
+
h({ type: Number })
|
|
455
|
+
], s.prototype, "value", 1);
|
|
456
|
+
n([
|
|
457
|
+
h({ type: Number, reflect: !0 })
|
|
458
|
+
], s.prototype, "sliderHandlePosition", 2);
|
|
459
|
+
n([
|
|
460
|
+
h({ type: String })
|
|
461
|
+
], s.prototype, "color", 1);
|
|
462
|
+
n([
|
|
463
|
+
h({ type: Number })
|
|
464
|
+
], s.prototype, "step", 2);
|
|
465
|
+
n([
|
|
466
|
+
h({ type: Boolean, attribute: "is-ltr" })
|
|
467
|
+
], s.prototype, "isLTR", 2);
|
|
468
|
+
n([
|
|
469
|
+
C("input")
|
|
470
|
+
], s.prototype, "input", 2);
|
|
471
|
+
customElements.get("luzmo-color-slider") || customElements.define("luzmo-color-slider", s);
|
|
26
472
|
export {
|
|
27
|
-
|
|
473
|
+
s as LuzmoColorSlider
|
|
28
474
|
};
|