@univerjs/sheets-ui 1.0.0-alpha.1 → 1.0.0-alpha.2
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 +4 -3
- package/lib/cjs/index.js +27 -16
- package/lib/cjs/locale/ar-SA.js +2 -2
- package/lib/cjs/locale/ca-ES.js +2 -2
- package/lib/cjs/locale/de-DE.js +2 -2
- package/lib/cjs/locale/es-ES.js +2 -2
- package/lib/cjs/locale/fa-IR.js +2 -2
- package/lib/cjs/locale/fr-FR.js +2 -2
- package/lib/cjs/locale/id-ID.js +2 -2
- package/lib/cjs/locale/it-IT.js +2 -2
- package/lib/cjs/locale/pl-PL.js +2 -2
- package/lib/cjs/locale/pt-BR.js +2 -2
- package/lib/cjs/locale/ru-RU.js +2 -2
- package/lib/cjs/locale/sk-SK.js +2 -2
- package/lib/cjs/locale/vi-VN.js +2 -2
- package/lib/es/facade.js +4 -3
- package/lib/es/index.js +30 -19
- package/lib/es/locale/ar-SA.js +2 -2
- package/lib/es/locale/ca-ES.js +2 -2
- package/lib/es/locale/de-DE.js +2 -2
- package/lib/es/locale/es-ES.js +2 -2
- package/lib/es/locale/fa-IR.js +2 -2
- package/lib/es/locale/fr-FR.js +2 -2
- package/lib/es/locale/id-ID.js +2 -2
- package/lib/es/locale/it-IT.js +2 -2
- package/lib/es/locale/pl-PL.js +2 -2
- package/lib/es/locale/pt-BR.js +2 -2
- package/lib/es/locale/ru-RU.js +2 -2
- package/lib/es/locale/sk-SK.js +2 -2
- package/lib/es/locale/vi-VN.js +2 -2
- package/lib/facade.js +4 -3
- package/lib/index.css +38 -4
- package/lib/index.js +30 -19
- package/lib/locale/ar-SA.js +2 -2
- package/lib/locale/ca-ES.js +2 -2
- package/lib/locale/de-DE.js +2 -2
- package/lib/locale/es-ES.js +2 -2
- package/lib/locale/fa-IR.js +2 -2
- package/lib/locale/fr-FR.js +2 -2
- package/lib/locale/id-ID.js +2 -2
- package/lib/locale/it-IT.js +2 -2
- package/lib/locale/pl-PL.js +2 -2
- package/lib/locale/pt-BR.js +2 -2
- package/lib/locale/ru-RU.js +2 -2
- package/lib/locale/sk-SK.js +2 -2
- package/lib/locale/vi-VN.js +2 -2
- package/lib/types/facade/f-range.d.ts +5 -4
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +2 -2
- 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/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/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/package.json +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1276,13 +1276,14 @@ _univerjs_sheets_facade.FRange.extend(FRangeSheetsUIMixin);
|
|
|
1276
1276
|
* @returns {string} The transformed component key.
|
|
1277
1277
|
*/
|
|
1278
1278
|
function transformComponentKey(component, componentManager) {
|
|
1279
|
-
const { componentKey,
|
|
1279
|
+
const { componentKey, framework } = component;
|
|
1280
1280
|
let key;
|
|
1281
1281
|
const disposableCollection = new _univerjs_core.DisposableCollection();
|
|
1282
1282
|
if (typeof componentKey === "string") key = componentKey;
|
|
1283
1283
|
else {
|
|
1284
|
-
|
|
1285
|
-
|
|
1284
|
+
const resolvedFramework = framework !== null && framework !== void 0 ? framework : "react";
|
|
1285
|
+
key = resolvedFramework === "web-component" ? `external-${(0, _univerjs_core.generateRandomId)(6).toLowerCase()}` : `External_${(0, _univerjs_core.generateRandomId)(6)}`;
|
|
1286
|
+
disposableCollection.add(componentManager.register(key, componentKey, { framework: resolvedFramework }));
|
|
1286
1287
|
}
|
|
1287
1288
|
return {
|
|
1288
1289
|
key,
|
package/lib/cjs/index.js
CHANGED
|
@@ -12236,7 +12236,7 @@ let FormulaEditorController = class FormulaEditorController extends _univerjs_co
|
|
|
12236
12236
|
if (this._contextService.getContextValue(_univerjs_core.FOCUSING_EDITOR_BUT_HIDDEN) && !this._contextService.getContextValue(_univerjs_core.EDITOR_ACTIVATED)) {
|
|
12237
12237
|
var _formulaEditorDataMod;
|
|
12238
12238
|
this._univerInstanceService.setCurrentUnitForType(_univerjs_core.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY);
|
|
12239
|
-
const formulaEditorDataModel = this._univerInstanceService.
|
|
12239
|
+
const formulaEditorDataModel = this._univerInstanceService.getUnit(_univerjs_core.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, _univerjs_core.UniverInstanceType.UNIVER_DOC);
|
|
12240
12240
|
if (this._editorBridgeService.isVisible().visible === false) this._commandService.syncExecuteCommand(SetCellEditVisibleOperation.id, {
|
|
12241
12241
|
visible: true,
|
|
12242
12242
|
eventType: _univerjs_engine_render.DeviceInputEventType.PointerDown,
|
|
@@ -12276,7 +12276,7 @@ let FormulaEditorController = class FormulaEditorController extends _univerjs_co
|
|
|
12276
12276
|
this.disposeWithMe((0, rxjs.combineLatest)([this._formulaEditorManagerService.position$, addFormulaBar$]).subscribe(([position]) => {
|
|
12277
12277
|
if (!position) return this._clearScheduledCallback();
|
|
12278
12278
|
const editorObject = getEditorObject(_univerjs_core.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, this._renderManagerService);
|
|
12279
|
-
const formulaEditorDataModel = this._univerInstanceService.
|
|
12279
|
+
const formulaEditorDataModel = this._univerInstanceService.getUnit(_univerjs_core.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, _univerjs_core.UniverInstanceType.UNIVER_DOC);
|
|
12280
12280
|
if (editorObject == null || formulaEditorDataModel == null) return this._clearScheduledCallback();
|
|
12281
12281
|
const { width, height } = position;
|
|
12282
12282
|
if (width === 0 || height === 0) return this._clearScheduledCallback();
|
|
@@ -12295,7 +12295,7 @@ let FormulaEditorController = class FormulaEditorController extends _univerjs_co
|
|
|
12295
12295
|
const position = this._formulaEditorManagerService.getPosition();
|
|
12296
12296
|
const skeleton = (_this$_renderManagerS = this._renderManagerService.getRenderById(_univerjs_core.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY)) === null || _this$_renderManagerS === void 0 ? void 0 : _this$_renderManagerS.with(_univerjs_docs.DocSkeletonManagerService).getSkeleton();
|
|
12297
12297
|
const editorObject = this._renderManagerService.getRenderById(_univerjs_core.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY);
|
|
12298
|
-
const formulaEditorDataModel = this._univerInstanceService.
|
|
12298
|
+
const formulaEditorDataModel = this._univerInstanceService.getUnit(_univerjs_core.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, _univerjs_core.UniverInstanceType.UNIVER_DOC);
|
|
12299
12299
|
if (skeleton == null || position == null || editorObject == null || formulaEditorDataModel == null) return;
|
|
12300
12300
|
const { marginTop = 0, marginBottom = 0 } = formulaEditorDataModel.getSnapshot().documentStyle;
|
|
12301
12301
|
const { scene, mainComponent } = editorObject;
|
|
@@ -18089,7 +18089,7 @@ function ShowRowMenuItemFactory(accessor) {
|
|
|
18089
18089
|
return {
|
|
18090
18090
|
id: _univerjs_sheets.SetSelectedRowsVisibleCommand.id,
|
|
18091
18091
|
type: _univerjs_ui.MenuItemType.BUTTON,
|
|
18092
|
-
icon: "
|
|
18092
|
+
icon: "EyeIcon",
|
|
18093
18093
|
title: "sheets-ui.rightClick.showHideRow",
|
|
18094
18094
|
hidden$: deriveStateFromActiveSheet$(univerInstanceService, true, ({ worksheet }) => new rxjs.Observable((subscriber) => {
|
|
18095
18095
|
function hasHiddenRowsInSelections() {
|
|
@@ -18125,7 +18125,7 @@ function ShowColMenuItemFactory(accessor) {
|
|
|
18125
18125
|
return {
|
|
18126
18126
|
id: _univerjs_sheets.SetSelectedColsVisibleCommand.id,
|
|
18127
18127
|
type: _univerjs_ui.MenuItemType.BUTTON,
|
|
18128
|
-
icon: "
|
|
18128
|
+
icon: "EyeIcon",
|
|
18129
18129
|
title: "sheets-ui.rightClick.showHideColumn",
|
|
18130
18130
|
hidden$: deriveStateFromActiveSheet$(univerInstanceService, true, ({ worksheet }) => new rxjs.Observable((subscriber) => {
|
|
18131
18131
|
function hasHiddenColsInSelections() {
|
|
@@ -19793,6 +19793,7 @@ function DefinedNameOverlay({ search, isInputEvent }) {
|
|
|
19793
19793
|
const definedNamesService = (0, _univerjs_ui.useDependency)(_univerjs_engine_formula.IDefinedNamesService);
|
|
19794
19794
|
const univerInstanceService = (0, _univerjs_ui.useDependency)(_univerjs_core.IUniverInstanceService);
|
|
19795
19795
|
const sidebarService = (0, _univerjs_ui.useDependency)(_univerjs_ui.ISidebarService);
|
|
19796
|
+
const direction = localeService.getDirection();
|
|
19796
19797
|
const unitId = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET).getUnitId();
|
|
19797
19798
|
const getDefinedNameMap = () => {
|
|
19798
19799
|
const definedNameMap = definedNamesService.getDefinedNameMap(unitId);
|
|
@@ -19847,7 +19848,9 @@ function DefinedNameOverlay({ search, isInputEvent }) {
|
|
|
19847
19848
|
definedNamesService.focusRange(unitId, id);
|
|
19848
19849
|
};
|
|
19849
19850
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
19850
|
-
|
|
19851
|
+
"data-u-comp": "defined-name-overlay",
|
|
19852
|
+
dir: direction,
|
|
19853
|
+
className: "univer-w-[300px] rtl:univer-text-right",
|
|
19851
19854
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
19852
19855
|
ref: listContainerRef,
|
|
19853
19856
|
className: (0, _univerjs_design.clsx)("univer-max-h-[360px] univer-min-h-0 univer-overflow-y-auto", _univerjs_design.scrollbarClassName, { "univer-min-h-[30px]": filteredDefinedNames.length > 0 }),
|
|
@@ -19861,13 +19864,16 @@ function DefinedNameOverlay({ search, isInputEvent }) {
|
|
|
19861
19864
|
focusDefinedName(definedName);
|
|
19862
19865
|
},
|
|
19863
19866
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
19864
|
-
|
|
19867
|
+
"data-u-comp": "defined-name-overlay-row",
|
|
19868
|
+
className: (0, _univerjs_design.clsx)("univer-flex univer-items-center univer-gap-2 univer-py-1 rtl:univer-flex-row-reverse", _univerjs_design.borderBottomClassName),
|
|
19865
19869
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
19866
|
-
|
|
19870
|
+
"data-u-comp": "defined-name-overlay-name",
|
|
19871
|
+
className: "univer-min-w-0 univer-flex-1 univer-basis-0 univer-truncate univer-text-sm univer-text-gray-600 rtl:univer-text-right dark:!univer-text-gray-200",
|
|
19867
19872
|
title: definedName.name,
|
|
19868
19873
|
children: definedName.name
|
|
19869
19874
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
19870
|
-
|
|
19875
|
+
"data-u-comp": "defined-name-overlay-reference",
|
|
19876
|
+
className: "univer-min-w-0 univer-flex-1 univer-basis-0 univer-truncate univer-text-xs univer-text-gray-400 rtl:univer-text-right",
|
|
19871
19877
|
title: definedName.formulaOrRefString,
|
|
19872
19878
|
children: definedName.formulaOrRefString
|
|
19873
19879
|
})]
|
|
@@ -19876,7 +19882,8 @@ function DefinedNameOverlay({ search, isInputEvent }) {
|
|
|
19876
19882
|
})
|
|
19877
19883
|
})
|
|
19878
19884
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
19879
|
-
|
|
19885
|
+
"data-u-comp": "defined-name-overlay-footer",
|
|
19886
|
+
className: "univer-cursor-pointer univer-p-2 univer-transition-colors univer-duration-200 hover:univer-bg-gray-100 rtl:univer-text-right dark:hover:!univer-bg-gray-600",
|
|
19880
19887
|
onClick: openSlider,
|
|
19881
19888
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
19882
19889
|
className: "univer-mb-2 univer-text-sm univer-font-semibold univer-text-gray-600 dark:!univer-text-gray-200",
|
|
@@ -20064,7 +20071,7 @@ function DefinedName({ disable }) {
|
|
|
20064
20071
|
className: "univer-relative univer-box-border univer-flex univer-h-full univer-w-24 univer-border-r-gray-200 univer-py-1.5 univer-transition-all",
|
|
20065
20072
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
20066
20073
|
ref: inputRef,
|
|
20067
|
-
className: (0, _univerjs_design.clsx)("univer-box-border univer-size-full univer-appearance-none univer-pl-1.5 univer-pr-5 univer-text-gray-900 focus:univer-outline-none dark:!univer-border-r-gray-700 dark:!univer-bg-gray-900 dark:!univer-text-white", _univerjs_design.borderRightClassName, { "univer-cursor-not-allowed": disable }),
|
|
20074
|
+
className: (0, _univerjs_design.clsx)("univer-box-border univer-size-full univer-appearance-none univer-pl-1.5 univer-pr-5 univer-text-gray-900 focus:univer-outline-none rtl:univer-pl-5 rtl:univer-pr-1.5 dark:!univer-border-r-gray-700 dark:!univer-bg-gray-900 dark:!univer-text-white", _univerjs_design.borderRightClassName, { "univer-cursor-not-allowed": disable }),
|
|
20068
20075
|
type: "text",
|
|
20069
20076
|
value: inputValue,
|
|
20070
20077
|
onChange: handleChangeSelection,
|
|
@@ -20083,7 +20090,7 @@ function DefinedName({ disable }) {
|
|
|
20083
20090
|
onOpenChange: setOpen,
|
|
20084
20091
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
20085
20092
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
20086
|
-
className: (0, _univerjs_design.clsx)("univer-absolute univer-right-0 univer-top-0 univer-flex univer-h-full univer-cursor-pointer univer-items-center univer-justify-center univer-px-1 univer-transition-colors univer-duration-200 hover:univer-bg-gray-100 dark:!univer-text-white dark:hover:!univer-bg-gray-800", { "univer-cursor-not-allowed univer-text-gray-300 hover:univer-bg-transparent dark:!univer-text-gray-700": disable }),
|
|
20093
|
+
className: (0, _univerjs_design.clsx)("univer-absolute univer-right-0 univer-top-0 univer-flex univer-h-full univer-cursor-pointer univer-items-center univer-justify-center univer-px-1 univer-transition-colors univer-duration-200 hover:univer-bg-gray-100 rtl:univer-left-0 rtl:univer-right-auto dark:!univer-text-white dark:hover:!univer-bg-gray-800", { "univer-cursor-not-allowed univer-text-gray-300 hover:univer-bg-transparent dark:!univer-text-gray-700": disable }),
|
|
20087
20094
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.MoreDownIcon, {})
|
|
20088
20095
|
})
|
|
20089
20096
|
})]
|
|
@@ -21865,7 +21872,8 @@ const SheetBar = () => {
|
|
|
21865
21872
|
}),
|
|
21866
21873
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SheetBarTabs, {}),
|
|
21867
21874
|
(!leftScrollState || !rightScrollState) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
21868
|
-
|
|
21875
|
+
"data-u-comp": "sheet-bar-scroll-buttons",
|
|
21876
|
+
className: "univer-relative univer-flex univer-items-center univer-px-2 after:univer-absolute after:univer-right-0 after:univer-top-1/2 after:univer-h-4 after:univer-w-px after:-univer-translate-y-1/2 after:univer-bg-gray-200 after:univer-content-[\"\"] rtl:univer-flex-row-reverse rtl:after:univer-left-0 rtl:after:univer-right-auto",
|
|
21869
21877
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SheetBarButton, {
|
|
21870
21878
|
disabled: leftScrollState,
|
|
21871
21879
|
onClick: handleScrollLeft,
|
|
@@ -22771,7 +22779,7 @@ const useHighlightRange = (ranges = []) => {
|
|
|
22771
22779
|
//#endregion
|
|
22772
22780
|
//#region package.json
|
|
22773
22781
|
var name = "@univerjs/sheets-ui";
|
|
22774
|
-
var version = "1.0.0-alpha.
|
|
22782
|
+
var version = "1.0.0-alpha.2";
|
|
22775
22783
|
|
|
22776
22784
|
//#endregion
|
|
22777
22785
|
//#region src/controllers/cell-alert.controller.ts
|
|
@@ -24182,7 +24190,9 @@ function BorderPanel(props) {
|
|
|
24182
24190
|
var _value$color;
|
|
24183
24191
|
const iconManager = (0, _univerjs_ui.useDependency)(_univerjs_ui.IconManager);
|
|
24184
24192
|
const borderStyleManagerService = (0, _univerjs_ui.useDependency)(_univerjs_sheets.BorderStyleManagerService);
|
|
24185
|
-
const
|
|
24193
|
+
const selectionManagerService = (0, _univerjs_ui.useDependency)(_univerjs_sheets.SheetsSelectionsService);
|
|
24194
|
+
const { direction } = (0, react.useContext)(_univerjs_design.ConfigContext);
|
|
24195
|
+
const { isAllValuesSame, value: currentValue } = selectionManagerService.getCellStylesProperty("bd");
|
|
24186
24196
|
const color = isAllValuesSame ? getBorderColor(currentValue) : void 0;
|
|
24187
24197
|
const type = isAllValuesSame ? getBorderStyle(currentValue) : void 0;
|
|
24188
24198
|
const { onChange, value } = props;
|
|
@@ -24197,6 +24207,7 @@ function BorderPanel(props) {
|
|
|
24197
24207
|
return Icon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, { className: "univer-fill-primary-600" });
|
|
24198
24208
|
}
|
|
24199
24209
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
24210
|
+
dir: direction,
|
|
24200
24211
|
className: "univer-box-border univer-grid univer-gap-2 univer-p-1.5",
|
|
24201
24212
|
children: [
|
|
24202
24213
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -26072,7 +26083,7 @@ let ComponentsController = class ComponentsController extends _univerjs_core.Dis
|
|
|
26072
26083
|
DeleteRowDoubleIcon: _univerjs_icons.DeleteRowDoubleIcon,
|
|
26073
26084
|
DownBorderDoubleIcon: _univerjs_icons.DownBorderDoubleIcon,
|
|
26074
26085
|
DownloadImageIcon: _univerjs_icons.DownloadImageIcon,
|
|
26075
|
-
|
|
26086
|
+
EyeIcon: _univerjs_icons.EyeIcon,
|
|
26076
26087
|
FontColorDoubleIcon: _univerjs_icons.FontColorDoubleIcon,
|
|
26077
26088
|
FontSizeIncreaseIcon: _univerjs_icons.FontSizeIncreaseIcon,
|
|
26078
26089
|
FontSizeReduceIcon: _univerjs_icons.FontSizeReduceIcon,
|
package/lib/cjs/locale/ar-SA.js
CHANGED
|
@@ -270,8 +270,8 @@ const locale = { "sheets-ui": {
|
|
|
270
270
|
copied: "تم النسخ"
|
|
271
271
|
},
|
|
272
272
|
shortcut: {
|
|
273
|
-
"sheet-view": "
|
|
274
|
-
"sheet-edit": "
|
|
273
|
+
"sheet-view": "عرض الورقة",
|
|
274
|
+
"sheet-edit": "تحرير الورقة",
|
|
275
275
|
sheet: {
|
|
276
276
|
"zoom-in": "تكبير",
|
|
277
277
|
"zoom-out": "تصغير",
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -270,8 +270,8 @@ const locale = { "sheets-ui": {
|
|
|
270
270
|
copied: "Copiat"
|
|
271
271
|
},
|
|
272
272
|
shortcut: {
|
|
273
|
-
"sheet-view": "
|
|
274
|
-
"sheet-edit": "
|
|
273
|
+
"sheet-view": "Vista del full",
|
|
274
|
+
"sheet-edit": "Edició del full",
|
|
275
275
|
sheet: {
|
|
276
276
|
"zoom-in": "Apropar",
|
|
277
277
|
"zoom-out": "Allunyar",
|
package/lib/cjs/locale/de-DE.js
CHANGED
|
@@ -270,8 +270,8 @@ const locale = { "sheets-ui": {
|
|
|
270
270
|
copied: "Kopiert"
|
|
271
271
|
},
|
|
272
272
|
shortcut: {
|
|
273
|
-
"sheet-view": "
|
|
274
|
-
"sheet-edit": "
|
|
273
|
+
"sheet-view": "Tabellenblattansicht",
|
|
274
|
+
"sheet-edit": "Tabellenblattbearbeitung",
|
|
275
275
|
sheet: {
|
|
276
276
|
"zoom-in": "Vergrößern",
|
|
277
277
|
"zoom-out": "Verkleinern",
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -270,8 +270,8 @@ const locale = { "sheets-ui": {
|
|
|
270
270
|
copied: "Copiado"
|
|
271
271
|
},
|
|
272
272
|
shortcut: {
|
|
273
|
-
"sheet-view": "
|
|
274
|
-
"sheet-edit": "
|
|
273
|
+
"sheet-view": "Vista de hoja",
|
|
274
|
+
"sheet-edit": "Edición de hoja",
|
|
275
275
|
sheet: {
|
|
276
276
|
"zoom-in": "Acercar",
|
|
277
277
|
"zoom-out": "Alejar",
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -270,8 +270,8 @@ const locale = { "sheets-ui": {
|
|
|
270
270
|
copied: "کپی شد"
|
|
271
271
|
},
|
|
272
272
|
shortcut: {
|
|
273
|
-
"sheet-view": "
|
|
274
|
-
"sheet-edit": "
|
|
273
|
+
"sheet-view": "نمایش برگه",
|
|
274
|
+
"sheet-edit": "ویرایش برگه",
|
|
275
275
|
sheet: {
|
|
276
276
|
"zoom-in": "بزرگنمایی",
|
|
277
277
|
"zoom-out": "کوچکنمایی",
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -270,8 +270,8 @@ const locale = { "sheets-ui": {
|
|
|
270
270
|
copied: "Copié"
|
|
271
271
|
},
|
|
272
272
|
shortcut: {
|
|
273
|
-
"sheet-view": "
|
|
274
|
-
"sheet-edit": "
|
|
273
|
+
"sheet-view": "Affichage de la feuille",
|
|
274
|
+
"sheet-edit": "Modification de la feuille",
|
|
275
275
|
sheet: {
|
|
276
276
|
"zoom-in": "Zoom avant",
|
|
277
277
|
"zoom-out": "Zoom arrière",
|
package/lib/cjs/locale/id-ID.js
CHANGED
|
@@ -270,8 +270,8 @@ const locale = { "sheets-ui": {
|
|
|
270
270
|
copied: "Tersalin"
|
|
271
271
|
},
|
|
272
272
|
shortcut: {
|
|
273
|
-
"sheet-view": "
|
|
274
|
-
"sheet-edit": "
|
|
273
|
+
"sheet-view": "Tampilan lembar",
|
|
274
|
+
"sheet-edit": "Pengeditan lembar",
|
|
275
275
|
sheet: {
|
|
276
276
|
"zoom-in": "Perbesar",
|
|
277
277
|
"zoom-out": "Perkecil",
|
package/lib/cjs/locale/it-IT.js
CHANGED
|
@@ -270,8 +270,8 @@ const locale = { "sheets-ui": {
|
|
|
270
270
|
copied: "Copiato"
|
|
271
271
|
},
|
|
272
272
|
shortcut: {
|
|
273
|
-
"sheet-view": "
|
|
274
|
-
"sheet-edit": "
|
|
273
|
+
"sheet-view": "Visualizzazione foglio",
|
|
274
|
+
"sheet-edit": "Modifica foglio",
|
|
275
275
|
sheet: {
|
|
276
276
|
"zoom-in": "Aumenta zoom",
|
|
277
277
|
"zoom-out": "Diminuisci zoom",
|
package/lib/cjs/locale/pl-PL.js
CHANGED
|
@@ -270,8 +270,8 @@ const locale = { "sheets-ui": {
|
|
|
270
270
|
copied: "Skopiowano"
|
|
271
271
|
},
|
|
272
272
|
shortcut: {
|
|
273
|
-
"sheet-view": "
|
|
274
|
-
"sheet-edit": "
|
|
273
|
+
"sheet-view": "Widok arkusza",
|
|
274
|
+
"sheet-edit": "Edycja arkusza",
|
|
275
275
|
sheet: {
|
|
276
276
|
"zoom-in": "Powiększ",
|
|
277
277
|
"zoom-out": "Pomniejsz",
|
package/lib/cjs/locale/pt-BR.js
CHANGED
|
@@ -270,8 +270,8 @@ const locale = { "sheets-ui": {
|
|
|
270
270
|
copied: "Copiado"
|
|
271
271
|
},
|
|
272
272
|
shortcut: {
|
|
273
|
-
"sheet-view": "
|
|
274
|
-
"sheet-edit": "
|
|
273
|
+
"sheet-view": "Visualização da planilha",
|
|
274
|
+
"sheet-edit": "Edição da planilha",
|
|
275
275
|
sheet: {
|
|
276
276
|
"zoom-in": "Aumentar zoom",
|
|
277
277
|
"zoom-out": "Diminuir zoom",
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -270,8 +270,8 @@ const locale = { "sheets-ui": {
|
|
|
270
270
|
copied: "Скопировано"
|
|
271
271
|
},
|
|
272
272
|
shortcut: {
|
|
273
|
-
"sheet-view": "
|
|
274
|
-
"sheet-edit": "
|
|
273
|
+
"sheet-view": "Просмотр листа",
|
|
274
|
+
"sheet-edit": "Редактирование листа",
|
|
275
275
|
sheet: {
|
|
276
276
|
"zoom-in": "Увеличить",
|
|
277
277
|
"zoom-out": "Уменьшить",
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -270,8 +270,8 @@ const locale = { "sheets-ui": {
|
|
|
270
270
|
copied: "Skopírované"
|
|
271
271
|
},
|
|
272
272
|
shortcut: {
|
|
273
|
-
"sheet-view": "
|
|
274
|
-
"sheet-edit": "
|
|
273
|
+
"sheet-view": "Zobrazenie hárka",
|
|
274
|
+
"sheet-edit": "Úprava hárka",
|
|
275
275
|
sheet: {
|
|
276
276
|
"zoom-in": "Priblížiť",
|
|
277
277
|
"zoom-out": "Oddialiť",
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -270,8 +270,8 @@ const locale = { "sheets-ui": {
|
|
|
270
270
|
copied: "Đã sao chép"
|
|
271
271
|
},
|
|
272
272
|
shortcut: {
|
|
273
|
-
"sheet-view": "
|
|
274
|
-
"sheet-edit": "
|
|
273
|
+
"sheet-view": "Xem trang tính",
|
|
274
|
+
"sheet-edit": "Chỉnh sửa trang tính",
|
|
275
275
|
sheet: {
|
|
276
276
|
"zoom-in": "Phóng to",
|
|
277
277
|
"zoom-out": "Thu nhỏ",
|
package/lib/es/facade.js
CHANGED
|
@@ -1275,13 +1275,14 @@ FRange.extend(FRangeSheetsUIMixin);
|
|
|
1275
1275
|
* @returns {string} The transformed component key.
|
|
1276
1276
|
*/
|
|
1277
1277
|
function transformComponentKey(component, componentManager) {
|
|
1278
|
-
const { componentKey,
|
|
1278
|
+
const { componentKey, framework } = component;
|
|
1279
1279
|
let key;
|
|
1280
1280
|
const disposableCollection = new DisposableCollection();
|
|
1281
1281
|
if (typeof componentKey === "string") key = componentKey;
|
|
1282
1282
|
else {
|
|
1283
|
-
|
|
1284
|
-
|
|
1283
|
+
const resolvedFramework = framework !== null && framework !== void 0 ? framework : "react";
|
|
1284
|
+
key = resolvedFramework === "web-component" ? `external-${generateRandomId(6).toLowerCase()}` : `External_${generateRandomId(6)}`;
|
|
1285
|
+
disposableCollection.add(componentManager.register(key, componentKey, { framework: resolvedFramework }));
|
|
1285
1286
|
}
|
|
1286
1287
|
return {
|
|
1287
1288
|
key,
|
package/lib/es/index.js
CHANGED
|
@@ -6,9 +6,9 @@ import { AUTO_FILL_APPLY_TYPE, AUTO_FILL_HOOK_TYPE, AddMergeUndoMutationFactory,
|
|
|
6
6
|
import { BehaviorSubject, EMPTY, Observable, Subject, Subscription, combineLatest, combineLatestWith, distinctUntilChanged, filter, map, merge as merge$1, of, shareReplay, startWith, switchMap, takeUntil, throttleTime, withLatestFrom } from "rxjs";
|
|
7
7
|
import { DocSelectionManagerService, DocSkeletonManagerService, InsertTextCommand, RichTextEditingMutation, SetTextSelectionsOperation } from "@univerjs/docs";
|
|
8
8
|
import { ObjectScope, UnitAction, UnitObject, UnitRole } from "@univerjs/protocol";
|
|
9
|
-
import { Avatar, Button, Calendar, CascaderList, ColorPicker, Confirm, Dropdown, DropdownMenu, FormLayout, Input, InputNumber, MessageType, Radio, RadioGroup, Select, Separator, Switch, TimeInput, Tooltip, borderBottomClassName, borderClassName, borderRightClassName, borderTopClassName, clsx, scrollbarClassName } from "@univerjs/design";
|
|
10
|
-
import { AddImageIcon, AdjustHeightDoubleIcon, AdjustWidthDoubleIcon, AlignBottomIcon, AlignTopIcon, AllBorderIcon, AutoHeightDoubleIcon, AutoWidthDoubleIcon, AutofillDoubleIcon, AutowrapIcon, BackSlashDoubleIcon, BoldIcon, BrushIcon, CancelFreezeIcon, CancelMergeIcon, CheckMarkIcon, ClearFormatDoubleIcon, CloseIcon, CodeIcon, ConvertIcon, CopyDoubleIcon, CutIcon, DeleteCellShiftLeftDoubleIcon, DeleteCellShiftUpDoubleIcon, DeleteColumnDoubleIcon, DeleteIcon, DeleteRowDoubleIcon, DownBorderDoubleIcon, DownloadImageIcon, DropdownIcon, ErrorIcon,
|
|
11
|
-
import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
9
|
+
import { Avatar, Button, Calendar, CascaderList, ColorPicker, ConfigContext, Confirm, Dropdown, DropdownMenu, FormLayout, Input, InputNumber, MessageType, Radio, RadioGroup, Select, Separator, Switch, TimeInput, Tooltip, borderBottomClassName, borderClassName, borderRightClassName, borderTopClassName, clsx, scrollbarClassName } from "@univerjs/design";
|
|
10
|
+
import { AddImageIcon, AdjustHeightDoubleIcon, AdjustWidthDoubleIcon, AlignBottomIcon, AlignTopIcon, AllBorderIcon, AutoHeightDoubleIcon, AutoWidthDoubleIcon, AutofillDoubleIcon, AutowrapIcon, BackSlashDoubleIcon, BoldIcon, BrushIcon, CancelFreezeIcon, CancelMergeIcon, CheckMarkIcon, ClearFormatDoubleIcon, CloseIcon, CodeIcon, ConvertIcon, CopyDoubleIcon, CutIcon, DeleteCellShiftLeftDoubleIcon, DeleteCellShiftUpDoubleIcon, DeleteColumnDoubleIcon, DeleteIcon, DeleteRowDoubleIcon, DownBorderDoubleIcon, DownloadImageIcon, DropdownIcon, ErrorIcon, EyeIcon, EyelashIcon, FontColorDoubleIcon, FontSizeIncreaseIcon, FontSizeReduceIcon, FreezeColumnIcon, FreezeRowIcon, FreezeToSelectedIcon, FxIcon, HideDoubleIcon, HideGridlinesDoubleIcon, HorizontalBorderDoubleIcon, HorizontalMergeIcon, HorizontallyIcon, IncreaseIcon, InfoIcon, InnerBorderDoubleIcon, InsertCellDownDoubleIcon, InsertCellShiftRightDoubleIcon, InsertDoubleIcon, InsertRowAboveDoubleIcon, InsertRowBelowDoubleIcon, ItalicIcon, LeftBorderDoubleIcon, LeftDoubleDiagonalDoubleIcon, LeftInsertColumnDoubleIcon, LeftJustifyingIcon, LeftRotationFortyFiveDegreesIcon, LeftRotationNinetyDegreesIcon, LeftTridiagonalDoubleIcon, LockIcon, MergeAllIcon, MoreDownIcon, MoreLeftIcon, MoreRightIcon, NoBorderIcon, NoColorDoubleIcon, NoRotationIcon, OuterBorderDoubleIcon, OverflowIcon, PaintBucketDoubleIcon, PasteSpecialDoubleIcon, PenIcon, PipingIcon, ProtectIcon, ReduceDoubleIcon, RightBorderDoubleIcon, RightDoubleDiagonalDoubleIcon, RightInsertColumnDoubleIcon, RightJustifyingIcon, RightRotationFortyFiveDegreesIcon, RightRotationNinetyDegreesIcon, SlashDoubleIcon, StrikethroughIcon, SubscriptIcon, SuperscriptIcon, TruncationIcon, UnderlineIcon, UpBorderDoubleIcon, VerticalBorderDoubleIcon, VerticalCenterIcon, VerticalIntegrationIcon, VerticalTextIcon, WarningIcon, WriteIcon } from "@univerjs/icons";
|
|
11
|
+
import { useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { FUNCTION_NAMES_MATH, FUNCTION_NAMES_STATISTICAL, FUNCTION_NAMES_TEXT, FormulaDataModel, IDefinedNamesService, IFunctionService, ISuperTableService, LexerTreeBuilder, NullValueObject, SetFormulaCalculationNotificationMutation, deserializeRangeWithSheet, isReferenceStringWithEffectiveColumn, isReferenceStrings, matchToken, operatorToken, sequenceNodeType, serializeRange, serializeRangeWithSheet } from "@univerjs/engine-formula";
|
|
14
14
|
import { ITelemetryService } from "@univerjs/telemetry";
|
|
@@ -12207,7 +12207,7 @@ let FormulaEditorController = class FormulaEditorController extends RxDisposable
|
|
|
12207
12207
|
if (this._contextService.getContextValue(FOCUSING_EDITOR_BUT_HIDDEN) && !this._contextService.getContextValue(EDITOR_ACTIVATED)) {
|
|
12208
12208
|
var _formulaEditorDataMod;
|
|
12209
12209
|
this._univerInstanceService.setCurrentUnitForType(DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY);
|
|
12210
|
-
const formulaEditorDataModel = this._univerInstanceService.
|
|
12210
|
+
const formulaEditorDataModel = this._univerInstanceService.getUnit(DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, UniverInstanceType.UNIVER_DOC);
|
|
12211
12211
|
if (this._editorBridgeService.isVisible().visible === false) this._commandService.syncExecuteCommand(SetCellEditVisibleOperation.id, {
|
|
12212
12212
|
visible: true,
|
|
12213
12213
|
eventType: DeviceInputEventType.PointerDown,
|
|
@@ -12247,7 +12247,7 @@ let FormulaEditorController = class FormulaEditorController extends RxDisposable
|
|
|
12247
12247
|
this.disposeWithMe(combineLatest([this._formulaEditorManagerService.position$, addFormulaBar$]).subscribe(([position]) => {
|
|
12248
12248
|
if (!position) return this._clearScheduledCallback();
|
|
12249
12249
|
const editorObject = getEditorObject(DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, this._renderManagerService);
|
|
12250
|
-
const formulaEditorDataModel = this._univerInstanceService.
|
|
12250
|
+
const formulaEditorDataModel = this._univerInstanceService.getUnit(DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, UniverInstanceType.UNIVER_DOC);
|
|
12251
12251
|
if (editorObject == null || formulaEditorDataModel == null) return this._clearScheduledCallback();
|
|
12252
12252
|
const { width, height } = position;
|
|
12253
12253
|
if (width === 0 || height === 0) return this._clearScheduledCallback();
|
|
@@ -12266,7 +12266,7 @@ let FormulaEditorController = class FormulaEditorController extends RxDisposable
|
|
|
12266
12266
|
const position = this._formulaEditorManagerService.getPosition();
|
|
12267
12267
|
const skeleton = (_this$_renderManagerS = this._renderManagerService.getRenderById(DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY)) === null || _this$_renderManagerS === void 0 ? void 0 : _this$_renderManagerS.with(DocSkeletonManagerService).getSkeleton();
|
|
12268
12268
|
const editorObject = this._renderManagerService.getRenderById(DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY);
|
|
12269
|
-
const formulaEditorDataModel = this._univerInstanceService.
|
|
12269
|
+
const formulaEditorDataModel = this._univerInstanceService.getUnit(DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, UniverInstanceType.UNIVER_DOC);
|
|
12270
12270
|
if (skeleton == null || position == null || editorObject == null || formulaEditorDataModel == null) return;
|
|
12271
12271
|
const { marginTop = 0, marginBottom = 0 } = formulaEditorDataModel.getSnapshot().documentStyle;
|
|
12272
12272
|
const { scene, mainComponent } = editorObject;
|
|
@@ -18060,7 +18060,7 @@ function ShowRowMenuItemFactory(accessor) {
|
|
|
18060
18060
|
return {
|
|
18061
18061
|
id: SetSelectedRowsVisibleCommand.id,
|
|
18062
18062
|
type: MenuItemType.BUTTON,
|
|
18063
|
-
icon: "
|
|
18063
|
+
icon: "EyeIcon",
|
|
18064
18064
|
title: "sheets-ui.rightClick.showHideRow",
|
|
18065
18065
|
hidden$: deriveStateFromActiveSheet$(univerInstanceService, true, ({ worksheet }) => new Observable((subscriber) => {
|
|
18066
18066
|
function hasHiddenRowsInSelections() {
|
|
@@ -18096,7 +18096,7 @@ function ShowColMenuItemFactory(accessor) {
|
|
|
18096
18096
|
return {
|
|
18097
18097
|
id: SetSelectedColsVisibleCommand.id,
|
|
18098
18098
|
type: MenuItemType.BUTTON,
|
|
18099
|
-
icon: "
|
|
18099
|
+
icon: "EyeIcon",
|
|
18100
18100
|
title: "sheets-ui.rightClick.showHideColumn",
|
|
18101
18101
|
hidden$: deriveStateFromActiveSheet$(univerInstanceService, true, ({ worksheet }) => new Observable((subscriber) => {
|
|
18102
18102
|
function hasHiddenColsInSelections() {
|
|
@@ -19764,6 +19764,7 @@ function DefinedNameOverlay({ search, isInputEvent }) {
|
|
|
19764
19764
|
const definedNamesService = useDependency(IDefinedNamesService);
|
|
19765
19765
|
const univerInstanceService = useDependency(IUniverInstanceService);
|
|
19766
19766
|
const sidebarService = useDependency(ISidebarService);
|
|
19767
|
+
const direction = localeService.getDirection();
|
|
19767
19768
|
const unitId = univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_SHEET).getUnitId();
|
|
19768
19769
|
const getDefinedNameMap = () => {
|
|
19769
19770
|
const definedNameMap = definedNamesService.getDefinedNameMap(unitId);
|
|
@@ -19818,7 +19819,9 @@ function DefinedNameOverlay({ search, isInputEvent }) {
|
|
|
19818
19819
|
definedNamesService.focusRange(unitId, id);
|
|
19819
19820
|
};
|
|
19820
19821
|
return /* @__PURE__ */ jsxs("div", {
|
|
19821
|
-
|
|
19822
|
+
"data-u-comp": "defined-name-overlay",
|
|
19823
|
+
dir: direction,
|
|
19824
|
+
className: "univer-w-[300px] rtl:univer-text-right",
|
|
19822
19825
|
children: [/* @__PURE__ */ jsx("div", {
|
|
19823
19826
|
ref: listContainerRef,
|
|
19824
19827
|
className: clsx("univer-max-h-[360px] univer-min-h-0 univer-overflow-y-auto", scrollbarClassName, { "univer-min-h-[30px]": filteredDefinedNames.length > 0 }),
|
|
@@ -19832,13 +19835,16 @@ function DefinedNameOverlay({ search, isInputEvent }) {
|
|
|
19832
19835
|
focusDefinedName(definedName);
|
|
19833
19836
|
},
|
|
19834
19837
|
children: /* @__PURE__ */ jsxs("div", {
|
|
19835
|
-
|
|
19838
|
+
"data-u-comp": "defined-name-overlay-row",
|
|
19839
|
+
className: clsx("univer-flex univer-items-center univer-gap-2 univer-py-1 rtl:univer-flex-row-reverse", borderBottomClassName),
|
|
19836
19840
|
children: [/* @__PURE__ */ jsx("div", {
|
|
19837
|
-
|
|
19841
|
+
"data-u-comp": "defined-name-overlay-name",
|
|
19842
|
+
className: "univer-min-w-0 univer-flex-1 univer-basis-0 univer-truncate univer-text-sm univer-text-gray-600 rtl:univer-text-right dark:!univer-text-gray-200",
|
|
19838
19843
|
title: definedName.name,
|
|
19839
19844
|
children: definedName.name
|
|
19840
19845
|
}), /* @__PURE__ */ jsx("div", {
|
|
19841
|
-
|
|
19846
|
+
"data-u-comp": "defined-name-overlay-reference",
|
|
19847
|
+
className: "univer-min-w-0 univer-flex-1 univer-basis-0 univer-truncate univer-text-xs univer-text-gray-400 rtl:univer-text-right",
|
|
19842
19848
|
title: definedName.formulaOrRefString,
|
|
19843
19849
|
children: definedName.formulaOrRefString
|
|
19844
19850
|
})]
|
|
@@ -19847,7 +19853,8 @@ function DefinedNameOverlay({ search, isInputEvent }) {
|
|
|
19847
19853
|
})
|
|
19848
19854
|
})
|
|
19849
19855
|
}), /* @__PURE__ */ jsxs("div", {
|
|
19850
|
-
|
|
19856
|
+
"data-u-comp": "defined-name-overlay-footer",
|
|
19857
|
+
className: "univer-cursor-pointer univer-p-2 univer-transition-colors univer-duration-200 hover:univer-bg-gray-100 rtl:univer-text-right dark:hover:!univer-bg-gray-600",
|
|
19851
19858
|
onClick: openSlider,
|
|
19852
19859
|
children: [/* @__PURE__ */ jsx("div", {
|
|
19853
19860
|
className: "univer-mb-2 univer-text-sm univer-font-semibold univer-text-gray-600 dark:!univer-text-gray-200",
|
|
@@ -20035,7 +20042,7 @@ function DefinedName({ disable }) {
|
|
|
20035
20042
|
className: "univer-relative univer-box-border univer-flex univer-h-full univer-w-24 univer-border-r-gray-200 univer-py-1.5 univer-transition-all",
|
|
20036
20043
|
children: [/* @__PURE__ */ jsx("input", {
|
|
20037
20044
|
ref: inputRef,
|
|
20038
|
-
className: clsx("univer-box-border univer-size-full univer-appearance-none univer-pl-1.5 univer-pr-5 univer-text-gray-900 focus:univer-outline-none dark:!univer-border-r-gray-700 dark:!univer-bg-gray-900 dark:!univer-text-white", borderRightClassName, { "univer-cursor-not-allowed": disable }),
|
|
20045
|
+
className: clsx("univer-box-border univer-size-full univer-appearance-none univer-pl-1.5 univer-pr-5 univer-text-gray-900 focus:univer-outline-none rtl:univer-pl-5 rtl:univer-pr-1.5 dark:!univer-border-r-gray-700 dark:!univer-bg-gray-900 dark:!univer-text-white", borderRightClassName, { "univer-cursor-not-allowed": disable }),
|
|
20039
20046
|
type: "text",
|
|
20040
20047
|
value: inputValue,
|
|
20041
20048
|
onChange: handleChangeSelection,
|
|
@@ -20054,7 +20061,7 @@ function DefinedName({ disable }) {
|
|
|
20054
20061
|
onOpenChange: setOpen,
|
|
20055
20062
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
20056
20063
|
children: /* @__PURE__ */ jsx("a", {
|
|
20057
|
-
className: clsx("univer-absolute univer-right-0 univer-top-0 univer-flex univer-h-full univer-cursor-pointer univer-items-center univer-justify-center univer-px-1 univer-transition-colors univer-duration-200 hover:univer-bg-gray-100 dark:!univer-text-white dark:hover:!univer-bg-gray-800", { "univer-cursor-not-allowed univer-text-gray-300 hover:univer-bg-transparent dark:!univer-text-gray-700": disable }),
|
|
20064
|
+
className: clsx("univer-absolute univer-right-0 univer-top-0 univer-flex univer-h-full univer-cursor-pointer univer-items-center univer-justify-center univer-px-1 univer-transition-colors univer-duration-200 hover:univer-bg-gray-100 rtl:univer-left-0 rtl:univer-right-auto dark:!univer-text-white dark:hover:!univer-bg-gray-800", { "univer-cursor-not-allowed univer-text-gray-300 hover:univer-bg-transparent dark:!univer-text-gray-700": disable }),
|
|
20058
20065
|
children: /* @__PURE__ */ jsx(MoreDownIcon, {})
|
|
20059
20066
|
})
|
|
20060
20067
|
})]
|
|
@@ -21836,7 +21843,8 @@ const SheetBar = () => {
|
|
|
21836
21843
|
}),
|
|
21837
21844
|
/* @__PURE__ */ jsx(SheetBarTabs, {}),
|
|
21838
21845
|
(!leftScrollState || !rightScrollState) && /* @__PURE__ */ jsxs("div", {
|
|
21839
|
-
|
|
21846
|
+
"data-u-comp": "sheet-bar-scroll-buttons",
|
|
21847
|
+
className: "univer-relative univer-flex univer-items-center univer-px-2 after:univer-absolute after:univer-right-0 after:univer-top-1/2 after:univer-h-4 after:univer-w-px after:-univer-translate-y-1/2 after:univer-bg-gray-200 after:univer-content-[\"\"] rtl:univer-flex-row-reverse rtl:after:univer-left-0 rtl:after:univer-right-auto",
|
|
21840
21848
|
children: [/* @__PURE__ */ jsx(SheetBarButton, {
|
|
21841
21849
|
disabled: leftScrollState,
|
|
21842
21850
|
onClick: handleScrollLeft,
|
|
@@ -22742,7 +22750,7 @@ const useHighlightRange = (ranges = []) => {
|
|
|
22742
22750
|
//#endregion
|
|
22743
22751
|
//#region package.json
|
|
22744
22752
|
var name = "@univerjs/sheets-ui";
|
|
22745
|
-
var version = "1.0.0-alpha.
|
|
22753
|
+
var version = "1.0.0-alpha.2";
|
|
22746
22754
|
|
|
22747
22755
|
//#endregion
|
|
22748
22756
|
//#region src/controllers/cell-alert.controller.ts
|
|
@@ -24153,7 +24161,9 @@ function BorderPanel(props) {
|
|
|
24153
24161
|
var _value$color;
|
|
24154
24162
|
const iconManager = useDependency(IconManager);
|
|
24155
24163
|
const borderStyleManagerService = useDependency(BorderStyleManagerService);
|
|
24156
|
-
const
|
|
24164
|
+
const selectionManagerService = useDependency(SheetsSelectionsService);
|
|
24165
|
+
const { direction } = useContext(ConfigContext);
|
|
24166
|
+
const { isAllValuesSame, value: currentValue } = selectionManagerService.getCellStylesProperty("bd");
|
|
24157
24167
|
const color = isAllValuesSame ? getBorderColor(currentValue) : void 0;
|
|
24158
24168
|
const type = isAllValuesSame ? getBorderStyle(currentValue) : void 0;
|
|
24159
24169
|
const { onChange, value } = props;
|
|
@@ -24168,6 +24178,7 @@ function BorderPanel(props) {
|
|
|
24168
24178
|
return Icon && /* @__PURE__ */ jsx(Icon, { className: "univer-fill-primary-600" });
|
|
24169
24179
|
}
|
|
24170
24180
|
return /* @__PURE__ */ jsxs("section", {
|
|
24181
|
+
dir: direction,
|
|
24171
24182
|
className: "univer-box-border univer-grid univer-gap-2 univer-p-1.5",
|
|
24172
24183
|
children: [
|
|
24173
24184
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -26043,7 +26054,7 @@ let ComponentsController = class ComponentsController extends Disposable {
|
|
|
26043
26054
|
DeleteRowDoubleIcon,
|
|
26044
26055
|
DownBorderDoubleIcon,
|
|
26045
26056
|
DownloadImageIcon,
|
|
26046
|
-
|
|
26057
|
+
EyeIcon,
|
|
26047
26058
|
FontColorDoubleIcon,
|
|
26048
26059
|
FontSizeIncreaseIcon,
|
|
26049
26060
|
FontSizeReduceIcon,
|
package/lib/es/locale/ar-SA.js
CHANGED
|
@@ -269,8 +269,8 @@ const locale = { "sheets-ui": {
|
|
|
269
269
|
copied: "تم النسخ"
|
|
270
270
|
},
|
|
271
271
|
shortcut: {
|
|
272
|
-
"sheet-view": "
|
|
273
|
-
"sheet-edit": "
|
|
272
|
+
"sheet-view": "عرض الورقة",
|
|
273
|
+
"sheet-edit": "تحرير الورقة",
|
|
274
274
|
sheet: {
|
|
275
275
|
"zoom-in": "تكبير",
|
|
276
276
|
"zoom-out": "تصغير",
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -269,8 +269,8 @@ const locale = { "sheets-ui": {
|
|
|
269
269
|
copied: "Copiat"
|
|
270
270
|
},
|
|
271
271
|
shortcut: {
|
|
272
|
-
"sheet-view": "
|
|
273
|
-
"sheet-edit": "
|
|
272
|
+
"sheet-view": "Vista del full",
|
|
273
|
+
"sheet-edit": "Edició del full",
|
|
274
274
|
sheet: {
|
|
275
275
|
"zoom-in": "Apropar",
|
|
276
276
|
"zoom-out": "Allunyar",
|
package/lib/es/locale/de-DE.js
CHANGED
|
@@ -269,8 +269,8 @@ const locale = { "sheets-ui": {
|
|
|
269
269
|
copied: "Kopiert"
|
|
270
270
|
},
|
|
271
271
|
shortcut: {
|
|
272
|
-
"sheet-view": "
|
|
273
|
-
"sheet-edit": "
|
|
272
|
+
"sheet-view": "Tabellenblattansicht",
|
|
273
|
+
"sheet-edit": "Tabellenblattbearbeitung",
|
|
274
274
|
sheet: {
|
|
275
275
|
"zoom-in": "Vergrößern",
|
|
276
276
|
"zoom-out": "Verkleinern",
|
package/lib/es/locale/es-ES.js
CHANGED
|
@@ -269,8 +269,8 @@ const locale = { "sheets-ui": {
|
|
|
269
269
|
copied: "Copiado"
|
|
270
270
|
},
|
|
271
271
|
shortcut: {
|
|
272
|
-
"sheet-view": "
|
|
273
|
-
"sheet-edit": "
|
|
272
|
+
"sheet-view": "Vista de hoja",
|
|
273
|
+
"sheet-edit": "Edición de hoja",
|
|
274
274
|
sheet: {
|
|
275
275
|
"zoom-in": "Acercar",
|
|
276
276
|
"zoom-out": "Alejar",
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -269,8 +269,8 @@ const locale = { "sheets-ui": {
|
|
|
269
269
|
copied: "کپی شد"
|
|
270
270
|
},
|
|
271
271
|
shortcut: {
|
|
272
|
-
"sheet-view": "
|
|
273
|
-
"sheet-edit": "
|
|
272
|
+
"sheet-view": "نمایش برگه",
|
|
273
|
+
"sheet-edit": "ویرایش برگه",
|
|
274
274
|
sheet: {
|
|
275
275
|
"zoom-in": "بزرگنمایی",
|
|
276
276
|
"zoom-out": "کوچکنمایی",
|
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -269,8 +269,8 @@ const locale = { "sheets-ui": {
|
|
|
269
269
|
copied: "Copié"
|
|
270
270
|
},
|
|
271
271
|
shortcut: {
|
|
272
|
-
"sheet-view": "
|
|
273
|
-
"sheet-edit": "
|
|
272
|
+
"sheet-view": "Affichage de la feuille",
|
|
273
|
+
"sheet-edit": "Modification de la feuille",
|
|
274
274
|
sheet: {
|
|
275
275
|
"zoom-in": "Zoom avant",
|
|
276
276
|
"zoom-out": "Zoom arrière",
|
package/lib/es/locale/id-ID.js
CHANGED
|
@@ -269,8 +269,8 @@ const locale = { "sheets-ui": {
|
|
|
269
269
|
copied: "Tersalin"
|
|
270
270
|
},
|
|
271
271
|
shortcut: {
|
|
272
|
-
"sheet-view": "
|
|
273
|
-
"sheet-edit": "
|
|
272
|
+
"sheet-view": "Tampilan lembar",
|
|
273
|
+
"sheet-edit": "Pengeditan lembar",
|
|
274
274
|
sheet: {
|
|
275
275
|
"zoom-in": "Perbesar",
|
|
276
276
|
"zoom-out": "Perkecil",
|