@univerjs/sheets-ui 0.5.5-nightly.202501211606 → 0.5.5-nightly.202501220324
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/index.js +469 -490
- 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/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) {
|
|
@@ -8531,39 +8532,7 @@ const SetWorksheetColAutoWidthCommand = {
|
|
|
8531
8532
|
redoMutations: [...redos]
|
|
8532
8533
|
}), !0) : !1;
|
|
8533
8534
|
}, "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 = {
|
|
8535
|
+
}, 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
8536
|
sheetsUiContextMenuInput,
|
|
8568
8537
|
sheetsUiContextMenuInputContainer,
|
|
8569
8538
|
sheetsUiContextMenuInputNumber
|
|
@@ -8580,9 +8549,9 @@ const sheetsUiContextMenuInput = "univer-sheets-ui-context-menu-input", sheetsUi
|
|
|
8580
8549
|
function handleKeyDown(e) {
|
|
8581
8550
|
e.key === "Backspace" && e.stopPropagation();
|
|
8582
8551
|
}
|
|
8583
|
-
return __name(handleKeyDown, "handleKeyDown"), /* @__PURE__ */
|
|
8552
|
+
return __name(handleKeyDown, "handleKeyDown"), /* @__PURE__ */ jsxs("div", { className: styles$k.sheetsUiContextMenuInput, children: [
|
|
8584
8553
|
localeService.t(prefix),
|
|
8585
|
-
/* @__PURE__ */
|
|
8554
|
+
/* @__PURE__ */ jsx("span", { className: styles$k.sheetsUiContextMenuInputContainer, onClick: /* @__PURE__ */ __name((e) => e.stopPropagation(), "onClick"), children: /* @__PURE__ */ jsx(
|
|
8586
8555
|
InputNumber,
|
|
8587
8556
|
{
|
|
8588
8557
|
className: styles$k.sheetsUiContextMenuInputNumber,
|
|
@@ -12333,138 +12302,138 @@ const ShowMenuListCommand = {
|
|
|
12333
12302
|
}
|
|
12334
12303
|
return !0;
|
|
12335
12304
|
}, "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__ */
|
|
12305
|
+
}, 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: [
|
|
12306
|
+
/* @__PURE__ */ jsx("path", { d: "M0.98999 1.08218H-0.0100098V0.0821838H0.98999V1.08218Z", fill: "black" }),
|
|
12307
|
+
/* @__PURE__ */ jsx("path", { d: "M5.78992 1.08218H2.78992V0.0821838H5.78992V1.08218Z", fill: "black" }),
|
|
12308
|
+
/* @__PURE__ */ jsx("path", { d: "M7.58984 1.08218H8.58984V0.0821838H7.58984V1.08218Z", fill: "black" }),
|
|
12309
|
+
/* @__PURE__ */ jsx("path", { d: "M14.9152 1.08218H13.9152V0.0821838H14.9152V1.08218Z", fill: "black" }),
|
|
12310
|
+
/* @__PURE__ */ jsx("path", { d: "M16.7151 1.08218H19.7151V0.0821838H16.7151V1.08218Z", fill: "black" }),
|
|
12311
|
+
/* @__PURE__ */ jsx("path", { d: "M22.515 1.08218H21.515V0.0821838H22.515V1.08218Z", fill: "black" }),
|
|
12312
|
+
/* @__PURE__ */ jsx("path", { d: "M27.8405 1.08218H28.8405V0.0821838H27.8405V1.08218Z", fill: "black" }),
|
|
12313
|
+
/* @__PURE__ */ jsx("path", { d: "M33.6404 1.08218H30.6404V0.0821838H33.6404V1.08218Z", fill: "black" }),
|
|
12314
|
+
/* @__PURE__ */ jsx("path", { d: "M35.4403 1.08218H36.4403V0.0821838H35.4403V1.08218Z", fill: "black" }),
|
|
12315
|
+
/* @__PURE__ */ jsx("path", { d: "M42.7657 1.08218H41.7657V0.0821838H42.7657V1.08218Z", fill: "black" }),
|
|
12316
|
+
/* @__PURE__ */ jsx("path", { d: "M44.5657 1.08218H47.5657V0.0821838H44.5657V1.08218Z", fill: "black" }),
|
|
12317
|
+
/* @__PURE__ */ jsx("path", { d: "M50.3656 1.08218H49.3656V0.0821838H50.3656V1.08218Z", fill: "black" }),
|
|
12318
|
+
/* @__PURE__ */ jsx("path", { d: "M55.691 1.08218H56.691V0.0821838H55.691V1.08218Z", fill: "black" }),
|
|
12319
|
+
/* @__PURE__ */ jsx("path", { d: "M61.491 1.08218H58.491V0.0821838H61.491V1.08218Z", fill: "black" }),
|
|
12320
|
+
/* @__PURE__ */ jsx("path", { d: "M63.2909 1.08218H64.2909V0.0821838H63.2909V1.08218Z", fill: "black" }),
|
|
12321
|
+
/* @__PURE__ */ jsx("path", { d: "M70.6163 1.08218H69.6163V0.0821838H70.6163V1.08218Z", fill: "black" }),
|
|
12322
|
+
/* @__PURE__ */ jsx("path", { d: "M72.4163 1.08218H75.4163V0.0821838H72.4163V1.08218Z", fill: "black" }),
|
|
12323
|
+
/* @__PURE__ */ jsx("path", { d: "M78.2162 1.08218H77.2162V0.0821838H78.2162V1.08218Z", fill: "black" }),
|
|
12324
|
+
/* @__PURE__ */ jsx("path", { d: "M83.5416 1.08218H84.5416V0.0821838H83.5416V1.08218Z", fill: "black" }),
|
|
12325
|
+
/* @__PURE__ */ jsx("path", { d: "M89.3416 1.08218H86.3416V0.0821838H89.3416V1.08218Z", fill: "black" }),
|
|
12326
|
+
/* @__PURE__ */ jsx("path", { d: "M91.1415 1.08218H92.1415V0.0821838H91.1415V1.08218Z", fill: "black" }),
|
|
12327
|
+
/* @__PURE__ */ jsx("path", { d: "M98.4669 1.08218H97.4669V0.0821838H98.4669V1.08218Z", fill: "black" }),
|
|
12328
|
+
/* @__PURE__ */ jsx("path", { d: "M100.267 1.08218H103.267V0.0821838H100.267V1.08218Z", fill: "black" }),
|
|
12329
|
+
/* @__PURE__ */ jsx("path", { d: "M106.067 1.08218H105.067V0.0821838H106.067V1.08218Z", fill: "black" }),
|
|
12330
|
+
/* @__PURE__ */ jsx("path", { d: "M111.392 1.08218H112.392V0.0821838H111.392V1.08218Z", fill: "black" }),
|
|
12331
|
+
/* @__PURE__ */ jsx("path", { d: "M117.192 1.08218H114.192V0.0821838H117.192V1.08218Z", fill: "black" }),
|
|
12332
|
+
/* @__PURE__ */ jsx("path", { d: "M118.992 1.08218H119.992V0.0821838H118.992V1.08218Z", fill: "black" })
|
|
12333
|
+
] }), "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: [
|
|
12334
|
+
/* @__PURE__ */ jsx("path", { d: "M-0.0100098 1.15771H0.98999V0.157715H-0.0100098V1.15771Z", fill: "black" }),
|
|
12335
|
+
/* @__PURE__ */ jsx("path", { d: "M2.78992 1.15771H5.78992V0.157715H2.78992V1.15771Z", fill: "black" }),
|
|
12336
|
+
/* @__PURE__ */ jsx("path", { d: "M8.58984 1.15771H7.58984V0.157715H8.58984V1.15771Z", fill: "black" }),
|
|
12337
|
+
/* @__PURE__ */ jsx("path", { d: "M10.3899 1.15771H11.3899V0.157715H10.3899V1.15771Z", fill: "black" }),
|
|
12338
|
+
/* @__PURE__ */ jsx("path", { d: "M19.0903 1.15771H18.0903V0.157715H19.0903V1.15771Z", fill: "black" }),
|
|
12339
|
+
/* @__PURE__ */ jsx("path", { d: "M20.8903 1.15771H23.8903V0.157715H20.8903V1.15771Z", fill: "black" }),
|
|
12340
|
+
/* @__PURE__ */ jsx("path", { d: "M26.6902 1.15771H25.6902V0.157715H26.6902V1.15771Z", fill: "black" }),
|
|
12341
|
+
/* @__PURE__ */ jsx("path", { d: "M28.4902 1.15771H29.4902V0.157715H28.4902V1.15771Z", fill: "black" }),
|
|
12342
|
+
/* @__PURE__ */ jsx("path", { d: "M37.1907 1.15771H36.1907V0.157715H37.1907V1.15771Z", fill: "black" }),
|
|
12343
|
+
/* @__PURE__ */ jsx("path", { d: "M38.9906 1.15771H41.9906V0.157715H38.9906V1.15771Z", fill: "black" }),
|
|
12344
|
+
/* @__PURE__ */ jsx("path", { d: "M44.7905 1.15771H43.7905V0.157715H44.7905V1.15771Z", fill: "black" }),
|
|
12345
|
+
/* @__PURE__ */ jsx("path", { d: "M46.5906 1.15771H47.5906V0.157715H46.5906V1.15771Z", fill: "black" }),
|
|
12346
|
+
/* @__PURE__ */ jsx("path", { d: "M55.291 1.15771H54.291V0.157715H55.291V1.15771Z", fill: "black" }),
|
|
12347
|
+
/* @__PURE__ */ jsx("path", { d: "M57.0909 1.15771H60.0909V0.157715H57.0909V1.15771Z", fill: "black" }),
|
|
12348
|
+
/* @__PURE__ */ jsx("path", { d: "M62.8909 1.15771H61.8909V0.157715H62.8909V1.15771Z", fill: "black" }),
|
|
12349
|
+
/* @__PURE__ */ jsx("path", { d: "M64.6909 1.15771H65.6909V0.157715H64.6909V1.15771Z", fill: "black" }),
|
|
12350
|
+
/* @__PURE__ */ jsx("path", { d: "M73.3914 1.15771H72.3914V0.157715H73.3914V1.15771Z", fill: "black" }),
|
|
12351
|
+
/* @__PURE__ */ jsx("path", { d: "M75.1913 1.15771H78.1913V0.157715H75.1913V1.15771Z", fill: "black" }),
|
|
12352
|
+
/* @__PURE__ */ jsx("path", { d: "M80.9912 1.15771H79.9912V0.157715H80.9912V1.15771Z", fill: "black" }),
|
|
12353
|
+
/* @__PURE__ */ jsx("path", { d: "M82.7913 1.15771H83.7913V0.157715H82.7913V1.15771Z", fill: "black" }),
|
|
12354
|
+
/* @__PURE__ */ jsx("path", { d: "M91.4917 1.15771H90.4917V0.157715H91.4917V1.15771Z", fill: "black" }),
|
|
12355
|
+
/* @__PURE__ */ jsx("path", { d: "M93.2916 1.15771H96.2916V0.157715H93.2916V1.15771Z", fill: "black" }),
|
|
12356
|
+
/* @__PURE__ */ jsx("path", { d: "M99.0916 1.15771H98.0916V0.157715H99.0916V1.15771Z", fill: "black" }),
|
|
12357
|
+
/* @__PURE__ */ jsx("path", { d: "M100.892 1.15771H101.892V0.157715H100.892V1.15771Z", fill: "black" }),
|
|
12358
|
+
/* @__PURE__ */ jsx("path", { d: "M109.592 1.15771H108.592V0.157715H109.592V1.15771Z", fill: "black" }),
|
|
12359
|
+
/* @__PURE__ */ jsx("path", { d: "M111.392 1.15771H114.392V0.157715H111.392V1.15771Z", fill: "black" }),
|
|
12360
|
+
/* @__PURE__ */ jsx("path", { d: "M117.192 1.15771H116.192V0.157715H117.192V1.15771Z", fill: "black" }),
|
|
12361
|
+
/* @__PURE__ */ jsx("path", { d: "M118.992 1.15771H119.992V0.157715H118.992V1.15771Z", fill: "black" })
|
|
12362
|
+
] }), "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: [
|
|
12363
|
+
/* @__PURE__ */ jsx("path", { d: "M-0.00842285 1.22449H2.99158V0.224487H-0.00842285V1.22449Z", fill: "black" }),
|
|
12364
|
+
/* @__PURE__ */ jsx("path", { d: "M6.14941 1.22449H9.14941V0.224487H6.14941V1.22449Z", fill: "black" }),
|
|
12365
|
+
/* @__PURE__ */ jsx("path", { d: "M15.3073 1.22449H12.3073V0.224487H15.3073V1.22449Z", fill: "black" }),
|
|
12366
|
+
/* @__PURE__ */ jsx("path", { d: "M18.4651 1.22449H21.4651V0.224487H18.4651V1.22449Z", fill: "black" }),
|
|
12367
|
+
/* @__PURE__ */ jsx("path", { d: "M27.6229 1.22449H24.6229V0.224487H27.6229V1.22449Z", fill: "black" }),
|
|
12368
|
+
/* @__PURE__ */ jsx("path", { d: "M30.7808 1.22449H33.7808V0.224487H30.7808V1.22449Z", fill: "black" }),
|
|
12369
|
+
/* @__PURE__ */ jsx("path", { d: "M39.9386 1.22449H36.9386V0.224487H39.9386V1.22449Z", fill: "black" }),
|
|
12370
|
+
/* @__PURE__ */ jsx("path", { d: "M43.0964 1.22449H46.0964V0.224487H43.0964V1.22449Z", fill: "black" }),
|
|
12371
|
+
/* @__PURE__ */ jsx("path", { d: "M52.2543 1.22449H49.2543V0.224487H52.2543V1.22449Z", fill: "black" }),
|
|
12372
|
+
/* @__PURE__ */ jsx("path", { d: "M55.4121 1.22449H58.4121V0.224487H55.4121V1.22449Z", fill: "black" }),
|
|
12373
|
+
/* @__PURE__ */ jsx("path", { d: "M64.5699 1.22449H61.5699V0.224487H64.5699V1.22449Z", fill: "black" }),
|
|
12374
|
+
/* @__PURE__ */ jsx("path", { d: "M67.7278 1.22449H70.7278V0.224487H67.7278V1.22449Z", fill: "black" }),
|
|
12375
|
+
/* @__PURE__ */ jsx("path", { d: "M76.8856 1.22449H73.8856V0.224487H76.8856V1.22449Z", fill: "black" }),
|
|
12376
|
+
/* @__PURE__ */ jsx("path", { d: "M80.0435 1.22449H83.0435V0.224487H80.0435V1.22449Z", fill: "black" }),
|
|
12377
|
+
/* @__PURE__ */ jsx("path", { d: "M89.2013 1.22449H86.2013V0.224487H89.2013V1.22449Z", fill: "black" }),
|
|
12378
|
+
/* @__PURE__ */ jsx("path", { d: "M92.3591 1.22449H95.3591V0.224487H92.3591V1.22449Z", fill: "black" }),
|
|
12379
|
+
/* @__PURE__ */ jsx("path", { d: "M101.517 1.22449H98.517V0.224487H101.517V1.22449Z", fill: "black" }),
|
|
12380
|
+
/* @__PURE__ */ jsx("path", { d: "M104.675 1.22449H107.675V0.224487H104.675V1.22449Z", fill: "black" }),
|
|
12381
|
+
/* @__PURE__ */ jsx("path", { d: "M113.833 1.22449H110.833V0.224487H113.833V1.22449Z", fill: "black" }),
|
|
12382
|
+
/* @__PURE__ */ jsx("path", { d: "M116.99 1.22449H119.99V0.224487H116.99V1.22449Z", fill: "black" })
|
|
12383
|
+
] }), "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: [
|
|
12384
|
+
/* @__PURE__ */ jsx("path", { d: "M-0.00976562 1.65707H0.990234V0.657074H-0.00976562V1.65707Z", fill: "black" }),
|
|
12385
|
+
/* @__PURE__ */ jsx("path", { d: "M2.32361 1.65707H3.32361V0.657074H2.32361V1.65707Z", fill: "black" }),
|
|
12386
|
+
/* @__PURE__ */ jsx("path", { d: "M5.65698 1.65707H4.65698V0.657074H5.65698V1.65707Z", fill: "black" }),
|
|
12387
|
+
/* @__PURE__ */ jsx("path", { d: "M6.99036 1.65707H7.99036V0.657074H6.99036V1.65707Z", fill: "black" }),
|
|
12388
|
+
/* @__PURE__ */ jsx("path", { d: "M10.3237 1.65707H9.32373V0.657074H10.3237V1.65707Z", fill: "black" }),
|
|
12389
|
+
/* @__PURE__ */ jsx("path", { d: "M11.6571 1.65707H12.6571V0.657074H11.6571V1.65707Z", fill: "black" }),
|
|
12390
|
+
/* @__PURE__ */ jsx("path", { d: "M14.9905 1.65707H13.9905V0.657074H14.9905V1.65707Z", fill: "black" }),
|
|
12391
|
+
/* @__PURE__ */ jsx("path", { d: "M16.3239 1.65707H17.3239V0.657074H16.3239V1.65707Z", fill: "black" }),
|
|
12392
|
+
/* @__PURE__ */ jsx("path", { d: "M19.6572 1.65707H18.6572V0.657074H19.6572V1.65707Z", fill: "black" }),
|
|
12393
|
+
/* @__PURE__ */ jsx("path", { d: "M20.9906 1.65707H21.9906V0.657074H20.9906V1.65707Z", fill: "black" }),
|
|
12394
|
+
/* @__PURE__ */ jsx("path", { d: "M24.324 1.65707H23.324V0.657074H24.324V1.65707Z", fill: "black" }),
|
|
12395
|
+
/* @__PURE__ */ jsx("path", { d: "M25.6573 1.65707H26.6573V0.657074H25.6573V1.65707Z", fill: "black" }),
|
|
12396
|
+
/* @__PURE__ */ jsx("path", { d: "M28.9907 1.65707H27.9907V0.657074H28.9907V1.65707Z", fill: "black" }),
|
|
12397
|
+
/* @__PURE__ */ jsx("path", { d: "M30.3241 1.65707H31.3241V0.657074H30.3241V1.65707Z", fill: "black" }),
|
|
12398
|
+
/* @__PURE__ */ jsx("path", { d: "M33.6575 1.65707H32.6575V0.657074H33.6575V1.65707Z", fill: "black" }),
|
|
12399
|
+
/* @__PURE__ */ jsx("path", { d: "M34.9908 1.65707H35.9908V0.657074H34.9908V1.65707Z", fill: "black" }),
|
|
12400
|
+
/* @__PURE__ */ jsx("path", { d: "M38.3242 1.65707H37.3242V0.657074H38.3242V1.65707Z", fill: "black" }),
|
|
12401
|
+
/* @__PURE__ */ jsx("path", { d: "M39.6576 1.65707H40.6576V0.657074H39.6576V1.65707Z", fill: "black" }),
|
|
12402
|
+
/* @__PURE__ */ jsx("path", { d: "M42.991 1.65707H41.991V0.657074H42.991V1.65707Z", fill: "black" }),
|
|
12403
|
+
/* @__PURE__ */ jsx("path", { d: "M44.3243 1.65707H45.3243V0.657074H44.3243V1.65707Z", fill: "black" }),
|
|
12404
|
+
/* @__PURE__ */ jsx("path", { d: "M47.6577 1.65707H46.6577V0.657074H47.6577V1.65707Z", fill: "black" }),
|
|
12405
|
+
/* @__PURE__ */ jsx("path", { d: "M48.9911 1.65707H49.9911V0.657074H48.9911V1.65707Z", fill: "black" }),
|
|
12406
|
+
/* @__PURE__ */ jsx("path", { d: "M52.3245 1.65707H51.3245V0.657074H52.3245V1.65707Z", fill: "black" }),
|
|
12407
|
+
/* @__PURE__ */ jsx("path", { d: "M53.6578 1.65707H54.6578V0.657074H53.6578V1.65707Z", fill: "black" }),
|
|
12408
|
+
/* @__PURE__ */ jsx("path", { d: "M56.9912 1.65707H55.9912V0.657074H56.9912V1.65707Z", fill: "black" }),
|
|
12409
|
+
/* @__PURE__ */ jsx("path", { d: "M58.3246 1.65707H59.3246V0.657074H58.3246V1.65707Z", fill: "black" }),
|
|
12410
|
+
/* @__PURE__ */ jsx("path", { d: "M61.658 1.65707H60.658V0.657074H61.658V1.65707Z", fill: "black" }),
|
|
12411
|
+
/* @__PURE__ */ jsx("path", { d: "M62.9913 1.65707H63.9913V0.657074H62.9913V1.65707Z", fill: "black" }),
|
|
12412
|
+
/* @__PURE__ */ jsx("path", { d: "M66.3247 1.65707H65.3247V0.657074H66.3247V1.65707Z", fill: "black" }),
|
|
12413
|
+
/* @__PURE__ */ jsx("path", { d: "M67.6581 1.65707H68.6581V0.657074H67.6581V1.65707Z", fill: "black" }),
|
|
12414
|
+
/* @__PURE__ */ jsx("path", { d: "M70.9915 1.65707H69.9915V0.657074H70.9915V1.65707Z", fill: "black" }),
|
|
12415
|
+
/* @__PURE__ */ jsx("path", { d: "M72.3248 1.65707H73.3248V0.657074H72.3248V1.65707Z", fill: "black" }),
|
|
12416
|
+
/* @__PURE__ */ jsx("path", { d: "M75.6582 1.65707H74.6582V0.657074H75.6582V1.65707Z", fill: "black" }),
|
|
12417
|
+
/* @__PURE__ */ jsx("path", { d: "M76.9916 1.65707H77.9916V0.657074H76.9916V1.65707Z", fill: "black" }),
|
|
12418
|
+
/* @__PURE__ */ jsx("path", { d: "M80.325 1.65707H79.325V0.657074H80.325V1.65707Z", fill: "black" }),
|
|
12419
|
+
/* @__PURE__ */ jsx("path", { d: "M81.6583 1.65707H82.6583V0.657074H81.6583V1.65707Z", fill: "black" }),
|
|
12420
|
+
/* @__PURE__ */ jsx("path", { d: "M84.9917 1.65707H83.9917V0.657074H84.9917V1.65707Z", fill: "black" }),
|
|
12421
|
+
/* @__PURE__ */ jsx("path", { d: "M86.3251 1.65707H87.3251V0.657074H86.3251V1.65707Z", fill: "black" }),
|
|
12422
|
+
/* @__PURE__ */ jsx("path", { d: "M89.6584 1.65707H88.6584V0.657074H89.6584V1.65707Z", fill: "black" }),
|
|
12423
|
+
/* @__PURE__ */ jsx("path", { d: "M90.9918 1.65707H91.9918V0.657074H90.9918V1.65707Z", fill: "black" }),
|
|
12424
|
+
/* @__PURE__ */ jsx("path", { d: "M94.3252 1.65707H93.3252V0.657074H94.3252V1.65707Z", fill: "black" }),
|
|
12425
|
+
/* @__PURE__ */ jsx("path", { d: "M95.6586 1.65707H96.6586V0.657074H95.6586V1.65707Z", fill: "black" }),
|
|
12426
|
+
/* @__PURE__ */ jsx("path", { d: "M98.9919 1.65707H97.9919V0.657074H98.9919V1.65707Z", fill: "black" }),
|
|
12427
|
+
/* @__PURE__ */ jsx("path", { d: "M100.325 1.65707H101.325V0.657074H100.325V1.65707Z", fill: "black" }),
|
|
12428
|
+
/* @__PURE__ */ jsx("path", { d: "M103.659 1.65707H102.659V0.657074H103.659V1.65707Z", fill: "black" }),
|
|
12429
|
+
/* @__PURE__ */ jsx("path", { d: "M104.992 1.65707H105.992V0.657074H104.992V1.65707Z", fill: "black" }),
|
|
12430
|
+
/* @__PURE__ */ jsx("path", { d: "M108.325 1.65707H107.325V0.657074H108.325V1.65707Z", fill: "black" }),
|
|
12431
|
+
/* @__PURE__ */ jsx("path", { d: "M109.659 1.65707H110.659V0.657074H109.659V1.65707Z", fill: "black" }),
|
|
12432
|
+
/* @__PURE__ */ jsx("path", { d: "M112.992 1.65707H111.992V0.657074H112.992V1.65707Z", fill: "black" }),
|
|
12433
|
+
/* @__PURE__ */ jsx("path", { d: "M114.325 1.65707H115.325V0.657074H114.325V1.65707Z", fill: "black" }),
|
|
12434
|
+
/* @__PURE__ */ jsx("path", { d: "M117.659 1.65707H116.659V0.657074H117.659V1.65707Z", fill: "black" }),
|
|
12435
|
+
/* @__PURE__ */ jsx("path", { d: "M118.992 1.65707H119.992V0.657074H118.992V1.65707Z", fill: "black" })
|
|
12436
|
+
] }), "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
12437
|
"path",
|
|
12469
12438
|
{
|
|
12470
12439
|
fillRule: "evenodd",
|
|
@@ -12472,68 +12441,68 @@ const ShowMenuListCommand = {
|
|
|
12472
12441
|
d: "M119.991 2.42035H-0.0090332V0.420349H119.991V2.42035Z",
|
|
12473
12442
|
fill: "black"
|
|
12474
12443
|
}
|
|
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__ */
|
|
12444
|
+
) }), "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: [
|
|
12445
|
+
/* @__PURE__ */ jsx("path", { d: "M-0.0100098 2.47614H1.98999V0.476135H-0.0100098V2.47614Z", fill: "black" }),
|
|
12446
|
+
/* @__PURE__ */ jsx("path", { d: "M3.99014 2.47614H9.99014V0.476135H3.99014V2.47614Z", fill: "black" }),
|
|
12447
|
+
/* @__PURE__ */ jsx("path", { d: "M13.9901 2.47614H11.9901V0.476135H13.9901V2.47614Z", fill: "black" }),
|
|
12448
|
+
/* @__PURE__ */ jsx("path", { d: "M21.1904 2.47614H23.1904V0.476135H21.1904V2.47614Z", fill: "black" }),
|
|
12449
|
+
/* @__PURE__ */ jsx("path", { d: "M31.1906 2.47614H25.1906V0.476135H31.1906V2.47614Z", fill: "black" }),
|
|
12450
|
+
/* @__PURE__ */ jsx("path", { d: "M33.1906 2.47614H35.1906V0.476135H33.1906V2.47614Z", fill: "black" }),
|
|
12451
|
+
/* @__PURE__ */ jsx("path", { d: "M44.3909 2.47614H42.3909V0.476135H44.3909V2.47614Z", fill: "black" }),
|
|
12452
|
+
/* @__PURE__ */ jsx("path", { d: "M46.391 2.47614H52.391V0.476135H46.391V2.47614Z", fill: "black" }),
|
|
12453
|
+
/* @__PURE__ */ jsx("path", { d: "M56.391 2.47614H54.391V0.476135H56.391V2.47614Z", fill: "black" }),
|
|
12454
|
+
/* @__PURE__ */ jsx("path", { d: "M63.5913 2.47614H65.5913V0.476135H63.5913V2.47614Z", fill: "black" }),
|
|
12455
|
+
/* @__PURE__ */ jsx("path", { d: "M73.5915 2.47614H67.5915V0.476135H73.5915V2.47614Z", fill: "black" }),
|
|
12456
|
+
/* @__PURE__ */ jsx("path", { d: "M75.5915 2.47614H77.5915V0.476135H75.5915V2.47614Z", fill: "black" }),
|
|
12457
|
+
/* @__PURE__ */ jsx("path", { d: "M86.7917 2.47614H84.7917V0.476135H86.7917V2.47614Z", fill: "black" }),
|
|
12458
|
+
/* @__PURE__ */ jsx("path", { d: "M88.7919 2.47614H94.7919V0.476135H88.7919V2.47614Z", fill: "black" }),
|
|
12459
|
+
/* @__PURE__ */ jsx("path", { d: "M98.7919 2.47614H96.7919V0.476135H98.7919V2.47614Z", fill: "black" }),
|
|
12460
|
+
/* @__PURE__ */ jsx("path", { d: "M105.992 2.47614H107.992V0.476135H105.992V2.47614Z", fill: "black" }),
|
|
12461
|
+
/* @__PURE__ */ jsx("path", { d: "M115.992 2.47614H109.992V0.476135H115.992V2.47614Z", fill: "black" }),
|
|
12462
|
+
/* @__PURE__ */ jsx("path", { d: "M117.992 2.47614H119.992V0.476135H117.992V2.47614Z", fill: "black" })
|
|
12463
|
+
] }), "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: [
|
|
12464
|
+
/* @__PURE__ */ jsx("path", { d: "M-0.0100098 2.00415H1.98999V0.00415039H-0.0100098V2.00415Z", fill: "black" }),
|
|
12465
|
+
/* @__PURE__ */ jsx("path", { d: "M3.99014 2.00415H9.99014V0.00415039H3.99014V2.00415Z", fill: "black" }),
|
|
12466
|
+
/* @__PURE__ */ jsx("path", { d: "M13.9901 2.00415H11.9901V0.00415039H13.9901V2.00415Z", fill: "black" }),
|
|
12467
|
+
/* @__PURE__ */ jsx("path", { d: "M15.9901 2.00415H17.9901V0.00415039H15.9901V2.00415Z", fill: "black" }),
|
|
12468
|
+
/* @__PURE__ */ jsx("path", { d: "M27.4905 2.00415H25.4905V0.00415039H27.4905V2.00415Z", fill: "black" }),
|
|
12469
|
+
/* @__PURE__ */ jsx("path", { d: "M29.4906 2.00415H35.4906V0.00415039H29.4906V2.00415Z", fill: "black" }),
|
|
12470
|
+
/* @__PURE__ */ jsx("path", { d: "M39.4906 2.00415H37.4906V0.00415039H39.4906V2.00415Z", fill: "black" }),
|
|
12471
|
+
/* @__PURE__ */ jsx("path", { d: "M41.4906 2.00415H43.4906V0.00415039H41.4906V2.00415Z", fill: "black" }),
|
|
12472
|
+
/* @__PURE__ */ jsx("path", { d: "M52.991 2.00415H50.991V0.00415039H52.991V2.00415Z", fill: "black" }),
|
|
12473
|
+
/* @__PURE__ */ jsx("path", { d: "M54.9911 2.00415H60.9911V0.00415039H54.9911V2.00415Z", fill: "black" }),
|
|
12474
|
+
/* @__PURE__ */ jsx("path", { d: "M64.9911 2.00415H62.9911V0.00415039H64.9911V2.00415Z", fill: "black" }),
|
|
12475
|
+
/* @__PURE__ */ jsx("path", { d: "M66.9911 2.00415H68.9911V0.00415039H66.9911V2.00415Z", fill: "black" }),
|
|
12476
|
+
/* @__PURE__ */ jsx("path", { d: "M78.4915 2.00415H76.4915V0.00415039H78.4915V2.00415Z", fill: "black" }),
|
|
12477
|
+
/* @__PURE__ */ jsx("path", { d: "M80.4916 2.00415H86.4916V0.00415039H80.4916V2.00415Z", fill: "black" }),
|
|
12478
|
+
/* @__PURE__ */ jsx("path", { d: "M90.4916 2.00415H88.4916V0.00415039H90.4916V2.00415Z", fill: "black" }),
|
|
12479
|
+
/* @__PURE__ */ jsx("path", { d: "M92.4916 2.00415H94.4916V0.00415039H92.4916V2.00415Z", fill: "black" }),
|
|
12480
|
+
/* @__PURE__ */ jsx("path", { d: "M103.992 2.00415H101.992V0.00415039H103.992V2.00415Z", fill: "black" }),
|
|
12481
|
+
/* @__PURE__ */ jsx("path", { d: "M105.992 2.00415H111.992V0.00415039H105.992V2.00415Z", fill: "black" }),
|
|
12482
|
+
/* @__PURE__ */ jsx("path", { d: "M115.992 2.00415H113.992V0.00415039H115.992V2.00415Z", fill: "black" }),
|
|
12483
|
+
/* @__PURE__ */ jsx("path", { d: "M117.992 2.00415H119.992V0.00415039H117.992V2.00415Z", fill: "black" })
|
|
12484
|
+
] }), "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: [
|
|
12485
|
+
/* @__PURE__ */ jsx("path", { d: "M-0.00854492 2.94815H1.99146V0.948151H-0.00854492V2.94815Z", fill: "black" }),
|
|
12486
|
+
/* @__PURE__ */ jsx("path", { d: "M6.09668 2.94815H8.09668V0.948151H6.09668V2.94815Z", fill: "black" }),
|
|
12487
|
+
/* @__PURE__ */ jsx("path", { d: "M14.2019 2.94815H12.2019V0.948151H14.2019V2.94815Z", fill: "black" }),
|
|
12488
|
+
/* @__PURE__ */ jsx("path", { d: "M18.3071 2.94815H20.3071V0.948151H18.3071V2.94815Z", fill: "black" }),
|
|
12489
|
+
/* @__PURE__ */ jsx("path", { d: "M26.4124 2.94815H24.4124V0.948151H26.4124V2.94815Z", fill: "black" }),
|
|
12490
|
+
/* @__PURE__ */ jsx("path", { d: "M30.5176 2.94815H32.5176V0.948151H30.5176V2.94815Z", fill: "black" }),
|
|
12491
|
+
/* @__PURE__ */ jsx("path", { d: "M38.6228 2.94815H36.6228V0.948151H38.6228V2.94815Z", fill: "black" }),
|
|
12492
|
+
/* @__PURE__ */ jsx("path", { d: "M42.728 2.94815H44.728V0.948151H42.728V2.94815Z", fill: "black" }),
|
|
12493
|
+
/* @__PURE__ */ jsx("path", { d: "M50.8333 2.94815H48.8333V0.948151H50.8333V2.94815Z", fill: "black" }),
|
|
12494
|
+
/* @__PURE__ */ jsx("path", { d: "M54.9385 2.94815H56.9385V0.948151H54.9385V2.94815Z", fill: "black" }),
|
|
12495
|
+
/* @__PURE__ */ jsx("path", { d: "M63.0437 2.94815H61.0437V0.948151H63.0437V2.94815Z", fill: "black" }),
|
|
12496
|
+
/* @__PURE__ */ jsx("path", { d: "M67.1489 2.94815H69.1489V0.948151H67.1489V2.94815Z", fill: "black" }),
|
|
12497
|
+
/* @__PURE__ */ jsx("path", { d: "M75.2542 2.94815H73.2542V0.948151H75.2542V2.94815Z", fill: "black" }),
|
|
12498
|
+
/* @__PURE__ */ jsx("path", { d: "M79.3594 2.94815H81.3594V0.948151H79.3594V2.94815Z", fill: "black" }),
|
|
12499
|
+
/* @__PURE__ */ jsx("path", { d: "M87.4645 2.94815H85.4645V0.948151H87.4645V2.94815Z", fill: "black" }),
|
|
12500
|
+
/* @__PURE__ */ jsx("path", { d: "M91.5697 2.94815H93.5697V0.948151H91.5697V2.94815Z", fill: "black" }),
|
|
12501
|
+
/* @__PURE__ */ jsx("path", { d: "M99.6749 2.94815H97.6749V0.948151H99.6749V2.94815Z", fill: "black" }),
|
|
12502
|
+
/* @__PURE__ */ jsx("path", { d: "M103.78 2.94815H105.78V0.948151H103.78V2.94815Z", fill: "black" }),
|
|
12503
|
+
/* @__PURE__ */ jsx("path", { d: "M111.885 2.94815H109.885V0.948151H111.885V2.94815Z", fill: "black" }),
|
|
12504
|
+
/* @__PURE__ */ jsx("path", { d: "M115.991 2.94815H117.991V0.948151H115.991V2.94815Z", fill: "black" })
|
|
12505
|
+
] }), "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
12506
|
"path",
|
|
12538
12507
|
{
|
|
12539
12508
|
fillRule: "evenodd",
|
|
@@ -12541,7 +12510,7 @@ const ShowMenuListCommand = {
|
|
|
12541
12510
|
d: "M119.991 3.86215H-0.0090332V0.862152H119.991V3.86215Z",
|
|
12542
12511
|
fill: "black"
|
|
12543
12512
|
}
|
|
12544
|
-
) }), "BorderThick"), BorderThin = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
12513
|
+
) }), "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
12514
|
"path",
|
|
12546
12515
|
{
|
|
12547
12516
|
fillRule: "evenodd",
|
|
@@ -12554,27 +12523,27 @@ function BorderLine(props) {
|
|
|
12554
12523
|
const { type = BorderStyleTypes.THIN } = props;
|
|
12555
12524
|
switch (type) {
|
|
12556
12525
|
case BorderStyleTypes.DASH_DOT:
|
|
12557
|
-
return /* @__PURE__ */
|
|
12526
|
+
return /* @__PURE__ */ jsx(BorderDashDot, {});
|
|
12558
12527
|
case BorderStyleTypes.DASH_DOT_DOT:
|
|
12559
|
-
return /* @__PURE__ */
|
|
12528
|
+
return /* @__PURE__ */ jsx(BorderDashDotDot, {});
|
|
12560
12529
|
case BorderStyleTypes.DASHED:
|
|
12561
|
-
return /* @__PURE__ */
|
|
12530
|
+
return /* @__PURE__ */ jsx(BorderDashed, {});
|
|
12562
12531
|
case BorderStyleTypes.HAIR:
|
|
12563
|
-
return /* @__PURE__ */
|
|
12532
|
+
return /* @__PURE__ */ jsx(BorderHair, {});
|
|
12564
12533
|
case BorderStyleTypes.MEDIUM:
|
|
12565
|
-
return /* @__PURE__ */
|
|
12534
|
+
return /* @__PURE__ */ jsx(BorderMedium, {});
|
|
12566
12535
|
case BorderStyleTypes.MEDIUM_DASH_DOT:
|
|
12567
|
-
return /* @__PURE__ */
|
|
12536
|
+
return /* @__PURE__ */ jsx(BorderMediumDashDot, {});
|
|
12568
12537
|
case BorderStyleTypes.MEDIUM_DASH_DOT_DOT:
|
|
12569
|
-
return /* @__PURE__ */
|
|
12538
|
+
return /* @__PURE__ */ jsx(BorderMediumDashDotDot, {});
|
|
12570
12539
|
case BorderStyleTypes.MEDIUM_DASHED:
|
|
12571
|
-
return /* @__PURE__ */
|
|
12540
|
+
return /* @__PURE__ */ jsx(BorderMediumDashed, {});
|
|
12572
12541
|
case BorderStyleTypes.THICK:
|
|
12573
|
-
return /* @__PURE__ */
|
|
12542
|
+
return /* @__PURE__ */ jsx(BorderThick, {});
|
|
12574
12543
|
case BorderStyleTypes.THIN:
|
|
12575
|
-
return /* @__PURE__ */
|
|
12544
|
+
return /* @__PURE__ */ jsx(BorderThin, {});
|
|
12576
12545
|
default:
|
|
12577
|
-
return /* @__PURE__ */
|
|
12546
|
+
return /* @__PURE__ */ jsx(BorderThin, {});
|
|
12578
12547
|
}
|
|
12579
12548
|
}
|
|
12580
12549
|
__name(BorderLine, "BorderLine");
|
|
@@ -12721,14 +12690,14 @@ function BorderPanel(props) {
|
|
|
12721
12690
|
__name(handleClick, "handleClick");
|
|
12722
12691
|
function renderIcon(icon) {
|
|
12723
12692
|
const Icon = componentManager.get(icon);
|
|
12724
|
-
return Icon && /* @__PURE__ */
|
|
12693
|
+
return Icon && /* @__PURE__ */ jsx(Icon, { extend: { colorChannel1: "rgb(var(--primary-color))" } });
|
|
12725
12694
|
}
|
|
12726
12695
|
__name(renderIcon, "renderIcon");
|
|
12727
12696
|
function stopPropagation(e) {
|
|
12728
12697
|
e.stopPropagation();
|
|
12729
12698
|
}
|
|
12730
|
-
return __name(stopPropagation, "stopPropagation"), /* @__PURE__ */
|
|
12731
|
-
/* @__PURE__ */
|
|
12699
|
+
return __name(stopPropagation, "stopPropagation"), /* @__PURE__ */ jsxs("section", { className: styles$j.uiPluginSheetsBorderPanel, children: [
|
|
12700
|
+
/* @__PURE__ */ jsx("div", { className: styles$j.uiPluginSheetsBorderPanelPosition, children: BORDER_LINE_CHILDREN.map((item) => /* @__PURE__ */ jsx(
|
|
12732
12701
|
"div",
|
|
12733
12702
|
{
|
|
12734
12703
|
className: borderStyleManagerService.getBorderInfo().type === item.value ? `
|
|
@@ -12742,38 +12711,38 @@ function BorderPanel(props) {
|
|
|
12742
12711
|
},
|
|
12743
12712
|
item.value
|
|
12744
12713
|
)) }),
|
|
12745
|
-
/* @__PURE__ */
|
|
12746
|
-
/* @__PURE__ */
|
|
12714
|
+
/* @__PURE__ */ jsxs("div", { className: styles$j.uiPluginSheetsBorderPanelStyles, children: [
|
|
12715
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
12747
12716
|
DropdownLegacy,
|
|
12748
12717
|
{
|
|
12749
12718
|
align: {
|
|
12750
12719
|
offset: [0, 18]
|
|
12751
12720
|
},
|
|
12752
|
-
overlay: /* @__PURE__ */
|
|
12753
|
-
children: /* @__PURE__ */
|
|
12754
|
-
/* @__PURE__ */
|
|
12755
|
-
/* @__PURE__ */
|
|
12721
|
+
overlay: /* @__PURE__ */ jsx("section", { className: styles$j.uiPluginSheetsBorderPanelBoard, onClick: stopPropagation, children: /* @__PURE__ */ jsx(ColorPicker, { onChange: /* @__PURE__ */ __name((value2) => handleClick(value2, "color"), "onChange") }) }),
|
|
12722
|
+
children: /* @__PURE__ */ jsxs("a", { className: styles$j.uiPluginSheetsBorderPanelButton, onClick: stopPropagation, children: [
|
|
12723
|
+
/* @__PURE__ */ jsx(PaintBucket, { extend: { colorChannel1: (_a61 = value == null ? void 0 : value.color) != null ? _a61 : "rgb(var(--primary-color))" } }),
|
|
12724
|
+
/* @__PURE__ */ jsx("span", { className: styles$j.uiPluginSheetsBorderPanelMoreIcon, children: /* @__PURE__ */ jsx(MoreDownSingle, {}) })
|
|
12756
12725
|
] })
|
|
12757
12726
|
}
|
|
12758
12727
|
) }),
|
|
12759
|
-
/* @__PURE__ */
|
|
12728
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
12760
12729
|
DropdownLegacy,
|
|
12761
12730
|
{
|
|
12762
12731
|
align: {
|
|
12763
12732
|
offset: [0, 18]
|
|
12764
12733
|
},
|
|
12765
|
-
overlay: /* @__PURE__ */
|
|
12734
|
+
overlay: /* @__PURE__ */ jsx("section", { onClick: stopPropagation, children: /* @__PURE__ */ jsx(Menu, { children: BORDER_SIZE_CHILDREN.map((item) => /* @__PURE__ */ jsx(
|
|
12766
12735
|
MenuItem,
|
|
12767
12736
|
{
|
|
12768
12737
|
eventKey: item.value.toString(),
|
|
12769
12738
|
onClick: /* @__PURE__ */ __name(() => handleClick(item.value, "style"), "onClick"),
|
|
12770
|
-
children: /* @__PURE__ */
|
|
12739
|
+
children: /* @__PURE__ */ jsx(BorderLine, { type: item.value })
|
|
12771
12740
|
},
|
|
12772
12741
|
item.value
|
|
12773
12742
|
)) }) }),
|
|
12774
|
-
children: /* @__PURE__ */
|
|
12775
|
-
/* @__PURE__ */
|
|
12776
|
-
/* @__PURE__ */
|
|
12743
|
+
children: /* @__PURE__ */ jsxs("a", { className: styles$j.uiPluginSheetsBorderPanelButton, onClick: stopPropagation, children: [
|
|
12744
|
+
/* @__PURE__ */ jsx(BorderLine, { type: BorderStyleTypes.THIN }),
|
|
12745
|
+
/* @__PURE__ */ jsx("span", { className: styles$j.uiPluginSheetsBorderPanelMoreIcon, children: /* @__PURE__ */ jsx(MoreDownSingle, {}) })
|
|
12777
12746
|
] })
|
|
12778
12747
|
}
|
|
12779
12748
|
) })
|
|
@@ -12915,13 +12884,13 @@ const definedName = "univer-defined-name", definedNameOverlay = "univer-defined-
|
|
|
12915
12884
|
var _a61;
|
|
12916
12885
|
const handleOutClick = (_a61 = formulaEditorActionsRef.current) == null ? void 0 : _a61.handleOutClick;
|
|
12917
12886
|
handleOutClick && handleOutClick(e, () => isFocusFormulaEditorSet(!1));
|
|
12918
|
-
}), /* @__PURE__ */
|
|
12919
|
-
/* @__PURE__ */
|
|
12920
|
-
/* @__PURE__ */
|
|
12921
|
-
/* @__PURE__ */
|
|
12922
|
-
/* @__PURE__ */
|
|
12887
|
+
}), /* @__PURE__ */ jsxs("div", { className: styles$i.definedNameInput, style: { display: state ? "block" : "none" }, children: [
|
|
12888
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Input, { placeholder: localeService.t("definedName.inputNamePlaceholder"), value: nameValue, allowClear: !0, onChange: setNameValue, affixWrapperStyle: widthStyle }) }),
|
|
12889
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(RadioGroup, { value: typeValue, onChange: typeValueChange, children: [
|
|
12890
|
+
/* @__PURE__ */ jsx(Radio, { value: "range", children: localeService.t("definedName.ratioRange") }),
|
|
12891
|
+
/* @__PURE__ */ jsx(Radio, { value: "formula", children: localeService.t("definedName.ratioFormula") })
|
|
12923
12892
|
] }) }),
|
|
12924
|
-
typeValue === "range" ? RangeSelector && /* @__PURE__ */
|
|
12893
|
+
typeValue === "range" ? RangeSelector && /* @__PURE__ */ jsx(
|
|
12925
12894
|
RangeSelector,
|
|
12926
12895
|
{
|
|
12927
12896
|
unitId,
|
|
@@ -12933,7 +12902,7 @@ const definedName = "univer-defined-name", definedNameOverlay = "univer-defined-
|
|
|
12933
12902
|
actions: rangeSelectorActionsRef.current,
|
|
12934
12903
|
isSupportAcrossSheet: !0
|
|
12935
12904
|
}
|
|
12936
|
-
) : FormulaEditor && /* @__PURE__ */
|
|
12905
|
+
) : FormulaEditor && /* @__PURE__ */ jsx(
|
|
12937
12906
|
FormulaEditor,
|
|
12938
12907
|
{
|
|
12939
12908
|
initValue: formulaOrRefStringValue,
|
|
@@ -12951,14 +12920,14 @@ const definedName = "univer-defined-name", definedNameOverlay = "univer-defined-
|
|
|
12951
12920
|
actions: formulaEditorActionsRef.current
|
|
12952
12921
|
}
|
|
12953
12922
|
),
|
|
12954
|
-
/* @__PURE__ */
|
|
12955
|
-
/* @__PURE__ */
|
|
12956
|
-
/* @__PURE__ */
|
|
12957
|
-
/* @__PURE__ */
|
|
12958
|
-
/* @__PURE__ */
|
|
12923
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Select, { style: widthStyle, value: localSheetIdValue, options, onChange: setLocalSheetIdValue }) }),
|
|
12924
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Input, { affixWrapperStyle: widthStyle, placeholder: localeService.t("definedName.inputCommentPlaceholder"), value: commentValue, onChange: setCommentValue }) }),
|
|
12925
|
+
/* @__PURE__ */ jsxs("div", { style: { display: validString.length === 0 ? "none" : "flex" }, className: styles$i.definedNameInputValidation, children: [
|
|
12926
|
+
/* @__PURE__ */ jsx("span", { children: validString }),
|
|
12927
|
+
/* @__PURE__ */ jsx(ErrorSingle, {})
|
|
12959
12928
|
] }),
|
|
12960
|
-
/* @__PURE__ */
|
|
12961
|
-
/* @__PURE__ */
|
|
12929
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
12930
|
+
/* @__PURE__ */ jsx(
|
|
12962
12931
|
Button,
|
|
12963
12932
|
{
|
|
12964
12933
|
onClick: /* @__PURE__ */ __name(() => {
|
|
@@ -12967,7 +12936,7 @@ const definedName = "univer-defined-name", definedNameOverlay = "univer-defined-
|
|
|
12967
12936
|
children: localeService.t("definedName.cancel")
|
|
12968
12937
|
}
|
|
12969
12938
|
),
|
|
12970
|
-
/* @__PURE__ */
|
|
12939
|
+
/* @__PURE__ */ jsx(
|
|
12971
12940
|
Button,
|
|
12972
12941
|
{
|
|
12973
12942
|
style: { marginLeft: 15 },
|
|
@@ -13049,36 +13018,36 @@ const definedName = "univer-defined-name", definedNameOverlay = "univer-defined-
|
|
|
13049
13018
|
const sheet = workbook.getSheetBySheetId(sheetId);
|
|
13050
13019
|
return sheet == null ? "" : sheet.getName();
|
|
13051
13020
|
}, "getSheetNameBySheetId");
|
|
13052
|
-
return /* @__PURE__ */
|
|
13053
|
-
/* @__PURE__ */
|
|
13054
|
-
/* @__PURE__ */
|
|
13055
|
-
/* @__PURE__ */
|
|
13056
|
-
/* @__PURE__ */
|
|
13021
|
+
return /* @__PURE__ */ jsx("div", { className: styles$i.definedNameContainer, children: /* @__PURE__ */ jsxs("div", { className: styles$i.definedNameContainerScroll, children: [
|
|
13022
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
13023
|
+
/* @__PURE__ */ jsxs("div", { onClick: openInsertCloseKeyEditor, className: styles$i.definedNameContainerAddButton, style: { display: editState ? "none" : "flex" }, children: [
|
|
13024
|
+
/* @__PURE__ */ jsx(IncreaseSingle, {}),
|
|
13025
|
+
/* @__PURE__ */ jsx("span", { className: styles$i.definedNameContainerAddButtonText, children: localeService.t("definedName.addButton") })
|
|
13057
13026
|
] }),
|
|
13058
|
-
editState && /* @__PURE__ */
|
|
13027
|
+
editState && /* @__PURE__ */ jsx(DefinedNameInput, { confirm: insertConfirm, cancel: closeInput, state: editState, inputId: "insertDefinedName", name: getInsertDefinedName(), formulaOrRefString: getInertFormulaOrRefString() })
|
|
13059
13028
|
] }, "insertDefinedName"),
|
|
13060
|
-
definedNames.map((definedName2, index) => /* @__PURE__ */
|
|
13061
|
-
/* @__PURE__ */
|
|
13029
|
+
definedNames.map((definedName2, index) => /* @__PURE__ */ jsxs("div", { children: [
|
|
13030
|
+
/* @__PURE__ */ jsxs("div", { onClick: /* @__PURE__ */ __name(() => {
|
|
13062
13031
|
focusDefinedName(definedName2);
|
|
13063
13032
|
}, "onClick"), className: styles$i.definedNameContainerItem, style: { display: definedName2.id === editorKey ? "none" : "flex" }, children: [
|
|
13064
|
-
/* @__PURE__ */
|
|
13065
|
-
/* @__PURE__ */
|
|
13033
|
+
/* @__PURE__ */ jsxs("div", { title: definedName2.comment, children: [
|
|
13034
|
+
/* @__PURE__ */ jsxs("div", { className: styles$i.definedNameContainerItemName, children: [
|
|
13066
13035
|
definedName2.name,
|
|
13067
|
-
/* @__PURE__ */
|
|
13036
|
+
/* @__PURE__ */ jsx("span", { className: styles$i.definedNameContainerItemNameForSheet, children: definedName2.localSheetId === SCOPE_WORKBOOK_VALUE_DEFINED_NAME || definedName2.localSheetId == null ? "" : getSheetNameBySheetId(definedName2.localSheetId) })
|
|
13068
13037
|
] }),
|
|
13069
|
-
/* @__PURE__ */
|
|
13038
|
+
/* @__PURE__ */ jsx("div", { className: styles$i.definedNameContainerItemFormulaOrRefString, children: definedName2.formulaOrRefString })
|
|
13070
13039
|
] }),
|
|
13071
|
-
/* @__PURE__ */
|
|
13040
|
+
/* @__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
13041
|
closeInsertOpenKeyEditor(definedName2.id);
|
|
13073
|
-
}, "onClick"), children: /* @__PURE__ */
|
|
13074
|
-
/* @__PURE__ */
|
|
13042
|
+
}, "onClick"), children: /* @__PURE__ */ jsx(CheckMarkSingle, {}) }) }),
|
|
13043
|
+
/* @__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
13044
|
deleteDefinedName(definedName2.id);
|
|
13076
|
-
}, "onClick"), children: /* @__PURE__ */
|
|
13045
|
+
}, "onClick"), children: /* @__PURE__ */ jsx(DeleteSingle, {}) }) })
|
|
13077
13046
|
] }),
|
|
13078
|
-
/* @__PURE__ */
|
|
13047
|
+
/* @__PURE__ */ jsx(Confirm, { visible: deleteConformKey === definedName2.id, onClose: handleDeleteClose, onConfirm: /* @__PURE__ */ __name(() => {
|
|
13079
13048
|
handleDeleteConfirm(definedName2.id);
|
|
13080
13049
|
}, "onConfirm"), children: localeService.t("definedName.deleteConfirmText") }),
|
|
13081
|
-
definedName2.id === editorKey && /* @__PURE__ */
|
|
13050
|
+
definedName2.id === editorKey && /* @__PURE__ */ jsx(
|
|
13082
13051
|
DefinedNameInput,
|
|
13083
13052
|
{
|
|
13084
13053
|
confirm: insertConfirm,
|
|
@@ -13123,7 +13092,7 @@ function ZoomSlider() {
|
|
|
13123
13092
|
}
|
|
13124
13093
|
__name(handleChange, "handleChange");
|
|
13125
13094
|
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__ */
|
|
13095
|
+
return /* @__PURE__ */ jsx(
|
|
13127
13096
|
Slider,
|
|
13128
13097
|
{
|
|
13129
13098
|
disabled,
|
|
@@ -13136,7 +13105,7 @@ function ZoomSlider() {
|
|
|
13136
13105
|
}
|
|
13137
13106
|
__name(ZoomSlider, "ZoomSlider");
|
|
13138
13107
|
function CountBar(props) {
|
|
13139
|
-
return /* @__PURE__ */
|
|
13108
|
+
return /* @__PURE__ */ jsx("section", { className: styles$h.countBar, children: /* @__PURE__ */ jsx(ZoomSlider, {}) });
|
|
13140
13109
|
}
|
|
13141
13110
|
__name(CountBar, "CountBar");
|
|
13142
13111
|
function useKeyEventConfig(isRefSelecting, unitId) {
|
|
@@ -13228,7 +13197,7 @@ const editorContainer = "univer-editor-container", editorInput = "univer-editor-
|
|
|
13228
13197
|
unitId: editState == null ? void 0 : editState.unitId
|
|
13229
13198
|
});
|
|
13230
13199
|
});
|
|
13231
|
-
return /* @__PURE__ */
|
|
13200
|
+
return /* @__PURE__ */ jsx(
|
|
13232
13201
|
"div",
|
|
13233
13202
|
{
|
|
13234
13203
|
className: styles$g.editorContainer,
|
|
@@ -13238,7 +13207,7 @@ const editorContainer = "univer-editor-container", editorInput = "univer-editor-
|
|
|
13238
13207
|
width: state.width,
|
|
13239
13208
|
height: state.height
|
|
13240
13209
|
},
|
|
13241
|
-
children: FormulaEditor && /* @__PURE__ */
|
|
13210
|
+
children: FormulaEditor && /* @__PURE__ */ jsx(
|
|
13242
13211
|
FormulaEditor,
|
|
13243
13212
|
{
|
|
13244
13213
|
editorId: DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
|
|
@@ -13334,15 +13303,15 @@ function DefinedNameOverlay(props) {
|
|
|
13334
13303
|
return;
|
|
13335
13304
|
worksheet.isSheetHidden() && await commandService.executeCommand(SetWorksheetShowCommand.id, { unitId, subUnitId: worksheet.getSheetId() }), definedNamesService.focusRange(unitId, id);
|
|
13336
13305
|
}, "focusDefinedName");
|
|
13337
|
-
return /* @__PURE__ */
|
|
13338
|
-
/* @__PURE__ */
|
|
13306
|
+
return /* @__PURE__ */ jsxs("div", { className: "univer-w-[300px]", children: [
|
|
13307
|
+
/* @__PURE__ */ jsx(
|
|
13339
13308
|
"ul",
|
|
13340
13309
|
{
|
|
13341
13310
|
className: `
|
|
13342
13311
|
univer-max-h-[360px] univer-overflow-y-auto univer-scrollbar-thin univer-scrollbar-thumb-gray-300
|
|
13343
13312
|
univer-scrollbar-track-transparent univer-scrollbar-w-[4px] univer-m-0 univer-list-none univer-p-0
|
|
13344
13313
|
`,
|
|
13345
|
-
children: definedNames.map((definedName2, index) => /* @__PURE__ */
|
|
13314
|
+
children: definedNames.map((definedName2, index) => /* @__PURE__ */ jsx(
|
|
13346
13315
|
"li",
|
|
13347
13316
|
{
|
|
13348
13317
|
className: `
|
|
@@ -13353,7 +13322,7 @@ function DefinedNameOverlay(props) {
|
|
|
13353
13322
|
onClick: /* @__PURE__ */ __name(() => {
|
|
13354
13323
|
focusDefinedName(definedName2);
|
|
13355
13324
|
}, "onClick"),
|
|
13356
|
-
children: /* @__PURE__ */
|
|
13325
|
+
children: /* @__PURE__ */ jsxs(
|
|
13357
13326
|
"div",
|
|
13358
13327
|
{
|
|
13359
13328
|
className: `
|
|
@@ -13361,7 +13330,7 @@ function DefinedNameOverlay(props) {
|
|
|
13361
13330
|
univer-border-solid univer-border-0 univer-border-gray-200 univer-gap-2
|
|
13362
13331
|
`,
|
|
13363
13332
|
children: [
|
|
13364
|
-
/* @__PURE__ */
|
|
13333
|
+
/* @__PURE__ */ jsx(
|
|
13365
13334
|
"div",
|
|
13366
13335
|
{
|
|
13367
13336
|
className: `
|
|
@@ -13372,7 +13341,7 @@ function DefinedNameOverlay(props) {
|
|
|
13372
13341
|
children: definedName2.name
|
|
13373
13342
|
}
|
|
13374
13343
|
),
|
|
13375
|
-
/* @__PURE__ */
|
|
13344
|
+
/* @__PURE__ */ jsx(
|
|
13376
13345
|
"div",
|
|
13377
13346
|
{
|
|
13378
13347
|
className: `
|
|
@@ -13391,7 +13360,7 @@ function DefinedNameOverlay(props) {
|
|
|
13391
13360
|
))
|
|
13392
13361
|
}
|
|
13393
13362
|
),
|
|
13394
|
-
/* @__PURE__ */
|
|
13363
|
+
/* @__PURE__ */ jsxs(
|
|
13395
13364
|
"div",
|
|
13396
13365
|
{
|
|
13397
13366
|
className: `
|
|
@@ -13401,8 +13370,8 @@ function DefinedNameOverlay(props) {
|
|
|
13401
13370
|
`,
|
|
13402
13371
|
onClick: openSlider,
|
|
13403
13372
|
children: [
|
|
13404
|
-
/* @__PURE__ */
|
|
13405
|
-
/* @__PURE__ */
|
|
13373
|
+
/* @__PURE__ */ jsx("div", { className: "univer-text-sm univer-font-semibold univer-text-gray-600 univer-mb-2", children: localeService.t("definedName.managerTitle") }),
|
|
13374
|
+
/* @__PURE__ */ jsx("div", { className: "univer-text-xs univer-text-gray-400", children: localeService.t("definedName.managerDescription") })
|
|
13406
13375
|
]
|
|
13407
13376
|
}
|
|
13408
13377
|
)
|
|
@@ -13411,26 +13380,34 @@ function DefinedNameOverlay(props) {
|
|
|
13411
13380
|
__name(DefinedNameOverlay, "DefinedNameOverlay");
|
|
13412
13381
|
function DefinedName({ disable }) {
|
|
13413
13382
|
const [rangeString, setRangeString] = useState(""), definedNamesService = useDependency(IDefinedNamesService);
|
|
13414
|
-
|
|
13383
|
+
useEffect(() => {
|
|
13415
13384
|
const subscription = definedNamesService.currentRange$.subscribe(() => {
|
|
13416
13385
|
setRangeString(definedNamesService.getCurrentRangeForString());
|
|
13417
13386
|
});
|
|
13418
13387
|
return () => {
|
|
13419
13388
|
subscription.unsubscribe();
|
|
13420
13389
|
};
|
|
13421
|
-
}, [])
|
|
13422
|
-
|
|
13423
|
-
|
|
13390
|
+
}, []);
|
|
13391
|
+
function handleChangeSelection() {
|
|
13392
|
+
}
|
|
13393
|
+
return __name(handleChangeSelection, "handleChangeSelection"), /* @__PURE__ */ jsxs("div", { className: styles$i.definedName, children: [
|
|
13394
|
+
/* @__PURE__ */ jsx(
|
|
13395
|
+
"input",
|
|
13424
13396
|
{
|
|
13425
|
-
className: clsx(
|
|
13426
|
-
|
|
13397
|
+
className: clsx(`
|
|
13398
|
+
univer-border-none univer-absolute univer-w-full univer-h-full univer-appearance-none
|
|
13399
|
+
univer-box-border univer-px-1.5
|
|
13400
|
+
focus:univer-outline-none
|
|
13401
|
+
`, {
|
|
13402
|
+
[styles$i.defineNameInputDisable]: disable
|
|
13403
|
+
}),
|
|
13427
13404
|
type: "text",
|
|
13428
|
-
|
|
13429
|
-
|
|
13405
|
+
value: rangeString,
|
|
13406
|
+
onChange: handleChangeSelection
|
|
13430
13407
|
}
|
|
13431
13408
|
),
|
|
13432
|
-
/* @__PURE__ */
|
|
13433
|
-
/* @__PURE__ */
|
|
13409
|
+
/* @__PURE__ */ jsxs(DropdownProvider, { children: [
|
|
13410
|
+
/* @__PURE__ */ jsx(DropdownTrigger, { children: /* @__PURE__ */ jsx(
|
|
13434
13411
|
"a",
|
|
13435
13412
|
{
|
|
13436
13413
|
className: clsx(
|
|
@@ -13443,10 +13420,10 @@ function DefinedName({ disable }) {
|
|
|
13443
13420
|
"univer-text-gray-300 univer-cursor-not-allowed hover:univer-bg-transparent": disable
|
|
13444
13421
|
}
|
|
13445
13422
|
),
|
|
13446
|
-
children: /* @__PURE__ */
|
|
13423
|
+
children: /* @__PURE__ */ jsx(MoreDownSingle, {})
|
|
13447
13424
|
}
|
|
13448
13425
|
) }),
|
|
13449
|
-
/* @__PURE__ */
|
|
13426
|
+
/* @__PURE__ */ jsx(DropdownOverlay, { className: "univer-z-[1001]", offset: { x: -75, y: 2 }, children: /* @__PURE__ */ jsx(DefinedNameOverlay, {}) })
|
|
13450
13427
|
] })
|
|
13451
13428
|
] });
|
|
13452
13429
|
}
|
|
@@ -13567,7 +13544,7 @@ function FormulaBar() {
|
|
|
13567
13544
|
}
|
|
13568
13545
|
__name(handlerFxBtnClick, "handlerFxBtnClick");
|
|
13569
13546
|
const disabled = disable || imageDisable;
|
|
13570
|
-
return /* @__PURE__ */
|
|
13547
|
+
return /* @__PURE__ */ jsxs(
|
|
13571
13548
|
"div",
|
|
13572
13549
|
{
|
|
13573
13550
|
className: styles$f.formulaBox,
|
|
@@ -13576,29 +13553,29 @@ function FormulaBar() {
|
|
|
13576
13553
|
pointerEvents: disable ? "none" : "auto"
|
|
13577
13554
|
},
|
|
13578
13555
|
children: [
|
|
13579
|
-
/* @__PURE__ */
|
|
13580
|
-
/* @__PURE__ */
|
|
13581
|
-
/* @__PURE__ */
|
|
13582
|
-
/* @__PURE__ */
|
|
13556
|
+
/* @__PURE__ */ jsx("div", { className: styles$f.nameRanges, children: /* @__PURE__ */ jsx(DefinedName, { disable }) }),
|
|
13557
|
+
/* @__PURE__ */ jsxs("div", { className: styles$f.formulaBar, children: [
|
|
13558
|
+
/* @__PURE__ */ jsx("div", { className: clsx(styles$f.formulaIcon, { [styles$f.formulaIconDisable]: disabled }), children: /* @__PURE__ */ jsxs("div", { className: styles$f.formulaIconWrapper, children: [
|
|
13559
|
+
/* @__PURE__ */ jsx(
|
|
13583
13560
|
"span",
|
|
13584
13561
|
{
|
|
13585
13562
|
className: clsx(styles$f.iconContainer, styles$f.iconContainerError, iconStyle),
|
|
13586
13563
|
onClick: handleCloseBtnClick,
|
|
13587
|
-
children: /* @__PURE__ */
|
|
13564
|
+
children: /* @__PURE__ */ jsx(CloseSingle, {})
|
|
13588
13565
|
}
|
|
13589
13566
|
),
|
|
13590
|
-
/* @__PURE__ */
|
|
13567
|
+
/* @__PURE__ */ jsx(
|
|
13591
13568
|
"span",
|
|
13592
13569
|
{
|
|
13593
13570
|
className: clsx(styles$f.iconContainer, styles$f.iconContainerSuccess, iconStyle),
|
|
13594
13571
|
onClick: handleConfirmBtnClick,
|
|
13595
|
-
children: /* @__PURE__ */
|
|
13572
|
+
children: /* @__PURE__ */ jsx(CheckMarkSingle, {})
|
|
13596
13573
|
}
|
|
13597
13574
|
),
|
|
13598
|
-
/* @__PURE__ */
|
|
13575
|
+
/* @__PURE__ */ jsx("span", { className: clsx(styles$f.iconContainer, styles$f.iconContainerFx), onClick: handlerFxBtnClick, children: /* @__PURE__ */ jsx(FxSingle, {}) })
|
|
13599
13576
|
] }) }),
|
|
13600
|
-
/* @__PURE__ */
|
|
13601
|
-
/* @__PURE__ */
|
|
13577
|
+
/* @__PURE__ */ jsxs("div", { className: styles$f.formulaContainer, children: [
|
|
13578
|
+
/* @__PURE__ */ jsx("div", { className: styles$f.formulaInput, ref, children: FormulaEditor && /* @__PURE__ */ jsx(
|
|
13602
13579
|
FormulaEditor,
|
|
13603
13580
|
{
|
|
13604
13581
|
disableSelectionOnClick: !0,
|
|
@@ -13621,10 +13598,10 @@ function FormulaBar() {
|
|
|
13621
13598
|
disableContextMenu: !1
|
|
13622
13599
|
}
|
|
13623
13600
|
) }),
|
|
13624
|
-
/* @__PURE__ */
|
|
13601
|
+
/* @__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
13602
|
] })
|
|
13626
13603
|
] }),
|
|
13627
|
-
/* @__PURE__ */
|
|
13604
|
+
/* @__PURE__ */ jsx(ComponentContainer, { components: formulaAuxUIParts }, "formula-aux")
|
|
13628
13605
|
]
|
|
13629
13606
|
}
|
|
13630
13607
|
);
|
|
@@ -13703,46 +13680,46 @@ const operateContainer = "univer-operate-container", autoFillPopupMenu = "univer
|
|
|
13703
13680
|
}, "onVisibleChange"), handleClick = /* @__PURE__ */ __name((item) => {
|
|
13704
13681
|
commandService.executeCommand(RefillCommand.id, { type: item.value }), setVisible(!1);
|
|
13705
13682
|
}, "handleClick"), showMore = visible || isHovered, availableMenu = menu.filter((item) => !item.disable);
|
|
13706
|
-
return /* @__PURE__ */
|
|
13683
|
+
return /* @__PURE__ */ jsx(
|
|
13707
13684
|
"div",
|
|
13708
13685
|
{
|
|
13709
13686
|
onMouseEnter: handleMouseEnter,
|
|
13710
13687
|
onMouseLeave: handleMouseLeave,
|
|
13711
13688
|
style: { left: `${relativeX + 2}px`, top: `${relativeY + 2}px`, position: "absolute" },
|
|
13712
|
-
children: /* @__PURE__ */
|
|
13689
|
+
children: /* @__PURE__ */ jsx(
|
|
13713
13690
|
DropdownLegacy,
|
|
13714
13691
|
{
|
|
13715
13692
|
placement: "bottomLeft",
|
|
13716
13693
|
trigger: ["click"],
|
|
13717
|
-
overlay: /* @__PURE__ */
|
|
13694
|
+
overlay: /* @__PURE__ */ jsx("ul", { className: styles$e.autoFillPopupMenu, children: availableMenu.map((item) => /* @__PURE__ */ jsxs(
|
|
13718
13695
|
"li",
|
|
13719
13696
|
{
|
|
13720
13697
|
onClick: /* @__PURE__ */ __name(() => handleClick(item), "onClick"),
|
|
13721
13698
|
className: styles$e.autoFillPopupMenuItem,
|
|
13722
13699
|
children: [
|
|
13723
|
-
/* @__PURE__ */
|
|
13724
|
-
/* @__PURE__ */
|
|
13700
|
+
/* @__PURE__ */ jsx("span", { className: styles$e.autoFillPopupMenuItemIcon, children: item.value === selected && /* @__PURE__ */ jsx(CheckMarkSingle, { style: { color: "rgb(var(--green-700, #409f11))" } }) }),
|
|
13701
|
+
/* @__PURE__ */ jsx("span", { className: styles$e.autoFillPopupMenuItemTitle, children: localeService.t(item.label) })
|
|
13725
13702
|
]
|
|
13726
13703
|
},
|
|
13727
13704
|
item.index
|
|
13728
13705
|
)) }),
|
|
13729
13706
|
visible,
|
|
13730
13707
|
onVisibleChange,
|
|
13731
|
-
children: /* @__PURE__ */
|
|
13708
|
+
children: /* @__PURE__ */ jsxs(
|
|
13732
13709
|
"div",
|
|
13733
13710
|
{
|
|
13734
13711
|
className: clsx(styles$e.btnContainer, {
|
|
13735
13712
|
[styles$e.btnContainerExpand]: visible
|
|
13736
13713
|
}),
|
|
13737
13714
|
children: [
|
|
13738
|
-
/* @__PURE__ */
|
|
13715
|
+
/* @__PURE__ */ jsx(
|
|
13739
13716
|
Autofill,
|
|
13740
13717
|
{
|
|
13741
13718
|
style: { color: "#35322B" },
|
|
13742
13719
|
extend: { colorChannel1: "rgb(var(--green-700, #409f11))" }
|
|
13743
13720
|
}
|
|
13744
13721
|
),
|
|
13745
|
-
showMore && /* @__PURE__ */
|
|
13722
|
+
showMore && /* @__PURE__ */ jsx(MoreDownSingle, { style: { color: "#CCCCCC", fontSize: "8px", marginLeft: "8px" } })
|
|
13746
13723
|
]
|
|
13747
13724
|
}
|
|
13748
13725
|
)
|
|
@@ -13750,7 +13727,7 @@ const operateContainer = "univer-operate-container", autoFillPopupMenu = "univer
|
|
|
13750
13727
|
)
|
|
13751
13728
|
}
|
|
13752
13729
|
);
|
|
13753
|
-
}, "AutoFillPopupMenu"), OperateContainer = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
13730
|
+
}, "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
13731
|
sheetBar,
|
|
13755
13732
|
sheetBarOptions,
|
|
13756
13733
|
sheetBarOptionsDivider
|
|
@@ -13765,7 +13742,7 @@ function SheetBarButton(props) {
|
|
|
13765
13742
|
}
|
|
13766
13743
|
onClick && onClick(e);
|
|
13767
13744
|
}, "handleClick");
|
|
13768
|
-
return /* @__PURE__ */
|
|
13745
|
+
return /* @__PURE__ */ jsx("button", { className: styles$c.sheetBarBtn, style, disabled, onClick: handleClick, ...restProps, children });
|
|
13769
13746
|
}
|
|
13770
13747
|
__name(SheetBarButton, "SheetBarButton");
|
|
13771
13748
|
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 +13799,12 @@ function SheetBarMenu(props) {
|
|
|
13822
13799
|
statusInit();
|
|
13823
13800
|
const disposables = new DisposableCollection();
|
|
13824
13801
|
return disposables.add(setupStatusUpdate()), disposables.add(sheetBarService.registerSheetBarMenuHandler({ handleSheetBarMenu })), () => disposables.dispose();
|
|
13825
|
-
}, [setupStatusUpdate, sheetBarService, statusInit, workbook]), /* @__PURE__ */
|
|
13802
|
+
}, [setupStatusUpdate, sheetBarService, statusInit, workbook]), /* @__PURE__ */ jsx(
|
|
13826
13803
|
DropdownLegacy,
|
|
13827
13804
|
{
|
|
13828
13805
|
placement: "topLeft",
|
|
13829
13806
|
trigger: ["click"],
|
|
13830
|
-
overlay: /* @__PURE__ */
|
|
13807
|
+
overlay: /* @__PURE__ */ jsx("ul", { className: styles$b.sheetBarMenu, style: { ...style }, children: menu.map((item) => /* @__PURE__ */ jsxs(
|
|
13831
13808
|
"li",
|
|
13832
13809
|
{
|
|
13833
13810
|
onClick: /* @__PURE__ */ __name(() => handleClick(item), "onClick"),
|
|
@@ -13839,15 +13816,15 @@ function SheetBarMenu(props) {
|
|
|
13839
13816
|
${styles$b.sheetBarMenuItemHide}
|
|
13840
13817
|
` : styles$b.sheetBarMenuItem,
|
|
13841
13818
|
children: [
|
|
13842
|
-
/* @__PURE__ */
|
|
13843
|
-
/* @__PURE__ */
|
|
13819
|
+
/* @__PURE__ */ jsx("span", { className: styles$b.sheetBarMenuItemIcon, children: item.selected ? /* @__PURE__ */ jsx(CheckMarkSingle, {}) : item.hidden ? /* @__PURE__ */ jsx(EyelashSingle, {}) : /* @__PURE__ */ jsx(CheckMarkSingle, {}) }),
|
|
13820
|
+
/* @__PURE__ */ jsx("div", { className: styles$b.sheetBarMenuItemLabel, children: item.label })
|
|
13844
13821
|
]
|
|
13845
13822
|
},
|
|
13846
13823
|
item.index
|
|
13847
13824
|
)) }),
|
|
13848
13825
|
visible,
|
|
13849
13826
|
onVisibleChange,
|
|
13850
|
-
children: /* @__PURE__ */
|
|
13827
|
+
children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(SheetBarButton, { children: /* @__PURE__ */ jsx(ConvertSingle, {}) }) })
|
|
13851
13828
|
}
|
|
13852
13829
|
);
|
|
13853
13830
|
}
|
|
@@ -13870,7 +13847,7 @@ function SheetBarItem(props) {
|
|
|
13870
13847
|
const theme = themeService.getCurrentTheme(), darkTextColor = theme.textColor, lightTextColor = theme.colorWhite;
|
|
13871
13848
|
return new ColorKit(color2).isDark() ? lightTextColor : darkTextColor;
|
|
13872
13849
|
}, "getTextColor");
|
|
13873
|
-
return /* @__PURE__ */
|
|
13850
|
+
return /* @__PURE__ */ jsx(
|
|
13874
13851
|
"div",
|
|
13875
13852
|
{
|
|
13876
13853
|
"data-id": sheetId,
|
|
@@ -13883,7 +13860,7 @@ function SheetBarItem(props) {
|
|
|
13883
13860
|
color: !currentSelected && color ? getTextColor(color) : "",
|
|
13884
13861
|
boxShadow: currentSelected && color ? `0px 0px 8px rgba(0, 0, 0, 0.08), inset 0px -2px 0px 0px ${color}` : ""
|
|
13885
13862
|
},
|
|
13886
|
-
children: /* @__PURE__ */
|
|
13863
|
+
children: /* @__PURE__ */ jsx("div", { className: styles$a.slideTabDiv, children: label })
|
|
13887
13864
|
},
|
|
13888
13865
|
sheetId
|
|
13889
13866
|
);
|
|
@@ -14466,10 +14443,10 @@ function SheetBarTabs() {
|
|
|
14466
14443
|
setActiveKey(currentSubUnitId);
|
|
14467
14444
|
const sheets = workbook.getSheets(), activeSheet = workbook.getActiveSheet(), sheetListItems = sheets.filter((sheet) => !sheet.isSheetHidden()).map((sheet, index) => {
|
|
14468
14445
|
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__ */
|
|
14446
|
+
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: [
|
|
14447
|
+
/* @__PURE__ */ jsx(LockSingle, {}),
|
|
14448
|
+
/* @__PURE__ */ jsx("span", { children: sheet.getName() })
|
|
14449
|
+
] }) : /* @__PURE__ */ jsx("span", { children: sheet.getName() });
|
|
14473
14450
|
return {
|
|
14474
14451
|
sheetId: sheet.getSheetId(),
|
|
14475
14452
|
label: name,
|
|
@@ -14667,14 +14644,14 @@ function SheetBarTabs() {
|
|
|
14667
14644
|
setVisible(visible2);
|
|
14668
14645
|
}
|
|
14669
14646
|
}, "onVisibleChange");
|
|
14670
|
-
return /* @__PURE__ */
|
|
14647
|
+
return /* @__PURE__ */ jsx(
|
|
14671
14648
|
DropdownLegacy,
|
|
14672
14649
|
{
|
|
14673
14650
|
className: styles$a.slideTabItemDropdown,
|
|
14674
14651
|
visible,
|
|
14675
14652
|
align: { offset },
|
|
14676
14653
|
trigger: ["contextMenu"],
|
|
14677
|
-
overlay: /* @__PURE__ */
|
|
14654
|
+
overlay: /* @__PURE__ */ jsx(
|
|
14678
14655
|
UIMenu,
|
|
14679
14656
|
{
|
|
14680
14657
|
menuType: ContextMenuPosition.FOOTER_TABS,
|
|
@@ -14685,14 +14662,14 @@ function SheetBarTabs() {
|
|
|
14685
14662
|
}
|
|
14686
14663
|
),
|
|
14687
14664
|
onVisibleChange,
|
|
14688
|
-
children: /* @__PURE__ */
|
|
14665
|
+
children: /* @__PURE__ */ jsx(
|
|
14689
14666
|
"div",
|
|
14690
14667
|
{
|
|
14691
14668
|
className: styles$a.slideTabBarContainer,
|
|
14692
14669
|
ref: slideTabBarContainerRef,
|
|
14693
14670
|
onDragStart: /* @__PURE__ */ __name((e) => e.preventDefault(), "onDragStart"),
|
|
14694
14671
|
onContextMenu: /* @__PURE__ */ __name((e) => e.preventDefault(), "onContextMenu"),
|
|
14695
|
-
children: /* @__PURE__ */
|
|
14672
|
+
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
14673
|
}
|
|
14697
14674
|
)
|
|
14698
14675
|
}
|
|
@@ -14722,13 +14699,13 @@ const SCROLL_WIDTH = 100, SheetBar = /* @__PURE__ */ __name(() => {
|
|
|
14722
14699
|
}, "handleScrollLeft"), handleScrollRight = /* @__PURE__ */ __name(() => {
|
|
14723
14700
|
sheetBarService.setScrollX(SCROLL_WIDTH);
|
|
14724
14701
|
}, "handleScrollRight");
|
|
14725
|
-
return /* @__PURE__ */
|
|
14726
|
-
/* @__PURE__ */
|
|
14727
|
-
/* @__PURE__ */
|
|
14728
|
-
/* @__PURE__ */
|
|
14702
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$d.sheetBar, children: [
|
|
14703
|
+
/* @__PURE__ */ jsxs("div", { className: styles$d.sheetBarOptions, children: [
|
|
14704
|
+
/* @__PURE__ */ jsx(SheetBarButton, { onClick: addSheet, disabled: !(workbookCreateSheetPermission != null && workbookCreateSheetPermission.value && (workbookEditablePermission != null && workbookEditablePermission.value)), children: /* @__PURE__ */ jsx(IncreaseSingle, {}) }),
|
|
14705
|
+
/* @__PURE__ */ jsx(SheetBarMenu, {})
|
|
14729
14706
|
] }),
|
|
14730
|
-
/* @__PURE__ */
|
|
14731
|
-
(!leftScrollState || !rightScrollState) && /* @__PURE__ */
|
|
14707
|
+
/* @__PURE__ */ jsx(SheetBarTabs, {}),
|
|
14708
|
+
(!leftScrollState || !rightScrollState) && /* @__PURE__ */ jsxs(
|
|
14732
14709
|
"div",
|
|
14733
14710
|
{
|
|
14734
14711
|
className: `
|
|
@@ -14736,8 +14713,8 @@ const SCROLL_WIDTH = 100, SheetBar = /* @__PURE__ */ __name(() => {
|
|
|
14736
14713
|
${styles$d.sheetBarOptionsDivider}
|
|
14737
14714
|
`,
|
|
14738
14715
|
children: [
|
|
14739
|
-
/* @__PURE__ */
|
|
14740
|
-
/* @__PURE__ */
|
|
14716
|
+
/* @__PURE__ */ jsx(SheetBarButton, { disabled: leftScrollState, onClick: handleScrollLeft, children: /* @__PURE__ */ jsx(MoreSingle, { style: { transform: "rotateZ(180deg)" } }) }),
|
|
14717
|
+
/* @__PURE__ */ jsx(SheetBarButton, { disabled: rightScrollState, onClick: handleScrollRight, children: /* @__PURE__ */ jsx(MoreSingle, {}) })
|
|
14741
14718
|
]
|
|
14742
14719
|
}
|
|
14743
14720
|
)
|
|
@@ -14847,7 +14824,7 @@ const IStatusBarService = createIdentifier("univer.sheet-status-bar.service"), s
|
|
|
14847
14824
|
content: localeService.t("statusbar.copied")
|
|
14848
14825
|
});
|
|
14849
14826
|
}, "copyToClipboard");
|
|
14850
|
-
return /* @__PURE__ */
|
|
14827
|
+
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
14828
|
(functionDisplayNames == null ? void 0 : functionDisplayNames[item.name]) || item.name
|
|
14852
14829
|
)}: ${formateValue}` }) }, item.name) });
|
|
14853
14830
|
}, "CopyableStatisticItem");
|
|
@@ -14895,37 +14872,37 @@ const SINGLE_MODE_WIDTH = 800, ROW_COUNT_THRESHOLD = 3, StatusBar = /* @__PURE__
|
|
|
14895
14872
|
const doubleLineList = [];
|
|
14896
14873
|
showList.forEach((_2, index) => {
|
|
14897
14874
|
index % 2 === 0 && doubleLineList.push(showList.slice(index, index + 2));
|
|
14898
|
-
}), renderContent = /* @__PURE__ */
|
|
14875
|
+
}), renderContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
14899
14876
|
" ",
|
|
14900
|
-
doubleLineList.map((item, index) => /* @__PURE__ */
|
|
14901
|
-
(item == null ? void 0 : item[0]) && /* @__PURE__ */
|
|
14902
|
-
(item == null ? void 0 : item[1]) && /* @__PURE__ */
|
|
14877
|
+
doubleLineList.map((item, index) => /* @__PURE__ */ jsxs("div", { className: styles$9.statisticListColumn, children: [
|
|
14878
|
+
(item == null ? void 0 : item[0]) && /* @__PURE__ */ jsx(CopyableStatisticItem, { ...item == null ? void 0 : item[0] }, item == null ? void 0 : item[0].name),
|
|
14879
|
+
(item == null ? void 0 : item[1]) && /* @__PURE__ */ jsx(CopyableStatisticItem, { ...item == null ? void 0 : item[1] }, item == null ? void 0 : item[1].name)
|
|
14903
14880
|
] }, `stat-col-${index}`)),
|
|
14904
14881
|
" "
|
|
14905
14882
|
] });
|
|
14906
14883
|
} else
|
|
14907
|
-
renderContent = /* @__PURE__ */
|
|
14908
|
-
return show && /* @__PURE__ */
|
|
14884
|
+
renderContent = /* @__PURE__ */ jsx(Fragment, { children: showList.map((item) => /* @__PURE__ */ jsx(CopyableStatisticItem, { ...item }, item.name)) });
|
|
14885
|
+
return show && /* @__PURE__ */ jsxs(
|
|
14909
14886
|
"div",
|
|
14910
14887
|
{
|
|
14911
14888
|
className: clsx(styles$9.statusBar, {
|
|
14912
14889
|
[styles$9.singleMode]: isSingle
|
|
14913
14890
|
}),
|
|
14914
14891
|
children: [
|
|
14915
|
-
/* @__PURE__ */
|
|
14916
|
-
/* @__PURE__ */
|
|
14892
|
+
/* @__PURE__ */ jsx("div", { className: clsx(styles$9.statisticList), children: renderContent }),
|
|
14893
|
+
/* @__PURE__ */ jsx("div", { className: styles$9.statusBarDiv })
|
|
14917
14894
|
]
|
|
14918
14895
|
}
|
|
14919
14896
|
);
|
|
14920
14897
|
}, "StatusBar");
|
|
14921
14898
|
function RenderSheetFooter() {
|
|
14922
14899
|
const menuManagerService = useDependency(IMenuManagerService), workbook = useActiveWorkbook(), footerMenus = menuManagerService.getMenuByPositionKey(ContextMenuPosition.FOOTER_MENU);
|
|
14923
|
-
return workbook ? /* @__PURE__ */
|
|
14924
|
-
/* @__PURE__ */
|
|
14925
|
-
/* @__PURE__ */
|
|
14900
|
+
return workbook ? /* @__PURE__ */ jsxs("section", { className: styles$l.sheetContainer, "data-range-selector": !0, children: [
|
|
14901
|
+
/* @__PURE__ */ jsx(SheetBar, {}),
|
|
14902
|
+
/* @__PURE__ */ jsx(StatusBar, {}),
|
|
14926
14903
|
footerMenus.map((item) => {
|
|
14927
14904
|
var _a61;
|
|
14928
|
-
return (_a61 = item.children) == null ? void 0 : _a61.map((child) => (child == null ? void 0 : child.item) && /* @__PURE__ */
|
|
14905
|
+
return (_a61 = item.children) == null ? void 0 : _a61.map((child) => (child == null ? void 0 : child.item) && /* @__PURE__ */ jsx(
|
|
14929
14906
|
ToolbarItem,
|
|
14930
14907
|
{
|
|
14931
14908
|
align: {
|
|
@@ -14936,18 +14913,18 @@ function RenderSheetFooter() {
|
|
|
14936
14913
|
child.key
|
|
14937
14914
|
));
|
|
14938
14915
|
}),
|
|
14939
|
-
/* @__PURE__ */
|
|
14916
|
+
/* @__PURE__ */ jsx(CountBar, {})
|
|
14940
14917
|
] }) : null;
|
|
14941
14918
|
}
|
|
14942
14919
|
__name(RenderSheetFooter, "RenderSheetFooter");
|
|
14943
14920
|
function RenderSheetHeader() {
|
|
14944
|
-
return useHasWorkbook() ? /* @__PURE__ */
|
|
14921
|
+
return useHasWorkbook() ? /* @__PURE__ */ jsx(FormulaBar, {}) : null;
|
|
14945
14922
|
}
|
|
14946
14923
|
__name(RenderSheetHeader, "RenderSheetHeader");
|
|
14947
14924
|
function RenderSheetContent() {
|
|
14948
|
-
return useHasWorkbook() ? /* @__PURE__ */
|
|
14949
|
-
/* @__PURE__ */
|
|
14950
|
-
/* @__PURE__ */
|
|
14925
|
+
return useHasWorkbook() ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
14926
|
+
/* @__PURE__ */ jsx(EditorContainer, {}),
|
|
14927
|
+
/* @__PURE__ */ jsx(OperateContainer, {})
|
|
14951
14928
|
] }) : null;
|
|
14952
14929
|
}
|
|
14953
14930
|
__name(RenderSheetContent, "RenderSheetContent");
|
|
@@ -17378,16 +17355,16 @@ function CellAlert({ popup }) {
|
|
|
17378
17355
|
if (!alert)
|
|
17379
17356
|
return null;
|
|
17380
17357
|
const { type, title, message } = alert, iconMap = {
|
|
17381
|
-
[CellAlertType.ERROR]: /* @__PURE__ */
|
|
17382
|
-
[CellAlertType.INFO]: /* @__PURE__ */
|
|
17383
|
-
[CellAlertType.WARNING]: /* @__PURE__ */
|
|
17358
|
+
[CellAlertType.ERROR]: /* @__PURE__ */ jsx(ErrorSingle, { className: clsx(styles$8.cellAlertIcon, styles$8.cellAlertIconError) }),
|
|
17359
|
+
[CellAlertType.INFO]: /* @__PURE__ */ jsx(WarningSingle, { className: clsx(styles$8.cellAlertIcon, styles$8.cellAlertIconInfo) }),
|
|
17360
|
+
[CellAlertType.WARNING]: /* @__PURE__ */ jsx(WarningSingle, { className: clsx(styles$8.cellAlertIcon, styles$8.cellAlertIconWarning) })
|
|
17384
17361
|
};
|
|
17385
|
-
return /* @__PURE__ */
|
|
17386
|
-
/* @__PURE__ */
|
|
17362
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$8.cellAlert, children: [
|
|
17363
|
+
/* @__PURE__ */ jsxs("div", { className: styles$8.cellAlertTitle, children: [
|
|
17387
17364
|
type ? iconMap[type] : null,
|
|
17388
17365
|
title
|
|
17389
17366
|
] }),
|
|
17390
|
-
/* @__PURE__ */
|
|
17367
|
+
/* @__PURE__ */ jsx("div", { className: styles$8.cellAlertContent, children: message })
|
|
17391
17368
|
] });
|
|
17392
17369
|
}
|
|
17393
17370
|
__name(CellAlert, "CellAlert");
|
|
@@ -17467,7 +17444,7 @@ const sheetPasteOptionsWrapper = "univer-sheet-paste-options-wrapper", sheetPast
|
|
|
17467
17444
|
const iconVisible = menuHovered || menuVisible, handleClick = /* @__PURE__ */ __name((type) => {
|
|
17468
17445
|
commandService.executeCommand(SheetOptionalPasteCommand.id, { type });
|
|
17469
17446
|
}, "handleClick");
|
|
17470
|
-
return /* @__PURE__ */
|
|
17447
|
+
return /* @__PURE__ */ jsx(
|
|
17471
17448
|
"div",
|
|
17472
17449
|
{
|
|
17473
17450
|
className: styles$7.sheetPasteOptionsWrapper,
|
|
@@ -17477,8 +17454,8 @@ const sheetPasteOptionsWrapper = "univer-sheet-paste-options-wrapper", sheetPast
|
|
|
17477
17454
|
},
|
|
17478
17455
|
onMouseEnter: /* @__PURE__ */ __name(() => setMenuHovered(!0), "onMouseEnter"),
|
|
17479
17456
|
onMouseLeave: /* @__PURE__ */ __name(() => setMenuHovered(!1), "onMouseLeave"),
|
|
17480
|
-
children: /* @__PURE__ */
|
|
17481
|
-
/* @__PURE__ */
|
|
17457
|
+
children: /* @__PURE__ */ jsxs(DropdownProvider, { children: [
|
|
17458
|
+
/* @__PURE__ */ jsx(DropdownTrigger, { children: /* @__PURE__ */ jsxs(
|
|
17482
17459
|
"div",
|
|
17483
17460
|
{
|
|
17484
17461
|
className: styles$7.sheetPasteOptionsIconWrapper,
|
|
@@ -17486,33 +17463,33 @@ const sheetPasteOptionsWrapper = "univer-sheet-paste-options-wrapper", sheetPast
|
|
|
17486
17463
|
setMenuVisible(!menuVisible);
|
|
17487
17464
|
}, "onClick"),
|
|
17488
17465
|
children: [
|
|
17489
|
-
/* @__PURE__ */
|
|
17466
|
+
/* @__PURE__ */ jsx(
|
|
17490
17467
|
PasteSpecial,
|
|
17491
17468
|
{
|
|
17492
17469
|
style: { color: "#35322B" },
|
|
17493
17470
|
extend: { colorChannel1: "rgb(var(--green-700))" }
|
|
17494
17471
|
}
|
|
17495
17472
|
),
|
|
17496
|
-
iconVisible && /* @__PURE__ */
|
|
17473
|
+
iconVisible && /* @__PURE__ */ jsx(MoreDownSingle, {})
|
|
17497
17474
|
]
|
|
17498
17475
|
}
|
|
17499
17476
|
) }),
|
|
17500
|
-
/* @__PURE__ */
|
|
17477
|
+
/* @__PURE__ */ jsx(
|
|
17501
17478
|
DropdownOverlay,
|
|
17502
17479
|
{
|
|
17503
17480
|
className: clsx(styles$7.sheetPasteOptionsMenu, `
|
|
17504
17481
|
univer-border univer-border-gray-200 univer-border-solid
|
|
17505
17482
|
`),
|
|
17506
|
-
children: /* @__PURE__ */
|
|
17483
|
+
children: /* @__PURE__ */ jsx("ul", { children: SheetPasteOptions.map((item) => {
|
|
17507
17484
|
const itemType = PREDEFINED_HOOK_NAME[item.value], selected = (pasteOptionsCache == null ? void 0 : pasteOptionsCache.pasteType) === itemType;
|
|
17508
|
-
return /* @__PURE__ */
|
|
17485
|
+
return /* @__PURE__ */ jsxs(
|
|
17509
17486
|
"li",
|
|
17510
17487
|
{
|
|
17511
17488
|
onClick: /* @__PURE__ */ __name(() => handleClick(item.value), "onClick"),
|
|
17512
17489
|
className: clsx(styles$7.sheetPasteOptionsMenuItem, "hover:univer-bg-neutral-100"),
|
|
17513
17490
|
children: [
|
|
17514
|
-
/* @__PURE__ */
|
|
17515
|
-
/* @__PURE__ */
|
|
17491
|
+
/* @__PURE__ */ jsx("span", { children: selected && /* @__PURE__ */ jsx(CheckMarkSingle, { className: styles$7.sheetPasteOptionsMenuItemIcon, style: { color: "rgb(var(--green-700, #409f11))" } }) }),
|
|
17492
|
+
/* @__PURE__ */ jsx("div", { className: clsx(styles$7.sheetPasteOptionsMenuItemTitle, "univer-text-gray-700"), children: localeService.t(item.label) })
|
|
17516
17493
|
]
|
|
17517
17494
|
},
|
|
17518
17495
|
item.value
|
|
@@ -19232,11 +19209,11 @@ const mobileSheetBarContainer = "univer-mobile-sheet-bar-container", mobileSheet
|
|
|
19232
19209
|
};
|
|
19233
19210
|
function MobileSheetBar() {
|
|
19234
19211
|
const workbook = useActiveWorkbook();
|
|
19235
|
-
return workbook ? /* @__PURE__ */
|
|
19212
|
+
return workbook ? /* @__PURE__ */ jsx(MobileSheetBarImpl, { workbook }) : null;
|
|
19236
19213
|
}
|
|
19237
19214
|
__name(MobileSheetBar, "MobileSheetBar");
|
|
19238
19215
|
function MobileSheetBarImpl(props) {
|
|
19239
|
-
const { workbook } = props, [sheetList, setSheetList] = useState([]), [activeKey, setActiveKey] = useState(""), tabMapRef =
|
|
19216
|
+
const { workbook } = props, [sheetList, setSheetList] = useState([]), [activeKey, setActiveKey] = useState(""), tabMapRef = useRef(/* @__PURE__ */ new Map()), commandService = useDependency(ICommandService), updateSheetItems = useCallback(() => {
|
|
19240
19217
|
const currentSubUnitId = workbook.getActiveSheet().getSheetId(), sheets = workbook.getSheets(), activeSheet = workbook.getActiveSheet(), sheetListItems = sheets.filter((sheet) => !sheet.isSheetHidden()).map((sheet, index) => {
|
|
19241
19218
|
var _a61;
|
|
19242
19219
|
return {
|
|
@@ -19274,7 +19251,7 @@ function MobileSheetBarImpl(props) {
|
|
|
19274
19251
|
}
|
|
19275
19252
|
});
|
|
19276
19253
|
return () => disposable.dispose();
|
|
19277
|
-
}, [commandService, updateSheetItems]), /* @__PURE__ */
|
|
19254
|
+
}, [commandService, updateSheetItems]), /* @__PURE__ */ jsx("div", { className: styles$6.mobileSheetBarContainer, children: /* @__PURE__ */ jsx("div", { className: styles$6.mobileSheetBarSlider, children: sheetList.map((sheet) => /* @__PURE__ */ jsx(
|
|
19278
19255
|
"div",
|
|
19279
19256
|
{
|
|
19280
19257
|
className: clsx(
|
|
@@ -19284,7 +19261,9 @@ function MobileSheetBarImpl(props) {
|
|
|
19284
19261
|
}
|
|
19285
19262
|
),
|
|
19286
19263
|
onClick: /* @__PURE__ */ __name(() => onTabClick(sheet.sheetId), "onClick"),
|
|
19287
|
-
ref: /* @__PURE__ */ __name((element2) =>
|
|
19264
|
+
ref: /* @__PURE__ */ __name((element2) => {
|
|
19265
|
+
tabMapRef.current.set(sheet.sheetId, element2);
|
|
19266
|
+
}, "ref"),
|
|
19288
19267
|
children: sheet.label
|
|
19289
19268
|
},
|
|
19290
19269
|
sheet.sheetId
|
|
@@ -20188,8 +20167,8 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20188
20167
|
if (!workbook || !worksheet)
|
|
20189
20168
|
return null;
|
|
20190
20169
|
const unitId = workbook.getUnitId(), subUnitId = worksheet.getSheetId();
|
|
20191
|
-
return /* @__PURE__ */
|
|
20192
|
-
/* @__PURE__ */
|
|
20170
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$5.sheetPermissionPanelFooter, children: [
|
|
20171
|
+
/* @__PURE__ */ jsx(
|
|
20193
20172
|
Button,
|
|
20194
20173
|
{
|
|
20195
20174
|
type: "primary",
|
|
@@ -20298,7 +20277,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20298
20277
|
children: localeService.t("permission.button.confirm")
|
|
20299
20278
|
}
|
|
20300
20279
|
),
|
|
20301
|
-
/* @__PURE__ */
|
|
20280
|
+
/* @__PURE__ */ jsx(
|
|
20302
20281
|
Button,
|
|
20303
20282
|
{
|
|
20304
20283
|
className: styles$5.sheetPermissionPanelFooterCancel,
|
|
@@ -20326,8 +20305,8 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20326
20305
|
}), rangeErrorString = checkRangeValid(injector, transformedRange, permissionId, unitId2, subUnitId2);
|
|
20327
20306
|
onRangesChange(transformedRange, rangeErrorString);
|
|
20328
20307
|
}, "handleRangeChange");
|
|
20329
|
-
return /* @__PURE__ */
|
|
20330
|
-
/* @__PURE__ */
|
|
20308
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20309
|
+
/* @__PURE__ */ jsx(FormLayout, { className: styles$5.sheetPermissionPanelTitle, label: localeService.t("permission.panel.protectedRange"), children: RangeSelector && /* @__PURE__ */ jsx(
|
|
20331
20310
|
RangeSelector,
|
|
20332
20311
|
{
|
|
20333
20312
|
unitId,
|
|
@@ -20340,7 +20319,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20340
20319
|
actions: rangeSelectorRef.current
|
|
20341
20320
|
}
|
|
20342
20321
|
) }),
|
|
20343
|
-
/* @__PURE__ */
|
|
20322
|
+
/* @__PURE__ */ jsx(FormLayout, { className: styles$5.sheetPermissionPanelTitle, label: localeService.t("permission.panel.permissionDirection"), children: /* @__PURE__ */ jsx(
|
|
20344
20323
|
Input,
|
|
20345
20324
|
{
|
|
20346
20325
|
value: desc,
|
|
@@ -20367,8 +20346,8 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20367
20346
|
return () => {
|
|
20368
20347
|
activeSheetSubscribe.unsubscribe();
|
|
20369
20348
|
};
|
|
20370
|
-
}, []), /* @__PURE__ */
|
|
20371
|
-
/* @__PURE__ */
|
|
20349
|
+
}, []), /* @__PURE__ */ jsxs("div", { className: styles$5.permissionPanelDetailWrapper, children: [
|
|
20350
|
+
/* @__PURE__ */ jsx(
|
|
20372
20351
|
PermissionDetailMainPart,
|
|
20373
20352
|
{
|
|
20374
20353
|
onFocus: /* @__PURE__ */ __name(() => isFocusRangeSelectorSet(!0), "onFocus"),
|
|
@@ -20384,7 +20363,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20384
20363
|
rangeSelectorRef: rangeSelectorActionsRef
|
|
20385
20364
|
}
|
|
20386
20365
|
),
|
|
20387
|
-
/* @__PURE__ */
|
|
20366
|
+
/* @__PURE__ */ jsx(
|
|
20388
20367
|
ComponentContainer,
|
|
20389
20368
|
{
|
|
20390
20369
|
components: PermissionDetailUserPart2,
|
|
@@ -20398,7 +20377,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20398
20377
|
},
|
|
20399
20378
|
"user-part"
|
|
20400
20379
|
),
|
|
20401
|
-
/* @__PURE__ */
|
|
20380
|
+
/* @__PURE__ */ jsx(
|
|
20402
20381
|
PermissionDetailFooterPart,
|
|
20403
20382
|
{
|
|
20404
20383
|
permissionId: activeRule.permissionId,
|
|
@@ -20526,18 +20505,18 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20526
20505
|
}, "handleEdit"), handleChangeHeaderType = /* @__PURE__ */ __name((isCurrentSheet2) => {
|
|
20527
20506
|
setIsCurrentSheet(isCurrentSheet2);
|
|
20528
20507
|
}, "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__ */
|
|
20508
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListPanelWrapper, children: [
|
|
20509
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListPanelHeader, children: [
|
|
20510
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListPanelHeaderType, onClick: /* @__PURE__ */ __name(() => handleChangeHeaderType(!0), "onClick"), children: [
|
|
20511
|
+
/* @__PURE__ */ jsx("div", { className: clsx({ [styles$4.sheetPermissionListPanelHeaderSelect]: isCurrentSheet }), children: localeService.t("permission.panel.currentSheet") }),
|
|
20512
|
+
isCurrentSheet && /* @__PURE__ */ jsx("div", { className: styles$4.sheetPermissionListPanelHeaderTypeBottom })
|
|
20534
20513
|
] }),
|
|
20535
|
-
/* @__PURE__ */
|
|
20536
|
-
/* @__PURE__ */
|
|
20537
|
-
!isCurrentSheet && /* @__PURE__ */
|
|
20514
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListPanelHeaderType, onClick: /* @__PURE__ */ __name(() => handleChangeHeaderType(!1), "onClick"), children: [
|
|
20515
|
+
/* @__PURE__ */ jsx("div", { className: clsx({ [styles$4.sheetPermissionListPanelHeaderSelect]: !isCurrentSheet }), children: localeService.t("permission.panel.allSheet") }),
|
|
20516
|
+
!isCurrentSheet && /* @__PURE__ */ jsx("div", { className: styles$4.sheetPermissionListPanelHeaderTypeBottom })
|
|
20538
20517
|
] })
|
|
20539
20518
|
] }),
|
|
20540
|
-
(ruleList == null ? void 0 : ruleList.length) > 0 ? /* @__PURE__ */
|
|
20519
|
+
(ruleList == null ? void 0 : ruleList.length) > 0 ? /* @__PURE__ */ jsx("div", { className: styles$4.sheetPermissionListPanelContent, children: ruleList == null ? void 0 : ruleList.map((item) => {
|
|
20541
20520
|
var _a62, _b, _c, _d, _e;
|
|
20542
20521
|
const rule = allRuleMap.get(item.objectID);
|
|
20543
20522
|
if (!rule)
|
|
@@ -20552,7 +20531,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20552
20531
|
}).filter((r2) => !!r2).join(",") : "";
|
|
20553
20532
|
ruleName = `${targetName}(${rangeStr})`;
|
|
20554
20533
|
} else rule.unitType === L.Worksheet && (ruleName = targetName || "");
|
|
20555
|
-
return /* @__PURE__ */
|
|
20534
|
+
return /* @__PURE__ */ jsxs(
|
|
20556
20535
|
"div",
|
|
20557
20536
|
{
|
|
20558
20537
|
className: styles$4.sheetPermissionListItem,
|
|
@@ -20573,35 +20552,35 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20573
20552
|
}, "onMouseMove"),
|
|
20574
20553
|
onMouseLeave: /* @__PURE__ */ __name(() => currentRuleRangesSet([]), "onMouseLeave"),
|
|
20575
20554
|
children: [
|
|
20576
|
-
/* @__PURE__ */
|
|
20577
|
-
/* @__PURE__ */
|
|
20578
|
-
(hasManagerPermission || hasDeletePermission) && /* @__PURE__ */
|
|
20579
|
-
hasManagerPermission && /* @__PURE__ */
|
|
20580
|
-
hasDeletePermission && /* @__PURE__ */
|
|
20555
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListItemHeader, children: [
|
|
20556
|
+
/* @__PURE__ */ jsx(Tooltip, { title: ruleName, children: /* @__PURE__ */ jsx("div", { className: styles$4.sheetPermissionListItemHeaderName, children: ruleName }) }),
|
|
20557
|
+
(hasManagerPermission || hasDeletePermission) && /* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListItemHeaderOperator, children: [
|
|
20558
|
+
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, {}) }) }),
|
|
20559
|
+
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
20560
|
] })
|
|
20582
20561
|
] }),
|
|
20583
|
-
/* @__PURE__ */
|
|
20584
|
-
/* @__PURE__ */
|
|
20585
|
-
/* @__PURE__ */
|
|
20586
|
-
/* @__PURE__ */
|
|
20587
|
-
/* @__PURE__ */
|
|
20588
|
-
/* @__PURE__ */
|
|
20562
|
+
/* @__PURE__ */ jsx("div", { className: styles$4.sheetPermissionListItemSplit }),
|
|
20563
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListItemContent, children: [
|
|
20564
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListItemContentEdit, children: [
|
|
20565
|
+
/* @__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 }) }) }),
|
|
20566
|
+
/* @__PURE__ */ jsx("span", { className: styles$4.sheetPermissionListItemContentTitle, children: localeService.t("permission.panel.created") }),
|
|
20567
|
+
/* @__PURE__ */ jsx("span", { className: styles$4.sheetPermissionListItemContentSub, children: editPermission ? `${localeService.t("permission.panel.iCanEdit")}` : `${localeService.t("permission.panel.iCanNotEdit")}` })
|
|
20589
20568
|
] }),
|
|
20590
|
-
/* @__PURE__ */
|
|
20591
|
-
/* @__PURE__ */
|
|
20592
|
-
/* @__PURE__ */
|
|
20569
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListItemContentView, children: [
|
|
20570
|
+
/* @__PURE__ */ jsx("span", { className: styles$4.sheetPermissionListItemContentTitle, children: localeService.t("permission.panel.viewPermission") }),
|
|
20571
|
+
/* @__PURE__ */ jsx("span", { className: styles$4.sheetPermissionListItemContentSub, children: viewPermission ? `${localeService.t("permission.panel.iCanView")}` : `${localeService.t("permission.panel.iCanNotView")}` })
|
|
20593
20572
|
] }),
|
|
20594
|
-
rule.description && /* @__PURE__ */
|
|
20573
|
+
rule.description && /* @__PURE__ */ jsx(Tooltip, { title: rule.description, children: /* @__PURE__ */ jsx("div", { className: styles$4.sheetPermissionListItemContentDesc, children: rule.description }) })
|
|
20595
20574
|
] })
|
|
20596
20575
|
]
|
|
20597
20576
|
},
|
|
20598
20577
|
item.objectID
|
|
20599
20578
|
);
|
|
20600
|
-
}) }) : /* @__PURE__ */
|
|
20601
|
-
/* @__PURE__ */
|
|
20602
|
-
/* @__PURE__ */
|
|
20579
|
+
}) }) : /* @__PURE__ */ jsxs("div", { className: styles$4.sheetPermissionListEmpty, children: [
|
|
20580
|
+
/* @__PURE__ */ jsx("img", { width: 240, height: 120, src: panelListEmptyBase64, alt: "" }),
|
|
20581
|
+
/* @__PURE__ */ jsx("p", { className: styles$4.sheetPermissionListEmptyText, children: localeService.t("permission.dialog.listEmpty") })
|
|
20603
20582
|
] }),
|
|
20604
|
-
hasSetProtectPermission && /* @__PURE__ */
|
|
20583
|
+
hasSetProtectPermission && /* @__PURE__ */ jsx("div", { className: styles$4.sheetPermissionPanelAddWrapper, children: /* @__PURE__ */ jsxs(
|
|
20605
20584
|
Button,
|
|
20606
20585
|
{
|
|
20607
20586
|
className: styles$4.sheetPermissionPanelAddButton,
|
|
@@ -20618,7 +20597,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20618
20597
|
sidebarService.open(sidebarProps);
|
|
20619
20598
|
}, "onClick"),
|
|
20620
20599
|
children: [
|
|
20621
|
-
/* @__PURE__ */
|
|
20600
|
+
/* @__PURE__ */ jsx("div", { children: "+ " }),
|
|
20622
20601
|
localeService.t("permission.button.addNewPermission")
|
|
20623
20602
|
]
|
|
20624
20603
|
}
|
|
@@ -20631,7 +20610,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20631
20610
|
const target = getSheetCommandTarget(univerInstanceService);
|
|
20632
20611
|
if (!target) return null;
|
|
20633
20612
|
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__ */
|
|
20613
|
+
return showDetail ? /* @__PURE__ */ jsx(
|
|
20635
20614
|
SheetPermissionPanelDetail,
|
|
20636
20615
|
{
|
|
20637
20616
|
fromSheetBar,
|
|
@@ -20639,16 +20618,16 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20639
20618
|
oldRule
|
|
20640
20619
|
},
|
|
20641
20620
|
fromSheetBar ? "sheet-bar" : "normal"
|
|
20642
|
-
) : /* @__PURE__ */
|
|
20621
|
+
) : /* @__PURE__ */ jsx(SheetPermissionPanelList, {}, key);
|
|
20643
20622
|
}, "SheetPermissionPanel"), spinContainer = "univer-spin-container", spinOverlay = "univer-spin-overlay", spinner = "univer-spinner", spin = "univer-spin", contentBlur = "univer-content-blur", styles$3 = {
|
|
20644
20623
|
spinContainer,
|
|
20645
20624
|
spinOverlay,
|
|
20646
20625
|
spinner,
|
|
20647
20626
|
spin,
|
|
20648
20627
|
contentBlur
|
|
20649
|
-
}, Spin = /* @__PURE__ */ __name(({ loading, children }) => /* @__PURE__ */
|
|
20650
|
-
loading && /* @__PURE__ */
|
|
20651
|
-
/* @__PURE__ */
|
|
20628
|
+
}, Spin = /* @__PURE__ */ __name(({ loading, children }) => /* @__PURE__ */ jsxs("div", { className: styles$3.spinContainer, children: [
|
|
20629
|
+
loading && /* @__PURE__ */ jsx("div", { className: styles$3.spinOverlay, children: /* @__PURE__ */ jsx("div", { className: styles$3.spinner }) }),
|
|
20630
|
+
/* @__PURE__ */ jsx("div", { className: loading ? styles$3.contentBlur : "", children })
|
|
20652
20631
|
] }), "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
20632
|
sheetPermissionDialogWrapper,
|
|
20654
20633
|
sheetPermissionDialogSplit,
|
|
@@ -20737,13 +20716,13 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20737
20716
|
}
|
|
20738
20717
|
}));
|
|
20739
20718
|
}, "handleChangeActionPermission");
|
|
20740
|
-
return /* @__PURE__ */
|
|
20741
|
-
/* @__PURE__ */
|
|
20719
|
+
return /* @__PURE__ */ jsx(Spin, { loading, children: /* @__PURE__ */ jsxs("div", { className: styles$2.sheetPermissionDialogWrapper, children: [
|
|
20720
|
+
/* @__PURE__ */ jsx("div", { className: styles$2.sheetPermissionDialogSplit }),
|
|
20742
20721
|
Object.keys(permissionMap).map((action) => {
|
|
20743
20722
|
const actionItem = permissionMap[action], { text, allowed } = actionItem;
|
|
20744
|
-
return /* @__PURE__ */
|
|
20745
|
-
/* @__PURE__ */
|
|
20746
|
-
/* @__PURE__ */
|
|
20723
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$2.sheetPermissionDialogItem, children: [
|
|
20724
|
+
/* @__PURE__ */ jsx("div", { children: text }),
|
|
20725
|
+
/* @__PURE__ */ jsx(
|
|
20747
20726
|
Switch,
|
|
20748
20727
|
{
|
|
20749
20728
|
defaultChecked: allowed,
|
|
@@ -20760,9 +20739,9 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20760
20739
|
)
|
|
20761
20740
|
] }, text);
|
|
20762
20741
|
}),
|
|
20763
|
-
/* @__PURE__ */
|
|
20764
|
-
/* @__PURE__ */
|
|
20765
|
-
/* @__PURE__ */
|
|
20742
|
+
/* @__PURE__ */ jsx("div", { className: styles$2.sheetPermissionDialogSplit }),
|
|
20743
|
+
/* @__PURE__ */ jsxs("div", { className: styles$2.sheetPermissionUserDialogFooter, children: [
|
|
20744
|
+
/* @__PURE__ */ jsx(
|
|
20766
20745
|
Button,
|
|
20767
20746
|
{
|
|
20768
20747
|
className: styles$2.sheetPermissionUserDialogButton,
|
|
@@ -20772,7 +20751,7 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20772
20751
|
children: localeService.t("permission.button.cancel")
|
|
20773
20752
|
}
|
|
20774
20753
|
),
|
|
20775
|
-
/* @__PURE__ */
|
|
20754
|
+
/* @__PURE__ */ jsx(
|
|
20776
20755
|
Button,
|
|
20777
20756
|
{
|
|
20778
20757
|
type: "primary",
|
|
@@ -20816,8 +20795,8 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20816
20795
|
setSelectUserInfo(newSelectUserInfo);
|
|
20817
20796
|
}
|
|
20818
20797
|
}, "handleChangeUser");
|
|
20819
|
-
return /* @__PURE__ */
|
|
20820
|
-
/* @__PURE__ */
|
|
20798
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$1.sheetPermissionUserDialogWrapper, children: [
|
|
20799
|
+
/* @__PURE__ */ jsx("div", { className: styles$1.sheetPermissionUserDialogSearch, children: /* @__PURE__ */ jsx(
|
|
20821
20800
|
Input,
|
|
20822
20801
|
{
|
|
20823
20802
|
placeholder: localeService.t("permission.dialog.search"),
|
|
@@ -20826,24 +20805,24 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20826
20805
|
onChange: /* @__PURE__ */ __name((v) => setInputValue(v), "onChange")
|
|
20827
20806
|
}
|
|
20828
20807
|
) }),
|
|
20829
|
-
/* @__PURE__ */
|
|
20808
|
+
/* @__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
20809
|
var _a61, _b, _c;
|
|
20831
|
-
return /* @__PURE__ */
|
|
20832
|
-
/* @__PURE__ */
|
|
20833
|
-
/* @__PURE__ */
|
|
20810
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$1.sheetPermissionUserItem, onClick: /* @__PURE__ */ __name(() => handleChangeUser(item), "onClick"), children: [
|
|
20811
|
+
/* @__PURE__ */ jsx(Avatar, { src: (_a61 = item.subject) == null ? void 0 : _a61.avatar, size: 24 }),
|
|
20812
|
+
/* @__PURE__ */ jsx("div", { className: styles$1.sheetPermissionUserItemName, children: (_b = item.subject) == null ? void 0 : _b.name }),
|
|
20834
20813
|
(selectUserInfo == null ? void 0 : selectUserInfo.findIndex((v) => {
|
|
20835
20814
|
var _a62, _b2;
|
|
20836
20815
|
return ((_a62 = v.subject) == null ? void 0 : _a62.userID) === ((_b2 = item.subject) == null ? void 0 : _b2.userID);
|
|
20837
|
-
})) !== -1 && /* @__PURE__ */
|
|
20816
|
+
})) !== -1 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(CheckMarkSingle, {}) })
|
|
20838
20817
|
] }, (_c = item.subject) == null ? void 0 : _c.userID);
|
|
20839
|
-
}) }) : /* @__PURE__ */
|
|
20840
|
-
/* @__PURE__ */
|
|
20841
|
-
/* @__PURE__ */
|
|
20818
|
+
}) }) : /* @__PURE__ */ jsxs("div", { className: styles$1.sheetPermissionUserListEmpty, children: [
|
|
20819
|
+
/* @__PURE__ */ jsx("img", { width: 240, height: 120, src: UserEmptyBase64, alt: "" }),
|
|
20820
|
+
/* @__PURE__ */ jsx("p", { className: styles$1.sheetPermissionUserListEmptyText, children: localeService.t("permission.dialog.userEmpty") })
|
|
20842
20821
|
] }) }),
|
|
20843
|
-
/* @__PURE__ */
|
|
20844
|
-
/* @__PURE__ */
|
|
20845
|
-
/* @__PURE__ */
|
|
20846
|
-
/* @__PURE__ */
|
|
20822
|
+
/* @__PURE__ */ jsx("div", { className: styles$1.sheetPermissionSplit }),
|
|
20823
|
+
/* @__PURE__ */ jsxs("div", { className: styles$1.sheetPermissionUserDialogFooter, children: [
|
|
20824
|
+
/* @__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") }),
|
|
20825
|
+
/* @__PURE__ */ jsx(
|
|
20847
20826
|
Button,
|
|
20848
20827
|
{
|
|
20849
20828
|
type: "primary",
|
|
@@ -20862,10 +20841,10 @@ const checkRangeValid = /* @__PURE__ */ __name((injector, permissionRanges, perm
|
|
|
20862
20841
|
sheetPermissionAlertDialogButton
|
|
20863
20842
|
}, AlertDialog = /* @__PURE__ */ __name(({ errorMsg }) => {
|
|
20864
20843
|
const localeService = useDependency(LocaleService), dialogService = useDependency(IDialogService);
|
|
20865
|
-
return /* @__PURE__ */
|
|
20866
|
-
/* @__PURE__ */
|
|
20867
|
-
/* @__PURE__ */
|
|
20868
|
-
/* @__PURE__ */
|
|
20844
|
+
return /* @__PURE__ */ jsxs("div", { className: styles.sheetPermissionAlertDialog, children: [
|
|
20845
|
+
/* @__PURE__ */ jsx("h1", { className: styles.sheetPermissionAlertDialogTitle, children: localeService.t("permission.dialog.alert") }),
|
|
20846
|
+
/* @__PURE__ */ jsx("p", { children: errorMsg || localeService.t("permission.dialog.alertContent") }),
|
|
20847
|
+
/* @__PURE__ */ jsx("div", { className: styles.sheetPermissionAlertDialogButton, children: /* @__PURE__ */ jsx(
|
|
20869
20848
|
Button,
|
|
20870
20849
|
{
|
|
20871
20850
|
type: "primary",
|
|
@@ -20991,31 +20970,31 @@ const PermissionDetailUserPart = /* @__PURE__ */ __name((props) => {
|
|
|
20991
20970
|
})).filter((user) => user.role === S.Editor);
|
|
20992
20971
|
selectUserList2.length > 0 && onEditStateChange(EditStateEnum.DesignedUserCanEdit), sheetPermissionUserManagerService.setSelectUserList(selectUserList2), sheetPermissionUserManagerService.setOldCollaboratorList(selectUserList2);
|
|
20993
20972
|
}, "getSelectUserList"))() : (sheetPermissionUserManagerService.setSelectUserList([]), sheetPermissionUserManagerService.setOldCollaboratorList([]));
|
|
20994
|
-
}, []), /* @__PURE__ */
|
|
20995
|
-
/* @__PURE__ */
|
|
20973
|
+
}, []), /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20974
|
+
/* @__PURE__ */ jsx(FormLayout, { className: styles$5.sheetPermissionPanelTitle, label: localeService.t("permission.panel.editPermission"), children: /* @__PURE__ */ jsxs(
|
|
20996
20975
|
RadioGroup,
|
|
20997
20976
|
{
|
|
20998
20977
|
value: editState,
|
|
20999
20978
|
onChange: /* @__PURE__ */ __name((v) => onEditStateChange(v), "onChange"),
|
|
21000
20979
|
className: styles$5.radioGroupVertical,
|
|
21001
20980
|
children: [
|
|
21002
|
-
/* @__PURE__ */
|
|
21003
|
-
/* @__PURE__ */
|
|
20981
|
+
/* @__PURE__ */ jsx(Radio, { value: EditStateEnum.OnlyMe, children: /* @__PURE__ */ jsx("span", { className: styles$5.text, children: localeService.t("permission.panel.onlyICanEdit") }) }),
|
|
20982
|
+
/* @__PURE__ */ jsx(Radio, { value: EditStateEnum.DesignedUserCanEdit, children: /* @__PURE__ */ jsx("span", { className: styles$5.text, children: localeService.t("permission.panel.designedUserCanEdit") }) })
|
|
21004
20983
|
]
|
|
21005
20984
|
}
|
|
21006
20985
|
) }),
|
|
21007
|
-
editState === EditStateEnum.DesignedUserCanEdit && /* @__PURE__ */
|
|
21008
|
-
/* @__PURE__ */
|
|
21009
|
-
/* @__PURE__ */
|
|
21010
|
-
/* @__PURE__ */
|
|
20986
|
+
editState === EditStateEnum.DesignedUserCanEdit && /* @__PURE__ */ jsxs("div", { className: styles$5.sheetPermissionDesignPersonPanel, children: [
|
|
20987
|
+
/* @__PURE__ */ jsxs("div", { className: styles$5.sheetPermissionDesignPersonPanelHeader, children: [
|
|
20988
|
+
/* @__PURE__ */ jsx("span", { children: localeService.t("permission.panel.designedPerson") }),
|
|
20989
|
+
/* @__PURE__ */ jsx("span", { className: styles$5.sheetPermissionDesignPersonPanelHeaderAdd, onClick: handleAddPerson, children: localeService.t("permission.panel.addPerson") })
|
|
21011
20990
|
] }),
|
|
21012
|
-
/* @__PURE__ */
|
|
21013
|
-
/* @__PURE__ */
|
|
20991
|
+
/* @__PURE__ */ jsx("div", { className: styles$5.sheetPermissionDesignPersonPanelSplit }),
|
|
20992
|
+
/* @__PURE__ */ jsx("div", { className: styles$5.sheetPermissionDesignPersonPanelContent, children: (selectUserList == null ? void 0 : selectUserList.length) > 0 ? selectUserList.map((item) => {
|
|
21014
20993
|
var _a61, _b, _c;
|
|
21015
|
-
return /* @__PURE__ */
|
|
21016
|
-
/* @__PURE__ */
|
|
21017
|
-
/* @__PURE__ */
|
|
21018
|
-
/* @__PURE__ */
|
|
20994
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$5.sheetPermissionDesignPersonPanelContentItem, children: [
|
|
20995
|
+
/* @__PURE__ */ jsx(Avatar, { size: 24, src: (_a61 = item.subject) == null ? void 0 : _a61.avatar }),
|
|
20996
|
+
/* @__PURE__ */ jsx("span", { className: styles$5.sheetPermissionDesignPersonPanelContentItemName, children: (_b = item.subject) == null ? void 0 : _b.name }),
|
|
20997
|
+
/* @__PURE__ */ jsx(
|
|
21019
20998
|
Select,
|
|
21020
20999
|
{
|
|
21021
21000
|
className: styles$5.sheetPermissionDesignPersonPanelContentItemSelect,
|
|
@@ -21033,20 +21012,20 @@ const PermissionDetailUserPart = /* @__PURE__ */ __name((props) => {
|
|
|
21033
21012
|
}
|
|
21034
21013
|
)
|
|
21035
21014
|
] }, (_c = item.subject) == null ? void 0 : _c.userID);
|
|
21036
|
-
}) : /* @__PURE__ */
|
|
21037
|
-
/* @__PURE__ */
|
|
21038
|
-
/* @__PURE__ */
|
|
21015
|
+
}) : /* @__PURE__ */ jsxs("div", { className: styles$5.sheetPermissionUserListEmpty, children: [
|
|
21016
|
+
/* @__PURE__ */ jsx("img", { width: 240, height: 120, src: UserEmptyBase64, alt: "" }),
|
|
21017
|
+
/* @__PURE__ */ jsx("p", { className: styles$5.sheetPermissionUserListEmptyText, children: localeService.t("permission.dialog.userEmpty") })
|
|
21039
21018
|
] }) })
|
|
21040
21019
|
] }),
|
|
21041
|
-
/* @__PURE__ */
|
|
21020
|
+
/* @__PURE__ */ jsx(FormLayout, { className: styles$5.sheetPermissionPanelTitle, label: localeService.t("permission.panel.viewPermission"), children: /* @__PURE__ */ jsxs(
|
|
21042
21021
|
RadioGroup,
|
|
21043
21022
|
{
|
|
21044
21023
|
value: viewState,
|
|
21045
21024
|
onChange: /* @__PURE__ */ __name((v) => onViewStateChange(v), "onChange"),
|
|
21046
21025
|
className: styles$5.radioGroupVertical,
|
|
21047
21026
|
children: [
|
|
21048
|
-
/* @__PURE__ */
|
|
21049
|
-
/* @__PURE__ */
|
|
21027
|
+
/* @__PURE__ */ jsx(Radio, { value: ViewStateEnum.OthersCanView, children: /* @__PURE__ */ jsx("span", { className: styles$5.text, children: localeService.t("permission.panel.othersCanView") }) }),
|
|
21028
|
+
/* @__PURE__ */ jsx(Radio, { value: ViewStateEnum.NoOneElseCanView, children: /* @__PURE__ */ jsx("span", { className: styles$5.text, children: localeService.t("permission.panel.noOneElseCanView") }) })
|
|
21050
21029
|
]
|
|
21051
21030
|
}
|
|
21052
21031
|
) })
|