@bagelink/vue 0.0.783 → 0.0.787

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 +1 @@
1
- {"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../src/components/Badge.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAKlD,UAAU,KAAK;IACd,OAAO,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;IACrD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,aAAa,CAAA;IAEtB,UAAU,CAAC,EAAE,aAAa,CAAA;IAC1B,SAAS,CAAC,EAAE,aAAa,CAAA;CACzB;;AA2ED,wBAMG"}
1
+ {"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../src/components/Badge.vue"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAIlD,UAAU,KAAK;IACd,OAAO,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;IACrD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,aAAa,CAAA;IAEtB,UAAU,CAAC,EAAE,aAAa,CAAA;IAC1B,SAAS,CAAC,EAAE,aAAa,CAAA;CACzB;;AA2ED,wBAMG"}
@@ -1 +1 @@
1
- {"version":3,"file":"Pill.vue.d.ts","sourceRoot":"","sources":["../../src/components/Pill.vue"],"names":[],"mappings":"AAsLA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AA8F7D,iBAAS,cAAc;;yBA8GO,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;eA/NR,OAAO;WACX,aAAa;cACV,aAAa;YACf,SAAS;YACT,SAAS;WACV,OAAO;aACL,OAAO;cACN,OAAO;cACP,OAAO;YACT,MAAM;YACN,OAAO;eACJ,OAAO;aACT,OAAO;;eAZL,OAAO;WACX,aAAa;cACV,aAAa;YACf,SAAS;YACT,SAAS;WACV,OAAO;aACL,OAAO;cACN,OAAO;cACP,OAAO;YACT,MAAM;YACN,OAAO;eACJ,OAAO;aACT,OAAO;;cAZL,OAAO;YAMT,OAAO;aACN,OAAO;WAGT,OAAO;aAFL,OAAO;cAGN,OAAO;6EA2NlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Pill.vue.d.ts","sourceRoot":"","sources":["../../src/components/Pill.vue"],"names":[],"mappings":"AAwLA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AA4F7D,iBAAS,cAAc;;yBA8GO,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;eA/NR,OAAO;WACX,aAAa;cACV,aAAa;YACf,SAAS;YACT,SAAS;WACV,OAAO;aACL,OAAO;cACN,OAAO;cACP,OAAO;YACT,MAAM;YACN,OAAO;eACJ,OAAO;aACT,OAAO;;eAZL,OAAO;WACX,aAAa;cACV,aAAa;YACf,SAAS;YACT,SAAS;WACV,OAAO;aACL,OAAO;cACN,OAAO;cACP,OAAO;YACT,MAAM;YACN,OAAO;eACJ,OAAO;aACT,OAAO;;cAZL,OAAO;YAMT,OAAO;aACN,OAAO;WAGT,OAAO;aAFL,OAAO;cAGN,OAAO;6EA2NlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -11,10 +11,7 @@ interface WaterMark {
11
11
  style: string;
12
12
  }
13
13
  type FormatType = 'image/png' | 'image/jpg' | 'image/jpeg' | 'image/svg+xml';
14
- declare function save(format?: FormatType): string | undefined;
15
- declare function undo(): void;
16
- declare function addWaterMark(data: WaterMark): void;
17
- declare const _default: import('vue').DefineComponent<{
14
+ declare let __VLS_typeProps: {
18
15
  sigOption?: SignaturePadOptions;
19
16
  width?: string;
20
17
  height?: string;
@@ -25,25 +22,27 @@ declare const _default: import('vue').DefineComponent<{
25
22
  defaultUrl?: string;
26
23
  format?: FormatType;
27
24
  clearable?: boolean;
28
- }, {
25
+ required?: boolean;
26
+ };
27
+ declare function clear(): void;
28
+ declare function save(format?: FormatType): string | undefined;
29
+ declare function undo(): void;
30
+ declare function addWaterMark(data: WaterMark): void;
31
+ type __VLS_PublicProps = {
32
+ modelValue?: any;
33
+ } & typeof __VLS_typeProps;
34
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
29
35
  save: typeof save;
30
- clear: () => void | undefined;
36
+ clear: typeof clear;
31
37
  isEmpty: () => boolean | undefined;
32
38
  undo: typeof undo;
33
39
  addWaterMark: typeof addWaterMark;
34
40
  fromDataURL: (url: string) => Promise<void> | undefined;
35
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
36
- sigOption?: SignaturePadOptions;
37
- width?: string;
38
- height?: string;
39
- ratio?: number;
40
- clearOnResize?: boolean;
41
- waterMark?: WaterMark;
42
- disabled?: boolean;
43
- defaultUrl?: string;
44
- format?: FormatType;
45
- clearable?: boolean;
46
- }> & Readonly<{}>, {
41
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
42
+ "update:modelValue": (modelValue: any) => any;
43
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
44
+ "onUpdate:modelValue"?: ((modelValue: any) => any) | undefined;
45
+ }>, {
47
46
  clearable: boolean;
48
47
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
49
48
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"SignaturePad.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/SignaturePad.vue"],"names":[],"mappings":"AA+JA,OAAO,KAAK,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAOnE,UAAU,SAAS;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACb;AAED,KAAK,UAAU,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,GAAG,eAAe,CAAA;AAwB5E,iBAAS,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU,sBAGhC;AAKD,iBAAS,IAAI,SAMZ;AAiBD,iBAAS,YAAY,CAAC,IAAI,EAAE,SAAS,QA0BpC;;gBA9EY,mBAAmB;YACvB,MAAM;aACL,MAAM;YACP,MAAM;oBACE,OAAO;gBACX,SAAS;eACV,OAAO;iBACL,MAAM;aACV,UAAU;gBACP,OAAO;;;;;;;uBAiBM,MAAM;;gBA1BnB,mBAAmB;YACvB,MAAM;aACL,MAAM;YACP,MAAM;oBACE,OAAO;gBACX,SAAS;eACV,OAAO;iBACL,MAAM;aACV,UAAU;gBACP,OAAO;;eAAP,OAAO;;AAuMpB,wBAQG"}
1
+ {"version":3,"file":"SignaturePad.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/SignaturePad.vue"],"names":[],"mappings":"AAiMA,OAAO,KAAK,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAInE,UAAU,SAAS;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACb;AAED,KAAK,UAAU,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,GAAG,eAAe,CAAA;AAE5E,QAAA,IAAI,eAAe,EAAG;IACrB,SAAS,CAAC,EAAE,mBAAmB,CAAA;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAaF,iBAAS,KAAK,SAIb;AAED,iBAAS,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU,sBAGhC;AAKD,iBAAS,IAAI,SAMZ;AAiBD,iBAAS,YAAY,CAAC,IAAI,EAAE,SAAS,QA0BpC;AA6DD,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,GAAG,OAAO,eAAe,CAAC;;;;;;;uBAnHD,MAAM;;;;;;eA1BnB,OAAO;;AAyOpB,wBASG"}
@@ -1 +1 @@
1
- {"version":3,"file":"Lightbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/Lightbox.vue"],"names":[],"mappings":"AA0PA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AASpD,iBAAS,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,UAAU,GAAE,YAAY,EAAO,QAOhE;AAED,iBAAS,KAAK,SAGb;;;;;AA0bD,wBAMG"}
1
+ {"version":3,"file":"Lightbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/Lightbox.vue"],"names":[],"mappings":"AA4PA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AASpD,iBAAS,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,UAAU,GAAE,YAAY,EAAO,QAOhE;AAED,iBAAS,KAAK,SAGb;;;;;AA6bD,wBAMG"}
package/dist/index.cjs CHANGED
@@ -55,7 +55,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
55
55
  }
56
56
  });
57
57
  const _hoisted_1$K = { class: "accordion-item" };
58
- const _hoisted_2$u = ["aria-expanded", "aria-controls"];
58
+ const _hoisted_2$v = ["aria-expanded", "aria-controls"];
59
59
  const _hoisted_3$l = { class: "accordion-label" };
60
60
  const _hoisted_4$f = ["id", "aria-hidden"];
61
61
  const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
@@ -110,7 +110,7 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
110
110
  }, [
111
111
  vue.createVNode(vue.unref(_sfc_main$c), { icon: "expand_more" })
112
112
  ], 2)
