@aurodesignsystem/auro-formkit 2.0.0-beta.15 → 2.0.0-beta.17

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 (186) hide show
  1. package/.turbo/cache/000950e13093845f-meta.json +1 -1
  2. package/.turbo/cache/000950e13093845f.tar.zst +0 -0
  3. package/.turbo/cache/02ee016619902665-meta.json +1 -0
  4. package/.turbo/cache/02ee016619902665.tar.zst +0 -0
  5. package/.turbo/cache/06ca4027e423c554-meta.json +1 -0
  6. package/.turbo/cache/06ca4027e423c554.tar.zst +0 -0
  7. package/.turbo/cache/1e855b2163b7c980-meta.json +1 -0
  8. package/.turbo/cache/1e855b2163b7c980.tar.zst +0 -0
  9. package/.turbo/cache/2059bc724ac24519-meta.json +1 -1
  10. package/.turbo/cache/2059bc724ac24519.tar.zst +0 -0
  11. package/.turbo/cache/23b3a2fea223679d-meta.json +1 -1
  12. package/.turbo/cache/23b3a2fea223679d.tar.zst +0 -0
  13. package/.turbo/cache/26dbf393768f87cc-meta.json +1 -0
  14. package/.turbo/cache/26dbf393768f87cc.tar.zst +0 -0
  15. package/.turbo/cache/2c0d681132c153dd-meta.json +1 -1
  16. package/.turbo/cache/31bd5687f46c7eba-meta.json +1 -1
  17. package/.turbo/cache/3488cff10dd06acd-meta.json +1 -1
  18. package/.turbo/cache/3488cff10dd06acd.tar.zst +0 -0
  19. package/.turbo/cache/3c8718d2ba6d3fe5-meta.json +1 -0
  20. package/.turbo/cache/3c8718d2ba6d3fe5.tar.zst +0 -0
  21. package/.turbo/cache/4006a206400d5c7b-meta.json +1 -1
  22. package/.turbo/cache/43693504bf6e7c4c-meta.json +1 -1
  23. package/.turbo/cache/45cd32cd38eacbcb-meta.json +1 -1
  24. package/.turbo/cache/492dda333b8d15f1-meta.json +1 -1
  25. package/.turbo/cache/50cd7dcfc9f820c5-meta.json +1 -1
  26. package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -1
  27. package/.turbo/cache/56f2745125fdd552-meta.json +1 -1
  28. package/.turbo/cache/56f2745125fdd552.tar.zst +0 -0
  29. package/.turbo/cache/5b57cc0e26e1fd5d-meta.json +1 -0
  30. package/.turbo/cache/5b57cc0e26e1fd5d.tar.zst +0 -0
  31. package/.turbo/cache/5f43911cbacf7df1-meta.json +1 -1
  32. package/.turbo/cache/5f43911cbacf7df1.tar.zst +0 -0
  33. package/.turbo/cache/60ad74320c682a2b-meta.json +1 -1
  34. package/.turbo/cache/61e218aba69cff58-meta.json +1 -1
  35. package/.turbo/cache/647bda3b31d82dc2-meta.json +1 -0
  36. package/.turbo/cache/647bda3b31d82dc2.tar.zst +0 -0
  37. package/.turbo/cache/6951c2a52e5ab5f7-meta.json +1 -1
  38. package/.turbo/cache/6951c2a52e5ab5f7.tar.zst +0 -0
  39. package/.turbo/cache/77da375a012de9d0-meta.json +1 -1
  40. package/.turbo/cache/78418f9089673a21-meta.json +1 -1
  41. package/.turbo/cache/7964d1656e9e702a-meta.json +1 -1
  42. package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -1
  43. package/.turbo/cache/7c9ca6163e61285c-meta.json +1 -1
  44. package/.turbo/cache/876b8fa390c8ec81-meta.json +1 -1
  45. package/.turbo/cache/8bb856bd31b5b479-meta.json +1 -1
  46. package/.turbo/cache/8f287fd5d33579ae-meta.json +1 -1
  47. package/.turbo/cache/8f287fd5d33579ae.tar.zst +0 -0
  48. package/.turbo/cache/8f5fef3e04a6fcfa-meta.json +1 -1
  49. package/.turbo/cache/8fcce3ba8357be57-meta.json +1 -0
  50. package/.turbo/cache/8fcce3ba8357be57.tar.zst +0 -0
  51. package/.turbo/cache/9b5868be65819fdf-meta.json +1 -0
  52. package/.turbo/cache/9b5868be65819fdf.tar.zst +0 -0
  53. package/.turbo/cache/a227e8174447e364-meta.json +1 -0
  54. package/.turbo/cache/a227e8174447e364.tar.zst +0 -0
  55. package/.turbo/cache/a779ea8b78ce9d59-meta.json +1 -0
  56. package/.turbo/cache/a779ea8b78ce9d59.tar.zst +0 -0
  57. package/.turbo/cache/a9c36a3534c5496b-meta.json +1 -0
  58. package/.turbo/cache/a9c36a3534c5496b.tar.zst +0 -0
  59. package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -1
  60. package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -1
  61. package/.turbo/cache/ba270a0ef147f2e5-meta.json +1 -1
  62. package/.turbo/cache/be0b95293ea517cc-meta.json +1 -1
  63. package/.turbo/cache/c03a12ff38ba1e02-meta.json +1 -1
  64. package/.turbo/cache/c1312c6f8c051461-meta.json +1 -1
  65. package/.turbo/cache/c1312c6f8c051461.tar.zst +0 -0
  66. package/.turbo/cache/c3b2cc1b044a4135-meta.json +1 -0
  67. package/.turbo/cache/c3b2cc1b044a4135.tar.zst +0 -0
  68. package/.turbo/cache/c6c6411199b68170-meta.json +1 -1
  69. package/.turbo/cache/c6dbc49c3038946d-meta.json +1 -1
  70. package/.turbo/cache/cae7586c45bed13e-meta.json +1 -1
  71. package/.turbo/cache/cae7586c45bed13e.tar.zst +0 -0
  72. package/.turbo/cache/cf143eb1a55684db-meta.json +1 -1
  73. package/.turbo/cache/cf143eb1a55684db.tar.zst +0 -0
  74. package/.turbo/cache/d5b85352bc667f19-meta.json +1 -1
  75. package/.turbo/cache/d5b85352bc667f19.tar.zst +0 -0
  76. package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -1
  77. package/.turbo/cache/d775555355d6b8fc-meta.json +1 -1
  78. package/.turbo/cache/d7c3007be148d2a1-meta.json +1 -1
  79. package/.turbo/cache/db5e65d819bfe66b-meta.json +1 -1
  80. package/.turbo/cache/dc597b3ea4f61ec8-meta.json +1 -1
  81. package/.turbo/cache/e392fe0927e4af23-meta.json +1 -0
  82. package/.turbo/cache/e392fe0927e4af23.tar.zst +0 -0
  83. package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -1
  84. package/.turbo/cache/f2913bf19939d840-meta.json +1 -1
  85. package/.turbo/cache/f2913bf19939d840.tar.zst +0 -0
  86. package/.turbo/cache/f86b28e5ea2c66fe-meta.json +1 -1
  87. package/CHANGELOG.md +22 -0
  88. package/components/checkbox/.turbo/turbo-build.log +3 -3
  89. package/components/checkbox/.turbo/turbo-bundler.log +3 -3
  90. package/components/checkbox/README.md +1 -1
  91. package/components/combobox/.turbo/turbo-build.log +3 -3
  92. package/components/combobox/README.md +4 -4
  93. package/components/counter/.turbo/turbo-build$colon$sass.log +37 -6
  94. package/components/counter/.turbo/turbo-build.log +47 -10
  95. package/components/counter/.turbo/turbo-bundler.log +6 -3
  96. package/components/counter/.turbo/turbo-sass$colon$render.log +7 -1
  97. package/components/counter/README.md +1 -1
  98. package/components/counter/demo/api.md +8 -7
  99. package/components/counter/demo/api.min.js +3304 -247
  100. package/components/counter/demo/index.md +16 -20
  101. package/components/counter/demo/index.min.js +3304 -247
  102. package/components/counter/dist/auro-counter-group.d.ts +27 -7
  103. package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
  104. package/components/counter/dist/auro-counter-wrapper.d.ts +23 -0
  105. package/components/counter/dist/auro-counter-wrapper.d.ts.map +1 -0
  106. package/components/counter/dist/index.js +3304 -247
  107. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +3 -0
  108. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts.map +1 -0
  109. package/components/counter/dist/styles/{counter-group-color-css.d.ts → counter-wrapper-css.d.ts} +1 -1
  110. package/components/counter/dist/styles/counter-wrapper-css.d.ts.map +1 -0
  111. package/components/counter/src/auro-counter-group.js +72 -19
  112. package/components/counter/src/auro-counter-wrapper.js +54 -0
  113. package/components/counter/src/styles/counter-group-css.js +1 -1
  114. package/components/counter/src/styles/counter-group.css +4 -8
  115. package/components/counter/src/styles/counter-group.scss +6 -10
  116. package/components/counter/src/styles/counter-wrapper-color-css.js +2 -0
  117. package/components/counter/src/styles/{counter-group-color.css → counter-wrapper-color.css} +1 -1
  118. package/components/counter/src/styles/{counter-group-color.scss → counter-wrapper-color.scss} +1 -1
  119. package/components/counter/src/styles/counter-wrapper-css.js +2 -0
  120. package/components/counter/src/styles/counter-wrapper.css +15 -0
  121. package/components/counter/src/styles/counter-wrapper.scss +29 -0
  122. package/components/datepicker/.turbo/turbo-build.log +3 -3
  123. package/components/datepicker/README.md +4 -4
  124. package/components/dropdown/.turbo/turbo-build.log +3 -3
  125. package/components/dropdown/.turbo/turbo-bundler.log +2 -2
  126. package/components/dropdown/README.md +1 -1
  127. package/components/form/.turbo/turbo-build.log +3 -3
  128. package/components/form/.turbo/turbo-bundler.log +3 -3
  129. package/components/form/README.md +11 -9
  130. package/components/form/demo/api.min.js +187 -22
  131. package/components/form/demo/index.min.js +187 -22
  132. package/components/form/demo/registerDemoDeps.js +5 -0
  133. package/components/form/demo/working.html +86 -0
  134. package/components/form/dist/auro-form.d.ts +83 -2
  135. package/components/form/dist/auro-form.d.ts.map +1 -1
  136. package/components/form/dist/index.js +187 -22
  137. package/components/form/package.json +3 -1
  138. package/components/form/src/auro-form.js +187 -25
  139. package/components/form/src/styles/style-css.js +1 -1
  140. package/components/form/src/styles/style.css +8 -0
  141. package/components/form/src/styles/style.scss +10 -0
  142. package/components/input/.turbo/turbo-build.log +3 -3
  143. package/components/input/.turbo/turbo-bundler.log +3 -3
  144. package/components/input/README.md +1 -1
  145. package/components/menu/.turbo/turbo-build.log +3 -3
  146. package/components/menu/.turbo/turbo-bundler.log +3 -3
  147. package/components/menu/README.md +1 -1
  148. package/components/radio/.turbo/turbo-build.log +3 -3
  149. package/components/radio/.turbo/turbo-bundler.log +3 -3
  150. package/components/radio/README.md +1 -1
  151. package/components/select/.turbo/turbo-build.log +3 -3
  152. package/components/select/README.md +3 -3
  153. package/package.json +1 -1
  154. package/.turbo/cache/07028b4d43bdf4e1-meta.json +0 -1
  155. package/.turbo/cache/07028b4d43bdf4e1.tar.zst +0 -0
  156. package/.turbo/cache/0c8124a987c1cc05-meta.json +0 -1
  157. package/.turbo/cache/0c8124a987c1cc05.tar.zst +0 -0
  158. package/.turbo/cache/1b97859030a6d60b-meta.json +0 -1
  159. package/.turbo/cache/1b97859030a6d60b.tar.zst +0 -0
  160. package/.turbo/cache/1f6653e2ed4c0087-meta.json +0 -1
  161. package/.turbo/cache/1f6653e2ed4c0087.tar.zst +0 -0
  162. package/.turbo/cache/2690f6279766d11d-meta.json +0 -1
  163. package/.turbo/cache/2690f6279766d11d.tar.zst +0 -0
  164. package/.turbo/cache/50993de942ec15a9-meta.json +0 -1
  165. package/.turbo/cache/50993de942ec15a9.tar.zst +0 -0
  166. package/.turbo/cache/6081837e8943b62e-meta.json +0 -1
  167. package/.turbo/cache/6081837e8943b62e.tar.zst +0 -0
  168. package/.turbo/cache/6830a9e37c9d391f-meta.json +0 -1
  169. package/.turbo/cache/6830a9e37c9d391f.tar.zst +0 -0
  170. package/.turbo/cache/80410f4b5990ab83-meta.json +0 -1
  171. package/.turbo/cache/80410f4b5990ab83.tar.zst +0 -0
  172. package/.turbo/cache/9ae99e8e7bd83d06-meta.json +0 -1
  173. package/.turbo/cache/9ae99e8e7bd83d06.tar.zst +0 -0
  174. package/.turbo/cache/bfefe028012c089a-meta.json +0 -1
  175. package/.turbo/cache/bfefe028012c089a.tar.zst +0 -0
  176. package/.turbo/cache/dad3d78b33edd9e4-meta.json +0 -1
  177. package/.turbo/cache/dad3d78b33edd9e4.tar.zst +0 -0
  178. package/.turbo/cache/e9e36823f6c98f07-meta.json +0 -1
  179. package/.turbo/cache/e9e36823f6c98f07.tar.zst +0 -0
  180. package/.turbo/cache/ea8dd91dba19ddee-meta.json +0 -1
  181. package/.turbo/cache/ea8dd91dba19ddee.tar.zst +0 -0
  182. package/components/counter/dist/formkit/auro-dropdownVersion.d.ts +0 -3
  183. package/components/counter/dist/formkit/auro-dropdownVersion.d.ts.map +0 -1
  184. package/components/counter/dist/styles/counter-group-color-css.d.ts.map +0 -1
  185. package/components/counter/src/formkit/auro-dropdownVersion.js +0 -1
  186. package/components/counter/src/styles/counter-group-color-css.js +0 -2
