bitboss-ui 0.2.31 → 0.2.32
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/BaseButton/BaseButton.vue.d.ts +6 -6
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +16 -16
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +36 -36
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +20 -20
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +21 -21
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +8 -8
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +6 -6
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +20 -20
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +20 -20
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +36 -36
- package/dist/components/BaseRating/BaseRating.vue.d.ts +17 -17
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +23 -23
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +15 -15
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +1 -1
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +20 -20
- package/dist/components/BaseTag/BaseTag.vue.d.ts +20 -20
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +19 -19
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +18 -18
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +3 -3
- package/dist/components/BbAlert/BbAlert.vue.d.ts +3 -3
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +8 -8
- package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +6 -6
- package/dist/components/BbButton/BbButton.vue.d.ts +1 -1
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +11 -11
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +27 -27
- package/dist/components/BbChip/BbChip.vue.d.ts +2 -2
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +4 -4
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +16 -24
- package/dist/components/BbDialog/BbDialog.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +11 -11
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +14 -14
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +4 -4
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +3 -3
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +10 -10
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +9 -9
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +8 -8
- package/dist/components/BbRadio/BbRadio.vue.d.ts +10 -10
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +27 -27
- package/dist/components/BbRating/BbRating.vue.d.ts +10 -10
- package/dist/components/BbSelect/BbSelect.vue.d.ts +19 -19
- package/dist/components/BbSlider/BbSlider.vue.d.ts +8 -8
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +2 -2
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +20 -20
- package/dist/components/BbTab/BbTab.vue.d.ts +5 -5
- package/dist/components/BbTable/BbTable.vue.d.ts +11 -11
- package/dist/components/BbTable/types.d.ts +107 -107
- package/dist/components/BbTag/BbTag.vue.d.ts +13 -13
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +11 -11
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +10 -10
- package/dist/components/BbToast/BbToast.vue.d.ts +1 -1
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +1 -1
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
- package/dist/components/BbTree/BbTree.vue.d.ts +1 -1
- package/dist/composables/useConfirm.d.ts +10 -10
- package/dist/composables/useOptions.d.ts +2 -2
- package/dist/composables/useRoute.d.ts +2 -2
- package/dist/composables/useRouter.d.ts +1 -1
- package/dist/composables/useToast.d.ts +5 -5
- package/dist/composables/useWizard.d.ts +1 -1
- package/dist/index.d.ts +126 -126
- package/dist/index101.js +32 -37
- package/dist/index101.js.map +1 -1
- package/dist/index103.js +19 -19
- package/dist/index103.js.map +1 -1
- package/dist/index105.js +16 -16
- package/dist/index105.js.map +1 -1
- package/dist/index107.js +15 -15
- package/dist/index107.js.map +1 -1
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +7 -7
- package/dist/index11.js.map +1 -1
- package/dist/index111.js +16 -16
- package/dist/index111.js.map +1 -1
- package/dist/index113.js +3 -3
- package/dist/index113.js.map +1 -1
- package/dist/index115.js +6 -6
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +1 -1
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +1 -1
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +4 -4
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +5 -5
- package/dist/index119.js.map +1 -1
- package/dist/index120.js.map +1 -1
- package/dist/index121.js.map +1 -1
- package/dist/index122.js.map +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +4 -4
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +1 -1
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +4 -1
- package/dist/index128.js.map +1 -1
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +11 -11
- package/dist/index13.js.map +1 -1
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +2 -2
- package/dist/index15.js +226 -224
- package/dist/index15.js.map +1 -1
- package/dist/index17.js +61 -62
- package/dist/index17.js.map +1 -1
- package/dist/index19.js +22 -22
- package/dist/index19.js.map +1 -1
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +2 -5
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +4 -16
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +293 -14
- package/dist/index199.js.map +1 -1
- package/dist/index2.js +23 -23
- package/dist/index2.js.map +1 -1
- package/dist/index200.js +15 -18
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +13 -17
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +18 -28
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +20 -8
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +29 -2
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +8 -378
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +2 -134
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +235 -2
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +3 -174
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +35 -23
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +4 -4
- package/dist/index21.js.map +1 -1
- package/dist/index210.js +6 -373
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +10 -2
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +378 -4
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +134 -3
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +2 -3
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +172 -8
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +23 -3
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +369 -31
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +3 -6
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +3 -2
- package/dist/index219.js.map +1 -1
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +26 -233
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +16 -8
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +2 -121
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +8 -27
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +120 -12
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +1 -1
- package/dist/index227.js +4 -295
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +2 -6
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +6 -2
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +14 -16
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +2 -2
- package/dist/index235.js +2 -2
- package/dist/index236.js +428 -110
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +88 -105
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +199 -3
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +1 -1
- package/dist/index240.js +1 -1
- package/dist/index241.js +2 -435
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +115 -87
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +104 -198
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +160 -2
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +2 -2
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +9 -9
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +5 -162
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +1 -1
- package/dist/index249.js +37 -14
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +4 -4
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +2 -38
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +2 -2
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +15 -2
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +3 -2
- package/dist/index253.js.map +1 -1
- package/dist/index255.js +2 -3
- package/dist/index255.js.map +1 -1
- package/dist/index27.js +7 -7
- package/dist/index27.js.map +1 -1
- package/dist/index29.js +15 -15
- package/dist/index29.js.map +1 -1
- package/dist/index3.js +2 -1
- package/dist/index3.js.map +1 -1
- package/dist/index31.js +28 -28
- package/dist/index31.js.map +1 -1
- package/dist/index33.js +10 -11
- package/dist/index33.js.map +1 -1
- package/dist/index35.js +2 -2
- package/dist/index35.js.map +1 -1
- package/dist/index37.js +12 -12
- package/dist/index37.js.map +1 -1
- package/dist/index39.js +5 -7
- package/dist/index39.js.map +1 -1
- package/dist/index4.js.map +1 -1
- package/dist/index41.js +5 -5
- package/dist/index41.js.map +1 -1
- package/dist/index43.js +19 -16
- package/dist/index43.js.map +1 -1
- package/dist/index45.js +9 -9
- package/dist/index45.js.map +1 -1
- package/dist/index47.js +4 -4
- package/dist/index47.js.map +1 -1
- package/dist/index49.js +1 -1
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +7 -6
- package/dist/index5.js.map +1 -1
- package/dist/index51.js +6 -6
- package/dist/index51.js.map +1 -1
- package/dist/index53.js.map +1 -1
- package/dist/index55.js +20 -20
- package/dist/index55.js.map +1 -1
- package/dist/index57.js +35 -35
- package/dist/index57.js.map +1 -1
- package/dist/index59.js +8 -8
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +38 -38
- package/dist/index6.js.map +1 -1
- package/dist/index61.js +27 -27
- package/dist/index61.js.map +1 -1
- package/dist/index63.js +4 -4
- package/dist/index63.js.map +1 -1
- package/dist/index65.js +20 -20
- package/dist/index65.js.map +1 -1
- package/dist/index67.js +26 -26
- package/dist/index67.js.map +1 -1
- package/dist/index69.js +21 -19
- package/dist/index69.js.map +1 -1
- package/dist/index7.js.map +1 -1
- package/dist/index71.js +2 -2
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +3 -3
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +14 -14
- package/dist/index73.js.map +1 -1
- package/dist/index75.js +18 -18
- package/dist/index75.js.map +1 -1
- package/dist/index77.js +11 -11
- package/dist/index77.js.map +1 -1
- package/dist/index79.js +15 -15
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +10 -7
- package/dist/index8.js.map +1 -1
- package/dist/index81.js.map +1 -1
- package/dist/index83.js +20 -20
- package/dist/index83.js.map +1 -1
- package/dist/index85.js +34 -34
- package/dist/index85.js.map +1 -1
- package/dist/index87.js +18 -18
- package/dist/index87.js.map +1 -1
- package/dist/index89.js.map +1 -1
- package/dist/index9.js.map +1 -1
- package/dist/index91.js +53 -53
- package/dist/index91.js.map +1 -1
- package/dist/index93.js +16 -16
- package/dist/index93.js.map +1 -1
- package/dist/index95.js +21 -21
- package/dist/index95.js.map +1 -1
- package/dist/index97.js +37 -37
- package/dist/index97.js.map +1 -1
- package/dist/index99.js +18 -18
- package/dist/index99.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/CommonProps.d.ts +18 -18
- package/dist/types/ExtractGenericFromComputedRef.d.ts +1 -1
- package/dist/types/ExtractGenericFromRef.d.ts +1 -1
- package/dist/types/VoidHtmlElements.d.ts +1 -1
- package/dist/utilities/functions/cloneDeep.d.ts +1 -1
- package/dist/utilities/functions/debounce.d.ts +1 -1
- package/dist/utilities/functions/flow.d.ts +1 -1
- package/dist/utilities/functions/get.d.ts +1 -1
- package/dist/utilities/functions/isNotNil.d.ts +1 -1
- package/dist/utilities/functions/mapValues.d.ts +1 -1
- package/dist/utilities/functions/merge.d.ts +1 -1
- package/dist/utilities/functions/millisecondsTo.d.ts +1 -1
- package/dist/utilities/functions/overEvery.d.ts +1 -1
- package/dist/utilities/functions/percentage.d.ts +4 -4
- package/dist/utilities/functions/pick.d.ts +1 -1
- package/dist/utilities/functions/pickBy.d.ts +1 -1
- package/dist/utilities/functions/roundToTheNearest.d.ts +1 -1
- package/package.json +93 -77
- package/dist/index256.js +0 -5
- package/dist/index256.js.map +0 -1
package/dist/index91.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as u, openBlock as c, createBlock as b, withCtx as n, renderSlot as a, normalizeProps as l, guardReactiveProps as
|
|
1
|
+
import { defineComponent as u, openBlock as c, createBlock as b, withCtx as n, renderSlot as a, normalizeProps as l, guardReactiveProps as t, createVNode as h, mergeProps as y } from "vue";
|
|
2
2
|
import f from "./index21.js";
|
|
3
3
|
import "./index22.js";
|
|
4
|
-
import
|
|
4
|
+
import g from "./index31.js";
|
|
5
5
|
import "./index32.js";
|
|
6
|
-
const
|
|
6
|
+
const S = /* @__PURE__ */ u({
|
|
7
7
|
__name: "BbSelect",
|
|
8
8
|
props: {
|
|
9
9
|
addOptions: { type: Boolean },
|
|
@@ -45,114 +45,114 @@ const v = /* @__PURE__ */ u({
|
|
|
45
45
|
},
|
|
46
46
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "update:modelValue"],
|
|
47
47
|
setup(B, { emit: s }) {
|
|
48
|
-
const
|
|
49
|
-
onBlur: (e) =>
|
|
50
|
-
onChange: (e) =>
|
|
51
|
-
onClick: (e) =>
|
|
52
|
-
onFocus: (e) =>
|
|
53
|
-
onInactive: () =>
|
|
54
|
-
onInput: (e) =>
|
|
55
|
-
"onUpdate:modelValue": (e) =>
|
|
48
|
+
const i = s, p = {
|
|
49
|
+
onBlur: (e) => i("blur", e),
|
|
50
|
+
onChange: (e) => i("change", e),
|
|
51
|
+
onClick: (e) => i("click", e),
|
|
52
|
+
onFocus: (e) => i("focus", e),
|
|
53
|
+
onInactive: () => i("inactive"),
|
|
54
|
+
onInput: (e) => i("input", e),
|
|
55
|
+
"onUpdate:modelValue": (e) => i("update:modelValue", e)
|
|
56
56
|
};
|
|
57
|
-
return (e,
|
|
57
|
+
return (e, v) => (c(), b(f, {
|
|
58
|
+
id: e.id,
|
|
58
59
|
class: "bb-select",
|
|
59
60
|
direction: e.direction,
|
|
60
61
|
errors: e.errors,
|
|
61
62
|
"has-errors": e.hasErrors,
|
|
62
|
-
|
|
63
|
-
id: e.id,
|
|
63
|
+
"hide-label": e.hideLabel,
|
|
64
64
|
label: e.label,
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
"label-position": e.labelPosition,
|
|
66
|
+
"model-value": e.modelValue,
|
|
67
67
|
name: e.name,
|
|
68
68
|
reverse: e.reverse
|
|
69
69
|
}, {
|
|
70
70
|
label: n((r) => [
|
|
71
|
-
a(e.$slots, "label", l(
|
|
71
|
+
a(e.$slots, "label", l(t(r)))
|
|
72
72
|
]),
|
|
73
73
|
input: n(({ id: r, name: d, hasErrors: m }) => [
|
|
74
|
-
|
|
74
|
+
h(g, y({
|
|
75
|
+
id: r,
|
|
76
|
+
"add-options": e.addOptions,
|
|
77
|
+
"allow-writing": e.allowWriting,
|
|
75
78
|
autocomplete: e.autocomplete,
|
|
76
|
-
addOptions: e.addOptions,
|
|
77
|
-
allowWriting: e.allowWriting,
|
|
78
79
|
autofocus: e.autofocus,
|
|
79
80
|
comma: e.comma,
|
|
80
81
|
dependencies: e.dependencies,
|
|
81
|
-
|
|
82
|
+
"deps-debounce-time": e.depsDebounceTime,
|
|
82
83
|
disabled: e.disabled,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
"enforce-coherence": e.enforceCoherence,
|
|
85
|
+
"filter-by": e.filterBy,
|
|
86
|
+
"has-errors": m,
|
|
87
|
+
"item-text": e.itemText,
|
|
88
|
+
"item-value": e.itemValue,
|
|
87
89
|
items: e.items,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
modelValue: e.modelValue,
|
|
93
|
-
modelValueDebounceTime: e.modelValueDebounceTime,
|
|
90
|
+
"loading-text": e.loadingText,
|
|
91
|
+
"match-strategy": e.matchStrategy,
|
|
92
|
+
"model-value": e.modelValue,
|
|
93
|
+
"model-value-debounce-time": e.modelValueDebounceTime,
|
|
94
94
|
multiple: e.multiple,
|
|
95
95
|
name: d,
|
|
96
|
-
|
|
96
|
+
"no-data-text": e.noDataText,
|
|
97
97
|
placeholder: e.placeholder,
|
|
98
98
|
prefill: e.prefill,
|
|
99
|
-
|
|
99
|
+
"query-debounce-time": e.queryDebounceTime,
|
|
100
100
|
readonly: e.readonly,
|
|
101
|
-
|
|
101
|
+
"reset-query-on-option-selected": e.resetQueryOnOptionSelected,
|
|
102
102
|
stash: e.stash,
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
"transition-duration": e.transitionDuration,
|
|
104
|
+
"update-on-animation-frame": e.updateOnAnimationFrame
|
|
105
105
|
}, p), {
|
|
106
106
|
"append-outer": n((o) => [
|
|
107
|
-
a(e.$slots, "append-outer", l(
|
|
107
|
+
a(e.$slots, "append-outer", l(t(o)))
|
|
108
108
|
]),
|
|
109
109
|
append: n((o) => [
|
|
110
|
-
a(e.$slots, "append", l(
|
|
110
|
+
a(e.$slots, "append", l(t(o)))
|
|
111
111
|
]),
|
|
112
112
|
chevron: n((o) => [
|
|
113
|
-
a(e.$slots, "chevron", l(
|
|
113
|
+
a(e.$slots, "chevron", l(t(o)))
|
|
114
114
|
]),
|
|
115
115
|
loading: n((o) => [
|
|
116
|
-
a(e.$slots, "loading", l(
|
|
116
|
+
a(e.$slots, "loading", l(t(o)))
|
|
117
117
|
]),
|
|
118
118
|
"no-data": n((o) => [
|
|
119
|
-
a(e.$slots, "no-data", l(
|
|
119
|
+
a(e.$slots, "no-data", l(t(o)))
|
|
120
120
|
]),
|
|
121
121
|
"option:append": n((o) => [
|
|
122
|
-
a(e.$slots, "option:append", l(
|
|
122
|
+
a(e.$slots, "option:append", l(t(o)))
|
|
123
123
|
]),
|
|
124
124
|
"option:prepend": n((o) => [
|
|
125
|
-
a(e.$slots, "option:prepend", l(
|
|
125
|
+
a(e.$slots, "option:prepend", l(t(o)))
|
|
126
126
|
]),
|
|
127
127
|
option: n((o) => [
|
|
128
|
-
a(e.$slots, "option", l(
|
|
128
|
+
a(e.$slots, "option", l(t(o)))
|
|
129
129
|
]),
|
|
130
130
|
"options:append": n((o) => [
|
|
131
|
-
a(e.$slots, "options:append", l(
|
|
131
|
+
a(e.$slots, "options:append", l(t(o)))
|
|
132
132
|
]),
|
|
133
133
|
"options:prepend": n((o) => [
|
|
134
|
-
a(e.$slots, "options:prepend", l(
|
|
134
|
+
a(e.$slots, "options:prepend", l(t(o)))
|
|
135
135
|
]),
|
|
136
136
|
"prepend-outer": n((o) => [
|
|
137
|
-
a(e.$slots, "prepend-outer", l(
|
|
137
|
+
a(e.$slots, "prepend-outer", l(t(o)))
|
|
138
138
|
]),
|
|
139
139
|
prepend: n((o) => [
|
|
140
|
-
a(e.$slots, "prepend", l(
|
|
140
|
+
a(e.$slots, "prepend", l(t(o)))
|
|
141
141
|
]),
|
|
142
142
|
spinner: n((o) => [
|
|
143
|
-
a(e.$slots, "spinner", l(
|
|
143
|
+
a(e.$slots, "spinner", l(t(o)))
|
|
144
144
|
]),
|
|
145
145
|
chip: n((o) => [
|
|
146
|
-
a(e.$slots, "chip", l(
|
|
146
|
+
a(e.$slots, "chip", l(t(o)))
|
|
147
147
|
]),
|
|
148
148
|
_: 2
|
|
149
|
-
}, 1040, ["
|
|
149
|
+
}, 1040, ["id", "add-options", "allow-writing", "autocomplete", "autofocus", "comma", "dependencies", "deps-debounce-time", "disabled", "enforce-coherence", "filter-by", "has-errors", "item-text", "item-value", "items", "loading-text", "match-strategy", "model-value", "model-value-debounce-time", "multiple", "name", "no-data-text", "placeholder", "prefill", "query-debounce-time", "readonly", "reset-query-on-option-selected", "stash", "transition-duration", "update-on-animation-frame"])
|
|
150
150
|
]),
|
|
151
151
|
_: 3
|
|
152
|
-
}, 8, ["direction", "errors", "has-errors", "
|
|
152
|
+
}, 8, ["id", "direction", "errors", "has-errors", "hide-label", "label", "label-position", "model-value", "name", "reverse"]));
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
155
|
export {
|
|
156
|
-
|
|
156
|
+
S as default
|
|
157
157
|
};
|
|
158
158
|
//# sourceMappingURL=index91.js.map
|
package/dist/index91.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index91.js","sources":["../src/components/BbSelect/BbSelect.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport BaseInputContainer from \"../BaseInputContainer/BaseInputContainer.vue\";\nimport BaseSelect from \"../BaseSelect/BaseSelect.vue\";\nimport type { BaseSelectEvents } from \"../BaseSelect/BaseSelect.vue\";\nimport type { NestedKeyOf } from \"@/types/NestedKeyOf\";\nimport type { HTMLAttributes, InputHTMLAttributes } from \"vue\";\n\nexport type BbSelectProps<T> = {\n /**\n * Allows the user to add options to the list by\n * inserting text in the input and pressing ENTER.\n * The value and text of the option generated is a\n * string equal to what has been inserted.\n */\n addOptions?: boolean;\n\n /**\n * Allows typing into the input.\n */\n allowWriting?: boolean;\n\n /**\n * Guides to the browser as to the type of information expected in the field.\n */\n autocomplete?: InputHTMLAttributes[\"autocomplete\"];\n\n /**\n * Sets autofocus on page load.\n */\n autofocus?: InputHTMLAttributes[\"autofocus\"];\n\n /**\n * Sets the display model for selected values to a list\n * of comma separated string. In this mode the user\n * cannot deselect an option by pressing the close button.\n */\n comma?: boolean;\n\n /**\n * Defines an array of dependencies that will trigger actions in the component upon change.\n */\n dependencies?: any[];\n\n /**\n * Timeout used to debounce response to changes to dependencies.\n */\n depsDebounceTime?: number;\n\n /**\n * Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.\n */\n direction?: \"horizontal\" | \"vertical\" | \"auto\" | string;\n\n /**\n * Disables the component\n */\n disabled?: boolean;\n\n /**\n * If coherence is enforce the input cannot have a modelValue the is incoherent with its current items.\n *\n * e.g. You cannot set v-model to a user that is not present in the items passed.\n *\n * modelValue will be reset upon incoherence.\n */\n enforceCoherence?: boolean;\n\n /**\n * Can be a string or an array of string containing the messages to display.\n */\n errors?: string | string[];\n\n /**\n * Defines how the filtering should work.\n * In any case options are always filtered by the text displayed but\n * they can also take into account other properties of the\n * passed elements when this property is a string or an array of string.\n * E.g. items could be a list of users and you can filter users by email or phone by passing `['email', 'phone']`\n * You can also pass false to not filter anything or a function for more granular control.\n *\n */\n filterBy?:\n | string\n | string[]\n | false\n | ((value: any, item: T) => boolean)\n | null;\n\n /**\n * Define if the component should be in an error state.\n * It usually attaches a CSS class for styling purposes.\n */\n hasErrors?: boolean;\n\n /**\n * Visually hides the label of the input while maintaining accessibility.\n */\n hideLabel?: boolean;\n\n /**\n * The identifier of the component.\n */\n id?: HTMLAttributes[\"id\"];\n\n /**\n * Used to retrieve items can be an array or a function.\n */\n items:\n | T[]\n | ((query: string, prefill: boolean, modelValue: any) => Promise<T[]>)\n | ((query: string, prefill: boolean, modelValue: any) => T[]);\n\n /**\n * Defines a path that returns a property of the object to use as text or a function that returns a string\n */\n itemText?: T extends object\n ? NestedKeyOf<T> | ((item: T) => string)\n : ((item: T) => string) | undefined;\n\n /**\n * Defines a path that returns a property of the object to use as value or a function that returns any value\n */\n itemValue?: T extends object\n ? NestedKeyOf<T> | ((item: T) => string)\n : ((item: T) => any) | undefined;\n\n /**\n * Text content of the label of the element.\n */\n label: string;\n\n /**\n * Sets the text alignment of the label.\n */\n labelPosition?: \"left\" | \"center\" | \"right\";\n\n /**\n * String displayed while items are being loaded.\n */\n loadingText?: string;\n\n /**\n * Defines the strategy used to understand whether an option has been selected.\n * `string` is 40% faster but relies on property order.\n * `equality` is more reliable but is slower.\n */\n matchStrategy?: \"string\" | \"equality\";\n\n /**\n * Used by v-model. Can be any serializable type.\n */\n modelValue: any;\n\n /**\n * Timeout used to debounce response to changes to modelValue.\n */\n modelValueDebounceTime?: number;\n\n /**\n * Allows the selection of multiple items.\n */\n multiple?: boolean;\n\n /**\n * Defines the name of the input.\n */\n name?: InputHTMLAttributes[\"name\"];\n\n /**\n * String displayed when there are no items to display.\n */\n noDataText?: string;\n\n /**\n * String displayed when there's no data.\n */\n placeholder?: InputHTMLAttributes[\"placeholder\"];\n\n /**\n * Defines the prefill strategy for the input. By default the input will prefill\n * on focus. It can also always prefill with `true` and only prefill on search with `false`.\n */\n prefill?: boolean | \"focus\";\n\n /**\n * Time to wait when the users stops writing in the input before querying data.\n * Especially useful when searching live data on big datasets.\n */\n queryDebounceTime?: number;\n\n /**\n * Sets the input in a readonly state.\n */\n readonly?: InputHTMLAttributes[\"readonly\"];\n\n /**\n * If `true` when in multiple selection, reset the query immediately\n * upon selecting an option. By default the query is\n * not reset until focus is lost so the user can search\n * for \"Cath\" and select \"Cathy\" and then write more to\n * search for \"Catherine\"\n */\n resetQueryOnOptionSelected?: boolean;\n\n /**\n * Reverses the layout. Applicable in every direction the order of the label and the input is swapped.\n */\n reverse?: boolean;\n\n /**\n * Adds a stash to accumulate selected values. Especially\n * useful when searching in a big database of items.\n * E.g. if you search for \"John\" and then search for \"Richard\"\n * you either always return the previous items or you stash them passing `true` to this option.\n */\n stash?: boolean;\n\n /**\n * How long the transition has to last in milliseconds\n */\n transitionDuration?: number;\n\n /**\n * Pass `true` if the dropdown is not updating following movement in the UI, like in modals. Very expensive so use with care.\n */\n updateOnAnimationFrame?: boolean;\n};\n\nexport type BbSelectEvents = BaseSelectEvents;\n\nexport type BbSelectSlots<T> = {\n append?: (props: {}) => any;\n\n \"append-outer\"?: (props: {}) => any;\n\n chevron?: (props: { loading: boolean; shown: boolean }) => any;\n\n chip?: (props: {\n disabled: boolean;\n hasErrors?: boolean;\n index: number;\n item: T;\n loading: boolean;\n manual: boolean;\n selected: boolean;\n text: string;\n value: any;\n }) => any;\n\n label?: (props: { text: string; hasErrors: boolean }) => any;\n\n loading?: (props: { query: string }) => any;\n\n \"no-data\"?: (props: { query: string }) => any;\n\n option?: (props: {\n disabled: boolean;\n focused: boolean;\n hasErrors?: boolean;\n index: number;\n item: T;\n loading: boolean;\n manual: boolean;\n selected: boolean;\n text: string;\n value: any;\n }) => any;\n\n \"option:append\"?: (props: { item: T }) => any;\n\n \"option:prepend\"?: (props: { item: T }) => any;\n\n \"options:append\"?: (props: {}) => any;\n\n \"options:prepend\"?: (props: {}) => any;\n\n prepend?: (props: {}) => any;\n\n \"prepend-outer\"?: (props: {}) => any;\n\n spinner?: (props: { loading: boolean }) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbSelect',\n props: {\n addOptions: { type: Boolean },\n allowWriting: { type: Boolean, default: true },\n autocomplete: {},\n autofocus: {},\n comma: { type: Boolean },\n dependencies: {},\n depsDebounceTime: {},\n direction: {},\n disabled: { type: Boolean },\n enforceCoherence: { type: Boolean },\n errors: {},\n filterBy: { type: [String, Array, Boolean, Function, null] },\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n items: {},\n itemText: {},\n itemValue: {},\n label: {},\n labelPosition: {},\n loadingText: {},\n matchStrategy: {},\n modelValue: {},\n modelValueDebounceTime: {},\n multiple: { type: Boolean },\n name: {},\n noDataText: {},\n placeholder: {},\n prefill: { type: [Boolean, String], default: \"focus\" },\n queryDebounceTime: {},\n readonly: {},\n resetQueryOnOptionSelected: { type: Boolean },\n reverse: { type: Boolean },\n stash: { type: Boolean },\n transitionDuration: {},\n updateOnAnimationFrame: { type: Boolean }\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"inactive\", \"input\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit;\n\n\nconst eventListeners = {\n onBlur: (event: FocusEvent) => emit(\"blur\", event),\n onChange: (event: Event) => emit(\"change\", event),\n onClick: (event: MouseEvent) => emit(\"click\", event),\n onFocus: (event: FocusEvent) => emit(\"focus\", event),\n onInactive: () => emit(\"inactive\"),\n onInput: (event: Event) => emit(\"input\", event),\n \"onUpdate:modelValue\": (value: any) => emit(\"update:modelValue\", value),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n class: \"bb-select\",\n direction: _ctx.direction,\n errors: _ctx.errors,\n \"has-errors\": _ctx.hasErrors,\n hideLabel: _ctx.hideLabel,\n id: _ctx.id,\n label: _ctx.label,\n labelPosition: _ctx.labelPosition,\n modelValue: _ctx.modelValue,\n name: _ctx.name,\n reverse: _ctx.reverse\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name, hasErrors }) => [\n _createVNode(BaseSelect, _mergeProps({\n autocomplete: _ctx.autocomplete,\n addOptions: _ctx.addOptions,\n allowWriting: _ctx.allowWriting,\n autofocus: _ctx.autofocus,\n comma: _ctx.comma,\n dependencies: _ctx.dependencies,\n depsDebounceTime: _ctx.depsDebounceTime,\n disabled: _ctx.disabled,\n enforceCoherence: _ctx.enforceCoherence,\n filterBy: _ctx.filterBy,\n hasErrors: hasErrors,\n id: id,\n items: _ctx.items,\n itemText: (_ctx.itemText as any),\n itemValue: (_ctx.itemValue as any),\n loadingText: _ctx.loadingText,\n matchStrategy: _ctx.matchStrategy,\n modelValue: _ctx.modelValue,\n modelValueDebounceTime: _ctx.modelValueDebounceTime,\n multiple: _ctx.multiple,\n name: name,\n noDataText: _ctx.noDataText,\n placeholder: _ctx.placeholder,\n prefill: _ctx.prefill,\n queryDebounceTime: _ctx.queryDebounceTime,\n readonly: _ctx.readonly,\n resetQueryOnOptionSelected: _ctx.resetQueryOnOptionSelected,\n stash: _ctx.stash,\n transitionDuration: _ctx.transitionDuration,\n updateOnAnimationFrame: _ctx.updateOnAnimationFrame\n }, eventListeners), {\n \"append-outer\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"append-outer\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n append: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"append\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n chevron: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"chevron\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n loading: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"loading\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"no-data\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"no-data\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"option:append\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"option:append\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"option:prepend\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"option:prepend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n option: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"option\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"options:append\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"options:append\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"options:prepend\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"options:prepend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"prepend-outer\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"prepend-outer\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n prepend: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"prepend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n spinner: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"spinner\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n chip: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"chip\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n _: 2\n }, 1040, [\"autocomplete\", \"addOptions\", \"allowWriting\", \"autofocus\", \"comma\", \"dependencies\", \"depsDebounceTime\", \"disabled\", \"enforceCoherence\", \"filterBy\", \"hasErrors\", \"id\", \"items\", \"itemText\", \"itemValue\", \"loadingText\", \"matchStrategy\", \"modelValue\", \"modelValueDebounceTime\", \"multiple\", \"name\", \"noDataText\", \"placeholder\", \"prefill\", \"queryDebounceTime\", \"readonly\", \"resetQueryOnOptionSelected\", \"stash\", \"transitionDuration\", \"updateOnAnimationFrame\"])\n ]),\n _: 3\n }, 8, [\"direction\", \"errors\", \"has-errors\", \"hideLabel\", \"id\", \"label\", \"labelPosition\", \"modelValue\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__emit","emit","eventListeners","event","value","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","hasErrors","_createVNode","BaseSelect","_mergeProps"],"mappings":";;;;;AA8RA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,YAAY,EAAE,MAAM,QAAQ;AAAA,IAC5B,cAAc,EAAE,MAAM,SAAS,SAAS,GAAK;AAAA,IAC7C,cAAc,CAAC;AAAA,IACf,WAAW,CAAC;AAAA,IACZ,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,cAAc,CAAC;AAAA,IACf,kBAAkB,CAAC;AAAA,IACnB,WAAW,CAAC;AAAA,IACZ,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,kBAAkB,EAAE,MAAM,QAAQ;AAAA,IAClC,QAAQ,CAAC;AAAA,IACT,UAAU,EAAE,MAAM,CAAC,QAAQ,OAAO,SAAS,UAAU,IAAI,EAAE;AAAA,IAC3D,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,OAAO,CAAC;AAAA,IACR,UAAU,CAAC;AAAA,IACX,WAAW,CAAC;AAAA,IACZ,OAAO,CAAC;AAAA,IACR,eAAe,CAAC;AAAA,IAChB,aAAa,CAAC;AAAA,IACd,eAAe,CAAC;AAAA,IAChB,YAAY,CAAC;AAAA,IACb,wBAAwB,CAAC;AAAA,IACzB,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,MAAM,CAAC;AAAA,IACP,YAAY,CAAC;AAAA,IACb,aAAa,CAAC;AAAA,IACd,SAAS,EAAE,MAAM,CAAC,SAAS,MAAM,GAAG,SAAS,QAAQ;AAAA,IACrD,mBAAmB,CAAC;AAAA,IACpB,UAAU,CAAC;AAAA,IACX,4BAA4B,EAAE,MAAM,QAAQ;AAAA,IAC5C,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,OAAO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,CAAC;AAAA,UAAA,CAC/E;AAAA,UACD,MAAMD,EAAS,CAACC,MAAS;AAAA,YACvBC,EAAYP,EAAK,QAAQ,QAAQQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC5E;AAAA,UACD,GAAG;AAAA,QAAA,GACF,MAAM,CAAC,gBAAgB,cAAc,gBAAgB,aAAa,SAAS,gBAAgB,oBAAoB,YAAY,oBAAoB,YAAY,aAAa,MAAM,SAAS,YAAY,aAAa,eAAe,iBAAiB,cAAc,0BAA0B,YAAY,QAAQ,cAAc,eAAe,WAAW,qBAAqB,YAAY,8BAA8B,SAAS,sBAAsB,wBAAwB,CAAC;AAAA,MAAA,CAC/c;AAAA,MACD,GAAG;AAAA,IACF,GAAA,GAAG,CAAC,aAAa,UAAU,cAAc,aAAa,MAAM,SAAS,iBAAiB,cAAc,QAAQ,SAAS,CAAC;AAAA,EAE3H;AAEA,CAAC;"}
|
|
1
|
+
{"version":3,"file":"index91.js","sources":["../src/components/BbSelect/BbSelect.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport BaseInputContainer from '../BaseInputContainer/BaseInputContainer.vue';\nimport BaseSelect from '../BaseSelect/BaseSelect.vue';\nimport type { BaseSelectEvents } from '../BaseSelect/BaseSelect.vue';\nimport type { NestedKeyOf } from '@/types/NestedKeyOf';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\n\nexport type BbSelectProps<T> = {\n\t/**\n\t * Allows the user to add options to the list by\n\t * inserting text in the input and pressing ENTER.\n\t * The value and text of the option generated is a\n\t * string equal to what has been inserted.\n\t */\n\taddOptions?: boolean;\n\n\t/**\n\t * Allows typing into the input.\n\t */\n\tallowWriting?: boolean;\n\n\t/**\n\t * Guides to the browser as to the type of information expected in the field.\n\t */\n\tautocomplete?: InputHTMLAttributes['autocomplete'];\n\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Sets the display model for selected values to a list\n\t * of comma separated string. In this mode the user\n\t * cannot deselect an option by pressing the close button.\n\t */\n\tcomma?: boolean;\n\n\t/**\n\t * Defines an array of dependencies that will trigger actions in the component upon change.\n\t */\n\tdependencies?: any[];\n\n\t/**\n\t * Timeout used to debounce response to changes to dependencies.\n\t */\n\tdepsDebounceTime?: number;\n\n\t/**\n\t * Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.\n\t */\n\tdirection?: 'horizontal' | 'vertical' | 'auto' | string;\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * If coherence is enforce the input cannot have a modelValue the is incoherent with its current items.\n\t *\n\t * e.g. You cannot set v-model to a user that is not present in the items passed.\n\t *\n\t * modelValue will be reset upon incoherence.\n\t */\n\tenforceCoherence?: boolean;\n\n\t/**\n\t * Can be a string or an array of string containing the messages to display.\n\t */\n\terrors?: string | string[];\n\n\t/**\n\t * Defines how the filtering should work.\n\t * In any case options are always filtered by the text displayed but\n\t * they can also take into account other properties of the\n\t * passed elements when this property is a string or an array of string.\n\t * E.g. items could be a list of users and you can filter users by email or phone by passing `['email', 'phone']`\n\t * You can also pass false to not filter anything or a function for more granular control.\n\t *\n\t */\n\tfilterBy?:\n\t\t| string\n\t\t| string[]\n\t\t| false\n\t\t| ((value: any, item: T) => boolean)\n\t\t| null;\n\n\t/**\n\t * Define if the component should be in an error state.\n\t * It usually attaches a CSS class for styling purposes.\n\t */\n\thasErrors?: boolean;\n\n\t/**\n\t * Visually hides the label of the input while maintaining accessibility.\n\t */\n\thideLabel?: boolean;\n\n\t/**\n\t * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\n\n\t/**\n\t * Used to retrieve items can be an array or a function.\n\t */\n\titems:\n\t\t| T[]\n\t\t| ((query: string, prefill: boolean, modelValue: any) => Promise<T[]>)\n\t\t| ((query: string, prefill: boolean, modelValue: any) => T[]);\n\n\t/**\n\t * Defines a path that returns a property of the object to use as text or a function that returns a string\n\t */\n\titemText?: T extends object\n\t\t? NestedKeyOf<T> | ((item: T) => string)\n\t\t: ((item: T) => string) | undefined;\n\n\t/**\n\t * Defines a path that returns a property of the object to use as value or a function that returns any value\n\t */\n\titemValue?: T extends object\n\t\t? NestedKeyOf<T> | ((item: T) => string)\n\t\t: ((item: T) => any) | undefined;\n\n\t/**\n\t * Text content of the label of the element.\n\t */\n\tlabel: string;\n\n\t/**\n\t * Sets the text alignment of the label.\n\t */\n\tlabelPosition?: 'left' | 'center' | 'right';\n\n\t/**\n\t * String displayed while items are being loaded.\n\t */\n\tloadingText?: string;\n\n\t/**\n\t * Defines the strategy used to understand whether an option has been selected.\n\t * `string` is 40% faster but relies on property order.\n\t * `equality` is more reliable but is slower.\n\t */\n\tmatchStrategy?: 'string' | 'equality';\n\n\t/**\n\t * Used by v-model. Can be any serializable type.\n\t */\n\tmodelValue: any;\n\n\t/**\n\t * Timeout used to debounce response to changes to modelValue.\n\t */\n\tmodelValueDebounceTime?: number;\n\n\t/**\n\t * Allows the selection of multiple items.\n\t */\n\tmultiple?: boolean;\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname?: InputHTMLAttributes['name'];\n\n\t/**\n\t * String displayed when there are no items to display.\n\t */\n\tnoDataText?: string;\n\n\t/**\n\t * String displayed when there's no data.\n\t */\n\tplaceholder?: InputHTMLAttributes['placeholder'];\n\n\t/**\n\t * Defines the prefill strategy for the input. By default the input will prefill\n\t * on focus. It can also always prefill with `true` and only prefill on search with `false`.\n\t */\n\tprefill?: boolean | 'focus';\n\n\t/**\n\t * Time to wait when the users stops writing in the input before querying data.\n\t * Especially useful when searching live data on big datasets.\n\t */\n\tqueryDebounceTime?: number;\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n\n\t/**\n\t * If `true` when in multiple selection, reset the query immediately\n\t * upon selecting an option. By default the query is\n\t * not reset until focus is lost so the user can search\n\t * for \"Cath\" and select \"Cathy\" and then write more to\n\t * search for \"Catherine\"\n\t */\n\tresetQueryOnOptionSelected?: boolean;\n\n\t/**\n\t * Reverses the layout. Applicable in every direction the order of the label and the input is swapped.\n\t */\n\treverse?: boolean;\n\n\t/**\n\t * Adds a stash to accumulate selected values. Especially\n\t * useful when searching in a big database of items.\n\t * E.g. if you search for \"John\" and then search for \"Richard\"\n\t * you either always return the previous items or you stash them passing `true` to this option.\n\t */\n\tstash?: boolean;\n\n\t/**\n\t * How long the transition has to last in milliseconds\n\t */\n\ttransitionDuration?: number;\n\n\t/**\n\t * Pass `true` if the dropdown is not updating following movement in the UI, like in modals. Very expensive so use with care.\n\t */\n\tupdateOnAnimationFrame?: boolean;\n};\n\nexport type BbSelectEvents = BaseSelectEvents;\n\nexport type BbSelectSlots<T> = {\n\tappend?: (props: {}) => any;\n\n\t'append-outer'?: (props: {}) => any;\n\n\tchevron?: (props: { loading: boolean; shown: boolean }) => any;\n\n\tchip?: (props: {\n\t\tdisabled: boolean;\n\t\thasErrors?: boolean;\n\t\tindex: number;\n\t\titem: T;\n\t\tloading: boolean;\n\t\tmanual: boolean;\n\t\tselected: boolean;\n\t\ttext: string;\n\t\tvalue: any;\n\t}) => any;\n\n\tlabel?: (props: { text: string; hasErrors: boolean }) => any;\n\n\tloading?: (props: { query: string }) => any;\n\n\t'no-data'?: (props: { query: string }) => any;\n\n\toption?: (props: {\n\t\tdisabled: boolean;\n\t\tfocused: boolean;\n\t\thasErrors?: boolean;\n\t\tindex: number;\n\t\titem: T;\n\t\tloading: boolean;\n\t\tmanual: boolean;\n\t\tselected: boolean;\n\t\ttext: string;\n\t\tvalue: any;\n\t}) => any;\n\n\t'option:append'?: (props: { item: T }) => any;\n\n\t'option:prepend'?: (props: { item: T }) => any;\n\n\t'options:append'?: (props: {}) => any;\n\n\t'options:prepend'?: (props: {}) => any;\n\n\tprepend?: (props: {}) => any;\n\n\t'prepend-outer'?: (props: {}) => any;\n\n\tspinner?: (props: { loading: boolean }) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbSelect',\n props: {\n addOptions: { type: Boolean },\n allowWriting: { type: Boolean, default: true },\n autocomplete: {},\n autofocus: {},\n comma: { type: Boolean },\n dependencies: {},\n depsDebounceTime: {},\n direction: {},\n disabled: { type: Boolean },\n enforceCoherence: { type: Boolean },\n errors: {},\n filterBy: { type: [String, Array, Boolean, Function, null] },\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n items: {},\n itemText: {},\n itemValue: {},\n label: {},\n labelPosition: {},\n loadingText: {},\n matchStrategy: {},\n modelValue: {},\n modelValueDebounceTime: {},\n multiple: { type: Boolean },\n name: {},\n noDataText: {},\n placeholder: {},\n prefill: { type: [Boolean, String], default: 'focus' },\n queryDebounceTime: {},\n readonly: {},\n resetQueryOnOptionSelected: { type: Boolean },\n reverse: { type: Boolean },\n stash: { type: Boolean },\n transitionDuration: {},\n updateOnAnimationFrame: { type: Boolean }\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"inactive\", \"input\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit;\n\n\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => emit('blur', event),\n\tonChange: (event: Event) => emit('change', event),\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonFocus: (event: FocusEvent) => emit('focus', event),\n\tonInactive: () => emit('inactive'),\n\tonInput: (event: Event) => emit('input', event),\n\t'onUpdate:modelValue': (value: any) => emit('update:modelValue', value),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n id: _ctx.id,\n class: \"bb-select\",\n direction: _ctx.direction,\n errors: _ctx.errors,\n \"has-errors\": _ctx.hasErrors,\n \"hide-label\": _ctx.hideLabel,\n label: _ctx.label,\n \"label-position\": _ctx.labelPosition,\n \"model-value\": _ctx.modelValue,\n name: _ctx.name,\n reverse: _ctx.reverse\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name, hasErrors }) => [\n _createVNode(BaseSelect, _mergeProps({\n id: id,\n \"add-options\": _ctx.addOptions,\n \"allow-writing\": _ctx.allowWriting,\n autocomplete: _ctx.autocomplete,\n autofocus: _ctx.autofocus,\n comma: _ctx.comma,\n dependencies: _ctx.dependencies,\n \"deps-debounce-time\": _ctx.depsDebounceTime,\n disabled: _ctx.disabled,\n \"enforce-coherence\": _ctx.enforceCoherence,\n \"filter-by\": _ctx.filterBy,\n \"has-errors\": hasErrors,\n \"item-text\": _ctx.itemText as any,\n \"item-value\": _ctx.itemValue as any,\n items: _ctx.items,\n \"loading-text\": _ctx.loadingText,\n \"match-strategy\": _ctx.matchStrategy,\n \"model-value\": _ctx.modelValue,\n \"model-value-debounce-time\": _ctx.modelValueDebounceTime,\n multiple: _ctx.multiple,\n name: name,\n \"no-data-text\": _ctx.noDataText,\n placeholder: _ctx.placeholder,\n prefill: _ctx.prefill,\n \"query-debounce-time\": _ctx.queryDebounceTime,\n readonly: _ctx.readonly,\n \"reset-query-on-option-selected\": _ctx.resetQueryOnOptionSelected,\n stash: _ctx.stash,\n \"transition-duration\": _ctx.transitionDuration,\n \"update-on-animation-frame\": _ctx.updateOnAnimationFrame\n }, eventListeners), {\n \"append-outer\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"append-outer\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n append: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"append\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n chevron: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"chevron\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n loading: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"loading\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"no-data\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"no-data\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"option:append\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"option:append\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"option:prepend\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"option:prepend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n option: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"option\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"options:append\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"options:append\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"options:prepend\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"options:prepend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"prepend-outer\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"prepend-outer\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n prepend: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"prepend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n spinner: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"spinner\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n chip: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"chip\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n _: 2\n }, 1040, [\"id\", \"add-options\", \"allow-writing\", \"autocomplete\", \"autofocus\", \"comma\", \"dependencies\", \"deps-debounce-time\", \"disabled\", \"enforce-coherence\", \"filter-by\", \"has-errors\", \"item-text\", \"item-value\", \"items\", \"loading-text\", \"match-strategy\", \"model-value\", \"model-value-debounce-time\", \"multiple\", \"name\", \"no-data-text\", \"placeholder\", \"prefill\", \"query-debounce-time\", \"readonly\", \"reset-query-on-option-selected\", \"stash\", \"transition-duration\", \"update-on-animation-frame\"])\n ]),\n _: 3\n }, 8, [\"id\", \"direction\", \"errors\", \"has-errors\", \"hide-label\", \"label\", \"label-position\", \"model-value\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__emit","emit","eventListeners","event","value","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","hasErrors","_createVNode","BaseSelect","_mergeProps"],"mappings":";;;;;AA8RA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,YAAY,EAAE,MAAM,QAAQ;AAAA,IAC5B,cAAc,EAAE,MAAM,SAAS,SAAS,GAAK;AAAA,IAC7C,cAAc,CAAC;AAAA,IACf,WAAW,CAAC;AAAA,IACZ,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,cAAc,CAAC;AAAA,IACf,kBAAkB,CAAC;AAAA,IACnB,WAAW,CAAC;AAAA,IACZ,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,kBAAkB,EAAE,MAAM,QAAQ;AAAA,IAClC,QAAQ,CAAC;AAAA,IACT,UAAU,EAAE,MAAM,CAAC,QAAQ,OAAO,SAAS,UAAU,IAAI,EAAE;AAAA,IAC3D,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,OAAO,CAAC;AAAA,IACR,UAAU,CAAC;AAAA,IACX,WAAW,CAAC;AAAA,IACZ,OAAO,CAAC;AAAA,IACR,eAAe,CAAC;AAAA,IAChB,aAAa,CAAC;AAAA,IACd,eAAe,CAAC;AAAA,IAChB,YAAY,CAAC;AAAA,IACb,wBAAwB,CAAC;AAAA,IACzB,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,MAAM,CAAC;AAAA,IACP,YAAY,CAAC;AAAA,IACb,aAAa,CAAC;AAAA,IACd,SAAS,EAAE,MAAM,CAAC,SAAS,MA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P,EAAK,QAAQ,WAAWQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC/E;AAAA,UACD,SAASD,EAAS,CAACC,MAAS;AAAA,YAC1BC,EAAYP,EAAK,QAAQ,WAAWQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC/E;AAAA,UACD,MAAMD,EAAS,CAACC,MAAS;AAAA,YACvBC,EAAYP,EAAK,QAAQ,QAAQQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC5E;AAAA,UACD,GAAG;AAAA,QAAA,GACF,MAAM,CAAC,MAAM,eAAe,iBAAiB,gBAAgB,aAAa,SAAS,gBAAgB,sBAAsB,YAAY,qBAAqB,aAAa,cAAc,aAAa,cAAc,SAAS,gBAAgB,kBAAkB,eAAe,6BAA6B,YAAY,QAAQ,gBAAgB,eAAe,WAAW,uBAAuB,YAAY,kCAAkC,SAAS,uBAAuB,2BAA2B,CAAC;AAAA,MAAA,CAC1e;AAAA,MACD,GAAG;AAAA,IACF,GAAA,GAAG,CAAC,MAAM,aAAa,UAAU,cAAc,cAAc,SAAS,kBAAkB,eAAe,QAAQ,SAAS,CAAC;AAAA,EAE9H;AAEA,CAAC;"}
|
package/dist/index93.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as u, openBlock as b, createBlock as c, withCtx as r, renderSlot as l, normalizeProps as i, guardReactiveProps as s, createVNode as
|
|
1
|
+
import { defineComponent as u, openBlock as b, createBlock as c, withCtx as r, renderSlot as l, normalizeProps as i, guardReactiveProps as s, createVNode as v, mergeProps as f } from "vue";
|
|
2
2
|
import h from "./index21.js";
|
|
3
3
|
import "./index22.js";
|
|
4
4
|
import y from "./index33.js";
|
|
5
5
|
import "./index34.js";
|
|
6
|
-
const
|
|
6
|
+
const E = /* @__PURE__ */ u({
|
|
7
7
|
__name: "BbSlider",
|
|
8
8
|
props: {
|
|
9
9
|
autofocus: {},
|
|
@@ -25,7 +25,7 @@ const $ = /* @__PURE__ */ u({
|
|
|
25
25
|
step: {}
|
|
26
26
|
},
|
|
27
27
|
emits: ["click", "end", "focus", "inactive", "keydown", "pointerdown", "pointermove", "pointerup", "start", "update:modelValue"],
|
|
28
|
-
setup(
|
|
28
|
+
setup(P, { emit: d }) {
|
|
29
29
|
const o = d, t = {
|
|
30
30
|
onClick: (e) => o("click", e),
|
|
31
31
|
onEnd: (e) => o("end", e),
|
|
@@ -38,16 +38,16 @@ const $ = /* @__PURE__ */ u({
|
|
|
38
38
|
onStart: (e) => o("start", e),
|
|
39
39
|
"onUpdate:modelValue": (e) => o("update:modelValue", e)
|
|
40
40
|
};
|
|
41
|
-
return (e,
|
|
41
|
+
return (e, k) => (b(), c(h, {
|
|
42
|
+
id: e.id,
|
|
42
43
|
class: "bb-slider",
|
|
43
44
|
direction: e.direction,
|
|
44
45
|
errors: e.errors,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
id: e.id,
|
|
46
|
+
"has-errors": e.hasErrors,
|
|
47
|
+
"hide-label": e.hideLabel,
|
|
48
48
|
label: e.label,
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
"label-position": e.labelPosition,
|
|
50
|
+
"model-value": e.modelValue,
|
|
51
51
|
name: e.name,
|
|
52
52
|
reverse: e.reverse
|
|
53
53
|
}, {
|
|
@@ -55,15 +55,15 @@ const $ = /* @__PURE__ */ u({
|
|
|
55
55
|
l(e.$slots, "label", i(s(a)))
|
|
56
56
|
]),
|
|
57
57
|
input: r(({ id: a, name: p, hasErrors: m }) => [
|
|
58
|
-
|
|
58
|
+
v(y, f({
|
|
59
|
+
id: a,
|
|
59
60
|
autofocus: e.autofocus,
|
|
60
61
|
color: e.color,
|
|
61
62
|
disabled: e.disabled,
|
|
62
|
-
|
|
63
|
-
id: a,
|
|
63
|
+
"has-errors": m,
|
|
64
64
|
max: e.max,
|
|
65
65
|
min: e.min,
|
|
66
|
-
|
|
66
|
+
"model-value": e.modelValue,
|
|
67
67
|
name: p,
|
|
68
68
|
readonly: e.readonly,
|
|
69
69
|
step: e.step
|
|
@@ -75,13 +75,13 @@ const $ = /* @__PURE__ */ u({
|
|
|
75
75
|
l(e.$slots, "prepend", i(s(n)))
|
|
76
76
|
]),
|
|
77
77
|
_: 2
|
|
78
|
-
}, 1040, ["
|
|
78
|
+
}, 1040, ["id", "autofocus", "color", "disabled", "has-errors", "max", "min", "model-value", "name", "readonly", "step"])
|
|
79
79
|
]),
|
|
80
80
|
_: 3
|
|
81
|
-
}, 8, ["
|
|
81
|
+
}, 8, ["id", "direction", "errors", "has-errors", "hide-label", "label", "label-position", "model-value", "name", "reverse"]));
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
export {
|
|
85
|
-
|
|
85
|
+
E as default
|
|
86
86
|
};
|
|
87
87
|
//# sourceMappingURL=index93.js.map
|
package/dist/index93.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index93.js","sources":["../src/components/BbSlider/BbSlider.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport BaseInputContainer from
|
|
1
|
+
{"version":3,"file":"index93.js","sources":["../src/components/BbSlider/BbSlider.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport BaseInputContainer from '../BaseInputContainer/BaseInputContainer.vue';\nimport BaseSlider from '../BaseSlider/BaseSlider.vue';\nimport type {\n\tBaseSliderEvents,\n\tBaseSliderSlots,\n} from '../BaseSlider/BaseSlider.vue';\nimport type { BaseInputContainerSlots } from '../BaseInputContainer/BaseInputContainer.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\n\nexport type BbSliderProps = {\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Define a color for the component.\n\t *\n\t * Either a custom color or a coded color in common HEX, RGB, etc... format.\n\t */\n\tcolor?: string;\n\n\t/**\n\t * Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.\n\t */\n\tdirection?: 'horizontal' | 'vertical' | 'auto' | string;\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * Can be a string or an array of string containing the messages to display.\n\t */\n\terrors?: string | string[];\n\n\t/**\n\t * Define if the component should be in an error state.\n\t * It usually attaches a CSS class for styling purposes.\n\t */\n\thasErrors?: boolean;\n\n\t/**\n\t * Visually hides the label of the input while maintaining accessibility.\n\t */\n\thideLabel?: boolean;\n\n\t/**\n\t * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\n\n\t/**\n\t * Text content of the label of the element.\n\t */\n\tlabel: string;\n\n\t/**\n\t * Sets the text alignment of the label.\n\t */\n\tlabelPosition?: 'left' | 'center' | 'right';\n\n\t/**\n\t * Maximum value cap.\n\t */\n\tmax?: number;\n\n\t/**\n\t * Minimum value cap.\n\t */\n\tmin?: number;\n\n\t/**\n\t * Used by v-model.\n\t */\n\tmodelValue: number | string | null;\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname?: InputHTMLAttributes['name'];\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n\n\t/**\n\t * Reverses the layout. Applicable in every direction the order of the label and the input is swapped.\n\t */\n\treverse?: boolean;\n\n\t/**\n\t * The step attribute is a number that specifies the granularity that the value must adhere to.\n\t */\n\tstep?: number;\n};\nexport type BbSliderEvents = BaseSliderEvents;\n\ntype BbSliderSlots = BaseSliderSlots & {\n\tlabel?: (props: { text: string; hasErrors: boolean }) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbSlider',\n props: {\n autofocus: {},\n color: {},\n direction: {},\n disabled: { type: Boolean },\n errors: {},\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n label: {},\n labelPosition: {},\n max: {},\n min: {},\n modelValue: {},\n name: {},\n readonly: {},\n reverse: { type: Boolean },\n step: {}\n },\n emits: [\"click\", \"end\", \"focus\", \"inactive\", \"keydown\", \"pointerdown\", \"pointermove\", \"pointerup\", \"start\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit;\n\n\n\n/**\n * These events are just propagated\n */\nconst eventListeners = {\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonEnd: (value: BbSliderProps['modelValue']) => emit('end', value),\n\tonFocus: (event: FocusEvent) => emit('focus', event),\n\tonInactive: () => emit('inactive'),\n\tonKeydown: (event: KeyboardEvent) => emit('keydown', event),\n\tonPointerdown: (event: PointerEvent) => emit('pointerdown', event),\n\tonPointermove: (event: PointerEvent) => emit('pointermove', event),\n\tonPointerup: (event: PointerEvent) => emit('pointerup', event),\n\tonStart: (value: BbSliderProps['modelValue']) => emit('start', value),\n\t'onUpdate:modelValue': (value: number) => emit('update:modelValue', value),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n id: _ctx.id,\n class: \"bb-slider\",\n direction: _ctx.direction,\n errors: _ctx.errors,\n \"has-errors\": _ctx.hasErrors,\n \"hide-label\": _ctx.hideLabel,\n label: _ctx.label,\n \"label-position\": _ctx.labelPosition,\n \"model-value\": _ctx.modelValue,\n name: _ctx.name,\n reverse: _ctx.reverse\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name, hasErrors }) => [\n _createVNode(BaseSlider, _mergeProps({\n id: id,\n autofocus: _ctx.autofocus,\n color: _ctx.color,\n disabled: _ctx.disabled,\n \"has-errors\": hasErrors,\n max: _ctx.max,\n min: _ctx.min,\n \"model-value\": _ctx.modelValue,\n name: name,\n readonly: _ctx.readonly,\n step: _ctx.step\n }, eventListeners), {\n append: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"append\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n prepend: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"prepend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n _: 2\n }, 1040, [\"id\", \"autofocus\", \"color\", \"disabled\", \"has-errors\", \"max\", \"min\", \"model-value\", \"name\", \"readonly\", \"step\"])\n ]),\n _: 3\n }, 8, [\"id\", \"direction\", \"errors\", \"has-errors\", \"hide-label\", \"label\", \"label-position\", \"model-value\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__emit","emit","eventListeners","event","value","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","hasErrors","_createVNode","BaseSlider","_mergeProps"],"mappings":";;;;;AA4GA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,WAAW,CAAC;AAAA,IACZ,OAAO,CAAC;AAAA,IACR,WAAW,CAAC;AAAA,IACZ,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,QAAQ,CAAC;AAAA,IACT,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,OAAO,CAAC;AAAA,IACR,eAAe,CAAC;AAAA,IAChB,KAAK,CAAC;AAAA,IACN,KAAK,CAAC;AAAA,IACN,YAAY,CAAC;AAAA,IACb,MAAM,CAAC;AAAA,IACP,UAAU,CAAC;AAAA,IACX,S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OAAOD,EAAS,CAAC,EAAE,IAAAK,GAAI,MAAAC,GAAM,WAAAC,QAAgB;AAAA,QAC3CC,EAAaC,GAAYC,EAAY;AAAA,UACnC,IAAAL;AAAA,UACA,WAAWV,EAAK;AAAA,UAChB,OAAOA,EAAK;AAAA,UACZ,UAAUA,EAAK;AAAA,UACf,cAAcY;AAAA,UACd,KAAKZ,EAAK;AAAA,UACV,KAAKA,EAAK;AAAA,UACV,eAAeA,EAAK;AAAA,UACpB,MAAAW;AAAA,UACA,UAAUX,EAAK;AAAA,UACf,MAAMA,EAAK;AAAA,QACb,GAAGH,CAAc,GAAG;AAAA,UAClB,QAAQQ,EAAS,CAACC,MAAS;AAAA,YACzBC,EAAYP,EAAK,QAAQ,UAAUQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC9E;AAAA,UACD,SAASD,EAAS,CAACC,MAAS;AAAA,YAC1BC,EAAYP,EAAK,QAAQ,WAAWQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC/E;AAAA,UACD,GAAG;AAAA,QACF,GAAA,MAAM,CAAC,MAAM,aAAa,SAAS,YAAY,cAAc,OAAO,OAAO,eAAe,QAAQ,YAAY,MAAM,CAAC;AAAA,MAAA,CACzH;AAAA,MACD,GAAG;AAAA,IACF,GAAA,GAAG,CAAC,MAAM,aAAa,UAAU,cAAc,cAAc,SAAS,kBAAkB,eAAe,QAAQ,SAAS,CAAC;AAAA,EAE9H;AAEA,CAAC;"}
|
package/dist/index95.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as m, openBlock as p, createBlock as b, withCtx as l, renderSlot as r, normalizeProps as c, guardReactiveProps as h, createVNode as f, mergeProps as n } from "vue";
|
|
2
|
-
import
|
|
2
|
+
import v from "./index21.js";
|
|
3
3
|
import "./index22.js";
|
|
4
4
|
import y from "./index35.js";
|
|
5
5
|
import "./index36.js";
|
|
6
|
-
const
|
|
6
|
+
const $ = /* @__PURE__ */ m({
|
|
7
7
|
__name: "BbSwitch",
|
|
8
8
|
props: {
|
|
9
9
|
autofocus: {},
|
|
@@ -28,8 +28,8 @@ const F = /* @__PURE__ */ m({
|
|
|
28
28
|
reverse: { type: Boolean, default: !0 }
|
|
29
29
|
},
|
|
30
30
|
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
|
31
|
-
setup(k, { emit:
|
|
32
|
-
const o =
|
|
31
|
+
setup(k, { emit: s }) {
|
|
32
|
+
const o = s, i = {
|
|
33
33
|
onBlur: (e) => o("blur", e),
|
|
34
34
|
onChange: (e) => o("change", e),
|
|
35
35
|
onClick: (e) => o("click", e),
|
|
@@ -40,17 +40,17 @@ const F = /* @__PURE__ */ m({
|
|
|
40
40
|
onMouseup: (e) => o("mouseup", e),
|
|
41
41
|
"onUpdate:modelValue": (e) => o("update:modelValue", e)
|
|
42
42
|
};
|
|
43
|
-
return (e,
|
|
43
|
+
return (e, w) => (p(), b(v, {
|
|
44
|
+
id: e.id,
|
|
44
45
|
class: "bb-switch",
|
|
45
46
|
direction: e.direction,
|
|
46
47
|
errors: e.errors,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
inputPosition: e.inputPosition,
|
|
48
|
+
"has-errors": e.hasErrors,
|
|
49
|
+
"hide-label": e.hideLabel,
|
|
50
|
+
"input-position": e.inputPosition,
|
|
51
51
|
label: e.label,
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
"label-position": e.labelPosition,
|
|
53
|
+
"label-tag": "span",
|
|
54
54
|
name: e.name,
|
|
55
55
|
reverse: e.reverse,
|
|
56
56
|
tag: "label"
|
|
@@ -60,31 +60,31 @@ const F = /* @__PURE__ */ m({
|
|
|
60
60
|
]),
|
|
61
61
|
input: l(({ id: a, name: u, hasErrors: t }) => [
|
|
62
62
|
f(y, n({
|
|
63
|
+
id: a,
|
|
63
64
|
autofocus: e.autofocus,
|
|
64
65
|
checked: e.checked,
|
|
65
66
|
color: e.color,
|
|
66
67
|
disabled: e.disabled,
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
"false-value": e.falseValue,
|
|
69
|
+
"has-errors": t,
|
|
69
70
|
indeterminate: e.indeterminate,
|
|
70
|
-
|
|
71
|
+
"model-value": e.modelValue,
|
|
71
72
|
name: u,
|
|
72
73
|
readonly: e.readonly,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}, s), {
|
|
74
|
+
"submit-when-false": e.submitWhenFalse,
|
|
75
|
+
"true-value": e.trueValue
|
|
76
|
+
}, i), {
|
|
77
77
|
icon: l((d) => [
|
|
78
78
|
r(e.$slots, "icon", n(d, { text: e.label }))
|
|
79
79
|
]),
|
|
80
80
|
_: 2
|
|
81
|
-
}, 1040, ["autofocus", "checked", "color", "disabled", "
|
|
81
|
+
}, 1040, ["id", "autofocus", "checked", "color", "disabled", "false-value", "has-errors", "indeterminate", "model-value", "name", "readonly", "submit-when-false", "true-value"])
|
|
82
82
|
]),
|
|
83
83
|
_: 3
|
|
84
|
-
}, 8, ["
|
|
84
|
+
}, 8, ["id", "direction", "errors", "has-errors", "hide-label", "input-position", "label", "label-position", "name", "reverse"]));
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
export {
|
|
88
|
-
|
|
88
|
+
$ as default
|
|
89
89
|
};
|
|
90
90
|
//# sourceMappingURL=index95.js.map
|
package/dist/index95.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index95.js","sources":["../src/components/BbSwitch/BbSwitch.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport BaseInputContainer from
|
|
1
|
+
{"version":3,"file":"index95.js","sources":["../src/components/BbSwitch/BbSwitch.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport BaseInputContainer from '../BaseInputContainer/BaseInputContainer.vue';\nimport BaseSwitch from '../BaseSwitch/BaseSwitch.vue';\nimport type { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';\nimport type {\n\tBbCheckboxEvents,\n\tBbCheckboxProps,\n} from '../BbCheckbox/BbCheckbox.vue';\n\nexport type BbSwitchProps = BbCheckboxProps;\n\nexport type BbSwitchEvents = BbCheckboxEvents;\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbSwitch',\n props: {\n autofocus: {},\n checked: {},\n color: {},\n disabled: { type: Boolean },\n falseValue: {},\n hasErrors: { type: Boolean },\n id: {},\n indeterminate: {},\n name: {},\n readonly: {},\n submitWhenFalse: { type: Boolean },\n trueValue: {},\n modelValue: {},\n direction: { default: 'auto' },\n errors: {},\n hideLabel: { type: Boolean },\n inputPosition: {},\n label: {},\n labelPosition: {},\n reverse: { type: Boolean, default: true }\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit;\n\n\n\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => emit('blur', event),\n\tonChange: (event: Event) => emit('change', event),\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonFocus: (event: FocusEvent) => emit('focus', event),\n\tonInput: (event: Event) => emit('input', event),\n\tonKeydown: (event: KeyboardEvent) => emit('keydown', event),\n\tonMousedown: (event: MouseEvent) => emit('mousedown', event),\n\tonMouseup: (event: MouseEvent) => emit('mouseup', event),\n\t'onUpdate:modelValue': (value: any) => emit('update:modelValue', value),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n id: _ctx.id,\n class: \"bb-switch\",\n direction: _ctx.direction,\n errors: _ctx.errors,\n \"has-errors\": _ctx.hasErrors,\n \"hide-label\": _ctx.hideLabel,\n \"input-position\": _ctx.inputPosition,\n label: _ctx.label,\n \"label-position\": _ctx.labelPosition,\n \"label-tag\": 'span',\n name: _ctx.name,\n reverse: _ctx.reverse,\n tag: 'label'\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name, hasErrors }) => [\n _createVNode(BaseSwitch, _mergeProps({\n id: id,\n autofocus: _ctx.autofocus,\n checked: _ctx.checked,\n color: _ctx.color,\n disabled: _ctx.disabled,\n \"false-value\": _ctx.falseValue,\n \"has-errors\": hasErrors,\n indeterminate: _ctx.indeterminate,\n \"model-value\": _ctx.modelValue,\n name: name,\n readonly: _ctx.readonly,\n \"submit-when-false\": _ctx.submitWhenFalse,\n \"true-value\": _ctx.trueValue\n }, eventListeners), {\n icon: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"icon\", _mergeProps(data, { text: _ctx.label }))\n ]),\n _: 2\n }, 1040, [\"id\", \"autofocus\", \"checked\", \"color\", \"disabled\", \"false-value\", \"has-errors\", \"indeterminate\", \"model-value\", \"name\", \"readonly\", \"submit-when-false\", \"true-value\"])\n ]),\n _: 3\n }, 8, [\"id\", \"direction\", \"errors\", \"has-errors\", \"hide-label\", \"input-position\", \"label\", \"label-position\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__emit","emit","eventListeners","event","value","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","hasErrors","_createVNode","BaseSwitch","_mergeProps"],"mappings":";;;;;AAgBA,MAA4BA,IAAiBC,gBAAAA,EAA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