113
- ], 8, _hoisted_2$u),
113
+ ], 8, _hoisted_2$v),
114
114
  vue.createVNode(vue.Transition, { name: "expand" }, {
115
115
  default: vue.withCtx(() => [
116
116
  vue.unref(isOpen) ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -199,7 +199,7 @@ const _hoisted_1$I = {
199
199
  key: 0,
200
200
  class: "loading"
201
201
  };
202
- const _hoisted_2$t = {
202
+ const _hoisted_2$u = {
203
203
  key: 1,
204
204
  class: "bgl_btn-flex"
205
205
  };
@@ -297,7 +297,7 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
297
297
  onClick: vue.withModifiers(_ctx.onClick, ["stop"])
298
298
  }, {
299
299
  default: vue.withCtx(() => [
300
- _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$t, [
300
+ _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$u, [
301
301
  _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$c), {
302
302
  key: 0,
303
303
  icon: _ctx.icon
@@ -319,7 +319,7 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
319
319
  });
320
320
  const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-047c9778"]]);
321
321
  const _hoisted_1$H = ["dismissable"];
322
- const _hoisted_2$s = { class: "m-0" };
322
+ const _hoisted_2$t = { class: "m-0" };
323
323
  const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
324
324
  __name: "Alert",
325
325
  props: {
@@ -348,7 +348,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
348
348
  size: 2,
349
349
  color: color2[_ctx.type]
350
350
  }, null, 8, ["icon", "color"])) : vue.createCommentVNode("", true),
351
- vue.createElementVNode("p", _hoisted_2$s, vue.toDisplayString(_ctx.message), 1),
351
+ vue.createElementVNode("p", _hoisted_2$t, vue.toDisplayString(_ctx.message), 1),
352
352
  vue.createVNode(Btn, {
353
353
  flat: "",
354
354
  thin: "",
@@ -420,9 +420,9 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
420
420
  };
421
421
  }
422
422
  });
423
- const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-8fddd646"]]);
423
+ const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-40a0b03a"]]);
424
424
  const _hoisted_1$F = ["src"];
425
- const _hoisted_2$r = ["src", "autoplay", "muted", "loop", "controls"];
425
+ const _hoisted_2$s = ["src", "autoplay", "muted", "loop", "controls"];
426
426
  const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
427
427
  __name: "BglVideo",
428
428
  props: {
@@ -487,7 +487,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
487
487
  style: vue.normalizeStyle({ aspectRatio: aspectRatio.value }),
488
488
  controls: _ctx.controls,
489
489
  playsinline: ""
490
- }, null, 12, _hoisted_2$r)) : vue.createCommentVNode("", true)
490
+ }, null, 12, _hoisted_2$s)) : vue.createCommentVNode("", true)
491
491
  ], 2);
492
492
  };
493
493
  }
@@ -537,7 +537,7 @@ const _hoisted_1$D = {
537
537
  key: 0,
538
538
  class: "blocker"
539
539
  };
540
- const _hoisted_2$q = { class: "Handlers" };
540
+ const _hoisted_2$r = { class: "Handlers" };
541
541
  const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
542
542
  __name: "Carousel",
543
543
  props: {
@@ -689,7 +689,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
689
689
  vue.unref(isDragging) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D)) : vue.createCommentVNode("", true),
690
690
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
691
691
  ], 34),
692
- vue.createElementVNode("div", _hoisted_2$q, [
692
+ vue.createElementVNode("div", _hoisted_2$r, [
693
693
  vue.createElementVNode("span", { onClick: prev }, [
694
694
  vue.renderSlot(_ctx.$slots, "prev", {
695
695
  prev,
@@ -6652,7 +6652,7 @@ const _hoisted_1$C = {
6652
6652
  key: 0,
6653
6653
  class: "layer-hover-bar"
6654
6654
  };
6655
- const _hoisted_2$p = ["x", "y", "width", "height"];
6655
+ const _hoisted_2$q = ["x", "y", "width", "height"];
6656
6656
  function render$e(_ctx, _cache, $props, $setup, $data, $options) {
6657
6657
  return _ctx.mouse.hover ? (vue.openBlock(), vue.createElementBlock("g", _hoisted_1$C, [
6658
6658
  vue.createElementVNode("rect", vue.mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
@@ -6660,7 +6660,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
6660
6660
  y: _ctx.bar.y,
6661
6661
  width: _ctx.bar.width > 0 ? _ctx.bar.width : 0,
6662
6662
  height: _ctx.bar.height > 0 ? _ctx.bar.height : 0
6663
- }), null, 16, _hoisted_2$p)
6663
+ }), null, 16, _hoisted_2$q)
6664
6664
  ])) : vue.createCommentVNode("v-if", true);
6665
6665
  }
6666
6666
  script.render = render$e;
@@ -6810,7 +6810,7 @@ const _hoisted_1$B = {
6810
6810
  key: 0,
6811
6811
  class: "data"
6812
6812
  };
6813
- const _hoisted_2$o = {
6813
+ const _hoisted_2$p = {
6814
6814
  key: 0,
6815
6815
  class: "data-row m_py-05"
6816
6816
  };
@@ -6872,7 +6872,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
6872
6872
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
6873
6873
  key: field.id
6874
6874
  }, [
6875
- vue.unref(iffer)(field, itemData.value) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$o, [
6875
+ vue.unref(iffer)(field, itemData.value) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$p, [
6876
6876
  vue.createElementVNode("div", _hoisted_3$j, [
6877
6877
  vue.createElementVNode("p", _hoisted_4$d, vue.toDisplayString((field == null ? void 0 : field.label) || vue.unref(keyToLabel)(field.id)), 1)
6878
6878
  ]),
@@ -9909,7 +9909,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
9909
9909
  });
9910
9910
  const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-73f1d9ad"]]);
9911
9911
  const _hoisted_1$y = ["title"];
9912
- const _hoisted_2$n = ["id", "value", "required"];
9912
+ const _hoisted_2$o = ["id", "value", "required"];
9913
9913
  const _hoisted_3$i = ["for"];
9914
9914
  const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
9915
9915
  __name: "CheckInput",
@@ -9945,7 +9945,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
9945
9945
  required: _ctx.required,
9946
9946
  type: "checkbox",
9947
9947
  class: "me-05"
9948
- }, null, 8, _hoisted_2$n), [
9948
+ }, null, 8, _hoisted_2$o), [
9949
9949
  [vue.vModelCheckbox, checked.value]
9950
9950
  ]),
9951
9951
  vue.createElementVNode("label", { for: inputId.value }, [
@@ -9959,7 +9959,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
9959
9959
  });
9960
9960
  const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-1b4d18c6"]]);
9961
9961
  const _hoisted_1$x = ["title"];
9962
- const _hoisted_2$m = ["id", "placeholder", "required"];
9962
+ const _hoisted_2$n = ["id", "placeholder", "required"];
9963
9963
  const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
9964
9964
  __name: "ColorPicker",
9965
9965
  props: {
@@ -9998,7 +9998,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
9998
9998
  placeholder: _ctx.placeholder || _ctx.label,
9999
9999
  class: { "no-edit": !_ctx.editMode },
10000
10000
  required: _ctx.required
10001
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_2$m), [
10001
+ }, _ctx.nativeInputAttrs), null, 16, _hoisted_2$n), [
10002
10002
  [vue.vModelText, inputVal.value]
10003
10003
  ])
10004
10004
  ])
@@ -18446,7 +18446,7 @@ Object.entries(go).forEach(([e, t]) => {
18446
18446
  e !== "default" && (Hn[e] = t);
18447
18447
  });
18448
18448
  const _hoisted_1$w = ["title"];
18449
- const _hoisted_2$l = { key: 0 };
18449
+ const _hoisted_2$m = { key: 0 };
18450
18450
  const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
18451
18451
  __name: "DateInput",
