@univerjs/docs-ui 0.25.0 → 1.0.0-alpha.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/facade.js +23 -183
- package/lib/cjs/index.js +7475 -5364
- package/lib/cjs/locale/ar-SA.js +35 -1
- package/lib/cjs/locale/ca-ES.js +35 -1
- package/lib/cjs/locale/de-DE.js +35 -1
- package/lib/cjs/locale/en-US.js +35 -1
- package/lib/cjs/locale/es-ES.js +35 -1
- package/lib/cjs/locale/fa-IR.js +35 -1
- package/lib/cjs/locale/fr-FR.js +35 -1
- package/lib/cjs/locale/id-ID.js +35 -1
- package/lib/cjs/locale/it-IT.js +35 -1
- package/lib/cjs/locale/ja-JP.js +35 -1
- package/lib/cjs/locale/ko-KR.js +35 -1
- package/lib/cjs/locale/pl-PL.js +35 -1
- package/lib/cjs/locale/pt-BR.js +35 -1
- package/lib/cjs/locale/ru-RU.js +35 -1
- package/lib/cjs/locale/sk-SK.js +35 -1
- package/lib/cjs/locale/vi-VN.js +35 -1
- package/lib/cjs/locale/zh-CN.js +35 -1
- package/lib/cjs/locale/zh-HK.js +35 -1
- package/lib/cjs/locale/zh-TW.js +35 -1
- package/lib/es/facade.js +25 -178
- package/lib/es/index.js +7934 -5853
- package/lib/es/locale/ar-SA.js +35 -1
- package/lib/es/locale/ca-ES.js +35 -1
- package/lib/es/locale/de-DE.js +35 -1
- package/lib/es/locale/en-US.js +35 -1
- package/lib/es/locale/es-ES.js +35 -1
- package/lib/es/locale/fa-IR.js +35 -1
- package/lib/es/locale/fr-FR.js +35 -1
- package/lib/es/locale/id-ID.js +35 -1
- package/lib/es/locale/it-IT.js +35 -1
- package/lib/es/locale/ja-JP.js +35 -1
- package/lib/es/locale/ko-KR.js +35 -1
- package/lib/es/locale/pl-PL.js +35 -1
- package/lib/es/locale/pt-BR.js +35 -1
- package/lib/es/locale/ru-RU.js +35 -1
- package/lib/es/locale/sk-SK.js +35 -1
- package/lib/es/locale/vi-VN.js +35 -1
- package/lib/es/locale/zh-CN.js +35 -1
- package/lib/es/locale/zh-HK.js +35 -1
- package/lib/es/locale/zh-TW.js +35 -1
- package/lib/facade.js +25 -178
- package/lib/index.css +25 -35
- package/lib/index.js +7934 -5853
- package/lib/locale/ar-SA.js +35 -1
- package/lib/locale/ca-ES.js +35 -1
- package/lib/locale/de-DE.js +35 -1
- package/lib/locale/en-US.js +35 -1
- package/lib/locale/es-ES.js +35 -1
- package/lib/locale/fa-IR.js +35 -1
- package/lib/locale/fr-FR.js +35 -1
- package/lib/locale/id-ID.js +35 -1
- package/lib/locale/it-IT.js +35 -1
- package/lib/locale/ja-JP.js +35 -1
- package/lib/locale/ko-KR.js +35 -1
- package/lib/locale/pl-PL.js +35 -1
- package/lib/locale/pt-BR.js +35 -1
- package/lib/locale/ru-RU.js +35 -1
- package/lib/locale/sk-SK.js +35 -1
- package/lib/locale/vi-VN.js +35 -1
- package/lib/locale/zh-CN.js +35 -1
- package/lib/locale/zh-HK.js +35 -1
- package/lib/locale/zh-TW.js +35 -1
- package/lib/types/commands/commands/doc-delete.command.d.ts +1 -1
- package/lib/types/commands/commands/inline-format.command.d.ts +3 -1
- package/lib/types/commands/commands/table/doc-table-create.command.d.ts +31 -1
- package/lib/types/commands/operations/doc-cursor.operation.d.ts +2 -0
- package/lib/types/commands/util.d.ts +1 -2
- package/lib/types/config/config.d.ts +15 -0
- package/lib/types/controllers/components.controller.d.ts +25 -0
- package/lib/types/controllers/doc-header-footer.controller.d.ts +1 -4
- package/lib/types/controllers/doc-move-cursor.controller.d.ts +9 -0
- package/lib/types/controllers/doc-paragraph-setting.controller.d.ts +2 -4
- package/lib/types/controllers/doc-table.controller.d.ts +1 -4
- package/lib/types/controllers/render-controllers/doc-paragraph-placeholder.render-controller.d.ts +51 -0
- package/lib/types/controllers/render-controllers/doc.render-controller.d.ts +5 -2
- package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +3 -1
- package/lib/types/controllers/{doc-ui.controller.d.ts → ui.controller.d.ts} +2 -4
- package/lib/types/facade/f-document.d.ts +11 -43
- package/lib/types/facade/index.d.ts +2 -3
- package/lib/types/index.d.ts +39 -26
- package/lib/types/locale/en-US.d.ts +34 -0
- package/lib/types/{views/side-menu/index.d.ts → locale/types.d.ts} +3 -1
- package/lib/types/menu/context-menu.d.ts +15 -14
- package/lib/types/menu/menu.d.ts +31 -29
- package/lib/types/menu/paragraph-menu.d.ts +68 -38
- package/lib/types/services/clipboard/html-to-udm/converter.d.ts +1 -0
- package/lib/types/services/doc-event-manager.service.d.ts +15 -0
- package/lib/types/services/doc-ime-state-change-interceptor.service.d.ts +23 -0
- package/lib/types/services/doc-page-layout.service.d.ts +3 -1
- package/lib/types/services/doc-paragraph-menu.service.d.ts +26 -2
- package/lib/types/services/doc-render-background.d.ts +29 -0
- package/lib/types/services/doc-view-scale.d.ts +54 -0
- package/lib/types/services/doc-zoom.d.ts +20 -0
- package/lib/types/services/docs-render.service.d.ts +5 -2
- package/lib/types/services/editor/editor-manager.service.d.ts +8 -1
- package/lib/types/services/index.d.ts +2 -0
- package/lib/types/services/selection/selection-utils.d.ts +0 -15
- package/lib/types/services/{doc-content-insert.service.d.ts → selection/word-boundary.d.ts} +4 -10
- package/lib/types/shortcuts/core-editing.shortcut.d.ts +1 -0
- package/lib/types/shortcuts/cursor.shortcut.d.ts +12 -0
- package/lib/types/shortcuts/heading.shortcut.d.ts +22 -0
- package/lib/types/{types/delete-direction.d.ts → views/DocSideMenu.d.ts} +1 -4
- package/lib/types/views/Icon.d.ts +49 -0
- package/lib/types/views/{page-settings/index.d.ts → PageSettings.d.ts} +1 -1
- package/lib/types/views/ParagraphMenu.d.ts +62 -0
- package/lib/types/views/{rich-text-editor/index.d.ts → RichTextEditor.d.ts} +3 -3
- package/lib/types/{components/side-menu/index.d.ts → views/SideMenu.d.ts} +4 -3
- package/lib/types/views/count-bar/CountBar.d.ts +1 -1
- package/lib/types/views/count-bar/ZoomSlider.d.ts +1 -1
- package/lib/types/views/doc-footer/DocFooter.d.ts +1 -1
- package/lib/types/views/float-toolbar/FloatToolbar.d.ts +25 -0
- package/lib/types/{components → views}/float-toolbar/FloatToolbar.stories.d.ts +1 -1
- package/lib/types/views/header-footer/panel/DocHeaderFooterOptions.d.ts +1 -1
- package/lib/types/views/header-footer/panel/DocHeaderFooterPanel.d.ts +1 -1
- package/lib/types/{components → views}/list-type-picker/Picker.d.ts +3 -3
- package/lib/types/{components/float-toolbar/FloatToolbar.d.ts → views/paragraph-menu/component-keys.d.ts} +2 -5
- package/lib/types/views/paragraph-menu/theme-color.d.ts +17 -0
- package/lib/types/views/paragraph-setting/Setting.d.ts +1 -1
- package/lib/types/views/paragraph-setting/index.d.ts +1 -1
- package/lib/types/views/paragraph-setting/line-spacing.d.ts +51 -0
- package/lib/types/views/rich-text-editor/hooks/editor-undo-redo-keyboard.d.ts +32 -0
- package/lib/types/views/rich-text-editor/hooks/index.d.ts +1 -0
- package/lib/types/views/rich-text-editor/hooks/use-editor-click-outside.d.ts +2 -1
- package/lib/types/{components → views}/side-menu/SideMenu.stories.d.ts +5 -5
- package/lib/types/views/table/create/TableCreate.d.ts +1 -1
- package/lib/umd/facade.js +1 -5
- package/lib/umd/index.js +11 -26
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +12 -12
- package/lib/types/commands/commands/core-editing.command.d.ts +0 -58
- package/lib/types/components/paragraph-menu/index.d.ts +0 -41
- package/lib/types/facade/f-univer.d.ts +0 -52
- package/lib/types/services/doc-state-change-manager.service.d.ts +0 -50
- /package/lib/types/{components → views}/const.d.ts +0 -0
- /package/lib/types/{components → views}/editor/utils.d.ts +0 -0
- /package/lib/types/{components → views}/list-type-picker/index.d.ts +0 -0
package/lib/facade.js
CHANGED
|
@@ -1,165 +1,38 @@
|
|
|
1
|
-
import { DOC_RANGE_TYPE
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { DOC_RANGE_TYPE } from "@univerjs/core";
|
|
2
|
+
import { DocSelectionRenderService } from "@univerjs/docs-ui";
|
|
3
|
+
import { FDocument } from "@univerjs/docs/facade";
|
|
4
4
|
import { IRenderManagerService } from "@univerjs/engine-render";
|
|
5
5
|
|
|
6
|
-
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
|
|
7
|
-
function _typeof(o) {
|
|
8
|
-
"@babel/helpers - typeof";
|
|
9
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
10
|
-
return typeof o;
|
|
11
|
-
} : function(o) {
|
|
12
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
13
|
-
}, _typeof(o);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
|
|
18
|
-
function toPrimitive(t, r) {
|
|
19
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
20
|
-
var e = t[Symbol.toPrimitive];
|
|
21
|
-
if (void 0 !== e) {
|
|
22
|
-
var i = e.call(t, r || "default");
|
|
23
|
-
if ("object" != _typeof(i)) return i;
|
|
24
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
25
|
-
}
|
|
26
|
-
return ("string" === r ? String : Number)(t);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
|
|
31
|
-
function toPropertyKey(t) {
|
|
32
|
-
var i = toPrimitive(t, "string");
|
|
33
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
|
|
38
|
-
function _defineProperty(e, r, t) {
|
|
39
|
-
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
40
|
-
value: t,
|
|
41
|
-
enumerable: !0,
|
|
42
|
-
configurable: !0,
|
|
43
|
-
writable: !0
|
|
44
|
-
}) : e[r] = t, e;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorateParam.js
|
|
49
|
-
function __decorateParam(paramIndex, decorator) {
|
|
50
|
-
return function(target, key) {
|
|
51
|
-
decorator(target, key, paramIndex);
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
//#endregion
|
|
56
|
-
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
|
|
57
|
-
function __decorate(decorators, target, key, desc) {
|
|
58
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
59
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
60
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
61
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
//#endregion
|
|
65
6
|
//#region src/facade/f-document.ts
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
getSnapshot() {
|
|
84
|
-
const resources = this._resourceManagerService.getResourcesByType(this.id, UniverInstanceType.UNIVER_DOC);
|
|
85
|
-
const snapshot = this._documentDataModel.getSnapshot();
|
|
86
|
-
snapshot.resources = resources;
|
|
87
|
-
return snapshot;
|
|
88
|
-
}
|
|
89
|
-
undo() {
|
|
90
|
-
this._univerInstanceService.focusUnit(this.id);
|
|
91
|
-
return this._commandService.executeCommand(UndoCommand.id);
|
|
92
|
-
}
|
|
93
|
-
redo() {
|
|
94
|
-
this._univerInstanceService.focusUnit(this.id);
|
|
95
|
-
return this._commandService.executeCommand(RedoCommand.id);
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Adds the specified text to the end of this text region.
|
|
99
|
-
* @param text - The text to be added to the end of this text region.
|
|
100
|
-
*/
|
|
101
|
-
appendText(text) {
|
|
102
|
-
const { body } = this.getSnapshot();
|
|
103
|
-
if (!body) throw new Error("The document body is empty");
|
|
104
|
-
const lastPosition = body.dataStream.length - 2;
|
|
105
|
-
return this.insertText(text, {
|
|
106
|
-
startOffset: lastPosition,
|
|
107
|
-
endOffset: lastPosition,
|
|
108
|
-
segmentId: ""
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Inserts text at the provided document range. Defaults to appending before the final section break.
|
|
113
|
-
* @param text - The text to insert.
|
|
114
|
-
* @param options - Optional target range, segment id, and cursor offset.
|
|
115
|
-
*/
|
|
116
|
-
insertText(text, options = {}) {
|
|
117
|
-
var _options$startOffset, _options$endOffset, _options$segmentId;
|
|
118
|
-
const unitId = this.id;
|
|
119
|
-
const { body } = this.getSnapshot();
|
|
120
|
-
if (!body) throw new Error("The document body is empty");
|
|
121
|
-
const startOffset = (_options$startOffset = options.startOffset) !== null && _options$startOffset !== void 0 ? _options$startOffset : Math.max(0, body.dataStream.length - 2);
|
|
122
|
-
const endOffset = (_options$endOffset = options.endOffset) !== null && _options$endOffset !== void 0 ? _options$endOffset : startOffset;
|
|
123
|
-
const segmentId = (_options$segmentId = options.segmentId) !== null && _options$segmentId !== void 0 ? _options$segmentId : "";
|
|
124
|
-
const activeRange = {
|
|
125
|
-
startOffset,
|
|
126
|
-
endOffset,
|
|
127
|
-
collapsed: startOffset === endOffset,
|
|
128
|
-
segmentId
|
|
129
|
-
};
|
|
130
|
-
return this._commandService.executeCommand(InsertCommand.id, {
|
|
131
|
-
unitId,
|
|
132
|
-
body: { dataStream: text },
|
|
133
|
-
range: activeRange,
|
|
134
|
-
segmentId,
|
|
135
|
-
...options.cursorOffset == null ? {} : { cursorOffset: options.cursorOffset }
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Inserts one or more plain-text paragraphs at the provided document range.
|
|
140
|
-
* @param text - Paragraph text. Newlines are normalized to document paragraph separators.
|
|
141
|
-
* @param options - Optional target range, segment id, and cursor offset.
|
|
142
|
-
*/
|
|
143
|
-
insertParagraph(text = "", options = {}) {
|
|
144
|
-
var _options$cursorOffset;
|
|
145
|
-
const dataStream = `${text.replace(/\r\n/g, "\n").replace(/\r/g, "\n").split("\n").join("\r\n")}\r\n`;
|
|
146
|
-
return this.insertText(dataStream, {
|
|
147
|
-
...options,
|
|
148
|
-
cursorOffset: (_options$cursorOffset = options.cursorOffset) !== null && _options$cursorOffset !== void 0 ? _options$cursorOffset : dataStream.length
|
|
149
|
-
});
|
|
150
|
-
}
|
|
7
|
+
/**
|
|
8
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
21
|
+
*/
|
|
22
|
+
var FDocumentUIMixin = class extends FDocument {
|
|
151
23
|
/**
|
|
152
24
|
* Sets the selection to a specified text range in the document.
|
|
153
25
|
* @param startOffset - The starting offset of the selection in the document.
|
|
154
26
|
* @param endOffset - The ending offset of the selection in the document.
|
|
155
27
|
* @example
|
|
156
28
|
* ```typescript
|
|
157
|
-
*
|
|
29
|
+
* const fDocument = univerAPI.getActiveDocument();
|
|
30
|
+
* fDocument.setSelection(10, 20);
|
|
158
31
|
* ```
|
|
159
32
|
*/
|
|
160
33
|
setSelection(startOffset, endOffset) {
|
|
161
|
-
var
|
|
162
|
-
const docSelectionRenderService = (
|
|
34
|
+
var _renderManagerService;
|
|
35
|
+
const docSelectionRenderService = (_renderManagerService = this._injector.get(IRenderManagerService).getRenderUnitById(this.getId())) === null || _renderManagerService === void 0 ? void 0 : _renderManagerService.with(DocSelectionRenderService);
|
|
163
36
|
docSelectionRenderService === null || docSelectionRenderService === void 0 || docSelectionRenderService.removeAllRanges();
|
|
164
37
|
docSelectionRenderService === null || docSelectionRenderService === void 0 || docSelectionRenderService.addDocRanges([{
|
|
165
38
|
startOffset,
|
|
@@ -168,33 +41,7 @@ let FDocument = class FDocument {
|
|
|
168
41
|
}], true);
|
|
169
42
|
}
|
|
170
43
|
};
|
|
171
|
-
FDocument
|
|
172
|
-
__decorateParam(1, Inject(Injector)),
|
|
173
|
-
__decorateParam(2, IUniverInstanceService),
|
|
174
|
-
__decorateParam(3, ICommandService),
|
|
175
|
-
__decorateParam(4, IResourceManagerService),
|
|
176
|
-
__decorateParam(5, IRenderManagerService)
|
|
177
|
-
], FDocument);
|
|
178
|
-
|
|
179
|
-
//#endregion
|
|
180
|
-
//#region src/facade/f-univer.ts
|
|
181
|
-
var FUniverDocsUIMixin = class extends FUniver {
|
|
182
|
-
createUniverDoc(data) {
|
|
183
|
-
const document = this._univerInstanceService.createUnit(UniverInstanceType.UNIVER_DOC, data);
|
|
184
|
-
return this._injector.createInstance(FDocument, document);
|
|
185
|
-
}
|
|
186
|
-
getActiveDocument() {
|
|
187
|
-
const document = this._univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_DOC);
|
|
188
|
-
if (!document) return null;
|
|
189
|
-
return this._injector.createInstance(FDocument, document);
|
|
190
|
-
}
|
|
191
|
-
getUniverDoc(id) {
|
|
192
|
-
const document = this._univerInstanceService.getUniverDocInstance(id);
|
|
193
|
-
if (!document) return null;
|
|
194
|
-
return this._injector.createInstance(FDocument, document);
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
FUniver.extend(FUniverDocsUIMixin);
|
|
44
|
+
FDocument.extend(FDocumentUIMixin);
|
|
198
45
|
|
|
199
46
|
//#endregion
|
|
200
|
-
export {
|
|
47
|
+
export { };
|
package/lib/index.css
CHANGED
|
@@ -50,6 +50,15 @@
|
|
|
50
50
|
z-index: 100;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
.univer-z-\[1019\] {
|
|
54
|
+
z-index: 1019;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.univer-my-1 {
|
|
58
|
+
margin-top: .25rem;
|
|
59
|
+
margin-bottom: .25rem;
|
|
60
|
+
}
|
|
61
|
+
|
|
53
62
|
.univer-mb-1 {
|
|
54
63
|
margin-bottom: .25rem;
|
|
55
64
|
}
|
|
@@ -103,16 +112,6 @@
|
|
|
103
112
|
height: .125rem;
|
|
104
113
|
}
|
|
105
114
|
|
|
106
|
-
.univer-size-3 {
|
|
107
|
-
width: .75rem;
|
|
108
|
-
height: .75rem;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.univer-size-4 {
|
|
112
|
-
width: 1rem;
|
|
113
|
-
height: 1rem;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
115
|
.univer-size-5 {
|
|
117
116
|
width: 1.25rem;
|
|
118
117
|
height: 1.25rem;
|
|
@@ -132,10 +131,6 @@
|
|
|
132
131
|
height: .125rem;
|
|
133
132
|
}
|
|
134
133
|
|
|
135
|
-
.univer-h-10 {
|
|
136
|
-
height: 2.5rem;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
134
|
.univer-h-16 {
|
|
140
135
|
height: 4rem;
|
|
141
136
|
}
|
|
@@ -152,6 +147,10 @@
|
|
|
152
147
|
height: 1rem;
|
|
153
148
|
}
|
|
154
149
|
|
|
150
|
+
.univer-h-7 {
|
|
151
|
+
height: 1.75rem;
|
|
152
|
+
}
|
|
153
|
+
|
|
155
154
|
.univer-h-8 {
|
|
156
155
|
height: 2rem;
|
|
157
156
|
}
|
|
@@ -160,10 +159,6 @@
|
|
|
160
159
|
height: 24px;
|
|
161
160
|
}
|
|
162
161
|
|
|
163
|
-
.univer-h-full {
|
|
164
|
-
height: 100%;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
162
|
.univer-min-h-8 {
|
|
168
163
|
min-height: 2rem;
|
|
169
164
|
}
|
|
@@ -200,6 +195,10 @@
|
|
|
200
195
|
width: 100%;
|
|
201
196
|
}
|
|
202
197
|
|
|
198
|
+
.univer-w-px {
|
|
199
|
+
width: 1px;
|
|
200
|
+
}
|
|
201
|
+
|
|
203
202
|
.univer-min-w-0 {
|
|
204
203
|
min-width: 0;
|
|
205
204
|
}
|
|
@@ -252,10 +251,6 @@
|
|
|
252
251
|
align-items: center;
|
|
253
252
|
}
|
|
254
253
|
|
|
255
|
-
.univer-items-stretch {
|
|
256
|
-
align-items: stretch;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
254
|
.univer-justify-end {
|
|
260
255
|
justify-content: flex-end;
|
|
261
256
|
}
|
|
@@ -276,10 +271,6 @@
|
|
|
276
271
|
gap: .25rem;
|
|
277
272
|
}
|
|
278
273
|
|
|
279
|
-
.univer-gap-1\.5 {
|
|
280
|
-
gap: .375rem;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
274
|
.univer-gap-2 {
|
|
284
275
|
gap: .5rem;
|
|
285
276
|
}
|
|
@@ -368,6 +359,10 @@
|
|
|
368
359
|
border-color: var(--univer-primary-500);
|
|
369
360
|
}
|
|
370
361
|
|
|
362
|
+
.\!univer-bg-gray-200 {
|
|
363
|
+
background-color: var(--univer-gray-200) !important;
|
|
364
|
+
}
|
|
365
|
+
|
|
371
366
|
.\!univer-bg-gray-700 {
|
|
372
367
|
background-color: var(--univer-gray-700) !important;
|
|
373
368
|
}
|
|
@@ -429,11 +424,6 @@
|
|
|
429
424
|
padding-right: .5rem;
|
|
430
425
|
}
|
|
431
426
|
|
|
432
|
-
.univer-px-2\.5 {
|
|
433
|
-
padding-left: .625rem;
|
|
434
|
-
padding-right: .625rem;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
427
|
.univer-px-4 {
|
|
438
428
|
padding-left: 1rem;
|
|
439
429
|
padding-right: 1rem;
|
|
@@ -612,10 +602,6 @@
|
|
|
612
602
|
border-color: var(--univer-primary-500);
|
|
613
603
|
}
|
|
614
604
|
|
|
615
|
-
.hover\:univer-bg-gray-100:hover {
|
|
616
|
-
background-color: var(--univer-gray-100);
|
|
617
|
-
}
|
|
618
|
-
|
|
619
605
|
.hover\:univer-bg-gray-50:hover {
|
|
620
606
|
background-color: var(--univer-gray-50);
|
|
621
607
|
}
|
|
@@ -675,6 +661,10 @@
|
|
|
675
661
|
background-color: var(--univer-primary-900) !important;
|
|
676
662
|
}
|
|
677
663
|
|
|
664
|
+
.dark\:univer-bg-gray-700:where(.univer-dark, .univer-dark *) {
|
|
665
|
+
background-color: var(--univer-gray-700);
|
|
666
|
+
}
|
|
667
|
+
|
|
678
668
|
.dark\:\!univer-text-gray-100:where(.univer-dark, .univer-dark *) {
|
|
679
669
|
color: var(--univer-gray-100) !important;
|
|
680
670
|
}
|