cnhis-design-vue 3.1.46-beta.9 → 3.1.46-release.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/es/components/base-search/index.d.ts +8 -17
- package/es/components/base-search/src/index.vue.d.ts +8 -17
- package/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +18 -219
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +18 -219
- package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +18 -219
- package/es/components/classification/src/index.vue.d.ts +18 -219
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.js +1 -1
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +1 -1
- package/es/components/quick-search/index.d.ts +7 -21
- package/es/components/quick-search/src/index.vue.d.ts +7 -21
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +17 -219
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -17
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +0 -19
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +11 -178
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +5 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +1 -2
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +17 -217
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +17 -219
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/basicData.d.ts +4 -0
- package/es/components/table-filter/src/components/render-widget/basicData.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/{DateOut.vue.d.ts → Date.vue.d.ts} +2 -21
- 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/Date.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +8 -117
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +9 -13
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +6 -8
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +6 -7
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +25 -19
- package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +36 -611
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/enums.d.ts +3 -10
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +6 -2
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +3 -4
- 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 +35 -639
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/constants/index.d.ts +1 -3
- package/es/components/table-filter/src/constants/index.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +4 -9
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +3 -3
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/tool/baseOptions.d.ts +8 -0
- package/es/components/table-filter/src/tool/baseOptions.js +1 -1
- package/es/components/table-filter/src/tool/generateDefOptions.d.ts +7 -0
- package/es/components/table-filter/src/tool/generateDefOptions.js +1 -0
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +0 -3
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +0 -7
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.js +1 -1
- package/package.json +2 -2
- package/es/components/table-export-field/index.d.ts +0 -967
- package/es/components/table-export-field/index.js +0 -1
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -192
- package/es/components/table-export-field/src/components/ExportModal.vue.js +0 -1
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +0 -1
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +0 -687
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +0 -1
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +0 -1
- package/es/components/table-export-field/src/constants/index.d.ts +0 -3
- package/es/components/table-export-field/src/constants/index.js +0 -1
- package/es/components/table-export-field/src/hooks/useAsyncData.d.ts +0 -6
- package/es/components/table-export-field/src/hooks/useAsyncData.js +0 -1
- package/es/components/table-export-field/src/index.vue.d.ts +0 -968
- package/es/components/table-export-field/src/index.vue.js +0 -1
- package/es/components/table-export-field/src/index.vue2.js +0 -1
- package/es/components/table-export-field/src/types/index.d.ts +0 -6
- package/es/components/table-export-field/src/types/index.js +0 -1
- package/es/components/table-export-field/style/index.css +0 -1
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +0 -231
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +0 -71
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +0 -223
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +0 -158
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +0 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.d.ts +0 -27
- package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +0 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +0 -55
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +0 -1
- package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +0 -56
- package/es/components/table-filter/src/components/render-widget/helpers/enums.js +0 -1
- package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.d.ts +0 -4
- package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +0 -1
- package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +0 -4
- package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.js +0 -1
- package/es/components/table-filter/src/hooks/useAsyncData.d.ts +0 -4
- package/es/components/table-filter/src/hooks/useAsyncData.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WidgetTypeEnums as e
|
|
1
|
+
import{WidgetTypeEnums as e}from"../../types/enums.js";import{DatePresetValEnums as l,DateRangeOutDefEnums as t}from"./enums.js";import{NInputNumber as a,NInput as r}from"naive-ui";import{InputNumberGroup as n,Select as o,Date as p,DateRangeInner as s,DateRangeOut as i,CheckboxGroup as u,LabelInner as c,LabelOut as d}from"./components/index.js";import{presetValToTimestamp as m,presetValToDateRangestr as y}from"./helpers/presetValToTimestamp.js";const h=e=>null==e?null:e,f=new Map([[e.INPUT_NUMBER,{component:a,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`输入${l}`}),setDefaultValue:h}],[e.INPUTNUMBER_RANGE,{component:n,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l,filterExplicit:t}={})=>({...e,startPlaceholder:1===t?`起始${l}`:"最小值",endPlaceholder:1===t?`截止${l}`:"最大值"}),setDefaultValue:h}],[e.INPUT,{component:r,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`搜索${l}`}),setDefaultValue:h}],[e.SELECT,{component:o,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:a}=t;a&&l()}}],handlerProps(e,l={}){const{valueList:t,multiple:a,title:r,manualMapping:n,dynamicOptionInfo:o,defaultValue:p,defValueUnit:s,_frontId:i,isInit:u}=l,c={...e,placeholder:`请选择${r}`,manualMapping:n,dynamicOptionInfo:o,valueList:t,defValue:p,defValueUnit:s,_frontId:i,isInit:u};return a&&(c.multiple=!0),c},setDefaultValue:h}],[e.DATE,{component:p,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:(e,t)=>t&&t!==l.CUSTOM?m(t,"YYYY-MM-DD"):e}],[e.DATE_RANGE_INNER,{component:s,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t,filterExplicit:a}=l;return{...e,filterExplicit:a,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:h}],[e.DATE_RANGE_OUT,{component:i,props:{type:"daterange",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t,filterExplicit:a}=l;return{...e,filterExplicit:a,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?y(l,"YYYY-MM-DD"):e}],[e.DATE_TIME,{component:p,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:(e,t)=>t&&t!==l.CUSTOM?m(t,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATETIME_RANGE_INNER,{component:s,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t,filterExplicit:a}=l;return{...e,filterExplicit:a,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:h}],[e.DATETIME_RANGE_OUT,{component:i,props:{type:"datetimerange",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t,filterExplicit:a}=l;return{...e,filterExplicit:a,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:(e,t)=>t&&t!==l.CUSTOM?y(t,"YYYY-MM-DD HH:mm:ss"):e}],[e.CHECKBOX_GROUP,{component:u,props:{},style:{"line-height":"32px"},handlerProps(e,{valueList:l,multiple:t}={}){const a={...e,multiple:t};return Array.isArray(l)&&(a.options=l.map((({value:e,label:l})=>({value:e,label:l})))),a},setDefaultValue:h}],[e.LABEL,{component:c,props:{},handlerProps:e=>({...e}),setDefaultValue:e=>e&&Array.isArray(e)?e.join("|#|"):e}],[e.SELECTLABEL,{component:d,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},handlerProps(e,l={}){const{multiple:t,title:a}=l,r={...e,placeholder:`请选择${a}`};return t&&(r.multiple=!0),r},setDefaultValue:e=>e&&Array.isArray(e)?e.join("|#|"):e}]]);export{f as WidgetCfgMaps};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { AnyObject } from '../../../../../es/shared/types';
|
|
2
|
-
import { InjectionKey
|
|
2
|
+
import { InjectionKey } from 'vue';
|
|
3
3
|
export declare const InjectionFilterApiConfig: InjectionKey<AnyObject>;
|
|
4
|
-
export declare const InjectionFilterSearchConfig: InjectionKey<Ref<AnyObject[]>>;
|
|
5
|
-
export declare const InjectionClassifyFilterList: InjectionKey<Ref<AnyObject[]>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o=Symbol("InjectionFilterApiConfig");export{o as InjectionFilterApiConfig};
|
|
@@ -1,31 +1,26 @@
|
|
|
1
|
-
import { IApiServerType, ISearchType
|
|
1
|
+
import { IApiServerType, ISearchType } from '../../../../../es/components/table-filter/src/types';
|
|
2
2
|
export default function useAdvanced(): {
|
|
3
|
-
transformData: (advancedFilterData: IApiServerType[]
|
|
3
|
+
transformData: (advancedFilterData: IApiServerType[]) => {
|
|
4
4
|
fieldType: string;
|
|
5
5
|
columnName: string;
|
|
6
6
|
settingObj: {};
|
|
7
7
|
setting: string;
|
|
8
8
|
widgetCfg: {
|
|
9
9
|
isRender: boolean;
|
|
10
|
+
isInit: boolean;
|
|
10
11
|
widgetType: string | null;
|
|
11
|
-
originType: string | null;
|
|
12
12
|
valueList: {
|
|
13
13
|
value: any;
|
|
14
14
|
label: any;
|
|
15
15
|
}[] | undefined;
|
|
16
16
|
defaultValue: any;
|
|
17
17
|
defValueUnit: any;
|
|
18
|
-
optionSetting: string | undefined;
|
|
19
18
|
multiple: boolean;
|
|
20
19
|
manualMapping: boolean | null | undefined;
|
|
21
|
-
showWholeOption: boolean | undefined;
|
|
22
20
|
dynamicOptionInfo: import("../../../../../es/components/table-filter/src/types").dynamicOptionInfoType | {} | undefined;
|
|
23
21
|
classifyStr: string | undefined;
|
|
24
|
-
linkageFieldKeys: string[];
|
|
25
22
|
};
|
|
26
23
|
rangeFilter: boolean | undefined;
|
|
27
|
-
unit: any;
|
|
28
|
-
_extendData: IExtendConfigurationType;
|
|
29
24
|
title: string;
|
|
30
25
|
alias: string | undefined;
|
|
31
26
|
isShowSearch: number;
|
|
@@ -37,5 +32,5 @@ export default function useAdvanced(): {
|
|
|
37
32
|
}[];
|
|
38
33
|
getCacheDef: (item: ISearchType, cacheList: string[]) => string | string[];
|
|
39
34
|
transformClassifyChild: (conObjList: any) => {};
|
|
40
|
-
transformParams: (paramsList: any
|
|
35
|
+
transformParams: (paramsList: any) => {};
|
|
41
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WidgetOptionEnums as e,WidgetTypeEnums 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:E,rangeFilter:p}=i,d={},T={title:(c=i).title,alias:c.customTitle,isShowSearch:c.isShowSearch?1:0,filterExplicit:c.filterExplicit?1:0,explicitRequired:c.explicitRequired?1:0,advanceOptionSetting:c.optionType?l[c.optionType]:"",placeholder:c.remark,advanceColWidth:c.width};var c;let f,m,v=u;E?(f=u===t.SELECT&&s===e.MULTIPLE?null==r?void 0:r.valueList:null==(n=null==r?void 0:r.valueList)?void 0:n[0],m=null==r?void 0:r.unit,u===t.LABEL&&(v="SELECTLABEL",f=null==r?void 0:r.valueList)):u===t.SELECT&&(null==o?void 0:o.list)&&(null==o?void 0:o.list.length)<10&&(v="CHECKBOX_GROUP"),p&&(u===t.INPUT_NUMBER&&(v="INPUTNUMBER_RANGE"),u===t.DATE&&(v=E?"DATE_RANGE_OUT":"DATE_RANGE_INNER"),u===t.DATE_TIME&&(v=E?"DATETIME_RANGE_OUT":"DATETIME_RANGE_INNER"));const g={isRender:!0,isInit:!1,widgetType:v,valueList:null==(a=null==o?void 0:o.list)?void 0:a.map((({name:e,value:t})=>({value:t,label:e}))),defaultValue:f,defValueUnit:m,multiple:s===e.MULTIPLE||v===t.SELECTLABEL,manualMapping:null==o?void 0:o.manualMapping,dynamicOptionInfo:null==o?void 0:o.dynamicOptionInfo,classifyStr:null==r?void 0:r.classifyStr};return{...T,fieldType:i.dataType,columnName:i.name,settingObj:d,setting:JSON.stringify(d),widgetCfg:g,rangeFilter:p}}))},getCacheDef:function(e,i){const{widgetType:n,widgetCfg:l}=e;return n!==t.SELECT&&n!==t.CHECKBOX_GROUP||!l.multiple?i[0]:i},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 i={},n=[t.SELECT];return e&&e.length>0&&e.forEach((e=>{const t=e.field_key,l=n.includes(e.widgetType)||e.value&&e.value.length>1?e.value:e.value.toString();i[t]=l})),i}}}export{a as default};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ISearchType, ISearchConfigType } from '../../../../../es/components/table-filter/src/types';
|
|
2
2
|
export default function (): {
|
|
3
3
|
isRender: (cfg: ISearchType) => any;
|
|
4
|
-
getDefValByRenderWidget: (cfg: ISearchType) =>
|
|
5
|
-
initRenderWidgetCfg: (cfg: ISearchType) =>
|
|
4
|
+
getDefValByRenderWidget: (cfg: ISearchType) => any;
|
|
5
|
+
initRenderWidgetCfg: (cfg: ISearchType) => any;
|
|
6
6
|
getRenderSearchConObj: (cfg: ISearchType) => {
|
|
7
7
|
widgetType: any;
|
|
8
8
|
field_key: string;
|
|
9
9
|
con: string | undefined;
|
|
10
10
|
value: any[] | null;
|
|
11
|
-
unit:
|
|
11
|
+
unit: null;
|
|
12
12
|
} | null;
|
|
13
13
|
getDefValByRenderConObj: (conObj: ISearchConfigType, cfg: ISearchType) => any;
|
|
14
14
|
isExistDefValByRenderWidget: (cfg: ISearchType) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WidgetCfgMaps as e}from"../components/render-widget/widgetCfgMaps.js";import{
|
|
1
|
+
import{WidgetCfgMaps as e}from"../components/render-widget/widgetCfgMaps.js";import{DatePresetValEnums as n,DateRangeOutDefEnums as t}from"../components/render-widget/enums.js";import{WidgetTypeEnums as r}from"../types/enums.js";const i=[r.CHECKBOX_GROUP,r.DATE_RANGE_INNER,r.DATETIME_RANGE_INNER,r.LABEL];function u(){function u(e){var n;return null==(n=e.widgetCfg)?void 0:n.isRender}function o(n){const{widgetType:t,defaultValue:r,defValueUnit:i}=n.widgetCfg||{},u=e.get(t);let o;if(u){const{setDefaultValue:e}=u;e&&(o=e(r,i))}return o}return{isRender:u,getDefValByRenderWidget:o,initRenderWidgetCfg:function(e){const n=u(e);if(!n)return n;const{widgetType:t}=e.widgetCfg||{};return e._frontId||(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",i.includes(t)&&(e._isBlock=!0),e.value=o(e),n},getRenderSearchConObj:function(e){if(!u(e))return null;const{columnName:i,con:o,value:d,widgetType:l}=e;let s=null;const f=[r.DATE,r.DATE_TIME],x=[r.DATE_RANGE_OUT,r.DATE_RANGE_INNER,r.DATETIME_RANGE_OUT,r.DATETIME_RANGE_INNER];f.includes(l)&&(s=n.CUSTOM),x.includes(l)&&(s=t.CUSTOM);const a=Array.isArray(d)?d:d?[d]:[];return{widgetType:l,field_key:i,con:o,value:a.length>0?a:null,unit:s}},getDefValByRenderConObj:function(e,n){if(!u(n))return null;const{widgetType:t,multiple:i}=n.widgetCfg||{},{value:o}=e;return t!==r.SELECT&&t!==r.CHECKBOX_GROUP||!i?Array.isArray(o)?o[0]:o:Array.isArray(o)?o:o?[o]:[]},isExistDefValByRenderWidget:function(e){const{defaultValue:n,defValueUnit:t}=e.widgetCfg||{};return!(!n&&!t)},resetRenderWidgetValue:function(e){const n=u(e);return n?(e.value=null,n):n}}}export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{DataTypeEnums as l,WidgetTypeEnums as e,WidgetValEnums as a}from"../types/enums.js";import{DateRangeOutDefEnums as T}from"../components/render-widget/enums.js";const E={[l.API]:{[e.DATE]:[{label:"今天",value:a.TODAY},{label:"明天",value:a.TOMORROW},{label:"昨天",value:a.YESTERDAY},{label:"本周初",value:a.WEEK_START},{label:"本周末",value:a.WEEK_END},{label:"本月初",value:a.MONTH_START},{label:"本月末",value:a.MONTH_END}],[e.DATE_TIME]:[{label:"当前时间",value:a.NOW},{label:"今天初",value:a.TODAY_START},{label:"今天末",value:a.TODAY_END},{label:"昨天初",value:a.YESTERDAY_START},{label:"昨天末",value:a.YESTERDAY_END},{label:"明天初",value:a.TOMORROW_START},{label:"明天末",value:a.TOMORROW_END},{label:"本周初",value:a.WEEK_START},{label:"本周末",value:a.WEEK_END},{label:"本月初",value:a.MONTH_START},{label:"本月末",value:a.MONTH_END}]}},u=[{label:"今天",value:T.TODAY},{label:"明天",value:T.TOMORROW},{label:"昨天",value:T.YESTERDAY},{label:"本周",value:T.THIS_WEEK},{label:"下周",value:T.NEXT_WEEK},{label:"上周",value:T.LAST_WEEK},{label:"本月",value:T.THIS_MONTH},{label:"上月",value:T.LAST_MONTH},{label:"下月",value:T.NEXT_MONTH},{label:"本季度",value:T.THIS_QUARTER},{label:"上季度",value:T.LAST_QUARTER},{label:"下季度",value:T.NEXT_QUARTER},{label:"本年",value:T.THIS_YEAR},{label:"上年",value:T.LAST_YEAR},{label:"下年",value:T.NEXT_YEAR},{label:"近一周",value:T.PAST_WEEK},{label:"近一个月",value:T.PAST_MONTH},{label:"近半年",value:T.PAST_HALF_YEAR}];export{u as widgetDateRangeOptions,E as widgetValOptions};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{WidgetTypeEnums as r,DataTypeEnums as n}from"../types/enums.js";import{widgetValOptions as t}from"./baseOptions.js";import{isNil as o}from"./transformData.js";const p=(p,m={mappingMethod:null,mapping:[]})=>{var i,s;if(o(p))return[];if(p===r.SELECT){const{mapping:r}=m;return r}return null!=(s=null==(i=t[n.API])?void 0:i[p])?s:[]};export{p as generateDefOptionsInApi};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DataTypeEnums as
|
|
1
|
+
import{DataTypeEnums as l,WidgetTypeEnums as e,WidgetOptionEnums as t}from"../types/enums.js";const i=l=>null==l||null==l,n=(i,n=[])=>i===l.API?n.map((l=>{var n,a,u,p,o,r,d,y,v,E,m,f;const s=null!=(a=null==(n=l.optionInfo)?void 0:n.list)?a:[];let T=l.type;return l.type===e.LABEL&&(T=e.SELECTLABEL),l.type===e.SELECT&&!1===(null==(u=null==l?void 0:l.optionInfo)?void 0:u.manualMapping)&&(T=e.SELECTDYNAMIC),l.rangeFilter&&(l.type===e.INPUT_NUMBER&&(T=e.INPUTNUMBER_RANGE),l.type===e.DATE&&(T=e.DATE_RANGE_INNER),l.type===e.DATE_TIME&&(T=e.DATETIME_RANGE_INNER)),{dataType:i,p_name:l.name,p_type:l.dataType,title:l.title,customTitle:l.customTitle,type:T,optionSetting:l.optionType,openAdvancedFilter:l.isShowSearch,filterOutDisplay:l.filterExplicit,filterOutRequired:l.explicitRequired,width:l.width,defValCfg:{value:l.type===e.SELECT&&l.optionType===t.MULTIPLE?null!=(o=null==(p=l.defaultValue)?void 0:p.valueList)?o:[]:null!=(y=null==(d=null==(r=l.defaultValue)?void 0:r.valueList)?void 0:d[0])?y:null,presetVal:l.type===e.SELECT&&l.optionType===t.MULTIPLE?(null==(v=l.defaultValue)?void 0:v.unit)?[null==(E=l.defaultValue)?void 0:E.unit]:[]:null!=(f=null==(m=l.defaultValue)?void 0:m.unit)?f:null},mappingConfig:{mappingMethod:null,mapping:s.map((({name:l,value:e})=>({label:l,value:e})))},remark:l.remark,optionInfo:l.optionInfo,_rawData:l}})):[],a=e=>e.map((e=>{var t;const{title:i,customTitle:n,openAdvancedFilter:a,filterOutDisplay:u,filterOutRequired:p,width:o,optionSetting:r,defValCfg:d,mappingConfig:y,remark:v,_rawData:E}=e,{value:m,presetVal:f}=d,{mapping:s}=y;if(e.dataType===l.API){const{p_name:l,p_type:d,type:y}=e;return{...E,name:l,title:i,customTitle:n,type:y,dataType:d,isShowSearch:a,filterExplicit:u,explicitRequired:p,width:o,optionType:r,defaultValue:{valueList:Array.isArray(m)?m:m?[m]:[],unit:Array.isArray(f)?f[0]:f},optionInfo:{manualMapping:null==(t=null==E?void 0:E.optionInfo)?void 0:t.manualMapping,list:s.map((({label:l,value:e})=>({name:l,value:e})))},remark:v}}return null})).filter((l=>!!l)),u=(l,i)=>l.map((l=>{var n,a;const u=((l,e)=>e.find((e=>e.p_name===l)))(l.field_key,i);let p=l.value;p&&!Array.isArray(p)&&(p=[p]);const o=(null==u?void 0:u.type)!==e.SELECT&&(null==u?void 0:u.type)!==e.SELECTDYNAMIC||(null==u?void 0:u.optionSetting)!==t.MULTIPLE?null!=(n=null==p?void 0:p[0])?n:null:null!=p?p:[];return{key:l.field_key,condition:l.con,value:o,presetVal:null!=(a=l.unit)?a:null}})),p=l=>l.map((l=>({field_key:l.key,con:l.condition,value:Array.isArray(l.value)?l.value:l.value?[l.value]:[],unit:l.presetVal})));export{i as isNil,u as transformConditions,a as transformDataToEnd,n as transformDataToFront,p as transformRawConditions};
|
|
@@ -19,9 +19,7 @@ export declare const WidgetTypeEnums: {
|
|
|
19
19
|
INPUT: string;
|
|
20
20
|
SELECT: string;
|
|
21
21
|
DATE: string;
|
|
22
|
-
DATE_OUT: string;
|
|
23
22
|
DATE_TIME: string;
|
|
24
|
-
DATETIME_OUT: string;
|
|
25
23
|
CHECKBOX_GROUP: string;
|
|
26
24
|
INPUTNUMBER_RANGE: string;
|
|
27
25
|
DATE_RANGE_OUT: string;
|
|
@@ -43,7 +41,6 @@ export declare const WidgetOptionEnums: {
|
|
|
43
41
|
export declare const WidgetValEnums: {
|
|
44
42
|
CUSTOM: string;
|
|
45
43
|
FIRST_VAL: string;
|
|
46
|
-
WHOLE: string;
|
|
47
44
|
NOW: string;
|
|
48
45
|
TODAY: string;
|
|
49
46
|
TODAY_START: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const E={TEXT:"TEXT",NUMBER:"NUMBER",DATE:"DATE",DATE_TIME:"DATETIME",TIME:"TIME",BOOLEAN:"BOOLEAN"},T={SQL:"SQL",API:"API"},A={MANUAL:"manual",DICT:"dict"},_={INPUT_NUMBER:"NUMBER",INPUT:"TEXT",SELECT:"SELECT",DATE:"DATE",
|
|
1
|
+
const E={TEXT:"TEXT",NUMBER:"NUMBER",DATE:"DATE",DATE_TIME:"DATETIME",TIME:"TIME",BOOLEAN:"BOOLEAN"},T={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_RANGE:"INPUTNUMBER_RANGE",DATE_RANGE_OUT:"DATE_RANGE_OUT",DATE_RANGE_INNER:"DATE_RANGE_INNER",DATETIME_RANGE_OUT:"DATETIME_RANGE_OUT",DATETIME_RANGE_INNER:"DATETIME_RANGE_INNER",LABEL:"LABEL",SELECTLABEL:"SELECTLABEL",SELECTDYNAMIC:"SELECTDYNAMIC"},R={RADIO:"SELECT_SINGLE",MULTIPLE:"SELECT_MULTIPLE",ALL:"DATETIME_WHOLE",SELECT_TIME:"DATETIME_SELECT",PAST_TIME:"DATETIME_PAST",FUTURE_TIME:"DATETIME_FUTURE"},N={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"},S={NULL:"NULL",EQUAL:"EQ"};export{S as ConditionEnums,T as DataTypeEnums,E as FieldTypeEnums,A as MappingMethodEnums,R as WidgetOptionEnums,_ as WidgetTypeEnums,N as WidgetValEnums};
|
|
@@ -14,8 +14,6 @@ export declare type ISearchType = {
|
|
|
14
14
|
setting?: any;
|
|
15
15
|
widgetCfg?: any;
|
|
16
16
|
rangeFilter?: boolean;
|
|
17
|
-
unit?: string;
|
|
18
|
-
_extendData?: IExtendConfigurationType;
|
|
19
17
|
_frontId?: any;
|
|
20
18
|
isRender?: boolean;
|
|
21
19
|
widgetType?: any;
|
|
@@ -120,11 +118,9 @@ export declare type IApiServerType = {
|
|
|
120
118
|
valueList?: any[];
|
|
121
119
|
unit?: string | null;
|
|
122
120
|
classifyStr?: string;
|
|
123
|
-
linkageFieldKeys?: string[];
|
|
124
121
|
};
|
|
125
122
|
optionInfo?: {
|
|
126
123
|
manualMapping?: boolean | null;
|
|
127
|
-
showWholeOption?: boolean;
|
|
128
124
|
list?: {
|
|
129
125
|
name: string;
|
|
130
126
|
value: any;
|
|
@@ -208,6 +204,3 @@ export declare type IhoFilterTabLabelItemType = {
|
|
|
208
204
|
backgroundColor: string;
|
|
209
205
|
isSelect: boolean;
|
|
210
206
|
};
|
|
211
|
-
export declare type IExtendConfigurationType = {
|
|
212
|
-
_filterApiConfig: any;
|
|
213
|
-
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",
|
|
1
|
+
var e="@cnhis-design-vue/shared",s="3.1.46-release.0",i="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.46-release.0",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,i as main,e as name,n as peerDependencies,s as version};
|