@everymatrix/general-footer-template 1.55.0 → 1.56.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/custom-clock.cjs.entry.js +18 -6
- package/dist/cjs/custom-content-section.cjs.entry.js +189 -139
- package/dist/cjs/general-footer-template.cjs.entry.js +31 -11
- package/dist/cjs/general-footer-template.cjs.js +2 -2
- package/dist/cjs/image-list.cjs.entry.js +9 -4
- package/dist/cjs/{index-d85e54c5.js → index-c1afe75b.js} +194 -92
- package/dist/cjs/link-section-list.cjs.entry.js +7 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/custom-clock/custom-clock.js +25 -5
- package/dist/collection/components/custom-content-section/custom-content-section.js +14 -2
- package/dist/collection/components/general-footer-template/general-footer-template.js +62 -10
- package/dist/collection/components/image-list/image-list.js +14 -3
- package/dist/collection/components/link-section-list/link-section-list.js +16 -3
- package/dist/esm/custom-clock.entry.js +18 -6
- package/dist/esm/custom-content-section.entry.js +189 -139
- package/dist/esm/general-footer-template.entry.js +31 -11
- package/dist/esm/general-footer-template.js +3 -3
- package/dist/esm/image-list.entry.js +9 -4
- package/dist/esm/{index-7f32a4a7.js → index-732f640c.js} +194 -92
- package/dist/esm/link-section-list.entry.js +7 -4
- package/dist/esm/loader.js +2 -2
- package/dist/general-footer-template/general-footer-template.esm.js +1 -1
- package/dist/general-footer-template/p-1fc2e24a.js +2 -0
- package/dist/general-footer-template/{p-f5a17365.entry.js → p-3eda45d5.entry.js} +1 -1
- package/dist/general-footer-template/p-55524eed.entry.js +1 -0
- package/dist/general-footer-template/p-a4b44512.entry.js +1 -0
- package/dist/general-footer-template/{p-cd14a119.entry.js → p-a8c0f5a0.entry.js} +2 -2
- package/dist/general-footer-template/p-dd7ffd49.entry.js +1 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/general-footer-template/p-122e0353.entry.js +0 -1
- package/dist/general-footer-template/p-905acd21.js +0 -2
- package/dist/general-footer-template/p-9aeab1ea.entry.js +0 -1
- package/dist/general-footer-template/p-a6279430.entry.js +0 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -5,6 +5,23 @@ import utc from "dayjs/plugin/utc";
|
|
|
5
5
|
import timezone from "dayjs/plugin/timezone";
|
|
6
6
|
export class CustomClock {
|
|
7
7
|
constructor() {
|
|
8
|
+
/**
|
|
9
|
+
* clockformat
|
|
10
|
+
*/
|
|
11
|
+
this.clockFormat = 'HH:mm:ss';
|
|
12
|
+
/**
|
|
13
|
+
* configurable time zone
|
|
14
|
+
*/
|
|
15
|
+
this.timeZone = '';
|
|
16
|
+
/**
|
|
17
|
+
* custom translation by href
|
|
18
|
+
*/
|
|
19
|
+
this.translationUrl = '';
|
|
20
|
+
/**
|
|
21
|
+
* language
|
|
22
|
+
*/
|
|
23
|
+
this.language = 'en';
|
|
24
|
+
this.timeString = '';
|
|
8
25
|
this.startClock = () => {
|
|
9
26
|
this.intervalId = setInterval(() => {
|
|
10
27
|
if (this.timeZone.length > 0) {
|
|
@@ -17,11 +34,6 @@ export class CustomClock {
|
|
|
17
34
|
}
|
|
18
35
|
}, 1000);
|
|
19
36
|
};
|
|
20
|
-
this.clockFormat = 'HH:mm:ss';
|
|
21
|
-
this.timeZone = '';
|
|
22
|
-
this.translationUrl = '';
|
|
23
|
-
this.language = 'en';
|
|
24
|
-
this.timeString = '';
|
|
25
37
|
}
|
|
26
38
|
handleNewTranslations() {
|
|
27
39
|
getTranslations(this.translationUrl);
|
|
@@ -68,6 +80,8 @@ export class CustomClock {
|
|
|
68
80
|
"tags": [],
|
|
69
81
|
"text": "clockformat"
|
|
70
82
|
},
|
|
83
|
+
"getter": false,
|
|
84
|
+
"setter": false,
|
|
71
85
|
"attribute": "clock-format",
|
|
72
86
|
"reflect": true,
|
|
73
87
|
"defaultValue": "'HH:mm:ss'"
|
|
@@ -86,6 +100,8 @@ export class CustomClock {
|
|
|
86
100
|
"tags": [],
|
|
87
101
|
"text": "configurable time zone"
|
|
88
102
|
},
|
|
103
|
+
"getter": false,
|
|
104
|
+
"setter": false,
|
|
89
105
|
"attribute": "time-zone",
|
|
90
106
|
"reflect": true,
|
|
91
107
|
"defaultValue": "''"
|
|
@@ -104,6 +120,8 @@ export class CustomClock {
|
|
|
104
120
|
"tags": [],
|
|
105
121
|
"text": "custom translation by href"
|
|
106
122
|
},
|
|
123
|
+
"getter": false,
|
|
124
|
+
"setter": false,
|
|
107
125
|
"attribute": "translation-url",
|
|
108
126
|
"reflect": true,
|
|
109
127
|
"defaultValue": "''"
|
|
@@ -122,6 +140,8 @@ export class CustomClock {
|
|
|
122
140
|
"tags": [],
|
|
123
141
|
"text": "language"
|
|
124
142
|
},
|
|
143
|
+
"getter": false,
|
|
144
|
+
"setter": false,
|
|
125
145
|
"attribute": "language",
|
|
126
146
|
"reflect": true,
|
|
127
147
|
"defaultValue": "'en'"
|
|
@@ -2,9 +2,13 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import sanitizeHtml from "sanitize-html";
|
|
3
3
|
export class CustomContentSection {
|
|
4
4
|
constructor() {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* If this is true it will emit an event at the moment the content with url its clicked
|
|
7
|
+
*/
|
|
7
8
|
this.navigateViaEvent = false;
|
|
9
|
+
/**
|
|
10
|
+
* Post Message event to be sent on navigation via Event
|
|
11
|
+
*/
|
|
8
12
|
this.postMessageEvent = '';
|
|
9
13
|
}
|
|
10
14
|
render() {
|
|
@@ -45,6 +49,8 @@ export class CustomContentSection {
|
|
|
45
49
|
"tags": [],
|
|
46
50
|
"text": "custom HTML content to be rendered"
|
|
47
51
|
},
|
|
52
|
+
"getter": false,
|
|
53
|
+
"setter": false,
|
|
48
54
|
"attribute": "custom-content",
|
|
49
55
|
"reflect": false
|
|
50
56
|
},
|
|
@@ -62,6 +68,8 @@ export class CustomContentSection {
|
|
|
62
68
|
"tags": [],
|
|
63
69
|
"text": "the links content to be displayed, including titles, url, open target"
|
|
64
70
|
},
|
|
71
|
+
"getter": false,
|
|
72
|
+
"setter": false,
|
|
65
73
|
"attribute": "repeater-content",
|
|
66
74
|
"reflect": false
|
|
67
75
|
},
|
|
@@ -79,6 +87,8 @@ export class CustomContentSection {
|
|
|
79
87
|
"tags": [],
|
|
80
88
|
"text": "If this is true it will emit an event at the moment the content with url its clicked"
|
|
81
89
|
},
|
|
90
|
+
"getter": false,
|
|
91
|
+
"setter": false,
|
|
82
92
|
"attribute": "navigate-via-event",
|
|
83
93
|
"reflect": true,
|
|
84
94
|
"defaultValue": "false"
|
|
@@ -97,6 +107,8 @@ export class CustomContentSection {
|
|
|
97
107
|
"tags": [],
|
|
98
108
|
"text": "Post Message event to be sent on navigation via Event"
|
|
99
109
|
},
|
|
110
|
+
"getter": false,
|
|
111
|
+
"setter": false,
|
|
100
112
|
"attribute": "post-message-event",
|
|
101
113
|
"reflect": true,
|
|
102
114
|
"defaultValue": "''"
|
|
@@ -3,28 +3,48 @@ import { componentRules, normalizeRepeaterContent, getDevicePlatform } from "../
|
|
|
3
3
|
import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
|
|
4
4
|
export class GeneralFooterTemplate {
|
|
5
5
|
constructor() {
|
|
6
|
-
this.platform = getDevicePlatform();
|
|
7
6
|
/**
|
|
8
|
-
*
|
|
7
|
+
* Environment segregation
|
|
9
8
|
*/
|
|
10
|
-
this.MANDATORY_FIELDS = ['endpoint', 'language', 'sections'];
|
|
11
|
-
this.language = undefined;
|
|
12
|
-
this.sections = undefined;
|
|
13
|
-
this.endpoint = undefined;
|
|
14
9
|
this.env = 'stage';
|
|
10
|
+
/**
|
|
11
|
+
* User roles
|
|
12
|
+
*/
|
|
15
13
|
this.userRoles = 'everyone';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
/**
|
|
15
|
+
* If this is true it will emit an event at the moment the content with url its clicked
|
|
16
|
+
*/
|
|
19
17
|
this.navigateViaEvent = 'false';
|
|
18
|
+
/**
|
|
19
|
+
* Post Message event to be sent on navigation via Event
|
|
20
|
+
*/
|
|
20
21
|
this.postMessageEvent = 'NavigateTo';
|
|
22
|
+
/**
|
|
23
|
+
* custom styling by string content
|
|
24
|
+
*/
|
|
21
25
|
this.clientStyling = '';
|
|
26
|
+
/**
|
|
27
|
+
* custom styling by href
|
|
28
|
+
*/
|
|
22
29
|
this.clientStylingUrl = '';
|
|
30
|
+
/**
|
|
31
|
+
* custom translation by href
|
|
32
|
+
*/
|
|
23
33
|
this.translationUrl = '';
|
|
34
|
+
/**
|
|
35
|
+
* clockformat
|
|
36
|
+
*/
|
|
24
37
|
this.clockFormat = 'HH:MM:ss';
|
|
38
|
+
/**
|
|
39
|
+
* configurable time zone
|
|
40
|
+
*/
|
|
25
41
|
this.timeZone = '';
|
|
26
|
-
this.mbSource = undefined;
|
|
27
42
|
this.hasErrors = false;
|
|
43
|
+
this.platform = getDevicePlatform();
|
|
44
|
+
/**
|
|
45
|
+
* Host element
|
|
46
|
+
*/
|
|
47
|
+
this.MANDATORY_FIELDS = ['endpoint', 'language', 'sections'];
|
|
28
48
|
}
|
|
29
49
|
validateMandatoryFields() {
|
|
30
50
|
this.MANDATORY_FIELDS.forEach((field) => {
|
|
@@ -108,6 +128,8 @@ export class GeneralFooterTemplate {
|
|
|
108
128
|
"tags": [],
|
|
109
129
|
"text": "the language of the footer"
|
|
110
130
|
},
|
|
131
|
+
"getter": false,
|
|
132
|
+
"setter": false,
|
|
111
133
|
"attribute": "language",
|
|
112
134
|
"reflect": true
|
|
113
135
|
},
|
|
@@ -125,6 +147,8 @@ export class GeneralFooterTemplate {
|
|
|
125
147
|
"tags": [],
|
|
126
148
|
"text": "which sections should be included in the footer (some have defined attributes)"
|
|
127
149
|
},
|
|
150
|
+
"getter": false,
|
|
151
|
+
"setter": false,
|
|
128
152
|
"attribute": "sections",
|
|
129
153
|
"reflect": true
|
|
130
154
|
},
|
|
@@ -142,6 +166,8 @@ export class GeneralFooterTemplate {
|
|
|
142
166
|
"tags": [],
|
|
143
167
|
"text": "endpoint for data retrieval"
|
|
144
168
|
},
|
|
169
|
+
"getter": false,
|
|
170
|
+
"setter": false,
|
|
145
171
|
"attribute": "endpoint",
|
|
146
172
|
"reflect": true
|
|
147
173
|
},
|
|
@@ -159,6 +185,8 @@ export class GeneralFooterTemplate {
|
|
|
159
185
|
"tags": [],
|
|
160
186
|
"text": "Environment segregation"
|
|
161
187
|
},
|
|
188
|
+
"getter": false,
|
|
189
|
+
"setter": false,
|
|
162
190
|
"attribute": "env",
|
|
163
191
|
"reflect": true,
|
|
164
192
|
"defaultValue": "'stage'"
|
|
@@ -177,6 +205,8 @@ export class GeneralFooterTemplate {
|
|
|
177
205
|
"tags": [],
|
|
178
206
|
"text": "User roles"
|
|
179
207
|
},
|
|
208
|
+
"getter": false,
|
|
209
|
+
"setter": false,
|
|
180
210
|
"attribute": "user-roles",
|
|
181
211
|
"reflect": true,
|
|
182
212
|
"defaultValue": "'everyone'"
|
|
@@ -195,6 +225,8 @@ export class GeneralFooterTemplate {
|
|
|
195
225
|
"tags": [],
|
|
196
226
|
"text": "the id of the current userid, to be used in order to determine login status (relevant for certain components ex. \"panic button\")"
|
|
197
227
|
},
|
|
228
|
+
"getter": false,
|
|
229
|
+
"setter": false,
|
|
198
230
|
"attribute": "userid",
|
|
199
231
|
"reflect": true
|
|
200
232
|
},
|
|
@@ -212,6 +244,8 @@ export class GeneralFooterTemplate {
|
|
|
212
244
|
"tags": [],
|
|
213
245
|
"text": "the current session, to be used in order to determine login status (relevant for certain components ex. \"panic button\")"
|
|
214
246
|
},
|
|
247
|
+
"getter": false,
|
|
248
|
+
"setter": false,
|
|
215
249
|
"attribute": "session",
|
|
216
250
|
"reflect": true
|
|
217
251
|
},
|
|
@@ -229,6 +263,8 @@ export class GeneralFooterTemplate {
|
|
|
229
263
|
"tags": [],
|
|
230
264
|
"text": "If this is present, then the footer will attach the baseurl inside src for all HelperLinks present in the footer (so it will be baseurl + helper_link) - This is needed when the footer is integrated inside an iframe it can\u2019t take the parent host to create the right anchors."
|
|
231
265
|
},
|
|
266
|
+
"getter": false,
|
|
267
|
+
"setter": false,
|
|
232
268
|
"attribute": "base-url",
|
|
233
269
|
"reflect": true
|
|
234
270
|
},
|
|
@@ -246,6 +282,8 @@ export class GeneralFooterTemplate {
|
|
|
246
282
|
"tags": [],
|
|
247
283
|
"text": "If this is true it will emit an event at the moment the content with url its clicked"
|
|
248
284
|
},
|
|
285
|
+
"getter": false,
|
|
286
|
+
"setter": false,
|
|
249
287
|
"attribute": "navigate-via-event",
|
|
250
288
|
"reflect": true,
|
|
251
289
|
"defaultValue": "'false'"
|
|
@@ -264,6 +302,8 @@ export class GeneralFooterTemplate {
|
|
|
264
302
|
"tags": [],
|
|
265
303
|
"text": "Post Message event to be sent on navigation via Event"
|
|
266
304
|
},
|
|
305
|
+
"getter": false,
|
|
306
|
+
"setter": false,
|
|
267
307
|
"attribute": "post-message-event",
|
|
268
308
|
"reflect": true,
|
|
269
309
|
"defaultValue": "'NavigateTo'"
|
|
@@ -282,6 +322,8 @@ export class GeneralFooterTemplate {
|
|
|
282
322
|
"tags": [],
|
|
283
323
|
"text": "custom styling by string content"
|
|
284
324
|
},
|
|
325
|
+
"getter": false,
|
|
326
|
+
"setter": false,
|
|
285
327
|
"attribute": "client-styling",
|
|
286
328
|
"reflect": true,
|
|
287
329
|
"defaultValue": "''"
|
|
@@ -300,6 +342,8 @@ export class GeneralFooterTemplate {
|
|
|
300
342
|
"tags": [],
|
|
301
343
|
"text": "custom styling by href"
|
|
302
344
|
},
|
|
345
|
+
"getter": false,
|
|
346
|
+
"setter": false,
|
|
303
347
|
"attribute": "client-styling-url",
|
|
304
348
|
"reflect": true,
|
|
305
349
|
"defaultValue": "''"
|
|
@@ -318,6 +362,8 @@ export class GeneralFooterTemplate {
|
|
|
318
362
|
"tags": [],
|
|
319
363
|
"text": "custom translation by href"
|
|
320
364
|
},
|
|
365
|
+
"getter": false,
|
|
366
|
+
"setter": false,
|
|
321
367
|
"attribute": "translation-url",
|
|
322
368
|
"reflect": true,
|
|
323
369
|
"defaultValue": "''"
|
|
@@ -336,6 +382,8 @@ export class GeneralFooterTemplate {
|
|
|
336
382
|
"tags": [],
|
|
337
383
|
"text": "clockformat"
|
|
338
384
|
},
|
|
385
|
+
"getter": false,
|
|
386
|
+
"setter": false,
|
|
339
387
|
"attribute": "clock-format",
|
|
340
388
|
"reflect": true,
|
|
341
389
|
"defaultValue": "'HH:MM:ss'"
|
|
@@ -354,6 +402,8 @@ export class GeneralFooterTemplate {
|
|
|
354
402
|
"tags": [],
|
|
355
403
|
"text": "configurable time zone"
|
|
356
404
|
},
|
|
405
|
+
"getter": false,
|
|
406
|
+
"setter": false,
|
|
357
407
|
"attribute": "time-zone",
|
|
358
408
|
"reflect": true,
|
|
359
409
|
"defaultValue": "''"
|
|
@@ -372,6 +422,8 @@ export class GeneralFooterTemplate {
|
|
|
372
422
|
"tags": [],
|
|
373
423
|
"text": "wether or not styling appends should be disallowed"
|
|
374
424
|
},
|
|
425
|
+
"getter": false,
|
|
426
|
+
"setter": false,
|
|
375
427
|
"attribute": "mb-source",
|
|
376
428
|
"reflect": true
|
|
377
429
|
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class ImageList {
|
|
3
3
|
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* If this is true it will emit an event at the moment the content with url its clicked
|
|
6
|
+
*/
|
|
7
|
+
this.navigateViaEvent = false;
|
|
8
|
+
/**
|
|
9
|
+
* Post Message event to be sent on navigation via event
|
|
10
|
+
*/
|
|
11
|
+
this.postMessageEvent = '';
|
|
4
12
|
this.navigateLink = (url, target, externalLink) => {
|
|
5
13
|
window.postMessage({ type: this.postMessageEvent, path: url, url, target, externalLink }, window.location.href);
|
|
6
14
|
};
|
|
7
|
-
this.repeaterContent = undefined;
|
|
8
|
-
this.navigateViaEvent = false;
|
|
9
|
-
this.postMessageEvent = '';
|
|
10
15
|
}
|
|
11
16
|
render() {
|
|
12
17
|
var _a, _b, _c;
|
|
@@ -42,6 +47,8 @@ export class ImageList {
|
|
|
42
47
|
"tags": [],
|
|
43
48
|
"text": "the links content to be displayed, including titles, url, open target"
|
|
44
49
|
},
|
|
50
|
+
"getter": false,
|
|
51
|
+
"setter": false,
|
|
45
52
|
"attribute": "repeater-content",
|
|
46
53
|
"reflect": false
|
|
47
54
|
},
|
|
@@ -59,6 +66,8 @@ export class ImageList {
|
|
|
59
66
|
"tags": [],
|
|
60
67
|
"text": "If this is true it will emit an event at the moment the content with url its clicked"
|
|
61
68
|
},
|
|
69
|
+
"getter": false,
|
|
70
|
+
"setter": false,
|
|
62
71
|
"attribute": "navigate-via-event",
|
|
63
72
|
"reflect": false,
|
|
64
73
|
"defaultValue": "false"
|
|
@@ -77,6 +86,8 @@ export class ImageList {
|
|
|
77
86
|
"tags": [],
|
|
78
87
|
"text": "Post Message event to be sent on navigation via event"
|
|
79
88
|
},
|
|
89
|
+
"getter": false,
|
|
90
|
+
"setter": false,
|
|
80
91
|
"attribute": "post-message-event",
|
|
81
92
|
"reflect": true,
|
|
82
93
|
"defaultValue": "''"
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class LinkSectionList {
|
|
3
3
|
constructor() {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
/**
|
|
5
|
+
* If this is true it will emit an event at the moment the content with url its clicked
|
|
6
|
+
*/
|
|
7
7
|
this.navigateViaEvent = false;
|
|
8
|
+
/**
|
|
9
|
+
* Post Message event to be sent on navigation via event
|
|
10
|
+
*/
|
|
8
11
|
this.postMessageEvent = '';
|
|
9
12
|
}
|
|
10
13
|
navigateLink(link) {
|
|
@@ -74,6 +77,8 @@ export class LinkSectionList {
|
|
|
74
77
|
"tags": [],
|
|
75
78
|
"text": "the links content to be displayed, including titles, url, open target"
|
|
76
79
|
},
|
|
80
|
+
"getter": false,
|
|
81
|
+
"setter": false,
|
|
77
82
|
"attribute": "repeater-content",
|
|
78
83
|
"reflect": false
|
|
79
84
|
},
|
|
@@ -91,6 +96,8 @@ export class LinkSectionList {
|
|
|
91
96
|
"tags": [],
|
|
92
97
|
"text": "If this is present, then the footer will attach the baseurl inside src for all HelperLinks present in the footer (so it will be baseurl + helper_link) - This is needed when the footer is integrated inside an iframe it can\u2019t take the parent host to create the right anchors."
|
|
93
98
|
},
|
|
99
|
+
"getter": false,
|
|
100
|
+
"setter": false,
|
|
94
101
|
"attribute": "base-url",
|
|
95
102
|
"reflect": true
|
|
96
103
|
},
|
|
@@ -108,6 +115,8 @@ export class LinkSectionList {
|
|
|
108
115
|
"tags": [],
|
|
109
116
|
"text": "the language of the footer"
|
|
110
117
|
},
|
|
118
|
+
"getter": false,
|
|
119
|
+
"setter": false,
|
|
111
120
|
"attribute": "language",
|
|
112
121
|
"reflect": true
|
|
113
122
|
},
|
|
@@ -125,6 +134,8 @@ export class LinkSectionList {
|
|
|
125
134
|
"tags": [],
|
|
126
135
|
"text": "If this is true it will emit an event at the moment the content with url its clicked"
|
|
127
136
|
},
|
|
137
|
+
"getter": false,
|
|
138
|
+
"setter": false,
|
|
128
139
|
"attribute": "navigate-via-event",
|
|
129
140
|
"reflect": false,
|
|
130
141
|
"defaultValue": "false"
|
|
@@ -143,6 +154,8 @@ export class LinkSectionList {
|
|
|
143
154
|
"tags": [],
|
|
144
155
|
"text": "Post Message event to be sent on navigation via event"
|
|
145
156
|
},
|
|
157
|
+
"getter": false,
|
|
158
|
+
"setter": false,
|
|
146
159
|
"attribute": "post-message-event",
|
|
147
160
|
"reflect": true,
|
|
148
161
|
"defaultValue": "''"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-732f640c.js';
|
|
2
2
|
import { c as commonjsGlobal } from './_commonjsHelpers-57e89916.js';
|
|
3
3
|
|
|
4
4
|
const DEFAULT_LANGUAGE = 'en';
|
|
@@ -74,6 +74,23 @@ const CustomClockStyle0 = customClockCss;
|
|
|
74
74
|
const CustomClock = class {
|
|
75
75
|
constructor(hostRef) {
|
|
76
76
|
registerInstance(this, hostRef);
|
|
77
|
+
/**
|
|
78
|
+
* clockformat
|
|
79
|
+
*/
|
|
80
|
+
this.clockFormat = 'HH:mm:ss';
|
|
81
|
+
/**
|
|
82
|
+
* configurable time zone
|
|
83
|
+
*/
|
|
84
|
+
this.timeZone = '';
|
|
85
|
+
/**
|
|
86
|
+
* custom translation by href
|
|
87
|
+
*/
|
|
88
|
+
this.translationUrl = '';
|
|
89
|
+
/**
|
|
90
|
+
* language
|
|
91
|
+
*/
|
|
92
|
+
this.language = 'en';
|
|
93
|
+
this.timeString = '';
|
|
77
94
|
this.startClock = () => {
|
|
78
95
|
this.intervalId = setInterval(() => {
|
|
79
96
|
if (this.timeZone.length > 0) {
|
|
@@ -86,11 +103,6 @@ const CustomClock = class {
|
|
|
86
103
|
}
|
|
87
104
|
}, 1000);
|
|
88
105
|
};
|
|
89
|
-
this.clockFormat = 'HH:mm:ss';
|
|
90
|
-
this.timeZone = '';
|
|
91
|
-
this.translationUrl = '';
|
|
92
|
-
this.language = 'en';
|
|
93
|
-
this.timeString = '';
|
|
94
106
|
}
|
|
95
107
|
handleNewTranslations() {
|
|
96
108
|
getTranslations(this.translationUrl);
|