@bagelink/vue 0.0.687 → 0.0.689

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.
@@ -78,6 +78,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRu
78
78
  topic?: string;
79
79
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
80
80
  "update:modelValue": (...args: any[]) => void;
81
+ addFileStart: (...args: any[]) => void;
81
82
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
82
83
  label?: string;
83
84
  multiple?: boolean;
@@ -88,6 +89,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRu
88
89
  topic?: string;
89
90
  }>>> & {
90
91
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
92
+ onAddFileStart?: ((...args: any[]) => any) | undefined;
91
93
  }, {}, {}>;
92
94
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
93
95
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"FileUpload.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/FileUpload.vue"],"names":[],"mappings":"AAGA,OAAO,EAAa,KAAK,WAAW,EAAY,MAAM,eAAe,CAAA;AA0BrE,KAAK,MAAM,GAAG,MAAM,WAAW,CAAA;AAE/B,KAAK,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAA;AAkGzC,iBAAS,MAAM,SAgBd;AA2BD,iBAAS,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;sBArJZ,MAAM;wBACJ,OAAO;mBACZ,MAAM;uBACF,OAAO;;QA0cS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;sBA7cpB,MAAM;wBACJ,OAAO;mBACZ,MAAM;uBACF,OAAO;;;QA2ce,GAAG;EAGpC;AA4BD,QAAA,MAAM,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KAAK,YAAY,EAEjB,MAAM,mBAAmB,CAAA;;gBAyTZ,OAAO,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA5PnB,MAAM,GAAG,SAAS;;;;mBAI3B,GAAG,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAwBP,OAAO;;;;;;;;;;;;;;gBAgOjB,OAAO,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA5PnB,MAAM,GAAG,SAAS;;;;mBAI3B,GAAG,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAwBP,OAAO;;;;;;;;;;;;;;gBARjB,OAAO;iBARN,MAAM;cACT,OAAO;cAMP,OAAO;kBARH,IAAI,GAAG,KAAK,GAAG,KAAK;mBAkBnB,MAAM;UAJf,YAAY;kBAVJ,OAAO,EAAE;gBACX,OAAO;oBACH,OAAO,GAAG,MAAM;oBAChB,MAAM,GAAG,MAAM;wBAGX,OAAO;sBAGT,MAAM,EAAE;mBAEX,MAAM,EAAE;wBACH,MAAM,EAAE;;AA0iB9B,wBAUG"}
package/dist/index.cjs CHANGED
@@ -5241,18 +5241,12 @@ const state$1 = vue.reactive({
5241
5241
  availableLangs: [],
5242
5242
  lang: "en"
5243
5243
  });
5244
- function $tdb(langEl) {
5245
- if (!langEl) {
5246
- console.warn("No language element provided for $tdb function");
5247
- return "";
5248
- }
5249
- return langEl[state$1.lang] || langEl[state$1.defaultLang] || "";
5250
- }
5251
5244
  function useLang() {
5252
5245
  const lang = vue.computed({
5253
5246
  get: () => state$1.lang,
5254
5247
  set: (val) => state$1.lang = val
5255
5248
  });
5249
+ const $tdb = (langEl) => langEl[state$1.lang] || langEl[state$1.defaultLang] || "";
5256
5250
  const availableLangs = vue.computed({
5257
5251
  get: () => state$1.availableLangs,
5258
5252
  set: (val) => state$1.availableLangs = val
@@ -19308,7 +19302,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
19308
19302
  }
19309
19303
  });
19310
19304
  const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-d86ce838"]]);
19311
- const _withScopeId$2 = (n2) => (vue.pushScopeId("data-v-1506863e"), n2 = n2(), vue.popScopeId(), n2);
19305
+ const _withScopeId$2 = (n2) => (vue.pushScopeId("data-v-4c71cd49"), n2 = n2(), vue.popScopeId(), n2);
19312
19306
  const _hoisted_1$k = { class: "bagel-input" };
