@stll/folio-vue 0.12.2 → 0.12.4

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.
@@ -151,7 +151,7 @@ var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
151
151
  }
152
152
  });
153
153
  //#endregion
154
- //#region ../../node_modules/.bun/@formatjs+fast-memoize@3.1.7/node_modules/@formatjs/fast-memoize/index.js
154
+ //#region ../../../../../.bun/install/cache/links/@formatjs+fast-memoize@3.1.7-094408a2425cf0c9/node_modules/@formatjs/fast-memoize/index.js
155
155
  function U(e, t) {
156
156
  let n = t && t.cache ? t.cache : _e, r = t && t.serializer ? t.serializer : he;
157
157
  return (t && t.strategy ? t.strategy : fe)(e, {
@@ -245,7 +245,7 @@ function xe(e) {
245
245
  };
246
246
  }
247
247
  //#endregion
248
- //#region ../../node_modules/.bun/react@19.2.8/node_modules/react/cjs/react.production.js
248
+ //#region ../../../../../.bun/install/cache/links/react@19.2.8-cd643cd10e1e2a1c/node_modules/react/cjs/react.production.js
249
249
  var Se = /* @__PURE__ */ B(((e) => {
250
250
  var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.iterator;
251
251
  function m(e) {
@@ -1451,7 +1451,7 @@ function Le(e) {
1451
1451
  return t;
1452
1452
  }
1453
1453
  //#endregion
1454
- //#region ../../node_modules/.bun/@formatjs+icu-messageformat-parser@3.5.15/node_modules/@formatjs/icu-messageformat-parser/index.js
1454
+ //#region ../../../../../.bun/install/cache/links/@formatjs+icu-messageformat-parser@3.5.15-11d7d13f7556f305/node_modules/@formatjs/icu-messageformat-parser/index.js
1455
1455
  var Re = /* @__PURE__ */ function(e) {
1456
1456
  return e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG", e;
1457
1457
  }({});
@@ -3215,7 +3215,7 @@ function _t(e, t = {}) {
3215
3215
  return t?.captureLocation || gt(n.val), n.val;
3216
3216
  }
3217
3217
  //#endregion
3218
- //#region ../../node_modules/.bun/intl-messageformat@11.2.12/node_modules/intl-messageformat/index.js
3218
+ //#region ../../../../../.bun/install/cache/links/intl-messageformat@11.2.12-fe43dd8b7d113ac5/node_modules/intl-messageformat/index.js
3219
3219
  var vt = class extends Error {
3220
3220
  constructor(e, t, n) {
3221
3221
  super(e), this.code = t, this.originalMessage = n;
@@ -3477,7 +3477,7 @@ var kt = class e {
3477
3477
  }
3478
3478
  };
3479
3479
  //#endregion
3480
- //#region ../../node_modules/.bun/use-intl@4.13.4+0f58469d5b3bd39f/node_modules/use-intl/dist/esm/production/format-message/index.js
3480
+ //#region ../../../../../.bun/install/cache/links/use-intl@4.13.4+0f58469d5b3bd39f-107a67c20f766037/node_modules/use-intl/dist/esm/production/format-message/index.js
3481
3481
  function At(...[e, t, n, r]) {
3482
3482
  if (Array.isArray(t)) throw new K(q.INVALID_MESSAGE, void 0);
3483
3483
  if (typeof t == "object") throw new K(q.INSUFFICIENT_PATH, void 0);
@@ -3535,7 +3535,7 @@ function At(...[e, t, n, r]) {
3535
3535
  }
3536
3536
  At.raw = !0;
3537
3537
  //#endregion
3538
- //#region ../../node_modules/.bun/use-intl@4.13.4+0f58469d5b3bd39f/node_modules/use-intl/dist/esm/production/initializeConfig-CHgjheii.js
3538
+ //#region ../../../../../.bun/install/cache/links/use-intl@4.13.4+0f58469d5b3bd39f-107a67c20f766037/node_modules/use-intl/dist/esm/production/initializeConfig-CHgjheii.js
3539
3539
  function jt(...e) {
3540
3540
  return e.filter(Boolean).join(".");
3541
3541
  }
@@ -3652,7 +3652,7 @@ function It(e, t) {
3652
3652
  var Lt = 86400;
3653
3653
  7 * Lt, 365 * Lt;
3654
3654
  //#endregion
3655
- //#region ../../node_modules/.bun/use-intl@4.13.4+0f58469d5b3bd39f/node_modules/use-intl/dist/esm/production/core.js
3655
+ //#region ../../../../../.bun/install/cache/links/use-intl@4.13.4+0f58469d5b3bd39f-107a67c20f766037/node_modules/use-intl/dist/esm/production/core.js
3656
3656
  function Rt({ _cache: e = ye(), _formatters: t = xe(e), getMessageFallback: n = Mt, messages: r, namespace: i, onError: a = Nt, ...o }) {
3657
3657
  return function({ messages: e, namespace: t, ...n }, r) {
3658
3658
  return e = e[r], t = It(t, r), Ft({
@@ -5183,22 +5183,28 @@ var Un = u({
5183
5183
  },
5184
5184
  emits: ["close", "apply"],
5185
5185
  setup(e, { emit: t }) {
5186
- let { t: n } = Z(), { Dialog: r } = Q(), c = e, l = t, u = S(0), d = S("auto"), f = S("left");
5187
- function p(e) {
5186
+ let { t: n } = Z(), { Dialog: r } = Q(), c = e, l = t, u = S(0), d = (e) => {
5187
+ switch (e) {
5188
+ case "dxa":
5189
+ case "pct": return e;
5190
+ default: return "auto";
5191
+ }
5192
+ }, f = S(d(c.currentProps?.widthType ?? "auto")), p = S("left");
5193
+ function m(e) {
5188
5194
  return e === "center" || e === "right" ? e : "left";
5189
5195
  }
5190
5196
  N(() => c.isOpen, (e) => {
5191
- e && (u.value = c.currentProps?.width ?? 0, d.value = c.currentProps?.widthType ?? "auto", f.value = p(c.currentProps?.justification));
5197
+ e && (u.value = c.currentProps?.width ?? 0, f.value = d(c.currentProps?.widthType ?? "auto"), p.value = m(c.currentProps?.justification));
5192
5198
  });
5193
- function m() {
5194
- let e = d.value === "auto" ? {
5195
- justification: f.value,
5199
+ function h() {
5200
+ let e = f.value === "auto" ? {
5201
+ justification: p.value,
5196
5202
  width: null,
5197
5203
  widthType: "auto"
5198
5204
  } : {
5199
- justification: f.value,
5205
+ justification: p.value,
5200
5206
  width: u.value,
5201
- widthType: d.value
5207
+ widthType: f.value
5202
5208
  };
5203
5209
  l("apply", e), l("close");
5204
5210
  }
@@ -5211,56 +5217,56 @@ var Un = u({
5211
5217
  width: "100%"
5212
5218
  },
5213
5219
  onClose: c[4] ||= (e) => t.$emit("close"),
5214
- onKeydown: I(m, ["enter"])
5220
+ onKeydown: I(h, ["enter"])
5215
5221
  }, {
5216
5222
  default: P(() => [
5217
5223
  s("div", qi, T(O(n)("dialogs.tableProperties.title")), 1),
5218
5224
  s("div", Ji, [
5219
5225
  s("div", Yi, [s("label", Xi, T(O(n)("dialogs.tableProperties.widthType")), 1), F(s("select", {
5220
- "onUpdate:modelValue": c[0] ||= (e) => d.value = e,
5226
+ "onUpdate:modelValue": c[0] ||= (e) => f.value = e,
5221
5227
  class: "tpd-select"
5222
5228
  }, [
5223
5229
  s("option", Zi, T(O(n)("dialogs.tableProperties.widthTypes.auto")), 1),
5224
5230
  s("option", Qi, T(O(n)("dialogs.tableProperties.widthTypes.fixed")), 1),
5225
5231
  s("option", $i, T(O(n)("dialogs.tableProperties.widthTypes.percentage")), 1)
5226
- ], 512), [[j, d.value]])]),
5227
- d.value === "auto" ? a("", !0) : (y(), o("div", ea, [
5232
+ ], 512), [[j, f.value]])]),
5233
+ f.value === "auto" ? a("", !0) : (y(), o("div", ea, [
5228
5234
  s("label", ta, T(O(n)("dialogs.tableProperties.widthLabel")), 1),
5229
5235
  F(s("input", {
5230
5236
  "onUpdate:modelValue": c[1] ||= (e) => u.value = e,
5231
5237
  type: "number",
5232
5238
  class: "tpd-input",
5233
5239
  min: 0,
5234
- step: d.value === "pct" ? 5 : 100
5240
+ step: f.value === "pct" ? 5 : 100
5235
5241
  }, null, 8, na), [[
5236
5242
  M,
5237
5243
  u.value,
5238
5244
  void 0,
5239
5245
  { number: !0 }
5240
5246
  ]]),
5241
- s("span", ra, T(d.value === "pct" ? O(n)("dialogs.tableProperties.units.fiftiethsPercent") : O(n)("dialogs.tableProperties.units.twips")), 1)
5247
+ s("span", ra, T(f.value === "pct" ? O(n)("dialogs.tableProperties.units.fiftiethsPercent") : O(n)("dialogs.tableProperties.units.twips")), 1)
5242
5248
  ])),
5243
5249
  s("div", ia, [s("label", aa, T(O(n)("dialogs.tableProperties.alignmentLabel")), 1), F(s("select", {
5244
- "onUpdate:modelValue": c[2] ||= (e) => f.value = e,
5250
+ "onUpdate:modelValue": c[2] ||= (e) => p.value = e,
5245
5251
  class: "tpd-select"
5246
5252
  }, [
5247
5253
  s("option", oa, T(O(n)("dialogs.tableProperties.alignOptions.left")), 1),
5248
5254
  s("option", sa, T(O(n)("dialogs.tableProperties.alignOptions.center")), 1),
5249
5255
  s("option", ca, T(O(n)("dialogs.tableProperties.alignOptions.right")), 1)
5250
- ], 512), [[j, f.value]])])
5256
+ ], 512), [[j, p.value]])])
5251
5257
  ]),
5252
5258
  s("div", la, [s("button", {
5253
5259
  class: "tpd-btn",
5254
5260
  onClick: c[3] ||= (e) => t.$emit("close")
5255
5261
  }, T(O(n)("common.cancel")), 1), s("button", {
5256
5262
  class: "tpd-btn tpd-btn--primary",
5257
- onClick: m
5263
+ onClick: h
5258
5264
  }, T(O(n)("common.apply")), 1)])
5259
5265
  ]),
5260
5266
  _: 1
5261
5267
  }, 8, ["open", "aria-label"]));
5262
5268
  }
5263
- }), [["__scopeId", "data-v-6e0fd92d"]]), da = { class: "dialog__body" }, fa = { class: "field" }, pa = {
5269
+ }), [["__scopeId", "data-v-c4d3eefc"]]), da = { class: "dialog__body" }, fa = { class: "field" }, pa = {
5264
5270
  key: 0,
5265
5271
  class: "grid"
5266
5272
  }, ma = { class: "field field--wide" }, ha = { class: "field" }, ga = { class: "field" }, _a = { class: "field" }, va = { class: "check" }, ya = {