@stonecrop/aform 0.43.0 → 0.45.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 (38) hide show
  1. package/dist/aform.js +1712 -829
  2. package/dist/aform.js.map +1 -1
  3. package/dist/assets/index.css +396 -258
  4. package/dist/src/components/AForm.vue.d.ts.map +1 -1
  5. package/dist/src/components/form/ACurrencyInput.vue.d.ts +0 -3
  6. package/dist/src/components/form/ACurrencyInput.vue.d.ts.map +1 -1
  7. package/dist/src/components/form/ADropdown.vue.d.ts +36 -2
  8. package/dist/src/components/form/ADropdown.vue.d.ts.map +1 -1
  9. package/dist/src/components/form/ADropdownList.vue.d.ts +26 -0
  10. package/dist/src/components/form/ADropdownList.vue.d.ts.map +1 -0
  11. package/dist/src/components/form/AFormLink.vue.d.ts +2 -2
  12. package/dist/src/components/form/AFormLink.vue.d.ts.map +1 -1
  13. package/dist/src/components/form/AQuantityInput.vue.d.ts +0 -3
  14. package/dist/src/components/form/AQuantityInput.vue.d.ts.map +1 -1
  15. package/dist/src/components/table/ATableTupleCurrencyPicker.vue.d.ts +8 -0
  16. package/dist/src/components/table/ATableTupleCurrencyPicker.vue.d.ts.map +1 -0
  17. package/dist/src/components/table/ATableTupleQuantityPicker.vue.d.ts +8 -0
  18. package/dist/src/components/table/ATableTupleQuantityPicker.vue.d.ts.map +1 -0
  19. package/dist/src/components/table/ATupleCellEditor.vue.d.ts +22 -0
  20. package/dist/src/components/table/ATupleCellEditor.vue.d.ts.map +1 -0
  21. package/dist/src/components/table/ATupleCellShell.vue.d.ts +24 -0
  22. package/dist/src/components/table/ATupleCellShell.vue.d.ts.map +1 -0
  23. package/dist/src/composables/dropdownList.d.ts.map +1 -1
  24. package/dist/src/composables/fieldErrorA11y.d.ts +1 -1
  25. package/dist/src/composables/fieldErrorA11y.d.ts.map +1 -1
  26. package/dist/src/composables/useTableModalDropdownList.d.ts +18 -0
  27. package/dist/src/composables/useTableModalDropdownList.d.ts.map +1 -0
  28. package/dist/src/index.d.ts +5 -1
  29. package/dist/src/index.d.ts.map +1 -1
  30. package/dist/src/types/index.d.ts +6 -0
  31. package/dist/src/types/index.d.ts.map +1 -1
  32. package/dist/src/utils/currencyValue.d.ts +10 -0
  33. package/dist/src/utils/currencyValue.d.ts.map +1 -0
  34. package/dist/src/utils/linkValue.d.ts +5 -0
  35. package/dist/src/utils/linkValue.d.ts.map +1 -0
  36. package/dist/src/utils/quantityValue.d.ts +8 -0
  37. package/dist/src/utils/quantityValue.d.ts.map +1 -0
  38. package/package.json +5 -5
@@ -21,127 +21,166 @@
21
21
  color: var(--sc-input-active-label-color);
22
22
  }
23
23
 
