@stll/folio-vue 0.12.3 → 0.12.5

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.
@@ -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 = {