@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.
- package/dist/{ListButtons-E4otfmrH.js → ListButtons-BlOX6_s_.js} +1 -1
- package/dist/{ListButtons-BtkdZBmB.cjs → ListButtons-R-0VECMy.cjs} +1 -1
- package/dist/{SplitCellDialog-DOPbnhHK.js → SplitCellDialog-D2wgbGwH.js} +24 -18
- package/dist/{SplitCellDialog-f2q91_OF.cjs → SplitCellDialog-Ds7yb_gS.cjs} +1 -1
- package/dist/dialogs.cjs +1 -1
- package/dist/dialogs.js +1 -1
- package/dist/folio-vue.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +683 -684
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +2 -2
- package/package.json +2 -2
|
@@ -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 =
|
|
5187
|
-
|
|
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,
|
|
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
|
|
5194
|
-
let e =
|
|
5195
|
-
justification:
|
|
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:
|
|
5205
|
+
justification: p.value,
|
|
5200
5206
|
width: u.value,
|
|
5201
|
-
widthType:
|
|
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(
|
|
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) =>
|
|
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,
|
|
5227
|
-
|
|
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:
|
|
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(
|
|
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) =>
|
|
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,
|
|
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:
|
|
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-
|
|
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 = {
|