@everymatrix/general-footer-template 1.56.0 → 1.56.2

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.
Files changed (43) hide show
  1. package/dist/cjs/custom-clock.cjs.entry.js +7 -19
  2. package/dist/cjs/custom-content-section.cjs.entry.js +1482 -1678
  3. package/dist/cjs/general-footer-template.cjs.entry.js +11 -31
  4. package/dist/cjs/general-footer-template.cjs.js +2 -2
  5. package/dist/cjs/image-list.cjs.entry.js +4 -9
  6. package/dist/cjs/{index-c1afe75b.js → index-a7f717fa.js} +91 -227
  7. package/dist/cjs/link-section-list.cjs.entry.js +4 -7
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/collection/collection-manifest.json +2 -2
  10. package/dist/collection/components/custom-clock/custom-clock.js +5 -25
  11. package/dist/collection/components/custom-content-section/custom-content-section.js +2 -14
  12. package/dist/collection/components/general-footer-template/general-footer-template.js +10 -62
  13. package/dist/collection/components/image-list/image-list.js +3 -14
  14. package/dist/collection/components/link-section-list/link-section-list.js +3 -16
  15. package/dist/esm/custom-clock.entry.js +7 -19
  16. package/dist/esm/custom-content-section.entry.js +1482 -1678
  17. package/dist/esm/general-footer-template.entry.js +11 -31
  18. package/dist/esm/general-footer-template.js +3 -3
  19. package/dist/esm/image-list.entry.js +4 -9
  20. package/dist/esm/{index-732f640c.js → index-e6e68604.js} +91 -227
  21. package/dist/esm/link-section-list.entry.js +4 -7
  22. package/dist/esm/loader.js +2 -2
  23. package/dist/general-footer-template/general-footer-template.esm.js +1 -1
  24. package/dist/general-footer-template/p-076550c8.entry.js +1 -0
  25. package/dist/general-footer-template/p-16bd4237.js +2 -0
  26. package/dist/general-footer-template/p-2879096a.entry.js +1 -0
  27. package/dist/general-footer-template/{p-a8c0f5a0.entry.js → p-5f13c34b.entry.js} +2 -2
  28. package/dist/general-footer-template/p-d7132f51.entry.js +1 -0
  29. package/dist/general-footer-template/{p-3eda45d5.entry.js → p-f12f5263.entry.js} +1 -1
  30. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +2 -0
  31. 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 +2 -0
  32. package/dist/types/stencil-public-runtime.d.ts +0 -6
  33. package/package.json +1 -1
  34. package/dist/general-footer-template/p-1fc2e24a.js +0 -2
  35. package/dist/general-footer-template/p-55524eed.entry.js +0 -1
  36. package/dist/general-footer-template/p-a4b44512.entry.js +0 -1
  37. package/dist/general-footer-template/p-dd7ffd49.entry.js +0 -1
  38. 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 +0 -2
  39. 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 +0 -2
  40. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/index.d.ts +0 -0
  41. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  42. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  43. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -5,23 +5,6 @@ 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 = '';
25
8
  this.startClock = () => {
26
9
  this.intervalId = setInterval(() => {
27
10
  if (this.timeZone.length > 0) {
@@ -34,6 +17,11 @@ export class CustomClock {
34
17
  }
35
18
  }, 1000);
36
19
  };
20
+ this.clockFormat = 'HH:mm:ss';
21
+ this.timeZone = '';
22
+ this.translationUrl = '';
23
+ this.language = 'en';
24
+ this.timeString = '';
37
25
  }
