@farris/ui-vue 1.8.0-alpha.0 → 1.8.0-beta.1
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 +138 -1526
- package/components/avatar/index.umd.cjs +1 -6
- package/components/button/index.css +1 -1
- package/components/button/index.esm.js +15951 -15410
- package/components/button/index.umd.cjs +27 -27
- package/components/calendar/index.esm.js +269 -255
- package/components/calendar/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +243 -229
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +32 -32
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +473 -456
- package/components/comment/index.umd.cjs +6 -6
- package/components/component/index.css +1 -1
- package/components/component/index.esm.js +2503 -2239
- package/components/component/index.umd.cjs +2 -2
- package/components/condition/index.esm.js +1064 -954
- package/components/condition/index.umd.cjs +2 -2
- package/components/data-grid/index.esm.js +1 -1
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +3894 -3058
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +91 -77
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +220 -215
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +145 -131
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +336 -329
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1611 -1536
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +219 -219
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/external-container/index.esm.js +179 -178
- package/components/external-container/index.umd.cjs +1 -1
- package/components/fieldset/index.esm.js +285 -221
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -0
- package/components/filter-bar/index.esm.js +1512 -1290
- package/components/filter-bar/index.umd.cjs +7 -7
- package/components/filter-condition-editor/index.esm.js +851 -831
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +520 -501
- package/components/flow-canvas/index.umd.cjs +8 -8
- package/components/image/index.esm.js +101 -79
- package/components/image/index.umd.cjs +3 -3
- package/components/language-textbox/index.esm.js +330 -251
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/list-nav/index.esm.js +399 -313
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/locale/index.esm.js +3 -0
- package/components/locale/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +997 -976
- package/components/lookup/index.umd.cjs +2 -2
- package/components/mapping-editor/index.esm.js +725 -705
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +542 -522
- package/components/message-box/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +95 -308
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +115 -107
- package/components/number-range/index.umd.cjs +2 -2
- package/components/order/index.esm.js +56 -54
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +135 -123
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +266 -222
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +402 -375
- package/components/property-panel/index.umd.cjs +4 -4
- package/components/query-solution/index.esm.js +3171 -3061
- package/components/query-solution/index.umd.cjs +7 -7
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1620 -1608
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/scroll-navbar/index.esm.js +150 -136
- package/components/scroll-navbar/index.umd.cjs +2 -2
- package/components/section/index.esm.js +323 -311
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +850 -830
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/step/index.esm.js +991 -224
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +356 -334
- package/components/tabs/index.umd.cjs +1 -1
- package/components/wizard/index.esm.js +159 -162
- package/components/wizard/index.umd.cjs +1 -1
- package/designer/avatar/index.esm.js +1721 -0
- package/designer/avatar/index.umd.cjs +6 -0
- package/designer/button-edit/index.esm.js +2 -1
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +693 -659
- package/designer/data-grid/index.umd.cjs +6 -6
- package/designer/data-view/index.esm.js +90 -78
- package/designer/data-view/index.umd.cjs +2 -2
- package/designer/date-picker/index.esm.js +203 -203
- package/designer/date-picker/index.umd.cjs +1 -1
- package/designer/drawer/index.esm.js +181 -167
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +228 -206
- package/designer/dynamic-form/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +10014 -9692
- package/designer/farris-designer.all.umd.cjs +18 -18
- package/designer/index.css +1 -1
- package/designer/input-group/index.esm.js +15 -15
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/nav/index.esm.js +1719 -0
- package/designer/nav/index.umd.cjs +6 -0
- package/designer/number-spinner/index.esm.js +8 -7
- package/designer/number-spinner/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +133 -125
- package/designer/radio-group/index.umd.cjs +2 -2
- package/designer/response-toolbar/index.esm.js +864 -863
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +245 -183
- package/designer/section/index.umd.cjs +1 -1
- package/designer/tabs/index.css +1 -1
- package/designer/tabs/index.esm.js +3667 -2810
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +26 -17
- package/designer/time-picker/index.umd.cjs +2 -2
- package/designer/tree-grid/index.esm.js +69 -37
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/designer/wizard/index.esm.js +110 -110
- package/designer/wizard/index.umd.cjs +3 -3
- package/farris.all.esm.js +39993 -39089
- package/farris.all.umd.cjs +36 -36
- package/index.css +1 -1
- package/locales/filter-bar/ui/en.json +1 -0
- package/locales/filter-bar/ui/zh-CHS.json +1 -0
- package/locales/filter-bar/ui/zh-CHT.json +1 -0
- package/locales/ui/en.json +1 -0
- package/locales/ui/zh-CHS.json +1 -0
- package/locales/ui/zh-CHT.json +1 -0
- package/package.json +1 -1
- package/types/avatar/designer.d.ts +28 -0
- package/types/avatar/index.d.ts +0 -15
- package/types/avatar/src/composition/types.d.ts +3 -0
- package/types/avatar/src/composition/use-file.d.ts +19 -0
- package/types/avatar/src/composition/use-image.d.ts +1 -1
- package/types/avatar/src/designer/avatar.design.props.d.ts +24 -0
- package/types/avatar/src/property-config/avatar.property-config.d.ts +11 -13
- package/types/avatar/src/schema/schema-mapper.d.ts +2 -0
- package/types/components.d.ts +3 -0
- package/types/condition/index.d.ts +18 -6
- package/types/condition/src/condition-fields.component.d.ts +9 -3
- package/types/condition/src/condition-fields.design.component.d.ts +9 -3
- package/types/condition/src/condition-list.component.d.ts +9 -3
- package/types/condition/src/condition.props.d.ts +11 -0
- package/types/data-view/designer/property-config/use-appearance.d.ts +17 -10
- package/types/data-view/designer/property-config/use-pagination.d.ts +0 -6
- package/types/designer-canvas/src/composition/dg-control.d.ts +13 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +4 -0
- package/types/dynamic-resolver/src/converter/tree-auto-check.converter.d.ts +3 -0
- package/types/dynamic-view/src/components/maps.d.ts +130 -4
- package/types/filter-bar/src/composition/types.d.ts +2 -0
- package/types/filter-bar/src/filter-bar.props.d.ts +0 -1
- package/types/filter-bar/src/locale/locale.d.ts +2 -1
- package/types/filter-bar/src/property-config/filter-bar.property-config.d.ts +0 -1
- package/types/language-textbox/index.d.ts +65 -2
- package/types/language-textbox/src/designer/language-textbox.design.component.d.ts +36 -0
- package/types/language-textbox/src/language-textbox.component.d.ts +38 -1
- package/types/language-textbox/src/language-textbox.props.d.ts +20 -0
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/lookup/src/composition/use-compat.d.ts +28 -0
- package/types/lookup/src/composition/use-state.d.ts +1 -0
- package/types/message-box/src/message-box.service.d.ts +2 -1
- package/types/nav/designer.d.ts +28 -0
- package/types/nav/index.d.ts +24 -20
- package/types/nav/src/designer/nav.design.props.d.ts +29 -0
- package/types/nav/src/designer/use-design-rules.d.ts +3 -0
- package/types/nav/src/property-config/nav.property-config.d.ts +9 -0
- package/types/nav/src/schema/schema-mapper.d.ts +4 -0
- package/types/page-footer/src/designer/use-designer-rules.d.ts +2 -2
- package/types/page-header/src/designer/use-designer-rules.d.ts +2 -2
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +1 -1
- package/types/section/src/designer/section.design.props.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +39 -0
- package/types/section/src/schema/toolbar-resolver.d.ts +0 -1
- package/types/step/src/designer/use-designer-rules.d.ts +3 -0
- package/types/step/src/designer/use-step-creator.d.ts +6 -0
- package/types/step/src/property-config/step.property-config.d.ts +15 -0
- package/types/step/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +4 -0
- package/types/tabs/src/tabs.props.d.ts +6 -0
- package/types/tooltip/index.d.ts +3 -3
- package/types/tooltip/src/tooltip.component.d.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(ee,X){typeof exports=="object"&&typeof module<"u"?X(exports,require("../../components/common/index.umd.js"),require("../../components/dynamic-resolver/index.umd.js"),require("../../components/response-toolbar/index.umd.js"),require("vue"),require("../../components/locale/index.umd.js"),require("../../components/designer-canvas/index.umd.js"),require("../../components/property-panel/index.umd.js"),require("lodash-es"),require("../../components/tabs/index.umd.js")):typeof define=="function"&&define.amd?define(["exports","../../components/common/index.umd.js","../../components/dynamic-resolver/index.umd.js","../../components/response-toolbar/index.umd.js","vue","../../components/locale/index.umd.js","../../components/designer-canvas/index.umd.js","../../components/property-panel/index.umd.js","lodash-es","../../components/tabs/index.umd.js"],X):(ee=typeof globalThis<"u"?globalThis:ee||self,X(ee["response-toolbar"]={},ee.common,ee.dynamicResolver,ee.responseToolbar,ee.Vue,ee.locale,ee.designerCanvas,ee.propertyPanel,ee.LodashES,ee.tabs))})(this,function(ee,X,ue,qe,a,lt,ye,Fe,we,at){"use strict";var Jt=Object.defineProperty;var Kt=(ee,X,ue)=>X in ee?Jt(ee,X,{enumerable:!0,configurable:!0,writable:!0,value:ue}):ee[X]=ue;var K=(ee,X,ue)=>Kt(ee,typeof X!="symbol"?X+"":X,ue);const ct=new Map([["buttons","items"],["appearance",ue.resolveAppearance]]);function Ie(e,x,t){return x}const dt={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/response-toolbar.schema.json",title:"response-toolbar",description:"A Farris Toolbar Component",type:"object",properties:{id:{description:"The unique identifier for a Response Toolbar",type:"string"},type:{description:"The type string of Response Toolbar",type:"string",default:"response-toolbar"},appearance:{description:"",type:"object",properties:{class:{type:"string",default:""}}},alignment:{description:"The alignment of Response Toolbar Button.",type:"string",default:"right"},buttons:{description:"The items of Response Toolbar.",type:"array",default:[]},buttonSize:{type:"string",default:""},visible:{description:"",type:"boolean",default:!0}},required:["id","type","buttons"],events:{onClick:"点击事件"}},ut={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/response-toolbar-item.schema.json",title:"response-toolbar-item",description:"A Farris Toolbar Item Component",type:"object",properties:{id:{description:"The unique identifier for a Response Toolbar",type:"string"},type:{description:"The type string of Response Toolbar",type:"string",default:"response-toolbar-item"},appearance:{description:"",type:"object",properties:{class:{type:"string",default:""}}},alignment:{description:"对齐",type:"string",default:"right"},text:{description:"文本",type:"string",default:"按钮"},icon:{description:"图标",type:"string",default:""},disabled:{description:"禁用",type:"boolean",default:!1},visible:{description:"是否可见",type:"boolean",default:!0},onClick:{description:"点击事件",type:"string",default:""},tipsEnable:{description:"",type:"boolean",default:!1},tipsText:{description:"",type:"string",default:""},dropdownClass:{description:"处于下拉菜单时的样式",type:"string",default:""},split:{description:"",type:"boolean",default:!1}},required:["id","type","text"],events:{onClick:"点击事件"}},ft=Object.assign({},qe.responseToolbarProps,{componentId:{type:String,default:""}}),Pe=ue.createPropsResolver(qe.responseToolbarProps,dt,ct,Ie),We={id:{type:String,default:""},item:{type:Object,default:{}},items:{type:Object,default:{}},class:{type:String,default:""},text:{type:String,default:""},disabled:{type:Boolean,default:!1},icon:{type:String,default:""},componentId:{type:String,default:""},expanded:{type:Boolean,default:!1},alignment:{Type:String,default:"right"},split:{type:Boolean,default:!1},isDP:{type:Boolean,default:!1},isDPItem:{type:Boolean,default:!1}},ze=Object.assign({},We,{item:{type:Object,default:{}},items:{type:Object,default:{}},class:{type:String,default:"btn-secondary"},alignment:{Type:String,default:"right"}}),pt=ue.createPropsResolver(ze,ut,void 0,Ie),ht=ue.createResponseToolbarEventHandlerResolver(),gt={id:{type:String,default:""},customClass:{type:String,default:""},alignment:{Type:String,default:"right"},items:{Type:Array,default:[]},visible:{type:Boolean,default:!0},buttonSize:{type:String,default:""}};class Ge{constructor(x){K(this,"id","");K(this,"class","btn-secondary");K(this,"icon","");K(this,"groupId","");K(this,"order",-1);K(this,"asDropDownTop",!1);K(this,"text","");K(this,"visible",!0);K(this,"shown",!0);K(this,"responsed",!1);K(this,"tipsEnable",!1);K(this,"tipsText","");K(this,"width",0);K(this,"dropdownClass","");K(this,"onClick",()=>{});K(this,"options");var g,d;this.options=x;const t=["id","class","icon","groupId","order","asDropDownTop","text","isDP","visible","responsed","width","tipsEnable","tipsText","dropdownClass","onClick"];Object.keys(x).filter(r=>t.indexOf(r)>-1).forEach(r=>{r==="visible"?this[r]=x[r]===void 0?!0:x[r]:this[r]=x[r]}),this.shown=this.visible,(g=x.appearance)!=null&&g.class&&(this.class=(d=x.appearance)==null?void 0:d.class)}get enable(){return Object.keys(this.options).indexOf("disabled")>-1?!this.options.disabled:a.computed(()=>!0)}setWidth(x){this.width=parseInt(x,10)}getWidth(){return this.visible?this.width:!1}}class bt extends Ge{constructor(x){super(x)}}function Ue(){function e(x){const t=[];return x.reduce((g,d)=>(d.children&&d.children.length>0?g.push(new De(d)):g.push(new bt(d)),g),t),t}return{buildResponseToolbarItems:e}}const{buildResponseToolbarItems:mt}=Ue();class De extends Ge{constructor(t){super(t);K(this,"placement","");K(this,"visible",!0);K(this,"dropdownClass","");K(this,"menuClass","");K(this,"split",!1);K(this,"children",[]);K(this,"expanded",!1);K(this,"shown",!0);const g=["visible","icon","isDP","class","dropdownClass","menuClass","placement","split","expanded"];Object.keys(t).filter(d=>g.indexOf(d)>-1).forEach(d=>{d==="visible"?this[d]=t[d]===void 0?!0:t[d]:this[d]=t[d]}),this.shown=this.visible,t.children&&t.children.length&&(this.children=mt(t.children))}}function Ee(){function e(t){const g={"f-icon":!0};if(t.icon){const d=t.icon.trim().split(" ");d&&d.length&&d.reduce((r,D)=>(r[D]=!0,r),g)}return g}function x(t){return!!(t.icon&&t.icon.trim())}return{iconClass:e,shouldShowIcon:x}}function vt(e,x){function t(h){const n={"dropdown-menu":!0};return X.getCustomClass(n,h.menuClass)}function g(h){const n={disabled:!h.enable,"dropdown-submenu":!0,"f-rt-dropdown":!0,"text-truncate":!0};return X.getCustomClass(n,h.dropdownClass)}function d(h){const n={disabled:!h.enable,"dropdown-item":!0,"f-rt-btn":!0,"text-truncate":!0};return X.getCustomClass(n,h.dropdownClass)}function r(h){const n={disabled:!h.enable,"dropdown-item":!0,"f-rt-btn":!0,"text-truncate":!0,"f-rt-toggle":!h.split,"btn-icontext":!!(h.icon&&h.icon.trim()),"dropdown-toggle":!h.split,"btn-secondary":!0};return X.getCustomClass(n,h.dropdownClass)}function D(h){const n={"f-rt-btn":!0,"text-truncate":!0,"btn-icontext":!!(h.icon&&h.icon.trim()),"d-block":!0};return X.getCustomClass(n,h.dropdownClass)}let C;const b=new Map;let M="";function E(h){M="#"+h}function u(h,n,L){h.stopPropagation();const P=L?L.id:"__top_item__";if(n.children&&n.children.length&&(n.expanded=!n.expanded,n.expanded)){if(b.has(P)&&b.get(P)!==n){const p=b.get(P);p&&(p.expanded=!1,b.delete(P))}b.set(P,n)}}function l(h,n){document.body.click(),n.enable&&(h.stopPropagation(),typeof n.onClick=="function"&&n.onClick(h,n.id),e.emit("click",h,n.id))}function f(h,n){const L=h.target;L.className.indexOf("dropdown-item")<0||(L.title=L.scrollWidth>L.clientWidth?n:"")}function i(h,n,L){if(n.tipsEnable&&n.tipsText){const P=a.reactive({content:n.tipsText,enable:n.tipsEnable});return a.withDirectives(a.createVNode("li",{class:d(n),id:n.id,key:n.id+"_"+L,onClick:p=>l(p,n)},[a.createVNode("span",{class:D(n)},[x.shouldShowIcon(n)&&a.createVNode("i",{class:x.iconClass(n)},null),n.text])]),[[a.resolveDirective("tooltip"),P]])}return a.createVNode("li",{class:d(n),id:n.id,onClick:P=>l(P,n)},[a.createVNode("span",{class:D(n),onMouseenter:P=>f(P,n.text)},[x.shouldShowIcon(n)&&a.createVNode("i",{class:x.iconClass(n)},null),n.text])])}function o(h,n,L){n.enable&&(typeof n.onClick=="function"&&L.onClick(h,n.id),e.emit("click",h,n.id),L.split||u(h,n,L))}function S(h,n,L){h&&h.stopPropagation(),u(h,n,L)}function B(h,n){h.stopPropagation();const L=n.id;if(n.children&&n.children.length&&n.expanded&&b.has(L)){const P=b.get(L);P&&(P.expanded=!1,b.delete(L))}}function z(h,n,L){if(n.tipsEnable&&n.tipsText){const P=a.reactive({content:n.tipsText,enable:n.tipsEnable});return a.createVNode("li",{class:g(n),id:n.id,key:n.id+"_"+L,onClick:p=>o(p,n,h)},[a.withDirectives(a.createVNode("span",{class:r(n)},[x.shouldShowIcon(n)&&a.createVNode("i",{class:x.iconClass(n)},null),n.text]),[[a.resolveDirective("tooltip"),P]]),n.split&&a.createVNode("span",{class:"dropdown-toggle dropdown-toggle-split f-rt-toggle",onClick:p=>S(p,n,h)},null),C(n,n)])}return a.createVNode("li",{class:g(n),id:n.id,onClick:P=>o(P,n,h),onMouseenter:P=>f(P,n.text)},[a.createVNode("span",{class:r(n)},[x.shouldShowIcon(n)&&a.createVNode("i",{class:x.iconClass(n)},null),n.text]),n.split&&a.createVNode("span",{class:"dropdown-toggle dropdown-toggle-split f-rt-toggle",onClick:P=>S(P,n,h)},null),C(n,n)])}function O(h){return h.children.filter(n=>n.visible).map((n,L)=>n.children&&n.children.length?z(h,n,L):i(h,n,L))}function k(h,n){if(!h)return 1080;let L=-1;const P=h.children.length;for(let p=0;p<P;p++)if(h.children[p].id===n){L=p;break}return 1080+P-L}function m(h,n,L){var q,U;const P={display:h.expanded?"block":"none",position:"fixed",maxWidth:"300px",minWidth:"120px",zIndex:1080,overflowY:"auto",maxHeight:"none"},p=document.querySelector(M);if(!p)return P;const y=a.getCurrentInstance();let s=(U=(q=y==null?void 0:y.exposed)==null?void 0:q.elementRef.value)==null?void 0:U.querySelector("#"+n);if(s||(s=p==null?void 0:p.querySelector("#"+n)),!s)return P;const v=window.innerWidth,I=window.innerHeight,N=s==null?void 0:s.getClientRects();if(s&&N&&N.length){const{top:Y,width:V,left:$,right:Q,height:G}=N[0],H=Math.ceil(G+Y);P.top=`${H}px`,P.left=`${$}px`;const F=h.id+"_menu",oe=(s==null?void 0:s.querySelector("#"+F))||(p==null?void 0:p.querySelector("#"+F))||null;if(oe){oe.style.visibility="hidden",oe.style.display="block";const ae=oe.offsetHeight;P.zIndex=h.expanded?k(p,F):1080,P.display==="block"&&(oe.style.display="block");const w=oe.getBoundingClientRect();if(L){P.top=`${Y-6}px`;const T=Math.ceil(V+$);P.left=`${T}px`}v-$-V<w.width&&(P.left=`${(L?$:Q)-w.width}px`),I-Y-G<ae?Y>ae?(P.top=`${Y-ae-6}px`,P.maxHeight=`${Y-16}px`):(P.maxHeight=`${I-H}px`,Y>I-Y-G&&(P.top="10px",P.maxHeight=`${Y-16}px`)):P.maxHeight=`${I-H}px`,oe.style.visibility="visible"}}return P}C=function(h,n){const L=n?n.id:h.id;return a.createVNode(a.Teleport,{to:M,disabled:!h.expanded},{default:()=>[a.createVNode("ul",{class:t(h),style:m(h,L,n),id:h.id+"_menu",onWheel:P=>B(P,h)},[O(h)])]})};function R(){b.forEach(h=>{h.expanded=!1}),b.clear()}return{renderDropdownMenu:C,clearAllDropDownMenu:R,updateContainerId:E}}function yt(e,x,t){const g=a.ref(e.alignment),{renderDropdownMenu:d,clearAllDropDownMenu:r,updateContainerId:D}=vt(x,t);function C(o){const S={"btn-group":!0,"f-rt-dropdown":!0,"f-btn-ml":g.value==="right"||g.value==="center","f-btn-mr":g.value==="left"};return X.getCustomClass(S,o.dropdownClass)}function b(o){const S={btn:!0,disabled:!o.enable,"f-rt-btn":!0,"btn-icontext":!!(o.icon&&o.icon.trim())&&o.text,"f-rt-toggle":!o.split,"dropdown-toggle":!o.split,"f-btn-icon":o.icon&&!o.text};return X.getCustomClass(S,o.class)}function M(o){const S={btn:!0,"dropdown-toggle":!0,"dropdown-toggle-split":!0};return X.getCustomClass(S,o.class)}function E(o){return o.split?{display:"flex"}:{display:"flex","border-radius":"6px"}}function u(o,S){o.stopPropagation();const B=S.expanded;document.body.click(),typeof S.onClick=="function"&&S.onClick(o,S.id),x.emit("click",o,S.id),S.split||(S.expanded=!B)}function l(o,S){o.stopPropagation();const B=S.expanded;document.body.click(),S.expanded=!B}function f(o,S=!0){if(o.tipsEnable&&o.tipsText){const B=a.reactive({content:o.tipsText,enable:o.tipsEnable});return a.createVNode("div",{id:o.id,class:C(o)},[a.withDirectives(a.createVNode("div",{class:b(o),style:E(o),onClick:z=>o.enable&&u(z,o)},[t.shouldShowIcon(o)&&a.createVNode("i",{class:t.iconClass(o)},null),o.text&&a.createVNode("span",null,[o.text])]),[[a.resolveDirective("tooltip"),B]]),o.split&&a.createVNode("button",{class:M(o),style:"border-radius:0 6px 6px 0;",onClick:z=>l(z,o)},null),S&&d(o)])}return a.createVNode("div",{id:o.id,class:C(o)},[a.createVNode("div",{class:b(o),style:E(o),onClick:B=>o.enable&&u(B,o)},[t.shouldShowIcon(o)&&a.createVNode("i",{class:t.iconClass(o)},null),o.text&&a.createVNode("span",null,[o.text])]),o.split&&a.createVNode("button",{class:M(o),style:"border-radius:0 6px 6px 0;",onClick:B=>l(B,o)},null),S&&d(o)])}function i(){r()}return{renderToolbarDropdown:f,clearAllDropDown:i,updateContainerId:D}}const{buildResponseToolbarItems:Ye}=Ue(),wt=a.defineComponent({name:"FResponseToolbar",props:gt,emits:["click"],setup(e,x){const t=a.ref(Ye(e.items)),g=a.ref(),d=a.ref(),r=a.ref(),D=X.isMobilePhone(),C={id:"__more_buttons__",text:D?"":lt.LocaleService.getLocaleValue("responseToolbar.more"),icon:D?"f-icon-more-horizontal":""},b=a.ref(new De(C)),M=Object.assign({},C,{id:C.id+"width"}),E=a.ref(-1),u=Ee();let l=!1;const{guid:f,uuid:i}=X.useGuid(),o=e.id?e.id:"toolbar-"+f(),S=a.ref(),B="dropdown-container-"+o+"-"+i(4),{renderToolbarDropdown:z,clearAllDropDown:O,updateContainerId:k}=yt(e,x,u);k(B);const m=a.computed(()=>b.value.children.length>0),R=a.computed(()=>e.visible?b.value.children.length>0?!0:t.value.findIndex(w=>w.shown&&w.children&&w.children.length>0)>-1:!1);function h(){e.visible&&!S.value&&document&&(S.value=document.createElement("div"),S.value.id=B,document.body.appendChild(S.value))}h();function n(){S.value&&document.body.contains(S.value)&&(document.body.removeChild(S.value),S.value=null)}a.watch(R,(w,T)=>{w?h():n()});const L=a.computed(()=>{const w={"f-toolbar":!0,"f-response-toolbar":!0,"position-relative":!0,"f-response-toolbar-sm":e.buttonSize==="sm","f-response-toolbar-lg":e.buttonSize==="lg","d-none":!e.visible};return X.getCustomClass(w,e.customClass)}),P=a.computed(()=>({"w-100":!0,"d-flex":!0,"flex-nowrap":!0,"justify-content-end":e.alignment==="right","justify-content-start":e.alignment==="left","justify-content-center":e.alignment==="center"}));function p(w){w&&w.target.closest("ul.dropdown-menu")&&w.type==="wheel"||(t.value.filter(T=>T.children&&T.children.length>0).forEach(T=>{T.expanded=!1}),b.value.expanded=!1,O())}function y(w,T){var ne;const A={btn:!0,"f-rt-btn":!0,"f-btn-ml":e.alignment==="right"||T>0&&e.alignment==="center","f-btn-mr":e.alignment==="left","btn-icontext":!!(w.icon&&w.icon.trim())},te=((ne=w==null?void 0:w.appearance)==null?void 0:ne.class)||w.class||"btn-secondary";return X.getCustomClass(A,te)}function s(w,T){document.body.click(),typeof T.onClick=="function"&&T.onClick(w,T.id),x.emit("click",w,T.id)}function v(w,T){if(w.tipsEnable&&w.tipsText){const A=a.reactive({content:w.tipsText,enable:w.tipsEnable});return a.withDirectives(a.createVNode("button",{type:"button",class:y(w,T),id:w.id,disabled:!w.enable,onClick:te=>s(te,w)},[u.shouldShowIcon(w)&&a.createVNode("i",{class:u.iconClass(w)},null),w.text]),[[a.resolveDirective("tooltip"),A]])}return a.createVNode("button",{type:"button",class:y(w,T),id:w.id,disabled:!w.enable,onClick:A=>s(A,w)},[u.shouldShowIcon(w)&&a.createVNode("i",{class:u.iconClass(w)},null),w.text])}let I=new Map,N=[];function q(w){const T=Math.ceil(parseFloat(getComputedStyle(w).getPropertyValue("margin-left"))),A=Math.ceil(parseFloat(getComputedStyle(w).getPropertyValue("margin-right")));return(T||0)+w.getBoundingClientRect().width+(A||0)}function U(w,T,A){if(T<E.value){let te=A-1;for(;te>=0;te--){const ne=w[te],re=q(ne);if(T+=re,T>=E.value)break}A=te}return T-=E.value,A=A<0?0:A,{start:A,space:T}}function Y(w){const T=r.value;let A=w;const ne=Array.from(T.children).filter(ce=>ce.id!=="__more_buttons__"),re=ne.length;let Ce=!1,se=0;for(;se<re;se++){const ce=ne[se],xe=q(ce);if(xe<=A)A-=xe;else{const he=U(ne,A,se);se=he.start,A=he.space,Ce=!0;break}}if(!Ce&&N.length>0){const ce=U(ne,A,se);se=ce.start,A=ce.space}const ke=N.length>0;for(;se<re;se++){const ce=ne[se],xe=q(ce);I.set(ce.id,!0);const he=N.find(Re=>Re.id===ce.id);he?he.width=xe:N[ke?"unshift":"push"]({id:ce.id,width:xe})}return A}function V(){I=new Map,N=[]}function $(w=!1){const T=Object.assign({},b.value);T.children=[];const A=new De(T),te=t.value.reduce((ne,re)=>{const Ce=e.items.find(se=>se.id===re.id);return w?(A.children.push(re),re.shown=!1,ne):(I.has(re.id)?(A.children.push(re),re.shown=!1):re.shown=Ce.visible!==!1,ne.push(re),ne)},[]);b.value=A,t.value=te}function Q(w){if(D){V(),$(!0);return}let T=Y(w);if(N.length){let A=0;for(;A<N.length;A++){const te=e.items.find(ne=>ne.id===N[A].id);if(te&&te.visible!==!1){const ne=N[A].width;if(T>=ne||A===N.length-1&&T+E.value>=ne)T-=ne;else break}}for(let te=0;te<A;te++)I.delete(N[te].id);N.splice(0,A-1)}$()}function G(){if(g.value&&E.value<0){const w=g.value.querySelector("#"+M.id);if(!w)return;w.getBoundingClientRect().width===0?E.value=-1:E.value=q(w)}}function H(w=-1){if(w===0||!r.value||!d.value)return;w<0&&(w=d.value.getBoundingClientRect().width);const T=r.value.getBoundingClientRect().width;if(D){Q(w),p();return}(w>=0&&w<T||N.length)&&(G(),Q(w),p())}function F(){return E.value<0&&a.createVNode("div",{style:"position:fixed;top:-40px;visibility:hidden;"},[z(new De(M))])}const oe=new ResizeObserver(w=>{if(w.length){if(D)return;const A=w[0].contentRect.width;H(A)}});function ae(){d.value&&!l&&(oe.observe(d.value),l=!0)}return a.onMounted(()=>{G(),H(),ae(),document.body.addEventListener("click",p),document.body.addEventListener("wheel",p)}),a.onUnmounted(()=>{oe.disconnect(),n(),document.body.removeEventListener("click",p),document.body.removeEventListener("wheel",p)}),a.watch(()=>e.items,()=>{t.value=Ye(e.items),b.value.children=[],a.nextTick(()=>{G(),V(),H()})},{deep:!0}),a.watch(()=>e.visible,w=>{w&&a.nextTick(()=>{G(),H(),ae()})}),x.expose({elementRef:g}),()=>a.createVNode("div",{class:L.value,id:o,ref:g,style:{"overflow-y":E.value<0?"hidden":"initial"}},[e.visible&&F(),e.visible&&a.createVNode("div",{ref:d,class:P.value},[a.createVNode("div",{ref:r,class:"d-inline-block f-response-content",style:"white-space: nowrap;"},[t.value.filter(w=>w.shown).map((w,T)=>w.children&&w.children.length>0?z(w):v(w,T)),m.value&&z(b.value)])])])}});class Ct extends Fe.BaseControlProperty{constructor(t,g,d="response-toolbar"){super(t,g);K(this,"toolbarType","response-toolbar");this.toolbarType=d}getPropertyConfig(t){return this.propertyConfig.categories.basic=this.getBasicPropConfig(t),this.toolbarType!=="tab-toolbar"&&this.getAppearancePropConfig(t),this.propertyConfig.categories.behavior=this.getBehaviorConfig(t),this.propertyConfig}getAppearancePropConfig(t){this.propertyConfig.categories.appearance={title:"外观",description:"Appearance",properties:{class:{title:"class样式",type:"string",description:"组件的CSS样式",$converter:"/converter/appearance.converter",parentPropertyID:"appearance"}}}}getBehaviorProperties(t){this.propertyConfig.categories.behavior={title:"行为",description:"",properties:{alignment:{title:"对齐方式",description:"在工具栏区域内按钮组的位置",type:"enum",editor:{type:"combo-list",textField:"name",valueField:"value",data:[{value:"left",name:"左对齐"},{value:"center",name:"居中"},{value:"right",name:"右对齐"}]}}}}}}function xt(e,x,t){const g=e.schema;function d(){var o,S,B;let i=((o=e.parent)==null?void 0:o.schema.type)||"";i==="drawer"&&(((S=e.parent)==null?void 0:S.schema.headerToolbar.id)===g.id?i="drawer-header-toolbar":((B=e.parent)==null?void 0:B.schema.footerToolbar.id)===g.id&&(i="drawer-footer-toolbar")),["page-header","tabs","section","drawer-header-toolbar","drawer-footer-toolbar"].findIndex(z=>z===i)===-1&&(i=""),t.toolbarPosition=i}d();function r(i){return!1}function D(i,o){return o.text=i.label,o}function C(){return!1}function b(){return!1}function M(){return!1}function E(){return!0}function u(i){return new Ct(i,x,g.type).getPropertyConfig(g)}function l(i){var z;i&&(i.stopPropagation(),i.preventDefault());const{schema:o}=e;o.buttons||(o.buttons=[]);let S="";if(o.type)S=o.type+"-item";else switch((z=e.parent)==null?void 0:z.schema.type){case"tabs":S="tab-toolbar-item";break;case"section":S="section-toolbar-item";break;case"drawer":S="drawer-toolbar-item";break;default:S="response-toolbar-item"}const B=ue.getSchemaByType(S);B.id=`toolbar_item_${Math.random().toString().slice(2,6)}`,o.buttons.push(B),t.updateToolbarItems(),t.changeSelectedId("")}function f(){return[{id:"appendItem",title:"新增按钮",text:"",icon:"f-icon f-icon-plus-circle text-white",onClick:i=>l(i)}]}return{canAccepts:r,checkCanAddComponent:M,checkCanDeleteComponent:b,checkCanMoveComponent:C,hideNestedPaddingInDesginerView:E,onResolveNewComponentSchema:D,getPropsConfig:u,getCustomButtons:f}}var be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Se(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Xe={exports:{}};(function(e,x){(function(t){e.exports=t()})(function(){return function(){function t(g,d,r){function D(M,E){if(!d[M]){if(!g[M]){var u=typeof Se=="function"&&Se;if(!E&&u)return u(M,!0);if(C)return C(M,!0);var l=new Error("Cannot find module '"+M+"'");throw l.code="MODULE_NOT_FOUND",l}var f=d[M]={exports:{}};g[M][0].call(f.exports,function(i){var o=g[M][1][i];return D(o||i)},f,f.exports,t,g,d,r)}return d[M].exports}for(var C=typeof Se=="function"&&Se,b=0;b<r.length;b++)D(r[b]);return D}return t}()({1:[function(t,g,d){var r={},D="(?:^|\\s)",C="(?:\\s|$)";function b(u){var l=r[u];return l?l.lastIndex=0:r[u]=l=new RegExp(D+u+C,"g"),l}function M(u,l){var f=u.className;f.length?b(l).test(f)||(u.className+=" "+l):u.className=l}function E(u,l){u.className=u.className.replace(b(l)," ").trim()}g.exports={add:M,rm:E}},{}],2:[function(t,g,d){(function(r){var D=t("contra/emitter"),C=t("crossvent"),b=t("./classes"),M=document,E=M.documentElement;function u(p,y){var s=arguments.length;s===1&&Array.isArray(p)===!1&&(y=p,p=[]);var v,I,N,q,U,Y,V,$,Q,G=null,H,F,oe=!1,ae=0,w,T=y||{};T.moves===void 0&&(T.moves=z),T.accepts===void 0&&(T.accepts=z),T.invalid===void 0&&(T.invalid=Vt),T.containers===void 0&&(T.containers=p||[]),T.isContainer===void 0&&(T.isContainer=B),T.copy===void 0&&(T.copy=!1),T.copySortSource===void 0&&(T.copySortSource=!1),T.revertOnSpill===void 0&&(T.revertOnSpill=!1),T.removeOnSpill===void 0&&(T.removeOnSpill=!1),T.direction===void 0&&(T.direction="vertical"),T.ignoreInputTextSelection===void 0&&(T.ignoreInputTextSelection=!0),T.mirrorContainer===void 0&&(T.mirrorContainer=M.body);var A=D({containers:T.containers,start:At,end:Ke,cancel:ot,remove:nt,destroy:se,canMove:Re,dragging:!1});return T.removeOnSpill===!0&&A.on("over",Lt).on("out",qt),ne(),A;function te(c){return A.containers.indexOf(c)!==-1||T.isContainer(c)}function ne(c){var j=c?"remove":"add";i(E,j,"mousedown",ce),i(E,j,"mouseup",Be)}function re(c){var j=c?"remove":"add";i(E,j,"mousemove",xe)}function Ce(c){var j=c?"remove":"add";C[j](E,"selectstart",ke),C[j](E,"click",ke)}function se(){ne(!0),Be({})}function ke(c){H&&c.preventDefault()}function ce(c){q=c.clientX,U=c.clientY;var j=o(c)!==1||c.metaKey||c.ctrlKey;if(!j){var _=c.target,W=he(_);W&&(H=W,re(),c.type==="mousedown"&&(R(_)?_.focus():c.preventDefault()))}}function xe(c){if(H){if(o(c)===0){Be({});return}if(!(c.clientX!==void 0&&Math.abs(c.clientX-q)<=(T.slideFactorX||0)&&c.clientY!==void 0&&Math.abs(c.clientY-U)<=(T.slideFactorY||0))){if(T.ignoreInputTextSelection){var j=P("clientX",c)||0,_=P("clientY",c)||0,W=M.elementFromPoint(j,_);if(R(W))return}var Z=H;re(!0),Ce(),Ke(),Je(Z),b.add($||N,"gu-transit"),Wt(),Ft(),ae=0,Ae(c)}}}function he(c){if(!(A.dragging&&v)&&!te(c)){for(var j=c;m(c)&&te(m(c))===!1;)if(T.invalid(c,j)||(c=m(c),!c))return;var _=m(c);if(_&&!T.invalid(c,j)){var W=T.moves(c,_,j,n(c));if(W)return{item:c,source:_}}}}function Re(c){return!!he(c)}function At(c){var j=he(c);j&&Je(j)}function Je(c){Zt(c.item,c.source)&&($=c.item.cloneNode(!0),A.emit("cloned",$,c.item,"copy")),I=c.source,N=c.item,Y=V=n(c.item),A.dragging=!0,A.emit("drag",N,I)}function Vt(){return!1}function Ke(){if(A.dragging){var c=$||N;tt(c,m(c))}}function et(){H=!1,re(!0),Ce(!0)}function Be(c){if(et(),!!A.dragging){var j=$||N,_=P("clientX",c)||0,W=P("clientY",c)||0,Z=S(v,_,W),J=rt(Z,_,W);J&&($&&T.copySortSource||!$||J!==I)?tt(j,J):T.removeOnSpill?nt():ot()}}function tt(c,j){var _=m(c);$&&T.copySortSource&&j===I&&_.removeChild(N),_e(j)?A.emit("cancel",c,I):A.emit("drop",c,j,I,V),Oe()}function nt(){if(A.dragging){var c=$||N,j=m(c);j&&j.removeChild(c),A.emit($?"cancel":"remove",c,j,I),Oe()}}function ot(c){if(A.dragging){var j=arguments.length>0?c:T.revertOnSpill,_=$||N,W=m(_),Z=_e(W);Z===!1&&j&&($?W&&W.removeChild($):I.insertBefore(_,Y)),Z||j?A.emit("cancel",_,I,I):A.emit("drop",_,W,I,V),Oe()}}function Oe(){var c=$||N;et(),zt(),Gt(),c&&b.rm(c,"gu-transit"),Q&&clearTimeout(Q),A.dragging=!1,G&&A.emit("out",c,G,I),A.emit("dragend",c,ae),I=N=$=Y=V=Q=G=null}function _e(c,j){var _;return j!==void 0?_=j:v?_=V:_=n($||N),c===I&&_===Y}function rt(c,j,_){for(var W=c;W&&!Z();)W=m(W);return W;function Z(){var J=te(W);if(J===!1)return!1;var ge=it(W,c),de=st(W,ge,j,_),pe=_e(W,de);return pe?!0:T.accepts(N,W,I,de)}}function Ae(c){if(!v)return;c.preventDefault();var j=P("clientX",c)||0,_=P("clientY",c)||0;v.style.left=j-2+"px",v.style.top=_-2+"px";var W=$||N,Z=S(v,j,_),J=rt(Z,j,_),ge=J!==null&&J!==G;(ge||J===null)&&(fe(),G=J,ve()),Qt(Z,_);var de=m(W);if(J===I&&$&&!T.copySortSource){de&&de.removeChild(W);return}var pe,me=it(J,Z);if(oe=Ut(me,J),me!==null)pe=st(J,me,j,_);else if(T.revertOnSpill===!0&&!$)pe=Y,J=I;else{$&&de&&de.removeChild(W),$&&F&&(F.style.display="none");return}F.style.display="block",$t(pe,W,ge),pe?Xt(me,pe):Ht(J);function ie(le){A.emit(le,W,G,I)}function ve(){ge&&ie("over")}function fe(){G&&ie("out")}}function $t(c,j,_){(c===j||c===n(j))&&(V=n(j)),(c===null&&_||c!==j&&c!==n(j))&&(V=c)}function Lt(c){b.rm(c,"gu-hide")}function qt(c){A.dragging&&b.add(c,"gu-hide")}function Ft(){v||(v=document.createElement("div"),v.style="background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;",v.innerHTML=T.getMirrorText&&T.getMirrorText(N)||"控件",b.add(v,"gu-mirror"),T.mirrorContainer.appendChild(v),i(E,"add","mousemove",Ae),b.add(T.mirrorContainer,"gu-unselectable"),A.emit("cloned",v,N,"mirror"))}function Wt(){if(F=document.createElement("div"),b.add(F,"gu-insertion"),N){var c=N.getBoundingClientRect();F.style.left=c.left+"px",F.style.top=c.top+"px"}oe=!1,T.mirrorContainer.appendChild(F)}function zt(){v&&(b.rm(T.mirrorContainer,"gu-unselectable"),i(E,"remove","mousemove",Ae),m(v).removeChild(v),v=null)}function Gt(){F&&(m(F).removeChild(F),F=null)}function it(c,j){for(var _=j;_!==c&&m(_)!==c;)_=m(_);return _===E?null:_}function Ut(c,j){if(!j)return oe;var _=c||j&&j.lastElementChild;if(!_)return!0;var W=getComputedStyle(c),Z=/^inline/.test(W.getPropertyValue("display"))||/^(left|right)$/.test(W.getPropertyValue("float"));if(Z)return!0;if(j){var J=getComputedStyle(j),ge=J.getPropertyValue("display");if(/flex$/.test(ge)){var de=J.getPropertyValue("flex-direction")||"row";if(de==="row"||de==="row-reverse")return!Yt(j)}return!1}return!0}function Yt(c){if(!c.children||!c.children.length)return!1;for(const j of Array.from(c.children)){const W=(j.className&&j.className.split(" ")||[]).filter(Z=>/^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(Z));if(!W.length)return!1;for(const Z of W){const J=Z.slice(Z.lastIndexOf("-")+1);if(parseInt(J,10)!==12)return!1}}return!0}function Xt(c,j){const _=j.getBoundingClientRect();if(F.style.left=_.left+"px",F.style.top=_.top+"px",oe){if(F.style.height=_.height+"px",F.style.width="4px",c){const W=c.getBoundingClientRect();W.top!==_.top&&(F.style.left=W.right+"px",F.style.top=W.top+"px",F.style.height=W.height+"px")}}else if(F.style.height="4px",F.style.width=_.width+"px",w){const W=w.getBoundingClientRect();_.top<W.top&&(F.style.display="none")}j===N&&N&&(F.style.display="none")}function Ht(c){V=null;var j=c.lastElementChild;if(j){var _=j.getBoundingClientRect();oe?(F.style.left=_.right+"px",F.style.top=_.top+"px",F.style.height=_.height+"px",F.style.width="4px"):(F.style.left=_.left+"px",F.style.top=_.bottom+"px",F.style.height="4px",F.style.width=_.width+"px"),j===N&&N&&(F.style.display="none")}else F.style.display="none"}function Qt(c,j){if(!T.mirrorContainer.contains(c)||!window.scrollContainerList||!Array.from(window.scrollContainerList).length||(w=l(c),!w||!w.contains(c)))return;const _=document.querySelector(".dgComponentSelected"),W=w.getBoundingClientRect();if(j-30<W.top&&w.scrollTop>0){let Z=w.scrollTop<10?w.scrollTop:10;w.scrollBy(0,-1*Z),_&&w.contains(_)&&(ae=ae+-1*Z)}if(j+30>W.bottom&&w.scrollTop<w.scrollHeight-w.clientHeight){const Z=w.scrollHeight-w.clientHeight-w.scrollTop;let J=Z<10?Z:10;w.scrollBy(0,J),_&&w.contains(_)&&(ae=ae+J)}}function st(c,j,_,W){var Z=T.direction==="horizontal",J=T.direction==="mixed",ge=j!==c?pe():de();return ge;function de(){var ie=c.children.length,ve,fe,le;for(ve=0;ve<ie;ve++)if(fe=c.children[ve],le=fe.getBoundingClientRect(),Z&&le.left+le.width/2>_||!J&&!Z&&le.top+le.height/2>W||J&&le.left+le.width>_&&le.top+le.height>W)return fe;return null}function pe(){var ie=j.getBoundingClientRect();if(J){var ve=W-ie.top,fe=_-ie.left,le=ie.bottom-W,Ve=ie.right-_,$e=Math.min(fe,Ve,ve,le),Le;return oe?Le=Ve<fe:Le=le===$e||Ve===$e||fe===$e,me(Le)}return me(Z?_>ie.left+O(ie)/2:W>ie.top+k(ie)/2)}function me(ie){return ie?n(j):j}}function Zt(c,j){return typeof T.copy=="boolean"?T.copy:T.copy(c,j)}}function l(p){const y=Array.from(window.scrollContainerList);if(y.length===1){const v=Array.from(window.scrollContainerList)[0];return document.getElementById(v)}const s=f(y);for(const v of s)if(v.contains(p))return v;return null}function f(p){const y=[];return p.forEach(s=>{const v=document.getElementById(s);v&&y.push(v)}),y.sort((s,v)=>s.contains(v)?1:v.contains(s)?-1:0),y}function i(p,y,s,v){var I={mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"},N={mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"},q={mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"};r.navigator.pointerEnabled?C[y](p,N[s],v):r.navigator.msPointerEnabled?C[y](p,q[s],v):(C[y](p,I[s],v),C[y](p,s,v))}function o(p){if(p.touches!==void 0)return p.touches.length;if(p.which!==void 0&&p.which!==0)return p.which;if(p.buttons!==void 0)return p.buttons;var y=p.button;if(y!==void 0)return y&1?1:y&2?3:y&4?2:0}function S(p,y,s){p=p||{};var v=p.className||"",I;return p.className+=" gu-hide",I=M.elementFromPoint(y,s),p.className=v,I}function B(){return!1}function z(){return!0}function O(p){return p.width||p.right-p.left}function k(p){return p.height||p.bottom-p.top}function m(p){return p.parentNode===M?null:p.parentNode}function R(p){return p.tagName==="INPUT"||p.tagName==="TEXTAREA"||p.tagName==="SELECT"||h(p)}function h(p){return!p||p.contentEditable==="false"?!1:p.contentEditable==="true"?!0:h(m(p))}function n(p){return p.nextElementSibling||y();function y(){var s=p;do s=s.nextSibling;while(s&&s.nodeType!==1);return s}}function L(p){return p.targetTouches&&p.targetTouches.length?p.targetTouches[0]:p.changedTouches&&p.changedTouches.length?p.changedTouches[0]:p}function P(p,y){var s=L(y),v={pageX:"clientX",pageY:"clientY"};return p in v&&!(p in s)&&v[p]in s&&(p=v[p]),s[p]}g.exports=u}).call(this,typeof be<"u"?be:typeof self<"u"?self:typeof window<"u"?window:{})},{"./classes":1,"contra/emitter":5,crossvent:6}],3:[function(t,g,d){g.exports=function(D,C){return Array.prototype.slice.call(D,C)}},{}],4:[function(t,g,d){var r=t("ticky");g.exports=function(C,b,M){C&&r(function(){C.apply(M||null,b||[])})}},{ticky:10}],5:[function(t,g,d){var r=t("atoa"),D=t("./debounce");g.exports=function(b,M){var E=M||{},u={};return b===void 0&&(b={}),b.on=function(l,f){return u[l]?u[l].push(f):u[l]=[f],b},b.once=function(l,f){return f._once=!0,b.on(l,f),b},b.off=function(l,f){var i=arguments.length;if(i===1)delete u[l];else if(i===0)u={};else{var o=u[l];if(!o)return b;o.splice(o.indexOf(f),1)}return b},b.emit=function(){var l=r(arguments);return b.emitterSnapshot(l.shift()).apply(this,l)},b.emitterSnapshot=function(l){var f=(u[l]||[]).slice(0);return function(){var i=r(arguments),o=this||b;if(l==="error"&&E.throws!==!1&&!f.length)throw i.length===1?i[0]:i;return f.forEach(function(B){E.async?D(B,i,o):B.apply(o,i),B._once&&b.off(l,B)}),b}},b}},{"./debounce":4,atoa:3}],6:[function(t,g,d){(function(r){var D=t("custom-event"),C=t("./eventmap"),b=r.document,M=l,E=i,u=[];r.addEventListener||(M=f,E=o),g.exports={add:M,remove:E,fabricate:S};function l(m,R,h,n){return m.addEventListener(R,h,n)}function f(m,R,h){return m.attachEvent("on"+R,z(m,R,h))}function i(m,R,h,n){return m.removeEventListener(R,h,n)}function o(m,R,h){var n=O(m,R,h);if(n)return m.detachEvent("on"+R,n)}function S(m,R,h){var n=C.indexOf(R)===-1?P():L();m.dispatchEvent?m.dispatchEvent(n):m.fireEvent("on"+R,n);function L(){var p;return b.createEvent?(p=b.createEvent("Event"),p.initEvent(R,!0,!0)):b.createEventObject&&(p=b.createEventObject()),p}function P(){return new D(R,{detail:h})}}function B(m,R,h){return function(L){var P=L||r.event;P.target=P.target||P.srcElement,P.preventDefault=P.preventDefault||function(){P.returnValue=!1},P.stopPropagation=P.stopPropagation||function(){P.cancelBubble=!0},P.which=P.which||P.keyCode,h.call(m,P)}}function z(m,R,h){var n=O(m,R,h)||B(m,R,h);return u.push({wrapper:n,element:m,type:R,fn:h}),n}function O(m,R,h){var n=k(m,R,h);if(n){var L=u[n].wrapper;return u.splice(n,1),L}}function k(m,R,h){var n,L;for(n=0;n<u.length;n++)if(L=u[n],L.element===m&&L.type===R&&L.fn===h)return n}}).call(this,typeof be<"u"?be:typeof self<"u"?self:typeof window<"u"?window:{})},{"./eventmap":7,"custom-event":8}],7:[function(t,g,d){(function(r){var D=[],C="",b=/^on/;for(C in r)b.test(C)&&D.push(C.slice(2));g.exports=D}).call(this,typeof be<"u"?be:typeof self<"u"?self:typeof window<"u"?window:{})},{}],8:[function(t,g,d){(function(r){var D=r.CustomEvent;function C(){try{var b=new D("cat",{detail:{foo:"bar"}});return b.type==="cat"&&b.detail.foo==="bar"}catch{}return!1}g.exports=C()?D:typeof document<"u"&&typeof document.createEvent=="function"?function(M,E){var u=document.createEvent("CustomEvent");return E?u.initCustomEvent(M,E.bubbles,E.cancelable,E.detail):u.initCustomEvent(M,!1,!1,void 0),u}:function(M,E){var u=document.createEventObject();return u.type=M,E?(u.bubbles=!!E.bubbles,u.cancelable=!!E.cancelable,u.detail=E.detail):(u.bubbles=!1,u.cancelable=!1,u.detail=void 0),u}}).call(this,typeof be<"u"?be:typeof self<"u"?self:typeof window<"u"?window:{})},{}],9:[function(t,g,d){var r=g.exports={},D,C;function b(){throw new Error("setTimeout has not been defined")}function M(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?D=setTimeout:D=b}catch{D=b}try{typeof clearTimeout=="function"?C=clearTimeout:C=M}catch{C=M}})();function E(k){if(D===setTimeout)return setTimeout(k,0);if((D===b||!D)&&setTimeout)return D=setTimeout,setTimeout(k,0);try{return D(k,0)}catch{try{return D.call(null,k,0)}catch{return D.call(this,k,0)}}}function u(k){if(C===clearTimeout)return clearTimeout(k);if((C===M||!C)&&clearTimeout)return C=clearTimeout,clearTimeout(k);try{return C(k)}catch{try{return C.call(null,k)}catch{return C.call(this,k)}}}var l=[],f=!1,i,o=-1;function S(){!f||!i||(f=!1,i.length?l=i.concat(l):o=-1,l.length&&B())}function B(){if(!f){var k=E(S);f=!0;for(var m=l.length;m;){for(i=l,l=[];++o<m;)i&&i[o].run();o=-1,m=l.length}i=null,f=!1,u(k)}}r.nextTick=function(k){var m=new Array(arguments.length-1);if(arguments.length>1)for(var R=1;R<arguments.length;R++)m[R-1]=arguments[R];l.push(new z(k,m)),l.length===1&&!f&&E(B)};function z(k,m){this.fun=k,this.array=m}z.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={};function O(){}r.on=O,r.addListener=O,r.once=O,r.off=O,r.removeListener=O,r.removeAllListeners=O,r.emit=O,r.prependListener=O,r.prependOnceListener=O,r.listeners=function(k){return[]},r.binding=function(k){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(k){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},{}],10:[function(t,g,d){(function(r){var D=typeof r=="function",C;D?C=function(b){r(b)}:C=function(b){setTimeout(b,0)},g.exports=C}).call(this,t("timers").setImmediate)},{timers:11}],11:[function(t,g,d){(function(r,D){var C=t("process/browser.js").nextTick,b=Function.prototype.apply,M=Array.prototype.slice,E={},u=0;d.setTimeout=function(){return new l(b.call(setTimeout,window,arguments),clearTimeout)},d.setInterval=function(){return new l(b.call(setInterval,window,arguments),clearInterval)},d.clearTimeout=d.clearInterval=function(f){f.close()};function l(f,i){this._id=f,this._clearFn=i}l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(window,this._id)},d.enroll=function(f,i){clearTimeout(f._idleTimeoutId),f._idleTimeout=i},d.unenroll=function(f){clearTimeout(f._idleTimeoutId),f._idleTimeout=-1},d._unrefActive=d.active=function(f){clearTimeout(f._idleTimeoutId);var i=f._idleTimeout;i>=0&&(f._idleTimeoutId=setTimeout(function(){f._onTimeout&&f._onTimeout()},i))},d.setImmediate=typeof r=="function"?r:function(f){var i=u++,o=arguments.length<2?!1:M.call(arguments,1);return E[i]=!0,C(function(){E[i]&&(o?f.apply(null,o):f.call(null),d.clearImmediate(i))}),i},d.clearImmediate=typeof D=="function"?D:function(f){delete E[f]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":9,timers:11}]},{},[2])(2)})})(Xe);var Dt=Xe.exports;const He=Tt(Dt);function St(e){let x;function t(d,r,D,C){const b=e.schema;if(!(b!=null&&b.buttons))return;let M;if(D){const f=D.getAttribute("id");M=Array.from(r.children).findIndex(i=>i.getAttribute("id")===f)}else M=Array.from(r.children).length;const E=d.getAttribute("id"),u=Array.from(r.children).findIndex(f=>f.getAttribute("id")===E),l=b.buttons[u];u!==M&&u>-1&&M>-1&&(u<M&&(M=M-1),b.buttons.splice(u,1),b.buttons.splice(M,0,l),C(),a.nextTick(()=>{const f=r.querySelector(".dgComponentSelected");f!=null&&f.className.includes("dgComponentSelected")&&(f.classList.remove("dgComponentSelected"),f.classList.remove("dgComponentFocused"),f.click()),ye.canvasChanged.value++}))}function g(d,r,D){x&&x.destroy(),!(!He||!d||!r)&&(x=He([d],{mirrorContainer:r,direction:"horizontal",getMirrorText(C){return C.innerText},moves(C,b,M){let E=!0;return M.classList.contains("dropdown-item")?(E=!1,E):(C.classList.contains("no-drag")&&(E=!1),E)}}).on("drop",(C,b,M,E)=>t(C,b,E,D)))}return{dragulaInstance:x,initDragula:g}}function kt(e,x,t){const{renderToolbarItemDesigner:g,actionHandlers:d}=t;let r;function D(O){r=O}function C(O,k=null){const m=x.value.find(R=>R.id===O.id);if(m.isDP)if(document.body.click(),typeof k=="boolean")m.expanded=k;else{const R=O.expanded;m.expanded=!R}}d.toggleDropdownMenu=C;function b(O){var m;const k={"dropdown-menu":!0};if(O.class){const R=(m=O.menuClass)==null?void 0:m.split(" ");R&&R.length&&R.reduce((h,n)=>(h[n]=!0,h),k)}return k}function M(O){var R;const k={disabled:O.disabled===!1,"dropdown-submenu":!0,"f-rt-dropdown":!0,"text-truncate":!0},m=(R=O.dropdownClass)==null?void 0:R.split(" ");return m&&m.length&&m.reduce((h,n)=>(h[n]=!0,h),k),k}function E(O){const k={disabled:!1,"dropdown-item":!0,"f-rt-btn":!0,"position-relative":!0,"farris-component":!0,"text-truncate":!0},m=(O.class||"").split(" ");return m&&m.length&&m.reduce((R,h)=>(R[h]=!0,R),k),k}let u;const l=new Map;function f(O,k,m){O.stopPropagation();const R=m?m.id:"__top_item__";if(k.children&&k.children.length&&(k.expanded=!k.expanded,k.expanded)){if(l.has(R)&&l.get(R)!==k){const h=l.get(R);h&&(h.expanded=!1,l.delete(R))}l.set(R,k)}}function i(O){var k;return(k=O.children)==null?void 0:k.map((m,R)=>m.children&&m.children.length?a.createVNode("li",{class:M(m),id:m.id},[a.createVNode("span",{class:E(m),onClick:h=>f(h,m,O)},[m.text,a.createVNode("i",{class:"f-icon f-icon-arrow-chevron-right",style:"display: inline-block;float: right;line-height: 1.25rem;"},null)]),u(m,m)]):g(m,R,!0))}function o(O){return O==="page-header"||O==="drawer-header-toolbar"}function S(O,k,m,R){const{height:L,left:P,top:p}=R[0],{width:y,height:s}=m.getBoundingClientRect(),{marginTop:v,marginBottom:I}=getComputedStyle(m),N=Math.ceil(parseFloat(v))+Math.ceil(parseFloat(I)),q=p+L,U=k==null?void 0:k.getBoundingClientRect();function Y(){let G=0,H="left";const F=U?U.right:window.innerWidth,oe=U?U.left:0;return G=F-P-10,F-P<y&&P-oe>F-P&&(H="right",G=P-oe-10),{hposition:H,maxWidth:Math.min(G,300)}}let V=0,$="bottom";if(O==="tabs"||O==="section")V=k.getBoundingClientRect().bottom-q-N-10;else{const G=U?U.bottom:window.innerHeight;V=o(O)?G-q:p,V=V-N-10,$=o(O)?"bottom":"top"}const Q=Y();return{position:$+"-"+Q.hposition,maxWidth:Q.maxWidth,maxHeight:V}}function B(O){var n,L,P,p;const k="300px",m={display:O.expanded===!0?"block":"none",position:"absolute",maxWidth:k,minWidth:"120px"};if(!(r!=null&&r.value))return m;const R=r.value.querySelector("#"+O.id),h=R==null?void 0:R.getClientRects();if(R&&h&&h.length>0){const y=R?R.querySelector("#"+O.id+"_menu"):null;if(!y||O.expanded!==!0)return m;y.style.visibility="hidden",y.style.display="block",y.style.maxHeight="auto",y.style.maxWidth=k;let s;switch(d.toolbarPosition){case"tabs":s=(n=r.value)==null?void 0:n.closest(".farris-tabs");break;case"section":s=(L=r.value)==null?void 0:L.closest(".f-section");break;case"drawer-header-toolbar":case"drawer-footer-toolbar":s=(P=r.value)==null?void 0:P.closest(".f-drawer-container");break;default:s=(p=r.value)==null?void 0:p.closest(".f-page")}const v=S(d.toolbarPosition,s,y,h),{position:I,maxHeight:N,maxWidth:q}=v;y.style.visibility="visible";const U={left:I.indexOf("left")>-1?0:"unset",right:I.indexOf("left")>-1?"unset":0,bottom:I.indexOf("bottom")>-1?"unset":"100%",top:I.indexOf("bottom")>-1?"!00%":"unset",maxWidth:q?q+"px":"300px",maxHeight:N?N+"px":"auto",overflowY:N?"auto":"unset"};Object.assign(m,U)}return m}d.changeMenuPosition=B,u=function(O,k){return a.createVNode("ul",{class:b(O),style:B(O),id:O.id+"_menu"},[i(O)])};function z(O=""){O&&l.has(O)?l.forEach((k,m)=>{m!==O&&(k.expanded=!1,l.delete(m))}):(l.forEach(k=>{k.expanded=!1}),l.clear())}return{renderDropdownMenu:u,clearAllDropDownMenu:z,setResponseToolbarRef:D}}class It extends Fe.BaseControlProperty{constructor(t,g,d="response-toolbar-item"){super(t,g);K(this,"toolbarType","response-toolbar-item");this.toolbarType=d}getPropertyConfig(t,g=!1){this.propertyConfig.categories.basic=this.getBasicPropConfig(t),this.propertyConfig.categories.basic.properties.text={title:"文本",type:"string",description:"",refreshPanelAfterChanged:!0},this.propertyConfig.categories.basic.setPropertyRelates=r=>{if(r)switch(r&&r.propertyID){case"text":{r.needRefreshControlTree=!0;break}}},this.getAppearanceProperties(t,g);const d=this.getPropertyEditorParams(t,["Const","Variable","StateMachine","Expression"],"disabled");return this.propertyConfig.categories.behavior=this.getBehaviorConfig(t,"",{disabled:{title:"禁用",type:"boolean",description:"按钮禁用状态",refreshPanelAfterChanged:!0,editor:d}}),this.getEventPropConfig(t),this.propertyConfig}getAppearanceProperties(t,g=!1){this.propertyConfig.categories.appearance={title:"外观",description:"Appearance",properties:{class:{title:"class样式",type:"string",description:"",$converter:"/converter/appearance.converter",parentPropertyID:"appearance",visible:!g},icon:{title:"图标",type:"string",description:""},split:{title:"下拉按钮分离",type:"boolean",description:"启用下拉按钮分离,可以单独点击按钮。单独点击下拉按钮展开下拉面板",visible:!!(t.children&&t.children.length>0)},tipsEnable:{title:"启用提示",type:"boolean",description:"当启用提示时,鼠标滑过按钮会有消息提示框",refreshPanelAfterChanged:!0,visible:this.toolbarType==="response-toolbar-item"},tipsText:{title:"提示消息内容",type:"string",description:"消息提示框内的展示内容",visible:t.tipsEnable===!0}}}}getEventPropConfig(t){const g=[{label:"onClick",name:"点击事件"}],d=this,r=d.eventsEditorUtils.formProperties(t,d.viewModelId,g),D=d.createBaseEventProperty(r);this.propertyConfig.categories.eventsEditor={title:"事件",hideTitle:!0,properties:D,refreshPanelAfterChanged:!0,tabId:"commands",tabName:"交互",setPropertyRelates(C,b){const M=C.propertyValue;delete t[d.viewModelId],M&&(M.setPropertyRelates=this.setPropertyRelates,d.eventsEditorUtils.saveRelatedParameters(t,d.viewModelId,M.events,M))}}}}function Me(e,x){if(!e)return!1;const t=x||[];return(t==null?void 0:t.findIndex(d=>d.id===e))===-1}function Qe(e,x){const t=x||[];let g={parentIndex:-1,itemIndex:-1};return t.some((d,r)=>{if(d.children&&d.children.length>0){const D=d.children.findIndex(C=>C.id===e);return D>-1?(g={parentIndex:r,itemIndex:D},!0):!1}}),g}function Ze(e,x){const t=x||[];let g={parentIndex:-1,itemIndex:-1};const d=t==null?void 0:t.findIndex(r=>r.id===e);return d>-1?{parent:null,item:t[d]}:(t.some((r,D)=>{if(r.children&&r.children.length>0){const C=r.children.findIndex(b=>b.id===e);return C>-1?(g={parentIndex:D,itemIndex:C},!0):!1}}),g.parentIndex<0?{parent:null,item:null}:{parent:t[g.parentIndex],item:t[g.parentIndex].children[g.itemIndex]})}function Pt(e,x){const t=x||[],g=t==null?void 0:t.findIndex(d=>d.id===e);return g>-1&&t[g].children&&t[g].children.length>0?t[g].expanded===!0:!1}function Et(e,x){let t;function g(u){const{properties:l,title:f,ignore:i}=u,o=i&&Array.isArray(i),S=Object.keys(l).reduce((B,z)=>((!o||!i.find(O=>O===z))&&(B[z]=l[z].type==="object"&&l[z].properties?g(l[z]):we.cloneDeep(l[z].default)),B),{});if(f&&(!o||!i.find(B=>B==="id"))){const B=f.toLowerCase().replace(/-/g,"_");S.id=`${B}_${Math.random().toString().slice(2,6)}`}return S}function d(u){const{properties:l,title:f,required:i}=u;if(i&&Array.isArray(i)){const o=i.reduce((S,B)=>(S[B]=l[B].type==="object"&&l[B].properties?g(l[B]):we.cloneDeep(l[B].default),S),{});if(f&&i.find(S=>S==="id")){const S=f.toLowerCase().replace(/-/g,"_");o.id=`${S}_${Math.random().toString().slice(2,6)}`}return o}return{type:f}}function r(u,l={},f){const i=e[u];if(i){let o=d(i);const S=x[u];return o=S?S({getSchemaByType:r},o,l,f):o,t!=null&&t.appendIdentifyForNewControl&&t.appendIdentifyForNewControl(o),o}return null}function D(u,l){const f=g(l);return Object.keys(f).reduce((i,o)=>(Object.prototype.hasOwnProperty.call(u,o)&&(i[o]&&we.isPlainObject(i[o])&&we.isPlainObject(u[o]||!u[o])?Object.assign(i[o],u[o]||{}):i[o]=u[o]),i),f),f}function C(u,l){return Object.keys(u).filter(i=>u[i]!=null).reduce((i,o)=>{if(l.has(o)){const S=l.get(o);if(typeof S=="string")i[S]=u[o];else{const B=S(o,u[o],u);Object.assign(i,B)}}else i[o]=u[o];return i},{})}function b(u,l,f=new Map){const i=D(u,l);return C(i,f)}function M(u){var f;const l=u.type;if(l){const i=e[l];if(!i)return u;const o=D(u,i),S=((f=u.editor)==null?void 0:f.type)||"";if(S){const B=e[S],z=D(u.editor,B);o.editor=z}return o}return u}function E(u){t=u}return{getSchemaByType:r,resolveSchemaWithDefaultValue:M,resolveSchemaToProps:b,mappingSchemaToProps:C,setDesignerContext:E}}const Mt={},Nt={},{getSchemaByType:jt}=Et(Mt,Nt);function Rt(e,x,t){function g(y){return!1}function d(){return!1}function r(){return!1}function D(){return!1}function C(){return t.toolbarContext.schema.buttons||[]}function b(y,s=""){setTimeout(()=>{var q,U;const v=(q=e.parent)==null?void 0:q.designerItemElementRef.value;let I;s&&(I=v==null?void 0:v.querySelector("#"+s));const N=(U=I||v)==null?void 0:U.querySelector("#"+y);N==null||N.click()},0)}function M(y,s){s.disabled&&s.disabled.expressionId&&(s.disabled.expressionId=`${s.id}_disabled`),s.visible&&s.visible.expressionId&&(s.visible.expressionId=`${s.id}_visible`);const v=x.formSchemaUtils.getExpressions(),I=v.find(q=>q.target===y.id);if(!I||!I.rules||!I.rules.length)return;const N={target:s.id,rules:[],targetType:"Button"};I.rules.forEach(q=>{const U=Object.assign(we.cloneDeep(q),{id:`${s.id}_${q.type}`});N.rules.push(U)}),v.push(N)}function E(){var I;const y=e.schema,s=Object.assign(we.cloneDeep(y),{id:`${e.schema.type}-cloned-${Math.random().toString(36).slice(2,6)}`,onClick:null});(I=x==null?void 0:x.designerContext)!=null&&I.appendIdentifyForNewControl&&x.designerContext.appendIdentifyForNewControl(s);let v=[];return s.children&&s.children.length&&(v=s.children.map(N=>{var U;const q=we.cloneDeep(N);return Object.assign(q,{id:`${e.schema.type}-cloned-${Math.random().toString(36).slice(2,6)}`,onClick:null}),(U=x==null?void 0:x.designerContext)!=null&&U.appendIdentifyForNewControl&&x.designerContext.appendIdentifyForNewControl(q),M(N,q),q}),s.children=v),M(y,s),s}function u(){const y=e.schema.type||"response-toolbar-item",s=jt(y),v=y.toLowerCase().replace("-","_");return s&&!s.id&&s.type===y&&(s.id=`${v}_${Math.random().toString().slice(2,6)}`,s.text="按钮"),s}function l(y){const s=C(),v=s==null?void 0:s.findIndex(N=>N.id===y),I=v===-1?null:s[v];return{index:v,toolbarItem:I}}function f(){const y=e.schema.id,s=C();return Me(y,s)}function i(y){const s=x.formSchemaUtils.getExpressions();if(!s||!s.length)return;const v=I=>{const N=s&&s.findIndex(q=>q.target===I.id);N>-1&&s.splice(N,1)};v(y),y.children&&y.children.length&&y.children.forEach(I=>{v(I)})}function o(y){t.changeSelectedId(y)}function S(y){x.formSchemaUtils.removeCommunicationInComponent(y),y.children&&y.children.length&&y.children.forEach(s=>{x.formSchemaUtils.removeCommunicationInComponent(s)})}function B(){var I,N,q;if((I=x==null?void 0:x.designerContext)!=null&&I.checkCanDeleteControl&&!x.designerContext.checkCanDeleteControl(e.schema))return;const y=C(),{parentIndex:s,itemIndex:v}=Qe(e.schema.id,y);s===-1||v===-1||(i(e.schema),S(e.schema),y[s].children.splice(v,1),t.updateToolbarItems(),(N=e.setupContext)==null||N.emit("removeComponent"),(q=e.setupContext)==null||q.emit("selectionChange"),ye.canvasChanged.value++)}function z(){var I,N,q;if((I=x==null?void 0:x.designerContext)!=null&&I.checkCanDeleteControl&&!x.designerContext.checkCanDeleteControl(e.schema))return;const y=e.schema.id,s=C(),v=s==null?void 0:s.findIndex(U=>U.id===y);v!==-1&&(i(s[v]),S(s[v]),s==null||s.splice(v,1),t.updateToolbarItems(),(N=e.setupContext)==null||N.emit("removeComponent"),(q=e.setupContext)==null||q.emit("selectionChange"),ye.canvasChanged.value++)}function O(y="Append"){var U;const s=C(),{parentIndex:v,itemIndex:I}=Qe(e.schema.id,s);if(v===-1||I===-1)return;const N=u(),q=y==="Copy"?E():Object.assign({},N);s[v].children.splice(I+1,0,q),t.updateToolbarItems(),o(q.id),(U=e.setupContext)==null||U.emit("addComponent")}function k(y,s){const{index:v}=l(s);if(v===-1)return{index:v,schema:null};const I=u(),N=y==="Copy"?E():Object.assign({},I);return{index:v,schema:N}}function m(){var I;const y=e.schema.id,{index:s,schema:v}=k("Copy",y);v&&(C().splice(s+1,0,v),t.updateToolbarItems(),b(v.id),(I=e.setupContext)==null||I.emit("addComponent"))}function R(){var I;const y=e.schema.id,{index:s,schema:v}=k("Append",y);if(v&&e.parent){const q=C()[s].children||[];q.push(v);const U=C();U[s].children=q,t.updateToolbarItems(),o(v.id),(I=e.setupContext)==null||I.emit("addComponent")}}function h(y){let s;switch(e.schema.type){case"tab-toolbar-item":s=new at.TabToolbarItemProperty(y,x);break;default:s=new It(y,x,e.schema.type)}return s.getPropertyConfig(e.schema,f())}function n(y){y.stopPropagation(),y.stopImmediatePropagation()}function L(){const y=[{id:"delete",title:"删除",text:"",icon:"f-icon-yxs_delete",onClick:s=>{n(s),f()?B():z()}},{id:"copy",title:"复制",icon:"f-icon-yxs_copy",onClick:s=>{n(s);const{activeElement:v}=document,I=v?v.tagName.toLowerCase():"";I&&I==="input"||I==="textarea"?(v==null||v.blur(),a.nextTick(()=>{f()?O("Copy"):m()})):f()?O("Copy"):m()}}];return y.push(f()?{id:"appendSiblingButton",title:"",text:"新增同级",icon:"f-icon-plus-circle",onClick:s=>{n(s),O()}}:{id:"appendChildButton",title:"",text:"新增子级",icon:"f-icon-plus-circle",onClick:s=>{n(s),R()}}),y}function P(){const{schema:y}=e;i(y)}function p(){var y,s,v,I;if(e&&x){const{formSchemaUtils:N}=x,{schema:q}=e;switch(q.type){case"response-toolbar-item":{N.getControlBasicInfoMap().set(q.id,{componentTitle:q.text,parentPathName:q.text});break}case"tab-toolbar-item":case"section-toolbar-item":case"drawer-toolbar-item":{let U;const Y=(y=e.parent)==null?void 0:y.parent;(Y==null?void 0:Y.schema.type)==="tabs"||(Y==null?void 0:Y.schema.type)==="section"||(Y==null?void 0:Y.schema.type)==="drawer"?U=(s=Y.componentInstance)==null?void 0:s.value:U=(I=(v=Y==null?void 0:Y.parent)==null?void 0:v.componentInstance)==null?void 0:I.value,U!=null&&U.setComponentBasicInfoMap&&U.setComponentBasicInfoMap()}}}}return{canAccepts:g,checkCanMoveComponent:d,checkCanDeleteComponent:r,checkCanAddComponent:D,getPropsConfig:h,getCustomButtons:L,onRemoveComponent:P,setComponentBasicInfoMap:p}}const Ne=a.defineComponent({name:"FResponseToolbarItemDesign",props:ze,emits:["Click","dropdown","clearAll"],setup(e,x){const t=a.ref(e.alignment),g=Ee(),d=a.ref(),r=a.inject("designer-host-service"),D=a.inject("design-item-context"),C=a.inject("toolbar-item-action"),b=Rt(D,r,C),M=ye.useDesignerInnerComponent(d,D,b);a.onMounted(()=>{d.value.componentInstance=M}),x.expose(M.value);function E(){const k={"f-icon":!0},m=e.icon?e.icon.trim():"";return X.getCustomClass(k,m)}function u(){return!!(e.icon&&e.icon.trim())}const l=a.computed(()=>{const k={btn:!0,"f-rt-btn":!0,"f-btn-ml":!e.isDP&&(t.value==="right"||t.value==="center"),"f-btn-mr":!e.isDP&&t.value==="left","btn-icontext":!!(e.icon&&e.icon.trim()),disabled:e.disabled===!0,"no-drag":!0,"text-truncate":!0};return X.getCustomClass(k,e.class)}),f=a.computed(()=>e.split?{display:"flex","align-items":"center"}:{display:"flex","align-items":"center","border-radius":"6px","padding-right":"0.1rem","border-top-right-radius":"6px","border-bottom-right-radius":"6px"}),i=a.computed(()=>{const k={btn:!0,"dropdown-toggle":!0,"f-btn-mr":t.value==="left","dropdown-toggle-split":!0,"no-drag":!0};return X.getCustomClass(k,e.class)}),o=a.computed(()=>{let k={btn:!e.isDPItem,disabled:e.disabled===!0,"dropdown-item":e.isDPItem,"f-rt-btn":!0,"text-truncate":!0,"btn-icontext":!e.isDPItem&&!!(e.icon&&e.icon.trim()),"dropdown-item-icontext":e.isDPItem&&!!(e.icon&&e.icon.trim()),"no-drag":!0};return e.isDPItem||(k=X.getCustomClass(k,e.class||"")),e.isDP&&(k=X.getCustomClass(k,e.dropdownClass||"")),k});function S(k,m){m&&m.stopPropagation(),x.emit(k,{id:e.id,isDP:e.isDP})}function B(){return{"btn-group":!0,"no-drag":!0,"f-rt-dropdown":!0,"f-btn-ml":t.value==="right"||t.value==="center","f-btn-mr":t.value==="left"}}function z(){return a.createVNode("div",{ref:d,"data-dragref":`${D.schema.id}-container`,class:"farris-component position-relative",style:"display:inline-block!important;"},[a.createVNode("div",{class:B(),id:e.id},[a.createVNode("div",{class:l.value,style:f.value,onClick:()=>S("clearAll")},[g.shouldShowIcon(e)&&a.createVNode("i",{class:g.iconClass(e)},null),a.createVNode("span",null,[e.text]),!e.split&&a.createVNode("span",{class:"f-icon f-icon-arrow-chevron-down",style:"margin:0 0.5rem 0 0.25rem;",onClick:k=>S("dropdown",k)},null)]),e.split&&a.createVNode("button",{class:i.value,style:"border-radius:0 6px 6px 0;",onClick:k=>S("dropdown",k)},null),C.renderDropdownMenu(e.item,e.item)])])}function O(){return a.createVNode("li",{ref:d,"data-dragref":`${D.schema.id}-container`,id:e.id,class:o.value},[g.shouldShowIcon(e)&&a.createVNode("i",{class:g.iconClass(e)},null),e.text])}return()=>e.isDP?z():e.isDPItem?O():a.createVNode("div",{ref:d,"data-dragref":`${D.schema.id}-container`,class:"farris-component position-relative",style:"display:inline-block!important;"},[a.createVNode("button",{type:"button",class:l.value,id:e.id,onClick:()=>S("clearAll")},[u()&&a.createVNode("i",{class:E()},null),e.text])])}});function Bt(e,x,t,g){function d(l,f,i,o){g.changeSelectedId((f==null?void 0:f.id)||""),t&&t.setupContext&&t.setupContext.emit("selectionChange",l,f,i,o)}function r(){}function D(l){const f=l.expanded;g.clearAllDropdown(),g.toggleDropdownMenu(l,!f)}function C(l){g.clearAllDropdown(l.isDP?l.id:"")}function b(l,f=""){const i=e.items||[],o=f||l,S=i.find(B=>B.id===o);return f?S.children.find(B=>B.id===l):S}function M(l,f=!1){if(!f)return;const i=l.target;i!=null&&i.classList.contains("dgComponentFocused")&&(i==null||i.classList.add("dgComponentSelected"))}function E(l,f=!1){if(!f)return;const i=l.target;i!=null&&i.classList.contains("dgComponentFocused")&&(i==null||i.classList.remove("dgComponentSelected"))}function u(l,f,i=!1){const o=b(l.id,l.parent),S=a.ref(o);return a.createVNode(ye.FDesignerInnerItem,{key:o.id,class:["p-0",i?"d-block no-drag":"d-inline-block"],modelValue:S.value,"onUpdate:modelValue":B=>S.value=B,canMove:!1,childType:"response-toolbar-item",childLabel:"按钮",contentKey:"buttons",componentId:e.componentId,id:o.id,onSelectionChange:d,onRemoveComponent:r,onMouseenter:B=>M(B,i),onMouseleave:B=>E(B,i)},{default:()=>{var B;return[a.createVNode(Ne,{id:o.id,disabled:o.disabled,text:o.text,icon:o.icon,isDP:l.isDP,item:l,split:o.split,isDPItem:l.isDPItem,class:((B=l.appearance)==null?void 0:B.class)||"btn-secondary",alignment:e.alignment||"right",onDropdown:()=>D(l),onClearAll:z=>C(z),componentId:e.componentId},null)]}})}return{renderToolbarItemDesigner:u,actionHandlers:g}}function je(e,x=!1,t=""){const g=[];return e.reduce((d,r)=>{if(r.children&&r.children.length>0){const D=je(r.children,!0,r.id);d.push(Object.assign({},r,{children:D,isDPItem:!1,isDP:!0,parent:"",expanded:!1}))}else d.push(Object.assign({},r,{isDPItem:x,isDP:!1,parent:t}));return d},g),g}const Te=a.defineComponent({name:"FResponseToolbarDesign",props:ft,emits:["Click"],setup(e,x){const t=a.ref(je(e.items)),g=a.ref(),d=a.ref(),r=a.ref(),D=a.ref("");let C=0;const b=15,M=a.inject("designer-host-service"),E=a.inject("design-item-context"),u={clearAllDropdown:V=>{},toggleDropdownMenu:V=>{},updateToolbarItems:()=>{},changeSelectedId:V=>{D.value=V},renderDropdownMenu:(V,$)=>{},toolbarContext:E,changeMenuPosition:(V,$,Q)=>({}),toolbarPosition:""},l=xt(E,M,u),f=ye.useDesignerComponent(r,E,l),i=a.inject("toolbar-item-handler"),{initDragula:o,dragulaInstance:S}=St(E),B=Ee(),z=Bt(e,d,E,u),O=kt(B,t,z),{renderToolbarItemDesigner:k}=z,{clearAllDropDownMenu:m,renderDropdownMenu:R,setResponseToolbarRef:h}=O;a.provide("toolbar-item-action",u),u.renderDropdownMenu=R,h(r),i&&(i.changeSelectedId=function(V){D.value=V});function n(){const V=d.value.querySelector(".dgComponentSelected");V&&ye.setPositionForSelectedElement(V)}function L(){if(D.value)if(Me(D.value,t.value)){const{parent:V,item:$}=Ze(D.value,t.value);V&&(u.toggleDropdownMenu(V,!0),setTimeout(()=>{var H;const Q=r.value.querySelector("#"+V.id),G=Q==null?void 0:Q.querySelector("#"+$.id);(((H=G==null?void 0:G.parentElement)==null?void 0:H.className)||"").indexOf("dgComponentFocused")<0&&(G==null||G.click())},0))}else n()}function P(V=""){t.value.filter($=>$.id!==V&&$.children&&$.children.length>0).forEach($=>{$.expanded=!1}),m(V)}u.clearAllDropdown=P;function p(){i&&i.updateToolbarItems&&i.updateToolbarItems()}u.updateToolbarItems=p;function y(V){if(V){const $=r.value.querySelector("#"+V.id),Q=$.querySelector("#"+V.id+"_menu"),G=u.changeMenuPosition(V,$);Object.keys(G).forEach(H=>{Q.style[H]=G[H]})}}function s(){const Q=d.value.clientWidth,G=d.value.querySelectorAll(".farris-component>.f-rt-btn");G&&G.forEach(F=>{F.style.maxWidth=Q-12+"px"});const H=d.value.querySelectorAll(".farris-component>.f-rt-dropdown");H&&H.forEach(F=>{F.querySelector(".dropdown-toggle-split")?F.querySelector(".f-rt-btn").style.maxWidth=Q-38+"px":F.style.maxWidth=Q-12+"px"})}const v=new ResizeObserver(V=>{var $;if(V.length){const G=V[0].contentRect.width;if(G===0){C=0;return}if(Math.abs(G-C)>b){if(C=G,Me(D.value,t.value)){const{parent:H,item:F}=Ze(D.value,t.value);y(H)}else if(Pt(D.value,t.value)){const H=($=t.value)==null?void 0:$.find(F=>F.id===D.value);y(H)}else P();s()}}});a.onMounted(()=>{v.observe(r.value),C=r.value.clientWidth,r.value.componentInstance=f,o(d.value,g.value,p)}),a.onUnmounted(()=>{v.disconnect(),S&&S.destroy&&S.destroy()}),x.expose(f.value);const I=a.computed(()=>{const V={"f-toolbar":!0,"f-response-toolbar":!0,"position-relative":!0,"f-response-toolbar-sm":e.buttonSize==="sm","f-response-toolbar-lg":e.buttonSize==="lg"};return X.getCustomClass(V,e.customClass)}),N=a.computed(()=>({"text-left":e.alignment==="left","text-right":e.alignment==="right","justify-content-end":e.alignment==="right","justify-content-start":e.alignment==="left","justify-content-center":e.alignment==="center","no-drag":!0,"w-100":!0}));a.watch(()=>e.items,()=>{t.value=je(e.items),a.nextTick(()=>{L(),s()})},{deep:!0});function q(V){V&&(V.stopPropagation(),V.preventDefault());const{schema:$}=E;$.buttons||($.buttons=[]);let Q="";switch(u.toolbarPosition){case"drawer-header-toolbar":case"drawer-footer-toolbar":Q="drawer-toolbar-item";break;case"tabs":Q="tab-toolbar-item";break;case"section":Q="section-toolbar-item";break;default:Q="response-toolbar-item"}const G=ue.getSchemaByType(Q);G.id=`toolbar_item_${Math.random().toString().slice(2,6)}`,$.buttons.push(G)}function U(){return a.createVNode("li",{style:"border-width: 1px;border-style: dashed;display: inline-block;padding: 0 8px;line-height: 24px; border-radius: 3px; cursor: default;color: #B4BCCC;",onClick:q},[a.createVNode("span",{class:"f-icon f-icon-amplification mr-1",style:"font-size: 12px;"},null),a.createVNode("span",{class:"farris-tag-add-text"},[a.createTextVNode("添加按钮")])])}function Y(){return t.value.map((V,$)=>k(V,$))}return()=>{var V;return a.createVNode("div",{ref:r,"data-dragref":`${E.schema.id}-container`,class:I.value,id:e.id},[a.createVNode("div",{ref:g,class:N.value,onClick:$=>P($)},[a.createVNode("div",{ref:d,class:"d-block f-response-content"},[(V=t.value)!=null&&V.length?Y():U()])])])}}}),Ot=Pe;Te.register=(e,x,t,g)=>{e["response-toolbar"]=wt,x["response-toolbar"]=Pe,g["response-toolbar"]={eventHandlerResolver:ht}},Te.registerDesigner=(e,x,t)=>{e["response-toolbar"]=Te,x["response-toolbar"]=Pe,e["response-toolbar-item"]=Ne,x["response-toolbar-item"]=pt};const _t=X.withInstall(Te);ee.FResponseToolbarDesign=Te,ee.FResponseToolbarItemDesign=Ne,ee.commonToolbarItemDesignProps=We,ee.default=_t,ee.responseToolbarResolver=Ot,ee.schemaResolver=Ie,Object.defineProperties(ee,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(ee,X){typeof exports=="object"&&typeof module<"u"?X(exports,require("../../components/common/index.umd.js"),require("../../components/dynamic-resolver/index.umd.js"),require("../../components/response-toolbar/index.umd.js"),require("vue"),require("../../components/locale/index.umd.js"),require("../../components/designer-canvas/index.umd.js"),require("../../components/property-panel/index.umd.js"),require("lodash-es"),require("../../components/tabs/index.umd.js")):typeof define=="function"&&define.amd?define(["exports","../../components/common/index.umd.js","../../components/dynamic-resolver/index.umd.js","../../components/response-toolbar/index.umd.js","vue","../../components/locale/index.umd.js","../../components/designer-canvas/index.umd.js","../../components/property-panel/index.umd.js","lodash-es","../../components/tabs/index.umd.js"],X):(ee=typeof globalThis<"u"?globalThis:ee||self,X(ee["response-toolbar"]={},ee.common,ee.dynamicResolver,ee.responseToolbar,ee.Vue,ee.locale,ee.designerCanvas,ee.propertyPanel,ee.LodashES,ee.tabs))})(this,function(ee,X,ue,qe,a,lt,ye,Fe,we,at){"use strict";var Jt=Object.defineProperty;var Kt=(ee,X,ue)=>X in ee?Jt(ee,X,{enumerable:!0,configurable:!0,writable:!0,value:ue}):ee[X]=ue;var K=(ee,X,ue)=>Kt(ee,typeof X!="symbol"?X+"":X,ue);const ct=new Map([["buttons","items"],["appearance",ue.resolveAppearance]]);function Ie(e,x,t){return x}const dt={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/response-toolbar.schema.json",title:"response-toolbar",description:"A Farris Toolbar Component",type:"object",properties:{id:{description:"The unique identifier for a Response Toolbar",type:"string"},type:{description:"The type string of Response Toolbar",type:"string",default:"response-toolbar"},appearance:{description:"",type:"object",properties:{class:{type:"string",default:""}}},alignment:{description:"The alignment of Response Toolbar Button.",type:"string",default:"right"},buttons:{description:"The items of Response Toolbar.",type:"array",default:[]},buttonSize:{type:"string",default:""},visible:{description:"",type:"boolean",default:!0}},required:["id","type","buttons"],events:{onClick:"点击事件"}},ut={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/response-toolbar-item.schema.json",title:"response-toolbar-item",description:"A Farris Toolbar Item Component",type:"object",properties:{id:{description:"The unique identifier for a Response Toolbar",type:"string"},type:{description:"The type string of Response Toolbar",type:"string",default:"response-toolbar-item"},appearance:{description:"",type:"object",properties:{class:{type:"string",default:""}}},alignment:{description:"对齐",type:"string",default:"right"},text:{description:"文本",type:"string",default:"按钮"},icon:{description:"图标",type:"string",default:""},disabled:{description:"禁用",type:"boolean",default:!1},visible:{description:"是否可见",type:"boolean",default:!0},onClick:{description:"点击事件",type:"string",default:""},tipsEnable:{description:"",type:"boolean",default:!1},tipsText:{description:"",type:"string",default:""},dropdownClass:{description:"处于下拉菜单时的样式",type:"string"},split:{description:"",type:"boolean",default:!1}},required:["id","type","text"],events:{onClick:"点击事件"}},ft=Object.assign({},qe.responseToolbarProps,{componentId:{type:String,default:""}}),Pe=ue.createPropsResolver(qe.responseToolbarProps,dt,ct,Ie),We={id:{type:String,default:""},item:{type:Object,default:{}},items:{type:Object,default:{}},class:{type:String,default:""},text:{type:String,default:""},disabled:{type:Boolean,default:!1},icon:{type:String,default:""},componentId:{type:String,default:""},expanded:{type:Boolean,default:!1},alignment:{Type:String,default:"right"},split:{type:Boolean,default:!1},isDP:{type:Boolean,default:!1},isDPItem:{type:Boolean,default:!1},dropdownClass:{Type:String,default:""}},ze=Object.assign({},We,{item:{type:Object,default:{}},items:{type:Object,default:{}},class:{type:String,default:"btn-secondary"},alignment:{Type:String,default:"right"}}),pt=ue.createPropsResolver(ze,ut,void 0,Ie),ht=ue.createResponseToolbarEventHandlerResolver(),gt={id:{type:String,default:""},customClass:{type:String,default:""},alignment:{Type:String,default:"right"},items:{Type:Array,default:[]},visible:{type:Boolean,default:!0},buttonSize:{type:String,default:""}};class Ge{constructor(x){K(this,"id","");K(this,"class","btn-secondary");K(this,"icon","");K(this,"groupId","");K(this,"order",-1);K(this,"asDropDownTop",!1);K(this,"text","");K(this,"visible",!0);K(this,"shown",!0);K(this,"responsed",!1);K(this,"tipsEnable",!1);K(this,"tipsText","");K(this,"width",0);K(this,"dropdownClass","");K(this,"onClick",()=>{});K(this,"options");var g,d;this.options=x;const t=["id","class","icon","groupId","order","asDropDownTop","text","isDP","visible","responsed","width","tipsEnable","tipsText","dropdownClass","onClick"];Object.keys(x).filter(r=>t.indexOf(r)>-1).forEach(r=>{r==="visible"?this[r]=x[r]===void 0?!0:x[r]:this[r]=x[r]}),this.shown=this.visible,(g=x.appearance)!=null&&g.class&&(this.class=(d=x.appearance)==null?void 0:d.class),this.class||(this.class="btn-secondary")}get enable(){return Object.keys(this.options).indexOf("disabled")>-1?!this.options.disabled:a.computed(()=>!0)}setWidth(x){this.width=parseInt(x,10)}getWidth(){return this.visible?this.width:!1}}class bt extends Ge{constructor(x){super(x)}}function Ue(){function e(x){const t=[];return x.reduce((g,d)=>(d.children&&d.children.length>0?g.push(new De(d)):g.push(new bt(d)),g),t),t}return{buildResponseToolbarItems:e}}const{buildResponseToolbarItems:mt}=Ue();class De extends Ge{constructor(t){super(t);K(this,"placement","");K(this,"visible",!0);K(this,"dropdownClass","");K(this,"menuClass","");K(this,"split",!1);K(this,"children",[]);K(this,"expanded",!1);K(this,"shown",!0);const g=["visible","icon","isDP","class","dropdownClass","menuClass","placement","split","expanded"];Object.keys(t).filter(d=>g.indexOf(d)>-1).forEach(d=>{d==="visible"?this[d]=t[d]===void 0?!0:t[d]:this[d]=t[d]}),this.shown=this.visible,t.children&&t.children.length&&(this.children=mt(t.children))}}function Ee(){function e(t){const g={"f-icon":!0};if(t.icon){const d=t.icon.trim().split(" ");d&&d.length&&d.reduce((r,D)=>(r[D]=!0,r),g)}return g}function x(t){return!!(t.icon&&t.icon.trim())}return{iconClass:e,shouldShowIcon:x}}function vt(e,x){function t(h){const o={"dropdown-menu":!0};return X.getCustomClass(o,h.menuClass)}function g(h){const o={disabled:!h.enable,"dropdown-submenu":!0,"f-rt-dropdown":!0,"text-truncate":!0};return X.getCustomClass(o,h.dropdownClass)}function d(h){const o={disabled:!h.enable,"dropdown-item":!0,"f-rt-btn":!0,"text-truncate":!0};return X.getCustomClass(o,h.dropdownClass)}function r(h){const o={disabled:!h.enable,"dropdown-item":!0,"f-rt-btn":!0,"text-truncate":!0,"f-rt-toggle":!h.split,"btn-icontext":!!(h.icon&&h.icon.trim()),"dropdown-toggle":!h.split,"btn-secondary":!0};return X.getCustomClass(o,h.dropdownClass)}function D(h){const o={"f-rt-btn":!0,"text-truncate":!0,"btn-icontext":!!(h.icon&&h.icon.trim()),"d-block":!0};return X.getCustomClass(o,h.dropdownClass)}let C;const b=new Map;let M="";function E(h){M="#"+h}function u(h,o,L){h.stopPropagation();const P=L?L.id:"__top_item__";if(o.children&&o.children.length&&(o.expanded=!o.expanded,o.expanded)){if(b.has(P)&&b.get(P)!==o){const p=b.get(P);p&&(p.expanded=!1,b.delete(P))}b.set(P,o)}}function l(h,o){document.body.click(),o.enable&&(h.stopPropagation(),typeof o.onClick=="function"&&o.onClick(h,o.id),e.emit("click",h,o.id))}function f(h,o){const L=h.target;L.className.indexOf("dropdown-item")<0||(L.title=L.scrollWidth>L.clientWidth?o:"")}function i(h,o,L){if(o.tipsEnable&&o.tipsText){const P=a.reactive({content:o.tipsText,enable:o.tipsEnable});return a.withDirectives(a.createVNode("li",{class:d(o),id:o.id,key:o.id+"_"+L,onClick:p=>l(p,o)},[a.createVNode("span",{class:D(o)},[x.shouldShowIcon(o)&&a.createVNode("i",{class:x.iconClass(o)},null),o.text])]),[[a.resolveDirective("tooltip"),P]])}return a.createVNode("li",{class:d(o),id:o.id,onClick:P=>l(P,o)},[a.createVNode("span",{class:D(o),onMouseenter:P=>f(P,o.text)},[x.shouldShowIcon(o)&&a.createVNode("i",{class:x.iconClass(o)},null),o.text])])}function n(h,o,L){o.enable&&(typeof o.onClick=="function"&&L.onClick(h,o.id),e.emit("click",h,o.id),L.split||u(h,o,L))}function S(h,o,L){h&&h.stopPropagation(),u(h,o,L)}function R(h,o){h.stopPropagation();const L=o.id;if(o.children&&o.children.length&&o.expanded&&b.has(L)){const P=b.get(L);P&&(P.expanded=!1,b.delete(L))}}function z(h,o,L){if(o.tipsEnable&&o.tipsText){const P=a.reactive({content:o.tipsText,enable:o.tipsEnable});return a.createVNode("li",{class:g(o),id:o.id,key:o.id+"_"+L,onClick:p=>n(p,o,h)},[a.withDirectives(a.createVNode("span",{class:r(o)},[x.shouldShowIcon(o)&&a.createVNode("i",{class:x.iconClass(o)},null),o.text]),[[a.resolveDirective("tooltip"),P]]),o.split&&a.createVNode("span",{class:"dropdown-toggle dropdown-toggle-split f-rt-toggle",onClick:p=>S(p,o,h)},null),C(o,o)])}return a.createVNode("li",{class:g(o),id:o.id,onClick:P=>n(P,o,h),onMouseenter:P=>f(P,o.text)},[a.createVNode("span",{class:r(o)},[x.shouldShowIcon(o)&&a.createVNode("i",{class:x.iconClass(o)},null),o.text]),o.split&&a.createVNode("span",{class:"dropdown-toggle dropdown-toggle-split f-rt-toggle",onClick:P=>S(P,o,h)},null),C(o,o)])}function B(h){return h.children.filter(o=>o.visible).map((o,L)=>o.children&&o.children.length?z(h,o,L):i(h,o,L))}function k(h,o){if(!h)return 1080;let L=-1;const P=h.children.length;for(let p=0;p<P;p++)if(h.children[p].id===o){L=p;break}return 1080+P-L}function w(h,o,L){var q,U;const P={display:h.expanded?"block":"none",position:"fixed",maxWidth:"300px",minWidth:"120px",zIndex:1080,overflowY:"auto",maxHeight:"none"},p=document.querySelector(M);if(!p)return P;const v=a.getCurrentInstance();let s=(U=(q=v==null?void 0:v.exposed)==null?void 0:q.elementRef.value)==null?void 0:U.querySelector("#"+o);if(s||(s=p==null?void 0:p.querySelector("#"+o)),!s)return P;const m=window.innerWidth,I=window.innerHeight,j=s==null?void 0:s.getClientRects();if(s&&j&&j.length){const{top:Y,width:A,left:$,right:Q,height:G}=j[0],H=Math.ceil(G+Y);P.top=`${H}px`,P.left=`${$}px`;const F=h.id+"_menu",oe=(s==null?void 0:s.querySelector("#"+F))||(p==null?void 0:p.querySelector("#"+F))||null;if(oe){oe.style.visibility="hidden",oe.style.display="block";const ae=oe.offsetHeight;P.zIndex=h.expanded?k(p,F):1080,P.display==="block"&&(oe.style.display="block");const y=oe.getBoundingClientRect();if(L){P.top=`${Y-6}px`;const T=Math.ceil(A+$);P.left=`${T}px`}m-$-A<y.width&&(P.left=`${(L?$:Q)-y.width}px`),I-Y-G<ae?Y>ae?(P.top=`${Y-ae-6}px`,P.maxHeight=`${Y-16}px`):(P.maxHeight=`${I-H}px`,Y>I-Y-G&&(P.top="10px",P.maxHeight=`${Y-16}px`)):P.maxHeight=`${I-H}px`,oe.style.visibility="visible"}}return P}C=function(h,o){const L=o?o.id:h.id;return a.createVNode(a.Teleport,{to:M,disabled:!h.expanded},{default:()=>[a.createVNode("ul",{class:t(h),style:w(h,L,o),id:h.id+"_menu",onWheel:P=>R(P,h)},[B(h)])]})};function _(){b.forEach(h=>{h.expanded=!1}),b.clear()}return{renderDropdownMenu:C,clearAllDropDownMenu:_,updateContainerId:E}}function yt(e,x,t){const g=a.ref(e.alignment),{renderDropdownMenu:d,clearAllDropDownMenu:r,updateContainerId:D}=vt(x,t);function C(n){const S={"btn-group":!0,"f-rt-dropdown":!0,"f-btn-ml":g.value==="right"||g.value==="center","f-btn-mr":g.value==="left"};return X.getCustomClass(S,n.dropdownClass)}function b(n){const S={btn:!0,disabled:!n.enable,"f-rt-btn":!0,"btn-icontext":!!(n.icon&&n.icon.trim())&&n.text,"f-rt-toggle":!n.split,"dropdown-toggle":!n.split,"f-btn-icon":n.icon&&!n.text};return X.getCustomClass(S,n.class)}function M(n){const S={btn:!0,"dropdown-toggle":!0,"dropdown-toggle-split":!0};return X.getCustomClass(S,n.class)}function E(n){return n.split?{display:"flex"}:{display:"flex","border-radius":"6px"}}function u(n,S){n.stopPropagation();const R=S.expanded;document.body.click(),typeof S.onClick=="function"&&S.onClick(n,S.id),x.emit("click",n,S.id),S.split||(S.expanded=!R)}function l(n,S){n.stopPropagation();const R=S.expanded;document.body.click(),S.expanded=!R}function f(n,S=!0){if(n.tipsEnable&&n.tipsText){const R=a.reactive({content:n.tipsText,enable:n.tipsEnable});return a.createVNode("div",{id:n.id,class:C(n)},[a.withDirectives(a.createVNode("div",{class:b(n),style:E(n),onClick:z=>n.enable&&u(z,n)},[t.shouldShowIcon(n)&&a.createVNode("i",{class:t.iconClass(n)},null),n.text&&a.createVNode("span",null,[n.text])]),[[a.resolveDirective("tooltip"),R]]),n.split&&a.createVNode("button",{class:M(n),style:"border-radius:0 6px 6px 0;",onClick:z=>l(z,n)},null),S&&d(n)])}return a.createVNode("div",{id:n.id,class:C(n)},[a.createVNode("div",{class:b(n),style:E(n),onClick:R=>n.enable&&u(R,n)},[t.shouldShowIcon(n)&&a.createVNode("i",{class:t.iconClass(n)},null),n.text&&a.createVNode("span",null,[n.text])]),n.split&&a.createVNode("button",{class:M(n),style:"border-radius:0 6px 6px 0;",onClick:R=>l(R,n)},null),S&&d(n)])}function i(){r()}return{renderToolbarDropdown:f,clearAllDropDown:i,updateContainerId:D}}const{buildResponseToolbarItems:Ye}=Ue(),wt=a.defineComponent({name:"FResponseToolbar",props:gt,emits:["click"],setup(e,x){const t=a.ref(Ye(e.items)),g=a.ref(),d=a.ref(),r=a.ref(),D=X.isMobilePhone(),C={id:"__more_buttons__",text:D?"":lt.LocaleService.getLocaleValue("responseToolbar.more"),icon:D?"f-icon-more-horizontal":""},b=a.ref(new De(C)),M=Object.assign({},C,{id:C.id+"width"}),E=a.ref(-1),u=Ee();let l=!1;const{guid:f,uuid:i}=X.useGuid(),n=e.id?e.id:"toolbar-"+f(),S=a.ref(),R="dropdown-container-"+n+"-"+i(4),{renderToolbarDropdown:z,clearAllDropDown:B,updateContainerId:k}=yt(e,x,u);k(R);const w=a.computed(()=>b.value.children.length>0),_=a.computed(()=>e.visible?b.value.children.length>0?!0:t.value.findIndex(y=>y.shown&&y.children&&y.children.length>0)>-1:!1);function h(){e.visible&&!S.value&&document&&(S.value=document.createElement("div"),S.value.id=R,document.body.appendChild(S.value))}h();function o(){S.value&&document.body.contains(S.value)&&(document.body.removeChild(S.value),S.value=null)}a.watch(_,(y,T)=>{y?h():o()});const L=a.computed(()=>{const y={"f-toolbar":!0,"f-response-toolbar":!0,"position-relative":!0,"f-response-toolbar-sm":e.buttonSize==="sm","f-response-toolbar-lg":e.buttonSize==="lg","d-none":!e.visible};return X.getCustomClass(y,e.customClass)}),P=a.computed(()=>({"w-100":!0,"d-flex":!0,"flex-nowrap":!0,"justify-content-end":e.alignment==="right","justify-content-start":e.alignment==="left","justify-content-center":e.alignment==="center"}));function p(y){y&&y.target.closest("ul.dropdown-menu")&&y.type==="wheel"||(t.value.filter(T=>T.children&&T.children.length>0).forEach(T=>{T.expanded=!1}),b.value.expanded=!1,B())}function v(y,T){var ne;const V={btn:!0,"f-rt-btn":!0,"f-btn-ml":e.alignment==="right"||T>0&&e.alignment==="center","f-btn-mr":e.alignment==="left","btn-icontext":!!(y.icon&&y.icon.trim())},te=((ne=y==null?void 0:y.appearance)==null?void 0:ne.class)||y.class||"btn-secondary";return X.getCustomClass(V,te)}function s(y,T){document.body.click(),typeof T.onClick=="function"&&T.onClick(y,T.id),x.emit("click",y,T.id)}function m(y,T){if(y.tipsEnable&&y.tipsText){const V=a.reactive({content:y.tipsText,enable:y.tipsEnable});return a.withDirectives(a.createVNode("button",{type:"button",class:v(y,T),id:y.id,disabled:!y.enable,onClick:te=>s(te,y)},[u.shouldShowIcon(y)&&a.createVNode("i",{class:u.iconClass(y)},null),y.text]),[[a.resolveDirective("tooltip"),V]])}return a.createVNode("button",{type:"button",class:v(y,T),id:y.id,disabled:!y.enable,onClick:V=>s(V,y)},[u.shouldShowIcon(y)&&a.createVNode("i",{class:u.iconClass(y)},null),y.text])}let I=new Map,j=[];function q(y){const T=Math.ceil(parseFloat(getComputedStyle(y).getPropertyValue("margin-left"))),V=Math.ceil(parseFloat(getComputedStyle(y).getPropertyValue("margin-right")));return(T||0)+y.getBoundingClientRect().width+(V||0)}function U(y,T,V){if(T<E.value){let te=V-1;for(;te>=0;te--){const ne=y[te],re=q(ne);if(T+=re,T>=E.value)break}V=te}return T-=E.value,V=V<0?0:V,{start:V,space:T}}function Y(y){const T=r.value;let V=y;const ne=Array.from(T.children).filter(ce=>ce.id!=="__more_buttons__"),re=ne.length;let Ce=!1,se=0;for(;se<re;se++){const ce=ne[se],xe=q(ce);if(xe<=V)V-=xe;else{const he=U(ne,V,se);se=he.start,V=he.space,Ce=!0;break}}if(!Ce&&j.length>0){const ce=U(ne,V,se);se=ce.start,V=ce.space}const ke=j.length>0;for(;se<re;se++){const ce=ne[se],xe=q(ce);I.set(ce.id,!0);const he=j.find(Re=>Re.id===ce.id);he?he.width=xe:j[ke?"unshift":"push"]({id:ce.id,width:xe})}return V}function A(){I=new Map,j=[]}function $(y=!1){const T=Object.assign({},b.value);T.children=[];const V=new De(T),te=t.value.reduce((ne,re)=>{const Ce=e.items.find(se=>se.id===re.id);return y?(V.children.push(re),re.shown=!1,ne):(I.has(re.id)?(V.children.push(re),re.shown=!1):re.shown=Ce.visible!==!1,ne.push(re),ne)},[]);b.value=V,t.value=te}function Q(y){if(D){A(),$(!0);return}let T=Y(y);if(j.length){let V=0;for(;V<j.length;V++){const te=e.items.find(ne=>ne.id===j[V].id);if(te&&te.visible!==!1){const ne=j[V].width;if(T>=ne||V===j.length-1&&T+E.value>=ne)T-=ne;else break}}for(let te=0;te<V;te++)I.delete(j[te].id);j.splice(0,V-1)}$()}function G(){if(g.value&&E.value<0){const y=g.value.querySelector("#"+M.id);if(!y)return;y.getBoundingClientRect().width===0?E.value=-1:E.value=q(y)}}function H(y=-1){if(y===0||!r.value||!d.value)return;y<0&&(y=d.value.getBoundingClientRect().width);const T=r.value.getBoundingClientRect().width;if(D){Q(y),p();return}(y>=0&&y<T||j.length)&&(G(),Q(y),p())}function F(){return E.value<0&&a.createVNode("div",{style:"position:fixed;top:-40px;visibility:hidden;"},[z(new De(M))])}const oe=new ResizeObserver(y=>{if(y.length){if(D)return;const V=y[0].contentRect.width;H(V)}});function ae(){d.value&&!l&&(oe.observe(d.value),l=!0)}return a.onMounted(()=>{G(),H(),ae(),document.body.addEventListener("click",p),document.body.addEventListener("wheel",p)}),a.onUnmounted(()=>{oe.disconnect(),o(),document.body.removeEventListener("click",p),document.body.removeEventListener("wheel",p)}),a.watch(()=>e.items,()=>{t.value=Ye(e.items),b.value.children=[],a.nextTick(()=>{G(),A(),H()})},{deep:!0}),a.watch(()=>e.visible,y=>{y&&a.nextTick(()=>{G(),H(),ae()})}),x.expose({elementRef:g}),()=>a.createVNode("div",{class:L.value,id:n,ref:g,style:{"overflow-y":E.value<0?"hidden":"initial"}},[e.visible&&F(),e.visible&&a.createVNode("div",{ref:d,class:P.value},[a.createVNode("div",{ref:r,class:"d-inline-block f-response-content",style:"white-space: nowrap;"},[t.value.filter(y=>y.shown).map((y,T)=>y.children&&y.children.length>0?z(y):m(y,T)),w.value&&z(b.value)])])])}});class Ct extends Fe.BaseControlProperty{constructor(t,g,d="response-toolbar"){super(t,g);K(this,"toolbarType","response-toolbar");this.toolbarType=d}getPropertyConfig(t){return this.propertyConfig.categories.basic=this.getBasicPropConfig(t),this.toolbarType!=="tab-toolbar"&&this.getAppearancePropConfig(t),this.propertyConfig.categories.behavior=this.getBehaviorConfig(t),this.propertyConfig}getAppearancePropConfig(t){this.propertyConfig.categories.appearance={title:"外观",description:"Appearance",properties:{class:{title:"class样式",type:"string",description:"组件的CSS样式",$converter:"/converter/appearance.converter",parentPropertyID:"appearance"}}}}getBehaviorProperties(t){this.propertyConfig.categories.behavior={title:"行为",description:"",properties:{alignment:{title:"对齐方式",description:"在工具栏区域内按钮组的位置",type:"enum",editor:{type:"combo-list",textField:"name",valueField:"value",data:[{value:"left",name:"左对齐"},{value:"center",name:"居中"},{value:"right",name:"右对齐"}]}}}}}}function xt(e,x,t){const g=e.schema;function d(){var n,S,R;let i=((n=e.parent)==null?void 0:n.schema.type)||"";i==="drawer"&&(((S=e.parent)==null?void 0:S.schema.headerToolbar.id)===g.id?i="drawer-header-toolbar":((R=e.parent)==null?void 0:R.schema.footerToolbar.id)===g.id&&(i="drawer-footer-toolbar")),["page-header","tabs","section","drawer-header-toolbar","drawer-footer-toolbar"].findIndex(z=>z===i)===-1&&(i=""),t.toolbarPosition=i}d();function r(i){return!1}function D(i,n){return n.text=i.label,n}function C(){return!1}function b(){return!1}function M(){return!1}function E(){return!0}function u(i){return new Ct(i,x,g.type).getPropertyConfig(g)}function l(i){var z;i&&(i.stopPropagation(),i.preventDefault());const{schema:n}=e;n.buttons||(n.buttons=[]);let S="";if(n.type)S=n.type+"-item";else switch((z=e.parent)==null?void 0:z.schema.type){case"tabs":S="tab-toolbar-item";break;case"section":S="section-toolbar-item";break;case"drawer":S="drawer-toolbar-item";break;default:S="response-toolbar-item"}const R=ue.getSchemaByType(S);R.id=`toolbar_item_${Math.random().toString().slice(2,6)}`,n.buttons.push(R),t.updateToolbarItems(),t.changeSelectedId("")}function f(){return[{id:"appendItem",title:"新增按钮",text:"",icon:"f-icon f-icon-plus-circle text-white",onClick:i=>l(i)}]}return{canAccepts:r,checkCanAddComponent:M,checkCanDeleteComponent:b,checkCanMoveComponent:C,hideNestedPaddingInDesginerView:E,onResolveNewComponentSchema:D,getPropsConfig:u,getCustomButtons:f}}var be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Se(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Xe={exports:{}};(function(e,x){(function(t){e.exports=t()})(function(){return function(){function t(g,d,r){function D(M,E){if(!d[M]){if(!g[M]){var u=typeof Se=="function"&&Se;if(!E&&u)return u(M,!0);if(C)return C(M,!0);var l=new Error("Cannot find module '"+M+"'");throw l.code="MODULE_NOT_FOUND",l}var f=d[M]={exports:{}};g[M][0].call(f.exports,function(i){var n=g[M][1][i];return D(n||i)},f,f.exports,t,g,d,r)}return d[M].exports}for(var C=typeof Se=="function"&&Se,b=0;b<r.length;b++)D(r[b]);return D}return t}()({1:[function(t,g,d){var r={},D="(?:^|\\s)",C="(?:\\s|$)";function b(u){var l=r[u];return l?l.lastIndex=0:r[u]=l=new RegExp(D+u+C,"g"),l}function M(u,l){var f=u.className;f.length?b(l).test(f)||(u.className+=" "+l):u.className=l}function E(u,l){u.className=u.className.replace(b(l)," ").trim()}g.exports={add:M,rm:E}},{}],2:[function(t,g,d){(function(r){var D=t("contra/emitter"),C=t("crossvent"),b=t("./classes"),M=document,E=M.documentElement;function u(p,v){var s=arguments.length;s===1&&Array.isArray(p)===!1&&(v=p,p=[]);var m,I,j,q,U,Y,A,$,Q,G=null,H,F,oe=!1,ae=0,y,T=v||{};T.moves===void 0&&(T.moves=z),T.accepts===void 0&&(T.accepts=z),T.invalid===void 0&&(T.invalid=Vt),T.containers===void 0&&(T.containers=p||[]),T.isContainer===void 0&&(T.isContainer=R),T.copy===void 0&&(T.copy=!1),T.copySortSource===void 0&&(T.copySortSource=!1),T.revertOnSpill===void 0&&(T.revertOnSpill=!1),T.removeOnSpill===void 0&&(T.removeOnSpill=!1),T.direction===void 0&&(T.direction="vertical"),T.ignoreInputTextSelection===void 0&&(T.ignoreInputTextSelection=!0),T.mirrorContainer===void 0&&(T.mirrorContainer=M.body);var V=D({containers:T.containers,start:At,end:Ke,cancel:ot,remove:nt,destroy:se,canMove:Re,dragging:!1});return T.removeOnSpill===!0&&V.on("over",Lt).on("out",qt),ne(),V;function te(c){return V.containers.indexOf(c)!==-1||T.isContainer(c)}function ne(c){var N=c?"remove":"add";i(E,N,"mousedown",ce),i(E,N,"mouseup",Be)}function re(c){var N=c?"remove":"add";i(E,N,"mousemove",xe)}function Ce(c){var N=c?"remove":"add";C[N](E,"selectstart",ke),C[N](E,"click",ke)}function se(){ne(!0),Be({})}function ke(c){H&&c.preventDefault()}function ce(c){q=c.clientX,U=c.clientY;var N=n(c)!==1||c.metaKey||c.ctrlKey;if(!N){var O=c.target,W=he(O);W&&(H=W,re(),c.type==="mousedown"&&(_(O)?O.focus():c.preventDefault()))}}function xe(c){if(H){if(n(c)===0){Be({});return}if(!(c.clientX!==void 0&&Math.abs(c.clientX-q)<=(T.slideFactorX||0)&&c.clientY!==void 0&&Math.abs(c.clientY-U)<=(T.slideFactorY||0))){if(T.ignoreInputTextSelection){var N=P("clientX",c)||0,O=P("clientY",c)||0,W=M.elementFromPoint(N,O);if(_(W))return}var Z=H;re(!0),Ce(),Ke(),Je(Z),b.add($||j,"gu-transit"),Wt(),Ft(),ae=0,Ae(c)}}}function he(c){if(!(V.dragging&&m)&&!te(c)){for(var N=c;w(c)&&te(w(c))===!1;)if(T.invalid(c,N)||(c=w(c),!c))return;var O=w(c);if(O&&!T.invalid(c,N)){var W=T.moves(c,O,N,o(c));if(W)return{item:c,source:O}}}}function Re(c){return!!he(c)}function At(c){var N=he(c);N&&Je(N)}function Je(c){Zt(c.item,c.source)&&($=c.item.cloneNode(!0),V.emit("cloned",$,c.item,"copy")),I=c.source,j=c.item,Y=A=o(c.item),V.dragging=!0,V.emit("drag",j,I)}function Vt(){return!1}function Ke(){if(V.dragging){var c=$||j;tt(c,w(c))}}function et(){H=!1,re(!0),Ce(!0)}function Be(c){if(et(),!!V.dragging){var N=$||j,O=P("clientX",c)||0,W=P("clientY",c)||0,Z=S(m,O,W),J=rt(Z,O,W);J&&($&&T.copySortSource||!$||J!==I)?tt(N,J):T.removeOnSpill?nt():ot()}}function tt(c,N){var O=w(c);$&&T.copySortSource&&N===I&&O.removeChild(j),_e(N)?V.emit("cancel",c,I):V.emit("drop",c,N,I,A),Oe()}function nt(){if(V.dragging){var c=$||j,N=w(c);N&&N.removeChild(c),V.emit($?"cancel":"remove",c,N,I),Oe()}}function ot(c){if(V.dragging){var N=arguments.length>0?c:T.revertOnSpill,O=$||j,W=w(O),Z=_e(W);Z===!1&&N&&($?W&&W.removeChild($):I.insertBefore(O,Y)),Z||N?V.emit("cancel",O,I,I):V.emit("drop",O,W,I,A),Oe()}}function Oe(){var c=$||j;et(),zt(),Gt(),c&&b.rm(c,"gu-transit"),Q&&clearTimeout(Q),V.dragging=!1,G&&V.emit("out",c,G,I),V.emit("dragend",c,ae),I=j=$=Y=A=Q=G=null}function _e(c,N){var O;return N!==void 0?O=N:m?O=A:O=o($||j),c===I&&O===Y}function rt(c,N,O){for(var W=c;W&&!Z();)W=w(W);return W;function Z(){var J=te(W);if(J===!1)return!1;var ge=it(W,c),de=st(W,ge,N,O),pe=_e(W,de);return pe?!0:T.accepts(j,W,I,de)}}function Ae(c){if(!m)return;c.preventDefault();var N=P("clientX",c)||0,O=P("clientY",c)||0;m.style.left=N-2+"px",m.style.top=O-2+"px";var W=$||j,Z=S(m,N,O),J=rt(Z,N,O),ge=J!==null&&J!==G;(ge||J===null)&&(fe(),G=J,ve()),Qt(Z,O);var de=w(W);if(J===I&&$&&!T.copySortSource){de&&de.removeChild(W);return}var pe,me=it(J,Z);if(oe=Ut(me,J),me!==null)pe=st(J,me,N,O);else if(T.revertOnSpill===!0&&!$)pe=Y,J=I;else{$&&de&&de.removeChild(W),$&&F&&(F.style.display="none");return}F.style.display="block",$t(pe,W,ge),pe?Xt(me,pe):Ht(J);function ie(le){V.emit(le,W,G,I)}function ve(){ge&&ie("over")}function fe(){G&&ie("out")}}function $t(c,N,O){(c===N||c===o(N))&&(A=o(N)),(c===null&&O||c!==N&&c!==o(N))&&(A=c)}function Lt(c){b.rm(c,"gu-hide")}function qt(c){V.dragging&&b.add(c,"gu-hide")}function Ft(){m||(m=document.createElement("div"),m.style="background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;",m.innerHTML=T.getMirrorText&&T.getMirrorText(j)||"控件",b.add(m,"gu-mirror"),T.mirrorContainer.appendChild(m),i(E,"add","mousemove",Ae),b.add(T.mirrorContainer,"gu-unselectable"),V.emit("cloned",m,j,"mirror"))}function Wt(){if(F=document.createElement("div"),b.add(F,"gu-insertion"),j){var c=j.getBoundingClientRect();F.style.left=c.left+"px",F.style.top=c.top+"px"}oe=!1,T.mirrorContainer.appendChild(F)}function zt(){m&&(b.rm(T.mirrorContainer,"gu-unselectable"),i(E,"remove","mousemove",Ae),w(m).removeChild(m),m=null)}function Gt(){F&&(w(F).removeChild(F),F=null)}function it(c,N){for(var O=N;O!==c&&w(O)!==c;)O=w(O);return O===E?null:O}function Ut(c,N){if(!N)return oe;var O=c||N&&N.lastElementChild;if(!O)return!0;var W=getComputedStyle(c),Z=/^inline/.test(W.getPropertyValue("display"))||/^(left|right)$/.test(W.getPropertyValue("float"));if(Z)return!0;if(N){var J=getComputedStyle(N),ge=J.getPropertyValue("display");if(/flex$/.test(ge)){var de=J.getPropertyValue("flex-direction")||"row";if(de==="row"||de==="row-reverse")return!Yt(N)}return!1}return!0}function Yt(c){if(!c.children||!c.children.length)return!1;for(const N of Array.from(c.children)){const W=(N.className&&N.className.split(" ")||[]).filter(Z=>/^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(Z));if(!W.length)return!1;for(const Z of W){const J=Z.slice(Z.lastIndexOf("-")+1);if(parseInt(J,10)!==12)return!1}}return!0}function Xt(c,N){const O=N.getBoundingClientRect();if(F.style.left=O.left+"px",F.style.top=O.top+"px",oe){if(F.style.height=O.height+"px",F.style.width="4px",c){const W=c.getBoundingClientRect();W.top!==O.top&&(F.style.left=W.right+"px",F.style.top=W.top+"px",F.style.height=W.height+"px")}}else if(F.style.height="4px",F.style.width=O.width+"px",y){const W=y.getBoundingClientRect();O.top<W.top&&(F.style.display="none")}N===j&&j&&(F.style.display="none")}function Ht(c){A=null;var N=c.lastElementChild;if(N){var O=N.getBoundingClientRect();oe?(F.style.left=O.right+"px",F.style.top=O.top+"px",F.style.height=O.height+"px",F.style.width="4px"):(F.style.left=O.left+"px",F.style.top=O.bottom+"px",F.style.height="4px",F.style.width=O.width+"px"),N===j&&j&&(F.style.display="none")}else F.style.display="none"}function Qt(c,N){if(!T.mirrorContainer.contains(c)||!window.scrollContainerList||!Array.from(window.scrollContainerList).length||(y=l(c),!y||!y.contains(c)))return;const O=document.querySelector(".dgComponentSelected"),W=y.getBoundingClientRect();if(N-30<W.top&&y.scrollTop>0){let Z=y.scrollTop<10?y.scrollTop:10;y.scrollBy(0,-1*Z),O&&y.contains(O)&&(ae=ae+-1*Z)}if(N+30>W.bottom&&y.scrollTop<y.scrollHeight-y.clientHeight){const Z=y.scrollHeight-y.clientHeight-y.scrollTop;let J=Z<10?Z:10;y.scrollBy(0,J),O&&y.contains(O)&&(ae=ae+J)}}function st(c,N,O,W){var Z=T.direction==="horizontal",J=T.direction==="mixed",ge=N!==c?pe():de();return ge;function de(){var ie=c.children.length,ve,fe,le;for(ve=0;ve<ie;ve++)if(fe=c.children[ve],le=fe.getBoundingClientRect(),Z&&le.left+le.width/2>O||!J&&!Z&&le.top+le.height/2>W||J&&le.left+le.width>O&&le.top+le.height>W)return fe;return null}function pe(){var ie=N.getBoundingClientRect();if(J){var ve=W-ie.top,fe=O-ie.left,le=ie.bottom-W,Ve=ie.right-O,$e=Math.min(fe,Ve,ve,le),Le;return oe?Le=Ve<fe:Le=le===$e||Ve===$e||fe===$e,me(Le)}return me(Z?O>ie.left+B(ie)/2:W>ie.top+k(ie)/2)}function me(ie){return ie?o(N):N}}function Zt(c,N){return typeof T.copy=="boolean"?T.copy:T.copy(c,N)}}function l(p){const v=Array.from(window.scrollContainerList);if(v.length===1){const m=Array.from(window.scrollContainerList)[0];return document.getElementById(m)}const s=f(v);for(const m of s)if(m.contains(p))return m;return null}function f(p){const v=[];return p.forEach(s=>{const m=document.getElementById(s);m&&v.push(m)}),v.sort((s,m)=>s.contains(m)?1:m.contains(s)?-1:0),v}function i(p,v,s,m){var I={mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"},j={mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"},q={mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"};r.navigator.pointerEnabled?C[v](p,j[s],m):r.navigator.msPointerEnabled?C[v](p,q[s],m):(C[v](p,I[s],m),C[v](p,s,m))}function n(p){if(p.touches!==void 0)return p.touches.length;if(p.which!==void 0&&p.which!==0)return p.which;if(p.buttons!==void 0)return p.buttons;var v=p.button;if(v!==void 0)return v&1?1:v&2?3:v&4?2:0}function S(p,v,s){p=p||{};var m=p.className||"",I;return p.className+=" gu-hide",I=M.elementFromPoint(v,s),p.className=m,I}function R(){return!1}function z(){return!0}function B(p){return p.width||p.right-p.left}function k(p){return p.height||p.bottom-p.top}function w(p){return p.parentNode===M?null:p.parentNode}function _(p){return p.tagName==="INPUT"||p.tagName==="TEXTAREA"||p.tagName==="SELECT"||h(p)}function h(p){return!p||p.contentEditable==="false"?!1:p.contentEditable==="true"?!0:h(w(p))}function o(p){return p.nextElementSibling||v();function v(){var s=p;do s=s.nextSibling;while(s&&s.nodeType!==1);return s}}function L(p){return p.targetTouches&&p.targetTouches.length?p.targetTouches[0]:p.changedTouches&&p.changedTouches.length?p.changedTouches[0]:p}function P(p,v){var s=L(v),m={pageX:"clientX",pageY:"clientY"};return p in m&&!(p in s)&&m[p]in s&&(p=m[p]),s[p]}g.exports=u}).call(this,typeof be<"u"?be:typeof self<"u"?self:typeof window<"u"?window:{})},{"./classes":1,"contra/emitter":5,crossvent:6}],3:[function(t,g,d){g.exports=function(D,C){return Array.prototype.slice.call(D,C)}},{}],4:[function(t,g,d){var r=t("ticky");g.exports=function(C,b,M){C&&r(function(){C.apply(M||null,b||[])})}},{ticky:10}],5:[function(t,g,d){var r=t("atoa"),D=t("./debounce");g.exports=function(b,M){var E=M||{},u={};return b===void 0&&(b={}),b.on=function(l,f){return u[l]?u[l].push(f):u[l]=[f],b},b.once=function(l,f){return f._once=!0,b.on(l,f),b},b.off=function(l,f){var i=arguments.length;if(i===1)delete u[l];else if(i===0)u={};else{var n=u[l];if(!n)return b;n.splice(n.indexOf(f),1)}return b},b.emit=function(){var l=r(arguments);return b.emitterSnapshot(l.shift()).apply(this,l)},b.emitterSnapshot=function(l){var f=(u[l]||[]).slice(0);return function(){var i=r(arguments),n=this||b;if(l==="error"&&E.throws!==!1&&!f.length)throw i.length===1?i[0]:i;return f.forEach(function(R){E.async?D(R,i,n):R.apply(n,i),R._once&&b.off(l,R)}),b}},b}},{"./debounce":4,atoa:3}],6:[function(t,g,d){(function(r){var D=t("custom-event"),C=t("./eventmap"),b=r.document,M=l,E=i,u=[];r.addEventListener||(M=f,E=n),g.exports={add:M,remove:E,fabricate:S};function l(w,_,h,o){return w.addEventListener(_,h,o)}function f(w,_,h){return w.attachEvent("on"+_,z(w,_,h))}function i(w,_,h,o){return w.removeEventListener(_,h,o)}function n(w,_,h){var o=B(w,_,h);if(o)return w.detachEvent("on"+_,o)}function S(w,_,h){var o=C.indexOf(_)===-1?P():L();w.dispatchEvent?w.dispatchEvent(o):w.fireEvent("on"+_,o);function L(){var p;return b.createEvent?(p=b.createEvent("Event"),p.initEvent(_,!0,!0)):b.createEventObject&&(p=b.createEventObject()),p}function P(){return new D(_,{detail:h})}}function R(w,_,h){return function(L){var P=L||r.event;P.target=P.target||P.srcElement,P.preventDefault=P.preventDefault||function(){P.returnValue=!1},P.stopPropagation=P.stopPropagation||function(){P.cancelBubble=!0},P.which=P.which||P.keyCode,h.call(w,P)}}function z(w,_,h){var o=B(w,_,h)||R(w,_,h);return u.push({wrapper:o,element:w,type:_,fn:h}),o}function B(w,_,h){var o=k(w,_,h);if(o){var L=u[o].wrapper;return u.splice(o,1),L}}function k(w,_,h){var o,L;for(o=0;o<u.length;o++)if(L=u[o],L.element===w&&L.type===_&&L.fn===h)return o}}).call(this,typeof be<"u"?be:typeof self<"u"?self:typeof window<"u"?window:{})},{"./eventmap":7,"custom-event":8}],7:[function(t,g,d){(function(r){var D=[],C="",b=/^on/;for(C in r)b.test(C)&&D.push(C.slice(2));g.exports=D}).call(this,typeof be<"u"?be:typeof self<"u"?self:typeof window<"u"?window:{})},{}],8:[function(t,g,d){(function(r){var D=r.CustomEvent;function C(){try{var b=new D("cat",{detail:{foo:"bar"}});return b.type==="cat"&&b.detail.foo==="bar"}catch{}return!1}g.exports=C()?D:typeof document<"u"&&typeof document.createEvent=="function"?function(M,E){var u=document.createEvent("CustomEvent");return E?u.initCustomEvent(M,E.bubbles,E.cancelable,E.detail):u.initCustomEvent(M,!1,!1,void 0),u}:function(M,E){var u=document.createEventObject();return u.type=M,E?(u.bubbles=!!E.bubbles,u.cancelable=!!E.cancelable,u.detail=E.detail):(u.bubbles=!1,u.cancelable=!1,u.detail=void 0),u}}).call(this,typeof be<"u"?be:typeof self<"u"?self:typeof window<"u"?window:{})},{}],9:[function(t,g,d){var r=g.exports={},D,C;function b(){throw new Error("setTimeout has not been defined")}function M(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?D=setTimeout:D=b}catch{D=b}try{typeof clearTimeout=="function"?C=clearTimeout:C=M}catch{C=M}})();function E(k){if(D===setTimeout)return setTimeout(k,0);if((D===b||!D)&&setTimeout)return D=setTimeout,setTimeout(k,0);try{return D(k,0)}catch{try{return D.call(null,k,0)}catch{return D.call(this,k,0)}}}function u(k){if(C===clearTimeout)return clearTimeout(k);if((C===M||!C)&&clearTimeout)return C=clearTimeout,clearTimeout(k);try{return C(k)}catch{try{return C.call(null,k)}catch{return C.call(this,k)}}}var l=[],f=!1,i,n=-1;function S(){!f||!i||(f=!1,i.length?l=i.concat(l):n=-1,l.length&&R())}function R(){if(!f){var k=E(S);f=!0;for(var w=l.length;w;){for(i=l,l=[];++n<w;)i&&i[n].run();n=-1,w=l.length}i=null,f=!1,u(k)}}r.nextTick=function(k){var w=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)w[_-1]=arguments[_];l.push(new z(k,w)),l.length===1&&!f&&E(R)};function z(k,w){this.fun=k,this.array=w}z.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={};function B(){}r.on=B,r.addListener=B,r.once=B,r.off=B,r.removeListener=B,r.removeAllListeners=B,r.emit=B,r.prependListener=B,r.prependOnceListener=B,r.listeners=function(k){return[]},r.binding=function(k){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(k){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},{}],10:[function(t,g,d){(function(r){var D=typeof r=="function",C;D?C=function(b){r(b)}:C=function(b){setTimeout(b,0)},g.exports=C}).call(this,t("timers").setImmediate)},{timers:11}],11:[function(t,g,d){(function(r,D){var C=t("process/browser.js").nextTick,b=Function.prototype.apply,M=Array.prototype.slice,E={},u=0;d.setTimeout=function(){return new l(b.call(setTimeout,window,arguments),clearTimeout)},d.setInterval=function(){return new l(b.call(setInterval,window,arguments),clearInterval)},d.clearTimeout=d.clearInterval=function(f){f.close()};function l(f,i){this._id=f,this._clearFn=i}l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(window,this._id)},d.enroll=function(f,i){clearTimeout(f._idleTimeoutId),f._idleTimeout=i},d.unenroll=function(f){clearTimeout(f._idleTimeoutId),f._idleTimeout=-1},d._unrefActive=d.active=function(f){clearTimeout(f._idleTimeoutId);var i=f._idleTimeout;i>=0&&(f._idleTimeoutId=setTimeout(function(){f._onTimeout&&f._onTimeout()},i))},d.setImmediate=typeof r=="function"?r:function(f){var i=u++,n=arguments.length<2?!1:M.call(arguments,1);return E[i]=!0,C(function(){E[i]&&(n?f.apply(null,n):f.call(null),d.clearImmediate(i))}),i},d.clearImmediate=typeof D=="function"?D:function(f){delete E[f]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":9,timers:11}]},{},[2])(2)})})(Xe);var Dt=Xe.exports;const He=Tt(Dt);function St(e){let x;function t(d,r,D,C){const b=e.schema;if(!(b!=null&&b.buttons))return;let M;if(D){const f=D.getAttribute("id");M=Array.from(r.children).findIndex(i=>i.getAttribute("id")===f)}else M=Array.from(r.children).length;const E=d.getAttribute("id"),u=Array.from(r.children).findIndex(f=>f.getAttribute("id")===E),l=b.buttons[u];u!==M&&u>-1&&M>-1&&(u<M&&(M=M-1),b.buttons.splice(u,1),b.buttons.splice(M,0,l),C(),a.nextTick(()=>{const f=r.querySelector(".dgComponentSelected");f!=null&&f.className.includes("dgComponentSelected")&&(f.classList.remove("dgComponentSelected"),f.classList.remove("dgComponentFocused"),f.click()),ye.canvasChanged.value++}))}function g(d,r,D){x&&x.destroy(),!(!He||!d||!r)&&(x=He([d],{mirrorContainer:r,direction:"horizontal",getMirrorText(C){return C.innerText},moves(C,b,M){let E=!0;return M.classList.contains("dropdown-item")?(E=!1,E):(C.classList.contains("no-drag")&&(E=!1),E)}}).on("drop",(C,b,M,E)=>t(C,b,E,D)))}return{dragulaInstance:x,initDragula:g}}function kt(e,x,t){const{renderToolbarItemDesigner:g,actionHandlers:d}=t;let r;function D(B){r=B}function C(B,k=null){const w=x.value.find(_=>_.id===B.id);if(w.isDP)if(document.body.click(),typeof k=="boolean")w.expanded=k;else{const _=B.expanded;w.expanded=!_}}d.toggleDropdownMenu=C;function b(B){var w;const k={"dropdown-menu":!0};if(B.class){const _=(w=B.menuClass)==null?void 0:w.split(" ");_&&_.length&&_.reduce((h,o)=>(h[o]=!0,h),k)}return k}function M(B){const k={disabled:B.disabled===!1,"dropdown-submenu":!0,"f-rt-dropdown":!0,"text-truncate":!0};return X.getCustomClass(k,B.dropdownClass||"")}function E(B){const k={disabled:!1,"dropdown-item":!0,"f-rt-btn":!0,"position-relative":!0,"farris-component":!0,"text-truncate":!0};return X.getCustomClass(k,B.class||"")}let u;const l=new Map;function f(B,k,w){B.stopPropagation();const _=w?w.id:"__top_item__";if(k.children&&k.children.length&&(k.expanded=!k.expanded,k.expanded)){if(l.has(_)&&l.get(_)!==k){const h=l.get(_);h&&(h.expanded=!1,l.delete(_))}l.set(_,k)}}function i(B){var k;return(k=B.children)==null?void 0:k.map((w,_)=>w.children&&w.children.length?a.createVNode("li",{class:M(w),id:w.id},[a.createVNode("span",{class:E(w),onClick:h=>f(h,w,B)},[w.text,a.createVNode("i",{class:"f-icon f-icon-arrow-chevron-right",style:"display: inline-block;float: right;line-height: 1.25rem;"},null)]),u(w,w)]):g(w,_,!0))}function n(B){return B==="page-header"||B==="drawer-header-toolbar"}function S(B,k,w,_){const{height:L,left:P,top:p}=_[0],{width:v,height:s}=w.getBoundingClientRect(),{marginTop:m,marginBottom:I}=getComputedStyle(w),j=Math.ceil(parseFloat(m))+Math.ceil(parseFloat(I)),q=p+L,U=k==null?void 0:k.getBoundingClientRect();function Y(){let G=0,H="left";const F=U?U.right:window.innerWidth,oe=U?U.left:0;return G=F-P-10,F-P<v&&P-oe>F-P&&(H="right",G=P-oe-10),{hposition:H,maxWidth:Math.min(G,300)}}let A=0,$="bottom";if(B==="tabs"||B==="section")A=k.getBoundingClientRect().bottom-q-j-10;else{const G=U?U.bottom:window.innerHeight;A=n(B)?G-q:p,A=A-j-10,$=n(B)?"bottom":"top"}const Q=Y();return{position:$+"-"+Q.hposition,maxWidth:Q.maxWidth,maxHeight:A}}function R(B){var o,L,P,p;const k="300px",w={display:B.expanded===!0?"block":"none",position:"absolute",maxWidth:k,minWidth:"120px"};if(!(r!=null&&r.value))return w;const _=r.value.querySelector("#"+B.id),h=_==null?void 0:_.getClientRects();if(_&&h&&h.length>0){const v=_?_.querySelector("#"+B.id+"_menu"):null;if(!v||B.expanded!==!0)return w;v.style.visibility="hidden",v.style.display="block",v.style.maxHeight="auto",v.style.maxWidth=k;let s;switch(d.toolbarPosition){case"tabs":s=(o=r.value)==null?void 0:o.closest(".farris-tabs");break;case"section":s=(L=r.value)==null?void 0:L.closest(".f-section");break;case"drawer-header-toolbar":case"drawer-footer-toolbar":s=(P=r.value)==null?void 0:P.closest(".f-drawer-container");break;default:s=(p=r.value)==null?void 0:p.closest(".f-page")}const m=S(d.toolbarPosition,s,v,h),{position:I,maxHeight:j,maxWidth:q}=m;v.style.visibility="visible";const U={left:I.indexOf("left")>-1?0:"unset",right:I.indexOf("left")>-1?"unset":0,bottom:I.indexOf("bottom")>-1?"unset":"100%",top:I.indexOf("bottom")>-1?"!00%":"unset",maxWidth:q?q+"px":"300px",maxHeight:j?j+"px":"auto",overflowY:j?"auto":"unset"};Object.assign(w,U)}return w}d.changeMenuPosition=R,u=function(B,k){return a.createVNode("ul",{class:b(B),style:R(B),id:B.id+"_menu"},[i(B)])};function z(B=""){B&&l.has(B)?l.forEach((k,w)=>{w!==B&&(k.expanded=!1,l.delete(w))}):(l.forEach(k=>{k.expanded=!1}),l.clear())}return{renderDropdownMenu:u,clearAllDropDownMenu:z,setResponseToolbarRef:D}}class It extends Fe.BaseControlProperty{constructor(t,g,d="response-toolbar-item"){super(t,g);K(this,"toolbarType","response-toolbar-item");this.toolbarType=d}getPropertyConfig(t,g=!1){this.propertyConfig.categories.basic=this.getBasicPropConfig(t),this.propertyConfig.categories.basic.properties.text={title:"文本",type:"string",description:"",refreshPanelAfterChanged:!0},this.propertyConfig.categories.basic.setPropertyRelates=r=>{if(r)switch(r&&r.propertyID){case"text":{r.needRefreshControlTree=!0;break}}},this.getAppearanceProperties(t,g);const d=this.getPropertyEditorParams(t,["Const","Variable","StateMachine","Expression"],"disabled");return this.propertyConfig.categories.behavior=this.getBehaviorConfig(t,"",{disabled:{title:"禁用",type:"boolean",description:"按钮禁用状态",refreshPanelAfterChanged:!0,editor:d}}),this.getEventPropConfig(t),this.propertyConfig}getAppearanceProperties(t,g=!1){this.propertyConfig.categories.appearance={title:"外观",description:"Appearance",properties:{class:{title:"class样式",type:"string",description:"",$converter:"/converter/appearance.converter",parentPropertyID:"appearance",visible:!g},icon:{title:"图标",type:"string",description:""},dropdownClass:{title:"下拉按钮样式",type:"string",description:"下拉按钮样式",visible:!!(t.children&&t.children.length>0)},split:{title:"下拉按钮分离",type:"boolean",description:"启用下拉按钮分离,可以单独点击按钮。单独点击下拉按钮展开下拉面板",visible:!!(t.children&&t.children.length>0)},tipsEnable:{title:"启用提示",type:"boolean",description:"当启用提示时,鼠标滑过按钮会有消息提示框",refreshPanelAfterChanged:!0,visible:this.toolbarType==="response-toolbar-item"},tipsText:{title:"提示消息内容",type:"string",description:"消息提示框内的展示内容",visible:t.tipsEnable===!0}}}}getEventPropConfig(t){const g=[{label:"onClick",name:"点击事件"}],d=this,r=d.eventsEditorUtils.formProperties(t,d.viewModelId,g),D=d.createBaseEventProperty(r);this.propertyConfig.categories.eventsEditor={title:"事件",hideTitle:!0,properties:D,refreshPanelAfterChanged:!0,tabId:"commands",tabName:"交互",setPropertyRelates(C,b){const M=C.propertyValue;delete t[d.viewModelId],M&&(M.setPropertyRelates=this.setPropertyRelates,d.eventsEditorUtils.saveRelatedParameters(t,d.viewModelId,M.events,M))}}}}function Me(e,x){if(!e)return!1;const t=x||[];return(t==null?void 0:t.findIndex(d=>d.id===e))===-1}function Qe(e,x){const t=x||[];let g={parentIndex:-1,itemIndex:-1};return t.some((d,r)=>{if(d.children&&d.children.length>0){const D=d.children.findIndex(C=>C.id===e);return D>-1?(g={parentIndex:r,itemIndex:D},!0):!1}}),g}function Ze(e,x){const t=x||[];let g={parentIndex:-1,itemIndex:-1};const d=t==null?void 0:t.findIndex(r=>r.id===e);return d>-1?{parent:null,item:t[d]}:(t.some((r,D)=>{if(r.children&&r.children.length>0){const C=r.children.findIndex(b=>b.id===e);return C>-1?(g={parentIndex:D,itemIndex:C},!0):!1}}),g.parentIndex<0?{parent:null,item:null}:{parent:t[g.parentIndex],item:t[g.parentIndex].children[g.itemIndex]})}function Pt(e,x){const t=x||[],g=t==null?void 0:t.findIndex(d=>d.id===e);return g>-1&&t[g].children&&t[g].children.length>0?t[g].expanded===!0:!1}function Et(e,x){let t;function g(u){const{properties:l,title:f,ignore:i}=u,n=i&&Array.isArray(i),S=Object.keys(l).reduce((R,z)=>((!n||!i.find(B=>B===z))&&(R[z]=l[z].type==="object"&&l[z].properties?g(l[z]):we.cloneDeep(l[z].default)),R),{});if(f&&(!n||!i.find(R=>R==="id"))){const R=f.toLowerCase().replace(/-/g,"_");S.id=`${R}_${Math.random().toString().slice(2,6)}`}return S}function d(u){const{properties:l,title:f,required:i}=u;if(i&&Array.isArray(i)){const n=i.reduce((S,R)=>(S[R]=l[R].type==="object"&&l[R].properties?g(l[R]):we.cloneDeep(l[R].default),S),{});if(f&&i.find(S=>S==="id")){const S=f.toLowerCase().replace(/-/g,"_");n.id=`${S}_${Math.random().toString().slice(2,6)}`}return n}return{type:f}}function r(u,l={},f){const i=e[u];if(i){let n=d(i);const S=x[u];return n=S?S({getSchemaByType:r},n,l,f):n,t!=null&&t.appendIdentifyForNewControl&&t.appendIdentifyForNewControl(n),n}return null}function D(u,l){const f=g(l);return Object.keys(f).reduce((i,n)=>(Object.prototype.hasOwnProperty.call(u,n)&&(i[n]&&we.isPlainObject(i[n])&&we.isPlainObject(u[n]||!u[n])?Object.assign(i[n],u[n]||{}):i[n]=u[n]),i),f),f}function C(u,l){return Object.keys(u).filter(i=>u[i]!=null).reduce((i,n)=>{if(l.has(n)){const S=l.get(n);if(typeof S=="string")i[S]=u[n];else{const R=S(n,u[n],u);Object.assign(i,R)}}else i[n]=u[n];return i},{})}function b(u,l,f=new Map){const i=D(u,l);return C(i,f)}function M(u){var f;const l=u.type;if(l){const i=e[l];if(!i)return u;const n=D(u,i),S=((f=u.editor)==null?void 0:f.type)||"";if(S){const R=e[S],z=D(u.editor,R);n.editor=z}return n}return u}function E(u){t=u}return{getSchemaByType:r,resolveSchemaWithDefaultValue:M,resolveSchemaToProps:b,mappingSchemaToProps:C,setDesignerContext:E}}const Mt={},jt={},{getSchemaByType:Nt}=Et(Mt,jt);function Rt(e,x,t){function g(v){return!1}function d(){return!1}function r(){return!1}function D(){return!1}function C(){return t.toolbarContext.schema.buttons||[]}function b(v,s=""){setTimeout(()=>{var q,U;const m=(q=e.parent)==null?void 0:q.designerItemElementRef.value;let I;s&&(I=m==null?void 0:m.querySelector("#"+s));const j=(U=I||m)==null?void 0:U.querySelector("#"+v);j==null||j.click()},0)}function M(v,s){s.disabled&&s.disabled.expressionId&&(s.disabled.expressionId=`${s.id}_disabled`),s.visible&&s.visible.expressionId&&(s.visible.expressionId=`${s.id}_visible`);const m=x.formSchemaUtils.getExpressions(),I=m.find(q=>q.target===v.id);if(!I||!I.rules||!I.rules.length)return;const j={target:s.id,rules:[],targetType:"Button"};I.rules.forEach(q=>{const U=Object.assign(we.cloneDeep(q),{id:`${s.id}_${q.type}`});j.rules.push(U)}),m.push(j)}function E(){var I;const v=e.schema,s=Object.assign(we.cloneDeep(v),{id:`${e.schema.type}-cloned-${Math.random().toString(36).slice(2,6)}`,onClick:null});(I=x==null?void 0:x.designerContext)!=null&&I.appendIdentifyForNewControl&&x.designerContext.appendIdentifyForNewControl(s);let m=[];return s.children&&s.children.length&&(m=s.children.map(j=>{var U;const q=we.cloneDeep(j);return Object.assign(q,{id:`${e.schema.type}-cloned-${Math.random().toString(36).slice(2,6)}`,onClick:null}),(U=x==null?void 0:x.designerContext)!=null&&U.appendIdentifyForNewControl&&x.designerContext.appendIdentifyForNewControl(q),M(j,q),q}),s.children=m),M(v,s),s}function u(){const v=e.schema.type||"response-toolbar-item",s=Nt(v),m=v.toLowerCase().replace("-","_");return s&&!s.id&&s.type===v&&(s.id=`${m}_${Math.random().toString().slice(2,6)}`,s.text="按钮"),s}function l(v){const s=C(),m=s==null?void 0:s.findIndex(j=>j.id===v),I=m===-1?null:s[m];return{index:m,toolbarItem:I}}function f(){const v=e.schema.id,s=C();return Me(v,s)}function i(v){const s=x.formSchemaUtils.getExpressions();if(!s||!s.length)return;const m=I=>{const j=s&&s.findIndex(q=>q.target===I.id);j>-1&&s.splice(j,1)};m(v),v.children&&v.children.length&&v.children.forEach(I=>{m(I)})}function n(v){t.changeSelectedId(v)}function S(v){x.formSchemaUtils.removeCommunicationInComponent(v),v.children&&v.children.length&&v.children.forEach(s=>{x.formSchemaUtils.removeCommunicationInComponent(s)})}function R(){var I,j,q;if((I=x==null?void 0:x.designerContext)!=null&&I.checkCanDeleteControl&&!x.designerContext.checkCanDeleteControl(e.schema))return;const v=C(),{parentIndex:s,itemIndex:m}=Qe(e.schema.id,v);s===-1||m===-1||(i(e.schema),S(e.schema),v[s].children.splice(m,1),t.updateToolbarItems(),(j=e.setupContext)==null||j.emit("removeComponent"),(q=e.setupContext)==null||q.emit("selectionChange"),ye.canvasChanged.value++)}function z(){var I,j,q;if((I=x==null?void 0:x.designerContext)!=null&&I.checkCanDeleteControl&&!x.designerContext.checkCanDeleteControl(e.schema))return;const v=e.schema.id,s=C(),m=s==null?void 0:s.findIndex(U=>U.id===v);m!==-1&&(i(s[m]),S(s[m]),s==null||s.splice(m,1),t.updateToolbarItems(),(j=e.setupContext)==null||j.emit("removeComponent"),(q=e.setupContext)==null||q.emit("selectionChange"),ye.canvasChanged.value++)}function B(v="Append"){var U;const s=C(),{parentIndex:m,itemIndex:I}=Qe(e.schema.id,s);if(m===-1||I===-1)return;const j=u(),q=v==="Copy"?E():Object.assign({},j);s[m].children.splice(I+1,0,q),t.updateToolbarItems(),n(q.id),(U=e.setupContext)==null||U.emit("addComponent")}function k(v,s){const{index:m}=l(s);if(m===-1)return{index:m,schema:null};const I=u(),j=v==="Copy"?E():Object.assign({},I);return{index:m,schema:j}}function w(){var I;const v=e.schema.id,{index:s,schema:m}=k("Copy",v);m&&(C().splice(s+1,0,m),t.updateToolbarItems(),b(m.id),(I=e.setupContext)==null||I.emit("addComponent"))}function _(){var I;const v=e.schema.id,{index:s,schema:m}=k("Append",v);if(m&&e.parent){const q=C()[s].children||[];q.push(m);const U=C();U[s].children=q,t.updateToolbarItems(),n(m.id),(I=e.setupContext)==null||I.emit("addComponent")}}function h(v){let s;switch(e.schema.type){case"tab-toolbar-item":s=new at.TabToolbarItemProperty(v,x);break;default:s=new It(v,x,e.schema.type)}return s.getPropertyConfig(e.schema,f())}function o(v){v.stopPropagation(),v.stopImmediatePropagation()}function L(){const v=[{id:"delete",title:"删除",text:"",icon:"f-icon-yxs_delete",onClick:s=>{o(s),f()?R():z()}},{id:"copy",title:"复制",icon:"f-icon-yxs_copy",onClick:s=>{o(s);const{activeElement:m}=document,I=m?m.tagName.toLowerCase():"";I&&I==="input"||I==="textarea"?(m==null||m.blur(),a.nextTick(()=>{f()?B("Copy"):w()})):f()?B("Copy"):w()}}];return v.push(f()?{id:"appendSiblingButton",title:"",text:"新增同级",icon:"f-icon-plus-circle",onClick:s=>{o(s),B()}}:{id:"appendChildButton",title:"",text:"新增子级",icon:"f-icon-plus-circle",onClick:s=>{o(s),_()}}),v}function P(){const{schema:v}=e;i(v)}function p(){var v,s,m,I;if(e&&x){const{formSchemaUtils:j}=x,{schema:q}=e;switch(q.type){case"response-toolbar-item":{j.getControlBasicInfoMap().set(q.id,{componentTitle:q.text,parentPathName:q.text});break}case"tab-toolbar-item":case"section-toolbar-item":case"drawer-toolbar-item":{let U;const Y=(v=e.parent)==null?void 0:v.parent;(Y==null?void 0:Y.schema.type)==="tabs"||(Y==null?void 0:Y.schema.type)==="section"||(Y==null?void 0:Y.schema.type)==="drawer"?U=(s=Y.componentInstance)==null?void 0:s.value:U=(I=(m=Y==null?void 0:Y.parent)==null?void 0:m.componentInstance)==null?void 0:I.value,U!=null&&U.setComponentBasicInfoMap&&U.setComponentBasicInfoMap()}}}}return{canAccepts:g,checkCanMoveComponent:d,checkCanDeleteComponent:r,checkCanAddComponent:D,getPropsConfig:h,getCustomButtons:L,onRemoveComponent:P,setComponentBasicInfoMap:p}}const je=a.defineComponent({name:"FResponseToolbarItemDesign",props:ze,emits:["Click","dropdown","clearAll"],setup(e,x){const t=a.ref(e.alignment),g=Ee(),d=a.ref(),r=a.inject("designer-host-service"),D=a.inject("design-item-context"),C=a.inject("toolbar-item-action"),b=Rt(D,r,C),M=ye.useDesignerInnerComponent(d,D,b);a.onMounted(()=>{d.value.componentInstance=M}),x.expose(M.value);function E(){const k={"f-icon":!0},w=e.icon?e.icon.trim():"";return X.getCustomClass(k,w)}function u(){return!!(e.icon&&e.icon.trim())}const l=a.computed(()=>{const k={btn:!0,"f-rt-btn":!0,"f-btn-ml":!e.isDP&&(t.value==="right"||t.value==="center"),"f-btn-mr":!e.isDP&&t.value==="left","btn-icontext":!!(e.icon&&e.icon.trim()),disabled:e.disabled===!0,"no-drag":!0,"text-truncate":!0};return X.getCustomClass(k,e.class)}),f=a.computed(()=>e.split?{display:"flex","align-items":"center"}:{display:"flex","align-items":"center","border-radius":"6px","padding-right":"0.1rem","border-top-right-radius":"6px","border-bottom-right-radius":"6px"}),i=a.computed(()=>{const k={btn:!0,"dropdown-toggle":!0,"f-btn-mr":t.value==="left","dropdown-toggle-split":!0,"no-drag":!0};return X.getCustomClass(k,e.class)}),n=a.computed(()=>{let k={btn:!e.isDPItem,disabled:e.disabled===!0,"dropdown-item":e.isDPItem,"f-rt-btn":!0,"text-truncate":!0,"btn-icontext":!e.isDPItem&&!!(e.icon&&e.icon.trim()),"dropdown-item-icontext":e.isDPItem&&!!(e.icon&&e.icon.trim()),"no-drag":!0};return e.isDPItem||(k=X.getCustomClass(k,e.class||"")),e.isDP&&(k=X.getCustomClass(k,e.dropdownClass||"")),k});function S(k,w){w&&w.stopPropagation(),x.emit(k,{id:e.id,isDP:e.isDP})}function R(){const k={"btn-group":!0,"no-drag":!0,"f-rt-dropdown":!0,"f-btn-ml":t.value==="right"||t.value==="center","f-btn-mr":t.value==="left"};return X.getCustomClass(k,e.dropdownClass)}function z(){return a.createVNode("div",{ref:d,"data-dragref":`${D.schema.id}-container`,class:"farris-component position-relative",style:"display:inline-block!important;"},[a.createVNode("div",{class:R(),id:e.id},[a.createVNode("div",{class:l.value,style:f.value,onClick:()=>S("clearAll")},[g.shouldShowIcon(e)&&a.createVNode("i",{class:g.iconClass(e)},null),a.createVNode("span",null,[e.text]),!e.split&&a.createVNode("span",{class:"f-icon f-icon-arrow-chevron-down",style:"margin:0 0.5rem 0 0.25rem;",onClick:k=>S("dropdown",k)},null)]),e.split&&a.createVNode("button",{class:i.value,style:"border-radius:0 6px 6px 0;",onClick:k=>S("dropdown",k)},null),C.renderDropdownMenu(e.item,e.item)])])}function B(){return a.createVNode("li",{ref:d,"data-dragref":`${D.schema.id}-container`,id:e.id,class:n.value},[g.shouldShowIcon(e)&&a.createVNode("i",{class:g.iconClass(e)},null),e.text])}return()=>e.isDP?z():e.isDPItem?B():a.createVNode("div",{ref:d,"data-dragref":`${D.schema.id}-container`,class:"farris-component position-relative",style:"display:inline-block!important;"},[a.createVNode("button",{type:"button",class:l.value,id:e.id,onClick:()=>S("clearAll")},[u()&&a.createVNode("i",{class:E()},null),e.text])])}});function Bt(e,x,t,g){function d(l,f,i,n){g.changeSelectedId((f==null?void 0:f.id)||""),t&&t.setupContext&&t.setupContext.emit("selectionChange",l,f,i,n)}function r(){}function D(l){const f=l.expanded;g.clearAllDropdown(),g.toggleDropdownMenu(l,!f)}function C(l){g.clearAllDropdown(l.isDP?l.id:"")}function b(l,f=""){const i=e.items||[],n=f||l,S=i.find(R=>R.id===n);return f?S.children.find(R=>R.id===l):S}function M(l,f=!1){if(!f)return;const i=l.target;i!=null&&i.classList.contains("dgComponentFocused")&&(i==null||i.classList.add("dgComponentSelected"))}function E(l,f=!1){if(!f)return;const i=l.target;i!=null&&i.classList.contains("dgComponentFocused")&&(i==null||i.classList.remove("dgComponentSelected"))}function u(l,f,i=!1){const n=b(l.id,l.parent),S=a.ref(n);return a.createVNode(ye.FDesignerInnerItem,{key:n.id,class:["p-0",i?"d-block no-drag":"d-inline-block"],modelValue:S.value,"onUpdate:modelValue":R=>S.value=R,canMove:!1,childType:"response-toolbar-item",childLabel:"按钮",contentKey:"buttons",componentId:e.componentId,id:n.id,onSelectionChange:d,onRemoveComponent:r,onMouseenter:R=>M(R,i),onMouseleave:R=>E(R,i)},{default:()=>{var R;return[a.createVNode(je,{id:n.id,disabled:n.disabled,text:n.text,icon:n.icon,isDP:l.isDP,item:l,split:n.split,isDPItem:l.isDPItem,class:((R=l.appearance)==null?void 0:R.class)||"btn-secondary",dropdownClass:l.dropdownClass,alignment:e.alignment||"right",onDropdown:()=>D(l),onClearAll:z=>C(z),componentId:e.componentId},null)]}})}return{renderToolbarItemDesigner:u,actionHandlers:g}}function Ne(e,x=!1,t=""){const g=[];return e.reduce((d,r)=>{if(r.children&&r.children.length>0){const D=Ne(r.children,!0,r.id);d.push(Object.assign({},r,{children:D,isDPItem:!1,isDP:!0,parent:"",expanded:!1}))}else d.push(Object.assign({},r,{isDPItem:x,isDP:!1,parent:t}));return d},g),g}const Te=a.defineComponent({name:"FResponseToolbarDesign",props:ft,emits:["Click"],setup(e,x){const t=a.ref(Ne(e.items)),g=a.ref(),d=a.ref(),r=a.ref(),D=a.ref("");let C=0;const b=15,M=a.inject("designer-host-service"),E=a.inject("design-item-context"),u={clearAllDropdown:A=>{},toggleDropdownMenu:A=>{},updateToolbarItems:()=>{},changeSelectedId:A=>{D.value=A},renderDropdownMenu:(A,$)=>{},toolbarContext:E,changeMenuPosition:(A,$,Q)=>({}),toolbarPosition:""},l=xt(E,M,u),f=ye.useDesignerComponent(r,E,l),i=a.inject("toolbar-item-handler"),{initDragula:n,dragulaInstance:S}=St(E),R=Ee(),z=Bt(e,d,E,u),B=kt(R,t,z),{renderToolbarItemDesigner:k}=z,{clearAllDropDownMenu:w,renderDropdownMenu:_,setResponseToolbarRef:h}=B;a.provide("toolbar-item-action",u),u.renderDropdownMenu=_,h(r),i&&(i.changeSelectedId=function(A){D.value=A});function o(){const A=d.value.querySelector(".dgComponentSelected");A&&ye.setPositionForSelectedElement(A)}function L(){if(D.value)if(Me(D.value,t.value)){const{parent:A,item:$}=Ze(D.value,t.value);A&&(u.toggleDropdownMenu(A,!0),setTimeout(()=>{var H;const Q=r.value.querySelector("#"+A.id),G=Q==null?void 0:Q.querySelector("#"+$.id);(((H=G==null?void 0:G.parentElement)==null?void 0:H.className)||"").indexOf("dgComponentFocused")<0&&(G==null||G.click())},0))}else o()}function P(A=""){t.value.filter($=>$.id!==A&&$.children&&$.children.length>0).forEach($=>{$.expanded=!1}),w(A)}u.clearAllDropdown=P;function p(){i&&i.updateToolbarItems&&i.updateToolbarItems()}u.updateToolbarItems=p;function v(A){if(A){const $=r.value.querySelector("#"+A.id),Q=$.querySelector("#"+A.id+"_menu"),G=u.changeMenuPosition(A,$);Object.keys(G).forEach(H=>{Q.style[H]=G[H]})}}function s(){const Q=d.value.clientWidth,G=d.value.querySelectorAll(".farris-component>.f-rt-btn");G&&G.forEach(F=>{F.style.maxWidth=Q-12+"px"});const H=d.value.querySelectorAll(".farris-component>.f-rt-dropdown");H&&H.forEach(F=>{F.querySelector(".dropdown-toggle-split")?F.querySelector(".f-rt-btn").style.maxWidth=Q-38+"px":F.style.maxWidth=Q-12+"px"})}const m=new ResizeObserver(A=>{var $;if(A.length){const G=A[0].contentRect.width;if(G===0){C=0;return}if(Math.abs(G-C)>b){if(C=G,Me(D.value,t.value)){const{parent:H,item:F}=Ze(D.value,t.value);v(H)}else if(Pt(D.value,t.value)){const H=($=t.value)==null?void 0:$.find(F=>F.id===D.value);v(H)}else P();s()}}});a.onMounted(()=>{m.observe(r.value),C=r.value.clientWidth,r.value.componentInstance=f,n(d.value,g.value,p)}),a.onUnmounted(()=>{m.disconnect(),S&&S.destroy&&S.destroy()}),x.expose(f.value);const I=a.computed(()=>{const A={"f-toolbar":!0,"f-response-toolbar":!0,"position-relative":!0,"f-response-toolbar-sm":e.buttonSize==="sm","f-response-toolbar-lg":e.buttonSize==="lg"};return X.getCustomClass(A,e.customClass)}),j=a.computed(()=>({"text-left":e.alignment==="left","text-right":e.alignment==="right","justify-content-end":e.alignment==="right","justify-content-start":e.alignment==="left","justify-content-center":e.alignment==="center","no-drag":!0,"w-100":!0}));a.watch(()=>e.items,()=>{t.value=Ne(e.items),a.nextTick(()=>{L(),s()})},{deep:!0});function q(A){A&&(A.stopPropagation(),A.preventDefault());const{schema:$}=E;$.buttons||($.buttons=[]);let Q="";switch(u.toolbarPosition){case"drawer-header-toolbar":case"drawer-footer-toolbar":Q="drawer-toolbar-item";break;case"tabs":Q="tab-toolbar-item";break;case"section":Q="section-toolbar-item";break;default:Q="response-toolbar-item"}const G=ue.getSchemaByType(Q);G.id=`toolbar_item_${Math.random().toString().slice(2,6)}`,$.buttons.push(G)}function U(){return a.inject("external-container-id")?null:a.createVNode("li",{style:"border-width: 1px;border-style: dashed;display: inline-block;padding: 0 8px;line-height: 24px; border-radius: 3px; cursor: default;color: #B4BCCC;",onClick:q},[a.createVNode("span",{class:"f-icon f-icon-amplification mr-1",style:"font-size: 12px;"},null),a.createVNode("span",{class:"farris-tag-add-text"},[a.createTextVNode("添加按钮")])])}function Y(){return t.value.map((A,$)=>k(A,$))}return()=>{var A;return a.createVNode("div",{ref:r,"data-dragref":`${E.schema.id}-container`,class:I.value,id:e.id},[a.createVNode("div",{ref:g,class:j.value,onClick:$=>P($)},[a.createVNode("div",{ref:d,class:"d-block f-response-content"},[(A=t.value)!=null&&A.length?Y():U()])])])}}}),Ot=Pe;Te.register=(e,x,t,g)=>{e["response-toolbar"]=wt,x["response-toolbar"]=Pe,g["response-toolbar"]={eventHandlerResolver:ht}},Te.registerDesigner=(e,x,t)=>{e["response-toolbar"]=Te,x["response-toolbar"]=Pe,e["response-toolbar-item"]=je,x["response-toolbar-item"]=pt};const _t=X.withInstall(Te);ee.FResponseToolbarDesign=Te,ee.FResponseToolbarItemDesign=je,ee.commonToolbarItemDesignProps=We,ee.default=_t,ee.responseToolbarResolver=Ot,ee.schemaResolver=Ie,Object.defineProperties(ee,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|