@stll/folio-vue 0.20.1 → 0.21.0
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-BSRd6dsB.cjs +4 -0
- package/dist/{ListButtons-BXF-tbt2.js → ListButtons-CSyBR9KM.js} +530 -435
- package/dist/{SplitCellDialog-Cp5O_btz.js → SplitCellDialog-Id6nLwrR.js} +626 -531
- package/dist/SplitCellDialog-NOmSMMla.cjs +15 -0
- package/dist/components/DocxEditor/types.d.ts +6 -2
- package/dist/composables/useCommentManagement.d.ts +2 -0
- package/dist/composables/useContextMenus.d.ts +5 -0
- package/dist/composables/useDocxEditor.d.ts +6 -0
- package/dist/composables/useDocxEditorRefApi.d.ts +20 -7
- package/dist/composables/usePagesPointer.d.ts +1 -0
- package/dist/composables/useSelectionSync.d.ts +3 -0
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +1 -1
- package/dist/dialogs.cjs +1 -1
- package/dist/dialogs.js +1 -1
- package/dist/folio-vue.css +212 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1909 -1572
- package/dist/ui/folio-ui.d.ts +1 -0
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +2 -2
- package/dist/useZoom-6bPW9fn6.cjs +1 -0
- package/dist/useZoom-BDu7b2tv.js +797 -0
- package/dist/utils/index.d.ts +0 -1
- package/package.json +11 -3
- package/dist/ListButtons-h2cB3ivL.cjs +0 -4
- package/dist/SplitCellDialog-DuxO5ttQ.cjs +0 -15
- package/dist/useZoom-BIGvxjCH.cjs +0 -1
- package/dist/useZoom-C8y44V_P.js +0 -780
- package/dist/utils/sidebarConstants.d.ts +0 -8
|
@@ -3,16 +3,16 @@ import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCo
|
|
|
3
3
|
import { isAllowedExternalWatermarkImageUrl as R } from "@stll/folio-core/watermark";
|
|
4
4
|
import { getFolioMessages as z } from "@stll/folio-core/i18n/messages";
|
|
5
5
|
import { generateThemeTintShadeMatrix as ee, resolveColor as te, resolveColorToHex as ne, resolveHighlightColor as re } from "@stll/folio-core/utils/colorResolver";
|
|
6
|
-
import { SYMBOL_CATEGORIES as ie, filterSymbols as
|
|
7
|
-
import { TWIPS_PER_INCH as
|
|
8
|
-
import { TABLE_PROPERTY_JUSTIFICATIONS as
|
|
9
|
-
import { cssBorderStyle as
|
|
6
|
+
import { SYMBOL_CATEGORIES as ie, filterSymbols as ae } from "@stll/folio-core/symbols";
|
|
7
|
+
import { TWIPS_PER_INCH as B } from "@stll/folio-core/utils/units";
|
|
8
|
+
import { TABLE_PROPERTY_JUSTIFICATIONS as V, toTablePropertyJustification as oe } from "@stll/folio-core/utils/tableOperations";
|
|
9
|
+
import { cssBorderStyle as se } from "@stll/folio-core/utils/borderCss";
|
|
10
10
|
//#region \0rolldown/runtime.js
|
|
11
|
-
var
|
|
11
|
+
var ce = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), H = (e, t) => {
|
|
12
12
|
let n = e.__vccOpts || e;
|
|
13
13
|
for (let [e, r] of t) n[e] = r;
|
|
14
14
|
return n;
|
|
15
|
-
},
|
|
15
|
+
}, U = {
|
|
16
16
|
undo: ["M280-200v-80h284q63 0 109.5-40T720-420q0-60-46.5-100T564-560H312l104 104-56 56-200-200 200-200 56 56-104 104h252q97 0 166.5 63T800-420q0 94-69.5 157T564-200H280Z"],
|
|
17
17
|
redo: ["M396-200q-97 0-166.5-63T160-420q0-94 69.5-157T396-640h252L544-744l56-56 200 200-200 200-56-56 104-104H396q-63 0-109.5 40T240-420q0 60 46.5 100T396-280h284v80H396Z"],
|
|
18
18
|
print: ["M640-640v-120H320v120h-80v-200h480v200h-80Zm-480 80h640-640Zm560 100q17 0 28.5-11.5T760-500q0-17-11.5-28.5T720-540q-17 0-28.5 11.5T680-500q0 17 11.5 28.5T720-460Zm-80 260v-160H320v160h320Zm80 80H240v-160H80v-240q0-51 35-85.5t85-34.5h560q51 0 85.5 34.5T880-520v240H720v160Zm80-240v-160q0-17-11.5-28.5T760-560H200q-17 0-28.5 11.5T160-520v160h80v-80h480v80h80Z"],
|
|
@@ -112,7 +112,7 @@ var se = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null),
|
|
|
112
112
|
format_textdirection_l_to_r: ["M360-360v-200q-66 0-113-47t-47-113q0-66 47-113t113-47h320v80h-80v440h-80v-440h-80v440h-80Zm0-280v-160q-33 0-56.5 23.5T280-720q0 33 23.5 56.5T360-640Zm0-80ZM680-80l-56-56 64-64H120v-80h568l-64-64 56-56 160 160L680-80Z"],
|
|
113
113
|
format_textdirection_r_to_l: ["M360-360v-200q-66 0-113-47t-47-113q0-66 47-113t113-47h320v80h-80v440h-80v-440h-80v440h-80Zm-88 160 64 64-56 56-160-160 160-160 56 56-64 64h568v80H272Zm88-440v-160q-33 0-56.5 23.5T280-720q0 33 23.5 56.5T360-640Zm0-80Z"],
|
|
114
114
|
"agent-sparkle": ["m760-600-50-110-110-50 110-50 50-110 50 110 110 50-110 50-50 110Zm0 560-50-110-110-50 110-50 50-110 50 110 110 50-110 50-50 110ZM360-160 260-380 40-480l220-100 100-220 100 220 220 100-220 100-100 220Zm0-194 40-86 86-40-86-40-40-86-40 86-86 40 86 40 40 86Zm0-126Z"]
|
|
115
|
-
},
|
|
115
|
+
}, W = ["width", "height"], le = ["d"], G = /* @__PURE__ */ u({
|
|
116
116
|
__name: "MaterialSymbol",
|
|
117
117
|
props: {
|
|
118
118
|
name: {},
|
|
@@ -121,7 +121,7 @@ var se = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null),
|
|
|
121
121
|
style: {}
|
|
122
122
|
},
|
|
123
123
|
setup(e) {
|
|
124
|
-
let n = e, i =
|
|
124
|
+
let n = e, i = U, a = r(() => i[n.name] || (typeof console < "u" && console.warn(`Icon not found: ${n.name}`), null));
|
|
125
125
|
return (n, r) => a.value ? (y(), o("svg", {
|
|
126
126
|
key: 0,
|
|
127
127
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -139,7 +139,7 @@ var se = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null),
|
|
|
139
139
|
}, [(y(!0), o(t, null, C(a.value, (e, t) => (y(), o("path", {
|
|
140
140
|
key: t,
|
|
141
141
|
d: e
|
|
142
|
-
}, null, 8,
|
|
142
|
+
}, null, 8, le))), 128))], 14, W)) : (y(), o("span", {
|
|
143
143
|
key: 1,
|
|
144
144
|
class: h(e.className),
|
|
145
145
|
style: g({
|
|
@@ -154,40 +154,40 @@ var se = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null),
|
|
|
154
154
|
});
|
|
155
155
|
//#endregion
|
|
156
156
|
//#region ../../../../../.bun/install/cache/links/@formatjs+fast-memoize@3.1.7-094408a2425cf0c9/node_modules/@formatjs/fast-memoize/index.js
|
|
157
|
-
function
|
|
158
|
-
let n = t && t.cache ? t.cache :
|
|
159
|
-
return (t && t.strategy ? t.strategy :
|
|
157
|
+
function K(e, t) {
|
|
158
|
+
let n = t && t.cache ? t.cache : ye, r = t && t.serializer ? t.serializer : _e;
|
|
159
|
+
return (t && t.strategy ? t.strategy : me)(e, {
|
|
160
160
|
cache: n,
|
|
161
161
|
serializer: r
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ue(e) {
|
|
165
165
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
let i =
|
|
167
|
+
function de(e, t, n, r) {
|
|
168
|
+
let i = ue(r) ? r : n(r), a = t.get(i);
|
|
169
169
|
return a === void 0 && (a = e.call(this, r), t.set(i, a)), a;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function fe(e, t, n) {
|
|
172
172
|
let r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
173
173
|
return a === void 0 && (a = e.apply(this, r), t.set(i, a)), a;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function pe(e, t, n, r, i) {
|
|
176
176
|
return n.bind(t, e, r, i);
|
|
177
177
|
}
|
|
178
|
-
function pe(e, t) {
|
|
179
|
-
let n = e.length === 1 ? ue : de;
|
|
180
|
-
return fe(e, this, n, t.cache.create(), t.serializer);
|
|
181
|
-
}
|
|
182
178
|
function me(e, t) {
|
|
183
|
-
|
|
179
|
+
let n = e.length === 1 ? de : fe;
|
|
180
|
+
return pe(e, this, n, t.cache.create(), t.serializer);
|
|
184
181
|
}
|
|
185
182
|
function he(e, t) {
|
|
186
|
-
return
|
|
183
|
+
return pe(e, this, fe, t.cache.create(), t.serializer);
|
|
184
|
+
}
|
|
185
|
+
function ge(e, t) {
|
|
186
|
+
return pe(e, this, de, t.cache.create(), t.serializer);
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var _e = function() {
|
|
189
189
|
return JSON.stringify(arguments);
|
|
190
|
-
},
|
|
190
|
+
}, ve = class {
|
|
191
191
|
constructor() {
|
|
192
192
|
this.cache = Object.create(null);
|
|
193
193
|
}
|
|
@@ -197,20 +197,20 @@ var ge = function() {
|
|
|
197
197
|
set(e, t) {
|
|
198
198
|
this.cache[e] = t;
|
|
199
199
|
}
|
|
200
|
-
},
|
|
201
|
-
return new
|
|
202
|
-
} },
|
|
203
|
-
variadic:
|
|
204
|
-
monadic:
|
|
205
|
-
},
|
|
200
|
+
}, ye = { create: function() {
|
|
201
|
+
return new ve();
|
|
202
|
+
} }, be = {
|
|
203
|
+
variadic: he,
|
|
204
|
+
monadic: ge
|
|
205
|
+
}, q = class extends Error {
|
|
206
206
|
constructor(e, t) {
|
|
207
207
|
let n = e;
|
|
208
208
|
t && (n += ": " + t), super(n), this.code = e, t && (this.originalMessage = t);
|
|
209
209
|
}
|
|
210
|
-
},
|
|
210
|
+
}, J = function(e) {
|
|
211
211
|
return e.MISSING_MESSAGE = "MISSING_MESSAGE", e.MISSING_FORMAT = "MISSING_FORMAT", e.ENVIRONMENT_FALLBACK = "ENVIRONMENT_FALLBACK", e.INSUFFICIENT_PATH = "INSUFFICIENT_PATH", e.INVALID_MESSAGE = "INVALID_MESSAGE", e.INVALID_KEY = "INVALID_KEY", e.FORMATTING_ERROR = "FORMATTING_ERROR", e;
|
|
212
|
-
}(
|
|
213
|
-
function
|
|
212
|
+
}(J || {});
|
|
213
|
+
function xe() {
|
|
214
214
|
return {
|
|
215
215
|
dateTime: {},
|
|
216
216
|
number: {},
|
|
@@ -221,34 +221,34 @@ function be() {
|
|
|
221
221
|
displayNames: {}
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
return
|
|
224
|
+
function Se(e, t) {
|
|
225
|
+
return K(e, {
|
|
226
226
|
cache: (n = t, { create: () => ({
|
|
227
227
|
get: (e) => n[e],
|
|
228
228
|
set(e, t) {
|
|
229
229
|
n[e] = t;
|
|
230
230
|
}
|
|
231
231
|
}) }),
|
|
232
|
-
strategy:
|
|
232
|
+
strategy: be.variadic
|
|
233
233
|
});
|
|
234
234
|
var n;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
return
|
|
236
|
+
function Y(e, t) {
|
|
237
|
+
return Se(((...t) => new e(...t)), t);
|
|
238
238
|
}
|
|
239
239
|
function Ce(e) {
|
|
240
240
|
return {
|
|
241
|
-
getDateTimeFormat:
|
|
242
|
-
getNumberFormat:
|
|
243
|
-
getPluralRules:
|
|
244
|
-
getRelativeTimeFormat:
|
|
245
|
-
getListFormat:
|
|
246
|
-
getDisplayNames:
|
|
241
|
+
getDateTimeFormat: Y(Intl.DateTimeFormat, e.dateTime),
|
|
242
|
+
getNumberFormat: Y(Intl.NumberFormat, e.number),
|
|
243
|
+
getPluralRules: Y(Intl.PluralRules, e.pluralRules),
|
|
244
|
+
getRelativeTimeFormat: Y(Intl.RelativeTimeFormat, e.relativeTime),
|
|
245
|
+
getListFormat: Y(Intl.ListFormat, e.list),
|
|
246
|
+
getDisplayNames: Y(Intl.DisplayNames, e.displayNames)
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
249
|
//#endregion
|
|
250
250
|
//#region ../../../../../.bun/install/cache/links/react@19.2.8-cd643cd10e1e2a1c/node_modules/react/cjs/react.production.js
|
|
251
|
-
var we = /* @__PURE__ */
|
|
251
|
+
var we = /* @__PURE__ */ ce(((e) => {
|
|
252
252
|
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;
|
|
253
253
|
function m(e) {
|
|
254
254
|
return typeof e != "object" || !e ? null : (e = p && e[p] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
@@ -534,7 +534,7 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
534
534
|
}, e.useTransition = function() {
|
|
535
535
|
return w.H.useTransition();
|
|
536
536
|
}, e.version = "19.2.8";
|
|
537
|
-
})), Te = /* @__PURE__ */
|
|
537
|
+
})), Te = /* @__PURE__ */ ce(((e, t) => {
|
|
538
538
|
process.env.NODE_ENV !== "production" && (function() {
|
|
539
539
|
function n(e, t) {
|
|
540
540
|
Object.defineProperty(a.prototype, e, { get: function() {
|
|
@@ -542,19 +542,19 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
542
542
|
} });
|
|
543
543
|
}
|
|
544
544
|
function r(e) {
|
|
545
|
-
return typeof e != "object" || !e ? null : (e =
|
|
545
|
+
return typeof e != "object" || !e ? null : (e = oe && e[oe] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
546
546
|
}
|
|
547
547
|
function i(e, t) {
|
|
548
548
|
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
549
549
|
var n = e + "." + t;
|
|
550
|
-
|
|
550
|
+
se[n] || (console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, e), se[n] = !0);
|
|
551
551
|
}
|
|
552
552
|
function a(e, t, n) {
|
|
553
|
-
this.props = e, this.context = t, this.refs =
|
|
553
|
+
this.props = e, this.context = t, this.refs = U, this.updater = n || ce;
|
|
554
554
|
}
|
|
555
555
|
function o() {}
|
|
556
556
|
function s(e, t, n) {
|
|
557
|
-
this.props = e, this.context = t, this.refs =
|
|
557
|
+
this.props = e, this.context = t, this.refs = U, this.updater = n || ce;
|
|
558
558
|
}
|
|
559
559
|
function c() {}
|
|
560
560
|
function l(e) {
|
|
@@ -575,7 +575,7 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
575
575
|
}
|
|
576
576
|
function d(e) {
|
|
577
577
|
if (e == null) return null;
|
|
578
|
-
if (typeof e == "function") return e.$$typeof ===
|
|
578
|
+
if (typeof e == "function") return e.$$typeof === G ? null : e.displayName || e.name || null;
|
|
579
579
|
if (typeof e == "string") return e;
|
|
580
580
|
switch (e) {
|
|
581
581
|
case L: return "Fragment";
|
|
@@ -583,7 +583,7 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
583
583
|
case R: return "StrictMode";
|
|
584
584
|
case re: return "Suspense";
|
|
585
585
|
case ie: return "SuspenseList";
|
|
586
|
-
case
|
|
586
|
+
case V: return "Activity";
|
|
587
587
|
}
|
|
588
588
|
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
589
589
|
case I: return "Portal";
|
|
@@ -592,8 +592,8 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
592
592
|
case ne:
|
|
593
593
|
var t = e.render;
|
|
594
594
|
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
595
|
-
case
|
|
596
|
-
case
|
|
595
|
+
case ae: return t = e.displayName || null, t === null ? d(e.type) || "Memo" : t;
|
|
596
|
+
case B:
|
|
597
597
|
t = e._payload, e = e._init;
|
|
598
598
|
try {
|
|
599
599
|
return d(e(t));
|
|
@@ -603,7 +603,7 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
603
603
|
}
|
|
604
604
|
function f(e) {
|
|
605
605
|
if (e === L) return "<>";
|
|
606
|
-
if (typeof e == "object" && e && e.$$typeof ===
|
|
606
|
+
if (typeof e == "object" && e && e.$$typeof === B) return "<...>";
|
|
607
607
|
try {
|
|
608
608
|
var t = d(e);
|
|
609
609
|
return t ? "<" + t + ">" : "<...>";
|
|
@@ -612,14 +612,14 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
function p() {
|
|
615
|
-
var e =
|
|
615
|
+
var e = K.A;
|
|
616
616
|
return e === null ? null : e.getOwner();
|
|
617
617
|
}
|
|
618
618
|
function m() {
|
|
619
619
|
return Error("react-stack-top-frame");
|
|
620
620
|
}
|
|
621
621
|
function h(e) {
|
|
622
|
-
if (
|
|
622
|
+
if (ue.call(e, "key")) {
|
|
623
623
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
624
624
|
if (t && t.isReactWarning) return !1;
|
|
625
625
|
}
|
|
@@ -627,7 +627,7 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
627
627
|
}
|
|
628
628
|
function g(e, t) {
|
|
629
629
|
function n() {
|
|
630
|
-
|
|
630
|
+
fe || (fe = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
631
631
|
}
|
|
632
632
|
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
633
633
|
get: n,
|
|
@@ -636,7 +636,7 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
636
636
|
}
|
|
637
637
|
function _() {
|
|
638
638
|
var e = d(this.type);
|
|
639
|
-
return
|
|
639
|
+
return me[e] || (me[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
640
640
|
}
|
|
641
641
|
function v(e, t, n, r, i, a) {
|
|
642
642
|
var o = n.ref;
|
|
@@ -678,7 +678,7 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
678
678
|
return t = v(e.type, t, e.props, e._owner, e._debugStack, e._debugTask), e._store && (t._store.validated = e._store.validated), t;
|
|
679
679
|
}
|
|
680
680
|
function b(e) {
|
|
681
|
-
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof ===
|
|
681
|
+
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === B && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
682
682
|
}
|
|
683
683
|
function x(e) {
|
|
684
684
|
return typeof e == "object" && !!e && e.$$typeof === F;
|
|
@@ -726,18 +726,18 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
726
726
|
case I:
|
|
727
727
|
s = !0;
|
|
728
728
|
break;
|
|
729
|
-
case
|
|
729
|
+
case B: return s = e._init, T(s(e._payload), t, n, i, a);
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
732
|
if (s) {
|
|
733
733
|
s = e, a = a(s);
|
|
734
734
|
var c = i === "" ? "." + C(s, 0) : i;
|
|
735
|
-
return
|
|
735
|
+
return le(a) ? (n = "", c != null && (n = c.replace(ve, "$&/") + "/"), T(a, t, n, "", function(e) {
|
|
736
736
|
return e;
|
|
737
|
-
})) : a != null && (x(a) && (a.key != null && (s && s.key === a.key || u(a.key)), n = y(a, n + (a.key == null || s && s.key === a.key ? "" : ("" + a.key).replace(
|
|
737
|
+
})) : a != null && (x(a) && (a.key != null && (s && s.key === a.key || u(a.key)), n = y(a, n + (a.key == null || s && s.key === a.key ? "" : ("" + a.key).replace(ve, "$&/") + "/") + c), i !== "" && s != null && x(s) && s.key == null && s._store && !s._store.validated && (n._store.validated = 2), a = n), t.push(a)), 1;
|
|
738
738
|
}
|
|
739
|
-
if (s = 0, c = i === "" ? "." : i + ":",
|
|
740
|
-
else if (l = r(e), typeof l == "function") for (l === e.entries && (
|
|
739
|
+
if (s = 0, c = i === "" ? "." : i + ":", le(e)) for (var l = 0; l < e.length; l++) i = e[l], o = c + C(i, l), s += T(i, t, n, o, a);
|
|
740
|
+
else if (l = r(e), typeof l == "function") for (l === e.entries && (_e || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), _e = !0), e = l.call(e), l = 0; !(i = e.next()).done;) i = i.value, o = c + C(i, l++), s += T(i, t, n, o, a);
|
|
741
741
|
else if (o === "object") {
|
|
742
742
|
if (typeof e.then == "function") return T(w(e), t, n, i, a);
|
|
743
743
|
throw t = String(e), Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead.");
|
|
@@ -779,56 +779,56 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
779
779
|
throw e._result;
|
|
780
780
|
}
|
|
781
781
|
function O() {
|
|
782
|
-
var e =
|
|
782
|
+
var e = K.H;
|
|
783
783
|
return e === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), e;
|
|
784
784
|
}
|
|
785
785
|
function k() {
|
|
786
|
-
|
|
786
|
+
K.asyncTransitions--;
|
|
787
787
|
}
|
|
788
788
|
function A(e) {
|
|
789
|
-
if (
|
|
789
|
+
if (q === null) try {
|
|
790
790
|
var n = ("require" + Math.random()).slice(0, 7);
|
|
791
|
-
|
|
791
|
+
q = (t && t[n]).call(t, "timers").setImmediate;
|
|
792
792
|
} catch {
|
|
793
|
-
|
|
794
|
-
!1 ===
|
|
793
|
+
q = function(e) {
|
|
794
|
+
!1 === be && (be = !0, typeof MessageChannel > "u" && console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
795
795
|
var t = new MessageChannel();
|
|
796
796
|
t.port1.onmessage = e, t.port2.postMessage(void 0);
|
|
797
797
|
};
|
|
798
798
|
}
|
|
799
|
-
return
|
|
799
|
+
return q(e);
|
|
800
800
|
}
|
|
801
801
|
function j(e) {
|
|
802
802
|
return 1 < e.length && typeof AggregateError == "function" ? AggregateError(e) : e[0];
|
|
803
803
|
}
|
|
804
804
|
function M(e, t) {
|
|
805
|
-
t !==
|
|
805
|
+
t !== J - 1 && console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), J = t;
|
|
806
806
|
}
|
|
807
807
|
function N(e, t, n) {
|
|
808
|
-
var r =
|
|
808
|
+
var r = K.actQueue;
|
|
809
809
|
if (r !== null) if (r.length !== 0) try {
|
|
810
810
|
P(r), A(function() {
|
|
811
811
|
return N(e, t, n);
|
|
812
812
|
});
|
|
813
813
|
return;
|
|
814
814
|
} catch (e) {
|
|
815
|
-
|
|
815
|
+
K.thrownErrors.push(e);
|
|
816
816
|
}
|
|
817
|
-
else
|
|
818
|
-
0 <
|
|
817
|
+
else K.actQueue = null;
|
|
818
|
+
0 < K.thrownErrors.length ? (r = j(K.thrownErrors), K.thrownErrors.length = 0, n(r)) : t(e);
|
|
819
819
|
}
|
|
820
820
|
function P(e) {
|
|
821
|
-
if (!
|
|
822
|
-
|
|
821
|
+
if (!Se) {
|
|
822
|
+
Se = !0;
|
|
823
823
|
var t = 0;
|
|
824
824
|
try {
|
|
825
825
|
for (; t < e.length; t++) {
|
|
826
826
|
var n = e[t];
|
|
827
827
|
do {
|
|
828
|
-
|
|
828
|
+
K.didUsePromise = !1;
|
|
829
829
|
var r = n(!1);
|
|
830
830
|
if (r !== null) {
|
|
831
|
-
if (
|
|
831
|
+
if (K.didUsePromise) {
|
|
832
832
|
e[t] = n, e.splice(0, t);
|
|
833
833
|
return;
|
|
834
834
|
}
|
|
@@ -838,14 +838,14 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
838
838
|
}
|
|
839
839
|
e.length = 0;
|
|
840
840
|
} catch (n) {
|
|
841
|
-
e.splice(0, t + 1),
|
|
841
|
+
e.splice(0, t + 1), K.thrownErrors.push(n);
|
|
842
842
|
} finally {
|
|
843
|
-
|
|
843
|
+
Se = !1;
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
846
|
}
|
|
847
847
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
848
|
-
var F = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), L = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), z = Symbol.for("react.profiler"), ee = Symbol.for("react.consumer"), te = Symbol.for("react.context"), ne = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), ie = Symbol.for("react.suspense_list"),
|
|
848
|
+
var F = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), L = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), z = Symbol.for("react.profiler"), ee = Symbol.for("react.consumer"), te = Symbol.for("react.context"), ne = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), ie = Symbol.for("react.suspense_list"), ae = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), V = Symbol.for("react.activity"), oe = Symbol.iterator, se = {}, ce = {
|
|
849
849
|
isMounted: function() {
|
|
850
850
|
return !1;
|
|
851
851
|
},
|
|
@@ -858,20 +858,20 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
858
858
|
enqueueSetState: function(e) {
|
|
859
859
|
i(e, "setState");
|
|
860
860
|
}
|
|
861
|
-
},
|
|
862
|
-
Object.freeze(
|
|
861
|
+
}, H = Object.assign, U = {};
|
|
862
|
+
Object.freeze(U), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, t) {
|
|
863
863
|
if (typeof e != "object" && typeof e != "function" && e != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
864
864
|
this.updater.enqueueSetState(this, e, t, "setState");
|
|
865
865
|
}, a.prototype.forceUpdate = function(e) {
|
|
866
866
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
867
867
|
};
|
|
868
|
-
var
|
|
868
|
+
var W = {
|
|
869
869
|
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
870
870
|
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
871
871
|
};
|
|
872
|
-
for (Ce in
|
|
873
|
-
o.prototype = a.prototype,
|
|
874
|
-
var
|
|
872
|
+
for (Ce in W) W.hasOwnProperty(Ce) && n(Ce, W[Ce]);
|
|
873
|
+
o.prototype = a.prototype, W = s.prototype = new o(), W.constructor = s, H(W, a.prototype), W.isPureReactComponent = !0;
|
|
874
|
+
var le = Array.isArray, G = Symbol.for("react.client.reference"), K = {
|
|
875
875
|
H: null,
|
|
876
876
|
A: null,
|
|
877
877
|
T: null,
|
|
@@ -884,13 +884,13 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
884
884
|
thrownErrors: [],
|
|
885
885
|
getCurrentStack: null,
|
|
886
886
|
recentlyCreatedOwnerStacks: 0
|
|
887
|
-
},
|
|
887
|
+
}, ue = Object.prototype.hasOwnProperty, de = console.createTask ? console.createTask : function() {
|
|
888
888
|
return null;
|
|
889
889
|
};
|
|
890
|
-
|
|
890
|
+
W = { react_stack_bottom_frame: function(e) {
|
|
891
891
|
return e();
|
|
892
892
|
} };
|
|
893
|
-
var
|
|
893
|
+
var fe, pe, me = {}, he = W.react_stack_bottom_frame.bind(W, m)(), ge = de(f(m)), _e = !1, ve = /\/+/g, ye = typeof reportError == "function" ? reportError : function(e) {
|
|
894
894
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
895
895
|
var t = new window.ErrorEvent("error", {
|
|
896
896
|
bubbles: !0,
|
|
@@ -904,12 +904,12 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
904
904
|
return;
|
|
905
905
|
}
|
|
906
906
|
console.error(e);
|
|
907
|
-
},
|
|
907
|
+
}, be = !1, q = null, J = 0, xe = !1, Se = !1, Y = typeof queueMicrotask == "function" ? function(e) {
|
|
908
908
|
queueMicrotask(function() {
|
|
909
909
|
return queueMicrotask(e);
|
|
910
910
|
});
|
|
911
911
|
} : A;
|
|
912
|
-
|
|
912
|
+
W = Object.freeze({
|
|
913
913
|
__proto__: null,
|
|
914
914
|
c: function(e) {
|
|
915
915
|
return O().useMemoCache(e);
|
|
@@ -938,20 +938,20 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
938
938
|
return e;
|
|
939
939
|
}
|
|
940
940
|
};
|
|
941
|
-
e.Activity =
|
|
942
|
-
var t =
|
|
943
|
-
|
|
944
|
-
var r =
|
|
941
|
+
e.Activity = V, e.Children = Ce, e.Component = a, e.Fragment = L, e.Profiler = z, e.PureComponent = s, e.StrictMode = R, e.Suspense = re, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = K, e.__COMPILER_RUNTIME = W, e.act = function(e) {
|
|
942
|
+
var t = K.actQueue, n = J;
|
|
943
|
+
J++;
|
|
944
|
+
var r = K.actQueue = t === null ? [] : t, i = !1;
|
|
945
945
|
try {
|
|
946
946
|
var a = e();
|
|
947
947
|
} catch (e) {
|
|
948
|
-
|
|
948
|
+
K.thrownErrors.push(e);
|
|
949
949
|
}
|
|
950
|
-
if (0 <
|
|
950
|
+
if (0 < K.thrownErrors.length) throw M(t, n), e = j(K.thrownErrors), K.thrownErrors.length = 0, e;
|
|
951
951
|
if (typeof a == "object" && a && typeof a.then == "function") {
|
|
952
952
|
var o = a;
|
|
953
|
-
return
|
|
954
|
-
i ||
|
|
953
|
+
return Y(function() {
|
|
954
|
+
i || xe || (xe = !0, console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
955
955
|
}), { then: function(e, a) {
|
|
956
956
|
i = !0, o.then(function(i) {
|
|
957
957
|
if (M(t, n), n === 0) {
|
|
@@ -960,24 +960,24 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
960
960
|
return N(i, e, a);
|
|
961
961
|
});
|
|
962
962
|
} catch (e) {
|
|
963
|
-
|
|
963
|
+
K.thrownErrors.push(e);
|
|
964
964
|
}
|
|
965
|
-
if (0 <
|
|
966
|
-
var o = j(
|
|
967
|
-
|
|
965
|
+
if (0 < K.thrownErrors.length) {
|
|
966
|
+
var o = j(K.thrownErrors);
|
|
967
|
+
K.thrownErrors.length = 0, a(o);
|
|
968
968
|
}
|
|
969
969
|
} else e(i);
|
|
970
970
|
}, function(e) {
|
|
971
|
-
M(t, n), 0 <
|
|
971
|
+
M(t, n), 0 < K.thrownErrors.length ? (e = j(K.thrownErrors), K.thrownErrors.length = 0, a(e)) : a(e);
|
|
972
972
|
});
|
|
973
973
|
} };
|
|
974
974
|
}
|
|
975
975
|
var s = a;
|
|
976
|
-
if (M(t, n), n === 0 && (P(r), r.length !== 0 &&
|
|
977
|
-
i ||
|
|
978
|
-
}),
|
|
976
|
+
if (M(t, n), n === 0 && (P(r), r.length !== 0 && Y(function() {
|
|
977
|
+
i || xe || (xe = !0, console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"));
|
|
978
|
+
}), K.actQueue = null), 0 < K.thrownErrors.length) throw e = j(K.thrownErrors), K.thrownErrors.length = 0, e;
|
|
979
979
|
return { then: function(e, t) {
|
|
980
|
-
i = !0, n === 0 ? (
|
|
980
|
+
i = !0, n === 0 ? (K.actQueue = r, A(function() {
|
|
981
981
|
return N(s, e, t);
|
|
982
982
|
})) : e(s);
|
|
983
983
|
} };
|
|
@@ -988,21 +988,21 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
988
988
|
}, e.cacheSignal = function() {
|
|
989
989
|
return null;
|
|
990
990
|
}, e.captureOwnerStack = function() {
|
|
991
|
-
var e =
|
|
991
|
+
var e = K.getCurrentStack;
|
|
992
992
|
return e === null ? null : e();
|
|
993
993
|
}, e.cloneElement = function(e, t, n) {
|
|
994
994
|
if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
|
|
995
|
-
var r =
|
|
995
|
+
var r = H({}, e.props), i = e.key, a = e._owner;
|
|
996
996
|
if (t != null) {
|
|
997
997
|
var o;
|
|
998
998
|
a: {
|
|
999
|
-
if (
|
|
999
|
+
if (ue.call(t, "ref") && (o = Object.getOwnPropertyDescriptor(t, "ref").get) && o.isReactWarning) {
|
|
1000
1000
|
o = !1;
|
|
1001
1001
|
break a;
|
|
1002
1002
|
}
|
|
1003
1003
|
o = t.ref !== void 0;
|
|
1004
1004
|
}
|
|
1005
|
-
for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !
|
|
1005
|
+
for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !ue.call(t, s) || s === "key" || s === "__self" || s === "__source" || s === "ref" && t.ref === void 0 || (r[s] = t[s]);
|
|
1006
1006
|
}
|
|
1007
1007
|
var s = arguments.length - 2;
|
|
1008
1008
|
if (s === 1) r.children = n;
|
|
@@ -1029,7 +1029,7 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
1029
1029
|
for (var r = 2; r < arguments.length; r++) b(arguments[r]);
|
|
1030
1030
|
r = {};
|
|
1031
1031
|
var i = null;
|
|
1032
|
-
if (t != null) for (c in
|
|
1032
|
+
if (t != null) for (c in pe || !("__self" in t) || "key" in t || (pe = !0, console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")), h(t) && (u(t.key), i = "" + t.key), t) ue.call(t, c) && c !== "key" && c !== "__self" && c !== "__source" && (r[c] = t[c]);
|
|
1033
1033
|
var a = arguments.length - 2;
|
|
1034
1034
|
if (a === 1) r.children = n;
|
|
1035
1035
|
else if (1 < a) {
|
|
@@ -1038,13 +1038,13 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
if (e && e.defaultProps) for (c in a = e.defaultProps, a) r[c] === void 0 && (r[c] = a[c]);
|
|
1040
1040
|
i && g(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e);
|
|
1041
|
-
var c = 1e4 >
|
|
1042
|
-
return v(e, i, r, p(), c ? Error("react-stack-top-frame") :
|
|
1041
|
+
var c = 1e4 > K.recentlyCreatedOwnerStacks++;
|
|
1042
|
+
return v(e, i, r, p(), c ? Error("react-stack-top-frame") : he, c ? de(f(e)) : ge);
|
|
1043
1043
|
}, e.createRef = function() {
|
|
1044
1044
|
var e = { current: null };
|
|
1045
1045
|
return Object.seal(e), e;
|
|
1046
1046
|
}, e.forwardRef = function(e) {
|
|
1047
|
-
e != null && e.$$typeof ===
|
|
1047
|
+
e != null && e.$$typeof === ae ? console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e == "function" ? e.length !== 0 && e.length !== 2 && console.error("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.") : console.error("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e), e != null && e.defaultProps != null && console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");
|
|
1048
1048
|
var t = {
|
|
1049
1049
|
$$typeof: ne,
|
|
1050
1050
|
render: e
|
|
@@ -1065,7 +1065,7 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
1065
1065
|
_result: e
|
|
1066
1066
|
};
|
|
1067
1067
|
var t = {
|
|
1068
|
-
$$typeof:
|
|
1068
|
+
$$typeof: B,
|
|
1069
1069
|
_payload: e,
|
|
1070
1070
|
_init: D
|
|
1071
1071
|
}, n = {
|
|
@@ -1080,7 +1080,7 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
1080
1080
|
return e._ioInfo = n, t._debugInfo = [{ awaited: n }], t;
|
|
1081
1081
|
}, e.memo = function(e, t) {
|
|
1082
1082
|
e ?? console.error("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e), t = {
|
|
1083
|
-
$$typeof:
|
|
1083
|
+
$$typeof: ae,
|
|
1084
1084
|
type: e,
|
|
1085
1085
|
compare: t === void 0 ? null : t
|
|
1086
1086
|
};
|
|
@@ -1096,15 +1096,15 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
}), t;
|
|
1098
1098
|
}, e.startTransition = function(e) {
|
|
1099
|
-
var t =
|
|
1100
|
-
n._updatedFibers = /* @__PURE__ */ new Set(),
|
|
1099
|
+
var t = K.T, n = {};
|
|
1100
|
+
n._updatedFibers = /* @__PURE__ */ new Set(), K.T = n;
|
|
1101
1101
|
try {
|
|
1102
|
-
var r = e(), i =
|
|
1103
|
-
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (
|
|
1102
|
+
var r = e(), i = K.S;
|
|
1103
|
+
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (K.asyncTransitions++, r.then(k, k), r.then(c, ye));
|
|
1104
1104
|
} catch (e) {
|
|
1105
|
-
|
|
1105
|
+
ye(e);
|
|
1106
1106
|
} finally {
|
|
1107
|
-
t === null && n._updatedFibers && (e = n._updatedFibers.size, n._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), t !== null && n.types !== null && (t.types !== null && t.types !== n.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), t.types = n.types),
|
|
1107
|
+
t === null && n._updatedFibers && (e = n._updatedFibers.size, n._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), t !== null && n.types !== null && (t.types !== null && t.types !== n.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), t.types = n.types), K.T = t;
|
|
1108
1108
|
}
|
|
1109
1109
|
}, e.unstable_useCacheRefresh = function() {
|
|
1110
1110
|
return O().useCacheRefresh();
|
|
@@ -1149,7 +1149,7 @@ var we = /* @__PURE__ */ se(((e) => {
|
|
|
1149
1149
|
return O().useTransition();
|
|
1150
1150
|
}, e.version = "19.2.8", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1151
1151
|
})();
|
|
1152
|
-
})), Ee = (/* @__PURE__ */
|
|
1152
|
+
})), Ee = (/* @__PURE__ */ ce(((e, t) => {
|
|
1153
1153
|
process.env.NODE_ENV === "production" ? t.exports = we() : t.exports = Te();
|
|
1154
1154
|
})))(), De = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1155
1155
|
function Oe(e) {
|
|
@@ -3370,17 +3370,17 @@ function jt(e = {
|
|
|
3370
3370
|
pluralRules: {}
|
|
3371
3371
|
}) {
|
|
3372
3372
|
return {
|
|
3373
|
-
getNumberFormat:
|
|
3373
|
+
getNumberFormat: K((...e) => new Intl.NumberFormat(...e), {
|
|
3374
3374
|
cache: At(e.number),
|
|
3375
|
-
strategy:
|
|
3375
|
+
strategy: be.variadic
|
|
3376
3376
|
}),
|
|
3377
|
-
getDateTimeFormat:
|
|
3377
|
+
getDateTimeFormat: K((...e) => new Intl.DateTimeFormat(...e), {
|
|
3378
3378
|
cache: At(e.dateTime),
|
|
3379
|
-
strategy:
|
|
3379
|
+
strategy: be.variadic
|
|
3380
3380
|
}),
|
|
3381
|
-
getPluralRules:
|
|
3381
|
+
getPluralRules: K((...e) => new Intl.PluralRules(...e), {
|
|
3382
3382
|
cache: At(e.pluralRules),
|
|
3383
|
-
strategy:
|
|
3383
|
+
strategy: be.variadic
|
|
3384
3384
|
})
|
|
3385
3385
|
};
|
|
3386
3386
|
}
|
|
@@ -3481,8 +3481,8 @@ var Mt = class e {
|
|
|
3481
3481
|
//#endregion
|
|
3482
3482
|
//#region ../../../../../.bun/install/cache/links/use-intl@4.13.4+0f58469d5b3bd39f-107a67c20f766037/node_modules/use-intl/dist/esm/production/format-message/index.js
|
|
3483
3483
|
function Nt(...[e, t, n, r]) {
|
|
3484
|
-
if (Array.isArray(t)) throw new J
|
|
3485
|
-
if (typeof t == "object") throw new J
|
|
3484
|
+
if (Array.isArray(t)) throw new q(J.INVALID_MESSAGE, void 0);
|
|
3485
|
+
if (typeof t == "object") throw new q(J.INSUFFICIENT_PATH, void 0);
|
|
3486
3486
|
if (typeof t == "string") {
|
|
3487
3487
|
let e = function(e, t) {
|
|
3488
3488
|
return t || /'[{}<#|']/.test(e) ? void 0 : e;
|
|
@@ -3491,7 +3491,7 @@ function Nt(...[e, t, n, r]) {
|
|
|
3491
3491
|
}
|
|
3492
3492
|
let { cache: i, formats: a, formatters: o, globalFormats: s, locale: c, timeZone: l } = r, u;
|
|
3493
3493
|
o.getMessageFormat ||= function(e, t) {
|
|
3494
|
-
return
|
|
3494
|
+
return Se(((...e) => new Mt(e[0], e[1], e[2], {
|
|
3495
3495
|
formatters: t,
|
|
3496
3496
|
...e[3]
|
|
3497
3497
|
})), e.message);
|
|
@@ -3530,7 +3530,7 @@ function Nt(...[e, t, n, r]) {
|
|
|
3530
3530
|
})
|
|
3531
3531
|
} });
|
|
3532
3532
|
} catch {
|
|
3533
|
-
throw new J
|
|
3533
|
+
throw new q(J.INVALID_MESSAGE, void 0);
|
|
3534
3534
|
}
|
|
3535
3535
|
let d = u.format(n);
|
|
3536
3536
|
return (0, Ee.isValidElement)(d) || Array.isArray(d) || typeof d == "string" ? d : String(d);
|
|
@@ -3565,13 +3565,13 @@ function Rt(e) {
|
|
|
3565
3565
|
if (!r) throw Error(n);
|
|
3566
3566
|
return r;
|
|
3567
3567
|
} catch (e) {
|
|
3568
|
-
return new J
|
|
3568
|
+
return new q(J.MISSING_MESSAGE, e.message);
|
|
3569
3569
|
}
|
|
3570
3570
|
}(e.locale, e.messages, e.namespace);
|
|
3571
3571
|
return function({ cache: e, formats: t, formatters: n, getMessageFallback: r = Ft, locale: i, messagesOrError: a, namespace: o, onError: s, timeZone: c }) {
|
|
3572
|
-
let l = a instanceof
|
|
3572
|
+
let l = a instanceof q;
|
|
3573
3573
|
function u(e, t, n, i) {
|
|
3574
|
-
let a = new
|
|
3574
|
+
let a = new q(t, n);
|
|
3575
3575
|
return s(a), i ?? r({
|
|
3576
3576
|
error: a,
|
|
3577
3577
|
key: e,
|
|
@@ -3592,7 +3592,7 @@ function Rt(e) {
|
|
|
3592
3592
|
try {
|
|
3593
3593
|
g = Lt(i, e, d, o);
|
|
3594
3594
|
} catch (e) {
|
|
3595
|
-
if (!h) return u(d,
|
|
3595
|
+
if (!h) return u(d, J.MISSING_MESSAGE, e.message, h);
|
|
3596
3596
|
g = h;
|
|
3597
3597
|
}
|
|
3598
3598
|
}
|
|
@@ -3616,12 +3616,12 @@ function Rt(e) {
|
|
|
3616
3616
|
});
|
|
3617
3617
|
} catch (e) {
|
|
3618
3618
|
let t, n;
|
|
3619
|
-
return e instanceof
|
|
3619
|
+
return e instanceof q ? (t = e.code, n = e.originalMessage) : (t = J.FORMATTING_ERROR, n = e.message), u(d, t, n, h);
|
|
3620
3620
|
}
|
|
3621
3621
|
}
|
|
3622
3622
|
function f(e, t, n, r) {
|
|
3623
3623
|
let i = d(e, t, n, r);
|
|
3624
|
-
return typeof i == "string" ? i : u(e,
|
|
3624
|
+
return typeof i == "string" ? i : u(e, J.INVALID_MESSAGE, void 0);
|
|
3625
3625
|
}
|
|
3626
3626
|
return f.rich = d, f.markup = (e, t, n, r) => d(e, t, n, r), f.raw = (e) => {
|
|
3627
3627
|
if (l) return s(a), r({
|
|
@@ -3633,7 +3633,7 @@ function Rt(e) {
|
|
|
3633
3633
|
try {
|
|
3634
3634
|
return Lt(i, t, e, o);
|
|
3635
3635
|
} catch (t) {
|
|
3636
|
-
return u(e,
|
|
3636
|
+
return u(e, J.MISSING_MESSAGE, t.message);
|
|
3637
3637
|
}
|
|
3638
3638
|
}, f.has = (e) => {
|
|
3639
3639
|
if (l) return !1;
|
|
@@ -3655,7 +3655,7 @@ var Bt = 86400;
|
|
|
3655
3655
|
7 * Bt, 365 * Bt;
|
|
3656
3656
|
//#endregion
|
|
3657
3657
|
//#region ../../../../../.bun/install/cache/links/use-intl@4.13.4+0f58469d5b3bd39f-107a67c20f766037/node_modules/use-intl/dist/esm/production/core.js
|
|
3658
|
-
function Vt({ _cache: e =
|
|
3658
|
+
function Vt({ _cache: e = xe(), _formatters: t = Ce(e), getMessageFallback: n = Ft, messages: r, namespace: i, onError: a = It, ...o }) {
|
|
3659
3659
|
return function({ messages: e, namespace: t, ...n }, r) {
|
|
3660
3660
|
return e = e[r], t = zt(t, r), Rt({
|
|
3661
3661
|
...n,
|
|
@@ -3726,7 +3726,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3726
3726
|
onClick: n[0] ||= (e) => t.$emit("click", e)
|
|
3727
3727
|
}, [w(t.$slots, "default")], 10, Jt));
|
|
3728
3728
|
}
|
|
3729
|
-
}), Zt = ["checked"], Qt = /*#__PURE__*/
|
|
3729
|
+
}), Zt = ["checked"], Qt = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
3730
3730
|
__name: "Checkbox",
|
|
3731
3731
|
props: {
|
|
3732
3732
|
checked: { type: Boolean },
|
|
@@ -3775,7 +3775,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3775
3775
|
"aria-label",
|
|
3776
3776
|
"aria-selected",
|
|
3777
3777
|
"onClick"
|
|
3778
|
-
], pn = { class: "docx-color-picker__section-label" }, mn = { class: "docx-color-picker__custom" }, hn = ["onKeydown"], gn = ["disabled"], _n = /*#__PURE__*/
|
|
3778
|
+
], pn = { class: "docx-color-picker__section-label" }, mn = { class: "docx-color-picker__custom" }, hn = ["onKeydown"], gn = ["disabled"], _n = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
3779
3779
|
__name: "ColorPicker",
|
|
3780
3780
|
props: {
|
|
3781
3781
|
mode: {},
|
|
@@ -3867,7 +3867,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3867
3867
|
let k = S(!1), A = S(""), j = S(null), P = S(null), R = S(i.defaultColor ?? w(i.mode)), z = r(() => ee(i.theme?.colorScheme ?? null)), ie = r(() => z.value.flatMap((e, t) => e.map((e, n) => ({
|
|
3868
3868
|
...e,
|
|
3869
3869
|
key: `${t}-${n}`
|
|
3870
|
-
})))),
|
|
3870
|
+
})))), ae = r(() => p(i.value)), B = r(() => p(R.value)), V = r(() => E(i.mode)), oe = r(() => i.icon ?? D(i.mode));
|
|
3871
3871
|
N(() => [
|
|
3872
3872
|
i.value,
|
|
3873
3873
|
i.mode,
|
|
@@ -3876,55 +3876,55 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3876
3876
|
let e = p(i.value).replace(/^#/, "");
|
|
3877
3877
|
/^[0-9A-Fa-f]{6}$/.test(e) && (A.value = e.toUpperCase());
|
|
3878
3878
|
}, { immediate: !0 });
|
|
3879
|
-
let
|
|
3880
|
-
function
|
|
3879
|
+
let se = S({});
|
|
3880
|
+
function ce() {
|
|
3881
3881
|
let e = j.value;
|
|
3882
3882
|
if (!e) return;
|
|
3883
3883
|
let t = e.getBoundingClientRect();
|
|
3884
|
-
|
|
3884
|
+
se.value = {
|
|
3885
3885
|
top: `${t.bottom + 4}px`,
|
|
3886
3886
|
left: `${t.left}px`
|
|
3887
3887
|
};
|
|
3888
3888
|
}
|
|
3889
|
-
function
|
|
3890
|
-
i.disabled || (k.value ||
|
|
3889
|
+
function H() {
|
|
3890
|
+
i.disabled || (k.value || ce(), k.value = !k.value);
|
|
3891
3891
|
}
|
|
3892
|
-
function
|
|
3892
|
+
function U(e, t = !0) {
|
|
3893
3893
|
t && (R.value = e), u("change", e), k.value = !1;
|
|
3894
3894
|
}
|
|
3895
|
-
function
|
|
3895
|
+
function W() {
|
|
3896
3896
|
i.disabled || u("change", R.value);
|
|
3897
3897
|
}
|
|
3898
|
-
function
|
|
3898
|
+
function le(e) {
|
|
3899
3899
|
if (i.mode === "highlight") {
|
|
3900
|
-
|
|
3900
|
+
U(e.hex);
|
|
3901
3901
|
return;
|
|
3902
3902
|
}
|
|
3903
3903
|
let t = {
|
|
3904
3904
|
themeColor: e.themeSlot,
|
|
3905
3905
|
rgb: e.hex
|
|
3906
3906
|
};
|
|
3907
|
-
e.tint && (t.themeTint = e.tint), e.shade && (t.themeShade = e.shade),
|
|
3908
|
-
}
|
|
3909
|
-
function q(e) {
|
|
3910
|
-
W(i.mode === "highlight" ? e : { rgb: e });
|
|
3907
|
+
e.tint && (t.themeTint = e.tint), e.shade && (t.themeShade = e.shade), U(t);
|
|
3911
3908
|
}
|
|
3912
|
-
function
|
|
3913
|
-
|
|
3909
|
+
function K(e) {
|
|
3910
|
+
U(i.mode === "highlight" ? e : { rgb: e });
|
|
3914
3911
|
}
|
|
3915
3912
|
function ue() {
|
|
3913
|
+
U(i.mode === "highlight" ? "none" : { auto: !0 }, !1);
|
|
3914
|
+
}
|
|
3915
|
+
function de() {
|
|
3916
3916
|
let e = A.value.replace(/^#/, "").toUpperCase();
|
|
3917
|
-
m(e) && (
|
|
3917
|
+
m(e) && (U(i.mode === "highlight" ? e : { rgb: e }), A.value = "");
|
|
3918
3918
|
}
|
|
3919
|
-
function
|
|
3919
|
+
function fe(e) {
|
|
3920
3920
|
e.target instanceof HTMLInputElement || e.preventDefault();
|
|
3921
3921
|
}
|
|
3922
|
-
function
|
|
3922
|
+
function pe(e) {
|
|
3923
3923
|
if (!k.value) return;
|
|
3924
3924
|
let t = e.target;
|
|
3925
3925
|
t instanceof Node && (j.value?.contains(t) || P.value?.contains(t) || (k.value = !1));
|
|
3926
3926
|
}
|
|
3927
|
-
return v(() => document.addEventListener("mousedown",
|
|
3927
|
+
return v(() => document.addEventListener("mousedown", pe)), _(() => document.removeEventListener("mousedown", pe)), (n, r) => (y(), o("div", {
|
|
3928
3928
|
ref_key: "containerRef",
|
|
3929
3929
|
ref: j,
|
|
3930
3930
|
class: h(["docx-color-picker", e.className]),
|
|
@@ -3936,27 +3936,27 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3936
3936
|
type: "button",
|
|
3937
3937
|
class: "docx-color-picker__apply",
|
|
3938
3938
|
disabled: e.disabled,
|
|
3939
|
-
title: e.title ??
|
|
3940
|
-
"aria-label": e.title ??
|
|
3939
|
+
title: e.title ?? V.value,
|
|
3940
|
+
"aria-label": e.title ?? V.value,
|
|
3941
3941
|
onMousedown: r[0] ||= L(() => {}, ["prevent"]),
|
|
3942
|
-
onClick:
|
|
3943
|
-
}, [l(
|
|
3944
|
-
name:
|
|
3942
|
+
onClick: W
|
|
3943
|
+
}, [l(G, {
|
|
3944
|
+
name: oe.value,
|
|
3945
3945
|
size: 18
|
|
3946
3946
|
}, null, 8, ["name"]), s("span", {
|
|
3947
|
-
class: h(["docx-color-picker__bar", { "is-light":
|
|
3948
|
-
style: g({ background:
|
|
3947
|
+
class: h(["docx-color-picker__bar", { "is-light": B.value === "transparent" || b(B.value) }]),
|
|
3948
|
+
style: g({ background: B.value === "transparent" ? "#fff" : B.value })
|
|
3949
3949
|
}, null, 6)], 40, $t), s("button", {
|
|
3950
3950
|
type: "button",
|
|
3951
3951
|
class: h(["docx-color-picker__arrow", { "is-open": k.value }]),
|
|
3952
3952
|
disabled: e.disabled,
|
|
3953
|
-
title: e.title ??
|
|
3954
|
-
"aria-label": e.title ??
|
|
3953
|
+
title: e.title ?? V.value,
|
|
3954
|
+
"aria-label": e.title ?? V.value,
|
|
3955
3955
|
"aria-haspopup": "true",
|
|
3956
3956
|
"aria-expanded": k.value,
|
|
3957
3957
|
onMousedown: r[1] ||= L(() => {}, ["prevent"]),
|
|
3958
|
-
onClick:
|
|
3959
|
-
}, [l(
|
|
3958
|
+
onClick: H
|
|
3959
|
+
}, [l(G, {
|
|
3960
3960
|
name: "arrow_drop_down",
|
|
3961
3961
|
size: 18
|
|
3962
3962
|
})], 42, en)], 2)) : (y(), o("button", {
|
|
@@ -3964,19 +3964,19 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3964
3964
|
type: "button",
|
|
3965
3965
|
class: h(["docx-color-picker__button", { "is-open": k.value }]),
|
|
3966
3966
|
disabled: e.disabled,
|
|
3967
|
-
title: e.title ??
|
|
3968
|
-
"aria-label": e.title ??
|
|
3967
|
+
title: e.title ?? V.value,
|
|
3968
|
+
"aria-label": e.title ?? V.value,
|
|
3969
3969
|
"aria-haspopup": "true",
|
|
3970
3970
|
"aria-expanded": k.value,
|
|
3971
3971
|
onMousedown: r[2] ||= L(() => {}, ["prevent"]),
|
|
3972
|
-
onClick:
|
|
3973
|
-
}, [s("span", nn, [l(
|
|
3974
|
-
name:
|
|
3972
|
+
onClick: H
|
|
3973
|
+
}, [s("span", nn, [l(G, {
|
|
3974
|
+
name: oe.value,
|
|
3975
3975
|
size: 18
|
|
3976
3976
|
}, null, 8, ["name"]), s("span", {
|
|
3977
|
-
class: h(["docx-color-picker__bar", { "is-light":
|
|
3978
|
-
style: g({ background:
|
|
3979
|
-
}, null, 6)]), l(
|
|
3977
|
+
class: h(["docx-color-picker__bar", { "is-light": ae.value === "transparent" || b(ae.value) }]),
|
|
3978
|
+
style: g({ background: ae.value === "transparent" ? "#fff" : ae.value })
|
|
3979
|
+
}, null, 6)]), l(G, {
|
|
3980
3980
|
name: "arrow_drop_down",
|
|
3981
3981
|
size: 14
|
|
3982
3982
|
})], 42, tn)), k.value && !e.disabled ? (y(), o("div", {
|
|
@@ -3984,16 +3984,16 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3984
3984
|
ref_key: "panelRef",
|
|
3985
3985
|
ref: P,
|
|
3986
3986
|
class: "docx-color-picker__panel",
|
|
3987
|
-
style: g(
|
|
3987
|
+
style: g(se.value),
|
|
3988
3988
|
role: "dialog",
|
|
3989
|
-
"aria-label": O(d)("colorPicker.ariaLabel", { type:
|
|
3990
|
-
onMousedown:
|
|
3989
|
+
"aria-label": O(d)("colorPicker.ariaLabel", { type: V.value }),
|
|
3990
|
+
onMousedown: fe
|
|
3991
3991
|
}, [
|
|
3992
3992
|
s("button", {
|
|
3993
3993
|
type: "button",
|
|
3994
3994
|
class: "docx-color-picker__auto",
|
|
3995
3995
|
onMousedown: r[3] ||= L(() => {}, ["prevent"]),
|
|
3996
|
-
onClick:
|
|
3996
|
+
onClick: ue
|
|
3997
3997
|
}, [e.mode === "highlight" ? (y(), o("span", an, [...r[10] ||= [s("span", { class: "docx-color-picker__auto-slash" }, null, -1)]])) : (y(), o("span", on)), c(" " + T(e.autoLabel ?? (e.mode === "highlight" ? O(d)("colorPicker.noColor") : O(d)("colorPicker.automatic"))), 1)], 32),
|
|
3998
3998
|
r[12] ||= s("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
3999
3999
|
s("div", sn, T(O(d)("colorPicker.themeColors")), 1),
|
|
@@ -4006,7 +4006,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4006
4006
|
"aria-label": t.label,
|
|
4007
4007
|
"aria-selected": x(e.value, t.hex),
|
|
4008
4008
|
onMousedown: r[4] ||= L(() => {}, ["prevent"]),
|
|
4009
|
-
onClick: (e) =>
|
|
4009
|
+
onClick: (e) => le(t)
|
|
4010
4010
|
}, null, 46, ln))), 128))]),
|
|
4011
4011
|
r[13] ||= s("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4012
4012
|
s("div", un, T(O(d)("colorPicker.standardColors")), 1),
|
|
@@ -4019,7 +4019,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4019
4019
|
"aria-label": O(d)(t.nameKey),
|
|
4020
4020
|
"aria-selected": x(e.value, t.hex),
|
|
4021
4021
|
onMousedown: r[5] ||= L(() => {}, ["prevent"]),
|
|
4022
|
-
onClick: (e) =>
|
|
4022
|
+
onClick: (e) => K(t.hex)
|
|
4023
4023
|
}, null, 46, fn)), 64))]),
|
|
4024
4024
|
r[14] ||= s("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4025
4025
|
s("div", pn, T(O(d)("colorPicker.customColor")), 1),
|
|
@@ -4033,7 +4033,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4033
4033
|
maxlength: "6",
|
|
4034
4034
|
"aria-label": "Custom hex color",
|
|
4035
4035
|
onInput: r[7] ||= (e) => A.value = A.value.replace(/[^0-9A-Fa-f]/g, "").slice(0, 6),
|
|
4036
|
-
onKeydown: I(L(
|
|
4036
|
+
onKeydown: I(L(de, ["prevent"]), ["enter"]),
|
|
4037
4037
|
onMousedown: r[8] ||= L(() => {}, ["stop"])
|
|
4038
4038
|
}, null, 40, hn), [[M, A.value]]),
|
|
4039
4039
|
s("button", {
|
|
@@ -4041,12 +4041,12 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4041
4041
|
class: "docx-color-picker__apply-btn",
|
|
4042
4042
|
disabled: !m(A.value),
|
|
4043
4043
|
onMousedown: r[9] ||= L(() => {}, ["prevent"]),
|
|
4044
|
-
onClick:
|
|
4044
|
+
onClick: de
|
|
4045
4045
|
}, T(O(d)("common.apply")), 41, gn)
|
|
4046
4046
|
])
|
|
4047
4047
|
], 44, rn)) : a("", !0)], 6));
|
|
4048
4048
|
}
|
|
4049
|
-
}), [["__scopeId", "data-v-ea554ffa"]]), vn = ["value", "autofocus"], yn = /*#__PURE__*/
|
|
4049
|
+
}), [["__scopeId", "data-v-ea554ffa"]]), vn = ["value", "autofocus"], yn = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4050
4050
|
__name: "DatePickerPopover",
|
|
4051
4051
|
props: {
|
|
4052
4052
|
value: {},
|
|
@@ -4073,7 +4073,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4073
4073
|
onChange: c
|
|
4074
4074
|
}, null, 40, vn));
|
|
4075
4075
|
}
|
|
4076
|
-
}), [["__scopeId", "data-v-3101462d"]]), bn = ["aria-label"], xn = /*#__PURE__*/
|
|
4076
|
+
}), [["__scopeId", "data-v-3101462d"]]), bn = ["aria-label"], xn = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4077
4077
|
inheritAttrs: !1,
|
|
4078
4078
|
__name: "Dialog",
|
|
4079
4079
|
props: {
|
|
@@ -4108,7 +4108,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4108
4108
|
onMousedown: r[0] ||= L(() => {}, ["stop"])
|
|
4109
4109
|
}), [w(t.$slots, "default", {}, void 0, !0)], 16, bn)], 34)) : a("", !0)]));
|
|
4110
4110
|
}
|
|
4111
|
-
}), [["__scopeId", "data-v-76309dbc"]]), Sn = ["value"], Cn = /*#__PURE__*/
|
|
4111
|
+
}), [["__scopeId", "data-v-76309dbc"]]), Sn = ["value"], Cn = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4112
4112
|
__name: "Input",
|
|
4113
4113
|
props: {
|
|
4114
4114
|
modelValue: {},
|
|
@@ -4133,7 +4133,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4133
4133
|
onInput: i
|
|
4134
4134
|
}, null, 42, Sn));
|
|
4135
4135
|
}
|
|
4136
|
-
}), [["__scopeId", "data-v-a34b139d"]]), wn = 4, Tn = /*#__PURE__*/
|
|
4136
|
+
}), [["__scopeId", "data-v-a34b139d"]]), wn = 4, Tn = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4137
4137
|
__name: "Popover",
|
|
4138
4138
|
props: {
|
|
4139
4139
|
open: { type: Boolean },
|
|
@@ -4169,7 +4169,13 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4169
4169
|
e.key === "Escape" && n.open && d();
|
|
4170
4170
|
}
|
|
4171
4171
|
function m(e) {
|
|
4172
|
-
!n.closeOnScroll || !n.open
|
|
4172
|
+
if (!(!n.closeOnScroll || !n.open) && !(e.target instanceof Node && s.value?.contains(e.target))) {
|
|
4173
|
+
if (e.target instanceof Node && e.target !== document && i.value && e.target.contains(i.value)) {
|
|
4174
|
+
l();
|
|
4175
|
+
return;
|
|
4176
|
+
}
|
|
4177
|
+
d();
|
|
4178
|
+
}
|
|
4173
4179
|
}
|
|
4174
4180
|
function b() {
|
|
4175
4181
|
n.open && l();
|
|
@@ -4200,7 +4206,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4200
4206
|
onMousedown: n[0] ||= L(() => {}, ["stop"])
|
|
4201
4207
|
}, [w(t.$slots, "panel", {}, void 0, !0)], 38)) : a("", !0)], 512));
|
|
4202
4208
|
}
|
|
4203
|
-
}), [["__scopeId", "data-v-
|
|
4209
|
+
}), [["__scopeId", "data-v-f138860e"]]), En = ["disabled", "onClick"], Dn = {
|
|
4204
4210
|
key: 0,
|
|
4205
4211
|
class: "docx-menu-dropdown__separator"
|
|
4206
4212
|
}, On = ["onMouseenter", "onMouseleave"], kn = ["disabled", "onClick"], An = { class: "docx-menu-dropdown__label" }, jn = {
|
|
@@ -4212,7 +4218,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4212
4218
|
}, Nn = {
|
|
4213
4219
|
key: 0,
|
|
4214
4220
|
class: "docx-menu-dropdown__submenu"
|
|
4215
|
-
}, Pn = /*#__PURE__*/
|
|
4221
|
+
}, Pn = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4216
4222
|
__name: "MenuDropdown",
|
|
4217
4223
|
props: {
|
|
4218
4224
|
label: {},
|
|
@@ -4245,7 +4251,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4245
4251
|
disabled: e.disabled,
|
|
4246
4252
|
onMousedown: m[0] ||= L(() => {}, ["prevent"]),
|
|
4247
4253
|
onClick: L(t, ["prevent"])
|
|
4248
|
-
}, [c(T(e.label) + " ", 1), e.showChevron ? (y(), i(
|
|
4254
|
+
}, [c(T(e.label) + " ", 1), e.showChevron ? (y(), i(G, {
|
|
4249
4255
|
key: 0,
|
|
4250
4256
|
name: "arrow_drop_down",
|
|
4251
4257
|
size: 16
|
|
@@ -4264,14 +4270,14 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4264
4270
|
disabled: e.disabled,
|
|
4265
4271
|
onClick: L((t) => f(e), ["prevent"])
|
|
4266
4272
|
}, [
|
|
4267
|
-
e.icon ? (y(), i(
|
|
4273
|
+
e.icon ? (y(), i(G, {
|
|
4268
4274
|
key: 0,
|
|
4269
4275
|
name: e.icon,
|
|
4270
4276
|
size: 18
|
|
4271
4277
|
}, null, 8, ["name"])) : a("", !0),
|
|
4272
4278
|
s("span", An, T(e.label), 1),
|
|
4273
4279
|
e.shortcut ? (y(), o("span", jn, T(e.shortcut), 1)) : a("", !0),
|
|
4274
|
-
e.submenu ? (y(), o("span", Mn, [l(
|
|
4280
|
+
e.submenu ? (y(), o("span", Mn, [l(G, {
|
|
4275
4281
|
name: "keyboard_arrow_right",
|
|
4276
4282
|
size: 16
|
|
4277
4283
|
})])) : a("", !0)
|
|
@@ -4283,42 +4289,131 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4283
4289
|
}, 8, ["open"]));
|
|
4284
4290
|
}
|
|
4285
4291
|
}), [["__scopeId", "data-v-3a0c2cb3"]]), Fn = ["aria-label"], In = [
|
|
4292
|
+
"data-depth",
|
|
4286
4293
|
"aria-current",
|
|
4294
|
+
"aria-label",
|
|
4287
4295
|
"title",
|
|
4288
|
-
"
|
|
4289
|
-
|
|
4296
|
+
"tabindex",
|
|
4297
|
+
"onClick",
|
|
4298
|
+
"onFocus"
|
|
4299
|
+
], Ln = {
|
|
4300
|
+
"aria-hidden": "true",
|
|
4301
|
+
class: "folio-outline-tick-label"
|
|
4302
|
+
}, Rn = {
|
|
4303
|
+
key: 1,
|
|
4304
|
+
class: "folio-outline-item-label"
|
|
4305
|
+
}, zn = 12, Bn = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4290
4306
|
__name: "OutlineRail",
|
|
4291
4307
|
props: {
|
|
4292
4308
|
items: {},
|
|
4293
|
-
getScrollContainer: {
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4309
|
+
getScrollContainer: {},
|
|
4310
|
+
resolvePct: {},
|
|
4311
|
+
onJump: {},
|
|
4312
|
+
activeId: { default: null },
|
|
4313
|
+
topOffset: {},
|
|
4314
|
+
panelWidth: {},
|
|
4315
|
+
ariaLabel: { default: "Outline" },
|
|
4316
|
+
presentation: { default: "panel" }
|
|
4297
4317
|
},
|
|
4298
4318
|
setup(e) {
|
|
4299
|
-
let n = e
|
|
4300
|
-
|
|
4319
|
+
let n = e, i = S(null), c = S(0), l = S(0), u = S(!1), d = r(() => n.items.findIndex((e) => e.id === n.activeId)), f = r(() => {
|
|
4320
|
+
let e = Infinity;
|
|
4321
|
+
for (let t of n.items) e = Math.min(e, t.level);
|
|
4322
|
+
return e;
|
|
4323
|
+
}), p = (e) => n.presentation === "rail" ? ["folio-outline-tick", e.id === n.activeId ? "folio-outline-tick--active" : void 0] : ["folio-outline-item", e.id === n.activeId ? "folio-outline-item--active" : void 0];
|
|
4324
|
+
N(d, (e) => {
|
|
4325
|
+
!u.value && e >= 0 && (l.value = e);
|
|
4326
|
+
}, { immediate: !0 }), N([d, () => n.presentation], async ([e, t]) => {
|
|
4327
|
+
if (t !== "panel" || e < 0) return;
|
|
4328
|
+
await m();
|
|
4329
|
+
let n = i.value, r = n?.children.item(e);
|
|
4330
|
+
if (!(r instanceof HTMLElement) || !n) return;
|
|
4331
|
+
let a = r.offsetTop, o = a + r.offsetHeight;
|
|
4332
|
+
a < n.scrollTop ? n.scrollTop = a : o > n.scrollTop + n.clientHeight && (n.scrollTop = o - n.clientHeight);
|
|
4333
|
+
}, {
|
|
4334
|
+
immediate: !0,
|
|
4335
|
+
flush: "post"
|
|
4336
|
+
});
|
|
4337
|
+
let v = null;
|
|
4338
|
+
N([i, () => n.presentation], ([e, t]) => {
|
|
4339
|
+
v?.disconnect(), v = null, c.value = 0, !(t !== "rail" || !e || typeof ResizeObserver > "u") && (c.value = e.clientHeight, v = new ResizeObserver(() => {
|
|
4340
|
+
c.value = e.clientHeight;
|
|
4341
|
+
}), v.observe(e));
|
|
4342
|
+
}, { flush: "post" }), _(() => v?.disconnect());
|
|
4343
|
+
let b = r(() => {
|
|
4344
|
+
if (n.presentation !== "rail" || c.value === 0) return [];
|
|
4345
|
+
let e = Math.max(0, c.value - zn), t = n.items.length;
|
|
4346
|
+
if (t * zn > c.value) {
|
|
4347
|
+
let r = t > 1 ? e / (t - 1) : 0;
|
|
4348
|
+
return n.items.map((e, t) => t * r);
|
|
4349
|
+
}
|
|
4350
|
+
let r = n.getScrollContainer(), i = n.items.map((i, a) => {
|
|
4351
|
+
let o = r ? n.resolvePct?.(i.id, r) ?? null : null;
|
|
4352
|
+
return (o === null ? a / Math.max(1, t - 1) : o / 100) * e;
|
|
4353
|
+
});
|
|
4354
|
+
for (let e = 1; e < i.length; e++) i[e] = Math.max(i[e] ?? 0, (i[e - 1] ?? 0) + zn);
|
|
4355
|
+
for (let t = i.length - 1; t >= 0; t--) {
|
|
4356
|
+
let n = t === i.length - 1 ? e : (i[t + 1] ?? e) - zn;
|
|
4357
|
+
i[t] = Math.min(i[t] ?? 0, n);
|
|
4358
|
+
}
|
|
4359
|
+
return i;
|
|
4360
|
+
}), x = (e) => {
|
|
4301
4361
|
let t = n.getScrollContainer();
|
|
4302
4362
|
t && n.onJump(e, t);
|
|
4303
|
-
}
|
|
4304
|
-
|
|
4363
|
+
}, w = (e) => {
|
|
4364
|
+
let t = n.items.length - 1, r;
|
|
4365
|
+
switch (e.key) {
|
|
4366
|
+
case "ArrowDown":
|
|
4367
|
+
r = Math.min(t, l.value + 1);
|
|
4368
|
+
break;
|
|
4369
|
+
case "ArrowUp":
|
|
4370
|
+
r = Math.max(0, l.value - 1);
|
|
4371
|
+
break;
|
|
4372
|
+
case "Home":
|
|
4373
|
+
r = 0;
|
|
4374
|
+
break;
|
|
4375
|
+
case "End":
|
|
4376
|
+
r = t;
|
|
4377
|
+
break;
|
|
4378
|
+
default: return;
|
|
4379
|
+
}
|
|
4380
|
+
e.preventDefault(), l.value = r, i.value?.querySelectorAll("button").item(r)?.focus();
|
|
4381
|
+
}, E = (e) => {
|
|
4382
|
+
e.relatedTarget instanceof Node && i.value?.contains(e.relatedTarget) || (u.value = !1);
|
|
4383
|
+
};
|
|
4384
|
+
return (n, r) => e.items.length >= 2 ? (y(), o("ol", {
|
|
4305
4385
|
key: 0,
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4386
|
+
ref_key: "listRef",
|
|
4387
|
+
ref: i,
|
|
4388
|
+
"aria-label": e.ariaLabel,
|
|
4389
|
+
class: h(e.presentation === "rail" ? "folio-outline-ticks" : "folio-outline-list"),
|
|
4390
|
+
onKeydown: w,
|
|
4391
|
+
onFocusin: r[0] ||= (e) => u.value = !0,
|
|
4392
|
+
onFocusout: E
|
|
4393
|
+
}, [(y(!0), o(t, null, C(e.items, (n, i) => (y(), o("li", {
|
|
4394
|
+
key: n.id,
|
|
4395
|
+
class: h(e.presentation === "rail" ? "folio-outline-tick-slot" : void 0),
|
|
4396
|
+
style: g(e.presentation === "rail" ? { top: (b.value[i] ?? 0) + "px" } : void 0)
|
|
4397
|
+
}, [s("button", {
|
|
4309
4398
|
type: "button",
|
|
4310
|
-
class: h(
|
|
4311
|
-
"
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4399
|
+
class: h(p(n)),
|
|
4400
|
+
"data-depth": Math.min(4, n.level - f.value),
|
|
4401
|
+
"aria-current": n.id === e.activeId ? "true" : void 0,
|
|
4402
|
+
"aria-label": e.presentation === "rail" ? n.label : void 0,
|
|
4403
|
+
title: e.presentation === "panel" ? n.label : void 0,
|
|
4404
|
+
tabindex: i === l.value ? 0 : -1,
|
|
4405
|
+
onClick: (e) => x(n.id),
|
|
4406
|
+
onFocus: (e) => l.value = i
|
|
4407
|
+
}, [e.presentation === "rail" ? (y(), o(t, { key: 0 }, [r[1] ||= s("span", {
|
|
4408
|
+
"aria-hidden": "true",
|
|
4409
|
+
class: "folio-outline-tick-mark"
|
|
4410
|
+
}, null, -1), s("span", Ln, T(n.label), 1)], 64)) : (y(), o("span", Rn, T(n.label), 1))], 42, In)], 6))), 128))], 42, Fn)) : a("", !0);
|
|
4316
4411
|
}
|
|
4317
|
-
}), [["__scopeId", "data-v-
|
|
4412
|
+
}), [["__scopeId", "data-v-962a19e0"]]), Vn = ["disabled", "value"], Hn = {
|
|
4318
4413
|
key: 0,
|
|
4319
4414
|
disabled: "",
|
|
4320
4415
|
value: ""
|
|
4321
|
-
},
|
|
4416
|
+
}, Un = ["disabled", "value"], Wn = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4322
4417
|
__name: "Select",
|
|
4323
4418
|
props: {
|
|
4324
4419
|
value: {},
|
|
@@ -4338,49 +4433,49 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4338
4433
|
disabled: e.disabled,
|
|
4339
4434
|
value: e.value,
|
|
4340
4435
|
onChange: i
|
|
4341
|
-
}, [e.placeholder && e.value === void 0 ? (y(), o("option",
|
|
4436
|
+
}, [e.placeholder && e.value === void 0 ? (y(), o("option", Hn, T(e.placeholder), 1)) : a("", !0), (y(!0), o(t, null, C(e.items, (e) => (y(), o("option", {
|
|
4342
4437
|
key: e.value,
|
|
4343
4438
|
disabled: e.disabled,
|
|
4344
4439
|
value: e.value
|
|
4345
|
-
}, T(e.label), 9,
|
|
4440
|
+
}, T(e.label), 9, Un))), 128))], 42, Vn));
|
|
4346
4441
|
}
|
|
4347
|
-
}), [["__scopeId", "data-v-ce79245b"]]),
|
|
4442
|
+
}), [["__scopeId", "data-v-ce79245b"]]), Gn = {
|
|
4348
4443
|
Button: Xt,
|
|
4349
4444
|
Dialog: xn,
|
|
4350
|
-
Select:
|
|
4445
|
+
Select: Wn,
|
|
4351
4446
|
Menu: Pn,
|
|
4352
4447
|
Popover: Tn,
|
|
4353
4448
|
Input: Cn,
|
|
4354
4449
|
Checkbox: Qt,
|
|
4355
4450
|
ColorPicker: _n,
|
|
4356
4451
|
DatePickerPopover: yn,
|
|
4357
|
-
OutlineRail:
|
|
4358
|
-
},
|
|
4359
|
-
function
|
|
4452
|
+
OutlineRail: Bn
|
|
4453
|
+
}, Kn = Symbol("folio-ui-components");
|
|
4454
|
+
function qn(e) {
|
|
4360
4455
|
return e ? {
|
|
4361
|
-
...
|
|
4456
|
+
...Gn,
|
|
4362
4457
|
...e
|
|
4363
|
-
} :
|
|
4458
|
+
} : Gn;
|
|
4364
4459
|
}
|
|
4365
|
-
function
|
|
4366
|
-
b(
|
|
4460
|
+
function Jn(e) {
|
|
4461
|
+
b(Kn, qn(e));
|
|
4367
4462
|
}
|
|
4368
4463
|
function Q() {
|
|
4369
|
-
return d(
|
|
4464
|
+
return d(Kn, Gn);
|
|
4370
4465
|
}
|
|
4371
|
-
var
|
|
4466
|
+
var Yn = u({
|
|
4372
4467
|
name: "FolioUIProvider",
|
|
4373
4468
|
props: { components: {
|
|
4374
4469
|
type: Object,
|
|
4375
4470
|
default: void 0
|
|
4376
4471
|
} },
|
|
4377
4472
|
setup(e, { slots: t }) {
|
|
4378
|
-
return
|
|
4473
|
+
return Jn(e.components), () => t.default?.();
|
|
4379
4474
|
}
|
|
4380
|
-
}),
|
|
4475
|
+
}), Xn = { class: "find-replace-dialog__header" }, Zn = { class: "find-replace-dialog__title" }, Qn = { class: "find-replace-dialog__body" }, $n = { class: "find-replace-dialog__row" }, er = { class: "find-replace-dialog__count" }, tr = { class: "find-replace-dialog__options" }, nr = {
|
|
4381
4476
|
key: 0,
|
|
4382
4477
|
class: "find-replace-dialog__row"
|
|
4383
|
-
},
|
|
4478
|
+
}, rr = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4384
4479
|
__name: "FindReplaceDialog",
|
|
4385
4480
|
props: {
|
|
4386
4481
|
isOpen: { type: Boolean },
|
|
@@ -4411,7 +4506,7 @@ var Kn = u({
|
|
|
4411
4506
|
"data-testid": "find-replace-dialog",
|
|
4412
4507
|
onMousedown: n[5] ||= L(() => {}, ["stop"]),
|
|
4413
4508
|
onKeydown: n[6] ||= L(() => {}, ["stop"])
|
|
4414
|
-
}, [s("div",
|
|
4509
|
+
}, [s("div", Xn, [s("span", Zn, T(b.value ? O(i)("findReplace.findAndReplace") : O(i)("findReplace.find")), 1), l(O(u), {
|
|
4415
4510
|
class: "find-replace-dialog__close",
|
|
4416
4511
|
variant: "ghost",
|
|
4417
4512
|
size: "icon-xs",
|
|
@@ -4420,8 +4515,8 @@ var Kn = u({
|
|
|
4420
4515
|
}, {
|
|
4421
4516
|
default: P(() => [...n[7] ||= [c(" ✕ ", -1)]]),
|
|
4422
4517
|
_: 1
|
|
4423
|
-
}, 8, ["title"])]), s("div",
|
|
4424
|
-
s("div",
|
|
4518
|
+
}, 8, ["title"])]), s("div", Qn, [
|
|
4519
|
+
s("div", $n, [
|
|
4425
4520
|
l(O(d), {
|
|
4426
4521
|
ref_key: "searchInputRef",
|
|
4427
4522
|
ref: v,
|
|
@@ -4439,7 +4534,7 @@ var Kn = u({
|
|
|
4439
4534
|
"aria-label",
|
|
4440
4535
|
"onInput"
|
|
4441
4536
|
]),
|
|
4442
|
-
s("span",
|
|
4537
|
+
s("span", er, T(ne.value), 1),
|
|
4443
4538
|
l(O(u), {
|
|
4444
4539
|
variant: "ghost",
|
|
4445
4540
|
size: "icon-xs",
|
|
@@ -4459,7 +4554,7 @@ var Kn = u({
|
|
|
4459
4554
|
_: 1
|
|
4460
4555
|
}, 8, ["title", "onMousedown"])
|
|
4461
4556
|
]),
|
|
4462
|
-
s("div",
|
|
4557
|
+
s("div", tr, [
|
|
4463
4558
|
s("label", null, [l(O(p), {
|
|
4464
4559
|
checked: ee.value,
|
|
4465
4560
|
"onUpdate:checked": n[1] ||= (e) => {
|
|
@@ -4484,7 +4579,7 @@ var Kn = u({
|
|
|
4484
4579
|
_: 1
|
|
4485
4580
|
}, 8, ["class", "title"])
|
|
4486
4581
|
]),
|
|
4487
|
-
b.value ? (y(), o("div",
|
|
4582
|
+
b.value ? (y(), o("div", nr, [
|
|
4488
4583
|
l(O(d), {
|
|
4489
4584
|
modelValue: O(C),
|
|
4490
4585
|
"onUpdate:modelValue": n[4] ||= (e) => f(C) ? C.value = e : null,
|
|
@@ -4522,27 +4617,27 @@ var Kn = u({
|
|
|
4522
4617
|
])) : a("", !0)
|
|
4523
4618
|
])], 32)) : a("", !0);
|
|
4524
4619
|
}
|
|
4525
|
-
}), [["__scopeId", "data-v-26a1eaf0"]]),
|
|
4620
|
+
}), [["__scopeId", "data-v-26a1eaf0"]]), ir = { class: "dialog__header" }, ar = { class: "dialog__title" }, or = ["aria-label"], sr = { class: "dialog__body" }, cr = {
|
|
4526
4621
|
key: 0,
|
|
4527
4622
|
class: "link-tabs",
|
|
4528
4623
|
role: "tablist"
|
|
4529
|
-
},
|
|
4624
|
+
}, lr = ["aria-selected"], ur = ["aria-selected"], dr = {
|
|
4530
4625
|
key: 1,
|
|
4531
4626
|
class: "field"
|
|
4532
|
-
},
|
|
4627
|
+
}, fr = { class: "field__label" }, pr = [
|
|
4533
4628
|
"placeholder",
|
|
4534
4629
|
"aria-invalid",
|
|
4535
4630
|
"onKeydown"
|
|
4536
|
-
],
|
|
4631
|
+
], mr = {
|
|
4537
4632
|
key: 0,
|
|
4538
4633
|
class: "field__error"
|
|
4539
|
-
},
|
|
4634
|
+
}, hr = {
|
|
4540
4635
|
key: 1,
|
|
4541
4636
|
class: "field__hint"
|
|
4542
|
-
},
|
|
4637
|
+
}, gr = {
|
|
4543
4638
|
key: 2,
|
|
4544
4639
|
class: "field"
|
|
4545
|
-
},
|
|
4640
|
+
}, _r = { class: "field__label" }, vr = ["onKeydown"], yr = { value: "" }, br = ["value"], xr = { class: "field" }, Sr = { class: "field__label" }, Cr = ["placeholder"], wr = { class: "field__hint" }, Tr = { class: "field" }, Er = { class: "field__label" }, Dr = ["placeholder"], Or = { class: "dialog__actions" }, kr = ["disabled"], Ar = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4546
4641
|
__name: "HyperlinkDialog",
|
|
4547
4642
|
props: {
|
|
4548
4643
|
isOpen: { type: Boolean },
|
|
@@ -4632,24 +4727,24 @@ var Kn = u({
|
|
|
4632
4727
|
class: "dialog",
|
|
4633
4728
|
onMousedown: r[6] ||= L(() => {}, ["stop"]),
|
|
4634
4729
|
onKeydown: r[7] ||= L(() => {}, ["stop"])
|
|
4635
|
-
}, [s("div",
|
|
4730
|
+
}, [s("div", ir, [s("span", ar, T(b.value ? O(i)("dialogs.hyperlink.titleEdit") : O(i)("dialogs.hyperlink.titleInsert")), 1), s("button", {
|
|
4636
4731
|
class: "dialog__close",
|
|
4637
4732
|
"aria-label": O(i)("common.closeDialog"),
|
|
4638
4733
|
onClick: P
|
|
4639
|
-
}, " ✕ ", 8,
|
|
4640
|
-
E.value.length > 0 ? (y(), o("div",
|
|
4734
|
+
}, " ✕ ", 8, or)]), s("div", sr, [
|
|
4735
|
+
E.value.length > 0 ? (y(), o("div", cr, [s("button", {
|
|
4641
4736
|
class: h(["link-tab", { active: f.value === "url" }]),
|
|
4642
4737
|
role: "tab",
|
|
4643
4738
|
"aria-selected": f.value === "url",
|
|
4644
4739
|
onMousedown: r[0] ||= L((e) => f.value = "url", ["prevent"])
|
|
4645
|
-
}, T(O(i)("dialogs.hyperlink.tabWebAddress")), 43,
|
|
4740
|
+
}, T(O(i)("dialogs.hyperlink.tabWebAddress")), 43, lr), s("button", {
|
|
4646
4741
|
class: h(["link-tab", { active: f.value === "bookmark" }]),
|
|
4647
4742
|
role: "tab",
|
|
4648
4743
|
"aria-selected": f.value === "bookmark",
|
|
4649
4744
|
onMousedown: r[1] ||= L((e) => f.value = "bookmark", ["prevent"])
|
|
4650
|
-
}, T(O(i)("dialogs.hyperlink.tabBookmark")), 43,
|
|
4651
|
-
f.value === "url" ? (y(), o("div",
|
|
4652
|
-
s("label",
|
|
4745
|
+
}, T(O(i)("dialogs.hyperlink.tabBookmark")), 43, ur)])) : a("", !0),
|
|
4746
|
+
f.value === "url" ? (y(), o("div", dr, [
|
|
4747
|
+
s("label", fr, T(O(i)("dialogs.hyperlink.urlLabel")), 1),
|
|
4653
4748
|
F(s("input", {
|
|
4654
4749
|
ref_key: "urlInputRef",
|
|
4655
4750
|
ref: u,
|
|
@@ -4659,33 +4754,33 @@ var Kn = u({
|
|
|
4659
4754
|
"aria-invalid": w.value && !!x.value,
|
|
4660
4755
|
onKeydown: I(L(R, ["prevent"]), ["enter"]),
|
|
4661
4756
|
onBlur: z
|
|
4662
|
-
}, null, 42,
|
|
4663
|
-
w.value && x.value ? (y(), o("div",
|
|
4664
|
-
])) : (y(), o("div",
|
|
4757
|
+
}, null, 42, pr), [[M, p.value]]),
|
|
4758
|
+
w.value && x.value ? (y(), o("div", mr, T(x.value), 1)) : (y(), o("div", hr, T(O(i)("dialogs.hyperlink.urlHint")), 1))
|
|
4759
|
+
])) : (y(), o("div", gr, [s("label", _r, T(O(i)("dialogs.hyperlink.bookmarkLabel")), 1), F(s("select", {
|
|
4665
4760
|
ref_key: "bookmarkSelectRef",
|
|
4666
4761
|
ref: d,
|
|
4667
4762
|
"onUpdate:modelValue": r[3] ||= (e) => g.value = e,
|
|
4668
4763
|
class: "field__input",
|
|
4669
4764
|
onKeydown: I(L(R, ["prevent"]), ["enter"])
|
|
4670
|
-
}, [s("option",
|
|
4765
|
+
}, [s("option", yr, T(O(i)("dialogs.hyperlink.bookmarkPlaceholder")), 1), (y(!0), o(t, null, C(E.value, (e) => (y(), o("option", {
|
|
4671
4766
|
key: e.name,
|
|
4672
4767
|
value: e.name
|
|
4673
|
-
}, T(e.label || e.name), 9,
|
|
4674
|
-
s("div",
|
|
4675
|
-
s("label",
|
|
4768
|
+
}, T(e.label || e.name), 9, br))), 128))], 40, vr), [[j, g.value]])])),
|
|
4769
|
+
s("div", xr, [
|
|
4770
|
+
s("label", Sr, T(O(i)("dialogs.hyperlink.displayTextLabel")), 1),
|
|
4676
4771
|
F(s("input", {
|
|
4677
4772
|
"onUpdate:modelValue": r[4] ||= (e) => _.value = e,
|
|
4678
4773
|
class: "field__input",
|
|
4679
4774
|
placeholder: O(i)("dialogs.hyperlink.displayTextPlaceholder")
|
|
4680
|
-
}, null, 8,
|
|
4681
|
-
s("div",
|
|
4775
|
+
}, null, 8, Cr), [[M, _.value]]),
|
|
4776
|
+
s("div", wr, T(O(i)("dialogs.hyperlink.displayTextHint")), 1)
|
|
4682
4777
|
]),
|
|
4683
|
-
s("div",
|
|
4778
|
+
s("div", Tr, [s("label", Er, T(O(i)("dialogs.hyperlink.tooltipLabel")), 1), F(s("input", {
|
|
4684
4779
|
"onUpdate:modelValue": r[5] ||= (e) => v.value = e,
|
|
4685
4780
|
class: "field__input",
|
|
4686
4781
|
placeholder: O(i)("dialogs.hyperlink.tooltipPlaceholder")
|
|
4687
|
-
}, null, 8,
|
|
4688
|
-
s("div",
|
|
4782
|
+
}, null, 8, Dr), [[M, v.value]])]),
|
|
4783
|
+
s("div", Or, [
|
|
4689
4784
|
b.value ? (y(), o("button", {
|
|
4690
4785
|
key: 0,
|
|
4691
4786
|
class: "dialog__btn dialog__btn--danger",
|
|
@@ -4700,11 +4795,11 @@ var Kn = u({
|
|
|
4700
4795
|
class: "dialog__btn dialog__btn--primary",
|
|
4701
4796
|
onMousedown: L(R, ["prevent"]),
|
|
4702
4797
|
disabled: !D.value
|
|
4703
|
-
}, T(b.value ? O(i)("common.update") : O(i)("common.insert")), 41,
|
|
4798
|
+
}, T(b.value ? O(i)("common.update") : O(i)("common.insert")), 41, kr)
|
|
4704
4799
|
])
|
|
4705
4800
|
])], 32)], 32)) : a("", !0);
|
|
4706
4801
|
}
|
|
4707
|
-
}), [["__scopeId", "data-v-3078565e"]]),
|
|
4802
|
+
}), [["__scopeId", "data-v-3078565e"]]), jr = { class: "dialog__header" }, Mr = { class: "dialog__title" }, Nr = ["aria-label"], Pr = { class: "dialog__body" }, Fr = { class: "field" }, Ir = { class: "field__label" }, Lr = ["placeholder"], Rr = { class: "field" }, zr = { class: "field__label" }, Br = { value: "inline" }, Vr = { value: "wrapRight" }, Hr = { value: "wrapLeft" }, Ur = { value: "topAndBottom" }, Wr = { value: "behind" }, Gr = { value: "inFront" }, Kr = { class: "field" }, qr = { class: "field__label" }, Jr = { class: "field-row" }, Yr = { value: "solid" }, Xr = { value: "dashed" }, Zr = { value: "dotted" }, Qr = { value: "double" }, $r = { class: "field" }, ei = { class: "field__label" }, ti = { class: "field-row" }, ni = ["value"], ri = ["value"], ii = { class: "field__checkbox" }, ai = { class: "dialog__actions" }, oi = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4708
4803
|
__name: "ImagePropertiesDialog",
|
|
4709
4804
|
props: {
|
|
4710
4805
|
isOpen: { type: Boolean },
|
|
@@ -4791,29 +4886,29 @@ var Kn = u({
|
|
|
4791
4886
|
},
|
|
4792
4887
|
onClose: x
|
|
4793
4888
|
}, {
|
|
4794
|
-
default: P(() => [s("div",
|
|
4889
|
+
default: P(() => [s("div", jr, [s("span", Mr, T(O(n)("dialogs.imageProperties.title")), 1), s("button", {
|
|
4795
4890
|
class: "dialog__close",
|
|
4796
4891
|
"aria-label": O(n)("common.closeDialog"),
|
|
4797
4892
|
onClick: x
|
|
4798
|
-
}, "✕", 8,
|
|
4799
|
-
s("div",
|
|
4893
|
+
}, "✕", 8, Nr)]), s("div", Pr, [
|
|
4894
|
+
s("div", Fr, [s("label", Ir, T(O(n)("dialogs.imageProperties.altText")), 1), F(s("textarea", {
|
|
4800
4895
|
"onUpdate:modelValue": a[0] ||= (e) => l.value = e,
|
|
4801
4896
|
class: "field__textarea",
|
|
4802
4897
|
placeholder: O(n)("dialogs.imageProperties.altTextPlaceholder"),
|
|
4803
4898
|
rows: "2"
|
|
4804
|
-
}, null, 8,
|
|
4805
|
-
s("div",
|
|
4899
|
+
}, null, 8, Lr), [[M, l.value]])]),
|
|
4900
|
+
s("div", Rr, [s("label", zr, T(O(n)("dialogs.imageProperties.textWrapping")), 1), F(s("select", {
|
|
4806
4901
|
"onUpdate:modelValue": a[1] ||= (e) => u.value = e,
|
|
4807
4902
|
class: "field__select"
|
|
4808
4903
|
}, [
|
|
4809
|
-
s("option",
|
|
4810
|
-
s("option",
|
|
4811
|
-
s("option",
|
|
4812
|
-
s("option",
|
|
4813
|
-
s("option",
|
|
4814
|
-
s("option",
|
|
4904
|
+
s("option", Br, T(O(n)("dialogs.imageProperties.wrapOptions.inline")), 1),
|
|
4905
|
+
s("option", Vr, T(O(n)("dialogs.imageProperties.wrapOptions.wrapRight")), 1),
|
|
4906
|
+
s("option", Hr, T(O(n)("dialogs.imageProperties.wrapOptions.wrapLeft")), 1),
|
|
4907
|
+
s("option", Ur, T(O(n)("dialogs.imageProperties.wrapOptions.topAndBottom")), 1),
|
|
4908
|
+
s("option", Wr, T(O(n)("dialogs.imageProperties.wrapOptions.behind")), 1),
|
|
4909
|
+
s("option", Gr, T(O(n)("dialogs.imageProperties.wrapOptions.inFront")), 1)
|
|
4815
4910
|
], 512), [[j, u.value]])]),
|
|
4816
|
-
s("div",
|
|
4911
|
+
s("div", Kr, [s("label", qr, T(O(n)("dialogs.imageProperties.border")), 1), s("div", Jr, [
|
|
4817
4912
|
s("label", null, [
|
|
4818
4913
|
c(T(O(n)("dialogs.imageProperties.width")) + ": ", 1),
|
|
4819
4914
|
F(s("input", {
|
|
@@ -4835,10 +4930,10 @@ var Kn = u({
|
|
|
4835
4930
|
"onUpdate:modelValue": a[3] ||= (e) => f.value = e,
|
|
4836
4931
|
class: "field__select--small"
|
|
4837
4932
|
}, [
|
|
4838
|
-
s("option",
|
|
4839
|
-
s("option",
|
|
4840
|
-
s("option",
|
|
4841
|
-
s("option",
|
|
4933
|
+
s("option", Yr, T(O(n)("dialogs.imageProperties.borderStyles.solid")), 1),
|
|
4934
|
+
s("option", Xr, T(O(n)("dialogs.imageProperties.borderStyles.dashed")), 1),
|
|
4935
|
+
s("option", Zr, T(O(n)("dialogs.imageProperties.borderStyles.dotted")), 1),
|
|
4936
|
+
s("option", Qr, T(O(n)("dialogs.imageProperties.borderStyles.double")), 1)
|
|
4842
4937
|
], 512), [[j, f.value]])]),
|
|
4843
4938
|
s("label", null, [c(T(O(n)("dialogs.imageProperties.color")) + ": ", 1), F(s("input", {
|
|
4844
4939
|
"onUpdate:modelValue": a[4] ||= (e) => p.value = e,
|
|
@@ -4846,9 +4941,9 @@ var Kn = u({
|
|
|
4846
4941
|
class: "field__color"
|
|
4847
4942
|
}, null, 512), [[M, p.value]])])
|
|
4848
4943
|
])]),
|
|
4849
|
-
s("div",
|
|
4850
|
-
s("label",
|
|
4851
|
-
s("div",
|
|
4944
|
+
s("div", $r, [
|
|
4945
|
+
s("label", ei, T(O(n)("dialogs.imageProperties.dimensions")), 1),
|
|
4946
|
+
s("div", ti, [s("label", null, [
|
|
4852
4947
|
c(T(O(n)("dialogs.imageProperties.widthLabel")) + " ", 1),
|
|
4853
4948
|
s("input", {
|
|
4854
4949
|
value: m.value,
|
|
@@ -4857,7 +4952,7 @@ var Kn = u({
|
|
|
4857
4952
|
max: "2000",
|
|
4858
4953
|
class: "field__input--small",
|
|
4859
4954
|
onInput: v
|
|
4860
|
-
}, null, 40,
|
|
4955
|
+
}, null, 40, ni),
|
|
4861
4956
|
c(T(O(n)("common.px")), 1)
|
|
4862
4957
|
]), s("label", null, [
|
|
4863
4958
|
c(T(O(n)("dialogs.imageProperties.heightLabel")) + " ", 1),
|
|
@@ -4868,15 +4963,15 @@ var Kn = u({
|
|
|
4868
4963
|
max: "2000",
|
|
4869
4964
|
class: "field__input--small",
|
|
4870
4965
|
onInput: b
|
|
4871
|
-
}, null, 40,
|
|
4966
|
+
}, null, 40, ri),
|
|
4872
4967
|
c(T(O(n)("common.px")), 1)
|
|
4873
4968
|
])]),
|
|
4874
|
-
s("label",
|
|
4969
|
+
s("label", ii, [F(s("input", {
|
|
4875
4970
|
"onUpdate:modelValue": a[5] ||= (e) => g.value = e,
|
|
4876
4971
|
type: "checkbox"
|
|
4877
4972
|
}, null, 512), [[k, g.value]]), c(" " + T(O(n)("dialogs.imageProperties.lockAspectRatio")), 1)])
|
|
4878
4973
|
]),
|
|
4879
|
-
s("div",
|
|
4974
|
+
s("div", ai, [s("button", {
|
|
4880
4975
|
class: "dialog__btn",
|
|
4881
4976
|
onClick: x
|
|
4882
4977
|
}, T(O(n)("common.cancel")), 1), s("button", {
|
|
@@ -4887,29 +4982,29 @@ var Kn = u({
|
|
|
4887
4982
|
_: 1
|
|
4888
4983
|
}, 8, ["open", "aria-label"]));
|
|
4889
4984
|
}
|
|
4890
|
-
}), [["__scopeId", "data-v-4879cd1c"]]),
|
|
4985
|
+
}), [["__scopeId", "data-v-4879cd1c"]]), si = { class: "dialog__header" }, ci = { class: "dialog__title" }, li = ["title"], ui = { class: "dialog__body" }, di = ["placeholder"], fi = {
|
|
4891
4986
|
key: 0,
|
|
4892
4987
|
class: "symbol-tabs"
|
|
4893
|
-
},
|
|
4988
|
+
}, pi = ["onMousedown"], mi = { class: "symbol-grid" }, hi = [
|
|
4894
4989
|
"title",
|
|
4895
4990
|
"onClick",
|
|
4896
4991
|
"onDblclick"
|
|
4897
|
-
],
|
|
4992
|
+
], gi = {
|
|
4898
4993
|
key: 0,
|
|
4899
4994
|
class: "symbol-empty"
|
|
4900
|
-
},
|
|
4995
|
+
}, _i = {
|
|
4901
4996
|
key: 1,
|
|
4902
4997
|
class: "symbol-preview"
|
|
4903
|
-
},
|
|
4998
|
+
}, vi = { class: "symbol-preview__char" }, yi = { class: "symbol-preview__info" }, bi = {
|
|
4904
4999
|
key: 2,
|
|
4905
5000
|
class: "symbol-recent"
|
|
4906
|
-
},
|
|
5001
|
+
}, xi = { class: "symbol-recent__label" }, Si = ["onDblclick", "onClick"], Ci = { class: "dialog__actions" }, wi = ["disabled"], Ti = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4907
5002
|
__name: "InsertSymbolDialog",
|
|
4908
5003
|
props: { isOpen: { type: Boolean } },
|
|
4909
5004
|
emits: ["close", "insert"],
|
|
4910
5005
|
setup(e, { emit: n }) {
|
|
4911
5006
|
let { t: i } = Z(), c = e, l = n, u = S(null), d = S(""), f = S("Common"), p = S(""), g = S([]), _ = ie, v = r(() => {
|
|
4912
|
-
if (d.value) return
|
|
5007
|
+
if (d.value) return ae(d.value);
|
|
4913
5008
|
let e = _.find((e) => e.name === f.value);
|
|
4914
5009
|
return e ? e.symbols.map((t) => Object.assign({}, t, { category: e.name })) : [];
|
|
4915
5010
|
});
|
|
@@ -4930,11 +5025,11 @@ var Kn = u({
|
|
|
4930
5025
|
class: "dialog symbol-dialog",
|
|
4931
5026
|
onMousedown: r[2] ||= L(() => {}, ["stop"]),
|
|
4932
5027
|
onKeydown: r[3] ||= L(() => {}, ["stop"])
|
|
4933
|
-
}, [s("div",
|
|
5028
|
+
}, [s("div", si, [s("span", ci, T(O(i)("dialogs.insertSymbol.title")), 1), s("button", {
|
|
4934
5029
|
class: "dialog__close",
|
|
4935
5030
|
title: O(i)("common.closeDialog"),
|
|
4936
5031
|
onClick: b
|
|
4937
|
-
}, "✕", 8,
|
|
5032
|
+
}, "✕", 8, li)]), s("div", ui, [
|
|
4938
5033
|
F(s("input", {
|
|
4939
5034
|
ref_key: "searchRef",
|
|
4940
5035
|
ref: u,
|
|
@@ -4942,40 +5037,40 @@ var Kn = u({
|
|
|
4942
5037
|
class: "symbol-search",
|
|
4943
5038
|
placeholder: O(i)("dialogs.insertSymbol.searchPlaceholder"),
|
|
4944
5039
|
onKeydown: I(b, ["escape"])
|
|
4945
|
-
}, null, 40,
|
|
4946
|
-
d.value ? a("", !0) : (y(), o("div",
|
|
5040
|
+
}, null, 40, di), [[M, d.value]]),
|
|
5041
|
+
d.value ? a("", !0) : (y(), o("div", fi, [(y(!0), o(t, null, C(O(_), (e) => (y(), o("button", {
|
|
4947
5042
|
key: e.name,
|
|
4948
5043
|
class: h(["symbol-tab", { active: f.value === e.name }]),
|
|
4949
5044
|
onMousedown: L((t) => f.value = e.name, ["prevent"])
|
|
4950
|
-
}, T(O(i)(e.nameKey)), 43,
|
|
4951
|
-
s("div",
|
|
5045
|
+
}, T(O(i)(e.nameKey)), 43, pi))), 128))])),
|
|
5046
|
+
s("div", mi, [(y(!0), o(t, null, C(v.value, (e) => (y(), o("button", {
|
|
4952
5047
|
key: e.char,
|
|
4953
5048
|
class: h(["symbol-cell", { selected: p.value === e.char }]),
|
|
4954
5049
|
title: e.name,
|
|
4955
5050
|
onClick: (t) => p.value = e.char,
|
|
4956
5051
|
onDblclick: (t) => x(e.char)
|
|
4957
|
-
}, T(e.char), 43,
|
|
4958
|
-
p.value ? (y(), o("div",
|
|
4959
|
-
g.value.length > 0 && !d.value ? (y(), o("div",
|
|
5052
|
+
}, T(e.char), 43, hi))), 128)), v.value.length === 0 ? (y(), o("div", gi, T(d.value ? O(i)("dialogs.insertSymbol.noResults", { query: d.value }) : O(i)("dialogs.insertSymbol.noResultsEmpty")), 1)) : a("", !0)]),
|
|
5053
|
+
p.value ? (y(), o("div", _i, [s("span", vi, T(p.value), 1), s("span", yi, "U+" + T(p.value.codePointAt(0)?.toString(16).toUpperCase().padStart(4, "0")), 1)])) : a("", !0),
|
|
5054
|
+
g.value.length > 0 && !d.value ? (y(), o("div", bi, [s("div", xi, T(O(i)("dialogs.insertSymbol.recent")), 1), (y(!0), o(t, null, C(g.value, (e) => (y(), o("button", {
|
|
4960
5055
|
key: e,
|
|
4961
5056
|
class: "symbol-cell symbol-cell--small",
|
|
4962
5057
|
onDblclick: (t) => x(e),
|
|
4963
5058
|
onClick: (t) => p.value = e
|
|
4964
|
-
}, T(e), 41,
|
|
4965
|
-
s("div",
|
|
5059
|
+
}, T(e), 41, Si))), 128))])) : a("", !0),
|
|
5060
|
+
s("div", Ci, [s("button", {
|
|
4966
5061
|
class: "dialog__btn",
|
|
4967
5062
|
onClick: b
|
|
4968
5063
|
}, T(O(i)("common.cancel")), 1), s("button", {
|
|
4969
5064
|
class: "dialog__btn dialog__btn--primary",
|
|
4970
5065
|
onMousedown: r[1] ||= L((e) => x(p.value), ["prevent"]),
|
|
4971
5066
|
disabled: !p.value
|
|
4972
|
-
}, T(O(i)("common.insert")), 41,
|
|
5067
|
+
}, T(O(i)("common.insert")), 41, wi)])
|
|
4973
5068
|
])], 32)], 32)) : a("", !0);
|
|
4974
5069
|
}
|
|
4975
|
-
}), [["__scopeId", "data-v-dc4046d2"]]),
|
|
5070
|
+
}), [["__scopeId", "data-v-dc4046d2"]]), Ei = { class: "ps-header" }, Di = { class: "ps-body" }, Oi = { class: "ps-section-label" }, ki = { class: "ps-row" }, Ai = { class: "ps-label" }, ji = ["value"], Mi = ["value"], Ni = {
|
|
4976
5071
|
key: 0,
|
|
4977
5072
|
value: -1
|
|
4978
|
-
},
|
|
5073
|
+
}, Pi = { class: "ps-row" }, Fi = { class: "ps-label" }, Ii = ["value"], Li = { value: "portrait" }, Ri = { value: "landscape" }, zi = { class: "ps-section-label ps-section-label--spaced" }, Bi = { class: "ps-row" }, Vi = { class: "ps-label" }, Hi = { class: "ps-row" }, Ui = { class: "ps-label" }, Wi = { class: "ps-row" }, Gi = { class: "ps-label" }, Ki = { class: "ps-row" }, qi = { class: "ps-label" }, Ji = { class: "ps-footer" }, Yi = 12240, Xi = 15840, Zi = 1440, Qi = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
4979
5074
|
__name: "PageSetupDialog",
|
|
4980
5075
|
props: {
|
|
4981
5076
|
isOpen: { type: Boolean },
|
|
@@ -5019,12 +5114,12 @@ var Kn = u({
|
|
|
5019
5114
|
width: 10440,
|
|
5020
5115
|
height: 15120
|
|
5021
5116
|
}
|
|
5022
|
-
], d = e, f = n, p = S(
|
|
5117
|
+
], d = e, f = n, p = S(Yi), m = S(Xi), h = S("portrait"), g = S(1), _ = S(1), v = S(1), b = S(1);
|
|
5023
5118
|
function x(e) {
|
|
5024
|
-
return Math.round(e /
|
|
5119
|
+
return Math.round(e / B * 100) / 100;
|
|
5025
5120
|
}
|
|
5026
5121
|
function w(e) {
|
|
5027
|
-
return Math.round((Number(e) || 0) *
|
|
5122
|
+
return Math.round((Number(e) || 0) * B);
|
|
5028
5123
|
}
|
|
5029
5124
|
let E = r(() => {
|
|
5030
5125
|
let e = Math.min(p.value, m.value), t = Math.max(p.value, m.value);
|
|
@@ -5032,8 +5127,8 @@ var Kn = u({
|
|
|
5032
5127
|
});
|
|
5033
5128
|
N(() => d.isOpen, (e) => {
|
|
5034
5129
|
if (!e) return;
|
|
5035
|
-
let t = d.sectionProperties, n = t?.pageWidth ||
|
|
5036
|
-
p.value = n, m.value = r, h.value = t?.orientation || (n > r ? "landscape" : "portrait"), g.value = x(t?.marginTop ??
|
|
5130
|
+
let t = d.sectionProperties, n = t?.pageWidth || Yi, r = t?.pageHeight || Xi;
|
|
5131
|
+
p.value = n, m.value = r, h.value = t?.orientation || (n > r ? "landscape" : "portrait"), g.value = x(t?.marginTop ?? Zi), _.value = x(t?.marginBottom ?? Zi), v.value = x(t?.marginLeft ?? Zi), b.value = x(t?.marginRight ?? Zi);
|
|
5037
5132
|
}, { immediate: !0 });
|
|
5038
5133
|
function D(e) {
|
|
5039
5134
|
if (!(e.target instanceof HTMLSelectElement)) return;
|
|
@@ -5075,25 +5170,25 @@ var Kn = u({
|
|
|
5075
5170
|
onKeydown: I(j, ["enter"])
|
|
5076
5171
|
}, {
|
|
5077
5172
|
default: P(() => [
|
|
5078
|
-
s("div",
|
|
5079
|
-
s("div",
|
|
5080
|
-
s("div",
|
|
5081
|
-
s("div",
|
|
5173
|
+
s("div", Ei, T(O(c)("dialogs.pageSetup.title")), 1),
|
|
5174
|
+
s("div", Di, [
|
|
5175
|
+
s("div", Oi, T(O(c)("dialogs.pageSetup.pageSize")), 1),
|
|
5176
|
+
s("div", ki, [s("label", Ai, T(O(c)("dialogs.pageSetup.sizeLabel")), 1), s("select", {
|
|
5082
5177
|
class: "ps-input",
|
|
5083
5178
|
value: E.value,
|
|
5084
5179
|
onChange: D
|
|
5085
5180
|
}, [(y(), o(t, null, C(u, (e, t) => s("option", {
|
|
5086
5181
|
key: e.labelKey,
|
|
5087
5182
|
value: t
|
|
5088
|
-
}, T(O(c)(e.labelKey)), 9,
|
|
5089
|
-
s("div",
|
|
5183
|
+
}, T(O(c)(e.labelKey)), 9, Mi)), 64)), E.value < 0 ? (y(), o("option", Ni, T(O(c)("dialogs.pageSetup.custom")), 1)) : a("", !0)], 40, ji)]),
|
|
5184
|
+
s("div", Pi, [s("label", Fi, T(O(c)("dialogs.pageSetup.orientation")), 1), s("select", {
|
|
5090
5185
|
class: "ps-input",
|
|
5091
5186
|
value: h.value,
|
|
5092
5187
|
onChange: k
|
|
5093
|
-
}, [s("option",
|
|
5094
|
-
s("div",
|
|
5095
|
-
s("div",
|
|
5096
|
-
s("label",
|
|
5188
|
+
}, [s("option", Li, T(O(c)("dialogs.pageSetup.portrait")), 1), s("option", Ri, T(O(c)("dialogs.pageSetup.landscape")), 1)], 40, Ii)]),
|
|
5189
|
+
s("div", zi, T(O(c)("dialogs.pageSetup.margins")), 1),
|
|
5190
|
+
s("div", Bi, [
|
|
5191
|
+
s("label", Vi, T(O(c)("dialogs.pageSetup.top")), 1),
|
|
5097
5192
|
F(s("input", {
|
|
5098
5193
|
class: "ps-input",
|
|
5099
5194
|
type: "number",
|
|
@@ -5109,8 +5204,8 @@ var Kn = u({
|
|
|
5109
5204
|
]]),
|
|
5110
5205
|
r[4] ||= s("span", { class: "ps-unit" }, "in", -1)
|
|
5111
5206
|
]),
|
|
5112
|
-
s("div",
|
|
5113
|
-
s("label",
|
|
5207
|
+
s("div", Hi, [
|
|
5208
|
+
s("label", Ui, T(O(c)("dialogs.pageSetup.bottom")), 1),
|
|
5114
5209
|
F(s("input", {
|
|
5115
5210
|
class: "ps-input",
|
|
5116
5211
|
type: "number",
|
|
@@ -5126,8 +5221,8 @@ var Kn = u({
|
|
|
5126
5221
|
]]),
|
|
5127
5222
|
r[5] ||= s("span", { class: "ps-unit" }, "in", -1)
|
|
5128
5223
|
]),
|
|
5129
|
-
s("div",
|
|
5130
|
-
s("label",
|
|
5224
|
+
s("div", Wi, [
|
|
5225
|
+
s("label", Gi, T(O(c)("dialogs.pageSetup.left")), 1),
|
|
5131
5226
|
F(s("input", {
|
|
5132
5227
|
class: "ps-input",
|
|
5133
5228
|
type: "number",
|
|
@@ -5143,8 +5238,8 @@ var Kn = u({
|
|
|
5143
5238
|
]]),
|
|
5144
5239
|
r[6] ||= s("span", { class: "ps-unit" }, "in", -1)
|
|
5145
5240
|
]),
|
|
5146
|
-
s("div",
|
|
5147
|
-
s("label",
|
|
5241
|
+
s("div", Ki, [
|
|
5242
|
+
s("label", qi, T(O(c)("dialogs.pageSetup.right")), 1),
|
|
5148
5243
|
F(s("input", {
|
|
5149
5244
|
class: "ps-input",
|
|
5150
5245
|
type: "number",
|
|
@@ -5161,7 +5256,7 @@ var Kn = u({
|
|
|
5161
5256
|
r[7] ||= s("span", { class: "ps-unit" }, "in", -1)
|
|
5162
5257
|
])
|
|
5163
5258
|
]),
|
|
5164
|
-
s("div",
|
|
5259
|
+
s("div", Ji, [s("button", {
|
|
5165
5260
|
type: "button",
|
|
5166
5261
|
class: "ps-btn",
|
|
5167
5262
|
onClick: A
|
|
@@ -5174,10 +5269,10 @@ var Kn = u({
|
|
|
5174
5269
|
_: 1
|
|
5175
5270
|
}, 8, ["open", "aria-label"]));
|
|
5176
5271
|
}
|
|
5177
|
-
}), [["__scopeId", "data-v-1e078cda"]]),
|
|
5272
|
+
}), [["__scopeId", "data-v-1e078cda"]]), $i = { class: "tpd-dialog__header" }, ea = { class: "tpd-dialog__body" }, ta = { class: "tpd-row" }, na = { class: "tpd-label" }, ra = { value: "auto" }, ia = { value: "dxa" }, aa = { value: "pct" }, oa = {
|
|
5178
5273
|
key: 0,
|
|
5179
5274
|
class: "tpd-row"
|
|
5180
|
-
},
|
|
5275
|
+
}, sa = { class: "tpd-label" }, ca = ["step"], la = { class: "tpd-unit" }, ua = { class: "tpd-row" }, da = { class: "tpd-label" }, fa = ["value"], pa = { class: "tpd-dialog__footer" }, ma = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
5181
5276
|
__name: "TablePropertiesDialog",
|
|
5182
5277
|
props: {
|
|
5183
5278
|
isOpen: { type: Boolean },
|
|
@@ -5197,9 +5292,9 @@ var Kn = u({
|
|
|
5197
5292
|
case "pct": return e;
|
|
5198
5293
|
default: return "auto";
|
|
5199
5294
|
}
|
|
5200
|
-
}, m = S(p(u.currentProps?.widthType ?? "auto")), h = S(
|
|
5295
|
+
}, m = S(p(u.currentProps?.widthType ?? "auto")), h = S(oe(u.currentProps?.justification));
|
|
5201
5296
|
N(() => u.isOpen, (e) => {
|
|
5202
|
-
e && (f.value = u.currentProps?.width ?? 0, m.value = p(u.currentProps?.widthType ?? "auto"), h.value =
|
|
5297
|
+
e && (f.value = u.currentProps?.width ?? 0, m.value = p(u.currentProps?.widthType ?? "auto"), h.value = oe(u.currentProps?.justification));
|
|
5203
5298
|
});
|
|
5204
5299
|
function g() {
|
|
5205
5300
|
let e = m.value === "auto" ? {
|
|
@@ -5225,41 +5320,41 @@ var Kn = u({
|
|
|
5225
5320
|
onKeydown: I(g, ["enter"])
|
|
5226
5321
|
}, {
|
|
5227
5322
|
default: P(() => [
|
|
5228
|
-
s("div",
|
|
5229
|
-
s("div",
|
|
5230
|
-
s("div",
|
|
5323
|
+
s("div", $i, T(O(r)("dialogs.tableProperties.title")), 1),
|
|
5324
|
+
s("div", ea, [
|
|
5325
|
+
s("div", ta, [s("label", na, T(O(r)("dialogs.tableProperties.widthType")), 1), F(s("select", {
|
|
5231
5326
|
"onUpdate:modelValue": u[0] ||= (e) => m.value = e,
|
|
5232
5327
|
class: "tpd-select"
|
|
5233
5328
|
}, [
|
|
5234
|
-
s("option",
|
|
5235
|
-
s("option",
|
|
5236
|
-
s("option",
|
|
5329
|
+
s("option", ra, T(O(r)("dialogs.tableProperties.widthTypes.auto")), 1),
|
|
5330
|
+
s("option", ia, T(O(r)("dialogs.tableProperties.widthTypes.fixed")), 1),
|
|
5331
|
+
s("option", aa, T(O(r)("dialogs.tableProperties.widthTypes.percentage")), 1)
|
|
5237
5332
|
], 512), [[j, m.value]])]),
|
|
5238
|
-
m.value === "auto" ? a("", !0) : (y(), o("div",
|
|
5239
|
-
s("label",
|
|
5333
|
+
m.value === "auto" ? a("", !0) : (y(), o("div", oa, [
|
|
5334
|
+
s("label", sa, T(O(r)("dialogs.tableProperties.widthLabel")), 1),
|
|
5240
5335
|
F(s("input", {
|
|
5241
5336
|
"onUpdate:modelValue": u[1] ||= (e) => f.value = e,
|
|
5242
5337
|
type: "number",
|
|
5243
5338
|
class: "tpd-input",
|
|
5244
5339
|
min: 0,
|
|
5245
5340
|
step: m.value === "pct" ? 5 : 100
|
|
5246
|
-
}, null, 8,
|
|
5341
|
+
}, null, 8, ca), [[
|
|
5247
5342
|
M,
|
|
5248
5343
|
f.value,
|
|
5249
5344
|
void 0,
|
|
5250
5345
|
{ number: !0 }
|
|
5251
5346
|
]]),
|
|
5252
|
-
s("span",
|
|
5347
|
+
s("span", la, T(m.value === "pct" ? O(r)("dialogs.tableProperties.units.fiftiethsPercent") : O(r)("dialogs.tableProperties.units.twips")), 1)
|
|
5253
5348
|
])),
|
|
5254
|
-
s("div",
|
|
5349
|
+
s("div", ua, [s("label", da, T(O(r)("dialogs.tableProperties.alignmentLabel")), 1), F(s("select", {
|
|
5255
5350
|
"onUpdate:modelValue": u[2] ||= (e) => h.value = e,
|
|
5256
5351
|
class: "tpd-select"
|
|
5257
|
-
}, [(y(!0), o(t, null, C(O(
|
|
5352
|
+
}, [(y(!0), o(t, null, C(O(V), (e) => (y(), o("option", {
|
|
5258
5353
|
key: e,
|
|
5259
5354
|
value: e
|
|
5260
|
-
}, T(O(r)(l[e])), 9,
|
|
5355
|
+
}, T(O(r)(l[e])), 9, fa))), 128))], 512), [[j, h.value]])])
|
|
5261
5356
|
]),
|
|
5262
|
-
s("div",
|
|
5357
|
+
s("div", pa, [s("button", {
|
|
5263
5358
|
class: "tpd-btn",
|
|
5264
5359
|
onClick: u[3] ||= (e) => n.$emit("close")
|
|
5265
5360
|
}, T(O(r)("common.cancel")), 1), s("button", {
|
|
@@ -5270,16 +5365,16 @@ var Kn = u({
|
|
|
5270
5365
|
_: 1
|
|
5271
5366
|
}, 8, ["open", "aria-label"]));
|
|
5272
5367
|
}
|
|
5273
|
-
}), [["__scopeId", "data-v-dace7dcf"]]),
|
|
5368
|
+
}), [["__scopeId", "data-v-dace7dcf"]]), ha = { class: "dialog__body" }, ga = { class: "field" }, _a = {
|
|
5274
5369
|
key: 0,
|
|
5275
5370
|
class: "grid"
|
|
5276
|
-
},
|
|
5371
|
+
}, va = { class: "field field--wide" }, ya = { class: "field" }, ba = { class: "field" }, xa = { class: "field" }, Sa = { class: "check" }, Ca = {
|
|
5277
5372
|
key: 1,
|
|
5278
5373
|
class: "grid"
|
|
5279
|
-
},
|
|
5374
|
+
}, wa = { class: "field field--wide" }, Ta = { class: "field field--wide" }, Ea = ["aria-invalid"], Da = {
|
|
5280
5375
|
key: 0,
|
|
5281
5376
|
class: "field__error"
|
|
5282
|
-
},
|
|
5377
|
+
}, Oa = { class: "field" }, ka = { class: "check" }, Aa = { class: "check field--wide" }, ja = { class: "dialog__footer" }, Ma = ["disabled"], Na = "#C0C0C0", Pa = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
5283
5378
|
__name: "WatermarkDialog",
|
|
5284
5379
|
props: {
|
|
5285
5380
|
isOpen: { type: Boolean },
|
|
@@ -5287,11 +5382,11 @@ var Kn = u({
|
|
|
5287
5382
|
},
|
|
5288
5383
|
emits: ["close", "apply"],
|
|
5289
5384
|
setup(e, { emit: t }) {
|
|
5290
|
-
let { Dialog: n } = Q(), c = e, l = t, u = S("text"), d = S("CONFIDENTIAL"), f = S("Calibri"), p = S(
|
|
5385
|
+
let { Dialog: n } = Q(), c = e, l = t, u = S("text"), d = S("CONFIDENTIAL"), f = S("Calibri"), p = S(Na), m = S(!0), h = S(50), g = S(""), _ = S(""), v = S(!1), b = S(100), x = S(!0), C = r(() => u.value === "picture" && v.value && _.value.trim().length > 0 ? L(_.value.trim()) : ""), w = r(() => u.value === "none" || u.value === "text" && d.value.trim().length > 0 || u.value === "picture" && g.value.trim().length > 0 && C.value.length === 0);
|
|
5291
5386
|
N([() => c.isOpen, () => c.currentWatermark], ([e, t]) => {
|
|
5292
5387
|
if (e) {
|
|
5293
5388
|
if (!t) {
|
|
5294
|
-
u.value = "text", d.value = "CONFIDENTIAL", f.value = "Calibri", p.value =
|
|
5389
|
+
u.value = "text", d.value = "CONFIDENTIAL", f.value = "Calibri", p.value = Na, m.value = !0, h.value = 50, g.value = "", _.value = "", v.value = !1, b.value = 100, x.value = !0;
|
|
5295
5390
|
return;
|
|
5296
5391
|
}
|
|
5297
5392
|
if (u.value = t.kind, t.kind === "text") {
|
|
@@ -5341,7 +5436,7 @@ var Kn = u({
|
|
|
5341
5436
|
return R(e) ? "" : "Use a web address (http/https).";
|
|
5342
5437
|
}
|
|
5343
5438
|
function z(e) {
|
|
5344
|
-
return !e || e === "auto" ?
|
|
5439
|
+
return !e || e === "auto" ? Na : e.startsWith("#") ? e : `#${e}`;
|
|
5345
5440
|
}
|
|
5346
5441
|
return (t, r) => (y(), i(O(n), {
|
|
5347
5442
|
open: e.isOpen,
|
|
@@ -5355,8 +5450,8 @@ var Kn = u({
|
|
|
5355
5450
|
}, {
|
|
5356
5451
|
default: P(() => [
|
|
5357
5452
|
r[25] ||= s("div", { class: "dialog__header" }, "Watermark", -1),
|
|
5358
|
-
s("div",
|
|
5359
|
-
s("label",
|
|
5453
|
+
s("div", ha, [
|
|
5454
|
+
s("label", ga, [r[14] ||= s("span", { class: "field__label" }, "Type", -1), F(s("select", {
|
|
5360
5455
|
"onUpdate:modelValue": r[0] ||= (e) => u.value = e,
|
|
5361
5456
|
class: "field__input"
|
|
5362
5457
|
}, [...r[13] ||= [
|
|
@@ -5364,21 +5459,21 @@ var Kn = u({
|
|
|
5364
5459
|
s("option", { value: "picture" }, "Picture watermark", -1),
|
|
5365
5460
|
s("option", { value: "none" }, "No watermark", -1)
|
|
5366
5461
|
]], 512), [[j, u.value]])]),
|
|
5367
|
-
u.value === "text" ? (y(), o("div",
|
|
5368
|
-
s("label",
|
|
5462
|
+
u.value === "text" ? (y(), o("div", _a, [
|
|
5463
|
+
s("label", va, [r[15] ||= s("span", { class: "field__label" }, "Text", -1), F(s("input", {
|
|
5369
5464
|
"onUpdate:modelValue": r[1] ||= (e) => d.value = e,
|
|
5370
5465
|
class: "field__input"
|
|
5371
5466
|
}, null, 512), [[M, d.value]])]),
|
|
5372
|
-
s("label",
|
|
5467
|
+
s("label", ya, [r[16] ||= s("span", { class: "field__label" }, "Font", -1), F(s("input", {
|
|
5373
5468
|
"onUpdate:modelValue": r[2] ||= (e) => f.value = e,
|
|
5374
5469
|
class: "field__input"
|
|
5375
5470
|
}, null, 512), [[M, f.value]])]),
|
|
5376
|
-
s("label",
|
|
5471
|
+
s("label", ba, [r[17] ||= s("span", { class: "field__label" }, "Color", -1), F(s("input", {
|
|
5377
5472
|
"onUpdate:modelValue": r[3] ||= (e) => p.value = e,
|
|
5378
5473
|
class: "field__input field__input--color",
|
|
5379
5474
|
type: "color"
|
|
5380
5475
|
}, null, 512), [[M, p.value]])]),
|
|
5381
|
-
s("label",
|
|
5476
|
+
s("label", xa, [r[18] ||= s("span", { class: "field__label" }, "Opacity", -1), F(s("input", {
|
|
5382
5477
|
"onUpdate:modelValue": r[4] ||= (e) => h.value = e,
|
|
5383
5478
|
class: "field__input",
|
|
5384
5479
|
max: "100",
|
|
@@ -5390,28 +5485,28 @@ var Kn = u({
|
|
|
5390
5485
|
void 0,
|
|
5391
5486
|
{ number: !0 }
|
|
5392
5487
|
]])]),
|
|
5393
|
-
s("label",
|
|
5488
|
+
s("label", Sa, [F(s("input", {
|
|
5394
5489
|
"onUpdate:modelValue": r[5] ||= (e) => m.value = e,
|
|
5395
5490
|
type: "checkbox"
|
|
5396
5491
|
}, null, 512), [[k, m.value]]), r[19] ||= s("span", null, "Diagonal", -1)])
|
|
5397
5492
|
])) : a("", !0),
|
|
5398
|
-
u.value === "picture" ? (y(), o("div",
|
|
5399
|
-
s("label",
|
|
5493
|
+
u.value === "picture" ? (y(), o("div", Ca, [
|
|
5494
|
+
s("label", wa, [r[20] ||= s("span", { class: "field__label" }, "Header image relationship id", -1), F(s("input", {
|
|
5400
5495
|
"onUpdate:modelValue": r[6] ||= (e) => g.value = e,
|
|
5401
5496
|
class: "field__input",
|
|
5402
5497
|
placeholder: "rId12"
|
|
5403
5498
|
}, null, 512), [[M, g.value]])]),
|
|
5404
|
-
s("label",
|
|
5499
|
+
s("label", Ta, [
|
|
5405
5500
|
r[21] ||= s("span", { class: "field__label" }, "Image target", -1),
|
|
5406
5501
|
F(s("input", {
|
|
5407
5502
|
"onUpdate:modelValue": r[7] ||= (e) => _.value = e,
|
|
5408
5503
|
"aria-invalid": C.value.length > 0,
|
|
5409
5504
|
class: "field__input",
|
|
5410
5505
|
placeholder: "word/media/image1.png"
|
|
5411
|
-
}, null, 8,
|
|
5412
|
-
C.value.length > 0 ? (y(), o("span",
|
|
5506
|
+
}, null, 8, Ea), [[M, _.value]]),
|
|
5507
|
+
C.value.length > 0 ? (y(), o("span", Da, T(C.value), 1)) : a("", !0)
|
|
5413
5508
|
]),
|
|
5414
|
-
s("label",
|
|
5509
|
+
s("label", Oa, [r[22] ||= s("span", { class: "field__label" }, "Scale", -1), F(s("input", {
|
|
5415
5510
|
"onUpdate:modelValue": r[8] ||= (e) => b.value = e,
|
|
5416
5511
|
class: "field__input",
|
|
5417
5512
|
max: "300",
|
|
@@ -5423,29 +5518,29 @@ var Kn = u({
|
|
|
5423
5518
|
void 0,
|
|
5424
5519
|
{ number: !0 }
|
|
5425
5520
|
]])]),
|
|
5426
|
-
s("label",
|
|
5521
|
+
s("label", ka, [F(s("input", {
|
|
5427
5522
|
"onUpdate:modelValue": r[9] ||= (e) => x.value = e,
|
|
5428
5523
|
type: "checkbox"
|
|
5429
5524
|
}, null, 512), [[k, x.value]]), r[23] ||= s("span", null, "Washout", -1)]),
|
|
5430
|
-
s("label",
|
|
5525
|
+
s("label", Aa, [F(s("input", {
|
|
5431
5526
|
"onUpdate:modelValue": r[10] ||= (e) => v.value = e,
|
|
5432
5527
|
type: "checkbox"
|
|
5433
5528
|
}, null, 512), [[k, v.value]]), r[24] ||= s("span", null, "Target is an external URL", -1)])
|
|
5434
5529
|
])) : a("", !0)
|
|
5435
5530
|
]),
|
|
5436
|
-
s("div",
|
|
5531
|
+
s("div", ja, [s("button", {
|
|
5437
5532
|
class: "dialog__btn",
|
|
5438
5533
|
onClick: r[11] ||= (e) => t.$emit("close")
|
|
5439
5534
|
}, "Cancel"), s("button", {
|
|
5440
5535
|
class: "dialog__btn dialog__btn--primary",
|
|
5441
5536
|
disabled: !w.value,
|
|
5442
5537
|
onClick: E
|
|
5443
|
-
}, " Apply ", 8,
|
|
5538
|
+
}, " Apply ", 8, Ma)])
|
|
5444
5539
|
]),
|
|
5445
5540
|
_: 1
|
|
5446
5541
|
}, 8, ["open"]));
|
|
5447
5542
|
}
|
|
5448
|
-
}), [["__scopeId", "data-v-fbc23c7d"]]),
|
|
5543
|
+
}), [["__scopeId", "data-v-fbc23c7d"]]), Fa = { class: "fnpd-dialog__header" }, Ia = { class: "fnpd-dialog__body" }, La = { class: "fnpd-fieldset" }, Ra = { class: "fnpd-legend" }, za = { class: "fnpd-row" }, Ba = { class: "fnpd-label" }, Va = { value: "pageBottom" }, Ha = { value: "beneathText" }, Ua = { class: "fnpd-row" }, Wa = { class: "fnpd-label" }, Ga = ["value"], Ka = { class: "fnpd-row" }, qa = { class: "fnpd-label" }, Ja = { class: "fnpd-row" }, Ya = { class: "fnpd-label" }, Xa = { value: "continuous" }, Za = { value: "eachSect" }, Qa = { value: "eachPage" }, $a = { class: "fnpd-fieldset" }, eo = { class: "fnpd-legend" }, to = { class: "fnpd-row" }, no = { class: "fnpd-label" }, ro = { value: "docEnd" }, io = { value: "sectEnd" }, ao = { class: "fnpd-row" }, oo = { class: "fnpd-label" }, so = ["value"], co = { class: "fnpd-row" }, lo = { class: "fnpd-label" }, uo = { class: "fnpd-row" }, fo = { class: "fnpd-label" }, po = { value: "continuous" }, mo = { value: "eachSect" }, ho = { class: "fnpd-dialog__footer" }, go = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
5449
5544
|
__name: "FootnotePropertiesDialog",
|
|
5450
5545
|
props: {
|
|
5451
5546
|
isOpen: { type: Boolean },
|
|
@@ -5506,21 +5601,21 @@ var Kn = u({
|
|
|
5506
5601
|
onClose: r[9] ||= (e) => n.$emit("close")
|
|
5507
5602
|
}, {
|
|
5508
5603
|
default: P(() => [
|
|
5509
|
-
s("div",
|
|
5510
|
-
s("div",
|
|
5511
|
-
s("legend",
|
|
5512
|
-
s("div",
|
|
5604
|
+
s("div", Fa, T(O(a)("dialogs.footnoteProperties.title")), 1),
|
|
5605
|
+
s("div", Ia, [s("fieldset", La, [
|
|
5606
|
+
s("legend", Ra, T(O(a)("dialogs.footnoteProperties.footnotes")), 1),
|
|
5607
|
+
s("div", za, [s("label", Ba, T(O(a)("dialogs.footnoteProperties.position")), 1), F(s("select", {
|
|
5513
5608
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
5514
5609
|
class: "fnpd-select"
|
|
5515
|
-
}, [s("option",
|
|
5516
|
-
s("div",
|
|
5610
|
+
}, [s("option", Va, T(O(a)("dialogs.footnoteProperties.footnotePositions.bottomOfPage")), 1), s("option", Ha, T(O(a)("dialogs.footnoteProperties.footnotePositions.belowText")), 1)], 512), [[j, f.value]])]),
|
|
5611
|
+
s("div", Ua, [s("label", Wa, T(O(a)("dialogs.footnoteProperties.numberFormat")), 1), F(s("select", {
|
|
5517
5612
|
"onUpdate:modelValue": r[1] ||= (e) => p.value = e,
|
|
5518
5613
|
class: "fnpd-select"
|
|
5519
5614
|
}, [(y(!0), o(t, null, C(d.value, (e) => (y(), o("option", {
|
|
5520
5615
|
key: e.value,
|
|
5521
5616
|
value: e.value
|
|
5522
|
-
}, T(e.label), 9,
|
|
5523
|
-
s("div",
|
|
5617
|
+
}, T(e.label), 9, Ga))), 128))], 512), [[j, p.value]])]),
|
|
5618
|
+
s("div", Ka, [s("label", qa, T(O(a)("dialogs.footnoteProperties.startAt")), 1), F(s("input", {
|
|
5524
5619
|
"onUpdate:modelValue": r[2] ||= (e) => m.value = e,
|
|
5525
5620
|
type: "number",
|
|
5526
5621
|
class: "fnpd-input",
|
|
@@ -5531,28 +5626,28 @@ var Kn = u({
|
|
|
5531
5626
|
void 0,
|
|
5532
5627
|
{ number: !0 }
|
|
5533
5628
|
]])]),
|
|
5534
|
-
s("div",
|
|
5629
|
+
s("div", Ja, [s("label", Ya, T(O(a)("dialogs.footnoteProperties.numbering")), 1), F(s("select", {
|
|
5535
5630
|
"onUpdate:modelValue": r[3] ||= (e) => h.value = e,
|
|
5536
5631
|
class: "fnpd-select"
|
|
5537
5632
|
}, [
|
|
5538
|
-
s("option",
|
|
5539
|
-
s("option",
|
|
5540
|
-
s("option",
|
|
5633
|
+
s("option", Xa, T(O(a)("dialogs.footnoteProperties.numberingOptions.continuous")), 1),
|
|
5634
|
+
s("option", Za, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1),
|
|
5635
|
+
s("option", Qa, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartPage")), 1)
|
|
5541
5636
|
], 512), [[j, h.value]])])
|
|
5542
|
-
]), s("fieldset",
|
|
5543
|
-
s("legend",
|
|
5544
|
-
s("div",
|
|
5637
|
+
]), s("fieldset", $a, [
|
|
5638
|
+
s("legend", eo, T(O(a)("dialogs.footnoteProperties.endnotes")), 1),
|
|
5639
|
+
s("div", to, [s("label", no, T(O(a)("dialogs.footnoteProperties.position")), 1), F(s("select", {
|
|
5545
5640
|
"onUpdate:modelValue": r[4] ||= (e) => g.value = e,
|
|
5546
5641
|
class: "fnpd-select"
|
|
5547
|
-
}, [s("option",
|
|
5548
|
-
s("div",
|
|
5642
|
+
}, [s("option", ro, T(O(a)("dialogs.footnoteProperties.endnotePositions.endOfDocument")), 1), s("option", io, T(O(a)("dialogs.footnoteProperties.endnotePositions.endOfSection")), 1)], 512), [[j, g.value]])]),
|
|
5643
|
+
s("div", ao, [s("label", oo, T(O(a)("dialogs.footnoteProperties.numberFormat")), 1), F(s("select", {
|
|
5549
5644
|
"onUpdate:modelValue": r[5] ||= (e) => _.value = e,
|
|
5550
5645
|
class: "fnpd-select"
|
|
5551
5646
|
}, [(y(!0), o(t, null, C(d.value, (e) => (y(), o("option", {
|
|
5552
5647
|
key: e.value,
|
|
5553
5648
|
value: e.value
|
|
5554
|
-
}, T(e.label), 9,
|
|
5555
|
-
s("div",
|
|
5649
|
+
}, T(e.label), 9, so))), 128))], 512), [[j, _.value]])]),
|
|
5650
|
+
s("div", co, [s("label", lo, T(O(a)("dialogs.footnoteProperties.startAt")), 1), F(s("input", {
|
|
5556
5651
|
"onUpdate:modelValue": r[6] ||= (e) => v.value = e,
|
|
5557
5652
|
type: "number",
|
|
5558
5653
|
class: "fnpd-input",
|
|
@@ -5563,12 +5658,12 @@ var Kn = u({
|
|
|
5563
5658
|
void 0,
|
|
5564
5659
|
{ number: !0 }
|
|
5565
5660
|
]])]),
|
|
5566
|
-
s("div",
|
|
5661
|
+
s("div", uo, [s("label", fo, T(O(a)("dialogs.footnoteProperties.numbering")), 1), F(s("select", {
|
|
5567
5662
|
"onUpdate:modelValue": r[7] ||= (e) => b.value = e,
|
|
5568
5663
|
class: "fnpd-select"
|
|
5569
|
-
}, [s("option",
|
|
5664
|
+
}, [s("option", po, T(O(a)("dialogs.footnoteProperties.numberingOptions.continuous")), 1), s("option", mo, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1)], 512), [[j, b.value]])])
|
|
5570
5665
|
])]),
|
|
5571
|
-
s("div",
|
|
5666
|
+
s("div", ho, [s("button", {
|
|
5572
5667
|
class: "fnpd-btn",
|
|
5573
5668
|
onClick: r[8] ||= (e) => n.$emit("close")
|
|
5574
5669
|
}, T(O(a)("common.cancel")), 1), s("button", {
|
|
@@ -5579,25 +5674,25 @@ var Kn = u({
|
|
|
5579
5674
|
_: 1
|
|
5580
5675
|
}, 8, ["open", "aria-label"]));
|
|
5581
5676
|
}
|
|
5582
|
-
}), [["__scopeId", "data-v-86718c10"]]),
|
|
5677
|
+
}), [["__scopeId", "data-v-86718c10"]]), _o = { class: "ipd-dialog__header" }, vo = { class: "ipd-dialog__body" }, yo = { class: "ipd-fieldset" }, bo = { class: "ipd-legend" }, xo = { class: "ipd-row" }, So = { value: "align" }, Co = { value: "offset" }, wo = {
|
|
5583
5678
|
key: 0,
|
|
5584
5679
|
class: "ipd-row"
|
|
5585
|
-
},
|
|
5680
|
+
}, To = { class: "ipd-label" }, Eo = { value: "left" }, Do = { value: "center" }, Oo = { value: "right" }, ko = {
|
|
5586
5681
|
key: 1,
|
|
5587
5682
|
class: "ipd-row"
|
|
5588
|
-
},
|
|
5683
|
+
}, Ao = { class: "ipd-label" }, jo = { class: "ipd-row" }, Mo = { class: "ipd-label" }, No = { value: "page" }, Po = { value: "column" }, Fo = { value: "margin" }, Io = { value: "character" }, Lo = { class: "ipd-fieldset" }, Ro = { class: "ipd-legend" }, zo = { class: "ipd-row" }, Bo = { value: "align" }, Vo = { value: "offset" }, Ho = {
|
|
5589
5684
|
key: 0,
|
|
5590
5685
|
class: "ipd-row"
|
|
5591
|
-
},
|
|
5686
|
+
}, Uo = { class: "ipd-label" }, Wo = { value: "top" }, Go = { value: "center" }, Ko = { value: "bottom" }, qo = {
|
|
5592
5687
|
key: 1,
|
|
5593
5688
|
class: "ipd-row"
|
|
5594
|
-
},
|
|
5689
|
+
}, Jo = { class: "ipd-label" }, Yo = { class: "ipd-row" }, Xo = { class: "ipd-label" }, Zo = { value: "page" }, Qo = { value: "margin" }, $o = { value: "paragraph" }, es = { value: "line" }, ts = { class: "ipd-fieldset" }, ns = { class: "ipd-row" }, rs = { class: "ipd-label" }, is = {
|
|
5595
5690
|
class: "ipd-label",
|
|
5596
5691
|
style: { width: "60px" }
|
|
5597
|
-
},
|
|
5692
|
+
}, as = { class: "ipd-row" }, os = { class: "ipd-label" }, ss = {
|
|
5598
5693
|
class: "ipd-label",
|
|
5599
5694
|
style: { width: "60px" }
|
|
5600
|
-
},
|
|
5695
|
+
}, cs = { class: "ipd-dialog__footer" }, ls = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
5601
5696
|
__name: "ImagePositionDialog",
|
|
5602
5697
|
props: {
|
|
5603
5698
|
isOpen: { type: Boolean },
|
|
@@ -5638,22 +5733,22 @@ var Kn = u({
|
|
|
5638
5733
|
onClose: a[13] ||= (e) => t.$emit("close")
|
|
5639
5734
|
}, {
|
|
5640
5735
|
default: P(() => [
|
|
5641
|
-
s("div",
|
|
5642
|
-
s("div",
|
|
5643
|
-
s("fieldset",
|
|
5644
|
-
s("legend",
|
|
5645
|
-
s("div",
|
|
5736
|
+
s("div", _o, T(O(n)("dialogs.imagePosition.title")), 1),
|
|
5737
|
+
s("div", vo, [
|
|
5738
|
+
s("fieldset", yo, [
|
|
5739
|
+
s("legend", bo, T(O(n)("dialogs.imagePosition.horizontal")), 1),
|
|
5740
|
+
s("div", xo, [a[14] ||= s("label", { class: "ipd-label" }, "Mode", -1), F(s("select", {
|
|
5646
5741
|
"onUpdate:modelValue": a[0] ||= (e) => l.value = e,
|
|
5647
5742
|
class: "ipd-select"
|
|
5648
|
-
}, [s("option",
|
|
5649
|
-
l.value === "align" ? (y(), o("div",
|
|
5743
|
+
}, [s("option", So, T(O(n)("dialogs.imagePosition.alignment")), 1), s("option", Co, T(O(n)("dialogs.imagePosition.offset")), 1)], 512), [[j, l.value]])]),
|
|
5744
|
+
l.value === "align" ? (y(), o("div", wo, [s("label", To, T(O(n)("dialogs.imagePosition.align")), 1), F(s("select", {
|
|
5650
5745
|
"onUpdate:modelValue": a[1] ||= (e) => u.value = e,
|
|
5651
5746
|
class: "ipd-select"
|
|
5652
5747
|
}, [
|
|
5653
|
-
s("option",
|
|
5654
|
-
s("option",
|
|
5655
|
-
s("option",
|
|
5656
|
-
], 512), [[j, u.value]])])) : (y(), o("div",
|
|
5748
|
+
s("option", Eo, T(O(n)("dialogs.imagePosition.alignOptions.left")), 1),
|
|
5749
|
+
s("option", Do, T(O(n)("dialogs.imagePosition.alignOptions.center")), 1),
|
|
5750
|
+
s("option", Oo, T(O(n)("dialogs.imagePosition.alignOptions.right")), 1)
|
|
5751
|
+
], 512), [[j, u.value]])])) : (y(), o("div", ko, [s("label", Ao, T(O(n)("dialogs.imagePosition.offsetPx")), 1), F(s("input", {
|
|
5657
5752
|
"onUpdate:modelValue": a[2] ||= (e) => d.value = e,
|
|
5658
5753
|
type: "number",
|
|
5659
5754
|
class: "ipd-input"
|
|
@@ -5663,30 +5758,30 @@ var Kn = u({
|
|
|
5663
5758
|
void 0,
|
|
5664
5759
|
{ number: !0 }
|
|
5665
5760
|
]])])),
|
|
5666
|
-
s("div",
|
|
5761
|
+
s("div", jo, [s("label", Mo, T(O(n)("dialogs.imagePosition.relativeTo")), 1), F(s("select", {
|
|
5667
5762
|
"onUpdate:modelValue": a[3] ||= (e) => f.value = e,
|
|
5668
5763
|
class: "ipd-select"
|
|
5669
5764
|
}, [
|
|
5670
|
-
s("option",
|
|
5671
|
-
s("option",
|
|
5672
|
-
s("option",
|
|
5673
|
-
s("option",
|
|
5765
|
+
s("option", No, T(O(n)("dialogs.imagePosition.relativeOptions.page")), 1),
|
|
5766
|
+
s("option", Po, T(O(n)("dialogs.imagePosition.relativeOptions.column")), 1),
|
|
5767
|
+
s("option", Fo, T(O(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
|
|
5768
|
+
s("option", Io, T(O(n)("dialogs.imagePosition.relativeOptions.character")), 1)
|
|
5674
5769
|
], 512), [[j, f.value]])])
|
|
5675
5770
|
]),
|
|
5676
|
-
s("fieldset",
|
|
5677
|
-
s("legend",
|
|
5678
|
-
s("div",
|
|
5771
|
+
s("fieldset", Lo, [
|
|
5772
|
+
s("legend", Ro, T(O(n)("dialogs.imagePosition.vertical")), 1),
|
|
5773
|
+
s("div", zo, [a[15] ||= s("label", { class: "ipd-label" }, "Mode", -1), F(s("select", {
|
|
5679
5774
|
"onUpdate:modelValue": a[4] ||= (e) => p.value = e,
|
|
5680
5775
|
class: "ipd-select"
|
|
5681
|
-
}, [s("option",
|
|
5682
|
-
p.value === "align" ? (y(), o("div",
|
|
5776
|
+
}, [s("option", Bo, T(O(n)("dialogs.imagePosition.alignment")), 1), s("option", Vo, T(O(n)("dialogs.imagePosition.offset")), 1)], 512), [[j, p.value]])]),
|
|
5777
|
+
p.value === "align" ? (y(), o("div", Ho, [s("label", Uo, T(O(n)("dialogs.imagePosition.align")), 1), F(s("select", {
|
|
5683
5778
|
"onUpdate:modelValue": a[5] ||= (e) => m.value = e,
|
|
5684
5779
|
class: "ipd-select"
|
|
5685
5780
|
}, [
|
|
5686
|
-
s("option",
|
|
5687
|
-
s("option",
|
|
5688
|
-
s("option",
|
|
5689
|
-
], 512), [[j, m.value]])])) : (y(), o("div",
|
|
5781
|
+
s("option", Wo, T(O(n)("dialogs.imagePosition.alignOptions.top")), 1),
|
|
5782
|
+
s("option", Go, T(O(n)("dialogs.imagePosition.alignOptions.center")), 1),
|
|
5783
|
+
s("option", Ko, T(O(n)("dialogs.imagePosition.alignOptions.bottom")), 1)
|
|
5784
|
+
], 512), [[j, m.value]])])) : (y(), o("div", qo, [s("label", Jo, T(O(n)("dialogs.imagePosition.offsetPx")), 1), F(s("input", {
|
|
5690
5785
|
"onUpdate:modelValue": a[6] ||= (e) => h.value = e,
|
|
5691
5786
|
type: "number",
|
|
5692
5787
|
class: "ipd-input"
|
|
@@ -5696,20 +5791,20 @@ var Kn = u({
|
|
|
5696
5791
|
void 0,
|
|
5697
5792
|
{ number: !0 }
|
|
5698
5793
|
]])])),
|
|
5699
|
-
s("div",
|
|
5794
|
+
s("div", Yo, [s("label", Xo, T(O(n)("dialogs.imagePosition.relativeTo")), 1), F(s("select", {
|
|
5700
5795
|
"onUpdate:modelValue": a[7] ||= (e) => g.value = e,
|
|
5701
5796
|
class: "ipd-select"
|
|
5702
5797
|
}, [
|
|
5703
|
-
s("option",
|
|
5704
|
-
s("option",
|
|
5705
|
-
s("option",
|
|
5706
|
-
s("option",
|
|
5798
|
+
s("option", Zo, T(O(n)("dialogs.imagePosition.relativeOptions.page")), 1),
|
|
5799
|
+
s("option", Qo, T(O(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
|
|
5800
|
+
s("option", $o, T(O(n)("dialogs.imagePosition.relativeOptions.paragraph")), 1),
|
|
5801
|
+
s("option", es, T(O(n)("dialogs.imagePosition.relativeOptions.line")), 1)
|
|
5707
5802
|
], 512), [[j, g.value]])])
|
|
5708
5803
|
]),
|
|
5709
|
-
s("fieldset",
|
|
5804
|
+
s("fieldset", ts, [
|
|
5710
5805
|
a[16] ||= s("legend", { class: "ipd-legend" }, "Distance from text (px)", -1),
|
|
5711
|
-
s("div",
|
|
5712
|
-
s("label",
|
|
5806
|
+
s("div", ns, [
|
|
5807
|
+
s("label", rs, T(O(n)("dialogs.imagePosition.alignOptions.top")), 1),
|
|
5713
5808
|
F(s("input", {
|
|
5714
5809
|
"onUpdate:modelValue": a[8] ||= (e) => _.value = e,
|
|
5715
5810
|
type: "number",
|
|
@@ -5721,7 +5816,7 @@ var Kn = u({
|
|
|
5721
5816
|
void 0,
|
|
5722
5817
|
{ number: !0 }
|
|
5723
5818
|
]]),
|
|
5724
|
-
s("label",
|
|
5819
|
+
s("label", is, T(O(n)("dialogs.imagePosition.alignOptions.bottom")), 1),
|
|
5725
5820
|
F(s("input", {
|
|
5726
5821
|
"onUpdate:modelValue": a[9] ||= (e) => v.value = e,
|
|
5727
5822
|
type: "number",
|
|
@@ -5734,8 +5829,8 @@ var Kn = u({
|
|
|
5734
5829
|
{ number: !0 }
|
|
5735
5830
|
]])
|
|
5736
5831
|
]),
|
|
5737
|
-
s("div",
|
|
5738
|
-
s("label",
|
|
5832
|
+
s("div", as, [
|
|
5833
|
+
s("label", os, T(O(n)("dialogs.imagePosition.alignOptions.left")), 1),
|
|
5739
5834
|
F(s("input", {
|
|
5740
5835
|
"onUpdate:modelValue": a[10] ||= (e) => b.value = e,
|
|
5741
5836
|
type: "number",
|
|
@@ -5747,7 +5842,7 @@ var Kn = u({
|
|
|
5747
5842
|
void 0,
|
|
5748
5843
|
{ number: !0 }
|
|
5749
5844
|
]]),
|
|
5750
|
-
s("label",
|
|
5845
|
+
s("label", ss, T(O(n)("dialogs.imagePosition.alignOptions.right")), 1),
|
|
5751
5846
|
F(s("input", {
|
|
5752
5847
|
"onUpdate:modelValue": a[11] ||= (e) => x.value = e,
|
|
5753
5848
|
type: "number",
|
|
@@ -5762,7 +5857,7 @@ var Kn = u({
|
|
|
5762
5857
|
])
|
|
5763
5858
|
])
|
|
5764
5859
|
]),
|
|
5765
|
-
s("div",
|
|
5860
|
+
s("div", cs, [s("button", {
|
|
5766
5861
|
class: "ipd-btn",
|
|
5767
5862
|
onClick: a[12] ||= (e) => t.$emit("close")
|
|
5768
5863
|
}, T(O(n)("common.cancel")), 1), s("button", {
|
|
@@ -5773,7 +5868,7 @@ var Kn = u({
|
|
|
5773
5868
|
_: 1
|
|
5774
5869
|
}, 8, ["open", "aria-label"]));
|
|
5775
5870
|
}
|
|
5776
|
-
}), [["__scopeId", "data-v-64d4c153"]]),
|
|
5871
|
+
}), [["__scopeId", "data-v-64d4c153"]]), us = { class: "dialog__body" }, ds = { class: "field" }, fs = ["accept"], ps = { class: "field" }, ms = ["placeholder"], hs = { class: "grid" }, gs = { class: "field" }, _s = { class: "field" }, vs = { class: "dialog__footer" }, ys = ["disabled"], bs = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
5777
5872
|
__name: "InsertImageDialog",
|
|
5778
5873
|
props: {
|
|
5779
5874
|
isOpen: { type: Boolean },
|
|
@@ -5815,25 +5910,25 @@ var Kn = u({
|
|
|
5815
5910
|
}, {
|
|
5816
5911
|
default: P(() => [
|
|
5817
5912
|
r[9] ||= s("div", { class: "dialog__header" }, "Insert Image", -1),
|
|
5818
|
-
s("div",
|
|
5819
|
-
s("label",
|
|
5913
|
+
s("div", us, [
|
|
5914
|
+
s("label", ds, [r[5] ||= s("span", { class: "field__label" }, "Image file", -1), s("input", {
|
|
5820
5915
|
class: "field__input",
|
|
5821
5916
|
type: "file",
|
|
5822
5917
|
accept: e.accept,
|
|
5823
5918
|
onChange: d
|
|
5824
|
-
}, null, 40,
|
|
5825
|
-
s("label",
|
|
5919
|
+
}, null, 40, fs)]),
|
|
5920
|
+
s("label", ps, [r[6] ||= s("span", { class: "field__label" }, "Alt text", -1), F(s("input", {
|
|
5826
5921
|
"onUpdate:modelValue": r[0] ||= (e) => c.value = e,
|
|
5827
5922
|
class: "field__input",
|
|
5828
5923
|
placeholder: o.value?.name ?? ""
|
|
5829
|
-
}, null, 8,
|
|
5830
|
-
s("div",
|
|
5924
|
+
}, null, 8, ms), [[M, c.value]])]),
|
|
5925
|
+
s("div", hs, [s("label", gs, [r[7] ||= s("span", { class: "field__label" }, "Width", -1), F(s("input", {
|
|
5831
5926
|
"onUpdate:modelValue": r[1] ||= (e) => l.value = e,
|
|
5832
5927
|
class: "field__input",
|
|
5833
5928
|
min: "1",
|
|
5834
5929
|
placeholder: "Auto",
|
|
5835
5930
|
type: "number"
|
|
5836
|
-
}, null, 512), [[M, l.value]])]), s("label",
|
|
5931
|
+
}, null, 512), [[M, l.value]])]), s("label", _s, [r[8] ||= s("span", { class: "field__label" }, "Height", -1), F(s("input", {
|
|
5837
5932
|
"onUpdate:modelValue": r[2] ||= (e) => u.value = e,
|
|
5838
5933
|
class: "field__input",
|
|
5839
5934
|
min: "1",
|
|
@@ -5841,14 +5936,14 @@ var Kn = u({
|
|
|
5841
5936
|
type: "number"
|
|
5842
5937
|
}, null, 512), [[M, u.value]])])])
|
|
5843
5938
|
]),
|
|
5844
|
-
s("div",
|
|
5939
|
+
s("div", vs, [s("button", {
|
|
5845
5940
|
class: "dialog__btn",
|
|
5846
5941
|
onClick: r[3] ||= (e) => t.$emit("close")
|
|
5847
5942
|
}, "Cancel"), s("button", {
|
|
5848
5943
|
class: "dialog__btn dialog__btn--primary",
|
|
5849
5944
|
disabled: !o.value,
|
|
5850
5945
|
onClick: f
|
|
5851
|
-
}, " Insert ", 8,
|
|
5946
|
+
}, " Insert ", 8, ys)])
|
|
5852
5947
|
]),
|
|
5853
5948
|
_: 1
|
|
5854
5949
|
}, 8, ["open"]));
|
|
@@ -5857,7 +5952,7 @@ var Kn = u({
|
|
|
5857
5952
|
style: "single",
|
|
5858
5953
|
size: 4,
|
|
5859
5954
|
color: { rgb: e }
|
|
5860
|
-
}),
|
|
5955
|
+
}), xs = [
|
|
5861
5956
|
{
|
|
5862
5957
|
id: "TableNormal",
|
|
5863
5958
|
name: "Normal Table",
|
|
@@ -6149,7 +6244,7 @@ var Kn = u({
|
|
|
6149
6244
|
band1Horz: { backgroundColor: "#E2EFDA" }
|
|
6150
6245
|
}
|
|
6151
6246
|
}
|
|
6152
|
-
],
|
|
6247
|
+
], Ss = {
|
|
6153
6248
|
TableNormal: "table.styles.normalTable",
|
|
6154
6249
|
TableGrid: "table.styles.tableGrid",
|
|
6155
6250
|
TableGridLight: "table.styles.gridTableLight",
|
|
@@ -6164,15 +6259,15 @@ var Kn = u({
|
|
|
6164
6259
|
"ListTable4-Accent3": "table.styles.listTable4Accent3",
|
|
6165
6260
|
"GridTable4-Accent5": "table.styles.gridTable4Accent5",
|
|
6166
6261
|
"GridTable4-Accent6": "table.styles.gridTable4Accent6"
|
|
6167
|
-
},
|
|
6168
|
-
function
|
|
6169
|
-
let t = e ?
|
|
6262
|
+
}, Cs = 4, ws = 3;
|
|
6263
|
+
function Ts(e) {
|
|
6264
|
+
let t = e ? se(e.style) : "none";
|
|
6170
6265
|
return !e || t === "none" ? "none" : `${e.size ? Math.max(1, Math.round(e.size / 8)) : 1}px ${t} ${e.color?.rgb ? `#${e.color.rgb}` : "#000"}`;
|
|
6171
6266
|
}
|
|
6172
|
-
function
|
|
6173
|
-
return
|
|
6267
|
+
function Es(e, t, n, r) {
|
|
6268
|
+
return Ts(e === void 0 ? t ? n ?? r : r : e);
|
|
6174
6269
|
}
|
|
6175
|
-
function
|
|
6270
|
+
function Ds(e, t = Cs, n = ws) {
|
|
6176
6271
|
let r = e.look ?? {}, i = e.conditionals ?? {}, a = e.tableBorders, o = [], s = 0;
|
|
6177
6272
|
for (let e = 0; e < t; e++) {
|
|
6178
6273
|
let c = e === 0 && !!r.firstRow, l = e === t - 1 && !!r.lastRow, u = r.noHBand !== !0, d;
|
|
@@ -6185,10 +6280,10 @@ function ws(e, t = bs, n = xs) {
|
|
|
6185
6280
|
height: "10px",
|
|
6186
6281
|
boxSizing: "border-box",
|
|
6187
6282
|
backgroundColor: m?.backgroundColor ?? "transparent",
|
|
6188
|
-
borderTop:
|
|
6189
|
-
borderBottom:
|
|
6190
|
-
borderLeft:
|
|
6191
|
-
borderRight:
|
|
6283
|
+
borderTop: Es(h?.top, e > 0, a?.insideH, a?.top),
|
|
6284
|
+
borderBottom: Es(h?.bottom, e < t - 1, a?.insideH, a?.bottom),
|
|
6285
|
+
borderLeft: Es(h?.left, s > 0, a?.insideV, a?.left),
|
|
6286
|
+
borderRight: Es(h?.right, s < n - 1, a?.insideV, a?.right)
|
|
6192
6287
|
};
|
|
6193
6288
|
o.push(g);
|
|
6194
6289
|
}
|
|
@@ -6197,40 +6292,40 @@ function ws(e, t = bs, n = xs) {
|
|
|
6197
6292
|
}
|
|
6198
6293
|
//#endregion
|
|
6199
6294
|
//#region src/components/ui/TableStyleGallery.vue?vue&type=script&setup=true&lang.ts
|
|
6200
|
-
var
|
|
6295
|
+
var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMousedown"], js = { class: "tsg__preview" }, Ms = { class: "tsg__name" }, Ns = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
6201
6296
|
__name: "TableStyleGallery",
|
|
6202
6297
|
props: { currentStyleId: {} },
|
|
6203
6298
|
emits: ["apply"],
|
|
6204
6299
|
setup(e) {
|
|
6205
|
-
let { t: n } = Z(), r =
|
|
6300
|
+
let { t: n } = Z(), r = xs;
|
|
6206
6301
|
function i(e) {
|
|
6207
|
-
let t =
|
|
6302
|
+
let t = Ss[e.id];
|
|
6208
6303
|
return t ? n(t) : e.name;
|
|
6209
6304
|
}
|
|
6210
|
-
return (n, a) => (y(), o("div",
|
|
6305
|
+
return (n, a) => (y(), o("div", Os, [s("div", ks, [(y(!0), o(t, null, C(O(r), (r) => (y(), o("button", {
|
|
6211
6306
|
key: r.id,
|
|
6212
6307
|
class: h(["tsg__item", { "tsg__item--selected": e.currentStyleId === r.id }]),
|
|
6213
6308
|
title: i(r),
|
|
6214
6309
|
onMousedown: L((e) => n.$emit("apply", r.id), ["prevent"])
|
|
6215
|
-
}, [s("div",
|
|
6310
|
+
}, [s("div", js, [(y(!0), o(t, null, C(O(Ds)(r), (e, t) => (y(), o("div", {
|
|
6216
6311
|
key: t,
|
|
6217
6312
|
class: "tsg__cell",
|
|
6218
6313
|
style: g(e)
|
|
6219
|
-
}, null, 4))), 128))]), s("span",
|
|
6314
|
+
}, null, 4))), 128))]), s("span", Ms, T(i(r)), 1)], 42, As))), 128))])]));
|
|
6220
6315
|
}
|
|
6221
|
-
}), [["__scopeId", "data-v-c155c39f"]]),
|
|
6316
|
+
}), [["__scopeId", "data-v-c155c39f"]]), Ps = x({
|
|
6222
6317
|
rows: 3,
|
|
6223
6318
|
cols: 3
|
|
6224
|
-
}),
|
|
6319
|
+
}), Fs = { class: "dialog__header" }, Is = { class: "dialog__title" }, Ls = ["title"], Rs = { class: "dialog__body" }, zs = ["aria-label"], Bs = ["onMouseenter", "onMousedown"], Vs = { class: "table-grid__label" }, Hs = { class: "dialog__separator" }, Us = { class: "table-manual" }, Ws = { class: "table-manual__field" }, Gs = { class: "table-manual__field" }, Ks = { class: "table-options" }, qs = { class: "table-options__radio" }, Js = { class: "table-options__radio" }, Ys = { class: "dialog__separator" }, Xs = { class: "dialog__footer" }, Zs = ["disabled"], Qs = 8, $s = 10, ec = 1, tc = 100, nc = 1, rc = 20, ic = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
6225
6320
|
__name: "InsertTableDialog",
|
|
6226
6321
|
props: { isOpen: { type: Boolean } },
|
|
6227
6322
|
emits: ["close", "insert"],
|
|
6228
6323
|
setup(e, { emit: n }) {
|
|
6229
|
-
let { t: i } = Z(), c = e, u = n, d = S(0), f = S(0), p = S(
|
|
6324
|
+
let { t: i } = Z(), c = e, u = n, d = S(0), f = S(0), p = S(Ps.rows), m = S(Ps.cols), g = S("fixed"), _ = S(null);
|
|
6230
6325
|
N(() => c.isOpen, (e) => {
|
|
6231
|
-
e && (p.value =
|
|
6326
|
+
e && (p.value = Ps.rows, m.value = Ps.cols, d.value = 0, f.value = 0);
|
|
6232
6327
|
});
|
|
6233
|
-
let v = r(() => Number.parseInt(String(p.value), 10)), b = r(() => Number.parseInt(String(m.value), 10)), x = r(() => Number.isFinite(v.value) && v.value >=
|
|
6328
|
+
let v = r(() => Number.parseInt(String(p.value), 10)), b = r(() => Number.parseInt(String(m.value), 10)), x = r(() => Number.isFinite(v.value) && v.value >= ec && v.value <= tc), w = r(() => Number.isFinite(b.value) && b.value >= nc && b.value <= rc), E = r(() => x.value && w.value);
|
|
6234
6329
|
function D() {
|
|
6235
6330
|
u("close");
|
|
6236
6331
|
}
|
|
@@ -6242,8 +6337,8 @@ var Ts = { class: "tsg" }, Es = { class: "tsg__grid" }, Ds = ["title", "onMoused
|
|
|
6242
6337
|
}
|
|
6243
6338
|
function P() {
|
|
6244
6339
|
if (!E.value) return;
|
|
6245
|
-
let e = Math.min(Math.max(
|
|
6246
|
-
|
|
6340
|
+
let e = Math.min(Math.max(ec, v.value), tc), t = Math.min(Math.max(nc, b.value), rc);
|
|
6341
|
+
Ps.rows = e, Ps.cols = t, u("insert", {
|
|
6247
6342
|
rows: e,
|
|
6248
6343
|
cols: t,
|
|
6249
6344
|
autofit: g.value === "autofit",
|
|
@@ -6259,83 +6354,83 @@ var Ts = { class: "tsg" }, Es = { class: "tsg__grid" }, Ds = ["title", "onMoused
|
|
|
6259
6354
|
onMousedown: r[7] ||= L(() => {}, ["stop"]),
|
|
6260
6355
|
onKeydown: L(j, ["stop"])
|
|
6261
6356
|
}, [
|
|
6262
|
-
s("div",
|
|
6357
|
+
s("div", Fs, [s("span", Is, T(O(i)("dialogs.insertTable.title")), 1), s("button", {
|
|
6263
6358
|
class: "dialog__close",
|
|
6264
6359
|
title: O(i)("common.closeDialog"),
|
|
6265
6360
|
onClick: D
|
|
6266
|
-
}, "✕", 8,
|
|
6267
|
-
s("div",
|
|
6361
|
+
}, "✕", 8, Ls)]),
|
|
6362
|
+
s("div", Rs, [
|
|
6268
6363
|
s("div", {
|
|
6269
6364
|
class: "table-grid",
|
|
6270
6365
|
"aria-label": O(i)("dialogs.insertTable.sizeSelector"),
|
|
6271
6366
|
onMouseleave: r[0] ||= (e) => {
|
|
6272
6367
|
d.value = 0, f.value = 0;
|
|
6273
6368
|
}
|
|
6274
|
-
}, [(y(), o(t, null, C(
|
|
6369
|
+
}, [(y(), o(t, null, C(Qs, (e) => s("div", {
|
|
6275
6370
|
key: e,
|
|
6276
6371
|
class: "table-grid__row"
|
|
6277
|
-
}, [(y(), o(t, null, C(
|
|
6372
|
+
}, [(y(), o(t, null, C($s, (t) => s("div", {
|
|
6278
6373
|
key: t,
|
|
6279
6374
|
class: h(["table-grid__cell", { highlight: e <= d.value && t <= f.value }]),
|
|
6280
6375
|
onMouseenter: (n) => {
|
|
6281
6376
|
d.value = e, f.value = t;
|
|
6282
6377
|
},
|
|
6283
6378
|
onMousedown: L((n) => k(e, t), ["prevent"])
|
|
6284
|
-
}, null, 42,
|
|
6285
|
-
s("div",
|
|
6379
|
+
}, null, 42, Bs)), 64))])), 64))], 40, zs),
|
|
6380
|
+
s("div", Vs, T(d.value > 0 ? O(i)("dialogs.insertTable.tableSize", {
|
|
6286
6381
|
cols: f.value,
|
|
6287
6382
|
rows: d.value
|
|
6288
6383
|
}) : O(i)("dialogs.insertTable.hoverToSelect")), 1),
|
|
6289
|
-
s("div",
|
|
6290
|
-
s("div",
|
|
6384
|
+
s("div", Hs, [s("span", null, T(O(i)("dialogs.insertTable.orSpecifySize")), 1)]),
|
|
6385
|
+
s("div", Us, [s("label", Ws, [s("span", null, T(O(i)("dialogs.insertTable.rowsLabel")), 1), F(s("input", {
|
|
6291
6386
|
"onUpdate:modelValue": r[1] ||= (e) => p.value = e,
|
|
6292
6387
|
type: "number",
|
|
6293
|
-
min:
|
|
6294
|
-
max:
|
|
6388
|
+
min: ec,
|
|
6389
|
+
max: tc,
|
|
6295
6390
|
class: h(["table-manual__input", { "table-manual__input--invalid": !x.value }])
|
|
6296
|
-
}, null, 2), [[M, p.value]])]), s("label",
|
|
6391
|
+
}, null, 2), [[M, p.value]])]), s("label", Gs, [s("span", null, T(O(i)("dialogs.insertTable.columnsLabel")), 1), F(s("input", {
|
|
6297
6392
|
"onUpdate:modelValue": r[2] ||= (e) => m.value = e,
|
|
6298
6393
|
type: "number",
|
|
6299
|
-
min:
|
|
6300
|
-
max:
|
|
6394
|
+
min: nc,
|
|
6395
|
+
max: rc,
|
|
6301
6396
|
class: h(["table-manual__input", { "table-manual__input--invalid": !w.value }])
|
|
6302
6397
|
}, null, 2), [[M, m.value]])])]),
|
|
6303
6398
|
s("div", { class: h(["table-manual__hint", { "table-manual__hint--error": !E.value }]) }, T(O(i)("dialogs.insertTable.validationHint", {
|
|
6304
|
-
minRows:
|
|
6305
|
-
maxRows:
|
|
6306
|
-
minCols:
|
|
6307
|
-
maxCols:
|
|
6399
|
+
minRows: ec,
|
|
6400
|
+
maxRows: tc,
|
|
6401
|
+
minCols: nc,
|
|
6402
|
+
maxCols: rc
|
|
6308
6403
|
})), 3),
|
|
6309
|
-
s("fieldset",
|
|
6404
|
+
s("fieldset", Ks, [
|
|
6310
6405
|
s("legend", null, T(O(i)("dialogs.insertTable.columnWidthLabel")), 1),
|
|
6311
|
-
s("label",
|
|
6406
|
+
s("label", qs, [F(s("input", {
|
|
6312
6407
|
type: "radio",
|
|
6313
6408
|
value: "fixed",
|
|
6314
6409
|
"onUpdate:modelValue": r[3] ||= (e) => g.value = e
|
|
6315
6410
|
}, null, 512), [[A, g.value]]), s("span", null, T(O(i)("dialogs.insertTable.fixedWidth")), 1)]),
|
|
6316
|
-
s("label",
|
|
6411
|
+
s("label", Js, [F(s("input", {
|
|
6317
6412
|
type: "radio",
|
|
6318
6413
|
value: "autofit",
|
|
6319
6414
|
"onUpdate:modelValue": r[4] ||= (e) => g.value = e
|
|
6320
6415
|
}, null, 512), [[A, g.value]]), s("span", null, T(O(i)("dialogs.insertTable.autofit")), 1)])
|
|
6321
6416
|
]),
|
|
6322
|
-
s("div",
|
|
6323
|
-
l(
|
|
6417
|
+
s("div", Ys, [s("span", null, T(O(i)("dialogs.insertTable.style")), 1)]),
|
|
6418
|
+
l(Ns, {
|
|
6324
6419
|
"current-style-id": _.value,
|
|
6325
6420
|
onApply: r[5] ||= (e) => _.value = e
|
|
6326
6421
|
}, null, 8, ["current-style-id"])
|
|
6327
6422
|
]),
|
|
6328
|
-
s("div",
|
|
6423
|
+
s("div", Xs, [s("button", {
|
|
6329
6424
|
class: "dialog__btn",
|
|
6330
6425
|
onMousedown: L(D, ["prevent"])
|
|
6331
6426
|
}, T(O(i)("common.cancel")), 33), s("button", {
|
|
6332
6427
|
class: "dialog__btn dialog__btn--primary",
|
|
6333
6428
|
disabled: !E.value,
|
|
6334
6429
|
onMousedown: r[6] ||= L((e) => P(), ["prevent"])
|
|
6335
|
-
}, T(O(i)("dialogs.insertTable.insertButton")), 41,
|
|
6430
|
+
}, T(O(i)("dialogs.insertTable.insertButton")), 41, Zs)])
|
|
6336
6431
|
], 32)], 32)) : a("", !0);
|
|
6337
6432
|
}
|
|
6338
|
-
}), [["__scopeId", "data-v-cc53b9fa"]]),
|
|
6433
|
+
}), [["__scopeId", "data-v-cc53b9fa"]]), ac = { class: "dialog__body" }, oc = { class: "options" }, sc = ["value"], cc = { class: "option__body" }, lc = { class: "option__label" }, uc = { class: "option__description" }, dc = { class: "dialog__footer" }, fc = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
6339
6434
|
__name: "PasteSpecialDialog",
|
|
6340
6435
|
props: {
|
|
6341
6436
|
isOpen: { type: Boolean },
|
|
@@ -6378,15 +6473,15 @@ var Ts = { class: "tsg" }, Es = { class: "tsg__grid" }, Ds = ["title", "onMoused
|
|
|
6378
6473
|
}, {
|
|
6379
6474
|
default: P(() => [
|
|
6380
6475
|
c[4] ||= s("div", { class: "dialog__header" }, "Paste Special", -1),
|
|
6381
|
-
s("div",
|
|
6476
|
+
s("div", ac, [s("fieldset", oc, [c[3] ||= s("legend", { class: "options__legend" }, "Paste mode", -1), (y(), o(t, null, C(a, (e) => s("label", {
|
|
6382
6477
|
key: e.value,
|
|
6383
6478
|
class: "option"
|
|
6384
6479
|
}, [F(s("input", {
|
|
6385
6480
|
"onUpdate:modelValue": c[0] ||= (e) => u.value = e,
|
|
6386
6481
|
type: "radio",
|
|
6387
6482
|
value: e.value
|
|
6388
|
-
}, null, 8,
|
|
6389
|
-
s("div",
|
|
6483
|
+
}, null, 8, sc), [[A, u.value]]), s("span", cc, [s("span", lc, T(e.label), 1), s("span", uc, T(e.description), 1)])])), 64))])]),
|
|
6484
|
+
s("div", dc, [s("button", {
|
|
6390
6485
|
class: "dialog__btn",
|
|
6391
6486
|
onClick: c[1] ||= (e) => n.$emit("close")
|
|
6392
6487
|
}, "Cancel"), s("button", {
|
|
@@ -6397,7 +6492,7 @@ var Ts = { class: "tsg" }, Es = { class: "tsg__grid" }, Ds = ["title", "onMoused
|
|
|
6397
6492
|
_: 1
|
|
6398
6493
|
}, 8, ["open"]));
|
|
6399
6494
|
}
|
|
6400
|
-
}), [["__scopeId", "data-v-540e9db3"]]),
|
|
6495
|
+
}), [["__scopeId", "data-v-540e9db3"]]), pc = { class: "dialog__body" }, mc = { class: "grid" }, hc = { class: "field" }, gc = { class: "field" }, _c = { class: "check" }, vc = { class: "dialog__footer" }, yc = ["disabled"], bc = 1, xc = 63, Sc = /*#__PURE__*/ H(/* @__PURE__ */ u({
|
|
6401
6496
|
__name: "SplitCellDialog",
|
|
6402
6497
|
props: {
|
|
6403
6498
|
isOpen: { type: Boolean },
|
|
@@ -6418,7 +6513,7 @@ var Ts = { class: "tsg" }, Es = { class: "tsg__grid" }, Ds = ["title", "onMoused
|
|
|
6418
6513
|
}), o("close"));
|
|
6419
6514
|
}
|
|
6420
6515
|
function h(e) {
|
|
6421
|
-
return Math.min(
|
|
6516
|
+
return Math.min(xc, Math.max(bc, Math.trunc(e)));
|
|
6422
6517
|
}
|
|
6423
6518
|
return (t, r) => (y(), i(O(n), {
|
|
6424
6519
|
open: e.isOpen,
|
|
@@ -6433,44 +6528,44 @@ var Ts = { class: "tsg" }, Es = { class: "tsg__grid" }, Ds = ["title", "onMoused
|
|
|
6433
6528
|
}, {
|
|
6434
6529
|
default: P(() => [
|
|
6435
6530
|
r[8] ||= s("div", { class: "dialog__header" }, "Split Cell", -1),
|
|
6436
|
-
s("div",
|
|
6531
|
+
s("div", pc, [s("div", mc, [s("label", hc, [r[5] ||= s("span", { class: "field__label" }, "Columns", -1), F(s("input", {
|
|
6437
6532
|
"onUpdate:modelValue": r[0] ||= (e) => l.value = e,
|
|
6438
6533
|
class: "field__input",
|
|
6439
|
-
max:
|
|
6440
|
-
min:
|
|
6534
|
+
max: xc,
|
|
6535
|
+
min: bc,
|
|
6441
6536
|
type: "number"
|
|
6442
6537
|
}, null, 512), [[
|
|
6443
6538
|
M,
|
|
6444
6539
|
l.value,
|
|
6445
6540
|
void 0,
|
|
6446
6541
|
{ number: !0 }
|
|
6447
|
-
]])]), s("label",
|
|
6542
|
+
]])]), s("label", gc, [r[6] ||= s("span", { class: "field__label" }, "Rows", -1), F(s("input", {
|
|
6448
6543
|
"onUpdate:modelValue": r[1] ||= (e) => c.value = e,
|
|
6449
6544
|
class: "field__input",
|
|
6450
|
-
max:
|
|
6451
|
-
min:
|
|
6545
|
+
max: xc,
|
|
6546
|
+
min: bc,
|
|
6452
6547
|
type: "number"
|
|
6453
6548
|
}, null, 512), [[
|
|
6454
6549
|
M,
|
|
6455
6550
|
c.value,
|
|
6456
6551
|
void 0,
|
|
6457
6552
|
{ number: !0 }
|
|
6458
|
-
]])])]), s("label",
|
|
6553
|
+
]])])]), s("label", _c, [F(s("input", {
|
|
6459
6554
|
"onUpdate:modelValue": r[2] ||= (e) => u.value = e,
|
|
6460
6555
|
type: "checkbox"
|
|
6461
6556
|
}, null, 512), [[k, u.value]]), r[7] ||= s("span", null, "Merge selected cells before splitting", -1)])]),
|
|
6462
|
-
s("div",
|
|
6557
|
+
s("div", vc, [s("button", {
|
|
6463
6558
|
class: "dialog__btn",
|
|
6464
6559
|
onClick: r[3] ||= (e) => t.$emit("close")
|
|
6465
6560
|
}, "Cancel"), s("button", {
|
|
6466
6561
|
class: "dialog__btn dialog__btn--primary",
|
|
6467
6562
|
disabled: !p.value,
|
|
6468
6563
|
onClick: m
|
|
6469
|
-
}, " Split ", 8,
|
|
6564
|
+
}, " Split ", 8, yc)])
|
|
6470
6565
|
]),
|
|
6471
6566
|
_: 1
|
|
6472
6567
|
}, 8, ["open"]));
|
|
6473
6568
|
}
|
|
6474
6569
|
}), [["__scopeId", "data-v-c4c6621c"]]);
|
|
6475
6570
|
//#endregion
|
|
6476
|
-
export { Ht as A, Tn as C, _n as D, yn as E,
|
|
6571
|
+
export { Ht as A, Tn as C, _n as D, yn as E, H as F, Kt as M, Z as N, Qt as O, G as P, Pn as S, xn as T, Jn as _, bs as a, Wn as b, Pa as c, Ti as d, oi as f, Yn as g, Gn as h, Ns as i, qt as j, Xt as k, ma as l, rr as m, fc as n, ls as o, Ar as p, ic as r, go as s, Sc as t, Qi as u, qn as v, Cn as w, Bn as x, Q as y };
|