@aurodesignsystem/auro-formkit 2.0.0-beta.13 → 2.0.0-beta.14

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 (167) hide show
  1. package/.turbo/cache/0b22557b4944c6e3-meta.json +1 -0
  2. package/.turbo/cache/0c8124a987c1cc05-meta.json +1 -1
  3. package/.turbo/cache/1502c5fc71126643-meta.json +1 -0
  4. package/.turbo/cache/18129dba20f51b6b-meta.json +1 -1
  5. package/.turbo/cache/1d461617c524c257-meta.json +1 -0
  6. package/.turbo/cache/1d461617c524c257.tar.zst +0 -0
  7. package/.turbo/cache/1f8549ade1f226ed-meta.json +1 -0
  8. package/.turbo/cache/1f8549ade1f226ed.tar.zst +0 -0
  9. package/.turbo/cache/2787020e69f50af2-meta.json +1 -1
  10. package/.turbo/cache/2c0d681132c153dd-meta.json +1 -1
  11. package/.turbo/cache/32545b759b9ce644-meta.json +1 -0
  12. package/.turbo/cache/{a92e41c6c847cf3d.tar.zst → 32545b759b9ce644.tar.zst} +0 -0
  13. package/.turbo/cache/34e8aaa18849b071-meta.json +1 -0
  14. package/.turbo/cache/34e8aaa18849b071.tar.zst +0 -0
  15. package/.turbo/cache/35b02758b1702fa7-meta.json +1 -0
  16. package/.turbo/cache/{1d1101e22cfdd7ae.tar.zst → 35b02758b1702fa7.tar.zst} +0 -0
  17. package/.turbo/cache/4006a206400d5c7b-meta.json +1 -1
  18. package/.turbo/cache/4302d0f3b7325335-meta.json +1 -0
  19. package/.turbo/cache/{7709f6d0b8e9128c.tar.zst → 4302d0f3b7325335.tar.zst} +0 -0
  20. package/.turbo/cache/492dda333b8d15f1-meta.json +1 -1
  21. package/.turbo/cache/4db3f888378e8c97-meta.json +1 -0
  22. package/.turbo/cache/4db3f888378e8c97.tar.zst +0 -0
  23. package/.turbo/cache/50993de942ec15a9-meta.json +1 -1
  24. package/.turbo/cache/50cd7dcfc9f820c5-meta.json +1 -1
  25. package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -1
  26. package/.turbo/cache/559969de09c2dc0b-meta.json +1 -0
  27. package/.turbo/cache/584cc436c8078114-meta.json +1 -0
  28. package/.turbo/cache/584cc436c8078114.tar.zst +0 -0
  29. package/.turbo/cache/5c16e68b6c2fe505-meta.json +1 -0
  30. package/.turbo/cache/5c16e68b6c2fe505.tar.zst +0 -0
  31. package/.turbo/cache/5ddbe69f2cb372c5-meta.json +1 -0
  32. package/.turbo/cache/{9b39333fcd766d6c.tar.zst → 5ddbe69f2cb372c5.tar.zst} +0 -0
  33. package/.turbo/cache/6081837e8943b62e-meta.json +1 -1
  34. package/.turbo/cache/60ad74320c682a2b-meta.json +1 -1
  35. package/.turbo/cache/61e218aba69cff58-meta.json +1 -1
  36. package/.turbo/cache/759b0d821dae60c9-meta.json +1 -0
  37. package/.turbo/cache/76a76201dfec8a47-meta.json +1 -0
  38. package/.turbo/cache/76a76201dfec8a47.tar.zst +0 -0
  39. package/.turbo/cache/77da375a012de9d0-meta.json +1 -1
  40. package/.turbo/cache/7964d1656e9e702a-meta.json +1 -1
  41. package/.turbo/cache/79b7301ce5cb7388-meta.json +1 -0
  42. package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -1
  43. package/.turbo/cache/7c9ca6163e61285c-meta.json +1 -1
  44. package/.turbo/cache/8a1d75ce1555da17-meta.json +1 -0
  45. package/.turbo/cache/8aa9a0ccdac4b3f6-meta.json +1 -0
  46. package/.turbo/cache/8bb856bd31b5b479-meta.json +1 -1
  47. package/.turbo/cache/9ae99e8e7bd83d06-meta.json +1 -1
  48. package/.turbo/cache/a12b45bee8b447ec-meta.json +1 -0
  49. package/.turbo/cache/a12b45bee8b447ec.tar.zst +0 -0
  50. package/.turbo/cache/a2c5639ae99f332a-meta.json +1 -0
  51. package/.turbo/cache/{c60c3e77395a0986.tar.zst → a2c5639ae99f332a.tar.zst} +0 -0
  52. package/.turbo/cache/ab77cb0b089f1928-meta.json +1 -0
  53. package/.turbo/cache/b30c78f2c15f720d-meta.json +1 -0
  54. package/.turbo/cache/{1ad033a815d5d141.tar.zst → b30c78f2c15f720d.tar.zst} +0 -0
  55. package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -1
  56. package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -1
  57. package/.turbo/cache/ba69fd787d0ded42-meta.json +1 -0
  58. package/.turbo/cache/be0b95293ea517cc-meta.json +1 -1
  59. package/.turbo/cache/c44efc9e4ddd8a0e-meta.json +1 -1
  60. package/.turbo/cache/c6c6411199b68170-meta.json +1 -1
  61. package/.turbo/cache/d4b8a79a27266a26-meta.json +1 -0
  62. package/.turbo/cache/{f3f8fd561572d247.tar.zst → d4b8a79a27266a26.tar.zst} +0 -0
  63. package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -1
  64. package/.turbo/cache/d775555355d6b8fc-meta.json +1 -1
  65. package/.turbo/cache/d7c3007be148d2a1-meta.json +1 -1
  66. package/.turbo/cache/da4d6d64c2b8c14c-meta.json +1 -0
  67. package/.turbo/cache/{c35b8ad2393cf6dd.tar.zst → da4d6d64c2b8c14c.tar.zst} +0 -0
  68. package/.turbo/cache/dad3d78b33edd9e4-meta.json +1 -1
  69. package/.turbo/cache/dc597b3ea4f61ec8-meta.json +1 -1
  70. package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -1
  71. package/.turbo/cache/e89dfa7c665c8763-meta.json +1 -0
  72. package/.turbo/cache/e89dfa7c665c8763.tar.zst +0 -0
  73. package/.turbo/cache/e9070f00d98f5229-meta.json +1 -0
  74. package/.turbo/cache/e9070f00d98f5229.tar.zst +0 -0
  75. package/.turbo/cache/e9e36823f6c98f07-meta.json +1 -1
  76. package/.turbo/cache/eaaba23b39cfd96e-meta.json +1 -0
  77. package/.turbo/cache/eaaba23b39cfd96e.tar.zst +0 -0
  78. package/.turbo/cache/fb11be9bb5bed06e-meta.json +1 -0
  79. package/CHANGELOG.md +7 -0
  80. package/components/checkbox/.turbo/turbo-build.log +3 -3
  81. package/components/checkbox/.turbo/turbo-bundler.log +3 -3
  82. package/components/checkbox/README.md +1 -1
  83. package/components/combobox/.turbo/turbo-build.log +2 -2
  84. package/components/combobox/README.md +4 -4
  85. package/components/counter/.turbo/turbo-build.log +3 -3
  86. package/components/counter/.turbo/turbo-bundler.log +3 -3
  87. package/components/counter/README.md +1 -1
  88. package/components/counter/demo/api.md +9 -9
  89. package/components/counter/demo/api.min.js +36 -11
  90. package/components/counter/demo/index.min.js +36 -11
  91. package/components/counter/dist/auro-counter-group.d.ts +14 -3
  92. package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
  93. package/components/counter/dist/auro-counter.d.ts +7 -1
  94. package/components/counter/dist/auro-counter.d.ts.map +1 -1
  95. package/components/counter/dist/index.js +36 -11
  96. package/components/counter/src/auro-counter-group.js +30 -11
  97. package/components/counter/src/auro-counter.js +6 -0
  98. package/components/datepicker/.turbo/turbo-build.log +3 -3
  99. package/components/datepicker/README.md +4 -4
  100. package/components/dropdown/.turbo/turbo-build.log +3 -3
  101. package/components/dropdown/.turbo/turbo-bundler.log +3 -3
  102. package/components/dropdown/README.md +1 -1
  103. package/components/form/.turbo/turbo-build.log +3 -3
  104. package/components/form/.turbo/turbo-bundler.log +3 -3
  105. package/components/form/README.md +1 -1
  106. package/components/input/.turbo/turbo-build.log +3 -3
  107. package/components/input/.turbo/turbo-bundler.log +3 -3
  108. package/components/input/README.md +1 -1
  109. package/components/menu/.turbo/turbo-build.log +3 -3
  110. package/components/menu/.turbo/turbo-bundler.log +3 -3
  111. package/components/menu/README.md +1 -1
  112. package/components/radio/.turbo/turbo-build.log +3 -3
  113. package/components/radio/.turbo/turbo-bundler.log +3 -3
  114. package/components/radio/README.md +1 -1
  115. package/components/select/.turbo/turbo-build.log +3 -3
  116. package/components/select/README.md +3 -3
  117. package/package.json +1 -1
  118. package/.turbo/cache/1ad033a815d5d141-meta.json +0 -1
  119. package/.turbo/cache/1badd6a7be324316-meta.json +0 -1
  120. package/.turbo/cache/1d1101e22cfdd7ae-meta.json +0 -1
  121. package/.turbo/cache/32b28967b56d244d-meta.json +0 -1
  122. package/.turbo/cache/32b28967b56d244d.tar.zst +0 -0
  123. package/.turbo/cache/338dc597861e8610-meta.json +0 -1
  124. package/.turbo/cache/338dc597861e8610.tar.zst +0 -0
  125. package/.turbo/cache/515cd0fcaf1be153-meta.json +0 -1
  126. package/.turbo/cache/515cd0fcaf1be153.tar.zst +0 -0
  127. package/.turbo/cache/57ef0d09fc16c822-meta.json +0 -1
  128. package/.turbo/cache/57ef0d09fc16c822.tar.zst +0 -0
  129. package/.turbo/cache/6506de5d561d4b0a-meta.json +0 -1
  130. package/.turbo/cache/6506de5d561d4b0a.tar.zst +0 -0
  131. package/.turbo/cache/68f332a76b89207d-meta.json +0 -1
  132. package/.turbo/cache/68f332a76b89207d.tar.zst +0 -0
  133. package/.turbo/cache/69709e2757f611ba-meta.json +0 -1
  134. package/.turbo/cache/71ad64025e29882c-meta.json +0 -1
  135. package/.turbo/cache/7709f6d0b8e9128c-meta.json +0 -1
  136. package/.turbo/cache/78fa90dd39b41ad0-meta.json +0 -1
  137. package/.turbo/cache/7a3d3f6c95cc07d0-meta.json +0 -1
  138. package/.turbo/cache/7a3d3f6c95cc07d0.tar.zst +0 -0
  139. package/.turbo/cache/899511cbbc19575f-meta.json +0 -1
  140. package/.turbo/cache/899511cbbc19575f.tar.zst +0 -0
  141. package/.turbo/cache/9b39333fcd766d6c-meta.json +0 -1
  142. package/.turbo/cache/a92e41c6c847cf3d-meta.json +0 -1
  143. package/.turbo/cache/aeda5fcc7c0a1677-meta.json +0 -1
  144. package/.turbo/cache/aeda5fcc7c0a1677.tar.zst +0 -0
  145. package/.turbo/cache/bab4eb0eea62ea5a-meta.json +0 -1
  146. package/.turbo/cache/c35b8ad2393cf6dd-meta.json +0 -1
  147. package/.turbo/cache/c4115ce49719f4ed-meta.json +0 -1
  148. package/.turbo/cache/c60c3e77395a0986-meta.json +0 -1
  149. package/.turbo/cache/d985aeb8931cbd36-meta.json +0 -1
  150. package/.turbo/cache/e46ab86a358d1bde-meta.json +0 -1
  151. package/.turbo/cache/ed628dd85d0ad81e-meta.json +0 -1
  152. package/.turbo/cache/ed628dd85d0ad81e.tar.zst +0 -0
  153. package/.turbo/cache/ee09a6d843ff0472-meta.json +0 -1
  154. package/.turbo/cache/eee0dba88fb565a1-meta.json +0 -1
  155. package/.turbo/cache/f3f8fd561572d247-meta.json +0 -1
  156. package/.turbo/cache/fd803ebed54accd1-meta.json +0 -1
  157. package/.turbo/cache/fd803ebed54accd1.tar.zst +0 -0
  158. /package/.turbo/cache/{71ad64025e29882c.tar.zst → 0b22557b4944c6e3.tar.zst} +0 -0
  159. /package/.turbo/cache/{ee09a6d843ff0472.tar.zst → 1502c5fc71126643.tar.zst} +0 -0
  160. /package/.turbo/cache/{bab4eb0eea62ea5a.tar.zst → 559969de09c2dc0b.tar.zst} +0 -0
  161. /package/.turbo/cache/{eee0dba88fb565a1.tar.zst → 759b0d821dae60c9.tar.zst} +0 -0
  162. /package/.turbo/cache/{78fa90dd39b41ad0.tar.zst → 79b7301ce5cb7388.tar.zst} +0 -0
  163. /package/.turbo/cache/{69709e2757f611ba.tar.zst → 8a1d75ce1555da17.tar.zst} +0 -0
  164. /package/.turbo/cache/{d985aeb8931cbd36.tar.zst → 8aa9a0ccdac4b3f6.tar.zst} +0 -0
  165. /package/.turbo/cache/{1badd6a7be324316.tar.zst → ab77cb0b089f1928.tar.zst} +0 -0
  166. /package/.turbo/cache/{e46ab86a358d1bde.tar.zst → ba69fd787d0ded42.tar.zst} +0 -0
  167. /package/.turbo/cache/{c4115ce49719f4ed.tar.zst → fb11be9bb5bed06e.tar.zst} +0 -0
