@appartmint/mint 2.5.0 → 2.6.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/css/mint.css +187 -50
- package/dist/css/mint.css.map +1 -1
- package/dist/css/mint.min.css +1 -1
- package/dist/css/mint.min.css.map +1 -1
- package/dist/js/imports/components/header.d.ts +10 -111
- package/dist/js/imports/components/header.d.ts.map +1 -1
- package/dist/js/imports/components/index.d.ts +1 -1
- package/dist/js/imports/components/index.d.ts.map +1 -1
- package/dist/js/imports/components/{tray.d.ts → panel.d.ts} +18 -14
- package/dist/js/imports/components/panel.d.ts.map +1 -0
- package/dist/js/index.js +69 -417
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.min.js +1 -1
- package/dist/js/index.min.js.map +1 -1
- package/package.json +1 -1
- package/src/scss/imports/components/partial/_chat.scss +131 -0
- package/src/scss/imports/components/partial/_header.scss +6 -61
- package/src/scss/imports/components/partial/_index.scss +1 -0
- package/src/scss/imports/components/widget/_button.scss +2 -0
- package/src/scss/imports/components/widget/_index.scss +2 -0
- package/src/scss/imports/components/widget/_menu.scss +0 -0
- package/src/scss/imports/components/widget/_panel.scss +95 -0
- package/dist/js/imports/components/tray.d.ts.map +0 -1
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Imports
|
|
3
|
+
*/
|
|
4
|
+
import { MintPanel } from "./panel";
|
|
5
|
+
import { MintMenu } from "./menu";
|
|
1
6
|
/**
|
|
2
7
|
* Main header functionality
|
|
3
8
|
* @public
|
|
@@ -16,13 +21,10 @@ export declare class MintHeader {
|
|
|
16
21
|
[key: string]: HTMLElement | null;
|
|
17
22
|
};
|
|
18
23
|
/**
|
|
19
|
-
*
|
|
24
|
+
* Navigation functionality
|
|
20
25
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
handlers: EventListener[];
|
|
24
|
-
events: string[];
|
|
25
|
-
}[];
|
|
26
|
+
panel?: MintPanel;
|
|
27
|
+
menu?: MintMenu;
|
|
26
28
|
/**
|
|
27
29
|
* Initializes and closes the menu
|
|
28
30
|
*/
|
|
@@ -30,119 +32,16 @@ export declare class MintHeader {
|
|
|
30
32
|
[key: string]: any;
|
|
31
33
|
});
|
|
32
34
|
/**
|
|
33
|
-
*
|
|
35
|
+
* Detach events
|
|
34
36
|
*/
|
|
35
|
-
|
|
37
|
+
detachEvents(): void;
|
|
36
38
|
/**
|
|
37
39
|
* Adds elements to {@link el | `this.el`}
|
|
38
40
|
*/
|
|
39
41
|
attachElements(): void;
|
|
40
|
-
/**
|
|
41
|
-
* Attach event to the given element
|
|
42
|
-
* @param element - Element to attach event to
|
|
43
|
-
* @param event - Event to attach
|
|
44
|
-
* @param handler - Handler to attach
|
|
45
|
-
*/
|
|
46
|
-
attachEvent(element: HTMLElement | Window | null | undefined, event: string, handler: EventListener): void;
|
|
47
|
-
/**
|
|
48
|
-
* Adds events to the dom
|
|
49
|
-
*/
|
|
50
|
-
attachEvents(): void;
|
|
51
42
|
/**
|
|
52
43
|
* Adds classes that inform the styles based on settings
|
|
53
44
|
*/
|
|
54
45
|
addClasses(): void;
|
|
55
|
-
/**
|
|
56
|
-
* Sets the state of the mobile menu
|
|
57
|
-
* @param open - `true` to open the menu or `false` to close it
|
|
58
|
-
*/
|
|
59
|
-
setMobileMenu(open?: boolean): void;
|
|
60
|
-
/**
|
|
61
|
-
* Toggles the state of the mobile menu
|
|
62
|
-
*/
|
|
63
|
-
toggleMobileMenu(): void;
|
|
64
|
-
/**
|
|
65
|
-
* Sets the state of the provided button's menu
|
|
66
|
-
* @param button - Button element to set
|
|
67
|
-
* @param open - `true` to open the menu or `false` to close it
|
|
68
|
-
*/
|
|
69
|
-
setMenu(button?: HTMLElement | null, open?: boolean): void;
|
|
70
|
-
/**
|
|
71
|
-
* Toggles the state of the provided button's menu
|
|
72
|
-
* @param button - Button element to toggle
|
|
73
|
-
*/
|
|
74
|
-
toggleMenu(button?: HTMLElement | null): void;
|
|
75
|
-
/**
|
|
76
|
-
* Closes all submenus of the provided button's menu
|
|
77
|
-
* @param button - Button element of the parent menu
|
|
78
|
-
*/
|
|
79
|
-
closeSubMenus(button?: HTMLElement | null): void;
|
|
80
|
-
/**
|
|
81
|
-
* Closes all sibling menus of the provided button's menu
|
|
82
|
-
* @param button - Button element of the sibling menus
|
|
83
|
-
*/
|
|
84
|
-
closeSiblingMenus(button?: HTMLElement | null): void;
|
|
85
|
-
/**
|
|
86
|
-
* Closes all submenus of the n4vbar
|
|
87
|
-
*/
|
|
88
|
-
closeAllMenus(): void;
|
|
89
|
-
/**
|
|
90
|
-
* Opens the menu closest to the document's focus
|
|
91
|
-
*/
|
|
92
|
-
openClosestMenu(): void;
|
|
93
|
-
/**
|
|
94
|
-
* Closes the menu closest to the document's focus
|
|
95
|
-
*/
|
|
96
|
-
closeClosestMenu(): void;
|
|
97
|
-
/**
|
|
98
|
-
* Toggles the menu closest to the document's focus
|
|
99
|
-
*/
|
|
100
|
-
toggleClosestMenu(): void;
|
|
101
|
-
/**
|
|
102
|
-
* Closes the mobile menu when the window resizes
|
|
103
|
-
*/
|
|
104
|
-
eHandleResize(): void;
|
|
105
|
-
/**
|
|
106
|
-
* Closes all submenus when the page is scrolled
|
|
107
|
-
*/
|
|
108
|
-
eHandleScroll(): void;
|
|
109
|
-
/**
|
|
110
|
-
* Sends the focus to the menu button after tabbing past the last menu item
|
|
111
|
-
* @param e - Keyboard event
|
|
112
|
-
*/
|
|
113
|
-
eWrapTab(e: KeyboardEvent): void;
|
|
114
|
-
/**
|
|
115
|
-
* Handles keypresses on n4vbar buttons
|
|
116
|
-
* @param e - Keyboard event
|
|
117
|
-
*/
|
|
118
|
-
eHandleButtonKeypress(e: KeyboardEvent): void;
|
|
119
|
-
/**
|
|
120
|
-
* Handles keypresses on n4vbar links
|
|
121
|
-
* @param e - Keyboard event
|
|
122
|
-
*/
|
|
123
|
-
eHandleLinkKeypress(e: KeyboardEvent): void;
|
|
124
|
-
/**
|
|
125
|
-
* Handles keypresses on the n4vbar
|
|
126
|
-
* @param e - Keyboard event
|
|
127
|
-
*/
|
|
128
|
-
eHandleKeypress(e: KeyboardEvent): void;
|
|
129
|
-
/**
|
|
130
|
-
* Toggles the mobile menu
|
|
131
|
-
*/
|
|
132
|
-
eToggleMobileMenu(): void;
|
|
133
|
-
/**
|
|
134
|
-
* Closes the mobile menu
|
|
135
|
-
*/
|
|
136
|
-
eCloseMobileMenu(): void;
|
|
137
|
-
/**
|
|
138
|
-
* Toggles the clicked submenu
|
|
139
|
-
* @param e - Mouse event
|
|
140
|
-
*/
|
|
141
|
-
eToggleMenu(e: MouseEvent): void;
|
|
142
|
-
/**
|
|
143
|
-
* Runs after the mobile menu transitions
|
|
144
|
-
*/
|
|
145
|
-
eTransitionEnd(): void;
|
|
146
46
|
}
|
|
147
|
-
export default MintHeader;
|
|
148
47
|
//# sourceMappingURL=header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/components/header.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/components/header.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAGlC;;;GAGG;AACH,qBAAa,UAAU;IAEtB;;OAEG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAK9B;IAEF;;OAEG;IACH,EAAE,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAAA;KAAE,CAAM;IAE/C;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAGhB;;OAEG;gBACS,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE;IAU7C;;OAEG;IACH,YAAY,IAAI,IAAI;IAKpB;;OAEG;IACH,cAAc,IAAI,IAAI;IAItB;;OAEG;IACH,UAAU,IAAI,IAAI;CAKlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MintAttachesEvents } from '../abstract';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Panel (sidebar) functionality
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class MintPanel extends MintAttachesEvents {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Panel settings
|
|
9
9
|
*/
|
|
10
10
|
settings: Record<string, any>;
|
|
11
11
|
/**
|
|
@@ -13,7 +13,7 @@ export declare class MintTray extends MintAttachesEvents {
|
|
|
13
13
|
*/
|
|
14
14
|
el: Record<string, HTMLElement | null>;
|
|
15
15
|
/**
|
|
16
|
-
* Initializes and closes the
|
|
16
|
+
* Initializes and closes the panel
|
|
17
17
|
*/
|
|
18
18
|
constructor(settings?: Record<string, any>);
|
|
19
19
|
/**
|
|
@@ -29,16 +29,20 @@ export declare class MintTray extends MintAttachesEvents {
|
|
|
29
29
|
*/
|
|
30
30
|
addClasses(): void;
|
|
31
31
|
/**
|
|
32
|
-
* Sets the state of the
|
|
33
|
-
* @param open - `true` to open the
|
|
32
|
+
* Sets the state of the panel
|
|
33
|
+
* @param open - `true` to open the panel or `false` to close it
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
setPanel(open?: boolean): void;
|
|
36
36
|
/**
|
|
37
|
-
* Toggles the state of the
|
|
37
|
+
* Toggles the state of the panel
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
togglePanel(): void;
|
|
40
40
|
/**
|
|
41
|
-
* Closes
|
|
41
|
+
* Closes other panels
|
|
42
|
+
*/
|
|
43
|
+
closeOtherPanels(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Closes the panel when the window resizes
|
|
42
46
|
*/
|
|
43
47
|
eHandleResize(): void;
|
|
44
48
|
/**
|
|
@@ -47,16 +51,16 @@ export declare class MintTray extends MintAttachesEvents {
|
|
|
47
51
|
*/
|
|
48
52
|
eWrapTab(e: KeyboardEvent): void;
|
|
49
53
|
/**
|
|
50
|
-
* Toggles the
|
|
54
|
+
* Toggles the panel
|
|
51
55
|
*/
|
|
52
56
|
eToggle(): void;
|
|
53
57
|
/**
|
|
54
|
-
* Closes the
|
|
58
|
+
* Closes the panel
|
|
55
59
|
*/
|
|
56
60
|
eClose(): void;
|
|
57
61
|
/**
|
|
58
|
-
* Runs after the
|
|
62
|
+
* Runs after the panel transitions
|
|
59
63
|
*/
|
|
60
64
|
eTransitionEnd(): void;
|
|
61
65
|
}
|
|
62
|
-
//# sourceMappingURL=
|
|
66
|
+
//# sourceMappingURL=panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../../src/ts/imports/components/panel.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AASjD;;;GAGG;AACH,qBAAa,SAAU,SAAQ,kBAAkB;IAEhD;;OAEM;IACF,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAI5B;IAEF;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,CAAM;IAG5C;;OAEG;gBACU,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAiB3C;;OAEG;IACH,cAAc,IAAM,IAAI;IAQxB;;OAEG;IACH,YAAY,IAAM,IAAI;IAatB;;OAEG;IACH,UAAU,IAAM,IAAI;IAepB;;;OAGG;IACH,QAAQ,CAAE,IAAI,GAAE,OAAe,GAAI,IAAI;IAuDvC;;OAEG;IACH,WAAW,IAAM,IAAI;IAIxB;;OAEG;IACH,gBAAgB,IAAM,IAAI;IAMvB;;OAEG;IACH,aAAa,IAAM,IAAI;IA+BvB;;;OAGG;IACH,QAAQ,CAAE,CAAC,EAAE,aAAa,GAAI,IAAI;IAelC;;OAEG;IACH,OAAO,IAAM,IAAI;IAIpB;;OAEG;IACH,MAAM,IAAM,IAAI;IAIb;;OAEG;IACH,cAAc,IAAM,IAAI;CAK3B"}
|