@bagelink/vue 0.0.740 → 0.0.742

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -5181,7 +5181,7 @@ const _hoisted_1$P = {
5181
5181
  key: 0,
5182
5182
  class: "navigation flex space-between px-3 w-100 absolute"
5183
5183
  };
5184
- const _hoisted_2$C = { class: "bgl-lightbox-item" };
5184
+ const _hoisted_2$B = { class: "bgl-lightbox-item" };
5185
5185
  const _hoisted_3$q = ["src"];
5186
5186
  const _hoisted_4$i = ["src", "title"];
5187
5187
  const _hoisted_5$g = {
@@ -5286,7 +5286,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
5286
5286
  icon: "close",
5287
5287
  onClick: close2
5288
5288
  }),
5289
- createElementVNode("div", _hoisted_2$C, [
5289
+ createElementVNode("div", _hoisted_2$B, [
5290
5290
  ((_a2 = unref(currentItem)) == null ? void 0 : _a2.type) === "image" ? (openBlock(), createElementBlock("img", {
5291
5291
  key: 0,
5292
5292
  src: (_b = unref(currentItem)) == null ? void 0 : _b.src,
@@ -5762,29 +5762,32 @@ const ModalPlugin = {
5762
5762
  const hideModal = (index2) => {
5763
5763
  modalStack.value.splice(index2, 1);
5764
5764
  };
5765
- const modalConfirm = async (options) => new Promise(
5766
- (resolve) => {
5767
- if (typeof options === "string") options = { title: "", message: options };
5765
+ const confirmModal = (options) => {
5766
+ return new Promise((resolve) => {
5767
+ const confirmOptions = typeof options === "string" ? { title: "", message: options } : options;
5768
5768
  modalStack.value.push({
5769
- modalOptions: { ...options, resolve },
5770
- modalType: "confirm",
5769
+ modalOptions: { ...confirmOptions, resolve },
5770
+ modalType: "confirmModal",
5771
5771
  componentSlots: {}
5772
5772
  });
5773
- }
5774
- );
5773
+ });
5774
+ };
5775
5775
  const showModal = (modalType, options, slots = {}) => {
5776
- modalStack.value.push({
5776
+ const modalComponent = {
5777
5777
  modalOptions: options,
5778
5778
  modalType,
5779
5779
  componentSlots: slots
5780
- });
5781
- if (modalType === "modalForm") return modalStack.value.at(-1);
5782
- return modalStack.value.at(-1);
5780
+ };
5781
+ modalStack.value.push(modalComponent);
5782
+ if (modalType === "modalForm") {
5783
+ return modalComponent;
5784
+ }
5785
+ return modalComponent;
5783
5786
  };
5784
5787
  app.provide(ModalSymbol, {
5785
5788
  showModal: (options, slots) => showModal("modal", options, slots),
5786
5789
  showModalForm: (options, slots) => showModal("modalForm", options, slots),
5787
- confirmModal: async (userOptions) => modalConfirm(userOptions),
5790
+ confirmModal: (options) => confirmModal(options),
5788
5791
  hideModal: (index2 = modalStack.value.length - 1) => {
5789
5792
  hideModal(index2);
5790
5793
  }
@@ -5800,13 +5803,14 @@ const ModalPlugin = {
5800
5803
  hideModal(index2);
5801
5804
  }
5802
5805
  };
5803
- if (modal.modalType === "modalForm") {
5804
- return h$2(ModalForm, props2, modal.componentSlots);
5805
- }
5806
- if (modal.modalType === "confirm") {
5807
- return h$2(_sfc_main$x, props2, {});
5806
+ switch (modal.modalType) {
5807
+ case "modalForm":
5808
+ return h$2(ModalForm, props2, modal.componentSlots);
5809
+ case "confirmModal":
5810
+ return h$2(_sfc_main$x, props2, {});
5811
+ default:
5812
+ return h$2(_sfc_main$P, props2, modal.componentSlots);
5808
5813
  }
5809
- return h$2(_sfc_main$P, props2, modal.componentSlots);
5810
5814
  });
5811
5815
  }
5812
5816
  });
@@ -5851,7 +5855,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
5851
5855
  }
5852
5856
  });
5853
5857
  const _hoisted_1$O = { class: "full-nav" };
5854
- const _hoisted_2$B = { class: "nav-scroll" };
5858
+ const _hoisted_2$A = { class: "nav-scroll" };
5855
5859
  const _hoisted_3$p = { class: "nav-links-wrapper" };
5856
5860
  const _hoisted_4$h = { class: "tooltip" };
5857
5861
  const _hoisted_5$f = { class: "bot-buttons-wrapper" };
@@ -5887,7 +5891,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
5887
5891
  })
