@trustme24/flext 1.1.5 → 1.3.0
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 +374 -180
- package/dist/index.css +2 -2
- package/dist/index.d.ts +4 -0
- package/dist/index.js +34 -26
- package/dist/lib.d.ts +2 -0
- package/dist/modules/cond/index.d.ts +11 -0
- package/dist/modules/date/index.d.ts +15 -0
- package/dist/modules/index.d.ts +4 -0
- package/dist/modules/match/index.d.ts +5 -0
- package/dist/modules/math/index.d.ts +17 -0
- package/package.json +1 -1
package/dist/lib.d.ts
CHANGED
|
@@ -30,7 +30,9 @@ export declare function getDataModel(ast: AST.Program): DataModel;
|
|
|
30
30
|
export declare function getMacroParam(val: string): MacroParam | null;
|
|
31
31
|
export declare function getMacroParams(val: string, doWarn?: boolean): MacroParam[];
|
|
32
32
|
export declare function getMacros(ast: AST.Program, doWarn?: boolean): Macro[];
|
|
33
|
+
export declare function ensureDate(val: Date | string | number): Date;
|
|
33
34
|
export declare class RegexHelper {
|
|
35
|
+
static dbDateStr: RegExp;
|
|
34
36
|
static macro: RegExp;
|
|
35
37
|
static macroParams: RegExp;
|
|
36
38
|
static macroParam: RegExp;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function op(state: any): boolean;
|
|
2
|
+
export declare function equal(state: any): boolean;
|
|
3
|
+
export declare function softEqual(state: any): boolean;
|
|
4
|
+
export declare function notEqual(state: any): boolean;
|
|
5
|
+
export declare function softNotEqual(state: any): boolean;
|
|
6
|
+
export declare function and(state: any): boolean;
|
|
7
|
+
export declare function or(state: any): boolean;
|
|
8
|
+
export declare function greater(state: any): boolean;
|
|
9
|
+
export declare function less(state: any): boolean;
|
|
10
|
+
declare const _default: any;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SafeString } from 'handlebars';
|
|
2
|
+
export declare const DEFAULT_LANG = "en-US";
|
|
3
|
+
export declare function op(state: any): string | number;
|
|
4
|
+
export declare function opWithColor(state: any): SafeString;
|
|
5
|
+
export declare function seconds(state: any): SafeString;
|
|
6
|
+
export declare function minutes(state: any): SafeString;
|
|
7
|
+
export declare function hours(state: any): SafeString;
|
|
8
|
+
export declare function day(state: any): SafeString;
|
|
9
|
+
export declare function month(state: any): SafeString;
|
|
10
|
+
export declare function monthText(state: any): SafeString;
|
|
11
|
+
export declare function year(state: any): SafeString;
|
|
12
|
+
export declare function unix(state: any): number;
|
|
13
|
+
export declare function iso(state: any): string;
|
|
14
|
+
declare const _default: any;
|
|
15
|
+
export default _default;
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SafeString } from 'handlebars';
|
|
2
|
+
export type Arg = string | number | null | undefined;
|
|
3
|
+
export declare function op(state: any): number;
|
|
4
|
+
export declare function opWithColor(state: any): SafeString;
|
|
5
|
+
export declare function plus(state: any): SafeString;
|
|
6
|
+
export declare function minus(state: any): SafeString;
|
|
7
|
+
export declare function multiply(state: any): SafeString;
|
|
8
|
+
export declare function divide(state: any): SafeString;
|
|
9
|
+
export declare function intDivide(state: any): SafeString;
|
|
10
|
+
export declare function power(state: any): SafeString;
|
|
11
|
+
export declare function round(state: any): SafeString;
|
|
12
|
+
export declare function percent(state: any): SafeString;
|
|
13
|
+
export declare function sqrt(state: any): SafeString;
|
|
14
|
+
export declare function cbrt(state: any): SafeString;
|
|
15
|
+
export declare function abs(state: any): SafeString;
|
|
16
|
+
declare const _default: any;
|
|
17
|
+
export default _default;
|