@web-utils/form-ui 1.0.0-beta10 → 1.0.0-beta100
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/address-input/index.d.ts +53 -0
- package/address-input/index.mjs +2 -0
- package/address-input/style.css +1 -0
- package/affix/index.d.ts +50 -0
- package/affix/index.mjs +49 -0
- package/affix/style.css +1 -0
- package/api/index.d.ts +70 -0
- package/api/index.mjs +42 -0
- package/awesome-button/index.d.ts +61 -0
- package/awesome-button/index.mjs +49 -0
- package/base.css +1 -1
- package/basic-container/index.d.ts +16 -0
- package/basic-container/index.mjs +21 -0
- package/basic-container/style.css +1 -0
- package/biz-loading-view/index.d.ts +18 -0
- package/biz-loading-view/index.mjs +27 -0
- package/biz-loading-view/style.css +1 -0
- package/capsule-tab/index.d.ts +31 -0
- package/capsule-tab/index.mjs +2 -0
- package/capsule-tab/style.css +1 -0
- package/card/index.d.ts +42 -0
- package/card/index.mjs +91 -0
- package/card/style.css +1 -0
- package/chunks/0bRE9eWD.mjs +58 -0
- package/chunks/3Zmtl1F82.mjs +231 -0
- package/chunks/8zvAoiTw2.mjs +63 -0
- package/chunks/B-BmACqv.mjs +60 -0
- package/chunks/B1MSrc6f.mjs +8 -0
- package/chunks/B24kbvxB.mjs +181 -0
- package/chunks/B7DACryk.mjs +40 -0
- package/chunks/B7hlyq1n2.mjs +34 -0
- package/chunks/BABpWSRr2.mjs +92 -0
- package/chunks/BTDWXFoi.mjs +200 -0
- package/chunks/BUKFXHGg.mjs +30 -0
- package/chunks/BWNDImpw.mjs +299 -0
- package/chunks/BanS-yUY2.mjs +37 -0
- package/chunks/BcDeI1ZH.mjs +449 -0
- package/chunks/BdrgibgS.mjs +70 -0
- package/chunks/Bglnw37E.mjs +4795 -0
- package/chunks/BlxJzHgO.mjs +110 -0
- package/chunks/BqL4MXni.mjs +781 -0
- package/chunks/BqgrLeBK2.mjs +25 -0
- package/chunks/BrZxnDdM.mjs +61 -0
- package/chunks/BwPq7wF-.mjs +648 -0
- package/chunks/BxJpkb47.mjs +380 -0
- package/chunks/C-vVy7vH2.mjs +96 -0
- package/chunks/C1SZzAUY2.mjs +525 -0
- package/chunks/C23Qaggp.mjs +70 -0
- package/chunks/C2bqaC-E.mjs +52 -0
- package/chunks/C7vVbJ2c.mjs +30 -0
- package/chunks/C9nHZkbj.mjs +4085 -0
- package/chunks/C9uwTpHO.mjs +341 -0
- package/chunks/CA_-hYlN.mjs +32 -0
- package/chunks/CCkHwxt7.mjs +61 -0
- package/chunks/CCwW9An-.mjs +100 -0
- package/chunks/CKg0Nmff2.mjs +222 -0
- package/chunks/CKuwy9g12.mjs +31 -0
- package/chunks/CP0tXU4m.mjs +198 -0
- package/chunks/CPGrGc4W.mjs +595 -0
- package/chunks/CX7Oiw5N.mjs +384 -0
- package/chunks/CXHJqvbJ.mjs +204 -0
- package/chunks/CYjby4eo.mjs +17 -0
- package/chunks/C_QfuxeQ.mjs +98 -0
- package/chunks/CcW1bkgt.mjs +199 -0
- package/chunks/CikaZjdo2.mjs +29 -0
- package/chunks/CjXRUqu72.mjs +30 -0
- package/chunks/CjeEWpNr.mjs +303 -0
- package/chunks/ClVh1Lek.mjs +130 -0
- package/chunks/CmynK-Bt2.mjs +108 -0
- package/chunks/CoQf1XX62.mjs +39 -0
- package/chunks/CsiD_AYs.mjs +56 -0
- package/chunks/CtwvKHKB.mjs +1799 -0
- package/chunks/Cun90-R7.mjs +63 -0
- package/chunks/D1wwXnEw.mjs +46 -0
- package/chunks/D2NeD2g32.mjs +1361 -0
- package/chunks/D5twDi0x.mjs +218 -0
- package/chunks/D7kTwnJK2.mjs +27 -0
- package/chunks/D7p2ei_L.mjs +68 -0
- package/chunks/D8C17D2k.mjs +58 -0
- package/chunks/DEvsHOVL2.mjs +429 -0
- package/chunks/DG4q844M.mjs +65 -0
- package/chunks/DN2JYsQQ2.mjs +42 -0
- package/chunks/DPgFZVE12.mjs +112 -0
- package/chunks/DQVIughS.mjs +613 -0
- package/chunks/DTeHffqJ.mjs +185 -0
- package/chunks/DW0VZadU.mjs +55 -0
- package/chunks/DXi5_gZb.mjs +518 -0
- package/chunks/DdACGFy3.mjs +90 -0
- package/chunks/DptiCPnc.mjs +92 -0
- package/chunks/DzfHfYvS2.mjs +26 -0
- package/chunks/Dziwe2852.mjs +29 -0
- package/chunks/G5TPeMtF2.mjs +35 -0
- package/chunks/NYkLWtyw2.mjs +26 -0
- package/chunks/T_Uvq_1c.mjs +51 -0
- package/chunks/_7MDfW_y.mjs +156 -0
- package/chunks/dgRz6V6p2.mjs +26 -0
- package/chunks/fJ2ezOVH.mjs +206 -0
- package/chunks/mTmx7TI02.mjs +136 -0
- package/chunks/sl7eKGeX.mjs +684 -0
- package/chunks/tJ_t87kJ.mjs +89 -0
- package/chunks/tzjUpVIj.mjs +37 -0
- package/chunks/wkrkYyvs.mjs +17 -0
- package/chunks/xElkm-ja2.mjs +75 -0
- package/code-mirror-editor/index.d.ts +51 -0
- package/code-mirror-editor/index.mjs +100 -0
- package/code-mirror-editor/style.css +1 -0
- package/confirm-button/index.d.ts +123 -0
- package/confirm-button/index.mjs +35 -0
- package/confirmable/index.d.ts +94 -0
- package/confirmable/index.mjs +8 -0
- package/constants/index.d.ts +75 -0
- package/constants/index.mjs +4 -0
- package/context-menu/index.d.ts +184 -0
- package/context-menu/index.mjs +197 -0
- package/context-menu/style.css +1 -0
- package/count-up/index.d.ts +71 -0
- package/count-up/index.mjs +94 -0
- package/custom-scrollbar/index.d.ts +50 -0
- package/custom-scrollbar/index.mjs +93 -0
- package/data-box/index.d.ts +31 -0
- package/data-box/index.mjs +2 -0
- package/data-box/style.css +1 -0
- package/data-card/index.d.ts +21 -0
- package/data-card/index.mjs +65 -0
- package/data-card/style.css +1 -0
- package/data-card-text/index.d.ts +22 -0
- package/data-card-text/index.mjs +69 -0
- package/data-card-text/style.css +1 -0
- package/data-display/index.d.ts +21 -0
- package/data-display/index.mjs +75 -0
- package/data-display/style.css +1 -0
- package/data-icons/index.d.ts +22 -0
- package/data-icons/index.mjs +76 -0
- package/data-icons/style.css +1 -0
- package/data-imgtext/index.d.ts +19 -0
- package/data-imgtext/index.mjs +73 -0
- package/data-imgtext/style.css +1 -0
- package/data-operatext/index.d.ts +18 -0
- package/data-operatext/index.mjs +56 -0
- package/data-operatext/style.css +1 -0
- package/data-panel/index.d.ts +20 -0
- package/data-panel/index.mjs +63 -0
- package/data-panel/style.css +1 -0
- package/data-pay/index.d.ts +20 -0
- package/data-pay/index.mjs +112 -0
- package/data-pay/style.css +1 -0
- package/data-price/index.d.ts +18 -0
- package/data-price/index.mjs +53 -0
- package/data-price/style.css +1 -0
- package/data-progress/index.d.ts +20 -0
- package/data-progress/index.mjs +74 -0
- package/data-progress/style.css +1 -0
- package/data-rotate/index.d.ts +22 -0
- package/data-rotate/index.mjs +2 -0
- package/data-rotate/style.css +1 -0
- package/data-table-picker/index.d.ts +62 -0
- package/data-table-picker/index.mjs +120 -0
- package/data-tabs/index.d.ts +22 -0
- package/data-tabs/index.mjs +2 -0
- package/data-tabs/style.css +1 -0
- package/dialog-form/index.d.ts +38 -0
- package/dialog-form/index.mjs +155 -0
- package/dialog-form/style.css +1 -0
- package/dict-render/index.d.ts +29 -0
- package/dict-render/index.mjs +2 -0
- package/e-charts/index.d.ts +80 -0
- package/e-charts/index.mjs +180 -0
- package/e-charts/style.css +1 -0
- package/easy-popup/index.d.ts +115 -0
- package/easy-popup/index.mjs +93 -0
- package/easy-popup/style.css +1 -0
- package/editable-progress/index.d.ts +69 -0
- package/editable-progress/index.mjs +122 -0
- package/editable-progress/style.css +1 -0
- package/editable-tree/index.d.ts +282 -0
- package/editable-tree/index.mjs +597 -0
- package/editable-tree/style.css +1 -0
- package/element-dialog/index.d.ts +236 -43
- package/element-dialog/index.mjs +2 -91
- package/element-dialog/style.css +1 -1
- package/element-resize-observer/index.d.ts +9 -0
- package/element-resize-observer/index.mjs +41 -0
- package/element-resize-observer/style.css +1 -0
- package/empty-view/index.d.ts +95 -21
- package/empty-view/index.mjs +2 -1
- package/error-view/index.d.ts +73 -0
- package/error-view/index.mjs +38 -0
- package/error-view/style.css +1 -0
- package/flex-box/index.d.ts +45 -0
- package/flex-box/index.mjs +2 -0
- package/flex-column/index.d.ts +42 -0
- package/flex-column/index.mjs +2 -0
- package/flex-item/index.d.ts +78 -0
- package/flex-item/index.mjs +2 -0
- package/flex-row/index.d.ts +42 -0
- package/flex-row/index.mjs +2 -0
- package/flex-scroll-area/index.d.ts +14 -17
- package/flex-scroll-area/index.mjs +2 -1
- package/flex-scroller/index.d.ts +27 -0
- package/flex-scroller/index.mjs +30 -0
- package/flex-scroller/style.css +1 -0
- package/flow-designer/index.d.ts +287 -0
- package/flow-designer/index.mjs +2 -0
- package/flow-designer/style.css +1 -0
- package/flow-viewer/index.d.ts +63 -0
- package/flow-viewer/index.mjs +160 -0
- package/flow-viewer/style.css +1 -0
- package/form-advice/index.d.ts +8 -8
- package/form-advice/index.mjs +13 -12
- package/form-button/index.d.ts +124 -0
- package/form-button/index.mjs +36 -0
- package/form-card/index.d.ts +10 -0
- package/form-card/index.mjs +18 -0
- package/form-cascader/index.d.ts +479 -0
- package/form-cascader/index.mjs +2 -0
- package/form-cell/index.d.ts +17 -19
- package/form-cell/index.mjs +1 -0
- package/form-checkbox/index.d.ts +239 -31
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.d.ts +374 -0
- package/form-checkbox-group/index.mjs +2 -0
- package/form-checkbox-group/style.css +1 -0
- package/form-date-picker/index.d.ts +377 -30
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +91 -23
- package/form-holder/index.mjs +1 -1
- package/form-holder/style.css +1 -1
- package/form-image/index.d.ts +139 -24
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +284 -51
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.d.ts +224 -0
- package/form-input-cron-expression/index.mjs +2 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.d.ts +298 -26
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +298 -26
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +239 -30
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +298 -26
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +270 -1
- package/form-input-tag/index.mjs +1 -3
- package/form-input-time/index.d.ts +441 -1
- package/form-input-time/index.mjs +1 -3
- package/form-item/index.d.ts +191 -0
- package/form-item/index.mjs +2 -0
- package/form-item/style.css +1 -0
- package/form-item-config-provider/index.d.ts +25 -4
- package/form-item-config-provider/index.mjs +7 -7
- package/form-item-group/index.d.ts +92 -17
- package/form-item-group/index.mjs +2 -78
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.d.ts +297 -29
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +246 -25
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.d.ts +12 -17
- package/form-red-table/index.mjs +28 -26
- package/form-row/index.d.ts +4 -3
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +529 -29
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +275 -27
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +266 -27
- package/form-switch/index.mjs +1 -1
- package/form-table/index.d.ts +299 -0
- package/form-table/index.mjs +2 -0
- package/form-table-plus/index.d.ts +276 -0
- package/form-table-plus/index.mjs +2 -0
- package/form-text/index.d.ts +159 -24
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.d.ts +352 -0
- package/form-textarea/index.mjs +2 -0
- package/form-time-select/index.d.ts +326 -0
- package/form-time-select/index.mjs +2 -0
- package/form-tree-select/index.d.ts +716 -0
- package/form-tree-select/index.mjs +2 -0
- package/form-tree-select/style.css +1 -0
- package/form-tree-select-multiple/index.d.ts +718 -0
- package/form-tree-select-multiple/index.mjs +2 -0
- package/form-view/index.d.ts +226 -1
- package/form-view/index.mjs +281 -6
- package/form-view/style.css +1 -0
- package/fy-array/index.d.ts +498 -0
- package/fy-array/index.mjs +131 -0
- package/fy-array/style.css +1 -0
- package/fy-avatar/index.d.ts +40 -0
- package/fy-avatar/index.mjs +58 -0
- package/fy-avatar/style.css +1 -0
- package/fy-cascader/index.d.ts +562 -0
- package/fy-cascader/index.mjs +116 -0
- package/fy-checkbox/index.d.ts +495 -0
- package/fy-checkbox/index.mjs +103 -0
- package/fy-checkbox/style.css +1 -0
- package/fy-curd/index.d.ts +1009 -0
- package/fy-curd/index.mjs +2 -0
- package/fy-date/index.d.ts +510 -0
- package/fy-date/index.mjs +80 -0
- package/fy-date/style.css +1 -0
- package/fy-dynamic/index.d.ts +532 -0
- package/fy-dynamic/index.mjs +2 -0
- package/fy-empty/index.d.ts +32 -0
- package/fy-empty/index.mjs +36 -0
- package/fy-empty/style.css +1 -0
- package/fy-form/index.d.ts +531 -0
- package/fy-form/index.mjs +2 -0
- package/fy-form/style.css +1 -0
- package/fy-input/index.d.ts +580 -0
- package/fy-input/index.mjs +122 -0
- package/fy-input-color/index.d.ts +499 -0
- package/fy-input-color/index.mjs +80 -0
- package/fy-input-icon/index.d.ts +508 -0
- package/fy-input-icon/index.mjs +134 -0
- package/fy-input-icon/style.css +1 -0
- package/fy-input-map/index.d.ts +530 -0
- package/fy-input-map/index.mjs +249 -0
- package/fy-input-map/style.css +1 -0
- package/fy-input-number/index.d.ts +530 -0
- package/fy-input-number/index.mjs +78 -0
- package/fy-input-table/index.d.ts +512 -0
- package/fy-input-table/index.mjs +167 -0
- package/fy-input-table/style.css +1 -0
- package/fy-input-tree/index.d.ts +615 -0
- package/fy-input-tree/index.mjs +266 -0
- package/fy-input-tree/style.css +1 -0
- package/fy-radio/index.d.ts +482 -0
- package/fy-radio/index.mjs +59 -0
- package/fy-radio/style.css +1 -0
- package/fy-rate/index.d.ts +552 -0
- package/fy-rate/index.mjs +91 -0
- package/fy-rate/style.css +1 -0
- package/fy-select/index.d.ts +588 -0
- package/fy-select/index.mjs +2 -0
- package/fy-select/style.css +1 -0
- package/fy-slider/index.d.ts +513 -0
- package/fy-slider/index.mjs +72 -0
- package/fy-switch/index.d.ts +493 -0
- package/fy-switch/index.mjs +71 -0
- package/fy-tabs/index.d.ts +21 -0
- package/fy-tabs/index.mjs +50 -0
- package/fy-time/index.d.ts +968 -0
- package/fy-time/index.mjs +85 -0
- package/fy-title/index.d.ts +488 -0
- package/fy-title/index.mjs +19 -0
- package/fy-title/style.css +1 -0
- package/fy-tree/index.d.ts +143 -0
- package/fy-tree/index.mjs +392 -0
- package/fy-tree/style.css +1 -0
- package/fy-u-editor/index.d.ts +117 -0
- package/fy-u-editor/index.mjs +2 -0
- package/fy-u-editor/style.css +1 -0
- package/fy-upload/index.d.ts +643 -0
- package/fy-upload/index.mjs +2 -0
- package/fy-upload/style.css +1 -0
- package/guide-steps/index.d.ts +32 -0
- package/guide-steps/index.mjs +78 -0
- package/guide-steps/style.css +1 -0
- package/helper/avue.d.ts +37 -0
- package/helper/avue.mjs +40 -0
- package/helper/dictionary.d.ts +29 -0
- package/helper/dictionary.mjs +97 -0
- package/helper/form-item.d.ts +17 -0
- package/helper/form-item.mjs +27 -0
- package/helper/input.d.ts +49 -0
- package/helper/input.mjs +2 -0
- package/helper/sub-table-plus.d.ts +98 -0
- package/helper/sub-table-plus.mjs +4 -0
- package/highlight-j-s/index.d.ts +19 -0
- package/highlight-j-s/index.mjs +52 -0
- package/highlight-j-s/style.css +1 -0
- package/icon-temp/index.d.ts +20 -0
- package/icon-temp/index.mjs +28 -0
- package/icon-temp/style.css +1 -0
- package/iframe-window/index.d.ts +19 -0
- package/iframe-window/index.mjs +38 -0
- package/iframe-window/style.css +1 -0
- package/image-cropper/index.d.ts +21 -0
- package/image-cropper/index.mjs +155 -0
- package/image-cropper/style.css +1 -0
- package/image-preview/index.d.ts +62 -0
- package/image-preview/index.mjs +202 -0
- package/image-preview/style.css +1 -0
- package/image-viewer/index.d.ts +26 -0
- package/image-viewer/index.mjs +71 -0
- package/image-viewer/style.css +1 -0
- package/index.css +2 -0
- package/index.d.ts +154 -36
- package/index.mjs +154 -62
- package/input-number-range/index.d.ts +42 -0
- package/input-number-range/index.mjs +78 -0
- package/input-number-range/style.css +1 -0
- package/json-editor/index.d.ts +7 -6
- package/json-editor/index.mjs +1 -1
- package/json-editor/style.css +1 -1
- package/keyboard/index.d.ts +65 -0
- package/keyboard/index.mjs +2 -0
- package/keyboard/style.css +1 -0
- package/loading-view/index.d.ts +66 -0
- package/loading-view/index.mjs +40 -0
- package/loading-view/style.css +1 -0
- package/monaco-editor/index.d.ts +127 -0
- package/monaco-editor/index.mjs +2 -0
- package/monaco-editor/style.css +1 -0
- package/name-avatar/index.d.ts +63 -0
- package/name-avatar/index.mjs +62 -0
- package/name-avatar/style.css +1 -0
- package/nav-bar/index.d.ts +24 -0
- package/nav-bar/index.mjs +36 -0
- package/nav-bar/style.css +1 -0
- package/nav-tab-panel/index.d.ts +30 -0
- package/nav-tab-panel/index.mjs +2 -0
- package/nav-tab-panel/style.css +1 -0
- package/package.json +30 -7
- package/page/index.d.ts +25 -0
- package/page/index.mjs +18 -0
- package/page/style.css +1 -0
- package/page-header/index.d.ts +39 -0
- package/page-header/index.mjs +26 -0
- package/page-header/style.css +1 -0
- package/page-index/index.d.ts +83 -0
- package/page-index/index.mjs +125 -0
- package/page-index/style.css +1 -0
- package/page-index-top/index.d.ts +39 -0
- package/page-index-top/index.mjs +87 -0
- package/page-skeleton/index.d.ts +43 -0
- package/page-skeleton/index.mjs +45 -0
- package/page-skeleton/style.css +1 -0
- package/page-skeleton-new/index.d.ts +63 -0
- package/page-skeleton-new/index.mjs +81 -0
- package/page-skeleton-new/style.css +1 -0
- package/pageable-table/index.d.ts +401 -0
- package/pageable-table/index.mjs +2 -0
- package/pageable-table/style.css +1 -0
- package/photo-swipe/index.d.ts +19 -0
- package/photo-swipe/index.mjs +2 -0
- package/props/cascader.d.ts +326 -0
- package/props/cascader.mjs +145 -0
- package/props/checkbox-group.d.ts +213 -0
- package/props/checkbox-group.mjs +83 -0
- package/props/checkbox.d.ts +205 -0
- package/props/checkbox.mjs +74 -0
- package/props/col.d.ts +74 -0
- package/props/col.mjs +32 -0
- package/props/common.d.ts +114 -0
- package/props/common.mjs +18 -0
- package/props/date.d.ts +336 -0
- package/props/date.mjs +158 -0
- package/props/form-item.d.ts +144 -0
- package/props/form-item.mjs +73 -0
- package/props/form.d.ts +157 -0
- package/props/form.mjs +89 -0
- package/props/image.d.ts +102 -0
- package/props/image.mjs +10 -0
- package/props/input-cron.d.ts +102 -0
- package/props/input-cron.mjs +16 -0
- package/props/input-number.d.ts +216 -0
- package/props/input-number.mjs +76 -0
- package/props/input-tag.d.ts +123 -0
- package/props/input-tag.mjs +33 -0
- package/props/input.d.ts +299 -0
- package/props/input.mjs +98 -0
- package/props/radio-group.d.ts +205 -0
- package/props/radio-group.mjs +84 -0
- package/props/rate.d.ts +211 -0
- package/props/rate.mjs +66 -0
- package/props/select.d.ts +450 -0
- package/props/select.mjs +218 -0
- package/props/slide.d.ts +235 -0
- package/props/slide.mjs +72 -0
- package/props/switch.d.ts +229 -0
- package/props/switch.mjs +80 -0
- package/props/text.d.ts +127 -0
- package/props/text.mjs +22 -0
- package/props/textarea.d.ts +266 -0
- package/props/textarea.mjs +82 -0
- package/props/time-select.d.ts +216 -0
- package/props/time-select.mjs +67 -0
- package/props/time.d.ts +304 -0
- package/props/time.mjs +138 -0
- package/props/tree-select-multiple.d.ts +324 -0
- package/props/tree-select-multiple.mjs +16 -0
- package/props/tree-select.d.ts +326 -0
- package/props/tree-select.mjs +25 -0
- package/props/tree.d.ts +76 -0
- package/props/tree.mjs +75 -0
- package/props/vue-tree-select.d.ts +458 -0
- package/props/vue-tree-select.mjs +213 -0
- package/resolver/components.d.ts +4 -0
- package/resolver/components.mjs +4 -0
- package/resolver/index.mjs +29 -0
- package/resolver/vite-optimize-deps-plugin.d.ts +9 -0
- package/resolver/vite-optimize-deps-plugin.mjs +13 -0
- package/sign-panel/index.d.ts +86 -0
- package/sign-panel/index.mjs +184 -0
- package/sign-panel/style.css +1 -0
- package/skeleton-panel/index.d.ts +35 -0
- package/skeleton-panel/index.mjs +39 -0
- package/skeleton-panel/style.css +1 -0
- package/split-pane/index.d.ts +107 -0
- package/split-pane/index.mjs +2 -0
- package/split-pane/style.css +1 -0
- package/stateful/index.d.ts +93 -0
- package/stateful/index.mjs +68 -0
- package/stateful/style.css +1 -0
- package/style/element-listeners.css +1 -0
- package/style/element-multi-instance.css +1 -0
- package/sub-table/index.d.ts +121 -0
- package/sub-table/index.mjs +2 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.d.ts +121 -0
- package/sub-table-plus/index.mjs +2 -0
- package/sub-table-plus/style.css +1 -0
- package/swiper/index.d.ts +28 -0
- package/swiper/index.mjs +127 -0
- package/swiper/style.css +1 -0
- package/table-column/index.d.ts +164 -0
- package/table-column/index.mjs +2 -0
- package/table-column/style.css +1 -0
- package/table-column-def/index.d.ts +168 -0
- package/table-column-def/index.mjs +11 -0
- package/table-view/index.d.ts +349 -1
- package/table-view/index.mjs +468 -6
- package/table-view/style.css +1 -0
- package/tag-render/index.d.ts +49 -0
- package/tag-render/index.mjs +87 -0
- package/tag-render/style.css +1 -0
- package/text-ellipsis/index.d.ts +112 -0
- package/text-ellipsis/index.mjs +125 -0
- package/text-ellipsis/style.css +1 -0
- package/toolbar/index.d.ts +134 -1
- package/toolbar/index.mjs +1 -8
- package/toolbar/style.css +1 -0
- package/toolbar-button/index.d.ts +189 -1
- package/toolbar-button/index.mjs +1 -8
- package/toolbar-button/style.css +1 -0
- package/vue/directives/chat-drag.d.ts +2 -0
- package/vue/directives/chat-drag.mjs +12 -0
- package/vue/directives/click-outside.d.ts +10 -0
- package/vue/directives/click-outside.mjs +36 -0
- package/vue/directives/dialog-drag.d.ts +2 -0
- package/vue/directives/dialog-drag.mjs +15 -0
- package/vue/directives/drag-move.d.ts +10 -0
- package/vue/directives/drag-move.mjs +27 -0
- package/vue/directives/fix-fixed-column-height.d.ts +7 -0
- package/vue/directives/fix-fixed-column-height.mjs +20 -0
- package/vue/directives/index.d.ts +7 -0
- package/vue/directives/index.mjs +8 -0
- package/vue/directives/resize.d.ts +2 -0
- package/vue/directives/resize.mjs +12 -0
- package/vue/directives/scroll-bottom.d.ts +5 -0
- package/vue/directives/scroll-bottom.mjs +6 -0
- package/vue/hooks/index.d.ts +3 -0
- package/vue/hooks/index.mjs +4 -0
- package/vue/hooks/useDictionary.d.ts +60 -0
- package/vue/hooks/useDictionary.mjs +15 -0
- package/vue/hooks/useEventBus.d.ts +1 -0
- package/vue/hooks/useEventBus.mjs +20 -0
- package/vue/hooks/useVisibilityChange.d.ts +4 -0
- package/vue/hooks/useVisibilityChange.mjs +14 -0
- package/vue/index.d.ts +3 -0
- package/vue/index.mjs +83 -0
- package/vue/mixin/bus.d.ts +5 -0
- package/vue/mixin/bus.mjs +33 -0
- package/vue/mixin/dialog.d.ts +38 -0
- package/vue/mixin/dialog.mjs +2 -0
- package/vue/mixin/index.d.ts +6 -0
- package/vue/mixin/index.mjs +7 -0
- package/vue/mixin/message.d.ts +2 -0
- package/vue/mixin/message.mjs +27 -0
- package/vue/mixin/multi-items.d.ts +43 -0
- package/vue/mixin/multi-items.mjs +70 -0
- package/vue/mixin/page.d.ts +28 -0
- package/vue/mixin/page.mjs +38 -0
- package/vue/mixin/resize-mixin.d.ts +15 -0
- package/vue/mixin/resize-mixin.mjs +24 -0
- package/vue-cron/index.d.ts +192 -0
- package/vue-cron/index.mjs +2 -0
- package/vue-cron/style.css +1 -0
- package/vue-qr-code/index.d.ts +48 -0
- package/vue-qr-code/index.mjs +32 -0
- package/vue-tags-input/index.d.ts +374 -0
- package/vue-tags-input/index.mjs +351 -0
- package/vue-tags-input/style.css +1 -0
- package/vue-tree-select/index.d.ts +1535 -0
- package/vue-tree-select/index.mjs +2 -0
- package/vue-tree-select/style.css +1 -0
- package/vue-video-player/index.d.ts +118 -0
- package/vue-video-player/index.mjs +137 -0
- package/vue-video-player/style.css +1 -0
- package/watermark/index.d.ts +98 -0
- package/watermark/index.mjs +2 -0
- package/watermark/style.css +1 -0
- package/web-types.json +1 -1
- package/x-input-tag/index.d.ts +3 -0
- package/x-input-tag/index.mjs +233 -0
- package/x-input-tag/style.css +1 -0
- package/year-calendar/index.d.ts +100 -0
- package/year-calendar/index.mjs +2 -0
- package/year-calendar/style.css +1 -0
- package/chunks/5J-OUxoQ.mjs +0 -149
- package/chunks/8R_Eq-Q1.mjs +0 -94
- package/chunks/9r0_sTqG.mjs +0 -23
- package/chunks/B0sH1q9x.mjs +0 -43
- package/chunks/B7c_xqYl.mjs +0 -47
- package/chunks/C-lymD_X.mjs +0 -167
- package/chunks/CBsIU5Nz.mjs +0 -54
- package/chunks/CnmwUrOm.mjs +0 -35
- package/chunks/CoU4aVFm.mjs +0 -28
- package/chunks/CtXLogq9.mjs +0 -24239
- package/chunks/D6lrfzE7.mjs +0 -28
- package/chunks/DDKk9iwV.mjs +0 -92
- package/chunks/DF-zPBqJ.mjs +0 -32
- package/chunks/DPkBzek6.mjs +0 -28
- package/chunks/DQS-CovH.mjs +0 -74
- package/chunks/DuPXiRRS.mjs +0 -47
- package/chunks/EReAG82c.mjs +0 -4
- package/chunks/MyHLh1cw.mjs +0 -32
- package/chunks/TVsbSR1G.mjs +0 -35
- package/chunks/nNDPU9_n.mjs +0 -36
- package/constants.d.ts +0 -7
- package/constants.mjs +0 -4
- package/form-check-box-group/index.d.ts +0 -119
- package/form-check-box-group/index.mjs +0 -2
- package/form-item-x/index.d.ts +0 -75
- package/form-item-x/index.mjs +0 -2
- package/input/style.css +0 -1
- package/resolver.mjs +0 -81
- /package/{resolver.d.ts → resolver/index.d.ts} +0 -0
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { t as e } from "./B1MSrc6f.mjs";
|
|
2
|
+
import { t } from "./B24kbvxB.mjs";
|
|
3
|
+
import { t as n } from "./DTeHffqJ.mjs";
|
|
4
|
+
import { ElForm as r, ElFormItem as i, ElInput as a, ElMessage as o, ElTable as s, ElTableColumn as c } from "element-plus/es";
|
|
5
|
+
import "element-plus/es/components/base/style/css";
|
|
6
|
+
import "element-plus/es/components/input/style/css";
|
|
7
|
+
import { createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, openBlock as p, withCtx as m, withModifiers as h } from "vue";
|
|
8
|
+
import "element-plus/es/components/message/style/css";
|
|
9
|
+
import "element-plus/es/components/table/style/css";
|
|
10
|
+
import "element-plus/es/components/table-column/style/css";
|
|
11
|
+
import "element-plus/es/components/form/style/css";
|
|
12
|
+
import "element-plus/es/components/form-item/style/css";
|
|
13
|
+
//#region src/components/bpmn-process-designer/components/penal/signal-message/SignalAndMessage.vue
|
|
14
|
+
var g = {
|
|
15
|
+
name: "SignalAndMessage",
|
|
16
|
+
props: { bpmnInstances: Object },
|
|
17
|
+
data() {
|
|
18
|
+
return {
|
|
19
|
+
signalList: [],
|
|
20
|
+
messageList: [],
|
|
21
|
+
modelVisible: !1,
|
|
22
|
+
modelType: "",
|
|
23
|
+
modelObjectForm: {}
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
computed: { modelConfig() {
|
|
27
|
+
return this.modelType === "message" ? {
|
|
28
|
+
title: "创建消息",
|
|
29
|
+
idLabel: "消息ID",
|
|
30
|
+
nameLabel: "消息名称"
|
|
31
|
+
} : {
|
|
32
|
+
title: "创建信号",
|
|
33
|
+
idLabel: "信号ID",
|
|
34
|
+
nameLabel: "信号名称"
|
|
35
|
+
};
|
|
36
|
+
} },
|
|
37
|
+
mounted() {
|
|
38
|
+
this.initDataList();
|
|
39
|
+
},
|
|
40
|
+
methods: {
|
|
41
|
+
initDataList() {
|
|
42
|
+
this.rootElements = this.bpmnInstances.modeler.getDefinitions().rootElements, this.messageIdMap = {}, this.signalIdMap = {}, this.messageList = [], this.signalList = [], this.rootElements.forEach((e) => {
|
|
43
|
+
e.$type === "bpmn:Message" && (this.messageIdMap[e.id] = !0, this.messageList.push({ ...e })), e.$type === "bpmn:Signal" && (this.signalIdMap[e.id] = !0, this.signalList.push({ ...e }));
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
openModel(e) {
|
|
47
|
+
this.modelType = e, this.modelObjectForm = {}, this.modelVisible = !0;
|
|
48
|
+
},
|
|
49
|
+
addNewObject() {
|
|
50
|
+
if (this.modelType === "message") {
|
|
51
|
+
if (this.messageIdMap[this.modelObjectForm.id]) return o.error("该消息已存在,请修改id后重新保存");
|
|
52
|
+
let e = this.bpmnInstances.moddle.create("bpmn:Message", this.modelObjectForm);
|
|
53
|
+
this.rootElements.push(e);
|
|
54
|
+
} else {
|
|
55
|
+
if (this.signalIdMap[this.modelObjectForm.id]) return o.error("该信号已存在,请修改id后重新保存");
|
|
56
|
+
let e = this.bpmnInstances.moddle.create("bpmn:Signal", this.modelObjectForm);
|
|
57
|
+
this.rootElements.push(e);
|
|
58
|
+
}
|
|
59
|
+
this.modelVisible = !1, this.initDataList();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}, _ = { class: "panel-tab__content" }, v = { class: "panel-tab__content--title" }, y = {
|
|
63
|
+
class: "panel-tab__content--title",
|
|
64
|
+
style: {
|
|
65
|
+
"margin-top": "8px",
|
|
66
|
+
"padding-top": "8px",
|
|
67
|
+
"border-top": "1px solid #eee"
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
function b(e, o, g, b, x, S) {
|
|
71
|
+
let C = n, w = c, T = s, E = a, D = i, O = r, k = t;
|
|
72
|
+
return p(), l("div", _, [
|
|
73
|
+
u("div", v, [o[8] || (o[8] = u("span", null, [u("i", {
|
|
74
|
+
class: "el-icon-menu",
|
|
75
|
+
style: {
|
|
76
|
+
"margin-right": "8px",
|
|
77
|
+
color: "#555"
|
|
78
|
+
}
|
|
79
|
+
}), d(" 消息列表 ")], -1)), f(C, {
|
|
80
|
+
type: "primary",
|
|
81
|
+
icon: "el-icon-plus",
|
|
82
|
+
onClick: o[0] || (o[0] = (e) => S.openModel("message"))
|
|
83
|
+
}, {
|
|
84
|
+
default: m(() => [...o[7] || (o[7] = [d("创建新消息", -1)])]),
|
|
85
|
+
_: 1
|
|
86
|
+
})]),
|
|
87
|
+
f(T, {
|
|
88
|
+
data: x.messageList,
|
|
89
|
+
border: ""
|
|
90
|
+
}, {
|
|
91
|
+
default: m(() => [
|
|
92
|
+
f(w, {
|
|
93
|
+
type: "index",
|
|
94
|
+
label: "序号",
|
|
95
|
+
width: "60px"
|
|
96
|
+
}),
|
|
97
|
+
f(w, {
|
|
98
|
+
label: "消息ID",
|
|
99
|
+
prop: "id",
|
|
100
|
+
"max-width": "300px",
|
|
101
|
+
"show-overflow-tooltip": ""
|
|
102
|
+
}),
|
|
103
|
+
f(w, {
|
|
104
|
+
label: "消息名称",
|
|
105
|
+
prop: "name",
|
|
106
|
+
"max-width": "300px",
|
|
107
|
+
"show-overflow-tooltip": ""
|
|
108
|
+
})
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
}, 8, ["data"]),
|
|
112
|
+
u("div", y, [o[10] || (o[10] = u("span", null, [u("i", {
|
|
113
|
+
class: "el-icon-menu",
|
|
114
|
+
style: {
|
|
115
|
+
"margin-right": "8px",
|
|
116
|
+
color: "#555"
|
|
117
|
+
}
|
|
118
|
+
}), d(" 信号列表 ")], -1)), f(C, {
|
|
119
|
+
type: "primary",
|
|
120
|
+
icon: "el-icon-plus",
|
|
121
|
+
onClick: o[1] || (o[1] = (e) => S.openModel("signal"))
|
|
122
|
+
}, {
|
|
123
|
+
default: m(() => [...o[9] || (o[9] = [d("创建新信号", -1)])]),
|
|
124
|
+
_: 1
|
|
125
|
+
})]),
|
|
126
|
+
f(T, {
|
|
127
|
+
data: x.signalList,
|
|
128
|
+
border: ""
|
|
129
|
+
}, {
|
|
130
|
+
default: m(() => [
|
|
131
|
+
f(w, {
|
|
132
|
+
type: "index",
|
|
133
|
+
label: "序号",
|
|
134
|
+
width: "60px"
|
|
135
|
+
}),
|
|
136
|
+
f(w, {
|
|
137
|
+
label: "信号ID",
|
|
138
|
+
prop: "id",
|
|
139
|
+
"max-width": "300px",
|
|
140
|
+
"show-overflow-tooltip": ""
|
|
141
|
+
}),
|
|
142
|
+
f(w, {
|
|
143
|
+
label: "信号名称",
|
|
144
|
+
prop: "name",
|
|
145
|
+
"max-width": "300px",
|
|
146
|
+
"show-overflow-tooltip": ""
|
|
147
|
+
})
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 8, ["data"]),
|
|
151
|
+
f(k, {
|
|
152
|
+
modelValue: x.modelVisible,
|
|
153
|
+
"onUpdate:modelValue": o[6] || (o[6] = (e) => x.modelVisible = e),
|
|
154
|
+
class: "flow-dialog",
|
|
155
|
+
title: S.modelConfig.title,
|
|
156
|
+
"close-on-click-modal": !1,
|
|
157
|
+
width: "400px",
|
|
158
|
+
"append-to-body": "",
|
|
159
|
+
"destroy-on-close": ""
|
|
160
|
+
}, {
|
|
161
|
+
footer: m(() => [f(C, { onClick: o[5] || (o[5] = (e) => x.modelVisible = !1) }, {
|
|
162
|
+
default: m(() => [...o[11] || (o[11] = [d("取 消", -1)])]),
|
|
163
|
+
_: 1
|
|
164
|
+
}), f(C, {
|
|
165
|
+
type: "primary",
|
|
166
|
+
onClick: S.addNewObject
|
|
167
|
+
}, {
|
|
168
|
+
default: m(() => [...o[12] || (o[12] = [d("保 存", -1)])]),
|
|
169
|
+
_: 1
|
|
170
|
+
}, 8, ["onClick"])]),
|
|
171
|
+
default: m(() => [f(O, {
|
|
172
|
+
model: x.modelObjectForm,
|
|
173
|
+
"label-width": "90px",
|
|
174
|
+
onSubmit: o[4] || (o[4] = h(() => {}, ["prevent"]))
|
|
175
|
+
}, {
|
|
176
|
+
default: m(() => [f(D, { label: S.modelConfig.idLabel }, {
|
|
177
|
+
default: m(() => [f(E, {
|
|
178
|
+
modelValue: x.modelObjectForm.id,
|
|
179
|
+
"onUpdate:modelValue": o[2] || (o[2] = (e) => x.modelObjectForm.id = e),
|
|
180
|
+
clearable: ""
|
|
181
|
+
}, null, 8, ["modelValue"])]),
|
|
182
|
+
_: 1
|
|
183
|
+
}, 8, ["label"]), f(D, { label: S.modelConfig.nameLabel }, {
|
|
184
|
+
default: m(() => [f(E, {
|
|
185
|
+
modelValue: x.modelObjectForm.name,
|
|
186
|
+
"onUpdate:modelValue": o[3] || (o[3] = (e) => x.modelObjectForm.name = e),
|
|
187
|
+
clearable: ""
|
|
188
|
+
}, null, 8, ["modelValue"])]),
|
|
189
|
+
_: 1
|
|
190
|
+
}, 8, ["label"])]),
|
|
191
|
+
_: 1
|
|
192
|
+
}, 8, ["model"])]),
|
|
193
|
+
_: 1
|
|
194
|
+
}, 8, ["modelValue", "title"])
|
|
195
|
+
]);
|
|
196
|
+
}
|
|
197
|
+
var x = /* @__PURE__ */ e(g, [["render", b]]);
|
|
198
|
+
//#endregion
|
|
199
|
+
export { x as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { n as e, o as t } from "./_7MDfW_y.mjs";
|
|
2
|
+
import { allProps as n, predicate as r } from "../props/rate.mjs";
|
|
3
|
+
import { ElRate as i } from "element-plus/es";
|
|
4
|
+
import "element-plus/es/components/base/style/css";
|
|
5
|
+
import { createVNode as a, mergeProps as o, useModel as s } from "vue";
|
|
6
|
+
import "element-plus/es/components/rate/style/css";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/form/FormRate.vue
|
|
9
|
+
var c = {
|
|
10
|
+
name: "FormRate",
|
|
11
|
+
inheritAttrs: !1,
|
|
12
|
+
props: { ...n },
|
|
13
|
+
emits: { ...e },
|
|
14
|
+
setup(e, { emit: n, slots: c, attrs: l }) {
|
|
15
|
+
let u = s(e, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = t(e, {
|
|
16
|
+
emit: n,
|
|
17
|
+
slots: c,
|
|
18
|
+
attrs: l,
|
|
19
|
+
predicate: r
|
|
20
|
+
});
|
|
21
|
+
return () => d({ vNodes: a(i, o(p.value, m.value, {
|
|
22
|
+
modelValue: u.value,
|
|
23
|
+
"onUpdate:modelValue": (e) => u.value = e,
|
|
24
|
+
disabled: f.value
|
|
25
|
+
}), null) });
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { c as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { n as e, o as t } from "./_7MDfW_y.mjs";
|
|
2
|
+
import n from "../x-input-tag/index.mjs";
|
|
3
|
+
import { allProps as r, predicate as i } from "../props/input-tag.mjs";
|
|
4
|
+
import { createVNode as a, mergeProps as o } from "vue";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/form/FormInputTag.vue
|
|
7
|
+
var s = {
|
|
8
|
+
name: "FormInputTag",
|
|
9
|
+
inheritAttrs: !1,
|
|
10
|
+
props: { ...r },
|
|
11
|
+
emits: { ...e },
|
|
12
|
+
setup(e, { emit: r, slots: s, attrs: c }) {
|
|
13
|
+
let { emitInput: l, render: u, placeholder: d, disabled: f, listeners: p, inputProps: m } = t(e, {
|
|
14
|
+
emit: r,
|
|
15
|
+
slots: s,
|
|
16
|
+
attrs: c,
|
|
17
|
+
predicate: i,
|
|
18
|
+
block: e.block === void 0 ? !0 : e.block
|
|
19
|
+
});
|
|
20
|
+
return () => u({ vNodes: a(n, o(p.value, m.value, {
|
|
21
|
+
style: "width: 100%",
|
|
22
|
+
modelValue: e.modelValue,
|
|
23
|
+
disabled: f.value,
|
|
24
|
+
"onUpdate:modelValue": l,
|
|
25
|
+
placeholder: d.value
|
|
26
|
+
}), null) });
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { s as t };
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { h as e } from "vue";
|
|
2
|
+
import { NOOP as t } from "@web-utils/core";
|
|
3
|
+
import * as n from "monaco-editor/esm/vs/editor/editor.api";
|
|
4
|
+
import "../monaco-editor/style.css";
|
|
5
|
+
//#region src/components/avue/monaco-editor/json-beautifier.js
|
|
6
|
+
var r = /[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, i = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, a, o, s = {
|
|
7
|
+
"\b": "\\b",
|
|
8
|
+
" ": "\\t",
|
|
9
|
+
"\n": "\\n",
|
|
10
|
+
"\f": "\\f",
|
|
11
|
+
"\r": "\\r",
|
|
12
|
+
"\"": "\\\"",
|
|
13
|
+
"'": "\\'",
|
|
14
|
+
"\\": "\\\\"
|
|
15
|
+
}, c;
|
|
16
|
+
function l(e, t = {}) {
|
|
17
|
+
let n = t.space || 2, r = t.dropQuotesOnKeys !== !1, i = t.dropQuotesOnNumbers || !1, a = t.inlineShortArrays || !1, o = t.inlineShortArraysDepth || 1, s = t.quoteType || "single", c = t.minify || !1;
|
|
18
|
+
i && u(e);
|
|
19
|
+
let l = p(e, null, c ? void 0 : n, r, s);
|
|
20
|
+
if (a && !c) {
|
|
21
|
+
let e = f(l);
|
|
22
|
+
if (o > 1) for (let t = 1; t < o && (l = e, e = f(l), e !== l); t++);
|
|
23
|
+
l = e;
|
|
24
|
+
}
|
|
25
|
+
return l;
|
|
26
|
+
}
|
|
27
|
+
function u(e) {
|
|
28
|
+
if (!d(e)) return;
|
|
29
|
+
let t = Object.keys(e);
|
|
30
|
+
t && t.forEach(function(t) {
|
|
31
|
+
let n = e[t];
|
|
32
|
+
if (typeof n == "string") {
|
|
33
|
+
let r = n - 0;
|
|
34
|
+
e[t] = isNaN(r) ? n : r;
|
|
35
|
+
} else (d(n) || Array.isArray(n)) && u(n);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function d(e) {
|
|
39
|
+
return e && typeof e == "object";
|
|
40
|
+
}
|
|
41
|
+
function f(e, t) {
|
|
42
|
+
if (t || (t = 80), typeof t != "number" || t < 20) throw Error(`Invalid width '${t}'. Expecting number equal or larger than 20.`);
|
|
43
|
+
let n = e.split("\n"), r = 0, i = null, a = [];
|
|
44
|
+
for (; r < n.length;) {
|
|
45
|
+
let e = !!n[r].match(/\[/), o = !!n[r].match(/\],?/);
|
|
46
|
+
if (e && !o) a = [n[r]], i = r;
|
|
47
|
+
else if (o && !e && i) {
|
|
48
|
+
a.push((n[r] || "").trim());
|
|
49
|
+
let e = a.join(" ");
|
|
50
|
+
e.length < t && (n.splice(i, r - i + 1, e), r = i), i = null, a = [];
|
|
51
|
+
} else i && a.push((n[r] || "").trim());
|
|
52
|
+
r += 1;
|
|
53
|
+
}
|
|
54
|
+
return n.join("\n");
|
|
55
|
+
}
|
|
56
|
+
function p(e, t, n, r, i) {
|
|
57
|
+
let s;
|
|
58
|
+
if (a = "", o = "", typeof n == "number") for (s = 0; s < n; s += 1) o += " ";
|
|
59
|
+
else typeof n == "string" && (o = n);
|
|
60
|
+
if (c = t, t && typeof t != "function" && (typeof t != "object" || typeof t.length != "number")) throw Error("JSON.stringify");
|
|
61
|
+
return m("", { "": e }, r, i);
|
|
62
|
+
}
|
|
63
|
+
function m(e, t, n, r) {
|
|
64
|
+
let i, s, l, u, d = a, f, p = t[e];
|
|
65
|
+
switch (p && typeof p == "object" && typeof p.toJSON == "function" && (p = p.toJSON(e)), typeof c == "function" && (p = c.call(t, e, p)), typeof p) {
|
|
66
|
+
case "function": return p;
|
|
67
|
+
case "string": return h(p, r);
|
|
68
|
+
case "number": return isFinite(p) ? String(p) : "null";
|
|
69
|
+
case "boolean":
|
|
70
|
+
case "null": return String(p);
|
|
71
|
+
case "object":
|
|
72
|
+
if (!p) return "null";
|
|
73
|
+
if (a += o, f = [], Object.prototype.toString.apply(p) === "[object Array]") {
|
|
74
|
+
for (u = p.length, i = 0; i < u; i += 1) f[i] = m(i, p, n, r) || "null";
|
|
75
|
+
return l = f.length === 0 ? "[]" : a ? `[\n${a}${f.join(`,\n${a}`)}\n${d}]` : `[${f.join(",")}]`, a = d, l;
|
|
76
|
+
}
|
|
77
|
+
if (c && typeof c == "object") for (u = c.length, i = 0; i < u; i += 1) typeof c[i] == "string" && (s = c[i], l = m(s, p, n, r), l && f.push((n ? g(s, r) : h(s, r)) + (a ? ": " : ":") + l));
|
|
78
|
+
else for (s in p) Object.prototype.hasOwnProperty.call(p, s) && (l = m(s, p, n, r), l && f.push((n ? g(s, r) : h(s, r)) + (a ? ": " : ":") + l));
|
|
79
|
+
return l = f.length === 0 ? "{}" : a ? `{\n${a}${f.join(`,\n${a}`)}\n${d}}` : `{${f.join(",")}}`, a = d, l;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function h(e, t) {
|
|
83
|
+
r.lastIndex = 0;
|
|
84
|
+
let n = "\"";
|
|
85
|
+
return t === "single" && (n = "'"), r.test(e) ? n + e.replace(r, function(e) {
|
|
86
|
+
let t = s[e];
|
|
87
|
+
return typeof t == "string" ? t : `\\u${`0000${e.charCodeAt(0).toString(16)}`.slice(-4)}`;
|
|
88
|
+
}) + n : n + e + n;
|
|
89
|
+
}
|
|
90
|
+
function g(e, t) {
|
|
91
|
+
return i.test(e) ? e : h(e, t);
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/components/avue/monaco-editor/MonacoEditor.vue
|
|
95
|
+
var _ = {
|
|
96
|
+
name: "MonacoEditor",
|
|
97
|
+
props: {
|
|
98
|
+
diffEditor: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: !1
|
|
101
|
+
},
|
|
102
|
+
width: {
|
|
103
|
+
type: [String, Number],
|
|
104
|
+
default: "100%"
|
|
105
|
+
},
|
|
106
|
+
height: {
|
|
107
|
+
type: [String, Number],
|
|
108
|
+
default: "100%"
|
|
109
|
+
},
|
|
110
|
+
original: String,
|
|
111
|
+
modelValue: [String, Object],
|
|
112
|
+
language: {
|
|
113
|
+
type: String,
|
|
114
|
+
default: "javascript"
|
|
115
|
+
},
|
|
116
|
+
theme: {
|
|
117
|
+
type: String,
|
|
118
|
+
default: "vs"
|
|
119
|
+
},
|
|
120
|
+
readOnly: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
default: !1
|
|
123
|
+
},
|
|
124
|
+
options: {
|
|
125
|
+
type: Object,
|
|
126
|
+
default() {
|
|
127
|
+
return {};
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
editorMounted: {
|
|
131
|
+
type: Function,
|
|
132
|
+
default: t
|
|
133
|
+
},
|
|
134
|
+
editorBeforeMount: {
|
|
135
|
+
type: Function,
|
|
136
|
+
default: t
|
|
137
|
+
},
|
|
138
|
+
keyIndex: { type: String }
|
|
139
|
+
},
|
|
140
|
+
emits: ["change", "update:modelValue"],
|
|
141
|
+
data() {
|
|
142
|
+
return { fullscreen: !1 };
|
|
143
|
+
},
|
|
144
|
+
computed: { style() {
|
|
145
|
+
return this.fullscreen ? {} : {
|
|
146
|
+
width: /^\d+$/.test(this.width) ? `${this.width}px` : this.width,
|
|
147
|
+
height: /^\d+$/.test(this.height) ? `${this.height}px` : this.height,
|
|
148
|
+
position: "relative"
|
|
149
|
+
};
|
|
150
|
+
} },
|
|
151
|
+
watch: {
|
|
152
|
+
options: {
|
|
153
|
+
deep: !0,
|
|
154
|
+
handler(e) {
|
|
155
|
+
var t;
|
|
156
|
+
(t = this.editor) == null || t.updateOptions(e);
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
keyIndex() {
|
|
160
|
+
let e = this.modelValue;
|
|
161
|
+
typeof e == "object" && (e = l(e)), this.editor && e !== this._getValue() && this._setValue(e);
|
|
162
|
+
},
|
|
163
|
+
language() {
|
|
164
|
+
if (this.editor) if (this.diffEditor) {
|
|
165
|
+
let { original: e, modified: t } = this.editor.getModel();
|
|
166
|
+
n.editor.setModelLanguage(e, this.language), n.editor.setModelLanguage(t, this.language);
|
|
167
|
+
} else n.editor.setModelLanguage(this.editor.getModel(), this.language);
|
|
168
|
+
},
|
|
169
|
+
theme() {
|
|
170
|
+
this.editor && n.editor.setTheme(this.theme);
|
|
171
|
+
},
|
|
172
|
+
style() {
|
|
173
|
+
this.$nextTick(() => {
|
|
174
|
+
var e;
|
|
175
|
+
(e = this.editor) == null || e.layout();
|
|
176
|
+
});
|
|
177
|
+
},
|
|
178
|
+
modelValue(e) {
|
|
179
|
+
this.editor && e !== this._getValue() && this._setValue(e);
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
mounted() {
|
|
183
|
+
this.initMonaco(), window.addEventListener("resize", this.onResize);
|
|
184
|
+
},
|
|
185
|
+
beforeUnmount() {
|
|
186
|
+
var e;
|
|
187
|
+
window.removeEventListener("resize", this.onResize), (e = this.editor) == null || e.dispose();
|
|
188
|
+
},
|
|
189
|
+
methods: {
|
|
190
|
+
initMonaco() {
|
|
191
|
+
let { modelValue: e, language: t, theme: r, readOnly: i, options: a } = this;
|
|
192
|
+
Object.assign(a, this._editorBeforeMount()), this.editor = n.editor[this.diffEditor ? "createDiffEditor" : "create"](this.$el, {
|
|
193
|
+
value: typeof e == "string" ? e : l(e),
|
|
194
|
+
language: t,
|
|
195
|
+
theme: r,
|
|
196
|
+
readOnly: i,
|
|
197
|
+
...a
|
|
198
|
+
}), this.diffEditor && this._setModel(this.modelValue, this.original), this._editorMounted(this.editor), this.editor.addAction({
|
|
199
|
+
id: "f1",
|
|
200
|
+
label: "full screen",
|
|
201
|
+
keybindings: [n.KeyCode.F1],
|
|
202
|
+
run: (e) => {
|
|
203
|
+
this.toggleFullScreen();
|
|
204
|
+
}
|
|
205
|
+
}), this.editor.addAction({
|
|
206
|
+
id: "escape",
|
|
207
|
+
label: "exit full screen",
|
|
208
|
+
keybindings: [n.KeyCode.Escape],
|
|
209
|
+
run: (e) => {
|
|
210
|
+
this.fullscreen = !1;
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
},
|
|
214
|
+
toggleFullScreen() {
|
|
215
|
+
this.fullscreen = !this.fullscreen;
|
|
216
|
+
},
|
|
217
|
+
async onResize() {
|
|
218
|
+
await this.$nextTick();
|
|
219
|
+
let e = this.$el;
|
|
220
|
+
this.editor.layout({
|
|
221
|
+
width: e.clientWidth,
|
|
222
|
+
height: e.clientHeight
|
|
223
|
+
});
|
|
224
|
+
},
|
|
225
|
+
_handleFullScreen() {
|
|
226
|
+
this.isMaximum ? this.minEditor() : this.maxEditor();
|
|
227
|
+
},
|
|
228
|
+
maxEditor() {
|
|
229
|
+
this.isMaximum = !0;
|
|
230
|
+
let e = this.$el;
|
|
231
|
+
this.originSize = {
|
|
232
|
+
width: e.clientWidth,
|
|
233
|
+
height: e.clientHeight
|
|
234
|
+
}, e.classList.add("editor-fullscreen"), this.editor.layout({
|
|
235
|
+
height: document.body.clientHeight,
|
|
236
|
+
width: document.body.clientWidth
|
|
237
|
+
}), document.addEventListener("keyup", this.handleEsc);
|
|
238
|
+
},
|
|
239
|
+
handleEsc(e) {
|
|
240
|
+
e.keyCode === 27 && this.minEditor();
|
|
241
|
+
},
|
|
242
|
+
minEditor() {
|
|
243
|
+
this.isMaximum = !1, this.$el.classList.remove("editor-fullscreen"), this.editor.layout({
|
|
244
|
+
height: this.originSize.height,
|
|
245
|
+
width: this.originSize.width
|
|
246
|
+
}), document.removeEventListener("keyup", this.handleEsc);
|
|
247
|
+
},
|
|
248
|
+
_getEditor() {
|
|
249
|
+
return this.editor ? this.diffEditor ? this.editor.modifiedEditor : this.editor : null;
|
|
250
|
+
},
|
|
251
|
+
_setModel(e, t) {
|
|
252
|
+
let { language: r } = this, i = n.editor.createModel(t, r), a = n.editor.createModel(e, r);
|
|
253
|
+
this.editor.setModel({
|
|
254
|
+
original: i,
|
|
255
|
+
modified: a
|
|
256
|
+
});
|
|
257
|
+
},
|
|
258
|
+
_setValue(e) {
|
|
259
|
+
let t = this._getEditor();
|
|
260
|
+
if (t) return t.setValue(e);
|
|
261
|
+
},
|
|
262
|
+
_getValue() {
|
|
263
|
+
let e = this._getEditor();
|
|
264
|
+
return e ? e.getValue() : "";
|
|
265
|
+
},
|
|
266
|
+
_editorBeforeMount() {
|
|
267
|
+
return this.editorBeforeMount(n) || {};
|
|
268
|
+
},
|
|
269
|
+
_editorMounted(e) {
|
|
270
|
+
this.editorMounted(e, n), this.diffEditor ? e.onDidUpdateDiff((e) => {
|
|
271
|
+
let t = this._getValue();
|
|
272
|
+
this._emitChange(t, e);
|
|
273
|
+
}) : e.onDidChangeModelContent((e) => {
|
|
274
|
+
let t = this._getValue();
|
|
275
|
+
this._emitChange(t, e);
|
|
276
|
+
});
|
|
277
|
+
},
|
|
278
|
+
_emitChange(e, t) {
|
|
279
|
+
this.$emit("change", e, t), this.$emit("update:modelValue", e);
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
render() {
|
|
283
|
+
let t = this.options.fullScreen;
|
|
284
|
+
return e("div", {
|
|
285
|
+
class: ["monaco_editor_container", this.fullscreen ? "fullscreen" : ""],
|
|
286
|
+
style: this.style
|
|
287
|
+
}, [t ? e("i", {
|
|
288
|
+
class: "el-icon-full-screen",
|
|
289
|
+
style: {
|
|
290
|
+
width: "1.2em",
|
|
291
|
+
height: "1.2em",
|
|
292
|
+
position: "absolute",
|
|
293
|
+
left: "0px",
|
|
294
|
+
top: "0px",
|
|
295
|
+
zIndex: "1",
|
|
296
|
+
cursor: "pointer"
|
|
297
|
+
},
|
|
298
|
+
on: { click: this._handleFullScreen }
|
|
299
|
+
}) : ""]);
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
//#endregion
|
|
303
|
+
export { _ as t };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { ElMessage as e } from "element-plus/es";
|
|
2
|
+
import "element-plus/es/components/base/style/css";
|
|
3
|
+
import { Comment as t, Fragment as n, computed as r, useAttrs as i } from "vue";
|
|
4
|
+
import { camelize as a, capitalize as o, copy as s, hyphenate as c, isArray as l, isBlank as u, isFunction as d, isString as f, uncapitalize as p } from "@web-utils/core";
|
|
5
|
+
import "element-plus/es/components/message/style/css";
|
|
6
|
+
//#region src/utils/index.ts
|
|
7
|
+
var m = (e, t, n, r, i = !0) => {
|
|
8
|
+
let a = {};
|
|
9
|
+
if (t) for (let n in e) t(n) && (a[n] = e[n]);
|
|
10
|
+
return i && n && n.forEach((e) => {
|
|
11
|
+
a[`on${o(e)}`] = (...t) => r(e, ...t);
|
|
12
|
+
}), a;
|
|
13
|
+
}, h = (e, t) => r(() => {
|
|
14
|
+
let n = {};
|
|
15
|
+
if (t) for (let r in e) t(r) && (n[r] = e[r]);
|
|
16
|
+
return n;
|
|
17
|
+
}), g = ({ removeOn: e = !1, include: t, exclude: n } = {}) => {
|
|
18
|
+
let o = i();
|
|
19
|
+
return r(() => {
|
|
20
|
+
let r = {}, i = {}, s = {}, c = !1;
|
|
21
|
+
(t || n) && (c = !0), t == null || t.forEach((e) => {
|
|
22
|
+
i[a(e)] = !0;
|
|
23
|
+
}), n == null || n.forEach((e) => {
|
|
24
|
+
s[a(e)] = !0;
|
|
25
|
+
});
|
|
26
|
+
for (let a in o) if (a.startsWith("on")) {
|
|
27
|
+
let l = p(a.replace(/^on/, ""));
|
|
28
|
+
if (c && (t && i[l] !== !0 || n && s[l] === !0)) continue;
|
|
29
|
+
e ? r[l] = o[a] : r[a] = o[a];
|
|
30
|
+
}
|
|
31
|
+
return r;
|
|
32
|
+
});
|
|
33
|
+
}, _ = (e, { predicate: t, removeOn: n }) => ({
|
|
34
|
+
listeners: g({ removeOn: n }),
|
|
35
|
+
autoBindProps: h(e, t)
|
|
36
|
+
}), v = (e, { withOn: t = !1 } = {}) => {
|
|
37
|
+
let n = {};
|
|
38
|
+
for (let r in e) r.startsWith("on") && (t ? n[r] = e[r] : n[p(r.replace(/^on/, ""))] = e[r]);
|
|
39
|
+
return n;
|
|
40
|
+
}, y = (e, t = "id", n = "label") => {
|
|
41
|
+
let r = [];
|
|
42
|
+
function i(e, a) {
|
|
43
|
+
if (!e) return;
|
|
44
|
+
let o = [...a, {
|
|
45
|
+
[t]: e[t],
|
|
46
|
+
[n]: e[n]
|
|
47
|
+
}];
|
|
48
|
+
if (!e.children || e.children.length === 0) {
|
|
49
|
+
r.push(o);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
e.children.forEach((e) => {
|
|
53
|
+
i(e, o);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
return e.forEach((e) => i(e, [])), r;
|
|
57
|
+
}, b = (e, t = "id", n = "label") => {
|
|
58
|
+
let r = [];
|
|
59
|
+
return y(e).forEach((e) => {
|
|
60
|
+
let i = [], a = [];
|
|
61
|
+
for (let r = 0; r < e.length; r++) i.push(e[r][t]), a.push(e[r][n]);
|
|
62
|
+
r.push({
|
|
63
|
+
value: i.join("/"),
|
|
64
|
+
label: a.join("/")
|
|
65
|
+
});
|
|
66
|
+
}), r;
|
|
67
|
+
}, x = (e, t = "id", n = "label") => {
|
|
68
|
+
let r = {};
|
|
69
|
+
return y(e).forEach((e) => {
|
|
70
|
+
let i = [], a = [];
|
|
71
|
+
for (let r = 0; r < e.length; r++) i.push(e[r][t]), a.push(e[r][n]);
|
|
72
|
+
r[i.join("/")] = {
|
|
73
|
+
value: i.join("/"),
|
|
74
|
+
label: a.join("/")
|
|
75
|
+
};
|
|
76
|
+
}), r;
|
|
77
|
+
};
|
|
78
|
+
function S(t) {
|
|
79
|
+
s(t, () => e.success({
|
|
80
|
+
duration: 1e3,
|
|
81
|
+
message: "复制成功!",
|
|
82
|
+
type: "success"
|
|
83
|
+
}), () => e.error({
|
|
84
|
+
duration: 1e3,
|
|
85
|
+
message: "复制失败!",
|
|
86
|
+
type: "error"
|
|
87
|
+
}));
|
|
88
|
+
}
|
|
89
|
+
var C = (e) => {
|
|
90
|
+
let t = [];
|
|
91
|
+
return e && (l(e) ? e.forEach((e) => {
|
|
92
|
+
l(e) ? t.push(...C(e)) : e && t.push(e);
|
|
93
|
+
}) : e && t.push(e)), t;
|
|
94
|
+
}, w = (e = "", t = {}) => {
|
|
95
|
+
let n = t || {};
|
|
96
|
+
return (e || "").replace(/{(.*?)}/g, (e, t) => {
|
|
97
|
+
if (t.indexOf(":")) {
|
|
98
|
+
let [e, r] = t.split(":");
|
|
99
|
+
return n[e] ? n[e] : r;
|
|
100
|
+
} else return n[t] || "";
|
|
101
|
+
});
|
|
102
|
+
}, T = (e, t) => d(e) ? w(e(t), t) : f(e) ? w(e, t) : null, E = (e) => {
|
|
103
|
+
let t = {};
|
|
104
|
+
for (let n in e) t[c(n)] = e[n];
|
|
105
|
+
return t;
|
|
106
|
+
}, D = (e, t) => {
|
|
107
|
+
for (let n in t) e[n] = t[n];
|
|
108
|
+
return e;
|
|
109
|
+
}, O = (e) => {
|
|
110
|
+
let r = [];
|
|
111
|
+
for (let i of e) i.type === t || (i.type === n ? i.children && r.push(...O(i.children)) : r.push(i));
|
|
112
|
+
return r;
|
|
113
|
+
}, k = {
|
|
114
|
+
img: /\.(gif|jpg|jpeg|png|webp|svg|GIF|JPG|JPEG|PNG|WEBP|SVG)/,
|
|
115
|
+
video: /\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|ogg|mp4)/,
|
|
116
|
+
audio: /\.(mp3|wav|MP3|WAV)/
|
|
117
|
+
}, A = (e, t) => {
|
|
118
|
+
if (!u(e)) return k.audio.test(e) || t === "audio" ? "audio" : k.video.test(e) || t === "video" ? "video" : k.img.test(e) || t === "img" ? "img" : !1;
|
|
119
|
+
}, j = (e, t = !1) => {
|
|
120
|
+
let n = t ? "pageYOffset" : "pageXOffset", r = t ? "scrollTop" : "scrollLeft", i = e[n];
|
|
121
|
+
return typeof i != "number" && (i = document.documentElement[r]), i;
|
|
122
|
+
}, M = (e, t) => {
|
|
123
|
+
let n = t.getBoundingClientRect(), r = j(e, !0), i = j(e), a = document.body, o = a.clientTop || 0, s = a.clientLeft || 0;
|
|
124
|
+
return {
|
|
125
|
+
top: n.top + r - o,
|
|
126
|
+
left: n.left + i - s
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
//#endregion
|
|
130
|
+
export { C as a, M as c, x as d, E as f, g, h, T as i, j as l, _ as m, S as n, m as o, b as p, O as r, v as s, D as t, A as u };
|