@bagelink/vue 0.0.441 → 0.0.449

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.
@@ -1,10 +1,16 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
2
  label?: string | undefined;
3
3
  id?: string | undefined;
4
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ open?: boolean | undefined;
5
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ "update:open": (...args: any[]) => void;
7
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
8
  label?: string | undefined;
6
9
  id?: string | undefined;
7
- }>>>, {}, {}>, {
10
+ open?: boolean | undefined;
11
+ }>>> & {
12
+ "onUpdate:open"?: ((...args: any[]) => any) | undefined;
13
+ }, {}, {}>, {
8
14
  head?(_: {}): any;
9
15
  default?(_: {}): any;
10
16
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionItem.vue.d.ts","sourceRoot":"","sources":["../../src/components/AccordionItem.vue"],"names":[],"mappings":"AA2BA;;;;;;;;;;;AA2MA,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"AccordionItem.vue.d.ts","sourceRoot":"","sources":["../../src/components/AccordionItem.vue"],"names":[],"mappings":"AA2BA;;;;;;;;;;;;;;;;;AA6NA,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -197,7 +197,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
197
197
  uploaded?: boolean | undefined;
198
198
  }[]>;
199
199
  }): any;
200
- placeholder?(_: {}): any;
200
+ placeholder?(_: {
201
+ browse: () => void;
202
+ }): any;
201
203
  }>;
202
204
  export default _default;
203
205
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"FileUpload.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/FileUpload.vue"],"names":[],"mappings":"AAyEA;AAGA,OAAO,EAAO,KAAK,WAAW,EAA0B,MAAM,eAAe,CAAC;AAgB9E,KAAK,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmf1C,wBAAwG;AAGxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"FileUpload.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/FileUpload.vue"],"names":[],"mappings":"AAyEA;AAGA,OAAO,EACD,KAAK,WAAW,EACrB,MAAM,eAAe,CAAC;AAgBvB,KAAK,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+e1C,wBAAwG;AAGxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/TextInput.vue"],"names":[],"mappings":"AAGA,OAAO,EACS,KAAK,aAAa,EACjC,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAuRd,MAAM;gBARA,MAAM,GAAG,MAAM;;AAV9B,wBA+BG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"TextInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/TextInput.vue"],"names":[],"mappings":"AAGA,OAAO,EACS,KAAK,aAAa,EACjC,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAyRd,MAAM;gBARA,MAAM,GAAG,MAAM;;AAV9B,wBA+BG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
package/dist/index.cjs CHANGED
@@ -4908,7 +4908,15 @@ function numField(id, label, options) {
4908
4908
  id,
4909
4909
  label,
4910
4910
  placeholder: options == null ? void 0 : options.placeholder,
4911
- attrs: { type: "number" }
4911
+ helptext: options == null ? void 0 : options.helptext,
4912
+ attrs: {
4913
+ type: "number",
4914
+ nativeInputAttrs: {
4915
+ step: options == null ? void 0 : options.step,
4916
+ min: options == null ? void 0 : options.min,
4917
+ max: options == null ? void 0 : options.max
4918
+ }
4919
+ }
4912
4920
  };
4913
4921
  }
4914
4922
  function frmRow(...children2) {
@@ -5568,25 +5576,38 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
5568
5576
  __name: "AccordionItem",
5569
5577
  props: {
5570
5578
  label: {},
5571
- id: {}
5579
+ id: {},
5580
+ open: { type: Boolean }
5572
5581
  },
5573
- setup(__props) {
5582
+ emits: ["update:open"],
5583
+ setup(__props, { emit: __emit }) {
5574
5584
  const props2 = __props;
5575
- let open = vue.ref(false);
5585
+ const emit2 = __emit;
5586
+ let openVal = vue.ref(false);
5587
+ let isOpen = vue.computed({
5588
+ get: () => openVal.value,
5589
+ set: (value) => {
5590
+ openVal.value = value;
5591
+ emit2("update:open", value);
5592
+ }
5593
+ });
5594
+ vue.onMounted(() => {
5595
+ if (props2.open)
5596
+ isOpen.value = true;
5597
+ });
5576
5598
  const accordionState = vue.inject("accordionState");
5577
5599
  const id = props2.id || Math.random().toString(36).substring(7);
5578
5600
  vue.watch(
5579
5601
  () => accordionState == null ? void 0 : accordionState.openItem,
5580
5602
  (currentOpenId) => {
5581
- if (currentOpenId !== id) {
5582
- open.value = false;
5583
- }
5603
+ if (currentOpenId !== id)
5604
+ isOpen.value = false;
5584
5605
  },
5585
5606
  { immediate: true }
5586
5607
  );
5587
5608
  function toggle() {
5588
- open.value = !open.value;
5589
- if (open.value && (accordionState == null ? void 0 : accordionState.openItem))
5609
+ isOpen.value = !isOpen.value;
5610
+ if (isOpen.value && (accordionState == null ? void 0 : accordionState.openItem))
5590
5611
  accordionState.openItem = id;
5591
5612
  else if ((accordionState == null ? void 0 : accordionState.openItem) === id)
5592
5613
  accordionState.openItem = null;
@@ -5595,7 +5616,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
5595
5616
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
5596
5617
  vue.createElementVNode("button", {
5597
5618
  onClick: _cache[0] || (_cache[0] = ($event) => toggle()),
5598
- "aria-expanded": vue.unref(open) ? "true" : "false",
5619
+ "aria-expanded": vue.unref(isOpen) ? "true" : "false",
5599
5620
  class: "accordion-head",
5600
5621
  "aria-controls": `accordion-body-${vue.unref(id)}`
5601
5622
  }, [
@@ -5603,18 +5624,18 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
5603
5624
  vue.createElementVNode("span", _hoisted_3$l, vue.toDisplayString(_ctx.label), 1)
5604
5625
  ], true),
5605
5626
  vue.createElementVNode("div", {
5606
- class: vue.normalizeClass(["accordion-icon", { open: vue.unref(open) }])
5627
+ class: vue.normalizeClass(["accordion-icon", { open: vue.unref(isOpen) }])
5607
5628
  }, [
5608
5629
  vue.createVNode(vue.unref(_sfc_main$K), { icon: "expand_more" })
5609
5630
  ], 2)
5610
5631
  ], 8, _hoisted_2$v),
5611
5632
  vue.createVNode(vue.Transition, { name: "expand" }, {
5612
5633
  default: vue.withCtx(() => [
5613
- vue.unref(open) ? (vue.openBlock(), vue.createElementBlock("div", {
5634
+ vue.unref(isOpen) ? (vue.openBlock(), vue.createElementBlock("div", {
5614
5635
  key: 0,
5615
5636
  class: "accordion-body",
5616
5637
  id: `accordion-body-${vue.unref(id)}`,
5617
- "aria-hidden": vue.unref(open) ? "false" : "true"
5638
+ "aria-hidden": vue.unref(isOpen) ? "false" : "true"
5618
5639
  }, [
5619
5640
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
5620
5641
  ], 8, _hoisted_4$f)) : vue.createCommentVNode("", true)
@@ -5625,7 +5646,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
5625
5646
  };
5626
5647
  }
5627
5648
  });
5628
- const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-402c99d7"]]);
5649
+ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-c1f34c59"]]);
5629
5650
  const _sfc_main$E = {};
5630
5651
  const _hoisted_1$B = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 p-0" };
5631
5652
  const _hoisted_2$u = { class: "p-1" };
@@ -18450,7 +18471,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
18450
18471
  disabled: _ctx.disabled,
18451
18472
  required: _ctx.required,
18452
18473
  pattern: _ctx.pattern
18453
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_4$9)), [
18474
+ }, _ctx.nativeInputAttrs, { onInput: updateInputVal }), null, 16, _hoisted_4$9)), [
18454
18475
  [vue.vModelText, vue.unref(inputVal)]
18455
18476
  ]),
