@everymatrix/helper-accordion 1.77.25 → 1.77.26
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/helper-accordion.cjs.entry.js +96 -32
- package/dist/cjs/helper-accordion.cjs.js +2 -2
- package/dist/cjs/{index-bf959871.js → index-46debeee.js} +38 -7
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/helper-accordion/helper-accordion.css +18 -18
- package/dist/collection/components/helper-accordion/helper-accordion.js +97 -68
- package/dist/esm/helper-accordion.entry.js +96 -32
- package/dist/esm/helper-accordion.js +3 -3
- package/dist/esm/{index-08b29256.js → index-d6f3c92e.js} +38 -7
- package/dist/esm/loader.js +3 -3
- package/dist/helper-accordion/helper-accordion.entry.js +1 -1
- package/dist/helper-accordion/helper-accordion.esm.js +1 -1
- package/dist/helper-accordion/index-d6f3c92e.js +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/helper-accordion/.stencil/packages/stencil/helper-accordion/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/helper-accordion/.stencil/packages/stencil/helper-accordion/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/helper-accordion/helper-accordion.d.ts +20 -14
- package/dist/types/components.d.ts +12 -4
- package/package.json +1 -1
- package/dist/helper-accordion/index-08b29256.js +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/helper-accordion/.stencil/packages/stencil/helper-accordion/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/helper-accordion/.stencil/packages/stencil/helper-accordion/stencil.config.dev.d.ts +0 -2
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/helper-accordion/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/helper-accordion/.stencil/packages/stencil/helper-accordion/storybook/main.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/helper-accordion/.stencil/packages/stencil/helper-accordion/storybook/preview.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/helper-accordion/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/helper-accordion/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/helper-accordion/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/helper-accordion/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/helper-accordion/.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-46debeee.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'en';
|
|
8
8
|
const SUPPORTED_LANGUAGES = ['ro', 'en', 'hr'];
|
|
@@ -35,25 +35,73 @@ const getTranslations = (data) => {
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
/**
|
|
39
|
+
* @name setClientStyling
|
|
40
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content received
|
|
41
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
42
|
+
* @param {string} clientStyling The style content
|
|
43
|
+
*/
|
|
44
|
+
function setClientStyling(stylingContainer, clientStyling) {
|
|
45
|
+
if (stylingContainer) {
|
|
46
|
+
const sheet = document.createElement('style');
|
|
47
|
+
sheet.innerHTML = clientStyling;
|
|
48
|
+
stylingContainer.appendChild(sheet);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @name setClientStylingURL
|
|
54
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content fetched from a given URL
|
|
55
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
56
|
+
* @param {string} clientStylingUrl The URL of the style content
|
|
57
|
+
*/
|
|
58
|
+
function setClientStylingURL(stylingContainer, clientStylingUrl) {
|
|
59
|
+
const url = new URL(clientStylingUrl);
|
|
60
|
+
|
|
61
|
+
fetch(url.href)
|
|
62
|
+
.then((res) => res.text())
|
|
63
|
+
.then((data) => {
|
|
64
|
+
const cssFile = document.createElement('style');
|
|
65
|
+
cssFile.innerHTML = data;
|
|
66
|
+
if (stylingContainer) {
|
|
67
|
+
stylingContainer.appendChild(cssFile);
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
.catch((err) => {
|
|
71
|
+
console.error('There was an error while trying to load client styling from URL', err);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @name setStreamLibrary
|
|
77
|
+
* @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
|
|
78
|
+
* @param {HTMLElement} stylingContainer The highest element of the widget
|
|
79
|
+
* @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
|
|
80
|
+
* @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
|
|
81
|
+
*/
|
|
82
|
+
function setStreamStyling(stylingContainer, domain, subscription) {
|
|
83
|
+
if (window.emMessageBus) {
|
|
84
|
+
const sheet = document.createElement('style');
|
|
85
|
+
|
|
86
|
+
window.emMessageBus.subscribe(domain, (data) => {
|
|
87
|
+
sheet.innerHTML = data;
|
|
88
|
+
if (stylingContainer) {
|
|
89
|
+
stylingContainer.appendChild(sheet);
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const helperAccordionCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.Header{border-radius:5px;background:var(--emw--color-primary, #009993);display:flex;gap:30px;border:1px solid var(--emw--color-primary, #009993);padding:8px 10px;user-select:none;margin-bottom:1px;cursor:pointer}.Header:hover{background:var(--emw--color-secondary, #00aba4)}.Header .Title,.Header .Subtitle,.Header .Description{margin:0;font-size:14px;color:var(--emw--color-typography-inverse, rgb(255, 255, 255));text-transform:capitalize}.Header .Expand{margin-left:auto;color:var(--emw--color-typography-inverse, rgb(255, 255, 255));width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.HeaderTicketHistory{border-radius:4px;background:var(--emw--color-background, #fff);display:flex;gap:30px;border:1px solid var(--emw--color-primary, #009993);padding:8px 10px;user-select:none;margin-bottom:5px;cursor:pointer}.HeaderTicketHistory:hover{background:var(--emw--color-secondary, #00aba4)}.HeaderTicketHistory .Title,.HeaderTicketHistory .Subtitle,.HeaderTicketHistory .Description{margin:0;font-size:14px;color:var(--emw--color-typography, #000)}.HeaderTicketHistory .Expand{margin-left:auto;color:var(--emw--color-typography-inverse, rgb(255, 255, 255));width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.Content{border-radius:0 0 4px 4px;background:var(--emw--color-background, #fff);border:1px solid var(--emw--color-primary, #009993);padding:10px 15px;user-select:none;color:var(--emw--color-typography, #000);margin-bottom:10px}.ActionButton{cursor:pointer;display:inline-block;border-radius:var(--emw--button-border-radius, 4px);margin:20px 0 10px;text-transform:uppercase;font-size:12px;text-align:center;padding:8px 20px;min-width:80px;background:var(--emw--color-error, #ff3d00);border:1px solid var(--emw--color-error, #ff3d00);color:var(--emw--color-background, #fff)}.ActionButton:hover{background:var(--emw--color-secondary, #ff6536);border:1px solid var(--emw--color-error, #ff3d00)}";
|
|
39
96
|
const HelperAccordionStyle0 = helperAccordionCss;
|
|
40
97
|
|
|
41
98
|
const HelperAccordion = class {
|
|
42
99
|
constructor(hostRef) {
|
|
43
100
|
index.registerInstance(this, hostRef);
|
|
44
101
|
this.accordionEvent = index.createEvent(this, "helperAccordionAction", 7);
|
|
45
|
-
this.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
this.stylingContainer.prepend(sheet);
|
|
49
|
-
};
|
|
50
|
-
this.setClientStylingURL = () => {
|
|
51
|
-
let cssFile = document.createElement('style');
|
|
52
|
-
setTimeout(() => {
|
|
53
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
54
|
-
this.stylingContainer.prepend(cssFile);
|
|
55
|
-
}, 1);
|
|
56
|
-
};
|
|
102
|
+
this.mbSource = undefined;
|
|
103
|
+
this.clientStyling = undefined;
|
|
104
|
+
this.clientStylingUrl = undefined;
|
|
57
105
|
this.ticketHistoryFlag = false;
|
|
58
106
|
this.headerTitle = '';
|
|
59
107
|
this.headerSubtitle = '';
|
|
@@ -64,13 +112,38 @@ const HelperAccordion = class {
|
|
|
64
112
|
this.eventName = 'helperAccordionAction';
|
|
65
113
|
this.collapsed = true;
|
|
66
114
|
this.language = 'en';
|
|
67
|
-
this.clientStyling = '';
|
|
68
|
-
this.clientStylingUrlContent = '';
|
|
69
115
|
this.translationUrl = undefined;
|
|
70
116
|
this.showContent = undefined;
|
|
71
|
-
this.limitStylingAppends = false;
|
|
72
117
|
}
|
|
73
118
|
// @TODO fix the `any` type :)
|
|
119
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
120
|
+
if (newValue != oldValue) {
|
|
121
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
handleClientStylingUrlChange(newValue, oldValue) {
|
|
125
|
+
if (newValue != oldValue) {
|
|
126
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
handleMbSourceChange(newValue, oldValue) {
|
|
130
|
+
if (newValue != oldValue) {
|
|
131
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
componentDidLoad() {
|
|
135
|
+
if (this.stylingContainer) {
|
|
136
|
+
if (this.mbSource)
|
|
137
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
|
|
138
|
+
if (this.clientStyling)
|
|
139
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
140
|
+
if (this.clientStylingUrl)
|
|
141
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
disconnectedCallback() {
|
|
145
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
146
|
+
}
|
|
74
147
|
connectedCallback() {
|
|
75
148
|
this.showContent = !this.collapsed;
|
|
76
149
|
}
|
|
@@ -79,17 +152,6 @@ const HelperAccordion = class {
|
|
|
79
152
|
getTranslations(JSON.parse(this.translationUrl));
|
|
80
153
|
}
|
|
81
154
|
}
|
|
82
|
-
componentDidRender() {
|
|
83
|
-
// start custom styling area
|
|
84
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
85
|
-
if (this.clientStyling)
|
|
86
|
-
this.setClientStyling();
|
|
87
|
-
if (this.clientStylingUrlContent)
|
|
88
|
-
this.setClientStylingURL();
|
|
89
|
-
this.limitStylingAppends = true;
|
|
90
|
-
}
|
|
91
|
-
// end custom styling area
|
|
92
|
-
}
|
|
93
155
|
toggleContent() {
|
|
94
156
|
this.showContent = !this.showContent;
|
|
95
157
|
}
|
|
@@ -101,11 +163,13 @@ const HelperAccordion = class {
|
|
|
101
163
|
this.accordionEvent.emit();
|
|
102
164
|
}
|
|
103
165
|
render() {
|
|
104
|
-
return (index.h("div", { key: '
|
|
105
|
-
index.h("div", { key: 'ba970b8947e1986aedbdfd37b044e05f2b1c29fc' }, index.h("div", { key: '7cfc0ca2b99d76d7647569f7105c29d1be8cf994', class: "Content" }, index.h("slot", { key: 'a2d866a914d33eac26b3b7e138e611be9f942c65', name: 'accordionContent' }), this.footer && this.showContent &&
|
|
106
|
-
index.h("div", { key: 'c44d54e98f712c921e7dd16faaaaa7cfb92e17c4' }, this.deleteTab &&
|
|
107
|
-
index.h("span", { key: '8c46aa94fcce959f370d07da69bd58509c143373', class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
|
|
166
|
+
return (index.h("div", { key: '58cd507e7d1dc8de1e3b049936a2d6acb355e83d', class: "Wrapper", ref: (el) => (this.stylingContainer = el) }, index.h("div", { key: '70c6453ca4c4d40738edb1ae7e91f8954eebd3eb', class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header', onClick: () => this.toggleContent() }, index.h("p", { key: 'cf543e01c0baa833bea27aa4effb19734e234ed1', class: "Title" }, this.headerTitle), index.h("p", { key: '365a05cabda273796e9d9689e514566ecc2aadcc', class: "Subtitle" }, this.headerSubtitle), index.h("p", { key: 'f30680b6c9d2d65fdb607a7293d6ce4b56c6b20f', class: "Subtitle Description" }, this.description), index.h("span", { key: 'a47718e90743d53b31968f67b002a3e427e193bc', class: "Expand" }, this.showContent ? '<' : '>')), this.showContent && (index.h("div", { key: 'bb34d51602f9397c427d79141a38aca7a64bf206' }, index.h("div", { key: '64171a30185b88bbafaa4ea555aeb9e2e33c46d6', class: "Content" }, index.h("slot", { key: '6def0d44f3881196255f3329184053fb3d5a3cfd', name: "accordionContent" }), this.footer && this.showContent && (index.h("div", { key: '08bfb5b017055788ba55b149e3bee23964f11ccf' }, this.deleteTab && (index.h("span", { key: 'b7b03fc6329a37841a2cf2b6a34780349341a0d5', class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language))))))))));
|
|
108
167
|
}
|
|
168
|
+
static get watchers() { return {
|
|
169
|
+
"clientStyling": ["handleClientStylingChange"],
|
|
170
|
+
"clientStylingUrl": ["handleClientStylingUrlChange"],
|
|
171
|
+
"mbSource": ["handleMbSourceChange"]
|
|
172
|
+
}; }
|
|
109
173
|
};
|
|
110
174
|
HelperAccordion.style = HelperAccordionStyle0;
|
|
111
175
|
|
|
@@ -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-46debeee.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["helper-accordion.cjs",[[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"
|
|
22
|
+
return index.bootstrapLazy([["helper-accordion.cjs",[[1,"helper-accordion",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"translationUrl":[520,"translation-url"],"showContent":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'helper-accordion';
|
|
24
|
-
const BUILD = /* helper-accordion */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad:
|
|
24
|
+
const BUILD = /* helper-accordion */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
27
|
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -806,14 +806,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
806
806
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
807
807
|
const instance = hostRef.$lazyInstance$ ;
|
|
808
808
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
809
|
-
{
|
|
810
|
-
safeCall(instance, "componentDidRender");
|
|
811
|
-
}
|
|
812
809
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
813
810
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
814
811
|
{
|
|
815
812
|
addHydratedFlag(elm);
|
|
816
813
|
}
|
|
814
|
+
{
|
|
815
|
+
safeCall(instance, "componentDidLoad");
|
|
816
|
+
}
|
|
817
817
|
endPostUpdate();
|
|
818
818
|
{
|
|
819
819
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -865,6 +865,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
865
865
|
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
|
|
866
866
|
);
|
|
867
867
|
}
|
|
868
|
+
const elm = hostRef.$hostElement$ ;
|
|
868
869
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
869
870
|
const flags = hostRef.$flags$;
|
|
870
871
|
const instance = hostRef.$lazyInstance$ ;
|
|
@@ -874,6 +875,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
874
875
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
875
876
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
876
877
|
if (instance) {
|
|
878
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
879
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
880
|
+
if (watchMethods) {
|
|
881
|
+
watchMethods.map((watchMethodName) => {
|
|
882
|
+
try {
|
|
883
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
884
|
+
} catch (e) {
|
|
885
|
+
consoleError(e, elm);
|
|
886
|
+
}
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
}
|
|
877
890
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
878
891
|
scheduleUpdate(hostRef, false);
|
|
879
892
|
}
|
|
@@ -885,7 +898,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
885
898
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
886
899
|
var _a, _b;
|
|
887
900
|
const prototype = Cstr.prototype;
|
|
888
|
-
if (cmpMeta.$members$ ||
|
|
901
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
902
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
903
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
904
|
+
}
|
|
889
905
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
890
906
|
members.map(([memberName, [memberFlags]]) => {
|
|
891
907
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
@@ -967,6 +983,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
967
983
|
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
968
984
|
}
|
|
969
985
|
if (!Cstr.isProxied) {
|
|
986
|
+
{
|
|
987
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
988
|
+
}
|
|
970
989
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
971
990
|
Cstr.isProxied = true;
|
|
972
991
|
}
|
|
@@ -982,6 +1001,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
982
1001
|
{
|
|
983
1002
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
984
1003
|
}
|
|
1004
|
+
{
|
|
1005
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1006
|
+
}
|
|
985
1007
|
endNewInstance();
|
|
986
1008
|
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
987
1009
|
} else {
|
|
@@ -1056,12 +1078,17 @@ var connectedCallback = (elm) => {
|
|
|
1056
1078
|
}
|
|
1057
1079
|
};
|
|
1058
1080
|
var disconnectInstance = (instance) => {
|
|
1081
|
+
{
|
|
1082
|
+
safeCall(instance, "disconnectedCallback");
|
|
1083
|
+
}
|
|
1059
1084
|
};
|
|
1060
1085
|
var disconnectedCallback = async (elm) => {
|
|
1061
1086
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1062
1087
|
const hostRef = getHostRef(elm);
|
|
1063
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1064
|
-
hostRef.$
|
|
1088
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1089
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1090
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1091
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1065
1092
|
}
|
|
1066
1093
|
}
|
|
1067
1094
|
};
|
|
@@ -1084,6 +1111,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1084
1111
|
let hasSlotRelocation = false;
|
|
1085
1112
|
lazyBundles.map((lazyBundle) => {
|
|
1086
1113
|
lazyBundle[1].map((compactMeta) => {
|
|
1114
|
+
var _a2;
|
|
1087
1115
|
const cmpMeta = {
|
|
1088
1116
|
$flags$: compactMeta[0],
|
|
1089
1117
|
$tagName$: compactMeta[1],
|
|
@@ -1099,6 +1127,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1099
1127
|
{
|
|
1100
1128
|
cmpMeta.$attrsToReflect$ = [];
|
|
1101
1129
|
}
|
|
1130
|
+
{
|
|
1131
|
+
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
1132
|
+
}
|
|
1102
1133
|
const tagName = cmpMeta.$tagName$;
|
|
1103
1134
|
const HostElement = class extends HTMLElement {
|
|
1104
1135
|
// StencilLazyHost
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-46debeee.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["helper-accordion.cjs",[[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"
|
|
11
|
+
return index.bootstrapLazy([["helper-accordion.cjs",[[1,"helper-accordion",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"translationUrl":[520,"translation-url"],"showContent":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -6,29 +6,29 @@
|
|
|
6
6
|
|
|
7
7
|
.Header {
|
|
8
8
|
border-radius: 5px;
|
|
9
|
-
background: var(--emw--color-
|
|
9
|
+
background: var(--emw--color-primary, #009993);
|
|
10
10
|
display: flex;
|
|
11
11
|
gap: 30px;
|
|
12
|
-
border: 1px solid var(--emw--color-
|
|
12
|
+
border: 1px solid var(--emw--color-primary, #009993);
|
|
13
13
|
padding: 8px 10px;
|
|
14
14
|
user-select: none;
|
|
15
15
|
margin-bottom: 1px;
|
|
16
16
|
cursor: pointer;
|
|
17
17
|
}
|
|
18
18
|
.Header:hover {
|
|
19
|
-
background: var(--emw--color-
|
|
19
|
+
background: var(--emw--color-secondary, #00aba4);
|
|
20
20
|
}
|
|
21
21
|
.Header .Title,
|
|
22
22
|
.Header .Subtitle,
|
|
23
23
|
.Header .Description {
|
|
24
24
|
margin: 0;
|
|
25
25
|
font-size: 14px;
|
|
26
|
-
color: var(--emw--color-
|
|
26
|
+
color: var(--emw--color-typography-inverse, rgb(255, 255, 255));
|
|
27
27
|
text-transform: capitalize;
|
|
28
28
|
}
|
|
29
29
|
.Header .Expand {
|
|
30
30
|
margin-left: auto;
|
|
31
|
-
color: var(--emw--color-
|
|
31
|
+
color: var(--emw--color-typography-inverse, rgb(255, 255, 255));
|
|
32
32
|
width: 17px;
|
|
33
33
|
height: 17px;
|
|
34
34
|
cursor: pointer;
|
|
@@ -40,28 +40,28 @@
|
|
|
40
40
|
|
|
41
41
|
.HeaderTicketHistory {
|
|
42
42
|
border-radius: 4px;
|
|
43
|
-
background: var(--emw--color-
|
|
43
|
+
background: var(--emw--color-background, #fff);
|
|
44
44
|
display: flex;
|
|
45
45
|
gap: 30px;
|
|
46
|
-
border: 1px solid var(--emw--color-
|
|
46
|
+
border: 1px solid var(--emw--color-primary, #009993);
|
|
47
47
|
padding: 8px 10px;
|
|
48
48
|
user-select: none;
|
|
49
49
|
margin-bottom: 5px;
|
|
50
50
|
cursor: pointer;
|
|
51
51
|
}
|
|
52
52
|
.HeaderTicketHistory:hover {
|
|
53
|
-
background: var(--emw--color-secondary, #
|
|
53
|
+
background: var(--emw--color-secondary, #00aba4);
|
|
54
54
|
}
|
|
55
55
|
.HeaderTicketHistory .Title,
|
|
56
56
|
.HeaderTicketHistory .Subtitle,
|
|
57
57
|
.HeaderTicketHistory .Description {
|
|
58
58
|
margin: 0;
|
|
59
59
|
font-size: 14px;
|
|
60
|
-
color: var(--emw--
|
|
60
|
+
color: var(--emw--color-typography, #000);
|
|
61
61
|
}
|
|
62
62
|
.HeaderTicketHistory .Expand {
|
|
63
63
|
margin-left: auto;
|
|
64
|
-
color: var(--emw--color-
|
|
64
|
+
color: var(--emw--color-typography-inverse, rgb(255, 255, 255));
|
|
65
65
|
width: 17px;
|
|
66
66
|
height: 17px;
|
|
67
67
|
cursor: pointer;
|
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
|
|
74
74
|
.Content {
|
|
75
75
|
border-radius: 0 0 4px 4px;
|
|
76
|
-
background: var(--emw--color-
|
|
77
|
-
border: 1px solid var(--emw--
|
|
76
|
+
background: var(--emw--color-background, #fff);
|
|
77
|
+
border: 1px solid var(--emw--color-primary, #009993);
|
|
78
78
|
padding: 10px 15px;
|
|
79
79
|
user-select: none;
|
|
80
|
-
color: var(--emw--
|
|
80
|
+
color: var(--emw--color-typography, #000);
|
|
81
81
|
margin-bottom: 10px;
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -91,11 +91,11 @@
|
|
|
91
91
|
text-align: center;
|
|
92
92
|
padding: 8px 20px;
|
|
93
93
|
min-width: 80px;
|
|
94
|
-
background: var(--emw--color-error, #
|
|
95
|
-
border: 1px solid var(--emw--color-error, #
|
|
96
|
-
color: var(--emw--color-
|
|
94
|
+
background: var(--emw--color-error, #ff3d00);
|
|
95
|
+
border: 1px solid var(--emw--color-error, #ff3d00);
|
|
96
|
+
color: var(--emw--color-background, #fff);
|
|
97
97
|
}
|
|
98
98
|
.ActionButton:hover {
|
|
99
|
-
background: var(--emw--color-secondary, #
|
|
100
|
-
border: 1px solid var(--emw--color-error, #
|
|
99
|
+
background: var(--emw--color-secondary, #ff6536);
|
|
100
|
+
border: 1px solid var(--emw--color-error, #ff3d00);
|
|
101
101
|
}
|