18452
18452
  props: {
@@ -18489,7 +18489,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
18489
18489
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
18490
18490
  title: _ctx.label
18491
18491
  }, [
18492
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$l, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
18492
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$m, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
18493
18493
  vue.createVNode(vue.unref(Hn), vue.mergeProps({
18494
18494
  ref_key: "datePicker",
18495
18495
  ref: datePicker,
@@ -18510,7 +18510,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
18510
18510
  }
18511
18511
  });
18512
18512
  const _hoisted_1$v = { class: "datetime-wrap" };
18513
- const _hoisted_2$k = { class: "date-wrap" };
18513
+ const _hoisted_2$l = { class: "date-wrap" };
18514
18514
  const _hoisted_3$h = {
18515
18515
  key: 0,
18516
18516
  class: "time-wrap"
@@ -18546,7 +18546,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
18546
18546
  });
18547
18547
  return (_ctx, _cache) => {
18548
18548
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [
18549
- vue.createElementVNode("div", _hoisted_2$k, [
18549
+ vue.createElementVNode("div", _hoisted_2$l, [
18550
18550
  vue.createVNode(vue.unref(Hn), vue.mergeProps({
18551
18551
  modelValue: selectedDate.value,
18552
18552
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedDate.value = $event),
@@ -18587,7 +18587,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
18587
18587
  }
18588
18588
  });
18589
18589
  const _hoisted_1$u = { class: "bagel-input" };
18590
- const _hoisted_2$j = {
18590
+ const _hoisted_2$k = {
18591
18591
  key: 0,
18592
18592
  class: "bgl-multi-preview"
18593
18593
  };
@@ -18777,7 +18777,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
18777
18777
  files: storageFiles.value,
18778
18778
  fileQueue: fileQueue.value
18779
18779
  }, () => [
18780
- _ctx.multiple ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$j, [
18780
+ _ctx.multiple ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$k, [
18781
18781
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(storageFiles.value, (file) => {
18782
18782
  return vue.openBlock(), vue.createElementBlock("div", {
18783
18783
  key: file.id,
@@ -18902,7 +18902,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
18902
18902
  });
18903
18903
  const $el = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-be593d04"]]);
18904
18904
  const _hoisted_1$t = ["title"];
18905
- const _hoisted_2$i = { key: 0 };
18905
+ const _hoisted_2$j = { key: 0 };
18906
18906
  const _hoisted_3$f = ["value", "placeholder"];
18907
18907
  const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
18908
18908
  __name: "JSONInput",
@@ -18927,7 +18927,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
18927
18927
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
18928
18928
  title: _ctx.description
18929
18929
  }, [
18930
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$i, [
18930
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$j, [
18931
18931
  vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
18932
18932
  ])) : vue.createCommentVNode("", true),
18933
18933
  vue.createElementVNode("textarea", {
@@ -19003,7 +19003,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
19003
19003
  }
19004
19004
  });
19005
19005
  const _hoisted_1$r = ["for"];
19006
- const _hoisted_2$h = ["id", "name", "value"];
19006
+ const _hoisted_2$i = ["id", "name", "value"];
19007
19007
  const _hoisted_3$e = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
19008
19008
  const _hoisted_4$a = ["src", "alt"];
19009
19009
  const _hoisted_5$9 = { class: "" };
@@ -19043,7 +19043,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
19043
19043
  type: "radio",
19044
19044
  name: _ctx.groupName,
19045
19045
  value: opt.value
19046
- }, null, 8, _hoisted_2$h), [
19046
+ }, null, 8, _hoisted_2$i), [
19047
19047
  [vue.vModelRadio, selectedOption.value]
19048
19048
  ]),
19049
19049
  vue.createElementVNode("div", _hoisted_3$e, [
@@ -19076,7 +19076,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
19076
19076
  });
19077
19077
  const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-3e9e030f"]]);
19078
19078
  const _hoisted_1$q = { class: "bagel-input" };
19079
- const _hoisted_2$g = { class: "pb-025" };
19079
+ const _hoisted_2$h = { class: "pb-025" };
19080
19080
  const _hoisted_3$d = { class: "flex gap-05 flex-wrap" };
19081
19081
  const _hoisted_4$9 = ["id", "name", "value", "checked"];
19082
19082
  const _hoisted_5$8 = ["for"];
@@ -19122,7 +19122,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
19122
19122
  });
19123
19123
  return (_ctx, _cache) => {
19124
19124
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [
19125
- vue.createElementVNode("label", _hoisted_2$g, vue.toDisplayString(_ctx.label), 1),
19125
+ vue.createElementVNode("label", _hoisted_2$h, vue.toDisplayString(_ctx.label), 1),
19126
19126
  vue.createElementVNode("div", _hoisted_3$d, [
19127
19127
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (option2, index2) => {
19128
19128
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -42967,7 +42967,7 @@ vue.defineComponent({
42967
42967
  }
42968
42968
  });
42969
42969
  const _hoisted_1$p = { class: "RichText" };
42970
- const _hoisted_2$f = {
42970
+ const _hoisted_2$g = {
42971
42971
  key: 0,
42972
42972
  class: "RichText-tools"
42973
42973
  };
@@ -43197,7 +43197,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
43197
43197
  return (_ctx, _cache) => {
43198
43198
  const _directive_tooltip = vue.resolveDirective("tooltip");
43199
43199
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [
43200
- vue.unref(editor) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$f, [
43200
+ vue.unref(editor) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$g, [
43201
43201
  (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(config, (item) => {
43202
43202
  var _a2;
43203
43203
  return vue.withDirectives(vue.createVNode(vue.unref(Btn), {
@@ -43391,7 +43391,7 @@ function createTable() {
43391
43391
  }
43392
43392
  }
43393
43393
  const _hoisted_1$o = { class: "flex gap-05" };
43394
- const _hoisted_2$e = ["disabled"];
43394
+ const _hoisted_2$f = ["disabled"];
43395
43395
  const _hoisted_3$c = { key: 1 };
43396
43396
  const _hoisted_4$8 = {
43397
43397
  key: 2,
@@ -43578,7 +43578,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
43578
43578
  key: 3,
43579
43579
  thin: ""
43580
43580
  }, { icon: vue.unref(open) ? "unfold_less" : "unfold_more" }), null, 16)) : vue.createCommentVNode("", true)
43581
- ], 42, _hoisted_2$e),
43581
+ ], 42, _hoisted_2$f),
43582
43582
  _ctx.required ? (vue.openBlock(), vue.createElementBlock("input", {
43583
43583
  key: 0,
43584
43584
  tabindex: "-1",
@@ -43711,7 +43711,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
43711
43711
  }
43712
43712
  });
43713
43713
  const _hoisted_1$m = { class: "rich-text-editor rounded pt-05 px-1 pb-1" };
43714
- const _hoisted_2$d = { class: "editor-container flex flex-stretch gap-1 m_column" };
43714
+ const _hoisted_2$e = { class: "editor-container flex flex-stretch gap-1 m_column" };
43715
43715
  const _hoisted_3$b = { class: "content-area radius-05 p-1 shadow-light w-100 grid" };
43716
43716
  const _hoisted_4$7 = {
43717
43717
  key: 0,
@@ -43849,7 +43849,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
43849
43849
  config: config.value,
43850
43850
  onAction: handleToolbarAction
43851
43851
  }, null, 8, ["config"]),
43852
- vue.createElementVNode("div", _hoisted_2$d, [
43852
+ vue.createElementVNode("div", _hoisted_2$e, [
43853
43853
  vue.createElementVNode("div", _hoisted_3$b, [
43854
43854
  vue.unref(isCodeView) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("textarea", {
43855
43855
  key: 0,
@@ -44471,9 +44471,16 @@ class SignaturePad extends SignatureEventTarget {
44471
44471
  }
44472
44472
  }
44473
44473
  const _hoisted_1$l = ["disabled"];
44474
+ const _hoisted_2$d = {
44475
+ key: 1,
44476
+ placeholder: "required",
44477
+ type: "text",
44478
+ required: "",
44479
+ class: "pixel"
44480
+ };
44474
44481
  const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
44475
44482
  __name: "SignaturePad",
44476
- props: {
44483
+ props: /* @__PURE__ */ vue.mergeModels({
44477
44484
  sigOption: {},
44478
44485
  width: {},
44479
44486
  height: {},
@@ -44483,16 +44490,25 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
44483
44490
  disabled: { type: Boolean },
44484
44491
  defaultUrl: {},
44485
44492
  format: {},
44486
- clearable: { type: Boolean, default: true }
44487
- },
44493
+ clearable: { type: Boolean, default: true },
44494
+ required: { type: Boolean }
44495
+ }, {
44496
+ "modelValue": {},
44497
+ "modelModifiers": {}
44498
+ }),
44499
+ emits: ["update:modelValue"],
44488
44500
  setup(__props, { expose: __expose }) {
44489
44501
  const props2 = __props;
44502
+ const sigData = vue.useModel(__props, "modelValue");
44490
44503
  const vCanvas = vue.ref();
44491
44504
  let sig = vue.ref();
44492
- const clear = () => {
44505
+ let _isEmpty = vue.ref(true);
44506
+ function clear() {
44493
44507
  var _a2;
44494
- return (_a2 = sig.value) == null ? void 0 : _a2.clear();
44495
- };
44508
+ (_a2 = sig.value) == null ? void 0 : _a2.clear();
44509
+ _isEmpty.value = true;
44510
+ sigData.value = void 0;
44511
+ }
44496
44512
  function save2(format2) {
44497
44513
  var _a2, _b;
44498
44514
  format2 = format2 || props2.format;
@@ -44554,6 +44570,12 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
44554
44570
  }
44555
44571
  }
44556
44572
  }
44573
+ function onEndStroke() {
44574
+ var _a2;
44575
+ _isEmpty.value = ((_a2 = sig.value) == null ? void 0 : _a2.isEmpty()) ?? false;
44576
+ const data2 = save2();
44577
+ sigData.value = data2;
44578
+ }
44557
44579
  function draw() {
44558
44580
  const canvas = vCanvas.value;
44559
44581
  sig.value = new SignaturePad(canvas, signatureOptions.value);
@@ -44574,8 +44596,14 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
44574
44596
  resizeCanvas(canvas);
44575
44597
  if (props2.disabled) sig.value.off();
44576
44598
  else sig.value.on();
44599
+ _isEmpty.value = sig.value.isEmpty();
44600
+ sig.value.addEventListener("endStroke", onEndStroke);
44577
44601
  }
44578
44602
  vue.onMounted(draw);
44603
+ vue.onUnmounted(() => {
44604
+ var _a2;
44605
+ (_a2 = sig.value) == null ? void 0 : _a2.removeEventListener("endStroke", onEndStroke);
44606
+ });
44579
44607
  __expose({
44580
44608
  save: save2,
44581
44609
  clear,
@@ -44603,7 +44631,8 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
44603
44631
  ref: vCanvas,
44604
44632
  class: "canvas",
44605
44633
  disabled: _ctx.disabled
44606
- }, null, 8, _hoisted_1$l)
44634
+ }, null, 8, _hoisted_1$l),
44635
+ _ctx.required && vue.unref(_isEmpty) ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_2$d)) : vue.createCommentVNode("", true)
44607
44636
  ], 34);
44608
44637
  };
44609
44638
  }
@@ -53239,8 +53268,8 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
53239
53268
  },
53240
53269
  setup(__props) {
53241
53270
  vue.useCssVars((_ctx) => ({
53242
- "8b25051e": computedBackgroundColor.value,
53243
- "359c0d0c": cumputedTextColor.value
53271
+ "4d2f98bb": computedBackgroundColor.value,
53272
+ "1dbee7d6": cumputedTextColor.value
53244
53273
  }));
53245
53274
  const props2 = __props;
53246
53275
  const slots = vue.useSlots();
@@ -53332,7 +53361,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
53332
53361
  };
53333
53362
  }
53334
53363
  });
53335
- const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-9d8b229e"]]);
53364
+ const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-95cf3171"]]);
53336
53365
  const _sfc_main$5 = {};
53337
53366
  function _sfc_render$1(_ctx, _cache) {
53338
53367
  const _component_router_view = vue.resolveComponent("router-view");
@@ -54707,6 +54736,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
54707
54736
  function clickOutside2() {
54708
54737
  if (zoom.value === 1) close2();
54709
54738
  }
54739
+ const upgradeHeaders = (url) => url.replace(/http:\/\//, "//");
54710
54740
  __expose({ open, close: close2 });
54711
54741
  return (_ctx, _cache) => {
54712
54742
  return vue.openBlock(), vue.createBlock(vue.Transition, { name: "fade" }, {
@@ -54789,7 +54819,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
54789
54819
  flat: "",
54790
54820
  icon: "download",
54791
54821
  value: "Download File",
54792
- href: (_f = vue.unref(currentItem)) == null ? void 0 : _f.src,
54822
+ href: upgradeHeaders((_f = vue.unref(currentItem)) == null ? void 0 : _f.src),
54793
54823
  download: ""
54794
54824
  }, null, 8, ["href"])) : vue.createCommentVNode("", true),
54795
54825
  !((_g = vue.unref(currentItem)) == null ? void 0 : _g.openFile) && !((_h = vue.unref(currentItem)) == null ? void 0 : _h.download) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4)) : vue.createCommentVNode("", true)
@@ -54864,7 +54894,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
54864
54894
  };
54865
54895
  }
