cnhis-design-vue 3.1.42-beta.45 → 3.1.42-beta.47
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 +87 -87
- package/es/components/big-table/src/BigTable.vue2.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-select-table.d.ts +1 -1
- package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
- package/es/components/big-table/src/hooks/useEvent.js +1 -1
- package/es/components/big-table/src/hooks/useFormat.js +1 -1
- package/es/components/big-table/src/hooks/useNestTable.js +1 -1
- package/es/components/big-table/src/hooks/useTableParse.js +1 -1
- package/es/components/big-table/src/utils.d.ts +11 -1
- package/es/components/big-table/src/utils.js +1 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -1
- package/es/components/scale-view/index.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-map.js +1 -1
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -1
- package/es/components/scale-view/src/hooks/use-evaluate.js +1 -1
- package/es/components/scale-view/src/hooks/use-event.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -1
- package/es/shared/utils/vexutils.d.ts +2 -3
- package/es/shared/utils/vexutils.js +1 -1
- package/es/shared/utils/vexutilsExpand.d.ts +254 -0
- package/es/shared/utils/vexutilsExpand.js +1 -0
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
- package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -75
- package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
- package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
- package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
parseCondition: (conList: any, data: any, fieldList: any) => boolean;
|
|
3
|
+
getFieldByKey: (fieldKey: any, fieldList: any) => any;
|
|
4
|
+
getConnection: (cObj: any, fVal: any, field: any) => boolean;
|
|
5
|
+
getBetween: (value: any, type: any, comVal: any) => boolean | undefined;
|
|
6
|
+
convertDate: (str: any) => Date | undefined;
|
|
7
|
+
addDate: (tempDate: any, days: any, unit: any) => Date | undefined;
|
|
8
|
+
addDiDate: (curDate: any, count: any, unit: string | undefined, type: any) => {
|
|
9
|
+
startTime: number;
|
|
10
|
+
endTime: number;
|
|
11
|
+
};
|
|
12
|
+
getCurSeasonFirstDay: () => Date;
|
|
13
|
+
isNumber: (val: any) => boolean;
|
|
14
|
+
isDate: (data: any) => boolean;
|
|
15
|
+
isJSON(str: any): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* 获取按钮自定义颜色
|
|
18
|
+
* @param {string} v
|
|
19
|
+
*/
|
|
20
|
+
getBtnStyle(v: string): {
|
|
21
|
+
'border-color': any;
|
|
22
|
+
color: any;
|
|
23
|
+
'background-color'?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
color: any;
|
|
26
|
+
'border-color'?: undefined;
|
|
27
|
+
'background-color'?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
'background-color': any;
|
|
30
|
+
'border-color': any;
|
|
31
|
+
color?: undefined;
|
|
32
|
+
};
|
|
33
|
+
oldColorMap(str: any): any;
|
|
34
|
+
validateBirthday(val: any, title: any, type: any): boolean;
|
|
35
|
+
handleImageSize(item: any, defaultHeight: any): {
|
|
36
|
+
display: string;
|
|
37
|
+
height: any;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* 大数组复制
|
|
41
|
+
* @param {*} arr 复制的数据
|
|
42
|
+
* @param {*} size 每次操作的数据量
|
|
43
|
+
* @returns {Array}
|
|
44
|
+
*/
|
|
45
|
+
handleBigArrayCopy(arr: any, size?: any): any[];
|
|
46
|
+
getAlphafloat(a: any, alpha: any): number;
|
|
47
|
+
hexToRGBA(hex: any, alpha: any): "" | {
|
|
48
|
+
r: any;
|
|
49
|
+
g: any;
|
|
50
|
+
b: any;
|
|
51
|
+
a: any;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* 时间转换
|
|
56
|
+
* @param {type} type 时间戳类型
|
|
57
|
+
* @param {time} time 时间戳
|
|
58
|
+
*/
|
|
59
|
+
formatTime(type: any, time: any): string;
|
|
60
|
+
formatDate(date: any, isShowYear?: boolean): any;
|
|
61
|
+
imgs2imgArr(imgs: any): any;
|
|
62
|
+
filterOption(input: any, option: any): boolean;
|
|
63
|
+
/**
|
|
64
|
+
* 转换含有###的值
|
|
65
|
+
* @param {*} item
|
|
66
|
+
* @param {*} k key
|
|
67
|
+
* @returns
|
|
68
|
+
*/
|
|
69
|
+
stringToValue(item: any, k?: any): any;
|
|
70
|
+
notEmpty(text: any): boolean;
|
|
71
|
+
anyNotEmpty(text: any): any;
|
|
72
|
+
handleMultiTips(str: any, arr?: {}): any;
|
|
73
|
+
/**
|
|
74
|
+
* 变量转换
|
|
75
|
+
* @param {string} str
|
|
76
|
+
* @param {object} obj
|
|
77
|
+
* @param {string | number} noval // 没有值,默认赋值
|
|
78
|
+
*/
|
|
79
|
+
handleSysParams(str: string, obj?: object, noval?: string | number): string;
|
|
80
|
+
/**
|
|
81
|
+
* 按钮setting中params参数解析
|
|
82
|
+
*/
|
|
83
|
+
setParamsValue(paramsList: any, dbData: any): {};
|
|
84
|
+
isPlainObject(obj: any): boolean;
|
|
85
|
+
VERSION: string;
|
|
86
|
+
setup: typeof import("xe-utils/ctor").setup;
|
|
87
|
+
mixin: typeof import("xe-utils/ctor").mixin;
|
|
88
|
+
commafy: typeof import("xe-utils").commafy;
|
|
89
|
+
getDateDiff: typeof import("xe-utils").getDateDiff;
|
|
90
|
+
getWhatWeek: typeof import("xe-utils").getWhatWeek;
|
|
91
|
+
toDateString: typeof import("xe-utils").toDateString;
|
|
92
|
+
assign: typeof import("xe-utils").assign;
|
|
93
|
+
objectEach: typeof import("xe-utils").objectEach;
|
|
94
|
+
lastObjectEach: typeof import("xe-utils").lastObjectEach;
|
|
95
|
+
objectMap: typeof import("xe-utils").objectMap;
|
|
96
|
+
merge: typeof import("xe-utils").merge;
|
|
97
|
+
map: typeof import("xe-utils").map;
|
|
98
|
+
some: typeof import("xe-utils").some;
|
|
99
|
+
every: typeof import("xe-utils").every;
|
|
100
|
+
includeArrays: typeof import("xe-utils").includeArrays;
|
|
101
|
+
arrayEach: typeof import("xe-utils").arrayEach;
|
|
102
|
+
lastArrayEach: typeof import("xe-utils").lastArrayEach;
|
|
103
|
+
uniq: typeof import("xe-utils").uniq;
|
|
104
|
+
union: typeof import("xe-utils").union;
|
|
105
|
+
toArray: typeof import("xe-utils").toArray;
|
|
106
|
+
orderBy: typeof import("xe-utils").orderBy;
|
|
107
|
+
sortBy: typeof import("xe-utils").orderBy;
|
|
108
|
+
shuffle: typeof import("xe-utils").shuffle;
|
|
109
|
+
sample: typeof import("xe-utils").sample;
|
|
110
|
+
slice: typeof import("xe-utils").slice;
|
|
111
|
+
filter: typeof import("xe-utils").filter;
|
|
112
|
+
findKey: typeof import("xe-utils").findKey;
|
|
113
|
+
includes: typeof import("xe-utils").includes;
|
|
114
|
+
find: typeof import("xe-utils").find;
|
|
115
|
+
findLast: typeof import("xe-utils").findLast;
|
|
116
|
+
reduce: typeof import("xe-utils").reduce;
|
|
117
|
+
copyWithin: typeof import("xe-utils").copyWithin;
|
|
118
|
+
chunk: typeof import("xe-utils").chunk;
|
|
119
|
+
zip: typeof import("xe-utils").zip;
|
|
120
|
+
unzip: typeof import("xe-utils").unzip;
|
|
121
|
+
zipObject: typeof import("xe-utils").zipObject;
|
|
122
|
+
pluck: typeof import("xe-utils").pluck;
|
|
123
|
+
invoke: typeof import("xe-utils").invoke;
|
|
124
|
+
toArrayTree: typeof import("xe-utils").toArrayTree;
|
|
125
|
+
toTreeArray: typeof import("xe-utils").toTreeArray;
|
|
126
|
+
findTree: typeof import("xe-utils").findTree;
|
|
127
|
+
eachTree: typeof import("xe-utils").eachTree;
|
|
128
|
+
mapTree: typeof import("xe-utils").mapTree;
|
|
129
|
+
filterTree: typeof import("xe-utils").filterTree;
|
|
130
|
+
searchTree: typeof import("xe-utils").searchTree;
|
|
131
|
+
arrayIndexOf: typeof import("xe-utils").arrayIndexOf;
|
|
132
|
+
arrayLastIndexOf: typeof import("xe-utils").arrayLastIndexOf;
|
|
133
|
+
hasOwnProp: typeof import("xe-utils").hasOwnProp;
|
|
134
|
+
isArray: typeof import("xe-utils").isArray;
|
|
135
|
+
isNull: typeof import("xe-utils").isNull;
|
|
136
|
+
isNaN: typeof import("xe-utils").isNaN;
|
|
137
|
+
isUndefined: typeof import("xe-utils").isUndefined;
|
|
138
|
+
isFunction: typeof import("xe-utils").isFunction;
|
|
139
|
+
isObject: typeof import("xe-utils").isObject;
|
|
140
|
+
isString: typeof import("xe-utils").isString;
|
|
141
|
+
isLeapYear: typeof import("xe-utils").isLeapYear;
|
|
142
|
+
eqNull: typeof import("xe-utils").eqNull;
|
|
143
|
+
each: typeof import("xe-utils").each;
|
|
144
|
+
forOf: typeof import("xe-utils").forOf;
|
|
145
|
+
lastForOf: typeof import("xe-utils").lastForOf;
|
|
146
|
+
indexOf: typeof import("xe-utils").indexOf;
|
|
147
|
+
lastIndexOf: typeof import("xe-utils").lastIndexOf;
|
|
148
|
+
keys: typeof import("xe-utils").keys;
|
|
149
|
+
values: typeof import("xe-utils").values;
|
|
150
|
+
clone: typeof import("xe-utils").clone;
|
|
151
|
+
getSize: typeof import("xe-utils").getSize;
|
|
152
|
+
lastEach: typeof import("xe-utils").lastEach;
|
|
153
|
+
remove: typeof import("xe-utils").remove;
|
|
154
|
+
clear: typeof import("xe-utils").clear;
|
|
155
|
+
isFinite: typeof import("xe-utils").isFinite;
|
|
156
|
+
isFloat: typeof import("xe-utils").isFloat;
|
|
157
|
+
isInteger: typeof import("xe-utils").isInteger;
|
|
158
|
+
isBoolean: typeof import("xe-utils").isBoolean;
|
|
159
|
+
isRegExp: typeof import("xe-utils").isRegExp;
|
|
160
|
+
isError: typeof import("xe-utils").isError;
|
|
161
|
+
isTypeError: typeof import("xe-utils").isTypeError;
|
|
162
|
+
isEmpty: typeof import("xe-utils").isEmpty;
|
|
163
|
+
isSymbol: typeof import("xe-utils").isSymbol;
|
|
164
|
+
isArguments: typeof import("xe-utils").isArguments;
|
|
165
|
+
isElement: typeof import("xe-utils").isElement;
|
|
166
|
+
isDocument: typeof import("xe-utils").isDocument;
|
|
167
|
+
isWindow: typeof import("xe-utils").isWindow;
|
|
168
|
+
isFormData: typeof import("xe-utils").isFormData;
|
|
169
|
+
isMap: typeof import("xe-utils").isMap;
|
|
170
|
+
isWeakMap: typeof import("xe-utils").isWeakMap;
|
|
171
|
+
isSet: typeof import("xe-utils").isSet;
|
|
172
|
+
isWeakSet: typeof import("xe-utils").isWeakSet;
|
|
173
|
+
isMatch: typeof import("xe-utils").isMatch;
|
|
174
|
+
isEqual: typeof import("xe-utils").isEqual;
|
|
175
|
+
isEqualWith: typeof import("xe-utils").isEqualWith;
|
|
176
|
+
getType: typeof import("xe-utils").getType;
|
|
177
|
+
uniqueId: typeof import("xe-utils").uniqueId;
|
|
178
|
+
findIndexOf: typeof import("xe-utils").findIndexOf;
|
|
179
|
+
findLastIndexOf: typeof import("xe-utils").findLastIndexOf;
|
|
180
|
+
toStringJSON: typeof import("xe-utils").toStringJSON;
|
|
181
|
+
toJSONString: typeof import("xe-utils").toJSONString;
|
|
182
|
+
entries: typeof import("xe-utils").entries;
|
|
183
|
+
pick: typeof import("xe-utils").pick;
|
|
184
|
+
omit: typeof import("xe-utils").omit;
|
|
185
|
+
first: typeof import("xe-utils").first;
|
|
186
|
+
last: typeof import("xe-utils").last;
|
|
187
|
+
has: typeof import("xe-utils").has;
|
|
188
|
+
get: typeof import("xe-utils").get;
|
|
189
|
+
set: typeof import("xe-utils").set;
|
|
190
|
+
groupBy: typeof import("xe-utils").groupBy;
|
|
191
|
+
countBy: typeof import("xe-utils").countBy;
|
|
192
|
+
range: typeof import("xe-utils").range;
|
|
193
|
+
destructuring: typeof import("xe-utils").destructuring;
|
|
194
|
+
random: typeof import("xe-utils").random;
|
|
195
|
+
max: typeof import("xe-utils").max;
|
|
196
|
+
min: typeof import("xe-utils").min;
|
|
197
|
+
round: typeof import("xe-utils").round;
|
|
198
|
+
ceil: typeof import("xe-utils").ceil;
|
|
199
|
+
floor: typeof import("xe-utils").floor;
|
|
200
|
+
toInteger: typeof import("xe-utils").toInteger;
|
|
201
|
+
toNumber: typeof import("xe-utils").toNumber;
|
|
202
|
+
add: typeof import("xe-utils").add;
|
|
203
|
+
subtract: typeof import("xe-utils").subtract;
|
|
204
|
+
multiply: typeof import("xe-utils").multiply;
|
|
205
|
+
divide: typeof import("xe-utils").divide;
|
|
206
|
+
sum: typeof import("xe-utils").sum;
|
|
207
|
+
mean: typeof import("xe-utils").mean;
|
|
208
|
+
getWhatYear: typeof import("xe-utils").getWhatYear;
|
|
209
|
+
getWhatQuarter: typeof import("xe-utils").getWhatQuarter;
|
|
210
|
+
getWhatMonth: typeof import("xe-utils").getWhatMonth;
|
|
211
|
+
getWhatDay: typeof import("xe-utils").getWhatDay;
|
|
212
|
+
toStringDate: typeof import("xe-utils").toStringDate;
|
|
213
|
+
now: typeof import("xe-utils").now;
|
|
214
|
+
timestamp: typeof import("xe-utils").timestamp;
|
|
215
|
+
isValidDate: typeof import("xe-utils").isValidDate;
|
|
216
|
+
isDateSame: typeof import("xe-utils").isDateSame;
|
|
217
|
+
getYearDay: typeof import("xe-utils").getYearDay;
|
|
218
|
+
getYearWeek: typeof import("xe-utils").getYearWeek;
|
|
219
|
+
getMonthWeek: typeof import("xe-utils").getMonthWeek;
|
|
220
|
+
getDayOfYear: typeof import("xe-utils").getDayOfYear;
|
|
221
|
+
getDayOfMonth: typeof import("xe-utils").getDayOfMonth;
|
|
222
|
+
padEnd: typeof import("xe-utils").padEnd;
|
|
223
|
+
padStart: typeof import("xe-utils").padStart;
|
|
224
|
+
repeat: typeof import("xe-utils").repeat;
|
|
225
|
+
trim: typeof import("xe-utils").trim;
|
|
226
|
+
trimRight: typeof import("xe-utils").trimRight;
|
|
227
|
+
trimLeft: typeof import("xe-utils").trimLeft;
|
|
228
|
+
escape: typeof import("xe-utils").escape;
|
|
229
|
+
unescape: typeof import("xe-utils").unescape;
|
|
230
|
+
camelCase: typeof import("xe-utils").camelCase;
|
|
231
|
+
kebabCase: typeof import("xe-utils").kebabCase;
|
|
232
|
+
startsWith: typeof import("xe-utils").startsWith;
|
|
233
|
+
endsWith: typeof import("xe-utils").endsWith;
|
|
234
|
+
template: typeof import("xe-utils").template;
|
|
235
|
+
toFormatString: typeof import("xe-utils").toFormatString;
|
|
236
|
+
toString: typeof import("xe-utils").toString;
|
|
237
|
+
toValueString: typeof import("xe-utils").toValueString;
|
|
238
|
+
property: typeof import("xe-utils").property;
|
|
239
|
+
bind: typeof import("xe-utils").bind;
|
|
240
|
+
once: typeof import("xe-utils").once;
|
|
241
|
+
after: typeof import("xe-utils").after;
|
|
242
|
+
before: typeof import("xe-utils").before;
|
|
243
|
+
throttle: typeof import("xe-utils").throttle;
|
|
244
|
+
debounce: typeof import("xe-utils").debounce;
|
|
245
|
+
delay: typeof import("xe-utils").delay;
|
|
246
|
+
unserialize: typeof import("xe-utils").unserialize;
|
|
247
|
+
serialize: typeof import("xe-utils").serialize;
|
|
248
|
+
parseUrl: typeof import("xe-utils").parseUrl;
|
|
249
|
+
getBaseURL: typeof import("xe-utils").getBaseURL;
|
|
250
|
+
locat: typeof import("xe-utils").locat;
|
|
251
|
+
cookie: import("xe-utils").cookie;
|
|
252
|
+
browse: typeof import("xe-utils").browse;
|
|
253
|
+
};
|
|
254
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import moment from"moment";import XEUtils from"xe-utils";const _toString=Object.prototype.toString;var vexutilsExpand={...XEUtils,parseCondition:function(e,t,i){if(e&&e.length>0&&t&&t.table)for(let r=0;r<e.length;r++){let l=e[r];if(l&&l.field_key&&l.con){let e=t.table[l.field_key],r=XEUtils.getFieldByKey(l.field_key,i);if(!r||!e&&"0"!==String(e))return!1;if(!XEUtils.getConnection(l,e,r))return!1}}return!0},getFieldByKey:function(e,t){if(t&&t.length>0)for(let i=0;i<t.length;i++){let r=t[i];if(r.columnName==e)return r}},getConnection:function(e,t,i){let r=e.con,l=e.value;if("NULL"==r){if(t)return!1}else if("NOT_NULL"==r&&!t)return!1;if("TEXT"==i.fieldType){if("CL"==r){if(-1==t.indexOf(l))return!1}else if("NC"==r){if(-1!=t.indexOf(l))return!1}else if("EQ"==r||"QUOTE"==r){if(-1!=l.indexOf("|#|")){for(let e in l.split("|#|"))if(-1==t.indexOf(e))return!1}else if(t!=l)return!1}else if("NEQ"==r&&t==l)return!1}else if("NUMBER"==i.fieldType){if(!XEUtils.isNumber(t))return!1;if("EQ"==r||"QUOTE"==r){if(XEUtils.isNumber(l)){if(1*t!=1*l)return!1}else if(!XEUtils.getBetween(l,"number",t))return!1}else if("NEQ"==r){if(XEUtils.isNumber(l)&&1*t==1*l)return!1}else if("BIG"==r){if(XEUtils.isNumber(l)&&1*t<=1*l)return!1}else if("LESS"==r&&XEUtils.isNumber(l)&&1*t>=1*l)return!1}else if("TODAY"==r||"TOMORROW"==r||"YESTERDAY"==r||"THIS_WEEK"==r||"NEXT_WEEK"==r||"UP_WEEK"==r||"THIS_MONTH"==r||"NEXT_MONTH"==r||"UP_MONTH"==r||"THIS_SEASON"==r||"NEXT_SEASON"==r||"UP_SEASON"==r||"THIS_YEAR"==r||"NEXT_YEAR"==r||"UP_YEAR"==r){if(!XEUtils.isDate(t))return!1;{let e,i,l=new Date,n=864e5,a=XEUtils.convertDate(t),s=XEUtils.toDateString(l,"yyyy-MM-dd");if("TODAY"==r)e=XEUtils.convertDate(s+" 00:00:00"),i=XEUtils.convertDate(s+" 23:59:59");else if("TOMORROW"==r){let t=XEUtils.addDate(l,1,"D").format("yyyy-MM-dd");e=XEUtils.convertDate(t+" 00:00:00"),i=XEUtils.convertDate(t+" 23:59:59")}else if("YESTERDAY"==r){let t=XEUtils.addDate(l,-1,"D").format("yyyy-MM-dd");e=XEUtils.convertDate(t+" 00:00:00"),i=XEUtils.convertDate(t+" 23:59:59")}else if("THIS_WEEK"==r){let t=l.getDay()||7,r=l.getTime()-(t-1)*n,a=l.getTime()+(7-t)*n;e=new Date(r),i=new Date(a)}else if("NEXT_WEEK"==r){let t=XEUtils.addDate(l,1,"W"),r=t.getDay()||7,a=t.getTime()-(r-1)*n,s=t.getTime()+(7-r)*n;e=new Date(a),i=new Date(s)}else if("UP_WEEK"==r){let t=XEUtils.addDate(l,-1,"W"),r=t.getDay()||7,a=t.getTime()-(r-1)*n,s=t.getTime()+(7-r)*n;e=new Date(a),i=new Date(s)}else if("THIS_MONTH"==r){let t=new Date;t.setDate(1),e=t,i=XEUtils.addDate(t,1,"M")}else if("NEXT_MONTH"==r){let t=new Date;t.setDate(1),e=XEUtils.addDate(t,1,"M"),i=XEUtils.addDate(t,2,"M")}else if("UP_MONTH"==r){let t=new Date;t.setDate(1),e=XEUtils.addDate(t,-1,"M"),i=t}else if("THIS_SEASON"==r)e=XEUtils.getCurSeasonFirstDay(),i=XEUtils.addDate(e,3,"M");else if("NEXT_SEASON"==r)e=XEUtils.addDate(XEUtils.getCurSeasonFirstDay(),3,"M"),i=XEUtils.addDate(e,3,"M");else if("UP_SEASON"==r)i=XEUtils.getCurSeasonFirstDay(),e=XEUtils.addDate(i,-3,"M");else if("THIS_YEAR"==r){let t=new Date;e=new Date(t.getFullYear()+"/01/01"),i=XEUtils.addDate(e,1,"Y")}else if("NEXT_YEAR"==r){let t=new Date;e=XEUtils.addDate(new Date(t.getFullYear()+"/01/01"),1,"Y"),i=XEUtils.addDate(e,1,"Y")}else if("UP_YEAR"==r){let t=new Date;i=new Date(t.getFullYear()+"/01/01"),e=XEUtils.addDate(i,-1,"Y")}if(e&&i&&!(e.getTime()<=a.getTime()&&a.getTime()<i.getTime()))return!1}}else if("L_"==r||"N_"==r||"IN_THE_PAST"==r||"IN_THE_FUTURE"==r||"IN_THE_PAST_DI"==r||"IN_THE_FUTURE_DI"==r){if(e.unit&&XEUtils.isNumber(l)){if(!XEUtils.isDate(t))return!1;{let i=XEUtils.convertDate(t),n=new Date,a=e.unit;if("DAY"==a||"WEEK"==a||"MONTH"==a||"QUARTER"==a||"YEAR"==a||"HOUR"==a){let e="D";"WEEK"==a?e="W":"MONTH"==a?e="M":"QUARTER"==a?e="Q":"YEAR"==a?e="Y":"HOUR"==a&&(e="H");let t=1*l;if("L_"==r){let r=XEUtils.addDate(new Date,-1*t,e);if(i.getTime()<r.getTime())return!1}else if("N_"==r){let r=XEUtils.addDate(new Date,t,e);if(i.getTime()>r.getTime())return!1}else if("IN_THE_PAST"==r){let r=i.getTime(),l=n.getTime();if(r<XEUtils.addDate(n,-1*t,e).getTime()||r>l)return!1}else if("IN_THE_FUTURE"==r){let r=i.getTime(),l=n.getTime(),a=XEUtils.addDate(n,t,e).getTime();if(r<l||r>a)return!1}else if("IN_THE_PAST_DI"==r||"IN_THE_FUTURE_DI"==r){let e=i.getTime(),l="IN_THE_FUTURE_DI"==r?"add":"subtract",{startTime:s,endTime:o}=XEUtils.addDiDate(n,t,a,l);if(e<s||e>o)return!1}}}}}else if("IN"==r&&XEUtils.isDate(t)){let i=XEUtils.convertDate(t);if(!l)if(e.start_val&&e.end_val){let t=e.start_val,r=e.end_val;if(!(t&&r&&XEUtils.isDate(t)&&XEUtils.isDate(r)))return!1;{let e=XEUtils.convertDate(t),l=XEUtils.convertDate(r);if(!(e.getTime()<=i.getTime()&&i.getTime()<l.getTime()))return!1}}else if(e.start_val){let t=e.start_val;if(!XEUtils.isDate(t))return!1;if(!(XEUtils.convertDate(t).getTime()<=i.getTime()))return!1}else if(e.end_val){let t=e.end_val;if(!XEUtils.isDate(t))return!1;{let e=XEUtils.convertDate(t);if(!(i.getTime()<e.getTime()))return!1}}}if("compare"==r)if("TEXT"==i.fieldType){if(-1!=l.indexOf("|#|")){for(let e in l.split("|#|"))if(-1==t.indexOf(e))return!1}else if(e.mk&&"like"==e.mk){if(-1==t.indexOf(l))return!1}else if(-1==t.indexOf(l))return!1}else if("NUMBER"==i.fieldType()){if(!XEUtils.isNumber(l)||!XEUtils.isNumber(t))return!1;if(1*t!=1*l)return!1}else if(t!=l)return!1;return!0},getBetween:function(e,t,i){if(e&&-1!=e.indexOf("~")&&2==e.split("~").length){let r=e.split("~")[0],l=e.split("~")[1];if("number"==t&&XEUtils.isNumber(r)&&XEUtils.isNumber(l))return 1*r<=1*i&&1*i<1*l}},convertDate:function(e){if(e)if(-1!=e.indexOf("-")){e=e=e.replace(/-/g,"/");try{return new Date(e)}catch(e){console.log(e)}}else try{return new Date(e)}catch(e){console.log(e)}},addDate:function(e,t,i){let r=e;if(["D","H","W"].includes(i)&&e&&XEUtils.isValidDate(e)&&(r=r.getTime()),"D"==i)return new Date(r+24*t*3600*1e3);if("W"==i)return new Date(r+7*t*24*3600*1e3);if("M"==i){let e=new Date(r);return e.setMonth(r.getMonth()+t),e}if("Q"==i){let e=new Date(r);return e.setMonth(r.getMonth()+3*t),e}if("Y"==i){let e=new Date(r);return e.setMonth(r.getMonth()+12*t),e}return"H"==i?new Date(r+3600*t*1e3):void 0},addDiDate:function(e,t,i="day",r){let l,n={},a=i.toLowerCase(),s=a+"s";return l="add"==r?moment(e).add(t,s):moment(e).subtract(t,s),n.startTime=l.startOf(a).valueOf(),n.endTime=l.endOf(a).valueOf(),n},getCurSeasonFirstDay:function(){let e=new Date,t=e.getFullYear(),i=e.getMonth()+1;return i>=1&&i<=3?new Date(t+"/01/01"):4<=i&&i<=6?new Date(t+"/04/01"):7<=i&&i<=9?new Date(t+"/07/01"):new Date(t+"/10/01")},isNumber:function(e){try{let t=1*e+100;if(t>0||t<0||0==t)return!0}catch(e){console.log(e)}return!1},isDate:function(e){return!(!isNaN(e)||isNaN(Date.parse(e)))},isJSON(e){if("string"==typeof e)try{let t=JSON.parse(e);return!("object"!=typeof t||!t)}catch(e){return!1}return!1},getBtnStyle:e=>"white_bg"==e.showStyle?{"border-color":e.color,color:e.color}:"none_bg"==e.showStyle?{color:e.color}:(e.showStyle,{"background-color":e.color,"border-color":e.color}),oldColorMap(e){let t={blue:"blue",sky:"skyblue",azure:"azure",palegreen:"palegreen",yellow:"yellow",darkorange:"darkorange",magenta:"magenta",purple:"purple",maroon:"maroon",orange:"orange",green:"green",red:"red",grey:"grey"};return e&&t[e]?t[e]:""},validateBirthday(e,t,i){let r=!0;if(!i)return!1;return{DAYReg:/^([0-9]|[1-9][0-9]|[1-2][0-9][0-9]|[3][0-5][0-9]|(360|361|363|362|364|365))$/,MONTHReg:/^(?:[0-9]|1[0-2])$/,YEARReg:/^(?:[1-9]?\d|100)$/}[`${i}Reg`].test(+e)||(window.$message.warning(`${t}${this.$t("1.9.40")}`,2),r=!1),r},handleImageSize(e,t){let i={display:"inline-block",height:t};return e.h&&(i.height="adaptive"===e.h?"auto":e.h+"px"),e.w&&(i.width="adaptive"===e.w?"auto":e.w+"px"),i},handleBigArrayCopy(e,t=1e3){if(!Array.isArray(e))return e;let i=t||1e3;const r=XEUtils.chunk(e,i),l=(e=[],t="json")=>{const i={json:e=>JSON.parse(JSON.stringify(e)),clone:e=>XEUtils.clone(e,!0)};let r=[];return e.forEach((e=>{let l=i[t](e);r.push(l)})),XEUtils.flatten(r)};let n=[];try{n=l(r,"json")}catch(e){n=l(r,"clone")}return n},getAlphafloat(e,t){if(void 0!==e)return parseFloat((e/256).toFixed(2));if(void 0!==t){if(1<t&&t<=100)return parseFloat((t/100).toFixed(2));if(0<=t&&t<=1)return parseFloat(t.toFixed(2))}return 1},hexToRGBA(e,t){if(!/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e))return console.log("Invalid HEX"),"";const i=Math.floor((e.length-1)/3),r=(l=e.slice(1),n=i,l.match(new RegExp(`.{${n}}`,"g")));var l,n;const[a,s,o,f]=r.map((e=>parseInt(e.repeat(2/e.length),16)));return{r:a,g:s,b:o,a:XEUtils.getAlphafloat(f,t)}},formatTime(e,t){let i="";if(!t)return"";switch(e){case"DATE":i="yyyy-MM-dd";break;case"DATETIME":i="yyyy-MM-dd HH:mm:ss";break;case"TIME":i="HH:mm:ss";break;case"MOUTH":i="MM-dd";break;case"DATETIMESTR":i="yyyy年M月dd日 HH:mm";break;case"MOUTHTIME":i="M月d日 HH:mm";break;case"HM":i=" HH:mm"}return XEUtils.toDateString(t,i)},formatDate(e,t=!1){const i=new Date,r=e||i.getTime(),l=XEUtils.formatTime("DATE",i.getTime()),n=XEUtils.convertDate(l+" 00:00:00").getTime(),a=i.getFullYear(),s=new Date(+r).getFullYear();return r>n?XEUtils.formatTime("TIME",r):t?a!==s?XEUtils.formatTime("DATETIMESTR",r):XEUtils.formatTime("MOUTHTIME",r):XEUtils.formatTime("DATETIME",r)},imgs2imgArr:e=>e?e.replace(/(,)(data|http)/g,((e,t,i)=>`|${i}`)).split("|"):[],filterOption(e,t){try{let i=t.componentOptions.children[0].text,r=i.toLowerCase(),l=e.toLowerCase(),n=!1;return"string"==typeof i&&/^[a-zA-Z]+$/.test(e)&&""._toPinYin&&(n=r._toPinYin().indexOf(l)>=0),n||r.indexOf(l)>=0}catch(e){return!1}},stringToValue(e,t="value"){if(XEUtils.isString(e)&&e&&e.startsWith("###{")){let i=JSON.parse(e.replace("###",""));e=i[t]}return e},notEmpty:e=>XEUtils.isBoolean(e)||"0"===String(e)||!!e,anyNotEmpty:e=>Array.isArray(e)?e.length>0:XEUtils.isObject(e)?Object.keys(e||{}).length>0:XEUtils.notEmpty(e),handleMultiTips(e,t={}){if(!e.includes("/*###*/"))return e;let i=e.split("/*###*/");if(3!=i.length)return e;let r=i[1],l=[...t],n=l.length>100?100:l.length,a=[],s="";const o=(e,t,i)=>e.replace(i,(function(){let e=arguments[1];return l[t][e]||""}));for(let e=0;e<n;e++)a.push(o(r,e,/\${form.selectRows.(.*?)\}/g));return s=i[0]+a.join(","),s+=l.length>100?`等${l.length}条数据吗?`:i[2],s},handleSysParams(str,obj={},noval=""){let p={...obj};const getValList=(plsList=[],obj={})=>{var l=[];return plsList.forEach((v=>{let c=v;if(v.includes("."))try{eval(`c = o.${v}`)}catch(e){c=""}XEUtils.notEmpty(c)&&l.push(c)})),l},getVal=(e,t,i)=>e.replace(t,(function(){var e=arguments[1],t=e.split("!"),i=getValList(t,p),r=i.find((e=>XEUtils.notEmpty(e))),l=r;return l=XEUtils.notEmpty(l)?l:noval}));return"string"==typeof str&&(str.includes("form")&&(str=getVal(str,/\${(.*?)\}/g)),str.includes("sys")&&(str=getVal(str,/\${(.*?)\}/g)),str.includes("db")&&(str=getVal(str,/\${(.*?)\}/g)),str.includes("table")&&(str=getVal(str,/\${(.*?)\}/g)),str.includes("result")&&(str=getVal(str,/\${(.*?)\}/g))),str},setParamsValue(e,t){const i={};return e&&e.length>0&&e.forEach((e=>{if(e.p_value)if(e.p_name=e.p_name.trim(),e.p_value.includes(".")&&2==e.p_value.split(".").length){const r=e.p_value.split(".")[0].trim(),l=e.p_value.split(".")[1].trim();if(t[r]&&(t[r][l]||0==t[r][l]))if("string"==typeof t[r][l]&&t[r][l].includes("###{"))try{t[r][l]=JSON.parse(t[r][l].split("###")[1]).value,i[e.p_name]=t[r][l]}catch(e){console.log(e)}else i[e.p_name]=t[r][l];else i[e.p_name]=""}else i[e.p_name]=e.p_value})),i},isPlainObject:e=>"[object Object]"===_toString.call(e)};export{vexutilsExpand as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.42-beta.
|
|
3
|
+
"version": "3.1.42-beta.47",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "2ed38dd16c54e6e6a3f17f921b59bd4832892d4e"
|
|
65
65
|
}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module 'bpmn-js/lib/Viewer';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module 'bpmn-js/lib/features/modeling';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module 'diagram-js/lib/navigation/movecanvas';
|