@univerjs/docs-ui 0.15.2 → 0.15.3-insiders.20260131-cbd5fac
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 +15 -15
- package/lib/cjs/locale/sk-SK.js +1 -0
- package/lib/es/facade.js +7 -7
- package/lib/es/index.js +1699 -1655
- package/lib/es/locale/sk-SK.js +125 -0
- package/lib/facade.js +7 -7
- package/lib/index.css +1 -1
- package/lib/index.js +1699 -1655
- package/lib/locale/sk-SK.js +125 -0
- package/lib/types/index.d.ts +1 -1
- package/lib/types/locale/sk-SK.d.ts +3 -0
- package/lib/types/services/selection/doc-selection-render.service.d.ts +1 -0
- package/lib/types/views/doc-container/DocContainer.d.ts +17 -1
- package/lib/types/views/rich-text-editor/hooks/index.d.ts +5 -0
- package/lib/types/views/rich-text-editor/hooks/use-editor-click-outside.d.ts +16 -0
- package/lib/types/views/rich-text-editor/hooks/use-is-focusing.d.ts +16 -0
- package/lib/types/views/rich-text-editor/index.d.ts +1 -0
- package/lib/umd/index.js +15 -15
- package/lib/umd/locale/sk-SK.js +1 -0
- package/package.json +10 -10
- package/LICENSE +0 -176
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
const a = {
|
|
2
|
+
toolbar: {
|
|
3
|
+
undo: "Späť",
|
|
4
|
+
redo: "Znova",
|
|
5
|
+
font: "Písmo",
|
|
6
|
+
fontSize: "Veľkosť písma",
|
|
7
|
+
bold: "Tučné",
|
|
8
|
+
italic: "Kurzíva",
|
|
9
|
+
strikethrough: "Prečiarknuté",
|
|
10
|
+
subscript: "Dolný index",
|
|
11
|
+
superscript: "Horný index",
|
|
12
|
+
underline: "Podčiarknutie",
|
|
13
|
+
textColor: {
|
|
14
|
+
main: "Farba textu",
|
|
15
|
+
right: "Vybrať farbu"
|
|
16
|
+
},
|
|
17
|
+
fillColor: {
|
|
18
|
+
main: "Farba pozadia textu",
|
|
19
|
+
right: "Vybrať farbu"
|
|
20
|
+
},
|
|
21
|
+
table: {
|
|
22
|
+
main: "Tabuľka",
|
|
23
|
+
insert: "Vložiť tabuľku",
|
|
24
|
+
colCount: "Počet stĺpcov",
|
|
25
|
+
rowCount: "Počet riadkov"
|
|
26
|
+
},
|
|
27
|
+
resetColor: "Obnoviť",
|
|
28
|
+
order: "Číslovaný zoznam",
|
|
29
|
+
unorder: "Odrážkový zoznam",
|
|
30
|
+
checklist: "Zoznam úloh",
|
|
31
|
+
documentFlavor: "Moderný režim",
|
|
32
|
+
alignLeft: "Zarovnať doľava",
|
|
33
|
+
alignCenter: "Zarovnať na stred",
|
|
34
|
+
alignRight: "Zarovnať doprava",
|
|
35
|
+
alignJustify: "Zarovnať do bloku",
|
|
36
|
+
horizontalLine: "Vodorovná čiara",
|
|
37
|
+
headerFooter: "Hlavička a päta",
|
|
38
|
+
pageSetup: "Nastavenie stránky"
|
|
39
|
+
},
|
|
40
|
+
table: {
|
|
41
|
+
insert: "Vložiť",
|
|
42
|
+
insertRowAbove: "Vložiť riadok nad",
|
|
43
|
+
insertRowBelow: "Vložiť riadok pod",
|
|
44
|
+
insertColumnLeft: "Vložiť stĺpec vľavo",
|
|
45
|
+
insertColumnRight: "Vložiť stĺpec vpravo",
|
|
46
|
+
delete: "Odstrániť tabuľku",
|
|
47
|
+
deleteRows: "Odstrániť riadok",
|
|
48
|
+
deleteColumns: "Odstrániť stĺpec",
|
|
49
|
+
deleteTable: "Odstrániť tabuľku"
|
|
50
|
+
},
|
|
51
|
+
headerFooter: {
|
|
52
|
+
header: "Hlavička",
|
|
53
|
+
footer: "Päta",
|
|
54
|
+
panel: "Nastavenia hlavičky a päty",
|
|
55
|
+
firstPageCheckBox: "Iná prvá strana",
|
|
56
|
+
oddEvenCheckBox: "Iné párne a nepárne strany",
|
|
57
|
+
headerTopMargin: "Horný okraj hlavičky (px)",
|
|
58
|
+
footerBottomMargin: "Dolný okraj päty (px)",
|
|
59
|
+
closeHeaderFooter: "Zavrieť hlavičku a pätu",
|
|
60
|
+
disableText: "Nastavenia hlavičky a päty sú vypnuté"
|
|
61
|
+
},
|
|
62
|
+
doc: {
|
|
63
|
+
menu: {
|
|
64
|
+
paragraphSetting: "Nastavenia odseku"
|
|
65
|
+
},
|
|
66
|
+
slider: {
|
|
67
|
+
paragraphSetting: "Nastavenia odseku"
|
|
68
|
+
},
|
|
69
|
+
paragraphSetting: {
|
|
70
|
+
alignment: "Zarovnanie",
|
|
71
|
+
indentation: "Odsadenie",
|
|
72
|
+
left: "Vľavo",
|
|
73
|
+
right: "Vpravo",
|
|
74
|
+
firstLine: "Prvý riadok",
|
|
75
|
+
hanging: "Predsadenie",
|
|
76
|
+
spacing: "Medzery",
|
|
77
|
+
before: "Pred",
|
|
78
|
+
after: "Za",
|
|
79
|
+
lineSpace: "Riadkovanie",
|
|
80
|
+
multiSpace: "Viacnásobné",
|
|
81
|
+
fixedValue: "Pevná hodnota (px)"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
rightClick: {
|
|
85
|
+
copy: "Kopírovať",
|
|
86
|
+
cut: "Vystrihnúť",
|
|
87
|
+
paste: "Prilepiť",
|
|
88
|
+
delete: "Odstrániť",
|
|
89
|
+
bulletList: "Odrážkový zoznam",
|
|
90
|
+
orderList: "Číslovaný zoznam",
|
|
91
|
+
checkList: "Zoznam úloh",
|
|
92
|
+
insertBellow: "Vložiť pod"
|
|
93
|
+
},
|
|
94
|
+
"page-settings": {
|
|
95
|
+
"document-setting": "Nastavenia dokumentu",
|
|
96
|
+
"paper-size": "Veľkosť papiera",
|
|
97
|
+
"page-size": {
|
|
98
|
+
main: "Veľkosť papiera",
|
|
99
|
+
a4: "A4",
|
|
100
|
+
a3: "A3",
|
|
101
|
+
a5: "A5",
|
|
102
|
+
b4: "B4",
|
|
103
|
+
b5: "B5",
|
|
104
|
+
letter: "Letter",
|
|
105
|
+
legal: "Legal",
|
|
106
|
+
tabloid: "Tabloid",
|
|
107
|
+
statement: "Statement",
|
|
108
|
+
executive: "Executive",
|
|
109
|
+
folio: "Folio"
|
|
110
|
+
},
|
|
111
|
+
orientation: "Orientácia",
|
|
112
|
+
portrait: "Na výšku",
|
|
113
|
+
landscape: "Na šírku",
|
|
114
|
+
"custom-paper-size": "Vlastná veľkosť papiera",
|
|
115
|
+
top: "Hore",
|
|
116
|
+
bottom: "Dole",
|
|
117
|
+
left: "Vľavo",
|
|
118
|
+
right: "Vpravo",
|
|
119
|
+
cancel: "Zrušiť",
|
|
120
|
+
confirm: "Potvrdiť"
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
export {
|
|
124
|
+
a as default
|
|
125
|
+
};
|
package/lib/facade.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var h = Object.defineProperty;
|
|
2
2
|
var v = (n, e, t) => e in n ? h(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var m = (n, e, t) => v(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { Inject as _, Injector as g,
|
|
4
|
+
import { Inject as _, Injector as g, UniverInstanceType as a, UndoCommand as I, RedoCommand as p, DOC_RANGE_TYPE as S, IUniverInstanceService as l, ICommandService as D, IResourceManagerService as U } from "@univerjs/core";
|
|
5
5
|
import { FUniver as u } from "@univerjs/core/facade";
|
|
6
6
|
import { InsertCommand as f, DocSelectionRenderService as C } from "@univerjs/docs-ui";
|
|
7
7
|
import { IRenderManagerService as y } from "@univerjs/engine-render";
|
|
@@ -26,10 +26,10 @@ let o = class {
|
|
|
26
26
|
return e.resources = n, e;
|
|
27
27
|
}
|
|
28
28
|
undo() {
|
|
29
|
-
return this._univerInstanceService.focusUnit(this.id), this._commandService.executeCommand(
|
|
29
|
+
return this._univerInstanceService.focusUnit(this.id), this._commandService.executeCommand(I.id);
|
|
30
30
|
}
|
|
31
31
|
redo() {
|
|
32
|
-
return this._univerInstanceService.focusUnit(this.id), this._commandService.executeCommand(
|
|
32
|
+
return this._univerInstanceService.focusUnit(this.id), this._commandService.executeCommand(p.id);
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Adds the specified text to the end of this text region.
|
|
@@ -71,7 +71,7 @@ let o = class {
|
|
|
71
71
|
{
|
|
72
72
|
startOffset: n,
|
|
73
73
|
endOffset: e,
|
|
74
|
-
rangeType:
|
|
74
|
+
rangeType: S.TEXT
|
|
75
75
|
}
|
|
76
76
|
],
|
|
77
77
|
!0
|
|
@@ -80,9 +80,9 @@ let o = class {
|
|
|
80
80
|
};
|
|
81
81
|
o = R([
|
|
82
82
|
c(1, _(g)),
|
|
83
|
-
c(2,
|
|
84
|
-
c(3,
|
|
85
|
-
c(4,
|
|
83
|
+
c(2, l),
|
|
84
|
+
c(3, D),
|
|
85
|
+
c(4, U),
|
|
86
86
|
c(5, y)
|
|
87
87
|
], o);
|
|
88
88
|
class O extends u {
|
package/lib/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.univer-absolute{position:absolute}.univer-relative{position:relative}.univer-bottom-0{bottom:0}.univer-left-0{left:0}.univer-left-5{left:1.25rem}.univer-left-\[5px\]{left:5px}.univer-top-0{top:0}.univer-top-4{top:1rem}.univer-top-\[5px\]{top:5px}.univer-z-\[100\]{z-index:100}.univer-mb-1{margin-bottom:.25rem}.univer-mb-2{margin-bottom:.5rem}.univer-mr-1{margin-right:.25rem}.univer-mt-1\.5{margin-top:.375rem}.univer-mt-12{margin-top:3rem}.univer-mt-3{margin-top:.75rem}.univer-mt-4{margin-top:1rem}.univer-box-border{box-sizing:border-box}.univer-block{display:block}.univer-flex{display:flex}.univer-inline-flex{display:inline-flex}.univer-grid{display:grid}.univer-size-3{width:.75rem;height:.75rem}.univer-size-4{width:1rem;height:1rem}.univer-size-full{width:100%;height:100%}.univer-h-20{height:5rem}.univer-h-7{height:1.75rem}.univer-h-8{height:2rem}.univer-h-\[24px\]{height:24px}.univer-w-28{width:7rem}.univer-w-4\/5{width:80%}.univer-w
|
|
1
|
+
.univer-absolute{position:absolute}.univer-relative{position:relative}.univer-bottom-0{bottom:0}.univer-left-0{left:0}.univer-left-5{left:1.25rem}.univer-left-\[5px\]{left:5px}.univer-top-0{top:0}.univer-top-4{top:1rem}.univer-top-\[5px\]{top:5px}.univer-z-\[100\]{z-index:100}.univer-mb-1{margin-bottom:.25rem}.univer-mb-2{margin-bottom:.5rem}.univer-mr-1{margin-right:.25rem}.univer-mt-1\.5{margin-top:.375rem}.univer-mt-12{margin-top:3rem}.univer-mt-3{margin-top:.75rem}.univer-mt-4{margin-top:1rem}.univer-box-border{box-sizing:border-box}.univer-block{display:block}.univer-flex{display:flex}.univer-inline-flex{display:inline-flex}.univer-grid{display:grid}.univer-size-3{width:.75rem;height:.75rem}.univer-size-4{width:1rem;height:1rem}.univer-size-8{width:2rem;height:2rem}.univer-size-full{width:100%;height:100%}.univer-h-20{height:5rem}.univer-h-7{height:1.75rem}.univer-h-8{height:2rem}.univer-h-\[24px\]{height:24px}.univer-w-28{width:7rem}.univer-w-4\/5{width:80%}.univer-w-\[0px\]{width:0px}.univer-w-\[162px\]{width:162px}.univer-w-\[72px\]{width:72px}.univer-w-full{width:100%}.univer-min-w-\[180px\]{min-width:180px}.univer-flex-1{flex:1 1 0%}.univer-flex-shrink-0{flex-shrink:0}.univer-cursor-pointer{cursor:pointer}.univer-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.univer-flex-col{flex-direction:column}.univer-flex-nowrap{flex-wrap:nowrap}.univer-items-center{align-items:center}.univer-justify-end{justify-content:flex-end}.univer-justify-center{justify-content:center}.univer-justify-between{justify-content:space-between}.univer-justify-around{justify-content:space-around}.univer-gap-1{gap:.25rem}.univer-gap-1\.5{gap:.375rem}.univer-gap-2{gap:.5rem}.univer-gap-2\.5{gap:.625rem}.univer-gap-4{gap:1rem}.univer-overflow-hidden{overflow:hidden}.univer-overflow-y-auto{overflow-y:auto}.univer-overflow-x-hidden{overflow-x:hidden}.univer-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-rounded{border-radius:.25rem}.univer-rounded-full{border-radius:9999px}.univer-rounded-md{border-radius:.375rem}.univer-rounded-r-2xl{border-top-right-radius:1rem;border-bottom-right-radius:1rem}.univer-border-primary-500{border-color:var(--univer-primary-500)}.\!univer-bg-gray-700{background-color:var(--univer-gray-700)!important}.\!univer-bg-gray-900{background-color:var(--univer-gray-900)!important}.univer-bg-gray-100{background-color:var(--univer-gray-100)}.univer-bg-white{background-color:var(--univer-white)}.univer-bg-none{background-image:none}.univer-p-1{padding:.25rem}.univer-p-1\.5{padding:.375rem}.univer-px-2{padding-left:.5rem;padding-right:.5rem}.univer-px-2\.5{padding-left:.625rem;padding-right:.625rem}.univer-px-3{padding-left:.75rem;padding-right:.75rem}.univer-px-4{padding-left:1rem;padding-right:1rem}.univer-px-5{padding-left:1.25rem;padding-right:1.25rem}.univer-py-0{padding-top:0;padding-bottom:0}.univer-py-1{padding-top:.25rem;padding-bottom:.25rem}.univer-py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.univer-pb-0\.5{padding-bottom:.125rem}.univer-pb-4{padding-bottom:1rem}.univer-pl-1\.5{padding-left:.375rem}.univer-pr-1{padding-right:.25rem}.univer-pr-2{padding-right:.5rem}.univer-pt-1\.5{padding-top:.375rem}.univer-pt-14{padding-top:3.5rem}.univer-text-base{font-size:1rem;line-height:1.5rem}.univer-text-sm{font-size:.875rem;line-height:1.25rem}.univer-text-xs{font-size:.75rem;line-height:1rem}.univer-font-\[500\],.univer-font-medium{font-weight:500}.univer-font-semibold{font-weight:600}.univer-leading-\[24px\]{line-height:24px}.\!univer-text-gray-200{color:var(--univer-gray-200)!important}.\!univer-text-gray-400{color:var(--univer-gray-400)!important}.univer-text-gray-400{color:var(--univer-gray-400)}.univer-text-gray-500{color:var(--univer-gray-500)}.univer-text-gray-600{color:var(--univer-gray-600)}.univer-text-gray-800{color:var(--univer-gray-800)}.univer-text-gray-900{color:var(--univer-gray-900)}.univer-shadow{--univer-tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);--univer-tw-shadow-colored: 0 1px 3px 0 var(--univer-tw-shadow-color), 0 1px 2px -1px var(--univer-tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 1px 3px #0000001a,0 1px 2px -1px #0000001a;box-shadow:var(--univer-tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--univer-tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--univer-tw-shadow)}.univer-shadow-sm{--univer-tw-shadow: 0px 1px 2px 0px rgba(30, 40, 77, .08);--univer-tw-shadow-colored: 0px 1px 2px 0px var(--univer-tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 1px 2px #1e284d14;box-shadow:var(--univer-tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--univer-tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--univer-tw-shadow)}.univer-backdrop-blur-\[10px\]{--univer-tw-backdrop-blur: blur(10px);backdrop-filter:blur(10px) var(--univer-tw-backdrop-brightness) var(--univer-tw-backdrop-contrast) var(--univer-tw-backdrop-grayscale) var(--univer-tw-backdrop-hue-rotate) var(--univer-tw-backdrop-invert) var(--univer-tw-backdrop-opacity) var(--univer-tw-backdrop-saturate) var(--univer-tw-backdrop-sepia);backdrop-filter:var(--univer-tw-backdrop-blur) var(--univer-tw-backdrop-brightness) var(--univer-tw-backdrop-contrast) var(--univer-tw-backdrop-grayscale) var(--univer-tw-backdrop-hue-rotate) var(--univer-tw-backdrop-invert) var(--univer-tw-backdrop-opacity) var(--univer-tw-backdrop-saturate) var(--univer-tw-backdrop-sepia)}.univer-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.univer-duration-300{transition-duration:.3s}.hover\:univer-border-primary-500:hover{border-color:var(--univer-primary-500)}.hover\:univer-bg-gray-100:hover{background-color:var(--univer-gray-100)}.dark\:\!univer-border-gray-700:where(.univer-dark,.univer-dark *){border-color:var(--univer-gray-700)!important}.dark\:\!univer-bg-gray-600:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-600)!important}.dark\:\!univer-bg-gray-700:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-700)!important}.dark\:\!univer-bg-gray-900:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-900)!important}.dark\:\!univer-text-gray-200:where(.univer-dark,.univer-dark *){color:var(--univer-gray-200)!important}.dark\:\!univer-text-gray-400:where(.univer-dark,.univer-dark *){color:var(--univer-gray-400)!important}.dark\:\!univer-text-white:where(.univer-dark,.univer-dark *){color:var(--univer-white)!important}.dark\:hover\:\!univer-bg-gray-600:hover:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-600)!important}
|