18456
18477
  _ctx.helptext ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_5$8, vue.toDisplayString(_ctx.helptext), 1)) : vue.createCommentVNode("", true)
@@ -18468,7 +18489,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
18468
18489
  };
18469
18490
  }
18470
18491
  });
18471
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-d2e87e5e"]]);
18492
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-06fc66fe"]]);
18472
18493
  const _hoisted_1$k = { class: "primary-checkbox" };
18473
18494
  const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
18474
18495
  __name: "Checkbox",
@@ -18701,7 +18722,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
18701
18722
  }
18702
18723
  });
18703
18724
  const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-880c5069"]]);
18704
- const _withScopeId$2 = (n2) => (vue.pushScopeId("data-v-7efccba8"), n2 = n2(), vue.popScopeId(), n2);
18725
+ const _withScopeId$2 = (n2) => (vue.pushScopeId("data-v-52599888"), n2 = n2(), vue.popScopeId(), n2);
18705
18726
  const _hoisted_1$g = { class: "bagel-input" };
18706
18727
  const _hoisted_2$d = {
18707
18728
  key: 0,
@@ -18824,9 +18845,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
18824
18845
  input.onchange = (e) => {
18825
18846
  const target = e == null ? void 0 : e.target;
18826
18847
  if (target == null ? void 0 : target.files) {
18827
- Array.from(target.files).forEach(
18828
- (file) => fileQueue.value.push({ name: file.name, file, progress: 0 })
18829
- );
18848
+ Array.from(target.files).forEach((file) => fileQueue.value.push({ name: file.name, file, progress: 0 }));
18830
18849
  }
18831
18850
  flushQueue();
18832
18851
  };
@@ -18849,9 +18868,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
18849
18868
  const drop3 = (e) => {
18850
18869
  preventDefault(e);
18851
18870
  if (e.dataTransfer) {
18852
- Array.from(e.dataTransfer.files).forEach(
18853
- (file) => fileQueue.value.push({ name: file.name, file, progress: 0 })
18854
- );
18871
+ Array.from(e.dataTransfer.files).forEach((file) => fileQueue.value.push({ name: file.name, file, progress: 0 }));
18855
18872
  }
18856
18873
  isDragOver.value = false;
18857
18874
  flushQueue();
@@ -18935,7 +18952,10 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
18935
18952
  ], 64);
18936
18953
  }), 128))
18937
18954
  ], true),
18938
- !storageFiles.value.length && !fileQueue.value.length || _ctx.multiple ? vue.renderSlot(_ctx.$slots, "placeholder", { key: 0 }, () => [
18955
+ !storageFiles.value.length && !fileQueue.value.length || _ctx.multiple ? vue.renderSlot(_ctx.$slots, "placeholder", {
18956
+ key: 0,
18957
+ browse
18958
+ }, () => [
18939
18959
  _hoisted_13
18940
18960
  ], true) : vue.createCommentVNode("", true)
18941
18961
  ], 34)
@@ -18943,7 +18963,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
18943
18963
  };
18944
18964
  }
18945
18965
  });
18946
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-7efccba8"]]);
18966
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-52599888"]]);
18947
18967
  const _withScopeId$1 = (n2) => (vue.pushScopeId("data-v-b87221d6"), n2 = n2(), vue.popScopeId(), n2);
18948
18968
  const _hoisted_1$f = ["title"];
18949
18969
  const _hoisted_2$c = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
package/dist/index.mjs CHANGED
@@ -4906,7 +4906,15 @@ function numField(id, label, options) {
4906
4906
  id,
4907
4907
  label,
4908
4908
  placeholder: options == null ? void 0 : options.placeholder,
4909
- attrs: { type: "number" }
4909
+ helptext: options == null ? void 0 : options.helptext,
4910
+ attrs: {
4911
+ type: "number",
4912
+ nativeInputAttrs: {
4913
+ step: options == null ? void 0 : options.step,
4914
+ min: options == null ? void 0 : options.min,
4915
+ max: options == null ? void 0 : options.max
4916
+ }
4917
+ }
4910
4918
  };
4911
4919
  }
