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/index83.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as m, createBlock as c, withCtx as l, renderSlot as r, normalizeProps as b, 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
|
-
import
|
|
4
|
+
import k from "./index25.js";
|
|
5
5
|
import "./index26.js";
|
|
6
|
-
const
|
|
6
|
+
const $ = /* @__PURE__ */ p({
|
|
7
7
|
__name: "BbRadio",
|
|
8
8
|
props: {
|
|
9
9
|
autofocus: {},
|
|
@@ -25,8 +25,8 @@ const L = /* @__PURE__ */ p({
|
|
|
25
25
|
reverse: { type: Boolean, default: !0 }
|
|
26
26
|
},
|
|
27
27
|
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
|
28
|
-
setup(
|
|
29
|
-
const o =
|
|
28
|
+
setup(y, { emit: s }) {
|
|
29
|
+
const o = s, i = {
|
|
30
30
|
onBlur: (e) => o("blur", e),
|
|
31
31
|
onChange: (e) => o("change", e),
|
|
32
32
|
onClick: (e) => o("click", e),
|
|
@@ -37,17 +37,17 @@ const L = /* @__PURE__ */ p({
|
|
|
37
37
|
onMouseup: (e) => o("mouseup", e),
|
|
38
38
|
"onUpdate:modelValue": (e) => o("update:modelValue", e)
|
|
39
39
|
};
|
|
40
|
-
return (e,
|
|
40
|
+
return (e, B) => (m(), c(v, {
|
|
41
|
+
id: e.id,
|
|
41
42
|
class: "bb-radio",
|
|
42
43
|
direction: e.direction,
|
|
43
44
|
errors: e.errors,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
inputPosition: e.inputPosition,
|
|
45
|
+
"has-errors": e.hasErrors,
|
|
46
|
+
"hide-label": e.hideLabel,
|
|
47
|
+
"input-position": e.inputPosition,
|
|
48
48
|
label: e.label,
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
"label-position": e.labelPosition,
|
|
50
|
+
"label-tag": "span",
|
|
51
51
|
name: e.name,
|
|
52
52
|
reverse: e.reverse,
|
|
53
53
|
tag: "label"
|
|
@@ -56,29 +56,29 @@ const L = /* @__PURE__ */ p({
|
|
|
56
56
|
r(e.$slots, "label", b(h(a)))
|
|
57
57
|
]),
|
|
58
58
|
input: l(({ id: a, name: d, hasErrors: u }) => [
|
|
59
|
-
f(
|
|
59
|
+
f(k, n({
|
|
60
|
+
id: a,
|
|
60
61
|
autofocus: e.autofocus,
|
|
61
62
|
checked: e.checked,
|
|
62
63
|
color: e.color,
|
|
63
64
|
disabled: e.disabled,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
modelValue: e.modelValue,
|
|
65
|
+
"has-errors": u,
|
|
66
|
+
"model-value": e.modelValue,
|
|
67
67
|
name: d,
|
|
68
68
|
readonly: e.readonly,
|
|
69
69
|
value: e.value
|
|
70
|
-
},
|
|
70
|
+
}, i), {
|
|
71
71
|
icon: l((t) => [
|
|
72
72
|
r(e.$slots, "icon", n(t, { text: e.label }))
|
|
73
73
|
]),
|
|
74
74
|
_: 2
|
|
75
|
-
}, 1040, ["autofocus", "checked", "color", "disabled", "
|
|
75
|
+
}, 1040, ["id", "autofocus", "checked", "color", "disabled", "has-errors", "model-value", "name", "readonly", "value"])
|
|
76
76
|
]),
|
|
77
77
|
_: 3
|
|
78
|
-
}, 8, ["
|
|
78
|
+
}, 8, ["id", "direction", "errors", "has-errors", "hide-label", "input-position", "label", "label-position", "name", "reverse"]));
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
export {
|
|
82
|
-
|
|
82
|
+
$ as default
|
|
83
83
|
};
|
|
84
84
|
//# sourceMappingURL=index83.js.map
|
package/dist/index83.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index83.js","sources":["../src/components/BbRadio/BbRadio.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":"index83.js","sources":["../src/components/BbRadio/BbRadio.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 BaseRadio from '../BaseRadio/BaseRadio.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\nimport type {\n\tSlotAttributes,\n\tBaseRadioEvents,\n} from '../BaseRadio/BaseRadio.vue';\n\nexport type BbRadioProps = {\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Defines the input as checked\n\t */\n\tchecked?: InputHTMLAttributes['checked'];\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 * Disables the component\n\t */\n\tdisabled?: boolean;\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 * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\n\n\t/**\n\t * Used by v-model. Can be any serializable type.\n\t */\n\tmodelValue?: any;\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 * Defines the value of the radio input.\n\t * It can be any serializable value.\n\t */\n\tvalue: any;\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 * 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 * Visually hides the label of the input while maintaining accessibility.\n\t */\n\thideLabel?: boolean;\n\n\t/**\n\t * Sets the slignment of the input. Since inputs are inline block they can be aligned just as text can.\n\t */\n\tinputPosition?: 'left' | 'center' | 'right';\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 * Reverses the layout. Applicable in every direction the order of the label and the input is swapped.\n\t */\n\treverse?: boolean;\n};\n\nexport type BbRadioEvents = BaseRadioEvents;\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbRadio',\n props: {\n autofocus: {},\n checked: {},\n color: {},\n disabled: { type: Boolean },\n hasErrors: { type: Boolean },\n id: {},\n modelValue: {},\n name: {},\n readonly: {},\n value: {},\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-radio\",\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(BaseRadio, _mergeProps({\n id: id,\n autofocus: _ctx.autofocus,\n checked: _ctx.checked,\n color: _ctx.color,\n disabled: _ctx.disabled,\n \"has-errors\": hasErrors,\n \"model-value\": _ctx.modelValue,\n name: name,\n readonly: _ctx.readonly,\n value: _ctx.value\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\", \"has-errors\", \"model-value\", \"name\", \"readonly\", \"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","BaseRadio","_mergeProps"],"mappings":";;;;;AAyGA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,WAAW,CAAC;AAAA,IACZ,SAAS,CAAC;AAAA,IACV,OAAO,CAAC;AAAA,IACR,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,YAAY,CAAC;AAAA,IACb,MAAM,CAAC;AAAA,IACP,UAAU,CAAC;AAAA,IACX,OAAO,CAAC;AAAA,IACR,WAAW,EAAE,SAAS,OAAO;AAAA,IAC7B,QAAQ,CAAC;AAAA,IACT,WAAW,EAAE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EAAK,QAAQ,SAASQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,MAAA,CAC7E;AAAA,MACD,OAAOD,EAAS,CAAC,EAAE,IAAAK,GAAI,MAAAC,GAAM,WAAAC,QAAgB;AAAA,QAC3CC,EAAaC,GAAWC,EAAY;AAAA,UAClC,IAAAL;AAAA,UACA,WAAWV,EAAK;AAAA,UAChB,SAASA,EAAK;AAAA,UACd,OAAOA,EAAK;AAAA,UACZ,UAAUA,EAAK;AAAA,UACf,cAAcY;AAAA,UACd,eAAeZ,EAAK;AAAA,UACpB,MAAAW;AAAA,UACA,UAAUX,EAAK;AAAA,UACf,OAAOA,EAAK;AAAA,QACd,GAAGH,CAAc,GAAG;AAAA,UAClB,MAAMQ,EAAS,CAACC,MAAS;AAAA,YACvBC,EAAYP,EAAK,QAAQ,QAAQe,EAAYT,GAAM,EAAE,MAAMN,EAAK,MAAM,CAAC,CAAC;AAAA,UAAA,CACzE;AAAA,UACD,GAAG;AAAA,QACF,GAAA,MAAM,CAAC,MAAM,aAAa,WAAW,SAAS,YAAY,cAAc,eAAe,QAAQ,YAAY,OAAO,CAAC;AAAA,MAAA,CACvH;AAAA,MACD,GAAG;AAAA,IACF,GAAA,GAAG,CAAC,MAAM,aAAa,UAAU,cAAc,cAAc,kBAAkB,SAAS,kBAAkB,QAAQ,SAAS,CAAC;AAAA,EAEjI;AAEA,CAAC;"}
|
package/dist/index85.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as m, openBlock as u, createBlock as c, withCtx as a, renderSlot as r, normalizeProps as
|
|
1
|
+
import { defineComponent as m, openBlock as u, createBlock as c, withCtx as a, renderSlot as r, normalizeProps as l, guardReactiveProps as i, createVNode as b, mergeProps as h } from "vue";
|
|
2
2
|
import g from "./index21.js";
|
|
3
3
|
import "./index22.js";
|
|
4
|
-
import
|
|
4
|
+
import f from "./index27.js";
|
|
5
5
|
import "./index28.js";
|
|
6
|
-
const
|
|
6
|
+
const k = /* @__PURE__ */ m({
|
|
7
7
|
__name: "BbRadioGroup",
|
|
8
8
|
props: {
|
|
9
9
|
autofocus: {},
|
|
@@ -32,7 +32,7 @@ const L = /* @__PURE__ */ m({
|
|
|
32
32
|
legend: {}
|
|
33
33
|
},
|
|
34
34
|
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue", "inactive"],
|
|
35
|
-
setup(
|
|
35
|
+
setup(y, { emit: s }) {
|
|
36
36
|
const n = s, t = {
|
|
37
37
|
onBlur: (e) => n("blur", e),
|
|
38
38
|
onChange: (e) => n("change", e),
|
|
@@ -45,77 +45,77 @@ const L = /* @__PURE__ */ m({
|
|
|
45
45
|
onMouseup: (e) => n("mouseup", e),
|
|
46
46
|
"onUpdate:modelValue": (e) => n("update:modelValue", e)
|
|
47
47
|
};
|
|
48
|
-
return (e,
|
|
48
|
+
return (e, v) => (u(), c(g, {
|
|
49
|
+
id: e.id,
|
|
49
50
|
class: "bb-radio-group",
|
|
50
51
|
direction: "vertical",
|
|
51
52
|
errors: e.errors,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
id: e.id,
|
|
53
|
+
"has-errors": e.hasErrors,
|
|
54
|
+
"hide-label": e.hideLegend,
|
|
55
55
|
label: e.legend,
|
|
56
|
-
|
|
56
|
+
"label-tag": "legend",
|
|
57
57
|
name: e.name,
|
|
58
58
|
reverse: e.reverse,
|
|
59
59
|
tag: "fieldset"
|
|
60
60
|
}, {
|
|
61
61
|
label: a((d) => [
|
|
62
|
-
r(e.$slots, "legend", i(
|
|
62
|
+
r(e.$slots, "legend", l(i(d)))
|
|
63
63
|
]),
|
|
64
64
|
input: a(({ id: d, name: p }) => [
|
|
65
|
-
b(
|
|
65
|
+
b(f, h({
|
|
66
|
+
id: d,
|
|
66
67
|
autofocus: e.autofocus,
|
|
67
68
|
color: e.color,
|
|
68
69
|
dependencies: e.dependencies,
|
|
69
|
-
|
|
70
|
+
"deps-debounce-time": e.depsDebounceTime,
|
|
70
71
|
direction: e.inputDirection,
|
|
71
72
|
disabled: e.disabled,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
"enforce-coherence": e.enforceCoherence,
|
|
74
|
+
"has-errors": e.hasErrors,
|
|
75
|
+
"hide-label": e.hideLabel,
|
|
76
|
+
"item-text": e.itemText,
|
|
77
|
+
"item-value": e.itemValue,
|
|
76
78
|
items: e.items,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
modelValue: e.modelValue,
|
|
82
|
-
modelValueDebounceTime: e.modelValueDebounceTime,
|
|
79
|
+
"loading-text": e.loadingText,
|
|
80
|
+
"match-strategy": e.matchStrategy,
|
|
81
|
+
"model-value": e.modelValue,
|
|
82
|
+
"model-value-debounce-time": e.modelValueDebounceTime,
|
|
83
83
|
name: p,
|
|
84
|
-
|
|
84
|
+
"no-data-text": e.noDataText,
|
|
85
85
|
readonly: e.readonly
|
|
86
86
|
}, t), {
|
|
87
87
|
prepend: a((o) => [
|
|
88
|
-
r(e.$slots, "prepend", i(
|
|
88
|
+
r(e.$slots, "prepend", l(i(o)))
|
|
89
89
|
]),
|
|
90
90
|
loading: a((o) => [
|
|
91
|
-
r(e.$slots, "loading", i(
|
|
91
|
+
r(e.$slots, "loading", l(i(o)))
|
|
92
92
|
]),
|
|
93
93
|
"no-data": a((o) => [
|
|
94
|
-
r(e.$slots, "no-data", i(
|
|
94
|
+
r(e.$slots, "no-data", l(i(o)))
|
|
95
95
|
]),
|
|
96
96
|
"option:prepend": a((o) => [
|
|
97
|
-
r(e.$slots, "option:prepend", i(
|
|
97
|
+
r(e.$slots, "option:prepend", l(i(o)))
|
|
98
98
|
]),
|
|
99
99
|
icon: a((o) => [
|
|
100
|
-
r(e.$slots, "icon", i(
|
|
100
|
+
r(e.$slots, "icon", l(i(o)))
|
|
101
101
|
]),
|
|
102
102
|
label: a((o) => [
|
|
103
|
-
r(e.$slots, "label", i(
|
|
103
|
+
r(e.$slots, "label", l(i(o)))
|
|
104
104
|
]),
|
|
105
105
|
"option:append": a((o) => [
|
|
106
|
-
r(e.$slots, "option:append", i(
|
|
106
|
+
r(e.$slots, "option:append", l(i(o)))
|
|
107
107
|
]),
|
|
108
108
|
append: a((o) => [
|
|
109
|
-
r(e.$slots, "append", i(
|
|
109
|
+
r(e.$slots, "append", l(i(o)))
|
|
110
110
|
]),
|
|
111
111
|
_: 2
|
|
112
|
-
}, 1040, ["autofocus", "color", "dependencies", "
|
|
112
|
+
}, 1040, ["id", "autofocus", "color", "dependencies", "deps-debounce-time", "direction", "disabled", "enforce-coherence", "has-errors", "hide-label", "item-text", "item-value", "items", "loading-text", "match-strategy", "model-value", "model-value-debounce-time", "name", "no-data-text", "readonly"])
|
|
113
113
|
]),
|
|
114
114
|
_: 3
|
|
115
|
-
}, 8, ["
|
|
115
|
+
}, 8, ["id", "errors", "has-errors", "hide-label", "label", "name", "reverse"]));
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
export {
|
|
119
|
-
|
|
119
|
+
k as default
|
|
120
120
|
};
|
|
121
121
|
//# sourceMappingURL=index85.js.map
|
package/dist/index85.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index85.js","sources":["../src/components/BbRadioGroup/BbRadioGroup.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 BaseRadioGroup from \"../BaseRadioGroup/BaseRadioGroup.vue\";\nimport type { BaseRadioGroupEvents } from \"../BaseRadioGroup/BaseRadioGroup.vue\";\nimport type { HTMLAttributes, InputHTMLAttributes } from \"vue\";\nimport type { NestedKeyOf } from \"@/types/NestedKeyOf\";\nimport type { SlotAttributes } from \"../BaseRadio/BaseRadio.vue\";\n\nexport type BbRadioGroupEvents = BaseRadioGroupEvents;\n\nexport type BbRadioGroupProps<T> = {\n /**\n * Sets autofocus on page load.\n */\n autofocus?: InputHTMLAttributes[\"autofocus\"];\n\n /**\n * Define a color for the component.\n *\n * Either a custom color or a coded color in common HEX, RGB, etc... format.\n */\n color?: string;\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 * 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 * 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 * 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 | ((prefill: boolean, modelValue?: any[]) => Promise<T[]>)\n | ((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 * 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 * 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 * Sets the input in a readonly state.\n */\n readonly?: InputHTMLAttributes[\"readonly\"];\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 * Visually hides the label of the input while maintaining accessibility.\n */\n hideLabel?: 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 * Visually hides the legend of the fieldset while maintaining accessibility.\n */\n hideLegend?: boolean;\n\n /**\n * Defines the direction of the inputs in the fieldset\n */\n inputDirection?: \"horizontal\" | \"vertical\";\n\n /**\n * Text content of the legend.\n */\n legend: string;\n};\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbRadioGroup',\n props: {\n autofocus: {},\n color: {},\n dependencies: {},\n depsDebounceTime: {},\n disabled: { type: Boolean },\n enforceCoherence: { type: Boolean },\n hasErrors: { type: Boolean },\n id: {},\n items: { type: [Array, Function] },\n itemText: {},\n itemValue: {},\n loadingText: {},\n matchStrategy: {},\n modelValue: {},\n modelValueDebounceTime: {},\n name: {},\n noDataText: {},\n readonly: {},\n errors: {},\n hideLabel: { type: Boolean },\n reverse: { type: Boolean },\n hideLegend: { type: Boolean },\n inputDirection: {},\n legend: {}\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\", \"inactive\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit;\n\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 onKeydown: (event: KeyboardEvent) => emit(\"keydown\", event),\n onMousedown: (event: MouseEvent) => emit(\"mousedown\", event),\n onMouseup: (event: MouseEvent) => emit(\"mouseup\", event),\n \"onUpdate:modelValue\": (event: any) => emit(\"update:modelValue\", event),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n class: \"bb-radio-group\",\n direction: 'vertical',\n errors: _ctx.errors,\n hasErrors: _ctx.hasErrors,\n hideLabel: _ctx.hideLegend,\n id: _ctx.id,\n label: _ctx.legend,\n labelTag: 'legend',\n name: _ctx.name,\n reverse: _ctx.reverse,\n tag: 'fieldset'\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"legend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name }) => [\n _createVNode(BaseRadioGroup, _mergeProps({\n autofocus: _ctx.autofocus,\n color: _ctx.color,\n dependencies: _ctx.dependencies,\n depsDebounceTime: _ctx.depsDebounceTime,\n direction: _ctx.inputDirection,\n disabled: _ctx.disabled,\n enforceCoherence: _ctx.enforceCoherence,\n hasErrors: _ctx.hasErrors,\n hideLabel: _ctx.hideLabel,\n id: id,\n items: (_ctx.items as any),\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 name: name,\n noDataText: _ctx.noDataText,\n readonly: _ctx.readonly\n }, eventListeners), {\n prepend: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"prepend\", _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:prepend\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"option:prepend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n icon: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"icon\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"option:append\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"option:append\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n append: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"append\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n _: 2\n }, 1040, [\"autofocus\", \"color\", \"dependencies\", \"depsDebounceTime\", \"direction\", \"disabled\", \"enforceCoherence\", \"hasErrors\", \"hideLabel\", \"id\", \"items\", \"itemText\", \"itemValue\", \"loadingText\", \"matchStrategy\", \"modelValue\", \"modelValueDebounceTime\", \"name\", \"noDataText\", \"readonly\"])\n ]),\n _: 3\n }, 8, [\"errors\", \"hasErrors\", \"hideLabel\", \"id\", \"label\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__emit","emit","eventListeners","event","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","_createVNode","BaseRadioGroup","_mergeProps"],"mappings":";;;;;AAqJA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,WAAW,CAAC;AAAA,IACZ,OAAO,CAAC;AAAA,IACR,cAAc,CAAC;AAAA,IACf,kBAAkB,CAAC;AAAA,IACnB,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,kBAAkB,EAAE,MAAM,QAAQ;AAAA,IAClC,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,OAAO,EAAE,MAAM,CAAC,OAAO,QAAQ,EAAE;AAAA,IACjC,UAAU,CAAC;AAAA,IACX,WAAW,CAAC;AAAA,IACZ,aA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gBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC/E;AAAA,UACD,kBAAkBD,EAAS,CAACC,MAAS;AAAA,YACnCC,EAAYP,EAAK,QAAQ,kBAAkBQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CACtF;AAAA,UACD,MAAMD,EAAS,CAACC,MAAS;AAAA,YACvBC,EAAYP,EAAK,QAAQ,QAAQQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC5E;AAAA,UACD,OAAOD,EAAS,CAACC,MAAS;AAAA,YACxBC,EAAYP,EAAK,QAAQ,SAASQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC7E;AAAA,UACD,iBAAiBD,EAAS,CAACC,MAAS;AAAA,YAClCC,EAAYP,EAAK,QAAQ,iBAAiBQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CACrF;AAAA,UACD,QAAQD,EAAS,CAACC,MAAS;AAAA,YACzBC,EAAYP,EAAK,QAAQ,UAAUQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC9E;AAAA,UACD,GAAG;AAAA,QACL,GAAG,MAAM,CAAC,aAAa,SAAS,gBAAgB,oBAAoB,aAAa,YAAY,oBAAoB,aAAa,aAAa,MAAM,SAAS,YAAY,aAAa,eAAe,iBAAiB,cAAc,0BAA0B,QAAQ,cAAc,UAAU,CAAC;AAAA,MAAA,CAC7R;AAAA,MACD,GAAG;AAAA,IAAA,GACF,GAAG,CAAC,UAAU,aAAa,aAAa,MAAM,SAAS,QAAQ,SAAS,CAAC;AAAA,EAE9E;AAEA,CAAC;"}
|
|
1
|
+
{"version":3,"file":"index85.js","sources":["../src/components/BbRadioGroup/BbRadioGroup.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 BaseRadioGroup from '../BaseRadioGroup/BaseRadioGroup.vue';\nimport type { BaseRadioGroupEvents } from '../BaseRadioGroup/BaseRadioGroup.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\nimport type { NestedKeyOf } from '@/types/NestedKeyOf';\nimport type { SlotAttributes } from '../BaseRadio/BaseRadio.vue';\n\nexport type BbRadioGroupEvents = BaseRadioGroupEvents;\n\nexport type BbRadioGroupProps<T> = {\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 * 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 * 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 * 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 * 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| ((prefill: boolean, modelValue?: any[]) => Promise<T[]>)\n\t\t| ((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 * 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 * 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 * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\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 * Visually hides the label of the input while maintaining accessibility.\n\t */\n\thideLabel?: 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\t/**\n\t * Visually hides the legend of the fieldset while maintaining accessibility.\n\t */\n\thideLegend?: boolean;\n\n\t/**\n\t * Defines the direction of the inputs in the fieldset\n\t */\n\tinputDirection?: 'horizontal' | 'vertical';\n\n\t/**\n\t * Text content of the legend.\n\t */\n\tlegend: string;\n};\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbRadioGroup',\n props: {\n autofocus: {},\n color: {},\n dependencies: {},\n depsDebounceTime: {},\n disabled: { type: Boolean },\n enforceCoherence: { type: Boolean },\n hasErrors: { type: Boolean },\n id: {},\n items: { type: [Array, Function] },\n itemText: {},\n itemValue: {},\n loadingText: {},\n matchStrategy: {},\n modelValue: {},\n modelValueDebounceTime: {},\n name: {},\n noDataText: {},\n readonly: {},\n errors: {},\n hideLabel: { type: Boolean },\n reverse: { type: Boolean },\n hideLegend: { type: Boolean },\n inputDirection: {},\n legend: {}\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\", \"inactive\"],\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\tonInactive: () => emit('inactive'),\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': (event: any) => emit('update:modelValue', event),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n id: _ctx.id,\n class: \"bb-radio-group\",\n direction: 'vertical',\n errors: _ctx.errors,\n \"has-errors\": _ctx.hasErrors,\n \"hide-label\": _ctx.hideLegend,\n label: _ctx.legend,\n \"label-tag\": 'legend',\n name: _ctx.name,\n reverse: _ctx.reverse,\n tag: 'fieldset'\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"legend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name }) => [\n _createVNode(BaseRadioGroup, _mergeProps({\n id: id,\n autofocus: _ctx.autofocus,\n color: _ctx.color,\n dependencies: _ctx.dependencies,\n \"deps-debounce-time\": _ctx.depsDebounceTime,\n direction: _ctx.inputDirection,\n disabled: _ctx.disabled,\n \"enforce-coherence\": _ctx.enforceCoherence,\n \"has-errors\": _ctx.hasErrors,\n \"hide-label\": _ctx.hideLabel,\n \"item-text\": _ctx.itemText as any,\n \"item-value\": _ctx.itemValue as any,\n items: _ctx.items as any,\n \"loading-text\": _ctx.loadingText,\n \"match-strategy\": _ctx.matchStrategy,\n \"model-value\": _ctx.modelValue,\n \"model-value-debounce-time\": _ctx.modelValueDebounceTime,\n name: name,\n \"no-data-text\": _ctx.noDataText,\n readonly: _ctx.readonly\n }, eventListeners), {\n prepend: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"prepend\", _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:prepend\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"option:prepend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n icon: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"icon\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"option:append\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"option:append\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n append: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"append\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n _: 2\n }, 1040, [\"id\", \"autofocus\", \"color\", \"dependencies\", \"deps-debounce-time\", \"direction\", \"disabled\", \"enforce-coherence\", \"has-errors\", \"hide-label\", \"item-text\", \"item-value\", \"items\", \"loading-text\", \"match-strategy\", \"model-value\", \"model-value-debounce-time\", \"name\", \"no-data-text\", \"readonly\"])\n ]),\n _: 3\n }, 8, [\"id\", \"errors\", \"has-errors\", \"hide-label\", \"label\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__emit","emit","eventListeners","event","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","_createVNode","BaseRadioGroup","_mergeProps"],"mappings":";;;;;AAqJA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,WAAW,CAAC;AAAA,IACZ,OAAO,CAAC;AAAA,IACR,cAAc,CAAC;AAAA,IACf,kBAAkB,CAAC;AAAA,IACnB,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,kBAAkB,EAAE,MAAM,QAAQ;AAAA,IAClC,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,OAAO,EAAE,MAAM,CAAC,OAAO,QAAQ,EAAE;AAAA,IACjC,UAAU,CAAC;AAAA,IACX,WAAW,CAAC;AAAA,IACZ,aAAa,CAAC;AAAA,IACd,eAAe,CAAC;AAAA,IAChB,YAAY,CAAC;AAAA,IACb,wBAAwB,CAAC;AAAA,IACzB,MAAM,CAAC;AAAA,IACP,YAAY,CAAC;AAAA,IACb,UAAU,CAAC;AAAA,IACX,QAAQ,CAAC;AAAA,IACT,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,YAAY,EAAE,MAAM,QAAQ;AAAA,IAC5B,gBAAgB,CAAC;AAAA,IACjB,QAAQ,CAAC;AAAA,EACX;AAAA,EACA,OAAO,CAAC,QAAQ,UAAU,SAAS,SAAS,SAAS,WAAW,aAAa,WAAW,qBAAqB,UAAU;AAAA,EACvH,MAAMC,GAAc,EAAE,MAAMC,KAAU;AAIxC,UAAMC,IAAOD,GAIPE,IAAiB;AAAA,MACtB,QAAQ,CAACC,MAAsBF,EAAK,QAAQE,CAAK;AAAA,MACjD,UAAU,CAACA,MAAiBF,EAAK,UAAUE,CAAK;AAAA,MAChD,SAAS,CAACA,MAAsBF,EAAK,SAASE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UAAUQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC9E;AAAA,UACD,GAAG;AAAA,QACL,GAAG,MAAM,CAAC,MAAM,aAAa,SAAS,gBAAgB,sBAAsB,aAAa,YAAY,qBAAqB,cAAc,cAAc,aAAa,cAAc,SAAS,gBAAgB,kBAAkB,eAAe,6BAA6B,QAAQ,gBAAgB,UAAU,CAAC;AAAA,MAAA,CAC5S;AAAA,MACD,GAAG;AAAA,IAAA,GACF,GAAG,CAAC,MAAM,UAAU,cAAc,cAAc,SAAS,QAAQ,SAAS,CAAC;AAAA,EAEhF;AAEA,CAAC;"}
|
package/dist/index87.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as p, openBlock as m, createBlock as c, withCtx as s, renderSlot as n, normalizeProps as a, guardReactiveProps as i, createVNode as b, mergeProps as f } from "vue";
|
|
2
2
|
import g from "./index21.js";
|
|
3
3
|
import "./index22.js";
|
|
4
4
|
import h from "./index29.js";
|
|
5
5
|
import "./index30.js";
|
|
6
|
-
const
|
|
6
|
+
const z = /* @__PURE__ */ p({
|
|
7
7
|
__name: "BbRating",
|
|
8
8
|
props: {
|
|
9
9
|
autofocus: {},
|
|
@@ -24,7 +24,7 @@ const E = /* @__PURE__ */ m({
|
|
|
24
24
|
size: {}
|
|
25
25
|
},
|
|
26
26
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
|
27
|
-
setup(
|
|
27
|
+
setup(v, { emit: l }) {
|
|
28
28
|
const o = l, d = {
|
|
29
29
|
onBlur: (e) => o("blur", e),
|
|
30
30
|
onChange: (e) => o("change", e),
|
|
@@ -37,17 +37,17 @@ const E = /* @__PURE__ */ m({
|
|
|
37
37
|
onMouseup: (e) => o("mouseup", e),
|
|
38
38
|
"onUpdate:modelValue": (e) => o("update:modelValue", e)
|
|
39
39
|
};
|
|
40
|
-
return (e,
|
|
40
|
+
return (e, y) => (m(), c(g, {
|
|
41
|
+
id: e.id,
|
|
41
42
|
class: "bb-rating",
|
|
42
43
|
direction: "vertical",
|
|
43
44
|
errors: e.errors,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
inputPosition: e.inputPosition,
|
|
45
|
+
"has-errors": e.hasErrors,
|
|
46
|
+
"hide-label": e.hideLegend,
|
|
47
|
+
"input-position": e.inputPosition,
|
|
48
48
|
label: e.legend,
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
"label-position": e.legendPosition,
|
|
50
|
+
"label-tag": "legend",
|
|
51
51
|
name: e.name,
|
|
52
52
|
reverse: e.reverse,
|
|
53
53
|
tag: "fieldset"
|
|
@@ -57,28 +57,28 @@ const E = /* @__PURE__ */ m({
|
|
|
57
57
|
]),
|
|
58
58
|
input: s(({ id: r, name: t }) => [
|
|
59
59
|
b(h, f({
|
|
60
|
+
id: r,
|
|
60
61
|
autofocus: e.autofocus,
|
|
61
62
|
color: e.color,
|
|
62
63
|
disabled: e.disabled,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
modelValue: e.modelValue,
|
|
64
|
+
"has-errors": e.hasErrors,
|
|
65
|
+
"model-value": e.modelValue,
|
|
66
66
|
name: t,
|
|
67
67
|
readonly: e.readonly,
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
size: e.size,
|
|
69
|
+
stars: e.stars
|
|
70
70
|
}, d), {
|
|
71
71
|
icon: s((u) => [
|
|
72
72
|
n(e.$slots, "icon", a(i(u)))
|
|
73
73
|
]),
|
|
74
74
|
_: 2
|
|
75
|
-
}, 1040, ["
|
|
75
|
+
}, 1040, ["id", "autofocus", "color", "disabled", "has-errors", "model-value", "name", "readonly", "size", "stars"])
|
|
76
76
|
]),
|
|
77
77
|
_: 3
|
|
78
|
-
}, 8, ["
|
|
78
|
+
}, 8, ["id", "errors", "has-errors", "hide-label", "input-position", "label", "label-position", "name", "reverse"]));
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
export {
|
|
82
|
-
|
|
82
|
+
z as default
|
|
83
83
|
};
|
|
84
84
|
//# sourceMappingURL=index87.js.map
|
package/dist/index87.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index87.js","sources":["../src/components/BbRating/BbRating.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":"index87.js","sources":["../src/components/BbRating/BbRating.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 BaseRating from '../BaseRating/BaseRating.vue';\nimport type {\n\tBaseRatingEvents,\n\tBaseRatingSlots,\n} from '../BaseRating/BaseRating.vue';\nimport type { BbIconProps } from '../BbIcon/BbIcon.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\n\nexport type BbRatingProps = {\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 * Disables the component\n\t */\n\tdisabled?: boolean;\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 * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\n\t/**\n\t * Used by v-model\n\t */\n\tmodelValue: null | number;\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname: Exclude<InputHTMLAttributes['name'], undefined>;\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n\t/**\n\t * Maximum number of stars to render and maximum value of the component\n\t */\n\tstars?: number;\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 * Sets the slignment of the input. Since inputs are inline block they can be aligned just as text can.\n\t */\n\tinputPosition?: 'left' | 'center' | 'right';\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\t/**\n\t * Visually hides the legend of the fieldset while maintaining accessibility.\n\t */\n\thideLegend?: boolean;\n\n\t/**\n\t * Text content of the legend.\n\t */\n\tlegend: string;\n\t/**\n\t * Sets the text alignment of the legend.\n\t */\n\tlegendPosition?: 'left' | 'center' | 'right';\n} & Pick<BbIconProps, 'size'>;\n\nexport type BbRatingEvents = BaseRatingEvents;\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbRating',\n props: {\n autofocus: {},\n color: {},\n disabled: { type: Boolean },\n hasErrors: { type: Boolean },\n id: {},\n modelValue: {},\n name: {},\n readonly: {},\n stars: {},\n errors: {},\n inputPosition: { default: 'left' },\n reverse: { type: Boolean },\n hideLegend: { type: Boolean },\n legend: {},\n legendPosition: {},\n size: {}\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"inactive\", \"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\tonInactive: () => emit('inactive'),\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': (event: any) => emit('update:modelValue', event),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n id: _ctx.id,\n class: \"bb-rating\",\n direction: 'vertical',\n errors: _ctx.errors,\n \"has-errors\": _ctx.hasErrors,\n \"hide-label\": _ctx.hideLegend,\n \"input-position\": _ctx.inputPosition,\n label: _ctx.legend,\n \"label-position\": _ctx.legendPosition,\n \"label-tag\": 'legend',\n name: _ctx.name,\n reverse: _ctx.reverse,\n tag: 'fieldset'\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"legend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name }) => [\n _createVNode(BaseRating, _mergeProps({\n id: id,\n autofocus: _ctx.autofocus,\n color: _ctx.color,\n disabled: _ctx.disabled,\n \"has-errors\": _ctx.hasErrors,\n \"model-value\": _ctx.modelValue,\n name: name,\n readonly: _ctx.readonly,\n size: _ctx.size,\n stars: _ctx.stars\n }, eventListeners), {\n icon: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"icon\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n _: 2\n }, 1040, [\"id\", \"autofocus\", \"color\", \"disabled\", \"has-errors\", \"model-value\", \"name\", \"readonly\", \"size\", \"stars\"])\n ]),\n _: 3\n }, 8, [\"id\", \"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","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","_createVNode","BaseRating","_mergeProps"],"mappings":";;;;;AAyFA,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A,EAEpH;AAEA,CAAC;"}
|
package/dist/index89.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index89.js","sources":["../src/components/BbRatio/BbRatio.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, normalizeStyle as _normalizeStyle } from \"vue\"\n\nimport type { NonVoidElementTag } from '@/types/CommonProps';\n\nexport type BbRatioProps = {\n
|
|
1
|
+
{"version":3,"file":"index89.js","sources":["../src/components/BbRatio/BbRatio.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, normalizeStyle as _normalizeStyle } from \"vue\"\n\nimport type { NonVoidElementTag } from '@/types/CommonProps';\n\nexport type BbRatioProps = {\n\t/**\n\t * The ratio the component should maintain. It should be passed as number as in `16/9`.\n\t */\n\tratio?: number;\n} & NonVoidElementTag;\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbRatio',\n props: {\n ratio: { default: 1 },\n tag: { default: 'div' }\n },\n setup(__props: any) {\n\n\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {\n class: \"bb-ratio\",\n style: _normalizeStyle({\n\t\t\twidth: '100%',\n\t\t\tpaddingBottom: `${((1 / _ctx.ratio) * 100).toFixed(2)}%`,\n\t\t})\n }, {\n default: _withCtx(() => [\n (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), { class: \"bb-ratio__inner\" }, {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }))\n ]),\n _: 3\n }, 8, [\"style\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","_ctx","_cache","_openBlock","_createBlock","_resolveDynamicComponent","_normalizeStyle","_withCtx","_renderSlot"],"mappings":";AAaA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,EAAE,SAAS,EAAE;AAAA,IACpB,KAAK,EAAE,SAAS,MAAM;AAAA,EACxB;AAAA,EACA,MAAMC,GAAc;AAMf,WAAA,CAACC,GAAUC,OACRC,EAAc,GAAAC,EAAaC,EAAyBJ,EAAK,GAAG,GAAG;AAAA,MACrE,OAAO;AAAA,MACP,OAAOK,EAAgB;AAAA,QACxB,OAAO;AAAA,QACP,eAAe,IAAK,IAAIL,EAAK,QAAS,KAAK,QAAQ,CAAC,CAAC;AAAA,MAAA,CACrD;AAAA,IAAA,GACE;AAAA,MACD,SAASM,EAAS,MAAM;AAAA,SACrBJ,EAAc,GAAAC,EAAaC,EAAyBJ,EAAK,GAAG,GAAG,EAAE,OAAO,qBAAqB;AAAA,UAC5F,SAASM,EAAS,MAAM;AAAA,YACtBC,EAAYP,EAAK,QAAQ,SAAS;AAAA,UAAA,CACnC;AAAA,UACD,GAAG;AAAA,QAAA,CACJ;AAAA,MAAA,CACF;AAAA,MACD,GAAG;AAAA,IAAA,GACF,GAAG,CAAC,OAAO,CAAC;AAAA,EAEjB;AAEA,CAAC;"}
|
package/dist/index9.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index9.js","sources":["../src/components/BaseButton/BaseButton.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport type { CommonProps, NonVoidElementTag } from \"@/types/CommonProps\";\nimport { computed, getCurrentInstance, resolveComponent } from \"vue\";\nimport type { InertiaLinkProps } from \"@inertiajs/vue3\";\nimport type { RouterLinkProps } from \"vue-router\";\n\nexport type BaseButtonProps = Pick<CommonProps, \"block\" | \"disabled\" | \"text\"> &\n NonVoidElementTag &\n Partial<\n Pick<\n RouterLinkProps,\n \"activeClass\" | \"ariaCurrentValue\" | \"exactActiveClass\" | \"replace\" | \"to\"\n >\n > &\n Partial<\n Pick<\n InertiaLinkProps,\n | \"data\"\n | \"headers\"\n | \"method\"\n | \"onBefore\"\n | \"onCancel\"\n | \"onCancelToken\"\n | \"onFinish\"\n | \"only\"\n | \"onProgress\"\n | \"onStart\"\n | \"onSuccess\"\n | \"preserveScroll\"\n | \"preserveState\"\n | \"queryStringArrayFormat\"\n >\n > &\n Partial<{\n /**\n * Gets the classification and default behavior of the button.\n */\n type: HTMLButtonElement[\"type\"];\n /**\n * Returns the hyperlink's URL.\n *\n * Can be set, to change the URL.\n */\n href: HTMLAnchorElement[\"href\"];\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\n target: HTMLAnchorElement[\"target\"];\n }>;\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseButton',\n props: {\n block: { type: Boolean },\n disabled: { type: Boolean },\n text: {},\n tag: { default: \"button\" },\n activeClass: {},\n ariaCurrentValue: {},\n exactActiveClass: {},\n replace: { type: Boolean },\n to: {},\n data: {},\n headers: {},\n method: {},\n onBefore: {},\n onCancel: {},\n onCancelToken: {},\n onFinish: {},\n only: {},\n onProgress: {},\n onStart: {},\n onSuccess: {},\n preserveScroll: { type: [Boolean, Function] },\n preserveState: { type: [Boolean, Function, null] },\n queryStringArrayFormat: {},\n type: { default: \"button\" },\n href: {},\n target: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\n\n/* Ignore because possibly undefined */\n// @ts-ignore\nconst isInertia = !!getCurrentInstance()?.proxy?.$inertia;\n\n// @ts-ignore\nconst isNuxt = !!getCurrentInstance()?.proxy?.$nuxt;\n\nconst tag = computed(() => {\n // For disabled links always render a\n if (props.href || (props.to && props.disabled)) {\n if (isInertia && !props.disabled) return resolveComponent(\"Link\");\n return \"a\";\n }\n if (props.to) {\n if (isNuxt) return resolveComponent(\"NuxtLink\");\n return \"router-link\";\n }\n return props.tag;\n});\n\nconst classes = computed(() => ({\n \"base-btn\": true,\n \"base-btn--block\": props.block,\n \"base-btn--disabled\": props.disabled,\n}));\n\nconst attributes = computed(() => {\n type PossibleAttributes = {\n \"aria-disabled\": boolean;\n activeClass: BaseButtonProps[\"activeClass\"];\n ariaCurrentValue: BaseButtonProps[\"ariaCurrentValue\"];\n data: BaseButtonProps[\"data\"];\n disabled: boolean;\n exactActiveClass: BaseButtonProps[\"exactActiveClass\"];\n headers: BaseButtonProps[\"headers\"];\n href: string;\n method: BaseButtonProps[\"method\"];\n onBefore: BaseButtonProps[\"onBefore\"];\n onCancel: BaseButtonProps[\"onCancel\"];\n onCancelToken: BaseButtonProps[\"onCancelToken\"];\n onFinish: BaseButtonProps[\"onFinish\"];\n only: BaseButtonProps[\"only\"];\n onProgress: BaseButtonProps[\"onProgress\"];\n onStart: BaseButtonProps[\"onStart\"];\n onSuccess: BaseButtonProps[\"onSuccess\"];\n preserveScroll: BaseButtonProps[\"preserveScroll\"];\n preserveState: BaseButtonProps[\"preserveState\"];\n queryStringArrayFormat: BaseButtonProps[\"queryStringArrayFormat\"];\n replace: BaseButtonProps[\"replace\"];\n role: string;\n style: { [rule: string]: string };\n target: string;\n to: BaseButtonProps[\"to\"];\n type: string;\n };\n const initial: Partial<PossibleAttributes> = {};\n\n if (tag.value === \"button\") {\n initial.disabled = props.disabled;\n initial.type = props.type;\n } else if (\n tag.value === \"a\" ||\n (isInertia && typeof tag.value !== \"string\" && tag.value.name === \"Link\")\n ) {\n // When rendering as anchor prevent navigation if disabled\n // https://getbootstrap.com/docs/4.0/components/buttons/#disabled-state\n if (props.disabled) {\n initial[\"aria-disabled\"] = true;\n initial.role = \"link\";\n } else {\n // Only attach the href to active links\n // https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n initial.href = props.href;\n initial.target = props.target;\n\n if (isInertia) {\n initial.data = props.data;\n initial.headers = props.headers;\n initial.method = props.method;\n initial.onBefore = props.onBefore;\n initial.onCancel = props.onCancel;\n initial.onCancelToken = props.onCancelToken;\n initial.onFinish = props.onFinish;\n initial.only = props.only;\n initial.onProgress = props.onProgress;\n initial.onStart = props.onStart;\n initial.onSuccess = props.onSuccess;\n initial.preserveScroll = props.preserveScroll;\n initial.preserveState = props.preserveState;\n initial.queryStringArrayFormat = props.queryStringArrayFormat;\n initial.replace = props.replace;\n }\n }\n } else if (\n tag.value === \"router-link\" ||\n (typeof tag.value !== \"string\" && tag.value.name === \"NuxtLink\")\n ) {\n initial.activeClass = props.activeClass;\n initial.ariaCurrentValue = props.ariaCurrentValue;\n initial.exactActiveClass = props.exactActiveClass;\n initial.replace = props.replace;\n initial.target = props.target;\n initial.to = props.to;\n }\n\n switch (tag.value) {\n case \"button\":\n initial.disabled = props.disabled;\n initial.type = props.type;\n break;\n case \"a\":\n // When rendering as anchor prevent navigation if disabled\n // https://getbootstrap.com/docs/4.0/components/buttons/#disabled-state\n if (props.disabled) {\n initial[\"aria-disabled\"] = true;\n initial.role = \"link\";\n } else {\n // Only attach the href to active links\n // https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n initial.href = props.href;\n }\n break;\n case \"router-link\":\n initial.to = props.to;\n break;\n default:\n break;\n }\n return initial;\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_resolveDynamicComponent(tag.value), _mergeProps({ class: classes.value }, attributes.value), {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"default\", {}, () => [\n _createTextVNode(_toDisplayString(_ctx.text), 1)\n ])\n ]),\n _: 3\n }, 16, [\"class\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","isInertia","_b","_a","getCurrentInstance","isNuxt","_d","_c","tag","computed","resolveComponent","classes","attributes","initial","_ctx","_cache","_openBlock","_createBlock","_resolveDynamicComponent","_mergeProps","_withCtx","_renderSlot","_createTextVNode","_toDisplayString"],"mappings":";AAqDA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,MAAM,CAAC;AAAA,IACP,KAAK,EAAE,SAAS,SAAS;AAAA,IACzB,aAAa,CAAC;AAAA,IACd,kBAAkB,CAAC;AAAA,IACnB,kBAAkB,CAAC;AAAA,IACnB,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,IAAI,CAAC;AAAA,IACL,MAAM,CAAC;AAAA,IACP,SAAS,CAAC;AAAA,IACV,QAAQ,CAAC;AAAA,IACT,UAAU,CAAC;AAAA,IACX,UAAU,CAAC;AAAA,IACX,eAAe,CAAC;AAAA,IAChB,UAAU,CAAC;AAAA,IACX,MAAM,CAAC;AAAA,IACP,YAAY,CAAC;AAAA,IACb,SAAS,CAAC;AAAA,IACV,WAAW,CAAC;AAAA,IACZ,gBAAgB,EAAE,MAAM,CAAC,SAAS,QAAQ,EAAE;AAAA,IAC5C,eAAe,EAAE,MAAM,CAAC,SAAS,UAAU,IAAI,EAAE;AAAA,IACjD,wBAAwB,CAAC;AAAA,IACzB,MAAM,EAAE,SAAS,SAAS;AAAA,IAC1B,MAAM,CAAC;AAAA,IACP,QAAQ,CAAC;AAAA,EACX;AAAA,EACA,MAAMC,GAAc;;AAEtB,UAAMC,IAAQD,GAMRE,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,MAEfT,EAAM,QAASA,EAAM,MAAMA,EAAM,WAC/BC,KAAa,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,KAAKb,EAAM,KAGbQ,EAAI,OAAO;AAAA,QACjB,KAAK;AACH,UAAAK,EAAQ,WAAWb,EAAM,UACzBa,EAAQ,OAAOb,EAAM;AACrB;AAAA,QACF,KAAK;AAGH,UAAIA,EAAM,YACRa,EAAQ,eAAe,IAAI,IAC3BA,EAAQ,OAAO,UAIfA,EAAQ,OAAOb,EAAM;AAEvB;AAAA,QACF,KAAK;AACH,UAAAa,EAAQ,KAAKb,EAAM;AACnB;AAAA,MAGJ;AACO,aAAAa;AAAA,IAAA,CACR;AAEM,WAAA,CAACC,GAAUC,OACRC,EAAW,GAAGC,EAAaC,EAAyBV,EAAI,KAAK,GAAGW,EAAY,EAAE,OAAOR,EAAQ,MAAS,GAAAC,EAAW,KAAK,GAAG;AAAA,MAC/H,SAASQ,EAAS,MAAM;AAAA,QACtBC,EAAYP,EAAK,QAAQ,WAAW,IAAI,MAAM;AAAA,UAC5CQ,EAAiBC,EAAiBT,EAAK,IAAI,GAAG,CAAC;AAAA,QAAA,CAChD;AAAA,MAAA,CACF;AAAA,MACD,GAAG;AAAA,IAAA,GACF,IAAI,CAAC,OAAO,CAAC;AAAA,EAElB;AAEA,CAAC;"}
|
|
1
|
+
{"version":3,"file":"index9.js","sources":["../src/components/BaseButton/BaseButton.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport type { CommonProps, NonVoidElementTag } from '@/types/CommonProps';\nimport { computed, getCurrentInstance, resolveComponent } from 'vue';\nimport type { InertiaLinkProps } from '@inertiajs/vue3';\nimport type { RouterLinkProps } from 'vue-router';\n\nexport type BaseButtonProps = Pick<CommonProps, 'block' | 'disabled' | 'text'> &\n\tNonVoidElementTag &\n\tPartial<\n\t\tPick<\n\t\t\tRouterLinkProps,\n\t\t\t'activeClass' | 'ariaCurrentValue' | 'exactActiveClass' | 'replace' | 'to'\n\t\t>\n\t> &\n\tPartial<\n\t\tPick<\n\t\t\tInertiaLinkProps,\n\t\t\t| 'data'\n\t\t\t| 'headers'\n\t\t\t| 'method'\n\t\t\t| 'onBefore'\n\t\t\t| 'onCancel'\n\t\t\t| 'onCancelToken'\n\t\t\t| 'onFinish'\n\t\t\t| 'only'\n\t\t\t| 'onProgress'\n\t\t\t| 'onStart'\n\t\t\t| 'onSuccess'\n\t\t\t| 'preserveScroll'\n\t\t\t| 'preserveState'\n\t\t\t| 'queryStringArrayFormat'\n\t\t>\n\t> &\n\tPartial<{\n\t\t/**\n\t\t * Gets the classification and default behavior of the button.\n\t\t */\n\t\ttype: HTMLButtonElement['type'];\n\t\t/**\n\t\t * Returns the hyperlink's URL.\n\t\t *\n\t\t * Can be set, to change the URL.\n\t\t */\n\t\thref: HTMLAnchorElement['href'];\n\t\t/**\n\t\t * Sets or retrieves the window or frame at which to target content.\n\t\t */\n\t\ttarget: HTMLAnchorElement['target'];\n\t}>;\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseButton',\n props: {\n block: { type: Boolean },\n disabled: { type: Boolean },\n text: {},\n tag: { default: 'button' },\n activeClass: {},\n ariaCurrentValue: {},\n exactActiveClass: {},\n replace: { type: Boolean },\n to: {},\n data: {},\n headers: {},\n method: {},\n onBefore: {},\n onCancel: {},\n onCancelToken: {},\n onFinish: {},\n only: {},\n onProgress: {},\n onStart: {},\n onSuccess: {},\n preserveScroll: { type: [Boolean, Function] },\n preserveState: { type: [Boolean, Function, null] },\n queryStringArrayFormat: {},\n type: { default: 'button' },\n href: {},\n target: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\n\n/* Ignore because possibly undefined */\n// @ts-ignore\nconst isInertia = !!getCurrentInstance()?.proxy?.$inertia;\n\n// @ts-ignore\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\t'aria-disabled': boolean;\n\t\tactiveClass: BaseButtonProps['activeClass'];\n\t\tariaCurrentValue: BaseButtonProps['ariaCurrentValue'];\n\t\tdata: BaseButtonProps['data'];\n\t\tdisabled: boolean;\n\t\texactActiveClass: BaseButtonProps['exactActiveClass'];\n\t\theaders: BaseButtonProps['headers'];\n\t\thref: string;\n\t\tmethod: BaseButtonProps['method'];\n\t\tonBefore: BaseButtonProps['onBefore'];\n\t\tonCancel: BaseButtonProps['onCancel'];\n\t\tonCancelToken: BaseButtonProps['onCancelToken'];\n\t\tonFinish: BaseButtonProps['onFinish'];\n\t\tonly: BaseButtonProps['only'];\n\t\tonProgress: BaseButtonProps['onProgress'];\n\t\tonStart: BaseButtonProps['onStart'];\n\t\tonSuccess: BaseButtonProps['onSuccess'];\n\t\tpreserveScroll: BaseButtonProps['preserveScroll'];\n\t\tpreserveState: BaseButtonProps['preserveState'];\n\t\tqueryStringArrayFormat: BaseButtonProps['queryStringArrayFormat'];\n\t\treplace: BaseButtonProps['replace'];\n\t\trole: string;\n\t\tstyle: { [rule: string]: string };\n\t\ttarget: string;\n\t\tto: BaseButtonProps['to'];\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\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_resolveDynamicComponent(tag.value), _mergeProps({ class: classes.value }, attributes.value), {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"default\", {}, () => [\n _createTextVNode(_toDisplayString(_ctx.text), 1)\n ])\n ]),\n _: 3\n }, 16, [\"class\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","isInertia","_b","_a","getCurrentInstance","isNuxt","_d","_c","tag","computed","resolveComponent","classes","attributes","initial","_ctx","_cache","_openBlock","_createBlock","_resolveDynamicComponent","_mergeProps","_withCtx","_renderSlot","_createTextVNode","_toDisplayString"],"mappings":";AAqDA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,MAAM,CAAC;AAAA,IACP,KAAK,EAAE,SAAS,SAAS;AAAA,IACzB,aAAa,CAAC;AAAA,IACd,kBAAkB,CAAC;AAAA,IACnB,kBAAkB,CAAC;AAAA,IACnB,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,IAAI,CAAC;AAAA,IACL,MAAM,CAAC;AAAA,IACP,SAAS,CAAC;AAAA,IACV,QAAQ,CAAC;AAAA,IACT,UAAU,CAAC;AAAA,IACX,UAAU,CAAC;AAAA,IACX,eAAe,CAAC;AAAA,IAChB,UAAU,CAAC;AAAA,IACX,MAAM,CAAC;A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