agnosticui-core 2.0.0-alpha.2 → 2.0.0-alpha.21
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/README.md +67 -33
- package/dist/{VueButton.vue_vue_type_script_setup_true_lang-Bq8IPXqd.js → VueButton.vue_vue_type_script_setup_true_lang-D1jGatE9.js} +17 -15
- package/dist/{VueButtonFx.vue_vue_type_script_setup_true_lang-BUudF-lg.js → VueButtonFx.vue_vue_type_script_setup_true_lang-BRrt6Nxs.js} +1 -0
- package/dist/{VueCheckbox.vue_vue_type_script_setup_true_lang-DERDRO2P.js → VueCheckbox.vue_vue_type_script_setup_true_lang-VtQfJ-6f.js} +9 -10
- package/dist/{VueCombobox.vue_vue_type_script_setup_true_lang-C7gDMrYJ.js → VueCombobox.vue_vue_type_script_setup_true_lang-BSTZGX2X.js} +15 -13
- package/dist/VueIcon.vue_vue_type_script_setup_true_lang-C2Sky3bU.js +22 -0
- package/dist/{VueImage.vue_vue_type_script_setup_true_lang-CUwbK3NF.js → VueImage.vue_vue_type_script_setup_true_lang-SddK93SB.js} +23 -17
- package/dist/{VueInput.vue_vue_type_script_setup_true_lang-Dsxo7DuX.js → VueInput.vue_vue_type_script_setup_true_lang-wYdAqg-i.js} +19 -19
- package/dist/{VueMenu.vue_vue_type_script_setup_true_lang-bnn7ochj.js → VueMenu.vue_vue_type_script_setup_true_lang-BXc7397e.js} +5 -4
- package/dist/{VueRadio.vue_vue_type_script_setup_true_lang-DxNhH12d.js → VueRadio.vue_vue_type_script_setup_true_lang-C7Z-sWpa.js} +10 -12
- package/dist/{VueRating.vue_vue_type_script_setup_true_lang-CICncp71.js → VueRating.vue_vue_type_script_setup_true_lang-Bm2nRrqr.js} +11 -9
- package/dist/VueSelectionButton.vue_vue_type_script_setup_true_lang-DJN-Uk6n.js +24 -0
- package/dist/VueSelectionButtonGroup.vue_vue_type_script_setup_true_lang-DwYrIMVO.js +46 -0
- package/dist/VueSelectionCard.vue_vue_type_script_setup_true_lang-DJiyPsXH.js +24 -0
- package/dist/VueSelectionCardGroup.vue_vue_type_script_setup_true_lang-D5CycLY5.js +40 -0
- package/dist/{VueToggle.vue_vue_type_script_setup_true_lang-BxrvAsse.js → VueToggle.vue_vue_type_script_setup_true_lang-DLPCBOqZ.js} +18 -16
- package/dist/components/Alert/core/_Alert.d.ts.map +1 -1
- package/dist/components/Alert/core/_Alert.js +38 -19
- package/dist/components/Button/core/_Button.d.ts +5 -0
- package/dist/components/Button/core/_Button.d.ts.map +1 -1
- package/dist/components/Button/core/_Button.js +147 -65
- package/dist/components/Button/vue/VueButton.js +1 -1
- package/dist/components/Button/vue/VueButton.vue.d.ts +3 -0
- package/dist/components/Button/vue/VueButton.vue.d.ts.map +1 -1
- package/dist/components/Button/vue/index.js +1 -1
- package/dist/components/ButtonFx/vue/VueButtonFx.js +1 -1
- package/dist/components/ButtonFx/vue/index.js +1 -1
- package/dist/components/Card/core/_Card.d.ts +9 -1
- package/dist/components/Card/core/_Card.d.ts.map +1 -1
- package/dist/components/Card/core/_Card.js +83 -29
- package/dist/components/Card/vue/VueCard.js +29 -16
- package/dist/components/Card/vue/VueCard.vue.d.ts +25 -5
- package/dist/components/Card/vue/VueCard.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/core/_Checkbox.d.ts +37 -11
- package/dist/components/Checkbox/core/_Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/core/_Checkbox.js +73 -42
- package/dist/components/Checkbox/vue/VueCheckbox.js +1 -1
- package/dist/components/Checkbox/vue/VueCheckbox.vue.d.ts +3 -3
- package/dist/components/Checkbox/vue/VueCheckbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/vue/index.js +1 -1
- package/dist/components/Combobox/core/_Combobox.d.ts +24 -1
- package/dist/components/Combobox/core/_Combobox.d.ts.map +1 -1
- package/dist/components/Combobox/core/_Combobox.js +141 -92
- package/dist/components/Combobox/vue/VueCombobox.js +1 -1
- package/dist/components/Combobox/vue/index.js +1 -1
- package/dist/components/Fieldset/vue/VueFieldset.vue.d.ts +1 -1
- package/dist/components/Icon/vue/VueIcon.js +1 -1
- package/dist/components/Icon/vue/VueIcon.vue.d.ts.map +1 -1
- package/dist/components/Icon/vue/index.js +1 -1
- package/dist/components/Image/vue/VueImage.js +1 -1
- package/dist/components/Image/vue/VueImage.vue.d.ts.map +1 -1
- package/dist/components/Image/vue/index.js +1 -1
- package/dist/components/Input/core/_Input.d.ts +21 -2
- package/dist/components/Input/core/_Input.d.ts.map +1 -1
- package/dist/components/Input/core/_Input.js +71 -35
- package/dist/components/Input/vue/VueInput.js +1 -1
- package/dist/components/Input/vue/VueInput.vue.d.ts.map +1 -1
- package/dist/components/Input/vue/index.js +1 -1
- package/dist/components/Link/core/_Link.d.ts.map +1 -1
- package/dist/components/Link/core/_Link.js +1 -0
- package/dist/components/Link/vue/VueLink.js +6 -5
- package/dist/components/Link/vue/VueLink.vue.d.ts.map +1 -1
- package/dist/components/Menu/vue/VueMenu.js +1 -1
- package/dist/components/Menu/vue/index.js +1 -1
- package/dist/components/Pagination/core/_Pagination.d.ts +0 -1
- package/dist/components/Pagination/core/_Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/core/_Pagination.js +6 -9
- package/dist/components/Radio/core/_Radio.d.ts +55 -10
- package/dist/components/Radio/core/_Radio.d.ts.map +1 -1
- package/dist/components/Radio/core/_Radio.js +165 -116
- package/dist/components/Radio/vue/VueRadio.js +1 -1
- package/dist/components/Radio/vue/VueRadio.vue.d.ts.map +1 -1
- package/dist/components/Radio/vue/index.js +1 -1
- package/dist/components/Rating/core/_Rating.d.ts +23 -2
- package/dist/components/Rating/core/_Rating.d.ts.map +1 -1
- package/dist/components/Rating/core/_Rating.js +97 -64
- package/dist/components/Rating/vue/VueRating.js +1 -1
- package/dist/components/Rating/vue/VueRating.vue.d.ts +2 -0
- package/dist/components/Rating/vue/VueRating.vue.d.ts.map +1 -1
- package/dist/components/Rating/vue/index.js +1 -1
- package/dist/components/Select/core/_Select.d.ts +20 -2
- package/dist/components/Select/core/_Select.d.ts.map +1 -1
- package/dist/components/Select/core/_Select.js +99 -69
- package/dist/components/SelectionButton/core/SelectionButton.d.ts +9 -0
- package/dist/components/SelectionButton/core/SelectionButton.d.ts.map +1 -0
- package/dist/components/SelectionButton/core/SelectionButton.js +5 -0
- package/dist/components/SelectionButton/core/_SelectionButton.d.ts +47 -0
- package/dist/components/SelectionButton/core/_SelectionButton.d.ts.map +1 -0
- package/dist/components/SelectionButton/core/_SelectionButton.js +474 -0
- package/dist/components/SelectionButton/react/ReactSelectionButton.d.ts +9 -0
- package/dist/components/SelectionButton/react/ReactSelectionButton.d.ts.map +1 -0
- package/dist/components/SelectionButton/react/ReactSelectionButton.js +12 -0
- package/dist/components/SelectionButton/react/index.d.ts +3 -0
- package/dist/components/SelectionButton/react/index.d.ts.map +1 -0
- package/dist/components/SelectionButton/react/index.js +4 -0
- package/dist/components/SelectionButton/vue/VueSelectionButton.js +4 -0
- package/dist/components/SelectionButton/vue/VueSelectionButton.vue.d.ts +55 -0
- package/dist/components/SelectionButton/vue/VueSelectionButton.vue.d.ts.map +1 -0
- package/dist/components/SelectionButton/vue/index.d.ts +6 -0
- package/dist/components/SelectionButton/vue/index.d.ts.map +1 -0
- package/dist/components/SelectionButton/vue/index.js +4 -0
- package/dist/components/SelectionButtonGroup/core/SelectionButtonGroup.d.ts +9 -0
- package/dist/components/SelectionButtonGroup/core/SelectionButtonGroup.d.ts.map +1 -0
- package/dist/components/SelectionButtonGroup/core/SelectionButtonGroup.js +5 -0
- package/dist/components/SelectionButtonGroup/core/_SelectionButtonGroup.d.ts +87 -0
- package/dist/components/SelectionButtonGroup/core/_SelectionButtonGroup.d.ts.map +1 -0
- package/dist/components/SelectionButtonGroup/core/_SelectionButtonGroup.js +235 -0
- package/dist/components/SelectionButtonGroup/react/ReactSelectionButtonGroup.d.ts +13 -0
- package/dist/components/SelectionButtonGroup/react/ReactSelectionButtonGroup.d.ts.map +1 -0
- package/dist/components/SelectionButtonGroup/react/ReactSelectionButtonGroup.js +15 -0
- package/dist/components/SelectionButtonGroup/react/index.d.ts +3 -0
- package/dist/components/SelectionButtonGroup/react/index.d.ts.map +1 -0
- package/dist/components/SelectionButtonGroup/react/index.js +4 -0
- package/dist/components/SelectionButtonGroup/vue/VueSelectionButtonGroup.js +4 -0
- package/dist/components/SelectionButtonGroup/vue/VueSelectionButtonGroup.vue.d.ts +101 -0
- package/dist/components/SelectionButtonGroup/vue/VueSelectionButtonGroup.vue.d.ts.map +1 -0
- package/dist/components/SelectionButtonGroup/vue/index.d.ts +6 -0
- package/dist/components/SelectionButtonGroup/vue/index.d.ts.map +1 -0
- package/dist/components/SelectionButtonGroup/vue/index.js +4 -0
- package/dist/components/SelectionCard/core/SelectionCard.d.ts +9 -0
- package/dist/components/SelectionCard/core/SelectionCard.d.ts.map +1 -0
- package/dist/components/SelectionCard/core/SelectionCard.js +5 -0
- package/dist/components/SelectionCard/core/_SelectionCard.d.ts +39 -0
- package/dist/components/SelectionCard/core/_SelectionCard.d.ts.map +1 -0
- package/dist/components/SelectionCard/core/_SelectionCard.js +318 -0
- package/dist/components/SelectionCard/react/ReactSelectionCard.d.ts +9 -0
- package/dist/components/SelectionCard/react/ReactSelectionCard.d.ts.map +1 -0
- package/dist/components/SelectionCard/react/ReactSelectionCard.js +12 -0
- package/dist/components/SelectionCard/react/index.d.ts +3 -0
- package/dist/components/SelectionCard/react/index.d.ts.map +1 -0
- package/dist/components/SelectionCard/react/index.js +4 -0
- package/dist/components/SelectionCard/vue/VueSelectionCard.js +4 -0
- package/dist/components/SelectionCard/vue/VueSelectionCard.vue.d.ts +55 -0
- package/dist/components/SelectionCard/vue/VueSelectionCard.vue.d.ts.map +1 -0
- package/dist/components/SelectionCard/vue/index.d.ts +6 -0
- package/dist/components/SelectionCard/vue/index.d.ts.map +1 -0
- package/dist/components/SelectionCard/vue/index.js +4 -0
- package/dist/components/SelectionCardGroup/core/SelectionCardGroup.d.ts +9 -0
- package/dist/components/SelectionCardGroup/core/SelectionCardGroup.d.ts.map +1 -0
- package/dist/components/SelectionCardGroup/core/SelectionCardGroup.js +5 -0
- package/dist/components/SelectionCardGroup/core/_SelectionCardGroup.d.ts +69 -0
- package/dist/components/SelectionCardGroup/core/_SelectionCardGroup.d.ts.map +1 -0
- package/dist/components/SelectionCardGroup/core/_SelectionCardGroup.js +220 -0
- package/dist/components/SelectionCardGroup/react/ReactSelectionCardGroup.d.ts +13 -0
- package/dist/components/SelectionCardGroup/react/ReactSelectionCardGroup.d.ts.map +1 -0
- package/dist/components/SelectionCardGroup/react/ReactSelectionCardGroup.js +15 -0
- package/dist/components/SelectionCardGroup/react/index.d.ts +3 -0
- package/dist/components/SelectionCardGroup/react/index.d.ts.map +1 -0
- package/dist/components/SelectionCardGroup/react/index.js +4 -0
- package/dist/components/SelectionCardGroup/vue/VueSelectionCardGroup.js +4 -0
- package/dist/components/SelectionCardGroup/vue/VueSelectionCardGroup.vue.d.ts +86 -0
- package/dist/components/SelectionCardGroup/vue/VueSelectionCardGroup.vue.d.ts.map +1 -0
- package/dist/components/SelectionCardGroup/vue/index.d.ts +6 -0
- package/dist/components/SelectionCardGroup/vue/index.d.ts.map +1 -0
- package/dist/components/SelectionCardGroup/vue/index.js +4 -0
- package/dist/components/Slider/core/_Slider.d.ts +10 -16
- package/dist/components/Slider/core/_Slider.d.ts.map +1 -1
- package/dist/components/Slider/core/_Slider.js +28 -39
- package/dist/components/Timeline/core/_Timeline.d.ts.map +1 -1
- package/dist/components/Timeline/core/_Timeline.js +8 -3
- package/dist/components/Timeline/react/ReactTimeline.d.ts +23 -9
- package/dist/components/Timeline/react/ReactTimeline.d.ts.map +1 -1
- package/dist/components/Timeline/react/ReactTimeline.js +18 -14
- package/dist/components/Toggle/core/_Toggle.d.ts +36 -6
- package/dist/components/Toggle/core/_Toggle.d.ts.map +1 -1
- package/dist/components/Toggle/core/_Toggle.js +117 -77
- package/dist/components/Toggle/vue/VueToggle.js +1 -1
- package/dist/components/Toggle/vue/VueToggle.vue.d.ts.map +1 -1
- package/dist/components/Toggle/vue/index.js +1 -1
- package/dist/shared/face-mixin.d.ts +82 -0
- package/dist/shared/face-mixin.d.ts.map +1 -0
- package/dist/shared/face-mixin.js +86 -0
- package/dist/shared/form-control-styles.js +1 -1
- package/dist/styles/ag-tokens-dark.css +4 -0
- package/dist/styles/ag-tokens.css +18 -13
- package/dist/test-setup.js +340 -255
- package/package.json +51 -13
- package/src/components/Alert/core/_Alert.ts +21 -2
- package/src/components/Button/core/_Button.ts +111 -21
- package/src/components/Button/vue/VueButton.vue +2 -0
- package/src/components/Card/core/_Card.ts +70 -3
- package/src/components/Card/vue/VueCard.vue +19 -3
- package/src/components/Checkbox/core/_Checkbox.ts +78 -18
- package/src/components/Checkbox/vue/VueCheckbox.vue +0 -6
- package/src/components/Combobox/core/_Combobox.ts +84 -2
- package/src/components/Combobox/vue/VueCombobox.vue +1 -0
- package/src/components/Drawer/v1/dialog--drawer-bottom.hbs +48 -0
- package/src/components/Drawer/v1/dialog--drawer-end.hbs +48 -0
- package/src/components/Drawer/v1/dialog--drawer-start.hbs +48 -0
- package/src/components/Drawer/v1/dialog--drawer-top.hbs +48 -0
- package/src/components/Drawer/v1/dialog-demo.css +13 -0
- package/src/components/Drawer/v1/dialog.config.yml +5 -0
- package/src/components/Drawer/v1/dialog.css +99 -0
- package/src/components/Drawer/v1/dialog.hbs +48 -0
- package/src/components/Drawer/v1/drawer-animations.css +52 -0
- package/src/components/Drawer/v1/drawer.css +50 -0
- package/src/components/Icon/vue/VueIcon.vue +2 -5
- package/src/components/Image/vue/VueImage.vue +17 -13
- package/src/components/Input/core/_Input.ts +58 -3
- package/src/components/Input/vue/VueInput.vue +2 -6
- package/src/components/Link/core/_Link.ts +1 -0
- package/src/components/Link/vue/VueLink.vue +1 -0
- package/src/components/Pagination/core/_Pagination.ts +10 -18
- package/src/components/Radio/core/_Radio.ts +131 -41
- package/src/components/Radio/vue/VueRadio.vue +1 -5
- package/src/components/Rating/core/_Rating.ts +62 -5
- package/src/components/Rating/vue/VueRating.vue +3 -0
- package/src/components/Select/core/_Select.ts +55 -6
- package/src/components/SelectionButton/core/SelectionButton.ts +13 -0
- package/src/components/SelectionButton/core/_SelectionButton.ts +551 -0
- package/src/components/SelectionButton/react/ReactSelectionButton.tsx +16 -0
- package/src/components/SelectionButton/react/index.ts +4 -0
- package/src/components/SelectionButton/vue/VueSelectionButton.vue +33 -0
- package/src/components/SelectionButton/vue/index.ts +5 -0
- package/src/components/SelectionButtonGroup/core/SelectionButtonGroup.ts +13 -0
- package/src/components/SelectionButtonGroup/core/_SelectionButtonGroup.ts +423 -0
- package/src/components/SelectionButtonGroup/react/ReactSelectionButtonGroup.tsx +29 -0
- package/src/components/SelectionButtonGroup/react/index.ts +9 -0
- package/src/components/SelectionButtonGroup/vue/VueSelectionButtonGroup.vue +89 -0
- package/src/components/SelectionButtonGroup/vue/index.ts +5 -0
- package/src/components/SelectionCard/core/SelectionCard.ts +13 -0
- package/src/components/SelectionCard/core/_SelectionCard.ts +384 -0
- package/src/components/SelectionCard/react/ReactSelectionCard.tsx +16 -0
- package/src/components/SelectionCard/react/index.ts +4 -0
- package/src/components/SelectionCard/vue/VueSelectionCard.vue +33 -0
- package/src/components/SelectionCard/vue/index.ts +5 -0
- package/src/components/SelectionCardGroup/core/SelectionCardGroup.ts +13 -0
- package/src/components/SelectionCardGroup/core/_SelectionCardGroup.ts +396 -0
- package/src/components/SelectionCardGroup/react/ReactSelectionCardGroup.tsx +29 -0
- package/src/components/SelectionCardGroup/react/index.ts +9 -0
- package/src/components/SelectionCardGroup/vue/VueSelectionCardGroup.vue +71 -0
- package/src/components/SelectionCardGroup/vue/index.ts +5 -0
- package/src/components/Slider/core/_Slider.ts +28 -28
- package/src/components/Timeline/core/_Timeline.ts +5 -0
- package/src/components/Timeline/react/ReactTimeline.tsx +47 -24
- package/src/components/Toggle/core/_Toggle.ts +83 -9
- package/src/components/Toggle/vue/VueToggle.vue +2 -0
- package/src/shared/face-mixin.ts +233 -0
- package/src/shared/form-control-styles.ts +1 -1
- package/src/styles/ag-tokens-dark.css +4 -0
- package/src/styles/ag-tokens.css +18 -13
- package/RTL_IMPLEMENTATION_PLAN.md +0 -295
- package/dist/VueIcon.vue_vue_type_script_setup_true_lang-kC-nzMyu.js +0 -25
- package/dist/components/Input/core/_Input.BACKUP.d.ts +0 -114
- package/dist/components/Input/core/_Input.BACKUP.d.ts.map +0 -1
- package/dist/components/Input/core/_Input.BACKUP.js +0 -511
- package/dist/global.d.js +0 -1
- package/src/components/Input/core/_Input.BACKUP.ts +0 -710
- package/src/global.d.ts +0 -43
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { LitElement as p, css as g, nothing as f, html as u } from "lit";
|
|
2
|
+
import { n as o } from "../../../property-CemaeiRl.js";
|
|
3
|
+
import { r as y } from "../../../state-CovhUvdr.js";
|
|
4
|
+
import { FaceMixin as _ } from "../../../shared/face-mixin.js";
|
|
5
|
+
var m = Object.defineProperty, r = (h, e, t, a) => {
|
|
6
|
+
for (var i = void 0, n = h.length - 1, s; n >= 0; n--)
|
|
7
|
+
(s = h[n]) && (i = s(e, t, i) || i);
|
|
8
|
+
return i && m(e, t, i), i;
|
|
9
|
+
};
|
|
10
|
+
const d = class d extends _(p) {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(), this._handleCardChange = (e) => {
|
|
13
|
+
e.stopPropagation();
|
|
14
|
+
const { value: t, checked: a } = e.detail;
|
|
15
|
+
let i;
|
|
16
|
+
if (this.type === "radio")
|
|
17
|
+
i = a ? [t] : [];
|
|
18
|
+
else {
|
|
19
|
+
const s = [...this._getSelectedValues()];
|
|
20
|
+
if (a)
|
|
21
|
+
s.includes(t) || s.push(t);
|
|
22
|
+
else {
|
|
23
|
+
const c = s.indexOf(t);
|
|
24
|
+
c > -1 && s.splice(c, 1);
|
|
25
|
+
}
|
|
26
|
+
i = s;
|
|
27
|
+
}
|
|
28
|
+
this._internalSelectedValues = i, this._syncFormValue(), this._syncValidity();
|
|
29
|
+
const n = new CustomEvent("selection-change", {
|
|
30
|
+
detail: {
|
|
31
|
+
value: t,
|
|
32
|
+
checked: a,
|
|
33
|
+
selectedValues: i
|
|
34
|
+
},
|
|
35
|
+
bubbles: !0,
|
|
36
|
+
composed: !0
|
|
37
|
+
});
|
|
38
|
+
this.dispatchEvent(n), this.onSelectionChange && this.onSelectionChange(n);
|
|
39
|
+
}, this._handleKeyDown = (e) => {
|
|
40
|
+
const t = this._getCards().filter((s) => !s.disabled);
|
|
41
|
+
if (t.length === 0) return;
|
|
42
|
+
const a = t.find((s) => {
|
|
43
|
+
try {
|
|
44
|
+
return s.shadowRoot?.activeElement || s === document.activeElement;
|
|
45
|
+
} catch {
|
|
46
|
+
return s === document.activeElement;
|
|
47
|
+
}
|
|
48
|
+
}), i = a ? t.indexOf(a) : -1;
|
|
49
|
+
let n = null;
|
|
50
|
+
switch (e.key) {
|
|
51
|
+
case "ArrowDown":
|
|
52
|
+
case "ArrowRight":
|
|
53
|
+
e.preventDefault(), n = i === -1 ? 0 : (i + 1) % t.length;
|
|
54
|
+
break;
|
|
55
|
+
case "ArrowUp":
|
|
56
|
+
case "ArrowLeft":
|
|
57
|
+
e.preventDefault(), n = i === -1 ? t.length - 1 : (i - 1 + t.length) % t.length;
|
|
58
|
+
break;
|
|
59
|
+
case "Home":
|
|
60
|
+
e.preventDefault(), n = 0;
|
|
61
|
+
break;
|
|
62
|
+
case "End":
|
|
63
|
+
e.preventDefault(), n = t.length - 1;
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
if (n !== null) {
|
|
67
|
+
const s = t[n];
|
|
68
|
+
s.focus(), this.type === "radio" && this._handleCardChange(new CustomEvent("selection-card-change", {
|
|
69
|
+
detail: { value: s.value, checked: !0 }
|
|
70
|
+
}));
|
|
71
|
+
}
|
|
72
|
+
}, this.type = "radio", this.legend = "", this.legendHidden = !1, this.theme = "", this.value = "", this.values = [], this.disabled = !1, this.required = !1, this._internalSelectedValues = [], this.validationMessages = void 0;
|
|
73
|
+
}
|
|
74
|
+
// Get current selected values (controlled or uncontrolled)
|
|
75
|
+
_getSelectedValues() {
|
|
76
|
+
return this.type === "radio" ? this.value ? [this.value] : this._internalSelectedValues : this.values && this.values.length > 0 ? this.values : this._internalSelectedValues;
|
|
77
|
+
}
|
|
78
|
+
// ─── FACE ─────────────────────────────────────────────────────────────────
|
|
79
|
+
_syncFormValue() {
|
|
80
|
+
const e = this._getSelectedValues();
|
|
81
|
+
if (this.type === "radio")
|
|
82
|
+
this._internals.setFormValue(e.length > 0 ? e[0] : null);
|
|
83
|
+
else if (e.length === 0)
|
|
84
|
+
this._internals.setFormValue(null);
|
|
85
|
+
else {
|
|
86
|
+
const t = new FormData();
|
|
87
|
+
e.forEach((a) => t.append(this.name, a)), this._internals.setFormValue(t);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
_syncValidity() {
|
|
91
|
+
const e = this._getSelectedValues();
|
|
92
|
+
this.required && e.length === 0 ? this._internals.setValidity(
|
|
93
|
+
{ valueMissing: !0 },
|
|
94
|
+
this.validationMessages?.valueMissing ?? "Please select an option."
|
|
95
|
+
) : this._internals.setValidity({});
|
|
96
|
+
}
|
|
97
|
+
formResetCallback() {
|
|
98
|
+
this._internalSelectedValues = [], this._internals.setFormValue(null), this._syncValidity(), this._syncChildCards();
|
|
99
|
+
}
|
|
100
|
+
// ─── End FACE ─────────────────────────────────────────────────────────────
|
|
101
|
+
connectedCallback() {
|
|
102
|
+
super.connectedCallback(), this.addEventListener("selection-card-change", this._handleCardChange), this.addEventListener("keydown", this._handleKeyDown);
|
|
103
|
+
}
|
|
104
|
+
disconnectedCallback() {
|
|
105
|
+
super.disconnectedCallback(), this.removeEventListener("selection-card-change", this._handleCardChange), this.removeEventListener("keydown", this._handleKeyDown);
|
|
106
|
+
}
|
|
107
|
+
updated(e) {
|
|
108
|
+
super.updated(e), (e.has("type") || e.has("name") || e.has("theme") || e.has("disabled") || e.has("value") || e.has("values") || e.has("_internalSelectedValues")) && this._syncChildCards(), e.has("value") || e.has("values") || e.has("_internalSelectedValues") ? (this._syncFormValue(), this._syncValidity()) : e.has("required") && this._syncValidity();
|
|
109
|
+
}
|
|
110
|
+
firstUpdated() {
|
|
111
|
+
this._syncChildCards(), this._syncFormValue(), this._syncValidity();
|
|
112
|
+
}
|
|
113
|
+
_getCards() {
|
|
114
|
+
const e = this.shadowRoot?.querySelector("slot");
|
|
115
|
+
return e ? e.assignedElements({ flatten: !0 }).filter((t) => t.tagName.toLowerCase() === "ag-selection-card") : [];
|
|
116
|
+
}
|
|
117
|
+
_syncChildCards() {
|
|
118
|
+
const e = this._getCards(), t = this._getSelectedValues();
|
|
119
|
+
e.forEach((a) => {
|
|
120
|
+
a._type = this.type, a._name = this.name, a._theme = this.theme, a.checked = t.includes(a.value), this.disabled && (a.disabled = !0);
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
_handleSlotChange() {
|
|
124
|
+
this._syncChildCards();
|
|
125
|
+
}
|
|
126
|
+
render() {
|
|
127
|
+
const e = [
|
|
128
|
+
"selection-card-group__legend",
|
|
129
|
+
this.legendHidden ? "selection-card-group__legend--hidden" : ""
|
|
130
|
+
].filter(Boolean).join(" ");
|
|
131
|
+
return u`
|
|
132
|
+
<fieldset
|
|
133
|
+
class="selection-card-group"
|
|
134
|
+
part="ag-selection-card-group-fieldset"
|
|
135
|
+
role="${this.type === "radio" ? "radiogroup" : "group"}"
|
|
136
|
+
aria-disabled="${this.disabled ? "true" : "false"}"
|
|
137
|
+
>
|
|
138
|
+
${this.legend ? u`<legend class="${e}" part="ag-selection-card-group-legend">${this.legend}</legend>` : f}
|
|
139
|
+
<div class="selection-card-group__content" part="ag-selection-card-group-content">
|
|
140
|
+
<slot @slotchange="${this._handleSlotChange}"></slot>
|
|
141
|
+
</div>
|
|
142
|
+
</fieldset>
|
|
143
|
+
`;
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
d.styles = g`
|
|
147
|
+
:host {
|
|
148
|
+
display: block;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.selection-card-group {
|
|
152
|
+
border: 0;
|
|
153
|
+
padding: 0;
|
|
154
|
+
margin: 0;
|
|
155
|
+
min-inline-size: auto;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.selection-card-group__legend {
|
|
159
|
+
font-weight: 600;
|
|
160
|
+
font-size: var(--ag-font-size-base);
|
|
161
|
+
color: var(--ag-text-primary);
|
|
162
|
+
padding: 0;
|
|
163
|
+
margin-block-end: var(--ag-space-4);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.selection-card-group__legend--hidden {
|
|
167
|
+
position: absolute !important;
|
|
168
|
+
width: 1px !important;
|
|
169
|
+
height: 1px !important;
|
|
170
|
+
padding: 0 !important;
|
|
171
|
+
margin: -1px !important;
|
|
172
|
+
overflow: hidden !important;
|
|
173
|
+
clip: rect(0, 0, 0, 0) !important;
|
|
174
|
+
white-space: nowrap !important;
|
|
175
|
+
border: 0 !important;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.selection-card-group__content {
|
|
179
|
+
display: grid;
|
|
180
|
+
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
181
|
+
gap: var(--ag-selection-card-group-gap, var(--ag-space-4));
|
|
182
|
+
}
|
|
183
|
+
`;
|
|
184
|
+
let l = d;
|
|
185
|
+
r([
|
|
186
|
+
o({ type: String, reflect: !0 })
|
|
187
|
+
], l.prototype, "type");
|
|
188
|
+
r([
|
|
189
|
+
o({ type: String })
|
|
190
|
+
], l.prototype, "legend");
|
|
191
|
+
r([
|
|
192
|
+
o({ type: Boolean, attribute: "legend-hidden" })
|
|
193
|
+
], l.prototype, "legendHidden");
|
|
194
|
+
r([
|
|
195
|
+
o({ type: String, reflect: !0 })
|
|
196
|
+
], l.prototype, "theme");
|
|
197
|
+
r([
|
|
198
|
+
o({ type: String })
|
|
199
|
+
], l.prototype, "value");
|
|
200
|
+
r([
|
|
201
|
+
o({ type: Array })
|
|
202
|
+
], l.prototype, "values");
|
|
203
|
+
r([
|
|
204
|
+
o({ type: Boolean, reflect: !0 })
|
|
205
|
+
], l.prototype, "disabled");
|
|
206
|
+
r([
|
|
207
|
+
o({ type: Boolean, reflect: !0 })
|
|
208
|
+
], l.prototype, "required");
|
|
209
|
+
r([
|
|
210
|
+
o({ attribute: !1 })
|
|
211
|
+
], l.prototype, "validationMessages");
|
|
212
|
+
r([
|
|
213
|
+
o({ attribute: !1 })
|
|
214
|
+
], l.prototype, "onSelectionChange");
|
|
215
|
+
r([
|
|
216
|
+
y()
|
|
217
|
+
], l.prototype, "_internalSelectedValues");
|
|
218
|
+
export {
|
|
219
|
+
l as AgSelectionCardGroup
|
|
220
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { AgSelectionCardGroup, SelectionCardGroupProps, SelectionChangeEvent } from '../core/SelectionCardGroup';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export interface ReactSelectionCardGroupProps extends SelectionCardGroupProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
onSelectionChange?: (event: SelectionChangeEvent) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const ReactSelectionCardGroup: import('@lit/react').ReactWebComponent<AgSelectionCardGroup, {
|
|
10
|
+
onSelectionChange: EventName<SelectionChangeEvent>;
|
|
11
|
+
}>;
|
|
12
|
+
export type { SelectionCardGroupProps, SelectionChangeEvent, SelectionChangeEventDetail, SelectionType, } from '../core/SelectionCardGroup';
|
|
13
|
+
//# sourceMappingURL=ReactSelectionCardGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactSelectionCardGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/SelectionCardGroup/react/ReactSelectionCardGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EACL,oBAAoB,EACpB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AAEpC,MAAM,WAAW,4BAA6B,SAAQ,uBAAuB;IAC3E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAC3D;AAED,eAAO,MAAM,uBAAuB;uBAKS,SAAS,CAAC,oBAAoB,CAAC;EAE1E,CAAC;AAEH,YAAY,EACV,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,aAAa,GACd,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { o } from "../../../create-component-BPMDMe-q.js";
|
|
3
|
+
import "../core/SelectionCardGroup.js";
|
|
4
|
+
import { AgSelectionCardGroup as t } from "../core/_SelectionCardGroup.js";
|
|
5
|
+
const n = o({
|
|
6
|
+
tagName: "ag-selection-card-group",
|
|
7
|
+
elementClass: t,
|
|
8
|
+
react: e,
|
|
9
|
+
events: {
|
|
10
|
+
onSelectionChange: "selection-change"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
n as ReactSelectionCardGroup
|
|
15
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { ReactSelectionCardGroup, type ReactSelectionCardGroupProps } from './ReactSelectionCardGroup';
|
|
2
|
+
export type { SelectionCardGroupProps, SelectionChangeEvent, SelectionChangeEventDetail, SelectionType, } from '../core/SelectionCardGroup';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SelectionCardGroup/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,KAAK,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAGvG,YAAY,EACV,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,aAAa,GACd,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { SelectionType, SelectionChangeEventDetail } from '../core/SelectionCardGroup';
|
|
2
|
+
import { ValidationMessages } from '../../../shared/face-mixin';
|
|
3
|
+
|
|
4
|
+
export interface VueSelectionCardGroupProps {
|
|
5
|
+
/** Selection mode: 'radio' (single) or 'checkbox' (multiple) */
|
|
6
|
+
type?: SelectionType;
|
|
7
|
+
/** Name attribute for the input elements */
|
|
8
|
+
name: string;
|
|
9
|
+
/** Legend text for the fieldset (accessibility) */
|
|
10
|
+
legend?: string;
|
|
11
|
+
/** Visually hide the legend while keeping it accessible */
|
|
12
|
+
legendHidden?: boolean;
|
|
13
|
+
/** Controlled value for radio mode */
|
|
14
|
+
value?: string;
|
|
15
|
+
/** Controlled values for checkbox mode */
|
|
16
|
+
values?: string[];
|
|
17
|
+
/** Disable all cards in the group */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** Require at least one selection before the form can be submitted */
|
|
20
|
+
required?: boolean;
|
|
21
|
+
validationMessages?: ValidationMessages;
|
|
22
|
+
}
|
|
23
|
+
declare function __VLS_template(): {
|
|
24
|
+
default?(_: {}): any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VueSelectionCardGroupProps>, {
|
|
27
|
+
type: string;
|
|
28
|
+
name: string;
|
|
29
|
+
legend: string;
|
|
30
|
+
legendHidden: boolean;
|
|
31
|
+
value: string;
|
|
32
|
+
values: () => never[];
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
required: boolean;
|
|
35
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
|
+
"update:value": (value: string) => void;
|
|
37
|
+
"selection-change": (detail: SelectionChangeEventDetail) => void;
|
|
38
|
+
"update:values": (values: string[]) => void;
|
|
39
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VueSelectionCardGroupProps>, {
|
|
40
|
+
type: string;
|
|
41
|
+
name: string;
|
|
42
|
+
legend: string;
|
|
43
|
+
legendHidden: boolean;
|
|
44
|
+
value: string;
|
|
45
|
+
values: () => never[];
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
required: boolean;
|
|
48
|
+
}>>> & Readonly<{
|
|
49
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
50
|
+
"onSelection-change"?: ((detail: SelectionChangeEventDetail) => any) | undefined;
|
|
51
|
+
"onUpdate:values"?: ((values: string[]) => any) | undefined;
|
|
52
|
+
}>, {
|
|
53
|
+
values: string[];
|
|
54
|
+
disabled: boolean;
|
|
55
|
+
name: string;
|
|
56
|
+
type: SelectionType;
|
|
57
|
+
legend: string;
|
|
58
|
+
required: boolean;
|
|
59
|
+
value: string;
|
|
60
|
+
legendHidden: boolean;
|
|
61
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
62
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
63
|
+
export default _default;
|
|
64
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
65
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
66
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
67
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
68
|
+
} : {
|
|
69
|
+
type: import('vue').PropType<T[K]>;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
type __VLS_WithDefaults<P, D> = {
|
|
74
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
75
|
+
default: D[K];
|
|
76
|
+
}> : P[K];
|
|
77
|
+
};
|
|
78
|
+
type __VLS_Prettify<T> = {
|
|
79
|
+
[K in keyof T]: T[K];
|
|
80
|
+
} & {};
|
|
81
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
82
|
+
new (): {
|
|
83
|
+
$slots: S;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=VueSelectionCardGroup.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VueSelectionCardGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/SelectionCardGroup/vue/VueSelectionCardGroup.vue"],"names":[],"mappings":"AAiBA;AAEA,OAAO,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAC5F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,WAAW,0BAA0B;IACzC,gEAAgE;IAChE,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC;AA6CD,iBAAS,cAAc;qBA2CM,GAAG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AG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as VueSelectionCardGroup } from './VueSelectionCardGroup.vue';
|
|
2
|
+
import { SelectionCardGroupProps as VueSelectionCardGroupProps } from '../core/_SelectionCardGroup';
|
|
3
|
+
|
|
4
|
+
export { VueSelectionCardGroup };
|
|
5
|
+
export type { VueSelectionCardGroupProps };
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SelectionCardGroup/vue/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,uBAAuB,IAAI,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEzG,OAAO,EAAE,qBAAqB,EAAE,CAAC;AACjC,YAAY,EAAE,0BAA0B,EAAE,CAAC"}
|
|
@@ -35,13 +35,13 @@ export interface SliderProps {
|
|
|
35
35
|
onFocus?: (event: FocusEvent) => void;
|
|
36
36
|
onBlur?: (event: FocusEvent) => void;
|
|
37
37
|
}
|
|
38
|
+
declare const AgSlider_base: (new (...args: any[]) => import('../../../shared/face-mixin').FaceMixinInterface) & typeof LitElement;
|
|
38
39
|
/**
|
|
39
40
|
* AgSlider - Foundation slider component with single/dual range support
|
|
40
41
|
*/
|
|
41
|
-
export declare class AgSlider extends
|
|
42
|
-
static formAssociated: boolean;
|
|
42
|
+
export declare class AgSlider extends AgSlider_base implements SliderProps {
|
|
43
43
|
static styles: import('lit').CSSResult[];
|
|
44
|
-
private
|
|
44
|
+
private _defaultValue;
|
|
45
45
|
private _sliderId;
|
|
46
46
|
private _minInputId;
|
|
47
47
|
private _maxInputId;
|
|
@@ -93,10 +93,6 @@ export declare class AgSlider extends LitElement implements SliderProps {
|
|
|
93
93
|
invalid: boolean;
|
|
94
94
|
errorMessage: string;
|
|
95
95
|
helpText: string;
|
|
96
|
-
/**
|
|
97
|
-
* Form association
|
|
98
|
-
*/
|
|
99
|
-
name: string;
|
|
100
96
|
/**
|
|
101
97
|
* Display options
|
|
102
98
|
*/
|
|
@@ -122,15 +118,6 @@ export declare class AgSlider extends LitElement implements SliderProps {
|
|
|
122
118
|
private _draggingThumb;
|
|
123
119
|
private _track?;
|
|
124
120
|
private _liveRegion?;
|
|
125
|
-
/**
|
|
126
|
-
* Form value handling
|
|
127
|
-
*/
|
|
128
|
-
get form(): HTMLFormElement | null;
|
|
129
|
-
get validity(): ValidityState;
|
|
130
|
-
get validationMessage(): string;
|
|
131
|
-
get willValidate(): boolean;
|
|
132
|
-
checkValidity(): boolean;
|
|
133
|
-
reportValidity(): boolean;
|
|
134
121
|
/**
|
|
135
122
|
* Property validation
|
|
136
123
|
*/
|
|
@@ -139,6 +126,12 @@ export declare class AgSlider extends LitElement implements SliderProps {
|
|
|
139
126
|
* Clamp current value to min/max and validate
|
|
140
127
|
*/
|
|
141
128
|
private _clampAndValidateValue;
|
|
129
|
+
firstUpdated(): void;
|
|
130
|
+
/**
|
|
131
|
+
* FACE lifecycle: called when the parent form is reset.
|
|
132
|
+
* Restores the slider to the value it had on first render.
|
|
133
|
+
*/
|
|
134
|
+
formResetCallback(): void;
|
|
142
135
|
/**
|
|
143
136
|
* Update form value when component value changes
|
|
144
137
|
*/
|
|
@@ -219,4 +212,5 @@ export declare class AgSlider extends LitElement implements SliderProps {
|
|
|
219
212
|
render(): import('lit').TemplateResult<1>;
|
|
220
213
|
disconnectedCallback(): void;
|
|
221
214
|
}
|
|
215
|
+
export {};
|
|
222
216
|
//# sourceMappingURL=_Slider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_Slider.d.ts","sourceRoot":"","sources":["../../../../src/components/Slider/core/_Slider.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAa,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AG,CAAC,MAAM,EAAE,OAAO,CAAC;IA6B5D;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAiBrB,YAAY;IAQrB;;;OAGG;IACM,iBAAiB,IAAI,IAAI;IASlC;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAmBxB;;OAEG;IACH,OAAO,KAAK,OAAO,GAKlB;IAED;;OAEG;IACH,OAAO,CAAC,cAAc;IAItB;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAK/B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAiB5B;;OAEG;IACH,OAAO,CAAC,WAAW;IAQnB;;OAEG;IACH,OAAO,CAAC,cAAc;IAyBtB;;OAEG;IACL,OAAO,CAAC,uBAAuB;IAiC7B;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAwC1B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAsBxB;;OAEG;IACH,OAAO,CAAC,YAAY;IAuDpB;;OAEG;IACH,OAAO,CAAC,YAAY;IAyBpB;;OAEG;IACH,OAAO,CAAC,aAAa;IAyBrB;;OAEG;IACH,OAAO,CAAC,YAAY;IAcpB;;OAEG;IACH,OAAO,CAAC,WAAW;IAcnB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAuBzB;;OAEG;IACH,OAAO,CAAC,YAAY;IAmCpB;;OAEG;IACH,OAAO,CAAC,YAAY;IA+BpB;;OAEG;IACH,OAAO,CAAC,eAAe;IA2BvB,OAAO,CAAC,WAAW;IA0BnB,MAAM;IA2LN,oBAAoB;CAOrB"}
|
|
@@ -1,42 +1,22 @@
|
|
|
1
1
|
import { LitElement as y, css as $, html as d } from "lit";
|
|
2
2
|
import { n as h } from "../../../property-CemaeiRl.js";
|
|
3
|
-
import { r as
|
|
3
|
+
import { r as m } from "../../../state-CovhUvdr.js";
|
|
4
4
|
import { e as f } from "../../../query-BykXNUlT.js";
|
|
5
5
|
import { o as c } from "../../../if-defined-C8i28hSj.js";
|
|
6
6
|
import { createFormControlIds as x, isHorizontalLabel as b, buildAriaDescribedBy as k } from "../../../shared/form-control-utils.js";
|
|
7
7
|
import { formControlStyles as w } from "../../../shared/form-control-styles.js";
|
|
8
|
-
|
|
8
|
+
import { FaceMixin as T } from "../../../shared/face-mixin.js";
|
|
9
|
+
var V = Object.defineProperty, s = (v, t, e, o) => {
|
|
9
10
|
for (var i = void 0, r = v.length - 1, l; r >= 0; r--)
|
|
10
11
|
(l = v[r]) && (i = l(t, e, i) || i);
|
|
11
|
-
return i &&
|
|
12
|
+
return i && V(t, e, i), i;
|
|
12
13
|
};
|
|
13
|
-
const
|
|
14
|
+
const _ = class _ extends T(y) {
|
|
14
15
|
// ~60fps
|
|
15
16
|
constructor() {
|
|
16
|
-
super(), this._activeDrag = null, this._lastRenderTime = 0, this._renderThrottleMs = 16, this.labelPosition = "top", this._activeThumb = null, this._focusedThumb = null, this._draggingThumb = null
|
|
17
|
+
super(), this._defaultValue = 0, this._activeDrag = null, this._lastRenderTime = 0, this._renderThrottleMs = 16, this.labelPosition = "top", this._activeThumb = null, this._focusedThumb = null, this._draggingThumb = null;
|
|
17
18
|
const t = x("slider");
|
|
18
|
-
this._sliderId = this.id || t.inputId, this._minInputId = `${t.inputId}-min`, this._maxInputId = `${t.inputId}-max`, this._labelId = t.labelId, this._helperId = t.helperId, this._errorId = t.errorId, this.label = "", this.labelHidden = !1, this.noLabel = !1, this.ariaLabel = "", this.min = 0, this.max = 100, this.step = 1, this.value = 0, this.dual = !1, this.vertical = !1, this.filled = !1, this.monochrome = !1, this.size = "default", this.disabled = !1, this.readonly = !1, this.required = !1, this.invalid = !1, this.errorMessage = "", this.helpText = "", this.
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Form value handling
|
|
22
|
-
*/
|
|
23
|
-
get form() {
|
|
24
|
-
return this._internals.form;
|
|
25
|
-
}
|
|
26
|
-
get validity() {
|
|
27
|
-
return this._internals.validity;
|
|
28
|
-
}
|
|
29
|
-
get validationMessage() {
|
|
30
|
-
return this._internals.validationMessage;
|
|
31
|
-
}
|
|
32
|
-
get willValidate() {
|
|
33
|
-
return this._internals.willValidate;
|
|
34
|
-
}
|
|
35
|
-
checkValidity() {
|
|
36
|
-
return this._internals.checkValidity();
|
|
37
|
-
}
|
|
38
|
-
reportValidity() {
|
|
39
|
-
return this._internals.reportValidity();
|
|
19
|
+
this._sliderId = this.id || t.inputId, this._minInputId = `${t.inputId}-min`, this._maxInputId = `${t.inputId}-max`, this._labelId = t.labelId, this._helperId = t.helperId, this._errorId = t.errorId, this.label = "", this.labelHidden = !1, this.noLabel = !1, this.ariaLabel = "", this.min = 0, this.max = 100, this.step = 1, this.value = 0, this.dual = !1, this.vertical = !1, this.filled = !1, this.monochrome = !1, this.size = "default", this.disabled = !1, this.readonly = !1, this.required = !1, this.invalid = !1, this.errorMessage = "", this.helpText = "", this.showTooltip = !1, this.showTicks = !1, this.tickStep = 25, this._handlePointerMove = this._handlePointerMove.bind(this), this._handlePointerUp = this._handlePointerUp.bind(this);
|
|
40
20
|
}
|
|
41
21
|
/**
|
|
42
22
|
* Property validation
|
|
@@ -56,6 +36,18 @@ const g = class g extends y {
|
|
|
56
36
|
t !== this.value && (this.value = t);
|
|
57
37
|
}
|
|
58
38
|
}
|
|
39
|
+
// ─── FACE ─────────────────────────────────────────────────────────────────
|
|
40
|
+
firstUpdated() {
|
|
41
|
+
this._defaultValue = Array.isArray(this.value) ? [...this.value] : this.value, this._updateFormValue();
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* FACE lifecycle: called when the parent form is reset.
|
|
45
|
+
* Restores the slider to the value it had on first render.
|
|
46
|
+
*/
|
|
47
|
+
formResetCallback() {
|
|
48
|
+
this.value = Array.isArray(this._defaultValue) ? [...this._defaultValue] : this._defaultValue, this._updateFormValue();
|
|
49
|
+
}
|
|
50
|
+
// ─── End FACE ─────────────────────────────────────────────────────────────
|
|
59
51
|
/**
|
|
60
52
|
* Update form value when component value changes
|
|
61
53
|
*/
|
|
@@ -138,11 +130,11 @@ const g = class g extends y {
|
|
|
138
130
|
if (this.dual) {
|
|
139
131
|
const l = this._values;
|
|
140
132
|
if (o === "min") {
|
|
141
|
-
const u = this.step, p = l[1] - u,
|
|
142
|
-
this._updateValue(
|
|
133
|
+
const u = this.step, p = l[1] - u, g = [Math.min(r, p), l[1]];
|
|
134
|
+
this._updateValue(g, "input");
|
|
143
135
|
} else if (o === "max") {
|
|
144
|
-
const u = this.step, p = l[0] + u, n = Math.max(r, p),
|
|
145
|
-
this._updateValue(
|
|
136
|
+
const u = this.step, p = l[0] + u, n = Math.max(r, p), g = [l[0], n];
|
|
137
|
+
this._updateValue(g, "input");
|
|
146
138
|
}
|
|
147
139
|
} else
|
|
148
140
|
this._updateValue(r, "input");
|
|
@@ -459,7 +451,7 @@ const g = class g extends y {
|
|
|
459
451
|
super.disconnectedCallback(), document.removeEventListener("pointermove", this._handlePointerMove), document.removeEventListener("pointerup", this._handlePointerUp), document.removeEventListener("pointercancel", this._handlePointerUp);
|
|
460
452
|
}
|
|
461
453
|
};
|
|
462
|
-
|
|
454
|
+
_.styles = [
|
|
463
455
|
w,
|
|
464
456
|
$`
|
|
465
457
|
:host {
|
|
@@ -811,7 +803,7 @@ g.formAssociated = !0, g.styles = [
|
|
|
811
803
|
}
|
|
812
804
|
`
|
|
813
805
|
];
|
|
814
|
-
let a =
|
|
806
|
+
let a = _;
|
|
815
807
|
s([
|
|
816
808
|
h({ type: String })
|
|
817
809
|
], a.prototype, "label");
|
|
@@ -872,9 +864,6 @@ s([
|
|
|
872
864
|
s([
|
|
873
865
|
h({ type: String, attribute: "help-text" })
|
|
874
866
|
], a.prototype, "helpText");
|
|
875
|
-
s([
|
|
876
|
-
h({ type: String, reflect: !0 })
|
|
877
|
-
], a.prototype, "name");
|
|
878
867
|
s([
|
|
879
868
|
h({ type: Boolean, attribute: "show-tooltip" })
|
|
880
869
|
], a.prototype, "showTooltip");
|
|
@@ -897,13 +886,13 @@ s([
|
|
|
897
886
|
h({ attribute: !1 })
|
|
898
887
|
], a.prototype, "onBlur");
|
|
899
888
|
s([
|
|
900
|
-
|
|
889
|
+
m()
|
|
901
890
|
], a.prototype, "_activeThumb");
|
|
902
891
|
s([
|
|
903
|
-
|
|
892
|
+
m()
|
|
904
893
|
], a.prototype, "_focusedThumb");
|
|
905
894
|
s([
|
|
906
|
-
|
|
895
|
+
m()
|
|
907
896
|
], a.prototype, "_draggingThumb");
|
|
908
897
|
s([
|
|
909
898
|
f(".ag-slider__track")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_Timeline.d.ts","sourceRoot":"","sources":["../../../../src/components/Timeline/core/_Timeline.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAGrD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,kCAAkC;IAClC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,wDAAwD;IACxD,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,YAAY,GAAG,EAAE,CAAC;IAC3E,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,UAAW,SAAQ,UAAW,YAAW,eAAe;IAK3D,WAAW,EAAE,YAAY,GAAG,UAAU,CAAC;IAGvC,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,YAAY,GAAG,EAAE,CAAC;IAG1E,OAAO,EAAE,OAAO,CAAC;IAGjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;;IAejC,MAAM,CAAC,MAAM,0BA4BX;IAKO,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC;IAS7D,OAAO,CAAC,iBAAiB;IAsBhB,MAAM;CAYhB;AAED;;GAEG;AACH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QAAQ,GAAG,YAAY,GAAG,EAAE,CAAC;IAG1E,OAAO,EAAE,OAAO,CAAC;IAGjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;;IAejC,MAAM,CAAC,MAAM,0BA4BX;IAKO,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC;IAS7D,OAAO,CAAC,iBAAiB;IAsBhB,MAAM;CAYhB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,qCAAqC;IACrC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,qCAAqC;IACrC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,YAAY,GAAG,EAAE,CAAC;IAC3E,qCAAqC;IACrC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,cAAe,SAAQ,UAAU;IAKpC,WAAW,EAAE,YAAY,GAAG,UAAU,CAAC;IAGvC,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,YAAY,GAAG,EAAE,CAAC;IAG1E,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAG/B,KAAK,EAAE,OAAO,CAAC;IAGf,IAAI,EAAE,OAAO,CAAC;;IAgBtB,MAAM,CAAC,MAAM,0BAqLX;IAKO,MAAM;CA0BhB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LitElement as h, css as f, nothing as c, html as p } from "lit";
|
|
2
2
|
import { n as e } from "../../../property-CemaeiRl.js";
|
|
3
|
-
var v = Object.defineProperty, a = (
|
|
4
|
-
for (var r = void 0, l =
|
|
5
|
-
(
|
|
3
|
+
var v = Object.defineProperty, a = (m, t, s, i) => {
|
|
4
|
+
for (var r = void 0, l = m.length - 1, u; l >= 0; l--)
|
|
5
|
+
(u = m[l]) && (r = u(t, s, r) || r);
|
|
6
6
|
return r && v(t, s, r), r;
|
|
7
7
|
};
|
|
8
8
|
const g = class g extends h {
|
|
@@ -189,6 +189,11 @@ d.styles = f`
|
|
|
189
189
|
line-height: normal;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
+
/* Ensure consistent sizing for slotted marker content */
|
|
193
|
+
.ag-marker ::slotted(*) {
|
|
194
|
+
box-sizing: border-box;
|
|
195
|
+
}
|
|
196
|
+
|
|
192
197
|
/* End slot positioning */
|
|
193
198
|
.ag-end {
|
|
194
199
|
margin: var(--ag-space-1);
|