@everymatrix/general-footer-template 1.56.3 → 1.58.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-content-section.cjs.entry.js +30 -19
- package/dist/collection/components/general-footer-template/general-footer-template.stories.js +82 -0
- package/dist/esm/custom-content-section.entry.js +30 -19
- package/dist/general-footer-template/general-footer-template.esm.js +1 -1
- package/dist/general-footer-template/{p-5f13c34b.entry.js → p-e9ff209c.entry.js} +2 -2
- package/dist/storybook/main.js +47 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-footer-template/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.dev.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/storybook/main.d.ts +3 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/storybook/preview.d.ts +70 -0
- package/dist/types/components/general-footer-template/general-footer-template.stories.d.ts +5 -0
- package/package.json +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 +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 → builds/emfe-widgets}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{Users/maria.bumbar/Desktop → builds/emfe-widgets}/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 → builds/emfe-widgets}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{Users/maria.bumbar/Desktop → builds/emfe-widgets}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -3331,7 +3331,7 @@ function filter$1(test, node, recurse = true, limit = Infinity) {
|
|
|
3331
3331
|
function find(test, nodes, recurse, limit) {
|
|
3332
3332
|
const result = [];
|
|
3333
3333
|
/** Stack of the arrays we are looking at. */
|
|
3334
|
-
const nodeStack = [nodes];
|
|
3334
|
+
const nodeStack = [Array.isArray(nodes) ? nodes : [nodes]];
|
|
3335
3335
|
/** Stack of the indices within the arrays. */
|
|
3336
3336
|
const indexStack = [0];
|
|
3337
3337
|
for (;;) {
|
|
@@ -3385,20 +3385,19 @@ function findOneChild(test, nodes) {
|
|
|
3385
3385
|
* @returns The first node that passes `test`.
|
|
3386
3386
|
*/
|
|
3387
3387
|
function findOne(test, nodes, recurse = true) {
|
|
3388
|
-
|
|
3389
|
-
for (let i = 0; i <
|
|
3390
|
-
const node =
|
|
3391
|
-
if (
|
|
3392
|
-
|
|
3393
|
-
}
|
|
3394
|
-
else if (test(node)) {
|
|
3395
|
-
elem = node;
|
|
3388
|
+
const searchedNodes = Array.isArray(nodes) ? nodes : [nodes];
|
|
3389
|
+
for (let i = 0; i < searchedNodes.length; i++) {
|
|
3390
|
+
const node = searchedNodes[i];
|
|
3391
|
+
if (isTag(node) && test(node)) {
|
|
3392
|
+
return node;
|
|
3396
3393
|
}
|
|
3397
|
-
|
|
3398
|
-
|
|
3394
|
+
if (recurse && hasChildren(node) && node.children.length > 0) {
|
|
3395
|
+
const found = findOne(test, node.children, true);
|
|
3396
|
+
if (found)
|
|
3397
|
+
return found;
|
|
3399
3398
|
}
|
|
3400
3399
|
}
|
|
3401
|
-
return
|
|
3400
|
+
return null;
|
|
3402
3401
|
}
|
|
3403
3402
|
/**
|
|
3404
3403
|
* Checks if a tree of nodes contains at least one node passing a test.
|
|
@@ -3409,8 +3408,8 @@ function findOne(test, nodes, recurse = true) {
|
|
|
3409
3408
|
* @returns Whether a tree of nodes contains at least one node passing the test.
|
|
3410
3409
|
*/
|
|
3411
3410
|
function existsOne(test, nodes) {
|
|
3412
|
-
return nodes.some((
|
|
3413
|
-
(
|
|
3411
|
+
return (Array.isArray(nodes) ? nodes : [nodes]).some((node) => (isTag(node) && test(node)) ||
|
|
3412
|
+
(hasChildren(node) && existsOne(test, node.children)));
|
|
3414
3413
|
}
|
|
3415
3414
|
/**
|
|
3416
3415
|
* Search an array of nodes and their children for elements passing a test function.
|
|
@@ -3424,7 +3423,7 @@ function existsOne(test, nodes) {
|
|
|
3424
3423
|
*/
|
|
3425
3424
|
function findAll(test, nodes) {
|
|
3426
3425
|
const result = [];
|
|
3427
|
-
const nodeStack = [nodes];
|
|
3426
|
+
const nodeStack = [Array.isArray(nodes) ? nodes : [nodes]];
|
|
3428
3427
|
const indexStack = [0];
|
|
3429
3428
|
for (;;) {
|
|
3430
3429
|
if (indexStack[0] >= nodeStack[0].length) {
|
|
@@ -3438,11 +3437,9 @@ function findAll(test, nodes) {
|
|
|
3438
3437
|
continue;
|
|
3439
3438
|
}
|
|
3440
3439
|
const elem = nodeStack[0][indexStack[0]++];
|
|
3441
|
-
if (
|
|
3442
|
-
continue;
|
|
3443
|
-
if (test(elem))
|
|
3440
|
+
if (isTag(elem) && test(elem))
|
|
3444
3441
|
result.push(elem);
|
|
3445
|
-
if (elem.children.length > 0) {
|
|
3442
|
+
if (hasChildren(elem) && elem.children.length > 0) {
|
|
3446
3443
|
indexStack.unshift(0);
|
|
3447
3444
|
nodeStack.unshift(elem.children);
|
|
3448
3445
|
}
|
|
@@ -3572,6 +3569,19 @@ function getElementById(id, nodes, recurse = true) {
|
|
|
3572
3569
|
function getElementsByTagName(tagName, nodes, recurse = true, limit = Infinity) {
|
|
3573
3570
|
return filter$1(Checks["tag_name"](tagName), nodes, recurse, limit);
|
|
3574
3571
|
}
|
|
3572
|
+
/**
|
|
3573
|
+
* Returns all nodes with the supplied `className`.
|
|
3574
|
+
*
|
|
3575
|
+
* @category Legacy Query Functions
|
|
3576
|
+
* @param className Class name to search for.
|
|
3577
|
+
* @param nodes Nodes to search through.
|
|
3578
|
+
* @param recurse Also consider child nodes.
|
|
3579
|
+
* @param limit Maximum number of nodes to return.
|
|
3580
|
+
* @returns All nodes with the supplied `className`.
|
|
3581
|
+
*/
|
|
3582
|
+
function getElementsByClassName(className, nodes, recurse = true, limit = Infinity) {
|
|
3583
|
+
return filter$1(getAttribCheck("class", className), nodes, recurse, limit);
|
|
3584
|
+
}
|
|
3575
3585
|
/**
|
|
3576
3586
|
* Returns all nodes with the supplied `type`.
|
|
3577
3587
|
*
|
|
@@ -3939,6 +3949,7 @@ const index = /*#__PURE__*/Object.freeze({
|
|
|
3939
3949
|
getElements: getElements,
|
|
3940
3950
|
getElementById: getElementById,
|
|
3941
3951
|
getElementsByTagName: getElementsByTagName,
|
|
3952
|
+
getElementsByClassName: getElementsByClassName,
|
|
3942
3953
|
getElementsByTagType: getElementsByTagType,
|
|
3943
3954
|
removeSubsets: removeSubsets,
|
|
3944
3955
|
get DocumentPosition () { return DocumentPosition; },
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import "@everymatrix/general-footer-template";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'General/Components/general-footer-template',
|
|
5
|
+
component: 'general-footer-template',
|
|
6
|
+
args: {
|
|
7
|
+
language: "",
|
|
8
|
+
sections: "",
|
|
9
|
+
endpoint: "",
|
|
10
|
+
env: "stage",
|
|
11
|
+
userRoles: "everyone",
|
|
12
|
+
userid: "",
|
|
13
|
+
session: "",
|
|
14
|
+
baseUrl: "",
|
|
15
|
+
navigateViaEvent: "false",
|
|
16
|
+
postMessageEvent: "NavigateTo",
|
|
17
|
+
clientStyling: "",
|
|
18
|
+
clientStylingUrl: "",
|
|
19
|
+
translationUrl: "",
|
|
20
|
+
clockFormat: "HH:MM:ss",
|
|
21
|
+
timeZone: "",
|
|
22
|
+
mbSource: "",
|
|
23
|
+
},
|
|
24
|
+
argTypes: {
|
|
25
|
+
language: { control: 'text', description: '' },
|
|
26
|
+
sections: { control: 'text', description: '' },
|
|
27
|
+
endpoint: { control: 'text', description: '' },
|
|
28
|
+
env: { control: 'text', description: '' },
|
|
29
|
+
userRoles: { control: 'text', description: '' },
|
|
30
|
+
userid: { control: 'text', description: '' },
|
|
31
|
+
session: { control: 'text', description: '' },
|
|
32
|
+
baseUrl: { control: 'text', description: '' },
|
|
33
|
+
navigateViaEvent: { control: 'text', description: '' },
|
|
34
|
+
postMessageEvent: { control: 'text', description: '' },
|
|
35
|
+
clientStyling: { control: 'text', description: '' },
|
|
36
|
+
clientStylingUrl: { control: 'text', description: '' },
|
|
37
|
+
translationUrl: { control: 'text', description: '' },
|
|
38
|
+
clockFormat: { control: 'text', description: '' },
|
|
39
|
+
timeZone: { control: 'text', description: '' },
|
|
40
|
+
mbSource: { control: 'text', description: '' },
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
export default meta;
|
|
44
|
+
const Template = (args) => {
|
|
45
|
+
return html `<general-footer-template
|
|
46
|
+
language="${args.language}"
|
|
47
|
+
sections="${args.sections}"
|
|
48
|
+
endpoint="${args.endpoint}"
|
|
49
|
+
env="${args.env}"
|
|
50
|
+
userRoles="${args.userRoles}"
|
|
51
|
+
userid="${args.userid}"
|
|
52
|
+
session="${args.session}"
|
|
53
|
+
baseUrl="${args.baseUrl}"
|
|
54
|
+
navigateViaEvent="${args.navigateViaEvent}"
|
|
55
|
+
postMessageEvent="${args.postMessageEvent}"
|
|
56
|
+
clientStyling="${args.clientStyling}"
|
|
57
|
+
clientStylingUrl="${args.clientStylingUrl}"
|
|
58
|
+
translationUrl="${args.translationUrl}"
|
|
59
|
+
clockFormat="${args.clockFormat}"
|
|
60
|
+
timeZone="${args.timeZone}"
|
|
61
|
+
mbSource="${args.mbSource}"
|
|
62
|
+
></general-footer-template>`;
|
|
63
|
+
};
|
|
64
|
+
export const Default = Template.bind({});
|
|
65
|
+
Default.args = {
|
|
66
|
+
language: "",
|
|
67
|
+
sections: "",
|
|
68
|
+
endpoint: "",
|
|
69
|
+
env: "stage",
|
|
70
|
+
userRoles: "everyone",
|
|
71
|
+
userid: "",
|
|
72
|
+
session: "",
|
|
73
|
+
baseUrl: "",
|
|
74
|
+
navigateViaEvent: "false",
|
|
75
|
+
postMessageEvent: "NavigateTo",
|
|
76
|
+
clientStyling: "",
|
|
77
|
+
clientStylingUrl: "",
|
|
78
|
+
translationUrl: "",
|
|
79
|
+
clockFormat: "HH:MM:ss",
|
|
80
|
+
timeZone: "",
|
|
81
|
+
mbSource: "",
|
|
82
|
+
};
|
|
@@ -3327,7 +3327,7 @@ function filter$1(test, node, recurse = true, limit = Infinity) {
|
|
|
3327
3327
|
function find(test, nodes, recurse, limit) {
|
|
3328
3328
|
const result = [];
|
|
3329
3329
|
/** Stack of the arrays we are looking at. */
|
|
3330
|
-
const nodeStack = [nodes];
|
|
3330
|
+
const nodeStack = [Array.isArray(nodes) ? nodes : [nodes]];
|
|
3331
3331
|
/** Stack of the indices within the arrays. */
|
|
3332
3332
|
const indexStack = [0];
|
|
3333
3333
|
for (;;) {
|
|
@@ -3381,20 +3381,19 @@ function findOneChild(test, nodes) {
|
|
|
3381
3381
|
* @returns The first node that passes `test`.
|
|
3382
3382
|
*/
|
|
3383
3383
|
function findOne(test, nodes, recurse = true) {
|
|
3384
|
-
|
|
3385
|
-
for (let i = 0; i <
|
|
3386
|
-
const node =
|
|
3387
|
-
if (
|
|
3388
|
-
|
|
3389
|
-
}
|
|
3390
|
-
else if (test(node)) {
|
|
3391
|
-
elem = node;
|
|
3384
|
+
const searchedNodes = Array.isArray(nodes) ? nodes : [nodes];
|
|
3385
|
+
for (let i = 0; i < searchedNodes.length; i++) {
|
|
3386
|
+
const node = searchedNodes[i];
|
|
3387
|
+
if (isTag(node) && test(node)) {
|
|
3388
|
+
return node;
|
|
3392
3389
|
}
|
|
3393
|
-
|
|
3394
|
-
|
|
3390
|
+
if (recurse && hasChildren(node) && node.children.length > 0) {
|
|
3391
|
+
const found = findOne(test, node.children, true);
|
|
3392
|
+
if (found)
|
|
3393
|
+
return found;
|
|
3395
3394
|
}
|
|
3396
3395
|
}
|
|
3397
|
-
return
|
|
3396
|
+
return null;
|
|
3398
3397
|
}
|
|
3399
3398
|
/**
|
|
3400
3399
|
* Checks if a tree of nodes contains at least one node passing a test.
|
|
@@ -3405,8 +3404,8 @@ function findOne(test, nodes, recurse = true) {
|
|
|
3405
3404
|
* @returns Whether a tree of nodes contains at least one node passing the test.
|
|
3406
3405
|
*/
|
|
3407
3406
|
function existsOne(test, nodes) {
|
|
3408
|
-
return nodes.some((
|
|
3409
|
-
(
|
|
3407
|
+
return (Array.isArray(nodes) ? nodes : [nodes]).some((node) => (isTag(node) && test(node)) ||
|
|
3408
|
+
(hasChildren(node) && existsOne(test, node.children)));
|
|
3410
3409
|
}
|
|
3411
3410
|
/**
|
|
3412
3411
|
* Search an array of nodes and their children for elements passing a test function.
|
|
@@ -3420,7 +3419,7 @@ function existsOne(test, nodes) {
|
|
|
3420
3419
|
*/
|
|
3421
3420
|
function findAll(test, nodes) {
|
|
3422
3421
|
const result = [];
|
|
3423
|
-
const nodeStack = [nodes];
|
|
3422
|
+
const nodeStack = [Array.isArray(nodes) ? nodes : [nodes]];
|
|
3424
3423
|
const indexStack = [0];
|
|
3425
3424
|
for (;;) {
|
|
3426
3425
|
if (indexStack[0] >= nodeStack[0].length) {
|
|
@@ -3434,11 +3433,9 @@ function findAll(test, nodes) {
|
|
|
3434
3433
|
continue;
|
|
3435
3434
|
}
|
|
3436
3435
|
const elem = nodeStack[0][indexStack[0]++];
|
|
3437
|
-
if (
|
|
3438
|
-
continue;
|
|
3439
|
-
if (test(elem))
|
|
3436
|
+
if (isTag(elem) && test(elem))
|
|
3440
3437
|
result.push(elem);
|
|
3441
|
-
if (elem.children.length > 0) {
|
|
3438
|
+
if (hasChildren(elem) && elem.children.length > 0) {
|
|
3442
3439
|
indexStack.unshift(0);
|
|
3443
3440
|
nodeStack.unshift(elem.children);
|
|
3444
3441
|
}
|
|
@@ -3568,6 +3565,19 @@ function getElementById(id, nodes, recurse = true) {
|
|
|
3568
3565
|
function getElementsByTagName(tagName, nodes, recurse = true, limit = Infinity) {
|
|
3569
3566
|
return filter$1(Checks["tag_name"](tagName), nodes, recurse, limit);
|
|
3570
3567
|
}
|
|
3568
|
+
/**
|
|
3569
|
+
* Returns all nodes with the supplied `className`.
|
|
3570
|
+
*
|
|
3571
|
+
* @category Legacy Query Functions
|
|
3572
|
+
* @param className Class name to search for.
|
|
3573
|
+
* @param nodes Nodes to search through.
|
|
3574
|
+
* @param recurse Also consider child nodes.
|
|
3575
|
+
* @param limit Maximum number of nodes to return.
|
|
3576
|
+
* @returns All nodes with the supplied `className`.
|
|
3577
|
+
*/
|
|
3578
|
+
function getElementsByClassName(className, nodes, recurse = true, limit = Infinity) {
|
|
3579
|
+
return filter$1(getAttribCheck("class", className), nodes, recurse, limit);
|
|
3580
|
+
}
|
|
3571
3581
|
/**
|
|
3572
3582
|
* Returns all nodes with the supplied `type`.
|
|
3573
3583
|
*
|
|
@@ -3935,6 +3945,7 @@ const index = /*#__PURE__*/Object.freeze({
|
|
|
3935
3945
|
getElements: getElements,
|
|
3936
3946
|
getElementById: getElementById,
|
|
3937
3947
|
getElementsByTagName: getElementsByTagName,
|
|
3948
|
+
getElementsByClassName: getElementsByClassName,
|
|
3938
3949
|
getElementsByTagType: getElementsByTagType,
|
|
3939
3950
|
removeSubsets: removeSubsets,
|
|
3940
3951
|
get DocumentPosition () { return DocumentPosition; },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-16bd4237.js";export{s as setNonce}from"./p-16bd4237.js";import{g as n}from"./p-e1255160.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["p-
|
|
1
|
+
import{p as e,b as t}from"./p-16bd4237.js";export{s as setNonce}from"./p-16bd4237.js";import{g as n}from"./p-e1255160.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["p-e9ff209c",[[2,"custom-content-section",{customContent:[1,"custom-content"],repeaterContent:[8,"repeater-content"],navigateViaEvent:[516,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]],["p-f12f5263",[[2,"custom-clock",{clockFormat:[513,"clock-format"],timeZone:[513,"time-zone"],translationUrl:[513,"translation-url"],language:[513],timeString:[32]},null,{translationUrl:["handleNewTranslations"]}]]],["p-076550c8",[[1,"general-footer-template",{language:[513],sections:[513],endpoint:[513],env:[513],userRoles:[513,"user-roles"],userid:[513],session:[513],baseUrl:[513,"base-url"],navigateViaEvent:[513,"navigate-via-event"],postMessageEvent:[513,"post-message-event"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],clockFormat:[513,"clock-format"],timeZone:[513,"time-zone"],mbSource:[513,"mb-source"],hasErrors:[32]}]]],["p-2879096a",[[0,"link-section-list",{repeaterContent:[8,"repeater-content"],baseUrl:[513,"base-url"],language:[513],navigateViaEvent:[4,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]],["p-d7132f51",[[2,"image-list",{repeaterContent:[8,"repeater-content"],navigateViaEvent:[4,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]]],e))));
|