@univerjs/sheets-data-validation-ui 0.25.0-insiders.20260623-012b5a8 → 0.25.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/LICENSE +176 -0
- package/lib/cjs/index.js +99 -98
- package/lib/cjs/locale/ar-SA.js +0 -1
- package/lib/cjs/locale/ca-ES.js +0 -1
- package/lib/cjs/locale/de-DE.js +0 -1
- package/lib/cjs/locale/en-US.js +0 -1
- package/lib/cjs/locale/es-ES.js +0 -1
- package/lib/cjs/locale/fa-IR.js +0 -1
- package/lib/cjs/locale/fr-FR.js +0 -1
- package/lib/cjs/locale/id-ID.js +0 -1
- package/lib/cjs/locale/it-IT.js +0 -1
- package/lib/cjs/locale/ja-JP.js +0 -1
- package/lib/cjs/locale/ko-KR.js +0 -1
- package/lib/cjs/locale/pl-PL.js +0 -1
- package/lib/cjs/locale/pt-BR.js +0 -1
- package/lib/cjs/locale/ru-RU.js +0 -1
- package/lib/cjs/locale/sk-SK.js +0 -1
- package/lib/cjs/locale/vi-VN.js +0 -1
- package/lib/cjs/locale/zh-CN.js +0 -1
- package/lib/cjs/locale/zh-HK.js +0 -1
- package/lib/cjs/locale/zh-TW.js +0 -1
- package/lib/es/index.js +100 -105
- package/lib/es/locale/ar-SA.js +0 -1
- package/lib/es/locale/ca-ES.js +0 -1
- package/lib/es/locale/de-DE.js +0 -1
- package/lib/es/locale/en-US.js +0 -1
- package/lib/es/locale/es-ES.js +0 -1
- package/lib/es/locale/fa-IR.js +0 -1
- package/lib/es/locale/fr-FR.js +0 -1
- package/lib/es/locale/id-ID.js +0 -1
- package/lib/es/locale/it-IT.js +0 -1
- package/lib/es/locale/ja-JP.js +0 -1
- package/lib/es/locale/ko-KR.js +0 -1
- package/lib/es/locale/pl-PL.js +0 -1
- package/lib/es/locale/pt-BR.js +0 -1
- package/lib/es/locale/ru-RU.js +0 -1
- package/lib/es/locale/sk-SK.js +0 -1
- package/lib/es/locale/vi-VN.js +0 -1
- package/lib/es/locale/zh-CN.js +0 -1
- package/lib/es/locale/zh-HK.js +0 -1
- package/lib/es/locale/zh-TW.js +0 -1
- package/lib/index.js +100 -105
- package/lib/locale/ar-SA.js +0 -1
- package/lib/locale/ca-ES.js +0 -1
- package/lib/locale/de-DE.js +0 -1
- package/lib/locale/en-US.js +0 -1
- package/lib/locale/es-ES.js +0 -1
- package/lib/locale/fa-IR.js +0 -1
- package/lib/locale/fr-FR.js +0 -1
- package/lib/locale/id-ID.js +0 -1
- package/lib/locale/it-IT.js +0 -1
- package/lib/locale/ja-JP.js +0 -1
- package/lib/locale/ko-KR.js +0 -1
- package/lib/locale/pl-PL.js +0 -1
- package/lib/locale/pt-BR.js +0 -1
- package/lib/locale/ru-RU.js +0 -1
- package/lib/locale/sk-SK.js +0 -1
- package/lib/locale/vi-VN.js +0 -1
- package/lib/locale/zh-CN.js +0 -1
- package/lib/locale/zh-HK.js +0 -1
- package/lib/locale/zh-TW.js +0 -1
- package/lib/types/controllers/dv-alert.controller.d.ts +4 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +0 -3
- package/lib/types/menu/dv.menu.d.ts +3 -4
- package/lib/types/services/dropdown-manager.service.d.ts +5 -1
- package/lib/types/views/components/{DataValidationPanel.d.ts → detail/index.d.ts} +1 -1
- package/lib/types/views/components/formula-input/BaseFormulaInput.d.ts +2 -2
- package/lib/types/views/components/formula-input/CheckboxFormulaInput.d.ts +2 -2
- package/lib/types/views/components/formula-input/CustomFormulaInput.d.ts +2 -2
- package/lib/types/views/components/formula-input/ListFormulaInput.d.ts +2 -2
- package/lib/types/views/components/formula-input/formula-input.d.ts +1 -1
- package/lib/types/views/components/formula-input/index.d.ts +1 -1
- package/lib/types/views/components/index.d.ts +1 -1
- package/lib/types/views/components/{DataValidationItem.d.ts → item/index.d.ts} +1 -2
- package/lib/types/views/components/{DataValidationList.d.ts → list/index.d.ts} +1 -1
- package/lib/types/views/components/{DataValidationOptions.d.ts → options/index.d.ts} +1 -1
- package/lib/types/views/components/{DataValidationDetail.d.ts → panel/index.d.ts} +1 -1
- package/lib/types/views/components/{ListRenderModeInput.d.ts → render-mode/index.d.ts} +1 -1
- package/lib/types/views/components/{DateShowTimeOption.d.ts → show-time/index.d.ts} +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
- package/lib/types/controllers/components.controller.d.ts +0 -23
- package/lib/types/locale/types.d.ts +0 -18
- package/lib/types/views/components/formula-input/interface.d.ts +0 -28
- /package/lib/types/controllers/{ui.controller.d.ts → dv-ui.controller.d.ts} +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
package/lib/cjs/index.js
CHANGED
|
@@ -45,10 +45,10 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
45
45
|
|
|
46
46
|
//#region package.json
|
|
47
47
|
var name = "@univerjs/sheets-data-validation-ui";
|
|
48
|
-
var version = "0.25.
|
|
48
|
+
var version = "0.25.1";
|
|
49
49
|
|
|
50
50
|
//#endregion
|
|
51
|
-
//#region \0@oxc-project+runtime@0.
|
|
51
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
|
|
52
52
|
function _typeof(o) {
|
|
53
53
|
"@babel/helpers - typeof";
|
|
54
54
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -59,7 +59,7 @@ function _typeof(o) {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
//#endregion
|
|
62
|
-
//#region \0@oxc-project+runtime@0.
|
|
62
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
|
|
63
63
|
function toPrimitive(t, r) {
|
|
64
64
|
if ("object" != _typeof(t) || !t) return t;
|
|
65
65
|
var e = t[Symbol.toPrimitive];
|
|
@@ -72,14 +72,14 @@ function toPrimitive(t, r) {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
//#endregion
|
|
75
|
-
//#region \0@oxc-project+runtime@0.
|
|
75
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
|
|
76
76
|
function toPropertyKey(t) {
|
|
77
77
|
var i = toPrimitive(t, "string");
|
|
78
78
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
//#endregion
|
|
82
|
-
//#region \0@oxc-project+runtime@0.
|
|
82
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
|
|
83
83
|
function _defineProperty(e, r, t) {
|
|
84
84
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
85
85
|
value: t,
|
|
@@ -90,7 +90,7 @@ function _defineProperty(e, r, t) {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
//#endregion
|
|
93
|
-
//#region \0@oxc-project+runtime@0.
|
|
93
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorateParam.js
|
|
94
94
|
function __decorateParam(paramIndex, decorator) {
|
|
95
95
|
return function(target, key) {
|
|
96
96
|
decorator(target, key, paramIndex);
|
|
@@ -98,7 +98,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
//#endregion
|
|
101
|
-
//#region \0@oxc-project+runtime@0.
|
|
101
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
|
|
102
102
|
function __decorate(decorators, target, key, desc) {
|
|
103
103
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
104
104
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -199,6 +199,21 @@ const DROP_DOWN_DEFAULT_COLOR = "#ECECEC";
|
|
|
199
199
|
|
|
200
200
|
//#endregion
|
|
201
201
|
//#region src/controllers/dv-reject-input.controller.ts
|
|
202
|
+
/**
|
|
203
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
204
|
+
*
|
|
205
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
206
|
+
* you may not use this file except in compliance with the License.
|
|
207
|
+
* You may obtain a copy of the License at
|
|
208
|
+
*
|
|
209
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
210
|
+
*
|
|
211
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
212
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
213
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
214
|
+
* See the License for the specific language governing permissions and
|
|
215
|
+
* limitations under the License.
|
|
216
|
+
*/
|
|
202
217
|
let DataValidationRejectInputController = class DataValidationRejectInputController extends _univerjs_core.Disposable {
|
|
203
218
|
constructor(_sheetInterceptorService, _dataValidationModel, _dataValidatorRegistryService, _dialogService, _localeService, _sheetsDataValidationValidatorService) {
|
|
204
219
|
super();
|
|
@@ -288,10 +303,11 @@ let DataValidationDropdownManagerService = class DataValidationDropdownManagerSe
|
|
|
288
303
|
get activeDropdown() {
|
|
289
304
|
return this._activeDropdown;
|
|
290
305
|
}
|
|
291
|
-
constructor(_univerInstanceService, _dataValidatorRegistryService, _dataValidationModel, _sheetsSelectionsService, _cellDropdownManagerService, _sheetDataValidationModel, _commandService, _editorBridgeService, _injector, _configService) {
|
|
306
|
+
constructor(_univerInstanceService, _dataValidatorRegistryService, _zenZoneService, _dataValidationModel, _sheetsSelectionsService, _cellDropdownManagerService, _sheetDataValidationModel, _commandService, _editorBridgeService, _injector, _configService) {
|
|
292
307
|
super();
|
|
293
308
|
this._univerInstanceService = _univerInstanceService;
|
|
294
309
|
this._dataValidatorRegistryService = _dataValidatorRegistryService;
|
|
310
|
+
this._zenZoneService = _zenZoneService;
|
|
295
311
|
this._dataValidationModel = _dataValidationModel;
|
|
296
312
|
this._sheetsSelectionsService = _sheetsSelectionsService;
|
|
297
313
|
this._cellDropdownManagerService = _cellDropdownManagerService;
|
|
@@ -304,11 +320,19 @@ let DataValidationDropdownManagerService = class DataValidationDropdownManagerSe
|
|
|
304
320
|
_defineProperty(this, "_activeDropdown$", new rxjs.Subject());
|
|
305
321
|
_defineProperty(this, "_currentPopup", null);
|
|
306
322
|
_defineProperty(this, "activeDropdown$", this._activeDropdown$.asObservable());
|
|
323
|
+
_defineProperty(this, "_zenVisible", false);
|
|
324
|
+
this._init();
|
|
307
325
|
this._initSelectionChange();
|
|
308
326
|
this.disposeWithMe(() => {
|
|
309
327
|
this._activeDropdown$.complete();
|
|
310
328
|
});
|
|
311
329
|
}
|
|
330
|
+
_init() {
|
|
331
|
+
this.disposeWithMe(this._zenZoneService.visible$.subscribe((visible) => {
|
|
332
|
+
this._zenVisible = visible;
|
|
333
|
+
if (visible) this.hideDropdown();
|
|
334
|
+
}));
|
|
335
|
+
}
|
|
312
336
|
_getDropdownByCell(unitId, subUnitId, row, col) {
|
|
313
337
|
const workbook = unitId ? this._univerInstanceService.getUnit(unitId, _univerjs_core.UniverInstanceType.UNIVER_SHEET) : this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET);
|
|
314
338
|
if (!workbook) return;
|
|
@@ -328,6 +352,7 @@ let DataValidationDropdownManagerService = class DataValidationDropdownManagerSe
|
|
|
328
352
|
const { location } = param;
|
|
329
353
|
const { row, col, unitId, subUnitId, workbook, worksheet } = location;
|
|
330
354
|
if (this._currentPopup) this._currentPopup.dispose();
|
|
355
|
+
if (this._zenVisible) return;
|
|
331
356
|
this._activeDropdown = param;
|
|
332
357
|
this._activeDropdown$.next(this._activeDropdown);
|
|
333
358
|
const rule = this._sheetDataValidationModel.getRuleByLocation(unitId, subUnitId, row, col);
|
|
@@ -619,14 +644,15 @@ let DataValidationDropdownManagerService = class DataValidationDropdownManagerSe
|
|
|
619
644
|
DataValidationDropdownManagerService = __decorate([
|
|
620
645
|
__decorateParam(0, _univerjs_core.IUniverInstanceService),
|
|
621
646
|
__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_data_validation.DataValidatorRegistryService)),
|
|
622
|
-
__decorateParam(2,
|
|
623
|
-
__decorateParam(3, (0, _univerjs_core.Inject)(
|
|
624
|
-
__decorateParam(4, (0, _univerjs_core.Inject)(
|
|
625
|
-
__decorateParam(5, (0, _univerjs_core.Inject)(
|
|
626
|
-
__decorateParam(6, _univerjs_core.
|
|
627
|
-
__decorateParam(7,
|
|
628
|
-
__decorateParam(8,
|
|
629
|
-
__decorateParam(9, _univerjs_core.
|
|
647
|
+
__decorateParam(2, _univerjs_ui.IZenZoneService),
|
|
648
|
+
__decorateParam(3, (0, _univerjs_core.Inject)(_univerjs_sheets_data_validation.SheetDataValidationModel)),
|
|
649
|
+
__decorateParam(4, (0, _univerjs_core.Inject)(_univerjs_sheets.SheetsSelectionsService)),
|
|
650
|
+
__decorateParam(5, (0, _univerjs_core.Inject)(_univerjs_sheets_ui.ISheetCellDropdownManagerService)),
|
|
651
|
+
__decorateParam(6, (0, _univerjs_core.Inject)(_univerjs_sheets_data_validation.SheetDataValidationModel)),
|
|
652
|
+
__decorateParam(7, _univerjs_core.ICommandService),
|
|
653
|
+
__decorateParam(8, _univerjs_sheets_ui.IEditorBridgeService),
|
|
654
|
+
__decorateParam(9, (0, _univerjs_core.Inject)(_univerjs_core.Injector)),
|
|
655
|
+
__decorateParam(10, _univerjs_core.IConfigService)
|
|
630
656
|
], DataValidationDropdownManagerService);
|
|
631
657
|
|
|
632
658
|
//#endregion
|
|
@@ -734,51 +760,23 @@ const AddSheetDataValidationAndOpenCommand = {
|
|
|
734
760
|
}
|
|
735
761
|
};
|
|
736
762
|
|
|
737
|
-
//#endregion
|
|
738
|
-
//#region src/controllers/components.controller.ts
|
|
739
|
-
/**
|
|
740
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
741
|
-
*
|
|
742
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
743
|
-
* you may not use this file except in compliance with the License.
|
|
744
|
-
* You may obtain a copy of the License at
|
|
745
|
-
*
|
|
746
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
747
|
-
*
|
|
748
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
749
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
750
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
751
|
-
* See the License for the specific language governing permissions and
|
|
752
|
-
* limitations under the License.
|
|
753
|
-
*/
|
|
754
|
-
let ComponentsController = class ComponentsController extends _univerjs_core.Disposable {
|
|
755
|
-
constructor(_componentManager, _iconManager) {
|
|
756
|
-
super();
|
|
757
|
-
this._componentManager = _componentManager;
|
|
758
|
-
this._iconManager = _iconManager;
|
|
759
|
-
this._registerIcons();
|
|
760
|
-
}
|
|
761
|
-
_registerIcons() {
|
|
762
|
-
this.disposeWithMe(this._iconManager.register({ DataValidationIcon: _univerjs_icons.DataValidationIcon }));
|
|
763
|
-
}
|
|
764
|
-
};
|
|
765
|
-
ComponentsController = __decorate([__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_ui.ComponentManager)), __decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_ui.IconManager))], ComponentsController);
|
|
766
|
-
|
|
767
763
|
//#endregion
|
|
768
764
|
//#region src/controllers/dv-alert.controller.ts
|
|
769
765
|
const ALERT_KEY = "SHEET_DATA_VALIDATION_ALERT";
|
|
770
766
|
let DataValidationAlertController = class DataValidationAlertController extends _univerjs_core.Disposable {
|
|
771
|
-
constructor(_hoverManagerService, _cellAlertManagerService, _univerInstanceService, _localeService, _dataValidationModel) {
|
|
767
|
+
constructor(_hoverManagerService, _cellAlertManagerService, _univerInstanceService, _localeService, _zenZoneService, _dataValidationModel) {
|
|
772
768
|
super();
|
|
773
769
|
this._hoverManagerService = _hoverManagerService;
|
|
774
770
|
this._cellAlertManagerService = _cellAlertManagerService;
|
|
775
771
|
this._univerInstanceService = _univerInstanceService;
|
|
776
772
|
this._localeService = _localeService;
|
|
773
|
+
this._zenZoneService = _zenZoneService;
|
|
777
774
|
this._dataValidationModel = _dataValidationModel;
|
|
778
775
|
this._init();
|
|
779
776
|
}
|
|
780
777
|
_init() {
|
|
781
778
|
this._initCellAlertPopup();
|
|
779
|
+
this._initZenService();
|
|
782
780
|
}
|
|
783
781
|
_initCellAlertPopup() {
|
|
784
782
|
this.disposeWithMe(this._hoverManagerService.currentCell$.pipe((0, rxjs.debounceTime)(100)).subscribe((cellPos) => {
|
|
@@ -823,13 +821,19 @@ let DataValidationAlertController = class DataValidationAlertController extends
|
|
|
823
821
|
this._cellAlertManagerService.removeAlert(ALERT_KEY);
|
|
824
822
|
}));
|
|
825
823
|
}
|
|
824
|
+
_initZenService() {
|
|
825
|
+
this.disposeWithMe(this._zenZoneService.visible$.subscribe((visible) => {
|
|
826
|
+
if (visible) this._cellAlertManagerService.removeAlert(ALERT_KEY);
|
|
827
|
+
}));
|
|
828
|
+
}
|
|
826
829
|
};
|
|
827
830
|
DataValidationAlertController = __decorate([
|
|
828
831
|
__decorateParam(0, (0, _univerjs_core.Inject)(_univerjs_sheets_ui.HoverManagerService)),
|
|
829
832
|
__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_sheets_ui.CellAlertManagerService)),
|
|
830
833
|
__decorateParam(2, _univerjs_core.IUniverInstanceService),
|
|
831
834
|
__decorateParam(3, (0, _univerjs_core.Inject)(_univerjs_core.LocaleService)),
|
|
832
|
-
__decorateParam(4,
|
|
835
|
+
__decorateParam(4, _univerjs_ui.IZenZoneService),
|
|
836
|
+
__decorateParam(5, (0, _univerjs_core.Inject)(_univerjs_sheets_data_validation.SheetDataValidationModel))
|
|
833
837
|
], DataValidationAlertController);
|
|
834
838
|
|
|
835
839
|
//#endregion
|
|
@@ -1148,14 +1152,14 @@ function dataValidationMenuFactory(accessor) {
|
|
|
1148
1152
|
})
|
|
1149
1153
|
};
|
|
1150
1154
|
}
|
|
1151
|
-
function openDataValidationMenuFactory() {
|
|
1155
|
+
function openDataValidationMenuFactory(_accessor) {
|
|
1152
1156
|
return {
|
|
1153
1157
|
id: OpenValidationPanelOperation.id,
|
|
1154
1158
|
title: "sheets-data-validation-ui.panel.title",
|
|
1155
1159
|
type: _univerjs_ui.MenuItemType.BUTTON
|
|
1156
1160
|
};
|
|
1157
1161
|
}
|
|
1158
|
-
function addDataValidationMenuFactory() {
|
|
1162
|
+
function addDataValidationMenuFactory(_accessor) {
|
|
1159
1163
|
return {
|
|
1160
1164
|
id: AddSheetDataValidationAndOpenCommand.id,
|
|
1161
1165
|
title: "sheets-data-validation-ui.panel.add",
|
|
@@ -1492,7 +1496,7 @@ let SheetsDataValidationReRenderController = class SheetsDataValidationReRenderC
|
|
|
1492
1496
|
SheetsDataValidationReRenderController = __decorate([__decorateParam(1, (0, _univerjs_core.Inject)(_univerjs_sheets_data_validation.SheetDataValidationModel)), __decorateParam(2, (0, _univerjs_core.Inject)(_univerjs_sheets_ui.SheetSkeletonManagerService))], SheetsDataValidationReRenderController);
|
|
1493
1497
|
|
|
1494
1498
|
//#endregion
|
|
1495
|
-
//#region src/views/components/
|
|
1499
|
+
//#region src/views/components/options/index.tsx
|
|
1496
1500
|
function DataValidationOptions(props) {
|
|
1497
1501
|
var _value$errorStyle;
|
|
1498
1502
|
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
@@ -1548,7 +1552,7 @@ function DataValidationOptions(props) {
|
|
|
1548
1552
|
}
|
|
1549
1553
|
|
|
1550
1554
|
//#endregion
|
|
1551
|
-
//#region src/views/components/
|
|
1555
|
+
//#region src/views/components/detail/index.tsx
|
|
1552
1556
|
const debounceExecuteFactory = (commandService) => (0, _univerjs_core.debounce)(async (id, params, options, callback) => {
|
|
1553
1557
|
const res = await commandService.executeCommand(id, params, options);
|
|
1554
1558
|
callback === null || callback === void 0 || callback(res);
|
|
@@ -1562,20 +1566,10 @@ function getSheetIdByName(univerInstanceService, unitId, name) {
|
|
|
1562
1566
|
return ((_univerInstanceServic2 = univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_SHEET)) === null || _univerInstanceServic2 === void 0 || (_univerInstanceServic2 = _univerInstanceServic2.getSheetBySheetName(name)) === null || _univerInstanceServic2 === void 0 ? void 0 : _univerInstanceServic2.getSheetId()) || "";
|
|
1563
1567
|
}
|
|
1564
1568
|
function DataValidationDetail() {
|
|
1565
|
-
const dataValidationPanelService = (0, _univerjs_ui.useDependency)(DataValidationPanelService);
|
|
1566
|
-
const { unitId, subUnitId, rule } = (0, _univerjs_ui.useObservable)(dataValidationPanelService.activeRule$, dataValidationPanelService.activeRule) || {};
|
|
1567
|
-
if (!unitId || !subUnitId || !rule) return null;
|
|
1568
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DataValidationDetailInner, { activeRuleInfo: {
|
|
1569
|
-
unitId,
|
|
1570
|
-
subUnitId,
|
|
1571
|
-
rule
|
|
1572
|
-
} });
|
|
1573
|
-
}
|
|
1574
|
-
function DataValidationDetailInner(props) {
|
|
1575
1569
|
var _validators$sort, _localRule$allowBlank;
|
|
1576
1570
|
const [key, setKey] = (0, react.useState)(0);
|
|
1577
1571
|
const dataValidationPanelService = (0, _univerjs_ui.useDependency)(DataValidationPanelService);
|
|
1578
|
-
const { unitId, subUnitId, rule } =
|
|
1572
|
+
const { unitId, subUnitId, rule } = (0, _univerjs_ui.useObservable)(dataValidationPanelService.activeRule$, dataValidationPanelService.activeRule) || {};
|
|
1579
1573
|
const ruleId = rule.uid;
|
|
1580
1574
|
const validatorService = (0, _univerjs_ui.useDependency)(_univerjs_data_validation.DataValidatorRegistryService);
|
|
1581
1575
|
const univerInstanceService = (0, _univerjs_ui.useDependency)(_univerjs_core.IUniverInstanceService);
|
|
@@ -1795,7 +1789,7 @@ function DataValidationDetailInner(props) {
|
|
|
1795
1789
|
value: `${localRule.operator}`,
|
|
1796
1790
|
options: [{
|
|
1797
1791
|
value: "",
|
|
1798
|
-
label: localeService.t("
|
|
1792
|
+
label: localeService.t("data-validation.operators.legal")
|
|
1799
1793
|
}, ...operators.map((op, i) => ({
|
|
1800
1794
|
value: `${op}`,
|
|
1801
1795
|
label: operatorNames[i]
|
|
@@ -1860,7 +1854,7 @@ function DataValidationDetailInner(props) {
|
|
|
1860
1854
|
}
|
|
1861
1855
|
|
|
1862
1856
|
//#endregion
|
|
1863
|
-
//#region src/views/components/
|
|
1857
|
+
//#region src/views/components/item/index.tsx
|
|
1864
1858
|
const DataValidationItem = (props) => {
|
|
1865
1859
|
const { rule, onClick, unitId, subUnitId, disable } = props;
|
|
1866
1860
|
const validatorRegistry = (0, _univerjs_ui.useDependency)(_univerjs_data_validation.DataValidatorRegistryService);
|
|
@@ -1941,7 +1935,7 @@ const DataValidationItem = (props) => {
|
|
|
1941
1935
|
};
|
|
1942
1936
|
|
|
1943
1937
|
//#endregion
|
|
1944
|
-
//#region src/views/components/
|
|
1938
|
+
//#region src/views/components/list/index.tsx
|
|
1945
1939
|
function DataValidationList(props) {
|
|
1946
1940
|
const sheetDataValidationModel = (0, _univerjs_ui.useDependency)(_univerjs_sheets_data_validation.SheetDataValidationModel);
|
|
1947
1941
|
const univerInstanceService = (0, _univerjs_ui.useDependency)(_univerjs_core.IUniverInstanceService);
|
|
@@ -2035,7 +2029,7 @@ function DataValidationList(props) {
|
|
|
2035
2029
|
}
|
|
2036
2030
|
|
|
2037
2031
|
//#endregion
|
|
2038
|
-
//#region src/views/components/
|
|
2032
|
+
//#region src/views/components/panel/index.tsx
|
|
2039
2033
|
const DataValidationPanel = () => {
|
|
2040
2034
|
const dataValidationPanelService = (0, _univerjs_ui.useDependency)(DataValidationPanelService);
|
|
2041
2035
|
const activeRule = (0, _univerjs_ui.useObservable)(dataValidationPanelService.activeRule$, dataValidationPanelService.activeRule);
|
|
@@ -2049,29 +2043,6 @@ const DataValidationPanel = () => {
|
|
|
2049
2043
|
return activeRule && (activeRule.subUnitId === worksheet.getSheetId() || activeRule.subUnitId === dataValidationPanelService.getFocusFormulaEditorActiveRuleSubUnitId()) ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DataValidationDetail, {}, activeRule.rule.uid) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DataValidationList, { workbook });
|
|
2050
2044
|
};
|
|
2051
2045
|
|
|
2052
|
-
//#endregion
|
|
2053
|
-
//#region src/views/components/DateShowTimeOption.tsx
|
|
2054
|
-
const DATE_SHOW_TIME_OPTION = "DATE_SHOW_TIME_OPTION";
|
|
2055
|
-
function DateShowTimeOption(props) {
|
|
2056
|
-
var _value$bizInfo;
|
|
2057
|
-
const { value, onChange } = props;
|
|
2058
|
-
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
2059
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Checkbox, {
|
|
2060
|
-
checked: (_value$bizInfo = value.bizInfo) === null || _value$bizInfo === void 0 ? void 0 : _value$bizInfo.showTime,
|
|
2061
|
-
onChange: (showTime) => {
|
|
2062
|
-
onChange({
|
|
2063
|
-
...value,
|
|
2064
|
-
bizInfo: {
|
|
2065
|
-
...value.bizInfo,
|
|
2066
|
-
showTime
|
|
2067
|
-
}
|
|
2068
|
-
});
|
|
2069
|
-
},
|
|
2070
|
-
children: localeService.t("sheets-data-validation-ui.showTime.label")
|
|
2071
|
-
}) });
|
|
2072
|
-
}
|
|
2073
|
-
DateShowTimeOption.componentKey = DATE_SHOW_TIME_OPTION;
|
|
2074
|
-
|
|
2075
2046
|
//#endregion
|
|
2076
2047
|
//#region src/views/components/formula-input/BaseFormulaInput.tsx
|
|
2077
2048
|
const BaseFormulaInput = (props) => {
|
|
@@ -2313,7 +2284,7 @@ const Template = (props) => {
|
|
|
2313
2284
|
children: [
|
|
2314
2285
|
!item.isRef && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2315
2286
|
className: (0, _univerjs_design.clsx)("univer-cursor-move", "draggableHandle"),
|
|
2316
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.
|
|
2287
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.SequenceIcon, {})
|
|
2317
2288
|
}),
|
|
2318
2289
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ColorSelect, {
|
|
2319
2290
|
value: item.color,
|
|
@@ -2546,7 +2517,7 @@ const FORMULA_INPUTS = [
|
|
|
2546
2517
|
];
|
|
2547
2518
|
|
|
2548
2519
|
//#endregion
|
|
2549
|
-
//#region src/views/components/
|
|
2520
|
+
//#region src/views/components/render-mode/index.tsx
|
|
2550
2521
|
const LIST_RENDER_MODE_OPTION_INPUT = "LIST_RENDER_MODE_OPTION_INPUT";
|
|
2551
2522
|
function ListRenderModeInput(props) {
|
|
2552
2523
|
var _value$renderMode;
|
|
@@ -2579,6 +2550,29 @@ function ListRenderModeInput(props) {
|
|
|
2579
2550
|
}
|
|
2580
2551
|
ListRenderModeInput.componentKey = LIST_RENDER_MODE_OPTION_INPUT;
|
|
2581
2552
|
|
|
2553
|
+
//#endregion
|
|
2554
|
+
//#region src/views/components/show-time/index.tsx
|
|
2555
|
+
const DATE_SHOW_TIME_OPTION = "DATE_SHOW_TIME_OPTION";
|
|
2556
|
+
function DateShowTimeOption(props) {
|
|
2557
|
+
var _value$bizInfo;
|
|
2558
|
+
const { value, onChange } = props;
|
|
2559
|
+
const localeService = (0, _univerjs_ui.useDependency)(_univerjs_core.LocaleService);
|
|
2560
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.FormLayout, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.Checkbox, {
|
|
2561
|
+
checked: (_value$bizInfo = value.bizInfo) === null || _value$bizInfo === void 0 ? void 0 : _value$bizInfo.showTime,
|
|
2562
|
+
onChange: (showTime) => {
|
|
2563
|
+
onChange({
|
|
2564
|
+
...value,
|
|
2565
|
+
bizInfo: {
|
|
2566
|
+
...value.bizInfo,
|
|
2567
|
+
showTime
|
|
2568
|
+
}
|
|
2569
|
+
});
|
|
2570
|
+
},
|
|
2571
|
+
children: localeService.t("sheets-data-validation-ui.showTime.label")
|
|
2572
|
+
}) });
|
|
2573
|
+
}
|
|
2574
|
+
DateShowTimeOption.componentKey = DATE_SHOW_TIME_OPTION;
|
|
2575
|
+
|
|
2582
2576
|
//#endregion
|
|
2583
2577
|
//#region src/views/widgets/checkbox-widget.ts
|
|
2584
2578
|
const MARGIN_H$2 = 6;
|
|
@@ -2824,6 +2818,10 @@ var CustomFormulaValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2824
2818
|
}
|
|
2825
2819
|
};
|
|
2826
2820
|
|
|
2821
|
+
//#endregion
|
|
2822
|
+
//#region src/views/components/formula-input/formula-input.ts
|
|
2823
|
+
const BASE_FORMULA_INPUT_NAME = "data-validation.formula-input";
|
|
2824
|
+
|
|
2827
2825
|
//#endregion
|
|
2828
2826
|
//#region src/views/validator-views/date-validator-view.ts
|
|
2829
2827
|
/**
|
|
@@ -2845,7 +2843,7 @@ var DateValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
2845
2843
|
constructor(..._args) {
|
|
2846
2844
|
super(..._args);
|
|
2847
2845
|
_defineProperty(this, "id", _univerjs_core.DataValidationType.DATE);
|
|
2848
|
-
_defineProperty(this, "formulaInput",
|
|
2846
|
+
_defineProperty(this, "formulaInput", BASE_FORMULA_INPUT_NAME);
|
|
2849
2847
|
_defineProperty(this, "optionsInput", DateShowTimeOption.componentKey);
|
|
2850
2848
|
_defineProperty(this, "dropdownType", _univerjs_data_validation.DataValidatorDropdownType.DATE);
|
|
2851
2849
|
}
|
|
@@ -3573,7 +3571,7 @@ var WholeValidatorView = class extends BaseSheetDataValidatorView {
|
|
|
3573
3571
|
};
|
|
3574
3572
|
|
|
3575
3573
|
//#endregion
|
|
3576
|
-
//#region src/controllers/ui.controller.ts
|
|
3574
|
+
//#region src/controllers/dv-ui.controller.ts
|
|
3577
3575
|
let SheetsDataValidationUIController = class SheetsDataValidationUIController extends _univerjs_core.RxDisposable {
|
|
3578
3576
|
constructor(_injector, _componentManger, _dataValidatorRegistryService) {
|
|
3579
3577
|
super();
|
|
@@ -3585,6 +3583,7 @@ let SheetsDataValidationUIController = class SheetsDataValidationUIController ex
|
|
|
3585
3583
|
}
|
|
3586
3584
|
_initComponents() {
|
|
3587
3585
|
[
|
|
3586
|
+
["DataValidationIcon", _univerjs_icons.DataValidationIcon],
|
|
3588
3587
|
[DATA_VALIDATION_PANEL, DataValidationPanel],
|
|
3589
3588
|
[ListRenderModeInput.componentKey, ListRenderModeInput],
|
|
3590
3589
|
[DateShowTimeOption.componentKey, DateShowTimeOption],
|
|
@@ -3635,8 +3634,6 @@ let UniverSheetsDataValidationMobileUIPlugin = class UniverSheetsDataValidationM
|
|
|
3635
3634
|
this._configService.setConfig(SHEETS_DATA_VALIDATION_UI_PLUGIN_CONFIG_KEY, rest);
|
|
3636
3635
|
}
|
|
3637
3636
|
onStarting() {
|
|
3638
|
-
this._injector.add([ComponentsController]);
|
|
3639
|
-
this._injector.get(ComponentsController);
|
|
3640
3637
|
[
|
|
3641
3638
|
[DataValidationPanelService],
|
|
3642
3639
|
[DataValidationDropdownManagerService],
|
|
@@ -3697,8 +3694,6 @@ let UniverSheetsDataValidationUIPlugin = class UniverSheetsDataValidationUIPlugi
|
|
|
3697
3694
|
this._configService.setConfig(SHEETS_DATA_VALIDATION_UI_PLUGIN_CONFIG_KEY, rest);
|
|
3698
3695
|
}
|
|
3699
3696
|
onStarting() {
|
|
3700
|
-
this._injector.add([ComponentsController]);
|
|
3701
|
-
this._injector.get(ComponentsController);
|
|
3702
3697
|
[
|
|
3703
3698
|
[DataValidationPanelService],
|
|
3704
3699
|
[DataValidationDropdownManagerService],
|
|
@@ -3750,6 +3745,12 @@ UniverSheetsDataValidationUIPlugin = __decorate([
|
|
|
3750
3745
|
], UniverSheetsDataValidationUIPlugin);
|
|
3751
3746
|
|
|
3752
3747
|
//#endregion
|
|
3748
|
+
Object.defineProperty(exports, 'BaseSheetDataValidatorView', {
|
|
3749
|
+
enumerable: true,
|
|
3750
|
+
get: function () {
|
|
3751
|
+
return BaseSheetDataValidatorView;
|
|
3752
|
+
}
|
|
3753
|
+
});
|
|
3753
3754
|
Object.defineProperty(exports, 'UniverSheetsDataValidationMobileUIPlugin', {
|
|
3754
3755
|
enumerable: true,
|
|
3755
3756
|
get: function () {
|
package/lib/cjs/locale/ar-SA.js
CHANGED
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
//#region src/locale/ca-ES.ts
|
|
3
3
|
const locale = { "sheets-data-validation-ui": {
|
|
4
4
|
title: "Validació de dades",
|
|
5
|
-
operators: { legal: "és tipus legal" },
|
|
6
5
|
validFail: {
|
|
7
6
|
value: "Si us plau, introdueix un valor",
|
|
8
7
|
common: "Si us plau, introdueix un valor o una fórmula",
|
package/lib/cjs/locale/de-DE.js
CHANGED
package/lib/cjs/locale/en-US.js
CHANGED
package/lib/cjs/locale/es-ES.js
CHANGED