cnhis-design-vue 3.1.43-beta.0 → 3.1.43-beta.10
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/base-search/index.d.ts +46 -114
- package/es/components/base-search/src/index.vue.d.ts +46 -114
- package/es/components/base-search/src/index.vue.js +1 -1
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/big-table/src/hooks/useEdit.d.ts +26 -26
- package/es/components/big-table/src/utils.js +1 -1
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +1 -1
- package/es/components/button-print/src/utils/print.d.ts +2 -0
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +7 -6
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +1 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +6 -5
- package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +2 -2
- package/es/components/classification/src/index.vue.d.ts +7 -6
- package/es/components/date-picker/index.d.ts +27 -2
- package/es/components/date-picker/src/DatePicker.vue.d.ts +27 -2
- package/es/components/date-picker/src/DatePicker.vue.js +1 -1
- package/es/components/fabric-chart/index.d.ts +1 -1
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.d.ts +2 -1
- package/es/components/fabric-chart/src/hooks/useCenter.d.ts +4 -4
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useEvent.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.d.ts +3 -2
- package/es/components/form-config/index.d.ts +72 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +72 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +21 -20
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +43 -0
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +1 -1
- package/es/components/form-render/index.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -0
- package/es/components/form-render/src/hooks/useChangeContext.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/hooks/useLowCodeEvent.d.ts +6 -0
- package/es/components/form-render/src/hooks/useLowCodeEvent.js +1 -0
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -127
- package/es/components/form-render/src/types/index.d.ts +1 -2
- package/es/components/iho-table/index.d.ts +15 -5
- package/es/components/iho-table/src/IhoTable.vue.d.ts +15 -5
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -2
- package/es/components/iho-table/src/hooks/useTableContext.d.ts +1 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +4 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -1
- package/es/components/iho-table/src/plugins/fieldConnectionPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +28 -3
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +3 -11
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +27 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +11 -25
- package/es/components/iho-table/src/types/pluginType.d.ts +18 -21
- package/es/components/iho-table/style/iconfont.ttf +0 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/info-header/index.d.ts +2 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +4 -4
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +1 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +21 -20
- package/es/components/keyboard/src/components/InputNumber.vue.js +1 -1
- package/es/components/quick-search/index.d.ts +54 -224
- package/es/components/quick-search/src/index.vue.d.ts +54 -224
- package/es/components/quick-search/src/index.vue.js +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +1 -1
- package/es/components/select-person/index.d.ts +13 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +13 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/utils/index.d.ts +1 -1
- package/es/components/select-person/src/utils/index.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +15 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +15 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.d.ts +109 -0
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.d.ts +67 -0
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +27 -7
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -2
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +13 -3
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +134 -15
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +6 -2
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +1 -0
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +26 -87
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +16 -0
- package/es/shared/types/business.js +1 -0
- package/es/shared/types/index.d.ts +1 -1
- package/es/shared/utils/business.d.ts +11 -0
- package/es/shared/utils/business.js +1 -0
- package/es/shared/utils/index.d.ts +1 -5
- package/es/shared/utils/index.js +1 -1
- package/package.json +65 -65
- package/es/components/iho-table/src/plugins/fieldConnectionPlugin/fieldConnectionUtils.d.ts +0 -11
- package/es/components/iho-table/src/plugins/fieldConnectionPlugin/fieldConnectionUtils.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WidgetOptionEnums as e,WidgetTypeEnums as t}from"../types/enums.js";import{presetValToTimestamp as i}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as
|
|
1
|
+
import{WidgetOptionEnums as e,WidgetTypeEnums as t}from"../types/enums.js";import{presetValToTimestamp as i}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as n}from"../components/render-widget/enums.js";const l={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function a(){return{transformData:function(i){return i.map((i=>{var n,a;const{optionInfo:o={list:[],manualMapping:!0,dynamicOptionInfo:{}},type:u,defaultValue:r,optionType:s,filterExplicit:p,rangeFilter:d}=i,c={},m={title:(f=i).title,alias:f.customTitle,isShowSearch:f.isShowSearch?1:0,filterExplicit:f.filterExplicit?1:0,explicitRequired:f.explicitRequired?1:0,advanceOptionSetting:f.optionType?l[f.optionType]:"",placeholder:f.remark,advanceColWidth:f.width};var f;let v,g,T=u;p?(v=u===t.SELECT&&s===e.MULTIPLE?null==r?void 0:r.valueList:null==(n=null==r?void 0:r.valueList)?void 0:n[0],g=null==r?void 0:r.unit):u===t.SELECT&&(null==o?void 0:o.list)&&(null==o?void 0:o.list.length)<10&&(T="CHECKBOX_GROUP"),u===t.INPUT_NUMBER&&d&&(T="INPUTNUMBER_GROUP");const E={isRender:!0,isInit:!1,widgetType:T,valueList:null==(a=null==o?void 0:o.list)?void 0:a.map((({name:e,value:t})=>({value:t,label:e}))),defaultValue:v,defValueUnit:g,multiple:s===e.MULTIPLE,manualMapping:null==o?void 0:o.manualMapping,dynamicOptionInfo:null==o?void 0:o.dynamicOptionInfo};return{...m,fieldType:i.dataType,columnName:i.name,settingObj:c,setting:JSON.stringify(c),widgetCfg:E,rangeFilter:d}}))},getCacheDef:function(e,i){const{widgetType:n,widgetCfg:l}=e;return n===t.SELECT&&l.multiple?i:i[0]},transformClassifyChild:function(e){const t={};return e&&e.length>0&&e.forEach((e=>{const l=e.field_key,a=e.value&&e.value.length>1?e.value:e.value.toString();if(t[l]=a,e.unit&&e.unit!==n.CUSTOM){const n=i(e.unit,"YYYY-MM-DD HH:mm:ss");t[l]=n}})),t},transformParams:function(e){const t={};return e&&e.length>0&&e.forEach((e=>{const i=e.field_key,n=e.value&&e.value.length>1?e.value:e.value.toString();t[i]=n})),t}}}export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WidgetCfgMaps as e}from"../components/render-widget/widgetCfgMaps.js";import{DatePresetValEnums as n}from"../components/render-widget/enums.js";import{WidgetTypeEnums as t}from"../types/enums.js";const r=[t.CHECKBOX_GROUP];function i(){function i(e){var n;return null==(n=e.widgetCfg)?void 0:n.isRender}function u(n){const{
|
|
1
|
+
import{WidgetCfgMaps as e}from"../components/render-widget/widgetCfgMaps.js";import{DatePresetValEnums as n}from"../components/render-widget/enums.js";import{WidgetTypeEnums as t}from"../types/enums.js";const r=[t.CHECKBOX_GROUP];function i(){function i(e){var n;return null==(n=e.widgetCfg)?void 0:n.isRender}function u(n){const{rangeFilter:t}=n,{widgetType:r,defaultValue:i,defValueUnit:u}=n.widgetCfg||{},l=e.get(r);let o;if(l){const{setDefaultValue:e}=l;e&&!t&&(o=e(i,u))}return o}return{isRender:i,getDefValByRenderWidget:u,initRenderWidgetCfg:function(e){const n=i(e);if(!n)return n;const{widgetType:t}=e.widgetCfg||{};return e._frontId="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const n=16*Math.random()|0;return("x"===e?n:3&n|8).toString(16)})),e.isRender=n,e.widgetType=t,e.con="EQ",(r.includes(t)||e.rangeFilter)&&(e._isBlock=!0),e.value=u(e),n},getRenderSearchConObj:function(e){if(!i(e))return null;const{columnName:r,con:u,value:l,widgetType:o}=e;let d=null;[t.DATE,t.DATE_TIME].includes(o)&&(d=n.CUSTOM);const a=Array.isArray(l)?l:l?[l]:[];return{field_key:r,con:u,value:a.length>0?a:null,unit:d}},getDefValByRenderConObj:function(e,n){if(!i(n))return null;const{widgetType:r,multiple:u}=n.widgetCfg||{},{value:l}=e;return r!==t.SELECT&&r!==t.CHECKBOX_GROUP||!u?Array.isArray(l)?l[0]:l:Array.isArray(l)?l:l?[l]:[]},isExistDefValByRenderWidget:function(e){const{defaultValue:n,defValueUnit:t}=e.widgetCfg||{};return!(!n&&!t)},resetRenderWidgetValue:function(e){const n=i(e);return n?(e.value=null,n):n}}}export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const T={TEXT:"TEXT",NUMBER:"NUMBER",DATE:"DATE",DATE_TIME:"DATETIME",TIME:"TIME",BOOLEAN:"BOOLEAN"},E={SQL:"SQL",API:"API"},A={MANUAL:"manual",DICT:"dict"},_={INPUT_NUMBER:"NUMBER",INPUT:"TEXT",SELECT:"SELECT",DATE:"DATE",DATE_TIME:"DATETIME",CHECKBOX_GROUP:"CHECKBOX_GROUP"},R={RADIO:"SELECT_SINGLE",MULTIPLE:"SELECT_MULTIPLE",ALL:"DATETIME_WHOLE",SELECT_TIME:"DATETIME_SELECT",PAST_TIME:"DATETIME_PAST",FUTURE_TIME:"DATETIME_FUTURE"},S={CUSTOM:"CUSTOM",FIRST_VAL:"FIRST",NOW:"NOW",TODAY:"TODAY",TODAY_START:"TODAY_START",TODAY_END:"TODAY_END",TOMORROW:"TOMORROW",TOMORROW_START:"TOMORROW_START",TOMORROW_END:"TOMORROW_END",YESTERDAY:"YESTERDAY",YESTERDAY_START:"YESTERDAY_START",YESTERDAY_END:"YESTERDAY_END",THIS_WEEK:"THIS_WEEK",WEEK_START:"THIS_WEEK_START",WEEK_END:"THIS_WEEK_END",NEXT_WEEK:"NEXT_WEEK",LAST_WEEK:"LAST_WEEK",THIS_MONTH:"THIS_MONTH",MONTH_START:"THIS_MONTH_START",MONTH_END:"THIS_MONTH_END",NEXT_MONTH:"NEXT_MONTH",LAST_MONTH:"LAST_MONTH",THIS_QUARTER:"THIS_QUARTER",NEXT_QUARTER:"NEXT_QUARTER",LAST_QUARTER:"LAST_QUARTER",THIS_YEAR:"THIS_YEAR",NEXT_YEAR:"NEXT_YEAR",LAST_YEAR:"LAST_YEAR"},O={NULL:"NULL",EQUAL:"EQ"};export{O as ConditionEnums,E as DataTypeEnums,T as FieldTypeEnums,A as MappingMethodEnums,R as WidgetOptionEnums,_ as WidgetTypeEnums,S as WidgetValEnums};
|
|
1
|
+
const T={TEXT:"TEXT",NUMBER:"NUMBER",DATE:"DATE",DATE_TIME:"DATETIME",TIME:"TIME",BOOLEAN:"BOOLEAN"},E={SQL:"SQL",API:"API"},A={MANUAL:"manual",DICT:"dict"},_={INPUT_NUMBER:"NUMBER",INPUT:"TEXT",SELECT:"SELECT",DATE:"DATE",DATE_TIME:"DATETIME",CHECKBOX_GROUP:"CHECKBOX_GROUP",INPUTNUMBER_GROUP:"INPUTNUMBER_GROUP"},R={RADIO:"SELECT_SINGLE",MULTIPLE:"SELECT_MULTIPLE",ALL:"DATETIME_WHOLE",SELECT_TIME:"DATETIME_SELECT",PAST_TIME:"DATETIME_PAST",FUTURE_TIME:"DATETIME_FUTURE"},S={CUSTOM:"CUSTOM",FIRST_VAL:"FIRST",NOW:"NOW",TODAY:"TODAY",TODAY_START:"TODAY_START",TODAY_END:"TODAY_END",TOMORROW:"TOMORROW",TOMORROW_START:"TOMORROW_START",TOMORROW_END:"TOMORROW_END",YESTERDAY:"YESTERDAY",YESTERDAY_START:"YESTERDAY_START",YESTERDAY_END:"YESTERDAY_END",THIS_WEEK:"THIS_WEEK",WEEK_START:"THIS_WEEK_START",WEEK_END:"THIS_WEEK_END",NEXT_WEEK:"NEXT_WEEK",LAST_WEEK:"LAST_WEEK",THIS_MONTH:"THIS_MONTH",MONTH_START:"THIS_MONTH_START",MONTH_END:"THIS_MONTH_END",NEXT_MONTH:"NEXT_MONTH",LAST_MONTH:"LAST_MONTH",THIS_QUARTER:"THIS_QUARTER",NEXT_QUARTER:"NEXT_QUARTER",LAST_QUARTER:"LAST_QUARTER",THIS_YEAR:"THIS_YEAR",NEXT_YEAR:"NEXT_YEAR",LAST_YEAR:"LAST_YEAR"},O={NULL:"NULL",EQUAL:"EQ"};export{O as ConditionEnums,E as DataTypeEnums,T as FieldTypeEnums,A as MappingMethodEnums,R as WidgetOptionEnums,_ as WidgetTypeEnums,S as WidgetValEnums};
|
|
@@ -1,98 +1,27 @@
|
|
|
1
1
|
export declare type funcVoid = () => void;
|
|
2
2
|
export declare type ISearchType = {
|
|
3
|
+
isShowSearch?: number;
|
|
4
|
+
filterExplicit?: number;
|
|
5
|
+
explicitRequired?: number;
|
|
6
|
+
advanceOptionSetting?: string;
|
|
7
|
+
explicitDefaultVal?: string;
|
|
8
|
+
advanceColWidth?: string;
|
|
9
|
+
fieldType?: string;
|
|
3
10
|
columnName: string;
|
|
4
11
|
title: string;
|
|
5
|
-
fieldType?: string;
|
|
6
|
-
filterExplicit?: number;
|
|
7
|
-
isShowSearch?: number;
|
|
8
|
-
setting?: any;
|
|
9
|
-
settingObj?: any;
|
|
10
12
|
placeholder?: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
EQ?: string;
|
|
16
|
-
LABELAttr?: boolean;
|
|
17
|
-
_isBlock?: boolean;
|
|
13
|
+
settingObj?: any;
|
|
14
|
+
setting?: any;
|
|
15
|
+
widgetCfg?: any;
|
|
16
|
+
rangeFilter?: boolean;
|
|
18
17
|
_frontId?: any;
|
|
19
|
-
NUMBERFiled?: boolean;
|
|
20
|
-
PASSWORDTYPE?: boolean;
|
|
21
|
-
advanceColWidth?: string;
|
|
22
|
-
advanceOptionSetting?: string;
|
|
23
|
-
alias?: string;
|
|
24
|
-
ageObj?: any;
|
|
25
|
-
attr?: string;
|
|
26
|
-
bigValue?: string | number;
|
|
27
|
-
classify?: string;
|
|
28
|
-
colWidth?: number;
|
|
29
|
-
columnFullName?: string;
|
|
30
|
-
com?: string;
|
|
31
|
-
comType?: string;
|
|
32
|
-
comAttr?: string;
|
|
33
|
-
con?: string;
|
|
34
|
-
dataSource?: any;
|
|
35
|
-
dictionarieObj?: any;
|
|
36
|
-
explicitRequired?: number;
|
|
37
|
-
explicitDefaultVal?: string;
|
|
38
|
-
extraField?: boolean;
|
|
39
|
-
fieldSetting?: string;
|
|
40
|
-
format?: string;
|
|
41
|
-
i18n?: string;
|
|
42
|
-
id?: string;
|
|
43
|
-
inputVal?: string;
|
|
44
|
-
inputUnit?: string;
|
|
45
|
-
isAvg?: number;
|
|
46
|
-
isEdit?: number;
|
|
47
|
-
isFixed?: number;
|
|
48
|
-
isFixedShow?: number;
|
|
49
|
-
isFontWeight?: number;
|
|
50
|
-
isMerge?: number;
|
|
51
|
-
isOrder?: number;
|
|
52
|
-
isPreciseSearch?: boolean;
|
|
53
18
|
isRender?: boolean;
|
|
54
|
-
isSearch?: number;
|
|
55
|
-
isShow?: number;
|
|
56
|
-
isSort?: number;
|
|
57
|
-
isSum?: number;
|
|
58
|
-
labelObj?: any;
|
|
59
|
-
labelList?: IlabelType[];
|
|
60
|
-
labelSelectList?: IlabelType[];
|
|
61
|
-
lessValue?: string | number;
|
|
62
|
-
marginx?: string;
|
|
63
|
-
notParticipatingSearch?: number;
|
|
64
|
-
order?: string;
|
|
65
|
-
QUOTE?: any;
|
|
66
|
-
searchPageConfig?: any;
|
|
67
|
-
selecteds?: any;
|
|
68
|
-
sequence?: number;
|
|
69
|
-
showDate?: boolean;
|
|
70
|
-
showFormat?: string;
|
|
71
|
-
showTime?: boolean;
|
|
72
|
-
sid?: string;
|
|
73
|
-
start_val?: number | null;
|
|
74
|
-
end_val?: number | null;
|
|
75
|
-
tempCon?: any;
|
|
76
|
-
tableId?: string;
|
|
77
|
-
value?: any;
|
|
78
|
-
unit?: string;
|
|
79
|
-
widgetCfg?: any;
|
|
80
|
-
formTitle?: string;
|
|
81
|
-
random_key?: string;
|
|
82
19
|
widgetType?: any;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
change_text: string;
|
|
89
|
-
field_key: string;
|
|
90
|
-
filter: IFilterItemType[];
|
|
91
|
-
label: string;
|
|
92
|
-
labelName: string;
|
|
93
|
-
sqlExpression: string;
|
|
94
|
-
value: string;
|
|
95
|
-
isSelect?: boolean;
|
|
20
|
+
con?: string;
|
|
21
|
+
_isBlock?: boolean;
|
|
22
|
+
value?: any;
|
|
23
|
+
sid?: string;
|
|
24
|
+
alias?: string;
|
|
96
25
|
};
|
|
97
26
|
export declare type IFilterItemType = {
|
|
98
27
|
con: string;
|
|
@@ -195,10 +124,20 @@ export declare type IApiServerType = {
|
|
|
195
124
|
name: string;
|
|
196
125
|
value: any;
|
|
197
126
|
}[];
|
|
127
|
+
dynamicOptionInfo?: dynamicOptionInfoType;
|
|
198
128
|
};
|
|
129
|
+
rangeFilter?: boolean;
|
|
199
130
|
remark?: string;
|
|
200
131
|
keyword?: boolean;
|
|
201
132
|
};
|
|
133
|
+
export declare type dynamicOptionInfoType = {
|
|
134
|
+
filterKeys: string[];
|
|
135
|
+
showKeys: string[];
|
|
136
|
+
valueKey: string;
|
|
137
|
+
dataSourceId: string;
|
|
138
|
+
dataSourceType: string;
|
|
139
|
+
autograph: string;
|
|
140
|
+
};
|
|
202
141
|
export declare type ICategoryItemType = {
|
|
203
142
|
disabled: boolean;
|
|
204
143
|
value: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{computed as e,unref as t}from"vue";import{useDebounceFn as n,useEventListener as l}from"@vueuse/core";import{isValid as i}from"date-fns";function o(o,s,u){const r=n((e=>{!function(e){const t=e.target;if(["INPUT"].includes(t.tagName)){const{selectionStart:e=0,selectionEnd:n=0}=t;e===n&&t.select()}}(e)}),200),c=e((()=>{var e;return null==(e=o.value)?void 0:e.$el})),a=e((()=>{const e={};return["date","time","hour","minute","second"].forEach((t=>function(e,t){const n=`is-${t}-disabled`;u[n]&&(e[n.replace(/-(\w)/g,((e,t)=>t.toUpperCase()))]=u[n])}(e,t))),e}));function d(e,n,l){const i=e.value;if(!i)return;const o=e.selectionEnd||0,u=i.length;let r=0,c=0,a=0,d="",f=0;for(;r<u;){const e=i[r++];if(/\d/.test(e)&&(d+=e),r===o){a=d.length;const e=i.slice(r).match(/^\d+/);f=e?e[0].length:0}}const v=t(s),g=Array.isArray(v)?function(e){var t,n;let l=!1,i=e.parentNode||null;for(;i;){if(null==(n=null==(t=i.classList)?void 0:t.contains)?void 0:n.call(t,"n-time-picker")){l=!0;break}i=i.parentNode||null}return l}(e)?v[1]:v[0]:v;let m="",p=0,h=0;for(r=0;r<g.length&&(l||!(c>=d.length));){const e=g[r++];if(/[yMdHms]/.test(e)?m+=d[c++]||"0":m+=e,n&&c===a){a=-1,p=m.length,h=p;let e=g.slice(r).match(/^[yMdHms]+/);e?(f=Math.min(f,e[0].length),f&&(m+=d.slice(c,c+f),c+=f),r+=e[0].length):(e=g.slice(r).match(/^([^yMdHms]+)([yMdHms]*)/),e&&(p+=e[1].length,h=p+e[2].length))}}const b=m!==i;if(b){e.value=m;const t=new InputEvent("input");e.dispatchEvent(t)}return n&&(p=p||m.length+1,h=h||m.length+1,e.setSelectionRange(p,h)),b}return l(c,"input",(function(e){const t=e.target;if(!t.value||!Reflect.get(t,"_f_"))return;Reflect.set(t,"_f_",0),d(t,!0)&&(e.preventDefault(),e.stopPropagation())}),!0),l(c,"keydown",(function(e){const{key:t,
|
|
1
|
+
import{computed as e,unref as t}from"vue";import{useDebounceFn as n,useEventListener as l}from"@vueuse/core";import{isValid as i}from"date-fns";function o(o,s,u){const r=n((e=>{!function(e){const t=e.target;if(["INPUT"].includes(t.tagName)){const{selectionStart:e=0,selectionEnd:n=0}=t;e===n&&t.select()}}(e)}),200),c=e((()=>{var e;return null==(e=o.value)?void 0:e.$el})),a=e((()=>{const e={};return["date","time","hour","minute","second"].forEach((t=>function(e,t){const n=`is-${t}-disabled`;u[n]&&(e[n.replace(/-(\w)/g,((e,t)=>t.toUpperCase()))]=u[n])}(e,t))),e}));function d(e,n,l){const i=e.value;if(!i)return;const o=e.selectionEnd||0,u=i.length;let r=0,c=0,a=0,d="",f=0;for(;r<u;){const e=i[r++];if(/\d/.test(e)&&(d+=e),r===o){a=d.length;const e=i.slice(r).match(/^\d+/);f=e?e[0].length:0}}const v=t(s),g=Array.isArray(v)?function(e){var t,n;let l=!1,i=e.parentNode||null;for(;i;){if(null==(n=null==(t=i.classList)?void 0:t.contains)?void 0:n.call(t,"n-time-picker")){l=!0;break}i=i.parentNode||null}return l}(e)?v[1]:v[0]:v;let m="",p=0,h=0;for(r=0;r<g.length&&(l||!(c>=d.length));){const e=g[r++];if(/[yMdHms]/.test(e)?m+=d[c++]||"0":m+=e,n&&c===a){a=-1,p=m.length,h=p;let e=g.slice(r).match(/^[yMdHms]+/);e?(f=Math.min(f,e[0].length),f&&(m+=d.slice(c,c+f),c+=f),r+=e[0].length):(e=g.slice(r).match(/^([^yMdHms]+)([yMdHms]*)/),e&&(p+=e[1].length,h=p+e[2].length))}}const b=m!==i;if(b){e.value=m;const t=new InputEvent("input");e.dispatchEvent(t)}return n&&(p=p||m.length+1,h=h||m.length+1,e.setSelectionRange(p,h)),b}return l(c,"input",(function(e){const t=e.target;if(!t.value||!Reflect.get(t,"_f_"))return;Reflect.set(t,"_f_",0),d(t,!0)&&(e.preventDefault(),e.stopPropagation())}),!0),l(c,"keydown",(function(e){const{key:t}=e,n=e.target;if(/\d/.test(t)&&n)Reflect.set(n,"_f_",1);else if("Enter"===t){d(n,!1,!0);const e=null==n?void 0:n.value,t=Reflect.get(u,"type")||"";e&&!t.includes("range")&&i(new Date(e))&&!function(e){const{isTimeDisabled:t,isDateDisabled:n,isHourDisabled:l,isMinuteDisabled:i,isSecondDisabled:o}=a.value;if(null==n?void 0:n(e.getTime()))return;const s=(null==t?void 0:t(e.getTime()).isHourDisabled)||l,u=(null==t?void 0:t(e.getTime()).isMinuteDisabled)||i,r=(null==t?void 0:t(e.getTime()).isSecondDisabled)||o;if(null==s?void 0:s(e.getHours()))return;if(null==u?void 0:u(e.getMinutes()))return;if(null==r?void 0:r(e.getMinutes()))return;return!0}(new Date(e))&&(n.value="",n.dispatchEvent(new InputEvent("input")))}}),!0),l(c,"click",r,!0),{focus:()=>{var e,t;return null==(t=null==(e=o.value)?void 0:e.focus)?void 0:t.call(e)},blur:()=>{var e,t;return null==(t=null==(e=o.value)?void 0:e.blur)?void 0:t.call(e)}}}export{o as useDateTime};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.1.
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.43-beta.10",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.43-beta.10",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};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare type LOW_CODE_VALUE_RELATION = 'EQ' | 'NEQ' | 'CL' | 'NC' | 'NULL' | 'NOT_NULL' | 'BIG' | 'BIGEQ' | 'LESS' | 'LESSEQ';
|
|
2
|
+
export declare type LOW_CODE_EVENT_TYPE = 'SET_VALUE' | 'REPEAT_VALIDATE' | 'IS_SHOW_FIELD' | 'SQLSAVE' | 'API';
|
|
3
|
+
export declare type BindEventSettingItem = {
|
|
4
|
+
event_type: LOW_CODE_EVENT_TYPE;
|
|
5
|
+
event_field?: string;
|
|
6
|
+
params?: {
|
|
7
|
+
p_value?: string;
|
|
8
|
+
p_name: string;
|
|
9
|
+
p_select: LOW_CODE_VALUE_RELATION;
|
|
10
|
+
}[];
|
|
11
|
+
results?: {
|
|
12
|
+
p_value: string;
|
|
13
|
+
p_name: string;
|
|
14
|
+
}[];
|
|
15
|
+
[K: string]: unknown;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { App } from '@vue/runtime-core';
|
|
2
|
+
export * from './business';
|
|
2
3
|
export declare type SFCWithInstall<T> = T & {
|
|
3
4
|
install: (app: App, ...options: any[]) => any;
|
|
4
5
|
};
|
|
@@ -19,4 +20,3 @@ export declare type TupleToUnion<T extends readonly unknown[]> = T[number];
|
|
|
19
20
|
declare type UnionToIntersection<T> = (T extends T ? (params: T) => any : never) extends (P: infer R) => any ? R : never;
|
|
20
21
|
export declare type UnionToTuple<T, Result extends unknown[] = []> = UnionToIntersection<T extends any ? () => T : never> extends () => infer Return ? UnionToTuple<Exclude<T, Return>, [Return, ...Result]> : Result;
|
|
21
22
|
export declare type MaybeString<T extends string | number> = T | `${T}`;
|
|
22
|
-
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BindEventSettingItem, LOW_CODE_EVENT_TYPE, LOW_CODE_VALUE_RELATION } from '../../../es/shared/types';
|
|
2
|
+
export declare function isMatchLowCodeCondition(value: unknown, condition: {
|
|
3
|
+
con: LOW_CODE_VALUE_RELATION;
|
|
4
|
+
value: unknown;
|
|
5
|
+
}): boolean;
|
|
6
|
+
declare function handleFieldTriggerSetValue(bindEventSetting: BindEventSettingItem, { getter, setter }: {
|
|
7
|
+
setter: (key: string, value: unknown) => void;
|
|
8
|
+
getter: (key: string) => unknown;
|
|
9
|
+
}): void;
|
|
10
|
+
export declare function getBindEventSettingTrigger(key: LOW_CODE_EVENT_TYPE): typeof handleFieldTriggerSetValue;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isArray as e,isString as t,includes as n,isEmpty as r,negate as E,gt as o,gte as u,lt as a,lte as c,noop as L,isObject as _}from"lodash-es";const s={EQ:(e,t)=>`${e}`===t,NEQ:(e,t)=>`${e}`!==t,CL:(r,E)=>!(!e(r)&&!t(r))&&n(r,E),NC:(r,E)=>!e(r)&&!t(r)||!n(r,E),NULL:r,NOT_NULL:E(r),BIG:o,BIGEQ:u,LESS:a,LESSEQ:c};function p(e,t){return(s[t.con]||(()=>!1))(e,`${t.value}`)}const S=Object.freeze({SET_VALUE:function(e,{getter:t,setter:n}){if(!_(e))return;const{results:r=[],params:E=[]}=e;if(!r.length)return;E.every((e=>e&&e.p_name&&p(t(e.p_name),{con:e.p_select,value:e.p_value})))&&r.forEach((e=>n(e.p_name,e.p_value)))},REPEAT_VALIDATE:L,IS_SHOW_FIELD:L,SQLSAVE:L,API:L});function f(e){return S[e]||L}export{f as getBindEventSettingTrigger,p as isMatchLowCodeCondition};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AnyObject, ArrayAble } from '../../../es/shared/types';
|
|
2
2
|
import { App, Component } from 'vue';
|
|
3
|
+
export * from './business';
|
|
3
4
|
export declare function traverse<T extends ArrayAble<AnyObject>>(target: T, handler: (item: T extends Array<infer P> ? P : T, stop: () => void, parent?: typeof item) => void, keys?: ArrayAble<string>, parent?: T): void;
|
|
4
5
|
export declare function safeComponentRegister(app: App, component: Component, cName?: string | undefined, scheduler?: () => void): void;
|
|
5
6
|
export declare function generateTimeFormat(format: string): string | undefined;
|
|
@@ -15,9 +16,4 @@ export declare function targetStringIncludes(arr: string[], target: string): boo
|
|
|
15
16
|
export declare const jsonParse: import("@vueuse/core").UseMemoizedFn<any, [value: string]>;
|
|
16
17
|
export declare function shallowOmit<T, K extends Array<keyof T>>(target: T, keys: K): Omit<T, K[number]>;
|
|
17
18
|
export declare function checkInSetupEnv(message?: string): void;
|
|
18
|
-
export declare type LOW_CODE_VALUE_RELATION = 'EQ' | 'NEQ' | 'CL' | 'NC' | 'NULL' | 'NOT_NULL' | 'BIG' | 'BIGEQ' | 'LESS' | 'LESSEQ';
|
|
19
|
-
export declare function isMatchLowCodeCondition(value: unknown, condition: {
|
|
20
|
-
con: LOW_CODE_VALUE_RELATION;
|
|
21
|
-
value: unknown;
|
|
22
|
-
}): boolean;
|
|
23
19
|
export declare function hex2rgba(hex: string, defaultAlpha?: number): readonly [number, number, number, number];
|
package/es/shared/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useMemoize as t}from"@vueuse/core";import{
|
|
1
|
+
import{useMemoize as t}from"@vueuse/core";import{isObject as e,isString as n,isNumber as r,isArray as o,isFunction as i}from"lodash-es";import{getCurrentInstance as c}from"vue";import u from"../package.json.js";export{getBindEventSettingTrigger,isMatchLowCodeCondition}from"./business.js";function s(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",c){r=x(r),e=x(e);for(let u=0;u<e.length;u++){if(n(e[u],i,c),o)return;for(let i=0;i<r.length;i++){const c=e[u][r[i]];if(Array.isArray(c)&&t(c,n,r,e[u]),o)return}}}(t,e,n,r)}function f(t,n,r=n.name,o){if(!r)throw new Error(`[CUI]: invalid component name for ${n}`);const{components:i={}}=t._context;i[r]||(!Reflect.get(t,"__cnhis_version")&&e(u)&&Reflect.set(t,"__cnhis_version",u.version),o?o():t.component(r,n))}function a(t){if(!n(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function x(t){return Array.isArray(t)?t:[t]}function d(){if(window.isSecureContext&&window.crypto)return`key${window.crypto.randomUUID()}`;return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const l=t((function(t){return t?[...t].reduce(((t,e)=>/[a-z]/.test(e)?t+8:/[A-Z]/.test(e)?t+12:/\d/.test(e)?t+9:/\./.test(e)?t+4:/[\u4e00-\u9fa5]/.test(e)?t+15:/-/.test(e)?t+4:/[()]/.test(e)?t+14:/[)(]/.test(e)?t+5:/-/.test(e)?t+10:/%/.test(e)?t+14:/‰/.test(e)?t+16:t+6),0):0})),m=Object.seal(Object.create(null));function p(t,n){return function t(n,r){return e(n)?o(n)?n.map((e=>t(e,r))):Object.entries(n).reduce(((n,[o,c])=>(r.includes(o)||(e(c)&&!i(c)?n[o]=t(c,r):n[o]=c),n)),{}):n}(t,n)}function h(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function g(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function w(t,e="px"){if(r(t))return`${t}${e}`;if(n(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function y(t,e){return t.some((t=>e.includes(t)))}const v=t((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function $(t,n){if(!e(t))return t;const r={...t};for(let t=0;t<n.length;t++)Reflect.deleteProperty(r,n[t]);return r}function b(t){if(!c())throw new Error(t||"can't use this hook out of setup environment")}function j(t,e=1){const[n,o,i,c,u]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!n)return[255,255,255,e];const s=u&&parseInt(u,16)/255;return[parseInt(o,16),parseInt(i,16),parseInt(c,16),+(r(s)?s.toFixed(2):e)]}export{m as DMZ,x as arrayed,b as checkInSetupEnv,p as deepOmit,g as findAncestor,a as generateTimeFormat,l as getStringWidth,j as hex2rgba,v as jsonParse,f as safeComponentRegister,h as separateMetaModule,$ as shallowOmit,y as targetStringIncludes,s as traverse,d as uuidGenerator,w as widthAppend};
|
package/package.json
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.43-beta.
|
|
4
|
-
"license": "ISC",
|
|
5
|
-
"module": "./es/components/index.js",
|
|
6
|
-
"main": "./es/components/index.js",
|
|
7
|
-
"types": "./es/components/index.d.ts",
|
|
8
|
-
"sideEffects": [
|
|
9
|
-
"es/components/**/style/*",
|
|
10
|
-
"es/components/*(.css,.less)"
|
|
11
|
-
],
|
|
12
|
-
"files": [
|
|
13
|
-
"es",
|
|
14
|
-
"README.md"
|
|
15
|
-
],
|
|
16
|
-
"peerDependencies": {
|
|
17
|
-
"naive-ui": "^2.30.0",
|
|
18
|
-
"vue": "^3.2.0",
|
|
19
|
-
"vxe-table": "^4.2.5"
|
|
20
|
-
},
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"@formily/core": "2.1.9",
|
|
23
|
-
"@formily/path": "2.1.9",
|
|
24
|
-
"@formily/reactive": "2.1.9",
|
|
25
|
-
"@formily/vue": "2.1.9",
|
|
26
|
-
"@vicons/ionicons5": "^0.12.0",
|
|
27
|
-
"@vueuse/core": "^8.6.0",
|
|
28
|
-
"@vueuse/shared": "^8.6.0",
|
|
29
|
-
"@wangeditor/editor": "^5.1.1",
|
|
30
|
-
"@wangeditor/editor-for-vue": "^5.1.11",
|
|
31
|
-
"axios": "^0.27.2",
|
|
32
|
-
"bpmn-js": "^9.2.2",
|
|
33
|
-
"bpmnlint-utils": "^1.0.2",
|
|
34
|
-
"date-fns": "^2.29.1",
|
|
35
|
-
"diagram-js": "^8.7.1",
|
|
36
|
-
"ids": "^1.0.0",
|
|
37
|
-
"inherits": "^2.0.4",
|
|
38
|
-
"lodash": "^4.17.21",
|
|
39
|
-
"lodash-es": "^4.17.21",
|
|
40
|
-
"lodash-unified": "^1.0.2",
|
|
41
|
-
"min-dash": "^3.8.1",
|
|
42
|
-
"min-dom": "^3.2.1",
|
|
43
|
-
"moment": "^2.29.1",
|
|
44
|
-
"naive-ui": "^2.30.0",
|
|
45
|
-
"sortablejs": "^1.15.0",
|
|
46
|
-
"spark-md5": "^3.0.2",
|
|
47
|
-
"tiny-svg": "^2.2.4",
|
|
48
|
-
"v-viewer": "^3.0.10",
|
|
49
|
-
"video.js": "^7.19.2",
|
|
50
|
-
"videojs-contrib-hls": "^5.15.0",
|
|
51
|
-
"viewerjs": "^1.10.5",
|
|
52
|
-
"vue": "^3.2.0",
|
|
53
|
-
"vue-simple-uploader": "^1.0.0-beta.5",
|
|
54
|
-
"xe-utils": "^3.5.4"
|
|
55
|
-
},
|
|
56
|
-
"browserslist": [
|
|
57
|
-
"defaults",
|
|
58
|
-
"not ie < 8",
|
|
59
|
-
"last 2 versions",
|
|
60
|
-
"> 1%",
|
|
61
|
-
"iOS 7",
|
|
62
|
-
"last 3 iOS versions"
|
|
63
|
-
],
|
|
64
|
-
"gitHead": "
|
|
65
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "cnhis-design-vue",
|
|
3
|
+
"version": "3.1.43-beta.10",
|
|
4
|
+
"license": "ISC",
|
|
5
|
+
"module": "./es/components/index.js",
|
|
6
|
+
"main": "./es/components/index.js",
|
|
7
|
+
"types": "./es/components/index.d.ts",
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"es/components/**/style/*",
|
|
10
|
+
"es/components/*(.css,.less)"
|
|
11
|
+
],
|
|
12
|
+
"files": [
|
|
13
|
+
"es",
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
16
|
+
"peerDependencies": {
|
|
17
|
+
"naive-ui": "^2.30.0",
|
|
18
|
+
"vue": "^3.2.0",
|
|
19
|
+
"vxe-table": "^4.2.5"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@formily/core": "2.1.9",
|
|
23
|
+
"@formily/path": "2.1.9",
|
|
24
|
+
"@formily/reactive": "2.1.9",
|
|
25
|
+
"@formily/vue": "2.1.9",
|
|
26
|
+
"@vicons/ionicons5": "^0.12.0",
|
|
27
|
+
"@vueuse/core": "^8.6.0",
|
|
28
|
+
"@vueuse/shared": "^8.6.0",
|
|
29
|
+
"@wangeditor/editor": "^5.1.1",
|
|
30
|
+
"@wangeditor/editor-for-vue": "^5.1.11",
|
|
31
|
+
"axios": "^0.27.2",
|
|
32
|
+
"bpmn-js": "^9.2.2",
|
|
33
|
+
"bpmnlint-utils": "^1.0.2",
|
|
34
|
+
"date-fns": "^2.29.1",
|
|
35
|
+
"diagram-js": "^8.7.1",
|
|
36
|
+
"ids": "^1.0.0",
|
|
37
|
+
"inherits": "^2.0.4",
|
|
38
|
+
"lodash": "^4.17.21",
|
|
39
|
+
"lodash-es": "^4.17.21",
|
|
40
|
+
"lodash-unified": "^1.0.2",
|
|
41
|
+
"min-dash": "^3.8.1",
|
|
42
|
+
"min-dom": "^3.2.1",
|
|
43
|
+
"moment": "^2.29.1",
|
|
44
|
+
"naive-ui": "^2.30.0",
|
|
45
|
+
"sortablejs": "^1.15.0",
|
|
46
|
+
"spark-md5": "^3.0.2",
|
|
47
|
+
"tiny-svg": "^2.2.4",
|
|
48
|
+
"v-viewer": "^3.0.10",
|
|
49
|
+
"video.js": "^7.19.2",
|
|
50
|
+
"videojs-contrib-hls": "^5.15.0",
|
|
51
|
+
"viewerjs": "^1.10.5",
|
|
52
|
+
"vue": "^3.2.0",
|
|
53
|
+
"vue-simple-uploader": "^1.0.0-beta.5",
|
|
54
|
+
"xe-utils": "^3.5.4"
|
|
55
|
+
},
|
|
56
|
+
"browserslist": [
|
|
57
|
+
"defaults",
|
|
58
|
+
"not ie < 8",
|
|
59
|
+
"last 2 versions",
|
|
60
|
+
"> 1%",
|
|
61
|
+
"iOS 7",
|
|
62
|
+
"last 3 iOS versions"
|
|
63
|
+
],
|
|
64
|
+
"gitHead": "9a1d78f771d10ea37646853014d4609b4070b8a1"
|
|
65
|
+
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AnyObject } from '../../../../../../es/shared/types';
|
|
2
|
-
import { FieldEventSetting } from '../../../../../../es/components/iho-table/src/types';
|
|
3
|
-
/**
|
|
4
|
-
* 判断是否匹配
|
|
5
|
-
* @param conObj params条件数组
|
|
6
|
-
* @param curVal 当前行数据对应fieldKey的值
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
export declare function isContain(conObj: AnyObject, curVal: string | number): boolean;
|
|
10
|
-
export declare function judgeCondition(row: AnyObject, setObj: FieldEventSetting): boolean;
|
|
11
|
-
export declare function handleFieldTriggerSetValue(row: AnyObject, setObj: FieldEventSetting): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{isNumber as e,isString as a}from"lodash-es";function n(n,r){const s=n.p_select,c=n.p_value;let l=!0;switch(s){case"NULL":l=!r;break;case"NOT_NULL":l=!!r;break;case"EQ":l=r==c;break;case"NEQ":l=r!=c;break;case"CL":l=a(r)&&r.includes(c);break;case"NC":l=a(r)&&!r.includes(c);break;case"BIG":l=e(r)&&1*r>1*c;break;case"LESS":l=e(r)&&1*r<1*c;break;case"BIGEQ":l=e(r)&&1*r>=1*c;break;case"LESSEQ":l=e(r)&&1*r<=1*c}return l}function r(e,a){var r;const s=null!=(r=null==a?void 0:a.params)?r:[];if(s.length>0)for(let a=0;a<s.length;a++){const r=s[a];if(!n(r,e[r.p_name]))return!1}return!0}function s(e,a){var n;const s=null!=(n=null==a?void 0:a.results)?n:[];r(e,a)&&s.length>0&&s.forEach((a=>{e[a.p_name]=a.p_value}))}export{s as handleFieldTriggerSetValue,n as isContain,r as judgeCondition};
|