4912
4920
  function frmRow(...children2) {
@@ -5566,25 +5574,38 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
5566
5574
  __name: "AccordionItem",
5567
5575
  props: {
5568
5576
  label: {},
5569
- id: {}
5577
+ id: {},
5578
+ open: { type: Boolean }
5570
5579
  },
5571
- setup(__props) {
5580
+ emits: ["update:open"],
5581
+ setup(__props, { emit: __emit }) {
5572
5582
  const props2 = __props;
5573
- let open = ref(false);
5583
+ const emit2 = __emit;
5584
+ let openVal = ref(false);
5585
+ let isOpen = computed({
5586
+ get: () => openVal.value,
5587
+ set: (value) => {
5588
+ openVal.value = value;
5589
+ emit2("update:open", value);
5590
+ }
5591
+ });
5592
+ onMounted(() => {
5593
+ if (props2.open)
5594
+ isOpen.value = true;
5595
+ });
5574
5596
  const accordionState = inject("accordionState");
5575
5597
  const id = props2.id || Math.random().toString(36).substring(7);
5576
5598
  watch(
5577
5599
  () => accordionState == null ? void 0 : accordionState.openItem,
5578
5600
  (currentOpenId) => {
5579
- if (currentOpenId !== id) {
5580
- open.value = false;
5581
- }
5601
+ if (currentOpenId !== id)
5602
+ isOpen.value = false;
5582
5603
  },
5583
5604
  { immediate: true }
5584
5605
  );
5585
5606
  function toggle() {
5586
- open.value = !open.value;
5587
- if (open.value && (accordionState == null ? void 0 : accordionState.openItem))
5607
+ isOpen.value = !isOpen.value;
5608
+ if (isOpen.value && (accordionState == null ? void 0 : accordionState.openItem))
5588
5609
  accordionState.openItem = id;
5589
5610
  else if ((accordionState == null ? void 0 : accordionState.openItem) === id)
5590
5611
  accordionState.openItem = null;
@@ -5593,7 +5614,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
5593
5614
  return openBlock(), createElementBlock("div", _hoisted_1$C, [
5594
5615
  createElementVNode("button", {
5595
5616
  onClick: _cache[0] || (_cache[0] = ($event) => toggle()),
5596
- "aria-expanded": unref(open) ? "true" : "false",
5617
+ "aria-expanded": unref(isOpen) ? "true" : "false",
5597
5618
  class: "accordion-head",
5598
5619
  "aria-controls": `accordion-body-${unref(id)}`
5599
5620
  }, [
@@ -5601,18 +5622,18 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
5601
5622
  createElementVNode("span", _hoisted_3$l, toDisplayString(_ctx.label), 1)
5602
5623
  ], true),
5603
5624
  createElementVNode("div", {
5604
- class: normalizeClass(["accordion-icon", { open: unref(open) }])
5625
+ class: normalizeClass(["accordion-icon", { open: unref(isOpen) }])
5605
5626
  }, [
5606
5627
  createVNode(unref(_sfc_main$K), { icon: "expand_more" })
5607
5628
  ], 2)
5608
5629
  ], 8, _hoisted_2$v),
5609
5630
  createVNode(Transition, { name: "expand" }, {
5610
5631
  default: withCtx(() => [
5611
- unref(open) ? (openBlock(), createElementBlock("div", {
5632
+ unref(isOpen) ? (openBlock(), createElementBlock("div", {
5612
5633
  key: 0,
5613
5634
  class: "accordion-body",
5614
5635
  id: `accordion-body-${unref(id)}`,
5615
- "aria-hidden": unref(open) ? "false" : "true"
5636
+ "aria-hidden": unref(isOpen) ? "false" : "true"
5616
5637
  }, [
5617
5638
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
5618
5639
  ], 8, _hoisted_4$f)) : createCommentVNode("", true)
@@ -5623,7 +5644,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
5623
5644
  };
5624
5645
  }
5625
5646
  });
5626
- const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-402c99d7"]]);
5647
+ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-c1f34c59"]]);
5627
5648
  const _sfc_main$E = {};
5628
5649
  const _hoisted_1$B = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 p-0" };
5629
5650
  const _hoisted_2$u = { class: "p-1" };
@@ -18448,7 +18469,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18448
18469
  disabled: _ctx.disabled,
18449
18470
  required: _ctx.required,
18450
18471
  pattern: _ctx.pattern
18451
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_4$9)), [
18472
+ }, _ctx.nativeInputAttrs, { onInput: updateInputVal }), null, 16, _hoisted_4$9)), [
18452
18473
  [vModelText, unref(inputVal)]
18453
18474
  ]),
18454
18475
  _ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_5$8, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true)
@@ -18466,7 +18487,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18466
18487
  };
18467
18488
  }
18468
18489
  });
18469
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-d2e87e5e"]]);
18490
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-06fc66fe"]]);
18470
18491
  const _hoisted_1$k = { class: "primary-checkbox" };
18471
18492
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
18472
18493
  __name: "Checkbox",
@@ -18699,7 +18720,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
18699
18720
  }
18700
18721
  });
18701
18722
  const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-880c5069"]]);
18702
- const _withScopeId$2 = (n2) => (pushScopeId("data-v-7efccba8"), n2 = n2(), popScopeId(), n2);
18723
+ const _withScopeId$2 = (n2) => (pushScopeId("data-v-52599888"), n2 = n2(), popScopeId(), n2);
18703
18724
  const _hoisted_1$g = { class: "bagel-input" };
18704
18725
  const _hoisted_2$d = {
18705
18726
  key: 0,
@@ -18822,9 +18843,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
18822
18843
  input.onchange = (e) => {
18823
18844
  const target = e == null ? void 0 : e.target;
18824
18845
  if (target == null ? void 0 : target.files) {
18825
- Array.from(target.files).forEach(
18826
- (file) => fileQueue.value.push({ name: file.name, file, progress: 0 })
18827
- );
18846
+ Array.from(target.files).forEach((file) => fileQueue.value.push({ name: file.name, file, progress: 0 }));
18828
18847
  }
18829
18848
  flushQueue();
18830
18849
  };
@@ -18847,9 +18866,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
18847
18866
  const drop3 = (e) => {
18848
18867
  preventDefault(e);
18849
18868
  if (e.dataTransfer) {
18850
- Array.from(e.dataTransfer.files).forEach(
18851
- (file) => fileQueue.value.push({ name: file.name, file, progress: 0 })
18852
- );
18869
+ Array.from(e.dataTransfer.files).forEach((file) => fileQueue.value.push({ name: file.name, file, progress: 0 }));
18853
18870
  }
18854
18871
  isDragOver.value = false;
18855
18872
  flushQueue();
@@ -18933,7 +18950,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
18933
18950
  ], 64);
18934
18951
  }), 128))
18935
18952
  ], true),
