@farris/ui-vue 1.5.7 → 1.5.9
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 +5 -5
- package/components/avatar/index.umd.cjs +1 -1
- package/components/component/index.esm.js +5 -5
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +5 -5
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +5 -5
- package/components/content-container/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1082 -1421
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +908 -897
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +5 -5
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +5 -5
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +5 -5
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +13 -12
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +5 -5
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +5 -5
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +5 -5
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +862 -3625
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +5 -5
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +77 -76
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/response-layout/index.esm.js +5 -5
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +500 -3662
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +3008 -7347
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/section/index.esm.js +117 -7544
- package/components/section/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +545 -4943
- package/components/tabs/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +100 -5841
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.esm.js +5 -5
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/video/index.esm.js +5 -5
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.css +1 -0
- package/designer/button-edit/index.esm.js +1556 -0
- package/designer/button-edit/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +207 -0
- package/designer/checkbox/index.umd.cjs +1 -0
- package/designer/checkbox-group/index.esm.js +377 -0
- package/designer/checkbox-group/index.umd.cjs +1 -0
- package/designer/data-grid/index.css +1 -0
- package/designer/data-grid/index.esm.js +14332 -0
- package/designer/data-grid/index.umd.cjs +20 -0
- package/designer/data-view/index.esm.js +271 -0
- package/designer/data-view/index.umd.cjs +1 -0
- package/designer/date-picker/index.esm.js +1879 -0
- package/designer/date-picker/index.umd.cjs +1 -0
- package/designer/drawer/index.css +1 -0
- package/designer/drawer/index.esm.js +463 -0
- package/designer/drawer/index.umd.cjs +1 -0
- package/designer/farris-designer.all.esm.js +16827 -0
- package/designer/farris-designer.all.umd.cjs +32 -0
- package/designer/index.css +1 -0
- package/designer/input-group/index.esm.js +647 -0
- package/designer/input-group/index.umd.cjs +1 -0
- package/designer/radio-group/index.esm.js +6959 -0
- package/designer/radio-group/index.umd.cjs +1 -0
- package/designer/response-toolbar/index.esm.js +3015 -0
- package/designer/response-toolbar/index.umd.cjs +1 -0
- package/designer/section/index.esm.js +744 -0
- package/designer/section/index.umd.cjs +1 -0
- package/designer/tabs/index.esm.js +2200 -0
- package/designer/tabs/index.umd.cjs +1 -0
- package/designer/textarea/index.esm.js +249 -0
- package/designer/textarea/index.umd.cjs +1 -0
- package/designer/tree-grid/index.css +1 -0
- package/designer/tree-grid/index.esm.js +1673 -0
- package/designer/tree-grid/index.umd.cjs +1 -0
- package/farris.all.esm.js +30447 -30444
- package/farris.all.umd.cjs +16 -16
- package/package.json +1 -1
- package/types/date-picker/designer.d.ts +29 -0
- package/types/date-picker/index.d.ts +2 -1
- package/types/date-picker/src/date-picker.props.d.ts +0 -5
- package/types/date-picker/src/designer/date-picker.design.props.d.ts +22 -0
- package/types/designer-canvas/index.d.ts +2 -2
- package/types/response-toolbar/designer.d.ts +37 -0
- package/types/response-toolbar/index.d.ts +6 -5
- package/types/response-toolbar/src/composition/toolbar-item-dragula.d.ts +1 -2
- package/types/response-toolbar/src/composition/types.d.ts +1 -1
- package/types/response-toolbar/src/designer/response-toolbar.design.props.d.ts +13 -0
- package/types/response-toolbar/src/designer/use-designer-item-rules.d.ts +1 -2
- package/types/response-toolbar/src/designer/use-designer-rules.d.ts +1 -2
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -1
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -1
- package/types/response-toolbar/src/response-toolbar.props.d.ts +0 -12
- package/types/response-toolbar/src/schema/schema-resolver.d.ts +1 -1
- package/types/section/designer.d.ts +26 -0
- package/types/section/index.d.ts +1 -0
- package/types/section/src/designer/section-header.design.component.d.ts +2 -2
- package/types/section/src/designer/section-toolbar-item.design.props.d.ts +16 -0
- package/types/section/src/designer/section-toolbar-item.props.d.ts +0 -1
- package/types/section/src/designer/section-toolbar.design.component.d.ts +2 -2
- package/types/section/src/designer/section.design.props.d.ts +11 -0
- package/types/section/src/designer/use-designer-rules.d.ts +1 -2
- package/types/section/src/property-config/section.property-config.d.ts +1 -1
- package/types/section/src/schema/schema-resolver.d.ts +1 -1
- package/types/section/src/section.props.d.ts +0 -10
- package/types/tabs/designer.d.ts +28 -0
- package/types/tabs/index.d.ts +1 -0
- package/types/tabs/src/components/tab-page.props.d.ts +0 -1
- package/types/tabs/src/designer/tab-page.design.props.d.ts +1 -0
- package/types/tabs/src/designer/tabs.design.props.d.ts +12 -0
- package/types/tabs/src/tabs.props.d.ts +0 -11
- package/types/textarea/designer.d.ts +28 -0
- package/types/textarea/index.d.ts +0 -15
- package/types/textarea/src/designer/textarea.design.props.d.ts +6 -0
- package/types/textarea/src/designer/use-design-rules.d.ts +1 -2
- package/types/textarea/src/property-config/textarea.property-config.d.ts +1 -1
- package/types/textarea/src/schema/schema-resolver.d.ts +1 -1
- package/types/textarea/src/textarea.props.d.ts +0 -5
- package/components/textarea/index.css +0 -1
- /package/{components/section → designer/radio-group}/index.css +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.fv-grid-disabled{color:#0000004d}.fv-grid-header-cell.fv-grid-header-cell-border:after{background-color:transparent}.fade-enter-active,.fade-leave-active{transition:opacity .5s ease}.fade-enter-from,.fade-leave-to{opacity:0}.fv-resizable-handle{position:absolute;font-size:.1px;display:block;touch-action:none}.fv-resizable-handle:hover{background:transparent}.fv-resizable-handle.fv-resizable-n{cursor:n-resize;height:.4375rem;width:100%;top:-.3125rem;left:0}.fv-resizable-handle.fv-resizable-e{cursor:e-resize;width:.4375rem;right:-.3125rem;height:100%;top:0}.fv-resizable-handle.fv-resizable-s{cursor:s-resize;height:.4375rem;width:100%;bottom:-.3125rem;left:0}.fv-resizable-handle.fv-resizable-w{cursor:w-resize;height:100%;width:.4375rem;left:-.3125rem;top:0}.fv-resizable-handle.fv-resizable-ne{cursor:ne-resize;width:.75rem;height:.75rem;right:1px;top:1px}.fv-resizable-handle.fv-resizable-se{cursor:se-resize;width:.75rem;height:.75rem;right:1px;bottom:1px}.fv-resizable-handle.fv-resizable-nw{cursor:nw-resize;width:.75rem;height:.75rem;left:1px;top:1px}.fv-resizable-handle.fv-resizable-sw{cursor:sw-resize;width:.75rem;height:.75rem;left:1px;bottom:1px}.exception_wrap{max-width:750px;display:flex;overflow:hidden;position:relative}.exception_error_msg{line-height:1.5;overflow:hidden;min-height:66px}.screenGroup{background:#ffffffe6;box-shadow:0 0 3px #024bc133;border-radius:8px;padding:2px 14px;margin:5px auto;flex:1 1 0!important}.screenGroup .screenName{width:90px;font-family:PingFangSC-Regular;font-size:14px;line-height:24px;color:#2a87ff;height:32px;padding:4px;text-align:left}.screenGroup .screen-input{flex:1 1 0}.screenGroup farris-combo-list{width:84px}.screenGroup .columnText{line-height:26px}.applyBtn{margin-top:5px;display:flex;justify-content:center}.applyBtn .btn{width:110px}.en .screenGroup{width:100%;flex-direction:column;align-items:flex-start}.en .screenGroup>div{width:100%;padding:0 10px 10px 0;margin-left:0!important}.en .screenGroup .screenName{width:auto}.en .screenGroup farris-combo-list{flex:1}.en .screenGroup .columnText{width:50px}.form-group-in-canvas .f-cmp-inputgroup .f-state-readonly .input-group-append{display:flex!important}.component-btn-group{flex-direction:row-reverse;position:absolute;z-index:800;background:#fff;display:none;top:-26px;right:0}.component-btn-group>div{position:fixed}.farris-component.farris-nested{padding-top:10px!important;padding-bottom:10px!important;border:dotted 2px #e8e8e8}.farris-component.farris-nested:not(.px-0){padding-right:10px!important;padding-left:10px!important}.farris-component.farris-nested.dgComponentFocused{border:dotted 2px #388fff}.farris-component.can-move{padding:2px}.farris-component.dgComponentSelected>.component-btn-group{display:flex}.component-btn-group .component-settings-button{display:flex;cursor:pointer;float:right;margin-left:4px;padding:0!important;font-size:10px;line-height:1.2em;border-radius:2px 2px 0 0;width:24px!important;height:24px!important;color:#fff!important;background:#388fff!important}.component-btn-group .component-settings-button+.component-settings-button{margin-left:4px!important}.component-btn-group .component-settings-button:last-child{margin-left:0!important}.component-btn-group .component-settings-button .f-icon{font-size:18px;margin:0 auto;line-height:20px}.component-btn-group .component-settings-button .f-icon.f-icon-yxs_move{cursor:move}.farris-component-content-container .drag-container{display:inherit;flex-direction:inherit;flex-shrink:1;flex-grow:1;flex-basis:0%;flex-wrap:inherit;justify-content:inherit;align-items:inherit;width:100%;overflow:inherit;height:inherit}.gu-mirror{position:fixed!important;margin:0!important;z-index:9999!important;opacity:.8;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";filter:alpha(opacity=80)}.gu-mirror.undroppable .component-settings-button .f-icon-yxs_move{cursor:no-drop}.component-btn-group .component-settings-button .f-icon.f-icon-yxs_delete{color:#fff!important;background:#388fff!important}.gu-hide{display:none!important}.gu-unselectable{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.gu-transit{opacity:.2;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";filter:alpha(opacity=20)}.drag-over:not(.no-drop){background-color:#f3f8ff!important}.gu-unselectable .farris-component.dgComponentSelected>.component-btn-group{display:none}.gu-unselectable .gu-mirror.farris-component.dgComponentSelected>.component-btn-group{display:flex}.gu-transit.farris-component.dgComponentSelected>.component-btn-group{display:none}.gu-mirror.farris-component.dgComponentSelected{position:fixed!important}.gu-mirror.farris-component.dgComponentSelected>.component-btn-group>div{position:relative;top:0!important;left:0!important}.gu-mirror.farris-component.dgComponentSelected>.component-btn-group{width:max-content}.dgComponentFocused{border-top:2px dotted #388fff!important;border-left:2px dotted #388fff!important;border-right:2px dotted #388fff!important;border-bottom:2px dotted #388fff!important}.dgComponentSelected{border-top:2px solid #388fff!important;border-left:2px solid #388fff!important;border-right:2px solid #388fff!important;border-bottom:2px solid #388fff!important}.editorDiv{background-color:#dbe6f7;overflow-x:auto}.editorPanel{position:relative;height:100%;min-width:900px}.editorDiv .f-struct-like-card{display:block}.editorDiv .farris-tabs.f-tabs-content-fill .f-struct-is-subgrid .f-grid-is-sub{width:100%}.ide-framework .cdk-overlay-container{z-index:1100}.editorDiv .f-struct-wrapper{margin-bottom:15px}.f-struct-wrapper+.f-struct-wrapper{position:relative;display:inherit;margin-bottom:15px}.f-page-is-mainsubcard .f-page-main .f-struct-wrapper{background:#fff}.editorDiv .f-page-navigate .f-page{position:absolute!important}.editorDiv .f-page-navigate .f-page.f-page-card .f-page-main>.drag-container{display:block;overflow:unset}.editorDiv .f-page.f-page-navigate.f-page-is-listnav-with-header .f-page-main .f-page-content-main{display:block}.editorDiv .f-page-has-scheme .f-page-main.farris-component{margin-top:0}.f-struct-subsub-wrapper{padding-top:0!important}.gu-mirror.undroppable{cursor:no-drop}.gu-insertion{position:fixed;z-index:840!important;pointer-events:none!important;background-color:#388fff;height:4px;overflow:hidden}.editorPanel .f-page .f-page-main{margin-right:.5rem!important;margin-left:.5rem!important;margin-bottom:.5rem!important}.editorPanel .f-page.f-page-is-listnav .f-page-main{margin-top:.5rem!important}.editorPanel .f-page .f-page-main .f-page-main{margin:0!important}.editorPanel .f-page.f-page-has-scheme .f-page-header{margin:0 .5rem}.f-page-child-fill .f-struct-wrapper.f-struct-wrapper-child{overflow:hidden}.f-page-child-fill .f-struct-wrapper.f-struct-wrapper-child .f-section-in-mainsubcard,.f-page-child-fill .f-struct-wrapper.f-struct-wrapper-child .f-section-in-main{height:100%}.f-page-child-fill .f-struct-wrapper.f-struct-wrapper-child .f-section.f-section-fill>.f-section-content{flex-basis:0%}.f-page-child-fill .f-struct-wrapper.f-struct-wrapper-child .f-section .f-component-tabs .f-tabs-content-fill{overflow:hidden}.f-page-child-fill .f-struct-wrapper.f-struct-wrapper-child .f-section .f-component-tabs .f-tabs-content-fill .farris-tabs-body>.farris-component-component{flex:1}.component-btn-group .settings-button-extend{padding:0 0 0 2px!important;width:auto!important;display:flex;align-items:center}.settings-button-extend .icon-text{margin:0 4px;font-size:13px;line-height:unset}.f-section-scheme{background:#fff;margin:.5625rem .5rem 0}.farris-component-tabs .farris-tabs-content.f-utils-fill-flex-column .farris-component-tab-page:has(.farris-tab-page-active){display:flex!important;overflow:hidden;flex-shrink:1;flex-grow:1;flex-basis:0;flex-direction:column!important}.response-layout{border:dotted 2px #e8e8e8}.response-layout .response-layout-item{border-right:dotted 2px #e8e8e8}.response-layout .response-layout-item:not(:last-child){padding-right:8px!important}.designer-control-tree{display:block;height:100%;color:#212529!important;background:#fcfdff}.designer-control-tree .fv-grid{height:100%!important;overflow:hidden}.designer-control-tree .fv-grid .fv-grid-content{background:#fcfdff!important}.designer-control-tree .fv-grid .controlIcon{font-size:20px;color:#7d86ab!important;margin:0 4px 0 0!important}.designer-control-tree .fv-grid .controlIcon.f-icon{font-size:18px}.designer-control-tree .fv-grid .fv-grid-data{overflow:auto}.designer-control-tree .fv-grid .fv-grid-row-selected,.designer-control-tree .fv-grid .fv-grid-row-hover{border-radius:10px}.controlBox{font-size:13px!important}.controlBox .farris-panel{border:none}.controlBox .farris-panel .card-header{padding:10px 0!important;background-color:#fcfdff!important}.controlBox .farris-panel .card-header .col-form-label{font-size:13px;margin-bottom:0;color:#3f4764;opacity:.65}.controlBox .farris-panel .card-header .col-form-label .f-icon{font-size:10.8px;color:#3f4764}.controlBox .farris-panel .card-body{display:flex;flex-wrap:wrap;background:#fcfdff!important}.controlPanel:nth-child(-n+3){margin-top:0!important}.controlPanel .farrisControlIcon{font-size:27px}.controlPanel{font-size:13px;cursor:grab;display:flex;background:#fff;align-items:center;width:33.333%;background-color:#fcfdff;border:1px solid #edf1f5;height:76px!important;text-align:center;margin:-1px 0 0 -1px!important;color:#6080ad;text-overflow:ellipsis;word-break:keep-all;-webkit-user-select:none;user-select:none}.controlPanel.updating{color:#707070}.controlPanel>div{margin:auto;overflow:hidden}.gu-mirror.undroppable.controlPanel{cursor:no-drop}.controlBox .farris-panel .card-header .col-form-label .icon-panel .f-icon{font-size:16px}.f-flow-canvas .br-node{position:absolute;top:120px;left:300px;width:fit-content;display:flex;justify-content:center;align-items:center;z-index:1}.f-flow-canvas .node-content{border:2px solid #1c1f2314;cursor:pointer;background-color:#fff;padding:12px;border-radius:8px;box-shadow:0 2px 4px #0000001a;text-align:left}.f-flow-canvas .circle-left{width:8px;height:8px;background-color:#2a87ff;border-radius:50%;transition:transform .3s ease;z-index:5;position:absolute;left:-4px;cursor:pointer}.f-flow-canvas .circle-left:hover{width:14px;height:14px;left:-7px}.f-flow-canvas .circle-top{width:8px;height:8px;background-color:#2a87ff;border-radius:50%;transition:transform .3s ease;z-index:5;position:absolute;top:-4px;cursor:pointer}.f-flow-canvas .circle-top:hover{width:14px;height:14px;top:-7px}.f-flow-canvas .circle-right{width:8px;height:8px;background-color:#2a87ff;border-radius:50%;transition:transform .3s ease;z-index:5;position:absolute;right:-4px;cursor:pointer}.f-flow-canvas .circle-right:hover{width:14px;height:14px;right:-7px}.f-flow-canvas .circle-bottom{width:8px;height:8px;background-color:#2a87ff;border-radius:50%;transition:transform .3s ease;z-index:5;position:absolute;bottom:-4px;cursor:pointer}.f-flow-canvas .circle-bottom:hover{width:14px;height:14px;bottom:-7px}.f-flow-canvas .editorPanel{min-width:initial!important}.f-flow-canvas .editorDiv{background-color:inherit!important}.lookup-modal-header{height:50px;position:relative;line-height:32px}.lookup-modal-header-title{max-width:calc(50% - 100px);text-overflow:ellipsis;overflow:hidden;cursor:default;white-space:nowrap;font-size:16px;position:absolute}.lookup-modal-header-buttons{padding:0;width:44px;position:absolute;right:10px;cursor:default}.lookup-modal-header-tabs-container{background:#eff5ff;border-radius:17px;color:#003f90;cursor:pointer;align-items:center}.lookup-modal-header-tabs-container .active-tab{position:absolute;width:80px;z-index:1;transition:all .18s ease-in;line-height:28px;margin:2px;height:28px;background:#ffffffe6;box-shadow:0 4px 18px #2a87ff33;border-radius:15px}.lookup-modal-header-tabs-container .tab-item{border:0;z-index:2;justify-content:center;width:84px}.lookup-modal-header-tabs-container.active{cursor:default;color:#2a87ff;background-color:transparent}.property-item .form-group{margin-bottom:2px}.property-item .col-form-label{line-height:26px}.property-item .row-item{align-items:center}.wide-panel .row-item{display:flex}.wide-panel .row-item .component{flex:1 1 0}.wide-panel .row-item label{width:89px;text-align:right;padding-right:10px}.wrap{overflow:hidden;text-overflow:ellipsis}.propertyCascadeItem{background-color:transparent!important;border:none!important}.propertyCascadeItem .card-header{background-color:transparent!important;padding:4px 0!important;color:inherit!important}.propertyCascadeItem .card-header .panel-item-title{width:100%;position:relative;font-size:inherit!important}.propertyCascadeItem .card-header .panel-item-title .farris-input-wrap{margin-left:-5px;margin-right:-5px}.propertyCascadeItem .form-group .col-form-label .f-icon{color:#a3a3a3!important}.propertyCascadeItem .f-accordion-collapse,.propertyCascadeItem .f-accordion-expand{right:0;left:auto!important;top:6px;color:#6b94ec!important;position:absolute}.propertyCascadeItem .card-body{padding:3px 12px!important;background:#fffc;border-radius:8px;margin:4px 0}.propertyCascadeItem .card-body.hidden{display:none}.landscape{display:none;flex-shrink:0;align-items:center;justify-content:flex-end}.wide-panel .vertical{display:none}.wide-panel .landscape{display:block;padding:0;overflow:hidden}.wide-panel .line-item{display:flex}.wide-panel .line-item .f-header{margin-bottom:0}.wide-panel .line-item .f-section-formgroup-legend{width:89px;text-align:right;padding-right:13px}.wide-panel .line-item .farris-input-wrap{flex:1 1 0}:host{width:inherit;height:inherit}.property-panel{position:relative}.property-panel .switcher{position:absolute;top:9px;right:0;width:40px;text-align:center}.property-panel .switcher i{color:#4190ff;font-size:12px;cursor:pointer}.property-panel .side-panel{width:41px;background-color:#fff;padding-top:45px;text-align:center}.property-panel .side-panel .icon{display:block;text-align:center;color:#4190ff;margin-bottom:10px}.property-panel .side-panel span{writing-mode:vertical-rl;font-size:14px}.propertyPanel{width:300px;height:100%;color:#000000bf;background:#f3f8ff!important;border-color:#d8dbe2!important;display:flex}.propertyPanel .title{position:relative;background:#d0d8e9!important;flex-wrap:wrap;border:0}.propertyPanel .title.p-right{padding-right:40px}.propertyPanel .title>.title-label{line-height:34px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:12px;padding-right:12px;color:#333;font-size:13px;font-weight:600;cursor:pointer}.propertyPanel .title>.title-label.active{background:#8fb1df!important}.propertyPanel .title .title-actions{position:absolute;right:10px;top:0;padding-left:35px;height:35px;-ms-flex:1;flex:1;box-sizing:border-box}.propertyPanel .title .title-actions{position:absolute;right:10px;top:0}.propertyPanel .property-grid .group-label{line-height:30px;display:block;padding-left:13px;cursor:pointer;background:#e2e9f6!important;color:#435069!important;font-weight:600!important;border-radius:6px}.propertyPanel .search .textbox{padding-left:10px}.propertyPanel .search .input-group{border-radius:0}.propertyPanel .panel-body{overflow:auto;height:100%}.propertyPanel .property-grid{list-style:none;margin:0 10px;padding:0}.propertyPanel .property-grid li{padding:2px 0}.propertyPanel .panel-body .property-grid .group-label+div{padding-bottom:14px!important;padding-top:.25rem!important}.propertyPanel .action-item{cursor:pointer;display:inline-block;transition:transform 50ms ease;position:relative;padding:0}.propertyPanel .action-item>.f-icon{color:#424242bf;line-height:35px;font-weight:600}.propertyPanel .search .input-group-clear{border-radius:0!important}.white-theme .propertyPanel{background:#fff!important;border:1px solid #D8DCE6!important}.white-theme .propertyPanel .title{overflow:visible;background:#fff!important;justify-content:space-around}.white-theme .propertyPanel{background:#fff!important}.white-theme .propertyPanel .title{overflow:visible;background:#fff!important;flex-wrap:wrap;text-align:center}.white-theme .propertyPanel .title>.title-label{font-weight:400!important;border-bottom:0;background:#fff!important;flex:1;color:#83849b}.white-theme .propertyPanel .title>.title-label>span{padding:0 14px 7px}.white-theme .propertyPanel .title>.title-label.active>span{border-bottom:2px solid #5b89fe;color:#5b89fe;border-radius:1.5px}.white-theme .propertyPanel .title.only{text-align:left}.white-theme .propertyPanel .property-grid .group-label{background:#fff!important;line-height:30px;font-weight:400!important;font-size:13px;color:#3f4764!important;border-radius:6px;background:#eef4ff!important;color:#435069!important}.white-theme .propertyPanel .property-grid .group-label .f-icon{color:#5d89fe;font-size:13px}.f-event-parameter .f-cmp-inputgroup.input-group{background-color:var(--f-neutral-12)}.nav-tree-panel{padding:0 10px;height:100%}.nav-tree-panel .fv-tree,.nav-tree-panel .fv-tree-content{overflow-x:auto}.f-navlookup-recommandLabel{height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#3d4c6b;font-weight:400;cursor:pointer}.f-navlookup-recentHeader{height:32px;background:#fafaff;width:100%;display:flex;align-items:center;padding-left:10px;cursor:pointer;border:1px solid rgba(233,236,243,1)}.pagination-container .page-item.current.disabled .page-link{opacity:.4}.f-schema-selector-search{width:220px;height:26.6px;background:#fff;border-radius:6px;float:right;margin-right:40px}.f-schema-selector .farris-tabs-header{display:flex;align-items:center;min-width:400px;width:100%;height:44px;border:1px solid #e5e9ef;background:#f9f9fc;margin:0!important;padding:.75rem 0 .75rem 5rem!important}.f-schema-selector .farris-tabs-header .nav-item{margin-right:5rem!important}.f-schema-selector .container{padding:0;max-width:none!important}.f-navForm-item{margin:20px 0 2px 20px;padding:15px 0 8px 18px;border:1px solid #e5e9ef;width:283px;height:90px;background:#fff;border:1px solid rgba(218,227,255,1);border-radius:11px;display:flex;cursor:pointer}.f-listview-active .f-navForm-item,.f-listview-active .f-navForm-item:hover,.f-listview-active .f-navlookup-item,.f-listview-active .f-navlookup-item:hover{background-color:#c9e1ff!important}.f-navForm-leftIcon{flex:1}.f-navForm-itemIcon{width:42px;height:42px;background-image:linear-gradient(-45deg,#41d2bd,#1fc8dc);border-radius:12px}.f-navForm-rightText{flex:4}.f-navForm-item:hover{background-color:#edf5fc!important;cursor:pointer}.f-navForm-item-active{align-content:space-between;padding:15px 0 8px 18px;width:283px;height:90px;background:#fff;border:1px solid rgba(218,227,255,1);border-radius:11px;display:flex;border:1px solid #e5e9ef;background-color:#edf5fc!important;margin:20px 0 2px 20px;cursor:pointer}.f-navForm-name{width:fit-content;max-width:200px;display:inline-block;vertical-align:center;height:20px;font-family:PingFangSC-Regular;font-size:14px;color:#2e4c70;font-weight:400;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.f-navForm-source{width:fit-content;max-width:200px;height:22px;font-family:PingFangSC-Regular;font-size:13px;color:#8999b9;font-weight:400;background:#f7f9fc;border-radius:4px;padding:2px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.f-navlookup-item{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef}.f-navlookup-item:hover{background-color:#edf5fc!important;cursor:pointer}.f-navlookup-item-active{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef;background-color:#edf5fc!important}.f-navlookup-itemIcon{width:16px;height:16px;padding:1px;margin-right:6px;background-color:#dcf4e8;display:inline-block}.f-navlookup-name{width:80%;height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;font-weight:400;overflow:hidden;display:inline-block;vertical-align:top}.f-navlookup-source{width:100%;height:17px;font-family:PingFangSC-Regular;font-size:12px;color:#949ba7;font-weight:400}.f-navUdt-item{border:1px solid #e5e9ef;width:115px;height:100px;background:#fafbfc;border-radius:8px;margin-right:10px;position:relative;z-index:2000;margin-top:10px;cursor:pointer}.f-navUdt-item:hover{background-color:#edf5fc!important;cursor:pointer}.f-navUdt-item-active{border:1px solid #e5e9ef;background-color:#edf5fc!important;width:115px;height:100px;border-radius:8px;margin-right:10px;position:relative;z-index:2000;margin-top:10px;cursor:pointer}.f-navUdt-name{width:98%;height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;font-weight:400;overflow:hidden;display:inline-block;vertical-align:top;text-align:center}.f-navUdt-code{width:98%;font-family:PingFangSC-Regular;font-weight:400;overflow:hidden;display:inline-block;vertical-align:top;height:17px;font-size:12px;color:#a6aebe;text-align:center}.f-navSelector{background-color:#fff;display:flex;margin:0 24px;border:1px solid #e5e9ef;border-radius:8px;height:100%;overflow:hidden}.f-navSelector-left{flex:2;background-color:#fff;display:flex;flex-direction:column;border-right:1px solid #e5e9ef;border-radius:8px 0 0 8px;width:180px;padding-top:6px}.f-navSelector-right{flex:8}.f-navSelector-leftCategory{min-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:32px;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;line-height:18px;font-weight:400;padding:7px 0 7px 15px;cursor:pointer;margin-right:5px;margin-left:5px}.f-navSelector-leftCategory:hover{min-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:32px;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;line-height:18px;font-weight:400;padding:7px 0 7px 15px;background:#f7f8fb}.f-listview-active .f-navSelector-leftCategory{background:#c9e1ff;border-radius:8px}.f-navSelector-header{display:flex;min-width:400px;height:44px;align-items:center;border-bottom:1px solid #e5e9ef;background:#f9f9fc;top:0;z-index:2;border-radius:0 8px 0 0}.f-navSelector-recommand{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navSelector-recommand-text{width:80px;height:22px;font-family:PingFangSC-Regular;font-size:16px;color:#2d2f33;text-align:center;font-weight:400;margin-left:5px}.f-navSelector-recommand-text-focus{width:32px;height:44px;color:#2a87ff;border-bottom:3px solid blue;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px}.f-navSelector-remainder{flex:12}.f-navSelector-search{width:220px;height:26.6px;background:#fff;border-radius:6px;float:right;margin-right:40px}.f-navSelector-content{width:100%;min-width:400px;overflow-y:auto;display:flex;overflow-x:hidden;border-radius:0 8px 0 0;flex-direction:column;padding-bottom:1px}.f-navSelector-content .f-list-view-emptydata{height:360px;position:relative}.f-schema-selector .farris-tabs-content{flex-shrink:1;flex-grow:1;flex-basis:0;overflow:hidden}
|
|
@@ -0,0 +1,647 @@
|
|
|
1
|
+
import { useTextBoxDesign as N, useClear as F, withInstall as E } from "../../components/common/index.esm.js";
|
|
2
|
+
import { createPropsResolver as O } from "../../components/dynamic-resolver/index.esm.js";
|
|
3
|
+
import Z, { inputGroupProps as $ } from "../../components/input-group/index.esm.js";
|
|
4
|
+
import { ref as g, computed as b, watch as H, createVNode as v, defineComponent as j, inject as P, onMounted as G } from "vue";
|
|
5
|
+
import { useDesignerComponent as L } from "../../components/designer-canvas/index.esm.js";
|
|
6
|
+
import { InputBaseProperty as R } from "../../components/property-panel/index.esm.js";
|
|
7
|
+
import "lodash-es";
|
|
8
|
+
const D = {
|
|
9
|
+
id: { Type: String, default: "" },
|
|
10
|
+
/** 是否自动完成 */
|
|
11
|
+
autocomplete: { Type: String, default: "off" },
|
|
12
|
+
/** 自定义CLASS */
|
|
13
|
+
customClass: { Type: String, default: "" },
|
|
14
|
+
/** 禁用 */
|
|
15
|
+
disabled: { Type: Boolean, default: !1 },
|
|
16
|
+
/** 允许编辑 */
|
|
17
|
+
editable: { Type: Boolean, default: !0 },
|
|
18
|
+
/** 启用清除按钮 */
|
|
19
|
+
enableClear: { Type: Boolean, default: !0 },
|
|
20
|
+
/** 启用提示文本 */
|
|
21
|
+
enableTitle: { Type: Boolean, default: !0 },
|
|
22
|
+
/** 启用密码 */
|
|
23
|
+
enableViewPassword: { Type: Boolean, default: !0 },
|
|
24
|
+
/** 始终显示占位符文本 */
|
|
25
|
+
forcePlaceholder: { Type: Boolean, default: !1 },
|
|
26
|
+
/** 扩展按钮 */
|
|
27
|
+
groupText: { Type: String, default: "" },
|
|
28
|
+
/** 密码模式 */
|
|
29
|
+
type: { Type: String, default: "text" },
|
|
30
|
+
/** 最大值 */
|
|
31
|
+
max: { type: [Number, String] },
|
|
32
|
+
/** 最小值 */
|
|
33
|
+
min: { type: [Number, String] },
|
|
34
|
+
/** 最大长度 */
|
|
35
|
+
maxLength: { Type: Number || void 0, default: void 0 },
|
|
36
|
+
/** 最小长度 */
|
|
37
|
+
minLength: { Type: Number || void 0, default: void 0 },
|
|
38
|
+
/** 组件值 */
|
|
39
|
+
modelValue: { Type: String || Boolean, default: "" },
|
|
40
|
+
/** 隐藏边线 */
|
|
41
|
+
showBorder: { Type: Boolean, default: !0 },
|
|
42
|
+
/** 步长 */
|
|
43
|
+
step: { Type: Number, default: 1 },
|
|
44
|
+
/** 启用提示信息 */
|
|
45
|
+
placeholder: { Type: String, default: "" },
|
|
46
|
+
precision: { Type: Number, default: 0 },
|
|
47
|
+
/** 只读 */
|
|
48
|
+
readonly: { Type: Boolean, default: !1 },
|
|
49
|
+
/** 当组件禁用或只读时显示后边的按钮 */
|
|
50
|
+
showButtonWhenDisabled: { Type: Boolean, default: !1 },
|
|
51
|
+
/** tab索引 */
|
|
52
|
+
tabIndex: { Type: Number, default: 0 },
|
|
53
|
+
/** 文本在输入框中的对齐方式 */
|
|
54
|
+
textAlign: { Type: String, default: "left" },
|
|
55
|
+
/** 是否启用前置扩展信息;在输入框前面 显示 ① 图标鼠标滑过后显示 */
|
|
56
|
+
useExtendInfo: { Type: Boolean, default: !1 },
|
|
57
|
+
/** 前置扩展信息 */
|
|
58
|
+
extendInfo: { Type: String, default: "" },
|
|
59
|
+
/** 输入值 */
|
|
60
|
+
value: { Type: String, default: "" },
|
|
61
|
+
/** 是否撑开高度 */
|
|
62
|
+
autoHeight: { type: Boolean, default: !1 },
|
|
63
|
+
/** 自动聚焦 */
|
|
64
|
+
autofocus: { type: Boolean, default: !1 },
|
|
65
|
+
/** 文本区域可见的行数 */
|
|
66
|
+
rows: { type: Number, default: 2 },
|
|
67
|
+
/** 展示输入文本数量 */
|
|
68
|
+
showCount: { type: Boolean, default: !1 },
|
|
69
|
+
showZero: { type: Boolean, default: !1 },
|
|
70
|
+
/**
|
|
71
|
+
* 作为内嵌编辑器被创建后默认获得焦点
|
|
72
|
+
*/
|
|
73
|
+
focusOnCreated: { type: Boolean, default: !1 },
|
|
74
|
+
/**
|
|
75
|
+
* 作为内嵌编辑器被创建后默认选中文本
|
|
76
|
+
*/
|
|
77
|
+
selectOnCreated: { type: Boolean, default: !1 },
|
|
78
|
+
/**
|
|
79
|
+
* modelValue 更新时机, 默认 blur; 可选值:blur | input
|
|
80
|
+
* - blur: 离开焦点时更新
|
|
81
|
+
* - change: 输入时更新
|
|
82
|
+
*/
|
|
83
|
+
updateOn: { type: String, default: "blur" },
|
|
84
|
+
formatValidation: { type: Object, default: {} },
|
|
85
|
+
/**
|
|
86
|
+
* 是否启用快捷键
|
|
87
|
+
*/
|
|
88
|
+
keyboard: { type: Boolean, default: !0 }
|
|
89
|
+
};
|
|
90
|
+
function W(e, t) {
|
|
91
|
+
const n = g(e.groupText), i = b(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), l = b(() => e.type === "password" || e.enableClear || !!e.groupText || i.value);
|
|
92
|
+
return { appendedButtonClass: b(() => ({
|
|
93
|
+
"input-group-append": !0,
|
|
94
|
+
"append-force-show": i.value
|
|
95
|
+
})), appendedContent: n, shouldShowAppendedButton: l };
|
|
96
|
+
}
|
|
97
|
+
function J(e, t, n, i) {
|
|
98
|
+
const { appendedContent: l } = i, d = g(e.enableViewPassword), f = b(() => e.type === "password"), m = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', y = '<span class="f-icon f-icon-eye"></span>', o = g(!1);
|
|
99
|
+
H(() => [e.readonly, e.disabled], ([a, u]) => {
|
|
100
|
+
f.value && (n.value = a || u ? "password" : n.value, l.value = a || u ? y : l.value);
|
|
101
|
+
});
|
|
102
|
+
function s() {
|
|
103
|
+
return o.value = !o.value, n.value = o.value ? "text" : "password", l.value = o.value ? m : y, !1;
|
|
104
|
+
}
|
|
105
|
+
function r() {
|
|
106
|
+
n.value = f.value ? "password" : "text", l.value = f.value ? d.value ? y : "" : l.value;
|
|
107
|
+
}
|
|
108
|
+
return r(), { isPassword: f, onClickAppendedButton: s };
|
|
109
|
+
}
|
|
110
|
+
function q(e, t, n, i, l) {
|
|
111
|
+
const {
|
|
112
|
+
appendedButtonClass: d,
|
|
113
|
+
appendedContent: f
|
|
114
|
+
} = n, m = b(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), y = b(() => f.value && !t.slots.groupTextTemplate), o = b(() => !!t.slots.groupTextTemplate), {
|
|
115
|
+
clearButtonClass: s,
|
|
116
|
+
clearButtonStyle: r,
|
|
117
|
+
onClearValue: a,
|
|
118
|
+
shouldShowClearButton: u
|
|
119
|
+
} = i;
|
|
120
|
+
function p() {
|
|
121
|
+
return v("span", {
|
|
122
|
+
id: "clearIcon",
|
|
123
|
+
class: s.value,
|
|
124
|
+
style: r.value,
|
|
125
|
+
onClick: (c) => a(c)
|
|
126
|
+
}, [v("i", {
|
|
127
|
+
class: "f-icon modal_close"
|
|
128
|
+
}, null)]);
|
|
129
|
+
}
|
|
130
|
+
function C(c) {
|
|
131
|
+
t.emit("iconMouseEnter", c);
|
|
132
|
+
}
|
|
133
|
+
function B(c) {
|
|
134
|
+
t.emit("iconMouseLeave", c);
|
|
135
|
+
}
|
|
136
|
+
function h(c) {
|
|
137
|
+
m.value && t.emit("clickHandle", {
|
|
138
|
+
originalEvent: c
|
|
139
|
+
}), c.stopPropagation();
|
|
140
|
+
}
|
|
141
|
+
const w = e.type === "password" ? l.onClickAppendedButton : h;
|
|
142
|
+
function T() {
|
|
143
|
+
return v("span", {
|
|
144
|
+
class: "input-group-text",
|
|
145
|
+
onMouseenter: (c) => C(c),
|
|
146
|
+
onMouseleave: (c) => B(c),
|
|
147
|
+
innerHTML: f.value,
|
|
148
|
+
onClick: (c) => w(c)
|
|
149
|
+
}, null);
|
|
150
|
+
}
|
|
151
|
+
function V() {
|
|
152
|
+
return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
|
|
153
|
+
}
|
|
154
|
+
function M() {
|
|
155
|
+
return y.value ? T : o.value ? V : "";
|
|
156
|
+
}
|
|
157
|
+
const x = M();
|
|
158
|
+
return () => v("div", {
|
|
159
|
+
class: d.value
|
|
160
|
+
}, [u.value && p(), x && x()]);
|
|
161
|
+
}
|
|
162
|
+
const k = [
|
|
163
|
+
{ key: "none", value: "无" },
|
|
164
|
+
{ key: "cellNumber", value: "手机号" },
|
|
165
|
+
{ key: "tel", value: "座机号/传真号" },
|
|
166
|
+
{ key: "telOrCell", value: "手机号/座机号/传真号" },
|
|
167
|
+
{ key: "postCode", value: "邮编" },
|
|
168
|
+
{ key: "email", value: "电子邮箱" },
|
|
169
|
+
{ key: "idCode", value: "身份证号" },
|
|
170
|
+
{ key: "carCode", value: "车牌号" },
|
|
171
|
+
{ key: "subjectCode", value: "10位数字会计科目代码" },
|
|
172
|
+
{ key: "custom", value: "自定义" }
|
|
173
|
+
];
|
|
174
|
+
function z(e) {
|
|
175
|
+
switch (e) {
|
|
176
|
+
case "none":
|
|
177
|
+
return "";
|
|
178
|
+
case "cellNumber":
|
|
179
|
+
return "^1[0-9]{10}$";
|
|
180
|
+
case "tel":
|
|
181
|
+
return "^(0[0-9]{2,3}\\-)?([2-9][0-9]{6,7})+(\\-[0-9]{1,4})?$";
|
|
182
|
+
case "telOrCell":
|
|
183
|
+
return "^(0[0-9]{2,3}\\-)?([2-9][0-9]{6,7})+(\\-[0-9]{1,4})?$|^1[0-9]{10}$";
|
|
184
|
+
case "postCode":
|
|
185
|
+
return "^[1-9]\\d{5}(?!\\d)$";
|
|
186
|
+
case "workCode":
|
|
187
|
+
return "^\\d{8}$";
|
|
188
|
+
case "email":
|
|
189
|
+
return "^[A-Za-z\\d]+([-_.][A-Za-z\\d]+)*@([A-Za-z\\d]+[-.])+[A-Za-z]{2,5}$";
|
|
190
|
+
case "idCode":
|
|
191
|
+
return "^[1-9]\\d{5}[1-9]\\d{3}((0[1-9])|(1[0-2]))(0[1-9]|([1|2][0-9])|3[0-1])((\\d{4})|\\d{3}X)$";
|
|
192
|
+
case "carCode":
|
|
193
|
+
return "^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][·\\s]?[A-HJ-NP-Z0-9]{4,5}[挂学警港澳]?|粤[Z港澳][·\\s]?[港澳][0-9A-HJ-NP-Z]{4}|[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼][A-Z][·\\s]?([DF][0-9A-HJ-NP-Z][0-9]{4}|[0-9]{5}[DF])[挂港澳]?|[使领][0-9]{3}[·\\s]?[0-9]{3}|临[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼][A-Z][·\\s]?[0-9A-Z]{4,5}|[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼][A-Z]?[·\\s]?警[0-9A-Z]{4}|[军海空][A-Z][·\\s]?[0-9]{4,5}|WJ(?:[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼]|\\d{2})[·\\s]?[0-9A-Z]{4,5})$";
|
|
194
|
+
case "carCodeNew":
|
|
195
|
+
return "^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF])|([DF][A-HJ-NP-Z0-9][0-9]{4}))$";
|
|
196
|
+
case "subjectCode":
|
|
197
|
+
return "^\\d{10}$";
|
|
198
|
+
}
|
|
199
|
+
return "";
|
|
200
|
+
}
|
|
201
|
+
function _(e) {
|
|
202
|
+
var t;
|
|
203
|
+
return "请输入正确的" + ((t = k.find((n) => n.key === e)) == null ? void 0 : t.value);
|
|
204
|
+
}
|
|
205
|
+
const U = {
|
|
206
|
+
convertTo: (e, t, n, i) => {
|
|
207
|
+
e.editor.formatValidation || (e.editor.formatValidation = { type: "none" }), e.editor.formatValidation.type = n, e.editor.formatValidation.expression = z(n), e.editor.formatValidation.message = _(n);
|
|
208
|
+
},
|
|
209
|
+
convertFrom: (e, t, n) => e.editor.formatValidation ? t === "type" ? e.editor.formatValidation[t] || "none" : e.editor.formatValidation[t] : "none"
|
|
210
|
+
}, S = {
|
|
211
|
+
convertTo: (e, t, n, i) => {
|
|
212
|
+
e.editor.formatValidation || (e.editor.formatValidation = { type: "none" }), e.editor.formatValidation[t] = n;
|
|
213
|
+
},
|
|
214
|
+
convertFrom: (e, t, n) => e.editor.formatValidation ? e.editor.formatValidation[t] : e.editor[t]
|
|
215
|
+
};
|
|
216
|
+
class X extends R {
|
|
217
|
+
constructor(t, n) {
|
|
218
|
+
super(t, n);
|
|
219
|
+
}
|
|
220
|
+
getPropertyConfig(t, n) {
|
|
221
|
+
return super.getPropertyConfig(t, n), this.propertyConfig.categories.formatValidation = this.getFormatValidation(t), this.propertyConfig;
|
|
222
|
+
}
|
|
223
|
+
getEditorProperties(t) {
|
|
224
|
+
var i, l;
|
|
225
|
+
let n;
|
|
226
|
+
if (((i = t == null ? void 0 : t.binding) == null ? void 0 : i.type) === "Form") {
|
|
227
|
+
const d = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
|
|
228
|
+
(l = d == null ? void 0 : d.schemaField) != null && l.type && (n = d.schemaField.type.length);
|
|
229
|
+
}
|
|
230
|
+
return this.getComponentConfig(t, {}, {
|
|
231
|
+
maxLength: {
|
|
232
|
+
description: "文本字数最大长度",
|
|
233
|
+
title: "最大长度",
|
|
234
|
+
type: "number",
|
|
235
|
+
editor: {
|
|
236
|
+
nullable: !0,
|
|
237
|
+
min: 0,
|
|
238
|
+
useThousands: !1,
|
|
239
|
+
max: n
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
enableViewPassword: {
|
|
243
|
+
description: "",
|
|
244
|
+
title: "启用密码",
|
|
245
|
+
visible: !1,
|
|
246
|
+
type: "boolean"
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
getFormatValidation(t) {
|
|
251
|
+
var i, l, d;
|
|
252
|
+
const n = {
|
|
253
|
+
title: "输入格式校验",
|
|
254
|
+
description: "输入格式校验",
|
|
255
|
+
properties: {
|
|
256
|
+
type: {
|
|
257
|
+
title: "输入类型",
|
|
258
|
+
type: "enum",
|
|
259
|
+
description: "输入类型",
|
|
260
|
+
defaultValue: "",
|
|
261
|
+
editor: {
|
|
262
|
+
type: "combo-list",
|
|
263
|
+
textField: "value",
|
|
264
|
+
valueField: "key",
|
|
265
|
+
idField: "key",
|
|
266
|
+
editable: !1,
|
|
267
|
+
data: k
|
|
268
|
+
},
|
|
269
|
+
refreshPanelAfterChanged: !0,
|
|
270
|
+
$converter: U
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
return (i = t.editor.formatValidation) != null && i.type && ((l = t.editor.formatValidation) == null ? void 0 : l.type) !== "none" && (n.properties.message = {
|
|
275
|
+
title: "输入错误提示",
|
|
276
|
+
type: "string",
|
|
277
|
+
description: "输入错误提示",
|
|
278
|
+
$converter: S
|
|
279
|
+
}), ((d = t.editor.formatValidation) == null ? void 0 : d.type) === "custom" && (n.properties.expression = {
|
|
280
|
+
title: "匹配正则",
|
|
281
|
+
type: "string",
|
|
282
|
+
description: "匹配正则",
|
|
283
|
+
$converter: S
|
|
284
|
+
}), n;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
function K(e, t) {
|
|
288
|
+
const n = e.schema;
|
|
289
|
+
function i(l, d) {
|
|
290
|
+
return new X(l, t).getPropertyConfig(n, d);
|
|
291
|
+
}
|
|
292
|
+
return { getPropsConfig: i };
|
|
293
|
+
}
|
|
294
|
+
const A = /* @__PURE__ */ j({
|
|
295
|
+
name: "FInputGroupDesign",
|
|
296
|
+
props: D,
|
|
297
|
+
emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
|
|
298
|
+
setup(e, t) {
|
|
299
|
+
const n = g(e.modelValue), i = g(e.modelValue), l = N(e, t, n, i), {
|
|
300
|
+
inputGroupClass: d,
|
|
301
|
+
inputType: f,
|
|
302
|
+
inputGroupStyle: m
|
|
303
|
+
} = l, y = W(e), {
|
|
304
|
+
shouldShowAppendedButton: o
|
|
305
|
+
} = y, s = F(e, t, l), {
|
|
306
|
+
onMouseEnter: r,
|
|
307
|
+
onMouseLeave: a
|
|
308
|
+
} = s, u = J(e, t, f, y), p = g(), C = P("designer-host-service"), B = P("design-item-context"), h = K(B, C), w = L(p, B, h);
|
|
309
|
+
G(() => {
|
|
310
|
+
p.value.componentInstance = w;
|
|
311
|
+
}), t.expose(w.value);
|
|
312
|
+
const T = q(e, t, y, s, u), V = g();
|
|
313
|
+
return () => v("div", {
|
|
314
|
+
id: "inputGroup",
|
|
315
|
+
ref: p,
|
|
316
|
+
class: d.value,
|
|
317
|
+
style: m.value,
|
|
318
|
+
onMouseenter: r,
|
|
319
|
+
onMouseleave: a
|
|
320
|
+
}, [v("input", {
|
|
321
|
+
ref: V,
|
|
322
|
+
class: "form-control",
|
|
323
|
+
readonly: !0,
|
|
324
|
+
placeholder: e.placeholder
|
|
325
|
+
}, null), o.value && T()]);
|
|
326
|
+
}
|
|
327
|
+
});
|
|
328
|
+
function Q(e = {}) {
|
|
329
|
+
function t(o, s, r, a) {
|
|
330
|
+
if (typeof r == "number")
|
|
331
|
+
return a[o].length === r;
|
|
332
|
+
if (typeof r == "object") {
|
|
333
|
+
const u = Object.keys(r)[0], p = r[u];
|
|
334
|
+
if (u === "not")
|
|
335
|
+
return Number(a[o].length) !== Number(p);
|
|
336
|
+
if (u === "moreThan")
|
|
337
|
+
return Number(a[o].length) >= Number(p);
|
|
338
|
+
if (u === "lessThan")
|
|
339
|
+
return Number(a[o].length) <= Number(p);
|
|
340
|
+
}
|
|
341
|
+
return !1;
|
|
342
|
+
}
|
|
343
|
+
function n(o, s, r, a) {
|
|
344
|
+
return a[o] && a[o].propertyValue && String(a[o].propertyValue.value) === String(r);
|
|
345
|
+
}
|
|
346
|
+
const i = /* @__PURE__ */ new Map([
|
|
347
|
+
["length", t],
|
|
348
|
+
["getProperty", n]
|
|
349
|
+
]);
|
|
350
|
+
Object.keys(e).reduce((o, s) => (o.set(s, e[s]), o), i);
|
|
351
|
+
function l(o, s) {
|
|
352
|
+
const r = o;
|
|
353
|
+
return typeof s == "number" ? [{ target: r, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: r, operator: "getProperty", param: o, value: !!s }] : typeof s == "object" ? Object.keys(s).map((a) => {
|
|
354
|
+
if (a === "length")
|
|
355
|
+
return { target: r, operator: "length", param: null, value: s[a] };
|
|
356
|
+
const u = a, p = s[a];
|
|
357
|
+
return { target: r, operator: "getProperty", param: u, value: p };
|
|
358
|
+
}) : [];
|
|
359
|
+
}
|
|
360
|
+
function d(o) {
|
|
361
|
+
return Object.keys(o).reduce((r, a) => {
|
|
362
|
+
const u = l(a, o[a]);
|
|
363
|
+
return r.push(...u), r;
|
|
364
|
+
}, []);
|
|
365
|
+
}
|
|
366
|
+
function f(o, s) {
|
|
367
|
+
if (i.has(o.operator)) {
|
|
368
|
+
const r = i.get(o.operator);
|
|
369
|
+
return r && r(o.target, o.param, o.value, s) || !1;
|
|
370
|
+
}
|
|
371
|
+
return !1;
|
|
372
|
+
}
|
|
373
|
+
function m(o, s) {
|
|
374
|
+
return d(o).reduce((u, p) => u && f(p, s), !0);
|
|
375
|
+
}
|
|
376
|
+
function y(o, s) {
|
|
377
|
+
const r = Object.keys(o), a = r.includes("allOf"), u = r.includes("anyOf"), p = a || u, h = (p ? o[p ? a ? "allOf" : "anyOf" : "allOf"] : [o]).map((T) => m(T, s));
|
|
378
|
+
return a ? !h.includes(!1) : h.includes(!0);
|
|
379
|
+
}
|
|
380
|
+
return { parseValueSchema: y };
|
|
381
|
+
}
|
|
382
|
+
Q();
|
|
383
|
+
function Y(e, t) {
|
|
384
|
+
return { customClass: t.class, customStyle: t.style };
|
|
385
|
+
}
|
|
386
|
+
const ee = /* @__PURE__ */ new Map([
|
|
387
|
+
["appearance", Y]
|
|
388
|
+
]);
|
|
389
|
+
function te(e, t, n) {
|
|
390
|
+
return t;
|
|
391
|
+
}
|
|
392
|
+
const ne = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-design.gitee.io/input-group.schema.json", re = "input-group", ae = "A Farris Input Component", se = "object", ie = {
|
|
393
|
+
id: {
|
|
394
|
+
description: "The unique identifier for a Input Group",
|
|
395
|
+
type: "string"
|
|
396
|
+
},
|
|
397
|
+
type: {
|
|
398
|
+
description: "The type string of Input Group component",
|
|
399
|
+
type: "string",
|
|
400
|
+
default: "input-group"
|
|
401
|
+
},
|
|
402
|
+
appearance: {
|
|
403
|
+
description: "",
|
|
404
|
+
type: "object",
|
|
405
|
+
properties: {
|
|
406
|
+
class: {
|
|
407
|
+
type: "string"
|
|
408
|
+
},
|
|
409
|
+
style: {
|
|
410
|
+
type: "string"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
default: {}
|
|
414
|
+
},
|
|
415
|
+
binding: {
|
|
416
|
+
description: "",
|
|
417
|
+
type: "object",
|
|
418
|
+
default: {}
|
|
419
|
+
},
|
|
420
|
+
formatValidation: {
|
|
421
|
+
description: "",
|
|
422
|
+
type: "object",
|
|
423
|
+
default: {}
|
|
424
|
+
},
|
|
425
|
+
editable: {
|
|
426
|
+
description: "",
|
|
427
|
+
type: "boolean",
|
|
428
|
+
default: !0
|
|
429
|
+
},
|
|
430
|
+
enableLinkLabel: {
|
|
431
|
+
description: "",
|
|
432
|
+
type: "boolean",
|
|
433
|
+
default: !1
|
|
434
|
+
},
|
|
435
|
+
label: {
|
|
436
|
+
description: "",
|
|
437
|
+
type: "string",
|
|
438
|
+
default: ""
|
|
439
|
+
},
|
|
440
|
+
labelWidth: {
|
|
441
|
+
description: "",
|
|
442
|
+
type: "number"
|
|
443
|
+
},
|
|
444
|
+
placeholder: {
|
|
445
|
+
description: "",
|
|
446
|
+
type: "string",
|
|
447
|
+
default: ""
|
|
448
|
+
},
|
|
449
|
+
readonly: {
|
|
450
|
+
description: "",
|
|
451
|
+
type: "boolean",
|
|
452
|
+
default: !1
|
|
453
|
+
},
|
|
454
|
+
disabled: {
|
|
455
|
+
description: "",
|
|
456
|
+
type: "boolean",
|
|
457
|
+
default: !1
|
|
458
|
+
},
|
|
459
|
+
required: {
|
|
460
|
+
description: "",
|
|
461
|
+
type: "boolean",
|
|
462
|
+
default: !1
|
|
463
|
+
},
|
|
464
|
+
tabIndex: {
|
|
465
|
+
description: "",
|
|
466
|
+
type: "number",
|
|
467
|
+
default: -1
|
|
468
|
+
},
|
|
469
|
+
maxLength: {
|
|
470
|
+
description: "",
|
|
471
|
+
type: "number",
|
|
472
|
+
default: ""
|
|
473
|
+
},
|
|
474
|
+
textAlign: {
|
|
475
|
+
description: "",
|
|
476
|
+
type: "enum",
|
|
477
|
+
enum: [
|
|
478
|
+
"left",
|
|
479
|
+
"middle",
|
|
480
|
+
"right"
|
|
481
|
+
],
|
|
482
|
+
default: "left"
|
|
483
|
+
},
|
|
484
|
+
visible: {
|
|
485
|
+
description: "",
|
|
486
|
+
type: "boolean",
|
|
487
|
+
default: !0
|
|
488
|
+
},
|
|
489
|
+
onBlur: {
|
|
490
|
+
description: "",
|
|
491
|
+
type: "string",
|
|
492
|
+
default: ""
|
|
493
|
+
},
|
|
494
|
+
onClickLinkLabel: {
|
|
495
|
+
description: "",
|
|
496
|
+
type: "sting",
|
|
497
|
+
default: ""
|
|
498
|
+
},
|
|
499
|
+
addonDisabled: {
|
|
500
|
+
description: "",
|
|
501
|
+
type: "boolean",
|
|
502
|
+
default: !1
|
|
503
|
+
},
|
|
504
|
+
addonContent: {
|
|
505
|
+
description: "",
|
|
506
|
+
type: "string",
|
|
507
|
+
default: ""
|
|
508
|
+
},
|
|
509
|
+
autoHeight: {
|
|
510
|
+
description: "",
|
|
511
|
+
type: "boolean",
|
|
512
|
+
default: !1
|
|
513
|
+
},
|
|
514
|
+
enableAddon: {
|
|
515
|
+
description: "",
|
|
516
|
+
type: "boolean",
|
|
517
|
+
default: !1
|
|
518
|
+
},
|
|
519
|
+
addonType: {
|
|
520
|
+
description: "",
|
|
521
|
+
type: "string",
|
|
522
|
+
enum: [
|
|
523
|
+
"button",
|
|
524
|
+
"static"
|
|
525
|
+
],
|
|
526
|
+
default: "button"
|
|
527
|
+
},
|
|
528
|
+
enableClear: {
|
|
529
|
+
description: "",
|
|
530
|
+
type: "boolean",
|
|
531
|
+
default: !0
|
|
532
|
+
},
|
|
533
|
+
enableViewPassword: {
|
|
534
|
+
description: "",
|
|
535
|
+
type: "boolean",
|
|
536
|
+
default: !1
|
|
537
|
+
},
|
|
538
|
+
inputType: {
|
|
539
|
+
description: "",
|
|
540
|
+
type: "string",
|
|
541
|
+
enum: [
|
|
542
|
+
"input",
|
|
543
|
+
"password",
|
|
544
|
+
"text"
|
|
545
|
+
],
|
|
546
|
+
default: "input"
|
|
547
|
+
},
|
|
548
|
+
maxHeight: {
|
|
549
|
+
description: "",
|
|
550
|
+
type: "number",
|
|
551
|
+
default: 500
|
|
552
|
+
},
|
|
553
|
+
popUp: {
|
|
554
|
+
description: "",
|
|
555
|
+
type: "object",
|
|
556
|
+
properties: {
|
|
557
|
+
footerButtons: {
|
|
558
|
+
type: "array",
|
|
559
|
+
default: []
|
|
560
|
+
},
|
|
561
|
+
height: {
|
|
562
|
+
type: "number",
|
|
563
|
+
default: 600
|
|
564
|
+
},
|
|
565
|
+
dataMapping: {
|
|
566
|
+
type: "object"
|
|
567
|
+
},
|
|
568
|
+
contents: {
|
|
569
|
+
type: "array",
|
|
570
|
+
default: []
|
|
571
|
+
},
|
|
572
|
+
showMaxButton: {
|
|
573
|
+
type: "boolean",
|
|
574
|
+
default: !0
|
|
575
|
+
},
|
|
576
|
+
showCloseButton: {
|
|
577
|
+
type: "boolean",
|
|
578
|
+
default: !0
|
|
579
|
+
},
|
|
580
|
+
showFooter: {
|
|
581
|
+
type: "boolean",
|
|
582
|
+
default: !0
|
|
583
|
+
},
|
|
584
|
+
title: {
|
|
585
|
+
type: "string",
|
|
586
|
+
default: ""
|
|
587
|
+
},
|
|
588
|
+
width: {
|
|
589
|
+
type: "number",
|
|
590
|
+
default: 800
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
groupText: {
|
|
595
|
+
description: "",
|
|
596
|
+
type: "string",
|
|
597
|
+
default: ""
|
|
598
|
+
},
|
|
599
|
+
onClickHandle: {
|
|
600
|
+
description: "",
|
|
601
|
+
type: "string",
|
|
602
|
+
default: ""
|
|
603
|
+
},
|
|
604
|
+
showButtonWhenDisabled: {
|
|
605
|
+
description: "",
|
|
606
|
+
type: "boolean",
|
|
607
|
+
default: !1
|
|
608
|
+
},
|
|
609
|
+
onClear: {
|
|
610
|
+
description: "",
|
|
611
|
+
type: "string",
|
|
612
|
+
default: ""
|
|
613
|
+
},
|
|
614
|
+
updateOn: {
|
|
615
|
+
description: "",
|
|
616
|
+
type: "string",
|
|
617
|
+
default: "blur"
|
|
618
|
+
}
|
|
619
|
+
}, le = [
|
|
620
|
+
"type"
|
|
621
|
+
], ue = [
|
|
622
|
+
"id",
|
|
623
|
+
"appearance",
|
|
624
|
+
"binding",
|
|
625
|
+
"visible"
|
|
626
|
+
], de = {
|
|
627
|
+
$schema: ne,
|
|
628
|
+
$id: oe,
|
|
629
|
+
title: re,
|
|
630
|
+
description: ae,
|
|
631
|
+
type: se,
|
|
632
|
+
properties: ie,
|
|
633
|
+
required: le,
|
|
634
|
+
ignore: ue
|
|
635
|
+
}, I = O($, de, ee, te);
|
|
636
|
+
A.register = (e, t, n, i) => {
|
|
637
|
+
e["input-group"] = Z, t["input-group"] = I;
|
|
638
|
+
};
|
|
639
|
+
A.registerDesigner = (e, t, n) => {
|
|
640
|
+
e["input-group"] = A, t["input-group"] = I;
|
|
641
|
+
};
|
|
642
|
+
const he = E(A);
|
|
643
|
+
export {
|
|
644
|
+
A as FInputGroupDesgin,
|
|
645
|
+
he as default,
|
|
646
|
+
I as propsResolver
|
|
647
|
+
};
|