@harbour-enterprises/superdoc 0.20.0-next.5 → 0.20.0-next.7
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/chunks/{PdfViewer-DcPZsBsK.es.js → PdfViewer-BYyZViQt.es.js} +1 -1
- package/dist/chunks/{PdfViewer-Blwty0A0.cjs → PdfViewer-DXtnxGoU.cjs} +1 -1
- package/dist/chunks/{index-BB5vhzVT.cjs → index-CMBPzhIR.cjs} +2 -2
- package/dist/chunks/{index-BZzn2Rcn.es.js → index-CqLcgYHG.es.js} +2 -2
- package/dist/chunks/{super-editor.es-BgBNGRxg.cjs → super-editor.es-5O71lyiI.cjs} +815 -471
- package/dist/chunks/{super-editor.es-BTcVSa_f.es.js → super-editor.es-BTalhwn-.es.js} +815 -471
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BPTfSIJf.js → converter-kutpjDQU.js} +687 -470
- package/dist/super-editor/chunks/{docx-zipper-ikgI-2vM.js → docx-zipper-BjcI24VU.js} +1 -1
- package/dist/super-editor/chunks/{editor-hh7sL4Wv.js → editor-CQMKOaY4.js} +134 -9
- package/dist/super-editor/chunks/{toolbar-B-apzt27.js → toolbar-Cp6gL4i5.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/src/core/super-converter/v2/importer/tableImporter.d.ts +0 -22
- package/dist/super-editor/src/core/super-converter/v3/handlers/utils.d.ts +10 -3
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/bidiVisual-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/end-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/marginEnd-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/gridCol-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/insideH-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/insideV-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/left-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/marginLeft-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/marginRight-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/right-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/shd-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/marginStart-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/start-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts +28 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/tblBorders-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/tblCaption-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/tblCellMar-translator.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/tblDescription-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/tblInd-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/tblLayout-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/tblLook-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/tblOverlap-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/tblPr-translator.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/tblStyle-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/tblStyleColBandSize-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/tblStyleRowBandSize-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/tblW-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/tblpPr-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tc/helpers/legacy-handle-table-cell-node.d.ts +1 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/marginTop-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/top-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +3 -1
- package/dist/super-editor/src/extensions/image/imageHelpers/fileNameUtils.d.ts +3 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/table/table.d.ts +330 -0
- package/dist/super-editor/super-editor.es.js +8 -8
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +815 -471
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tblPr-translator.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tblStyle-translator.js";
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/tblStyle-translator.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the tblStyle element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 454
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tblStyleColBandSize-translator.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the tblStyleColBandSize element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 657
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tblStyleRowBandSize-translator.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the tblStyleRowBandSize element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 660
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tblW-translator.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the tblW element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 455
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tblpPr-translator.js";
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/tblpPr-translator.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the tblpPr element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 442
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @param {Object} options
|
|
3
3
|
* @returns {{type: string, content: (*|*[]), attrs: {}}}
|
|
4
4
|
*/
|
|
5
|
-
export function handleTableCellNode({ params, node, table, row, rowBorders, styleTag, columnIndex, columnWidth, }: any): {
|
|
5
|
+
export function handleTableCellNode({ params, node, table, row, rowBorders, styleTag, columnIndex, columnWidth, allColumnWidths, }: any): {
|
|
6
6
|
type: string;
|
|
7
7
|
content: (any | any[]);
|
|
8
8
|
attrs: {};
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/marginTop-translator.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the top element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 469
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the top element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 468
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -21,7 +21,7 @@ export const TranslatorTypes: Readonly<{
|
|
|
21
21
|
*/
|
|
22
22
|
/** @typedef {import('../../v2/importer/types').NodeHandlerParams} SCEncoderConfig */
|
|
23
23
|
/** @typedef {import('../../v2/types').SuperDocNode} SCEncoderResult */
|
|
24
|
-
/** @typedef {{ node: { attrs?: any, marks?: any[], type: string }, children?: any[], relationships?: any[] }} SCDecoderConfig */
|
|
24
|
+
/** @typedef {{ node: { attrs?: any, marks?: any[], type: string, content?: any[] }, children?: any[], relationships?: any[], extraParams?: Record<string, any> }} SCDecoderConfig */
|
|
25
25
|
/** @typedef {{ name: string, attributes?: any, elements: any[] }} SCDecoderResult */
|
|
26
26
|
/**
|
|
27
27
|
* @callback NodeTranslatorEncodeFn
|
|
@@ -150,9 +150,11 @@ export type SCDecoderConfig = {
|
|
|
150
150
|
attrs?: any;
|
|
151
151
|
marks?: any[];
|
|
152
152
|
type: string;
|
|
153
|
+
content?: any[];
|
|
153
154
|
};
|
|
154
155
|
children?: any[];
|
|
155
156
|
relationships?: any[];
|
|
157
|
+
extraParams?: Record<string, any>;
|
|
156
158
|
};
|
|
157
159
|
export type SCDecoderResult = {
|
|
158
160
|
name: string;
|
|
@@ -135,4 +135,334 @@ export type CurrentCellInfo = {
|
|
|
135
135
|
*/
|
|
136
136
|
attrs: any;
|
|
137
137
|
};
|
|
138
|
+
/**
|
|
139
|
+
* Theme color options
|
|
140
|
+
*/
|
|
141
|
+
export type ThemeColor = "dark1" | "light1" | "dark2" | "light2" | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "hyperlink" | "followedHyperlink" | "none" | "background1" | "text1" | "background2" | "text2";
|
|
142
|
+
/**
|
|
143
|
+
* Shading pattern options
|
|
144
|
+
*/
|
|
145
|
+
export type ShadingPattern = "nil" | "clear" | "solid" | "horzStripe" | "vertStripe" | "reverseDiagStripe" | "diagStripe" | "horzCross" | "diagCross" | "thinHorzStripe" | "thinVertStripe" | "thinReverseDiagStripe" | "thinDiagStripe" | "thinHorzCross" | "thinDiagCross";
|
|
146
|
+
/**
|
|
147
|
+
* Shading properties
|
|
148
|
+
*/
|
|
149
|
+
export type ShadingProperties = {
|
|
150
|
+
/**
|
|
151
|
+
* - Shading color (hex without # or "auto" for automatic)
|
|
152
|
+
*/
|
|
153
|
+
color?: string | "auto";
|
|
154
|
+
/**
|
|
155
|
+
* - Shading fill color (hex without # or "auto" for automatic)
|
|
156
|
+
*/
|
|
157
|
+
fill?: string | "auto";
|
|
158
|
+
/**
|
|
159
|
+
* - Theme color name
|
|
160
|
+
*/
|
|
161
|
+
themeColor?: ThemeColor;
|
|
162
|
+
/**
|
|
163
|
+
* - Theme fill name
|
|
164
|
+
*/
|
|
165
|
+
themeFill?: ThemeColor;
|
|
166
|
+
/**
|
|
167
|
+
* - Theme fill shade (0-255 in hex format without #)
|
|
168
|
+
*/
|
|
169
|
+
themeFillShade?: string;
|
|
170
|
+
/**
|
|
171
|
+
* - Theme fill tint (0-255 in hex format without #)
|
|
172
|
+
*/
|
|
173
|
+
themeFillTint?: string;
|
|
174
|
+
/**
|
|
175
|
+
* - Theme shade (0-255 in hex format without #)
|
|
176
|
+
*/
|
|
177
|
+
themeShade?: string;
|
|
178
|
+
/**
|
|
179
|
+
* - Theme tint (0-255 in hex format without #)
|
|
180
|
+
*/
|
|
181
|
+
themeTint?: string;
|
|
182
|
+
/**
|
|
183
|
+
* - Shading pattern
|
|
184
|
+
*/
|
|
185
|
+
val?: ShadingPattern;
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* Table width options
|
|
189
|
+
*/
|
|
190
|
+
export type TableMeasurement = {
|
|
191
|
+
/**
|
|
192
|
+
* - Width value in twips
|
|
193
|
+
*/
|
|
194
|
+
value: number;
|
|
195
|
+
/**
|
|
196
|
+
* - Table width type (dxa=twips, pct=percentage, auto=automatic)
|
|
197
|
+
*/
|
|
198
|
+
type?: "dxa" | "pct" | "auto";
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* Table look options
|
|
202
|
+
*/
|
|
203
|
+
export type TableLook = {
|
|
204
|
+
/**
|
|
205
|
+
* - Specifies that the first column conditional formatting should be applied
|
|
206
|
+
*/
|
|
207
|
+
firstColumn?: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* - Specifies that the first row conditional formatting should be applied
|
|
210
|
+
*/
|
|
211
|
+
firstRow?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* - Specifies that the last column conditional formatting should be applied
|
|
214
|
+
*/
|
|
215
|
+
lastColumn?: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* - Specifies that the last row conditional formatting should be applied
|
|
218
|
+
*/
|
|
219
|
+
lastRow?: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* - Specifies that no horizontal banding conditional formatting should be applied
|
|
222
|
+
*/
|
|
223
|
+
noHBand?: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* - Specifies that no vertical banding conditional formatting should be applied
|
|
226
|
+
*/
|
|
227
|
+
noVBand?: boolean;
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* Floating table properties
|
|
231
|
+
*/
|
|
232
|
+
export type FloatingTableProperties = {
|
|
233
|
+
/**
|
|
234
|
+
* - Specifies the minimum distance in twips which shall be maintained between the current floating table and the edge of text in the paragraph which is to the left of this floating table.
|
|
235
|
+
*/
|
|
236
|
+
leftFromText?: number;
|
|
237
|
+
/**
|
|
238
|
+
* - Specifies the minimum distance in twips which shall be maintained between the current floating table and the edge of text in the paragraph which is to the right of this floating table.
|
|
239
|
+
*/
|
|
240
|
+
rightFromText?: number;
|
|
241
|
+
/**
|
|
242
|
+
* - Specifies the minimum distance in twips which shall be maintained between the current floating table and the bottom edge of text in the paragraph which is above this floating table.
|
|
243
|
+
*/
|
|
244
|
+
topFromText?: number;
|
|
245
|
+
/**
|
|
246
|
+
* - Specifies the minimum distance in twips which shall be maintained between the current floating table and the top edge of text in the paragraph which is below this floating table.
|
|
247
|
+
*/
|
|
248
|
+
bottomFromText?: number;
|
|
249
|
+
/**
|
|
250
|
+
* - Specifies and absolute horizontal position for the floating table. The position is measured from the horizontal anchor point (horzAnchor) in twips.
|
|
251
|
+
*/
|
|
252
|
+
tblpX?: number;
|
|
253
|
+
/**
|
|
254
|
+
* - Specifies and absolute vertical position for the floating table. The position is measured from the vertical anchor point (vertAnchor) in twips.
|
|
255
|
+
*/
|
|
256
|
+
tblpY?: number;
|
|
257
|
+
/**
|
|
258
|
+
* - Horizontal anchor point for tblpX
|
|
259
|
+
*/
|
|
260
|
+
horzAnchor?: "margin" | "page" | "text";
|
|
261
|
+
/**
|
|
262
|
+
* - Vertical anchor point for tblpY
|
|
263
|
+
*/
|
|
264
|
+
vertAnchor?: "margin" | "page" | "text";
|
|
265
|
+
/**
|
|
266
|
+
* - Specifies a relative horizontal position for the floating table. Supercedes tblpX if both are specified.
|
|
267
|
+
*/
|
|
268
|
+
tblpXSpec?: "left" | "center" | "right" | "inside" | "outside";
|
|
269
|
+
/**
|
|
270
|
+
* - Specifies a relative vertical position for the floating table. Supercedes tblpY if both are specified.
|
|
271
|
+
*/
|
|
272
|
+
tblpYSpec?: "inline" | "top" | "center" | "bottom" | "inside" | "outside";
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* Table border specification
|
|
276
|
+
*/
|
|
277
|
+
export type TableBorderSpec = {
|
|
278
|
+
/**
|
|
279
|
+
* - Border style (e.g., 'single', 'double', 'dashed', etc.)
|
|
280
|
+
*/
|
|
281
|
+
val?: string;
|
|
282
|
+
/**
|
|
283
|
+
* - Border color (hex without #, e.g., 'FF0000' for red)
|
|
284
|
+
*/
|
|
285
|
+
color?: string;
|
|
286
|
+
/**
|
|
287
|
+
* - Theme color name
|
|
288
|
+
*/
|
|
289
|
+
themeColor?: ThemeColor;
|
|
290
|
+
/**
|
|
291
|
+
* - Theme tint (0-255 in hex format without #)
|
|
292
|
+
*/
|
|
293
|
+
themeTint?: string;
|
|
294
|
+
/**
|
|
295
|
+
* - Theme shade (0-255 in hex format without #)
|
|
296
|
+
*/
|
|
297
|
+
themeShade?: string;
|
|
298
|
+
/**
|
|
299
|
+
* - Border size in eighths of a point (e.g., 8 = 1pt, 16 = 2pt)
|
|
300
|
+
*/
|
|
301
|
+
size?: number;
|
|
302
|
+
/**
|
|
303
|
+
* - Space in points between border and text
|
|
304
|
+
*/
|
|
305
|
+
space?: number;
|
|
306
|
+
/**
|
|
307
|
+
* - Whether the border has a shadow
|
|
308
|
+
*/
|
|
309
|
+
shadow?: boolean;
|
|
310
|
+
/**
|
|
311
|
+
* - Whether the border is a frame
|
|
312
|
+
*/
|
|
313
|
+
frame?: boolean;
|
|
314
|
+
};
|
|
315
|
+
/**
|
|
316
|
+
* Table borders properties
|
|
317
|
+
*/
|
|
318
|
+
export type TableBorders = {
|
|
319
|
+
/**
|
|
320
|
+
* - Bottom border specification
|
|
321
|
+
*/
|
|
322
|
+
bottom?: TableBorderSpec;
|
|
323
|
+
/**
|
|
324
|
+
* - End (right in LTR, left in RTL) border specification
|
|
325
|
+
*/
|
|
326
|
+
end?: TableBorderSpec;
|
|
327
|
+
/**
|
|
328
|
+
* - Inside horizontal border specification
|
|
329
|
+
*/
|
|
330
|
+
insideH?: TableBorderSpec;
|
|
331
|
+
/**
|
|
332
|
+
* - Inside vertical border specification
|
|
333
|
+
*/
|
|
334
|
+
insideV?: TableBorderSpec;
|
|
335
|
+
/**
|
|
336
|
+
* - Left border specification
|
|
337
|
+
*/
|
|
338
|
+
left?: TableBorderSpec;
|
|
339
|
+
/**
|
|
340
|
+
* - Right border specification
|
|
341
|
+
*/
|
|
342
|
+
right?: TableBorderSpec;
|
|
343
|
+
/**
|
|
344
|
+
* - Start (left in LTR, right in RTL) border specification
|
|
345
|
+
*/
|
|
346
|
+
start?: TableBorderSpec;
|
|
347
|
+
/**
|
|
348
|
+
* - Top border specification
|
|
349
|
+
*/
|
|
350
|
+
top?: TableBorderSpec;
|
|
351
|
+
};
|
|
352
|
+
/**
|
|
353
|
+
* Table cell margin properties
|
|
354
|
+
*/
|
|
355
|
+
export type TableCellMargins = {
|
|
356
|
+
/**
|
|
357
|
+
* - Top cell margin
|
|
358
|
+
*/
|
|
359
|
+
top?: TableMeasurement;
|
|
360
|
+
/**
|
|
361
|
+
* - Left cell margin
|
|
362
|
+
*/
|
|
363
|
+
left?: TableMeasurement;
|
|
364
|
+
/**
|
|
365
|
+
* - Bottom cell margin
|
|
366
|
+
*/
|
|
367
|
+
bottom?: TableMeasurement;
|
|
368
|
+
/**
|
|
369
|
+
* - Start cell margin (left in LTR, right in RTL)
|
|
370
|
+
*/
|
|
371
|
+
start?: TableMeasurement;
|
|
372
|
+
/**
|
|
373
|
+
* - End cell margin (right in LTR, left in RTL)
|
|
374
|
+
*/
|
|
375
|
+
end?: TableMeasurement;
|
|
376
|
+
/**
|
|
377
|
+
* - Right cell margin
|
|
378
|
+
*/
|
|
379
|
+
right?: TableMeasurement;
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* Table properties
|
|
383
|
+
*/
|
|
384
|
+
export type TableProperties = {
|
|
385
|
+
/**
|
|
386
|
+
* - Specifies that the cells with this table shall be visually represented in a right to left direction
|
|
387
|
+
*/
|
|
388
|
+
rightToLeft?: boolean;
|
|
389
|
+
/**
|
|
390
|
+
* - The alignment of the set of rows which are part of the current table.
|
|
391
|
+
*/
|
|
392
|
+
justification?: "center" | "end" | "left" | "right" | "start";
|
|
393
|
+
/**
|
|
394
|
+
* - Shading properties for the table
|
|
395
|
+
*/
|
|
396
|
+
shading?: ShadingProperties;
|
|
397
|
+
/**
|
|
398
|
+
* - Caption text for the table
|
|
399
|
+
*/
|
|
400
|
+
caption?: string;
|
|
401
|
+
/**
|
|
402
|
+
* - Description text for the table
|
|
403
|
+
*/
|
|
404
|
+
description?: string;
|
|
405
|
+
/**
|
|
406
|
+
* - Cell spacing
|
|
407
|
+
*/
|
|
408
|
+
tableCellSpacing?: TableMeasurement;
|
|
409
|
+
/**
|
|
410
|
+
* - Table indentation
|
|
411
|
+
*/
|
|
412
|
+
tableIndent?: TableMeasurement;
|
|
413
|
+
/**
|
|
414
|
+
* - Table layout algorithm
|
|
415
|
+
*/
|
|
416
|
+
tableLayout?: "fixed" | "autofit";
|
|
417
|
+
/**
|
|
418
|
+
* - Various boolean flags that affect the rendering of the table
|
|
419
|
+
*/
|
|
420
|
+
tableLook?: TableLook;
|
|
421
|
+
/**
|
|
422
|
+
* - Specifies whether the current table should allow other floating tables to overlap its extents when the tables are displayed in a document
|
|
423
|
+
*/
|
|
424
|
+
overlap?: "never" | "overlap";
|
|
425
|
+
/**
|
|
426
|
+
* - Reference to table style ID
|
|
427
|
+
*/
|
|
428
|
+
tableStyleId?: string;
|
|
429
|
+
/**
|
|
430
|
+
* - Number of columns for which the table style is applied
|
|
431
|
+
*/
|
|
432
|
+
tableStyleColBandSize?: number;
|
|
433
|
+
/**
|
|
434
|
+
* - Number of rows for which the table style is applied
|
|
435
|
+
*/
|
|
436
|
+
tableStyleRowBandSize?: number;
|
|
437
|
+
/**
|
|
438
|
+
* - Table width
|
|
439
|
+
*/
|
|
440
|
+
tableWidth?: TableMeasurement;
|
|
441
|
+
/**
|
|
442
|
+
* - Floating table properties
|
|
443
|
+
*/
|
|
444
|
+
floatingTableProperties?: FloatingTableProperties;
|
|
445
|
+
/**
|
|
446
|
+
* - Table border configuration
|
|
447
|
+
*/
|
|
448
|
+
borders?: TableBorders;
|
|
449
|
+
};
|
|
450
|
+
/**
|
|
451
|
+
* Column width definition
|
|
452
|
+
*/
|
|
453
|
+
export type ColWidth = {
|
|
454
|
+
/**
|
|
455
|
+
* - Column width in twips
|
|
456
|
+
*/
|
|
457
|
+
col: number;
|
|
458
|
+
};
|
|
459
|
+
/**
|
|
460
|
+
* Table grid definition
|
|
461
|
+
*/
|
|
462
|
+
export type TableGrid = {
|
|
463
|
+
/**
|
|
464
|
+
* - Array of column widths in twips
|
|
465
|
+
*/
|
|
466
|
+
colWidths?: ColWidth[];
|
|
467
|
+
};
|
|
138
468
|
import { Node } from '@core/index.js';
|
|
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
11
11
|
var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, y as yUndoPluginKey, f as undoDepth, h as redoDepth, S as SlashMenuPluginKey, E as Editor, i as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { n, C, o, T, l, p, m } from "./chunks/editor-
|
|
12
|
+
import { aw as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, az as vClickOutside, H as findParentNode, aA as getActiveFormatting, aq as isInTable, aB as readFromClipboard, aC as handleClipboardPaste, aD as getFileObject, a as Plugin } from "./chunks/converter-kutpjDQU.js";
|
|
13
|
+
import { aE, a5, i, a2, aF } from "./chunks/converter-kutpjDQU.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, y as yUndoPluginKey, f as undoDepth, h as redoDepth, S as SlashMenuPluginKey, E as Editor, i as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-CQMKOaY4.js";
|
|
15
|
+
import { n, C, o, T, l, p, m } from "./chunks/editor-CQMKOaY4.js";
|
|
16
16
|
import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-Cp6gL4i5.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-BjcI24VU.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
|
@@ -4627,7 +4627,7 @@ const Extensions = {
|
|
|
4627
4627
|
export {
|
|
4628
4628
|
AIWriter,
|
|
4629
4629
|
n as AnnotatorHelpers,
|
|
4630
|
-
|
|
4630
|
+
aE as BasicUpload,
|
|
4631
4631
|
C as CommentsPluginKey,
|
|
4632
4632
|
D as DocxZipper,
|
|
4633
4633
|
Editor,
|
|
@@ -4648,6 +4648,6 @@ export {
|
|
|
4648
4648
|
getRichTextExtensions,
|
|
4649
4649
|
getStarterExtensions,
|
|
4650
4650
|
a2 as helpers,
|
|
4651
|
-
|
|
4651
|
+
aF as registeredHandlers,
|
|
4652
4652
|
m as trackChangesHelpers
|
|
4653
4653
|
};
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-5O71lyiI.cjs");
|
|
4
4
|
require("./chunks/vue-DWle4Cai.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-
|
|
1
|
+
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-BTalhwn-.es.js";
|
|
2
2
|
import "./chunks/vue-CXxsqYcP.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-5O71lyiI.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-CMBPzhIR.cjs");
|
|
5
5
|
require("./chunks/vue-DWle4Cai.cjs");
|
|
6
6
|
require("./chunks/jszip-b7l8QkfH.cjs");
|
|
7
7
|
const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-
|
|
2
|
-
import { D, H, P, S as S2, m, l } from "./chunks/index-
|
|
1
|
+
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-BTalhwn-.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-CqLcgYHG.es.js";
|
|
3
3
|
import "./chunks/vue-CXxsqYcP.es.js";
|
|
4
4
|
import "./chunks/jszip-B8KIZSNe.es.js";
|
|
5
5
|
import { B } from "./chunks/blank-docx-iwdyG9RH.es.js";
|