@skyux/lists 13.7.0 → 13.7.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/fesm2022/skyux-lists.mjs +12 -16
- package/fesm2022/skyux-lists.mjs.map +1 -1
- package/index.d.ts +6 -6
- package/package.json +11 -11
package/fesm2022/skyux-lists.mjs
CHANGED
|
@@ -598,11 +598,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
598
598
|
*/
|
|
599
599
|
class SkyListSummaryComponent {
|
|
600
600
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: SkyListSummaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
601
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: SkyListSummaryComponent, isStandalone: true, selector: "sky-list-summary", hostDirectives: [{ directive: i1$2.SkyThemeComponentClassDirective }], ngImport: i0, template: "<ng-content select=\"sky-list-summary-item\" />\n<div class=\"sky-list-summary-content-container\">\n <ng-content />\n</div>\n", styles: [":host.sky-cmp-theme-default{--sky-override-list-summary-item-gap: 15px;--sky-override-list-summary-padding: 5px 10px 10px;--sky-override-list-summary-background-color: #ffffff;--sky-override-list-summary-border-bottom: 1px solid #cdcfd2}:host{display:flex;flex-wrap:wrap;column-gap:var(--sky-override-list-summary-item-gap, var(--sky-space-inline-xl));align-items:baseline;padding:var(--sky-override-list-summary-padding, var(--sky-comp-list_summary-space-inset-top) var(--sky-comp-list_summary-space-inset-right) var(--sky-comp-list_summary-space-inset-bottom) var(--sky-comp-list_summary-space-inset-left));background-color:var(--sky-override-list-summary-background-color, var(--sky-comp-override-list-header-background-color));border-bottom:var(--sky-override-list-summary-border-bottom, none)}.sky-list-summary-content-container{display:inline-block}\n"] }); }
|
|
601
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: SkyListSummaryComponent, isStandalone: true, selector: "sky-list-summary", hostDirectives: [{ directive: i1$2.SkyThemeComponentClassDirective }], ngImport: i0, template: "<ng-content select=\"sky-list-summary-item\" />\n<div class=\"sky-list-summary-content-container\">\n <ng-content />\n</div>\n", styles: [":host.sky-cmp-theme-default{--sky-override-list-summary-item-gap: 15px;--sky-override-list-summary-padding: 5px 10px 10px;--sky-override-list-summary-background-color: #ffffff;--sky-override-list-summary-border-bottom: 1px solid #cdcfd2}:host{display:flex;flex-wrap:wrap;column-gap:var(--sky-override-list-summary-item-gap, var(--sky-space-inline-xl));align-items:baseline;padding:var(--sky-override-list-summary-padding, var(--sky-comp-list_summary-space-inset-top) var(--sky-comp-list_summary-space-inset-right) var(--sky-comp-list_summary-space-inset-bottom) var(--sky-comp-list_summary-space-inset-left));background-color:var(--sky-override-list-summary-background-color, var(--sky-comp-override-list-header-background-color));border-bottom:var(--sky-override-list-summary-border-bottom, none)}:host-context(.sky-viewkeeper-fixed){background-color:var(--sky-override-list-summary-background-color, var(--sky-comp-override-list-header-background-color, var(--sky-background-color-page-default, var(--sky-color-background-page))))}.sky-list-summary-content-container{display:inline-block}\n"] }); }
|
|
602
602
|
}
|
|
603
603
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: SkyListSummaryComponent, decorators: [{
|
|
604
604
|
type: Component,
|
|
605
|
-
args: [{ selector: 'sky-list-summary', hostDirectives: [SkyThemeComponentClassDirective], template: "<ng-content select=\"sky-list-summary-item\" />\n<div class=\"sky-list-summary-content-container\">\n <ng-content />\n</div>\n", styles: [":host.sky-cmp-theme-default{--sky-override-list-summary-item-gap: 15px;--sky-override-list-summary-padding: 5px 10px 10px;--sky-override-list-summary-background-color: #ffffff;--sky-override-list-summary-border-bottom: 1px solid #cdcfd2}:host{display:flex;flex-wrap:wrap;column-gap:var(--sky-override-list-summary-item-gap, var(--sky-space-inline-xl));align-items:baseline;padding:var(--sky-override-list-summary-padding, var(--sky-comp-list_summary-space-inset-top) var(--sky-comp-list_summary-space-inset-right) var(--sky-comp-list_summary-space-inset-bottom) var(--sky-comp-list_summary-space-inset-left));background-color:var(--sky-override-list-summary-background-color, var(--sky-comp-override-list-header-background-color));border-bottom:var(--sky-override-list-summary-border-bottom, none)}.sky-list-summary-content-container{display:inline-block}\n"] }]
|
|
605
|
+
args: [{ selector: 'sky-list-summary', hostDirectives: [SkyThemeComponentClassDirective], template: "<ng-content select=\"sky-list-summary-item\" />\n<div class=\"sky-list-summary-content-container\">\n <ng-content />\n</div>\n", styles: [":host.sky-cmp-theme-default{--sky-override-list-summary-item-gap: 15px;--sky-override-list-summary-padding: 5px 10px 10px;--sky-override-list-summary-background-color: #ffffff;--sky-override-list-summary-border-bottom: 1px solid #cdcfd2}:host{display:flex;flex-wrap:wrap;column-gap:var(--sky-override-list-summary-item-gap, var(--sky-space-inline-xl));align-items:baseline;padding:var(--sky-override-list-summary-padding, var(--sky-comp-list_summary-space-inset-top) var(--sky-comp-list_summary-space-inset-right) var(--sky-comp-list_summary-space-inset-bottom) var(--sky-comp-list_summary-space-inset-left));background-color:var(--sky-override-list-summary-background-color, var(--sky-comp-override-list-header-background-color));border-bottom:var(--sky-override-list-summary-border-bottom, none)}:host-context(.sky-viewkeeper-fixed){background-color:var(--sky-override-list-summary-background-color, var(--sky-comp-override-list-header-background-color, var(--sky-background-color-page-default, var(--sky-color-background-page))))}.sky-list-summary-content-container{display:inline-block}\n"] }]
|
|
606
606
|
}] });
|
|
607
607
|
|
|
608
608
|
class SkyListSummaryModule {
|
|
@@ -625,7 +625,6 @@ class SkyPagingContentComponent {
|
|
|
625
625
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: SkyPagingContentComponent, decorators: [{
|
|
626
626
|
type: Component,
|
|
627
627
|
args: [{
|
|
628
|
-
standalone: true,
|
|
629
628
|
selector: 'sky-paging-content',
|
|
630
629
|
template: `<ng-content />`,
|
|
631
630
|
}]
|
|
@@ -818,7 +817,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
818
817
|
|
|
819
818
|
/**
|
|
820
819
|
* Wraps and styles a
|
|
821
|
-
* [`
|
|
820
|
+
* [`sky-dropdown` component](https://developer.blackbaud.com/skyux-popovers/docs/dropdown).
|
|
822
821
|
*/
|
|
823
822
|
/* istanbul ignore next */
|
|
824
823
|
/* Code coverage having problems with no statements in classes */
|
|
@@ -1004,13 +1003,12 @@ let nextContentId = 0;
|
|
|
1004
1003
|
*/
|
|
1005
1004
|
class SkyRepeaterItemComponent {
|
|
1006
1005
|
/**
|
|
1007
|
-
* Make the first, non-disabled item tab-focusable.
|
|
1008
|
-
* - Disabled items should not be focusable per [W3C](https://www.w3.org/
|
|
1009
|
-
* - One item per
|
|
1006
|
+
* Make the first, non-disabled item tab-focusable in a selectable repeater.
|
|
1007
|
+
* - Disabled items should not be focusable per [W3C](https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#focusabilityofdisabledcontrols).
|
|
1008
|
+
* - One item per grid should be tab focusable per [W3C](https://www.w3.org/WAI/ARIA/apg/patterns/grid/).
|
|
1010
1009
|
*/
|
|
1011
1010
|
get tabindex() {
|
|
1012
|
-
return this.#repeaterService.items.
|
|
1013
|
-
this
|
|
1011
|
+
return this.#repeaterService.items.find((item) => !item.disabled && this.selectable) === this
|
|
1014
1012
|
? 0
|
|
1015
1013
|
: -1;
|
|
1016
1014
|
}
|
|
@@ -1822,15 +1820,13 @@ class SkyRepeaterComponent {
|
|
|
1822
1820
|
});
|
|
1823
1821
|
}
|
|
1824
1822
|
#updateRole() {
|
|
1825
|
-
// Determine a role using a hierarchy based on https://www.w3.org/
|
|
1826
|
-
//
|
|
1827
|
-
//
|
|
1828
|
-
// 3. If there are no interactions, use list.
|
|
1823
|
+
// Determine a role using a hierarchy based on https://www.w3.org/WAI/ARIA/apg/
|
|
1824
|
+
// - If there are one or more interactions in the repeater item projected content or there is a context menu, use `grid`.
|
|
1825
|
+
// - If there are no interactions, use `list`.
|
|
1829
1826
|
// Default to list role.
|
|
1830
1827
|
let autoRole = 'list';
|
|
1831
1828
|
const roleMap = {
|
|
1832
1829
|
list: { item: 'listitem', title: undefined, content: undefined },
|
|
1833
|
-
listbox: { item: 'option', title: undefined, content: undefined },
|
|
1834
1830
|
grid: { item: 'row', title: 'rowheader', content: 'gridcell' },
|
|
1835
1831
|
};
|
|
1836
1832
|
// Based on https://html.spec.whatwg.org/multipage/dom.html#interactive-content
|
|
@@ -1851,14 +1847,14 @@ class SkyRepeaterComponent {
|
|
|
1851
1847
|
'.sky-repeater[role="grid"]',
|
|
1852
1848
|
]
|
|
1853
1849
|
.map((selector) => `sky-repeater-item-title ${selector}:not([hidden]), sky-repeater-item-content ${selector}:not([hidden])`)
|
|
1854
|
-
.concat([`
|
|
1850
|
+
.concat([`sky-dropdown`])
|
|
1855
1851
|
.join(', ');
|
|
1856
1852
|
const hasInteraction = this.reorderable ||
|
|
1857
1853
|
this.items?.some((item) => item.isCollapsible) ||
|
|
1858
1854
|
this.items?.some((item) => !!item.selectable) ||
|
|
1859
1855
|
!!this.#elementRef.nativeElement.querySelector(interactionSelector);
|
|
1860
1856
|
if (hasInteraction) {
|
|
1861
|
-
// If the repeater matches interaction selector https://www.w3.org/
|
|
1857
|
+
// If the repeater matches interaction selector https://www.w3.org/WAI/ARIA/apg/patterns/grid/
|
|
1862
1858
|
autoRole = 'grid';
|
|
1863
1859
|
}
|
|
1864
1860
|
if (this.role !== autoRole) {
|