vue-devui 1.0.0-rc.14 → 1.0.0-rc.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/README.md +3 -0
  2. package/alert/index.umd.js +1 -1
  3. package/auto-complete/index.es.js +92 -81
  4. package/auto-complete/index.umd.js +24 -13
  5. package/auto-complete/style.css +1 -1
  6. package/avatar/index.umd.js +1 -1
  7. package/badge/index.umd.js +1 -1
  8. package/button/index.es.js +21 -42
  9. package/button/index.umd.js +9 -9
  10. package/button/style.css +1 -1
  11. package/card/index.umd.js +1 -1
  12. package/checkbox/index.es.js +96 -77
  13. package/checkbox/index.umd.js +26 -15
  14. package/collapse/index.es.js +3 -21
  15. package/collapse/index.umd.js +1 -1
  16. package/countdown/index.umd.js +1 -1
  17. package/date-picker-pro/index.es.js +133 -114
  18. package/date-picker-pro/index.umd.js +23 -12
  19. package/date-picker-pro/style.css +1 -1
  20. package/drawer/index.es.js +5 -18
  21. package/drawer/index.umd.js +1 -1
  22. package/dropdown/index.es.js +6 -31
  23. package/dropdown/index.umd.js +1 -1
  24. package/editable-select/index.es.js +104 -99
  25. package/editable-select/index.umd.js +1 -1
  26. package/editable-select/style.css +1 -1
  27. package/form/index.es.js +87 -71
  28. package/form/index.umd.js +22 -11
  29. package/fullscreen/index.umd.js +1 -1
  30. package/grid/index.es.js +7 -20
  31. package/grid/index.umd.js +1 -1
  32. package/icon/index.umd.js +1 -1
  33. package/image-preview/index.es.js +12 -23
  34. package/image-preview/index.umd.js +1 -1
  35. package/input/index.es.js +88 -72
  36. package/input/index.umd.js +24 -13
  37. package/input-number/index.es.js +1 -16
  38. package/input-number/index.umd.js +1 -1
  39. package/layout/index.umd.js +1 -1
  40. package/loading/index.es.js +15 -38
  41. package/loading/index.umd.js +1 -1
  42. package/loading/style.css +1 -1
  43. package/mention/index.d.ts +7 -0
  44. package/mention/index.es.js +8326 -0
  45. package/mention/index.umd.js +47 -0
  46. package/mention/package.json +7 -0
  47. package/mention/style.css +1 -0
  48. package/menu/index.d.ts +7 -0
  49. package/menu/index.es.js +927 -0
  50. package/menu/index.umd.js +1 -0
  51. package/menu/package.json +7 -0
  52. package/menu/style.css +1 -0
  53. package/message/index.d.ts +7 -0
  54. package/message/index.es.js +533 -0
  55. package/message/index.umd.js +1 -0
  56. package/message/package.json +7 -0
  57. package/message/style.css +1 -0
  58. package/modal/index.es.js +14 -44
  59. package/modal/index.umd.js +1 -1
  60. package/notification/index.es.js +16 -22
  61. package/notification/index.umd.js +1 -1
  62. package/nuxt/components/Mention.js +3 -0
  63. package/nuxt/components/Menu.js +3 -0
  64. package/nuxt/components/MenuItem.js +3 -0
  65. package/nuxt/components/Message.js +3 -0
  66. package/nuxt/components/SubMenu.js +3 -0
  67. package/nuxt/components/animationInjectionKey.js +3 -0
  68. package/nuxt/components/mentionProps.js +3 -0
  69. package/nuxt/components/messageProps.js +3 -0
  70. package/nuxt/components/roundInjectionKey.js +3 -0
  71. package/nuxt/components/skeletonItemProps.js +3 -0
  72. package/nuxt/components/treeNodeProps.js +3 -0
  73. package/overlay/index.es.js +1 -1
  74. package/overlay/index.umd.js +1 -1
  75. package/package.json +5 -3
  76. package/pagination/index.umd.js +1 -1
  77. package/panel/index.umd.js +1 -1
  78. package/popover/index.es.js +3 -1
  79. package/popover/index.umd.js +6 -6
  80. package/progress/index.umd.js +3 -3
  81. package/radio/index.es.js +93 -75
  82. package/radio/index.umd.js +27 -16
  83. package/radio/style.css +1 -1
  84. package/rate/index.umd.js +1 -1
  85. package/result/index.umd.js +1 -1
  86. package/ripple/index.es.js +5 -18
  87. package/ripple/index.umd.js +1 -1
  88. package/search/index.es.js +104 -75
  89. package/search/index.umd.js +26 -15
  90. package/search/style.css +1 -1
  91. package/select/index.es.js +132 -111
  92. package/select/index.umd.js +26 -15
  93. package/select/style.css +1 -1
  94. package/skeleton/index.es.js +87 -261
  95. package/skeleton/index.umd.js +1 -1
  96. package/skeleton/style.css +1 -1
  97. package/slider/index.umd.js +1 -1
  98. package/splitter/index.es.js +22 -29
  99. package/splitter/index.umd.js +9 -9
  100. package/statistic/index.es.js +0 -21
  101. package/statistic/index.umd.js +1 -1
  102. package/status/index.umd.js +1 -1
  103. package/steps/index.umd.js +1 -1
  104. package/style.css +1 -1
  105. package/switch/index.es.js +87 -71
  106. package/switch/index.umd.js +25 -14
  107. package/switch/style.css +1 -1
  108. package/table/index.es.js +153 -102
  109. package/table/index.umd.js +22 -11
  110. package/table/style.css +1 -1
  111. package/tabs/index.umd.js +1 -1
  112. package/tag/index.umd.js +1 -1
  113. package/textarea/index.es.js +91 -73
  114. package/textarea/index.umd.js +26 -15
  115. package/time-picker/index.es.js +99 -88
  116. package/time-picker/index.umd.js +25 -14
  117. package/time-picker/style.css +1 -1
  118. package/time-select/index.es.js +132 -111
  119. package/time-select/index.umd.js +25 -14
  120. package/time-select/style.css +1 -1
  121. package/timeline/index.umd.js +1 -1
  122. package/tooltip/index.es.js +1 -1
  123. package/tooltip/index.umd.js +4 -4
  124. package/tree/index.es.js +11148 -9855
  125. package/tree/index.umd.js +29 -18
  126. package/tree/style.css +1 -1
  127. package/upload/index.es.js +17 -48
  128. package/upload/index.umd.js +1 -1
  129. package/vue-devui.es.js +11421 -8832
  130. package/vue-devui.umd.js +34 -22
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
- var __defProp = Object.defineProperty;
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, 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 = {
@@ -124,6 +89,10 @@ const tableProps = {
124
89
  indent: {
125
90
  type: Number,
126
91
  default: 16
92
+ },
93
+ lazy: {
94
+ type: Boolean,
95
+ default: false
127
96
  }
128
97
  };
129
98
  const TABLE_TOKEN = Symbol();
@@ -861,14 +830,7 @@ function subscribeEvent(dom, type4, callback) {
861
830
  dom == null ? void 0 : dom.removeEventListener(type4, callback);
862
831
  };
863
832
  }
