mixlea-utils-js 0.1.24 → 0.1.25
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 +896 -885
- package/dist/mixlea-utils-js.umd.js +2 -2
- package/dist/types/index.d.ts +10 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -273,6 +273,8 @@ declare interface CommonEvent_2 {
|
|
|
273
273
|
|
|
274
274
|
export declare function compareSetDifference<T>(setA: Set<T>, setB: Set<T>): Set<T>;
|
|
275
275
|
|
|
276
|
+
declare type ConfigStore = Record<string, any>;
|
|
277
|
+
|
|
276
278
|
export declare function convertWeightUnitToStandard(chineseWeight: string): string;
|
|
277
279
|
|
|
278
280
|
export declare function coordinateBetween(p1: Point, p2: Point): Point[];
|
|
@@ -349,6 +351,8 @@ export declare function deepMultiSet<T = unknown>(target: T, assignment: Record<
|
|
|
349
351
|
|
|
350
352
|
export declare function deepSet(obj: any, path: string | Array<string | number>, value: any): void;
|
|
351
353
|
|
|
354
|
+
export declare const deleteConfigStoreAtKey: (key: string) => void;
|
|
355
|
+
|
|
352
356
|
export declare function dispatchNodeEvent<T = any>(el: T, e: CommonEvent | SpecialEvent): Promise<T>;
|
|
353
357
|
|
|
354
358
|
export declare function dispatchNodeEvents<T = any>(el: T, events: (CommonEvent_2 | SpecialEvent_2)[]): Promise<T>;
|
|
@@ -503,6 +507,8 @@ export declare function getBrowserEnv(): "webview" | "mobile" | "desktop";
|
|
|
503
507
|
|
|
504
508
|
export declare function getClosestInteger(val: number): number;
|
|
505
509
|
|
|
510
|
+
export declare const getConfigStoreAtKey: <V = any>(key: string) => V | undefined;
|
|
511
|
+
|
|
506
512
|
export declare function getCurrentDate(): Date;
|
|
507
513
|
|
|
508
514
|
export declare function getDateDay(value: any, defaultValue?: number): number;
|
|
@@ -1192,6 +1198,10 @@ export declare function selectFile({ accept, multiple }: {
|
|
|
1192
1198
|
multiple?: 'multiple';
|
|
1193
1199
|
}): Promise<File[]>;
|
|
1194
1200
|
|
|
1201
|
+
export declare const setConfigStore: (nextStore: ConfigStore) => void;
|
|
1202
|
+
|
|
1203
|
+
export declare const setConfigStoreAtKey: <V>(key: string, value: V) => void;
|
|
1204
|
+
|
|
1195
1205
|
export declare function setDOMStyle(element: any, styles: Record<string, any>): void;
|
|
1196
1206
|
|
|
1197
1207
|
export declare function setDOMStylePropertys(element: any, propertys: Record<string, any>): void;
|