@univerjs/sheets-data-validation 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.
- package/README.md +6 -5
- package/lib/cjs/facade.js +16 -27
- package/lib/cjs/index.js +216 -221
- package/lib/cjs/locale/ar-SA.js +1 -2
- package/lib/cjs/locale/ca-ES.js +1 -2
- package/lib/cjs/locale/de-DE.js +1 -2
- package/lib/cjs/locale/en-US.js +1 -2
- package/lib/cjs/locale/es-ES.js +1 -2
- package/lib/cjs/locale/fa-IR.js +1 -2
- package/lib/cjs/locale/fr-FR.js +1 -2
- package/lib/cjs/locale/id-ID.js +1 -2
- package/lib/cjs/locale/it-IT.js +1 -2
- package/lib/cjs/locale/ja-JP.js +1 -2
- package/lib/cjs/locale/ko-KR.js +1 -2
- package/lib/cjs/locale/pl-PL.js +1 -2
- package/lib/cjs/locale/pt-BR.js +1 -2
- package/lib/cjs/locale/ru-RU.js +1 -2
- package/lib/cjs/locale/sk-SK.js +1 -2
- package/lib/cjs/locale/vi-VN.js +1 -2
- package/lib/cjs/locale/zh-CN.js +1 -2
- package/lib/cjs/locale/zh-HK.js +1 -2
- package/lib/cjs/locale/zh-TW.js +1 -2
- package/lib/es/facade.js +16 -27
- package/lib/es/index.js +216 -221
- package/lib/es/locale/ar-SA.js +1 -2
- package/lib/es/locale/ca-ES.js +1 -2
- package/lib/es/locale/de-DE.js +1 -2
- package/lib/es/locale/en-US.js +1 -2
- package/lib/es/locale/es-ES.js +1 -2
- package/lib/es/locale/fa-IR.js +1 -2
- package/lib/es/locale/fr-FR.js +1 -2
- package/lib/es/locale/id-ID.js +1 -2
- package/lib/es/locale/it-IT.js +1 -2
- package/lib/es/locale/ja-JP.js +1 -2
- package/lib/es/locale/ko-KR.js +1 -2
- package/lib/es/locale/pl-PL.js +1 -2
- package/lib/es/locale/pt-BR.js +1 -2
- package/lib/es/locale/ru-RU.js +1 -2
- package/lib/es/locale/sk-SK.js +1 -2
- package/lib/es/locale/vi-VN.js +1 -2
- package/lib/es/locale/zh-CN.js +1 -2
- package/lib/es/locale/zh-HK.js +1 -2
- package/lib/es/locale/zh-TW.js +1 -2
- package/lib/facade.js +16 -27
- package/lib/index.js +216 -221
- package/lib/locale/ar-SA.js +1 -2
- package/lib/locale/ca-ES.js +1 -2
- package/lib/locale/de-DE.js +1 -2
- package/lib/locale/en-US.js +1 -2
- package/lib/locale/es-ES.js +1 -2
- package/lib/locale/fa-IR.js +1 -2
- package/lib/locale/fr-FR.js +1 -2
- package/lib/locale/id-ID.js +1 -2
- package/lib/locale/it-IT.js +1 -2
- package/lib/locale/ja-JP.js +1 -2
- package/lib/locale/ko-KR.js +1 -2
- package/lib/locale/pl-PL.js +1 -2
- package/lib/locale/pt-BR.js +1 -2
- package/lib/locale/ru-RU.js +1 -2
- package/lib/locale/sk-SK.js +1 -2
- package/lib/locale/vi-VN.js +1 -2
- package/lib/locale/zh-CN.js +1 -2
- package/lib/locale/zh-HK.js +1 -2
- package/lib/locale/zh-TW.js +1 -2
- package/lib/types/facade/f-range.d.ts +5 -1
- package/lib/types/models/rule-matrix.d.ts +13 -0
- package/lib/types/services/dv-formula.service.d.ts +7 -3
- package/lib/types/services/dv-list-cache.service.d.ts +4 -3
- package/lib/types/validators/decimal-validator.d.ts +1 -1
- package/lib/types/validators/text-length-validator.d.ts +1 -1
- package/lib/types/validators/whole-validator.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +12 -12
package/lib/cjs/locale/ar-SA.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ar-SA.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "بين",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ca-ES.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "entre",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/cjs/locale/de-DE.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/de-DE.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "zwischen",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/cjs/locale/en-US.js
CHANGED
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/es-ES.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "entre",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/fa-IR.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "بین",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/fr-FR.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "entre",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/cjs/locale/id-ID.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/id-ID.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "antara",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/cjs/locale/it-IT.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/it-IT.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "tra",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ja-JP.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "次の値の間",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ko-KR.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "사이",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/cjs/locale/pl-PL.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/pl-PL.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "między",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/cjs/locale/pt-BR.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/pt-BR.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "entre",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/ru-RU.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "между",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/sk-SK.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "medzi",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/vi-VN.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "Giữa",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-CN.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "介于",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/cjs/locale/zh-HK.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-HK.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "介於",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale/zh-TW.ts
|
|
2
2
|
const locale = { "sheets-data-validation": {
|
|
3
3
|
operators: {
|
|
4
4
|
between: "介於",
|
|
@@ -114,5 +114,4 @@ const locale = { "sheets-data-validation": {
|
|
|
114
114
|
}
|
|
115
115
|
} };
|
|
116
116
|
|
|
117
|
-
//#endregion
|
|
118
117
|
module.exports = locale;
|
package/lib/es/facade.js
CHANGED
|
@@ -6,7 +6,7 @@ import { serializeRangeToRefString } from "@univerjs/engine-formula";
|
|
|
6
6
|
import { serializeListOptions } from "@univerjs/sheets";
|
|
7
7
|
import { FEventName, FUniver } from "@univerjs/core/facade";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/typeof.js
|
|
10
10
|
function _typeof(o) {
|
|
11
11
|
"@babel/helpers - typeof";
|
|
12
12
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -16,28 +16,25 @@ function _typeof(o) {
|
|
|
16
16
|
}, _typeof(o);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
function toPrimitive(t, r) {
|
|
19
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
|
|
20
|
+
function toPrimitive(t, e) {
|
|
22
21
|
if ("object" != _typeof(t) || !t) return t;
|
|
23
|
-
var
|
|
24
|
-
if (void 0 !==
|
|
25
|
-
var i =
|
|
22
|
+
var r;
|
|
23
|
+
if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
|
|
24
|
+
var i = r.call(t, e || "default");
|
|
26
25
|
if ("object" != _typeof(i)) return i;
|
|
27
26
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
28
27
|
}
|
|
29
|
-
return ("string" ===
|
|
28
|
+
return ("string" === e ? String : Number)(t);
|
|
30
29
|
}
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
|
|
31
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/toPropertyKey.js
|
|
34
32
|
function toPropertyKey(t) {
|
|
35
33
|
var i = toPrimitive(t, "string");
|
|
36
34
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
37
35
|
}
|
|
38
36
|
|
|
39
|
-
|
|
40
|
-
//#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
|
|
37
|
+
// \0@oxc-project+runtime@0.157.0/helpers/esm/defineProperty.js
|
|
41
38
|
function _defineProperty(e, r, t) {
|
|
42
39
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
43
40
|
value: t,
|
|
@@ -47,8 +44,7 @@ function _defineProperty(e, r, t) {
|
|
|
47
44
|
}) : e[r] = t, e;
|
|
48
45
|
}
|
|
49
46
|
|
|
50
|
-
|
|
51
|
-
//#region src/facade/f-data-validation-builder.ts
|
|
47
|
+
// src/facade/f-data-validation-builder.ts
|
|
52
48
|
/**
|
|
53
49
|
* Builder for data validation rules. use {@link FUniver} `univerAPI.newDataValidation()` to create a new builder.
|
|
54
50
|
* @example
|
|
@@ -953,8 +949,7 @@ var FDataValidationBuilder = class FDataValidationBuilder {
|
|
|
953
949
|
}
|
|
954
950
|
};
|
|
955
951
|
|
|
956
|
-
|
|
957
|
-
//#region src/facade/f-data-validation.ts
|
|
952
|
+
// src/facade/f-data-validation.ts
|
|
958
953
|
/**
|
|
959
954
|
* @hideconstructor
|
|
960
955
|
*/
|
|
@@ -1318,8 +1313,7 @@ var FDataValidation = class {
|
|
|
1318
1313
|
}
|
|
1319
1314
|
};
|
|
1320
1315
|
|
|
1321
|
-
|
|
1322
|
-
//#region src/facade/f-range.ts
|
|
1316
|
+
// src/facade/f-range.ts
|
|
1323
1317
|
/**
|
|
1324
1318
|
* @ignore
|
|
1325
1319
|
*/
|
|
@@ -1400,8 +1394,7 @@ var FRangeSheetsDataValidationMixin = class extends FRange {
|
|
|
1400
1394
|
};
|
|
1401
1395
|
FRange.extend(FRangeSheetsDataValidationMixin);
|
|
1402
1396
|
|
|
1403
|
-
|
|
1404
|
-
//#region src/facade/f-univer.ts
|
|
1397
|
+
// src/facade/f-univer.ts
|
|
1405
1398
|
var FUniverSheetsDataValidationMixin = class extends FUniver {
|
|
1406
1399
|
newDataValidation() {
|
|
1407
1400
|
return new FDataValidationBuilder();
|
|
@@ -1569,8 +1562,7 @@ var FUniverSheetsDataValidationMixin = class extends FUniver {
|
|
|
1569
1562
|
};
|
|
1570
1563
|
FUniver.extend(FUniverSheetsDataValidationMixin);
|
|
1571
1564
|
|
|
1572
|
-
|
|
1573
|
-
//#region src/facade/f-workbook.ts
|
|
1565
|
+
// src/facade/f-workbook.ts
|
|
1574
1566
|
/**
|
|
1575
1567
|
* @ignore
|
|
1576
1568
|
*/
|
|
@@ -1640,8 +1632,7 @@ var FWorkbookSheetsDataValidationMixin = class extends FWorkbook {
|
|
|
1640
1632
|
};
|
|
1641
1633
|
FWorkbook.extend(FWorkbookSheetsDataValidationMixin);
|
|
1642
1634
|
|
|
1643
|
-
|
|
1644
|
-
//#region src/facade/f-worksheet.ts
|
|
1635
|
+
// src/facade/f-worksheet.ts
|
|
1645
1636
|
/**
|
|
1646
1637
|
* @ignore
|
|
1647
1638
|
*/
|
|
@@ -1708,8 +1699,7 @@ var FWorksheetDataValidationMixin = class extends FWorksheet {
|
|
|
1708
1699
|
};
|
|
1709
1700
|
FWorksheet.extend(FWorksheetDataValidationMixin);
|
|
1710
1701
|
|
|
1711
|
-
|
|
1712
|
-
//#region src/facade/f-event.ts
|
|
1702
|
+
// src/facade/f-event.ts
|
|
1713
1703
|
/**
|
|
1714
1704
|
* @ignore
|
|
1715
1705
|
*/
|
|
@@ -1741,5 +1731,4 @@ var FSheetsDataValidationEventNameMixin = class extends FEventName {
|
|
|
1741
1731
|
};
|
|
1742
1732
|
FEventName.extend(FSheetsDataValidationEventNameMixin);
|
|
1743
1733
|
|
|
1744
|
-
//#endregion
|
|
1745
1734
|
export { FDataValidation, FDataValidationBuilder };
|