@@ -11,6 +11,12 @@
11
11
  export class AuroCounterGroup extends LitElement {
12
12
  static get styles(): import("lit").CSSResult[];
13
13
  static get properties(): {
14
+ /**
15
+ * Indicates if the counter group is displayed as a dropdown.
16
+ */
17
+ isDropdown: {
18
+ type: BooleanConstructor;
19
+ };
14
20
  /**
15
21
  * The maximum value allowed for the whole group of counters.
16
22
  */
@@ -25,12 +31,6 @@ export class AuroCounterGroup extends LitElement {
25
31
  type: NumberConstructor;
26
32
  reflect: boolean;
27
33
  };
28
- /**
29
- * The total value of the counters.
30
- */
31
- total: {
32
- type: NumberConstructor;
33
- };
34
34
  /**
35
35
  * Reflects the validity state.
36
36
  */
@@ -38,6 +38,12 @@ export class AuroCounterGroup extends LitElement {
38
38
  type: StringConstructor;
39
39
  reflect: boolean;
40
40
  };
41
+ /**
42
+ * The total value of the counters.
43
+ */
44
+ total: {
45
+ type: NumberConstructor;
46
+ };
41
47
  /**
42
48
  * The current individual values of the nested counters.
43
49
  */
@@ -52,6 +58,7 @@ export class AuroCounterGroup extends LitElement {
52
58
  * AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
53
59
  */
54
60
  static register(name?: string): void;
61
+ isDropdown: boolean;
55
62
  max: any;
56
63
  min: any;
57
64
  total: number;
@@ -65,6 +72,12 @@ export class AuroCounterGroup extends LitElement {
65
72
  * @private
66
73
  */
67
74
  private validation;
75
+ /**
76
+ * Dynamically generated dropdown tag.
77
+ * @private
78
+ * @type {string}
79
+ */
80
+ private dropdownTag;
68
81
  /**
69
82
  * Dynamically disables increment/decrement buttons on a counter based on group value.
70
83
  * This method checks the total aggregated value against the group's min and max properties.
@@ -76,11 +89,18 @@ export class AuroCounterGroup extends LitElement {
76
89
  private manageDisabled;
77
90
  /**
78
91
  * Attaches input event listeners to all auro-counter elements within the component.
79
- * This method selects all `auro-counter` and `[auto-counter]` elements and adds an `input` event listener to each.
92
+ * This method selects all `auro-counter` and `[auro-counter]` elements and adds an `input` event listener to each.
80
93
  * The listener calls `this.updateValue()` whenever the value of a counter changes.
81
94
  * @private
82
95
  */
83
96
  private configureCounters;
97
+ /**
98
+ * Configures the dropdown counters by selecting all `auro-counter` elements
99
+ * and appending them to the `auro-counter-wrapper` element within the shadow DOM.
100
+ * Adds an event listener to each counter to update the value on input.
101
+ * @private
102
+ */
103
+ private configureDropdownCounters;
84
104
  /**
85
105
  * Safely converts a value to a number, returning 0 if invalid.
86
106
  * @private
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"auro-counter-group.d.ts","sourceRoot":"","sources":["../src/auro-counter-group.js"],"names":[],"mappings":"AAqBA;;;;;;;;;GASG;AACH;IAoCE,+CAEC;IAED;QAGI;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;MAKN;IA0GD;;;;;OAKG;IACH,uBAJW,MAAM,QAMhB;IAtMC,oBAAuB;IAEvB,SAAoB;IACpB,SAAoB;IACpB,cAAsB;IACtB,cAAyB;IACzB,UAAsB;IAEtB;;OAEG;IACH,iBAAyB;IAEzB;;OAEG;IACH,mBAA0C;IAQ1C;;;;OAIG;IACH,oBAAyF;IAyD3F;;;;;;;OAOG;IACH,uBASC;IAED;;;;;OAKG;IACH,0BAKC;IAED;;;;;OAKG;IACH,kCAYC;IAED;;;;;OAKG;IACH,6BAGC;IAED;;;;;OAKG;IACH,oBAeC;IAED,sCAgBC;IAaD,4CAWC;CACF;2BAhP0B,KAAK"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Auro Counter Wrapper is a group of counter components.
3
+ *
4
+ * This web component provides a flexible interface for grouping multiple counters, supporting
5
+ * validation, custom validity messages, and disabled states based on the group's value.
6
+ *
7
+ * @element auro-counter-group
8
+ * @extends LitElement
9
+ * @slot Default - Slot for counter elements.
10
+ */
11
+ export class AuroCounterWrapper extends LitElement {
12
+ static get styles(): import("lit").CSSResult[];
13
+ /**
14
+ * Registers the custom element with the browser.
15
+ * @param {string} [name="auro-counter-wrapper"] - Custom element name to register.
16
+ * @example
17
+ * AuroCounterWrapper.register("custom-counter-wrapper") // registers <custom-counter-wrapper/>
18
+ */
19
+ static register(name?: string): void;
20
+ render(): import("lit-html").TemplateResult;
21
+ }
22
+ import { LitElement } from "lit";
23
+ //# sourceMappingURL=auro-counter-wrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auro-counter-wrapper.d.ts","sourceRoot":"","sources":["../src/auro-counter-wrapper.js"],"names":[],"mappings":"AAaA;;;;;;;;;GASG;AACH;IAEE,+CAKC;IAED;;;;;OAKG;IACH,uBAJW,MAAM,QAMhB;IAGD,4CAEC;CACF;2BAxC0B,KAAK"}