bitboss-ui 2.1.135 → 2.1.136
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/BaseDialog.md +20 -1
- package/dist/ai/BbOffCanvas.md +20 -1
- package/dist/ai/BbToast.md +54 -10
- package/dist/components/BaseButton/BaseButton.vue.d.ts +10 -5
- package/dist/components/BaseButton/RouterComponent.vue.d.ts +15 -12
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +24 -10
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +17 -22
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +205 -6
- package/dist/components/BaseColorInput/ColorPalette.vue.d.ts +10 -3
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +11 -6
- package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +2 -3
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +35 -27
- package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +2 -3
- package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +4 -3
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +345 -6
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +22 -8
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +15 -6
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +15 -6
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +11 -6
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +17 -22
- package/dist/components/BaseRating/BaseRating.vue.d.ts +15 -6
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +15 -20
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +21 -6
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +15 -6
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +17 -22
- package/dist/components/BaseTag/BaseTag.vue.d.ts +353 -6
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +15 -6
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +15 -6
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +11 -6
- package/dist/components/BbAlert/BbAlert.vue.d.ts +10 -5
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +15 -6
- package/dist/components/BbBadge/BbBadge.vue.d.ts +10 -5
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +34 -7
- package/dist/components/BbButton/BbButton.vue.d.ts +11 -7
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +11 -6
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +17 -22
- package/dist/components/BbChip/BbChip.vue.d.ts +11 -6
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +10 -5
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +16 -7
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +77 -6
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +1 -2
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +29 -14
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +11 -6
- package/dist/components/BbDialog/BbDialog.vue.d.ts +12 -8
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +232 -7
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +30 -7
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +15 -6
- package/dist/components/BbIcon/BbIcon.vue.d.ts +2 -3
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +15 -6
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +284 -7
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +22 -8
- package/dist/components/BbPagination/BbPagination.vue.d.ts +18 -8
- package/dist/components/BbPopover/BbPopover.vue.d.ts +217 -8
- package/dist/components/BbProgress/BbProgress.vue.d.ts +2 -3
- package/dist/components/BbRadio/BbRadio.vue.d.ts +11 -6
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +17 -22
- package/dist/components/BbRating/BbRating.vue.d.ts +16 -7
- package/dist/components/BbRatio/BbRatio.vue.d.ts +10 -5
- package/dist/components/BbRows/BbRows.vue.d.ts +49 -14
- package/dist/components/BbSelect/BbSelect.vue.d.ts +15 -20
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +15 -20
- package/dist/components/BbSlider/BbSlider.vue.d.ts +16 -7
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +17 -6
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +2 -3
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +11 -6
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +17 -22
- package/dist/components/BbTab/BbTab.vue.d.ts +18 -15
- package/dist/components/BbTable/BbTable.vue.d.ts +83 -25
- package/dist/components/BbTag/BbTag.vue.d.ts +11 -6
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +16 -7
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +16 -7
- package/dist/components/BbToast/BbToast.vue.d.ts +4 -3
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +2 -3
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +216 -8
- package/dist/components/BbTree/BbTree.vue.d.ts +10 -5
- package/dist/components/ChipsBox/ChipsBox.vue.d.ts +1 -2
- package/dist/components/ClearableButton/ClearableButton.vue.d.ts +1 -2
- package/dist/components/CommaBox/CommaBox.vue.d.ts +1 -2
- package/dist/components/CommonInputInnerContainer/CommonInputInnerContainer.vue.d.ts +15 -6
- package/dist/components/CommonInputOuterContainer/CommonInputOuterContainer.vue.d.ts +10 -5
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +18 -8
- package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +1 -2
- package/dist/components/FlatListBox/FlatListBox.vue.d.ts +11 -16
- package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +11 -16
- package/dist/components/ListBox/ListBox.vue.d.ts +11 -16
- package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +6 -11
- package/dist/components/Transitions/ScaleFade.vue.d.ts +15 -7
- package/dist/components/Transitions/Slide.vue.d.ts +15 -7
- package/dist/composables/useTopLayer.d.ts +4 -0
- package/dist/index.css +1 -2
- package/dist/index.js +226 -80
- package/dist/index10.js +81 -4
- package/dist/index101.js +94 -300
- package/dist/index103.js +136 -16
- package/dist/index105.js +102 -4
- package/dist/index107.js +24 -9
- package/dist/index109.js +142 -19
- package/dist/index11.js +39 -41
- package/dist/index110.js +532 -12
- package/dist/index112.js +190 -24
- package/dist/index114.js +116 -7
- package/dist/index116.js +58 -5
- package/dist/index118.js +40 -5
- package/dist/index12.js +41 -10
- package/dist/index120.js +100 -5
- package/dist/index122.js +137 -5
- package/dist/index124.js +368 -51
- package/dist/index126.js +809 -222
- package/dist/index128.js +124 -6
- package/dist/index13.js +185 -92
- package/dist/index130.js +118 -25
- package/dist/index132.js +126 -5
- package/dist/index134.js +44 -0
- package/dist/index136.js +155 -13
- package/dist/index138.js +122 -0
- package/dist/index14.js +128 -306
- package/dist/index140.js +32 -224
- package/dist/index141.js +29 -5
- package/dist/index142.js +71 -4
- package/dist/index144.js +14 -0
- package/dist/index146.js +12 -7
- package/dist/index147.js +4 -182
- package/dist/index148.js +421 -0
- package/dist/index149.js +11 -6
- package/dist/index150.js +10 -5
- package/dist/index151.js +27 -4
- package/dist/index152.js +4 -95
- package/dist/index153.js +7 -0
- package/dist/index154.js +8 -6
- package/dist/index155.js +7 -168
- package/dist/index156.js +5 -0
- package/dist/index157.js +5 -6
- package/dist/index158.js +5 -145
- package/dist/index159.js +5 -0
- package/dist/index16.js +152 -58
- package/dist/index160.js +5 -6
- package/dist/index161.js +5 -53
- package/dist/index162.js +5 -0
- package/dist/index163.js +5 -6
- package/dist/index164.js +4 -15
- package/dist/index165.js +4 -18
- package/dist/index166.js +5 -35
- package/dist/index167.js +5 -0
- package/dist/index168.js +5 -6
- package/dist/index169.js +5 -89
- package/dist/index170.js +5 -0
- package/dist/index171.js +5 -6
- package/dist/index172.js +5 -82
- package/dist/index173.js +5 -0
- package/dist/index174.js +5 -6
- package/dist/index175.js +4 -37
- package/dist/index176.js +4 -460
- package/dist/index177.js +5 -28
- package/dist/index178.js +5 -66
- package/dist/index179.js +5 -17
- package/dist/index18.js +138 -34
- package/dist/index180.js +5 -162
- package/dist/index181.js +5 -5
- package/dist/index182.js +5 -217
- package/dist/index183.js +5 -5
- package/dist/index184.js +5 -112
- package/dist/index185.js +5 -5
- package/dist/index186.js +4 -459
- package/dist/index187.js +5 -0
- package/dist/index188.js +4 -6
- package/dist/index189.js +5 -4
- package/dist/index190.js +4 -7
- package/dist/index191.js +5 -7
- package/dist/index192.js +5 -268
- package/dist/index193.js +5 -0
- package/dist/index194.js +5 -6
- package/dist/index195.js +4 -124
- package/dist/index196.js +5 -0
- package/dist/index197.js +5 -6
- package/dist/index198.js +5 -174
- package/dist/index199.js +5 -0
- package/dist/index20.js +195 -8
- package/dist/index200.js +4 -5
- package/dist/index201.js +5 -224
- package/dist/index202.js +5 -0
- package/dist/index203.js +4 -5
- package/dist/index204.js +5 -135
- package/dist/index205.js +4 -0
- package/dist/index206.js +4 -5
- package/dist/index207.js +5 -5
- package/dist/index208.js +5 -170
- package/dist/index209.js +5 -0
- package/dist/index210.js +4 -5
- package/dist/index211.js +5 -37
- package/dist/index212.js +5 -0
- package/dist/index213.js +4 -5
- package/dist/index214.js +5 -63
- package/dist/index215.js +5 -0
- package/dist/index216.js +4 -5
- package/dist/index217.js +5 -74
- package/dist/index218.js +5 -0
- package/dist/index219.js +4 -5
- package/dist/index22.js +245 -6
- package/dist/index220.js +5 -65
- package/dist/index221.js +46 -0
- package/dist/index222.js +4 -5
- package/dist/index223.js +5 -67
- package/dist/index224.js +140 -0
- package/dist/index225.js +4 -6
- package/dist/index226.js +4 -41
- package/dist/index227.js +7 -0
- package/dist/index228.js +10 -6
- package/dist/index229.js +87 -9
- package/dist/index231.js +31 -23
- package/dist/index232.js +18 -7
- package/dist/index233.js +53 -297
- package/dist/index234.js +20 -0
- package/dist/index235.js +5 -6
- package/dist/index236.js +14 -47
- package/dist/index237.js +20 -165
- package/dist/index238.js +10 -0
- package/dist/index239.js +6 -6
- package/dist/index24.js +616 -9
- package/dist/index240.js +14 -10
- package/dist/index241.js +22 -159
- package/dist/index242.js +36 -0
- package/dist/index243.js +4 -6
- package/dist/index244.js +4 -134
- package/dist/index245.js +5 -0
- package/dist/index246.js +7 -6
- package/dist/index247.js +7 -167
- package/dist/index248.js +7 -0
- package/dist/index249.js +7 -6
- package/dist/index250.js +7 -147
- package/dist/index251.js +7 -0
- package/dist/index252.js +5 -6
- package/dist/index253.js +161 -34
- package/dist/index255.js +7 -6
- package/dist/index256.js +4 -65
- package/dist/index257.js +8 -0
- package/dist/index258.js +270 -6
- package/dist/index259.js +53 -18
- package/dist/index26.js +186 -4
- package/dist/index260.js +54 -5
- package/dist/index261.js +33 -159
- package/dist/index262.js +62 -0
- package/dist/index263.js +9 -6
- package/dist/index264.js +4 -60
- package/dist/index265.js +5 -0
- package/dist/index266.js +6 -6
- package/dist/index267.js +10 -133
- package/dist/index268.js +46 -0
- package/dist/index269.js +55 -6
- package/dist/index270.js +27 -12
- package/dist/index271.js +190 -206
- package/dist/index272.js +5 -0
- package/dist/index273.js +4 -6
- package/dist/index274.js +5 -85
- package/dist/index275.js +6 -5
- package/dist/index276.js +374 -54
- package/dist/index278.js +10 -164
- package/dist/index279.js +15 -0
- package/dist/index28.js +148 -8
- package/dist/index280.js +15 -6
- package/dist/index281.js +13 -145
- package/dist/index282.js +20 -0
- package/dist/index283.js +14 -6
- package/dist/index284.js +108 -11
- package/dist/index286.js +102 -0
- package/dist/index288.js +108 -240
- package/dist/index289.js +25 -0
- package/dist/index290.js +34 -5
- package/dist/index291.js +29 -20
- package/dist/index293.js +11 -6
- package/dist/index294.js +25 -125
- package/dist/index295.js +10 -0
- package/dist/index296.js +8 -6
- package/dist/index297.js +18 -161
- package/dist/index298.js +11 -0
- package/dist/index299.js +12 -6
- package/dist/index30.js +177 -117
- package/dist/index300.js +5 -127
- package/dist/index301.js +23 -0
- package/dist/index302.js +69 -6
- package/dist/index303.js +4 -20
- package/dist/index304.js +9 -0
- package/dist/index305.js +9 -6
- package/dist/index306.js +7 -115
- package/dist/index307.js +7 -5
- package/dist/index308.js +4 -507
- package/dist/index309.js +5 -0
- package/dist/index310.js +19 -6
- package/dist/index311.js +30 -196
- package/dist/index312.js +9 -0
- package/dist/index313.js +282 -6
- package/dist/index314.js +4 -142
- package/dist/index315.js +18 -0
- package/dist/index316.js +4 -6
- package/dist/index317.js +18 -134
- package/dist/index318.js +4 -0
- package/dist/index319.js +29 -6
- package/dist/index32.js +99 -27
- package/dist/index320.js +4 -162
- package/dist/index321.js +4 -0
- package/dist/index322.js +4 -6
- package/dist/index323.js +4 -319
- package/dist/index324.js +4 -0
- package/dist/index325.js +4 -6
- package/dist/index326.js +7 -40
- package/dist/index327.js +5 -42
- package/dist/index328.js +127 -665
- package/dist/index329.js +4 -0
- package/dist/index330.js +17 -6
- package/dist/index331.js +4 -155
- package/dist/index332.js +21 -0
- package/dist/index333.js +4 -6
- package/dist/index334.js +5 -142
- package/dist/index335.js +5 -0
- package/dist/index336.js +7 -6
- package/dist/index337.js +6 -155
- package/dist/index339.js +9 -6
- package/dist/index34.js +176 -111
- package/dist/index340.js +5 -58
- package/dist/index341.js +5 -5
- package/dist/index342.js +5 -20
- package/dist/index343.js +4 -0
- package/dist/index344.js +721 -6
- package/dist/index345.js +368 -142
- package/dist/index346.js +59 -0
- package/dist/index347.js +4 -6
- package/dist/index348.js +8 -4
- package/dist/index349.js +9 -109
- package/dist/index350.js +7 -0
- package/dist/index351.js +9 -6
- package/dist/index352.js +20 -54
- package/dist/index353.js +11 -24
- package/dist/index354.js +17 -23
- package/dist/index355.js +36 -838
- package/dist/index356.js +131 -473
- package/dist/index357.js +400 -51
- package/dist/index358.js +95 -7
- package/dist/index359.js +69 -0
- package/dist/index36.js +133 -6
- package/dist/index360.js +69 -0
- package/dist/index361.js +230 -0
- package/dist/index362.js +24 -0
- package/dist/index364.js +136 -0
- package/dist/index365.js +202 -0
- package/dist/index366.js +261 -0
- package/dist/index367.js +4 -0
- package/dist/index368.js +4 -0
- package/dist/index369.js +484 -0
- package/dist/index370.js +130 -0
- package/dist/index371.js +49 -0
- package/dist/index372.js +72 -0
- package/dist/index373.js +522 -0
- package/dist/index374.js +52 -0
- package/dist/index38.js +491 -62
- package/dist/index4.js +35 -0
- package/dist/index40.js +334 -8
- package/dist/index42.js +127 -8
- package/dist/index44.js +184 -20
- package/dist/index46.js +239 -384
- package/dist/index48.js +140 -6
- package/dist/index5.js +41 -34
- package/dist/index50.js +156 -11
- package/dist/index52.js +64 -105
- package/dist/index54.js +91 -97
- package/dist/index56.js +68 -27
- package/dist/index58.js +53 -156
- package/dist/index6.js +61 -37
- package/dist/index60.js +225 -5
- package/dist/index62.js +168 -5
- package/dist/index64.js +99 -7
- package/dist/index66.js +137 -25
- package/dist/index68.js +43 -6
- package/dist/index7.js +64 -58
- package/dist/index70.js +46 -0
- package/dist/index72.js +120 -13
- package/dist/index74.js +125 -6
- package/dist/index75.js +84 -158
- package/dist/index77.js +21 -6
- package/dist/index78.js +129 -4
- package/dist/index8.js +14 -4
- package/dist/index80.js +62 -54
- package/dist/index82.js +339 -5
- package/dist/index84.js +156 -0
- package/dist/index86.js +220 -64
- package/dist/index88.js +84 -6
- package/dist/index9.js +9 -10
- package/dist/index90.js +45 -18
- package/dist/index91.js +134 -17
- package/dist/index93.js +178 -33
- package/dist/index95.js +234 -15
- package/dist/index97.js +249 -17
- package/dist/index99.js +33 -0
- package/package.json +2 -2
- package/dist/index100.js +0 -6
- package/dist/index102.js +0 -16
- package/dist/index104.js +0 -27
- package/dist/index106.js +0 -7
- package/dist/index108.js +0 -4
- package/dist/index111.js +0 -19
- package/dist/index115.js +0 -241
- package/dist/index117.js +0 -42
- package/dist/index119.js +0 -53
- package/dist/index121.js +0 -32
- package/dist/index123.js +0 -8
- package/dist/index125.js +0 -5
- package/dist/index129.js +0 -162
- package/dist/index131.js +0 -51
- package/dist/index133.js +0 -607
- package/dist/index135.js +0 -6
- package/dist/index137.js +0 -153
- package/dist/index139.js +0 -6
- package/dist/index143.js +0 -128
- package/dist/index145.js +0 -6
- package/dist/index15.js +0 -10
- package/dist/index17.js +0 -11
- package/dist/index19.js +0 -4
- package/dist/index2.js +0 -20
- package/dist/index21.js +0 -35
- package/dist/index23.js +0 -7
- package/dist/index230.js +0 -22
- package/dist/index25.js +0 -24
- package/dist/index27.js +0 -4
- package/dist/index277.js +0 -5
- package/dist/index285.js +0 -200
- package/dist/index287.js +0 -6
- package/dist/index29.js +0 -7
- package/dist/index31.js +0 -10
- package/dist/index33.js +0 -5
- package/dist/index37.js +0 -6
- package/dist/index39.js +0 -63
- package/dist/index41.js +0 -9
- package/dist/index43.js +0 -179
- package/dist/index45.js +0 -6
- package/dist/index49.js +0 -33
- package/dist/index51.js +0 -8
- package/dist/index53.js +0 -330
- package/dist/index55.js +0 -328
- package/dist/index57.js +0 -102
- package/dist/index61.js +0 -131
- package/dist/index65.js +0 -35
- package/dist/index69.js +0 -54
- package/dist/index71.js +0 -6
- package/dist/index79.js +0 -4
- package/dist/index81.js +0 -5
- package/dist/index83.js +0 -141
- package/dist/index85.js +0 -6
- package/dist/index89.js +0 -30
- package/dist/index92.js +0 -9
- package/dist/index94.js +0 -4
- package/dist/index96.js +0 -10
- package/dist/index98.js +0 -189
package/dist/index261.js
CHANGED
|
@@ -1,160 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
min: {},
|
|
32
|
-
modelValue: {},
|
|
33
|
-
name: {},
|
|
34
|
-
persistentHint: { type: Boolean },
|
|
35
|
-
placeholder: {},
|
|
36
|
-
"prepend:icon": {},
|
|
37
|
-
range: { type: Boolean },
|
|
38
|
-
readonly: { type: Boolean },
|
|
39
|
-
required: { type: Boolean },
|
|
40
|
-
reverse: { type: Boolean },
|
|
41
|
-
selectable: {},
|
|
42
|
-
width: {}
|
|
43
|
-
},
|
|
44
|
-
emits: [
|
|
45
|
-
"active",
|
|
46
|
-
"error",
|
|
47
|
-
"focus",
|
|
48
|
-
"inactive",
|
|
49
|
-
"update:modelValue"
|
|
50
|
-
],
|
|
51
|
-
setup(a, { emit: p }) {
|
|
52
|
-
let m = a, h = p, g = u(!1), _ = n(() => m.persistentHint || g.value), v = {
|
|
53
|
-
onError: (e) => h("error", e),
|
|
54
|
-
onFocus: (e) => h("focus", e),
|
|
55
|
-
onActive: () => {
|
|
56
|
-
g.value = !0, h("active");
|
|
57
|
-
},
|
|
58
|
-
onInactive: () => {
|
|
59
|
-
g.value = !1, h("inactive");
|
|
60
|
-
},
|
|
61
|
-
"onUpdate:modelValue": (e) => h("update:modelValue", e)
|
|
62
|
-
};
|
|
63
|
-
return (n, a) => (l(), r(t, {
|
|
64
|
-
id: n.id,
|
|
65
|
-
class: "bb-date-picker-input",
|
|
66
|
-
compact: n.compact,
|
|
67
|
-
direction: n.direction,
|
|
68
|
-
errors: n.errors,
|
|
69
|
-
"has-errors": n.hasErrors,
|
|
70
|
-
"hide-label": n.hideLabel,
|
|
71
|
-
hint: n.hint,
|
|
72
|
-
label: n.label,
|
|
73
|
-
"label-position": n.labelPosition,
|
|
74
|
-
"model-value": n.modelValue,
|
|
75
|
-
name: n.name,
|
|
76
|
-
reverse: n.reverse,
|
|
77
|
-
"show-hint": _.value
|
|
78
|
-
}, {
|
|
79
|
-
label: f((e) => [d(n.$slots, "label", c(o(e)))]),
|
|
80
|
-
input: f(({ id: t, hasErrors: r, ariaDescribedby: a }) => [i(e, s({
|
|
81
|
-
id: t,
|
|
82
|
-
"allow-writing": n.allowWriting,
|
|
83
|
-
"append:icon": n.$props["append:icon"],
|
|
84
|
-
"aria-describedby": a,
|
|
85
|
-
autocomplete: n.autocomplete,
|
|
86
|
-
autofocus: n.autofocus,
|
|
87
|
-
clearable: n.clearable,
|
|
88
|
-
compact: n.compact,
|
|
89
|
-
disabled: n.disabled,
|
|
90
|
-
"first-day-of-week": n.firstDayOfWeek,
|
|
91
|
-
floating: n.floating,
|
|
92
|
-
"has-errors": r,
|
|
93
|
-
"hide-popover": n.hidePopover,
|
|
94
|
-
loading: n.loading,
|
|
95
|
-
max: n.max,
|
|
96
|
-
min: n.min,
|
|
97
|
-
"model-value": n.modelValue,
|
|
98
|
-
name: n.name,
|
|
99
|
-
placeholder: n.placeholder,
|
|
100
|
-
"prepend:icon": n.$props["prepend:icon"],
|
|
101
|
-
range: n.range,
|
|
102
|
-
readonly: n.readonly,
|
|
103
|
-
required: n.required,
|
|
104
|
-
selectable: n.selectable,
|
|
105
|
-
width: n.width
|
|
106
|
-
}, v), {
|
|
107
|
-
"prepend-outer": f(() => [d(n.$slots, "prepend-outer")]),
|
|
108
|
-
prepend: f(() => [d(n.$slots, "prepend")]),
|
|
109
|
-
prefix: f(() => [d(n.$slots, "prefix")]),
|
|
110
|
-
suffix: f(() => [d(n.$slots, "suffix")]),
|
|
111
|
-
append: f(() => [d(n.$slots, "append")]),
|
|
112
|
-
"append-outer": f(() => [d(n.$slots, "append-outer")]),
|
|
113
|
-
_: 2
|
|
114
|
-
}, 1040, [
|
|
115
|
-
"id",
|
|
116
|
-
"allow-writing",
|
|
117
|
-
"append:icon",
|
|
118
|
-
"aria-describedby",
|
|
119
|
-
"autocomplete",
|
|
120
|
-
"autofocus",
|
|
121
|
-
"clearable",
|
|
122
|
-
"compact",
|
|
123
|
-
"disabled",
|
|
124
|
-
"first-day-of-week",
|
|
125
|
-
"floating",
|
|
126
|
-
"has-errors",
|
|
127
|
-
"hide-popover",
|
|
128
|
-
"loading",
|
|
129
|
-
"max",
|
|
130
|
-
"min",
|
|
131
|
-
"model-value",
|
|
132
|
-
"name",
|
|
133
|
-
"placeholder",
|
|
134
|
-
"prepend:icon",
|
|
135
|
-
"range",
|
|
136
|
-
"readonly",
|
|
137
|
-
"required",
|
|
138
|
-
"selectable",
|
|
139
|
-
"width"
|
|
140
|
-
])]),
|
|
141
|
-
_: 3
|
|
142
|
-
}, 8, [
|
|
143
|
-
"id",
|
|
144
|
-
"compact",
|
|
145
|
-
"direction",
|
|
146
|
-
"errors",
|
|
147
|
-
"has-errors",
|
|
148
|
-
"hide-label",
|
|
149
|
-
"hint",
|
|
150
|
-
"label",
|
|
151
|
-
"label-position",
|
|
152
|
-
"model-value",
|
|
153
|
-
"name",
|
|
154
|
-
"reverse",
|
|
155
|
-
"show-hint"
|
|
156
|
-
]));
|
|
157
|
-
}
|
|
1
|
+
import { defineComponent as c, createBlock as l, openBlock as m, Transition as u, withCtx as f, renderSlot as d } from "vue";
|
|
2
|
+
const y = /* @__PURE__ */ c({
|
|
3
|
+
__name: "ScaleFade",
|
|
4
|
+
props: {
|
|
5
|
+
duration: { default: 200 },
|
|
6
|
+
scaleFrom: { default: 0.97 }
|
|
7
|
+
},
|
|
8
|
+
setup(n) {
|
|
9
|
+
const t = n, a = (s) => {
|
|
10
|
+
const e = s;
|
|
11
|
+
e.style.opacity = "0", e.style.transform = `scale(${t.scaleFrom})`, e.style.transformOrigin = "center top";
|
|
12
|
+
}, r = (s, e) => {
|
|
13
|
+
const o = s;
|
|
14
|
+
o.style.transition = `opacity ${t.duration}ms ease-out, transform ${t.duration}ms cubic-bezier(0.34, 1.56, 0.64, 1)`, o.offsetHeight, o.style.opacity = "1", o.style.transform = "scale(1)", setTimeout(e, t.duration);
|
|
15
|
+
}, i = (s, e) => {
|
|
16
|
+
const o = s;
|
|
17
|
+
o.style.transition = `opacity ${t.duration}ms ease-in, transform ${t.duration}ms ease-in`, o.style.opacity = "0", o.style.transform = `scale(${t.scaleFrom})`, setTimeout(e, t.duration);
|
|
18
|
+
};
|
|
19
|
+
return (s, e) => (m(), l(u, {
|
|
20
|
+
css: !1,
|
|
21
|
+
onBeforeEnter: a,
|
|
22
|
+
onEnter: r,
|
|
23
|
+
onLeave: i
|
|
24
|
+
}, {
|
|
25
|
+
default: f(() => [
|
|
26
|
+
d(s.$slots, "default")
|
|
27
|
+
]),
|
|
28
|
+
_: 3
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
158
31
|
});
|
|
159
|
-
|
|
160
|
-
|
|
32
|
+
export {
|
|
33
|
+
y as default
|
|
34
|
+
};
|
package/dist/index262.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent as g, ref as i, computed as d, onMounted as h, createElementBlock as m, openBlock as u, createElementVNode as y, Fragment as x, renderList as B, createBlock as C, normalizeClass as S, withCtx as T, createTextVNode as E, toDisplayString as w } from "vue";
|
|
2
|
+
import { range as H } from "./index349.js";
|
|
3
|
+
import M from "./index14.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
const n = 10, l = 3, V = /* @__PURE__ */ g({
|
|
6
|
+
__name: "BaseDatePickerYearSelector",
|
|
7
|
+
props: {
|
|
8
|
+
cursor: {},
|
|
9
|
+
disabled: { type: Boolean }
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:year"],
|
|
12
|
+
setup(p, { emit: _ }) {
|
|
13
|
+
const f = p, b = _, o = i(), r = d(() => f.cursor.year()), c = i(r.value - n * l), s = i(r.value + n * l), v = d(
|
|
14
|
+
() => H(c.value, s.value).map((e) => ({
|
|
15
|
+
text: e,
|
|
16
|
+
key: e,
|
|
17
|
+
selected: e === r.value,
|
|
18
|
+
handler: () => b("update:year", e)
|
|
19
|
+
}))
|
|
20
|
+
), k = (e) => {
|
|
21
|
+
const t = e.target;
|
|
22
|
+
t.scrollTop <= 100 ? c.value = Math.max(
|
|
23
|
+
c.value - n * l,
|
|
24
|
+
r.value - 200
|
|
25
|
+
) : t.scrollHeight - t.scrollTop === t.clientHeight && (s.value = Math.min(s.value + n * l, 2101));
|
|
26
|
+
};
|
|
27
|
+
return h(() => {
|
|
28
|
+
if (!o.value) return;
|
|
29
|
+
const e = o.value.querySelector(
|
|
30
|
+
".content__btn--selected"
|
|
31
|
+
);
|
|
32
|
+
e && (e.parentElement.scrollTop = e.offsetTop - e.parentElement.clientHeight / 2 + 16);
|
|
33
|
+
}), (e, t) => (u(), m("div", {
|
|
34
|
+
ref_key: "container",
|
|
35
|
+
ref: o,
|
|
36
|
+
class: "bb-base-date-picker__button-menu bb-base-date-picker__year-selector scrollbar-border"
|
|
37
|
+
}, [
|
|
38
|
+
y("div", {
|
|
39
|
+
class: "content",
|
|
40
|
+
onScrollPassive: k
|
|
41
|
+
}, [
|
|
42
|
+
(u(!0), m(x, null, B(v.value, (a) => (u(), C(M, {
|
|
43
|
+
key: a.key,
|
|
44
|
+
class: S({
|
|
45
|
+
content__btn: !0,
|
|
46
|
+
"content__btn--selected": a.selected
|
|
47
|
+
}),
|
|
48
|
+
disabled: e.disabled,
|
|
49
|
+
onClick: a.handler
|
|
50
|
+
}, {
|
|
51
|
+
default: T(() => [
|
|
52
|
+
E(w(a.text), 1)
|
|
53
|
+
]),
|
|
54
|
+
_: 2
|
|
55
|
+
}, 1032, ["class", "disabled", "onClick"]))), 128))
|
|
56
|
+
], 32)
|
|
57
|
+
], 512));
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
V as default
|
|
62
|
+
};
|
package/dist/index263.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
const s = (r, t) => {
|
|
2
|
+
if (r.endsWith("."))
|
|
3
|
+
return t === 0 ? r.slice(0, -1) : r;
|
|
4
|
+
const [n, i] = r.split(".");
|
|
5
|
+
return i ? `${n}.${i.slice(0, t)}` : r;
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
s as clampPrecision
|
|
9
|
+
};
|
package/dist/index264.js
CHANGED
|
@@ -1,60 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
__name: "BbDialog",
|
|
6
|
-
props: /* @__PURE__ */ i({
|
|
7
|
-
closeLabel: {},
|
|
8
|
-
compact: { type: Boolean },
|
|
9
|
-
description: {},
|
|
10
|
-
disabled: { type: Boolean },
|
|
11
|
-
eager: { type: Boolean },
|
|
12
|
-
focusTarget: {},
|
|
13
|
-
fullscreen: { type: [Boolean, String] },
|
|
14
|
-
hideHeader: { type: Boolean },
|
|
15
|
-
overlayClasses: {},
|
|
16
|
-
panelClasses: {},
|
|
17
|
-
persistent: { type: Boolean },
|
|
18
|
-
showClose: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: !0
|
|
21
|
-
},
|
|
22
|
-
size: {},
|
|
23
|
-
title: {},
|
|
24
|
-
transitionDuration: {}
|
|
25
|
-
}, {
|
|
26
|
-
modelValue: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !1
|
|
29
|
-
},
|
|
30
|
-
modelModifiers: {}
|
|
31
|
-
}),
|
|
32
|
-
emits: /* @__PURE__ */ i([
|
|
33
|
-
"show",
|
|
34
|
-
"hide",
|
|
35
|
-
"shown",
|
|
36
|
-
"hidden"
|
|
37
|
-
], ["update:modelValue"]),
|
|
38
|
-
setup(n, { emit: i }) {
|
|
39
|
-
let f = n, p = i, m = {
|
|
40
|
-
hide: () => p("hide"),
|
|
41
|
-
hidden: () => p("hidden"),
|
|
42
|
-
show: () => p("show"),
|
|
43
|
-
shown: () => p("shown")
|
|
44
|
-
}, h = u(n, "modelValue");
|
|
45
|
-
return (n, i) => (s(), t(e, a(f, {
|
|
46
|
-
modelValue: h.value,
|
|
47
|
-
"onUpdate:modelValue": i[0] ||= (e) => h.value = e
|
|
48
|
-
}, l(m)), {
|
|
49
|
-
close: d((e) => [c(n.$slots, "close", o(r(e)))]),
|
|
50
|
-
default: d((e) => [c(n.$slots, "default", o(r(e)))]),
|
|
51
|
-
description: d((e) => [c(n.$slots, "description", o(r(e)))]),
|
|
52
|
-
footer: d((e) => [c(n.$slots, "footer", o(r(e)))]),
|
|
53
|
-
header: d((e) => [c(n.$slots, "header", o(r(e)))]),
|
|
54
|
-
title: d((e) => [c(n.$slots, "title", o(r(e)))]),
|
|
55
|
-
_: 3
|
|
56
|
-
}, 16, ["modelValue"]));
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
//#endregion
|
|
60
|
-
export { f as default };
|
|
1
|
+
const r = (e) => typeof e > "u" || e === null;
|
|
2
|
+
export {
|
|
3
|
+
r as isNil
|
|
4
|
+
};
|
package/dist/index265.js
ADDED
package/dist/index266.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { curry as e } from "./index327.js";
|
|
2
|
+
const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
|
|
3
|
+
export {
|
|
4
|
+
t as baseWhen,
|
|
5
|
+
s as when
|
|
6
|
+
};
|
package/dist/index267.js
CHANGED
|
@@ -1,134 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var C = { class: "bb-dropdown-button__content" }, w = {
|
|
9
|
-
key: 1,
|
|
10
|
-
class: "bb-dropdown-button__loading-label sr-only"
|
|
11
|
-
}, T = { class: "bb-dropdown-button__dropdown-label sr-only" }, E = /* @__PURE__ */ f({
|
|
12
|
-
__name: "BbDropdownButton",
|
|
13
|
-
props: {
|
|
14
|
-
arrowPadding: {},
|
|
15
|
-
disabled: { type: Boolean },
|
|
16
|
-
eager: { type: Boolean },
|
|
17
|
-
id: {},
|
|
18
|
-
items: {},
|
|
19
|
-
offset: {},
|
|
20
|
-
padding: {},
|
|
21
|
-
placement: {},
|
|
22
|
-
theme: { default: "default" },
|
|
23
|
-
transitionDuration: {},
|
|
24
|
-
width: {},
|
|
25
|
-
autoLoading: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: !0
|
|
28
|
-
},
|
|
29
|
-
"append:icon": {},
|
|
30
|
-
block: { type: Boolean },
|
|
31
|
-
disabledWhileLoading: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: !0
|
|
34
|
-
},
|
|
35
|
-
loading: { type: Boolean },
|
|
36
|
-
"prepend:icon": {},
|
|
37
|
-
size: {}
|
|
38
|
-
},
|
|
39
|
-
setup(f) {
|
|
40
|
-
let E = f, { t: D } = t(), O = _(0), k = a(() => E.loading || !!O.value && E.autoLoading), A = (e) => async (...t) => {
|
|
41
|
-
k.value && E.disabledWhileLoading || (O.value++, await e(...t), O.value--);
|
|
42
|
-
}, j = (e) => e.onClick ? {
|
|
43
|
-
...e,
|
|
44
|
-
key: e.key.split(/\W+/g).join("_").toLowerCase(),
|
|
45
|
-
onClick: A(e.onClick)
|
|
46
|
-
} : {
|
|
47
|
-
...e,
|
|
48
|
-
key: e.key.split(/\W+/g).join("_").toLowerCase()
|
|
49
|
-
}, M = a(() => E.items.map((e) => Array.isArray(e) ? e.map(j) : j(e))), N = a(() => M.value.flat()), P = a(() => {
|
|
50
|
-
let e = { ...N.value[0] };
|
|
51
|
-
return e.disabled = e.disabled || E.disabled, e;
|
|
52
|
-
}), F = typeof E.size == "string" ? { default: E.size } : {
|
|
53
|
-
default: "md",
|
|
54
|
-
...E.size
|
|
55
|
-
}, I = Object.entries(F).reduce((e, [t, n]) => (t === "default" ? e[`data-${n}`] = "" : e[`data-${t}:${n}`] = "", e), {});
|
|
56
|
-
return (t, a) => (g(), c("span", m({ class: ["bb-dropdown-button", {
|
|
57
|
-
"bb-dropdown-button--block": t.block,
|
|
58
|
-
"bb-dropdown-button--loading": k.value,
|
|
59
|
-
[`bb-dropdown-button--${t.theme}`]: !0
|
|
60
|
-
}] }, x(I)), [d(e, m(P.value, { class: "bb-dropdown-button__main-btn" }), {
|
|
61
|
-
default: S(() => [
|
|
62
|
-
d(x(i), { class: "bb-dropdown-button__spinner" }),
|
|
63
|
-
E["prepend:icon"] ? (g(), o(x(n), {
|
|
64
|
-
key: 0,
|
|
65
|
-
class: "bb-dropdown-button__prepend-icon",
|
|
66
|
-
type: E["prepend:icon"]
|
|
67
|
-
}, null, 8, ["type"])) : s("", !0),
|
|
68
|
-
l("span", C, b(P.value.text), 1),
|
|
69
|
-
k.value ? (g(), c("span", w, b(x(D)("common.loadingText").value), 1)) : s("", !0),
|
|
70
|
-
E["append:icon"] ? (g(), o(x(n), {
|
|
71
|
-
key: 2,
|
|
72
|
-
class: "bb-dropdown-button__append-icon",
|
|
73
|
-
type: E["append:icon"]
|
|
74
|
-
}, null, 8, ["type"])) : s("", !0)
|
|
75
|
-
]),
|
|
76
|
-
_: 1
|
|
77
|
-
}, 16), d(r, {
|
|
78
|
-
id: t.id,
|
|
79
|
-
"arrow-padding": t.arrowPadding,
|
|
80
|
-
disabled: t.disabled,
|
|
81
|
-
eager: t.eager,
|
|
82
|
-
items: M.value,
|
|
83
|
-
offset: t.offset,
|
|
84
|
-
padding: t.padding,
|
|
85
|
-
placement: t.placement,
|
|
86
|
-
theme: t.theme,
|
|
87
|
-
"transition-duration": t.transitionDuration,
|
|
88
|
-
width: t.width
|
|
89
|
-
}, u({
|
|
90
|
-
activator: S(({ props: n, open: r, disabled: i, placement: o }) => [y(t.$slots, "activator", {
|
|
91
|
-
disabled: i,
|
|
92
|
-
open: r,
|
|
93
|
-
placement: o,
|
|
94
|
-
props: n
|
|
95
|
-
}, () => [d(e, m(n, { class: "bb-dropdown-button__dropdown-btn" }), {
|
|
96
|
-
default: S(() => [l("span", T, b(r ? x(D)("dropdownButton.close").value : x(D)("dropdownButton.open").value), 1), y(t.$slots, "right-btn", {
|
|
97
|
-
disabled: i,
|
|
98
|
-
open: r,
|
|
99
|
-
placement: o
|
|
100
|
-
}, () => [a[0] ||= l("svg", {
|
|
101
|
-
class: "bb-dropdown-button__dropdown-chevron",
|
|
102
|
-
viewBox: "0 0 24 24",
|
|
103
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
104
|
-
}, [l("path", {
|
|
105
|
-
d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41Z",
|
|
106
|
-
fill: "currentColor"
|
|
107
|
-
})], -1)])]),
|
|
108
|
-
_: 2
|
|
109
|
-
}, 1040)])]),
|
|
110
|
-
prepend: S((e) => [y(t.$slots, "prepend", h(p(e)))]),
|
|
111
|
-
"item:prepend": S((e) => [y(t.$slots, "item:prepend", h(p(e)))]),
|
|
112
|
-
"item:append": S((e) => [y(t.$slots, "item:append", h(p(e)))]),
|
|
113
|
-
append: S((e) => [y(t.$slots, "append", h(p(e)))]),
|
|
114
|
-
_: 2
|
|
115
|
-
}, [v(N.value, (e) => ({
|
|
116
|
-
name: e.key,
|
|
117
|
-
fn: S((n) => [y(t.$slots, e.key, h(p(n)))])
|
|
118
|
-
}))]), 1032, [
|
|
119
|
-
"id",
|
|
120
|
-
"arrow-padding",
|
|
121
|
-
"disabled",
|
|
122
|
-
"eager",
|
|
123
|
-
"items",
|
|
124
|
-
"offset",
|
|
125
|
-
"padding",
|
|
126
|
-
"placement",
|
|
127
|
-
"theme",
|
|
128
|
-
"transition-duration",
|
|
129
|
-
"width"
|
|
130
|
-
])], 16));
|
|
131
|
-
}
|
|
1
|
+
import { get as o } from "./index281.js";
|
|
2
|
+
const e = () => ({
|
|
3
|
+
getItemValue(n, f) {
|
|
4
|
+
if (typeof f > "u") return n;
|
|
5
|
+
if (typeof f == "function") return f(n);
|
|
6
|
+
if (typeof f == "string") return o(n, f);
|
|
7
|
+
}
|
|
132
8
|
});
|
|
133
|
-
|
|
134
|
-
|
|
9
|
+
export {
|
|
10
|
+
e as useItemValue
|
|
11
|
+
};
|
package/dist/index268.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { computed as u, toValue as s, ref as m, reactive as v, watchEffect as I, onMounted as T, watch as h, onBeforeUnmount as w } from "vue";
|
|
2
|
+
import { useId as E } from "./index8.js";
|
|
3
|
+
const o = v(/* @__PURE__ */ new Map()), b = "[data-bb-table-id]";
|
|
4
|
+
function y(c) {
|
|
5
|
+
const p = E().id, r = u(() => s(c.id) || p.value), t = m(null), l = v({
|
|
6
|
+
id: r.value,
|
|
7
|
+
parentId: null,
|
|
8
|
+
tracks: {}
|
|
9
|
+
});
|
|
10
|
+
I(() => {
|
|
11
|
+
l.id = r.value, l.parentId = t.value, o.set(r.value, l);
|
|
12
|
+
});
|
|
13
|
+
const d = () => {
|
|
14
|
+
const e = s(c.container), a = s(c.inheritFrom);
|
|
15
|
+
let n = e?.parentElement?.closest(b) ?? null;
|
|
16
|
+
if (a)
|
|
17
|
+
for (; n && n.dataset.bbTableId !== a; )
|
|
18
|
+
n = n.parentElement?.closest(b) ?? null;
|
|
19
|
+
t.value = n?.dataset.bbTableId ?? null;
|
|
20
|
+
};
|
|
21
|
+
T(d), h(() => s(c.inheritFrom), d), w(() => o.delete(r.value));
|
|
22
|
+
const i = u(
|
|
23
|
+
() => t.value ? o.get(t.value) ?? null : null
|
|
24
|
+
), f = (e) => {
|
|
25
|
+
l.tracks = e;
|
|
26
|
+
}, k = u(() => {
|
|
27
|
+
const e = {};
|
|
28
|
+
for (const [a, n] of Object.entries(l.tracks))
|
|
29
|
+
e[`--bb-table-${r.value}-track-${a}`] = n;
|
|
30
|
+
return e;
|
|
31
|
+
});
|
|
32
|
+
return {
|
|
33
|
+
id: r,
|
|
34
|
+
parentId: t,
|
|
35
|
+
parentNode: i,
|
|
36
|
+
parentHasTrack: (e) => !!i.value?.tracks[e],
|
|
37
|
+
parentVar: (e, a = "auto") => t.value ? `var(--bb-table-${t.value}-track-${e}, ${a})` : a,
|
|
38
|
+
node: l,
|
|
39
|
+
registry: o,
|
|
40
|
+
setTracks: f,
|
|
41
|
+
cssVars: k
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
y as useTableWidthContext
|
|
46
|
+
};
|
package/dist/index269.js
CHANGED
|
@@ -1,6 +1,55 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { useLogger as y } from "./index238.js";
|
|
2
|
+
const g = (t, i) => {
|
|
3
|
+
if (!i.length) return;
|
|
4
|
+
const n = Array.from(
|
|
5
|
+
t.querySelectorAll(":scope > thead th")
|
|
6
|
+
);
|
|
7
|
+
if (!n.length) return;
|
|
8
|
+
const { error: r } = y(), p = n.length, u = i.map((e) => ({
|
|
9
|
+
index: typeof e == "number" ? e : e.index,
|
|
10
|
+
position: typeof e == "number" ? "left" : e.position
|
|
11
|
+
})).sort((e, o) => e.position !== o.position ? e.position === "left" ? -1 : 1 : e.position === "left" ? e.index - o.index : o.index - e.index).reduce((e, o) => {
|
|
12
|
+
const l = n[o.index];
|
|
13
|
+
if (!l)
|
|
14
|
+
return r(
|
|
15
|
+
`BbTable fixedColumns: Cannot affix column at index ${o.index}. Table has ${p} columns (valid indices: 0–${p - 1}).`
|
|
16
|
+
), e;
|
|
17
|
+
const { width: c } = l.getBoundingClientRect(), m = e.filter((h) => h.position === o.position).reduce((h, x) => h + x.width, 0);
|
|
18
|
+
return e.push({
|
|
19
|
+
index: o.index,
|
|
20
|
+
position: o.position,
|
|
21
|
+
width: Math.floor(c),
|
|
22
|
+
offset: m
|
|
23
|
+
}), e;
|
|
24
|
+
}, []);
|
|
25
|
+
Array.from(
|
|
26
|
+
t.querySelectorAll(":scope > thead > tr, :scope > tbody > tr")
|
|
27
|
+
).forEach((e) => {
|
|
28
|
+
u.forEach((o) => {
|
|
29
|
+
const l = e.querySelector(
|
|
30
|
+
`:scope > :nth-child(${o.index + 1})`
|
|
31
|
+
);
|
|
32
|
+
l && (l.style.position = "sticky", l.style[o.position] = `${o.offset}px`);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
}, d = (t) => Array.isArray(t) ? t : [t], w = (t) => t.split(/\W+/g).join("_").toLowerCase(), A = (t, i, n) => {
|
|
36
|
+
const r = [...d(t)];
|
|
37
|
+
return i && r.push(...d(i)), n && r.push(...d(n)), r;
|
|
38
|
+
}, $ = (t, i, n, r, p, a) => {
|
|
39
|
+
const f = [...d(t)], u = (s) => typeof s == "function" ? s(r, p, a) : s;
|
|
40
|
+
if (i) {
|
|
41
|
+
const s = u(i);
|
|
42
|
+
s && f.push(...d(s));
|
|
43
|
+
}
|
|
44
|
+
if (n) {
|
|
45
|
+
const s = u(n);
|
|
46
|
+
s && f.push(...d(s));
|
|
47
|
+
}
|
|
48
|
+
return f;
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
g as applyFixedTableColumns,
|
|
52
|
+
w as columnKeyToSlotName,
|
|
53
|
+
$ as mergeCellClasses,
|
|
54
|
+
A as mergeHeaderClasses
|
|
55
|
+
};
|
package/dist/index270.js
CHANGED
|
@@ -1,12 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
const a = new RegExp("\\p{Lu}", "u"), f = new RegExp("\\p{Ll}", "u"), R = new RegExp("\\p{N}", "u"), c = /\s/u, d = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u, A = new RegExp("\\p{Extended_Pictographic}", "u"), W = /* @__PURE__ */ new Set([
|
|
2
|
+
".",
|
|
3
|
+
",",
|
|
4
|
+
":",
|
|
5
|
+
";",
|
|
6
|
+
"!",
|
|
7
|
+
"|",
|
|
8
|
+
"'",
|
|
9
|
+
"`",
|
|
10
|
+
'"',
|
|
11
|
+
"(",
|
|
12
|
+
")",
|
|
13
|
+
"[",
|
|
14
|
+
"]",
|
|
15
|
+
"{",
|
|
16
|
+
"}"
|
|
17
|
+
]), _ = /* @__PURE__ */ new Set(["-", "_", "/", "\\", "+", "="]), m = /* @__PURE__ */ new Set(["i", "l", "I", "j", "t", "f", "r"]), p = /* @__PURE__ */ new Set(["W", "M", "w", "m", "@", "%", "&", "#"]), I = (t) => c.test(t) ? 0.42 : A.test(t) ? 1.95 : d.test(t) ? 1.8 : W.has(t) ? 0.48 : _.has(t) ? 0.66 : m.has(t) ? 0.72 : p.has(t) ? 1.28 : R.test(t) ? 0.92 : a.test(t) ? 1.08 : f.test(t) ? 0.9 : 1, C = (t, n) => {
|
|
18
|
+
const e = t, i = n.fontWidth * 2, s = n.fontWidth * 0.6, r = n.estimationBias ?? 1, E = Array.from(e).reduce((u, o) => u + I(o) * n.fontWidth, 0);
|
|
19
|
+
return Math.max(
|
|
20
|
+
i,
|
|
21
|
+
(E + s) * r
|
|
22
|
+
);
|
|
23
|
+
}, T = (t) => Math.max(10, t * 1.2);
|
|
24
|
+
export {
|
|
25
|
+
C as estimateBreadcrumbItemWidth,
|
|
26
|
+
T as estimateEllipsisWidth
|
|
27
|
+
};
|