@stonecrop/aform 0.42.0 → 0.43.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.
@@ -129,19 +129,19 @@
129
129
  color: var(--sc-input-active-border-color);
130
130
  }
131
131
 
132
- .acurrency__row[data-v-140c66a7] {
132
+ .acurrency__row[data-v-4f9b4e42] {
133
133
  display: flex;
134
134
  gap: 1ch;
135
135
  }
136
- .acurrency__row--base[data-v-140c66a7] {
136
+ .acurrency__row--base[data-v-4f9b4e42] {
137
137
  margin-top: 1.5rem;
138
138
  }
139
- .acurrency__field[data-v-140c66a7] {
139
+ .acurrency__field[data-v-4f9b4e42] {
140
140
  position: relative;
141
141
  flex: 1;
142
142
  min-width: 0;
143
143
  }
144
- .acurrency__group[data-v-140c66a7] {
144
+ .acurrency__group[data-v-4f9b4e42] {
145
145
  display: flex;
146
146
  align-items: stretch;
147
147
  box-sizing: border-box;
@@ -150,14 +150,14 @@
150
150
  border: 1px solid var(--sc-input-border-color);
151
151
  border-radius: var(--sc-border-radius);
152
152
  }
153
- .acurrency__group[data-v-140c66a7]:focus-within {
153
+ .acurrency__group[data-v-4f9b4e42]:focus-within {
154
154
  border-color: var(--sc-input-active-border-color);
155
155
  }
156
156
 
157
157
  /* Wraps just the amount input so its floating label (`left: 10px` of the nearest
158
158
  `position: relative` ancestor, per .aform_field-label) anchors above the amount box
159
159
  specifically, not the group's outer left edge — which is now the currency prefix. */
160
- .acurrency__amount-wrap[data-v-140c66a7] {
160
+ .acurrency__amount-wrap[data-v-4f9b4e42] {
161
161
  position: relative;
162
162
  flex: 1;
163
163
  min-width: 0;
@@ -165,15 +165,15 @@
165
165
 
166
166
  /* The amount label ("Total") is the primary label for the whole merged group — bumped up
167
167
  slightly from the shared .aform_field-label size so it reads as the group's main label. */
168
- .acurrency__amount-wrap .aform_field-label[data-v-140c66a7] {
168
+ .acurrency__amount-wrap .aform_field-label[data-v-4f9b4e42] {
169
169
  font-size: 0.85rem;
170
170
  }
171
171
 
172
172
  /* The label names the whole group, so focus on the currency picker darkens it too. */
173
- .acurrency__group:focus-within .acurrency__amount-wrap > .aform_field-label[data-v-140c66a7] {
173
+ .acurrency__group:focus-within .acurrency__amount-wrap > .aform_field-label[data-v-4f9b4e42] {
174
174
  color: var(--sc-input-active-label-color);
175
175
  }
176
- .acurrency__amount[data-v-140c66a7] {
176
+ .acurrency__amount[data-v-4f9b4e42] {
177
177
  width: 100%;
178
178
  box-sizing: border-box;
179
179
  border: none;
@@ -188,8 +188,8 @@
188
188
  appearance: textfield;
189
189
  -moz-appearance: textfield;
190
190
  }
191
- .acurrency__amount[data-v-140c66a7]::-webkit-outer-spin-button,
192
- .acurrency__amount[data-v-140c66a7]::-webkit-inner-spin-button {
191
+ .acurrency__amount[data-v-4f9b4e42]::-webkit-outer-spin-button,
192
+ .acurrency__amount[data-v-4f9b4e42]::-webkit-inner-spin-button {
193
193
  appearance: none;
194
194
  -webkit-appearance: none;
195
195
  margin: 0;
@@ -200,7 +200,7 @@
200
200
  picked, not the full name), tinted background, left-rounded to match the group's own
201
201
  corner so the tint doesn't overhang the border. The dropdown itself isn't bound by this
202
202
  width — see AFormLink's .autocomplete-results — so search results still show full names. */
203
- .acurrency__currency[data-v-140c66a7] {
203
+ .acurrency__currency[data-v-4f9b4e42] {
204
204
  position: relative;
205
205
  flex: 0 0 auto;
206
206
  min-width: 4.5rem;
@@ -211,11 +211,11 @@
211
211
 
212
212
  /* The picker's list hangs from the group's outer border to the picker's divider, so its side lines
213
213
  continue theirs. `.acurrency__group` is there to outrank AFormLink's own embedded `min-width`. */
214
- .acurrency__group .acurrency__currency[data-v-140c66a7] .autocomplete-results {
214
+ .acurrency__group .acurrency__currency[data-v-4f9b4e42] .autocomplete-results {
215
215
  left: -1px;
216
216
  min-width: calc(100% + 2px);
217
217
  }
218
- .acurrency__base-field[data-v-140c66a7] {
218
+ .acurrency__base-field[data-v-4f9b4e42] {
219
219
  width: 100%;
220
220
  box-sizing: border-box;
221
221
  font-size: 1rem;
@@ -226,13 +226,13 @@
226
226
  appearance: textfield;
227
227
  -moz-appearance: textfield;
228
228
  }
229
- .acurrency__base-field[data-v-140c66a7]:disabled {
229
+ .acurrency__base-field[data-v-4f9b4e42]:disabled {
230
230
  color: var(--sc-gray-50);
231
231
  }
232
232
 
233
233
  /* Base Amount and Exchange Rate are read-only — the number spinner offers nothing here. */
234
- .acurrency__base-field[data-v-140c66a7]::-webkit-outer-spin-button,
235
- .acurrency__base-field[data-v-140c66a7]::-webkit-inner-spin-button {
234
+ .acurrency__base-field[data-v-4f9b4e42]::-webkit-outer-spin-button,
235
+ .acurrency__base-field[data-v-4f9b4e42]::-webkit-inner-spin-button {
236
236
  appearance: none;
237
237
  -webkit-appearance: none;
238
238
  margin: 0;
@@ -976,19 +976,19 @@ legend[data-v-8215ff87] {
976
976
  background-color: var(--sc-gray-5);
977
977
  }
978
978
 
979
- .aquantity__row[data-v-05d1da97] {
979
+ .aquantity__row[data-v-88f44f99] {
980
980
  display: flex;
981
981
  gap: 1ch;
982
982
  }
983
- .aquantity__row--stock[data-v-05d1da97] {
983
+ .aquantity__row--stock[data-v-88f44f99] {
984
984
  margin-top: 1.5rem;
985
985
  }
986
- .aquantity__field[data-v-05d1da97] {
986
+ .aquantity__field[data-v-88f44f99] {
987
987
  position: relative;
988
988
  flex: 1;
989
989
  min-width: 0;
990
990
  }
991
- .aquantity__group[data-v-05d1da97] {
991
+ .aquantity__group[data-v-88f44f99] {
992
992
  position: relative;
993
993
  display: flex;
994
994
  align-items: stretch;
@@ -998,10 +998,10 @@ legend[data-v-8215ff87] {
998
998
  border: 1px solid var(--sc-input-border-color);
999
999
  border-radius: var(--sc-border-radius);
1000
1000
  }
1001
- .aquantity__group[data-v-05d1da97]:focus-within {
1001
+ .aquantity__group[data-v-88f44f99]:focus-within {
1002
1002
  border-color: var(--sc-input-active-border-color);
1003
1003
  }
1004
- .aquantity__qty[data-v-05d1da97] {
1004
+ .aquantity__qty[data-v-88f44f99] {
1005
1005
  flex: 1;
1006
1006
  min-width: 0;
1007
1007
  border: none;
@@ -1015,18 +1015,18 @@ legend[data-v-8215ff87] {
1015
1015
  appearance: textfield;
1016
1016
  -moz-appearance: textfield;
1017
1017
  }
1018
- .aquantity__qty[data-v-05d1da97]::-webkit-outer-spin-button,
1019
- .aquantity__qty[data-v-05d1da97]::-webkit-inner-spin-button {
1018
+ .aquantity__qty[data-v-88f44f99]::-webkit-outer-spin-button,
1019
+ .aquantity__qty[data-v-88f44f99]::-webkit-inner-spin-button {
1020
1020
  appearance: none;
1021
1021
  -webkit-appearance: none;
1022
1022
  margin: 0;
1023
1023
  }
1024
- .aquantity__uom[data-v-05d1da97] {
1024
+ .aquantity__uom[data-v-88f44f99] {
1025
1025
  position: relative;
1026
1026
  flex: 0 0 auto;
1027
1027
  border-left: 1px solid var(--sc-input-border-color);
1028
1028
  }
1029
- .aquantity__uom-toggle[data-v-05d1da97] {
1029
+ .aquantity__uom-toggle[data-v-88f44f99] {
1030
1030
  display: flex;
1031
1031
  align-items: center;
1032
1032
  gap: 0.75ch;
@@ -1041,11 +1041,11 @@ legend[data-v-8215ff87] {
1041
1041
  white-space: nowrap;
1042
1042
  cursor: pointer;
1043
1043
  }
1044
- .aquantity__uom-toggle[data-v-05d1da97]:disabled {
1044
+ .aquantity__uom-toggle[data-v-88f44f99]:disabled {
1045
1045
  cursor: not-allowed;
1046
1046
  color: var(--sc-gray-50);
1047
1047
  }
1048
- .aquantity__caret[data-v-05d1da97] {
1048
+ .aquantity__caret[data-v-88f44f99] {
1049
1049
  display: inline-block;
1050
1050
  width: 0;
1051
1051
  height: 0;
@@ -1056,7 +1056,7 @@ legend[data-v-8215ff87] {
1056
1056
 
1057
1057
  /* Hangs from the divider beside the toggle to the field's outer border, so its side lines continue
1058
1058
  theirs; a long unit name widens it to the left. */
1059
- .aquantity__uom-menu[data-v-05d1da97] {
1059
+ .aquantity__uom-menu[data-v-88f44f99] {
1060
1060
  position: absolute;
1061
1061
  top: 100%;
1062
1062
  right: -1px;
@@ -1074,16 +1074,16 @@ legend[data-v-8215ff87] {
1074
1074
  border-radius: 0 0 var(--sc-border-radius) var(--sc-border-radius);
1075
1075
  box-shadow: var(--sc-overlay-shadow);
1076
1076
  }
1077
- .aquantity__uom-option[data-v-05d1da97] {
1077
+ .aquantity__uom-option[data-v-88f44f99] {
1078
1078
  padding: 0.4ch 1ch;
1079
1079
  white-space: nowrap;
1080
1080
  cursor: pointer;
1081
1081
  }
1082
- .aquantity__uom-option.is-active[data-v-05d1da97],
1083
- .aquantity__uom-option[data-v-05d1da97]:hover {
1082
+ .aquantity__uom-option.is-active[data-v-88f44f99],
1083
+ .aquantity__uom-option[data-v-88f44f99]:hover {
1084
1084
  background-color: var(--sc-row-color-zebra-light);
1085
1085
  }
1086
- .aquantity__stock-field[data-v-05d1da97] {
1086
+ .aquantity__stock-field[data-v-88f44f99] {
1087
1087
  width: 100%;
1088
1088
  font-size: 1rem;
1089
1089
  padding: 0.5rem 1ch;
@@ -1091,7 +1091,7 @@ legend[data-v-8215ff87] {
1091
1091
  border-radius: var(--sc-border-radius);
1092
1092
  outline: none;
1093
1093
  }
1094
- .aquantity__stock-field[data-v-05d1da97]:disabled {
1094
+ .aquantity__stock-field[data-v-88f44f99]:disabled {
1095
1095
  color: var(--sc-gray-50);
1096
1096
  }
1097
1097
 
@@ -11,9 +11,9 @@ type __VLS_ModelProps = {
11
11
  };
12
12
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
13
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
- "update:modelValue": (value: CurrencyValue | null) => any;
14
+ "update:modelValue": (value: CurrencyValue | null | undefined) => any;
15
15
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
- "onUpdate:modelValue"?: ((value: CurrencyValue | null) => any) | undefined;
16
+ "onUpdate:modelValue"?: ((value: CurrencyValue | null | undefined) => any) | undefined;
17
17
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ACurrencyInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/ACurrencyInput.vue"],"names":[],"mappings":"AAoYA,OAAO,KAAK,EAAkB,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAKjG,KAAK,WAAW,GAAG,cAAc,GAAG;IAClC,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAC;AA+LH,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;CACjC,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA4NxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"ACurrencyInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/ACurrencyInput.vue"],"names":[],"mappings":"AA6XA,OAAO,KAAK,EAAkB,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAKjG,KAAK,WAAW,GAAG,cAAc,GAAG;IAClC,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAC;AA+KH,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;CACjC,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA4NxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -11,9 +11,9 @@ type __VLS_ModelProps = {
11
11
  };
12
12
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
13
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
- "update:modelValue": (value: QuantityValue | null) => any;
14
+ "update:modelValue": (value: QuantityValue | null | undefined) => any;
15
15
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
- "onUpdate:modelValue"?: ((value: QuantityValue | null) => any) | undefined;
16
+ "onUpdate:modelValue"?: ((value: QuantityValue | null | undefined) => any) | undefined;
17
17
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"AQuantityInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/AQuantityInput.vue"],"names":[],"mappings":"AA8YA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAGjF,KAAK,WAAW,GAAG,cAAc,GAAG;IAClC,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAC9B,CAAC;AA2JH,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;CACjC,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAgQxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"AQuantityInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/AQuantityInput.vue"],"names":[],"mappings":"AA6YA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAGjF,KAAK,WAAW,GAAG,cAAc,GAAG;IAClC,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAC9B,CAAC;AAuJH,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;CACjC,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAgQxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stonecrop/aform",
3
- "version": "0.42.0",
3
+ "version": "0.43.0",
4
4
  "description": "Schema-driven form components for Stonecrop",
5
5
  "keywords": [
6
6
  "components",
@@ -47,18 +47,18 @@
47
47
  "@vueuse/components": "^14.2.1",
48
48
  "@vueuse/core": "^14.2.1",
49
49
  "temporal-polyfill": "^1.0.5",
50
- "@stonecrop/schema": "0.42.0",
51
- "@stonecrop/themes": "0.42.0",
52
- "@stonecrop/atable": "0.42.0",
53
- "@stonecrop/utilities": "0.42.0"
50
+ "@stonecrop/atable": "0.43.0",
51
+ "@stonecrop/utilities": "0.43.0",
52
+ "@stonecrop/themes": "0.43.0",
53
+ "@stonecrop/schema": "0.43.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@microsoft/api-extractor": "^7.58.7",
57
57
  "@types/node": "^24.12.4",
58
58
  "@vitejs/plugin-vue": "^6.0.6",
59
- "@vitest/browser-playwright": "^4.1.11",
60
- "@vitest/coverage-istanbul": "^4.1.11",
61
- "@vitest/ui": "^4.1.11",
59
+ "@vitest/browser-playwright": "5.0.1",
60
+ "@vitest/coverage-istanbul": "5.0.1",
61
+ "@vitest/ui": "5.0.1",
62
62
  "@vue/test-utils": "^2.4.10",
63
63
  "jsdom": "^29.1.1",
64
64
  "oxlint": "1.67.0",
@@ -68,7 +68,7 @@
68
68
  "typescript": "^6.0.3",
69
69
  "vite": "^8.2.2",
70
70
  "vite-plugin-lib-inject-css": "^2.2.2",
71
- "vitest": "^4.1.11",
71
+ "vitest": "5.0.1",
72
72
  "vue": "^3.5.33",
73
73
  "vue-component-meta": "^3.3.11",
74
74
  "vue-router": "^5.0.6",