@maggioli-design-system/mds-modal 1.0.0 → 1.0.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/cjs/mds-modal.cjs.entry.js +1 -1
- package/dist/collection/components/mds-modal/mds-modal.js +1 -1
- package/dist/custom-elements/index.js +1 -1
- package/dist/esm/mds-modal.entry.js +1 -1
- package/dist/stats.json +6 -6
- package/dist/types/components/mds-modal/mds-modal.d.ts +31 -0
- package/package.json +10 -15
- package/src/components/mds-modal/mds-modal.tsx +1 -1
|
@@ -92,7 +92,7 @@ let MdsModal = class {
|
|
|
92
92
|
window.clearTimeout(this.animationDeelay);
|
|
93
93
|
}, 500);
|
|
94
94
|
}
|
|
95
|
-
positionChange(
|
|
95
|
+
positionChange(_newValue, oldValue) {
|
|
96
96
|
window.clearTimeout(this.animationDeelay);
|
|
97
97
|
this.hostElement.classList.remove(this.animationName(null, oldValue));
|
|
98
98
|
this.hostElement.classList.remove(this.animationName('intro', oldValue));
|
|
@@ -43,7 +43,7 @@ export class MdsModal {
|
|
|
43
43
|
window.clearTimeout(this.animationDeelay);
|
|
44
44
|
}, 500);
|
|
45
45
|
}
|
|
46
|
-
positionChange(
|
|
46
|
+
positionChange(_newValue, oldValue) {
|
|
47
47
|
window.clearTimeout(this.animationDeelay);
|
|
48
48
|
this.hostElement.classList.remove(this.animationName(null, oldValue));
|
|
49
49
|
this.hostElement.classList.remove(this.animationName('intro', oldValue));
|
|
@@ -91,7 +91,7 @@ let MdsModal$1 = class extends HTMLElement {
|
|
|
91
91
|
window.clearTimeout(this.animationDeelay);
|
|
92
92
|
}, 500);
|
|
93
93
|
}
|
|
94
|
-
positionChange(
|
|
94
|
+
positionChange(_newValue, oldValue) {
|
|
95
95
|
window.clearTimeout(this.animationDeelay);
|
|
96
96
|
this.hostElement.classList.remove(this.animationName(null, oldValue));
|
|
97
97
|
this.hostElement.classList.remove(this.animationName('intro', oldValue));
|
|
@@ -88,7 +88,7 @@ let MdsModal = class {
|
|
|
88
88
|
window.clearTimeout(this.animationDeelay);
|
|
89
89
|
}, 500);
|
|
90
90
|
}
|
|
91
|
-
positionChange(
|
|
91
|
+
positionChange(_newValue, oldValue) {
|
|
92
92
|
window.clearTimeout(this.animationDeelay);
|
|
93
93
|
this.hostElement.classList.remove(this.animationName(null, oldValue));
|
|
94
94
|
this.hostElement.classList.remove(this.animationName('intro', oldValue));
|
package/dist/stats.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2021-12-13T13:
|
|
2
|
+
"timestamp": "2021-12-13T13:58:13",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "node",
|
|
5
5
|
"version": "16.13.0"
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"imports": [
|
|
123
123
|
"p-818ca69a.js"
|
|
124
124
|
],
|
|
125
|
-
"originalByteSize":
|
|
125
|
+
"originalByteSize": 13271
|
|
126
126
|
}
|
|
127
127
|
],
|
|
128
128
|
"esm": [
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"imports": [
|
|
137
137
|
"index-7d5b7d79.js"
|
|
138
138
|
],
|
|
139
|
-
"originalByteSize":
|
|
139
|
+
"originalByteSize": 13275
|
|
140
140
|
}
|
|
141
141
|
],
|
|
142
142
|
"es5": [
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"imports": [
|
|
151
151
|
"index-7d5b7d79.js"
|
|
152
152
|
],
|
|
153
|
-
"originalByteSize":
|
|
153
|
+
"originalByteSize": 13275
|
|
154
154
|
}
|
|
155
155
|
],
|
|
156
156
|
"system": [
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"imports": [
|
|
165
165
|
"p-0fa95990.system.js"
|
|
166
166
|
],
|
|
167
|
-
"originalByteSize":
|
|
167
|
+
"originalByteSize": 13830
|
|
168
168
|
}
|
|
169
169
|
],
|
|
170
170
|
"commonjs": [
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
"imports": [
|
|
179
179
|
"index-ced1b9b6.js"
|
|
180
180
|
],
|
|
181
|
-
"originalByteSize":
|
|
181
|
+
"originalByteSize": 13352
|
|
182
182
|
}
|
|
183
183
|
]
|
|
184
184
|
},
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { ModalPositionType } from './meta/types';
|
|
3
|
+
export declare class MdsModal {
|
|
4
|
+
private animationDeelay;
|
|
5
|
+
private window;
|
|
6
|
+
private top;
|
|
7
|
+
private bottom;
|
|
8
|
+
private animationState;
|
|
9
|
+
hostElement: HTMLMdsModalElement;
|
|
10
|
+
/**
|
|
11
|
+
* Specifies if the modal is opened or not
|
|
12
|
+
*/
|
|
13
|
+
opened?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Specifies the animation position of the modal window
|
|
16
|
+
*/
|
|
17
|
+
position?: ModalPositionType;
|
|
18
|
+
componentWillLoad(): void;
|
|
19
|
+
componentWillRender(): void;
|
|
20
|
+
componentDidRender(): void;
|
|
21
|
+
private animationName;
|
|
22
|
+
positionChange(_newValue: string, oldValue: string): void;
|
|
23
|
+
openedChange(): void;
|
|
24
|
+
/**
|
|
25
|
+
* Emits when a modal is closed
|
|
26
|
+
*/
|
|
27
|
+
close: EventEmitter<void>;
|
|
28
|
+
private closeModal;
|
|
29
|
+
onCloseListener(): void;
|
|
30
|
+
render(): any;
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/mds-modal",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "mds-modal is a web-component from Maggioli Design System Magma, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/custom-elements/index.js",
|
|
@@ -21,29 +21,24 @@
|
|
|
21
21
|
"build": "stencil build --docs-readme"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@maggioli-design-system/
|
|
25
|
-
|
|
26
|
-
"@maggioli-design-system/identity": "^1.8.3",
|
|
27
|
-
"@maggioli-design-system/styles": "^4.0.2",
|
|
28
|
-
"@stencil/core": "^2.10.0",
|
|
29
|
-
"tailwindcss": "^2.2.19"
|
|
30
|
-
},
|
|
24
|
+
"@maggioli-design-system/mds-icon": "^1.0.5"
|
|
25
|
+
},
|
|
31
26
|
"license": "MIT",
|
|
32
27
|
"author": {
|
|
33
28
|
"name": "Vittorio Vittori",
|
|
34
29
|
"email": "vittorio.vittori@maggioli.it",
|
|
35
30
|
"url": "http://vit.to"
|
|
36
|
-
},
|
|
31
|
+
},
|
|
37
32
|
"contributors": [
|
|
38
33
|
{
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
"name": "Andrea Pruccoli",
|
|
35
|
+
"email": "andrea.pruccoli@maggioli.it",
|
|
36
|
+
"role": "Software Engineer"
|
|
42
37
|
},
|
|
43
38
|
{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
"name": "Vittorio Vittori",
|
|
40
|
+
"email": "vittorio.vittori@maggioli.it",
|
|
41
|
+
"role": "UX UI Designer"
|
|
47
42
|
}
|
|
48
43
|
]
|
|
49
44
|
}
|
|
@@ -58,7 +58,7 @@ export class MdsModal {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
@Watch('position')
|
|
61
|
-
positionChange (
|
|
61
|
+
positionChange (_newValue: string, oldValue: string): void {
|
|
62
62
|
window.clearTimeout(this.animationDeelay)
|
|
63
63
|
this.hostElement.classList.remove(this.animationName(null, oldValue))
|
|
64
64
|
this.hostElement.classList.remove(this.animationName('intro', oldValue))
|