@bagelink/vue 1.5.20 → 1.5.26

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
@@ -6030,6 +6030,7 @@ function richText(e, t, j) {
6030
6030
  hide: j?.hide,
6031
6031
  autofocus: j?.autofocus,
6032
6032
  textColor: j?.textColor,
6033
+ fontSize: j?.fontSize,
6033
6034
  autocomplete: j?.autocomplete
6034
6035
  }
6035
6036
  };
@@ -6997,7 +6998,7 @@ var BagelForm_default = /* @__PURE__ */ defineComponent({
6997
6998
  small: { type: Boolean },
6998
6999
  required: { type: Boolean },
6999
7000
  disabled: { type: Boolean },
7000
- defaultValue: { default: !1 },
7001
+ defaultValue: {},
7001
7002
  value: {}
7002
7003
  }, {
7003
7004
  modelValue: { default: void 0 },
@@ -7006,7 +7007,9 @@ var BagelForm_default = /* @__PURE__ */ defineComponent({
7006
7007
  emits: ["update:modelValue"],
7007
7008
  setup(e) {
7008
7009
  let t = computed(() => e.id || Math.random().toString(36).slice(7)), j = useModel(e, "modelValue");
7009
- return onMounted(() => {}), (e, M) => (openBlock(), createElementBlock("div", {
7010
+ return onMounted(() => {
7011
+ j.value === void 0 && e.defaultValue !== void 0 && (j.value = e.defaultValue);
7012
+ }), (e, M) => (openBlock(), createElementBlock("div", {
7010
7013
  class: normalizeClass(["bagel-input bgl-checkbox align-items-center ps-025", { small: e.small }]),
7011
7014
  title: e.title
7012
7015
  }, [withDirectives(createElementVNode("input", {
@@ -7019,7 +7022,7 @@ var BagelForm_default = /* @__PURE__ */ defineComponent({
7019
7022
  class: "me-05"
7020
7023
  }, null, 8, _hoisted_2$39), [[vModelCheckbox, j.value]]), createElementVNode("label", { for: t.value + e.value }, [renderSlot(e.$slots, "label", {}, () => [createTextVNode(toDisplayString(e.label), 1)], !0)], 8, _hoisted_3$31)], 10, _hoisted_1$53));
7021
7024
  }
7022
- }), [["__scopeId", "data-v-1f95e783"]]);
7025
+ }), [["__scopeId", "data-v-f0e1da2b"]]);
7023
7026
  function useHighlight(e = "dark") {
7024
7027
  let t = ref(null), j = ref(!1), M = ref(e), N = (e) => e === "dark" ? "atom-one-dark" : e === "light" ? "atom-one-light" : e, I = (e) => `https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.0/styles/${e}.min.css`, V = () => {
7025
7028
  document.querySelectorAll("link[rel=\"stylesheet\"]").forEach((e) => {