@univerjs/sheets-filter-ui 1.3.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.md +18 -7
  2. package/lib/cjs/config-BF97qkoE.js +309 -0
  3. package/lib/cjs/index.js +217 -465
  4. package/lib/cjs/locale/ar-SA.js +1 -2
  5. package/lib/cjs/locale/ca-ES.js +1 -2
  6. package/lib/cjs/locale/de-DE.js +1 -2
  7. package/lib/cjs/locale/en-US.js +1 -2
  8. package/lib/cjs/locale/es-ES.js +1 -2
  9. package/lib/cjs/locale/fa-IR.js +1 -2
  10. package/lib/cjs/locale/fr-FR.js +1 -2
  11. package/lib/cjs/locale/id-ID.js +1 -2
  12. package/lib/cjs/locale/it-IT.js +1 -2
  13. package/lib/cjs/locale/ja-JP.js +1 -2
  14. package/lib/cjs/locale/ko-KR.js +1 -2
  15. package/lib/cjs/locale/pl-PL.js +1 -2
  16. package/lib/cjs/locale/pt-BR.js +1 -2
  17. package/lib/cjs/locale/ru-RU.js +1 -2
  18. package/lib/cjs/locale/sk-SK.js +1 -2
  19. package/lib/cjs/locale/vi-VN.js +1 -2
  20. package/lib/cjs/locale/zh-CN.js +1 -2
  21. package/lib/cjs/locale/zh-HK.js +1 -2
  22. package/lib/cjs/locale/zh-TW.js +1 -2
  23. package/lib/cjs/worker.js +39 -0
  24. package/lib/config-CbqvVwlO.js +244 -0
  25. package/lib/es/config-CbqvVwlO.js +244 -0
  26. package/lib/es/index.js +110 -352
  27. package/lib/es/locale/ar-SA.js +1 -2
  28. package/lib/es/locale/ca-ES.js +1 -2
  29. package/lib/es/locale/de-DE.js +1 -2
  30. package/lib/es/locale/en-US.js +1 -2
  31. package/lib/es/locale/es-ES.js +1 -2
  32. package/lib/es/locale/fa-IR.js +1 -2
  33. package/lib/es/locale/fr-FR.js +1 -2
  34. package/lib/es/locale/id-ID.js +1 -2
  35. package/lib/es/locale/it-IT.js +1 -2
  36. package/lib/es/locale/ja-JP.js +1 -2
  37. package/lib/es/locale/ko-KR.js +1 -2
  38. package/lib/es/locale/pl-PL.js +1 -2
  39. package/lib/es/locale/pt-BR.js +1 -2
  40. package/lib/es/locale/ru-RU.js +1 -2
  41. package/lib/es/locale/sk-SK.js +1 -2
  42. package/lib/es/locale/vi-VN.js +1 -2
  43. package/lib/es/locale/zh-CN.js +1 -2
  44. package/lib/es/locale/zh-HK.js +1 -2
  45. package/lib/es/locale/zh-TW.js +1 -2
  46. package/lib/es/worker.js +33 -0
  47. package/lib/index.js +110 -352
  48. package/lib/locale/ar-SA.js +1 -2
  49. package/lib/locale/ca-ES.js +1 -2
  50. package/lib/locale/de-DE.js +1 -2
  51. package/lib/locale/en-US.js +1 -2
  52. package/lib/locale/es-ES.js +1 -2
  53. package/lib/locale/fa-IR.js +1 -2
  54. package/lib/locale/fr-FR.js +1 -2
  55. package/lib/locale/id-ID.js +1 -2
  56. package/lib/locale/it-IT.js +1 -2
  57. package/lib/locale/ja-JP.js +1 -2
  58. package/lib/locale/ko-KR.js +1 -2
  59. package/lib/locale/pl-PL.js +1 -2
  60. package/lib/locale/pt-BR.js +1 -2
  61. package/lib/locale/ru-RU.js +1 -2
  62. package/lib/locale/sk-SK.js +1 -2
  63. package/lib/locale/vi-VN.js +1 -2
  64. package/lib/locale/zh-CN.js +1 -2
  65. package/lib/locale/zh-HK.js +1 -2
  66. package/lib/locale/zh-TW.js +1 -2
  67. package/lib/types/__tests__/data.d.ts +2 -2
  68. package/lib/types/index.d.ts +0 -1
  69. package/lib/types/services/sheets-filter-panel.service.d.ts +1 -1
  70. package/lib/types/worker/generate-filter-values.service.d.ts +1 -1
  71. package/lib/types/worker.d.ts +16 -0
  72. package/lib/umd/index.js +5 -5
  73. package/lib/worker.js +33 -0
  74. package/package.json +21 -16
