@everymatrix/general-footer-template 1.56.0 → 1.56.3
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 +7 -19
- package/dist/cjs/custom-content-section.cjs.entry.js +1482 -1678
- package/dist/cjs/general-footer-template.cjs.entry.js +11 -31
- package/dist/cjs/general-footer-template.cjs.js +2 -2
- package/dist/cjs/image-list.cjs.entry.js +4 -9
- package/dist/cjs/{index-c1afe75b.js → index-a7f717fa.js} +91 -227
- package/dist/cjs/link-section-list.cjs.entry.js +4 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/custom-clock/custom-clock.js +5 -25
- package/dist/collection/components/custom-content-section/custom-content-section.js +2 -14
- package/dist/collection/components/general-footer-template/general-footer-template.js +10 -62
- package/dist/collection/components/image-list/image-list.js +3 -14
- package/dist/collection/components/link-section-list/link-section-list.js +3 -16
- package/dist/esm/custom-clock.entry.js +7 -19
- package/dist/esm/custom-content-section.entry.js +1482 -1678
- package/dist/esm/general-footer-template.entry.js +11 -31
- package/dist/esm/general-footer-template.js +3 -3
- package/dist/esm/image-list.entry.js +4 -9
- package/dist/esm/{index-732f640c.js → index-e6e68604.js} +91 -227
- package/dist/esm/link-section-list.entry.js +4 -7
- 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-076550c8.entry.js +1 -0
- package/dist/general-footer-template/p-16bd4237.js +2 -0
- package/dist/general-footer-template/p-2879096a.entry.js +1 -0
- package/dist/general-footer-template/{p-a8c0f5a0.entry.js → p-5f13c34b.entry.js} +2 -2
- package/dist/general-footer-template/p-d7132f51.entry.js +1 -0
- package/dist/general-footer-template/{p-3eda45d5.entry.js → p-f12f5263.entry.js} +1 -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 +2 -0
- 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
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/general-footer-template/p-1fc2e24a.js +0 -2
- package/dist/general-footer-template/p-55524eed.entry.js +0 -1
- package/dist/general-footer-template/p-a4b44512.entry.js +0 -1
- package/dist/general-footer-template/p-dd7ffd49.entry.js +0 -1
- 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
- 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
- /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
- /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
- /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
- /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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a7f717fa.js');
|
|
6
6
|
const _commonjsHelpers = require('./_commonjsHelpers-0a7b82d9.js');
|
|
7
7
|
|
|
8
8
|
const DEFAULT_LANGUAGE = 'en';
|
|
@@ -67,7 +67,7 @@ const utc = utc$1.exports;
|
|
|
67
67
|
var timezone$1 = {exports: {}};
|
|
68
68
|
|
|
69
69
|
(function (module, exports) {
|
|
70
|
-
!function(t,e){module.exports=e();}(_commonjsHelpers.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
|
|
70
|
+
!function(t,e){module.exports=e();}(_commonjsHelpers.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;};}}));
|
|
71
71
|
}(timezone$1));
|
|
72
72
|
|
|
73
73
|
const timezone = timezone$1.exports;
|
|
@@ -78,23 +78,6 @@ const CustomClockStyle0 = customClockCss;
|
|
|
78
78
|
const CustomClock = class {
|
|
79
79
|
constructor(hostRef) {
|
|
80
80
|
index.registerInstance(this, hostRef);
|
|
81
|
-
/**
|
|
82
|
-
* clockformat
|
|
83
|
-
*/
|
|
84
|
-
this.clockFormat = 'HH:mm:ss';
|
|
85
|
-
/**
|
|
86
|
-
* configurable time zone
|
|
87
|
-
*/
|
|
88
|
-
this.timeZone = '';
|
|
89
|
-
/**
|
|
90
|
-
* custom translation by href
|
|
91
|
-
*/
|
|
92
|
-
this.translationUrl = '';
|
|
93
|
-
/**
|
|
94
|
-
* language
|
|
95
|
-
*/
|
|
96
|
-
this.language = 'en';
|
|
97
|
-
this.timeString = '';
|
|
98
81
|
this.startClock = () => {
|
|
99
82
|
this.intervalId = setInterval(() => {
|
|
100
83
|
if (this.timeZone.length > 0) {
|
|
@@ -107,6 +90,11 @@ const CustomClock = class {
|
|
|
107
90
|
}
|
|
108
91
|
}, 1000);
|
|
109
92
|
};
|
|
93
|
+
this.clockFormat = 'HH:mm:ss';
|
|
94
|
+
this.timeZone = '';
|
|
95
|
+
this.translationUrl = '';
|
|
96
|
+
this.language = 'en';
|
|
97
|
+
this.timeString = '';
|
|
110
98
|
}
|
|
111
99
|
handleNewTranslations() {
|
|
112
100
|
getTranslations(this.translationUrl);
|