19313
19307
  const _hoisted_2$f = {
19314
19308
  key: 0,
@@ -19345,7 +19339,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
19345
19339
  width: {},
19346
19340
  topic: {}
19347
19341
  },
19348
- emits: ["update:modelValue"],
19342
+ emits: ["update:modelValue", "addFileStart"],
19349
19343
  setup(__props, { emit: __emit }) {
19350
19344
  const props2 = __props;
19351
19345
  const emit2 = __emit;
@@ -19414,6 +19408,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
19414
19408
  updateModelValue();
19415
19409
  }
19416
19410
  async function flushQueue() {
19411
+ emit2("addFileStart");
19417
19412
  for (const file of fileQueue.value) {
19418
19413
  file.uploading = true;
19419
19414
  if (!props2.multiple) storageFiles.value.splice(0, 1);
@@ -19555,7 +19550,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
19555
19550
  };
19556
19551
  }
19557
19552
  });
19558
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-1506863e"]]);
19553
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-4c71cd49"]]);
19559
19554
  const _withScopeId$1 = (n2) => (vue.pushScopeId("data-v-06b95183"), n2 = n2(), vue.popScopeId(), n2);
19560
19555
  const _hoisted_1$j = ["title"];
19561
19556
  const _hoisted_2$e = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
@@ -45800,18 +45795,18 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
45800
45795
  searchable: true
45801
45796
  };
45802
45797
  const defaultInputOptions = {
45803
- showDialCode: true,
45804
- autofocus: false,
45798
+ "showDialCode": true,
45799
+ "autofocus": false,
45805
45800
  "aria-describedby": "",
45806
- id: "",
45807
- maxlength: 25,
45808
- minlength: 9,
45809
- pattern: void 0,
45810
- name: "",
45811
- readonly: false,
45812
- tabindex: 0,
45813
- style: "",
45814
- placeholder: "Enter a phone number"
45801
+ "id": "",
45802
+ "maxlength": 25,
45803
+ "minlength": 9,
45804
+ "pattern": void 0,
45805
+ "name": "",
45806
+ "readonly": false,
45807
+ "tabindex": 0,
45808
+ "style": "",
45809
+ "placeholder": "Enter a phone number"
45815
45810
  };
