bitboss-ui 0.2.76 → 1.0.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/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +4 -0
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +10 -3
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +4 -1
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +10 -4
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +9 -0
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +4 -0
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +4 -0
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +10 -3
- package/dist/components/BaseRating/BaseRating.vue.d.ts +5 -1
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +4 -0
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +48 -11
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +6 -3
- package/dist/components/BaseTag/BaseTag.vue.d.ts +4 -0
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +10 -6
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +4 -0
- package/dist/components/BbButton/BbButton.vue.d.ts +12 -0
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +35 -27
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +38 -24
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +15 -3
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +33 -25
- package/dist/components/BbRadio/BbRadio.vue.d.ts +33 -25
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +38 -24
- package/dist/components/BbRating/BbRating.vue.d.ts +9 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +18 -4
- package/dist/components/BbSlider/BbSlider.vue.d.ts +44 -11
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +9 -3
- package/dist/components/BbTag/BbTag.vue.d.ts +11 -3
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +33 -25
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +9 -1
- package/dist/composables/useQueue.d.ts +58 -0
- package/dist/index.js +186 -185
- package/dist/index.js.map +1 -1
- package/dist/index10.js +65 -1
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +227 -1
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +1 -437
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +437 -1
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +1 -94
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +103 -1
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +1 -88
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +97 -1
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +1 -89
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +98 -1
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +1 -29
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +1 -131
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +29 -1
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +1 -151
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +151 -1
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +1 -122
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +122 -1
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +1 -46
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +40 -33
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +32 -39
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +39 -42
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +43 -39
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +128 -1
- package/dist/index12.js.map +1 -1
- package/dist/index120.js +43 -2
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +2 -21
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +21 -2
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +2 -224
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +224 -2
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +2 -18
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +16 -10
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +12 -24
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +24 -5
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +5 -9
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +1 -159
- package/dist/index13.js.map +1 -1
- package/dist/index130.js +8 -5
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +5 -69
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +70 -3
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +2 -2
- package/dist/index134.js +2 -2
- package/dist/index135.js +2 -2
- package/dist/index136.js +2 -2
- package/dist/index137.js +2 -2
- package/dist/index138.js +2 -2
- package/dist/index139.js +2 -2
- package/dist/index14.js +161 -1
- package/dist/index14.js.map +1 -1
- package/dist/index140.js +2 -2
- package/dist/index141.js +2 -2
- package/dist/index142.js +2 -2
- package/dist/index143.js +2 -2
- package/dist/index144.js +2 -2
- package/dist/index145.js +2 -2
- package/dist/index146.js +2 -2
- package/dist/index147.js +2 -2
- package/dist/index148.js +2 -2
- package/dist/index149.js +2 -2
- package/dist/index15.js +1 -457
- package/dist/index15.js.map +1 -1
- package/dist/index150.js +2 -2
- package/dist/index151.js +2 -2
- package/dist/index152.js +2 -2
- package/dist/index153.js +2 -2
- package/dist/index154.js +2 -2
- package/dist/index155.js +2 -2
- package/dist/index156.js +2 -2
- package/dist/index157.js +2 -2
- package/dist/index158.js +5 -1
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +1 -5
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +514 -1
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +5 -1
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +1 -5
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +2 -2
- package/dist/index163.js +2 -2
- package/dist/index164.js +2 -2
- package/dist/index165.js +2 -2
- package/dist/index166.js +2 -2
- package/dist/index167.js +3 -2
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +2 -3
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +5 -1
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +1 -211
- package/dist/index17.js.map +1 -1
- package/dist/index170.js +1 -4
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +2 -3
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +2 -2
- package/dist/index173.js +2 -2
- package/dist/index174.js +2 -2
- package/dist/index175.js +2 -2
- package/dist/index176.js +2 -2
- package/dist/index177.js +2 -2
- package/dist/index178.js +2 -2
- package/dist/index179.js +2 -2
- package/dist/index18.js +220 -1
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +2 -2
- package/dist/index181.js +2 -2
- package/dist/index182.js +2 -2
- package/dist/index183.js +5 -1
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +1 -5
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +5 -1
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +1 -5
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +2 -2
- package/dist/index188.js +2 -2
- package/dist/index189.js +2 -2
- package/dist/index19.js +1 -239
- package/dist/index19.js.map +1 -1
- package/dist/index190.js +2 -2
- package/dist/index191.js +2 -2
- package/dist/index192.js +2 -2
- package/dist/index193.js +2 -2
- package/dist/index194.js +2 -2
- package/dist/index195.js +2 -2
- package/dist/index196.js +3 -10
- package/dist/index196.js.map +1 -1
- package/dist/index198.js +2 -3
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +4 -3
- package/dist/index199.js.map +1 -1
- package/dist/index2.js +1 -42
- package/dist/index2.js.map +1 -1
- package/dist/index20.js +239 -1
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +5 -368
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +13 -131
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +16 -5
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +3 -3
- package/dist/index204.js +20 -2
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +29 -2
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +8 -174
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +2 -23
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +111 -363
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +131 -13
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +1 -115
- package/dist/index21.js.map +1 -1
- package/dist/index210.js +2 -16
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +35 -20
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +172 -27
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +6 -8
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +346 -213
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +373 -3
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +3 -35
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +3 -6
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +235 -2
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +3 -2
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +131 -1
- package/dist/index22.js.map +1 -1
- package/dist/index220.js +2 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +8 -119
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +2 -2
- package/dist/index222.js.map +1 -1
- package/dist/index224.js +23 -6
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +4 -17
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +294 -78
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +6 -2
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +2 -160
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +4 -1
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -115
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +2 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +2 -69
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +2 -224
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +2 -258
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +78 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +6 -2
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +17 -295
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +2 -2
- package/dist/index238.js +106 -2
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +428 -110
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +119 -1
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +218 -100
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +255 -12
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +117 -2
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +200 -2
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +2 -2
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +69 -2
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +5 -435
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +163 -88
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +1 -202
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +2 -4
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +1 -92
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +89 -2
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +15 -4
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +4 -4
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +4 -61
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +61 -2
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +2 -3
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +3 -2
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +5 -0
- package/dist/index257.js.map +1 -0
- package/dist/index26.js +94 -1
- package/dist/index26.js.map +1 -1
- package/dist/index27.js +1 -157
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +160 -1
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +1 -124
- package/dist/index29.js.map +1 -1
- package/dist/index3.js +38 -76
- package/dist/index3.js.map +1 -1
- package/dist/index30.js +126 -1
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +1 -691
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +693 -1
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +1 -145
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +302 -1
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +1 -118
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +120 -1
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +1 -154
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +156 -1
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +1 -83
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +78 -62
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +87 -1
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +1 -61
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +64 -1
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +1 -65
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +65 -1
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +1 -96
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +96 -1
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +1 -61
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +61 -1
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +1 -49
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +60 -38
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +49 -1
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +1 -62
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +62 -1
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +1 -45
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +69 -1
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +1 -89
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +98 -1
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +1 -120
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +129 -1
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +1 -85
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +37 -171
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +85 -1
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +1 -88
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +98 -1
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +1 -59
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +59 -1
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +1 -313
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +313 -1
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +1 -129
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +129 -1
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +1 -225
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +172 -18
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +225 -1
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +1 -24
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +19 -41
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +37 -86
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +104 -1
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +1 -227
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +227 -1
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +1 -143
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +165 -1
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +1 -213
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +18 -192
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +213 -1
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +1 -35
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +35 -1
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +1 -83
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +92 -1
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +1 -120
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +129 -1
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +1 -83
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +92 -1
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +1 -30
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +192 -61
- package/dist/index9.js.map +1 -1
- package/dist/index90.js +30 -1
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +1 -157
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +166 -1
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +1 -86
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +112 -1
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +1 -89
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +98 -1
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +1 -119
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +129 -1
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +1 -227
- package/dist/index99.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utilities/functions/last.d.ts +1 -1
- package/package.json +1 -1
package/dist/index166.js
CHANGED
package/dist/index167.js
CHANGED
package/dist/index167.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index167.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index167.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index168.js
CHANGED
package/dist/index168.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index168.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index168.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index169.js
CHANGED
package/dist/index169.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index169.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index169.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index17.js
CHANGED
|
@@ -1,212 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { autoUpdate as de, computePosition as ue, flip as ce, shift as fe } from "./index200.js";
|
|
3
|
-
import pe from "./index201.js";
|
|
4
|
-
import c from "./index202.js";
|
|
5
|
-
import me from "./index203.js";
|
|
6
|
-
import { identity as be } from "./index204.js";
|
|
7
|
-
import { last as ve } from "./index205.js";
|
|
8
|
-
import { useId as ye } from "./index7.js";
|
|
9
|
-
import { vMaska as he } from "./index206.js";
|
|
10
|
-
import { wait as I } from "./index122.js";
|
|
11
|
-
import ge from "./index15.js";
|
|
12
|
-
import "./index16.js";
|
|
13
|
-
import P from "./index207.js";
|
|
14
|
-
import { offset as ke } from "./index208.js";
|
|
15
|
-
const we = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "name", "placeholder", "readonly", "value"], Ee = ["id"], Fe = /* @__PURE__ */ R({
|
|
16
|
-
__name: "BaseDatePickerInput",
|
|
17
|
-
props: {
|
|
18
|
-
allowWriting: { type: Boolean, default: !0 },
|
|
19
|
-
autocomplete: { default: "off" },
|
|
20
|
-
autofocus: {},
|
|
21
|
-
disabled: { type: Boolean },
|
|
22
|
-
firstDayOfWeek: {},
|
|
23
|
-
hasErrors: { type: Boolean },
|
|
24
|
-
id: {},
|
|
25
|
-
max: {},
|
|
26
|
-
min: {},
|
|
27
|
-
modelValue: {},
|
|
28
|
-
name: {},
|
|
29
|
-
placeholder: {},
|
|
30
|
-
range: { type: Boolean },
|
|
31
|
-
readonly: {},
|
|
32
|
-
selectable: {},
|
|
33
|
-
width: { default: 290 }
|
|
34
|
-
},
|
|
35
|
-
emits: ["update:modelValue", "inactive", "error"],
|
|
36
|
-
setup(F, { emit: G }) {
|
|
37
|
-
c.extend(pe), c.locale(me);
|
|
38
|
-
const o = F, r = G, t = l(null), g = l(null), s = l(null), A = l(null), f = l(null), k = l(), p = o.id || `bdpi_${ye().id.value}`, j = Y(() => ({
|
|
39
|
-
"bb-base-date-picker-input": !0,
|
|
40
|
-
"bb-base-date-picker-input--errors": o.hasErrors,
|
|
41
|
-
"bb-base-date-picker-input--readonly": o.readonly,
|
|
42
|
-
"bb-base-date-picker-input--disabled": o.disabled
|
|
43
|
-
})), H = {
|
|
44
|
-
onInput: (e) => {
|
|
45
|
-
if (!o.range && e.target instanceof HTMLInputElement)
|
|
46
|
-
if (f.value = e.target.value, /\d{2}\/\d{2}\/\d{4}/.test(e.target.value)) {
|
|
47
|
-
const a = c(e.target.value, "DD/MM/YYYY");
|
|
48
|
-
k.value.isDateDisabled(a) ? r("error", "invalid_date_typed") : r("update:modelValue", a.toISOString());
|
|
49
|
-
} else
|
|
50
|
-
e.target.value === "" && r("update:modelValue", null);
|
|
51
|
-
}
|
|
52
|
-
}, w = l(!1), L = (e) => {
|
|
53
|
-
if (e)
|
|
54
|
-
if (Array.isArray(e)) {
|
|
55
|
-
let a, n;
|
|
56
|
-
return e.length && (a = e[0]), e.length > 1 && (n = ve(e)), [a, n].filter(be).map((i) => c(i).format("DD/MM/YYYY")).join(" - ");
|
|
57
|
-
} else
|
|
58
|
-
return c(e).format("DD/MM/YYYY");
|
|
59
|
-
return null;
|
|
60
|
-
}, K = Y(() => f.value ? f.value : L(o.modelValue));
|
|
61
|
-
J(
|
|
62
|
-
() => o.modelValue,
|
|
63
|
-
(e) => {
|
|
64
|
-
f.value = L(e);
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
const O = () => {
|
|
68
|
-
s.value && t.value && ue(s.value, t.value, {
|
|
69
|
-
placement: "bottom-start",
|
|
70
|
-
middleware: [ke(6), ce(), fe()]
|
|
71
|
-
}).then((e) => {
|
|
72
|
-
var a;
|
|
73
|
-
t.value && (t.value.style.left = `${e.x}px`, t.value.style.top = `${e.y}px`, typeof o.width == "string" && (Number(o.width) ? t.value.style.width = `${Math.max(
|
|
74
|
-
((a = s.value) == null ? void 0 : a.offsetWidth) ?? 0,
|
|
75
|
-
+o.width
|
|
76
|
-
)}px` : t.value.style.width = o.width));
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
let V;
|
|
80
|
-
Q(async () => {
|
|
81
|
-
s.value && t.value && (V = de(
|
|
82
|
-
s.value,
|
|
83
|
-
t.value,
|
|
84
|
-
O
|
|
85
|
-
));
|
|
86
|
-
}), X(() => {
|
|
87
|
-
V();
|
|
88
|
-
});
|
|
89
|
-
const m = l(!1), E = l(!1), M = l(!1), b = l(!0), W = async () => {
|
|
90
|
-
b.value = !1, E.value = !0, await I(500), E.value = !1, b.value = !1, m.value = !0;
|
|
91
|
-
}, $ = async () => {
|
|
92
|
-
var e;
|
|
93
|
-
m.value = !1, M.value = !0, await I(500), M.value = !1, m.value = !1, b.value = !0, (e = k.value) == null || e.setSelectionModeToDay();
|
|
94
|
-
}, U = (e) => {
|
|
95
|
-
if (e.key === "Tab" && !e.shiftKey && (e.preventDefault(), t.value)) {
|
|
96
|
-
const n = t.value.querySelectorAll(
|
|
97
|
-
P.join()
|
|
98
|
-
)[0];
|
|
99
|
-
n instanceof HTMLElement && n.focus();
|
|
100
|
-
}
|
|
101
|
-
}, q = (e) => {
|
|
102
|
-
var a;
|
|
103
|
-
if (e.key === "Tab" && t.value) {
|
|
104
|
-
const n = P.join(", "), i = t.value.querySelectorAll(
|
|
105
|
-
n
|
|
106
|
-
);
|
|
107
|
-
if (e.target === i[i.length - 1]) {
|
|
108
|
-
e.preventDefault();
|
|
109
|
-
const v = Array.from(
|
|
110
|
-
document.body.querySelectorAll(n)
|
|
111
|
-
), S = v.findIndex(
|
|
112
|
-
(y) => y.id === o.id
|
|
113
|
-
);
|
|
114
|
-
if (S > -1) {
|
|
115
|
-
const y = v[S + 1];
|
|
116
|
-
y instanceof HTMLElement && y.focus();
|
|
117
|
-
}
|
|
118
|
-
} else
|
|
119
|
-
e.target === i[0] && e.shiftKey && (e.preventDefault(), (a = A.value) == null || a.focus());
|
|
120
|
-
}
|
|
121
|
-
}, N = () => {
|
|
122
|
-
W(), document.addEventListener("focusin", _), document.addEventListener("click", D);
|
|
123
|
-
}, _ = (e) => {
|
|
124
|
-
var a, n;
|
|
125
|
-
e.target instanceof HTMLElement && ((a = g.value) != null && a.contains(e.target) || (n = t.value) != null && n.contains(e.target) || ($(), w.value = !1, document.removeEventListener("click", D), document.removeEventListener("focusin", _), r("inactive")));
|
|
126
|
-
}, D = (e) => {
|
|
127
|
-
var a, n;
|
|
128
|
-
e.target instanceof HTMLElement && ((a = g.value) != null && a.contains(e.target) || (n = t.value) != null && n.contains(e.target) || ($(), w.value = !1, document.removeEventListener("click", D), document.removeEventListener("focusin", _), r("inactive")));
|
|
129
|
-
}, z = {
|
|
130
|
-
"onUpdate:modelValue": (e) => r("update:modelValue", e)
|
|
131
|
-
};
|
|
132
|
-
return (e, a) => (B(), Z("span", {
|
|
133
|
-
ref_key: "outerContainer",
|
|
134
|
-
ref: g,
|
|
135
|
-
class: C(["bb-base-date-picker-input__container", j.value])
|
|
136
|
-
}, [
|
|
137
|
-
d(e.$slots, "prepend-outer"),
|
|
138
|
-
h("span", {
|
|
139
|
-
ref_key: "innerContainer",
|
|
140
|
-
ref: s,
|
|
141
|
-
class: "bb-base-date-picker-input__inner-container"
|
|
142
|
-
}, [
|
|
143
|
-
d(e.$slots, "prepend"),
|
|
144
|
-
x(h("input", T({
|
|
145
|
-
id: u(p),
|
|
146
|
-
ref_key: "input",
|
|
147
|
-
ref: A,
|
|
148
|
-
"aria-describedby": `bdpi_description_${u(p)}`,
|
|
149
|
-
autocomplete: e.autocomplete,
|
|
150
|
-
autofocus: e.autofocus,
|
|
151
|
-
"data-maska": o.range ? "##/##/#### - ##/##/####" : "##/##/####",
|
|
152
|
-
disabled: e.disabled,
|
|
153
|
-
name: e.name,
|
|
154
|
-
placeholder: e.placeholder,
|
|
155
|
-
readonly: e.readonly || e.range || !e.allowWriting,
|
|
156
|
-
type: "text",
|
|
157
|
-
value: K.value
|
|
158
|
-
}, H, {
|
|
159
|
-
onFocus: N,
|
|
160
|
-
onKeydown: U
|
|
161
|
-
}), null, 16, we), [
|
|
162
|
-
[u(he)]
|
|
163
|
-
]),
|
|
164
|
-
d(e.$slots, "append"),
|
|
165
|
-
h("span", {
|
|
166
|
-
id: `bdpi_description_${u(p)}`,
|
|
167
|
-
class: "bb-base-date-picker-input__accessible-description"
|
|
168
|
-
}, "Formato della data " + ee(o.range ? "GG/MM/AAAA - GG/MM/AAAA" : "GG/MM/AAAA"), 9, Ee)
|
|
169
|
-
], 512),
|
|
170
|
-
d(e.$slots, "append-outer"),
|
|
171
|
-
(B(), ae(te, { to: "body" }, [
|
|
172
|
-
h("span", {
|
|
173
|
-
ref_key: "calendar",
|
|
174
|
-
ref: t,
|
|
175
|
-
class: C(["bb-base-date-picker-input__calendar", {
|
|
176
|
-
"bb-base-date-picker-input__calendar--active": w.value,
|
|
177
|
-
"bb-base-date-picker-input__calendar--shown": m.value,
|
|
178
|
-
"bb-base-date-picker-input__calendar--showing": E.value,
|
|
179
|
-
"bb-base-date-picker-input__calendar--hiding": M.value,
|
|
180
|
-
"bb-base-date-picker-input__calendar--hidden": b.value
|
|
181
|
-
}]),
|
|
182
|
-
onKeydown: q
|
|
183
|
-
}, [
|
|
184
|
-
ne(ge, T({ id: u(p) }, z, {
|
|
185
|
-
ref_key: "basedatepicker",
|
|
186
|
-
ref: k,
|
|
187
|
-
disabled: e.disabled,
|
|
188
|
-
"first-day-of-week": e.firstDayOfWeek,
|
|
189
|
-
max: e.max,
|
|
190
|
-
min: e.min,
|
|
191
|
-
"model-value": e.modelValue,
|
|
192
|
-
range: e.range,
|
|
193
|
-
readonly: e.readonly,
|
|
194
|
-
selectable: e.selectable,
|
|
195
|
-
width: e.width
|
|
196
|
-
}), oe({ _: 2 }, [
|
|
197
|
-
le(e.$slots, (n, i) => ({
|
|
198
|
-
name: i,
|
|
199
|
-
fn: ie((v) => [
|
|
200
|
-
d(e.$slots, i, re(se(v)))
|
|
201
|
-
])
|
|
202
|
-
}))
|
|
203
|
-
]), 1040, ["id", "disabled", "first-day-of-week", "max", "min", "model-value", "range", "readonly", "selectable", "width"])
|
|
204
|
-
], 34)
|
|
205
|
-
]))
|
|
206
|
-
], 2));
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
export {
|
|
210
|
-
Fe as default
|
|
211
|
-
};
|
|
1
|
+
|
|
212
2
|
//# sourceMappingURL=index17.js.map
|
package/dist/index17.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index17.js","sources":["../src/components/BaseDatePickerInput/BaseDatePickerInput.vue"],"sourcesContent":["<template>\n\t<span\n\t\tref=\"outerContainer\"\n\t\tclass=\"bb-base-date-picker-input__container\"\n\t\t:class=\"classes\"\n\t>\n\t\t<slot name=\"prepend-outer\"></slot>\n\t\t<span\n\t\t\tref=\"innerContainer\"\n\t\t\tclass=\"bb-base-date-picker-input__inner-container\"\n\t\t>\n\t\t\t<slot name=\"prepend\"></slot>\n\t\t\t<input\n\t\t\t\t:id=\"id\"\n\t\t\t\tref=\"input\"\n\t\t\t\tv-maska\n\t\t\t\t:aria-describedby=\"`bdpi_description_${id}`\"\n\t\t\t\t:autocomplete=\"autocomplete\"\n\t\t\t\t:autofocus=\"autofocus\"\n\t\t\t\t:data-maska=\"props.range ? '##/##/#### - ##/##/####' : '##/##/####'\"\n\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t:name=\"name\"\n\t\t\t\t:placeholder=\"placeholder\"\n\t\t\t\t:readonly=\"readonly || range || !allowWriting\"\n\t\t\t\t:type=\"'text'\"\n\t\t\t\t:value=\"displayValue\"\n\t\t\t\tv-bind=\"eventListeners\"\n\t\t\t\t@focus=\"onFocus\"\n\t\t\t\t@keydown=\"onKeydown\"\n\t\t\t/>\n\n\t\t\t<slot name=\"append\"></slot>\n\t\t\t<span\n\t\t\t\t:id=\"`bdpi_description_${id}`\"\n\t\t\t\tclass=\"bb-base-date-picker-input__accessible-description\"\n\t\t\t\t>Formato della data\n\t\t\t\t{{ props.range ? 'GG/MM/AAAA - GG/MM/AAAA' : 'GG/MM/AAAA' }}</span\n\t\t\t>\n\t\t</span>\n\t\t<slot name=\"append-outer\"></slot>\n\t\t<teleport to=\"body\">\n\t\t\t<span\n\t\t\t\tref=\"calendar\"\n\t\t\t\tclass=\"bb-base-date-picker-input__calendar\"\n\t\t\t\t:class=\"{\n\t\t\t\t\t'bb-base-date-picker-input__calendar--active': active,\n\t\t\t\t\t'bb-base-date-picker-input__calendar--shown': shown,\n\t\t\t\t\t'bb-base-date-picker-input__calendar--showing': showing,\n\t\t\t\t\t'bb-base-date-picker-input__calendar--hiding': hiding,\n\t\t\t\t\t'bb-base-date-picker-input__calendar--hidden': hidden,\n\t\t\t\t}\"\n\t\t\t\t@keydown=\"onCalendarKeydown\"\n\t\t\t>\n\t\t\t\t<BaseDatePicker\n\t\t\t\t\t:id=\"id\"\n\t\t\t\t\tv-bind=\"calendarEventListeners\"\n\t\t\t\t\tref=\"basedatepicker\"\n\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t:first-day-of-week=\"firstDayOfWeek\"\n\t\t\t\t\t:max=\"max\"\n\t\t\t\t\t:min=\"min\"\n\t\t\t\t\t:model-value=\"modelValue\"\n\t\t\t\t\t:range=\"range\"\n\t\t\t\t\t:readonly=\"readonly\"\n\t\t\t\t\t:selectable=\"selectable\"\n\t\t\t\t\t:width=\"width\"\n\t\t\t\t>\n\t\t\t\t\t<template v-for=\"(_, name) in $slots\" #[name]=\"data\">\n\t\t\t\t\t\t<slot :name=\"name\" v-bind=\"data\" />\n\t\t\t\t\t</template>\n\t\t\t\t</BaseDatePicker>\n\t\t\t</span>\n\t\t</teleport>\n\t</span>\n</template>\n\n<script setup lang=\"ts\">\nimport {\n\tautoUpdate,\n\tcomputePosition,\n\tflip,\n\toffset,\n\tshift,\n} from '@floating-ui/dom';\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue';\nimport { default as customParseFormat } from 'dayjs/plugin/customParseFormat';\nimport { default as dayjs } from 'dayjs';\nimport { default as it } from 'dayjs/locale/it';\nimport { identity } from '@/utilities/functions/identity';\nimport { last } from '@/utilities/functions/last';\nimport { useId } from '@/composables/useId';\nimport { vMaska } from 'maska';\nimport { wait } from '@/utilities/functions/wait';\nimport BaseDatePicker from '../BaseDatePicker/BaseDatePicker.vue';\nimport focusableSelectors from 'focusable-selectors';\nimport selectors from 'focusable-selectors';\nimport type { BaseDatePickerSlots } from '../BaseDatePicker/BaseDatePicker.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\n\ndayjs.extend(customParseFormat);\ndayjs.locale(it);\n\nexport type BaseDatePickerInputProps = {\n\t/**\n\t * Allows typing into the input.\n\t */\n\tallowWriting?: boolean;\n\n\t/**\n\t * Guides to the browser as to the type of information expected in the field.\n\t */\n\tautocomplete?: InputHTMLAttributes['autocomplete'];\n\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * Defines the first day of the week with `0` meaning Sunday and `6` meaning Saturday\n\t */\n\tfirstDayOfWeek?: (typeof it)['weekStart'];\n\n\t/**\n\t * Define if the component should be in an error state.\n\t * It usually attaches a CSS class for styling purposes.\n\t */\n\thasErrors?: boolean;\n\n\t/**\n\t * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\n\n\t/**\n\t * Maximum selectable date\n\t */\n\tmax?: Date | string | number;\n\n\t/**\n\t * Minimum selectable date\n\t */\n\tmin?: Date | string | number;\n\n\t/**\n\t * Used by v-model. Can be null, a single string, or an array of strings based on whether a range or single date is needed\n\t */\n\tmodelValue: string | string[] | null;\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname?: InputHTMLAttributes['name'];\n\n\t/**\n\t * String displayed when there's no data.\n\t */\n\tplaceholder?: InputHTMLAttributes['placeholder'];\n\n\t/**\n\t * Selects a range of dates between two dates. It selects all of the days between start and end\n\t */\n\trange?: boolean;\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n\n\t/**\n\t * Function that accepts a `Date` object and returns a boolean. `false` meaning the date cannot be selected\n\t * @param date\n\t */\n\tselectable?: (date: Date) => boolean;\n\n\t/**\n\t * Width of the calendar\n\t */\n\twidth?: number | string;\n};\n\nconst props = withDefaults(defineProps<BaseDatePickerInputProps>(), {\n\tallowWriting: true,\n\tautocomplete: 'off',\n\twidth: 290,\n});\n\nexport type BaseDatePickerInputEvents = {\n\t(e: 'update:modelValue', value: BaseDatePickerInputProps['modelValue']): void;\n\n\t(e: 'inactive'): void;\n\n\t(e: 'error', message: string): void;\n};\n\nconst emit = defineEmits<BaseDatePickerInputEvents>();\n\ndefineSlots<\n\t{\n\t\t'prepend-outer'?: (props: object) => any;\n\t\tprepend?: (props: object) => any;\n\t\tappend?: (props: object) => any;\n\t\t'append-outer'?: (props: object) => any;\n\t} & BaseDatePickerSlots\n>();\n\nconst calendar = ref<HTMLElement | null>(null);\nconst outerContainer = ref<HTMLElement | null>(null);\nconst innerContainer = ref<HTMLElement | null>(null);\nconst input = ref<HTMLElement | null>(null);\nconst inputValue = ref<string | null>(null);\nconst basedatepicker = ref();\nconst id = props.id || `bdpi_${useId().id.value}`;\n\nconst classes = computed(() => ({\n\t'bb-base-date-picker-input': true,\n\t'bb-base-date-picker-input--errors': props.hasErrors,\n\t'bb-base-date-picker-input--readonly': props.readonly,\n\t'bb-base-date-picker-input--disabled': props.disabled,\n}));\n\n/**\n * These events are just propagated\n */\nconst eventListeners = {\n\tonInput: (event: Event) => {\n\t\tif (props.range) return;\n\t\tif (event.target instanceof HTMLInputElement) {\n\t\t\tinputValue.value = event.target.value;\n\t\t\tif (/\\d{2}\\/\\d{2}\\/\\d{4}/.test(event.target.value)) {\n\t\t\t\tconst date = dayjs(event.target.value, 'DD/MM/YYYY');\n\t\t\t\tif (!basedatepicker.value.isDateDisabled(date)) {\n\t\t\t\t\temit('update:modelValue', date.toISOString());\n\t\t\t\t} else {\n\t\t\t\t\temit('error', 'invalid_date_typed');\n\t\t\t\t}\n\t\t\t} else if (event.target.value === '') {\n\t\t\t\temit('update:modelValue', null);\n\t\t\t}\n\t\t}\n\t},\n};\n\n/**\n * Applies a class when the user is inside this whole component.\n * We cannot use focus within as it doesn't work for elements that are teleported.\n * Also we cannot use the <input/> if we phisically move focus to the calendar so\n * we track it manually.\n */\nconst active = ref(false);\n\nconst getStringFromModelValue = (value: typeof props.modelValue) => {\n\tif (value) {\n\t\tif (Array.isArray(value)) {\n\t\t\tlet head;\n\t\t\tlet tail;\n\t\t\tif (value.length) head = value[0];\n\t\t\tif (value.length > 1) tail = last(value);\n\t\t\treturn [head, tail]\n\t\t\t\t.filter(identity)\n\t\t\t\t.map((el) => dayjs(el).format('DD/MM/YYYY'))\n\t\t\t\t.join(' - ');\n\t\t} else {\n\t\t\treturn dayjs(value).format('DD/MM/YYYY');\n\t\t}\n\t}\n\treturn null;\n};\n\nconst displayValue = computed(() => {\n\tif (inputValue.value) return inputValue.value;\n\treturn getStringFromModelValue(props.modelValue);\n});\n\nwatch(\n\t() => props.modelValue,\n\t(value) => {\n\t\tinputValue.value = getStringFromModelValue(value);\n\t}\n);\n\n/**\n * This is used to position the calendar container.\n * When the linked item (outerContainer) updates its position\n * this is rerun by floating-UI\n */\nconst displayOptions = () => {\n\tif (innerContainer.value && calendar.value) {\n\t\tcomputePosition(innerContainer.value, calendar.value, {\n\t\t\tplacement: 'bottom-start',\n\t\t\tmiddleware: [offset(6), flip(), shift()],\n\t\t}).then((data) => {\n\t\t\tif (calendar.value) {\n\t\t\t\tcalendar.value.style.left = `${data.x}px`;\n\t\t\t\tcalendar.value.style.top = `${data.y}px`;\n\t\t\t\tif (typeof props.width === 'string') {\n\t\t\t\t\tif (Number(props.width)) {\n\t\t\t\t\t\tcalendar.value.style.width = `${Math.max(\n\t\t\t\t\t\t\tinnerContainer.value?.offsetWidth ?? 0,\n\t\t\t\t\t\t\t+props.width\n\t\t\t\t\t\t)}px`;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcalendar.value.style.width = props.width;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n};\n\nlet cleanUpPositioning: () => void;\n\nonMounted(async () => {\n\tif (innerContainer.value && calendar.value) {\n\t\tcleanUpPositioning = autoUpdate(\n\t\t\tinnerContainer.value,\n\t\t\tcalendar.value,\n\t\t\tdisplayOptions\n\t\t);\n\t}\n});\nonBeforeUnmount(() => {\n\tcleanUpPositioning();\n});\n\n/**\n * We need the transitions because elements must be hidden and shown\n * to accessibility tools when they are fully closed or fully open,\n * while still being animated for sighted users.\n */\n\n// Option panel is open\nconst shown = ref(false);\n// Option panel is opening\nconst showing = ref(false);\n// option panel is closing\nconst hiding = ref(false);\n// Option panel il closed\nconst hidden = ref(true);\n\nconst open = async () => {\n\thidden.value = false;\n\tshowing.value = true;\n\tawait wait(500);\n\tshowing.value = false;\n\n\thidden.value = false;\n\tshown.value = true;\n};\n\nconst close = async () => {\n\tshown.value = false;\n\thiding.value = true;\n\tawait wait(500);\n\thiding.value = false;\n\tshown.value = false;\n\thidden.value = true;\n\tbasedatepicker.value?.setSelectionModeToDay();\n};\n\nconst onKeydown = (event: KeyboardEvent) => {\n\tif (event.key === 'Tab') {\n\t\tif (!event.shiftKey) {\n\t\t\tevent.preventDefault();\n\t\t\tif (calendar.value) {\n\t\t\t\tconst focusableElements = calendar.value.querySelectorAll(\n\t\t\t\t\tselectors.join()\n\t\t\t\t);\n\t\t\t\tconst firstFocusableElement = focusableElements[0];\n\t\t\t\tif (firstFocusableElement instanceof HTMLElement) {\n\t\t\t\t\tfirstFocusableElement.focus();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\nconst onCalendarKeydown = (event: KeyboardEvent) => {\n\tif (event.key === 'Tab') {\n\t\tif (calendar.value) {\n\t\t\tconst focusableSelectorsString = focusableSelectors.join(', ');\n\t\t\tconst focusableElements = calendar.value.querySelectorAll(\n\t\t\t\tfocusableSelectorsString\n\t\t\t);\n\t\t\t/* When the user tabs on the last tabbable elem */\n\t\t\tif (event.target === focusableElements[focusableElements.length - 1]) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tconst focusableElements = Array.from(\n\t\t\t\t\tdocument.body.querySelectorAll(focusableSelectorsString)\n\t\t\t\t);\n\t\t\t\tconst indexOfInput = focusableElements.findIndex(\n\t\t\t\t\t(el) => el.id === props.id\n\t\t\t\t);\n\t\t\t\tif (indexOfInput > -1) {\n\t\t\t\t\tconst nextElement = focusableElements[indexOfInput + 1];\n\t\t\t\t\tif (nextElement instanceof HTMLElement) {\n\t\t\t\t\t\tnextElement.focus();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (event.target === focusableElements[0]) {\n\t\t\t\tif (event.shiftKey) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tinput.value?.focus();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\nconst onFocus = () => {\n\topen();\n\tdocument.addEventListener('focusin', onDocumentFocus);\n\tdocument.addEventListener('click', onDocumentClick);\n};\n\nconst onDocumentFocus = (event: FocusEvent) => {\n\tif (event.target instanceof HTMLElement) {\n\t\tif (\n\t\t\t!(\n\t\t\t\touterContainer.value?.contains(event.target) ||\n\t\t\t\tcalendar.value?.contains(event.target)\n\t\t\t)\n\t\t) {\n\t\t\tclose();\n\t\t\tactive.value = false;\n\t\t\tdocument.removeEventListener('click', onDocumentClick);\n\t\t\tdocument.removeEventListener('focusin', onDocumentFocus);\n\t\t\temit('inactive');\n\t\t}\n\t}\n};\n\nconst onDocumentClick = (event: MouseEvent) => {\n\tif (event.target instanceof HTMLElement) {\n\t\tif (\n\t\t\t!(\n\t\t\t\touterContainer.value?.contains(event.target) ||\n\t\t\t\tcalendar.value?.contains(event.target)\n\t\t\t)\n\t\t) {\n\t\t\tclose();\n\t\t\tactive.value = false;\n\t\t\tdocument.removeEventListener('click', onDocumentClick);\n\t\t\tdocument.removeEventListener('focusin', onDocumentFocus);\n\t\t\temit('inactive');\n\t\t}\n\t}\n};\n\n/**\n * These events are just propagated\n */\nconst calendarEventListeners = {\n\t'onUpdate:modelValue': (value: string | string[] | null) =>\n\t\temit('update:modelValue', value),\n};\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BaseDatePickerInput';\n</style>\n"],"names":["dayjs","customParseFormat","it","props","__props","emit","__emit","calendar","ref","outerContainer","innerContainer","input","inputValue","basedatepicker","id","useId","classes","computed","eventListeners","event","date","active","getStringFromModelValue","value","head","tail","last","identity","el","displayValue","watch","displayOptions","computePosition","offset","flip","shift","data","_a","cleanUpPositioning","onMounted","autoUpdate","onBeforeUnmount","shown","showing","hiding","hidden","open","wait","close","onKeydown","firstFocusableElement","selectors","onCalendarKeydown","focusableSelectorsString","focusableSelectors","focusableElements","indexOfInput","nextElement","onFocus","onDocumentFocus","onDocumentClick","_b","calendarEventListeners"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"index17.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index170.js
CHANGED
package/dist/index170.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index170.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index170.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index171.js
CHANGED
package/dist/index171.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index171.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index171.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index172.js
CHANGED
package/dist/index173.js
CHANGED
package/dist/index174.js
CHANGED
package/dist/index175.js
CHANGED
package/dist/index176.js
CHANGED
package/dist/index177.js
CHANGED
package/dist/index178.js
CHANGED
package/dist/index179.js
CHANGED
package/dist/index18.js
CHANGED
|
@@ -1,2 +1,221 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineComponent as Z, ref as n, computed as k, watch as x, openBlock as E, createElementBlock as ee, normalizeClass as z, renderSlot as c, createElementVNode as o, withDirectives as ae, mergeProps as B, unref as p, toDisplayString as L, createBlock as te, Teleport as ne, normalizeStyle as re, createVNode as oe, createSlots as le, renderList as se, withCtx as ie, normalizeProps as ue, guardReactiveProps as de, createCommentVNode as ce } from "vue";
|
|
2
|
+
import { useFloating as pe } from "./index208.js";
|
|
3
|
+
import me from "./index209.js";
|
|
4
|
+
import r from "./index200.js";
|
|
5
|
+
import fe from "./index203.js";
|
|
6
|
+
import { identity as be } from "./index210.js";
|
|
7
|
+
import { last as ve } from "./index207.js";
|
|
8
|
+
import { useFocusTrap as ye } from "./index211.js";
|
|
9
|
+
import { useId as ge } from "./index8.js";
|
|
10
|
+
import { vMaska as he } from "./index212.js";
|
|
11
|
+
import { wait as Y } from "./index123.js";
|
|
12
|
+
import { waitFor as ke } from "./index213.js";
|
|
13
|
+
import Me from "./index16.js";
|
|
14
|
+
import "./index17.js";
|
|
15
|
+
import { autoUpdate as we, flip as Ve, shift as _e } from "./index214.js";
|
|
16
|
+
import { offset as Ye } from "./index215.js";
|
|
17
|
+
const De = ["aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "id", "name", "placeholder", "readonly", "value"], Ae = ["disabled"], Ce = /* @__PURE__ */ o("svg", {
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
viewBox: "-2 -3 24 24"
|
|
20
|
+
}, [
|
|
21
|
+
/* @__PURE__ */ o("path", {
|
|
22
|
+
fill: "currentColor",
|
|
23
|
+
d: "M18 7V5a1 1 0 0 0-1-1h-1v1a1 1 0 0 1-2 0V4H6v1a1 1 0 1 1-2 0V4H3a1 1 0 0 0-1 1v2zm0 2H2v6a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1zm-2-7h1a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3h1V1a1 1 0 1 1 2 0v1h8V1a1 1 0 0 1 2 0z"
|
|
24
|
+
})
|
|
25
|
+
], -1), Se = ["id"], Ue = /* @__PURE__ */ Z({
|
|
26
|
+
__name: "BaseDatePickerInput",
|
|
27
|
+
props: {
|
|
28
|
+
allowWriting: { type: Boolean, default: !0 },
|
|
29
|
+
autocomplete: { default: "off" },
|
|
30
|
+
autofocus: {},
|
|
31
|
+
disabled: { type: Boolean },
|
|
32
|
+
firstDayOfWeek: {},
|
|
33
|
+
hasErrors: { type: Boolean },
|
|
34
|
+
id: {},
|
|
35
|
+
max: {},
|
|
36
|
+
min: {},
|
|
37
|
+
modelValue: {},
|
|
38
|
+
name: {},
|
|
39
|
+
placeholder: {},
|
|
40
|
+
range: { type: Boolean },
|
|
41
|
+
readonly: {},
|
|
42
|
+
selectable: {},
|
|
43
|
+
width: { default: 290 }
|
|
44
|
+
},
|
|
45
|
+
emits: ["active", "error", "focus", "inactive", "update:modelValue"],
|
|
46
|
+
setup(F, { emit: I }) {
|
|
47
|
+
r.extend(me), r.locale(fe);
|
|
48
|
+
const a = F, l = I, s = n(null), D = n(null), A = n(null), P = n(null), m = n(null), f = n(), b = a.id || `bdpi_${ge().id.value}`, O = k(() => ({
|
|
49
|
+
"bb-base-date-picker-input": !0,
|
|
50
|
+
"bb-base-date-picker-input--active": u.value,
|
|
51
|
+
"bb-base-date-picker-input--errors": a.hasErrors,
|
|
52
|
+
"bb-base-date-picker-input--readonly": a.readonly,
|
|
53
|
+
"bb-base-date-picker-input--disabled": a.disabled
|
|
54
|
+
})), G = {
|
|
55
|
+
onInput: (e) => {
|
|
56
|
+
if (!a.range && e.target instanceof HTMLInputElement)
|
|
57
|
+
if (m.value = e.target.value, /\d{2}\/\d{2}\/\d{4}/.test(e.target.value)) {
|
|
58
|
+
const t = r(e.target.value, "DD/MM/YYYY");
|
|
59
|
+
f.value.isDateDisabled(t) ? l("error", "invalid_date_typed") : l("update:modelValue", t.toISOString());
|
|
60
|
+
} else
|
|
61
|
+
e.target.value === "" && l("update:modelValue", null);
|
|
62
|
+
}
|
|
63
|
+
}, u = n(!1), H = () => {
|
|
64
|
+
u.value || (l("active"), u.value = !0, document.addEventListener("focusin", v), document.addEventListener("click", v));
|
|
65
|
+
}, v = (e) => {
|
|
66
|
+
var t, i;
|
|
67
|
+
_.value || e.target instanceof HTMLElement && !((t = D.value) != null && t.contains(e.target)) && !((i = s.value) != null && i.contains(e.target)) && (u.value = !1, l("inactive"), document.removeEventListener("focusin", v), document.removeEventListener("click", v));
|
|
68
|
+
}, C = (e) => {
|
|
69
|
+
if (e)
|
|
70
|
+
if (Array.isArray(e)) {
|
|
71
|
+
let t, i;
|
|
72
|
+
return e.length && (t = e[0]), e.length > 1 && (i = ve(e)), [t, i].filter(be).map((h) => r(h).format("DD/MM/YYYY")).join(" - ");
|
|
73
|
+
} else
|
|
74
|
+
return r(e).format("DD/MM/YYYY");
|
|
75
|
+
return null;
|
|
76
|
+
}, W = k(() => m.value ? m.value : C(a.modelValue));
|
|
77
|
+
x(
|
|
78
|
+
() => a.modelValue,
|
|
79
|
+
(e) => {
|
|
80
|
+
m.value = C(e);
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
const { floatingStyles: T } = pe(A, s, {
|
|
84
|
+
placement: "bottom",
|
|
85
|
+
whileElementsMounted: we,
|
|
86
|
+
middleware: [Ve(), Ye(5), _e()]
|
|
87
|
+
}), j = k(() => {
|
|
88
|
+
const e = {
|
|
89
|
+
...T.value
|
|
90
|
+
};
|
|
91
|
+
return s.value, e;
|
|
92
|
+
}), y = n(!1), M = n(!1), w = n(!1), g = n(!0), N = async () => {
|
|
93
|
+
g.value = !1, M.value = !0, await Y(350), M.value = !1, g.value = !1, y.value = !0;
|
|
94
|
+
}, V = async () => {
|
|
95
|
+
var e, t;
|
|
96
|
+
y.value = !1, w.value = !0, await Y(350), w.value = !1, y.value = !1, g.value = !0, (e = f.value) == null || e.setSelectionModeToDay(), (t = f.value) == null || t.setCursor(a.modelValue);
|
|
97
|
+
}, S = n(!1), $ = async () => {
|
|
98
|
+
S.value = !0, await ke(() => !!s.value), await N(), R();
|
|
99
|
+
}, _ = n(!1), { activate: R, deactivate: U } = ye(s, {
|
|
100
|
+
onActivate: () => _.value = !0,
|
|
101
|
+
// On post activation focus on current date
|
|
102
|
+
onPostActivate: () => {
|
|
103
|
+
var e;
|
|
104
|
+
(e = s.value.querySelector(
|
|
105
|
+
".bb-base-date-picker-date--current button"
|
|
106
|
+
)) == null || e.focus();
|
|
107
|
+
},
|
|
108
|
+
onPostDeactivate: async () => {
|
|
109
|
+
await Y(200), _.value = !1;
|
|
110
|
+
},
|
|
111
|
+
/* On esc deactivate the trap, return focus and then close the modal */
|
|
112
|
+
escapeDeactivates: () => (d.value = !1, V(), !0),
|
|
113
|
+
clickOutsideDeactivates: () => (d.value = !1, V(), !0),
|
|
114
|
+
allowOutsideClick: !0
|
|
115
|
+
}), d = n(!a.allowWriting || a.range), q = async (e) => {
|
|
116
|
+
l("focus", e), d.value && $(), d.value = !a.allowWriting || a.range;
|
|
117
|
+
}, J = (e) => a.range && Array.isArray(e) && e.length === 2 || !a.range && !!e, K = {
|
|
118
|
+
"onUpdate:modelValue": (e) => {
|
|
119
|
+
l("update:modelValue", e), J(e) && (d.value = !1, U({ onPostDeactivate: () => V() }));
|
|
120
|
+
}
|
|
121
|
+
}, Q = k(() => {
|
|
122
|
+
if (a.range) {
|
|
123
|
+
if (!a.modelValue || a.modelValue.length < 2)
|
|
124
|
+
return "Seleziona un range";
|
|
125
|
+
const e = r(a.modelValue[0]).format("D MMMM YYYY"), t = r(a.modelValue[1]).format("D MMMM YYYY");
|
|
126
|
+
if (a.range && a.modelValue.length === 2)
|
|
127
|
+
return `Cambia selezione, da ${e} a ${t}`;
|
|
128
|
+
} else if (typeof a.modelValue == "string")
|
|
129
|
+
return `Cambia selezione, ${r(a.modelValue).format("D MMMM YYYY")}`;
|
|
130
|
+
return "Seleziona una data";
|
|
131
|
+
});
|
|
132
|
+
return (e, t) => (E(), ee("span", {
|
|
133
|
+
ref_key: "outerContainer",
|
|
134
|
+
ref: D,
|
|
135
|
+
class: z(["bb-base-date-picker-input__container", O.value]),
|
|
136
|
+
onFocusin: H
|
|
137
|
+
}, [
|
|
138
|
+
c(e.$slots, "prepend-outer"),
|
|
139
|
+
o("span", {
|
|
140
|
+
ref_key: "innerContainer",
|
|
141
|
+
ref: A,
|
|
142
|
+
class: "bb-base-date-picker-input__inner-container"
|
|
143
|
+
}, [
|
|
144
|
+
c(e.$slots, "prepend"),
|
|
145
|
+
ae(o("input", B({
|
|
146
|
+
"aria-describedby": `bdpi_description_${p(b)}`,
|
|
147
|
+
autocomplete: e.autocomplete,
|
|
148
|
+
autofocus: e.autofocus,
|
|
149
|
+
"data-maska": a.range ? "##/##/#### - ##/##/####" : "##/##/####",
|
|
150
|
+
disabled: e.disabled,
|
|
151
|
+
id: p(b),
|
|
152
|
+
name: e.name,
|
|
153
|
+
placeholder: e.placeholder,
|
|
154
|
+
readonly: e.readonly || e.range || !e.allowWriting,
|
|
155
|
+
type: "text",
|
|
156
|
+
value: W.value,
|
|
157
|
+
ref_key: "input",
|
|
158
|
+
ref: P
|
|
159
|
+
}, G, { onFocus: q }), null, 16, De), [
|
|
160
|
+
[p(he)]
|
|
161
|
+
]),
|
|
162
|
+
o("button", {
|
|
163
|
+
type: "button",
|
|
164
|
+
class: "bb-base-date-picker-input__calendar-btn",
|
|
165
|
+
disabled: e.disabled || e.readonly,
|
|
166
|
+
onClick: $
|
|
167
|
+
}, [
|
|
168
|
+
Ce,
|
|
169
|
+
o("span", null, L(Q.value), 1)
|
|
170
|
+
], 8, Ae),
|
|
171
|
+
c(e.$slots, "append"),
|
|
172
|
+
o("span", {
|
|
173
|
+
id: `bdpi_description_${p(b)}`,
|
|
174
|
+
class: "bb-base-date-picker-input__accessible-description"
|
|
175
|
+
}, "Formato della data " + L(a.range ? "GG/MM/AAAA - GG/MM/AAAA" : "GG/MM/AAAA"), 9, Se)
|
|
176
|
+
], 512),
|
|
177
|
+
c(e.$slots, "append-outer"),
|
|
178
|
+
S.value ? (E(), te(ne, {
|
|
179
|
+
key: 0,
|
|
180
|
+
to: "body"
|
|
181
|
+
}, [
|
|
182
|
+
o("span", {
|
|
183
|
+
ref_key: "calendar",
|
|
184
|
+
ref: s,
|
|
185
|
+
class: z(["bb-base-date-picker-input__calendar", {
|
|
186
|
+
"bb-base-date-picker-input__calendar--active": u.value,
|
|
187
|
+
"bb-base-date-picker-input__calendar--shown": y.value,
|
|
188
|
+
"bb-base-date-picker-input__calendar--showing": M.value,
|
|
189
|
+
"bb-base-date-picker-input__calendar--hiding": w.value,
|
|
190
|
+
"bb-base-date-picker-input__calendar--hidden": g.value
|
|
191
|
+
}]),
|
|
192
|
+
style: re(j.value)
|
|
193
|
+
}, [
|
|
194
|
+
oe(Me, B({ id: p(b) }, K, {
|
|
195
|
+
ref_key: "basedatepicker",
|
|
196
|
+
ref: f,
|
|
197
|
+
disabled: e.disabled,
|
|
198
|
+
"first-day-of-week": e.firstDayOfWeek,
|
|
199
|
+
max: e.max,
|
|
200
|
+
min: e.min,
|
|
201
|
+
"model-value": e.modelValue,
|
|
202
|
+
range: e.range,
|
|
203
|
+
readonly: e.readonly,
|
|
204
|
+
selectable: e.selectable
|
|
205
|
+
}), le({ _: 2 }, [
|
|
206
|
+
se(e.$slots, (i, h) => ({
|
|
207
|
+
name: h,
|
|
208
|
+
fn: ie((X) => [
|
|
209
|
+
c(e.$slots, h, ue(de(X)))
|
|
210
|
+
])
|
|
211
|
+
}))
|
|
212
|
+
]), 1040, ["id", "disabled", "first-day-of-week", "max", "min", "model-value", "range", "readonly", "selectable"])
|
|
213
|
+
], 6)
|
|
214
|
+
])) : ce("", !0)
|
|
215
|
+
], 34));
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
export {
|
|
219
|
+
Ue as default
|
|
220
|
+
};
|
|
2
221
|
//# sourceMappingURL=index18.js.map
|