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/index328.js
CHANGED
|
@@ -1,665 +1,127 @@
|
|
|
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
|
-
|
|
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
|
-
A.multiple && !Array.isArray(A.modelValue) && n().throw("BbTable is set for multiple selection but modelValue is not an array.");
|
|
129
|
-
let { t: M } = r(), N = C(), P = C(), { id: Je, parentId: F, parentNode: I, cssVars: Ye, parentVar: Xe, setTracks: Ze } = ne({
|
|
130
|
-
id: () => A.id,
|
|
131
|
-
container: () => P.value,
|
|
132
|
-
inheritFrom: () => typeof A.inheritColumnWidths == "string" ? A.inheritColumnWidths : void 0
|
|
133
|
-
}), Qe = h(() => A.columns.some((e) => e.snap != null)), L = h(() => !!A.inheritColumnWidths || Qe.value), R = h(() => A.fixed || Qe.value || A.columns.some((e) => e.width != null) || L.value && !!F.value), z = h(() => L.value && !!F.value), $e = z, et = (e) => {
|
|
134
|
-
if (typeof e == "number") return `${e}px`;
|
|
135
|
-
let t = e.trim();
|
|
136
|
-
return /^-?\d*\.?\d+$/.test(t) ? `${t}px` : t;
|
|
137
|
-
}, tt = h(() => {
|
|
138
|
-
let e = I.value?.tracks;
|
|
139
|
-
return e ? Object.keys(e).filter((e) => /^\d+$/.test(e)).length : 0;
|
|
140
|
-
}), nt = h(() => {
|
|
141
|
-
let e = I.value?.tracks ?? {}, t = [];
|
|
142
|
-
"select" in e && t.push("select");
|
|
143
|
-
for (let e = 0; e < tt.value; e++) t.push(String(e));
|
|
144
|
-
return "actions" in e && t.push("actions"), t;
|
|
145
|
-
}), rt = h(() => +("select" in (I.value?.tracks ?? {}))), it = h(() => rt.value + tt.value), at = h(() => nt.value.length), ot = (e) => {
|
|
146
|
-
let t = nt.value[e];
|
|
147
|
-
return t ? Xe(t, "0px") : "0px";
|
|
148
|
-
}, st = (e, t) => {
|
|
149
|
-
if (!F.value || t - e <= 1e-6) return null;
|
|
150
|
-
let n = [];
|
|
151
|
-
for (let r = Math.floor(e); r < Math.ceil(t - 1e-6); r++) {
|
|
152
|
-
let i = Math.min(t, r + 1) - Math.max(e, r);
|
|
153
|
-
if (i <= 1e-6) continue;
|
|
154
|
-
let a = ot(r);
|
|
155
|
-
n.push(i >= .999999 ? a : `${Number(i.toFixed(4))} * ${a}`);
|
|
156
|
-
}
|
|
157
|
-
return n.length ? n.length === 1 && !n[0].includes("*") ? n[0] : `calc(${n.join(" + ")})` : null;
|
|
158
|
-
}, B = h(() => {
|
|
159
|
-
let e = A.columns, t = e.map((e) => typeof e.snap == "number" ? e.snap : Array.isArray(e.snap) ? e.snap[0] : null), n = rt.value;
|
|
160
|
-
return e.map((e, r) => {
|
|
161
|
-
let i = t[r] ?? n, a;
|
|
162
|
-
if (Array.isArray(e.snap)) a = e.snap[1] === -1 ? it.value : e.snap[1];
|
|
163
|
-
else {
|
|
164
|
-
let e = t[r + 1];
|
|
165
|
-
a = e != null && e > i ? e : Math.floor(i) + 1;
|
|
166
|
-
}
|
|
167
|
-
return n = a, {
|
|
168
|
-
start: i,
|
|
169
|
-
end: a
|
|
170
|
-
};
|
|
171
|
-
});
|
|
172
|
-
}), ct = (e) => z.value && e.start >= it.value, lt = h(() => B.value.some(ct)), V = (e) => A.columns[e]?.width == null && !z.value, H = h(() => {
|
|
173
|
-
if (!z.value) return -1;
|
|
174
|
-
for (let e = A.columns.length - 1; e >= 0; e--) {
|
|
175
|
-
let t = A.columns[e];
|
|
176
|
-
if (t.width == null && t.snap == null) return e;
|
|
177
|
-
}
|
|
178
|
-
return -1;
|
|
179
|
-
}), ut = h(() => {
|
|
180
|
-
let e = B.value[0];
|
|
181
|
-
if (!L.value || !F.value || !e) return null;
|
|
182
|
-
let t = st(0, e.start), n = A.selectable ? U.select : null;
|
|
183
|
-
return n ? `calc(${t ?? "0px"} - ${n})` : t;
|
|
184
|
-
}), dt = h(() => {
|
|
185
|
-
let e = B.value, t = e[e.length - 1];
|
|
186
|
-
if (!L.value || !F.value || !t || lt.value || H.value === A.columns.length - 1) return null;
|
|
187
|
-
let n = st(t.end, at.value), r = A.actions ? U.actions : null;
|
|
188
|
-
return r ? `calc(${n ?? "0px"} - ${r})` : n;
|
|
189
|
-
}), ft = h(() => ut.value !== null), pt = h(() => dt.value !== null), U = me({
|
|
190
|
-
select: null,
|
|
191
|
-
actions: null
|
|
192
|
-
}), mt = h(() => {
|
|
193
|
-
let e = (e) => L.value ? Xe(e) : "auto", t = (t) => R.value && U[t] ? U[t] : e(t), n = [];
|
|
194
|
-
A.selectable && n.push({
|
|
195
|
-
key: "select",
|
|
196
|
-
width: t("select")
|
|
197
|
-
});
|
|
198
|
-
let r = A.columns.length - 1;
|
|
199
|
-
return A.columns.forEach((e, t) => {
|
|
200
|
-
let i = String(t), a = e.width == null ? null : et(e.width), o = B.value[t];
|
|
201
|
-
if (t === H.value && !lt.value) {
|
|
202
|
-
n.push({
|
|
203
|
-
key: i,
|
|
204
|
-
width: "auto"
|
|
205
|
-
});
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
let s;
|
|
209
|
-
s = a ?? (V(t) ? R.value && xt.value[t] || null : ct(o) ? St.value[t] ?? null : st(o.start, o.end));
|
|
210
|
-
let c = [];
|
|
211
|
-
t === 0 && ft.value && c.push("var(--bb-table-offset-internal-start)"), t === r && pt.value && c.push("var(--bb-table-offset-internal-end)");
|
|
212
|
-
let l = c.length ? `calc(${[...c, s ?? "0px"].join(" + ")})` : s ?? "auto";
|
|
213
|
-
n.push({
|
|
214
|
-
key: i,
|
|
215
|
-
width: l
|
|
216
|
-
});
|
|
217
|
-
}), A.actions && n.push({
|
|
218
|
-
key: "actions",
|
|
219
|
-
width: t("actions")
|
|
220
|
-
}), n;
|
|
221
|
-
}), ht = h(() => {
|
|
222
|
-
let e = {};
|
|
223
|
-
return ut.value && (e["--bb-table-offset-start"] = ut.value), dt.value && (e["--bb-table-offset-end"] = dt.value), e;
|
|
224
|
-
}), gt = h(() => {
|
|
225
|
-
let e = {
|
|
226
|
-
...Ye.value,
|
|
227
|
-
...ht.value
|
|
228
|
-
};
|
|
229
|
-
return Ct.value && (e["--bb-table-natural-width"] = Ct.value), W.value > 0 && (e["--bb-table-fill"] = `${W.value}px`), e;
|
|
230
|
-
}), _t = () => Array.from(N.value?.querySelectorAll(":scope > thead > tr.bb-table-header-row > th") ?? []), vt = () => {
|
|
231
|
-
let e = mt.value.map((e) => e.key), t = {};
|
|
232
|
-
_t().forEach((n, r) => {
|
|
233
|
-
let i = e[r];
|
|
234
|
-
i != null && (t[i] = `${n.getBoundingClientRect().width}px`);
|
|
235
|
-
}), Ze(t);
|
|
236
|
-
}, yt = () => {
|
|
237
|
-
let e = N.value;
|
|
238
|
-
if (!e) return;
|
|
239
|
-
let t = (t) => {
|
|
240
|
-
let n = 0;
|
|
241
|
-
return e.querySelectorAll(t).forEach((e) => {
|
|
242
|
-
let t = 0;
|
|
243
|
-
e.querySelectorAll(":scope > *").forEach((e) => {
|
|
244
|
-
let n = getComputedStyle(e);
|
|
245
|
-
if (n.position === "absolute" || n.position === "fixed") return;
|
|
246
|
-
let r = parseFloat(n.marginLeft) + parseFloat(n.marginRight);
|
|
247
|
-
t += e.getBoundingClientRect().width + (r || 0);
|
|
248
|
-
});
|
|
249
|
-
let r = getComputedStyle(e), i = parseFloat(r.paddingLeft) + parseFloat(r.paddingRight);
|
|
250
|
-
n = Math.max(n, t + i);
|
|
251
|
-
}), n > 0 ? `${Math.ceil(n)}px` : null;
|
|
252
|
-
};
|
|
253
|
-
U.select = A.selectable ? t(":scope > thead > tr > th.bb-table-header--select, :scope > tbody > tr > td.bb-table-data__cell--select") : null, U.actions = A.actions ? t(":scope > thead > tr > th.bb-table-header--actions, :scope > tbody > tr > td.bb-table__cell--actions") : null;
|
|
254
|
-
}, bt = () => {
|
|
255
|
-
yt(), vt();
|
|
256
|
-
}, xt = C([]), St = C([]), W = C(0), Ct = C(null), wt = () => {
|
|
257
|
-
let e = P.value;
|
|
258
|
-
if (!e || !R.value || !A.columns.some((e) => e.width != null) && !lt.value && H.value < 0) return;
|
|
259
|
-
let t = e.offsetWidth, n = +!!A.selectable, r = U.select ? parseFloat(U.select) : 0, i = U.actions ? parseFloat(U.actions) : 0, a = _t(), o = 0, s = 0;
|
|
260
|
-
A.columns.forEach((e, t) => {
|
|
261
|
-
let r = a[n + t]?.getBoundingClientRect().width ?? 0;
|
|
262
|
-
e.width != null && (o += r), V(t) || (s += r);
|
|
263
|
-
});
|
|
264
|
-
let c = document.createElement("div");
|
|
265
|
-
c.style.cssText = [
|
|
266
|
-
"position:absolute",
|
|
267
|
-
"top:-9999px",
|
|
268
|
-
"left:-9999px",
|
|
269
|
-
"visibility:hidden",
|
|
270
|
-
"pointer-events:none",
|
|
271
|
-
`width:${t}px`,
|
|
272
|
-
`height:${e.offsetHeight}px`,
|
|
273
|
-
"overflow:visible"
|
|
274
|
-
].join(";");
|
|
275
|
-
let l = e.cloneNode(!0);
|
|
276
|
-
l.classList.remove("bb-table--fixed"), l.querySelectorAll(".bb-table-expand__row").forEach((e) => e.remove());
|
|
277
|
-
let u = Array.from(l.querySelectorAll("col"));
|
|
278
|
-
A.columns.forEach((e, t) => {
|
|
279
|
-
if (e.width == null) {
|
|
280
|
-
let e = u[n + t];
|
|
281
|
-
e && (e.style.width = "");
|
|
282
|
-
}
|
|
283
|
-
});
|
|
284
|
-
let d = l.querySelector("table");
|
|
285
|
-
d && (d.style.width = "min-content", d.style.minWidth = "0"), c.appendChild(l), document.body.appendChild(c);
|
|
286
|
-
let ee = c.querySelector("table thead tr.bb-table-header-row"), te = ee ? Array.from(ee.querySelectorAll(":scope > th")) : [], f = A.columns.map((e, t) => {
|
|
287
|
-
if (e.width != null) return 0;
|
|
288
|
-
let r = te[n + t];
|
|
289
|
-
return r ? r.getBoundingClientRect().width : 0;
|
|
290
|
-
});
|
|
291
|
-
document.body.removeChild(c);
|
|
292
|
-
let ne = A.columns.reduce((e, t, n) => e + (V(n) ? f[n] : 0), 0), re = t - s - r - i, p = (e) => `${Number(e.toFixed(3))}px`;
|
|
293
|
-
if (xt.value = A.columns.map((e, t) => {
|
|
294
|
-
if (!V(t)) return null;
|
|
295
|
-
let n = f[t];
|
|
296
|
-
if (ne <= 0) return p(n);
|
|
297
|
-
let r = re > 0 ? n / ne * re : 0;
|
|
298
|
-
return p(Math.max(n, r));
|
|
299
|
-
}), St.value = f.map((e) => e > 0 ? p(e) : null), H.value >= 0) {
|
|
300
|
-
let e = Object.values(I.value?.tracks ?? {}).reduce((e, t) => e + (parseFloat(t) || 0), 0), t = a.reduce((e, t) => e + t.getBoundingClientRect().width, 0);
|
|
301
|
-
W.value = Math.max(0, e - t + W.value);
|
|
302
|
-
} else W.value = 0;
|
|
303
|
-
let ie = f.reduce((e, t) => e + t, 0), ae = o + ie + r + i;
|
|
304
|
-
Ct.value = ae > 0 ? `${Math.ceil(ae)}px` : null;
|
|
305
|
-
}, G = null, Tt, Et = () => {
|
|
306
|
-
G !== null && clearTimeout(G), G = setTimeout(() => {
|
|
307
|
-
G = null, wt();
|
|
308
|
-
}, 200);
|
|
309
|
-
}, K, Dt, Ot = () => {
|
|
310
|
-
K && (K.disconnect(), _t().forEach((e) => K?.observe(e)), bt());
|
|
311
|
-
};
|
|
312
|
-
pe(() => {
|
|
313
|
-
K = new ResizeObserver(() => bt()), Ot(), de(wt), N.value && (Tt = new MutationObserver(Et), Tt.observe(N.value, {
|
|
314
|
-
childList: !0,
|
|
315
|
-
subtree: !0,
|
|
316
|
-
characterData: !0
|
|
317
|
-
})), P.value && (Dt = new ResizeObserver(Et), Dt.observe(P.value));
|
|
318
|
-
}), fe(() => {
|
|
319
|
-
K?.disconnect(), Dt?.disconnect(), Tt?.disconnect(), G !== null && clearTimeout(G);
|
|
320
|
-
}), k(mt, () => de(Ot), { flush: "post" });
|
|
321
|
-
let kt = (e) => [M("table.select").value, ...e.map((e) => e.content)].join(" "), At = h(() => A.selectable ? "fieldset" : "div"), jt = h(() => A.loading || Lt.value), q = h(() => !u(A.page) && !u(A.perPage) && !u(A.totalItems)), Mt = h(() => ({
|
|
322
|
-
"bb-table": !0,
|
|
323
|
-
[`bb-table--align-${A.align}`]: !0,
|
|
324
|
-
"bb-table--compact": A.compact,
|
|
325
|
-
"bb-table--fixed": R.value,
|
|
326
|
-
"bb-table--inherit-widths": $e.value,
|
|
327
|
-
"bb-table--fixed-header": A.fixedHeaders,
|
|
328
|
-
"bb-table--loading": jt.value,
|
|
329
|
-
"bb-table--empty": !J.value.length,
|
|
330
|
-
"bb-table--selectable": !!A.selectable,
|
|
331
|
-
"scrollbar-border": !0
|
|
332
|
-
})), Nt = h(() => A.columns.length + Number(!!A.selectable) + Number(!!A.actions)), Pt = h(() => Object.fromEntries(A.columns.map((e) => [e.key, p(e.key)]))), { getter: Ft, items: It, loading: Lt } = o({ items: D(A, "items") }), { hasPrefilled: Rt } = ee({
|
|
333
|
-
trigger: !0,
|
|
334
|
-
fn: async (e) => {
|
|
335
|
-
await Ft(e, A.modelValue);
|
|
336
|
-
}
|
|
337
|
-
}), { data: zt } = s({ items: D(A, "modelValue") }), { options: J } = l({
|
|
338
|
-
disabled: D(A, "disabled"),
|
|
339
|
-
items: It,
|
|
340
|
-
itemText: void 0,
|
|
341
|
-
itemValue: A.itemValue,
|
|
342
|
-
max: A.max,
|
|
343
|
-
selectable: !0,
|
|
344
|
-
selectedIndexedByHash: zt
|
|
345
|
-
}), Bt = async (e) => {
|
|
346
|
-
A.multiple ? j("update:modelValue", A.modelValue.concat(e.value)) : j("update:modelValue", e.value);
|
|
347
|
-
}, Vt = async (e) => {
|
|
348
|
-
if (A.multiple) {
|
|
349
|
-
let t = { ...zt.value };
|
|
350
|
-
delete t[e.valueHash], j("update:modelValue", Object.values(t));
|
|
351
|
-
} else j("update:modelValue", null);
|
|
352
|
-
};
|
|
353
|
-
d(() => [A.dependencies, A.items], async () => {
|
|
354
|
-
Rt.value && await Ft(!1, A.modelValue);
|
|
355
|
-
}, { debounce: A.depsDebounceTime });
|
|
356
|
-
let Ht = (e, t) => {
|
|
357
|
-
let n = Pt.value[e.key], r = e.align ?? "left", i = Ke(t.item, e.key);
|
|
358
|
-
return e.formatter && (!u(i) || e.formatOnNull !== !1) && (i = e.formatter(i, e.key, t.item)), e.placeholder && u(i) && (i = e.placeholder), {
|
|
359
|
-
align: r,
|
|
360
|
-
classes: ie([`bb-table-data__cell--${r}`], A.tdClass, e.tdClass, i, e.key, t.item),
|
|
361
|
-
content: i,
|
|
362
|
-
key: e.key,
|
|
363
|
-
label: e.label,
|
|
364
|
-
slotName: n
|
|
365
|
-
};
|
|
366
|
-
}, Ut = h(() => A.columns.map((e) => {
|
|
367
|
-
let t = e.align ?? "left", n = `header:${Pt.value[e.key]}`, r = e.sorted ? e.sorted === "asc" ? "ascending" : "descending" : void 0;
|
|
368
|
-
return {
|
|
369
|
-
align: t,
|
|
370
|
-
key: e.key,
|
|
371
|
-
label: e.label,
|
|
372
|
-
slotName: n,
|
|
373
|
-
classes: ae([`bb-table-header--${t}`], A.thClass, e.thClass),
|
|
374
|
-
sortDirection: r
|
|
375
|
-
};
|
|
376
|
-
})), Wt = h(() => {
|
|
377
|
-
let e = 0;
|
|
378
|
-
return J.value.map((t, n) => {
|
|
379
|
-
let r = !A.selectable || typeof A.selectable == "function" && !A.selectable(t.item) || !!t.disabled, i = (A.page ?? -1) * (A.perPage ?? 0), a = n + 1, o = i + 1 + a + e, s = A.columns.map((e) => Ht(e, t)), c = Gt.value[t.valueHash] ?? !1;
|
|
380
|
-
return c && e++, {
|
|
381
|
-
accessibleLabel: kt(s),
|
|
382
|
-
cols: s,
|
|
383
|
-
expanded: c,
|
|
384
|
-
onRowClick: (e) => j("click:row", e, t, !!t.selected),
|
|
385
|
-
onRowContextMenu: (e) => j("contextmenu:row", e, t, !!t.selected),
|
|
386
|
-
onRowDblClick: (e) => j("dblclick:row", e, t, !!t.selected),
|
|
387
|
-
item: t.item,
|
|
388
|
-
text: t.text,
|
|
389
|
-
rowIndex: o,
|
|
390
|
-
valueHash: t.valueHash,
|
|
391
|
-
value: t.value,
|
|
392
|
-
selected: t.selected,
|
|
393
|
-
disabled: r
|
|
394
|
-
};
|
|
395
|
-
});
|
|
396
|
-
}), Y = ge(y, "selectAll"), X = ge(y, "expandedItems"), { data: Gt } = s({ items: X }), Kt = (e, t) => {
|
|
397
|
-
e.target instanceof HTMLElement && (e.target instanceof HTMLButtonElement || e.key !== "Enter" && e.key !== " " || (e.preventDefault(), Z(t)));
|
|
398
|
-
}, qt = (e) => ({
|
|
399
|
-
"aria-controls": u(Gt.value[e.valueHash]) ? void 0 : `expanded_${e.valueHash}`,
|
|
400
|
-
"aria-expanded": e.expanded ? "true" : "false",
|
|
401
|
-
onClick: (t) => {
|
|
402
|
-
t.stopPropagation(), Z(e.valueHash);
|
|
403
|
-
},
|
|
404
|
-
onKeydown: (t) => Kt(t, e.valueHash)
|
|
405
|
-
}), Z = (e) => {
|
|
406
|
-
let t = J.value.find((t) => t.valueHash === e);
|
|
407
|
-
t && (e in Gt.value ? X.value = X.value.filter((t) => i(t) !== e) : X.value = [...X.value, t.value]);
|
|
408
|
-
};
|
|
409
|
-
k(Y, () => {
|
|
410
|
-
Q.clear(), j("update:unselectedItems", []), j("update:modelValue", []);
|
|
411
|
-
});
|
|
412
|
-
let Jt = h(() => !!(A.multiple && A.modelValue.length > 0 && !A.selectAll || Y.value && Q.size > 0)), Q = me(/* @__PURE__ */ new Set());
|
|
413
|
-
k(() => A.unselectedItems, () => {
|
|
414
|
-
Q.clear(), A.unselectedItems.forEach((e) => {
|
|
415
|
-
Q.add(i(e));
|
|
416
|
-
});
|
|
417
|
-
});
|
|
418
|
-
let Yt = (e) => {
|
|
419
|
-
if (Xt(e)) {
|
|
420
|
-
Vt(e), j("item:unselected", e.value), Q.add(e.valueHash), j("update:unselectedItems", [...A.unselectedItems, e.value]);
|
|
421
|
-
return;
|
|
422
|
-
}
|
|
423
|
-
Y.value || Bt(e), j("item:selected", e.value), Q.delete(e.valueHash), j("update:unselectedItems", A.unselectedItems.filter((t) => i(t) !== i(e.value)));
|
|
424
|
-
}, Xt = (e) => Q.has(e.valueHash) ? !1 : e.selected || Y.value, Zt = te((e) => typeof e != "string", JSON.stringify), Qt = h(() => [].concat(A.modelValue ?? []).map((e) => ({
|
|
425
|
-
disabled: A.disabled,
|
|
426
|
-
name: A.name,
|
|
427
|
-
type: "hidden",
|
|
428
|
-
value: Zt(e)
|
|
429
|
-
}))), $ = [
|
|
430
|
-
70,
|
|
431
|
-
45,
|
|
432
|
-
85,
|
|
433
|
-
55
|
|
434
|
-
], $t = h(() => e(J.value.length || A.columns.length || 1, 4, 10));
|
|
435
|
-
return k(() => [Wt.value, A.fixedColumns], () => {
|
|
436
|
-
N.value && A.fixedColumns?.length && re(N.value, A.fixedColumns);
|
|
437
|
-
}, { flush: "post" }), (e, t) => (S(), oe(he(At.value), {
|
|
438
|
-
id: e.id,
|
|
439
|
-
ref_key: "containerRef",
|
|
440
|
-
ref: P,
|
|
441
|
-
"aria-busy": jt.value,
|
|
442
|
-
"aria-rowcount": q.value ? A.totalItems : void 0,
|
|
443
|
-
class: b(Mt.value),
|
|
444
|
-
"data-bb-table-id": O(Je),
|
|
445
|
-
inert: e.disabled,
|
|
446
|
-
style: x(gt.value)
|
|
447
|
-
}, {
|
|
448
|
-
default: _e(() => [
|
|
449
|
-
e.selectable ? (S(), _("legend", ve, E(e.legend), 1)) : g("", !0),
|
|
450
|
-
v("table", {
|
|
451
|
-
ref_key: "tableRef",
|
|
452
|
-
ref: N
|
|
453
|
-
}, [
|
|
454
|
-
e.caption ? (S(), _("caption", {
|
|
455
|
-
key: 0,
|
|
456
|
-
class: b({
|
|
457
|
-
"bb-table-caption": !0,
|
|
458
|
-
"sr-only": !e.displayCaption
|
|
459
|
-
})
|
|
460
|
-
}, E(e.caption), 3)) : g("", !0),
|
|
461
|
-
v("colgroup", null, [(S(!0), _(m, null, w(mt.value, (e) => (S(), _("col", {
|
|
462
|
-
key: e.key,
|
|
463
|
-
style: x({ width: e.width })
|
|
464
|
-
}, null, 4))), 128))]),
|
|
465
|
-
v("thead", null, [T(e.$slots, "thead", {}, () => [v("tr", {
|
|
466
|
-
"aria-rowindex": q.value ? 1 : void 0,
|
|
467
|
-
class: "bb-table-header-row"
|
|
468
|
-
}, [
|
|
469
|
-
e.selectable ? (S(), _("th", {
|
|
470
|
-
key: 0,
|
|
471
|
-
class: b(["bb-table-header bb-table-header--select", e.thClass]),
|
|
472
|
-
scope: "col"
|
|
473
|
-
}, [T(e.$slots, "header:select", {
|
|
474
|
-
multiple: e.multiple,
|
|
475
|
-
selectAll: !!Y.value,
|
|
476
|
-
text: e.selectText || O(M)("table.selectText").value
|
|
477
|
-
}, () => [v("span", be, [e.allowSelectAll && e.multiple ? (S(), _("label", {
|
|
478
|
-
key: 0,
|
|
479
|
-
class: b(["bb-table-check__label", { "bb-table-check__label--disabled": e.disabled }])
|
|
480
|
-
}, [(S(), oe(a, {
|
|
481
|
-
key: Jt.value.toString(),
|
|
482
|
-
modelValue: Y.value,
|
|
483
|
-
"onUpdate:modelValue": t[0] ||= (e) => Y.value = e,
|
|
484
|
-
class: "bb-table-check",
|
|
485
|
-
disabled: e.disabled,
|
|
486
|
-
indeterminate: Jt.value,
|
|
487
|
-
name: `select_all_${e.name || ""}`,
|
|
488
|
-
readonly: e.readonly
|
|
489
|
-
}, null, 8, [
|
|
490
|
-
"modelValue",
|
|
491
|
-
"disabled",
|
|
492
|
-
"indeterminate",
|
|
493
|
-
"name",
|
|
494
|
-
"readonly"
|
|
495
|
-
])), v("span", xe, E(e.selectAllLabel || O(M)("table.selectAllLabel").value), 1)], 2)) : e.multiple ? g("", !0) : (S(), _("span", Se, E(e.selectText || O(M)("table.selectText").value), 1))])])], 2)) : g("", !0),
|
|
496
|
-
(S(!0), _(m, null, w(Ut.value, (t, n) => (S(), _("th", {
|
|
497
|
-
key: t.key,
|
|
498
|
-
"aria-sort": t.sortDirection,
|
|
499
|
-
class: b(["bb-table-header", [t.classes, {
|
|
500
|
-
"bb-table-header--edge-start": n === 0,
|
|
501
|
-
"bb-table-header--edge-end": n === Ut.value.length - 1
|
|
502
|
-
}]]),
|
|
503
|
-
scope: "col"
|
|
504
|
-
}, [T(e.$slots, t.slotName, {
|
|
505
|
-
classes: t.classes,
|
|
506
|
-
items: O(It),
|
|
507
|
-
label: t.label
|
|
508
|
-
}, () => [v("span", we, E(t.label), 1)])], 10, Ce))), 128)),
|
|
509
|
-
e.actions ? (S(), _("th", {
|
|
510
|
-
key: 1,
|
|
511
|
-
class: b(["bb-table-header bb-table-header--actions", e.thClass]),
|
|
512
|
-
scope: "col"
|
|
513
|
-
}, [T(e.$slots, "header:actions", { text: e.actionsText }, () => [v("span", Te, E(e.actionsText), 1)])], 2)) : g("", !0)
|
|
514
|
-
], 8, ye)])]),
|
|
515
|
-
v("tbody", null, [jt.value ? T(e.$slots, "loading", {
|
|
516
|
-
key: 0,
|
|
517
|
-
items: O(It)
|
|
518
|
-
}, () => [(S(!0), _(m, null, w($t.value, (n, r) => (S(), _("tr", {
|
|
519
|
-
key: r,
|
|
520
|
-
"aria-rowindex": q.value ? r + 2 : void 0,
|
|
521
|
-
class: "bb-table-skeleton__row"
|
|
522
|
-
}, [
|
|
523
|
-
e.selectable ? (S(), _("td", De, t[1] ||= [v("div", { class: "bb-table-skeleton__placeholder" }, null, -1)])) : g("", !0),
|
|
524
|
-
(S(!0), _(m, null, w(A.columns, (e, n) => (S(), _("td", {
|
|
525
|
-
key: e.key,
|
|
526
|
-
class: b(["bb-table-skeleton__cell", `bb-table-skeleton__cell--${e.skeleton ?? "text"}`])
|
|
527
|
-
}, [!e.skeleton || e.skeleton === "text" ? (S(), _("div", Oe, [v("div", {
|
|
528
|
-
class: "bb-table-skeleton__line",
|
|
529
|
-
style: x({ width: `${$[(r + n) % 4]}%` })
|
|
530
|
-
}, null, 4), v("div", {
|
|
531
|
-
class: "bb-table-skeleton__line",
|
|
532
|
-
style: x({ width: `${$[(r + n + 2) % 4]}%` })
|
|
533
|
-
}, null, 4)])) : e.skeleton === "avatar" ? (S(), _("div", ke)) : e.skeleton === "avatar-text" ? (S(), _("div", Ae, [t[2] ||= v("div", { class: "bb-table-skeleton__avatar" }, null, -1), v("div", je, [v("div", {
|
|
534
|
-
class: "bb-table-skeleton__line",
|
|
535
|
-
style: x({ width: `${$[(r + n) % 4]}%` })
|
|
536
|
-
}, null, 4), v("div", {
|
|
537
|
-
class: "bb-table-skeleton__line",
|
|
538
|
-
style: x({ width: `${$[(r + n + 2) % 4]}%` })
|
|
539
|
-
}, null, 4)])])) : e.skeleton === "image" ? (S(), _("div", Me)) : e.skeleton === "badge" ? (S(), _("div", Ne)) : g("", !0)], 2))), 128)),
|
|
540
|
-
e.actions ? (S(), _("td", Pe, t[3] ||= [v("div", { class: "bb-table-skeleton__placeholder" }, null, -1)])) : g("", !0)
|
|
541
|
-
], 8, Ee))), 128)), v("tr", {
|
|
542
|
-
"aria-rowindex": q.value ? $t.value + 2 : void 0,
|
|
543
|
-
class: "bb-table-loading__row bb-table-loading__row--sr-only"
|
|
544
|
-
}, [v("td", {
|
|
545
|
-
colspan: Nt.value,
|
|
546
|
-
class: "bb-table-loading__cell",
|
|
547
|
-
"aria-live": "polite",
|
|
548
|
-
role: "status"
|
|
549
|
-
}, [v("span", Le, E(e.loadingText), 1)], 8, Ie)], 8, Fe)]) : O(J).length ? T(e.$slots, "tbody", { key: 2 }, () => [(S(!0), _(m, null, w(Wt.value, (t) => (S(), _(m, { key: t.valueHash }, [v("tr", {
|
|
550
|
-
"aria-rowindex": q.value && t.rowIndex ? t.rowIndex : void 0,
|
|
551
|
-
class: "bb-table-data__row",
|
|
552
|
-
onClick: t.onRowClick,
|
|
553
|
-
onContextmenu: t.onRowContextMenu,
|
|
554
|
-
onDblclick: t.onRowDblClick
|
|
555
|
-
}, [
|
|
556
|
-
e.selectable ? (S(), _("td", {
|
|
557
|
-
key: 0,
|
|
558
|
-
class: b(["bb-table-data__cell bb-table-data__cell--select", e.tdClass])
|
|
559
|
-
}, [T(e.$slots, "select", {
|
|
560
|
-
checked: Xt(t),
|
|
561
|
-
disabled: !!t.disabled,
|
|
562
|
-
inputName: O(qe),
|
|
563
|
-
item: t.item,
|
|
564
|
-
readonly: !!e.readonly,
|
|
565
|
-
value: t.value
|
|
566
|
-
}, () => [e.multiple ? (S(), _("label", {
|
|
567
|
-
key: 0,
|
|
568
|
-
class: b(["bb-table-check__label", { "bb-table-check__label--disabled": t.disabled }])
|
|
569
|
-
}, [ce(a, {
|
|
570
|
-
checked: Xt(t),
|
|
571
|
-
class: "bb-table-check",
|
|
572
|
-
disabled: t.disabled,
|
|
573
|
-
readonly: e.readonly,
|
|
574
|
-
onChange: () => Yt(t)
|
|
575
|
-
}, null, 8, [
|
|
576
|
-
"checked",
|
|
577
|
-
"disabled",
|
|
578
|
-
"readonly",
|
|
579
|
-
"onChange"
|
|
580
|
-
]), v("span", He, E(t.accessibleLabel), 1)], 2)) : (S(), _("label", {
|
|
581
|
-
key: 1,
|
|
582
|
-
class: b(["bb-table-radio__label", { "bb-table-radio__label--disabled": t.disabled }])
|
|
583
|
-
}, [ce(f, {
|
|
584
|
-
checked: t.selected,
|
|
585
|
-
class: "bb-table-radio",
|
|
586
|
-
disabled: t.disabled,
|
|
587
|
-
name: O(qe),
|
|
588
|
-
readonly: e.readonly,
|
|
589
|
-
value: t.value,
|
|
590
|
-
onChange: () => Yt(t)
|
|
591
|
-
}, null, 8, [
|
|
592
|
-
"checked",
|
|
593
|
-
"disabled",
|
|
594
|
-
"name",
|
|
595
|
-
"readonly",
|
|
596
|
-
"value",
|
|
597
|
-
"onChange"
|
|
598
|
-
]), v("span", Ue, E(t.accessibleLabel), 1)], 2))])], 2)) : g("", !0),
|
|
599
|
-
(S(!0), _(m, null, w(t.cols, (n, r) => (S(), _("td", {
|
|
600
|
-
key: n.key,
|
|
601
|
-
class: b(["bb-table-data__cell", [n.classes, {
|
|
602
|
-
"bb-table-data__cell--edge-start": r === 0,
|
|
603
|
-
"bb-table-data__cell--edge-end": r === t.cols.length - 1
|
|
604
|
-
}]])
|
|
605
|
-
}, [T(e.$slots, n.slotName, {
|
|
606
|
-
classes: n.classes,
|
|
607
|
-
content: n.content,
|
|
608
|
-
expanded: t.expanded,
|
|
609
|
-
item: t.item,
|
|
610
|
-
expandProps: qt(t),
|
|
611
|
-
toggleExpanded: () => Z(t.valueHash),
|
|
612
|
-
value: t.value
|
|
613
|
-
}, () => [se(E(n.content), 1)])], 2))), 128)),
|
|
614
|
-
e.actions ? (S(), _("td", {
|
|
615
|
-
key: 1,
|
|
616
|
-
class: b(["bb-table__cell bb-table__cell--actions", e.tdClass])
|
|
617
|
-
}, [T(e.$slots, "actions", {
|
|
618
|
-
expanded: t.expanded,
|
|
619
|
-
item: t.item,
|
|
620
|
-
expandProps: qt(t),
|
|
621
|
-
toggleExpanded: () => Z(t.valueHash),
|
|
622
|
-
value: t.value
|
|
623
|
-
})], 2)) : g("", !0)
|
|
624
|
-
], 40, Ve), t.expanded ? (S(), _("tr", {
|
|
625
|
-
key: 0,
|
|
626
|
-
"aria-rowindex": q.value && t.rowIndex ? t.rowIndex + 1 : void 0,
|
|
627
|
-
id: `expanded_${t.valueHash}`,
|
|
628
|
-
class: "bb-table-expand__row"
|
|
629
|
-
}, [v("td", {
|
|
630
|
-
colspan: Nt.value,
|
|
631
|
-
class: "bb-table-expand__cell"
|
|
632
|
-
}, [T(e.$slots, "expand", {
|
|
633
|
-
expanded: t.expanded,
|
|
634
|
-
item: t.item,
|
|
635
|
-
expandProps: qt(t),
|
|
636
|
-
toggleExpanded: () => Z(t.valueHash),
|
|
637
|
-
value: t.value
|
|
638
|
-
})], 8, Ge)], 8, We)) : g("", !0)], 64))), 128))]) : T(e.$slots, "no-data", { key: 1 }, () => [v("tr", {
|
|
639
|
-
"aria-rowindex": q.value ? 2 : void 0,
|
|
640
|
-
class: "bb-table-no-data__row"
|
|
641
|
-
}, [v("td", {
|
|
642
|
-
class: "bb-table-no-data__cell",
|
|
643
|
-
colspan: Nt.value
|
|
644
|
-
}, [v("span", Be, E(e.noDataText || O(M)("table.noDataText").value), 1)], 8, ze)], 8, Re)])]),
|
|
645
|
-
v("tfoot", null, [T(e.$slots, "tfoot")])
|
|
646
|
-
], 512),
|
|
647
|
-
(S(!0), _(m, null, w(Qt.value, (e) => (S(), _("input", ue({
|
|
648
|
-
key: e.value,
|
|
649
|
-
ref_for: !0
|
|
650
|
-
}, e), null, 16))), 128))
|
|
651
|
-
]),
|
|
652
|
-
_: 3
|
|
653
|
-
}, 8, [
|
|
654
|
-
"id",
|
|
655
|
-
"aria-busy",
|
|
656
|
-
"aria-rowcount",
|
|
657
|
-
"class",
|
|
658
|
-
"data-bb-table-id",
|
|
659
|
-
"inert",
|
|
660
|
-
"style"
|
|
661
|
-
]));
|
|
662
|
-
}
|
|
663
|
-
});
|
|
664
|
-
//#endregion
|
|
665
|
-
export { Ke as default };
|
|
1
|
+
import { __module as k } from "./index329.js";
|
|
2
|
+
var nt = k.exports, G;
|
|
3
|
+
function it() {
|
|
4
|
+
return G ? k.exports : (G = 1, function(I, ot) {
|
|
5
|
+
(function(E, F) {
|
|
6
|
+
I.exports = F();
|
|
7
|
+
})(nt, function() {
|
|
8
|
+
var E = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, F = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, Q = /\d/, L = /\d\d/, s = /\d\d?/, x = /\d*[^-_:/,()\s\d]+/, m = {}, X = function(t) {
|
|
9
|
+
return (t = +t) + (t > 68 ? 1900 : 2e3);
|
|
10
|
+
}, o = function(t) {
|
|
11
|
+
return function(r) {
|
|
12
|
+
this[t] = +r;
|
|
13
|
+
};
|
|
14
|
+
}, R = [/[+-]\d\d:?(\d\d)?|Z/, function(t) {
|
|
15
|
+
(this.zone || (this.zone = {})).offset = function(r) {
|
|
16
|
+
if (!r || r === "Z") return 0;
|
|
17
|
+
var e = r.match(/([+-]|\d\d)/g), n = 60 * e[1] + (+e[2] || 0);
|
|
18
|
+
return n === 0 ? 0 : e[0] === "+" ? -n : n;
|
|
19
|
+
}(t);
|
|
20
|
+
}], P = function(t) {
|
|
21
|
+
var r = m[t];
|
|
22
|
+
return r && (r.indexOf ? r : r.s.concat(r.f));
|
|
23
|
+
}, V = function(t, r) {
|
|
24
|
+
var e, n = m.meridiem;
|
|
25
|
+
if (n) {
|
|
26
|
+
for (var f = 1; f <= 24; f += 1) if (t.indexOf(n(f, 0, r)) > -1) {
|
|
27
|
+
e = f > 12;
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
} else e = t === (r ? "pm" : "PM");
|
|
31
|
+
return e;
|
|
32
|
+
}, J = { A: [x, function(t) {
|
|
33
|
+
this.afternoon = V(t, !1);
|
|
34
|
+
}], a: [x, function(t) {
|
|
35
|
+
this.afternoon = V(t, !0);
|
|
36
|
+
}], Q: [Q, function(t) {
|
|
37
|
+
this.month = 3 * (t - 1) + 1;
|
|
38
|
+
}], S: [Q, function(t) {
|
|
39
|
+
this.milliseconds = 100 * +t;
|
|
40
|
+
}], SS: [L, function(t) {
|
|
41
|
+
this.milliseconds = 10 * +t;
|
|
42
|
+
}], SSS: [/\d{3}/, function(t) {
|
|
43
|
+
this.milliseconds = +t;
|
|
44
|
+
}], s: [s, o("seconds")], ss: [s, o("seconds")], m: [s, o("minutes")], mm: [s, o("minutes")], H: [s, o("hours")], h: [s, o("hours")], HH: [s, o("hours")], hh: [s, o("hours")], D: [s, o("day")], DD: [L, o("day")], Do: [x, function(t) {
|
|
45
|
+
var r = m.ordinal, e = t.match(/\d+/);
|
|
46
|
+
if (this.day = e[0], r) for (var n = 1; n <= 31; n += 1) r(n).replace(/\[|\]/g, "") === t && (this.day = n);
|
|
47
|
+
}], w: [s, o("week")], ww: [L, o("week")], M: [s, o("month")], MM: [L, o("month")], MMM: [x, function(t) {
|
|
48
|
+
var r = P("months"), e = (P("monthsShort") || r.map(function(n) {
|
|
49
|
+
return n.slice(0, 3);
|
|
50
|
+
})).indexOf(t) + 1;
|
|
51
|
+
if (e < 1) throw new Error();
|
|
52
|
+
this.month = e % 12 || e;
|
|
53
|
+
}], MMMM: [x, function(t) {
|
|
54
|
+
var r = P("months").indexOf(t) + 1;
|
|
55
|
+
if (r < 1) throw new Error();
|
|
56
|
+
this.month = r % 12 || r;
|
|
57
|
+
}], Y: [/[+-]?\d+/, o("year")], YY: [L, function(t) {
|
|
58
|
+
this.year = X(t);
|
|
59
|
+
}], YYYY: [/\d{4}/, o("year")], Z: R, ZZ: R };
|
|
60
|
+
function K(t) {
|
|
61
|
+
var r, e;
|
|
62
|
+
r = t, e = m && m.formats;
|
|
63
|
+
for (var n = (t = r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(v, l, u) {
|
|
64
|
+
var i = u && u.toUpperCase();
|
|
65
|
+
return l || e[u] || E[u] || e[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(M, Y, D) {
|
|
66
|
+
return Y || D.slice(1);
|
|
67
|
+
});
|
|
68
|
+
})).match(F), f = n.length, h = 0; h < f; h += 1) {
|
|
69
|
+
var $ = n[h], p = J[$], c = p && p[0], d = p && p[1];
|
|
70
|
+
n[h] = d ? { regex: c, parser: d } : $.replace(/^\[|\]$/g, "");
|
|
71
|
+
}
|
|
72
|
+
return function(v) {
|
|
73
|
+
for (var l = {}, u = 0, i = 0; u < f; u += 1) {
|
|
74
|
+
var M = n[u];
|
|
75
|
+
if (typeof M == "string") i += M.length;
|
|
76
|
+
else {
|
|
77
|
+
var Y = M.regex, D = M.parser, y = v.slice(i), g = Y.exec(y)[0];
|
|
78
|
+
D.call(l, g), v = v.replace(g, "");
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return function(w) {
|
|
82
|
+
var S = w.afternoon;
|
|
83
|
+
if (S !== void 0) {
|
|
84
|
+
var a = w.hours;
|
|
85
|
+
S ? a < 12 && (w.hours += 12) : a === 12 && (w.hours = 0), delete w.afternoon;
|
|
86
|
+
}
|
|
87
|
+
}(l), l;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
return function(t, r, e) {
|
|
91
|
+
e.p.customParseFormat = !0, t && t.parseTwoDigitYear && (X = t.parseTwoDigitYear);
|
|
92
|
+
var n = r.prototype, f = n.parse;
|
|
93
|
+
n.parse = function(h) {
|
|
94
|
+
var $ = h.date, p = h.utc, c = h.args;
|
|
95
|
+
this.$u = p;
|
|
96
|
+
var d = c[1];
|
|
97
|
+
if (typeof d == "string") {
|
|
98
|
+
var v = c[2] === !0, l = c[3] === !0, u = v || l, i = c[2];
|
|
99
|
+
l && (i = c[2]), m = this.$locale(), !v && i && (m = e.Ls[i]), this.$d = function(y, g, w, S) {
|
|
100
|
+
try {
|
|
101
|
+
if (["x", "X"].indexOf(g) > -1) return new Date((g === "X" ? 1e3 : 1) * y);
|
|
102
|
+
var a = K(g)(y), _ = a.year, A = a.month, N = a.day, W = a.hours, tt = a.minutes, rt = a.seconds, et = a.milliseconds, j = a.zone, B = a.week, C = /* @__PURE__ */ new Date(), H = N || (_ || A ? 1 : C.getDate()), O = _ || C.getFullYear(), T = 0;
|
|
103
|
+
_ && !A || (T = A > 0 ? A - 1 : C.getMonth());
|
|
104
|
+
var Z, z = W || 0, q = tt || 0, U = rt || 0, b = et || 0;
|
|
105
|
+
return j ? new Date(Date.UTC(O, T, H, z, q, U, b + 60 * j.offset * 1e3)) : w ? new Date(Date.UTC(O, T, H, z, q, U, b)) : (Z = new Date(O, T, H, z, q, U, b), B && (Z = S(Z).week(B).toDate()), Z);
|
|
106
|
+
} catch {
|
|
107
|
+
return /* @__PURE__ */ new Date("");
|
|
108
|
+
}
|
|
109
|
+
}($, d, p, e), this.init(), i && i !== !0 && (this.$L = this.locale(i).$L), u && $ != this.format(d) && (this.$d = /* @__PURE__ */ new Date("")), m = {};
|
|
110
|
+
} else if (d instanceof Array) for (var M = d.length, Y = 1; Y <= M; Y += 1) {
|
|
111
|
+
c[1] = d[Y - 1];
|
|
112
|
+
var D = e.apply(this, c);
|
|
113
|
+
if (D.isValid()) {
|
|
114
|
+
this.$d = D.$d, this.$L = D.$L, this.init();
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
Y === M && (this.$d = /* @__PURE__ */ new Date(""));
|
|
118
|
+
}
|
|
119
|
+
else f.call(this, h);
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
});
|
|
123
|
+
}(k), k.exports);
|
|
124
|
+
}
|
|
125
|
+
export {
|
|
126
|
+
it as __require
|
|
127
|
+
};
|