@bagelink/vue 0.0.1020 → 0.0.1023

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/index.mjs CHANGED
@@ -239,6 +239,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
239
239
  href: {},
240
240
  round: { type: Boolean, default: false },
241
241
  is: { default: "button" },
242
+ ripple: { type: Boolean, default: true },
242
243
  onClick: { type: Function, default: () => "" }
243
244
  },
244
245
  setup(__props) {
@@ -300,12 +301,12 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
300
301
  ]),
301
302
  _: 3
302
303
  }, 16, ["disabled", "class", "tabindex", "onClick", "onKeydown"])), [
303
- [_directive_ripple]
304
+ [_directive_ripple, _ctx.ripple]
304
305
  ]);
305
306
  };
306
307
  }
307
308
  });
308
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-521354bb"]]);
309
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-c23a3626"]]);
309
310
  const _hoisted_1$M = ["dismissable"];
310
311
  const _hoisted_2$v = { class: "m-0" };
311
312
  const _sfc_main$_ = /* @__PURE__ */ defineComponent({
@@ -6581,9 +6582,9 @@ const _hoisted_1$1$1 = {
6581
6582
  };
6582
6583
  const _hoisted_2$1$1 = ["width", "height", "viewBox"];
6583
6584
  const _hoisted_3$m = { class: "layer-rectangles" };
6584
- const _hoisted_4$e = ["transform", "onMouseover"];
6585
- const _hoisted_5$d = ["width", "height"];
6586
- const _hoisted_6$a = {
6585
+ const _hoisted_4$f = ["transform", "onMouseover"];
6586
+ const _hoisted_5$e = ["width", "height"];
6587
+ const _hoisted_6$b = {
6587
6588
  x: 0 + 10,
6588
6589
  y: 0 + 20,
6589
6590
  "font-size": `15px`,
@@ -6619,21 +6620,21 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
6619
6620
  y: 0,
6620
6621
  width: r2.width,
6621
6622
  height: r2.height
6622
- }), null, 16, _hoisted_5$d),
6623
+ }), null, 16, _hoisted_5$e),
6623
6624
  renderSlot(_ctx.$slots, "text", {
6624
6625
  r: r2,
6625
6626
  selected: _ctx.selected === i2
6626
6627
  }, () => [
6627
6628
  createElementVNode(
6628
6629
  "text",
6629
- _hoisted_6$a,
6630
+ _hoisted_6$b,
6630
6631
  toDisplayString(r2.data.name),
6631
6632
  1
6632
6633
  /* TEXT */
6633
6634
  )
6634
6635
  ])
6635
6636
  ])
6636
- ], 42, _hoisted_4$e);
6637
+ ], 42, _hoisted_4$f);
6637
6638
  }),
6638
6639
  128
6639
6640
  /* KEYED_FRAGMENT */
@@ -6857,9 +6858,9 @@ const _hoisted_2$r = {
6857
6858
  class: "data-row m_py-05"
6858
6859
  };
6859
6860
  const _hoisted_3$l = { class: "key" };
6860
- const _hoisted_4$d = { class: "m-0" };
6861
- const _hoisted_5$c = { key: 1 };
6862
- const _hoisted_6$9 = {
6861
+ const _hoisted_4$e = { class: "m-0" };
6862
+ const _hoisted_5$d = { key: 1 };
6863
+ const _hoisted_6$a = {
6863
6864
  key: 0,
6864
6865
  class: "data-row"
6865
6866
  };
@@ -6916,7 +6917,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
6916
6917
  }, [
6917
6918
  unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$r, [
6918
6919
  createElementVNode("div", _hoisted_3$l, [
6919
- createElementVNode("p", _hoisted_4$d, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
6920
+ createElementVNode("p", _hoisted_4$e, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
6920
6921
  ]),
6921
6922
  createVNode(unref(_sfc_main$P), {
6922
6923
  modelValue: itemData.value,
@@ -6928,10 +6929,10 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
6928
6929
  ])) : createCommentVNode("", true)
6929
6930
  ], 64);
6930
6931
  }), 128)),
