@swisspost/internet-header 1.13.11 → 1.13.12
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/focus-trap.cjs.entry.js +1 -1
- package/dist/cjs/{index-e67ee869.js → index-c2990852.js} +214 -196
- package/dist/cjs/{index-3216e4c8.js → index-fbcc9ff3.js} +23 -33
- package/dist/cjs/index.cjs.js +16 -16
- package/dist/cjs/{language.service-5591951f.js → language.service-476dff43.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{post-internet-breadcrumbs-cd00e828.js → post-internet-breadcrumbs-b97f26f1.js} +6 -6
- package/dist/cjs/{post-internet-footer-451c6936.js → post-internet-footer-7f5033b1.js} +4 -4
- package/dist/cjs/{post-internet-header-ecbdbe86.js → post-internet-header-340e6c78.js} +16 -16
- package/dist/cjs/{post-klp-login-widget-4784e543.js → post-klp-login-widget-4b321fc2.js} +4 -4
- package/dist/cjs/post-klp-login-widget.cjs.entry.js +5 -5
- package/dist/cjs/{post-language-switch-7ee44d13.js → post-language-switch-d55295b2.js} +5 -5
- package/dist/cjs/post-language-switch.cjs.entry.js +6 -6
- package/dist/cjs/{post-logo-508c8b1e.js → post-logo-a837a342.js} +2 -2
- package/dist/cjs/post-logo.cjs.entry.js +3 -3
- package/dist/cjs/{post-main-navigation-9ae98522.js → post-main-navigation-cf8e7bdd.js} +6 -6
- package/dist/cjs/post-main-navigation.cjs.entry.js +7 -7
- package/dist/cjs/{post-meta-navigation-72b92c2a.js → post-meta-navigation-09ce7f6a.js} +2 -2
- package/dist/cjs/post-meta-navigation.cjs.entry.js +3 -3
- package/dist/cjs/{post-search-690c4d32.js → post-search-8563db66.js} +6 -6
- package/dist/cjs/post-search.cjs.entry.js +7 -7
- package/dist/cjs/{post-skiplinks-608b9533.js → post-skiplinks-929ae5a4.js} +4 -4
- package/dist/cjs/post-skiplinks.cjs.entry.js +5 -5
- package/dist/cjs/{store-bb0e8d2e.js → store-b5f4aa26.js} +1 -1
- package/dist/cjs/{svg-icon.component-d7f2aceb.js → svg-icon.component-51e9f6ce.js} +1 -1
- package/dist/cjs/{svg-sprite.component-004c728e.js → svg-sprite.component-2c996190.js} +1 -1
- package/dist/cjs/swisspost-internet-breadcrumbs.cjs.entry.js +7 -7
- package/dist/cjs/swisspost-internet-footer.cjs.entry.js +5 -5
- package/dist/cjs/swisspost-internet-header.cjs.entry.js +7 -7
- package/dist/cjs/swisspost-internet-header.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/post-search/post-search.js +1 -1
- package/dist/components/index2.js +23 -33
- package/dist/components/swisspost-internet-header.js +10 -10
- package/dist/docs.json +5 -5
- package/dist/esm/focus-trap.entry.js +1 -1
- package/dist/esm/{index-607344a5.js → index-44536ec6.js} +214 -196
- package/dist/esm/{index-d2256e06.js → index-d3f1363d.js} +23 -33
- package/dist/esm/index.js +16 -16
- package/dist/esm/{language.service-2df27b6a.js → language.service-143cc0fd.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{post-internet-breadcrumbs-d7f7f87f.js → post-internet-breadcrumbs-92251ed5.js} +6 -6
- package/dist/esm/{post-internet-footer-b4161a6c.js → post-internet-footer-3a73ab19.js} +4 -4
- package/dist/esm/{post-internet-header-8279d078.js → post-internet-header-3c60746d.js} +16 -16
- package/dist/esm/{post-klp-login-widget-58d9e3e2.js → post-klp-login-widget-f41f1ae9.js} +4 -4
- package/dist/esm/post-klp-login-widget.entry.js +5 -5
- package/dist/esm/{post-language-switch-85afcb97.js → post-language-switch-1df8c0a6.js} +5 -5
- package/dist/esm/post-language-switch.entry.js +6 -6
- package/dist/esm/{post-logo-6ea4c487.js → post-logo-74e6bc2f.js} +2 -2
- package/dist/esm/post-logo.entry.js +3 -3
- package/dist/esm/{post-main-navigation-9d539ab7.js → post-main-navigation-8bbaae7d.js} +6 -6
- package/dist/esm/post-main-navigation.entry.js +7 -7
- package/dist/esm/{post-meta-navigation-895bef11.js → post-meta-navigation-6df0693e.js} +2 -2
- package/dist/esm/post-meta-navigation.entry.js +3 -3
- package/dist/esm/{post-search-6e306c06.js → post-search-5aac30b8.js} +6 -6
- package/dist/esm/post-search.entry.js +7 -7
- package/dist/esm/{post-skiplinks-814427b2.js → post-skiplinks-249af19f.js} +4 -4
- package/dist/esm/post-skiplinks.entry.js +5 -5
- package/dist/esm/{store-59bf455d.js → store-6fe1ea9a.js} +1 -1
- package/dist/esm/{svg-icon.component-8b45252e.js → svg-icon.component-ba72b77b.js} +1 -1
- package/dist/esm/{svg-sprite.component-6c834657.js → svg-sprite.component-66cdf00e.js} +1 -1
- package/dist/esm/swisspost-internet-breadcrumbs.entry.js +7 -7
- package/dist/esm/swisspost-internet-footer.entry.js +5 -5
- package/dist/esm/swisspost-internet-header.entry.js +7 -7
- package/dist/esm/swisspost-internet-header.js +3 -3
- package/dist/esm-es5/focus-trap.entry.js +1 -1
- package/dist/esm-es5/index-44536ec6.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{language.service-2df27b6a.js → language.service-143cc0fd.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{post-internet-breadcrumbs-d7f7f87f.js → post-internet-breadcrumbs-92251ed5.js} +1 -1
- package/dist/esm-es5/{post-internet-footer-b4161a6c.js → post-internet-footer-3a73ab19.js} +1 -1
- package/dist/esm-es5/{post-internet-header-8279d078.js → post-internet-header-3c60746d.js} +1 -1
- package/dist/esm-es5/{post-klp-login-widget-58d9e3e2.js → post-klp-login-widget-f41f1ae9.js} +1 -1
- package/dist/esm-es5/post-klp-login-widget.entry.js +1 -1
- package/dist/esm-es5/{post-language-switch-85afcb97.js → post-language-switch-1df8c0a6.js} +1 -1
- package/dist/esm-es5/post-language-switch.entry.js +1 -1
- package/dist/esm-es5/{post-logo-6ea4c487.js → post-logo-74e6bc2f.js} +1 -1
- package/dist/esm-es5/post-logo.entry.js +1 -1
- package/dist/esm-es5/{post-main-navigation-9d539ab7.js → post-main-navigation-8bbaae7d.js} +1 -1
- package/dist/esm-es5/post-main-navigation.entry.js +1 -1
- package/dist/esm-es5/{post-meta-navigation-895bef11.js → post-meta-navigation-6df0693e.js} +1 -1
- package/dist/esm-es5/post-meta-navigation.entry.js +1 -1
- package/dist/esm-es5/{post-search-6e306c06.js → post-search-5aac30b8.js} +1 -1
- package/dist/esm-es5/post-search.entry.js +1 -1
- package/dist/esm-es5/{post-skiplinks-814427b2.js → post-skiplinks-249af19f.js} +1 -1
- package/dist/esm-es5/post-skiplinks.entry.js +1 -1
- package/dist/esm-es5/{store-59bf455d.js → store-6fe1ea9a.js} +1 -1
- package/dist/esm-es5/svg-icon.component-ba72b77b.js +1 -0
- package/dist/esm-es5/{svg-sprite.component-6c834657.js → svg-sprite.component-66cdf00e.js} +1 -1
- package/dist/esm-es5/swisspost-internet-breadcrumbs.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-footer.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-header.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-header.js +1 -1
- package/dist/swisspost-internet-header/index.esm.js +1 -1
- package/dist/swisspost-internet-header/{p-13b25740.js → p-027d4bd4.js} +1 -1
- package/dist/swisspost-internet-header/p-04dc6ce9.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-0b004039.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-0c92efb7.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-0cdbcd38.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-cfa585dc.js → p-111c7d53.js} +1 -1
- package/dist/swisspost-internet-header/p-1174b469.js +2 -0
- package/dist/swisspost-internet-header/{p-2a7cb38b.system.js → p-15010780.system.js} +1 -1
- package/dist/swisspost-internet-header/p-162676a7.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-5f82dead.system.js → p-1df2ab81.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-edf88566.system.js → p-215cfcad.system.js} +1 -1
- package/dist/swisspost-internet-header/p-2fe9a682.entry.js +1 -0
- package/dist/swisspost-internet-header/p-369ea953.entry.js +1 -0
- package/dist/swisspost-internet-header/p-3dd99fc7.entry.js +1 -0
- package/dist/swisspost-internet-header/p-43effb96.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-2bb736c5.system.js → p-4855a2c2.system.js} +1 -1
- package/dist/swisspost-internet-header/p-49021214.js +1 -1
- package/dist/swisspost-internet-header/p-49ecc8ea.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-6786aa21.js → p-4bc691b6.js} +1 -1
- package/dist/swisspost-internet-header/{p-75d40407.system.js → p-4dcd9273.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-bd1b44bc.js → p-50f0ed92.js} +1 -1
- package/dist/swisspost-internet-header/{p-0e26e283.system.js → p-586dbdd5.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-e97ae5c1.system.js → p-598c5c9e.system.js} +1 -1
- package/dist/swisspost-internet-header/p-5c46cf53.js +1 -0
- package/dist/swisspost-internet-header/p-687d3e77.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-7512fef9.js → p-6d212b8f.js} +1 -1
- package/dist/swisspost-internet-header/{p-b8291f85.system.js → p-720354bb.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-aeb4cf5c.system.js → p-748d20bb.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-5f5b27e0.system.js → p-79ac298e.system.js} +1 -1
- package/dist/swisspost-internet-header/p-85e5cc89.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-eeae2fed.js → p-92687657.js} +1 -1
- package/dist/swisspost-internet-header/{p-bf49aa72.system.js → p-9f11f327.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-672e2b72.js → p-a389720f.js} +1 -1
- package/dist/swisspost-internet-header/{p-83780dd4.system.js → p-a3e96f18.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-286e501c.js → p-a58d0555.js} +1 -1
- package/dist/swisspost-internet-header/p-a7bf7fdf.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-32bd7cb9.js → p-aa93de9b.js} +1 -1
- package/dist/swisspost-internet-header/{p-6acdc01c.system.entry.js → p-adbf2b49.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-b07d0f11.js → p-afb7e479.js} +1 -1
- package/dist/swisspost-internet-header/p-b42bbca5.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-b4d56bac.entry.js +1 -0
- package/dist/swisspost-internet-header/p-b75cd4f0.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-dec84965.system.js → p-c0675784.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-760d604f.js → p-cab1d942.js} +1 -1
- package/dist/swisspost-internet-header/p-db432953.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-dd6c253d.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-e32d80f4.system.js +2 -0
- package/dist/swisspost-internet-header/{p-4d4d3ea2.system.js → p-e76ba161.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-0bb2f252.js → p-ea52e867.js} +1 -1
- package/dist/swisspost-internet-header/{p-4f5e96be.js → p-ed0ec673.js} +1 -1
- package/dist/swisspost-internet-header/{p-2f7c5bd5.system.js → p-f1eb8655.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-3a497703.entry.js → p-f2687df0.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-29965ca9.system.js → p-f72f748a.system.js} +1 -1
- package/dist/swisspost-internet-header/p-f7e9f399.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-fac69e5d.entry.js +1 -0
- package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
- package/dist/swisspost-internet-header/swisspost-internet-header.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -2
- package/loader/index.d.ts +3 -0
- package/package.json +10 -10
- package/dist/esm-es5/index-607344a5.js +0 -1
- package/dist/esm-es5/svg-icon.component-8b45252e.js +0 -1
- package/dist/swisspost-internet-header/p-0643f977.js +0 -1
- package/dist/swisspost-internet-header/p-067578af.entry.js +0 -1
- package/dist/swisspost-internet-header/p-27de5cd4.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-2d7abdc0.entry.js +0 -1
- package/dist/swisspost-internet-header/p-388a9b3c.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-43f111fb.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-507a1aa1.entry.js +0 -1
- package/dist/swisspost-internet-header/p-61c44b55.entry.js +0 -1
- package/dist/swisspost-internet-header/p-6b24c17a.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-7500c126.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-7aaa346f.entry.js +0 -1
- package/dist/swisspost-internet-header/p-91676998.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-99fc974a.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-9bcaad92.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-a025bd85.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-a1e9c54b.system.js +0 -2
- package/dist/swisspost-internet-header/p-b70cc30e.entry.js +0 -1
- package/dist/swisspost-internet-header/p-b90e75e8.entry.js +0 -1
- package/dist/swisspost-internet-header/p-bce3a409.entry.js +0 -1
- package/dist/swisspost-internet-header/p-c1b5f811.js +0 -2
- package/dist/swisspost-internet-header/p-c60a6b5e.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-db2b6582.entry.js +0 -1
- package/dist/swisspost-internet-header/p-ed6ab713.entry.js +0 -1
- /package/dist/esm-es5/{index-d2256e06.js → index-d3f1363d.js} +0 -0
- /package/dist/swisspost-internet-header/{p-a74b380d.js → p-151d419a.js} +0 -0
- /package/dist/swisspost-internet-header/{p-9b4d5e90.system.js → p-abf306bd.system.js} +0 -0
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postInternetFooter = require('./post-internet-footer-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('./store-
|
|
8
|
-
require('./svg-sprite.component-
|
|
9
|
-
require('./language.service-
|
|
5
|
+
const postInternetFooter = require('./post-internet-footer-7f5033b1.js');
|
|
6
|
+
require('./index-c2990852.js');
|
|
7
|
+
require('./store-b5f4aa26.js');
|
|
8
|
+
require('./svg-sprite.component-2c996190.js');
|
|
9
|
+
require('./language.service-476dff43.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postInternetHeader = require('./post-internet-header-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('./index-
|
|
8
|
-
require('./language.service-
|
|
9
|
-
require('./store-
|
|
5
|
+
const postInternetHeader = require('./post-internet-header-340e6c78.js');
|
|
6
|
+
require('./index-c2990852.js');
|
|
7
|
+
require('./index-fbcc9ff3.js');
|
|
8
|
+
require('./language.service-476dff43.js');
|
|
9
|
+
require('./store-b5f4aa26.js');
|
|
10
10
|
require('./utils-0a793763.js');
|
|
11
|
-
require('./svg-sprite.component-
|
|
12
|
-
require('./svg-icon.component-
|
|
11
|
+
require('./svg-sprite.component-2c996190.js');
|
|
12
|
+
require('./svg-icon.component-51e9f6ce.js');
|
|
13
13
|
require('./if.component-31542061.js');
|
|
14
14
|
|
|
15
15
|
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-c2990852.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.19.1 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('swisspost-internet-header.cjs.js', document.baseURI).href));
|
|
@@ -370,7 +370,7 @@ export class PostSearch {
|
|
|
370
370
|
"Event": {
|
|
371
371
|
"location": "import",
|
|
372
372
|
"path": "@stencil/core",
|
|
373
|
-
"id": "../../node_modules/.pnpm/@stencil+core@4.
|
|
373
|
+
"id": "../../node_modules/.pnpm/@stencil+core@4.19.1/node_modules/@stencil/core/internal/stencil-core/index.d.ts::Event"
|
|
374
374
|
}
|
|
375
375
|
},
|
|
376
376
|
"return": "Promise<boolean>"
|
|
@@ -23,73 +23,67 @@
|
|
|
23
23
|
*/
|
|
24
24
|
function throttle (delay, callback, options) {
|
|
25
25
|
var _ref = options || {},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
_ref$noTrailing = _ref.noTrailing,
|
|
27
|
+
noTrailing = _ref$noTrailing === void 0 ? false : _ref$noTrailing,
|
|
28
|
+
_ref$noLeading = _ref.noLeading,
|
|
29
|
+
noLeading = _ref$noLeading === void 0 ? false : _ref$noLeading,
|
|
30
|
+
_ref$debounceMode = _ref.debounceMode,
|
|
31
|
+
debounceMode = _ref$debounceMode === void 0 ? undefined : _ref$debounceMode;
|
|
32
32
|
/*
|
|
33
33
|
* After wrapper has stopped being called, this timeout ensures that
|
|
34
34
|
* `callback` is executed at the proper times in `throttle` and `end`
|
|
35
35
|
* debounce modes.
|
|
36
36
|
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
37
|
var timeoutID;
|
|
40
|
-
var cancelled = false;
|
|
38
|
+
var cancelled = false;
|
|
41
39
|
|
|
42
|
-
|
|
40
|
+
// Keep track of the last time `callback` was executed.
|
|
41
|
+
var lastExec = 0;
|
|
43
42
|
|
|
43
|
+
// Function to clear existing timeout
|
|
44
44
|
function clearExistingTimeout() {
|
|
45
45
|
if (timeoutID) {
|
|
46
46
|
clearTimeout(timeoutID);
|
|
47
47
|
}
|
|
48
|
-
}
|
|
49
|
-
|
|
48
|
+
}
|
|
50
49
|
|
|
50
|
+
// Function to cancel next exec
|
|
51
51
|
function cancel(options) {
|
|
52
52
|
var _ref2 = options || {},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
_ref2$upcomingOnly = _ref2.upcomingOnly,
|
|
54
|
+
upcomingOnly = _ref2$upcomingOnly === void 0 ? false : _ref2$upcomingOnly;
|
|
56
55
|
clearExistingTimeout();
|
|
57
56
|
cancelled = !upcomingOnly;
|
|
58
57
|
}
|
|
58
|
+
|
|
59
59
|
/*
|
|
60
60
|
* The `wrapper` function encapsulates all of the throttling / debouncing
|
|
61
61
|
* functionality and when executed will limit the rate at which `callback`
|
|
62
62
|
* is executed.
|
|
63
63
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
66
64
|
function wrapper() {
|
|
67
65
|
for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
68
66
|
arguments_[_key] = arguments[_key];
|
|
69
67
|
}
|
|
70
|
-
|
|
71
68
|
var self = this;
|
|
72
69
|
var elapsed = Date.now() - lastExec;
|
|
73
|
-
|
|
74
70
|
if (cancelled) {
|
|
75
71
|
return;
|
|
76
|
-
}
|
|
77
|
-
|
|
72
|
+
}
|
|
78
73
|
|
|
74
|
+
// Execute `callback` and update the `lastExec` timestamp.
|
|
79
75
|
function exec() {
|
|
80
76
|
lastExec = Date.now();
|
|
81
77
|
callback.apply(self, arguments_);
|
|
82
78
|
}
|
|
79
|
+
|
|
83
80
|
/*
|
|
84
81
|
* If `debounceMode` is true (at begin) this is used to clear the flag
|
|
85
82
|
* to allow future `callback` executions.
|
|
86
83
|
*/
|
|
87
|
-
|
|
88
|
-
|
|
89
84
|
function clear() {
|
|
90
85
|
timeoutID = undefined;
|
|
91
86
|
}
|
|
92
|
-
|
|
93
87
|
if (!noLeading && debounceMode && !timeoutID) {
|
|
94
88
|
/*
|
|
95
89
|
* Since `wrapper` is being called for the first time and
|
|
@@ -98,9 +92,7 @@ function throttle (delay, callback, options) {
|
|
|
98
92
|
*/
|
|
99
93
|
exec();
|
|
100
94
|
}
|
|
101
|
-
|
|
102
95
|
clearExistingTimeout();
|
|
103
|
-
|
|
104
96
|
if (debounceMode === undefined && elapsed > delay) {
|
|
105
97
|
if (noLeading) {
|
|
106
98
|
/*
|
|
@@ -109,7 +101,6 @@ function throttle (delay, callback, options) {
|
|
|
109
101
|
* to execute after `delay` ms.
|
|
110
102
|
*/
|
|
111
103
|
lastExec = Date.now();
|
|
112
|
-
|
|
113
104
|
if (!noTrailing) {
|
|
114
105
|
timeoutID = setTimeout(debounceMode ? clear : exec, delay);
|
|
115
106
|
}
|
|
@@ -135,13 +126,14 @@ function throttle (delay, callback, options) {
|
|
|
135
126
|
timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
|
|
136
127
|
}
|
|
137
128
|
}
|
|
129
|
+
wrapper.cancel = cancel;
|
|
138
130
|
|
|
139
|
-
|
|
140
|
-
|
|
131
|
+
// Return the wrapper function.
|
|
141
132
|
return wrapper;
|
|
142
133
|
}
|
|
143
134
|
|
|
144
135
|
/* eslint-disable no-undefined */
|
|
136
|
+
|
|
145
137
|
/**
|
|
146
138
|
* Debounce execution of a function. Debouncing, unlike throttling,
|
|
147
139
|
* guarantees that a function is only executed a single time, either at the
|
|
@@ -157,12 +149,10 @@ function throttle (delay, callback, options) {
|
|
|
157
149
|
*
|
|
158
150
|
* @returns {Function} A new, debounced function.
|
|
159
151
|
*/
|
|
160
|
-
|
|
161
152
|
function debounce (delay, callback, options) {
|
|
162
153
|
var _ref = options || {},
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
154
|
+
_ref$atBegin = _ref.atBegin,
|
|
155
|
+
atBegin = _ref$atBegin === void 0 ? false : _ref$atBegin;
|
|
166
156
|
return throttle(delay, callback, {
|
|
167
157
|
debounceMode: atBegin !== false
|
|
168
158
|
});
|
|
@@ -363,7 +363,7 @@ const setMainNavigationIds = (navMainEntities) => {
|
|
|
363
363
|
};
|
|
364
364
|
|
|
365
365
|
const name = "@swisspost/internet-header";
|
|
366
|
-
const version = "1.13.
|
|
366
|
+
const version = "1.13.12";
|
|
367
367
|
const description = "The header for client facing applications.";
|
|
368
368
|
const author = "Swiss Post <design-system@post.ch>";
|
|
369
369
|
const license = "Apache-2.0";
|
|
@@ -404,43 +404,43 @@ const scripts = {
|
|
|
404
404
|
generate: "stencil generate"
|
|
405
405
|
};
|
|
406
406
|
const dependencies = {
|
|
407
|
-
"@swisspost/design-system-styles": "workspace:7.2.
|
|
407
|
+
"@swisspost/design-system-styles": "workspace:7.2.1",
|
|
408
408
|
"body-scroll-lock": "4.0.0-beta.0",
|
|
409
409
|
"iframe-resizer": "4.4.2",
|
|
410
410
|
jquery: "3.7.1",
|
|
411
|
-
"throttle-debounce": "5.0.
|
|
411
|
+
"throttle-debounce": "5.0.2",
|
|
412
412
|
"url-polyfill": "1.1.12"
|
|
413
413
|
};
|
|
414
414
|
const devDependencies = {
|
|
415
415
|
"@babel/core": "7.24.7",
|
|
416
|
-
"@percy/cli": "1.28.
|
|
416
|
+
"@percy/cli": "1.28.8",
|
|
417
417
|
"@percy/cypress": "3.1.2",
|
|
418
418
|
"@stencil-community/eslint-plugin": "0.7.2",
|
|
419
|
-
"@stencil/core": "4.
|
|
419
|
+
"@stencil/core": "4.19.1",
|
|
420
420
|
"@stencil/sass": "3.0.12",
|
|
421
421
|
"@stencil/store": "2.0.16",
|
|
422
422
|
"@types/body-scroll-lock": "3.1.2",
|
|
423
423
|
"@types/iframe-resizer": "3.5.13",
|
|
424
424
|
"@types/jest": "29.5.12",
|
|
425
425
|
"@types/jquery": "3.5.30",
|
|
426
|
-
"@types/node": "20.14.
|
|
426
|
+
"@types/node": "20.14.9",
|
|
427
427
|
"@types/throttle-debounce": "5.0.2",
|
|
428
428
|
"babel-loader": "9.1.3",
|
|
429
429
|
bootstrap: "5.3.3",
|
|
430
|
-
cypress: "13.
|
|
430
|
+
cypress: "13.13.0",
|
|
431
431
|
"cypress-each": "1.14.0",
|
|
432
432
|
"cypress-storybook": "1.0.0",
|
|
433
433
|
eslint: "8.57.0",
|
|
434
|
-
"eslint-plugin-react": "7.34.
|
|
434
|
+
"eslint-plugin-react": "7.34.3",
|
|
435
435
|
"focus-trap": "7.5.4",
|
|
436
|
-
globby: "14.0.
|
|
436
|
+
globby: "14.0.2",
|
|
437
437
|
jest: "29.7.0",
|
|
438
438
|
"jest-environment-jsdom": "29.7.0",
|
|
439
439
|
rimraf: "5.0.7",
|
|
440
440
|
"rollup-plugin-node-polyfills": "0.2.1",
|
|
441
441
|
"rollup-plugin-scss": "4.0.0",
|
|
442
442
|
"rollup-plugin-visualizer": "5.12.0",
|
|
443
|
-
sass: "1.77.
|
|
443
|
+
sass: "1.77.6",
|
|
444
444
|
"start-server-and-test": "2.0.4",
|
|
445
445
|
"ts-jest": "29.1.5",
|
|
446
446
|
typescript: "4.9.5"
|
package/dist/docs.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-
|
|
2
|
+
"timestamp": "2024-07-10T09:47:59",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.19.1",
|
|
6
6
|
"typescriptVersion": "5.4.5"
|
|
7
7
|
},
|
|
8
8
|
"components": [
|
|
@@ -607,7 +607,7 @@
|
|
|
607
607
|
"Event": {
|
|
608
608
|
"location": "import",
|
|
609
609
|
"path": "@stencil/core",
|
|
610
|
-
"id": "../../node_modules/.pnpm/@stencil+core@4.
|
|
610
|
+
"id": "../../node_modules/.pnpm/@stencil+core@4.19.1/node_modules/@stencil/core/internal/stencil-core/index.d.ts::Event"
|
|
611
611
|
}
|
|
612
612
|
},
|
|
613
613
|
"return": "Promise<boolean>"
|
|
@@ -1465,10 +1465,10 @@
|
|
|
1465
1465
|
"docstring": "",
|
|
1466
1466
|
"path": "src/models/header.model.ts"
|
|
1467
1467
|
},
|
|
1468
|
-
"../../node_modules/.pnpm/@stencil+core@4.
|
|
1468
|
+
"../../node_modules/.pnpm/@stencil+core@4.19.1/node_modules/@stencil/core/internal/stencil-core/index.d.ts::Event": {
|
|
1469
1469
|
"declaration": "any",
|
|
1470
1470
|
"docstring": "",
|
|
1471
|
-
"path": "../../node_modules/.pnpm/@stencil+core@4.
|
|
1471
|
+
"path": "../../node_modules/.pnpm/@stencil+core@4.19.1/node_modules/@stencil/core/internal/stencil-core/index.d.ts"
|
|
1472
1472
|
}
|
|
1473
1473
|
}
|
|
1474
1474
|
}
|