bm-admin-ui 1.0.27-alpha → 1.0.28-alpha

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 (184) hide show
  1. package/es/components/feedback/index.js +25 -1306
  2. package/es/components/float-table/index.js +37 -28
  3. package/es/components/form-create/index.js +2769 -0
  4. package/es/components/form-designer/index.js +4182 -9
  5. package/es/components/index.js +1 -0
  6. package/es/components/input-tags-display/index.js +27 -1187
  7. package/es/components/multi-cascader-compose/index.js +31 -1199
  8. package/es/components/over-tooltips/index.js +27 -20
  9. package/es/components/search-filter/index.js +71 -1291
  10. package/es/components/shops-filter/index.js +24 -1182
  11. package/es/components/staffs-selector/index.js +131 -1241
  12. package/es/components/timeline/index.js +12 -15
  13. package/es/components/upload/index.js +101 -1357
  14. package/es/utils/uniqueId.js +5 -0
  15. package/es/utils/vxe-table.js +4 -3
  16. package/lib/components/feedback/index.js +23 -1304
  17. package/lib/components/float-table/index.js +37 -28
  18. package/lib/components/form-create/index.js +2781 -0
  19. package/lib/components/form-designer/index.js +4187 -8
  20. package/lib/components/index.js +7 -0
  21. package/lib/components/input-tags-display/index.js +27 -1187
  22. package/lib/components/multi-cascader-compose/index.js +30 -1198
  23. package/lib/components/over-tooltips/index.js +27 -20
  24. package/lib/components/search-filter/index.js +70 -1290
  25. package/lib/components/shops-filter/index.js +23 -1181
  26. package/lib/components/staffs-selector/index.js +130 -1240
  27. package/lib/components/timeline/index.js +12 -15
  28. package/lib/components/upload/index.js +100 -1356
  29. package/lib/utils/uniqueId.js +8 -0
  30. package/lib/utils/vxe-table.js +3 -2
  31. package/package.json +9 -4
  32. package/theme-chalk/button.css +1 -1
  33. package/theme-chalk/feedback.css +1 -1
  34. package/theme-chalk/float-table.css +1 -1
  35. package/theme-chalk/floating-vue.css +1 -1
  36. package/theme-chalk/flow-designer.css +1 -1
  37. package/theme-chalk/form-create.css +1 -0
  38. package/theme-chalk/form-designer.css +1 -0
  39. package/theme-chalk/index.css +1 -1
  40. package/theme-chalk/input-tags-display.css +1 -1
  41. package/theme-chalk/modal.css +1 -1
  42. package/theme-chalk/multi-cascader-compose.css +1 -1
  43. package/theme-chalk/over-tooltips.css +1 -1
  44. package/theme-chalk/search-filter.css +1 -1
  45. package/theme-chalk/staffs-selector.css +1 -1
  46. package/theme-chalk/timeline.css +1 -1
  47. package/theme-chalk/upload.css +1 -1
  48. package/es/components/button/index.d.ts +0 -307
  49. package/es/components/button/src/button.d.ts +0 -12
  50. package/es/components/button/src/button.vue.d.ts +0 -308
  51. package/es/components/feedback/index.d.ts +0 -1037
  52. package/es/components/feedback/src/bmAlert.vue.d.ts +0 -193
  53. package/es/components/feedback/src/bmModal.vue.d.ts +0 -839
  54. package/es/components/float-table/index.d.ts +0 -70
  55. package/es/components/float-table/src/float-table.vue.d.ts +0 -69
  56. package/es/components/flow-designer/index.d.ts +0 -7
  57. package/es/components/flow-designer/src/flow-designer.vue.d.ts +0 -6
  58. package/es/components/form-designer/index.d.ts +0 -9
  59. package/es/components/form-designer/src/form-designer.vue.d.ts +0 -8
  60. package/es/components/index.d.ts +0 -13
  61. package/es/components/input-tags-display/index.d.ts +0 -113
  62. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +0 -110
  63. package/es/components/multi-cascader-compose/index.d.ts +0 -164
  64. package/es/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
  65. package/es/components/multi-cascader-compose/src/props.d.ts +0 -40
  66. package/es/components/multi-cascader-compose/types.d.ts +0 -10
  67. package/es/components/over-tooltips/index.d.ts +0 -35
  68. package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +0 -34
  69. package/es/components/search-filter/index.d.ts +0 -223
  70. package/es/components/search-filter/src/search-filter.d.ts +0 -81
  71. package/es/components/search-filter/src/search-filter.vue.d.ts +0 -222
  72. package/es/components/search-filter/src/search-reset-btn.vue.d.ts +0 -106
  73. package/es/components/shops-filter/index.d.ts +0 -99
  74. package/es/components/shops-filter/src/shops-filter.d.ts +0 -25
  75. package/es/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
  76. package/es/components/staffs-selector/index.d.ts +0 -109
  77. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -97
  78. package/es/components/staffs-selector/src/radioCmp.vue.d.ts +0 -31
  79. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -108
  80. package/es/components/staffs-selector/src/variedCmp.vue.d.ts +0 -62
  81. package/es/components/timeline/index.d.ts +0 -118
  82. package/es/components/timeline/src/props.d.ts +0 -27
  83. package/es/components/timeline/src/timeline-item.vue.d.ts +0 -66
  84. package/es/components/timeline/src/timeline.vue.d.ts +0 -52
  85. package/es/components/upload/index.d.ts +0 -136
  86. package/es/components/upload/src/icons.d.ts +0 -13
  87. package/es/components/upload/src/upload.vue.d.ts +0 -135
  88. package/es/components/upload/utils/index.d.ts +0 -7
  89. package/es/index.d.ts +0 -6
  90. package/es/utils/bm-admin-ui-resolver.d.ts +0 -9
  91. package/es/utils/vxe-table.d.ts +0 -6
  92. package/es/utils/with-install.d.ts +0 -3
  93. package/index.esm.js +0 -47094
  94. package/index.js +0 -47124
  95. package/lib/components/button/index.d.ts +0 -307
  96. package/lib/components/button/src/button.d.ts +0 -12
  97. package/lib/components/button/src/button.vue.d.ts +0 -308
  98. package/lib/components/feedback/index.d.ts +0 -1037
  99. package/lib/components/feedback/src/bmAlert.vue.d.ts +0 -193
  100. package/lib/components/feedback/src/bmModal.vue.d.ts +0 -839
  101. package/lib/components/float-table/index.d.ts +0 -70
  102. package/lib/components/float-table/src/float-table.vue.d.ts +0 -69
  103. package/lib/components/flow-designer/index.d.ts +0 -7
  104. package/lib/components/flow-designer/src/flow-designer.vue.d.ts +0 -6
  105. package/lib/components/form-designer/index.d.ts +0 -9
  106. package/lib/components/form-designer/src/form-designer.vue.d.ts +0 -8
  107. package/lib/components/index.d.ts +0 -13
  108. package/lib/components/input-tags-display/index.d.ts +0 -113
  109. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +0 -110
  110. package/lib/components/multi-cascader-compose/index.d.ts +0 -164
  111. package/lib/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
  112. package/lib/components/multi-cascader-compose/src/props.d.ts +0 -40
  113. package/lib/components/multi-cascader-compose/types.d.ts +0 -10
  114. package/lib/components/over-tooltips/index.d.ts +0 -35
  115. package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +0 -34
  116. package/lib/components/search-filter/index.d.ts +0 -223
  117. package/lib/components/search-filter/src/search-filter.d.ts +0 -81
  118. package/lib/components/search-filter/src/search-filter.vue.d.ts +0 -222
  119. package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +0 -106
  120. package/lib/components/shops-filter/index.d.ts +0 -99
  121. package/lib/components/shops-filter/src/shops-filter.d.ts +0 -25
  122. package/lib/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
  123. package/lib/components/staffs-selector/index.d.ts +0 -109
  124. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -97
  125. package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +0 -31
  126. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -108
  127. package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +0 -62
  128. package/lib/components/timeline/index.d.ts +0 -118
  129. package/lib/components/timeline/src/props.d.ts +0 -27
  130. package/lib/components/timeline/src/timeline-item.vue.d.ts +0 -66
  131. package/lib/components/timeline/src/timeline.vue.d.ts +0 -52
  132. package/lib/components/upload/index.d.ts +0 -136
  133. package/lib/components/upload/src/icons.d.ts +0 -13
  134. package/lib/components/upload/src/upload.vue.d.ts +0 -135
  135. package/lib/components/upload/utils/index.d.ts +0 -7
  136. package/lib/index.d.ts +0 -6
  137. package/lib/utils/bm-admin-ui-resolver.d.ts +0 -9
  138. package/lib/utils/vxe-table.d.ts +0 -6
  139. package/lib/utils/with-install.d.ts +0 -3
  140. package/types/components/button/index.d.ts +0 -307
  141. package/types/components/button/src/button.d.ts +0 -12
  142. package/types/components/button/src/button.vue.d.ts +0 -308
  143. package/types/components/feedback/index.d.ts +0 -1037
  144. package/types/components/feedback/src/bmAlert.vue.d.ts +0 -193
  145. package/types/components/feedback/src/bmModal.vue.d.ts +0 -839
  146. package/types/components/float-table/index.d.ts +0 -70
  147. package/types/components/float-table/src/float-table.vue.d.ts +0 -69
  148. package/types/components/flow-designer/index.d.ts +0 -7
  149. package/types/components/flow-designer/src/flow-designer.vue.d.ts +0 -6
  150. package/types/components/form-designer/index.d.ts +0 -9
  151. package/types/components/form-designer/src/form-designer.vue.d.ts +0 -8
  152. package/types/components/index.d.ts +0 -13
  153. package/types/components/input-tags-display/index.d.ts +0 -113
  154. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +0 -110
  155. package/types/components/multi-cascader-compose/index.d.ts +0 -164
  156. package/types/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
  157. package/types/components/multi-cascader-compose/src/props.d.ts +0 -40
  158. package/types/components/multi-cascader-compose/types.d.ts +0 -10
  159. package/types/components/over-tooltips/index.d.ts +0 -35
  160. package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +0 -34
  161. package/types/components/search-filter/index.d.ts +0 -223
  162. package/types/components/search-filter/src/search-filter.d.ts +0 -81
  163. package/types/components/search-filter/src/search-filter.vue.d.ts +0 -222
  164. package/types/components/search-filter/src/search-reset-btn.vue.d.ts +0 -106
  165. package/types/components/shops-filter/index.d.ts +0 -99
  166. package/types/components/shops-filter/src/shops-filter.d.ts +0 -25
  167. package/types/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
  168. package/types/components/staffs-selector/index.d.ts +0 -109
  169. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -97
  170. package/types/components/staffs-selector/src/radioCmp.vue.d.ts +0 -31
  171. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -108
  172. package/types/components/staffs-selector/src/variedCmp.vue.d.ts +0 -62
  173. package/types/components/timeline/index.d.ts +0 -118
  174. package/types/components/timeline/src/props.d.ts +0 -27
  175. package/types/components/timeline/src/timeline-item.vue.d.ts +0 -66
  176. package/types/components/timeline/src/timeline.vue.d.ts +0 -52
  177. package/types/components/upload/index.d.ts +0 -136
  178. package/types/components/upload/src/icons.d.ts +0 -13
  179. package/types/components/upload/src/upload.vue.d.ts +0 -135
  180. package/types/components/upload/utils/index.d.ts +0 -7
  181. package/types/index.d.ts +0 -6
  182. package/types/utils/bm-admin-ui-resolver.d.ts +0 -9
  183. package/types/utils/vxe-table.d.ts +0 -6
  184. package/types/utils/with-install.d.ts +0 -3