864
- const useDropdownEvent = ({
865
- id,
866
- isOpen,
867
- origin,
868
- dropdownRef,
869
- props,
870
- emit
871
- }) => {
833
+ const useDropdownEvent = ({ id, isOpen, origin, dropdownRef, props, emit }) => {
872
834
  let overlayEnter = false;
873
835
  let originEnter = false;
874
836
  const { trigger, closeScope, closeOnMouseLeaveMenu } = toRefs(props);
@@ -967,13 +929,14 @@ function useDropdown(id, visible, isOpen, origin, dropdownRef, popDirection, emi
967
929
  watch([isOpen, dropdownRef], ([isOpenVal, dropdownEl]) => {
968
930
  var _a;
969
931
  if (isOpenVal) {
970
- dropdownMap.set(id, __spreadProps(__spreadValues({}, dropdownMap.get(id)), {
932
+ dropdownMap.set(id, {
933
+ ...dropdownMap.get(id),
971
934
  menuEl: dropdownEl,
972
935
  toggle: () => {
973
936
  isOpen.value = false;
974
937
  emit("toggle", isOpen.value);
975
938
  }
976
- }));
939
+ });
977
940
  for (const value of dropdownMap.values()) {
978
941
  if ((_a = value.menuEl) == null ? void 0 : _a.contains(origin.value)) {
979
942
  value.child = dropdownEl;
@@ -1004,7 +967,7 @@ function useOverlayProps(props, currentPosition, isOpen) {
1004
967
  [`${overlayClass.value}`]: true
1005
968
  }));
1006
969
  const handlePositionChange = (pos) => {
1007
- currentPosition.value = pos.includes("top") || pos.includes("end") ? "top" : "bottom";
970
+ currentPosition.value = pos.includes("top") || pos.includes("right-end") || pos.includes("left-end") ? "top" : "bottom";
1008
971
  };
1009
972
  watch(isOpen, (isOpenVal) => {
1010
973
  overlayModelValue.value = destroyOnHide.value ? isOpenVal : true;
@@ -1672,8 +1635,8 @@ defineComponent({
1672
1635
  });
1673
1636
  class View {
1674
1637
  constructor() {
1675
- __publicField(this, "top", "50%");
1676
- __publicField(this, "left", "50%");
1638
+ this.top = "50%";
1639
+ this.left = "50%";
1677
1640
  }
1678
1641
  }
1679
1642
  const loadingProps = {
@@ -1691,13 +1654,9 @@ const loadingProps = {
1691
1654
  };
1692
1655
  class LoadingOptions {
1693
1656
  constructor() {
1694
- __publicField(this, "target");
1695
- __publicField(this, "message");
1696
- __publicField(this, "loadingTemplateRef");
1697
- __publicField(this, "backdrop", true);
1698
- __publicField(this, "positionType", "relative");
1699
- __publicField(this, "view", new View());
1700
- __publicField(this, "zIndex");
1657
+ this.backdrop = true;
1658
+ this.positionType = "relative";
1659
+ this.view = new View();
1701
1660
  }
1702
1661
  }
1703
1662
  var loading = "";
@@ -1765,7 +1724,7 @@ var Loading = defineComponent({
1765
1724
  });
1766
1725
  const COMPONENT_CONTAINER_SYMBOL = Symbol("dev_component_container");
1767
1726
  function createComponent(component, props, children = null) {
1768
- const vnode = h(component, __spreadValues({}, props), children);
1727
+ const vnode = h(component, { ...props }, children);
1769
1728
  const container = document.createElement("div");
1770
1729
  vnode[COMPONENT_CONTAINER_SYMBOL] = container;
1771
1730
  render(vnode, container);
@@ -1852,9 +1811,12 @@ const removeAttribute = (el) => {
1852
1811
  };
1853
1812
  const handleProps = (el, vprops) => {
1854
1813
  var _a;
1855
- const props = __spreadValues(__spreadValues({}, new LoadingOptions()), vprops);
1814
+ const props = {
1815
+ ...new LoadingOptions(),
1816
+ ...vprops
1817
+ };
1856
1818
  const loadingTemplateRef = props.loadingTemplateRef;
1857
- const loadingInstance = createComponent(loadingConstructor, __spreadValues({}, props), loadingTemplateRef ? () => loadingTemplateRef : null);
1819
+ const loadingInstance = createComponent(loadingConstructor, { ...props }, loadingTemplateRef ? () => loadingTemplateRef : null);
1858
1820
  el.style.position = props.positionType;
1859
1821
  el.options = props;
1860
1822
  el.instance = loadingInstance;
@@ -2621,7 +2583,7 @@ var lodash = { exports: {} };
2621
2583
  var objectCtorString = funcToString.call(Object2);
2622
2584
  var oldDash = root._;
2623
2585
  var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
2624
- var Buffer2 = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.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;
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;
2625
2587
  var defineProperty = function() {
2626
2588
  try {
2627
2589
  var func = getNative(Object2, "defineProperty");
@@ -2631,11 +2593,11 @@ var lodash = { exports: {} };
2631
2593
  }
2632
2594
  }();
2633
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;
2634
- var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.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;
2635
- var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap2 = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
2636
- var metaMap = WeakMap2 && new WeakMap2();
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();
2637
2599
  var realNames = {};
2638
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2);
2600
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap);
2639
2601
  var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
2640
2602
  function lodash2(value) {
2641
2603
  if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
@@ -3883,7 +3845,7 @@ var lodash = { exports: {} };
3883
3845
  }
3884
3846
  function cloneArrayBuffer(arrayBuffer) {
3885
3847
  var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
3886
- new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));
3848
+ new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
3887
3849
  return result2;
3888
3850
  }
3889
3851
  function cloneDataView(dataView, isDeep) {
@@ -4465,7 +4427,7 @@ var lodash = { exports: {} };
4465
4427
  object4 = object4.buffer;
4466
4428
  other = other.buffer;
4467
4429
  case arrayBufferTag:
4468
- if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object4), new Uint8Array2(other))) {
4430
+ if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array(object4), new Uint8Array(other))) {
4469
4431
  return false;
4470
4432
  }
4471
4433
  return true;
@@ -4627,7 +4589,7 @@ var lodash = { exports: {} };
4627
4589
  return result2;
4628
4590
  };
4629
4591
  var getTag = baseGetTag;
4630
- if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
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) {
4631
4593
  getTag = function(value) {
4632
4594
  var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
4633
4595
  if (ctorString) {
@@ -7454,7 +7416,8 @@ const commonProps = {
7454
7416
  default: "md"
7455
7417
  }
7456
7418
  };
7457
- const checkboxProps = __spreadProps(__spreadValues({}, commonProps), {
7419
+ const checkboxProps = {
7420
+ ...commonProps,
7458
7421
  checked: {
7459
7422
  type: Boolean,
7460
7423
  default: false
@@ -7484,8 +7447,9 @@ const checkboxProps = __spreadProps(__spreadValues({}, commonProps), {
7484
7447
  type: Boolean,
7485
7448
  default: false
7486
7449
  }
7487
- });
7488
- const checkboxGroupProps = __spreadProps(__spreadValues({}, commonProps), {
7450
+ };
7451
+ const checkboxGroupProps = {
7452
+ ...commonProps,
7489
7453
  modelValue: {
7490
7454
  type: Array,
7491
7455
  required: true
@@ -7522,7 +7486,7 @@ const checkboxGroupProps = __spreadProps(__spreadValues({}, commonProps), {
7522
7486
  type: String,
7523
7487
  default: ""
7524
7488
  }
7525
- });
7489
+ };
7526
7490
  const checkboxGroupInjectionKey = Symbol("d-checkbox-group");
7527
7491
  const formProps = {
7528
7492
  data: {
@@ -7601,7 +7565,10 @@ function useFormValidation(itemContexts) {
7601
7565
  try {
7602
7566
  await field.validate("");
7603
7567
  } catch (err) {
7604
- errors = __spreadValues(__spreadValues({}, errors), err);
7568
+ errors = {
7569
+ ...errors,
7570
+ ...err
7571
+ };
7605
7572
  }
7606
7573
  }
7607
7574
  if (!Object.keys(errors).length) {
@@ -7658,11 +7625,12 @@ defineComponent({
7658
7625
  }, {
7659
7626
  deep: true
7660
7627
  });
7661
- provide(FORM_TOKEN, reactive(__spreadProps(__spreadValues({}, toRefs(props)), {
7628
+ provide(FORM_TOKEN, reactive({
7629
+ ...toRefs(props),
7662
7630
  emit: ctx.emit,
7663
7631
  addItemContext,
7664
7632
  removeItemContext
7665
- })));
7633
+ }));
7666
7634
  ctx.expose({
7667
7635
  validate,
7668
7636
  validateFields,
@@ -8021,6 +7989,8 @@ var Popover = defineComponent({
8021
7989
  "style": overlayStyles.value
8022
7990
  }, attrs, {
8023
7991
  "onPositionChange": handlePositionChange,
7992
+ "onClick": withModifiers(() => ({}), ["stop"]),
7993
+ "onPointerup": withModifiers(() => ({}), ["stop"]),
8024
7994
  "onMouseenter": onMouseenter,
8025
7995
  "onMouseleave": onMouseleave
8026
7996
  }), {
@@ -8235,7 +8205,7 @@ var FormControl = defineComponent({
8235
8205
  }
8236
8206
  });
8237
8207
  function _extends() {
8238
- _extends = Object.assign || function(target) {
8208
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
8239
8209
  for (var i = 1; i < arguments.length; i++) {
8240
8210
  var source = arguments[i];
8241
8211
  for (var key in source) {
@@ -8254,13 +8224,13 @@ function _inheritsLoose(subClass, superClass) {
8254
8224
  _setPrototypeOf(subClass, superClass);
8255
8225
  }
8256
8226
  function _getPrototypeOf(o) {
8257
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
8227
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
8258
8228
  return o2.__proto__ || Object.getPrototypeOf(o2);
8259
8229
  };
8260
8230
  return _getPrototypeOf(o);
8261
8231
  }
8262
8232
  function _setPrototypeOf(o, p) {
8263
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
8233
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
8264
8234
  o2.__proto__ = p2;
8265
8235
  return o2;
8266
8236
  };
@@ -8283,7 +8253,7 @@ function _isNativeReflectConstruct() {
8283
8253
  }
8284
8254
  function _construct(Parent, args, Class) {
8285
8255
  if (_isNativeReflectConstruct()) {
8286
- _construct = Reflect.construct;
8256
+ _construct = Reflect.construct.bind();
8287
8257
  } else {
8288
8258
  _construct = function _construct2(Parent2, args2, Class2) {
8289
8259
  var a = [null];
@@ -8561,9 +8531,45 @@ var whitespace = function whitespace2(rule, value, source, errors, options) {
8561
8531
  errors.push(format(options.messages.whitespace, rule.fullField));
8562
8532
  }
8563
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
+ };
8564
8571
  var pattern$2 = {
8565
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,}))$/,
8566
- 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"),
8567
8573
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
8568
8574
  };
8569
8575
  var types = {
@@ -8605,7 +8611,7 @@ var types = {
8605
8611
  return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
8606
8612
  },
8607
8613
  url: function url(value) {
8608
- return typeof value === "string" && value.length <= 2048 && !!value.match(pattern$2.url);
8614
+ return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
8609
8615
  },
8610
8616
  hex: function hex(value) {
8611
8617
  return typeof value === "string" && !!value.match(pattern$2.hex);
@@ -9180,7 +9186,17 @@ var Schema = /* @__PURE__ */ function() {
9180
9186
  if (rule.asyncValidator) {
9181
9187
  res = rule.asyncValidator(rule, data.value, cb, data.source, options);
9182
9188
  } else if (rule.validator) {
9183
- res = rule.validator(rule, data.value, cb, data.source, options);
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
+ }
9184
9200
  if (res === true) {
9185
9201
  cb();
9186
9202
  } else if (res === false) {
@@ -9301,10 +9317,7 @@ function useFormItemValidate(props, _rules) {
9301
9317
  } else {
9302
9318
  return rule.trigger === triggerVal;
9303
9319
  }
9304
- }).map((_a) => {
9305
- var rule = __objRest(_a, []);
9306
- return rule;
9307
- });
9320
+ }).map(({ ...rule }) => rule);
9308
9321
  };
9309
9322
  const onValidateSuccess = () => {
9310
9323
  validateState.value = "success";
@@ -9377,15 +9390,12 @@ defineComponent({
9377
9390
  props: formItemProps,
9378
9391
  setup(props, ctx) {
9379
9392
  const formContext = inject(FORM_TOKEN);
9380
- const _a = toRefs(props), {
9393
+ const {
9381
9394
  messageType: itemMessageType,
9382
9395
  popPosition: itemPopPosition,
9383
- showFeedback: itemShowFeedback
9384
- } = _a, otherProps = __objRest(_a, [
9385
- "messageType",
9386
- "popPosition",
9387
- "showFeedback"
9388
- ]);
9396
+ showFeedback: itemShowFeedback,
9397
+ ...otherProps
9398
+ } = toRefs(props);
9389
9399
  const {
9390
9400
  label,
9391
9401
  helpTips,
@@ -9415,7 +9425,8 @@ defineComponent({
9415
9425
  labelAlign: formContext.labelAlign
9416
9426
  }));
9417
9427
  provide(LABEL_DATA, labelData);
9418
- const context = reactive(__spreadProps(__spreadValues({}, otherProps), {
9428
+ const context = reactive({
9429
+ ...otherProps,
9419
9430
  showFeedback,
9420
9431
  messageType,
9421
9432
  popPosition,
@@ -9425,7 +9436,7 @@ defineComponent({
9425
9436
  validate,
9426
9437
  resetField,
9427
9438
  clearValidate
9428
- }));
9439
+ });
9429
9440
  provide(FORM_ITEM_TOKEN, context);
9430
9441
  ctx.expose({
9431
9442
  resetField,
@@ -9450,8 +9461,8 @@ defineComponent({
9450
9461
  "extra-info": extraInfo.value
9451
9462
  }, {
9452
9463
  default: () => {
9453
- var _a2, _b;
9454
- return [(_b = (_a2 = ctx.slots).default) == null ? void 0 : _b.call(_a2)];
9464
+ var _a, _b;
9465
+ return [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)];
9455
9466
  }
9456
9467
  })]);
9457
9468
  }
@@ -9752,9 +9763,10 @@ defineComponent({
9752
9763
  value: opt
9753
9764
  });
9754
9765
  } else if (typeof opt === "object") {
9755
- mergedOpt = Object.assign({}, defaultOpt, __spreadProps(__spreadValues({}, opt), {
9766
+ mergedOpt = Object.assign({}, defaultOpt, {
9767
+ ...opt,
9756
9768
  label: opt.name
9757
- }));
9769
+ });
9758
9770
  }
9759
9771
  return createVNode(Checkbox, mergedOpt, null);
9760
9772
  });
@@ -9871,7 +9883,7 @@ function useFilterMultiple(filterList, ctx) {
9871
9883
  });
9872
9884
  const _halfChecked = ref(false);
9873
9885
  filterList == null ? void 0 : filterList.forEach((item) => {
9874
- _checkList.value.push(__spreadValues({ checked: false }, item));
9886
+ _checkList.value.push({ checked: false, ...item });
9875
9887
  });
9876
9888
  watch(_checkList, (list2) => {
9877
9889
  if (!list2.length) {
@@ -10864,6 +10876,35 @@ function useBodyRender() {
10864
10876
  };
10865
10877
  return { getTableRowClass };
10866
10878
  }
10879
+ function useLazyLoad() {
10880
+ const table2 = inject(TABLE_TOKEN);
10881
+ const { lazy } = table2.props;
10882
+ const lazyFlagRef = ref();
10883
+ let lazyObserver;
10884
+ onMounted(() => {
10885
+ if (lazy) {
10886
+ lazyObserver = new IntersectionObserver((entries) => {
10887
+ const lazyFlagOb = entries[0];
10888
+ if (lazyFlagOb.isIntersecting) {
10889
+ table2.emit("load-more");
10890
+ }
10891
+ }, {
10892
+ root: table2.tableRef.value
10893
+ });
10894
+ lazyObserver.observe(lazyFlagRef.value);
10895
+ }
10896
+ });
10897
+ onBeforeUnmount(() => {
10898
+ if (lazy) {
10899
+ lazyObserver.unobserve(lazyFlagRef.value);
10900
+ lazyObserver.disconnect();
10901
+ }
10902
+ });
10903
+ return {
10904
+ lazy,
10905
+ lazyFlagRef
10906
+ };
10907
+ }
10867
10908
  var TableBody = defineComponent({
10868
10909
  name: "DTableBody",
10869
10910
  setup() {
@@ -10880,6 +10921,10 @@ var TableBody = defineComponent({
10880
10921
  const {
10881
10922
  getTableRowClass
10882
10923
  } = useBodyRender();
10924
+ const {
10925
+ lazy,
10926
+ lazyFlagRef
10927
+ } = useLazyLoad();
10883
10928
  const onCellClick = (cellClickArg) => {
10884
10929
  table2.emit("cell-click", cellClickArg);
10885
10930
  };
@@ -10921,7 +10966,10 @@ var TableBody = defineComponent({
10921
10966
  }, [(_d = (_c = (_b = (_a = flatColumns.value.filter((column2) => column2.type === "expand")) == null ? void 0 : _a[0]) == null ? void 0 : _b.slots) == null ? void 0 : _c.default) == null ? void 0 : _d.call(_c, {
10922
10967
  row
10923
10968
  })])])]);
10924
- })]);
10969
+ }), lazy && createVNode("span", {
10970
+ "ref": lazyFlagRef,
10971
+ "class": ns2.e("lazy__flag")
10972
+ }, null)]);
10925
10973
  }
10926
10974
  });
10927
10975
  var FixHeader = defineComponent({
@@ -10988,7 +11036,7 @@ var Table = defineComponent({
10988
11036
  dLoading: loadingDirective
10989
11037
  },
10990
11038
  props: tableProps,
10991
- emits: ["sort-change", "cell-click", "row-click", "check-change", "check-all-change", "expand-change"],
11039
+ emits: ["sort-change", "cell-click", "row-click", "check-change", "check-all-change", "expand-change", "load-more"],
10992
11040
  setup(props, ctx) {
10993
11041
  const table2 = getCurrentInstance();
10994
11042
  const store = createStore(toRef(props, "data"), table2);
@@ -11021,6 +11069,7 @@ var Table = defineComponent({
11021
11069
  store.updateFirstDefaultColumn();
11022
11070
  store.updateRows();
11023
11071
  updateColumnWidth();
11072
+ window.addEventListener("resize", updateColumnWidth);
11024
11073
  });
11025
11074
  return () => {
11026
11075
  var _a, _b;
@@ -11028,6 +11077,8 @@ var Table = defineComponent({
11028
11077
  "ref": tableRef,
11029
11078
  "class": ns2.b(),
11030
11079
  "style": styles.value
11080
+ }, [createVNode("div", {
11081
+ "class": ns2.e("container")
11031
11082
  }, [createVNode("div", {
11032
11083
  "ref": hiddenColumns,
11033
11084
  "class": "hidden-columns"
@@ -11039,7 +11090,7 @@ var Table = defineComponent({
11039
11090
  "is-empty": isEmpty2.value
11040
11091
  }, null), isEmpty2.value && createVNode("div", {
11041
11092
  "class": ns2.e("empty")
11042
- }, [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]]);
11043
11094
  };
11044
11095
  }
11045
11096
  });