@everymatrix/helper-modal 1.43.4 → 1.45.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/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/helper-modal.cjs.entry.js +48 -55
- package/dist/cjs/helper-modal.cjs.js +16 -10
- package/dist/cjs/index-68e382dd.js +1199 -0
- package/dist/cjs/loader.cjs.js +6 -12
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/helper-modal/helper-modal.js +149 -151
- package/dist/collection/components/helper-modal/index.js +1 -0
- package/dist/collection/utils/utils.js +14 -14
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/helper-modal.entry.js +48 -55
- package/dist/esm/helper-modal.js +13 -10
- package/dist/esm/index-d1cce61f.js +1172 -0
- package/dist/esm/loader.js +6 -12
- package/dist/helper-modal/helper-modal.esm.js +1 -1
- package/dist/helper-modal/p-60980584.entry.js +1 -0
- package/dist/helper-modal/p-b5badfa7.js +2 -0
- package/dist/helper-modal/p-e1255160.js +1 -0
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-modal/.stencil/packages/stencil/helper-modal/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-modal/.stencil/packages/stencil/helper-modal/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/helper-modal/helper-modal.d.ts +28 -28
- package/dist/types/components/helper-modal/index.d.ts +1 -0
- package/dist/types/components.d.ts +16 -1
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +8 -1
- package/dist/cjs/index-c6e4ec44.js +0 -1181
- package/dist/components/helper-modal.d.ts +0 -11
- package/dist/components/helper-modal.js +0 -96
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/index-4d594e7d.js +0 -1155
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/helper-modal/p-1c2c3fd8.js +0 -1
- package/dist/helper-modal/p-66f1c138.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/helper-modal/.stencil/packages/helper-modal/stencil.config.d.ts +0 -2
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,20 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-68e382dd.js');
|
|
6
|
+
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const patchEsm = () => {
|
|
11
|
-
return index.promiseResolve();
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const defineCustomElements = (win, options) => {
|
|
15
|
-
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
|
-
return patchEsm().then(() => {
|
|
8
|
+
const defineCustomElements = async (win, options) => {
|
|
9
|
+
if (typeof window === 'undefined') return undefined;
|
|
10
|
+
await appGlobals.globalScripts();
|
|
17
11
|
return index.bootstrapLazy([["helper-modal.cjs",[[1,"helper-modal",{"titleModal":[513,"title-modal"],"visible":[1540],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
|
|
18
|
-
});
|
|
19
12
|
};
|
|
20
13
|
|
|
14
|
+
exports.setNonce = index.setNonce;
|
|
21
15
|
exports.defineCustomElements = defineCustomElements;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"
|
|
3
|
+
"components/helper-modal/helper-modal.js"
|
|
4
4
|
],
|
|
5
5
|
"compiler": {
|
|
6
6
|
"name": "@stencil/core",
|
|
7
|
-
"version": "
|
|
8
|
-
"typescriptVersion": "
|
|
7
|
+
"version": "4.20.0",
|
|
8
|
+
"typescriptVersion": "5.5.3"
|
|
9
9
|
},
|
|
10
10
|
"collections": [],
|
|
11
11
|
"bundles": []
|
|
@@ -1,156 +1,154 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { isMobile } from "../../utils/utils";
|
|
3
3
|
export class HelperModal {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
this.setClientStylingURL = () => {
|
|
25
|
-
let cssFile = document.createElement('style');
|
|
26
|
-
setTimeout(() => {
|
|
27
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
28
|
-
this.stylingContainer.prepend(cssFile);
|
|
29
|
-
}, 1);
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
handleHelperModalClose() {
|
|
33
|
-
this.visible = false;
|
|
34
|
-
this.cancel.emit();
|
|
35
|
-
}
|
|
36
|
-
;
|
|
37
|
-
componentDidRender() {
|
|
38
|
-
// start custom styling area
|
|
39
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
40
|
-
if (this.clientStyling)
|
|
41
|
-
this.setClientStyling();
|
|
42
|
-
if (this.clientStylingUrlContent)
|
|
43
|
-
this.setClientStylingURL();
|
|
44
|
-
this.limitStylingAppends = true;
|
|
4
|
+
constructor() {
|
|
5
|
+
this.userAgent = window.navigator.userAgent;
|
|
6
|
+
this.setClientStyling = () => {
|
|
7
|
+
let sheet = document.createElement('style');
|
|
8
|
+
sheet.innerHTML = this.clientStyling;
|
|
9
|
+
this.stylingContainer.prepend(sheet);
|
|
10
|
+
};
|
|
11
|
+
this.setClientStylingURL = () => {
|
|
12
|
+
let cssFile = document.createElement('style');
|
|
13
|
+
setTimeout(() => {
|
|
14
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
15
|
+
this.stylingContainer.prepend(cssFile);
|
|
16
|
+
}, 1);
|
|
17
|
+
};
|
|
18
|
+
this.titleModal = undefined;
|
|
19
|
+
this.visible = true;
|
|
20
|
+
this.clientStyling = '';
|
|
21
|
+
this.clientStylingUrlContent = '';
|
|
22
|
+
this.limitStylingAppends = false;
|
|
45
23
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
24
|
+
handleHelperModalClose() {
|
|
25
|
+
this.visible = false;
|
|
26
|
+
this.cancel.emit();
|
|
27
|
+
}
|
|
28
|
+
;
|
|
29
|
+
componentDidRender() {
|
|
30
|
+
// start custom styling area
|
|
31
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
32
|
+
if (this.clientStyling)
|
|
33
|
+
this.setClientStyling();
|
|
34
|
+
if (this.clientStylingUrlContent)
|
|
35
|
+
this.setClientStylingURL();
|
|
36
|
+
this.limitStylingAppends = true;
|
|
37
|
+
}
|
|
38
|
+
// end custom styling area
|
|
39
|
+
}
|
|
40
|
+
render() {
|
|
41
|
+
return ((this.visible &&
|
|
42
|
+
h("div", { key: 'ba2aed789565b37bfdbb34bdf3ccace827231653', class: this.visible ? "HelperModalWrapper HelperModalVisible" : "HelperModalWrapper", ref: el => this.stylingContainer = el }, h("div", { key: '151ca4cd80d259ac955b92b10bf6f0df2698a937', class: "HelperModalWrapper HelperModalVisible" }, h("div", { key: '804cb1dea73321c4935e4a8ddb1136e98e89a070', class: "HelperModalContent" + (isMobile(this.userAgent) ? ' HelperModalMobileContent' : '') }, h("span", { key: '30cf7928c1e4baa53f3514fc1930823db76c874c', class: "HelperModalClose" + (isMobile(this.userAgent) ? ' HelperModalMobileClose' : ''), onClick: this.handleHelperModalClose.bind(this) }, "X"), h("slot", { key: '5c1323a98cdcd09669020a00affe5673856e807e' }))))));
|
|
43
|
+
}
|
|
44
|
+
static get is() { return "helper-modal"; }
|
|
45
|
+
static get encapsulation() { return "shadow"; }
|
|
46
|
+
static get originalStyleUrls() {
|
|
47
|
+
return {
|
|
48
|
+
"$": ["helper-modal.scss"]
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
static get styleUrls() {
|
|
52
|
+
return {
|
|
53
|
+
"$": ["helper-modal.css"]
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
static get properties() {
|
|
57
|
+
return {
|
|
58
|
+
"titleModal": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"mutable": false,
|
|
61
|
+
"complexType": {
|
|
62
|
+
"original": "string",
|
|
63
|
+
"resolved": "string",
|
|
64
|
+
"references": {}
|
|
65
|
+
},
|
|
66
|
+
"required": false,
|
|
67
|
+
"optional": false,
|
|
68
|
+
"docs": {
|
|
69
|
+
"tags": [],
|
|
70
|
+
"text": "Modal title"
|
|
71
|
+
},
|
|
72
|
+
"attribute": "title-modal",
|
|
73
|
+
"reflect": true
|
|
74
|
+
},
|
|
75
|
+
"visible": {
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"mutable": true,
|
|
78
|
+
"complexType": {
|
|
79
|
+
"original": "boolean",
|
|
80
|
+
"resolved": "boolean",
|
|
81
|
+
"references": {}
|
|
82
|
+
},
|
|
83
|
+
"required": false,
|
|
84
|
+
"optional": false,
|
|
85
|
+
"docs": {
|
|
86
|
+
"tags": [],
|
|
87
|
+
"text": "Toggles if the helper is visible or not"
|
|
88
|
+
},
|
|
89
|
+
"attribute": "visible",
|
|
90
|
+
"reflect": true,
|
|
91
|
+
"defaultValue": "true"
|
|
92
|
+
},
|
|
93
|
+
"clientStyling": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"mutable": false,
|
|
96
|
+
"complexType": {
|
|
97
|
+
"original": "string",
|
|
98
|
+
"resolved": "string",
|
|
99
|
+
"references": {}
|
|
100
|
+
},
|
|
101
|
+
"required": false,
|
|
102
|
+
"optional": false,
|
|
103
|
+
"docs": {
|
|
104
|
+
"tags": [],
|
|
105
|
+
"text": "Client custom styling via string"
|
|
106
|
+
},
|
|
107
|
+
"attribute": "client-styling",
|
|
108
|
+
"reflect": true,
|
|
109
|
+
"defaultValue": "''"
|
|
110
|
+
},
|
|
111
|
+
"clientStylingUrlContent": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"mutable": false,
|
|
114
|
+
"complexType": {
|
|
115
|
+
"original": "string",
|
|
116
|
+
"resolved": "string",
|
|
117
|
+
"references": {}
|
|
118
|
+
},
|
|
119
|
+
"required": false,
|
|
120
|
+
"optional": false,
|
|
121
|
+
"docs": {
|
|
122
|
+
"tags": [],
|
|
123
|
+
"text": "Client custom styling via url content"
|
|
124
|
+
},
|
|
125
|
+
"attribute": "client-styling-url-content",
|
|
126
|
+
"reflect": true,
|
|
127
|
+
"defaultValue": "''"
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
static get states() {
|
|
132
|
+
return {
|
|
133
|
+
"limitStylingAppends": {}
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
static get events() {
|
|
137
|
+
return [{
|
|
138
|
+
"method": "cancel",
|
|
139
|
+
"name": "modalCloseEvent",
|
|
140
|
+
"bubbles": true,
|
|
141
|
+
"cancelable": true,
|
|
142
|
+
"composed": true,
|
|
143
|
+
"docs": {
|
|
144
|
+
"tags": [],
|
|
145
|
+
"text": "The event triggered when the modal is closed"
|
|
146
|
+
},
|
|
147
|
+
"complexType": {
|
|
148
|
+
"original": "any",
|
|
149
|
+
"resolved": "any",
|
|
150
|
+
"references": {}
|
|
151
|
+
}
|
|
152
|
+
}];
|
|
135
153
|
}
|
|
136
|
-
}; }
|
|
137
|
-
static get states() { return {
|
|
138
|
-
"limitStylingAppends": {}
|
|
139
|
-
}; }
|
|
140
|
-
static get events() { return [{
|
|
141
|
-
"method": "cancel",
|
|
142
|
-
"name": "modalCloseEvent",
|
|
143
|
-
"bubbles": true,
|
|
144
|
-
"cancelable": true,
|
|
145
|
-
"composed": true,
|
|
146
|
-
"docs": {
|
|
147
|
-
"tags": [],
|
|
148
|
-
"text": "The event triggered when the modal is closed"
|
|
149
|
-
},
|
|
150
|
-
"complexType": {
|
|
151
|
-
"original": "any",
|
|
152
|
-
"resolved": "any",
|
|
153
|
-
"references": {}
|
|
154
|
-
}
|
|
155
|
-
}]; }
|
|
156
154
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { HelperModal } from './helper-modal';
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* @returns {Boolean} true or false
|
|
6
6
|
*/
|
|
7
7
|
export const isMobile = (userAgent) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
return !!(userAgent.toLowerCase().match(/android/i) ||
|
|
9
|
+
userAgent.toLowerCase().match(/blackberry|bb/i) ||
|
|
10
|
+
userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
|
|
11
|
+
userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* @name getDevice
|
|
@@ -17,14 +17,14 @@ export const isMobile = (userAgent) => {
|
|
|
17
17
|
* @returns {String} Android/iPhone/iPad/PC
|
|
18
18
|
*/
|
|
19
19
|
export const getDevice = (userAgent) => {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
if (userAgent.toLowerCase().match(/android/i)) {
|
|
21
|
+
return 'Android';
|
|
22
|
+
}
|
|
23
|
+
if (userAgent.toLowerCase().match(/iphone/i)) {
|
|
24
|
+
return 'iPhone';
|
|
25
|
+
}
|
|
26
|
+
if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
|
|
27
|
+
return 'iPad';
|
|
28
|
+
}
|
|
29
|
+
return 'PC';
|
|
30
30
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-d1cce61f.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @name isMobile
|
|
@@ -7,66 +7,59 @@ import { r as registerInstance, c as createEvent, h } from './index-4d594e7d.js'
|
|
|
7
7
|
* @returns {Boolean} true or false
|
|
8
8
|
*/
|
|
9
9
|
const isMobile = (userAgent) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
return !!(userAgent.toLowerCase().match(/android/i) ||
|
|
11
|
+
userAgent.toLowerCase().match(/blackberry|bb/i) ||
|
|
12
|
+
userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
|
|
13
|
+
userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
const helperModalCss = ":host{display:block}.HelperModalWrapper{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.7);opacity:0;visibility:hidden;transform:scale(1.1);transition:visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;z-index:1}.HelperModalVisible{opacity:1;visibility:visible;transform:scale(1);transition:visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s}.HelperModalContent{position:relative;border:solid 1px #848e97;box-shadow:2px 2px 2px rgba(0, 0, 0, 0.007);font-size:14px;padding:10px 10px 5px 10px;background-color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:4px;width:600px;max-height:600px;overflow-y:scroll}.HelperModalMobileContent{background:#FFF;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:4px;width:80%;max-height:350px}.HelperModalClose{cursor:pointer;position:absolute;top:15px;right:15px;font-size:20px;color:#000}.HelperModalMobileClose{position:absolute;top:15px;right:15px;font-size:20px;color:#000}";
|
|
17
|
+
const HelperModalStyle0 = helperModalCss;
|
|
17
18
|
|
|
18
19
|
const HelperModal = class {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
this.
|
|
59
|
-
|
|
60
|
-
this.setClientStylingURL();
|
|
61
|
-
this.limitStylingAppends = true;
|
|
20
|
+
constructor(hostRef) {
|
|
21
|
+
registerInstance(this, hostRef);
|
|
22
|
+
this.cancel = createEvent(this, "modalCloseEvent", 7);
|
|
23
|
+
this.userAgent = window.navigator.userAgent;
|
|
24
|
+
this.setClientStyling = () => {
|
|
25
|
+
let sheet = document.createElement('style');
|
|
26
|
+
sheet.innerHTML = this.clientStyling;
|
|
27
|
+
this.stylingContainer.prepend(sheet);
|
|
28
|
+
};
|
|
29
|
+
this.setClientStylingURL = () => {
|
|
30
|
+
let cssFile = document.createElement('style');
|
|
31
|
+
setTimeout(() => {
|
|
32
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
33
|
+
this.stylingContainer.prepend(cssFile);
|
|
34
|
+
}, 1);
|
|
35
|
+
};
|
|
36
|
+
this.titleModal = undefined;
|
|
37
|
+
this.visible = true;
|
|
38
|
+
this.clientStyling = '';
|
|
39
|
+
this.clientStylingUrlContent = '';
|
|
40
|
+
this.limitStylingAppends = false;
|
|
41
|
+
}
|
|
42
|
+
handleHelperModalClose() {
|
|
43
|
+
this.visible = false;
|
|
44
|
+
this.cancel.emit();
|
|
45
|
+
}
|
|
46
|
+
;
|
|
47
|
+
componentDidRender() {
|
|
48
|
+
// start custom styling area
|
|
49
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
50
|
+
if (this.clientStyling)
|
|
51
|
+
this.setClientStyling();
|
|
52
|
+
if (this.clientStylingUrlContent)
|
|
53
|
+
this.setClientStylingURL();
|
|
54
|
+
this.limitStylingAppends = true;
|
|
55
|
+
}
|
|
56
|
+
// end custom styling area
|
|
57
|
+
}
|
|
58
|
+
render() {
|
|
59
|
+
return ((this.visible &&
|
|
60
|
+
h("div", { key: 'ba2aed789565b37bfdbb34bdf3ccace827231653', class: this.visible ? "HelperModalWrapper HelperModalVisible" : "HelperModalWrapper", ref: el => this.stylingContainer = el }, h("div", { key: '151ca4cd80d259ac955b92b10bf6f0df2698a937', class: "HelperModalWrapper HelperModalVisible" }, h("div", { key: '804cb1dea73321c4935e4a8ddb1136e98e89a070', class: "HelperModalContent" + (isMobile(this.userAgent) ? ' HelperModalMobileContent' : '') }, h("span", { key: '30cf7928c1e4baa53f3514fc1930823db76c874c', class: "HelperModalClose" + (isMobile(this.userAgent) ? ' HelperModalMobileClose' : ''), onClick: this.handleHelperModalClose.bind(this) }, "X"), h("slot", { key: '5c1323a98cdcd09669020a00affe5673856e807e' }))))));
|
|
62
61
|
}
|
|
63
|
-
// end custom styling area
|
|
64
|
-
}
|
|
65
|
-
render() {
|
|
66
|
-
return ((this.visible &&
|
|
67
|
-
h("div", { class: this.visible ? "HelperModalWrapper HelperModalVisible" : "HelperModalWrapper", ref: el => this.stylingContainer = el }, h("div", { class: "HelperModalWrapper HelperModalVisible" }, h("div", { class: "HelperModalContent" + (isMobile(this.userAgent) ? ' HelperModalMobileContent' : '') }, h("span", { class: "HelperModalClose" + (isMobile(this.userAgent) ? ' HelperModalMobileClose' : ''), onClick: this.handleHelperModalClose.bind(this) }, "X"), h("slot", null))))));
|
|
68
|
-
}
|
|
69
62
|
};
|
|
70
|
-
HelperModal.style =
|
|
63
|
+
HelperModal.style = HelperModalStyle0;
|
|
71
64
|
|
|
72
65
|
export { HelperModal as helper_modal };
|
package/dist/esm/helper-modal.js
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-d1cce61f.js';
|
|
2
|
+
export { s as setNonce } from './index-d1cce61f.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
2
4
|
|
|
3
5
|
/*
|
|
4
|
-
Stencil Client Patch Browser
|
|
6
|
+
Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
5
7
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
var patchBrowser = () => {
|
|
9
|
+
const importMeta = import.meta.url;
|
|
10
|
+
const opts = {};
|
|
11
|
+
if (importMeta !== "") {
|
|
12
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
13
|
+
}
|
|
14
|
+
return promiseResolve(opts);
|
|
13
15
|
};
|
|
14
16
|
|
|
15
|
-
patchBrowser().then(options => {
|
|
17
|
+
patchBrowser().then(async (options) => {
|
|
18
|
+
await globalScripts();
|
|
16
19
|
return bootstrapLazy([["helper-modal",[[1,"helper-modal",{"titleModal":[513,"title-modal"],"visible":[1540],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
|
|
17
20
|
});
|