cnhis-design-vue 3.2.9-beta.23 → 3.2.9-beta.27
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/README.md +87 -87
- package/es/components/button-print/index.d.ts +30 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +30 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/utils/print.d.ts +2 -2
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +87 -0
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +87 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +87 -0
- package/es/components/classification/src/index.vue.d.ts +87 -0
- package/es/components/date-picker/index.d.ts +29 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +30 -1
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
- package/es/components/field-set/index.d.ts +7 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +62 -4
- package/es/components/field-set/src/FieldColor.vue2.js +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -4
- package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +8 -6
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/Index.vue.d.ts +7 -1
- package/es/components/field-set/src/Index.vue2.js +1 -1
- package/es/components/field-set/src/TableStyle.vue2.js +1 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +29 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +58 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +29 -0
- package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
- package/es/components/field-set/src/utils/index.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/iho-chat/index.d.ts +29 -0
- package/es/components/iho-chat/src/Index.vue.d.ts +29 -0
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +29 -0
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +29 -0
- package/es/components/iho-chat/src/hooks/useSession.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +29 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +29 -0
- package/es/components/index.css +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +29 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +58 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +58 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +58 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +116 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +116 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +1 -1
- package/es/shared/assets/img/ai__avatar.png.js +1 -1
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -193,6 +193,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
193
193
|
resetKey: import("vue").Ref<number>;
|
194
194
|
keyword: import("vue").Ref<string>;
|
195
195
|
tableBodyRef: import("vue").Ref<HTMLDivElement | undefined>;
|
196
|
+
tableRef: import("vue").Ref<any>;
|
196
197
|
newFields: import("vue").Ref<AnyObject[]>;
|
197
198
|
defaultColumns: FieldSetColumnItem[];
|
198
199
|
otherColumns: FieldSetColumnItem[];
|
@@ -207,6 +208,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
207
208
|
isShow?: boolean | undefined;
|
208
209
|
contentRender?: ((column: AnyObject, row: AnyObject) => VNodeChild) | undefined;
|
209
210
|
}[]>;
|
211
|
+
itemWidth: import("vue").ComputedRef<string>;
|
210
212
|
fieldList: import("vue").ComputedRef<AnyObject[]>;
|
211
213
|
hasFieldDescribe: import("vue").ComputedRef<boolean>;
|
212
214
|
rowProps: {
|
@@ -714,12 +716,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
714
716
|
}>;
|
715
717
|
developMode: boolean;
|
716
718
|
draggable: boolean;
|
717
|
-
isHighlightRow: boolean;
|
718
|
-
idx: number;
|
719
|
-
isHighlight: boolean;
|
720
|
-
isFieldSet: boolean;
|
721
719
|
fieldDescribeMode: "column" | "tooltip";
|
720
|
+
isFieldSet: boolean;
|
722
721
|
hideExpressionOption: AnyObject[];
|
722
|
+
idx: number;
|
723
|
+
isHighlight: boolean;
|
724
|
+
isHighlightRow: boolean;
|
723
725
|
}>;
|
724
726
|
isArray: {
|
725
727
|
(value?: any): value is any[];
|
@@ -825,6 +827,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
825
827
|
}, {
|
826
828
|
primaryKey: string;
|
827
829
|
type: string;
|
830
|
+
showSearch: boolean;
|
828
831
|
isEdit: boolean;
|
829
832
|
fields: Partial<{
|
830
833
|
[key: string]: any;
|
@@ -848,10 +851,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
848
851
|
showSeq: boolean;
|
849
852
|
developMode: boolean;
|
850
853
|
footerFlag: boolean;
|
851
|
-
fieldDescribeMode: "column" | "tooltip";
|
852
|
-
showSearch: boolean;
|
853
854
|
customColumns: FieldSetColumnItem[];
|
854
855
|
showSortPriority: boolean;
|
855
856
|
showHeadFilter: boolean;
|
857
|
+
fieldDescribeMode: "column" | "tooltip";
|
856
858
|
}>;
|
857
859
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as l,computed as
|
1
|
+
import{defineComponent as e,ref as l,computed as t,reactive as i,toRef as o,watch as d,openBlock as a,createElementBlock as r,createBlock as s,unref as n,withKeys as u,withModifiers as c,createCommentVNode as f,createElementVNode as h,Fragment as p,renderList as m,normalizeStyle as y,withCtx as v,createTextVNode as b,toDisplayString as g,createVNode as x,normalizeClass as k,mergeProps as w,renderSlot as S}from"vue";import{NInput as C,NCheckbox as _,NTooltip as A,NIcon as W,NPopconfirm as E,NButton as H}from"naive-ui";import D from"../../../shared/components/VueDraggable/src/vuedraggable.js";import F from"./components/table-row.vue.js";import{isArray as M,cloneDeep as P,isString as R,omit as N}from"lodash-es";import{isDisable as j,setStyle as B,isDraggableItem as V,isDraggable as O,getGroupTree as q}from"./utils/index.js";import{uuidGenerator as I}from"../../../shared/utils/index.js";import{HelpCircleSharp as K}from"@vicons/ionicons5";const U={class:"main-wrapper"},T={class:"main-wrapper__table-header"},L=h("span",null,"数值越小,优先级越高",-1),G=["tabindex"],$={key:1,class:"main-wrapper__table-footer"};var z=e({__name:"FieldSet",props:{fields:{type:Array,default:()=>[]},footerFlag:{type:Boolean,default:!0},type:{type:String,default:"old"},isEdit:{type:Boolean,default:!1},showColumnNames:{type:Array},groupSetting:{type:Object},customColumns:{type:Array,default:()=>[]},showSeq:{type:Boolean,default:!1},showSearch:{type:Boolean,default:!1},showSortPriority:{type:Boolean,default:!1},showHeadFilter:{type:Boolean,default:!1},fieldShowMaxValue:{type:Number},rowDraggable:{type:Boolean,default:!0},fieldDescribeMode:{type:String,default:"tooltip"},developMode:{type:Boolean},columnWidthProps:{type:Object},hideExpressionConfig:{type:Object},primaryKey:{type:String,default:"id"},titleRender:{type:Function}},emits:["save","close","reset"],setup(e,{expose:z,emit:J}){const Q=e,X={sid:"id",columnName:"name",isShow:"show",isSort:"sort",isFixed:"fixedWay",colWidth:"columnWidth"},Y=l(Date.now()),Z=l(""),ee=l(),le=l(),te=l([]),ie=[{title:"所有字段",type:"text",field:"title"},{title:"显示",type:"checkbox",checkedAll:!1,disabledAll:!!Q.fieldShowMaxValue,field:"show",fieldShowMaxValue:Q.fieldShowMaxValue},{title:"编辑",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"editable"},{title:"必填",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"required"},{title:"排序",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"sort"},{title:"加粗",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"bold"},{title:"默认排序",type:"select",field:"sortDirection"},{title:"排序优先级",type:"select",field:"sortPriority"},{title:"固定",type:"select",field:"fixedWay"},{title:"自定义标题",type:"input",field:"alias"},{title:"列宽",type:"inputNumber",field:"columnWidth"},{title:"表头筛选",type:"checkbox",isHeadCheckHide:!0,field:"isShowHeaderFilter"},{title:"脱敏配置",type:"select",field:"hideExpression"}],oe=[{title:"搜索",type:"checkbox",isHeadCheckHide:!0,field:"isSearch"},{title:"求和",type:"checkbox",isHeadCheckHide:!0,field:"isSum"},{title:"平均值",type:"checkbox",isHeadCheckHide:!0,field:"isAvg"}],de=l([]),ae=t((()=>{var e;return(null==(e=le.value)?void 0:e.scrollWidth)?le.value.scrollWidth+"px":"auto"})),re=t((()=>te.value.flat())),se=t((()=>re.value.some((e=>e.feildDescribe)))),ne=i({columns:de,data:re,onUpdateChecked:function({checked:e,column:l}){const t=!e||be(l.field);l.checkedAll=!t},draggable:Q.rowDraggable,isFieldSet:!0,fieldDescribeMode:Q.fieldDescribeMode,developMode:Q.developMode,columnWidthProps:Q.columnWidthProps,hideExpressionOption:o(Q.hideExpressionConfig||{option:[]},"option"),primaryKey:o(Q,"primaryKey"),titleRender:Q.titleRender}),ue={keyword:Z.value,idx:0,startIdx:0},ce=()=>{J("save")},fe=()=>{J("close")};function he(){te.value=pe(),ve(),Y.value=Date.now(),J("reset")}function pe(){const e=P(Q.fields).map((e=>({...e,uuid:I()})));return Object.keys(X).forEach((l=>{e.forEach((e=>{var t;"old"==Q.type&&Reflect.has(e,l)&&("isFixed"==l?e.fixedWay=1==e[l]?"LEFT":2==e[l]?"RIGHT":"NONE":["isShow","isSort"].includes(l)&&"boolean"!=typeof l?e[X[l]]=1==e[l]:e[X[l]]=e[l],Reflect.deleteProperty(e,l)),e.columnWidth=+e.columnWidth||null,Reflect.has(e,"alias")||(e.alias=""),Reflect.has(e,"bold")||(e.bold=!1),e.draggable=!!O(e),M(null==(t=e.relation)?void 0:t.fieldList)&&e.relation.fieldList.forEach((e=>{1==e.isSearch&&(e.checked=!0)}))}))})),function(e){if(Q.groupSetting){return q(Q.groupSetting,e).reduce(((t,i)=>{const o=R(i)?e.find((e=>e.name===i)):l(i.children);return o&&t.push(o),t}),[])}return e;function l(t){const i=[];return t.forEach((t=>{if(t.children)i.push(...l(t.children));else{const l=e.find((e=>e.name===t));l&&i.push(l)}})),i}}(e)}function me(){const e=ue.keyword!==Z.value;let l=Z.value?re.value.findIndex(((l,t)=>{var i;if(null==(i=l.title)?void 0:i.includes(Z.value))return!!e||t>ue.idx})):0;-1!==l||e||(l=ue.startIdx),ee.value.scrollTop=52*l,Object.assign(ue,{keyword:Z.value,idx:l},e?{startIdx:l}:{})}function ye(e){var l;return!!Z.value&&(null==(l=e.title)?void 0:l.includes(Z.value))}function ve(){var e,l;de.value=P(ie),(null==(e=Q.showColumnNames)?void 0:e.length)&&(de.value=ie.concat(oe).filter((e=>{var l,t;return"title"===e.field||(null==(t=null==(l=Q.showColumnNames)?void 0:l.includes)?void 0:t.call(l,e.field))}))),(null==(l=Q.customColumns)?void 0:l.length)&&de.value.push(...Q.customColumns),"column"===Q.fieldDescribeMode&&se.value&&de.value.push({title:"字段描述",type:"text",field:"feildDescribe"}),Q.showSeq&&de.value.splice(1,0,{title:"排序",type:"text",field:"seq"}),de.value.forEach((e=>{if(e.isShow=function(e){var l,t;if(!(null==(l=Q.showColumnNames)?void 0:l.length)&&(["editable","required"].includes(e.field)&&!Q.isEdit||"sortPriority"===e.field&&!Q.showSortPriority||"isShowHeaderFilter"===e.field&&!Q.showHeadFilter||"hideExpression"===e.field&&!(null==(t=Q.hideExpressionConfig)?void 0:t.show)))return!1;return!0}(e),"checkbox"===e.type){const l=te.value.flat().every((l=>!Reflect.has(l,e.field)));e.checkedAll=!be(e.field)&&!l}}))}function be(e){return te.value.flat().some((l=>!j(l,e)&&!l[e]&&"0001"!=l.id))}function ge(e){return!!V(e.relatedContext.element)}return d([()=>Q.fields,()=>{var e;return null==(e=Q.showColumnNames)?void 0:e.length}],(([e,l])=>{e.length>0&&(te.value=pe(),ve())}),{immediate:!0,deep:!0}),z({getTableFields:function(){let e=[];return e="old"==Q.type?re.value.map(((e,l)=>N({...e,field:e.name,visible:e.show,sequence:l,sortable:e.sort,title:e.alias,fixed:e.fixedWay,minWidth:e.columnWidth},["name","show","sort","alias","fixedWay","columnWidth"]))):re.value,e.map((e=>N(e,["uuid"])))}}),(l,t)=>(a(),r("div",U,[e.showSearch?(a(),s(n(C),{key:0,class:"main-wrapper__search-wrapper",value:Z.value,"onUpdate:value":t[0]||(t[0]=e=>Z.value=e),valueModifiers:{trim:!0},placeholder:"请输入字段标题",onKeydown:u(c(me,["prevent"]),["enter"])},null,8,["value","onKeydown"])):f("v-if",!0),h("div",{class:"main-wrapper__table",ref_key:"tableRef",ref:le},[h("div",T,[(a(!0),r(p,null,m(de.value,((l,t)=>(a(),r(p,{key:t},[l.isShow?(a(),r("span",{key:0,class:"table-cell",style:y(n(B)(l,t,e.columnWidthProps))},[h("span",null,["checkbox"!==l.type||l.isHeadCheckHide?(a(),r(p,{key:1},[b(g(l.title),1)],64)):(a(),s(n(_),{key:0,checked:l.checkedAll,"onUpdate:checked":[e=>l.checkedAll=e,e=>{return t=e,i=l.field,void re.value.forEach((e=>{j(e,i)||(e[i]=t)}));var t,i}],disabled:l.disabledAll},{default:v((()=>[b(g(l.title),1)])),_:2},1032,["checked","onUpdate:checked","disabled"])),"sortPriority"===l.field?(a(),s(n(A),{key:2,trigger:"hover"},{trigger:v((()=>[x(n(W),{component:n(K),style:{top:"2px"}},null,8,["component"])])),default:v((()=>[L])),_:1})):f("v-if",!0)])],4)):f("v-if",!0)],64)))),128))]),h("div",{class:"main-wrapper__table-body",ref_key:"tableBodyRef",ref:ee},[(a(),s(n(D),{modelValue:te.value,"onUpdate:modelValue":t[1]||(t[1]=e=>te.value=e),animation:"150","item-key":"id",filter:".disabled",draggable:".item",move:ge,disabled:!e.rowDraggable,key:Y.value},{item:v((({element:e,index:l})=>[e.hide?f("v-if",!0):(a(),r("div",{key:0,class:k(["item",n(V)(e)?"":"disabled"]),tabindex:l,style:y({width:n(ae)})},[n(M)(e)?(a(!0),r(p,{key:0},m(e,((e,t)=>(a(),s(F,w(ne,{key:t,element:e,idx:l+1,"is-highlight":ye(e)}),null,16,["element","idx","is-highlight"])))),128)):(a(),s(F,w({key:1},ne,{element:e,idx:l+1,"is-highlight":ye(e)}),null,16,["element","idx","is-highlight"]))],14,G))])),_:1},8,["modelValue","disabled"]))],512)],512),e.footerFlag?(a(),r("div",$,[f(" 底部按钮插槽 "),S(l.$slots,"footer",{},(()=>[x(n(E),{onPositiveClick:he},{trigger:v((()=>[x(n(H),{style:{"margin-right":"8px"}},{default:v((()=>[b("恢复默认设置")])),_:1})])),default:v((()=>[b(" 确认要恢复系统默认设置吗? ")])),_:1}),x(n(H),{style:{"margin-right":"8px"},onClick:fe},{default:v((()=>[b("取消")])),_:1}),x(n(H),{type:"primary",onClick:ce},{default:v((()=>[b("保存")])),_:1})]))])):f("v-if",!0)]))}});export{z as default};
|
@@ -61,8 +61,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
61
61
|
}>>;
|
62
62
|
emit: (event: "save", ...args: any[]) => void;
|
63
63
|
setRefs: AnyObject;
|
64
|
+
fieldSetRef: import("vue").Ref<any>;
|
64
65
|
primaryColor: import("vue").Ref<string>;
|
65
|
-
|
66
|
+
fieldSetHeight: import("vue").Ref<number>;
|
67
|
+
style: import("vue").ComputedRef<{
|
68
|
+
'--row-height': string;
|
69
|
+
'--primary-color': string;
|
70
|
+
'--main-height': string;
|
71
|
+
}>;
|
66
72
|
tabList: import("vue").ComputedRef<{
|
67
73
|
name: FieldSetTab;
|
68
74
|
tab: string;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,useAttrs as l,provide as t,reactive as i,ref as a,computed as r,openBlock as o,createElementBlock as s,normalizeStyle as d,unref as n,createBlock as f,withCtx as
|
1
|
+
import{defineComponent as e,useAttrs as l,provide as t,reactive as i,ref as a,computed as r,openBlock as o,createElementBlock as s,normalizeStyle as d,unref as n,createBlock as f,withCtx as u,Fragment as m,renderList as h,resolveDynamicComponent as v,mergeProps as b,createSlots as p,renderSlot as y,h as c}from"vue";import{useThemeVars as g,NTabs as F,NTabPane as w}from"naive-ui";import C from"./FieldSet.vue.js";import L from"./FieldColor.vue.js";import S from"./TableStyle.vue.js";import T from"./FieldFilter.vue.js";import{InjectionFieldList as x,InjectionQueryWordbookData as $}from"./constants/index.js";import{useElementSize as _}from"@vueuse/core";var j=e({__name:"Index",props:{showTabNames:{type:Array,default:()=>["field"]},fieldColorList:{type:Array,default:()=>[]},highlightRowColorList:{type:Array,default:()=>[]},fieldList:{type:Object},queryWordbookData:{type:Function},fieldFilterList:{type:Array,default:()=>[]}},emits:["save"],setup(e,{expose:j,emit:k}){const R=e,A=l();t(x,R.fieldList),t($,R.queryWordbookData);const q=i({}),D=a(),N=a(g().value.primaryColor),{height:W}=_(D),H=r((()=>{var e;const l="showSearch"in A&&!1!==A.showSearch||"show-search"in A&&!1!==A["show-search"]?"52px":"auto",t=null==(e=A.style)?void 0:e.height,i=I.value.length>1&&"100%"===t&&(null==W?void 0:W.value)?`calc(${W.value}px - 54px)`:t&&"auto"!==t?`calc(${t} - 54px)`:"auto";return{"--row-height":l,"--primary-color":N.value,"--main-height":i}})),I=r((()=>[{name:"field",tab:"字段设置",render:()=>c(C)},{name:"fieldColor",tab:"字段颜色",render:()=>c(L,{isFieldColor:!0,defaultList:R.fieldColorList})},{name:"highlightRow",tab:"高亮行",render:()=>c(L,{isFieldColor:!1,defaultList:R.highlightRowColorList})},{name:"tableStyle",tab:"表格样式",render:()=>c(S)},{name:"fieldFilter",tab:"高级筛选",render:()=>c(T,{defaultList:R.fieldFilterList})}].filter((e=>R.showTabNames.includes(e.name)))));function O(){var e,l,t,i,a;k("save",{tableFields:null==(e=q.field)?void 0:e.getTableFields(),tableFieldColors:null==(l=q.fieldColor)?void 0:l.getTableFields(),tableHighlightRows:null==(t=q.highlightRow)?void 0:t.getTableFields(),tableStyle:null==(i=q.tableStyle)?void 0:i.getTableFields(),tableFilters:null==(a=q.fieldFilter)?void 0:a.getTableFields()})}function z(e,l){q[l]=e}return j({getTableFields:function(e){var l;return null==(l=q[e||"field"])?void 0:l.getTableFields()}}),(e,l)=>(o(),s("div",{class:"c-field-set",style:d(n(H)),ref_key:"fieldSetRef",ref:D},[n(I).length>1?(o(),f(n(F),{key:0,type:"line",naimated:""},{default:u((()=>[(o(!0),s(m,null,h(n(I),(l=>(o(),f(n(w),{key:l.name,name:l.name,tab:l.tab,"display-directive":"show"},{default:u((()=>[(o(),f(v(l.render()),b(e.$attrs,{ref_for:!0,ref:e=>z(e,l.name),onSave:O}),p({_:2},[h(e.$slots,((l,t)=>({name:t,fn:u((()=>[y(e.$slots,t)]))})))]),1040))])),_:2},1032,["name","tab"])))),128))])),_:3})):(o(),f(v(n(I)[0].render()),b({key:1},e.$attrs,{ref:e=>z(e,n(I)[0].name),onSave:O}),p({_:2},[h(e.$slots,((l,t)=>({name:t,fn:u((()=>[y(e.$slots,t)]))})))]),1040))],4))}});export{j as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as t,reactive as r,watch as l,openBlock as s,createElementBlock as a,createElementVNode as i,createVNode as o,unref as n,Fragment as p,renderList as d,toDisplayString as m,normalizeClass as b,withDirectives as c,vShow as u,withCtx as v,createTextVNode as f}from"vue";import{NSwitch as g,NIcon as y,NButton as _}from"naive-ui";import{CheckmarkCircle as C}from"@vicons/ionicons5";import h from"../../../shared/assets/img/table_style_1.png.js";import j from"../../../shared/assets/img/table_style_2.png.js";import k from"../../../shared/assets/img/table_style_3.png.js";import x from"../../../shared/assets/img/table_style_4.png.js";const S={class:"main-wrapper"},w={class:"set-item"},z=i("span",{style:{"margin-right":"20px"}},"开启斑马线",-1),T={class:"set-item table-item"},F=["onClickCapture"],O={class:"table-bg"},U=["src"],q={class:"table-style__desc"},A={class:"circle"},B={class:"main-wrapper__table-footer"};var D=e({__name:"TableStyle",props:{tableStyleConfig:{type:Object,default:()=>({stripe:!1,border:!0})}},emits:["save","close"],setup(e,{expose:D,emit:E}){const G=e,H=t([{title:"样式一",label:"无列分割线",border:!1},{title:"样式二",label:"列分割线",border:!0}]),I=r(G.tableStyleConfig);function J(){E("close")}function K(){E("save")}return l((()=>G.tableStyleConfig),(e=>{const{stripe:t=!1,border:r=!0}=e;I.stripe=t,I.border=r}),{immediate:!0,deep:!0}),D({getTableFields:function(){return I}}),(e,t)=>(s(),a("div",S,[i("div",w,[z,o(n(g),{value:I.stripe,"onUpdate:value":t[0]||(t[0]=e=>I.stripe=e),size:"small"},null,8,["value"])]),i("div",T,[(s(!0),a(p,null,d(H.value,((e,t)=>{return s(),a(p,{key:t},[i("h4",null,m(e.title),1),i("div",{class:b(["table-style",{active:e.border===I.border}]),onClickCapture:()=>{return t=e.border,void(I.border=t);var t}},[i("div",O,[i("img",{src:(r=e.border,I.stripe?r?h:k:r?j:x),alt:""},null,8,U)]),i("div",q,[c(o(n(y),{size:20,component:n(C)},null,8,["component"]),[[u,e.border===I.border]]),c(i("i",A,null,512),[[u,e.border!==I.border]]),i("span",null,m(e.label),1)])],42,F)],64);var r})),128))]),i("div",B,[o(n(_),{style:{"margin-right":"8px"},onClick:J},{default:v((()=>[f("取消")])),_:1}),o(n(_),{type:"primary",onClick:K},{default:v((()=>[f("保存")])),_:1})])]))}});export{D as default};
|
1
|
+
import{defineComponent as e,ref as t,reactive as r,watch as l,openBlock as s,createElementBlock as a,createElementVNode as i,createVNode as o,unref as n,Fragment as p,renderList as d,toDisplayString as m,normalizeClass as b,withDirectives as c,vShow as u,withCtx as v,createTextVNode as f}from"vue";import{NSwitch as g,NIcon as y,NButton as _}from"naive-ui";import{CheckmarkCircle as C}from"@vicons/ionicons5";import h from"../../../shared/assets/img/table_style_1.png.js";import j from"../../../shared/assets/img/table_style_2.png.js";import k from"../../../shared/assets/img/table_style_3.png.js";import x from"../../../shared/assets/img/table_style_4.png.js";const S={class:"main-wrapper",style:{"overflow-y":"auto"}},w={class:"set-item"},z=i("span",{style:{"margin-right":"20px"}},"开启斑马线",-1),T={class:"set-item table-item"},F=["onClickCapture"],O={class:"table-bg"},U=["src"],q={class:"table-style__desc"},A={class:"circle"},B={class:"main-wrapper__table-footer"};var D=e({__name:"TableStyle",props:{tableStyleConfig:{type:Object,default:()=>({stripe:!1,border:!0})}},emits:["save","close"],setup(e,{expose:D,emit:E}){const G=e,H=t([{title:"样式一",label:"无列分割线",border:!1},{title:"样式二",label:"列分割线",border:!0}]),I=r(G.tableStyleConfig);function J(){E("close")}function K(){E("save")}return l((()=>G.tableStyleConfig),(e=>{const{stripe:t=!1,border:r=!0}=e;I.stripe=t,I.border=r}),{immediate:!0,deep:!0}),D({getTableFields:function(){return I}}),(e,t)=>(s(),a("div",S,[i("div",w,[z,o(n(g),{value:I.stripe,"onUpdate:value":t[0]||(t[0]=e=>I.stripe=e),size:"small"},null,8,["value"])]),i("div",T,[(s(!0),a(p,null,d(H.value,((e,t)=>{return s(),a(p,{key:t},[i("h4",null,m(e.title),1),i("div",{class:b(["table-style",{active:e.border===I.border}]),onClickCapture:()=>{return t=e.border,void(I.border=t);var t}},[i("div",O,[i("img",{src:(r=e.border,I.stripe?r?h:k:r?j:x),alt:""},null,8,U)]),i("div",q,[c(o(n(y),{size:20,component:n(C)},null,8,["component"]),[[u,e.border===I.border]]),c(i("i",A,null,512),[[u,e.border!==I.border]]),i("span",null,m(e.label),1)])],42,F)],64);var r})),128))]),i("div",B,[o(n(_),{style:{"margin-right":"8px"},onClick:J},{default:v((()=>[f("取消")])),_:1}),o(n(_),{type:"primary",onClick:K},{default:v((()=>[f("保存")])),_:1})])]))}});export{D as default};
|
@@ -106,6 +106,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
106
106
|
type: PropType<string | false | HTMLElement>;
|
107
107
|
default: string;
|
108
108
|
};
|
109
|
+
holidays: {
|
110
|
+
type: PropType<Date[]>;
|
111
|
+
default: () => never[];
|
112
|
+
};
|
113
|
+
type: {
|
114
|
+
type: StringConstructor;
|
115
|
+
default: string;
|
116
|
+
};
|
109
117
|
}, {
|
110
118
|
attrs: {
|
111
119
|
[x: string]: unknown;
|
@@ -130,6 +138,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
130
138
|
type: PropType<string | false | HTMLElement>;
|
131
139
|
default: string;
|
132
140
|
};
|
141
|
+
holidays: {
|
142
|
+
type: PropType<Date[]>;
|
143
|
+
default: () => never[];
|
144
|
+
};
|
145
|
+
type: {
|
146
|
+
type: StringConstructor;
|
147
|
+
default: string;
|
148
|
+
};
|
133
149
|
}>> & {
|
134
150
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
135
151
|
}>>;
|
@@ -146,6 +162,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
146
162
|
blur: () => any;
|
147
163
|
handleConfirm: (target: HTMLInputElement) => void;
|
148
164
|
onUpdateShow: (show: boolean) => Promise<void>;
|
165
|
+
watchers: import("../../../../shared/types").AnyFn[];
|
166
|
+
stopWatcher: () => void;
|
167
|
+
setHoliday: (show: boolean) => Promise<void>;
|
149
168
|
onConfirm: (...args: any[]) => Promise<void>;
|
150
169
|
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
151
170
|
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
@@ -170,11 +189,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
170
189
|
type: PropType<string | false | HTMLElement>;
|
171
190
|
default: string;
|
172
191
|
};
|
192
|
+
holidays: {
|
193
|
+
type: PropType<Date[]>;
|
194
|
+
default: () => never[];
|
195
|
+
};
|
196
|
+
type: {
|
197
|
+
type: StringConstructor;
|
198
|
+
default: string;
|
199
|
+
};
|
173
200
|
}>> & {
|
174
201
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
175
202
|
}, {
|
203
|
+
type: string;
|
176
204
|
updateUnchangedValue: boolean;
|
177
205
|
to: string | false | HTMLElement;
|
206
|
+
holidays: Date[];
|
178
207
|
}>>;
|
179
208
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
180
209
|
data: {
|
@@ -246,6 +246,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
246
246
|
type: PropType<string | false | HTMLElement>;
|
247
247
|
default: string;
|
248
248
|
};
|
249
|
+
holidays: {
|
250
|
+
type: PropType<Date[]>;
|
251
|
+
default: () => never[];
|
252
|
+
};
|
253
|
+
type: {
|
254
|
+
type: StringConstructor;
|
255
|
+
default: string;
|
256
|
+
};
|
249
257
|
}, {
|
250
258
|
attrs: {
|
251
259
|
[x: string]: unknown;
|
@@ -270,6 +278,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
270
278
|
type: PropType<string | false | HTMLElement>;
|
271
279
|
default: string;
|
272
280
|
};
|
281
|
+
holidays: {
|
282
|
+
type: PropType<Date[]>;
|
283
|
+
default: () => never[];
|
284
|
+
};
|
285
|
+
type: {
|
286
|
+
type: StringConstructor;
|
287
|
+
default: string;
|
288
|
+
};
|
273
289
|
}>> & {
|
274
290
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
275
291
|
}>>;
|
@@ -286,6 +302,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
286
302
|
blur: () => any;
|
287
303
|
handleConfirm: (target: HTMLInputElement) => void;
|
288
304
|
onUpdateShow: (show: boolean) => Promise<void>;
|
305
|
+
watchers: import("../../../../shared/types").AnyFn[];
|
306
|
+
stopWatcher: () => void;
|
307
|
+
setHoliday: (show: boolean) => Promise<void>;
|
289
308
|
onConfirm: (...args: any[]) => Promise<void>;
|
290
309
|
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
291
310
|
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
@@ -310,11 +329,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
310
329
|
type: PropType<string | false | HTMLElement>;
|
311
330
|
default: string;
|
312
331
|
};
|
332
|
+
holidays: {
|
333
|
+
type: PropType<Date[]>;
|
334
|
+
default: () => never[];
|
335
|
+
};
|
336
|
+
type: {
|
337
|
+
type: StringConstructor;
|
338
|
+
default: string;
|
339
|
+
};
|
313
340
|
}>> & {
|
314
341
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
315
342
|
}, {
|
343
|
+
type: string;
|
316
344
|
updateUnchangedValue: boolean;
|
317
345
|
to: string | false | HTMLElement;
|
346
|
+
holidays: Date[];
|
318
347
|
}>>;
|
319
348
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
320
349
|
data: {
|
@@ -528,6 +557,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
528
557
|
type: PropType<string | false | HTMLElement>;
|
529
558
|
default: string;
|
530
559
|
};
|
560
|
+
holidays: {
|
561
|
+
type: PropType<Date[]>;
|
562
|
+
default: () => never[];
|
563
|
+
};
|
564
|
+
type: {
|
565
|
+
type: StringConstructor;
|
566
|
+
default: string;
|
567
|
+
};
|
531
568
|
}, {
|
532
569
|
attrs: {
|
533
570
|
[x: string]: unknown;
|
@@ -552,6 +589,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
552
589
|
type: PropType<string | false | HTMLElement>;
|
553
590
|
default: string;
|
554
591
|
};
|
592
|
+
holidays: {
|
593
|
+
type: PropType<Date[]>;
|
594
|
+
default: () => never[];
|
595
|
+
};
|
596
|
+
type: {
|
597
|
+
type: StringConstructor;
|
598
|
+
default: string;
|
599
|
+
};
|
555
600
|
}>> & {
|
556
601
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
557
602
|
}>>;
|
@@ -568,6 +613,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
568
613
|
blur: () => any;
|
569
614
|
handleConfirm: (target: HTMLInputElement) => void;
|
570
615
|
onUpdateShow: (show: boolean) => Promise<void>;
|
616
|
+
watchers: import("../../../../shared/types").AnyFn[];
|
617
|
+
stopWatcher: () => void;
|
618
|
+
setHoliday: (show: boolean) => Promise<void>;
|
571
619
|
onConfirm: (...args: any[]) => Promise<void>;
|
572
620
|
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
573
621
|
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
@@ -592,11 +640,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
592
640
|
type: PropType<string | false | HTMLElement>;
|
593
641
|
default: string;
|
594
642
|
};
|
643
|
+
holidays: {
|
644
|
+
type: PropType<Date[]>;
|
645
|
+
default: () => never[];
|
646
|
+
};
|
647
|
+
type: {
|
648
|
+
type: StringConstructor;
|
649
|
+
default: string;
|
650
|
+
};
|
595
651
|
}>> & {
|
596
652
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
597
653
|
}, {
|
654
|
+
type: string;
|
598
655
|
updateUnchangedValue: boolean;
|
599
656
|
to: string | false | HTMLElement;
|
657
|
+
holidays: Date[];
|
600
658
|
}>>;
|
601
659
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
602
660
|
data: {
|
@@ -204,6 +204,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
204
204
|
type: PropType<string | false | HTMLElement>;
|
205
205
|
default: string;
|
206
206
|
};
|
207
|
+
holidays: {
|
208
|
+
type: PropType<Date[]>;
|
209
|
+
default: () => never[];
|
210
|
+
};
|
211
|
+
type: {
|
212
|
+
type: StringConstructor;
|
213
|
+
default: string;
|
214
|
+
};
|
207
215
|
}, {
|
208
216
|
attrs: {
|
209
217
|
[x: string]: unknown;
|
@@ -228,6 +236,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
228
236
|
type: PropType<string | false | HTMLElement>;
|
229
237
|
default: string;
|
230
238
|
};
|
239
|
+
holidays: {
|
240
|
+
type: PropType<Date[]>;
|
241
|
+
default: () => never[];
|
242
|
+
};
|
243
|
+
type: {
|
244
|
+
type: StringConstructor;
|
245
|
+
default: string;
|
246
|
+
};
|
231
247
|
}>> & {
|
232
248
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
233
249
|
}>>;
|
@@ -244,6 +260,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
244
260
|
blur: () => any;
|
245
261
|
handleConfirm: (target: HTMLInputElement) => void;
|
246
262
|
onUpdateShow: (show: boolean) => Promise<void>;
|
263
|
+
watchers: import("../../../../shared/types").AnyFn[];
|
264
|
+
stopWatcher: () => void;
|
265
|
+
setHoliday: (show: boolean) => Promise<void>;
|
247
266
|
onConfirm: (...args: any[]) => Promise<void>;
|
248
267
|
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
249
268
|
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
@@ -268,11 +287,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
268
287
|
type: PropType<string | false | HTMLElement>;
|
269
288
|
default: string;
|
270
289
|
};
|
290
|
+
holidays: {
|
291
|
+
type: PropType<Date[]>;
|
292
|
+
default: () => never[];
|
293
|
+
};
|
294
|
+
type: {
|
295
|
+
type: StringConstructor;
|
296
|
+
default: string;
|
297
|
+
};
|
271
298
|
}>> & {
|
272
299
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
273
300
|
}, {
|
301
|
+
type: string;
|
274
302
|
updateUnchangedValue: boolean;
|
275
303
|
to: string | false | HTMLElement;
|
304
|
+
holidays: Date[];
|
276
305
|
}>>;
|
277
306
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
278
307
|
data: {
|
@@ -380,11 +380,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
380
380
|
}>;
|
381
381
|
developMode: boolean;
|
382
382
|
draggable: boolean;
|
383
|
-
isHighlightRow: boolean;
|
384
|
-
idx: number;
|
385
|
-
isHighlight: boolean;
|
386
|
-
isFieldSet: boolean;
|
387
383
|
fieldDescribeMode: "column" | "tooltip";
|
384
|
+
isFieldSet: boolean;
|
388
385
|
hideExpressionOption: AnyObject[];
|
386
|
+
idx: number;
|
387
|
+
isHighlight: boolean;
|
388
|
+
isHighlightRow: boolean;
|
389
389
|
}>;
|
390
390
|
export default _default;
|
@@ -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
|
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 r(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 s(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,r=(e=>e.name)){const s=o.map((e=>r(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,r)=>{const c=function(e,i,n){return i.findIndex((i=>i!==n&&(t(i)?i.fieldName:i)===e))}(e,s,o);~c&&(n.push(s[c]),0===r?s.splice(c,1,o={fieldName:i.title,children:n}):s.splice(c,1))}))}))})),s}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}=e;return t&&i&&[o.DATE,o.DATETIME,o.SELECT].includes(n)}export{c as getGroupTree,s as isDisable,l as isDraggable,a as isDraggableItem,d as isShowExplicitRequired,f as setColorInfo,r as setStyle};
|
@@ -1 +1 @@
|
|
1
|
-
.c-field-set{height:100%;width:100%}.c-field-set__color-picker .n-color-picker-trigger__value{display:none}.c-field-set .main-wrapper{display:flex;flex-flow:column nowrap;height:
|
1
|
+
.c-field-set{height:100%;width:100%}.c-field-set__color-picker .n-color-picker-trigger__value{display:none}.c-field-set .main-wrapper{box-sizing:border-box;display:flex;flex-flow:column nowrap;height:var(--main-height)!important;width:100%}.c-field-set .main-wrapper__search-wrapper.n-input{margin-bottom:12px;width:50%}.c-field-set .main-wrapper .item{background:#fff}.c-field-set .main-wrapper .item:active{background:#f2f2f2;box-shadow:0 0 10px 0 #d5d5d5}.c-field-set .main-wrapper .item:focus{background-color:#f2f2f2}.c-field-set .main-wrapper .item.disabled{cursor:not-allowed}.c-field-set .main-wrapper .item .row{align-items:center;border-bottom:1px solid #e8e8e8;display:flex;height:var(--row-height);padding:8px 0}.c-field-set .main-wrapper .table-cell{word-wrap:break-word;box-sizing:border-box;color:inherit;display:inline-block;padding:0 5px}.c-field-set .main-wrapper .table-cell .highlight{background-color:var(--primary-color);color:#fff}.c-field-set .main-wrapper .table-cell .c-field-set__color-picker{display:block}.c-field-set .main-wrapper__table{box-sizing:border-box;flex:1;overflow:auto;width:100%}.c-field-set .main-wrapper__table-header{align-items:center;background:#f2f2f4;border:1px solid #f2f2f2;display:flex;height:52px;position:sticky;top:0;z-index:1}.c-field-set .main-wrapper__table-header .n-checkbox.n-checkbox--disabled .n-checkbox__label{color:var(--n-text-color)}.c-field-set .main-wrapper__table-header .table-cell{align-items:center;background:#f2f2f4;display:flex;height:100%}.c-field-set .main-wrapper__table-body{height:calc(100% - 52px)}.c-field-set .main-wrapper__table-footer{border-top:1px solid #d5d5d5;padding:12px 0}.c-field-set .main-wrapper .set-item{padding:10px 0}.c-field-set .main-wrapper .set-item.table-item{border-top:1px solid #e8e8e8;width:50%}.c-field-set .main-wrapper .set-item.table-item h4{font-size:16px;font-weight:400;margin-bottom:12px}.c-field-set .main-wrapper .set-item.table-item .table-style{background:#e5e5e5;border:2px solid #cfcfcf;border-radius:4px;cursor:pointer;margin-bottom:10px;padding:20px 0 0}.c-field-set .main-wrapper .set-item.table-item .table-style .table-bg{background:#fff;border-radius:5px;margin:0 20px 20px;padding:10px}.c-field-set .main-wrapper .set-item.table-item .table-style .table-bg img{width:100%}.c-field-set .main-wrapper .set-item.table-item .table-style__desc{align-items:center;background:#fff;display:flex;padding:10px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc .n-icon{color:var(--c-primary-color);font-size:20px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc .circle{border:1px solid #d5d5d5;border-radius:50%;display:inline-block;height:18px;width:18px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc span{margin-left:5px}.c-field-set .main-wrapper .set-item.table-item .table-style.active{background:#e2ebfa;border:2px solid var(--c-primary-color)}.c-field-set__color-block{display:inline-block;margin-left:20px;position:relative}.c-field-set__color-block:before{background-color:var(--color);border-radius:2px;content:"";height:14px;left:-20px;position:absolute;top:3px;width:14px}.c-field-set__space{width:100%}.c-field-set__space>div:first-child{width:80%}.c-field-set__space .filter-btn{color:var(--c-primary-color);cursor:pointer}.c-field-set__condition .opt-btn{cursor:pointer;display:inline-flex}.c-field-set__condition .condition-wrapper__item{align-items:center;display:flex;margin-top:10px}.c-field-set__condition .condition-wrapper__item .item-index{margin-right:10px}.c-field-set__condition .condition-wrapper__item>.n-date-picker,.c-field-set__condition .condition-wrapper__item>.n-input,.c-field-set__condition .condition-wrapper__item>.n-input-number,.c-field-set__condition .condition-wrapper__item>.n-select{margin-right:10px;width:20%}.c-field-set__condition .sql-expression-wrapper{margin-top:10px}
|
@@ -682,6 +682,14 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
682
682
|
type: import("vue").PropType<string | false | HTMLElement>;
|
683
683
|
default: string;
|
684
684
|
};
|
685
|
+
holidays: {
|
686
|
+
type: import("vue").PropType<Date[]>;
|
687
|
+
default: () => never[];
|
688
|
+
};
|
689
|
+
type: {
|
690
|
+
type: StringConstructor;
|
691
|
+
default: string;
|
692
|
+
};
|
685
693
|
}, {
|
686
694
|
attrs: {
|
687
695
|
[x: string]: unknown;
|
@@ -706,6 +714,14 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
706
714
|
type: import("vue").PropType<string | false | HTMLElement>;
|
707
715
|
default: string;
|
708
716
|
};
|
717
|
+
holidays: {
|
718
|
+
type: import("vue").PropType<Date[]>;
|
719
|
+
default: () => never[];
|
720
|
+
};
|
721
|
+
type: {
|
722
|
+
type: StringConstructor;
|
723
|
+
default: string;
|
724
|
+
};
|
709
725
|
}>> & {
|
710
726
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
711
727
|
}>>;
|
@@ -722,6 +738,9 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
722
738
|
blur: () => any;
|
723
739
|
handleConfirm: (target: HTMLInputElement) => void;
|
724
740
|
onUpdateShow: (show: boolean) => Promise<void>;
|
741
|
+
watchers: import("../../shared/types").AnyFn[];
|
742
|
+
stopWatcher: () => void;
|
743
|
+
setHoliday: (show: boolean) => Promise<void>;
|
725
744
|
onConfirm: (...args: any[]) => Promise<void>;
|
726
745
|
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
727
746
|
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
@@ -746,11 +765,21 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
746
765
|
type: import("vue").PropType<string | false | HTMLElement>;
|
747
766
|
default: string;
|
748
767
|
};
|
768
|
+
holidays: {
|
769
|
+
type: import("vue").PropType<Date[]>;
|
770
|
+
default: () => never[];
|
771
|
+
};
|
772
|
+
type: {
|
773
|
+
type: StringConstructor;
|
774
|
+
default: string;
|
775
|
+
};
|
749
776
|
}>> & {
|
750
777
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
751
778
|
}, {
|
779
|
+
type: string;
|
752
780
|
updateUnchangedValue: boolean;
|
753
781
|
to: string | false | HTMLElement;
|
782
|
+
holidays: Date[];
|
754
783
|
}>>;
|
755
784
|
formatTime: typeof import("./src/utils").formatTime;
|
756
785
|
MESSAGE_TYPE: typeof import("./src/constants").MESSAGE_TYPE;
|
@@ -687,6 +687,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
687
687
|
type: PropType<string | false | HTMLElement>;
|
688
688
|
default: string;
|
689
689
|
};
|
690
|
+
holidays: {
|
691
|
+
type: PropType<Date[]>;
|
692
|
+
default: () => never[];
|
693
|
+
};
|
694
|
+
type: {
|
695
|
+
type: StringConstructor;
|
696
|
+
default: string;
|
697
|
+
};
|
690
698
|
}, {
|
691
699
|
attrs: {
|
692
700
|
[x: string]: unknown;
|
@@ -711,6 +719,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
711
719
|
type: PropType<string | false | HTMLElement>;
|
712
720
|
default: string;
|
713
721
|
};
|
722
|
+
holidays: {
|
723
|
+
type: PropType<Date[]>;
|
724
|
+
default: () => never[];
|
725
|
+
};
|
726
|
+
type: {
|
727
|
+
type: StringConstructor;
|
728
|
+
default: string;
|
729
|
+
};
|
714
730
|
}>> & {
|
715
731
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
716
732
|
}>>;
|
@@ -727,6 +743,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
727
743
|
blur: () => any;
|
728
744
|
handleConfirm: (target: HTMLInputElement) => void;
|
729
745
|
onUpdateShow: (show: boolean) => Promise<void>;
|
746
|
+
watchers: import("../../../shared/types").AnyFn[];
|
747
|
+
stopWatcher: () => void;
|
748
|
+
setHoliday: (show: boolean) => Promise<void>;
|
730
749
|
onConfirm: (...args: any[]) => Promise<void>;
|
731
750
|
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
732
751
|
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
@@ -751,11 +770,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
751
770
|
type: PropType<string | false | HTMLElement>;
|
752
771
|
default: string;
|
753
772
|
};
|
773
|
+
holidays: {
|
774
|
+
type: PropType<Date[]>;
|
775
|
+
default: () => never[];
|
776
|
+
};
|
777
|
+
type: {
|
778
|
+
type: StringConstructor;
|
779
|
+
default: string;
|
780
|
+
};
|
754
781
|
}>> & {
|
755
782
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
756
783
|
}, {
|
784
|
+
type: string;
|
757
785
|
updateUnchangedValue: boolean;
|
758
786
|
to: string | false | HTMLElement;
|
787
|
+
holidays: Date[];
|
759
788
|
}>>;
|
760
789
|
formatTime: typeof import("./utils").formatTime;
|
761
790
|
MESSAGE_TYPE: typeof import("./constants").MESSAGE_TYPE;
|