@web-utils/component 5.0.0-beta03 → 5.0.0-beta04
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/chunks/DialogForm.BzmXN481.mjs +37816 -0
- package/chunks/ElementDialog.BrqPs1yL.mjs +198 -0
- package/chunks/FormTemp.DWB4CV8h.mjs +251 -0
- package/chunks/FyButton.DGd1yE_h.mjs +27 -0
- package/chunks/{FyCurd.DqJuCLNW.mjs → FyCurd.DmIW6Tjw.mjs} +490 -483
- package/chunks/{FyForm.CgyGhetD.mjs → FyForm.Dh77gj0Z.mjs} +149 -149
- package/chunks/{FyUEditor.uvZS8UgS.mjs → FyUEditor.BMGigcYw.mjs} +7 -7
- package/chunks/{FyUpload.DoBEuYcC.mjs → FyUpload.Y_mVdD0K.mjs} +77 -77
- package/chunks/{MonacoEditor.Bq9d6JSz.mjs → MonacoEditor.DQ1vPh6D.mjs} +8 -8
- package/chunks/dataformat.BpAzVPYN.mjs +165 -0
- package/chunks/{dic.NZCGhtA7.mjs → dic.N2PNjL8o.mjs} +1 -1
- package/chunks/{event.CmOTnori.mjs → event.BevSLXu4.mjs} +8 -9
- package/chunks/{util.g-WQEec9.mjs → util.Cdt7t08t.mjs} +35 -50
- package/dialog/index.d.ts +14 -0
- package/dialog/props.d.ts +101 -0
- package/dialog-form/index.mjs +2 -145
- package/element-dialog/index.mjs +1 -1
- package/element-dialog/style.css +1 -1
- package/fy-array/index.mjs +7 -7
- package/fy-button/index.mjs +2 -0
- package/fy-button/style.css +1 -0
- package/fy-cascader/index.mjs +2 -2
- package/fy-checkbox/index.mjs +2 -2
- package/fy-curd/index.mjs +1 -1
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +2 -2
- package/fy-date/style.css +1 -1
- package/fy-dynamic/index.mjs +15 -15
- package/fy-empty/index.mjs +4 -4
- package/fy-form/index.mjs +1 -1
- package/fy-input/index.mjs +3 -3
- package/fy-input-color/index.mjs +2 -2
- package/fy-input-map/index.mjs +36 -34
- package/fy-input-number/index.mjs +2 -2
- package/fy-input-table/index.mjs +40 -38
- package/fy-input-tree/index.mjs +17 -17
- package/fy-radio/index.mjs +2 -2
- package/fy-rate/index.mjs +2 -2
- package/fy-select/index.mjs +29 -29
- package/fy-slider/index.mjs +5 -5
- package/fy-switch/index.mjs +2 -2
- package/fy-tabs/index.mjs +1 -1
- package/fy-time/index.mjs +7 -7
- package/fy-title/index.mjs +2 -2
- package/fy-tree/index.mjs +76 -74
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +1 -1
- package/icon-temp/index.mjs +1 -1
- package/index.d.ts +2 -141
- package/index.mjs +31 -178
- package/monaco-editor/index.mjs +1 -1
- package/package.json +4 -4
- package/web-types.json +2431 -20044
- package/address-input/index.mjs +0 -76
- package/address-input/style.css +0 -1
- package/affix/index.mjs +0 -72
- package/affix/style.css +0 -1
- package/aside-menu/index.mjs +0 -20
- package/aside-menu/style.css +0 -1
- package/avatar/index.mjs +0 -94
- package/avatar/style.css +0 -1
- package/awesome-button/index.mjs +0 -49
- package/base.css +0 -1
- package/capsule-tab/index.mjs +0 -27
- package/capsule-tab/style.css +0 -1
- package/card/index.mjs +0 -86
- package/card/style.css +0 -1
- package/carousel/index.mjs +0 -46
- package/carousel/style.css +0 -1
- package/chat/index.mjs +0 -432
- package/chat/style.css +0 -1
- package/chunk-file-uploader/index.mjs +0 -2
- package/chunk-file-uploader/style.css +0 -1
- package/chunks/ChunkFileUploader.C3EA0e5t.mjs +0 -114
- package/chunks/EditableTree.CV8b95tW.mjs +0 -639
- package/chunks/ElementBaseInfo.lW0iwU10.mjs +0 -208
- package/chunks/ElementDialog.DWhAJsUn.mjs +0 -520
- package/chunks/ElementForm.C7yebHWH.mjs +0 -600
- package/chunks/ElementListeners.B_SjC8dp.mjs +0 -635
- package/chunks/ElementMultiInstance.Xw27Z5mm.mjs +0 -289
- package/chunks/ElementOtherConfig.DnNmAhKn.mjs +0 -50
- package/chunks/ElementProperties.DKr9JE_O.mjs +0 -187
- package/chunks/ElementTaskConfig.CPjsXlpS.mjs +0 -442
- package/chunks/FlowCondition.BA7GF34X.mjs +0 -193
- package/chunks/FlowDesigner.DH1ypcUw.mjs +0 -5100
- package/chunks/FormBlock.D6kZl7sm.mjs +0 -117
- package/chunks/FormCascader.BXL8lKww.mjs +0 -1229
- package/chunks/FormInputTime.DzTPiDNh.mjs +0 -1775
- package/chunks/FormItem.B8iPLduv.mjs +0 -89
- package/chunks/FormItemGroup.CCGqEapT.mjs +0 -154
- package/chunks/FormSelect.t0jbTL_K.mjs +0 -1475
- package/chunks/FormSwitch.uoFQ-xp_.mjs +0 -298
- package/chunks/FormTemp.CeHtEZQe.mjs +0 -144
- package/chunks/FyFormDesign.DIIK7mXK.mjs +0 -5521
- package/chunks/ImagePreview.DDFrZgo5.mjs +0 -649
- package/chunks/Keyboard.DBspwbYo.mjs +0 -379
- package/chunks/PageableTable.DR-REJN5.mjs +0 -659
- package/chunks/RecordVideo.CKTY-gk9.mjs +0 -116
- package/chunks/SignalAndMessage.CL2u19it.mjs +0 -189
- package/chunks/SplitPane.DNNid7WB.mjs +0 -219
- package/chunks/TableColumn.Cq9Bvevm.mjs +0 -186
- package/chunks/TableView.DMWMaGLA.mjs +0 -477
- package/chunks/Toolbar.DytZ6fO0.mjs +0 -219
- package/chunks/ToolbarButton.AlTszc53.mjs +0 -107
- package/chunks/UserTaskListeners.Qfm8hKWP.mjs +0 -581
- package/chunks/VueCron.BmPnLuu3.mjs +0 -1787
- package/chunks/VueTreeSelect.GHx4Z2lG.mjs +0 -1877
- package/chunks/button.gVyl7Y__.mjs +0 -927
- package/chunks/checkbox.AmhCpaBZ.mjs +0 -438
- package/chunks/chunk.A6TnG60p.mjs +0 -13
- package/chunks/confirmable-mixin.BZtxXY0h.mjs +0 -273
- package/chunks/constants.Dw7hXt67.mjs +0 -4
- package/chunks/core.Blrh_Fjl.mjs +0 -51
- package/chunks/dataformat.F7GtAoiN.mjs +0 -144
- package/chunks/dictionary.BqVLM7Lf.mjs +0 -87
- package/chunks/dictionary.DXYdZefs.mjs +0 -19
- package/chunks/event.ZRs4J5TN.mjs +0 -4
- package/chunks/focus-trap.CuUc8N2C.mjs +0 -211
- package/chunks/form-input.DdSb45Tz.mjs +0 -34
- package/chunks/form-item.fYYCXvCs.mjs +0 -716
- package/chunks/form-pick.BEC7lrNH.mjs +0 -7
- package/chunks/form-validate.JFOV_f-C.mjs +0 -11
- package/chunks/icon.AJYLfX1m.mjs +0 -26
- package/chunks/icon.niAg1zTC.mjs +0 -251
- package/chunks/init.CtUEiRbU.mjs +0 -115
- package/chunks/input.B_wW4aF-.mjs +0 -548
- package/chunks/install.BJl2MN77.mjs +0 -73
- package/chunks/message-box.wGWcYSSd.mjs +0 -463
- package/chunks/message.DnTACuzV.mjs +0 -401
- package/chunks/overlay.Rhu_rfhx.mjs +0 -122
- package/chunks/photo-swipe.BvBJGc5x.mjs +0 -55
- package/chunks/radio.BMkZBhl5.mjs +0 -274
- package/chunks/scroll.BJIpzi2Q.mjs +0 -28
- package/chunks/scrollbar.CvxOszy3.mjs +0 -345
- package/chunks/slot.CZCo32Cw.mjs +0 -25
- package/chunks/style.CraPDfJA.mjs +0 -325
- package/chunks/sub-table-plus-props.DvS8aKT4.mjs +0 -28
- package/chunks/tab-mixin.C9DSz8xu.mjs +0 -70
- package/chunks/tag.B6yUaGj-.mjs +0 -141
- package/chunks/teleport.87mkIv8m.mjs +0 -22
- package/chunks/tooltip.Dzjs7LZ8.mjs +0 -1926
- package/chunks/typescript.D0a40c7B.mjs +0 -4
- package/chunks/use-aria.B9uqqWAE.mjs +0 -17
- package/chunks/use-composition.BMPJBvYs.mjs +0 -47
- package/chunks/use-deprecated.vx6LTDA_.mjs +0 -12
- package/chunks/use-empty-values.CxYKjLV9.mjs +0 -81
- package/chunks/use-form-item.DMDTkMq9.mjs +0 -48
- package/chunks/use-global-config.Dkt91Ob3.mjs +0 -57
- package/chunks/use-id.CyzdvfQn.mjs +0 -15
- package/chunks/use-locale.CBoQRFjH.mjs +0 -188
- package/chunks/use-size.CoorvF12.mjs +0 -18
- package/chunks/util.fjuzrmWz.mjs +0 -103
- package/chunks/utilSelf.Bv7FtUNb.mjs +0 -46
- package/chunks/utils.C37EhJ-u.mjs +0 -60
- package/chunks/utils.C8RvIGLM.mjs +0 -14
- package/chunks/validator.Drv0r2Nb.mjs +0 -5
- package/chunks/vnode.raM3wMJz.mjs +0 -14
- package/code-mirror-editor/index.mjs +0 -99
- package/code-mirror-editor/style.css +0 -1
- package/comment/index.mjs +0 -62
- package/comment/style.css +0 -1
- package/configComponents.d.ts +0 -29
- package/configComponents.mjs +0 -42
- package/confirm-button/index.mjs +0 -35
- package/confirmable/index.mjs +0 -8
- package/context-menu/index.mjs +0 -196
- package/context-menu/style.css +0 -1
- package/count-up/index.mjs +0 -99
- package/custom-scrollbar/index.mjs +0 -93
- package/data-box/index.mjs +0 -64
- package/data-box/style.css +0 -1
- package/data-card/index.mjs +0 -60
- package/data-card/style.css +0 -1
- package/data-card-text/index.mjs +0 -64
- package/data-card-text/style.css +0 -1
- package/data-display/index.mjs +0 -71
- package/data-display/style.css +0 -1
- package/data-icons/index.mjs +0 -70
- package/data-icons/style.css +0 -1
- package/data-imgtext/index.mjs +0 -67
- package/data-imgtext/style.css +0 -1
- package/data-operatext/index.mjs +0 -51
- package/data-operatext/style.css +0 -1
- package/data-panel/index.mjs +0 -57
- package/data-panel/style.css +0 -1
- package/data-pay/index.mjs +0 -105
- package/data-pay/style.css +0 -1
- package/data-price/index.mjs +0 -48
- package/data-price/style.css +0 -1
- package/data-progress/index.mjs +0 -67
- package/data-progress/style.css +0 -1
- package/data-rotate/index.mjs +0 -61
- package/data-rotate/style.css +0 -1
- package/data-table-picker/index.mjs +0 -116
- package/data-tabs/index.mjs +0 -67
- package/data-tabs/style.css +0 -1
- package/dynamic-table/index.mjs +0 -165
- package/dynamic-table/style.css +0 -1
- package/e-charts/index.mjs +0 -176
- package/e-charts/style.css +0 -1
- package/easy-popup/index.mjs +0 -92
- package/easy-popup/style.css +0 -1
- package/editable-progress/index.mjs +0 -113
- package/editable-progress/style.css +0 -1
- package/editable-tree/index.mjs +0 -2
- package/editable-tree/style.css +0 -1
- package/element-listeners/style.css +0 -1
- package/element-multi-instance/style.css +0 -1
- package/ellipsis/index.mjs +0 -124
- package/ellipsis/style.css +0 -1
- package/empty-view/index.mjs +0 -46
- package/empty-view/style.css +0 -1
- package/error-view/index.mjs +0 -37
- package/error-view/style.css +0 -1
- package/flex-column/index.mjs +0 -35
- package/flex-item/index.mjs +0 -61
- package/flex-row/index.mjs +0 -34
- package/flex-scroller/index.mjs +0 -29
- package/flex-scroller/style.css +0 -1
- package/flow/index.mjs +0 -240
- package/flow/style.css +0 -1
- package/flow-designer/index.mjs +0 -2
- package/flow-designer/style.css +0 -1
- package/flow-node/index.mjs +0 -56
- package/flow-viewer/index.mjs +0 -160
- package/flow-viewer/style.css +0 -1
- package/form-block/index.mjs +0 -2
- package/form-block/style.css +0 -1
- package/form-button/index.mjs +0 -36
- package/form-card/index.mjs +0 -14
- package/form-cascader/index.mjs +0 -2
- package/form-checkbox/index.mjs +0 -90
- package/form-checkbox-group/index.mjs +0 -162
- package/form-checkbox-group/style.css +0 -1
- package/form-date-picker/index.mjs +0 -156
- package/form-holder/index.mjs +0 -134
- package/form-holder/style.css +0 -1
- package/form-input/index.mjs +0 -114
- package/form-input-cron-expression/index.mjs +0 -98
- package/form-input-cron-expression/style.css +0 -1
- package/form-input-email/index.mjs +0 -66
- package/form-input-id-card/index.mjs +0 -74
- package/form-input-phone-number/index.mjs +0 -73
- package/form-input-tag/index.mjs +0 -89
- package/form-input-time/index.mjs +0 -2
- package/form-item/index.mjs +0 -2
- package/form-item/style.css +0 -1
- package/form-item-config-provider/index.mjs +0 -47
- package/form-item-group/index.mjs +0 -2
- package/form-item-group/style.css +0 -1
- package/form-radio-group/index.mjs +0 -162
- package/form-radio-group/style.css +0 -1
- package/form-select/index.mjs +0 -2
- package/form-select/style.css +0 -1
- package/form-switch/index.mjs +0 -2
- package/form-table/index.mjs +0 -132
- package/form-table-plus/index.mjs +0 -165
- package/form-textarea/index.mjs +0 -91
- package/form-tree-select/index.mjs +0 -90
- package/form-tree-select/style.css +0 -1
- package/form-tree-select-multiple/index.mjs +0 -93
- package/form-view/index.mjs +0 -280
- package/form-view/style.css +0 -1
- package/fy-article/index.mjs +0 -73
- package/fy-article/style.css +0 -1
- package/fy-code/index.mjs +0 -48
- package/fy-draggable/index.mjs +0 -323
- package/fy-draggable/style.css +0 -1
- package/fy-form-design/index.mjs +0 -2
- package/fy-form-design/style.css +0 -1
- package/fy-input-icon/index.mjs +0 -134
- package/fy-input-icon/style.css +0 -1
- package/fy-progress/index.mjs +0 -36
- package/guide-steps/index.mjs +0 -73
- package/guide-steps/style.css +0 -1
- package/helper-function.d.ts +0 -5
- package/helper-function.mjs +0 -58
- package/highlight-j-s/index.mjs +0 -51
- package/highlight-j-s/style.css +0 -1
- package/icon-card/index.mjs +0 -34
- package/icon-card/style.css +0 -1
- package/iframe-window/index.mjs +0 -40
- package/iframe-window/style.css +0 -1
- package/image-cropper/index.mjs +0 -152
- package/image-cropper/style.css +0 -1
- package/image-preview/index.mjs +0 -2
- package/image-preview/style.css +0 -1
- package/image-viewer/index.mjs +0 -70
- package/image-viewer/style.css +0 -1
- package/input-number-range/index.mjs +0 -76
- package/input-number-range/style.css +0 -1
- package/j-s-x-component/index.mjs +0 -14
- package/keyboard/index.mjs +0 -2
- package/keyboard/style.css +0 -1
- package/license/index.mjs +0 -106
- package/loading-view/index.mjs +0 -39
- package/loading-view/style.css +0 -1
- package/name-avatar/index.mjs +0 -61
- package/name-avatar/style.css +0 -1
- package/nav-bar/index.mjs +0 -34
- package/nav-bar/style.css +0 -1
- package/not-implement/index.mjs +0 -10
- package/not-implement/style.css +0 -1
- package/notice/index.mjs +0 -97
- package/notice/style.css +0 -1
- package/page/index.mjs +0 -19
- package/page/style.css +0 -1
- package/page-header/index.mjs +0 -27
- package/page-header/style.css +0 -1
- package/page-index/index.mjs +0 -121
- package/page-index/style.css +0 -1
- package/page-index-top/index.mjs +0 -80
- package/page-skeleton/index.mjs +0 -49
- package/page-skeleton/style.css +0 -1
- package/page-skeleton-new/index.mjs +0 -79
- package/page-skeleton-new/style.css +0 -1
- package/pageable-table/index.mjs +0 -2
- package/pageable-table/style.css +0 -1
- package/pageable-view/index.mjs +0 -280
- package/pageable-view/style.css +0 -1
- package/photo-swipe/index.d.ts +0 -8
- package/photo-swipe/index.mjs +0 -33
- package/picker-table-view/index.mjs +0 -221
- package/present-view/index.mjs +0 -271
- package/present-view/style.css +0 -1
- package/queue/index.mjs +0 -46
- package/queue/style.css +0 -1
- package/record-video/index.mjs +0 -2
- package/record-video/style.css +0 -1
- package/resize-observer/index.mjs +0 -45
- package/resize-observer/style.css +0 -1
- package/search/index.mjs +0 -116
- package/search/style.css +0 -1
- package/sign/index.mjs +0 -104
- package/sign/style.css +0 -1
- package/sign-panel/index.mjs +0 -183
- package/sign-panel/style.css +0 -1
- package/skeleton/index.mjs +0 -51
- package/skeleton/style.css +0 -1
- package/skeleton-panel/index.mjs +0 -34
- package/skeleton-panel/style.css +0 -1
- package/split-pane/index.mjs +0 -3
- package/split-pane/style.css +0 -1
- package/stateful/index.mjs +0 -71
- package/stateful/style.css +0 -1
- package/static-pageable-table/index.mjs +0 -69
- package/static-pageable-table/style.css +0 -1
- package/sub-table/index.mjs +0 -505
- package/sub-table/style.css +0 -1
- package/sub-table-plus/index.mjs +0 -590
- package/sub-table-plus/style.css +0 -1
- package/swiper/index.mjs +0 -128
- package/swiper/style.css +0 -1
- package/tab/index.mjs +0 -117
- package/tab/style.css +0 -1
- package/tab-item/index.mjs +0 -49
- package/table-column/index.mjs +0 -2
- package/table-column/style.css +0 -1
- package/table-view/index.mjs +0 -3
- package/table-view/style.css +0 -1
- package/tabs-view/index.mjs +0 -109
- package/tabs-view/style.css +0 -1
- package/tag-render/index.mjs +0 -84
- package/tag-render/style.css +0 -1
- package/text-ellipsis/index.mjs +0 -95
- package/text-ellipsis/style.css +0 -1
- package/toolbar/index.mjs +0 -2
- package/toolbar/style.css +0 -1
- package/toolbar-button/index.mjs +0 -2
- package/verify/index.mjs +0 -58
- package/verify/style.css +0 -1
- package/video/index.d.ts +0 -10
- package/vue-cron/index.mjs +0 -2
- package/vue-cron/style.css +0 -1
- package/vue-qr-code/index.mjs +0 -32
- package/vue-quill-editor/index.mjs +0 -127
- package/vue-quill-editor/style.css +0 -1
- package/vue-tags-input/index.mjs +0 -348
- package/vue-tags-input/style.css +0 -1
- package/vue-tree-select/index.mjs +0 -2
- package/vue-tree-select/style.css +0 -1
- package/vue-video-player/index.mjs +0 -136
- package/vue-video-player/style.css +0 -1
- package/watermark/index.mjs +0 -47
- package/watermark/style.css +0 -1
- package/x-input-tag/index.mjs +0 -142
- package/x-input-tag/style.css +0 -1
- /package/chunks/{_plugin-vue_export-helper.7vrlOII_.mjs → _plugin-vue_export-helper.CTBRVsXt.mjs} +0 -0
- /package/chunks/{packages.CONbEH13.mjs → packages.W76nKiMk.mjs} +0 -0
- /package/chunks/{permission.8WDtOmzA.mjs → permission.ZYdXiCsn.mjs} +0 -0
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
import { r as e, t } from "./event.ZRs4J5TN.mjs";
|
|
2
|
-
import { r as n } from "./use-size.CoorvF12.mjs";
|
|
3
|
-
import { _ as r, o as i, r as a, t as o } from "./install.BJl2MN77.mjs";
|
|
4
|
-
import { F as s, M as c, O as l, R as u, j as d, z as f } from "./style.CraPDfJA.mjs";
|
|
5
|
-
import { t as p } from "./use-deprecated.vx6LTDA_.mjs";
|
|
6
|
-
import { i as m, n as h, r as g, t as ee } from "./use-form-item.DMDTkMq9.mjs";
|
|
7
|
-
import { t as _ } from "./use-id.CyzdvfQn.mjs";
|
|
8
|
-
import { t as v } from "./use-aria.B9uqqWAE.mjs";
|
|
9
|
-
import { Fragment as y, computed as b, createBlock as te, createElementBlock as x, createElementVNode as S, createTextVNode as C, defineComponent as w, inject as ne, isRef as T, mergeProps as E, nextTick as D, normalizeClass as O, normalizeStyle as k, onMounted as A, openBlock as j, provide as M, reactive as re, ref as N, renderList as ie, renderSlot as P, resolveDynamicComponent as ae, toDisplayString as F, toRefs as I, unref as L, vModelRadio as R, watch as z, withDirectives as B, withModifiers as V } from "vue";
|
|
10
|
-
import { isEqual as H, omit as U } from "lodash-unified";
|
|
11
|
-
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/radio/src/radio.mjs
|
|
12
|
-
var W = d({
|
|
13
|
-
modelValue: {
|
|
14
|
-
type: [
|
|
15
|
-
String,
|
|
16
|
-
Number,
|
|
17
|
-
Boolean
|
|
18
|
-
],
|
|
19
|
-
default: void 0
|
|
20
|
-
},
|
|
21
|
-
size: n,
|
|
22
|
-
disabled: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: void 0
|
|
25
|
-
},
|
|
26
|
-
label: {
|
|
27
|
-
type: [
|
|
28
|
-
String,
|
|
29
|
-
Number,
|
|
30
|
-
Boolean
|
|
31
|
-
],
|
|
32
|
-
default: void 0
|
|
33
|
-
},
|
|
34
|
-
value: {
|
|
35
|
-
type: [
|
|
36
|
-
String,
|
|
37
|
-
Number,
|
|
38
|
-
Boolean
|
|
39
|
-
],
|
|
40
|
-
default: void 0
|
|
41
|
-
},
|
|
42
|
-
name: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: void 0
|
|
45
|
-
}
|
|
46
|
-
}), G = d({
|
|
47
|
-
...W,
|
|
48
|
-
border: Boolean
|
|
49
|
-
}), K = {
|
|
50
|
-
[e]: (e) => r(e) || u(e) || s(e),
|
|
51
|
-
[t]: (e) => r(e) || u(e) || s(e)
|
|
52
|
-
}, q = Symbol("radioGroupKey"), oe = d({ ...W }), J = {
|
|
53
|
-
label: "label",
|
|
54
|
-
value: "value",
|
|
55
|
-
disabled: "disabled"
|
|
56
|
-
}, se = d({
|
|
57
|
-
id: {
|
|
58
|
-
type: String,
|
|
59
|
-
default: void 0
|
|
60
|
-
},
|
|
61
|
-
size: n,
|
|
62
|
-
disabled: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: void 0
|
|
65
|
-
},
|
|
66
|
-
modelValue: {
|
|
67
|
-
type: [
|
|
68
|
-
String,
|
|
69
|
-
Number,
|
|
70
|
-
Boolean
|
|
71
|
-
],
|
|
72
|
-
default: void 0
|
|
73
|
-
},
|
|
74
|
-
fill: {
|
|
75
|
-
type: String,
|
|
76
|
-
default: ""
|
|
77
|
-
},
|
|
78
|
-
textColor: {
|
|
79
|
-
type: String,
|
|
80
|
-
default: ""
|
|
81
|
-
},
|
|
82
|
-
name: {
|
|
83
|
-
type: String,
|
|
84
|
-
default: void 0
|
|
85
|
-
},
|
|
86
|
-
validateEvent: {
|
|
87
|
-
type: Boolean,
|
|
88
|
-
default: !0
|
|
89
|
-
},
|
|
90
|
-
options: { type: c(Array) },
|
|
91
|
-
props: {
|
|
92
|
-
type: c(Object),
|
|
93
|
-
default: () => J
|
|
94
|
-
},
|
|
95
|
-
type: {
|
|
96
|
-
type: String,
|
|
97
|
-
values: ["radio", "button"],
|
|
98
|
-
default: "radio"
|
|
99
|
-
},
|
|
100
|
-
...v(["ariaLabel"])
|
|
101
|
-
}), ce = K, Y = (e, t) => {
|
|
102
|
-
let n = N(), r = ne(q, void 0), i = b(() => !!r), a = b(() => f(e.value) ? e.label : e.value), o = b({
|
|
103
|
-
get() {
|
|
104
|
-
return i.value ? r.modelValue : e.modelValue;
|
|
105
|
-
},
|
|
106
|
-
set(o) {
|
|
107
|
-
i.value ? r.changeEvent(o) : t && t("update:modelValue", o), n.value.checked = e.modelValue === a.value;
|
|
108
|
-
}
|
|
109
|
-
}), s = m(b(() => r == null ? void 0 : r.size)), c = g(b(() => r == null ? void 0 : r.disabled)), l = N(!1), u = b(() => c.value || i.value && o.value !== a.value ? -1 : 0);
|
|
110
|
-
return p({
|
|
111
|
-
from: "label act as value",
|
|
112
|
-
replacement: "value",
|
|
113
|
-
version: "3.0.0",
|
|
114
|
-
scope: "el-radio",
|
|
115
|
-
ref: "https://element-plus.org/en-US/component/radio.html"
|
|
116
|
-
}, b(() => i.value && f(e.value))), {
|
|
117
|
-
radioRef: n,
|
|
118
|
-
isGroup: i,
|
|
119
|
-
radioGroup: r,
|
|
120
|
-
focus: l,
|
|
121
|
-
size: s,
|
|
122
|
-
disabled: c,
|
|
123
|
-
tabIndex: u,
|
|
124
|
-
modelValue: o,
|
|
125
|
-
actualValue: a
|
|
126
|
-
};
|
|
127
|
-
}, le = [
|
|
128
|
-
"value",
|
|
129
|
-
"name",
|
|
130
|
-
"disabled",
|
|
131
|
-
"checked"
|
|
132
|
-
], X = /* @__PURE__ */ w({
|
|
133
|
-
name: "ElRadio",
|
|
134
|
-
__name: "radio",
|
|
135
|
-
props: G,
|
|
136
|
-
emits: K,
|
|
137
|
-
setup(e, { emit: n }) {
|
|
138
|
-
let r = e, a = n, o = i("radio"), { radioRef: s, radioGroup: c, focus: l, size: u, disabled: d, modelValue: f, actualValue: p } = Y(r, a);
|
|
139
|
-
function m() {
|
|
140
|
-
D(() => a(t, f.value));
|
|
141
|
-
}
|
|
142
|
-
return (t, n) => {
|
|
143
|
-
var r;
|
|
144
|
-
return j(), x("label", { class: O([
|
|
145
|
-
L(o).b(),
|
|
146
|
-
L(o).is("disabled", L(d)),
|
|
147
|
-
L(o).is("focus", L(l)),
|
|
148
|
-
L(o).is("bordered", e.border),
|
|
149
|
-
L(o).is("checked", L(f) === L(p)),
|
|
150
|
-
L(o).m(L(u))
|
|
151
|
-
]) }, [S("span", { class: O([
|
|
152
|
-
L(o).e("input"),
|
|
153
|
-
L(o).is("disabled", L(d)),
|
|
154
|
-
L(o).is("checked", L(f) === L(p))
|
|
155
|
-
]) }, [B(S("input", {
|
|
156
|
-
ref_key: "radioRef",
|
|
157
|
-
ref: s,
|
|
158
|
-
"onUpdate:modelValue": n[0] || (n[0] = (e) => T(f) ? f.value = e : null),
|
|
159
|
-
class: O(L(o).e("original")),
|
|
160
|
-
value: L(p),
|
|
161
|
-
name: e.name || ((r = L(c)) == null ? void 0 : r.name),
|
|
162
|
-
disabled: L(d),
|
|
163
|
-
checked: L(f) === L(p),
|
|
164
|
-
type: "radio",
|
|
165
|
-
onFocus: n[1] || (n[1] = (e) => l.value = !0),
|
|
166
|
-
onBlur: n[2] || (n[2] = (e) => l.value = !1),
|
|
167
|
-
onChange: m,
|
|
168
|
-
onClick: n[3] || (n[3] = V(() => {}, ["stop"]))
|
|
169
|
-
}, null, 42, le), [[R, L(f)]]), S("span", { class: O(L(o).e("inner")) }, null, 2)], 2), S("span", {
|
|
170
|
-
class: O(L(o).e("label")),
|
|
171
|
-
onKeydown: n[4] || (n[4] = V(() => {}, ["stop"]))
|
|
172
|
-
}, [P(t.$slots, "default", {}, () => [C(F(e.label), 1)])], 34)], 2);
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
}), ue = [
|
|
176
|
-
"value",
|
|
177
|
-
"name",
|
|
178
|
-
"disabled"
|
|
179
|
-
], Z = /* @__PURE__ */ w({
|
|
180
|
-
name: "ElRadioButton",
|
|
181
|
-
__name: "radio-button",
|
|
182
|
-
props: oe,
|
|
183
|
-
setup(e) {
|
|
184
|
-
let t = e, n = i("radio"), { radioRef: r, focus: a, size: o, disabled: s, modelValue: c, radioGroup: l, actualValue: u } = Y(t), d = b(() => ({
|
|
185
|
-
backgroundColor: (l == null ? void 0 : l.fill) || "",
|
|
186
|
-
borderColor: (l == null ? void 0 : l.fill) || "",
|
|
187
|
-
boxShadow: l != null && l.fill ? `-1px 0 0 0 ${l.fill}` : "",
|
|
188
|
-
color: (l == null ? void 0 : l.textColor) || ""
|
|
189
|
-
}));
|
|
190
|
-
return (t, i) => {
|
|
191
|
-
var f;
|
|
192
|
-
return j(), x("label", { class: O([
|
|
193
|
-
L(n).b("button"),
|
|
194
|
-
L(n).is("active", L(c) === L(u)),
|
|
195
|
-
L(n).is("disabled", L(s)),
|
|
196
|
-
L(n).is("focus", L(a)),
|
|
197
|
-
L(n).bm("button", L(o))
|
|
198
|
-
]) }, [B(S("input", {
|
|
199
|
-
ref_key: "radioRef",
|
|
200
|
-
ref: r,
|
|
201
|
-
"onUpdate:modelValue": i[0] || (i[0] = (e) => T(c) ? c.value = e : null),
|
|
202
|
-
class: O(L(n).be("button", "original-radio")),
|
|
203
|
-
value: L(u),
|
|
204
|
-
type: "radio",
|
|
205
|
-
name: e.name || ((f = L(l)) == null ? void 0 : f.name),
|
|
206
|
-
disabled: L(s),
|
|
207
|
-
onFocus: i[1] || (i[1] = (e) => a.value = !0),
|
|
208
|
-
onBlur: i[2] || (i[2] = (e) => a.value = !1),
|
|
209
|
-
onClick: i[3] || (i[3] = V(() => {}, ["stop"]))
|
|
210
|
-
}, null, 42, ue), [[R, L(c)]]), S("span", {
|
|
211
|
-
class: O(L(n).be("button", "inner")),
|
|
212
|
-
style: k(L(c) === L(u) ? d.value : {}),
|
|
213
|
-
onKeydown: i[4] || (i[4] = V(() => {}, ["stop"]))
|
|
214
|
-
}, [P(t.$slots, "default", {}, () => [C(F(e.label), 1)])], 38)], 2);
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
}), Q = [
|
|
218
|
-
"id",
|
|
219
|
-
"aria-label",
|
|
220
|
-
"aria-labelledby"
|
|
221
|
-
], $ = /* @__PURE__ */ w({
|
|
222
|
-
name: "ElRadioGroup",
|
|
223
|
-
__name: "radio-group",
|
|
224
|
-
props: se,
|
|
225
|
-
emits: ce,
|
|
226
|
-
setup(n, { emit: r }) {
|
|
227
|
-
let a = n, o = r, s = i("radio"), c = _(), u = N(), { formItem: d } = ee(), { inputId: f, isLabeledByFormItem: p } = h(a, { formItemContext: d }), m = (n) => {
|
|
228
|
-
o(e, n), D(() => o(t, n));
|
|
229
|
-
};
|
|
230
|
-
A(() => {
|
|
231
|
-
let e = u.value.querySelectorAll("[type=radio]"), t = e[0];
|
|
232
|
-
!Array.from(e).some((e) => e.checked) && t && (t.tabIndex = 0);
|
|
233
|
-
});
|
|
234
|
-
let g = b(() => a.name || c.value), v = b(() => ({
|
|
235
|
-
...J,
|
|
236
|
-
...a.props
|
|
237
|
-
})), S = (e) => {
|
|
238
|
-
let { label: t, value: n, disabled: r } = v.value, i = {
|
|
239
|
-
label: e[t],
|
|
240
|
-
value: e[n],
|
|
241
|
-
disabled: e[r]
|
|
242
|
-
};
|
|
243
|
-
return {
|
|
244
|
-
...U(e, [
|
|
245
|
-
t,
|
|
246
|
-
n,
|
|
247
|
-
r
|
|
248
|
-
]),
|
|
249
|
-
...i
|
|
250
|
-
};
|
|
251
|
-
}, C = b(() => a.type === "button" ? Z : X);
|
|
252
|
-
return M(q, re({
|
|
253
|
-
...I(a),
|
|
254
|
-
changeEvent: m,
|
|
255
|
-
name: g
|
|
256
|
-
})), z(() => a.modelValue, (e, t) => {
|
|
257
|
-
a.validateEvent && !H(e, t) && (d == null || d.validate("change").catch((e) => l(e)));
|
|
258
|
-
}), (e, t) => (j(), x("div", {
|
|
259
|
-
id: L(f),
|
|
260
|
-
ref_key: "radioGroupRef",
|
|
261
|
-
ref: u,
|
|
262
|
-
class: O(L(s).b("group")),
|
|
263
|
-
role: "radiogroup",
|
|
264
|
-
"aria-label": L(p) ? void 0 : n.ariaLabel || "radio-group",
|
|
265
|
-
"aria-labelledby": L(p) ? L(d).labelId : void 0
|
|
266
|
-
}, [P(e.$slots, "default", {}, () => [(j(!0), x(y, null, ie(n.options, (e, t) => (j(), te(ae(C.value), E({ key: t }, { ref_for: !0 }, S(e)), null, 16))), 128))])], 10, Q));
|
|
267
|
-
}
|
|
268
|
-
}), de = o(X, {
|
|
269
|
-
RadioButton: Z,
|
|
270
|
-
RadioGroup: $
|
|
271
|
-
}), fe = a($);
|
|
272
|
-
a(Z);
|
|
273
|
-
//#endregion
|
|
274
|
-
export { fe as n, de as t };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { S as e } from "./style.CraPDfJA.mjs";
|
|
2
|
-
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/utils/dom/scroll.mjs
|
|
3
|
-
var t, n = (n) => {
|
|
4
|
-
var r;
|
|
5
|
-
if (!e) return 0;
|
|
6
|
-
if (t !== void 0) return t;
|
|
7
|
-
let i = document.createElement("div");
|
|
8
|
-
i.className = `${n}-scrollbar__wrap`, i.style.visibility = "hidden", i.style.width = "100px", i.style.position = "absolute", i.style.top = "-9999px", document.body.appendChild(i);
|
|
9
|
-
let a = i.offsetWidth;
|
|
10
|
-
i.style.overflow = "scroll";
|
|
11
|
-
let o = document.createElement("div");
|
|
12
|
-
o.style.width = "100%", i.appendChild(o);
|
|
13
|
-
let s = o.offsetWidth;
|
|
14
|
-
return (r = i.parentNode) == null || r.removeChild(i), t = a - s, t;
|
|
15
|
-
};
|
|
16
|
-
function r(t, n) {
|
|
17
|
-
if (!e) return;
|
|
18
|
-
if (!n) {
|
|
19
|
-
t.scrollTop = 0;
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
let r = [], i = n.offsetParent;
|
|
23
|
-
for (; i !== null && t !== i && t.contains(i);) r.push(i), i = i.offsetParent;
|
|
24
|
-
let a = n.offsetTop + r.reduce((e, t) => e + t.offsetTop, 0), o = a + n.offsetHeight, s = t.scrollTop, c = s + t.clientHeight;
|
|
25
|
-
a < s ? t.scrollTop = a : o > c && (t.scrollTop = o - t.clientHeight);
|
|
26
|
-
}
|
|
27
|
-
//#endregion
|
|
28
|
-
export { r as n, n as t };
|
|
@@ -1,345 +0,0 @@
|
|
|
1
|
-
import { m as e, o as t, t as n } from "./install.BJl2MN77.mjs";
|
|
2
|
-
import { M as r, O as i, R as a, S as o, b as s, j as c, k as l, n as u, v as d } from "./style.CraPDfJA.mjs";
|
|
3
|
-
import { t as f } from "./use-aria.B9uqqWAE.mjs";
|
|
4
|
-
import { Fragment as p, Transition as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createVNode as b, defineComponent as x, inject as S, nextTick as C, normalizeClass as w, normalizeStyle as T, onActivated as E, onBeforeUnmount as D, onMounted as O, onUpdated as k, openBlock as A, provide as j, reactive as M, ref as N, renderSlot as P, resolveDynamicComponent as ee, toRef as F, unref as I, vShow as L, watch as R, withCtx as z, withDirectives as B, withModifiers as V } from "vue";
|
|
5
|
-
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/scrollbar/src/scrollbar.mjs
|
|
6
|
-
var H = c({
|
|
7
|
-
distance: {
|
|
8
|
-
type: Number,
|
|
9
|
-
default: 0
|
|
10
|
-
},
|
|
11
|
-
height: {
|
|
12
|
-
type: [String, Number],
|
|
13
|
-
default: ""
|
|
14
|
-
},
|
|
15
|
-
maxHeight: {
|
|
16
|
-
type: [String, Number],
|
|
17
|
-
default: ""
|
|
18
|
-
},
|
|
19
|
-
native: Boolean,
|
|
20
|
-
wrapStyle: {
|
|
21
|
-
type: r([
|
|
22
|
-
String,
|
|
23
|
-
Object,
|
|
24
|
-
Array
|
|
25
|
-
]),
|
|
26
|
-
default: ""
|
|
27
|
-
},
|
|
28
|
-
wrapClass: {
|
|
29
|
-
type: [String, Array],
|
|
30
|
-
default: ""
|
|
31
|
-
},
|
|
32
|
-
viewClass: {
|
|
33
|
-
type: [String, Array],
|
|
34
|
-
default: ""
|
|
35
|
-
},
|
|
36
|
-
viewStyle: {
|
|
37
|
-
type: [
|
|
38
|
-
String,
|
|
39
|
-
Array,
|
|
40
|
-
Object
|
|
41
|
-
],
|
|
42
|
-
default: ""
|
|
43
|
-
},
|
|
44
|
-
noresize: Boolean,
|
|
45
|
-
tag: {
|
|
46
|
-
type: String,
|
|
47
|
-
default: "div"
|
|
48
|
-
},
|
|
49
|
-
always: Boolean,
|
|
50
|
-
minSize: {
|
|
51
|
-
type: Number,
|
|
52
|
-
default: 20
|
|
53
|
-
},
|
|
54
|
-
tabindex: {
|
|
55
|
-
type: [String, Number],
|
|
56
|
-
default: void 0
|
|
57
|
-
},
|
|
58
|
-
id: String,
|
|
59
|
-
role: String,
|
|
60
|
-
...f(["ariaLabel", "ariaOrientation"])
|
|
61
|
-
}), U = {
|
|
62
|
-
"end-reached": (e) => [
|
|
63
|
-
"left",
|
|
64
|
-
"right",
|
|
65
|
-
"top",
|
|
66
|
-
"bottom"
|
|
67
|
-
].includes(e),
|
|
68
|
-
scroll: ({ scrollTop: e, scrollLeft: t }) => [e, t].every(a)
|
|
69
|
-
}, W = {
|
|
70
|
-
vertical: {
|
|
71
|
-
offset: "offsetHeight",
|
|
72
|
-
scroll: "scrollTop",
|
|
73
|
-
scrollSize: "scrollHeight",
|
|
74
|
-
size: "height",
|
|
75
|
-
key: "vertical",
|
|
76
|
-
axis: "Y",
|
|
77
|
-
client: "clientY",
|
|
78
|
-
direction: "top"
|
|
79
|
-
},
|
|
80
|
-
horizontal: {
|
|
81
|
-
offset: "offsetWidth",
|
|
82
|
-
scroll: "scrollLeft",
|
|
83
|
-
scrollSize: "scrollWidth",
|
|
84
|
-
size: "width",
|
|
85
|
-
key: "horizontal",
|
|
86
|
-
axis: "X",
|
|
87
|
-
client: "clientX",
|
|
88
|
-
direction: "left"
|
|
89
|
-
}
|
|
90
|
-
}, G = ({ move: e, size: t, bar: n }) => ({
|
|
91
|
-
[n.size]: t,
|
|
92
|
-
transform: `translate${n.axis}(${e}%)`
|
|
93
|
-
}), K = c({
|
|
94
|
-
vertical: Boolean,
|
|
95
|
-
size: String,
|
|
96
|
-
move: Number,
|
|
97
|
-
ratio: {
|
|
98
|
-
type: Number,
|
|
99
|
-
required: !0
|
|
100
|
-
},
|
|
101
|
-
always: Boolean
|
|
102
|
-
}), q = Symbol("scrollbarContextKey"), J = c({
|
|
103
|
-
always: {
|
|
104
|
-
type: Boolean,
|
|
105
|
-
default: !0
|
|
106
|
-
},
|
|
107
|
-
minSize: {
|
|
108
|
-
type: Number,
|
|
109
|
-
required: !0
|
|
110
|
-
}
|
|
111
|
-
}), Y = "Thumb", X = /* @__PURE__ */ x({
|
|
112
|
-
__name: "thumb",
|
|
113
|
-
props: K,
|
|
114
|
-
setup(e) {
|
|
115
|
-
let n = e, r = S(q), i = t("scrollbar");
|
|
116
|
-
r || l(Y, "can not inject scrollbar context");
|
|
117
|
-
let a = N(), s = N(), c = N({}), u = N(!1), f = !1, p = !1, _ = 0, v = 0, b = o ? document.onselectstart : null, x = h(() => W[n.vertical ? "vertical" : "horizontal"]), C = h(() => G({
|
|
118
|
-
size: n.size,
|
|
119
|
-
move: n.move,
|
|
120
|
-
bar: x.value
|
|
121
|
-
})), E = h(() => a.value[x.value.offset] ** 2 / r.wrapElement[x.value.scrollSize] / n.ratio / s.value[x.value.offset]), O = (e) => {
|
|
122
|
-
var t;
|
|
123
|
-
if (e.stopPropagation(), e.ctrlKey || [1, 2].includes(e.button)) return;
|
|
124
|
-
(t = window.getSelection()) == null || t.removeAllRanges(), j(e);
|
|
125
|
-
let n = e.currentTarget;
|
|
126
|
-
n && (c.value[x.value.axis] = n[x.value.offset] - (e[x.value.client] - n.getBoundingClientRect()[x.value.direction]));
|
|
127
|
-
}, k = (e) => {
|
|
128
|
-
if (!s.value || !a.value || !r.wrapElement) return;
|
|
129
|
-
let t = (Math.abs(e.target.getBoundingClientRect()[x.value.direction] - e[x.value.client]) - s.value[x.value.offset] / 2) * 100 * E.value / a.value[x.value.offset];
|
|
130
|
-
r.wrapElement[x.value.scroll] = t * r.wrapElement[x.value.scrollSize] / 100;
|
|
131
|
-
}, j = (e) => {
|
|
132
|
-
e.stopImmediatePropagation(), f = !0, _ = r.wrapElement.scrollHeight, v = r.wrapElement.scrollWidth, document.addEventListener("mousemove", M), document.addEventListener("mouseup", P), b = document.onselectstart, document.onselectstart = () => !1;
|
|
133
|
-
}, M = (e) => {
|
|
134
|
-
if (!a.value || !s.value || f === !1) return;
|
|
135
|
-
let t = c.value[x.value.axis];
|
|
136
|
-
if (!t) return;
|
|
137
|
-
let n = ((a.value.getBoundingClientRect()[x.value.direction] - e[x.value.client]) * -1 - (s.value[x.value.offset] - t)) * 100 * E.value / a.value[x.value.offset];
|
|
138
|
-
x.value.scroll === "scrollLeft" ? r.wrapElement[x.value.scroll] = n * v / 100 : r.wrapElement[x.value.scroll] = n * _ / 100;
|
|
139
|
-
}, P = () => {
|
|
140
|
-
f = !1, c.value[x.value.axis] = 0, document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", P), H(), p && (u.value = !1);
|
|
141
|
-
}, ee = () => {
|
|
142
|
-
p = !1, u.value = !!n.size;
|
|
143
|
-
}, R = () => {
|
|
144
|
-
p = !0, u.value = f;
|
|
145
|
-
};
|
|
146
|
-
D(() => {
|
|
147
|
-
H(), document.removeEventListener("mouseup", P);
|
|
148
|
-
});
|
|
149
|
-
let H = () => {
|
|
150
|
-
document.onselectstart !== b && (document.onselectstart = b);
|
|
151
|
-
};
|
|
152
|
-
return d(F(r, "scrollbarElement"), "mousemove", ee), d(F(r, "scrollbarElement"), "mouseleave", R), (t, n) => (A(), g(m, {
|
|
153
|
-
name: I(i).b("fade"),
|
|
154
|
-
persisted: ""
|
|
155
|
-
}, {
|
|
156
|
-
default: z(() => [B(y("div", {
|
|
157
|
-
ref_key: "instance",
|
|
158
|
-
ref: a,
|
|
159
|
-
class: w([I(i).e("bar"), I(i).is(x.value.key)]),
|
|
160
|
-
onMousedown: k,
|
|
161
|
-
onClick: n[0] || (n[0] = V(() => {}, ["stop"]))
|
|
162
|
-
}, [y("div", {
|
|
163
|
-
ref_key: "thumb",
|
|
164
|
-
ref: s,
|
|
165
|
-
class: w(I(i).e("thumb")),
|
|
166
|
-
style: T(C.value),
|
|
167
|
-
onMousedown: O
|
|
168
|
-
}, null, 38)], 34), [[L, e.always || u.value]])]),
|
|
169
|
-
_: 1
|
|
170
|
-
}, 8, ["name"]));
|
|
171
|
-
}
|
|
172
|
-
}), te = /* @__PURE__ */ x({
|
|
173
|
-
__name: "bar",
|
|
174
|
-
props: J,
|
|
175
|
-
setup(e, { expose: t }) {
|
|
176
|
-
let n = e, r = S(q), i = N(0), a = N(0), o = N(""), s = N(""), c = N(1), l = N(1);
|
|
177
|
-
return t({
|
|
178
|
-
handleScroll: (e) => {
|
|
179
|
-
if (e) {
|
|
180
|
-
let t = e.offsetHeight - 4, n = e.offsetWidth - 4;
|
|
181
|
-
a.value = e.scrollTop * 100 / t * c.value, i.value = e.scrollLeft * 100 / n * l.value;
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
update: () => {
|
|
185
|
-
let e = r == null ? void 0 : r.wrapElement;
|
|
186
|
-
if (!e) return;
|
|
187
|
-
let t = e.offsetHeight - 4, i = e.offsetWidth - 4, a = t ** 2 / e.scrollHeight, u = i ** 2 / e.scrollWidth, d = Math.max(a, n.minSize), f = Math.max(u, n.minSize);
|
|
188
|
-
c.value = a / (t - a) / (d / (t - d)), l.value = u / (i - u) / (f / (i - f)), s.value = d + 4 < t ? `${d}px` : "", o.value = f + 4 < i ? `${f}px` : "";
|
|
189
|
-
}
|
|
190
|
-
}), (t, n) => (A(), v(p, null, [b(X, {
|
|
191
|
-
move: i.value,
|
|
192
|
-
ratio: l.value,
|
|
193
|
-
size: o.value,
|
|
194
|
-
always: e.always
|
|
195
|
-
}, null, 8, [
|
|
196
|
-
"move",
|
|
197
|
-
"ratio",
|
|
198
|
-
"size",
|
|
199
|
-
"always"
|
|
200
|
-
]), b(X, {
|
|
201
|
-
move: a.value,
|
|
202
|
-
ratio: c.value,
|
|
203
|
-
size: s.value,
|
|
204
|
-
vertical: "",
|
|
205
|
-
always: e.always
|
|
206
|
-
}, null, 8, [
|
|
207
|
-
"move",
|
|
208
|
-
"ratio",
|
|
209
|
-
"size",
|
|
210
|
-
"always"
|
|
211
|
-
])], 64));
|
|
212
|
-
}
|
|
213
|
-
}), ne = ["tabindex"], Z = "ElScrollbar", Q = n(/* @__PURE__ */ x({
|
|
214
|
-
name: Z,
|
|
215
|
-
__name: "scrollbar",
|
|
216
|
-
props: H,
|
|
217
|
-
emits: U,
|
|
218
|
-
setup(n, { expose: r, emit: o }) {
|
|
219
|
-
let c = n, l = o, f = t("scrollbar"), p, m, b, x = 0, S = 0, D = "", F = {
|
|
220
|
-
bottom: !1,
|
|
221
|
-
top: !1,
|
|
222
|
-
right: !1,
|
|
223
|
-
left: !1
|
|
224
|
-
}, L = N(), B = N(), V = N(), H = N(), U = h(() => {
|
|
225
|
-
let e = {}, t = u(c.height), n = u(c.maxHeight);
|
|
226
|
-
return t && (e.height = t), n && (e.maxHeight = n), [c.wrapStyle, e];
|
|
227
|
-
}), W = h(() => [
|
|
228
|
-
c.wrapClass,
|
|
229
|
-
f.e("wrap"),
|
|
230
|
-
{ [f.em("wrap", "hidden-default")]: !c.native }
|
|
231
|
-
]), G = h(() => [f.e("view"), c.viewClass]), K = (e) => F[e] ?? !1, J = {
|
|
232
|
-
top: "bottom",
|
|
233
|
-
bottom: "top",
|
|
234
|
-
left: "right",
|
|
235
|
-
right: "left"
|
|
236
|
-
}, Y = (e) => {
|
|
237
|
-
let t = J[D];
|
|
238
|
-
if (!t) return;
|
|
239
|
-
let n = e[D], r = e[t];
|
|
240
|
-
n && !F[D] && (F[D] = !0), !r && F[t] && (F[t] = !1);
|
|
241
|
-
}, X = () => {
|
|
242
|
-
if (B.value) {
|
|
243
|
-
var e;
|
|
244
|
-
(e = H.value) == null || e.handleScroll(B.value);
|
|
245
|
-
let t = x, n = S;
|
|
246
|
-
x = B.value.scrollTop, S = B.value.scrollLeft;
|
|
247
|
-
let r = {
|
|
248
|
-
bottom: x + B.value.clientHeight >= B.value.scrollHeight - c.distance,
|
|
249
|
-
top: x <= c.distance && t !== 0,
|
|
250
|
-
right: S + B.value.clientWidth >= B.value.scrollWidth - c.distance && n !== S,
|
|
251
|
-
left: S <= c.distance && n !== 0
|
|
252
|
-
};
|
|
253
|
-
if (l("scroll", {
|
|
254
|
-
scrollTop: x,
|
|
255
|
-
scrollLeft: S
|
|
256
|
-
}), t !== x && (D = x > t ? "bottom" : "top"), n !== S && (D = S > n ? "right" : "left"), c.distance > 0) {
|
|
257
|
-
if (K(D)) return;
|
|
258
|
-
Y(r);
|
|
259
|
-
}
|
|
260
|
-
r[D] && l("end-reached", D);
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
|
-
function Q(t, n) {
|
|
264
|
-
e(t) ? B.value.scrollTo(t) : a(t) && a(n) && B.value.scrollTo(t, n);
|
|
265
|
-
}
|
|
266
|
-
let re = (e) => {
|
|
267
|
-
if (!a(e)) {
|
|
268
|
-
i(Z, "value must be a number");
|
|
269
|
-
return;
|
|
270
|
-
}
|
|
271
|
-
B.value.scrollTop = e;
|
|
272
|
-
}, ie = (e) => {
|
|
273
|
-
if (!a(e)) {
|
|
274
|
-
i(Z, "value must be a number");
|
|
275
|
-
return;
|
|
276
|
-
}
|
|
277
|
-
B.value.scrollLeft = e;
|
|
278
|
-
}, $ = () => {
|
|
279
|
-
var e;
|
|
280
|
-
(e = H.value) == null || e.update(), F[D] = !1;
|
|
281
|
-
};
|
|
282
|
-
return R(() => c.noresize, (e) => {
|
|
283
|
-
e ? (p == null || p(), m == null || m(), b == null || b()) : ({stop: p} = s(V, $), {stop: m} = s(B, $), b = d("resize", $));
|
|
284
|
-
}, { immediate: !0 }), R(() => [c.maxHeight, c.height], () => {
|
|
285
|
-
c.native || C(() => {
|
|
286
|
-
var e;
|
|
287
|
-
$(), B.value && ((e = H.value) == null || e.handleScroll(B.value));
|
|
288
|
-
});
|
|
289
|
-
}), j(q, M({
|
|
290
|
-
scrollbarElement: L,
|
|
291
|
-
wrapElement: B
|
|
292
|
-
})), E(() => {
|
|
293
|
-
B.value && (B.value.scrollTop = x, B.value.scrollLeft = S);
|
|
294
|
-
}), O(() => {
|
|
295
|
-
c.native || C(() => {
|
|
296
|
-
$();
|
|
297
|
-
});
|
|
298
|
-
}), k(() => $()), r({
|
|
299
|
-
wrapRef: B,
|
|
300
|
-
update: $,
|
|
301
|
-
scrollTo: Q,
|
|
302
|
-
setScrollTop: re,
|
|
303
|
-
setScrollLeft: ie,
|
|
304
|
-
handleScroll: X
|
|
305
|
-
}), (e, t) => (A(), v("div", {
|
|
306
|
-
ref_key: "scrollbarRef",
|
|
307
|
-
ref: L,
|
|
308
|
-
class: w(I(f).b())
|
|
309
|
-
}, [y("div", {
|
|
310
|
-
ref_key: "wrapRef",
|
|
311
|
-
ref: B,
|
|
312
|
-
class: w(W.value),
|
|
313
|
-
style: T(U.value),
|
|
314
|
-
tabindex: n.tabindex,
|
|
315
|
-
onScroll: X
|
|
316
|
-
}, [(A(), g(ee(n.tag), {
|
|
317
|
-
id: n.id,
|
|
318
|
-
ref_key: "resizeRef",
|
|
319
|
-
ref: V,
|
|
320
|
-
class: w(G.value),
|
|
321
|
-
style: T(n.viewStyle),
|
|
322
|
-
role: n.role,
|
|
323
|
-
"aria-label": n.ariaLabel,
|
|
324
|
-
"aria-orientation": n.ariaOrientation
|
|
325
|
-
}, {
|
|
326
|
-
default: z(() => [P(e.$slots, "default")]),
|
|
327
|
-
_: 3
|
|
328
|
-
}, 8, [
|
|
329
|
-
"id",
|
|
330
|
-
"class",
|
|
331
|
-
"style",
|
|
332
|
-
"role",
|
|
333
|
-
"aria-label",
|
|
334
|
-
"aria-orientation"
|
|
335
|
-
]))], 46, ne), n.native ? _("v-if", !0) : (A(), g(te, {
|
|
336
|
-
key: 0,
|
|
337
|
-
ref_key: "barRef",
|
|
338
|
-
ref: H,
|
|
339
|
-
always: n.always,
|
|
340
|
-
"min-size": n.minSize
|
|
341
|
-
}, null, 8, ["always", "min-size"]))], 2));
|
|
342
|
-
}
|
|
343
|
-
}));
|
|
344
|
-
//#endregion
|
|
345
|
-
export { U as n, Q as t };
|
package/chunks/slot.CZCo32Cw.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
//#region src/components/utils/mixins/slot.ts
|
|
2
|
-
var e = { methods: {
|
|
3
|
-
getSlotName(e = {}, t = "D", n) {
|
|
4
|
-
let r = e.prop + {
|
|
5
|
-
F: "Form",
|
|
6
|
-
H: "Header",
|
|
7
|
-
E: "Error",
|
|
8
|
-
L: "Label",
|
|
9
|
-
S: "Search",
|
|
10
|
-
T: "Type",
|
|
11
|
-
D: ""
|
|
12
|
-
}[t];
|
|
13
|
-
return n ? n[r] : r;
|
|
14
|
-
},
|
|
15
|
-
getSlotList(e = [], t, n) {
|
|
16
|
-
return n = n.map((e) => e.prop), Object.keys(t).filter((t) => {
|
|
17
|
-
let r = !1;
|
|
18
|
-
return n.includes(t) || e.forEach((e) => {
|
|
19
|
-
t.includes(e) && (r = !0);
|
|
20
|
-
}), r;
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
} };
|
|
24
|
-
//#endregion
|
|
25
|
-
export { e as t };
|