38
26
  handleNewTranslations() {
39
27
  getTranslations(this.translationUrl);
@@ -80,8 +68,6 @@ export class CustomClock {
80
68
  "tags": [],
81
69
  "text": "clockformat"
82
70
  },
83
- "getter": false,
84
- "setter": false,
85
71
  "attribute": "clock-format",
86
72
  "reflect": true,
87
73
  "defaultValue": "'HH:mm:ss'"
@@ -100,8 +86,6 @@ export class CustomClock {
100
86
  "tags": [],
101
87
  "text": "configurable time zone"
102
88
  },
103
- "getter": false,
104
- "setter": false,
105
89
  "attribute": "time-zone",
106
90
  "reflect": true,
107
91
  "defaultValue": "''"
@@ -120,8 +104,6 @@ export class CustomClock {
120
104
  "tags": [],
121
105
  "text": "custom translation by href"
122
106
  },
123
- "getter": false,
124
- "setter": false,
125
107
  "attribute": "translation-url",
126
108
  "reflect": true,
127
109
  "defaultValue": "''"
@@ -140,8 +122,6 @@ export class CustomClock {
140
122
  "tags": [],
141
123
  "text": "language"
142
124
  },
143
- "getter": false,
144
- "setter": false,
145
125
  "attribute": "language",
146
126
  "reflect": true,
147
127
  "defaultValue": "'en'"
@@ -2,13 +2,9 @@ import { h } from "@stencil/core";
2
2
  import sanitizeHtml from "sanitize-html";
3
3
  export class CustomContentSection {
4
4
  constructor() {
5
- /**
6
- * If this is true it will emit an event at the moment the content with url its clicked
7
- */
5
+ this.customContent = undefined;
6
+ this.repeaterContent = undefined;
8
7
  this.navigateViaEvent = false;
9
- /**
10
- * Post Message event to be sent on navigation via Event
11
- */
12
8
  this.postMessageEvent = '';
13
9
  }
14
10
  render() {
@@ -49,8 +45,6 @@ export class CustomContentSection {
49
45
  "tags": [],
50
46
  "text": "custom HTML content to be rendered"
51
47
  },
52
- "getter": false,
53
- "setter": false,
54
48
  "attribute": "custom-content",
55
49
  "reflect": false
56
50
  },
@@ -68,8 +62,6 @@ export class CustomContentSection {
68
62
  "tags": [],
69
63
  "text": "the links content to be displayed, including titles, url, open target"
70
64
  },
71
- "getter": false,
72
- "setter": false,
73
65
  "attribute": "repeater-content",
74
66
  "reflect": false
75
67
  },
@@ -87,8 +79,6 @@ export class CustomContentSection {
87
79
  "tags": [],
88
80
  "text": "If this is true it will emit an event at the moment the content with url its clicked"
89
81
  },
90
- "getter": false,
91
- "setter": false,
92
82
  "attribute": "navigate-via-event",
93
83
  "reflect": true,
94
84
  "defaultValue": "false"
@@ -107,8 +97,6 @@ export class CustomContentSection {
107
97
  "tags": [],
108
98
  "text": "Post Message event to be sent on navigation via Event"
109
99
  },
110
- "getter": false,
111
- "setter": false,
112
100
  "attribute": "post-message-event",
113
101
  "reflect": true,
114
102
  "defaultValue": "''"
@@ -3,48 +3,28 @@ 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();
6
7
  /**
7
- * Environment segregation
8
+ * Host element
8
9
  */
10
+ this.MANDATORY_FIELDS = ['endpoint', 'language', 'sections'];
11
+ this.language = undefined;
12
+ this.sections = undefined;
13
+ this.endpoint = undefined;
9
14
  this.env = 'stage';
10
- /**
11
- * User roles
12
- */
13
15
  this.userRoles = 'everyone';
14
- /**
15
- * If this is true it will emit an event at the moment the content with url its clicked
16
- */
16
+ this.userid = undefined;
17
+ this.session = undefined;
18
+ this.baseUrl = undefined;
17
19
  this.navigateViaEvent = 'false';
18
- /**
19
- * Post Message event to be sent on navigation via Event
20
- */
21
20
  this.postMessageEvent = 'NavigateTo';
22
- /**
23
- * custom styling by string content
24
- */
25
21
  this.clientStyling = '';
26
- /**
27
- * custom styling by href
28
- */
29
22
  this.clientStylingUrl = '';
30
- /**
31
- * custom translation by href
32
- */
33
23
  this.translationUrl = '';
34
- /**
35
- * clockformat
36
- */
37
24
  this.clockFormat = 'HH:MM:ss';
38
- /**
39
- * configurable time zone
40
- */
41
25
  this.timeZone = '';
26
+ this.mbSource = undefined;
42
27
  this.hasErrors = false;
43
- this.platform = getDevicePlatform();
44
- /**
45
- * Host element
46
- */
47
- this.MANDATORY_FIELDS = ['endpoint', 'language', 'sections'];
48
28
  }
49
29
  validateMandatoryFields() {
50
30
  this.MANDATORY_FIELDS.forEach((field) => {
@@ -128,8 +108,6 @@ export class GeneralFooterTemplate {
128
108
  "tags": [],
129
109
  "text": "the language of the footer"
130
110
  },
131
- "getter": false,
132
- "setter": false,
133
111
  "attribute": "language",
134
112
  "reflect": true
135
113
  },
@@ -147,8 +125,6 @@ export class GeneralFooterTemplate {
147
125
  "tags": [],
148
126
  "text": "which sections should be included in the footer (some have defined attributes)"
149
127
  },
150
- "getter": false,
151
- "setter": false,
152
128
  "attribute": "sections",
153
129
  "reflect": true
154
130
  },
@@ -166,8 +142,6 @@ export class GeneralFooterTemplate {
166
142
  "tags": [],
167
143
  "text": "endpoint for data retrieval"
168
144
  },
169
- "getter": false,
170
- "setter": false,
171
145
  "attribute": "endpoint",
172
146
  "reflect": true
173
147
  },