54866
54896
  });
54867
- const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-08816ae4"]]);
54897
+ const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-993af46d"]]);
54868
54898
  const groups = {};
54869
54899
  const lightboxDirective = {
54870
54900
  mounted(el, binding) {
package/dist/index.mjs CHANGED
@@ -53,7 +53,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
53
53
  }
54
54
  });
55
55
  const _hoisted_1$K = { class: "accordion-item" };
56
- const _hoisted_2$u = ["aria-expanded", "aria-controls"];
56
+ const _hoisted_2$v = ["aria-expanded", "aria-controls"];
57
57
  const _hoisted_3$l = { class: "accordion-label" };
58
58
  const _hoisted_4$f = ["id", "aria-hidden"];
59
59
  const _sfc_main$V = /* @__PURE__ */ defineComponent({
@@ -108,7 +108,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
108
108
  }, [
109
109
  createVNode(unref(_sfc_main$c), { icon: "expand_more" })
110
110
  ], 2)
111
- ], 8, _hoisted_2$u),
111
+ ], 8, _hoisted_2$v),
112
112
  createVNode(Transition, { name: "expand" }, {
113
113
  default: withCtx(() => [
114
114
  unref(isOpen) ? (openBlock(), createElementBlock("div", {
@@ -197,7 +197,7 @@ const _hoisted_1$I = {
197
197
  key: 0,
198
198
  class: "loading"
199
199
  };
200
- const _hoisted_2$t = {
200
+ const _hoisted_2$u = {
201
201
  key: 1,
202
202
  class: "bgl_btn-flex"
203
203
  };
@@ -295,7 +295,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
295
295
  onClick: withModifiers(_ctx.onClick, ["stop"])
296
296
  }, {
297
297
  default: withCtx(() => [
298
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$I)) : (openBlock(), createElementBlock("div", _hoisted_2$t, [
298
+ _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$I)) : (openBlock(), createElementBlock("div", _hoisted_2$u, [
299
299
  _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$c), {
300
300
  key: 0,
301
301
  icon: _ctx.icon
@@ -317,7 +317,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
317
317
  });
318
318
  const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-047c9778"]]);
319
319
  const _hoisted_1$H = ["dismissable"];
320
- const _hoisted_2$s = { class: "m-0" };
320
+ const _hoisted_2$t = { class: "m-0" };
321
321
  const _sfc_main$S = /* @__PURE__ */ defineComponent({
322
322
  __name: "Alert",
323
323
  props: {
@@ -346,7 +346,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
346
346
  size: 2,
347
347
  color: color2[_ctx.type]
348
348
  }, null, 8, ["icon", "color"])) : createCommentVNode("", true),
349
- createElementVNode("p", _hoisted_2$s, toDisplayString(_ctx.message), 1),
349
+ createElementVNode("p", _hoisted_2$t, toDisplayString(_ctx.message), 1),
350
350
  createVNode(Btn, {
351
351
  flat: "",
352
352
  thin: "",
@@ -418,9 +418,9 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
418
418
  };
419
419
  }
420
420
  });
421
- const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-8fddd646"]]);
421
+ const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-40a0b03a"]]);
422
422
  const _hoisted_1$F = ["src"];
423
- const _hoisted_2$r = ["src", "autoplay", "muted", "loop", "controls"];
423
+ const _hoisted_2$s = ["src", "autoplay", "muted", "loop", "controls"];
424
424
  const _sfc_main$P = /* @__PURE__ */ defineComponent({
425
425
  __name: "BglVideo",
426
426
  props: {
@@ -485,7 +485,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
485
485
  style: normalizeStyle({ aspectRatio: aspectRatio.value }),
486
486
  controls: _ctx.controls,
487
487
  playsinline: ""
488
- }, null, 12, _hoisted_2$r)) : createCommentVNode("", true)
488
+ }, null, 12, _hoisted_2$s)) : createCommentVNode("", true)
489
489
  ], 2);
490
490
  };
491
491
  }
@@ -535,7 +535,7 @@ const _hoisted_1$D = {
535
535
  key: 0,
536
536
  class: "blocker"
537
537
  };
538
- const _hoisted_2$q = { class: "Handlers" };
538
+ const _hoisted_2$r = { class: "Handlers" };
539
539
  const _sfc_main$N = /* @__PURE__ */ defineComponent({
540
540
  __name: "Carousel",
541
541
  props: {
@@ -687,7 +687,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
687
687
  unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$D)) : createCommentVNode("", true),
688
688
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
689
689
  ], 34),