6931
- !((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
6932
+ !((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_5$d, [
6932
6933
  (openBlock(true), createElementBlock(Fragment, null, renderList(computedSchema.value, ({ id, label }) => {
6933
6934
  return openBlock(), createElementBlock(Fragment, { key: id }, [
6934
- !isUnset(itemData.value[id]) ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
6935
+ !isUnset(itemData.value[id]) ? (openBlock(), createElementBlock("div", _hoisted_6$a, [
6935
6936
  createElementVNode("div", _hoisted_7$6, [
6936
6937
  createElementVNode("p", _hoisted_8$4, toDisplayString(label), 1)
6937
6938
  ]),
@@ -9669,30 +9670,33 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
9669
9670
  window.removeEventListener("resize", updateIndicator);
9670
9671
  });
9671
9672
  return (_ctx, _cache) => {
9673
+ const _component_Icon = resolveComponent("Icon");
9672
9674
  return openBlock(), createElementBlock("div", {
9673
9675
  ref_key: "tabsWrap",
9674
9676
  ref: tabsWrap,
9675
9677
  class: normalizeClass(["grid auto-flow-columns relative fit-content bgl_tabs_wrap overflow-hidden", { "bgl_flat-tabs": _ctx.flat, "bgl_vertical-tabs": _ctx.vertical }])
9676
9678
  }, [
9677
- (openBlock(true), createElementBlock(Fragment, null, renderList(props2.tabs, (tab, i2) => {
9678
- return openBlock(), createElementBlock("button", {
9679
- key: i2,
9680
- type: "button",
9681
- class: normalizeClass([{ active: isActive(tab) }, "bgl_tab relative z-1"]),
9682
- onClick: ($event) => selectTab(tab)
9683
- }, [
9684
- typeof tab !== "string" && tab.icon ? (openBlock(), createBlock(unref(_sfc_main$c), {
9685
- key: 0,
9686
- icon: tab.icon
9687
- }, null, 8, ["icon"])) : createCommentVNode("", true),
9688
- createTextVNode(" " + toDisplayString(tabLabel(tab)), 1)
9689
- ], 10, _hoisted_1$F);
9690
- }), 128))
9679
+ renderSlot(_ctx.$slots, "tabs", normalizeProps(guardReactiveProps({ selectTab, isActive, tabLabel, tabs: tabs.value })), () => [
9680
+ (openBlock(true), createElementBlock(Fragment, null, renderList(props2.tabs, (tab, i2) => {
9681
+ return openBlock(), createElementBlock("button", {
9682
+ key: i2,
9683
+ type: "button",
9684
+ class: normalizeClass([{ active: isActive(tab) }, "bgl_tab relative z-1"]),
9685
+ onClick: ($event) => selectTab(tab)
9686
+ }, [
9687
+ typeof tab !== "string" && tab.icon ? (openBlock(), createBlock(_component_Icon, {
9688
+ key: 0,
9689
+ icon: tab.icon
9690
+ }, null, 8, ["icon"])) : createCommentVNode("", true),
9691
+ createTextVNode(" " + toDisplayString(tabLabel(tab)), 1)
9692
+ ], 10, _hoisted_1$F);
9693
+ }), 128))
9694
+ ], true)
9691
9695
  ], 2);
9692
9696
  };
9693
9697
  }
9694
9698
  });
9695
- const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-dbce6d28"]]);
9699
+ const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-bbb66a44"]]);
9696
9700
  const _sfc_main$P = /* @__PURE__ */ defineComponent({
9697
9701
  __name: "BglField",
9698
9702
  props: {
@@ -10085,7 +10089,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
10085
10089
  }
10086
10090
  });
10087
10091
  const _hoisted_1$D = { class: "label mb-05" };
10088
- const _hoisted_2$q = { class: "ps-05 border-start" };
10092
+ const _hoisted_2$q = { class: "-ms-05 ps-05 border-start" };
10089
10093
  const _sfc_main$M = /* @__PURE__ */ defineComponent({
10090
10094
  __name: "FieldArray",
10091
10095
  props: {
@@ -10248,7 +10252,7 @@ const _hoisted_1$A = {
10248
10252
  };
10249
10253
  const _hoisted_2$o = { class: "overflow-hidden absolute inset-0 p-0 m-0 h-100 codeText" };
10250
10254
  const _hoisted_3$j = ["innerHTML"];
10251
- const _hoisted_4$c = ["onKeydown"];
10255
+ const _hoisted_4$d = ["onKeydown"];
10252
10256
  const _sfc_main$J = /* @__PURE__ */ defineComponent({
10253
10257
  __name: "Index",
10254
10258
  props: {
@@ -10354,7 +10358,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
10354
10358
  "data-gramm": "false",
10355
10359
  onKeydown: withKeys(withModifiers(handleTab, ["prevent"]), ["tab"]),
10356
10360
  onInput: _cache[1] || (_cache[1] = ($event) => emit2("update:modelValue", unref(code)))
10357
- }, null, 40, _hoisted_4$c)), [
10361
+ }, null, 40, _hoisted_4$d)), [
10358
10362
  [vModelText, unref(code)]
10359
10363
  ]) : createCommentVNode("", true)
10360
10364
  ], 4)
@@ -19035,8 +19039,8 @@ const _hoisted_3$i = {
19035
19039
  key: 0,
19036
19040
  class: "time-wrap"
19037
19041
  };
19038
- const _hoisted_4$b = ["id", "name", "value"];
19039
- const _hoisted_5$b = ["for"];
19042
+ const _hoisted_4$c = ["id", "name", "value"];
19043
+ const _hoisted_5$c = ["for"];
19040
19044
  const _sfc_main$G = /* @__PURE__ */ defineComponent({
19041
19045
  __name: "DatePicker",
19042
19046
  props: {
@@ -19093,12 +19097,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
19093
19097
  type: "radio",
19094
19098
  name: _ctx.label,
19095
19099
  value: hr2
19096
- }, null, 8, _hoisted_4$b), [
19100
+ }, null, 8, _hoisted_4$c), [
19097
19101
  [vModelRadio, selectedHour.value]
19098
19102
  ]),
19099
19103
  createElementVNode("label", {
19100
19104
  for: `${hr2}_${_ctx.id}`
19101
- }, toDisplayString(hr2), 9, _hoisted_5$b)
19105
+ }, toDisplayString(hr2), 9, _hoisted_5$c)
19102
19106
  ], 64);
19103
19107
  }), 128))
