@indielayer/ui 1.10.1 → 1.10.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/docs/pages/component/datepicker/usage.vue +2 -0
- package/docs/pages/component/select/usage.vue +15 -0
- package/docs/pages/component/tag/index.vue +1 -1
- package/docs/pages/component/tag/usage.vue +10 -1
- package/lib/components/datepicker/Datepicker.vue.d.ts +118 -276
- package/lib/components/datepicker/Datepicker.vue.js +47 -69
- package/lib/components/datepicker/theme/Datepicker.base.theme.js +10 -12
- package/lib/components/select/Select.vue.d.ts +333 -1
- package/lib/components/select/Select.vue.js +219 -203
- package/lib/components/tag/Tag.vue.d.ts +4 -0
- package/lib/components/tag/Tag.vue.js +2 -1
- package/lib/components/tag/theme/Tag.base.theme.js +15 -15
- package/lib/composables/index.d.ts +1 -0
- package/lib/index.js +37 -35
- package/lib/index.umd.js +5 -7
- package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.1_vue@3.5.10_typescript@5.2.2_/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +5199 -0
- package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/_lib/format/formatters.js +2 -3
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/add.js +20 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addDays.js +10 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addHours.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMilliseconds.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMonths.js +21 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addQuarters.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addYears.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/compareAsc.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarDays.js +16 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarYears.js +13 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInYears.js +17 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachDayOfInterval.js +20 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachQuarterOfInterval.js +21 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfQuarter.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfWeek.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfYear.js +9 -0
- package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/format.js +14 -14
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDay.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDayOfYear.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDaysInMonth.js +10 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getHours.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISODay.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeek.js +12 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeekYear.js +15 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getMinutes.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getMonth.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getQuarter.js +9 -0
- package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/getSeconds.js +3 -3
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeek.js +12 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeekYear.js +17 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getYear.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isAfter.js +8 -0
- package/lib/node_modules/.pnpm/{date-fns@3.6.0/node_modules/date-fns/isEqual.js → date-fns@4.1.0/node_modules/date-fns/isBefore.js} +2 -3
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isEqual.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameQuarter.js +14 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isValid.js +9 -0
- package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/locale/_lib/buildMatchFn.js +2 -2
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/Setter.js +41 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse.js +90 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/set.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setDay.js +12 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setHours.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setISODay.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setISOWeek.js +10 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMilliseconds.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMinutes.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMonth.js +13 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setSeconds.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setWeek.js +10 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setYear.js +10 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfDay.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeek.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeekYear.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfMonth.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfQuarter.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeekYear.js +13 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfYear.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/sub.js +19 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subDays.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subMonths.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subYears.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/transpose.js +18 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/src/components/datepicker/Datepicker.vue +23 -29
- package/src/components/datepicker/theme/Datepicker.base.theme.ts +6 -8
- package/src/components/select/Select.vue +49 -43
- package/src/components/tag/Tag.vue +2 -1
- package/src/components/tag/theme/Tag.base.theme.ts +22 -11
- package/src/composables/index.ts +1 -0
- package/src/version.ts +1 -1
- package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@8.3.2_vue@3.5.10_typescript@5.2.2_/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +0 -4774
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/add.js +0 -20
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/addDays.js +0 -10
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/addHours.js +0 -9
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/addMilliseconds.js +0 -10
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/addMonths.js +0 -21
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/addQuarters.js +0 -9
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/addYears.js +0 -8
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/constants.js +0 -8
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/constructFrom.js +0 -7
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/differenceInCalendarDays.js +0 -11
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/eachDayOfInterval.js +0 -19
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/eachQuarterOfInterval.js +0 -20
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/endOfQuarter.js +0 -9
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/endOfWeek.js +0 -11
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/endOfYear.js +0 -9
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/getDay.js +0 -8
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/getDayOfYear.js +0 -11
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/getDaysInMonth.js +0 -10
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/getHours.js +0 -8
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/getISODay.js +0 -9
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/getISOWeek.js +0 -12
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/getISOWeekYear.js +0 -15
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/getMinutes.js +0 -8
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/getMonth.js +0 -8
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/getQuarter.js +0 -9
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/getWeek.js +0 -12
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/getWeekYear.js +0 -17
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/getYear.js +0 -8
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/isAfter.js +0 -9
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/isBefore.js +0 -9
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/isSameQuarter.js +0 -9
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/isValid.js +0 -12
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/parse/_lib/Setter.js +0 -40
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/parse.js +0 -90
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/set.js +0 -11
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/setDay.js +0 -12
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/setHours.js +0 -9
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/setISODay.js +0 -11
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/setISOWeek.js +0 -10
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/setMilliseconds.js +0 -9
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/setMinutes.js +0 -9
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/setMonth.js +0 -13
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/setSeconds.js +0 -9
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/setWeek.js +0 -10
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/setYear.js +0 -10
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/startOfDay.js +0 -9
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/startOfISOWeek.js +0 -8
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/startOfISOWeekYear.js +0 -11
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/startOfQuarter.js +0 -9
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/startOfWeek.js +0 -11
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/startOfWeekYear.js +0 -13
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/startOfYear.js +0 -10
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/sub.js +0 -19
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/subDays.js +0 -8
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/subMonths.js +0 -8
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/subYears.js +0 -8
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/toDate.js +0 -8
- package/lib/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/transpose.js +0 -18
- /package/lib/node_modules/.pnpm/{@vuepic_vue-datepicker@8.3.2_vue@3.5.10_typescript@5.2.2_ → @vuepic_vue-datepicker@11.0.1_vue@3.5.10_typescript@5.2.2_}/node_modules/@vuepic/vue-datepicker/dist/main.css.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/_lib/addLeadingZeros.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/_lib/defaultOptions.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/_lib/format/lightFormatters.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/_lib/format/longFormatters.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/_lib/protectedTokens.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/getDefaultOptions.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/isDate.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/locale/en-US/_lib/match.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/locale/en-US.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/Parser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/constants.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/parsers.js +0 -0
- /package/lib/node_modules/.pnpm/{date-fns@3.6.0 → date-fns@4.1.0}/node_modules/date-fns/parse/_lib/utils.js +0 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { longFormatters as W } from "./_lib/format/longFormatters.js";
|
|
2
|
+
import { isProtectedWeekYearToken as L, warnOrThrowProtectedError as b, isProtectedDayOfYearToken as j } from "./_lib/protectedTokens.js";
|
|
3
|
+
import { constructFrom as q } from "./constructFrom.js";
|
|
4
|
+
import { getDefaultOptions as v } from "./getDefaultOptions.js";
|
|
5
|
+
import { toDate as A } from "./toDate.js";
|
|
6
|
+
import { DateTimezoneSetter as z } from "./parse/_lib/Setter.js";
|
|
7
|
+
import { parsers as Q } from "./parse/_lib/parsers.js";
|
|
8
|
+
import { enUS as H } from "./locale/en-US.js";
|
|
9
|
+
const I = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, K = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, M = /^'([^]*?)'?$/, U = /''/g, Z = /\S/, B = /[a-zA-Z]/;
|
|
10
|
+
function te(a, i, f, e) {
|
|
11
|
+
var w, d, T, O, y, E, R, x;
|
|
12
|
+
const c = () => q((e == null ? void 0 : e.in) || f, NaN), l = v(), m = (e == null ? void 0 : e.locale) ?? l.locale ?? H, F = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((d = (w = e == null ? void 0 : e.locale) == null ? void 0 : w.options) == null ? void 0 : d.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((O = (T = l.locale) == null ? void 0 : T.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, $ = (e == null ? void 0 : e.weekStartsOn) ?? ((E = (y = e == null ? void 0 : e.locale) == null ? void 0 : y.options) == null ? void 0 : E.weekStartsOn) ?? l.weekStartsOn ?? ((x = (R = l.locale) == null ? void 0 : R.options) == null ? void 0 : x.weekStartsOn) ?? 0;
|
|
13
|
+
if (!i)
|
|
14
|
+
return a ? c() : A(f, e == null ? void 0 : e.in);
|
|
15
|
+
const u = {
|
|
16
|
+
firstWeekContainsDate: F,
|
|
17
|
+
weekStartsOn: $,
|
|
18
|
+
locale: m
|
|
19
|
+
}, k = [new z(e == null ? void 0 : e.in, f)], Y = i.match(K).map((r) => {
|
|
20
|
+
const t = r[0];
|
|
21
|
+
if (t in W) {
|
|
22
|
+
const n = W[t];
|
|
23
|
+
return n(r, m.formatLong);
|
|
24
|
+
}
|
|
25
|
+
return r;
|
|
26
|
+
}).join("").match(I), g = [];
|
|
27
|
+
for (let r of Y) {
|
|
28
|
+
!(e != null && e.useAdditionalWeekYearTokens) && L(r) && b(r, i, a), !(e != null && e.useAdditionalDayOfYearTokens) && j(r) && b(r, i, a);
|
|
29
|
+
const t = r[0], n = Q[t];
|
|
30
|
+
if (n) {
|
|
31
|
+
const { incompatibleTokens: D } = n;
|
|
32
|
+
if (Array.isArray(D)) {
|
|
33
|
+
const C = g.find(
|
|
34
|
+
(P) => D.includes(P.token) || P.token === t
|
|
35
|
+
);
|
|
36
|
+
if (C)
|
|
37
|
+
throw new RangeError(
|
|
38
|
+
`The format string mustn't contain \`${C.fullToken}\` and \`${r}\` at the same time`
|
|
39
|
+
);
|
|
40
|
+
} else if (n.incompatibleTokens === "*" && g.length > 0)
|
|
41
|
+
throw new RangeError(
|
|
42
|
+
`The format string mustn't contain \`${r}\` and any other token at the same time`
|
|
43
|
+
);
|
|
44
|
+
g.push({ token: t, fullToken: r });
|
|
45
|
+
const h = n.run(
|
|
46
|
+
a,
|
|
47
|
+
r,
|
|
48
|
+
m.match,
|
|
49
|
+
u
|
|
50
|
+
);
|
|
51
|
+
if (!h)
|
|
52
|
+
return c();
|
|
53
|
+
k.push(h.setter), a = h.rest;
|
|
54
|
+
} else {
|
|
55
|
+
if (t.match(B))
|
|
56
|
+
throw new RangeError(
|
|
57
|
+
"Format string contains an unescaped latin alphabet character `" + t + "`"
|
|
58
|
+
);
|
|
59
|
+
if (r === "''" ? r = "'" : t === "'" && (r = G(r)), a.indexOf(r) === 0)
|
|
60
|
+
a = a.slice(r.length);
|
|
61
|
+
else
|
|
62
|
+
return c();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (a.length > 0 && Z.test(a))
|
|
66
|
+
return c();
|
|
67
|
+
const N = k.map((r) => r.priority).sort((r, t) => t - r).filter((r, t, n) => n.indexOf(r) === t).map(
|
|
68
|
+
(r) => k.filter((t) => t.priority === r).sort((t, n) => n.subPriority - t.subPriority)
|
|
69
|
+
).map((r) => r[0]);
|
|
70
|
+
let s = A(f, e == null ? void 0 : e.in);
|
|
71
|
+
if (isNaN(+s))
|
|
72
|
+
return c();
|
|
73
|
+
const o = {};
|
|
74
|
+
for (const r of N) {
|
|
75
|
+
if (!r.validate(s, u))
|
|
76
|
+
return c();
|
|
77
|
+
const t = r.set(s, o, u);
|
|
78
|
+
Array.isArray(t) ? (s = t[0], Object.assign(o, t[1])) : s = t;
|
|
79
|
+
}
|
|
80
|
+
return s;
|
|
81
|
+
}
|
|
82
|
+
function G(a) {
|
|
83
|
+
return a.match(M)[1].replace(U, "'");
|
|
84
|
+
}
|
|
85
|
+
export {
|
|
86
|
+
te as default,
|
|
87
|
+
W as longFormatters,
|
|
88
|
+
te as parse,
|
|
89
|
+
Q as parsers
|
|
90
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { constructFrom as i } from "./constructFrom.js";
|
|
2
|
+
import { setMonth as f } from "./setMonth.js";
|
|
3
|
+
import { toDate as m } from "./toDate.js";
|
|
4
|
+
function s(e, t, n) {
|
|
5
|
+
let r = m(e, n == null ? void 0 : n.in);
|
|
6
|
+
return isNaN(+r) ? i((n == null ? void 0 : n.in) || e, NaN) : (t.year != null && r.setFullYear(t.year), t.month != null && (r = f(r, t.month)), t.date != null && r.setDate(t.date), t.hours != null && r.setHours(t.hours), t.minutes != null && r.setMinutes(t.minutes), t.seconds != null && r.setSeconds(t.seconds), t.milliseconds != null && r.setMilliseconds(t.milliseconds), r);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
s as default,
|
|
10
|
+
s as set
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getDefaultOptions as s } from "./_lib/defaultOptions.js";
|
|
2
|
+
import { addDays as w } from "./addDays.js";
|
|
3
|
+
import { toDate as S } from "./toDate.js";
|
|
4
|
+
function _(O, t, e) {
|
|
5
|
+
var f, d, l, m;
|
|
6
|
+
const a = s(), u = (e == null ? void 0 : e.weekStartsOn) ?? ((d = (f = e == null ? void 0 : e.locale) == null ? void 0 : f.options) == null ? void 0 : d.weekStartsOn) ?? a.weekStartsOn ?? ((m = (l = a.locale) == null ? void 0 : l.options) == null ? void 0 : m.weekStartsOn) ?? 0, c = S(O, e == null ? void 0 : e.in), n = c.getDay(), D = (t % 7 + 7) % 7, r = 7 - u, k = t < 0 || t > 6 ? t - (n + r) % 7 : (D + r) % 7 - (n + r) % 7;
|
|
7
|
+
return w(c, k, e);
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
_ as default,
|
|
11
|
+
_ as setDay
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { addDays as c } from "./addDays.js";
|
|
2
|
+
import { getISODay as d } from "./getISODay.js";
|
|
3
|
+
import { toDate as D } from "./toDate.js";
|
|
4
|
+
function I(a, e, r) {
|
|
5
|
+
const t = D(a, r == null ? void 0 : r.in), f = d(t, r), m = e - f;
|
|
6
|
+
return c(t, m, r);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
I as default,
|
|
10
|
+
I as setISODay
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { getISOWeek as m } from "./getISOWeek.js";
|
|
2
|
+
import { toDate as c } from "./toDate.js";
|
|
3
|
+
function D(r, a, e) {
|
|
4
|
+
const t = c(r, e == null ? void 0 : e.in), f = m(t, e) - a;
|
|
5
|
+
return t.setDate(t.getDate() - f * 7), t;
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
D as default,
|
|
9
|
+
D as setISOWeek
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { constructFrom as M } from "./constructFrom.js";
|
|
2
|
+
import { getDaysInMonth as f } from "./getDaysInMonth.js";
|
|
3
|
+
import { toDate as h } from "./toDate.js";
|
|
4
|
+
function y(a, n, t) {
|
|
5
|
+
const e = h(a, t == null ? void 0 : t.in), c = e.getFullYear(), m = e.getDate(), r = M((t == null ? void 0 : t.in) || a, 0);
|
|
6
|
+
r.setFullYear(c, n, 15), r.setHours(0, 0, 0, 0);
|
|
7
|
+
const u = f(r);
|
|
8
|
+
return e.setMonth(n, Math.min(m, u)), e;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
y as default,
|
|
12
|
+
y as setMonth
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { getWeek as c } from "./getWeek.js";
|
|
2
|
+
import { toDate as t } from "./toDate.js";
|
|
3
|
+
function D(a, f, e) {
|
|
4
|
+
const r = t(a, e == null ? void 0 : e.in), m = c(r, e) - f;
|
|
5
|
+
return r.setDate(r.getDate() - m * 7), t(r, e == null ? void 0 : e.in);
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
D as default,
|
|
9
|
+
D as setWeek
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { constructFrom as f } from "./constructFrom.js";
|
|
2
|
+
import { toDate as m } from "./toDate.js";
|
|
3
|
+
function N(a, u, r) {
|
|
4
|
+
const e = m(a, r == null ? void 0 : r.in);
|
|
5
|
+
return isNaN(+e) ? f((r == null ? void 0 : r.in) || a, NaN) : (e.setFullYear(u), e);
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
N as default,
|
|
9
|
+
N as setYear
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { constructFrom as f } from "./constructFrom.js";
|
|
2
|
+
import { getISOWeekYear as u } from "./getISOWeekYear.js";
|
|
3
|
+
import { startOfISOWeek as m } from "./startOfISOWeek.js";
|
|
4
|
+
function s(t, r) {
|
|
5
|
+
const a = u(t, r), e = f((r == null ? void 0 : r.in) || t, 0);
|
|
6
|
+
return e.setFullYear(a, 0, 4), e.setHours(0, 0, 0, 0), m(e);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
s as default,
|
|
10
|
+
s as startOfISOWeekYear
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getDefaultOptions as s } from "./_lib/defaultOptions.js";
|
|
2
|
+
import { toDate as w } from "./toDate.js";
|
|
3
|
+
function m(u, e) {
|
|
4
|
+
var c, O, l, k;
|
|
5
|
+
const a = s(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((O = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : O.weekStartsOn) ?? a.weekStartsOn ?? ((k = (l = a.locale) == null ? void 0 : l.options) == null ? void 0 : k.weekStartsOn) ?? 0, t = w(u, e == null ? void 0 : e.in), f = t.getDay(), d = (f < r ? 7 : 0) + f - r;
|
|
6
|
+
return t.setDate(t.getDate() - d), t.setHours(0, 0, 0, 0), t;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
m as default,
|
|
10
|
+
m as startOfWeek
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { getDefaultOptions as W } from "./_lib/defaultOptions.js";
|
|
2
|
+
import { constructFrom as n } from "./constructFrom.js";
|
|
3
|
+
import { getWeekYear as u } from "./getWeekYear.js";
|
|
4
|
+
import { startOfWeek as D } from "./startOfWeek.js";
|
|
5
|
+
function g(r, e) {
|
|
6
|
+
var f, s, c, k;
|
|
7
|
+
const a = W(), l = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((s = (f = e == null ? void 0 : e.locale) == null ? void 0 : f.options) == null ? void 0 : s.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((k = (c = a.locale) == null ? void 0 : c.options) == null ? void 0 : k.firstWeekContainsDate) ?? 1, m = u(r, e), t = n((e == null ? void 0 : e.in) || r, 0);
|
|
8
|
+
return t.setFullYear(m, 0, l), t.setHours(0, 0, 0, 0), D(t, e);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
g as default,
|
|
12
|
+
g as startOfWeekYear
|
|
13
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { constructFrom as y } from "./constructFrom.js";
|
|
2
|
+
import { subDays as S } from "./subDays.js";
|
|
3
|
+
import { subMonths as T } from "./subMonths.js";
|
|
4
|
+
function k(o, t, s) {
|
|
5
|
+
const {
|
|
6
|
+
years: u = 0,
|
|
7
|
+
months: n = 0,
|
|
8
|
+
weeks: r = 0,
|
|
9
|
+
days: c = 0,
|
|
10
|
+
hours: m = 0,
|
|
11
|
+
minutes: e = 0,
|
|
12
|
+
seconds: b = 0
|
|
13
|
+
} = t, h = T(o, n + u * 12, s), a = S(h, c + r * 7, s), f = e + m * 60, d = (b + f * 60) * 1e3;
|
|
14
|
+
return y((s == null ? void 0 : s.in) || o, +a - d);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
k as default,
|
|
18
|
+
k as sub
|
|
19
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { constructFrom as o } from "./constructFrom.js";
|
|
2
|
+
function u(e, t) {
|
|
3
|
+
const n = s(t) ? new t(0) : o(t, 0);
|
|
4
|
+
return n.setFullYear(e.getFullYear(), e.getMonth(), e.getDate()), n.setHours(
|
|
5
|
+
e.getHours(),
|
|
6
|
+
e.getMinutes(),
|
|
7
|
+
e.getSeconds(),
|
|
8
|
+
e.getMilliseconds()
|
|
9
|
+
), n;
|
|
10
|
+
}
|
|
11
|
+
function s(e) {
|
|
12
|
+
var t;
|
|
13
|
+
return typeof e == "function" && ((t = e.prototype) == null ? void 0 : t.constructor) === e;
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
u as default,
|
|
17
|
+
u as transpose
|
|
18
|
+
};
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.10.
|
|
1
|
+
declare const _default: "1.10.2";
|
|
2
2
|
export default _default;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indielayer/ui",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"description": "Indielayer UI Components with Tailwind CSS build for Vue 3",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "João Teixeira",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@vitejs/plugin-vue-jsx": "^3.0.1",
|
|
58
58
|
"@vue/test-utils": "^2.4.0",
|
|
59
59
|
"@vue/tsconfig": "^0.4.0",
|
|
60
|
-
"@vuepic/vue-datepicker": "^
|
|
60
|
+
"@vuepic/vue-datepicker": "^11.0.1",
|
|
61
61
|
"@vueuse/core": "^11.1.0",
|
|
62
62
|
"autoprefixer": "^10.4.0",
|
|
63
63
|
"c8": "^7.12.0",
|
|
@@ -18,14 +18,11 @@ const vueDatepickerProps = {
|
|
|
18
18
|
offset: { type: [Number, String] as PropType<number | string>, default: 10 },
|
|
19
19
|
hideNavigation: { type: Array as PropType<VueDatePickerProps['hideNavigation']>, default: () => [] },
|
|
20
20
|
timezone: { type: [String, Object] as PropType<VueDatePickerProps['timezone']>, default: null },
|
|
21
|
-
emitTimezone: { type: String as PropType<string>, default: null },
|
|
22
21
|
vertical: { type: Boolean as PropType<boolean>, default: false },
|
|
23
22
|
disableMonthYearSelect: { type: Boolean as PropType<boolean>, default: false },
|
|
24
23
|
disableYearSelect: { type: Boolean as PropType<boolean>, default: false },
|
|
25
|
-
menuClassName: { type: String as PropType<string>, default: null },
|
|
26
24
|
dayClass: { type: Function as PropType<(date: Date) => string>, default: null },
|
|
27
25
|
yearRange: { type: Array as PropType<number[]>, default: () => [1900, 2100] },
|
|
28
|
-
calendarCellClassName: { type: String as PropType<string>, default: null },
|
|
29
26
|
enableTimePicker: { type: Boolean as PropType<boolean>, default: true },
|
|
30
27
|
autoApply: { type: Boolean as PropType<boolean>, default: false },
|
|
31
28
|
disabledDates: { type: [Array, Function] as PropType<VueDatePickerProps['disabledDates']>, default: () => [] },
|
|
@@ -33,7 +30,6 @@ const vueDatepickerProps = {
|
|
|
33
30
|
startDate: { type: [Date, String] as PropType<string | Date>, default: null },
|
|
34
31
|
startTime: { type: [Object, Array] as PropType<VueDatePickerProps['startTime']>, default: null },
|
|
35
32
|
hideOffsetDates: { type: Boolean as PropType<boolean>, default: false },
|
|
36
|
-
autoRange: { type: [Number, String] as PropType<number | string>, default: null },
|
|
37
33
|
noToday: { type: Boolean as PropType<boolean>, default: false },
|
|
38
34
|
disabledWeekDays: { type: Array as PropType<string[] | number[]>, default: () => [] },
|
|
39
35
|
allowedDates: { type: Array as PropType<string[] | Date[]>, default: null },
|
|
@@ -46,14 +42,10 @@ const vueDatepickerProps = {
|
|
|
46
42
|
flow: { type: Array as PropType<VueDatePickerProps['flow']>, default: () => [] },
|
|
47
43
|
partialFlow: { type: Boolean as PropType<boolean>, default: false },
|
|
48
44
|
preventMinMaxNavigation: { type: Boolean as PropType<boolean>, default: false },
|
|
49
|
-
minRange: { type: [Number, String] as PropType<number | string>, default: null },
|
|
50
|
-
maxRange: { type: [Number, String] as PropType<number | string>, default: null },
|
|
51
|
-
multiDatesLimit: { type: [Number, String] as PropType<number | string>, default: null },
|
|
52
45
|
reverseYears: { type: Boolean as PropType<boolean>, default: false },
|
|
53
46
|
weekPicker: { type: Boolean as PropType<boolean>, default: false },
|
|
54
47
|
filters: { type: Object as PropType<Partial<VueDatePickerProps['filters']>>, default: () => ({}) },
|
|
55
48
|
arrowNavigation: { type: Boolean as PropType<boolean>, default: false },
|
|
56
|
-
disableTimeRangeValidation: { type: Boolean as PropType<boolean>, default: false },
|
|
57
49
|
highlight: {
|
|
58
50
|
type: [Function, Object] as PropType<VueDatePickerProps['highlight']>,
|
|
59
51
|
default: null,
|
|
@@ -67,7 +59,6 @@ const vueDatepickerProps = {
|
|
|
67
59
|
type: [String, Function, Object] as PropType<VueDatePickerProps['weekNumbers']>,
|
|
68
60
|
default: null,
|
|
69
61
|
},
|
|
70
|
-
calendarClassName: { type: String as PropType<string>, default: null },
|
|
71
62
|
monthChangeOnScroll: { type: [Boolean, String] as PropType<boolean | 'inverse'>, default: true },
|
|
72
63
|
dayNames: {
|
|
73
64
|
type: [Function, Array] as PropType<((lang: string, weekStart: number) => string[]) | string[]>,
|
|
@@ -84,7 +75,6 @@ const vueDatepickerProps = {
|
|
|
84
75
|
default: () => '',
|
|
85
76
|
},
|
|
86
77
|
multiDates: { type: Boolean as PropType<boolean>, default: false },
|
|
87
|
-
partialRange: { type: Boolean as PropType<boolean>, default: true },
|
|
88
78
|
ignoreTimeValidation: { type: Boolean as PropType<boolean>, default: false },
|
|
89
79
|
minDate: { type: [Date, String] as PropType<Date | string>, default: null },
|
|
90
80
|
maxDate: { type: [Date, String] as PropType<Date | string>, default: null },
|
|
@@ -93,13 +83,10 @@ const vueDatepickerProps = {
|
|
|
93
83
|
placeholder: { type: String as PropType<string>, default: '' },
|
|
94
84
|
hideInputIcon: { type: Boolean as PropType<boolean>, default: false },
|
|
95
85
|
clearable: { type: Boolean as PropType<boolean>, default: false },
|
|
86
|
+
alwaysClearable: { type: Boolean as PropType<boolean>, default: false },
|
|
96
87
|
state: { type: Boolean as PropType<VueDatePickerProps['state']>, default: null },
|
|
97
88
|
required: { type: Boolean as PropType<boolean>, default: false },
|
|
98
89
|
autocomplete: { type: String as PropType<string>, default: 'off' },
|
|
99
|
-
inputClassName: { type: String as PropType<string>, default: null },
|
|
100
|
-
fixedStart: { type: Boolean as PropType<boolean>, default: false },
|
|
101
|
-
fixedEnd: { type: Boolean as PropType<boolean>, default: false },
|
|
102
|
-
timePicker: { type: Boolean as PropType<boolean>, default: false },
|
|
103
90
|
enableSeconds: { type: Boolean as PropType<boolean>, default: false },
|
|
104
91
|
is24: { type: Boolean as PropType<boolean>, default: true },
|
|
105
92
|
noHoursOverlay: { type: Boolean as PropType<boolean>, default: false },
|
|
@@ -126,6 +113,9 @@ const vueDatepickerProps = {
|
|
|
126
113
|
config: { type: Object as PropType<Partial<VueDatePickerProps['config']>>, default: undefined },
|
|
127
114
|
quarterPicker: { type: Boolean as PropType<boolean>, default: false },
|
|
128
115
|
yearFirst: { type: Boolean as PropType<boolean>, default: false },
|
|
116
|
+
onInternalModelChange: { type: [Function, Object] as PropType<(...args: any[]) => void>, default: null },
|
|
117
|
+
enableMinutes: { type: Boolean as PropType<boolean>, default: true },
|
|
118
|
+
ui: { type: Object as PropType<Partial<VueDatePickerProps['ui']>>, default: () => ({}) },
|
|
129
119
|
}
|
|
130
120
|
|
|
131
121
|
const datepickerProps = {
|
|
@@ -206,6 +196,7 @@ const { styles, classes, className } = useTheme('Datepicker', {}, props)
|
|
|
206
196
|
]"
|
|
207
197
|
>
|
|
208
198
|
<vue-datepicker
|
|
199
|
+
:ui="ui"
|
|
209
200
|
:model-value="modelValue"
|
|
210
201
|
:multi-calendars="multiCalendars"
|
|
211
202
|
:model-type="modelType"
|
|
@@ -221,14 +212,11 @@ const { styles, classes, className } = useTheme('Datepicker', {}, props)
|
|
|
221
212
|
:offset="offset"
|
|
222
213
|
:hide-navigation="hideNavigation"
|
|
223
214
|
:timezone="timezone"
|
|
224
|
-
:emit-timezone="emitTimezone"
|
|
225
215
|
:vertical="vertical"
|
|
226
216
|
:disable-month-year-select="disableMonthYearSelect"
|
|
227
217
|
:disable-year-select="disableYearSelect"
|
|
228
|
-
:menu-class-name="menuClassName"
|
|
229
218
|
:day-class="dayClass"
|
|
230
219
|
:year-range="yearRange"
|
|
231
|
-
:calendar-cell-class-name="calendarCellClassName"
|
|
232
220
|
:enable-time-picker="enableTimePicker"
|
|
233
221
|
:auto-apply="autoApply"
|
|
234
222
|
:disabled-dates="disabledDates"
|
|
@@ -236,7 +224,6 @@ const { styles, classes, className } = useTheme('Datepicker', {}, props)
|
|
|
236
224
|
:start-date="startDate"
|
|
237
225
|
:start-time="startTime"
|
|
238
226
|
:hide-offset-dates="hideOffsetDates"
|
|
239
|
-
:auto-range="autoRange"
|
|
240
227
|
:no-today="noToday"
|
|
241
228
|
:disabled-week-days="disabledWeekDays"
|
|
242
229
|
:allowed-dates="allowedDates"
|
|
@@ -249,14 +236,10 @@ const { styles, classes, className } = useTheme('Datepicker', {}, props)
|
|
|
249
236
|
:flow="flow"
|
|
250
237
|
:partial-flow="partialFlow"
|
|
251
238
|
:prevent-min-max-navigation="preventMinMaxNavigation"
|
|
252
|
-
:min-range="minRange"
|
|
253
|
-
:max-range="maxRange"
|
|
254
|
-
:multi-dates-limit="multiDatesLimit"
|
|
255
239
|
:reverse-years="reverseYears"
|
|
256
240
|
:week-picker="weekPicker"
|
|
257
241
|
:filters="filters"
|
|
258
242
|
:arrow-navigation="arrowNavigation"
|
|
259
|
-
:disable-time-range-validation="disableTimeRangeValidation"
|
|
260
243
|
:highlight="highlight"
|
|
261
244
|
:teleport="teleport"
|
|
262
245
|
:teleport-center="teleportCenter"
|
|
@@ -264,7 +247,6 @@ const { styles, classes, className } = useTheme('Datepicker', {}, props)
|
|
|
264
247
|
:week-num-name="weekNumName"
|
|
265
248
|
:week-start="weekStart"
|
|
266
249
|
:week-numbers="weekNumbers"
|
|
267
|
-
:calendar-class-name="calendarClassName"
|
|
268
250
|
:month-change-on-scroll="monthChangeOnScroll"
|
|
269
251
|
:day-names="dayNames"
|
|
270
252
|
:month-picker="monthPicker"
|
|
@@ -275,7 +257,6 @@ const { styles, classes, className } = useTheme('Datepicker', {}, props)
|
|
|
275
257
|
:cancel-text="cancelText"
|
|
276
258
|
:preview-format="previewFormat"
|
|
277
259
|
:multi-dates="multiDates"
|
|
278
|
-
:partial-range="partialRange"
|
|
279
260
|
:ignore-time-validation="ignoreTimeValidation"
|
|
280
261
|
:min-date="minDate"
|
|
281
262
|
:max-date="maxDate"
|
|
@@ -285,10 +266,6 @@ const { styles, classes, className } = useTheme('Datepicker', {}, props)
|
|
|
285
266
|
:state="state"
|
|
286
267
|
:required="required"
|
|
287
268
|
:autocomplete="autocomplete"
|
|
288
|
-
:input-class-name="inputClassName"
|
|
289
|
-
:fixed-start="fixedStart"
|
|
290
|
-
:fixed-end="fixedEnd"
|
|
291
|
-
:time-picker="timePicker"
|
|
292
269
|
:enable-seconds="enableSeconds"
|
|
293
270
|
:no-hours-overlay="noHoursOverlay"
|
|
294
271
|
:no-minutes-overlay="noMinutesOverlay"
|
|
@@ -320,7 +297,7 @@ const { styles, classes, className } = useTheme('Datepicker', {}, props)
|
|
|
320
297
|
<template #dp-input="{ value, onEnter, onTab }">
|
|
321
298
|
<x-input
|
|
322
299
|
ref="inputRef"
|
|
323
|
-
readonly
|
|
300
|
+
:readonly="textInput === false || readonly"
|
|
324
301
|
:model-value="value"
|
|
325
302
|
:label="label"
|
|
326
303
|
:size="size"
|
|
@@ -328,6 +305,7 @@ const { styles, classes, className } = useTheme('Datepicker', {}, props)
|
|
|
328
305
|
:helper="helper"
|
|
329
306
|
icon-right="calendar"
|
|
330
307
|
:loading="loading"
|
|
308
|
+
data-1p-ignore
|
|
331
309
|
:name="name"
|
|
332
310
|
:rules="rules"
|
|
333
311
|
:tooltip="tooltip"
|
|
@@ -416,4 +394,20 @@ const { styles, classes, className } = useTheme('Datepicker', {}, props)
|
|
|
416
394
|
--dp-range-between-dates-text-color: var(--x-datepicker-text, #212121) !important;
|
|
417
395
|
--dp-range-between-border-color: var(--x-datepicker-range, #f3f3f3) !important;
|
|
418
396
|
}
|
|
397
|
+
|
|
398
|
+
.dark .dp__cell_inner {
|
|
399
|
+
border: 0 !important;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.dp__selection_preview {
|
|
403
|
+
padding: 4px;
|
|
404
|
+
font-weight: 500;
|
|
405
|
+
word-spacing: 4px;
|
|
406
|
+
letter-spacing: 0.5px;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.dp__action_row {
|
|
410
|
+
border-top: 1px solid #eee;
|
|
411
|
+
margin-top: 10px;
|
|
412
|
+
}
|
|
419
413
|
</style>
|
|
@@ -11,8 +11,6 @@ const theme: DatepickerTheme = {
|
|
|
11
11
|
const vars: Array<Record<string, string> | string> = [`
|
|
12
12
|
/*General*/
|
|
13
13
|
--dp-font-family: var(--font-family-sans);
|
|
14
|
-
--dp-border-radius: 8px; /*Configurable border-radius*/
|
|
15
|
-
--dp-cell-border-radius: 8px; /*Specific border radius for the calendar cell*/
|
|
16
14
|
--dp-common-transition: all 0.1s ease-in; /*Generic transition applied on buttons and calendar cells*/
|
|
17
15
|
|
|
18
16
|
/*Sizing*/
|
|
@@ -36,7 +34,7 @@ const theme: DatepickerTheme = {
|
|
|
36
34
|
|
|
37
35
|
/*Font sizes*/
|
|
38
36
|
--dp-font-size: 0.875rem; /*Default font-size*/
|
|
39
|
-
--dp-preview-font-size: 0.
|
|
37
|
+
--dp-preview-font-size: 0.875rem; /*Font size of the date preview in the action row*/
|
|
40
38
|
--dp-time-font-size: 0.8rem; /*Font size in the time picker*/
|
|
41
39
|
|
|
42
40
|
/*Transitions*/
|
|
@@ -48,19 +46,19 @@ const theme: DatepickerTheme = {
|
|
|
48
46
|
vars.push(css.variables({
|
|
49
47
|
bg: '#fff',
|
|
50
48
|
text: secondary[800],
|
|
51
|
-
disabled: secondary[
|
|
52
|
-
range:
|
|
49
|
+
disabled: secondary[300],
|
|
50
|
+
range: primary[100],
|
|
53
51
|
icon: secondary[500],
|
|
54
52
|
primary: primary[500],
|
|
55
53
|
border: secondary[100],
|
|
56
54
|
dark: {
|
|
57
55
|
bg: secondary[800],
|
|
58
56
|
text: secondary[100],
|
|
59
|
-
disabled: secondary[
|
|
60
|
-
range:
|
|
57
|
+
disabled: secondary[600],
|
|
58
|
+
range: primary[900],
|
|
61
59
|
icon: secondary[200],
|
|
62
60
|
primary: primary[500],
|
|
63
|
-
border: secondary[
|
|
61
|
+
border: secondary[800],
|
|
64
62
|
},
|
|
65
63
|
}))
|
|
66
64
|
|