@univerjs/sheets-data-validation 0.2.2 → 0.2.4-alpha.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.
- package/README.md +12 -4
- package/lib/cjs/index.js +2 -2
- package/lib/es/index.js +2675 -2559
- package/lib/index.css +1 -1
- package/lib/locale/en-US.json +3 -0
- package/lib/locale/ru-RU.json +3 -0
- package/lib/locale/vi-VN.json +165 -0
- package/lib/locale/zh-CN.json +3 -0
- package/lib/locale/zh-TW.json +165 -0
- package/lib/types/commands/commands/data-validation.command.d.ts +1 -2
- package/lib/types/controllers/dv-auto-fill.controller.d.ts +1 -2
- package/lib/types/controllers/dv-copy-paste.controller.d.ts +1 -2
- package/lib/types/controllers/dv-model.controller.d.ts +1 -2
- package/lib/types/controllers/dv-ref-range.controller.d.ts +1 -2
- package/lib/types/controllers/dv-render.controller.d.ts +1 -3
- package/lib/types/controllers/dv.controller.d.ts +4 -4
- package/lib/types/controllers/dv.menu.d.ts +1 -1
- package/lib/types/locale/vi-VN.d.ts +4 -0
- package/lib/types/locale/zh-CN.d.ts +3 -0
- package/lib/types/locale/zh-TW.d.ts +4 -0
- package/lib/types/mobile-plugin.d.ts +1 -2
- package/lib/types/models/sheet-data-validation-manager.d.ts +1 -2
- package/lib/types/plugin.d.ts +1 -2
- package/lib/types/services/data-validation-panel.service.d.ts +1 -2
- package/lib/types/services/dropdown-manager.service.d.ts +2 -2
- package/lib/types/services/dv.service.d.ts +2 -2
- package/lib/types/utils/date.d.ts +2 -2
- package/lib/types/validators/date-validator.d.ts +17 -15
- package/lib/types/views/date-dropdown/index.d.ts +1 -1
- package/lib/types/views/show-time/index.d.ts +11 -0
- package/lib/umd/index.js +2 -2
- package/package.json +26 -26
package/lib/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.univer-data-validation-formula{width:100%}.univer-data-validation-formula-and{margin-top:-4px;font-size:var(--font-size-sm);color:rgba(var(--grey-400))}.univer-data-validation-formula-list-item{display:flex;padding-bottom:2px;align-items:center}.univer-data-validation-formula-list-item-icon{font-size:16px;cursor:pointer;margin-left:4px;border-radius:4px}.univer-data-validation-formula-list-item-icon:hover{background:rgba(var(--grey-100))}.univer-data-validation-formula-list-item-drag{cursor:move}.univer-data-validation-formula-list-add{color:#274fee;font-size:13px;font-weight:400;cursor:pointer;display:flex;flex-direction:row;align-items:center;border-radius:4px;padding:4px 8px;width:fit-content}.univer-data-validation-formula-list-add svg{margin-right:4px}.univer-data-validation-formula-list-add:hover{background:#274fee0d}.univer-data-validation-formula-color-select{width:92px;margin-left:4px;margin-right:8px}.univer-data-validation-formula-color-select-panel{width:112px;display:flex;flex-direction:row;justify-content:space-between;padding:12px 4px 4px 12px;flex-wrap:wrap;box-sizing:border-box}.univer-data-validation-formula-color-select-panel .univer-data-validation-formula-color-item{margin-bottom:8px;margin-right:8px;box-sizing:border-box;cursor:pointer}.univer-data-validation-formula-color-item{border-radius:3px;border:1px solid rgba(var(--grey-400));width:16px;height:16px;box-sizing:border-box;font-size:16px}.univer-data-validation-options-button{cursor:pointer;margin-bottom:12px;font-size:var(--font-size-sm);color:rgba(var(--color-black));display:flex;align-items:center}.univer-data-validation-options-button-icon{font-size:8px;margin-left:4px}.univer-data-validation-detail-form-item{width:100%}.univer-data-validation-detail-buttons{margin-top:20px;display:flex;flex-direction:row;justify-content:flex-end}.univer-data-validation-detail-button{margin-left:12px}.univer-data-validation-item-container{border-radius:var(--border-radius-base);background-color:rgba(var(--bg-color-secondary));padding:var(--padding-sm);padding-right:36px;margin-left:-8px;margin-right:-8px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;position:relative;border-radius:6px;width:287px;overflow:hidden}.univer-data-validation-item-container:hover{background-color:rgba(var(--grey-50))}.univer-data-validation-item-title{font-size:var(--font-size-sm);color:rgba(var(--color-black));line-height:22px;font-weight:500;overflow:hidden;text-overflow:ellipsis}.univer-data-validation-item-content{color:rgba(var(--text-color-secondary));font-size:var(--font-size-xs);line-height:18px;overflow:hidden;text-overflow:ellipsis}.univer-data-validation-item-icon{position:absolute;top:19px;right:8px;width:20px;height:20px;display:flex;justify-content:center;align-items:center;border-radius:4px}.univer-data-validation-item-icon:hover{background:rgba(var(--grey-200))}.univer-data-validation-list-buttons{margin-top:20px;display:flex;flex-direction:row;justify-content:flex-end}.univer-data-validation-list-button{margin-left:12px}.univer-dv-list-dropdown{border-radius:var(--border-radius-lg);border:1px solid rgb(var(--border-color));background:rgba(var(--color-white));box-shadow:var(--box-shadow-base);box-sizing:border-box}.univer-dv-list-dropdown-title{padding:var(--padding-sm) 14px;color:rgb(var(--text-color));font-size:12px;line-height:1.5;flex-shrink:0;flex-grow:0}.univer-dv-list-dropdown-list{max-height:200px}.univer-dv-list-dropdown-list-container{padding:0 var(--padding-sm)}.univer-dv-list-dropdown-selected-icon{width:16px;height:16px;font-size:16px;color:rgba(var(--blue-500));flex-shrink:0;flex-grow:0;margin-left:12px}.univer-dv-list-dropdown-item-container{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:var(--padding-xs) 6px;border-radius:6px;margin-top:4px;cursor:pointer}.univer-dv-list-dropdown-item-container:hover{background-color:rgba(var(--grey-50))}.univer-dv-list-dropdown-item{padding:0 4px;font-size:12px;font-style:normal;font-weight:400;line-height:16px;border-radius:8px;height:16px;width:fit-content;flex:0 1 auto;text-overflow:ellipsis;overflow:hidden;color:rgba(var(--color-black));white-space:nowrap}.univer-dv-list-dropdown-split{height:1px;margin:4px 0;background:rgba(var(--grey-200));flex-shrink:0;flex-grow:0}.univer-dv-list-dropdown-edit{padding:0 var(--padding-xs) var(--padding-xs) var(--padding-xs);flex-shrink:0;flex-grow:0}.univer-dv-list-dropdown-edit a{padding:3px 6px;font-size:12px;line-height:1.5;cursor:pointer;border-radius:6px;display:block}.univer-dv-list-dropdown-edit a:hover{background:#f5f5f5}.univer-dv-date-dropdown{background:#fff;border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-lg);padding:var(--padding-sm)}
|
|
1
|
+
.univer-data-validation-formula{width:100%}.univer-data-validation-formula-and{margin-top:-4px;font-size:var(--font-size-sm);color:rgba(var(--grey-400))}.univer-data-validation-formula-list-item{display:flex;padding-bottom:2px;align-items:center}.univer-data-validation-formula-list-item-icon{font-size:16px;cursor:pointer;margin-left:4px;border-radius:4px}.univer-data-validation-formula-list-item-icon:hover{background:rgba(var(--grey-100))}.univer-data-validation-formula-list-item-drag{cursor:move}.univer-data-validation-formula-list-add{color:#274fee;font-size:13px;font-weight:400;cursor:pointer;display:flex;flex-direction:row;align-items:center;border-radius:4px;padding:4px 8px;width:fit-content}.univer-data-validation-formula-list-add svg{margin-right:4px}.univer-data-validation-formula-list-add:hover{background:#274fee0d}.univer-data-validation-formula-color-select{width:92px;margin-left:4px;margin-right:8px}.univer-data-validation-formula-color-select-panel{width:112px;display:flex;flex-direction:row;justify-content:space-between;padding:12px 4px 4px 12px;flex-wrap:wrap;box-sizing:border-box}.univer-data-validation-formula-color-select-panel .univer-data-validation-formula-color-item{margin-bottom:8px;margin-right:8px;box-sizing:border-box;cursor:pointer}.univer-data-validation-formula-color-item{border-radius:3px;border:1px solid rgba(var(--grey-400));width:16px;height:16px;box-sizing:border-box;font-size:16px}.univer-data-validation-options-button{cursor:pointer;margin-bottom:12px;font-size:var(--font-size-sm);color:rgba(var(--color-black));display:flex;align-items:center}.univer-data-validation-options-button-icon{font-size:8px;margin-left:4px}.univer-data-validation-detail-form-item{width:100%}.univer-data-validation-detail-buttons{margin-top:20px;display:flex;flex-direction:row;justify-content:flex-end}.univer-data-validation-detail-button{margin-left:12px}.univer-data-validation-item-container{border-radius:var(--border-radius-base);background-color:rgba(var(--bg-color-secondary));padding:var(--padding-sm);padding-right:36px;margin-left:-8px;margin-right:-8px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;position:relative;border-radius:6px;width:287px;overflow:hidden}.univer-data-validation-item-container:hover{background-color:rgba(var(--grey-50))}.univer-data-validation-item-title{font-size:var(--font-size-sm);color:rgba(var(--color-black));line-height:22px;font-weight:500;overflow:hidden;text-overflow:ellipsis}.univer-data-validation-item-content{color:rgba(var(--text-color-secondary));font-size:var(--font-size-xs);line-height:18px;overflow:hidden;text-overflow:ellipsis}.univer-data-validation-item-icon{position:absolute;top:19px;right:8px;width:20px;height:20px;display:flex;justify-content:center;align-items:center;border-radius:4px}.univer-data-validation-item-icon:hover{background:rgba(var(--grey-200))}.univer-data-validation-list-buttons{margin-top:20px;display:flex;flex-direction:row;justify-content:flex-end}.univer-data-validation-list-button{margin-left:12px}.univer-dv-list-dropdown{border-radius:var(--border-radius-lg);border:1px solid rgb(var(--border-color));background:rgba(var(--color-white));box-shadow:var(--box-shadow-base);box-sizing:border-box}.univer-dv-list-dropdown-title{padding:var(--padding-sm) 14px;color:rgb(var(--text-color));font-size:12px;line-height:1.5;flex-shrink:0;flex-grow:0}.univer-dv-list-dropdown-list{max-height:200px}.univer-dv-list-dropdown-list-container{padding:0 var(--padding-sm)}.univer-dv-list-dropdown-selected-icon{width:16px;height:16px;font-size:16px;color:rgba(var(--blue-500));flex-shrink:0;flex-grow:0;margin-left:12px}.univer-dv-list-dropdown-item-container{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:var(--padding-xs) 6px;border-radius:6px;margin-top:4px;cursor:pointer}.univer-dv-list-dropdown-item-container:hover{background-color:rgba(var(--grey-50))}.univer-dv-list-dropdown-item{padding:0 4px;font-size:12px;font-style:normal;font-weight:400;line-height:16px;border-radius:8px;height:16px;width:fit-content;flex:0 1 auto;text-overflow:ellipsis;overflow:hidden;color:rgba(var(--color-black));white-space:nowrap}.univer-dv-list-dropdown-split{height:1px;margin:4px 0;background:rgba(var(--grey-200));flex-shrink:0;flex-grow:0}.univer-dv-list-dropdown-edit{padding:0 var(--padding-xs) var(--padding-xs) var(--padding-xs);flex-shrink:0;flex-grow:0}.univer-dv-list-dropdown-edit a{padding:3px 6px;font-size:12px;line-height:1.5;cursor:pointer;border-radius:6px;display:block}.univer-dv-list-dropdown-edit a:hover{background:#f5f5f5}.univer-dv-date-dropdown{background:#fff;border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-lg);padding:var(--padding-sm)}.univer-dv-date-dropdown-btns{display:flex;justify-content:flex-end;border-top:1px solid rgb(var(--border-color));padding-top:var(--padding-sm)}
|
package/lib/locale/en-US.json
CHANGED
package/lib/locale/ru-RU.json
CHANGED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dataValidation": {
|
|
3
|
+
"title": "Xác thực dữ liệu",
|
|
4
|
+
"validFail": {
|
|
5
|
+
"value": "Vui lòng nhập một giá trị hợp lệ",
|
|
6
|
+
"common": "Vui lòng nhập giá trị hoặc công thức",
|
|
7
|
+
"number": "Vui lòng nhập một số hợp lệ hoặc công thức",
|
|
8
|
+
"formula": "Vui lòng nhập một công thức hợp lệ",
|
|
9
|
+
"integer": "Vui lòng nhập một số nguyên hợp lệ hoặc công thức",
|
|
10
|
+
"date": "Vui lòng nhập một ngày hợp lệ hoặc công thức",
|
|
11
|
+
"list": "Vui lòng nhập ít nhất một tùy chọn hợp lệ",
|
|
12
|
+
"listInvalid": "Nguồn danh sách phải là một danh sách phân tách hoặc một tham chiếu đến một hàng hoặc cột đơn.",
|
|
13
|
+
"checkboxEqual": "Nhập các giá trị khác nhau cho các ô được chọn và không được chọn.",
|
|
14
|
+
"formulaError": "Phạm vi tham chiếu chứa dữ liệu không hiển thị, vui lòng điều chỉnh lại phạm vi",
|
|
15
|
+
"listIntersects": "Phạm vi đã chọn không thể giao với phạm vi quy tắc",
|
|
16
|
+
"primitive": "Các giá trị tùy chỉnh cho ô được chọn và không được chọn không được phép sử dụng công thức."
|
|
17
|
+
},
|
|
18
|
+
"panel": {
|
|
19
|
+
"title": "Quản lý xác thực dữ liệu",
|
|
20
|
+
"addTitle": "Tạo xác thực dữ liệu mới",
|
|
21
|
+
"removeAll": "Xóa tất cả",
|
|
22
|
+
"add": "Tạo quy tắc mới",
|
|
23
|
+
"range": "Phạm vi áp dụng",
|
|
24
|
+
"type": "Loại điều kiện",
|
|
25
|
+
"options": "Cài đặt nâng cao",
|
|
26
|
+
"operator": "Dữ liệu",
|
|
27
|
+
"removeRule": "Xóa quy tắc",
|
|
28
|
+
"done": "Xác nhận",
|
|
29
|
+
"formulaPlaceholder": "Vui lòng nhập giá trị hoặc công thức",
|
|
30
|
+
"valuePlaceholder": "Vui lòng nhập giá trị",
|
|
31
|
+
"formulaAnd": "Và",
|
|
32
|
+
"invalid": "Dữ liệu không hợp lệ khi",
|
|
33
|
+
"showWarning": "Hiển thị cảnh báo",
|
|
34
|
+
"rejectInput": "Từ chối đầu vào",
|
|
35
|
+
"messageInfo": "Thông báo",
|
|
36
|
+
"showInfo": "Hiển thị thông báo cho ô đã chọn"
|
|
37
|
+
},
|
|
38
|
+
"operators": {
|
|
39
|
+
"between": "Giữa",
|
|
40
|
+
"greaterThan": "Lớn hơn",
|
|
41
|
+
"greaterThanOrEqual": "Lớn hơn hoặc bằng",
|
|
42
|
+
"lessThan": "Nhỏ hơn",
|
|
43
|
+
"lessThanOrEqual": "Nhỏ hơn hoặc bằng",
|
|
44
|
+
"equal": "Bằng",
|
|
45
|
+
"notEqual": "Không bằng",
|
|
46
|
+
"notBetween": "Không nằm giữa"
|
|
47
|
+
},
|
|
48
|
+
"ruleName": {
|
|
49
|
+
"between": "Giữa {FORMULA1} và {FORMULA2}",
|
|
50
|
+
"greaterThan": "Lớn hơn {FORMULA1}",
|
|
51
|
+
"greaterThanOrEqual": "Lớn hơn hoặc bằng {FORMULA1}",
|
|
52
|
+
"lessThan": "Nhỏ hơn {FORMULA1}",
|
|
53
|
+
"lessThanOrEqual": "Nhỏ hơn hoặc bằng {FORMULA1}",
|
|
54
|
+
"equal": "Bằng {FORMULA1}",
|
|
55
|
+
"notEqual": "Không bằng {FORMULA1}",
|
|
56
|
+
"notBetween": "Không nằm giữa {FORMULA1} và {FORMULA2}"
|
|
57
|
+
},
|
|
58
|
+
"errorMsg": {
|
|
59
|
+
"between": "Giá trị phải nằm giữa {FORMULA1} và {FORMULA2}",
|
|
60
|
+
"greaterThan": "Giá trị phải lớn hơn {FORMULA1}",
|
|
61
|
+
"greaterThanOrEqual": "Giá trị phải lớn hơn hoặc bằng {FORMULA1}",
|
|
62
|
+
"lessThan": "Giá trị phải nhỏ hơn {FORMULA1}",
|
|
63
|
+
"lessThanOrEqual": "Giá trị phải nhỏ hơn hoặc bằng {FORMULA1}",
|
|
64
|
+
"equal": "Giá trị phải bằng {FORMULA1}",
|
|
65
|
+
"notEqual": "Giá trị phải không bằng {FORMULA1}",
|
|
66
|
+
"notBetween": "Giá trị phải không nằm giữa {FORMULA1} và {FORMULA2}"
|
|
67
|
+
},
|
|
68
|
+
"date": {
|
|
69
|
+
"title": "Ngày",
|
|
70
|
+
"operators": {
|
|
71
|
+
"between": "Giữa",
|
|
72
|
+
"greaterThan": "Sau",
|
|
73
|
+
"greaterThanOrEqual": "Sau hoặc bằng",
|
|
74
|
+
"lessThan": "Trước",
|
|
75
|
+
"lessThanOrEqual": "Trước hoặc bằng",
|
|
76
|
+
"equal": "Bằng",
|
|
77
|
+
"notEqual": "Không bằng",
|
|
78
|
+
"notBetween": "Không nằm giữa"
|
|
79
|
+
},
|
|
80
|
+
"ruleName": {
|
|
81
|
+
"between": "Giữa {FORMULA1} và {FORMULA2}",
|
|
82
|
+
"greaterThan": "Sau {FORMULA1}",
|
|
83
|
+
"greaterThanOrEqual": "Sau hoặc bằng {FORMULA1}",
|
|
84
|
+
"lessThan": "Trước {FORMULA1}",
|
|
85
|
+
"lessThanOrEqual": "Trước hoặc bằng {FORMULA1}",
|
|
86
|
+
"equal": "Bằng {FORMULA1}",
|
|
87
|
+
"notEqual": "Không bằng {FORMULA1}",
|
|
88
|
+
"notBetween": "Không nằm giữa {FORMULA1} và {FORMULA2}"
|
|
89
|
+
},
|
|
90
|
+
"errorMsg": {
|
|
91
|
+
"between": "Ngày phải nằm giữa {FORMULA1} và {FORMULA2}",
|
|
92
|
+
"greaterThan": "Ngày phải sau {FORMULA1}",
|
|
93
|
+
"greaterThanOrEqual": "Ngày phải sau hoặc bằng {FORMULA1}",
|
|
94
|
+
"lessThan": "Ngày phải trước {FORMULA1}",
|
|
95
|
+
"lessThanOrEqual": "Ngày phải trước hoặc bằng {FORMULA1}",
|
|
96
|
+
"equal": "Ngày phải bằng {FORMULA1}",
|
|
97
|
+
"notEqual": "Ngày phải không bằng {FORMULA1}",
|
|
98
|
+
"notBetween": "Ngày phải không nằm giữa {FORMULA1} và {FORMULA2}"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"list": {
|
|
102
|
+
"title": "Danh sách thả xuống",
|
|
103
|
+
"name": "Giá trị phải nằm trong danh sách",
|
|
104
|
+
"error": "Đầu vào phải nằm trong phạm vi chỉ định",
|
|
105
|
+
"emptyError": "Vui lòng nhập một giá trị",
|
|
106
|
+
"add": "Thêm tùy chọn",
|
|
107
|
+
"dropdown": "Chọn một",
|
|
108
|
+
"options": "Nguồn tùy chọn",
|
|
109
|
+
"customOptions": "Tùy chỉnh",
|
|
110
|
+
"refOptions": "Tham chiếu dữ liệu",
|
|
111
|
+
"formulaError": "Nguồn danh sách phải là danh sách dữ liệu đã được phân chia rõ ràng, hoặc là tham chiếu đến một hàng hoặc cột đơn."
|
|
112
|
+
},
|
|
113
|
+
"listMultiple": {
|
|
114
|
+
"title": "Danh sách thả xuống - Chọn nhiều",
|
|
115
|
+
"dropdown": "Chọn nhiều"
|
|
116
|
+
},
|
|
117
|
+
"textLength": {
|
|
118
|
+
"title": "Độ dài văn bản",
|
|
119
|
+
"errorMsg": {
|
|
120
|
+
"between": "Độ dài văn bản phải nằm giữa {FORMULA1} và {FORMULA2}",
|
|
121
|
+
"greaterThan": "Độ dài văn bản phải lớn hơn {FORMULA1}",
|
|
122
|
+
"greaterThanOrEqual": "Độ dài văn bản phải lớn hơn hoặc bằng {FORMULA1}",
|
|
123
|
+
"lessThan": "Độ dài văn bản phải nhỏ hơn {FORMULA1}",
|
|
124
|
+
"lessThanOrEqual": "Độ dài văn bản phải nhỏ hơn hoặc bằng {FORMULA1}",
|
|
125
|
+
"equal": "Độ dài văn bản phải bằng {FORMULA1}",
|
|
126
|
+
"notEqual": "Độ dài văn bản phải không bằng {FORMULA1}",
|
|
127
|
+
"notBetween": "Độ dài văn bản phải không nằm giữa {FORMULA1} và {FORMULA2}"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"decimal": {
|
|
131
|
+
"title": "Số thập phân"
|
|
132
|
+
},
|
|
133
|
+
"whole": {
|
|
134
|
+
"title": "Số nguyên"
|
|
135
|
+
},
|
|
136
|
+
"checkbox": {
|
|
137
|
+
"title": "Hộp kiểm",
|
|
138
|
+
"error": "Nội dung của ô này vi phạm quy tắc xác thực",
|
|
139
|
+
"tips": "Sử dụng giá trị tùy chỉnh trong ô",
|
|
140
|
+
"checked": "Giá trị khi chọn",
|
|
141
|
+
"unchecked": "Giá trị khi không chọn"
|
|
142
|
+
},
|
|
143
|
+
"custom": {
|
|
144
|
+
"title": "Công thức tùy chỉnh",
|
|
145
|
+
"error": "Nội dung của ô này vi phạm quy tắc xác thực",
|
|
146
|
+
"validFail": "Vui lòng nhập một công thức hợp lệ"
|
|
147
|
+
},
|
|
148
|
+
"alert": {
|
|
149
|
+
"title": "Thông báo",
|
|
150
|
+
"ok": "Xác nhận"
|
|
151
|
+
},
|
|
152
|
+
"error": {
|
|
153
|
+
"title": "Không hợp lệ:"
|
|
154
|
+
},
|
|
155
|
+
"renderMode": {
|
|
156
|
+
"arrow": "Mũi tên",
|
|
157
|
+
"chip": "Nhãn dạng thanh",
|
|
158
|
+
"text": "Văn bản thuần túy",
|
|
159
|
+
"label": "Hiển thị kiểu"
|
|
160
|
+
},
|
|
161
|
+
"showTime": {
|
|
162
|
+
"label": "Hiển thị lựa chọn thời gian"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
package/lib/locale/zh-CN.json
CHANGED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dataValidation": {
|
|
3
|
+
"title": "資料驗證",
|
|
4
|
+
"validFail": {
|
|
5
|
+
"value": "請輸入一個合法值",
|
|
6
|
+
"common": "請輸入數值或公式",
|
|
7
|
+
"number": "請輸入合法的數字或公式",
|
|
8
|
+
"formula": "請輸入合法的公式",
|
|
9
|
+
"integer": "請輸入合法的整數或公式",
|
|
10
|
+
"date": "請輸入合法的日期或公式",
|
|
11
|
+
"list": "請輸入至少一個合法選項",
|
|
12
|
+
"listInvalid": "清單來源必須是分隔清單或單行或列的參考。 ",
|
|
13
|
+
"checkboxEqual": "為勾選和未勾選的儲存格內容輸入不同的值。 ",
|
|
14
|
+
"formulaError": "引用範圍內包含不可見的數據,請重新調整範圍",
|
|
15
|
+
"listIntersects": "所選範圍不能和規則範圍相交",
|
|
16
|
+
"primitive": "自訂勾選和未勾選值不允許使用公式。 "
|
|
17
|
+
},
|
|
18
|
+
"panel": {
|
|
19
|
+
"title": "管理資料驗證",
|
|
20
|
+
"addTitle": "新資料驗證",
|
|
21
|
+
"removeAll": "全部刪除",
|
|
22
|
+
"add": "新建規則",
|
|
23
|
+
"range": "應用範圍",
|
|
24
|
+
"type": "條件型別",
|
|
25
|
+
"options": "進階設定",
|
|
26
|
+
"operator": "資料",
|
|
27
|
+
"removeRule": "刪除規則",
|
|
28
|
+
"done": "確認",
|
|
29
|
+
"formulaPlaceholder": "請輸入數值或公式",
|
|
30
|
+
"valuePlaceholder": "請輸入值",
|
|
31
|
+
"formulaAnd": "與",
|
|
32
|
+
"invalid": "資料無效時",
|
|
33
|
+
"showWarning": "顯示警告",
|
|
34
|
+
"rejectInput": "拒絕輸入",
|
|
35
|
+
"messageInfo": "文字提示",
|
|
36
|
+
"showInfo": "顯示所選單元格的提示文字"
|
|
37
|
+
},
|
|
38
|
+
"operators": {
|
|
39
|
+
"between": "介於",
|
|
40
|
+
"greaterThan": "大於",
|
|
41
|
+
"greaterThanOrEqual": "大於或等於",
|
|
42
|
+
"lessThan": "小於",
|
|
43
|
+
"lessThanOrEqual": "小於或等於",
|
|
44
|
+
"equal": "等於",
|
|
45
|
+
"notEqual": "不等於",
|
|
46
|
+
"notBetween": "未介於"
|
|
47
|
+
},
|
|
48
|
+
"ruleName": {
|
|
49
|
+
"between": "介於 {FORMULA1} 和 {FORMULA2} 之間",
|
|
50
|
+
"greaterThan": "大於 {FORMULA1}",
|
|
51
|
+
"greaterThanOrEqual": "大於或等於 {FORMULA1}",
|
|
52
|
+
"lessThan": "小於 {FORMULA1}",
|
|
53
|
+
"lessThanOrEqual": "小於或等於 {FORMULA1}",
|
|
54
|
+
"equal": "等於 {FORMULA1}",
|
|
55
|
+
"notEqual": "不等於 {FORMULA1}",
|
|
56
|
+
"notBetween": "在 {FORMULA1} 和 {FORMULA2} 範圍之外"
|
|
57
|
+
},
|
|
58
|
+
"errorMsg": {
|
|
59
|
+
"between": "值必須介於 {FORMULA1} 和 {FORMULA2} 之間",
|
|
60
|
+
"greaterThan": "值必須大於 {FORMULA1}",
|
|
61
|
+
"greaterThanOrEqual": "值必須大於或等於 {FORMULA1}",
|
|
62
|
+
"lessThan": "值必須小於 {FORMULA1}",
|
|
63
|
+
"lessThanOrEqual": "值必須小於或等於 {FORMULA1}",
|
|
64
|
+
"equal": "值必須等於 {FORMULA1}",
|
|
65
|
+
"notEqual": "值必須不等於 {FORMULA1}",
|
|
66
|
+
"notBetween": "值必須在 {FORMULA1} 和 {FORMULA2} 範圍之外"
|
|
67
|
+
},
|
|
68
|
+
"date": {
|
|
69
|
+
"title": "日期",
|
|
70
|
+
"operators": {
|
|
71
|
+
"between": "介於",
|
|
72
|
+
"greaterThan": "晚於",
|
|
73
|
+
"greaterThanOrEqual": "晚於或等於",
|
|
74
|
+
"lessThan": "早於",
|
|
75
|
+
"lessThanOrEqual": "早於或等於",
|
|
76
|
+
"equal": "等於",
|
|
77
|
+
"notEqual": "不等於",
|
|
78
|
+
"notBetween": "未介於"
|
|
79
|
+
},
|
|
80
|
+
"ruleName": {
|
|
81
|
+
"between": "介於 {FORMULA1} 和 {FORMULA2} 之間",
|
|
82
|
+
"greaterThan": "晚於 {FORMULA1}",
|
|
83
|
+
"greaterThanOrEqual": "晚於或等於 {FORMULA1}",
|
|
84
|
+
"lessThan": "早於 {FORMULA1}",
|
|
85
|
+
"lessThanOrEqual": "早於或等於 {FORMULA1}",
|
|
86
|
+
"equal": "等於 {FORMULA1}",
|
|
87
|
+
"notEqual": "不等於 {FORMULA1}",
|
|
88
|
+
"notBetween": "在 {FORMULA1} 和 {FORMULA2} 範圍之外"
|
|
89
|
+
},
|
|
90
|
+
"errorMsg": {
|
|
91
|
+
"between": "日期必須介於 {FORMULA1} 和 {FORMULA2} 之間",
|
|
92
|
+
"greaterThan": "日期必須晚於 {FORMULA1}",
|
|
93
|
+
"greaterThanOrEqual": "日期必須晚於或等於 {FORMULA1}",
|
|
94
|
+
"lessThan": "日期必須早於 {FORMULA1}",
|
|
95
|
+
"lessThanOrEqual": "早於或等於 {FORMULA1}",
|
|
96
|
+
"equal": "日期必須等於 {FORMULA1}",
|
|
97
|
+
"notEqual": "日期必須不等於 {FORMULA1}",
|
|
98
|
+
"notBetween": "日期必須在 {FORMULA1} 和 {FORMULA2} 範圍之外"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"list": {
|
|
102
|
+
"title": "下拉選單",
|
|
103
|
+
"name": "值必須是列表中的值",
|
|
104
|
+
"error": "輸入必須在指定的範圍內",
|
|
105
|
+
"emptyError": "請輸入一個值",
|
|
106
|
+
"add": "新增選項",
|
|
107
|
+
"dropdown": "單選",
|
|
108
|
+
"options": "選項來源",
|
|
109
|
+
"customOptions": "自訂",
|
|
110
|
+
"refOptions": "引用資料",
|
|
111
|
+
"formulaError": "列表來源必須是劃定分界後的資料列表,或是對單一行或一列的引用。 "
|
|
112
|
+
},
|
|
113
|
+
"listMultiple": {
|
|
114
|
+
"title": "下拉式選單-多選",
|
|
115
|
+
"dropdown": "多選"
|
|
116
|
+
},
|
|
117
|
+
"textLength": {
|
|
118
|
+
"title": "文本長度",
|
|
119
|
+
"errorMsg": {
|
|
120
|
+
"between": "文本長度必須介於 {FORMULA1} 和 {FORMULA2} 之間",
|
|
121
|
+
"greaterThan": "文本長度必須大於 {FORMULA1}",
|
|
122
|
+
"greaterThanOrEqual": "文本長度必須大於或等於 {FORMULA1}",
|
|
123
|
+
"lessThan": "文字長度必須小於 {FORMULA1}",
|
|
124
|
+
"lessThanOrEqual": "文字長度必須小於或等於 {FORMULA1}",
|
|
125
|
+
"equal": "文本長度必須等於 {FORMULA1}",
|
|
126
|
+
"notEqual": "文字長度必須不等於 {FORMULA1}",
|
|
127
|
+
"notBetween": "文本長度必須在 {FORMULA1} 和 {FORMULA2} 範圍之外"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"decimal": {
|
|
131
|
+
"title": "數字"
|
|
132
|
+
},
|
|
133
|
+
"whole": {
|
|
134
|
+
"title": "整數"
|
|
135
|
+
},
|
|
136
|
+
"checkbox": {
|
|
137
|
+
"title": "複選框",
|
|
138
|
+
"error": "此儲存格的內容違反了驗證規則",
|
|
139
|
+
"tips": "在儲存格內使用自訂值",
|
|
140
|
+
"checked": "選取值",
|
|
141
|
+
"unchecked": "未選取值"
|
|
142
|
+
},
|
|
143
|
+
"custom": {
|
|
144
|
+
"title": "自訂公式",
|
|
145
|
+
"error": "此儲存格的內容違反了驗證規則",
|
|
146
|
+
"validFail": "請輸入合法的公式"
|
|
147
|
+
},
|
|
148
|
+
"alert": {
|
|
149
|
+
"title": "提示",
|
|
150
|
+
"ok": "確定"
|
|
151
|
+
},
|
|
152
|
+
"error": {
|
|
153
|
+
"title": "無效:"
|
|
154
|
+
},
|
|
155
|
+
"renderMode": {
|
|
156
|
+
"arrow": "箭頭",
|
|
157
|
+
"chip": "條狀標籤",
|
|
158
|
+
"text": "純文字",
|
|
159
|
+
"label": "顯示樣式"
|
|
160
|
+
},
|
|
161
|
+
"showTime": {
|
|
162
|
+
"label": "展示時間選擇"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ICommand, IDataValidationRuleBase, IDataValidationRuleOptions, IMutationInfo, IRange, ISheetDataValidationRule } from '@univerjs/core';
|
|
1
|
+
import { IAccessor, ICommand, IDataValidationRuleBase, IDataValidationRuleOptions, IMutationInfo, IRange, ISheetDataValidationRule } from '@univerjs/core';
|
|
2
2
|
import { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
3
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
4
3
|
import { RangeMutation } from '../../models/rule-matrix';
|
|
5
4
|
|
|
6
5
|
export interface IUpdateSheetDataValidationRangeCommandParams {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Disposable } from '@univerjs/core';
|
|
1
|
+
import { Disposable, Injector } from '@univerjs/core';
|
|
2
2
|
import { IAutoFillService } from '@univerjs/sheets-ui';
|
|
3
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
3
|
import { DataValidationModel } from '@univerjs/data-validation';
|
|
5
4
|
|
|
6
5
|
export declare class DataValidationAutoFillController extends Disposable {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Disposable } from '@univerjs/core';
|
|
1
|
+
import { Disposable, Injector } from '@univerjs/core';
|
|
2
2
|
import { ISheetClipboardService } from '@univerjs/sheets-ui';
|
|
3
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
3
|
import { DataValidationModel } from '@univerjs/data-validation';
|
|
5
4
|
|
|
6
5
|
export declare class DataValidationCopyPasteController extends Disposable {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Disposable, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
|
|
1
|
+
import { Disposable, Injector, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { DataValidationModel } from '@univerjs/data-validation';
|
|
3
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
3
|
|
|
5
4
|
export declare class DataValidationModelController extends Disposable {
|
|
6
5
|
private readonly _resourceManagerService;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ISheetDataValidationRule, Disposable } from '@univerjs/core';
|
|
1
|
+
import { ISheetDataValidationRule, Disposable, Injector } from '@univerjs/core';
|
|
2
2
|
import { RefRangeService } from '@univerjs/sheets';
|
|
3
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
3
|
import { DataValidationModel } from '@univerjs/data-validation';
|
|
5
4
|
import { FormulaRefRangeService } from '@univerjs/sheets-formula';
|
|
6
5
|
import { DataValidationCustomFormulaService } from '../services/dv-custom-formula.service';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
1
|
+
import { ICommandService, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { DataValidationModel, DataValidatorRegistryService } from '@univerjs/data-validation';
|
|
3
3
|
import { MenuConfig, ComponentManager, IMenuService } from '@univerjs/ui';
|
|
4
|
-
import { Injector } from '@wendellhu/redi';
|
|
5
4
|
import { AutoHeightController, IEditorBridgeService } from '@univerjs/sheets-ui';
|
|
6
5
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
7
6
|
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
@@ -27,7 +26,6 @@ export declare class SheetsDataValidationRenderController extends RxDisposable {
|
|
|
27
26
|
private readonly _editorBridgeService?;
|
|
28
27
|
constructor(_config: Partial<IUniverSheetsDataValidation>, _commandService: ICommandService, _menuService: IMenuService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _autoHeightController: AutoHeightController, _componentManager: ComponentManager, _dropdownManagerService: DataValidationDropdownManagerService, _dataValidationModel: DataValidationModel, _dataValidatorRegistryService: DataValidatorRegistryService, _injector: Injector, _sheetInterceptorService: SheetInterceptorService, _editorBridgeService?: IEditorBridgeService | undefined);
|
|
29
28
|
private _initMenu;
|
|
30
|
-
private _initComponents;
|
|
31
29
|
private _initDropdown;
|
|
32
30
|
private _initSkeletonChange;
|
|
33
31
|
private _initViewModelIntercept;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
1
|
+
import { Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { DataValidationModel, DataValidatorRegistryService } from '@univerjs/data-validation';
|
|
3
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
3
|
import { ComponentManager } from '@univerjs/ui';
|
|
5
|
-
import {
|
|
4
|
+
import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
|
|
6
5
|
import { SheetDataValidationService } from '../services/dv.service';
|
|
7
6
|
|
|
8
7
|
export declare class DataValidationController extends RxDisposable {
|
|
@@ -14,9 +13,10 @@ export declare class DataValidationController extends RxDisposable {
|
|
|
14
13
|
private _selectionManagerService;
|
|
15
14
|
private readonly _sheetInterceptorService;
|
|
16
15
|
private readonly _dataValidationModel;
|
|
17
|
-
constructor(_univerInstanceService: IUniverInstanceService, _sheetDataValidationService: SheetDataValidationService, _dataValidatorRegistryService: DataValidatorRegistryService, _injector: Injector, _componentManger: ComponentManager, _selectionManagerService:
|
|
16
|
+
constructor(_univerInstanceService: IUniverInstanceService, _sheetDataValidationService: SheetDataValidationService, _dataValidatorRegistryService: DataValidatorRegistryService, _injector: Injector, _componentManger: ComponentManager, _selectionManagerService: SheetsSelectionsService, _sheetInterceptorService: SheetInterceptorService, _dataValidationModel: DataValidationModel);
|
|
18
17
|
private _init;
|
|
19
18
|
private _registerValidators;
|
|
20
19
|
private _initInstanceChange;
|
|
21
20
|
private _initCommandInterceptor;
|
|
21
|
+
private _initComponents;
|
|
22
22
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IMenuItem } from '@univerjs/ui';
|
|
2
|
-
import { IAccessor } from '@
|
|
2
|
+
import { IAccessor } from '@univerjs/core';
|
|
3
3
|
|
|
4
4
|
export declare const DataValidationIcon = "data-validation-single";
|
|
5
5
|
export declare function dataValidationMenuFactory(accessor: IAccessor): IMenuItem;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ICommandService, LocaleService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
-
import { Injector } from '@wendellhu/redi';
|
|
1
|
+
import { ICommandService, LocaleService, Plugin, UniverInstanceType, Injector } from '@univerjs/core';
|
|
3
2
|
import { IUniverSheetsDataValidation } from './controllers/dv-render.controller';
|
|
4
3
|
|
|
5
4
|
export declare class UniverSheetsDataValidationMobilePlugin extends Plugin {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { CellValue, ISheetDataValidationRule, Nullable, DataValidationStatus, DataValidationType } from '@univerjs/core';
|
|
1
|
+
import { CellValue, Injector, ISheetDataValidationRule, Nullable, DataValidationStatus, DataValidationType } from '@univerjs/core';
|
|
2
2
|
import { DataValidationManager, IUpdateRulePayload } from '@univerjs/data-validation';
|
|
3
3
|
import { ISheetLocationBase } from '@univerjs/sheets';
|
|
4
|
-
import { Injector } from '@wendellhu/redi';
|
|
5
4
|
import { RuleMatrix } from './rule-matrix';
|
|
6
5
|
|
|
7
6
|
export declare class SheetDataValidationManager extends DataValidationManager<ISheetDataValidationRule> {
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ICommandService, LocaleService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
-
import { Injector } from '@wendellhu/redi';
|
|
1
|
+
import { ICommandService, LocaleService, Plugin, UniverInstanceType, Injector } from '@univerjs/core';
|
|
3
2
|
import { IUniverSheetsDataValidation } from './controllers/dv-render.controller';
|
|
4
3
|
|
|
5
4
|
export declare class UniverSheetsDataValidationPlugin extends Plugin {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { IDataValidationRule, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
1
|
+
import { IDataValidationRule, IDisposable, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { ISidebarService } from '@univerjs/ui';
|
|
3
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
4
3
|
|
|
5
4
|
export declare class DataValidationPanelService extends Disposable {
|
|
6
5
|
private readonly _univerInstanceService;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Disposable, IUniverInstanceService
|
|
1
|
+
import { Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { ISheetLocation } from '@univerjs/sheets';
|
|
3
3
|
import { SheetCanvasPopManagerService } from '@univerjs/sheets-ui';
|
|
4
4
|
import { DataValidationModel, DataValidatorRegistryService } from '@univerjs/data-validation';
|
|
@@ -30,7 +30,7 @@ export declare class DataValidationDropdownManagerService extends Disposable {
|
|
|
30
30
|
get activeDropdown(): Nullable<IDropdownParam>;
|
|
31
31
|
constructor(_canvasPopupManagerService: SheetCanvasPopManagerService, _univerInstanceService: IUniverInstanceService, _dataValidatorRegistryService: DataValidatorRegistryService, _zenZoneService: IZenZoneService, _renderManagerService: IRenderManagerService, _dataValidationModel: DataValidationModel);
|
|
32
32
|
private _init;
|
|
33
|
-
showDropdown(param: IDropdownParam): void;
|
|
33
|
+
showDropdown(param: IDropdownParam, closeOnOutSide?: boolean): void;
|
|
34
34
|
hideDropdown(): void;
|
|
35
35
|
showDataValidationDropdown(unitId: string, subUnitId: string, row: number, col: number, onHide?: () => void): void;
|
|
36
36
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Nullable } from '@univerjs/core';
|
|
1
|
+
import { Disposable, Nullable } from '@univerjs/core';
|
|
2
2
|
import { DataValidationModel } from '@univerjs/data-validation';
|
|
3
3
|
import { SheetDataValidationManager } from '../models/sheet-data-validation-manager';
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ export interface ICurrentDataValidationManager {
|
|
|
7
7
|
unitId: string;
|
|
8
8
|
subUnitId: string;
|
|
9
9
|
}
|
|
10
|
-
export declare class SheetDataValidationService {
|
|
10
|
+
export declare class SheetDataValidationService extends Disposable {
|
|
11
11
|
private _dataValidationModel;
|
|
12
12
|
private _currentManager;
|
|
13
13
|
private _currentManager$;
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export declare function
|
|
17
|
-
export declare const
|
|
16
|
+
export declare function excelSerialToUnixTimestamp(excelSerial: number): number;
|
|
17
|
+
export declare const timestamp2SerialTime: (timestamp: number) => number;
|
|
@@ -1,30 +1,32 @@
|
|
|
1
|
-
import { DataValidationOperator, CellValue, IDataValidationRule, IDataValidationRuleBase
|
|
2
|
-
import { Dayjs } from 'dayjs';
|
|
1
|
+
import { DataValidationOperator, CellValue, IDataValidationRule, IDataValidationRuleBase } from '@univerjs/core';
|
|
3
2
|
import { IFormulaResult, IFormulaValidResult, IValidatorCellInfo, BaseDataValidator } from '@univerjs/data-validation';
|
|
4
3
|
|
|
5
|
-
export declare class DateValidator extends BaseDataValidator<
|
|
4
|
+
export declare class DateValidator extends BaseDataValidator<number> {
|
|
6
5
|
id: string;
|
|
7
6
|
title: string;
|
|
8
7
|
operators: DataValidationOperator[];
|
|
9
8
|
scopes: string | string[];
|
|
10
9
|
formulaInput: string;
|
|
10
|
+
optionsInput: string;
|
|
11
11
|
dropdown: string;
|
|
12
12
|
private _formulaService;
|
|
13
|
-
parseFormula(rule: IDataValidationRule, unitId: string, subUnitId: string): Promise<IFormulaResult<
|
|
14
|
-
|
|
13
|
+
parseFormula(rule: IDataValidationRule, unitId: string, subUnitId: string): Promise<IFormulaResult<number | undefined>>;
|
|
14
|
+
parseFormulaSync(rule: IDataValidationRule, unitId: string, subUnitId: string): {
|
|
15
|
+
formula1: number | undefined;
|
|
16
|
+
formula2: number | undefined;
|
|
17
|
+
};
|
|
15
18
|
isValidType(info: IValidatorCellInfo): Promise<boolean>;
|
|
16
19
|
private _validatorSingleFormula;
|
|
17
20
|
validatorFormula(rule: IDataValidationRule, unitId: string, subUnitId: string): IFormulaValidResult;
|
|
18
|
-
transform(cellInfo: IValidatorCellInfo<CellValue>, _formula: IFormulaResult, _rule: IDataValidationRule): IValidatorCellInfo<
|
|
19
|
-
validatorIsEqual(
|
|
20
|
-
validatorIsNotEqual(
|
|
21
|
-
validatorIsBetween(
|
|
22
|
-
validatorIsNotBetween(
|
|
23
|
-
validatorIsGreaterThan(
|
|
24
|
-
validatorIsGreaterThanOrEqual(
|
|
25
|
-
validatorIsLessThan(
|
|
26
|
-
validatorIsLessThanOrEqual(
|
|
27
|
-
validatorFormulaValue(rule: IDataValidationRule): string | undefined;
|
|
21
|
+
transform(cellInfo: IValidatorCellInfo<CellValue>, _formula: IFormulaResult, _rule: IDataValidationRule): IValidatorCellInfo<number>;
|
|
22
|
+
validatorIsEqual(cellInfo: IValidatorCellInfo<CellValue>, formula: IFormulaResult, rule: IDataValidationRule): Promise<boolean>;
|
|
23
|
+
validatorIsNotEqual(cellInfo: IValidatorCellInfo<number>, formula: IFormulaResult, _rule: IDataValidationRule): Promise<boolean>;
|
|
24
|
+
validatorIsBetween(cellInfo: IValidatorCellInfo<number>, formula: IFormulaResult, _rule: IDataValidationRule): Promise<boolean>;
|
|
25
|
+
validatorIsNotBetween(cellInfo: IValidatorCellInfo<number>, formula: IFormulaResult, _rule: IDataValidationRule): Promise<boolean>;
|
|
26
|
+
validatorIsGreaterThan(cellInfo: IValidatorCellInfo<number>, formula: IFormulaResult, _rule: IDataValidationRule): Promise<boolean>;
|
|
27
|
+
validatorIsGreaterThanOrEqual(cellInfo: IValidatorCellInfo<number>, formula: IFormulaResult, _rule: IDataValidationRule): Promise<boolean>;
|
|
28
|
+
validatorIsLessThan(cellInfo: IValidatorCellInfo<number>, formula: IFormulaResult, _rule: IDataValidationRule): Promise<boolean>;
|
|
29
|
+
validatorIsLessThanOrEqual(cellInfo: IValidatorCellInfo<number>, formula: IFormulaResult, _rule: IDataValidationRule): Promise<boolean>;
|
|
28
30
|
get operatorNames(): string[];
|
|
29
31
|
generateRuleName(rule: IDataValidationRuleBase): string;
|
|
30
32
|
generateRuleErrorMessage(rule: IDataValidationRuleBase): string;
|