5888
5892
  ], 32),
5889
5893
  createElementVNode("div", _hoisted_1$O, [
5890
- createElementVNode("div", _hoisted_2$B, [
5894
+ createElementVNode("div", _hoisted_2$A, [
5891
5895
  createElementVNode("div", _hoisted_3$p, [
5892
5896
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
5893
5897
  return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
@@ -5942,7 +5946,7 @@ const _hoisted_1$N = {
5942
5946
  key: 0,
5943
5947
  class: "loading"
5944
5948
  };
5945
- const _hoisted_2$A = {
5949
+ const _hoisted_2$z = {
5946
5950
  key: 1,
5947
5951
  class: "bgl_btn-flex"
5948
5952
  };
@@ -6040,7 +6044,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
6040
6044
  onClick: withModifiers(_ctx.onClick, ["stop"])
6041
6045
  }, {
6042
6046
  default: withCtx(() => [
6043
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$N)) : (openBlock(), createElementBlock("div", _hoisted_2$A, [
6047
+ _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$N)) : (openBlock(), createElementBlock("div", _hoisted_2$z, [
6044
6048
  _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$S), {
6045
6049
  key: 0,
6046
6050
  icon: _ctx.icon
@@ -6065,7 +6069,7 @@ const _hoisted_1$M = {
6065
6069
  key: 0,
6066
6070
  class: "tool-bar"
6067
6071
  };
6068
- const _hoisted_2$z = {
6072
+ const _hoisted_2$y = {
6069
6073
  key: 1,
6070
6074
  class: "sticky bg-popup z-index-999 -mt-1 -ms-1 px-025 h-30px pt-025 modal-no-title"
6071
6075
  };
@@ -6152,7 +6156,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
6152
6156
  tag: "h3",
6153
6157
  label: _ctx.title
6154
6158
  }, null, 8, ["label"])) : createCommentVNode("", true)
6155
- ])) : (openBlock(), createElementBlock("div", _hoisted_2$z, [
6159
+ ])) : (openBlock(), createElementBlock("div", _hoisted_2$y, [
6156
6160
  createVNode(unref(Btn), {
6157
6161
  class: "position-start",
6158
6162
  icon: "close",
@@ -6296,7 +6300,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
6296
6300
  });
6297
6301
  const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-083a1b2d"]]);
6298
6302
  const _hoisted_1$L = { class: "accordion-item" };
6299
- const _hoisted_2$y = ["aria-expanded", "aria-controls"];
6303
+ const _hoisted_2$x = ["aria-expanded", "aria-controls"];
6300
6304
  const _hoisted_3$n = { class: "accordion-label" };
6301
6305
  const _hoisted_4$g = ["id", "aria-hidden"];
6302
6306
  const _sfc_main$N = /* @__PURE__ */ defineComponent({
@@ -6351,7 +6355,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
6351
6355
  }, [
6352
6356
  createVNode(unref(_sfc_main$S), { icon: "expand_more" })
6353
6357
  ], 2)
6354
- ], 8, _hoisted_2$y),
6358
+ ], 8, _hoisted_2$x),
6355
6359
  createVNode(Transition, { name: "expand" }, {
6356
6360
  default: withCtx(() => [
6357
6361
  unref(isOpen) ? (openBlock(), createElementBlock("div", {
@@ -6372,11 +6376,11 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
6372
6376
  const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-f87b579d"]]);
6373
6377
  const _sfc_main$M = {};
6374
6378
  const _hoisted_1$K = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0" };
6375
- const _hoisted_2$x = { class: "p-1" };
6379
+ const _hoisted_2$w = { class: "p-1" };
6376
6380
  const _hoisted_3$m = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
6377
6381
  function _sfc_render$2(_ctx, _cache) {
6378
6382
  return openBlock(), createElementBlock("div", _hoisted_1$K, [
6379
- createElementVNode("div", _hoisted_2$x, [
6383
+ createElementVNode("div", _hoisted_2$w, [
6380
6384
  renderSlot(_ctx.$slots, "header")
6381
6385
  ]),
6382
6386
  createElementVNode("div", _hoisted_3$m, [
@@ -6386,7 +6390,7 @@ function _sfc_render$2(_ctx, _cache) {
6386
6390
  }
6387
6391
  const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$2]]);
6388
6392
  const _hoisted_1$J = { class: "no-margin ellipsis line-height-14 pb-025" };
6389
- const _hoisted_2$w = { class: "txt12 no-margin txt-gray ellipsis" };
6393
+ const _hoisted_2$v = { class: "txt12 no-margin txt-gray ellipsis" };
6390
6394
  const _sfc_main$L = /* @__PURE__ */ defineComponent({
6391
6395
  __name: "ListItem",
6392
6396
  props: {
@@ -6425,7 +6429,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6425
6429
  createTextVNode(toDisplayString(_ctx.title) + " ", 1),
6426
6430
  renderSlot(_ctx.$slots, "default")
6427
6431
  ]),
6428
- createElementVNode("p", _hoisted_2$w, [
6432
+ createElementVNode("p", _hoisted_2$v, [
6429
6433
  createTextVNode(toDisplayString(_ctx.subtitle) + " ", 1),
6430
6434
  renderSlot(_ctx.$slots, "subtitle")
6431
6435
  ])
@@ -6437,7 +6441,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6437
6441
  }
6438
6442
  });
6439
6443
  const _hoisted_1$I = { class: "page-top" };
6440
- const _hoisted_2$v = { class: "top-title m-0" };
6444
+ const _hoisted_2$u = { class: "top-title m-0" };
6441
6445
  const _sfc_main$K = /* @__PURE__ */ defineComponent({
6442
6446
  __name: "PageTitle",
6443
6447
  props: {
@@ -6449,7 +6453,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
6449
6453
  setup(__props) {
6450
6454
  return (_ctx, _cache) => {
6451
6455
  return openBlock(), createElementBlock("div", _hoisted_1$I, [
6452
- createElementVNode("h1", _hoisted_2$v, [
6456
+ createElementVNode("h1", _hoisted_2$u, [
6453
6457
  renderSlot(_ctx.$slots, "default"),
6454
6458
  createTextVNode(" " + toDisplayString(__props.value), 1)
6455
6459
  ])
@@ -6776,9 +6780,9 @@ const _hoisted_1$H = {
6776
6780
  key: 0,
6777
6781
  class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
6778
6782
  };
6779
- const _hoisted_2$u = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1));
6783
+ const _hoisted_2$t = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1));
6780
6784
  const _hoisted_3$l = [
6781
- _hoisted_2$u
6785
+ _hoisted_2$t
6782
6786
  ];
6783
6787
  const _hoisted_4$f = { class: "infinite-wrapper" };
6784
6788
  const _hoisted_5$e = { class: "row first-row" };
@@ -7044,7 +7048,7 @@ const _hoisted_1$F = {
7044
7048
  key: 0,
7045
7049
  class: "data"
7046
7050
  };
7047
- const _hoisted_2$t = {
7051
+ const _hoisted_2$s = {
7048
7052
  key: 0,
7049
7053
  class: "data-row m_py-05"
7050
7054
  };
@@ -7106,7 +7110,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
7106
7110
  return openBlock(), createElementBlock(Fragment$1, {
7107
7111
  key: field.id
7108
7112
  }, [
7109
- unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$t, [
7113
+ unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$s, [
7110
7114
  createElementVNode("div", _hoisted_3$k, [
7111
7115
  createElementVNode("p", _hoisted_4$e, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
7112
7116
  ]),
@@ -7202,12 +7206,12 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
7202
7206
  }, null, 8, _hoisted_1$D)) : (openBlock(), createElementBlock("p", {
7203
7207
  key: 1,
7204
7208
  style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
7205
- }, toDisplayString(_ctx.fallback || unref(initials)(_ctx.name || "")), 5))
7209
+ }, toDisplayString((_ctx.fallback || unref(initials)(_ctx.name || "")).toUpperCase()), 5))
7206
7210
  ], 4);
7207
7211
  };
7208
7212
  }
7209
7213
  });
7210
- const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-dd2f6734"]]);
7214
+ const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-46ad8c25"]]);
7211
7215
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
7212
7216
  __name: "Title",
7213
7217
  props: {
@@ -7251,7 +7255,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
7251
7255
  }
7252
7256
  });
7253
7257
  const _hoisted_1$C = ["dismissable"];
7254
- const _hoisted_2$s = { class: "m-0" };
7258
+ const _hoisted_2$r = { class: "m-0" };
7255
7259
  const _sfc_main$B = /* @__PURE__ */ defineComponent({
7256
7260
  __name: "Alert",
7257
7261
  props: {
@@ -7280,7 +7284,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
7280
7284
  size: 2,
7281
7285
  color: color2[_ctx.type]
7282
7286
  }, null, 8, ["icon", "color"])) : createCommentVNode("", true),
7283
- createElementVNode("p", _hoisted_2$s, toDisplayString(_ctx.message), 1),
7287
+ createElementVNode("p", _hoisted_2$r, toDisplayString(_ctx.message), 1),
7284
7288
  createVNode(Btn, {
7285
7289
  flat: "",
7286
7290
  thin: "",
@@ -7326,7 +7330,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
7326
7330
  });
7327
7331
  const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-40a0b03a"]]);
7328
7332
  const _hoisted_1$B = ["src"];
7329
- const _hoisted_2$r = ["src", "autoplay", "muted", "loop", "controls"];
7333
+ const _hoisted_2$q = ["src", "autoplay", "muted", "loop", "controls"];
7330
7334
  const _sfc_main$z = /* @__PURE__ */ defineComponent({
7331
7335
  __name: "BglVideo",
7332
7336
  props: {
@@ -7391,7 +7395,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
7391
7395
  style: normalizeStyle({ aspectRatio: aspectRatio.value }),
7392
7396
  controls: _ctx.controls,
7393
7397
  playsinline: ""
7394
- }, null, 12, _hoisted_2$r)) : createCommentVNode("", true)
7398
+ }, null, 12, _hoisted_2$q)) : createCommentVNode("", true)
7395
7399
  ], 2);
7396
7400
  };
7397
7401
  }
@@ -7401,7 +7405,7 @@ const _hoisted_1$A = {
7401
7405
  key: 0,
7402
7406
  class: "blocker"
7403
7407
  };
7404
- const _hoisted_2$q = { class: "Handlers" };
7408
+ const _hoisted_2$p = { class: "Handlers" };
7405
7409
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
7406
7410
  __name: "Carousel",
7407
7411
  props: {
@@ -7553,7 +7557,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
7553
7557
  unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$A)) : createCommentVNode("", true),
7554
7558
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
7555
7559
  ], 34),
7556
- createElementVNode("div", _hoisted_2$q, [
7560
+ createElementVNode("div", _hoisted_2$p, [
7557
7561
  createElementVNode("span", { onClick: prev }, [
7558
7562
  renderSlot(_ctx.$slots, "prev", {
7559
7563
  prev,
@@ -7572,8 +7576,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
7572
7576
  }
7573
7577
  });
7574
7578
  const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-1f9c6644"]]);
7575
- const _hoisted_1$z = { class: "m-0" };
7576
- const _hoisted_2$p = { class: "px-1 py-1 pretty m-0" };
7579
+ const _hoisted_1$z = { class: "pb-05 pretty" };
7577
7580
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
7578
7581
  __name: "ModalConfirm",
7579
7582
  props: {
@@ -7591,6 +7594,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7591
7594
  }
7592
7595
  return (_ctx, _cache) => {
7593
7596
  return openBlock(), createBlock(unref(_sfc_main$P), {
7597
+ title: _ctx.title,
7594
7598
  width: "380px",
7595
7599
  dismissable: false,
7596
7600
  class: "txt-center"
@@ -7609,11 +7613,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7609
7613
  })
7610
7614
  ]),
7611
7615
  default: withCtx(() => [
7612
- createElementVNode("h3", _hoisted_1$z, toDisplayString(_ctx.title), 1),
7613
- createElementVNode("p", _hoisted_2$p, toDisplayString(_ctx.message), 1)
7616
+ createElementVNode("p", _hoisted_1$z, toDisplayString(_ctx.message), 1)
7614
7617
  ]),
7615
7618
  _: 1
7616
- });
7619
+ }, 8, ["title"]);
7617
7620
  };
7618
7621
  }
7619
7622
  });
@@ -46579,8 +46582,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
46579
46582
  "name": "",
46580
46583
  "readonly": false,
46581
46584
  "tabindex": 0,
46582
- "style": "",
46583
- "placeholder": "Enter a phone number"
46585
+ "style": ""
46586
+ // 'placeholder': 'Enter a phone number',
46584
46587
  };