@@ -1,4 +1,4 @@
1
- //#region src/locale/ar-SA.ts
1
+ // src/locale/ar-SA.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "تبديل التصفية",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ca-ES.ts
1
+ // src/locale/ca-ES.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "Alterna el filtre",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/de-DE.ts
1
+ // src/locale/de-DE.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "Filter ein-/ausschalten",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/en-US.ts
1
+ // src/locale/en-US.ts
2
2
  /**
3
3
  * Copyright 2023-present DreamNum Co., Ltd.
4
4
  *
@@ -95,5 +95,4 @@ const locale = { "sheets-filter-ui": {
95
95
  }
96
96
  } };
97
97
 
98
- //#endregion
99
98
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/es-ES.ts
1
+ // src/locale/es-ES.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "Alternar filtro",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/fa-IR.ts
1
+ // src/locale/fa-IR.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "تغییر حالت فیلتر",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/fr-FR.ts
1
+ // src/locale/fr-FR.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "Inverser le filtre",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/id-ID.ts
1
+ // src/locale/id-ID.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "Aktifkan/Nonaktifkan Filter",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/it-IT.ts
1
+ // src/locale/it-IT.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "Attiva/disattiva filtro",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ja-JP.ts
1
+ // src/locale/ja-JP.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "フィルタの切替",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ko-KR.ts
1
+ // src/locale/ko-KR.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "필터 토글",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/pl-PL.ts
1
+ // src/locale/pl-PL.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "Przełącz filtr",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/pt-BR.ts
1
+ // src/locale/pt-BR.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "Alternar Filtro",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ru-RU.ts
1
+ // src/locale/ru-RU.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "Переключить фильтр",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/sk-SK.ts
1
+ // src/locale/sk-SK.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "Prepnúť filter",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/vi-VN.ts
1
+ // src/locale/vi-VN.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "Lọc",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-CN.ts
1
+ // src/locale/zh-CN.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "筛选",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-HK.ts
1
+ // src/locale/zh-HK.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "篩選",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-TW.ts
1
+ // src/locale/zh-TW.ts
2
2
  const locale = { "sheets-filter-ui": {
3
3
  toolbar: {
4
4
  "smart-toggle-filter-tooltip": "篩選",
@@ -80,5 +80,4 @@ const locale = { "sheets-filter-ui": {
80
80
  }
81
81
  } };
82
82
 
83
- //#endregion
84
83
  export { locale as default };
@@ -42,12 +42,12 @@ export declare const ITEMS: ({
42
42
  leaf: boolean;
43
43
  checked: boolean;
44
44
  } | {
45
+ children?: undefined;
45
46
  title: string;
46
47
  leaf: boolean;
47
48
  checked: boolean;
48
49
  key: string;
49
50
  count: number;
50
- children?: undefined;
51
51
  })[];
52
52
  export declare const ITEMS_WITH_EMPTY: {
53
53
  title: string;
@@ -78,10 +78,10 @@ export declare const E_ITEMS: ({
78
78
  leaf: boolean;
79
79
  checked: boolean;
80
80
  } | {
81
+ children?: undefined;
81
82
  title: string;
82
83
  leaf: boolean;
83
84
  checked: boolean;
84
85
  key: string;
85
86
  count: number;
86
- children?: undefined;
87
87
  })[];
@@ -20,4 +20,3 @@ export type { IUniverSheetsFilterUIConfig } from './config/config';
20
20
  export { menuSchema as SheetsFilterUIMenuSchema } from './menu/schema';
21
21
  export { UniverSheetsFilterMobileUIPlugin } from './mobile-plugin';
22
22
  export { UniverSheetsFilterUIPlugin } from './plugin';
23
- export { UniverSheetsFilterUIWorkerPlugin } from './worker/plugin';
@@ -56,7 +56,7 @@ export interface ISheetsFilterPanelService {
56
56
  changeFilterBy(filterBy: FilterBy): boolean;
57
57
  terminate(): boolean;
58
58
  }
59
- export declare const ISheetsFilterPanelService: import("@wendellhu/redi").IdentifierDecorator<ISheetsFilterPanelService>;
59
+ export declare const ISheetsFilterPanelService: import("@univerjs/core").IdentifierDecorator<ISheetsFilterPanelService>;
60
60
  export interface IFilterByModel extends IDisposable {
61
61
  canApply$: Observable<boolean>;
62
62
  deltaCol(offset: number): void;
@@ -33,7 +33,7 @@ export interface ISheetsGenerateFilterValuesService {
33
33
  }>;
34
34
  }
35
35
  export declare const SHEETS_GENERATE_FILTER_VALUES_SERVICE_NAME = "sheets-filter.generate-filter-values.service";
36
- export declare const ISheetsGenerateFilterValuesService: import("@wendellhu/redi").IdentifierDecorator<ISheetsGenerateFilterValuesService>;
36
+ export declare const ISheetsGenerateFilterValuesService: import("@univerjs/core").IdentifierDecorator<ISheetsGenerateFilterValuesService>;
37
37
  export declare class SheetsGenerateFilterValuesService extends Disposable {
38
38
  private readonly _localeService;
39
39
  private readonly _univerInstanceService;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export { UniverSheetsFilterUIWorkerPlugin } from './worker/plugin';