mixlea-utils-js 0.1.13 → 0.1.14
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/mixlea-utils-js.js +793 -776
- package/dist/mixlea-utils-js.umd.js +2 -2
- package/dist/types/index.d.ts +9 -5
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -337,10 +337,10 @@ export declare function deepMultiSet<T = unknown>(target: T, assignment: Record<
|
|
|
337
337
|
|
|
338
338
|
export declare function deepSet(obj: any, path: string | Array<string | number>, value: any): void;
|
|
339
339
|
|
|
340
|
-
declare function dispatchEvent_2(el: any, e: EventEmit): void
|
|
340
|
+
declare function dispatchEvent_2(el: any, e: EventEmit): Promise<void>;
|
|
341
341
|
export { dispatchEvent_2 as dispatchEvent }
|
|
342
342
|
|
|
343
|
-
export declare function dispatchEvents(el: any, events: EventEmit_2[]): void
|
|
343
|
+
export declare function dispatchEvents(el: any, events: EventEmit_2[]): Promise<void>;
|
|
344
344
|
|
|
345
345
|
export declare function distanceSimilarity(a: string, b: string): number;
|
|
346
346
|
|
|
@@ -462,7 +462,7 @@ export declare function extractWeightInfo(input: string): {
|
|
|
462
462
|
|
|
463
463
|
export declare function extractWeightInfoToKg(spec: string): number | null;
|
|
464
464
|
|
|
465
|
-
export declare function findDOMDataBubble
|
|
465
|
+
export declare function findDOMDataBubble(start: any, dataKey: string, end?: any): string | null | undefined;
|
|
466
466
|
|
|
467
467
|
export declare function findHtmlElementById(id: string, defaultValue?: HTMLElement): HTMLElement | null;
|
|
468
468
|
|
|
@@ -696,6 +696,10 @@ export declare function isFormData(input: any): input is FormData;
|
|
|
696
696
|
|
|
697
697
|
export declare function isFunction<T extends Function>(input: unknown): input is T;
|
|
698
698
|
|
|
699
|
+
export declare function isHtmlElement(input: any): input is HTMLElement;
|
|
700
|
+
|
|
701
|
+
export declare function isHtmlInputElement(input: any): input is HTMLInputElement;
|
|
702
|
+
|
|
699
703
|
export declare function isMobileBrowser(): boolean;
|
|
700
704
|
|
|
701
705
|
export declare function isMoreThanZero(val: any): boolean;
|
|
@@ -1183,9 +1187,9 @@ export declare function setDOMStyle(element: any, styles: Record<string, any>):
|
|
|
1183
1187
|
|
|
1184
1188
|
export declare function setDOMStylePropertys(element: any, propertys: Record<string, any>): void;
|
|
1185
1189
|
|
|
1186
|
-
export declare function setHtmlInputValue(input:
|
|
1190
|
+
export declare function setHtmlInputValue<T = any>(input: T, value: any, opts?: {
|
|
1187
1191
|
dispatchEvent: boolean | 'bubbles';
|
|
1188
|
-
}):
|
|
1192
|
+
}): Promise<T>;
|
|
1189
1193
|
|
|
1190
1194
|
export declare function shareAmount(totalAmount: any, target: {
|
|
1191
1195
|
items: Record<string, any>[];
|