46585
46588
  const computedDropDownOptions = computed(() => ({
46586
46589
  ...defaultDropdownOptions,
@@ -46832,7 +46835,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
46832
46835
  id: _ctx.id,
46833
46836
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => phone.value = $event),
46834
46837
  required: _ctx.required,
46835
- placeholder: computedInputOptions.value.placeholder,
46838
+ placeholder: props2.placeholder || "Enter a phone number",
46836
46839
  disabled: _ctx.disabled,
46837
46840
  type: "tel",
46838
46841
  autocomplete: _ctx.autocomplete,
@@ -46861,7 +46864,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
46861
46864
  };
46862
46865
  }
46863
46866
  });
46864
- const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-9d176183"]]);
46867
+ const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-17a4fdd5"]]);
46865
46868
  /*!
46866
46869
  * Signature Pad v5.0.3 | https://github.com/szimek/signature_pad
46867
46870
  * (c) 2024 Szymon Nowak | Released under the MIT license
@@ -9,25 +9,22 @@ export interface ModalOptions {
9
9
  class?: string;
10
10
  visible?: boolean;
11
11
  }
12
- export interface ModalFormOptions {
13
- 'side'?: boolean;
14
- 'title'?: string;
15
- 'visible'?: boolean;
16
- 'width'?: string;
17
- 'dismissable'?: boolean;
12
+ export interface ModalFormOptions extends ModalOptions {
18
13
  'schema': BglFormSchemaT<any> | (() => BglFormSchemaT) | BglFormSchemaT;
19
14
  'onSubmit'?: (formData: any) => any;
20
15
  'onDelete'?: (id: string) => Promise<void>;
21
- 'onError'?: ((err: any) => void);
16
+ 'onError'?: (err: any) => void;
22
17
  'modelValue'?: Record<string, any>;
23
18
  'onUpdate:modelValue'?: (val: any) => void;
24
19
  }
25
20
  export interface ModalConfirmOptions {
26
- title?: string;
27
- message?: string;
28
- resolve: (val: boolean) => void;
21
+ 'title': string;
22
+ 'message': string;
23
+ 'resolve': (val: boolean) => void;
24
+ 'onUpdate:visible': () => void;
25
+ 'visible': boolean;
29
26
  }
30
- type ModalType = 'modal' | 'modalForm' | 'confirm';
27
+ type ModalType = 'modal' | 'modalForm' | 'confirmModal';
31
28
  type ConfirmModalUserOptions = string | {
32
29
  title: string;
33
30
  message: string;
@@ -37,8 +34,7 @@ export interface ModalComponentProps {
37
34
  modalType: ModalType;
38
35
  modalOptions: ModalOptions | ModalFormOptions | ModalConfirmOptions;
39
36
  }
40
- export interface ModalFormComponentProps {
41
- componentSlots: Record<string, any>;
37
+ export interface ModalFormComponentProps extends ModalComponentProps {
42
38
  modalType: 'modalForm';
43
39
  modalOptions: ModalFormOptions;
44
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/plugins/modal.ts"],"names":[],"mappings":"AACA,OAAO,KAA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AM,CAAA;CAAE,CAAA;AAE1E,MAAM,WAAW,mBAAmB;IACnC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACnC,SAAS,EAAE,SAAS,CAAA;IACpB,YAAY,EAAE,YAAY,GAAG,gBAAgB,GAAG,mBAAmB,CAAA;CACnE;AAED,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IACnE,SAAS,EAAE,WAAW,CAAA;IACtB,YAAY,EAAE,gBAAgB,CAAA;CAC9B;AAED,MAAM,WAAW,QAAQ;IACxB,SAAS,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,mBAAmB,GAAG,SAAS,CAAA;IAClG,aAAa,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,uBAAuB,GAAG,SAAS,CAAA;IAC9G,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,YAAY,EAAE,CAAC,OAAO,EAAE,uBAAuB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;CACpE;AAED,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,QAAQ,CAAmB,CAAA;AAElE,wBAAgB,QAAQ,IAAI,QAAQ,CAInC;AAED,eAAO,MAAM,WAAW,EAAE,MAsEzB,CAAA"}
package/dist/style.css CHANGED
@@ -1042,7 +1042,7 @@ data[data-v-4d174f13] {
1042
1042
  padding: 0;
1043
1043
  }
1044
1044
 
1045
- .avatar[data-v-dd2f6734] {
1045
+ .avatar[data-v-46ad8c25] {
1046
1046
  border-radius: 100%;
1047
1047
  background-color: var(--bgl-gray-20);
1048
1048
  border: 0.5px solid var(--border-color);
@@ -1051,13 +1051,13 @@ data[data-v-4d174f13] {
1051
1051
  padding: 0;
1052
1052
  flex-shrink: 0;
1053
1053
  }
1054
- .avatar p[data-v-dd2f6734] {
1054
+ .avatar p[data-v-46ad8c25] {
1055
1055
  font-size: 1.5rem;
1056
1056
  line-height: 50px;
1057
1057
  margin: 0;
1058
1058
  font-weight: 200;
1059
1059
  }
1060
- .avatar img[data-v-dd2f6734] {
1060
+ .avatar img[data-v-46ad8c25] {
1061
1061
  width: 100%;
1062
1062
  height: 100%;
1063
1063
  object-fit: cover;
@@ -2896,7 +2896,7 @@ p {
2896
2896
  border-radius: var(--input-border-radius);
2897
2897
  }
2898
2898
 
2899
- .tel-input[data-v-9d176183] {
2899
+ .tel-input[data-v-17a4fdd5] {
2900
2900
  direction: ltr;
2901
2901
  text-align: left;
2902
2902
  background: var(--input-bg);
@@ -2907,21 +2907,21 @@ p {
2907
2907
  min-width: calc(var(--input-height) * 3);
2908
2908
  width: 100%;
2909
2909
  }
2910
- .tel-input[data-v-9d176183]:focus-within {
2910
+ .tel-input[data-v-17a4fdd5]:focus-within {
2911
2911
  outline: none;
2912
2912
  box-shadow: inset 0 0 10px #00000012;
2913
2913
  }
2914
- .tel-input input[data-v-9d176183] {
2914
+ .tel-input input[data-v-17a4fdd5] {
2915
2915
  background: transparent;
2916
2916
  }
2917
- .tel-input input[data-v-9d176183]:focus-visible {
2917
+ .tel-input input[data-v-17a4fdd5]:focus-visible {
2918
2918
  box-shadow: none;
2919
2919
  }
2920
- .input_country-code[data-v-9d176183] {
2920
+ .input_country-code[data-v-17a4fdd5] {
2921
2921
  font-size: var(--input-font-size);
2922
2922
  color: var(--input-color);
2923
2923
  }
2924
- .tel-country[data-v-9d176183] {
2924
+ .tel-country[data-v-17a4fdd5] {
2925
2925
  font-size: var(--input-font-size);
2926
2926
  max-width: 200px;
2927
2927
  white-space: nowrap;
@@ -2930,7 +2930,7 @@ p {
2930
2930
  margin-top: 0;
2931
2931
  margin-bottom: 0;
2932
2932
  }
2933
- .tel-countryp-dropdown[data-v-9d176183] {
2933
+ .tel-countryp-dropdown[data-v-17a4fdd5] {
2934
2934
  direction: ltr;
2935
2935
  text-align: left;
2936
2936
  }
@@ -7463,6 +7463,10 @@ select {
7463
7463
  min-width: calc(var(--input-height) * 3);
7464
7464
  width: 100%;
7465
7465
  }
7466
+ [dir='rtl'] .bagel-input input[type="email"] {
7467
+ direction: ltr;
7468
+ text-align: right;
7469
+ }
7466
7470
  .input.active .bagel-input input:focus-visible,
7467
7471
  .bagel-input select:focus-visible,
7468
7472
  .bagel-input textarea:focus-visible,
@@ -7477,6 +7481,8 @@ select {
7477
7481
  .bagel-input .bgl_btn:focus,
7478
7482
  .bagel-input button:focus {
7479
7483
  outline-color: rgba(0, 0, 0, 0.05);
7484
+ box-shadow: inset 0 0 10px #00000012;
7485
+
7480
7486
  }
7481
7487
  .bagel-input.light-input input,
7482
7488
  .bagel-input.light-input textarea,
@@ -7696,6 +7702,38 @@ select {
7696
7702
  .txt-72 {
7697
7703
  font-size: 72px;
7698
7704
  }
7705
+ .txt80,
7706
+ .txt-80 {
7707
+ font-size: 80px;
7708
+ }
7709
+ .txt90,
7710
+ .txt-90 {
7711
+ font-size: 90px;
7712
+ }
7713
+ .txt100,
7714
+ .txt-100 {
7715
+ font-size: 100px;
7716
+ }
7717
+ .txt110,
7718
+ .txt-110 {
7719
+ font-size: 110px;
7720
+ }
7721
+ .txt120,
7722
+ .txt-120 {
7723
+ font-size: 120px;
7724
+ }
7725
+ .txt130,
7726
+ .txt-130 {
7727
+ font-size: 130px;
7728
+ }
7729
+ .txt140,
7730
+ .txt-140 {
7731
+ font-size: 140px;
7732
+ }
7733
+ .txt150,
7734
+ .txt-150 {
7735
+ font-size: 150px;
7736
+ }
7699
7737
  .txt18,
7700
7738
  .txt-18 {
7701
7739
  font-size: 18px;
@@ -8023,6 +8061,47 @@ select {
8023
8061
  }
8024
8062
 
8025
8063
 
8064
+ .m_txt80,
8065
+ .m_txt-80 {
8066
+ font-size: 80px;
8067
+ }
8068
+
8069
+ .m_txt90,
8070
+ .m_txt-90 {
8071
+ font-size: 90px;
8072
+ }
8073
+
8074
+ .m_txt100,
8075
+ .m_txt-100 {
8076
+ font-size: 100px;
8077
+ }
8078
+
8079
+
8080
+ .m_txt110,
8081
+ .m_txt-110 {
8082
+ font-size: 110px;
8083
+ }
8084
+
8085
+ .m_txt120,
8086
+ .m_txt-120 {
8087
+ font-size: 120px;
8088
+ }
8089
+
8090
+ .m_txt130,
8091
+ .m_txt-130 {
8092
+ font-size: 130px;
8093
+ }
8094
+
8095
+ .m_txt140,
8096
+ .m_txt-140 {
8097
+ font-size: 140px;
8098
+ }
8099
+
8100
+ .m_txt150,
8101
+ .m_txt-150 {
8102
+ font-size: 150px;
8103
+ }
8104
+
8026
8105
  .m_txt18,
8027
8106
  .m_txt-18 {
8028
8107
  font-size: 18px;
@@ -8432,6 +8511,10 @@ select {
8432
8511
  .opacity-10 {
8433
8512
  opacity: 1;
8434
8513
  }
8514
+ .-z-index-1,
8515
+ .-z-1 {
8516
+ z-index: -1;
8517
+ }
8435
8518
  .z-index-0,
8436
8519
  .z-0 {
8437
8520
  z-index: 0;
@@ -8765,6 +8848,9 @@ select {
8765
8848
  .shadow-light {
8766
8849
  box-shadow: 0 1px 5px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1) !important;
8767
8850
  }
8851
+ .shadow-txt {
8852
+ filter: drop-shadow(0 0 10px var(--bgl-black-tint));
8853
+ }
8768
8854
  .border-bottom {
8769
8855
  border-bottom: 1px solid var(--border-color)
8770
8856
  }
@@ -8870,6 +8956,11 @@ select {
8870
8956
  opacity: 1;
8871
8957
  }
8872
8958
 
8959
+ .m_-z-index-1,
8960
+ .m_-z-1 {
8961
+ z-index: -1;
8962
+ }
8963
+
8873
8964
  .m_z-index-0,
8874
8965
  .m_z-0 {
8875
8966
  z-index: 0;
@@ -9404,7 +9495,7 @@ select {
9404
9495
  --bgl-dark-bg: rgba(0, 0, 0, 0.7);
9405
9496
  --bgl-selection-bg: var(--bgl-blue-dark);
9406
9497
  --bgl-selection-color: var(--bgl-white);
9407
- --bgl-scrollbar-thumb: var(var(--bgl-gray));
9498
+ --bgl-scrollbar-thumb: var(--bgl-gray);
9408
9499
  }
9409
9500
  /* TYPE */