@@ -185,8 +159,6 @@ export class GeneralFooterTemplate {
185
159
  "tags": [],
186
160
  "text": "Environment segregation"
187
161
  },
188
- "getter": false,
189
- "setter": false,
190
162
  "attribute": "env",
191
163
  "reflect": true,
192
164
  "defaultValue": "'stage'"
@@ -205,8 +177,6 @@ export class GeneralFooterTemplate {
205
177
  "tags": [],
206
178
  "text": "User roles"
207
179
  },
208
- "getter": false,
209
- "setter": false,
210
180
  "attribute": "user-roles",
211
181
  "reflect": true,
212
182
  "defaultValue": "'everyone'"
@@ -225,8 +195,6 @@ export class GeneralFooterTemplate {
225
195
  "tags": [],
226
196
  "text": "the id of the current userid, to be used in order to determine login status (relevant for certain components ex. \"panic button\")"
227
197
  },
228
- "getter": false,
229
- "setter": false,
230
198
  "attribute": "userid",
231
199
  "reflect": true
232
200
  },
@@ -244,8 +212,6 @@ export class GeneralFooterTemplate {
244
212
  "tags": [],
245
213
  "text": "the current session, to be used in order to determine login status (relevant for certain components ex. \"panic button\")"
246
214
  },
247
- "getter": false,
248
- "setter": false,
249
215
  "attribute": "session",
250
216
  "reflect": true
251
217
  },
@@ -263,8 +229,6 @@ export class GeneralFooterTemplate {
263
229
  "tags": [],
264
230
  "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."
265
231
  },
266
- "getter": false,
267
- "setter": false,
268
232
  "attribute": "base-url",
269
233
  "reflect": true
270
234
  },
@@ -282,8 +246,6 @@ export class GeneralFooterTemplate {
282
246
  "tags": [],
283
247
  "text": "If this is true it will emit an event at the moment the content with url its clicked"
284
248
  },
285
- "getter": false,
286
- "setter": false,
287
249
  "attribute": "navigate-via-event",
288
250
  "reflect": true,
289
251
  "defaultValue": "'false'"
@@ -302,8 +264,6 @@ export class GeneralFooterTemplate {
302
264
  "tags": [],
303
265
  "text": "Post Message event to be sent on navigation via Event"
304
266
  },
305
- "getter": false,
306
- "setter": false,
307
267
  "attribute": "post-message-event",
308
268
  "reflect": true,
309
269
  "defaultValue": "'NavigateTo'"
@@ -322,8 +282,6 @@ export class GeneralFooterTemplate {
322
282
  "tags": [],
323
283
  "text": "custom styling by string content"
324
284
  },
325
- "getter": false,
326
- "setter": false,
327
285
  "attribute": "client-styling",
328
286
  "reflect": true,
329
287
  "defaultValue": "''"
@@ -342,8 +300,6 @@ export class GeneralFooterTemplate {
342
300
  "tags": [],
343
301
  "text": "custom styling by href"
344
302
  },
345
- "getter": false,
346
- "setter": false,
347
303
  "attribute": "client-styling-url",
348
304
  "reflect": true,
349
305
  "defaultValue": "''"
@@ -362,8 +318,6 @@ export class GeneralFooterTemplate {
362
318
  "tags": [],
363
319
  "text": "custom translation by href"
364
320
  },
365
- "getter": false,
366
- "setter": false,
367
321
  "attribute": "translation-url",
368
322
  "reflect": true,
369
323
  "defaultValue": "''"
@@ -382,8 +336,6 @@ export class GeneralFooterTemplate {
382
336
  "tags": [],
383
337
  "text": "clockformat"
384
338
  },
385
- "getter": false,
386
- "setter": false,
387
339
  "attribute": "clock-format",
388
340
  "reflect": true,
389
341
  "defaultValue": "'HH:MM:ss'"
@@ -402,8 +354,6 @@ export class GeneralFooterTemplate {
402
354
  "tags": [],
403
355
  "text": "configurable time zone"
404
356
  },
