@univerjs/sheets-filter-ui 1.4.0 → 1.5.1
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/README.md +18 -7
- package/lib/cjs/{worker-CME9bDM7.js → config-CuFgx0Xn.js} +14 -43
- package/lib/cjs/index.js +188 -130
- package/lib/cjs/worker.js +32 -2
- package/lib/{es/worker-VROMWls7.js → config-YTXWTUKa.js} +14 -43
- package/lib/{worker-VROMWls7.js → es/config-YTXWTUKa.js} +14 -43
- package/lib/es/index.js +80 -16
- package/lib/es/worker.js +31 -1
- package/lib/index.js +80 -16
- package/lib/types/index.d.ts +0 -3
- package/lib/umd/index.js +5 -5
- package/lib/worker.js +31 -1
- package/package.json +12 -12
package/lib/cjs/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
2
|
+
const require_config = require("./config-CuFgx0Xn.js");
|
|
3
3
|
let _univerjs_core = require("@univerjs/core");
|
|
4
4
|
let _univerjs_sheets_filter = require("@univerjs/sheets-filter");
|
|
5
5
|
let _univerjs_sheets_ui = require("@univerjs/sheets-ui");
|
|
@@ -669,17 +669,17 @@ let SheetsFilterPanelService = class SheetsFilterPanelService extends _univerjs_
|
|
|
669
669
|
super();
|
|
670
670
|
this._injector = _injector;
|
|
671
671
|
this._refRangeService = _refRangeService;
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
672
|
+
require_config._defineProperty(this, "_filterBy$", new rxjs.BehaviorSubject(_univerjs_sheets_filter.FilterBy.VALUES));
|
|
673
|
+
require_config._defineProperty(this, "filterBy$", this._filterBy$.asObservable());
|
|
674
|
+
require_config._defineProperty(this, "_filterByModel$", new rxjs.ReplaySubject(1));
|
|
675
|
+
require_config._defineProperty(this, "filterByModel$", this._filterByModel$.asObservable());
|
|
676
|
+
require_config._defineProperty(this, "_filterByModel", null);
|
|
677
|
+
require_config._defineProperty(this, "_hasCriteria$", new rxjs.BehaviorSubject(false));
|
|
678
|
+
require_config._defineProperty(this, "hasCriteria$", this._hasCriteria$.asObservable());
|
|
679
|
+
require_config._defineProperty(this, "_filterModel", null);
|
|
680
|
+
require_config._defineProperty(this, "_col$", new rxjs.BehaviorSubject(-1));
|
|
681
|
+
require_config._defineProperty(this, "col$", this._col$.asObservable());
|
|
682
|
+
require_config._defineProperty(this, "_filterHeaderListener", null);
|
|
683
683
|
}
|
|
684
684
|
dispose() {
|
|
685
685
|
this._filterBy$.complete();
|
|
@@ -794,7 +794,7 @@ let SheetsFilterPanelService = class SheetsFilterPanelService extends _univerjs_
|
|
|
794
794
|
this.filterByModel = null;
|
|
795
795
|
}
|
|
796
796
|
};
|
|
797
|
-
SheetsFilterPanelService =
|
|
797
|
+
SheetsFilterPanelService = require_config.__decorate([require_config.__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_core.Injector)), require_config.__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_sheets.RefRangeService))], SheetsFilterPanelService);
|
|
798
798
|
let ByConditionsModel = _ByConditionsModel = class ByConditionsModel extends _univerjs_core.Disposable {
|
|
799
799
|
/**
|
|
800
800
|
* Create a model with targeting filter column. If there is not a filter column, the model would be created with
|
|
@@ -822,11 +822,11 @@ let ByConditionsModel = _ByConditionsModel = class ByConditionsModel extends _un
|
|
|
822
822
|
this._filterModel = _filterModel;
|
|
823
823
|
this.col = col;
|
|
824
824
|
this._commandService = _commandService;
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
825
|
+
require_config._defineProperty(this, "canApply$", (0, rxjs.of)(true));
|
|
826
|
+
require_config._defineProperty(this, "_conditionItem$", void 0);
|
|
827
|
+
require_config._defineProperty(this, "conditionItem$", void 0);
|
|
828
|
+
require_config._defineProperty(this, "_filterConditionFormParams$", void 0);
|
|
829
|
+
require_config._defineProperty(this, "filterConditionFormParams$", void 0);
|
|
830
830
|
this._conditionItem$ = new rxjs.BehaviorSubject(conditionItem);
|
|
831
831
|
this.conditionItem$ = this._conditionItem$.asObservable();
|
|
832
832
|
this._filterConditionFormParams$ = new rxjs.BehaviorSubject(conditionParams);
|
|
@@ -893,7 +893,7 @@ let ByConditionsModel = _ByConditionsModel = class ByConditionsModel extends _un
|
|
|
893
893
|
this._filterConditionFormParams$.next(newParams);
|
|
894
894
|
}
|
|
895
895
|
};
|
|
896
|
-
ByConditionsModel = _ByConditionsModel =
|
|
896
|
+
ByConditionsModel = _ByConditionsModel = require_config.__decorate([require_config.__decorateParam(4, _univerjs_core.ICommandService)], ByConditionsModel);
|
|
897
897
|
let ByValuesModel = _ByValuesModel = class ByValuesModel extends _univerjs_core.Disposable {
|
|
898
898
|
/**
|
|
899
899
|
* Create a model with targeting filter column. If there is not a filter column, the model would be created with
|
|
@@ -908,7 +908,7 @@ let ByValuesModel = _ByValuesModel = class ByValuesModel extends _univerjs_core.
|
|
|
908
908
|
static async fromFilterColumn(injector, filterModel, col) {
|
|
909
909
|
const univerInstanceService = injector.get(_univerjs_core.IUniverInstanceService);
|
|
910
910
|
const localeService = injector.get(_univerjs_core.LocaleService);
|
|
911
|
-
const generateFilterValuesService = injector.get(
|
|
911
|
+
const generateFilterValuesService = injector.get(require_config.ISheetsGenerateFilterValuesService, _univerjs_core.Quantity.OPTIONAL);
|
|
912
912
|
const { unitId, subUnitId } = filterModel;
|
|
913
913
|
const workbook = univerInstanceService.getUnit(unitId, _univerjs_core.UniverInstanceType.UNIVER_SHEET);
|
|
914
914
|
if (!workbook) throw new Error(`[ByValuesModel]: Workbook not found for filter model with unitId: ${unitId}!`);
|
|
@@ -943,7 +943,7 @@ let ByValuesModel = _ByValuesModel = class ByValuesModel extends _univerjs_core.
|
|
|
943
943
|
items = res.filterTreeItems;
|
|
944
944
|
cache = res.filterTreeMapCache;
|
|
945
945
|
} else {
|
|
946
|
-
const res =
|
|
946
|
+
const res = require_config.getFilterTreeByValueItems(!!filters, localeService, iterateRange, worksheet, filteredOutRowsByOtherColumns, filterColumn, alreadyChecked, blankChecked, workbook.getStyles());
|
|
947
947
|
items = res.filterTreeItems;
|
|
948
948
|
cache = res.filterTreeMapCache;
|
|
949
949
|
}
|
|
@@ -963,15 +963,15 @@ let ByValuesModel = _ByValuesModel = class ByValuesModel extends _univerjs_core.
|
|
|
963
963
|
this._filterModel = _filterModel;
|
|
964
964
|
this.col = col;
|
|
965
965
|
this._commandService = _commandService;
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
966
|
+
require_config._defineProperty(this, "_rawFilterItems$", void 0);
|
|
967
|
+
require_config._defineProperty(this, "rawFilterItems$", void 0);
|
|
968
|
+
require_config._defineProperty(this, "filterItems$", void 0);
|
|
969
|
+
require_config._defineProperty(this, "_filterItems", []);
|
|
970
|
+
require_config._defineProperty(this, "_treeMapCache", void 0);
|
|
971
|
+
require_config._defineProperty(this, "canApply$", void 0);
|
|
972
|
+
require_config._defineProperty(this, "_manuallyUpdateFilterItems$", void 0);
|
|
973
|
+
require_config._defineProperty(this, "_searchString$", void 0);
|
|
974
|
+
require_config._defineProperty(this, "searchString$", void 0);
|
|
975
975
|
this._treeMapCache = cache;
|
|
976
976
|
this._searchString$ = new rxjs.BehaviorSubject("");
|
|
977
977
|
this.searchString$ = this._searchString$.asObservable();
|
|
@@ -1075,7 +1075,7 @@ let ByValuesModel = _ByValuesModel = class ByValuesModel extends _univerjs_core.
|
|
|
1075
1075
|
});
|
|
1076
1076
|
}
|
|
1077
1077
|
};
|
|
1078
|
-
ByValuesModel = _ByValuesModel =
|
|
1078
|
+
ByValuesModel = _ByValuesModel = require_config.__decorate([require_config.__decorateParam(4, _univerjs_core.ICommandService)], ByValuesModel);
|
|
1079
1079
|
let ByColorsModel = _ByColorsModel = class ByColorsModel extends _univerjs_core.Disposable {
|
|
1080
1080
|
/**
|
|
1081
1081
|
* Create a model with targeting filter column. If there is not a filter column, the model would be created with
|
|
@@ -1147,11 +1147,11 @@ let ByColorsModel = _ByColorsModel = class ByColorsModel extends _univerjs_core.
|
|
|
1147
1147
|
this._filterModel = _filterModel;
|
|
1148
1148
|
this.col = col;
|
|
1149
1149
|
this._commandService = _commandService;
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1150
|
+
require_config._defineProperty(this, "canApply$", (0, rxjs.of)(true));
|
|
1151
|
+
require_config._defineProperty(this, "_cellFillColors$", void 0);
|
|
1152
|
+
require_config._defineProperty(this, "cellFillColors$", void 0);
|
|
1153
|
+
require_config._defineProperty(this, "_cellTextColors$", void 0);
|
|
1154
|
+
require_config._defineProperty(this, "cellTextColors$", void 0);
|
|
1155
1155
|
this._cellFillColors$ = new rxjs.BehaviorSubject(Array.from(cellFillColors.values()));
|
|
1156
1156
|
this.cellFillColors$ = this._cellFillColors$.asObservable();
|
|
1157
1157
|
this._cellTextColors$ = new rxjs.BehaviorSubject(Array.from(cellTextColors.values()));
|
|
@@ -1231,7 +1231,7 @@ let ByColorsModel = _ByColorsModel = class ByColorsModel extends _univerjs_core.
|
|
|
1231
1231
|
});
|
|
1232
1232
|
}
|
|
1233
1233
|
};
|
|
1234
|
-
ByColorsModel = _ByColorsModel =
|
|
1234
|
+
ByColorsModel = _ByColorsModel = require_config.__decorate([require_config.__decorateParam(4, _univerjs_core.ICommandService)], ByColorsModel);
|
|
1235
1235
|
|
|
1236
1236
|
// src/commands/operations/sheets-filter.operation.ts
|
|
1237
1237
|
const FILTER_PANEL_OPENED_KEY = "FILTER_PANEL_OPENED";
|
|
@@ -1290,10 +1290,7 @@ function SmartToggleFilterMenuItemFactory(accessor) {
|
|
|
1290
1290
|
tooltip: "sheets-filter-ui.toolbar.smart-toggle-filter-tooltip",
|
|
1291
1291
|
hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET),
|
|
1292
1292
|
activated$: sheetsFilterService.activeFilterModel$.pipe((0, rxjs.map)((model) => !!model)),
|
|
1293
|
-
disabled$:
|
|
1294
|
-
worksheetTypes: [_univerjs_sheets.WorksheetFilterPermission, _univerjs_sheets.WorksheetViewPermission],
|
|
1295
|
-
rangeTypes: [_univerjs_sheets.RangeProtectionPermissionViewPoint]
|
|
1296
|
-
}))
|
|
1293
|
+
disabled$: getFilterRangeDisabled$(accessor)
|
|
1297
1294
|
};
|
|
1298
1295
|
}
|
|
1299
1296
|
function ClearFilterCriteriaMenuItemFactory(accessor) {
|
|
@@ -1303,7 +1300,10 @@ function ClearFilterCriteriaMenuItemFactory(accessor) {
|
|
|
1303
1300
|
type: _univerjs_ui.MenuItemType.BUTTON,
|
|
1304
1301
|
title: "sheets-filter-ui.toolbar.clear-filter-criteria",
|
|
1305
1302
|
hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET),
|
|
1306
|
-
disabled$:
|
|
1303
|
+
disabled$: (0, _univerjs_sheets_ui.deriveStateFromActiveSheet$)(accessor.get(_univerjs_core.IUniverInstanceService), true, ({ worksheet }) => {
|
|
1304
|
+
if (worksheet.getConfig().type === _univerjs_core.SheetTypes.CHART) return (0, rxjs.of)(true);
|
|
1305
|
+
return sheetsFilterService.activeFilterModel$.pipe((0, rxjs.switchMap)((model) => (model === null || model === void 0 ? void 0 : model.hasCriteria$.pipe((0, rxjs.map)((hasCriteria) => !hasCriteria))) ?? (0, rxjs.of)(true)));
|
|
1306
|
+
})
|
|
1307
1307
|
};
|
|
1308
1308
|
}
|
|
1309
1309
|
function ReCalcFilterMenuItemFactory(accessor) {
|
|
@@ -1313,9 +1313,18 @@ function ReCalcFilterMenuItemFactory(accessor) {
|
|
|
1313
1313
|
type: _univerjs_ui.MenuItemType.BUTTON,
|
|
1314
1314
|
title: "sheets-filter-ui.toolbar.re-calc-filter-conditions",
|
|
1315
1315
|
hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_SHEET),
|
|
1316
|
-
disabled$:
|
|
1316
|
+
disabled$: (0, _univerjs_sheets_ui.deriveStateFromActiveSheet$)(accessor.get(_univerjs_core.IUniverInstanceService), true, ({ worksheet }) => {
|
|
1317
|
+
if (worksheet.getConfig().type === _univerjs_core.SheetTypes.CHART) return (0, rxjs.of)(true);
|
|
1318
|
+
return sheetsFilterService.activeFilterModel$.pipe((0, rxjs.switchMap)((model) => (model === null || model === void 0 ? void 0 : model.hasCriteria$.pipe((0, rxjs.map)((hasCriteria) => !hasCriteria))) ?? (0, rxjs.of)(true)));
|
|
1319
|
+
})
|
|
1317
1320
|
};
|
|
1318
1321
|
}
|
|
1322
|
+
function getFilterRangeDisabled$(accessor) {
|
|
1323
|
+
return (0, _univerjs_sheets_ui.getObservableWithExclusiveRange$)(accessor, (0, _univerjs_sheets_ui.getCurrentRangeDisable$)(accessor, {
|
|
1324
|
+
worksheetTypes: [_univerjs_sheets.WorksheetFilterPermission, _univerjs_sheets.WorksheetViewPermission],
|
|
1325
|
+
rangeTypes: [_univerjs_sheets.RangeProtectionPermissionViewPoint]
|
|
1326
|
+
}));
|
|
1327
|
+
}
|
|
1319
1328
|
|
|
1320
1329
|
// src/menu/schema.ts
|
|
1321
1330
|
const menuSchema = { [_univerjs_ui.RibbonDataGroup.ORGANIZATION]: { [_univerjs_sheets_filter.SmartToggleSheetsFilterCommand.id]: {
|
|
@@ -1372,7 +1381,7 @@ let SheetsFilterMobileMenuController = class SheetsFilterMobileMenuController ex
|
|
|
1372
1381
|
menuManagerService.mergeMenu(mobileMenuSchema);
|
|
1373
1382
|
}
|
|
1374
1383
|
};
|
|
1375
|
-
SheetsFilterMobileMenuController =
|
|
1384
|
+
SheetsFilterMobileMenuController = require_config.__decorate([require_config.__decorateParam(0, _univerjs_core.ICommandService), require_config.__decorateParam(1, _univerjs_ui.IMenuManagerService)], SheetsFilterMobileMenuController);
|
|
1376
1385
|
|
|
1377
1386
|
// src/controllers/mobile/components.controller.ts
|
|
1378
1387
|
/**
|
|
@@ -1396,7 +1405,7 @@ let MobileComponentsController = class MobileComponentsController extends _unive
|
|
|
1396
1405
|
this.disposeWithMe(iconManager.register({ FilterIcon: _univerjs_icons.FilterIcon }));
|
|
1397
1406
|
}
|
|
1398
1407
|
};
|
|
1399
|
-
MobileComponentsController =
|
|
1408
|
+
MobileComponentsController = require_config.__decorate([require_config.__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_ui.IconManager))], MobileComponentsController);
|
|
1400
1409
|
|
|
1401
1410
|
// src/views/mobile/MobileFilterByColor.tsx
|
|
1402
1411
|
function MobileColorOption(props) {
|
|
@@ -1465,6 +1474,21 @@ function MobileFilterByColor(props) {
|
|
|
1465
1474
|
}
|
|
1466
1475
|
|
|
1467
1476
|
// src/views/mobile/MobileFilterByCondition.tsx
|
|
1477
|
+
/**
|
|
1478
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1479
|
+
*
|
|
1480
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1481
|
+
* you may not use this file except in compliance with the License.
|
|
1482
|
+
* You may obtain a copy of the License at
|
|
1483
|
+
*
|
|
1484
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1485
|
+
*
|
|
1486
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1487
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1488
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1489
|
+
* See the License for the specific language governing permissions and
|
|
1490
|
+
* limitations under the License.
|
|
1491
|
+
*/
|
|
1468
1492
|
function MobileFilterByCondition(props) {
|
|
1469
1493
|
const { model } = props;
|
|
1470
1494
|
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
@@ -1494,12 +1518,14 @@ function MobileFilterByCondition(props) {
|
|
|
1494
1518
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.MobileSelect, {
|
|
1495
1519
|
value: operator,
|
|
1496
1520
|
options: secondaryOptions,
|
|
1497
|
-
onChange: (nextOperator) => model.onConditionFormChange({ [name]: nextOperator })
|
|
1521
|
+
onChange: (nextOperator) => model.onConditionFormChange({ [name]: nextOperator }),
|
|
1522
|
+
size: "small"
|
|
1498
1523
|
}),
|
|
1499
1524
|
needsValue && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Input, {
|
|
1500
1525
|
value,
|
|
1501
1526
|
placeholder: localeService.t("sheets-filter-ui.panel.input-values-placeholder"),
|
|
1502
|
-
onChange: (nextValue) => model.onConditionFormChange({ [name === "operator1" ? "val1" : "val2"]: nextValue })
|
|
1527
|
+
onChange: (nextValue) => model.onConditionFormChange({ [name === "operator1" ? "val1" : "val2"]: nextValue }),
|
|
1528
|
+
size: "small"
|
|
1503
1529
|
})
|
|
1504
1530
|
]
|
|
1505
1531
|
});
|
|
@@ -1511,7 +1537,8 @@ function MobileFilterByCondition(props) {
|
|
|
1511
1537
|
condition.numOfParameters === 1 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Input, {
|
|
1512
1538
|
value: formParams.val1 ?? "",
|
|
1513
1539
|
placeholder: localeService.t("sheets-filter-ui.panel.input-values-placeholder"),
|
|
1514
|
-
onChange: (value) => model.onConditionFormChange({ val1: value })
|
|
1540
|
+
onChange: (value) => model.onConditionFormChange({ val1: value }),
|
|
1541
|
+
size: "small"
|
|
1515
1542
|
}),
|
|
1516
1543
|
condition.numOfParameters >= 2 && renderSecondaryCondition(formParams.operator1, formParams.val1 ?? "", "operator1"),
|
|
1517
1544
|
condition.numOfParameters >= 2 && renderSecondaryCondition(formParams.operator2, formParams.val2 ?? "", "operator2"),
|
|
@@ -1553,6 +1580,21 @@ function MobileFilterByCondition(props) {
|
|
|
1553
1580
|
}
|
|
1554
1581
|
|
|
1555
1582
|
// src/views/mobile/MobileFilterByValue.tsx
|
|
1583
|
+
/**
|
|
1584
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
1585
|
+
*
|
|
1586
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1587
|
+
* you may not use this file except in compliance with the License.
|
|
1588
|
+
* You may obtain a copy of the License at
|
|
1589
|
+
*
|
|
1590
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1591
|
+
*
|
|
1592
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1593
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1594
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1595
|
+
* See the License for the specific language governing permissions and
|
|
1596
|
+
* limitations under the License.
|
|
1597
|
+
*/
|
|
1556
1598
|
function extractCheckedKeys(items) {
|
|
1557
1599
|
let checkedKeys = [];
|
|
1558
1600
|
items.forEach((item) => {
|
|
@@ -1581,7 +1623,8 @@ function MobileFilterByValue(props) {
|
|
|
1581
1623
|
className: "univer-flex-1",
|
|
1582
1624
|
value: searchText,
|
|
1583
1625
|
placeholder: searchLabel,
|
|
1584
|
-
onChange: (value) => model.setSearchString(value)
|
|
1626
|
+
onChange: (value) => model.setSearchString(value),
|
|
1627
|
+
size: "small"
|
|
1585
1628
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
1586
1629
|
type: "button",
|
|
1587
1630
|
"aria-label": localeService.t("sheets-filter-ui.panel.cancel"),
|
|
@@ -1595,7 +1638,7 @@ function MobileFilterByValue(props) {
|
|
|
1595
1638
|
},
|
|
1596
1639
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.CloseIcon, { className: "univer-size-5" })
|
|
1597
1640
|
})] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_univerjs_design.Checkbox, {
|
|
1598
|
-
className: "univer-
|
|
1641
|
+
className: "univer-flex-1",
|
|
1599
1642
|
contentClassName: "univer-flex univer-items-center univer-gap-1",
|
|
1600
1643
|
indeterminate,
|
|
1601
1644
|
disabled: items.length === 0,
|
|
@@ -1668,6 +1711,7 @@ function MobileFilterSyncSwitch() {
|
|
|
1668
1711
|
children: localeService.t(enabled ? "sheets-filter-ui.sync.statusTips.on" : "sheets-filter-ui.sync.statusTips.off")
|
|
1669
1712
|
})]
|
|
1670
1713
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Switch, {
|
|
1714
|
+
"aria-label": localeService.t("sheets-filter-ui.sync.title"),
|
|
1671
1715
|
defaultChecked: enabled,
|
|
1672
1716
|
onChange: (checked) => {
|
|
1673
1717
|
filterSyncController.setEnabled(checked);
|
|
@@ -1764,11 +1808,13 @@ function MobileSheetsFilterPanelContent() {
|
|
|
1764
1808
|
className: "univer-shrink-0 univer-border-0 univer-border-t univer-border-solid univer-border-gray-200 univer-p-4 dark:!univer-border-gray-700",
|
|
1765
1809
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_univerjs_design.MobileActionRowGroup, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
|
|
1766
1810
|
onClick: () => closePanel().catch(() => void 0),
|
|
1811
|
+
size: "middle",
|
|
1767
1812
|
children: localeService.t("sheets-filter-ui.panel.cancel")
|
|
1768
1813
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
|
|
1769
1814
|
variant: "primary",
|
|
1770
1815
|
disabled: !canApply || !filterByModel,
|
|
1771
1816
|
onClick: () => applyFilter().catch(() => void 0),
|
|
1817
|
+
size: "middle",
|
|
1772
1818
|
children: localeService.t("sheets-filter-ui.panel.confirm")
|
|
1773
1819
|
})] })
|
|
1774
1820
|
}) : void 0,
|
|
@@ -1784,10 +1830,12 @@ function MobileSheetsFilterPanelContent() {
|
|
|
1784
1830
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
|
|
1785
1831
|
disabled: !filterRange || col <= filterRange.startColumn,
|
|
1786
1832
|
onClick: () => changeColumn(-1),
|
|
1833
|
+
size: "middle",
|
|
1787
1834
|
children: localeService.t("sheets-filter-ui.panel.mobile.previous-column")
|
|
1788
1835
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
|
|
1789
1836
|
disabled: !filterRange || col >= filterRange.endColumn,
|
|
1790
1837
|
onClick: () => changeColumn(1),
|
|
1838
|
+
size: "middle",
|
|
1791
1839
|
children: localeService.t("sheets-filter-ui.panel.mobile.next-column")
|
|
1792
1840
|
})]
|
|
1793
1841
|
})]
|
|
@@ -1817,7 +1865,7 @@ function MobileSheetsFilterPanelContent() {
|
|
|
1817
1865
|
}),
|
|
1818
1866
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MobileFilterSyncSwitch, {}),
|
|
1819
1867
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Button, {
|
|
1820
|
-
size: "
|
|
1868
|
+
size: "middle",
|
|
1821
1869
|
disabled: !hasCriteria || !filterByModel,
|
|
1822
1870
|
onClick: () => clearFilter().catch(() => void 0),
|
|
1823
1871
|
children: localeService.t("sheets-filter-ui.panel.clear-filter")
|
|
@@ -1878,10 +1926,10 @@ let SheetsFilterButtonShape = class SheetsFilterButtonShape extends _univerjs_en
|
|
|
1878
1926
|
this._contextService = _contextService;
|
|
1879
1927
|
this._commandService = _commandService;
|
|
1880
1928
|
this._themeService = _themeService;
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1929
|
+
require_config._defineProperty(this, "_cellWidth", 0);
|
|
1930
|
+
require_config._defineProperty(this, "_cellHeight", 0);
|
|
1931
|
+
require_config._defineProperty(this, "_filterParams", void 0);
|
|
1932
|
+
require_config._defineProperty(this, "_hovered", false);
|
|
1885
1933
|
this.setShapeProps(props);
|
|
1886
1934
|
this.onPointerDown$.subscribeEvent((evt) => this.onPointerDown(evt));
|
|
1887
1935
|
this.onPointerEnter$.subscribeEvent(() => this.onPointerEnter());
|
|
@@ -1933,10 +1981,10 @@ let SheetsFilterButtonShape = class SheetsFilterButtonShape extends _univerjs_en
|
|
|
1933
1981
|
this.makeDirty(true);
|
|
1934
1982
|
}
|
|
1935
1983
|
};
|
|
1936
|
-
SheetsFilterButtonShape =
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1984
|
+
SheetsFilterButtonShape = require_config.__decorate([
|
|
1985
|
+
require_config.__decorateParam(2, _univerjs_core.IContextService),
|
|
1986
|
+
require_config.__decorateParam(3, _univerjs_core.ICommandService),
|
|
1987
|
+
require_config.__decorateParam(4, (0, _univerjs_core.Inject)(_univerjs_core.ThemeService))
|
|
1940
1988
|
], SheetsFilterButtonShape);
|
|
1941
1989
|
|
|
1942
1990
|
// src/views/render-modules/sheets-filter.render-controller.ts
|
|
@@ -1961,10 +2009,10 @@ let SheetsFilterRenderController = class SheetsFilterRenderController extends _u
|
|
|
1961
2009
|
this._sheetInterceptorService = _sheetInterceptorService;
|
|
1962
2010
|
this._commandService = _commandService;
|
|
1963
2011
|
this._selectionRenderService = _selectionRenderService;
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
2012
|
+
require_config._defineProperty(this, "_currentRenderParams", null);
|
|
2013
|
+
require_config._defineProperty(this, "_filterRangeShape", null);
|
|
2014
|
+
require_config._defineProperty(this, "_buttonRenderDisposable", null);
|
|
2015
|
+
require_config._defineProperty(this, "_filterButtonShapes", []);
|
|
1968
2016
|
this._initRenderer();
|
|
1969
2017
|
}
|
|
1970
2018
|
dispose() {
|
|
@@ -2089,14 +2137,14 @@ let SheetsFilterRenderController = class SheetsFilterRenderController extends _u
|
|
|
2089
2137
|
this._filterButtonShapes = [];
|
|
2090
2138
|
}
|
|
2091
2139
|
};
|
|
2092
|
-
SheetsFilterRenderController =
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2140
|
+
SheetsFilterRenderController = require_config.__decorate([
|
|
2141
|
+
require_config.__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_core.Injector)),
|
|
2142
|
+
require_config.__decorateParam(2, (0, _univerjs_core.Inject)(_univerjs_sheets_ui.SheetSkeletonManagerService)),
|
|
2143
|
+
require_config.__decorateParam(3, (0, _univerjs_core.Inject)(_univerjs_sheets_filter.SheetsFilterService)),
|
|
2144
|
+
require_config.__decorateParam(4, (0, _univerjs_core.Inject)(_univerjs_core.ThemeService)),
|
|
2145
|
+
require_config.__decorateParam(5, (0, _univerjs_core.Inject)(_univerjs_sheets.SheetInterceptorService)),
|
|
2146
|
+
require_config.__decorateParam(6, _univerjs_core.ICommandService),
|
|
2147
|
+
require_config.__decorateParam(7, _univerjs_sheets_ui.ISheetSelectionRenderService)
|
|
2100
2148
|
], SheetsFilterRenderController);
|
|
2101
2149
|
|
|
2102
2150
|
// src/controllers/mobile/ui.controller.ts
|
|
@@ -2128,15 +2176,15 @@ let SheetsFilterUIMobileController = class SheetsFilterUIMobileController extend
|
|
|
2128
2176
|
}));
|
|
2129
2177
|
}
|
|
2130
2178
|
};
|
|
2131
|
-
SheetsFilterUIMobileController =
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2179
|
+
SheetsFilterUIMobileController = require_config.__decorate([
|
|
2180
|
+
require_config.__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_core.Injector)),
|
|
2181
|
+
require_config.__decorateParam(1, _univerjs_core.ICommandService),
|
|
2182
|
+
require_config.__decorateParam(2, (0, _univerjs_core.Inject)(_univerjs_core.LocaleService)),
|
|
2183
|
+
require_config.__decorateParam(3, (0, _univerjs_core.Inject)(_univerjs_sheets_filter.SheetsFilterService)),
|
|
2184
|
+
require_config.__decorateParam(4, _univerjs_ui.IMessageService),
|
|
2185
|
+
require_config.__decorateParam(5, _univerjs_ui.IUIPartsService),
|
|
2186
|
+
require_config.__decorateParam(6, _univerjs_engine_render.IRenderManagerService),
|
|
2187
|
+
require_config.__decorateParam(7, (0, _univerjs_core.Inject)(_univerjs_sheets_ui.SheetsRenderService))
|
|
2140
2188
|
], SheetsFilterUIMobileController);
|
|
2141
2189
|
|
|
2142
2190
|
// src/controllers/sheets-filter-permission.controller.ts
|
|
@@ -2205,25 +2253,25 @@ let SheetsFilterPermissionController = class SheetsFilterPermissionController ex
|
|
|
2205
2253
|
}));
|
|
2206
2254
|
}
|
|
2207
2255
|
};
|
|
2208
|
-
SheetsFilterPermissionController =
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2256
|
+
SheetsFilterPermissionController = require_config.__decorate([
|
|
2257
|
+
require_config.__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_sheets_filter.SheetsFilterService)),
|
|
2258
|
+
require_config.__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_core.LocaleService)),
|
|
2259
|
+
require_config.__decorateParam(2, _univerjs_core.ICommandService),
|
|
2260
|
+
require_config.__decorateParam(3, (0, _univerjs_core.Inject)(_univerjs_sheets.SheetPermissionCheckController)),
|
|
2261
|
+
require_config.__decorateParam(4, (0, _univerjs_core.Inject)(_univerjs_core.Injector)),
|
|
2262
|
+
require_config.__decorateParam(5, (0, _univerjs_core.Inject)(_univerjs_sheets.SheetsSelectionsService))
|
|
2215
2263
|
], SheetsFilterPermissionController);
|
|
2216
2264
|
|
|
2217
2265
|
// src/mobile-plugin.ts
|
|
2218
2266
|
let UniverSheetsFilterMobileUIPlugin = class UniverSheetsFilterMobileUIPlugin extends _univerjs_core.Plugin {
|
|
2219
|
-
constructor(_config =
|
|
2267
|
+
constructor(_config = require_config.defaultPluginConfig, _injector, _configService) {
|
|
2220
2268
|
super();
|
|
2221
2269
|
this._config = _config;
|
|
2222
2270
|
this._injector = _injector;
|
|
2223
2271
|
this._configService = _configService;
|
|
2224
|
-
const { menu, ...rest } = (0, _univerjs_core.merge)({},
|
|
2272
|
+
const { menu, ...rest } = (0, _univerjs_core.merge)({}, require_config.defaultPluginConfig, this._config);
|
|
2225
2273
|
if (menu) this._configService.setConfig("menu", menu, { merge: true });
|
|
2226
|
-
this._configService.setConfig(
|
|
2274
|
+
this._configService.setConfig(require_config.SHEETS_FILTER_UI_PLUGIN_CONFIG_KEY, rest);
|
|
2227
2275
|
}
|
|
2228
2276
|
onStarting() {
|
|
2229
2277
|
this._injector.add([MobileComponentsController]);
|
|
@@ -2243,14 +2291,14 @@ let UniverSheetsFilterMobileUIPlugin = class UniverSheetsFilterMobileUIPlugin ex
|
|
|
2243
2291
|
this._injector.get(SheetsFilterUIMobileController);
|
|
2244
2292
|
}
|
|
2245
2293
|
};
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
UniverSheetsFilterMobileUIPlugin =
|
|
2294
|
+
require_config._defineProperty(UniverSheetsFilterMobileUIPlugin, "type", _univerjs_core.UniverInstanceType.UNIVER_SHEET);
|
|
2295
|
+
require_config._defineProperty(UniverSheetsFilterMobileUIPlugin, "pluginName", "SHEET_FILTER_UI_PLUGIN");
|
|
2296
|
+
require_config._defineProperty(UniverSheetsFilterMobileUIPlugin, "packageName", require_config.name);
|
|
2297
|
+
require_config._defineProperty(UniverSheetsFilterMobileUIPlugin, "version", require_config.version);
|
|
2298
|
+
UniverSheetsFilterMobileUIPlugin = require_config.__decorate([
|
|
2251
2299
|
(0, _univerjs_core.DependentOn)(_univerjs_engine_render.UniverRenderEnginePlugin, _univerjs_sheets.UniverSheetsPlugin, _univerjs_ui.UniverMobileUIPlugin, _univerjs_sheets_filter.UniverSheetsFilterPlugin, _univerjs_sheets_ui.UniverSheetsMobileUIPlugin),
|
|
2252
|
-
|
|
2253
|
-
|
|
2300
|
+
require_config.__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_core.Injector)),
|
|
2301
|
+
require_config.__decorateParam(2, _univerjs_core.IConfigService)
|
|
2254
2302
|
], UniverSheetsFilterMobileUIPlugin);
|
|
2255
2303
|
|
|
2256
2304
|
// src/views/components/SheetsFilterByColorsPanel.tsx
|
|
@@ -2550,6 +2598,21 @@ function FilterByValue(props) {
|
|
|
2550
2598
|
}
|
|
2551
2599
|
|
|
2552
2600
|
// src/views/components/SheetsFilterSyncSwitch.tsx
|
|
2601
|
+
/**
|
|
2602
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
2603
|
+
*
|
|
2604
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2605
|
+
* you may not use this file except in compliance with the License.
|
|
2606
|
+
* You may obtain a copy of the License at
|
|
2607
|
+
*
|
|
2608
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2609
|
+
*
|
|
2610
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2611
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2612
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2613
|
+
* See the License for the specific language governing permissions and
|
|
2614
|
+
* limitations under the License.
|
|
2615
|
+
*/
|
|
2553
2616
|
function FilterSyncSwitch() {
|
|
2554
2617
|
const sheetsFilterSyncController = (0, _univerjs_ui.useDependency)(_univerjs_sheets_filter.SheetsFilterSyncController);
|
|
2555
2618
|
const visible = (0, _univerjs_ui.useObservable)(sheetsFilterSyncController.visible$, void 0, true);
|
|
@@ -2567,6 +2630,7 @@ function FilterSyncSwitch() {
|
|
|
2567
2630
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.InfoIcon, { className: "univer-block" })
|
|
2568
2631
|
})]
|
|
2569
2632
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Switch, {
|
|
2633
|
+
"aria-label": localeService.t("sheets-filter-ui.sync.title"),
|
|
2570
2634
|
defaultChecked: enabled,
|
|
2571
2635
|
onChange: (checked) => {
|
|
2572
2636
|
const message = checked ? localeService.t("sheets-filter-ui.sync.switchTips.on") : localeService.t("sheets-filter-ui.sync.switchTips.off");
|
|
@@ -2717,7 +2781,7 @@ let ComponentsController = class ComponentsController extends _univerjs_core.Dis
|
|
|
2717
2781
|
});
|
|
2718
2782
|
}
|
|
2719
2783
|
};
|
|
2720
|
-
ComponentsController =
|
|
2784
|
+
ComponentsController = require_config.__decorate([require_config.__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_ui.ComponentManager)), require_config.__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_ui.IconManager))], ComponentsController);
|
|
2721
2785
|
|
|
2722
2786
|
// src/controllers/sheets-filter.shortcut.ts
|
|
2723
2787
|
const SmartToggleFilterShortcut = {
|
|
@@ -2743,7 +2807,7 @@ let SheetsFilterUIDesktopController = class SheetsFilterUIDesktopController exte
|
|
|
2743
2807
|
this._menuManagerService = _menuManagerService;
|
|
2744
2808
|
this._contextService = _contextService;
|
|
2745
2809
|
this._messageService = _messageService;
|
|
2746
|
-
|
|
2810
|
+
require_config._defineProperty(this, "_popupDisposable", void 0);
|
|
2747
2811
|
[
|
|
2748
2812
|
_univerjs_sheets_filter.SetSheetsFilterRangeMutation,
|
|
2749
2813
|
_univerjs_sheets_filter.SetSheetsFilterCriteriaMutation,
|
|
@@ -2811,32 +2875,32 @@ let SheetsFilterUIDesktopController = class SheetsFilterUIDesktopController exte
|
|
|
2811
2875
|
this._popupDisposable = null;
|
|
2812
2876
|
}
|
|
2813
2877
|
};
|
|
2814
|
-
SheetsFilterUIDesktopController =
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2878
|
+
SheetsFilterUIDesktopController = require_config.__decorate([
|
|
2879
|
+
require_config.__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_core.Injector)),
|
|
2880
|
+
require_config.__decorateParam(1, ISheetsFilterPanelService),
|
|
2881
|
+
require_config.__decorateParam(2, (0, _univerjs_core.Inject)(_univerjs_sheets_ui.SheetCanvasPopManagerService)),
|
|
2882
|
+
require_config.__decorateParam(3, (0, _univerjs_core.Inject)(_univerjs_sheets_filter.SheetsFilterService)),
|
|
2883
|
+
require_config.__decorateParam(4, (0, _univerjs_core.Inject)(_univerjs_core.LocaleService)),
|
|
2884
|
+
require_config.__decorateParam(5, _univerjs_ui.IShortcutService),
|
|
2885
|
+
require_config.__decorateParam(6, _univerjs_core.ICommandService),
|
|
2886
|
+
require_config.__decorateParam(7, _univerjs_ui.IMenuManagerService),
|
|
2887
|
+
require_config.__decorateParam(8, _univerjs_core.IContextService),
|
|
2888
|
+
require_config.__decorateParam(9, _univerjs_ui.IMessageService),
|
|
2889
|
+
require_config.__decorateParam(10, (0, _univerjs_core.Inject)(_univerjs_sheets_ui.SheetsRenderService)),
|
|
2890
|
+
require_config.__decorateParam(11, _univerjs_engine_render.IRenderManagerService)
|
|
2827
2891
|
], SheetsFilterUIDesktopController);
|
|
2828
2892
|
|
|
2829
2893
|
// src/plugin.ts
|
|
2830
2894
|
let UniverSheetsFilterUIPlugin = class UniverSheetsFilterUIPlugin extends _univerjs_core.Plugin {
|
|
2831
|
-
constructor(_config =
|
|
2895
|
+
constructor(_config = require_config.defaultPluginConfig, _injector, _configService, _rpcChannelService) {
|
|
2832
2896
|
super();
|
|
2833
2897
|
this._config = _config;
|
|
2834
2898
|
this._injector = _injector;
|
|
2835
2899
|
this._configService = _configService;
|
|
2836
2900
|
this._rpcChannelService = _rpcChannelService;
|
|
2837
|
-
const { menu, ...rest } = (0, _univerjs_core.merge)({},
|
|
2901
|
+
const { menu, ...rest } = (0, _univerjs_core.merge)({}, require_config.defaultPluginConfig, this._config);
|
|
2838
2902
|
if (menu) this._configService.setConfig("menu", menu, { merge: true });
|
|
2839
|
-
this._configService.setConfig(
|
|
2903
|
+
this._configService.setConfig(require_config.SHEETS_FILTER_UI_PLUGIN_CONFIG_KEY, rest);
|
|
2840
2904
|
}
|
|
2841
2905
|
onStarting() {
|
|
2842
2906
|
this._injector.add([ComponentsController]);
|
|
@@ -2846,7 +2910,7 @@ let UniverSheetsFilterUIPlugin = class UniverSheetsFilterUIPlugin extends _unive
|
|
|
2846
2910
|
[SheetsFilterPermissionController],
|
|
2847
2911
|
[SheetsFilterUIDesktopController]
|
|
2848
2912
|
]);
|
|
2849
|
-
if (this._config.useRemoteFilterValuesGenerator && this._rpcChannelService) this._injector.add([
|
|
2913
|
+
if (this._config.useRemoteFilterValuesGenerator && this._rpcChannelService) this._injector.add([require_config.ISheetsGenerateFilterValuesService, { useFactory: () => (0, _univerjs_rpc.toModule)(this._rpcChannelService.requestChannel(require_config.SHEETS_GENERATE_FILTER_VALUES_SERVICE_NAME)) }]);
|
|
2850
2914
|
}
|
|
2851
2915
|
onReady() {
|
|
2852
2916
|
(0, _univerjs_core.touchDependencies)(this._injector, [[SheetsFilterPermissionController]]);
|
|
@@ -2855,15 +2919,15 @@ let UniverSheetsFilterUIPlugin = class UniverSheetsFilterUIPlugin extends _unive
|
|
|
2855
2919
|
(0, _univerjs_core.touchDependencies)(this._injector, [[SheetsFilterUIDesktopController]]);
|
|
2856
2920
|
}
|
|
2857
2921
|
};
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
UniverSheetsFilterUIPlugin =
|
|
2922
|
+
require_config._defineProperty(UniverSheetsFilterUIPlugin, "type", _univerjs_core.UniverInstanceType.UNIVER_SHEET);
|
|
2923
|
+
require_config._defineProperty(UniverSheetsFilterUIPlugin, "pluginName", "SHEET_FILTER_UI_PLUGIN");
|
|
2924
|
+
require_config._defineProperty(UniverSheetsFilterUIPlugin, "packageName", require_config.name);
|
|
2925
|
+
require_config._defineProperty(UniverSheetsFilterUIPlugin, "version", require_config.version);
|
|
2926
|
+
UniverSheetsFilterUIPlugin = require_config.__decorate([
|
|
2863
2927
|
(0, _univerjs_core.DependentOn)(_univerjs_engine_render.UniverRenderEnginePlugin, _univerjs_sheets.UniverSheetsPlugin, _univerjs_sheets_filter.UniverSheetsFilterPlugin, _univerjs_sheets_ui.UniverSheetsUIPlugin),
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2928
|
+
require_config.__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_core.Injector)),
|
|
2929
|
+
require_config.__decorateParam(2, _univerjs_core.IConfigService),
|
|
2930
|
+
require_config.__decorateParam(3, (0, _univerjs_core.Optional)(_univerjs_rpc.IRPCChannelService))
|
|
2867
2931
|
], UniverSheetsFilterUIPlugin);
|
|
2868
2932
|
|
|
2869
2933
|
exports.ChangeFilterByOperation = ChangeFilterByOperation;
|
|
@@ -2881,10 +2945,4 @@ Object.defineProperty(exports, "UniverSheetsFilterUIPlugin", {
|
|
|
2881
2945
|
get: function () {
|
|
2882
2946
|
return UniverSheetsFilterUIPlugin;
|
|
2883
2947
|
}
|
|
2884
|
-
});
|
|
2885
|
-
Object.defineProperty(exports, "UniverSheetsFilterUIWorkerPlugin", {
|
|
2886
|
-
enumerable: true,
|
|
2887
|
-
get: function () {
|
|
2888
|
-
return require_worker.UniverSheetsFilterUIWorkerPlugin;
|
|
2889
|
-
}
|
|
2890
2948
|
});
|