9410
9501
  :root {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.740",
4
+ "version": "0.0.742",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -54,7 +54,7 @@
54
54
  "@types/leaflet": "^1.9.12",
55
55
  "@types/signature_pad": "^2.3.6",
56
56
  "@vue-macros/reactivity-transform": "^1.0.3",
57
- "vue": "^3.4.38"
57
+ "vue": "^3.5.1"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "@bagelink/sdk": "*",
@@ -13,7 +13,7 @@ withDefaults(defineProps<{
13
13
  <div class="avatar flex justify-content-center" :style="{ width: `${size}px`, height: `${size}px` }">
14
14
  <img v-if="src" :src="src" :alt="name">
15
15
  <p v-else :style="{ 'line-height': `${size}px`, 'font-size': `calc(1.5rem * ${size} / 50)` }">
16
- {{ fallback || initials(name || '') }}
16
+ {{ (fallback || initials(name || '')).toUpperCase() }}
17
17
  </p>
18
18
  </div>
19
19
  </template>
@@ -2,8 +2,8 @@
2
2
  import { Btn, Modal } from '@bagelink/vue'
3
3
 
4
4
  const props = defineProps<{
5
- title: string
6
- message: string
5
+ title?: string
6
+ message?: string
7
7
  resolve: (value: boolean) => void
8
8
  }>()
9
9
 
@@ -16,11 +16,8 @@ function select(val: boolean) {
16
16
  </script>
17
17
 
18
18
  <template>
19
- <Modal width="380px" :dismissable="false" class="txt-center">
20
- <h3 class="m-0">
21
- {{ title }}
22
- </h3>
23
- <p class="px-1 py-1 pretty m-0">
19
+ <Modal :title="title" width="380px" :dismissable="false" class="txt-center">
20
+ <p class="pb-05 pretty">
24
21
  {{ message }}
25
22
  </p>
26
23
  <template #footer>