bkui-vue 0.0.1-beta.424 → 0.0.1-beta.425
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +4 -0
- package/dist/index.umd.js +1 -1
- package/lib/input/index.d.ts +49 -49
- package/lib/input/input.d.ts +9 -9
- package/lib/loading/index.js +1 -1
- package/package.json +1 -1
package/lib/input/index.d.ts
CHANGED
@@ -107,20 +107,20 @@ declare const BkInput: {
|
|
107
107
|
default: boolean;
|
108
108
|
};
|
109
109
|
}>> & {
|
110
|
-
onPaste?: (_value: any, _evt?:
|
110
|
+
onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
|
111
111
|
onCompositionend?: (evt: CompositionEvent) => any;
|
112
112
|
onCompositionstart?: (evt: CompositionEvent) => any;
|
113
113
|
onCompositionupdate?: (evt: CompositionEvent) => any;
|
114
114
|
onFocus?: (evt: FocusEvent) => any;
|
115
115
|
onBlur?: (evt: FocusEvent) => any;
|
116
|
-
onChange?: (_value: any, _evt?:
|
117
|
-
onInput?: (_value: any, _evt?:
|
118
|
-
onKeydown?: (_value: any, _evt?:
|
119
|
-
onKeypress?: (_value: any, _evt?:
|
120
|
-
onKeyup?: (_value: any, _evt?:
|
116
|
+
onChange?: (_value: any, _evt?: KeyboardEvent) => any;
|
117
|
+
onInput?: (_value: any, _evt?: KeyboardEvent) => any;
|
118
|
+
onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
|
119
|
+
onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
|
120
|
+
onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
|
121
121
|
onClear?: () => any;
|
122
|
-
"onUpdate:modelValue"?: (_value: any, _evt?:
|
123
|
-
onEnter?: (_value: any, _evt?:
|
122
|
+
"onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
|
123
|
+
onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
|
124
124
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "behavior" | "disabled" | "step" | "placeholder" | "prefix" | "max" | "min" | "maxlength" | "clearable" | "readonly" | "prefixIcon" | "suffixIcon" | "suffix" | "showWordLimit" | "showControl" | "showClearOnlyHover" | "precision" | "rows" | "selectReadonly" | "withValidate">;
|
125
125
|
$attrs: {
|
126
126
|
[x: string]: unknown;
|
@@ -133,7 +133,7 @@ declare const BkInput: {
|
|
133
133
|
}>;
|
134
134
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
135
135
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
136
|
-
$emit: ((event: import("./input").EVENTS.UPDATE, _value: any, _evt?:
|
136
|
+
$emit: ((event: import("./input").EVENTS.UPDATE, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.FOCUS, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.BLUR, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.CHANGE, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.CLEAR) => void) & ((event: import("./input").EVENTS.INPUT, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYPRESS, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYDOWN, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYUP, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.ENTER, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.PASTE, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONSTART, evt: CompositionEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONUPDATE, evt: CompositionEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONEND, evt: CompositionEvent) => void);
|
137
137
|
$el: any;
|
138
138
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
139
139
|
type: import("vue-types").VueTypeValidableDef<string> & {
|
@@ -218,32 +218,32 @@ declare const BkInput: {
|
|
218
218
|
default: boolean;
|
219
219
|
};
|
220
220
|
}>> & {
|
221
|
-
onPaste?: (_value: any, _evt?:
|
221
|
+
onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
|
222
222
|
onCompositionend?: (evt: CompositionEvent) => any;
|
223
223
|
onCompositionstart?: (evt: CompositionEvent) => any;
|
224
224
|
onCompositionupdate?: (evt: CompositionEvent) => any;
|
225
225
|
onFocus?: (evt: FocusEvent) => any;
|
226
226
|
onBlur?: (evt: FocusEvent) => any;
|
227
|
-
onChange?: (_value: any, _evt?:
|
228
|
-
onInput?: (_value: any, _evt?:
|
229
|
-
onKeydown?: (_value: any, _evt?:
|
230
|
-
onKeypress?: (_value: any, _evt?:
|
231
|
-
onKeyup?: (_value: any, _evt?:
|
227
|
+
onChange?: (_value: any, _evt?: KeyboardEvent) => any;
|
228
|
+
onInput?: (_value: any, _evt?: KeyboardEvent) => any;
|
229
|
+
onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
|
230
|
+
onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
|
231
|
+
onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
|
232
232
|
onClear?: () => any;
|
233
|
-
"onUpdate:modelValue"?: (_value: any, _evt?:
|
234
|
-
onEnter?: (_value: any, _evt?:
|
233
|
+
"onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
|
234
|
+
onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
|
235
235
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
236
|
-
"update:modelValue": (_value: any, _evt?:
|
236
|
+
"update:modelValue": (_value: any, _evt?: KeyboardEvent) => any;
|
237
237
|
focus: (evt: FocusEvent) => FocusEvent;
|
238
238
|
blur: (evt: FocusEvent) => FocusEvent;
|
239
|
-
change: (_value: any, _evt?:
|
239
|
+
change: (_value: any, _evt?: KeyboardEvent) => any;
|
240
240
|
clear: () => boolean;
|
241
|
-
input: (_value: any, _evt?:
|
242
|
-
keypress: (_value: any, _evt?:
|
243
|
-
keydown: (_value: any, _evt?:
|
244
|
-
keyup: (_value: any, _evt?:
|
245
|
-
enter: (_value: any, _evt?:
|
246
|
-
paste: (_value: any, _evt?:
|
241
|
+
input: (_value: any, _evt?: KeyboardEvent) => any;
|
242
|
+
keypress: (_value: any, _evt?: KeyboardEvent) => any;
|
243
|
+
keydown: (_value: any, _evt?: KeyboardEvent) => any;
|
244
|
+
keyup: (_value: any, _evt?: KeyboardEvent) => any;
|
245
|
+
enter: (_value: any, _evt?: KeyboardEvent) => any;
|
246
|
+
paste: (_value: any, _evt?: KeyboardEvent) => any;
|
247
247
|
compositionstart: (evt: CompositionEvent) => CompositionEvent;
|
248
248
|
compositionupdate: (evt: CompositionEvent) => CompositionEvent;
|
249
249
|
compositionend: (evt: CompositionEvent) => CompositionEvent;
|
@@ -372,20 +372,20 @@ declare const BkInput: {
|
|
372
372
|
default: boolean;
|
373
373
|
};
|
374
374
|
}>> & {
|
375
|
-
onPaste?: (_value: any, _evt?:
|
375
|
+
onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
|
376
376
|
onCompositionend?: (evt: CompositionEvent) => any;
|
377
377
|
onCompositionstart?: (evt: CompositionEvent) => any;
|
378
378
|
onCompositionupdate?: (evt: CompositionEvent) => any;
|
379
379
|
onFocus?: (evt: FocusEvent) => any;
|
380
380
|
onBlur?: (evt: FocusEvent) => any;
|
381
|
-
onChange?: (_value: any, _evt?:
|
382
|
-
onInput?: (_value: any, _evt?:
|
383
|
-
onKeydown?: (_value: any, _evt?:
|
384
|
-
onKeypress?: (_value: any, _evt?:
|
385
|
-
onKeyup?: (_value: any, _evt?:
|
381
|
+
onChange?: (_value: any, _evt?: KeyboardEvent) => any;
|
382
|
+
onInput?: (_value: any, _evt?: KeyboardEvent) => any;
|
383
|
+
onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
|
384
|
+
onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
|
385
|
+
onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
|
386
386
|
onClear?: () => any;
|
387
|
-
"onUpdate:modelValue"?: (_value: any, _evt?:
|
388
|
-
onEnter?: (_value: any, _evt?:
|
387
|
+
"onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
|
388
|
+
onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
|
389
389
|
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
390
390
|
__isFragment?: never;
|
391
391
|
__isTeleport?: never;
|
@@ -473,32 +473,32 @@ declare const BkInput: {
|
|
473
473
|
default: boolean;
|
474
474
|
};
|
475
475
|
}>> & {
|
476
|
-
onPaste?: (_value: any, _evt?:
|
476
|
+
onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
|
477
477
|
onCompositionend?: (evt: CompositionEvent) => any;
|
478
478
|
onCompositionstart?: (evt: CompositionEvent) => any;
|
479
479
|
onCompositionupdate?: (evt: CompositionEvent) => any;
|
480
480
|
onFocus?: (evt: FocusEvent) => any;
|
481
481
|
onBlur?: (evt: FocusEvent) => any;
|
482
|
-
onChange?: (_value: any, _evt?:
|
483
|
-
onInput?: (_value: any, _evt?:
|
484
|
-
onKeydown?: (_value: any, _evt?:
|
485
|
-
onKeypress?: (_value: any, _evt?:
|
486
|
-
onKeyup?: (_value: any, _evt?:
|
482
|
+
onChange?: (_value: any, _evt?: KeyboardEvent) => any;
|
483
|
+
onInput?: (_value: any, _evt?: KeyboardEvent) => any;
|
484
|
+
onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
|
485
|
+
onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
|
486
|
+
onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
|
487
487
|
onClear?: () => any;
|
488
|
-
"onUpdate:modelValue"?: (_value: any, _evt?:
|
489
|
-
onEnter?: (_value: any, _evt?:
|
488
|
+
"onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
|
489
|
+
onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
|
490
490
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
491
|
-
"update:modelValue": (_value: any, _evt?:
|
491
|
+
"update:modelValue": (_value: any, _evt?: KeyboardEvent) => any;
|
492
492
|
focus: (evt: FocusEvent) => FocusEvent;
|
493
493
|
blur: (evt: FocusEvent) => FocusEvent;
|
494
|
-
change: (_value: any, _evt?:
|
494
|
+
change: (_value: any, _evt?: KeyboardEvent) => any;
|
495
495
|
clear: () => boolean;
|
496
|
-
input: (_value: any, _evt?:
|
497
|
-
keypress: (_value: any, _evt?:
|
498
|
-
keydown: (_value: any, _evt?:
|
499
|
-
keyup: (_value: any, _evt?:
|
500
|
-
enter: (_value: any, _evt?:
|
501
|
-
paste: (_value: any, _evt?:
|
496
|
+
input: (_value: any, _evt?: KeyboardEvent) => any;
|
497
|
+
keypress: (_value: any, _evt?: KeyboardEvent) => any;
|
498
|
+
keydown: (_value: any, _evt?: KeyboardEvent) => any;
|
499
|
+
keyup: (_value: any, _evt?: KeyboardEvent) => any;
|
500
|
+
enter: (_value: any, _evt?: KeyboardEvent) => any;
|
501
|
+
paste: (_value: any, _evt?: KeyboardEvent) => any;
|
502
502
|
compositionstart: (evt: CompositionEvent) => CompositionEvent;
|
503
503
|
compositionupdate: (evt: CompositionEvent) => CompositionEvent;
|
504
504
|
compositionend: (evt: CompositionEvent) => CompositionEvent;
|
package/lib/input/input.d.ts
CHANGED
@@ -98,7 +98,7 @@ export declare const enum EVENTS {
|
|
98
98
|
COMPOSITIONUPDATE = "compositionupdate",
|
99
99
|
COMPOSITIONEND = "compositionend"
|
100
100
|
}
|
101
|
-
declare function EventFunction(_value: any, _evt?: KeyboardEvent
|
101
|
+
declare function EventFunction(_value: any, _evt?: KeyboardEvent): any;
|
102
102
|
declare function CompositionEventFunction(evt: CompositionEvent): CompositionEvent;
|
103
103
|
export declare const inputEmitEventsType: {
|
104
104
|
"update:modelValue": typeof EventFunction;
|
@@ -297,20 +297,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
297
297
|
default: boolean;
|
298
298
|
};
|
299
299
|
}>> & {
|
300
|
-
onPaste?: (_value: any, _evt?:
|
300
|
+
onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
|
301
301
|
onCompositionend?: (evt: CompositionEvent) => any;
|
302
302
|
onCompositionstart?: (evt: CompositionEvent) => any;
|
303
303
|
onCompositionupdate?: (evt: CompositionEvent) => any;
|
304
304
|
onFocus?: (evt: FocusEvent) => any;
|
305
305
|
onBlur?: (evt: FocusEvent) => any;
|
306
|
-
onChange?: (_value: any, _evt?:
|
307
|
-
onInput?: (_value: any, _evt?:
|
308
|
-
onKeydown?: (_value: any, _evt?:
|
309
|
-
onKeypress?: (_value: any, _evt?:
|
310
|
-
onKeyup?: (_value: any, _evt?:
|
306
|
+
onChange?: (_value: any, _evt?: KeyboardEvent) => any;
|
307
|
+
onInput?: (_value: any, _evt?: KeyboardEvent) => any;
|
308
|
+
onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
|
309
|
+
onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
|
310
|
+
onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
|
311
311
|
onClear?: () => any;
|
312
|
-
"onUpdate:modelValue"?: (_value: any, _evt?:
|
313
|
-
onEnter?: (_value: any, _evt?:
|
312
|
+
"onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
|
313
|
+
onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
|
314
314
|
}, {
|
315
315
|
type: string;
|
316
316
|
behavior: "simplicity" | "normal";
|
package/lib/loading/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function i(e){var o=n[e];if(void 0!==o)return o.exports;var
|
1
|
+
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function i(e){var o=n[e];if(void 0!==o)return o.exports;var l=n[e]={exports:{}};return t[e](l,l.exports,i),l.exports}i.d=(e,o)=>{for(var t in o)i.o(o,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},i.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{i.r(l),i.d(l,{BkLoading:()=>v,BkLoadingMode:()=>e,BkLoadingSize:()=>o,default:()=>f,setDefaultIndicator:()=>d});var e,o,t,n=i(4212),r=i(748);function a(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function d(e){t="function"==typeof e?e:function(){return(0,r.createVNode)(e,null,null)}}!function(e){e.Default="default",e.Spin="spin"}(e||(e={})),function(e){e.Normal="",e.Mini="mini",e.Small="small",e.Large="large"}(o||(o={}));var u={indicator:{type:Function},loading:n.PropTypes.bool.def(!0),inline:n.PropTypes.bool.def(!0),theme:{type:String},title:n.PropTypes.string.def(""),size:{type:String,default:o.Normal},mode:{type:String,default:"default"},opacity:n.PropTypes.number.def(.9),color:n.PropTypes.string.def("white"),zIndex:n.PropTypes.number.def(1),isDirective:n.PropTypes.bool.def(!1)};const c=(0,r.defineComponent)({name:"Loading",props:u,setup:function(o,i){var l=(0,r.createVNode)("div",{class:"bk-normal-indicator"},[[1,2,3,4].map((function(e){return(0,r.createVNode)("span",{class:"dot dot-".concat(e)},null)}))]),d=(0,r.createVNode)("div",{class:"bk-spin-indicator"},[[1,2,3,4,5,6,7,8].map((function(e){return(0,r.createVNode)("span",{class:"oval oval-".concat(e)},null)}))]),u=(0,r.computed)((function(){return{zIndex:o.zIndex}})),c=(0,r.computed)((function(){return Object.assign({opacity:o.opacity,backgroundColor:o.color},u.value)})),s=(0,r.computed)((function(){return(0,n.classes)({"bk-loading-wrapper":o.loading,"bk-nested-loading":!!i.slots.default,"bk-directive-loading":o.isDirective})})),p=(0,r.computed)((function(){var e;return(0,n.classes)((a(e={},"bk-loading-size-".concat(o.size),!!o.size),a(e,"bk-loading-".concat(o.theme),!!o.theme),e),"bk-loading-indicator")})),v=(0,r.computed)((function(){return!!o.title})),f=(0,r.computed)((function(){var n=o.mode===e.Spin;return"function"==typeof o.indicator?(0,r.createVNode)(o.indicator,null,null):"function"==typeof t?(0,r.createVNode)(t,null,null):n?d:l}));return function(){var e,t;return(0,r.createVNode)("div",{class:s.value},[null===(t=(e=i.slots).default)||void 0===t?void 0:t.call(e),o.loading&&[(i.slots.default||o.isDirective)&&(0,r.createVNode)("div",{class:"bk-loading-mask",style:c.value},null),(0,r.createVNode)("div",{class:p.value,style:u.value},[f.value,v.value&&(0,r.createVNode)("div",{class:"bk-loading-title"},[o.title])])]])}}});var s=Symbol("vBkLoading"),p={mounted:function(e,o){o.value&&function(e,o){var t,n,i,l,a,d=function(e){var t,n;return null!==(n=null===(t=o.value)||void 0===t?void 0:t[e])&&void 0!==n?n:void 0},u=(0,r.reactive)({indicator:d("indicator"),loading:null!==(t=d("loading"))&&void 0!==t&&t,inline:null!==(n=d("inline"))&&void 0!==n&&n,theme:d("theme"),title:null!==(i=d("title"))&&void 0!==i?i:"",size:null!==(l=d("size"))&&void 0!==l?l:"",mode:d("mode"),opacity:d("opacity"),color:null!==(a=d("color"))&&void 0!==a?a:"white",zIndex:d("zIndex"),isDirective:!0}),p=document.createElement("div");Object.assign(p.style,{position:"absolute",left:0,right:0,top:0,bottom:0}),Object.assign(e.style,{position:"relative"});var v=(0,r.createApp)({render:function(){return(0,r.h)(c,u)}});e[s]={options:u,instance:v,vm:v.mount(p)},e.appendChild(p)}(e,o)},updated:function(e,o){var t,n,i,l,r,a=e[s],d=o.value;l=d,r=a.options,Object.keys(l).forEach((function(e){l[e]!==r[e]&&(r[e]=l[e])})),(null===(i=null===(n=null===(t=null==a?void 0:a.vm)||void 0===t?void 0:t.$el)||void 0===n?void 0:n.parentNode)||void 0===i?void 0:i.style)&&(a.vm.$el.parentNode.style.display=d.loading?"":"none")},unmounted:function(e){var o,t,n,i=e[s];null==e||e.removeChild(null===(t=null===(o=null==i?void 0:i.vm)||void 0===o?void 0:o.$el)||void 0===t?void 0:t.parentNode),null===(n=null==i?void 0:i.instance)||void 0===n||n.unmount(),e[s]=null}},v=(0,n.withInstallProps)(c,{setDefaultIndicator:d,BkLoadingMode:e,BkLoadingSize:o},!0,{name:"loading",directive:p});const f=v})(),l})()));
|