@ignatremizov/vue-tailwind-datepicker 2.1.5 → 2.1.7
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 +18 -3
- package/dist/VueTailwindDatePicker.vue.d.ts +214 -0
- package/dist/{af-C1zDfZWk.js → af-CUA6RSUA.js} +1 -1
- package/dist/{am-CtTtf4Gb.js → am-6VPkkv9o.js} +1 -1
- package/dist/{ar-BKGsAKbh.js → ar-DaICv8D1.js} +1 -1
- package/dist/{ar-dz-DUDZjMe7.js → ar-dz-Drq0qysN.js} +1 -1
- package/dist/{ar-iq-C7P8tTKh.js → ar-iq-Beh7SEvc.js} +1 -1
- package/dist/{ar-kw-QqWCxp-X.js → ar-kw-BD9OslWW.js} +1 -1
- package/dist/{ar-ly-MCe2_Zi7.js → ar-ly-DBnyMV1j.js} +1 -1
- package/dist/{ar-ma-Di79jrLh.js → ar-ma-CPHmRMxV.js} +1 -1
- package/dist/{ar-sa-B8t8bJ2s.js → ar-sa-CPFMBt7S.js} +1 -1
- package/dist/{ar-tn-0rWMsCVL.js → ar-tn-D5Ng0iKE.js} +1 -1
- package/dist/{az-ClHWZNK_.js → az-Dglyq6IM.js} +1 -1
- package/dist/{be-BjGLHn4i.js → be-CkP4l9ea.js} +1 -1
- package/dist/{bg-z_R9zuDN.js → bg-DSlJM4Oi.js} +1 -1
- package/dist/{bi-GVSnRI6v.js → bi-DIT_Rapg.js} +1 -1
- package/dist/{bm-CLraWWLi.js → bm-kdz11IZo.js} +1 -1
- package/dist/{bn-BeItfdMf.js → bn-MVUUPUt6.js} +1 -1
- package/dist/{bn-bd-ChPYodUc.js → bn-bd-VXL5YC8l.js} +1 -1
- package/dist/{bo-DpAnYKxF.js → bo-Dps60MCf.js} +1 -1
- package/dist/{br-COpBQNp9.js → br-E3qTuBrc.js} +1 -1
- package/dist/{bs-DebYPcMf.js → bs-Ck5cjL17.js} +1 -1
- package/dist/{ca-rXaOWL6o.js → ca-DZLDQa8b.js} +1 -1
- package/dist/components/Calendar.vue.d.ts +41 -0
- package/dist/components/Header.vue.d.ts +72 -0
- package/dist/components/Month.vue.d.ts +34 -0
- package/dist/components/SelectorWheelStepButton.vue.d.ts +16 -0
- package/dist/components/Shortcut.vue.d.ts +32 -0
- package/dist/components/TimeWheel.vue.d.ts +35 -0
- package/dist/components/Week.vue.d.ts +7 -0
- package/dist/components/Year.vue.d.ts +44 -0
- package/dist/{cs-dcnM_aoD.js → cs-CEDvoSU-.js} +1 -1
- package/dist/{cv-LgukTbsI.js → cv-BlgxZ6Ig.js} +1 -1
- package/dist/{cy-Cn05PFW8.js → cy-Cp3uDXbb.js} +1 -1
- package/dist/{da-D_MLuBe0.js → da-Cl9fzaKN.js} +1 -1
- package/dist/{de-CgGoOQDK.js → de-ClXScQ6u.js} +1 -1
- package/dist/{de-at-BJ-45lAp.js → de-at-Cd1sSBw6.js} +1 -1
- package/dist/{de-ch-Byib3lwY.js → de-ch-CPjpE8I-.js} +1 -1
- package/dist/{dv-B_EIIriN.js → dv-CEmjPULq.js} +1 -1
- package/dist/{el-D_gmH9Na.js → el-EWl2szAA.js} +1 -1
- package/dist/{en-au-HpZyybUB.js → en-au-DnK0xw9k.js} +1 -1
- package/dist/{en-ca-B7I-4DmG.js → en-ca-DOxuSTmJ.js} +1 -1
- package/dist/{en-gb-DTn0UYEi.js → en-gb-Dmx7_qDd.js} +1 -1
- package/dist/{en-ie-DsPM2hRv.js → en-ie-DLOwhlBW.js} +1 -1
- package/dist/{en-il-4Zk7-yRG.js → en-il-B8BO3vVa.js} +1 -1
- package/dist/{en-in-CQq3vhbI.js → en-in-jkVTPC2l.js} +1 -1
- package/dist/{en-nz-W6-v1RVo.js → en-nz-DXeCg9RR.js} +1 -1
- package/dist/{en-sg-DJnk1r9W.js → en-sg-D4yH6kNv.js} +1 -1
- package/dist/{en-tt-aRR6_nf3.js → en-tt-B6ir1BMs.js} +1 -1
- package/dist/entry.esm.d.ts +295 -1
- package/dist/{eo-k1vVHrod.js → eo-D3UxzF0q.js} +1 -1
- package/dist/{es-CSMohBMe.js → es-Dqu0uSBJ.js} +1 -1
- package/dist/{es-do-X_2zYeQO.js → es-do-Bc2txQJ0.js} +1 -1
- package/dist/{es-mx-h_Vadr6L.js → es-mx-VDVN3LPq.js} +1 -1
- package/dist/{es-pr-R6i3elBe.js → es-pr-DYZvPCHT.js} +1 -1
- package/dist/{es-us-ydkMGyeN.js → es-us-CBeccPbI.js} +1 -1
- package/dist/{et-BKWztujO.js → et-9bUcfUN3.js} +1 -1
- package/dist/{eu-XFu_w1qy.js → eu-DoBMV8Un.js} +1 -1
- package/dist/{fa-CDHjs84K.js → fa-B-20HQLV.js} +1 -1
- package/dist/{fi-BS6V1F9E.js → fi-DY7nYd21.js} +1 -1
- package/dist/{fo-CdrA_7wK.js → fo-Chj8hE1W.js} +1 -1
- package/dist/{fr-ca-CsT34QVW.js → fr-ca-Ckp6y287.js} +1 -1
- package/dist/{fr-ch-DYjf9cxE.js → fr-ch-2U0pZmHE.js} +1 -1
- package/dist/{fr-B1gU2lms.js → fr-rHM67PPB.js} +1 -1
- package/dist/{fy-DLbDEv2U.js → fy-CI7phpxU.js} +1 -1
- package/dist/{ga-DK9bL349.js → ga-CJHA5ze1.js} +1 -1
- package/dist/{gd-DU3QcgzQ.js → gd-CKDgyioy.js} +1 -1
- package/dist/{gl-CHjAZiiE.js → gl-u-hJYmoI.js} +1 -1
- package/dist/{gom-latn-M51aP5Vq.js → gom-latn-B5dJSb6s.js} +1 -1
- package/dist/{gu-DP_FOEbq.js → gu-wSc5G6TT.js} +1 -1
- package/dist/{he-hx5Rx9Y0.js → he-CIo3VJVF.js} +1 -1
- package/dist/{hi-DJE-92Un.js → hi-BclgFEuU.js} +1 -1
- package/dist/{hr-BhjZ0qVV.js → hr-Cwdc2kC-.js} +1 -1
- package/dist/{ht-DazeV7vT.js → ht-C-alpCHc.js} +1 -1
- package/dist/{hu-ytdCzWmW.js → hu-ITZFYMds.js} +1 -1
- package/dist/{hy-am-Dyc4VOmQ.js → hy-am-Dy3LwM_k.js} +1 -1
- package/dist/{id-B_mXD8X7.js → id-2yzRY1jD.js} +1 -1
- package/dist/{index-pdvQgmpw.js → index-72kM96N2.js} +22 -22
- package/dist/{is-BG4JBQMw.js → is-BpnK8Ip2.js} +1 -1
- package/dist/{it-BrIMlVAY.js → it-BZ_6z0ip.js} +1 -1
- package/dist/{it-ch-DzD0gF2i.js → it-ch-CiAWE1B7.js} +1 -1
- package/dist/{ja-CTGa4G7h.js → ja-BCQ_OTF2.js} +1 -1
- package/dist/{jv-BlPQUE1w.js → jv-BL9Tv8ee.js} +1 -1
- package/dist/{ka-YjhghQse.js → ka-BSs-1TiK.js} +1 -1
- package/dist/{kk-C7TlwYiA.js → kk-DOdWETZV.js} +1 -1
- package/dist/{km-DRQg4k_s.js → km-BYoIdLHo.js} +7 -4
- package/dist/{kn-C1PvRBaO.js → kn-B0xPwm93.js} +1 -1
- package/dist/{ko-DtqL7t-O.js → ko-7BWCzI1X.js} +1 -1
- package/dist/{ku-C6btZimO.js → ku-CWwzkETA.js} +1 -1
- package/dist/{ky-MCwRo1zy.js → ky-Cj899oQL.js} +1 -1
- package/dist/{lb-BnMsfuJ5.js → lb-DWsEdozw.js} +1 -1
- package/dist/{lo-Cr1zQAWG.js → lo-Dkarq39i.js} +1 -1
- package/dist/{lt-C7Y5Vfq9.js → lt-qOK3hf1s.js} +1 -1
- package/dist/{lv-C1vej2ax.js → lv-CnDdV4w3.js} +1 -1
- package/dist/{me-CRZB39fN.js → me-BtZHTNma.js} +1 -1
- package/dist/{mi-CLv7nfSQ.js → mi-LrEZU-oa.js} +1 -1
- package/dist/{mk-VHZ4gmYJ.js → mk-BGD_lBPf.js} +1 -1
- package/dist/{ml-jL4gB-xe.js → ml-BTOyER7J.js} +1 -1
- package/dist/{mn-CDX_PxbZ.js → mn-BPoS9WiB.js} +1 -1
- package/dist/{mr-Bkbpr_Bw.js → mr-BpQKLTMZ.js} +1 -1
- package/dist/{ms-BROxiacM.js → ms-BNq4gE20.js} +1 -1
- package/dist/{ms-my-BODpks0O.js → ms-my-BOb1bZ6N.js} +1 -1
- package/dist/{mt-CcikoxHP.js → mt-CeD1VvKk.js} +1 -1
- package/dist/{my-DarnpznW.js → my-B0vXqEjB.js} +1 -1
- package/dist/{nb-BxpWY1p7.js → nb-DtSDSXU9.js} +1 -1
- package/dist/{ne-BcyXFx4T.js → ne-PI64xpDQ.js} +1 -1
- package/dist/{nl-Cxyr0jEa.js → nl-CSgmN0ar.js} +1 -1
- package/dist/{nl-be-LFLOh8-R.js → nl-be-BEU9C0t1.js} +1 -1
- package/dist/{nn-Cq-c_cbv.js → nn-BqxFobz0.js} +1 -1
- package/dist/{oc-lnc-C8oaNTvd.js → oc-lnc-D7n96oFi.js} +1 -1
- package/dist/{pa-in-B_b-6ATe.js → pa-in-D81ikwTJ.js} +1 -1
- package/dist/{pl-CfBULd3-.js → pl-BtDdCY7E.js} +1 -1
- package/dist/{pt-D5-rUt-h.js → pt-CurVXdhq.js} +1 -1
- package/dist/{pt-br-1IZy4zr2.js → pt-br-DA2NhvJj.js} +1 -1
- package/dist/{rn-CMcLfY65.js → rn-DAsakA01.js} +1 -1
- package/dist/{ro-DlmkeHk-.js → ro-d6SYV4yV.js} +1 -1
- package/dist/{ru-C9cgpNSv.js → ru-zVY6XfMX.js} +1 -1
- package/dist/{rw-CSEynZEm.js → rw-BRUoNHFh.js} +1 -1
- package/dist/{sd-B8d_Ue0W.js → sd-DNwcR2eD.js} +1 -1
- package/dist/{se-DDIW9po1.js → se-BpCsYGeq.js} +1 -1
- package/dist/{si-CU12TX8e.js → si-DFVeOx9g.js} +1 -1
- package/dist/{sk-DRelTxNn.js → sk-DkYTfFzr.js} +1 -1
- package/dist/{sl-Dn8K6NrS.js → sl-7KmIMATY.js} +1 -1
- package/dist/{sq-B4KAEviD.js → sq-Q-Clevyk.js} +1 -1
- package/dist/{sr-v-5lLwSP.js → sr-BiT0J1fT.js} +1 -1
- package/dist/{sr-cyrl-BqPUfczc.js → sr-cyrl-BBXw9lMp.js} +1 -1
- package/dist/{ss-BwpPKI6e.js → ss-CYzqRxmb.js} +1 -1
- package/dist/{sv-CPdiBRl8.js → sv-Bzb1JaNB.js} +1 -1
- package/dist/{sv-fi-BeG4nL1v.js → sv-fi-DEe7KPLu.js} +1 -1
- package/dist/{sw-BKJ7-E_7.js → sw-DSmaaYn6.js} +1 -1
- package/dist/{ta-6KciRDjF.js → ta-BG3BKB6g.js} +1 -1
- package/dist/{te-Cp3slRML.js → te-DnGrkFNN.js} +1 -1
- package/dist/{tet-BjgM2Fpa.js → tet-Ch28S01k.js} +1 -1
- package/dist/{tg-D2g8lGfg.js → tg-DInezsst.js} +1 -1
- package/dist/{th-DKy_3Vge.js → th-Dn3EwYXy.js} +1 -1
- package/dist/{tk-C_Ds8e8h.js → tk-Cx0G1PHd.js} +1 -1
- package/dist/{tl-ph-Bve44VXc.js → tl-ph-C6s7hcvO.js} +1 -1
- package/dist/{tlh-CsCi3dmH.js → tlh-RESMaia1.js} +1 -1
- package/dist/{tr-DKgu-Z24.js → tr-C85Ouyh5.js} +1 -1
- package/dist/{tzl-CeMn1mnp.js → tzl-DioEiDLq.js} +1 -1
- package/dist/{tzm-C_IfIumK.js → tzm-C_3ZK3IK.js} +1 -1
- package/dist/{tzm-latn-ikQegYmo.js → tzm-latn-4Nl5j18v.js} +1 -1
- package/dist/{ug-cn-CL3sdtZ8.js → ug-cn-MrbHeaXB.js} +1 -1
- package/dist/{uk-CbGYFPds.js → uk-cV1UtYzC.js} +1 -1
- package/dist/{ur-B0XJkbVm.js → ur-D93kzPXV.js} +1 -1
- package/dist/{uz-BsDYjG4i.js → uz-C-t5CJ9T.js} +1 -1
- package/dist/{uz-latn-BebLbnY4.js → uz-latn-BBUrTlF1.js} +1 -1
- package/dist/{vi-eqBLBxPa.js → vi-BzpGPOoX.js} +1 -1
- package/dist/vue-tailwind-datepicker.css +1 -1
- package/dist/vue-tailwind-datepicker.js +3802 -3801
- package/dist/vue-tailwind-datepicker.umd.cjs +3 -3
- package/dist/{x-pseudo-DY7_TCZy.js → x-pseudo-DBgQIwAa.js} +1 -1
- package/dist/{yo-DlB7L6qv.js → yo-ucyfuqAY.js} +1 -1
- package/dist/{zh-CLtjqusr.js → zh-0qivT3Lm.js} +1 -1
- package/dist/{zh-cn-BRXgNKy_.js → zh-cn-BOjcDIq2.js} +1 -1
- package/dist/{zh-hk-F0Sypqrw.js → zh-hk-wznntgl8.js} +1 -1
- package/dist/{zh-tw-ioELNDRx.js → zh-tw-C0gDtDz2.js} +1 -1
- package/package.json +12 -29
package/README.md
CHANGED
|
@@ -444,14 +444,29 @@ Behavior summary:
|
|
|
444
444
|
|
|
445
445
|
## Dependency Pins (Dev)
|
|
446
446
|
|
|
447
|
-
-
|
|
448
|
-
- `
|
|
449
|
-
-
|
|
447
|
+
- Maintainer builds and CI workflows use Node 24.22.1 and the npm version declared in root/docs `packageManager` (12.2.1). Workflows bootstrap that exact npm version with `--ignore-scripts` before installing dependencies under the reviewed policy, including when the runner initially has npm 11. Pull requests validate install policy, lint, library declarations, types, unit tests, packaged-entry tests, and documentation builds without running release steps. This tooling pin does not narrow the library's consumer peer dependencies.
|
|
448
|
+
- `@headlessui/vue` is pinned to the fork's GitHub release tarball `1.7.24-iremizov.3`, retaining the Vue fixes not yet available in the upstream npm line used by this repo. Headless UI is bundled into the published datepicker, so consumers receive this update with the next datepicker release.
|
|
449
|
+
- `js-beautify` now resolves to registry 2.0.3 through `@vue/test-utils`' declared `^2.0.0` dependency. Its upstream dependency modernization makes the old Git security override unnecessary. Test-utils bundles its HTML formatter, and this repo has no direct Angular `@let` or escaped Unicode formatter configuration requiring the fork's additional fixes. Exact HTML, raw output, and diagnostic formatting tests passed unchanged before and after removing the override.
|
|
450
|
+
- The npm CLI used by `@semantic-release/npm` is pinned to 12.2.1 as well. The plugin's version/pack preparation path is tested against that CLI in an isolated fixture without publishing.
|
|
451
|
+
- The separate docs package overrides only VitePress's Vite dependency to `^6.4.5`. Stable VitePress 1.6.4 still requests Vite 5, while its Vue plugin supports Vite 6. This keeps the existing documentation setup on a patched Vite line without adopting VitePress 2 prereleases. Recheck `npm run docs:build` and the interactive `/demo.html` page when changing this override.
|
|
452
|
+
- When updating the Headless UI fork pin, prefer a tagged release or commit SHA URL and run:
|
|
450
453
|
- `npm install`
|
|
451
454
|
- `npm run test:unit`
|
|
452
455
|
- `npm run build`
|
|
453
456
|
- `npm audit`
|
|
454
457
|
|
|
458
|
+
### Install-script policy
|
|
459
|
+
|
|
460
|
+
Root and docs each have their own `.npmrc` and `allowScripts` policy. `strict-allow-scripts=true` rejects unreviewed dependency lifecycle scripts, and `strict-npmrc=true` rejects unknown configuration keys instead of silently ignoring a typo. Use npm 12.2.1 for maintainer installs; npm 11 does not enforce the same strict policy.
|
|
461
|
+
|
|
462
|
+
- Root approves only `esbuild@0.28.2` and `vue-demi@0.14.10`; docs approves only `esbuild@0.25.12` and `vue-demi@0.14.10`. Their scripts select/validate the platform binary and install the Vue compatibility shim, respectively.
|
|
463
|
+
- Both explicitly deny `fsevents@2.3.3` install scripts. Its distributed archive includes a prebuilt native module and no build inputs or install hook, although registry metadata advertises a native rebuild. No native rebuild is needed or approved.
|
|
464
|
+
- Root uses `allow-remote=root` for the direct, pinned Headless UI release tarball. Docs denies remote packages, and both projects deny Git sources. No blanket script or remote-source allowance is enabled.
|
|
465
|
+
|
|
466
|
+
After changing a dependency, inspect `npm install-scripts ls` and `npm --prefix docs install-scripts ls`. Review the actual scripts before approving a specific package with `npm install-scripts approve <package>` (or the docs-prefixed command), which writes an exact-version approval by default. Update the policy deliberately when a reviewed version changes, and rerun `npm run test:npm-policy`, both clean installs, and the normal build/test gates. Do not use approve-all or disable strict enforcement to make an install pass. Root-owned project hooks, such as the library's prepack build, still run normally.
|
|
467
|
+
|
|
468
|
+
The previously reported [braces stack-exhaustion advisory](https://github.com/advisories/GHSA-vfj7-8cjw-p6xm) was withdrawn on October 23, 2026, because it was not practically exploitable. The October 25 refresh started with no findings in the full root, production-only, or separate docs dependency trees. The compatible lockfile updates are maintenance changes, not a fix for the withdrawn report, and no override or suppression was added. Continue checking the complete tree with `npm audit`, the runtime tree with `npm audit --omit=dev`, and documentation tooling with `npm --prefix docs audit`.
|
|
469
|
+
|
|
455
470
|
## Changelog
|
|
456
471
|
|
|
457
472
|
All notable changes to this project will be documented in the [Releases Page](https://github.com/ignatremizov/vue-tailwind-datepicker/releases).
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { default as dayjs, Dayjs } from 'dayjs';
|
|
2
|
+
import { DateTimeErrorEventPayload, InvalidShortcutEventPayload, LegacyShortcutDefinition, ShortcutDefinition, ShortcutFactory, ShortcutPreset, TypedShortcutDefinition, YearNumberingMode } from './types';
|
|
3
|
+
export interface Props {
|
|
4
|
+
noInput?: boolean;
|
|
5
|
+
overlay?: boolean;
|
|
6
|
+
asSingle?: boolean;
|
|
7
|
+
useRange?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
i18n?: string;
|
|
10
|
+
inputClasses?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
disableInRange?: boolean;
|
|
13
|
+
disableDate?: boolean | ((date: Date) => boolean);
|
|
14
|
+
autoApply?: boolean;
|
|
15
|
+
shortcutPreset?: ShortcutPreset;
|
|
16
|
+
shortcuts?: boolean | ShortcutDefinition[] | ShortcutFactory<LegacyShortcutDefinition> | ShortcutFactory<TypedShortcutDefinition>;
|
|
17
|
+
defaultTime?: string;
|
|
18
|
+
defaultEndTime?: string;
|
|
19
|
+
highlightDates?: Array<Date | string | Dayjs>;
|
|
20
|
+
timePickerStyle?: 'none' | 'input' | 'wheel-inline' | 'wheel-page';
|
|
21
|
+
timeWheelHeight?: number;
|
|
22
|
+
timeWheelPageHeight?: number;
|
|
23
|
+
timeInlinePosition?: 'below' | 'right';
|
|
24
|
+
timePageMode?: 'toggle' | 'after-date';
|
|
25
|
+
timeWheelScrollMode?: 'boundary' | 'fractional';
|
|
26
|
+
separator?: string;
|
|
27
|
+
formatter?: {
|
|
28
|
+
date: string;
|
|
29
|
+
month: string;
|
|
30
|
+
};
|
|
31
|
+
startFrom?: Date;
|
|
32
|
+
weekdaysSize?: string;
|
|
33
|
+
weekNumber?: boolean;
|
|
34
|
+
selectorMode?: boolean;
|
|
35
|
+
selectorFocusTint?: boolean;
|
|
36
|
+
selectorYearScrollMode?: 'boundary' | 'fractional';
|
|
37
|
+
directYearInput?: boolean;
|
|
38
|
+
yearNumberingMode?: YearNumberingMode;
|
|
39
|
+
selectorYearHomeJump?: number;
|
|
40
|
+
selectorYearEndJump?: number;
|
|
41
|
+
selectorYearPageJump?: number;
|
|
42
|
+
selectorYearPageShiftJump?: number;
|
|
43
|
+
closeOnRangeSelection?: boolean;
|
|
44
|
+
openFocusTarget?: 'calendar' | 'input';
|
|
45
|
+
popoverTransition?: boolean;
|
|
46
|
+
popoverRestoreFocus?: boolean;
|
|
47
|
+
options?: {
|
|
48
|
+
shortcuts: {
|
|
49
|
+
today: string;
|
|
50
|
+
yesterday: string;
|
|
51
|
+
past: (period: number) => string;
|
|
52
|
+
pastWeek?: string;
|
|
53
|
+
currentMonth: string;
|
|
54
|
+
pastMonth: string;
|
|
55
|
+
businessDays?: (period: number) => string;
|
|
56
|
+
nextWeek?: string;
|
|
57
|
+
nextMonth?: string;
|
|
58
|
+
};
|
|
59
|
+
footer: {
|
|
60
|
+
apply: string;
|
|
61
|
+
cancel: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
modelValue?: [Date, Date] | {
|
|
65
|
+
start: Date | string;
|
|
66
|
+
end: Date | string;
|
|
67
|
+
} | {
|
|
68
|
+
startDate: Date | string;
|
|
69
|
+
endDate: Date | string;
|
|
70
|
+
} | string;
|
|
71
|
+
}
|
|
72
|
+
export interface DatePickerReadyOptions {
|
|
73
|
+
timeoutMs?: number;
|
|
74
|
+
maxAttempts?: number;
|
|
75
|
+
retryDelayMs?: number;
|
|
76
|
+
}
|
|
77
|
+
export interface FocusCalendarOptions extends DatePickerReadyOptions {
|
|
78
|
+
preventScroll?: boolean;
|
|
79
|
+
}
|
|
80
|
+
export interface VueTailwindDatePickerRef {
|
|
81
|
+
clearPicker: () => void;
|
|
82
|
+
focusInput: (options?: FocusOptions) => boolean;
|
|
83
|
+
isReady: () => boolean;
|
|
84
|
+
waitForReady: (options?: DatePickerReadyOptions) => Promise<boolean>;
|
|
85
|
+
focusCalendar: (options?: FocusCalendarOptions) => Promise<boolean>;
|
|
86
|
+
}
|
|
87
|
+
declare function clearPicker(): void;
|
|
88
|
+
declare var __VLS_22: {
|
|
89
|
+
value: string;
|
|
90
|
+
placeholder: string;
|
|
91
|
+
clear: typeof clearPicker;
|
|
92
|
+
}, __VLS_24: {
|
|
93
|
+
value: string;
|
|
94
|
+
}, __VLS_48: {
|
|
95
|
+
id: string;
|
|
96
|
+
label: string;
|
|
97
|
+
isDisabled: boolean;
|
|
98
|
+
disabledReason: import('./keys').ShortcutDisabledReason;
|
|
99
|
+
meta?: Record<string, unknown>;
|
|
100
|
+
activate: () => void;
|
|
101
|
+
}, __VLS_241: {
|
|
102
|
+
id: string;
|
|
103
|
+
label: string;
|
|
104
|
+
isDisabled: boolean;
|
|
105
|
+
disabledReason: import('./keys').ShortcutDisabledReason;
|
|
106
|
+
meta?: Record<string, unknown>;
|
|
107
|
+
activate: () => void;
|
|
108
|
+
};
|
|
109
|
+
type __VLS_Slots = {} & {
|
|
110
|
+
default?: (props: typeof __VLS_22) => any;
|
|
111
|
+
} & {
|
|
112
|
+
inputIcon?: (props: typeof __VLS_24) => any;
|
|
113
|
+
} & {
|
|
114
|
+
'shortcut-item'?: (props: typeof __VLS_48) => any;
|
|
115
|
+
} & {
|
|
116
|
+
'shortcut-item'?: (props: typeof __VLS_241) => any;
|
|
117
|
+
};
|
|
118
|
+
declare const __VLS_base: import('vue').DefineComponent<Props, VueTailwindDatePickerRef, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
119
|
+
"update:modelValue": (value: string | string[] | dayjs.Dayjs[] | Record<string, string>) => any;
|
|
120
|
+
"invalid-shortcut": (payload: InvalidShortcutEventPayload) => any;
|
|
121
|
+
selectMonth: (value: dayjs.Dayjs) => any;
|
|
122
|
+
selectYear: (value: dayjs.Dayjs) => any;
|
|
123
|
+
selectRightMonth: (value: dayjs.Dayjs) => any;
|
|
124
|
+
selectRightYear: (value: dayjs.Dayjs) => any;
|
|
125
|
+
clickPrev: (value: dayjs.Dayjs) => any;
|
|
126
|
+
clickNext: (value: dayjs.Dayjs) => any;
|
|
127
|
+
clickRightPrev: (value: dayjs.Dayjs) => any;
|
|
128
|
+
clickRightNext: (value: dayjs.Dayjs) => any;
|
|
129
|
+
error: (value: DateTimeErrorEventPayload) => any;
|
|
130
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
131
|
+
"onUpdate:modelValue"?: ((value: string | string[] | dayjs.Dayjs[] | Record<string, string>) => any) | undefined;
|
|
132
|
+
"onInvalid-shortcut"?: ((payload: InvalidShortcutEventPayload) => any) | undefined;
|
|
133
|
+
onSelectMonth?: ((value: dayjs.Dayjs) => any) | undefined;
|
|
134
|
+
onSelectYear?: ((value: dayjs.Dayjs) => any) | undefined;
|
|
135
|
+
onSelectRightMonth?: ((value: dayjs.Dayjs) => any) | undefined;
|
|
136
|
+
onSelectRightYear?: ((value: dayjs.Dayjs) => any) | undefined;
|
|
137
|
+
onClickPrev?: ((value: dayjs.Dayjs) => any) | undefined;
|
|
138
|
+
onClickNext?: ((value: dayjs.Dayjs) => any) | undefined;
|
|
139
|
+
onClickRightPrev?: ((value: dayjs.Dayjs) => any) | undefined;
|
|
140
|
+
onClickRightNext?: ((value: dayjs.Dayjs) => any) | undefined;
|
|
141
|
+
onError?: ((value: DateTimeErrorEventPayload) => any) | undefined;
|
|
142
|
+
}>, {
|
|
143
|
+
disabled: boolean;
|
|
144
|
+
formatter: {
|
|
145
|
+
date: string;
|
|
146
|
+
month: string;
|
|
147
|
+
};
|
|
148
|
+
weekNumber: boolean;
|
|
149
|
+
selectorMode: boolean;
|
|
150
|
+
shortcuts: boolean | ShortcutDefinition[] | ShortcutFactory<LegacyShortcutDefinition> | ShortcutFactory<TypedShortcutDefinition>;
|
|
151
|
+
modelValue: string | [Date, Date] | {
|
|
152
|
+
start: Date | string;
|
|
153
|
+
end: Date | string;
|
|
154
|
+
} | {
|
|
155
|
+
startDate: Date | string;
|
|
156
|
+
endDate: Date | string;
|
|
157
|
+
};
|
|
158
|
+
directYearInput: boolean;
|
|
159
|
+
yearNumberingMode: YearNumberingMode;
|
|
160
|
+
disableDate: boolean | ((date: Date) => boolean);
|
|
161
|
+
separator: string;
|
|
162
|
+
placeholder: string;
|
|
163
|
+
i18n: string;
|
|
164
|
+
inputClasses: string;
|
|
165
|
+
disableInRange: boolean;
|
|
166
|
+
autoApply: boolean;
|
|
167
|
+
shortcutPreset: ShortcutPreset;
|
|
168
|
+
defaultTime: string;
|
|
169
|
+
defaultEndTime: string;
|
|
170
|
+
highlightDates: (string | dayjs.Dayjs | Date)[];
|
|
171
|
+
timePickerStyle: "input" | "none" | "wheel-inline" | "wheel-page";
|
|
172
|
+
timeWheelHeight: number;
|
|
173
|
+
timeWheelPageHeight: number;
|
|
174
|
+
timeInlinePosition: "right" | "below";
|
|
175
|
+
timePageMode: "toggle" | "after-date";
|
|
176
|
+
timeWheelScrollMode: "boundary" | "fractional";
|
|
177
|
+
startFrom: Date;
|
|
178
|
+
weekdaysSize: string;
|
|
179
|
+
selectorFocusTint: boolean;
|
|
180
|
+
selectorYearScrollMode: "boundary" | "fractional";
|
|
181
|
+
selectorYearHomeJump: number;
|
|
182
|
+
selectorYearEndJump: number;
|
|
183
|
+
selectorYearPageJump: number;
|
|
184
|
+
selectorYearPageShiftJump: number;
|
|
185
|
+
closeOnRangeSelection: boolean;
|
|
186
|
+
openFocusTarget: "calendar" | "input";
|
|
187
|
+
popoverTransition: boolean;
|
|
188
|
+
popoverRestoreFocus: boolean;
|
|
189
|
+
options: {
|
|
190
|
+
shortcuts: {
|
|
191
|
+
today: string;
|
|
192
|
+
yesterday: string;
|
|
193
|
+
past: (period: number) => string;
|
|
194
|
+
pastWeek?: string;
|
|
195
|
+
currentMonth: string;
|
|
196
|
+
pastMonth: string;
|
|
197
|
+
businessDays?: (period: number) => string;
|
|
198
|
+
nextWeek?: string;
|
|
199
|
+
nextMonth?: string;
|
|
200
|
+
};
|
|
201
|
+
footer: {
|
|
202
|
+
apply: string;
|
|
203
|
+
cancel: string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
207
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
208
|
+
declare const _default: typeof __VLS_export;
|
|
209
|
+
export default _default;
|
|
210
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
211
|
+
new (): {
|
|
212
|
+
$slots: S;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as h } from "./index-
|
|
1
|
+
import { d as h } from "./index-72kM96N2.js";
|
|
2
2
|
var o = "студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"), a = "студзень_лютый_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_"), s = "студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж.".split("_"), l = "студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"), i = /D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;
|
|
3
3
|
function d(t, _) {
|
|
4
4
|
var r = t.split("_");
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DatePickerDay } from '../types';
|
|
2
|
+
export interface VtdCalendarRef {
|
|
3
|
+
focusCalendarTarget: (options?: FocusOptions) => boolean;
|
|
4
|
+
isReady: () => boolean;
|
|
5
|
+
}
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
calendar: {
|
|
8
|
+
date: () => DatePickerDay[];
|
|
9
|
+
month: string;
|
|
10
|
+
year: number;
|
|
11
|
+
years: () => number[];
|
|
12
|
+
onPrevious: () => void;
|
|
13
|
+
onNext: () => void;
|
|
14
|
+
onPreviousYear: () => void;
|
|
15
|
+
onNextYear: () => void;
|
|
16
|
+
openMonth: () => void;
|
|
17
|
+
setMonth: ($event: number) => void;
|
|
18
|
+
openYear: () => void;
|
|
19
|
+
setYear: ($event: number) => void;
|
|
20
|
+
};
|
|
21
|
+
weeks: string[];
|
|
22
|
+
weekNumber: boolean;
|
|
23
|
+
asRange: boolean;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, VtdCalendarRef, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
26
|
+
updateDate: (event: {
|
|
27
|
+
date: DatePickerDay;
|
|
28
|
+
source: "keyboard" | "pointer";
|
|
29
|
+
activationKey?: string;
|
|
30
|
+
}) => any;
|
|
31
|
+
readyStateChange: () => any;
|
|
32
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
33
|
+
onUpdateDate?: ((event: {
|
|
34
|
+
date: DatePickerDay;
|
|
35
|
+
source: "keyboard" | "pointer";
|
|
36
|
+
activationKey?: string;
|
|
37
|
+
}) => any) | undefined;
|
|
38
|
+
onReadyStateChange?: (() => any) | undefined;
|
|
39
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const _default: typeof __VLS_export;
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
type PickerViewMode = 'calendar' | 'selector';
|
|
2
|
+
type SelectorFocus = 'month' | 'year';
|
|
3
|
+
type SelectionPanel = 'previous' | 'next';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
panel: {
|
|
6
|
+
calendar: boolean;
|
|
7
|
+
month: boolean;
|
|
8
|
+
year: boolean;
|
|
9
|
+
};
|
|
10
|
+
calendar: {
|
|
11
|
+
date: () => any[];
|
|
12
|
+
month: string;
|
|
13
|
+
year: number;
|
|
14
|
+
years: () => number[];
|
|
15
|
+
onPrevious: () => void;
|
|
16
|
+
onNext: () => void;
|
|
17
|
+
onPreviousYear: () => void;
|
|
18
|
+
onNextYear: () => void;
|
|
19
|
+
stepPreviousYear: () => void;
|
|
20
|
+
stepNextYear: () => void;
|
|
21
|
+
openMonth: () => void;
|
|
22
|
+
setMonth: ($event: number) => void;
|
|
23
|
+
openYear: () => void;
|
|
24
|
+
setYear: ($event: number) => void;
|
|
25
|
+
};
|
|
26
|
+
selectorMode?: boolean;
|
|
27
|
+
selectorFocus?: SelectorFocus;
|
|
28
|
+
pickerViewMode?: PickerViewMode;
|
|
29
|
+
panelName?: SelectionPanel;
|
|
30
|
+
};
|
|
31
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
32
|
+
"enter-selector-mode": (payload: {
|
|
33
|
+
panel: SelectionPanel;
|
|
34
|
+
focus: SelectorFocus;
|
|
35
|
+
}) => any;
|
|
36
|
+
"toggle-picker-view": (payload: {
|
|
37
|
+
panel: SelectionPanel;
|
|
38
|
+
focus: SelectorFocus;
|
|
39
|
+
}) => any;
|
|
40
|
+
"focus-selector-column": (payload: {
|
|
41
|
+
panel: SelectionPanel;
|
|
42
|
+
focus: SelectorFocus;
|
|
43
|
+
}) => any;
|
|
44
|
+
"step-month": (payload: {
|
|
45
|
+
panel: SelectionPanel;
|
|
46
|
+
delta: -1 | 1;
|
|
47
|
+
}) => any;
|
|
48
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
49
|
+
"onEnter-selector-mode"?: ((payload: {
|
|
50
|
+
panel: SelectionPanel;
|
|
51
|
+
focus: SelectorFocus;
|
|
52
|
+
}) => any) | undefined;
|
|
53
|
+
"onToggle-picker-view"?: ((payload: {
|
|
54
|
+
panel: SelectionPanel;
|
|
55
|
+
focus: SelectorFocus;
|
|
56
|
+
}) => any) | undefined;
|
|
57
|
+
"onFocus-selector-column"?: ((payload: {
|
|
58
|
+
panel: SelectionPanel;
|
|
59
|
+
focus: SelectorFocus;
|
|
60
|
+
}) => any) | undefined;
|
|
61
|
+
"onStep-month"?: ((payload: {
|
|
62
|
+
panel: SelectionPanel;
|
|
63
|
+
delta: -1 | 1;
|
|
64
|
+
}) => any) | undefined;
|
|
65
|
+
}>, {
|
|
66
|
+
selectorMode: boolean;
|
|
67
|
+
selectorFocus: SelectorFocus;
|
|
68
|
+
pickerViewMode: PickerViewMode;
|
|
69
|
+
panelName: SelectionPanel;
|
|
70
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
71
|
+
declare const _default: typeof __VLS_export;
|
|
72
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LengthArray } from '../types';
|
|
2
|
+
type SelectorFocus = 'month' | 'year';
|
|
3
|
+
interface SelectorMonthPayload {
|
|
4
|
+
month: number;
|
|
5
|
+
year: number;
|
|
6
|
+
}
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
months: LengthArray<string, 12>;
|
|
9
|
+
selectorMode?: boolean;
|
|
10
|
+
selectedMonth?: number | null;
|
|
11
|
+
selectedYear?: number | null;
|
|
12
|
+
selectorFocus?: SelectorFocus;
|
|
13
|
+
};
|
|
14
|
+
declare function stepBy(delta: number): void;
|
|
15
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
|
|
16
|
+
stepBy: typeof stepBy;
|
|
17
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
18
|
+
updateMonth: (value: number) => any;
|
|
19
|
+
scrollMonth: (value: SelectorMonthPayload) => any;
|
|
20
|
+
focusMonth: () => any;
|
|
21
|
+
requestFocusYear: () => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
+
onUpdateMonth?: ((value: number) => any) | undefined;
|
|
24
|
+
onScrollMonth?: ((value: SelectorMonthPayload) => any) | undefined;
|
|
25
|
+
onFocusMonth?: (() => any) | undefined;
|
|
26
|
+
onRequestFocusYear?: (() => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
selectorMode: boolean;
|
|
29
|
+
selectorFocus: SelectorFocus;
|
|
30
|
+
selectedMonth: number | null;
|
|
31
|
+
selectedYear: number | null;
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
direction: 'up' | 'down';
|
|
3
|
+
label: string;
|
|
4
|
+
zClass?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
+
click: () => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onClick?: (() => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
zClass: string;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { ShortcutDefinition, ShortcutFactory } from '../types';
|
|
3
|
+
import { BuiltInShortcutId, ShortcutDisabledReason } from '../keys';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
shortcuts: boolean | ShortcutDefinition[] | ShortcutFactory;
|
|
6
|
+
builtInShortcuts: {
|
|
7
|
+
id: BuiltInShortcutId;
|
|
8
|
+
label: string;
|
|
9
|
+
}[];
|
|
10
|
+
close?: (ref?: Ref | HTMLElement) => void;
|
|
11
|
+
asRange: boolean;
|
|
12
|
+
asSingle: boolean;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Slots = {
|
|
15
|
+
'shortcut-item': (props: {
|
|
16
|
+
id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
isDisabled: boolean;
|
|
19
|
+
disabledReason: ShortcutDisabledReason;
|
|
20
|
+
meta?: Record<string, unknown>;
|
|
21
|
+
activate: () => void;
|
|
22
|
+
}) => unknown;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
interface TimeWheelItem {
|
|
2
|
+
label: string;
|
|
3
|
+
value: number | string;
|
|
4
|
+
}
|
|
5
|
+
interface TimeWheelStepPayload {
|
|
6
|
+
value: number | string;
|
|
7
|
+
previousValue: number | string | null;
|
|
8
|
+
absoluteIndex: number;
|
|
9
|
+
previousAbsoluteIndex: number | null;
|
|
10
|
+
delta: number;
|
|
11
|
+
}
|
|
12
|
+
type __VLS_Props = {
|
|
13
|
+
items: TimeWheelItem[];
|
|
14
|
+
modelValue: number | string | null;
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
scrollMode?: 'boundary' | 'fractional';
|
|
18
|
+
fractionalOffset?: number;
|
|
19
|
+
syncDirection?: -1 | 0 | 1;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
22
|
+
"update:modelValue": (value: string | number) => any;
|
|
23
|
+
step: (payload: TimeWheelStepPayload) => any;
|
|
24
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
26
|
+
onStep?: ((payload: TimeWheelStepPayload) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
ariaLabel: string;
|
|
30
|
+
scrollMode: "boundary" | "fractional";
|
|
31
|
+
fractionalOffset: number;
|
|
32
|
+
syncDirection: 0 | 1 | -1;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const _default: typeof __VLS_export;
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LengthArray } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
weeks: LengthArray<string, 7>;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|