vue-devui 1.0.0-beta.220801 → 1.0.0-beta.220808
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/alert/index.umd.js +1 -1
- package/auto-complete/index.es.js +90 -81
- package/auto-complete/index.umd.js +24 -13
- package/auto-complete/style.css +1 -1
- package/avatar/index.umd.js +1 -1
- package/badge/index.umd.js +1 -1
- package/button/index.es.js +21 -42
- package/button/index.umd.js +9 -9
- package/button/style.css +1 -1
- package/card/index.umd.js +1 -1
- package/checkbox/index.es.js +94 -77
- package/checkbox/index.umd.js +26 -15
- package/collapse/index.es.js +3 -21
- package/collapse/index.umd.js +1 -1
- package/countdown/index.umd.js +1 -1
- package/date-picker-pro/index.es.js +131 -114
- package/date-picker-pro/index.umd.js +23 -12
- package/date-picker-pro/style.css +1 -1
- package/drawer/index.es.js +4 -17
- package/drawer/index.umd.js +1 -1
- package/dropdown/index.es.js +4 -22
- package/dropdown/index.umd.js +1 -1
- package/editable-select/index.es.js +15 -38
- package/editable-select/index.umd.js +1 -1
- package/editable-select/style.css +1 -1
- package/form/index.es.js +85 -71
- package/form/index.umd.js +22 -11
- package/fullscreen/index.umd.js +1 -1
- package/grid/index.es.js +7 -20
- package/grid/index.umd.js +1 -1
- package/icon/index.umd.js +1 -1
- package/image-preview/index.es.js +12 -23
- package/image-preview/index.umd.js +1 -1
- package/input/index.es.js +86 -72
- package/input/index.umd.js +24 -13
- package/input-number/index.es.js +1 -16
- package/input-number/index.umd.js +1 -1
- package/layout/index.umd.js +1 -1
- package/loading/index.es.js +15 -38
- package/loading/index.umd.js +1 -1
- package/loading/style.css +1 -1
- package/mention/index.es.js +82 -66
- package/mention/index.umd.js +25 -14
- package/menu/index.es.js +144 -123
- package/menu/index.umd.js +1 -1
- package/menu/style.css +1 -1
- package/message/index.es.js +29 -34
- package/message/index.umd.js +1 -1
- package/modal/index.es.js +12 -44
- package/modal/index.umd.js +1 -1
- package/notification/index.es.js +4 -21
- package/notification/index.umd.js +1 -1
- package/overlay/index.es.js +1 -1
- package/overlay/index.umd.js +1 -1
- package/package.json +1 -1
- package/pagination/index.umd.js +1 -1
- package/panel/index.umd.js +1 -1
- package/popover/index.es.js +1 -1
- package/popover/index.umd.js +4 -4
- package/progress/index.umd.js +3 -3
- package/radio/index.es.js +91 -75
- package/radio/index.umd.js +27 -16
- package/radio/style.css +1 -1
- package/rate/index.umd.js +1 -1
- package/result/index.umd.js +1 -1
- package/ripple/index.es.js +5 -18
- package/ripple/index.umd.js +1 -1
- package/search/index.es.js +86 -72
- package/search/index.umd.js +26 -15
- package/select/index.es.js +104 -83
- package/select/index.umd.js +26 -15
- package/select/style.css +1 -1
- package/skeleton/index.umd.js +1 -1
- package/slider/index.umd.js +1 -1
- package/splitter/index.es.js +22 -29
- package/splitter/index.umd.js +9 -9
- package/statistic/index.es.js +0 -21
- package/statistic/index.umd.js +1 -1
- package/status/index.umd.js +1 -1
- package/steps/index.umd.js +1 -1
- package/style.css +1 -1
- package/switch/index.es.js +85 -71
- package/switch/index.umd.js +25 -14
- package/switch/style.css +1 -1
- package/table/index.es.js +106 -91
- package/table/index.umd.js +21 -10
- package/table/style.css +1 -1
- package/tabs/index.umd.js +1 -1
- package/tag/index.umd.js +1 -1
- package/textarea/index.es.js +88 -72
- package/textarea/index.umd.js +26 -15
- package/time-picker/index.es.js +97 -88
- package/time-picker/index.umd.js +25 -14
- package/time-picker/style.css +1 -1
- package/time-select/index.es.js +104 -83
- package/time-select/index.umd.js +25 -14
- package/time-select/style.css +1 -1
- package/timeline/index.umd.js +1 -1
- package/tooltip/index.es.js +1 -1
- package/tooltip/index.umd.js +4 -4
- package/tree/index.es.js +132 -104
- package/tree/index.umd.js +26 -15
- package/tree/style.css +1 -1
- package/upload/index.es.js +5 -47
- package/upload/index.umd.js +1 -1
- package/vue-devui.es.js +413 -354
- package/vue-devui.umd.js +32 -21
package/switch/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.devui-fixed-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--devui-shadow, rgba(37, 43, 58, .2));z-index:1050}.devui-fixed-overlay--fade-enter-active,.devui-fixed-overlay--fade-leave-active{transition:opacity .1s cubic-bezier(0,0,1,1)}.devui-fixed-overlay--fade-enter-from,.devui-fixed-overlay--fade-leave-to{opacity:0}.devui-flexible-overlay{position:fixed;border-radius:var(--devui-border-radius, 4px);background-color:var(--devui-connected-overlay-bg, #ffffff);box-shadow:var(--devui-shadow-length-connected-overlay, 0 4px 8px 0) var(--devui-shadow, rgba(37, 43, 58, .2));z-index:1000}.devui-flexible-overlay__arrow{position:absolute;width:8px;height:8px;transform:rotate(45deg);background-color:inherit}.devui-popover__icon-wrap{width:16px;height:16px;margin-right:8px}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--success>g>path{fill:var(--devui-success, #50d4ab)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--success>g>circle,.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--success>g>polygon{fill:var(--devui-light-text, #ffffff)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--warning>g>path{fill:var(--devui-warning, #fac20a)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--warning>g>polygon{fill:var(--devui-light-text, #ffffff)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--info>g>g{fill:var(--devui-info, #5e7ce0)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--info>g>circle{fill:var(--devui-light-text, #ffffff)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--error>g>path{fill:var(--devui-danger, #f66f6a)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--error>g>circle{fill:var(--devui-light-text, #ffffff)}.devui-popover__content.devui-flexible-overlay{display:flex;flex-wrap:wrap;align-items:center;white-space:nowrap;padding:4px 12px;line-height:1.5;border-radius:var(--devui-border-radius-feedback, 4px);color:var(--devui-feedback-overlay-text, #dfe1e6);background-color:var(--devui-feedback-overlay-bg, #464d6e);font-size:var(--devui-font-size-sm, 12px)}.devui-popover__content.devui-flexible-overlay.is-icon{flex-wrap:nowrap}.devui-popover--fade-bottom-enter-from,.devui-popover--fade-bottom-leave-to,.devui-popover--fade-top-enter-from,.devui-popover--fade-top-leave-to{opacity:.8;transform:scaleY(.8)}.devui-popover--fade-bottom-enter-to,.devui-popover--fade-bottom-leave-from,.devui-popover--fade-top-enter-to,.devui-popover--fade-top-leave-from{opacity:1;transform:scaleY(1)}.devui-popover--fade-bottom-enter-active,.devui-popover--fade-top-enter-active{transition:transform .1s cubic-bezier(.16,.75,.5,1),opacity .1s cubic-bezier(.16,.75,.5,1)}.devui-popover--fade-bottom-leave-active,.devui-popover--fade-top-leave-active{transition:transform .1s cubic-bezier(.5,0,.84,.25),opacity .1s cubic-bezier(.5,0,.84,.25)}.devui-popover--fade-left-enter-from,.devui-popover--fade-left-leave-to,.devui-popover--fade-right-enter-from,.devui-popover--fade-right-leave-to{opacity:.8;transform:scaleX(.8)}.devui-popover--fade-left-enter-to,.devui-popover--fade-left-leave-from,.devui-popover--fade-right-enter-to,.devui-popover--fade-right-leave-from{opacity:1;transform:scaleX(1)}.devui-popover--fade-left-enter-active,.devui-popover--fade-right-enter-active{transition:transform .1s cubic-bezier(.16,.75,.5,1),opacity .1s cubic-bezier(.16,.75,.5,1)}.devui-popover--fade-left-leave-active,.devui-popover--fade-right-leave-active{transition:transform .1s cubic-bezier(.5,0,.84,.25),opacity .1s cubic-bezier(.5,0,.84,.25)}.devui-form__label{align-self:flex-start}.devui-form__label--vertical{padding-bottom:8px}.devui-form__label--sm{flex:0 0 80px}.devui-form__label--md{flex:0 0 100px}.devui-form__label--lg{flex:0 0 150px}.devui-form__label--start{text-align:left}.devui-form__label--center{text-align:center}.devui-form__label--end{text-align:end}.devui-form__label-span{display:inline-block;vertical-align:middle;color:var(--devui-text, #252b3a)}.devui-form__label--required:before{content:"*";color:red;display:inline-block;margin-right:8px;margin-left:-12px}.devui-form__label-help{position:relative;top:-.1em;display:inline-block;vertical-align:middle;margin-left:4px;cursor:pointer}.devui-form__control{flex:1 1 auto;position:relative;width:100%}.devui-form__control--horizontal{margin-left:16px}.devui-form__control .devui-star{color:red}.devui-form__control .devui-form__control-container{position:relative}.devui-form__control .devui-form__control-container--horizontal{display:flex;width:100%}.devui-form__control .devui-form__control-container--horizontal .devui-validate-tip{margin:0}.devui-form__control .devui-form__control-container .devui-form__feedback-icon{position:absolute;top:50%;right:0;z-index:1;width:32px;height:16px;text-align:center;visibility:visible;pointer-events:none;transform:translateY(-50%);display:flex;align-items:center;justify-content:center}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--error svg circle{fill:var(--devui-danger, #f66f6a)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--error svg polygon{fill:var(--devui-base-bg, #ffffff)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--success svg circle{fill:var(--devui-success, #50d4ab)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--success svg polygon{fill:var(--devui-base-bg, #ffffff)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--pending svg{animation:loading-keyframes 1s infinite linear}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--pending svg path{fill:var(--devui-brand, #5e7ce0)}.devui-form__control .devui-form__control-content{width:100%}.devui-form__control .devui-form__control-container--has-feedback{display:flex;align-items:center}.devui-form__control .devui-form__control-container--has-feedback input{padding-right:28px}.devui-form__control .devui-form__control-container--feedback-error{border:1px solid #f66f6a;border-radius:2px}.devui-form__control .devui-form__control-container--feedback-error input{background-color:#ffeeed;border-color:transparent}.devui-form__control .devui-form__control-container--feedback-error input:hover{border-color:transparent!important}.devui-form__control .devui-form__control-container--feedback-error input:focus{border-color:transparent!important}.devui-form__control .devui-form__control-container--feedback-error .devui-select-arrow{right:24px!important}.devui-form__control .devui-form__control-info{line-height:1}.devui-form__control .devui-form__control-info .error-message{display:inline-block;min-height:20px;line-height:1.5;font-size:var(--devui-font-size, 14px);color:var(--devui-danger, #f66f6a)}.devui-form__control .devui-form__control-info .devui-form__control-extra{font-size:var(--devui-font-size, 14px);color:var(--devui-aide-text, #71757f);min-height:20px;line-height:1.5;text-align:justify}@keyframes loading-keyframes{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.devui-form__item--horizontal{display:flex;align-items:center;margin-bottom:20px}.devui-form__item--vertical{display:flex;flex-direction:column;margin-bottom:20px}.devui-form__item--error{margin-bottom:0}.devui-form-operation .star{color:red}:host{display:inline-block;font-size:0;vertical-align:middle}.devui-switch{width:36px;height:18px;border-radius:var(--devui-border-radius-full, 100px);background:var(--devui-line, #d7d8da);border:1px solid var(--devui-line, #d7d8da);position:relative;display:inline-block;box-sizing:content-box;overflow:visible;padding:0;margin:0;cursor:pointer;transition:var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1)) all}.devui-switch:not(.devui-switch--checked):hover{border-color:var(--devui-line, #d7d8da)}.devui-switch:active{border-color:var(--devui-brand-active-focus, #344899)}.devui-switch.devui-switch--checked:hover{border-color:var(--devui-brand-active, #526ecc)}.devui-switch .devui-switch__inner-wrapper{display:inline-block;width:100%;height:100%;padding-left:16px;font-size:var(--devui-font-size, 14px);box-sizing:border-box}.devui-switch .devui-switch__inner-wrapper .devui-switch__inner{color:var(--devui-light-text, #ffffff);width:100%;height:100%;text-align:center}.devui-switch.devui-switch--checked .devui-switch__inner-wrapper{padding-left:unset;padding-right:16px}.devui-switch small{width:16px;height:16px;background:var(--devui-light-text, #ffffff);border-radius:var(--devui-border-radius-full, 100px);position:absolute;top:1px;left:1px;transition:var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1)) all}.devui-switch.devui-switch--checked small{left:19px}.devui-switch.devui-switch--lg{width:58px;height:30px}.devui-switch.devui-switch--lg .devui-switch__inner-wrapper{padding-left:28px;font-size:var(--devui-font-size-modal-title, 18px)}.devui-switch.devui-switch--lg.devui-switch--checked .devui-switch__inner-wrapper{padding-left:unset;padding-right:28px}.devui-switch.devui-switch--lg small{width:28px;height:28px;top:1px;left:1px}.devui-switch.devui-switch--lg.devui-switch--checked small{background:var(--devui-light-text, #ffffff);left:29px}.devui-switch.devui-switch--sm{width:30px;height:14px}.devui-switch.devui-switch--sm .devui-switch__inner-wrapper{padding-left:12px;font-size:var(--devui-font-size, 14px)}.devui-switch.devui-switch--sm.devui-switch--checked .devui-switch__inner-wrapper{padding-left:unset;padding-right:12px}.devui-switch.devui-switch--sm small{width:12px;height:12px;position:absolute}.devui-switch.devui-switch--sm.devui-switch--checked small{left:17px}.devui-switch.devui-switch--checked{background:var(--devui-brand, #5e7ce0);border-color:var(--devui-brand, #5e7ce0)}.devui-switch.devui-switch--checked:hover{background:var(--devui-brand-active, #526ecc);border-color:var(--devui-brand-active, #526ecc)}.devui-switch.devui-switch--checked:active{background:var(--devui-brand-active-focus, #344899);border-color:var(--devui-brand-active-focus, #344899)}.devui-switch.devui-switch--disabled,.devui-switch.devui-switch--disabled:hover,.devui-switch.devui-switch--disabled:active,.devui-switch.devui-switch--disabled.devui-switch--checked{cursor:not-allowed}.devui-switch.devui-switch--disabled,.devui-switch.devui-switch--disabled:hover,.devui-switch.devui-switch--disabled:active{background-color:var(--devui-disabled-line, #dfe1e6);border-color:var(--devui-disabled-line, #dfe1e6)}.devui-switch.devui-switch--disabled small,.devui-switch.devui-switch--disabled:hover small,.devui-switch.devui-switch--disabled:active small{background-color:var(--devui-unavailable, #f5f5f5)}.devui-switch.devui-switch--disabled.devui-switch--checked{background-color:var(--devui-icon-fill-active-disabled, #beccfa);border-color:var(--devui-icon-fill-active-disabled, #beccfa)}.devui-switch.devui-switch--disabled.devui-switch--checked small{background-color:var(--devui-light-text, #ffffff)}
|
|
1
|
+
.devui-fixed-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--devui-shadow, rgba(37, 43, 58, .2));z-index:1050}.devui-fixed-overlay--fade-enter-active,.devui-fixed-overlay--fade-leave-active{transition:opacity .1s cubic-bezier(0,0,1,1)}.devui-fixed-overlay--fade-enter-from,.devui-fixed-overlay--fade-leave-to{opacity:0}.devui-flexible-overlay{position:fixed;border-radius:var(--devui-border-radius, 4px);background-color:var(--devui-connected-overlay-bg, #ffffff);box-shadow:var(--devui-shadow-length-connected-overlay, 0 4px 8px 0) var(--devui-shadow, rgba(37, 43, 58, .2));z-index:1000}.devui-flexible-overlay__arrow{position:absolute;width:8px;height:8px;transform:rotate(45deg);background-color:inherit}.devui-popover__icon-wrap{width:16px;height:16px;margin-right:8px}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--success>g>path{fill:var(--devui-success, #50d4ab)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--success>g>circle,.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--success>g>polygon{fill:var(--devui-light-text, #ffffff)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--warning>g>path{fill:var(--devui-warning, #fac20a)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--warning>g>polygon{fill:var(--devui-light-text, #ffffff)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--info>g>g{fill:var(--devui-info, #5e7ce0)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--info>g>circle{fill:var(--devui-light-text, #ffffff)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--error>g>path{fill:var(--devui-danger, #f66f6a)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--error>g>circle{fill:var(--devui-light-text, #ffffff)}.devui-popover__content.devui-flexible-overlay{display:flex;flex-wrap:wrap;align-items:center;white-space:nowrap;padding:4px 12px;line-height:1.5;border-radius:var(--devui-border-radius-feedback, 4px);color:var(--devui-feedback-overlay-text, #dfe1e6);background-color:var(--devui-feedback-overlay-bg, #464d6e);font-size:var(--devui-font-size-sm, 12px)}.devui-popover__content.devui-flexible-overlay.is-icon{flex-wrap:nowrap}.devui-popover--fade-bottom-enter-from,.devui-popover--fade-bottom-leave-to,.devui-popover--fade-top-enter-from,.devui-popover--fade-top-leave-to{opacity:.8;transform:scaleY(.8)}.devui-popover--fade-bottom-enter-to,.devui-popover--fade-bottom-leave-from,.devui-popover--fade-top-enter-to,.devui-popover--fade-top-leave-from{opacity:1;transform:scaleY(1)}.devui-popover--fade-bottom-enter-active,.devui-popover--fade-top-enter-active{transition:transform .1s cubic-bezier(.16,.75,.5,1),opacity .1s cubic-bezier(.16,.75,.5,1)}.devui-popover--fade-bottom-leave-active,.devui-popover--fade-top-leave-active{transition:transform .1s cubic-bezier(.5,0,.84,.25),opacity .1s cubic-bezier(.5,0,.84,.25)}.devui-popover--fade-left-enter-from,.devui-popover--fade-left-leave-to,.devui-popover--fade-right-enter-from,.devui-popover--fade-right-leave-to{opacity:.8;transform:scaleX(.8)}.devui-popover--fade-left-enter-to,.devui-popover--fade-left-leave-from,.devui-popover--fade-right-enter-to,.devui-popover--fade-right-leave-from{opacity:1;transform:scaleX(1)}.devui-popover--fade-left-enter-active,.devui-popover--fade-right-enter-active{transition:transform .1s cubic-bezier(.16,.75,.5,1),opacity .1s cubic-bezier(.16,.75,.5,1)}.devui-popover--fade-left-leave-active,.devui-popover--fade-right-leave-active{transition:transform .1s cubic-bezier(.5,0,.84,.25),opacity .1s cubic-bezier(.5,0,.84,.25)}.devui-form__label{align-self:flex-start}.devui-form__label--vertical{padding-bottom:8px}.devui-form__label--sm{flex:0 0 80px}.devui-form__label--md{flex:0 0 100px}.devui-form__label--lg{flex:0 0 150px}.devui-form__label--start{text-align:left}.devui-form__label--center{text-align:center}.devui-form__label--end{text-align:end}.devui-form__label-span{display:inline-block;vertical-align:middle;color:var(--devui-text, #252b3a)}.devui-form__label--required:before{content:"*";color:red;display:inline-block;margin-right:8px;margin-left:-12px}.devui-form__label-help{position:relative;top:-.1em;display:inline-block;vertical-align:middle;margin-left:4px;cursor:pointer}.devui-form__control{flex:1 1 auto;position:relative;width:100%}.devui-form__control--horizontal{margin-left:16px}.devui-form__control .devui-star{color:red}.devui-form__control .devui-form__control-container{position:relative}.devui-form__control .devui-form__control-container--horizontal{display:flex;width:100%}.devui-form__control .devui-form__control-container--horizontal .devui-validate-tip{margin:0}.devui-form__control .devui-form__control-container .devui-form__feedback-icon{position:absolute;top:50%;right:0;z-index:1;width:32px;height:16px;text-align:center;visibility:visible;pointer-events:none;transform:translateY(-50%);display:flex;align-items:center;justify-content:center}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--error svg circle{fill:var(--devui-danger, #f66f6a)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--error svg polygon{fill:var(--devui-base-bg, #ffffff)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--success svg circle{fill:var(--devui-success, #50d4ab)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--success svg polygon{fill:var(--devui-base-bg, #ffffff)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--pending svg{animation:loading-keyframes 1s infinite linear}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--pending svg path{fill:var(--devui-brand, #5e7ce0)}.devui-form__control .devui-form__control-content{width:100%}.devui-form__control .devui-form__control-container--has-feedback{display:flex;align-items:center}.devui-form__control .devui-form__control-container--has-feedback input{padding-right:28px}.devui-form__control .devui-form__control-container--feedback-error{border:1px solid #f66f6a;border-radius:2px}.devui-form__control .devui-form__control-container--feedback-error input{background-color:#ffeeed;border-color:transparent}.devui-form__control .devui-form__control-container--feedback-error input:hover{border-color:transparent!important}.devui-form__control .devui-form__control-container--feedback-error input:focus{border-color:transparent!important}.devui-form__control .devui-form__control-container--feedback-error .devui-select-arrow{right:24px!important}.devui-form__control .devui-form__control-info{line-height:1}.devui-form__control .devui-form__control-info .error-message{display:inline-block;min-height:20px;line-height:1.5;font-size:var(--devui-font-size, 14px);color:var(--devui-danger, #f66f6a)}.devui-form__control .devui-form__control-info .devui-form__control-extra{font-size:var(--devui-font-size, 14px);color:var(--devui-aide-text, #71757f);min-height:20px;line-height:1.5;text-align:justify}@keyframes loading-keyframes{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.devui-form__item--horizontal{display:flex;align-items:center;margin-bottom:20px}.devui-form__item--vertical{display:flex;flex-direction:column;margin-bottom:20px}.devui-form__item--error{margin-bottom:0}.devui-form-operation .star{color:red}:host{display:inline-block;font-size:0;vertical-align:middle}.devui-switch{width:36px;height:18px;border-radius:var(--devui-border-radius-full, 100px);background:var(--devui-line, #d7d8da);border:1px solid var(--devui-line, #d7d8da);position:relative;display:inline-block;box-sizing:content-box;overflow:visible;padding:0;margin:0;cursor:pointer;vertical-align:bottom;transition:var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1)) all}.devui-switch:not(.devui-switch--checked):hover{border-color:var(--devui-line, #d7d8da)}.devui-switch:active{border-color:var(--devui-brand-active-focus, #344899)}.devui-switch.devui-switch--checked:hover{border-color:var(--devui-brand-active, #526ecc)}.devui-switch .devui-switch__inner-wrapper{display:inline-block;width:100%;height:100%;padding-left:16px;font-size:var(--devui-font-size, 14px);box-sizing:border-box}.devui-switch .devui-switch__inner-wrapper .devui-switch__inner{color:var(--devui-light-text, #ffffff);width:100%;height:100%;text-align:center;overflow:hidden}.devui-switch.devui-switch--checked .devui-switch__inner-wrapper{padding-left:unset;padding-right:16px}.devui-switch small{width:16px;height:16px;background:var(--devui-light-text, #ffffff);border-radius:var(--devui-border-radius-full, 100px);position:absolute;top:1px;left:1px;transition:var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1)) all}.devui-switch.devui-switch--checked small{left:19px}.devui-switch.devui-switch--lg{width:58px;height:28px}.devui-switch.devui-switch--lg .devui-switch__inner-wrapper{padding-left:28px;padding-top:2px;font-size:var(--devui-font-size-modal-title, 18px)}.devui-switch.devui-switch--lg.devui-switch--checked .devui-switch__inner-wrapper{padding-left:unset;padding-right:28px}.devui-switch.devui-switch--lg small{width:26px;height:26px;top:1px;left:1px}.devui-switch.devui-switch--lg.devui-switch--checked small{background:var(--devui-light-text, #ffffff);left:30px}.devui-switch.devui-switch--sm{width:30px;height:15px}.devui-switch.devui-switch--sm .devui-switch__inner-wrapper{padding-left:12px;font-size:var(--devui-font-size-sm, 12px);vertical-align:top}.devui-switch.devui-switch--sm.devui-switch--checked .devui-switch__inner-wrapper{padding-left:unset;padding-right:12px}.devui-switch.devui-switch--sm small{width:12px;height:12px;position:absolute}.devui-switch.devui-switch--sm.devui-switch--checked small{left:17px}.devui-switch.devui-switch--checked{background:var(--devui-brand, #5e7ce0);border-color:var(--devui-brand, #5e7ce0)}.devui-switch.devui-switch--checked:hover{background:var(--devui-brand-active, #526ecc);border-color:var(--devui-brand-active, #526ecc)}.devui-switch.devui-switch--checked:active{background:var(--devui-brand-active-focus, #344899);border-color:var(--devui-brand-active-focus, #344899)}.devui-switch.devui-switch--disabled,.devui-switch.devui-switch--disabled:hover,.devui-switch.devui-switch--disabled:active,.devui-switch.devui-switch--disabled.devui-switch--checked{cursor:not-allowed}.devui-switch.devui-switch--disabled,.devui-switch.devui-switch--disabled:hover,.devui-switch.devui-switch--disabled:active{background-color:var(--devui-disabled-line, #dfe1e6);border-color:var(--devui-disabled-line, #dfe1e6)}.devui-switch.devui-switch--disabled small,.devui-switch.devui-switch--disabled:hover small,.devui-switch.devui-switch--disabled:active small{background-color:var(--devui-unavailable, #f5f5f5)}.devui-switch.devui-switch--disabled.devui-switch--checked{background-color:var(--devui-icon-fill-active-disabled, #beccfa);border-color:var(--devui-icon-fill-active-disabled, #beccfa)}.devui-switch.devui-switch--disabled.devui-switch--checked small{background-color:var(--devui-light-text, #ffffff)}
|
package/table/index.es.js
CHANGED
|
@@ -1,39 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
32
|
-
var __publicField = (obj, key, value) => {
|
|
33
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
34
|
-
return value;
|
|
35
|
-
};
|
|
36
|
-
import { computed, ref, watchEffect, watch, getCurrentInstance, unref, defineComponent, inject, createVNode, mergeProps, toRefs, onMounted, onUnmounted, Transition, nextTick, Comment, Text, h, Fragment, withDirectives, cloneVNode, provide, Teleport, vShow, resolveDynamicComponent, render, resolveDirective, toRef, reactive, withModifiers, createTextVNode, onBeforeUnmount, isVNode, onBeforeMount, onUpdated } from "vue";
|
|
1
|
+
import { computed, ref, watchEffect, watch, getCurrentInstance, unref, defineComponent, inject, createVNode, mergeProps, toRefs, onMounted, onUnmounted, Transition, nextTick, Comment, Text, Fragment, h, withDirectives, cloneVNode, provide, Teleport, vShow, resolveDynamicComponent, render, resolveDirective, toRef, reactive, withModifiers, createTextVNode, onBeforeUnmount, isVNode, onBeforeMount, onUpdated } from "vue";
|
|
37
2
|
import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
|
|
38
3
|
import { onClickOutside } from "@vueuse/core";
|
|
39
4
|
const tableProps = {
|
|
@@ -964,13 +929,14 @@ function useDropdown(id, visible, isOpen, origin, dropdownRef, popDirection, emi
|
|
|
964
929
|
watch([isOpen, dropdownRef], ([isOpenVal, dropdownEl]) => {
|
|
965
930
|
var _a;
|
|
966
931
|
if (isOpenVal) {
|
|
967
|
-
dropdownMap.set(id,
|
|
932
|
+
dropdownMap.set(id, {
|
|
933
|
+
...dropdownMap.get(id),
|
|
968
934
|
menuEl: dropdownEl,
|
|
969
935
|
toggle: () => {
|
|
970
936
|
isOpen.value = false;
|
|
971
937
|
emit("toggle", isOpen.value);
|
|
972
938
|
}
|
|
973
|
-
})
|
|
939
|
+
});
|
|
974
940
|
for (const value of dropdownMap.values()) {
|
|
975
941
|
if ((_a = value.menuEl) == null ? void 0 : _a.contains(origin.value)) {
|
|
976
942
|
value.child = dropdownEl;
|
|
@@ -1669,8 +1635,8 @@ defineComponent({
|
|
|
1669
1635
|
});
|
|
1670
1636
|
class View {
|
|
1671
1637
|
constructor() {
|
|
1672
|
-
|
|
1673
|
-
|
|
1638
|
+
this.top = "50%";
|
|
1639
|
+
this.left = "50%";
|
|
1674
1640
|
}
|
|
1675
1641
|
}
|
|
1676
1642
|
const loadingProps = {
|
|
@@ -1688,13 +1654,9 @@ const loadingProps = {
|
|
|
1688
1654
|
};
|
|
1689
1655
|
class LoadingOptions {
|
|
1690
1656
|
constructor() {
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
__publicField(this, "backdrop", true);
|
|
1695
|
-
__publicField(this, "positionType", "relative");
|
|
1696
|
-
__publicField(this, "view", new View());
|
|
1697
|
-
__publicField(this, "zIndex");
|
|
1657
|
+
this.backdrop = true;
|
|
1658
|
+
this.positionType = "relative";
|
|
1659
|
+
this.view = new View();
|
|
1698
1660
|
}
|
|
1699
1661
|
}
|
|
1700
1662
|
var loading = "";
|
|
@@ -1762,7 +1724,7 @@ var Loading = defineComponent({
|
|
|
1762
1724
|
});
|
|
1763
1725
|
const COMPONENT_CONTAINER_SYMBOL = Symbol("dev_component_container");
|
|
1764
1726
|
function createComponent(component, props, children = null) {
|
|
1765
|
-
const vnode = h(component,
|
|
1727
|
+
const vnode = h(component, { ...props }, children);
|
|
1766
1728
|
const container = document.createElement("div");
|
|
1767
1729
|
vnode[COMPONENT_CONTAINER_SYMBOL] = container;
|
|
1768
1730
|
render(vnode, container);
|
|
@@ -1849,9 +1811,12 @@ const removeAttribute = (el) => {
|
|
|
1849
1811
|
};
|
|
1850
1812
|
const handleProps = (el, vprops) => {
|
|
1851
1813
|
var _a;
|
|
1852
|
-
const props =
|
|
1814
|
+
const props = {
|
|
1815
|
+
...new LoadingOptions(),
|
|
1816
|
+
...vprops
|
|
1817
|
+
};
|
|
1853
1818
|
const loadingTemplateRef = props.loadingTemplateRef;
|
|
1854
|
-
const loadingInstance = createComponent(loadingConstructor,
|
|
1819
|
+
const loadingInstance = createComponent(loadingConstructor, { ...props }, loadingTemplateRef ? () => loadingTemplateRef : null);
|
|
1855
1820
|
el.style.position = props.positionType;
|
|
1856
1821
|
el.options = props;
|
|
1857
1822
|
el.instance = loadingInstance;
|
|
@@ -2618,7 +2583,7 @@ var lodash = { exports: {} };
|
|
|
2618
2583
|
var objectCtorString = funcToString.call(Object2);
|
|
2619
2584
|
var oldDash = root._;
|
|
2620
2585
|
var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
2621
|
-
var
|
|
2586
|
+
var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1;
|
|
2622
2587
|
var defineProperty = function() {
|
|
2623
2588
|
try {
|
|
2624
2589
|
var func = getNative(Object2, "defineProperty");
|
|
@@ -2628,11 +2593,11 @@ var lodash = { exports: {} };
|
|
|
2628
2593
|
}
|
|
2629
2594
|
}();
|
|
2630
2595
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
2631
|
-
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer =
|
|
2632
|
-
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"),
|
|
2633
|
-
var metaMap =
|
|
2596
|
+
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
|
|
2597
|
+
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
|
2598
|
+
var metaMap = WeakMap && new WeakMap();
|
|
2634
2599
|
var realNames = {};
|
|
2635
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(
|
|
2600
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap);
|
|
2636
2601
|
var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
|
|
2637
2602
|
function lodash2(value) {
|
|
2638
2603
|
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
|
@@ -3880,7 +3845,7 @@ var lodash = { exports: {} };
|
|
|
3880
3845
|
}
|
|
3881
3846
|
function cloneArrayBuffer(arrayBuffer) {
|
|
3882
3847
|
var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
3883
|
-
new
|
|
3848
|
+
new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
|
|
3884
3849
|
return result2;
|
|
3885
3850
|
}
|
|
3886
3851
|
function cloneDataView(dataView, isDeep) {
|
|
@@ -4462,7 +4427,7 @@ var lodash = { exports: {} };
|
|
|
4462
4427
|
object4 = object4.buffer;
|
|
4463
4428
|
other = other.buffer;
|
|
4464
4429
|
case arrayBufferTag:
|
|
4465
|
-
if (object4.byteLength != other.byteLength || !equalFunc(new
|
|
4430
|
+
if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array(object4), new Uint8Array(other))) {
|
|
4466
4431
|
return false;
|
|
4467
4432
|
}
|
|
4468
4433
|
return true;
|
|
@@ -4624,7 +4589,7 @@ var lodash = { exports: {} };
|
|
|
4624
4589
|
return result2;
|
|
4625
4590
|
};
|
|
4626
4591
|
var getTag = baseGetTag;
|
|
4627
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag ||
|
|
4592
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
4628
4593
|
getTag = function(value) {
|
|
4629
4594
|
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
|
|
4630
4595
|
if (ctorString) {
|
|
@@ -7451,7 +7416,8 @@ const commonProps = {
|
|
|
7451
7416
|
default: "md"
|
|
7452
7417
|
}
|
|
7453
7418
|
};
|
|
7454
|
-
const checkboxProps =
|
|
7419
|
+
const checkboxProps = {
|
|
7420
|
+
...commonProps,
|
|
7455
7421
|
checked: {
|
|
7456
7422
|
type: Boolean,
|
|
7457
7423
|
default: false
|
|
@@ -7481,8 +7447,9 @@ const checkboxProps = __spreadProps(__spreadValues({}, commonProps), {
|
|
|
7481
7447
|
type: Boolean,
|
|
7482
7448
|
default: false
|
|
7483
7449
|
}
|
|
7484
|
-
}
|
|
7485
|
-
const checkboxGroupProps =
|
|
7450
|
+
};
|
|
7451
|
+
const checkboxGroupProps = {
|
|
7452
|
+
...commonProps,
|
|
7486
7453
|
modelValue: {
|
|
7487
7454
|
type: Array,
|
|
7488
7455
|
required: true
|
|
@@ -7519,7 +7486,7 @@ const checkboxGroupProps = __spreadProps(__spreadValues({}, commonProps), {
|
|
|
7519
7486
|
type: String,
|
|
7520
7487
|
default: ""
|
|
7521
7488
|
}
|
|
7522
|
-
}
|
|
7489
|
+
};
|
|
7523
7490
|
const checkboxGroupInjectionKey = Symbol("d-checkbox-group");
|
|
7524
7491
|
const formProps = {
|
|
7525
7492
|
data: {
|
|
@@ -7598,7 +7565,10 @@ function useFormValidation(itemContexts) {
|
|
|
7598
7565
|
try {
|
|
7599
7566
|
await field.validate("");
|
|
7600
7567
|
} catch (err) {
|
|
7601
|
-
errors =
|
|
7568
|
+
errors = {
|
|
7569
|
+
...errors,
|
|
7570
|
+
...err
|
|
7571
|
+
};
|
|
7602
7572
|
}
|
|
7603
7573
|
}
|
|
7604
7574
|
if (!Object.keys(errors).length) {
|
|
@@ -7655,11 +7625,12 @@ defineComponent({
|
|
|
7655
7625
|
}, {
|
|
7656
7626
|
deep: true
|
|
7657
7627
|
});
|
|
7658
|
-
provide(FORM_TOKEN, reactive(
|
|
7628
|
+
provide(FORM_TOKEN, reactive({
|
|
7629
|
+
...toRefs(props),
|
|
7659
7630
|
emit: ctx.emit,
|
|
7660
7631
|
addItemContext,
|
|
7661
7632
|
removeItemContext
|
|
7662
|
-
}))
|
|
7633
|
+
}));
|
|
7663
7634
|
ctx.expose({
|
|
7664
7635
|
validate,
|
|
7665
7636
|
validateFields,
|
|
@@ -8234,7 +8205,7 @@ var FormControl = defineComponent({
|
|
|
8234
8205
|
}
|
|
8235
8206
|
});
|
|
8236
8207
|
function _extends() {
|
|
8237
|
-
_extends = Object.assign
|
|
8208
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
8238
8209
|
for (var i = 1; i < arguments.length; i++) {
|
|
8239
8210
|
var source = arguments[i];
|
|
8240
8211
|
for (var key in source) {
|
|
@@ -8253,13 +8224,13 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
8253
8224
|
_setPrototypeOf(subClass, superClass);
|
|
8254
8225
|
}
|
|
8255
8226
|
function _getPrototypeOf(o) {
|
|
8256
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
|
|
8227
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
|
|
8257
8228
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
8258
8229
|
};
|
|
8259
8230
|
return _getPrototypeOf(o);
|
|
8260
8231
|
}
|
|
8261
8232
|
function _setPrototypeOf(o, p) {
|
|
8262
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
8233
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
8263
8234
|
o2.__proto__ = p2;
|
|
8264
8235
|
return o2;
|
|
8265
8236
|
};
|
|
@@ -8282,7 +8253,7 @@ function _isNativeReflectConstruct() {
|
|
|
8282
8253
|
}
|
|
8283
8254
|
function _construct(Parent, args, Class) {
|
|
8284
8255
|
if (_isNativeReflectConstruct()) {
|
|
8285
|
-
_construct = Reflect.construct;
|
|
8256
|
+
_construct = Reflect.construct.bind();
|
|
8286
8257
|
} else {
|
|
8287
8258
|
_construct = function _construct2(Parent2, args2, Class2) {
|
|
8288
8259
|
var a = [null];
|
|
@@ -8560,9 +8531,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
|
|
|
8560
8531
|
errors.push(format(options.messages.whitespace, rule.fullField));
|
|
8561
8532
|
}
|
|
8562
8533
|
};
|
|
8534
|
+
var urlReg;
|
|
8535
|
+
var getUrlRegex = function() {
|
|
8536
|
+
if (urlReg) {
|
|
8537
|
+
return urlReg;
|
|
8538
|
+
}
|
|
8539
|
+
var word = "[a-fA-F\\d:]";
|
|
8540
|
+
var b = function b2(options) {
|
|
8541
|
+
return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
|
|
8542
|
+
};
|
|
8543
|
+
var v4 = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}";
|
|
8544
|
+
var v6seg = "[a-fA-F\\d]{1,4}";
|
|
8545
|
+
var v6 = ("\n(?:\n(?:" + v6seg + ":){7}(?:" + v6seg + "|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:" + v6seg + ":){6}(?:" + v4 + "|:" + v6seg + "|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:" + v6seg + ":){5}(?::" + v4 + "|(?::" + v6seg + "){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:" + v6seg + ":){4}(?:(?::" + v6seg + "){0,1}:" + v4 + "|(?::" + v6seg + "){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:" + v6seg + ":){3}(?:(?::" + v6seg + "){0,2}:" + v4 + "|(?::" + v6seg + "){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:" + v6seg + ":){2}(?:(?::" + v6seg + "){0,3}:" + v4 + "|(?::" + v6seg + "){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:" + v6seg + ":){1}(?:(?::" + v6seg + "){0,4}:" + v4 + "|(?::" + v6seg + "){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::" + v6seg + "){0,5}:" + v4 + "|(?::" + v6seg + "){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim();
|
|
8546
|
+
var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
|
|
8547
|
+
var v4exact = new RegExp("^" + v4 + "$");
|
|
8548
|
+
var v6exact = new RegExp("^" + v6 + "$");
|
|
8549
|
+
var ip = function ip2(options) {
|
|
8550
|
+
return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
|
|
8551
|
+
};
|
|
8552
|
+
ip.v4 = function(options) {
|
|
8553
|
+
return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
|
|
8554
|
+
};
|
|
8555
|
+
ip.v6 = function(options) {
|
|
8556
|
+
return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
|
|
8557
|
+
};
|
|
8558
|
+
var protocol = "(?:(?:[a-z]+:)?//)";
|
|
8559
|
+
var auth = "(?:\\S+(?::\\S*)?@)?";
|
|
8560
|
+
var ipv4 = ip.v4().source;
|
|
8561
|
+
var ipv6 = ip.v6().source;
|
|
8562
|
+
var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
|
|
8563
|
+
var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
|
|
8564
|
+
var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
|
|
8565
|
+
var port = "(?::\\d{2,5})?";
|
|
8566
|
+
var path = '(?:[/?#][^\\s"]*)?';
|
|
8567
|
+
var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
|
|
8568
|
+
urlReg = new RegExp("(?:^" + regex + "$)", "i");
|
|
8569
|
+
return urlReg;
|
|
8570
|
+
};
|
|
8563
8571
|
var pattern$2 = {
|
|
8564
8572
|
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
|
|
8565
|
-
url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", "i"),
|
|
8566
8573
|
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
8567
8574
|
};
|
|
8568
8575
|
var types = {
|
|
@@ -8604,7 +8611,7 @@ var types = {
|
|
|
8604
8611
|
return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
|
|
8605
8612
|
},
|
|
8606
8613
|
url: function url(value) {
|
|
8607
|
-
return typeof value === "string" && value.length <= 2048 && !!value.match(
|
|
8614
|
+
return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
|
|
8608
8615
|
},
|
|
8609
8616
|
hex: function hex(value) {
|
|
8610
8617
|
return typeof value === "string" && !!value.match(pattern$2.hex);
|
|
@@ -9179,7 +9186,17 @@ var Schema = /* @__PURE__ */ function() {
|
|
|
9179
9186
|
if (rule.asyncValidator) {
|
|
9180
9187
|
res = rule.asyncValidator(rule, data.value, cb, data.source, options);
|
|
9181
9188
|
} else if (rule.validator) {
|
|
9182
|
-
|
|
9189
|
+
try {
|
|
9190
|
+
res = rule.validator(rule, data.value, cb, data.source, options);
|
|
9191
|
+
} catch (error) {
|
|
9192
|
+
console.error == null ? void 0 : console.error(error);
|
|
9193
|
+
if (!options.suppressValidatorError) {
|
|
9194
|
+
setTimeout(function() {
|
|
9195
|
+
throw error;
|
|
9196
|
+
}, 0);
|
|
9197
|
+
}
|
|
9198
|
+
cb(error.message);
|
|
9199
|
+
}
|
|
9183
9200
|
if (res === true) {
|
|
9184
9201
|
cb();
|
|
9185
9202
|
} else if (res === false) {
|
|
@@ -9300,10 +9317,7 @@ function useFormItemValidate(props, _rules) {
|
|
|
9300
9317
|
} else {
|
|
9301
9318
|
return rule.trigger === triggerVal;
|
|
9302
9319
|
}
|
|
9303
|
-
}).map((
|
|
9304
|
-
var rule = __objRest(_a, []);
|
|
9305
|
-
return rule;
|
|
9306
|
-
});
|
|
9320
|
+
}).map(({ ...rule }) => rule);
|
|
9307
9321
|
};
|
|
9308
9322
|
const onValidateSuccess = () => {
|
|
9309
9323
|
validateState.value = "success";
|
|
@@ -9376,15 +9390,12 @@ defineComponent({
|
|
|
9376
9390
|
props: formItemProps,
|
|
9377
9391
|
setup(props, ctx) {
|
|
9378
9392
|
const formContext = inject(FORM_TOKEN);
|
|
9379
|
-
const
|
|
9393
|
+
const {
|
|
9380
9394
|
messageType: itemMessageType,
|
|
9381
9395
|
popPosition: itemPopPosition,
|
|
9382
|
-
showFeedback: itemShowFeedback
|
|
9383
|
-
|
|
9384
|
-
|
|
9385
|
-
"popPosition",
|
|
9386
|
-
"showFeedback"
|
|
9387
|
-
]);
|
|
9396
|
+
showFeedback: itemShowFeedback,
|
|
9397
|
+
...otherProps
|
|
9398
|
+
} = toRefs(props);
|
|
9388
9399
|
const {
|
|
9389
9400
|
label,
|
|
9390
9401
|
helpTips,
|
|
@@ -9414,7 +9425,8 @@ defineComponent({
|
|
|
9414
9425
|
labelAlign: formContext.labelAlign
|
|
9415
9426
|
}));
|
|
9416
9427
|
provide(LABEL_DATA, labelData);
|
|
9417
|
-
const context = reactive(
|
|
9428
|
+
const context = reactive({
|
|
9429
|
+
...otherProps,
|
|
9418
9430
|
showFeedback,
|
|
9419
9431
|
messageType,
|
|
9420
9432
|
popPosition,
|
|
@@ -9424,7 +9436,7 @@ defineComponent({
|
|
|
9424
9436
|
validate,
|
|
9425
9437
|
resetField,
|
|
9426
9438
|
clearValidate
|
|
9427
|
-
})
|
|
9439
|
+
});
|
|
9428
9440
|
provide(FORM_ITEM_TOKEN, context);
|
|
9429
9441
|
ctx.expose({
|
|
9430
9442
|
resetField,
|
|
@@ -9449,8 +9461,8 @@ defineComponent({
|
|
|
9449
9461
|
"extra-info": extraInfo.value
|
|
9450
9462
|
}, {
|
|
9451
9463
|
default: () => {
|
|
9452
|
-
var
|
|
9453
|
-
return [(_b = (
|
|
9464
|
+
var _a, _b;
|
|
9465
|
+
return [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)];
|
|
9454
9466
|
}
|
|
9455
9467
|
})]);
|
|
9456
9468
|
}
|
|
@@ -9751,9 +9763,10 @@ defineComponent({
|
|
|
9751
9763
|
value: opt
|
|
9752
9764
|
});
|
|
9753
9765
|
} else if (typeof opt === "object") {
|
|
9754
|
-
mergedOpt = Object.assign({}, defaultOpt,
|
|
9766
|
+
mergedOpt = Object.assign({}, defaultOpt, {
|
|
9767
|
+
...opt,
|
|
9755
9768
|
label: opt.name
|
|
9756
|
-
})
|
|
9769
|
+
});
|
|
9757
9770
|
}
|
|
9758
9771
|
return createVNode(Checkbox, mergedOpt, null);
|
|
9759
9772
|
});
|
|
@@ -9870,7 +9883,7 @@ function useFilterMultiple(filterList, ctx) {
|
|
|
9870
9883
|
});
|
|
9871
9884
|
const _halfChecked = ref(false);
|
|
9872
9885
|
filterList == null ? void 0 : filterList.forEach((item) => {
|
|
9873
|
-
_checkList.value.push(
|
|
9886
|
+
_checkList.value.push({ checked: false, ...item });
|
|
9874
9887
|
});
|
|
9875
9888
|
watch(_checkList, (list2) => {
|
|
9876
9889
|
if (!list2.length) {
|
|
@@ -11064,6 +11077,8 @@ var Table = defineComponent({
|
|
|
11064
11077
|
"ref": tableRef,
|
|
11065
11078
|
"class": ns2.b(),
|
|
11066
11079
|
"style": styles.value
|
|
11080
|
+
}, [createVNode("div", {
|
|
11081
|
+
"class": ns2.e("container")
|
|
11067
11082
|
}, [createVNode("div", {
|
|
11068
11083
|
"ref": hiddenColumns,
|
|
11069
11084
|
"class": "hidden-columns"
|
|
@@ -11075,7 +11090,7 @@ var Table = defineComponent({
|
|
|
11075
11090
|
"is-empty": isEmpty2.value
|
|
11076
11091
|
}, null), isEmpty2.value && createVNode("div", {
|
|
11077
11092
|
"class": ns2.e("empty")
|
|
11078
|
-
}, [ctx.slots.empty ? ctx.slots.empty() : props.empty])]), [[resolveDirective("dLoading"), props.showLoading]]);
|
|
11093
|
+
}, [ctx.slots.empty ? ctx.slots.empty() : props.empty])])]), [[resolveDirective("dLoading"), props.showLoading]]);
|
|
11079
11094
|
};
|
|
11080
11095
|
}
|
|
11081
11096
|
});
|