bkui-vue 0.0.1-beta.73 → 0.0.1-beta.74

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.
@@ -4,6 +4,7 @@ declare const BkSideslider: {
4
4
  $data: {};
5
5
  $props: Partial<{
6
6
  title: string;
7
+ multiInstance: boolean;
7
8
  showMask: boolean;
8
9
  width: string | number;
9
10
  height: string | number;
@@ -15,6 +16,7 @@ declare const BkSideslider: {
15
16
  isShow: boolean;
16
17
  transfer: boolean;
17
18
  renderDirective: string;
19
+ dialogType: string;
18
20
  customClass: string | unknown[];
19
21
  scrollable: boolean;
20
22
  closeIcon: boolean;
@@ -24,6 +26,10 @@ declare const BkSideslider: {
24
26
  quickClose: boolean;
25
27
  animateType: string;
26
28
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
29
+ title: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
27
33
  direction: {
28
34
  type: StringConstructor;
29
35
  default: string;
@@ -34,20 +40,12 @@ declare const BkSideslider: {
34
40
  } & {
35
41
  default: boolean;
36
42
  };
37
- width: (import("vue-types").VueTypeValidableDef<number> & {
38
- default: number;
39
- }) | (import("vue-types").VueTypeValidableDef<string> & {
40
- default: string;
41
- } & {
42
- default: string;
43
- });
44
- height: (import("vue-types").VueTypeValidableDef<number> & {
45
- default: number;
46
- }) | (import("vue-types").VueTypeValidableDef<string> & {
47
- default: string;
48
- } & {
49
- default: string;
50
- });
43
+ width: import("vue-types").VueTypeDef<string | number> & {
44
+ default: string | number;
45
+ };
46
+ height: import("vue-types").VueTypeDef<string | number> & {
47
+ default: string | number;
48
+ };
51
49
  customClass: (import("vue-types").VueTypeValidableDef<string> & {
52
50
  default: string;
53
51
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -106,11 +104,6 @@ declare const BkSideslider: {
106
104
  } & {
107
105
  default: boolean;
108
106
  };
109
- title: import("vue-types").VueTypeValidableDef<string> & {
110
- default: string;
111
- } & {
112
- default: string;
113
- };
114
107
  maxHeight: import("vue-types").VueTypeValidableDef<string> & {
115
108
  default: string;
116
109
  };
@@ -123,13 +116,21 @@ declare const BkSideslider: {
123
116
  default: string;
124
117
  };
125
118
  beforeClose: import("vue-types").VueTypeDef<unknown>;
119
+ dialogType: import("vue-types").VueTypeDef<string> & {
120
+ default: string;
121
+ };
122
+ multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
123
+ default: boolean;
124
+ } & {
125
+ default: boolean;
126
+ };
126
127
  }>> & {
127
128
  "onUpdate:isShow"?: (...args: any[]) => any;
128
129
  onClosed?: (...args: any[]) => any;
129
130
  onHidden?: (...args: any[]) => any;
130
131
  onShown?: (...args: any[]) => any;
131
132
  "onAnimation-end"?: (...args: any[]) => any;
132
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "showMask" | "width" | "height" | "draggable" | "size" | "extCls" | "direction" | "maxHeight" | "isShow" | "transfer" | "renderDirective" | "customClass" | "scrollable" | "closeIcon" | "escClose" | "maskClose" | "fullscreen" | "quickClose" | "animateType">;
133
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "multiInstance" | "showMask" | "width" | "height" | "draggable" | "size" | "extCls" | "direction" | "maxHeight" | "isShow" | "transfer" | "renderDirective" | "dialogType" | "customClass" | "scrollable" | "closeIcon" | "escClose" | "maskClose" | "fullscreen" | "quickClose" | "animateType">;
133
134
  $attrs: {
134
135
  [x: string]: unknown;
135
136
  };
@@ -144,6 +145,10 @@ declare const BkSideslider: {
144
145
  $emit: (event: "hidden" | "update:isShow" | "shown" | "closed" | "animation-end", ...args: any[]) => void;
145
146
  $el: any;
146
147
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
148
+ title: {
149
+ type: StringConstructor;
150
+ default: string;
151
+ };
147
152
  direction: {
148
153
  type: StringConstructor;
149
154
  default: string;
@@ -154,20 +159,12 @@ declare const BkSideslider: {
154
159
  } & {
155
160
  default: boolean;
156
161
  };
157
- width: (import("vue-types").VueTypeValidableDef<number> & {
158
- default: number;
159
- }) | (import("vue-types").VueTypeValidableDef<string> & {
160
- default: string;
161
- } & {
162
- default: string;
163
- });
164
- height: (import("vue-types").VueTypeValidableDef<number> & {
165
- default: number;
166
- }) | (import("vue-types").VueTypeValidableDef<string> & {
167
- default: string;
168
- } & {
169
- default: string;
170
- });
162
+ width: import("vue-types").VueTypeDef<string | number> & {
163
+ default: string | number;
164
+ };
165
+ height: import("vue-types").VueTypeDef<string | number> & {
166
+ default: string | number;
167
+ };
171
168
  customClass: (import("vue-types").VueTypeValidableDef<string> & {
172
169
  default: string;
173
170
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -226,11 +223,6 @@ declare const BkSideslider: {
226
223
  } & {
227
224
  default: boolean;
228
225
  };
229
- title: import("vue-types").VueTypeValidableDef<string> & {
230
- default: string;
231
- } & {
232
- default: string;
233
- };
234
226
  maxHeight: import("vue-types").VueTypeValidableDef<string> & {
235
227
  default: string;
236
228
  };
@@ -243,6 +235,14 @@ declare const BkSideslider: {
243
235
  default: string;
244
236
  };
245
237
  beforeClose: import("vue-types").VueTypeDef<unknown>;
238
+ dialogType: import("vue-types").VueTypeDef<string> & {
239
+ default: string;
240
+ };
241
+ multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
242
+ default: boolean;
243
+ } & {
244
+ default: boolean;
245
+ };
246
246
  }>> & {
247
247
  "onUpdate:isShow"?: (...args: any[]) => any;
248
248
  onClosed?: (...args: any[]) => any;
@@ -251,6 +251,7 @@ declare const BkSideslider: {
251
251
  "onAnimation-end"?: (...args: any[]) => any;
252
252
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hidden" | "update:isShow" | "shown" | "closed" | "animation-end")[], string, {
253
253
  title: string;
254
+ multiInstance: boolean;
254
255
  showMask: boolean;
255
256
  width: string | number;
256
257
  height: string | number;
@@ -262,6 +263,7 @@ declare const BkSideslider: {
262
263
  isShow: boolean;
263
264
  transfer: boolean;
264
265
  renderDirective: string;
266
+ dialogType: string;
265
267
  customClass: string | unknown[];
266
268
  scrollable: boolean;
267
269
  closeIcon: boolean;
@@ -291,6 +293,10 @@ declare const BkSideslider: {
291
293
  $nextTick: typeof import("vue").nextTick;
292
294
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
293
295
  } & Readonly<import("vue").ExtractPropTypes<{
296
+ title: {
297
+ type: StringConstructor;
298
+ default: string;
299
+ };
294
300
  direction: {
295
301
  type: StringConstructor;
296
302
  default: string;
@@ -301,20 +307,12 @@ declare const BkSideslider: {
301
307
  } & {
302
308
  default: boolean;
303
309
  };
304
- width: (import("vue-types").VueTypeValidableDef<number> & {
305
- default: number;
306
- }) | (import("vue-types").VueTypeValidableDef<string> & {
307
- default: string;
308
- } & {
309
- default: string;
310
- });
311
- height: (import("vue-types").VueTypeValidableDef<number> & {
312
- default: number;
313
- }) | (import("vue-types").VueTypeValidableDef<string> & {
314
- default: string;
315
- } & {
316
- default: string;
317
- });
310
+ width: import("vue-types").VueTypeDef<string | number> & {
311
+ default: string | number;
312
+ };
313
+ height: import("vue-types").VueTypeDef<string | number> & {
314
+ default: string | number;
315
+ };
318
316
  customClass: (import("vue-types").VueTypeValidableDef<string> & {
319
317
  default: string;
320
318
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -373,11 +371,6 @@ declare const BkSideslider: {
373
371
  } & {
374
372
  default: boolean;
375
373
  };
376
- title: import("vue-types").VueTypeValidableDef<string> & {
377
- default: string;
378
- } & {
379
- default: string;
380
- };
381
374
  maxHeight: import("vue-types").VueTypeValidableDef<string> & {
382
375
  default: string;
383
376
  };
@@ -390,6 +383,14 @@ declare const BkSideslider: {
390
383
  default: string;
391
384
  };
392
385
  beforeClose: import("vue-types").VueTypeDef<unknown>;
386
+ dialogType: import("vue-types").VueTypeDef<string> & {
387
+ default: string;
388
+ };
389
+ multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
390
+ default: boolean;
391
+ } & {
392
+ default: boolean;
393
+ };
393
394
  }>> & {
394
395
  "onUpdate:isShow"?: (...args: any[]) => any;
395
396
  onClosed?: (...args: any[]) => any;
@@ -401,6 +402,10 @@ declare const BkSideslider: {
401
402
  __isTeleport?: never;
402
403
  __isSuspense?: never;
403
404
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
405
+ title: {
406
+ type: StringConstructor;
407
+ default: string;
408
+ };
404
409
  direction: {
405
410
  type: StringConstructor;
406
411
  default: string;
@@ -411,20 +416,12 @@ declare const BkSideslider: {
411
416
  } & {
412
417
  default: boolean;
413
418
  };
414
- width: (import("vue-types").VueTypeValidableDef<number> & {
415
- default: number;
416
- }) | (import("vue-types").VueTypeValidableDef<string> & {
417
- default: string;
418
- } & {
419
- default: string;
420
- });
421
- height: (import("vue-types").VueTypeValidableDef<number> & {
422
- default: number;
423
- }) | (import("vue-types").VueTypeValidableDef<string> & {
424
- default: string;
425
- } & {
426
- default: string;
427
- });
419
+ width: import("vue-types").VueTypeDef<string | number> & {
420
+ default: string | number;
421
+ };
422
+ height: import("vue-types").VueTypeDef<string | number> & {
423
+ default: string | number;
424
+ };
428
425
  customClass: (import("vue-types").VueTypeValidableDef<string> & {
429
426
  default: string;
430
427
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -483,11 +480,6 @@ declare const BkSideslider: {
483
480
  } & {
484
481
  default: boolean;
485
482
  };
486
- title: import("vue-types").VueTypeValidableDef<string> & {
487
- default: string;
488
- } & {
489
- default: string;
490
- };
491
483
  maxHeight: import("vue-types").VueTypeValidableDef<string> & {
492
484
  default: string;
493
485
  };
@@ -500,6 +492,14 @@ declare const BkSideslider: {
500
492
  default: string;
501
493
  };
502
494
  beforeClose: import("vue-types").VueTypeDef<unknown>;
495
+ dialogType: import("vue-types").VueTypeDef<string> & {
496
+ default: string;
497
+ };
498
+ multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
499
+ default: boolean;
500
+ } & {
501
+ default: boolean;
502
+ };
503
503
  }>> & {
504
504
  "onUpdate:isShow"?: (...args: any[]) => any;
505
505
  onClosed?: (...args: any[]) => any;
@@ -508,6 +508,7 @@ declare const BkSideslider: {
508
508
  "onAnimation-end"?: (...args: any[]) => any;
509
509
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hidden" | "update:isShow" | "shown" | "closed" | "animation-end")[], "hidden" | "update:isShow" | "shown" | "closed" | "animation-end", {
510
510
  title: string;
511
+ multiInstance: boolean;
511
512
  showMask: boolean;
512
513
  width: string | number;
513
514
  height: string | number;
@@ -519,6 +520,7 @@ declare const BkSideslider: {
519
520
  isShow: boolean;
520
521
  transfer: boolean;
521
522
  renderDirective: string;
523
+ dialogType: string;
522
524
  customClass: string | unknown[];
523
525
  scrollable: boolean;
524
526
  closeIcon: boolean;
@@ -1 +1 @@
1
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("../shared"),require("vue"),require("../button"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../button","../modal"],e);else{var r="object"==typeof exports?e(require("../shared"),require("vue"),require("../button"),require("../modal")):e(t["../shared"],t.vue,t["../button"],t["../modal"]);for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,((t,e,r,n)=>(()=>{var o={7162:(t,e,r)=>{t.exports=r(5047)},5047:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var u=l(t,e,r);if("normal"===u.type){if(n=r.done?p:h,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",v={};function y(){}function g(){}function m(){}var b={};u(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&n.call(x,i)&&(b=x);var j=m.prototype=y.prototype=Object.create(b);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function N(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:P}}function P(){return{value:e,done:!0}}return g.prototype=m,u(j,"constructor",m),u(m,"constructor",g),g.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},L(O.prototype),u(O.prototype,a,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(j),u(j,c,"Generator"),u(j,i,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},4976:t=>{"use strict";t.exports=r},8014:t=>{"use strict";t.exports=n},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return o[t](r,r.exports,a),r.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var c={};return(()=>{"use strict";a.r(c),a.d(c,{default:()=>d});var t=a(4212),e=a(748),r=a(7162),n=a.n(r);Object.create,Object.create;var o=a(4976),i=a.n(o),u=a(8014),s=a.n(u),l=s().propsMixin,f=Object.assign({},l);f.width.default="400",f.height.default="100%";const h=(0,e.defineComponent)({name:"Sideslider",components:{BkModal:s(),BkButton:i()},props:Object.assign(Object.assign({},f),{direction:{type:String,default:"right",validator:function(t){var e=["left","right"];return!(e.indexOf(t)<0&&(console.error("direction property is not valid: '".concat(t,"',【").concat(e.join(" | "),"】")),1))}}}),emits:["closed","update:isShow","shown","hidden","animation-end"],setup:function(t,r){var o=this,i=r.slots,a=r.emit,c=function(){return e=o,r=void 0,i=void 0,c=n().mark((function e(){var r;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=!0,"function"!=typeof t.beforeClose){e.next=5;break}return e.next=4,t.beforeClose();case 4:r=e.sent;case 5:r&&(a("update:isShow",!1),a("closed"),setTimeout((function(){a("animation-end")}),250));case 6:case"end":return e.stop()}}),e)})),new(i||(i=Promise))((function(t,n){function o(t){try{u(c.next(t))}catch(t){n(t)}}function a(t){try{u(c.throw(t))}catch(t){n(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(t){t(r)}))).then(o,a)}u((c=c.apply(e,r||[])).next())}));var e,r,i,c},u=function(){setTimeout((function(){a("shown")}),200)},l=function(){setTimeout((function(){a("hidden")}),200)};return function(){var r,n={header:function(){var r,n;return(0,e.createVNode)(e.Fragment,null,[(0,e.createVNode)("div",{class:"bk-sideslider-header"},[(0,e.createVNode)("div",{class:"bk-sideslider-close ".concat(t.direction),onClick:function(){c()}},null),(0,e.createVNode)("div",{class:"bk-sideslider-title ".concat(t.direction)},[null!==(n=null===(r=i.header)||void 0===r?void 0:r.call(i))&&void 0!==n?n:t.title])])])},default:function(){var t,e;return null!==(e=null===(t=i.default)||void 0===t?void 0:t.call(i))&&void 0!==e?e:"Content"},footer:function(){var t,r;return(0,e.createVNode)("div",{class:"bk-sideslider-footer"},[null!==(r=null===(t=i.footer)||void 0===t?void 0:t.call(i))&&void 0!==r?r:""])}},o="bk-sideslider-wrapper ".concat(t.scrollable?"scroll-able":""," ").concat(t.extCls),a=i.footer?"calc(100vh - 114px)":"calc(100vh - 60px)";return(0,e.createVNode)(s(),(0,e.mergeProps)(t,{maxHeight:a,class:o,style:"".concat(t.direction,": 0;"),onHidden:l,onShown:u,onClose:c}),"function"==typeof(r=n)||"[object Object]"===Object.prototype.toString.call(r)&&!(0,e.isVNode)(r)?n:{default:function(){return[n]}})}}}),d=(0,t.withInstall)(h)})(),c})()));
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("../shared"),require("vue"),require("../button"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../button","../modal"],e);else{var r="object"==typeof exports?e(require("../shared"),require("vue"),require("../button"),require("../modal")):e(t["../shared"],t.vue,t["../button"],t["../modal"]);for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,((t,e,r,n)=>(()=>{var o={7162:(t,e,r)=>{t.exports=r(5047)},5047:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var u=l(t,e,r);if("normal"===u.type){if(n=r.done?p:h,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",v={};function y(){}function g(){}function m(){}var b={};u(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&n.call(x,i)&&(b=x);var j=m.prototype=y.prototype=Object.create(b);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function N(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:P}}function P(){return{value:e,done:!0}}return g.prototype=m,u(j,"constructor",m),u(m,"constructor",g),g.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},L(O.prototype),u(O.prototype,a,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(j),u(j,c,"Generator"),u(j,i,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},4976:t=>{"use strict";t.exports=r},8014:t=>{"use strict";t.exports=n},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return o[t](r,r.exports,a),r.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var c={};return(()=>{"use strict";a.r(c),a.d(c,{default:()=>d});var t=a(4212),e=a(748),r=a(7162),n=a.n(r);Object.create,Object.create;var o=a(4976),i=a.n(o),u=a(8014),s=a.n(u),l=s().propsMixin,f=Object.assign({},l);f.width.default="400",f.height.default="100%";const h=(0,e.defineComponent)({name:"Sideslider",components:{BkModal:s(),BkButton:i()},props:Object.assign(Object.assign({},f),{title:{type:String,default:""},direction:{type:String,default:"right",validator:function(t){var e=["left","right"];return!(e.indexOf(t)<0&&(console.error("direction property is not valid: '".concat(t,"',【").concat(e.join(" | "),"】")),1))}}}),emits:["closed","update:isShow","shown","hidden","animation-end"],setup:function(t,r){var o=this,i=r.slots,a=r.emit,c=function(){return e=o,r=void 0,i=void 0,c=n().mark((function e(){var r;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=!0,"function"!=typeof t.beforeClose){e.next=5;break}return e.next=4,t.beforeClose();case 4:r=e.sent;case 5:r&&(a("update:isShow",!1),a("closed"),setTimeout((function(){a("animation-end")}),250));case 6:case"end":return e.stop()}}),e)})),new(i||(i=Promise))((function(t,n){function o(t){try{u(c.next(t))}catch(t){n(t)}}function a(t){try{u(c.throw(t))}catch(t){n(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(t){t(r)}))).then(o,a)}u((c=c.apply(e,r||[])).next())}));var e,r,i,c},u=function(){setTimeout((function(){a("shown")}),200)},l=function(){setTimeout((function(){a("hidden")}),200)};return function(){var r,n={header:function(){var r,n;return(0,e.createVNode)(e.Fragment,null,[(0,e.createVNode)("div",{class:"bk-sideslider-header"},[(0,e.createVNode)("div",{class:"bk-sideslider-close ".concat(t.direction),onClick:function(){c()}},null),(0,e.createVNode)("div",{class:"bk-sideslider-title ".concat(t.direction)},[null!==(n=null===(r=i.header)||void 0===r?void 0:r.call(i))&&void 0!==n?n:t.title])])])},default:function(){var t,e;return null!==(e=null===(t=i.default)||void 0===t?void 0:t.call(i))&&void 0!==e?e:"Content"},footer:function(){var t,r;return(0,e.createVNode)("div",{class:"bk-sideslider-footer"},[null!==(r=null===(t=i.footer)||void 0===t?void 0:t.call(i))&&void 0!==r?r:""])}},o="bk-sideslider-wrapper ".concat(t.scrollable?"scroll-able":""," ").concat(t.extCls),a=i.footer?"calc(100vh - 114px)":"calc(100vh - 60px)";return(0,e.createVNode)(s(),(0,e.mergeProps)(t,{maxHeight:a,class:o,style:"".concat(t.direction,": 0;"),onHidden:l,onShown:u,onClose:c}),"function"==typeof(r=n)||"[object Object]"===Object.prototype.toString.call(r)&&!(0,e.isVNode)(r)?n:{default:function(){return[n]}})}}}),d=(0,t.withInstall)(h)})(),c})()));
@@ -1,4 +1,8 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
+ title: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
2
6
  direction: {
3
7
  type: StringConstructor;
4
8
  default: string;
@@ -9,20 +13,12 @@ declare const _default: import("vue").DefineComponent<{
9
13
  } & {
10
14
  default: boolean;
11
15
  };
12
- width: (import("vue-types").VueTypeValidableDef<number> & {
13
- default: number;
14
- }) | (import("vue-types").VueTypeValidableDef<string> & {
15
- default: string;
16
- } & {
17
- default: string;
18
- });
19
- height: (import("vue-types").VueTypeValidableDef<number> & {
20
- default: number;
21
- }) | (import("vue-types").VueTypeValidableDef<string> & {
22
- default: string;
23
- } & {
24
- default: string;
25
- });
16
+ width: import("vue-types").VueTypeDef<string | number> & {
17
+ default: string | number;
18
+ };
19
+ height: import("vue-types").VueTypeDef<string | number> & {
20
+ default: string | number;
21
+ };
26
22
  customClass: (import("vue-types").VueTypeValidableDef<string> & {
27
23
  default: string;
28
24
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -81,11 +77,6 @@ declare const _default: import("vue").DefineComponent<{
81
77
  } & {
82
78
  default: boolean;
83
79
  };
84
- title: import("vue-types").VueTypeValidableDef<string> & {
85
- default: string;
86
- } & {
87
- default: string;
88
- };
89
80
  maxHeight: import("vue-types").VueTypeValidableDef<string> & {
90
81
  default: string;
91
82
  };
@@ -98,7 +89,19 @@ declare const _default: import("vue").DefineComponent<{
98
89
  default: string;
99
90
  };
100
91
  beforeClose: import("vue-types").VueTypeDef<unknown>;
92
+ dialogType: import("vue-types").VueTypeDef<string> & {
93
+ default: string;
94
+ };
95
+ multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
96
+ default: boolean;
97
+ } & {
98
+ default: boolean;
99
+ };
101
100
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hidden" | "update:isShow" | "shown" | "closed" | "animation-end")[], "hidden" | "update:isShow" | "shown" | "closed" | "animation-end", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
101
+ title: {
102
+ type: StringConstructor;
103
+ default: string;
104
+ };
102
105
  direction: {
103
106
  type: StringConstructor;
104
107
  default: string;
@@ -109,20 +112,12 @@ declare const _default: import("vue").DefineComponent<{
109
112
  } & {
110
113
  default: boolean;
111
114
  };
112
- width: (import("vue-types").VueTypeValidableDef<number> & {
113
- default: number;
114
- }) | (import("vue-types").VueTypeValidableDef<string> & {
115
- default: string;
116
- } & {
117
- default: string;
118
- });
119
- height: (import("vue-types").VueTypeValidableDef<number> & {
120
- default: number;
121
- }) | (import("vue-types").VueTypeValidableDef<string> & {
122
- default: string;
123
- } & {
124
- default: string;
125
- });
115
+ width: import("vue-types").VueTypeDef<string | number> & {
116
+ default: string | number;
117
+ };
118
+ height: import("vue-types").VueTypeDef<string | number> & {
119
+ default: string | number;
120
+ };
126
121
  customClass: (import("vue-types").VueTypeValidableDef<string> & {
127
122
  default: string;
128
123
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -181,11 +176,6 @@ declare const _default: import("vue").DefineComponent<{
181
176
  } & {
182
177
  default: boolean;
183
178
  };
184
- title: import("vue-types").VueTypeValidableDef<string> & {
185
- default: string;
186
- } & {
187
- default: string;
188
- };
189
179
  maxHeight: import("vue-types").VueTypeValidableDef<string> & {
190
180
  default: string;
191
181
  };
@@ -198,6 +188,14 @@ declare const _default: import("vue").DefineComponent<{
198
188
  default: string;
199
189
  };
200
190
  beforeClose: import("vue-types").VueTypeDef<unknown>;
191
+ dialogType: import("vue-types").VueTypeDef<string> & {
192
+ default: string;
193
+ };
194
+ multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
195
+ default: boolean;
196
+ } & {
197
+ default: boolean;
198
+ };
201
199
  }>> & {
202
200
  "onUpdate:isShow"?: (...args: any[]) => any;
203
201
  onClosed?: (...args: any[]) => any;
@@ -206,6 +204,7 @@ declare const _default: import("vue").DefineComponent<{
206
204
  "onAnimation-end"?: (...args: any[]) => any;
207
205
  }, {
208
206
  title: string;
207
+ multiInstance: boolean;
209
208
  showMask: boolean;
210
209
  width: string | number;
211
210
  height: string | number;
@@ -217,6 +216,7 @@ declare const _default: import("vue").DefineComponent<{
217
216
  isShow: boolean;
218
217
  transfer: boolean;
219
218
  renderDirective: string;
219
+ dialogType: string;
220
220
  customClass: string | unknown[];
221
221
  scrollable: boolean;
222
222
  closeIcon: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.1-beta.73",
3
+ "version": "0.0.1-beta.74",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",