@trustme24/flext 1.2.0 → 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 -186
- package/dist/index.css +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +34 -26
- package/dist/lib.d.ts +2 -0
- package/dist/modules/date/index.d.ts +15 -0
- package/dist/modules/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/modules/logic/index.d.ts +0 -6
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,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
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare function op(state: any): boolean;
|
|
2
|
-
export declare function switchHelper(state: any): any;
|
|
3
|
-
export declare function caseHelper(state: any): any;
|
|
4
|
-
export declare function defaultHelper(state: any): any;
|
|
5
|
-
declare const _default: any;
|
|
6
|
-
export default _default;
|