mixlea-utils-js 0.1.12 → 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.
@@ -337,6 +337,11 @@ 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): Promise<void>;
341
+ export { dispatchEvent_2 as dispatchEvent }
342
+
343
+ export declare function dispatchEvents(el: any, events: EventEmit_2[]): Promise<void>;
344
+
340
345
  export declare function distanceSimilarity(a: string, b: string): number;
341
346
 
342
347
  export declare function divide(items: any[], options?: {
@@ -414,6 +419,18 @@ export declare function evaluateMathExpression(expression: string, variables: Re
414
419
  termFallbackValue: number;
415
420
  } | number): number;
416
421
 
422
+ declare interface EventEmit {
423
+ type: 'mousedown' | 'mouseup' | 'click';
424
+ bubbles?: true;
425
+ cancelable?: true;
426
+ }
427
+
428
+ declare interface EventEmit_2 {
429
+ type: 'mousedown' | 'mouseup' | 'click';
430
+ bubbles?: true;
431
+ cancelable?: true;
432
+ }
433
+
417
434
  export declare function exchangeRateFormatter<T = unknown>(value: T, opts?: {
418
435
  thousandth?: boolean;
419
436
  }): string;
@@ -445,7 +462,7 @@ export declare function extractWeightInfo(input: string): {
445
462
 
446
463
  export declare function extractWeightInfoToKg(spec: string): number | null;
447
464
 
448
- export declare function findDOMDataBubble<T = any>(start: any, dataKey: string, end?: any): T | null;
465
+ export declare function findDOMDataBubble(start: any, dataKey: string, end?: any): string | null | undefined;
449
466
 
450
467
  export declare function findHtmlElementById(id: string, defaultValue?: HTMLElement): HTMLElement | null;
451
468
 
@@ -679,6 +696,10 @@ export declare function isFormData(input: any): input is FormData;
679
696
 
680
697
  export declare function isFunction<T extends Function>(input: unknown): input is T;
681
698
 
699
+ export declare function isHtmlElement(input: any): input is HTMLElement;
700
+
701
+ export declare function isHtmlInputElement(input: any): input is HTMLInputElement;
702
+
682
703
  export declare function isMobileBrowser(): boolean;
683
704
 
684
705
  export declare function isMoreThanZero(val: any): boolean;
@@ -1166,9 +1187,9 @@ export declare function setDOMStyle(element: any, styles: Record<string, any>):
1166
1187
 
1167
1188
  export declare function setDOMStylePropertys(element: any, propertys: Record<string, any>): void;
1168
1189
 
1169
- export declare function setHtmlInputValue(input: any, value: any, opts?: {
1190
+ export declare function setHtmlInputValue<T = any>(input: T, value: any, opts?: {
1170
1191
  dispatchEvent: boolean | 'bubbles';
1171
- }): void;
1192
+ }): Promise<T>;
1172
1193
 
1173
1194
  export declare function shareAmount(totalAmount: any, target: {
1174
1195
  items: Record<string, any>[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mixlea-utils-js",
3
3
  "type": "module",
4
- "version": "0.1.12",
4
+ "version": "0.1.14",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
7
7
  "exports": {