@@ -34,17 +34,16 @@ function isPlainObject(o) {
34
34
  return true;
35
35
  }
36
36
 
37
- function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);}return e},t.apply(this,arguments)}function r(e,t){if(null==e)return {};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}const n={silent:!1,logLevel:"warn"},i=["validator"],o=Object.prototype,a=o.toString,s=o.hasOwnProperty,u=/^\s*function (\w+)/;function l(e){var t;const r=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(r){const e=r.toString().match(u);return e?e[1]:""}return ""}const c=isPlainObject,f=e=>e;let d=f;if("production"!==process.env.NODE_ENV){const e="undefined"!=typeof console;d=e?function(e,t=n.logLevel){!1===n.silent&&console[t](`[VueTypes warn]: ${e}`);}:f;}const p=(e,t)=>s.call(e,t),y=Number.isInteger||function(e){return "number"==typeof e&&isFinite(e)&&Math.floor(e)===e},v=Array.isArray||function(e){return "[object Array]"===a.call(e)},h=e=>"[object Function]"===a.call(e),b=e=>c(e)&&p(e,"_vueTypes_name"),g=e=>c(e)&&(p(e,"type")||["_vueTypes_name","validator","default","required"].some(t=>p(e,t)));function O(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function m(e,t,r=!1){let n,i=!0,o="";n=c(e)?e:{type:e};const a=b(n)?n._vueTypes_name+" - ":"";if(g(n)&&null!==n.type){if(void 0===n.type||!0===n.type)return i;if(!n.required&&void 0===t)return i;v(n.type)?(i=n.type.some(e=>!0===m(e,t,!0)),o=n.type.map(e=>l(e)).join(" or ")):(o=l(n),i="Array"===o?v(t):"Object"===o?c(t):"String"===o||"Number"===o||"Boolean"===o||"Function"===o?function(e){if(null==e)return "";const t=e.constructor.toString().match(u);return t?t[1]:""}(t)===o:t instanceof n.type);}if(!i){const e=`${a}value "${t}" should be of type "${o}"`;return !1===r?(d(e),!1):e}if(p(n,"validator")&&h(n.validator)){const e=d,o=[];if(d=e=>{o.push(e);},i=n.validator(t),d=e,!i){const e=(o.length>1?"* ":"")+o.join("\n* ");return o.length=0,!1===r?(d(e),i):e}}return i}function j(e,t){const r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(e){return void 0===e?(p(this,"default")&&delete this.default,this):h(e)||!0===m(this,e,!0)?(this.default=v(e)?()=>[...e]:c(e)?()=>Object.assign({},e):e,this):(d(`${this._vueTypes_name} - invalid default value: "${e}"`),this)}}}),{validator:n}=r;return h(n)&&(r.validator=O(n,r)),r}function _(e,t){const r=j(e,t);return Object.defineProperty(r,"validate",{value(e){return h(this.validator)&&d(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=O(e,this),this}})}function T(e,t,n){const o=function(e){const t={};return Object.getOwnPropertyNames(e).forEach(r=>{t[r]=Object.getOwnPropertyDescriptor(e,r);}),Object.defineProperties({},t)}(t);if(o._vueTypes_name=e,!c(n))return o;const{validator:a}=n,s=r(n,i);if(h(a)){let{validator:e}=o;e&&(e=null!==(l=(u=e).__original)&&void 0!==l?l:u),o.validator=O(e?function(t){return e.call(this,t)&&a.call(this,t)}:a,o);}var u,l;return Object.assign(o,s)}function $(e){return e.replace(/^(?!\s*$)/gm," ")}const w=()=>_("any",{}),P=()=>_("function",{type:Function}),x=()=>_("boolean",{type:Boolean}),E=()=>_("string",{type:String}),N=()=>_("number",{type:Number}),q=()=>_("array",{type:Array}),A=()=>_("object",{type:Object}),V=()=>j("integer",{type:Number,validator:e=>y(e)}),S=()=>j("symbol",{validator:e=>"symbol"==typeof e});function k(e,t="custom validation failed"){if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return j(e.name||"<<anonymous function>>",{type:null,validator(r){const n=e(r);return n||d(`${this._vueTypes_name} - ${t}`),n}})}function D(e){if(!v(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.join('", "')}".`,r=e.reduce((e,t)=>{if(null!=t){const r=t.constructor;-1===e.indexOf(r)&&e.push(r);}return e},[]);return j("oneOf",{type:r.length>0?r:void 0,validator(r){const n=-1!==e.indexOf(r);return n||d(t),n}})}function L(e){if(!v(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,r=[];for(let n=0;n<e.length;n+=1){const i=e[n];if(g(i)){if(b(i)&&"oneOf"===i._vueTypes_name&&i.type){r=r.concat(i.type);continue}if(h(i.validator)&&(t=!0),!0===i.type||!i.type){d('oneOfType - invalid usage of "true" or "null" as types.');continue}r=r.concat(i.type);}else r.push(i);}r=r.filter((e,t)=>r.indexOf(e)===t);const n=r.length>0?r:null;return j("oneOfType",t?{type:n,validator(t){const r=[],n=e.some(e=>{const n=m(b(e)&&"oneOf"===e._vueTypes_name?e.type||null:e,t,!0);return "string"==typeof n&&r.push(n),!0===n});return n||d(`oneOfType - provided value does not match any of the ${r.length} passed-in validators:\n${$(r.join("\n"))}`),n}}:{type:n})}function F(e){return j("arrayOf",{type:Array,validator(t){let r="";const n=t.every(t=>(r=m(e,t,!0),!0===r));return n||d(`arrayOf - value validation error:\n${$(r)}`),n}})}function Y(e){return j("instanceOf",{type:e})}function B(e){return j("objectOf",{type:Object,validator(t){let r="";const n=Object.keys(t).every(n=>(r=m(e,t[n],!0),!0===r));return n||d(`objectOf - value validation error:\n${$(r)}`),n}})}function I(e){const t=Object.keys(e),r=t.filter(t=>{var r;return !(null===(r=e[t])||void 0===r||!r.required)}),n=j("shape",{type:Object,validator(n){if(!c(n))return !1;const i=Object.keys(n);if(r.length>0&&r.some(e=>-1===i.indexOf(e))){const e=r.filter(e=>-1===i.indexOf(e));return d(1===e.length?`shape - required property "${e[0]}" is not defined.`:`shape - required properties "${e.join('", "')}" are not defined.`),!1}return i.every(r=>{if(-1===t.indexOf(r))return !0===this._vueTypes_isLoose||(d(`shape - shape definition does not include a "${r}" property. Allowed keys: "${t.join('", "')}".`),!1);const i=m(e[r],n[r],!0);return "string"==typeof i&&d(`shape - "${r}" property validation error:\n ${$(i)}`),!0===i})}});return Object.defineProperty(n,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(n,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),n}const J=["name","validate","getter"],M=/*#__PURE__*/(()=>{var e,t;return t=e=class{static get any(){return w()}static get func(){return P().def(this.defaults.func)}static get bool(){return x().def(this.defaults.bool)}static get string(){return E().def(this.defaults.string)}static get number(){return N().def(this.defaults.number)}static get array(){return q().def(this.defaults.array)}static get object(){return A().def(this.defaults.object)}static get integer(){return V().def(this.defaults.integer)}static get symbol(){return S()}static extend(e){if(v(e))return e.forEach(e=>this.extend(e)),this;const{name:t,validate:n=!1,getter:i=!1}=e,o=r(e,J);if(p(this,t))throw new TypeError(`[VueTypes error]: Type "${t}" already defined`);const{type:a}=o;if(b(a))return delete o.type,Object.defineProperty(this,t,i?{get:()=>T(t,a,o)}:{value(...e){const r=T(t,a,o);return r.validator&&(r.validator=r.validator.bind(r,...e)),r}});let s;return s=i?{get(){const e=Object.assign({},o);return n?_(t,e):j(t,e)},enumerable:!0}:{value(...e){const r=Object.assign({},o);let i;return i=n?_(t,r):j(t,r),r.validator&&(i.validator=r.validator.bind(i,...e)),i},enumerable:!0},Object.defineProperty(this,t,s)}},e.defaults={},e.sensibleDefaults=void 0,e.config=n,e.custom=k,e.oneOf=D,e.instanceOf=Y,e.oneOfType=L,e.arrayOf=F,e.objectOf=B,e.shape=I,e.utils={validate:(e,t)=>!0===m(t,e,!0),toType:(e,t,r=!1)=>r?_(e,t):j(e,t)},t})();function R(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var r,n;return n=r=class extends M{static get sensibleDefaults(){return t({},this.defaults)}static set sensibleDefaults(r){this.defaults=!1!==r?t({},!0!==r?r:e):{};}},r.defaults=t({},e),n}class z extends(R()){}
37
+ function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);}return e},t.apply(this,arguments)}function r(e,t){if(null==e)return {};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}const n={silent:!1,logLevel:"warn"},i=["validator"],o=Object.prototype,a=o.toString,s=o.hasOwnProperty,u=/^\s*function (\w+)/;function l(e){var t;const r=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(r){const e=r.toString().match(u);return e?e[1]:""}return ""}const c=isPlainObject,f=e=>e;let d=f;if("production"!==process.env.NODE_ENV){const e="undefined"!=typeof console;d=e?function(e,t=n.logLevel){!1===n.silent&&console[t](`[VueTypes warn]: ${e}`);}:f;}const p=(e,t)=>s.call(e,t),y=Number.isInteger||function(e){return "number"==typeof e&&isFinite(e)&&Math.floor(e)===e},v=Array.isArray||function(e){return "[object Array]"===a.call(e)},h=e=>"[object Function]"===a.call(e),b=e=>c(e)&&p(e,"_vueTypes_name"),g=e=>c(e)&&(p(e,"type")||["_vueTypes_name","validator","default","required"].some(t=>p(e,t)));function O(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function m(e,t,r=!1){let n,i=!0,o="";n=c(e)?e:{type:e};const a=b(n)?n._vueTypes_name+" - ":"";if(g(n)&&null!==n.type){if(void 0===n.type||!0===n.type)return i;if(!n.required&&void 0===t)return i;v(n.type)?(i=n.type.some(e=>!0===m(e,t,!0)),o=n.type.map(e=>l(e)).join(" or ")):(o=l(n),i="Array"===o?v(t):"Object"===o?c(t):"String"===o||"Number"===o||"Boolean"===o||"Function"===o?function(e){if(null==e)return "";const t=e.constructor.toString().match(u);return t?t[1]:""}(t)===o:t instanceof n.type);}if(!i){const e=`${a}value "${t}" should be of type "${o}"`;return !1===r?(d(e),!1):e}if(p(n,"validator")&&h(n.validator)){const e=d,o=[];if(d=e=>{o.push(e);},i=n.validator(t),d=e,!i){const e=(o.length>1?"* ":"")+o.join("\n* ");return o.length=0,!1===r?(d(e),i):e}}return i}function j(e,t){const r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(e){return void 0===e?(p(this,"default")&&delete this.default,this):h(e)||!0===m(this,e,!0)?(this.default=v(e)?()=>[...e]:c(e)?()=>Object.assign({},e):e,this):(d(`${this._vueTypes_name} - invalid default value: "${e}"`),this)}}}),{validator:n}=r;return h(n)&&(r.validator=O(n,r)),r}function _(e,t){const r=j(e,t);return Object.defineProperty(r,"validate",{value(e){return h(this.validator)&&d(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=O(e,this),this}})}function T(e,t,n){const o=function(e){const t={};return Object.getOwnPropertyNames(e).forEach(r=>{t[r]=Object.getOwnPropertyDescriptor(e,r);}),Object.defineProperties({},t)}(t);if(o._vueTypes_name=e,!c(n))return o;const{validator:a}=n,s=r(n,i);if(h(a)){let{validator:e}=o;e&&(e=null!==(l=(u=e).__original)&&void 0!==l?l:u),o.validator=O(e?function(t){return e.call(this,t)&&a.call(this,t)}:a,o);}var u,l;return Object.assign(o,s)}function $(e){return e.replace(/^(?!\s*$)/gm," ")}const w=()=>_("any",{}),P=()=>_("function",{type:Function}),x=()=>_("boolean",{type:Boolean}),E=()=>_("string",{type:String}),N=()=>_("number",{type:Number}),q=()=>_("array",{type:Array}),A=()=>_("object",{type:Object}),V=()=>j("integer",{type:Number,validator:e=>y(e)}),S=()=>j("symbol",{validator:e=>"symbol"==typeof e});function D(e,t="custom validation failed"){if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return j(e.name||"<<anonymous function>>",{type:null,validator(r){const n=e(r);return n||d(`${this._vueTypes_name} - ${t}`),n}})}function L(e){if(!v(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.join('", "')}".`,r=e.reduce((e,t)=>{if(null!=t){const r=t.constructor;-1===e.indexOf(r)&&e.push(r);}return e},[]);return j("oneOf",{type:r.length>0?r:void 0,validator(r){const n=-1!==e.indexOf(r);return n||d(t),n}})}function F(e){if(!v(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,r=[];for(let n=0;n<e.length;n+=1){const i=e[n];if(g(i)){if(b(i)&&"oneOf"===i._vueTypes_name&&i.type){r=r.concat(i.type);continue}if(h(i.validator)&&(t=!0),!0===i.type||!i.type){d('oneOfType - invalid usage of "true" or "null" as types.');continue}r=r.concat(i.type);}else r.push(i);}r=r.filter((e,t)=>r.indexOf(e)===t);const n=r.length>0?r:null;return j("oneOfType",t?{type:n,validator(t){const r=[],n=e.some(e=>{const n=m(b(e)&&"oneOf"===e._vueTypes_name?e.type||null:e,t,!0);return "string"==typeof n&&r.push(n),!0===n});return n||d(`oneOfType - provided value does not match any of the ${r.length} passed-in validators:\n${$(r.join("\n"))}`),n}}:{type:n})}function Y(e){return j("arrayOf",{type:Array,validator(t){let r="";const n=t.every(t=>(r=m(e,t,!0),!0===r));return n||d(`arrayOf - value validation error:\n${$(r)}`),n}})}function B(e){return j("instanceOf",{type:e})}function I(e){return j("objectOf",{type:Object,validator(t){let r="";const n=Object.keys(t).every(n=>(r=m(e,t[n],!0),!0===r));return n||d(`objectOf - value validation error:\n${$(r)}`),n}})}function J(e){const t=Object.keys(e),r=t.filter(t=>{var r;return !(null===(r=e[t])||void 0===r||!r.required)}),n=j("shape",{type:Object,validator(n){if(!c(n))return !1;const i=Object.keys(n);if(r.length>0&&r.some(e=>-1===i.indexOf(e))){const e=r.filter(e=>-1===i.indexOf(e));return d(1===e.length?`shape - required property "${e[0]}" is not defined.`:`shape - required properties "${e.join('", "')}" are not defined.`),!1}return i.every(r=>{if(-1===t.indexOf(r))return !0===this._vueTypes_isLoose||(d(`shape - shape definition does not include a "${r}" property. Allowed keys: "${t.join('", "')}".`),!1);const i=m(e[r],n[r],!0);return "string"==typeof i&&d(`shape - "${r}" property validation error:\n ${$(i)}`),!0===i})}});return Object.defineProperty(n,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(n,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),n}const M=["name","validate","getter"],R=/*#__PURE__*/(()=>{var e;return (e=class{static get any(){return w()}static get func(){return P().def(this.defaults.func)}static get bool(){return x().def(this.defaults.bool)}static get string(){return E().def(this.defaults.string)}static get number(){return N().def(this.defaults.number)}static get array(){return q().def(this.defaults.array)}static get object(){return A().def(this.defaults.object)}static get integer(){return V().def(this.defaults.integer)}static get symbol(){return S()}static get nullable(){return {type:null}}static extend(e){if(v(e))return e.forEach(e=>this.extend(e)),this;const{name:t,validate:n=!1,getter:i=!1}=e,o=r(e,M);if(p(this,t))throw new TypeError(`[VueTypes error]: Type "${t}" already defined`);const{type:a}=o;if(b(a))return delete o.type,Object.defineProperty(this,t,i?{get:()=>T(t,a,o)}:{value(...e){const r=T(t,a,o);return r.validator&&(r.validator=r.validator.bind(r,...e)),r}});let s;return s=i?{get(){const e=Object.assign({},o);return n?_(t,e):j(t,e)},enumerable:!0}:{value(...e){const r=Object.assign({},o);let i;return i=n?_(t,r):j(t,r),r.validator&&(i.validator=r.validator.bind(i,...e)),i},enumerable:!0},Object.defineProperty(this,t,s)}}).defaults={},e.sensibleDefaults=void 0,e.config=n,e.custom=D,e.oneOf=L,e.instanceOf=B,e.oneOfType=F,e.arrayOf=Y,e.objectOf=I,e.shape=J,e.utils={validate:(e,t)=>!0===m(t,e,!0),toType:(e,t,r=!1)=>r?_(e,t):j(e,t)},e})();function z(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var r;return (r=class extends R{static get sensibleDefaults(){return t({},this.defaults)}static set sensibleDefaults(r){this.defaults=!1!==r?t({},!0!==r?r:e):{};}}).defaults=t({},e),r}class C extends(z()){}
38
38
 
39
39
  const timelineProps = () => ({
40
- mode: z.oneOf(['left', 'right']).def('left'),
41
- size: z.oneOf(['normal', 'small']).def('normal'),
42
- labelWidth: z.string.def(''),
40
+ mode: C.oneOf(['left', 'right']).def('left'),
41
+ labelWidth: C.string.def(''),
43
42
  });
44
43
  const timelineItemProps = () => ({
45
- color: z.oneOf(['blue', 'red', 'green', 'gray']).def('blue'),
46
- dot: z.any.def(''),
47
- label: z.any.def(''),
44
+ color: C.oneOf(['blue', 'red', 'green', 'gray']).def('blue'),
45
+ dot: C.any,
46
+ label: C.any,
48
47
  });
49
48
 
50
49
  var _export_sfc = (sfc, props) => {
@@ -70,12 +69,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
70
69
  const className = computed(() => {
71
70
  return {
72
71
  "bm-timeline": true,
73
- [`bm-timeline-${props.mode}`]: true,
74
- [`bm-timeline-${props.size}`]: true
72
+ [`bm-timeline-${props.mode}`]: true
75
73
  };
76
74
  });
77
75
  return (_ctx, _cache) => {
78
- return openBlock(), createElementBlock("div", {
76
+ return openBlock(), createElementBlock("ul", {
79
77
  class: normalizeClass(unref(className))
80
78
  }, [
81
79
  renderSlot(_ctx.$slots, "default")
@@ -101,9 +99,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
101
99
  const offsetStyle = computed(() => {
102
100
  if (labelWidth.value) {
103
101
  if (mode.value !== "right") {
104
- return { left: `calc(${labelWidth.value})` };
102
+ return { left: `calc(${labelWidth.value} + 22px)` };
105
103
  } else {
106
- return { right: `calc(${labelWidth.value})` };
104
+ return { right: `calc(${labelWidth.value} + 22px)` };
107
105
  }
108
106
  } else {
109
107
  return {};
@@ -111,8 +109,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
111
109
  });
112
110
  const itemClassName = computed(() => {
113
111
  return {
114
- "bm-timeline-item": true,
115
- "bm-timeline-item-has-label": labelWidth.value
112
+ "bm-timeline-item": true
116
113
  };
117
114
  });
118
115
  const dotClassName = computed(() => {
@@ -126,7 +123,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
126
123
  return /blue|red|green|gray/.test(props.color || "") ? void 0 : props.color;
127
124
  });
128
125
  return (_ctx, _cache) => {
129
- return openBlock(), createElementBlock("div", {
126
+ return openBlock(), createElementBlock("li", {
130
127
  class: normalizeClass(unref(itemClassName))
131
128
  }, [
132
129
  createElementVNode("div", {