@everymatrix/helper-accordion 1.55.0 → 1.56.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/helper-accordion.cjs.entry.js +49 -15
- package/dist/cjs/helper-accordion.cjs.js +2 -2
- package/dist/cjs/{index-a85479d0.js → index-00039b40.js} +171 -70
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/helper-accordion/helper-accordion.js +74 -14
- package/dist/esm/helper-accordion.entry.js +49 -15
- package/dist/esm/helper-accordion.js +3 -3
- package/dist/esm/{index-2246d4ef.js → index-e014805e.js} +171 -70
- package/dist/esm/loader.js +2 -2
- package/dist/helper-accordion/helper-accordion.esm.js +1 -1
- package/dist/helper-accordion/p-b7fe6513.entry.js +1 -0
- package/dist/helper-accordion/p-d73ec3ca.js +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-accordion/.stencil/packages/stencil/helper-accordion/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-accordion/.stencil/packages/stencil/helper-accordion/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/helper-accordion/p-196f82a5.entry.js +0 -1
- package/dist/helper-accordion/p-9f371648.js +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-accordion/.stencil/packages/stencil/helper-accordion/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-accordion/.stencil/packages/stencil/helper-accordion/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-accordion/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-accordion/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-accordion/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-accordion/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -2,33 +2,67 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { translate, getTranslations } from "../../utils/locale.utils";
|
|
3
3
|
export class HelperAccordion {
|
|
4
4
|
constructor() {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
this.stylingContainer.prepend(sheet);
|
|
9
|
-
};
|
|
10
|
-
this.setClientStylingURL = () => {
|
|
11
|
-
let cssFile = document.createElement('style');
|
|
12
|
-
setTimeout(() => {
|
|
13
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
14
|
-
this.stylingContainer.prepend(cssFile);
|
|
15
|
-
}, 1);
|
|
16
|
-
};
|
|
5
|
+
/**
|
|
6
|
+
* Flag for ticket history
|
|
7
|
+
*/
|
|
17
8
|
this.ticketHistoryFlag = false;
|
|
9
|
+
/**
|
|
10
|
+
* Title (top header)
|
|
11
|
+
*/
|
|
18
12
|
this.headerTitle = '';
|
|
13
|
+
/**
|
|
14
|
+
* SubTitle (top header)
|
|
15
|
+
*/
|
|
19
16
|
this.headerSubtitle = '';
|
|
17
|
+
/**
|
|
18
|
+
* Description
|
|
19
|
+
*/
|
|
20
20
|
this.description = '';
|
|
21
|
+
/**
|
|
22
|
+
* Enables footer content
|
|
23
|
+
*/
|
|
21
24
|
this.footer = false;
|
|
25
|
+
/**
|
|
26
|
+
* Enables footer button for tab deletion
|
|
27
|
+
*/
|
|
22
28
|
this.deleteTab = false;
|
|
29
|
+
/**
|
|
30
|
+
* Activates postMessages as events for actions from the widget
|
|
31
|
+
*/
|
|
23
32
|
this.postMessage = false;
|
|
33
|
+
/**
|
|
34
|
+
* Name of the event emitter by the action button
|
|
35
|
+
*/
|
|
24
36
|
this.eventName = 'helperAccordionAction';
|
|
37
|
+
/**
|
|
38
|
+
* Collapsed
|
|
39
|
+
*/
|
|
25
40
|
this.collapsed = true;
|
|
41
|
+
/**
|
|
42
|
+
* Language
|
|
43
|
+
*/
|
|
26
44
|
this.language = 'en';
|
|
45
|
+
/**
|
|
46
|
+
* Client custom styling via string
|
|
47
|
+
*/
|
|
27
48
|
this.clientStyling = '';
|
|
49
|
+
/**
|
|
50
|
+
* Client custom styling via url content
|
|
51
|
+
*/
|
|
28
52
|
this.clientStylingUrlContent = '';
|
|
29
|
-
this.translationUrl = undefined;
|
|
30
|
-
this.showContent = undefined;
|
|
31
53
|
this.limitStylingAppends = false;
|
|
54
|
+
this.setClientStyling = () => {
|
|
55
|
+
let sheet = document.createElement('style');
|
|
56
|
+
sheet.innerHTML = this.clientStyling;
|
|
57
|
+
this.stylingContainer.prepend(sheet);
|
|
58
|
+
};
|
|
59
|
+
this.setClientStylingURL = () => {
|
|
60
|
+
let cssFile = document.createElement('style');
|
|
61
|
+
setTimeout(() => {
|
|
62
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
63
|
+
this.stylingContainer.prepend(cssFile);
|
|
64
|
+
}, 1);
|
|
65
|
+
};
|
|
32
66
|
}
|
|
33
67
|
// @TODO fix the `any` type :)
|
|
34
68
|
connectedCallback() {
|
|
@@ -94,6 +128,8 @@ export class HelperAccordion {
|
|
|
94
128
|
"tags": [],
|
|
95
129
|
"text": "Flag for ticket history"
|
|
96
130
|
},
|
|
131
|
+
"getter": false,
|
|
132
|
+
"setter": false,
|
|
97
133
|
"attribute": "ticket-history-flag",
|
|
98
134
|
"reflect": true,
|
|
99
135
|
"defaultValue": "false"
|
|
@@ -112,6 +148,8 @@ export class HelperAccordion {
|
|
|
112
148
|
"tags": [],
|
|
113
149
|
"text": "Title (top header)"
|
|
114
150
|
},
|
|
151
|
+
"getter": false,
|
|
152
|
+
"setter": false,
|
|
115
153
|
"attribute": "header-title",
|
|
116
154
|
"reflect": true,
|
|
117
155
|
"defaultValue": "''"
|
|
@@ -130,6 +168,8 @@ export class HelperAccordion {
|
|
|
130
168
|
"tags": [],
|
|
131
169
|
"text": "SubTitle (top header)"
|
|
132
170
|
},
|
|
171
|
+
"getter": false,
|
|
172
|
+
"setter": false,
|
|
133
173
|
"attribute": "header-subtitle",
|
|
134
174
|
"reflect": true,
|
|
135
175
|
"defaultValue": "''"
|
|
@@ -148,6 +188,8 @@ export class HelperAccordion {
|
|
|
148
188
|
"tags": [],
|
|
149
189
|
"text": "Description"
|
|
150
190
|
},
|
|
191
|
+
"getter": false,
|
|
192
|
+
"setter": false,
|
|
151
193
|
"attribute": "description",
|
|
152
194
|
"reflect": true,
|
|
153
195
|
"defaultValue": "''"
|
|
@@ -166,6 +208,8 @@ export class HelperAccordion {
|
|
|
166
208
|
"tags": [],
|
|
167
209
|
"text": "Enables footer content"
|
|
168
210
|
},
|
|
211
|
+
"getter": false,
|
|
212
|
+
"setter": false,
|
|
169
213
|
"attribute": "footer",
|
|
170
214
|
"reflect": true,
|
|
171
215
|
"defaultValue": "false"
|
|
@@ -184,6 +228,8 @@ export class HelperAccordion {
|
|
|
184
228
|
"tags": [],
|
|
185
229
|
"text": "Enables footer button for tab deletion"
|
|
186
230
|
},
|
|
231
|
+
"getter": false,
|
|
232
|
+
"setter": false,
|
|
187
233
|
"attribute": "delete-tab",
|
|
188
234
|
"reflect": true,
|
|
189
235
|
"defaultValue": "false"
|
|
@@ -202,6 +248,8 @@ export class HelperAccordion {
|
|
|
202
248
|
"tags": [],
|
|
203
249
|
"text": "Activates postMessages as events for actions from the widget"
|
|
204
250
|
},
|
|
251
|
+
"getter": false,
|
|
252
|
+
"setter": false,
|
|
205
253
|
"attribute": "post-message",
|
|
206
254
|
"reflect": true,
|
|
207
255
|
"defaultValue": "false"
|
|
@@ -220,6 +268,8 @@ export class HelperAccordion {
|
|
|
220
268
|
"tags": [],
|
|
221
269
|
"text": "Name of the event emitter by the action button"
|
|
222
270
|
},
|
|
271
|
+
"getter": false,
|
|
272
|
+
"setter": false,
|
|
223
273
|
"attribute": "event-name",
|
|
224
274
|
"reflect": true,
|
|
225
275
|
"defaultValue": "'helperAccordionAction'"
|
|
@@ -238,6 +288,8 @@ export class HelperAccordion {
|
|
|
238
288
|
"tags": [],
|
|
239
289
|
"text": "Collapsed"
|
|
240
290
|
},
|
|
291
|
+
"getter": false,
|
|
292
|
+
"setter": false,
|
|
241
293
|
"attribute": "collapsed",
|
|
242
294
|
"reflect": true,
|
|
243
295
|
"defaultValue": "true"
|
|
@@ -256,6 +308,8 @@ export class HelperAccordion {
|
|
|
256
308
|
"tags": [],
|
|
257
309
|
"text": "Language"
|
|
258
310
|
},
|
|
311
|
+
"getter": false,
|
|
312
|
+
"setter": false,
|
|
259
313
|
"attribute": "language",
|
|
260
314
|
"reflect": true,
|
|
261
315
|
"defaultValue": "'en'"
|
|
@@ -274,6 +328,8 @@ export class HelperAccordion {
|
|
|
274
328
|
"tags": [],
|
|
275
329
|
"text": "Client custom styling via string"
|
|
276
330
|
},
|
|
331
|
+
"getter": false,
|
|
332
|
+
"setter": false,
|
|
277
333
|
"attribute": "client-styling",
|
|
278
334
|
"reflect": true,
|
|
279
335
|
"defaultValue": "''"
|
|
@@ -292,6 +348,8 @@ export class HelperAccordion {
|
|
|
292
348
|
"tags": [],
|
|
293
349
|
"text": "Client custom styling via url content"
|
|
294
350
|
},
|
|
351
|
+
"getter": false,
|
|
352
|
+
"setter": false,
|
|
295
353
|
"attribute": "client-styling-url-content",
|
|
296
354
|
"reflect": true,
|
|
297
355
|
"defaultValue": "''"
|
|
@@ -310,6 +368,8 @@ export class HelperAccordion {
|
|
|
310
368
|
"tags": [],
|
|
311
369
|
"text": "Translations via parent component"
|
|
312
370
|
},
|
|
371
|
+
"getter": false,
|
|
372
|
+
"setter": false,
|
|
313
373
|
"attribute": "translation-url",
|
|
314
374
|
"reflect": true
|
|
315
375
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-e014805e.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
const SUPPORTED_LANGUAGES = ['ro', 'en', 'hr'];
|
|
@@ -38,33 +38,67 @@ const HelperAccordion = class {
|
|
|
38
38
|
constructor(hostRef) {
|
|
39
39
|
registerInstance(this, hostRef);
|
|
40
40
|
this.accordionEvent = createEvent(this, "helperAccordionAction", 7);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
this.stylingContainer.prepend(sheet);
|
|
45
|
-
};
|
|
46
|
-
this.setClientStylingURL = () => {
|
|
47
|
-
let cssFile = document.createElement('style');
|
|
48
|
-
setTimeout(() => {
|
|
49
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
50
|
-
this.stylingContainer.prepend(cssFile);
|
|
51
|
-
}, 1);
|
|
52
|
-
};
|
|
41
|
+
/**
|
|
42
|
+
* Flag for ticket history
|
|
43
|
+
*/
|
|
53
44
|
this.ticketHistoryFlag = false;
|
|
45
|
+
/**
|
|
46
|
+
* Title (top header)
|
|
47
|
+
*/
|
|
54
48
|
this.headerTitle = '';
|
|
49
|
+
/**
|
|
50
|
+
* SubTitle (top header)
|
|
51
|
+
*/
|
|
55
52
|
this.headerSubtitle = '';
|
|
53
|
+
/**
|
|
54
|
+
* Description
|
|
55
|
+
*/
|
|
56
56
|
this.description = '';
|
|
57
|
+
/**
|
|
58
|
+
* Enables footer content
|
|
59
|
+
*/
|
|
57
60
|
this.footer = false;
|
|
61
|
+
/**
|
|
62
|
+
* Enables footer button for tab deletion
|
|
63
|
+
*/
|
|
58
64
|
this.deleteTab = false;
|
|
65
|
+
/**
|
|
66
|
+
* Activates postMessages as events for actions from the widget
|
|
67
|
+
*/
|
|
59
68
|
this.postMessage = false;
|
|
69
|
+
/**
|
|
70
|
+
* Name of the event emitter by the action button
|
|
71
|
+
*/
|
|
60
72
|
this.eventName = 'helperAccordionAction';
|
|
73
|
+
/**
|
|
74
|
+
* Collapsed
|
|
75
|
+
*/
|
|
61
76
|
this.collapsed = true;
|
|
77
|
+
/**
|
|
78
|
+
* Language
|
|
79
|
+
*/
|
|
62
80
|
this.language = 'en';
|
|
81
|
+
/**
|
|
82
|
+
* Client custom styling via string
|
|
83
|
+
*/
|
|
63
84
|
this.clientStyling = '';
|
|
85
|
+
/**
|
|
86
|
+
* Client custom styling via url content
|
|
87
|
+
*/
|
|
64
88
|
this.clientStylingUrlContent = '';
|
|
65
|
-
this.translationUrl = undefined;
|
|
66
|
-
this.showContent = undefined;
|
|
67
89
|
this.limitStylingAppends = false;
|
|
90
|
+
this.setClientStyling = () => {
|
|
91
|
+
let sheet = document.createElement('style');
|
|
92
|
+
sheet.innerHTML = this.clientStyling;
|
|
93
|
+
this.stylingContainer.prepend(sheet);
|
|
94
|
+
};
|
|
95
|
+
this.setClientStylingURL = () => {
|
|
96
|
+
let cssFile = document.createElement('style');
|
|
97
|
+
setTimeout(() => {
|
|
98
|
+
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
99
|
+
this.stylingContainer.prepend(cssFile);
|
|
100
|
+
}, 1);
|
|
101
|
+
};
|
|
68
102
|
}
|
|
69
103
|
// @TODO fix the `any` type :)
|
|
70
104
|
connectedCallback() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-e014805e.js';
|
|
2
|
+
export { s as setNonce } from './index-e014805e.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|