19104
19108
  ])) : createCommentVNode("", true)
@@ -19189,12 +19193,12 @@ const _hoisted_2$k = {
19189
19193
  class: "pixel"
19190
19194
  };
19191
19195
  const _hoisted_3$h = { class: "m-05 flex opacity-7 z-99" };
19192
- const _hoisted_4$a = { class: "ellipsis-1 word-break-all h-20 m-0" };
19193
- const _hoisted_5$a = {
19196
+ const _hoisted_4$b = { class: "ellipsis-1 word-break-all h-20 m-0" };
19197
+ const _hoisted_5$b = {
19194
19198
  key: 1,
19195
19199
  class: "txt-gray txt-12"
19196
19200
  };
19197
- const _hoisted_6$8 = {
19201
+ const _hoisted_6$9 = {
19198
19202
  key: 0,
19199
19203
  class: "bgl-multi-preview"
19200
19204
  };
@@ -19449,7 +19453,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
19449
19453
  }, null, 8, ["href", "download"]), [
19450
19454
  [_directive_tooltip, "Download"]
19451
19455
  ]),
19452
- withDirectives((openBlock(), createElementBlock("p", _hoisted_4$a, [
19456
+ withDirectives((openBlock(), createElementBlock("p", _hoisted_4$b, [
19453
19457
  createTextVNode(toDisplayString(file.name), 1)
19454
19458
  ])), [
19455
19459
  [_directive_lightbox, { src: file.url, download: true }]
@@ -19464,7 +19468,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
19464
19468
  ])
19465
19469
  ]);
19466
19470
  }), 128)),
19467
- !storageFiles.value.length && !fileQueue.value.length ? (openBlock(), createElementBlock("span", _hoisted_5$a, " No file selected ")) : createCommentVNode("", true)
19471
+ !storageFiles.value.length && !fileQueue.value.length ? (openBlock(), createElementBlock("span", _hoisted_5$b, " No file selected ")) : createCommentVNode("", true)
19468
19472
  ]),
19469
19473
  _: 1
