@indielayer/ui 1.5.2 → 1.6.0
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 +1 -1
- package/docs/components/common/DocumentPage.vue +0 -30
- package/docs/components/menu/DocsMenu.vue +2 -0
- package/docs/pages/component/datepicker/index.vue +35 -0
- package/docs/pages/component/datepicker/usage.vue +22 -0
- package/docs/pages/component/form/usage.vue +13 -0
- package/docs/pages/component/menu/usage.vue +7 -3
- package/docs/pages/component/qrCode/index.vue +25 -0
- package/docs/pages/component/qrCode/usage.vue +20 -0
- package/docs/pages/component/slider/usage.vue +8 -10
- package/docs/pages/index.vue +9 -19
- package/lib/components/button/Button.vue.d.ts +3 -3
- package/lib/components/button/Button.vue.js +2 -2
- package/lib/components/button/Button.vue2.js +10 -10
- package/lib/components/carousel/Carousel.vue.d.ts +8 -2
- package/lib/components/carousel/Carousel.vue.js +51 -48
- package/lib/components/checkbox/theme/Checkbox.base.theme.js +1 -1
- package/lib/components/datepicker/Datepicker.vue.d.ts +1886 -0
- package/lib/components/datepicker/Datepicker.vue.js +328 -0
- package/lib/components/datepicker/Datepicker.vue2.js +4 -0
- package/lib/components/datepicker/Datepicker.vue3.js +5 -0
- package/lib/components/datepicker/__tests__/Datepicker.spec.d.ts +1 -0
- package/lib/components/datepicker/index.d.ts +2 -0
- package/lib/components/datepicker/theme/Datepicker.base.theme.d.ts +3 -0
- package/lib/components/datepicker/theme/Datepicker.base.theme.js +65 -0
- package/lib/components/datepicker/theme/Datepicker.carbon.theme.d.ts +3 -0
- package/lib/components/datepicker/theme/Datepicker.carbon.theme.js +5 -0
- package/lib/components/drawer/Drawer.vue.js +1 -1
- package/lib/components/drawer/theme/Drawer.base.theme.js +1 -1
- package/lib/components/formGroup/FormGroup.vue.js +42 -36
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +99 -94
- package/lib/components/menu/Menu.vue.d.ts +4 -0
- package/lib/components/menu/Menu.vue.js +40 -34
- package/lib/components/menu/MenuItem.vue.d.ts +4 -0
- package/lib/components/menu/MenuItem.vue.js +1 -1
- package/lib/components/menu/MenuItem.vue2.js +43 -39
- package/lib/components/menu/theme/MenuItem.base.theme.js +1 -1
- package/lib/components/qrCode/QrCode.vue.d.ts +68 -0
- package/lib/components/qrCode/QrCode.vue.js +93 -0
- package/lib/components/qrCode/QrCode.vue2.js +4 -0
- package/lib/components/qrCode/__tests__/QrCode.spec.d.ts +1 -0
- package/lib/components/qrCode/index.d.ts +2 -0
- package/lib/components/qrCode/qrcodegen.d.ts +94 -0
- package/lib/components/qrCode/qrcodegen.js +571 -0
- package/lib/components/qrCode/theme/QrCode.base.theme.d.ts +3 -0
- package/lib/components/qrCode/theme/QrCode.base.theme.js +8 -0
- package/lib/components/qrCode/theme/QrCode.carbon.theme.d.ts +3 -0
- package/lib/components/qrCode/theme/QrCode.carbon.theme.js +5 -0
- package/lib/components/slider/Slider.vue.d.ts +31 -31
- package/lib/components/slider/Slider.vue.js +5 -146
- package/lib/components/slider/Slider.vue2.js +101 -2
- package/lib/components/slider/Slider.vue3.js +4 -0
- package/lib/components/slider/theme/Slider.base.theme.js +14 -10
- package/lib/components/slider/theme/Slider.carbon.theme.js +3 -14
- package/lib/index.js +117 -113
- package/lib/index.umd.js +39 -3
- package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@8.0.0_vue@3.3.9/node_modules/@vuepic/vue-datepicker/dist/main.css.js +4 -0
- package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@8.0.0_vue@3.3.9/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +5011 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/defaultOptions.js +7 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/format/formatters.js +518 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/protectedTokens.js +21 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/add.js +20 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/addDays.js +10 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/addMonths.js +21 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/addQuarters.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/addYears.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/constants.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/constructFrom.js +7 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/differenceInCalendarDays.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/eachDayOfInterval.js +19 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/eachQuarterOfInterval.js +20 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/endOfQuarter.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/endOfWeek.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/endOfYear.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/format.js +60 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getDay.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getDayOfYear.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getDaysInMonth.js +10 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getDefaultOptions.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getHours.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getISODay.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getISOWeek.js +12 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getISOWeekYear.js +15 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getMinutes.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getMonth.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getQuarter.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getSeconds.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getWeek.js +12 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getWeekYear.js +17 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getYear.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isAfter.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isBefore.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isDate.js +7 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isEqual.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isSameQuarter.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isValid.js +12 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +17 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US.js +21 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/Parser.js +22 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/Setter.js +40 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/constants.js +49 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +49 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +49 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/DateParser.js +61 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +51 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/DayParser.js +45 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +49 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/EraParser.js +30 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +21 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +22 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +32 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +33 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +33 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +99 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +48 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +48 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +49 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +40 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +74 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +48 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +69 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +32 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +71 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +70 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +32 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +74 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +71 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +70 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +22 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +22 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/YearParser.js +49 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers.js +67 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/utils.js +103 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse.js +90 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parseISO.js +128 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/set.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setDay.js +12 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setHours.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setISODay.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setISOWeek.js +10 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setMilliseconds.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setMinutes.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setMonth.js +13 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setSeconds.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setWeek.js +10 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setYear.js +10 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfDay.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfISOWeek.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfISOWeekYear.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfQuarter.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfWeek.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfWeekYear.js +13 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfYear.js +10 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/sub.js +19 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/subDays.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/subMonths.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/subYears.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/toDate.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/transpose.js +18 -0
- package/lib/theme.d.ts +3 -1
- package/lib/themes/base/components.d.ts +2 -0
- package/lib/themes/base/components.js +82 -78
- package/lib/themes/carbon/components.d.ts +2 -0
- package/lib/themes/carbon/components.js +82 -78
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -1
- package/src/components/button/Button.vue +1 -1
- package/src/components/carousel/Carousel.vue +8 -3
- package/src/components/checkbox/theme/Checkbox.base.theme.ts +1 -1
- package/src/components/datepicker/Datepicker.vue +414 -0
- package/src/components/datepicker/__tests__/Datepicker.spec.ts +11 -0
- package/src/components/datepicker/index.ts +2 -0
- package/src/components/datepicker/theme/Datepicker.base.theme.ts +72 -0
- package/src/components/datepicker/theme/Datepicker.carbon.theme.ts +7 -0
- package/src/components/drawer/Drawer.vue +1 -1
- package/src/components/drawer/theme/Drawer.base.theme.ts +1 -1
- package/src/components/formGroup/FormGroup.vue +5 -0
- package/src/components/index.ts +2 -0
- package/src/components/menu/Menu.vue +6 -0
- package/src/components/menu/MenuItem.vue +2 -1
- package/src/components/menu/theme/MenuItem.base.theme.ts +1 -1
- package/src/components/qrCode/QrCode.vue +120 -0
- package/src/components/qrCode/__tests__/QrCode.spec.ts +14 -0
- package/src/components/qrCode/index.ts +2 -0
- package/src/components/qrCode/qrcodegen.ts +991 -0
- package/src/components/qrCode/theme/QrCode.base.theme.ts +9 -0
- package/src/components/qrCode/theme/QrCode.carbon.theme.ts +7 -0
- package/src/components/slider/Slider.vue +63 -137
- package/src/components/slider/theme/Slider.base.theme.ts +10 -5
- package/src/components/slider/theme/Slider.carbon.theme.ts +2 -16
- package/src/theme.ts +4 -0
- package/src/themes/base/components.ts +2 -0
- package/src/themes/carbon/components.ts +2 -0
- package/src/version.ts +1 -1
- package/volar.d.ts +2 -0
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { defineComponent as C, ref as i, openBlock as I, createElementBlock as P, normalizeStyle as T, unref as l, normalizeClass as R, createVNode as s, withCtx as d, withKeys as u, withModifiers as j, createSlots as F, renderList as A, renderSlot as z, normalizeProps as L, guardReactiveProps as q } from "vue";
|
|
2
|
+
import { useMutationObserver as M } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9/node_modules/@vueuse/core/index.js";
|
|
3
|
+
import { useCommon as V } from "../../composables/useCommon.js";
|
|
4
|
+
import { useInputtable as m } from "../../composables/useInputtable.js";
|
|
5
|
+
import { useInteractive as G } from "../../composables/useInteractive.js";
|
|
6
|
+
import { useTheme as Y } from "../../composables/useTheme.js";
|
|
7
|
+
import W from "../input/Input.vue.js";
|
|
8
|
+
import E from "../../node_modules/.pnpm/@vuepic_vue-datepicker@8.0.0_vue@3.3.9/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
|
|
9
|
+
import "../../node_modules/.pnpm/@vuepic_vue-datepicker@8.0.0_vue@3.3.9/node_modules/@vuepic/vue-datepicker/dist/main.css.js";
|
|
10
|
+
const K = {
|
|
11
|
+
multiCalendars: { type: [Boolean, Number, String, Object], default: void 0 },
|
|
12
|
+
modelValue: { type: [String, Date, Array, Object, Number], default: null },
|
|
13
|
+
modelType: { type: String, default: null },
|
|
14
|
+
position: { type: String, default: "center" },
|
|
15
|
+
dark: { type: Boolean, default: !1 },
|
|
16
|
+
format: {
|
|
17
|
+
type: [String, Function],
|
|
18
|
+
default: () => null
|
|
19
|
+
},
|
|
20
|
+
autoPosition: { type: Boolean, default: !0 },
|
|
21
|
+
altPosition: { type: Function, default: null },
|
|
22
|
+
transitions: { type: [Boolean, Object], default: !0 },
|
|
23
|
+
formatLocale: { type: Object, default: null },
|
|
24
|
+
utc: { type: [Boolean, String], default: !1 },
|
|
25
|
+
ariaLabels: { type: Object, default: () => ({}) },
|
|
26
|
+
offset: { type: [Number, String], default: 10 },
|
|
27
|
+
hideNavigation: { type: Array, default: () => [] },
|
|
28
|
+
timezone: { type: [String, Object], default: null },
|
|
29
|
+
emitTimezone: { type: String, default: null },
|
|
30
|
+
vertical: { type: Boolean, default: !1 },
|
|
31
|
+
disableMonthYearSelect: { type: Boolean, default: !1 },
|
|
32
|
+
disableYearSelect: { type: Boolean, default: !1 },
|
|
33
|
+
menuClassName: { type: String, default: null },
|
|
34
|
+
dayClass: { type: Function, default: null },
|
|
35
|
+
yearRange: { type: Array, default: () => [1900, 2100] },
|
|
36
|
+
calendarCellClassName: { type: String, default: null },
|
|
37
|
+
enableTimePicker: { type: Boolean, default: !0 },
|
|
38
|
+
autoApply: { type: Boolean, default: !1 },
|
|
39
|
+
disabledDates: { type: [Array, Function], default: () => [] },
|
|
40
|
+
monthNameFormat: { type: String, default: "short" },
|
|
41
|
+
startDate: { type: [Date, String], default: null },
|
|
42
|
+
startTime: { type: [Object, Array], default: null },
|
|
43
|
+
hideOffsetDates: { type: Boolean, default: !1 },
|
|
44
|
+
autoRange: { type: [Number, String], default: null },
|
|
45
|
+
noToday: { type: Boolean, default: !1 },
|
|
46
|
+
disabledWeekDays: { type: Array, default: () => [] },
|
|
47
|
+
allowedDates: { type: Array, default: null },
|
|
48
|
+
nowButtonLabel: { type: String, default: "Now" },
|
|
49
|
+
markers: { type: Array, default: () => [] },
|
|
50
|
+
escClose: { type: Boolean, default: !0 },
|
|
51
|
+
spaceConfirm: { type: Boolean, default: !0 },
|
|
52
|
+
monthChangeOnArrows: { type: Boolean, default: !0 },
|
|
53
|
+
presetDates: { type: Array, default: () => [] },
|
|
54
|
+
flow: { type: Array, default: () => [] },
|
|
55
|
+
partialFlow: { type: Boolean, default: !1 },
|
|
56
|
+
preventMinMaxNavigation: { type: Boolean, default: !1 },
|
|
57
|
+
minRange: { type: [Number, String], default: null },
|
|
58
|
+
maxRange: { type: [Number, String], default: null },
|
|
59
|
+
multiDatesLimit: { type: [Number, String], default: null },
|
|
60
|
+
reverseYears: { type: Boolean, default: !1 },
|
|
61
|
+
weekPicker: { type: Boolean, default: !1 },
|
|
62
|
+
filters: { type: Object, default: () => ({}) },
|
|
63
|
+
arrowNavigation: { type: Boolean, default: !1 },
|
|
64
|
+
disableTimeRangeValidation: { type: Boolean, default: !1 },
|
|
65
|
+
highlight: {
|
|
66
|
+
type: [Function, Object],
|
|
67
|
+
default: null
|
|
68
|
+
},
|
|
69
|
+
teleport: { type: [String, Boolean, Object], default: null },
|
|
70
|
+
teleportCenter: { type: Boolean, default: !1 },
|
|
71
|
+
locale: { type: String, default: "en-Us" },
|
|
72
|
+
weekNumName: { type: String, default: "W" },
|
|
73
|
+
weekStart: { type: [Number, String], default: 1 },
|
|
74
|
+
weekNumbers: {
|
|
75
|
+
type: [String, Function, Object],
|
|
76
|
+
default: null
|
|
77
|
+
},
|
|
78
|
+
calendarClassName: { type: String, default: null },
|
|
79
|
+
monthChangeOnScroll: { type: [Boolean, String], default: !0 },
|
|
80
|
+
dayNames: {
|
|
81
|
+
type: [Function, Array],
|
|
82
|
+
default: null
|
|
83
|
+
},
|
|
84
|
+
monthPicker: { type: Boolean, default: !1 },
|
|
85
|
+
customProps: { type: Object, default: null },
|
|
86
|
+
yearPicker: { type: Boolean, default: !1 },
|
|
87
|
+
modelAuto: { type: Boolean, default: !1 },
|
|
88
|
+
selectText: { type: String, default: "Select" },
|
|
89
|
+
cancelText: { type: String, default: "Cancel" },
|
|
90
|
+
previewFormat: {
|
|
91
|
+
type: [String, Function],
|
|
92
|
+
default: () => ""
|
|
93
|
+
},
|
|
94
|
+
multiDates: { type: Boolean, default: !1 },
|
|
95
|
+
partialRange: { type: Boolean, default: !0 },
|
|
96
|
+
ignoreTimeValidation: { type: Boolean, default: !1 },
|
|
97
|
+
minDate: { type: [Date, String], default: null },
|
|
98
|
+
maxDate: { type: [Date, String], default: null },
|
|
99
|
+
minTime: { type: Object, default: null },
|
|
100
|
+
maxTime: { type: Object, default: null },
|
|
101
|
+
placeholder: { type: String, default: "" },
|
|
102
|
+
hideInputIcon: { type: Boolean, default: !1 },
|
|
103
|
+
clearable: { type: Boolean, default: !0 },
|
|
104
|
+
state: { type: Boolean, default: null },
|
|
105
|
+
required: { type: Boolean, default: !1 },
|
|
106
|
+
autocomplete: { type: String, default: "off" },
|
|
107
|
+
inputClassName: { type: String, default: null },
|
|
108
|
+
fixedStart: { type: Boolean, default: !1 },
|
|
109
|
+
fixedEnd: { type: Boolean, default: !1 },
|
|
110
|
+
timePicker: { type: Boolean, default: !1 },
|
|
111
|
+
enableSeconds: { type: Boolean, default: !1 },
|
|
112
|
+
is24: { type: Boolean, default: !0 },
|
|
113
|
+
noHoursOverlay: { type: Boolean, default: !1 },
|
|
114
|
+
noMinutesOverlay: { type: Boolean, default: !1 },
|
|
115
|
+
noSecondsOverlay: { type: Boolean, default: !1 },
|
|
116
|
+
hoursGridIncrement: { type: [String, Number], default: 1 },
|
|
117
|
+
minutesGridIncrement: { type: [String, Number], default: 5 },
|
|
118
|
+
secondsGridIncrement: { type: [String, Number], default: 5 },
|
|
119
|
+
hoursIncrement: { type: [Number, String], default: 1 },
|
|
120
|
+
minutesIncrement: { type: [Number, String], default: 1 },
|
|
121
|
+
secondsIncrement: { type: [Number, String], default: 1 },
|
|
122
|
+
range: { type: [Boolean, Object], default: !1 },
|
|
123
|
+
uid: { type: String, default: null },
|
|
124
|
+
inline: { type: [Boolean, Object], default: !1 },
|
|
125
|
+
textInput: { type: [Boolean, Object], default: !1 },
|
|
126
|
+
noDisabledRange: { type: Boolean, default: !1 },
|
|
127
|
+
sixWeeks: { type: [Boolean, String], default: !1 },
|
|
128
|
+
actionRow: { type: Object, default: () => ({}) },
|
|
129
|
+
focusStartDate: { type: Boolean, default: !1 },
|
|
130
|
+
disabledTimes: { type: [Function, Array], default: void 0 },
|
|
131
|
+
showLastInRange: { type: Boolean, default: !0 },
|
|
132
|
+
timePickerInline: { type: Boolean, default: !1 },
|
|
133
|
+
calendar: { type: Function, default: null },
|
|
134
|
+
config: { type: Object, default: void 0 },
|
|
135
|
+
quarterPicker: { type: Boolean, default: !1 },
|
|
136
|
+
yearFirst: { type: Boolean, default: !1 }
|
|
137
|
+
}, $ = {
|
|
138
|
+
...V.props(),
|
|
139
|
+
...G.props(),
|
|
140
|
+
...m.props(),
|
|
141
|
+
...K
|
|
142
|
+
}, H = {
|
|
143
|
+
name: "XDatepicker"
|
|
144
|
+
}, ne = /* @__PURE__ */ C({
|
|
145
|
+
...H,
|
|
146
|
+
props: $,
|
|
147
|
+
emits: m.emits(),
|
|
148
|
+
setup(p, { expose: f, emit: y }) {
|
|
149
|
+
const c = p, g = y, t = i(null);
|
|
150
|
+
function b(e) {
|
|
151
|
+
g("update:modelValue", e), setTimeout(n);
|
|
152
|
+
}
|
|
153
|
+
function h() {
|
|
154
|
+
var e;
|
|
155
|
+
(e = t.value) == null || e.blur();
|
|
156
|
+
}
|
|
157
|
+
function k() {
|
|
158
|
+
var e;
|
|
159
|
+
(e = t.value) == null || e.focus();
|
|
160
|
+
}
|
|
161
|
+
function n() {
|
|
162
|
+
var e;
|
|
163
|
+
(e = t.value) == null || e.validate();
|
|
164
|
+
}
|
|
165
|
+
const a = document == null ? void 0 : document.querySelector("html"), o = i((a == null ? void 0 : a.classList.contains("dark")) ?? !1);
|
|
166
|
+
M(a, (e) => {
|
|
167
|
+
e[0] && e[0].attributeName === "class" && (o.value = (a == null ? void 0 : a.classList.contains("dark")) ?? !1);
|
|
168
|
+
}, {
|
|
169
|
+
attributes: !0
|
|
170
|
+
}), f({ focus: k, blur: h, validate: n });
|
|
171
|
+
const { styles: v, classes: w, className: S } = Y("Datepicker", {}, c);
|
|
172
|
+
return (e, U) => (I(), P("div", {
|
|
173
|
+
style: T(l(v)),
|
|
174
|
+
class: R([
|
|
175
|
+
l(S),
|
|
176
|
+
l(w).wrapper
|
|
177
|
+
])
|
|
178
|
+
}, [
|
|
179
|
+
s(l(E), {
|
|
180
|
+
"model-value": e.modelValue,
|
|
181
|
+
"multi-calendars": e.multiCalendars,
|
|
182
|
+
"model-type": e.modelType,
|
|
183
|
+
position: e.position,
|
|
184
|
+
dark: o.value,
|
|
185
|
+
format: e.format,
|
|
186
|
+
"auto-position": e.autoPosition,
|
|
187
|
+
"alt-position": e.altPosition,
|
|
188
|
+
transitions: e.transitions,
|
|
189
|
+
"format-locale": e.formatLocale,
|
|
190
|
+
utc: e.utc,
|
|
191
|
+
"aria-labels": e.ariaLabels,
|
|
192
|
+
offset: e.offset,
|
|
193
|
+
"hide-navigation": e.hideNavigation,
|
|
194
|
+
timezone: e.timezone,
|
|
195
|
+
"emit-timezone": e.emitTimezone,
|
|
196
|
+
vertical: e.vertical,
|
|
197
|
+
"disable-month-year-select": e.disableMonthYearSelect,
|
|
198
|
+
"disable-year-select": e.disableYearSelect,
|
|
199
|
+
"menu-class-name": e.menuClassName,
|
|
200
|
+
"day-class": e.dayClass,
|
|
201
|
+
"year-range": e.yearRange,
|
|
202
|
+
"calendar-cell-class-name": e.calendarCellClassName,
|
|
203
|
+
"enable-time-picker": e.enableTimePicker,
|
|
204
|
+
"auto-apply": e.autoApply,
|
|
205
|
+
"disabled-dates": e.disabledDates,
|
|
206
|
+
"month-name-format": e.monthNameFormat,
|
|
207
|
+
"start-date": e.startDate,
|
|
208
|
+
"start-time": e.startTime,
|
|
209
|
+
"hide-offset-dates": e.hideOffsetDates,
|
|
210
|
+
"auto-range": e.autoRange,
|
|
211
|
+
"no-today": e.noToday,
|
|
212
|
+
"disabled-week-days": e.disabledWeekDays,
|
|
213
|
+
"allowed-dates": e.allowedDates,
|
|
214
|
+
"now-button-label": e.nowButtonLabel,
|
|
215
|
+
markers: e.markers,
|
|
216
|
+
"esc-close": e.escClose,
|
|
217
|
+
"space-confirm": e.spaceConfirm,
|
|
218
|
+
"month-change-on-arrows": e.monthChangeOnArrows,
|
|
219
|
+
"preset-dates": e.presetDates,
|
|
220
|
+
flow: e.flow,
|
|
221
|
+
"partial-flow": e.partialFlow,
|
|
222
|
+
"prevent-min-max-navigation": e.preventMinMaxNavigation,
|
|
223
|
+
"min-range": e.minRange,
|
|
224
|
+
"max-range": e.maxRange,
|
|
225
|
+
"multi-dates-limit": e.multiDatesLimit,
|
|
226
|
+
"reverse-years": e.reverseYears,
|
|
227
|
+
"week-picker": e.weekPicker,
|
|
228
|
+
filters: e.filters,
|
|
229
|
+
"arrow-navigation": e.arrowNavigation,
|
|
230
|
+
"disable-time-range-validation": e.disableTimeRangeValidation,
|
|
231
|
+
highlight: e.highlight,
|
|
232
|
+
teleport: e.teleport,
|
|
233
|
+
"teleport-center": e.teleportCenter,
|
|
234
|
+
locale: e.locale,
|
|
235
|
+
"week-num-name": e.weekNumName,
|
|
236
|
+
"week-start": e.weekStart,
|
|
237
|
+
"week-numbers": e.weekNumbers,
|
|
238
|
+
"calendar-class-name": e.calendarClassName,
|
|
239
|
+
"month-change-on-scroll": e.monthChangeOnScroll,
|
|
240
|
+
"day-names": e.dayNames,
|
|
241
|
+
"month-picker": e.monthPicker,
|
|
242
|
+
"custom-props": e.customProps,
|
|
243
|
+
"year-picker": e.yearPicker,
|
|
244
|
+
"model-auto": e.modelAuto,
|
|
245
|
+
"select-text": e.selectText,
|
|
246
|
+
"cancel-text": e.cancelText,
|
|
247
|
+
"preview-format": e.previewFormat,
|
|
248
|
+
"multi-dates": e.multiDates,
|
|
249
|
+
"partial-range": e.partialRange,
|
|
250
|
+
"ignore-time-validation": e.ignoreTimeValidation,
|
|
251
|
+
"min-date": e.minDate,
|
|
252
|
+
"max-date": e.maxDate,
|
|
253
|
+
placeholder: e.placeholder,
|
|
254
|
+
"hide-input-icon": e.hideInputIcon,
|
|
255
|
+
clearable: e.clearable,
|
|
256
|
+
state: e.state,
|
|
257
|
+
required: e.required,
|
|
258
|
+
autocomplete: e.autocomplete,
|
|
259
|
+
"input-class-name": e.inputClassName,
|
|
260
|
+
"fixed-start": e.fixedStart,
|
|
261
|
+
"fixed-end": e.fixedEnd,
|
|
262
|
+
"time-picker": e.timePicker,
|
|
263
|
+
"enable-seconds": e.enableSeconds,
|
|
264
|
+
"no-hours-overlay": e.noHoursOverlay,
|
|
265
|
+
"no-minutes-overlay": e.noMinutesOverlay,
|
|
266
|
+
"no-seconds-overlay": e.noSecondsOverlay,
|
|
267
|
+
"hours-grid-increment": e.hoursGridIncrement,
|
|
268
|
+
"minutes-grid-increment": e.minutesGridIncrement,
|
|
269
|
+
"seconds-grid-increment": e.secondsGridIncrement,
|
|
270
|
+
"hours-increment": e.hoursIncrement,
|
|
271
|
+
"minutes-increment": e.minutesIncrement,
|
|
272
|
+
"seconds-increment": e.secondsIncrement,
|
|
273
|
+
range: e.range,
|
|
274
|
+
uid: e.uid,
|
|
275
|
+
inline: e.inline,
|
|
276
|
+
"text-input": e.textInput,
|
|
277
|
+
"no-disabled-range": e.noDisabledRange,
|
|
278
|
+
"six-weeks": e.sixWeeks,
|
|
279
|
+
"action-row": e.actionRow,
|
|
280
|
+
"focus-start-date": e.focusStartDate,
|
|
281
|
+
"disabled-times": e.disabledTimes,
|
|
282
|
+
"show-last-in-range": e.showLastInRange,
|
|
283
|
+
"time-picker-inline": e.timePickerInline,
|
|
284
|
+
calendar: e.calendar,
|
|
285
|
+
config: e.config,
|
|
286
|
+
"quarter-picker": e.quarterPicker,
|
|
287
|
+
"year-first": e.yearFirst,
|
|
288
|
+
"onUpdate:modelValue": b
|
|
289
|
+
}, {
|
|
290
|
+
"dp-input": d(({ value: B, onEnter: N, onTab: O }) => [
|
|
291
|
+
s(W, {
|
|
292
|
+
ref_key: "inputRef",
|
|
293
|
+
ref: t,
|
|
294
|
+
readonly: "",
|
|
295
|
+
"model-value": B,
|
|
296
|
+
label: e.label,
|
|
297
|
+
size: e.size,
|
|
298
|
+
disabled: e.disabled,
|
|
299
|
+
helper: e.helper,
|
|
300
|
+
"icon-right": "calendar",
|
|
301
|
+
loading: e.loading,
|
|
302
|
+
name: e.name,
|
|
303
|
+
rules: e.rules,
|
|
304
|
+
tooltip: e.tooltip,
|
|
305
|
+
placeholder: e.placeholder,
|
|
306
|
+
required: e.required,
|
|
307
|
+
"hide-footer": e.hideFooter,
|
|
308
|
+
onKeydown: [
|
|
309
|
+
u(j(N, ["prevent"]), ["enter"]),
|
|
310
|
+
u(O, ["tab"])
|
|
311
|
+
]
|
|
312
|
+
}, F({ _: 2 }, [
|
|
313
|
+
A(e.$slots, (X, r) => ({
|
|
314
|
+
name: r,
|
|
315
|
+
fn: d((D = {}) => [
|
|
316
|
+
z(e.$slots, r, L(q(D)))
|
|
317
|
+
])
|
|
318
|
+
}))
|
|
319
|
+
]), 1032, ["model-value", "label", "size", "disabled", "helper", "loading", "name", "rules", "tooltip", "placeholder", "required", "hide-footer", "onKeydown"])
|
|
320
|
+
]),
|
|
321
|
+
_: 3
|
|
322
|
+
}, 8, ["model-value", "multi-calendars", "model-type", "position", "dark", "format", "auto-position", "alt-position", "transitions", "format-locale", "utc", "aria-labels", "offset", "hide-navigation", "timezone", "emit-timezone", "vertical", "disable-month-year-select", "disable-year-select", "menu-class-name", "day-class", "year-range", "calendar-cell-class-name", "enable-time-picker", "auto-apply", "disabled-dates", "month-name-format", "start-date", "start-time", "hide-offset-dates", "auto-range", "no-today", "disabled-week-days", "allowed-dates", "now-button-label", "markers", "esc-close", "space-confirm", "month-change-on-arrows", "preset-dates", "flow", "partial-flow", "prevent-min-max-navigation", "min-range", "max-range", "multi-dates-limit", "reverse-years", "week-picker", "filters", "arrow-navigation", "disable-time-range-validation", "highlight", "teleport", "teleport-center", "locale", "week-num-name", "week-start", "week-numbers", "calendar-class-name", "month-change-on-scroll", "day-names", "month-picker", "custom-props", "year-picker", "model-auto", "select-text", "cancel-text", "preview-format", "multi-dates", "partial-range", "ignore-time-validation", "min-date", "max-date", "placeholder", "hide-input-icon", "clearable", "state", "required", "autocomplete", "input-class-name", "fixed-start", "fixed-end", "time-picker", "enable-seconds", "no-hours-overlay", "no-minutes-overlay", "no-seconds-overlay", "hours-grid-increment", "minutes-grid-increment", "seconds-grid-increment", "hours-increment", "minutes-increment", "seconds-increment", "range", "uid", "inline", "text-input", "no-disabled-range", "six-weeks", "action-row", "focus-start-date", "disabled-times", "show-last-in-range", "time-picker-inline", "calendar", "config", "quarter-picker", "year-first"])
|
|
323
|
+
], 6));
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
export {
|
|
327
|
+
ne as default
|
|
328
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
const d = {
|
|
2
|
+
classes: {
|
|
3
|
+
wrapper: ""
|
|
4
|
+
},
|
|
5
|
+
styles({ props: p, colors: n, css: a, data: r }) {
|
|
6
|
+
const i = n.getPalette("primary"), e = n.getPalette("secondary"), t = [`
|
|
7
|
+
/*General*/
|
|
8
|
+
--dp-font-family: Inter, -apple-system, BlinkMacSystemFont, ui-sans-serif, system-ui, sans-serif;
|
|
9
|
+
"Helvetica Neue", sans-serif;
|
|
10
|
+
--dp-border-radius: 8px; /*Configurable border-radius*/
|
|
11
|
+
--dp-cell-border-radius: 8px; /*Specific border radius for the calendar cell*/
|
|
12
|
+
--dp-common-transition: all 0.1s ease-in; /*Generic transition applied on buttons and calendar cells*/
|
|
13
|
+
|
|
14
|
+
/*Sizing*/
|
|
15
|
+
--dp-button-height: 35px; /*Size for buttons in overlays*/
|
|
16
|
+
--dp-month-year-row-height: 35px; /*Height of the month-year select row*/
|
|
17
|
+
--dp-month-year-row-button-size: 35px; /*Specific height for the next/previous buttons*/
|
|
18
|
+
--dp-button-icon-height: 20px; /*Icon sizing in buttons*/
|
|
19
|
+
--dp-cell-size: 35px; /*Width and height of calendar cell*/
|
|
20
|
+
--dp-cell-padding: 5px; /*Padding in the cell*/
|
|
21
|
+
--dp-common-padding: 10px; /*Common padding used*/
|
|
22
|
+
--dp-input-icon-padding: 35px; /*Padding on the left side of the input if icon is present*/
|
|
23
|
+
--dp-input-padding: 6px 30px 6px 12px; /*Padding in the input*/
|
|
24
|
+
--dp-menu-min-width: 260px; /*Adjust the min width of the menu*/
|
|
25
|
+
--dp-action-buttons-padding: 12px; /*Adjust padding for the action buttons in action row*/
|
|
26
|
+
--dp-row-margin: 5px 0; /*Adjust the spacing between rows in the calendar*/
|
|
27
|
+
--dp-calendar-header-cell-padding: 0.5rem; /*Adjust padding in calendar header cells*/
|
|
28
|
+
--dp-two-calendars-spacing: 10px; /*Space between multiple calendars*/
|
|
29
|
+
--dp-overlay-col-padding: 3px; /*Padding in the overlay column*/
|
|
30
|
+
--dp-time-inc-dec-button-size: 32px; /*Sizing for arrow buttons in the time picker*/
|
|
31
|
+
--dp-menu-padding: 6px 8px; /*Menu padding*/
|
|
32
|
+
|
|
33
|
+
/*Font sizes*/
|
|
34
|
+
--dp-font-size: 0.875rem; /*Default font-size*/
|
|
35
|
+
--dp-preview-font-size: 0.8rem; /*Font size of the date preview in the action row*/
|
|
36
|
+
--dp-time-font-size: 0.8rem; /*Font size in the time picker*/
|
|
37
|
+
|
|
38
|
+
/*Transitions*/
|
|
39
|
+
--dp-animation-duration: 0.1s; /*Transition duration*/
|
|
40
|
+
--dp-menu-appear-transition-timing: cubic-bezier(.4, 0, 1, 1); /*Timing on menu appear animation*/
|
|
41
|
+
--dp-transition-timing: ease-out; /*Timing on slide animations*/
|
|
42
|
+
`];
|
|
43
|
+
return t.push(a.variables({
|
|
44
|
+
bg: "#fff",
|
|
45
|
+
text: e[800],
|
|
46
|
+
disabled: e[800],
|
|
47
|
+
range: e[200],
|
|
48
|
+
icon: e[500],
|
|
49
|
+
primary: i[500],
|
|
50
|
+
border: e[100],
|
|
51
|
+
dark: {
|
|
52
|
+
bg: e[800],
|
|
53
|
+
text: e[100],
|
|
54
|
+
disabled: e[700],
|
|
55
|
+
range: e[600],
|
|
56
|
+
icon: e[200],
|
|
57
|
+
primary: i[500],
|
|
58
|
+
border: e[700]
|
|
59
|
+
}
|
|
60
|
+
})), t;
|
|
61
|
+
}
|
|
62
|
+
}, o = d;
|
|
63
|
+
export {
|
|
64
|
+
o as default
|
|
65
|
+
};
|
|
@@ -1,83 +1,89 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as K, computed as k, provide as q, openBlock as m, createBlock as d, mergeProps as w, unref as o, toHandlers as B, withKeys as N, withCtx as $, createElementVNode as A, normalizeClass as E, renderSlot as O, createCommentVNode as P } from "vue";
|
|
2
2
|
import { useTheme as j } from "../../composables/useTheme.js";
|
|
3
3
|
import { useInteractive as z } from "../../composables/useInteractive.js";
|
|
4
|
-
import { useInputtable as
|
|
4
|
+
import { useInputtable as a } from "../../composables/useInputtable.js";
|
|
5
5
|
import { injectFormGroupKey as H } from "../../composables/keys.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
6
|
+
import S from "../label/Label.vue.js";
|
|
7
|
+
import T from "../inputFooter/InputFooter.vue.js";
|
|
8
|
+
const X = {
|
|
9
9
|
...z.props(),
|
|
10
|
-
...
|
|
10
|
+
...a.props(),
|
|
11
11
|
vertical: {
|
|
12
12
|
type: Boolean,
|
|
13
13
|
default: !1
|
|
14
14
|
}
|
|
15
|
-
},
|
|
15
|
+
}, D = {
|
|
16
16
|
name: "XFormGroup"
|
|
17
|
-
},
|
|
18
|
-
...
|
|
19
|
-
props:
|
|
20
|
-
emits:
|
|
21
|
-
setup(
|
|
22
|
-
const r =
|
|
17
|
+
}, Y = /* @__PURE__ */ K({
|
|
18
|
+
...D,
|
|
19
|
+
props: X,
|
|
20
|
+
emits: a.emits(),
|
|
21
|
+
setup(f, { expose: c, emit: V }) {
|
|
22
|
+
const r = f, t = [], y = k(() => typeof r.modelValue == "string" || typeof r.modelValue == "number" || Array.isArray(r.modelValue) ? r.modelValue : "");
|
|
23
23
|
q(H, {
|
|
24
24
|
registerInputGroup: (e, s) => {
|
|
25
25
|
t.push({ name: e, focus: s });
|
|
26
26
|
},
|
|
27
27
|
unregisterInputGroup: (e) => {
|
|
28
|
-
const s = t.findIndex((
|
|
28
|
+
const s = t.findIndex((C) => C.name === e);
|
|
29
29
|
t.splice(s, 1);
|
|
30
30
|
},
|
|
31
31
|
setValue: (e) => {
|
|
32
32
|
n("update:modelValue", e);
|
|
33
33
|
},
|
|
34
34
|
isInsideFormGroup: !0,
|
|
35
|
-
value:
|
|
35
|
+
value: y
|
|
36
36
|
});
|
|
37
37
|
function i() {
|
|
38
38
|
var e;
|
|
39
39
|
(e = t[0]) == null || e.focus();
|
|
40
40
|
}
|
|
41
|
-
const n =
|
|
42
|
-
errorInternal:
|
|
43
|
-
isInsideForm:
|
|
44
|
-
isFirstValidation:
|
|
41
|
+
const n = V, {
|
|
42
|
+
errorInternal: u,
|
|
43
|
+
isInsideForm: v,
|
|
44
|
+
isFirstValidation: p,
|
|
45
45
|
reset: h,
|
|
46
|
-
validate:
|
|
47
|
-
setError:
|
|
48
|
-
} =
|
|
46
|
+
validate: l,
|
|
47
|
+
setError: I
|
|
48
|
+
} = a(r, { focus: i, emit: n }), b = {
|
|
49
49
|
change: (e) => {
|
|
50
|
-
r.validateOnInput && !
|
|
50
|
+
r.validateOnInput && !p.value && l(r.modelValue);
|
|
51
51
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
52
|
+
};
|
|
53
|
+
function F() {
|
|
54
|
+
r.validateOnInput && !p.value && l(r.modelValue);
|
|
55
|
+
}
|
|
56
|
+
const { styles: G, classes: g, className: _ } = j("FormGroup", {}, r, { errorInternal: u });
|
|
57
|
+
return c({ focus: i, blur, reset: h, validate: l, setError: I }), (e, s) => (m(), d(S, w({
|
|
54
58
|
tag: "fieldset",
|
|
55
|
-
style: o(
|
|
59
|
+
style: o(G),
|
|
56
60
|
disabled: e.disabled,
|
|
57
61
|
required: e.required,
|
|
58
|
-
"is-inside-form": o(
|
|
62
|
+
"is-inside-form": o(v),
|
|
59
63
|
label: e.label,
|
|
60
64
|
class: [
|
|
61
|
-
o(
|
|
65
|
+
o(_)
|
|
62
66
|
],
|
|
63
67
|
tooltip: e.tooltip
|
|
64
|
-
},
|
|
68
|
+
}, B(b), {
|
|
69
|
+
onKeyup: N(F, ["space"])
|
|
70
|
+
}), {
|
|
65
71
|
default: $(() => [
|
|
66
|
-
|
|
67
|
-
class:
|
|
72
|
+
A("div", {
|
|
73
|
+
class: E(o(g).wrapper)
|
|
68
74
|
}, [
|
|
69
|
-
|
|
75
|
+
O(e.$slots, "default")
|
|
70
76
|
], 2),
|
|
71
|
-
e.hideFooter ? P("", !0) : (
|
|
77
|
+
e.hideFooter ? P("", !0) : (m(), d(T, {
|
|
72
78
|
key: 0,
|
|
73
|
-
error: o(
|
|
79
|
+
error: o(u),
|
|
74
80
|
helper: e.helper
|
|
75
81
|
}, null, 8, ["error", "helper"]))
|
|
76
82
|
]),
|
|
77
83
|
_: 3
|
|
78
|
-
}, 16, ["style", "disabled", "required", "is-inside-form", "label", "class", "tooltip"]));
|
|
84
|
+
}, 16, ["style", "disabled", "required", "is-inside-form", "label", "class", "tooltip", "onKeyup"]));
|
|
79
85
|
}
|
|
80
86
|
});
|
|
81
87
|
export {
|
|
82
|
-
|
|
88
|
+
Y as default
|
|
83
89
|
};
|
|
@@ -8,6 +8,7 @@ export * from './card';
|
|
|
8
8
|
export * from './carousel';
|
|
9
9
|
export * from './checkbox';
|
|
10
10
|
export * from './container';
|
|
11
|
+
export * from './datepicker';
|
|
11
12
|
export * from './divider';
|
|
12
13
|
export * from './drawer';
|
|
13
14
|
export * from './form';
|
|
@@ -25,6 +26,7 @@ export * from './notifications';
|
|
|
25
26
|
export * from './pagination';
|
|
26
27
|
export * from './popover';
|
|
27
28
|
export * from './progress';
|
|
29
|
+
export * from './qrCode';
|
|
28
30
|
export * from './radio';
|
|
29
31
|
export * from './scroll';
|
|
30
32
|
export * from './select';
|