@univerjs/sheets-ui 0.5.5-nightly.202501211606 → 0.5.5-nightly.202501221606
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 +1 -1
- package/lib/cjs/index.js +44 -48
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +2 -2
- package/lib/es/index.js +489 -498
- package/lib/index.css +1 -1
- package/lib/types/components/border-panel/BorderPanel.d.ts +1 -2
- package/lib/types/components/border-panel/border-line/BorderLine.d.ts +1 -2
- package/lib/types/components/border-panel/border-line/icons/BorderDashDot.d.ts +16 -2
- package/lib/types/components/border-panel/border-line/icons/BorderDashDotDot.d.ts +16 -2
- package/lib/types/components/border-panel/border-line/icons/BorderDashed.d.ts +16 -2
- package/lib/types/components/border-panel/border-line/icons/BorderDotted.d.ts +16 -2
- package/lib/types/components/border-panel/border-line/icons/BorderHair.d.ts +16 -2
- package/lib/types/components/border-panel/border-line/icons/BorderMedium.d.ts +16 -2
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDot.d.ts +16 -2
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashDotDot.d.ts +16 -2
- package/lib/types/components/border-panel/border-line/icons/BorderMediumDashed.d.ts +16 -2
- package/lib/types/components/border-panel/border-line/icons/BorderThick.d.ts +16 -2
- package/lib/types/components/border-panel/border-line/icons/BorderThin.d.ts +16 -2
- package/lib/types/components/menu-item-input/MenuItemInput.d.ts +1 -2
- package/lib/types/controllers/render-controllers/freeze.render-controller.d.ts +6 -2
- package/lib/types/facade/f-range.d.ts +24 -5
- package/lib/types/services/sheet-skeleton-manager.service.d.ts +1 -1
- package/lib/types/views/cell-alert/CellAlertPopup.d.ts +1 -2
- package/lib/types/views/clipboard/ClipboardPopupMenu.d.ts +16 -2
- package/lib/types/views/count-bar/CountBar.d.ts +16 -2
- package/lib/types/views/count-bar/ZoomSlider.d.ts +16 -2
- package/lib/types/views/defined-name/DefinedName.d.ts +16 -2
- package/lib/types/views/defined-name/DefinedNameContainer.d.ts +16 -2
- package/lib/types/views/defined-name/DefinedNameInput.d.ts +1 -2
- package/lib/types/views/defined-name/DefinedNameOverlay.d.ts +16 -2
- package/lib/types/views/formula-bar/FormulaBar.d.ts +16 -2
- package/lib/types/views/mobile/sheet-bar/MobileSheetBar.d.ts +16 -2
- package/lib/types/views/permission/error-msg-dialog/index.d.ts +16 -2
- package/lib/types/views/permission/panel/index.d.ts +1 -2
- package/lib/types/views/permission/panel-detail/PermissionDetailFooterPart.d.ts +1 -2
- package/lib/types/views/permission/panel-detail/PermissionDetailMainPart.d.ts +1 -1
- package/lib/types/views/permission/panel-detail/PermissionDetailPanel.d.ts +1 -2
- package/lib/types/views/permission/panel-detail/PermissionDetailUserPart.d.ts +1 -2
- package/lib/types/views/permission/panel-list/index.d.ts +16 -2
- package/lib/types/views/permission/permission-dialog/index.d.ts +16 -2
- package/lib/types/views/permission/spin/index.d.ts +1 -1
- package/lib/types/views/permission/user-dialog/index.d.ts +16 -2
- package/lib/types/views/sheet-bar/SheetBar.d.ts +16 -2
- package/lib/types/views/sheet-bar/sheet-bar-button/SheetBarButton.d.ts +1 -1
- package/lib/types/views/sheet-bar/sheet-bar-menu/SheetBarMenu.d.ts +1 -1
- package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarItem.d.ts +1 -1
- package/lib/types/views/sheet-bar/sheet-bar-tabs/SheetBarTabs.d.ts +16 -2
- package/lib/types/views/sheet-container/SheetContainer.d.ts +18 -4
- package/lib/types/views/status-bar/StatusBar.d.ts +16 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +44 -48
- package/lib/umd/locale/en-US.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/ru-RU.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-TW.js +1 -1
- package/package.json +12 -12
package/lib/es/index.js
CHANGED
|
@@ -13,6 +13,7 @@ import { DocSkeletonManagerService, DocSelectionManagerService, RichTextEditingM
|
|
|
13
13
|
import { sequenceNodeType, matchToken, LexerTreeBuilder, IFunctionService, SetFormulaCalculationNotificationMutation, IDefinedNamesService, operatorToken, isReferenceStrings, isReferenceStringWithEffectiveColumn, serializeRangeWithSheet, FUNCTION_NAMES_STATISTICAL, FUNCTION_NAMES_MATH, FUNCTION_NAMES_TEXT, NullValueObject, serializeRange, deserializeRangeWithSheet } from "@univerjs/engine-formula";
|
|
14
14
|
import { DEFAULT_TEXT_FORMAT } from "@univerjs/engine-numfmt";
|
|
15
15
|
import { InputNumber, DropdownLegacy, ColorPicker, Menu, MenuItem, Input, RadioGroup, Radio, Select, Button, Tooltip, Confirm, Slider, DropdownProvider, DropdownTrigger, DropdownOverlay, MessageType, FormLayout, Avatar, Switch } from "@univerjs/design";
|
|
16
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
16
17
|
import { ITelemetryService } from "@univerjs/telemetry";
|
|
17
18
|
import { filter as filter$1 } from "rxjs/operators";
|
|
18
19
|
function getEditorObject(unitId, renderManagerService) {
|
|
@@ -1968,23 +1969,25 @@ let SheetSkeletonManagerService = (_a = class extends Disposable {
|
|
|
1968
1969
|
this._context.unit.getStyles()
|
|
1969
1970
|
);
|
|
1970
1971
|
}
|
|
1971
|
-
setColumnHeaderSize(
|
|
1972
|
+
setColumnHeaderSize(render2, sheetId, size) {
|
|
1972
1973
|
var _a61;
|
|
1973
1974
|
const skeleton = (_a61 = this.getWorksheetSkeleton(sheetId)) == null ? void 0 : _a61.skeleton;
|
|
1974
1975
|
if (skeleton) {
|
|
1975
|
-
skeleton.columnHeaderHeight = size, render2.scene.getViewports()[0].top = size, render2.scene.getViewport(
|
|
1976
|
+
skeleton.columnHeaderHeight = size, render2.scene.getViewports()[0].top = size, render2.scene.getViewport(SHEET_VIEWPORT_KEY.VIEW_COLUMN_RIGHT).setViewportSize({
|
|
1976
1977
|
height: size
|
|
1977
|
-
}), render2.scene.getViewport(
|
|
1978
|
+
}), render2.scene.getViewport(SHEET_VIEWPORT_KEY.VIEW_COLUMN_LEFT).setViewportSize({
|
|
1978
1979
|
height: size
|
|
1979
|
-
}), render2.scene.getViewport(
|
|
1980
|
+
}), render2.scene.getViewport(SHEET_VIEWPORT_KEY.VIEW_ROW_BOTTOM).setViewportSize({
|
|
1980
1981
|
top: size
|
|
1981
|
-
}), render2.scene.getViewport(
|
|
1982
|
+
}), render2.scene.getViewport(SHEET_VIEWPORT_KEY.VIEW_ROW_TOP).setViewportSize({
|
|
1982
1983
|
top: size
|
|
1983
|
-
}), render2.scene.getViewport(
|
|
1984
|
+
}), render2.scene.getViewport(SHEET_VIEWPORT_KEY.VIEW_LEFT_TOP).setViewportSize({
|
|
1984
1985
|
height: size
|
|
1985
1986
|
});
|
|
1986
1987
|
const selectionService = render2 == null ? void 0 : render2.with(SheetsSelectionsService), selectionRenderService = render2 == null ? void 0 : render2.with(ISheetSelectionRenderService), currSelections = selectionService.getCurrentSelections();
|
|
1987
1988
|
selectionRenderService.resetSelectionsByModelData(currSelections);
|
|
1989
|
+
const sheetSkeletonManagerParam = this.getUnitSkeleton(render2.unitId, sheetId);
|
|
1990
|
+
this._currentSkeleton$.next(sheetSkeletonManagerParam);
|
|
1988
1991
|
}
|
|
1989
1992
|
}
|
|
1990
1993
|
}, __name(_a, "SheetSkeletonManagerService"), _a);
|
|
@@ -8531,39 +8534,7 @@ const SetWorksheetColAutoWidthCommand = {
|
|
|
8531
8534
|
redoMutations: [...redos]
|
|
8532
8535
|
}), !0) : !1;
|
|
8533
8536
|
}, "handler")
|
|
8534
|
-
}, COMPONENT_PREFIX = "UI_PLUGIN_SHEETS", COLOR_PICKER_COMPONENT = `${COMPONENT_PREFIX}_COLOR_PICKER_COMPONENT`, FONT_FAMILY_COMPONENT = `${COMPONENT_PREFIX}_FONT_FAMILY_COMPONENT`, FONT_FAMILY_ITEM_COMPONENT = `${COMPONENT_PREFIX}_FONT_FAMILY_ITEM_COMPONENT`, FONT_SIZE_COMPONENT = `${COMPONENT_PREFIX}_FONT_SIZE_COMPONENT`, MENU_ITEM_INPUT_COMPONENT = `${COMPONENT_PREFIX}_MENU_ITEM_INPUT_COMPONENT
|
|
8535
|
-
var jsxRuntime = { exports: {} }, reactJsxRuntime_production_min = {};
|
|
8536
|
-
/**
|
|
8537
|
-
* @license React
|
|
8538
|
-
* react-jsx-runtime.production.min.js
|
|
8539
|
-
*
|
|
8540
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8541
|
-
*
|
|
8542
|
-
* This source code is licensed under the MIT license found in the
|
|
8543
|
-
* LICENSE file in the root directory of this source tree.
|
|
8544
|
-
*/
|
|
8545
|
-
var hasRequiredReactJsxRuntime_production_min;
|
|
8546
|
-
function requireReactJsxRuntime_production_min() {
|
|
8547
|
-
if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
|
|
8548
|
-
hasRequiredReactJsxRuntime_production_min = 1;
|
|
8549
|
-
var f = React, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
8550
|
-
function q(c, a, g) {
|
|
8551
|
-
var b, d = {}, e = null, h = null;
|
|
8552
|
-
g !== void 0 && (e = "" + g), a.key !== void 0 && (e = "" + a.key), a.ref !== void 0 && (h = a.ref);
|
|
8553
|
-
for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
|
|
8554
|
-
if (c && c.defaultProps) for (b in a = c.defaultProps, a) d[b] === void 0 && (d[b] = a[b]);
|
|
8555
|
-
return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
|
|
8556
|
-
}
|
|
8557
|
-
return __name(q, "q"), reactJsxRuntime_production_min.Fragment = l, reactJsxRuntime_production_min.jsx = q, reactJsxRuntime_production_min.jsxs = q, reactJsxRuntime_production_min;
|
|
8558
|
-
}
|
|
8559
|
-
__name(requireReactJsxRuntime_production_min, "requireReactJsxRuntime_production_min");
|
|
8560
|
-
var hasRequiredJsxRuntime;
|
|
8561
|
-
function requireJsxRuntime() {
|
|
8562
|
-
return hasRequiredJsxRuntime || (hasRequiredJsxRuntime = 1, jsxRuntime.exports = requireReactJsxRuntime_production_min()), jsxRuntime.exports;
|
|
8563
|
-
}
|
|
8564
|
-
__name(requireJsxRuntime, "requireJsxRuntime");
|
|
8565
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
8566
|
-
const sheetsUiContextMenuInput = "univer-sheets-ui-context-menu-input", sheetsUiContextMenuInputContainer = "univer-sheets-ui-context-menu-input-container", sheetsUiContextMenuInputNumber = "univer-sheets-ui-context-menu-input-number", styles$k = {
|
|
8537
|
+
}, COMPONENT_PREFIX = "UI_PLUGIN_SHEETS", COLOR_PICKER_COMPONENT = `${COMPONENT_PREFIX}_COLOR_PICKER_COMPONENT`, FONT_FAMILY_COMPONENT = `${COMPONENT_PREFIX}_FONT_FAMILY_COMPONENT`, FONT_FAMILY_ITEM_COMPONENT = `${COMPONENT_PREFIX}_FONT_FAMILY_ITEM_COMPONENT`, FONT_SIZE_COMPONENT = `${COMPONENT_PREFIX}_FONT_SIZE_COMPONENT`, MENU_ITEM_INPUT_COMPONENT = `${COMPONENT_PREFIX}_MENU_ITEM_INPUT_COMPONENT`, sheetsUiContextMenuInput = "univer-sheets-ui-context-menu-input", sheetsUiContextMenuInputContainer = "univer-sheets-ui-context-menu-input-container", sheetsUiContextMenuInputNumber = "univer-sheets-ui-context-menu-input-number", styles$k = {
|
|
8567
8538
|
sheetsUiContextMenuInput,
|
|
8568
8539
|
sheetsUiContextMenuInputContainer,
|
|
8569
8540
|
sheetsUiContextMenuInputNumber
|
|
@@ -8580,9 +8551,9 @@ const sheetsUiContextMenuInput = "univer-sheets-ui-context-menu-input", sheetsUi
|
|
|
8580
8551
|
function handleKeyDown(e) {
|
|
8581
8552
|
e.key === "Backspace" && e.stopPropagation();
|
|
8582
8553
|
}
|
|
8583
|
-
return __name(handleKeyDown, "handleKeyDown"), /* @__PURE__ */
|
|
8554
|
+
return __name(handleKeyDown, "handleKeyDown"), /* @__PURE__ */ jsxs("div", { className: styles$k.sheetsUiContextMenuInput, children: [
|
|
8584
8555
|
localeService.t(prefix),
|
|
8585
|
-
/* @__PURE__ */
|
|
8556
|
+
/* @__PURE__ */ jsx("span", { className: styles$k.sheetsUiContextMenuInputContainer, onClick: /* @__PURE__ */ __name((e) => e.stopPropagation(), "onClick"), children: /* @__PURE__ */ jsx(
|
|
8586
8557
|
InputNumber,
|
|
8587
8558
|
{
|
|
8588
8559
|
className: styles$k.sheetsUiContextMenuInputNumber,
|
|
@@ -11267,6 +11238,14 @@ let SheetRenderController = (_a21 = class extends RxDisposable {
|
|
|
11267
11238
|
width: rowHeaderWidth,
|
|
11268
11239
|
height: columnHeaderHeight
|
|
11269
11240
|
});
|
|
11241
|
+
const rowFreezeHeaderRect = this._context.scene.getObject(FREEZE_ROW_HEADER_NAME);
|
|
11242
|
+
rowFreezeHeaderRect && rowFreezeHeaderRect.transformByState({
|
|
11243
|
+
top: columnHeaderHeight - rowFreezeHeaderRect.height
|
|
11244
|
+
});
|
|
11245
|
+
const colFreezeHeaderRect = this._context.scene.getObject(FREEZE_COLUMN_HEADER_NAME);
|
|
11246
|
+
colFreezeHeaderRect && colFreezeHeaderRect.transformByState({
|
|
11247
|
+
height: columnHeaderHeight
|
|
11248
|
+
});
|
|
11270
11249
|
}));
|
|
11271
11250
|
}
|
|
11272
11251
|
_initCommandListener() {
|
|
@@ -12333,138 +12312,138 @@ const ShowMenuListCommand = {
|
|
|
12333
12312
|
}
|
|
12334
12313
|
return !0;
|
|
12335
12314
|
}, "handler")
|
|
12336
|
-
}, BorderDashDot = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
12337
|
-
/* @__PURE__ */
|
|
12338
|
-
/* @__PURE__ */
|
|
12339
|
-
/* @__PURE__ */
|
|
12340
|
-
/* @__PURE__ */
|
|
12341
|
-
/* @__PURE__ */
|
|
12342
|
-
/* @__PURE__ */
|
|
12343
|
-
/* @__PURE__ */
|
|
12344
|
-
/* @__PURE__ */
|
|
12345
|
-
/* @__PURE__ */
|
|
12346
|
-
/* @__PURE__ */
|
|
12347
|
-
/* @__PURE__ */
|
|
12348
|
-
/* @__PURE__ */
|
|
12349
|
-
/* @__PURE__ */
|
|
12350
|
-
/* @__PURE__ */
|
|
12351
|
-
/* @__PURE__ */
|
|
12352
|
-
/* @__PURE__ */
|
|
12353
|
-
/* @__PURE__ */
|
|
12354
|
-
/* @__PURE__ */
|
|
12355
|
-
/* @__PURE__ */
|
|
12356
|
-
/* @__PURE__ */
|
|
12357
|
-
/* @__PURE__ */
|
|
12358
|
-
/* @__PURE__ */
|
|
12359
|
-
/* @__PURE__ */
|
|
12360
|
-
/* @__PURE__ */
|
|
12361
|
-
/* @__PURE__ */
|
|
12362
|
-
/* @__PURE__ */
|
|
12363
|
-
/* @__PURE__ */
|
|
12364
|
-
] }), "BorderDashDot"), BorderDashDotDot = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
12365
|
-
/* @__PURE__ */
|
|
12366
|
-
/* @__PURE__ */
|
|
12367
|
-
/* @__PURE__ */
|
|
12368
|
-
/* @__PURE__ */
|
|
12369
|
-
/* @__PURE__ */
|
|
12370
|
-
/* @__PURE__ */
|
|
12371
|
-
/* @__PURE__ */
|
|
12372
|
-
/* @__PURE__ */
|
|
12373
|
-
/* @__PURE__ */
|
|
12374
|
-
/* @__PURE__ */
|
|
12375
|
-
/* @__PURE__ */
|
|
12376
|
-
/* @__PURE__ */
|
|
12377
|
-
/* @__PURE__ */
|
|
12378
|
-
/* @__PURE__ */
|
|
12379
|
-
/* @__PURE__ */
|
|
12380
|
-
/* @__PURE__ */
|
|
12381
|
-
/* @__PURE__ */
|
|
12382
|
-
/* @__PURE__ */
|
|
12383
|
-
/* @__PURE__ */
|
|
12384
|
-
/* @__PURE__ */
|
|
12385
|
-
/* @__PURE__ */
|
|
12386
|
-
/* @__PURE__ */
|
|
12387
|
-
/* @__PURE__ */
|
|
12388
|
-
/* @__PURE__ */
|
|
12389
|
-
/* @__PURE__ */
|
|
12390
|
-
/* @__PURE__ */
|
|
12391
|
-
/* @__PURE__ */
|
|
12392
|
-
/* @__PURE__ */
|
|
12393
|
-
] }), "BorderDashDotDot"), BorderDashed = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
12394
|
-
/* @__PURE__ */
|
|
12395
|
-
/* @__PURE__ */
|
|
12396
|
-
/* @__PURE__ */
|
|
12397
|
-
/* @__PURE__ */
|
|
12398
|
-
/* @__PURE__ */
|
|
12399
|
-
/* @__PURE__ */
|
|
12400
|
-
/* @__PURE__ */
|
|
12401
|
-
/* @__PURE__ */
|
|
12402
|
-
/* @__PURE__ */
|
|
12403
|
-
/* @__PURE__ */
|
|
12404
|
-
/* @__PURE__ */
|
|
12405
|
-
/* @__PURE__ */
|
|
12406
|
-
/* @__PURE__ */
|
|
12407
|
-
/* @__PURE__ */
|
|
12408
|
-
/* @__PURE__ */
|
|
12409
|
-
/* @__PURE__ */
|
|
12410
|
-
/* @__PURE__ */
|
|
12411
|
-
/* @__PURE__ */
|
|
12412
|
-
/* @__PURE__ */
|
|
12413
|
-
/* @__PURE__ */
|
|
12414
|
-
] }), "BorderDashed"), BorderHair = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
12415
|
-
/* @__PURE__ */
|
|
12416
|
-
/* @__PURE__ */
|
|
12417
|
-
/* @__PURE__ */
|
|
12418
|
-
/* @__PURE__ */
|
|
12419
|
-
/* @__PURE__ */
|
|
12420
|
-
/* @__PURE__ */
|
|
12421
|
-
/* @__PURE__ */
|
|
12422
|
-
/* @__PURE__ */
|
|
12423
|
-
/* @__PURE__ */
|
|
12424
|
-
/* @__PURE__ */
|
|
12425
|
-
/* @__PURE__ */
|
|
12426
|
-
/* @__PURE__ */
|
|
12427
|
-
/* @__PURE__ */
|
|
12428
|
-
/* @__PURE__ */
|
|
12429
|
-
/* @__PURE__ */
|
|
12430
|
-
/* @__PURE__ */
|
|
12431
|
-
/* @__PURE__ */
|
|
12432
|
-
/* @__PURE__ */
|
|
12433
|
-
/* @__PURE__ */
|
|
12434
|
-
/* @__PURE__ */
|
|
12435
|
-
/* @__PURE__ */
|
|
12436
|
-
/* @__PURE__ */
|
|
12437
|
-
/* @__PURE__ */
|
|
12438
|
-
/* @__PURE__ */
|
|
12439
|
-
/* @__PURE__ */
|
|
12440
|
-
/* @__PURE__ */
|
|
12441
|
-
/* @__PURE__ */
|
|
12442
|
-
/* @__PURE__ */
|
|
12443
|
-
/* @__PURE__ */
|
|
12444
|
-
/* @__PURE__ */
|
|
12445
|
-
/* @__PURE__ */
|
|
12446
|
-
/* @__PURE__ */
|
|
12447
|
-
/* @__PURE__ */
|
|
12448
|
-
/* @__PURE__ */
|
|
12449
|
-
/* @__PURE__ */
|
|
12450
|
-
/* @__PURE__ */
|
|
12451
|
-
/* @__PURE__ */
|
|
12452
|
-
/* @__PURE__ */
|
|
12453
|
-
/* @__PURE__ */
|
|
12454
|
-
/* @__PURE__ */
|
|
12455
|
-
/* @__PURE__ */
|
|
12456
|
-
/* @__PURE__ */
|
|
12457
|
-
/* @__PURE__ */
|
|
12458
|
-
/* @__PURE__ */
|
|
12459
|
-
/* @__PURE__ */
|
|
12460
|
-
/* @__PURE__ */
|
|
12461
|
-
/* @__PURE__ */
|
|
12462
|
-
/* @__PURE__ */
|
|
12463
|
-
/* @__PURE__ */
|
|
12464
|
-
/* @__PURE__ */
|
|
12465
|
-
/* @__PURE__ */
|
|
12466
|
-
/* @__PURE__ */
|
|
12467
|
-
] }), "BorderHair"), BorderMedium = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
12315
|
+
}, BorderDashDot = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsxs("svg", { width: "120", height: "2", viewBox: "0 0 120 2", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
12316
|
+
/* @__PURE__ */ jsx("path", { d: "M0.98999 1.08218H-0.0100098V0.0821838H0.98999V1.08218Z", fill: "black" }),
|
|
12317
|
+
/* @__PURE__ */ jsx("path", { d: "M5.78992 1.08218H2.78992V0.0821838H5.78992V1.08218Z", fill: "black" }),
|
|
12318
|
+
/* @__PURE__ */ jsx("path", { d: "M7.58984 1.08218H8.58984V0.0821838H7.58984V1.08218Z", fill: "black" }),
|
|
12319
|
+
/* @__PURE__ */ jsx("path", { d: "M14.9152 1.08218H13.9152V0.0821838H14.9152V1.08218Z", fill: "black" }),
|
|
12320
|
+
/* @__PURE__ */ jsx("path", { d: "M16.7151 1.08218H19.7151V0.0821838H16.7151V1.08218Z", fill: "black" }),
|
|
12321
|
+
/* @__PURE__ */ jsx("path", { d: "M22.515 1.08218H21.515V0.0821838H22.515V1.08218Z", fill: "black" }),
|
|
12322
|
+
/* @__PURE__ */ jsx("path", { d: "M27.8405 1.08218H28.8405V0.0821838H27.8405V1.08218Z", fill: "black" }),
|
|
12323
|
+
/* @__PURE__ */ jsx("path", { d: "M33.6404 1.08218H30.6404V0.0821838H33.6404V1.08218Z", fill: "black" }),
|
|
12324
|
+
/* @__PURE__ */ jsx("path", { d: "M35.4403 1.08218H36.4403V0.0821838H35.4403V1.08218Z", fill: "black" }),
|
|
12325
|
+
/* @__PURE__ */ jsx("path", { d: "M42.7657 1.08218H41.7657V0.0821838H42.7657V1.08218Z", fill: "black" }),
|
|
12326
|
+
/* @__PURE__ */ jsx("path", { d: "M44.5657 1.08218H47.5657V0.0821838H44.5657V1.08218Z", fill: "black" }),
|
|
12327
|
+
/* @__PURE__ */ jsx("path", { d: "M50.3656 1.08218H49.3656V0.0821838H50.3656V1.08218Z", fill: "black" }),
|
|
12328
|
+
/* @__PURE__ */ jsx("path", { d: "M55.691 1.08218H56.691V0.0821838H55.691V1.08218Z", fill: "black" }),
|
|
12329
|
+
/* @__PURE__ */ jsx("path", { d: "M61.491 1.08218H58.491V0.0821838H61.491V1.08218Z", fill: "black" }),
|
|
12330
|
+
/* @__PURE__ */ jsx("path", { d: "M63.2909 1.08218H64.2909V0.0821838H63.2909V1.08218Z", fill: "black" }),
|
|
12331
|
+
/* @__PURE__ */ jsx("path", { d: "M70.6163 1.08218H69.6163V0.0821838H70.6163V1.08218Z", fill: "black" }),
|
|
12332
|
+
/* @__PURE__ */ jsx("path", { d: "M72.4163 1.08218H75.4163V0.0821838H72.4163V1.08218Z", fill: "black" }),
|
|
12333
|
+
/* @__PURE__ */ jsx("path", { d: "M78.2162 1.08218H77.2162V0.0821838H78.2162V1.08218Z", fill: "black" }),
|
|
12334
|
+
/* @__PURE__ */ jsx("path", { d: "M83.5416 1.08218H84.5416V0.0821838H83.5416V1.08218Z", fill: "black" }),
|
|
12335
|
+
/* @__PURE__ */ jsx("path", { d: "M89.3416 1.08218H86.3416V0.0821838H89.3416V1.08218Z", fill: "black" }),
|
|
12336
|
+
/* @__PURE__ */ jsx("path", { d: "M91.1415 1.08218H92.1415V0.0821838H91.1415V1.08218Z", fill: "black" }),
|
|
12337
|
+
/* @__PURE__ */ jsx("path", { d: "M98.4669 1.08218H97.4669V0.0821838H98.4669V1.08218Z", fill: "black" }),
|
|
12338
|
+
/* @__PURE__ */ jsx("path", { d: "M100.267 1.08218H103.267V0.0821838H100.267V1.08218Z", fill: "black" }),
|
|
12339
|
+
/* @__PURE__ */ jsx("path", { d: "M106.067 1.08218H105.067V0.0821838H106.067V1.08218Z", fill: "black" }),
|
|
12340
|
+
/* @__PURE__ */ jsx("path", { d: "M111.392 1.08218H112.392V0.0821838H111.392V1.08218Z", fill: "black" }),
|
|
12341
|
+
/* @__PURE__ */ jsx("path", { d: "M117.192 1.08218H114.192V0.0821838H117.192V1.08218Z", fill: "black" }),
|
|
12342
|
+
/* @__PURE__ */ jsx("path", { d: "M118.992 1.08218H119.992V0.0821838H118.992V1.08218Z", fill: "black" })
|
|
12343
|
+
] }), "BorderDashDot"), BorderDashDotDot = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsxs("svg", { width: "120", height: "2", viewBox: "0 0 120 2", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
12344
|
+
/* @__PURE__ */ jsx("path", { d: "M-0.0100098 1.15771H0.98999V0.157715H-0.0100098V1.15771Z", fill: "black" }),
|
|
12345
|
+
/* @__PURE__ */ jsx("path", { d: "M2.78992 1.15771H5.78992V0.157715H2.78992V1.15771Z", fill: "black" }),
|
|
12346
|
+
/* @__PURE__ */ jsx("path", { d: "M8.58984 1.15771H7.58984V0.157715H8.58984V1.15771Z", fill: "black" }),
|
|
12347
|
+
/* @__PURE__ */ jsx("path", { d: "M10.3899 1.15771H11.3899V0.157715H10.3899V1.15771Z", fill: "black" }),
|
|
12348
|
+
/* @__PURE__ */ jsx("path", { d: "M19.0903 1.15771H18.0903V0.157715H19.0903V1.15771Z", fill: "black" }),
|
|
12349
|
+
/* @__PURE__ */ jsx("path", { d: "M20.8903 1.15771H23.8903V0.157715H20.8903V1.15771Z", fill: "black" }),
|
|
12350
|
+
/* @__PURE__ */ jsx("path", { d: "M26.6902 1.15771H25.6902V0.157715H26.6902V1.15771Z", fill: "black" }),
|
|
12351
|
+
/* @__PURE__ */ jsx("path", { d: "M28.4902 1.15771H29.4902V0.157715H28.4902V1.15771Z", fill: "black" }),
|
|
12352
|
+
/* @__PURE__ */ jsx("path", { d: "M37.1907 1.15771H36.1907V0.157715H37.1907V1.15771Z", fill: "black" }),
|
|
12353
|
+
/* @__PURE__ */ jsx("path", { d: "M38.9906 1.15771H41.9906V0.157715H38.9906V1.15771Z", fill: "black" }),
|
|
12354
|
+
/* @__PURE__ */ jsx("path", { d: "M44.7905 1.15771H43.7905V0.157715H44.7905V1.15771Z", fill: "black" }),
|
|
12355
|
+
/* @__PURE__ */ jsx("path", { d: "M46.5906 1.15771H47.5906V0.157715H46.5906V1.15771Z", fill: "black" }),
|
|
12356
|
+
/* @__PURE__ */ jsx("path", { d: "M55.291 1.15771H54.291V0.157715H55.291V1.15771Z", fill: "black" }),
|
|
12357
|
+
/* @__PURE__ */ jsx("path", { d: "M57.0909 1.15771H60.0909V0.157715H57.0909V1.15771Z", fill: "black" }),
|
|
12358
|
+
/* @__PURE__ */ jsx("path", { d: "M62.8909 1.15771H61.8909V0.157715H62.8909V1.15771Z", fill: "black" }),
|
|
12359
|
+
/* @__PURE__ */ jsx("path", { d: "M64.6909 1.15771H65.6909V0.157715H64.6909V1.15771Z", fill: "black" }),
|
|
12360
|
+
/* @__PURE__ */ jsx("path", { d: "M73.3914 1.15771H72.3914V0.157715H73.3914V1.15771Z", fill: "black" }),
|
|
12361
|
+
/* @__PURE__ */ jsx("path", { d: "M75.1913 1.15771H78.1913V0.157715H75.1913V1.15771Z", fill: "black" }),
|
|
12362
|
+
/* @__PURE__ */ jsx("path", { d: "M80.9912 1.15771H79.9912V0.157715H80.9912V1.15771Z", fill: "black" }),
|
|
12363
|
+
/* @__PURE__ */ jsx("path", { d: "M82.7913 1.15771H83.7913V0.157715H82.7913V1.15771Z", fill: "black" }),
|
|
12364
|
+
/* @__PURE__ */ jsx("path", { d: "M91.4917 1.15771H90.4917V0.157715H91.4917V1.15771Z", fill: "black" }),
|
|
12365
|
+
/* @__PURE__ */ jsx("path", { d: "M93.2916 1.15771H96.2916V0.157715H93.2916V1.15771Z", fill: "black" }),
|
|
12366
|
+
/* @__PURE__ */ jsx("path", { d: "M99.0916 1.15771H98.0916V0.157715H99.0916V1.15771Z", fill: "black" }),
|
|
12367
|
+
/* @__PURE__ */ jsx("path", { d: "M100.892 1.15771H101.892V0.157715H100.892V1.15771Z", fill: "black" }),
|
|
12368
|
+
/* @__PURE__ */ jsx("path", { d: "M109.592 1.15771H108.592V0.157715H109.592V1.15771Z", fill: "black" }),
|
|
12369
|
+
/* @__PURE__ */ jsx("path", { d: "M111.392 1.15771H114.392V0.157715H111.392V1.15771Z", fill: "black" }),
|
|
12370
|
+
/* @__PURE__ */ jsx("path", { d: "M117.192 1.15771H116.192V0.157715H117.192V1.15771Z", fill: "black" }),
|
|
12371
|
+
/* @__PURE__ */ jsx("path", { d: "M118.992 1.15771H119.992V0.157715H118.992V1.15771Z", fill: "black" })
|
|
12372
|
+
] }), "BorderDashDotDot"), BorderDashed = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsxs("svg", { width: "120", height: "2", viewBox: "0 0 120 2", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
12373
|
+
/* @__PURE__ */ jsx("path", { d: "M-0.00842285 1.22449H2.99158V0.224487H-0.00842285V1.22449Z", fill: "black" }),
|
|
12374
|
+
/* @__PURE__ */ jsx("path", { d: "M6.14941 1.22449H9.14941V0.224487H6.14941V1.22449Z", fill: "black" }),
|
|
12375
|
+
/* @__PURE__ */ jsx("path", { d: "M15.3073 1.22449H12.3073V0.224487H15.3073V1.22449Z", fill: "black" }),
|
|
12376
|
+
/* @__PURE__ */ jsx("path", { d: "M18.4651 1.22449H21.4651V0.224487H18.4651V1.22449Z", fill: "black" }),
|
|
12377
|
+
/* @__PURE__ */ jsx("path", { d: "M27.6229 1.22449H24.6229V0.224487H27.6229V1.22449Z", fill: "black" }),
|
|
12378
|
+
/* @__PURE__ */ jsx("path", { d: "M30.7808 1.22449H33.7808V0.224487H30.7808V1.22449Z", fill: "black" }),
|
|
12379
|
+
/* @__PURE__ */ jsx("path", { d: "M39.9386 1.22449H36.9386V0.224487H39.9386V1.22449Z", fill: "black" }),
|
|
12380
|
+
/* @__PURE__ */ jsx("path", { d: "M43.0964 1.22449H46.0964V0.224487H43.0964V1.22449Z", fill: "black" }),
|
|
12381
|
+
/* @__PURE__ */ jsx("path", { d: "M52.2543 1.22449H49.2543V0.224487H52.2543V1.22449Z", fill: "black" }),
|
|
12382
|
+
/* @__PURE__ */ jsx("path", { d: "M55.4121 1.22449H58.4121V0.224487H55.4121V1.22449Z", fill: "black" }),
|
|
12383
|
+
/* @__PURE__ */ jsx("path", { d: "M64.5699 1.22449H61.5699V0.224487H64.5699V1.22449Z", fill: "black" }),
|
|
12384
|
+
/* @__PURE__ */ jsx("path", { d: "M67.7278 1.22449H70.7278V0.224487H67.7278V1.22449Z", fill: "black" }),
|
|
12385
|
+
/* @__PURE__ */ jsx("path", { d: "M76.8856 1.22449H73.8856V0.224487H76.8856V1.22449Z", fill: "black" }),
|
|
12386
|
+
/* @__PURE__ */ jsx("path", { d: "M80.0435 1.22449H83.0435V0.224487H80.0435V1.22449Z", fill: "black" }),
|
|
12387
|
+
/* @__PURE__ */ jsx("path", { d: "M89.2013 1.22449H86.2013V0.224487H89.2013V1.22449Z", fill: "black" }),
|
|
12388
|
+
/* @__PURE__ */ jsx("path", { d: "M92.3591 1.22449H95.3591V0.224487H92.3591V1.22449Z", fill: "black" }),
|
|
12389
|
+
/* @__PURE__ */ jsx("path", { d: "M101.517 1.22449H98.517V0.224487H101.517V1.22449Z", fill: "black" }),
|
|
12390
|
+
/* @__PURE__ */ jsx("path", { d: "M104.675 1.22449H107.675V0.224487H104.675V1.22449Z", fill: "black" }),
|
|
12391
|
+
/* @__PURE__ */ jsx("path", { d: "M113.833 1.22449H110.833V0.224487H113.833V1.22449Z", fill: "black" }),
|
|
12392
|
+
/* @__PURE__ */ jsx("path", { d: "M116.99 1.22449H119.99V0.224487H116.99V1.22449Z", fill: "black" })
|
|
12393
|
+
] }), "BorderDashed"), BorderHair = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsxs("svg", { width: "120", height: "2", viewBox: "0 0 120 2", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
12394
|
+
/* @__PURE__ */ jsx("path", { d: "M-0.00976562 1.65707H0.990234V0.657074H-0.00976562V1.65707Z", fill: "black" }),
|
|
12395
|
+
/* @__PURE__ */ jsx("path", { d: "M2.32361 1.65707H3.32361V0.657074H2.32361V1.65707Z", fill: "black" }),
|
|
12396
|
+
/* @__PURE__ */ jsx("path", { d: "M5.65698 1.65707H4.65698V0.657074H5.65698V1.65707Z", fill: "black" }),
|
|
12397
|
+
/* @__PURE__ */ jsx("path", { d: "M6.99036 1.65707H7.99036V0.657074H6.99036V1.65707Z", fill: "black" }),
|
|
12398
|
+
/* @__PURE__ */ jsx("path", { d: "M10.3237 1.65707H9.32373V0.657074H10.3237V1.65707Z", fill: "black" }),
|
|
12399
|
+
/* @__PURE__ */ jsx("path", { d: "M11.6571 1.65707H12.6571V0.657074H11.6571V1.65707Z", fill: "black" }),
|
|
12400
|
+
/* @__PURE__ */ jsx("path", { d: "M14.9905 1.65707H13.9905V0.657074H14.9905V1.65707Z", fill: "black" }),
|
|
12401
|
+
/* @__PURE__ */ jsx("path", { d: "M16.3239 1.65707H17.3239V0.657074H16.3239V1.65707Z", fill: "black" }),
|
|
12402
|
+
/* @__PURE__ */ jsx("path", { d: "M19.6572 1.65707H18.6572V0.657074H19.6572V1.65707Z", fill: "black" }),
|
|
12403
|
+
/* @__PURE__ */ jsx("path", { d: "M20.9906 1.65707H21.9906V0.657074H20.9906V1.65707Z", fill: "black" }),
|
|
12404
|
+
/* @__PURE__ */ jsx("path", { d: "M24.324 1.65707H23.324V0.657074H24.324V1.65707Z", fill: "black" }),
|
|
12405
|
+
/* @__PURE__ */ jsx("path", { d: "M25.6573 1.65707H26.6573V0.657074H25.6573V1.65707Z", fill: "black" }),
|
|
12406
|
+
/* @__PURE__ */ jsx("path", { d: "M28.9907 1.65707H27.9907V0.657074H28.9907V1.65707Z", fill: "black" }),
|
|
12407
|
+
/* @__PURE__ */ jsx("path", { d: "M30.3241 1.65707H31.3241V0.657074H30.3241V1.65707Z", fill: "black" }),
|
|
12408
|
+
/* @__PURE__ */ jsx("path", { d: "M33.6575 1.65707H32.6575V0.657074H33.6575V1.65707Z", fill: "black" }),
|
|
12409
|
+
/* @__PURE__ */ jsx("path", { d: "M34.9908 1.65707H35.9908V0.657074H34.9908V1.65707Z", fill: "black" }),
|
|
12410
|
+
/* @__PURE__ */ jsx("path", { d: "M38.3242 1.65707H37.3242V0.657074H38.3242V1.65707Z", fill: "black" }),
|
|
12411
|
+
/* @__PURE__ */ jsx("path", { d: "M39.6576 1.65707H40.6576V0.657074H39.6576V1.65707Z", fill: "black" }),
|
|
12412
|
+
/* @__PURE__ */ jsx("path", { d: "M42.991 1.65707H41.991V0.657074H42.991V1.65707Z", fill: "black" }),
|
|
12413
|
+
/* @__PURE__ */ jsx("path", { d: "M44.3243 1.65707H45.3243V0.657074H44.3243V1.65707Z", fill: "black" }),
|
|
12414
|
+
/* @__PURE__ */ jsx("path", { d: "M47.6577 1.65707H46.6577V0.657074H47.6577V1.65707Z", fill: "black" }),
|
|
12415
|
+
/* @__PURE__ */ jsx("path", { d: "M48.9911 1.65707H49.9911V0.657074H48.9911V1.65707Z", fill: "black" }),
|
|
12416
|
+
/* @__PURE__ */ jsx("path", { d: "M52.3245 1.65707H51.3245V0.657074H52.3245V1.65707Z", fill: "black" }),
|
|
12417
|
+
/* @__PURE__ */ jsx("path", { d: "M53.6578 1.65707H54.6578V0.657074H53.6578V1.65707Z", fill: "black" }),
|
|
12418
|
+
/* @__PURE__ */ jsx("path", { d: "M56.9912 1.65707H55.9912V0.657074H56.9912V1.65707Z", fill: "black" }),
|
|
12419
|
+
/* @__PURE__ */ jsx("path", { d: "M58.3246 1.65707H59.3246V0.657074H58.3246V1.65707Z", fill: "black" }),
|
|
12420
|
+
/* @__PURE__ */ jsx("path", { d: "M61.658 1.65707H60.658V0.657074H61.658V1.65707Z", fill: "black" }),
|
|
12421
|
+
/* @__PURE__ */ jsx("path", { d: "M62.9913 1.65707H63.9913V0.657074H62.9913V1.65707Z", fill: "black" }),
|
|
12422
|
+
/* @__PURE__ */ jsx("path", { d: "M66.3247 1.65707H65.3247V0.657074H66.3247V1.65707Z", fill: "black" }),
|
|
12423
|
+
/* @__PURE__ */ jsx("path", { d: "M67.6581 1.65707H68.6581V0.657074H67.6581V1.65707Z", fill: "black" }),
|
|
12424
|
+
/* @__PURE__ */ jsx("path", { d: "M70.9915 1.65707H69.9915V0.657074H70.9915V1.65707Z", fill: "black" }),
|
|
12425
|
+
/* @__PURE__ */ jsx("path", { d: "M72.3248 1.65707H73.3248V0.657074H72.3248V1.65707Z", fill: "black" }),
|
|
12426
|
+
/* @__PURE__ */ jsx("path", { d: "M75.6582 1.65707H74.6582V0.657074H75.6582V1.65707Z", fill: "black" }),
|
|
12427
|
+
/* @__PURE__ */ jsx("path", { d: "M76.9916 1.65707H77.9916V0.657074H76.9916V1.65707Z", fill: "black" }),
|
|
12428
|
+
/* @__PURE__ */ jsx("path", { d: "M80.325 1.65707H79.325V0.657074H80.325V1.65707Z", fill: "black" }),
|
|
12429
|
+
/* @__PURE__ */ jsx("path", { d: "M81.6583 1.65707H82.6583V0.657074H81.6583V1.65707Z", fill: "black" }),
|
|
12430
|
+
/* @__PURE__ */ jsx("path", { d: "M84.9917 1.65707H83.9917V0.657074H84.9917V1.65707Z", fill: "black" }),
|
|
12431
|
+
/* @__PURE__ */ jsx("path", { d: "M86.3251 1.65707H87.3251V0.657074H86.3251V1.65707Z", fill: "black" }),
|
|
12432
|
+
/* @__PURE__ */ jsx("path", { d: "M89.6584 1.65707H88.6584V0.657074H89.6584V1.65707Z", fill: "black" }),
|
|
12433
|
+
/* @__PURE__ */ jsx("path", { d: "M90.9918 1.65707H91.9918V0.657074H90.9918V1.65707Z", fill: "black" }),
|
|
12434
|
+
/* @__PURE__ */ jsx("path", { d: "M94.3252 1.65707H93.3252V0.657074H94.3252V1.65707Z", fill: "black" }),
|
|
12435
|
+
/* @__PURE__ */ jsx("path", { d: "M95.6586 1.65707H96.6586V0.657074H95.6586V1.65707Z", fill: "black" }),
|
|
12436
|
+
/* @__PURE__ */ jsx("path", { d: "M98.9919 1.65707H97.9919V0.657074H98.9919V1.65707Z", fill: "black" }),
|
|
12437
|
+
/* @__PURE__ */ jsx("path", { d: "M100.325 1.65707H101.325V0.657074H100.325V1.65707Z", fill: "black" }),
|
|
12438
|
+
/* @__PURE__ */ jsx("path", { d: "M103.659 1.65707H102.659V0.657074H103.659V1.65707Z", fill: "black" }),
|
|
12439
|
+
/* @__PURE__ */ jsx("path", { d: "M104.992 1.65707H105.992V0.657074H104.992V1.65707Z", fill: "black" }),
|
|
12440
|
+
/* @__PURE__ */ jsx("path", { d: "M108.325 1.65707H107.325V0.657074H108.325V1.65707Z", fill: "black" }),
|
|
12441
|
+
/* @__PURE__ */ jsx("path", { d: "M109.659 1.65707H110.659V0.657074H109.659V1.65707Z", fill: "black" }),
|
|
12442
|
+
/* @__PURE__ */ jsx("path", { d: "M112.992 1.65707H111.992V0.657074H112.992V1.65707Z", fill: "black" }),
|
|
12443
|
+
/* @__PURE__ */ jsx("path", { d: "M114.325 1.65707H115.325V0.657074H114.325V1.65707Z", fill: "black" }),
|
|
12444
|
+
/* @__PURE__ */ jsx("path", { d: "M117.659 1.65707H116.659V0.657074H117.659V1.65707Z", fill: "black" }),
|
|
12445
|
+
/* @__PURE__ */ jsx("path", { d: "M118.992 1.65707H119.992V0.657074H118.992V1.65707Z", fill: "black" })
|
|
12446
|
+
] }), "BorderHair"), BorderMedium = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsx("svg", { width: "120", height: "3", viewBox: "0 0 120 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx(
|
|
12468
12447
|
"path",
|
|
12469
12448
|
{
|
|
12470
12449
|
fillRule: "evenodd",
|
|
@@ -12472,68 +12451,68 @@ const ShowMenuListCommand = {
|
|
|
12472
12451
|
d: "M119.991 2.42035H-0.0090332V0.420349H119.991V2.42035Z",
|
|
12473
12452
|
fill: "black"
|
|
12474
12453
|
}
|
|
12475
|
-
) }), "BorderMedium"), BorderMediumDashDot = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
12476
|
-
/* @__PURE__ */
|
|
12477
|
-
/* @__PURE__ */
|
|
12478
|
-
/* @__PURE__ */
|
|
12479
|
-
/* @__PURE__ */
|
|
12480
|
-
/* @__PURE__ */
|
|
12481
|
-
/* @__PURE__ */
|
|
12482
|
-
/* @__PURE__ */
|
|
12483
|
-
/* @__PURE__ */
|
|
12484
|
-
/* @__PURE__ */
|
|
12485
|
-
/* @__PURE__ */
|
|
12486
|
-
/* @__PURE__ */
|
|
12487
|
-
/* @__PURE__ */
|
|
12488
|
-
/* @__PURE__ */
|
|
12489
|
-
/* @__PURE__ */
|
|
12490
|
-
/* @__PURE__ */
|
|
12491
|
-
/* @__PURE__ */
|
|
12492
|
-
/* @__PURE__ */
|
|
12493
|
-
/* @__PURE__ */
|
|
12494
|
-
] }), "BorderMediumDashDot"), BorderMediumDashDotDot = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
12495
|
-
/* @__PURE__ */
|
|
12496
|
-
/* @__PURE__ */
|
|
12497
|
-
/* @__PURE__ */
|
|
12498
|
-
/* @__PURE__ */
|
|
12499
|
-
/* @__PURE__ */
|
|
12500
|
-
/* @__PURE__ */
|
|
12501
|
-
/* @__PURE__ */
|
|
12502
|
-
/* @__PURE__ */
|
|
12503
|
-
/* @__PURE__ */
|
|
12504
|
-
/* @__PURE__ */
|
|
12505
|
-
/* @__PURE__ */
|
|
12506
|
-
/* @__PURE__ */
|
|
12507
|
-
/* @__PURE__ */
|
|
12508
|
-
/* @__PURE__ */
|
|
12509
|
-
/* @__PURE__ */
|
|
12510
|
-
/* @__PURE__ */
|
|
12511
|
-
/* @__PURE__ */
|
|
12512
|
-
/* @__PURE__ */
|
|
12513
|
-
/* @__PURE__ */
|
|
12514
|
-
/* @__PURE__ */
|
|
12515
|
-
] }), "BorderMediumDashDotDot"), BorderMediumDashed = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
12516
|
-
/* @__PURE__ */
|
|
12517
|
-
/* @__PURE__ */
|
|
12518
|
-
/* @__PURE__ */
|
|
12519
|
-
/* @__PURE__ */
|
|
12520
|
-
/* @__PURE__ */
|
|
12521
|
-
/* @__PURE__ */
|
|
12522
|
-
/* @__PURE__ */
|
|
12523
|
-
/* @__PURE__ */
|
|
12524
|
-
/* @__PURE__ */
|
|
12525
|
-
/* @__PURE__ */
|
|
12526
|
-
/* @__PURE__ */
|
|
12527
|
-
/* @__PURE__ */
|
|
12528
|
-
/* @__PURE__ */
|
|
12529
|
-
/* @__PURE__ */
|
|
12530
|
-
/* @__PURE__ */
|
|
12531
|
-
/* @__PURE__ */
|
|
12532
|
-
/* @__PURE__ */
|
|
12533
|
-
/* @__PURE__ */
|
|
12534
|
-
/* @__PURE__ */
|
|
12535
|
-
/* @__PURE__ */
|
|
12536
|
-
] }), "BorderMediumDashed"), BorderThick = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
12454
|
+
) }), "BorderMedium"), BorderMediumDashDot = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsxs("svg", { width: "120", height: "3", viewBox: "0 0 120 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
12455
|
+
/* @__PURE__ */ jsx("path", { d: "M-0.0100098 2.47614H1.98999V0.476135H-0.0100098V2.47614Z", fill: "black" }),
|
|
12456
|
+
/* @__PURE__ */ jsx("path", { d: "M3.99014 2.47614H9.99014V0.476135H3.99014V2.47614Z", fill: "black" }),
|
|
12457
|
+
/* @__PURE__ */ jsx("path", { d: "M13.9901 2.47614H11.9901V0.476135H13.9901V2.47614Z", fill: "black" }),
|
|
12458
|
+
/* @__PURE__ */ jsx("path", { d: "M21.1904 2.47614H23.1904V0.476135H21.1904V2.47614Z", fill: "black" }),
|
|
12459
|
+
/* @__PURE__ */ jsx("path", { d: "M31.1906 2.47614H25.1906V0.476135H31.1906V2.47614Z", fill: "black" }),
|
|
12460
|
+
/* @__PURE__ */ jsx("path", { d: "M33.1906 2.47614H35.1906V0.476135H33.1906V2.47614Z", fill: "black" }),
|
|
12461
|
+
/* @__PURE__ */ jsx("path", { d: "M44.3909 2.47614H42.3909V0.476135H44.3909V2.47614Z", fill: "black" }),
|
|
12462
|
+
/* @__PURE__ */ jsx("path", { d: "M46.391 2.47614H52.391V0.476135H46.391V2.47614Z", fill: "black" }),
|
|
12463
|
+
/* @__PURE__ */ jsx("path", { d: "M56.391 2.47614H54.391V0.476135H56.391V2.47614Z", fill: "black" }),
|
|
12464
|
+
/* @__PURE__ */ jsx("path", { d: "M63.5913 2.47614H65.5913V0.476135H63.5913V2.47614Z", fill: "black" }),
|
|
12465
|
+
/* @__PURE__ */ jsx("path", { d: "M73.5915 2.47614H67.5915V0.476135H73.5915V2.47614Z", fill: "black" }),
|
|
12466
|
+
/* @__PURE__ */ jsx("path", { d: "M75.5915 2.47614H77.5915V0.476135H75.5915V2.47614Z", fill: "black" }),
|
|
12467
|
+
/* @__PURE__ */ jsx("path", { d: "M86.7917 2.47614H84.7917V0.476135H86.7917V2.47614Z", fill: "black" }),
|
|
12468
|
+
/* @__PURE__ */ jsx("path", { d: "M88.7919 2.47614H94.7919V0.476135H88.7919V2.47614Z", fill: "black" }),
|
|
12469
|
+
/* @__PURE__ */ jsx("path", { d: "M98.7919 2.47614H96.7919V0.476135H98.7919V2.47614Z", fill: "black" }),
|
|
12470
|
+
/* @__PURE__ */ jsx("path", { d: "M105.992 2.47614H107.992V0.476135H105.992V2.47614Z", fill: "black" }),
|
|
12471
|
+
/* @__PURE__ */ jsx("path", { d: "M115.992 2.47614H109.992V0.476135H115.992V2.47614Z", fill: "black" }),
|
|
12472
|
+
/* @__PURE__ */ jsx("path", { d: "M117.992 2.47614H119.992V0.476135H117.992V2.47614Z", fill: "black" })
|
|
12473
|
+
] }), "BorderMediumDashDot"), BorderMediumDashDotDot = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsxs("svg", { width: "120", height: "2", viewBox: "0 0 120 2", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
12474
|
+
/* @__PURE__ */ jsx("path", { d: "M-0.0100098 2.00415H1.98999V0.00415039H-0.0100098V2.00415Z", fill: "black" }),
|
|
12475
|
+
/* @__PURE__ */ jsx("path", { d: "M3.99014 2.00415H9.99014V0.00415039H3.99014V2.00415Z", fill: "black" }),
|
|
12476
|
+
/* @__PURE__ */ jsx("path", { d: "M13.9901 2.00415H11.9901V0.00415039H13.9901V2.00415Z", fill: "black" }),
|
|
12477
|
+
/* @__PURE__ */ jsx("path", { d: "M15.9901 2.00415H17.9901V0.00415039H15.9901V2.00415Z", fill: "black" }),
|
|
12478
|
+
/* @__PURE__ */ jsx("path", { d: "M27.4905 2.00415H25.4905V0.00415039H27.4905V2.00415Z", fill: "black" }),
|
|
12479
|
+
/* @__PURE__ */ jsx("path", { d: "M29.4906 2.00415H35.4906V0.00415039H29.4906V2.00415Z", fill: "black" }),
|
|
12480
|
+
/* @__PURE__ */ jsx("path", { d: "M39.4906 2.00415H37.4906V0.00415039H39.4906V2.00415Z", fill: "black" }),
|
|
12481
|
+
/* @__PURE__ */ jsx("path", { d: "M41.4906 2.00415H43.4906V0.00415039H41.4906V2.00415Z", fill: "black" }),
|
|
12482
|
+
/* @__PURE__ */ jsx("path", { d: "M52.991 2.00415H50.991V0.00415039H52.991V2.00415Z", fill: "black" }),
|
|
12483
|
+
/* @__PURE__ */ jsx("path", { d: "M54.9911 2.00415H60.9911V0.00415039H54.9911V2.00415Z", fill: "black" }),
|
|
12484
|
+
/* @__PURE__ */ jsx("path", { d: "M64.9911 2.00415H62.9911V0.00415039H64.9911V2.00415Z", fill: "black" }),
|
|
12485
|
+
/* @__PURE__ */ jsx("path", { d: "M66.9911 2.00415H68.9911V0.00415039H66.9911V2.00415Z", fill: "black" }),
|
|
12486
|
+
/* @__PURE__ */ jsx("path", { d: "M78.4915 2.00415H76.4915V0.00415039H78.4915V2.00415Z", fill: "black" }),
|
|
12487
|
+
/* @__PURE__ */ jsx("path", { d: "M80.4916 2.00415H86.4916V0.00415039H80.4916V2.00415Z", fill: "black" }),
|
|
12488
|
+
/* @__PURE__ */ jsx("path", { d: "M90.4916 2.00415H88.4916V0.00415039H90.4916V2.00415Z", fill: "black" }),
|
|
12489
|
+
/* @__PURE__ */ jsx("path", { d: "M92.4916 2.00415H94.4916V0.00415039H92.4916V2.00415Z", fill: "black" }),
|
|
12490
|
+
/* @__PURE__ */ jsx("path", { d: "M103.992 2.00415H101.992V0.00415039H103.992V2.00415Z", fill: "black" }),
|
|
12491
|
+
/* @__PURE__ */ jsx("path", { d: "M105.992 2.00415H111.992V0.00415039H105.992V2.00415Z", fill: "black" }),
|
|
12492
|
+
/* @__PURE__ */ jsx("path", { d: "M115.992 2.00415H113.992V0.00415039H115.992V2.00415Z", fill: "black" }),
|
|
12493
|
+
/* @__PURE__ */ jsx("path", { d: "M117.992 2.00415H119.992V0.00415039H117.992V2.00415Z", fill: "black" })
|
|
12494
|
+
] }), "BorderMediumDashDotDot"), BorderMediumDashed = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsxs("svg", { width: "118", height: "3", viewBox: "0 0 118 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
12495
|
+
/* @__PURE__ */ jsx("path", { d: "M-0.00854492 2.94815H1.99146V0.948151H-0.00854492V2.94815Z", fill: "black" }),
|
|
12496
|
+
/* @__PURE__ */ jsx("path", { d: "M6.09668 2.94815H8.09668V0.948151H6.09668V2.94815Z", fill: "black" }),
|
|
12497
|
+
/* @__PURE__ */ jsx("path", { d: "M14.2019 2.94815H12.2019V0.948151H14.2019V2.94815Z", fill: "black" }),
|
|
12498
|
+
/* @__PURE__ */ jsx("path", { d: "M18.3071 2.94815H20.3071V0.948151H18.3071V2.94815Z", fill: "black" }),
|
|
12499
|
+
/* @__PURE__ */ jsx("path", { d: "M26.4124 2.94815H24.4124V0.948151H26.4124V2.94815Z", fill: "black" }),
|
|
12500
|
+
/* @__PURE__ */ jsx("path", { d: "M30.5176 2.94815H32.5176V0.948151H30.5176V2.94815Z", fill: "black" }),
|
|
12501
|
+
/* @__PURE__ */ jsx("path", { d: "M38.6228 2.94815H36.6228V0.948151H38.6228V2.94815Z", fill: "black" }),
|
|
12502
|
+
/* @__PURE__ */ jsx("path", { d: "M42.728 2.94815H44.728V0.948151H42.728V2.94815Z", fill: "black" }),
|
|
12503
|
+
/* @__PURE__ */ jsx("path", { d: "M50.8333 2.94815H48.8333V0.948151H50.8333V2.94815Z", fill: "black" }),
|
|
12504
|
+
/* @__PURE__ */ jsx("path", { d: "M54.9385 2.94815H56.9385V0.948151H54.9385V2.94815Z", fill: "black" }),
|
|
12505
|
+
/* @__PURE__ */ jsx("path", { d: "M63.0437 2.94815H61.0437V0.948151H63.0437V2.94815Z", fill: "black" }),
|
|
12506
|
+
/* @__PURE__ */ jsx("path", { d: "M67.1489 2.94815H69.1489V0.948151H67.1489V2.94815Z", fill: "black" }),
|
|
12507
|
+
/* @__PURE__ */ jsx("path", { d: "M75.2542 2.94815H73.2542V0.948151H75.2542V2.94815Z", fill: "black" }),
|
|
12508
|
+
/* @__PURE__ */ jsx("path", { d: "M79.3594 2.94815H81.3594V0.948151H79.3594V2.94815Z", fill: "black" }),
|
|
12509
|
+
/* @__PURE__ */ jsx("path", { d: "M87.4645 2.94815H85.4645V0.948151H87.4645V2.94815Z", fill: "black" }),
|
|
12510
|
+
/* @__PURE__ */ jsx("path", { d: "M91.5697 2.94815H93.5697V0.948151H91.5697V2.94815Z", fill: "black" }),
|
|
12511
|
+
/* @__PURE__ */ jsx("path", { d: "M99.6749 2.94815H97.6749V0.948151H99.6749V2.94815Z", fill: "black" }),
|
|
12512
|
+
/* @__PURE__ */ jsx("path", { d: "M103.78 2.94815H105.78V0.948151H103.78V2.94815Z", fill: "black" }),
|
|
12513
|
+
/* @__PURE__ */ jsx("path", { d: "M111.885 2.94815H109.885V0.948151H111.885V2.94815Z", fill: "black" }),
|
|
12514
|
+
/* @__PURE__ */ jsx("path", { d: "M115.991 2.94815H117.991V0.948151H115.991V2.94815Z", fill: "black" })
|
|
12515
|
+
] }), "BorderMediumDashed"), BorderThick = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsx("svg", { width: "120", height: "4", viewBox: "0 0 120 4", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx(
|
|
12537
12516
|
"path",
|
|
12538
12517
|
{
|
|
12539
12518
|
fillRule: "evenodd",
|
|
@@ -12541,7 +12520,7 @@ const ShowMenuListCommand = {
|
|
|
12541
12520
|
d: "M119.991 3.86215H-0.0090332V0.862152H119.991V3.86215Z",
|
|
12542
12521
|
fill: "black"
|
|
12543
12522
|
}
|
|
12544
|
-
) }), "BorderThick"), BorderThin = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
12523
|
+
) }), "BorderThick"), BorderThin = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsx("svg", { width: "120", height: "2", viewBox: "0 0 120 2", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx(
|
|
12545
12524
|
"path",
|
|
12546
12525
|
{
|
|
12547
12526
|
fillRule: "evenodd",
|
|
@@ -12554,27 +12533,27 @@ function BorderLine(props) {
|
|
|
12554
12533
|
const { type = BorderStyleTypes.THIN } = props;
|
|
12555
12534
|
switch (type) {
|
|
12556
12535
|
case BorderStyleTypes.DASH_DOT:
|
|
12557
|
-
return /* @__PURE__ */
|
|
12536
|
+
return /* @__PURE__ */ jsx(BorderDashDot, {});
|
|
12558
12537
|
case BorderStyleTypes.DASH_DOT_DOT:
|
|
12559
|
-
return /* @__PURE__ */
|
|
12538
|
+
return /* @__PURE__ */ jsx(BorderDashDotDot, {});
|
|
12560
12539
|
case BorderStyleTypes.DASHED:
|
|
12561
|
-
return /* @__PURE__ */
|
|
12540
|
+
return /* @__PURE__ */ jsx(BorderDashed, {});
|
|
12562
12541
|
case BorderStyleTypes.HAIR:
|
|
12563
|
-
return /* @__PURE__ */
|
|
12542
|
+
return /* @__PURE__ */ jsx(BorderHair, {});
|
|
12564
12543
|
case BorderStyleTypes.MEDIUM:
|
|
12565
|
-
return /* @__PURE__ */
|
|
12544
|
+
return /* @__PURE__ */ jsx(BorderMedium, {});
|
|
12566
12545
|
case BorderStyleTypes.MEDIUM_DASH_DOT:
|
|
12567
|
-
return /* @__PURE__ */
|
|
12546
|
+
return /* @__PURE__ */ jsx(BorderMediumDashDot, {});
|
|
12568
12547
|
case BorderStyleTypes.MEDIUM_DASH_DOT_DOT:
|
|
12569
|
-
return /* @__PURE__ */
|
|
12548
|
+
return /* @__PURE__ */ jsx(BorderMediumDashDotDot, {});
|
|
12570
12549
|
case BorderStyleTypes.MEDIUM_DASHED:
|
|
12571
|
-
return /* @__PURE__ */
|
|
12550
|
+
return /* @__PURE__ */ jsx(BorderMediumDashed, {});
|
|
12572
12551
|
case BorderStyleTypes.THICK:
|
|
12573
|
-
return /* @__PURE__ */
|
|
12552
|
+
return /* @__PURE__ */ jsx(BorderThick, {});
|
|
12574
12553
|
case BorderStyleTypes.THIN:
|
|
12575
|
-
return /* @__PURE__ */
|
|
12554
|
+
return /* @__PURE__ */ jsx(BorderThin, {});
|
|
12576
12555
|
default:
|
|
12577
|
-
return /* @__PURE__ */
|
|
12556
|
+
return /* @__PURE__ */ jsx(BorderThin, {});
|
|
12578
12557
|
}
|
|
12579
12558
|
}
|
|
12580
12559
|
__name(BorderLine, "BorderLine");
|
|
@@ -12721,14 +12700,14 @@ function BorderPanel(props) {
|
|
|
12721
12700
|
__name(handleClick, "handleClick");
|
|
12722
12701
|
function renderIcon(icon) {
|
|
12723
12702
|
const Icon = componentManager.get(icon);
|
|
12724
|
-
return Icon && /* @__PURE__ */
|
|
12703
|
+
return Icon && /* @__PURE__ */ jsx(Icon, { extend: { colorChannel1: "rgb(var(--primary-color))" } });
|
|
12725
12704
|
}
|
|
12726
12705
|
__name(renderIcon, "renderIcon");
|
|
12727
12706
|
function stopPropagation(e) {
|
|
12728
12707
|
e.stopPropagation();
|
|
12729
12708
|
}
|
|
12730
|
-
return __name(stopPropagation, "stopPropagation"), /* @__PURE__ */
|
|
12731
|
-
/* @__PURE__ */
|
|
12709
|
+
return __name(stopPropagation, "stopPropagation"), /* @__PURE__ */ jsxs("section", { className: styles$j.uiPluginSheetsBorderPanel, children: [
|
|
12710
|
+
/* @__PURE__ */ jsx("div", { className: styles$j.uiPluginSheetsBorderPanelPosition, children: BORDER_LINE_CHILDREN.map((item) => /* @__PURE__ */ jsx(
|
|
12732
12711
|
"div",
|
|
12733
12712
|
{
|
|
12734
12713
|
className: borderStyleManagerService.getBorderInfo().type === item.value ? `
|
|
@@ -12742,38 +12721,38 @@ function BorderPanel(props) {
|
|
|
12742
12721
|
},
|
|
12743
12722
|
item.value
|
|
12744
12723
|
)) }),
|
|
12745
|
-
/* @__PURE__ */
|
|
12746
|
-
/* @__PURE__ */
|
|
12724
|
+
/* @__PURE__ */ jsxs("div", { className: styles$j.uiPluginSheetsBorderPanelStyles, children: [
|
|
12725
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
12747
12726
|
DropdownLegacy,
|
|
12748
12727
|
{
|
|
12749
12728
|
align: {
|
|
12750
12729
|
offset: [0, 18]
|
|
12751
12730
|
},
|
|
12752
|
-
overlay: /* @__PURE__ */
|
|
12753
|
-
children: /* @__PURE__ */
|
|
12754
|
-
/* @__PURE__ */
|
|
12755
|
-
/* @__PURE__ */
|
|
12731
|
+
overlay: /* @__PURE__ */ jsx("section", { className: styles$j.uiPluginSheetsBorderPanelBoard, onClick: stopPropagation, children: /* @__PURE__ */ jsx(ColorPicker, { onChange: /* @__PURE__ */ __name((value2) => handleClick(value2, "color"), "onChange") }) }),
|
|
12732
|
+
children: /* @__PURE__ */ jsxs("a", { className: styles$j.uiPluginSheetsBorderPanelButton, onClick: stopPropagation, children: [
|
|
12733
|
+
/* @__PURE__ */ jsx(PaintBucket, { extend: { colorChannel1: (_a61 = value == null ? void 0 : value.color) != null ? _a61 : "rgb(var(--primary-color))" } }),
|
|
12734
|
+
/* @__PURE__ */ jsx("span", { className: styles$j.uiPluginSheetsBorderPanelMoreIcon, children: /* @__PURE__ */ jsx(MoreDownSingle, {}) })
|
|
12756
12735
|
] })
|
|
12757
12736
|
}
|
|
12758
12737
|
) }),
|
|
12759
|
-
/* @__PURE__ */
|
|
12738
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
12760
12739
|
DropdownLegacy,
|
|
12761
12740
|
{
|
|
12762
12741
|
align: {
|
|
12763
12742
|
offset: [0, 18]
|
|
12764
12743
|
},
|
|
12765
|
-
overlay: /* @__PURE__ */
|
|
12744
|
+
overlay: /* @__PURE__ */ jsx("section", { onClick: stopPropagation, children: /* @__PURE__ */ jsx(Menu, { children: BORDER_SIZE_CHILDREN.map((item) => /* @__PURE__ */ jsx(
|
|
12766
12745
|
MenuItem,
|
|
12767
12746
|
{
|
|
12768
12747
|
eventKey: item.value.toString(),
|
|
12769
12748
|
onClick: /* @__PURE__ */ __name(() => handleClick(item.value, "style"), "onClick"),
|
|
12770
|
-
children: /* @__PURE__ */
|
|
12749
|
+
children: /* @__PURE__ */ jsx(BorderLine, { type: item.value })
|
|
12771
12750
|
},
|
|
12772
12751
|
item.value
|
|
12773
12752
|
)) }) }),
|
|
12774
|
-
children: /* @__PURE__ */
|
|
12775
|
-
/* @__PURE__ */
|
|
12776
|
-
/* @__PURE__ */
|
|
12753
|
+
children: /* @__PURE__ */ jsxs("a", { className: styles$j.uiPluginSheetsBorderPanelButton, onClick: stopPropagation, children: [
|
|
12754
|
+
/* @__PURE__ */ jsx(BorderLine, { type: BorderStyleTypes.THIN }),
|
|
12755
|
+
/* @__PURE__ */ jsx("span", { className: styles$j.uiPluginSheetsBorderPanelMoreIcon, children: /* @__PURE__ */ jsx(MoreDownSingle, {}) })
|
|
12777
12756
|
] })
|
|
12778
12757
|
}
|
|
12779
12758
|
) })
|
|
@@ -12915,13 +12894,13 @@ const definedName = "univer-defined-name", definedNameOverlay = "univer-defined-
|
|
|
12915
12894
|
var _a61;
|
|
12916
12895
|
const handleOutClick = (_a61 = formulaEditorActionsRef.current) == null ? void 0 : _a61.handleOutClick;
|
|
12917
12896
|
handleOutClick && handleOutClick(e, () => isFocusFormulaEditorSet(!1));
|
|
12918
|
-
}), /* @__PURE__ */
|
|
12919
|
-
/* @__PURE__ */
|
|
12920
|
-
/* @__PURE__ */
|
|
12921
|
-
/* @__PURE__ */
|
|
12922
|
-
/* @__PURE__ */
|
|
12897
|
+
}), /* @__PURE__ */ jsxs("div", { className: styles$i.definedNameInput, style: { display: state ? "block" : "none" }, children: [
|
|
12898
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Input, { placeholder: localeService.t("definedName.inputNamePlaceholder"), value: nameValue, allowClear: !0, onChange: setNameValue, affixWrapperStyle: widthStyle }) }),
|
|
12899
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(RadioGroup, { value: typeValue, onChange: typeValueChange, children: [
|
|
12900
|
+
/* @__PURE__ */ jsx(Radio, { value: "range", children: localeService.t("definedName.ratioRange") }),
|
|
12901
|
+
/* @__PURE__ */ jsx(Radio, { value: "formula", children: localeService.t("definedName.ratioFormula") })
|
|
12923
12902
|
] }) }),
|
|
12924
|
-
typeValue === "range" ? RangeSelector && /* @__PURE__ */
|
|
12903
|
+
typeValue === "range" ? RangeSelector && /* @__PURE__ */ jsx(
|
|
12925
12904
|
RangeSelector,
|
|
12926
12905
|
{
|
|
12927
12906
|
unitId,
|
|
@@ -12933,7 +12912,7 @@ const definedName = "univer-defined-name", definedNameOverlay = "univer-defined-
|
|
|
12933
12912
|
actions: rangeSelectorActionsRef.current,
|
|
12934
12913
|
isSupportAcrossSheet: !0
|
|
12935
12914
|
}
|
|
12936
|
-
) : FormulaEditor && /* @__PURE__ */
|
|
12915
|
+
) : FormulaEditor && /* @__PURE__ */ jsx(
|
|
12937
12916
|
FormulaEditor,
|
|
12938
12917
|
{
|
|
12939
12918
|
initValue: formulaOrRefStringValue,
|
|
@@ -12951,14 +12930,14 @@ const definedName = "univer-defined-name", definedNameOverlay = "univer-defined-
|
|
|
12951
12930
|
actions: formulaEditorActionsRef.current
|
|
12952
12931
|
}
|
|
12953
12932
|
),
|
|
12954
|
-
/* @__PURE__ */
|
|
12955
|
-
/* @__PURE__ */
|
|
12956
|
-
/* @__PURE__ */
|
|
12957
|
-
/* @__PURE__ */
|
|
12958
|
-
/* @__PURE__ */
|
|
12933
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Select, { style: widthStyle, value: localSheetIdValue, options, onChange: setLocalSheetIdValue }) }),
|
|
12934
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Input, { affixWrapperStyle: widthStyle, placeholder: localeService.t("definedName.inputCommentPlaceholder"), value: commentValue, onChange: setCommentValue }) }),
|
|
12935
|
+
/* @__PURE__ */ jsxs("div", { style: { display: validString.length === 0 ? "none" : "flex" }, className: styles$i.definedNameInputValidation, children: [
|
|
12936
|
+
/* @__PURE__ */ jsx("span", { children: validString }),
|
|
12937
|
+
/* @__PURE__ */ jsx(ErrorSingle, {})
|
|
12959
12938
|
] }),
|
|
12960
|
-
/* @__PURE__ */
|
|
12961
|
-
/* @__PURE__ */
|
|
12939
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
12940
|
+
/* @__PURE__ */ jsx(
|
|
12962
12941
|
Button,
|
|
12963
12942
|
{
|
|
12964
12943
|
onClick: /* @__PURE__ */ __name(() => {
|
|
@@ -12967,7 +12946,7 @@ const definedName = "univer-defined-name", definedNameOverlay = "univer-defined-
|
|
|
12967
12946
|
children: localeService.t("definedName.cancel")
|
|
12968
12947
|
}
|
|
12969
12948
|
),
|
|
12970
|
-
/* @__PURE__ */
|
|
12949
|
+
/* @__PURE__ */ jsx(
|
|
12971
12950
|
Button,
|
|
12972
12951
|
{
|
|
12973
12952
|
style: { marginLeft: 15 },
|
|
@@ -13049,36 +13028,36 @@ const definedName = "univer-defined-name", definedNameOverlay = "univer-defined-
|
|
|
13049
13028
|
const sheet = workbook.getSheetBySheetId(sheetId);
|
|
13050
13029
|
return sheet == null ? "" : sheet.getName();
|
|
13051
13030
|
}, "getSheetNameBySheetId");
|
|
13052
|
-
return /* @__PURE__ */
|
|
13053
|
-
/* @__PURE__ */
|
|
13054
|
-
/* @__PURE__ */
|
|
13055
|
-
/* @__PURE__ */
|
|
13056
|
-
/* @__PURE__ */
|
|
13031
|
+
return /* @__PURE__ */ jsx("div", { className: styles$i.definedNameContainer, children: /* @__PURE__ */ jsxs("div", { className: styles$i.definedNameContainerScroll, children: [
|
|
13032
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
13033
|
+
/* @__PURE__ */ jsxs("div", { onClick: openInsertCloseKeyEditor, className: styles$i.definedNameContainerAddButton, style: { display: editState ? "none" : "flex" }, children: [
|
|
13034
|
+
/* @__PURE__ */ jsx(IncreaseSingle, {}),
|
|
13035
|
+
/* @__PURE__ */ jsx("span", { className: styles$i.definedNameContainerAddButtonText, children: localeService.t("definedName.addButton") })
|
|
13057
13036
|
] }),
|
|
13058
|
-
editState && /* @__PURE__ */
|
|
13037
|
+
editState && /* @__PURE__ */ jsx(DefinedNameInput, { confirm: insertConfirm, cancel: closeInput, state: editState, inputId: "insertDefinedName", name: getInsertDefinedName(), formulaOrRefString: getInertFormulaOrRefString() })
|
|
13059
13038
|
] }, "insertDefinedName"),
|
|
13060
|
-
definedNames.map((definedName2, index) => /* @__PURE__ */
|
|
13061
|
-
/* @__PURE__ */
|
|
13039
|
+
definedNames.map((definedName2, index) => /* @__PURE__ */ jsxs("div", { children: [
|
|
13040
|
+
/* @__PURE__ */ jsxs("div", { onClick: /* @__PURE__ */ __name(() => {
|
|
13062
13041
|
focusDefinedName(definedName2);
|
|
13063
13042
|
}, "onClick"), className: styles$i.definedNameContainerItem, style: { display: definedName2.id === editorKey ? "none" : "flex" }, children: [
|
|
13064
|
-
/* @__PURE__ */
|
|
13065
|
-
/* @__PURE__ */
|
|
13043
|
+
/* @__PURE__ */ jsxs("div", { title: definedName2.comment, children: [
|
|
13044
|
+
/* @__PURE__ */ jsxs("div", { className: styles$i.definedNameContainerItemName, children: [
|
|
13066
13045
|
definedName2.name,
|
|
13067
|
-
/* @__PURE__ */
|
|
13046
|
+
/* @__PURE__ */ jsx("span", { className: styles$i.definedNameContainerItemNameForSheet, children: definedName2.localSheetId === SCOPE_WORKBOOK_VALUE_DEFINED_NAME || definedName2.localSheetId == null ? "" : getSheetNameBySheetId(definedName2.localSheetId) })
|
|
13068
13047
|
] }),
|
|
13069
|
-
/* @__PURE__ */
|
|
13048
|
+
/* @__PURE__ */ jsx("div", { className: styles$i.definedNameContainerItemFormulaOrRefString, children: definedName2.formulaOrRefString })
|
|
13070
13049
|
] }),
|
|
13071
|
-
/* @__PURE__ */
|
|
13050
|
+
/* @__PURE__ */ jsx(Tooltip, { title: localeService.t("definedName.updateButton"), placement: "top", children: /* @__PURE__ */ jsx("div", { className: clsx(styles$i.definedNameContainerItemUpdate, styles$i.definedNameContainerItemShow), onClick: /* @__PURE__ */ __name(() => {
|
|
13072
13051
|
closeInsertOpenKeyEditor(definedName2.id);
|
|
13073
|
-
}, "onClick"), children: /* @__PURE__ */
|
|
13074
|
-
/* @__PURE__ */
|
|
13052
|
+
}, "onClick"), children: /* @__PURE__ */ jsx(CheckMarkSingle, {}) }) }),
|
|
13053
|
+
/* @__PURE__ */ jsx(Tooltip, { title: localeService.t("definedName.deleteButton"), placement: "top", children: /* @__PURE__ */ jsx("div", { className: clsx(styles$i.definedNameContainerItemDelete, styles$i.definedNameContainerItemShow), onClick: /* @__PURE__ */ __name(() => {
|
|
13075
13054
|
deleteDefinedName(definedName2.id);
|
|
13076
|
-
}, "onClick"), children: /* @__PURE__ */
|
|
13055
|
+
}, "onClick"), children: /* @__PURE__ */ jsx(DeleteSingle, {}) }) })
|
|
13077
13056
|
] }),
|
|
13078
|
-
/* @__PURE__ */
|
|
13057
|
+
/* @__PURE__ */ jsx(Confirm, { visible: deleteConformKey === definedName2.id, onClose: handleDeleteClose, onConfirm: /* @__PURE__ */ __name(() => {
|
|
13079
13058
|
handleDeleteConfirm(definedName2.id);
|
|
13080
13059
|
}, "onConfirm"), children: localeService.t("definedName.deleteConfirmText") }),
|
|
13081
|
-
definedName2.id === editorKey && /* @__PURE__ */
|
|
13060
|
+
definedName2.id === editorKey && /* @__PURE__ */ jsx(
|
|
13082
13061
|
DefinedNameInput,
|
|
13083
13062
|
{
|
|
13084
13063
|
confirm: insertConfirm,
|
|
@@ -13123,7 +13102,7 @@ function ZoomSlider() {
|
|
|
13123
13102
|
}
|
|
13124
13103
|
__name(handleChange, "handleChange");
|
|
13125
13104
|
const disabled = (visible == null ? void 0 : visible.visible) && (visible.unitId === (workbook == null ? void 0 : workbook.getUnitId()) || visible.unitId === DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY);
|
|
13126
|
-
return /* @__PURE__ */
|
|
13105
|
+
return /* @__PURE__ */ jsx(
|
|
13127
13106
|
Slider,
|
|
13128
13107
|
{
|
|
13129
13108
|
disabled,
|
|
@@ -13136,7 +13115,7 @@ function ZoomSlider() {
|
|
|
13136
13115
|
}
|
|
13137
13116
|
__name(ZoomSlider, "ZoomSlider");
|
|
13138
13117
|
function CountBar(props) {
|
|
13139
|
-
return /* @__PURE__ */
|
|
13118
|
+
return /* @__PURE__ */ jsx("section", { className: styles$h.countBar, children: /* @__PURE__ */ jsx(ZoomSlider, {}) });
|
|
13140
13119
|
}
|
|
13141
13120
|
__name(CountBar, "CountBar");
|
|
13142
13121
|
function useKeyEventConfig(isRefSelecting, unitId) {
|
|
@@ -13228,7 +13207,7 @@ const editorContainer = "univer-editor-container", editorInput = "univer-editor-
|
|
|
13228
13207
|
unitId: editState == null ? void 0 : editState.unitId
|
|
13229
13208
|
});
|
|
13230
13209
|
});
|
|
13231
|
-
return /* @__PURE__ */
|
|
13210
|
+
return /* @__PURE__ */ jsx(
|
|
13232
13211
|
"div",
|
|
13233
13212
|
{
|
|
13234
13213
|
className: styles$g.editorContainer,
|
|
@@ -13238,7 +13217,7 @@ const editorContainer = "univer-editor-container", editorInput = "univer-editor-
|
|
|
13238
13217
|
width: state.width,
|
|
13239
13218
|
height: state.height
|
|
13240
13219
|
},
|
|
13241
|
-
children: FormulaEditor && /* @__PURE__ */
|
|
13220
|
+
children: FormulaEditor && /* @__PURE__ */ jsx(
|
|
13242
13221
|
FormulaEditor,
|
|
13243
13222
|
{
|
|
13244
13223
|
editorId: DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
|
|
@@ -13334,15 +13313,15 @@ function DefinedNameOverlay(props) {
|
|
|
13334
13313
|
return;
|
|
13335
13314
|
worksheet.isSheetHidden() && await commandService.executeCommand(SetWorksheetShowCommand.id, { unitId, subUnitId: worksheet.getSheetId() }), definedNamesService.focusRange(unitId, id);
|
|
13336
13315
|
}, "focusDefinedName");
|
|
13337
|
-
return /* @__PURE__ */
|
|
13338
|
-
/* @__PURE__ */
|
|
13316
|
+
return /* @__PURE__ */ jsxs("div", { className: "univer-w-[300px]", children: [
|
|
13317
|
+
/* @__PURE__ */ jsx(
|
|
13339
13318
|
"ul",
|
|
13340
13319
|
{
|
|
13341
13320
|
className: `
|
|
13342
13321
|
univer-max-h-[360px] univer-overflow-y-auto univer-scrollbar-thin univer-scrollbar-thumb-gray-300
|
|
13343
13322
|
univer-scrollbar-track-transparent univer-scrollbar-w-[4px] univer-m-0 univer-list-none univer-p-0
|
|
13344
13323
|
`,
|
|
13345
|
-
children: definedNames.map((definedName2, index) => /* @__PURE__ */
|
|
13324
|
+
children: definedNames.map((definedName2, index) => /* @__PURE__ */ jsx(
|
|
13346
13325
|
"li",
|
|
13347
13326
|
{
|
|
13348
13327
|
className: `
|
|
@@ -13353,7 +13332,7 @@ function DefinedNameOverlay(props) {
|
|
|
13353
13332
|
onClick: /* @__PURE__ */ __name(() => {
|
|
13354
13333
|
focusDefinedName(definedName2);
|
|
13355
13334
|
}, "onClick"),
|
|
13356
|
-
children: /* @__PURE__ */
|
|
13335
|
+
children: /* @__PURE__ */ jsxs(
|
|
13357
13336
|
"div",
|
|
13358
13337
|
{
|
|
13359
13338
|
className: `
|
|
@@ -13361,7 +13340,7 @@ function DefinedNameOverlay(props) {
|
|
|
13361
13340
|
univer-border-solid univer-border-0 univer-border-gray-200 univer-gap-2
|
|
13362
13341
|
`,
|
|
13363
13342
|
children: [
|
|
13364
|
-
/* @__PURE__ */
|
|
13343
|
+
/* @__PURE__ */ jsx(
|
|
13365
13344
|
"div",
|
|
13366
13345
|
{
|
|
13367
13346
|
className: `
|
|
@@ -13372,7 +13351,7 @@ function DefinedNameOverlay(props) {
|
|
|
13372
13351
|
children: definedName2.name
|
|
13373
13352
|
}
|
|
13374
13353
|
),
|
|
13375
|
-
/* @__PURE__ */
|
|
13354
|
+
/* @__PURE__ */ jsx(
|
|
13376
13355
|
"div",
|
|
13377
13356
|
{
|
|
13378
13357
|
className: `
|
|
@@ -13391,7 +13370,7 @@ function DefinedNameOverlay(props) {
|
|
|
13391
13370
|
))
|
|
13392
13371
|
}
|
|
13393
13372
|
),
|
|
13394
|
-
/* @__PURE__ */
|
|
13373
|
+
/* @__PURE__ */ jsxs(
|
|
13395
13374
|
"div",
|
|
13396
13375
|
{
|
|
13397
13376
|
className: `
|
|
@@ -13401,8 +13380,8 @@ function DefinedNameOverlay(props) {
|
|
|
13401
13380
|
`,
|
|
13402
13381
|
onClick: openSlider,
|
|
13403
13382
|
children: [
|
|
13404
|
-
/* @__PURE__ */
|
|
13405
|
-
/* @__PURE__ */
|
|
13383
|
+
/* @__PURE__ */ jsx("div", { className: "univer-text-sm univer-font-semibold univer-text-gray-600 univer-mb-2", children: localeService.t("definedName.managerTitle") }),
|
|
13384
|
+
/* @__PURE__ */ jsx("div", { className: "univer-text-xs univer-text-gray-400", children: localeService.t("definedName.managerDescription") })
|
|
13406
13385
|
]
|
|
13407
13386
|
}
|
|
13408
13387
|
)
|
|
@@ -13411,26 +13390,34 @@ function DefinedNameOverlay(props) {
|
|
|
13411
13390
|
__name(DefinedNameOverlay, "DefinedNameOverlay");
|
|
13412
13391
|
function DefinedName({ disable }) {
|
|
13413
13392
|
const [rangeString, setRangeString] = useState(""), definedNamesService = useDependency(IDefinedNamesService);
|
|
13414
|
-
|
|
13393
|
+
useEffect(() => {
|
|
13415
13394
|
const subscription = definedNamesService.currentRange$.subscribe(() => {
|
|
13416
13395
|
setRangeString(definedNamesService.getCurrentRangeForString());
|
|
13417
13396
|
});
|
|
13418
13397
|
return () => {
|
|
13419
13398
|
subscription.unsubscribe();
|
|
13420
13399
|
};
|
|
13421
|
-
}, [])
|
|
13422
|
-
|
|
13423
|
-
|
|
13400
|
+
}, []);
|
|
13401
|
+
function handleChangeSelection() {
|
|
13402
|
+
}
|
|
13403
|
+
return __name(handleChangeSelection, "handleChangeSelection"), /* @__PURE__ */ jsxs("div", { className: styles$i.definedName, children: [
|
|
13404
|
+
/* @__PURE__ */ jsx(
|
|
13405
|
+
"input",
|
|
13424
13406
|
{
|
|
13425
|
-
className: clsx(
|
|
13426
|
-
|
|
13407
|
+
className: clsx(`
|
|
13408
|
+
univer-border-none univer-absolute univer-w-full univer-h-full univer-appearance-none
|
|
13409
|
+
univer-box-border univer-px-1.5
|
|
13410
|
+
focus:univer-outline-none
|
|
13411
|
+
`, {
|
|
13412
|
+
[styles$i.defineNameInputDisable]: disable
|
|
13413
|
+
}),
|
|
13427
13414
|
type: "text",
|
|
13428
|
-
|
|
13429
|
-
|
|
13415
|
+
value: rangeString,
|
|
13416
|
+
onChange: handleChangeSelection
|
|
13430
13417
|
}
|
|
13431
13418
|
),
|
|
13432
|
-
/* @__PURE__ */
|
|
13433
|
-
/* @__PURE__ */
|
|
13419
|
+
/* @__PURE__ */ jsxs(DropdownProvider, { children: [
|
|
13420
|
+
/* @__PURE__ */ jsx(DropdownTrigger, { children: /* @__PURE__ */ jsx(
|
|
13434
13421
|
"a",
|
|
13435
13422
|
{
|
|
13436
13423
|
className: clsx(
|
|
@@ -13443,10 +13430,10 @@ function DefinedName({ disable }) {
|
|
|
13443
13430
|
"univer-text-gray-300 univer-cursor-not-allowed hover:univer-bg-transparent": disable
|
|
13444
13431
|
}
|
|
13445
13432
|
),
|
|
13446
|
-
children: /* @__PURE__ */
|
|
13433
|
+
children: /* @__PURE__ */ jsx(MoreDownSingle, {})
|
|
13447
13434
|
}
|
|
13448
13435
|
) }),
|
|
13449
|
-
/* @__PURE__ */
|
|
13436
|
+
/* @__PURE__ */ jsx(DropdownOverlay, { className: "univer-z-[1001]", offset: { x: -75, y: 2 }, children: /* @__PURE__ */ jsx(DefinedNameOverlay, {}) })
|
|
13450
13437
|
] })
|
|
13451
13438
|
] });
|
|
13452
13439
|
}
|
|
@@ -13567,7 +13554,7 @@ function FormulaBar() {
|
|
|
13567
13554
|
}
|
|
13568
13555
|
__name(handlerFxBtnClick, "handlerFxBtnClick");
|
|
13569
13556
|
const disabled = disable || imageDisable;
|
|
13570
|
-
return /* @__PURE__ */
|
|
13557
|
+
return /* @__PURE__ */ jsxs(
|
|
13571
13558
|
"div",
|
|
13572
13559
|
{
|
|
13573
13560
|
className: styles$f.formulaBox,
|
|
@@ -13576,29 +13563,29 @@ function FormulaBar() {
|
|
|
13576
13563
|
pointerEvents: disable ? "none" : "auto"
|
|
13577
13564
|
},
|
|
13578
13565
|
children: [
|
|
13579
|
-
/* @__PURE__ */
|
|
13580
|
-
/* @__PURE__ */
|
|
13581
|
-
/* @__PURE__ */
|
|
13582
|
-
/* @__PURE__ */
|
|
13566
|
+
/* @__PURE__ */ jsx("div", { className: styles$f.nameRanges, children: /* @__PURE__ */ jsx(DefinedName, { disable }) }),
|
|
13567
|
+
/* @__PURE__ */ jsxs("div", { className: styles$f.formulaBar, children: [
|
|
13568
|
+
/* @__PURE__ */ jsx("div", { className: clsx(styles$f.formulaIcon, { [styles$f.formulaIconDisable]: disabled }), children: /* @__PURE__ */ jsxs("div", { className: styles$f.formulaIconWrapper, children: [
|
|
13569
|
+
/* @__PURE__ */ jsx(
|
|
13583
13570
|
"span",
|
|
13584
13571
|
{
|
|
13585
13572
|
className: clsx(styles$f.iconContainer, styles$f.iconContainerError, iconStyle),
|
|
13586
13573
|
onClick: handleCloseBtnClick,
|
|
13587
|
-
children: /* @__PURE__ */
|
|
13574
|
+
children: /* @__PURE__ */ jsx(CloseSingle, {})
|
|
13588
13575
|
}
|
|
13589
13576
|
),
|
|
13590
|
-
/* @__PURE__ */
|
|
13577
|
+
/* @__PURE__ */ jsx(
|
|
13591
13578
|
"span",
|
|
13592
13579
|
{
|
|
13593
13580
|
className: clsx(styles$f.iconContainer, styles$f.iconContainerSuccess, iconStyle),
|
|
13594
13581
|
onClick: handleConfirmBtnClick,
|
|
13595
|
-
children: /* @__PURE__ */
|
|
13582
|
+
children: /* @__PURE__ */ jsx(CheckMarkSingle, {})
|
|
13596
13583
|
}
|
|
13597
13584
|
),
|
|
13598
|
-
/* @__PURE__ */
|
|
13585
|
+
/* @__PURE__ */ jsx("span", { className: clsx(styles$f.iconContainer, styles$f.iconContainerFx), onClick: handlerFxBtnClick, children: /* @__PURE__ */ jsx(FxSingle, {}) })
|
|
13599
13586
|
] }) }),
|
|
13600
|
-
/* @__PURE__ */
|
|
13601
|
-
/* @__PURE__ */
|
|
13587
|
+
/* @__PURE__ */ jsxs("div", { className: styles$f.formulaContainer, children: [
|
|
13588
|
+
/* @__PURE__ */ jsx("div", { className: styles$f.formulaInput, ref, children: FormulaEditor && /* @__PURE__ */ jsx(
|
|
13602
13589
|
FormulaEditor,
|
|
13603
13590
|
{
|
|
13604
13591
|
disableSelectionOnClick: !0,
|
|
@@ -13621,10 +13608,10 @@ function FormulaBar() {
|
|
|
13621
13608
|
disableContextMenu: !1
|
|
13622
13609
|
}
|
|
13623
13610
|
) }),
|
|
13624
|
-
/* @__PURE__ */
|
|
13611
|
+
/* @__PURE__ */ jsx("div", { className: clsx(styles$f.arrowContainer, { [styles$f.arrowContainerDisable]: disable }), onClick: handleArrowClick, children: arrowDirection === 0 ? /* @__PURE__ */ jsx(DropdownSingle, {}) : /* @__PURE__ */ jsx(DropdownSingle, { style: { transform: "rotateZ(180deg)" } }) })
|
|
13625
13612
|
] })
|
|
13626
13613
|
] }),
|
|
13627
|
-
/* @__PURE__ */
|
|
13614
|
+
/* @__PURE__ */ jsx(ComponentContainer, { components: formulaAuxUIParts }, "formula-aux")
|
|
13628
13615
|
]
|
|
13629
13616
|
}
|
|
13630
13617
|
);
|
|
@@ -13703,46 +13690,46 @@ const operateContainer = "univer-operate-container", autoFillPopupMenu = "univer
|
|
|
13703
13690
|
}, "onVisibleChange"), handleClick = /* @__PURE__ */ __name((item) => {
|
|
13704
13691
|
commandService.executeCommand(RefillCommand.id, { type: item.value }), setVisible(!1);
|
|
13705
13692
|
}, "handleClick"), showMore = visible || isHovered, availableMenu = menu.filter((item) => !item.disable);
|
|
13706
|
-
return /* @__PURE__ */
|
|
13693
|
+
return /* @__PURE__ */ jsx(
|
|
13707
13694
|
"div",
|
|
13708
13695
|
{
|
|
13709
13696
|
onMouseEnter: handleMouseEnter,
|
|
13710
13697
|
onMouseLeave: handleMouseLeave,
|
|
13711
13698
|
style: { left: `${relativeX + 2}px`, top: `${relativeY + 2}px`, position: "absolute" },
|
|
13712
|
-
children: /* @__PURE__ */
|
|
13699
|
+
children: /* @__PURE__ */ jsx(
|
|
13713
13700
|
DropdownLegacy,
|
|
13714
13701
|
{
|
|
13715
13702
|
placement: "bottomLeft",
|
|
13716
13703
|
trigger: ["click"],
|
|
13717
|
-
overlay: /* @__PURE__ */
|
|
13704
|
+
overlay: /* @__PURE__ */ jsx("ul", { className: styles$e.autoFillPopupMenu, children: availableMenu.map((item) => /* @__PURE__ */ jsxs(
|
|
13718
13705
|
"li",
|
|
13719
13706
|
{
|
|
13720
13707
|
onClick: /* @__PURE__ */ __name(() => handleClick(item), "onClick"),
|
|
13721
13708
|
className: styles$e.autoFillPopupMenuItem,
|
|
13722
13709
|
children: [
|
|
13723
|
-
/* @__PURE__ */
|
|
13724
|
-
/* @__PURE__ */
|
|
13710
|
+
/* @__PURE__ */ jsx("span", { className: styles$e.autoFillPopupMenuItemIcon, children: item.value === selected && /* @__PURE__ */ jsx(CheckMarkSingle, { style: { color: "rgb(var(--green-700, #409f11))" } }) }),
|
|
13711
|
+
/* @__PURE__ */ jsx("span", { className: styles$e.autoFillPopupMenuItemTitle, children: localeService.t(item.label) })
|
|
13725
13712
|
]
|
|
13726
13713
|
},
|
|
13727
13714
|
item.index
|
|
13728
13715
|
)) }),
|
|
13729
13716
|
visible,
|
|
13730
13717
|
onVisibleChange,
|
|
13731
|
-
children: /* @__PURE__ */
|
|
13718
|
+
children: /* @__PURE__ */ jsxs(
|
|
13732
13719
|
"div",
|
|
13733
13720
|
{
|
|
13734
13721
|
className: clsx(styles$e.btnContainer, {
|
|
13735
13722
|
[styles$e.btnContainerExpand]: visible
|
|
13736
13723
|
}),
|
|
13737
13724
|
children: [
|
|
13738
|
-
/* @__PURE__ */
|
|
13725
|
+
/* @__PURE__ */ jsx(
|
|
13739
13726
|
Autofill,
|
|
13740
13727
|
{
|
|
13741
13728
|
style: { color: "#35322B" },
|
|
13742
13729
|
extend: { colorChannel1: "rgb(var(--green-700, #409f11))" }
|
|
13743
13730
|
}
|
|
13744
13731
|
),
|
|
13745
|
-
showMore && /* @__PURE__ */
|
|
13732
|
+
showMore && /* @__PURE__ */ jsx(MoreDownSingle, { style: { color: "#CCCCCC", fontSize: "8px", marginLeft: "8px" } })
|
|
13746
13733
|
]
|
|
13747
13734
|
}
|
|
13748
13735
|
)
|
|
@@ -13750,7 +13737,7 @@ const operateContainer = "univer-operate-container", autoFillPopupMenu = "univer
|
|
|
13750
13737
|
)
|
|
13751
13738
|
}
|
|
13752
13739
|
);
|
|
13753
|
-
}, "AutoFillPopupMenu"), OperateContainer = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
13740
|
+
}, "AutoFillPopupMenu"), OperateContainer = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsx("div", { className: styles$e.operateContainer, children: /* @__PURE__ */ jsx(AutoFillPopupMenu, {}) }), "OperateContainer"), sheetBar = "univer-sheet-bar", sheetBarOptions = "univer-sheet-bar-options", sheetBarOptionsDivider = "univer-sheet-bar-options-divider", styles$d = {
|
|
13754
13741
|
sheetBar,
|
|
13755
13742
|
sheetBarOptions,
|
|
13756
13743
|
sheetBarOptionsDivider
|
|
@@ -13765,7 +13752,7 @@ function SheetBarButton(props) {
|
|
|
13765
13752
|
}
|
|
13766
13753
|
onClick && onClick(e);
|
|
13767
13754
|
}, "handleClick");
|
|
13768
|
-
return /* @__PURE__ */
|
|
13755
|
+
return /* @__PURE__ */ jsx("button", { className: styles$c.sheetBarBtn, style, disabled, onClick: handleClick, ...restProps, children });
|
|
13769
13756
|
}
|
|
13770
13757
|
__name(SheetBarButton, "SheetBarButton");
|
|
13771
13758
|
const sheetFooterBarHeight = "36", sheetContainer = "univer-sheet-container", sheetBarMenu = "univer-sheet-bar-menu", sheetBarMenuItem = "univer-sheet-bar-menu-item", sheetBarMenuItemIcon = "univer-sheet-bar-menu-item-icon", sheetBarMenuItemHide = "univer-sheet-bar-menu-item-hide", sheetBarMenuItemSelect = "univer-sheet-bar-menu-item-select", sheetBarMenuItemLabel = "univer-sheet-bar-menu-item-label", styles$b = {
|
|
@@ -13822,12 +13809,12 @@ function SheetBarMenu(props) {
|
|
|
13822
13809
|
statusInit();
|
|
13823
13810
|
const disposables = new DisposableCollection();
|
|
13824
13811
|
return disposables.add(setupStatusUpdate()), disposables.add(sheetBarService.registerSheetBarMenuHandler({ handleSheetBarMenu })), () => disposables.dispose();
|
|
13825
|
-
}, [setupStatusUpdate, sheetBarService, statusInit, workbook]), /* @__PURE__ */
|
|
13812
|
+
}, [setupStatusUpdate, sheetBarService, statusInit, workbook]), /* @__PURE__ */ jsx(
|
|
13826
13813
|
DropdownLegacy,
|
|
13827
13814
|
{
|
|
13828
13815
|
placement: "topLeft",
|
|
13829
13816
|
trigger: ["click"],
|
|
13830
|
-
overlay: /* @__PURE__ */
|
|
13817
|
+
overlay: /* @__PURE__ */ jsx("ul", { className: styles$b.sheetBarMenu, style: { ...style }, children: menu.map((item) => /* @__PURE__ */ jsxs(
|
|
13831
13818
|
"li",
|
|
13832
13819
|
{
|
|
13833
13820
|
onClick: /* @__PURE__ */ __name(() => handleClick(item), "onClick"),
|
|
@@ -13839,15 +13826,15 @@ function SheetBarMenu(props) {
|
|
|
13839
13826
|
${styles$b.sheetBarMenuItemHide}
|
|
13840
13827
|
` : styles$b.sheetBarMenuItem,
|
|
13841
13828
|
children: [
|
|
13842
|
-
/* @__PURE__ */
|
|
13843
|
-
/* @__PURE__ */
|
|
13829
|
+
/* @__PURE__ */ jsx("span", { className: styles$b.sheetBarMenuItemIcon, children: item.selected ? /* @__PURE__ */ jsx(CheckMarkSingle, {}) : item.hidden ? /* @__PURE__ */ jsx(EyelashSingle, {}) : /* @__PURE__ */ jsx(CheckMarkSingle, {}) }),
|
|
13830
|
+
/* @__PURE__ */ jsx("div", { className: styles$b.sheetBarMenuItemLabel, children: item.label })
|
|
13844
13831
|
]
|
|
13845
13832
|
},
|
|
13846
13833
|
item.index
|
|
13847
13834
|
)) }),
|
|
13848
13835
|
visible,
|
|
13849
13836
|
onVisibleChange,
|
|
13850
|
-
children: /* @__PURE__ */
|
|
13837
|
+
children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(SheetBarButton, { children: /* @__PURE__ */ jsx(ConvertSingle, {}) }) })
|
|
13851
13838
|
}
|
|
13852
13839
|
);
|
|
13853
13840
|
}
|
|
@@ -13870,7 +13857,7 @@ function SheetBarItem(props) {
|
|
|
13870
13857
|
const theme = themeService.getCurrentTheme(), darkTextColor = theme.textColor, lightTextColor = theme.colorWhite;
|
|
13871
13858
|
return new ColorKit(color2).isDark() ? lightTextColor : darkTextColor;
|
|
13872
13859
|
}, "getTextColor");
|
|
13873
|
-
return /* @__PURE__ */
|
|
13860
|
+
return /* @__PURE__ */ jsx(
|
|
13874
13861
|
"div",
|
|
13875
13862
|
{
|
|
13876
13863
|
"data-id": sheetId,
|
|
@@ -13883,7 +13870,7 @@ function SheetBarItem(props) {
|
|
|
13883
13870
|
color: !currentSelected && color ? getTextColor(color) : "",
|
|
13884
13871
|
boxShadow: currentSelected && color ? `0px 0px 8px rgba(0, 0, 0, 0.08), inset 0px -2px 0px 0px ${color}` : ""
|
|
13885
13872
|
},
|
|
13886
|
-
children: /* @__PURE__ */
|
|
13873
|
+
children: /* @__PURE__ */ jsx("div", { className: styles$a.slideTabDiv, children: label })
|
|
13887
13874
|
},
|
|
13888
13875
|
sheetId
|
|
13889
13876
|
);
|
|
@@ -14466,10 +14453,10 @@ function SheetBarTabs() {
|
|
|
14466
14453
|
setActiveKey(currentSubUnitId);
|
|
14467
14454
|
const sheets = workbook.getSheets(), activeSheet = workbook.getActiveSheet(), sheetListItems = sheets.filter((sheet) => !sheet.isSheetHidden()).map((sheet, index) => {
|
|
14468
14455
|
var _a63;
|
|
14469
|
-
const worksheetRule = worksheetProtectionRuleModel.getRule(workbook.getUnitId(), sheet.getSheetId()), hasSelectionRule = rangeProtectionRuleModel.getSubunitRuleList(workbook.getUnitId(), sheet.getSheetId()).length > 0, name = (worksheetRule == null ? void 0 : worksheetRule.permissionId) || hasSelectionRule ? /* @__PURE__ */
|
|
14470
|
-
/* @__PURE__ */
|
|
14471
|
-
/* @__PURE__ */
|
|
14472
|
-
] }) : /* @__PURE__ */
|
|
14456
|
+
const worksheetRule = worksheetProtectionRuleModel.getRule(workbook.getUnitId(), sheet.getSheetId()), hasSelectionRule = rangeProtectionRuleModel.getSubunitRuleList(workbook.getUnitId(), sheet.getSheetId()).length > 0, name = (worksheetRule == null ? void 0 : worksheetRule.permissionId) || hasSelectionRule ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
14457
|
+
/* @__PURE__ */ jsx(LockSingle, {}),
|
|
14458
|
+
/* @__PURE__ */ jsx("span", { children: sheet.getName() })
|
|
14459
|
+
] }) : /* @__PURE__ */ jsx("span", { children: sheet.getName() });
|
|
14473
14460
|
return {
|
|
14474
14461
|
sheetId: sheet.getSheetId(),
|
|
14475
14462
|
label: name,
|
|
@@ -14667,14 +14654,14 @@ function SheetBarTabs() {
|
|
|
14667
14654
|
setVisible(visible2);
|
|
14668
14655
|
}
|
|
14669
14656
|
}, "onVisibleChange");
|
|
14670
|
-
return /* @__PURE__ */
|
|
14657
|
+
return /* @__PURE__ */ jsx(
|
|
14671
14658
|
DropdownLegacy,
|
|
14672
14659
|
{
|
|
14673
14660
|
className: styles$a.slideTabItemDropdown,
|
|
14674
14661
|
visible,
|
|
14675
14662
|
align: { offset },
|
|
14676
14663
|
trigger: ["contextMenu"],
|
|
14677
|
-
overlay: /* @__PURE__ */
|
|
14664
|
+
overlay: /* @__PURE__ */ jsx(
|
|
14678
14665
|
UIMenu,
|
|
14679
14666
|
{
|
|
14680
14667
|
menuType: ContextMenuPosition.FOOTER_TABS,
|
|
@@ -14685,14 +14672,14 @@ function SheetBarTabs() {
|
|
|
14685
14672
|
}
|
|
14686
14673
|
),
|
|
14687
14674
|
onVisibleChange,
|
|
14688
|
-
children: /* @__PURE__ */
|
|
14675
|
+
children: /* @__PURE__ */ jsx(
|
|
14689
14676
|
"div",
|
|
14690
14677
|
{
|
|
14691
14678
|
className: styles$a.slideTabBarContainer,
|
|
14692
14679
|
ref: slideTabBarContainerRef,
|
|
14693
14680
|
onDragStart: /* @__PURE__ */ __name((e) => e.preventDefault(), "onDragStart"),
|
|
14694
14681
|
onContextMenu: /* @__PURE__ */ __name((e) => e.preventDefault(), "onContextMenu"),
|
|
14695
|
-
children: /* @__PURE__ */
|
|
14682
|
+
children: /* @__PURE__ */ jsx("div", { className: styles$a.slideTabBar, style: { boxShadow }, children: sheetList.map((item) => /* @__PURE__ */ createElement(SheetBarItem, { ...item, key: item.sheetId, selected: activeKey === item.sheetId })) })
|
|
14696
14683
|
}
|
|
14697
14684
|
)
|
|
14698
14685
|
}
|
|
@@ -14722,13 +14709,13 @@ const SCROLL_WIDTH = 100, SheetBar = /* @__PURE__ */ __name(() => {
|
|
|
14722
14709
|
}, "handleScrollLeft"), handleScrollRight = /* @__PURE__ */ __name(() => {
|
|
14723
14710
|
sheetBarService.setScrollX(SCROLL_WIDTH);
|
|
14724
14711
|
}, "handleScrollRight");
|
|
14725
|
-
return /* @__PURE__ */
|
|
14726
|
-
/* @__PURE__ */
|
|
14727
|
-
/* @__PURE__ */
|
|
14728
|
-
/* @__PURE__ */
|
|
14712
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$d.sheetBar, children: [
|
|
14713
|
+
/* @__PURE__ */ jsxs("div", { className: styles$d.sheetBarOptions, children: [
|
|
14714
|
+
/* @__PURE__ */ jsx(SheetBarButton, { onClick: addSheet, disabled: !(workbookCreateSheetPermission != null && workbookCreateSheetPermission.value && (workbookEditablePermission != null && workbookEditablePermission.value)), children: /* @__PURE__ */ jsx(IncreaseSingle, {}) }),
|
|
14715
|
+
/* @__PURE__ */ jsx(SheetBarMenu, {})
|
|
14729
14716
|
] }),
|
|
14730
|
-
/* @__PURE__ */
|
|
14731
|
-
(!leftScrollState || !rightScrollState) && /* @__PURE__ */
|
|
14717
|
+
/* @__PURE__ */ jsx(SheetBarTabs, {}),
|
|
14718
|
+
(!leftScrollState || !rightScrollState) && /* @__PURE__ */ jsxs(
|
|
14732
14719
|
"div",
|
|
14733
14720
|
{
|
|
14734
14721
|
className: `
|
|
@@ -14736,8 +14723,8 @@ const SCROLL_WIDTH = 100, SheetBar = /* @__PURE__ */ __name(() => {
|
|
|
14736
14723
|
${styles$d.sheetBarOptionsDivider}
|
|
14737
14724
|
`,
|
|
14738
14725
|
children: [
|
|
14739
|
-
/* @__PURE__ */
|
|
14740
|
-
/* @__PURE__ */
|
|
14726
|
+
/* @__PURE__ */ jsx(SheetBarButton, { disabled: leftScrollState, onClick: handleScrollLeft, children: /* @__PURE__ */ jsx(MoreSingle, { style: { transform: "rotateZ(180deg)" } }) }),
|
|
14727
|
+
/* @__PURE__ */ jsx(SheetBarButton, { disabled: rightScrollState, onClick: handleScrollRight, children: /* @__PURE__ */ jsx(MoreSingle, {}) })
|
|
14741
14728
|
]
|
|
14742
14729
|
}
|
|
14743
14730
|
)
|
|
@@ -14847,7 +14834,7 @@ const IStatusBarService = createIdentifier("univer.sheet-status-bar.service"), s
|
|
|
14847
14834
|
content: localeService.t("statusbar.copied")
|
|
14848
14835
|
});
|
|
14849
14836
|
}, "copyToClipboard");
|
|
14850
|
-
return /* @__PURE__ */
|
|
14837
|
+
return /* @__PURE__ */ jsx(Tooltip, { title: localeService.t("statusbar.clickToCopy"), placement: "top", children: /* @__PURE__ */ jsx("div", { className: styles$9.statisticItem, onClick: copyToClipboard, children: /* @__PURE__ */ jsx("span", { children: `${localeService.t(
|
|
14851
14838
|
(functionDisplayNames == null ? void 0 : functionDisplayNames[item.name]) || item.name
|
|
14852
14839
|
)}: ${formateValue}` }) }, item.name) });
|
|
14853
14840
|
}, "CopyableStatisticItem");
|
|
@@ -14895,37 +14882,39 @@ const SINGLE_MODE_WIDTH = 800, ROW_COUNT_THRESHOLD = 3, StatusBar = /* @__PURE__
|
|
|
14895
14882
|
const doubleLineList = [];
|
|
14896
14883
|
showList.forEach((_2, index) => {
|
|
14897
14884
|
index % 2 === 0 && doubleLineList.push(showList.slice(index, index + 2));
|
|
14898
|
-
}), renderContent = /* @__PURE__ */
|
|
14885
|
+
}), renderContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
14899
14886
|
" ",
|
|
14900
|
-
doubleLineList.map((item, index) => /* @__PURE__ */
|
|
14901
|
-
(item == null ? void 0 : item[0]) && /* @__PURE__ */
|
|
14902
|
-
(item == null ? void 0 : item[1]) && /* @__PURE__ */
|
|
14887
|
+
doubleLineList.map((item, index) => /* @__PURE__ */ jsxs("div", { className: styles$9.statisticListColumn, children: [
|
|
14888
|
+
(item == null ? void 0 : item[0]) && /* @__PURE__ */ jsx(CopyableStatisticItem, { ...item == null ? void 0 : item[0] }, item == null ? void 0 : item[0].name),
|
|
14889
|
+
(item == null ? void 0 : item[1]) && /* @__PURE__ */ jsx(CopyableStatisticItem, { ...item == null ? void 0 : item[1] }, item == null ? void 0 : item[1].name)
|
|
14903
14890
|
] }, `stat-col-${index}`)),
|
|
14904
14891
|
" "
|
|
14905
14892
|
] });
|
|
14906
14893
|
} else
|
|
14907
|
-
renderContent = /* @__PURE__ */
|
|
14908
|
-
return show && /* @__PURE__ */
|
|
14894
|
+
renderContent = /* @__PURE__ */ jsx(Fragment, { children: showList.map((item) => /* @__PURE__ */ jsx(CopyableStatisticItem, { ...item }, item.name)) });
|
|
14895
|
+
return show && /* @__PURE__ */ jsxs(
|
|
14909
14896
|
"div",
|
|
14910
14897
|
{
|
|
14911
14898
|
className: clsx(styles$9.statusBar, {
|
|
14912
14899
|
[styles$9.singleMode]: isSingle
|
|
14913
14900
|
}),
|
|
14914
14901
|
children: [
|
|
14915
|
-
/* @__PURE__ */
|
|
14916
|
-
/* @__PURE__ */
|
|
14902
|
+
/* @__PURE__ */ jsx("div", { className: clsx(styles$9.statisticList), children: renderContent }),
|
|
14903
|
+
/* @__PURE__ */ jsx("div", { className: styles$9.statusBarDiv })
|
|
14917
14904
|
]
|
|
14918
14905
|
}
|
|
14919
14906
|
);
|
|
14920
14907
|
}, "StatusBar");
|
|
14921
14908
|
function RenderSheetFooter() {
|
|
14922
|
-
const menuManagerService = useDependency(IMenuManagerService)
|
|
14923
|
-
|
|
14924
|
-
|
|
14925
|
-
|
|
14909
|
+
const menuManagerService = useDependency(IMenuManagerService);
|
|
14910
|
+
if (!useActiveWorkbook()) return null;
|
|
14911
|
+
const footerMenus = menuManagerService.getMenuByPositionKey(ContextMenuPosition.FOOTER_MENU);
|
|
14912
|
+
return /* @__PURE__ */ jsxs("section", { className: styles$l.sheetContainer, "data-range-selector": !0, children: [
|
|
14913
|
+
/* @__PURE__ */ jsx(SheetBar, {}),
|
|
14914
|
+
/* @__PURE__ */ jsx(StatusBar, {}),
|
|
14926
14915
|
footerMenus.map((item) => {
|
|
14927
14916
|
var _a61;
|
|
14928
|
-
return (_a61 = item.children) == null ? void 0 : _a61.map((child) => (child == null ? void 0 : child.item) && /* @__PURE__ */
|
|
14917
|
+
return (_a61 = item.children) == null ? void 0 : _a61.map((child) => (child == null ? void 0 : child.item) && /* @__PURE__ */ jsx(
|
|
14929
14918
|
ToolbarItem,
|
|
14930
14919
|
{
|
|
14931
14920
|
align: {
|
|
@@ -14936,18 +14925,18 @@ function RenderSheetFooter() {
|
|
|
14936
14925
|
child.key
|
|
14937
14926
|
));
|
|
14938
14927
|
}),
|
|
14939
|
-
/* @__PURE__ */
|
|
14940
|
-
] })
|
|
14928
|
+
/* @__PURE__ */ jsx(CountBar, {})
|
|
14929
|
+
] });
|
|
14941
14930
|
}
|
|
14942
14931
|
__name(RenderSheetFooter, "RenderSheetFooter");
|
|
14943
14932
|
function RenderSheetHeader() {
|
|
14944
|
-
return useHasWorkbook() ? /* @__PURE__ */
|
|
14933
|
+
return useHasWorkbook() ? /* @__PURE__ */ jsx(FormulaBar, {}) : null;
|
|
14945
14934
|
}
|
|
14946
14935
|
__name(RenderSheetHeader, "RenderSheetHeader");
|
|
14947
14936
|
function RenderSheetContent() {
|
|
14948
|
-
return useHasWorkbook() ? /* @__PURE__ */
|
|
14949
|
-
/* @__PURE__ */
|
|
14950
|
-
/* @__PURE__ */
|
|
14937
|
+
return useHasWorkbook() ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
14938
|
+
/* @__PURE__ */ jsx(EditorContainer, {}),
|
|
14939
|
+
/* @__PURE__ */ jsx(OperateContainer, {})
|
|
14951
14940
|
] }) : null;
|
|
14952
14941
|
}
|
|
14953
14942
|
__name(RenderSheetContent, "RenderSheetContent");
|
|
@@ -17378,16 +17367,16 @@ function CellAlert({ popup }) {
|
|
|
17378
17367
|
if (!alert)
|
|
17379
17368
|
return null;
|
|
17380
17369
|
const { type, title, message } = alert, iconMap = {
|
|
17381
|
-
[CellAlertType.ERROR]: /* @__PURE__ */
|
|
17382
|
-
[CellAlertType.INFO]: /* @__PURE__ */
|
|
17383
|
-
[CellAlertType.WARNING]: /* @__PURE__ */
|
|
17370
|
+
[CellAlertType.ERROR]: /* @__PURE__ */ jsx(ErrorSingle, { className: clsx(styles$8.cellAlertIcon, styles$8.cellAlertIconError) }),
|
|
17371
|
+
[CellAlertType.INFO]: /* @__PURE__ */ jsx(WarningSingle, { className: clsx(styles$8.cellAlertIcon, styles$8.cellAlertIconInfo) }),
|
|
17372
|
+
[CellAlertType.WARNING]: /* @__PURE__ */ jsx(WarningSingle, { className: clsx(styles$8.cellAlertIcon, styles$8.cellAlertIconWarning) })
|
|
17384
17373
|
};
|
|
17385
|
-
return /* @__PURE__ */
|
|
17386
|
-
/* @__PURE__ */
|
|
17374
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$8.cellAlert, children: [
|
|
17375
|
+
/* @__PURE__ */ jsxs("div", { className: styles$8.cellAlertTitle, children: [
|
|
17387
17376
|
type ? iconMap[type] : null,
|
|
17388
17377
|
title
|
|
17389
17378
|
] }),
|
|
17390
|
-
/* @__PURE__ */
|
|
17379
|
+
/* @__PURE__ */ jsx("div", { className: styles$8.cellAlertContent, children: message })
|
|
17391
17380
|
] });
|
|
17392
17381
|
}
|
|
17393
17382
|
__name(CellAlert, "CellAlert");
|
|
@@ -17467,7 +17456,7 @@ const sheetPasteOptionsWrapper = "univer-sheet-paste-options-wrapper", sheetPast
|
|
|
17467
17456
|
const iconVisible = menuHovered || menuVisible, handleClick = /* @__PURE__ */ __name((type) => {
|
|
17468
17457
|
commandService.executeCommand(SheetOptionalPasteCommand.id, { type });
|
|
17469
17458
|
}, "handleClick");
|
|
17470
|
-
return /* @__PURE__ */
|
|
17459
|
+
return /* @__PURE__ */ jsx(
|
|
17471
17460
|
"div",
|
|
17472
17461
|
{
|
|
17473
17462
|
className: styles$7.sheetPasteOptionsWrapper,
|
|
@@ -17477,8 +17466,8 @@ const sheetPasteOptionsWrapper = "univer-sheet-paste-options-wrapper", sheetPast
|
|
|
17477
17466
|
},
|
|
17478
17467
|
onMouseEnter: /* @__PURE__ */ __name(() => setMenuHovered(!0), "onMouseEnter"),
|
|
17479
17468
|
onMouseLeave: /* @__PURE__ */ __name(() => setMenuHovered(!1), "onMouseLeave"),
|
|
17480
|
-
children: /* @__PURE__ */
|
|
17481
|
-
/* @__PURE__ */
|
|
17469
|
+
children: /* @__PURE__ */ jsxs(DropdownProvider, { children: [
|
|
17470
|
+
/* @__PURE__ */ jsx(DropdownTrigger, { children: /* @__PURE__ */ jsxs(
|
|
17482
17471
|
"div",
|
|
17483
17472
|
{
|
|
17484
17473
|
className: styles$7.sheetPasteOptionsIconWrapper,
|
|
@@ -17486,33 +17475,33 @@ const sheetPasteOptionsWrapper = "univer-sheet-paste-options-wrapper", sheetPast
|
|
|
17486
17475
|
setMenuVisible(!menuVisible);
|
|
17487
17476
|
}, "onClick"),
|
|
17488
17477
|
children: [
|
|
17489
|
-
/* @__PURE__ */
|
|
17478
|
+
/* @__PURE__ */ jsx(
|
|
17490
17479
|
PasteSpecial,
|
|
17491
17480
|
{
|
|
17492
17481
|
style: { color: "#35322B" },
|
|
17493
17482
|
extend: { colorChannel1: "rgb(var(--green-700))" }
|
|
17494
17483
|
}
|
|
17495
17484
|
),
|
|
17496
|
-
iconVisible && /* @__PURE__ */
|
|
17485
|
+
iconVisible && /* @__PURE__ */ jsx(MoreDownSingle, {})
|
|
17497
17486
|
]
|
|
17498
17487
|
}
|
|
17499
17488
|
) }),
|
|
17500
|
-
/* @__PURE__ */
|
|
17489
|
+
/* @__PURE__ */ jsx(
|
|
17501
17490
|
DropdownOverlay,
|
|
17502
17491
|
{
|
|
17503
17492
|
className: clsx(styles$7.sheetPasteOptionsMenu, `
|
|
17504
17493
|
univer-border univer-border-gray-200 univer-border-solid
|
|
17505
17494
|
`),
|
|
17506
|
-
children: /* @__PURE__ */
|
|
17495
|
+
children: /* @__PURE__ */ jsx("ul", { children: SheetPasteOptions.map((item) => {
|
|
17507
17496
|
const itemType = PREDEFINED_HOOK_NAME[item.value], selected = (pasteOptionsCache == null ? void 0 : pasteOptionsCache.pasteType) === itemType;
|
|
17508
|
-
return /* @__PURE__ */
|
|
17497
|
+
return /* @__PURE__ */ jsxs(
|
|
17509
17498
|
"li",
|
|
17510
17499
|
{
|
|
17511
17500
|
onClick: /* @__PURE__ */ __name(() => handleClick(item.value), "onClick"),
|
|
17512
17501
|
className: clsx(styles$7.sheetPasteOptionsMenuItem, "hover:univer-bg-neutral-100"),
|
|
17513
17502
|
children: [
|
|
17514
|
-
/* @__PURE__ */
|
|
17515
|
-
/* @__PURE__ */
|
|
17503
|
+
/* @__PURE__ */ jsx("span", { children: selected && /* @__PURE__ */ jsx(CheckMarkSingle, { className: styles$7.sheetPasteOptionsMenuItemIcon, style: { color: "rgb(var(--green-700, #409f11))" } }) }),
|
|
17504
|
+
/* @__PURE__ */ jsx("div", { className: clsx(styles$7.sheetPasteOptionsMenuItemTitle, "univer-text-gray-700"), children: localeService.t(item.label) })
|
|
17516
17505
|
]
|
|
17517
17506
|
},
|
|
17518
17507
|
item.value
|
|
@@ -19232,11 +19221,11 @@ const mobileSheetBarContainer = "univer-mobile-sheet-bar-container", mobileSheet
|
|
|
19232
19221
|
};
|
|
19233
19222
|
function MobileSheetBar() {
|
|
19234
19223
|
const workbook = useActiveWorkbook();
|
|
19235
|
-
return workbook ? /* @__PURE__ */
|
|
19224
|
+
return workbook ? /* @__PURE__ */ jsx(MobileSheetBarImpl, { workbook }) : null;
|
|
19236
19225
|
}
|
|
19237
19226
|
__name(MobileSheetBar, "MobileSheetBar");
|
|
19238
19227
|
function MobileSheetBarImpl(props) {
|
|
19239
|
-
const { workbook } = props, [sheetList, setSheetList] = useState([]), [activeKey, setActiveKey] = useState(""), tabMapRef =
|
|
19228
|
+
const { workbook } = props, [sheetList, setSheetList] = useState([]), [activeKey, setActiveKey] = useState(""), tabMapRef = useRef(/* @__PURE__ */ new Map()), commandService = useDependency(ICommandService), updateSheetItems = useCallback(() => {
|
|
19240
19229
|
const currentSubUnitId = workbook.getActiveSheet().getSheetId(), sheets = workbook.getSheets(), activeSheet = workbook.getActiveSheet(), sheetListItems = sheets.filter((sheet) => !sheet.isSheetHidden()).map((sheet, index) => {
|
|
19241
19230
|
var _a61;
|
|
19242
19231
|
return {
|
|
@@ -19274,7 +19263,7 @@ function MobileSheetBarImpl(props) {
|
|
|
19274
19263
|
}
|
|
19275
19264
|
});
|
|
19276
19265
|
return () => disposable.dispose();
|
|
19277
|
-
}, [commandService, updateSheetItems]), /* @__PURE__ */
|
|
19266
|
+
}, [commandService, updateSheetItems]), /* @__PURE__ */ jsx("div", { className: styles$6.mobileSheetBarContainer, children: /* @__PURE__ */ jsx("div", { className: styles$6.mobileSheetBarSlider, children: sheetList.map((sheet) => /* @__PURE__ */ jsx(
|
|
19278
19267
|
"div",
|
|
19279
19268
|
{
|
|
19280
19269
|
className: clsx(
|
|
@@ -19284,7 +19273,9 @@ function MobileSheetBarImpl(props) {
|
|
|
19284
19273
|
}
|
|
19285
19274
|
),
|
|
19286
19275
|
onClick: /* @__PURE__ */ __name(() => onTabClick(sheet.sheetId), "onClick"),
|
|
19287
|
-
ref: /* @__PURE__ */ __name((element2) =>
|
|
19276
|
+
ref: /* @__PURE__ */ __name((element2) => {
|
|
19277
|
+
tabMapRef.current.set(sheet.sheetId, element2);
|
|
19278
|
+
}, "ref"),
|
|
19288
19279
|
children: sheet.label
|
|
19289
19280
|
},
|
|
19290
19281
|
sheet.sheetId
|
|
@@ -20188,8 +20179,8 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20188
20179
|
if (!workbook || !worksheet)
|
|
20189
20180
|
return null;
|
|
20190
20181
|
const unitId = workbook.getUnitId(), subUnitId = worksheet.getSheetId();
|
|
20191
|
-
return /* @__PURE__ */
|
|
20192
|
-
/* @__PURE__ */
|
|
20182
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$5.sheetPermissionPanelFooter, children: [
|
|
20183
|
+
/* @__PURE__ */ jsx(
|
|
20193
20184
|
Button,
|
|
20194
20185
|
{
|
|
20195
20186
|
type: "primary",
|
|
@@ -20298,7 +20289,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20298
20289
|
children: localeService.t("permission.button.confirm")
|
|
20299
20290
|
}
|
|
20300
20291
|
),
|
|
20301
|
-
/* @__PURE__ */
|
|
20292
|
+
/* @__PURE__ */ jsx(
|
|
20302
20293
|
Button,
|
|
20303
20294
|
{
|
|
20304
20295
|
className: styles$5.sheetPermissionPanelFooterCancel,
|
|
@@ -20326,8 +20317,8 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20326
20317
|
}), rangeErrorString = checkRangeValid(injector, transformedRange, permissionId, unitId2, subUnitId2);
|
|
20327
20318
|
onRangesChange(transformedRange, rangeErrorString);
|
|
20328
20319
|
}, "handleRangeChange");
|
|
20329
|
-
return /* @__PURE__ */
|
|
20330
|
-
/* @__PURE__ */
|
|
20320
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20321
|
+
/* @__PURE__ */ jsx(FormLayout, { className: styles$5.sheetPermissionPanelTitle, label: localeService.t("permission.panel.protectedRange"), children: RangeSelector && /* @__PURE__ */ jsx(
|
|
20331
20322
|
RangeSelector,
|
|
20332
20323
|
{
|
|
20333
20324
|
unitId,
|
|
@@ -20340,7 +20331,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20340
20331
|
actions: rangeSelectorRef.current
|
|
20341
20332
|
}
|
|
20342
20333
|
) }),
|
|
20343
|
-
/* @__PURE__ */
|
|
20334
|
+
/* @__PURE__ */ jsx(FormLayout, { className: styles$5.sheetPermissionPanelTitle, label: localeService.t("permission.panel.permissionDirection"), children: /* @__PURE__ */ jsx(
|
|
20344
20335
|
Input,
|
|
20345
20336
|
{
|
|
20346
20337
|
value: desc,
|
|
@@ -20367,8 +20358,8 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20367
20358
|
return () => {
|
|
20368
20359
|
activeSheetSubscribe.unsubscribe();
|
|
20369
20360
|
};
|
|
20370
|
-
}, []), /* @__PURE__ */
|
|
20371
|
-
/* @__PURE__ */
|
|
20361
|
+
}, []), /* @__PURE__ */ jsxs("div", { className: styles$5.permissionPanelDetailWrapper, children: [
|
|
20362
|
+
/* @__PURE__ */ jsx(
|
|
20372
20363
|
PermissionDetailMainPart,
|
|
20373
20364
|
{
|
|
20374
20365
|
onFocus: /* @__PURE__ */ __name(() => isFocusRangeSelectorSet(!0), "onFocus"),
|
|
@@ -20384,7 +20375,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20384
20375
|
rangeSelectorRef: rangeSelectorActionsRef
|
|
20385
20376
|
}
|
|
20386
20377
|
),
|
|
20387
|
-
/* @__PURE__ */
|
|
20378
|
+
/* @__PURE__ */ jsx(
|
|
20388
20379
|
ComponentContainer,
|
|
20389
20380
|
{
|
|
20390
20381
|
components: PermissionDetailUserPart2,
|
|
@@ -20398,7 +20389,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20398
20389
|
},
|
|
20399
20390
|
"user-part"
|
|
20400
20391
|
),
|
|
20401
|
-
/* @__PURE__ */
|
|
20392
|
+
/* @__PURE__ */ jsx(
|
|
20402
20393
|
PermissionDetailFooterPart,
|
|
20403
20394
|
{
|
|
20404
20395
|
permissionId: activeRule.permissionId,
|
|
@@ -20526,18 +20517,18 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20526
20517
|
}, "handleEdit"), handleChangeHeaderType = /* @__PURE__ */ __name((isCurrentSheet2) => {
|
|
20527
20518
|
setIsCurrentSheet(isCurrentSheet2);
|
|
20528
20519
|
}, "handleChangeHeaderType"), hasSetProtectPermission = (_a61 = permissionService.getPermissionPoint(new WorkbookCreateProtectPermission(unitId).id)) == null ? void 0 : _a61.value;
|
|
20529
|
-
return /* @__PURE__ */
|
|
20530
|
-
/* @__PURE__ */
|
|
20531
|
-
/* @__PURE__ */
|
|
20532
|
-
/* @__PURE__ */
|
|
20533
|
-
isCurrentSheet && /* @__PURE__ */
|
|
20520
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListPanelWrapper, children: [
|
|
20521
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListPanelHeader, children: [
|
|
20522
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListPanelHeaderType, onClick: /* @__PURE__ */ __name(() => handleChangeHeaderType(!0), "onClick"), children: [
|
|
20523
|
+
/* @__PURE__ */ jsx("div", { className: clsx({ [styles$4.sheetPermissionListPanelHeaderSelect]: isCurrentSheet }), children: localeService.t("permission.panel.currentSheet") }),
|
|
20524
|
+
isCurrentSheet && /* @__PURE__ */ jsx("div", { className: styles$4.sheetPermissionListPanelHeaderTypeBottom })
|
|
20534
20525
|
] }),
|
|
20535
|
-
/* @__PURE__ */
|
|
20536
|
-
/* @__PURE__ */
|
|
20537
|
-
!isCurrentSheet && /* @__PURE__ */
|
|
20526
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListPanelHeaderType, onClick: /* @__PURE__ */ __name(() => handleChangeHeaderType(!1), "onClick"), children: [
|
|
20527
|
+
/* @__PURE__ */ jsx("div", { className: clsx({ [styles$4.sheetPermissionListPanelHeaderSelect]: !isCurrentSheet }), children: localeService.t("permission.panel.allSheet") }),
|
|
20528
|
+
!isCurrentSheet && /* @__PURE__ */ jsx("div", { className: styles$4.sheetPermissionListPanelHeaderTypeBottom })
|
|
20538
20529
|
] })
|
|
20539
20530
|
] }),
|
|
20540
|
-
(ruleList == null ? void 0 : ruleList.length) > 0 ? /* @__PURE__ */
|
|
20531
|
+
(ruleList == null ? void 0 : ruleList.length) > 0 ? /* @__PURE__ */ jsx("div", { className: styles$4.sheetPermissionListPanelContent, children: ruleList == null ? void 0 : ruleList.map((item) => {
|
|
20541
20532
|
var _a62, _b, _c, _d, _e;
|
|
20542
20533
|
const rule = allRuleMap.get(item.objectID);
|
|
20543
20534
|
if (!rule)
|
|
@@ -20552,7 +20543,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20552
20543
|
}).filter((r2) => !!r2).join(",") : "";
|
|
20553
20544
|
ruleName = `${targetName}(${rangeStr})`;
|
|
20554
20545
|
} else rule.unitType === L.Worksheet && (ruleName = targetName || "");
|
|
20555
|
-
return /* @__PURE__ */
|
|
20546
|
+
return /* @__PURE__ */ jsxs(
|
|
20556
20547
|
"div",
|
|
20557
20548
|
{
|
|
20558
20549
|
className: styles$4.sheetPermissionListItem,
|
|
@@ -20573,35 +20564,35 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20573
20564
|
}, "onMouseMove"),
|
|
20574
20565
|
onMouseLeave: /* @__PURE__ */ __name(() => currentRuleRangesSet([]), "onMouseLeave"),
|
|
20575
20566
|
children: [
|
|
20576
|
-
/* @__PURE__ */
|
|
20577
|
-
/* @__PURE__ */
|
|
20578
|
-
(hasManagerPermission || hasDeletePermission) && /* @__PURE__ */
|
|
20579
|
-
hasManagerPermission && /* @__PURE__ */
|
|
20580
|
-
hasDeletePermission && /* @__PURE__ */
|
|
20567
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListItemHeader, children: [
|
|
20568
|
+
/* @__PURE__ */ jsx(Tooltip, { title: ruleName, children: /* @__PURE__ */ jsx("div", { className: styles$4.sheetPermissionListItemHeaderName, children: ruleName }) }),
|
|
20569
|
+
(hasManagerPermission || hasDeletePermission) && /* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListItemHeaderOperator, children: [
|
|
20570
|
+
hasManagerPermission && /* @__PURE__ */ jsx(Tooltip, { title: localeService.t("permission.panel.edit"), children: /* @__PURE__ */ jsx("div", { className: styles$4.sheetPermissionListItemHeaderIcon, onClick: /* @__PURE__ */ __name(() => handleEdit(rule), "onClick"), children: /* @__PURE__ */ jsx(WriteSingle, {}) }) }),
|
|
20571
|
+
hasDeletePermission && /* @__PURE__ */ jsx(Tooltip, { title: localeService.t("permission.panel.delete"), children: /* @__PURE__ */ jsx("div", { className: styles$4.sheetPermissionListItemHeaderIcon, onClick: /* @__PURE__ */ __name(() => handleDelete(rule), "onClick"), children: /* @__PURE__ */ jsx(DeleteSingle, {}) }) })
|
|
20581
20572
|
] })
|
|
20582
20573
|
] }),
|
|
20583
|
-
/* @__PURE__ */
|
|
20584
|
-
/* @__PURE__ */
|
|
20585
|
-
/* @__PURE__ */
|
|
20586
|
-
/* @__PURE__ */
|
|
20587
|
-
/* @__PURE__ */
|
|
20588
|
-
/* @__PURE__ */
|
|
20574
|
+
/* @__PURE__ */ jsx("div", { className: styles$4.sheetPermissionListItemSplit }),
|
|
20575
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListItemContent, children: [
|
|
20576
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListItemContentEdit, children: [
|
|
20577
|
+
/* @__PURE__ */ jsx(Tooltip, { title: (_d = (_c = item.creator) == null ? void 0 : _c.name) != null ? _d : "", children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Avatar, { src: (_e = item.creator) == null ? void 0 : _e.avatar, style: { marginRight: 6 }, size: 24 }) }) }),
|
|
20578
|
+
/* @__PURE__ */ jsx("span", { className: styles$4.sheetPermissionListItemContentTitle, children: localeService.t("permission.panel.created") }),
|
|
20579
|
+
/* @__PURE__ */ jsx("span", { className: styles$4.sheetPermissionListItemContentSub, children: editPermission ? `${localeService.t("permission.panel.iCanEdit")}` : `${localeService.t("permission.panel.iCanNotEdit")}` })
|
|
20589
20580
|
] }),
|
|
20590
|
-
/* @__PURE__ */
|
|
20591
|
-
/* @__PURE__ */
|
|
20592
|
-
/* @__PURE__ */
|
|
20581
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListItemContentView, children: [
|
|
20582
|
+
/* @__PURE__ */ jsx("span", { className: styles$4.sheetPermissionListItemContentTitle, children: localeService.t("permission.panel.viewPermission") }),
|
|
20583
|
+
/* @__PURE__ */ jsx("span", { className: styles$4.sheetPermissionListItemContentSub, children: viewPermission ? `${localeService.t("permission.panel.iCanView")}` : `${localeService.t("permission.panel.iCanNotView")}` })
|
|
20593
20584
|
] }),
|
|
20594
|
-
rule.description && /* @__PURE__ */
|
|
20585
|
+
rule.description && /* @__PURE__ */ jsx(Tooltip, { title: rule.description, children: /* @__PURE__ */ jsx("div", { className: styles$4.sheetPermissionListItemContentDesc, children: rule.description }) })
|
|
20595
20586
|
] })
|
|
20596
20587
|
]
|
|
20597
20588
|
},
|
|
20598
20589
|
item.objectID
|
|
20599
20590
|
);
|
|
20600
|
-
}) }) : /* @__PURE__ */
|
|
20601
|
-
/* @__PURE__ */
|
|
20602
|
-
/* @__PURE__ */
|
|
20591
|
+
}) }) : /* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListEmpty, children: [
|
|
20592
|
+
/* @__PURE__ */ jsx("img", { width: 240, height: 120, src: panelListEmptyBase64, alt: "" }),
|
|
20593
|
+
/* @__PURE__ */ jsx("p", { className: styles$4.sheetPermissionListEmptyText, children: localeService.t("permission.dialog.listEmpty") })
|
|
20603
20594
|
] }),
|
|
20604
|
-
hasSetProtectPermission && /* @__PURE__ */
|
|
20595
|
+
hasSetProtectPermission && /* @__PURE__ */ jsx("div", { className: styles$4.sheetPermissionPanelAddWrapper, children: /* @__PURE__ */ jsxs(
|
|
20605
20596
|
Button,
|
|
20606
20597
|
{
|
|
20607
20598
|
className: styles$4.sheetPermissionPanelAddButton,
|
|
@@ -20618,7 +20609,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20618
20609
|
sidebarService.open(sidebarProps);
|
|
20619
20610
|
}, "onClick"),
|
|
20620
20611
|
children: [
|
|
20621
|
-
/* @__PURE__ */
|
|
20612
|
+
/* @__PURE__ */ jsx("div", { children: "+ " }),
|
|
20622
20613
|
localeService.t("permission.button.addNewPermission")
|
|
20623
20614
|
]
|
|
20624
20615
|
}
|
|
@@ -20631,7 +20622,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20631
20622
|
const target = getSheetCommandTarget(univerInstanceService);
|
|
20632
20623
|
if (!target) return null;
|
|
20633
20624
|
const { worksheet } = target, key = ((_a61 = sheetsSelectionsService.getCurrentSelections()) == null ? void 0 : _a61.map((selection) => selection.range)).reduce((acc, range) => acc + serializeRangeWithSheet(worksheet.getName(), range), "");
|
|
20634
|
-
return showDetail ? /* @__PURE__ */
|
|
20625
|
+
return showDetail ? /* @__PURE__ */ jsx(
|
|
20635
20626
|
SheetPermissionPanelDetail,
|
|
20636
20627
|
{
|
|
20637
20628
|
fromSheetBar,
|
|
@@ -20639,16 +20630,16 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20639
20630
|
oldRule
|
|
20640
20631
|
},
|
|
20641
20632
|
fromSheetBar ? "sheet-bar" : "normal"
|
|
20642
|
-
) : /* @__PURE__ */
|
|
20633
|
+
) : /* @__PURE__ */ jsx(SheetPermissionPanelList, {}, key);
|
|
20643
20634
|
}, "SheetPermissionPanel"), spinContainer = "univer-spin-container", spinOverlay = "univer-spin-overlay", spinner = "univer-spinner", spin = "univer-spin", contentBlur = "univer-content-blur", styles$3 = {
|
|
20644
20635
|
spinContainer,
|
|
20645
20636
|
spinOverlay,
|
|
20646
20637
|
spinner,
|
|
20647
20638
|
spin,
|
|
20648
20639
|
contentBlur
|
|
20649
|
-
}, Spin = /* @__PURE__ */ __name(({ loading, children }) => /* @__PURE__ */
|
|
20650
|
-
loading && /* @__PURE__ */
|
|
20651
|
-
/* @__PURE__ */
|
|
20640
|
+
}, Spin = /* @__PURE__ */ __name(({ loading, children }) => /* @__PURE__ */ jsxs("div", { className: styles$3.spinContainer, children: [
|
|
20641
|
+
loading && /* @__PURE__ */ jsx("div", { className: styles$3.spinOverlay, children: /* @__PURE__ */ jsx("div", { className: styles$3.spinner }) }),
|
|
20642
|
+
/* @__PURE__ */ jsx("div", { className: loading ? styles$3.contentBlur : "", children })
|
|
20652
20643
|
] }), "Spin"), sheetPermissionDialogWrapper = "univer-sheet-permission-dialog-wrapper", sheetPermissionDialogSplit = "univer-sheet-permission-dialog-split", sheetPermissionDialogItem = "univer-sheet-permission-dialog-item", sheetPermissionUserDialogFooter$1 = "univer-sheet-permission-user-dialog-footer", sheetPermissionUserDialogFooterConfirm$1 = "univer-sheet-permission-user-dialog-footer-confirm", sheetPermissionUserDialogButton$1 = "univer-sheet-permission-user-dialog-button", styles$2 = {
|
|
20653
20644
|
sheetPermissionDialogWrapper,
|
|
20654
20645
|
sheetPermissionDialogSplit,
|
|
@@ -20737,13 +20728,13 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20737
20728
|
}
|
|
20738
20729
|
}));
|
|
20739
20730
|
}, "handleChangeActionPermission");
|
|
20740
|
-
return /* @__PURE__ */
|
|
20741
|
-
/* @__PURE__ */
|
|
20731
|
+
return /* @__PURE__ */ jsx(Spin, { loading, children: /* @__PURE__ */ jsxs("div", { className: styles$2.sheetPermissionDialogWrapper, children: [
|
|
20732
|
+
/* @__PURE__ */ jsx("div", { className: styles$2.sheetPermissionDialogSplit }),
|
|
20742
20733
|
Object.keys(permissionMap).map((action) => {
|
|
20743
20734
|
const actionItem = permissionMap[action], { text, allowed } = actionItem;
|
|
20744
|
-
return /* @__PURE__ */
|
|
20745
|
-
/* @__PURE__ */
|
|
20746
|
-
/* @__PURE__ */
|
|
20735
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$2.sheetPermissionDialogItem, children: [
|
|
20736
|
+
/* @__PURE__ */ jsx("div", { children: text }),
|
|
20737
|
+
/* @__PURE__ */ jsx(
|
|
20747
20738
|
Switch,
|
|
20748
20739
|
{
|
|
20749
20740
|
defaultChecked: allowed,
|
|
@@ -20760,9 +20751,9 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20760
20751
|
)
|
|
20761
20752
|
] }, text);
|
|
20762
20753
|
}),
|
|
20763
|
-
/* @__PURE__ */
|
|
20764
|
-
/* @__PURE__ */
|
|
20765
|
-
/* @__PURE__ */
|
|
20754
|
+
/* @__PURE__ */ jsx("div", { className: styles$2.sheetPermissionDialogSplit }),
|
|
20755
|
+
/* @__PURE__ */ jsxs("div", { className: styles$2.sheetPermissionUserDialogFooter, children: [
|
|
20756
|
+
/* @__PURE__ */ jsx(
|
|
20766
20757
|
Button,
|
|
20767
20758
|
{
|
|
20768
20759
|
className: styles$2.sheetPermissionUserDialogButton,
|
|
@@ -20772,7 +20763,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20772
20763
|
children: localeService.t("permission.button.cancel")
|
|
20773
20764
|
}
|
|
20774
20765
|
),
|
|
20775
|
-
/* @__PURE__ */
|
|
20766
|
+
/* @__PURE__ */ jsx(
|
|
20776
20767
|
Button,
|
|
20777
20768
|
{
|
|
20778
20769
|
type: "primary",
|
|
@@ -20816,8 +20807,8 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20816
20807
|
setSelectUserInfo(newSelectUserInfo);
|
|
20817
20808
|
}
|
|
20818
20809
|
}, "handleChangeUser");
|
|
20819
|
-
return /* @__PURE__ */
|
|
20820
|
-
/* @__PURE__ */
|
|
20810
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$1.sheetPermissionUserDialogWrapper, children: [
|
|
20811
|
+
/* @__PURE__ */ jsx("div", { className: styles$1.sheetPermissionUserDialogSearch, children: /* @__PURE__ */ jsx(
|
|
20821
20812
|
Input,
|
|
20822
20813
|
{
|
|
20823
20814
|
placeholder: localeService.t("permission.dialog.search"),
|
|
@@ -20826,24 +20817,24 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20826
20817
|
onChange: /* @__PURE__ */ __name((v) => setInputValue(v), "onChange")
|
|
20827
20818
|
}
|
|
20828
20819
|
) }),
|
|
20829
|
-
/* @__PURE__ */
|
|
20820
|
+
/* @__PURE__ */ jsx("div", { className: styles$1.sheetPermissionUserList, children: (searchUserList == null ? void 0 : searchUserList.length) > 0 ? /* @__PURE__ */ jsx(Fragment, { children: searchUserList == null ? void 0 : searchUserList.map((item) => {
|
|
20830
20821
|
var _a61, _b, _c;
|
|
20831
|
-
return /* @__PURE__ */
|
|
20832
|
-
/* @__PURE__ */
|
|
20833
|
-
/* @__PURE__ */
|
|
20822
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$1.sheetPermissionUserItem, onClick: /* @__PURE__ */ __name(() => handleChangeUser(item), "onClick"), children: [
|
|
20823
|
+
/* @__PURE__ */ jsx(Avatar, { src: (_a61 = item.subject) == null ? void 0 : _a61.avatar, size: 24 }),
|
|
20824
|
+
/* @__PURE__ */ jsx("div", { className: styles$1.sheetPermissionUserItemName, children: (_b = item.subject) == null ? void 0 : _b.name }),
|
|
20834
20825
|
(selectUserInfo == null ? void 0 : selectUserInfo.findIndex((v) => {
|
|
20835
20826
|
var _a62, _b2;
|
|
20836
20827
|
return ((_a62 = v.subject) == null ? void 0 : _a62.userID) === ((_b2 = item.subject) == null ? void 0 : _b2.userID);
|
|
20837
|
-
})) !== -1 && /* @__PURE__ */
|
|
20828
|
+
})) !== -1 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(CheckMarkSingle, {}) })
|
|
20838
20829
|
] }, (_c = item.subject) == null ? void 0 : _c.userID);
|
|
20839
|
-
}) }) : /* @__PURE__ */
|
|
20840
|
-
/* @__PURE__ */
|
|
20841
|
-
/* @__PURE__ */
|
|
20830
|
+
}) }) : /* @__PURE__ */ jsxs("div", { className: styles$1.sheetPermissionUserListEmpty, children: [
|
|
20831
|
+
/* @__PURE__ */ jsx("img", { width: 240, height: 120, src: UserEmptyBase64, alt: "" }),
|
|
20832
|
+
/* @__PURE__ */ jsx("p", { className: styles$1.sheetPermissionUserListEmptyText, children: localeService.t("permission.dialog.userEmpty") })
|
|
20842
20833
|
] }) }),
|
|
20843
|
-
/* @__PURE__ */
|
|
20844
|
-
/* @__PURE__ */
|
|
20845
|
-
/* @__PURE__ */
|
|
20846
|
-
/* @__PURE__ */
|
|
20834
|
+
/* @__PURE__ */ jsx("div", { className: styles$1.sheetPermissionSplit }),
|
|
20835
|
+
/* @__PURE__ */ jsxs("div", { className: styles$1.sheetPermissionUserDialogFooter, children: [
|
|
20836
|
+
/* @__PURE__ */ jsx(Button, { className: styles$1.sheetPermissionUserDialogButton, onClick: /* @__PURE__ */ __name(() => dialogService.close(UNIVER_SHEET_PERMISSION_USER_DIALOG_ID), "onClick"), children: localeService.t("permission.button.cancel") }),
|
|
20837
|
+
/* @__PURE__ */ jsx(
|
|
20847
20838
|
Button,
|
|
20848
20839
|
{
|
|
20849
20840
|
type: "primary",
|
|
@@ -20862,10 +20853,10 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20862
20853
|
sheetPermissionAlertDialogButton
|
|
20863
20854
|
}, AlertDialog = /* @__PURE__ */ __name(({ errorMsg }) => {
|
|
20864
20855
|
const localeService = useDependency(LocaleService), dialogService = useDependency(IDialogService);
|
|
20865
|
-
return /* @__PURE__ */
|
|
20866
|
-
/* @__PURE__ */
|
|
20867
|
-
/* @__PURE__ */
|
|
20868
|
-
/* @__PURE__ */
|
|
20856
|
+
return /* @__PURE__ */ jsxs("div", { className: styles.sheetPermissionAlertDialog, children: [
|
|
20857
|
+
/* @__PURE__ */ jsx("h1", { className: styles.sheetPermissionAlertDialogTitle, children: localeService.t("permission.dialog.alert") }),
|
|
20858
|
+
/* @__PURE__ */ jsx("p", { children: errorMsg || localeService.t("permission.dialog.alertContent") }),
|
|
20859
|
+
/* @__PURE__ */ jsx("div", { className: styles.sheetPermissionAlertDialogButton, children: /* @__PURE__ */ jsx(
|
|
20869
20860
|
Button,
|
|
20870
20861
|
{
|
|
20871
20862
|
type: "primary",
|
|
@@ -20991,31 +20982,31 @@ const PermissionDetailUserPart = /* @__PURE__ */ __name((props) => {
|
|
|
20991
20982
|
})).filter((user) => user.role === S.Editor);
|
|
20992
20983
|
selectUserList2.length > 0 && onEditStateChange(EditStateEnum.DesignedUserCanEdit), sheetPermissionUserManagerService.setSelectUserList(selectUserList2), sheetPermissionUserManagerService.setOldCollaboratorList(selectUserList2);
|
|
20993
20984
|
}, "getSelectUserList"))() : (sheetPermissionUserManagerService.setSelectUserList([]), sheetPermissionUserManagerService.setOldCollaboratorList([]));
|
|
20994
|
-
}, []), /* @__PURE__ */
|
|
20995
|
-
/* @__PURE__ */
|
|
20985
|
+
}, []), /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20986
|
+
/* @__PURE__ */ jsx(FormLayout, { className: styles$5.sheetPermissionPanelTitle, label: localeService.t("permission.panel.editPermission"), children: /* @__PURE__ */ jsxs(
|
|
20996
20987
|
RadioGroup,
|
|
20997
20988
|
{
|
|
20998
20989
|
value: editState,
|
|
20999
20990
|
onChange: /* @__PURE__ */ __name((v) => onEditStateChange(v), "onChange"),
|
|
21000
20991
|
className: styles$5.radioGroupVertical,
|
|
21001
20992
|
children: [
|
|
21002
|
-
/* @__PURE__ */
|
|
21003
|
-
/* @__PURE__ */
|
|
20993
|
+
/* @__PURE__ */ jsx(Radio, { value: EditStateEnum.OnlyMe, children: /* @__PURE__ */ jsx("span", { className: styles$5.text, children: localeService.t("permission.panel.onlyICanEdit") }) }),
|
|
20994
|
+
/* @__PURE__ */ jsx(Radio, { value: EditStateEnum.DesignedUserCanEdit, children: /* @__PURE__ */ jsx("span", { className: styles$5.text, children: localeService.t("permission.panel.designedUserCanEdit") }) })
|
|
21004
20995
|
]
|
|
21005
20996
|
}
|
|
21006
20997
|
) }),
|
|
21007
|
-
editState === EditStateEnum.DesignedUserCanEdit && /* @__PURE__ */
|
|
21008
|
-
/* @__PURE__ */
|
|
21009
|
-
/* @__PURE__ */
|
|
21010
|
-
/* @__PURE__ */
|
|
20998
|
+
editState === EditStateEnum.DesignedUserCanEdit && /* @__PURE__ */ jsxs("div", { className: styles$5.sheetPermissionDesignPersonPanel, children: [
|
|
20999
|
+
/* @__PURE__ */ jsxs("div", { className: styles$5.sheetPermissionDesignPersonPanelHeader, children: [
|
|
21000
|
+
/* @__PURE__ */ jsx("span", { children: localeService.t("permission.panel.designedPerson") }),
|
|
21001
|
+
/* @__PURE__ */ jsx("span", { className: styles$5.sheetPermissionDesignPersonPanelHeaderAdd, onClick: handleAddPerson, children: localeService.t("permission.panel.addPerson") })
|
|
21011
21002
|
] }),
|
|
21012
|
-
/* @__PURE__ */
|
|
21013
|
-
/* @__PURE__ */
|
|
21003
|
+
/* @__PURE__ */ jsx("div", { className: styles$5.sheetPermissionDesignPersonPanelSplit }),
|
|
21004
|
+
/* @__PURE__ */ jsx("div", { className: styles$5.sheetPermissionDesignPersonPanelContent, children: (selectUserList == null ? void 0 : selectUserList.length) > 0 ? selectUserList.map((item) => {
|
|
21014
21005
|
var _a61, _b, _c;
|
|
21015
|
-
return /* @__PURE__ */
|
|
21016
|
-
/* @__PURE__ */
|
|
21017
|
-
/* @__PURE__ */
|
|
21018
|
-
/* @__PURE__ */
|
|
21006
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$5.sheetPermissionDesignPersonPanelContentItem, children: [
|
|
21007
|
+
/* @__PURE__ */ jsx(Avatar, { size: 24, src: (_a61 = item.subject) == null ? void 0 : _a61.avatar }),
|
|
21008
|
+
/* @__PURE__ */ jsx("span", { className: styles$5.sheetPermissionDesignPersonPanelContentItemName, children: (_b = item.subject) == null ? void 0 : _b.name }),
|
|
21009
|
+
/* @__PURE__ */ jsx(
|
|
21019
21010
|
Select,
|
|
21020
21011
|
{
|
|
21021
21012
|
className: styles$5.sheetPermissionDesignPersonPanelContentItemSelect,
|
|
@@ -21033,20 +21024,20 @@ const PermissionDetailUserPart = /* @__PURE__ */ __name((props) => {
|
|
|
21033
21024
|
}
|
|
21034
21025
|
)
|
|
21035
21026
|
] }, (_c = item.subject) == null ? void 0 : _c.userID);
|
|
21036
|
-
}) : /* @__PURE__ */
|
|
21037
|
-
/* @__PURE__ */
|
|
21038
|
-
/* @__PURE__ */
|
|
21027
|
+
}) : /* @__PURE__ */ jsxs("div", { className: styles$5.sheetPermissionUserListEmpty, children: [
|
|
21028
|
+
/* @__PURE__ */ jsx("img", { width: 240, height: 120, src: UserEmptyBase64, alt: "" }),
|
|
21029
|
+
/* @__PURE__ */ jsx("p", { className: styles$5.sheetPermissionUserListEmptyText, children: localeService.t("permission.dialog.userEmpty") })
|
|
21039
21030
|
] }) })
|
|
21040
21031
|
] }),
|
|
21041
|
-
/* @__PURE__ */
|
|
21032
|
+
/* @__PURE__ */ jsx(FormLayout, { className: styles$5.sheetPermissionPanelTitle, label: localeService.t("permission.panel.viewPermission"), children: /* @__PURE__ */ jsxs(
|
|
21042
21033
|
RadioGroup,
|
|
21043
21034
|
{
|
|
21044
21035
|
value: viewState,
|
|
21045
21036
|
onChange: /* @__PURE__ */ __name((v) => onViewStateChange(v), "onChange"),
|
|
21046
21037
|
className: styles$5.radioGroupVertical,
|
|
21047
21038
|
children: [
|
|
21048
|
-
/* @__PURE__ */
|
|
21049
|
-
/* @__PURE__ */
|
|
21039
|
+
/* @__PURE__ */ jsx(Radio, { value: ViewStateEnum.OthersCanView, children: /* @__PURE__ */ jsx("span", { className: styles$5.text, children: localeService.t("permission.panel.othersCanView") }) }),
|
|
21040
|
+
/* @__PURE__ */ jsx(Radio, { value: ViewStateEnum.NoOneElseCanView, children: /* @__PURE__ */ jsx("span", { className: styles$5.text, children: localeService.t("permission.panel.noOneElseCanView") }) })
|
|
21050
21041
|
]
|
|
21051
21042
|
}
|
|
21052
21043
|
) })
|