@gct-paas/schema 0.1.4-dev.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/dist/index.esm.min.mjs +1250 -0
  4. package/dist/index.min.cjs +1 -0
  5. package/dist/index.system.min.js +1 -0
  6. package/es/constants/index.d.ts +14 -0
  7. package/es/constants/index.mjs +370 -0
  8. package/es/index.d.ts +8 -0
  9. package/es/index.mjs +20 -0
  10. package/es/interface/common/data-linkage-config.d.ts +17 -0
  11. package/es/interface/designer.d.ts +99 -0
  12. package/es/interface/index.d.ts +6 -0
  13. package/es/interface/modal/i-modal-body.d.ts +15 -0
  14. package/es/interface/modal/i-modal-bottom-button.d.ts +15 -0
  15. package/es/interface/modal/i-modal-footer.d.ts +15 -0
  16. package/es/interface/modal/i-modal-props.d.ts +26 -0
  17. package/es/interface/modal/i-modal.d.ts +52 -0
  18. package/es/interface/modal/index.d.ts +17 -0
  19. package/es/interface/schema/index.d.ts +2 -0
  20. package/es/interface/schema/widget-props/i-button-props.d.ts +170 -0
  21. package/es/interface/schema/widget-props/i-display-props.d.ts +48 -0
  22. package/es/interface/schema/widget-props/i-form-container-props.d.ts +77 -0
  23. package/es/interface/schema/widget-props/i-form-input-props.d.ts +409 -0
  24. package/es/interface/schema/widget-props/i-layout-props.d.ts +77 -0
  25. package/es/interface/schema/widget-props/i-search-widget-props.d.ts +126 -0
  26. package/es/interface/schema/widget-props/i-table-column-props.d.ts +54 -0
  27. package/es/interface/schema/widget-props/i-table-props.d.ts +384 -0
  28. package/es/interface/schema/widget-props/index.d.ts +8 -0
  29. package/es/interface/schema/widget-types.d.ts +370 -0
  30. package/es/interface/widget/i-common.d.ts +42 -0
  31. package/es/interface/widget/i-editors.d.ts +240 -0
  32. package/es/interface/widget/i-events.d.ts +55 -0
  33. package/es/interface/widget/i-hooks-and-misc.d.ts +59 -0
  34. package/es/interface/widget/i-props.d.ts +177 -0
  35. package/es/interface/widget/i-schemas.d.ts +135 -0
  36. package/es/interface/widget/i-styles.d.ts +114 -0
  37. package/es/interface/widget/index.d.ts +53 -0
  38. package/es/interface/widget-info/i-designer-item-hooks.d.ts +21 -0
  39. package/es/interface/widget-info/i-designer-schema-exports.d.ts +13 -0
  40. package/es/interface/widget-info/i-widget-info-item.d.ts +78 -0
  41. package/es/interface/widget-info/i-widget-info.d.ts +19 -0
  42. package/es/interface/widget-info/index.d.ts +4 -0
  43. package/es/schema/common-config/base-button-config.d.ts +3 -0
  44. package/es/schema/common-config/base-button-config.mjs +84 -0
  45. package/es/schema/common-config/button-editor-config.d.ts +4 -0
  46. package/es/schema/common-config/button-editor-config.mjs +206 -0
  47. package/es/schema/common-config/button-props-func.d.ts +5 -0
  48. package/es/schema/common-config/button-props-func.mjs +11 -0
  49. package/es/schema/common-config/common-field-editor-config.d.ts +10 -0
  50. package/es/schema/common-config/common-field-editor-config.mjs +61 -0
  51. package/es/schema/common-config/common-style.d.ts +3 -0
  52. package/es/schema/common-config/common-style.mjs +85 -0
  53. package/es/schema/common-config/display-editor-config.d.ts +3 -0
  54. package/es/schema/common-config/display-editor-config.mjs +89 -0
  55. package/es/schema/common-config/permission-editor-config.d.ts +2 -0
  56. package/es/schema/common-config/permission-editor-config.mjs +23 -0
  57. package/es/schema/index.d.ts +9 -0
  58. package/es/schema/modal/modal-body.d.ts +2 -0
  59. package/es/schema/modal/modal-body.mjs +9 -0
  60. package/es/schema/modal/modal-footer.d.ts +2 -0
  61. package/es/schema/modal/modal-footer.mjs +9 -0
  62. package/es/schema/modal/modal.d.ts +8 -0
  63. package/es/schema/modal/modal.mjs +182 -0
  64. package/es/types/index.d.ts +1 -0
  65. package/es/utils/index.d.ts +3 -0
  66. package/es/utils/schema/index.d.ts +45 -0
  67. package/es/utils/schema/index.mjs +49 -0
  68. package/es/utils/schema-style/index.d.ts +108 -0
  69. package/es/utils/schema-style/index.mjs +155 -0
  70. package/es/utils/widget-info/widget-info.d.ts +104 -0
  71. package/es/utils/widget-info/widget-info.mjs +76 -0
  72. package/package.json +63 -0
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@gct-paas/core"),a=require("lodash-es"),P={id:"",type:e.BuiltinType.MODAL_BODY,children:[]},O={id:"",type:e.BuiltinType.MODAL_FOOTER,children:[]},F={id:"",platform:e.Platform.WEB,name:"sys.pageDesigner.modal",alias:"",modalName:"",type:e.BuiltinType.MODAL,js:"",css:"",children:[P,O],props:{modalTitle:"弹窗",unitType:"px",modalWidth:800,isSubTableModal:!1,bindSubTableId:"",createModalTitle:"新建弹窗",editModalTitle:"编辑弹窗",hasFooter:!0,openMode:"modal",mUnitType:"%",mModalWidth:80},style:{paddingAll:"16",paddingTop:"16",paddingRight:"16",paddingBottom:"16",paddingLeft:"16"},events:{},i18n:{},runJs:"",los:{},icon:"icon-motaikuang1",isField:!1},h=[{component:"text-editor",name:"modalTitle",label:"sys.pageDesigner.modalTitleName",group:e.PropGroup.BASIC,_config:{showCount:!0,maxlength:32},hidden:E=>E.props.isSubTableModal},{component:"input-unit-editor",name:{unitType:"unitType",modalWidth:"modalWidth"},label:"sys.pageDesigner.modalWidthProp",group:e.PropGroup.MODAL,hidden:E=>E.platform===e.Platform.MOBILE},{component:"input-unit-editor",name:{unitType:"mUnitType",modalWidth:"mModalWidth"},label:"sys.pageDesigner.modalHeightProp",group:e.PropGroup.MODAL,hidden:E=>E.platform!==e.Platform.MOBILE,_config:{filterUnitType:"px"}},{component:"text-editor",name:"createModalTitle",label:"sys.pageDesigner.createModalTitle",group:e.PropGroup.MODALTITLECONFIG,_config:{i18n:!0},hidden:E=>!E.props.isSubTableModal},{component:"text-editor",name:"editModalTitle",label:"sys.pageDesigner.editModalTitle",group:e.PropGroup.MODALTITLECONFIG,_config:{i18n:!0},hidden:E=>!E.props.isSubTableModal},{component:"select-editor",name:"openMode",label:"sys.appDesigner.openMode",group:e.PropGroup.MODAL,hidden:E=>E.platform!==e.Platform.WEB,_config:{options:()=>[{label:"打开弹窗页面",value:"modal"},{label:"右侧划入页面",value:"drawer"}]},changeCallback:(E,t)=>{t==="drawer"?(E.props.unitType="%",E.props.modalWidth=80):(E.props.unitType="px",E.props.modalWidth=800)}},{component:"switch-editor",name:"hasFooter",label:"sys.pageDesigner.operateButton",group:e.PropGroup.BUTTON,hidden:E=>E.props.isSubTableModal}],Y=[{component:"color-editor",name:"backgroundColor",label:"sys.pageDesigner.backgroundColor",group:e.StyleGroup.BACKGROUND},{component:"margin-editor",group:e.StyleGroup.MARGIN,_config:{hiddenMarginOrPadding:"margin"}}],M=[{name:"onMounted",title:"sys.pageDesigner.onMounted",params:[]}],G=()=>{},x=E=>{E.children[0].id=e.buildShortUUID(E.children[0].type),E.children[1].id=e.buildShortUUID(E.children[1].type)},B={basicProps:{key_label:"弹窗",alias_hidden:!0}},W=Object.freeze(Object.defineProperty({__proto__:null,beforeCreate:x,designerConfig:B,eventList:M,propEditorList:h,runCallback:G,styleEditorList:Y,widget:F},Symbol.toStringTag,{value:"Module"}));function R(E){return Object.prototype.hasOwnProperty.call(E.props,"model")?!E.props.model:Object.prototype.hasOwnProperty.call(E.props,"refForm")?!E.props.refForm:!1}const Q={position:"",top:"",left:"",right:"",bottom:"",width:"",height:"",backgroundColor:"",marginAll:"",marginTop:"",marginRight:"",marginBottom:"",marginLeft:"",paddingAll:"",paddingTop:"",paddingRight:"",paddingBottom:"",paddingLeft:"",labelFont:{align:"left",fontSize:"",bold:!1,italic:!1,textDecoration:e.TextDecoration.NONE,color:""},contentFont:{align:"left",fontSize:"",bold:!1,italic:!1,textDecoration:e.TextDecoration.NONE,color:""},tagStyle:{color:"",tagType:e.TagTypeEnum.RADIUS},tagStyleOpen:!1,borderAll:{borderStyle:e.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderLeft:{borderStyle:e.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderRight:{borderStyle:e.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderBottom:{borderStyle:e.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderTop:{borderStyle:e.BorderStyle.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderTopRightRadius:"0",borderTopLeftRadius:"0",borderBottomRightRadius:"0",borderBottomLeftRadius:"0",borderAllRadius:"0"},U=["position","backgroundColor","bold","italic","textDecoration","color","borderStyle","borderColor"],c=[e.FIELD_TYPE.TEXT,e.FIELD_TYPE.LONG_TEXT,e.FIELD_TYPE.INTEGER,e.FIELD_TYPE.LONG,e.FIELD_TYPE.DOUBLE,e.FIELD_TYPE.DECIMAL,e.FIELD_TYPE.BOOLEAN,e.FIELD_TYPE.DATE,e.FIELD_TYPE.TIME,e.FIELD_TYPE.DATE_TIME,e.FIELD_TYPE.USER,e.FIELD_TYPE.USER_MULTI,e.FIELD_TYPE.SERIAL],k={[e.FIELD_TYPE.PRIMARY_KEY]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.IN,e.SEARCH_SERVICE.NOTIN],default:[e.SEARCH_SERVICE.EQ],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.TEXT]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.IEQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.INE,e.SEARCH_SERVICE.LIKE,e.SEARCH_SERVICE.ILIKE,e.SEARCH_SERVICE.NOTLIKE,e.SEARCH_SERVICE.NOTILIKE,e.SEARCH_SERVICE.LEFTLIKE,e.SEARCH_SERVICE.ILEFTLIKE,e.SEARCH_SERVICE.RIGHTLIKE,e.SEARCH_SERVICE.IRIGHTLIKE],default:[e.SEARCH_SERVICE.LIKE],noRangDefaultExp:e.SEARCH_SERVICE.LIKE},[e.FIELD_TYPE.LONG_TEXT]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.IEQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.INE,e.SEARCH_SERVICE.LIKE,e.SEARCH_SERVICE.ILIKE,e.SEARCH_SERVICE.NOTLIKE,e.SEARCH_SERVICE.NOTILIKE,e.SEARCH_SERVICE.LEFTLIKE,e.SEARCH_SERVICE.ILEFTLIKE,e.SEARCH_SERVICE.RIGHTLIKE,e.SEARCH_SERVICE.IRIGHTLIKE],default:[e.SEARCH_SERVICE.LIKE],noRangDefaultExp:e.SEARCH_SERVICE.LIKE},[e.FIELD_TYPE.SERIAL]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.IEQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.INE,e.SEARCH_SERVICE.LIKE,e.SEARCH_SERVICE.ILIKE,e.SEARCH_SERVICE.NOTLIKE,e.SEARCH_SERVICE.NOTILIKE,e.SEARCH_SERVICE.LEFTLIKE,e.SEARCH_SERVICE.ILEFTLIKE,e.SEARCH_SERVICE.RIGHTLIKE,e.SEARCH_SERVICE.IRIGHTLIKE],default:[e.SEARCH_SERVICE.LIKE],noRangDefaultExp:e.SEARCH_SERVICE.LIKE},[e.FIELD_TYPE.INTEGER]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.GT,e.SEARCH_SERVICE.GE,e.SEARCH_SERVICE.LT,e.SEARCH_SERVICE.LE],contain:["rangtype"],default:[e.SEARCH_SERVICE.RANGE],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.LONG]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.GT,e.SEARCH_SERVICE.GE,e.SEARCH_SERVICE.LT,e.SEARCH_SERVICE.LE],contain:["rangtype"],default:[e.SEARCH_SERVICE.RANGE],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.DECIMAL]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.GT,e.SEARCH_SERVICE.GE,e.SEARCH_SERVICE.LT,e.SEARCH_SERVICE.LE],contain:["rangtype"],default:[e.SEARCH_SERVICE.RANGE],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.DOUBLE]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.GT,e.SEARCH_SERVICE.GE,e.SEARCH_SERVICE.LT,e.SEARCH_SERVICE.LE],contain:["rangtype"],default:[e.SEARCH_SERVICE.RANGE],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.BOOLEAN]:{filter:[e.SEARCH_SERVICE.EQ],default:[e.SEARCH_SERVICE.EQ],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.DATE]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.GT,e.SEARCH_SERVICE.GE,e.SEARCH_SERVICE.LT,e.SEARCH_SERVICE.LE],contain:["rangtype","more"],default:[e.SEARCH_SERVICE.RANGE],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.TIME]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.GT,e.SEARCH_SERVICE.GE,e.SEARCH_SERVICE.LT,e.SEARCH_SERVICE.LE],contain:["rangtype","more"],default:[e.SEARCH_SERVICE.RANGE],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.DATE_TIME]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.GT,e.SEARCH_SERVICE.GE,e.SEARCH_SERVICE.LT,e.SEARCH_SERVICE.LE],contain:["rangtype","more"],default:[e.SEARCH_SERVICE.RANGE],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.ENUM]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.IN,e.SEARCH_SERVICE.NOTIN],contain:["more","ignoreCase"],default:[e.SEARCH_SERVICE.EQ],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.ENUM_MULTI]:{filter:[e.SEARCH_SERVICE.CONTAINANY,e.SEARCH_SERVICE.CONTAINALL],contain:["more","ignoreCase"],default:[e.SEARCH_SERVICE.CONTAINANY],noRangDefaultExp:e.SEARCH_SERVICE.CONTAINANY},[e.FIELD_TYPE.OPTION]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.NE],contain:["more"],default:[e.SEARCH_SERVICE.EQ],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.OPTION_MULTI]:{filter:[e.SEARCH_SERVICE.CONTAINANY,e.SEARCH_SERVICE.CONTAINALL],contain:["more"],default:[e.SEARCH_SERVICE.CONTAINANY],noRangDefaultExp:e.SEARCH_SERVICE.CONTAINANY},[e.FIELD_TYPE.USER]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.IN,e.SEARCH_SERVICE.NOTIN],contain:["more","ignoreCase"],default:[e.SEARCH_SERVICE.EQ]},[e.FIELD_TYPE.USER_MULTI]:{filter:[e.SEARCH_SERVICE.CONTAINANY,e.SEARCH_SERVICE.CONTAINALL],contain:["more","ignoreCase"],default:[e.SEARCH_SERVICE.CONTAINANY],noRangDefaultExp:e.SEARCH_SERVICE.CONTAINANY},[e.FIELD_TYPE.ORG]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.IN,e.SEARCH_SERVICE.NOTIN],contain:["more","ignoreCase"],default:[e.SEARCH_SERVICE.EQ],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.ORG_MULTI]:{filter:[e.SEARCH_SERVICE.CONTAINANY,e.SEARCH_SERVICE.CONTAINALL],contain:["more","ignoreCase"],default:[e.SEARCH_SERVICE.CONTAINANY],noRangDefaultExp:e.SEARCH_SERVICE.CONTAINANY},[e.FIELD_TYPE.REF_MULTI]:{filter:[e.SEARCH_SERVICE.CONTAINANY,e.SEARCH_SERVICE.CONTAINALL],contain:["more","ignoreCase"],default:[e.SEARCH_SERVICE.CONTAINANY],noRangDefaultExp:e.SEARCH_SERVICE.CONTAINANY},[e.FIELD_TYPE.ASSOCIATED_PRIMARY_KEY]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.IN,e.SEARCH_SERVICE.NOTIN],contain:["more"],default:[e.SEARCH_SERVICE.EQ],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.REF]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.IN,e.SEARCH_SERVICE.NOTIN],contain:["more","ignoreCase"],default:[e.SEARCH_SERVICE.EQ],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.RDO_REF]:{filter:[e.SEARCH_SERVICE.VERSIONEQ,e.SEARCH_SERVICE.VERSIONNE,e.SEARCH_SERVICE.VERSIONIN,e.SEARCH_SERVICE.VERSIONNOTIN],contain:["more","ignoreCase"],default:[e.SEARCH_SERVICE.VERSIONIN],noRangDefaultExp:e.SEARCH_SERVICE.VERSIONIN},[e.FIELD_TYPE.E_DHR_TEMPLATE]:{filter:[e.SEARCH_SERVICE.VERSIONIN],contain:["more"],default:[e.SEARCH_SERVICE.VERSIONIN],noRangDefaultExp:e.SEARCH_SERVICE.VERSIONIN},[e.FIELD_TYPE.ONLINE_FORM_TEMPLATE]:{filter:[e.SEARCH_SERVICE.VERSIONIN],contain:["more"],default:[e.SEARCH_SERVICE.VERSIONIN],noRangDefaultExp:e.SEARCH_SERVICE.VERSIONIN},[e.FIELD_TYPE.TRANSACTION]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.IN,e.SEARCH_SERVICE.NOTIN],contain:["more","ignoreCase"],default:[e.SEARCH_SERVICE.EQ],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.PRINTER]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.IN,e.SEARCH_SERVICE.NOTIN],contain:["more","ignoreCase"],default:[e.SEARCH_SERVICE.EQ],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.LABEL_TEMPLATE_REF]:{filter:[e.SEARCH_SERVICE.VERSIONEQ,e.SEARCH_SERVICE.VERSIONNE,e.SEARCH_SERVICE.VERSIONIN,e.SEARCH_SERVICE.VERSIONNOTIN],contain:["more","ignoreCase"],default:[e.SEARCH_SERVICE.VERSIONIN],noRangDefaultExp:e.SEARCH_SERVICE.EQ},document_template:{filter:[e.SEARCH_SERVICE.VERSIONIN],contain:["more","ignoreCase"],default:[e.SEARCH_SERVICE.VERSIONIN],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.MESSAGE_TMPL]:{filter:[e.SEARCH_SERVICE.EQ,e.SEARCH_SERVICE.NE,e.SEARCH_SERVICE.IN,e.SEARCH_SERVICE.NOTIN],default:[e.SEARCH_SERVICE.EQ],noRangDefaultExp:e.SEARCH_SERVICE.EQ},[e.FIELD_TYPE.RANGE_USER]:{filter:[e.SEARCH_SERVICE.CONTAINANY,e.SEARCH_SERVICE.CONTAINALL],contain:["more","ignoreCase"],default:[e.SEARCH_SERVICE.CONTAINANY],noRangDefaultExp:e.SEARCH_SERVICE.CONTAINANY},more:{filter:[e.SEARCH_SERVICE.ISNULL,e.SEARCH_SERVICE.ISNOTNULL]},rangtype:{filter:[e.SEARCH_SERVICE.RANGE,e.SEARCH_SERVICE.ORANGE,e.SEARCH_SERVICE.RORANGE,e.SEARCH_SERVICE.LORANGE]},[e.FIELD_TYPE.Biz_Process]:{filter:[e.SEARCH_SERVICE.IN],default:[e.SEARCH_SERVICE.IN],noRangDefaultExp:e.SEARCH_SERVICE.IN},ignore:{filter:["ignoreCase"]}},T={deviceConnectivity:!1,hidden:!1,componentDependency:{sortDependency:[],configDependency:{[e.Dependency_ENUM.HIDDEN]:{expression:""},[e.Dependency_ENUM.READONLY]:{expression:""},[e.Dependency_ENUM.DISABLED]:{expression:""},[e.Dependency_ENUM.REQUIRED]:{expression:""},[e.Dependency_ENUM.ASSIGNMENT]:{expression:"",strategy:e.ASSIGNMENTSTRATEGY_ENUM.alwaysCover}}}},K=[e.FIELD_TYPE.TEXT,e.FIELD_TYPE.LONG_TEXT,e.FIELD_TYPE.INTEGER,e.FIELD_TYPE.LONG,e.FIELD_TYPE.DOUBLE,e.FIELD_TYPE.DECIMAL,e.FIELD_TYPE.BOOLEAN,e.FIELD_TYPE.DATE,e.FIELD_TYPE.DATE_TIME,e.FIELD_TYPE.MASTERSLAVE],v=[{component:"dependency-editor",name:"componentDependency",label:"",group:e.PropGroup.COMPONENTDEPENDENCY,hidden:E=>E.materialType===e.MaterialEnum.MaterialEmbedTableField||E.type===e.FormComponents.Form&&E.preLocation?!0:R(E)||E.props.field==="operating_state_"},{component:"switch-editor",name:"notSubmitInHide",label:"sys.pageDesigner.submitWhenHidden",group:e.PropGroup.FIELD_CONFIG,hidden(E){return!E.isField||!E.props.field||E.props.bindFieldKey||E.props.fieldReadonly||E.materialType===e.MaterialEnum.cardListFormField||[e.FIELD_TYPE.EXPRESSION_CONDITION,e.FIELD_TYPE.SERIALRULE,e.FIELD_TYPE.LABEL_TEMPLATE].includes(E.props.fieldType)||!c.includes(E.props.fieldType)}},{component:"switch-editor",name:"deviceConnectivity",label:"sys.pageDesigner.deviceConnectivity",group:e.PropGroup.FIELD_CONFIG,hidden:E=>E.platform!==e.Platform.WEB||![e.MaterialEnum.MaterialFormField].includes(E.materialType)||!K.includes(E.props.fieldType)}];class _{events={};propEditors={};schema={};callback={};beforeCreate={};styleEditors={};designerConfig={};hooks={};whiteList={};blackList={}}const C=new _,I=new _,p=new _;function g(E){switch(E){case e.Platform.WEB:return C;case e.Platform.MOBILE:return I;case e.Platform.PAD:return p;default:return C}}function s(E,t,o){E.events[t]=o.eventList,E.hooks[t]=o.hooks,E.whiteList[t]=o.whiteList,E.blackList[t]=o.blackList,E.propEditors[t]=o.propEditorList,E.schema[t]=o.widget,E.callback[t]=o.runCallback,E.beforeCreate[t]=o.beforeCreate,E.styleEditors[t]=o.styleEditorList,E.designerConfig[t]=o.designerConfig}function z(E,t){s(C,t,E)}function j(E,t){s(I,t,E)}function X(E,t){s(p,t,E)}function d(E,t){if(t){const{type:o}=t.schema;E.events[o]=t.events,E.hooks[o]=t.hooks,E.whiteList[o]=t.whiteList,E.blackList[o]=t.blackList,E.propEditors[o]=t.propEditors,E.schema[o]=t.schema,E.callback[o]=t.callback,E.beforeCreate[o]=t.beforeCreate,E.styleEditors[o]=t.styleEditors,E.designerConfig[o]=t.designerConfig}}function $(E){d(C,E)}function q(E){d(I,E)}function J(E){d(p,E)}function Z(E,t,o){return E.type===o&&a.has(E,"preLocation")&&new RegExp(`^${t}_`).test(E.preLocation)}function f(E){return[e.MaterialEnum.MaterialFormField,e.MaterialEnum.MaterialSubTableModalField,e.MaterialEnum.DescriptionsFormField].includes(E.materialType)}function m(E){const t=/^\$\{(\S+)\}$/;for(const o in E){const n=E[o];t.test(n)&&(E[o]=e.t(n.match(t)?.[1]))}}function w(E){const t=a.cloneDeep(E);t.id=e.buildShortUUID(t.type),t.alias=e.t(t.name),t.formItem&&(t.props.label=e.t(t.name));const o=g(t.platform);return o&&o.beforeCreate?.[t.type]?.(t),m(t.props),t}function N(E){return E.map(t=>({...t})).filter(t=>(t.props?.model||(t.children=t.children&&N(t.children)),A(t)))}const A=E=>!E.formItem;function L(E){return E+"px"}function r(E){return a.isEmpty(E)?"":`${E}px !important`}function u(E){return a.isEmpty(E)?"":`${E} !important`}function l(E){return!E||a.isEmpty(E.borderWidth)?"":`${E.borderWidth}px ${E.borderStyle||"solid"} ${E.borderColor||"transparent"} !important`}const ee={fontAttrs:["fontWeight","fontSize","color","textDecorationLine","textAlign"],mapAttrs:{bold:{attr:"fontWeight",callback:E=>E?700:400},italic:{attr:"fontStyle",callback:E=>E?"italic":"normal"},textDecoration:{attr:"textDecorationLine"},fontSize:{attr:"fontSize",callback:E=>E?L(E):""},align:{attr:"textAlign"}}};function Ee(E,t=ee){if(!E)return{};const o={};return Object.assign(o,a.pick(E,t.fontAttrs)),typeof t.mapAttrs=="object"&&Object.keys(t.mapAttrs).forEach(n=>{const{attr:S,callback:i}=t.mapAttrs[n];o[S]=typeof i=="function"?i(E[n]):E[n]}),o}function te(E={}){const t={};for(const o in E)t[o]=V(o,E[o]);return t}const oe=["opacity","zIndex","fontWeight","lineHeight","letterSpacing","wordSpacing","textAlign","textDecoration","textTransform","fontStyle","textDecorationLine"];function V(E,t){return a.isNil(t)||a.isEmpty(t)?"":oe.includes(E)?t+" !important":t+"px !important"}const H={left:"flex-start",center:"center",right:"flex-end",justify:"space-between"};function re(E){return H[E]||E}function b(E){return{position:u(E.position),top:r(E.top),left:r(E.left),right:r(E.right),bottom:r(E.bottom),width:r(E.width),height:r(E.height)}}function D(E){return{backgroundColor:u(E.backgroundColor),marginTop:r(E.marginTop),marginRight:r(E.marginRight),marginBottom:r(E.marginBottom),marginLeft:r(E.marginLeft),paddingTop:r(E.paddingTop),paddingRight:r(E.paddingRight),paddingBottom:r(E.paddingBottom),paddingLeft:r(E.paddingLeft)}}function y(E){return{borderLeft:l(E.borderLeft),borderRight:l(E.borderRight),borderBottom:l(E.borderBottom),borderTop:l(E.borderTop),borderTopRightRadius:r(E.borderTopRightRadius),borderTopLeftRadius:r(E.borderTopLeftRadius),borderBottomRightRadius:r(E.borderBottomRightRadius),borderBottomLeftRadius:r(E.borderBottomLeftRadius)}}function ne(E,t=[]){const o={...b(E),...D(E),...y(E)};return t.forEach(n=>{delete o[n]}),Object.keys(o).forEach(n=>{const S=o[n];(a.isNil(S)||a.isEmpty(S))&&delete o[n]}),o}const ie=({name:E,type:t,hiddenCallback:o,filterOptionsCallback:n,groupName:S})=>[{component:"bind-cmp-type-editor",name:E,label:"sys.pageDesigner.bindCmpStyleLabel",group:S||e.PropGroup.FIELD_CONFIG,hidden:o||(i=>[e.FIELD_TYPE.TEXT,e.FIELD_TYPE.USER,e.FIELD_TYPE.USER_MULTI,e.FIELD_TYPE.ORG,e.FIELD_TYPE.ORG_MULTI].includes(i.props.fieldType)&&(i.props.bindFieldKey||!f(i)||i.props.fieldReadonly)?!0:E==="selectType"&&i.platform!==e.Platform.WEB),_config:{bindCmpStyleKey:t,filterOptionsCallback:n},changeCallback(i){if(![e.FIELD_TYPE.BOOLEAN,e.FIELD_TYPE.USER,e.FIELD_TYPE.USER_MULTI,e.FIELD_TYPE.ORG,e.FIELD_TYPE.ORG_MULTI,e.FIELD_TYPE.DATA_TABLE_FORMULA].includes(i.props.fieldType)&&[e.FIELD_TYPE.EXPRESSION,e.FIELD_TYPE.AGG,e.FIELD_TYPE.INTEGER,e.FIELD_TYPE.LONG].includes(i.props.fieldType)){i.props.currency="¥",i.props.displayTimeType="d:h:m:s";return}}}],ae={disabled:!1,icon:"icon-park:all-application",iconColor:"",title:"${sys.pageDesigner.button}",buttonStyle:e.ButtonStyle.ORDINARY,confirm:!1,confirmText:"",hasIcon:!1,hasText:!0,type:e.ButtonType.PRIMARY,danger:!1,size:e.ButtonSize.DEFAULT,enableCustomColor:!1,backgroundColor:"",fontColor:"",...T},Re=[{component:"text-editor",name:"title",label:"sys.pageDesigner.buttonName",group:e.PropGroup.BASIC,_config:{i18n:!0,showCount:!0,maxlength:32},changeCallback:(E,t)=>{E.alias=t}},{component:"button-type-editor",name:{type:"type",danger:"danger",icon:"icon",label:"label",hasText:"hasText",hasIcon:"hasIcon"},label:"sys.pageDesigner.buttonType",group:e.PropGroup.BUTTON},{component:"icon-editor",name:{icon:"icon",iconColor:"iconColor"},label:"sys.pageDesigner.buttonIcon",group:e.PropGroup.BUTTON,hidden:E=>!E.props.hasIcon},{component:"radio-bgc-editor",name:"size",label:"sys.pageDesigner.buttonSize",group:e.PropGroup.BUTTON,_config:{options:Object.values(e.ButtonSize).map(E=>({value:E,label:"sys.pageDesigner."+E}))}}],Se=[{component:"permission-editor",label:"",group:e.PropGroup.PERMISSION,hidden:E=>R(E)}],le={disabled:!1,buttonTheme:e.ButtonColorTheme.DEFAULT,buttonType:e.ButtonColorType.DEFAULT,icon:"",iconColor:"",confirm:!1,confirmText:"",buttonStyle:e.ButtonStyle.ORDINARY,enableCustomColor:!1,backgroundColor:"",fontColor:""},Ce=[{component:"button-type-editor",name:{type:"type",danger:"danger",icon:"icon",label:"label",hasText:"hasText",hasIcon:"hasIcon"},label:"sys.pageDesigner.buttonType",group:e.PropGroup.ButtonStyle,hidden:E=>R(E)},{component:"icon-editor",name:{icon:"icon",iconColor:"iconColor"},label:"sys.pageDesigner.buttonIcon",group:e.PropGroup.ButtonStyle,hidden:E=>!E.props.hasIcon||R(E),_config:{clearable:!1}},{component:"switch-editor",name:"enableCustomColor",label:"sys.pageDesigner.customBtnColor",group:e.PropGroup.ButtonStyle,hidden:E=>R(E)},{component:"button-color-editor",name:"fontColor",label:"sys.pageDesigner.buttonNameColor",group:e.PropGroup.ButtonStyle,_config:{isInRow:!0},hidden:E=>!E.props.enableCustomColor},{component:"button-color-editor",name:"backgroundColor",label:"sys.pageDesigner.buttonStyleColor",group:e.PropGroup.ButtonStyle,_config:{isInRow:!0},hidden:E=>!E.props.enableCustomColor||E.props.type==="link"},{component:"radio-bgc-editor",name:"size",label:"sys.pageDesigner.buttonSize",group:e.PropGroup.ButtonStyle,hidden:E=>R(E),_config:{options:Object.values(e.ButtonSize).map(E=>({value:E,label:"sys.pageDesigner."+E}))}},{component:"switch-editor",name:"confirm",label:"sys.pageDesigner.confirm",group:e.PropGroup.ButtonStyle,hidden:E=>R(E),_config:{tooltip:"sys.pageDesigner.buttonConfirm"}},{component:"texteare-editor",name:"confirmText",label:"sys.pageDesigner.regHint",group:e.PropGroup.ButtonStyle,_config:{i18n:!0,placeholder:"sys.pageDesigner.confirmTodo"},hidden:E=>!E.props.confirm||R(E)}],Ie=[{component:"position-editor",name:"position",label:"sys.pageDesigner.position",group:e.StyleGroup.LAYOUT,hidden:E=>!!E.props.parentWidgetId||!!E.preLocation},{component:"margin-editor",group:e.StyleGroup.MARGIN,hidden:E=>!!E.props.parentWidgetId||!!E.preLocation,_config:{hiddenMarginOrPadding:"padding"}}],pe={install(){}};exports.ALIGN_TO_FLEX_MAP=H;exports.SEARCH_TYPE=k;exports.addImportant=u;exports.addPxUnit=r;exports.baseBtnEditor=Re;exports.baseBtnProp=ae;exports.buttonEditor=Ce;exports.buttonProps=le;exports.buttonStyleEditor=Ie;exports.cloneWidget=w;exports.commonStyle=Q;exports.deepFindNotField=N;exports.default=pe;exports.displayEditor=v;exports.displayProps=T;exports.extractFontStyle=Ee;exports.formatBorder=l;exports.generateBorderStyles=y;exports.generatePositionStyles=b;exports.generateSpacingStyles=D;exports.generateWrapperStyle=ne;exports.getBindCmpTypeEditor=ie;exports.getCompPos=Z;exports.getWidgetInfo=g;exports.hiddenButtonProps=R;exports.isFormFieldType=f;exports.makeStyleProp=V;exports.mobileWidgetInfo=I;exports.modalCfg=W;exports.notNeedPxStyle=U;exports.padVTableSupportEditFieldTypes=c;exports.padWidgetInfo=p;exports.permissionEditor=Se;exports.propsToStyle=te;exports.pxToVw=L;exports.registerMobilePluginWidgetItem=q;exports.registerMobileWidgetItem=j;exports.registerPadPluginWidgetItem=J;exports.registerPadWidgetItem=X;exports.registerPluginWidgetItem=d;exports.registerWebPluginWidgetItem=$;exports.registerWebWidgetItem=z;exports.registerWidgetItem=s;exports.transAlign2flex=re;exports.transformI18n=m;exports.webWidgetInfo=C;
@@ -0,0 +1 @@
1
+ System.register(["@gct-paas/core","lodash-es"],(function(l,Le){"use strict";var b,E,a,m,L,f,G,S,n,e,N,x,u,P,R,y,W,C,Q,U,k,K,T,Y,D;return{setters:[i=>{b=i.BuiltinType,E=i.Platform,a=i.PropGroup,m=i.StyleGroup,L=i.buildShortUUID,f=i.BorderStyle,G=i.TagTypeEnum,S=i.TextDecoration,n=i.FIELD_TYPE,e=i.SEARCH_SERVICE,N=i.Dependency_ENUM,x=i.ASSIGNMENTSTRATEGY_ENUM,u=i.MaterialEnum,P=i.FormComponents,R=i.t,y=i.ButtonSize,W=i.ButtonType,C=i.ButtonStyle,Q=i.ButtonColorType,U=i.ButtonColorTheme},i=>{k=i.cloneDeep,K=i.has,T=i.isEmpty,Y=i.pick,D=i.isNil}],execute:(function(){l({addImportant:B,addPxUnit:p,cloneWidget:ue,deepFindNotField:z,extractFontStyle:fe,formatBorder:I,generateBorderStyles:Z,generatePositionStyles:J,generateSpacingStyles:q,generateWrapperStyle:be,getCompPos:ce,getWidgetInfo:V,hiddenButtonProps:c,isFormFieldType:v,makeStyleProp:$,propsToStyle:Ne,pxToVw:X,registerMobilePluginWidgetItem:de,registerMobileWidgetItem:le,registerPadPluginWidgetItem:Ee,registerPadWidgetItem:pe,registerPluginWidgetItem:h,registerWebPluginWidgetItem:se,registerWebWidgetItem:ae,registerWidgetItem:A,transAlign2flex:Ie,transformI18n:H});const i={id:"",type:b.MODAL_BODY,children:[]},w={id:"",type:b.MODAL_FOOTER,children:[]},ee={id:"",platform:E.WEB,name:"sys.pageDesigner.modal",alias:"",modalName:"",type:b.MODAL,js:"",css:"",children:[i,w],props:{modalTitle:"弹窗",unitType:"px",modalWidth:800,isSubTableModal:!1,bindSubTableId:"",createModalTitle:"新建弹窗",editModalTitle:"编辑弹窗",hasFooter:!0,openMode:"modal",mUnitType:"%",mModalWidth:80},style:{paddingAll:"16",paddingTop:"16",paddingRight:"16",paddingBottom:"16",paddingLeft:"16"},events:{},i18n:{},runJs:"",los:{},icon:"icon-motaikuang1",isField:!1},te=[{component:"text-editor",name:"modalTitle",label:"sys.pageDesigner.modalTitleName",group:a.BASIC,_config:{showCount:!0,maxlength:32},hidden:t=>t.props.isSubTableModal},{component:"input-unit-editor",name:{unitType:"unitType",modalWidth:"modalWidth"},label:"sys.pageDesigner.modalWidthProp",group:a.MODAL,hidden:t=>t.platform===E.MOBILE},{component:"input-unit-editor",name:{unitType:"mUnitType",modalWidth:"mModalWidth"},label:"sys.pageDesigner.modalHeightProp",group:a.MODAL,hidden:t=>t.platform!==E.MOBILE,_config:{filterUnitType:"px"}},{component:"text-editor",name:"createModalTitle",label:"sys.pageDesigner.createModalTitle",group:a.MODALTITLECONFIG,_config:{i18n:!0},hidden:t=>!t.props.isSubTableModal},{component:"text-editor",name:"editModalTitle",label:"sys.pageDesigner.editModalTitle",group:a.MODALTITLECONFIG,_config:{i18n:!0},hidden:t=>!t.props.isSubTableModal},{component:"select-editor",name:"openMode",label:"sys.appDesigner.openMode",group:a.MODAL,hidden:t=>t.platform!==E.WEB,_config:{options:()=>[{label:"打开弹窗页面",value:"modal"},{label:"右侧划入页面",value:"drawer"}]},changeCallback:(t,o)=>{o==="drawer"?(t.props.unitType="%",t.props.modalWidth=80):(t.props.unitType="px",t.props.modalWidth=800)}},{component:"switch-editor",name:"hasFooter",label:"sys.pageDesigner.operateButton",group:a.BUTTON,hidden:t=>t.props.isSubTableModal}],oe=[{component:"color-editor",name:"backgroundColor",label:"sys.pageDesigner.backgroundColor",group:m.BACKGROUND},{component:"margin-editor",group:m.MARGIN,_config:{hiddenMarginOrPadding:"margin"}}];l("modalCfg",Object.freeze(Object.defineProperty({__proto__:null,beforeCreate:t=>{t.children[0].id=L(t.children[0].type),t.children[1].id=L(t.children[1].type)},designerConfig:{basicProps:{key_label:"弹窗",alias_hidden:!0}},eventList:[{name:"onMounted",title:"sys.pageDesigner.onMounted",params:[]}],propEditorList:te,runCallback:()=>{},styleEditorList:oe,widget:ee},Symbol.toStringTag,{value:"Module"})));function c(t){return Object.prototype.hasOwnProperty.call(t.props,"model")?!t.props.model:Object.prototype.hasOwnProperty.call(t.props,"refForm")?!t.props.refForm:!1}const Se=l("commonStyle",{position:"",top:"",left:"",right:"",bottom:"",width:"",height:"",backgroundColor:"",marginAll:"",marginTop:"",marginRight:"",marginBottom:"",marginLeft:"",paddingAll:"",paddingTop:"",paddingRight:"",paddingBottom:"",paddingLeft:"",labelFont:{align:"left",fontSize:"",bold:!1,italic:!1,textDecoration:S.NONE,color:""},contentFont:{align:"left",fontSize:"",bold:!1,italic:!1,textDecoration:S.NONE,color:""},tagStyle:{color:"",tagType:G.RADIUS},tagStyleOpen:!1,borderAll:{borderStyle:f.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderLeft:{borderStyle:f.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderRight:{borderStyle:f.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderBottom:{borderStyle:f.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderTop:{borderStyle:f.NONE,borderColor:"#F0F0F0",borderWidth:"1"},borderTopRightRadius:"0",borderTopLeftRadius:"0",borderBottomRightRadius:"0",borderBottomLeftRadius:"0",borderAllRadius:"0"}),Ce=l("notNeedPxStyle",["position","backgroundColor","bold","italic","textDecoration","color","borderStyle","borderColor"]),ne=l("padVTableSupportEditFieldTypes",[n.TEXT,n.LONG_TEXT,n.INTEGER,n.LONG,n.DOUBLE,n.DECIMAL,n.BOOLEAN,n.DATE,n.TIME,n.DATE_TIME,n.USER,n.USER_MULTI,n.SERIAL]),De=l("SEARCH_TYPE",{[n.PRIMARY_KEY]:{filter:[e.EQ,e.NE,e.IN,e.NOTIN],default:[e.EQ],noRangDefaultExp:e.EQ},[n.TEXT]:{filter:[e.EQ,e.IEQ,e.NE,e.INE,e.LIKE,e.ILIKE,e.NOTLIKE,e.NOTILIKE,e.LEFTLIKE,e.ILEFTLIKE,e.RIGHTLIKE,e.IRIGHTLIKE],default:[e.LIKE],noRangDefaultExp:e.LIKE},[n.LONG_TEXT]:{filter:[e.EQ,e.IEQ,e.NE,e.INE,e.LIKE,e.ILIKE,e.NOTLIKE,e.NOTILIKE,e.LEFTLIKE,e.ILEFTLIKE,e.RIGHTLIKE,e.IRIGHTLIKE],default:[e.LIKE],noRangDefaultExp:e.LIKE},[n.SERIAL]:{filter:[e.EQ,e.IEQ,e.NE,e.INE,e.LIKE,e.ILIKE,e.NOTLIKE,e.NOTILIKE,e.LEFTLIKE,e.ILEFTLIKE,e.RIGHTLIKE,e.IRIGHTLIKE],default:[e.LIKE],noRangDefaultExp:e.LIKE},[n.INTEGER]:{filter:[e.EQ,e.NE,e.GT,e.GE,e.LT,e.LE],contain:["rangtype"],default:[e.RANGE],noRangDefaultExp:e.EQ},[n.LONG]:{filter:[e.EQ,e.NE,e.GT,e.GE,e.LT,e.LE],contain:["rangtype"],default:[e.RANGE],noRangDefaultExp:e.EQ},[n.DECIMAL]:{filter:[e.EQ,e.NE,e.GT,e.GE,e.LT,e.LE],contain:["rangtype"],default:[e.RANGE],noRangDefaultExp:e.EQ},[n.DOUBLE]:{filter:[e.EQ,e.NE,e.GT,e.GE,e.LT,e.LE],contain:["rangtype"],default:[e.RANGE],noRangDefaultExp:e.EQ},[n.BOOLEAN]:{filter:[e.EQ],default:[e.EQ],noRangDefaultExp:e.EQ},[n.DATE]:{filter:[e.EQ,e.NE,e.GT,e.GE,e.LT,e.LE],contain:["rangtype","more"],default:[e.RANGE],noRangDefaultExp:e.EQ},[n.TIME]:{filter:[e.EQ,e.NE,e.GT,e.GE,e.LT,e.LE],contain:["rangtype","more"],default:[e.RANGE],noRangDefaultExp:e.EQ},[n.DATE_TIME]:{filter:[e.EQ,e.NE,e.GT,e.GE,e.LT,e.LE],contain:["rangtype","more"],default:[e.RANGE],noRangDefaultExp:e.EQ},[n.ENUM]:{filter:[e.EQ,e.NE,e.IN,e.NOTIN],contain:["more","ignoreCase"],default:[e.EQ],noRangDefaultExp:e.EQ},[n.ENUM_MULTI]:{filter:[e.CONTAINANY,e.CONTAINALL],contain:["more","ignoreCase"],default:[e.CONTAINANY],noRangDefaultExp:e.CONTAINANY},[n.OPTION]:{filter:[e.EQ,e.NE],contain:["more"],default:[e.EQ],noRangDefaultExp:e.EQ},[n.OPTION_MULTI]:{filter:[e.CONTAINANY,e.CONTAINALL],contain:["more"],default:[e.CONTAINANY],noRangDefaultExp:e.CONTAINANY},[n.USER]:{filter:[e.EQ,e.NE,e.IN,e.NOTIN],contain:["more","ignoreCase"],default:[e.EQ]},[n.USER_MULTI]:{filter:[e.CONTAINANY,e.CONTAINALL],contain:["more","ignoreCase"],default:[e.CONTAINANY],noRangDefaultExp:e.CONTAINANY},[n.ORG]:{filter:[e.EQ,e.NE,e.IN,e.NOTIN],contain:["more","ignoreCase"],default:[e.EQ],noRangDefaultExp:e.EQ},[n.ORG_MULTI]:{filter:[e.CONTAINANY,e.CONTAINALL],contain:["more","ignoreCase"],default:[e.CONTAINANY],noRangDefaultExp:e.CONTAINANY},[n.REF_MULTI]:{filter:[e.CONTAINANY,e.CONTAINALL],contain:["more","ignoreCase"],default:[e.CONTAINANY],noRangDefaultExp:e.CONTAINANY},[n.ASSOCIATED_PRIMARY_KEY]:{filter:[e.EQ,e.NE,e.IN,e.NOTIN],contain:["more"],default:[e.EQ],noRangDefaultExp:e.EQ},[n.REF]:{filter:[e.EQ,e.NE,e.IN,e.NOTIN],contain:["more","ignoreCase"],default:[e.EQ],noRangDefaultExp:e.EQ},[n.RDO_REF]:{filter:[e.VERSIONEQ,e.VERSIONNE,e.VERSIONIN,e.VERSIONNOTIN],contain:["more","ignoreCase"],default:[e.VERSIONIN],noRangDefaultExp:e.VERSIONIN},[n.E_DHR_TEMPLATE]:{filter:[e.VERSIONIN],contain:["more"],default:[e.VERSIONIN],noRangDefaultExp:e.VERSIONIN},[n.ONLINE_FORM_TEMPLATE]:{filter:[e.VERSIONIN],contain:["more"],default:[e.VERSIONIN],noRangDefaultExp:e.VERSIONIN},[n.TRANSACTION]:{filter:[e.EQ,e.NE,e.IN,e.NOTIN],contain:["more","ignoreCase"],default:[e.EQ],noRangDefaultExp:e.EQ},[n.PRINTER]:{filter:[e.EQ,e.NE,e.IN,e.NOTIN],contain:["more","ignoreCase"],default:[e.EQ],noRangDefaultExp:e.EQ},[n.LABEL_TEMPLATE_REF]:{filter:[e.VERSIONEQ,e.VERSIONNE,e.VERSIONIN,e.VERSIONNOTIN],contain:["more","ignoreCase"],default:[e.VERSIONIN],noRangDefaultExp:e.EQ},document_template:{filter:[e.VERSIONIN],contain:["more","ignoreCase"],default:[e.VERSIONIN],noRangDefaultExp:e.EQ},[n.MESSAGE_TMPL]:{filter:[e.EQ,e.NE,e.IN,e.NOTIN],default:[e.EQ],noRangDefaultExp:e.EQ},[n.RANGE_USER]:{filter:[e.CONTAINANY,e.CONTAINALL],contain:["more","ignoreCase"],default:[e.CONTAINANY],noRangDefaultExp:e.CONTAINANY},more:{filter:[e.ISNULL,e.ISNOTNULL]},rangtype:{filter:[e.RANGE,e.ORANGE,e.RORANGE,e.LORANGE]},[n.Biz_Process]:{filter:[e.IN],default:[e.IN],noRangDefaultExp:e.IN},ignore:{filter:["ignoreCase"]}}),re=l("displayProps",{deviceConnectivity:!1,hidden:!1,componentDependency:{sortDependency:[],configDependency:{[N.HIDDEN]:{expression:""},[N.READONLY]:{expression:""},[N.DISABLED]:{expression:""},[N.REQUIRED]:{expression:""},[N.ASSIGNMENT]:{expression:"",strategy:x.alwaysCover}}}}),ie=[n.TEXT,n.LONG_TEXT,n.INTEGER,n.LONG,n.DOUBLE,n.DECIMAL,n.BOOLEAN,n.DATE,n.DATE_TIME,n.MASTERSLAVE],Me=l("displayEditor",[{component:"dependency-editor",name:"componentDependency",label:"",group:a.COMPONENTDEPENDENCY,hidden:t=>t.materialType===u.MaterialEmbedTableField||t.type===P.Form&&t.preLocation?!0:c(t)||t.props.field==="operating_state_"},{component:"switch-editor",name:"notSubmitInHide",label:"sys.pageDesigner.submitWhenHidden",group:a.FIELD_CONFIG,hidden(t){return!t.isField||!t.props.field||t.props.bindFieldKey||t.props.fieldReadonly||t.materialType===u.cardListFormField||[n.EXPRESSION_CONDITION,n.SERIALRULE,n.LABEL_TEMPLATE].includes(t.props.fieldType)||!ne.includes(t.props.fieldType)}},{component:"switch-editor",name:"deviceConnectivity",label:"sys.pageDesigner.deviceConnectivity",group:a.FIELD_CONFIG,hidden:t=>t.platform!==E.WEB||![u.MaterialFormField].includes(t.materialType)||!ie.includes(t.props.fieldType)}]);class M{events={};propEditors={};schema={};callback={};beforeCreate={};styleEditors={};designerConfig={};hooks={};whiteList={};blackList={}}const O=l("webWidgetInfo",new M),_=l("mobileWidgetInfo",new M),F=l("padWidgetInfo",new M);function V(t){switch(t){case E.WEB:return O;case E.MOBILE:return _;case E.PAD:return F;default:return O}}function A(t,o,r){t.events[o]=r.eventList,t.hooks[o]=r.hooks,t.whiteList[o]=r.whiteList,t.blackList[o]=r.blackList,t.propEditors[o]=r.propEditorList,t.schema[o]=r.widget,t.callback[o]=r.runCallback,t.beforeCreate[o]=r.beforeCreate,t.styleEditors[o]=r.styleEditorList,t.designerConfig[o]=r.designerConfig}function ae(t,o){A(O,o,t)}function le(t,o){A(_,o,t)}function pe(t,o){A(F,o,t)}function h(t,o){if(o){const{type:r}=o.schema;t.events[r]=o.events,t.hooks[r]=o.hooks,t.whiteList[r]=o.whiteList,t.blackList[r]=o.blackList,t.propEditors[r]=o.propEditors,t.schema[r]=o.schema,t.callback[r]=o.callback,t.beforeCreate[r]=o.beforeCreate,t.styleEditors[r]=o.styleEditors,t.designerConfig[r]=o.designerConfig}}function se(t){h(O,t)}function de(t){h(_,t)}function Ee(t){h(F,t)}function ce(t,o,r){return t.type===r&&K(t,"preLocation")&&new RegExp(`^${o}_`).test(t.preLocation)}function v(t){return[u.MaterialFormField,u.MaterialSubTableModalField,u.DescriptionsFormField].includes(t.materialType)}function H(t){const o=/^\$\{(\S+)\}$/;for(const r in t){const s=t[r];o.test(s)&&(t[r]=R(s.match(o)?.[1]))}}function ue(t){const o=k(t);o.id=L(o.type),o.alias=R(o.name),o.formItem&&(o.props.label=R(o.name));const r=V(o.platform);return r&&r.beforeCreate?.[o.type]?.(o),H(o.props),o}function z(t){return t.map(o=>({...o})).filter(o=>(o.props?.model||(o.children=o.children&&z(o.children)),j(o)))}const j=t=>!t.formItem;function X(t){return t+"px"}function p(t){return T(t)?"":`${t}px !important`}function B(t){return T(t)?"":`${t} !important`}function I(t){return!t||T(t.borderWidth)?"":`${t.borderWidth}px ${t.borderStyle||"solid"} ${t.borderColor||"transparent"} !important`}const ge={fontAttrs:["fontWeight","fontSize","color","textDecorationLine","textAlign"],mapAttrs:{bold:{attr:"fontWeight",callback:t=>t?700:400},italic:{attr:"fontStyle",callback:t=>t?"italic":"normal"},textDecoration:{attr:"textDecorationLine"},fontSize:{attr:"fontSize",callback:t=>t?X(t):""},align:{attr:"textAlign"}}};function fe(t,o=ge){if(!t)return{};const r={};return Object.assign(r,Y(t,o.fontAttrs)),typeof o.mapAttrs=="object"&&Object.keys(o.mapAttrs).forEach(s=>{const{attr:g,callback:d}=o.mapAttrs[s];r[g]=typeof d=="function"?d(t[s]):t[s]}),r}function Ne(t={}){const o={};for(const r in t)o[r]=$(r,t[r]);return o}const Te=["opacity","zIndex","fontWeight","lineHeight","letterSpacing","wordSpacing","textAlign","textDecoration","textTransform","fontStyle","textDecorationLine"];function $(t,o){return D(o)||T(o)?"":Te.includes(t)?o+" !important":o+"px !important"}const me=l("ALIGN_TO_FLEX_MAP",{left:"flex-start",center:"center",right:"flex-end",justify:"space-between"});function Ie(t){return me[t]||t}function J(t){return{position:B(t.position),top:p(t.top),left:p(t.left),right:p(t.right),bottom:p(t.bottom),width:p(t.width),height:p(t.height)}}function q(t){return{backgroundColor:B(t.backgroundColor),marginTop:p(t.marginTop),marginRight:p(t.marginRight),marginBottom:p(t.marginBottom),marginLeft:p(t.marginLeft),paddingTop:p(t.paddingTop),paddingRight:p(t.paddingRight),paddingBottom:p(t.paddingBottom),paddingLeft:p(t.paddingLeft)}}function Z(t){return{borderLeft:I(t.borderLeft),borderRight:I(t.borderRight),borderBottom:I(t.borderBottom),borderTop:I(t.borderTop),borderTopRightRadius:p(t.borderTopRightRadius),borderTopLeftRadius:p(t.borderTopLeftRadius),borderBottomRightRadius:p(t.borderBottomRightRadius),borderBottomLeftRadius:p(t.borderBottomLeftRadius)}}function be(t,o=[]){const r={...J(t),...q(t),...Z(t)};return o.forEach(s=>{delete r[s]}),Object.keys(r).forEach(s=>{const g=r[s];(D(g)||T(g))&&delete r[s]}),r}const _e=l("getBindCmpTypeEditor",({name:t,type:o,hiddenCallback:r,filterOptionsCallback:s,groupName:g})=>[{component:"bind-cmp-type-editor",name:t,label:"sys.pageDesigner.bindCmpStyleLabel",group:g||a.FIELD_CONFIG,hidden:r||(d=>[n.TEXT,n.USER,n.USER_MULTI,n.ORG,n.ORG_MULTI].includes(d.props.fieldType)&&(d.props.bindFieldKey||!v(d)||d.props.fieldReadonly)?!0:t==="selectType"&&d.platform!==E.WEB),_config:{bindCmpStyleKey:o,filterOptionsCallback:s},changeCallback(d){if(![n.BOOLEAN,n.USER,n.USER_MULTI,n.ORG,n.ORG_MULTI,n.DATA_TABLE_FORMULA].includes(d.props.fieldType)&&[n.EXPRESSION,n.AGG,n.INTEGER,n.LONG].includes(d.props.fieldType)){d.props.currency="¥",d.props.displayTimeType="d:h:m:s";return}}}]),Fe=l("baseBtnProp",{disabled:!1,icon:"icon-park:all-application",iconColor:"",title:"${sys.pageDesigner.button}",buttonStyle:C.ORDINARY,confirm:!1,confirmText:"",hasIcon:!1,hasText:!0,type:W.PRIMARY,danger:!1,size:y.DEFAULT,enableCustomColor:!1,backgroundColor:"",fontColor:"",...re}),Be=l("baseBtnEditor",[{component:"text-editor",name:"title",label:"sys.pageDesigner.buttonName",group:a.BASIC,_config:{i18n:!0,showCount:!0,maxlength:32},changeCallback:(t,o)=>{t.alias=o}},{component:"button-type-editor",name:{type:"type",danger:"danger",icon:"icon",label:"label",hasText:"hasText",hasIcon:"hasIcon"},label:"sys.pageDesigner.buttonType",group:a.BUTTON},{component:"icon-editor",name:{icon:"icon",iconColor:"iconColor"},label:"sys.pageDesigner.buttonIcon",group:a.BUTTON,hidden:t=>!t.props.hasIcon},{component:"radio-bgc-editor",name:"size",label:"sys.pageDesigner.buttonSize",group:a.BUTTON,_config:{options:Object.values(y).map(t=>({value:t,label:"sys.pageDesigner."+t}))}}]),Ge=l("permissionEditor",[{component:"permission-editor",label:"",group:a.PERMISSION,hidden:t=>c(t)}]),xe=l("buttonProps",{disabled:!1,buttonTheme:U.DEFAULT,buttonType:Q.DEFAULT,icon:"",iconColor:"",confirm:!1,confirmText:"",buttonStyle:C.ORDINARY,enableCustomColor:!1,backgroundColor:"",fontColor:""}),Pe=l("buttonEditor",[{component:"button-type-editor",name:{type:"type",danger:"danger",icon:"icon",label:"label",hasText:"hasText",hasIcon:"hasIcon"},label:"sys.pageDesigner.buttonType",group:a.ButtonStyle,hidden:t=>c(t)},{component:"icon-editor",name:{icon:"icon",iconColor:"iconColor"},label:"sys.pageDesigner.buttonIcon",group:a.ButtonStyle,hidden:t=>!t.props.hasIcon||c(t),_config:{clearable:!1}},{component:"switch-editor",name:"enableCustomColor",label:"sys.pageDesigner.customBtnColor",group:a.ButtonStyle,hidden:t=>c(t)},{component:"button-color-editor",name:"fontColor",label:"sys.pageDesigner.buttonNameColor",group:a.ButtonStyle,_config:{isInRow:!0},hidden:t=>!t.props.enableCustomColor},{component:"button-color-editor",name:"backgroundColor",label:"sys.pageDesigner.buttonStyleColor",group:a.ButtonStyle,_config:{isInRow:!0},hidden:t=>!t.props.enableCustomColor||t.props.type==="link"},{component:"radio-bgc-editor",name:"size",label:"sys.pageDesigner.buttonSize",group:a.ButtonStyle,hidden:t=>c(t),_config:{options:Object.values(y).map(t=>({value:t,label:"sys.pageDesigner."+t}))}},{component:"switch-editor",name:"confirm",label:"sys.pageDesigner.confirm",group:a.ButtonStyle,hidden:t=>c(t),_config:{tooltip:"sys.pageDesigner.buttonConfirm"}},{component:"texteare-editor",name:"confirmText",label:"sys.pageDesigner.regHint",group:a.ButtonStyle,_config:{i18n:!0,placeholder:"sys.pageDesigner.confirmTodo"},hidden:t=>!t.props.confirm||c(t)}]),We=l("buttonStyleEditor",[{component:"position-editor",name:"position",label:"sys.pageDesigner.position",group:m.LAYOUT,hidden:t=>!!t.props.parentWidgetId||!!t.preLocation},{component:"margin-editor",group:m.MARGIN,hidden:t=>!!t.props.parentWidgetId||!!t.preLocation,_config:{hiddenMarginOrPadding:"padding"}}]),Qe=l("default",{install(){}})})}}));
@@ -0,0 +1,14 @@
1
+ import { FIELD_TYPE, SEARCH_SERVICE } from '@gct-paas/core';
2
+ /**
3
+ * Pad端VTable支持编辑的字段类型列表,临时放在这里
4
+ */
5
+ export declare const padVTableSupportEditFieldTypes: FIELD_TYPE[];
6
+ type SearchType = Record<string | 'more', {
7
+ filter?: SEARCH_SERVICE[];
8
+ contain?: string[];
9
+ default?: SEARCH_SERVICE[];
10
+ noRangDefaultExp?: SEARCH_SERVICE;
11
+ }>;
12
+ /**字段对应的算子 */
13
+ export declare const SEARCH_TYPE: SearchType;
14
+ export {};
@@ -0,0 +1,370 @@
1
+ import { FIELD_TYPE, SEARCH_SERVICE } from '@gct-paas/core';
2
+
3
+ const padVTableSupportEditFieldTypes = [
4
+ FIELD_TYPE.TEXT,
5
+ FIELD_TYPE.LONG_TEXT,
6
+ FIELD_TYPE.INTEGER,
7
+ FIELD_TYPE.LONG,
8
+ FIELD_TYPE.DOUBLE,
9
+ FIELD_TYPE.DECIMAL,
10
+ FIELD_TYPE.BOOLEAN,
11
+ FIELD_TYPE.DATE,
12
+ FIELD_TYPE.TIME,
13
+ FIELD_TYPE.DATE_TIME,
14
+ FIELD_TYPE.USER,
15
+ FIELD_TYPE.USER_MULTI,
16
+ FIELD_TYPE.SERIAL
17
+ ];
18
+ const SEARCH_TYPE = {
19
+ [FIELD_TYPE.PRIMARY_KEY]: {
20
+ filter: [
21
+ SEARCH_SERVICE.EQ,
22
+ SEARCH_SERVICE.NE,
23
+ SEARCH_SERVICE.IN,
24
+ SEARCH_SERVICE.NOTIN
25
+ ],
26
+ default: [SEARCH_SERVICE.EQ],
27
+ noRangDefaultExp: SEARCH_SERVICE.EQ
28
+ },
29
+ [FIELD_TYPE.TEXT]: {
30
+ filter: [
31
+ SEARCH_SERVICE.EQ,
32
+ SEARCH_SERVICE.IEQ,
33
+ SEARCH_SERVICE.NE,
34
+ SEARCH_SERVICE.INE,
35
+ SEARCH_SERVICE.LIKE,
36
+ SEARCH_SERVICE.ILIKE,
37
+ SEARCH_SERVICE.NOTLIKE,
38
+ SEARCH_SERVICE.NOTILIKE,
39
+ SEARCH_SERVICE.LEFTLIKE,
40
+ SEARCH_SERVICE.ILEFTLIKE,
41
+ SEARCH_SERVICE.RIGHTLIKE,
42
+ SEARCH_SERVICE.IRIGHTLIKE
43
+ ],
44
+ default: [SEARCH_SERVICE.LIKE],
45
+ noRangDefaultExp: SEARCH_SERVICE.LIKE
46
+ },
47
+ [FIELD_TYPE.LONG_TEXT]: {
48
+ filter: [
49
+ SEARCH_SERVICE.EQ,
50
+ SEARCH_SERVICE.IEQ,
51
+ SEARCH_SERVICE.NE,
52
+ SEARCH_SERVICE.INE,
53
+ SEARCH_SERVICE.LIKE,
54
+ SEARCH_SERVICE.ILIKE,
55
+ SEARCH_SERVICE.NOTLIKE,
56
+ SEARCH_SERVICE.NOTILIKE,
57
+ SEARCH_SERVICE.LEFTLIKE,
58
+ SEARCH_SERVICE.ILEFTLIKE,
59
+ SEARCH_SERVICE.RIGHTLIKE,
60
+ SEARCH_SERVICE.IRIGHTLIKE
61
+ ],
62
+ default: [SEARCH_SERVICE.LIKE],
63
+ noRangDefaultExp: SEARCH_SERVICE.LIKE
64
+ },
65
+ [FIELD_TYPE.SERIAL]: {
66
+ filter: [
67
+ SEARCH_SERVICE.EQ,
68
+ SEARCH_SERVICE.IEQ,
69
+ SEARCH_SERVICE.NE,
70
+ SEARCH_SERVICE.INE,
71
+ SEARCH_SERVICE.LIKE,
72
+ SEARCH_SERVICE.ILIKE,
73
+ SEARCH_SERVICE.NOTLIKE,
74
+ SEARCH_SERVICE.NOTILIKE,
75
+ SEARCH_SERVICE.LEFTLIKE,
76
+ SEARCH_SERVICE.ILEFTLIKE,
77
+ SEARCH_SERVICE.RIGHTLIKE,
78
+ SEARCH_SERVICE.IRIGHTLIKE
79
+ ],
80
+ default: [SEARCH_SERVICE.LIKE],
81
+ noRangDefaultExp: SEARCH_SERVICE.LIKE
82
+ },
83
+ [FIELD_TYPE.INTEGER]: {
84
+ filter: [
85
+ SEARCH_SERVICE.EQ,
86
+ SEARCH_SERVICE.NE,
87
+ SEARCH_SERVICE.GT,
88
+ SEARCH_SERVICE.GE,
89
+ SEARCH_SERVICE.LT,
90
+ SEARCH_SERVICE.LE
91
+ ],
92
+ contain: ["rangtype"],
93
+ default: [SEARCH_SERVICE.RANGE],
94
+ noRangDefaultExp: SEARCH_SERVICE.EQ
95
+ },
96
+ [FIELD_TYPE.LONG]: {
97
+ filter: [
98
+ SEARCH_SERVICE.EQ,
99
+ SEARCH_SERVICE.NE,
100
+ SEARCH_SERVICE.GT,
101
+ SEARCH_SERVICE.GE,
102
+ SEARCH_SERVICE.LT,
103
+ SEARCH_SERVICE.LE
104
+ ],
105
+ contain: ["rangtype"],
106
+ default: [SEARCH_SERVICE.RANGE],
107
+ noRangDefaultExp: SEARCH_SERVICE.EQ
108
+ },
109
+ [FIELD_TYPE.DECIMAL]: {
110
+ filter: [
111
+ SEARCH_SERVICE.EQ,
112
+ SEARCH_SERVICE.NE,
113
+ SEARCH_SERVICE.GT,
114
+ SEARCH_SERVICE.GE,
115
+ SEARCH_SERVICE.LT,
116
+ SEARCH_SERVICE.LE
117
+ ],
118
+ contain: ["rangtype"],
119
+ default: [SEARCH_SERVICE.RANGE],
120
+ noRangDefaultExp: SEARCH_SERVICE.EQ
121
+ },
122
+ [FIELD_TYPE.DOUBLE]: {
123
+ filter: [
124
+ SEARCH_SERVICE.EQ,
125
+ SEARCH_SERVICE.NE,
126
+ SEARCH_SERVICE.GT,
127
+ SEARCH_SERVICE.GE,
128
+ SEARCH_SERVICE.LT,
129
+ SEARCH_SERVICE.LE
130
+ ],
131
+ contain: ["rangtype"],
132
+ default: [SEARCH_SERVICE.RANGE],
133
+ noRangDefaultExp: SEARCH_SERVICE.EQ
134
+ },
135
+ [FIELD_TYPE.BOOLEAN]: {
136
+ filter: [SEARCH_SERVICE.EQ],
137
+ // contain: ['more'],
138
+ default: [SEARCH_SERVICE.EQ],
139
+ noRangDefaultExp: SEARCH_SERVICE.EQ
140
+ },
141
+ [FIELD_TYPE.DATE]: {
142
+ filter: [
143
+ SEARCH_SERVICE.EQ,
144
+ SEARCH_SERVICE.NE,
145
+ SEARCH_SERVICE.GT,
146
+ SEARCH_SERVICE.GE,
147
+ SEARCH_SERVICE.LT,
148
+ SEARCH_SERVICE.LE
149
+ ],
150
+ contain: ["rangtype", "more"],
151
+ default: [SEARCH_SERVICE.RANGE],
152
+ noRangDefaultExp: SEARCH_SERVICE.EQ
153
+ },
154
+ [FIELD_TYPE.TIME]: {
155
+ filter: [
156
+ SEARCH_SERVICE.EQ,
157
+ SEARCH_SERVICE.NE,
158
+ SEARCH_SERVICE.GT,
159
+ SEARCH_SERVICE.GE,
160
+ SEARCH_SERVICE.LT,
161
+ SEARCH_SERVICE.LE
162
+ ],
163
+ contain: ["rangtype", "more"],
164
+ default: [SEARCH_SERVICE.RANGE],
165
+ noRangDefaultExp: SEARCH_SERVICE.EQ
166
+ },
167
+ [FIELD_TYPE.DATE_TIME]: {
168
+ filter: [
169
+ SEARCH_SERVICE.EQ,
170
+ SEARCH_SERVICE.NE,
171
+ SEARCH_SERVICE.GT,
172
+ SEARCH_SERVICE.GE,
173
+ SEARCH_SERVICE.LT,
174
+ SEARCH_SERVICE.LE
175
+ ],
176
+ contain: ["rangtype", "more"],
177
+ default: [SEARCH_SERVICE.RANGE],
178
+ noRangDefaultExp: SEARCH_SERVICE.EQ
179
+ },
180
+ [FIELD_TYPE.ENUM]: {
181
+ filter: [
182
+ SEARCH_SERVICE.EQ,
183
+ SEARCH_SERVICE.NE,
184
+ SEARCH_SERVICE.IN,
185
+ SEARCH_SERVICE.NOTIN
186
+ ],
187
+ contain: ["more", "ignoreCase"],
188
+ default: [SEARCH_SERVICE.EQ],
189
+ noRangDefaultExp: SEARCH_SERVICE.EQ
190
+ },
191
+ [FIELD_TYPE.ENUM_MULTI]: {
192
+ filter: [SEARCH_SERVICE.CONTAINANY, SEARCH_SERVICE.CONTAINALL],
193
+ contain: ["more", "ignoreCase"],
194
+ default: [SEARCH_SERVICE.CONTAINANY],
195
+ noRangDefaultExp: SEARCH_SERVICE.CONTAINANY
196
+ },
197
+ [FIELD_TYPE.OPTION]: {
198
+ filter: [SEARCH_SERVICE.EQ, SEARCH_SERVICE.NE],
199
+ contain: ["more"],
200
+ default: [SEARCH_SERVICE.EQ],
201
+ noRangDefaultExp: SEARCH_SERVICE.EQ
202
+ },
203
+ [FIELD_TYPE.OPTION_MULTI]: {
204
+ filter: [SEARCH_SERVICE.CONTAINANY, SEARCH_SERVICE.CONTAINALL],
205
+ contain: ["more"],
206
+ default: [SEARCH_SERVICE.CONTAINANY],
207
+ noRangDefaultExp: SEARCH_SERVICE.CONTAINANY
208
+ },
209
+ [FIELD_TYPE.USER]: {
210
+ filter: [
211
+ SEARCH_SERVICE.EQ,
212
+ SEARCH_SERVICE.NE,
213
+ SEARCH_SERVICE.IN,
214
+ SEARCH_SERVICE.NOTIN
215
+ ],
216
+ contain: ["more", "ignoreCase"],
217
+ default: [SEARCH_SERVICE.EQ]
218
+ },
219
+ [FIELD_TYPE.USER_MULTI]: {
220
+ filter: [SEARCH_SERVICE.CONTAINANY, SEARCH_SERVICE.CONTAINALL],
221
+ contain: ["more", "ignoreCase"],
222
+ default: [SEARCH_SERVICE.CONTAINANY],
223
+ noRangDefaultExp: SEARCH_SERVICE.CONTAINANY
224
+ },
225
+ [FIELD_TYPE.ORG]: {
226
+ filter: [
227
+ SEARCH_SERVICE.EQ,
228
+ SEARCH_SERVICE.NE,
229
+ SEARCH_SERVICE.IN,
230
+ SEARCH_SERVICE.NOTIN
231
+ ],
232
+ contain: ["more", "ignoreCase"],
233
+ default: [SEARCH_SERVICE.EQ],
234
+ noRangDefaultExp: SEARCH_SERVICE.EQ
235
+ },
236
+ [FIELD_TYPE.ORG_MULTI]: {
237
+ filter: [SEARCH_SERVICE.CONTAINANY, SEARCH_SERVICE.CONTAINALL],
238
+ contain: ["more", "ignoreCase"],
239
+ default: [SEARCH_SERVICE.CONTAINANY],
240
+ noRangDefaultExp: SEARCH_SERVICE.CONTAINANY
241
+ },
242
+ [FIELD_TYPE.REF_MULTI]: {
243
+ filter: [SEARCH_SERVICE.CONTAINANY, SEARCH_SERVICE.CONTAINALL],
244
+ contain: ["more", "ignoreCase"],
245
+ default: [SEARCH_SERVICE.CONTAINANY],
246
+ noRangDefaultExp: SEARCH_SERVICE.CONTAINANY
247
+ },
248
+ [FIELD_TYPE.ASSOCIATED_PRIMARY_KEY]: {
249
+ filter: [
250
+ SEARCH_SERVICE.EQ,
251
+ SEARCH_SERVICE.NE,
252
+ SEARCH_SERVICE.IN,
253
+ SEARCH_SERVICE.NOTIN
254
+ ],
255
+ contain: ["more"],
256
+ default: [SEARCH_SERVICE.EQ],
257
+ noRangDefaultExp: SEARCH_SERVICE.EQ
258
+ },
259
+ [FIELD_TYPE.REF]: {
260
+ filter: [
261
+ SEARCH_SERVICE.EQ,
262
+ SEARCH_SERVICE.NE,
263
+ SEARCH_SERVICE.IN,
264
+ SEARCH_SERVICE.NOTIN
265
+ ],
266
+ contain: ["more", "ignoreCase"],
267
+ default: [SEARCH_SERVICE.EQ],
268
+ noRangDefaultExp: SEARCH_SERVICE.EQ
269
+ },
270
+ [FIELD_TYPE.RDO_REF]: {
271
+ filter: [
272
+ SEARCH_SERVICE.VERSIONEQ,
273
+ SEARCH_SERVICE.VERSIONNE,
274
+ SEARCH_SERVICE.VERSIONIN,
275
+ SEARCH_SERVICE.VERSIONNOTIN
276
+ ],
277
+ contain: ["more", "ignoreCase"],
278
+ default: [SEARCH_SERVICE.VERSIONIN],
279
+ noRangDefaultExp: SEARCH_SERVICE.VERSIONIN
280
+ },
281
+ [FIELD_TYPE.E_DHR_TEMPLATE]: {
282
+ filter: [SEARCH_SERVICE.VERSIONIN],
283
+ contain: ["more"],
284
+ default: [SEARCH_SERVICE.VERSIONIN],
285
+ noRangDefaultExp: SEARCH_SERVICE.VERSIONIN
286
+ },
287
+ [FIELD_TYPE.ONLINE_FORM_TEMPLATE]: {
288
+ filter: [SEARCH_SERVICE.VERSIONIN],
289
+ contain: ["more"],
290
+ default: [SEARCH_SERVICE.VERSIONIN],
291
+ noRangDefaultExp: SEARCH_SERVICE.VERSIONIN
292
+ },
293
+ [FIELD_TYPE.TRANSACTION]: {
294
+ filter: [
295
+ SEARCH_SERVICE.EQ,
296
+ SEARCH_SERVICE.NE,
297
+ SEARCH_SERVICE.IN,
298
+ SEARCH_SERVICE.NOTIN
299
+ ],
300
+ contain: ["more", "ignoreCase"],
301
+ default: [SEARCH_SERVICE.EQ],
302
+ noRangDefaultExp: SEARCH_SERVICE.EQ
303
+ },
304
+ [FIELD_TYPE.PRINTER]: {
305
+ filter: [
306
+ SEARCH_SERVICE.EQ,
307
+ SEARCH_SERVICE.NE,
308
+ SEARCH_SERVICE.IN,
309
+ SEARCH_SERVICE.NOTIN
310
+ ],
311
+ contain: ["more", "ignoreCase"],
312
+ default: [SEARCH_SERVICE.EQ],
313
+ noRangDefaultExp: SEARCH_SERVICE.EQ
314
+ },
315
+ [FIELD_TYPE.LABEL_TEMPLATE_REF]: {
316
+ filter: [
317
+ SEARCH_SERVICE.VERSIONEQ,
318
+ SEARCH_SERVICE.VERSIONNE,
319
+ SEARCH_SERVICE.VERSIONIN,
320
+ SEARCH_SERVICE.VERSIONNOTIN
321
+ ],
322
+ contain: ["more", "ignoreCase"],
323
+ default: [SEARCH_SERVICE.VERSIONIN],
324
+ noRangDefaultExp: SEARCH_SERVICE.EQ
325
+ },
326
+ // [FIELD_TYPE.DOCUMENT_TEMPLATE]: {
327
+ ["document_template"]: {
328
+ filter: [SEARCH_SERVICE.VERSIONIN],
329
+ contain: ["more", "ignoreCase"],
330
+ default: [SEARCH_SERVICE.VERSIONIN],
331
+ noRangDefaultExp: SEARCH_SERVICE.EQ
332
+ },
333
+ [FIELD_TYPE.MESSAGE_TMPL]: {
334
+ filter: [
335
+ SEARCH_SERVICE.EQ,
336
+ SEARCH_SERVICE.NE,
337
+ SEARCH_SERVICE.IN,
338
+ SEARCH_SERVICE.NOTIN
339
+ ],
340
+ default: [SEARCH_SERVICE.EQ],
341
+ noRangDefaultExp: SEARCH_SERVICE.EQ
342
+ },
343
+ [FIELD_TYPE.RANGE_USER]: {
344
+ filter: [SEARCH_SERVICE.CONTAINANY, SEARCH_SERVICE.CONTAINALL],
345
+ contain: ["more", "ignoreCase"],
346
+ default: [SEARCH_SERVICE.CONTAINANY],
347
+ noRangDefaultExp: SEARCH_SERVICE.CONTAINANY
348
+ },
349
+ more: {
350
+ filter: [SEARCH_SERVICE.ISNULL, SEARCH_SERVICE.ISNOTNULL]
351
+ },
352
+ rangtype: {
353
+ filter: [
354
+ SEARCH_SERVICE.RANGE,
355
+ SEARCH_SERVICE.ORANGE,
356
+ SEARCH_SERVICE.RORANGE,
357
+ SEARCH_SERVICE.LORANGE
358
+ ]
359
+ },
360
+ [FIELD_TYPE.Biz_Process]: {
361
+ filter: [SEARCH_SERVICE.IN],
362
+ default: [SEARCH_SERVICE.IN],
363
+ noRangDefaultExp: SEARCH_SERVICE.IN
364
+ },
365
+ ignore: {
366
+ filter: ["ignoreCase"]
367
+ }
368
+ };
369
+
370
+ export { SEARCH_TYPE, padVTableSupportEditFieldTypes };
package/es/index.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ export type * from './interface';
2
+ export * from './schema';
3
+ export * from './utils';
4
+ export * from './constants';
5
+ declare const _default: {
6
+ install(): void;
7
+ };
8
+ export default _default;
package/es/index.mjs ADDED
@@ -0,0 +1,20 @@
1
+ import * as modal from './schema/modal/modal.mjs';
2
+ export { modal as modalCfg };
3
+ export { hiddenButtonProps } from './schema/common-config/button-props-func.mjs';
4
+ export { commonStyle, notNeedPxStyle } from './schema/common-config/common-style.mjs';
5
+ export { displayEditor, displayProps } from './schema/common-config/display-editor-config.mjs';
6
+ export { getBindCmpTypeEditor } from './schema/common-config/common-field-editor-config.mjs';
7
+ export { baseBtnEditor, baseBtnProp } from './schema/common-config/base-button-config.mjs';
8
+ export { permissionEditor } from './schema/common-config/permission-editor-config.mjs';
9
+ export { buttonEditor, buttonProps, buttonStyleEditor } from './schema/common-config/button-editor-config.mjs';
10
+ export { cloneWidget, deepFindNotField, getCompPos, isFormFieldType, transformI18n } from './utils/schema/index.mjs';
11
+ export { ALIGN_TO_FLEX_MAP, addImportant, addPxUnit, extractFontStyle, formatBorder, generateBorderStyles, generatePositionStyles, generateSpacingStyles, generateWrapperStyle, makeStyleProp, propsToStyle, pxToVw, transAlign2flex } from './utils/schema-style/index.mjs';
12
+ export { getWidgetInfo, mobileWidgetInfo, padWidgetInfo, registerMobilePluginWidgetItem, registerMobileWidgetItem, registerPadPluginWidgetItem, registerPadWidgetItem, registerPluginWidgetItem, registerWebPluginWidgetItem, registerWebWidgetItem, registerWidgetItem, webWidgetInfo } from './utils/widget-info/widget-info.mjs';
13
+ export { SEARCH_TYPE, padVTableSupportEditFieldTypes } from './constants/index.mjs';
14
+
15
+ const index = {
16
+ install() {
17
+ }
18
+ };
19
+
20
+ export { index as default };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * 数据联动连接项
3
+ *
4
+ * @export
5
+ * @interface LinkageItem
6
+ */
7
+ export interface LinkageItem {
8
+ refModelKey: string;
9
+ refModelCategory: string;
10
+ modelKey: string;
11
+ modelCategory: string;
12
+ id: string;
13
+ value: string;
14
+ label: string;
15
+ end?: boolean;
16
+ reverse?: boolean;
17
+ }
@@ -0,0 +1,99 @@
1
+ import { pageLayoutModeEnum } from '@gct-paas/core';
2
+ import { LowCodeModal } from './modal';
3
+ import { LowCodeWidget } from './widget';
4
+ export interface IPageGlobalEvents {
5
+ /**页面加载公共事件ID */
6
+ pageMounted?: string;
7
+ /**页面离开公共事件ID */
8
+ pageDestroyed?: string;
9
+ }
10
+ export interface PageJson {
11
+ id: string;
12
+ key?: string;
13
+ keepAlive: boolean;
14
+ /**页面事件 */
15
+ pageEvents: {
16
+ /**页面加载前 */
17
+ pageBeforeMount?: LowCodeWidget.JsEvent | LowCodeWidget.InnerEvents[];
18
+ /**页面加载事件 */
19
+ pageMounted?: LowCodeWidget.JsEvent | LowCodeWidget.InnerEvents[];
20
+ /**页面离开事件 */
21
+ pageDestroyed?: LowCodeWidget.JsEvent | LowCodeWidget.InnerEvents[];
22
+ pageActivated?: LowCodeWidget.JsEvent | LowCodeWidget.InnerEvents[];
23
+ };
24
+ widgets: LowCodeWidget.BasicSchema[];
25
+ js: string;
26
+ css: string;
27
+ modals: LowCodeModal.Modal[];
28
+ timestamp?: number;
29
+ newDesigner?: boolean;
30
+ /**全局页面事件 */
31
+ globalEvents: IPageGlobalEvents;
32
+ permissions: Record<string, string | null>;
33
+ style: Partial<LowCodeWidget.BasicStyle>;
34
+ pageConfig: Partial<PageConfig>;
35
+ pageVars: LowCodeWidget.PageVars[];
36
+ /**滚动条适配方式 */
37
+ pageLayoutMode?: pageLayoutModeEnum;
38
+ plugins: PagePlugin[];
39
+ }
40
+ export interface PagePlugin {
41
+ key: string;
42
+ version: string;
43
+ url: string;
44
+ }
45
+ interface PageConfig {
46
+ title: string;
47
+ i18n: {
48
+ key?: string;
49
+ title?: string;
50
+ };
51
+ hasFooter: boolean;
52
+ }
53
+ export type ExportMethod = Record<string, {
54
+ params: string;
55
+ source: string;
56
+ type: string;
57
+ }>;
58
+ export interface History {
59
+ createTime: string;
60
+ createUserName: string;
61
+ designJson: string;
62
+ runtimeJson: string;
63
+ }
64
+ export interface RuntimePageJson {
65
+ widgets: LowCodeWidget.BasicSchema[];
66
+ runJs: string;
67
+ modals: RuntimeModal[];
68
+ css: string;
69
+ keepAlive: boolean;
70
+ /**全局页面事件 */
71
+ globalEvents: {
72
+ /**页面加载公共事件ID */
73
+ pageMounted?: string;
74
+ /**页面激活公共事件ID */
75
+ pageActivated?: string;
76
+ /**页面离开公共事件ID */
77
+ pageDestroyed?: string;
78
+ };
79
+ /**页面加载事件 */
80
+ pageEvents: PageJson['pageEvents'];
81
+ permissions: Record<string, string | null>;
82
+ pageConfig: Partial<PageConfig>;
83
+ pageVars: LowCodeWidget.PageVars[];
84
+ pageStyle: Partial<LowCodeWidget.BasicStyle>;
85
+ pageLayoutMode?: pageLayoutModeEnum;
86
+ plugins: PagePlugin[];
87
+ }
88
+ export interface RuntimeModal {
89
+ props?: LowCodeModal.ModalProps;
90
+ css?: string;
91
+ modalName?: string;
92
+ id?: string;
93
+ i18n?: Record<string, string>;
94
+ events?: LowCodeWidget.BasicEvents;
95
+ children?: [LowCodeModal.ModalBody, LowCodeModal.ModalBody];
96
+ runJs?: string;
97
+ style: Partial<LowCodeWidget.BasicStyle>;
98
+ }
99
+ export {};
@@ -0,0 +1,6 @@
1
+ export type { LinkageItem } from './common/data-linkage-config';
2
+ export type * from './modal';
3
+ export type * from './schema';
4
+ export type * from './widget';
5
+ export type * from './widget-info';
6
+ export type * from './designer';
@@ -0,0 +1,15 @@
1
+ import { BuiltinType } from '@gct-paas/core';
2
+ import { LowCodeWidget } from '../widget';
3
+ /**
4
+ * 模态框主体接口
5
+ *
6
+ * 定义模态框主体区域的结构,包含子组件列表
7
+ */
8
+ export interface IModalBody {
9
+ /** 唯一标识 */
10
+ id: string;
11
+ /** 组件类型 */
12
+ type: BuiltinType.MODAL_BODY;
13
+ /** 子组件列表 */
14
+ children: LowCodeWidget.BasicSchema[];
15
+ }