19470
19474
  })) : (openBlock(), createElementBlock("div", {
@@ -19484,7 +19488,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
19484
19488
  files: storageFiles.value,
19485
19489
  fileQueue: fileQueue.value
19486
19490
  }, () => [
19487
- _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
19491
+ _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
19488
19492
  (openBlock(true), createElementBlock(Fragment, null, renderList(storageFiles.value, (file) => {
19489
19493
  return withDirectives((openBlock(), createElementBlock("div", {
19490
19494
  key: file.id,
@@ -19853,9 +19857,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
19853
19857
  const _hoisted_1$s = ["for"];
19854
19858
  const _hoisted_2$i = ["id", "name", "value"];
19855
19859
  const _hoisted_3$f = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
19856
- const _hoisted_4$9 = ["src", "alt"];
19857
- const _hoisted_5$9 = { class: "" };
19858
- const _hoisted_6$7 = {
19860
+ const _hoisted_4$a = ["src", "alt"];
19861
+ const _hoisted_5$a = { class: "" };
19862
+ const _hoisted_6$8 = {
19859
19863
  key: 0,
19860
19864
  class: "m-0 m_txt-14"
19861
19865
  };
@@ -19901,9 +19905,9 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
19901
19905
  width: "60",
19902
19906
  src: opt.imgSrc,
19903
19907
  alt: opt.imgAlt
19904
- }, null, 8, _hoisted_4$9)) : createCommentVNode("", true),
19905
- createElementVNode("div", _hoisted_5$9, [
19906
- opt.label ? (openBlock(), createElementBlock("p", _hoisted_6$7, toDisplayString(opt.label), 1)) : createCommentVNode("", true),
19908
+ }, null, 8, _hoisted_4$a)) : createCommentVNode("", true),
19909
+ createElementVNode("div", _hoisted_5$a, [
19910
+ opt.label ? (openBlock(), createElementBlock("p", _hoisted_6$8, toDisplayString(opt.label), 1)) : createCommentVNode("", true),
19907
19911
  opt.subLabel ? (openBlock(), createElementBlock("p", _hoisted_7$4, toDisplayString(opt.subLabel), 1)) : createCommentVNode("", true)
19908
19912
  ]),
19909
19913
  renderSlot(_ctx.$slots, "radioItem", mergeProps({ ref_for: true }, opt), void 0, true)
@@ -19926,8 +19930,8 @@ const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data
19926
19930
  const _hoisted_1$r = { class: "bagel-input" };
19927
19931
  const _hoisted_2$h = { class: "pb-025" };
19928
19932
  const _hoisted_3$e = { class: "flex gap-05 flex-wrap" };
19929
- const _hoisted_4$8 = ["id", "name", "value", "checked"];
19930
- const _hoisted_5$8 = ["for"];
19933
+ const _hoisted_4$9 = ["id", "name", "value", "checked"];
19934
+ const _hoisted_5$9 = ["for"];
19931
19935
  const _sfc_main$z = /* @__PURE__ */ defineComponent({
19932
19936
  __name: "RadioPillsInput",
19933
19937
  props: {
@@ -19984,10 +19988,10 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19984
19988
  value: getValue(option2),
19985
19989
  checked: unref(selectedValue) === getValue(option2),
19986
19990
  onChange: handleSelect
19987
- }, null, 40, _hoisted_4$8),
19991
+ }, null, 40, _hoisted_4$9),
19988
19992
  createElementVNode("label", {
19989
19993
  for: `${_ctx.id}-${getValue(option2)}`
19990
- }, toDisplayString(getLabel(option2)), 9, _hoisted_5$8)
19994
+ }, toDisplayString(getLabel(option2)), 9, _hoisted_5$9)
19991
19995
  ]);
19992
19996
  }), 128))
19993
19997
  ])
@@ -19996,76 +20000,113 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19996
20000
  }
19997
20001
  });
19998
20002
  const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-cf892d71"]]);
19999
- const _hoisted_1$q = { key: 0 };
20000
- const _hoisted_2$g = ["id", "disabled", "max", "min", "step", "required", "name"];
20001
- const _hoisted_3$d = { key: 1 };
20003
+ const _hoisted_1$q = { class: "label" };
20004
+ const _hoisted_2$g = { class: "range-slider relative w-100" };
20005
+ const _hoisted_3$d = ["id", "min", "max", "step", "required", "disabled"];
20006
+ const _hoisted_4$8 = ["min", "max", "step", "required", "disabled"];
20007
+ const _hoisted_5$8 = { class: "track absolute pointer-events-none overflow-hidden round" };
20008
+ const _hoisted_6$7 = { class: "txt-center txt-14 range-slider-txt flex space-between opacity-4 mx-05" };
20002
20009
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
20003
20010
  __name: "RangeInput",
