@zambon-dev/ui 1.1.1 → 1.2.1
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/CHANGELOG.md +111 -0
- package/fesm2022/zambon-dev-ui-library.mjs +77 -26
- package/fesm2022/zambon-dev-ui-library.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-shared.mjs +6 -6
- package/fesm2022/zambon-dev-ui-shared.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/theme.css +5 -0
- package/types/zambon-dev-ui-library.d.ts +31 -0
package/package.json
CHANGED
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>;
|
|
@@ -1584,11 +1595,31 @@ export declare class RibbonButtonComponent implements OnDestroy {
|
|
|
1584
1595
|
protected documentKeyDown(event: Event): void;
|
|
1585
1596
|
protected readonly showDropdown: WritableSignal<boolean>;
|
|
1586
1597
|
protected readonly status: WritableSignal<null | 'failure' | 'warning' | 'success'>;
|
|
1598
|
+
private static instances;
|
|
1599
|
+
private readonly instanceId;
|
|
1587
1600
|
private clickedOutside;
|
|
1588
1601
|
private overlay;
|
|
1589
1602
|
private overlayRef?;
|
|
1590
1603
|
private positionBuilder;
|
|
1591
1604
|
private viewContainerRef;
|
|
1605
|
+
/**
|
|
1606
|
+
* What this button is called, whether or not its label is on screen. Compact mode hides the
|
|
1607
|
+
* label below 36rem of ribbon width, and an icon with no accessible name is unusable with a
|
|
1608
|
+
* screen reader. The tooltip is the fallback because a consumer who gives one and no label has
|
|
1609
|
+
* already said what the button does; with neither there is nothing to invent.
|
|
1610
|
+
*/
|
|
1611
|
+
protected get accessibleName(): string;
|
|
1612
|
+
/** Id of the label element, so the dropdown chevron can borrow this button's name. */
|
|
1613
|
+
protected get labelId(): string;
|
|
1614
|
+
/**
|
|
1615
|
+
* The chevron borrows the button's name by reference, but only when there is a label element
|
|
1616
|
+
* with text in it. A reference to an empty span names the control *nothing at all*, which is
|
|
1617
|
+
* worse than leaving it unnamed: it suppresses the fallback a screen reader would otherwise
|
|
1618
|
+
* use. An icon-only button with a tooltip is the case that exposes this.
|
|
1619
|
+
*/
|
|
1620
|
+
protected get chevronLabelledBy(): string | null;
|
|
1621
|
+
/** The chevron's name when there is no label element to point at. */
|
|
1622
|
+
protected get chevronAriaLabel(): string | null;
|
|
1592
1623
|
protected get buttonIcon(): string;
|
|
1593
1624
|
protected get isButtonDisabled(): boolean;
|
|
1594
1625
|
ngOnDestroy(): void;
|