18936
- !storageFiles.value.length && !fileQueue.value.length || _ctx.multiple ? renderSlot(_ctx.$slots, "placeholder", { key: 0 }, () => [
18953
+ !storageFiles.value.length && !fileQueue.value.length || _ctx.multiple ? renderSlot(_ctx.$slots, "placeholder", {
18954
+ key: 0,
18955
+ browse
18956
+ }, () => [
18937
18957
  _hoisted_13
18938
18958
  ], true) : createCommentVNode("", true)
18939
18959
  ], 34)
@@ -18941,7 +18961,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
18941
18961
  };
18942
18962
  }
18943
18963
  });
18944
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-7efccba8"]]);
18964
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-52599888"]]);
18945
18965
  const _withScopeId$1 = (n2) => (pushScopeId("data-v-b87221d6"), n2 = n2(), popScopeId(), n2);
18946
18966
  const _hoisted_1$f = ["title"];
18947
18967
  const _hoisted_2$c = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
package/dist/style.css CHANGED
@@ -535,13 +535,13 @@ a[data-v-d09a83c5] {
535
535
  }
536
536
  }
537
537
 
538
- .accordion-item[data-v-402c99d7] {
538
+ .accordion-item[data-v-c1f34c59] {
539
539
  border-bottom: 1px solid var(--border-color);
540
540
  transition: all 0.2s;
541
541
  cursor: pointer;
542
542
  overflow: hidden;
543
543
  }
544
- .accordion-head[data-v-402c99d7] {
544
+ .accordion-head[data-v-c1f34c59] {
545
545
  height: var(--input-height);
546
546
  background: transparent;
547
547
  display: flex;
@@ -550,19 +550,19 @@ a[data-v-d09a83c5] {
550
550
  justify-content: space-between;
551
551
  border: none;
552
552
  }
553
- .accordion-icon[data-v-402c99d7] {
553
+ .accordion-icon[data-v-c1f34c59] {
554
554
  transition: all 0.2s ease;
555
555
  }
556
- .accordion-icon.open[data-v-402c99d7] {
556
+ .accordion-icon.open[data-v-c1f34c59] {
557
557
  transform: rotate(180deg);
558
558
  }
559
- .accordion-label[data-v-402c99d7] {
559
+ .accordion-label[data-v-c1f34c59] {
560
560
  font-weight: bold;
561
561
  }
562
- .accordion-head:hover .accordion-label[data-v-402c99d7] {
562
+ .accordion-head:hover .accordion-label[data-v-c1f34c59] {
563
563
  text-decoration: underline;
564
564
  }
565
- .accordion-body[data-v-402c99d7] {
565
+ .accordion-body[data-v-c1f34c59] {
566
566
  }
567
567
 
568
568
  .expand-enter-active,
@@ -2382,58 +2382,58 @@ display: block;
2382
2382
  font-size: var(--label-font-size);
2383
2383
  }
2384
2384
 
2385
- .bagel-input textarea[data-v-d2e87e5e] {
2385
+ .bagel-input textarea[data-v-06fc66fe] {
2386
2386
  min-height: unset;
2387
2387
  font-size: var(--input-font-size);
2388
2388
  }
2389
- .bagel-input.text-input textarea[data-v-d2e87e5e] {
2389
+ .bagel-input.text-input textarea[data-v-06fc66fe] {
2390
2390
  resize: none;
2391
2391
  }
2392
- .code textarea[data-v-d2e87e5e] {
2392
+ .code textarea[data-v-06fc66fe] {
2393
2393
  font-family: 'Inconsolata', monospace;
2394
2394
  background: var(--bgl-black) !important;
2395
2395
  color: var(--bgl-white) !important;
2396
2396
  }
2397
- .code textarea[data-v-d2e87e5e]::placeholder{
2397
+ .code textarea[data-v-06fc66fe]::placeholder{
2398
2398
  color: var(--bgl-white) !important;
2399
2399
  opacity: 0.3;
2400
2400
  }
2401
- .bagel-input.small[data-v-d2e87e5e] {
2401
+ .bagel-input.small[data-v-06fc66fe] {
2402
2402
  margin-bottom: 0;
2403
2403
  height: 30px;
2404
2404
  }
2405
- .bagel-input.dense label[data-v-d2e87e5e] {
2405
+ .bagel-input.dense label[data-v-06fc66fe] {
2406
2406
  display: flex;
2407
2407
  align-items: center;
2408
2408
  gap: 0.5rem;
2409
2409
  }
2410
- .bagel-input input[data-v-d2e87e5e]:disabled {
2410
+ .bagel-input input[data-v-06fc66fe]:disabled {
2411
2411
  background: #f5f5f5;
2412
2412
  }
2413
- .bagel-input label[data-v-d2e87e5e] {
2413
+ .bagel-input label[data-v-06fc66fe] {
2414
2414
  font-size: var(--label-font-size);
2415
2415
  }
2416
- .textInputIconWrap[data-v-d2e87e5e] {
2416
+ .textInputIconWrap[data-v-06fc66fe] {
2417
2417
  position: relative;
2418
2418
  }
2419
- .textInputIconWrap .bgl_icon-font[data-v-d2e87e5e] {
2419
+ .textInputIconWrap .bgl_icon-font[data-v-06fc66fe] {
2420
2420
  position: absolute;
2421
2421
  inset-inline-end: 0.7rem;
2422
2422
  bottom: 50%;
2423
2423
  line-height: 0;
2424
2424
  color: var(--bgl-gray);
2425
2425
  }
2426
- .txtInputIconStart .iconStart[data-v-d2e87e5e] {
2426
+ .txtInputIconStart .iconStart[data-v-06fc66fe] {
2427
2427
  position: absolute;
2428
2428
  inset-inline-start: 0.7rem;
2429
2429
  top: 50%;
2430
2430
  line-height: 0;
2431
2431
  color: var(--bgl-gray);
2432
2432
  }
2433
- .txtInputIconStart textarea[data-v-d2e87e5e] {
2433
+ .txtInputIconStart textarea[data-v-06fc66fe] {
2434
2434
  padding-inline-start: 2rem;
2435
2435
  }
2436
- .bagel-input.small textarea[data-v-d2e87e5e] {
2436
+ .bagel-input.small textarea[data-v-06fc66fe] {
2437
2437
  height: 30px;
2438
2438
  }
2439
2439
 
@@ -2596,7 +2596,7 @@ display: block;
2596
2596
  color: var(--bgl-white);
2597
2597
  }
2598
2598
 
2599
- .bagel-input .fileUploadWrap[data-v-7efccba8] {
2599
+ .bagel-input .fileUploadWrap[data-v-52599888] {
2600
2600
  --width: 320px;
2601
2601
  outline: 1px solid var(--border-color);
2602
2602
  border-radius: var(--input-border-radius);
@@ -2609,7 +2609,7 @@ display: block;
2609
2609
  overflow-y: auto;
2610
2610
  background: var(--input-bg);
2611
2611
  }
2612
- .previewName[data-v-7efccba8] {
2612
+ .previewName[data-v-52599888] {
2613
2613
  padding: 0.5rem;
2614
2614
  text-align: start;
2615
2615
  color: var(--input-color);
@@ -2619,18 +2619,18 @@ display: block;
2619
2619
  align-items: center;
2620
2620
  padding-inline: 14px;
2621
2621
  }
2622
- .previewName p[data-v-7efccba8] {
2622
+ .previewName p[data-v-52599888] {
2623
2623
  overflow: hidden;
2624
2624
  text-overflow: ellipsis;
2625
2625
  white-space: nowrap;
2626
2626
  }
2627
- .imagePreviewWrap[data-v-7efccba8] {
2627
+ .imagePreviewWrap[data-v-52599888] {
2628
2628
  background: var(--input-bg);
2629
2629
  border-radius: var(--input-border-radius);
2630
2630
  padding: 5px;
2631
2631
  min-height: 90px;
2632
2632
  }
2633
- img.preview[data-v-7efccba8] {
2633
+ img.preview[data-v-52599888] {
2634
2634
  /* max-height: calc(var(--width) / 2); */
2635
2635
  /* max-width: calc(var(--width) * 2); */
2636
2636
  width: 40px;
@@ -2640,7 +2640,7 @@ img.preview[data-v-7efccba8] {
2640
2640
  background: var(--bgl-gray-light);
2641
2641
  box-shadow: 0 0 10px #00000012;
2642
2642
  }
2643
- img.preview.single[data-v-7efccba8]{
2643
+ img.preview.single[data-v-52599888]{
2644
2644
  max-width: var(--width);
2645
2645
  width: auto;
2646
2646
  object-fit: contain;
@@ -2648,18 +2648,18 @@ img.preview.single[data-v-7efccba8]{
2648
2648
  max-height: calc(var(--width) / 2);
2649
2649
  margin: 1rem;
2650
2650
  }
2651
- .fileUploadWrap.dragover[data-v-7efccba8],
2652
- .fileUploadWrap[data-v-7efccba8]:hover {
2651
+ .fileUploadWrap.dragover[data-v-52599888],
2652
+ .fileUploadWrap[data-v-52599888]:hover {
2653
2653
  box-shadow: inset 0 0 10px #00000012;
2654
2654
  }
2655
- .bagel-input .fileUploadWrap.fileDropZone[data-v-7efccba8] {
2655
+ .bagel-input .fileUploadWrap.fileDropZone[data-v-52599888] {
2656
2656
  background: var(--input-bg);
2657
2657
  display: flex;
2658
2658
  align-items: center;
2659
2659
  justify-content: center;
2660
2660
  color: var(--bgl-gray);
2661
2661
  }
2662
- .pie[data-v-7efccba8] {
2662
+ .pie[data-v-52599888] {
2663
2663
  width: 30px;
2664
2664
  height: 30px;
2665
2665
  position: relative;
@@ -2667,7 +2667,7 @@ img.preview.single[data-v-7efccba8]{
2667
2667
  align-items: center;
2668
2668
  justify-content: center;
2669
2669
  }
2670
- .pie[data-v-7efccba8]:before {
2670
+ .pie[data-v-52599888]:before {
2671
2671
  content: '';
2672
2672
  position: absolute;
2673
2673
  border-radius: 50%;
@@ -2685,26 +2685,26 @@ img.preview.single[data-v-7efccba8]{
2685
2685
  #000 calc(100% - var(--b))
2686
2686
  );
2687
2687
  }
2688
- .pie .success[data-v-7efccba8] {
2688
+ .pie .success[data-v-52599888] {
2689
2689
  transform: scale(0);
2690
2690
  opacity: 0;
2691
2691
  transition: all 0.3s ease-in-out;
2692
2692
  }
2693
- .pie .progress[data-v-7efccba8] {
2693
+ .pie .progress[data-v-52599888] {
2694
2694
  position: absolute;
2695
2695
  font-size: 10px;
2696
2696
  }
2697
- .pie.complete .progress[data-v-7efccba8] {
2697
+ .pie.complete .progress[data-v-52599888] {
2698
2698
  display: none;
2699
2699
  }
2700
- .pie.complete .success[data-v-7efccba8] {
2700
+ .pie.complete .success[data-v-52599888] {
2701
2701
  transform: scale(1.3);
2702
2702
  opacity: 1;
2703
2703
  }
2704
- .pie.complete[data-v-7efccba8]:before {
2704
+ .pie.complete[data-v-52599888]:before {
2705
2705
  background: conic-gradient(var(--bgl-green) calc(var(--p) * 1%), #0000 0);
2706
2706
  }
2707
- .pie.complete[data-v-7efccba8] {
2707
+ .pie.complete[data-v-52599888] {
2708
2708
  color: var(--bgl-green);
2709
2709
  }
2710
2710
 
@@ -3193,6 +3193,9 @@ p {
3193
3193
  .round {
3194
3194
  border-radius: var(--btn-border-radius);
3195
3195
  }
3196
+ .rounded {
3197
+ border-radius: calc(var(--btn-border-radius) / 2);
3198
+ }
3196
3199
  .justify-items-center {
3197
3200
  justify-items: center;
3198
3201
  }
@@ -3262,6 +3265,16 @@ p {
3262
3265
  top: 0px;
3263
3266
  inset-inline-end: 0px;
3264
3267
  }
3268
+ .position-bottom-start {
3269
+ position: absolute;
3270
+ bottom: 0px;
3271
+ inset-inline-start: 0px;
3272
+ }
3273
+ .position-bottom-end {
3274
+ position: absolute;
3275
+ bottom: 0px;
3276
+ inset-inline-end: 0px;
3277
+ }
3265
3278
  .positioned-full {
3266
3279
  top: 0;
3267
3280
  bottom: 0;
@@ -4635,6 +4648,18 @@ p {
4635
4648
  inset-inline-end: 0px;
4636
4649
  }
4637
4650
 
4651
+ .m_position-bottom-start {
4652
+ position: absolute;
4653
+ bottom: 0px;
4654
+ inset-inline-start: 0px;
4655
+ }
4656
+
4657
+ .m_position-bottom-end {
4658
+ position: absolute;
4659
+ bottom: 0px;
4660
+ inset-inline-end: 0px;
4661
+ }
4662
+
4638
4663
  .m_positioned-full {
4639
4664
  top: 0;
4640
4665
  bottom: 0;
@@ -4642,6 +4667,7 @@ p {
4642
4667
  inset-inline-end: 0;
4643
4668
  }
4644
4669
 
4670
+
4645
4671
  .m_auto-flow-rows {
4646
4672
  grid-auto-flow: row;
4647
4673
  }
@@ -6952,6 +6978,9 @@ select {
6952
6978
  min-width: 220px;
6953
6979
  }
6954
6980
  }
6981
+ .opacity-0 {
6982
+ opacity: 0;
6983
+ }
6955
6984
  .opacity-1 {
6956
6985
  opacity: 0.1;
6957
6986
  }
@@ -7246,7 +7275,23 @@ select {
7246
7275
  .color-input-green input {
7247
7276
  color: var(--bgl-green) !important;
7248
7277
  }
7278
+ .cover,
7279
+ .object-fit-cover {
7280
+ object-fit: cover;
7281
+ }
7282
+ .contain,
7283
+ .object-fit-contain {
7284
+ object-fit: contain;
7285
+ }
7286
+ .scale-down,
7287
+ .object-fit-scale-down {
7288
+ object-fit: scale-down;
7289
+ }
7249
7290
  @media screen and (max-width: 910px) {
7291
+ .m_opacity-0 {
7292
+ opacity: 0;
7293
+ }
7294
+
7250
7295
  .m_opacity-1 {
7251
7296
  opacity: 0.1;
7252
7297
  }
@@ -7635,6 +7680,21 @@ select {
7635
7680
  .m_color-input-green input {
7636
7681
  color: var(--bgl-green) !important;
7637
7682
  }
7683
+
7684
+ .m_cover,
7685
+ .m_object-fit-cover {
7686
+ object-fit: cover;
7687
+ }
7688
+
7689
+ .m_contain,
7690
+ .m_object-fit-contain {
7691
+ object-fit: contain;
7692
+ }
7693
+
7694
+ .m_scale-down,
7695
+ .m_object-fit-scale-down {
7696
+ object-fit: scale-down;
7697
+ }
7638
7698
  }
7639
7699
  /* @import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@300;400;500;600;700&display=swap"); */
7640
7700
  /*noinspection CssUnknownTarget*/
@@ -1 +1 @@
1
- {"version":3,"file":"BagelFormUtils.d.ts","sourceRoot":"","sources":["../../src/utils/BagelFormUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,MAAM,GACf,MAAM,GACN,MAAM,GACN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAE7C,UAAU,YAAY;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,eAAgB,SAAQ,YAAY;IAC7C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAED,KAAK,eAAe,GAAG,YAAY,CAAC;AAEpC,wBAAgB,QAAQ,CACvB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,eAAe;;;;;;;;EAWzB;AAED,wBAAgB,QAAQ,CACvB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,gBAAgB,GACxB,KAAK,CAeP;AAED,wBAAgB,SAAS,CACxB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,MAAM,EAAE,CAAC,EACrC,MAAM,CAAC,EAAE,gBAAgB,GACvB,KAAK,CAgBP;AAED,wBAAgB,UAAU,CACzB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,eAAe,GACvB,KAAK,CAQP;AAED,wBAAgB,QAAQ,CACvB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,eAAe,GACvB,KAAK,CAWP;AAED,wBAAgB,MAAM,CAAC,GAAG,QAAQ,EAAE,KAAK,EAAE;;;;EAM1C"}
1
+ {"version":3,"file":"BagelFormUtils.d.ts","sourceRoot":"","sources":["../../src/utils/BagelFormUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,MAAM,GACf,MAAM,GACN,MAAM,GACN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAE7C,UAAU,YAAY;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,eAAgB,SAAQ,YAAY;IAC7C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAED,KAAK,eAAe,GAAG,YAAY,CAAC;AAEpC,wBAAgB,QAAQ,CACvB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,eAAe;;;;;;;;EAWzB;AAED,wBAAgB,QAAQ,CACvB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,gBAAgB,GACxB,KAAK,CAeP;AAED,wBAAgB,SAAS,CACxB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,MAAM,EAAE,CAAC,EACrC,MAAM,CAAC,EAAE,gBAAgB,GACvB,KAAK,CAgBP;AAED,wBAAgB,UAAU,CACzB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,eAAe,GACvB,KAAK,CAQP;AAED,wBAAgB,QAAQ,CACvB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,eAAe,GACvB,KAAK,CAmBP;AAED,wBAAgB,MAAM,CAAC,GAAG,QAAQ,EAAE,KAAK,EAAE;;;;EAM1C"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.441",
4
+ "version": "0.0.449",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -2,23 +2,23 @@
2
2
  <div class="accordion-item">
3
3
  <button
4
4
  @click="toggle()"
5
- :aria-expanded="open ? 'true' : 'false'"
5
+ :aria-expanded="isOpen ? 'true' : 'false'"
6
6
  class="accordion-head"
7
7
  :aria-controls="`accordion-body-${id}`"
8
8
  >
9
9
  <slot name="head" >
10
10
  <span class="accordion-label">{{ label }}</span>
11
11
  </slot>
12
- <div class="accordion-icon" :class="{ open }">
12
+ <div class="accordion-icon" :class="{ open: isOpen }">
13
13
  <MaterialIcon icon="expand_more" />
14
14
  </div>
15
15
  </button>
16
16
  <Transition name="expand">
17
17
  <div
18
- v-if="open"
18
+ v-if="isOpen"
19
19
  class="accordion-body"
20
20
  :id="`accordion-body-${id}`"
21
- :aria-hidden="open ? 'false' : 'true'"
21
+ :aria-hidden="isOpen ? 'false' : 'true'"
22
22
  >
23
23
  <slot />
24
24
  </div>
@@ -28,13 +28,29 @@
28
28
 
29
29
  <script lang="ts" setup>
30
30
  import { MaterialIcon } from '@bagelink/vue';
31
- import { watch, inject } from 'vue';
31
+ import { watch, inject, onMounted } from 'vue';
32
32
 
33
33
  const props = defineProps<{
34
34
  label?: string;
35
35
  id?: string;
36
+ open?: boolean;
36
37
  }>();
37
- let open = $ref(false);
38
+
39
+ const emit = defineEmits(['update:open']);
40
+
41
+ let openVal = $ref(false);
42
+
43
+ let isOpen = $computed({
44
+ get: () => openVal,
45
+ set: (value: boolean) => {
46
+ openVal = value;
47
+ emit('update:open', value);
48
+ },
49
+ });
50
+
51
+ onMounted(() => {
52
+ if (props.open) isOpen = true;
53
+ });
38
54
 
39
55
  const accordionState = inject('accordionState') as { openItem: string | null };
40
56
  const id = props.id || Math.random().toString(36).substring(7);
@@ -42,16 +58,14 @@ const id = props.id || Math.random().toString(36).substring(7);
42
58
  watch(
43
59
  () => accordionState?.openItem,
44
60
  (currentOpenId) => {
45
- if (currentOpenId !== id) {
46
- open = false;
47
- }
61
+ if (currentOpenId !== id) isOpen = false;
48
62
  },
49
63
  { immediate: true },
50
64
  );
51
65
 
52
66
  function toggle() {
53
- open = !open;
54
- if (open && accordionState?.openItem) accordionState.openItem = id;
67
+ isOpen = !isOpen;
68
+ if (isOpen && accordionState?.openItem) accordionState.openItem = id;
55
69
  else if (accordionState?.openItem === id) accordionState.openItem = null;
56
70
  }
57
71
  </script>
@@ -14,58 +14,58 @@
14
14
  dragover: isDragOver,
15
15
  }"
16
16
  >
17
- <slot name="files" :files="storageFiles" :fileQueue>
18
- <template v-for="file in storageFiles" :key="file.id">
19
- <div class="single-image" v-if="!multiple">
20
- <img class="single preview" :src="file.url" alt="" />
17
+ <slot name="files" :files="storageFiles" :fileQueue>
18
+ <template v-for="file in storageFiles" :key="file.id">
19
+ <div class="single-image" v-if="!multiple">
20
+ <img class="single preview" :src="file.url" alt="" >
21
21
  <!-- <p class="no-margin">
22
22
  {{ file.name }}
23
23
  </p> -->
24
- </div>
25
- <div class="multi-image-item previewName" v-if="multiple">
26
- <img class="preview" :src="file.url" alt="" />
27
- <p class="no-margin">
28
- {{ file.name }}
29
- </p>
30
- <Btn
31
- thin
32
- @click.stop="removeFile(file)"
33
- flat
34
- icon="delete"
35
- color="red"
36
- />
37
- </div>
38
- </template>
39
- <template v-for="fileQ in fileQueue" :key="fileQ.file">
40
- <div class="imagePreviewWrap" v-if="!multiple">
41
- <img class="preview" :src="fileToUrl(fileQ.file)" alt="" />
42
- </div>
43
- <div class="previewName">
44
- <img
45
- :width="width || '220'"
46
- v-if="multiple"
47
- class="preview"
48
- :src="fileToUrl(fileQ.file)"
49
- alt=""
50
- />
51
- <p class="no-margin">
52
- {{ fileQ.name }}
53
- </p>
54
- <div
55
- class="pie"
56
- :style="`--p:${fileQ.progress}`"
57
- style="--b: 2px"
58
- :class="{ complete: fileQ.progress === 100 }"
59
- >
60
- <span class="progress" v-if="fileQ.progress < 100">
61
- {{ `${fileQ.progress.toFixed(0)}` }}
62
- </span>
63
- <MaterialIcon class="success" icon="check" />
64
24
  </div>
65
- </div>
66
- </template>
67
- </slot>
68
- <slot v-if="(!storageFiles.length && !fileQueue.length) || multiple" name="placeholder">
25
+ <div class="multi-image-item previewName" v-if="multiple">
26
+ <img class="preview" :src="file.url" alt="" >
27
+ <p class="no-margin">
28
+ {{ file.name }}
29
+ </p>
30
+ <Btn
31
+ thin
32
+ @click.stop="removeFile(file)"
33
+ flat
34
+ icon="delete"
35
+ color="red"
36
+ />
37
+ </div>
38
+ </template>
39
+ <template v-for="fileQ in fileQueue" :key="fileQ.file">
40
+ <div class="imagePreviewWrap" v-if="!multiple">
41
+ <img class="preview" :src="fileToUrl(fileQ.file)" alt="" >
42
+ </div>
43
+ <div class="previewName">
44
+ <img
45
+ :width="width || '220'"
46
+ v-if="multiple"
47
+ class="preview"
48
+ :src="fileToUrl(fileQ.file)"
49
+ alt=""
50
+ >
51
+ <p class="no-margin">
52
+ {{ fileQ.name }}
53
+ </p>
54
+ <div
55
+ class="pie"
56
+ :style="`--p:${fileQ.progress}`"
57
+ style="--b: 2px"
58
+ :class="{ complete: fileQ.progress === 100 }"
59
+ >
60
+ <span class="progress" v-if="fileQ.progress < 100">
61
+ {{ `${fileQ.progress.toFixed(0)}` }}
62
+ </span>
63
+ <MaterialIcon class="success" icon="check" />
64
+ </div>
65
+ </div>
66
+ </template>
67
+ </slot>
68
+ <slot v-if="(!storageFiles.length && !fileQueue.length) || multiple" name="placeholder" :browse>
69
69
  <p>Drop files here or click to upload</p>
70
70
  </slot>
71
71
  </div>
@@ -74,7 +74,9 @@
74
74
 
75
75
  <script setup lang="ts">
76
76
  import { onMounted, watch } from 'vue';
77
- import { Btn, type StorageFile, useBagel, MaterialIcon } from '@bagelink/vue';
77
+ import {
78
+ Btn, type StorageFile, useBagel, MaterialIcon,
79
+ } from '@bagelink/vue';
78
80
 
79
81
  const bagel = useBagel();
80
82
 
@@ -104,8 +106,7 @@ const bindKey: StrKey = props.bindkey || 'id';
104
106
  const file_bindkeys = defineModel<FSValue>('modelValue');
105
107
  const storageFiles = $ref<StorageFile[]>([]);
106
108
 
107
- const compareIds = (v1?: FSValue, v2?: FSValue) =>
108
- [v1].flat().join(',') === [v2].flat().join(',');
109
+ const compareIds = (v1?: FSValue, v2?: FSValue) => [v1].flat().join(',') === [v2].flat().join(',');
109
110
 
110
111
  onMounted(() => {
111
112
  if (!props.files && [file_bindkeys.value].flat().length) {
@@ -190,9 +191,7 @@ const browse = () => {
190
191
  input.onchange = (e: Event) => {
191
192
  const target = e?.target as HTMLInputElement;
192
193
  if (target?.files) {
193
- Array.from(target.files).forEach((file: File) =>
194
- fileQueue.push({ name: file.name, file, progress: 0 }),
195
- );
194
+ Array.from(target.files).forEach((file: File) => fileQueue.push({ name: file.name, file, progress: 0 }));
196
195
  }
197
196
  flushQueue();
198
197
  };
@@ -214,9 +213,7 @@ const dragover = (e: DragEvent) => {
214
213
  const drop = (e: DragEvent) => {
215
214
  preventDefault(e);
216
215
  if (e.dataTransfer) {
217
- Array.from(e.dataTransfer.files).forEach((file: File) =>
218
- fileQueue.push({ name: file.name, file, progress: 0 }),
219
- );
216
+ Array.from(e.dataTransfer.files).forEach((file: File) => fileQueue.push({ name: file.name, file, progress: 0 }));
220
217
  }
221
218
  isDragOver = false;
222
219
  flushQueue();
@@ -296,7 +293,6 @@ img.preview.single{
296
293
  color: var(--bgl-gray);
297
294
  }
298
295
 
299
-
300
296
  .pie {
301
297
  width: 30px;
302
298
  height: 30px;
@@ -39,6 +39,7 @@
39
39
  :required="required"
40
40
  :pattern="pattern"
41
41
  v-bind="nativeInputAttrs"
42
+ @input="updateInputVal"
42
43
  />
43
44
  <p v-if="helptext">{{ helptext }}</p>
44
45
  </label>
@@ -1,3 +1,7 @@
1
+ .opacity-0 {
2
+ opacity: 0;
3
+ }
4
+
1
5
  .opacity-1 {
2
6
  opacity: 0.1;
3
7
  }
@@ -390,9 +394,28 @@
390
394
  color: var(--bgl-green) !important;
391
395
  }
392
396
 
397
+ .cover,
398
+ .object-fit-cover {
399
+ object-fit: cover;
400
+ }
401
+
402
+ .contain,
403
+ .object-fit-contain {
404
+ object-fit: contain;
405
+ }
406
+
407
+ .scale-down,
408
+ .object-fit-scale-down {
409
+ object-fit: scale-down;
410
+ }
411
+
393
412
 
394
413
 
395
414
  @media screen and (max-width: 910px) {
415
+ .m_opacity-0 {
416
+ opacity: 0;
417
+ }
418
+
396
419
  .m_opacity-1 {
397
420
  opacity: 0.1;
398
421
  }
@@ -781,4 +804,19 @@
781
804
  .m_color-input-green input {
782
805
  color: var(--bgl-green) !important;
783
806
  }
807
+
808
+ .m_cover,
809
+ .m_object-fit-cover {
810
+ object-fit: cover;
811
+ }
812
+
813
+ .m_contain,
814
+ .m_object-fit-contain {
815
+ object-fit: contain;
816
+ }
817
+
818
+ .m_scale-down,
819
+ .m_object-fit-scale-down {
820
+ object-fit: scale-down;
821
+ }
784
822
  }
@@ -15,6 +15,10 @@
15
15
  border-radius: var(--btn-border-radius);
16
16
  }
17
17
 
18
+ .rounded {
19
+ border-radius: calc(var(--btn-border-radius) / 2);
20
+ }
21
+
18
22
  .justify-items-center {
19
23
  justify-items: center;
20
24
  }
@@ -105,6 +109,18 @@
105
109
  inset-inline-end: 0px;
106
110
  }
107
111
 
112
+ .position-bottom-start {
113
+ position: absolute;
114
+ bottom: 0px;
115
+ inset-inline-start: 0px;
116
+ }
117
+
118
+ .position-bottom-end {
119
+ position: absolute;
120
+ bottom: 0px;
121
+ inset-inline-end: 0px;
122
+ }
123
+
108
124
  .positioned-full {
109
125
  top: 0;
110
126
  bottom: 0;
@@ -1678,6 +1694,7 @@
1678
1694
  direction: rtl;
1679
1695
  }
1680
1696
 
1697
+
1681
1698
  @media screen and (max-width: 910px) {
1682
1699
  .grid-wrap-2 {
1683
1700
  grid-template-columns: repeat(1, 1fr);
@@ -128,6 +128,18 @@
128
128
  inset-inline-end: 0px;
129
129
  }
130
130
 
131
+ .m_position-bottom-start {
132
+ position: absolute;
133
+ bottom: 0px;
134
+ inset-inline-start: 0px;
135
+ }
136
+
137
+ .m_position-bottom-end {
138
+ position: absolute;
139
+ bottom: 0px;
140
+ inset-inline-end: 0px;
141
+ }
142
+
131
143
  .m_positioned-full {
132
144
  top: 0;
133
145
  bottom: 0;
@@ -135,6 +147,7 @@
135
147
  inset-inline-end: 0;
136
148
  }
137
149
 
150
+
138
151
  .m_auto-flow-rows {
139
152
  grid-auto-flow: row;
140
153
  }
@@ -121,7 +121,15 @@ export function numField(
121
121
  id,
122
122
  label,
123
123
  placeholder: options?.placeholder,
124
- attrs: { type: 'number' },
124
+ helptext: options?.helptext,
125
+ attrs: {
126
+ type: 'number',
127
+ nativeInputAttrs: {
128
+ step: options?.step,
129
+ min: options?.min,
130
+ max: options?.max,
131
+ },
132
+ },
125
133
  };
126
134
  }
127
135