awing-library 2.1.66-beta → 2.1.68-beta
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/lib/AWING/Chart/Styles.d.ts +6 -2
- package/lib/AWING/Chart/Styles.js +6 -2
- package/lib/AWING/PageManagement/PageManagement.js +1 -1
- package/lib/AWING/ultis/validation.d.ts +1 -1
- package/lib/AWING/ultis/validation.js +4 -2
- package/lib/Commons/Components/ClassicDrawer.js +1 -1
- package/package.json +1 -1
|
@@ -4,8 +4,12 @@ export declare const styledLineFill: (defaultStyle: any, variant: any) => any;
|
|
|
4
4
|
export declare const getStyle: (defaultStyle: any, type: any, color: any) => any;
|
|
5
5
|
export declare const dataSetCommonStyled: {
|
|
6
6
|
barStyle: {
|
|
7
|
-
primary: {
|
|
8
|
-
|
|
7
|
+
primary: {
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
};
|
|
10
|
+
secondary: {
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
};
|
|
9
13
|
default: {
|
|
10
14
|
backgroundColor: string;
|
|
11
15
|
};
|
|
@@ -95,8 +95,12 @@ var getStyle = function (defaultStyle, type, color) {
|
|
|
95
95
|
exports.getStyle = getStyle;
|
|
96
96
|
exports.dataSetCommonStyled = {
|
|
97
97
|
barStyle: {
|
|
98
|
-
primary: {
|
|
99
|
-
|
|
98
|
+
primary: {
|
|
99
|
+
backgroundColor: '#0055b8',
|
|
100
|
+
},
|
|
101
|
+
secondary: {
|
|
102
|
+
backgroundColor: '#dd040c',
|
|
103
|
+
},
|
|
100
104
|
default: {
|
|
101
105
|
backgroundColor: '#80b0ff',
|
|
102
106
|
},
|
|
@@ -59,7 +59,7 @@ var PageManagement = function (props) {
|
|
|
59
59
|
// }, [queryInput, onChangeQueryInput, window.location.pathname]);
|
|
60
60
|
(0, react_1.useEffect)(function () {
|
|
61
61
|
var _a;
|
|
62
|
-
if (((_a = location.state) === null || _a === void 0 ? void 0 : _a.
|
|
62
|
+
if (((_a = location.state) === null || _a === void 0 ? void 0 : _a.pageAction) === ClassicDrawer_1.CloseAction.Reload ||
|
|
63
63
|
!(0, lodash_1.isEqual)(queryInput, cachedQueryInput.current)) {
|
|
64
64
|
handleChangeQueryInput(queryInput);
|
|
65
65
|
cachedQueryInput.current = (0, lodash_1.cloneDeep)(queryInput);
|
|
@@ -23,7 +23,7 @@ export declare function logicExpressionValid(value: string | null | undefined):
|
|
|
23
23
|
* @param invertRegex - The inverted regular expression pattern to match against the text string. Default is undefined.
|
|
24
24
|
* @returns An object containing the validation result and a message describing any validation errors.
|
|
25
25
|
*/
|
|
26
|
-
export declare const textValidation: (str: string, length?: number, required?: boolean, pattern?: RegExp, invertRegex?: RegExp) => {
|
|
26
|
+
export declare const textValidation: (str: string, length?: number, required?: boolean, pattern?: RegExp, invertRegex?: RegExp | false) => {
|
|
27
27
|
valid: boolean;
|
|
28
28
|
message: string;
|
|
29
29
|
};
|
|
@@ -113,10 +113,12 @@ var textValidation = function (str, length, required, pattern, invertRegex) {
|
|
|
113
113
|
.replace(/[\u0300-\u036f]/g, '')
|
|
114
114
|
.replace(/đ/g, 'd')
|
|
115
115
|
.trim();
|
|
116
|
-
var invertedRegex = invertRegex || new RegExp("[^".concat(pattern.source.replace(/[*+?^${}|]/g, ''), "]").replace(/\[\[|\]\]/g, ']'), 'g');
|
|
117
116
|
if (textTransform && pattern && !pattern.test(textTransform)) {
|
|
118
117
|
validRes.valid = false;
|
|
119
|
-
|
|
118
|
+
if (invertRegex !== false) {
|
|
119
|
+
var invertedRegex = invertRegex || new RegExp("[^".concat(pattern.source.replace(/[*+?^${}|]/g, ''), "]").replace(/\[\[|\]\]/g, ']'), 'g');
|
|
120
|
+
validRes.message.push("".concat(i18n_1.default.t('Common.InvalidChars'), ": ").concat(Array.from(new Set(textTransform.match(invertedRegex))).join(' ')));
|
|
121
|
+
}
|
|
120
122
|
}
|
|
121
123
|
var byteSize = new Blob([str]).size;
|
|
122
124
|
if (byteSize > length) {
|
|
@@ -67,7 +67,7 @@ var Drawer = function (props) {
|
|
|
67
67
|
var _a;
|
|
68
68
|
((_a = location.state) === null || _a === void 0 ? void 0 : _a.type) === 'history'
|
|
69
69
|
? navigate(-1)
|
|
70
|
-
: navigate('..', { state: __assign(__assign({}, location.state), {
|
|
70
|
+
: navigate('..', { state: __assign(__assign({}, location.state), { pageAction: action }) });
|
|
71
71
|
}, 100);
|
|
72
72
|
};
|
|
73
73
|
var doPromise = function () {
|