45816
45811
  const computedDropDownOptions = vue.computed(() => ({
45817
45812
  ...defaultDropdownOptions,
@@ -45904,16 +45899,6 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
45904
45899
  }
45905
45900
  );
45906
45901
  async function initializeCountry() {
45907
- if (props2.modelValue.includes("+")) {
45908
- const sanitized = `${props2.modelValue}`.replace(/[\+\-\s]/gi, "");
45909
- const twoDigits = sanitized.slice(0, 2);
45910
- const threeDigits = sanitized.slice(0, 3);
45911
- const country = findCountryByDialCode(+threeDigits) || findCountryByDialCode(+twoDigits);
45912
- if (country) {
45913
- chooseCountry(country.iso2);
45914
- return;
45915
- }
45916
- }
45917
45902
  if (props2.defaultCountry) {
45918
45903
  if (typeof props2.defaultCountry === "string") {
45919
45904
  chooseCountry(props2.defaultCountry);
@@ -45951,9 +45936,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
45951
45936
  return countryList;
45952
45937
  }
45953
45938
  function findCountryByDialCode(dialCode) {
45954
- return filteredCountries.value.find(
45955
- (country) => Number(country.dialCode) === dialCode
45956
- );
45939
+ return filteredCountries.value.find((country) => Number(country.dialCode) === dialCode);
45957
45940
  }
45958
45941
  function chooseCountry(country) {
45959
45942
  var _a2;
@@ -45981,7 +45964,9 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
45981
45964
  emit2("space");
45982
45965
  }
45983
45966
  function reset() {
45984
- selectedIndex.value = sortedCountries.value.findIndex((c2) => c2.iso2 === activeCountryCode.value);
45967
+ selectedIndex.value = sortedCountries.value.findIndex(
45968
+ (c2) => c2.iso2 === activeCountryCode.value
45969
+ );
45985
45970
  open.value = false;
45986
45971
  }
45987
45972
  function handleInput(e) {
@@ -46037,7 +46022,10 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
46037
46022
  class: "flex gap-075",
46038
46023
  tabindex: "-1",
46039
46024
  "aria-selected": vue.unref(activeCountryCode) === pb.iso2 && !isPreferred(pb),
46040
- onClick: ($event) => hide2() && chooseCountry(pb.iso2),
46025
+ onClick: ($event) => {
46026
+ chooseCountry(pb.iso2);
46027
+ hide2();
46028
+ },
46041
46029
  onMousemove: ($event) => vue.isRef(selectedIndex) ? selectedIndex.value = index2 : selectedIndex = index2
46042
46030
  }, [
46043
46031
  computedDropDownOptions.value.showFlags ? (vue.openBlock(), vue.createBlock(vue.unref(Flag), {
@@ -46100,7 +46088,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
46100
46088
  };
46101
46089
  }
46102
46090
  });
46103
- const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-27c14f9f"]]);
46091
+ const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-4c2ef2c5"]]);
46104
46092
  /*!
46105
46093
  * Signature Pad v5.0.2 | https://github.com/szimek/signature_pad
46106
46094
  * (c) 2024 Szymon Nowak | Released under the MIT license
package/dist/index.mjs CHANGED
@@ -5239,18 +5239,12 @@ const state$1 = reactive({
5239
5239
  availableLangs: [],
5240
5240
  lang: "en"
5241
5241
  });
5242
- function $tdb(langEl) {
5243
- if (!langEl) {
5244
- console.warn("No language element provided for $tdb function");
5245
- return "";
5246
- }
5247
- return langEl[state$1.lang] || langEl[state$1.defaultLang] || "";
5248
- }
5249
5242
  function useLang() {
5250
5243
  const lang = computed({
5251
5244
  get: () => state$1.lang,
5252
5245
  set: (val) => state$1.lang = val
5253
5246
  });
5247
+ const $tdb = (langEl) => langEl[state$1.lang] || langEl[state$1.defaultLang] || "";
5254
5248
  const availableLangs = computed({
5255
5249
  get: () => state$1.availableLangs,
5256
5250
  set: (val) => state$1.availableLangs = val
@@ -19306,7 +19300,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19306
19300
  }
19307
19301
  });
19308
19302
  const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-d86ce838"]]);
19309
- const _withScopeId$2 = (n2) => (pushScopeId("data-v-1506863e"), n2 = n2(), popScopeId(), n2);
19303
+ const _withScopeId$2 = (n2) => (pushScopeId("data-v-4c71cd49"), n2 = n2(), popScopeId(), n2);
19310
19304
  const _hoisted_1$k = { class: "bagel-input" };
19311
19305
  const _hoisted_2$f = {
19312
19306
  key: 0,
@@ -19343,7 +19337,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19343
19337
  width: {},
19344
19338
  topic: {}
19345
19339
  },
19346
- emits: ["update:modelValue"],
19340
+ emits: ["update:modelValue", "addFileStart"],
19347
19341
  setup(__props, { emit: __emit }) {
19348
19342
  const props2 = __props;
19349
19343
  const emit2 = __emit;
@@ -19412,6 +19406,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19412
19406
  updateModelValue();
19413
19407
  }
19414
19408
  async function flushQueue() {
19409
+ emit2("addFileStart");
19415
19410
  for (const file of fileQueue.value) {
19416
19411
  file.uploading = true;
19417
19412
  if (!props2.multiple) storageFiles.value.splice(0, 1);
@@ -19553,7 +19548,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19553
19548
  };
19554
19549
  }
19555
19550
  });
19556
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-1506863e"]]);
19551
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-4c71cd49"]]);
19557
19552
  const _withScopeId$1 = (n2) => (pushScopeId("data-v-06b95183"), n2 = n2(), popScopeId(), n2);
19558
19553
  const _hoisted_1$j = ["title"];
19559
19554
  const _hoisted_2$e = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
@@ -45798,18 +45793,18 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
45798
45793
  searchable: true
45799
45794
  };
45800
45795
  const defaultInputOptions = {
45801
- showDialCode: true,
45802
- autofocus: false,
45796
+ "showDialCode": true,
45797
+ "autofocus": false,
45803
45798
  "aria-describedby": "",
45804
- id: "",
45805
- maxlength: 25,
45806
- minlength: 9,
45807
- pattern: void 0,
45808
- name: "",
45809
- readonly: false,
45810
- tabindex: 0,
45811
- style: "",
45812
- placeholder: "Enter a phone number"
45799
+ "id": "",
45800
+ "maxlength": 25,
45801
+ "minlength": 9,
45802
+ "pattern": void 0,
45803
+ "name": "",
45804
+ "readonly": false,
45805
+ "tabindex": 0,
45806
+ "style": "",
45807
+ "placeholder": "Enter a phone number"
45813
45808
  };
45814
45809
  const computedDropDownOptions = computed(() => ({
45815
45810
  ...defaultDropdownOptions,
@@ -45902,16 +45897,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
45902
45897
  }
45903
45898
  );
45904
45899
  async function initializeCountry() {
45905
- if (props2.modelValue.includes("+")) {
45906
- const sanitized = `${props2.modelValue}`.replace(/[\+\-\s]/gi, "");
45907
- const twoDigits = sanitized.slice(0, 2);
45908
- const threeDigits = sanitized.slice(0, 3);
45909
- const country = findCountryByDialCode(+threeDigits) || findCountryByDialCode(+twoDigits);
45910
- if (country) {
45911
- chooseCountry(country.iso2);
45912
- return;
45913
- }
45914
- }
45915
45900
  if (props2.defaultCountry) {
45916
45901
  if (typeof props2.defaultCountry === "string") {
45917
45902
  chooseCountry(props2.defaultCountry);
@@ -45949,9 +45934,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
45949
45934
  return countryList;
45950
45935
  }
45951
45936
  function findCountryByDialCode(dialCode) {
45952
- return filteredCountries.value.find(
45953
- (country) => Number(country.dialCode) === dialCode
45954
- );
45937
+ return filteredCountries.value.find((country) => Number(country.dialCode) === dialCode);
45955
45938
  }
45956
45939
  function chooseCountry(country) {
45957
45940
  var _a2;
@@ -45979,7 +45962,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
45979
45962
  emit2("space");
45980
45963
  }
45981
45964
  function reset() {
45982
- selectedIndex.value = sortedCountries.value.findIndex((c2) => c2.iso2 === activeCountryCode.value);
45965
+ selectedIndex.value = sortedCountries.value.findIndex(
45966
+ (c2) => c2.iso2 === activeCountryCode.value
45967
+ );
45983
45968
  open.value = false;
45984
45969
  }
45985
45970
  function handleInput(e) {
@@ -46035,7 +46020,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
46035
46020
  class: "flex gap-075",
46036
46021
  tabindex: "-1",
46037
46022
  "aria-selected": unref(activeCountryCode) === pb.iso2 && !isPreferred(pb),
46038
- onClick: ($event) => hide2() && chooseCountry(pb.iso2),
46023
+ onClick: ($event) => {
46024
+ chooseCountry(pb.iso2);
46025
+ hide2();
46026
+ },
46039
46027
  onMousemove: ($event) => isRef(selectedIndex) ? selectedIndex.value = index2 : selectedIndex = index2
46040
46028
  }, [
46041
46029
  computedDropDownOptions.value.showFlags ? (openBlock(), createBlock(unref(Flag), {
@@ -46098,7 +46086,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
46098
46086
  };
46099
46087
  }
46100
46088
  });
46101
- const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-27c14f9f"]]);
46089
+ const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-4c2ef2c5"]]);
46102
46090
  /*!
46103
46091
  * Signature Pad v5.0.2 | https://github.com/szimek/signature_pad
46104
46092
  * (c) 2024 Szymon Nowak | Released under the MIT license