@poppy-ui/vue 0.6.0-rc.1 → 0.6.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/actions/button/Button.d.ts +4 -1
- package/dist/components/actions/button/Button.d.ts.map +1 -1
- package/dist/components/actions/button/button.props.d.ts +1 -2
- package/dist/components/actions/button/button.props.d.ts.map +1 -1
- package/dist/components/actions/dropdown/Dropdown.d.ts +7 -7
- package/dist/components/actions/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/actions/dropdown/dropdown.props.d.ts +1 -2
- package/dist/components/actions/dropdown/dropdown.props.d.ts.map +1 -1
- package/dist/components/actions/modal/Modal.d.ts +5 -2
- package/dist/components/actions/modal/Modal.d.ts.map +1 -1
- package/dist/components/actions/modal/modal.props.d.ts +2 -3
- package/dist/components/actions/modal/modal.props.d.ts.map +1 -1
- package/dist/components/actions/public.es.js +120 -116
- package/dist/components/actions/public.es.js.map +1 -1
- package/dist/components/actions/public.umd.js +1 -1
- package/dist/components/actions/public.umd.js.map +1 -1
- package/dist/components/actions/swap/Swap.d.ts.map +1 -1
- package/dist/components/actions/swap/swap.props.d.ts +1 -2
- package/dist/components/actions/swap/swap.props.d.ts.map +1 -1
- package/dist/components/data/checkbox/Checkbox.d.ts +6 -1
- package/dist/components/data/checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/data/checkbox/checkbox.props.d.ts +12 -3
- package/dist/components/data/checkbox/checkbox.props.d.ts.map +1 -1
- package/dist/components/data/field-set/FieldSet.d.ts +21 -0
- package/dist/components/data/field-set/FieldSet.d.ts.map +1 -0
- package/dist/components/data/field-set/field-set.props.d.ts +20 -0
- package/dist/components/data/field-set/field-set.props.d.ts.map +1 -0
- package/dist/components/data/form/Form.d.ts.map +1 -1
- package/dist/components/data/form/form.context.d.ts +4 -0
- package/dist/components/data/form/form.context.d.ts.map +1 -1
- package/dist/components/data/form/form.props.d.ts +2 -2
- package/dist/components/data/form/form.props.d.ts.map +1 -1
- package/dist/components/data/form-field/FormField.d.ts +4 -2
- package/dist/components/data/form-field/FormField.d.ts.map +1 -1
- package/dist/components/data/form-field/form-field.context.d.ts +16 -0
- package/dist/components/data/form-field/form-field.context.d.ts.map +1 -1
- package/dist/components/data/form-field/form-field.props.d.ts +10 -3
- package/dist/components/data/form-field/form-field.props.d.ts.map +1 -1
- package/dist/components/data/input/Input.d.ts +6 -19
- package/dist/components/data/input/Input.d.ts.map +1 -1
- package/dist/components/data/input/input.props.d.ts +12 -7
- package/dist/components/data/input/input.props.d.ts.map +1 -1
- package/dist/components/data/public.d.ts +2 -0
- package/dist/components/data/public.d.ts.map +1 -1
- package/dist/components/data/public.es.js +949 -692
- package/dist/components/data/public.es.js.map +1 -1
- package/dist/components/data/public.umd.js +1 -1
- package/dist/components/data/public.umd.js.map +1 -1
- package/dist/components/data/radio/Radio.d.ts +6 -1
- package/dist/components/data/radio/Radio.d.ts.map +1 -1
- package/dist/components/data/radio/radio.props.d.ts +7 -1
- package/dist/components/data/radio/radio.props.d.ts.map +1 -1
- package/dist/components/data/radio-group/RadioGroup.d.ts +28 -0
- package/dist/components/data/radio-group/RadioGroup.d.ts.map +1 -0
- package/dist/components/data/radio-group/radio-group.context.d.ts +13 -0
- package/dist/components/data/radio-group/radio-group.context.d.ts.map +1 -0
- package/dist/components/data/radio-group/radio-group.props.d.ts +12 -0
- package/dist/components/data/radio-group/radio-group.props.d.ts.map +1 -0
- package/dist/components/data/rating/Rating.d.ts +4 -1
- package/dist/components/data/rating/Rating.d.ts.map +1 -1
- package/dist/components/data/rating/rating.props.d.ts +2 -3
- package/dist/components/data/rating/rating.props.d.ts.map +1 -1
- package/dist/components/data/select/Select.d.ts +4 -0
- package/dist/components/data/select/Select.d.ts.map +1 -1
- package/dist/components/data/slider/Slider.d.ts +4 -1
- package/dist/components/data/slider/Slider.d.ts.map +1 -1
- package/dist/components/data/slider/slider.props.d.ts +1 -2
- package/dist/components/data/slider/slider.props.d.ts.map +1 -1
- package/dist/components/data/textarea/Textarea.d.ts +8 -30
- package/dist/components/data/textarea/Textarea.d.ts.map +1 -1
- package/dist/components/data/textarea/textarea.props.d.ts +6 -8
- package/dist/components/data/textarea/textarea.props.d.ts.map +1 -1
- package/dist/components/data/toggle/Toggle.d.ts +6 -3
- package/dist/components/data/toggle/Toggle.d.ts.map +1 -1
- package/dist/components/data/toggle/toggle.props.d.ts +11 -1
- package/dist/components/data/toggle/toggle.props.d.ts.map +1 -1
- package/dist/components/display/avatar/Avatar.d.ts.map +1 -1
- package/dist/components/display/avatar/avatar.props.d.ts +2 -3
- package/dist/components/display/avatar/avatar.props.d.ts.map +1 -1
- package/dist/components/display/card/Card.d.ts.map +1 -1
- package/dist/components/display/card/card.props.d.ts +2 -3
- package/dist/components/display/card/card.props.d.ts.map +1 -1
- package/dist/components/display/carousel/Carousel.d.ts.map +1 -1
- package/dist/components/display/carousel/carousel.props.d.ts +3 -4
- package/dist/components/display/carousel/carousel.props.d.ts.map +1 -1
- package/dist/components/display/countdown/Countdown.d.ts +1 -1
- package/dist/components/display/countdown/Countdown.d.ts.map +1 -1
- package/dist/components/display/countdown/countdown.context.d.ts +2 -0
- package/dist/components/display/countdown/countdown.context.d.ts.map +1 -0
- package/dist/components/display/countdown/countdown.props.d.ts +10 -8
- package/dist/components/display/countdown/countdown.props.d.ts.map +1 -1
- package/dist/components/display/public.es.js +1 -1
- package/dist/components/display/public.umd.js +1 -1
- package/dist/components/feedback/progress/Progress.d.ts.map +1 -1
- package/dist/components/feedback/progress/progress.props.d.ts +1 -2
- package/dist/components/feedback/progress/progress.props.d.ts.map +1 -1
- package/dist/components/feedback/public.es.js +40 -41
- package/dist/components/feedback/public.es.js.map +1 -1
- package/dist/components/feedback/public.umd.js +1 -1
- package/dist/components/feedback/public.umd.js.map +1 -1
- package/dist/components/layout/drawer/Drawer.d.ts +5 -5
- package/dist/components/layout/drawer/Drawer.d.ts.map +1 -1
- package/dist/components/layout/drawer/drawer.props.d.ts +1 -2
- package/dist/components/layout/drawer/drawer.props.d.ts.map +1 -1
- package/dist/components/layout/indicator/Indicator.d.ts.map +1 -1
- package/dist/components/layout/indicator/indicator.props.d.ts +1 -2
- package/dist/components/layout/indicator/indicator.props.d.ts.map +1 -1
- package/dist/components/layout/mask/Mask.d.ts.map +1 -1
- package/dist/components/layout/mask/mask.props.d.ts +1 -2
- package/dist/components/layout/mask/mask.props.d.ts.map +1 -1
- package/dist/components/layout/public.es.js +78 -79
- package/dist/components/layout/public.es.js.map +1 -1
- package/dist/components/layout/public.umd.js +1 -1
- package/dist/components/layout/public.umd.js.map +1 -1
- package/dist/components/media/img/Img.d.ts +15 -0
- package/dist/components/media/img/Img.d.ts.map +1 -0
- package/dist/components/media/img/img.context.d.ts +2 -0
- package/dist/components/media/img/img.context.d.ts.map +1 -0
- package/dist/components/media/img/img.props.d.ts +76 -0
- package/dist/components/media/img/img.props.d.ts.map +1 -0
- package/dist/components/media/img/img.types.d.ts +33 -0
- package/dist/components/media/img/img.types.d.ts.map +1 -0
- package/dist/components/media/public.d.ts +2 -0
- package/dist/components/media/public.d.ts.map +1 -0
- package/dist/components/media/public.es.js +143 -0
- package/dist/components/media/public.es.js.map +1 -0
- package/dist/components/media/public.types.d.ts +3 -0
- package/dist/components/media/public.types.d.ts.map +1 -0
- package/dist/components/media/public.umd.js +2 -0
- package/dist/components/media/public.umd.js.map +1 -0
- package/dist/components/navigation/link/Link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.props.d.ts +1 -2
- package/dist/components/navigation/link/link.props.d.ts.map +1 -1
- package/dist/components/navigation/menu/MenuItem.d.ts.map +1 -1
- package/dist/components/navigation/menu/menu.props.d.ts +4 -5
- package/dist/components/navigation/menu/menu.props.d.ts.map +1 -1
- package/dist/components/navigation/public.es.js +1 -1
- package/dist/components/navigation/public.umd.js +1 -1
- package/dist/components/navigation/tab/Tab.d.ts +4 -1
- package/dist/components/navigation/tab/Tab.d.ts.map +1 -1
- package/dist/components/navigation/tab/tab.props.d.ts +2 -3
- package/dist/components/navigation/tab/tab.props.d.ts.map +1 -1
- package/dist/composables/public.es.js +1 -1
- package/dist/composables/public.umd.js +1 -1
- package/dist/composables/use-form-field.d.ts.map +1 -1
- package/dist/config/config.type.d.ts +4 -0
- package/dist/config/config.type.d.ts.map +1 -1
- package/dist/public-1PFjXgZ6.cjs +2 -0
- package/dist/public-1PFjXgZ6.cjs.map +1 -0
- package/dist/public-D_MhbTxP.cjs +2 -0
- package/dist/public-D_MhbTxP.cjs.map +1 -0
- package/dist/public-Dqelew6J.js +615 -0
- package/dist/public-Dqelew6J.js.map +1 -0
- package/dist/public-H9TCdoJr.js +296 -0
- package/dist/public-H9TCdoJr.js.map +1 -0
- package/dist/public.d.ts +1 -0
- package/dist/public.d.ts.map +1 -1
- package/dist/public.es.js.map +1 -1
- package/dist/public.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/utils.type.d.ts +0 -1
- package/dist/types/utils.type.d.ts.map +1 -1
- package/dist/use-select-counter-CgQha-_T.cjs +2 -0
- package/dist/use-select-counter-CgQha-_T.cjs.map +1 -0
- package/dist/{use-select-counter-D8ecaYEi.js → use-select-counter-D_-Qwz61.js} +37 -31
- package/dist/use-select-counter-D_-Qwz61.js.map +1 -0
- package/package.json +7 -1
- package/src/components/actions/button/Button.story.vue +2 -5
- package/src/components/actions/button/Button.vue +11 -4
- package/src/components/actions/button/button.props.ts +1 -12
- package/src/components/actions/dropdown/Dropdown.story.vue +19 -19
- package/src/components/actions/dropdown/Dropdown.vue +15 -16
- package/src/components/actions/dropdown/dropdown.props.ts +1 -9
- package/src/components/actions/modal/Modal.story.vue +18 -17
- package/src/components/actions/modal/Modal.vue +18 -16
- package/src/components/actions/modal/modal.props.ts +2 -7
- package/src/components/actions/swap/Swap.story.vue +1 -1
- package/src/components/actions/swap/Swap.vue +3 -4
- package/src/components/actions/swap/swap.props.ts +1 -4
- package/src/components/data/checkbox/Checkbox.story.vue +71 -21
- package/src/components/data/checkbox/Checkbox.vue +54 -34
- package/src/components/data/checkbox/checkbox.props.ts +12 -8
- package/src/components/data/field-set/FieldSet.story.vue +163 -0
- package/src/components/data/field-set/FieldSet.vue +22 -0
- package/src/components/data/field-set/field-set.props.ts +21 -0
- package/src/components/data/form/Form.story.vue +1 -1
- package/src/components/data/form/Form.vue +21 -8
- package/src/components/data/form/form.context.ts +6 -0
- package/src/components/data/form/form.props.ts +2 -2
- package/src/components/data/form-field/FormField.vue +84 -41
- package/src/components/data/form-field/form-field.context.ts +20 -0
- package/src/components/data/form-field/form-field.props.ts +11 -3
- package/src/components/data/input/Input.story.vue +103 -46
- package/src/components/data/input/Input.vue +117 -80
- package/src/components/data/input/input.props.ts +12 -8
- package/src/components/data/public.ts +2 -0
- package/src/components/data/radio/Radio.story.vue +97 -27
- package/src/components/data/radio/Radio.vue +86 -39
- package/src/components/data/radio/radio.props.ts +8 -1
- package/src/components/data/radio-group/RadioGroup.story.vue +155 -0
- package/src/components/data/radio-group/RadioGroup.vue +65 -0
- package/src/components/data/radio-group/radio-group.context.ts +14 -0
- package/src/components/data/radio-group/radio-group.props.ts +12 -0
- package/src/components/data/rating/Rating.story.vue +3 -3
- package/src/components/data/rating/Rating.vue +18 -6
- package/src/components/data/rating/rating.props.ts +2 -10
- package/src/components/data/select/Select.story.vue +21 -14
- package/src/components/data/select/Select.vue +44 -31
- package/src/components/data/slider/Slider.vue +30 -0
- package/src/components/data/slider/slider.props.ts +1 -16
- package/src/components/data/textarea/Textarea.story.vue +35 -35
- package/src/components/data/textarea/Textarea.vue +76 -87
- package/src/components/data/textarea/textarea.props.ts +7 -11
- package/src/components/data/toggle/Toggle.story.vue +66 -17
- package/src/components/data/toggle/Toggle.vue +53 -32
- package/src/components/data/toggle/toggle.props.ts +11 -1
- package/src/components/display/avatar/Avatar.story.vue +2 -2
- package/src/components/display/avatar/Avatar.vue +2 -3
- package/src/components/display/avatar/avatar.props.ts +2 -8
- package/src/components/display/card/Card.story.vue +2 -2
- package/src/components/display/card/Card.vue +2 -3
- package/src/components/display/card/card.props.ts +2 -7
- package/src/components/display/carousel/Carousel.story.vue +4 -4
- package/src/components/display/carousel/Carousel.vue +3 -4
- package/src/components/display/carousel/carousel.props.ts +3 -11
- package/src/components/display/countdown/Countdown.story.vue +4 -3
- package/src/components/display/countdown/Countdown.vue +4 -1
- package/src/components/display/countdown/countdown.context.ts +3 -0
- package/src/components/display/countdown/countdown.props.ts +11 -9
- package/src/components/feedback/progress/Progress.story.vue +1 -1
- package/src/components/feedback/progress/Progress.vue +1 -2
- package/src/components/feedback/progress/progress.props.ts +1 -6
- package/src/components/layout/drawer/Drawer.story.vue +22 -22
- package/src/components/layout/drawer/Drawer.vue +12 -15
- package/src/components/layout/drawer/drawer.props.ts +1 -7
- package/src/components/layout/indicator/Indicator.story.vue +5 -5
- package/src/components/layout/indicator/Indicator.vue +1 -2
- package/src/components/layout/indicator/indicator.props.ts +1 -5
- package/src/components/layout/mask/Mask.story.vue +1 -1
- package/src/components/layout/mask/Mask.vue +1 -2
- package/src/components/layout/mask/mask.props.ts +1 -5
- package/src/components/media/img/Img.story.vue +214 -0
- package/src/components/media/img/Img.vue +189 -0
- package/src/components/media/img/img.context.ts +3 -0
- package/src/components/media/img/img.props.ts +88 -0
- package/src/components/media/img/img.types.ts +35 -0
- package/src/components/media/public.ts +1 -0
- package/src/components/media/public.types.ts +3 -0
- package/src/components/navigation/link/Link.story.vue +1 -1
- package/src/components/navigation/link/Link.vue +1 -2
- package/src/components/navigation/link/link.props.ts +1 -5
- package/src/components/navigation/menu/Menu.story.vue +4 -4
- package/src/components/navigation/menu/MenuItem.vue +4 -5
- package/src/components/navigation/menu/menu.props.ts +4 -15
- package/src/components/navigation/tab/Tab.story.vue +8 -8
- package/src/components/navigation/tab/Tab.vue +13 -6
- package/src/components/navigation/tab/tab.props.ts +2 -14
- package/src/composables/use-form-field.ts +16 -1
- package/src/config/config.type.ts +6 -0
- package/src/public.ts +1 -0
- package/src/types/utils.type.ts +0 -2
- package/dist/is-true-B9ixxcRp.js +0 -8
- package/dist/is-true-B9ixxcRp.js.map +0 -1
- package/dist/is-true-D7MXJ1b7.cjs +0 -2
- package/dist/is-true-D7MXJ1b7.cjs.map +0 -1
- package/dist/public-BMG6LJJ8.cjs +0 -2
- package/dist/public-BMG6LJJ8.cjs.map +0 -1
- package/dist/public-D5oNKqE5.js +0 -293
- package/dist/public-D5oNKqE5.js.map +0 -1
- package/dist/public-DBWGO13i.js +0 -616
- package/dist/public-DBWGO13i.js.map +0 -1
- package/dist/public-xug_FQFy.cjs +0 -2
- package/dist/public-xug_FQFy.cjs.map +0 -1
- package/dist/use-select-counter-BynHkRks.cjs +0 -2
- package/dist/use-select-counter-BynHkRks.cjs.map +0 -1
- package/dist/use-select-counter-D8ecaYEi.js.map +0 -1
- package/dist/utils/is-true.d.ts +0 -3
- package/dist/utils/is-true.d.ts.map +0 -1
- package/src/utils/is-true.ts +0 -12
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { ButtonProps } from './button.props';
|
|
2
2
|
declare const _default: typeof __VLS_export;
|
|
3
3
|
export default _default;
|
|
4
|
-
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<ButtonProps, {
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<ButtonProps, {
|
|
5
|
+
$el: Readonly<import('vue').ShallowRef<any, any>>;
|
|
6
|
+
focus: () => any;
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
8
|
click: (event: MouseEvent) => any;
|
|
6
9
|
}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
7
10
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/Button.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/Button.vue"],"names":[],"mappings":"AAuHA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;wBAsC5B,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;;;;;;;;cAwIJ,CAAC,KAAK,IAAiB,KAAK,GAAG;;cAC/B,CAAC,KAAK,IAAiB,KAAK,GAAG;EAazC,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Booleanish } from '../../../types/utils.type';
|
|
2
1
|
import { ButtonHTMLAttributes } from 'vue';
|
|
3
2
|
import { RouteLocationRaw } from 'vue-router';
|
|
4
3
|
import { ButtonBehavior, ButtonColor, ButtonShape, ButtonSize, ButtonVariant } from './button.types';
|
|
@@ -48,7 +47,7 @@ export interface ButtonProps extends ButtonConfigurableProps, NativeButton {
|
|
|
48
47
|
* When `true`, displays a loading spinner and disables the button.
|
|
49
48
|
* Supports both `boolean` and string-based `true`/`false`.
|
|
50
49
|
*/
|
|
51
|
-
loading?:
|
|
50
|
+
loading?: boolean;
|
|
52
51
|
/**
|
|
53
52
|
* If provided, the component renders as a `RouterLink`.
|
|
54
53
|
* Can be a string path or a RouteLocation object.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.props.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"button.props.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,KAAK,CAAA;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACzG,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAA;CACpB;AACD;;GAEG;AACH,UAAU,YAAY;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAA;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAA;IAC3C;;OAEG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAA;CACpC;AACD,MAAM,WAAW,WAAY,SAAQ,uBAAuB,EAAE,YAAY;IACxE;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,EAAE,CAAC,EAAE,gBAAgB,CAAA;CACtB"}
|
|
@@ -2,16 +2,16 @@ import { DropdownProps } from './dropdown.props';
|
|
|
2
2
|
declare const _default: typeof __VLS_export;
|
|
3
3
|
export default _default;
|
|
4
4
|
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<DropdownProps, {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
open: () => void;
|
|
6
|
+
close: () => void;
|
|
7
7
|
toggle: () => void;
|
|
8
|
-
$
|
|
8
|
+
$el: Readonly<import('vue').ShallowRef<HTMLDivElement | null, HTMLDivElement | null>>;
|
|
9
9
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
open: () => any;
|
|
11
|
+
close: () => any;
|
|
12
12
|
}, string, import('vue').PublicProps, Readonly<DropdownProps> & Readonly<{
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
onOpen?: (() => any) | undefined;
|
|
14
|
+
onClose?: (() => any) | undefined;
|
|
15
15
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
16
16
|
trigger?: (props: {}) => any;
|
|
17
17
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/dropdown/Dropdown.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Dropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/dropdown/Dropdown.vue"],"names":[],"mappings":"AAkOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;wBAchC,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;;;;;;;;;;;;cAmPJ,CAAC,KAAK,IAAgB,KAAK,GAAG;;cAC9B,CAAC,KAAK,IAAgB,KAAK,GAAG;EAaxC,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Booleanish } from '../../../types/utils.type';
|
|
2
1
|
import { ClassValue } from 'vue';
|
|
3
2
|
import { DropdownAlign, DropdownSide, DropdownTriggerAction } from './dropdown.types';
|
|
4
3
|
export interface DropdownConfigurableProps {
|
|
@@ -44,7 +43,7 @@ export interface DropdownProps extends DropdownConfigurableProps {
|
|
|
44
43
|
*
|
|
45
44
|
* @default false
|
|
46
45
|
*/
|
|
47
|
-
open?:
|
|
46
|
+
open?: boolean;
|
|
48
47
|
/**
|
|
49
48
|
* CSS class to apply to the trigger element.
|
|
50
49
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.props.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/dropdown/dropdown.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"dropdown.props.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/dropdown/dropdown.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAC1F,MAAM,WAAW,yBAAyB;IACxC;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,qBAAqB,CAAA;IACrC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AACD,MAAM,WAAW,aAAc,SAAQ,yBAAyB;IAC9D;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IACd;;;;OAIG;IACH,YAAY,CAAC,EAAE,UAAU,CAAA;IACzB;;;;OAIG;IACH,YAAY,CAAC,EAAE,UAAU,CAAA;CAC1B"}
|
|
@@ -10,9 +10,11 @@ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<ModalP
|
|
|
10
10
|
*/
|
|
11
11
|
modelValue?: boolean;
|
|
12
12
|
}, {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
$el: Readonly<import('vue').ShallowRef<HTMLDialogElement | null, HTMLDialogElement | null>>;
|
|
14
|
+
open: () => void;
|
|
15
|
+
close: () => void;
|
|
15
16
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
open: () => any;
|
|
16
18
|
close: () => any;
|
|
17
19
|
"update:modelValue": (value: boolean) => any;
|
|
18
20
|
}, string, import('vue').PublicProps, Readonly<ModalProps & {
|
|
@@ -24,6 +26,7 @@ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<ModalP
|
|
|
24
26
|
*/
|
|
25
27
|
modelValue?: boolean;
|
|
26
28
|
}> & Readonly<{
|
|
29
|
+
onOpen?: (() => any) | undefined;
|
|
27
30
|
onClose?: (() => any) | undefined;
|
|
28
31
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
29
32
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/modal/Modal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/modal/Modal.vue"],"names":[],"mappings":"AAgHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;wBAU1B,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;IA8ElB;;;;;OAKG;iBACU,OAAO;;;;;;;;;;IANpB;;;;;OAKG;iBACU,OAAO;;;;;;cA8DN,CAAC,KAAK,IAAgB,KAAK,GAAG;;cAC9B,CAAC,KAAK,IAAgB,KAAK,GAAG;EAaxC,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Booleanish } from '../../../types/utils.type';
|
|
2
1
|
import { ModalPlacement } from './modal.types';
|
|
3
2
|
export interface ModalConfigurableProps {
|
|
4
3
|
/**
|
|
@@ -17,7 +16,7 @@ export interface ModalConfigurableProps {
|
|
|
17
16
|
*
|
|
18
17
|
* @default false
|
|
19
18
|
*/
|
|
20
|
-
closeOnBackdrop?:
|
|
19
|
+
closeOnBackdrop?: boolean;
|
|
21
20
|
/**
|
|
22
21
|
* When `true`, the modal content is rendered even while the modal is closed.
|
|
23
22
|
* Useful to preserve internal component state between open/close cycles.
|
|
@@ -25,7 +24,7 @@ export interface ModalConfigurableProps {
|
|
|
25
24
|
*
|
|
26
25
|
* @default false
|
|
27
26
|
*/
|
|
28
|
-
loadContentWhenClose?:
|
|
27
|
+
loadContentWhenClose?: boolean;
|
|
29
28
|
}
|
|
30
29
|
export interface ModalProps extends ModalConfigurableProps {
|
|
31
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.props.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/modal/modal.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"modal.props.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/modal/modal.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AACnD,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;;;;OAMG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AACD,MAAM,WAAW,UAAW,SAAQ,sBAAsB;CAAG"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { t as e } from "../../symbol-CziS7Pho.js";
|
|
2
2
|
import { n as t } from "../../use-component-config-CaJQbJOW.js";
|
|
3
3
|
import { n, t as r } from "../../build-class.util-Cp-ZBFgO.js";
|
|
4
|
-
import { t as i } from "../../
|
|
5
|
-
import { t as a } from "../../
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { RouterLink as F } from "vue-router";
|
|
4
|
+
import { t as i } from "../../_plugin-vue_export-helper-B3ysoDQm.js";
|
|
5
|
+
import { t as a } from "../../ClassWrapper-DdnnHfAj.js";
|
|
6
|
+
import { Fragment as o, Teleport as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, guardReactiveProps as h, mergeModels as g, mergeProps as _, normalizeClass as v, normalizeProps as y, openBlock as b, renderSlot as x, resolveDynamicComponent as S, shallowRef as C, unref as w, useAttrs as T, useCssVars as E, useId as D, useModel as O, useTemplateRef as k, watch as A, withCtx as j, withKeys as M, withModifiers as N } from "vue";
|
|
7
|
+
import { RouterLink as P } from "vue-router";
|
|
9
8
|
//#region src/components/actions/button/button.context.ts
|
|
10
|
-
var
|
|
9
|
+
var F = e("button"), I = {
|
|
11
10
|
neutral: "btn-neutral",
|
|
12
11
|
primary: "btn-primary",
|
|
13
12
|
secondary: "btn-secondary",
|
|
@@ -16,31 +15,31 @@ var I = e("button"), L = {
|
|
|
16
15
|
success: "btn-success",
|
|
17
16
|
warning: "btn-warning",
|
|
18
17
|
error: "btn-error"
|
|
19
|
-
},
|
|
18
|
+
}, L = {
|
|
20
19
|
solid: "btn-solid",
|
|
21
20
|
outline: "btn-outline",
|
|
22
21
|
dash: "btn-dash",
|
|
23
22
|
soft: "btn-soft",
|
|
24
23
|
ghost: "btn-ghost",
|
|
25
24
|
link: "btn-link"
|
|
26
|
-
},
|
|
25
|
+
}, R = {
|
|
27
26
|
xs: "btn-xs",
|
|
28
27
|
sm: "btn-sm",
|
|
29
28
|
md: "btn-md",
|
|
30
29
|
lg: "btn-lg",
|
|
31
30
|
xl: "btn-xl"
|
|
32
|
-
},
|
|
31
|
+
}, z = {
|
|
33
32
|
wide: "btn-wide",
|
|
34
33
|
block: "btn-block",
|
|
35
34
|
square: "btn-square",
|
|
36
35
|
circle: "btn-circle"
|
|
37
|
-
},
|
|
36
|
+
}, B = {
|
|
38
37
|
active: "btn-active",
|
|
39
38
|
disabled: "btn-disabled"
|
|
40
|
-
},
|
|
39
|
+
}, V = /* @__PURE__ */ m({
|
|
41
40
|
__name: "Button",
|
|
42
41
|
props: {
|
|
43
|
-
loading: { type:
|
|
42
|
+
loading: { type: Boolean },
|
|
44
43
|
to: {},
|
|
45
44
|
color: {},
|
|
46
45
|
variant: {},
|
|
@@ -52,31 +51,35 @@ var I = e("button"), L = {
|
|
|
52
51
|
form: {}
|
|
53
52
|
},
|
|
54
53
|
emits: ["click"],
|
|
55
|
-
setup(e) {
|
|
56
|
-
let a = e, o = t(
|
|
54
|
+
setup(e, { expose: i }) {
|
|
55
|
+
let a = e, o = t(F, a, { type: "button" }), { class: s, ...d } = T(), p = c(() => a.to ? P : "button"), m = c(() => a.disabled ? B.disabled : ""), h = c(() => a.behavior === "disabled" || a.disabled ? {
|
|
57
56
|
disabled: !0,
|
|
58
57
|
"aria-disabled": !0,
|
|
59
58
|
tabIndex: -1
|
|
60
|
-
} : {});
|
|
61
|
-
return (
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
59
|
+
} : {}), g = k("button-el");
|
|
60
|
+
return i({
|
|
61
|
+
$el: g,
|
|
62
|
+
focus: () => g.value?.focus()
|
|
63
|
+
}), (e, t) => (b(), l(S(p.value), _({
|
|
64
|
+
ref: "button-el",
|
|
65
|
+
type: w(o).type,
|
|
66
|
+
class: ["btn", w(r)([
|
|
67
|
+
w(n)(I, w(o).color),
|
|
68
|
+
w(n)(L, w(o).variant),
|
|
69
|
+
w(n)(R, w(o).size),
|
|
70
|
+
w(n)(z, w(o).shape),
|
|
71
|
+
w(n)(B, w(o).behavior),
|
|
69
72
|
m.value,
|
|
70
|
-
|
|
73
|
+
w(s)
|
|
71
74
|
])]
|
|
72
75
|
}, {
|
|
73
|
-
...
|
|
76
|
+
...d,
|
|
74
77
|
...h.value
|
|
75
78
|
}, {
|
|
76
|
-
to:
|
|
79
|
+
to: w(o).to,
|
|
77
80
|
onClick: t[0] ||= (t) => e.$emit("click", t)
|
|
78
81
|
}), {
|
|
79
|
-
default:
|
|
82
|
+
default: j(() => [w(o).loading ? x(e.$slots, "loading", { key: 0 }, () => [t[1] ||= f("span", { class: "loading loading-spinner" }, null, -1)]) : u("", !0), x(e.$slots, "default")]),
|
|
80
83
|
_: 3
|
|
81
84
|
}, 16, [
|
|
82
85
|
"type",
|
|
@@ -84,19 +87,19 @@ var I = e("button"), L = {
|
|
|
84
87
|
"to"
|
|
85
88
|
]));
|
|
86
89
|
}
|
|
87
|
-
}),
|
|
90
|
+
}), H = e("dropdown"), U = {
|
|
88
91
|
center: "dropdown-center",
|
|
89
92
|
end: "dropdown-end",
|
|
90
93
|
start: "dropdown-start"
|
|
91
|
-
},
|
|
94
|
+
}, W = {
|
|
92
95
|
bottom: "dropdown-bottom",
|
|
93
96
|
top: "dropdown-top",
|
|
94
97
|
left: "dropdown-left",
|
|
95
98
|
right: "dropdown-right"
|
|
96
|
-
},
|
|
99
|
+
}, G = /*#__PURE__*/ i(/* @__PURE__ */ m({
|
|
97
100
|
__name: "Dropdown",
|
|
98
101
|
props: {
|
|
99
|
-
open: { type:
|
|
102
|
+
open: { type: Boolean },
|
|
100
103
|
triggerClass: { type: [
|
|
101
104
|
Boolean,
|
|
102
105
|
null,
|
|
@@ -116,128 +119,128 @@ var I = e("button"), L = {
|
|
|
116
119
|
triggerAction: {},
|
|
117
120
|
debounce: {}
|
|
118
121
|
},
|
|
119
|
-
emits: ["
|
|
122
|
+
emits: ["open", "close"],
|
|
120
123
|
setup(e, { expose: i, emit: a }) {
|
|
121
|
-
|
|
122
|
-
let o =
|
|
124
|
+
E((e) => ({ d3d75078: p }));
|
|
125
|
+
let o = k("popover-el"), c = D(), u = `dropdown-${c}`, p = `--anchor-${c}`, m = a, g = t(H, e, {
|
|
123
126
|
align: "start",
|
|
124
127
|
side: "bottom",
|
|
125
128
|
triggerAction: "click",
|
|
126
129
|
open: !1,
|
|
127
130
|
debounce: 500
|
|
128
|
-
}), { class: _, ...
|
|
131
|
+
}), { class: _, ...S } = T();
|
|
129
132
|
function C() {
|
|
130
133
|
o.value?.showPopover();
|
|
131
134
|
}
|
|
132
|
-
function
|
|
135
|
+
function O() {
|
|
133
136
|
o.value?.hidePopover();
|
|
134
137
|
}
|
|
135
|
-
function
|
|
138
|
+
function A() {
|
|
136
139
|
let e = o.value;
|
|
137
|
-
e && (e.matches(":popover-open") ?
|
|
140
|
+
e && (e.matches(":popover-open") ? O() : C());
|
|
138
141
|
}
|
|
139
142
|
let j;
|
|
140
143
|
function M() {
|
|
141
|
-
if (!(
|
|
142
|
-
if (j === "click" &&
|
|
143
|
-
|
|
144
|
+
if (!(g.value.triggerAction !== "click" && g.value.triggerAction !== "hover")) {
|
|
145
|
+
if (j === "click" && g.value.triggerAction === "hover") {
|
|
146
|
+
O();
|
|
144
147
|
return;
|
|
145
148
|
}
|
|
146
|
-
if (
|
|
149
|
+
if (g.value.triggerAction === "hover") {
|
|
147
150
|
j = "click", C();
|
|
148
151
|
return;
|
|
149
152
|
}
|
|
150
|
-
j = "click",
|
|
153
|
+
j = "click", A();
|
|
151
154
|
}
|
|
152
155
|
}
|
|
153
156
|
let N;
|
|
154
157
|
function P() {
|
|
155
|
-
|
|
158
|
+
g.value.triggerAction === "hover" && (j = "hover", clearTimeout(N), C());
|
|
156
159
|
}
|
|
157
160
|
function F() {
|
|
158
|
-
|
|
159
|
-
j === "hover" &&
|
|
160
|
-
},
|
|
161
|
+
g.value.triggerAction === "hover" && (clearTimeout(N), N = setTimeout(() => {
|
|
162
|
+
j === "hover" && O();
|
|
163
|
+
}, g.value.debounce));
|
|
161
164
|
}
|
|
162
165
|
function I(e) {
|
|
163
|
-
|
|
166
|
+
g.value.triggerAction === "context-menu" && (e.preventDefault(), j = "context-menu", A());
|
|
164
167
|
}
|
|
165
168
|
function L(e) {
|
|
166
169
|
[
|
|
167
170
|
"Enter",
|
|
168
171
|
" ",
|
|
169
172
|
"Escape"
|
|
170
|
-
].includes(e.key) && (e.preventDefault(), e.key === "Escape" ?
|
|
173
|
+
].includes(e.key) && (e.preventDefault(), e.key === "Escape" ? O() : A());
|
|
171
174
|
}
|
|
172
175
|
function R(e) {
|
|
173
|
-
e.newState === "open" ? m("
|
|
176
|
+
e.newState === "open" ? m("open") : m("close");
|
|
174
177
|
}
|
|
175
178
|
return i({
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
toggle:
|
|
179
|
-
$
|
|
180
|
-
}), (e, t) => (
|
|
181
|
-
class:
|
|
179
|
+
open: C,
|
|
180
|
+
close: O,
|
|
181
|
+
toggle: A,
|
|
182
|
+
$el: o
|
|
183
|
+
}), (e, t) => (b(), d("div", y(h(S)), [f("button", {
|
|
184
|
+
class: v(["dropdown-trigger", w(g).triggerClass]),
|
|
182
185
|
onClick: M,
|
|
183
186
|
onMouseenter: P,
|
|
184
187
|
onMouseleave: F,
|
|
185
188
|
onContextmenu: I,
|
|
186
189
|
onKeyup: L
|
|
187
|
-
}, [
|
|
190
|
+
}, [x(e.$slots, "trigger", {}, void 0, !0)], 34), (b(), l(s, { to: "body" }, [f("div", {
|
|
188
191
|
ref: "popover-el",
|
|
189
192
|
popover: "",
|
|
190
|
-
id:
|
|
191
|
-
class:
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
id: u,
|
|
194
|
+
class: v(["dropdown", w(r)([
|
|
195
|
+
w(n)(W, w(g).side),
|
|
196
|
+
w(n)(U, w(g).align),
|
|
197
|
+
w(_),
|
|
198
|
+
w(g).contentClass
|
|
196
199
|
])]),
|
|
197
200
|
onMouseenter: P,
|
|
198
201
|
onMouseleave: F,
|
|
199
202
|
onBeforetoggle: R
|
|
200
|
-
}, [
|
|
203
|
+
}, [x(e.$slots, "default", {}, void 0, !0)], 34)]))], 16));
|
|
201
204
|
}
|
|
202
|
-
}), [["__scopeId", "data-v-
|
|
205
|
+
}), [["__scopeId", "data-v-44ca398b"]]), K = e("fab"), q = {
|
|
203
206
|
key: 0,
|
|
204
207
|
class: "fab-close"
|
|
205
|
-
},
|
|
208
|
+
}, J = {
|
|
206
209
|
key: 1,
|
|
207
210
|
class: "fab-main-action"
|
|
208
|
-
},
|
|
211
|
+
}, Y = { flower: "fab-flower" }, X = /* @__PURE__ */ m({
|
|
209
212
|
__name: "Fab",
|
|
210
213
|
props: { mode: {} },
|
|
211
214
|
setup(e) {
|
|
212
|
-
let r = t(
|
|
213
|
-
return (e, t) => (
|
|
214
|
-
e.$slots.close ? (
|
|
215
|
-
e.$slots.mainAction ? (
|
|
216
|
-
|
|
215
|
+
let r = t(K, e);
|
|
216
|
+
return (e, t) => (b(), d("div", { class: v(["fab", w(n)(Y, w(r).mode)]) }, [
|
|
217
|
+
e.$slots.close ? (b(), d("div", q, [x(e.$slots, "close")])) : u("", !0),
|
|
218
|
+
e.$slots.mainAction ? (b(), d("div", J, [x(e.$slots, "main-action")])) : u("", !0),
|
|
219
|
+
x(e.$slots, "default")
|
|
217
220
|
], 2));
|
|
218
221
|
}
|
|
219
|
-
}),
|
|
222
|
+
}), Z = e("modal"), Q = {
|
|
220
223
|
key: 0,
|
|
221
224
|
class: "modal-box"
|
|
222
|
-
},
|
|
225
|
+
}, $ = {
|
|
223
226
|
key: 0,
|
|
224
227
|
class: "modal-action"
|
|
225
|
-
},
|
|
228
|
+
}, ee = {
|
|
226
229
|
key: 1,
|
|
227
230
|
method: "dialog",
|
|
228
231
|
class: "modal-backdrop"
|
|
229
|
-
},
|
|
232
|
+
}, te = {
|
|
230
233
|
top: "modal-top",
|
|
231
234
|
middle: "modal-middle",
|
|
232
235
|
bottom: "modal-bottom",
|
|
233
236
|
start: "modal-start",
|
|
234
237
|
end: "modal-end"
|
|
235
|
-
},
|
|
238
|
+
}, ne = /* @__PURE__ */ m({
|
|
236
239
|
__name: "Modal",
|
|
237
|
-
props: /*@__PURE__*/
|
|
240
|
+
props: /*@__PURE__*/ g({
|
|
238
241
|
placement: {},
|
|
239
|
-
closeOnBackdrop: { type:
|
|
240
|
-
loadContentWhenClose: { type:
|
|
242
|
+
closeOnBackdrop: { type: Boolean },
|
|
243
|
+
loadContentWhenClose: { type: Boolean }
|
|
241
244
|
}, {
|
|
242
245
|
modelValue: {
|
|
243
246
|
type: Boolean,
|
|
@@ -245,45 +248,46 @@ var I = e("button"), L = {
|
|
|
245
248
|
},
|
|
246
249
|
modelModifiers: {}
|
|
247
250
|
}),
|
|
248
|
-
emits: /*@__PURE__*/
|
|
251
|
+
emits: /*@__PURE__*/ g(["open", "close"], ["update:modelValue"]),
|
|
249
252
|
setup(e, { expose: n, emit: r }) {
|
|
250
|
-
let
|
|
253
|
+
let i = k("dialog-el"), a = O(e, "modelValue"), o = t(Z, e, {
|
|
251
254
|
placement: void 0,
|
|
252
255
|
closeOnBackdrop: !1,
|
|
253
256
|
loadContentWhenClose: !1
|
|
254
|
-
}),
|
|
255
|
-
|
|
256
|
-
e && (
|
|
257
|
+
}), s = r, l = C(!1);
|
|
258
|
+
A(a, (e) => {
|
|
259
|
+
e && (l.value = !0);
|
|
257
260
|
});
|
|
258
|
-
let
|
|
259
|
-
|
|
260
|
-
|
|
261
|
+
let p = c(() => o.value.loadContentWhenClose ? !0 : a.value || l.value);
|
|
262
|
+
A(a, (e) => {
|
|
263
|
+
i.value && (e ? (i.value.showModal(), s("open")) : i.value.close());
|
|
261
264
|
}, { immediate: !0 });
|
|
265
|
+
function m() {
|
|
266
|
+
a.value = !0;
|
|
267
|
+
}
|
|
262
268
|
function h() {
|
|
263
|
-
|
|
269
|
+
a.value = !1;
|
|
264
270
|
}
|
|
265
271
|
function g() {
|
|
266
|
-
|
|
267
|
-
}
|
|
268
|
-
function _() {
|
|
269
|
-
o.value = !1, c("close");
|
|
272
|
+
a.value = !1, s("close");
|
|
270
273
|
}
|
|
271
274
|
return n({
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
+
$el: i,
|
|
276
|
+
open: m,
|
|
277
|
+
close: h
|
|
278
|
+
}), (e, t) => (b(), d("dialog", {
|
|
275
279
|
ref: "dialog-el",
|
|
276
|
-
class:
|
|
277
|
-
onClose:
|
|
278
|
-
}, [
|
|
280
|
+
class: v(["modal", [w(o).placement && te[w(o).placement]]]),
|
|
281
|
+
onClose: g
|
|
282
|
+
}, [p.value ? (b(), d("div", Q, [x(e.$slots, "default"), e.$slots.actions ? (b(), d("div", $, [x(e.$slots, "actions")])) : u("", !0)])) : u("", !0), w(o).closeOnBackdrop ? u("", !0) : (b(), d("form", ee, [...t[0] ||= [f("button", null, "close", -1)]]))], 34));
|
|
279
283
|
}
|
|
280
|
-
}),
|
|
284
|
+
}), re = e("swap"), ie = ["onKeydown"], ae = {
|
|
281
285
|
flip: "swap-flip",
|
|
282
286
|
rotate: "swap-rotate"
|
|
283
|
-
},
|
|
287
|
+
}, oe = /* @__PURE__ */ m({
|
|
284
288
|
__name: "Swap",
|
|
285
|
-
props: /*@__PURE__*/
|
|
286
|
-
indeterminate: { type:
|
|
289
|
+
props: /*@__PURE__*/ g({
|
|
290
|
+
indeterminate: { type: Boolean },
|
|
287
291
|
variant: {}
|
|
288
292
|
}, {
|
|
289
293
|
modelValue: {
|
|
@@ -294,26 +298,26 @@ var I = e("button"), L = {
|
|
|
294
298
|
}),
|
|
295
299
|
emits: ["update:modelValue"],
|
|
296
300
|
setup(e) {
|
|
297
|
-
let r =
|
|
298
|
-
function
|
|
299
|
-
i
|
|
301
|
+
let r = O(e, "modelValue"), i = e, s = t(re, i, {});
|
|
302
|
+
function c() {
|
|
303
|
+
i.indeterminate || (r.value = !r.value);
|
|
300
304
|
}
|
|
301
|
-
return (t,
|
|
302
|
-
class:
|
|
305
|
+
return (t, i) => (b(), d("div", {
|
|
306
|
+
class: v(["swap", [w(n)(ae, w(s).variant), e.indeterminate ? "swap-indeterminate" : r.value && "swap-active"]]),
|
|
303
307
|
role: "button",
|
|
304
308
|
tabindex: "0",
|
|
305
|
-
onClick:
|
|
306
|
-
onKeydown: N(
|
|
307
|
-
}, [
|
|
308
|
-
default:
|
|
309
|
+
onClick: c,
|
|
310
|
+
onKeydown: M(N(c, ["prevent"]), ["enter", "space"])
|
|
311
|
+
}, [e.indeterminate && t.$slots.indeterminate ? x(t.$slots, "indeterminate", { key: 0 }) : (b(), d(o, { key: 1 }, [p(a, { class: "swap-on" }, {
|
|
312
|
+
default: j(() => [x(t.$slots, "on")]),
|
|
309
313
|
_: 3
|
|
310
|
-
}),
|
|
311
|
-
default:
|
|
314
|
+
}), p(a, { class: "swap-off" }, {
|
|
315
|
+
default: j(() => [x(t.$slots, "off")]),
|
|
312
316
|
_: 3
|
|
313
|
-
})], 64))], 42,
|
|
317
|
+
})], 64))], 42, ie));
|
|
314
318
|
}
|
|
315
319
|
});
|
|
316
320
|
//#endregion
|
|
317
|
-
export {
|
|
321
|
+
export { V as Button, G as Dropdown, X as Fab, ne as Modal, oe as Swap };
|
|
318
322
|
|
|
319
323
|
//# sourceMappingURL=public.es.js.map
|