@univerjs/docs-ui 0.5.0 → 0.5.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/lib/cjs/index.js +21 -13
- package/lib/cjs/locale/fr-FR.js +1 -0
- package/lib/es/index.js +2930 -2896
- package/lib/es/locale/fr-FR.js +85 -0
- package/lib/types/commands/commands/replace-content.command.d.ts +1 -1
- package/lib/types/controllers/config.schema.d.ts +1 -1
- package/lib/types/controllers/doc-auto-format.controller.d.ts +3 -1
- package/lib/types/controllers/doc-container-ui-controller.d.ts +1 -1
- package/lib/types/index.d.ts +4 -3
- package/lib/types/locale/fr-FR.d.ts +3 -0
- package/lib/umd/index.js +20 -12
- package/lib/umd/locale/fr-FR.js +1 -0
- package/package.json +17 -14
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
toolbar: {
|
|
3
|
+
undo: "Annuler",
|
|
4
|
+
redo: "Rétablir",
|
|
5
|
+
font: "Police",
|
|
6
|
+
fontSize: "Taille de la police",
|
|
7
|
+
bold: "Gras",
|
|
8
|
+
italic: "Italique",
|
|
9
|
+
strikethrough: "Barré",
|
|
10
|
+
subscript: "Indice",
|
|
11
|
+
superscript: "Exposant",
|
|
12
|
+
underline: "Souligné",
|
|
13
|
+
textColor: {
|
|
14
|
+
main: "Couleur du texte",
|
|
15
|
+
right: "Choisir une couleur"
|
|
16
|
+
},
|
|
17
|
+
fillColor: {
|
|
18
|
+
main: "Couleur de fond du texte",
|
|
19
|
+
right: "Choisir une couleur"
|
|
20
|
+
},
|
|
21
|
+
table: {
|
|
22
|
+
main: "Tableau",
|
|
23
|
+
insert: "Insérer un tableau",
|
|
24
|
+
colCount: "Nombre de colonnes",
|
|
25
|
+
rowCount: "Nombre de lignes"
|
|
26
|
+
},
|
|
27
|
+
resetColor: "Réinitialiser",
|
|
28
|
+
order: "Liste ordonnée",
|
|
29
|
+
unorder: "Liste non ordonnée",
|
|
30
|
+
checklist: "Liste de tâches",
|
|
31
|
+
documentFlavor: "Modern Mode",
|
|
32
|
+
alignLeft: "Aligner à gauche",
|
|
33
|
+
alignCenter: "Aligner au centre",
|
|
34
|
+
alignRight: "Aligner à droite",
|
|
35
|
+
alignJustify: "Justifier",
|
|
36
|
+
headerFooter: "En-tête et pied de page"
|
|
37
|
+
},
|
|
38
|
+
table: {
|
|
39
|
+
insert: "Insérer",
|
|
40
|
+
insertRowAbove: "Insérer une ligne au-dessus",
|
|
41
|
+
insertRowBelow: "Insérer une ligne en dessous",
|
|
42
|
+
insertColumnLeft: "Insérer une colonne à gauche",
|
|
43
|
+
insertColumnRight: "Insérer une colonne à droite",
|
|
44
|
+
delete: "Supprimer",
|
|
45
|
+
deleteRows: "Supprimer une ligne",
|
|
46
|
+
deleteColumns: "Supprimer une colonne",
|
|
47
|
+
deleteTable: "Supprimer le tableau"
|
|
48
|
+
},
|
|
49
|
+
headerFooter: {
|
|
50
|
+
header: "En-tête",
|
|
51
|
+
footer: "Pied de page",
|
|
52
|
+
panel: "En-tête et pied de page",
|
|
53
|
+
firstPageCheckBox: "Différente la première page",
|
|
54
|
+
oddEvenCheckBox: "Différente les pages impaires et paires",
|
|
55
|
+
headerTopMargin: "Marge en haut de l'en-tête(px)",
|
|
56
|
+
footerBottomMargin: "Marge en bas du pied de page(px)",
|
|
57
|
+
closeHeaderFooter: "Fermer l'en-tête et le pied de page",
|
|
58
|
+
disableText: "Les paramètres de l'en-tête et du pied de page sont désactivés"
|
|
59
|
+
},
|
|
60
|
+
doc: {
|
|
61
|
+
menu: {
|
|
62
|
+
paragraphSetting: "Paramètres de paragraphe"
|
|
63
|
+
},
|
|
64
|
+
slider: {
|
|
65
|
+
paragraphSetting: "Paramètres de paragraphe"
|
|
66
|
+
},
|
|
67
|
+
paragraphSetting: {
|
|
68
|
+
alignment: "Alignement",
|
|
69
|
+
indentation: "Indentation",
|
|
70
|
+
left: "Gauche",
|
|
71
|
+
right: "Droite",
|
|
72
|
+
firstLine: "Première ligne",
|
|
73
|
+
hanging: "Retrait",
|
|
74
|
+
spacing: "Espacement",
|
|
75
|
+
before: "Avant",
|
|
76
|
+
after: "Après",
|
|
77
|
+
lineSpace: "Espacement de ligne",
|
|
78
|
+
multiSpace: "Espacement multiple",
|
|
79
|
+
fixedValue: "Valeur fixe(px)"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
export {
|
|
84
|
+
e as default
|
|
85
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ICommand, IDocumentBody, IDocumentData, ITextRange } from '@univerjs/core';
|
|
2
2
|
import { ITextRangeWithStyle } from '@univerjs/engine-render';
|
|
3
|
-
interface IReplaceSnapshotCommandParams {
|
|
3
|
+
export interface IReplaceSnapshotCommandParams {
|
|
4
4
|
unitId: string;
|
|
5
5
|
snapshot: IDocumentData;
|
|
6
6
|
textRanges: ITextRangeWithStyle[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DependencyOverride } from '@univerjs/core';
|
|
2
2
|
import { MenuConfig } from '@univerjs/ui';
|
|
3
3
|
import { ILayout } from '../basics';
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const DOCS_UI_PLUGIN_CONFIG_KEY = "docs-ui.config";
|
|
5
5
|
export declare const configSymbol: unique symbol;
|
|
6
6
|
export interface IUniverDocsUIConfig {
|
|
7
7
|
menu?: MenuConfig;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
2
3
|
import { DocAutoFormatService } from '../services/doc-auto-format.service';
|
|
3
4
|
export declare class DocAutoFormatController extends Disposable {
|
|
4
5
|
private readonly _docAutoFormatService;
|
|
5
|
-
|
|
6
|
+
private readonly _renderManagerService;
|
|
7
|
+
constructor(_docAutoFormatService: DocAutoFormatService, _renderManagerService: IRenderManagerService);
|
|
6
8
|
private _initListTabAutoFormat;
|
|
7
9
|
private _initListSpaceAutoFormat;
|
|
8
10
|
private _initExitListAutoFormat;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IConfigService, Injector, LocaleService } from '@univerjs/core';
|
|
2
1
|
import { DocContainer } from '../views/doc-container/DocContainer';
|
|
3
2
|
import { IUniverDocsUIConfig } from './config.schema';
|
|
3
|
+
import { IConfigService, Injector, LocaleService } from '@univerjs/core';
|
|
4
4
|
export declare class DocContainerUIController {
|
|
5
5
|
private readonly _localeService;
|
|
6
6
|
private readonly _injector;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import './global.css';
|
|
16
17
|
export { DocAutoFormatService } from '../../docs-ui/src/services/doc-auto-format.service';
|
|
17
18
|
export * from './basics';
|
|
18
19
|
export type { IDocObjectParam } from './basics/component-tools';
|
|
@@ -23,9 +24,9 @@ export { hasParagraphInTable } from './basics/paragraph';
|
|
|
23
24
|
export { docDrawingPositionToTransform, transformToDocDrawingPosition } from './basics/transform-position';
|
|
24
25
|
export { getCommandSkeleton, getRichTextEditPath } from './commands/util';
|
|
25
26
|
export { TextEditor } from './components/editor/TextEditor';
|
|
26
|
-
export { RangeSelector } from './components/range-selector/RangeSelector';
|
|
27
|
+
export { RangeSelector as DocRangeSelector } from './components/range-selector/RangeSelector';
|
|
27
28
|
export { DocUIController } from './controllers/doc-ui.controller';
|
|
28
|
-
export { menuSchema } from './controllers/menu.schema';
|
|
29
|
+
export { menuSchema as DocsUIMenuSchema } from './controllers/menu.schema';
|
|
29
30
|
export { DocBackScrollRenderController } from './controllers/render-controllers/back-scroll.render-controller';
|
|
30
31
|
export { DocRenderController } from './controllers/render-controllers/doc.render-controller';
|
|
31
32
|
export * from './docs-ui-plugin';
|
|
@@ -66,7 +67,7 @@ export { getParagraphsInRange, getParagraphsInRanges } from './commands/commands
|
|
|
66
67
|
export { BulletListCommand, ChangeListNestingLevelCommand, ChangeListTypeCommand, CheckListCommand, ListOperationCommand, OrderListCommand, QuickListCommand, ToggleCheckListCommand, } from './commands/commands/list.command';
|
|
67
68
|
export { ChangeListNestingLevelType } from './commands/commands/list.command';
|
|
68
69
|
export { AlignCenterCommand, AlignJustifyCommand, AlignLeftCommand, AlignOperationCommand, AlignRightCommand, } from './commands/commands/paragraph-align.command';
|
|
69
|
-
export { CoverContentCommand, ReplaceContentCommand, ReplaceSnapshotCommand } from './commands/commands/replace-content.command';
|
|
70
|
+
export { CoverContentCommand, type IReplaceSelectionCommandParams, type IReplaceSnapshotCommandParams, ReplaceContentCommand, ReplaceSnapshotCommand } from './commands/commands/replace-content.command';
|
|
70
71
|
export { SetDocZoomRatioCommand } from './commands/commands/set-doc-zoom-ratio.command';
|
|
71
72
|
export { CreateDocTableCommand, type ICreateDocTableCommandParams } from './commands/commands/table/doc-table-create.command';
|
|
72
73
|
export { DocTableDeleteColumnsCommand, DocTableDeleteRowsCommand, DocTableDeleteTableCommand } from './commands/commands/table/doc-table-delete.command';
|