cnhis-design-vue 3.2.17-beta.2 → 3.2.17-beta.9

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.
Files changed (57) hide show
  1. package/es/components/ai-chat/src/components/ChatCard.js +1 -1
  2. package/es/components/base-search/style/index.css +1 -1
  3. package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +4 -1
  4. package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
  5. package/es/components/card-reader-sdk/src/types/index.d.ts +1 -0
  6. package/es/components/card-reader-sdk-cn/index.d.ts +96 -0
  7. package/es/components/card-reader-sdk-cn/index.js +1 -0
  8. package/es/components/card-reader-sdk-cn/src/henan/index.d.ts +47 -0
  9. package/es/components/card-reader-sdk-cn/src/henan/index.js +1 -0
  10. package/es/components/classification/index.d.ts +9 -0
  11. package/es/components/classification/src/components/search-filter/index.vue.d.ts +9 -0
  12. package/es/components/classification/src/components/set-classification/index.vue.d.ts +9 -0
  13. package/es/components/classification/src/index.vue.d.ts +9 -0
  14. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  15. package/es/components/field-editor/index.d.ts +1011 -0
  16. package/es/components/field-editor/index.js +1 -0
  17. package/es/components/field-editor/src/FieldEditor.vue.d.ts +1012 -0
  18. package/es/components/field-editor/src/FieldEditor.vue.js +1 -0
  19. package/es/components/field-editor/src/FieldEditor.vue2.js +1 -0
  20. package/es/components/field-editor/src/fields.d.ts +19 -0
  21. package/es/components/field-editor/src/fields.js +1 -0
  22. package/es/components/field-editor/src/types.d.ts +25 -0
  23. package/es/components/field-editor/src/types.js +1 -0
  24. package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
  25. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  26. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  27. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  28. package/es/components/field-set/src/utils/index.js +1 -1
  29. package/es/components/index.css +1 -1
  30. package/es/components/index.d.ts +2 -1
  31. package/es/components/index.js +1 -1
  32. package/es/components/quick-search/style/index.css +1 -1
  33. package/es/components/scale-view/src/hooks/use-component.d.ts +7 -7
  34. package/es/components/select-label/index.d.ts +7 -7
  35. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts +5 -1
  36. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -1
  37. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts +7 -7
  38. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -1
  39. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.d.ts +5 -1
  40. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +1 -1
  41. package/es/components/select-label/src/index.vue.d.ts +7 -7
  42. package/es/components/select-label/src/types/index.d.ts +4 -1
  43. package/es/components/select-label/style/index.css +1 -1
  44. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +9 -0
  45. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +8 -0
  46. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
  47. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +9 -0
  48. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +9 -0
  49. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +2 -7
  50. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
  51. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +8 -0
  52. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
  53. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +11 -7
  54. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +11 -7
  55. package/es/components/table-filter/src/types/index.d.ts +3 -0
  56. package/es/shared/package.json.js +1 -1
  57. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ import e from"./FieldEditor.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","FieldEditor.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as a,shallowRef as l,openBlock as r,createBlock as t,unref as i}from"vue";import s from"../../form-render/src/FormRender.vue.js";import{FIELD_EDITOR_FIELDS as u,HtmlType as o}from"./fields.js";import{pick as n}from"lodash-es";var m=e({__name:"FieldEditor",setup(e,{expose:m}){const d=a(0),E=a(),_=l(u.DEFAULT_FIELD_LIST),f=l({});function L(e){switch(e){case o.DIGITAL:return[u.DECIMAL_LENGTH_FIELD];case o.DATE:return[u.DATE_FORMAT_FIELD];case o.RADIO:case o.RADIO_BLOCK:case o.CHECKBOX:case o.CHECKBOX_BLOCK:case o.SELECT:case o.MULTI_SELECT:return[u.OPTION_FIELD];case o.INPUT:case o.TEXTAREA:default:return[]}}function c(e){_.value=[...u.DEFAULT_FIELD_LIST,...L(e)]}async function v({fieldKey:e,value:a}){var l;"html_type"===e&&(c(a),f.value=n(null==(l=E.value)?void 0:l.getFormValues(),u.DEFAULT_FIELD_LIST.map((e=>e.val_key))),d.value++)}const F={"*"({field:e}){!e.elem_width&&(e.elem_width=12)}};return m({setField(e){c(e.html_type),f.value=e,d.value++},getField(){var e;return null==(e=E.value)?void 0:e.getFormValues()},getFormRef:()=>E.value}),(e,a)=>(r(),t(s,{key:d.value,size:"small",ref_key:"formRenderRef",ref:E,"field-list":i(_),"initial-data":i(f),"field-visitor":F,onFormChange:v,consumer:""},null,8,["field-list","initial-data"]))}});export{m as default};