24
- .aform_form-link-wrapper[data-v-a42cba74] {
24
+ .autocomplete-results[data-v-6939f0bf] {
25
+ position: absolute;
26
+ top: 100%;
27
+ left: 0;
28
+ right: 0;
29
+ z-index: 100;
30
+ box-sizing: border-box;
31
+ padding: 0;
32
+ margin: 0;
33
+ color: var(--sc-cell-text-color);
34
+ border: 1px solid var(--sc-row-border-color);
35
+ border-radius: 0 0 var(--sc-border-radius) var(--sc-border-radius);
36
+ border-top: none;
37
+ border-left: none;
38
+ background-color: var(--sc-overlay-background);
39
+ box-shadow: var(--sc-overlay-shadow);
40
+ list-style: none;
41
+ max-height: var(--sc-dropdown-max-height);
42
+ overflow-y: auto;
43
+ }
44
+ .autocomplete-results--anchor-group[data-v-6939f0bf] {
45
+ left: -1px;
46
+ right: -1px;
47
+ width: auto;
48
+ min-width: unset;
49
+ max-width: none;
50
+ }
51
+ .autocomplete-results--cell-modal[data-v-6939f0bf] {
25
52
  position: relative;
53
+ top: 0;
54
+ left: 0;
55
+ right: 0;
56
+ width: 100%;
57
+ min-width: 100%;
58
+ max-width: none;
59
+ border-top: none;
26
60
  }
27
- .input-group[data-v-a42cba74] {
28
- display: flex;
29
- align-items: stretch;
61
+
62
+ /* :deep — option rows are slotted from ADropdown / AFormLink; scoped rules do not reach them otherwise. */
63
+ .autocomplete-results[data-v-6939f0bf] .autocomplete-result {
64
+ text-align: left;
65
+ box-sizing: border-box;
66
+ border-left: 2px solid transparent;
67
+ padding: 0.35rem 0.75ch 0.35rem 0.25ch;
68
+ cursor: pointer;
69
+ color: var(--sc-cell-text-color);
30
70
  }
31
- .aform_input-field[data-v-a42cba74] {
32
- flex: 1;
33
- min-width: 0;
71
+ .autocomplete-results[data-v-6939f0bf] .autocomplete-result:hover,
72
+ .autocomplete-results[data-v-6939f0bf] .autocomplete-result.is-active {
73
+ background-color: var(--sc-dropdown-option-hover-background);
74
+ color: var(--sc-cell-text-color);
34
75
  }
35
76
 
36
- /* No top padding: the shared rule reserves it for a floating label, which embedded mode never renders. */
37
- .aform_form-element--embedded[data-v-a42cba74] {
77
+ /* Committed value (v-model): one 2px bar (ATable uses 4px on row cells; no stacked list + inset). */
78
+ .autocomplete-results[data-v-6939f0bf] .autocomplete-result.is-selected {
79
+ border-left-color: var(--sc-dropdown-option-selected-accent);
80
+ }
81
+
82
+ .autocomplete[data-v-32a34889] {
83
+ position: relative;
84
+ }
85
+ .aform_form-element--embedded[data-v-32a34889] {
38
86
  min-width: 0;
39
- flex-grow: 0;
87
+ flex: 1 1 auto;
88
+ width: 100%;
40
89
  padding-top: 0;
41
90
  }
42
-
43
- /* Embedded mode: the host component's own container supplies the border, so this input goes
44
- borderless. Its vertical padding stays the standalone field's, so its text lines up with the host's. */
45
- .aform_input-field--embedded[data-v-a42cba74] {
91
+ .aform_form-element--embedded .autocomplete[data-v-32a34889] {
92
+ display: flex;
93
+ flex: 1;
94
+ min-width: 0;
95
+ min-height: 0;
96
+ width: 100%;
97
+ }
98
+ .aform_dropdown--anchor-group .autocomplete[data-v-32a34889] {
99
+ position: static;
100
+ }
101
+ .aform_input-field--embedded[data-v-32a34889] {
102
+ box-sizing: border-box;
103
+ width: 100%;
104
+ min-width: 0;
46
105
  outline: none;
47
106
  background: transparent;
48
107
  padding: 0.5rem 1ch;
49
108
  }
50
-
51
- /* Only in embedded mode is the trigger deliberately narrower than its options (e.g. a currency
52
- symbol box): let the dropdown grow past it rather than truncate. Standalone pickers keep the
53
- dropdown flush with the input, so a long display text can't overhang a narrow form column. */
54
- .aform_form-element--embedded .autocomplete-results[data-v-a42cba74] {
55
- min-width: 100%;
56
- width: max-content;
57
- }
58
-
59
- /* Give the button the same outline as the input, then slide it 2px left so the outlines
60
- overlap exactly at the join: input right outline sits at (input_right - 1px),
61
- button left outline also sits at (button_left + 1px) = (input_right - 2px + 1px) = same pixel. */
62
- .aform_form-btn[data-v-a42cba74] {
63
- appearance: none;
64
- border: none;
65
- outline: 1px solid var(--sc-input-border-color);
66
- outline-offset: -1px;
67
- margin-left: -2px;
68
- background: var(--sc-input-field-background);
69
- padding: 0.5rem 0.75rem;
70
- cursor: pointer;
71
- display: block;
109
+ .aform_dropdown-button[data-v-32a34889] {
110
+ display: flex;
111
+ align-items: center;
112
+ gap: 0.75ch;
113
+ flex: 1;
114
+ align-self: stretch;
115
+ box-sizing: border-box;
116
+ width: 100%;
117
+ min-height: 100%;
118
+ padding: 0.5rem 1ch;
72
119
  font-size: 1rem;
73
- line-height: normal;
74
120
  font-family: var(--sc-font-family);
75
121
  color: var(--sc-cell-text-color);
76
- }
77
-
78
- /* Drawn rather than a text glyph, but set on the text's baseline at capital height: text sits
79
- above its box's centre, so an icon centred in the box reads low beside the input's text. */
80
- .aform_form-btn-icon[data-v-a42cba74] {
81
- height: 0.716em;
82
- width: auto;
83
- vertical-align: baseline;
84
- overflow: visible;
85
- fill: none;
86
- stroke: currentColor;
87
- stroke-width: 1.5;
88
- stroke-linecap: round;
89
- stroke-linejoin: round;
90
- }
91
-
92
- /* The glyph stays as the button's spoken name, hidden from sight. */
93
- .aform_form-btn-name[data-v-a42cba74] {
94
- position: absolute;
95
- width: 1px;
96
- height: 1px;
97
- margin: -1px;
98
- overflow: hidden;
99
- clip: rect(0, 0, 0, 0);
122
+ background: var(--sc-input-addon-background);
123
+ border: none;
124
+ outline: none;
125
+ border-radius: 0 var(--sc-border-radius) var(--sc-border-radius) 0;
100
126
  white-space: nowrap;
127
+ cursor: pointer;
128
+ -webkit-tap-highlight-color: transparent;
101
129
  }
102
- .aform_form-btn[data-v-a42cba74]:focus,
103
- .input-group:focus-within .aform_form-btn[data-v-a42cba74] {
104
- outline-color: var(--sc-input-active-border-color);
130
+ .aform_dropdown-button[data-v-32a34889]:focus,
131
+ .aform_dropdown-button[data-v-32a34889]:focus-visible {
132
+ outline: none;
133
+ box-shadow: none;
105
134
  }
106
- .autocomplete-results[data-v-a42cba74] {
107
- position: absolute;
108
- box-sizing: border-box;
109
- width: 100%;
110
- z-index: 100;
135
+ .aform_dropdown-button[data-v-32a34889]::-moz-focus-inner {
136
+ border: 0;
111
137
  padding: 0;
112
- margin: 0;
113
- list-style: none;
114
- border: 1px solid var(--sc-input-active-border-color);
115
- border-top: none;
116
- border-radius: 0 0 var(--sc-border-radius) var(--sc-border-radius);
117
- background: var(--sc-overlay-background);
118
- box-shadow: var(--sc-overlay-shadow);
119
- max-height: var(--sc-dropdown-max-height);
120
- overflow-y: auto;
121
138
  }
122
- .autocomplete-result[data-v-a42cba74] {
123
- padding: 4px 6px;
124
- cursor: pointer;
139
+
140
+ /* Merged fields (quantity UOM): same surface as the sibling input, not a nested addon chip. */
141
+ .aform_form-element--embedded .aform_dropdown-button[data-v-32a34889] {
142
+ background: transparent;
143
+ }
144
+ .aform_dropdown-button[data-v-32a34889]:disabled {
145
+ cursor: not-allowed;
146
+ color: var(--sc-gray-50);
125
147
  }
126
- .autocomplete-result.is-active[data-v-a42cba74],
127
- .autocomplete-result[data-v-a42cba74]:hover {
128
- background-color: var(--sc-row-color-zebra-light);
129
- color: var(--sc-input-active-border-color);
148
+ .aform_dropdown-button-value[data-v-32a34889] {
149
+ flex: 1;
150
+ min-width: 0;
151
+ text-align: left;
152
+ }
153
+ .aform_dropdown-button-caret[data-v-32a34889] {
154
+ display: inline-block;
155
+ width: 0;
156
+ height: 0;
157
+ border-left: 0.3em solid transparent;
158
+ border-right: 0.3em solid transparent;
159
+ border-top: 0.3em solid currentColor;
130
160
  }
131
161
 
132
- .acurrency__row[data-v-4f9b4e42] {
162
+ .acurrency__row[data-v-7de4a96e] {
133
163
  display: flex;
134
164
  gap: 1ch;
135
165
  }
136
- .acurrency__row--base[data-v-4f9b4e42] {
137
- margin-top: 1.5rem;
138
- }
139
- .acurrency__field[data-v-4f9b4e42] {
166
+ .acurrency__field[data-v-7de4a96e] {
140
167
  position: relative;
141
168
  flex: 1;
142
169
  min-width: 0;
143
170
  }
144
- .acurrency__group[data-v-4f9b4e42] {
171
+ .acurrency__field--base-currency[data-v-7de4a96e] {
172
+ position: absolute;
173
+ width: 1px;
174
+ height: 1px;
175
+ padding: 0;
176
+ margin: -1px;
177
+ overflow: hidden;
178
+ clip: rect(0, 0, 0, 0);
179
+ white-space: nowrap;
180
+ border: 0;
181
+ }
182
+ .acurrency__group[data-v-7de4a96e] {
183
+ position: relative;
145
184
  display: flex;
146
185
  align-items: stretch;
147
186
  box-sizing: border-box;
@@ -150,30 +189,20 @@
150
189
  border: 1px solid var(--sc-input-border-color);
151
190
  border-radius: var(--sc-border-radius);
152
191
  }
153
- .acurrency__group[data-v-4f9b4e42]:focus-within {
192
+ .acurrency__group[data-v-7de4a96e]:focus-within {
154
193
  border-color: var(--sc-input-active-border-color);
155
194
  }
156
195
 
157
- /* Wraps just the amount input so its floating label (`left: 10px` of the nearest
158
- `position: relative` ancestor, per .aform_field-label) anchors above the amount box
159
- specifically, not the group's outer left edge — which is now the currency prefix. */
160
- .acurrency__amount-wrap[data-v-4f9b4e42] {
161
- position: relative;
196
+ /* Solid form surface behind long labels; the shared gradient only masks the top half and reads
197
+ poorly over the merged prefix + amount backgrounds. Matches the field's page/form parent. */
198
+ .acurrency__group > .aform_field-label[data-v-7de4a96e] {
199
+ background: var(--sc-form-background);
200
+ }
201
+ .acurrency__amount-wrap[data-v-7de4a96e] {
162
202
  flex: 1;
163
203
  min-width: 0;
164
204
  }
165
-
166
- /* The amount label ("Total") is the primary label for the whole merged group — bumped up
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-4f9b4e42] {
169
- font-size: 0.85rem;
170
- }
171
-
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-4f9b4e42] {
174
- color: var(--sc-input-active-label-color);
175
- }
176
- .acurrency__amount[data-v-4f9b4e42] {
205
+ .acurrency__amount[data-v-7de4a96e] {
177
206
  width: 100%;
178
207
  box-sizing: border-box;
179
208
  border: none;
@@ -188,54 +217,52 @@
188
217
  appearance: textfield;
189
218
  -moz-appearance: textfield;
190
219
  }
191
- .acurrency__amount[data-v-4f9b4e42]::-webkit-outer-spin-button,
192
- .acurrency__amount[data-v-4f9b4e42]::-webkit-inner-spin-button {
220
+ .acurrency__amount[data-v-7de4a96e]::-webkit-outer-spin-button,
221
+ .acurrency__amount[data-v-7de4a96e]::-webkit-inner-spin-button {
193
222
  appearance: none;
194
223
  -webkit-appearance: none;
195
224
  margin: 0;
196
225
  }
197
226
 
198
227
  /* The currency picker reads as a simple prefix addon (like Bootstrap's "$" prepend) rather
199
- than an equal partner to the amount box: compact width (it shows a symbol once a value is
200
- picked, not the full name), tinted background, left-rounded to match the group's own
228
+ than an equal partner to the amount box: fixed compact width (symbol or short code like NZD),
229
+ tinted background, left-rounded to match the group's own
201
230
  corner so the tint doesn't overhang the border. The dropdown itself isn't bound by this
202
- width — see AFormLink's .autocomplete-results — so search results still show full names. */
203
- .acurrency__currency[data-v-4f9b4e42] {
204
- position: relative;
205
- flex: 0 0 auto;
206
- min-width: 4.5rem;
231
+ width — ADropdown list spans the group — so search results still show full names. */
232
+ .acurrency__currency[data-v-7de4a96e] {
233
+ /* Fixed minimum prefix: 3rem content band + 1ch inset each side (fits NZD without shifting). */
234
+ flex: 0 0 calc(3rem + 2ch);
235
+ width: calc(3rem + 2ch);
236
+ min-width: calc(3rem + 2ch);
237
+ max-width: calc(3rem + 2ch);
238
+ box-sizing: border-box;
239
+ cursor: pointer;
207
240
  background: var(--sc-input-addon-background);
208
241
  border-right: 1px solid var(--sc-input-border-color);
209
242
  border-radius: var(--sc-border-radius) 0 0 var(--sc-border-radius);
210
243
  }
211
-
212
- /* The picker's list hangs from the group's outer border to the picker's divider, so its side lines
213
- continue theirs. `.acurrency__group` is there to outrank AFormLink's own embedded `min-width`. */
214
- .acurrency__group .acurrency__currency[data-v-4f9b4e42] .autocomplete-results {
215
- left: -1px;
216
- min-width: calc(100% + 2px);
244
+ .acurrency__currency[data-v-7de4a96e] .aform_input-field--embedded {
245
+ padding-left: 1ch;
246
+ padding-right: 1ch;
247
+ text-align: right;
217
248
  }
218
- .acurrency__base-field[data-v-4f9b4e42] {
219
- width: 100%;
220
- box-sizing: border-box;
221
- font-size: 1rem;
222
- padding: 0.5rem 1ch;
223
- border: 1px solid var(--sc-input-border-color);
224
- border-radius: var(--sc-border-radius);
225
- outline: none;
226
- appearance: textfield;
227
- -moz-appearance: textfield;
249
+ .acurrency__currency[data-v-7de4a96e] .aform_form-element--embedded,
250
+ .acurrency__currency[data-v-7de4a96e] .autocomplete {
251
+ position: static;
228
252
  }
229
- .acurrency__base-field[data-v-4f9b4e42]:disabled {
230
- color: var(--sc-gray-50);
253
+ .acurrency__group[data-v-7de4a96e] .autocomplete-results--anchor-group {
254
+ left: -1px;
255
+ right: -1px;
256
+ box-sizing: border-box;
257
+ width: auto;
258
+ min-width: unset;
259
+ max-width: none;
231
260
  }
232
-
233
- /* Base Amount and Exchange Rate are read-only — the number spinner offers nothing here. */
234
- .acurrency__base-field[data-v-4f9b4e42]::-webkit-outer-spin-button,
235
- .acurrency__base-field[data-v-4f9b4e42]::-webkit-inner-spin-button {
236
- appearance: none;
237
- -webkit-appearance: none;
238
- margin: 0;
261
+ .acurrency__helper[data-v-7de4a96e] {
262
+ margin: 0.5rem 0 0;
263
+ font-size: 0.85rem;
264
+ color: var(--sc-cell-text-color);
265
+ opacity: 0.75;
239
266
  }
240
267
 
241
268
  .adatepicker[data-v-d0133599],
@@ -438,38 +465,6 @@ p.aform_error[data-v-d0133599] {
438
465
  margin-top: 0.25rem;
439
466
  }
440
467
 
441
- .autocomplete[data-v-f395a95f] {
442
- position: relative;
443
- }
444
- .autocomplete-results[data-v-f395a95f] {
445
- position: absolute;
446
- left: 0;
447
- right: 0;
448
- z-index: 100;
449
- box-sizing: border-box;
450
- padding: 0;
451
- margin: 0;
452
- color: var(--sc-input-active-border-color);
453
- border: 1px solid var(--sc-input-active-border-color);
454
- border-radius: 0 0 var(--sc-border-radius) var(--sc-border-radius);
455
- border-top: none;
456
- background-color: var(--sc-overlay-background);
457
- box-shadow: var(--sc-overlay-shadow);
458
- list-style: none;
459
- max-height: var(--sc-dropdown-max-height);
460
- overflow-y: auto;
461
- }
462
- .autocomplete-result[data-v-f395a95f] {
463
- text-align: left;
464
- padding: 4px 6px;
465
- cursor: pointer;
466
- }
467
- .autocomplete-result.is-active[data-v-f395a95f],
468
- .autocomplete-result[data-v-f395a95f]:hover {
469
- background-color: var(--sc-row-color-zebra-light);
470
- color: var(--sc-input-active-border-color);
471
- }
472
-
473
468
  .abadge[data-v-f99dd564] {
474
469
  display: block;
475
470
  box-sizing: border-box;
@@ -840,7 +835,7 @@ p.aform_error {
840
835
  margin: 0;
841
836
  }
842
837
 
843
- .aform[data-v-5055dffc] {
838
+ .aform[data-v-d4179fed] {
844
839
  display: flex;
845
840
  flex-wrap: wrap;
846
841
  gap: 1rem;
@@ -852,27 +847,27 @@ p.aform_error {
852
847
  max-width: 100%;
853
848
  }
854
849
  @media screen and (max-width: 400px) {
855
- .aform[data-v-5055dffc] {
850
+ .aform[data-v-d4179fed] {
856
851
  flex-direction: column;
857
852
  }
858
853
  }
859
854
 
860
855
  /* Nested form section */
861
- .aform-nested-section[data-v-5055dffc] {
856
+ .aform-nested-section[data-v-d4179fed] {
862
857
  width: 100%;
863
858
  padding: 0.5rem 0;
864
859
  }
865
- .aform-nested-label[data-v-5055dffc] {
860
+ .aform-nested-label[data-v-d4179fed] {
866
861
  font-size: 0.9rem;
867
862
  font-weight: 600;
868
863
  margin: 0 0 0.5rem 0;
869
864
  color: var(--sc-input-label-color);
870
865
  }
871
- .aform-nested-section .aform[data-v-5055dffc] {
866
+ .aform-nested-section .aform[data-v-d4179fed] {
872
867
  border-left-width: 2px;
873
868
  margin-left: 0.5rem;
874
869
  }
875
- .aform-table-expansion[data-v-5055dffc] {
870
+ .aform-table-expansion[data-v-d4179fed] {
876
871
  margin-bottom: 0;
877
872
  border: none;
878
873
  border-left: none;
@@ -976,19 +971,102 @@ legend[data-v-8215ff87] {
976
971
  background-color: var(--sc-gray-5);
977
972
  }
978
973
 
979
- .aquantity__row[data-v-88f44f99] {
974
+ .aform_form-link-wrapper[data-v-e784f691] {
975
+ position: relative;
976
+ }
977
+ .input-group[data-v-e784f691] {
980
978
  display: flex;
981
- gap: 1ch;
979
+ align-items: stretch;
980
+ }
981
+ .aform_input-field[data-v-e784f691] {
982
+ flex: 1;
983
+ min-width: 0;
984
+ }
985
+
986
+ /* No top padding: the shared rule reserves it for a floating label, which embedded mode never renders. */
987
+ .aform_form-element--embedded[data-v-e784f691] {
988
+ min-width: 0;
989
+ flex: 1 1 auto;
990
+ width: 100%;
991
+ padding-top: 0;
992
+ }
993
+
994
+ /* Embedded mode: the host component's own container supplies the border, so this input goes
995
+ borderless. Its vertical padding stays the standalone field's, so its text lines up with the host's. */
996
+ .aform_input-field--embedded[data-v-e784f691] {
997
+ box-sizing: border-box;
998
+ width: 100%;
999
+ min-width: 0;
1000
+ outline: none;
1001
+ background: transparent;
1002
+ padding: 0.5rem 1ch;
1003
+ }
1004
+
1005
+ /* Only in embedded mode is the trigger deliberately narrower than its options (e.g. a currency
1006
+ symbol box): let the dropdown grow past it rather than truncate. Standalone pickers keep the
1007
+ dropdown flush with the input, so a long display text can't overhang a narrow form column. */
1008
+ .aform_form-element--embedded .autocomplete-results[data-v-e784f691] {
1009
+ min-width: 100%;
1010
+ }
1011
+
1012
+ /* Give the button the same outline as the input, then slide it 2px left so the outlines
1013
+ overlap exactly at the join: input right outline sits at (input_right - 1px),
1014
+ button left outline also sits at (button_left + 1px) = (input_right - 2px + 1px) = same pixel. */
1015
+ .aform_form-btn[data-v-e784f691] {
1016
+ appearance: none;
1017
+ border: none;
1018
+ outline: 1px solid var(--sc-input-border-color);
1019
+ outline-offset: -1px;
1020
+ margin-left: -2px;
1021
+ background: var(--sc-input-field-background);
1022
+ padding: 0.5rem 0.75rem;
1023
+ cursor: pointer;
1024
+ display: block;
1025
+ font-size: 1rem;
1026
+ line-height: normal;
1027
+ font-family: var(--sc-font-family);
1028
+ color: var(--sc-cell-text-color);
1029
+ }
1030
+
1031
+ /* Drawn rather than a text glyph, but set on the text's baseline at capital height: text sits
1032
+ above its box's centre, so an icon centred in the box reads low beside the input's text. */
1033
+ .aform_form-btn-icon[data-v-e784f691] {
1034
+ height: 0.716em;
1035
+ width: auto;
1036
+ vertical-align: baseline;
1037
+ overflow: visible;
1038
+ fill: none;
1039
+ stroke: currentColor;
1040
+ stroke-width: 1.5;
1041
+ stroke-linecap: round;
1042
+ stroke-linejoin: round;
982
1043
  }
983
- .aquantity__row--stock[data-v-88f44f99] {
984
- margin-top: 1.5rem;
1044
+
1045
+ /* The glyph stays as the button's spoken name, hidden from sight. */
1046
+ .aform_form-btn-name[data-v-e784f691] {
1047
+ position: absolute;
1048
+ width: 1px;
1049
+ height: 1px;
1050
+ margin: -1px;
1051
+ overflow: hidden;
1052
+ clip: rect(0, 0, 0, 0);
1053
+ white-space: nowrap;
985
1054
  }
986
- .aquantity__field[data-v-88f44f99] {
1055
+ .aform_form-btn[data-v-e784f691]:focus,
1056
+ .input-group:focus-within .aform_form-btn[data-v-e784f691] {
1057
+ outline-color: var(--sc-input-active-border-color);
1058
+ }
1059
+
1060
+ .aquantity__row[data-v-3d289084] {
1061
+ display: flex;
1062
+ gap: 1ch;
1063
+ }
1064
+ .aquantity__field[data-v-3d289084] {
987
1065
  position: relative;
988
1066
  flex: 1;
989
1067
  min-width: 0;
990
1068
  }
991
- .aquantity__group[data-v-88f44f99] {
1069
+ .aquantity__group[data-v-3d289084] {
992
1070
  position: relative;
993
1071
  display: flex;
994
1072
  align-items: stretch;
@@ -998,11 +1076,21 @@ legend[data-v-8215ff87] {
998
1076
  border: 1px solid var(--sc-input-border-color);
999
1077
  border-radius: var(--sc-border-radius);
1000
1078
  }
1001
- .aquantity__group[data-v-88f44f99]:focus-within {
1079
+ .aquantity__group[data-v-3d289084]:focus-within {
1002
1080
  border-color: var(--sc-input-active-border-color);
1003
1081
  }
1004
- .aquantity__qty[data-v-88f44f99] {
1005
- flex: 1;
1082
+ .aquantity__group > .aform_field-label[data-v-3d289084] {
1083
+ background: var(--sc-form-background);
1084
+ }
1085
+
1086
+ /* Focus ring lives on the merged group only (see AForm :focus-within label + group border). */
1087
+ .aquantity__group[data-v-3d289084] .aform_dropdown-button:focus,
1088
+ .aquantity__group[data-v-3d289084] .aform_dropdown-button:focus-visible {
1089
+ outline: none;
1090
+ box-shadow: none;
1091
+ }
1092
+ .aquantity__qty[data-v-3d289084] {
1093
+ flex: 1 1 50%;
1006
1094
  min-width: 0;
1007
1095
  border: none;
1008
1096
  outline: none;
@@ -1010,89 +1098,46 @@ legend[data-v-8215ff87] {
1010
1098
  font-size: 1rem;
1011
1099
  font-family: var(--sc-font-family);
1012
1100
  color: var(--sc-cell-text-color);
1101
+ text-align: right;
1013
1102
  background: transparent;
1014
1103
  border-radius: var(--sc-border-radius) 0 0 var(--sc-border-radius);
1015
1104
  appearance: textfield;
1016
1105
  -moz-appearance: textfield;
1017
1106
  }
1018
- .aquantity__qty[data-v-88f44f99]::-webkit-outer-spin-button,
1019
- .aquantity__qty[data-v-88f44f99]::-webkit-inner-spin-button {
1107
+ .aquantity__qty[data-v-3d289084]::-webkit-outer-spin-button,
1108
+ .aquantity__qty[data-v-3d289084]::-webkit-inner-spin-button {
1020
1109
  appearance: none;
1021
1110
  -webkit-appearance: none;
1022
1111
  margin: 0;
1023
1112
  }
1024
- .aquantity__uom[data-v-88f44f99] {
1025
- position: relative;
1026
- flex: 0 0 auto;
1027
- border-left: 1px solid var(--sc-input-border-color);
1028
- }
1029
- .aquantity__uom-toggle[data-v-88f44f99] {
1113
+ .aquantity__uom[data-v-3d289084] {
1114
+ position: static;
1115
+ flex: 1 1 50%;
1116
+ min-width: 0;
1030
1117
  display: flex;
1031
- align-items: center;
1032
- gap: 0.75ch;
1033
- height: 100%;
1034
- padding: 0.5ch 1ch;
1035
- font-size: 1rem;
1036
- font-family: var(--sc-font-family);
1037
- color: var(--sc-cell-text-color);
1038
- background: var(--sc-input-addon-background);
1039
- border: none;
1040
- border-radius: 0 var(--sc-border-radius) var(--sc-border-radius) 0;
1041
- white-space: nowrap;
1042
- cursor: pointer;
1043
- }
1044
- .aquantity__uom-toggle[data-v-88f44f99]:disabled {
1045
- cursor: not-allowed;
1046
- color: var(--sc-gray-50);
1047
- }
1048
- .aquantity__caret[data-v-88f44f99] {
1049
- display: inline-block;
1050
- width: 0;
1051
- height: 0;
1052
- border-left: 0.3em solid transparent;
1053
- border-right: 0.3em solid transparent;
1054
- border-top: 0.3em solid currentColor;
1118
+ align-items: stretch;
1119
+ border-left: 1px solid var(--sc-input-border-color);
1055
1120
  }
1056
1121
 
1057
- /* Hangs from the divider beside the toggle to the field's outer border, so its side lines continue
1058
- theirs; a long unit name widens it to the left. */
1059
- .aquantity__uom-menu[data-v-88f44f99] {
1060
- position: absolute;
1061
- top: 100%;
1122
+ /* ADropdown list: anchor to merged group, not the UOM trigger column (see dropdowns.browser.spec). */
1123
+ .aquantity__group[data-v-3d289084] .aform_form-element--embedded,
1124
+ .aquantity__group[data-v-3d289084] .autocomplete {
1125
+ position: static;
1126
+ align-self: stretch;
1127
+ }
1128
+ .aquantity__group[data-v-3d289084] .autocomplete-results--anchor-group {
1129
+ left: -1px;
1062
1130
  right: -1px;
1063
- z-index: 100;
1064
1131
  box-sizing: border-box;
1065
- min-width: calc(100% + 2px);
1066
- max-height: var(--sc-dropdown-max-height);
1067
- overflow-y: auto;
1068
- margin: 0;
1069
- padding: 0.25rem 0;
1070
- list-style: none;
1071
- background: var(--sc-overlay-background);
1072
- border: 1px solid var(--sc-input-active-border-color);
1073
- border-top: none;
1074
- border-radius: 0 0 var(--sc-border-radius) var(--sc-border-radius);
1075
- box-shadow: var(--sc-overlay-shadow);
1076
- }
1077
- .aquantity__uom-option[data-v-88f44f99] {
1078
- padding: 0.4ch 1ch;
1079
- white-space: nowrap;
1080
- cursor: pointer;
1081
- }
1082
- .aquantity__uom-option.is-active[data-v-88f44f99],
1083
- .aquantity__uom-option[data-v-88f44f99]:hover {
1084
- background-color: var(--sc-row-color-zebra-light);
1085
- }
1086
- .aquantity__stock-field[data-v-88f44f99] {
1087
- width: 100%;
1088
- font-size: 1rem;
1089
- padding: 0.5rem 1ch;
1090
- border: 1px solid var(--sc-input-border-color);
1091
- border-radius: var(--sc-border-radius);
1092
- outline: none;
1132
+ width: auto;
1133
+ min-width: unset;
1134
+ max-width: none;
1093
1135
  }
1094
- .aquantity__stock-field[data-v-88f44f99]:disabled {
1095
- color: var(--sc-gray-50);
1136
+ .aquantity__helper[data-v-3d289084] {
1137
+ margin: 0.5rem 0 0;
1138
+ font-size: 0.85rem;
1139
+ color: var(--sc-cell-text-color);
1140
+ opacity: 0.75;
1096
1141
  }
1097
1142
 
1098
1143
  .aform_textbox[data-v-19e611fa] {
@@ -1268,3 +1313,96 @@ to {
1268
1313
  cursor: pointer;
1269
1314
  box-sizing: border-box;
1270
1315
  }
1316
+
1317
+ .atable-tuple-picker-modal[data-v-e17b3eb6] {
1318
+ box-sizing: border-box;
1319
+ width: 100%;
1320
+ min-width: 100%;
1321
+ outline: none;
1322
+ }
1323
+
1324
+ .atable-tuple-picker-modal[data-v-f573d68f] {
1325
+ box-sizing: border-box;
1326
+ width: 100%;
1327
+ min-width: 100%;
1328
+ outline: none;
1329
+ }
1330
+
1331
+ .atable-tuple-shell[data-v-2746f028] {
1332
+ position: relative;
1333
+ box-sizing: border-box;
1334
+ width: 100%;
1335
+ min-width: 0;
1336
+ min-height: 1.25em;
1337
+ padding-left: 0;
1338
+ }
1339
+ .atable-tuple-shell--active[data-v-2746f028] {
1340
+ box-sizing: border-box;
1341
+ padding-left: 1rem;
1342
+ }
1343
+ .atable-tuple-shell__handle[data-v-2746f028] {
1344
+ position: absolute;
1345
+ left: 0;
1346
+ top: 0;
1347
+ bottom: 0;
1348
+ display: flex;
1349
+ align-items: center;
1350
+ justify-content: center;
1351
+ box-sizing: border-box;
1352
+ width: 1rem;
1353
+ min-width: 1rem;
1354
+ padding: 0;
1355
+ margin: 0;
1356
+ border: none;
1357
+ background: transparent;
1358
+ color: var(--sc-cell-text-color);
1359
+ cursor: pointer;
1360
+ opacity: 0;
1361
+ pointer-events: none;
1362
+ transition: opacity 0.15s ease;
1363
+ -webkit-tap-highlight-color: transparent;
1364
+ }
1365
+ .atable-tuple-shell__handle--visible[data-v-2746f028] {
1366
+ opacity: 1;
1367
+ pointer-events: auto;
1368
+ }
1369
+ .atable-tuple-shell__caret[data-v-2746f028] {
1370
+ display: inline-block;
1371
+ width: 0;
1372
+ height: 0;
1373
+ border-left: 0.3em solid transparent;
1374
+ border-right: 0.3em solid transparent;
1375
+ border-top: 0.3em solid currentColor;
1376
+ }
1377
+ .atable-tuple-shell__display[data-v-2746f028] {
1378
+ display: block;
1379
+ width: 100%;
1380
+ min-width: 0;
1381
+ box-sizing: border-box;
1382
+ overflow: hidden;
1383
+ text-overflow: ellipsis;
1384
+ white-space: nowrap;
1385
+ }
1386
+
1387
+ .atable-tuple-shell__input[data-v-ad79f2bc] {
1388
+ display: block;
1389
+ width: 100%;
1390
+ min-width: 0;
1391
+ box-sizing: border-box;
1392
+ border: none;
1393
+ outline: none;
1394
+ box-shadow: none;
1395
+ background: transparent;
1396
+ font: inherit;
1397
+ color: inherit;
1398
+ text-align: inherit;
1399
+ padding: 0;
1400
+ margin: 0;
1401
+ overflow: hidden;
1402
+ text-overflow: ellipsis;
1403
+ white-space: nowrap;
1404
+ }
1405
+ .atable-tuple-shell__input[data-v-ad79f2bc]::-webkit-outer-spin-button,
1406
+ .atable-tuple-shell__input[data-v-ad79f2bc]::-webkit-inner-spin-button {
1407
+ appearance: none;
1408
+ }