@zambon-dev/ui 1.2.0 → 1.2.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zambon-dev/ui",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Angular UI components, application framework and shared application layer for Zambon applications.",
5
5
  "keywords": [
6
6
  "angular",
package/styles/theme.css CHANGED
@@ -133,6 +133,9 @@
133
133
  --color-line-strong: color-mix(in srgb, var(--color-gray-400) 90%, transparent);
134
134
  --color-line-on-glass: color-mix(in srgb, white 60%, transparent);
135
135
  --color-line-on-brand: color-mix(in srgb, white 80%, var(--color-primary-600));
136
+ /* Frames a selected row. The same rung as the selection wash, at full strength: the accent is a
137
+ fill colour, and as a 1px rule around a pale wash it read as black in the light theme. */
138
+ --color-line-selected: var(--color-primary-200);
136
139
 
137
140
  /*
138
141
  * "Accent" rather than "primary": `--color-primary-*` is already the raw ramp, so this names the
@@ -280,6 +283,8 @@
280
283
  --color-line-strong: var(--color-gray-600);
281
284
  --color-line-on-glass: color-mix(in srgb, white 12%, transparent);
282
285
  --color-line-on-brand: color-mix(in srgb, white 45%, var(--color-primary-800));
286
+ /* What the selected row was already framed with here, when it borrowed the accent. */
287
+ --color-line-selected: var(--color-primary-300);
283
288
 
284
289
  --color-accent: var(--color-primary-300);
285
290
  --color-accent-strong: var(--color-primary-200);
@@ -886,6 +886,12 @@ export declare class DataGridRowComponent extends BaseComponent implements OnIni
886
886
  disabled: boolean;
887
887
  isFirstRow: boolean;
888
888
  set rowData(value: any);
889
+ /**
890
+ * The row's index in the data, which is what the zebra stripe follows. Its position among the
891
+ * rendered rows would not do: the virtual scroll renders a moving window, and a stripe keyed on
892
+ * the DOM swapped on every row whenever that window moved by an odd number of rows.
893
+ */
894
+ readonly rowIndex: InputSignal<number>;
889
895
  selectionResized: EventEmitter<number>;
890
896
  setFocus(): void;
891
897
  protected dataGridDataset: DataGridDataset;
@@ -918,6 +924,11 @@ export declare class DataGridRowComponent extends BaseComponent implements OnIni
918
924
  "alias": "rowData";
919
925
  "required": false;
920
926
  };
927
+ "rowIndex": {
928
+ "alias": "rowIndex";
929
+ "required": false;
930
+ "isSignal": true;
931
+ };
921
932
  }, {
922
933
  "selectionResized": "selectionResized";
923
934
  }, never, never, true, never>;
@@ -1097,6 +1108,18 @@ export declare class FormInputGroupComponent extends BaseComponent implements On
1097
1108
  protected readonly formGroupName: FormGroupName;
1098
1109
  protected formService: FormService;
1099
1110
  protected readonly loadingField: WritableSignal<boolean>;
1111
+ /**
1112
+ * Bumped on every event the control emits -- a value, status or touched change.
1113
+ *
1114
+ * A FormControl is not a signal, so the template could not track the control's errors or whether
1115
+ * it was touched. A change the field made itself redrew it, but one made from outside did not: the
1116
+ * server's errors after a save turned the input red and left the message hidden until the user
1117
+ * typed again, and a save marking every field as touched showed no required message at all.
1118
+ */
1119
+ private readonly controlChanged;
1120
+ protected readonly errors: Signal<ValidationErrors | null>;
1121
+ protected readonly isInvalid: Signal<boolean>;
1122
+ protected readonly isTouched: Signal<boolean>;
1100
1123
  protected get formControl(): FormControl<any> | null;
1101
1124
  protected get formGroup(): FormGroup;
1102
1125
  protected get hasNotes(): boolean;