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