@stll/folio-vue 0.24.0 → 0.26.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-DjLPhg8p.js → ListButtons-1YJNViXB.js} +416 -398
- package/dist/ListButtons-Cw5RTKNt.cjs +4 -0
- package/dist/{SplitCellDialog-Id6nLwrR.js → SplitCellDialog-CWvjxbog.js} +1207 -1185
- package/dist/SplitCellDialog-Dpp-FPQ6.cjs +15 -0
- package/dist/components/AnonymizationRectsOverlay.vue.d.ts +20 -0
- package/dist/components/AutocompleteCaretOverlay.vue.d.ts +4 -0
- package/dist/components/AutocompleteSuggestionOverlay.vue.d.ts +11 -0
- package/dist/components/CommentMarginMarkers.vue.d.ts +16 -0
- package/dist/components/ContentControlWidgetsOverlay.vue.d.ts +8 -0
- package/dist/components/DecorationLayer.vue.d.ts +12 -0
- package/dist/components/DocumentName.vue.d.ts +13 -0
- package/dist/components/DocumentOutline.vue.d.ts +28 -0
- package/dist/components/DocxEditor/DocxEditorDialogs.vue.d.ts +67 -0
- package/dist/components/DocxEditor/DocxEditorMenuBar.vue.d.ts +39 -0
- package/dist/components/DocxEditor/DocxEditorOverlays.vue.d.ts +42 -0
- package/dist/components/DocxEditor/types.d.ts +18 -2
- package/dist/components/DocxEditor.vue.d.ts +61 -0
- package/dist/components/EditingModeDropdown.vue.d.ts +11 -0
- package/dist/components/EditorToolbar.vue.d.ts +30 -0
- package/dist/components/FormattingBar.vue.d.ts +20 -0
- package/dist/components/HeaderFooterSelectionOverlay.vue.d.ts +12 -0
- package/dist/components/ImageContextMenu.vue.d.ts +24 -0
- package/dist/components/ImageSelectionOverlay.vue.d.ts +21 -0
- package/dist/components/InlineHeaderFooterEditor.vue.d.ts +15 -0
- package/dist/components/MenuBar.vue.d.ts +18 -0
- package/dist/components/PageIndicator.vue.d.ts +8 -0
- package/dist/components/PassageHighlightOverlay.vue.d.ts +16 -0
- package/dist/components/PrintButton.vue.d.ts +16 -0
- package/dist/components/ReviewControls.vue.d.ts +17 -0
- package/dist/components/TemplateDirectivesOverlay.vue.d.ts +15 -0
- package/dist/components/TextContextMenu.vue.d.ts +46 -0
- package/dist/components/TitleBar.vue.d.ts +17 -0
- package/dist/components/Toolbar.vue.d.ts +139 -0
- package/dist/components/UnifiedSidebar.vue.d.ts +55 -0
- package/dist/components/dialogs/FindReplaceDialog.vue.d.ts +12 -0
- package/dist/components/dialogs/FootnotePropertiesDialog.vue.d.ts +15 -0
- package/dist/components/dialogs/HyperlinkDialog.vue.d.ts +30 -0
- package/dist/components/dialogs/ImagePositionDialog.vue.d.ts +29 -0
- package/dist/components/dialogs/ImagePropertiesDialog.vue.d.ts +13 -0
- package/dist/components/dialogs/InsertImageDialog.vue.d.ts +21 -0
- package/dist/components/dialogs/InsertSymbolDialog.vue.d.ts +12 -0
- package/dist/components/dialogs/InsertTableDialog.vue.d.ts +22 -0
- package/dist/components/dialogs/PageSetupDialog.vue.d.ts +14 -0
- package/dist/components/dialogs/PasteSpecialDialog.vue.d.ts +16 -0
- package/dist/components/dialogs/SetNumberingValueDialog.vue.d.ts +12 -0
- package/dist/components/dialogs/SplitCellDialog.vue.d.ts +22 -0
- package/dist/components/dialogs/TablePropertiesDialog.vue.d.ts +15 -0
- package/dist/components/dialogs/WatermarkDialog.vue.d.ts +14 -0
- package/dist/components/dialogs/index.d.ts +13 -13
- package/dist/components/sidebar/AddCommentCard.vue.d.ts +9 -0
- package/dist/components/sidebar/Avatar.vue.d.ts +10 -0
- package/dist/components/sidebar/CommentCard.vue.d.ts +21 -0
- package/dist/components/sidebar/ReplyInput.vue.d.ts +7 -0
- package/dist/components/sidebar/ReplyThread.vue.d.ts +8 -0
- package/dist/components/sidebar/ResolvedCommentMarker.vue.d.ts +11 -0
- package/dist/components/sidebar/TrackedChangeCard.vue.d.ts +20 -0
- package/dist/components/ui/AlignmentButtons.vue.d.ts +15 -0
- package/dist/components/ui/Button.vue.d.ts +30 -0
- package/dist/components/ui/Checkbox.vue.d.ts +11 -0
- package/dist/components/ui/ColorPicker.vue.d.ts +30 -0
- package/dist/components/ui/DatePickerPopover.vue.d.ts +13 -0
- package/dist/components/ui/Dialog.vue.d.ts +28 -0
- package/dist/components/ui/FontPicker.vue.d.ts +21 -0
- package/dist/components/ui/FontSizePicker.vue.d.ts +27 -0
- package/dist/components/ui/HorizontalRuler.vue.d.ts +39 -0
- package/dist/components/ui/HyperlinkPopup.vue.d.ts +21 -0
- package/dist/components/ui/IconGridDropdown.vue.d.ts +32 -0
- package/dist/components/ui/ImageTransformDropdown.vue.d.ts +11 -0
- package/dist/components/ui/ImageWrapDropdown.vue.d.ts +15 -0
- package/dist/components/ui/Input.vue.d.ts +17 -0
- package/dist/components/ui/LineSpacingPicker.vue.d.ts +20 -0
- package/dist/components/ui/ListButtons.vue.d.ts +30 -0
- package/dist/components/ui/MaterialSymbol.vue.d.ts +13 -0
- package/dist/components/ui/MenuDropdown.vue.d.ts +42 -0
- package/dist/components/ui/OutlineRail.vue.d.ts +19 -0
- package/dist/components/ui/Popover.vue.d.ts +40 -0
- package/dist/components/ui/Select.vue.d.ts +15 -0
- package/dist/components/ui/StylePicker.vue.d.ts +16 -0
- package/dist/components/ui/TableBorderColorPicker.vue.d.ts +14 -0
- package/dist/components/ui/TableBorderPicker.vue.d.ts +11 -0
- package/dist/components/ui/TableBorderWidthPicker.vue.d.ts +10 -0
- package/dist/components/ui/TableCellFillPicker.vue.d.ts +14 -0
- package/dist/components/ui/TableGridInline.vue.d.ts +14 -0
- package/dist/components/ui/TableGridPicker.vue.d.ts +18 -0
- package/dist/components/ui/TableMoreDropdown.vue.d.ts +51 -0
- package/dist/components/ui/TableStyleGallery.vue.d.ts +10 -0
- package/dist/components/ui/TableToolbar.vue.d.ts +61 -0
- package/dist/components/ui/VerticalRuler.vue.d.ts +20 -0
- package/dist/components/ui/ZoomControl.vue.d.ts +12 -0
- package/dist/components/ui/icon-paths.json.d.ts +276 -0
- package/dist/composables/useDocxEditor.d.ts +2 -0
- package/dist/composables/useDocxEditorRefApi.d.ts +5 -0
- package/dist/composables/useFindReplace.d.ts +38 -16
- package/dist/composables.cjs +2 -2
- package/dist/composables.js +44 -44
- package/dist/dialogs.cjs +1 -1
- package/dist/dialogs.js +2 -5
- package/dist/folio-vue.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1584 -1518
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +2 -2
- package/dist/useZoom-C_sQUu4b.js +1010 -0
- package/dist/useZoom-CbH76z8x.cjs +1 -0
- package/package.json +13 -2
- package/dist/ListButtons-DIWR-Q8d.cjs +0 -4
- package/dist/SplitCellDialog-B_z6ynxm.cjs +0 -15
- package/dist/useFindReplace-CL8Rbc3y.js +0 -59
- package/dist/useFindReplace-ZCrdvwEk.cjs +0 -1
- package/dist/useZoom-BA92aWwm.js +0 -884
- package/dist/useZoom-Bv8t7dYu.cjs +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { getFolioMessages as z } from "@stll/folio-core/i18n/messages";
|
|
1
|
+
import { Fragment as e, Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, isRef as d, mergeProps as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, provide as y, reactive as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, toRef as T, toValue as E, unref as D, vModelCheckbox as O, vModelRadio as k, vModelSelect as A, vModelText as j, watch as M, withCtx as N, withDirectives as P, withKeys as F, withModifiers as I } from "vue";
|
|
2
|
+
import { isAllowedExternalWatermarkImageUrl as L } from "@stll/folio-core/watermark";
|
|
3
|
+
import { getFolioMessages as R } from "@stll/folio-core/i18n/messages";
|
|
5
4
|
import { generateThemeTintShadeMatrix as ee, resolveColor as te, resolveColorToHex as ne, resolveHighlightColor as re } from "@stll/folio-core/utils/colorResolver";
|
|
6
|
-
import {
|
|
5
|
+
import { sliceText as ie } from "@stll/folio-core/utils/sliceText";
|
|
6
|
+
import { SYMBOL_CATEGORIES as ae, filterSymbols as z } from "@stll/folio-core/symbols";
|
|
7
7
|
import { TWIPS_PER_INCH as B } from "@stll/folio-core/utils/units";
|
|
8
|
-
import { TABLE_PROPERTY_JUSTIFICATIONS as V, toTablePropertyJustification as
|
|
9
|
-
import { cssBorderStyle as
|
|
8
|
+
import { TABLE_PROPERTY_JUSTIFICATIONS as V, toTablePropertyJustification as H } from "@stll/folio-core/utils/tableOperations";
|
|
9
|
+
import { cssBorderStyle as oe } from "@stll/folio-core/utils/borderCss";
|
|
10
10
|
//#region \0rolldown/runtime.js
|
|
11
|
-
var
|
|
11
|
+
var se = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), U = (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
|
+
}, W = {
|
|
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 ce = (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
|
+
}, G = ["width", "height"], ce = ["d"], K = /* @__PURE__ */ l({
|
|
116
116
|
__name: "MaterialSymbol",
|
|
117
117
|
props: {
|
|
118
118
|
name: {},
|
|
@@ -120,74 +120,74 @@ var ce = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null),
|
|
|
120
120
|
className: { default: "" },
|
|
121
121
|
style: {}
|
|
122
122
|
},
|
|
123
|
-
setup(
|
|
124
|
-
let
|
|
125
|
-
return (n, r) =>
|
|
123
|
+
setup(t) {
|
|
124
|
+
let r = t, i = W, o = n(() => i[r.name] || (typeof console < "u" && console.warn(`Icon not found: ${r.name}`), null));
|
|
125
|
+
return (n, r) => o.value ? (v(), a("svg", {
|
|
126
126
|
key: 0,
|
|
127
127
|
xmlns: "http://www.w3.org/2000/svg",
|
|
128
|
-
width:
|
|
129
|
-
height:
|
|
128
|
+
width: t.size,
|
|
129
|
+
height: t.size,
|
|
130
130
|
viewBox: "0 -960 960 960",
|
|
131
131
|
fill: "currentColor",
|
|
132
|
-
class:
|
|
133
|
-
style:
|
|
132
|
+
class: m(t.className),
|
|
133
|
+
style: h({
|
|
134
134
|
display: "inline-flex",
|
|
135
135
|
flexShrink: 0,
|
|
136
|
-
...
|
|
136
|
+
...t.style ?? {}
|
|
137
137
|
}),
|
|
138
138
|
"aria-hidden": "true"
|
|
139
|
-
}, [(
|
|
139
|
+
}, [(v(!0), a(e, null, S(o.value, (e, t) => (v(), a("path", {
|
|
140
140
|
key: t,
|
|
141
141
|
d: e
|
|
142
|
-
}, null, 8,
|
|
142
|
+
}, null, 8, ce))), 128))], 14, G)) : (v(), a("span", {
|
|
143
143
|
key: 1,
|
|
144
|
-
class:
|
|
145
|
-
style:
|
|
146
|
-
fontSize: `${
|
|
147
|
-
width: `${
|
|
148
|
-
height: `${
|
|
144
|
+
class: m(t.className),
|
|
145
|
+
style: h({
|
|
146
|
+
fontSize: `${t.size}px`,
|
|
147
|
+
width: `${t.size}px`,
|
|
148
|
+
height: `${t.size}px`,
|
|
149
149
|
display: "inline-flex",
|
|
150
|
-
...
|
|
150
|
+
...t.style ?? {}
|
|
151
151
|
})
|
|
152
|
-
},
|
|
152
|
+
}, w(t.name), 7));
|
|
153
153
|
}
|
|
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 q(e, t) {
|
|
158
|
+
let n = t && t.cache ? t.cache : ve, r = t && t.serializer ? t.serializer : ge;
|
|
159
|
+
return (t && t.strategy ? t.strategy : pe)(e, {
|
|
160
160
|
cache: n,
|
|
161
161
|
serializer: r
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function le(e) {
|
|
165
165
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
let i =
|
|
167
|
+
function ue(e, t, n, r) {
|
|
168
|
+
let i = le(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 de(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 fe(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
|
+
}
|
|
178
182
|
function me(e, t) {
|
|
179
|
-
|
|
180
|
-
return pe(e, this, n, t.cache.create(), t.serializer);
|
|
183
|
+
return fe(e, this, de, t.cache.create(), t.serializer);
|
|
181
184
|
}
|
|
182
185
|
function he(e, t) {
|
|
183
|
-
return
|
|
184
|
-
}
|
|
185
|
-
function ge(e, t) {
|
|
186
|
-
return pe(e, this, de, t.cache.create(), t.serializer);
|
|
186
|
+
return fe(e, this, ue, t.cache.create(), t.serializer);
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var ge = function() {
|
|
189
189
|
return JSON.stringify(arguments);
|
|
190
|
-
},
|
|
190
|
+
}, _e = class {
|
|
191
191
|
constructor() {
|
|
192
192
|
this.cache = Object.create(null);
|
|
193
193
|
}
|
|
@@ -197,20 +197,20 @@ var _e = 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
|
+
}, ve = { create: function() {
|
|
201
|
+
return new _e();
|
|
202
|
+
} }, ye = {
|
|
203
|
+
variadic: me,
|
|
204
|
+
monadic: he
|
|
205
|
+
}, J = 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
|
+
}, Y = 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
|
+
}(Y || {});
|
|
213
|
+
function be() {
|
|
214
214
|
return {
|
|
215
215
|
dateTime: {},
|
|
216
216
|
number: {},
|
|
@@ -221,34 +221,34 @@ function xe() {
|
|
|
221
221
|
displayNames: {}
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
return
|
|
224
|
+
function xe(e, t) {
|
|
225
|
+
return q(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: ye.variadic
|
|
233
233
|
});
|
|
234
234
|
var n;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
return
|
|
236
|
+
function Se(e, t) {
|
|
237
|
+
return xe(((...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: Se(Intl.DateTimeFormat, e.dateTime),
|
|
242
|
+
getNumberFormat: Se(Intl.NumberFormat, e.number),
|
|
243
|
+
getPluralRules: Se(Intl.PluralRules, e.pluralRules),
|
|
244
|
+
getRelativeTimeFormat: Se(Intl.RelativeTimeFormat, e.relativeTime),
|
|
245
|
+
getListFormat: Se(Intl.ListFormat, e.list),
|
|
246
|
+
getDisplayNames: Se(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__ */ se(((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__ */ ce(((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__ */ se(((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__ */ ce(((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 = H && e[H] || 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
|
+
oe[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), oe[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 = W, this.updater = n || se;
|
|
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 = W, this.updater = n || se;
|
|
558
558
|
}
|
|
559
559
|
function c() {}
|
|
560
560
|
function l(e) {
|
|
@@ -575,24 +575,24 @@ var we = /* @__PURE__ */ ce(((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 === K ? null : e.displayName || e.name || null;
|
|
579
579
|
if (typeof e == "string") return e;
|
|
580
580
|
switch (e) {
|
|
581
581
|
case L: return "Fragment";
|
|
582
|
-
case
|
|
582
|
+
case ee: return "Profiler";
|
|
583
583
|
case R: return "StrictMode";
|
|
584
|
-
case
|
|
585
|
-
case
|
|
584
|
+
case ie: return "Suspense";
|
|
585
|
+
case ae: return "SuspenseList";
|
|
586
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";
|
|
590
|
-
case
|
|
591
|
-
case
|
|
592
|
-
case
|
|
590
|
+
case ne: return e.displayName || "Context";
|
|
591
|
+
case te: return (e._context.displayName || "Context") + ".Consumer";
|
|
592
|
+
case re:
|
|
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
|
|
595
|
+
case z: return t = e.displayName || null, t === null ? d(e.type) || "Memo" : t;
|
|
596
596
|
case B:
|
|
597
597
|
t = e._payload, e = e._init;
|
|
598
598
|
try {
|
|
@@ -612,14 +612,14 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
function p() {
|
|
615
|
-
var e =
|
|
615
|
+
var e = q.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 (le.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__ */ ce(((e) => {
|
|
|
627
627
|
}
|
|
628
628
|
function g(e, t) {
|
|
629
629
|
function n() {
|
|
630
|
-
|
|
630
|
+
de || (de = !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__ */ ce(((e) => {
|
|
|
636
636
|
}
|
|
637
637
|
function _() {
|
|
638
638
|
var e = d(this.type);
|
|
639
|
-
return
|
|
639
|
+
return pe[e] || (pe[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;
|
|
@@ -732,12 +732,12 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
732
732
|
if (s) {
|
|
733
733
|
s = e, a = a(s);
|
|
734
734
|
var c = i === "" ? "." + C(s, 0) : i;
|
|
735
|
-
return
|
|
735
|
+
return ce(a) ? (n = "", c != null && (n = c.replace(_e, "$&/") + "/"), 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(_e, "$&/") + "/") + 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 + ":", ce(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 && (ge || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), ge = !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__ */ ce(((e) => {
|
|
|
779
779
|
throw e._result;
|
|
780
780
|
}
|
|
781
781
|
function O() {
|
|
782
|
-
var e =
|
|
782
|
+
var e = q.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
|
+
q.asyncTransitions--;
|
|
787
787
|
}
|
|
788
788
|
function A(e) {
|
|
789
|
-
if (
|
|
789
|
+
if (J === null) try {
|
|
790
790
|
var n = ("require" + Math.random()).slice(0, 7);
|
|
791
|
-
|
|
791
|
+
J = (t && t[n]).call(t, "timers").setImmediate;
|
|
792
792
|
} catch {
|
|
793
|
-
|
|
794
|
-
!1 ===
|
|
793
|
+
J = function(e) {
|
|
794
|
+
!1 === ye && (ye = !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 J(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 !== Y - 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. "), Y = t;
|
|
806
806
|
}
|
|
807
807
|
function N(e, t, n) {
|
|
808
|
-
var r =
|
|
808
|
+
var r = q.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
|
+
q.thrownErrors.push(e);
|
|
816
816
|
}
|
|
817
|
-
else
|
|
818
|
-
0 <
|
|
817
|
+
else q.actQueue = null;
|
|
818
|
+
0 < q.thrownErrors.length ? (r = j(q.thrownErrors), q.thrownErrors.length = 0, n(r)) : t(e);
|
|
819
819
|
}
|
|
820
820
|
function P(e) {
|
|
821
|
-
if (!
|
|
822
|
-
|
|
821
|
+
if (!xe) {
|
|
822
|
+
xe = !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
|
+
q.didUsePromise = !1;
|
|
829
829
|
var r = n(!1);
|
|
830
830
|
if (r !== null) {
|
|
831
|
-
if (
|
|
831
|
+
if (q.didUsePromise) {
|
|
832
832
|
e[t] = n, e.splice(0, t);
|
|
833
833
|
return;
|
|
834
834
|
}
|
|
@@ -838,14 +838,14 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
838
838
|
}
|
|
839
839
|
e.length = 0;
|
|
840
840
|
} catch (n) {
|
|
841
|
-
e.splice(0, t + 1),
|
|
841
|
+
e.splice(0, t + 1), q.thrownErrors.push(n);
|
|
842
842
|
} finally {
|
|
843
|
-
|
|
843
|
+
xe = !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"),
|
|
848
|
+
var F = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), L = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), ee = Symbol.for("react.profiler"), te = Symbol.for("react.consumer"), ne = Symbol.for("react.context"), re = Symbol.for("react.forward_ref"), ie = Symbol.for("react.suspense"), ae = Symbol.for("react.suspense_list"), z = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), V = Symbol.for("react.activity"), H = Symbol.iterator, oe = {}, se = {
|
|
849
849
|
isMounted: function() {
|
|
850
850
|
return !1;
|
|
851
851
|
},
|
|
@@ -858,20 +858,20 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
858
858
|
enqueueSetState: function(e) {
|
|
859
859
|
i(e, "setState");
|
|
860
860
|
}
|
|
861
|
-
},
|
|
862
|
-
Object.freeze(
|
|
861
|
+
}, U = Object.assign, W = {};
|
|
862
|
+
Object.freeze(W), 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 G = {
|
|
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 G) G.hasOwnProperty(Ce) && n(Ce, G[Ce]);
|
|
873
|
+
o.prototype = a.prototype, G = s.prototype = new o(), G.constructor = s, U(G, a.prototype), G.isPureReactComponent = !0;
|
|
874
|
+
var ce = Array.isArray, K = Symbol.for("react.client.reference"), q = {
|
|
875
875
|
H: null,
|
|
876
876
|
A: null,
|
|
877
877
|
T: null,
|
|
@@ -884,13 +884,13 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
884
884
|
thrownErrors: [],
|
|
885
885
|
getCurrentStack: null,
|
|
886
886
|
recentlyCreatedOwnerStacks: 0
|
|
887
|
-
},
|
|
887
|
+
}, le = Object.prototype.hasOwnProperty, ue = console.createTask ? console.createTask : function() {
|
|
888
888
|
return null;
|
|
889
889
|
};
|
|
890
|
-
|
|
890
|
+
G = { react_stack_bottom_frame: function(e) {
|
|
891
891
|
return e();
|
|
892
892
|
} };
|
|
893
|
-
var fe, pe
|
|
893
|
+
var de, fe, pe = {}, me = G.react_stack_bottom_frame.bind(G, m)(), he = ue(f(m)), ge = !1, _e = /\/+/g, ve = 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__ */ ce(((e) => {
|
|
|
904
904
|
return;
|
|
905
905
|
}
|
|
906
906
|
console.error(e);
|
|
907
|
-
},
|
|
907
|
+
}, ye = !1, J = null, Y = 0, be = !1, xe = !1, Se = typeof queueMicrotask == "function" ? function(e) {
|
|
908
908
|
queueMicrotask(function() {
|
|
909
909
|
return queueMicrotask(e);
|
|
910
910
|
});
|
|
911
911
|
} : A;
|
|
912
|
-
|
|
912
|
+
G = Object.freeze({
|
|
913
913
|
__proto__: null,
|
|
914
914
|
c: function(e) {
|
|
915
915
|
return O().useMemoCache(e);
|
|
@@ -938,20 +938,20 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
938
938
|
return e;
|
|
939
939
|
}
|
|
940
940
|
};
|
|
941
|
-
e.Activity = V, e.Children = Ce, e.Component = a, e.Fragment = L, e.Profiler =
|
|
942
|
-
var t =
|
|
943
|
-
|
|
944
|
-
var r =
|
|
941
|
+
e.Activity = V, e.Children = Ce, e.Component = a, e.Fragment = L, e.Profiler = ee, e.PureComponent = s, e.StrictMode = R, e.Suspense = ie, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = q, e.__COMPILER_RUNTIME = G, e.act = function(e) {
|
|
942
|
+
var t = q.actQueue, n = Y;
|
|
943
|
+
Y++;
|
|
944
|
+
var r = q.actQueue = t === null ? [] : t, i = !1;
|
|
945
945
|
try {
|
|
946
946
|
var a = e();
|
|
947
947
|
} catch (e) {
|
|
948
|
-
|
|
948
|
+
q.thrownErrors.push(e);
|
|
949
949
|
}
|
|
950
|
-
if (0 <
|
|
950
|
+
if (0 < q.thrownErrors.length) throw M(t, n), e = j(q.thrownErrors), q.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 Se(function() {
|
|
954
|
+
i || be || (be = !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__ */ ce(((e) => {
|
|
|
960
960
|
return N(i, e, a);
|
|
961
961
|
});
|
|
962
962
|
} catch (e) {
|
|
963
|
-
|
|
963
|
+
q.thrownErrors.push(e);
|
|
964
964
|
}
|
|
965
|
-
if (0 <
|
|
966
|
-
var o = j(
|
|
967
|
-
|
|
965
|
+
if (0 < q.thrownErrors.length) {
|
|
966
|
+
var o = j(q.thrownErrors);
|
|
967
|
+
q.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 < q.thrownErrors.length ? (e = j(q.thrownErrors), q.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 && Se(function() {
|
|
977
|
+
i || be || (be = !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
|
+
}), q.actQueue = null), 0 < q.thrownErrors.length) throw e = j(q.thrownErrors), q.thrownErrors.length = 0, e;
|
|
979
979
|
return { then: function(e, t) {
|
|
980
|
-
i = !0, n === 0 ? (
|
|
980
|
+
i = !0, n === 0 ? (q.actQueue = r, A(function() {
|
|
981
981
|
return N(s, e, t);
|
|
982
982
|
})) : e(s);
|
|
983
983
|
} };
|
|
@@ -988,21 +988,21 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
988
988
|
}, e.cacheSignal = function() {
|
|
989
989
|
return null;
|
|
990
990
|
}, e.captureOwnerStack = function() {
|
|
991
|
-
var e =
|
|
991
|
+
var e = q.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 = U({}, e.props), i = e.key, a = e._owner;
|
|
996
996
|
if (t != null) {
|
|
997
997
|
var o;
|
|
998
998
|
a: {
|
|
999
|
-
if (
|
|
999
|
+
if (le.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) !le.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;
|
|
@@ -1015,21 +1015,21 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
1015
1015
|
return r;
|
|
1016
1016
|
}, e.createContext = function(e) {
|
|
1017
1017
|
return e = {
|
|
1018
|
-
$$typeof:
|
|
1018
|
+
$$typeof: ne,
|
|
1019
1019
|
_currentValue: e,
|
|
1020
1020
|
_currentValue2: e,
|
|
1021
1021
|
_threadCount: 0,
|
|
1022
1022
|
Provider: null,
|
|
1023
1023
|
Consumer: null
|
|
1024
1024
|
}, e.Provider = e, e.Consumer = {
|
|
1025
|
-
$$typeof:
|
|
1025
|
+
$$typeof: te,
|
|
1026
1026
|
_context: e
|
|
1027
1027
|
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
1028
1028
|
}, e.createElement = function(e, t, n) {
|
|
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 fe || !("__self" in t) || "key" in t || (fe = !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) le.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,15 +1038,15 @@ var we = /* @__PURE__ */ ce(((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 > q.recentlyCreatedOwnerStacks++;
|
|
1042
|
+
return v(e, i, r, p(), c ? Error("react-stack-top-frame") : me, c ? ue(f(e)) : he);
|
|
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 === z ? 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
|
-
$$typeof:
|
|
1049
|
+
$$typeof: re,
|
|
1050
1050
|
render: e
|
|
1051
1051
|
}, n;
|
|
1052
1052
|
return Object.defineProperty(t, "displayName", {
|
|
@@ -1080,7 +1080,7 @@ var we = /* @__PURE__ */ ce(((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: z,
|
|
1084
1084
|
type: e,
|
|
1085
1085
|
compare: t === void 0 ? null : t
|
|
1086
1086
|
};
|
|
@@ -1096,15 +1096,15 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
}), t;
|
|
1098
1098
|
}, e.startTransition = function(e) {
|
|
1099
|
-
var t =
|
|
1100
|
-
n._updatedFibers = /* @__PURE__ */ new Set(),
|
|
1099
|
+
var t = q.T, n = {};
|
|
1100
|
+
n._updatedFibers = /* @__PURE__ */ new Set(), q.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 = q.S;
|
|
1103
|
+
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (q.asyncTransitions++, r.then(k, k), r.then(c, ve));
|
|
1104
1104
|
} catch (e) {
|
|
1105
|
-
|
|
1105
|
+
ve(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), q.T = t;
|
|
1108
1108
|
}
|
|
1109
1109
|
}, e.unstable_useCacheRefresh = function() {
|
|
1110
1110
|
return O().useCacheRefresh();
|
|
@@ -1116,7 +1116,7 @@ var we = /* @__PURE__ */ ce(((e) => {
|
|
|
1116
1116
|
return O().useCallback(e, t);
|
|
1117
1117
|
}, e.useContext = function(e) {
|
|
1118
1118
|
var t = O();
|
|
1119
|
-
return e.$$typeof ===
|
|
1119
|
+
return e.$$typeof === te && console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"), t.useContext(e);
|
|
1120
1120
|
}, e.useDebugValue = function(e, t) {
|
|
1121
1121
|
return O().useDebugValue(e, t);
|
|
1122
1122
|
}, e.useDeferredValue = function(e, t) {
|
|
@@ -1149,7 +1149,7 @@ var we = /* @__PURE__ */ ce(((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__ */ se(((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: q((...e) => new Intl.NumberFormat(...e), {
|
|
3374
3374
|
cache: At(e.number),
|
|
3375
|
-
strategy:
|
|
3375
|
+
strategy: ye.variadic
|
|
3376
3376
|
}),
|
|
3377
|
-
getDateTimeFormat:
|
|
3377
|
+
getDateTimeFormat: q((...e) => new Intl.DateTimeFormat(...e), {
|
|
3378
3378
|
cache: At(e.dateTime),
|
|
3379
|
-
strategy:
|
|
3379
|
+
strategy: ye.variadic
|
|
3380
3380
|
}),
|
|
3381
|
-
getPluralRules:
|
|
3381
|
+
getPluralRules: q((...e) => new Intl.PluralRules(...e), {
|
|
3382
3382
|
cache: At(e.pluralRules),
|
|
3383
|
-
strategy:
|
|
3383
|
+
strategy: ye.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
|
|
3485
|
-
if (typeof t == "object") throw new
|
|
3484
|
+
if (Array.isArray(t)) throw new J(Y.INVALID_MESSAGE, void 0);
|
|
3485
|
+
if (typeof t == "object") throw new J(Y.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 xe(((...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
|
|
3533
|
+
throw new J(Y.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
|
|
3568
|
+
return new J(Y.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 J;
|
|
3573
3573
|
function u(e, t, n, i) {
|
|
3574
|
-
let a = new
|
|
3574
|
+
let a = new J(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, Y.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 J ? (t = e.code, n = e.originalMessage) : (t = Y.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, Y.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, Y.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 = be(), _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,
|
|
@@ -3676,16 +3676,16 @@ function Vt({ _cache: e = xe(), _formatters: t = Ce(e), getMessageFallback: n =
|
|
|
3676
3676
|
//#region src/i18n/index.ts
|
|
3677
3677
|
var Ht = "en", Ut = (e) => Vt({
|
|
3678
3678
|
locale: e,
|
|
3679
|
-
messages:
|
|
3679
|
+
messages: R(e),
|
|
3680
3680
|
namespace: "folio"
|
|
3681
|
-
}), Wt = Symbol("folioTranslator"), Gt =
|
|
3682
|
-
|
|
3681
|
+
}), Wt = Symbol("folioTranslator"), Gt = n(() => Ut("en")), Kt = (e = "en") => {
|
|
3682
|
+
y(Wt, n(() => Ut(E(e))));
|
|
3683
3683
|
}, Z = () => {
|
|
3684
|
-
let e =
|
|
3684
|
+
let e = u(Wt, Gt);
|
|
3685
3685
|
return { t: (t, n) => e.value(t, n) };
|
|
3686
3686
|
}, qt = { install(e, t = "en") {
|
|
3687
|
-
e.provide(Wt,
|
|
3688
|
-
} }, Jt = ["disabled"], Yt = "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", Xt = /* @__PURE__ */
|
|
3687
|
+
e.provide(Wt, n(() => Ut(E(t))));
|
|
3688
|
+
} }, Jt = ["disabled"], Yt = "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", Xt = /* @__PURE__ */ l({
|
|
3689
3689
|
__name: "Button",
|
|
3690
3690
|
props: {
|
|
3691
3691
|
variant: { default: "default" },
|
|
@@ -3698,7 +3698,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3698
3698
|
},
|
|
3699
3699
|
emits: ["click"],
|
|
3700
3700
|
setup(e) {
|
|
3701
|
-
let t = e,
|
|
3701
|
+
let t = e, r = {
|
|
3702
3702
|
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
3703
3703
|
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
3704
3704
|
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
@@ -3713,20 +3713,20 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3713
3713
|
"icon-sm": "h-7 w-7",
|
|
3714
3714
|
xs: "h-7 rounded-md px-2 text-xs",
|
|
3715
3715
|
"icon-xs": "h-7 w-7"
|
|
3716
|
-
},
|
|
3716
|
+
}, o = n(() => [
|
|
3717
3717
|
Yt,
|
|
3718
|
-
|
|
3718
|
+
r[t.variant],
|
|
3719
3719
|
i[t.size],
|
|
3720
3720
|
t.className
|
|
3721
3721
|
].filter(Boolean).join(" "));
|
|
3722
|
-
return (t, n) => (
|
|
3722
|
+
return (t, n) => (v(), a("button", {
|
|
3723
3723
|
type: "button",
|
|
3724
|
-
class:
|
|
3724
|
+
class: m(o.value),
|
|
3725
3725
|
disabled: e.disabled,
|
|
3726
3726
|
onClick: n[0] ||= (e) => t.$emit("click", e)
|
|
3727
|
-
}, [
|
|
3727
|
+
}, [C(t.$slots, "default")], 10, Jt));
|
|
3728
3728
|
}
|
|
3729
|
-
}), Zt = ["checked"], Qt = /*#__PURE__*/
|
|
3729
|
+
}), Zt = ["checked"], Qt = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
3730
3730
|
__name: "Checkbox",
|
|
3731
3731
|
props: {
|
|
3732
3732
|
checked: { type: Boolean },
|
|
@@ -3738,9 +3738,9 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3738
3738
|
function r(e) {
|
|
3739
3739
|
e.target instanceof HTMLInputElement && n("update:checked", e.target.checked);
|
|
3740
3740
|
}
|
|
3741
|
-
return (t, n) => (
|
|
3741
|
+
return (t, n) => (v(), a("input", {
|
|
3742
3742
|
type: "checkbox",
|
|
3743
|
-
class:
|
|
3743
|
+
class: m(["folio-default-checkbox", e.className]),
|
|
3744
3744
|
checked: e.checked,
|
|
3745
3745
|
onChange: r
|
|
3746
3746
|
}, null, 42, Zt));
|
|
@@ -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__*/ U(/* @__PURE__ */ l({
|
|
3779
3779
|
__name: "ColorPicker",
|
|
3780
3780
|
props: {
|
|
3781
3781
|
mode: {},
|
|
@@ -3797,8 +3797,8 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3797
3797
|
defaultColor: {}
|
|
3798
3798
|
},
|
|
3799
3799
|
emits: ["change"],
|
|
3800
|
-
setup(
|
|
3801
|
-
let
|
|
3800
|
+
setup(t, { emit: r }) {
|
|
3801
|
+
let l = t, u = r, { t: d } = Z(), f = [
|
|
3802
3802
|
{
|
|
3803
3803
|
nameKey: "colorPicker.colors.darkRed",
|
|
3804
3804
|
hex: "C00000"
|
|
@@ -3841,9 +3841,9 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3841
3841
|
}
|
|
3842
3842
|
];
|
|
3843
3843
|
function p(e) {
|
|
3844
|
-
return e ? typeof e == "string" ?
|
|
3844
|
+
return e ? typeof e == "string" ? l.mode === "highlight" ? re(e) || (e === "none" ? "transparent" : e.startsWith("#") ? e : `#${e}`) : e.startsWith("#") ? e : `#${e}` : te(e, l.theme) : l.mode === "text" || l.mode === "border" ? "#000000" : "transparent";
|
|
3845
3845
|
}
|
|
3846
|
-
function
|
|
3846
|
+
function y(e) {
|
|
3847
3847
|
return /^[0-9A-Fa-f]{6}$/.test(e.replace(/^#/, ""));
|
|
3848
3848
|
}
|
|
3849
3849
|
function b(e) {
|
|
@@ -3852,180 +3852,180 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
3852
3852
|
let n = parseInt(t.slice(0, 2), 16), r = parseInt(t.slice(2, 4), 16), i = parseInt(t.slice(4, 6), 16);
|
|
3853
3853
|
return (n * 299 + r * 587 + i * 114) / 1e3 > 230;
|
|
3854
3854
|
}
|
|
3855
|
-
function
|
|
3856
|
-
return e ? (typeof e == "string" ? e.replace(/^#/, "").toUpperCase() : ne(e,
|
|
3855
|
+
function C(e, t) {
|
|
3856
|
+
return e ? (typeof e == "string" ? e.replace(/^#/, "").toUpperCase() : ne(e, l.theme)) === t.toUpperCase() : !1;
|
|
3857
3857
|
}
|
|
3858
|
-
function
|
|
3858
|
+
function T(e) {
|
|
3859
3859
|
return e === "highlight" ? "FFFF00" : e === "border" ? { rgb: "000000" } : { rgb: "FF0000" };
|
|
3860
3860
|
}
|
|
3861
3861
|
function E(e) {
|
|
3862
3862
|
return d(e === "text" ? "fontColor" : e === "highlight" ? "formattingBar.highlightColor" : "table.borderColor");
|
|
3863
3863
|
}
|
|
3864
|
-
function
|
|
3864
|
+
function O(e) {
|
|
3865
3865
|
return e === "text" ? "format_color_text" : e === "highlight" ? "ink_highlighter" : "border_color";
|
|
3866
3866
|
}
|
|
3867
|
-
let k =
|
|
3867
|
+
let k = x(!1), A = x(""), N = x(null), L = x(null), R = x(l.defaultColor ?? T(l.mode)), ie = n(() => ee(l.theme?.colorScheme ?? null)), ae = n(() => ie.value.flatMap((e, t) => e.map((e, n) => ({
|
|
3868
3868
|
...e,
|
|
3869
3869
|
key: `${t}-${n}`
|
|
3870
|
-
})))),
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3870
|
+
})))), z = n(() => p(l.value)), B = n(() => p(R.value)), V = n(() => E(l.mode)), H = n(() => l.icon ?? O(l.mode));
|
|
3871
|
+
M(() => [
|
|
3872
|
+
l.value,
|
|
3873
|
+
l.mode,
|
|
3874
|
+
l.theme
|
|
3875
3875
|
], () => {
|
|
3876
|
-
let e = p(
|
|
3876
|
+
let e = p(l.value).replace(/^#/, "");
|
|
3877
3877
|
/^[0-9A-Fa-f]{6}$/.test(e) && (A.value = e.toUpperCase());
|
|
3878
3878
|
}, { immediate: !0 });
|
|
3879
|
-
let
|
|
3880
|
-
function
|
|
3881
|
-
let e =
|
|
3879
|
+
let oe = x({});
|
|
3880
|
+
function se() {
|
|
3881
|
+
let e = N.value;
|
|
3882
3882
|
if (!e) return;
|
|
3883
3883
|
let t = e.getBoundingClientRect();
|
|
3884
|
-
|
|
3884
|
+
oe.value = {
|
|
3885
3885
|
top: `${t.bottom + 4}px`,
|
|
3886
3886
|
left: `${t.left}px`
|
|
3887
3887
|
};
|
|
3888
3888
|
}
|
|
3889
|
-
function
|
|
3890
|
-
|
|
3889
|
+
function U() {
|
|
3890
|
+
l.disabled || (k.value || se(), k.value = !k.value);
|
|
3891
3891
|
}
|
|
3892
|
-
function
|
|
3892
|
+
function W(e, t = !0) {
|
|
3893
3893
|
t && (R.value = e), u("change", e), k.value = !1;
|
|
3894
3894
|
}
|
|
3895
|
-
function
|
|
3896
|
-
|
|
3895
|
+
function G() {
|
|
3896
|
+
l.disabled || u("change", R.value);
|
|
3897
3897
|
}
|
|
3898
|
-
function
|
|
3899
|
-
if (
|
|
3900
|
-
|
|
3898
|
+
function ce(e) {
|
|
3899
|
+
if (l.mode === "highlight") {
|
|
3900
|
+
W(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),
|
|
3907
|
+
e.tint && (t.themeTint = e.tint), e.shade && (t.themeShade = e.shade), W(t);
|
|
3908
3908
|
}
|
|
3909
|
-
function
|
|
3910
|
-
|
|
3909
|
+
function q(e) {
|
|
3910
|
+
W(l.mode === "highlight" ? e : { rgb: e });
|
|
3911
3911
|
}
|
|
3912
|
-
function
|
|
3913
|
-
|
|
3912
|
+
function le() {
|
|
3913
|
+
W(l.mode === "highlight" ? "none" : { auto: !0 }, !1);
|
|
3914
3914
|
}
|
|
3915
|
-
function
|
|
3915
|
+
function ue() {
|
|
3916
3916
|
let e = A.value.replace(/^#/, "").toUpperCase();
|
|
3917
|
-
|
|
3917
|
+
y(e) && (W(l.mode === "highlight" ? e : { rgb: e }), A.value = "");
|
|
3918
3918
|
}
|
|
3919
|
-
function
|
|
3919
|
+
function de(e) {
|
|
3920
3920
|
e.target instanceof HTMLInputElement || e.preventDefault();
|
|
3921
3921
|
}
|
|
3922
|
-
function
|
|
3922
|
+
function fe(e) {
|
|
3923
3923
|
if (!k.value) return;
|
|
3924
3924
|
let t = e.target;
|
|
3925
|
-
t instanceof Node && (
|
|
3925
|
+
t instanceof Node && (N.value?.contains(t) || L.value?.contains(t) || (k.value = !1));
|
|
3926
3926
|
}
|
|
3927
|
-
return
|
|
3927
|
+
return _(() => document.addEventListener("mousedown", fe)), g(() => document.removeEventListener("mousedown", fe)), (n, r) => (v(), a("div", {
|
|
3928
3928
|
ref_key: "containerRef",
|
|
3929
|
-
ref:
|
|
3930
|
-
class:
|
|
3931
|
-
style:
|
|
3932
|
-
}, [
|
|
3929
|
+
ref: N,
|
|
3930
|
+
class: m(["docx-color-picker", t.className]),
|
|
3931
|
+
style: h(t.style)
|
|
3932
|
+
}, [t.splitButton ? (v(), a("div", {
|
|
3933
3933
|
key: 0,
|
|
3934
|
-
class:
|
|
3935
|
-
}, [
|
|
3934
|
+
class: m(["docx-color-picker__split", { "is-disabled": t.disabled }])
|
|
3935
|
+
}, [o("button", {
|
|
3936
3936
|
type: "button",
|
|
3937
3937
|
class: "docx-color-picker__apply",
|
|
3938
|
-
disabled:
|
|
3939
|
-
title:
|
|
3940
|
-
"aria-label":
|
|
3941
|
-
onMousedown: r[0] ||=
|
|
3942
|
-
onClick:
|
|
3943
|
-
}, [
|
|
3944
|
-
name:
|
|
3938
|
+
disabled: t.disabled,
|
|
3939
|
+
title: t.title ?? V.value,
|
|
3940
|
+
"aria-label": t.title ?? V.value,
|
|
3941
|
+
onMousedown: r[0] ||= I(() => {}, ["prevent"]),
|
|
3942
|
+
onClick: G
|
|
3943
|
+
}, [c(K, {
|
|
3944
|
+
name: H.value,
|
|
3945
3945
|
size: 18
|
|
3946
|
-
}, null, 8, ["name"]),
|
|
3947
|
-
class:
|
|
3948
|
-
style:
|
|
3949
|
-
}, null, 6)], 40, $t),
|
|
3946
|
+
}, null, 8, ["name"]), o("span", {
|
|
3947
|
+
class: m(["docx-color-picker__bar", { "is-light": B.value === "transparent" || b(B.value) }]),
|
|
3948
|
+
style: h({ background: B.value === "transparent" ? "#fff" : B.value })
|
|
3949
|
+
}, null, 6)], 40, $t), o("button", {
|
|
3950
3950
|
type: "button",
|
|
3951
|
-
class:
|
|
3952
|
-
disabled:
|
|
3953
|
-
title:
|
|
3954
|
-
"aria-label":
|
|
3951
|
+
class: m(["docx-color-picker__arrow", { "is-open": k.value }]),
|
|
3952
|
+
disabled: t.disabled,
|
|
3953
|
+
title: t.title ?? V.value,
|
|
3954
|
+
"aria-label": t.title ?? V.value,
|
|
3955
3955
|
"aria-haspopup": "true",
|
|
3956
3956
|
"aria-expanded": k.value,
|
|
3957
|
-
onMousedown: r[1] ||=
|
|
3958
|
-
onClick:
|
|
3959
|
-
}, [
|
|
3957
|
+
onMousedown: r[1] ||= I(() => {}, ["prevent"]),
|
|
3958
|
+
onClick: U
|
|
3959
|
+
}, [c(K, {
|
|
3960
3960
|
name: "arrow_drop_down",
|
|
3961
3961
|
size: 18
|
|
3962
|
-
})], 42, en)], 2)) : (
|
|
3962
|
+
})], 42, en)], 2)) : (v(), a("button", {
|
|
3963
3963
|
key: 1,
|
|
3964
3964
|
type: "button",
|
|
3965
|
-
class:
|
|
3966
|
-
disabled:
|
|
3967
|
-
title:
|
|
3968
|
-
"aria-label":
|
|
3965
|
+
class: m(["docx-color-picker__button", { "is-open": k.value }]),
|
|
3966
|
+
disabled: t.disabled,
|
|
3967
|
+
title: t.title ?? V.value,
|
|
3968
|
+
"aria-label": t.title ?? V.value,
|
|
3969
3969
|
"aria-haspopup": "true",
|
|
3970
3970
|
"aria-expanded": k.value,
|
|
3971
|
-
onMousedown: r[2] ||=
|
|
3972
|
-
onClick:
|
|
3973
|
-
}, [
|
|
3974
|
-
name:
|
|
3971
|
+
onMousedown: r[2] ||= I(() => {}, ["prevent"]),
|
|
3972
|
+
onClick: U
|
|
3973
|
+
}, [o("span", nn, [c(K, {
|
|
3974
|
+
name: H.value,
|
|
3975
3975
|
size: 18
|
|
3976
|
-
}, null, 8, ["name"]),
|
|
3977
|
-
class:
|
|
3978
|
-
style:
|
|
3979
|
-
}, null, 6)]),
|
|
3976
|
+
}, null, 8, ["name"]), o("span", {
|
|
3977
|
+
class: m(["docx-color-picker__bar", { "is-light": z.value === "transparent" || b(z.value) }]),
|
|
3978
|
+
style: h({ background: z.value === "transparent" ? "#fff" : z.value })
|
|
3979
|
+
}, null, 6)]), c(K, {
|
|
3980
3980
|
name: "arrow_drop_down",
|
|
3981
3981
|
size: 14
|
|
3982
|
-
})], 42, tn)), k.value && !
|
|
3982
|
+
})], 42, tn)), k.value && !t.disabled ? (v(), a("div", {
|
|
3983
3983
|
key: 2,
|
|
3984
3984
|
ref_key: "panelRef",
|
|
3985
|
-
ref:
|
|
3985
|
+
ref: L,
|
|
3986
3986
|
class: "docx-color-picker__panel",
|
|
3987
|
-
style:
|
|
3987
|
+
style: h(oe.value),
|
|
3988
3988
|
role: "dialog",
|
|
3989
|
-
"aria-label":
|
|
3990
|
-
onMousedown:
|
|
3989
|
+
"aria-label": D(d)("colorPicker.ariaLabel", { type: V.value }),
|
|
3990
|
+
onMousedown: de
|
|
3991
3991
|
}, [
|
|
3992
|
-
|
|
3992
|
+
o("button", {
|
|
3993
3993
|
type: "button",
|
|
3994
3994
|
class: "docx-color-picker__auto",
|
|
3995
|
-
onMousedown: r[3] ||=
|
|
3996
|
-
onClick:
|
|
3997
|
-
}, [
|
|
3998
|
-
r[12] ||=
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
key:
|
|
3995
|
+
onMousedown: r[3] ||= I(() => {}, ["prevent"]),
|
|
3996
|
+
onClick: le
|
|
3997
|
+
}, [t.mode === "highlight" ? (v(), a("span", an, [...r[10] ||= [o("span", { class: "docx-color-picker__auto-slash" }, null, -1)]])) : (v(), a("span", on)), s(" " + w(t.autoLabel ?? (t.mode === "highlight" ? D(d)("colorPicker.noColor") : D(d)("colorPicker.automatic"))), 1)], 32),
|
|
3998
|
+
r[12] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
3999
|
+
o("div", sn, w(D(d)("colorPicker.themeColors")), 1),
|
|
4000
|
+
o("div", cn, [(v(!0), a(e, null, S(ae.value, (e) => (v(), a("button", {
|
|
4001
|
+
key: e.key,
|
|
4002
4002
|
type: "button",
|
|
4003
|
-
class:
|
|
4004
|
-
style:
|
|
4005
|
-
title:
|
|
4006
|
-
"aria-label":
|
|
4007
|
-
"aria-selected":
|
|
4008
|
-
onMousedown: r[4] ||=
|
|
4009
|
-
onClick: (
|
|
4003
|
+
class: m(["docx-color-picker__cell", { "is-selected": C(t.value, e.hex) }]),
|
|
4004
|
+
style: h({ background: "#" + e.hex }),
|
|
4005
|
+
title: e.label,
|
|
4006
|
+
"aria-label": e.label,
|
|
4007
|
+
"aria-selected": C(t.value, e.hex),
|
|
4008
|
+
onMousedown: r[4] ||= I(() => {}, ["prevent"]),
|
|
4009
|
+
onClick: (t) => ce(e)
|
|
4010
4010
|
}, null, 46, ln))), 128))]),
|
|
4011
|
-
r[13] ||=
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
key:
|
|
4011
|
+
r[13] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4012
|
+
o("div", un, w(D(d)("colorPicker.standardColors")), 1),
|
|
4013
|
+
o("div", dn, [(v(), a(e, null, S(f, (e) => o("button", {
|
|
4014
|
+
key: e.hex,
|
|
4015
4015
|
type: "button",
|
|
4016
|
-
class:
|
|
4017
|
-
style:
|
|
4018
|
-
title:
|
|
4019
|
-
"aria-label":
|
|
4020
|
-
"aria-selected":
|
|
4021
|
-
onMousedown: r[5] ||=
|
|
4022
|
-
onClick: (
|
|
4016
|
+
class: m(["docx-color-picker__cell", { "is-selected": C(t.value, e.hex) }]),
|
|
4017
|
+
style: h({ background: "#" + e.hex }),
|
|
4018
|
+
title: D(d)(e.nameKey),
|
|
4019
|
+
"aria-label": D(d)(e.nameKey),
|
|
4020
|
+
"aria-selected": C(t.value, e.hex),
|
|
4021
|
+
onMousedown: r[5] ||= I(() => {}, ["prevent"]),
|
|
4022
|
+
onClick: (t) => q(e.hex)
|
|
4023
4023
|
}, null, 46, fn)), 64))]),
|
|
4024
|
-
r[14] ||=
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
r[11] ||=
|
|
4028
|
-
|
|
4024
|
+
r[14] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4025
|
+
o("div", pn, w(D(d)("colorPicker.customColor")), 1),
|
|
4026
|
+
o("div", mn, [
|
|
4027
|
+
r[11] ||= o("span", { class: "docx-color-picker__hash" }, "#", -1),
|
|
4028
|
+
P(o("input", {
|
|
4029
4029
|
"onUpdate:modelValue": r[6] ||= (e) => A.value = e,
|
|
4030
4030
|
type: "text",
|
|
4031
4031
|
class: "docx-color-picker__hex",
|
|
@@ -4033,20 +4033,20 @@ 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(
|
|
4037
|
-
onMousedown: r[8] ||=
|
|
4038
|
-
}, null, 40, hn), [[
|
|
4039
|
-
|
|
4036
|
+
onKeydown: F(I(ue, ["prevent"]), ["enter"]),
|
|
4037
|
+
onMousedown: r[8] ||= I(() => {}, ["stop"])
|
|
4038
|
+
}, null, 40, hn), [[j, A.value]]),
|
|
4039
|
+
o("button", {
|
|
4040
4040
|
type: "button",
|
|
4041
4041
|
class: "docx-color-picker__apply-btn",
|
|
4042
|
-
disabled: !
|
|
4043
|
-
onMousedown: r[9] ||=
|
|
4044
|
-
onClick:
|
|
4045
|
-
},
|
|
4042
|
+
disabled: !y(A.value),
|
|
4043
|
+
onMousedown: r[9] ||= I(() => {}, ["prevent"]),
|
|
4044
|
+
onClick: ue
|
|
4045
|
+
}, w(D(d)("common.apply")), 41, gn)
|
|
4046
4046
|
])
|
|
4047
|
-
], 44, rn)) :
|
|
4047
|
+
], 44, rn)) : i("", !0)], 6));
|
|
4048
4048
|
}
|
|
4049
|
-
}), [["__scopeId", "data-v-ea554ffa"]]), vn = ["value", "autofocus"], yn = /*#__PURE__*/
|
|
4049
|
+
}), [["__scopeId", "data-v-ea554ffa"]]), vn = ["value", "autofocus"], yn = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
4050
4050
|
__name: "DatePickerPopover",
|
|
4051
4051
|
props: {
|
|
4052
4052
|
value: {},
|
|
@@ -4057,15 +4057,19 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4057
4057
|
},
|
|
4058
4058
|
emits: ["change"],
|
|
4059
4059
|
setup(e, { emit: t }) {
|
|
4060
|
-
let
|
|
4061
|
-
function
|
|
4062
|
-
return e === null ? "" : e instanceof Date ? `${e.getFullYear().toString().padStart(4, "0")}-${(e.getMonth() + 1).toString().padStart(2, "0")}-${e.getDate().toString().padStart(2, "0")}` : e.length >= 10 ?
|
|
4063
|
-
|
|
4064
|
-
|
|
4060
|
+
let r = e, i = t;
|
|
4061
|
+
function o(e) {
|
|
4062
|
+
return e === null ? "" : e instanceof Date ? `${e.getFullYear().toString().padStart(4, "0")}-${(e.getMonth() + 1).toString().padStart(2, "0")}-${e.getDate().toString().padStart(2, "0")}` : e.length >= 10 ? ie({
|
|
4063
|
+
text: e,
|
|
4064
|
+
units: "codeUnits",
|
|
4065
|
+
end: 10
|
|
4066
|
+
}) : e;
|
|
4067
|
+
}
|
|
4068
|
+
let s = n(() => o(r.value));
|
|
4065
4069
|
function c(e) {
|
|
4066
4070
|
e.target instanceof HTMLInputElement && i("change", e.target.value || null);
|
|
4067
4071
|
}
|
|
4068
|
-
return (t, n) => (
|
|
4072
|
+
return (t, n) => (v(), a("input", {
|
|
4069
4073
|
class: "folio-default-date-input",
|
|
4070
4074
|
type: "date",
|
|
4071
4075
|
value: s.value,
|
|
@@ -4073,7 +4077,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4073
4077
|
onChange: c
|
|
4074
4078
|
}, null, 40, vn));
|
|
4075
4079
|
}
|
|
4076
|
-
}), [["__scopeId", "data-v-
|
|
4080
|
+
}), [["__scopeId", "data-v-61260968"]]), bn = ["aria-label"], xn = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
4077
4081
|
inheritAttrs: !1,
|
|
4078
4082
|
__name: "Dialog",
|
|
4079
4083
|
props: {
|
|
@@ -4087,28 +4091,28 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4087
4091
|
}
|
|
4088
4092
|
},
|
|
4089
4093
|
emits: ["update:open", "close"],
|
|
4090
|
-
setup(e, { emit:
|
|
4091
|
-
let
|
|
4094
|
+
setup(e, { emit: n }) {
|
|
4095
|
+
let s = e, c = n;
|
|
4092
4096
|
function l() {
|
|
4093
4097
|
c("update:open", !1), c("close");
|
|
4094
4098
|
}
|
|
4095
4099
|
function u() {
|
|
4096
|
-
|
|
4100
|
+
s.closeOnBackdrop && l();
|
|
4097
4101
|
}
|
|
4098
|
-
return (
|
|
4102
|
+
return (n, s) => (v(), r(t, { to: "body" }, [e.open ? (v(), a("div", {
|
|
4099
4103
|
key: 0,
|
|
4100
|
-
class:
|
|
4101
|
-
onMousedown:
|
|
4102
|
-
}, [
|
|
4104
|
+
class: m(["folio-default-dialog-backdrop", e.backdropClass]),
|
|
4105
|
+
onMousedown: I(u, ["self"])
|
|
4106
|
+
}, [o("div", f({
|
|
4103
4107
|
class: ["folio-default-dialog-popup", e.className],
|
|
4104
4108
|
role: "dialog",
|
|
4105
4109
|
"aria-label": e.ariaLabel
|
|
4106
|
-
},
|
|
4107
|
-
onKeydown:
|
|
4108
|
-
onMousedown:
|
|
4109
|
-
}), [
|
|
4110
|
+
}, n.$attrs, {
|
|
4111
|
+
onKeydown: F(l, ["escape"]),
|
|
4112
|
+
onMousedown: s[0] ||= I(() => {}, ["stop"])
|
|
4113
|
+
}), [C(n.$slots, "default", {}, void 0, !0)], 16, bn)], 34)) : i("", !0)]));
|
|
4110
4114
|
}
|
|
4111
|
-
}), [["__scopeId", "data-v-76309dbc"]]), Sn = ["value"], Cn = /*#__PURE__*/
|
|
4115
|
+
}), [["__scopeId", "data-v-76309dbc"]]), Sn = ["value"], Cn = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
4112
4116
|
__name: "Input",
|
|
4113
4117
|
props: {
|
|
4114
4118
|
modelValue: {},
|
|
@@ -4121,19 +4125,19 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4121
4125
|
function i(e) {
|
|
4122
4126
|
e.target instanceof HTMLInputElement && r("update:modelValue", e.target.value);
|
|
4123
4127
|
}
|
|
4124
|
-
let
|
|
4128
|
+
let o = x(null);
|
|
4125
4129
|
return t({
|
|
4126
|
-
focus: () =>
|
|
4127
|
-
select: () =>
|
|
4128
|
-
}), (t, n) => (
|
|
4130
|
+
focus: () => o.value?.focus(),
|
|
4131
|
+
select: () => o.value?.select()
|
|
4132
|
+
}), (t, n) => (v(), a("input", {
|
|
4129
4133
|
ref_key: "inputRef",
|
|
4130
|
-
ref:
|
|
4131
|
-
class:
|
|
4134
|
+
ref: o,
|
|
4135
|
+
class: m(["folio-default-input", [e.className, e.size && `folio-default-input--${e.size}`]]),
|
|
4132
4136
|
value: e.modelValue,
|
|
4133
4137
|
onInput: i
|
|
4134
4138
|
}, null, 42, Sn));
|
|
4135
4139
|
}
|
|
4136
|
-
}), [["__scopeId", "data-v-a34b139d"]]), wn = 4, Tn = /*#__PURE__*/
|
|
4140
|
+
}), [["__scopeId", "data-v-a34b139d"]]), wn = 4, Tn = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
4137
4141
|
__name: "Popover",
|
|
4138
4142
|
props: {
|
|
4139
4143
|
open: { type: Boolean },
|
|
@@ -4147,9 +4151,9 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4147
4151
|
},
|
|
4148
4152
|
emits: ["close", "update:open"],
|
|
4149
4153
|
setup(e, { emit: t }) {
|
|
4150
|
-
let n = e, r = t,
|
|
4154
|
+
let n = e, r = t, o = x(null), s = x(null), c = x({ position: "fixed" });
|
|
4151
4155
|
function l() {
|
|
4152
|
-
let e =
|
|
4156
|
+
let e = o.value;
|
|
4153
4157
|
if (!e) return;
|
|
4154
4158
|
let t = e.getBoundingClientRect(), r = { position: "fixed" };
|
|
4155
4159
|
n.placement.startsWith("top") ? (r.bottom = `${Math.round(window.innerHeight - t.top + wn)}px`, r.top = "auto") : (r.top = `${Math.round(t.bottom + wn)}px`, r.bottom = "auto"), n.placement.endsWith("right") ? (r.right = `${Math.round(window.innerWidth - t.right)}px`, r.left = "auto") : (r.left = `${Math.round(t.left)}px`, r.right = "auto"), c.value = r;
|
|
@@ -4163,14 +4167,14 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4163
4167
|
function f(e) {
|
|
4164
4168
|
if (!n.open) return;
|
|
4165
4169
|
let t = e.target;
|
|
4166
|
-
t instanceof Node && (
|
|
4170
|
+
t instanceof Node && (o.value?.contains(t) || s.value?.contains(t) || d());
|
|
4167
4171
|
}
|
|
4168
4172
|
function p(e) {
|
|
4169
4173
|
e.key === "Escape" && n.open && d();
|
|
4170
4174
|
}
|
|
4171
|
-
function
|
|
4175
|
+
function y(e) {
|
|
4172
4176
|
if (!(!n.closeOnScroll || !n.open) && !(e.target instanceof Node && s.value?.contains(e.target))) {
|
|
4173
|
-
if (e.target instanceof Node && e.target !== document &&
|
|
4177
|
+
if (e.target instanceof Node && e.target !== document && o.value && e.target.contains(o.value)) {
|
|
4174
4178
|
l();
|
|
4175
4179
|
return;
|
|
4176
4180
|
}
|
|
@@ -4180,31 +4184,31 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4180
4184
|
function b() {
|
|
4181
4185
|
n.open && l();
|
|
4182
4186
|
}
|
|
4183
|
-
function
|
|
4184
|
-
document.addEventListener("mousedown", f), document.addEventListener("keydown", p), window.addEventListener("scroll",
|
|
4187
|
+
function S() {
|
|
4188
|
+
document.addEventListener("mousedown", f), document.addEventListener("keydown", p), window.addEventListener("scroll", y, !0), window.addEventListener("resize", b);
|
|
4185
4189
|
}
|
|
4186
|
-
function
|
|
4187
|
-
document.removeEventListener("mousedown", f), document.removeEventListener("keydown", p), window.removeEventListener("scroll",
|
|
4190
|
+
function w() {
|
|
4191
|
+
document.removeEventListener("mousedown", f), document.removeEventListener("keydown", p), window.removeEventListener("scroll", y, !0), window.removeEventListener("resize", b);
|
|
4188
4192
|
}
|
|
4189
|
-
return
|
|
4190
|
-
e ? (l(),
|
|
4191
|
-
}),
|
|
4192
|
-
n.open && (l(),
|
|
4193
|
-
}),
|
|
4193
|
+
return M(() => n.open, (e) => {
|
|
4194
|
+
e ? (l(), S()) : w();
|
|
4195
|
+
}), M(() => n.placement, () => n.open && l()), _(() => {
|
|
4196
|
+
n.open && (l(), S());
|
|
4197
|
+
}), g(w), (t, n) => (v(), a("span", {
|
|
4194
4198
|
ref_key: "rootRef",
|
|
4195
|
-
ref:
|
|
4199
|
+
ref: o,
|
|
4196
4200
|
class: "docx-popover"
|
|
4197
|
-
}, [
|
|
4201
|
+
}, [C(t.$slots, "trigger", {
|
|
4198
4202
|
toggle: u,
|
|
4199
4203
|
open: e.open
|
|
4200
|
-
}, void 0, !0), e.open ? (
|
|
4204
|
+
}, void 0, !0), e.open ? (v(), a("div", {
|
|
4201
4205
|
key: 0,
|
|
4202
4206
|
ref_key: "panelRef",
|
|
4203
4207
|
ref: s,
|
|
4204
|
-
class:
|
|
4205
|
-
style:
|
|
4206
|
-
onMousedown: n[0] ||=
|
|
4207
|
-
}, [
|
|
4208
|
+
class: m(["docx-popover__panel", e.panelClass]),
|
|
4209
|
+
style: h([c.value, e.panelStyle ?? {}]),
|
|
4210
|
+
onMousedown: n[0] ||= I(() => {}, ["stop"])
|
|
4211
|
+
}, [C(t.$slots, "panel", {}, void 0, !0)], 38)) : i("", !0)], 512));
|
|
4208
4212
|
}
|
|
4209
4213
|
}), [["__scopeId", "data-v-f138860e"]]), En = ["disabled", "onClick"], Dn = {
|
|
4210
4214
|
key: 0,
|
|
@@ -4218,7 +4222,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4218
4222
|
}, Nn = {
|
|
4219
4223
|
key: 0,
|
|
4220
4224
|
class: "docx-menu-dropdown__submenu"
|
|
4221
|
-
}, Pn = /*#__PURE__*/
|
|
4225
|
+
}, Pn = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
4222
4226
|
__name: "MenuDropdown",
|
|
4223
4227
|
props: {
|
|
4224
4228
|
label: {},
|
|
@@ -4229,62 +4233,62 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4229
4233
|
default: !1
|
|
4230
4234
|
}
|
|
4231
4235
|
},
|
|
4232
|
-
setup(
|
|
4236
|
+
setup(t) {
|
|
4233
4237
|
function n(e) {
|
|
4234
4238
|
return "type" in e && e.type === "separator";
|
|
4235
4239
|
}
|
|
4236
|
-
let
|
|
4240
|
+
let l = x(!1), u = x(null);
|
|
4237
4241
|
function d() {
|
|
4238
|
-
|
|
4242
|
+
l.value = !1, u.value = null;
|
|
4239
4243
|
}
|
|
4240
4244
|
function f(e) {
|
|
4241
4245
|
e.disabled || e.submenu || (e.onClick?.(), d());
|
|
4242
4246
|
}
|
|
4243
|
-
return (p,
|
|
4244
|
-
open:
|
|
4245
|
-
"onUpdate:open":
|
|
4247
|
+
return (p, h) => (v(), r(Tn, {
|
|
4248
|
+
open: l.value,
|
|
4249
|
+
"onUpdate:open": h[2] ||= (e) => l.value = e,
|
|
4246
4250
|
onClose: d
|
|
4247
4251
|
}, {
|
|
4248
|
-
trigger:
|
|
4252
|
+
trigger: N(({ toggle: e }) => [o("button", {
|
|
4249
4253
|
type: "button",
|
|
4250
|
-
class:
|
|
4251
|
-
disabled:
|
|
4252
|
-
onMousedown:
|
|
4253
|
-
onClick:
|
|
4254
|
-
}, [
|
|
4254
|
+
class: m(["docx-menu-dropdown__trigger", { "docx-menu-dropdown__trigger--open": l.value }]),
|
|
4255
|
+
disabled: t.disabled,
|
|
4256
|
+
onMousedown: h[0] ||= I(() => {}, ["prevent"]),
|
|
4257
|
+
onClick: I(e, ["prevent"])
|
|
4258
|
+
}, [s(w(t.label) + " ", 1), t.showChevron ? (v(), r(K, {
|
|
4255
4259
|
key: 0,
|
|
4256
4260
|
name: "arrow_drop_down",
|
|
4257
4261
|
size: 16
|
|
4258
|
-
})) :
|
|
4259
|
-
panel:
|
|
4262
|
+
})) : i("", !0)], 42, En)]),
|
|
4263
|
+
panel: N(() => [o("div", {
|
|
4260
4264
|
class: "docx-menu-dropdown__menu",
|
|
4261
|
-
onMousedown:
|
|
4262
|
-
}, [(
|
|
4265
|
+
onMousedown: h[1] ||= I(() => {}, ["prevent"])
|
|
4266
|
+
}, [(v(!0), a(e, null, S(t.items, (t, s) => (v(), a(e, { key: s }, [n(t) ? (v(), a("div", Dn)) : (v(), a("div", {
|
|
4263
4267
|
key: 1,
|
|
4264
4268
|
class: "docx-menu-dropdown__wrap",
|
|
4265
|
-
onMouseenter: (
|
|
4266
|
-
onMouseleave: (
|
|
4267
|
-
}, [
|
|
4269
|
+
onMouseenter: (e) => t.submenu ? u.value = s : void 0,
|
|
4270
|
+
onMouseleave: (e) => t.submenu ? u.value = null : void 0
|
|
4271
|
+
}, [o("button", {
|
|
4268
4272
|
type: "button",
|
|
4269
|
-
class:
|
|
4270
|
-
disabled:
|
|
4271
|
-
onClick:
|
|
4273
|
+
class: m(["docx-menu-dropdown__item", { "docx-menu-dropdown__item--disabled": t.disabled }]),
|
|
4274
|
+
disabled: t.disabled,
|
|
4275
|
+
onClick: I((e) => f(t), ["prevent"])
|
|
4272
4276
|
}, [
|
|
4273
|
-
|
|
4277
|
+
t.icon ? (v(), r(K, {
|
|
4274
4278
|
key: 0,
|
|
4275
|
-
name:
|
|
4279
|
+
name: t.icon,
|
|
4276
4280
|
size: 18
|
|
4277
|
-
}, null, 8, ["name"])) :
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
+
}, null, 8, ["name"])) : i("", !0),
|
|
4282
|
+
o("span", An, w(t.label), 1),
|
|
4283
|
+
t.shortcut ? (v(), a("span", jn, w(t.shortcut), 1)) : i("", !0),
|
|
4284
|
+
t.submenu ? (v(), a("span", Mn, [c(K, {
|
|
4281
4285
|
name: "keyboard_arrow_right",
|
|
4282
4286
|
size: 16
|
|
4283
|
-
})])) :
|
|
4284
|
-
], 10, kn),
|
|
4285
|
-
item:
|
|
4287
|
+
})])) : i("", !0)
|
|
4288
|
+
], 10, kn), t.submenu && u.value === s ? (v(), a("div", Nn, [C(p.$slots, "submenu", {
|
|
4289
|
+
item: t,
|
|
4286
4290
|
closeMenu: d
|
|
4287
|
-
}, void 0, !0)])) :
|
|
4291
|
+
}, void 0, !0)])) : i("", !0)], 40, On))], 64))), 128))], 32)]),
|
|
4288
4292
|
_: 3
|
|
4289
4293
|
}, 8, ["open"]));
|
|
4290
4294
|
}
|
|
@@ -4302,7 +4306,7 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4302
4306
|
}, Rn = {
|
|
4303
4307
|
key: 1,
|
|
4304
4308
|
class: "folio-outline-item-label"
|
|
4305
|
-
}, zn = 12, Bn = /*#__PURE__*/
|
|
4309
|
+
}, zn = 12, Bn = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
4306
4310
|
__name: "OutlineRail",
|
|
4307
4311
|
props: {
|
|
4308
4312
|
items: {},
|
|
@@ -4315,40 +4319,40 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4315
4319
|
ariaLabel: { default: "Outline" },
|
|
4316
4320
|
presentation: { default: "panel" }
|
|
4317
4321
|
},
|
|
4318
|
-
setup(
|
|
4319
|
-
let
|
|
4322
|
+
setup(t) {
|
|
4323
|
+
let r = t, s = x(null), c = x(0), l = x(0), u = x(!1), d = n(() => r.items.findIndex((e) => e.id === r.activeId)), f = n(() => {
|
|
4320
4324
|
let e = Infinity;
|
|
4321
|
-
for (let t of
|
|
4325
|
+
for (let t of r.items) e = Math.min(e, t.level);
|
|
4322
4326
|
return e;
|
|
4323
|
-
}),
|
|
4324
|
-
|
|
4327
|
+
}), _ = (e) => r.presentation === "rail" ? ["folio-outline-tick", e.id === r.activeId ? "folio-outline-tick--active" : void 0] : ["folio-outline-item", e.id === r.activeId ? "folio-outline-item--active" : void 0];
|
|
4328
|
+
M(d, (e) => {
|
|
4325
4329
|
!u.value && e >= 0 && (l.value = e);
|
|
4326
|
-
}, { immediate: !0 }),
|
|
4330
|
+
}, { immediate: !0 }), M([d, () => r.presentation], async ([e, t]) => {
|
|
4327
4331
|
if (t !== "panel" || e < 0) return;
|
|
4328
|
-
await
|
|
4329
|
-
let n =
|
|
4332
|
+
await p();
|
|
4333
|
+
let n = s.value, r = n?.children.item(e);
|
|
4330
4334
|
if (!(r instanceof HTMLElement) || !n) return;
|
|
4331
|
-
let
|
|
4332
|
-
|
|
4335
|
+
let i = r.offsetTop, a = i + r.offsetHeight;
|
|
4336
|
+
i < n.scrollTop ? n.scrollTop = i : a > n.scrollTop + n.clientHeight && (n.scrollTop = a - n.clientHeight);
|
|
4333
4337
|
}, {
|
|
4334
4338
|
immediate: !0,
|
|
4335
4339
|
flush: "post"
|
|
4336
4340
|
});
|
|
4337
|
-
let
|
|
4338
|
-
|
|
4339
|
-
|
|
4341
|
+
let y = null;
|
|
4342
|
+
M([s, () => r.presentation], ([e, t]) => {
|
|
4343
|
+
y?.disconnect(), y = null, c.value = 0, !(t !== "rail" || !e || typeof ResizeObserver > "u") && (c.value = e.clientHeight, y = new ResizeObserver(() => {
|
|
4340
4344
|
c.value = e.clientHeight;
|
|
4341
|
-
}),
|
|
4342
|
-
}, { flush: "post" }),
|
|
4343
|
-
let b =
|
|
4344
|
-
if (
|
|
4345
|
-
let e = Math.max(0, c.value - zn), t =
|
|
4345
|
+
}), y.observe(e));
|
|
4346
|
+
}, { flush: "post" }), g(() => y?.disconnect());
|
|
4347
|
+
let b = n(() => {
|
|
4348
|
+
if (r.presentation !== "rail" || c.value === 0) return [];
|
|
4349
|
+
let e = Math.max(0, c.value - zn), t = r.items.length;
|
|
4346
4350
|
if (t * zn > c.value) {
|
|
4347
|
-
let
|
|
4348
|
-
return
|
|
4351
|
+
let n = t > 1 ? e / (t - 1) : 0;
|
|
4352
|
+
return r.items.map((e, t) => t * n);
|
|
4349
4353
|
}
|
|
4350
|
-
let
|
|
4351
|
-
let o =
|
|
4354
|
+
let n = r.getScrollContainer(), i = r.items.map((i, a) => {
|
|
4355
|
+
let o = n ? r.resolvePct?.(i.id, n) ?? null : null;
|
|
4352
4356
|
return (o === null ? a / Math.max(1, t - 1) : o / 100) * e;
|
|
4353
4357
|
});
|
|
4354
4358
|
for (let e = 1; e < i.length; e++) i[e] = Math.max(i[e] ?? 0, (i[e - 1] ?? 0) + zn);
|
|
@@ -4357,63 +4361,63 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4357
4361
|
i[t] = Math.min(i[t] ?? 0, n);
|
|
4358
4362
|
}
|
|
4359
4363
|
return i;
|
|
4360
|
-
}),
|
|
4361
|
-
let t =
|
|
4362
|
-
t &&
|
|
4363
|
-
},
|
|
4364
|
-
let t =
|
|
4364
|
+
}), C = (e) => {
|
|
4365
|
+
let t = r.getScrollContainer();
|
|
4366
|
+
t && r.onJump(e, t);
|
|
4367
|
+
}, T = (e) => {
|
|
4368
|
+
let t = r.items.length - 1, n;
|
|
4365
4369
|
switch (e.key) {
|
|
4366
4370
|
case "ArrowDown":
|
|
4367
|
-
|
|
4371
|
+
n = Math.min(t, l.value + 1);
|
|
4368
4372
|
break;
|
|
4369
4373
|
case "ArrowUp":
|
|
4370
|
-
|
|
4374
|
+
n = Math.max(0, l.value - 1);
|
|
4371
4375
|
break;
|
|
4372
4376
|
case "Home":
|
|
4373
|
-
|
|
4377
|
+
n = 0;
|
|
4374
4378
|
break;
|
|
4375
4379
|
case "End":
|
|
4376
|
-
|
|
4380
|
+
n = t;
|
|
4377
4381
|
break;
|
|
4378
4382
|
default: return;
|
|
4379
4383
|
}
|
|
4380
|
-
e.preventDefault(), l.value =
|
|
4384
|
+
e.preventDefault(), l.value = n, s.value?.querySelectorAll("button").item(n)?.focus();
|
|
4381
4385
|
}, E = (e) => {
|
|
4382
|
-
e.relatedTarget instanceof Node &&
|
|
4386
|
+
e.relatedTarget instanceof Node && s.value?.contains(e.relatedTarget) || (u.value = !1);
|
|
4383
4387
|
};
|
|
4384
|
-
return (n, r) =>
|
|
4388
|
+
return (n, r) => t.items.length >= 2 ? (v(), a("ol", {
|
|
4385
4389
|
key: 0,
|
|
4386
4390
|
ref_key: "listRef",
|
|
4387
|
-
ref:
|
|
4388
|
-
"aria-label":
|
|
4389
|
-
class:
|
|
4390
|
-
onKeydown:
|
|
4391
|
+
ref: s,
|
|
4392
|
+
"aria-label": t.ariaLabel,
|
|
4393
|
+
class: m(t.presentation === "rail" ? "folio-outline-ticks" : "folio-outline-list"),
|
|
4394
|
+
onKeydown: T,
|
|
4391
4395
|
onFocusin: r[0] ||= (e) => u.value = !0,
|
|
4392
4396
|
onFocusout: E
|
|
4393
|
-
}, [(
|
|
4397
|
+
}, [(v(!0), a(e, null, S(t.items, (n, i) => (v(), a("li", {
|
|
4394
4398
|
key: n.id,
|
|
4395
|
-
class:
|
|
4396
|
-
style:
|
|
4397
|
-
}, [
|
|
4399
|
+
class: m(t.presentation === "rail" ? "folio-outline-tick-slot" : void 0),
|
|
4400
|
+
style: h(t.presentation === "rail" ? { top: (b.value[i] ?? 0) + "px" } : void 0)
|
|
4401
|
+
}, [o("button", {
|
|
4398
4402
|
type: "button",
|
|
4399
|
-
class:
|
|
4403
|
+
class: m(_(n)),
|
|
4400
4404
|
"data-depth": Math.min(4, n.level - f.value),
|
|
4401
|
-
"aria-current": n.id ===
|
|
4402
|
-
"aria-label":
|
|
4403
|
-
title:
|
|
4405
|
+
"aria-current": n.id === t.activeId ? "true" : void 0,
|
|
4406
|
+
"aria-label": t.presentation === "rail" ? n.label : void 0,
|
|
4407
|
+
title: t.presentation === "panel" ? n.label : void 0,
|
|
4404
4408
|
tabindex: i === l.value ? 0 : -1,
|
|
4405
|
-
onClick: (e) =>
|
|
4409
|
+
onClick: (e) => C(n.id),
|
|
4406
4410
|
onFocus: (e) => l.value = i
|
|
4407
|
-
}, [
|
|
4411
|
+
}, [t.presentation === "rail" ? (v(), a(e, { key: 0 }, [r[1] ||= o("span", {
|
|
4408
4412
|
"aria-hidden": "true",
|
|
4409
4413
|
class: "folio-outline-tick-mark"
|
|
4410
|
-
}, null, -1),
|
|
4414
|
+
}, null, -1), o("span", Ln, w(n.label), 1)], 64)) : (v(), a("span", Rn, w(n.label), 1))], 42, In)], 6))), 128))], 42, Fn)) : i("", !0);
|
|
4411
4415
|
}
|
|
4412
4416
|
}), [["__scopeId", "data-v-962a19e0"]]), Vn = ["disabled", "value"], Hn = {
|
|
4413
4417
|
key: 0,
|
|
4414
4418
|
disabled: "",
|
|
4415
4419
|
value: ""
|
|
4416
|
-
}, Un = ["disabled", "value"], Wn = /*#__PURE__*/
|
|
4420
|
+
}, Un = ["disabled", "value"], Wn = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
4417
4421
|
__name: "Select",
|
|
4418
4422
|
props: {
|
|
4419
4423
|
value: {},
|
|
@@ -4423,21 +4427,21 @@ var Ht = "en", Ut = (e) => Vt({
|
|
|
4423
4427
|
className: {}
|
|
4424
4428
|
},
|
|
4425
4429
|
emits: ["change"],
|
|
4426
|
-
setup(
|
|
4430
|
+
setup(t, { emit: n }) {
|
|
4427
4431
|
let r = n;
|
|
4428
|
-
function
|
|
4432
|
+
function o(e) {
|
|
4429
4433
|
e.target instanceof HTMLSelectElement && r("change", e.target.value);
|
|
4430
4434
|
}
|
|
4431
|
-
return (n, r) => (
|
|
4432
|
-
class:
|
|
4433
|
-
disabled:
|
|
4434
|
-
value:
|
|
4435
|
-
onChange:
|
|
4436
|
-
}, [
|
|
4435
|
+
return (n, r) => (v(), a("select", {
|
|
4436
|
+
class: m(["folio-default-select", t.className]),
|
|
4437
|
+
disabled: t.disabled,
|
|
4438
|
+
value: t.value,
|
|
4439
|
+
onChange: o
|
|
4440
|
+
}, [t.placeholder && t.value === void 0 ? (v(), a("option", Hn, w(t.placeholder), 1)) : i("", !0), (v(!0), a(e, null, S(t.items, (e) => (v(), a("option", {
|
|
4437
4441
|
key: e.value,
|
|
4438
4442
|
disabled: e.disabled,
|
|
4439
4443
|
value: e.value
|
|
4440
|
-
},
|
|
4444
|
+
}, w(e.label), 9, Un))), 128))], 42, Vn));
|
|
4441
4445
|
}
|
|
4442
4446
|
}), [["__scopeId", "data-v-ce79245b"]]), Gn = {
|
|
4443
4447
|
Button: Xt,
|
|
@@ -4458,12 +4462,12 @@ function qn(e) {
|
|
|
4458
4462
|
} : Gn;
|
|
4459
4463
|
}
|
|
4460
4464
|
function Jn(e) {
|
|
4461
|
-
|
|
4465
|
+
y(Kn, qn(e));
|
|
4462
4466
|
}
|
|
4463
4467
|
function Q() {
|
|
4464
|
-
return
|
|
4468
|
+
return u(Kn, Gn);
|
|
4465
4469
|
}
|
|
4466
|
-
var Yn =
|
|
4470
|
+
var Yn = l({
|
|
4467
4471
|
name: "FolioUIProvider",
|
|
4468
4472
|
props: { components: {
|
|
4469
4473
|
type: Object,
|
|
@@ -4475,169 +4479,187 @@ var Yn = u({
|
|
|
4475
4479
|
}), 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 = {
|
|
4476
4480
|
key: 0,
|
|
4477
4481
|
class: "find-replace-dialog__row"
|
|
4478
|
-
}, rr =
|
|
4482
|
+
}, rr = {
|
|
4483
|
+
key: 1,
|
|
4484
|
+
role: "status",
|
|
4485
|
+
"aria-live": "polite",
|
|
4486
|
+
class: "find-replace-dialog__summary"
|
|
4487
|
+
}, ir = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
4479
4488
|
__name: "FindReplaceDialog",
|
|
4480
4489
|
props: {
|
|
4481
4490
|
isOpen: { type: Boolean },
|
|
4482
|
-
|
|
4483
|
-
scrollVisiblePositionIntoView: { type: Function }
|
|
4491
|
+
search: {}
|
|
4484
4492
|
},
|
|
4485
4493
|
emits: ["close"],
|
|
4486
|
-
setup(
|
|
4487
|
-
let { t:
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4494
|
+
setup(e, { emit: t }) {
|
|
4495
|
+
let { t: l } = Z(), { Button: u, Input: f, Checkbox: h } = Q(), g = e, _ = t, y = x(null), b = x(!1), S = x(null), C = n(() => g.search.replacementRefusal.value !== null), { searchText: E, replaceText: O, options: k, matches: A, currentIndex: j, canReplaceCurrent: P, performSearch: L, scheduleSearch: R, findNext: ee, findPrevious: te, replaceCurrent: ne, replaceAll: re, clear: ie } = g.search, ae = () => {
|
|
4496
|
+
S.value = re();
|
|
4497
|
+
};
|
|
4498
|
+
M([
|
|
4499
|
+
E,
|
|
4500
|
+
() => k.matchCase,
|
|
4501
|
+
() => k.matchWholeWord
|
|
4502
|
+
], () => {
|
|
4503
|
+
S.value = null;
|
|
4504
|
+
});
|
|
4505
|
+
let z = T(k, "matchCase"), B = T(k, "matchWholeWord"), V = n(() => E.value.trim() ? A.value.length === 0 ? l("findReplace.noResults") : j.value < 0 ? l("dialogs.findReplace.matchesFound", { total: A.value.length }) : l("findReplace.matchCounter", {
|
|
4506
|
+
current: j.value + 1,
|
|
4507
|
+
total: A.value.length
|
|
4493
4508
|
}) : "");
|
|
4494
|
-
|
|
4495
|
-
e ? (await
|
|
4509
|
+
M(() => g.isOpen, async (e) => {
|
|
4510
|
+
e ? (await p(), y.value?.focus(), y.value?.select(), L()) : ie();
|
|
4496
4511
|
});
|
|
4497
|
-
function
|
|
4498
|
-
|
|
4512
|
+
function H() {
|
|
4513
|
+
S.value = null, ie(), _("close");
|
|
4499
4514
|
}
|
|
4500
|
-
function
|
|
4501
|
-
e.key === "Enter" ? (e.preventDefault(), e.shiftKey ?
|
|
4515
|
+
function oe(e) {
|
|
4516
|
+
e.key === "Enter" ? (e.preventDefault(), e.shiftKey ? te() : ee()) : e.key === "Escape" && H();
|
|
4502
4517
|
}
|
|
4503
|
-
return (
|
|
4518
|
+
return (t, n) => e.isOpen ? (v(), a("div", {
|
|
4504
4519
|
key: 0,
|
|
4505
4520
|
class: "find-replace-dialog",
|
|
4506
4521
|
"data-testid": "find-replace-dialog",
|
|
4507
|
-
onMousedown: n[5] ||=
|
|
4508
|
-
onKeydown: n[6] ||=
|
|
4509
|
-
}, [
|
|
4522
|
+
onMousedown: n[5] ||= I(() => {}, ["stop"]),
|
|
4523
|
+
onKeydown: n[6] ||= I(() => {}, ["stop"])
|
|
4524
|
+
}, [o("div", Xn, [o("span", Zn, w(b.value ? D(l)("findReplace.findAndReplace") : D(l)("findReplace.find")), 1), c(D(u), {
|
|
4510
4525
|
class: "find-replace-dialog__close",
|
|
4511
4526
|
variant: "ghost",
|
|
4512
4527
|
size: "icon-xs",
|
|
4513
|
-
onClick:
|
|
4514
|
-
title:
|
|
4528
|
+
onClick: H,
|
|
4529
|
+
title: D(l)("findReplace.close")
|
|
4515
4530
|
}, {
|
|
4516
|
-
default:
|
|
4531
|
+
default: N(() => [...n[7] ||= [s(" ✕ ", -1)]]),
|
|
4517
4532
|
_: 1
|
|
4518
|
-
}, 8, ["title"])]),
|
|
4519
|
-
|
|
4520
|
-
|
|
4533
|
+
}, 8, ["title"])]), o("div", Qn, [
|
|
4534
|
+
o("div", $n, [
|
|
4535
|
+
c(D(f), {
|
|
4521
4536
|
ref_key: "searchInputRef",
|
|
4522
|
-
ref:
|
|
4523
|
-
modelValue:
|
|
4524
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
4537
|
+
ref: y,
|
|
4538
|
+
modelValue: D(E),
|
|
4539
|
+
"onUpdate:modelValue": n[0] ||= (e) => d(E) ? E.value = e : null,
|
|
4525
4540
|
class: "find-replace-dialog__input",
|
|
4526
4541
|
"data-testid": "find-input",
|
|
4527
|
-
placeholder:
|
|
4528
|
-
"aria-label":
|
|
4529
|
-
onKeydown:
|
|
4530
|
-
onInput:
|
|
4542
|
+
placeholder: D(l)("findReplace.findPlaceholder"),
|
|
4543
|
+
"aria-label": D(l)("findReplace.findText"),
|
|
4544
|
+
onKeydown: oe,
|
|
4545
|
+
onInput: D(R)
|
|
4531
4546
|
}, null, 8, [
|
|
4532
4547
|
"modelValue",
|
|
4533
4548
|
"placeholder",
|
|
4534
4549
|
"aria-label",
|
|
4535
4550
|
"onInput"
|
|
4536
4551
|
]),
|
|
4537
|
-
|
|
4538
|
-
|
|
4552
|
+
o("span", er, w(V.value), 1),
|
|
4553
|
+
c(D(u), {
|
|
4539
4554
|
variant: "ghost",
|
|
4540
4555
|
size: "icon-xs",
|
|
4541
|
-
title:
|
|
4542
|
-
onMousedown:
|
|
4556
|
+
title: D(l)("findReplace.previous"),
|
|
4557
|
+
onMousedown: I(D(te), ["prevent"])
|
|
4543
4558
|
}, {
|
|
4544
|
-
default:
|
|
4559
|
+
default: N(() => [...n[8] ||= [s("▲", -1)]]),
|
|
4545
4560
|
_: 1
|
|
4546
4561
|
}, 8, ["title", "onMousedown"]),
|
|
4547
|
-
|
|
4562
|
+
c(D(u), {
|
|
4548
4563
|
variant: "ghost",
|
|
4549
4564
|
size: "icon-xs",
|
|
4550
|
-
title:
|
|
4551
|
-
onMousedown:
|
|
4565
|
+
title: D(l)("findReplace.next"),
|
|
4566
|
+
onMousedown: I(D(ee), ["prevent"])
|
|
4552
4567
|
}, {
|
|
4553
|
-
default:
|
|
4568
|
+
default: N(() => [...n[9] ||= [s("▼", -1)]]),
|
|
4554
4569
|
_: 1
|
|
4555
4570
|
}, 8, ["title", "onMousedown"])
|
|
4556
4571
|
]),
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
checked:
|
|
4572
|
+
o("div", tr, [
|
|
4573
|
+
o("label", null, [c(D(h), {
|
|
4574
|
+
checked: z.value,
|
|
4560
4575
|
"onUpdate:checked": n[1] ||= (e) => {
|
|
4561
|
-
|
|
4576
|
+
z.value = e, D(L)();
|
|
4562
4577
|
}
|
|
4563
|
-
}, null, 8, ["checked"]),
|
|
4564
|
-
|
|
4565
|
-
checked:
|
|
4578
|
+
}, null, 8, ["checked"]), s(" " + w(D(l)("findReplace.matchCase")), 1)]),
|
|
4579
|
+
o("label", null, [c(D(h), {
|
|
4580
|
+
checked: B.value,
|
|
4566
4581
|
"onUpdate:checked": n[2] ||= (e) => {
|
|
4567
|
-
|
|
4582
|
+
B.value = e, D(L)();
|
|
4568
4583
|
}
|
|
4569
|
-
}, null, 8, ["checked"]),
|
|
4570
|
-
|
|
4571
|
-
|
|
4584
|
+
}, null, 8, ["checked"]), s(" " + w(D(l)("findReplace.wholeWords")), 1)]),
|
|
4585
|
+
C.value ? i("", !0) : (v(), r(D(u), {
|
|
4586
|
+
key: 0,
|
|
4587
|
+
class: m(["find-replace-dialog__toggle", { active: b.value }]),
|
|
4572
4588
|
"data-testid": "find-replace-toggle",
|
|
4573
4589
|
variant: "ghost",
|
|
4574
4590
|
size: "xs",
|
|
4575
|
-
onMousedown: n[3] ||=
|
|
4576
|
-
title:
|
|
4591
|
+
onMousedown: n[3] ||= I((e) => b.value = !b.value, ["prevent"]),
|
|
4592
|
+
title: D(l)("dialogs.findReplace.toggleReplace")
|
|
4577
4593
|
}, {
|
|
4578
|
-
default:
|
|
4594
|
+
default: N(() => [s(" ↔ " + w(D(l)("dialogs.findReplace.replaceButton")), 1)]),
|
|
4579
4595
|
_: 1
|
|
4580
|
-
}, 8, ["class", "title"])
|
|
4596
|
+
}, 8, ["class", "title"]))
|
|
4581
4597
|
]),
|
|
4582
|
-
b.value ? (
|
|
4583
|
-
|
|
4584
|
-
modelValue: O
|
|
4585
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
4598
|
+
b.value && !C.value ? (v(), a("div", nr, [
|
|
4599
|
+
c(D(f), {
|
|
4600
|
+
modelValue: D(O),
|
|
4601
|
+
"onUpdate:modelValue": n[4] ||= (e) => d(O) ? O.value = e : null,
|
|
4586
4602
|
class: "find-replace-dialog__input",
|
|
4587
4603
|
"data-testid": "replace-input",
|
|
4588
|
-
placeholder:
|
|
4589
|
-
"aria-label":
|
|
4590
|
-
onKeydown: I(
|
|
4604
|
+
placeholder: D(l)("findReplace.replacePlaceholder"),
|
|
4605
|
+
"aria-label": D(l)("findReplace.replaceText"),
|
|
4606
|
+
onKeydown: F(I(D(ne), ["prevent"]), ["enter"])
|
|
4591
4607
|
}, null, 8, [
|
|
4592
4608
|
"modelValue",
|
|
4593
4609
|
"placeholder",
|
|
4594
4610
|
"aria-label",
|
|
4595
4611
|
"onKeydown"
|
|
4596
4612
|
]),
|
|
4597
|
-
|
|
4613
|
+
c(D(u), {
|
|
4598
4614
|
variant: "ghost",
|
|
4599
4615
|
size: "xs",
|
|
4616
|
+
disabled: !D(P),
|
|
4600
4617
|
"data-testid": "replace-current",
|
|
4601
|
-
title:
|
|
4602
|
-
onMousedown:
|
|
4618
|
+
title: D(l)("findReplace.replaceCurrent"),
|
|
4619
|
+
onMousedown: I(D(ne), ["prevent"])
|
|
4603
4620
|
}, {
|
|
4604
|
-
default:
|
|
4621
|
+
default: N(() => [s(w(D(l)("dialogs.findReplace.replaceButton")), 1)]),
|
|
4605
4622
|
_: 1
|
|
4606
|
-
}, 8, [
|
|
4607
|
-
|
|
4623
|
+
}, 8, [
|
|
4624
|
+
"disabled",
|
|
4625
|
+
"title",
|
|
4626
|
+
"onMousedown"
|
|
4627
|
+
]),
|
|
4628
|
+
c(D(u), {
|
|
4608
4629
|
variant: "ghost",
|
|
4609
4630
|
size: "xs",
|
|
4610
4631
|
"data-testid": "replace-all",
|
|
4611
|
-
title:
|
|
4612
|
-
onMousedown:
|
|
4632
|
+
title: D(l)("findReplace.replaceAll"),
|
|
4633
|
+
onMousedown: I(ae, ["prevent"])
|
|
4613
4634
|
}, {
|
|
4614
|
-
default:
|
|
4635
|
+
default: N(() => [s(w(D(l)("findReplace.replaceAll")), 1)]),
|
|
4615
4636
|
_: 1
|
|
4616
|
-
}, 8, ["title"
|
|
4617
|
-
])) :
|
|
4618
|
-
|
|
4637
|
+
}, 8, ["title"])
|
|
4638
|
+
])) : i("", !0),
|
|
4639
|
+
S.value ? (v(), a("p", rr, w(D(l)("findReplace.replaceAllSummary", S.value)), 1)) : i("", !0)
|
|
4640
|
+
])], 32)) : i("", !0);
|
|
4619
4641
|
}
|
|
4620
|
-
}), [["__scopeId", "data-v-
|
|
4642
|
+
}), [["__scopeId", "data-v-e9bd66ec"]]), ar = { class: "dialog__header" }, or = { class: "dialog__title" }, sr = ["aria-label"], cr = { class: "dialog__body" }, lr = {
|
|
4621
4643
|
key: 0,
|
|
4622
4644
|
class: "link-tabs",
|
|
4623
4645
|
role: "tablist"
|
|
4624
|
-
},
|
|
4646
|
+
}, ur = ["aria-selected"], dr = ["aria-selected"], fr = {
|
|
4625
4647
|
key: 1,
|
|
4626
4648
|
class: "field"
|
|
4627
|
-
},
|
|
4649
|
+
}, pr = { class: "field__label" }, mr = [
|
|
4628
4650
|
"placeholder",
|
|
4629
4651
|
"aria-invalid",
|
|
4630
4652
|
"onKeydown"
|
|
4631
|
-
],
|
|
4653
|
+
], hr = {
|
|
4632
4654
|
key: 0,
|
|
4633
4655
|
class: "field__error"
|
|
4634
|
-
},
|
|
4656
|
+
}, gr = {
|
|
4635
4657
|
key: 1,
|
|
4636
4658
|
class: "field__hint"
|
|
4637
|
-
},
|
|
4659
|
+
}, _r = {
|
|
4638
4660
|
key: 2,
|
|
4639
4661
|
class: "field"
|
|
4640
|
-
},
|
|
4662
|
+
}, vr = { class: "field__label" }, yr = ["onKeydown"], br = { value: "" }, xr = ["value"], Sr = { class: "field" }, Cr = { class: "field__label" }, wr = ["placeholder"], Tr = { class: "field__hint" }, Er = { class: "field" }, Dr = { class: "field__label" }, Or = ["placeholder"], kr = { class: "dialog__actions" }, Ar = ["disabled"], jr = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
4641
4663
|
__name: "HyperlinkDialog",
|
|
4642
4664
|
props: {
|
|
4643
4665
|
isOpen: { type: Boolean },
|
|
@@ -4649,10 +4671,10 @@ var Yn = u({
|
|
|
4649
4671
|
"submit",
|
|
4650
4672
|
"remove"
|
|
4651
4673
|
],
|
|
4652
|
-
setup(
|
|
4653
|
-
let { t:
|
|
4654
|
-
|
|
4655
|
-
|
|
4674
|
+
setup(t, { emit: r }) {
|
|
4675
|
+
let { t: s } = Z(), c = t, l = r, u = x(null), d = x(null), f = x("url"), h = x(""), g = x(""), _ = x(""), y = x(""), b = x(!1), C = x(""), T = x(!1), E = n(() => c.bookmarks ?? []), O = n(() => f.value === "bookmark" ? !!g.value : !!h.value.trim() && !C.value);
|
|
4676
|
+
M(h, () => {
|
|
4677
|
+
C.value &&= "";
|
|
4656
4678
|
});
|
|
4657
4679
|
function k(e) {
|
|
4658
4680
|
let t = e.trim();
|
|
@@ -4666,25 +4688,25 @@ var Yn = u({
|
|
|
4666
4688
|
return !1;
|
|
4667
4689
|
}
|
|
4668
4690
|
}
|
|
4669
|
-
function
|
|
4691
|
+
function N(e) {
|
|
4670
4692
|
let t = e.trim();
|
|
4671
4693
|
return /^(https?:\/\/|mailto:|tel:|ftp:\/\/)/i.test(t) ? t : `https://${t}`;
|
|
4672
4694
|
}
|
|
4673
|
-
|
|
4695
|
+
M(() => c.isOpen, async (e) => {
|
|
4674
4696
|
if (e) {
|
|
4675
4697
|
let e = c.view;
|
|
4676
4698
|
if (e) {
|
|
4677
4699
|
let { $from: t, empty: n, from: r, to: i } = e.state.selection, a = (e.state.storedMarks || t.marks()).find((e) => e.type.name === "hyperlink");
|
|
4678
4700
|
if (a) {
|
|
4679
4701
|
let e = a.attrs.href || "";
|
|
4680
|
-
e.startsWith("#") ? (f.value = "bookmark", g.value = e.slice(1),
|
|
4681
|
-
} else f.value = "url",
|
|
4702
|
+
e.startsWith("#") ? (f.value = "bookmark", g.value = e.slice(1), h.value = "") : (f.value = "url", h.value = e, g.value = ""), y.value = a.attrs.tooltip || "", b.value = !0;
|
|
4703
|
+
} else f.value = "url", h.value = "", g.value = "", y.value = "", b.value = !1;
|
|
4682
4704
|
n ? _.value = "" : _.value = e.state.doc.textBetween(r, i);
|
|
4683
4705
|
}
|
|
4684
|
-
await
|
|
4685
|
-
} else
|
|
4706
|
+
await p(), f.value === "bookmark" ? d.value?.focus() : u.value?.focus();
|
|
4707
|
+
} else T.value = !1, C.value = "";
|
|
4686
4708
|
});
|
|
4687
|
-
function
|
|
4709
|
+
function L() {
|
|
4688
4710
|
l("close");
|
|
4689
4711
|
}
|
|
4690
4712
|
function R() {
|
|
@@ -4693,113 +4715,113 @@ var Yn = u({
|
|
|
4693
4715
|
l("submit", {
|
|
4694
4716
|
bookmark: g.value,
|
|
4695
4717
|
displayText: _.value,
|
|
4696
|
-
tooltip:
|
|
4697
|
-
}),
|
|
4718
|
+
tooltip: y.value
|
|
4719
|
+
}), L();
|
|
4698
4720
|
return;
|
|
4699
4721
|
}
|
|
4700
|
-
if (
|
|
4701
|
-
|
|
4722
|
+
if (T.value = !0, !k(h.value)) {
|
|
4723
|
+
C.value = h.value.trim() ? s("dialogs.hyperlink.invalidUrl") : s("dialogs.hyperlink.urlRequired");
|
|
4702
4724
|
return;
|
|
4703
4725
|
}
|
|
4704
4726
|
l("submit", {
|
|
4705
|
-
url:
|
|
4727
|
+
url: N(h.value),
|
|
4706
4728
|
displayText: _.value,
|
|
4707
|
-
tooltip:
|
|
4708
|
-
}),
|
|
4729
|
+
tooltip: y.value
|
|
4730
|
+
}), L();
|
|
4709
4731
|
}
|
|
4710
|
-
function
|
|
4732
|
+
function ee() {
|
|
4711
4733
|
if (f.value === "url") {
|
|
4712
|
-
if (
|
|
4713
|
-
|
|
4734
|
+
if (T.value = !0, !h.value.trim()) {
|
|
4735
|
+
C.value = "";
|
|
4714
4736
|
return;
|
|
4715
4737
|
}
|
|
4716
|
-
|
|
4738
|
+
C.value = k(h.value) ? "" : s("dialogs.hyperlink.invalidUrl");
|
|
4717
4739
|
}
|
|
4718
4740
|
}
|
|
4719
|
-
function
|
|
4720
|
-
l("remove"),
|
|
4741
|
+
function te() {
|
|
4742
|
+
l("remove"), L();
|
|
4721
4743
|
}
|
|
4722
|
-
return (n, r) =>
|
|
4744
|
+
return (n, r) => t.isOpen ? (v(), a("div", {
|
|
4723
4745
|
key: 0,
|
|
4724
4746
|
class: "dialog-overlay",
|
|
4725
|
-
onMousedown: L
|
|
4726
|
-
}, [
|
|
4747
|
+
onMousedown: I(L, ["self"])
|
|
4748
|
+
}, [o("div", {
|
|
4727
4749
|
class: "dialog",
|
|
4728
|
-
onMousedown: r[6] ||=
|
|
4729
|
-
onKeydown: r[7] ||=
|
|
4730
|
-
}, [
|
|
4750
|
+
onMousedown: r[6] ||= I(() => {}, ["stop"]),
|
|
4751
|
+
onKeydown: r[7] ||= I(() => {}, ["stop"])
|
|
4752
|
+
}, [o("div", ar, [o("span", or, w(b.value ? D(s)("dialogs.hyperlink.titleEdit") : D(s)("dialogs.hyperlink.titleInsert")), 1), o("button", {
|
|
4731
4753
|
class: "dialog__close",
|
|
4732
|
-
"aria-label":
|
|
4733
|
-
onClick:
|
|
4734
|
-
}, " ✕ ", 8,
|
|
4735
|
-
E.value.length > 0 ? (
|
|
4736
|
-
class:
|
|
4754
|
+
"aria-label": D(s)("common.closeDialog"),
|
|
4755
|
+
onClick: L
|
|
4756
|
+
}, " ✕ ", 8, sr)]), o("div", cr, [
|
|
4757
|
+
E.value.length > 0 ? (v(), a("div", lr, [o("button", {
|
|
4758
|
+
class: m(["link-tab", { active: f.value === "url" }]),
|
|
4737
4759
|
role: "tab",
|
|
4738
4760
|
"aria-selected": f.value === "url",
|
|
4739
|
-
onMousedown: r[0] ||=
|
|
4740
|
-
},
|
|
4741
|
-
class:
|
|
4761
|
+
onMousedown: r[0] ||= I((e) => f.value = "url", ["prevent"])
|
|
4762
|
+
}, w(D(s)("dialogs.hyperlink.tabWebAddress")), 43, ur), o("button", {
|
|
4763
|
+
class: m(["link-tab", { active: f.value === "bookmark" }]),
|
|
4742
4764
|
role: "tab",
|
|
4743
4765
|
"aria-selected": f.value === "bookmark",
|
|
4744
|
-
onMousedown: r[1] ||=
|
|
4745
|
-
},
|
|
4746
|
-
f.value === "url" ? (
|
|
4747
|
-
|
|
4748
|
-
|
|
4766
|
+
onMousedown: r[1] ||= I((e) => f.value = "bookmark", ["prevent"])
|
|
4767
|
+
}, w(D(s)("dialogs.hyperlink.tabBookmark")), 43, dr)])) : i("", !0),
|
|
4768
|
+
f.value === "url" ? (v(), a("div", fr, [
|
|
4769
|
+
o("label", pr, w(D(s)("dialogs.hyperlink.urlLabel")), 1),
|
|
4770
|
+
P(o("input", {
|
|
4749
4771
|
ref_key: "urlInputRef",
|
|
4750
4772
|
ref: u,
|
|
4751
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
4752
|
-
class:
|
|
4753
|
-
placeholder:
|
|
4754
|
-
"aria-invalid":
|
|
4755
|
-
onKeydown: I(
|
|
4756
|
-
onBlur:
|
|
4757
|
-
}, null, 42,
|
|
4758
|
-
|
|
4759
|
-
])) : (
|
|
4773
|
+
"onUpdate:modelValue": r[2] ||= (e) => h.value = e,
|
|
4774
|
+
class: m(["field__input", { "field__input--error": T.value && !!C.value }]),
|
|
4775
|
+
placeholder: D(s)("dialogs.hyperlink.urlPlaceholder"),
|
|
4776
|
+
"aria-invalid": T.value && !!C.value,
|
|
4777
|
+
onKeydown: F(I(R, ["prevent"]), ["enter"]),
|
|
4778
|
+
onBlur: ee
|
|
4779
|
+
}, null, 42, mr), [[j, h.value]]),
|
|
4780
|
+
T.value && C.value ? (v(), a("div", hr, w(C.value), 1)) : (v(), a("div", gr, w(D(s)("dialogs.hyperlink.urlHint")), 1))
|
|
4781
|
+
])) : (v(), a("div", _r, [o("label", vr, w(D(s)("dialogs.hyperlink.bookmarkLabel")), 1), P(o("select", {
|
|
4760
4782
|
ref_key: "bookmarkSelectRef",
|
|
4761
4783
|
ref: d,
|
|
4762
4784
|
"onUpdate:modelValue": r[3] ||= (e) => g.value = e,
|
|
4763
4785
|
class: "field__input",
|
|
4764
|
-
onKeydown: I(
|
|
4765
|
-
}, [
|
|
4786
|
+
onKeydown: F(I(R, ["prevent"]), ["enter"])
|
|
4787
|
+
}, [o("option", br, w(D(s)("dialogs.hyperlink.bookmarkPlaceholder")), 1), (v(!0), a(e, null, S(E.value, (e) => (v(), a("option", {
|
|
4766
4788
|
key: e.name,
|
|
4767
4789
|
value: e.name
|
|
4768
|
-
},
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4790
|
+
}, w(e.label || e.name), 9, xr))), 128))], 40, yr), [[A, g.value]])])),
|
|
4791
|
+
o("div", Sr, [
|
|
4792
|
+
o("label", Cr, w(D(s)("dialogs.hyperlink.displayTextLabel")), 1),
|
|
4793
|
+
P(o("input", {
|
|
4772
4794
|
"onUpdate:modelValue": r[4] ||= (e) => _.value = e,
|
|
4773
4795
|
class: "field__input",
|
|
4774
|
-
placeholder:
|
|
4775
|
-
}, null, 8,
|
|
4776
|
-
|
|
4796
|
+
placeholder: D(s)("dialogs.hyperlink.displayTextPlaceholder")
|
|
4797
|
+
}, null, 8, wr), [[j, _.value]]),
|
|
4798
|
+
o("div", Tr, w(D(s)("dialogs.hyperlink.displayTextHint")), 1)
|
|
4777
4799
|
]),
|
|
4778
|
-
|
|
4779
|
-
"onUpdate:modelValue": r[5] ||= (e) =>
|
|
4800
|
+
o("div", Er, [o("label", Dr, w(D(s)("dialogs.hyperlink.tooltipLabel")), 1), P(o("input", {
|
|
4801
|
+
"onUpdate:modelValue": r[5] ||= (e) => y.value = e,
|
|
4780
4802
|
class: "field__input",
|
|
4781
|
-
placeholder:
|
|
4782
|
-
}, null, 8,
|
|
4783
|
-
|
|
4784
|
-
b.value ? (
|
|
4803
|
+
placeholder: D(s)("dialogs.hyperlink.tooltipPlaceholder")
|
|
4804
|
+
}, null, 8, Or), [[j, y.value]])]),
|
|
4805
|
+
o("div", kr, [
|
|
4806
|
+
b.value ? (v(), a("button", {
|
|
4785
4807
|
key: 0,
|
|
4786
4808
|
class: "dialog__btn dialog__btn--danger",
|
|
4787
|
-
onMousedown:
|
|
4788
|
-
},
|
|
4789
|
-
r[8] ||=
|
|
4790
|
-
|
|
4809
|
+
onMousedown: I(te, ["prevent"])
|
|
4810
|
+
}, w(D(s)("dialogs.hyperlink.removeLink")), 33)) : i("", !0),
|
|
4811
|
+
r[8] ||= o("div", { style: { flex: "1" } }, null, -1),
|
|
4812
|
+
o("button", {
|
|
4791
4813
|
class: "dialog__btn",
|
|
4792
|
-
onClick:
|
|
4793
|
-
},
|
|
4794
|
-
|
|
4814
|
+
onClick: L
|
|
4815
|
+
}, w(D(s)("common.cancel")), 1),
|
|
4816
|
+
o("button", {
|
|
4795
4817
|
class: "dialog__btn dialog__btn--primary",
|
|
4796
|
-
onMousedown:
|
|
4797
|
-
disabled: !
|
|
4798
|
-
},
|
|
4818
|
+
onMousedown: I(R, ["prevent"]),
|
|
4819
|
+
disabled: !O.value
|
|
4820
|
+
}, w(b.value ? D(s)("common.update") : D(s)("common.insert")), 41, Ar)
|
|
4799
4821
|
])
|
|
4800
|
-
])], 32)], 32)) :
|
|
4822
|
+
])], 32)], 32)) : i("", !0);
|
|
4801
4823
|
}
|
|
4802
|
-
}), [["__scopeId", "data-v-3078565e"]]),
|
|
4824
|
+
}), [["__scopeId", "data-v-3078565e"]]), Mr = { class: "dialog__header" }, Nr = { class: "dialog__title" }, Pr = ["aria-label"], Fr = { class: "dialog__body" }, Ir = { class: "field" }, Lr = { class: "field__label" }, Rr = ["placeholder"], zr = { class: "field" }, Br = { class: "field__label" }, Vr = { value: "inline" }, Hr = { value: "wrapRight" }, Ur = { value: "wrapLeft" }, Wr = { value: "topAndBottom" }, Gr = { value: "behind" }, Kr = { value: "inFront" }, qr = { class: "field" }, Jr = { class: "field__label" }, Yr = { class: "field-row" }, Xr = { value: "solid" }, Zr = { value: "dashed" }, Qr = { value: "dotted" }, $r = { value: "double" }, ei = { class: "field" }, ti = { class: "field__label" }, ni = { class: "field-row" }, ri = ["value"], ii = ["value"], ai = { class: "field__checkbox" }, oi = { class: "dialog__actions" }, si = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
4803
4825
|
__name: "ImagePropertiesDialog",
|
|
4804
4826
|
props: {
|
|
4805
4827
|
isOpen: { type: Boolean },
|
|
@@ -4808,8 +4830,8 @@ var Yn = u({
|
|
|
4808
4830
|
},
|
|
4809
4831
|
emits: ["close"],
|
|
4810
4832
|
setup(e, { emit: t }) {
|
|
4811
|
-
let { t: n } = Z(), { Dialog:
|
|
4812
|
-
|
|
4833
|
+
let { t: n } = Z(), { Dialog: i } = Q(), a = e, c = t, l = x(""), u = x("inline"), d = x(0), f = x("solid"), p = x("#000000"), m = x(200), h = x(150), g = x(!0), _ = 1;
|
|
4834
|
+
M(() => a.isOpen, (e) => {
|
|
4813
4835
|
if (!(!e || !a.view || a.pmPos === null)) try {
|
|
4814
4836
|
let e = a.view.state.doc.nodeAt(a.pmPos);
|
|
4815
4837
|
if (e && e.type.name === "image") {
|
|
@@ -4820,7 +4842,7 @@ var Yn = u({
|
|
|
4820
4842
|
}
|
|
4821
4843
|
} catch {}
|
|
4822
4844
|
});
|
|
4823
|
-
function
|
|
4845
|
+
function y(e) {
|
|
4824
4846
|
if (!(e.target instanceof HTMLInputElement)) return;
|
|
4825
4847
|
let t = Number(e.target.value);
|
|
4826
4848
|
isNaN(t) || t < 1 || (m.value = t, g.value && _ > 0 && (h.value = Math.round(t / _)));
|
|
@@ -4830,8 +4852,8 @@ var Yn = u({
|
|
|
4830
4852
|
let t = Number(e.target.value);
|
|
4831
4853
|
isNaN(t) || t < 1 || (h.value = t, g.value && _ > 0 && (m.value = Math.round(t * _)));
|
|
4832
4854
|
}
|
|
4833
|
-
function
|
|
4834
|
-
|
|
4855
|
+
function S() {
|
|
4856
|
+
c("close");
|
|
4835
4857
|
}
|
|
4836
4858
|
function C() {
|
|
4837
4859
|
let e = a.view;
|
|
@@ -4874,44 +4896,44 @@ var Yn = u({
|
|
|
4874
4896
|
});
|
|
4875
4897
|
e.dispatch(o);
|
|
4876
4898
|
} catch {}
|
|
4877
|
-
|
|
4899
|
+
S();
|
|
4878
4900
|
}
|
|
4879
4901
|
}
|
|
4880
|
-
return (t, a) => (
|
|
4902
|
+
return (t, a) => (v(), r(D(i), {
|
|
4881
4903
|
open: e.isOpen,
|
|
4882
|
-
"aria-label":
|
|
4904
|
+
"aria-label": D(n)("dialogs.imageProperties.title"),
|
|
4883
4905
|
style: {
|
|
4884
4906
|
minWidth: "400px",
|
|
4885
4907
|
maxWidth: "90vw"
|
|
4886
4908
|
},
|
|
4887
|
-
onClose:
|
|
4909
|
+
onClose: S
|
|
4888
4910
|
}, {
|
|
4889
|
-
default:
|
|
4911
|
+
default: N(() => [o("div", Mr, [o("span", Nr, w(D(n)("dialogs.imageProperties.title")), 1), o("button", {
|
|
4890
4912
|
class: "dialog__close",
|
|
4891
|
-
"aria-label":
|
|
4892
|
-
onClick:
|
|
4893
|
-
}, "✕", 8,
|
|
4894
|
-
|
|
4913
|
+
"aria-label": D(n)("common.closeDialog"),
|
|
4914
|
+
onClick: S
|
|
4915
|
+
}, "✕", 8, Pr)]), o("div", Fr, [
|
|
4916
|
+
o("div", Ir, [o("label", Lr, w(D(n)("dialogs.imageProperties.altText")), 1), P(o("textarea", {
|
|
4895
4917
|
"onUpdate:modelValue": a[0] ||= (e) => l.value = e,
|
|
4896
4918
|
class: "field__textarea",
|
|
4897
|
-
placeholder:
|
|
4919
|
+
placeholder: D(n)("dialogs.imageProperties.altTextPlaceholder"),
|
|
4898
4920
|
rows: "2"
|
|
4899
|
-
}, null, 8,
|
|
4900
|
-
|
|
4921
|
+
}, null, 8, Rr), [[j, l.value]])]),
|
|
4922
|
+
o("div", zr, [o("label", Br, w(D(n)("dialogs.imageProperties.textWrapping")), 1), P(o("select", {
|
|
4901
4923
|
"onUpdate:modelValue": a[1] ||= (e) => u.value = e,
|
|
4902
4924
|
class: "field__select"
|
|
4903
4925
|
}, [
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
], 512), [[
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4926
|
+
o("option", Vr, w(D(n)("dialogs.imageProperties.wrapOptions.inline")), 1),
|
|
4927
|
+
o("option", Hr, w(D(n)("dialogs.imageProperties.wrapOptions.wrapRight")), 1),
|
|
4928
|
+
o("option", Ur, w(D(n)("dialogs.imageProperties.wrapOptions.wrapLeft")), 1),
|
|
4929
|
+
o("option", Wr, w(D(n)("dialogs.imageProperties.wrapOptions.topAndBottom")), 1),
|
|
4930
|
+
o("option", Gr, w(D(n)("dialogs.imageProperties.wrapOptions.behind")), 1),
|
|
4931
|
+
o("option", Kr, w(D(n)("dialogs.imageProperties.wrapOptions.inFront")), 1)
|
|
4932
|
+
], 512), [[A, u.value]])]),
|
|
4933
|
+
o("div", qr, [o("label", Jr, w(D(n)("dialogs.imageProperties.border")), 1), o("div", Yr, [
|
|
4934
|
+
o("label", null, [
|
|
4935
|
+
s(w(D(n)("dialogs.imageProperties.width")) + ": ", 1),
|
|
4936
|
+
P(o("input", {
|
|
4915
4937
|
"onUpdate:modelValue": a[2] ||= (e) => d.value = e,
|
|
4916
4938
|
type: "number",
|
|
4917
4939
|
min: "0",
|
|
@@ -4919,165 +4941,165 @@ var Yn = u({
|
|
|
4919
4941
|
step: "0.5",
|
|
4920
4942
|
class: "field__input--small"
|
|
4921
4943
|
}, null, 512), [[
|
|
4922
|
-
|
|
4944
|
+
j,
|
|
4923
4945
|
d.value,
|
|
4924
4946
|
void 0,
|
|
4925
4947
|
{ number: !0 }
|
|
4926
4948
|
]]),
|
|
4927
|
-
|
|
4949
|
+
s(w(D(n)("common.px")), 1)
|
|
4928
4950
|
]),
|
|
4929
|
-
|
|
4951
|
+
o("label", null, [s(w(D(n)("dialogs.imageProperties.style")) + ": ", 1), P(o("select", {
|
|
4930
4952
|
"onUpdate:modelValue": a[3] ||= (e) => f.value = e,
|
|
4931
4953
|
class: "field__select--small"
|
|
4932
4954
|
}, [
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
], 512), [[
|
|
4938
|
-
|
|
4955
|
+
o("option", Xr, w(D(n)("dialogs.imageProperties.borderStyles.solid")), 1),
|
|
4956
|
+
o("option", Zr, w(D(n)("dialogs.imageProperties.borderStyles.dashed")), 1),
|
|
4957
|
+
o("option", Qr, w(D(n)("dialogs.imageProperties.borderStyles.dotted")), 1),
|
|
4958
|
+
o("option", $r, w(D(n)("dialogs.imageProperties.borderStyles.double")), 1)
|
|
4959
|
+
], 512), [[A, f.value]])]),
|
|
4960
|
+
o("label", null, [s(w(D(n)("dialogs.imageProperties.color")) + ": ", 1), P(o("input", {
|
|
4939
4961
|
"onUpdate:modelValue": a[4] ||= (e) => p.value = e,
|
|
4940
4962
|
type: "color",
|
|
4941
4963
|
class: "field__color"
|
|
4942
|
-
}, null, 512), [[
|
|
4964
|
+
}, null, 512), [[j, p.value]])])
|
|
4943
4965
|
])]),
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4966
|
+
o("div", ei, [
|
|
4967
|
+
o("label", ti, w(D(n)("dialogs.imageProperties.dimensions")), 1),
|
|
4968
|
+
o("div", ni, [o("label", null, [
|
|
4969
|
+
s(w(D(n)("dialogs.imageProperties.widthLabel")) + " ", 1),
|
|
4970
|
+
o("input", {
|
|
4949
4971
|
value: m.value,
|
|
4950
4972
|
type: "number",
|
|
4951
4973
|
min: "1",
|
|
4952
4974
|
max: "2000",
|
|
4953
4975
|
class: "field__input--small",
|
|
4954
|
-
onInput:
|
|
4955
|
-
}, null, 40,
|
|
4956
|
-
|
|
4957
|
-
]),
|
|
4958
|
-
|
|
4959
|
-
|
|
4976
|
+
onInput: y
|
|
4977
|
+
}, null, 40, ri),
|
|
4978
|
+
s(w(D(n)("common.px")), 1)
|
|
4979
|
+
]), o("label", null, [
|
|
4980
|
+
s(w(D(n)("dialogs.imageProperties.heightLabel")) + " ", 1),
|
|
4981
|
+
o("input", {
|
|
4960
4982
|
value: h.value,
|
|
4961
4983
|
type: "number",
|
|
4962
4984
|
min: "1",
|
|
4963
4985
|
max: "2000",
|
|
4964
4986
|
class: "field__input--small",
|
|
4965
4987
|
onInput: b
|
|
4966
|
-
}, null, 40,
|
|
4967
|
-
|
|
4988
|
+
}, null, 40, ii),
|
|
4989
|
+
s(w(D(n)("common.px")), 1)
|
|
4968
4990
|
])]),
|
|
4969
|
-
|
|
4991
|
+
o("label", ai, [P(o("input", {
|
|
4970
4992
|
"onUpdate:modelValue": a[5] ||= (e) => g.value = e,
|
|
4971
4993
|
type: "checkbox"
|
|
4972
|
-
}, null, 512), [[
|
|
4994
|
+
}, null, 512), [[O, g.value]]), s(" " + w(D(n)("dialogs.imageProperties.lockAspectRatio")), 1)])
|
|
4973
4995
|
]),
|
|
4974
|
-
|
|
4996
|
+
o("div", oi, [o("button", {
|
|
4975
4997
|
class: "dialog__btn",
|
|
4976
|
-
onClick:
|
|
4977
|
-
},
|
|
4998
|
+
onClick: S
|
|
4999
|
+
}, w(D(n)("common.cancel")), 1), o("button", {
|
|
4978
5000
|
class: "dialog__btn dialog__btn--primary",
|
|
4979
|
-
onMousedown:
|
|
4980
|
-
},
|
|
5001
|
+
onMousedown: I(C, ["prevent"])
|
|
5002
|
+
}, w(D(n)("common.apply")), 33)])
|
|
4981
5003
|
])]),
|
|
4982
5004
|
_: 1
|
|
4983
5005
|
}, 8, ["open", "aria-label"]));
|
|
4984
5006
|
}
|
|
4985
|
-
}), [["__scopeId", "data-v-4879cd1c"]]),
|
|
5007
|
+
}), [["__scopeId", "data-v-4879cd1c"]]), ci = { class: "dialog__header" }, li = { class: "dialog__title" }, ui = ["title"], di = { class: "dialog__body" }, fi = ["placeholder"], pi = {
|
|
4986
5008
|
key: 0,
|
|
4987
5009
|
class: "symbol-tabs"
|
|
4988
|
-
},
|
|
5010
|
+
}, mi = ["onMousedown"], hi = { class: "symbol-grid" }, gi = [
|
|
4989
5011
|
"title",
|
|
4990
5012
|
"onClick",
|
|
4991
5013
|
"onDblclick"
|
|
4992
|
-
],
|
|
5014
|
+
], _i = {
|
|
4993
5015
|
key: 0,
|
|
4994
5016
|
class: "symbol-empty"
|
|
4995
|
-
},
|
|
5017
|
+
}, vi = {
|
|
4996
5018
|
key: 1,
|
|
4997
5019
|
class: "symbol-preview"
|
|
4998
|
-
},
|
|
5020
|
+
}, yi = { class: "symbol-preview__char" }, bi = { class: "symbol-preview__info" }, xi = {
|
|
4999
5021
|
key: 2,
|
|
5000
5022
|
class: "symbol-recent"
|
|
5001
|
-
},
|
|
5023
|
+
}, Si = { class: "symbol-recent__label" }, Ci = ["onDblclick", "onClick"], wi = { class: "dialog__actions" }, Ti = ["disabled"], Ei = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
5002
5024
|
__name: "InsertSymbolDialog",
|
|
5003
5025
|
props: { isOpen: { type: Boolean } },
|
|
5004
5026
|
emits: ["close", "insert"],
|
|
5005
|
-
setup(
|
|
5006
|
-
let { t:
|
|
5007
|
-
if (d.value) return
|
|
5027
|
+
setup(t, { emit: r }) {
|
|
5028
|
+
let { t: s } = Z(), c = t, l = r, u = x(null), d = x(""), f = x("Common"), h = x(""), g = x([]), _ = ae, y = n(() => {
|
|
5029
|
+
if (d.value) return z(d.value);
|
|
5008
5030
|
let e = _.find((e) => e.name === f.value);
|
|
5009
5031
|
return e ? e.symbols.map((t) => Object.assign({}, t, { category: e.name })) : [];
|
|
5010
5032
|
});
|
|
5011
|
-
|
|
5012
|
-
e && (await
|
|
5033
|
+
M(() => c.isOpen, async (e) => {
|
|
5034
|
+
e && (await p(), u.value?.focus());
|
|
5013
5035
|
});
|
|
5014
5036
|
function b() {
|
|
5015
5037
|
l("close");
|
|
5016
5038
|
}
|
|
5017
|
-
function
|
|
5039
|
+
function C(e) {
|
|
5018
5040
|
e && (g.value = [e, ...g.value.filter((t) => t !== e)].slice(0, 10), l("insert", e));
|
|
5019
5041
|
}
|
|
5020
|
-
return (n, r) =>
|
|
5042
|
+
return (n, r) => t.isOpen ? (v(), a("div", {
|
|
5021
5043
|
key: 0,
|
|
5022
5044
|
class: "dialog-overlay",
|
|
5023
|
-
onMousedown:
|
|
5024
|
-
}, [
|
|
5045
|
+
onMousedown: I(b, ["self"])
|
|
5046
|
+
}, [o("div", {
|
|
5025
5047
|
class: "dialog symbol-dialog",
|
|
5026
|
-
onMousedown: r[2] ||=
|
|
5027
|
-
onKeydown: r[3] ||=
|
|
5028
|
-
}, [
|
|
5048
|
+
onMousedown: r[2] ||= I(() => {}, ["stop"]),
|
|
5049
|
+
onKeydown: r[3] ||= I(() => {}, ["stop"])
|
|
5050
|
+
}, [o("div", ci, [o("span", li, w(D(s)("dialogs.insertSymbol.title")), 1), o("button", {
|
|
5029
5051
|
class: "dialog__close",
|
|
5030
|
-
title:
|
|
5052
|
+
title: D(s)("common.closeDialog"),
|
|
5031
5053
|
onClick: b
|
|
5032
|
-
}, "✕", 8,
|
|
5033
|
-
|
|
5054
|
+
}, "✕", 8, ui)]), o("div", di, [
|
|
5055
|
+
P(o("input", {
|
|
5034
5056
|
ref_key: "searchRef",
|
|
5035
5057
|
ref: u,
|
|
5036
5058
|
"onUpdate:modelValue": r[0] ||= (e) => d.value = e,
|
|
5037
5059
|
class: "symbol-search",
|
|
5038
|
-
placeholder:
|
|
5039
|
-
onKeydown:
|
|
5040
|
-
}, null, 40,
|
|
5041
|
-
d.value ?
|
|
5060
|
+
placeholder: D(s)("dialogs.insertSymbol.searchPlaceholder"),
|
|
5061
|
+
onKeydown: F(b, ["escape"])
|
|
5062
|
+
}, null, 40, fi), [[j, d.value]]),
|
|
5063
|
+
d.value ? i("", !0) : (v(), a("div", pi, [(v(!0), a(e, null, S(D(_), (e) => (v(), a("button", {
|
|
5042
5064
|
key: e.name,
|
|
5043
|
-
class:
|
|
5044
|
-
onMousedown:
|
|
5045
|
-
},
|
|
5046
|
-
|
|
5065
|
+
class: m(["symbol-tab", { active: f.value === e.name }]),
|
|
5066
|
+
onMousedown: I((t) => f.value = e.name, ["prevent"])
|
|
5067
|
+
}, w(D(s)(e.nameKey)), 43, mi))), 128))])),
|
|
5068
|
+
o("div", hi, [(v(!0), a(e, null, S(y.value, (e) => (v(), a("button", {
|
|
5047
5069
|
key: e.char,
|
|
5048
|
-
class:
|
|
5070
|
+
class: m(["symbol-cell", { selected: h.value === e.char }]),
|
|
5049
5071
|
title: e.name,
|
|
5050
|
-
onClick: (t) =>
|
|
5051
|
-
onDblclick: (t) =>
|
|
5052
|
-
},
|
|
5053
|
-
|
|
5054
|
-
g.value.length > 0 && !d.value ? (
|
|
5072
|
+
onClick: (t) => h.value = e.char,
|
|
5073
|
+
onDblclick: (t) => C(e.char)
|
|
5074
|
+
}, w(e.char), 43, gi))), 128)), y.value.length === 0 ? (v(), a("div", _i, w(d.value ? D(s)("dialogs.insertSymbol.noResults", { query: d.value }) : D(s)("dialogs.insertSymbol.noResultsEmpty")), 1)) : i("", !0)]),
|
|
5075
|
+
h.value ? (v(), a("div", vi, [o("span", yi, w(h.value), 1), o("span", bi, "U+" + w(h.value.codePointAt(0)?.toString(16).toUpperCase().padStart(4, "0")), 1)])) : i("", !0),
|
|
5076
|
+
g.value.length > 0 && !d.value ? (v(), a("div", xi, [o("div", Si, w(D(s)("dialogs.insertSymbol.recent")), 1), (v(!0), a(e, null, S(g.value, (e) => (v(), a("button", {
|
|
5055
5077
|
key: e,
|
|
5056
5078
|
class: "symbol-cell symbol-cell--small",
|
|
5057
|
-
onDblclick: (t) =>
|
|
5058
|
-
onClick: (t) =>
|
|
5059
|
-
},
|
|
5060
|
-
|
|
5079
|
+
onDblclick: (t) => C(e),
|
|
5080
|
+
onClick: (t) => h.value = e
|
|
5081
|
+
}, w(e), 41, Ci))), 128))])) : i("", !0),
|
|
5082
|
+
o("div", wi, [o("button", {
|
|
5061
5083
|
class: "dialog__btn",
|
|
5062
5084
|
onClick: b
|
|
5063
|
-
},
|
|
5085
|
+
}, w(D(s)("common.cancel")), 1), o("button", {
|
|
5064
5086
|
class: "dialog__btn dialog__btn--primary",
|
|
5065
|
-
onMousedown: r[1] ||=
|
|
5066
|
-
disabled: !
|
|
5067
|
-
},
|
|
5068
|
-
])], 32)], 32)) :
|
|
5087
|
+
onMousedown: r[1] ||= I((e) => C(h.value), ["prevent"]),
|
|
5088
|
+
disabled: !h.value
|
|
5089
|
+
}, w(D(s)("common.insert")), 41, Ti)])
|
|
5090
|
+
])], 32)], 32)) : i("", !0);
|
|
5069
5091
|
}
|
|
5070
|
-
}), [["__scopeId", "data-v-dc4046d2"]]),
|
|
5092
|
+
}), [["__scopeId", "data-v-dc4046d2"]]), Di = { class: "ps-header" }, Oi = { class: "ps-body" }, ki = { class: "ps-section-label" }, Ai = { class: "ps-row" }, ji = { class: "ps-label" }, Mi = ["value"], Ni = ["value"], Pi = {
|
|
5071
5093
|
key: 0,
|
|
5072
5094
|
value: -1
|
|
5073
|
-
},
|
|
5095
|
+
}, Fi = { class: "ps-row" }, Ii = { class: "ps-label" }, Li = ["value"], Ri = { value: "portrait" }, zi = { value: "landscape" }, Bi = { class: "ps-section-label ps-section-label--spaced" }, Vi = { class: "ps-row" }, Hi = { class: "ps-label" }, Ui = { class: "ps-row" }, Wi = { class: "ps-label" }, Gi = { class: "ps-row" }, Ki = { class: "ps-label" }, qi = { class: "ps-row" }, Ji = { class: "ps-label" }, Yi = { class: "ps-footer" }, Xi = 12240, Zi = 15840, Qi = 1440, $i = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
5074
5096
|
__name: "PageSetupDialog",
|
|
5075
5097
|
props: {
|
|
5076
5098
|
isOpen: { type: Boolean },
|
|
5077
5099
|
sectionProperties: {}
|
|
5078
5100
|
},
|
|
5079
5101
|
emits: ["close", "apply"],
|
|
5080
|
-
setup(
|
|
5102
|
+
setup(t, { emit: s }) {
|
|
5081
5103
|
let { t: c } = Z(), { Dialog: l } = Q(), u = [
|
|
5082
5104
|
{
|
|
5083
5105
|
labelKey: "dialogs.pageSetup.pageSizes.letter",
|
|
@@ -5114,23 +5136,23 @@ var Yn = u({
|
|
|
5114
5136
|
width: 10440,
|
|
5115
5137
|
height: 15120
|
|
5116
5138
|
}
|
|
5117
|
-
], d =
|
|
5118
|
-
function
|
|
5139
|
+
], d = t, f = s, p = x(Xi), m = x(Zi), h = x("portrait"), g = x(1), _ = x(1), y = x(1), b = x(1);
|
|
5140
|
+
function C(e) {
|
|
5119
5141
|
return Math.round(e / B * 100) / 100;
|
|
5120
5142
|
}
|
|
5121
|
-
function
|
|
5143
|
+
function T(e) {
|
|
5122
5144
|
return Math.round((Number(e) || 0) * B);
|
|
5123
5145
|
}
|
|
5124
|
-
let E =
|
|
5146
|
+
let E = n(() => {
|
|
5125
5147
|
let e = Math.min(p.value, m.value), t = Math.max(p.value, m.value);
|
|
5126
5148
|
return u.findIndex((n) => Math.abs(n.width - e) < 20 && Math.abs(n.height - t) < 20);
|
|
5127
5149
|
});
|
|
5128
|
-
|
|
5150
|
+
M(() => d.isOpen, (e) => {
|
|
5129
5151
|
if (!e) return;
|
|
5130
|
-
let t = d.sectionProperties, n = t?.pageWidth ||
|
|
5131
|
-
p.value = n, m.value = r, h.value = t?.orientation || (n > r ? "landscape" : "portrait"), g.value =
|
|
5152
|
+
let t = d.sectionProperties, n = t?.pageWidth || Xi, r = t?.pageHeight || Zi;
|
|
5153
|
+
p.value = n, m.value = r, h.value = t?.orientation || (n > r ? "landscape" : "portrait"), g.value = C(t?.marginTop ?? Qi), _.value = C(t?.marginBottom ?? Qi), y.value = C(t?.marginLeft ?? Qi), b.value = C(t?.marginRight ?? Qi);
|
|
5132
5154
|
}, { immediate: !0 });
|
|
5133
|
-
function
|
|
5155
|
+
function O(e) {
|
|
5134
5156
|
if (!(e.target instanceof HTMLSelectElement)) return;
|
|
5135
5157
|
let t = Number(e.target.value), n = u.at(t);
|
|
5136
5158
|
t < 0 || !n || (h.value === "landscape" ? (p.value = n.height, m.value = n.width) : (p.value = n.width, m.value = n.height));
|
|
@@ -5146,20 +5168,20 @@ var Yn = u({
|
|
|
5146
5168
|
function A() {
|
|
5147
5169
|
f("close");
|
|
5148
5170
|
}
|
|
5149
|
-
function
|
|
5171
|
+
function I() {
|
|
5150
5172
|
f("apply", {
|
|
5151
5173
|
pageWidth: p.value,
|
|
5152
5174
|
pageHeight: m.value,
|
|
5153
5175
|
orientation: h.value,
|
|
5154
|
-
marginTop:
|
|
5155
|
-
marginBottom:
|
|
5156
|
-
marginLeft:
|
|
5157
|
-
marginRight:
|
|
5176
|
+
marginTop: T(g.value),
|
|
5177
|
+
marginBottom: T(_.value),
|
|
5178
|
+
marginLeft: T(y.value),
|
|
5179
|
+
marginRight: T(b.value)
|
|
5158
5180
|
}), A();
|
|
5159
5181
|
}
|
|
5160
|
-
return (n,
|
|
5161
|
-
open:
|
|
5162
|
-
"aria-label":
|
|
5182
|
+
return (n, s) => (v(), r(D(l), {
|
|
5183
|
+
open: t.isOpen,
|
|
5184
|
+
"aria-label": D(c)("dialogs.pageSetup.title"),
|
|
5163
5185
|
style: {
|
|
5164
5186
|
minWidth: "400px",
|
|
5165
5187
|
maxWidth: "480px",
|
|
@@ -5167,134 +5189,134 @@ var Yn = u({
|
|
|
5167
5189
|
margin: "20px"
|
|
5168
5190
|
},
|
|
5169
5191
|
onClose: A,
|
|
5170
|
-
onKeydown: I
|
|
5192
|
+
onKeydown: F(I, ["enter"])
|
|
5171
5193
|
}, {
|
|
5172
|
-
default:
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5194
|
+
default: N(() => [
|
|
5195
|
+
o("div", Di, w(D(c)("dialogs.pageSetup.title")), 1),
|
|
5196
|
+
o("div", Oi, [
|
|
5197
|
+
o("div", ki, w(D(c)("dialogs.pageSetup.pageSize")), 1),
|
|
5198
|
+
o("div", Ai, [o("label", ji, w(D(c)("dialogs.pageSetup.sizeLabel")), 1), o("select", {
|
|
5177
5199
|
class: "ps-input",
|
|
5178
5200
|
value: E.value,
|
|
5179
|
-
onChange:
|
|
5180
|
-
}, [(
|
|
5201
|
+
onChange: O
|
|
5202
|
+
}, [(v(), a(e, null, S(u, (e, t) => o("option", {
|
|
5181
5203
|
key: e.labelKey,
|
|
5182
5204
|
value: t
|
|
5183
|
-
},
|
|
5184
|
-
|
|
5205
|
+
}, w(D(c)(e.labelKey)), 9, Ni)), 64)), E.value < 0 ? (v(), a("option", Pi, w(D(c)("dialogs.pageSetup.custom")), 1)) : i("", !0)], 40, Mi)]),
|
|
5206
|
+
o("div", Fi, [o("label", Ii, w(D(c)("dialogs.pageSetup.orientation")), 1), o("select", {
|
|
5185
5207
|
class: "ps-input",
|
|
5186
5208
|
value: h.value,
|
|
5187
5209
|
onChange: k
|
|
5188
|
-
}, [
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5210
|
+
}, [o("option", Ri, w(D(c)("dialogs.pageSetup.portrait")), 1), o("option", zi, w(D(c)("dialogs.pageSetup.landscape")), 1)], 40, Li)]),
|
|
5211
|
+
o("div", Bi, w(D(c)("dialogs.pageSetup.margins")), 1),
|
|
5212
|
+
o("div", Vi, [
|
|
5213
|
+
o("label", Hi, w(D(c)("dialogs.pageSetup.top")), 1),
|
|
5214
|
+
P(o("input", {
|
|
5193
5215
|
class: "ps-input",
|
|
5194
5216
|
type: "number",
|
|
5195
5217
|
min: "0",
|
|
5196
5218
|
max: "10",
|
|
5197
5219
|
step: "0.1",
|
|
5198
|
-
"onUpdate:modelValue":
|
|
5220
|
+
"onUpdate:modelValue": s[0] ||= (e) => g.value = e
|
|
5199
5221
|
}, null, 512), [[
|
|
5200
|
-
|
|
5222
|
+
j,
|
|
5201
5223
|
g.value,
|
|
5202
5224
|
void 0,
|
|
5203
5225
|
{ number: !0 }
|
|
5204
5226
|
]]),
|
|
5205
|
-
|
|
5227
|
+
s[4] ||= o("span", { class: "ps-unit" }, "in", -1)
|
|
5206
5228
|
]),
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5229
|
+
o("div", Ui, [
|
|
5230
|
+
o("label", Wi, w(D(c)("dialogs.pageSetup.bottom")), 1),
|
|
5231
|
+
P(o("input", {
|
|
5210
5232
|
class: "ps-input",
|
|
5211
5233
|
type: "number",
|
|
5212
5234
|
min: "0",
|
|
5213
5235
|
max: "10",
|
|
5214
5236
|
step: "0.1",
|
|
5215
|
-
"onUpdate:modelValue":
|
|
5237
|
+
"onUpdate:modelValue": s[1] ||= (e) => _.value = e
|
|
5216
5238
|
}, null, 512), [[
|
|
5217
|
-
|
|
5239
|
+
j,
|
|
5218
5240
|
_.value,
|
|
5219
5241
|
void 0,
|
|
5220
5242
|
{ number: !0 }
|
|
5221
5243
|
]]),
|
|
5222
|
-
|
|
5244
|
+
s[5] ||= o("span", { class: "ps-unit" }, "in", -1)
|
|
5223
5245
|
]),
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5246
|
+
o("div", Gi, [
|
|
5247
|
+
o("label", Ki, w(D(c)("dialogs.pageSetup.left")), 1),
|
|
5248
|
+
P(o("input", {
|
|
5227
5249
|
class: "ps-input",
|
|
5228
5250
|
type: "number",
|
|
5229
5251
|
min: "0",
|
|
5230
5252
|
max: "10",
|
|
5231
5253
|
step: "0.1",
|
|
5232
|
-
"onUpdate:modelValue":
|
|
5254
|
+
"onUpdate:modelValue": s[2] ||= (e) => y.value = e
|
|
5233
5255
|
}, null, 512), [[
|
|
5234
|
-
|
|
5235
|
-
|
|
5256
|
+
j,
|
|
5257
|
+
y.value,
|
|
5236
5258
|
void 0,
|
|
5237
5259
|
{ number: !0 }
|
|
5238
5260
|
]]),
|
|
5239
|
-
|
|
5261
|
+
s[6] ||= o("span", { class: "ps-unit" }, "in", -1)
|
|
5240
5262
|
]),
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5263
|
+
o("div", qi, [
|
|
5264
|
+
o("label", Ji, w(D(c)("dialogs.pageSetup.right")), 1),
|
|
5265
|
+
P(o("input", {
|
|
5244
5266
|
class: "ps-input",
|
|
5245
5267
|
type: "number",
|
|
5246
5268
|
min: "0",
|
|
5247
5269
|
max: "10",
|
|
5248
5270
|
step: "0.1",
|
|
5249
|
-
"onUpdate:modelValue":
|
|
5271
|
+
"onUpdate:modelValue": s[3] ||= (e) => b.value = e
|
|
5250
5272
|
}, null, 512), [[
|
|
5251
|
-
|
|
5273
|
+
j,
|
|
5252
5274
|
b.value,
|
|
5253
5275
|
void 0,
|
|
5254
5276
|
{ number: !0 }
|
|
5255
5277
|
]]),
|
|
5256
|
-
|
|
5278
|
+
s[7] ||= o("span", { class: "ps-unit" }, "in", -1)
|
|
5257
5279
|
])
|
|
5258
5280
|
]),
|
|
5259
|
-
|
|
5281
|
+
o("div", Yi, [o("button", {
|
|
5260
5282
|
type: "button",
|
|
5261
5283
|
class: "ps-btn",
|
|
5262
5284
|
onClick: A
|
|
5263
|
-
},
|
|
5285
|
+
}, w(D(c)("common.cancel")), 1), o("button", {
|
|
5264
5286
|
type: "button",
|
|
5265
5287
|
class: "ps-btn ps-btn--primary",
|
|
5266
|
-
onClick:
|
|
5267
|
-
},
|
|
5288
|
+
onClick: I
|
|
5289
|
+
}, w(D(c)("common.apply")), 1)])
|
|
5268
5290
|
]),
|
|
5269
5291
|
_: 1
|
|
5270
5292
|
}, 8, ["open", "aria-label"]));
|
|
5271
5293
|
}
|
|
5272
|
-
}), [["__scopeId", "data-v-1e078cda"]]),
|
|
5294
|
+
}), [["__scopeId", "data-v-1e078cda"]]), ea = { class: "tpd-dialog__header" }, ta = { class: "tpd-dialog__body" }, na = { class: "tpd-row" }, ra = { class: "tpd-label" }, ia = { value: "auto" }, aa = { value: "dxa" }, oa = { value: "pct" }, sa = {
|
|
5273
5295
|
key: 0,
|
|
5274
5296
|
class: "tpd-row"
|
|
5275
|
-
},
|
|
5297
|
+
}, ca = { class: "tpd-label" }, la = ["step"], ua = { class: "tpd-unit" }, da = { class: "tpd-row" }, fa = { class: "tpd-label" }, pa = ["value"], ma = { class: "tpd-dialog__footer" }, ha = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
5276
5298
|
__name: "TablePropertiesDialog",
|
|
5277
5299
|
props: {
|
|
5278
5300
|
isOpen: { type: Boolean },
|
|
5279
5301
|
currentProps: {}
|
|
5280
5302
|
},
|
|
5281
5303
|
emits: ["close", "apply"],
|
|
5282
|
-
setup(
|
|
5283
|
-
let { t:
|
|
5304
|
+
setup(t, { emit: n }) {
|
|
5305
|
+
let { t: s } = Z(), { Dialog: c } = Q(), l = {
|
|
5284
5306
|
center: "dialogs.tableProperties.alignOptions.center",
|
|
5285
5307
|
end: "dialogs.tableProperties.alignOptions.end",
|
|
5286
5308
|
left: "dialogs.tableProperties.alignOptions.left",
|
|
5287
5309
|
right: "dialogs.tableProperties.alignOptions.right",
|
|
5288
5310
|
start: "dialogs.tableProperties.alignOptions.start"
|
|
5289
|
-
}, u =
|
|
5311
|
+
}, u = t, d = n, f = x(0), p = (e) => {
|
|
5290
5312
|
switch (e) {
|
|
5291
5313
|
case "dxa":
|
|
5292
5314
|
case "pct": return e;
|
|
5293
5315
|
default: return "auto";
|
|
5294
5316
|
}
|
|
5295
|
-
}, m =
|
|
5296
|
-
|
|
5297
|
-
e && (f.value = u.currentProps?.width ?? 0, m.value = p(u.currentProps?.widthType ?? "auto"), h.value =
|
|
5317
|
+
}, m = x(p(u.currentProps?.widthType ?? "auto")), h = x(H(u.currentProps?.justification));
|
|
5318
|
+
M(() => u.isOpen, (e) => {
|
|
5319
|
+
e && (f.value = u.currentProps?.width ?? 0, m.value = p(u.currentProps?.widthType ?? "auto"), h.value = H(u.currentProps?.justification));
|
|
5298
5320
|
});
|
|
5299
5321
|
function g() {
|
|
5300
5322
|
let e = m.value === "auto" ? {
|
|
@@ -5308,73 +5330,73 @@ var Yn = u({
|
|
|
5308
5330
|
};
|
|
5309
5331
|
d("apply", e), d("close");
|
|
5310
5332
|
}
|
|
5311
|
-
return (n, u) => (
|
|
5312
|
-
open:
|
|
5313
|
-
"aria-label":
|
|
5333
|
+
return (n, u) => (v(), r(D(c), {
|
|
5334
|
+
open: t.isOpen,
|
|
5335
|
+
"aria-label": D(s)("dialogs.tableProperties.title"),
|
|
5314
5336
|
style: {
|
|
5315
5337
|
minWidth: "360px",
|
|
5316
5338
|
maxWidth: "440px",
|
|
5317
5339
|
width: "100%"
|
|
5318
5340
|
},
|
|
5319
5341
|
onClose: u[4] ||= (e) => n.$emit("close"),
|
|
5320
|
-
onKeydown:
|
|
5342
|
+
onKeydown: F(g, ["enter"])
|
|
5321
5343
|
}, {
|
|
5322
|
-
default:
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5344
|
+
default: N(() => [
|
|
5345
|
+
o("div", ea, w(D(s)("dialogs.tableProperties.title")), 1),
|
|
5346
|
+
o("div", ta, [
|
|
5347
|
+
o("div", na, [o("label", ra, w(D(s)("dialogs.tableProperties.widthType")), 1), P(o("select", {
|
|
5326
5348
|
"onUpdate:modelValue": u[0] ||= (e) => m.value = e,
|
|
5327
5349
|
class: "tpd-select"
|
|
5328
5350
|
}, [
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
], 512), [[
|
|
5333
|
-
m.value === "auto" ?
|
|
5334
|
-
|
|
5335
|
-
|
|
5351
|
+
o("option", ia, w(D(s)("dialogs.tableProperties.widthTypes.auto")), 1),
|
|
5352
|
+
o("option", aa, w(D(s)("dialogs.tableProperties.widthTypes.fixed")), 1),
|
|
5353
|
+
o("option", oa, w(D(s)("dialogs.tableProperties.widthTypes.percentage")), 1)
|
|
5354
|
+
], 512), [[A, m.value]])]),
|
|
5355
|
+
m.value === "auto" ? i("", !0) : (v(), a("div", sa, [
|
|
5356
|
+
o("label", ca, w(D(s)("dialogs.tableProperties.widthLabel")), 1),
|
|
5357
|
+
P(o("input", {
|
|
5336
5358
|
"onUpdate:modelValue": u[1] ||= (e) => f.value = e,
|
|
5337
5359
|
type: "number",
|
|
5338
5360
|
class: "tpd-input",
|
|
5339
5361
|
min: 0,
|
|
5340
5362
|
step: m.value === "pct" ? 5 : 100
|
|
5341
|
-
}, null, 8,
|
|
5342
|
-
|
|
5363
|
+
}, null, 8, la), [[
|
|
5364
|
+
j,
|
|
5343
5365
|
f.value,
|
|
5344
5366
|
void 0,
|
|
5345
5367
|
{ number: !0 }
|
|
5346
5368
|
]]),
|
|
5347
|
-
|
|
5369
|
+
o("span", ua, w(m.value === "pct" ? D(s)("dialogs.tableProperties.units.fiftiethsPercent") : D(s)("dialogs.tableProperties.units.twips")), 1)
|
|
5348
5370
|
])),
|
|
5349
|
-
|
|
5371
|
+
o("div", da, [o("label", fa, w(D(s)("dialogs.tableProperties.alignmentLabel")), 1), P(o("select", {
|
|
5350
5372
|
"onUpdate:modelValue": u[2] ||= (e) => h.value = e,
|
|
5351
5373
|
class: "tpd-select"
|
|
5352
|
-
}, [(
|
|
5374
|
+
}, [(v(!0), a(e, null, S(D(V), (e) => (v(), a("option", {
|
|
5353
5375
|
key: e,
|
|
5354
5376
|
value: e
|
|
5355
|
-
},
|
|
5377
|
+
}, w(D(s)(l[e])), 9, pa))), 128))], 512), [[A, h.value]])])
|
|
5356
5378
|
]),
|
|
5357
|
-
|
|
5379
|
+
o("div", ma, [o("button", {
|
|
5358
5380
|
class: "tpd-btn",
|
|
5359
5381
|
onClick: u[3] ||= (e) => n.$emit("close")
|
|
5360
|
-
},
|
|
5382
|
+
}, w(D(s)("common.cancel")), 1), o("button", {
|
|
5361
5383
|
class: "tpd-btn tpd-btn--primary",
|
|
5362
5384
|
onClick: g
|
|
5363
|
-
},
|
|
5385
|
+
}, w(D(s)("common.apply")), 1)])
|
|
5364
5386
|
]),
|
|
5365
5387
|
_: 1
|
|
5366
5388
|
}, 8, ["open", "aria-label"]));
|
|
5367
5389
|
}
|
|
5368
|
-
}), [["__scopeId", "data-v-dace7dcf"]]),
|
|
5390
|
+
}), [["__scopeId", "data-v-dace7dcf"]]), ga = { class: "dialog__body" }, _a = { class: "field" }, va = {
|
|
5369
5391
|
key: 0,
|
|
5370
5392
|
class: "grid"
|
|
5371
|
-
},
|
|
5393
|
+
}, ya = { class: "field field--wide" }, ba = { class: "field" }, xa = { class: "field" }, Sa = { class: "field" }, Ca = { class: "check" }, wa = {
|
|
5372
5394
|
key: 1,
|
|
5373
5395
|
class: "grid"
|
|
5374
|
-
},
|
|
5396
|
+
}, Ta = { class: "field field--wide" }, Ea = { class: "field field--wide" }, Da = ["aria-invalid"], Oa = {
|
|
5375
5397
|
key: 0,
|
|
5376
5398
|
class: "field__error"
|
|
5377
|
-
},
|
|
5399
|
+
}, ka = { class: "field" }, Aa = { class: "check" }, ja = { class: "check field--wide" }, Ma = { class: "dialog__footer" }, Na = ["disabled"], Pa = "#C0C0C0", Fa = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
5378
5400
|
__name: "WatermarkDialog",
|
|
5379
5401
|
props: {
|
|
5380
5402
|
isOpen: { type: Boolean },
|
|
@@ -5382,22 +5404,22 @@ var Yn = u({
|
|
|
5382
5404
|
},
|
|
5383
5405
|
emits: ["close", "apply"],
|
|
5384
5406
|
setup(e, { emit: t }) {
|
|
5385
|
-
let { Dialog:
|
|
5386
|
-
|
|
5407
|
+
let { Dialog: s } = Q(), c = e, l = t, u = x("text"), d = x("CONFIDENTIAL"), f = x("Calibri"), p = x(Pa), m = x(!0), h = x(50), g = x(""), _ = x(""), y = x(!1), b = x(100), S = x(!0), C = n(() => u.value === "picture" && y.value && _.value.trim().length > 0 ? R(_.value.trim()) : ""), T = n(() => u.value === "none" || u.value === "text" && d.value.trim().length > 0 || u.value === "picture" && g.value.trim().length > 0 && C.value.length === 0);
|
|
5408
|
+
M([() => c.isOpen, () => c.currentWatermark], ([e, t]) => {
|
|
5387
5409
|
if (e) {
|
|
5388
5410
|
if (!t) {
|
|
5389
|
-
u.value = "text", d.value = "CONFIDENTIAL", f.value = "Calibri", p.value =
|
|
5411
|
+
u.value = "text", d.value = "CONFIDENTIAL", f.value = "Calibri", p.value = Pa, m.value = !0, h.value = 50, g.value = "", _.value = "", y.value = !1, b.value = 100, S.value = !0;
|
|
5390
5412
|
return;
|
|
5391
5413
|
}
|
|
5392
5414
|
if (u.value = t.kind, t.kind === "text") {
|
|
5393
|
-
d.value = t.text, f.value = t.font ?? "Calibri", p.value =
|
|
5415
|
+
d.value = t.text, f.value = t.font ?? "Calibri", p.value = ee(t.color), m.value = t.diagonal ?? !0, h.value = Math.round((t.opacity ?? .5) * 100);
|
|
5394
5416
|
return;
|
|
5395
5417
|
}
|
|
5396
|
-
g.value = t.imageRId, _.value = t.imageTarget ?? "",
|
|
5418
|
+
g.value = t.imageRId, _.value = t.imageTarget ?? "", y.value = t.imageTargetExternal ?? !1, b.value = Math.round((t.scale ?? 1) * 100), S.value = t.washout ?? !0;
|
|
5397
5419
|
}
|
|
5398
5420
|
}, { immediate: !0 });
|
|
5399
5421
|
function E() {
|
|
5400
|
-
if (
|
|
5422
|
+
if (T.value) {
|
|
5401
5423
|
if (u.value === "none") {
|
|
5402
5424
|
l("apply", void 0), l("close");
|
|
5403
5425
|
return;
|
|
@@ -5409,7 +5431,7 @@ var Yn = u({
|
|
|
5409
5431
|
...f.value.trim() ? { font: f.value.trim() } : {},
|
|
5410
5432
|
color: I(p.value),
|
|
5411
5433
|
diagonal: m.value,
|
|
5412
|
-
opacity:
|
|
5434
|
+
opacity: k(h.value) / 100
|
|
5413
5435
|
}), l("close");
|
|
5414
5436
|
return;
|
|
5415
5437
|
}
|
|
@@ -5417,28 +5439,28 @@ var Yn = u({
|
|
|
5417
5439
|
kind: "picture",
|
|
5418
5440
|
imageRId: g.value.trim(),
|
|
5419
5441
|
..._.value.trim() ? { imageTarget: _.value.trim() } : {},
|
|
5420
|
-
..._.value.trim() ? { imageTargetExternal:
|
|
5421
|
-
scale:
|
|
5422
|
-
washout:
|
|
5442
|
+
..._.value.trim() ? { imageTargetExternal: y.value } : {},
|
|
5443
|
+
scale: F(b.value) / 100,
|
|
5444
|
+
washout: S.value
|
|
5423
5445
|
}), l("close");
|
|
5424
5446
|
}
|
|
5425
5447
|
}
|
|
5426
|
-
function
|
|
5448
|
+
function k(e) {
|
|
5427
5449
|
return Math.min(100, Math.max(0, e));
|
|
5428
5450
|
}
|
|
5429
|
-
function
|
|
5451
|
+
function F(e) {
|
|
5430
5452
|
return Math.min(300, Math.max(1, e));
|
|
5431
5453
|
}
|
|
5432
5454
|
function I(e) {
|
|
5433
5455
|
return e.startsWith("#") ? e.slice(1) : e;
|
|
5434
5456
|
}
|
|
5435
|
-
function
|
|
5436
|
-
return
|
|
5457
|
+
function R(e) {
|
|
5458
|
+
return L(e) ? "" : "Use a web address (http/https).";
|
|
5437
5459
|
}
|
|
5438
|
-
function
|
|
5439
|
-
return !e || e === "auto" ?
|
|
5460
|
+
function ee(e) {
|
|
5461
|
+
return !e || e === "auto" ? Pa : e.startsWith("#") ? e : `#${e}`;
|
|
5440
5462
|
}
|
|
5441
|
-
return (t,
|
|
5463
|
+
return (t, n) => (v(), r(D(s), {
|
|
5442
5464
|
open: e.isOpen,
|
|
5443
5465
|
"aria-label": "Watermark",
|
|
5444
5466
|
style: {
|
|
@@ -5446,101 +5468,101 @@ var Yn = u({
|
|
|
5446
5468
|
maxWidth: "520px",
|
|
5447
5469
|
width: "100%"
|
|
5448
5470
|
},
|
|
5449
|
-
onClose:
|
|
5471
|
+
onClose: n[12] ||= (e) => t.$emit("close")
|
|
5450
5472
|
}, {
|
|
5451
|
-
default:
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
"onUpdate:modelValue":
|
|
5473
|
+
default: N(() => [
|
|
5474
|
+
n[25] ||= o("div", { class: "dialog__header" }, "Watermark", -1),
|
|
5475
|
+
o("div", ga, [
|
|
5476
|
+
o("label", _a, [n[14] ||= o("span", { class: "field__label" }, "Type", -1), P(o("select", {
|
|
5477
|
+
"onUpdate:modelValue": n[0] ||= (e) => u.value = e,
|
|
5456
5478
|
class: "field__input"
|
|
5457
|
-
}, [...
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
]], 512), [[
|
|
5462
|
-
u.value === "text" ? (
|
|
5463
|
-
|
|
5464
|
-
"onUpdate:modelValue":
|
|
5479
|
+
}, [...n[13] ||= [
|
|
5480
|
+
o("option", { value: "text" }, "Text watermark", -1),
|
|
5481
|
+
o("option", { value: "picture" }, "Picture watermark", -1),
|
|
5482
|
+
o("option", { value: "none" }, "No watermark", -1)
|
|
5483
|
+
]], 512), [[A, u.value]])]),
|
|
5484
|
+
u.value === "text" ? (v(), a("div", va, [
|
|
5485
|
+
o("label", ya, [n[15] ||= o("span", { class: "field__label" }, "Text", -1), P(o("input", {
|
|
5486
|
+
"onUpdate:modelValue": n[1] ||= (e) => d.value = e,
|
|
5465
5487
|
class: "field__input"
|
|
5466
|
-
}, null, 512), [[
|
|
5467
|
-
|
|
5468
|
-
"onUpdate:modelValue":
|
|
5488
|
+
}, null, 512), [[j, d.value]])]),
|
|
5489
|
+
o("label", ba, [n[16] ||= o("span", { class: "field__label" }, "Font", -1), P(o("input", {
|
|
5490
|
+
"onUpdate:modelValue": n[2] ||= (e) => f.value = e,
|
|
5469
5491
|
class: "field__input"
|
|
5470
|
-
}, null, 512), [[
|
|
5471
|
-
|
|
5472
|
-
"onUpdate:modelValue":
|
|
5492
|
+
}, null, 512), [[j, f.value]])]),
|
|
5493
|
+
o("label", xa, [n[17] ||= o("span", { class: "field__label" }, "Color", -1), P(o("input", {
|
|
5494
|
+
"onUpdate:modelValue": n[3] ||= (e) => p.value = e,
|
|
5473
5495
|
class: "field__input field__input--color",
|
|
5474
5496
|
type: "color"
|
|
5475
|
-
}, null, 512), [[
|
|
5476
|
-
|
|
5477
|
-
"onUpdate:modelValue":
|
|
5497
|
+
}, null, 512), [[j, p.value]])]),
|
|
5498
|
+
o("label", Sa, [n[18] ||= o("span", { class: "field__label" }, "Opacity", -1), P(o("input", {
|
|
5499
|
+
"onUpdate:modelValue": n[4] ||= (e) => h.value = e,
|
|
5478
5500
|
class: "field__input",
|
|
5479
5501
|
max: "100",
|
|
5480
5502
|
min: "0",
|
|
5481
5503
|
type: "number"
|
|
5482
5504
|
}, null, 512), [[
|
|
5483
|
-
|
|
5505
|
+
j,
|
|
5484
5506
|
h.value,
|
|
5485
5507
|
void 0,
|
|
5486
5508
|
{ number: !0 }
|
|
5487
5509
|
]])]),
|
|
5488
|
-
|
|
5489
|
-
"onUpdate:modelValue":
|
|
5510
|
+
o("label", Ca, [P(o("input", {
|
|
5511
|
+
"onUpdate:modelValue": n[5] ||= (e) => m.value = e,
|
|
5490
5512
|
type: "checkbox"
|
|
5491
|
-
}, null, 512), [[
|
|
5492
|
-
])) :
|
|
5493
|
-
u.value === "picture" ? (
|
|
5494
|
-
|
|
5495
|
-
"onUpdate:modelValue":
|
|
5513
|
+
}, null, 512), [[O, m.value]]), n[19] ||= o("span", null, "Diagonal", -1)])
|
|
5514
|
+
])) : i("", !0),
|
|
5515
|
+
u.value === "picture" ? (v(), a("div", wa, [
|
|
5516
|
+
o("label", Ta, [n[20] ||= o("span", { class: "field__label" }, "Header image relationship id", -1), P(o("input", {
|
|
5517
|
+
"onUpdate:modelValue": n[6] ||= (e) => g.value = e,
|
|
5496
5518
|
class: "field__input",
|
|
5497
5519
|
placeholder: "rId12"
|
|
5498
|
-
}, null, 512), [[
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
"onUpdate:modelValue":
|
|
5520
|
+
}, null, 512), [[j, g.value]])]),
|
|
5521
|
+
o("label", Ea, [
|
|
5522
|
+
n[21] ||= o("span", { class: "field__label" }, "Image target", -1),
|
|
5523
|
+
P(o("input", {
|
|
5524
|
+
"onUpdate:modelValue": n[7] ||= (e) => _.value = e,
|
|
5503
5525
|
"aria-invalid": C.value.length > 0,
|
|
5504
5526
|
class: "field__input",
|
|
5505
5527
|
placeholder: "word/media/image1.png"
|
|
5506
|
-
}, null, 8,
|
|
5507
|
-
C.value.length > 0 ? (
|
|
5528
|
+
}, null, 8, Da), [[j, _.value]]),
|
|
5529
|
+
C.value.length > 0 ? (v(), a("span", Oa, w(C.value), 1)) : i("", !0)
|
|
5508
5530
|
]),
|
|
5509
|
-
|
|
5510
|
-
"onUpdate:modelValue":
|
|
5531
|
+
o("label", ka, [n[22] ||= o("span", { class: "field__label" }, "Scale", -1), P(o("input", {
|
|
5532
|
+
"onUpdate:modelValue": n[8] ||= (e) => b.value = e,
|
|
5511
5533
|
class: "field__input",
|
|
5512
5534
|
max: "300",
|
|
5513
5535
|
min: "1",
|
|
5514
5536
|
type: "number"
|
|
5515
5537
|
}, null, 512), [[
|
|
5516
|
-
|
|
5538
|
+
j,
|
|
5517
5539
|
b.value,
|
|
5518
5540
|
void 0,
|
|
5519
5541
|
{ number: !0 }
|
|
5520
5542
|
]])]),
|
|
5521
|
-
|
|
5522
|
-
"onUpdate:modelValue":
|
|
5543
|
+
o("label", Aa, [P(o("input", {
|
|
5544
|
+
"onUpdate:modelValue": n[9] ||= (e) => S.value = e,
|
|
5523
5545
|
type: "checkbox"
|
|
5524
|
-
}, null, 512), [[
|
|
5525
|
-
|
|
5526
|
-
"onUpdate:modelValue":
|
|
5546
|
+
}, null, 512), [[O, S.value]]), n[23] ||= o("span", null, "Washout", -1)]),
|
|
5547
|
+
o("label", ja, [P(o("input", {
|
|
5548
|
+
"onUpdate:modelValue": n[10] ||= (e) => y.value = e,
|
|
5527
5549
|
type: "checkbox"
|
|
5528
|
-
}, null, 512), [[
|
|
5529
|
-
])) :
|
|
5550
|
+
}, null, 512), [[O, y.value]]), n[24] ||= o("span", null, "Target is an external URL", -1)])
|
|
5551
|
+
])) : i("", !0)
|
|
5530
5552
|
]),
|
|
5531
|
-
|
|
5553
|
+
o("div", Ma, [o("button", {
|
|
5532
5554
|
class: "dialog__btn",
|
|
5533
|
-
onClick:
|
|
5534
|
-
}, "Cancel"),
|
|
5555
|
+
onClick: n[11] ||= (e) => t.$emit("close")
|
|
5556
|
+
}, "Cancel"), o("button", {
|
|
5535
5557
|
class: "dialog__btn dialog__btn--primary",
|
|
5536
|
-
disabled: !
|
|
5558
|
+
disabled: !T.value,
|
|
5537
5559
|
onClick: E
|
|
5538
|
-
}, " Apply ", 8,
|
|
5560
|
+
}, " Apply ", 8, Na)])
|
|
5539
5561
|
]),
|
|
5540
5562
|
_: 1
|
|
5541
5563
|
}, 8, ["open"]));
|
|
5542
5564
|
}
|
|
5543
|
-
}), [["__scopeId", "data-v-fbc23c7d"]]),
|
|
5565
|
+
}), [["__scopeId", "data-v-fbc23c7d"]]), Ia = { class: "fnpd-dialog__header" }, La = { class: "fnpd-dialog__body" }, Ra = { class: "fnpd-fieldset" }, za = { class: "fnpd-legend" }, Ba = { class: "fnpd-row" }, Va = { class: "fnpd-label" }, Ha = { value: "pageBottom" }, Ua = { value: "beneathText" }, Wa = { class: "fnpd-row" }, Ga = { class: "fnpd-label" }, Ka = ["value"], qa = { class: "fnpd-row" }, Ja = { class: "fnpd-label" }, Ya = { class: "fnpd-row" }, Xa = { class: "fnpd-label" }, Za = { value: "continuous" }, Qa = { value: "eachSect" }, $a = { value: "eachPage" }, eo = { class: "fnpd-fieldset" }, to = { class: "fnpd-legend" }, no = { class: "fnpd-row" }, ro = { class: "fnpd-label" }, io = { value: "docEnd" }, ao = { value: "sectEnd" }, oo = { class: "fnpd-row" }, so = { class: "fnpd-label" }, co = ["value"], lo = { class: "fnpd-row" }, uo = { class: "fnpd-label" }, fo = { class: "fnpd-row" }, po = { class: "fnpd-label" }, mo = { value: "continuous" }, ho = { value: "eachSect" }, go = { class: "fnpd-dialog__footer" }, _o = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
5544
5566
|
__name: "FootnotePropertiesDialog",
|
|
5545
5567
|
props: {
|
|
5546
5568
|
isOpen: { type: Boolean },
|
|
@@ -5548,37 +5570,37 @@ var Yn = u({
|
|
|
5548
5570
|
endnotePr: {}
|
|
5549
5571
|
},
|
|
5550
5572
|
emits: ["close", "apply"],
|
|
5551
|
-
setup(
|
|
5552
|
-
let { t:
|
|
5573
|
+
setup(t, { emit: i }) {
|
|
5574
|
+
let { t: s } = Z(), { Dialog: c } = Q(), l = t, u = i, d = n(() => [
|
|
5553
5575
|
{
|
|
5554
5576
|
value: "decimal",
|
|
5555
|
-
label:
|
|
5577
|
+
label: s("dialogs.footnoteProperties.formats.decimal")
|
|
5556
5578
|
},
|
|
5557
5579
|
{
|
|
5558
5580
|
value: "lowerLetter",
|
|
5559
|
-
label:
|
|
5581
|
+
label: s("dialogs.footnoteProperties.formats.lowerAlpha")
|
|
5560
5582
|
},
|
|
5561
5583
|
{
|
|
5562
5584
|
value: "upperLetter",
|
|
5563
|
-
label:
|
|
5585
|
+
label: s("dialogs.footnoteProperties.formats.upperAlpha")
|
|
5564
5586
|
},
|
|
5565
5587
|
{
|
|
5566
5588
|
value: "lowerRoman",
|
|
5567
|
-
label:
|
|
5589
|
+
label: s("dialogs.footnoteProperties.formats.lowerRoman")
|
|
5568
5590
|
},
|
|
5569
5591
|
{
|
|
5570
5592
|
value: "upperRoman",
|
|
5571
|
-
label:
|
|
5593
|
+
label: s("dialogs.footnoteProperties.formats.upperRoman")
|
|
5572
5594
|
},
|
|
5573
5595
|
{
|
|
5574
5596
|
value: "chicago",
|
|
5575
|
-
label:
|
|
5597
|
+
label: s("dialogs.footnoteProperties.formats.symbols")
|
|
5576
5598
|
}
|
|
5577
|
-
]), f =
|
|
5578
|
-
|
|
5579
|
-
e && (f.value = l.footnotePr?.position ?? "pageBottom", p.value = l.footnotePr?.numFmt ?? "decimal", m.value = l.footnotePr?.numStart ?? 1, h.value = l.footnotePr?.numRestart ?? "continuous", g.value = l.endnotePr?.position ?? "docEnd", _.value = l.endnotePr?.numFmt ?? "lowerRoman",
|
|
5599
|
+
]), f = x("pageBottom"), p = x("decimal"), m = x(1), h = x("continuous"), g = x("docEnd"), _ = x("lowerRoman"), y = x(1), b = x("continuous");
|
|
5600
|
+
M(() => l.isOpen, (e) => {
|
|
5601
|
+
e && (f.value = l.footnotePr?.position ?? "pageBottom", p.value = l.footnotePr?.numFmt ?? "decimal", m.value = l.footnotePr?.numStart ?? 1, h.value = l.footnotePr?.numRestart ?? "continuous", g.value = l.endnotePr?.position ?? "docEnd", _.value = l.endnotePr?.numFmt ?? "lowerRoman", y.value = l.endnotePr?.numStart ?? 1, b.value = l.endnotePr?.numRestart ?? "continuous");
|
|
5580
5602
|
});
|
|
5581
|
-
function
|
|
5603
|
+
function C() {
|
|
5582
5604
|
u("apply", {
|
|
5583
5605
|
position: f.value,
|
|
5584
5606
|
numFmt: p.value,
|
|
@@ -5587,112 +5609,112 @@ var Yn = u({
|
|
|
5587
5609
|
}, {
|
|
5588
5610
|
position: g.value,
|
|
5589
5611
|
numFmt: _.value,
|
|
5590
|
-
numStart:
|
|
5612
|
+
numStart: y.value,
|
|
5591
5613
|
numRestart: b.value
|
|
5592
5614
|
}), u("close");
|
|
5593
5615
|
}
|
|
5594
|
-
return (n,
|
|
5595
|
-
open:
|
|
5596
|
-
"aria-label":
|
|
5616
|
+
return (n, i) => (v(), r(D(c), {
|
|
5617
|
+
open: t.isOpen,
|
|
5618
|
+
"aria-label": D(s)("dialogs.footnoteProperties.title"),
|
|
5597
5619
|
style: {
|
|
5598
5620
|
width: "440px",
|
|
5599
5621
|
maxWidth: "90vw"
|
|
5600
5622
|
},
|
|
5601
|
-
onClose:
|
|
5623
|
+
onClose: i[9] ||= (e) => n.$emit("close")
|
|
5602
5624
|
}, {
|
|
5603
|
-
default:
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
"onUpdate:modelValue":
|
|
5625
|
+
default: N(() => [
|
|
5626
|
+
o("div", Ia, w(D(s)("dialogs.footnoteProperties.title")), 1),
|
|
5627
|
+
o("div", La, [o("fieldset", Ra, [
|
|
5628
|
+
o("legend", za, w(D(s)("dialogs.footnoteProperties.footnotes")), 1),
|
|
5629
|
+
o("div", Ba, [o("label", Va, w(D(s)("dialogs.footnoteProperties.position")), 1), P(o("select", {
|
|
5630
|
+
"onUpdate:modelValue": i[0] ||= (e) => f.value = e,
|
|
5609
5631
|
class: "fnpd-select"
|
|
5610
|
-
}, [
|
|
5611
|
-
|
|
5612
|
-
"onUpdate:modelValue":
|
|
5632
|
+
}, [o("option", Ha, w(D(s)("dialogs.footnoteProperties.footnotePositions.bottomOfPage")), 1), o("option", Ua, w(D(s)("dialogs.footnoteProperties.footnotePositions.belowText")), 1)], 512), [[A, f.value]])]),
|
|
5633
|
+
o("div", Wa, [o("label", Ga, w(D(s)("dialogs.footnoteProperties.numberFormat")), 1), P(o("select", {
|
|
5634
|
+
"onUpdate:modelValue": i[1] ||= (e) => p.value = e,
|
|
5613
5635
|
class: "fnpd-select"
|
|
5614
|
-
}, [(
|
|
5636
|
+
}, [(v(!0), a(e, null, S(d.value, (e) => (v(), a("option", {
|
|
5615
5637
|
key: e.value,
|
|
5616
5638
|
value: e.value
|
|
5617
|
-
},
|
|
5618
|
-
|
|
5619
|
-
"onUpdate:modelValue":
|
|
5639
|
+
}, w(e.label), 9, Ka))), 128))], 512), [[A, p.value]])]),
|
|
5640
|
+
o("div", qa, [o("label", Ja, w(D(s)("dialogs.footnoteProperties.startAt")), 1), P(o("input", {
|
|
5641
|
+
"onUpdate:modelValue": i[2] ||= (e) => m.value = e,
|
|
5620
5642
|
type: "number",
|
|
5621
5643
|
class: "fnpd-input",
|
|
5622
5644
|
min: "1"
|
|
5623
5645
|
}, null, 512), [[
|
|
5624
|
-
|
|
5646
|
+
j,
|
|
5625
5647
|
m.value,
|
|
5626
5648
|
void 0,
|
|
5627
5649
|
{ number: !0 }
|
|
5628
5650
|
]])]),
|
|
5629
|
-
|
|
5630
|
-
"onUpdate:modelValue":
|
|
5651
|
+
o("div", Ya, [o("label", Xa, w(D(s)("dialogs.footnoteProperties.numbering")), 1), P(o("select", {
|
|
5652
|
+
"onUpdate:modelValue": i[3] ||= (e) => h.value = e,
|
|
5631
5653
|
class: "fnpd-select"
|
|
5632
5654
|
}, [
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
], 512), [[
|
|
5637
|
-
]),
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
"onUpdate:modelValue":
|
|
5655
|
+
o("option", Za, w(D(s)("dialogs.footnoteProperties.numberingOptions.continuous")), 1),
|
|
5656
|
+
o("option", Qa, w(D(s)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1),
|
|
5657
|
+
o("option", $a, w(D(s)("dialogs.footnoteProperties.numberingOptions.restartPage")), 1)
|
|
5658
|
+
], 512), [[A, h.value]])])
|
|
5659
|
+
]), o("fieldset", eo, [
|
|
5660
|
+
o("legend", to, w(D(s)("dialogs.footnoteProperties.endnotes")), 1),
|
|
5661
|
+
o("div", no, [o("label", ro, w(D(s)("dialogs.footnoteProperties.position")), 1), P(o("select", {
|
|
5662
|
+
"onUpdate:modelValue": i[4] ||= (e) => g.value = e,
|
|
5641
5663
|
class: "fnpd-select"
|
|
5642
|
-
}, [
|
|
5643
|
-
|
|
5644
|
-
"onUpdate:modelValue":
|
|
5664
|
+
}, [o("option", io, w(D(s)("dialogs.footnoteProperties.endnotePositions.endOfDocument")), 1), o("option", ao, w(D(s)("dialogs.footnoteProperties.endnotePositions.endOfSection")), 1)], 512), [[A, g.value]])]),
|
|
5665
|
+
o("div", oo, [o("label", so, w(D(s)("dialogs.footnoteProperties.numberFormat")), 1), P(o("select", {
|
|
5666
|
+
"onUpdate:modelValue": i[5] ||= (e) => _.value = e,
|
|
5645
5667
|
class: "fnpd-select"
|
|
5646
|
-
}, [(
|
|
5668
|
+
}, [(v(!0), a(e, null, S(d.value, (e) => (v(), a("option", {
|
|
5647
5669
|
key: e.value,
|
|
5648
5670
|
value: e.value
|
|
5649
|
-
},
|
|
5650
|
-
|
|
5651
|
-
"onUpdate:modelValue":
|
|
5671
|
+
}, w(e.label), 9, co))), 128))], 512), [[A, _.value]])]),
|
|
5672
|
+
o("div", lo, [o("label", uo, w(D(s)("dialogs.footnoteProperties.startAt")), 1), P(o("input", {
|
|
5673
|
+
"onUpdate:modelValue": i[6] ||= (e) => y.value = e,
|
|
5652
5674
|
type: "number",
|
|
5653
5675
|
class: "fnpd-input",
|
|
5654
5676
|
min: "1"
|
|
5655
5677
|
}, null, 512), [[
|
|
5656
|
-
|
|
5657
|
-
|
|
5678
|
+
j,
|
|
5679
|
+
y.value,
|
|
5658
5680
|
void 0,
|
|
5659
5681
|
{ number: !0 }
|
|
5660
5682
|
]])]),
|
|
5661
|
-
|
|
5662
|
-
"onUpdate:modelValue":
|
|
5683
|
+
o("div", fo, [o("label", po, w(D(s)("dialogs.footnoteProperties.numbering")), 1), P(o("select", {
|
|
5684
|
+
"onUpdate:modelValue": i[7] ||= (e) => b.value = e,
|
|
5663
5685
|
class: "fnpd-select"
|
|
5664
|
-
}, [
|
|
5686
|
+
}, [o("option", mo, w(D(s)("dialogs.footnoteProperties.numberingOptions.continuous")), 1), o("option", ho, w(D(s)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1)], 512), [[A, b.value]])])
|
|
5665
5687
|
])]),
|
|
5666
|
-
|
|
5688
|
+
o("div", go, [o("button", {
|
|
5667
5689
|
class: "fnpd-btn",
|
|
5668
|
-
onClick:
|
|
5669
|
-
},
|
|
5690
|
+
onClick: i[8] ||= (e) => n.$emit("close")
|
|
5691
|
+
}, w(D(s)("common.cancel")), 1), o("button", {
|
|
5670
5692
|
class: "fnpd-btn fnpd-btn--primary",
|
|
5671
|
-
onClick:
|
|
5672
|
-
},
|
|
5693
|
+
onClick: C
|
|
5694
|
+
}, w(D(s)("common.apply")), 1)])
|
|
5673
5695
|
]),
|
|
5674
5696
|
_: 1
|
|
5675
5697
|
}, 8, ["open", "aria-label"]));
|
|
5676
5698
|
}
|
|
5677
|
-
}), [["__scopeId", "data-v-86718c10"]]),
|
|
5699
|
+
}), [["__scopeId", "data-v-86718c10"]]), vo = { class: "ipd-dialog__header" }, yo = { class: "ipd-dialog__body" }, bo = { class: "ipd-fieldset" }, xo = { class: "ipd-legend" }, So = { class: "ipd-row" }, Co = { value: "align" }, wo = { value: "offset" }, To = {
|
|
5678
5700
|
key: 0,
|
|
5679
5701
|
class: "ipd-row"
|
|
5680
|
-
},
|
|
5702
|
+
}, Eo = { class: "ipd-label" }, Do = { value: "left" }, Oo = { value: "center" }, ko = { value: "right" }, Ao = {
|
|
5681
5703
|
key: 1,
|
|
5682
5704
|
class: "ipd-row"
|
|
5683
|
-
},
|
|
5705
|
+
}, jo = { class: "ipd-label" }, Mo = { class: "ipd-row" }, No = { class: "ipd-label" }, Po = { value: "page" }, Fo = { value: "column" }, Io = { value: "margin" }, Lo = { value: "character" }, Ro = { class: "ipd-fieldset" }, zo = { class: "ipd-legend" }, Bo = { class: "ipd-row" }, Vo = { value: "align" }, Ho = { value: "offset" }, Uo = {
|
|
5684
5706
|
key: 0,
|
|
5685
5707
|
class: "ipd-row"
|
|
5686
|
-
},
|
|
5708
|
+
}, Wo = { class: "ipd-label" }, Go = { value: "top" }, Ko = { value: "center" }, qo = { value: "bottom" }, Jo = {
|
|
5687
5709
|
key: 1,
|
|
5688
5710
|
class: "ipd-row"
|
|
5689
|
-
},
|
|
5711
|
+
}, Yo = { class: "ipd-label" }, Xo = { class: "ipd-row" }, Zo = { class: "ipd-label" }, Qo = { value: "page" }, $o = { value: "margin" }, es = { value: "paragraph" }, ts = { value: "line" }, ns = { class: "ipd-fieldset" }, rs = { class: "ipd-row" }, is = { class: "ipd-label" }, as = {
|
|
5690
5712
|
class: "ipd-label",
|
|
5691
5713
|
style: { width: "60px" }
|
|
5692
|
-
},
|
|
5714
|
+
}, os = { class: "ipd-row" }, ss = { class: "ipd-label" }, cs = {
|
|
5693
5715
|
class: "ipd-label",
|
|
5694
5716
|
style: { width: "60px" }
|
|
5695
|
-
},
|
|
5717
|
+
}, ls = { class: "ipd-dialog__footer" }, us = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
5696
5718
|
__name: "ImagePositionDialog",
|
|
5697
5719
|
props: {
|
|
5698
5720
|
isOpen: { type: Boolean },
|
|
@@ -5700,11 +5722,11 @@ var Yn = u({
|
|
|
5700
5722
|
},
|
|
5701
5723
|
emits: ["close", "apply"],
|
|
5702
5724
|
setup(e, { emit: t }) {
|
|
5703
|
-
let { t: n } = Z(), { Dialog:
|
|
5704
|
-
|
|
5725
|
+
let { t: n } = Z(), { Dialog: i } = Q(), s = e, c = t, l = x("align"), u = x("left"), d = x(0), f = x("column"), p = x("align"), m = x("top"), h = x(0), g = x("paragraph"), _ = x(0), y = x(0), b = x(0), S = x(0);
|
|
5726
|
+
M(() => s.isOpen, (e) => {
|
|
5705
5727
|
if (!e) return;
|
|
5706
|
-
let t =
|
|
5707
|
-
t?.horizontal?.align ? (l.value = "align", u.value = t.horizontal.align) : t?.horizontal?.posOffset != null && (l.value = "offset", d.value = t.horizontal.posOffset), f.value = t?.horizontal?.relativeTo ?? "column", t?.vertical?.align ? (p.value = "align", m.value = t.vertical.align) : t?.vertical?.posOffset != null && (p.value = "offset", h.value = t.vertical.posOffset), g.value = t?.vertical?.relativeTo ?? "paragraph", _.value = t?.distTop ?? 0,
|
|
5728
|
+
let t = s.currentData;
|
|
5729
|
+
t?.horizontal?.align ? (l.value = "align", u.value = t.horizontal.align) : t?.horizontal?.posOffset != null && (l.value = "offset", d.value = t.horizontal.posOffset), f.value = t?.horizontal?.relativeTo ?? "column", t?.vertical?.align ? (p.value = "align", m.value = t.vertical.align) : t?.vertical?.posOffset != null && (p.value = "offset", h.value = t.vertical.posOffset), g.value = t?.vertical?.relativeTo ?? "paragraph", _.value = t?.distTop ?? 0, y.value = t?.distBottom ?? 0, b.value = t?.distLeft ?? 0, S.value = t?.distRight ?? 0;
|
|
5708
5730
|
});
|
|
5709
5731
|
function C() {
|
|
5710
5732
|
let e = {
|
|
@@ -5717,158 +5739,158 @@ var Yn = u({
|
|
|
5717
5739
|
...p.value === "align" ? { align: m.value } : { posOffset: h.value }
|
|
5718
5740
|
},
|
|
5719
5741
|
distTop: _.value,
|
|
5720
|
-
distBottom:
|
|
5742
|
+
distBottom: y.value,
|
|
5721
5743
|
distLeft: b.value,
|
|
5722
|
-
distRight:
|
|
5744
|
+
distRight: S.value
|
|
5723
5745
|
};
|
|
5724
5746
|
c("apply", e), c("close");
|
|
5725
5747
|
}
|
|
5726
|
-
return (t,
|
|
5748
|
+
return (t, s) => (v(), r(D(i), {
|
|
5727
5749
|
open: e.isOpen,
|
|
5728
|
-
"aria-label":
|
|
5750
|
+
"aria-label": D(n)("dialogs.imagePosition.title"),
|
|
5729
5751
|
style: {
|
|
5730
5752
|
width: "420px",
|
|
5731
5753
|
maxWidth: "90vw"
|
|
5732
5754
|
},
|
|
5733
|
-
onClose:
|
|
5755
|
+
onClose: s[13] ||= (e) => t.$emit("close")
|
|
5734
5756
|
}, {
|
|
5735
|
-
default:
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
"onUpdate:modelValue":
|
|
5757
|
+
default: N(() => [
|
|
5758
|
+
o("div", vo, w(D(n)("dialogs.imagePosition.title")), 1),
|
|
5759
|
+
o("div", yo, [
|
|
5760
|
+
o("fieldset", bo, [
|
|
5761
|
+
o("legend", xo, w(D(n)("dialogs.imagePosition.horizontal")), 1),
|
|
5762
|
+
o("div", So, [s[14] ||= o("label", { class: "ipd-label" }, "Mode", -1), P(o("select", {
|
|
5763
|
+
"onUpdate:modelValue": s[0] ||= (e) => l.value = e,
|
|
5742
5764
|
class: "ipd-select"
|
|
5743
|
-
}, [
|
|
5744
|
-
l.value === "align" ? (
|
|
5745
|
-
"onUpdate:modelValue":
|
|
5765
|
+
}, [o("option", Co, w(D(n)("dialogs.imagePosition.alignment")), 1), o("option", wo, w(D(n)("dialogs.imagePosition.offset")), 1)], 512), [[A, l.value]])]),
|
|
5766
|
+
l.value === "align" ? (v(), a("div", To, [o("label", Eo, w(D(n)("dialogs.imagePosition.align")), 1), P(o("select", {
|
|
5767
|
+
"onUpdate:modelValue": s[1] ||= (e) => u.value = e,
|
|
5746
5768
|
class: "ipd-select"
|
|
5747
5769
|
}, [
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
], 512), [[
|
|
5752
|
-
"onUpdate:modelValue":
|
|
5770
|
+
o("option", Do, w(D(n)("dialogs.imagePosition.alignOptions.left")), 1),
|
|
5771
|
+
o("option", Oo, w(D(n)("dialogs.imagePosition.alignOptions.center")), 1),
|
|
5772
|
+
o("option", ko, w(D(n)("dialogs.imagePosition.alignOptions.right")), 1)
|
|
5773
|
+
], 512), [[A, u.value]])])) : (v(), a("div", Ao, [o("label", jo, w(D(n)("dialogs.imagePosition.offsetPx")), 1), P(o("input", {
|
|
5774
|
+
"onUpdate:modelValue": s[2] ||= (e) => d.value = e,
|
|
5753
5775
|
type: "number",
|
|
5754
5776
|
class: "ipd-input"
|
|
5755
5777
|
}, null, 512), [[
|
|
5756
|
-
|
|
5778
|
+
j,
|
|
5757
5779
|
d.value,
|
|
5758
5780
|
void 0,
|
|
5759
5781
|
{ number: !0 }
|
|
5760
5782
|
]])])),
|
|
5761
|
-
|
|
5762
|
-
"onUpdate:modelValue":
|
|
5783
|
+
o("div", Mo, [o("label", No, w(D(n)("dialogs.imagePosition.relativeTo")), 1), P(o("select", {
|
|
5784
|
+
"onUpdate:modelValue": s[3] ||= (e) => f.value = e,
|
|
5763
5785
|
class: "ipd-select"
|
|
5764
5786
|
}, [
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
], 512), [[
|
|
5787
|
+
o("option", Po, w(D(n)("dialogs.imagePosition.relativeOptions.page")), 1),
|
|
5788
|
+
o("option", Fo, w(D(n)("dialogs.imagePosition.relativeOptions.column")), 1),
|
|
5789
|
+
o("option", Io, w(D(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
|
|
5790
|
+
o("option", Lo, w(D(n)("dialogs.imagePosition.relativeOptions.character")), 1)
|
|
5791
|
+
], 512), [[A, f.value]])])
|
|
5770
5792
|
]),
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
"onUpdate:modelValue":
|
|
5793
|
+
o("fieldset", Ro, [
|
|
5794
|
+
o("legend", zo, w(D(n)("dialogs.imagePosition.vertical")), 1),
|
|
5795
|
+
o("div", Bo, [s[15] ||= o("label", { class: "ipd-label" }, "Mode", -1), P(o("select", {
|
|
5796
|
+
"onUpdate:modelValue": s[4] ||= (e) => p.value = e,
|
|
5775
5797
|
class: "ipd-select"
|
|
5776
|
-
}, [
|
|
5777
|
-
p.value === "align" ? (
|
|
5778
|
-
"onUpdate:modelValue":
|
|
5798
|
+
}, [o("option", Vo, w(D(n)("dialogs.imagePosition.alignment")), 1), o("option", Ho, w(D(n)("dialogs.imagePosition.offset")), 1)], 512), [[A, p.value]])]),
|
|
5799
|
+
p.value === "align" ? (v(), a("div", Uo, [o("label", Wo, w(D(n)("dialogs.imagePosition.align")), 1), P(o("select", {
|
|
5800
|
+
"onUpdate:modelValue": s[5] ||= (e) => m.value = e,
|
|
5779
5801
|
class: "ipd-select"
|
|
5780
5802
|
}, [
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
], 512), [[
|
|
5785
|
-
"onUpdate:modelValue":
|
|
5803
|
+
o("option", Go, w(D(n)("dialogs.imagePosition.alignOptions.top")), 1),
|
|
5804
|
+
o("option", Ko, w(D(n)("dialogs.imagePosition.alignOptions.center")), 1),
|
|
5805
|
+
o("option", qo, w(D(n)("dialogs.imagePosition.alignOptions.bottom")), 1)
|
|
5806
|
+
], 512), [[A, m.value]])])) : (v(), a("div", Jo, [o("label", Yo, w(D(n)("dialogs.imagePosition.offsetPx")), 1), P(o("input", {
|
|
5807
|
+
"onUpdate:modelValue": s[6] ||= (e) => h.value = e,
|
|
5786
5808
|
type: "number",
|
|
5787
5809
|
class: "ipd-input"
|
|
5788
5810
|
}, null, 512), [[
|
|
5789
|
-
|
|
5811
|
+
j,
|
|
5790
5812
|
h.value,
|
|
5791
5813
|
void 0,
|
|
5792
5814
|
{ number: !0 }
|
|
5793
5815
|
]])])),
|
|
5794
|
-
|
|
5795
|
-
"onUpdate:modelValue":
|
|
5816
|
+
o("div", Xo, [o("label", Zo, w(D(n)("dialogs.imagePosition.relativeTo")), 1), P(o("select", {
|
|
5817
|
+
"onUpdate:modelValue": s[7] ||= (e) => g.value = e,
|
|
5796
5818
|
class: "ipd-select"
|
|
5797
5819
|
}, [
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
], 512), [[
|
|
5820
|
+
o("option", Qo, w(D(n)("dialogs.imagePosition.relativeOptions.page")), 1),
|
|
5821
|
+
o("option", $o, w(D(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
|
|
5822
|
+
o("option", es, w(D(n)("dialogs.imagePosition.relativeOptions.paragraph")), 1),
|
|
5823
|
+
o("option", ts, w(D(n)("dialogs.imagePosition.relativeOptions.line")), 1)
|
|
5824
|
+
], 512), [[A, g.value]])])
|
|
5803
5825
|
]),
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
"onUpdate:modelValue":
|
|
5826
|
+
o("fieldset", ns, [
|
|
5827
|
+
s[16] ||= o("legend", { class: "ipd-legend" }, "Distance from text (px)", -1),
|
|
5828
|
+
o("div", rs, [
|
|
5829
|
+
o("label", is, w(D(n)("dialogs.imagePosition.alignOptions.top")), 1),
|
|
5830
|
+
P(o("input", {
|
|
5831
|
+
"onUpdate:modelValue": s[8] ||= (e) => _.value = e,
|
|
5810
5832
|
type: "number",
|
|
5811
5833
|
class: "ipd-input",
|
|
5812
5834
|
min: "0"
|
|
5813
5835
|
}, null, 512), [[
|
|
5814
|
-
|
|
5836
|
+
j,
|
|
5815
5837
|
_.value,
|
|
5816
5838
|
void 0,
|
|
5817
5839
|
{ number: !0 }
|
|
5818
5840
|
]]),
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
"onUpdate:modelValue":
|
|
5841
|
+
o("label", as, w(D(n)("dialogs.imagePosition.alignOptions.bottom")), 1),
|
|
5842
|
+
P(o("input", {
|
|
5843
|
+
"onUpdate:modelValue": s[9] ||= (e) => y.value = e,
|
|
5822
5844
|
type: "number",
|
|
5823
5845
|
class: "ipd-input",
|
|
5824
5846
|
min: "0"
|
|
5825
5847
|
}, null, 512), [[
|
|
5826
|
-
|
|
5827
|
-
|
|
5848
|
+
j,
|
|
5849
|
+
y.value,
|
|
5828
5850
|
void 0,
|
|
5829
5851
|
{ number: !0 }
|
|
5830
5852
|
]])
|
|
5831
5853
|
]),
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
"onUpdate:modelValue":
|
|
5854
|
+
o("div", os, [
|
|
5855
|
+
o("label", ss, w(D(n)("dialogs.imagePosition.alignOptions.left")), 1),
|
|
5856
|
+
P(o("input", {
|
|
5857
|
+
"onUpdate:modelValue": s[10] ||= (e) => b.value = e,
|
|
5836
5858
|
type: "number",
|
|
5837
5859
|
class: "ipd-input",
|
|
5838
5860
|
min: "0"
|
|
5839
5861
|
}, null, 512), [[
|
|
5840
|
-
|
|
5862
|
+
j,
|
|
5841
5863
|
b.value,
|
|
5842
5864
|
void 0,
|
|
5843
5865
|
{ number: !0 }
|
|
5844
5866
|
]]),
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
"onUpdate:modelValue":
|
|
5867
|
+
o("label", cs, w(D(n)("dialogs.imagePosition.alignOptions.right")), 1),
|
|
5868
|
+
P(o("input", {
|
|
5869
|
+
"onUpdate:modelValue": s[11] ||= (e) => S.value = e,
|
|
5848
5870
|
type: "number",
|
|
5849
5871
|
class: "ipd-input",
|
|
5850
5872
|
min: "0"
|
|
5851
5873
|
}, null, 512), [[
|
|
5852
|
-
|
|
5853
|
-
|
|
5874
|
+
j,
|
|
5875
|
+
S.value,
|
|
5854
5876
|
void 0,
|
|
5855
5877
|
{ number: !0 }
|
|
5856
5878
|
]])
|
|
5857
5879
|
])
|
|
5858
5880
|
])
|
|
5859
5881
|
]),
|
|
5860
|
-
|
|
5882
|
+
o("div", ls, [o("button", {
|
|
5861
5883
|
class: "ipd-btn",
|
|
5862
|
-
onClick:
|
|
5863
|
-
},
|
|
5884
|
+
onClick: s[12] ||= (e) => t.$emit("close")
|
|
5885
|
+
}, w(D(n)("common.cancel")), 1), o("button", {
|
|
5864
5886
|
class: "ipd-btn ipd-btn--primary",
|
|
5865
5887
|
onClick: C
|
|
5866
|
-
},
|
|
5888
|
+
}, w(D(n)("common.apply")), 1)])
|
|
5867
5889
|
]),
|
|
5868
5890
|
_: 1
|
|
5869
5891
|
}, 8, ["open", "aria-label"]));
|
|
5870
5892
|
}
|
|
5871
|
-
}), [["__scopeId", "data-v-64d4c153"]]),
|
|
5893
|
+
}), [["__scopeId", "data-v-64d4c153"]]), ds = { class: "dialog__body" }, fs = { class: "field" }, ps = ["accept"], ms = { class: "field" }, hs = ["placeholder"], gs = { class: "grid" }, _s = { class: "field" }, vs = { class: "field" }, ys = { class: "dialog__footer" }, bs = ["disabled"], xs = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
5872
5894
|
__name: "InsertImageDialog",
|
|
5873
5895
|
props: {
|
|
5874
5896
|
isOpen: { type: Boolean },
|
|
@@ -5876,19 +5898,19 @@ var Yn = u({
|
|
|
5876
5898
|
},
|
|
5877
5899
|
emits: ["close", "insert"],
|
|
5878
5900
|
setup(e, { emit: t }) {
|
|
5879
|
-
let { Dialog: n } = Q(),
|
|
5880
|
-
|
|
5881
|
-
e && (
|
|
5901
|
+
let { Dialog: n } = Q(), i = e, a = t, s = x(null), c = x(""), l = x(""), u = x("");
|
|
5902
|
+
M(() => i.isOpen, (e) => {
|
|
5903
|
+
e && (s.value = null, c.value = "", l.value = "", u.value = "");
|
|
5882
5904
|
});
|
|
5883
5905
|
function d(e) {
|
|
5884
5906
|
let t = e.target instanceof HTMLInputElement ? e.target : null;
|
|
5885
|
-
|
|
5907
|
+
s.value = t?.files?.[0] ?? null;
|
|
5886
5908
|
}
|
|
5887
5909
|
function f() {
|
|
5888
|
-
if (!
|
|
5910
|
+
if (!s.value) return;
|
|
5889
5911
|
let e = p(l.value), t = p(u.value);
|
|
5890
5912
|
a("insert", {
|
|
5891
|
-
file:
|
|
5913
|
+
file: s.value,
|
|
5892
5914
|
...c.value.trim() ? { alt: c.value.trim() } : {},
|
|
5893
5915
|
...e ? { width: e } : {},
|
|
5894
5916
|
...t ? { height: t } : {}
|
|
@@ -5898,7 +5920,7 @@ var Yn = u({
|
|
|
5898
5920
|
let t = Number(e);
|
|
5899
5921
|
return Number.isFinite(t) && t > 0 ? t : void 0;
|
|
5900
5922
|
}
|
|
5901
|
-
return (t,
|
|
5923
|
+
return (t, i) => (v(), r(D(n), {
|
|
5902
5924
|
open: e.isOpen,
|
|
5903
5925
|
"aria-label": "Insert Image",
|
|
5904
5926
|
style: {
|
|
@@ -5906,44 +5928,44 @@ var Yn = u({
|
|
|
5906
5928
|
maxWidth: "520px",
|
|
5907
5929
|
width: "100%"
|
|
5908
5930
|
},
|
|
5909
|
-
onClose:
|
|
5931
|
+
onClose: i[4] ||= (e) => t.$emit("close")
|
|
5910
5932
|
}, {
|
|
5911
|
-
default:
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5933
|
+
default: N(() => [
|
|
5934
|
+
i[9] ||= o("div", { class: "dialog__header" }, "Insert Image", -1),
|
|
5935
|
+
o("div", ds, [
|
|
5936
|
+
o("label", fs, [i[5] ||= o("span", { class: "field__label" }, "Image file", -1), o("input", {
|
|
5915
5937
|
class: "field__input",
|
|
5916
5938
|
type: "file",
|
|
5917
5939
|
accept: e.accept,
|
|
5918
5940
|
onChange: d
|
|
5919
|
-
}, null, 40,
|
|
5920
|
-
|
|
5921
|
-
"onUpdate:modelValue":
|
|
5941
|
+
}, null, 40, ps)]),
|
|
5942
|
+
o("label", ms, [i[6] ||= o("span", { class: "field__label" }, "Alt text", -1), P(o("input", {
|
|
5943
|
+
"onUpdate:modelValue": i[0] ||= (e) => c.value = e,
|
|
5922
5944
|
class: "field__input",
|
|
5923
|
-
placeholder:
|
|
5924
|
-
}, null, 8,
|
|
5925
|
-
|
|
5926
|
-
"onUpdate:modelValue":
|
|
5945
|
+
placeholder: s.value?.name ?? ""
|
|
5946
|
+
}, null, 8, hs), [[j, c.value]])]),
|
|
5947
|
+
o("div", gs, [o("label", _s, [i[7] ||= o("span", { class: "field__label" }, "Width", -1), P(o("input", {
|
|
5948
|
+
"onUpdate:modelValue": i[1] ||= (e) => l.value = e,
|
|
5927
5949
|
class: "field__input",
|
|
5928
5950
|
min: "1",
|
|
5929
5951
|
placeholder: "Auto",
|
|
5930
5952
|
type: "number"
|
|
5931
|
-
}, null, 512), [[
|
|
5932
|
-
"onUpdate:modelValue":
|
|
5953
|
+
}, null, 512), [[j, l.value]])]), o("label", vs, [i[8] ||= o("span", { class: "field__label" }, "Height", -1), P(o("input", {
|
|
5954
|
+
"onUpdate:modelValue": i[2] ||= (e) => u.value = e,
|
|
5933
5955
|
class: "field__input",
|
|
5934
5956
|
min: "1",
|
|
5935
5957
|
placeholder: "Auto",
|
|
5936
5958
|
type: "number"
|
|
5937
|
-
}, null, 512), [[
|
|
5959
|
+
}, null, 512), [[j, u.value]])])])
|
|
5938
5960
|
]),
|
|
5939
|
-
|
|
5961
|
+
o("div", ys, [o("button", {
|
|
5940
5962
|
class: "dialog__btn",
|
|
5941
|
-
onClick:
|
|
5942
|
-
}, "Cancel"),
|
|
5963
|
+
onClick: i[3] ||= (e) => t.$emit("close")
|
|
5964
|
+
}, "Cancel"), o("button", {
|
|
5943
5965
|
class: "dialog__btn dialog__btn--primary",
|
|
5944
|
-
disabled: !
|
|
5966
|
+
disabled: !s.value,
|
|
5945
5967
|
onClick: f
|
|
5946
|
-
}, " Insert ", 8,
|
|
5968
|
+
}, " Insert ", 8, bs)])
|
|
5947
5969
|
]),
|
|
5948
5970
|
_: 1
|
|
5949
5971
|
}, 8, ["open"]));
|
|
@@ -5952,7 +5974,7 @@ var Yn = u({
|
|
|
5952
5974
|
style: "single",
|
|
5953
5975
|
size: 4,
|
|
5954
5976
|
color: { rgb: e }
|
|
5955
|
-
}),
|
|
5977
|
+
}), Ss = [
|
|
5956
5978
|
{
|
|
5957
5979
|
id: "TableNormal",
|
|
5958
5980
|
name: "Normal Table",
|
|
@@ -6244,7 +6266,7 @@ var Yn = u({
|
|
|
6244
6266
|
band1Horz: { backgroundColor: "#E2EFDA" }
|
|
6245
6267
|
}
|
|
6246
6268
|
}
|
|
6247
|
-
],
|
|
6269
|
+
], Cs = {
|
|
6248
6270
|
TableNormal: "table.styles.normalTable",
|
|
6249
6271
|
TableGrid: "table.styles.tableGrid",
|
|
6250
6272
|
TableGridLight: "table.styles.gridTableLight",
|
|
@@ -6259,15 +6281,15 @@ var Yn = u({
|
|
|
6259
6281
|
"ListTable4-Accent3": "table.styles.listTable4Accent3",
|
|
6260
6282
|
"GridTable4-Accent5": "table.styles.gridTable4Accent5",
|
|
6261
6283
|
"GridTable4-Accent6": "table.styles.gridTable4Accent6"
|
|
6262
|
-
},
|
|
6263
|
-
function
|
|
6264
|
-
let t = e ?
|
|
6284
|
+
}, ws = 4, Ts = 3;
|
|
6285
|
+
function Es(e) {
|
|
6286
|
+
let t = e ? oe(e.style) : "none";
|
|
6265
6287
|
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"}`;
|
|
6266
6288
|
}
|
|
6267
|
-
function
|
|
6268
|
-
return
|
|
6289
|
+
function Ds(e, t, n, r) {
|
|
6290
|
+
return Es(e === void 0 ? t ? n ?? r : r : e);
|
|
6269
6291
|
}
|
|
6270
|
-
function
|
|
6292
|
+
function Os(e, t = ws, n = Ts) {
|
|
6271
6293
|
let r = e.look ?? {}, i = e.conditionals ?? {}, a = e.tableBorders, o = [], s = 0;
|
|
6272
6294
|
for (let e = 0; e < t; e++) {
|
|
6273
6295
|
let c = e === 0 && !!r.firstRow, l = e === t - 1 && !!r.lastRow, u = r.noHBand !== !0, d;
|
|
@@ -6280,10 +6302,10 @@ function Ds(e, t = Cs, n = ws) {
|
|
|
6280
6302
|
height: "10px",
|
|
6281
6303
|
boxSizing: "border-box",
|
|
6282
6304
|
backgroundColor: m?.backgroundColor ?? "transparent",
|
|
6283
|
-
borderTop:
|
|
6284
|
-
borderBottom:
|
|
6285
|
-
borderLeft:
|
|
6286
|
-
borderRight:
|
|
6305
|
+
borderTop: Ds(h?.top, e > 0, a?.insideH, a?.top),
|
|
6306
|
+
borderBottom: Ds(h?.bottom, e < t - 1, a?.insideH, a?.bottom),
|
|
6307
|
+
borderLeft: Ds(h?.left, s > 0, a?.insideV, a?.left),
|
|
6308
|
+
borderRight: Ds(h?.right, s < n - 1, a?.insideV, a?.right)
|
|
6287
6309
|
};
|
|
6288
6310
|
o.push(g);
|
|
6289
6311
|
}
|
|
@@ -6292,153 +6314,153 @@ function Ds(e, t = Cs, n = ws) {
|
|
|
6292
6314
|
}
|
|
6293
6315
|
//#endregion
|
|
6294
6316
|
//#region src/components/ui/TableStyleGallery.vue?vue&type=script&setup=true&lang.ts
|
|
6295
|
-
var
|
|
6317
|
+
var ks = { class: "tsg" }, As = { class: "tsg__grid" }, js = ["title", "onMousedown"], Ms = { class: "tsg__preview" }, Ns = { class: "tsg__name" }, Ps = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
6296
6318
|
__name: "TableStyleGallery",
|
|
6297
6319
|
props: { currentStyleId: {} },
|
|
6298
6320
|
emits: ["apply"],
|
|
6299
|
-
setup(
|
|
6300
|
-
let { t: n } = Z(), r =
|
|
6321
|
+
setup(t) {
|
|
6322
|
+
let { t: n } = Z(), r = Ss;
|
|
6301
6323
|
function i(e) {
|
|
6302
|
-
let t =
|
|
6324
|
+
let t = Cs[e.id];
|
|
6303
6325
|
return t ? n(t) : e.name;
|
|
6304
6326
|
}
|
|
6305
|
-
return (n,
|
|
6327
|
+
return (n, s) => (v(), a("div", ks, [o("div", As, [(v(!0), a(e, null, S(D(r), (r) => (v(), a("button", {
|
|
6306
6328
|
key: r.id,
|
|
6307
|
-
class:
|
|
6329
|
+
class: m(["tsg__item", { "tsg__item--selected": t.currentStyleId === r.id }]),
|
|
6308
6330
|
title: i(r),
|
|
6309
|
-
onMousedown:
|
|
6310
|
-
}, [
|
|
6331
|
+
onMousedown: I((e) => n.$emit("apply", r.id), ["prevent"])
|
|
6332
|
+
}, [o("div", Ms, [(v(!0), a(e, null, S(D(Os)(r), (e, t) => (v(), a("div", {
|
|
6311
6333
|
key: t,
|
|
6312
6334
|
class: "tsg__cell",
|
|
6313
|
-
style:
|
|
6314
|
-
}, null, 4))), 128))]),
|
|
6335
|
+
style: h(e)
|
|
6336
|
+
}, null, 4))), 128))]), o("span", Ns, w(i(r)), 1)], 42, js))), 128))])]));
|
|
6315
6337
|
}
|
|
6316
|
-
}), [["__scopeId", "data-v-c155c39f"]]),
|
|
6338
|
+
}), [["__scopeId", "data-v-c155c39f"]]), Fs = b({
|
|
6317
6339
|
rows: 3,
|
|
6318
6340
|
cols: 3
|
|
6319
|
-
}),
|
|
6341
|
+
}), Is = { class: "dialog__header" }, Ls = { class: "dialog__title" }, Rs = ["title"], zs = { class: "dialog__body" }, Bs = ["aria-label"], Vs = ["onMouseenter", "onMousedown"], Hs = { class: "table-grid__label" }, Us = { class: "dialog__separator" }, Ws = { class: "table-manual" }, Gs = { class: "table-manual__field" }, Ks = { class: "table-manual__field" }, qs = { class: "table-options" }, Js = { class: "table-options__radio" }, Ys = { class: "table-options__radio" }, Xs = { class: "dialog__separator" }, Zs = { class: "dialog__footer" }, Qs = ["disabled"], $s = 8, ec = 10, tc = 1, nc = 100, rc = 1, ic = 20, ac = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
6320
6342
|
__name: "InsertTableDialog",
|
|
6321
6343
|
props: { isOpen: { type: Boolean } },
|
|
6322
6344
|
emits: ["close", "insert"],
|
|
6323
|
-
setup(
|
|
6324
|
-
let { t:
|
|
6325
|
-
|
|
6326
|
-
e && (p.value =
|
|
6345
|
+
setup(t, { emit: r }) {
|
|
6346
|
+
let { t: s } = Z(), l = t, u = r, d = x(0), f = x(0), p = x(Fs.rows), h = x(Fs.cols), g = x("fixed"), _ = x(null);
|
|
6347
|
+
M(() => l.isOpen, (e) => {
|
|
6348
|
+
e && (p.value = Fs.rows, h.value = Fs.cols, d.value = 0, f.value = 0);
|
|
6327
6349
|
});
|
|
6328
|
-
let
|
|
6329
|
-
function
|
|
6350
|
+
let y = n(() => Number.parseInt(String(p.value), 10)), b = n(() => Number.parseInt(String(h.value), 10)), C = n(() => Number.isFinite(y.value) && y.value >= tc && y.value <= nc), T = n(() => Number.isFinite(b.value) && b.value >= rc && b.value <= ic), E = n(() => C.value && T.value);
|
|
6351
|
+
function O() {
|
|
6330
6352
|
u("close");
|
|
6331
6353
|
}
|
|
6332
|
-
function
|
|
6333
|
-
d.value = e, f.value = t, p.value = e,
|
|
6354
|
+
function A(e, t) {
|
|
6355
|
+
d.value = e, f.value = t, p.value = e, h.value = t;
|
|
6334
6356
|
}
|
|
6335
|
-
function
|
|
6336
|
-
e.key === "Escape" ?
|
|
6357
|
+
function N(e) {
|
|
6358
|
+
e.key === "Escape" ? O() : e.key === "Enter" && (e.preventDefault(), F());
|
|
6337
6359
|
}
|
|
6338
|
-
function
|
|
6360
|
+
function F() {
|
|
6339
6361
|
if (!E.value) return;
|
|
6340
|
-
let e = Math.min(Math.max(
|
|
6341
|
-
|
|
6362
|
+
let e = Math.min(Math.max(tc, y.value), nc), t = Math.min(Math.max(rc, b.value), ic);
|
|
6363
|
+
Fs.rows = e, Fs.cols = t, u("insert", {
|
|
6342
6364
|
rows: e,
|
|
6343
6365
|
cols: t,
|
|
6344
6366
|
autofit: g.value === "autofit",
|
|
6345
6367
|
styleId: _.value
|
|
6346
|
-
}),
|
|
6368
|
+
}), O();
|
|
6347
6369
|
}
|
|
6348
|
-
return (n, r) =>
|
|
6370
|
+
return (n, r) => t.isOpen ? (v(), a("div", {
|
|
6349
6371
|
key: 0,
|
|
6350
6372
|
class: "dialog-overlay",
|
|
6351
|
-
onMousedown:
|
|
6352
|
-
}, [
|
|
6373
|
+
onMousedown: I(O, ["self"])
|
|
6374
|
+
}, [o("div", {
|
|
6353
6375
|
class: "dialog",
|
|
6354
|
-
onMousedown: r[7] ||=
|
|
6355
|
-
onKeydown:
|
|
6376
|
+
onMousedown: r[7] ||= I(() => {}, ["stop"]),
|
|
6377
|
+
onKeydown: I(N, ["stop"])
|
|
6356
6378
|
}, [
|
|
6357
|
-
|
|
6379
|
+
o("div", Is, [o("span", Ls, w(D(s)("dialogs.insertTable.title")), 1), o("button", {
|
|
6358
6380
|
class: "dialog__close",
|
|
6359
|
-
title:
|
|
6360
|
-
onClick:
|
|
6361
|
-
}, "✕", 8,
|
|
6362
|
-
|
|
6363
|
-
|
|
6381
|
+
title: D(s)("common.closeDialog"),
|
|
6382
|
+
onClick: O
|
|
6383
|
+
}, "✕", 8, Rs)]),
|
|
6384
|
+
o("div", zs, [
|
|
6385
|
+
o("div", {
|
|
6364
6386
|
class: "table-grid",
|
|
6365
|
-
"aria-label":
|
|
6387
|
+
"aria-label": D(s)("dialogs.insertTable.sizeSelector"),
|
|
6366
6388
|
onMouseleave: r[0] ||= (e) => {
|
|
6367
6389
|
d.value = 0, f.value = 0;
|
|
6368
6390
|
}
|
|
6369
|
-
}, [(
|
|
6370
|
-
key: e,
|
|
6371
|
-
class: "table-grid__row"
|
|
6372
|
-
}, [(y(), o(t, null, C($s, (t) => s("div", {
|
|
6391
|
+
}, [(v(), a(e, null, S($s, (t) => o("div", {
|
|
6373
6392
|
key: t,
|
|
6374
|
-
class:
|
|
6393
|
+
class: "table-grid__row"
|
|
6394
|
+
}, [(v(), a(e, null, S(ec, (e) => o("div", {
|
|
6395
|
+
key: e,
|
|
6396
|
+
class: m(["table-grid__cell", { highlight: t <= d.value && e <= f.value }]),
|
|
6375
6397
|
onMouseenter: (n) => {
|
|
6376
|
-
d.value =
|
|
6398
|
+
d.value = t, f.value = e;
|
|
6377
6399
|
},
|
|
6378
|
-
onMousedown:
|
|
6379
|
-
}, null, 42,
|
|
6380
|
-
|
|
6400
|
+
onMousedown: I((n) => A(t, e), ["prevent"])
|
|
6401
|
+
}, null, 42, Vs)), 64))])), 64))], 40, Bs),
|
|
6402
|
+
o("div", Hs, w(d.value > 0 ? D(s)("dialogs.insertTable.tableSize", {
|
|
6381
6403
|
cols: f.value,
|
|
6382
6404
|
rows: d.value
|
|
6383
|
-
}) :
|
|
6384
|
-
|
|
6385
|
-
|
|
6405
|
+
}) : D(s)("dialogs.insertTable.hoverToSelect")), 1),
|
|
6406
|
+
o("div", Us, [o("span", null, w(D(s)("dialogs.insertTable.orSpecifySize")), 1)]),
|
|
6407
|
+
o("div", Ws, [o("label", Gs, [o("span", null, w(D(s)("dialogs.insertTable.rowsLabel")), 1), P(o("input", {
|
|
6386
6408
|
"onUpdate:modelValue": r[1] ||= (e) => p.value = e,
|
|
6387
6409
|
type: "number",
|
|
6388
|
-
min:
|
|
6389
|
-
max:
|
|
6390
|
-
class:
|
|
6391
|
-
}, null, 2), [[
|
|
6392
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
6410
|
+
min: tc,
|
|
6411
|
+
max: nc,
|
|
6412
|
+
class: m(["table-manual__input", { "table-manual__input--invalid": !C.value }])
|
|
6413
|
+
}, null, 2), [[j, p.value]])]), o("label", Ks, [o("span", null, w(D(s)("dialogs.insertTable.columnsLabel")), 1), P(o("input", {
|
|
6414
|
+
"onUpdate:modelValue": r[2] ||= (e) => h.value = e,
|
|
6393
6415
|
type: "number",
|
|
6394
|
-
min:
|
|
6395
|
-
max:
|
|
6396
|
-
class:
|
|
6397
|
-
}, null, 2), [[
|
|
6398
|
-
|
|
6399
|
-
minRows:
|
|
6400
|
-
maxRows:
|
|
6401
|
-
minCols:
|
|
6402
|
-
maxCols:
|
|
6416
|
+
min: rc,
|
|
6417
|
+
max: ic,
|
|
6418
|
+
class: m(["table-manual__input", { "table-manual__input--invalid": !T.value }])
|
|
6419
|
+
}, null, 2), [[j, h.value]])])]),
|
|
6420
|
+
o("div", { class: m(["table-manual__hint", { "table-manual__hint--error": !E.value }]) }, w(D(s)("dialogs.insertTable.validationHint", {
|
|
6421
|
+
minRows: tc,
|
|
6422
|
+
maxRows: nc,
|
|
6423
|
+
minCols: rc,
|
|
6424
|
+
maxCols: ic
|
|
6403
6425
|
})), 3),
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6426
|
+
o("fieldset", qs, [
|
|
6427
|
+
o("legend", null, w(D(s)("dialogs.insertTable.columnWidthLabel")), 1),
|
|
6428
|
+
o("label", Js, [P(o("input", {
|
|
6407
6429
|
type: "radio",
|
|
6408
6430
|
value: "fixed",
|
|
6409
6431
|
"onUpdate:modelValue": r[3] ||= (e) => g.value = e
|
|
6410
|
-
}, null, 512), [[
|
|
6411
|
-
|
|
6432
|
+
}, null, 512), [[k, g.value]]), o("span", null, w(D(s)("dialogs.insertTable.fixedWidth")), 1)]),
|
|
6433
|
+
o("label", Ys, [P(o("input", {
|
|
6412
6434
|
type: "radio",
|
|
6413
6435
|
value: "autofit",
|
|
6414
6436
|
"onUpdate:modelValue": r[4] ||= (e) => g.value = e
|
|
6415
|
-
}, null, 512), [[
|
|
6437
|
+
}, null, 512), [[k, g.value]]), o("span", null, w(D(s)("dialogs.insertTable.autofit")), 1)])
|
|
6416
6438
|
]),
|
|
6417
|
-
|
|
6418
|
-
|
|
6439
|
+
o("div", Xs, [o("span", null, w(D(s)("dialogs.insertTable.style")), 1)]),
|
|
6440
|
+
c(Ps, {
|
|
6419
6441
|
"current-style-id": _.value,
|
|
6420
6442
|
onApply: r[5] ||= (e) => _.value = e
|
|
6421
6443
|
}, null, 8, ["current-style-id"])
|
|
6422
6444
|
]),
|
|
6423
|
-
|
|
6445
|
+
o("div", Zs, [o("button", {
|
|
6424
6446
|
class: "dialog__btn",
|
|
6425
|
-
onMousedown:
|
|
6426
|
-
},
|
|
6447
|
+
onMousedown: I(O, ["prevent"])
|
|
6448
|
+
}, w(D(s)("common.cancel")), 33), o("button", {
|
|
6427
6449
|
class: "dialog__btn dialog__btn--primary",
|
|
6428
6450
|
disabled: !E.value,
|
|
6429
|
-
onMousedown: r[6] ||=
|
|
6430
|
-
},
|
|
6431
|
-
], 32)], 32)) :
|
|
6451
|
+
onMousedown: r[6] ||= I((e) => F(), ["prevent"])
|
|
6452
|
+
}, w(D(s)("dialogs.insertTable.insertButton")), 41, Qs)])
|
|
6453
|
+
], 32)], 32)) : i("", !0);
|
|
6432
6454
|
}
|
|
6433
|
-
}), [["__scopeId", "data-v-cc53b9fa"]]),
|
|
6455
|
+
}), [["__scopeId", "data-v-cc53b9fa"]]), oc = { class: "dialog__body" }, sc = { class: "options" }, cc = ["value"], lc = { class: "option__body" }, uc = { class: "option__label" }, dc = { class: "option__description" }, fc = { class: "dialog__footer" }, pc = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
6434
6456
|
__name: "PasteSpecialDialog",
|
|
6435
6457
|
props: {
|
|
6436
6458
|
isOpen: { type: Boolean },
|
|
6437
6459
|
defaultMode: { default: "plainText" }
|
|
6438
6460
|
},
|
|
6439
6461
|
emits: ["close", "paste"],
|
|
6440
|
-
setup(
|
|
6441
|
-
let { Dialog:
|
|
6462
|
+
setup(t, { emit: n }) {
|
|
6463
|
+
let { Dialog: i } = Q(), s = [
|
|
6442
6464
|
{
|
|
6443
6465
|
value: "keepFormatting",
|
|
6444
6466
|
label: "Keep source formatting",
|
|
@@ -6454,15 +6476,15 @@ var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMoused
|
|
|
6454
6476
|
label: "Unformatted text",
|
|
6455
6477
|
description: "Paste text only and use the destination formatting."
|
|
6456
6478
|
}
|
|
6457
|
-
], c =
|
|
6458
|
-
|
|
6479
|
+
], c = t, l = n, u = x(c.defaultMode);
|
|
6480
|
+
M(() => c.isOpen, (e) => {
|
|
6459
6481
|
e && (u.value = c.defaultMode);
|
|
6460
6482
|
});
|
|
6461
6483
|
function d() {
|
|
6462
6484
|
l("paste", u.value), l("close");
|
|
6463
6485
|
}
|
|
6464
|
-
return (n, c) => (
|
|
6465
|
-
open:
|
|
6486
|
+
return (n, c) => (v(), r(D(i), {
|
|
6487
|
+
open: t.isOpen,
|
|
6466
6488
|
"aria-label": "Paste Special",
|
|
6467
6489
|
style: {
|
|
6468
6490
|
minWidth: "360px",
|
|
@@ -6471,20 +6493,20 @@ var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMoused
|
|
|
6471
6493
|
},
|
|
6472
6494
|
onClose: c[2] ||= (e) => n.$emit("close")
|
|
6473
6495
|
}, {
|
|
6474
|
-
default:
|
|
6475
|
-
c[4] ||=
|
|
6476
|
-
|
|
6496
|
+
default: N(() => [
|
|
6497
|
+
c[4] ||= o("div", { class: "dialog__header" }, "Paste Special", -1),
|
|
6498
|
+
o("div", oc, [o("fieldset", sc, [c[3] ||= o("legend", { class: "options__legend" }, "Paste mode", -1), (v(), a(e, null, S(s, (e) => o("label", {
|
|
6477
6499
|
key: e.value,
|
|
6478
6500
|
class: "option"
|
|
6479
|
-
}, [
|
|
6501
|
+
}, [P(o("input", {
|
|
6480
6502
|
"onUpdate:modelValue": c[0] ||= (e) => u.value = e,
|
|
6481
6503
|
type: "radio",
|
|
6482
6504
|
value: e.value
|
|
6483
|
-
}, null, 8,
|
|
6484
|
-
|
|
6505
|
+
}, null, 8, cc), [[k, u.value]]), o("span", lc, [o("span", uc, w(e.label), 1), o("span", dc, w(e.description), 1)])])), 64))])]),
|
|
6506
|
+
o("div", fc, [o("button", {
|
|
6485
6507
|
class: "dialog__btn",
|
|
6486
6508
|
onClick: c[1] ||= (e) => n.$emit("close")
|
|
6487
|
-
}, "Cancel"),
|
|
6509
|
+
}, "Cancel"), o("button", {
|
|
6488
6510
|
class: "dialog__btn dialog__btn--primary",
|
|
6489
6511
|
onClick: d
|
|
6490
6512
|
}, "Paste")])
|
|
@@ -6492,7 +6514,7 @@ var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMoused
|
|
|
6492
6514
|
_: 1
|
|
6493
6515
|
}, 8, ["open"]));
|
|
6494
6516
|
}
|
|
6495
|
-
}), [["__scopeId", "data-v-540e9db3"]]),
|
|
6517
|
+
}), [["__scopeId", "data-v-540e9db3"]]), mc = { class: "dialog__body" }, hc = { class: "grid" }, gc = { class: "field" }, _c = { class: "field" }, vc = { class: "check" }, yc = { class: "dialog__footer" }, bc = ["disabled"], xc = 1, Sc = 63, Cc = /*#__PURE__*/ U(/* @__PURE__ */ l({
|
|
6496
6518
|
__name: "SplitCellDialog",
|
|
6497
6519
|
props: {
|
|
6498
6520
|
isOpen: { type: Boolean },
|
|
@@ -6501,21 +6523,21 @@ var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMoused
|
|
|
6501
6523
|
},
|
|
6502
6524
|
emits: ["close", "split"],
|
|
6503
6525
|
setup(e, { emit: t }) {
|
|
6504
|
-
let { Dialog:
|
|
6505
|
-
|
|
6526
|
+
let { Dialog: i } = Q(), a = e, s = t, c = x(a.defaultRows), l = x(a.defaultColumns), u = x(!1), d = n(() => h(c.value)), f = n(() => h(l.value)), p = n(() => d.value > 1 || f.value > 1);
|
|
6527
|
+
M(() => a.isOpen, (e) => {
|
|
6506
6528
|
e && (c.value = a.defaultRows, l.value = a.defaultColumns, u.value = !1);
|
|
6507
6529
|
});
|
|
6508
6530
|
function m() {
|
|
6509
|
-
p.value && (
|
|
6531
|
+
p.value && (s("split", {
|
|
6510
6532
|
rows: d.value,
|
|
6511
6533
|
columns: f.value,
|
|
6512
6534
|
mergeBeforeSplit: u.value
|
|
6513
|
-
}),
|
|
6535
|
+
}), s("close"));
|
|
6514
6536
|
}
|
|
6515
6537
|
function h(e) {
|
|
6516
|
-
return Math.min(
|
|
6538
|
+
return Math.min(Sc, Math.max(xc, Math.trunc(e)));
|
|
6517
6539
|
}
|
|
6518
|
-
return (t,
|
|
6540
|
+
return (t, n) => (v(), r(D(i), {
|
|
6519
6541
|
open: e.isOpen,
|
|
6520
6542
|
"aria-label": "Split Cell",
|
|
6521
6543
|
style: {
|
|
@@ -6523,49 +6545,49 @@ var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMoused
|
|
|
6523
6545
|
maxWidth: "520px",
|
|
6524
6546
|
width: "100%"
|
|
6525
6547
|
},
|
|
6526
|
-
onClose:
|
|
6527
|
-
onKeydown:
|
|
6548
|
+
onClose: n[4] ||= (e) => t.$emit("close"),
|
|
6549
|
+
onKeydown: F(m, ["enter"])
|
|
6528
6550
|
}, {
|
|
6529
|
-
default:
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
"onUpdate:modelValue":
|
|
6551
|
+
default: N(() => [
|
|
6552
|
+
n[8] ||= o("div", { class: "dialog__header" }, "Split Cell", -1),
|
|
6553
|
+
o("div", mc, [o("div", hc, [o("label", gc, [n[5] ||= o("span", { class: "field__label" }, "Columns", -1), P(o("input", {
|
|
6554
|
+
"onUpdate:modelValue": n[0] ||= (e) => l.value = e,
|
|
6533
6555
|
class: "field__input",
|
|
6534
|
-
max:
|
|
6535
|
-
min:
|
|
6556
|
+
max: Sc,
|
|
6557
|
+
min: xc,
|
|
6536
6558
|
type: "number"
|
|
6537
6559
|
}, null, 512), [[
|
|
6538
|
-
|
|
6560
|
+
j,
|
|
6539
6561
|
l.value,
|
|
6540
6562
|
void 0,
|
|
6541
6563
|
{ number: !0 }
|
|
6542
|
-
]])]),
|
|
6543
|
-
"onUpdate:modelValue":
|
|
6564
|
+
]])]), o("label", _c, [n[6] ||= o("span", { class: "field__label" }, "Rows", -1), P(o("input", {
|
|
6565
|
+
"onUpdate:modelValue": n[1] ||= (e) => c.value = e,
|
|
6544
6566
|
class: "field__input",
|
|
6545
|
-
max:
|
|
6546
|
-
min:
|
|
6567
|
+
max: Sc,
|
|
6568
|
+
min: xc,
|
|
6547
6569
|
type: "number"
|
|
6548
6570
|
}, null, 512), [[
|
|
6549
|
-
|
|
6571
|
+
j,
|
|
6550
6572
|
c.value,
|
|
6551
6573
|
void 0,
|
|
6552
6574
|
{ number: !0 }
|
|
6553
|
-
]])])]),
|
|
6554
|
-
"onUpdate:modelValue":
|
|
6575
|
+
]])])]), o("label", vc, [P(o("input", {
|
|
6576
|
+
"onUpdate:modelValue": n[2] ||= (e) => u.value = e,
|
|
6555
6577
|
type: "checkbox"
|
|
6556
|
-
}, null, 512), [[
|
|
6557
|
-
|
|
6578
|
+
}, null, 512), [[O, u.value]]), n[7] ||= o("span", null, "Merge selected cells before splitting", -1)])]),
|
|
6579
|
+
o("div", yc, [o("button", {
|
|
6558
6580
|
class: "dialog__btn",
|
|
6559
|
-
onClick:
|
|
6560
|
-
}, "Cancel"),
|
|
6581
|
+
onClick: n[3] ||= (e) => t.$emit("close")
|
|
6582
|
+
}, "Cancel"), o("button", {
|
|
6561
6583
|
class: "dialog__btn dialog__btn--primary",
|
|
6562
6584
|
disabled: !p.value,
|
|
6563
6585
|
onClick: m
|
|
6564
|
-
}, " Split ", 8,
|
|
6586
|
+
}, " Split ", 8, bc)])
|
|
6565
6587
|
]),
|
|
6566
6588
|
_: 1
|
|
6567
6589
|
}, 8, ["open"]));
|
|
6568
6590
|
}
|
|
6569
6591
|
}), [["__scopeId", "data-v-c4c6621c"]]);
|
|
6570
6592
|
//#endregion
|
|
6571
|
-
export { Ht as A, Tn as C, _n as D, yn as E,
|
|
6593
|
+
export { Ht as A, Tn as C, _n as D, yn as E, U as F, Kt as M, Z as N, Qt as O, K as P, Pn as S, xn as T, Jn as _, xs as a, Wn as b, Fa as c, Ei as d, si as f, Yn as g, Gn as h, Ps as i, qt as j, Xt as k, ha as l, ir as m, pc as n, us as o, jr as p, ac as r, _o as s, Cc as t, $i as u, qn as v, Cn as w, Bn as x, Q as y };
|