@bagelink/vue 1.15.371 → 1.15.375

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
@@ -51699,7 +51699,7 @@ function QV(e) {
51699
51699
  textareaAutoHeight: r["x-textarea-autoheight"],
51700
51700
  numberLayout: r["x-number-layout"],
51701
51701
  numberSpinner: r["x-number-spinner"] ?? !0,
51702
- phoneOnlyCountries: r["x-phone-only-countries"],
51702
+ phoneOnlyCountries: Array.isArray(r["x-phone-only-countries"]) ? r["x-phone-only-countries"].join(", ") : r["x-phone-only-countries"],
51703
51703
  selectMultiselect: r["x-select-multiselect"],
51704
51704
  fileMultiple: r["x-file-multiple"],
51705
51705
  fileHeight: r["x-file-height"],
@@ -52143,6 +52143,13 @@ function LG(e, t) {
52143
52143
  function bG(e) {
52144
52144
  return e;
52145
52145
  }
52146
+ function yG(e) {
52147
+ return async (t, n) => {
52148
+ if (!t.endpoint.startsWith("/") || t.endpoint.startsWith("//")) throw new Error("Form option endpoints must be same-origin paths");
52149
+ const a = {};
52150
+ return t.searchParam && n && (a[t.searchParam] = n), t.limitParam && t.limit != null && (a[t.limitParam] = t.limit), (await e.get(t.endpoint, { params: a })).data;
52151
+ };
52152
+ }
52146
52153
  function sl(e, t) {
52147
52154
  return t ? t.split(".").reduce((n, a) => {
52148
52155
  if (!(n == null || typeof n != "object"))
@@ -52586,14 +52593,14 @@ var oz = { class: "multi-step-form" }, iz = { class: "step-progress" }, lz = ["o
52586
52593
  ])
52587
52594
  ]));
52588
52595
  }
52589
- }), yG = /* @__PURE__ */ Re(gz, [["__scopeId", "data-v-7a55f4bb"]]);
52590
- function _G() {
52596
+ }), _G = /* @__PURE__ */ Re(gz, [["__scopeId", "data-v-7a55f4bb"]]);
52597
+ function wG() {
52591
52598
  return {
52592
52599
  steps: [],
52593
52600
  transitions: []
52594
52601
  };
52595
52602
  }
52596
- function wG(e) {
52603
+ function $G(e) {
52597
52604
  return !!e && e.steps.length > 1;
52598
52605
  }
52599
52606
  function Jd(e, t) {
@@ -52629,7 +52636,7 @@ function p1(e, t, n) {
52629
52636
  for (const a of vz(e, t)) if (!a.condition || a.condition.trim() === "" || zp(a.condition, n)) return a.to;
52630
52637
  return null;
52631
52638
  }
52632
- function $G(e, t, n) {
52639
+ function SG(e, t, n) {
52633
52640
  return p1(e, t, n) === null;
52634
52641
  }
52635
52642
  function P0(e, t, n) {
@@ -52641,7 +52648,7 @@ function P0(e, t, n) {
52641
52648
  r.add(o), l++, s || (o === t ? s = !0 : i++), o = p1(e, o, n);
52642
52649
  return l <= 1 ? s ? 100 : 0 : Math.round(i / (l - 1) * 100);
52643
52650
  }
52644
- function SG(e) {
52651
+ function CG(e) {
52645
52652
  const t = {}, n = [];
52646
52653
  for (const r of e.steps) {
52647
52654
  const o = r.schema?.properties;
@@ -52859,7 +52866,7 @@ var yz = { class: "form-flow-player" }, _z = { class: "ffp-stage" }, wz = {
52859
52866
  }, 8, ["value", "disabled"]))
52860
52867
  ])], !0)]));
52861
52868
  }
