cnhis-design-vue 3.2.12-release.0 → 3.2.13-beta.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/ai-chat/index.d.ts +66 -0
- package/es/components/ai-chat/src/Index.vue.d.ts +68 -2
- package/es/components/ai-chat/src/Index.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatCard.d.ts +24 -0
- package/es/components/ai-chat/src/components/ChatCard.js +1 -0
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +48 -0
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatMain.js +1 -1
- package/es/components/ai-chat/src/components/ChatPrompt.vue.d.ts +45 -0
- package/es/components/ai-chat/src/components/ChatPrompt.vue.js +1 -0
- package/es/components/ai-chat/src/components/ChatPrompt.vue2.js +1 -0
- package/es/components/ai-chat/src/types/index.d.ts +11 -1
- package/es/components/ai-chat/style/index.css +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +29 -0
- 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/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-table/index.d.ts +29 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +30 -0
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/crossHeaderPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/crossHeaderPlugin.js +1 -0
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.d.ts +5 -5
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +15 -0
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/template-render/index.d.ts +60 -0
- package/es/components/template-render/index.js +1 -0
- package/es/components/template-render/src/TemplateRender.vue.d.ts +62 -0
- package/es/components/template-render/src/TemplateRender.vue.js +1 -0
- package/es/components/template-render/src/TemplateRender.vue2.js +1 -0
- package/es/components/template-render/src/components/Box.vue.d.ts +44 -0
- package/es/components/template-render/src/components/Box.vue.js +1 -0
- package/es/components/template-render/src/components/Box.vue2.js +1 -0
- package/es/components/template-render/src/components/Button.vue.d.ts +49 -0
- package/es/components/template-render/src/components/Button.vue.js +1 -0
- package/es/components/template-render/src/components/Button.vue2.js +1 -0
- package/es/components/template-render/src/components/Divider.vue.d.ts +26 -0
- package/es/components/template-render/src/components/Divider.vue.js +1 -0
- package/es/components/template-render/src/components/Divider.vue2.js +1 -0
- package/es/components/template-render/src/components/Field.vue.d.ts +56 -0
- package/es/components/template-render/src/components/Field.vue.js +1 -0
- package/es/components/template-render/src/components/Field.vue2.js +1 -0
- package/es/components/template-render/src/components/FieldGroup.vue.d.ts +50 -0
- package/es/components/template-render/src/components/FieldGroup.vue.js +1 -0
- package/es/components/template-render/src/components/FieldGroup.vue2.js +1 -0
- package/es/components/template-render/src/components/Image.vue.d.ts +52 -0
- package/es/components/template-render/src/components/Image.vue.js +1 -0
- package/es/components/template-render/src/components/Image.vue2.js +1 -0
- package/es/components/template-render/src/components/Label.vue.d.ts +42 -0
- package/es/components/template-render/src/components/Label.vue.js +1 -0
- package/es/components/template-render/src/components/Label.vue2.js +1 -0
- package/es/components/template-render/src/components/Row.vue.d.ts +47 -0
- package/es/components/template-render/src/components/Row.vue.js +1 -0
- package/es/components/template-render/src/components/Row.vue2.js +1 -0
- package/es/components/template-render/src/components/Slot.d.ts +27 -0
- package/es/components/template-render/src/components/Slot.js +1 -0
- package/es/components/template-render/src/components/Text.vue.d.ts +40 -0
- package/es/components/template-render/src/components/Text.vue.js +1 -0
- package/es/components/template-render/src/components/Text.vue2.js +1 -0
- package/es/components/template-render/src/components/index.d.ts +529 -0
- package/es/components/template-render/src/components/index.js +1 -0
- package/es/components/template-render/src/constants/index.d.ts +16 -0
- package/es/components/template-render/src/constants/index.js +1 -0
- package/es/components/template-render/src/hooks/useCommon.d.ts +10 -0
- package/es/components/template-render/src/hooks/useCommon.js +1 -0
- package/es/components/template-render/src/utils/index.d.ts +6 -0
- package/es/components/template-render/src/utils/index.js +1 -0
- package/es/components/template-render/style/index.css +1 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -0,0 +1,47 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { AnyObject } from '../../../../shared/types';
|
3
|
+
import { getComponent } from './index';
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
5
|
+
config: {
|
6
|
+
default: () => {};
|
7
|
+
type: PropType<AnyObject>;
|
8
|
+
};
|
9
|
+
data: {
|
10
|
+
default: () => {};
|
11
|
+
type: PropType<AnyObject>;
|
12
|
+
};
|
13
|
+
}, {
|
14
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
15
|
+
config: {
|
16
|
+
default: () => {};
|
17
|
+
type: PropType<AnyObject>;
|
18
|
+
};
|
19
|
+
data: {
|
20
|
+
default: () => {};
|
21
|
+
type: PropType<AnyObject>;
|
22
|
+
};
|
23
|
+
}>> & {}>>;
|
24
|
+
setting: import("vue").ComputedRef<any>;
|
25
|
+
dataComp: import("vue").ComputedRef<any[]>;
|
26
|
+
handleModuleClick: (data: AnyObject) => void;
|
27
|
+
showChildrens: import("vue").ComputedRef<any>;
|
28
|
+
isDisplayMatch: import("vue").ComputedRef<any>;
|
29
|
+
containerColStyle: import("vue").ComputedRef<any>;
|
30
|
+
showPercentage: (value: string) => string | undefined;
|
31
|
+
showColStyles: (colItem: any, index: number) => any;
|
32
|
+
componentsFieldList: (children: AnyObject[], _data: any) => AnyObject[];
|
33
|
+
getComponent: typeof getComponent;
|
34
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
35
|
+
config: {
|
36
|
+
default: () => {};
|
37
|
+
type: PropType<AnyObject>;
|
38
|
+
};
|
39
|
+
data: {
|
40
|
+
default: () => {};
|
41
|
+
type: PropType<AnyObject>;
|
42
|
+
};
|
43
|
+
}>>, {
|
44
|
+
data: AnyObject;
|
45
|
+
config: AnyObject;
|
46
|
+
}>;
|
47
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./Row.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","Row.vue"]]);export{o as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as t,computed as e,unref as n,openBlock as o,createElementBlock as i,Fragment as r,renderList as l,normalizeClass as a,normalizeStyle as s,withModifiers as u,createBlock as c,resolveDynamicComponent as d,createSlots as f,withCtx as p,createCommentVNode as g,renderSlot as m,normalizeProps as y,guardReactiveProps as v}from"vue";import{isFactor as h,getCurText as b,getRealWidth as x,transNumberToPx as C,findValueIsEmpty as k}from"../utils/index.js";import{getComponent as j}from"./index.js";import{useCommon as w}from"../hooks/useCommon.js";const _=["onClick"];var z=t({__name:"Row",props:{config:{default:()=>({}),type:Object},data:{default:()=>({}),type:Object}},setup(t){const z=t,{setting:M,dataComp:S,handleModuleClick:N}=w(z),O=e((()=>{var t;return(null==(t=z.config)?void 0:t.childrens)||[]})),P=e((()=>{const{displayCondition:t=[]}=M.value.advancedConfig||{};return!t.length||t.some((t=>h(t,b(z.data[t.field_key]))))})),$=e((()=>{const{containerStyle:t={},rowProps:e={},unitConfig:n={}}=M.value||{},o=x(t,n),i={"justify-content":e.justify,"align-items":e.align};return{"font-size":"14px",...C(t),...i,width:o,"box-sizing":"border-box"}}));function H(t){var e;const n=(null==(e=M.value)?void 0:e.columnScale)||"";if(n){const e=n.split(":").reduce(((t,e)=>t+Number(e)),0)||24,o=100*Number(t)/e,i=Math.pow(10,4);return Math.floor(o*i)/i+"%"}}function R(t,e){const{colStyle:n={},rowProps:o={}}=M.value||{},i={};e!==O.value.length-1&&(i["padding-right"]=C(o).gutter);return{flex:t.span,width:H(t.span),...i,...n,"box-sizing":"border-box"}}function q(t,e){return t.filter((t=>{const n={config:z.config,data:z.data};return t.parentConfig=n,!t.setting.emptyHide||k(t,e)}))}return(t,e)=>n(P)?(o(!0),i(r,{key:0},l(n(S),((e,h)=>(o(),i("div",{class:a(["c-template-render__flex",n(M).containerClass]),key:h,style:s(n($)),onClick:u((()=>n(N)(e)),["stop"])},[(o(!0),i(r,null,l(n(O),((a,u)=>(o(),i("div",{key:u,style:s(R(a,u))},[(o(!0),i(r,null,l(q(a.children,e),((i,r)=>(o(),c(d(n(j)(i.type)),{key:r,config:i,data:e},f({_:2},[l(t.$slots,((e,n)=>({name:n,fn:p((e=>[g(" 动态插槽 "),m(t.$slots,n,y(v(e)))]))})))]),1032,["config","data"])))),128))],4)))),128))],14,_)))),128)):g("v-if",!0)}});export{z as default};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { AnyObject } from '../../../../shared/types';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
config: {
|
5
|
+
default: () => {};
|
6
|
+
type: PropType<AnyObject>;
|
7
|
+
};
|
8
|
+
data: {
|
9
|
+
default: () => {};
|
10
|
+
type: PropType<AnyObject>;
|
11
|
+
};
|
12
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "button-click"[], "button-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
13
|
+
config: {
|
14
|
+
default: () => {};
|
15
|
+
type: PropType<AnyObject>;
|
16
|
+
};
|
17
|
+
data: {
|
18
|
+
default: () => {};
|
19
|
+
type: PropType<AnyObject>;
|
20
|
+
};
|
21
|
+
}>> & {
|
22
|
+
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
23
|
+
}, {
|
24
|
+
data: AnyObject;
|
25
|
+
config: AnyObject;
|
26
|
+
}>;
|
27
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as t,inject as e,computed as o,createVNode as n}from"vue";import{InjectionTemplateRender as s}from"../constants/index.js";import{getRealWidth as i,transNumberToPx as r}from"../utils/index.js";import{useCommon as l}from"../hooks/useCommon.js";var a=t({name:"TemplateSlot",inheritAttrs:!1,props:{config:{default:()=>({}),type:Object},data:{default:()=>({}),type:Object}},emits:["button-click"],setup(t,{attrs:a,slots:u}){const{setting:c,handleModuleClick:p}=l(t),{renders:d}=e(s),m=o((()=>{const{containerStyle:t={},colStyle:e={},unitConfig:o={}}=c.value||{},n=i(t,o);return{"font-size":"14px",...r(t),...r(e),width:n,"box-sizing":"border-box"}}));function f(){const t=d[c.value.slotKey];return t||null}function v(e){e.stopPropagation(),p(t.data)}return()=>n("div",{class:c.value.containerClass,style:m.value,onClick:v},[f()])}});export{a as default};
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { AnyObject } from '../../../../shared/types';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
config: {
|
5
|
+
default: () => {};
|
6
|
+
type: PropType<AnyObject>;
|
7
|
+
};
|
8
|
+
data: {
|
9
|
+
default: () => {};
|
10
|
+
type: PropType<AnyObject>;
|
11
|
+
};
|
12
|
+
}, {
|
13
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
14
|
+
config: {
|
15
|
+
default: () => {};
|
16
|
+
type: PropType<AnyObject>;
|
17
|
+
};
|
18
|
+
data: {
|
19
|
+
default: () => {};
|
20
|
+
type: PropType<AnyObject>;
|
21
|
+
};
|
22
|
+
}>> & {}>>;
|
23
|
+
setting: import("vue").ComputedRef<any>;
|
24
|
+
handleModuleClick: (data: AnyObject) => void;
|
25
|
+
containerTextStyle: import("vue").ComputedRef<any>;
|
26
|
+
showClass: import("vue").ComputedRef<any>;
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
28
|
+
config: {
|
29
|
+
default: () => {};
|
30
|
+
type: PropType<AnyObject>;
|
31
|
+
};
|
32
|
+
data: {
|
33
|
+
default: () => {};
|
34
|
+
type: PropType<AnyObject>;
|
35
|
+
};
|
36
|
+
}>>, {
|
37
|
+
data: AnyObject;
|
38
|
+
config: AnyObject;
|
39
|
+
}>;
|
40
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./Text.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","Text.vue"]]);export{t as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as e,computed as t,openBlock as o,createElementBlock as r,normalizeClass as a,unref as n,normalizeStyle as s,withModifiers as i,toDisplayString as l}from"vue";import{getRealWidth as u,transNumberToPx as p}from"../utils/index.js";import{useCommon as d}from"../hooks/useCommon.js";var c=e({__name:"Text",props:{config:{default:()=>({}),type:Object},data:{default:()=>({}),type:Object}},setup(e){const c=e,{setting:f,handleModuleClick:m}=d(c),x=t((()=>{const{containerStyle:e={},style:t={},unitConfig:o={}}=f.value||{},r=u(e,o);return{"font-size":"14px",...p(e),...p(t),width:r,"box-sizing":"border-box"}})),b=t((()=>{let e=f.value.containerClass||"";return f.value.prefixBar&&(e=`c-template-render__bar ${e}`),e}));return(t,u)=>(o(),r("div",{class:a(n(b)),style:s(n(x)),onClick:u[0]||(u[0]=i((()=>n(m)(e.data)),["stop"]))},l(n(f).text),7))}});export{c as default};
|