@@ -1490,6 +1490,12 @@ class AuroCounter extends r {
1490
1490
  }
1491
1491
  }
1492
1492
 
1493
+ /**
1494
+ * Handles the slot change event.
1495
+ * This method is called when the slot content changes.
1496
+ * It triggers the checkSlots method to update the component state based on the new slot content.
1497
+ * @private
1498
+ */
1493
1499
  handleSlotChange() {
1494
1500
  this.checkSlots();
1495
1501
  }
@@ -1592,9 +1598,15 @@ class AuroCounterGroup extends r {
1592
1598
 
1593
1599
  this.max = undefined;
1594
1600
  this.min = undefined;
1601
+ this.total = undefined;
1595
1602
  this.validity = undefined;
1596
1603
  this.value = undefined;
1597
1604
 
1605
+ /**
1606
+ * @private
1607
+ */
1608
+ this.counters = undefined;
1609
+
1598
1610
  /**
1599
1611
  * @private
1600
1612
  */
@@ -1627,6 +1639,13 @@ class AuroCounterGroup extends r {
1627
1639
  reflect: true,
1628
1640
  },
1629
1641
 
1642
+ /**
1643
+ * The total value of the counters.
1644
+ */
1645
+ total: {
1646
+ type: Number,
1647
+ },
1648
+
1630
1649
  /**
1631
1650
  * Reflects the validity state.
1632
1651
  */
@@ -1636,10 +1655,10 @@ class AuroCounterGroup extends r {
1636
1655
  },
1637
1656
 
1638
1657
  /**
1639
- * The current value.
1658
+ * The current individual values of the nested counters.
1640
1659
  */
1641
1660
  value: {
1642
- type: Number,
1661
+ type: Object,
1643
1662
  },
1644
1663
  };
