cnhis-design-vue 3.1.52-beta.32 → 3.1.52-beta.34
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/es/components/classification/index.d.ts +10 -10
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +10 -10
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +10 -10
- package/es/components/classification/src/index.vue.d.ts +10 -10
- package/es/components/date-picker/index.d.ts +5 -5
- package/es/components/date-picker/src/DatePicker.vue.d.ts +7 -5
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/form-config/index.d.ts +108 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +108 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +36 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +12 -0
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +5 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +5 -5
- package/es/components/shortcut-setter/index.d.ts +12 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +10 -10
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +6 -5
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +10 -10
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +10 -10
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +20 -20
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +20 -20
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +2 -0
- package/es/shared/utils/business.d.ts +1 -1
- package/es/shared/utils/business.js +1 -1
- package/package.json +2 -2
|
@@ -477,7 +477,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
477
477
|
type: FunctionConstructor;
|
|
478
478
|
};
|
|
479
479
|
formattedValue: {
|
|
480
|
-
type:
|
|
480
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
481
481
|
};
|
|
482
482
|
placeholder: {
|
|
483
483
|
type: StringConstructor;
|
|
@@ -497,7 +497,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
497
497
|
type: FunctionConstructor;
|
|
498
498
|
};
|
|
499
499
|
formattedValue: {
|
|
500
|
-
type:
|
|
500
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
501
501
|
};
|
|
502
502
|
placeholder: {
|
|
503
503
|
type: StringConstructor;
|
|
@@ -512,7 +512,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
512
512
|
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
513
513
|
panelInstRef: import("vue").Ref<null>;
|
|
514
514
|
placeholderRef: import("vue").Ref<any>;
|
|
515
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
515
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
516
516
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
517
517
|
formatRef: import("vue").ComputedRef<string>;
|
|
518
518
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -521,7 +521,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
521
521
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
522
522
|
onUpdateShow: (show: boolean) => void;
|
|
523
523
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
524
|
-
isAllowedInvalidValue: (value
|
|
524
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
525
525
|
NDatePicker: any;
|
|
526
526
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
527
527
|
updateUnchangedValue: {
|
|
@@ -531,7 +531,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
531
531
|
type: FunctionConstructor;
|
|
532
532
|
};
|
|
533
533
|
formattedValue: {
|
|
534
|
-
type:
|
|
534
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
535
535
|
};
|
|
536
536
|
placeholder: {
|
|
537
537
|
type: StringConstructor;
|
|
@@ -737,7 +737,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
737
737
|
type: FunctionConstructor;
|
|
738
738
|
};
|
|
739
739
|
formattedValue: {
|
|
740
|
-
type:
|
|
740
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
741
741
|
};
|
|
742
742
|
placeholder: {
|
|
743
743
|
type: StringConstructor;
|
|
@@ -757,7 +757,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
757
757
|
type: FunctionConstructor;
|
|
758
758
|
};
|
|
759
759
|
formattedValue: {
|
|
760
|
-
type:
|
|
760
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
761
761
|
};
|
|
762
762
|
placeholder: {
|
|
763
763
|
type: StringConstructor;
|
|
@@ -772,7 +772,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
772
772
|
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
773
773
|
panelInstRef: import("vue").Ref<null>;
|
|
774
774
|
placeholderRef: import("vue").Ref<any>;
|
|
775
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
775
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
776
776
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
777
777
|
formatRef: import("vue").ComputedRef<string>;
|
|
778
778
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -781,7 +781,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
781
781
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
782
782
|
onUpdateShow: (show: boolean) => void;
|
|
783
783
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
784
|
-
isAllowedInvalidValue: (value
|
|
784
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
785
785
|
NDatePicker: any;
|
|
786
786
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
787
787
|
updateUnchangedValue: {
|
|
@@ -791,7 +791,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
791
791
|
type: FunctionConstructor;
|
|
792
792
|
};
|
|
793
793
|
formattedValue: {
|
|
794
|
-
type:
|
|
794
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
795
795
|
};
|
|
796
796
|
placeholder: {
|
|
797
797
|
type: StringConstructor;
|
|
@@ -959,7 +959,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
959
959
|
type: FunctionConstructor;
|
|
960
960
|
};
|
|
961
961
|
formattedValue: {
|
|
962
|
-
type:
|
|
962
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
963
963
|
};
|
|
964
964
|
placeholder: {
|
|
965
965
|
type: StringConstructor;
|
|
@@ -979,7 +979,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
979
979
|
type: FunctionConstructor;
|
|
980
980
|
};
|
|
981
981
|
formattedValue: {
|
|
982
|
-
type:
|
|
982
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
983
983
|
};
|
|
984
984
|
placeholder: {
|
|
985
985
|
type: StringConstructor;
|
|
@@ -994,7 +994,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
994
994
|
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
995
995
|
panelInstRef: import("vue").Ref<null>;
|
|
996
996
|
placeholderRef: import("vue").Ref<any>;
|
|
997
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
997
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
998
998
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
999
999
|
formatRef: import("vue").ComputedRef<string>;
|
|
1000
1000
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -1003,7 +1003,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1003
1003
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
1004
1004
|
onUpdateShow: (show: boolean) => void;
|
|
1005
1005
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
1006
|
-
isAllowedInvalidValue: (value
|
|
1006
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
1007
1007
|
NDatePicker: any;
|
|
1008
1008
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1009
1009
|
updateUnchangedValue: {
|
|
@@ -1013,7 +1013,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1013
1013
|
type: FunctionConstructor;
|
|
1014
1014
|
};
|
|
1015
1015
|
formattedValue: {
|
|
1016
|
-
type:
|
|
1016
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
1017
1017
|
};
|
|
1018
1018
|
placeholder: {
|
|
1019
1019
|
type: StringConstructor;
|
|
@@ -1226,7 +1226,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1226
1226
|
type: FunctionConstructor;
|
|
1227
1227
|
};
|
|
1228
1228
|
formattedValue: {
|
|
1229
|
-
type:
|
|
1229
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
1230
1230
|
};
|
|
1231
1231
|
placeholder: {
|
|
1232
1232
|
type: StringConstructor;
|
|
@@ -1246,7 +1246,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1246
1246
|
type: FunctionConstructor;
|
|
1247
1247
|
};
|
|
1248
1248
|
formattedValue: {
|
|
1249
|
-
type:
|
|
1249
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
1250
1250
|
};
|
|
1251
1251
|
placeholder: {
|
|
1252
1252
|
type: StringConstructor;
|
|
@@ -1261,7 +1261,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1261
1261
|
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
1262
1262
|
panelInstRef: import("vue").Ref<null>;
|
|
1263
1263
|
placeholderRef: import("vue").Ref<any>;
|
|
1264
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
1264
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
1265
1265
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
1266
1266
|
formatRef: import("vue").ComputedRef<string>;
|
|
1267
1267
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -1270,7 +1270,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1270
1270
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
1271
1271
|
onUpdateShow: (show: boolean) => void;
|
|
1272
1272
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
1273
|
-
isAllowedInvalidValue: (value
|
|
1273
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
1274
1274
|
NDatePicker: any;
|
|
1275
1275
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1276
1276
|
updateUnchangedValue: {
|
|
@@ -1280,7 +1280,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1280
1280
|
type: FunctionConstructor;
|
|
1281
1281
|
};
|
|
1282
1282
|
formattedValue: {
|
|
1283
|
-
type:
|
|
1283
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
1284
1284
|
};
|
|
1285
1285
|
placeholder: {
|
|
1286
1286
|
type: StringConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.1.52-beta.
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.52-beta.34",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.52-beta.34",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
|
|
@@ -12,6 +12,7 @@ export declare type BindEventSettingItem = {
|
|
|
12
12
|
p_value: string;
|
|
13
13
|
p_name: string;
|
|
14
14
|
}[];
|
|
15
|
+
compareMap?: Partial<Record<LOW_CODE_VALUE_RELATION, (v1: any, v2: any) => boolean>>;
|
|
15
16
|
[K: string]: unknown;
|
|
16
17
|
};
|
|
17
18
|
export declare type FormOperationalConfig = {
|
|
@@ -36,6 +37,7 @@ export declare namespace FormLowCodeReactions {
|
|
|
36
37
|
type Config = {
|
|
37
38
|
conObj: ConObj[];
|
|
38
39
|
} & Partial<{
|
|
40
|
+
compareMap: BindEventSettingItem['compareMap'];
|
|
39
41
|
sqlExpression: string;
|
|
40
42
|
showField: string[];
|
|
41
43
|
hideField: string[];
|
|
@@ -3,7 +3,7 @@ import { MaybeRef } from '@vueuse/core';
|
|
|
3
3
|
export declare function isMatchLowCodeCondition(value: unknown, condition: {
|
|
4
4
|
con: LOW_CODE_VALUE_RELATION;
|
|
5
5
|
value: unknown;
|
|
6
|
-
}): boolean;
|
|
6
|
+
}, overwriteCompareMap?: BindEventSettingItem['compareMap']): boolean;
|
|
7
7
|
export declare function isMatchLowCodeConditionsWithSqlExpression(formData: AnyObject, config: FormLowCodeReactions.Config): any;
|
|
8
8
|
declare function handleFieldTriggerSetValue(bindEventSetting: BindEventSettingItem, { getter, setter }: {
|
|
9
9
|
setter: (key: string, value: unknown) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Path as e}from"@formily/path";import{isArray as r,isString as n,includes as t,negate as o,gt as
|
|
1
|
+
import{Path as e}from"@formily/path";import{isArray as r,isString as n,includes as t,negate as o,gt as a,gte as l,isNumber as c,lt as i,lte as u,noop as p,isObject as s}from"lodash-es";import{unref as f}from"vue";function m(e){return null==e||""==e}const E={EQ:(e,r)=>`${e}`===r,NEQ:(e,r)=>`${e}`!==r,CL:(e,o)=>!(!r(e)&&!n(e))&&t(e,o),NC:(e,o)=>!r(e)&&!n(e)||!t(e,o),NULL:m,NOT_NULL:o(m),BIG:a,BIGEQ:l,LESS:(e,r)=>!!(c(e)||n(e)&&e)&&i(e,r),LESSEQ:(e,r)=>!!(c(e)||n(e)&&e)&&u(e,r)};function g(e,r,n={}){return(n[r.con]||E[r.con]||(()=>!1))(e,`${r.value}`)}function _(t,o){if(!r(o.conObj))return!1;if(!o.sqlExpression||!n(o.sqlExpression))return o.conObj.every((r=>g(e.getIn(t,r.field_key),r,o.compareMap)));const a=o.conObj.map((r=>g(e.getIn(t,r.field_key),r,o.compareMap)));try{return new Function("return "+o.sqlExpression.replace(/OR/g,"||").replace(/AND/g,"&&").replace(/[a-zA-Z]/g,"").replace(/\d+/g,(e=>a[+e-1]?"true":"false")))()}catch(e){return console.error("表达式错误=>",o.sqlExpression),!1}}const L=Object.freeze({SET_VALUE:function(e,{getter:r,setter:n}){if(!s(e))return;const{results:t=[],params:o=[],compareMap:a={}}=e;if(!t.length)return;o.every((e=>e&&e.p_name&&g(r(e.p_name),{con:e.p_select,value:e.p_value},a)))&&t.forEach((e=>n(e.p_name,e.p_value)))},REPEAT_VALIDATE:p,IS_SHOW_FIELD:p,SQLSAVE:p,API:p});function d(e){return L[e]||p}function A(e,t,o){function a(e){return r(e)&&!!e.length}function l(e,r=!0){e.forEach((e=>{const a=e.operationFormParam.reduce(((e,r)=>(e[r=r.replace(/^table\./,"")]=+t(r),e)),{}),l=e.operationalRule.replace(/\${(.+?)}/g,"$1");let i=new Function("table",`return ${l}`)(a);n(i)&&(i=+i),i=c(i)?isNaN(i)?"":i.toFixed(+e.operationalPrecision):"",(r||null==t(e.operationalResult))&&o(e.operationalResult,i)}))}return{operationalFormHandler:function(r){if(!a(f(e)))return;const n=f(e).filter((e=>e.operationFormParam.includes(`table.${r}`)));n.length&&l(n)},triggerAllOperationalFormHandler:function(){a(f(e))&&l(f(e),!1)}}}export{d as getBindEventSettingTrigger,A as getOperationalFormHandler,g as isMatchLowCodeCondition,_ as isMatchLowCodeConditionsWithSqlExpression};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.52-beta.
|
|
3
|
+
"version": "3.1.52-beta.34",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"iOS 7",
|
|
64
64
|
"last 3 iOS versions"
|
|
65
65
|
],
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "bf806055a34ef14dd4ca14201cdf37d75eb36b9d"
|
|
67
67
|
}
|