52862
- }), CG = /* @__PURE__ */ Re(Ez, [["__scopeId", "data-v-08661f2e"]]);
52869
+ }), EG = /* @__PURE__ */ Re(Ez, [["__scopeId", "data-v-08661f2e"]]);
52863
52870
  function Un(e) {
52864
52871
  var t;
52865
52872
  return ((t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
@@ -55683,7 +55690,7 @@ var Ks = /* @__PURE__ */ Symbol("VueToastification"), g1 = new Xs(), yU = (e, t)
55683
55690
  }), Uo = SU, CU = Tm || fm, { POSITION: EU } = fm, Wr = km;
55684
55691
  const Mm = /* @__PURE__ */ Symbol("toast");
55685
55692
  var hs = null;
55686
- function EG() {
55693
+ function xG() {
55687
55694
  const e = Pr(Mm, null);
55688
55695
  if (!e) {
55689
55696
  if (hs) return hs;
@@ -56213,7 +56220,7 @@ function zU() {
56213
56220
  })(document), Ku(document);
56214
56221
  }
56215
56222
  RU() || zU();
56216
- const xG = { install: (e, t = {}) => {
56223
+ const kG = { install: (e, t = {}) => {
56217
56224
  e.directive("click-outside", IH), e.directive("ripple", GV), e.directive("pattern", FV), e.directive("reveal", UV), e.use(PH), e.use(PV), e.use(kU, t.toast || {}), e.use(sH, { themes: { "bgl-theme": {
56218
56225
  triggers: ["click"],
56219
56226
  autoHide: !0,
@@ -56222,7 +56229,7 @@ const xG = { install: (e, t = {}) => {
56222
56229
  const n = mL(t.i18n || {});
56223
56230
  e.use(n);
56224
56231
  } };
56225
- var kG = /* @__PURE__ */ mc({
56232
+ var TG = /* @__PURE__ */ mc({
56226
56233
  arrField: () => Gm,
56227
56234
  bglForm: () => Um,
56228
56235
  checkField: () => Rm,
@@ -57924,7 +57931,7 @@ function YU() {
57924
57931
  return "en";
57925
57932
  }
57926
57933
  }
57927
- function TG(e, t) {
57934
+ function MG(e, t) {
57928
57935
  if (!e) return "";
57929
57936
  typeof e == "string" && (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/.test(e) && !/[Z+-]\d*$/.test(e) ? e = /* @__PURE__ */ new Date(`${e}Z`) : e = new Date(e));
57930
57937
  const n = typeof t == "string" ? t : t?.lang || YU(), a = (typeof t == "object" && t.mode || "relative") === "relative", r = Math.floor((e.getTime() - Date.now()) / 1e3), o = [
@@ -58081,7 +58088,7 @@ function JU(e, t, n) {
58081
58088
  }
58082
58089
  };
58083
58090
  }
58084
- function MG(e) {
58091
+ function AG(e) {
58085
58092
  return {
58086
58093
  $el: "pill",
58087
58094
  id: e?.id,
@@ -58165,7 +58172,7 @@ function Ym(e, t, n) {
58165
58172
  };
58166
58173
  }
58167
58174
  const nW = Ym;
58168
- function AG() {
58175
+ function DG() {
58169
58176
  return {
58170
58177
  btn: lc,
58171
58178
  iconBtn: XU,
@@ -58213,7 +58220,7 @@ function Zm(e, t = "") {
58213
58220
  function h3(e) {
58214
58221
  return e == null ? "" : typeof e == "string" ? rW(e) : typeof e == "number" || typeof e == "boolean" ? String(e) : e instanceof Date ? e.toISOString() : "";
58215
58222
  }
58216
- function DG(e = [], t = {}) {
58223
+ function PG(e = [], t = {}) {
58217
58224
  const { minChars: n = 1 } = t, a = $4({
58218
58225
  _list: e,
58219
58226
  searchTerm: ""
@@ -58501,7 +58508,7 @@ export {
58501
58508
  Bo as ArrayInput,
58502
58509
  Ay as Avatar,
58503
58510
  Yi as Badge,
58504
- xG as BagelVue,
58511
+ kG as BagelVue,
58505
58512
  EW as BarChart,
58506
58513
  _p as BglVideo,
58507
58514
  gj as BottomMenu,
@@ -58541,7 +58548,7 @@ export {
58541
58548
  Rf as Flag,
58542
58549
  QW as FloatingPanel,
58543
58550
  c1 as FormFlow,
58544
- CG as FormFlowPlayer,
58551
+ EG as FormFlowPlayer,
58545
58552
  kW as Funnel,
58546
58553
  uG as GRID_COLS,
58547
58554
  TW as Gauge,
@@ -58566,7 +58573,7 @@ export {
58566
58573
  Ej as MapEmbed,
58567
58574
  aj as MarkdownEditor,
58568
58575
  xj as Menu,
58569
- yG as MultiStepForm,
58576
+ _G as MultiStepForm,
58570
58577
  kj as NavBar,
58571
58578
  Aa as NumberInput,
58572
58579
  rj as OTP,
@@ -58619,7 +58626,7 @@ export {
58619
58626
  KV as applyGridClasses,
58620
58627
  bz as autoAdvanceFieldKey,
58621
58628
  ls as awaitGlobal,
58622
- kG as bagelFormUtils,
58629
+ TG as bagelFormUtils,
58623
58630
  bf as bagelinkLocales,
58624
58631
  m0 as bindAttrs,
58625
58632
  lc as btn,
@@ -58640,6 +58647,7 @@ export {
58640
58647
  tW as container,
58641
58648
  XF as copyText,
58642
58649
  mL as createI18n,
58650
+ yG as createJSONSchemaOptionsSourceLoader,
58643
58651
  eG as createOptionsGetter,
58644
58652
  ij as createUploadApi,
58645
58653
  Hj as d,
@@ -58652,11 +58660,11 @@ export {
58652
58660
  Ch as downloadFile,
58653
58661
  QU as dropdown,
58654
58662
  vz as edgesFrom,
58655
- _G as emptyStructure,
58663
+ wG as emptyStructure,
58656
58664
  Qd as entryStepKey,
58657
58665
  zp as evaluateQuery,
58658
58666
  pG as fieldsToSchema,
58659
- DG as filterRef,
58667
+ PG as filterRef,
58660
58668
  qm as findElementById,
58661
58669
  Uj as fmtDate,
58662
58670
  Nt as formatDate,
@@ -58682,13 +58690,13 @@ export {
58682
58690
  KF as initials,
58683
58691
  cW as ipapi,
58684
58692
  g0 as isDate,
58685
- wG as isMultiStep,
58686
- $G as isTerminal,
58693
+ $G as isMultiStep,
58694
+ SG as isTerminal,
58687
58695
  zi as keyToLabel,
58688
58696
  eW as listItem,
58689
58697
  oi as local,
58690
58698
  ZV as mColSpanToClass,
58691
- SG as mergedSchema,
58699
+ CG as mergedSchema,
58692
58700
  bG as multiStepSchema,
58693
58701
  pa as normalizeDimension,
58694
58702
  mx as normalizeOption,
@@ -58699,7 +58707,7 @@ export {
58699
58707
  Zn as pathKeyToURL,
58700
58708
  P0 as pathProgress,
58701
58709
  FV as pattern,
58702
- MG as pill,
58710
+ AG as pill,
58703
58711
  YW as queryFilter,
58704
58712
  XW as range,
58705
58713
  vG as required,
@@ -58720,7 +58728,7 @@ export {
58720
58728
  Jd as stepByKey,
58721
58729
  Wj as strJoin,
58722
58730
  Vh as stripGridClasses,
58723
- TG as timeAgo,
58731
+ MG as timeAgo,
58724
58732
  ma as timeDelta,
58725
58733
  Gj as toOptions,
58726
58734
  aV as tryRun,
@@ -58734,7 +58742,7 @@ export {
58734
58742
  Fi as useDevice,
58735
58743
  DV as useDialog,
58736
58744
  Vl as useDraggable,
58737
- AG as useElements,
58745
+ DG as useElements,
58738
58746
  Xj as useEscape,
58739
58747
  n1 as useEscapeKey,
58740
58748
  tG as useExcel,
@@ -58751,7 +58759,7 @@ export {
58751
58759
  gG as useSchemaToFields,
58752
58760
  vW as useSearch,
58753
58761
  lG as useTheme,
58754
- EG as useToast,
58762
+ xG as useToast,
58755
58763
  bV as useValidateFieldValue,
58756
58764
  Oj as utc,
58757
58765
  jj as uuid4,