@porscheinformatik/clr-addons 15.7.0 → 15.8.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/esm2020/icons/shapes.mjs +14 -24
- package/esm2020/paged-search-result-list/paged-search-result-list.mjs +23 -5
- package/fesm2015/clr-addons.mjs +33 -26
- package/fesm2015/clr-addons.mjs.map +1 -1
- package/fesm2020/clr-addons.mjs +33 -26
- package/fesm2020/clr-addons.mjs.map +1 -1
- package/package.json +1 -1
- package/paged-search-result-list/paged-search-result-list.d.ts +13 -1
- package/styles/clr-addons-phs.css +17 -0
- package/styles/clr-addons-phs.css.map +1 -1
- package/styles/clr-addons-phs.min.css +1 -1
- package/styles/clr-addons-phs.min.css.map +1 -1
package/fesm2020/clr-addons.mjs
CHANGED
|
@@ -2954,12 +2954,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
|
|
|
2954
2954
|
}] } });
|
|
2955
2955
|
|
|
2956
2956
|
/*
|
|
2957
|
-
* Copyright (c) 2018-
|
|
2957
|
+
* Copyright (c) 2018-2024 Porsche Informatik. All Rights Reserved.
|
|
2958
2958
|
* This software is released under MIT license.
|
|
2959
2959
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
2960
2960
|
*/
|
|
2961
2961
|
class ClrPagedSearchResultList {
|
|
2962
2962
|
constructor() {
|
|
2963
|
+
/**
|
|
2964
|
+
* Page size label.
|
|
2965
|
+
*/
|
|
2966
|
+
this.pageSizeLabel = 'Results per page (Translate me)';
|
|
2963
2967
|
/**
|
|
2964
2968
|
* The position of the pager
|
|
2965
2969
|
*/
|
|
@@ -2968,16 +2972,26 @@ class ClrPagedSearchResultList {
|
|
|
2968
2972
|
* Triggered whenever a page change occurs.
|
|
2969
2973
|
*/
|
|
2970
2974
|
this.pageChange = new EventEmitter();
|
|
2975
|
+
/**
|
|
2976
|
+
* Triggered whenever a page size change occurs.
|
|
2977
|
+
*/
|
|
2978
|
+
this.pageSizeChange = new EventEmitter();
|
|
2971
2979
|
}
|
|
2972
2980
|
}
|
|
2973
2981
|
ClrPagedSearchResultList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: ClrPagedSearchResultList, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2974
|
-
ClrPagedSearchResultList.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: ClrPagedSearchResultList, selector: "clr-paged-search-result-list", inputs: { pageSize: ["clrPageSize", "pageSize"], currentPage: ["clrPage", "currentPage"], totalItems: ["clrTotalItems", "totalItems"], items: ["clrItems", "items"], clrPagerPosition: "clrPagerPosition" }, outputs: { pageChange: "clrPageChange" }, queries: [{ propertyName: "itemTemplate", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: "<div
|
|
2982
|
+
ClrPagedSearchResultList.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: ClrPagedSearchResultList, selector: "clr-paged-search-result-list", inputs: { pageSize: ["clrPageSize", "pageSize"], pageSizeOptions: ["clrPageSizeOptions", "pageSizeOptions"], pageSizeLabel: ["clrPageSizeLabel", "pageSizeLabel"], currentPage: ["clrPage", "currentPage"], totalItems: ["clrTotalItems", "totalItems"], items: ["clrItems", "items"], clrPagerPosition: "clrPagerPosition" }, outputs: { pageChange: "clrPageChange", pageSizeChange: "clrPageSizeChange" }, queries: [{ propertyName: "itemTemplate", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: "<div *ngIf=\"clrPagerPosition === 'top' || clrPagerPosition === 'both'\">\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'top' }\"> </ng-container>\n</div>\n<ng-container *ngFor=\"let item of items\" [ngTemplateOutlet]=\"itemTemplate\" [ngTemplateOutletContext]=\"{item: item}\">\n <div *ngIf=\"!itemTemplate\">Item template input is undefined!</div>\n</ng-container>\n<div *ngIf=\"clrPagerPosition === 'bottom' || clrPagerPosition === 'both'\">\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'bottom' }\"> </ng-container>\n</div>\n<ng-template #pager let-position>\n <div class=\"clr-row\">\n <div [class.pager-top]=\"position === 'top'\" [class.pager-bottom]=\"position === 'bottom'\">\n <ng-container *ngTemplateOutlet=\"pageSizeDropdown\"></ng-container>\n <clr-pager\n [clrPage]=\"currentPage\"\n [clrPageSize]=\"pageSize\"\n [clrTotalItems]=\"totalItems\"\n (clrPageChange)=\"pageChange.emit($event)\"\n ></clr-pager>\n </div>\n </div>\n</ng-template>\n<ng-template #pageSizeDropdown>\n <div *ngIf=\"pageSizeOptions?.length > 1\">\n <clr-dropdown>\n <button type=\"button\" class=\"btn btn-link options-text-button btn-no-capitalized\" clrDropdownTrigger>\n {{pageSizeLabel}}: {{pageSize}}\n <cds-icon shape=\"angle\" direction=\"down\"></cds-icon>\n </button>\n <button type=\"button\" class=\"btn btn-link options-icon-button\" clrDropdownTrigger>\n <cds-icon shape=\"cog\"></cds-icon>\n <cds-icon shape=\"angle\" direction=\"down\"></cds-icon>\n </button>\n <clr-dropdown-menu class=\"spinner-in-front\" clrPosition=\"top-right\">\n <ng-container *ngFor=\"let sizeOption of pageSizeOptions\">\n <button type=\"button\" clrDropdownItem (click)=\"pageSizeChange.emit(sizeOption)\">{{sizeOption}}</button>\n </ng-container>\n </clr-dropdown-menu>\n </clr-dropdown>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.CdsIconCustomTag, selector: "cds-icon" }, { kind: "component", type: i1$1.ClrDropdown, selector: "clr-dropdown", inputs: ["clrCloseMenuOnItemClick"] }, { kind: "component", type: i1$1.ClrDropdownMenu, selector: "clr-dropdown-menu", inputs: ["clrPosition"] }, { kind: "directive", type: i1$1.ClrDropdownTrigger, selector: "[clrDropdownTrigger],[clrDropdownToggle]" }, { kind: "directive", type: i1$1.ClrDropdownItem, selector: "[clrDropdownItem]", inputs: ["clrDisabled", "id"] }, { kind: "component", type: ClrPager, selector: "clr-pager", inputs: ["clrPageSize", "clrTotalItems", "clrLast", "clrPage"], outputs: ["clrPageChange"] }] });
|
|
2975
2983
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: ClrPagedSearchResultList, decorators: [{
|
|
2976
2984
|
type: Component,
|
|
2977
|
-
args: [{ selector: 'clr-paged-search-result-list', template: "<div
|
|
2985
|
+
args: [{ selector: 'clr-paged-search-result-list', template: "<div *ngIf=\"clrPagerPosition === 'top' || clrPagerPosition === 'both'\">\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'top' }\"> </ng-container>\n</div>\n<ng-container *ngFor=\"let item of items\" [ngTemplateOutlet]=\"itemTemplate\" [ngTemplateOutletContext]=\"{item: item}\">\n <div *ngIf=\"!itemTemplate\">Item template input is undefined!</div>\n</ng-container>\n<div *ngIf=\"clrPagerPosition === 'bottom' || clrPagerPosition === 'both'\">\n <ng-container [ngTemplateOutlet]=\"pager\" [ngTemplateOutletContext]=\"{ $implicit: 'bottom' }\"> </ng-container>\n</div>\n<ng-template #pager let-position>\n <div class=\"clr-row\">\n <div [class.pager-top]=\"position === 'top'\" [class.pager-bottom]=\"position === 'bottom'\">\n <ng-container *ngTemplateOutlet=\"pageSizeDropdown\"></ng-container>\n <clr-pager\n [clrPage]=\"currentPage\"\n [clrPageSize]=\"pageSize\"\n [clrTotalItems]=\"totalItems\"\n (clrPageChange)=\"pageChange.emit($event)\"\n ></clr-pager>\n </div>\n </div>\n</ng-template>\n<ng-template #pageSizeDropdown>\n <div *ngIf=\"pageSizeOptions?.length > 1\">\n <clr-dropdown>\n <button type=\"button\" class=\"btn btn-link options-text-button btn-no-capitalized\" clrDropdownTrigger>\n {{pageSizeLabel}}: {{pageSize}}\n <cds-icon shape=\"angle\" direction=\"down\"></cds-icon>\n </button>\n <button type=\"button\" class=\"btn btn-link options-icon-button\" clrDropdownTrigger>\n <cds-icon shape=\"cog\"></cds-icon>\n <cds-icon shape=\"angle\" direction=\"down\"></cds-icon>\n </button>\n <clr-dropdown-menu class=\"spinner-in-front\" clrPosition=\"top-right\">\n <ng-container *ngFor=\"let sizeOption of pageSizeOptions\">\n <button type=\"button\" clrDropdownItem (click)=\"pageSizeChange.emit(sizeOption)\">{{sizeOption}}</button>\n </ng-container>\n </clr-dropdown-menu>\n </clr-dropdown>\n </div>\n</ng-template>\n" }]
|
|
2978
2986
|
}], propDecorators: { pageSize: [{
|
|
2979
2987
|
type: Input,
|
|
2980
2988
|
args: ['clrPageSize']
|
|
2989
|
+
}], pageSizeOptions: [{
|
|
2990
|
+
type: Input,
|
|
2991
|
+
args: ['clrPageSizeOptions']
|
|
2992
|
+
}], pageSizeLabel: [{
|
|
2993
|
+
type: Input,
|
|
2994
|
+
args: ['clrPageSizeLabel']
|
|
2981
2995
|
}], currentPage: [{
|
|
2982
2996
|
type: Input,
|
|
2983
2997
|
args: ['clrPage']
|
|
@@ -2996,6 +3010,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
|
|
|
2996
3010
|
}], pageChange: [{
|
|
2997
3011
|
type: Output,
|
|
2998
3012
|
args: ['clrPageChange']
|
|
3013
|
+
}], pageSizeChange: [{
|
|
3014
|
+
type: Output,
|
|
3015
|
+
args: ['clrPageSizeChange']
|
|
2999
3016
|
}] } });
|
|
3000
3017
|
|
|
3001
3018
|
/*
|
|
@@ -4660,30 +4677,20 @@ function clrIconSVG(content, viewBox = '0 0 24 24') {
|
|
|
4660
4677
|
*/
|
|
4661
4678
|
// To support badges, alerts or the is-solid, the SVGs would need to be extended.
|
|
4662
4679
|
const CarOffSite = clrIconSVG(`
|
|
4663
|
-
<polygon
|
|
4664
|
-
|
|
4665
|
-
<path
|
|
4666
|
-
|
|
4667
|
-
<path d="
|
|
4668
|
-
<path
|
|
4669
|
-
|
|
4670
|
-
<path
|
|
4671
|
-
|
|
4672
|
-
<path
|
|
4673
|
-
d="M8.8623,26.5967l-1.1743.7939a.65.65,0,0,0,.3647,1.1885.643.643,0,0,0,.3638-.1123l1.1743-.7939a.65.65,0,1,0-.7285-1.0762Z"/>
|
|
4674
|
-
<path
|
|
4675
|
-
d="M8.4165,14.0205a.65.65,0,1,0-.7285,1.0762l1.1743.7939a.643.643,0,0,0,.3638.1123.65.65,0,0,0,.3647-1.1884Z"/>
|
|
4676
|
-
<path
|
|
4677
|
-
d="M12.0811,16.4971a.65.65,0,1,0-.7286,1.0761l2.49,1.6836a.6429.6429,0,0,0,.3637.1123.65.65,0,0,0,.3648-1.1884Z"/>
|
|
4678
|
-
<path d="M22.042,23.23a.65.65,0,0,0-.7275,1.0781l2.49,1.6826a.65.65,0,0,0,.7275-1.0781Z"/>
|
|
4679
|
-
<path
|
|
4680
|
-
d="M27.0229,26.5967a.65.65,0,1,0-.7285,1.0762l1.1744.7939a.6427.6427,0,0,0,.3637.1123.65.65,0,0,0,.3648-1.1885Z"/>`, '0 0 36 36');
|
|
4680
|
+
<polygon points="24 8.39 24 24 22.7 24 22.7 9.07 12 1.58 1.3 9.07 1.3 24 0 24 0 8.39 12 0 24 8.39"/>
|
|
4681
|
+
<path d="M20.7166,10.9785a.6429.6429,0,0,0,.3637-.1123l.6446-.4358,0,0L23.8,9.0283l-.7275-1.0762-1.542,1.042-.0047.002L20.3518,9.79a.65.65,0,0,0,.3648,1.1885Z"/>
|
|
4682
|
+
<path d="M7.9006,18.2051,5.41,19.8877a.65.65,0,1,0,.7275,1.0781l2.49-1.6826a.65.65,0,0,0-.7276-1.0781Z"/>
|
|
4683
|
+
<path d="M13.7839,15.0127a.65.65,0,0,0-.9028-.1738L12,15.4346l-.8811-.5957A.65.65,0,1,0,10.39,15.915l.4494.3039-.4489.3036a.65.65,0,1,0,.7285,1.0761L12,17.0033l.8806.5953a.643.643,0,0,0,.3638.1123.65.65,0,0,0,.3647-1.1884l-.4489-.3036.4494-.3039A.6493.6493,0,0,0,13.7839,15.0127Z"/>
|
|
4684
|
+
<path d="M17.8616,11.4727l-2.49,1.6835A.65.65,0,1,0,16.1,14.2324l2.49-1.6836a.65.65,0,1,0-.7285-1.0761Z"/>
|
|
4685
|
+
<path d="M3.65,22.65l-.59.4-.37.25-.22.14L1.65,24H.6l-.4-.59,2.13-1.44.59-.4a.6518.6518,0,0,1,.73,1.08Z"/>
|
|
4686
|
+
<path d="M2.4739,8.9961,2.469,8.994.9277,7.9521.1992,9.0283l1.9517,1.3194.0005-.0009.7683.5194a.6429.6429,0,0,0,.3637.1123A.65.65,0,0,0,3.6482,9.79Z"/>
|
|
4687
|
+
<path d="M6.1384,11.4727A.65.65,0,1,0,5.41,12.5488L7.9,14.2324a.6432.6432,0,0,0,.3638.1123.65.65,0,0,0,.3648-1.1885Z"/>
|
|
4688
|
+
<path d="M16.0994,18.2051a.65.65,0,0,0-.7276,1.0781l2.49,1.6826a.65.65,0,0,0,.7275-1.0781Z"/>
|
|
4689
|
+
<path d="M23.8,23.41l-.4.59H22.35l-1.37-.93-.63-.42a.6518.6518,0,0,1,.73-1.08l.63.43Z"/>`);
|
|
4681
4690
|
const CarOnSite = clrIconSVG(`
|
|
4682
|
-
<path d="
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
<polygon
|
|
4686
|
-
points="18 4.195 5 13.285 5 29.805 6.3 29.805 6.3 13.965 18 5.775 29.7 13.965 29.7 29.805 31 29.805 31 13.285 18 4.195"/>`, '0 0 36 36');
|
|
4691
|
+
<path d="M12,16.8a.86.86,0,0,0-.8.8.8515.8515,0,0,0,1.7.1A.8963.8963,0,0,0,12,16.8Z"/>
|
|
4692
|
+
<path d="M21.8,10.6a16.9577,16.9577,0,0,1-2.2.4L18.5,8.4A2.9653,2.9653,0,0,0,16.3,7H7.7A2.5336,2.5336,0,0,0,5.6,8.5L4.4,11.1a16.9577,16.9577,0,0,0-2.2-.4L2,12c.7.1,1.3.2,2,.3l-.6,1A6.0075,6.0075,0,0,0,2.7,16v5.5a1.43,1.43,0,0,0,1.4,1.4H5.7a1.3671,1.3671,0,0,0,1.4-1.4v-.4h9.7v.4a1.43,1.43,0,0,0,1.4,1.4h1.7a1.3671,1.3671,0,0,0,1.4-1.4V16a5.1892,5.1892,0,0,0-.7-2.7l-.5-1.1c.6-.1,1.3-.2,1.9-.3ZM6.8,9a1.4454,1.4454,0,0,1,1-.7h8.4a1.4425,1.4425,0,0,1,1.1.7l.9,2.2a50.6175,50.6175,0,0,1-12.3,0ZM19.9,21.6v.1H18.2V19.8H5.8v1.8H4.1v-5c1.2.2,2.5.3,3.8.4V15.7c-1.3-.1-2.6-.2-3.8-.4A5.0234,5.0234,0,0,1,4.6,14l.8-1.6a48.7229,48.7229,0,0,0,6.6.4,51.7006,51.7006,0,0,0,6.8-.4l.6207,1.4462A8.24,8.24,0,0,1,19.9,15.3c-1.2.2-2.4.3-3.7.4l.1,1.3c1.3-.1,2.5-.2,3.7-.4Z"/>
|
|
4693
|
+
<polygon points="12 0 0 8.39 0 24 1.3 24 1.3 9.07 12 1.58 22.7 9.07 22.7 24 24 24 24 8.39 12 0"/>`);
|
|
4687
4694
|
const CampaignOutdatedShape = clrIconSVG(` <path
|
|
4688
4695
|
d="m 24.664062,20.947266 a 0.85000002,0.85000002 0 0 0 -0.857421,0.84375 l -0.03516,4.699218 a 0.85000002,0.85000002 0 0 0 0.84375,0.857422 0.85000002,0.85000002 0 0 0 0.857422,-0.84375 l 0.03516,-4.701172 a 0.85000002,0.85000002 0 0 0 -0.84375,-0.855468 z"
|
|
4689
4696
|
id="path1534" />
|