primeng 17.4.0 → 17.5.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.
- package/api/translationkeys.d.ts +2 -2
- package/dropdown/dropdown.d.ts +1 -0
- package/esm2022/accordion/accordion.mjs +2 -2
- package/esm2022/api/translationkeys.mjs +3 -3
- package/esm2022/autocomplete/autocomplete.mjs +3 -3
- package/esm2022/calendar/calendar.mjs +20 -5
- package/esm2022/dragdrop/dragdrop.mjs +5 -3
- package/esm2022/dropdown/dropdown.mjs +38 -15
- package/esm2022/inputnumber/inputnumber.mjs +2 -2
- package/esm2022/table/table.mjs +17 -15
- package/esm2022/tabview/tabview.mjs +4 -2
- package/fesm2022/primeng-accordion.mjs +1 -1
- package/fesm2022/primeng-accordion.mjs.map +1 -1
- package/fesm2022/primeng-api.mjs +2 -2
- package/fesm2022/primeng-api.mjs.map +1 -1
- package/fesm2022/primeng-autocomplete.mjs +2 -2
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-calendar.mjs +19 -4
- package/fesm2022/primeng-calendar.mjs.map +1 -1
- package/fesm2022/primeng-dragdrop.mjs +4 -2
- package/fesm2022/primeng-dragdrop.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs +37 -14
- package/fesm2022/primeng-dropdown.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +1 -1
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +16 -14
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tabview.mjs +3 -1
- package/fesm2022/primeng-tabview.mjs.map +1 -1
- package/package.json +70 -70
- package/resources/components/calendar/calendar.css +1 -1
- package/resources/themes/arya-blue/theme.css +454 -246
- package/resources/themes/arya-green/theme.css +454 -246
- package/resources/themes/arya-orange/theme.css +454 -246
- package/resources/themes/arya-purple/theme.css +454 -246
- package/resources/themes/bootstrap4-dark-blue/theme.css +455 -246
- package/resources/themes/bootstrap4-dark-purple/theme.css +455 -246
- package/resources/themes/bootstrap4-light-blue/theme.css +455 -246
- package/resources/themes/bootstrap4-light-purple/theme.css +455 -246
- package/resources/themes/fluent-light/theme.css +481 -257
- package/resources/themes/lara-dark-blue/theme.css +470 -248
- package/resources/themes/lara-dark-indigo/theme.css +470 -248
- package/resources/themes/lara-dark-purple/theme.css +470 -248
- package/resources/themes/lara-dark-teal/theme.css +470 -248
- package/resources/themes/lara-light-blue/theme.css +475 -256
- package/resources/themes/lara-light-indigo/theme.css +475 -256
- package/resources/themes/lara-light-purple/theme.css +475 -256
- package/resources/themes/lara-light-teal/theme.css +475 -256
- package/resources/themes/luna-amber/theme.css +468 -259
- package/resources/themes/luna-blue/theme.css +468 -259
- package/resources/themes/luna-green/theme.css +468 -259
- package/resources/themes/luna-pink/theme.css +468 -259
- package/resources/themes/md-dark-deeppurple/theme.css +713 -406
- package/resources/themes/md-dark-indigo/theme.css +713 -406
- package/resources/themes/md-light-deeppurple/theme.css +574 -267
- package/resources/themes/md-light-indigo/theme.css +574 -267
- package/resources/themes/mdc-dark-deeppurple/theme.css +713 -406
- package/resources/themes/mdc-dark-indigo/theme.css +713 -406
- package/resources/themes/mdc-light-deeppurple/theme.css +574 -267
- package/resources/themes/mdc-light-indigo/theme.css +574 -267
- package/resources/themes/mira/theme.css +492 -253
- package/resources/themes/nano/theme.css +452 -246
- package/resources/themes/nova/theme.css +456 -246
- package/resources/themes/nova-accent/theme.css +453 -246
- package/resources/themes/nova-alt/theme.css +456 -246
- package/resources/themes/rhea/theme.css +453 -246
- package/resources/themes/saga-blue/theme.css +454 -246
- package/resources/themes/saga-green/theme.css +454 -246
- package/resources/themes/saga-orange/theme.css +454 -246
- package/resources/themes/saga-purple/theme.css +454 -246
- package/resources/themes/soho-dark/theme.css +488 -277
- package/resources/themes/soho-light/theme.css +464 -251
- package/resources/themes/tailwind-light/theme.css +497 -276
- package/resources/themes/vela-blue/theme.css +454 -246
- package/resources/themes/vela-green/theme.css +454 -246
- package/resources/themes/vela-orange/theme.css +454 -246
- package/resources/themes/vela-purple/theme.css +454 -246
- package/resources/themes/viva-dark/theme.css +478 -251
- package/resources/themes/viva-light/theme.css +478 -251
- package/table/table.d.ts +1 -0
@@ -470,7 +470,7 @@ class Table {
|
|
470
470
|
* The breakpoint to define the maximum width boundary when using stack responsive layout.
|
471
471
|
* @group Props
|
472
472
|
*/
|
473
|
-
breakpoint = '
|
473
|
+
breakpoint = '640px';
|
474
474
|
/**
|
475
475
|
* Locale to be used in paginator formatting.
|
476
476
|
* @group Props
|
@@ -838,7 +838,7 @@ class Table {
|
|
838
838
|
this.restoringFilter = false;
|
839
839
|
}
|
840
840
|
}
|
841
|
-
if (this.responsiveLayout === 'stack'
|
841
|
+
if (this.responsiveLayout === 'stack') {
|
842
842
|
this.createResponsiveStyle();
|
843
843
|
}
|
844
844
|
this.initialized = true;
|
@@ -2457,6 +2457,12 @@ class Table {
|
|
2457
2457
|
this.destroyStyleElement();
|
2458
2458
|
this.destroyResponsiveStyle();
|
2459
2459
|
}
|
2460
|
+
getPaginatorStyleClasses(className) {
|
2461
|
+
return [this.paginatorStyleClass, className]
|
2462
|
+
.filter((c) => !!c)
|
2463
|
+
.join(' ')
|
2464
|
+
.trim();
|
2465
|
+
}
|
2460
2466
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: Table, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: TableService }, { token: i0.ChangeDetectorRef }, { token: i1.FilterService }, { token: i1.OverlayService }, { token: i1.PrimeNGConfig }], target: i0.ɵɵFactoryTarget.Component });
|
2461
2467
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.0", type: Table, selector: "p-table", inputs: { frozenColumns: "frozenColumns", frozenValue: "frozenValue", style: "style", styleClass: "styleClass", tableStyle: "tableStyle", tableStyleClass: "tableStyleClass", paginator: "paginator", pageLinks: "pageLinks", rowsPerPageOptions: "rowsPerPageOptions", alwaysShowPaginator: "alwaysShowPaginator", paginatorPosition: "paginatorPosition", paginatorStyleClass: "paginatorStyleClass", paginatorDropdownAppendTo: "paginatorDropdownAppendTo", paginatorDropdownScrollHeight: "paginatorDropdownScrollHeight", currentPageReportTemplate: "currentPageReportTemplate", showCurrentPageReport: "showCurrentPageReport", showJumpToPageDropdown: "showJumpToPageDropdown", showJumpToPageInput: "showJumpToPageInput", showFirstLastIcon: "showFirstLastIcon", showPageLinks: "showPageLinks", defaultSortOrder: "defaultSortOrder", sortMode: "sortMode", resetPageOnSort: "resetPageOnSort", selectionMode: "selectionMode", selectionPageOnly: "selectionPageOnly", contextMenuSelection: "contextMenuSelection", contextMenuSelectionMode: "contextMenuSelectionMode", dataKey: "dataKey", metaKeySelection: "metaKeySelection", rowSelectable: "rowSelectable", rowTrackBy: "rowTrackBy", lazy: "lazy", lazyLoadOnInit: "lazyLoadOnInit", compareSelectionBy: "compareSelectionBy", csvSeparator: "csvSeparator", exportFilename: "exportFilename", filters: "filters", globalFilterFields: "globalFilterFields", filterDelay: "filterDelay", filterLocale: "filterLocale", expandedRowKeys: "expandedRowKeys", editingRowKeys: "editingRowKeys", rowExpandMode: "rowExpandMode", scrollable: "scrollable", scrollDirection: "scrollDirection", rowGroupMode: "rowGroupMode", scrollHeight: "scrollHeight", virtualScroll: "virtualScroll", virtualScrollItemSize: "virtualScrollItemSize", virtualScrollOptions: "virtualScrollOptions", virtualScrollDelay: "virtualScrollDelay", frozenWidth: "frozenWidth", responsive: "responsive", contextMenu: "contextMenu", resizableColumns: "resizableColumns", columnResizeMode: "columnResizeMode", reorderableColumns: "reorderableColumns", loading: "loading", loadingIcon: "loadingIcon", showLoader: "showLoader", rowHover: "rowHover", customSort: "customSort", showInitialSortBadge: "showInitialSortBadge", autoLayout: "autoLayout", exportFunction: "exportFunction", exportHeader: "exportHeader", stateKey: "stateKey", stateStorage: "stateStorage", editMode: "editMode", groupRowsBy: "groupRowsBy", groupRowsByOrder: "groupRowsByOrder", responsiveLayout: "responsiveLayout", breakpoint: "breakpoint", paginatorLocale: "paginatorLocale", value: "value", columns: "columns", first: "first", rows: "rows", totalRecords: "totalRecords", sortField: "sortField", sortOrder: "sortOrder", multiSortMeta: "multiSortMeta", selection: "selection", selectAll: "selectAll", virtualRowHeight: "virtualRowHeight" }, outputs: { contextMenuSelectionChange: "contextMenuSelectionChange", selectAllChange: "selectAllChange", selectionChange: "selectionChange", onRowSelect: "onRowSelect", onRowUnselect: "onRowUnselect", onPage: "onPage", onSort: "onSort", onFilter: "onFilter", onLazyLoad: "onLazyLoad", onRowExpand: "onRowExpand", onRowCollapse: "onRowCollapse", onContextMenuSelect: "onContextMenuSelect", onColResize: "onColResize", onColReorder: "onColReorder", onRowReorder: "onRowReorder", onEditInit: "onEditInit", onEditComplete: "onEditComplete", onEditCancel: "onEditCancel", onHeaderCheckboxToggle: "onHeaderCheckboxToggle", sortFunction: "sortFunction", firstChange: "firstChange", rowsChange: "rowsChange", onStateSave: "onStateSave", onStateRestore: "onStateRestore" }, host: { classAttribute: "p-element" }, providers: [TableService], queries: [{ propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }, { propertyName: "resizeHelperViewChild", first: true, predicate: ["resizeHelper"], descendants: true }, { propertyName: "reorderIndicatorUpViewChild", first: true, predicate: ["reorderIndicatorUp"], descendants: true }, { propertyName: "reorderIndicatorDownViewChild", first: true, predicate: ["reorderIndicatorDown"], descendants: true }, { propertyName: "wrapperViewChild", first: true, predicate: ["wrapper"], descendants: true }, { propertyName: "tableViewChild", first: true, predicate: ["table"], descendants: true }, { propertyName: "tableHeaderViewChild", first: true, predicate: ["thead"], descendants: true }, { propertyName: "tableFooterViewChild", first: true, predicate: ["tfoot"], descendants: true }, { propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
2462
2468
|
<div
|
@@ -2483,7 +2489,6 @@ class Table {
|
|
2483
2489
|
[first]="first"
|
2484
2490
|
[totalRecords]="totalRecords"
|
2485
2491
|
[pageLinkSize]="pageLinks"
|
2486
|
-
styleClass="p-paginator-top"
|
2487
2492
|
[alwaysShow]="alwaysShowPaginator"
|
2488
2493
|
(onPageChange)="onPageChange($event)"
|
2489
2494
|
[rowsPerPageOptions]="rowsPerPageOptions"
|
@@ -2499,7 +2504,7 @@ class Table {
|
|
2499
2504
|
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
2500
2505
|
[showJumpToPageInput]="showJumpToPageInput"
|
2501
2506
|
[showPageLinks]="showPageLinks"
|
2502
|
-
[styleClass]="
|
2507
|
+
[styleClass]="getPaginatorStyleClasses('p-paginator-top')"
|
2503
2508
|
[locale]="paginatorLocale"
|
2504
2509
|
>
|
2505
2510
|
<ng-template pTemplate="dropdownicon" *ngIf="paginatorDropdownIconTemplate">
|
@@ -2602,7 +2607,6 @@ class Table {
|
|
2602
2607
|
[first]="first"
|
2603
2608
|
[totalRecords]="totalRecords"
|
2604
2609
|
[pageLinkSize]="pageLinks"
|
2605
|
-
styleClass="p-paginator-bottom"
|
2606
2610
|
[alwaysShow]="alwaysShowPaginator"
|
2607
2611
|
(onPageChange)="onPageChange($event)"
|
2608
2612
|
[rowsPerPageOptions]="rowsPerPageOptions"
|
@@ -2618,7 +2622,7 @@ class Table {
|
|
2618
2622
|
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
2619
2623
|
[showJumpToPageInput]="showJumpToPageInput"
|
2620
2624
|
[showPageLinks]="showPageLinks"
|
2621
|
-
[styleClass]="
|
2625
|
+
[styleClass]="getPaginatorStyleClasses('p-paginator-bottom')"
|
2622
2626
|
[locale]="paginatorLocale"
|
2623
2627
|
>
|
2624
2628
|
<ng-template pTemplate="dropdownicon" *ngIf="paginatorDropdownIconTemplate">
|
@@ -2685,7 +2689,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImpor
|
|
2685
2689
|
[first]="first"
|
2686
2690
|
[totalRecords]="totalRecords"
|
2687
2691
|
[pageLinkSize]="pageLinks"
|
2688
|
-
styleClass="p-paginator-top"
|
2689
2692
|
[alwaysShow]="alwaysShowPaginator"
|
2690
2693
|
(onPageChange)="onPageChange($event)"
|
2691
2694
|
[rowsPerPageOptions]="rowsPerPageOptions"
|
@@ -2701,7 +2704,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImpor
|
|
2701
2704
|
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
2702
2705
|
[showJumpToPageInput]="showJumpToPageInput"
|
2703
2706
|
[showPageLinks]="showPageLinks"
|
2704
|
-
[styleClass]="
|
2707
|
+
[styleClass]="getPaginatorStyleClasses('p-paginator-top')"
|
2705
2708
|
[locale]="paginatorLocale"
|
2706
2709
|
>
|
2707
2710
|
<ng-template pTemplate="dropdownicon" *ngIf="paginatorDropdownIconTemplate">
|
@@ -2804,7 +2807,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImpor
|
|
2804
2807
|
[first]="first"
|
2805
2808
|
[totalRecords]="totalRecords"
|
2806
2809
|
[pageLinkSize]="pageLinks"
|
2807
|
-
styleClass="p-paginator-bottom"
|
2808
2810
|
[alwaysShow]="alwaysShowPaginator"
|
2809
2811
|
(onPageChange)="onPageChange($event)"
|
2810
2812
|
[rowsPerPageOptions]="rowsPerPageOptions"
|
@@ -2820,7 +2822,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImpor
|
|
2820
2822
|
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
2821
2823
|
[showJumpToPageInput]="showJumpToPageInput"
|
2822
2824
|
[showPageLinks]="showPageLinks"
|
2823
|
-
[styleClass]="
|
2825
|
+
[styleClass]="getPaginatorStyleClasses('p-paginator-bottom')"
|
2824
2826
|
[locale]="paginatorLocale"
|
2825
2827
|
>
|
2826
2828
|
<ng-template pTemplate="dropdownicon" *ngIf="paginatorDropdownIconTemplate">
|
@@ -3748,7 +3750,7 @@ class SelectableRow {
|
|
3748
3750
|
break;
|
3749
3751
|
default:
|
3750
3752
|
if (event.code === 'KeyA' && (event.metaKey || event.ctrlKey)) {
|
3751
|
-
const data = this.dt.dataToRender(this.dt.
|
3753
|
+
const data = this.dt.dataToRender(this.dt.processedData);
|
3752
3754
|
this.dt.selection = [...data];
|
3753
3755
|
this.dt.selectRange(event, data.length - 1);
|
3754
3756
|
event.preventDefault();
|
@@ -5438,7 +5440,7 @@ class ColumnFilter {
|
|
5438
5440
|
return this.config.getTranslation(TranslationKeys.NO_FILTER);
|
5439
5441
|
}
|
5440
5442
|
get filterMenuButtonAriaLabel() {
|
5441
|
-
return this.config.translation ? (this.overlayVisible ? this.config.translation.aria.
|
5443
|
+
return this.config.translation ? (this.overlayVisible ? this.config.translation.aria.hideFilterMenu : this.config.translation.aria.showFilterMenu) : undefined;
|
5442
5444
|
}
|
5443
5445
|
get removeRuleButtonAriaLabel() {
|
5444
5446
|
return this.config.translation ? this.config.translation.removeRule : undefined;
|
@@ -5819,7 +5821,7 @@ class ColumnFilter {
|
|
5819
5821
|
type="button"
|
5820
5822
|
class="p-column-filter-menu-button p-link"
|
5821
5823
|
aria-haspopup="true"
|
5822
|
-
[attr.aria-label]="
|
5824
|
+
[attr.aria-label]="filterMenuButtonAriaLabel"
|
5823
5825
|
[attr.aria-controls]="overlayId"
|
5824
5826
|
[attr.aria-expanded]="overlayVisible"
|
5825
5827
|
[ngClass]="{ 'p-column-filter-menu-button-open': overlayVisible, 'p-column-filter-menu-button-active': hasFilter() }"
|
@@ -5956,7 +5958,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImpor
|
|
5956
5958
|
type="button"
|
5957
5959
|
class="p-column-filter-menu-button p-link"
|
5958
5960
|
aria-haspopup="true"
|
5959
|
-
[attr.aria-label]="
|
5961
|
+
[attr.aria-label]="filterMenuButtonAriaLabel"
|
5960
5962
|
[attr.aria-controls]="overlayId"
|
5961
5963
|
[attr.aria-expanded]="overlayVisible"
|
5962
5964
|
[ngClass]="{ 'p-column-filter-menu-button-open': overlayVisible, 'p-column-filter-menu-button-active': hasFilter() }"
|