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,474 @@
|
|
|
1
|
+
import { LitElement as b, css as g, html as c, nothing as h } from "lit";
|
|
2
|
+
import { n as o } from "../../../property-CemaeiRl.js";
|
|
3
|
+
var v = Object.defineProperty, r = (l, e, n, d) => {
|
|
4
|
+
for (var a = void 0, i = l.length - 1, u; i >= 0; i--)
|
|
5
|
+
(u = l[i]) && (a = u(e, n, a) || a);
|
|
6
|
+
return a && v(e, n, a), a;
|
|
7
|
+
};
|
|
8
|
+
const s = class s extends b {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(), this.value = "", this.label = "", this.checked = !1, this.disabled = !1, this._type = "radio", this._name = "", this._theme = "", this._size = "md", this._shape = "";
|
|
11
|
+
}
|
|
12
|
+
focus() {
|
|
13
|
+
this.shadowRoot?.querySelector(".selection-button")?.focus();
|
|
14
|
+
}
|
|
15
|
+
_handleClick(e) {
|
|
16
|
+
if (e.preventDefault(), this.disabled)
|
|
17
|
+
return;
|
|
18
|
+
const n = this._type === "radio" ? !0 : !this.checked;
|
|
19
|
+
this.dispatchEvent(new CustomEvent("selection-button-change", {
|
|
20
|
+
detail: {
|
|
21
|
+
value: this.value,
|
|
22
|
+
checked: n
|
|
23
|
+
},
|
|
24
|
+
bubbles: !0,
|
|
25
|
+
composed: !0
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
_handleKeyDown(e) {
|
|
29
|
+
this.disabled || (e.key === " " || e.key === "Enter") && (e.preventDefault(), this._handleClick(e));
|
|
30
|
+
}
|
|
31
|
+
_renderIndicator() {
|
|
32
|
+
return this._type === "checkbox" ? c`
|
|
33
|
+
<svg class="selection-button__indicator-svg" viewBox="0 0 20 20" aria-hidden="true">
|
|
34
|
+
<circle cx="10" cy="10" r="10" fill="currentColor" />
|
|
35
|
+
<path d="M6 10l3 3 5-6" stroke="var(--ag-selection-button-indicator-check, var(--_indicator-bg))"
|
|
36
|
+
stroke-width="1.67" stroke-linecap="round" stroke-linejoin="round" fill="none" />
|
|
37
|
+
</svg>
|
|
38
|
+
` : c`
|
|
39
|
+
<svg class="selection-button__indicator-svg" viewBox="0 0 20 20" aria-hidden="true">
|
|
40
|
+
<circle cx="10" cy="10" r="10" fill="currentColor" />
|
|
41
|
+
<circle cx="10" cy="10" r="4" fill="var(--ag-selection-button-indicator-dot, var(--_indicator-bg))" />
|
|
42
|
+
</svg>
|
|
43
|
+
`;
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
const e = this._theme || "default", n = this._size || "md", d = this._shape || "default", a = [
|
|
47
|
+
"selection-button",
|
|
48
|
+
`selection-button--${e}`,
|
|
49
|
+
`selection-button--${n}`,
|
|
50
|
+
`selection-button--shape-${d}`,
|
|
51
|
+
this.checked ? "selection-button--checked" : "",
|
|
52
|
+
this.disabled ? "selection-button--disabled" : ""
|
|
53
|
+
].filter(Boolean).join(" ");
|
|
54
|
+
return c`
|
|
55
|
+
<label
|
|
56
|
+
class="${a}"
|
|
57
|
+
part="ag-selection-button-container"
|
|
58
|
+
tabindex="${this.disabled ? -1 : 0}"
|
|
59
|
+
@click="${this._handleClick}"
|
|
60
|
+
@keydown="${this._handleKeyDown}"
|
|
61
|
+
>
|
|
62
|
+
<input
|
|
63
|
+
type="${this._type}"
|
|
64
|
+
class="selection-button__input"
|
|
65
|
+
part="ag-selection-button-control"
|
|
66
|
+
name="${this._name || h}"
|
|
67
|
+
value="${this.value}"
|
|
68
|
+
.checked="${this.checked}"
|
|
69
|
+
?disabled="${this.disabled}"
|
|
70
|
+
aria-checked="${this.checked ? "true" : "false"}"
|
|
71
|
+
tabindex="-1"
|
|
72
|
+
/>
|
|
73
|
+
<span class="selection-button__label-sr">${this.label}</span>
|
|
74
|
+
<span class="selection-button__content" part="ag-selection-button-content">
|
|
75
|
+
<slot></slot>
|
|
76
|
+
</span>
|
|
77
|
+
<span class="selection-button__indicator" part="ag-selection-button-indicator" aria-hidden="true">
|
|
78
|
+
${this._renderIndicator()}
|
|
79
|
+
</span>
|
|
80
|
+
</label>
|
|
81
|
+
`;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
s.styles = g`
|
|
85
|
+
:host {
|
|
86
|
+
display: inline-flex;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.selection-button {
|
|
90
|
+
position: relative;
|
|
91
|
+
display: inline-flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
gap: var(--ag-space-2);
|
|
95
|
+
margin: 0;
|
|
96
|
+
font: inherit;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
transition:
|
|
99
|
+
background-color var(--ag-motion-fast) var(--ag-fx-ease-ease-out),
|
|
100
|
+
border-color var(--ag-motion-fast) var(--ag-fx-ease-ease-out),
|
|
101
|
+
color var(--ag-motion-fast) var(--ag-fx-ease-ease-out);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* ========================================
|
|
105
|
+
SIZE VARIANTS
|
|
106
|
+
======================================== */
|
|
107
|
+
|
|
108
|
+
/* Small */
|
|
109
|
+
.selection-button--sm {
|
|
110
|
+
height: var(--ag-space-9);
|
|
111
|
+
min-height: var(--ag-space-9);
|
|
112
|
+
font-size: var(--ag-font-size-xs);
|
|
113
|
+
padding-inline: calc(var(--ag-space-3) + var(--ag-space-3));
|
|
114
|
+
--_indicator-size: 0.75rem;
|
|
115
|
+
--_indicator-offset: var(--ag-space-1);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Medium (default) */
|
|
119
|
+
.selection-button--md {
|
|
120
|
+
height: var(--ag-space-10);
|
|
121
|
+
min-height: var(--ag-space-10);
|
|
122
|
+
font-size: var(--ag-font-size-sm);
|
|
123
|
+
padding-inline: calc(var(--ag-space-4) + var(--ag-space-4));
|
|
124
|
+
--_indicator-size: 0.875rem;
|
|
125
|
+
--_indicator-offset: var(--ag-space-1);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* Large */
|
|
129
|
+
.selection-button--lg {
|
|
130
|
+
height: var(--ag-space-12);
|
|
131
|
+
min-height: var(--ag-space-12);
|
|
132
|
+
font-size: var(--ag-font-size-base);
|
|
133
|
+
padding-inline: calc(var(--ag-space-5) + var(--ag-space-5));
|
|
134
|
+
--_indicator-size: 1rem;
|
|
135
|
+
--_indicator-offset: var(--ag-space-1);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* ========================================
|
|
139
|
+
SHAPE VARIANTS
|
|
140
|
+
======================================== */
|
|
141
|
+
|
|
142
|
+
.selection-button--shape-default {
|
|
143
|
+
border-radius: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.selection-button--shape-rounded {
|
|
147
|
+
border-radius: var(--ag-radius-md);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.selection-button--shape-capsule {
|
|
151
|
+
border-radius: var(--ag-radius-full);
|
|
152
|
+
/* 0.375rem is between --ag-space-1 (0.25rem) and --ag-space-2 (0.5rem) */
|
|
153
|
+
--_indicator-offset: 0.375rem;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* ========================================
|
|
157
|
+
THEME VARIANTS - UNCHECKED STATE
|
|
158
|
+
Border/text uses theme color, transparent background
|
|
159
|
+
======================================== */
|
|
160
|
+
|
|
161
|
+
/* Default (primary) - unchecked */
|
|
162
|
+
.selection-button--default {
|
|
163
|
+
background: transparent;
|
|
164
|
+
border: 1px solid var(--ag-primary);
|
|
165
|
+
color: var(--ag-primary-text);
|
|
166
|
+
--_indicator-bg: var(--ag-primary);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* Success - unchecked */
|
|
170
|
+
.selection-button--success {
|
|
171
|
+
background: transparent;
|
|
172
|
+
border: 1px solid var(--ag-success);
|
|
173
|
+
color: var(--ag-success-text);
|
|
174
|
+
--_indicator-bg: var(--ag-success);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* Info - unchecked */
|
|
178
|
+
.selection-button--info {
|
|
179
|
+
background: transparent;
|
|
180
|
+
border: 1px solid var(--ag-info);
|
|
181
|
+
color: var(--ag-info-text);
|
|
182
|
+
--_indicator-bg: var(--ag-info);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* Warning - unchecked */
|
|
186
|
+
.selection-button--warning {
|
|
187
|
+
background: transparent;
|
|
188
|
+
border: 1px solid var(--ag-warning);
|
|
189
|
+
color: var(--ag-warning-text);
|
|
190
|
+
--_indicator-bg: var(--ag-warning);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* Error - unchecked */
|
|
194
|
+
.selection-button--error {
|
|
195
|
+
background: transparent;
|
|
196
|
+
border: 1px solid var(--ag-danger);
|
|
197
|
+
color: var(--ag-danger-text);
|
|
198
|
+
--_indicator-bg: var(--ag-danger);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* Monochrome - unchecked */
|
|
202
|
+
.selection-button--monochrome {
|
|
203
|
+
background: transparent;
|
|
204
|
+
border: 1px solid var(--ag-text-primary);
|
|
205
|
+
color: var(--ag-text-primary);
|
|
206
|
+
--_indicator-bg: var(--ag-text-primary);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/* ========================================
|
|
210
|
+
THEME VARIANTS - CHECKED STATE
|
|
211
|
+
Filled background with white text
|
|
212
|
+
======================================== */
|
|
213
|
+
|
|
214
|
+
/* Default (primary) - checked */
|
|
215
|
+
.selection-button--default.selection-button--checked {
|
|
216
|
+
background: var(--ag-primary);
|
|
217
|
+
border-color: var(--ag-primary);
|
|
218
|
+
color: var(--ag-white);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* Success - checked */
|
|
222
|
+
.selection-button--success.selection-button--checked {
|
|
223
|
+
background: var(--ag-success);
|
|
224
|
+
border-color: var(--ag-success);
|
|
225
|
+
color: var(--ag-white);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/* Info - checked */
|
|
229
|
+
.selection-button--info.selection-button--checked {
|
|
230
|
+
background: var(--ag-info);
|
|
231
|
+
border-color: var(--ag-info);
|
|
232
|
+
color: var(--ag-white);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* Warning - checked */
|
|
236
|
+
.selection-button--warning.selection-button--checked {
|
|
237
|
+
background: var(--ag-warning);
|
|
238
|
+
border-color: var(--ag-warning);
|
|
239
|
+
color: var(--ag-neutral-900);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* Error - checked */
|
|
243
|
+
.selection-button--error.selection-button--checked {
|
|
244
|
+
background: var(--ag-danger);
|
|
245
|
+
border-color: var(--ag-danger);
|
|
246
|
+
color: var(--ag-white);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* Monochrome - checked */
|
|
250
|
+
.selection-button--monochrome.selection-button--checked {
|
|
251
|
+
background: var(--ag-background-primary-inverted);
|
|
252
|
+
border-color: var(--ag-background-primary-inverted);
|
|
253
|
+
color: var(--ag-text-primary-inverted);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/* ========================================
|
|
257
|
+
HOVER STATES
|
|
258
|
+
======================================== */
|
|
259
|
+
|
|
260
|
+
/* Default - unchecked hover (fill with theme color) */
|
|
261
|
+
.selection-button--default:hover:not(.selection-button--disabled):not(.selection-button--checked) {
|
|
262
|
+
background: var(--ag-primary);
|
|
263
|
+
color: var(--ag-white);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* Default - checked hover (darker shade) */
|
|
267
|
+
.selection-button--default.selection-button--checked:hover:not(.selection-button--disabled) {
|
|
268
|
+
background: var(--ag-primary-dark);
|
|
269
|
+
border-color: var(--ag-primary-dark);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* Success - unchecked hover */
|
|
273
|
+
.selection-button--success:hover:not(.selection-button--disabled):not(.selection-button--checked) {
|
|
274
|
+
background: var(--ag-success);
|
|
275
|
+
color: var(--ag-white);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/* Success - checked hover */
|
|
279
|
+
.selection-button--success.selection-button--checked:hover:not(.selection-button--disabled) {
|
|
280
|
+
background: var(--ag-success-dark);
|
|
281
|
+
border-color: var(--ag-success-dark);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* Info - unchecked hover */
|
|
285
|
+
.selection-button--info:hover:not(.selection-button--disabled):not(.selection-button--checked) {
|
|
286
|
+
background: var(--ag-info);
|
|
287
|
+
color: var(--ag-white);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/* Info - checked hover */
|
|
291
|
+
.selection-button--info.selection-button--checked:hover:not(.selection-button--disabled) {
|
|
292
|
+
background: var(--ag-info-dark);
|
|
293
|
+
border-color: var(--ag-info-dark);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/* Warning - unchecked hover */
|
|
297
|
+
.selection-button--warning:hover:not(.selection-button--disabled):not(.selection-button--checked) {
|
|
298
|
+
background: var(--ag-warning);
|
|
299
|
+
color: var(--ag-neutral-900);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/* Warning - checked hover */
|
|
303
|
+
.selection-button--warning.selection-button--checked:hover:not(.selection-button--disabled) {
|
|
304
|
+
background: var(--ag-warning-dark);
|
|
305
|
+
border-color: var(--ag-warning-dark);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/* Error - unchecked hover */
|
|
309
|
+
.selection-button--error:hover:not(.selection-button--disabled):not(.selection-button--checked) {
|
|
310
|
+
background: var(--ag-danger);
|
|
311
|
+
color: var(--ag-white);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/* Error - checked hover */
|
|
315
|
+
.selection-button--error.selection-button--checked:hover:not(.selection-button--disabled) {
|
|
316
|
+
background: var(--ag-danger-dark);
|
|
317
|
+
border-color: var(--ag-danger-dark);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/* Monochrome - unchecked hover */
|
|
321
|
+
.selection-button--monochrome:hover:not(.selection-button--disabled):not(.selection-button--checked) {
|
|
322
|
+
background: var(--ag-background-primary-inverted);
|
|
323
|
+
color: var(--ag-text-primary-inverted);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/* Monochrome - checked hover */
|
|
327
|
+
.selection-button--monochrome.selection-button--checked:hover:not(.selection-button--disabled) {
|
|
328
|
+
background: var(--ag-background-secondary-inverted);
|
|
329
|
+
border-color: var(--ag-background-secondary-inverted);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/* ========================================
|
|
333
|
+
FOCUS STATE
|
|
334
|
+
======================================== */
|
|
335
|
+
|
|
336
|
+
.selection-button:focus-within:not(.selection-button--disabled) {
|
|
337
|
+
outline: var(--ag-focus-width) solid var(--ag-focus-ring-color, rgba(var(--ag-focus), 0.5));
|
|
338
|
+
outline-offset: var(--ag-focus-offset);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/* ========================================
|
|
342
|
+
DISABLED STATE
|
|
343
|
+
======================================== */
|
|
344
|
+
|
|
345
|
+
.selection-button--disabled {
|
|
346
|
+
cursor: not-allowed;
|
|
347
|
+
opacity: 0.6;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/* ========================================
|
|
351
|
+
HIDDEN INPUT (screen reader accessible)
|
|
352
|
+
======================================== */
|
|
353
|
+
|
|
354
|
+
.selection-button__input {
|
|
355
|
+
position: absolute;
|
|
356
|
+
width: 1px;
|
|
357
|
+
height: 1px;
|
|
358
|
+
padding: 0;
|
|
359
|
+
margin: -1px;
|
|
360
|
+
overflow: hidden;
|
|
361
|
+
clip: rect(0, 0, 0, 0);
|
|
362
|
+
white-space: nowrap;
|
|
363
|
+
border: 0;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/* ========================================
|
|
367
|
+
INDICATOR (corner badge, top-right)
|
|
368
|
+
======================================== */
|
|
369
|
+
|
|
370
|
+
.selection-button__indicator {
|
|
371
|
+
position: absolute;
|
|
372
|
+
top: var(--_indicator-offset);
|
|
373
|
+
inset-inline-end: var(--_indicator-offset);
|
|
374
|
+
display: flex;
|
|
375
|
+
align-items: center;
|
|
376
|
+
justify-content: center;
|
|
377
|
+
width: var(--_indicator-size);
|
|
378
|
+
height: var(--_indicator-size);
|
|
379
|
+
opacity: 0;
|
|
380
|
+
transform: scale(0.6);
|
|
381
|
+
transition:
|
|
382
|
+
opacity var(--ag-motion-fast) ease-in-out,
|
|
383
|
+
transform var(--ag-motion-fast) var(--ag-fx-ease-ease-out);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.selection-button--checked .selection-button__indicator {
|
|
387
|
+
opacity: 1;
|
|
388
|
+
transform: scale(1);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.selection-button__indicator-svg {
|
|
392
|
+
width: 100%;
|
|
393
|
+
height: 100%;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/* Content wrapper */
|
|
397
|
+
.selection-button__content {
|
|
398
|
+
display: inline-flex;
|
|
399
|
+
align-items: center;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/* Visually hidden label for screen readers */
|
|
403
|
+
.selection-button__label-sr {
|
|
404
|
+
position: absolute !important;
|
|
405
|
+
width: 1px !important;
|
|
406
|
+
height: 1px !important;
|
|
407
|
+
padding: 0 !important;
|
|
408
|
+
margin: -1px !important;
|
|
409
|
+
overflow: hidden !important;
|
|
410
|
+
clip: rect(0, 0, 0, 0) !important;
|
|
411
|
+
white-space: nowrap !important;
|
|
412
|
+
border: 0 !important;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/* ========================================
|
|
416
|
+
REDUCED MOTION
|
|
417
|
+
======================================== */
|
|
418
|
+
|
|
419
|
+
@media (prefers-reduced-motion: reduce) {
|
|
420
|
+
.selection-button,
|
|
421
|
+
.selection-button__indicator {
|
|
422
|
+
transition: none;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/* ========================================
|
|
427
|
+
HIGH CONTRAST MODE
|
|
428
|
+
======================================== */
|
|
429
|
+
|
|
430
|
+
@media (forced-colors: active) {
|
|
431
|
+
.selection-button--checked {
|
|
432
|
+
outline: 2px solid CanvasText;
|
|
433
|
+
}
|
|
434
|
+
.selection-button__indicator-svg circle {
|
|
435
|
+
fill: CanvasText;
|
|
436
|
+
}
|
|
437
|
+
.selection-button__indicator-svg path,
|
|
438
|
+
.selection-button__indicator-svg circle:last-child {
|
|
439
|
+
stroke: Canvas;
|
|
440
|
+
fill: Canvas;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
`;
|
|
444
|
+
let t = s;
|
|
445
|
+
r([
|
|
446
|
+
o({ type: String, reflect: !0 })
|
|
447
|
+
], t.prototype, "value");
|
|
448
|
+
r([
|
|
449
|
+
o({ type: String })
|
|
450
|
+
], t.prototype, "label");
|
|
451
|
+
r([
|
|
452
|
+
o({ type: Boolean, reflect: !0 })
|
|
453
|
+
], t.prototype, "checked");
|
|
454
|
+
r([
|
|
455
|
+
o({ type: Boolean, reflect: !0 })
|
|
456
|
+
], t.prototype, "disabled");
|
|
457
|
+
r([
|
|
458
|
+
o({ type: String, attribute: !1 })
|
|
459
|
+
], t.prototype, "_type");
|
|
460
|
+
r([
|
|
461
|
+
o({ type: String, attribute: !1 })
|
|
462
|
+
], t.prototype, "_name");
|
|
463
|
+
r([
|
|
464
|
+
o({ type: String, attribute: !1 })
|
|
465
|
+
], t.prototype, "_theme");
|
|
466
|
+
r([
|
|
467
|
+
o({ type: String, attribute: !1 })
|
|
468
|
+
], t.prototype, "_size");
|
|
469
|
+
r([
|
|
470
|
+
o({ type: String, attribute: !1 })
|
|
471
|
+
], t.prototype, "_shape");
|
|
472
|
+
export {
|
|
473
|
+
t as AgSelectionButton
|
|
474
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AgSelectionButton, SelectionButtonProps } from '../core/SelectionButton';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface ReactSelectionButtonProps extends SelectionButtonProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const ReactSelectionButton: import('@lit/react').ReactWebComponent<AgSelectionButton, {}>;
|
|
8
|
+
export type { SelectionButtonProps } from '../core/SelectionButton';
|
|
9
|
+
//# sourceMappingURL=ReactSelectionButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactSelectionButton.d.ts","sourceRoot":"","sources":["../../../../src/components/SelectionButton/react/ReactSelectionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,iBAAiB,EAAE,KAAK,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEvF,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,oBAAoB,+DAI/B,CAAC;AAEH,YAAY,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { o } from "../../../create-component-BPMDMe-q.js";
|
|
3
|
+
import "../core/SelectionButton.js";
|
|
4
|
+
import { AgSelectionButton as e } from "../core/_SelectionButton.js";
|
|
5
|
+
const n = o({
|
|
6
|
+
tagName: "ag-selection-button",
|
|
7
|
+
elementClass: e,
|
|
8
|
+
react: t
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
n as ReactSelectionButton
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SelectionButton/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAG9F,YAAY,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
|
|
2
|
+
export interface VueSelectionButtonProps {
|
|
3
|
+
/** Unique value for this button (required) */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Accessible label for this button (required) */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Whether this button is selected */
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
/** Whether this button is disabled */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VueSelectionButtonProps>, {
|
|
16
|
+
value: string;
|
|
17
|
+
label: string;
|
|
18
|
+
checked: boolean;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VueSelectionButtonProps>, {
|
|
21
|
+
value: string;
|
|
22
|
+
label: string;
|
|
23
|
+
checked: boolean;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
}>>> & Readonly<{}>, {
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
label: string;
|
|
28
|
+
checked: boolean;
|
|
29
|
+
value: string;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
35
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
36
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
37
|
+
} : {
|
|
38
|
+
type: import('vue').PropType<T[K]>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
type __VLS_WithDefaults<P, D> = {
|
|
43
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
44
|
+
default: D[K];
|
|
45
|
+
}> : P[K];
|
|
46
|
+
};
|
|
47
|
+
type __VLS_Prettify<T> = {
|
|
48
|
+
[K in keyof T]: T[K];
|
|
49
|
+
} & {};
|
|
50
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=VueSelectionButton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VueSelectionButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/SelectionButton/vue/VueSelectionButton.vue"],"names":[],"mappings":"AAWA;AAEA,OAAO,yBAAyB,CAAC;AAEjC,MAAM,WAAW,uBAAuB;IACtC,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAoBD,iBAAS,cAAc;qBAyCM,GAAG;EAK/B;AAQD,QAAA,MAAM,eAAe;;;;;;;;;;;cA3ER,OAAO;WAJX,MAAM;aAEH,OAAO;WAJV,MAAM;4EAuFb,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as VueSelectionButton } from './VueSelectionButton.vue';
|
|
2
|
+
import { SelectionButtonProps as VueSelectionButtonProps } from '../core/_SelectionButton';
|
|
3
|
+
|
|
4
|
+
export { VueSelectionButton };
|
|
5
|
+
export type { VueSelectionButtonProps };
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SelectionButton/vue/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,IAAI,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAEhG,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAC9B,YAAY,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AgSelectionButtonGroup } from './_SelectionButtonGroup.js';
|
|
2
|
+
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
'ag-selection-button-group': AgSelectionButtonGroup;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export * from './_SelectionButtonGroup.js';
|
|
9
|
+
//# sourceMappingURL=SelectionButtonGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectionButtonGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/SelectionButtonGroup/core/SelectionButtonGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAMpE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,2BAA2B,EAAE,sBAAsB,CAAC;KACrD;CACF;AAED,cAAc,4BAA4B,CAAC"}
|