@univerjs/docs-toc-ui 1.3.0 → 1.4.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/lib/cjs/index.js +19 -37
- package/lib/cjs/locale/ar-SA.js +1 -2
- package/lib/cjs/locale/ca-ES.js +1 -2
- package/lib/cjs/locale/de-DE.js +1 -2
- package/lib/cjs/locale/en-US.js +1 -2
- package/lib/cjs/locale/es-ES.js +1 -2
- package/lib/cjs/locale/fa-IR.js +1 -2
- package/lib/cjs/locale/fr-FR.js +1 -2
- package/lib/cjs/locale/id-ID.js +1 -2
- package/lib/cjs/locale/it-IT.js +1 -2
- package/lib/cjs/locale/ja-JP.js +1 -2
- package/lib/cjs/locale/ko-KR.js +1 -2
- package/lib/cjs/locale/pl-PL.js +1 -2
- package/lib/cjs/locale/pt-BR.js +1 -2
- package/lib/cjs/locale/ru-RU.js +1 -2
- package/lib/cjs/locale/sk-SK.js +1 -2
- package/lib/cjs/locale/vi-VN.js +1 -2
- package/lib/cjs/locale/zh-CN.js +1 -2
- package/lib/cjs/locale/zh-HK.js +1 -2
- package/lib/cjs/locale/zh-TW.js +1 -2
- package/lib/es/index.js +19 -37
- package/lib/es/locale/ar-SA.js +1 -2
- package/lib/es/locale/ca-ES.js +1 -2
- package/lib/es/locale/de-DE.js +1 -2
- package/lib/es/locale/en-US.js +1 -2
- package/lib/es/locale/es-ES.js +1 -2
- package/lib/es/locale/fa-IR.js +1 -2
- package/lib/es/locale/fr-FR.js +1 -2
- package/lib/es/locale/id-ID.js +1 -2
- package/lib/es/locale/it-IT.js +1 -2
- package/lib/es/locale/ja-JP.js +1 -2
- package/lib/es/locale/ko-KR.js +1 -2
- package/lib/es/locale/pl-PL.js +1 -2
- package/lib/es/locale/pt-BR.js +1 -2
- package/lib/es/locale/ru-RU.js +1 -2
- package/lib/es/locale/sk-SK.js +1 -2
- package/lib/es/locale/vi-VN.js +1 -2
- package/lib/es/locale/zh-CN.js +1 -2
- package/lib/es/locale/zh-HK.js +1 -2
- package/lib/es/locale/zh-TW.js +1 -2
- package/lib/index.js +19 -37
- package/lib/locale/ar-SA.js +1 -2
- package/lib/locale/ca-ES.js +1 -2
- package/lib/locale/de-DE.js +1 -2
- package/lib/locale/en-US.js +1 -2
- package/lib/locale/es-ES.js +1 -2
- package/lib/locale/fa-IR.js +1 -2
- package/lib/locale/fr-FR.js +1 -2
- package/lib/locale/id-ID.js +1 -2
- package/lib/locale/it-IT.js +1 -2
- package/lib/locale/ja-JP.js +1 -2
- package/lib/locale/ko-KR.js +1 -2
- package/lib/locale/pl-PL.js +1 -2
- package/lib/locale/pt-BR.js +1 -2
- package/lib/locale/ru-RU.js +1 -2
- package/lib/locale/sk-SK.js +1 -2
- package/lib/locale/vi-VN.js +1 -2
- package/lib/locale/zh-CN.js +1 -2
- package/lib/locale/zh-HK.js +1 -2
- package/lib/locale/zh-TW.js +1 -2
- package/lib/umd/index.js +1 -1
- package/package.json +15 -15
package/lib/cjs/index.js
CHANGED
|
@@ -11,7 +11,7 @@ let _univerjs_protocol = require("@univerjs/protocol");
|
|
|
11
11
|
let rxjs = require("rxjs");
|
|
12
12
|
let _univerjs_engine_render = require("@univerjs/engine-render");
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
// src/views/InsertTableOfContentsDialog.tsx
|
|
15
15
|
const INSERT_TABLE_OF_CONTENTS_DIALOG_COMPONENT = "doc.insert-table-of-contents-dialog";
|
|
16
16
|
const FORMAT_OPTIONS = [
|
|
17
17
|
["fromTemplate", "docs-toc-ui.tableOfContents.formatFromTemplate"],
|
|
@@ -140,8 +140,7 @@ function InsertTableOfContentsDialog(props) {
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
|
|
144
|
-
//#region src/views/TableOfContentsDialog.tsx
|
|
143
|
+
// src/views/TableOfContentsDialog.tsx
|
|
145
144
|
const TABLE_OF_CONTENTS_DIALOG_COMPONENT = "doc.table-of-contents-dialog";
|
|
146
145
|
function TableOfContentsDialog(props) {
|
|
147
146
|
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
@@ -171,8 +170,7 @@ function TableOfContentsDialog(props) {
|
|
|
171
170
|
});
|
|
172
171
|
}
|
|
173
172
|
|
|
174
|
-
|
|
175
|
-
//#region src/commands/table-of-contents-dialog.operation.ts
|
|
173
|
+
// src/commands/table-of-contents-dialog.operation.ts
|
|
176
174
|
const TABLE_OF_CONTENTS_DIALOG_ID = "doc.dialog.update-table-of-contents";
|
|
177
175
|
const INSERT_TABLE_OF_CONTENTS_DIALOG_ID = "doc.dialog.insert-table-of-contents";
|
|
178
176
|
const DEFAULT_INSERT_VALUE = {
|
|
@@ -277,8 +275,7 @@ const OpenTableOfContentsDialogOperation = {
|
|
|
277
275
|
}
|
|
278
276
|
};
|
|
279
277
|
|
|
280
|
-
|
|
281
|
-
//#region src/menu/menu.ts
|
|
278
|
+
// src/menu/menu.ts
|
|
282
279
|
const INSERT_TABLE_OF_CONTENTS_MENU_ID = "doc.menu.insert-table-of-contents";
|
|
283
280
|
function getActiveTableOfContentsObservable(accessor) {
|
|
284
281
|
const selectionManager = accessor.get(_univerjs_docs.DocSelectionManagerService);
|
|
@@ -367,8 +364,7 @@ function DeleteTableOfContentsMenuFactory(accessor) {
|
|
|
367
364
|
};
|
|
368
365
|
}
|
|
369
366
|
|
|
370
|
-
|
|
371
|
-
//#region src/menu/schema.ts
|
|
367
|
+
// src/menu/schema.ts
|
|
372
368
|
const DOC_TABLE_OF_CONTENTS_RIBBON_TAB = "ribbon.table-of-contents";
|
|
373
369
|
const DOC_TABLE_OF_CONTENTS_RIBBON_GROUP = "ribbon.table-of-contents.manage";
|
|
374
370
|
const tableOfContentsRibbonMenuSchema = { [_univerjs_ui.MenuManagerPosition.RIBBON]: { [DOC_TABLE_OF_CONTENTS_RIBBON_TAB]: {
|
|
@@ -421,27 +417,23 @@ const DocsTocUIMenuSchema = {
|
|
|
421
417
|
} }
|
|
422
418
|
};
|
|
423
419
|
|
|
424
|
-
|
|
425
|
-
//#region package.json
|
|
420
|
+
// package.json
|
|
426
421
|
var name = "@univerjs/docs-toc-ui";
|
|
427
|
-
var version = "1.
|
|
422
|
+
var version = "1.4.0";
|
|
428
423
|
|
|
429
|
-
|
|
430
|
-
//#region src/config/config.ts
|
|
424
|
+
// src/config/config.ts
|
|
431
425
|
const DOCS_TOC_UI_PLUGIN_CONFIG_KEY = "docs-toc-ui.config";
|
|
432
426
|
const configSymbol = Symbol(DOCS_TOC_UI_PLUGIN_CONFIG_KEY);
|
|
433
427
|
const defaultPluginConfig = {};
|
|
434
428
|
|
|
435
|
-
|
|
436
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
|
|
429
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/decorateParam.js
|
|
437
430
|
function __decorateParam(paramIndex, decorator) {
|
|
438
431
|
return function(target, key) {
|
|
439
432
|
decorator(target, key, paramIndex);
|
|
440
433
|
};
|
|
441
434
|
}
|
|
442
435
|
|
|
443
|
-
|
|
444
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
436
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/decorate.js
|
|
445
437
|
function __decorate(decorators, target, key, desc) {
|
|
446
438
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
447
439
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -449,8 +441,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
449
441
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
450
442
|
}
|
|
451
443
|
|
|
452
|
-
|
|
453
|
-
//#region src/controllers/components.controller.ts
|
|
444
|
+
// src/controllers/components.controller.ts
|
|
454
445
|
/**
|
|
455
446
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
456
447
|
*
|
|
@@ -475,8 +466,7 @@ let ComponentsController = class ComponentsController extends _univerjs_core.Dis
|
|
|
475
466
|
};
|
|
476
467
|
ComponentsController = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_ui.ComponentManager))], ComponentsController);
|
|
477
468
|
|
|
478
|
-
|
|
479
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
|
|
469
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/typeof.js
|
|
480
470
|
function _typeof(o) {
|
|
481
471
|
"@babel/helpers - typeof";
|
|
482
472
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -486,8 +476,7 @@ function _typeof(o) {
|
|
|
486
476
|
}, _typeof(o);
|
|
487
477
|
}
|
|
488
478
|
|
|
489
|
-
|
|
490
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
|
|
479
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
|
|
491
480
|
function toPrimitive(t, r) {
|
|
492
481
|
if ("object" != _typeof(t) || !t) return t;
|
|
493
482
|
var e = t[Symbol.toPrimitive];
|
|
@@ -499,15 +488,13 @@ function toPrimitive(t, r) {
|
|
|
499
488
|
return ("string" === r ? String : Number)(t);
|
|
500
489
|
}
|
|
501
490
|
|
|
502
|
-
|
|
503
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
491
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js
|
|
504
492
|
function toPropertyKey(t) {
|
|
505
493
|
var i = toPrimitive(t, "string");
|
|
506
494
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
507
495
|
}
|
|
508
496
|
|
|
509
|
-
|
|
510
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
497
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js
|
|
511
498
|
function _defineProperty(e, r, t) {
|
|
512
499
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
513
500
|
value: t,
|
|
@@ -517,8 +504,7 @@ function _defineProperty(e, r, t) {
|
|
|
517
504
|
}) : e[r] = t, e;
|
|
518
505
|
}
|
|
519
506
|
|
|
520
|
-
|
|
521
|
-
//#region src/controllers/table-of-contents-highlight.render-controller.ts
|
|
507
|
+
// src/controllers/table-of-contents-highlight.render-controller.ts
|
|
522
508
|
const RANGE_PADDING = 4;
|
|
523
509
|
let TableOfContentsHighlightRenderController = class TableOfContentsHighlightRenderController extends _univerjs_core.RxDisposable {
|
|
524
510
|
constructor(_context, _instanceService, _selectionManager, _skeletonManager, _themeService) {
|
|
@@ -624,8 +610,7 @@ function getPointGroupBounds(pointsGroup) {
|
|
|
624
610
|
};
|
|
625
611
|
}
|
|
626
612
|
|
|
627
|
-
|
|
628
|
-
//#region src/controllers/table-of-contents-ribbon.controller.ts
|
|
613
|
+
// src/controllers/table-of-contents-ribbon.controller.ts
|
|
629
614
|
let TableOfContentsRibbonController = class TableOfContentsRibbonController extends _univerjs_core.Disposable {
|
|
630
615
|
constructor(_instanceService, _selectionManager, _ribbonService) {
|
|
631
616
|
super();
|
|
@@ -657,8 +642,7 @@ TableOfContentsRibbonController = __decorate([
|
|
|
657
642
|
__decorateParam(2, _univerjs_ui.IRibbonService)
|
|
658
643
|
], TableOfContentsRibbonController);
|
|
659
644
|
|
|
660
|
-
|
|
661
|
-
//#region src/controllers/ui.controller.ts
|
|
645
|
+
// src/controllers/ui.controller.ts
|
|
662
646
|
/**
|
|
663
647
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
664
648
|
*
|
|
@@ -685,8 +669,7 @@ let DocsTocUIController = class DocsTocUIController extends _univerjs_core.Dispo
|
|
|
685
669
|
};
|
|
686
670
|
DocsTocUIController = __decorate([__decorateParam(0, _univerjs_core.ICommandService), __decorateParam(1, _univerjs_ui.IMenuManagerService)], DocsTocUIController);
|
|
687
671
|
|
|
688
|
-
|
|
689
|
-
//#region src/plugin.ts
|
|
672
|
+
// src/plugin.ts
|
|
690
673
|
let UniverDocsTocUIPlugin = class UniverDocsTocUIPlugin extends _univerjs_core.Plugin {
|
|
691
674
|
constructor(_config = defaultPluginConfig, _injector, _configService, _renderManagerService) {
|
|
692
675
|
super();
|
|
@@ -725,7 +708,6 @@ UniverDocsTocUIPlugin = __decorate([
|
|
|
725
708
|
__decorateParam(3, _univerjs_engine_render.IRenderManagerService)
|
|
726
709
|
], UniverDocsTocUIPlugin);
|
|
727
710
|
|
|
728
|
-
//#endregion
|
|
729
711
|
exports.DocsTocUIMenuSchema = DocsTocUIMenuSchema;
|
|
730
712
|
Object.defineProperty(exports, "UniverDocsTocUIPlugin", {
|
|
731
713
|
enumerable: true,
|
package/lib/cjs/locale/ar-SA.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ar-SA.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "جدول المحتويات",
|
|
4
4
|
insertTitle: "جدول المحتويات",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "اختر كيفية تحديث جدول المحتويات هذا."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ca-ES.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "Taula de continguts",
|
|
4
4
|
insertTitle: "Taula de continguts",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "Trieu com voleu actualitzar aquesta taula de continguts."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/cjs/locale/de-DE.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/de-DE.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "Inhaltsverzeichnis",
|
|
4
4
|
insertTitle: "Inhaltsverzeichnis",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "Wählen Sie die Aktualisierungsmethode."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/en-US.ts
|
|
2
2
|
/**
|
|
3
3
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
4
4
|
*
|
|
@@ -43,5 +43,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
43
43
|
updateHint: "Choose how Univer should refresh this table of contents."
|
|
44
44
|
} } };
|
|
45
45
|
|
|
46
|
-
//#endregion
|
|
47
46
|
module.exports = locale;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/es-ES.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "Tabla de contenido",
|
|
4
4
|
insertTitle: "Tabla de contenido",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "Elija cómo actualizar esta tabla de contenido."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/fa-IR.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "فهرست مطالب",
|
|
4
4
|
insertTitle: "فهرست مطالب",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "روش بهروزرسانی این فهرست مطالب را انتخاب کنید."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/fr-FR.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "Table des matières",
|
|
4
4
|
insertTitle: "Table des matières",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "Choisissez comment mettre à jour cette table des matières."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/cjs/locale/id-ID.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/id-ID.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "Daftar isi",
|
|
4
4
|
insertTitle: "Daftar isi",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "Pilih cara memperbarui daftar isi ini."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/cjs/locale/it-IT.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/it-IT.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "Sommario",
|
|
4
4
|
insertTitle: "Sommario",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "Scegli come aggiornare questo sommario."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ja-JP.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "目次",
|
|
4
4
|
insertTitle: "目次",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "この目次の更新方法を選択してください。"
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ko-KR.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "목차",
|
|
4
4
|
insertTitle: "목차",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "이 목차를 업데이트할 방법을 선택하세요."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/cjs/locale/pl-PL.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/pl-PL.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "Spis treści",
|
|
4
4
|
insertTitle: "Spis treści",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "Wybierz sposób aktualizacji tego spisu treści."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/cjs/locale/pt-BR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/pt-BR.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "Sumário",
|
|
4
4
|
insertTitle: "Sumário",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "Escolha como atualizar este sumário."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ru-RU.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "Оглавление",
|
|
4
4
|
insertTitle: "Оглавление",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "Выберите способ обновления оглавления."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/sk-SK.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "Obsah",
|
|
4
4
|
insertTitle: "Obsah",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "Vyberte spôsob aktualizácie tohto obsahu."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/vi-VN.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "Mục lục",
|
|
4
4
|
insertTitle: "Mục lục",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "Chọn cách cập nhật mục lục này."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-CN.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "目录",
|
|
4
4
|
insertTitle: "插入目录",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "请选择 Univer 更新此目录的方式。"
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/cjs/locale/zh-HK.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-HK.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "目錄",
|
|
4
4
|
insertTitle: "插入目錄",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "請選擇 Univer 更新此目錄的方式。"
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-TW.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "目錄",
|
|
4
4
|
insertTitle: "目錄",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "選擇此目錄的更新方式。"
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
module.exports = locale;
|
package/lib/es/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { UnitAction } from "@univerjs/protocol";
|
|
|
10
10
|
import { Observable, combineLatest, map, takeUntil } from "rxjs";
|
|
11
11
|
import { IRenderManagerService, Rect, RegularPolygon, UniverRenderEnginePlugin } from "@univerjs/engine-render";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// src/views/InsertTableOfContentsDialog.tsx
|
|
14
14
|
const INSERT_TABLE_OF_CONTENTS_DIALOG_COMPONENT = "doc.insert-table-of-contents-dialog";
|
|
15
15
|
const FORMAT_OPTIONS = [
|
|
16
16
|
["fromTemplate", "docs-toc-ui.tableOfContents.formatFromTemplate"],
|
|
@@ -139,8 +139,7 @@ function InsertTableOfContentsDialog(props) {
|
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
|
|
143
|
-
//#region src/views/TableOfContentsDialog.tsx
|
|
142
|
+
// src/views/TableOfContentsDialog.tsx
|
|
144
143
|
const TABLE_OF_CONTENTS_DIALOG_COMPONENT = "doc.table-of-contents-dialog";
|
|
145
144
|
function TableOfContentsDialog(props) {
|
|
146
145
|
const localeService = useDependency(LocaleService);
|
|
@@ -170,8 +169,7 @@ function TableOfContentsDialog(props) {
|
|
|
170
169
|
});
|
|
171
170
|
}
|
|
172
171
|
|
|
173
|
-
|
|
174
|
-
//#region src/commands/table-of-contents-dialog.operation.ts
|
|
172
|
+
// src/commands/table-of-contents-dialog.operation.ts
|
|
175
173
|
const TABLE_OF_CONTENTS_DIALOG_ID = "doc.dialog.update-table-of-contents";
|
|
176
174
|
const INSERT_TABLE_OF_CONTENTS_DIALOG_ID = "doc.dialog.insert-table-of-contents";
|
|
177
175
|
const DEFAULT_INSERT_VALUE = {
|
|
@@ -276,8 +274,7 @@ const OpenTableOfContentsDialogOperation = {
|
|
|
276
274
|
}
|
|
277
275
|
};
|
|
278
276
|
|
|
279
|
-
|
|
280
|
-
//#region src/menu/menu.ts
|
|
277
|
+
// src/menu/menu.ts
|
|
281
278
|
const INSERT_TABLE_OF_CONTENTS_MENU_ID = "doc.menu.insert-table-of-contents";
|
|
282
279
|
function getActiveTableOfContentsObservable(accessor) {
|
|
283
280
|
const selectionManager = accessor.get(DocSelectionManagerService);
|
|
@@ -366,8 +363,7 @@ function DeleteTableOfContentsMenuFactory(accessor) {
|
|
|
366
363
|
};
|
|
367
364
|
}
|
|
368
365
|
|
|
369
|
-
|
|
370
|
-
//#region src/menu/schema.ts
|
|
366
|
+
// src/menu/schema.ts
|
|
371
367
|
const DOC_TABLE_OF_CONTENTS_RIBBON_TAB = "ribbon.table-of-contents";
|
|
372
368
|
const DOC_TABLE_OF_CONTENTS_RIBBON_GROUP = "ribbon.table-of-contents.manage";
|
|
373
369
|
const tableOfContentsRibbonMenuSchema = { [MenuManagerPosition.RIBBON]: { [DOC_TABLE_OF_CONTENTS_RIBBON_TAB]: {
|
|
@@ -420,27 +416,23 @@ const DocsTocUIMenuSchema = {
|
|
|
420
416
|
} }
|
|
421
417
|
};
|
|
422
418
|
|
|
423
|
-
|
|
424
|
-
//#region package.json
|
|
419
|
+
// package.json
|
|
425
420
|
var name = "@univerjs/docs-toc-ui";
|
|
426
|
-
var version = "1.
|
|
421
|
+
var version = "1.4.0";
|
|
427
422
|
|
|
428
|
-
|
|
429
|
-
//#region src/config/config.ts
|
|
423
|
+
// src/config/config.ts
|
|
430
424
|
const DOCS_TOC_UI_PLUGIN_CONFIG_KEY = "docs-toc-ui.config";
|
|
431
425
|
const configSymbol = Symbol(DOCS_TOC_UI_PLUGIN_CONFIG_KEY);
|
|
432
426
|
const defaultPluginConfig = {};
|
|
433
427
|
|
|
434
|
-
|
|
435
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorateParam.js
|
|
428
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/decorateParam.js
|
|
436
429
|
function __decorateParam(paramIndex, decorator) {
|
|
437
430
|
return function(target, key) {
|
|
438
431
|
decorator(target, key, paramIndex);
|
|
439
432
|
};
|
|
440
433
|
}
|
|
441
434
|
|
|
442
|
-
|
|
443
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
|
|
435
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/decorate.js
|
|
444
436
|
function __decorate(decorators, target, key, desc) {
|
|
445
437
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
446
438
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -448,8 +440,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
448
440
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
449
441
|
}
|
|
450
442
|
|
|
451
|
-
|
|
452
|
-
//#region src/controllers/components.controller.ts
|
|
443
|
+
// src/controllers/components.controller.ts
|
|
453
444
|
/**
|
|
454
445
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
455
446
|
*
|
|
@@ -474,8 +465,7 @@ let ComponentsController = class ComponentsController extends Disposable {
|
|
|
474
465
|
};
|
|
475
466
|
ComponentsController = __decorate([__decorateParam(0, Inject(ComponentManager))], ComponentsController);
|
|
476
467
|
|
|
477
|
-
|
|
478
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
|
|
468
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/typeof.js
|
|
479
469
|
function _typeof(o) {
|
|
480
470
|
"@babel/helpers - typeof";
|
|
481
471
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -485,8 +475,7 @@ function _typeof(o) {
|
|
|
485
475
|
}, _typeof(o);
|
|
486
476
|
}
|
|
487
477
|
|
|
488
|
-
|
|
489
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
|
|
478
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
|
|
490
479
|
function toPrimitive(t, r) {
|
|
491
480
|
if ("object" != _typeof(t) || !t) return t;
|
|
492
481
|
var e = t[Symbol.toPrimitive];
|
|
@@ -498,15 +487,13 @@ function toPrimitive(t, r) {
|
|
|
498
487
|
return ("string" === r ? String : Number)(t);
|
|
499
488
|
}
|
|
500
489
|
|
|
501
|
-
|
|
502
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
490
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js
|
|
503
491
|
function toPropertyKey(t) {
|
|
504
492
|
var i = toPrimitive(t, "string");
|
|
505
493
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
506
494
|
}
|
|
507
495
|
|
|
508
|
-
|
|
509
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
496
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js
|
|
510
497
|
function _defineProperty(e, r, t) {
|
|
511
498
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
512
499
|
value: t,
|
|
@@ -516,8 +503,7 @@ function _defineProperty(e, r, t) {
|
|
|
516
503
|
}) : e[r] = t, e;
|
|
517
504
|
}
|
|
518
505
|
|
|
519
|
-
|
|
520
|
-
//#region src/controllers/table-of-contents-highlight.render-controller.ts
|
|
506
|
+
// src/controllers/table-of-contents-highlight.render-controller.ts
|
|
521
507
|
const RANGE_PADDING = 4;
|
|
522
508
|
let TableOfContentsHighlightRenderController = class TableOfContentsHighlightRenderController extends RxDisposable {
|
|
523
509
|
constructor(_context, _instanceService, _selectionManager, _skeletonManager, _themeService) {
|
|
@@ -623,8 +609,7 @@ function getPointGroupBounds(pointsGroup) {
|
|
|
623
609
|
};
|
|
624
610
|
}
|
|
625
611
|
|
|
626
|
-
|
|
627
|
-
//#region src/controllers/table-of-contents-ribbon.controller.ts
|
|
612
|
+
// src/controllers/table-of-contents-ribbon.controller.ts
|
|
628
613
|
let TableOfContentsRibbonController = class TableOfContentsRibbonController extends Disposable {
|
|
629
614
|
constructor(_instanceService, _selectionManager, _ribbonService) {
|
|
630
615
|
super();
|
|
@@ -656,8 +641,7 @@ TableOfContentsRibbonController = __decorate([
|
|
|
656
641
|
__decorateParam(2, IRibbonService)
|
|
657
642
|
], TableOfContentsRibbonController);
|
|
658
643
|
|
|
659
|
-
|
|
660
|
-
//#region src/controllers/ui.controller.ts
|
|
644
|
+
// src/controllers/ui.controller.ts
|
|
661
645
|
/**
|
|
662
646
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
663
647
|
*
|
|
@@ -684,8 +668,7 @@ let DocsTocUIController = class DocsTocUIController extends Disposable {
|
|
|
684
668
|
};
|
|
685
669
|
DocsTocUIController = __decorate([__decorateParam(0, ICommandService), __decorateParam(1, IMenuManagerService)], DocsTocUIController);
|
|
686
670
|
|
|
687
|
-
|
|
688
|
-
//#region src/plugin.ts
|
|
671
|
+
// src/plugin.ts
|
|
689
672
|
let UniverDocsTocUIPlugin = class UniverDocsTocUIPlugin extends Plugin {
|
|
690
673
|
constructor(_config = defaultPluginConfig, _injector, _configService, _renderManagerService) {
|
|
691
674
|
super();
|
|
@@ -724,5 +707,4 @@ UniverDocsTocUIPlugin = __decorate([
|
|
|
724
707
|
__decorateParam(3, IRenderManagerService)
|
|
725
708
|
], UniverDocsTocUIPlugin);
|
|
726
709
|
|
|
727
|
-
//#endregion
|
|
728
710
|
export { DocsTocUIMenuSchema, UniverDocsTocUIPlugin };
|
package/lib/es/locale/ar-SA.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ar-SA.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "جدول المحتويات",
|
|
4
4
|
insertTitle: "جدول المحتويات",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "اختر كيفية تحديث جدول المحتويات هذا."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
export { locale as default };
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ca-ES.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "Taula de continguts",
|
|
4
4
|
insertTitle: "Taula de continguts",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "Trieu com voleu actualitzar aquesta taula de continguts."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
export { locale as default };
|
package/lib/es/locale/de-DE.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/de-DE.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "Inhaltsverzeichnis",
|
|
4
4
|
insertTitle: "Inhaltsverzeichnis",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "Wählen Sie die Aktualisierungsmethode."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
export { locale as default };
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/en-US.ts
|
|
2
2
|
/**
|
|
3
3
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
4
4
|
*
|
|
@@ -43,5 +43,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
43
43
|
updateHint: "Choose how Univer should refresh this table of contents."
|
|
44
44
|
} } };
|
|
45
45
|
|
|
46
|
-
//#endregion
|
|
47
46
|
export { locale as default };
|
package/lib/es/locale/es-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/es-ES.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "Tabla de contenido",
|
|
4
4
|
insertTitle: "Tabla de contenido",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "Elija cómo actualizar esta tabla de contenido."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
export { locale as default };
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/fa-IR.ts
|
|
2
2
|
const locale = { "docs-toc-ui": { tableOfContents: {
|
|
3
3
|
title: "فهرست مطالب",
|
|
4
4
|
insertTitle: "فهرست مطالب",
|
|
@@ -28,5 +28,4 @@ const locale = { "docs-toc-ui": { tableOfContents: {
|
|
|
28
28
|
updateHint: "روش بهروزرسانی این فهرست مطالب را انتخاب کنید."
|
|
29
29
|
} } };
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
export { locale as default };
|