coer-elements 2.0.36 → 2.0.37
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.
@@ -5,7 +5,7 @@ export declare class CoerButton implements AfterViewInit {
|
|
5
5
|
private _element;
|
6
6
|
id: import("@angular/core").InputSignal<string>;
|
7
7
|
color: import("@angular/core").InputSignal<"default" | "primary" | "secondary" | "success" | "warning" | "danger" | "navigation" | "information" | "dark" | "light">;
|
8
|
-
type: import("@angular/core").InputSignal<"
|
8
|
+
type: import("@angular/core").InputSignal<"filled" | "outline" | "icon" | "icon-outline" | "icon-no-border">;
|
9
9
|
icon: import("@angular/core").InputSignal<string | null | undefined>;
|
10
10
|
iconPosition: import("@angular/core").InputSignal<"left" | "right">;
|
11
11
|
path: import("@angular/core").InputSignal<string | (string | number)[]>;
|
@@ -548,11 +548,10 @@ const GridTemplates = {
|
|
548
548
|
class Collections {
|
549
549
|
/** Set an index and concat more arrays of the same type */
|
550
550
|
static SetIndex(array, ...args) {
|
551
|
-
let index = 0;
|
552
551
|
for (const arg of args) {
|
553
|
-
array =
|
552
|
+
array = [...array].concat([...arg]);
|
554
553
|
}
|
555
|
-
return
|
554
|
+
return [...array].map((item, index) => Object.assign({}, item, { index }));
|
556
555
|
}
|
557
556
|
/** Sort an array in ascending order by property */
|
558
557
|
static SortBy(array, property, propertyType = 'string') {
|