@appartmint/mint 1.3.1 → 1.3.3
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/README.md +3 -3
- package/dist/css/mint.css.map +1 -1
- package/dist/css/mint.min.css.map +1 -1
- package/dist/js/imports/components/header.d.ts +124 -124
- package/dist/js/imports/components/index.d.ts +4 -4
- package/dist/js/imports/enums/index.d.ts +4 -4
- package/dist/js/imports/enums/side.d.ts +9 -9
- package/dist/js/imports/index.d.ts +7 -7
- package/dist/js/imports/models/color.d.ts +31 -31
- package/dist/js/imports/models/file.d.ts +20 -20
- package/dist/js/imports/models/index.d.ts +9 -9
- package/dist/js/imports/models/item.d.ts +74 -74
- package/dist/js/imports/models/minify.d.ts +11 -11
- package/dist/js/imports/models/page.d.ts +17 -17
- package/dist/js/imports/models/recaptcha.d.ts +8 -8
- package/dist/js/imports/util/async.d.ts +10 -10
- package/dist/js/imports/util/display.d.ts +24 -24
- package/dist/js/imports/util/event.d.ts +40 -40
- package/dist/js/imports/util/icon.d.ts +28 -28
- package/dist/js/imports/util/index.d.ts +15 -15
- package/dist/js/imports/util/list.d.ts +22 -22
- package/dist/js/imports/util/math.d.ts +13 -13
- package/dist/js/imports/util/object.d.ts +82 -82
- package/dist/js/imports/util/scroll.d.ts +22 -22
- package/dist/js/imports/util/selectors.d.ts +121 -121
- package/dist/js/imports/util/settings.d.ts +38 -38
- package/dist/js/imports/util/text.d.ts +45 -45
- package/dist/js/imports/util/window.d.ts +11 -11
- package/dist/js/index.d.ts +9 -9
- package/dist/js/index.js +362 -362
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.min.js.map +1 -1
- package/package.json +4 -4
- package/src/scss/imports/global/_icons.scss +6 -6
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Main header functionality
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
export declare class MintHeader {
|
|
6
|
-
/**
|
|
7
|
-
* Navbar settings
|
|
8
|
-
*/
|
|
9
|
-
settings: {
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Frequently-referenced elements
|
|
14
|
-
*/
|
|
15
|
-
el: {
|
|
16
|
-
[key: string]: HTMLElement | null;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Initializes and closes the menu
|
|
20
|
-
*/
|
|
21
|
-
constructor(settings?: {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
});
|
|
24
|
-
/**
|
|
25
|
-
* Adds elements to {@link el | `this.el`}
|
|
26
|
-
*/
|
|
27
|
-
attachElements(): void;
|
|
28
|
-
/**
|
|
29
|
-
* Adds events to the dom
|
|
30
|
-
*/
|
|
31
|
-
attachEvents(): void;
|
|
32
|
-
/**
|
|
33
|
-
* Adds classes that inform the styles based on settings
|
|
34
|
-
*/
|
|
35
|
-
addClasses(): void;
|
|
36
|
-
/**
|
|
37
|
-
* Sets the state of the mobile menu
|
|
38
|
-
* @param open - `true` to open the menu or `false` to close it
|
|
39
|
-
*/
|
|
40
|
-
setMobileMenu(open?: boolean): void;
|
|
41
|
-
/**
|
|
42
|
-
* Toggles the state of the mobile menu
|
|
43
|
-
*/
|
|
44
|
-
toggleMobileMenu(): void;
|
|
45
|
-
/**
|
|
46
|
-
* Sets the state of the provided button's menu
|
|
47
|
-
* @param button - Button element to set
|
|
48
|
-
* @param open - `true` to open the menu or `false` to close it
|
|
49
|
-
*/
|
|
50
|
-
setMenu(button?: HTMLElement | null, open?: boolean): void;
|
|
51
|
-
/**
|
|
52
|
-
* Toggles the state of the provided button's menu
|
|
53
|
-
* @param button - Button element to toggle
|
|
54
|
-
*/
|
|
55
|
-
toggleMenu(button?: HTMLElement | null): void;
|
|
56
|
-
/**
|
|
57
|
-
* Closes all submenus of the provided button's menu
|
|
58
|
-
* @param button - Button element of the parent menu
|
|
59
|
-
*/
|
|
60
|
-
closeSubMenus(button?: HTMLElement | null): void;
|
|
61
|
-
/**
|
|
62
|
-
* Closes all sibling menus of the provided button's menu
|
|
63
|
-
* @param button - Button element of the sibling menus
|
|
64
|
-
*/
|
|
65
|
-
closeSiblingMenus(button?: HTMLElement | null): void;
|
|
66
|
-
/**
|
|
67
|
-
* Closes all submenus of the n4vbar
|
|
68
|
-
*/
|
|
69
|
-
closeAllMenus(): void;
|
|
70
|
-
/**
|
|
71
|
-
* Opens the menu closest to the document's focus
|
|
72
|
-
*/
|
|
73
|
-
openClosestMenu(): void;
|
|
74
|
-
/**
|
|
75
|
-
* Closes the menu closest to the document's focus
|
|
76
|
-
*/
|
|
77
|
-
closeClosestMenu(): void;
|
|
78
|
-
/**
|
|
79
|
-
* Toggles the menu closest to the document's focus
|
|
80
|
-
*/
|
|
81
|
-
toggleClosestMenu(): void;
|
|
82
|
-
/**
|
|
83
|
-
* Closes the mobile menu when the window resizes
|
|
84
|
-
*/
|
|
85
|
-
eHandleResize(): void;
|
|
86
|
-
/**
|
|
87
|
-
* Closes all submenus when the page is scrolled
|
|
88
|
-
*/
|
|
89
|
-
eHandleScroll(): void;
|
|
90
|
-
/**
|
|
91
|
-
* Sends the focus to the menu button after tabbing past the last menu item
|
|
92
|
-
* @param e - Keyboard event
|
|
93
|
-
*/
|
|
94
|
-
eWrapTab(e: KeyboardEvent): void;
|
|
95
|
-
/**
|
|
96
|
-
* Handles keypresses on n4vbar buttons
|
|
97
|
-
* @param e - Keyboard event
|
|
98
|
-
*/
|
|
99
|
-
eHandleButtonKeypress(e: KeyboardEvent): void;
|
|
100
|
-
/**
|
|
101
|
-
* Handles keypresses on n4vbar links
|
|
102
|
-
* @param e - Keyboard event
|
|
103
|
-
*/
|
|
104
|
-
eHandleLinkKeypress(e: KeyboardEvent): void;
|
|
105
|
-
/**
|
|
106
|
-
* Handles keypresses on the n4vbar
|
|
107
|
-
* @param e - Keyboard event
|
|
108
|
-
*/
|
|
109
|
-
eHandleKeypress(e: KeyboardEvent): void;
|
|
110
|
-
/**
|
|
111
|
-
* Toggles the mobile menu
|
|
112
|
-
*/
|
|
113
|
-
eToggleMobileMenu(): void;
|
|
114
|
-
/**
|
|
115
|
-
* Toggles the clicked submenu
|
|
116
|
-
* @param e - Mouse event
|
|
117
|
-
*/
|
|
118
|
-
eToggleMenu(e: MouseEvent): void;
|
|
119
|
-
/**
|
|
120
|
-
* Runs after the mobile menu transitions
|
|
121
|
-
*/
|
|
122
|
-
eTransitionEnd(): void;
|
|
123
|
-
}
|
|
124
|
-
export default MintHeader;
|
|
1
|
+
/**
|
|
2
|
+
* Main header functionality
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export declare class MintHeader {
|
|
6
|
+
/**
|
|
7
|
+
* Navbar settings
|
|
8
|
+
*/
|
|
9
|
+
settings: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Frequently-referenced elements
|
|
14
|
+
*/
|
|
15
|
+
el: {
|
|
16
|
+
[key: string]: HTMLElement | null;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Initializes and closes the menu
|
|
20
|
+
*/
|
|
21
|
+
constructor(settings?: {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
});
|
|
24
|
+
/**
|
|
25
|
+
* Adds elements to {@link el | `this.el`}
|
|
26
|
+
*/
|
|
27
|
+
attachElements(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Adds events to the dom
|
|
30
|
+
*/
|
|
31
|
+
attachEvents(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Adds classes that inform the styles based on settings
|
|
34
|
+
*/
|
|
35
|
+
addClasses(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Sets the state of the mobile menu
|
|
38
|
+
* @param open - `true` to open the menu or `false` to close it
|
|
39
|
+
*/
|
|
40
|
+
setMobileMenu(open?: boolean): void;
|
|
41
|
+
/**
|
|
42
|
+
* Toggles the state of the mobile menu
|
|
43
|
+
*/
|
|
44
|
+
toggleMobileMenu(): void;
|
|
45
|
+
/**
|
|
46
|
+
* Sets the state of the provided button's menu
|
|
47
|
+
* @param button - Button element to set
|
|
48
|
+
* @param open - `true` to open the menu or `false` to close it
|
|
49
|
+
*/
|
|
50
|
+
setMenu(button?: HTMLElement | null, open?: boolean): void;
|
|
51
|
+
/**
|
|
52
|
+
* Toggles the state of the provided button's menu
|
|
53
|
+
* @param button - Button element to toggle
|
|
54
|
+
*/
|
|
55
|
+
toggleMenu(button?: HTMLElement | null): void;
|
|
56
|
+
/**
|
|
57
|
+
* Closes all submenus of the provided button's menu
|
|
58
|
+
* @param button - Button element of the parent menu
|
|
59
|
+
*/
|
|
60
|
+
closeSubMenus(button?: HTMLElement | null): void;
|
|
61
|
+
/**
|
|
62
|
+
* Closes all sibling menus of the provided button's menu
|
|
63
|
+
* @param button - Button element of the sibling menus
|
|
64
|
+
*/
|
|
65
|
+
closeSiblingMenus(button?: HTMLElement | null): void;
|
|
66
|
+
/**
|
|
67
|
+
* Closes all submenus of the n4vbar
|
|
68
|
+
*/
|
|
69
|
+
closeAllMenus(): void;
|
|
70
|
+
/**
|
|
71
|
+
* Opens the menu closest to the document's focus
|
|
72
|
+
*/
|
|
73
|
+
openClosestMenu(): void;
|
|
74
|
+
/**
|
|
75
|
+
* Closes the menu closest to the document's focus
|
|
76
|
+
*/
|
|
77
|
+
closeClosestMenu(): void;
|
|
78
|
+
/**
|
|
79
|
+
* Toggles the menu closest to the document's focus
|
|
80
|
+
*/
|
|
81
|
+
toggleClosestMenu(): void;
|
|
82
|
+
/**
|
|
83
|
+
* Closes the mobile menu when the window resizes
|
|
84
|
+
*/
|
|
85
|
+
eHandleResize(): void;
|
|
86
|
+
/**
|
|
87
|
+
* Closes all submenus when the page is scrolled
|
|
88
|
+
*/
|
|
89
|
+
eHandleScroll(): void;
|
|
90
|
+
/**
|
|
91
|
+
* Sends the focus to the menu button after tabbing past the last menu item
|
|
92
|
+
* @param e - Keyboard event
|
|
93
|
+
*/
|
|
94
|
+
eWrapTab(e: KeyboardEvent): void;
|
|
95
|
+
/**
|
|
96
|
+
* Handles keypresses on n4vbar buttons
|
|
97
|
+
* @param e - Keyboard event
|
|
98
|
+
*/
|
|
99
|
+
eHandleButtonKeypress(e: KeyboardEvent): void;
|
|
100
|
+
/**
|
|
101
|
+
* Handles keypresses on n4vbar links
|
|
102
|
+
* @param e - Keyboard event
|
|
103
|
+
*/
|
|
104
|
+
eHandleLinkKeypress(e: KeyboardEvent): void;
|
|
105
|
+
/**
|
|
106
|
+
* Handles keypresses on the n4vbar
|
|
107
|
+
* @param e - Keyboard event
|
|
108
|
+
*/
|
|
109
|
+
eHandleKeypress(e: KeyboardEvent): void;
|
|
110
|
+
/**
|
|
111
|
+
* Toggles the mobile menu
|
|
112
|
+
*/
|
|
113
|
+
eToggleMobileMenu(): void;
|
|
114
|
+
/**
|
|
115
|
+
* Toggles the clicked submenu
|
|
116
|
+
* @param e - Mouse event
|
|
117
|
+
*/
|
|
118
|
+
eToggleMenu(e: MouseEvent): void;
|
|
119
|
+
/**
|
|
120
|
+
* Runs after the mobile menu transitions
|
|
121
|
+
*/
|
|
122
|
+
eTransitionEnd(): void;
|
|
123
|
+
}
|
|
124
|
+
export default MintHeader;
|
|
125
125
|
//# sourceMappingURL=header.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Forward all exports from the components directory
|
|
3
|
-
*/
|
|
4
|
-
export * from './header';
|
|
1
|
+
/**
|
|
2
|
+
* Forward all exports from the components directory
|
|
3
|
+
*/
|
|
4
|
+
export * from './header';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Forward all exports from the enums directory
|
|
3
|
-
*/
|
|
4
|
-
export * from './side';
|
|
1
|
+
/**
|
|
2
|
+
* Forward all exports from the enums directory
|
|
3
|
+
*/
|
|
4
|
+
export * from './side';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Side Enum
|
|
3
|
-
*/
|
|
4
|
-
export declare enum EMintSide {
|
|
5
|
-
Top = 0,
|
|
6
|
-
Right = 1,
|
|
7
|
-
Bottom = 2,
|
|
8
|
-
Left = 3
|
|
9
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Side Enum
|
|
3
|
+
*/
|
|
4
|
+
export declare enum EMintSide {
|
|
5
|
+
Top = 0,
|
|
6
|
+
Right = 1,
|
|
7
|
+
Bottom = 2,
|
|
8
|
+
Left = 3
|
|
9
|
+
}
|
|
10
10
|
//# sourceMappingURL=side.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Forward all exports from the imports directory
|
|
3
|
-
*/
|
|
4
|
-
export * from './components';
|
|
5
|
-
export * from './enums';
|
|
6
|
-
export * from './models';
|
|
7
|
-
export * from './util';
|
|
1
|
+
/**
|
|
2
|
+
* Forward all exports from the imports directory
|
|
3
|
+
*/
|
|
4
|
+
export * from './components';
|
|
5
|
+
export * from './enums';
|
|
6
|
+
export * from './models';
|
|
7
|
+
export * from './util';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Color
|
|
3
|
-
*/
|
|
4
|
-
export declare class mintColor {
|
|
5
|
-
protected static hexBase: number;
|
|
6
|
-
protected static hexMax: string;
|
|
7
|
-
r: number;
|
|
8
|
-
g: number;
|
|
9
|
-
b: number;
|
|
10
|
-
a: number;
|
|
11
|
-
constructor(args: {
|
|
12
|
-
[key: string]: number | string;
|
|
13
|
-
});
|
|
14
|
-
/**
|
|
15
|
-
* Constructor from a string argument
|
|
16
|
-
*/
|
|
17
|
-
protected stringConstructor(str: string): void;
|
|
18
|
-
/**
|
|
19
|
-
* Constructor from a hex argument
|
|
20
|
-
*/
|
|
21
|
-
protected hexConstructor(hex: string): void;
|
|
22
|
-
/**
|
|
23
|
-
* Constructor from an rgba argument
|
|
24
|
-
*/
|
|
25
|
-
protected rgbConstructor(rgb: string): void;
|
|
26
|
-
/**
|
|
27
|
-
* Returns the perceived brightness of the color
|
|
28
|
-
*/
|
|
29
|
-
getBrightness(): number;
|
|
30
|
-
}
|
|
31
|
-
export default mintColor;
|
|
1
|
+
/**
|
|
2
|
+
* Color
|
|
3
|
+
*/
|
|
4
|
+
export declare class mintColor {
|
|
5
|
+
protected static hexBase: number;
|
|
6
|
+
protected static hexMax: string;
|
|
7
|
+
r: number;
|
|
8
|
+
g: number;
|
|
9
|
+
b: number;
|
|
10
|
+
a: number;
|
|
11
|
+
constructor(args: {
|
|
12
|
+
[key: string]: number | string;
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* Constructor from a string argument
|
|
16
|
+
*/
|
|
17
|
+
protected stringConstructor(str: string): void;
|
|
18
|
+
/**
|
|
19
|
+
* Constructor from a hex argument
|
|
20
|
+
*/
|
|
21
|
+
protected hexConstructor(hex: string): void;
|
|
22
|
+
/**
|
|
23
|
+
* Constructor from an rgba argument
|
|
24
|
+
*/
|
|
25
|
+
protected rgbConstructor(rgb: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* Returns the perceived brightness of the color
|
|
28
|
+
*/
|
|
29
|
+
getBrightness(): number;
|
|
30
|
+
}
|
|
31
|
+
export default mintColor;
|
|
32
32
|
//# sourceMappingURL=color.d.ts.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* File model for Amplify Storage
|
|
3
|
-
*/
|
|
4
|
-
export interface IMintFile {
|
|
5
|
-
path?: string;
|
|
6
|
-
eTag?: string;
|
|
7
|
-
lastModified?: string;
|
|
8
|
-
size?: number;
|
|
9
|
-
progress?: number;
|
|
10
|
-
error?: boolean;
|
|
11
|
-
fetched?: boolean;
|
|
12
|
-
empty?: boolean;
|
|
13
|
-
files?: {
|
|
14
|
-
[key: string]: IMintFile;
|
|
15
|
-
};
|
|
16
|
-
metadata?: {
|
|
17
|
-
[key: string]: string;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export default IMintFile;
|
|
1
|
+
/**
|
|
2
|
+
* File model for Amplify Storage
|
|
3
|
+
*/
|
|
4
|
+
export interface IMintFile {
|
|
5
|
+
path?: string;
|
|
6
|
+
eTag?: string;
|
|
7
|
+
lastModified?: string;
|
|
8
|
+
size?: number;
|
|
9
|
+
progress?: number;
|
|
10
|
+
error?: boolean;
|
|
11
|
+
fetched?: boolean;
|
|
12
|
+
empty?: boolean;
|
|
13
|
+
files?: {
|
|
14
|
+
[key: string]: IMintFile;
|
|
15
|
+
};
|
|
16
|
+
metadata?: {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export default IMintFile;
|
|
21
21
|
//# sourceMappingURL=file.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Forward all exports from the models directory
|
|
3
|
-
*/
|
|
4
|
-
export * from './color';
|
|
5
|
-
export * from './file';
|
|
6
|
-
export * from './item';
|
|
7
|
-
export * from './minify';
|
|
8
|
-
export * from './page';
|
|
9
|
-
export * from './recaptcha';
|
|
1
|
+
/**
|
|
2
|
+
* Forward all exports from the models directory
|
|
3
|
+
*/
|
|
4
|
+
export * from './color';
|
|
5
|
+
export * from './file';
|
|
6
|
+
export * from './item';
|
|
7
|
+
export * from './minify';
|
|
8
|
+
export * from './page';
|
|
9
|
+
export * from './recaptcha';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A generic item
|
|
3
|
-
* @note - this class must be convertable with JSON
|
|
4
|
-
* - only add strings, numbers, booleans, arrays, and objects
|
|
5
|
-
*/
|
|
6
|
-
export declare class MintItem {
|
|
7
|
-
/**
|
|
8
|
-
* Item settings
|
|
9
|
-
*/
|
|
10
|
-
version?: number;
|
|
11
|
-
priority?: number;
|
|
12
|
-
price?: number;
|
|
13
|
-
level?: number;
|
|
14
|
-
size?: number;
|
|
15
|
-
num?: number;
|
|
16
|
-
width?: number;
|
|
17
|
-
height?: number;
|
|
18
|
-
active?: boolean;
|
|
19
|
-
centered?: boolean;
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
private?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Item properties
|
|
24
|
-
*/
|
|
25
|
-
id?: string;
|
|
26
|
-
slug?: string;
|
|
27
|
-
name?: string;
|
|
28
|
-
title?: string;
|
|
29
|
-
subtitle?: string;
|
|
30
|
-
description?: string;
|
|
31
|
-
category?: string;
|
|
32
|
-
type?: string;
|
|
33
|
-
unit?: string;
|
|
34
|
-
logo?: MintItem;
|
|
35
|
-
icon?: string;
|
|
36
|
-
position?: string;
|
|
37
|
-
transform?: string;
|
|
38
|
-
date?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Item links
|
|
41
|
-
*/
|
|
42
|
-
src?: string;
|
|
43
|
-
href?: string;
|
|
44
|
-
target?: string;
|
|
45
|
-
routerLink?: string[];
|
|
46
|
-
/**
|
|
47
|
-
* Item data
|
|
48
|
-
*/
|
|
49
|
-
attr?: {
|
|
50
|
-
[key: string]: string;
|
|
51
|
-
};
|
|
52
|
-
params?: {
|
|
53
|
-
[key: string]: string;
|
|
54
|
-
};
|
|
55
|
-
options?: {
|
|
56
|
-
[key: string]: string;
|
|
57
|
-
};
|
|
58
|
-
lists?: {
|
|
59
|
-
[key: string]: string[];
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Item lists
|
|
63
|
-
*/
|
|
64
|
-
paragraphs?: string[];
|
|
65
|
-
classes?: string[];
|
|
66
|
-
items?: MintItem[];
|
|
67
|
-
images?: MintItem[];
|
|
68
|
-
buttons?: MintItem[];
|
|
69
|
-
/**
|
|
70
|
-
* Item functions
|
|
71
|
-
*/
|
|
72
|
-
click?: Function;
|
|
73
|
-
}
|
|
74
|
-
export default MintItem;
|
|
1
|
+
/**
|
|
2
|
+
* A generic item
|
|
3
|
+
* @note - this class must be convertable with JSON
|
|
4
|
+
* - only add strings, numbers, booleans, arrays, and objects
|
|
5
|
+
*/
|
|
6
|
+
export declare class MintItem {
|
|
7
|
+
/**
|
|
8
|
+
* Item settings
|
|
9
|
+
*/
|
|
10
|
+
version?: number;
|
|
11
|
+
priority?: number;
|
|
12
|
+
price?: number;
|
|
13
|
+
level?: number;
|
|
14
|
+
size?: number;
|
|
15
|
+
num?: number;
|
|
16
|
+
width?: number;
|
|
17
|
+
height?: number;
|
|
18
|
+
active?: boolean;
|
|
19
|
+
centered?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
private?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Item properties
|
|
24
|
+
*/
|
|
25
|
+
id?: string;
|
|
26
|
+
slug?: string;
|
|
27
|
+
name?: string;
|
|
28
|
+
title?: string;
|
|
29
|
+
subtitle?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
category?: string;
|
|
32
|
+
type?: string;
|
|
33
|
+
unit?: string;
|
|
34
|
+
logo?: MintItem;
|
|
35
|
+
icon?: string;
|
|
36
|
+
position?: string;
|
|
37
|
+
transform?: string;
|
|
38
|
+
date?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Item links
|
|
41
|
+
*/
|
|
42
|
+
src?: string;
|
|
43
|
+
href?: string;
|
|
44
|
+
target?: string;
|
|
45
|
+
routerLink?: string[];
|
|
46
|
+
/**
|
|
47
|
+
* Item data
|
|
48
|
+
*/
|
|
49
|
+
attr?: {
|
|
50
|
+
[key: string]: string;
|
|
51
|
+
};
|
|
52
|
+
params?: {
|
|
53
|
+
[key: string]: string;
|
|
54
|
+
};
|
|
55
|
+
options?: {
|
|
56
|
+
[key: string]: string;
|
|
57
|
+
};
|
|
58
|
+
lists?: {
|
|
59
|
+
[key: string]: string[];
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Item lists
|
|
63
|
+
*/
|
|
64
|
+
paragraphs?: string[];
|
|
65
|
+
classes?: string[];
|
|
66
|
+
items?: MintItem[];
|
|
67
|
+
images?: MintItem[];
|
|
68
|
+
buttons?: MintItem[];
|
|
69
|
+
/**
|
|
70
|
+
* Item functions
|
|
71
|
+
*/
|
|
72
|
+
click?: Function;
|
|
73
|
+
}
|
|
74
|
+
export default MintItem;
|
|
75
75
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Minify Interface
|
|
3
|
-
*/
|
|
4
|
-
export interface IMintMinify {
|
|
5
|
-
url: string;
|
|
6
|
-
format?: string[];
|
|
7
|
-
method?: string;
|
|
8
|
-
width?: number;
|
|
9
|
-
height?: number;
|
|
10
|
-
}
|
|
11
|
-
export default IMintMinify;
|
|
1
|
+
/**
|
|
2
|
+
* Minify Interface
|
|
3
|
+
*/
|
|
4
|
+
export interface IMintMinify {
|
|
5
|
+
url: string;
|
|
6
|
+
format?: string[];
|
|
7
|
+
method?: string;
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
}
|
|
11
|
+
export default IMintMinify;
|
|
12
12
|
//# sourceMappingURL=minify.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Imports
|
|
3
|
-
*/
|
|
4
|
-
import MintItem from "./item";
|
|
5
|
-
/**
|
|
6
|
-
* Page Interface
|
|
7
|
-
*/
|
|
8
|
-
export interface IMintPage {
|
|
9
|
-
slug: string;
|
|
10
|
-
title?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
image?: string;
|
|
13
|
-
items?: MintItem[];
|
|
14
|
-
createdAt?: string;
|
|
15
|
-
updatedAt?: string;
|
|
16
|
-
}
|
|
17
|
-
export default IMintPage;
|
|
1
|
+
/**
|
|
2
|
+
* Imports
|
|
3
|
+
*/
|
|
4
|
+
import MintItem from "./item";
|
|
5
|
+
/**
|
|
6
|
+
* Page Interface
|
|
7
|
+
*/
|
|
8
|
+
export interface IMintPage {
|
|
9
|
+
slug: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
image?: string;
|
|
13
|
+
items?: MintItem[];
|
|
14
|
+
createdAt?: string;
|
|
15
|
+
updatedAt?: string;
|
|
16
|
+
}
|
|
17
|
+
export default IMintPage;
|
|
18
18
|
//# sourceMappingURL=page.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Recaptcha Interface
|
|
3
|
-
*/
|
|
4
|
-
export interface IMintRecaptcha {
|
|
5
|
-
token: string;
|
|
6
|
-
action: string;
|
|
7
|
-
}
|
|
8
|
-
export default IMintRecaptcha;
|
|
1
|
+
/**
|
|
2
|
+
* Recaptcha Interface
|
|
3
|
+
*/
|
|
4
|
+
export interface IMintRecaptcha {
|
|
5
|
+
token: string;
|
|
6
|
+
action: string;
|
|
7
|
+
}
|
|
8
|
+
export default IMintRecaptcha;
|
|
9
9
|
//# sourceMappingURL=recaptcha.d.ts.map
|