20004
- props: /* @__PURE__ */ mergeModels({
20005
- min: {},
20006
- max: {},
20007
- step: {},
20011
+ props: {
20012
+ min: { default: 0 },
20013
+ max: { default: 100 },
20014
+ modelValue: {},
20015
+ step: { default: 1 },
20016
+ required: { type: Boolean },
20017
+ label: {},
20008
20018
  disabled: { type: Boolean },
20009
20019
  id: {},
20010
- name: {},
20011
- required: { type: Boolean },
20012
- thickness: { default: "8px" }
20013
- }, {
20014
- "modelValue": { default: 0 },
20015
- "modelModifiers": {}
20016
- }),
20020
+ rtl: { type: Boolean }
20021
+ },
20017
20022
  emits: ["update:modelValue"],
20018
- setup(__props) {
20019
- const val = useModel(__props, "modelValue");
20020
- const range2 = ref();
20021
- const direction = computed(() => {
20022
- if (!range2.value) return "ltr";
20023
- const parent = range2.value.parentElement;
20024
- return getComputedStyle(parent).direction;
20025
- });
20026
- const background = computed(() => {
20027
- const minVal = __props.min ?? 0;
20028
- const maxVal = __props.max ?? 100;
20029
- const percentage = (val.value - minVal) / (maxVal - minVal) * 100;
20030
- if (direction.value === "rtl") {
20031
- return `linear-gradient(to left, var(--bgl-primary) ${percentage}%, var(--input-bg) ${percentage}%)`;
20032
- }
20033
- return `linear-gradient(to right, var(--bgl-primary) ${percentage}%, var(--input-bg) ${percentage}%)`;
20023
+ setup(__props, { emit: __emit }) {
20024
+ const emit2 = __emit;
20025
+ const isRange = computed(() => Array.isArray(__props.modelValue));
20026
+ let from = ref(__props.min);
20027
+ let to2 = ref(__props.max);
20028
+ const validFrom = computed(() => Math.min(Math.max(from.value, __props.min), to2.value));
20029
+ const validTo = computed(() => Math.max(Math.min(to2.value, __props.max), from.value));
20030
+ function emitValue() {
20031
+ emit2("update:modelValue", isRange.value ? [validFrom.value, validTo.value] : validFrom.value);
20032
+ }
20033
+ watch(() => validFrom.value, (newVal) => {
20034
+ if (from.value !== newVal) from.value = newVal;
20034
20035
  });
20035
- watch(() => val.value, (newValue) => {
20036
- if (__props.min !== void 0 && newValue < __props.min) val.value = __props.min;
20037
- if (__props.max !== void 0 && newValue > __props.max) val.value = __props.max;
20036
+ watch(() => validTo.value, (newVal) => {
20037
+ if (to2.value !== newVal) to2.value = newVal;
20038
20038
  });
20039
- const height = computed(() => {
20040
- return Number.isNaN(Number(__props.thickness)) ? __props.thickness : `${__props.thickness}px`;
20039
+ const fromPercentage = computed(() => (validFrom.value - __props.min) / (__props.max - __props.min) * 100);
20040
+ const toPercentage = computed(() => (validTo.value - __props.min) / (__props.max - __props.min) * 100);
20041
+ const rangeStyle = computed(() => {
20042
+ const width = (validTo.value - validFrom.value) / (__props.max - __props.min) * 100;
20043
+ if (__props.rtl || isRange.value) return { left: `${fromPercentage.value}%`, width: `${width}%` };
20044
+ return { right: `${width}%`, width: `${fromPercentage.value}%` };
20041
20045
  });
20042
20046
  return (_ctx, _cache) => {
20043
- return openBlock(), createElementBlock("div", {
20044
- class: normalizeClass(["flex gap-1 align-center range-slide", { disabled: _ctx.disabled }])
20045
- }, [
20046
- _ctx.min !== void 0 ? (openBlock(), createElementBlock("p", _hoisted_1$q, toDisplayString(_ctx.min), 1)) : createCommentVNode("", true),
20047
- withDirectives(createElementVNode("input", {
20048
- id: _ctx.id,
20049
- ref_key: "range",
20050
- ref: range2,
20051
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => val.value = $event),
20052
- disabled: _ctx.disabled,
20053
- style: normalizeStyle({ background: background.value, height: height.value }),
20054
- max: _ctx.max,
20055
- min: _ctx.min,
20056
- step: _ctx.step,
20057
- required: _ctx.required,
20058
- type: "range",
20059
- name: _ctx.name
20060
- }, null, 12, _hoisted_2$g), [
20061
- [vModelText, val.value]
20047
+ return openBlock(), createElementBlock("div", null, [
20048
+ createElementVNode("label", _hoisted_1$q, toDisplayString(_ctx.label), 1),
20049
+ createElementVNode("div", _hoisted_2$g, [
20050
+ withDirectives(createElementVNode("input", {
20051
+ id: _ctx.id,
20052
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(from) ? from.value = $event : from = $event),
20053
+ class: "from",
20054
+ type: "range",
20055
+ min: _ctx.min,
20056
+ max: _ctx.max,
20057
+ step: _ctx.step,
20058
+ required: _ctx.required,
20059
+ disabled: _ctx.disabled,
20060
+ "aria-label": "Minimum value",
20061
+ onChange: emitValue
20062
+ }, null, 40, _hoisted_3$d), [
20063
+ [vModelText, unref(from)]
20064
+ ]),
20065
+ isRange.value ? withDirectives((openBlock(), createElementBlock("input", {
20066
+ key: 0,
20067
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(to2) ? to2.value = $event : to2 = $event),
20068
+ class: "to",
20069
+ type: "range",
20070
+ min: _ctx.min,
20071
+ max: _ctx.max,
20072
+ step: _ctx.step,
20073
+ required: _ctx.required,
20074
+ disabled: _ctx.disabled,
20075
+ "aria-label": "Maximum value",
20076
+ onChange: emitValue
20077
+ }, null, 40, _hoisted_4$8)), [
20078
+ [vModelText, unref(to2)]
20079
+ ]) : createCommentVNode("", true),
20080
+ createElementVNode("div", _hoisted_5$8, [
20081
+ createElementVNode("div", {
20082
+ class: "active-range absolute h-100 pointer-events-none bg-primary",
20083
+ style: normalizeStyle(rangeStyle.value)
20084
+ }, null, 4)
20085
+ ]),
20086
+ unref(from) !== _ctx.min ? (openBlock(), createElementBlock("p", {
20087
+ key: 1,
20088
+ class: "txt-center txt-12 range-slider-position-txt absolute line-height-1 opacity-0",
20089
+ style: normalizeStyle({ marginInlineStart: `calc(${fromPercentage.value}% - 4px)` })
20090
+ }, [
20091
+ createElementVNode("span", null, toDisplayString(unref(from)), 1)
20092
+ ], 4)) : createCommentVNode("", true),
20093
+ isRange.value && unref(to2) !== _ctx.max ? (openBlock(), createElementBlock("p", {
20094
+ key: 2,
20095
+ class: "txt-center txt-12 range-slider-position-txt opacity-0 line-height-1 absolute",
20096
+ style: normalizeStyle({ marginInlineStart: `calc(${toPercentage.value}% - 12px)` })
20097
+ }, [
20098
+ createElementVNode("span", null, toDisplayString(unref(to2)), 1)
20099
+ ], 4)) : createCommentVNode("", true)
20062
20100
  ]),
20063
- _ctx.max !== void 0 ? (openBlock(), createElementBlock("p", _hoisted_3$d, toDisplayString(_ctx.max), 1)) : createCommentVNode("", true)
20064
- ], 2);
20101
+ createElementVNode("p", _hoisted_6$7, [
20102
+ createElementVNode("span", null, toDisplayString(_ctx.min), 1),
20103
+ createElementVNode("span", null, toDisplayString(_ctx.max), 1)
20104
+ ])
20105
+ ]);
20065
20106
  };
20066
20107
  }
20067
20108
  });
20068
- const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-ded4d62d"]]);
20109
+ const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-dae624bd"]]);
20069
20110
  const defaultToolbarConfig = [
20070
20111
  "h2",
20071
20112
  "h3",