bitboss-ui 0.2.76 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +4 -0
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +10 -3
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +4 -1
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +10 -4
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +9 -0
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +4 -0
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +4 -0
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +10 -3
- package/dist/components/BaseRating/BaseRating.vue.d.ts +5 -1
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +4 -0
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +48 -11
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +6 -3
- package/dist/components/BaseTag/BaseTag.vue.d.ts +4 -0
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +10 -6
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +4 -0
- package/dist/components/BbButton/BbButton.vue.d.ts +12 -0
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +35 -27
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +38 -24
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +15 -3
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +33 -25
- package/dist/components/BbRadio/BbRadio.vue.d.ts +33 -25
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +38 -24
- package/dist/components/BbRating/BbRating.vue.d.ts +9 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +18 -4
- package/dist/components/BbSlider/BbSlider.vue.d.ts +44 -11
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +9 -3
- package/dist/components/BbTag/BbTag.vue.d.ts +11 -3
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +33 -25
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +9 -1
- package/dist/composables/useQueue.d.ts +58 -0
- package/dist/index.js +186 -185
- package/dist/index.js.map +1 -1
- package/dist/index10.js +65 -1
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +227 -1
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +1 -437
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +437 -1
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +1 -94
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +103 -1
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +1 -88
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +97 -1
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +1 -89
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +98 -1
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +1 -29
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +1 -131
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +29 -1
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +1 -151
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +151 -1
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +1 -122
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +122 -1
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +1 -46
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +40 -33
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +32 -39
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +39 -42
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +43 -39
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +128 -1
- package/dist/index12.js.map +1 -1
- package/dist/index120.js +43 -2
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +2 -21
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +21 -2
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +2 -224
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +224 -2
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +2 -18
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +16 -10
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +12 -24
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +24 -5
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +5 -9
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +1 -159
- package/dist/index13.js.map +1 -1
- package/dist/index130.js +8 -5
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +5 -69
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +70 -3
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +2 -2
- package/dist/index134.js +2 -2
- package/dist/index135.js +2 -2
- package/dist/index136.js +2 -2
- package/dist/index137.js +2 -2
- package/dist/index138.js +2 -2
- package/dist/index139.js +2 -2
- package/dist/index14.js +161 -1
- package/dist/index14.js.map +1 -1
- package/dist/index140.js +2 -2
- package/dist/index141.js +2 -2
- package/dist/index142.js +2 -2
- package/dist/index143.js +2 -2
- package/dist/index144.js +2 -2
- package/dist/index145.js +2 -2
- package/dist/index146.js +2 -2
- package/dist/index147.js +2 -2
- package/dist/index148.js +2 -2
- package/dist/index149.js +2 -2
- package/dist/index15.js +1 -457
- package/dist/index15.js.map +1 -1
- package/dist/index150.js +2 -2
- package/dist/index151.js +2 -2
- package/dist/index152.js +2 -2
- package/dist/index153.js +2 -2
- package/dist/index154.js +2 -2
- package/dist/index155.js +2 -2
- package/dist/index156.js +2 -2
- package/dist/index157.js +2 -2
- package/dist/index158.js +5 -1
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +1 -5
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +514 -1
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +5 -1
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +1 -5
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +2 -2
- package/dist/index163.js +2 -2
- package/dist/index164.js +2 -2
- package/dist/index165.js +2 -2
- package/dist/index166.js +2 -2
- package/dist/index167.js +3 -2
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +2 -3
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +5 -1
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +1 -211
- package/dist/index17.js.map +1 -1
- package/dist/index170.js +1 -4
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +2 -3
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +2 -2
- package/dist/index173.js +2 -2
- package/dist/index174.js +2 -2
- package/dist/index175.js +2 -2
- package/dist/index176.js +2 -2
- package/dist/index177.js +2 -2
- package/dist/index178.js +2 -2
- package/dist/index179.js +2 -2
- package/dist/index18.js +220 -1
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +2 -2
- package/dist/index181.js +2 -2
- package/dist/index182.js +2 -2
- package/dist/index183.js +5 -1
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +1 -5
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +5 -1
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +1 -5
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +2 -2
- package/dist/index188.js +2 -2
- package/dist/index189.js +2 -2
- package/dist/index19.js +1 -239
- package/dist/index19.js.map +1 -1
- package/dist/index190.js +2 -2
- package/dist/index191.js +2 -2
- package/dist/index192.js +2 -2
- package/dist/index193.js +2 -2
- package/dist/index194.js +2 -2
- package/dist/index195.js +2 -2
- package/dist/index196.js +3 -10
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +3 -2
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +3 -3
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +2 -3
- package/dist/index199.js.map +1 -1
- package/dist/index2.js +1 -42
- package/dist/index2.js.map +1 -1
- package/dist/index20.js +239 -1
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +4 -368
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +2 -134
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +2 -5
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +2 -19
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +121 -2
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +2 -2
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +2 -174
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +6 -23
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +345 -350
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +371 -14
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +1 -115
- package/dist/index21.js.map +1 -1
- package/dist/index210.js +3 -16
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +35 -20
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +130 -25
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +5 -8
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +18 -234
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +174 -3
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +16 -35
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +16 -6
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +20 -2
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +29 -2
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +131 -1
- package/dist/index22.js.map +1 -1
- package/dist/index220.js +8 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +226 -112
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +10 -2
- package/dist/index222.js.map +1 -1
- package/dist/index224.js +23 -6
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +224 -17
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +253 -74
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +4 -2
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +6 -160
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +19 -1
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -115
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +106 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +433 -67
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +83 -218
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +74 -253
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +2 -6
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +69 -2
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +163 -294
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +1 -4
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +117 -2
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +199 -116
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +119 -1
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +5 -105
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +2 -15
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +295 -2
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +2 -2
- package/dist/index245.js +5 -2
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +2 -435
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +2 -89
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +2 -200
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +2 -4
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +1 -92
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +1 -1
- package/dist/index251.js +15 -4
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +4 -4
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +4 -61
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +61 -2
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +2 -3
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +3 -2
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +5 -0
- package/dist/index257.js.map +1 -0
- package/dist/index26.js +94 -1
- package/dist/index26.js.map +1 -1
- package/dist/index27.js +1 -157
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +160 -1
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +1 -124
- package/dist/index29.js.map +1 -1
- package/dist/index3.js +38 -76
- package/dist/index3.js.map +1 -1
- package/dist/index30.js +126 -1
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +1 -691
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +693 -1
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +1 -145
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +302 -1
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +1 -118
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +120 -1
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +1 -154
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +156 -1
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +1 -83
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +78 -62
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +87 -1
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +1 -61
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +64 -1
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +1 -65
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +65 -1
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +1 -96
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +96 -1
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +1 -61
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +61 -1
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +1 -49
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +60 -38
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +49 -1
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +1 -62
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +62 -1
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +1 -45
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +69 -1
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +1 -89
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +98 -1
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +1 -120
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +129 -1
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +1 -85
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +37 -171
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +85 -1
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +1 -88
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +98 -1
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +1 -59
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +59 -1
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +1 -313
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +313 -1
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +1 -129
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +129 -1
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +1 -225
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +172 -18
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +225 -1
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +1 -24
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +19 -41
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +37 -86
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +104 -1
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +1 -227
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +227 -1
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +1 -143
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +165 -1
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +1 -213
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +18 -192
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +213 -1
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +1 -35
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +35 -1
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +1 -83
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +92 -1
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +1 -120
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +129 -1
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +1 -83
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +92 -1
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +1 -30
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +192 -61
- package/dist/index9.js.map +1 -1
- package/dist/index90.js +30 -1
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +1 -157
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +166 -1
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +1 -86
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +112 -1
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +1 -89
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +98 -1
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +1 -119
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +129 -1
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +1 -227
- package/dist/index99.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utilities/functions/last.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
type Resolvers = Record<string, (arg: any) => any>;
|
|
2
|
+
type Jobs<T extends Resolvers> = {
|
|
3
|
+
[Name in keyof T]: Parameters<T[Name]> extends [infer Arg] ? {
|
|
4
|
+
type: Name;
|
|
5
|
+
params: Arg;
|
|
6
|
+
} : {
|
|
7
|
+
type: Name;
|
|
8
|
+
};
|
|
9
|
+
}[keyof T];
|
|
10
|
+
type OnSuccess<T extends Resolvers> = (data: {
|
|
11
|
+
[Name in keyof T]: {
|
|
12
|
+
data: Parameters<T[Name]> extends [infer Arg] ? {
|
|
13
|
+
type: Name;
|
|
14
|
+
params: Arg;
|
|
15
|
+
result: Awaited<ReturnType<T[Name]>>;
|
|
16
|
+
} : {
|
|
17
|
+
type: Name;
|
|
18
|
+
result: Awaited<ReturnType<T[Name]>>;
|
|
19
|
+
};
|
|
20
|
+
}['data'];
|
|
21
|
+
}[keyof T]) => void;
|
|
22
|
+
type OnError<T extends Resolvers> = (data: {
|
|
23
|
+
[Name in keyof T]: {
|
|
24
|
+
data: Parameters<T[Name]> extends [infer Arg] ? {
|
|
25
|
+
type: Name;
|
|
26
|
+
params: Arg;
|
|
27
|
+
error: any;
|
|
28
|
+
} : {
|
|
29
|
+
type: Name;
|
|
30
|
+
error: any;
|
|
31
|
+
};
|
|
32
|
+
}['data'];
|
|
33
|
+
}[keyof T]) => void;
|
|
34
|
+
type OnCompleted<T extends Resolvers> = (data: {
|
|
35
|
+
[Name in keyof T]: {
|
|
36
|
+
data: Parameters<T[Name]> extends [infer Arg] ? {
|
|
37
|
+
type: Name;
|
|
38
|
+
params: Arg;
|
|
39
|
+
} : {
|
|
40
|
+
type: Name;
|
|
41
|
+
};
|
|
42
|
+
}['data'];
|
|
43
|
+
}[keyof T]) => void;
|
|
44
|
+
type OnCleared = () => any;
|
|
45
|
+
type Params<T extends Resolvers> = {
|
|
46
|
+
resolvers: T;
|
|
47
|
+
concurrency?: number;
|
|
48
|
+
onSuccess?: OnSuccess<T>;
|
|
49
|
+
onError?: OnError<T>;
|
|
50
|
+
onCleared?: OnCleared;
|
|
51
|
+
onCompleted?: OnCompleted<T>;
|
|
52
|
+
};
|
|
53
|
+
export declare const useQueue: <T extends Resolvers>({ resolvers, onSuccess, onCleared, onError, onCompleted, concurrency, }: Params<T>) => {
|
|
54
|
+
addJobs: (...job: Jobs<T>[]) => void;
|
|
55
|
+
addIf: (job: Jobs<T>, iteratee: (arr: Jobs<T>[]) => boolean) => void;
|
|
56
|
+
filterJobs: (iteratee: (element: Jobs<T>, index: number, arr: Jobs<T>[]) => boolean) => void;
|
|
57
|
+
};
|
|
58
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -1,188 +1,189 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import "./index10.js";
|
|
10
|
-
import
|
|
11
|
-
import "./index12.js";
|
|
12
|
-
import
|
|
13
|
-
import "./index14.js";
|
|
14
|
-
import
|
|
15
|
-
import "./index16.js";
|
|
16
|
-
import
|
|
17
|
-
import "./index18.js";
|
|
18
|
-
import
|
|
19
|
-
import "./index20.js";
|
|
20
|
-
import
|
|
21
|
-
import "./index22.js";
|
|
22
|
-
import
|
|
23
|
-
import "./index24.js";
|
|
24
|
-
import
|
|
25
|
-
import "./index26.js";
|
|
26
|
-
import
|
|
27
|
-
import "./index28.js";
|
|
28
|
-
import
|
|
29
|
-
import "./index30.js";
|
|
30
|
-
import
|
|
31
|
-
import "./index32.js";
|
|
32
|
-
import
|
|
33
|
-
import "./index34.js";
|
|
34
|
-
import
|
|
35
|
-
import "./index36.js";
|
|
36
|
-
import
|
|
37
|
-
import "./index38.js";
|
|
38
|
-
import
|
|
39
|
-
import "./index40.js";
|
|
40
|
-
import
|
|
41
|
-
import "./index42.js";
|
|
42
|
-
import
|
|
43
|
-
import "./index44.js";
|
|
44
|
-
import
|
|
45
|
-
import "./index46.js";
|
|
46
|
-
import
|
|
47
|
-
import "./index48.js";
|
|
48
|
-
import
|
|
49
|
-
import "./index50.js";
|
|
50
|
-
import
|
|
51
|
-
import "./index52.js";
|
|
52
|
-
import
|
|
53
|
-
import "./index54.js";
|
|
54
|
-
import
|
|
55
|
-
import "./index56.js";
|
|
56
|
-
import
|
|
57
|
-
import "./index58.js";
|
|
58
|
-
import
|
|
59
|
-
import "./index60.js";
|
|
60
|
-
import
|
|
61
|
-
import "./index62.js";
|
|
62
|
-
import
|
|
63
|
-
import "./index64.js";
|
|
64
|
-
import
|
|
65
|
-
import "./index66.js";
|
|
66
|
-
import
|
|
67
|
-
import "./index68.js";
|
|
68
|
-
import
|
|
69
|
-
import "./index70.js";
|
|
70
|
-
import
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
73
|
-
import "./index74.js";
|
|
74
|
-
import
|
|
75
|
-
import "./index76.js";
|
|
76
|
-
import
|
|
77
|
-
import "./index78.js";
|
|
78
|
-
import
|
|
79
|
-
import "./index80.js";
|
|
80
|
-
import
|
|
81
|
-
import "./index82.js";
|
|
82
|
-
import
|
|
83
|
-
import "./index84.js";
|
|
84
|
-
import
|
|
85
|
-
import "./index86.js";
|
|
86
|
-
import
|
|
87
|
-
import "./index88.js";
|
|
88
|
-
import
|
|
89
|
-
import "./index90.js";
|
|
90
|
-
import
|
|
91
|
-
import "./index92.js";
|
|
92
|
-
import
|
|
93
|
-
import "./index94.js";
|
|
94
|
-
import
|
|
95
|
-
import "./index96.js";
|
|
96
|
-
import
|
|
97
|
-
import "./index98.js";
|
|
98
|
-
import
|
|
99
|
-
import "./index100.js";
|
|
100
|
-
import
|
|
101
|
-
import "./index102.js";
|
|
102
|
-
import
|
|
103
|
-
import "./index104.js";
|
|
104
|
-
import
|
|
105
|
-
import "./index106.js";
|
|
106
|
-
import
|
|
107
|
-
import "./index108.js";
|
|
108
|
-
import
|
|
109
|
-
import "./index110.js";
|
|
110
|
-
import
|
|
111
|
-
import "./index112.js";
|
|
112
|
-
import
|
|
113
|
-
import "./index114.js";
|
|
114
|
-
import
|
|
115
|
-
import { default as
|
|
116
|
-
import { default as
|
|
117
|
-
import { default as
|
|
118
|
-
import { default as
|
|
1
|
+
import "./index2.js";
|
|
2
|
+
import { useBroadcastChannelInstance as to } from "./index3.js";
|
|
3
|
+
import { useConfirm as eo } from "./index4.js";
|
|
4
|
+
import { useCountdown as po } from "./index5.js";
|
|
5
|
+
import { useToast as mo } from "./index6.js";
|
|
6
|
+
import { useOptions as io } from "./index7.js";
|
|
7
|
+
import { useId as xo } from "./index8.js";
|
|
8
|
+
import { useWizard as Bo, wizardInjectionKey as bo } from "./index9.js";
|
|
9
|
+
import { default as co } from "./index10.js";
|
|
10
|
+
import "./index11.js";
|
|
11
|
+
import { default as Co } from "./index12.js";
|
|
12
|
+
import "./index13.js";
|
|
13
|
+
import { default as To } from "./index14.js";
|
|
14
|
+
import "./index15.js";
|
|
15
|
+
import { default as go } from "./index16.js";
|
|
16
|
+
import "./index17.js";
|
|
17
|
+
import { default as Do } from "./index18.js";
|
|
18
|
+
import "./index19.js";
|
|
19
|
+
import { default as Ro } from "./index20.js";
|
|
20
|
+
import "./index21.js";
|
|
21
|
+
import { default as Po } from "./index22.js";
|
|
22
|
+
import "./index23.js";
|
|
23
|
+
import { default as zo } from "./index24.js";
|
|
24
|
+
import "./index25.js";
|
|
25
|
+
import { default as Ho } from "./index26.js";
|
|
26
|
+
import "./index27.js";
|
|
27
|
+
import { default as Oo } from "./index28.js";
|
|
28
|
+
import "./index29.js";
|
|
29
|
+
import { default as yo } from "./index30.js";
|
|
30
|
+
import "./index31.js";
|
|
31
|
+
import { default as Wo } from "./index32.js";
|
|
32
|
+
import "./index33.js";
|
|
33
|
+
import { default as Eo } from "./index34.js";
|
|
34
|
+
import "./index35.js";
|
|
35
|
+
import { default as Jo } from "./index36.js";
|
|
36
|
+
import "./index37.js";
|
|
37
|
+
import { default as Mo } from "./index38.js";
|
|
38
|
+
import "./index39.js";
|
|
39
|
+
import { default as Uo } from "./index40.js";
|
|
40
|
+
import "./index41.js";
|
|
41
|
+
import { default as Xo } from "./index42.js";
|
|
42
|
+
import "./index43.js";
|
|
43
|
+
import { default as Zo } from "./index44.js";
|
|
44
|
+
import "./index45.js";
|
|
45
|
+
import { default as $o } from "./index46.js";
|
|
46
|
+
import "./index47.js";
|
|
47
|
+
import { default as tt } from "./index48.js";
|
|
48
|
+
import "./index49.js";
|
|
49
|
+
import { default as et } from "./index50.js";
|
|
50
|
+
import "./index51.js";
|
|
51
|
+
import { default as pt } from "./index52.js";
|
|
52
|
+
import "./index53.js";
|
|
53
|
+
import { default as mt } from "./index54.js";
|
|
54
|
+
import "./index55.js";
|
|
55
|
+
import { default as it } from "./index56.js";
|
|
56
|
+
import "./index57.js";
|
|
57
|
+
import { default as dt } from "./index58.js";
|
|
58
|
+
import "./index59.js";
|
|
59
|
+
import { default as lt } from "./index60.js";
|
|
60
|
+
import "./index61.js";
|
|
61
|
+
import { default as bt } from "./index62.js";
|
|
62
|
+
import "./index63.js";
|
|
63
|
+
import { default as ct } from "./index64.js";
|
|
64
|
+
import "./index65.js";
|
|
65
|
+
import { default as Ct } from "./index66.js";
|
|
66
|
+
import "./index67.js";
|
|
67
|
+
import { default as Tt } from "./index68.js";
|
|
68
|
+
import "./index69.js";
|
|
69
|
+
import { default as gt } from "./index70.js";
|
|
70
|
+
import "./index71.js";
|
|
71
|
+
import { default as Dt } from "./index72.js";
|
|
72
|
+
import { default as Rt } from "./index73.js";
|
|
73
|
+
import { default as Pt } from "./index74.js";
|
|
74
|
+
import "./index75.js";
|
|
75
|
+
import { default as zt } from "./index76.js";
|
|
76
|
+
import "./index77.js";
|
|
77
|
+
import { default as Ht } from "./index78.js";
|
|
78
|
+
import "./index79.js";
|
|
79
|
+
import { default as Ot } from "./index80.js";
|
|
80
|
+
import "./index81.js";
|
|
81
|
+
import { default as yt } from "./index82.js";
|
|
82
|
+
import "./index83.js";
|
|
83
|
+
import { default as Wt } from "./index84.js";
|
|
84
|
+
import "./index85.js";
|
|
85
|
+
import { default as Et } from "./index86.js";
|
|
86
|
+
import "./index87.js";
|
|
87
|
+
import { default as Jt } from "./index88.js";
|
|
88
|
+
import "./index89.js";
|
|
89
|
+
import { default as Mt } from "./index90.js";
|
|
90
|
+
import "./index91.js";
|
|
91
|
+
import { default as Ut } from "./index92.js";
|
|
92
|
+
import "./index93.js";
|
|
93
|
+
import { default as Xt } from "./index94.js";
|
|
94
|
+
import "./index95.js";
|
|
95
|
+
import { default as Zt } from "./index96.js";
|
|
96
|
+
import "./index97.js";
|
|
97
|
+
import { default as $t } from "./index98.js";
|
|
98
|
+
import "./index99.js";
|
|
99
|
+
import { default as tr } from "./index100.js";
|
|
100
|
+
import "./index101.js";
|
|
101
|
+
import { default as er } from "./index102.js";
|
|
102
|
+
import "./index103.js";
|
|
103
|
+
import { default as pr } from "./index104.js";
|
|
104
|
+
import "./index105.js";
|
|
105
|
+
import { default as mr } from "./index106.js";
|
|
106
|
+
import "./index107.js";
|
|
107
|
+
import { default as ir } from "./index108.js";
|
|
108
|
+
import "./index109.js";
|
|
109
|
+
import { default as dr } from "./index110.js";
|
|
110
|
+
import "./index111.js";
|
|
111
|
+
import { default as lr } from "./index112.js";
|
|
112
|
+
import "./index113.js";
|
|
113
|
+
import { default as br } from "./index114.js";
|
|
114
|
+
import "./index115.js";
|
|
115
|
+
import { default as cr } from "./index116.js";
|
|
116
|
+
import { default as Cr } from "./index117.js";
|
|
117
|
+
import { default as Tr } from "./index118.js";
|
|
118
|
+
import { default as gr } from "./index119.js";
|
|
119
|
+
import { default as Dr } from "./index120.js";
|
|
119
120
|
export {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
121
|
+
co as BaseButton,
|
|
122
|
+
Co as BaseCheckbox,
|
|
123
|
+
To as BaseCheckboxGroup,
|
|
124
|
+
go as BaseDatePicker,
|
|
125
|
+
Do as BaseDatePickerInput,
|
|
126
|
+
Ro as BaseDialog,
|
|
127
|
+
Po as BaseInputContainer,
|
|
128
|
+
zo as BaseNumberInput,
|
|
129
|
+
Ho as BaseRadio,
|
|
130
|
+
Oo as BaseRadioGroup,
|
|
131
|
+
yo as BaseRating,
|
|
132
|
+
Wo as BaseSelect,
|
|
133
|
+
Eo as BaseSlider,
|
|
134
|
+
Jo as BaseSwitch,
|
|
135
|
+
Mo as BaseSwitchGroup,
|
|
136
|
+
Xo as BaseTextInput,
|
|
137
|
+
Uo as BaseTextarea,
|
|
138
|
+
Zo as BbAccordion,
|
|
139
|
+
$o as BbAlert,
|
|
140
|
+
tt as BbAvatar,
|
|
141
|
+
et as BbBadge,
|
|
142
|
+
pt as BbBreadcrumbs,
|
|
143
|
+
mt as BbButton,
|
|
144
|
+
it as BbCheckbox,
|
|
145
|
+
dt as BbCheckboxGroup,
|
|
146
|
+
cr as BbChip,
|
|
147
|
+
Cr as BbCollapsible,
|
|
148
|
+
lt as BbConfirm,
|
|
149
|
+
bt as BbDatePickerInput,
|
|
150
|
+
ct as BbDialog,
|
|
151
|
+
Ct as BbDropdown,
|
|
152
|
+
Tt as BbDropdownButton,
|
|
153
|
+
gt as BbDropzone,
|
|
154
|
+
Dt as BbHover,
|
|
155
|
+
Tr as BbIcon,
|
|
156
|
+
Rt as BbIntersection,
|
|
157
|
+
Pt as BbNumberInput,
|
|
158
|
+
zt as BbOffCanvas,
|
|
159
|
+
Ht as BbPagination,
|
|
160
|
+
Ot as BbPopover,
|
|
161
|
+
yt as BbProgress,
|
|
162
|
+
Wt as BbRadio,
|
|
163
|
+
Et as BbRadioGroup,
|
|
164
|
+
Jt as BbRating,
|
|
165
|
+
Mt as BbRatio,
|
|
166
|
+
Ut as BbSelect,
|
|
167
|
+
Xt as BbSlider,
|
|
168
|
+
gr as BbSmoothHeight,
|
|
169
|
+
Dr as BbSpinner,
|
|
170
|
+
Zt as BbSwitch,
|
|
171
|
+
$t as BbSwitchGroup,
|
|
172
|
+
tr as BbTab,
|
|
173
|
+
er as BbTable,
|
|
174
|
+
pr as BbTag,
|
|
175
|
+
ir as BbTextInput,
|
|
176
|
+
mr as BbTextarea,
|
|
177
|
+
dr as BbToast,
|
|
178
|
+
lr as BbTooltip,
|
|
179
|
+
br as BbTree,
|
|
180
|
+
to as useBroadcastChannelInstance,
|
|
181
|
+
eo as useConfirm,
|
|
182
|
+
po as useCountdown,
|
|
183
|
+
xo as useId,
|
|
184
|
+
io as useOptions,
|
|
185
|
+
mo as useToast,
|
|
186
|
+
Bo as useWizard,
|
|
187
|
+
bo as wizardInjectionKey
|
|
187
188
|
};
|
|
188
189
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index10.js
CHANGED
|
@@ -1,2 +1,66 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineComponent as v, getCurrentInstance as c, computed as n, resolveComponent as u, openBlock as y, createBlock as k, resolveDynamicComponent as C, mergeProps as g, withCtx as h, renderSlot as m, createTextVNode as S, toDisplayString as x } from "vue";
|
|
2
|
+
const A = /* @__PURE__ */ v({
|
|
3
|
+
__name: "BaseButton",
|
|
4
|
+
props: {
|
|
5
|
+
activeClass: {},
|
|
6
|
+
ariaCurrentValue: {},
|
|
7
|
+
block: { type: Boolean },
|
|
8
|
+
data: {},
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
exactActiveClass: {},
|
|
11
|
+
headers: {},
|
|
12
|
+
href: {},
|
|
13
|
+
method: {},
|
|
14
|
+
onBefore: {},
|
|
15
|
+
onCancel: {},
|
|
16
|
+
onCancelToken: {},
|
|
17
|
+
onFinish: {},
|
|
18
|
+
only: {},
|
|
19
|
+
onProgress: {},
|
|
20
|
+
onStart: {},
|
|
21
|
+
onSuccess: {},
|
|
22
|
+
preserveScroll: { type: [Boolean, Function] },
|
|
23
|
+
preserveState: { type: [Boolean, Function, null] },
|
|
24
|
+
queryStringArrayFormat: {},
|
|
25
|
+
replace: { type: Boolean },
|
|
26
|
+
tag: { default: "button" },
|
|
27
|
+
target: {},
|
|
28
|
+
text: {},
|
|
29
|
+
to: {},
|
|
30
|
+
type: { default: "button" }
|
|
31
|
+
},
|
|
32
|
+
setup(d) {
|
|
33
|
+
var o, s, l, i;
|
|
34
|
+
const e = d, r = !!((s = (o = c()) == null ? void 0 : o.proxy) != null && s.$inertia), p = !!((i = (l = c()) == null ? void 0 : l.proxy) != null && i.$nuxt), a = n(() => e.href || e.to && e.disabled ? r && !e.disabled ? u("Link") : "a" : e.to ? p ? u("NuxtLink") : "router-link" : e.tag), b = n(() => ({
|
|
35
|
+
"base-btn": !0,
|
|
36
|
+
"base-btn--block": e.block,
|
|
37
|
+
"base-btn--disabled": e.disabled
|
|
38
|
+
})), f = n(() => {
|
|
39
|
+
const t = {};
|
|
40
|
+
switch (a.value === "button" ? (t.disabled = e.disabled, t.type = e.type) : a.value === "a" || r && typeof a.value != "string" && a.value.name === "Link" ? e.disabled ? (t["aria-disabled"] = !0, t.role = "link") : (t.href = e.href, t.target = e.target, r && (t.data = e.data, t.headers = e.headers, t.method = e.method, t.onBefore = e.onBefore, t.onCancel = e.onCancel, t.onCancelToken = e.onCancelToken, t.onFinish = e.onFinish, t.only = e.only, t.onProgress = e.onProgress, t.onStart = e.onStart, t.onSuccess = e.onSuccess, t.preserveScroll = e.preserveScroll, t.preserveState = e.preserveState, t.queryStringArrayFormat = e.queryStringArrayFormat, t.replace = e.replace)) : (a.value === "router-link" || typeof a.value != "string" && a.value.name === "NuxtLink") && (t.activeClass = e.activeClass, t.ariaCurrentValue = e.ariaCurrentValue, t.exactActiveClass = e.exactActiveClass, t.replace = e.replace, t.target = e.target, t.to = e.to), a.value) {
|
|
41
|
+
case "button":
|
|
42
|
+
t.disabled = e.disabled, t.type = e.type;
|
|
43
|
+
break;
|
|
44
|
+
case "a":
|
|
45
|
+
e.disabled ? (t["aria-disabled"] = !0, t.role = "link") : t.href = e.href;
|
|
46
|
+
break;
|
|
47
|
+
case "router-link":
|
|
48
|
+
t.to = e.to;
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
return t;
|
|
52
|
+
});
|
|
53
|
+
return (t, B) => (y(), k(C(a.value), g({ class: b.value }, f.value), {
|
|
54
|
+
default: h(() => [
|
|
55
|
+
m(t.$slots, "default", {}, () => [
|
|
56
|
+
S(x(t.text), 1)
|
|
57
|
+
])
|
|
58
|
+
]),
|
|
59
|
+
_: 3
|
|
60
|
+
}, 16, ["class"]));
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export {
|
|
64
|
+
A as default
|
|
65
|
+
};
|
|
2
66
|
//# sourceMappingURL=index10.js.map
|
package/dist/index10.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index10.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index10.js","sources":["../src/components/BaseButton/BaseButton.vue"],"sourcesContent":["<template>\n\t<component :is=\"tag\" :class=\"classes\" v-bind=\"attributes\">\n\t\t<slot>{{ text }}</slot>\n\t</component>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, getCurrentInstance, resolveComponent } from 'vue';\nimport type { RouteLocationRaw } from 'vue-router';\n\nexport type BaseButtonProps = {\n\t/**\n\t * Class to apply when the link is active\n\t */\n\tactiveClass?: string;\n\n\t/**\n\t * Value passed to the attribute `aria-current` when the link is exact active.\n\t *\n\t * @defaultValue `'page'`\n\t */\n\tariaCurrentValue?:\n\t\t| 'page'\n\t\t| 'step'\n\t\t| 'location'\n\t\t| 'date'\n\t\t| 'time'\n\t\t| 'true'\n\t\t| 'false';\n\n\t/**\n\t * Displays the component as full width.\n\t */\n\tblock?: boolean;\n\n\tdata?: object;\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * Class to apply when the link is exact active\n\t */\n\texactActiveClass?: string;\n\n\theaders?: object;\n\n\t/**\n\t * Returns the hyperlink's URL.\n\t *\n\t * Can be set, to change the URL.\n\t */\n\thref?: HTMLAnchorElement['href'];\n\n\tmethod?: 'get' | 'post' | 'put' | 'patch' | 'delete';\n\n\tonBefore?: () => void;\n\n\tonCancel?: () => void;\n\n\tonCancelToken?: (cancelToken: import('axios').CancelTokenSource) => void;\n\n\tonFinish?: () => void;\n\n\tonly?: string[];\n\n\tonProgress?: (progress: { percentage: number | undefined }) => void;\n\n\tonStart?: () => void;\n\n\tonSuccess?: () => void;\n\n\tpreserveScroll?: boolean | ((props: { [key: string]: unknown }) => boolean);\n\n\tpreserveState?:\n\t\t| boolean\n\t\t| ((props: { [key: string]: unknown }) => boolean)\n\t\t| null;\n\n\tqueryStringArrayFormat?: 'brackets' | 'indices';\n\n\t/**\n\t * Calls `router.replace` instead of `router.push`.\n\t */\n\treplace?: boolean;\n\n\t/**\n\t * Any HTML tag corresponding to a non-void HTMl element.\n\t */\n\ttag?: string;\n\n\t/**\n\t * Sets or retrieves the window or frame at which to target content.\n\t */\n\ttarget?: HTMLAnchorElement['target'];\n\n\t/**\n\t * Text content of the component.\n\t */\n\ttext?: string;\n\n\t/**\n\t * Route Location the link should navigate to when clicked on.\n\t */\n\tto?: RouteLocationRaw;\n\n\t/**\n\t * Gets the classification and default behavior of the button.\n\t */\n\ttype?: HTMLButtonElement['type'];\n};\n\nconst props = withDefaults(defineProps<BaseButtonProps>(), {\n\ttag: 'button',\n\ttype: 'button',\n});\n\ndefineSlots<{\n\tdefault?: (props: object) => any;\n}>();\n\n/* Ignore because possibly undefined */\n// @ts-expect-error possibly undef\nconst isInertia = !!getCurrentInstance()?.proxy?.$inertia;\n\n// @ts-expect-error possibly undef\nconst isNuxt = !!getCurrentInstance()?.proxy?.$nuxt;\n\nconst tag = computed(() => {\n\t// For disabled links always render a\n\tif (props.href || (props.to && props.disabled)) {\n\t\tif (isInertia && !props.disabled) return resolveComponent('Link');\n\t\treturn 'a';\n\t}\n\tif (props.to) {\n\t\tif (isNuxt) return resolveComponent('NuxtLink');\n\t\treturn 'router-link';\n\t}\n\treturn props.tag;\n});\n\nconst classes = computed(() => ({\n\t'base-btn': true,\n\t'base-btn--block': props.block,\n\t'base-btn--disabled': props.disabled,\n}));\n\nconst attributes = computed(() => {\n\ttype PossibleAttributes = {\n\t\tactiveClass: BaseButtonProps['activeClass'];\n\n\t\t'aria-disabled': boolean;\n\n\t\tariaCurrentValue: BaseButtonProps['ariaCurrentValue'];\n\n\t\tdata: BaseButtonProps['data'];\n\n\t\tdisabled: boolean;\n\n\t\texactActiveClass: BaseButtonProps['exactActiveClass'];\n\n\t\theaders: BaseButtonProps['headers'];\n\n\t\thref: string;\n\n\t\tmethod: BaseButtonProps['method'];\n\n\t\tonBefore: BaseButtonProps['onBefore'];\n\n\t\tonCancel: BaseButtonProps['onCancel'];\n\n\t\tonCancelToken: BaseButtonProps['onCancelToken'];\n\n\t\tonFinish: BaseButtonProps['onFinish'];\n\n\t\tonly: BaseButtonProps['only'];\n\n\t\tonProgress: BaseButtonProps['onProgress'];\n\n\t\tonStart: BaseButtonProps['onStart'];\n\n\t\tonSuccess: BaseButtonProps['onSuccess'];\n\n\t\tpreserveScroll: BaseButtonProps['preserveScroll'];\n\n\t\tpreserveState: BaseButtonProps['preserveState'];\n\n\t\tqueryStringArrayFormat: BaseButtonProps['queryStringArrayFormat'];\n\n\t\treplace: BaseButtonProps['replace'];\n\n\t\trole: string;\n\n\t\tstyle: { [rule: string]: string };\n\n\t\ttarget: string;\n\n\t\tto: BaseButtonProps['to'];\n\n\t\ttype: string;\n\t};\n\tconst initial: Partial<PossibleAttributes> = {};\n\n\tif (tag.value === 'button') {\n\t\tinitial.disabled = props.disabled;\n\t\tinitial.type = props.type;\n\t} else if (\n\t\ttag.value === 'a' ||\n\t\t(isInertia && typeof tag.value !== 'string' && tag.value.name === 'Link')\n\t) {\n\t\t// When rendering as anchor prevent navigation if disabled\n\t\t// https://getbootstrap.com/docs/4.0/components/buttons/#disabled-state\n\t\tif (props.disabled) {\n\t\t\tinitial['aria-disabled'] = true;\n\t\t\tinitial.role = 'link';\n\t\t} else {\n\t\t\t// Only attach the href to active links\n\t\t\t// https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n\t\t\tinitial.href = props.href;\n\t\t\tinitial.target = props.target;\n\n\t\t\tif (isInertia) {\n\t\t\t\tinitial.data = props.data;\n\t\t\t\tinitial.headers = props.headers;\n\t\t\t\tinitial.method = props.method;\n\t\t\t\tinitial.onBefore = props.onBefore;\n\t\t\t\tinitial.onCancel = props.onCancel;\n\t\t\t\tinitial.onCancelToken = props.onCancelToken;\n\t\t\t\tinitial.onFinish = props.onFinish;\n\t\t\t\tinitial.only = props.only;\n\t\t\t\tinitial.onProgress = props.onProgress;\n\t\t\t\tinitial.onStart = props.onStart;\n\t\t\t\tinitial.onSuccess = props.onSuccess;\n\t\t\t\tinitial.preserveScroll = props.preserveScroll;\n\t\t\t\tinitial.preserveState = props.preserveState;\n\t\t\t\tinitial.queryStringArrayFormat = props.queryStringArrayFormat;\n\t\t\t\tinitial.replace = props.replace;\n\t\t\t}\n\t\t}\n\t} else if (\n\t\ttag.value === 'router-link' ||\n\t\t(typeof tag.value !== 'string' && tag.value.name === 'NuxtLink')\n\t) {\n\t\tinitial.activeClass = props.activeClass;\n\t\tinitial.ariaCurrentValue = props.ariaCurrentValue;\n\t\tinitial.exactActiveClass = props.exactActiveClass;\n\t\tinitial.replace = props.replace;\n\t\tinitial.target = props.target;\n\t\tinitial.to = props.to;\n\t}\n\n\tswitch (tag.value) {\n\t\tcase 'button':\n\t\t\tinitial.disabled = props.disabled;\n\t\t\tinitial.type = props.type;\n\t\t\tbreak;\n\t\tcase 'a':\n\t\t\t// When rendering as anchor prevent navigation if disabled\n\t\t\t// https://getbootstrap.com/docs/4.0/components/buttons/#disabled-state\n\t\t\tif (props.disabled) {\n\t\t\t\tinitial['aria-disabled'] = true;\n\t\t\t\tinitial.role = 'link';\n\t\t\t} else {\n\t\t\t\t// Only attach the href to active links\n\t\t\t\t// https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n\t\t\t\tinitial.href = props.href;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'router-link':\n\t\t\tinitial.to = props.to;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\treturn initial;\n});\n</script>\n<style lang=\"postcss\">\n@import '@/assets/css/BaseButton';\n</style>\n"],"names":["props","__props","isInertia","_b","_a","getCurrentInstance","isNuxt","_d","_c","tag","computed","resolveComponent","classes","attributes","initial"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkHA,UAAMA,IAAQC,GAWRC,IAAY,CAAC,GAACC,KAAAC,IAAAC,EAAA,MAAA,gBAAAD,EAAsB,UAAtB,QAAAD,EAA6B,WAG3CG,IAAS,CAAC,GAACC,KAAAC,IAAAH,EAAA,MAAA,gBAAAG,EAAsB,UAAtB,QAAAD,EAA6B,QAExCE,IAAMC,EAAS,MAEhBV,EAAM,QAASA,EAAM,MAAMA,EAAM,WAChCE,KAAa,CAACF,EAAM,WAAiBW,EAAiB,MAAM,IACzD,MAEJX,EAAM,KACLM,IAAeK,EAAiB,UAAU,IACvC,gBAEDX,EAAM,GACb,GAEKY,IAAUF,EAAS,OAAO;AAAA,MAC/B,YAAY;AAAA,MACZ,mBAAmBV,EAAM;AAAA,MACzB,sBAAsBA,EAAM;AAAA,IAC3B,EAAA,GAEIa,IAAaH,EAAS,MAAM;AAsDjC,YAAMI,IAAuC,CAAA;AAkD7C,cAhDIL,EAAI,UAAU,YACjBK,EAAQ,WAAWd,EAAM,UACzBc,EAAQ,OAAOd,EAAM,QAErBS,EAAI,UAAU,OACbP,KAAa,OAAOO,EAAI,SAAU,YAAYA,EAAI,MAAM,SAAS,SAI9DT,EAAM,YACTc,EAAQ,eAAe,IAAI,IAC3BA,EAAQ,OAAO,WAIfA,EAAQ,OAAOd,EAAM,MACrBc,EAAQ,SAASd,EAAM,QAEnBE,MACHY,EAAQ,OAAOd,EAAM,MACrBc,EAAQ,UAAUd,EAAM,SACxBc,EAAQ,SAASd,EAAM,QACvBc,EAAQ,WAAWd,EAAM,UACzBc,EAAQ,WAAWd,EAAM,UACzBc,EAAQ,gBAAgBd,EAAM,eAC9Bc,EAAQ,WAAWd,EAAM,UACzBc,EAAQ,OAAOd,EAAM,MACrBc,EAAQ,aAAad,EAAM,YAC3Bc,EAAQ,UAAUd,EAAM,SACxBc,EAAQ,YAAYd,EAAM,WAC1Bc,EAAQ,iBAAiBd,EAAM,gBAC/Bc,EAAQ,gBAAgBd,EAAM,eAC9Bc,EAAQ,yBAAyBd,EAAM,wBACvCc,EAAQ,UAAUd,EAAM,aAI1BS,EAAI,UAAU,iBACb,OAAOA,EAAI,SAAU,YAAYA,EAAI,MAAM,SAAS,gBAErDK,EAAQ,cAAcd,EAAM,aAC5Bc,EAAQ,mBAAmBd,EAAM,kBACjCc,EAAQ,mBAAmBd,EAAM,kBACjCc,EAAQ,UAAUd,EAAM,SACxBc,EAAQ,SAASd,EAAM,QACvBc,EAAQ,KAAKd,EAAM,KAGZS,EAAI,OAAO;AAAA,QAClB,KAAK;AACJ,UAAAK,EAAQ,WAAWd,EAAM,UACzBc,EAAQ,OAAOd,EAAM;AACrB;AAAA,QACD,KAAK;AAGJ,UAAIA,EAAM,YACTc,EAAQ,eAAe,IAAI,IAC3BA,EAAQ,OAAO,UAIfA,EAAQ,OAAOd,EAAM;AAEtB;AAAA,QACD,KAAK;AACJ,UAAAc,EAAQ,KAAKd,EAAM;AACnB;AAAA,MAGF;AACO,aAAAc;AAAA,IAAA,CACP;;;;;;;;;;;"}
|