405
- "getter": false,
406
- "setter": false,
407
357
  "attribute": "time-zone",
408
358
  "reflect": true,
409
359
  "defaultValue": "''"
@@ -422,8 +372,6 @@ export class GeneralFooterTemplate {
422
372
  "tags": [],
423
373
  "text": "wether or not styling appends should be disallowed"
424
374
  },
425
- "getter": false,
426
- "setter": false,
427
375
  "attribute": "mb-source",
428
376
  "reflect": true
429
377
  }
@@ -1,17 +1,12 @@
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 = '';
12
4
  this.navigateLink = (url, target, externalLink) => {
13
5
  window.postMessage({ type: this.postMessageEvent, path: url, url, target, externalLink }, window.location.href);
14
6
  };
7
+ this.repeaterContent = undefined;
8
+ this.navigateViaEvent = false;
9
+ this.postMessageEvent = '';
15
10
  }
16
11
  render() {
17
12
  var _a, _b, _c;
@@ -47,8 +42,6 @@ export class ImageList {
47
42
  "tags": [],
48
43
  "text": "the links content to be displayed, including titles, url, open target"
49
44
  },
50
- "getter": false,
51
- "setter": false,
52
45
  "attribute": "repeater-content",
53
46
  "reflect": false
54
47
  },
@@ -66,8 +59,6 @@ export class ImageList {
66
59
  "tags": [],
67
60
  "text": "If this is true it will emit an event at the moment the content with url its clicked"
68
61
  },
69
- "getter": false,
70
- "setter": false,
71
62
  "attribute": "navigate-via-event",
72
63
  "reflect": false,
73
64
  "defaultValue": "false"
@@ -86,8 +77,6 @@ export class ImageList {
86
77
  "tags": [],
87
78
  "text": "Post Message event to be sent on navigation via event"
88
79
  },
89
- "getter": false,
90
- "setter": false,
91
80
  "attribute": "post-message-event",
92
81
  "reflect": true,
93
82
  "defaultValue": "''"
@@ -1,13 +1,10 @@
1
1
  import { h } from "@stencil/core";
2
2
  export class LinkSectionList {
3
3
  constructor() {
4
- /**
5
- * If this is true it will emit an event at the moment the content with url its clicked
6
- */
4
+ this.repeaterContent = undefined;
5
+ this.baseUrl = undefined;
6
+ this.language = undefined;
7
7
  this.navigateViaEvent = false;
8
- /**
9
- * Post Message event to be sent on navigation via event
10
- */
11
8
  this.postMessageEvent = '';
12
9
  }
13
10
  navigateLink(link) {
@@ -77,8 +74,6 @@ export class LinkSectionList {
77
74
  "tags": [],
78
75
  "text": "the links content to be displayed, including titles, url, open target"
79
76
  },
80
- "getter": false,
81
- "setter": false,
82
77
  "attribute": "repeater-content",
83
78
  "reflect": false
84
79
  },
@@ -96,8 +91,6 @@ export class LinkSectionList {
96
91
  "tags": [],
97
92
  "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."
98
93
  },
99
- "getter": false,
100
- "setter": false,
101
94
  "attribute": "base-url",
102
95
  "reflect": true
103
96
  },
@@ -115,8 +108,6 @@ export class LinkSectionList {
115
108
  "tags": [],
116
109
  "text": "the language of the footer"
117
110
  },
118
- "getter": false,
119
- "setter": false,
120
111
  "attribute": "language",
121
112
  "reflect": true
122
113
  },
@@ -134,8 +125,6 @@ export class LinkSectionList {
134
125
  "tags": [],
135
126
  "text": "If this is true it will emit an event at the moment the content with url its clicked"
136
127
  },
137
- "getter": false,
138
- "setter": false,
139
128
  "attribute": "navigate-via-event",
140
129
  "reflect": false,
141
130
  "defaultValue": "false"
@@ -154,8 +143,6 @@ export class LinkSectionList {
154
143
  "tags": [],
155
144
  "text": "Post Message event to be sent on navigation via event"
156
145
  },
157
- "getter": false,
158
- "setter": false,
159
146
  "attribute": "post-message-event",
160
147
  "reflect": true,
161
148
  "defaultValue": "''"
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-732f640c.js';
1
+ import { r as registerInstance, h } from './index-e6e68604.js';
2
2
  import { c as commonjsGlobal } from './_commonjsHelpers-57e89916.js';
3
3
 
4
4
  const DEFAULT_LANGUAGE = 'en';
