bitboss-ui 2.1.119 → 2.1.121
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/ai/BaseButton.md +2 -1
- package/dist/ai/BbButton.md +2 -1
- package/dist/ai/BbPopover.md +15 -2
- package/dist/ai/BbTab.md +6 -3
- package/dist/ai/CommonPopover.md +35 -1
- package/dist/components/BaseButton/BaseButton.vue.d.ts +5 -10
- package/dist/components/BaseButton/RouterComponent.vue.d.ts +12 -15
- package/dist/components/BaseButton/types.d.ts +2 -1
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +10 -24
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +22 -17
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +6 -205
- package/dist/components/BaseColorInput/ColorPalette.vue.d.ts +3 -10
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +6 -11
- package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +3 -2
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +27 -35
- package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +3 -2
- package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +3 -4
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +6 -345
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +8 -22
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +6 -15
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +6 -15
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +6 -11
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +22 -17
- package/dist/components/BaseRating/BaseRating.vue.d.ts +6 -15
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +20 -15
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +6 -21
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +6 -15
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +22 -17
- package/dist/components/BaseTag/BaseTag.vue.d.ts +6 -353
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +6 -15
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +6 -15
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +6 -11
- package/dist/components/BbAlert/BbAlert.vue.d.ts +5 -10
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +6 -15
- package/dist/components/BbBadge/BbBadge.vue.d.ts +5 -10
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +7 -34
- package/dist/components/BbButton/BbButton.vue.d.ts +7 -11
- package/dist/components/BbButton/types.d.ts +2 -1
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +6 -11
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +22 -17
- package/dist/components/BbChip/BbChip.vue.d.ts +6 -11
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +5 -10
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +7 -16
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +6 -77
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +2 -1
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +14 -29
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +6 -11
- package/dist/components/BbDialog/BbDialog.vue.d.ts +8 -12
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +7 -216
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +7 -30
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +6 -15
- package/dist/components/BbIcon/BbIcon.vue.d.ts +3 -2
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +6 -15
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +7 -284
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +8 -22
- package/dist/components/BbPagination/BbPagination.vue.d.ts +8 -18
- package/dist/components/BbPopover/BbPopover.vue.d.ts +9 -201
- package/dist/components/BbPopover/types.d.ts +6 -0
- package/dist/components/BbProgress/BbProgress.vue.d.ts +3 -2
- package/dist/components/BbRadio/BbRadio.vue.d.ts +6 -11
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +22 -17
- package/dist/components/BbRating/BbRating.vue.d.ts +7 -16
- package/dist/components/BbRatio/BbRatio.vue.d.ts +5 -10
- package/dist/components/BbRows/BbRows.vue.d.ts +14 -49
- package/dist/components/BbSelect/BbSelect.vue.d.ts +20 -15
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +20 -15
- package/dist/components/BbSlider/BbSlider.vue.d.ts +7 -16
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +6 -17
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +3 -2
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +6 -11
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +22 -17
- package/dist/components/BbTab/BbTab.vue.d.ts +15 -18
- package/dist/components/BbTable/BbTable.vue.d.ts +25 -83
- package/dist/components/BbTag/BbTag.vue.d.ts +6 -11
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +7 -16
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +7 -16
- package/dist/components/BbToast/BbToast.vue.d.ts +3 -2
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +3 -2
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +8 -200
- package/dist/components/BbTree/BbTree.vue.d.ts +5 -10
- package/dist/components/ChipsBox/ChipsBox.vue.d.ts +2 -1
- package/dist/components/ClearableButton/ClearableButton.vue.d.ts +2 -1
- package/dist/components/CommaBox/CommaBox.vue.d.ts +2 -1
- package/dist/components/CommonInputInnerContainer/CommonInputInnerContainer.vue.d.ts +6 -15
- package/dist/components/CommonInputOuterContainer/CommonInputOuterContainer.vue.d.ts +5 -10
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +9 -18
- package/dist/components/CommonPopover/types.d.ts +7 -0
- package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +2 -1
- package/dist/components/FlatListBox/FlatListBox.vue.d.ts +16 -11
- package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +16 -11
- package/dist/components/ListBox/ListBox.vue.d.ts +16 -11
- package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +11 -6
- package/dist/components/Transitions/ScaleFade.vue.d.ts +7 -15
- package/dist/components/Transitions/Slide.vue.d.ts +7 -15
- package/dist/index.css +2 -1
- package/dist/index.js +78 -220
- package/dist/index10.js +4 -81
- package/dist/index100.js +6 -0
- package/dist/index101.js +300 -94
- package/dist/index102.js +16 -0
- package/dist/index103.js +16 -136
- package/dist/index104.js +27 -0
- package/dist/index105.js +4 -102
- package/dist/index106.js +7 -0
- package/dist/index107.js +9 -24
- package/dist/index108.js +4 -0
- package/dist/index109.js +19 -142
- package/dist/index11.js +41 -39
- package/dist/index110.js +12 -532
- package/dist/index111.js +19 -0
- package/dist/index112.js +24 -190
- package/dist/index114.js +7 -116
- package/dist/index115.js +241 -0
- package/dist/index116.js +5 -58
- package/dist/index117.js +42 -0
- package/dist/index118.js +5 -40
- package/dist/index119.js +53 -0
- package/dist/index12.js +10 -41
- package/dist/index120.js +5 -100
- package/dist/index121.js +32 -0
- package/dist/index122.js +5 -137
- package/dist/index123.js +8 -0
- package/dist/index124.js +51 -365
- package/dist/index125.js +5 -0
- package/dist/index126.js +222 -554
- package/dist/index128.js +6 -124
- package/dist/index129.js +162 -0
- package/dist/index13.js +92 -185
- package/dist/index130.js +25 -118
- package/dist/index131.js +51 -0
- package/dist/index132.js +5 -126
- package/dist/index133.js +607 -0
- package/dist/index135.js +6 -0
- package/dist/index136.js +13 -164
- package/dist/index137.js +153 -0
- package/dist/index139.js +6 -0
- package/dist/index14.js +306 -128
- package/dist/index140.js +224 -71
- package/dist/index141.js +5 -0
- package/dist/index142.js +4 -14
- package/dist/index143.js +128 -0
- package/dist/index145.js +6 -4
- package/dist/index146.js +7 -420
- package/dist/index147.js +182 -11
- package/dist/index149.js +6 -27
- package/dist/index15.js +10 -0
- package/dist/index150.js +5 -3
- package/dist/index151.js +4 -7
- package/dist/index152.js +95 -8
- package/dist/index154.js +6 -5
- package/dist/index155.js +168 -5
- package/dist/index157.js +6 -5
- package/dist/index158.js +145 -5
- package/dist/index16.js +58 -152
- package/dist/index160.js +6 -5
- package/dist/index161.js +53 -5
- package/dist/index163.js +6 -5
- package/dist/index164.js +15 -4
- package/dist/index165.js +18 -4
- package/dist/index166.js +35 -5
- package/dist/index168.js +6 -5
- package/dist/index169.js +89 -5
- package/dist/index17.js +11 -0
- package/dist/index171.js +6 -5
- package/dist/index172.js +82 -5
- package/dist/index174.js +6 -5
- package/dist/index175.js +37 -4
- package/dist/index176.js +460 -4
- package/dist/index177.js +28 -5
- package/dist/index178.js +66 -5
- package/dist/index179.js +17 -5
- package/dist/index18.js +34 -128
- package/dist/index180.js +162 -5
- package/dist/index181.js +5 -5
- package/dist/index182.js +217 -5
- package/dist/index183.js +5 -5
- package/dist/index184.js +112 -4
- package/dist/index185.js +5 -5
- package/dist/index186.js +457 -4
- package/dist/index188.js +6 -5
- package/dist/index189.js +4 -5
- package/dist/index19.js +4 -0
- package/dist/index190.js +7 -4
- package/dist/index191.js +7 -5
- package/dist/index192.js +268 -5
- package/dist/index194.js +6 -5
- package/dist/index195.js +124 -5
- package/dist/index197.js +6 -5
- package/dist/index198.js +174 -5
- package/dist/index2.js +20 -0
- package/dist/index20.js +8 -195
- package/dist/index200.js +5 -4
- package/dist/index201.js +224 -5
- package/dist/index203.js +6 -4
- package/dist/index204.js +135 -5
- package/dist/index206.js +5 -4
- package/dist/index207.js +5 -5
- package/dist/index208.js +170 -5
- package/dist/index21.js +35 -0
- package/dist/index210.js +5 -4
- package/dist/index211.js +37 -5
- package/dist/index213.js +5 -4
- package/dist/index214.js +63 -5
- package/dist/index216.js +5 -4
- package/dist/index217.js +74 -5
- package/dist/index219.js +5 -4
- package/dist/index22.js +6 -245
- package/dist/index220.js +65 -5
- package/dist/index222.js +6 -140
- package/dist/index223.js +67 -4
- package/dist/index225.js +6 -4
- package/dist/index226.js +41 -4
- package/dist/index228.js +6 -15
- package/dist/index229.js +9 -6
- package/dist/index23.js +7 -0
- package/dist/index230.js +22 -10
- package/dist/index231.js +23 -5
- package/dist/index232.js +285 -22
- package/dist/index234.js +6 -5
- package/dist/index235.js +47 -6
- package/dist/index236.js +165 -5
- package/dist/index238.js +6 -5
- package/dist/index239.js +10 -3
- package/dist/index24.js +9 -616
- package/dist/index240.js +159 -20
- package/dist/index242.js +6 -14
- package/dist/index243.js +134 -53
- package/dist/index245.js +6 -14
- package/dist/index246.js +167 -19
- package/dist/index248.js +6 -20
- package/dist/index249.js +147 -15
- package/dist/index25.js +24 -0
- package/dist/index251.js +6 -0
- package/dist/index252.js +35 -35
- package/dist/index254.js +6 -8
- package/dist/index255.js +65 -4
- package/dist/index257.js +6 -0
- package/dist/index258.js +18 -101
- package/dist/index259.js +5 -0
- package/dist/index26.js +4 -184
- package/dist/index260.js +160 -5
- package/dist/index262.js +6 -7
- package/dist/index263.js +60 -7
- package/dist/index265.js +6 -7
- package/dist/index266.js +134 -8
- package/dist/index268.js +6 -270
- package/dist/index269.js +12 -54
- package/dist/index27.js +4 -0
- package/dist/index270.js +205 -53
- package/dist/index272.js +6 -62
- package/dist/index273.js +85 -27
- package/dist/index274.js +5 -4
- package/dist/index275.js +55 -9
- package/dist/index276.js +5 -9
- package/dist/index277.js +164 -6
- package/dist/index279.js +6 -11
- package/dist/index28.js +8 -148
- package/dist/index280.js +145 -23
- package/dist/index282.js +6 -88
- package/dist/index283.js +11 -0
- package/dist/index284.js +200 -5
- package/dist/index286.js +6 -18
- package/dist/index287.js +240 -374
- package/dist/index289.js +6 -9
- package/dist/index29.js +7 -0
- package/dist/index290.js +21 -7
- package/dist/index292.js +6 -7
- package/dist/index293.js +125 -7
- package/dist/index295.js +6 -69
- package/dist/index296.js +161 -190
- package/dist/index298.js +6 -11
- package/dist/index299.js +127 -25
- package/dist/index30.js +117 -177
- package/dist/index301.js +6 -0
- package/dist/index302.js +20 -9
- package/dist/index304.js +5 -4
- package/dist/index305.js +116 -5
- package/dist/index306.js +5 -5
- package/dist/index307.js +507 -4
- package/dist/index309.js +6 -19
- package/dist/index31.js +10 -0
- package/dist/index310.js +196 -6
- package/dist/index312.js +6 -282
- package/dist/index313.js +142 -4
- package/dist/index315.js +6 -4
- package/dist/index316.js +134 -18
- package/dist/index318.js +6 -29
- package/dist/index319.js +162 -4
- package/dist/index32.js +27 -99
- package/dist/index321.js +6 -4
- package/dist/index322.js +319 -4
- package/dist/index324.js +6 -4
- package/dist/index325.js +42 -6
- package/dist/index326.js +450 -7
- package/dist/index328.js +6 -368
- package/dist/index329.js +155 -59
- package/dist/index33.js +5 -0
- package/dist/index331.js +6 -9
- package/dist/index332.js +142 -5
- package/dist/index334.js +6 -4
- package/dist/index335.js +155 -17
- package/dist/index337.js +6 -21
- package/dist/index338.js +58 -4
- package/dist/index339.js +5 -4
- package/dist/index34.js +111 -176
- package/dist/index340.js +20 -6
- package/dist/index342.js +6 -69
- package/dist/index343.js +141 -5
- package/dist/index345.js +5 -6
- package/dist/index346.js +4 -9
- package/dist/index347.js +109 -9
- package/dist/index349.js +6 -11
- package/dist/index350.js +838 -16
- package/dist/index351.js +473 -94
- package/dist/index352.js +51 -229
- package/dist/index353.js +7 -202
- package/dist/index36.js +6 -133
- package/dist/index37.js +6 -0
- package/dist/index38.js +62 -489
- package/dist/index39.js +63 -0
- package/dist/index40.js +8 -334
- package/dist/index41.js +9 -0
- package/dist/index42.js +8 -127
- package/dist/index43.js +179 -0
- package/dist/index44.js +20 -184
- package/dist/index45.js +6 -0
- package/dist/index46.js +384 -239
- package/dist/index48.js +6 -140
- package/dist/index49.js +33 -0
- package/dist/index5.js +34 -41
- package/dist/index50.js +11 -156
- package/dist/index51.js +8 -0
- package/dist/index52.js +105 -64
- package/dist/index53.js +330 -0
- package/dist/index54.js +97 -91
- package/dist/index55.js +328 -0
- package/dist/index56.js +27 -68
- package/dist/index57.js +102 -0
- package/dist/index58.js +145 -53
- package/dist/index6.js +37 -61
- package/dist/index60.js +5 -225
- package/dist/index61.js +131 -0
- package/dist/index62.js +5 -171
- package/dist/index64.js +7 -99
- package/dist/index65.js +35 -0
- package/dist/index66.js +25 -137
- package/dist/index68.js +6 -43
- package/dist/index69.js +54 -0
- package/dist/index7.js +58 -64
- package/dist/index71.js +6 -0
- package/dist/index72.js +13 -120
- package/dist/index74.js +6 -125
- package/dist/index75.js +158 -84
- package/dist/index77.js +6 -21
- package/dist/index78.js +4 -129
- package/dist/index79.js +4 -0
- package/dist/index8.js +4 -14
- package/dist/index80.js +54 -62
- package/dist/index81.js +5 -0
- package/dist/index82.js +5 -323
- package/dist/index83.js +131 -0
- package/dist/index85.js +6 -0
- package/dist/index86.js +64 -220
- package/dist/index88.js +6 -84
- package/dist/index89.js +30 -0
- package/dist/index9.js +10 -9
- package/dist/index90.js +18 -45
- package/dist/index91.js +17 -134
- package/dist/index92.js +9 -0
- package/dist/index93.js +33 -176
- package/dist/index94.js +4 -0
- package/dist/index95.js +15 -234
- package/dist/index96.js +10 -0
- package/dist/index97.js +17 -247
- package/dist/index98.js +189 -0
- package/package.json +1 -1
- package/dist/index134.js +0 -28
- package/dist/index138.js +0 -122
- package/dist/index144.js +0 -13
- package/dist/index148.js +0 -11
- package/dist/index153.js +0 -7
- package/dist/index156.js +0 -5
- package/dist/index159.js +0 -5
- package/dist/index162.js +0 -5
- package/dist/index167.js +0 -5
- package/dist/index170.js +0 -5
- package/dist/index173.js +0 -5
- package/dist/index187.js +0 -5
- package/dist/index193.js +0 -4
- package/dist/index196.js +0 -5
- package/dist/index199.js +0 -5
- package/dist/index202.js +0 -5
- package/dist/index205.js +0 -5
- package/dist/index209.js +0 -5
- package/dist/index212.js +0 -5
- package/dist/index215.js +0 -5
- package/dist/index218.js +0 -5
- package/dist/index221.js +0 -4
- package/dist/index224.js +0 -36
- package/dist/index227.js +0 -4
- package/dist/index233.js +0 -12
- package/dist/index237.js +0 -13
- package/dist/index241.js +0 -25
- package/dist/index244.js +0 -20
- package/dist/index247.js +0 -32
- package/dist/index250.js +0 -137
- package/dist/index253.js +0 -109
- package/dist/index256.js +0 -108
- package/dist/index261.js +0 -5
- package/dist/index264.js +0 -7
- package/dist/index267.js +0 -10
- package/dist/index271.js +0 -34
- package/dist/index278.js +0 -11
- package/dist/index281.js +0 -15
- package/dist/index285.js +0 -8
- package/dist/index291.js +0 -7
- package/dist/index294.js +0 -55
- package/dist/index297.js +0 -5
- package/dist/index300.js +0 -30
- package/dist/index303.js +0 -4
- package/dist/index308.js +0 -30
- package/dist/index311.js +0 -5
- package/dist/index314.js +0 -18
- package/dist/index317.js +0 -4
- package/dist/index320.js +0 -4
- package/dist/index323.js +0 -4
- package/dist/index327.js +0 -721
- package/dist/index333.js +0 -127
- package/dist/index336.js +0 -4
- package/dist/index341.js +0 -69
- package/dist/index344.js +0 -8
- package/dist/index348.js +0 -21
- package/dist/index354.js +0 -261
- package/dist/index355.js +0 -37
- package/dist/index356.js +0 -131
- package/dist/index357.js +0 -400
- package/dist/index358.js +0 -24
- package/dist/index360.js +0 -4
- package/dist/index361.js +0 -4
- package/dist/index362.js +0 -136
- package/dist/index363.js +0 -443
- package/dist/index364.js +0 -130
- package/dist/index365.js +0 -49
- package/dist/index366.js +0 -72
- package/dist/index367.js +0 -522
- package/dist/index368.js +0 -52
- package/dist/index4.js +0 -35
- package/dist/index70.js +0 -46
- package/dist/index84.js +0 -154
- package/dist/index99.js +0 -33
package/dist/index126.js
CHANGED
|
@@ -1,555 +1,223 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
t.stopPropagation(), $(e.valueHash);
|
|
222
|
-
},
|
|
223
|
-
onKeydown: (t) => me(t, e.valueHash)
|
|
224
|
-
}), $ = (e) => {
|
|
225
|
-
const t = I.value.find((l) => l.valueHash === e);
|
|
226
|
-
t && (e in P.value ? V.value = V.value.filter(
|
|
227
|
-
(l) => T(l) !== e
|
|
228
|
-
) : V.value = [...V.value, t.value]);
|
|
229
|
-
};
|
|
230
|
-
M(f, () => {
|
|
231
|
-
_.clear(), b("update:unselectedItems", []), b("update:modelValue", []);
|
|
232
|
-
});
|
|
233
|
-
const U = u(() => !!(a.multiple && a.modelValue.length > 0 && !a.selectAll || f.value && _.size > 0)), _ = ge(/* @__PURE__ */ new Set());
|
|
234
|
-
M(
|
|
235
|
-
() => a.unselectedItems,
|
|
236
|
-
() => {
|
|
237
|
-
_.clear(), a.unselectedItems.forEach((e) => {
|
|
238
|
-
_.add(T(e));
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
);
|
|
242
|
-
const W = (e) => {
|
|
243
|
-
if (R(e)) {
|
|
244
|
-
ce(e), b("item:unselected", e.value), _.add(e.valueHash), b("update:unselectedItems", [...a.unselectedItems, e.value]);
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
|
-
f.value || ie(e), b("item:selected", e.value), _.delete(e.valueHash), b(
|
|
248
|
-
"update:unselectedItems",
|
|
249
|
-
a.unselectedItems.filter((t) => T(t) !== T(e.value))
|
|
250
|
-
);
|
|
251
|
-
}, R = (e) => _.has(e.valueHash) ? !1 : e.selected || f.value, ve = $e(
|
|
252
|
-
(e) => typeof e != "string",
|
|
253
|
-
JSON.stringify
|
|
254
|
-
), ye = u(
|
|
255
|
-
() => [].concat(a.modelValue ?? []).map((e) => ({
|
|
256
|
-
disabled: a.disabled,
|
|
257
|
-
name: a.name,
|
|
258
|
-
type: "hidden",
|
|
259
|
-
value: ve(e)
|
|
260
|
-
}))
|
|
261
|
-
), B = [70, 45, 85, 55], G = u(
|
|
262
|
-
() => Ve(I.value.length || a.columns.length || 1, 4, 10)
|
|
263
|
-
);
|
|
264
|
-
return M(
|
|
265
|
-
() => [q.value, a.fixedColumns],
|
|
266
|
-
() => {
|
|
267
|
-
N.value && a.fixedColumns?.length && Re(N.value, a.fixedColumns);
|
|
268
|
-
},
|
|
269
|
-
{ flush: "post" }
|
|
270
|
-
), (e, t) => (s(), Z(xe(ne.value), {
|
|
271
|
-
"aria-busy": L.value,
|
|
272
|
-
"aria-rowcount": y.value ? a.totalItems : void 0,
|
|
273
|
-
class: i(de.value),
|
|
274
|
-
inert: e.disabled
|
|
275
|
-
}, {
|
|
276
|
-
default: we(() => [
|
|
277
|
-
e.selectable ? (s(), o("legend", Fe, m(e.legend), 1)) : p("", !0),
|
|
278
|
-
n("table", {
|
|
279
|
-
ref_key: "tableRef",
|
|
280
|
-
ref: N
|
|
281
|
-
}, [
|
|
282
|
-
e.caption ? (s(), o("caption", {
|
|
283
|
-
key: 0,
|
|
284
|
-
class: i({
|
|
285
|
-
"bb-table-caption": !0,
|
|
286
|
-
"sr-only": !e.displayCaption
|
|
287
|
-
})
|
|
288
|
-
}, m(e.caption), 3)) : p("", !0),
|
|
289
|
-
n("thead", null, [
|
|
290
|
-
c(e.$slots, "thead", {}, () => [
|
|
291
|
-
n("tr", {
|
|
292
|
-
"aria-rowindex": y.value ? 1 : void 0,
|
|
293
|
-
class: "bb-table-header-row"
|
|
294
|
-
}, [
|
|
295
|
-
e.selectable ? (s(), o("th", {
|
|
296
|
-
key: 0,
|
|
297
|
-
class: i(["bb-table-header bb-table-header--select", e.thClass]),
|
|
298
|
-
scope: "col"
|
|
299
|
-
}, [
|
|
300
|
-
c(e.$slots, "header:select", {
|
|
301
|
-
multiple: e.multiple,
|
|
302
|
-
selectAll: !!f.value,
|
|
303
|
-
text: e.selectText || v(C)("table.selectText").value
|
|
304
|
-
}, () => [
|
|
305
|
-
n("span", Ke, [
|
|
306
|
-
e.allowSelectAll && e.multiple ? (s(), o("label", {
|
|
307
|
-
key: 0,
|
|
308
|
-
class: i(["bb-table-check__label", {
|
|
309
|
-
"bb-table-check__label--disabled": e.disabled
|
|
310
|
-
}])
|
|
311
|
-
}, [
|
|
312
|
-
(s(), Z(ae, {
|
|
313
|
-
key: U.value.toString(),
|
|
314
|
-
modelValue: f.value,
|
|
315
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) => f.value = l),
|
|
316
|
-
class: "bb-table-check",
|
|
317
|
-
disabled: e.disabled,
|
|
318
|
-
indeterminate: U.value,
|
|
319
|
-
name: `select_all_${e.name || ""}`,
|
|
320
|
-
readonly: e.readonly
|
|
321
|
-
}, null, 8, ["modelValue", "disabled", "indeterminate", "name", "readonly"])),
|
|
322
|
-
n("span", je, m(e.selectAllLabel || v(C)("table.selectAllLabel").value), 1)
|
|
323
|
-
], 2)) : e.multiple ? p("", !0) : (s(), o("span", qe, m(e.selectText || v(C)("table.selectText").value), 1))
|
|
324
|
-
])
|
|
325
|
-
])
|
|
326
|
-
], 2)) : p("", !0),
|
|
327
|
-
(s(!0), o(k, null, x(pe.value, (l) => (s(), o("th", {
|
|
328
|
-
key: l.key,
|
|
329
|
-
"aria-sort": l.sortDirection,
|
|
330
|
-
class: i(["bb-table-header", l.classes]),
|
|
331
|
-
scope: "col"
|
|
332
|
-
}, [
|
|
333
|
-
c(e.$slots, l.slotName, {
|
|
334
|
-
classes: l.classes,
|
|
335
|
-
items: v(E),
|
|
336
|
-
label: l.label
|
|
337
|
-
}, () => [
|
|
338
|
-
n("span", We, m(l.label), 1)
|
|
339
|
-
])
|
|
340
|
-
], 10, Ue))), 128)),
|
|
341
|
-
e.actions ? (s(), o("th", {
|
|
342
|
-
key: 1,
|
|
343
|
-
class: i(["bb-table-header bb-table-header--actions", e.thClass]),
|
|
344
|
-
scope: "col"
|
|
345
|
-
}, [
|
|
346
|
-
c(e.$slots, "header:actions", { text: e.actionsText }, () => [
|
|
347
|
-
n("span", Ge, m(e.actionsText), 1)
|
|
348
|
-
])
|
|
349
|
-
], 2)) : p("", !0)
|
|
350
|
-
], 8, ze)
|
|
351
|
-
])
|
|
352
|
-
]),
|
|
353
|
-
n("tbody", null, [
|
|
354
|
-
L.value ? c(e.$slots, "loading", {
|
|
355
|
-
key: 0,
|
|
356
|
-
items: v(E)
|
|
357
|
-
}, () => [
|
|
358
|
-
(s(!0), o(k, null, x(G.value, (l, d) => (s(), o("tr", {
|
|
359
|
-
key: d,
|
|
360
|
-
"aria-rowindex": y.value ? d + 2 : void 0,
|
|
361
|
-
class: "bb-table-skeleton__row"
|
|
362
|
-
}, [
|
|
363
|
-
e.selectable ? (s(), o("td", Qe, t[1] || (t[1] = [
|
|
364
|
-
n("div", { class: "bb-table-skeleton__placeholder" }, null, -1)
|
|
365
|
-
]))) : p("", !0),
|
|
366
|
-
(s(!0), o(k, null, x(a.columns, (r, g) => (s(), o("td", {
|
|
367
|
-
key: r.key,
|
|
368
|
-
class: i([
|
|
369
|
-
"bb-table-skeleton__cell",
|
|
370
|
-
`bb-table-skeleton__cell--${r.skeleton ?? "text"}`
|
|
371
|
-
])
|
|
372
|
-
}, [
|
|
373
|
-
!r.skeleton || r.skeleton === "text" ? (s(), o("div", Xe, [
|
|
374
|
-
n("div", {
|
|
375
|
-
class: "bb-table-skeleton__line",
|
|
376
|
-
style: H({
|
|
377
|
-
width: `${B[(d + g) % 4]}%`
|
|
378
|
-
})
|
|
379
|
-
}, null, 4),
|
|
380
|
-
n("div", {
|
|
381
|
-
class: "bb-table-skeleton__line",
|
|
382
|
-
style: H({
|
|
383
|
-
width: `${B[(d + g + 2) % 4]}%`
|
|
384
|
-
})
|
|
385
|
-
}, null, 4)
|
|
386
|
-
])) : r.skeleton === "avatar" ? (s(), o("div", Ye)) : r.skeleton === "avatar-text" ? (s(), o("div", Ze, [
|
|
387
|
-
t[2] || (t[2] = n("div", { class: "bb-table-skeleton__avatar" }, null, -1)),
|
|
388
|
-
n("div", el, [
|
|
389
|
-
n("div", {
|
|
390
|
-
class: "bb-table-skeleton__line",
|
|
391
|
-
style: H({
|
|
392
|
-
width: `${B[(d + g) % 4]}%`
|
|
393
|
-
})
|
|
394
|
-
}, null, 4),
|
|
395
|
-
n("div", {
|
|
396
|
-
class: "bb-table-skeleton__line",
|
|
397
|
-
style: H({
|
|
398
|
-
width: `${B[(d + g + 2) % 4]}%`
|
|
399
|
-
})
|
|
400
|
-
}, null, 4)
|
|
401
|
-
])
|
|
402
|
-
])) : r.skeleton === "image" ? (s(), o("div", ll)) : r.skeleton === "badge" ? (s(), o("div", al)) : p("", !0)
|
|
403
|
-
], 2))), 128)),
|
|
404
|
-
e.actions ? (s(), o("td", tl, t[3] || (t[3] = [
|
|
405
|
-
n("div", { class: "bb-table-skeleton__placeholder" }, null, -1)
|
|
406
|
-
]))) : p("", !0)
|
|
407
|
-
], 8, Je))), 128)),
|
|
408
|
-
n("tr", {
|
|
409
|
-
"aria-rowindex": y.value ? G.value + 2 : void 0,
|
|
410
|
-
class: "bb-table-loading__row bb-table-loading__row--sr-only"
|
|
411
|
-
}, [
|
|
412
|
-
n("td", {
|
|
413
|
-
colspan: D.value,
|
|
414
|
-
class: "bb-table-loading__cell",
|
|
415
|
-
"aria-live": "polite",
|
|
416
|
-
role: "status"
|
|
417
|
-
}, [
|
|
418
|
-
n("span", nl, m(e.loadingText), 1)
|
|
419
|
-
], 8, ol)
|
|
420
|
-
], 8, sl)
|
|
421
|
-
]) : v(I).length ? c(e.$slots, "tbody", { key: 2 }, () => [
|
|
422
|
-
(s(!0), o(k, null, x(q.value, (l) => (s(), o(k, {
|
|
423
|
-
key: l.valueHash
|
|
424
|
-
}, [
|
|
425
|
-
n("tr", {
|
|
426
|
-
"aria-rowindex": y.value && l.rowIndex ? l.rowIndex : void 0,
|
|
427
|
-
class: "bb-table-data__row",
|
|
428
|
-
onClick: l.onRowClick,
|
|
429
|
-
onContextmenu: l.onRowContextMenu,
|
|
430
|
-
onDblclick: l.onRowDblClick
|
|
431
|
-
}, [
|
|
432
|
-
e.selectable ? (s(), o("td", {
|
|
433
|
-
key: 0,
|
|
434
|
-
class: i(["bb-table-data__cell bb-table-data__cell--select", e.tdClass])
|
|
435
|
-
}, [
|
|
436
|
-
c(e.$slots, "select", {
|
|
437
|
-
checked: R(l),
|
|
438
|
-
disabled: !!l.disabled,
|
|
439
|
-
inputName: v(F),
|
|
440
|
-
item: l.item,
|
|
441
|
-
readonly: !!e.readonly,
|
|
442
|
-
value: l.value
|
|
443
|
-
}, () => [
|
|
444
|
-
e.multiple ? (s(), o("label", {
|
|
445
|
-
key: 0,
|
|
446
|
-
class: i(["bb-table-check__label", {
|
|
447
|
-
"bb-table-check__label--disabled": l.disabled
|
|
448
|
-
}])
|
|
449
|
-
}, [
|
|
450
|
-
ee(ae, {
|
|
451
|
-
checked: R(l),
|
|
452
|
-
class: "bb-table-check",
|
|
453
|
-
disabled: l.disabled,
|
|
454
|
-
readonly: e.readonly,
|
|
455
|
-
onChange: () => W(l)
|
|
456
|
-
}, null, 8, ["checked", "disabled", "readonly", "onChange"]),
|
|
457
|
-
n("span", cl, m(l.accessibleLabel), 1)
|
|
458
|
-
], 2)) : (s(), o("label", {
|
|
459
|
-
key: 1,
|
|
460
|
-
class: i(["bb-table-radio__label", {
|
|
461
|
-
"bb-table-radio__label--disabled": l.disabled
|
|
462
|
-
}])
|
|
463
|
-
}, [
|
|
464
|
-
ee(Ee, {
|
|
465
|
-
checked: l.selected,
|
|
466
|
-
class: "bb-table-radio",
|
|
467
|
-
disabled: l.disabled,
|
|
468
|
-
name: v(F),
|
|
469
|
-
readonly: e.readonly,
|
|
470
|
-
value: l.value,
|
|
471
|
-
onChange: () => W(l)
|
|
472
|
-
}, null, 8, ["checked", "disabled", "name", "readonly", "value", "onChange"]),
|
|
473
|
-
n("span", ul, m(l.accessibleLabel), 1)
|
|
474
|
-
], 2))
|
|
475
|
-
])
|
|
476
|
-
], 2)) : p("", !0),
|
|
477
|
-
(s(!0), o(k, null, x(l.cols, (d) => (s(), o("td", {
|
|
478
|
-
key: d.key,
|
|
479
|
-
class: i(["bb-table-data__cell", d.classes])
|
|
480
|
-
}, [
|
|
481
|
-
c(e.$slots, d.slotName, {
|
|
482
|
-
classes: d.classes,
|
|
483
|
-
content: d.content,
|
|
484
|
-
expanded: l.expanded,
|
|
485
|
-
item: l.item,
|
|
486
|
-
expandProps: S(l),
|
|
487
|
-
toggleExpanded: () => $(l.valueHash),
|
|
488
|
-
value: l.value
|
|
489
|
-
}, () => [
|
|
490
|
-
Ce(m(d.content), 1)
|
|
491
|
-
])
|
|
492
|
-
], 2))), 128)),
|
|
493
|
-
e.actions ? (s(), o("td", {
|
|
494
|
-
key: 1,
|
|
495
|
-
class: i(["bb-table__cell bb-table__cell--actions", e.tdClass])
|
|
496
|
-
}, [
|
|
497
|
-
c(e.$slots, "actions", {
|
|
498
|
-
expanded: l.expanded,
|
|
499
|
-
item: l.item,
|
|
500
|
-
expandProps: S(l),
|
|
501
|
-
toggleExpanded: () => $(l.valueHash),
|
|
502
|
-
value: l.value
|
|
503
|
-
})
|
|
504
|
-
], 2)) : p("", !0)
|
|
505
|
-
], 40, il),
|
|
506
|
-
l.expanded ? (s(), o("tr", {
|
|
507
|
-
key: 0,
|
|
508
|
-
"aria-rowindex": y.value && l.rowIndex ? l.rowIndex + 1 : void 0,
|
|
509
|
-
id: `expanded_${l.valueHash}`,
|
|
510
|
-
class: "bb-table-expand__row"
|
|
511
|
-
}, [
|
|
512
|
-
n("td", {
|
|
513
|
-
colspan: D.value,
|
|
514
|
-
class: "bb-table-expand__cell"
|
|
515
|
-
}, [
|
|
516
|
-
c(e.$slots, "expand", {
|
|
517
|
-
expanded: l.expanded,
|
|
518
|
-
item: l.item,
|
|
519
|
-
expandProps: S(l),
|
|
520
|
-
toggleExpanded: () => $(l.valueHash),
|
|
521
|
-
value: l.value
|
|
522
|
-
})
|
|
523
|
-
], 8, ml)
|
|
524
|
-
], 8, pl)) : p("", !0)
|
|
525
|
-
], 64))), 128))
|
|
526
|
-
]) : c(e.$slots, "no-data", { key: 1 }, () => [
|
|
527
|
-
n("tr", {
|
|
528
|
-
"aria-rowindex": y.value ? 2 : void 0,
|
|
529
|
-
class: "bb-table-no-data__row"
|
|
530
|
-
}, [
|
|
531
|
-
n("td", {
|
|
532
|
-
class: "bb-table-no-data__cell",
|
|
533
|
-
colspan: D.value
|
|
534
|
-
}, [
|
|
535
|
-
n("span", bl, m(e.noDataText || v(C)("table.noDataText").value), 1)
|
|
536
|
-
], 8, rl)
|
|
537
|
-
], 8, dl)
|
|
538
|
-
])
|
|
539
|
-
]),
|
|
540
|
-
n("tfoot", null, [
|
|
541
|
-
c(e.$slots, "tfoot")
|
|
542
|
-
])
|
|
543
|
-
], 512),
|
|
544
|
-
(s(!0), o(k, null, x(ye.value, (l) => (s(), o("input", Ie({
|
|
545
|
-
key: l.value,
|
|
546
|
-
ref_for: !0
|
|
547
|
-
}, l), null, 16))), 128))
|
|
548
|
-
]),
|
|
549
|
-
_: 3
|
|
550
|
-
}, 8, ["aria-busy", "aria-rowcount", "class", "inert"]));
|
|
551
|
-
}
|
|
1
|
+
import { __toESM as e } from "./index2.js";
|
|
2
|
+
import { _config as t } from "./index5.js";
|
|
3
|
+
import { useId as n } from "./index12.js";
|
|
4
|
+
import { useLogger as r } from "./index31.js";
|
|
5
|
+
import i from "./index36.js";
|
|
6
|
+
import { useLocale as ee } from "./index42.js";
|
|
7
|
+
import { hash as a } from "./index81.js";
|
|
8
|
+
import { require_dayjs_min as o } from "./index101.js";
|
|
9
|
+
import { require_isSameOrAfter as s } from "./index102.js";
|
|
10
|
+
import { require_isSameOrBefore as c } from "./index103.js";
|
|
11
|
+
import { require_weekOfYear as l } from "./index104.js";
|
|
12
|
+
import { last as te } from "./index105.js";
|
|
13
|
+
import { validateDateFormat as u } from "./index106.js";
|
|
14
|
+
import d from "./index116.js";
|
|
15
|
+
import f from "./index118.js";
|
|
16
|
+
import p from "./index120.js";
|
|
17
|
+
import m from "./index122.js";
|
|
18
|
+
import h from "./index125.js";
|
|
19
|
+
import { computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, defineComponent as w, guardReactiveProps as T, normalizeProps as ne, openBlock as E, ref as D, renderList as re, renderSlot as O, toDisplayString as k, unref as A, watch as j, withCtx as M } from "vue";
|
|
20
|
+
//#region src/components/BaseDatePicker/BaseDatePicker.vue?vue&type=script&setup=true&lang.ts
|
|
21
|
+
var N = /* @__PURE__ */ e(o(), 1), P = /* @__PURE__ */ e(s(), 1), F = /* @__PURE__ */ e(c(), 1), I = /* @__PURE__ */ e(l(), 1), L = { class: "bb-base-date-picker" }, R = { class: "bb-base-date-picker__body" }, z = { class: "bb-base-date-picker__controls" }, B = { class: "sr-only" }, V = { class: "sr-only" }, H = { class: "sr-only" }, U = {
|
|
22
|
+
style: { transform: "rotate(180deg)" },
|
|
23
|
+
viewBox: "0 0 24 24",
|
|
24
|
+
width: "24px",
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
26
|
+
}, ie = { class: "sr-only" }, W = { class: "bb-base-date-picker__content" }, G = ["id"], K = /* @__PURE__ */ w({
|
|
27
|
+
__name: "BaseDatePicker",
|
|
28
|
+
props: {
|
|
29
|
+
disabled: { type: Boolean },
|
|
30
|
+
firstDayOfWeek: { default: 1 },
|
|
31
|
+
floating: { type: Boolean },
|
|
32
|
+
id: {},
|
|
33
|
+
header: { type: Boolean },
|
|
34
|
+
max: {},
|
|
35
|
+
min: {},
|
|
36
|
+
modelValue: {},
|
|
37
|
+
multiple: { type: Boolean },
|
|
38
|
+
range: { type: Boolean },
|
|
39
|
+
readonly: { type: Boolean },
|
|
40
|
+
selectable: {}
|
|
41
|
+
},
|
|
42
|
+
emits: ["update:modelValue"],
|
|
43
|
+
setup(e, { expose: o, emit: s }) {
|
|
44
|
+
N.default.extend(I.default), N.default.extend(P.default), N.default.extend(F.default);
|
|
45
|
+
let c = s, l = e, { t: w } = ee(), K = l.id || n().id, q = r();
|
|
46
|
+
l.multiple && l.range && q.throw("Date picker cannot be both multiple and range."), (l.multiple || l.range) && (Array.isArray(l.modelValue) || q.throw("Date picker is set to select multiple dates but modelValue is not an array.")), l.min && u(l.min, "Min"), l.max && u(l.max, "Max");
|
|
47
|
+
let J = D((0, N.default)()), Y = (e) => {
|
|
48
|
+
if (!e) {
|
|
49
|
+
J.value = (0, N.default)().startOf("day");
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (Array.isArray(e)) {
|
|
53
|
+
if (e.length === 0) {
|
|
54
|
+
J.value = (0, N.default)().startOf("day");
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
let t = e.map((e) => (0, N.default)(e).valueOf()), n = J.value.valueOf();
|
|
58
|
+
if (t.includes(n)) return;
|
|
59
|
+
J.value = (0, N.default)(te(e)).startOf("day");
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
J.value = (0, N.default)(e).startOf("day");
|
|
63
|
+
};
|
|
64
|
+
Y(l.modelValue);
|
|
65
|
+
let X = D("day"), Z = (e) => {
|
|
66
|
+
X.value === e ? X.value = "day" : X.value = e;
|
|
67
|
+
}, ae = g(() => J.value.locale(t.locale).format("MMMM YYYY")), oe = g(() => X.value === "month" ? "Selecting month" : X.value === "year" ? "Selecting year" : ""), se = (e) => {
|
|
68
|
+
J.value = J.value.set("month", e);
|
|
69
|
+
}, ce = () => {
|
|
70
|
+
J.value = J.value.add(1, "month");
|
|
71
|
+
}, le = () => {
|
|
72
|
+
J.value = J.value.subtract(1, "month");
|
|
73
|
+
}, ue = (e) => {
|
|
74
|
+
J.value = J.value.set("year", e);
|
|
75
|
+
}, Q = (e) => {
|
|
76
|
+
se(e), X.value = "day";
|
|
77
|
+
}, de = (e) => {
|
|
78
|
+
ue(e), X.value = "day";
|
|
79
|
+
}, fe = (e) => {
|
|
80
|
+
J.value = e;
|
|
81
|
+
}, $ = D(l.modelValue), pe = (e) => {
|
|
82
|
+
$.value = e, c("update:modelValue", e);
|
|
83
|
+
};
|
|
84
|
+
return j(() => l.modelValue, () => {
|
|
85
|
+
a(l.modelValue) !== a($.value) && ($.value = l.modelValue, Y(l.modelValue));
|
|
86
|
+
}), o({ resetStatus: () => {
|
|
87
|
+
X.value = "day";
|
|
88
|
+
} }), (e, t) => (E(), y("div", L, [
|
|
89
|
+
C(f, {
|
|
90
|
+
cursor: J.value,
|
|
91
|
+
disabled: e.disabled,
|
|
92
|
+
hidden: !e.header
|
|
93
|
+
}, null, 8, [
|
|
94
|
+
"cursor",
|
|
95
|
+
"disabled",
|
|
96
|
+
"hidden"
|
|
97
|
+
]),
|
|
98
|
+
b("div", R, [b("div", z, [
|
|
99
|
+
C(A(i), {
|
|
100
|
+
"aria-expanded": X.value === "month",
|
|
101
|
+
"aria-label": "Select month",
|
|
102
|
+
class: "bb-base-date-picker__control bb-base-date-picker__month-control",
|
|
103
|
+
disabled: e.disabled,
|
|
104
|
+
onClick: t[0] ||= (e) => Z("month")
|
|
105
|
+
}, {
|
|
106
|
+
default: M(() => [S(k(ae.value) + " ", 1), b("span", B, k(A(w)("datePicker.monthLabel")), 1)]),
|
|
107
|
+
_: 1
|
|
108
|
+
}, 8, ["aria-expanded", "disabled"]),
|
|
109
|
+
C(A(i), {
|
|
110
|
+
"aria-expanded": X.value === "year",
|
|
111
|
+
"aria-label": "Select year",
|
|
112
|
+
class: "bb-base-date-picker__control bb-base-date-picker__year-control",
|
|
113
|
+
disabled: e.disabled,
|
|
114
|
+
onClick: t[1] ||= (e) => Z("year")
|
|
115
|
+
}, {
|
|
116
|
+
default: M(() => [t[2] ||= b("svg", {
|
|
117
|
+
fill: "none",
|
|
118
|
+
height: "6",
|
|
119
|
+
viewBox: "0 0 10 6",
|
|
120
|
+
width: "10",
|
|
121
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
122
|
+
}, [b("path", {
|
|
123
|
+
d: "M5.24124 5.81871L9.52771 1.39839C9.79517 1.12257 9.63305 0.595276 9.28077 0.595276H0.707839C0.355562 0.595276 0.193433 1.12257 0.460901 1.39839L4.74736 5.81871C4.88946 5.96524 5.09914 5.96524 5.24124 5.81871Z",
|
|
124
|
+
fill: "currentColor"
|
|
125
|
+
})], -1), b("span", V, k(A(w)("datePicker.yearLabel")), 1)]),
|
|
126
|
+
_: 1
|
|
127
|
+
}, 8, ["aria-expanded", "disabled"]),
|
|
128
|
+
C(A(i), {
|
|
129
|
+
"aria-label": A(w)("datePicker.previousMonthLabel"),
|
|
130
|
+
class: "bb-base-date-picker__control",
|
|
131
|
+
disabled: e.disabled || X.value !== "day",
|
|
132
|
+
onClick: le
|
|
133
|
+
}, {
|
|
134
|
+
default: M(() => [t[3] ||= b("svg", {
|
|
135
|
+
viewBox: "0 0 24 24",
|
|
136
|
+
width: "24px",
|
|
137
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
138
|
+
}, [b("path", {
|
|
139
|
+
d: "M13.939 4.939 6.879 12l7.06 7.061 2.122-2.122L11.121 12l4.94-4.939z",
|
|
140
|
+
fill: "currentColor"
|
|
141
|
+
})], -1), b("span", H, k(A(w)("datePicker.previousMonthLabel")), 1)]),
|
|
142
|
+
_: 1
|
|
143
|
+
}, 8, ["aria-label", "disabled"]),
|
|
144
|
+
C(A(i), {
|
|
145
|
+
"aria-label": A(w)("datePicker.nextMonthLabel"),
|
|
146
|
+
class: "bb-base-date-picker__control",
|
|
147
|
+
disabled: e.disabled || X.value !== "day",
|
|
148
|
+
onClick: ce
|
|
149
|
+
}, {
|
|
150
|
+
default: M(() => [(E(), y("svg", U, t[4] ||= [b("path", {
|
|
151
|
+
d: "M13.939 4.939 6.879 12l7.06 7.061 2.122-2.122L11.121 12l4.94-4.939z",
|
|
152
|
+
fill: "currentColor"
|
|
153
|
+
}, null, -1)])), b("span", ie, k(A(w)("datePicker.nextMonthLabel")), 1)]),
|
|
154
|
+
_: 1
|
|
155
|
+
}, 8, ["aria-label", "disabled"])
|
|
156
|
+
]), b("div", W, [
|
|
157
|
+
C(d, {
|
|
158
|
+
id: A(K),
|
|
159
|
+
current: X.value === "day",
|
|
160
|
+
cursor: J.value,
|
|
161
|
+
disabled: e.disabled,
|
|
162
|
+
"first-day-of-week": e.firstDayOfWeek,
|
|
163
|
+
floating: e.floating,
|
|
164
|
+
inert: X.value !== "day",
|
|
165
|
+
max: e.max,
|
|
166
|
+
min: e.min,
|
|
167
|
+
"model-value": e.modelValue,
|
|
168
|
+
multiple: e.multiple,
|
|
169
|
+
range: e.range,
|
|
170
|
+
readonly: e.readonly,
|
|
171
|
+
selectable: e.selectable,
|
|
172
|
+
"onUpdate:cursor": fe,
|
|
173
|
+
"onUpdate:modelValue": pe
|
|
174
|
+
}, x({ _: 2 }, [re(e.$slots, (t, n) => ({
|
|
175
|
+
name: n,
|
|
176
|
+
fn: M((t) => [O(e.$slots, n, ne(T(t)))])
|
|
177
|
+
}))]), 1032, [
|
|
178
|
+
"id",
|
|
179
|
+
"current",
|
|
180
|
+
"cursor",
|
|
181
|
+
"disabled",
|
|
182
|
+
"first-day-of-week",
|
|
183
|
+
"floating",
|
|
184
|
+
"inert",
|
|
185
|
+
"max",
|
|
186
|
+
"min",
|
|
187
|
+
"model-value",
|
|
188
|
+
"multiple",
|
|
189
|
+
"range",
|
|
190
|
+
"readonly",
|
|
191
|
+
"selectable"
|
|
192
|
+
]),
|
|
193
|
+
C(m, { duration: 200 }, {
|
|
194
|
+
default: M(() => [X.value === "month" ? (E(), _(p, {
|
|
195
|
+
key: 0,
|
|
196
|
+
cursor: J.value,
|
|
197
|
+
disabled: e.disabled,
|
|
198
|
+
"onUpdate:month": Q
|
|
199
|
+
}, null, 8, ["cursor", "disabled"])) : v("", !0)]),
|
|
200
|
+
_: 1
|
|
201
|
+
}),
|
|
202
|
+
C(m, { duration: 200 }, {
|
|
203
|
+
default: M(() => [X.value === "year" ? (E(), _(h, {
|
|
204
|
+
key: 0,
|
|
205
|
+
cursor: J.value,
|
|
206
|
+
disabled: e.disabled,
|
|
207
|
+
"onUpdate:year": de
|
|
208
|
+
}, null, 8, ["cursor", "disabled"])) : v("", !0)]),
|
|
209
|
+
_: 1
|
|
210
|
+
})
|
|
211
|
+
])]),
|
|
212
|
+
b("div", {
|
|
213
|
+
id: `${A(K)}-status`,
|
|
214
|
+
"aria-atomic": "true",
|
|
215
|
+
"aria-live": "polite",
|
|
216
|
+
class: "sr-only",
|
|
217
|
+
role: "status"
|
|
218
|
+
}, k(oe.value), 9, G)
|
|
219
|
+
]));
|
|
220
|
+
}
|
|
552
221
|
});
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
};
|
|
222
|
+
//#endregion
|
|
223
|
+
export { K as default };
|