@farris/ui-vue 1.7.0-beta.3 → 1.7.0-beta.4
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/components/avatar/index.esm.js +10 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +178 -176
- package/components/calendar/index.umd.cjs +2 -2
- package/components/collection-property-editor/index.esm.js +48 -46
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +319 -300
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +2287 -1161
- package/components/comment/index.umd.cjs +7 -7
- package/components/component/index.esm.js +3 -1
- package/components/component/index.umd.cjs +2 -2
- package/components/condition/index.esm.js +926 -901
- package/components/condition/index.umd.cjs +2 -2
- package/components/data-view/index.esm.js +898 -899
- package/components/data-view/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +3 -1
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +239 -221
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +11 -9
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/expression-editor/index.esm.js +1299 -1279
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +731 -678
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.esm.js +1792 -1772
- package/components/filter-condition-editor/index.umd.cjs +4 -4
- package/components/image/index.esm.js +246 -240
- package/components/image/index.umd.cjs +2 -2
- package/components/language-textbox/index.esm.js +9 -7
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/list-view/index.esm.js +1 -1
- package/components/list-view/index.umd.cjs +1 -1
- package/components/locale/index.esm.js +2009 -886
- package/components/locale/index.umd.cjs +6 -6
- package/components/number-range/index.esm.js +190 -181
- package/components/number-range/index.umd.cjs +1 -1
- package/components/order/index.esm.js +734 -714
- package/components/order/index.umd.cjs +5 -5
- package/components/property-panel/index.esm.js +60 -49
- package/components/property-panel/index.umd.cjs +3 -3
- package/components/query-solution/index.esm.js +2461 -2500
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +238 -238
- package/components/schema-selector/index.umd.cjs +4 -4
- package/components/section/index.esm.js +217 -302
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +1793 -1773
- package/components/sort-condition-editor/index.umd.cjs +4 -4
- package/components/transfer/index.esm.js +155 -155
- package/components/transfer/index.umd.cjs +3 -3
- package/designer/data-grid/index.esm.js +895 -867
- package/designer/data-grid/index.umd.cjs +5 -5
- package/designer/data-view/index.esm.js +145 -144
- package/designer/data-view/index.umd.cjs +2 -2
- package/designer/drawer/index.esm.js +73 -71
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +87 -65
- package/designer/dynamic-form/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +14 -3
- package/designer/farris-designer.all.umd.cjs +3 -3
- package/designer/input-group/index.esm.js +34 -14
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +1 -1
- package/designer/list-view/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +15 -2
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +129 -119
- package/designer/section/index.umd.cjs +1 -1
- package/designer/time-picker/index.esm.js +140 -131
- package/designer/time-picker/index.umd.cjs +1 -1
- package/farris.all.esm.js +13578 -12394
- package/farris.all.umd.cjs +26 -26
- package/index.css +1 -1
- package/locales/data-grid/ui/en.json +2 -1
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +12 -10
- package/locales/designer/zh-CHS.json +19 -17
- package/locales/designer/zh-CHT.json +19 -17
- package/locales/ui/en.json +4 -2
- package/locales/ui/zh-CHS.json +11 -9
- package/locales/ui/zh-CHT.json +11 -9
- package/package.json +1 -1
- package/package.zip +0 -0
- package/types/combo-list/src/composition/types.d.ts +1 -0
- package/types/condition/src/composition/condition-value/number-spinner-value.d.ts +1 -1
- package/types/condition/src/composition/use-field-config.d.ts +1 -1
- package/types/condition/src/condition.props.d.ts +1 -1
- package/types/data-view/designer/property-config/use-command-option.d.ts +12 -0
- package/types/image/src/property-config/image.property-config.d.ts +5 -5
- package/types/locale/src/lib/locale.service.d.ts +2 -2
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +7 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +0 -20
- package/types/section/src/designer/section.design.props.d.ts +17 -0
- package/types/section/src/section.props.d.ts +0 -25
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(h,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(h=typeof globalThis<"u"?globalThis:h||self,s(h["data-view"]={},h.Vue))})(this,function(h,s){"use strict";function H(l,a,
|
|
1
|
+
(function(h,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(h=typeof globalThis<"u"?globalThis:h||self,s(h["data-view"]={},h.Vue))})(this,function(h,s){"use strict";function H(l,a,o,t,d){const{getGridHeaderCells:c}=d,v=120,P=50,O=s.computed(()=>{var e;return((e=l.rowNumber)==null?void 0:e.enable)||!1}),N=s.computed(()=>{var e,r;return((e=l.selection)==null?void 0:e.multiSelect)||((r=l.selection)==null?void 0:r.showCheckbox)||!1}),I=s.computed(()=>{var e;return 0+(O.value?((e=l.rowNumber)==null?void 0:e.width)||32:0)+(N.value?P:0)}),R=s.computed(()=>{var e;return(e=l.columnOption)==null?void 0:e.fitColumns}),M=s.computed(()=>{var e;return R.value&&((e=l.columnOption)==null?void 0:e.fitMode)||"none"});function V(e,r,u){const p=parseInt(e.width,10)/100;return u*p}function b(e,r,u){return typeof e.width=="string"?V(e,r,u):e.width||v}function k(e,r){const u=[],p=[];let f=0;e.value.primaryColumns.forEach(g=>{typeof g.width=="string"?p.push(g):(g.width=g.width||v,f+=g.width,u.push(g))});const w=r*(u.length/e.value.primaryColumns.length);u.forEach(g=>{const m=w*(g.width/f);g.actualWidth=m,e.value.primaryColumnsWidth+=g.actualWidth});const S=r-w;p.forEach(g=>{const m=V(g,e.value,S);g.actualWidth=m,e.value.primaryColumnsWidth+=g.actualWidth})}function W(e,r){const u=[],p=[],f=new WeakMap;let w=0,S=0;if(e.value.primaryColumns.forEach(m=>{if(typeof m.width=="string"){const y=V(m,e.value,r);f.set(m,y),w+=y,p.push(m)}else m.width=m.width||v,S+=m.width,u.push(m)}),r-w>S){const m=r-w;p.forEach(y=>{y.actualWidth=f.get(y)||v,e.value.primaryColumnsWidth+=y.actualWidth}),u.forEach(y=>{y.actualWidth=m*(y.width/S),e.value.primaryColumnsWidth+=y.actualWidth})}else k(e,r)}function C(e,r){e.value.primaryColumns.forEach(u=>{u.actualWidth=b(u,e.value,r),e.value.primaryColumnsWidth+=u.actualWidth})}const D={expand:W,none:C,percentage:k};function _(e){e.value.leftHeaderColumns=Array.from(c(e.value.leftColumns).values()),e.value.primaryHeaderColumns=Array.from(c(e.value.primaryColumns).values()),e.value.rightHeaderColumns=Array.from(c(e.value.rightColumns).values())}function E(e){e.value.leftColumnsWidth=0,e.value.primaryColumnsWidth=0,e.value.rightColumnsWidth=0,e.value.leftColumns.forEach(r=>{e.value.leftColumnsWidth+=r.actualWidth||0}),e.value.primaryColumns.forEach(r=>{e.value.primaryColumnsWidth+=r.actualWidth||0}),e.value.rightColumns.forEach(r=>{e.value.rightColumnsWidth+=r.actualWidth||0}),e.value=Object.assign({},e.value)}function n(e,r,u){var y;let p=0;const f=e.value.primaryColumns,w=e.value.rightColumns;e.value.rightColumns.forEach(F=>{F.actualWidth=b(F,e.value,r),p+=F.actualWidth});const S=u-p,g=D[M.value];if(g&&g(e,S),e.value.primaryColumnsWidth+p<=u)return e.value.primaryColumns=[...f,...w],e.value.primaryColumnsWidth+=p,e.value.rightColumns=[],e.value.rightColumnsWidth=0,!0;const m=new Map;return m.set("primary",[]),m.set("right",[]),e.value.primaryColumns.reduce((F,A)=>{var T,$;return A.fixed==="right"?(T=F.get("right"))==null||T.push(A):($=F.get("primary"))==null||$.push(A),F},m),(y=m.get("right"))!=null&&y.length&&(e.value.primaryColumns=[...m.get("primary")||[]],e.value.rightColumns=[...m.get("right")||[]]),e.value.primaryColumnsWidth=0,e.value.rightColumnsWidth=0,!1}function i(){if(o.value){a.value.leftColumnsWidth=0,a.value.primaryColumnsWidth=0,a.value.rightColumnsWidth=0;const e=o.value.clientWidth-I.value;a.value.leftColumns.forEach(u=>{u.actualWidth=b(u,a.value,e),a.value.leftColumnsWidth+=u.actualWidth});const r=e-a.value.leftColumnsWidth;if(n(a,e,r))t.value=r;else{a.value.rightColumns.forEach(f=>{f.actualWidth=b(f,a.value,e),a.value.rightColumnsWidth+=f.actualWidth});const u=e-a.value.leftColumnsWidth-a.value.rightColumnsWidth,p=D[M.value];p&&p(a,u),t.value=u}_(a),a.value=Object.assign({},a.value)}}return s.watch(()=>{var e;return(e=l.columnOption)==null?void 0:e.fitColumns},(e,r)=>{e!==r&&e&&i()}),s.watch(M,(e,r)=>{e!==r&&R.value&&i()}),{calculateColumnHeaders:_,calculateColumnsSize:i,calculateColumnsWidth:E}}const B="";function G(l){const o={defaultColumnWidth:120,headerDepth:1,leftColumns:[],leftColumnsMap:new Map,leftColumnsWidth:0,leftHeaderColumns:[],primaryColumns:[],primaryColumnsMap:new Map,primaryColumnsWidth:0,primaryHeaderColumns:[],rightColumns:[],rightColumnsMap:new Map,rightColumnsWidth:0,rightHeaderColumns:[],summaryColumns:[]},t=s.ref(o);function d(){t.value={defaultColumnWidth:120,headerDepth:1,leftColumns:[],leftColumnsMap:new Map,leftColumnsWidth:0,leftHeaderColumns:[],primaryColumns:[],primaryColumnsMap:new Map,primaryColumnsWidth:0,primaryHeaderColumns:[],rightColumns:[],rightColumnsMap:new Map,rightColumnsWidth:0,rightHeaderColumns:[],summaryColumns:[]}}const c=s.ref(l.summary),v=s.computed(()=>{const n=c.value;return(n==null?void 0:n.groupFields)||[]});function P(){t.value.rightColumns.forEach(e=>{e.showSetting=!1}),t.value.primaryColumns.forEach(e=>{e.showSetting=!1});const n=t.value.rightColumns,i=t.value.primaryColumns;n.length>0?n[n.length-1].showSetting=!0:i.length>0&&(i[i.length-1].showSetting=!0)}function O(n){d();const i=new Map;return v.value&&v.value.reduce((e,r)=>(e.set(r,!0),e),i),n.reduce((e,r)=>(r.filter=r.filter||B,r.fixed==="left"?(t.value.leftColumns.push(r),t.value.leftColumnsMap.set(r.field,r),t.value.leftColumnsWidth+=r.actualWidth):r.fixed==="right"?(t.value.rightColumns.push(r),t.value.rightColumnsMap.set(r.field,r),t.value.rightColumnsWidth+=r.actualWidth):(t.value.primaryColumns.push(r),t.value.primaryColumnsMap.set(r.field,r),t.value.primaryColumnsWidth+=r.actualWidth),i.has(r.field)&&t.value.summaryColumns.push(r),e),t),P(),t}O(l.columns);const N=s.computed(()=>t.value.leftColumns.length>0),I=s.computed(()=>t.value.rightColumns.length>0);function R(n,i){return i.sortable&&i.sort&&i.sort!=="none"&&n.push(i),n}function M(n,i){return n.sortOrder=n.sortOrder||0,i.sortOrder=i.sortOrder||0,n.sortOrder===i.sortOrder?0:n.sortOrder<i.sortOrder?-1:1}function V(n,i){return n.sortOrder=n.sortOrder||0,i.sortOrder=i.sortOrder||0,n.sortOrder===i.sortOrder?0:n.sortOrder<i.sortOrder?1:-1}function b(n,i){return i.filterable&&n.push(i),n}function k(){const n=[];return t.value.leftColumns.reduce(b,n),t.value.primaryColumns.reduce(b,n),t.value.rightColumns.reduce(b,n),n}function W(){const n=[];t.value.leftColumns.reduce(R,n),t.value.primaryColumns.reduce(R,n),t.value.rightColumns.reduce(R,n);const i=Math.max(...n.map(e=>e.sortOrder||0));return n.sort(V).map(e=>{const r=e.sortOrder||i+1;return e.sortOrder=r,e}).sort(M).map((e,r)=>{const u=r+1;return e.sortOrder=u,e})}function C(n,i,e){const r=n.map(u=>{const p=e.getSorterByColumn(u),f=u.sort==="asc",w=u.sort==="desc",S=f?p.ascend:w?p.decend:void 0;return{field:u.field,compare:S}});i.setSorters(r)}function D(n,i){const e=W();C(e,n,i)}function _(n){}function E(n){}return{applyColumnSorter:D,collectionFilterableColumns:k,applySortableColumns:C,collectionSortableColumns:W,columnContext:t,hasLeftFixedColumn:N,hasRightFixedColumn:I,updateColumnRenderContext:O,updateColumnSettingIcon:P,sortFromServer:_,createSortConditions:E}}function z(l,a,o,t,d,c,v,P){const O=s.ref(t.value-1+d),N=s.ref(0),{renderDataRow:I}=c,R=v?v.renderGroupRow:I,M=P?P.renderSummaryRow:I;function V(W){let C=I;return W.__fv_data_grid_group_row__&&(C=R),W.__fv_data_grid_group_summary__&&(C=M),C}function b(W,C,D,_){const{dataView:E}=o,n=[];if(E.value.length>0){const i=_?Date.now().toString():"";let e=W,r=0;const u=C-W+1;for(;n.length<u&&e<E.value.length;){const p=E.value[e],f=E.value[e-1]||D,w=n[r-1],S=f?(f.__fv_data_position__||0)+(f.__fv_data_height__||0):0,m=V(p)(p,f,w,e,S,a.value,n);m.refreshKey=i,n.push(m),r++,e++}}return N.value=n.length>0?n[0].index:0,O.value=n.length>0?n[n.length-1].index:0,n}function k(W,C,D){const _=C.groupField||"",{groupValue:E,raw:n}=C;o[W](_,E,n.groupParents||[]);const{dataView:i}=o,e=D[0].index,r=Math.min(e+t.value+d+1,i.value.length-1);return b(e,r)}return{getVisualData:b,maxVisibleRowIndex:O,minVisibleRowIndex:N,toggleGroupRow:k}}function L(){function l(a){return{title:"行配置",description:"",properties:{customRowStyle:{title:"行样式",type:"string",description:"自定义行样式",$converter:"/converter/row-option.converter",editor:{type:"code-editor",language:"javascript",leftTemplate:()=>s.createVNode(s.Fragment,null,[s.createVNode("h5",null,[s.createTextVNode("示例代码")]),s.createVNode("pre",null,[`
|
|
2
2
|
(dataItem) => {
|
|
3
3
|
if(dataItem.code === '0001') {
|
|
4
4
|
return {
|
|
@@ -35,4 +35,4 @@ return {};
|
|
|
35
35
|
注: cell.data 单元格数据
|
|
36
36
|
cell.column 列数据
|
|
37
37
|
row.raw 行数据
|
|
38
|
-
`])])}}}}}return{getRowOptionProperties:l}}function U(){function l(a){return{title:"填充列宽",description:"",properties:{fitColumns:{title:"启用",type:"boolean",description:"启用填充列宽",$converter:"/converter/column-option.converter",refreshPanelAfterChanged:!0}},setPropertyRelates(
|
|
38
|
+
`])])}}}}}return{getRowOptionProperties:l}}function U(){function l(a){return{title:"填充列宽",description:"",properties:{fitColumns:{title:"启用",type:"boolean",description:"启用填充列宽",$converter:"/converter/column-option.converter",refreshPanelAfterChanged:!0}},setPropertyRelates(o,t){switch(o&&o.propertyID){case"fitColumns":{t.fit=o.propertyValue,t.columns&&(o.propertyValue?t.columns.forEach(d=>{d.resizable=!1}):t.columns.forEach(d=>{d.resizable=!0}));break}}}}}return{getColumnOptionProperties:l}}function q(l){function a(o){var t,d;return{title:"操作列",description:"",properties:{enableType:{title:"操作列",type:"enum",$converter:"/converter/column-command.converter",description:"启用操作列",refreshPanelAfterChanged:!0,editor:{data:[{id:"unable",name:"无"},{id:"default",name:"编辑和删除"},{id:"custom",name:"自定义"}]}},commands:{description:"操作列按钮集合",title:"操作项",type:"array",visible:((t=o.command)==null?void 0:t.enableType)==="custom",$converter:"/converter/column-command.converter",editor:{columns:[{field:"value",title:"值",dataType:"string"},{field:"text",title:"名称",dataType:"string"}],type:"item-collection-editor",valueField:"value",nameField:"text",requiredFields:["value","text"],uniqueFields:["value","text"]}},formatter:{title:"操作列模板",$converter:"/converter/column-command.converter",type:"string",visible:((d=o.command)==null?void 0:d.enableType)==="custom"&&!!o.command.formatter,description:"操作列模板",refreshPanelAfterChanged:!0,editor:{type:"code-editor",language:"html"}}},setPropertyRelates(c,v){var P;switch(c&&c.propertyID){case"enableType":{(c.propertyValue==="custom"||c.propertyValue==="default")&&((P=l.getFormDesignerInstance())==null||P.reloadPropertyPanel());break}}}}}return{getCommandColumnProperties:a}}function K(){function l(a){return{title:"合计行",description:"",properties:{enable:{title:"启用",type:"boolean",description:"启用合计行",$converter:"/converter/summary.converter",refreshPanelAfterChanged:!0}}}}return{getSummaryProperties:l}}function Y(){function l(a){var o;return{title:"分组",description:"",properties:{enable:{title:"启用",type:"boolean",description:"启用分组",$converter:"/converter/group.converter",refreshPanelAfterChanged:!0},showSummary:{title:"显示分组合计行",type:"boolean",visible:!!((o=a.group)!=null&&o.enable),$converter:"/converter/group.converter",description:"显示分组合计行"}}}}return{getGroupProperties:l}}function J(){function l(a){var t,d;const o=[{label:"onClickRow",name:"行点击事件"},{label:"onSelectionChange",name:"行切换事件"},{label:"onDoubleClickRow",name:"行双击事件"},{label:"onFilterChanged",name:"过滤事件"}];return a.type!=="tree-grid"&&o.push({label:"onSortChanged",name:"排序事件"},{label:"onSelectItem",name:"选中行事件"},{label:"onUnSelectItem",name:"取消选中行事件"},{label:"onSelectAll",name:"全选事件"},{label:"onUnSelectAll",name:"取消全选事件"}),((t=a.pagination)==null?void 0:t.enable)!==!1&&a.type!=="tree-grid"&&o.push({label:"onPageIndexChanged",name:"切换页码事件"},{label:"onPageSizeChanged",name:"分页条数变化事件"}),(d=a.command)!=null&&d.enable&&o.push({label:"onClickEditCommand",name:"操作列编辑事件"},{label:"onClickDeleteCommand",name:"操作列删除事件"},{label:"onHandleAction",name:"自定义操作列点击事件"}),o}return{initEvent:l}}function Q(){function l(a){var o,t,d;return{title:"多选配置",$converter:"/converter/grid-selection.converter",parentPropertyID:"editor",properties:{multiSelect:{title:"启用多选",type:"boolean",refreshPanelAfterChanged:!0},showCheckbox:{visible:!!((o=a.selection)!=null&&o.multiSelect),$converter:"/converter/grid-selection.converter",title:"显示复选框",type:"boolean",readonly:!0,refreshPanelAfterChanged:!0},showSelectAll:{visible:!!((t=a.selection)!=null&&t.multiSelect)&&!!((d=a.selection)!=null&&d.showCheckbox),title:"显示全选",type:"boolean"}},setPropertyRelates(c,v){switch(c&&c.propertyID){case"multiSelect":a.selection.showCheckbox=c.propertyValue;break}}}}return{getSelection:l}}function X(){function l(a){var o,t;return{title:"行号配置",$converter:"/converter/row-number.converter",parentPropertyID:"rowNumber",properties:{enable:{title:"显示行号",type:"boolean",refreshPanelAfterChanged:!0},width:{visible:!!((o=a.rowNumber)!=null&&o.enable),title:"宽度",type:"number"},heading:{visible:!!((t=a.rowNumber)!=null&&t.enable),title:"标题",type:"string"}}}}return{getRowNumber:l}}function Z(){function l(a,o){var t,d;return{title:"分页",$converter:"/converter/pagination.converter",parentPropertyID:"pagination",properties:{enable:{title:"启用分页",type:"boolean",refreshPanelAfterChanged:!0,editor:{readonly:o}},showIndex:{visible:((t=a.pagination)==null?void 0:t.enable)||!1,title:"显示页码",type:"boolean"},showLimits:{visible:((d=a.pagination)==null?void 0:d.enable)||!1,title:"显示分页条数",type:"boolean"}}}}return{getPagination:l}}function j(){function l(){return{showStripe:{title:"显示条纹",type:"boolean",description:"是否显示条纹"},showBorder:{title:"显示边框",type:"boolean",description:"是否显示边框"},showSetting:{title:"显示设置按钮",type:"boolean",description:"是否显示设置按钮"},emptyTemplate:{title:"空模板",type:"string",description:"空模板",editor:{type:"code-editor",language:"html"}}}}function a(t,d){return{title:"外观",properties:{class:{title:"class样式",type:"string",description:"组件的class样式"},columns:{title:"列设置",description:"列设置",type:"array",editor:{type:"grid-field-editor",viewModelId:d,gridData:t,getLatestGridData:c=>t},refreshPanelAfterChanged:!0},...l()},setPropertyRelates(c,v){switch(c&&c.propertyID){case"useBlankWhenDataIsEmpty":t.emptyDataHeight=t.useBlankWhenDataIsEmpty?36:240;break;case"columns":t.columns=c.propertyValue||[];break}}}}function o(t,d){return{title:"外观",properties:{class:{title:"class样式",type:"string",description:"组件的CSS样式"},columns:{title:"列设置",description:"列设置",$converter:"/converter/items-count.converter",editor:{type:"grid-field-editor",viewModelId:d,gridData:t,gridType:"tree-grid-column"},refreshPanelAfterChanged:!0},...l()},setPropertyRelates(c,v){switch(c&&c.propertyID){case"useBlankWhenDataIsEmpty":t.emptyDataHeight=t.useBlankWhenDataIsEmpty?36:240;break;case"fields":t.fields=c.propertyValue||[];break}}}}return{getDataGrid:a,getTreeGrid:o}}function x(){function l(a){return{title:"排序",description:"",properties:{mode:{title:"类型",type:"enum",description:"排序类型",$converter:"/converter/grid-sort.converter",editor:{data:[{id:"client",name:"客户端"},{id:"server",name:"服务端"}]}}}}}return{getSort:l}}function ee(){function l(a){return{title:"过滤",description:"",properties:{mode:{title:"类型",type:"enum",description:"过滤类型",$converter:"/converter/grid-filter.converter",editor:{data:[{id:"client",name:"客户端"},{id:"server",name:"服务端"}]}}}}}return{getFilter:l}}h.useAppearance=j,h.useColumnOption=U,h.useCommandOption=q,h.useDataGridEvent=J,h.useDesignerColumn=G,h.useDesignerFitColumn=H,h.useDesignerVisualData=z,h.useFilter=ee,h.useGroup=Y,h.usePagination=Z,h.useRowNumber=X,h.useRowOption=L,h.useSelection=Q,h.useSort=x,h.useSummary=K,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -220,41 +220,41 @@ function ie(e, t, r) {
|
|
|
220
220
|
function ae(e, t) {
|
|
221
221
|
let r;
|
|
222
222
|
function o(n) {
|
|
223
|
-
const { properties: s, title:
|
|
224
|
-
if (
|
|
225
|
-
const b =
|
|
223
|
+
const { properties: s, title: m, ignore: i } = n, a = i && Array.isArray(i), c = Object.keys(s).reduce((b, w) => ((!a || !i.find((l) => l === w)) && (b[w] = s[w].type === "object" && s[w].properties ? o(s[w]) : K(s[w].default)), b), {});
|
|
224
|
+
if (m && (!a || !i.find((b) => b === "id"))) {
|
|
225
|
+
const b = m.toLowerCase().replace(/-/g, "_");
|
|
226
226
|
c.id = `${b}_${Math.random().toString().slice(2, 6)}`;
|
|
227
227
|
}
|
|
228
228
|
return c;
|
|
229
229
|
}
|
|
230
230
|
function v(n) {
|
|
231
|
-
const { properties: s, title:
|
|
231
|
+
const { properties: s, title: m, required: i } = n;
|
|
232
232
|
if (i && Array.isArray(i)) {
|
|
233
233
|
const a = i.reduce((c, b) => (c[b] = s[b].type === "object" && s[b].properties ? o(s[b]) : K(s[b].default), c), {});
|
|
234
|
-
if (
|
|
235
|
-
const c =
|
|
234
|
+
if (m && i.find((c) => c === "id")) {
|
|
235
|
+
const c = m.toLowerCase().replace(/-/g, "_");
|
|
236
236
|
a.id = `${c}_${Math.random().toString().slice(2, 6)}`;
|
|
237
237
|
}
|
|
238
238
|
return a;
|
|
239
239
|
}
|
|
240
240
|
return {
|
|
241
|
-
type:
|
|
241
|
+
type: m
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
|
-
function k(n, s = {},
|
|
244
|
+
function k(n, s = {}, m) {
|
|
245
245
|
const i = e[n];
|
|
246
246
|
if (i) {
|
|
247
247
|
let a = v(i);
|
|
248
248
|
const c = t[n];
|
|
249
|
-
return a = c ? c({ getSchemaByType: k }, a, s,
|
|
249
|
+
return a = c ? c({ getSchemaByType: k }, a, s, m) : a, r != null && r.appendIdentifyForNewControl && r.appendIdentifyForNewControl(a), a;
|
|
250
250
|
}
|
|
251
251
|
return null;
|
|
252
252
|
}
|
|
253
253
|
function h(n, s) {
|
|
254
|
-
const
|
|
255
|
-
return Object.keys(
|
|
254
|
+
const m = o(s);
|
|
255
|
+
return Object.keys(m).reduce((i, a) => (Object.prototype.hasOwnProperty.call(n, a) && (i[a] && Z(i[a]) && Z(n[a] || !n[a]) ? Object.assign(i[a], n[a] || {}) : i[a] = n[a]), i), m), m;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function p(n, s) {
|
|
258
258
|
return Object.keys(n).filter((i) => n[i] != null).reduce((i, a) => {
|
|
259
259
|
if (s.has(a)) {
|
|
260
260
|
const c = s.get(a);
|
|
@@ -269,18 +269,18 @@ function ae(e, t) {
|
|
|
269
269
|
return i;
|
|
270
270
|
}, {});
|
|
271
271
|
}
|
|
272
|
-
function F(n, s,
|
|
272
|
+
function F(n, s, m = /* @__PURE__ */ new Map()) {
|
|
273
273
|
const i = h(n, s);
|
|
274
|
-
return
|
|
274
|
+
return p(i, m);
|
|
275
275
|
}
|
|
276
276
|
function u(n) {
|
|
277
|
-
var
|
|
277
|
+
var m;
|
|
278
278
|
const s = n.type;
|
|
279
279
|
if (s) {
|
|
280
280
|
const i = e[s];
|
|
281
281
|
if (!i)
|
|
282
282
|
return n;
|
|
283
|
-
const a = h(n, i), c = ((
|
|
283
|
+
const a = h(n, i), c = ((m = n.editor) == null ? void 0 : m.type) || "";
|
|
284
284
|
if (c) {
|
|
285
285
|
const b = e[c], w = h(n.editor, b);
|
|
286
286
|
a.editor = w;
|
|
@@ -292,7 +292,7 @@ function ae(e, t) {
|
|
|
292
292
|
function g(n) {
|
|
293
293
|
r = n;
|
|
294
294
|
}
|
|
295
|
-
return { getSchemaByType: k, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: F, mappingSchemaToProps:
|
|
295
|
+
return { getSchemaByType: k, resolveSchemaWithDefaultValue: u, resolveSchemaToProps: F, mappingSchemaToProps: p, setDesignerContext: g };
|
|
296
296
|
}
|
|
297
297
|
const se = {}, le = {}, { resolveSchemaWithDefaultValue: qe, resolveSchemaToProps: ze, mappingSchemaToProps: Ue } = ae(se, le);
|
|
298
298
|
function We(e = {}) {
|
|
@@ -300,12 +300,12 @@ function We(e = {}) {
|
|
|
300
300
|
if (typeof n == "number")
|
|
301
301
|
return s[u].length === n;
|
|
302
302
|
if (typeof n == "object") {
|
|
303
|
-
const
|
|
304
|
-
if (
|
|
303
|
+
const m = Object.keys(n)[0], i = n[m];
|
|
304
|
+
if (m === "not")
|
|
305
305
|
return Number(s[u].length) !== Number(i);
|
|
306
|
-
if (
|
|
306
|
+
if (m === "moreThan")
|
|
307
307
|
return Number(s[u].length) >= Number(i);
|
|
308
|
-
if (
|
|
308
|
+
if (m === "lessThan")
|
|
309
309
|
return Number(s[u].length) <= Number(i);
|
|
310
310
|
}
|
|
311
311
|
return !1;
|
|
@@ -323,14 +323,14 @@ function We(e = {}) {
|
|
|
323
323
|
return typeof g == "number" ? [{ target: n, operator: "length", param: null, value: Number(g) }] : typeof g == "boolean" ? [{ target: n, operator: "getProperty", param: u, value: !!g }] : typeof g == "object" ? Object.keys(g).map((s) => {
|
|
324
324
|
if (s === "length")
|
|
325
325
|
return { target: n, operator: "length", param: null, value: g[s] };
|
|
326
|
-
const
|
|
327
|
-
return { target: n, operator: "getProperty", param:
|
|
326
|
+
const m = s, i = g[s];
|
|
327
|
+
return { target: n, operator: "getProperty", param: m, value: i };
|
|
328
328
|
}) : [];
|
|
329
329
|
}
|
|
330
330
|
function k(u) {
|
|
331
331
|
return Object.keys(u).reduce((n, s) => {
|
|
332
|
-
const
|
|
333
|
-
return n.push(...
|
|
332
|
+
const m = v(s, u[s]);
|
|
333
|
+
return n.push(...m), n;
|
|
334
334
|
}, []);
|
|
335
335
|
}
|
|
336
336
|
function h(u, g) {
|
|
@@ -340,11 +340,11 @@ function We(e = {}) {
|
|
|
340
340
|
}
|
|
341
341
|
return !1;
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
return k(u).reduce((
|
|
343
|
+
function p(u, g) {
|
|
344
|
+
return k(u).reduce((m, i) => m && h(i, g), !0);
|
|
345
345
|
}
|
|
346
346
|
function F(u, g) {
|
|
347
|
-
const n = Object.keys(u), s = n.includes("allOf"),
|
|
347
|
+
const n = Object.keys(u), s = n.includes("allOf"), m = n.includes("anyOf"), i = s || m, b = (i ? u[i ? s ? "allOf" : "anyOf" : "allOf"] : [u]).map((l) => p(l, g));
|
|
348
348
|
return s ? !b.includes(!1) : b.includes(!0);
|
|
349
349
|
}
|
|
350
350
|
return { parseValueSchema: F };
|
|
@@ -498,6 +498,8 @@ const Ge = {
|
|
|
498
498
|
}
|
|
499
499
|
if (t === "commands")
|
|
500
500
|
return e.command.enableType === "custom" ? e.command.commands : [];
|
|
501
|
+
if (t === "formatter")
|
|
502
|
+
return e.command.formatter;
|
|
501
503
|
}
|
|
502
504
|
return "";
|
|
503
505
|
}
|
|
@@ -598,7 +600,7 @@ const Ge = {
|
|
|
598
600
|
if (t === "multiSort")
|
|
599
601
|
return !!((v = e.sort) != null && v.multiSort);
|
|
600
602
|
}
|
|
601
|
-
},
|
|
603
|
+
}, mt = {
|
|
602
604
|
convertTo: (e, t, r, o) => {
|
|
603
605
|
e.filter || (e.filter = {}), e.filter[t] = r;
|
|
604
606
|
},
|
|
@@ -607,7 +609,7 @@ const Ge = {
|
|
|
607
609
|
if (t === "mode")
|
|
608
610
|
return ((o = e.filter) == null ? void 0 : o.mode) || "client";
|
|
609
611
|
}
|
|
610
|
-
},
|
|
612
|
+
}, pt = {
|
|
611
613
|
convertTo: (e, t, r, o) => {
|
|
612
614
|
e.rowOption ? e.rowOption[t] = r : e.rowOption = {
|
|
613
615
|
[t]: r
|
|
@@ -631,7 +633,7 @@ const Ge = {
|
|
|
631
633
|
</span>` : e.columnTemplate = `
|
|
632
634
|
<span class="f-pretend-link f-cursor-pointer">
|
|
633
635
|
{{rowData.${e.field}}}
|
|
634
|
-
</span>`), t === "columnTemplateType" && r === "default" && (e.columnTemplate = ""));
|
|
636
|
+
</span>`), t === "columnTemplateType" && r === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && r === "custom" && (e.columnTemplate = ""));
|
|
635
637
|
},
|
|
636
638
|
convertFrom: (e, t, r) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
|
|
637
639
|
};
|
|
@@ -656,8 +658,8 @@ function ce(e, t, r) {
|
|
|
656
658
|
["/converter/size.converter", ut],
|
|
657
659
|
["/converter/change-formatter-enum.converter", dt],
|
|
658
660
|
["/converter/grid-sort.converter", ft],
|
|
659
|
-
["/converter/grid-filter.converter",
|
|
660
|
-
["/converter/row-option.converter",
|
|
661
|
+
["/converter/grid-filter.converter", mt],
|
|
662
|
+
["/converter/row-option.converter", pt],
|
|
661
663
|
["/converter/change-formatter-type.converter", vt]
|
|
662
664
|
]), v = /* @__PURE__ */ new Map([
|
|
663
665
|
["string", { type: "input-group", enableClear: !1 }],
|
|
@@ -687,7 +689,7 @@ function ce(e, t, r) {
|
|
|
687
689
|
function h(i, a) {
|
|
688
690
|
return () => k.parseValueSchema(i, a);
|
|
689
691
|
}
|
|
690
|
-
function
|
|
692
|
+
function p(i, a, c) {
|
|
691
693
|
return i.includes("visible") && a.visible !== void 0 ? typeof a.visible == "boolean" ? () => !!a.visible : a.visible === void 0 ? !0 : h(a.visible, c) : () => !0;
|
|
692
694
|
}
|
|
693
695
|
function F(i, a, c) {
|
|
@@ -699,7 +701,7 @@ function ce(e, t, r) {
|
|
|
699
701
|
}
|
|
700
702
|
function g(i, a, c, b, w, l = "", y = "") {
|
|
701
703
|
return Object.keys(i).map((C) => {
|
|
702
|
-
const T = N(1), D = C, d = i[C], M = Object.keys(d), L = d.title, I = d.type, B = v.get(I) || { type: "input-group", enableClear: !1 }, j = d.editor ? Object.assign({}, B, d.editor) : Object.assign({}, B), V =
|
|
704
|
+
const T = N(1), D = C, d = i[C], M = Object.keys(d), L = d.title, I = d.type, B = v.get(I) || { type: "input-group", enableClear: !1 }, j = d.editor ? Object.assign({}, B, d.editor) : Object.assign({}, B), V = p(M, d, a), A = F(M, d, a);
|
|
703
705
|
j.readonly = j.readonly === void 0 ? A() : j.readonly;
|
|
704
706
|
const _ = d.type === "cascade" ? g(d.properties, a, c, b, w, l, y) : [], J = !0;
|
|
705
707
|
let E = u(d, y);
|
|
@@ -739,7 +741,7 @@ function ce(e, t, r) {
|
|
|
739
741
|
}
|
|
740
742
|
return { categoryId: i, categoryName: "", properties: [] };
|
|
741
743
|
}
|
|
742
|
-
function
|
|
744
|
+
function m(i, a, c, b, w) {
|
|
743
745
|
const l = i.type, y = r(i), P = {};
|
|
744
746
|
let C = w || e[l];
|
|
745
747
|
if (C && Object.keys(C).length === 0 && c && c.getPropConfig && (C = c.getPropConfig(b)), C && C.categories) {
|
|
@@ -757,18 +759,18 @@ function ce(e, t, r) {
|
|
|
757
759
|
return [];
|
|
758
760
|
}
|
|
759
761
|
return {
|
|
760
|
-
getPropertyConfigBySchema:
|
|
762
|
+
getPropertyConfigBySchema: m,
|
|
761
763
|
getPropertyConfigByType: n,
|
|
762
764
|
propertyConverterMap: o
|
|
763
765
|
};
|
|
764
766
|
}
|
|
765
767
|
const ue = {}, de = {};
|
|
766
768
|
ce(ue, de, qe);
|
|
767
|
-
const fe = {},
|
|
768
|
-
ce(
|
|
769
|
-
function bt(e, t, r = /* @__PURE__ */ new Map(), o = (h,
|
|
770
|
-
return se[t.title] = t, le[t.title] = o, ue[t.title] = v, de[t.title] = k, fe[t.title] = t,
|
|
771
|
-
if (!
|
|
769
|
+
const fe = {}, me = {}, { resolveSchemaWithDefaultValue: gt } = ae(fe, me), pe = {}, ve = {};
|
|
770
|
+
ce(pe, ve, gt);
|
|
771
|
+
function bt(e, t, r = /* @__PURE__ */ new Map(), o = (h, p, F, u) => p, v = {}, k = (h) => h) {
|
|
772
|
+
return se[t.title] = t, le[t.title] = o, ue[t.title] = v, de[t.title] = k, fe[t.title] = t, me[t.title] = o, pe[t.title] = v, ve[t.title] = k, (h = {}, p = !0) => {
|
|
773
|
+
if (!p)
|
|
772
774
|
return Ue(h, r);
|
|
773
775
|
const F = ze(h, t, r), u = Object.keys(e).reduce((g, n) => (g[n] = e[n].default, g), {});
|
|
774
776
|
return Object.assign(u, F);
|
|
@@ -793,7 +795,7 @@ function ht() {
|
|
|
793
795
|
const { footerToolbar: o, headerToolbar: v } = t, k = ((o == null ? void 0 : o.buttons) || []).concat((v == null ? void 0 : v.buttons) || []);
|
|
794
796
|
if (!k || k.length < 1)
|
|
795
797
|
return null;
|
|
796
|
-
const [h,
|
|
798
|
+
const [h, p] = r.payloads, F = yt(k, p);
|
|
797
799
|
return F ? F.onClick || F.click : null;
|
|
798
800
|
}
|
|
799
801
|
return {
|
|
@@ -879,7 +881,7 @@ const Tt = /* @__PURE__ */ te({
|
|
|
879
881
|
"f-drawer-mask": !0,
|
|
880
882
|
...l
|
|
881
883
|
};
|
|
882
|
-
}),
|
|
884
|
+
}), p = R(() => {
|
|
883
885
|
const l = {};
|
|
884
886
|
return e.maskClass && e.class.split(" ").forEach((y) => {
|
|
885
887
|
l[y] = !0;
|
|
@@ -907,13 +909,13 @@ const Tt = /* @__PURE__ */ te({
|
|
|
907
909
|
});
|
|
908
910
|
const s = (l, y) => {
|
|
909
911
|
t.emit("click", l, y);
|
|
910
|
-
},
|
|
912
|
+
}, m = {
|
|
911
913
|
close: () => {
|
|
912
914
|
r.value = !1;
|
|
913
915
|
}
|
|
914
916
|
};
|
|
915
917
|
async function i(l, y) {
|
|
916
|
-
l.handle && await l.handle(y,
|
|
918
|
+
l.handle && await l.handle(y, m) && t.emit("closed", y);
|
|
917
919
|
}
|
|
918
920
|
const a = (l, y) => f(xe, {
|
|
919
921
|
class: y,
|
|
@@ -993,7 +995,7 @@ const Tt = /* @__PURE__ */ te({
|
|
|
993
995
|
name: g.value
|
|
994
996
|
}, {
|
|
995
997
|
default: () => [Fe(f("div", {
|
|
996
|
-
class:
|
|
998
|
+
class: p.value,
|
|
997
999
|
style: {
|
|
998
1000
|
width: F.value,
|
|
999
1001
|
height: u.value,
|
|
@@ -1214,11 +1216,11 @@ class kt extends Ne {
|
|
|
1214
1216
|
refreshPanelAfterChanged: !0,
|
|
1215
1217
|
tabId: "commands",
|
|
1216
1218
|
tabName: "交互",
|
|
1217
|
-
setPropertyRelates(h,
|
|
1219
|
+
setPropertyRelates(h, p) {
|
|
1218
1220
|
const F = h.propertyValue;
|
|
1219
|
-
delete
|
|
1221
|
+
delete p[r.viewModelId], F && r.eventsEditorUtils.saveRelatedParameters(p, r.viewModelId, F.events, F);
|
|
1220
1222
|
const u = r.designViewModelUtils.getDgViewModel(r.viewModelId);
|
|
1221
|
-
u && r.designViewModelField && u.changeField(r.designViewModelField.id, { valueChanging:
|
|
1223
|
+
u && r.designViewModelField && u.changeField(r.designViewModelField.id, { valueChanging: p.fieldValueChanging, valueChanged: p.fieldValueChanged });
|
|
1222
1224
|
}
|
|
1223
1225
|
};
|
|
1224
1226
|
}
|
|
@@ -1228,8 +1230,8 @@ function Ft(e, t, r) {
|
|
|
1228
1230
|
function v(n) {
|
|
1229
1231
|
if (!Me().basalDragulaRuleForContainer(n, r))
|
|
1230
1232
|
return !1;
|
|
1231
|
-
const { canAccept:
|
|
1232
|
-
return
|
|
1233
|
+
const { canAccept: m } = o.getTemplateRule(e, r);
|
|
1234
|
+
return m;
|
|
1233
1235
|
}
|
|
1234
1236
|
function k() {
|
|
1235
1237
|
return !1;
|
|
@@ -1237,20 +1239,20 @@ function Ft(e, t, r) {
|
|
|
1237
1239
|
function h() {
|
|
1238
1240
|
return !1;
|
|
1239
1241
|
}
|
|
1240
|
-
function
|
|
1242
|
+
function p() {
|
|
1241
1243
|
return !0;
|
|
1242
1244
|
}
|
|
1243
1245
|
function F() {
|
|
1244
1246
|
return "position: initial !important;border: none !important;left: 0;right: 0;padding: 0;";
|
|
1245
1247
|
}
|
|
1246
1248
|
function u(n) {
|
|
1247
|
-
const s = new kt(n, r), { schema:
|
|
1248
|
-
return s.getPropertyConfig(
|
|
1249
|
+
const s = new kt(n, r), { schema: m } = e;
|
|
1250
|
+
return s.getPropertyConfig(m);
|
|
1249
1251
|
}
|
|
1250
1252
|
function g(n) {
|
|
1251
1253
|
return t;
|
|
1252
1254
|
}
|
|
1253
|
-
return { canAccepts: v, checkCanDeleteComponent: k, checkCanMoveComponent: h, hideNestedPaddingInDesginerView:
|
|
1255
|
+
return { canAccepts: v, checkCanDeleteComponent: k, checkCanMoveComponent: h, hideNestedPaddingInDesginerView: p, getStyles: F, getPropsConfig: u, getDraggableDesignItemElement: g };
|
|
1254
1256
|
}
|
|
1255
1257
|
const ge = Object.assign({}, X, {
|
|
1256
1258
|
componentId: { type: String, default: "" },
|
|
@@ -1260,27 +1262,27 @@ const ge = Object.assign({}, X, {
|
|
|
1260
1262
|
name: "FDrawerDesign",
|
|
1261
1263
|
props: ge,
|
|
1262
1264
|
setup(e, t) {
|
|
1263
|
-
const r = N(), o = N(), v = e.id + "_footer-toolbar", k = e.id + "_header-toolbar", h = Q("designer-host-service"),
|
|
1264
|
-
|
|
1265
|
+
const r = N(), o = N(), v = e.id + "_footer-toolbar", k = e.id + "_header-toolbar", h = Q("designer-host-service"), p = Q("design-item-context"), F = Ft(p, o, h), u = De(r, p, F);
|
|
1266
|
+
p.schema.footerToolbar = p.schema.footerToolbar || {
|
|
1265
1267
|
id: v,
|
|
1266
1268
|
type: "response-toolbar",
|
|
1267
1269
|
buttons: []
|
|
1268
1270
|
};
|
|
1269
|
-
const g = N(
|
|
1270
|
-
z(() =>
|
|
1271
|
-
g.value =
|
|
1271
|
+
const g = N(p.schema.footerToolbar), n = N(q(g.value));
|
|
1272
|
+
z(() => p.schema.footerToolbar, () => {
|
|
1273
|
+
g.value = p.schema.footerToolbar, n.value = q(g.value);
|
|
1272
1274
|
}, {
|
|
1273
1275
|
deep: !0
|
|
1274
1276
|
});
|
|
1275
|
-
const s = Q("design-item-context"),
|
|
1276
|
-
|
|
1277
|
+
const s = Q("design-item-context"), m = R(() => [...n.value.items]);
|
|
1278
|
+
p.schema.headerToolbar = p.schema.headerToolbar || {
|
|
1277
1279
|
id: k,
|
|
1278
1280
|
type: "response-toolbar",
|
|
1279
1281
|
buttons: []
|
|
1280
1282
|
};
|
|
1281
|
-
const i = N(
|
|
1282
|
-
z(() =>
|
|
1283
|
-
i.value =
|
|
1283
|
+
const i = N(p.schema.headerToolbar), a = N(q(i.value));
|
|
1284
|
+
z(() => p.schema.headerToolbar, () => {
|
|
1285
|
+
i.value = p.schema.headerToolbar, a.value = q(i.value);
|
|
1284
1286
|
}, {
|
|
1285
1287
|
deep: !0
|
|
1286
1288
|
});
|
|
@@ -1331,7 +1333,7 @@ const ge = Object.assign({}, X, {
|
|
|
1331
1333
|
}, null)]
|
|
1332
1334
|
});
|
|
1333
1335
|
function I(S, x, $, O) {
|
|
1334
|
-
|
|
1336
|
+
p && p.setupContext && p.setupContext.emit("selectionChange", S, x, $, O);
|
|
1335
1337
|
}
|
|
1336
1338
|
const B = (S, x, $) => f(Ee, {
|
|
1337
1339
|
modelValue: $,
|
|
@@ -1369,7 +1371,7 @@ const ge = Object.assign({}, X, {
|
|
|
1369
1371
|
}, [e.showClose && j()])])]) : null;
|
|
1370
1372
|
function A(S) {
|
|
1371
1373
|
S && (S.preventDefault(), S.stopPropagation()), u.value.onRemoveComponent(h);
|
|
1372
|
-
const x = s == null ? void 0 : s.parent, $ = (O) => O.id ===
|
|
1374
|
+
const x = s == null ? void 0 : s.parent, $ = (O) => O.id === p.schema.id;
|
|
1373
1375
|
if (x && x.schema.contents) {
|
|
1374
1376
|
const O = x.schema.contents.findIndex($);
|
|
1375
1377
|
x.schema.contents.splice(O, 1), je.value++, t.emit("selectionChange");
|
|
@@ -1397,16 +1399,16 @@ const ge = Object.assign({}, X, {
|
|
|
1397
1399
|
ref: o
|
|
1398
1400
|
}, [_(), V(), f("div", {
|
|
1399
1401
|
class: "f-drawer-body drag-container",
|
|
1400
|
-
"data-dragref": `${
|
|
1402
|
+
"data-dragref": `${p.schema.id}-container`,
|
|
1401
1403
|
ref: r,
|
|
1402
1404
|
style: "overflow: auto;",
|
|
1403
|
-
id:
|
|
1405
|
+
id: p.schema.id
|
|
1404
1406
|
}, [(x = (S = t.slots).default) == null ? void 0 : x.call(S)]), e.showFooter && f("div", {
|
|
1405
1407
|
class: "f-drawer-footer px-2 border-top",
|
|
1406
1408
|
style: {
|
|
1407
1409
|
height: e.footerHeight + "px"
|
|
1408
1410
|
}
|
|
1409
|
-
}, [e.footerContentType === "toolbar" && B(v,
|
|
1411
|
+
}, [e.footerContentType === "toolbar" && B(v, m.value, g.value), e.footerContentType === "html" && f("div", {
|
|
1410
1412
|
class: "w-100 h-100",
|
|
1411
1413
|
innerHTML: e.footerTemplate
|
|
1412
1414
|
}, null)])])])];
|