@maggioli-design-system/mds-accordion-timer 3.0.0 → 3.2.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 (73) hide show
  1. package/dist/cjs/{index-d958b818.js → index-b99075ba.js} +0 -8
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/mds-accordion-timer.cjs.entry.js +24 -24
  4. package/dist/cjs/mds-accordion-timer.cjs.js +2 -2
  5. package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +31 -31
  6. package/dist/collection/components/mds-accordion-timer/test/mds-accordion-timer.stories.js +1 -1
  7. package/dist/components/mds-accordion-timer.js +24 -24
  8. package/dist/esm/{index-22b73a3a.js → index-bd689d6a.js} +0 -8
  9. package/dist/esm/loader.js +3 -3
  10. package/dist/esm/mds-accordion-timer.entry.js +24 -24
  11. package/dist/esm/mds-accordion-timer.js +3 -3
  12. package/dist/esm-es5/{index-22b73a3a.js → index-bd689d6a.js} +1 -1
  13. package/dist/esm-es5/loader.js +1 -1
  14. package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
  15. package/dist/esm-es5/mds-accordion-timer.js +1 -1
  16. package/dist/mds-accordion-timer/mds-accordion-timer.esm.js +1 -1
  17. package/dist/mds-accordion-timer/mds-accordion-timer.js +1 -1
  18. package/dist/mds-accordion-timer/p-2bfbd758.system.entry.js +1 -0
  19. package/dist/mds-accordion-timer/p-4620ac30.system.js +1 -0
  20. package/dist/mds-accordion-timer/{p-3face4e0.system.js → p-5029b85d.system.js} +2 -2
  21. package/dist/mds-accordion-timer/p-8d875f1d.entry.js +1 -0
  22. package/dist/mds-accordion-timer/p-a7b74010.js +2 -0
  23. package/dist/stats.json +66 -66
  24. package/dist/types/components/mds-accordion-timer/mds-accordion-timer.d.ts +6 -7
  25. package/dist/types/components.d.ts +1 -1
  26. package/package.json +2 -2
  27. package/readme.md +3 -3
  28. package/src/components/mds-accordion-timer/mds-accordion-timer.tsx +29 -29
  29. package/src/components/mds-accordion-timer/readme.md +3 -3
  30. package/src/components/mds-accordion-timer/test/mds-accordion-timer.stories.tsx +1 -1
  31. package/src/components.d.ts +1 -1
  32. package/www/build/mds-accordion-timer.esm.js +1 -1
  33. package/www/build/mds-accordion-timer.js +1 -1
  34. package/www/build/p-2bfbd758.system.entry.js +1 -0
  35. package/www/build/p-4620ac30.system.js +1 -0
  36. package/www/build/{p-3face4e0.system.js → p-5029b85d.system.js} +2 -2
  37. package/www/build/p-8d875f1d.entry.js +1 -0
  38. package/www/build/p-a7b74010.js +2 -0
  39. package/dist/mds-accordion-timer/p-118bf4e5.system.entry.js +0 -1
  40. package/dist/mds-accordion-timer/p-9084d19f.js +0 -2
  41. package/dist/mds-accordion-timer/p-c6d75694.system.js +0 -1
  42. package/dist/mds-accordion-timer/p-f44da2be.entry.js +0 -1
  43. package/www/build/p-118bf4e5.system.entry.js +0 -1
  44. package/www/build/p-9084d19f.js +0 -2
  45. package/www/build/p-c6d75694.system.js +0 -1
  46. package/www/build/p-f44da2be.entry.js +0 -1
  47. /package/dist/collection/{types → type}/autocomplete.js +0 -0
  48. /package/dist/collection/{types → type}/button.js +0 -0
  49. /package/dist/collection/{types → type}/floating-ui.js +0 -0
  50. /package/dist/collection/{types → type}/form-rel.js +0 -0
  51. /package/dist/collection/{types → type}/input-text-type.js +0 -0
  52. /package/dist/collection/{types → type}/input-value-type.js +0 -0
  53. /package/dist/collection/{types → type}/loading.js +0 -0
  54. /package/dist/collection/{types → type}/typography.js +0 -0
  55. /package/dist/collection/{types → type}/variant.js +0 -0
  56. /package/dist/types/{types → type}/autocomplete.d.ts +0 -0
  57. /package/dist/types/{types → type}/button.d.ts +0 -0
  58. /package/dist/types/{types → type}/floating-ui.d.ts +0 -0
  59. /package/dist/types/{types → type}/form-rel.d.ts +0 -0
  60. /package/dist/types/{types → type}/input-text-type.d.ts +0 -0
  61. /package/dist/types/{types → type}/input-value-type.d.ts +0 -0
  62. /package/dist/types/{types → type}/loading.d.ts +0 -0
  63. /package/dist/types/{types → type}/typography.d.ts +0 -0
  64. /package/dist/types/{types → type}/variant.d.ts +0 -0
  65. /package/src/{types → type}/autocomplete.ts +0 -0
  66. /package/src/{types → type}/button.ts +0 -0
  67. /package/src/{types → type}/floating-ui.ts +0 -0
  68. /package/src/{types → type}/form-rel.ts +0 -0
  69. /package/src/{types → type}/input-text-type.ts +0 -0
  70. /package/src/{types → type}/input-value-type.ts +0 -0
  71. /package/src/{types → type}/loading.ts +0 -0
  72. /package/src/{types → type}/typography.ts +0 -0
  73. /package/src/{types → type}/variant.ts +0 -0
