agnosticui-core 2.0.0-alpha.2 → 2.0.0-alpha.20
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-fMqllTsp.js} +18 -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/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 +1 -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
package/README.md
CHANGED
|
@@ -23,41 +23,75 @@ AgnosticUI uses a **Minimalist & Highly Themeable** architecture where component
|
|
|
23
23
|
|
|
24
24
|
```
|
|
25
25
|
src/components/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
│
|
|
29
|
-
│
|
|
30
|
-
│ ├──
|
|
31
|
-
│
|
|
32
|
-
|
|
33
|
-
│ ├──
|
|
34
|
-
│
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
26
|
+
└── Accordion/
|
|
27
|
+
├── core/
|
|
28
|
+
│ ├── _Accordion.ts # Core Lit Component
|
|
29
|
+
│ ├── Accordion.ts # Public interface
|
|
30
|
+
│ ├── AccordionGroup.ts # Group component
|
|
31
|
+
│ └── README.md # Documentation
|
|
32
|
+
├── react/
|
|
33
|
+
│ ├── index.ts # React exports
|
|
34
|
+
│ └── ReactAccordion.tsx # React wrapper
|
|
35
|
+
└── vue/
|
|
36
|
+
├── index.ts # Vue exports
|
|
37
|
+
├── VueAccordion.vue # Main component
|
|
38
|
+
├── VueAccordionContent.vue # Content component
|
|
39
|
+
├── VueAccordionHeader.vue # Header component
|
|
40
|
+
└── VueAccordionItem.vue # Item component
|
|
40
41
|
```
|
|
41
42
|
|
|
42
|
-
##
|
|
43
|
-
|
|
44
|
-
###
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
43
|
+
## Why AgnosticUI?
|
|
44
|
+
|
|
45
|
+
### The Local UI Kit - A New Category
|
|
46
|
+
**The UI kit that lives in your codebase, not node_modules.**
|
|
47
|
+
|
|
48
|
+
Traditional UI libraries live in `node_modules/` as black boxes. Copy/paste approaches give you code but no reference. AgnosticUI Local gives you **both**: a complete reference library in your project plus owned copies of components you use.
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npx ag init # Full library in ./agnosticui/ (reference)
|
|
52
|
+
npx ag add button # Component in ./src/components/ag/ (yours to modify)
|
|
53
|
+
npx ag sync # Update reference, preserve your customizations
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### AI-First Development
|
|
57
|
+
**The only UI kit designed for AI-assisted development.**
|
|
58
|
+
|
|
59
|
+
- **Full Context**: AI tools (Cursor, Windsurf, Claude) see your entire component library
|
|
60
|
+
- **Better Assistance**: "Make this button work like the Combobox" - AI sees both
|
|
61
|
+
- **Reference + Customization**: AI understands the source AND your modifications
|
|
62
|
+
- **Offline & Local**: No API calls, no rate limits, no black boxes
|
|
63
|
+
|
|
64
|
+
### Complete Ownership
|
|
65
|
+
**Copy, modify, and own your components.**
|
|
66
|
+
|
|
67
|
+
- Components copied to your project - modify structure, behavior, styling
|
|
68
|
+
- No vendor lock-in or "black box" frustration
|
|
69
|
+
- You control the dependency graph and update schedule
|
|
70
|
+
- Review diffs before accepting updates via `npx ag sync`
|
|
71
|
+
|
|
72
|
+
### Zero Dependencies
|
|
73
|
+
**Only Lit (5KB runtime) - nothing else.**
|
|
74
|
+
|
|
75
|
+
- No bloated node_modules
|
|
76
|
+
- Components work standalone
|
|
77
|
+
- Production bundle includes only what you use
|
|
78
|
+
- Framework wrappers via @lit/react and Vue 3 composition API
|
|
79
|
+
|
|
80
|
+
### Minimalist & Themeable
|
|
81
|
+
**Beautiful defaults, infinite customization.**
|
|
82
|
+
|
|
83
|
+
- Production-ready styling out of the box
|
|
84
|
+
- Everything customizable via `--ag-*` design tokens
|
|
85
|
+
- Enterprise white-labeling capability
|
|
86
|
+
- Light/dark mode built-in
|
|
87
|
+
|
|
88
|
+
### Multi-Framework Support
|
|
89
|
+
**React, Vue, Lit - one component library, all frameworks.**
|
|
90
|
+
|
|
91
|
+
- Framework-specific wrappers for optimal developer experience
|
|
92
|
+
- React wrapper via @lit/react makes props and events feel naturally "React-like"
|
|
93
|
+
- Vue 3 components using composition API
|
|
94
|
+
- Svelte works directly (excellent Web Components support)
|
|
61
95
|
|
|
62
96
|
## Usage
|
|
63
97
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as r, ref as g, watch as c, createElementBlock as h, openBlock as b, mergeProps as p, renderSlot as y } from "vue";
|
|
2
2
|
import "./components/Button/core/Button.js";
|
|
3
|
-
const B = [".disabled", ".loading", ".toggle", ".pressed", ".bordered", ".ghost", ".link", ".grouped", ".ariaLabel", "type", "variant", "size", "shape"], v = /* @__PURE__ */
|
|
3
|
+
const B = [".disabled", ".loading", ".toggle", ".pressed", ".bordered", ".ghost", ".link", ".grouped", ".fullWidth", ".ariaLabel", "type", "variant", "size", "shape"], v = /* @__PURE__ */ r({
|
|
4
4
|
__name: "VueButton",
|
|
5
5
|
props: {
|
|
6
6
|
variant: { default: "" },
|
|
@@ -10,6 +10,7 @@ const B = [".disabled", ".loading", ".toggle", ".pressed", ".bordered", ".ghost"
|
|
|
10
10
|
ghost: { type: Boolean, default: !1 },
|
|
11
11
|
link: { type: Boolean, default: !1 },
|
|
12
12
|
grouped: { type: Boolean, default: !1 },
|
|
13
|
+
fullWidth: { type: Boolean, default: !1 },
|
|
13
14
|
type: { default: "button" },
|
|
14
15
|
disabled: { type: Boolean, default: !1 },
|
|
15
16
|
loading: { type: Boolean, default: !1 },
|
|
@@ -19,24 +20,24 @@ const B = [".disabled", ".loading", ".toggle", ".pressed", ".bordered", ".ghost"
|
|
|
19
20
|
},
|
|
20
21
|
emits: ["click", "focus", "blur", "toggle", "update:pressed"],
|
|
21
22
|
setup(e, { emit: n }) {
|
|
22
|
-
const d = e,
|
|
23
|
-
|
|
24
|
-
}, i = (t) => {
|
|
25
|
-
a("focus", t);
|
|
26
|
-
}, r = (t) => {
|
|
27
|
-
a("blur", t);
|
|
23
|
+
const d = e, l = n, a = g(), s = (t) => {
|
|
24
|
+
l("click", t);
|
|
28
25
|
}, u = (t) => {
|
|
26
|
+
l("focus", t);
|
|
27
|
+
}, i = (t) => {
|
|
28
|
+
l("blur", t);
|
|
29
|
+
}, f = (t) => {
|
|
29
30
|
const o = t;
|
|
30
|
-
|
|
31
|
+
l("toggle", o.detail), l("update:pressed", o.detail.pressed);
|
|
31
32
|
};
|
|
32
33
|
return c(
|
|
33
34
|
() => d.pressed,
|
|
34
35
|
(t) => {
|
|
35
|
-
|
|
36
|
+
a.value && d.toggle && (a.value.pressed = t);
|
|
36
37
|
}
|
|
37
|
-
), (t, o) => (
|
|
38
|
+
), (t, o) => (b(), h("ag-button", p({
|
|
38
39
|
ref_key: "buttonRef",
|
|
39
|
-
ref:
|
|
40
|
+
ref: a,
|
|
40
41
|
".disabled": e.disabled,
|
|
41
42
|
".loading": e.loading,
|
|
42
43
|
".toggle": e.toggle,
|
|
@@ -45,15 +46,16 @@ const B = [".disabled", ".loading", ".toggle", ".pressed", ".bordered", ".ghost"
|
|
|
45
46
|
".ghost": e.ghost,
|
|
46
47
|
".link": e.link,
|
|
47
48
|
".grouped": e.grouped,
|
|
49
|
+
".fullWidth": e.fullWidth,
|
|
48
50
|
".ariaLabel": e.ariaLabel,
|
|
49
51
|
type: e.type,
|
|
50
52
|
variant: e.variant,
|
|
51
53
|
size: e.size,
|
|
52
54
|
shape: e.shape,
|
|
53
55
|
onClick: s,
|
|
54
|
-
onFocus:
|
|
55
|
-
onBlur:
|
|
56
|
-
onToggle:
|
|
56
|
+
onFocus: u,
|
|
57
|
+
onBlur: i,
|
|
58
|
+
onToggle: f
|
|
57
59
|
}, t.$attrs), [
|
|
58
60
|
y(t.$slots, "default")
|
|
59
61
|
], 48, B));
|
|
@@ -10,6 +10,7 @@ const B = [".disabled", ".loading", ".toggle", ".pressed", ".bordered", ".ghost"
|
|
|
10
10
|
ghost: { type: Boolean, default: !1 },
|
|
11
11
|
link: { type: Boolean, default: !1 },
|
|
12
12
|
grouped: { type: Boolean, default: !1 },
|
|
13
|
+
fullWidth: { type: Boolean },
|
|
13
14
|
type: { default: "button" },
|
|
14
15
|
disabled: { type: Boolean, default: !1 },
|
|
15
16
|
loading: { type: Boolean, default: !1 },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as c, createElementBlock as o, openBlock as u, mergeProps as r, renderSlot as s } from "vue";
|
|
2
2
|
import "./components/Checkbox/core/Checkbox.js";
|
|
3
|
-
const m = [".checked", ".indeterminate", ".disabled", ".required", ".invalid", "name", "value", "size", "theme", "labelText", "labelPosition", "errorMessage", "helpText"],
|
|
3
|
+
const m = [".checked", ".indeterminate", ".disabled", ".required", ".invalid", "name", "value", "size", "theme", "labelText", "labelPosition", "errorMessage", "helpText"], k = /* @__PURE__ */ c({
|
|
4
4
|
__name: "VueCheckbox",
|
|
5
5
|
props: {
|
|
6
6
|
name: { default: "" },
|
|
@@ -19,15 +19,14 @@ const m = [".checked", ".indeterminate", ".disabled", ".required", ".invalid", "
|
|
|
19
19
|
},
|
|
20
20
|
emits: ["click", "change", "update:checked", "update:indeterminate"],
|
|
21
21
|
setup(e, { emit: d }) {
|
|
22
|
-
const t = d,
|
|
22
|
+
const t = d, i = (a) => {
|
|
23
23
|
t("click", a);
|
|
24
|
-
},
|
|
24
|
+
}, n = (a) => {
|
|
25
25
|
const l = a;
|
|
26
26
|
t("change", l.detail), t("update:checked", l.detail.checked), t("update:indeterminate", l.detail.indeterminate);
|
|
27
27
|
};
|
|
28
|
-
return (a, l) => (
|
|
29
|
-
|
|
30
|
-
ref: n,
|
|
28
|
+
return (a, l) => (u(), o("ag-checkbox", r({
|
|
29
|
+
ref: "checkboxRef",
|
|
31
30
|
".checked": e.checked,
|
|
32
31
|
".indeterminate": e.indeterminate,
|
|
33
32
|
".disabled": e.disabled,
|
|
@@ -42,12 +41,12 @@ const m = [".checked", ".indeterminate", ".disabled", ".required", ".invalid", "
|
|
|
42
41
|
errorMessage: e.errorMessage,
|
|
43
42
|
helpText: e.helpText,
|
|
44
43
|
onClick: i,
|
|
45
|
-
onChange:
|
|
44
|
+
onChange: n
|
|
46
45
|
}, a.$attrs), [
|
|
47
|
-
|
|
46
|
+
s(a.$slots, "default")
|
|
48
47
|
], 48, m));
|
|
49
48
|
}
|
|
50
49
|
});
|
|
51
50
|
export {
|
|
52
|
-
|
|
51
|
+
k as _
|
|
53
52
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as v, ref as m, createElementBlock as g, openBlock as h, renderSlot as x } from "vue";
|
|
2
2
|
import "./components/Combobox/core/Combobox.js";
|
|
3
|
-
const y = [".labelHidden", ".labelPosition", ".noLabel", ".disabled", ".invalid", ".clearable", ".readonly", ".required", ".loading", ".multiple", ".closeOnSelect", ".options", ".value", ".defaultValue", ".maxOptionsVisible", "placeholder", "label", "ariaLabel", "helpText", "errorMessage", "autocomplete", "filterMode", "size", "variant", "loadingText", "noResultsText"],
|
|
3
|
+
const y = [".labelHidden", ".labelPosition", ".noLabel", ".disabled", ".invalid", ".clearable", ".readonly", ".required", ".validationMessages", ".loading", ".multiple", ".closeOnSelect", ".options", ".value", ".defaultValue", ".maxOptionsVisible", "placeholder", "label", "ariaLabel", "helpText", "errorMessage", "autocomplete", "filterMode", "size", "variant", "loadingText", "noResultsText"], M = /* @__PURE__ */ v({
|
|
4
4
|
__name: "VueCombobox",
|
|
5
5
|
props: {
|
|
6
6
|
options: { default: () => [] },
|
|
@@ -30,16 +30,17 @@ const y = [".labelHidden", ".labelPosition", ".noLabel", ".disabled", ".invalid"
|
|
|
30
30
|
maxOptionsVisible: { default: 3 },
|
|
31
31
|
loading: { type: Boolean, default: !1 },
|
|
32
32
|
loadingText: { default: "Loading..." },
|
|
33
|
-
noResultsText: { default: "No results found" }
|
|
33
|
+
noResultsText: { default: "No results found" },
|
|
34
|
+
validationMessages: {}
|
|
34
35
|
},
|
|
35
36
|
emits: ["change", "select", "search", "open", "close", "focus", "blur", "update:value"],
|
|
36
|
-
setup(e, { expose: n, emit:
|
|
37
|
-
const a =
|
|
37
|
+
setup(e, { expose: n, emit: i }) {
|
|
38
|
+
const a = i, t = m(), d = (l) => {
|
|
38
39
|
const o = l;
|
|
39
40
|
a("change", o.detail), a("update:value", o.detail.value);
|
|
40
|
-
}, u = (l) => {
|
|
41
|
-
a("select", l.detail);
|
|
42
41
|
}, s = (l) => {
|
|
42
|
+
a("select", l.detail);
|
|
43
|
+
}, u = (l) => {
|
|
43
44
|
a("search", l.detail);
|
|
44
45
|
}, c = (l) => {
|
|
45
46
|
a("open", l.detail);
|
|
@@ -58,7 +59,7 @@ const y = [".labelHidden", ".labelPosition", ".noLabel", ".disabled", ".invalid"
|
|
|
58
59
|
toggle: () => t.value?.toggle?.(),
|
|
59
60
|
selectOption: (l) => t.value?.selectOption?.(l),
|
|
60
61
|
clearSelection: () => t.value?.clearSelection?.()
|
|
61
|
-
}), (l, o) => (
|
|
62
|
+
}), (l, o) => (h(), g("ag-combobox", {
|
|
62
63
|
ref_key: "comboboxRef",
|
|
63
64
|
ref: t,
|
|
64
65
|
".labelHidden": e.labelHidden,
|
|
@@ -69,6 +70,7 @@ const y = [".labelHidden", ".labelPosition", ".noLabel", ".disabled", ".invalid"
|
|
|
69
70
|
".clearable": e.clearable,
|
|
70
71
|
".readonly": e.readonly,
|
|
71
72
|
".required": e.required,
|
|
73
|
+
".validationMessages": e.validationMessages,
|
|
72
74
|
".loading": e.loading,
|
|
73
75
|
".multiple": e.multiple,
|
|
74
76
|
".closeOnSelect": e.closeOnSelect,
|
|
@@ -87,18 +89,18 @@ const y = [".labelHidden", ".labelPosition", ".noLabel", ".disabled", ".invalid"
|
|
|
87
89
|
variant: e.variant,
|
|
88
90
|
loadingText: e.loadingText,
|
|
89
91
|
noResultsText: e.noResultsText,
|
|
90
|
-
onChange:
|
|
91
|
-
onSelect:
|
|
92
|
-
onSearch:
|
|
92
|
+
onChange: d,
|
|
93
|
+
onSelect: s,
|
|
94
|
+
onSearch: u,
|
|
93
95
|
onOpen: c,
|
|
94
96
|
onClose: f,
|
|
95
97
|
onFocus: r,
|
|
96
98
|
onBlur: b
|
|
97
99
|
}, [
|
|
98
|
-
|
|
100
|
+
x(l.$slots, "default")
|
|
99
101
|
], 40, y));
|
|
100
102
|
}
|
|
101
103
|
});
|
|
102
104
|
export {
|
|
103
|
-
|
|
105
|
+
M as _
|
|
104
106
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as o, createElementBlock as n, openBlock as l, mergeProps as i, renderSlot as r } from "vue";
|
|
2
|
+
import "./components/Icon/core/Icon.js";
|
|
3
|
+
const s = [".size", ".type", ".noFill"], m = /* @__PURE__ */ o({
|
|
4
|
+
__name: "VueIcon",
|
|
5
|
+
props: {
|
|
6
|
+
size: { default: "16" },
|
|
7
|
+
type: { default: "" },
|
|
8
|
+
noFill: { type: Boolean }
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (t, a) => (l(), n("ag-icon", i({
|
|
12
|
+
".size": e.size,
|
|
13
|
+
".type": e.type,
|
|
14
|
+
".noFill": e.noFill
|
|
15
|
+
}, t.$attrs), [
|
|
16
|
+
r(t.$slots, "default")
|
|
17
|
+
], 48, s));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
m as _
|
|
22
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as d, ref as
|
|
1
|
+
import { defineComponent as d, ref as s, onMounted as f, watchEffect as u, createElementBlock as g, openBlock as h, mergeProps as m, renderSlot as o } from "vue";
|
|
2
2
|
import "./components/Image/core/Image.js";
|
|
3
|
-
const
|
|
3
|
+
const k = ["src", "alt", "width", "height", "aspect-ratio", "fit", "position", "loading", ".fade", "duration", "fallback-src"], E = /* @__PURE__ */ d({
|
|
4
4
|
__name: "VueImage",
|
|
5
5
|
props: {
|
|
6
6
|
sources: {},
|
|
@@ -17,15 +17,21 @@ const h = ["src", "alt", "width", "height", "aspect-ratio", "fit", "position", "
|
|
|
17
17
|
fallbackSrc: {}
|
|
18
18
|
},
|
|
19
19
|
emits: ["ag-load", "ag-error"],
|
|
20
|
-
setup(e, { emit:
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
setup(e, { emit: i }) {
|
|
21
|
+
const l = e, a = s(null);
|
|
22
|
+
f(() => {
|
|
23
|
+
u(() => {
|
|
24
|
+
a.value && l.sources && (a.value.sources = l.sources);
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
const r = i, n = (t) => {
|
|
28
|
+
r("ag-load");
|
|
29
|
+
}, c = (t) => {
|
|
30
|
+
r("ag-error");
|
|
25
31
|
};
|
|
26
|
-
return (t,
|
|
27
|
-
ref_key: "
|
|
28
|
-
ref:
|
|
32
|
+
return (t, v) => (h(), g("ag-image", m({
|
|
33
|
+
ref_key: "agImageRef",
|
|
34
|
+
ref: a,
|
|
29
35
|
src: e.src,
|
|
30
36
|
alt: e.alt,
|
|
31
37
|
width: e.width,
|
|
@@ -37,15 +43,15 @@ const h = ["src", "alt", "width", "height", "aspect-ratio", "fit", "position", "
|
|
|
37
43
|
".fade": e.fade,
|
|
38
44
|
duration: e.duration,
|
|
39
45
|
"fallback-src": e.fallbackSrc,
|
|
40
|
-
onAgLoad:
|
|
41
|
-
onAgError:
|
|
46
|
+
onAgLoad: n,
|
|
47
|
+
onAgError: c
|
|
42
48
|
}, t.$attrs), [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
], 48,
|
|
49
|
+
o(t.$slots, "placeholder", { slot: "placeholder" }),
|
|
50
|
+
o(t.$slots, "error", { slot: "error" }),
|
|
51
|
+
o(t.$slots, "default")
|
|
52
|
+
], 48, k));
|
|
47
53
|
}
|
|
48
54
|
});
|
|
49
55
|
export {
|
|
50
|
-
|
|
56
|
+
E as _
|
|
51
57
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as b, createElementBlock as n, openBlock as d, mergeProps as y, createCommentVNode as o, renderSlot as u } from "vue";
|
|
2
2
|
import "./components/Input/core/Input.js";
|
|
3
|
-
const
|
|
3
|
+
const g = [".value", ".labelHidden", ".noLabel", ".capsule", ".rounded", ".underlined", ".underlinedWithBackground", ".inline", ".required", ".disabled", ".readonly", ".invalid", "type", "placeholder", "label", "ariaLabel", "helpText", "errorMessage", "size", "rows", "cols"], B = {
|
|
4
4
|
key: 0,
|
|
5
5
|
slot: "addon-left"
|
|
6
|
-
},
|
|
6
|
+
}, m = {
|
|
7
7
|
key: 1,
|
|
8
8
|
slot: "addon-right"
|
|
9
|
-
},
|
|
9
|
+
}, L = /* @__PURE__ */ b({
|
|
10
10
|
__name: "VueInput",
|
|
11
11
|
props: {
|
|
12
12
|
label: { default: "" },
|
|
@@ -14,6 +14,7 @@ const k = [".value", ".labelHidden", ".noLabel", ".capsule", ".rounded", ".under
|
|
|
14
14
|
labelPosition: {},
|
|
15
15
|
noLabel: { type: Boolean, default: !1 },
|
|
16
16
|
ariaLabel: { default: "" },
|
|
17
|
+
name: {},
|
|
17
18
|
type: { default: "text" },
|
|
18
19
|
value: { default: "" },
|
|
19
20
|
placeholder: { default: "" },
|
|
@@ -34,22 +35,20 @@ const k = [".value", ".labelHidden", ".noLabel", ".capsule", ".rounded", ".under
|
|
|
34
35
|
},
|
|
35
36
|
emits: ["click", "input", "change", "focus", "blur", "update:value"],
|
|
36
37
|
setup(e, { emit: i }) {
|
|
37
|
-
const a = i, r =
|
|
38
|
+
const a = i, r = (l) => {
|
|
38
39
|
a("click", l);
|
|
39
|
-
},
|
|
40
|
+
}, s = (l) => {
|
|
40
41
|
a("input", l);
|
|
41
42
|
const t = l.target;
|
|
42
43
|
a("update:value", t.value);
|
|
43
44
|
}, c = (l) => {
|
|
44
45
|
a("change", l);
|
|
45
|
-
},
|
|
46
|
+
}, f = (l) => {
|
|
46
47
|
a("focus", l);
|
|
47
|
-
},
|
|
48
|
+
}, h = (l) => {
|
|
48
49
|
a("blur", l);
|
|
49
50
|
};
|
|
50
|
-
return (l, t) => (d(), n("ag-input",
|
|
51
|
-
ref_key: "inputRef",
|
|
52
|
-
ref: r,
|
|
51
|
+
return (l, t) => (d(), n("ag-input", y({
|
|
53
52
|
".value": e.value,
|
|
54
53
|
".labelHidden": e.labelHidden,
|
|
55
54
|
".noLabel": e.noLabel,
|
|
@@ -71,21 +70,21 @@ const k = [".value", ".labelHidden", ".noLabel", ".capsule", ".rounded", ".under
|
|
|
71
70
|
size: e.size,
|
|
72
71
|
rows: e.rows,
|
|
73
72
|
cols: e.cols,
|
|
74
|
-
onClick:
|
|
75
|
-
onInput:
|
|
73
|
+
onClick: r,
|
|
74
|
+
onInput: s,
|
|
76
75
|
onChange: c,
|
|
77
|
-
onFocus:
|
|
78
|
-
onBlur:
|
|
76
|
+
onFocus: f,
|
|
77
|
+
onBlur: h
|
|
79
78
|
}, l.$attrs), [
|
|
80
|
-
l.$slots["addon-left"] ? (d(), n("span",
|
|
79
|
+
l.$slots["addon-left"] ? (d(), n("span", B, [
|
|
81
80
|
u(l.$slots, "addon-left")
|
|
82
81
|
])) : o("", !0),
|
|
83
|
-
l.$slots["addon-right"] ? (d(), n("span",
|
|
82
|
+
l.$slots["addon-right"] ? (d(), n("span", m, [
|
|
84
83
|
u(l.$slots, "addon-right")
|
|
85
84
|
])) : o("", !0)
|
|
86
|
-
], 48,
|
|
85
|
+
], 48, g));
|
|
87
86
|
}
|
|
88
87
|
});
|
|
89
88
|
export {
|
|
90
|
-
|
|
89
|
+
L as _
|
|
91
90
|
};
|
|
@@ -20,6 +20,7 @@ const w = [".disabled", ".loading", ".bordered", ".ghost", ".link", ".grouped",
|
|
|
20
20
|
ghost: { type: Boolean },
|
|
21
21
|
link: { type: Boolean },
|
|
22
22
|
grouped: { type: Boolean },
|
|
23
|
+
fullWidth: { type: Boolean },
|
|
23
24
|
type: {},
|
|
24
25
|
disabled: { type: Boolean, default: !1 },
|
|
25
26
|
loading: { type: Boolean },
|
|
@@ -40,10 +41,10 @@ const w = [".disabled", ".loading", ".bordered", ".ghost", ".link", ".grouped",
|
|
|
40
41
|
t("keydown", n);
|
|
41
42
|
}, f = (n) => {
|
|
42
43
|
t("menu-keydown", n);
|
|
43
|
-
},
|
|
44
|
+
}, y = (n) => {
|
|
44
45
|
const a = n;
|
|
45
46
|
t("menu-open", a.detail), t("update:open", a.detail.open);
|
|
46
|
-
},
|
|
47
|
+
}, g = (n) => {
|
|
47
48
|
const a = n;
|
|
48
49
|
t("menu-close", a.detail), t("update:open", a.detail.open);
|
|
49
50
|
}, b = (n) => {
|
|
@@ -70,8 +71,8 @@ const w = [".disabled", ".loading", ".bordered", ".ghost", ".link", ".grouped",
|
|
|
70
71
|
onFocus: m,
|
|
71
72
|
onBlur: s,
|
|
72
73
|
onKeydown: r,
|
|
73
|
-
onMenuOpen:
|
|
74
|
-
onMenuClose:
|
|
74
|
+
onMenuOpen: y,
|
|
75
|
+
onMenuClose: g,
|
|
75
76
|
onMenuSelect: b
|
|
76
77
|
}, n.$attrs), [
|
|
77
78
|
l(n.$slots, "default"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as o, createElementBlock as c, openBlock as u, mergeProps as s, renderSlot as f } from "vue";
|
|
2
2
|
import "./components/Radio/core/Radio.js";
|
|
3
|
-
const
|
|
3
|
+
const b = [".checked", ".disabled", ".required", ".invalid", "name", "value", "size", "theme", "labelText", "labelPosition", "label", "labelHidden", "noLabel", "errorMessage", "helpText"], m = /* @__PURE__ */ o({
|
|
4
4
|
__name: "VueRadio",
|
|
5
5
|
props: {
|
|
6
6
|
name: { default: "" },
|
|
@@ -21,15 +21,13 @@ const h = [".checked", ".disabled", ".required", ".invalid", "name", "value", "s
|
|
|
21
21
|
},
|
|
22
22
|
emits: ["click", "change", "update:checked"],
|
|
23
23
|
setup(e, { emit: d }) {
|
|
24
|
-
const a = d, n =
|
|
24
|
+
const a = d, n = (l) => {
|
|
25
25
|
a("click", l);
|
|
26
|
-
},
|
|
26
|
+
}, i = (l) => {
|
|
27
27
|
const t = l.detail;
|
|
28
28
|
a("change", t), a("update:checked", t.checked);
|
|
29
29
|
};
|
|
30
|
-
return (l, t) => (
|
|
31
|
-
ref_key: "radioRef",
|
|
32
|
-
ref: n,
|
|
30
|
+
return (l, t) => (u(), c("ag-radio", s({
|
|
33
31
|
".checked": e.checked,
|
|
34
32
|
".disabled": e.disabled,
|
|
35
33
|
".required": e.required,
|
|
@@ -45,13 +43,13 @@ const h = [".checked", ".disabled", ".required", ".invalid", "name", "value", "s
|
|
|
45
43
|
noLabel: e.noLabel,
|
|
46
44
|
errorMessage: e.errorMessage,
|
|
47
45
|
helpText: e.helpText,
|
|
48
|
-
onClick:
|
|
49
|
-
onChange:
|
|
46
|
+
onClick: n,
|
|
47
|
+
onChange: i
|
|
50
48
|
}, l.$attrs), [
|
|
51
|
-
|
|
52
|
-
], 48,
|
|
49
|
+
f(l.$slots, "default")
|
|
50
|
+
], 48, b));
|
|
53
51
|
}
|
|
54
52
|
});
|
|
55
53
|
export {
|
|
56
|
-
|
|
54
|
+
m as _
|
|
57
55
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as r, ref as
|
|
1
|
+
import { defineComponent as r, ref as s, createElementBlock as u, openBlock as f, mergeProps as v, renderSlot as m } from "vue";
|
|
2
2
|
import "./components/Rating/core/Rating.js";
|
|
3
|
-
const
|
|
3
|
+
const c = [".value", ".readonly", ".allowClear", ".required", ".invalid", ".validationMessages", "max", "precision", "variant", "size", "name", "label", "labelPosition", "labelHidden", "noLabel", "errorMessage", "helpText"], h = /* @__PURE__ */ r({
|
|
4
4
|
__name: "VueRating",
|
|
5
5
|
props: {
|
|
6
6
|
value: { default: 0 },
|
|
@@ -18,24 +18,26 @@ const v = [".value", ".readonly", ".allowClear", ".required", ".invalid", "max",
|
|
|
18
18
|
required: { type: Boolean, default: !1 },
|
|
19
19
|
invalid: { type: Boolean, default: !1 },
|
|
20
20
|
errorMessage: { default: "" },
|
|
21
|
-
helpText: { default: "" }
|
|
21
|
+
helpText: { default: "" },
|
|
22
|
+
validationMessages: {}
|
|
22
23
|
},
|
|
23
24
|
emits: ["update:value", "change", "hover"],
|
|
24
25
|
setup(e, { emit: n }) {
|
|
25
|
-
const t = n,
|
|
26
|
+
const t = n, i = s(), o = (a) => {
|
|
26
27
|
const l = a;
|
|
27
28
|
t("change", l.detail), t("update:value", l.detail.newValue);
|
|
28
29
|
}, d = (a) => {
|
|
29
30
|
t("hover", a.detail);
|
|
30
31
|
};
|
|
31
|
-
return (a, l) => (f(),
|
|
32
|
+
return (a, l) => (f(), u("ag-rating", v({
|
|
32
33
|
ref_key: "ratingRef",
|
|
33
|
-
ref:
|
|
34
|
+
ref: i,
|
|
34
35
|
".value": e.value,
|
|
35
36
|
".readonly": e.readonly,
|
|
36
37
|
".allowClear": e.allowClear,
|
|
37
38
|
".required": e.required,
|
|
38
39
|
".invalid": e.invalid,
|
|
40
|
+
".validationMessages": e.validationMessages,
|
|
39
41
|
max: e.max,
|
|
40
42
|
precision: e.precision,
|
|
41
43
|
variant: e.variant,
|
|
@@ -47,11 +49,11 @@ const v = [".value", ".readonly", ".allowClear", ".required", ".invalid", "max",
|
|
|
47
49
|
noLabel: e.noLabel,
|
|
48
50
|
errorMessage: e.errorMessage,
|
|
49
51
|
helpText: e.helpText,
|
|
50
|
-
onRatingChange:
|
|
52
|
+
onRatingChange: o,
|
|
51
53
|
onRatingHover: d
|
|
52
54
|
}, a.$attrs), [
|
|
53
|
-
|
|
54
|
-
], 48,
|
|
55
|
+
m(a.$slots, "default")
|
|
56
|
+
], 48, c));
|
|
55
57
|
}
|
|
56
58
|
});
|
|
57
59
|
export {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent as a, createElementBlock as t, openBlock as o, mergeProps as d, renderSlot as n } from "vue";
|
|
2
|
+
import "./components/SelectionButton/core/SelectionButton.js";
|
|
3
|
+
const c = ["value", "label", ".checked", ".disabled"], i = /* @__PURE__ */ a({
|
|
4
|
+
__name: "VueSelectionButton",
|
|
5
|
+
props: {
|
|
6
|
+
value: { default: "" },
|
|
7
|
+
label: { default: "" },
|
|
8
|
+
checked: { type: Boolean, default: !1 },
|
|
9
|
+
disabled: { type: Boolean, default: !1 }
|
|
10
|
+
},
|
|
11
|
+
setup(e) {
|
|
12
|
+
return (l, s) => (o(), t("ag-selection-button", d({
|
|
13
|
+
value: e.value,
|
|
14
|
+
label: e.label,
|
|
15
|
+
".checked": e.checked,
|
|
16
|
+
".disabled": e.disabled
|
|
17
|
+
}, l.$attrs), [
|
|
18
|
+
n(l.$slots, "default")
|
|
19
|
+
], 48, c));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
i as _
|
|
24
|
+
};
|