690
- createElementVNode("div", _hoisted_2$q, [
690
+ createElementVNode("div", _hoisted_2$r, [
691
691
  createElementVNode("span", { onClick: prev }, [
692
692
  renderSlot(_ctx.$slots, "prev", {
693
693
  prev,
@@ -6650,7 +6650,7 @@ const _hoisted_1$C = {
6650
6650
  key: 0,
6651
6651
  class: "layer-hover-bar"
6652
6652
  };
6653
- const _hoisted_2$p = ["x", "y", "width", "height"];
6653
+ const _hoisted_2$q = ["x", "y", "width", "height"];
6654
6654
  function render$e(_ctx, _cache, $props, $setup, $data, $options) {
6655
6655
  return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$C, [
6656
6656
  createElementVNode("rect", mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
@@ -6658,7 +6658,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
6658
6658
  y: _ctx.bar.y,
6659
6659
  width: _ctx.bar.width > 0 ? _ctx.bar.width : 0,
6660
6660
  height: _ctx.bar.height > 0 ? _ctx.bar.height : 0
6661
- }), null, 16, _hoisted_2$p)
6661
+ }), null, 16, _hoisted_2$q)
6662
6662
  ])) : createCommentVNode("v-if", true);
6663
6663
  }
6664
6664
  script.render = render$e;
@@ -6808,7 +6808,7 @@ const _hoisted_1$B = {
6808
6808
  key: 0,
6809
6809
  class: "data"
6810
6810
  };
6811
- const _hoisted_2$o = {
6811
+ const _hoisted_2$p = {
6812
6812
  key: 0,
6813
6813
  class: "data-row m_py-05"
6814
6814
  };
@@ -6870,7 +6870,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6870
6870
  return openBlock(), createElementBlock(Fragment$1, {
6871
6871
  key: field.id
6872
6872
  }, [
6873
- unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$o, [
6873
+ unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$p, [
6874
6874
  createElementVNode("div", _hoisted_3$j, [
6875
6875
  createElementVNode("p", _hoisted_4$d, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
6876
6876
  ]),
@@ -9907,7 +9907,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
9907
9907
  });
9908
9908
  const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-73f1d9ad"]]);
9909
9909
  const _hoisted_1$y = ["title"];
9910
- const _hoisted_2$n = ["id", "value", "required"];
9910
+ const _hoisted_2$o = ["id", "value", "required"];
9911
9911
  const _hoisted_3$i = ["for"];
9912
9912
  const _sfc_main$E = /* @__PURE__ */ defineComponent({
9913
9913
  __name: "CheckInput",
@@ -9943,7 +9943,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
9943
9943
  required: _ctx.required,
9944
9944
  type: "checkbox",
9945
9945
  class: "me-05"
9946
- }, null, 8, _hoisted_2$n), [
9946
+ }, null, 8, _hoisted_2$o), [
9947
9947
  [vModelCheckbox, checked.value]
9948
9948
  ]),
9949
9949
  createElementVNode("label", { for: inputId.value }, [
@@ -9957,7 +9957,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
9957
9957
  });
9958
9958
  const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-1b4d18c6"]]);
9959
9959
  const _hoisted_1$x = ["title"];
9960
- const _hoisted_2$m = ["id", "placeholder", "required"];
9960
+ const _hoisted_2$n = ["id", "placeholder", "required"];
9961
9961
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
9962
9962
  __name: "ColorPicker",
9963
9963
  props: {
@@ -9996,7 +9996,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
9996
9996
  placeholder: _ctx.placeholder || _ctx.label,
9997
9997
  class: { "no-edit": !_ctx.editMode },
9998
9998
  required: _ctx.required
9999
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_2$m), [
9999
+ }, _ctx.nativeInputAttrs), null, 16, _hoisted_2$n), [
10000
10000
  [vModelText, inputVal.value]
10001
10001
  ])
10002
10002
  ])
@@ -18444,7 +18444,7 @@ Object.entries(go).forEach(([e, t]) => {
18444
18444
  e !== "default" && (Hn[e] = t);
18445
18445
  });
18446
18446
  const _hoisted_1$w = ["title"];
18447
- const _hoisted_2$l = { key: 0 };
18447
+ const _hoisted_2$m = { key: 0 };
18448
18448
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
18449
18449
  __name: "DateInput",
18450
18450
  props: {
@@ -18487,7 +18487,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
18487
18487
  class: normalizeClass(["bagel-input", { small: _ctx.small }]),
18488
18488
  title: _ctx.label
18489
18489
  }, [
18490
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$l, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
18490
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$m, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
18491
18491
  createVNode(unref(Hn), mergeProps({
18492
18492
  ref_key: "datePicker",
18493
18493
  ref: datePicker,
@@ -18508,7 +18508,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
18508
18508
  }
18509
18509
  });
18510
18510
  const _hoisted_1$v = { class: "datetime-wrap" };
18511
- const _hoisted_2$k = { class: "date-wrap" };
18511
+ const _hoisted_2$l = { class: "date-wrap" };
18512
18512
  const _hoisted_3$h = {
18513
18513
  key: 0,
18514
18514
  class: "time-wrap"
@@ -18544,7 +18544,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
18544
18544
  });