@@ -0,0 +1,19 @@
1
+ import { FieldItem } from '../../../components/form-render';
2
+ export declare enum HtmlType {
3
+ INPUT = "INPUT",
4
+ TEXTAREA = "TEXTAREA",
5
+ DIGITAL = "DIGITAL",
6
+ DATE = "DATE",
7
+ RADIO = "RADIO",
8
+ RADIO_BLOCK = "RADIO_BLOCK",
9
+ CHECKBOX = "CHECKBOX",
10
+ CHECKBOX_BLOCK = "CHECKBOX_BLOCK",
11
+ SELECT = "SELECT",
12
+ MULTI_SELECT = "MULTI_SELECT"
13
+ }
14
+ export declare const FIELD_EDITOR_FIELDS: Readonly<{
15
+ readonly DATE_FORMAT_FIELD: FieldItem;
16
+ readonly DECIMAL_LENGTH_FIELD: FieldItem;
17
+ readonly OPTION_FIELD: FieldItem;
18
+ readonly DEFAULT_FIELD_LIST: FieldItem[];
19
+ }>;
@@ -0,0 +1 @@
1
+ var l,e,a,d,o,n,t,i,w,u,g,v,y,C,L,_,T,B,E,c,m,I,x,s,O,p,A,h,D,H=(l=>(l.INPUT="INPUT",l.TEXTAREA="TEXTAREA",l.DIGITAL="DIGITAL",l.DATE="DATE",l.RADIO="RADIO",l.RADIO_BLOCK="RADIO_BLOCK",l.CHECKBOX="CHECKBOX",l.CHECKBOX_BLOCK="CHECKBOX_BLOCK",l.SELECT="SELECT",l.MULTI_SELECT="MULTI_SELECT",l))(H||{});const M={open:{describe:(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.351"))||"是",value:"1"},close:{describe:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.352"))||"否",value:"0"}},k=[{text:(null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.293"))||"文本框",value:"INPUT"},{text:(null==(d=window.getLanguageByCode)?void 0:d.call(window,"10010.1.564"))||"文本域",value:"TEXTAREA"},{text:(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.292"))||"数字框",value:"DIGITAL"},{text:(null==(n=window.getLanguageByCode)?void 0:n.call(window,"10010.1.74"))||"日期",value:"DATE"},{text:(null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.565"))||"横向单选",value:"RADIO"},{text:(null==(i=window.getLanguageByCode)?void 0:i.call(window,"10010.1.566"))||"纵向单选",value:"RADIO_BLOCK"},{text:(null==(w=window.getLanguageByCode)?void 0:w.call(window,"10010.1.567"))||"横向多选",value:"CHECKBOX"},{text:(null==(u=window.getLanguageByCode)?void 0:u.call(window,"10010.1.568"))||"纵向多选",value:"CHECKBOX_BLOCK"},{text:(null==(g=window.getLanguageByCode)?void 0:g.call(window,"10010.1.294"))||"下拉框",value:"SELECT"},{text:(null==(v=window.getLanguageByCode)?void 0:v.call(window,"10010.1.569"))||"下拉多选框",value:"MULTI_SELECT"}],r=[{text:"1/3",value:4},{text:"2/3",value:8},{text:"1/4",value:3},{text:"3/4",value:9},{text:"1/6",value:2},{text:"5/6",value:10},{text:"1/8",value:1.5},{text:"7/8",value:10.5},{text:(null==(y=window.getLanguageByCode)?void 0:y.call(window,"10010.1.30"))||"半行",value:6},{text:(null==(C=window.getLanguageByCode)?void 0:C.call(window,"10010.1.29"))||"整行",value:12}],N=[{text:(null==(L=window.getLanguageByCode)?void 0:L.call(window,"10010.1.548"))||"年-月-日 时:分:秒",value:"yyyy-MM-dd HH:mm:ss"},{text:(null==(_=window.getLanguageByCode)?void 0:_.call(window,"10010.1.549"))||"年-月-日 时:分",value:"yyyy-MM-dd HH:mm"},{text:(null==(T=window.getLanguageByCode)?void 0:T.call(window,"10010.1.550"))||"年-月-日",value:"yyyy-MM-dd"},{text:(null==(B=window.getLanguageByCode)?void 0:B.call(window,"10010.1.551"))||"年-月",value:"yyyy-MM"},{text:"月-日 时-分",value:"MM-dd HH:mm"},{text:(null==(E=window.getLanguageByCode)?void 0:E.call(window,"10010.1.553"))||"月-日",value:"MM-dd"},{text:(null==(c=window.getLanguageByCode)?void 0:c.call(window,"10010.1.554"))||"时:分:秒",value:"HH:mm:ss"},{text:(null==(m=window.getLanguageByCode)?void 0:m.call(window,"10010.1.555"))||"时:分",value:"HH:mm"}],U={alias:(null==(I=window.getLanguageByCode)?void 0:I.call(window,"10010.1.541"))||"日期格式",val_key:"date_format",html_type:"SELECT",option:N},K={alias:"选项",val_key:"option",html_type:"COMBINATION",jsonCombination:!1,minGroupNum:0,children:[{elem_width:6,alias:"文本",val_key:"text",html_type:"INPUT",is_null:"0"},{elem_width:6,alias:(null==(x=window.getLanguageByCode)?void 0:x.call(window,"10010.1.22"))||"值",val_key:"value",html_type:"INPUT",is_null:"0"}]},P=[{alias:"id",val_key:"id",html_type:"TEXT",decoratorProps:{style:{display:"none"}}},{alias:(null==(s=window.getLanguageByCode)?void 0:s.call(window,"10010.1.530"))||"字段键名",val_key:"key",html_type:"INPUT",remark:"数据库字段键名,不填写时由系统生成,填写则以填写为准"},{alias:(null==(O=window.getLanguageByCode)?void 0:O.call(window,"10010.1.16"))||"是否必填",val_key:"is_null",html_type:"SWITCH",...M},{alias:(null==(p=window.getLanguageByCode)?void 0:p.call(window,"10010.1.529"))||"字段标题",val_key:"name",html_type:"INPUT"},{alias:(null==(A=window.getLanguageByCode)?void 0:A.call(window,"10010.1.532"))||"字段类型",val_key:"html_type",html_type:"SELECT",option:k,is_null:"0"},{alias:"字段默认值",val_key:"default_val",html_type:"INPUT"},{alias:(null==(h=window.getLanguageByCode)?void 0:h.call(window,"10010.1.534"))||"字段问号提示",val_key:"remark",html_type:"INPUT"},{alias:(null==(D=window.getLanguageByCode)?void 0:D.call(window,"10010.1.13"))||"宽度",val_key:"elem_width",html_type:"SELECT",option:r}],S=Object.freeze({DATE_FORMAT_FIELD:U,DECIMAL_LENGTH_FIELD:{alias:"小数位数",val_key:"decimal_length",html_type:"INPUT",remark:"小数位数,默认为0"},OPTION_FIELD:K,DEFAULT_FIELD_LIST:P});export{S as FIELD_EDITOR_FIELDS,H as HtmlType};
@@ -0,0 +1,25 @@
1
+ import { AnyObject } from '../../../shared/types';
2
+ import { FormRenderExpose } from '../../../components/form-render';
3
+ export declare namespace FieldEditor {
4
+ type Expose = {
5
+ setField: (field: AnyObject) => void;
6
+ getField: () => Field;
7
+ getFormRef: () => FormRenderExpose | undefined;
8
+ };
9
+ type Field = {
10
+ html_type: string;
11
+ } & Partial<{
12
+ id: string;
13
+ option: {
14
+ text: string;
15
+ value: string;
16
+ }[];
17
+ name: string;
18
+ elem_width: number;
19
+ val_key: string;
20
+ remark: string;
21
+ default_val: string;
22
+ is_null: string;
23
+ date_format: string;
24
+ }>;
25
+ }
@@ -532,9 +532,9 @@ declare const _default: import("vue").DefineComponent<{
532
532
  }>;
533
533
  developMode: boolean;
534
534
  draggable: boolean;
535
+ isHighlightRow: boolean;
535
536
  idx: number;
536
537
  isHighlight: boolean;
537
- isHighlightRow: boolean;
538
538
  isFieldSet: boolean;
539
539
  fieldDescribeMode: "column" | "tooltip";
540
540
  hideExpressionOption: AnyObject[];
@@ -561,9 +561,9 @@ declare const _default: import("vue").DefineComponent<{
561
561
  }>;
562
562
  developMode: boolean;
563
563
  draggable: boolean;
564
+ isHighlightRow: boolean;
564
565
  idx: number;
565
566
  isHighlight: boolean;
566
- isHighlightRow: boolean;
567
567
  isFieldSet: boolean;
568
568
  fieldDescribeMode: "column" | "tooltip";
569
569
  hideExpressionOption: AnyObject[];
@@ -720,9 +720,9 @@ declare const _default: import("vue").DefineComponent<{
720
720
  }>;
721
721
  developMode: boolean;
722
722
  draggable: boolean;
723
+ isHighlightRow: boolean;
723
724
  idx: number;
724
725
  isHighlight: boolean;
725
- isHighlightRow: boolean;
726
726
  isFieldSet: boolean;
727
727
  fieldDescribeMode: "column" | "tooltip";
728
728
  hideExpressionOption: AnyObject[];
@@ -383,9 +383,9 @@ declare const _default: import("vue").DefineComponent<{
383
383
  }>;
384
384
  developMode: boolean;
385
385
  draggable: boolean;
386
+ isHighlightRow: boolean;
386
387
  idx: number;
387
388
  isHighlight: boolean;
388
- isHighlightRow: boolean;
389
389
  isFieldSet: boolean;
390
390
  fieldDescribeMode: "column" | "tooltip";
391
391
  hideExpressionOption: AnyObject[];
@@ -1 +1 @@
1
- import{isArray as e,isObject as t}from"lodash-es";import{IhoTableRowGroupSequence as i}from"../../../iho-table/src/constants/index.js";import{COLOR_MAP as n}from"../constants/index.js";import{WIDGET_TYPE as o}from"../constants/filter.js";function s(e,t,i){let n=90;const o={};switch(e.type){case"text":0===t&&["title","name"].includes(e.field)&&(n=120,Object.assign(o,{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"})),"seq"===e.field&&(n=40);break;case"checkbox":n=60;break;case"select":n=80;break;case"input":n=100}if(i){const t=Object.keys(i);t.length>0&&t.includes(e.field)&&i[e.field]&&(n=i[e.field])}return Object.assign(o,{flex:`1 0 ${n}px`,minWidth:`${n}px`}),o}function r(e,t){return["editable","required","show","sortDirection","fixedWay","isSearch","isSum","isAvg"].includes(t)&&(e[`${t}Disable`]||e[`${t}Disabled`])||["sort"].includes(t)&&(1==e.notParticipatingSort||e.sortDisabled)}function c(n,o,s=(e=>e.name)){const r=o.map((e=>s(e)));return i.some((i=>{const o=n[i];if(!e(o))return!0;o.forEach((i=>{if(!e(i.list)||!i.list.length)return;const n=[];let o=null;i.list.forEach(((e,s)=>{const c=function(e,i,n){return i.findIndex((i=>i!==n&&(t(i)?i.fieldName:i)===e))}(e,r,o);~c&&(n.push(r[c]),0===s?r.splice(c,1,o={fieldName:i.title,children:n}):r.splice(c,1))}))}))})),r}function l(e){return void 0===e.draggable||e.draggable}function a(t){return e(t)?!t.some((e=>!e.draggable)):t.draggable}function f(e){e.style="font"===e.colorScope?{color:e.color}:{background:e.color,color:"#fff"},e.result=n[e.color]}function d(e){const{isShowSearch:t,filterExplicit:i,type:n,optionInfo:s={},dataType:r}=e,c=Reflect.has(s,"manualMapping"),l=n&&[o.DATE,o.DATETIME,o.SELECT].includes(n),a=r===o.DATETIME||c&&r&&[o.TEXT,o.NUMBER].includes(r);return t&&i&&(l||a)}export{c as getGroupTree,r as isDisable,l as isDraggable,a as isDraggableItem,d as isShowExplicitRequired,f as setColorInfo,s as setStyle};
1
+ import{isArray as e,isObject as t}from"lodash-es";import{IhoTableRowGroupSequence as i}from"../../../iho-table/src/constants/index.js";import{COLOR_MAP as n}from"../constants/index.js";import{WIDGET_TYPE as o}from"../constants/filter.js";function s(e,t,i){let n=90;const o={};switch(e.type){case"text":0===t&&["title","name"].includes(e.field)&&(n=120,Object.assign(o,{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"})),"seq"===e.field&&(n=40);break;case"checkbox":n=60;break;case"select":n=80;break;case"input":n=100}if(i){const t=Object.keys(i);t.length>0&&t.includes(e.field)&&i[e.field]&&(n=i[e.field])}return Object.assign(o,{flex:`1 0 ${n}px`,minWidth:`${n}px`}),o}function r(e,t){return"sortDirection"===t?e[`${t}Disable`]||e[`${t}Disabled`]||1==e.notParticipatingSort||e.sortDisabled:["editable","required","show","fixedWay","isSearch","isSum","isAvg"].includes(t)&&(e[`${t}Disable`]||e[`${t}Disabled`])||["sort"].includes(t)&&(1==e.notParticipatingSort||e.sortDisabled)}function l(n,o,s=(e=>e.name)){const r=o.map((e=>s(e)));return i.some((i=>{const o=n[i];if(!e(o))return!0;o.forEach((i=>{if(!e(i.list)||!i.list.length)return;const n=[];let o=null;i.list.forEach(((e,s)=>{const l=function(e,i,n){return i.findIndex((i=>i!==n&&(t(i)?i.fieldName:i)===e))}(e,r,o);~l&&(n.push(r[l]),0===s?r.splice(l,1,o={fieldName:i.title,children:n}):r.splice(l,1))}))}))})),r}function c(e){return void 0===e.draggable||e.draggable}function a(t){return e(t)?!t.some((e=>!e.draggable)):t.draggable}function f(e){e.style="font"===e.colorScope?{color:e.color}:{background:e.color,color:"#fff"},e.result=n[e.color]}function d(e){const{isShowSearch:t,filterExplicit:i,type:n,optionInfo:s={},dataType:r}=e,l=Reflect.has(s,"manualMapping"),c=n&&[o.DATE,o.DATETIME,o.SELECT].includes(n),a=r===o.DATETIME||l&&r&&[o.TEXT,o.NUMBER].includes(r);return t&&i&&(c||a)}export{l as getGroupTree,r as isDisable,c as isDraggable,a as isDraggableItem,d as isShowExplicitRequired,f as setColorInfo,s as setStyle};