@luminix/support 0.1.0-beta.0 → 0.1.0-beta.1
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/support.js +3139 -6078
- package/package.json +1 -1
- package/types/DateTime.d.ts +9 -2
- package/types/Func.d.ts +9 -2
- package/types/Query.d.ts +10 -3
- package/types/Str.d.ts +25 -18
- package/types/index.d.ts +8 -4
package/package.json
CHANGED
package/types/DateTime.d.ts
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
1
|
+
export declare class DateTimeMacros {
|
|
2
|
+
[x: string]: (...args: any[]) => any;
|
|
3
|
+
}
|
|
4
|
+
declare class DateTimeStatic {
|
|
5
|
+
parse(value: Date | string): Date;
|
|
6
|
+
toDateTimeLocal(value: Date | string): string;
|
|
7
|
+
}
|
|
8
|
+
declare const DateTime: DateTimeStatic & DateTimeMacros & import('./Mixins/Macroable').MacroableInterface<DateTimeMacros>;
|
|
9
|
+
export default DateTime;
|
package/types/Func.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import { DebouncedFunc, DebounceSettings, ThrottleSettings } from 'lodash-es';
|
|
2
|
-
export declare
|
|
3
|
-
|
|
2
|
+
export declare class FuncMacros {
|
|
3
|
+
[x: string]: (...args: any[]) => any;
|
|
4
|
+
}
|
|
5
|
+
declare class FuncStatic {
|
|
6
|
+
throttle<T extends (...args: any) => any>(func: T, wait?: number, options?: ThrottleSettings): DebouncedFunc<T>;
|
|
7
|
+
debounce<T extends (...args: any) => any>(func: T, wait?: number, options?: DebounceSettings): DebouncedFunc<T>;
|
|
8
|
+
}
|
|
9
|
+
declare const Func: FuncStatic & FuncMacros & import('./Mixins/Macroable').MacroableInterface<FuncMacros>;
|
|
10
|
+
export default Func;
|
package/types/Query.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
export type Operator = '=' | '!=' | '>' | '>=' | '<' | '<=';
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare class QueryMacros {
|
|
3
|
+
[x: string]: (...args: any[]) => any;
|
|
4
|
+
}
|
|
5
|
+
declare class QueryStatic {
|
|
6
|
+
fromObject(object: object): URLSearchParams;
|
|
7
|
+
toObject(searchParams: URLSearchParams): Record<string, any>;
|
|
8
|
+
merge(...parts: (string | URLSearchParams)[]): URLSearchParams;
|
|
9
|
+
}
|
|
10
|
+
declare const Query: QueryStatic & QueryMacros & import('./Mixins/Macroable').MacroableInterface<QueryMacros>;
|
|
11
|
+
export default Query;
|
package/types/Str.d.ts
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
export declare class StrMacros {
|
|
2
|
+
[x: string]: (...args: any[]) => any;
|
|
3
|
+
}
|
|
4
|
+
declare class StrStatic {
|
|
5
|
+
after(string: string, search: string): string;
|
|
6
|
+
afterLast(string: string, search: string): string;
|
|
7
|
+
before(string: string, search: string): string;
|
|
8
|
+
beforeLast(string: string, search: string): string;
|
|
9
|
+
camel(string: string): string;
|
|
10
|
+
lcfirst(string: string): string;
|
|
11
|
+
lower(string: string): string;
|
|
12
|
+
kebab(string: string): string;
|
|
13
|
+
padBoth(string: string, length: number, chars?: string): string;
|
|
14
|
+
padLeft(string: string, length: number, chars?: string): string;
|
|
15
|
+
padRight(string: string, length: number, chars?: string): string;
|
|
16
|
+
readable(string: string): string;
|
|
17
|
+
studly(string: string): string;
|
|
18
|
+
snake(string: string): string;
|
|
19
|
+
title(string: string): string;
|
|
20
|
+
trim(string: string, chars?: string): string;
|
|
21
|
+
ucfirst(string: string): string;
|
|
22
|
+
upper(string: string): string;
|
|
23
|
+
}
|
|
24
|
+
declare const Str: StrStatic & StrMacros & import('./Mixins/Macroable').MacroableInterface<StrMacros>;
|
|
25
|
+
export default Str;
|
package/types/index.d.ts
CHANGED
|
@@ -13,15 +13,19 @@ import { default as Response } from './Http/Response';
|
|
|
13
13
|
import { default as ServiceProvider } from './App/ServiceProvider';
|
|
14
14
|
import { default as isValidationError } from './Http/Utils/isValidationError';
|
|
15
15
|
import { default as Arr } from './Arr';
|
|
16
|
+
import { default as DateTime } from './DateTime';
|
|
17
|
+
import { default as Func } from './Func';
|
|
16
18
|
import { default as Obj } from './Obj';
|
|
19
|
+
import { default as Query } from './Query';
|
|
20
|
+
import { default as Str } from './Str';
|
|
17
21
|
import * as immer from 'immer';
|
|
18
|
-
import * as DateTime from './DateTime';
|
|
19
|
-
import * as Func from './Func';
|
|
20
|
-
import * as Query from './Query';
|
|
21
|
-
import * as Str from './Str';
|
|
22
22
|
export { Application, Arr, Client, Collection, DateTime, EventSource, Func, isValidationError, Macroable, MakeFacade, Obj, PropertyBag, reader, Reducible, Request, Response, ServiceProvider, Query, Str, axios, immer, };
|
|
23
23
|
export type { ArrMacros } from './Arr';
|
|
24
|
+
export type { DateTimeMacros } from './DateTime';
|
|
25
|
+
export type { FuncMacros } from './Func';
|
|
24
26
|
export type { ObjMacros } from './Obj';
|
|
27
|
+
export type { QueryMacros } from './Query';
|
|
28
|
+
export type { StrMacros } from './Str';
|
|
25
29
|
export type { ApplicationInterface, ApplicationEvents } from './App/Interfaces';
|
|
26
30
|
export type { Event, EventMap, EventMapOf, EventsOf, EventCallbackOf } from './Contracts/EventSource';
|
|
27
31
|
export type { RequestOptions } from './Http/Client';
|