18545
18545
  return (_ctx, _cache) => {
18546
18546
  return openBlock(), createElementBlock("div", _hoisted_1$v, [
18547
- createElementVNode("div", _hoisted_2$k, [
18547
+ createElementVNode("div", _hoisted_2$l, [
18548
18548
  createVNode(unref(Hn), mergeProps({
18549
18549
  modelValue: selectedDate.value,
18550
18550
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedDate.value = $event),
@@ -18585,7 +18585,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
18585
18585
  }
18586
18586
  });
18587
18587
  const _hoisted_1$u = { class: "bagel-input" };
18588
- const _hoisted_2$j = {
18588
+ const _hoisted_2$k = {
18589
18589
  key: 0,
18590
18590
  class: "bgl-multi-preview"
18591
18591
  };
@@ -18775,7 +18775,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
18775
18775
  files: storageFiles.value,
18776
18776
  fileQueue: fileQueue.value
18777
18777
  }, () => [
18778
- _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$j, [
18778
+ _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$k, [
18779
18779
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(storageFiles.value, (file) => {
18780
18780
  return openBlock(), createElementBlock("div", {
18781
18781
  key: file.id,
@@ -18900,7 +18900,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
18900
18900
  });
18901
18901
  const $el = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-be593d04"]]);
18902
18902
  const _hoisted_1$t = ["title"];
18903
- const _hoisted_2$i = { key: 0 };
18903
+ const _hoisted_2$j = { key: 0 };
18904
18904
  const _hoisted_3$f = ["value", "placeholder"];
18905
18905
  const _sfc_main$z = /* @__PURE__ */ defineComponent({
18906
18906
  __name: "JSONInput",
@@ -18925,7 +18925,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
18925
18925
  class: normalizeClass(["bagel-input", { small: _ctx.small }]),
18926
18926
  title: _ctx.description
18927
18927
  }, [
18928
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$i, [
18928
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$j, [
18929
18929
  createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
18930
18930
  ])) : createCommentVNode("", true),
18931
18931
  createElementVNode("textarea", {
@@ -19001,7 +19001,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
19001
19001
  }
19002
19002
  });
19003
19003
  const _hoisted_1$r = ["for"];
19004
- const _hoisted_2$h = ["id", "name", "value"];
19004
+ const _hoisted_2$i = ["id", "name", "value"];
19005
19005
  const _hoisted_3$e = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
19006
19006
  const _hoisted_4$a = ["src", "alt"];
19007
19007
  const _hoisted_5$9 = { class: "" };
@@ -19041,7 +19041,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
19041
19041
  type: "radio",
19042
19042
  name: _ctx.groupName,
19043
19043
  value: opt.value
19044
- }, null, 8, _hoisted_2$h), [
19044
+ }, null, 8, _hoisted_2$i), [
19045
19045
  [vModelRadio, selectedOption.value]
19046
19046
  ]),
19047
19047
  createElementVNode("div", _hoisted_3$e, [
@@ -19074,7 +19074,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
19074
19074
  });
19075
19075
  const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-3e9e030f"]]);
19076
19076
  const _hoisted_1$q = { class: "bagel-input" };
19077
- const _hoisted_2$g = { class: "pb-025" };
19077
+ const _hoisted_2$h = { class: "pb-025" };
19078
19078
  const _hoisted_3$d = { class: "flex gap-05 flex-wrap" };
19079
19079
  const _hoisted_4$9 = ["id", "name", "value", "checked"];
19080
19080
  const _hoisted_5$8 = ["for"];
@@ -19120,7 +19120,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
19120
19120
  });
19121
19121
  return (_ctx, _cache) => {
19122
19122
  return openBlock(), createElementBlock("div", _hoisted_1$q, [
19123
- createElementVNode("label", _hoisted_2$g, toDisplayString(_ctx.label), 1),
19123
+ createElementVNode("label", _hoisted_2$h, toDisplayString(_ctx.label), 1),
19124
19124
  createElementVNode("div", _hoisted_3$d, [
19125
19125
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.options, (option2, index2) => {
19126
19126
  return openBlock(), createElementBlock("div", {
@@ -42965,7 +42965,7 @@ defineComponent({
42965
42965
  }
42966
42966
  });
42967
42967
  const _hoisted_1$p = { class: "RichText" };
42968
- const _hoisted_2$f = {
42968
+ const _hoisted_2$g = {
42969
42969
  key: 0,
42970
42970
  class: "RichText-tools"
42971
42971
  };
@@ -43195,7 +43195,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
43195
43195
  return (_ctx, _cache) => {
43196
43196
  const _directive_tooltip = resolveDirective("tooltip");
43197
43197
  return openBlock(), createElementBlock("div", _hoisted_1$p, [
43198
- unref(editor) ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
43198
+ unref(editor) ? (openBlock(), createElementBlock("div", _hoisted_2$g, [
43199
43199
  (openBlock(), createElementBlock(Fragment$1, null, renderList(config, (item) => {
43200
43200
  var _a2;
43201
43201
  return withDirectives(createVNode(unref(Btn), {
@@ -43389,7 +43389,7 @@ function createTable() {
43389
43389
  }
43390
43390
  }
43391
43391
  const _hoisted_1$o = { class: "flex gap-05" };
43392
- const _hoisted_2$e = ["disabled"];
43392
+ const _hoisted_2$f = ["disabled"];
43393
43393
  const _hoisted_3$c = { key: 1 };
43394
43394
  const _hoisted_4$8 = {
43395
43395
  key: 2,
@@ -43576,7 +43576,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
43576
43576
  key: 3,
43577
43577
  thin: ""
43578
43578
  }, { icon: unref(open) ? "unfold_less" : "unfold_more" }), null, 16)) : createCommentVNode("", true)
43579
- ], 42, _hoisted_2$e),
43579
+ ], 42, _hoisted_2$f),
43580
43580
  _ctx.required ? (openBlock(), createElementBlock("input", {
43581
43581
  key: 0,
43582
43582
  tabindex: "-1",
@@ -43709,7 +43709,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
43709
43709
  }
43710
43710
  });
43711
43711
  const _hoisted_1$m = { class: "rich-text-editor rounded pt-05 px-1 pb-1" };
43712
- const _hoisted_2$d = { class: "editor-container flex flex-stretch gap-1 m_column" };
43712
+ const _hoisted_2$e = { class: "editor-container flex flex-stretch gap-1 m_column" };
43713
43713
  const _hoisted_3$b = { class: "content-area radius-05 p-1 shadow-light w-100 grid" };
43714
43714
  const _hoisted_4$7 = {
43715
43715
  key: 0,
@@ -43847,7 +43847,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
43847
43847
  config: config.value,
43848
43848
  onAction: handleToolbarAction
43849
43849
  }, null, 8, ["config"]),
43850
- createElementVNode("div", _hoisted_2$d, [
43850
+ createElementVNode("div", _hoisted_2$e, [
43851
43851
  createElementVNode("div", _hoisted_3$b, [
43852
43852
  unref(isCodeView) ? withDirectives((openBlock(), createElementBlock("textarea", {
43853
43853
  key: 0,
@@ -44469,9 +44469,16 @@ class SignaturePad extends SignatureEventTarget {
44469
44469
  }
44470
44470
  }
44471
44471
  const _hoisted_1$l = ["disabled"];
44472
+ const _hoisted_2$d = {
44473
+ key: 1,
44474
+ placeholder: "required",
44475
+ type: "text",
44476
+ required: "",
44477
+ class: "pixel"
44478
+ };
44472
44479
  const _sfc_main$r = /* @__PURE__ */ defineComponent({
44473
44480
  __name: "SignaturePad",
44474
- props: {
44481
+ props: /* @__PURE__ */ mergeModels({
44475
44482
  sigOption: {},
44476
44483
  width: {},
44477
44484
  height: {},
@@ -44481,16 +44488,25 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
44481
44488
  disabled: { type: Boolean },
44482
44489
  defaultUrl: {},
44483
44490
  format: {},
44484
- clearable: { type: Boolean, default: true }
44485
- },
44491
+ clearable: { type: Boolean, default: true },
44492
+ required: { type: Boolean }
44493
+ }, {
44494
+ "modelValue": {},
44495
+ "modelModifiers": {}
44496
+ }),
44497
+ emits: ["update:modelValue"],
44486
44498
  setup(__props, { expose: __expose }) {
44487
44499
  const props2 = __props;
44500
+ const sigData = useModel(__props, "modelValue");
44488
44501
  const vCanvas = ref();
44489
44502
  let sig = ref();
44490
- const clear = () => {
44503
+ let _isEmpty = ref(true);
44504
+ function clear() {
44491
44505
  var _a2;
44492
- return (_a2 = sig.value) == null ? void 0 : _a2.clear();
44493
- };
44506
+ (_a2 = sig.value) == null ? void 0 : _a2.clear();
44507
+ _isEmpty.value = true;
44508
+ sigData.value = void 0;
44509
+ }
44494
44510
  function save2(format2) {
44495
44511
  var _a2, _b;
44496
44512
  format2 = format2 || props2.format;
@@ -44552,6 +44568,12 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
44552
44568
  }
44553
44569
  }
44554
44570
  }
44571
+ function onEndStroke() {
44572
+ var _a2;
44573
+ _isEmpty.value = ((_a2 = sig.value) == null ? void 0 : _a2.isEmpty()) ?? false;
44574
+ const data2 = save2();
44575
+ sigData.value = data2;
44576
+ }
44555
44577
  function draw() {
44556
44578
  const canvas = vCanvas.value;
44557
44579
  sig.value = new SignaturePad(canvas, signatureOptions.value);
@@ -44572,8 +44594,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
44572
44594
  resizeCanvas(canvas);
44573
44595
  if (props2.disabled) sig.value.off();
44574
44596
  else sig.value.on();
44597
+ _isEmpty.value = sig.value.isEmpty();
44598
+ sig.value.addEventListener("endStroke", onEndStroke);
44575
44599
  }
44576
44600
  onMounted(draw);
44601
+ onUnmounted(() => {
44602
+ var _a2;
44603
+ (_a2 = sig.value) == null ? void 0 : _a2.removeEventListener("endStroke", onEndStroke);
44604
+ });
44577
44605
  __expose({
44578
44606
  save: save2,
44579
44607
  clear,
@@ -44601,7 +44629,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
44601
44629
  ref: vCanvas,
44602
44630
  class: "canvas",
44603
44631
  disabled: _ctx.disabled
44604
- }, null, 8, _hoisted_1$l)
44632
+ }, null, 8, _hoisted_1$l),
44633
+ _ctx.required && unref(_isEmpty) ? (openBlock(), createElementBlock("input", _hoisted_2$d)) : createCommentVNode("", true)
44605
44634
  ], 34);
44606
44635
  };
44607
44636
  }
@@ -53237,8 +53266,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
53237
53266
  },
53238
53267
  setup(__props) {
53239
53268
  useCssVars((_ctx) => ({
53240
- "8b25051e": computedBackgroundColor.value,
53241
- "359c0d0c": cumputedTextColor.value
53269
+ "4d2f98bb": computedBackgroundColor.value,
53270
+ "1dbee7d6": cumputedTextColor.value
53242
53271
  }));
53243
53272
  const props2 = __props;
53244
53273
  const slots = useSlots();
@@ -53330,7 +53359,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
53330
53359
  };
53331
53360
  }
53332
53361
  });
53333
- const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-9d8b229e"]]);
53362
+ const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-95cf3171"]]);
53334
53363
  const _sfc_main$5 = {};
53335
53364
  function _sfc_render$1(_ctx, _cache) {
53336
53365
  const _component_router_view = resolveComponent("router-view");
@@ -54705,6 +54734,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54705
54734
  function clickOutside2() {
54706
54735
  if (zoom.value === 1) close2();
54707
54736
  }
54737
+ const upgradeHeaders = (url) => url.replace(/http:\/\//, "//");
54708
54738
  __expose({ open, close: close2 });
54709
54739
  return (_ctx, _cache) => {
54710
54740
  return openBlock(), createBlock(Transition, { name: "fade" }, {
@@ -54787,7 +54817,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54787
54817
  flat: "",
54788
54818
  icon: "download",
54789
54819
  value: "Download File",
54790
- href: (_f = unref(currentItem)) == null ? void 0 : _f.src,
54820
+ href: upgradeHeaders((_f = unref(currentItem)) == null ? void 0 : _f.src),
54791
54821
  download: ""
54792
54822
  }, null, 8, ["href"])) : createCommentVNode("", true),
54793
54823
  !((_g = unref(currentItem)) == null ? void 0 : _g.openFile) && !((_h = unref(currentItem)) == null ? void 0 : _h.download) ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("", true)
@@ -54862,7 +54892,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54862
54892
  };
54863
54893
  }
54864
54894
  });
54865
- const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-08816ae4"]]);
54895
+ const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-993af46d"]]);
54866
54896
  const groups = {};
54867
54897
  const lightboxDirective = {
54868
54898
  mounted(el, binding) {
package/dist/style.css CHANGED
@@ -233,7 +233,7 @@ display: block;
233
233
  object-fit: cover;
234
234
  }
235
235
 
236
- .inline[data-v-8fddd646] {
236
+ .inline[data-v-40a0b03a] {
237
237
  display: inline;
238
238
  }
239
239
 
@@ -1311,6 +1311,15 @@ p {
1311
1311
  width: 100%;
1312
1312
  height: 100%;
1313
1313
  }
1314
+ .pixel {
1315
+ width: 0;
1316
+ height: 0;
1317
+ overflow: hidden;
1318
+ outline: none;
1319
+ position: absolute;
1320
+ bottom: 0;
1321
+ left: 50%;
1322
+ }
1314
1323
  .bgl_input.signature-pad {
1315
1324
  background: var(--input-bg);
1316
1325
  border: none;
@@ -3064,25 +3073,25 @@ svg.leaflet-image-layer.leaflet-interactive path {
3064
3073
  }
3065
3074
  }
3066
3075
 
3067
- .bgl_pill-btn[data-v-9d8b229e]{
3076
+ .bgl_pill-btn[data-v-95cf3171]{
3068
3077
  color: var(--pill-btn-color);
3069
3078
  background: var(--pill-btn-bg);
3070
3079
  width: calc(var(--pill-height) / 1.25)!important;
3071
3080
  height: calc(var(--pill-height) / 1.25)!important;
3072
3081
  }
3073
- .loading[data-v-9d8b229e] {
3082
+ .loading[data-v-95cf3171] {
3074
3083
  border: 1px solid var(--bgl-light-text);
3075
3084
  border-bottom: 2px solid var(--bgl-light-text);
3076
- animation: spin-9d8b229e 1s linear infinite;
3085
+ animation: spin-95cf3171 1s linear infinite;
3077
3086
  border-radius: 100px;
3078
3087
  width: 1rem;
3079
3088
  height: 1rem;
3080
3089
  margin: auto;
3081
3090
  }
3082
- .bgl_flatPill .loading[data-v-9d8b229e] {
3091
+ .bgl_flatPill .loading[data-v-95cf3171] {
3083
3092
  border-bottom: 2px solid var(--bgl-text-color);
3084
3093
  }
3085
- @keyframes spin-9d8b229e {
3094
+ @keyframes spin-95cf3171 {
3086
3095
  0% {
3087
3096
  transform: rotate(0deg);
3088
3097
  }
@@ -3090,11 +3099,11 @@ svg.leaflet-image-layer.leaflet-interactive path {
3090
3099
  transform: rotate(360deg);
3091
3100
  }
3092
3101
  }
3093
- .bgl_pill[data-v-9d8b229e] {
3102
+ .bgl_pill[data-v-95cf3171] {
3094
3103
  padding-inline: 0.25rem;
3095
3104
  transition: var(--bgl-transition);
3096
- background-color: var(--8b25051e);
3097
- color: var(--359c0d0c);
3105
+ background-color: var(--4d2f98bb);
3106
+ color: var(--1dbee7d6);
3098
3107
  display: inline-block;
3099
3108
  margin-inline-end: 0.25rem;
3100
3109
  border-radius: var(--pill-border-radius);
@@ -3102,26 +3111,26 @@ svg.leaflet-image-layer.leaflet-interactive path {
3102
3111
  vertical-align: middle;
3103
3112
  margin-bottom: 0.25rem;
3104
3113
  }
3105
- .bgl_pill[disabled="true"][data-v-9d8b229e] {
3114
+ .bgl_pill[disabled="true"][data-v-95cf3171] {
3106
3115
  opacity: 0.5;
3107
3116
  cursor: not-allowed;
3108
3117
  }
3109
- .bgl_pill-flex[data-v-9d8b229e] {
3118
+ .bgl_pill-flex[data-v-95cf3171] {
3110
3119
  display: flex;
3111
3120
  align-items: center;
3112
3121
  gap: 0.25rem;
3113
3122
  justify-content: center;
3114
3123
  height: 100%;
3115
3124
  }
3116
- .bgl_pill.bgl_flatPill[data-v-9d8b229e] {
3125
+ .bgl_pill.bgl_flatPill[data-v-95cf3171] {
3117
3126
  background: transparent;
3118
3127
  }
3119
- .bgl_pill.round[data-v-9d8b229e] {
3128
+ .bgl_pill.round[data-v-95cf3171] {
3120
3129
  border-radius: 1000px;
3121
3130
  }
3122
- .bgl_pill-border[data-v-9d8b229e] {
3123
- outline: 1px solid var(--8b25051e);
3124
- color: var(--8b25051e);
3131
+ .bgl_pill-border[data-v-95cf3171] {
3132
+ outline: 1px solid var(--4d2f98bb);
3133
+ color: var(--4d2f98bb);
3125
3134
  background: transparent;
3126
3135
  }
3127
3136
 
@@ -3366,19 +3375,19 @@ tbody tr[data-v-c4b111dc]:hover {
3366
3375
  -moz-user-drag: none;
3367
3376
  }
3368
3377
 
3369
- .lightbox-image[data-v-08816ae4]{
3378
+ .lightbox-image[data-v-993af46d]{
3370
3379
  object-fit: contain;
3371
3380
  }
3372
- .bgl-lightbox-overlay[data-v-08816ae4] {
3381
+ .bgl-lightbox-overlay[data-v-993af46d] {
3373
3382
  background: rgba(0, 0, 0, 0.8);
3374
3383
  }
3375
- .bgl-lightbox[data-v-08816ae4] {
3384
+ .bgl-lightbox[data-v-993af46d] {
3376
3385
  max-height: 90%;
3377
3386
  }
3378
- .bgl-lightbox-item[data-v-08816ae4]{
3379
- animation: 500ms ease bgl-lightbox-load-08816ae4;
3387
+ .bgl-lightbox-item[data-v-993af46d]{
3388
+ animation: 500ms ease bgl-lightbox-load-993af46d;
3380
3389
  }
3381
- @keyframes bgl-lightbox-load-08816ae4 {
3390
+ @keyframes bgl-lightbox-load-993af46d {
3382
3391
  from {
3383
3392
  scale:0.7;
3384
3393
  }
@@ -3386,32 +3395,32 @@ to {
3386
3395
  scale:1;
3387
3396
  }
3388
3397
  }
3389
- .bgl-lightbox-item[data-v-08816ae4] * {
3398
+ .bgl-lightbox-item[data-v-993af46d] * {
3390
3399
  max-width: 90%;
3391
3400
  max-height: calc(80vh - 90px);
3392
3401
  border-radius: 3px;
3393
3402
  margin: auto;
3394
- animation: 200ms ease bgl-lightbox-load-08816ae4;
3403
+ animation: 200ms ease bgl-lightbox-load-993af46d;
3395
3404
  }
3396
- .navigation[data-v-08816ae4] {
3405
+ .navigation[data-v-993af46d] {
3397
3406
  top: 50%;
3398
3407
  transform: translateY(-50%);
3399
3408
  }
3400
- .navigation-btn[data-v-08816ae4] {
3409
+ .navigation-btn[data-v-993af46d] {
3401
3410
  width: var(--input-height);
3402
3411
  height: var(--input-height);
3403
3412
  }
3404
- .thumbnail[data-v-08816ae4] {
3413
+ .thumbnail[data-v-993af46d] {
3405
3414
  height: 50px;
3406
3415
  width: 50px;
3407
3416
  }
3408
- .thumbnail[data-v-08816ae4]:hover {
3417
+ .thumbnail[data-v-993af46d]:hover {
3409
3418
  opacity: 1;
3410
3419
  }
3411
- .thumbnail[data-v-08816ae4]:active {
3420
+ .thumbnail[data-v-993af46d]:active {
3412
3421
  opacity: 0.8;
3413
3422
  }
3414
- .thumbnail.active[data-v-08816ae4] {
3423
+ .thumbnail.active[data-v-993af46d] {
3415
3424
  opacity: 1;
3416
3425
  outline: 2px solid white;
3417
3426
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.783",
4
+ "version": "0.0.787",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import type { MaterialIcons } from '@bagelink/vue'
3
2
  import { Icon } from '@bagelink/vue'
3
+ import type { MaterialIcons } from '@bagelink/vue'
4
4
 
5
5
  interface Props {
6
6
  'color'?: 'green' | 'red' | 'blue' | 'light' | 'gray'
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
- import type { MaterialIcons, ThemeType } from '@bagelink/vue'
3
2
  import { Btn, MaterialIcon } from '@bagelink/vue'
4
3
  import { useSlots } from 'vue'
4
+ import type { MaterialIcons, ThemeType } from '@bagelink/vue'
5
5
 
6
6
  const props = withDefaults(
7
7
  defineProps<{
@@ -1,8 +1,8 @@
1
1
  <script setup lang="ts">
2
- import type { Options as SignaturePadOptions } from 'signature_pad'
3
2
  import { Btn } from '@bagelink/vue'
4
3
  import SignaturePad from 'signature_pad'
5
- import { onMounted, watch } from 'vue'
4
+ import { onMounted, onUnmounted, watch } from 'vue'
5
+ import type { Options as SignaturePadOptions } from 'signature_pad'
6
6
 
7
7
  interface WaterMark {
8
8
  text: string
@@ -29,15 +29,24 @@ const props = withDefaults(defineProps<{
29
29
  defaultUrl?: string
30
30
  format?: FormatType
31
31
  clearable?: boolean
32
+ required?: boolean
32
33
  }>(), {
33
34
  clearable: true,
34
35
  })
35
36
 
37
+ const sigData = defineModel()
38
+
36
39
  const vCanvas = $ref<HTMLCanvasElement>()
37
40
 
38
41
  let sig = $ref<SignaturePad>()
39
42
 
40
- const clear = () => sig?.clear()
43
+ let _isEmpty = $ref<boolean>(true)
44
+
45
+ function clear() {
46
+ sig?.clear()
47
+ _isEmpty = true
48
+ sigData.value = undefined
49
+ }
41
50
 
42
51
  function save(format?: FormatType) {
43
52
  format = format || props.format
@@ -98,6 +107,12 @@ function addWaterMark(data: WaterMark) {
98
107
  }
99
108
  }
100
109
 
110
+ function onEndStroke() {
111
+ _isEmpty = sig?.isEmpty() ?? false
112
+ const data = save()
113
+ sigData.value = data
114
+ }
115
+
101
116
  function draw() {
102
117
  const canvas = vCanvas!
103
118
  sig = new SignaturePad(canvas, signatureOptions)
@@ -116,9 +131,14 @@ function draw() {
116
131
  resizeCanvas(canvas)
117
132
  if (props.disabled) sig.off()
118
133
  else sig.on()
134
+ _isEmpty = sig.isEmpty()
135
+ sig.addEventListener('endStroke', onEndStroke)
119
136
  }
120
137
 
121
138
  onMounted(draw)
139
+ onUnmounted(() => {
140
+ sig?.removeEventListener('endStroke', onEndStroke)
141
+ })
122
142
 
123
143
  defineExpose({
124
144
  save,
@@ -134,6 +154,7 @@ defineExpose({
134
154
  <div class="bgl_input signature-pad relative" :class="{ 'bg-transparent': disabled }" @touchmove.prevent>
135
155
  <Btn v-if="clearable && !disabled" flat thin icon="refresh" class="position-bottom-end" @click="clear" />
136
156
  <canvas ref="vCanvas" class="canvas" :disabled />
157
+ <input v-if="required && _isEmpty" placeholder="required" type="text" required class="pixel">
137
158
  </div>
138
159
  </template>
139
160
 
@@ -143,6 +164,16 @@ defineExpose({
143
164
  height: 100%;
144
165
  }
145
166
 
167
+ .pixel {
168
+ width: 0;
169
+ height: 0;
170
+ overflow: hidden;
171
+ outline: none;
172
+ position: absolute;
173
+ bottom: 0;
174
+ left: 50%;
175
+ }
176
+
146
177
  .bgl_input.signature-pad {
147
178
  background: var(--input-bg);
148
179
  border: none;
@@ -69,6 +69,8 @@ function clickOutside() {
69
69
  if (zoom === 1) close()
70
70
  }
71
71
 
72
+ const upgradeHeaders = (url: string) => url.replace(/http:\/\//, '//')
73
+
72
74
  defineExpose({ open, close })
73
75
  </script>
74
76
 
@@ -112,7 +114,7 @@ defineExpose({ open, close })
112
114
  <Btn
113
115
  v-if="currentItem?.download" class="color-white" round thin flat icon="download"
114
116
  value="Download File"
115
- :href="currentItem?.src"
117
+ :href="upgradeHeaders(currentItem?.src)"
116
118
  download
117
119
  />
118
120
  <div v-if="!currentItem?.openFile && !currentItem?.download" />