@@ -63,7 +63,7 @@ const utc = utc$1.exports;
63
63
  var timezone$1 = {exports: {}};
64
64
 
65
65
  (function (module, exports) {
66
- !function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,i,o){var r,a=function(t,n,i){void 0===i&&(i={});var o=new Date(t),r=function(t,n){void 0===n&&(n={});var i=n.timeZoneName||"short",o=t+"|"+i,r=e[o];return r||(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),e[o]=r),r}(n,i);return r.formatToParts(o)},u=function(e,n){for(var i=a(e,n),r=[],u=0;u<i.length;u+=1){var f=i[u],s=f.type,m=f.value,c=t[s];c>=0&&(r[c]=parseInt(m,10));}var d=r[3],l=24===d?0:d,h=r[0]+"-"+r[1]+"-"+r[2]+" "+l+":"+r[4]+":"+r[5]+":000",v=+e;return (o.utc(h).valueOf()-(v-=v%1e3))/6e4},f=i.prototype;f.tz=function(t,e){void 0===t&&(t=r);var n,i=this.utcOffset(),a=this.toDate(),u=a.toLocaleString("en-US",{timeZone:t}),f=Math.round((a-new Date(u))/1e3/60),s=15*-Math.round(a.getTimezoneOffset()/15)-f;if(!Number(s))n=this.utcOffset(0,e);else if(n=o(u,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(s,!0),e){var m=n.utcOffset();n=n.add(i-m,"minute");}return n.$x.$timezone=t,n},f.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return "timezonename"===t.type.toLowerCase()}));return n&&n.value};var s=f.startOf;f.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return s.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return s.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var i=n&&e,a=n||e||r,f=u(+o(),a);if("string"!=typeof t)return o(t).tz(a);var s=function(t,e,n){var i=t-60*e*1e3,o=u(i,n);if(e===o)return [i,e];var r=u(i-=60*(o-e)*1e3,n);return o===r?[i,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}(o.utc(t,i).valueOf(),f,a),m=s[0],c=s[1],d=o(m).utcOffset(c);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){r=t;};}}));
66
+ !function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,i,o){var r,a=function(t,n,i){void 0===i&&(i={});var o=new Date(t),r=function(t,n){void 0===n&&(n={});var i=n.timeZoneName||"short",o=t+"|"+i,r=e[o];return r||(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),e[o]=r),r}(n,i);return r.formatToParts(o)},u=function(e,n){for(var i=a(e,n),r=[],u=0;u<i.length;u+=1){var f=i[u],s=f.type,m=f.value,c=t[s];c>=0&&(r[c]=parseInt(m,10));}var d=r[3],l=24===d?0:d,h=r[0]+"-"+r[1]+"-"+r[2]+" "+l+":"+r[4]+":"+r[5]+":000",v=+e;return (o.utc(h).valueOf()-(v-=v%1e3))/6e4},f=i.prototype;f.tz=function(t,e){void 0===t&&(t=r);var n=this.utcOffset(),i=this.toDate(),a=i.toLocaleString("en-US",{timeZone:t}),u=Math.round((i-new Date(a))/1e3/60),f=o(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-u,!0);if(e){var s=f.utcOffset();f=f.add(n-s,"minute");}return f.$x.$timezone=t,f},f.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return "timezonename"===t.type.toLowerCase()}));return n&&n.value};var s=f.startOf;f.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return s.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return s.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var i=n&&e,a=n||e||r,f=u(+o(),a);if("string"!=typeof t)return o(t).tz(a);var s=function(t,e,n){var i=t-60*e*1e3,o=u(i,n);if(e===o)return [i,e];var r=u(i-=60*(o-e)*1e3,n);return o===r?[i,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}(o.utc(t,i).valueOf(),f,a),m=s[0],c=s[1],d=o(m).utcOffset(c);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){r=t;};}}));
67
67
  }(timezone$1));
68
68
 
69
69
  const timezone = timezone$1.exports;
@@ -74,23 +74,6 @@ 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 = '';
94
77
  this.startClock = () => {
95
78
  this.intervalId = setInterval(() => {
96
79
  if (this.timeZone.length > 0) {
@@ -103,6 +86,11 @@ const CustomClock = class {
103
86
  }
104
87
  }, 1000);
105
88
  };
89
+ this.clockFormat = 'HH:mm:ss';
90
+ this.timeZone = '';
91
+ this.translationUrl = '';
92
+ this.language = 'en';
93
+ this.timeString = '';
106
94
  }
107
95
  handleNewTranslations() {
108
96
  getTranslations(this.translationUrl);