@@ -947,7 +947,6 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
947
947
  hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
948
948
  }
949
949
  endNewInstance();
950
- fireConnectedCallback(hostRef.$lazyInstance$);
951
950
  }
952
951
  if (Cstr.style) {
953
952
  // this component has styles but we haven't registered them yet
@@ -976,11 +975,6 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
976
975
  schedule();
977
976
  }
978
977
  };
979
- const fireConnectedCallback = (instance) => {
980
- {
981
- safeCall(instance, 'connectedCallback');
982
- }
983
- };
984
978
  const connectedCallback = (elm) => {
985
979
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
986
980
  const hostRef = getHostRef(elm);
@@ -1024,8 +1018,6 @@ const connectedCallback = (elm) => {
1024
1018
  // reattach any event listeners to the host
1025
1019
  // since they would have been removed when disconnected
1026
1020
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1027
- // fire off connectedCallback() on component instance
1028
- fireConnectedCallback(hostRef.$lazyInstance$);
1029
1021
  }
1030
1022
  endConnected();
1031
1023
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d958b818.js');
5
+ const index = require('./index-b99075ba.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Esm v2.22.2 | MIT Licensed | https://stenciljs.com
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["mds-accordion-timer.cjs",[[1,"mds-accordion-timer",{"duration":[2],"time":[32]},[[0,"activeClicked","onClickActive"],[0,"activeMouseEnter","onMouseEnterActive"],[0,"activeMouseLeave","onMouseLeaveActive"]]]]]], options);
17
+ return index.bootstrapLazy([["mds-accordion-timer.cjs",[[1,"mds-accordion-timer",{"duration":[2],"time":[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickActive"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]]]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -2,14 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d958b818.js');
5
+ const index = require('./index-b99075ba.js');
6
6
 
7
7
  const mdsAccordionTimerCss = ":host{display:block}";
8
8
 
9
9
  const MdsAccordionTimer = class {
10
10
  constructor(hostRef) {
11
11
  index.registerInstance(this, hostRef);
12
- this.itemActivated = index.createEvent(this, "itemActivated", 7);
12
+ this.changeEvent = index.createEvent(this, "mdsAccordionTimerChange", 7);
13
13
  this.clearIntervals = () => {
14
14
  window.clearInterval(this.timer);
15
15
  window.clearInterval(this.timeChecker);
@@ -22,11 +22,11 @@ const MdsAccordionTimer = class {
22
22
  this.addTimeListener = () => {
23
23
  this.timeChecker = window.setInterval(() => {
24
24
  const progress = this.progress();
25
- if (this.activeItem !== undefined) {
26
- this.activeItem.progress = progress;
25
+ if (this.selectedItem !== undefined) {
26
+ this.selectedItem.progress = progress;
27
27
  }
28
28
  if (progress === 1) {
29
- this.activeItem.progress = 0;
29
+ this.selectedItem.progress = 0;
30
30
  this.startNext();
31
31
  }
32
32
  }, 100);
@@ -36,30 +36,30 @@ const MdsAccordionTimer = class {
36
36
  return this.timeStarted;
37
37
  };
38
38
  this.remainingTime = () => {
39
- const remainingTime = this.activeItemDurationTime - ((new Date()).getTime() - this.timeStarted);
39
+ const remainingTime = this.selectedItemDurationTime - ((new Date()).getTime() - this.timeStarted);
40
40
  return remainingTime >= 0 ? remainingTime : 0;
41
41
  };
42
- this.setActiveItem = (uuid) => {
42
+ this.setSelectedItem = (uuid) => {
43
43
  this.children.forEach((item, key) => {
44
44
  if (key === uuid) {
45
- item.active = true;
46
- this.activeItem = item;
47
- this.itemActivated.emit(uuid);
45
+ item.selected = true;
46
+ this.selectedItem = item;
47
+ this.changeEvent.emit();
48
48
  }
49
49
  else {
50
- item.active = false;
50
+ item.selected = false;
51
51
  }
52
52
  });
53
53
  };
54
54
  this.startNext = () => {
55
- const nextUuid = this.activeItem.uuid + 1 > this.children.length - 1 ? 0 : this.activeItem.uuid + 1;
56
- this.setActiveItem(nextUuid);
55
+ const nextUuid = this.selectedItem.uuid + 1 > this.children.length - 1 ? 0 : this.selectedItem.uuid + 1;
56
+ this.setSelectedItem(nextUuid);
57
57
  this.startTimer();
58
58
  };
59
59
  this.startTimer = () => {
60
60
  this.clearIntervals();
61
61
  this.time = this.beginningTime();
62
- this.activeItemDurationTime = this.duration;
62
+ this.selectedItemDurationTime = this.duration;
63
63
  this.addTimeListener();
64
64
  };
65
65
  this.playTimer = () => {
@@ -68,7 +68,7 @@ const MdsAccordionTimer = class {
68
68
  };
69
69
  this.pauseTimer = () => {
70
70
  this.clearIntervals();
71
- this.activeItemDurationTime = this.remainingTime();
71
+ this.selectedItemDurationTime = this.remainingTime();
72
72
  };
73
73
  this.stopTimer = () => {
74
74
  this.clearIntervals();
@@ -81,20 +81,20 @@ const MdsAccordionTimer = class {
81
81
  this.children = this.element.querySelectorAll('mds-accordion-timer-item');
82
82
  this.children.forEach((item, key) => {
83
83
  item.uuid = key;
84
- if (item.active) {
85
- this.activeItem = item;
84
+ if (item.selected) {
85
+ this.selectedItem = item;
86
86
  }
87
87
  });
88
- }
89
- connectedCallback() {
90
- this.startTimer();
88
+ if (this.selectedItem !== undefined) {
89
+ this.startTimer();
90
+ }
91
91
  }
92
92
  disconnectedCallback() {
93
93
  this.stopTimer();
94
94
  this.clearIntervals();
95
95
  }
96
96
  onClickActive(event) {
97
- if (event.detail === this.activeItem.description) {
97
+ if (this.selectedItem && event.detail === this.selectedItem.description) {
98
98
  return;
99
99
  }
100
100
  let selectedUuid;
@@ -104,14 +104,14 @@ const MdsAccordionTimer = class {
104
104
  selectedUuid = item.uuid;
105
105
  }
106
106
  });
107
- this.setActiveItem(selectedUuid);
107
+ this.setSelectedItem(selectedUuid);
108
108
  this.startTimer();
109
109
  this.pauseTimer();
110
110
  }
111
- onMouseEnterActive() {
111
+ onMouseEnterSelect() {
112
112
  this.pauseTimer();
113
113
  }
114
- onMouseLeaveActive() {
114
+ onMouseLeaveSelect() {
115
115
  if (this.timeChecker === null) {
116
116
  this.playTimer();
117
117
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d958b818.js');
5
+ const index = require('./index-b99075ba.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Browser v2.22.2 | MIT Licensed | https://stenciljs.com
@@ -17,7 +17,7 @@ const patchBrowser = () => {
17
17
  };
18
18
 
19
19
  patchBrowser().then(options => {
20
- return index.bootstrapLazy([["mds-accordion-timer.cjs",[[1,"mds-accordion-timer",{"duration":[2],"time":[32]},[[0,"activeClicked","onClickActive"],[0,"activeMouseEnter","onMouseEnterActive"],[0,"activeMouseLeave","onMouseLeaveActive"]]]]]], options);
20
+ return index.bootstrapLazy([["mds-accordion-timer.cjs",[[1,"mds-accordion-timer",{"duration":[2],"time":[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickActive"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]]]]]], options);
21
21
  });
22
22
 
23
23
  exports.setNonce = index.setNonce;
@@ -13,11 +13,11 @@ export class MdsAccordionTimer {
13
13
  this.addTimeListener = () => {
14
14
  this.timeChecker = window.setInterval(() => {
15
15
  const progress = this.progress();
16
- if (this.activeItem !== undefined) {
17
- this.activeItem.progress = progress;
16
+ if (this.selectedItem !== undefined) {
17
+ this.selectedItem.progress = progress;
18
18
  }
19
19
  if (progress === 1) {
20
- this.activeItem.progress = 0;
20
+ this.selectedItem.progress = 0;
21
21
  this.startNext();
22
22
  }
23
23
  }, 100);
@@ -27,30 +27,30 @@ export class MdsAccordionTimer {
27
27
  return this.timeStarted;
28
28
  };
29
29
  this.remainingTime = () => {
30
- const remainingTime = this.activeItemDurationTime - ((new Date()).getTime() - this.timeStarted);
30
+ const remainingTime = this.selectedItemDurationTime - ((new Date()).getTime() - this.timeStarted);
31
31
  return remainingTime >= 0 ? remainingTime : 0;
32
32
  };
33
- this.setActiveItem = (uuid) => {
33
+ this.setSelectedItem = (uuid) => {
34
34
  this.children.forEach((item, key) => {
35
35
  if (key === uuid) {
36
- item.active = true;
37
- this.activeItem = item;
38
- this.itemActivated.emit(uuid);
36
+ item.selected = true;
37
+ this.selectedItem = item;
38
+ this.changeEvent.emit();
39
39
  }
40
40
  else {
41
- item.active = false;
41
+ item.selected = false;
42
42
  }
43
43
  });
44
44
  };
45
45
  this.startNext = () => {
46
- const nextUuid = this.activeItem.uuid + 1 > this.children.length - 1 ? 0 : this.activeItem.uuid + 1;
47
- this.setActiveItem(nextUuid);
46
+ const nextUuid = this.selectedItem.uuid + 1 > this.children.length - 1 ? 0 : this.selectedItem.uuid + 1;
47
+ this.setSelectedItem(nextUuid);
48
48
  this.startTimer();
49
49
  };
50
50
  this.startTimer = () => {
51
51
  this.clearIntervals();
52
52
  this.time = this.beginningTime();
53
- this.activeItemDurationTime = this.duration;
53
+ this.selectedItemDurationTime = this.duration;
54
54
  this.addTimeListener();
55
55
  };
56
56
  this.playTimer = () => {
@@ -59,7 +59,7 @@ export class MdsAccordionTimer {
59
59
  };
60
60
  this.pauseTimer = () => {
61
61
  this.clearIntervals();
62
- this.activeItemDurationTime = this.remainingTime();
62
+ this.selectedItemDurationTime = this.remainingTime();
63
63
  };
64
64
  this.stopTimer = () => {
65
65
  this.clearIntervals();
@@ -72,20 +72,20 @@ export class MdsAccordionTimer {
72
72
  this.children = this.element.querySelectorAll('mds-accordion-timer-item');
73
73
  this.children.forEach((item, key) => {
74
74
  item.uuid = key;
75
- if (item.active) {
76
- this.activeItem = item;
75
+ if (item.selected) {
76
+ this.selectedItem = item;
77
77
  }
78
78
  });
79
- }
80
- connectedCallback() {
81
- this.startTimer();
79
+ if (this.selectedItem !== undefined) {
80
+ this.startTimer();
81
+ }
82
82
  }
83
83
  disconnectedCallback() {
84
84
  this.stopTimer();
85
85
  this.clearIntervals();
86
86
  }
87
87
  onClickActive(event) {
88
- if (event.detail === this.activeItem.description) {
88
+ if (this.selectedItem && event.detail === this.selectedItem.description) {
89
89
  return;
90
90
  }
91
91
  let selectedUuid;
@@ -95,14 +95,14 @@ export class MdsAccordionTimer {
95
95
  selectedUuid = item.uuid;
96
96
  }
97
97
  });
98
- this.setActiveItem(selectedUuid);
98
+ this.setSelectedItem(selectedUuid);
99
99
  this.startTimer();
100
100
  this.pauseTimer();
101
101
  }
102
- onMouseEnterActive() {
102
+ onMouseEnterSelect() {
103
103
  this.pauseTimer();
104
104
  }
105
- onMouseLeaveActive() {
105
+ onMouseLeaveSelect() {
106
106
  if (this.timeChecker === null) {
107
107
  this.playTimer();
108
108
  }
@@ -151,8 +151,8 @@ export class MdsAccordionTimer {
151
151
  }
152
152
  static get events() {
153
153
  return [{
154
- "method": "itemActivated",
155
- "name": "itemActivated",
154
+ "method": "changeEvent",
155
+ "name": "mdsAccordionTimerChange",
156
156
  "bubbles": true,
157
157
  "cancelable": true,
158
158
  "composed": true,
@@ -161,8 +161,8 @@ export class MdsAccordionTimer {
161
161
  "text": "Emits when the accordion changes it's item"
162
162
  },
163
163
  "complexType": {
164
- "original": "number",
165
- "resolved": "number",
164
+ "original": "void",
165
+ "resolved": "void",
166
166
  "references": {}
167
167
  }
168
168
  }];
@@ -170,20 +170,20 @@ export class MdsAccordionTimer {
170
170
  static get elementRef() { return "element"; }
171
171
  static get listeners() {
172
172
  return [{
173
- "name": "activeClicked",
173
+ "name": "mdsAccordionTimerItemClickSelect",
174
174
  "method": "onClickActive",
175
175
  "target": undefined,
176
176
  "capture": false,
177
177
  "passive": false
178
178
  }, {
179
- "name": "activeMouseEnter",
180
- "method": "onMouseEnterActive",
179
+ "name": "mdsAccordionTimerItemMouseEnterSelect",
180
+ "method": "onMouseEnterSelect",
181
181
  "target": undefined,
182
182
  "capture": false,
183
183
  "passive": false
184
184
  }, {
185
- "name": "activeMouseLeave",
186
- "method": "onMouseLeaveActive",
185
+ "name": "mdsAccordionTimerItemMouseLeaveSelect",
186
+ "method": "onMouseLeaveSelect",
187
187
  "target": undefined,
188
188
  "capture": false,
189
189
  "passive": false
@@ -9,7 +9,7 @@ export default {
9
9
  },
10
10
  },
11
11
  };
12
- const Template = args => h("div", null, h("mds-accordion-timer", Object.assign({}, args), h("mds-accordion-timer-item", { active: true, description: "Blipbug" }, h("mds-text", null, "Blipbug presenta delle fattezze riconducibili agli insetti nello stadio pre-crisalide. Il suo corpo si sviluppa in lunghezza, ed \u00E8 formato principalmente da tre parti: la sua grande testa, il suo collo (molto simile ad un collare), e il corpo vero e proprio. La prima di queste \u00E8 suddivisa in una parte color crema e una parte color denim; dello stesso colore sono le appenidici a forma di \"V\" che si trovano sopra e ai lati della testa. I suoi occhi sono enormi e grigi, ed hanno delle sottilissime sopracciglia sopra di essi. Il suo \"collare\", anch'esso color denim, presenta delle \"setole\" giallo sabbia, con le quali percepisce i segnali esterni: stesso colore si presenta nel segmento centrale della sua parte inferiore, dove sono presenti un primo paio di zampe crema. Il segmento superiore del corpo \u00E8 bianco e ospita delle zampe anteriori color crema, ed infine, la parte finale, o la \"coda\", \u00E8 color denim e finisce con un'appendice a \"V\" un po' pi\u00FA grossa.")), h("mds-accordion-timer-item", { description: "Drednaw" }, h("mds-text", null, "Drednaw \u00E8 un Pok\u00E9mon quadrupede simile ad una tartaruga alligatore. Il corpo \u00E8 principalmente di colore turchese cos\u00EC come le zampe cilindriche e tozze, le quali terminano con tre unghie allungate e bianche. Sulle zampe anteriori, circa sulla loro met\u00E0, spuntanto delle protuberanze simili a scaglie di roccia color marroncino, ricorrenti anche nel resto del corpo: ad esempio, sul muso c'\u00E8 una protuberanza a zig-zag che ospita le sue narici; sulla coda sono alternate delle scaglie e attorno al guscio c'\u00E8 una cornice dello stesso colore; anche le placche superiori sembrano essere fatte di roccia, ma sono di un colore marrone scuro, invece che chiaro. Queste parti rocciose sembrano essere frastagliate, per niente levigate. Il suo volto presenta occhi bassi e imbronciati, con delle guance arancioni e sporgenti ed una bocca a zig-zag, la cui parte inferiore \u00E8 simile al beige, colore presente anche nelle placche del guscio inferiori, che stavolta fanno vedere la pelle a volte grinzosa del Pok\u00E9mon (in particolare attorno al collo e sulle zampe). Le sue scaglie di roccia sono spesso rivolte verso di dietro, dando l'idea di una roccia grezza e non liscia e lavorata.")), h("mds-accordion-timer-item", { description: "Orbeetle" }, h("mds-text", null, "Orbeetle presenta aspetti comuni ad una coccinella ormai matura. Il suo corpo si sviluppa attorno al guscio che \u00E8 di forma semisferica ed \u00E8 metallizzato in grigio (lo si pu\u00F2 vedere in particolare dalla parte inferiore di esso): la sua scocca \u00E8 rossa, con dei pois denim sopra di essa; \u00E8 bisezionata per permettere di aprirsi e attaccare con degli strani poteri. All'estremit\u00E0 del taglio intermedio \u00E8 incastonato il volto di Orbeetle, il quale presenta delle guance bianche con occhi imbronciati celesti, aventi sclere concentriche; sopra di essi ci sono due lunghe sopracciglia dorate a forma di \"V\" e ad incorniciare la faccia del Pok\u00E9mon \u00E8 una cornice grigia, che finisce, con delle striature, sul naso dello stesso. La bocca, assieme alle ginocchia e alla pancia, \u00E8 rossa. Il suo corpo \u00E8 piccolo ed \u00E8 costituito da una vita stretta con una bacino largo, da dove si sviluppano due cosce secche ed esili per poi finire con appuntiti gambali dorati; le sue braccia sono magre e biforcute, come se avessero artigli.")), h("mds-accordion-timer-item", { description: "Dottler" }, h("mds-text", null, "Dottler pu\u00F2 essere considerato la \"crisalide\" della linea evolutiva di Blipbug, vista la sua forma e il suo comportamento. Presenta un guscio di forma poligonale (molto simile a quella di un radar Doppler o di un radome) di color giallo sabbia, con dei pois blu scuro sugli spigoli; leggermente in basso \u00E8 presente la sua faccia di color arancione chiaro, sulla quale ci sono degli occhi celesti attorniati da un contorno arancione, da linee sottili e nere e da delle appendici blu simili a quelle dei Blipbug. Il Pok\u00E9mon non sembra essere dedito a muoversi se non fosse per le quattro zampette blu scuro su cui cammina.")), h("mds-accordion-timer-item", { description: "Centiskorch" }, h("mds-text", null, "Con l'evoluzione Sizzlipede diventa pi\u00F9 aggressivo, soprattutto grazie alla sua stazza pi\u00F9 grande e al suo enorme potenziale. Il corpo diventa pi\u00F9 lungo e si \"seziona\" in dodici parti, anche qui un'estremit\u00E0 \u00E8 la \"coda\" e l'altra \u00E8 la testa, queste due parti, assieme all'intera parte inferiore del corpo sono del rosso mattone presente nella sua pre-evo, mentre le \"parti\" comprese tra la coda e la testa restano marroni/bordeaux; questa volte, dello stesso colore della \"schiena\" sono le zampe, le quali son diventate pi\u00F9 minacciose e uncinate, questa volta sono dieci per ogni lato; marrone/bordeaux sono anche delle tenaglie. presenti in paia, sulla coda e sulla testa; su queste estremit\u00E0 son presenti quattro sbuffi o \"baffi\" di fuoco. Sulla testa \u00E8 presente un simbolo arancione chiaro a forma di punto esclamativo; stessa gamma cromatica \u00E8 presente nei segni circolari situati nella zona inferiore del corpo, i quali son formati, per\u00F2, anche da un anello e da un cerchio, pi\u00F9 interno, di colore giallo sabbia; non sono altro che i punti che Sizzlipede riscalda per attaccare e scottare le prede. I suoi occhi sono giallo elettrico con pupille triangolari color marrone e rovesciati."))));
12
+ const Template = args => h("div", null, h("mds-accordion-timer", Object.assign({}, args), h("mds-accordion-timer-item", { description: "Blipbug" }, h("mds-text", null, "Blipbug presenta delle fattezze riconducibili agli insetti nello stadio pre-crisalide. Il suo corpo si sviluppa in lunghezza, ed \u00E8 formato principalmente da tre parti: la sua grande testa, il suo collo (molto simile ad un collare), e il corpo vero e proprio. La prima di queste \u00E8 suddivisa in una parte color crema e una parte color denim; dello stesso colore sono le appenidici a forma di \"V\" che si trovano sopra e ai lati della testa. I suoi occhi sono enormi e grigi, ed hanno delle sottilissime sopracciglia sopra di essi. Il suo \"collare\", anch'esso color denim, presenta delle \"setole\" giallo sabbia, con le quali percepisce i segnali esterni: stesso colore si presenta nel segmento centrale della sua parte inferiore, dove sono presenti un primo paio di zampe crema. Il segmento superiore del corpo \u00E8 bianco e ospita delle zampe anteriori color crema, ed infine, la parte finale, o la \"coda\", \u00E8 color denim e finisce con un'appendice a \"V\" un po' pi\u00FA grossa.")), h("mds-accordion-timer-item", { description: "Drednaw" }, h("mds-text", null, "Drednaw \u00E8 un Pok\u00E9mon quadrupede simile ad una tartaruga alligatore. Il corpo \u00E8 principalmente di colore turchese cos\u00EC come le zampe cilindriche e tozze, le quali terminano con tre unghie allungate e bianche. Sulle zampe anteriori, circa sulla loro met\u00E0, spuntanto delle protuberanze simili a scaglie di roccia color marroncino, ricorrenti anche nel resto del corpo: ad esempio, sul muso c'\u00E8 una protuberanza a zig-zag che ospita le sue narici; sulla coda sono alternate delle scaglie e attorno al guscio c'\u00E8 una cornice dello stesso colore; anche le placche superiori sembrano essere fatte di roccia, ma sono di un colore marrone scuro, invece che chiaro. Queste parti rocciose sembrano essere frastagliate, per niente levigate. Il suo volto presenta occhi bassi e imbronciati, con delle guance arancioni e sporgenti ed una bocca a zig-zag, la cui parte inferiore \u00E8 simile al beige, colore presente anche nelle placche del guscio inferiori, che stavolta fanno vedere la pelle a volte grinzosa del Pok\u00E9mon (in particolare attorno al collo e sulle zampe). Le sue scaglie di roccia sono spesso rivolte verso di dietro, dando l'idea di una roccia grezza e non liscia e lavorata.")), h("mds-accordion-timer-item", { description: "Orbeetle" }, h("mds-text", null, "Orbeetle presenta aspetti comuni ad una coccinella ormai matura. Il suo corpo si sviluppa attorno al guscio che \u00E8 di forma semisferica ed \u00E8 metallizzato in grigio (lo si pu\u00F2 vedere in particolare dalla parte inferiore di esso): la sua scocca \u00E8 rossa, con dei pois denim sopra di essa; \u00E8 bisezionata per permettere di aprirsi e attaccare con degli strani poteri. All'estremit\u00E0 del taglio intermedio \u00E8 incastonato il volto di Orbeetle, il quale presenta delle guance bianche con occhi imbronciati celesti, aventi sclere concentriche; sopra di essi ci sono due lunghe sopracciglia dorate a forma di \"V\" e ad incorniciare la faccia del Pok\u00E9mon \u00E8 una cornice grigia, che finisce, con delle striature, sul naso dello stesso. La bocca, assieme alle ginocchia e alla pancia, \u00E8 rossa. Il suo corpo \u00E8 piccolo ed \u00E8 costituito da una vita stretta con una bacino largo, da dove si sviluppano due cosce secche ed esili per poi finire con appuntiti gambali dorati; le sue braccia sono magre e biforcute, come se avessero artigli.")), h("mds-accordion-timer-item", { description: "Dottler" }, h("mds-text", null, "Dottler pu\u00F2 essere considerato la \"crisalide\" della linea evolutiva di Blipbug, vista la sua forma e il suo comportamento. Presenta un guscio di forma poligonale (molto simile a quella di un radar Doppler o di un radome) di color giallo sabbia, con dei pois blu scuro sugli spigoli; leggermente in basso \u00E8 presente la sua faccia di color arancione chiaro, sulla quale ci sono degli occhi celesti attorniati da un contorno arancione, da linee sottili e nere e da delle appendici blu simili a quelle dei Blipbug. Il Pok\u00E9mon non sembra essere dedito a muoversi se non fosse per le quattro zampette blu scuro su cui cammina.")), h("mds-accordion-timer-item", { description: "Centiskorch" }, h("mds-text", null, "Con l'evoluzione Sizzlipede diventa pi\u00F9 aggressivo, soprattutto grazie alla sua stazza pi\u00F9 grande e al suo enorme potenziale. Il corpo diventa pi\u00F9 lungo e si \"seziona\" in dodici parti, anche qui un'estremit\u00E0 \u00E8 la \"coda\" e l'altra \u00E8 la testa, queste due parti, assieme all'intera parte inferiore del corpo sono del rosso mattone presente nella sua pre-evo, mentre le \"parti\" comprese tra la coda e la testa restano marroni/bordeaux; questa volte, dello stesso colore della \"schiena\" sono le zampe, le quali son diventate pi\u00F9 minacciose e uncinate, questa volta sono dieci per ogni lato; marrone/bordeaux sono anche delle tenaglie. presenti in paia, sulla coda e sulla testa; su queste estremit\u00E0 son presenti quattro sbuffi o \"baffi\" di fuoco. Sulla testa \u00E8 presente un simbolo arancione chiaro a forma di punto esclamativo; stessa gamma cromatica \u00E8 presente nei segni circolari situati nella zona inferiore del corpo, i quali son formati, per\u00F2, anche da un anello e da un cerchio, pi\u00F9 interno, di colore giallo sabbia; non sono altro che i punti che Sizzlipede riscalda per attaccare e scottare le prede. I suoi occhi sono giallo elettrico con pupille triangolari color marrone e rovesciati."))));
13
13
  export const Default = Template.bind({});
14
14
  Default.story = lokiDisabled;
15
15
  export const Duration = Template.bind({});
@@ -7,7 +7,7 @@ const MdsAccordionTimer$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
7
7
  super();
8
8
  this.__registerHost();
9
9
  this.__attachShadow();
10
- this.itemActivated = createEvent(this, "itemActivated", 7);
10
+ this.changeEvent = createEvent(this, "mdsAccordionTimerChange", 7);
11
11
  this.clearIntervals = () => {
12
12
  window.clearInterval(this.timer);
13
13
  window.clearInterval(this.timeChecker);
@@ -20,11 +20,11 @@ const MdsAccordionTimer$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
20
20
  this.addTimeListener = () => {
21
21
  this.timeChecker = window.setInterval(() => {
22
22
  const progress = this.progress();
23
- if (this.activeItem !== undefined) {
24
- this.activeItem.progress = progress;
23
+ if (this.selectedItem !== undefined) {
24
+ this.selectedItem.progress = progress;
25
25
  }
26
26
  if (progress === 1) {
27
- this.activeItem.progress = 0;
27
+ this.selectedItem.progress = 0;
28
28
  this.startNext();
29
29
  }
30
30
  }, 100);
@@ -34,30 +34,30 @@ const MdsAccordionTimer$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
34
34
  return this.timeStarted;
35
35
  };
36
36
  this.remainingTime = () => {
37
- const remainingTime = this.activeItemDurationTime - ((new Date()).getTime() - this.timeStarted);
37
+ const remainingTime = this.selectedItemDurationTime - ((new Date()).getTime() - this.timeStarted);
38
38
  return remainingTime >= 0 ? remainingTime : 0;
39
39
  };
40
- this.setActiveItem = (uuid) => {
40
+ this.setSelectedItem = (uuid) => {
41
41
  this.children.forEach((item, key) => {
42
42
  if (key === uuid) {
43
- item.active = true;
44
- this.activeItem = item;
45
- this.itemActivated.emit(uuid);
43
+ item.selected = true;
44
+ this.selectedItem = item;
45
+ this.changeEvent.emit();
46
46
  }
47
47
  else {
48
- item.active = false;
48
+ item.selected = false;
49
49
  }
50
50
  });
51
51
  };
52
52
  this.startNext = () => {
53
- const nextUuid = this.activeItem.uuid + 1 > this.children.length - 1 ? 0 : this.activeItem.uuid + 1;
54
- this.setActiveItem(nextUuid);
53
+ const nextUuid = this.selectedItem.uuid + 1 > this.children.length - 1 ? 0 : this.selectedItem.uuid + 1;
54
+ this.setSelectedItem(nextUuid);
55
55
  this.startTimer();
56
56
  };
57
57
  this.startTimer = () => {
58
58
  this.clearIntervals();
59
59
  this.time = this.beginningTime();
60
- this.activeItemDurationTime = this.duration;
60
+ this.selectedItemDurationTime = this.duration;
61
61
  this.addTimeListener();
62
62
  };
63
63
  this.playTimer = () => {
@@ -66,7 +66,7 @@ const MdsAccordionTimer$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
66
66
  };
67
67
  this.pauseTimer = () => {
68
68
  this.clearIntervals();
69
- this.activeItemDurationTime = this.remainingTime();
69
+ this.selectedItemDurationTime = this.remainingTime();
70
70
  };
71
71
  this.stopTimer = () => {
72
72
  this.clearIntervals();
@@ -79,20 +79,20 @@ const MdsAccordionTimer$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
79
79
  this.children = this.element.querySelectorAll('mds-accordion-timer-item');
80
80
  this.children.forEach((item, key) => {
81
81
  item.uuid = key;
82
- if (item.active) {
83
- this.activeItem = item;
82
+ if (item.selected) {
83
+ this.selectedItem = item;
84
84
  }
85
85
  });
86
- }
87
- connectedCallback() {
88
- this.startTimer();
86
+ if (this.selectedItem !== undefined) {
87
+ this.startTimer();
88
+ }
89
89
  }
90
90
  disconnectedCallback() {
91
91
  this.stopTimer();
92
92
  this.clearIntervals();
93
93
  }
94
94
  onClickActive(event) {
95
- if (event.detail === this.activeItem.description) {
95
+ if (this.selectedItem && event.detail === this.selectedItem.description) {
96
96
  return;
97
97
  }
98
98
  let selectedUuid;
@@ -102,14 +102,14 @@ const MdsAccordionTimer$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
102
102
  selectedUuid = item.uuid;
103
103
  }
104
104
  });
105
- this.setActiveItem(selectedUuid);
105
+ this.setSelectedItem(selectedUuid);
106
106
  this.startTimer();
107
107
  this.pauseTimer();
108
108
  }
109
- onMouseEnterActive() {
109
+ onMouseEnterSelect() {
110
110
  this.pauseTimer();
111
111
  }
112
- onMouseLeaveActive() {
112
+ onMouseLeaveSelect() {
113
113
  if (this.timeChecker === null) {
114
114
  this.playTimer();
115
115
  }
@@ -122,7 +122,7 @@ const MdsAccordionTimer$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
122
122
  }, [1, "mds-accordion-timer", {
123
123
  "duration": [2],
124
124
  "time": [32]
125
- }, [[0, "activeClicked", "onClickActive"], [0, "activeMouseEnter", "onMouseEnterActive"], [0, "activeMouseLeave", "onMouseLeaveActive"]]]);
125
+ }, [[0, "mdsAccordionTimerItemClickSelect", "onClickActive"], [0, "mdsAccordionTimerItemMouseEnterSelect", "onMouseEnterSelect"], [0, "mdsAccordionTimerItemMouseLeaveSelect", "onMouseLeaveSelect"]]]);
126
126
  function defineCustomElement$1() {
127
127
  if (typeof customElements === "undefined") {
128
128
  return;
@@ -925,7 +925,6 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
925
925
  hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
926
926
  }
927
927
  endNewInstance();
928
- fireConnectedCallback(hostRef.$lazyInstance$);
929
928
  }
930
929
  if (Cstr.style) {
931
930
  // this component has styles but we haven't registered them yet
@@ -954,11 +953,6 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
954
953
  schedule();
955
954
  }
956
955
  };
957
- const fireConnectedCallback = (instance) => {
958
- {
959
- safeCall(instance, 'connectedCallback');
960
- }
961
- };
962
956
  const connectedCallback = (elm) => {
963
957
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
964
958
  const hostRef = getHostRef(elm);
@@ -1002,8 +996,6 @@ const connectedCallback = (elm) => {
1002
996
  // reattach any event listeners to the host
1003
997
  // since they would have been removed when disconnected
1004
998
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1005
- // fire off connectedCallback() on component instance
1006
- fireConnectedCallback(hostRef.$lazyInstance$);
1007
999
  }
1008
1000
  endConnected();
1009
1001
  }
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-22b73a3a.js';
2
- export { s as setNonce } from './index-22b73a3a.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-bd689d6a.js';
2
+ export { s as setNonce } from './index-bd689d6a.js';
3
3
 
4
4
  /*
5
5
  Stencil Client Patch Esm v2.22.2 | MIT Licensed | https://stenciljs.com
@@ -11,7 +11,7 @@ const patchEsm = () => {
11
11
  const defineCustomElements = (win, options) => {
12
12
  if (typeof window === 'undefined') return Promise.resolve();
13
13
  return patchEsm().then(() => {
14
- return bootstrapLazy([["mds-accordion-timer",[[1,"mds-accordion-timer",{"duration":[2],"time":[32]},[[0,"activeClicked","onClickActive"],[0,"activeMouseEnter","onMouseEnterActive"],[0,"activeMouseLeave","onMouseLeaveActive"]]]]]], options);
14
+ return bootstrapLazy([["mds-accordion-timer",[[1,"mds-accordion-timer",{"duration":[2],"time":[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickActive"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]]]]]], options);
15
15
  });
16
16
  };
17
17