1645
1664
  }
@@ -1656,14 +1675,13 @@ class AuroCounterGroup extends r {
1656
1675
  counter.disableMax = false;
1657
1676
  counter.disableMin = false;
1658
1677
 
1659
- if (this.value <= this.min) {
1678
+ if (this.total <= this.min) {
1660
1679
  counter.disableMin = true;
1661
- } else if (this.value >= this.max) {
1680
+ } else if (this.total >= this.max) {
1662
1681
  counter.disableMax = true;
1663
1682
  }
1664
1683
  }
1665
1684
 
1666
-
1667
1685
  /**
1668
1686
  * Attaches input event listeners to all auro-counter elements within the component.
1669
1687
  * This method selects all `auro-counter` and `[auto-counter]` elements and adds an `input` event listener to each.
@@ -1671,8 +1689,8 @@ class AuroCounterGroup extends r {
1671
1689
  * @private
1672
1690
  */
1673
1691
  configureCounters() {
1674
- const counters = this.querySelectorAll("auro-counter, [auto-counter]");
1675
- counters.forEach((counter) => {
1692
+ this.counters = this.querySelectorAll("auro-counter, [auto-counter]");
1693
+ this.counters.forEach((counter) => {
1676
1694
  counter.addEventListener("input", () => this.updateValue());
1677
1695
  });
1678
1696
  }
@@ -1695,12 +1713,18 @@ class AuroCounterGroup extends r {
1695
1713
  * @private
1696
1714
  */
1697
1715
  updateValue() {
1698
- const counters = this.querySelectorAll("auro-counter, [auro-counter]");
1699
- this.value = Array.from(counters).reduce(
1716
+ this.value = Array.from(this.counters).reduce((acc, counter, index) => {
1717
+ const name = counter.hasAttribute('name') ? counter.getAttribute('name') : `counter-${index}`;
1718
+ acc[name] = this.safeNumberConversion(counter.value);
1719
+ return acc;
1720
+ }, {});
1721
+
1722
+ this.total = Array.from(this.counters).reduce(
1700
1723
  (total, counter) => total + this.safeNumberConversion(counter.value),
1701
1724
  0,
1702
1725
  );
1703
- counters.forEach((counter) => {
1726
+
1727
+ this.counters.forEach((counter) => {
1704
1728
  this.manageDisabled(counter);
1705
1729
  });
1706
1730
  }
@@ -1711,7 +1735,8 @@ class AuroCounterGroup extends r {
1711
1735
  this.dispatchEvent(
1712
1736
  new CustomEvent("input", {
1713
1737
  detail: {
1714
- value: this.value,
1738
+ total: this.total,
1739
+ value: this.value
1715
1740
  },
1716
1741
  }),
1717
1742
  {
@@ -25,6 +25,12 @@ export class AuroCounterGroup extends LitElement {
25
25
  type: NumberConstructor;
26
26
  reflect: boolean;
27
27
  };
28
+ /**
29
+ * The total value of the counters.
30
+ */
31
+ total: {
32
+ type: NumberConstructor;
33
+ };
28
34
  /**
29
35
  * Reflects the validity state.
30
36
  */
@@ -33,10 +39,10 @@ export class AuroCounterGroup extends LitElement {
33
39
  reflect: boolean;
34
40
  };
35
41
  /**
36
- * The current value.
42
+ * The current individual values of the nested counters.
37
43
  */
38
44
  value: {
39
- type: NumberConstructor;
45
+ type: ObjectConstructor;
40
46
  };
41
47
  };
42
48
  /**
@@ -48,8 +54,13 @@ export class AuroCounterGroup extends LitElement {
48
54
  static register(name?: string): void;
49
55
  max: any;
50
56
  min: any;
57
+ total: number;
51
58
  validity: any;
52
- value: number;
59
+ value: {};
60
+ /**
61
+ * @private
62
+ */
63
+ private counters;
53
64
  /**
54
65
  * @private
55
66
  */
@@ -1 +1 @@
1
- {"version":3,"file":"auro-counter-group.d.ts","sourceRoot":"","sources":["../src/auro-counter-group.js"],"names":[],"mappings":"AAYA;;;;;;;;;GASG;AACH;IAeE,+CAKC;IAED;QAGI;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;MAKN;IAgFD;;;;;OAKG;IACH,uBAJW,MAAM,QAMhB;IA5IC,SAAoB;IACpB,SAAoB;IACpB,cAAyB;IACzB,cAAsB;IAEtB;;OAEG;IACH,mBAA0C;IA8C5C;;;;;;;OAOG;IACH,uBASC;IAGD;;;;;OAKG;IACH,0BAKC;IAED;;;;;OAKG;IACH,6BAGC;IAED;;;;;OAKG;IACH,oBASC;IAED,sCAeC;IAaD,4CAMC;CACF;2BA1K0B,KAAK"}
1
+ {"version":3,"file":"auro-counter-group.d.ts","sourceRoot":"","sources":["../src/auro-counter-group.js"],"names":[],"mappings":"AAYA;;;;;;;;;GASG;AACH;IAqBE,+CAKC;IAED;QAGI;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;MAKN;IAsFD;;;;;OAKG;IACH,uBAJW,MAAM,QAMhB;IA/JC,SAAoB;IACpB,SAAoB;IACpB,cAAsB;IACtB,cAAyB;IACzB,UAAsB;IAEtB;;OAEG;IACH,iBAAyB;IAEzB;;OAEG;IACH,mBAA0C;IAqD5C;;;;;;;OAOG;IACH,uBASC;IAED;;;;;OAKG;IACH,0BAKC;IAED;;;;;OAKG;IACH,6BAGC;IAED;;;;;OAKG;IACH,oBAeC;IAED,sCAgBC;IAaD,4CAMC;CACF;2BA7L0B,KAAK"}
@@ -75,7 +75,13 @@ export class AuroCounter extends LitElement {
75
75
  * @private
76
76
  */
77
77
  private jumpFocusToEnabled;
78
- handleSlotChange(): void;
78
+ /**
79
+ * Handles the slot change event.
80
+ * This method is called when the slot content changes.
81
+ * It triggers the checkSlots method to update the component state based on the new slot content.
82
+ * @private
83
+ */
84
+ private handleSlotChange;
79
85
  firstUpdated(): void;
80
86
  updated(changedProperties: any): void;
81
87
  render(): import("lit-html").TemplateResult;
@@ -1 +1 @@
1
- {"version":3,"file":"auro-counter.d.ts","sourceRoot":"","sources":["../src/auro-counter.js"],"names":[],"mappings":"AAwBA;;;;;;;;;;GAUG;AACH;IA+BE;;;OAGG;IACH,6BA0DC;IAED;;;;;OAKG;IACH,uBAJW,MAAM,QAMhB;IAED,+CAMC;IA3GC,kBAAqB;IACrB,oBAAuB;IACvB,oBAAuB;IACvB,YAAY;IACZ,YAAY;IACZ,cAAyB;IACzB,cAAsB;IAEtB;;OAEG;IACH,mBAA0C;IAQ1C;;;;OAIG;IACH,gBAAyE;IAqF3E;;;;;OAKG;IACH,kBAHW,MAAM,GACJ,IAAI,CAIhB;IAED;;;;;OAKG;IACH,kBAHW,MAAM,GACJ,IAAI,CAIhB;IAED;;;;OAIG;IACH,kBAIC;IAED;;;;;;OAMG;IACH,4BAWC;IAED;;;;;OAKG;IACH,2BAKC;IAED,yBAEC;IAED,qBAEC;IAED,sCAkCC;IAED,4CA+BC;CACF;2BA5R0B,KAAK"}
1
+ {"version":3,"file":"auro-counter.d.ts","sourceRoot":"","sources":["../src/auro-counter.js"],"names":[],"mappings":"AAwBA;;;;;;;;;;GAUG;AACH;IA+BE;;;OAGG;IACH,6BA0DC;IAED;;;;;OAKG;IACH,uBAJW,MAAM,QAMhB;IAED,+CAMC;IA3GC,kBAAqB;IACrB,oBAAuB;IACvB,oBAAuB;IACvB,YAAY;IACZ,YAAY;IACZ,cAAyB;IACzB,cAAsB;IAEtB;;OAEG;IACH,mBAA0C;IAQ1C;;;;OAIG;IACH,gBAAyE;IAqF3E;;;;;OAKG;IACH,kBAHW,MAAM,GACJ,IAAI,CAIhB;IAED;;;;;OAKG;IACH,kBAHW,MAAM,GACJ,IAAI,CAIhB;IAED;;;;OAIG;IACH,kBAIC;IAED;;;;;;OAMG;IACH,4BAWC;IAED;;;;;OAKG;IACH,2BAKC;IAED;;;;;OAKG;IACH,yBAEC;IAED,qBAEC;IAED,sCAkCC;IAED,4CA+BC;CACF;2BAlS0B,KAAK"}
@@ -1490,6 +1490,12 @@ class AuroCounter extends r {
1490
1490
  }
1491
1491
  }
1492
1492
 
1493
+ /**
1494
+ * Handles the slot change event.
1495
+ * This method is called when the slot content changes.
1496
+ * It triggers the checkSlots method to update the component state based on the new slot content.
1497
+ * @private
1498
+ */
1493
1499
  handleSlotChange() {
1494
1500
  this.checkSlots();
1495
1501
  }
@@ -1592,9 +1598,15 @@ class AuroCounterGroup extends r {
1592
1598
 
1593
1599
  this.max = undefined;
1594
1600
  this.min = undefined;
1601
+ this.total = undefined;
1595
1602
  this.validity = undefined;
1596
1603
  this.value = undefined;
1597
1604
 
1605
+ /**
1606
+ * @private
1607
+ */
1608
+ this.counters = undefined;
1609
+
1598
1610
  /**
1599
1611
  * @private
1600
1612
  */
@@ -1627,6 +1639,13 @@ class AuroCounterGroup extends r {
1627
1639
  reflect: true,
1628
1640
  },
1629
1641
 
1642
+ /**
1643
+ * The total value of the counters.
1644
+ */
1645
+ total: {
1646
+ type: Number,
1647
+ },
1648
+
1630
1649
  /**
1631
1650
  * Reflects the validity state.
1632
1651
  */
@@ -1636,10 +1655,10 @@ class AuroCounterGroup extends r {
1636
1655
  },
1637
1656
 
1638
1657
  /**
1639
- * The current value.
1658
+ * The current individual values of the nested counters.
1640
1659
  */
1641
1660
  value: {
1642
- type: Number,
1661
+ type: Object,
1643
1662
  },
1644
1663
  };
1645
1664
  }
@@ -1656,14 +1675,13 @@ class AuroCounterGroup extends r {
1656
1675
  counter.disableMax = false;
1657
1676
  counter.disableMin = false;
1658
1677
 
1659
- if (this.value <= this.min) {
1678
+ if (this.total <= this.min) {
1660
1679
  counter.disableMin = true;
1661
- } else if (this.value >= this.max) {
1680
+ } else if (this.total >= this.max) {
1662
1681
  counter.disableMax = true;
1663
1682
  }
1664
1683
  }
1665
1684
 
1666
-
1667
1685
  /**
1668
1686
  * Attaches input event listeners to all auro-counter elements within the component.
1669
1687
  * This method selects all `auro-counter` and `[auto-counter]` elements and adds an `input` event listener to each.
@@ -1671,8 +1689,8 @@ class AuroCounterGroup extends r {
1671
1689
  * @private
1672
1690
  */
1673
1691
  configureCounters() {
1674
- const counters = this.querySelectorAll("auro-counter, [auto-counter]");
1675
- counters.forEach((counter) => {
1692
+ this.counters = this.querySelectorAll("auro-counter, [auto-counter]");
1693
+ this.counters.forEach((counter) => {
1676
1694
  counter.addEventListener("input", () => this.updateValue());
1677
1695
  });
1678
1696
  }
@@ -1695,12 +1713,18 @@ class AuroCounterGroup extends r {
1695
1713
  * @private
1696
1714
  */
1697
1715
  updateValue() {
1698
- const counters = this.querySelectorAll("auro-counter, [auro-counter]");
1699
- this.value = Array.from(counters).reduce(
1716
+ this.value = Array.from(this.counters).reduce((acc, counter, index) => {
1717
+ const name = counter.hasAttribute('name') ? counter.getAttribute('name') : `counter-${index}`;
1718
+ acc[name] = this.safeNumberConversion(counter.value);
1719
+ return acc;
1720
+ }, {});
1721
+
1722
+ this.total = Array.from(this.counters).reduce(
1700
1723
  (total, counter) => total + this.safeNumberConversion(counter.value),
1701
1724
  0,
1702
1725
  );
1703
- counters.forEach((counter) => {
1726
+
1727
+ this.counters.forEach((counter) => {
1704
1728
  this.manageDisabled(counter);
1705
1729
  });
1706
1730
  }
@@ -1711,7 +1735,8 @@ class AuroCounterGroup extends r {
1711
1735
  this.dispatchEvent(
1712
1736
  new CustomEvent("input", {
1713
1737
  detail: {
1714
- value: this.value,
1738
+ total: this.total,
1739
+ value: this.value
1715
1740
  },
1716
1741
  }),
1717
1742
  {
@@ -26,9 +26,15 @@ export class AuroCounterGroup extends LitElement {
26
26
 
27
27
  this.max = undefined;
28
28
  this.min = undefined;
29
+ this.total = undefined;
29
30
  this.validity = undefined;
30
31
  this.value = undefined;
31
32
 
33
+ /**
34
+ * @private
35
+ */
36
+ this.counters = undefined;
37
+
32
38
  /**
33
39
  * @private
34
40
  */
@@ -61,6 +67,13 @@ export class AuroCounterGroup extends LitElement {
61
67
  reflect: true,
62
68
  },
63
69
 
70
+ /**
71
+ * The total value of the counters.
72
+ */
73
+ total: {
74
+ type: Number,
75
+ },
76
+
64
77
  /**
65
78
  * Reflects the validity state.
66
79
  */
@@ -70,10 +83,10 @@ export class AuroCounterGroup extends LitElement {
70
83
  },
71
84
 
72
85
  /**
73
- * The current value.
86
+ * The current individual values of the nested counters.
74
87
  */
75
88
  value: {
76
- type: Number,
89
+ type: Object,
77
90
  },
78
91
  };
79
92
  }
@@ -90,14 +103,13 @@ export class AuroCounterGroup extends LitElement {
90
103
  counter.disableMax = false;
91
104
  counter.disableMin = false;
92
105
 
93
- if (this.value <= this.min) {
106
+ if (this.total <= this.min) {
94
107
  counter.disableMin = true;
95
- } else if (this.value >= this.max) {
108
+ } else if (this.total >= this.max) {
96
109
  counter.disableMax = true;
97
110
  }
98
111
  }
99
112
 
100
-
101
113
  /**
102
114
  * Attaches input event listeners to all auro-counter elements within the component.
103
115
  * This method selects all `auro-counter` and `[auto-counter]` elements and adds an `input` event listener to each.
@@ -105,8 +117,8 @@ export class AuroCounterGroup extends LitElement {
105
117
  * @private
106
118
  */
107
119
  configureCounters() {
108
- const counters = this.querySelectorAll("auro-counter, [auto-counter]");
109
- counters.forEach((counter) => {
120
+ this.counters = this.querySelectorAll("auro-counter, [auto-counter]");
121
+ this.counters.forEach((counter) => {
110
122
  counter.addEventListener("input", () => this.updateValue());
111
123
  });
112
124
  }
@@ -129,12 +141,18 @@ export class AuroCounterGroup extends LitElement {
129
141
  * @private
130
142
  */
131
143
  updateValue() {
132
- const counters = this.querySelectorAll("auro-counter, [auro-counter]");
133
- this.value = Array.from(counters).reduce(
144
+ this.value = Array.from(this.counters).reduce((acc, counter, index) => {
145
+ const name = counter.hasAttribute('name') ? counter.getAttribute('name') : `counter-${index}`;
146
+ acc[name] = this.safeNumberConversion(counter.value);
147
+ return acc;
148
+ }, {});
149
+
150
+ this.total = Array.from(this.counters).reduce(
134
151
  (total, counter) => total + this.safeNumberConversion(counter.value),
135
152
  0,
136
153
  );
137
- counters.forEach((counter) => {
154
+
155
+ this.counters.forEach((counter) => {
138
156
  this.manageDisabled(counter);
139
157
  });
140
158
  }
@@ -145,7 +163,8 @@ export class AuroCounterGroup extends LitElement {
145
163
  this.dispatchEvent(
146
164
  new CustomEvent("input", {
147
165
  detail: {
148
- value: this.value,
166
+ total: this.total,
167
+ value: this.value
149
168
  },
150
169
  }),
151
170
  {
@@ -210,6 +210,12 @@ export class AuroCounter extends LitElement {
210
210
  }
211
211
  }
212
212
 
213
+ /**
214
+ * Handles the slot change event.
215
+ * This method is called when the slot content changes.
216
+ * It triggers the checkSlots method to update the component state based on the new slot content.
217
+ * @private
218
+ */
213
219
  handleSlotChange() {
214
220
  this.checkSlots();
215
221
  }
@@ -373,13 +373,13 @@ More info and automated migrator: https://sass-lang.com/d/import
373
373
 
374
374
  
375
375
  ./src/index.js → dist...
376
- created dist in 7.4s
376
+ created dist in 7.3s
377
377
  
378
378
  ./demo/index.js → ./demo/...
379
- created ./demo/ in 3.7s
379
+ created ./demo/ in 3.6s
380
380
  
381
381
  ./demo/api.js → ./demo/...
382
- created ./demo/ in 3.3s
382
+ created ./demo/ in 3.4s
383
383
 
384
384
  > @aurodesignsystem/auro-datepicker@3.2.0 build:docs
385
385
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component datepicker
@@ -93,10 +93,10 @@ In cases where the project is not able to process JS assets, there are pre-proce
93
93
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
94
94
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
95
95
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
96
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.12/dist/auro-dropdown__bundled.js" type="module"></script>
97
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.12/dist/auro-input__bundled.js" type="module"></script>
98
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-popover@2.0.0-beta.12/dist/auro-popover__bundled.js" type="module"></script>
99
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-datepicker@2.0.0-beta.12/dist/auro-datepicker__bundled.js" type="module"></script>
96
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.13/dist/auro-dropdown__bundled.js" type="module"></script>
97
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.13/dist/auro-input__bundled.js" type="module"></script>
98
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-popover@2.0.0-beta.13/dist/auro-popover__bundled.js" type="module"></script>
99
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-datepicker@2.0.0-beta.13/dist/auro-datepicker__bundled.js" type="module"></script>
100
100
  <!-- AURO-GENERATED-CONTENT:END -->
101
101
 
102
102
  ## auro-datepicker use cases
@@ -90,13 +90,13 @@ More info and automated migrator: https://sass-lang.com/d/import
90
90
 
91
91
  
92
92
  ./src/index.js → dist...
93
- created dist in 1.2s
93
+ created dist in 1.1s
94
94
  
95
95
  ./demo/index.js → ./demo/...
96
- created ./demo/ in 761ms
96
+ created ./demo/ in 840ms
97
97
  
98
98
  ./demo/api.js → ./demo/...
99
- created ./demo/ in 641ms
99
+ created ./demo/ in 682ms
100
100
 
101
101
  > @aurodesignsystem/auro-dropdown@3.0.0 build:docs
102
102
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component dropdown
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 1.2s
7
+ created dist in 1s
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 875ms
10
+ created ./demo/ in 764ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 886ms
13
+ created ./demo/ in 890ms
@@ -97,7 +97,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
97
97
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
98
98
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.9.2/dist/tokens/CSSCustomProperties.css" />
99
99
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
100
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.12/dist/auro-dropdown__bundled.js" type="module"></script>
100
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.13/dist/auro-dropdown__bundled.js" type="module"></script>
101
101
  <!-- AURO-GENERATED-CONTENT:END -->
102
102
 
103
103
  ## auro-dropdown use cases
@@ -69,13 +69,13 @@ Run in verbose mode to see all warnings.
69
69
 
70
70
  
71
71
  ./src/index.js → dist...
72
- created dist in 470ms
72
+ created dist in 578ms
73
73
  
74
74
  ./demo/index.js → ./demo/...
75
- created ./demo/ in 362ms
75
+ created ./demo/ in 320ms
76
76
  
77
77
  ./demo/api.js → ./demo/...
78
- created ./demo/ in 308ms
78
+ created ./demo/ in 185ms
79
79
 
80
80
  > @aurodesignsystem/auro-form@1.0.0 build:docs
81
81
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component form
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 520ms
7
+ created dist in 612ms
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 259ms
10
+ created ./demo/ in 250ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 294ms
13
+ created ./demo/ in 217ms
@@ -97,7 +97,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
97
97
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
98
98
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
99
99
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
100
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-form@2.0.0-beta.12/dist/auro-form__bundled.js" type="module"></script>
100
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-form@2.0.0-beta.13/dist/auro-form__bundled.js" type="module"></script>
101
101
  <!-- AURO-GENERATED-CONTENT:END -->
102
102
 
103
103
  ## auro-form use cases
@@ -216,13 +216,13 @@ More info and automated migrator: https://sass-lang.com/d/import
216
216
 
217
217
  
218
218
  ./src/index.js → dist...
219
- created dist in 1.5s
219
+ created dist in 1.1s
220
220
  
221
221
  ./demo/index.js → ./demo/...
222
- created ./demo/ in 1.2s
222
+ created ./demo/ in 779ms
223
223
  
224
224
  ./demo/api.js → ./demo/...
225
- created ./demo/ in 717ms
225
+ created ./demo/ in 692ms
226
226
 
227
227
  > @aurodesignsystem/auro-input@4.2.0 build:docs
228
228
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component input
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 1.3s
7
+ created dist in 1.6s
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 1.1s
10
+ created ./demo/ in 985ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 820ms
13
+ created ./demo/ in 697ms
@@ -89,7 +89,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
89
89
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
90
90
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
91
91
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
92
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.12/dist/auro-input__bundled.js" type="module"></script>
92
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.13/dist/auro-input__bundled.js" type="module"></script>
93
93
  <!-- AURO-GENERATED-CONTENT:END -->
94
94
 
95
95
  ## auro-input use cases
@@ -101,13 +101,13 @@ More info and automated migrator: https://sass-lang.com/d/import
101
101
 
102
102
  
103
103
  ./src/index.js → dist...
104
- created dist in 976ms
104
+ created dist in 1s
105
105
  
106
106
  ./demo/index.js → ./demo/...
107
- created ./demo/ in 867ms
107
+ created ./demo/ in 677ms
108
108
  
109
109
  ./demo/api.js → ./demo/...
110
- created ./demo/ in 803ms
110
+ created ./demo/ in 611ms
111
111
 
112
112
  > @aurodesignsystem/auro-menu@4.1.4 build:docs
113
113
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component menu
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 1.1s
7
+ created dist in 831ms
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 918ms
10
+ created ./demo/ in 921ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 471ms
13
+ created ./demo/ in 671ms
@@ -100,7 +100,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
100
100
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
101
101
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
102
102
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
103
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.12/dist/auro-menu__bundled.js" type="module"></script>
103
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.13/dist/auro-menu__bundled.js" type="module"></script>
104
104
  <!-- AURO-GENERATED-CONTENT:END -->
105
105
 
106
106
  ## auro-menu use cases
@@ -138,13 +138,13 @@ Run in verbose mode to see all warnings.
138
138
 
139
139
  
140
140
  ./src/index.js → dist...
141
- created dist in 773ms
141
+ created dist in 832ms
142
142
  
143
143
  ./demo/index.js → ./demo/...
144
- created ./demo/ in 399ms
144
+ created ./demo/ in 561ms
145
145
  
146
146
  ./demo/api.js → ./demo/...
147
- created ./demo/ in 526ms
147
+ created ./demo/ in 622ms
148
148
 
149
149
  > @aurodesignsystem/auro-radio@4.1.1 build:docs
150
150
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component radio