@agilehub/agile-editor 1.8.6 → 1.9.1
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/agile-editor.css +1 -1
- package/dist/agile-editor.js +26938 -9097
- package/dist/{i18n-BZGLJU1q.js → i18n-isaO-7Rd.js} +56 -6
- package/dist/types/components/editor/table-padding-control.vue.d.ts +7 -0
- package/dist/types/components/editor/table-property-section.vue.d.ts +5 -2
- package/dist/types/components/index.vue.d.ts +77 -2
- package/dist/types/components/menus/toolbar/insert/emoji.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/view/break-marks.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/view/line-number.vue.d.ts +3 -0
- package/dist/types/components/preview-toolbar/drawing-layer.vue.d.ts +1 -1
- package/dist/types/components/toolbar/classic.vue.d.ts +8 -8
- package/dist/types/components/toolbar/ribbon.vue.d.ts +8 -8
- package/dist/types/composables/i18n.d.ts +75 -0
- package/dist/types/extensions/table.d.ts +2 -0
- package/dist/types/i18n.d.ts +75 -0
- package/dist/types/options/config/dicts.d.ts +8 -1
- package/dist/types/options/config/emojis.d.ts +15 -0
- package/dist/types/options/config/index.d.ts +8 -1
- package/dist/types/utils/emoji-search.d.ts +21 -0
- package/dist/types/utils/table-border.d.ts +8 -0
- package/dist/types/utils/table-cell-padding.d.ts +6 -0
- package/dist/types/utils/table-repair.d.ts +8 -0
- package/dist/{viewer-Bg-htPGM.js → viewer-P9wgj_Yv.js} +2 -2
- package/package.json +167 -166
package/dist/types/i18n.d.ts
CHANGED
|
@@ -413,6 +413,8 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
413
413
|
codeBlock: string;
|
|
414
414
|
date: string;
|
|
415
415
|
emoji: string;
|
|
416
|
+
"emoji-search": string;
|
|
417
|
+
"emoji-empty": string;
|
|
416
418
|
file: string;
|
|
417
419
|
importDocx: {
|
|
418
420
|
text: string;
|
|
@@ -562,6 +564,7 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
562
564
|
selectAll: string;
|
|
563
565
|
quickTools: {
|
|
564
566
|
tableProperties: string;
|
|
567
|
+
closeProperties: string;
|
|
565
568
|
rowProperties: string;
|
|
566
569
|
cellProperties: string;
|
|
567
570
|
layout: string;
|
|
@@ -609,6 +612,15 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
609
612
|
removeImage: string;
|
|
610
613
|
uploadFailed: string;
|
|
611
614
|
clearBackground: string;
|
|
615
|
+
cellPadding: string;
|
|
616
|
+
mixedPadding: string;
|
|
617
|
+
paddingCell: string;
|
|
618
|
+
paddingSides: {
|
|
619
|
+
top: string;
|
|
620
|
+
right: string;
|
|
621
|
+
bottom: string;
|
|
622
|
+
left: string;
|
|
623
|
+
};
|
|
612
624
|
apply: string;
|
|
613
625
|
borderLines: {
|
|
614
626
|
hidden: string;
|
|
@@ -751,6 +763,18 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
751
763
|
fix: {
|
|
752
764
|
text: string;
|
|
753
765
|
tip: string;
|
|
766
|
+
title: string;
|
|
767
|
+
apply: string;
|
|
768
|
+
structure: string;
|
|
769
|
+
structureTip: string;
|
|
770
|
+
wrapping: string;
|
|
771
|
+
wrappingTip: string;
|
|
772
|
+
fitWidth: string;
|
|
773
|
+
fitWidthTip: string;
|
|
774
|
+
rowHeight: string;
|
|
775
|
+
rowHeightTip: string;
|
|
776
|
+
finished: string;
|
|
777
|
+
unchanged: string;
|
|
754
778
|
};
|
|
755
779
|
insert: {
|
|
756
780
|
text: string;
|
|
@@ -1274,6 +1298,7 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
1274
1298
|
common: string;
|
|
1275
1299
|
clearFormat: string;
|
|
1276
1300
|
duplicate: string;
|
|
1301
|
+
insertBelow: string;
|
|
1277
1302
|
copy: string;
|
|
1278
1303
|
cut: string;
|
|
1279
1304
|
delete: string;
|
|
@@ -2169,6 +2194,8 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
2169
2194
|
codeBlock: string;
|
|
2170
2195
|
date: string;
|
|
2171
2196
|
emoji: string;
|
|
2197
|
+
"emoji-search": string;
|
|
2198
|
+
"emoji-empty": string;
|
|
2172
2199
|
file: string;
|
|
2173
2200
|
importDocx: {
|
|
2174
2201
|
text: string;
|
|
@@ -2318,6 +2345,7 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
2318
2345
|
selectAll: string;
|
|
2319
2346
|
quickTools: {
|
|
2320
2347
|
tableProperties: string;
|
|
2348
|
+
closeProperties: string;
|
|
2321
2349
|
rowProperties: string;
|
|
2322
2350
|
cellProperties: string;
|
|
2323
2351
|
layout: string;
|
|
@@ -2365,6 +2393,15 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
2365
2393
|
removeImage: string;
|
|
2366
2394
|
uploadFailed: string;
|
|
2367
2395
|
clearBackground: string;
|
|
2396
|
+
cellPadding: string;
|
|
2397
|
+
mixedPadding: string;
|
|
2398
|
+
paddingCell: string;
|
|
2399
|
+
paddingSides: {
|
|
2400
|
+
top: string;
|
|
2401
|
+
right: string;
|
|
2402
|
+
bottom: string;
|
|
2403
|
+
left: string;
|
|
2404
|
+
};
|
|
2368
2405
|
apply: string;
|
|
2369
2406
|
borderLines: {
|
|
2370
2407
|
hidden: string;
|
|
@@ -2511,6 +2548,18 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
2511
2548
|
fix: {
|
|
2512
2549
|
text: string;
|
|
2513
2550
|
tip: string;
|
|
2551
|
+
title: string;
|
|
2552
|
+
apply: string;
|
|
2553
|
+
structure: string;
|
|
2554
|
+
structureTip: string;
|
|
2555
|
+
wrapping: string;
|
|
2556
|
+
wrappingTip: string;
|
|
2557
|
+
fitWidth: string;
|
|
2558
|
+
fitWidthTip: string;
|
|
2559
|
+
rowHeight: string;
|
|
2560
|
+
rowHeightTip: string;
|
|
2561
|
+
finished: string;
|
|
2562
|
+
unchanged: string;
|
|
2514
2563
|
};
|
|
2515
2564
|
insert: {
|
|
2516
2565
|
text: string;
|
|
@@ -3028,6 +3077,7 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
3028
3077
|
common: string;
|
|
3029
3078
|
clearFormat: string;
|
|
3030
3079
|
duplicate: string;
|
|
3080
|
+
insertBelow: string;
|
|
3031
3081
|
copy: string;
|
|
3032
3082
|
cut: string;
|
|
3033
3083
|
delete: string;
|
|
@@ -3917,6 +3967,8 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
3917
3967
|
codeBlock: string;
|
|
3918
3968
|
date: string;
|
|
3919
3969
|
emoji: string;
|
|
3970
|
+
"emoji-search": string;
|
|
3971
|
+
"emoji-empty": string;
|
|
3920
3972
|
file: string;
|
|
3921
3973
|
importDocx: {
|
|
3922
3974
|
text: string;
|
|
@@ -4066,6 +4118,7 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
4066
4118
|
selectAll: string;
|
|
4067
4119
|
quickTools: {
|
|
4068
4120
|
tableProperties: string;
|
|
4121
|
+
closeProperties: string;
|
|
4069
4122
|
rowProperties: string;
|
|
4070
4123
|
cellProperties: string;
|
|
4071
4124
|
layout: string;
|
|
@@ -4113,6 +4166,15 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
4113
4166
|
removeImage: string;
|
|
4114
4167
|
uploadFailed: string;
|
|
4115
4168
|
clearBackground: string;
|
|
4169
|
+
cellPadding: string;
|
|
4170
|
+
mixedPadding: string;
|
|
4171
|
+
paddingCell: string;
|
|
4172
|
+
paddingSides: {
|
|
4173
|
+
top: string;
|
|
4174
|
+
right: string;
|
|
4175
|
+
bottom: string;
|
|
4176
|
+
left: string;
|
|
4177
|
+
};
|
|
4116
4178
|
apply: string;
|
|
4117
4179
|
borderLines: {
|
|
4118
4180
|
hidden: string;
|
|
@@ -4259,6 +4321,18 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
4259
4321
|
fix: {
|
|
4260
4322
|
text: string;
|
|
4261
4323
|
tip: string;
|
|
4324
|
+
title: string;
|
|
4325
|
+
apply: string;
|
|
4326
|
+
structure: string;
|
|
4327
|
+
structureTip: string;
|
|
4328
|
+
wrapping: string;
|
|
4329
|
+
wrappingTip: string;
|
|
4330
|
+
fitWidth: string;
|
|
4331
|
+
fitWidthTip: string;
|
|
4332
|
+
rowHeight: string;
|
|
4333
|
+
rowHeightTip: string;
|
|
4334
|
+
finished: string;
|
|
4335
|
+
unchanged: string;
|
|
4262
4336
|
};
|
|
4263
4337
|
insert: {
|
|
4264
4338
|
text: string;
|
|
@@ -4776,6 +4850,7 @@ export declare const i18n: import("vue-i18n").I18n<{
|
|
|
4776
4850
|
common: string;
|
|
4777
4851
|
clearFormat: string;
|
|
4778
4852
|
duplicate: string;
|
|
4853
|
+
insertBelow: string;
|
|
4779
4854
|
copy: string;
|
|
4780
4855
|
cut: string;
|
|
4781
4856
|
delete: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type EmojiLabel = string | {
|
|
2
|
+
zh_CN?: string;
|
|
3
|
+
en_US?: string;
|
|
4
|
+
};
|
|
5
|
+
export type EmojiItem = {
|
|
6
|
+
value: string;
|
|
7
|
+
label: EmojiLabel;
|
|
8
|
+
keywords?: string[];
|
|
9
|
+
};
|
|
10
|
+
type EmojiGroup = {
|
|
11
|
+
label: EmojiLabel;
|
|
12
|
+
items: string | EmojiItem[];
|
|
13
|
+
};
|
|
14
|
+
export declare const filterEmojiGroups: (groups: EmojiGroup[], query: string) => {
|
|
15
|
+
items: (EmojiItem | {
|
|
16
|
+
value: string;
|
|
17
|
+
label: string;
|
|
18
|
+
})[];
|
|
19
|
+
label: EmojiLabel;
|
|
20
|
+
}[];
|
|
21
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Node as ProseMirrorNode } from '@tiptap/pm/model';
|
|
1
2
|
export type TableBorderLineStyle = 'none' | 'hidden' | 'dotted' | 'dashed' | 'solid' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset';
|
|
2
3
|
export type TableBorderSide = 'Top' | 'Right' | 'Bottom' | 'Left';
|
|
3
4
|
export type TableBorderValues = {
|
|
@@ -15,6 +16,7 @@ export declare const parseTableBorderStyle: (value: string) => {
|
|
|
15
16
|
lineStyle: TableBorderLineStyle;
|
|
16
17
|
};
|
|
17
18
|
export declare const normalizeTableBorderWidth: (width: number | string, lineStyle: TableBorderLineStyle | string) => number;
|
|
19
|
+
export declare const getTableBorderMinWidth: (lineStyle: string) => 1 | 3;
|
|
18
20
|
export declare const createTableBorderStyle: (width: number | string, lineStyle: TableBorderLineStyle | string) => string;
|
|
19
21
|
export declare const normalizeTableBorderStyle: (value: string) => string;
|
|
20
22
|
/**
|
|
@@ -22,6 +24,8 @@ export declare const normalizeTableBorderStyle: (value: string) => string;
|
|
|
22
24
|
* values into the document.
|
|
23
25
|
*/
|
|
24
26
|
export declare const resolveTableBorder: (cellAttrs?: Record<string, any>, tableAttrs?: Record<string, any>) => TableBorderValues;
|
|
27
|
+
/** Normalize imported CSS colors so matching preset swatches remain selected. */
|
|
28
|
+
export declare const normalizeTableThemeColor: (color: string) => string;
|
|
25
29
|
export declare const hasTableBorderPatch: (patch: TableBorderPatch) => any;
|
|
26
30
|
export declare const getTableBorderPatch: (current: TableBorderValues, baseline: TableBorderValues) => TableBorderPatch;
|
|
27
31
|
export declare const updateTableCellBorderAttributes: (cellAttrs: Record<string, any>, tableAttrs: Record<string, any>, patch: TableBorderPatch) => {
|
|
@@ -30,6 +34,10 @@ export declare const updateTableCellBorderAttributes: (cellAttrs: Record<string,
|
|
|
30
34
|
export declare const updateTableCellSideBorderAttributes: (cellAttrs: Record<string, any>, tableAttrs: Record<string, any>, patch: TableBorderPatch, side: TableBorderSide) => {
|
|
31
35
|
[x: string]: any;
|
|
32
36
|
};
|
|
37
|
+
export declare const getTableCellBorderUpdates: (table: ProseMirrorNode, tableStart: number, positions: number[], patch: TableBorderPatch) => {
|
|
38
|
+
position: number;
|
|
39
|
+
attrs: Record<string, any>;
|
|
40
|
+
}[];
|
|
33
41
|
/**
|
|
34
42
|
* Render modeled cell borders as independent CSS longhands. Omitting an
|
|
35
43
|
* inherited color is intentional: the table-level border color must remain
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EditorState } from '@tiptap/pm/state';
|
|
2
|
+
export type TablePaddingScope = 'table' | 'row' | 'cell';
|
|
3
|
+
export declare const tablePaddingSides: readonly ["top", "right", "bottom", "left"];
|
|
4
|
+
export type TableCellPadding = Record<(typeof tablePaddingSides)[number], number | null>;
|
|
5
|
+
/** TableMap includes row-spanning cells and deduplicates merged cell positions. */
|
|
6
|
+
export declare const getTablePaddingPositions: (state: EditorState, scope: TablePaddingScope) => number[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EditorState, Transaction } from '@tiptap/pm/state';
|
|
2
|
+
export type TableRepairOptions = {
|
|
3
|
+
structure: boolean;
|
|
4
|
+
wrapping: boolean;
|
|
5
|
+
fitWidth: boolean;
|
|
6
|
+
rowHeight: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const repairCurrentTable: (state: EditorState, tr: Transaction, options: TableRepairOptions, availableWidth?: number) => boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @agilehub/agile-editor 1.
|
|
2
|
+
* @agilehub/agile-editor 1.9.1
|
|
3
3
|
* @license Apache-2.0
|
|
4
4
|
* @author undefined undefined
|
|
5
5
|
* @see undefined
|
|
6
6
|
**/
|
|
7
7
|
import "./agile-editor.css";
|
|
8
|
-
import { a as e, n as t } from "./i18n-
|
|
8
|
+
import { a as e, n as t } from "./i18n-isaO-7Rd.js";
|
|
9
9
|
import { createBlock as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, guardReactiveProps as s, markRaw as c, normalizeProps as l, onMounted as u, openBlock as d, ref as f, renderSlot as p, resolveDynamicComponent as m, shallowRef as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
|
|
10
10
|
//#region src/extensions/smart-sheet/viewer.vue?vue&type=script&setup=true&lang.ts
|
|
11
11
|
var y = { class: "agile-smart-sheet-viewer" }, b = {
|