@coolon/angular-ui-powerups 12.4.0-alpha.37 → 12.4.0-alpha.39
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/assets/styles.scss +1 -12
- package/bundles/coolon-angular-ui-powerups.umd.js +15 -3
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/track-by.js +12 -0
- package/esm2015/lib/components/track-by.js.map +1 -1
- package/esm2015/lib/place/guards/consolidated-param-map.js +2 -1
- package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
- package/esm2015/lib/place/guards/consolidated-param-map.metadata.json +1 -1
- package/esm2015/lib/place/guards/place.guard.js +2 -1
- package/esm2015/lib/place/guards/place.guard.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +15 -2
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/track-by.d.ts +9 -0
- package/package.json +1 -1
package/assets/styles.scss
CHANGED
|
@@ -12,18 +12,7 @@
|
|
|
12
12
|
@use "./icons";
|
|
13
13
|
@use "./empty-state";
|
|
14
14
|
|
|
15
|
-
@mixin apply-light-theme($
|
|
16
|
-
|
|
17
|
-
$theme: ng.mat-light-theme((
|
|
18
|
-
color: (
|
|
19
|
-
primary: $primary,
|
|
20
|
-
accent: $accent,
|
|
21
|
-
warn: $warn,
|
|
22
|
-
)
|
|
23
|
-
));
|
|
24
|
-
|
|
25
|
-
@include ng.mat-core($typography);
|
|
26
|
-
@include ng.angular-material-theme($theme);
|
|
15
|
+
@mixin apply-light-theme($theme, $typography) {
|
|
27
16
|
|
|
28
17
|
$color-config: ng.mat-get-color-config($theme);
|
|
29
18
|
|
|
@@ -1431,10 +1431,22 @@
|
|
|
1431
1431
|
exports.TrackBy = void 0;
|
|
1432
1432
|
(function (TrackBy) {
|
|
1433
1433
|
TrackBy.byIndex = function (index, item) { return index; };
|
|
1434
|
+
/**
|
|
1435
|
+
* @deprecated use #track(MyType).by("property") instead.
|
|
1436
|
+
* @param property
|
|
1437
|
+
*/
|
|
1434
1438
|
function trackByProperty(property) {
|
|
1435
1439
|
return function (index, item) { return item[property]; };
|
|
1436
1440
|
}
|
|
1437
1441
|
TrackBy.trackByProperty = trackByProperty;
|
|
1442
|
+
function track(type) {
|
|
1443
|
+
return {
|
|
1444
|
+
by: function (property) {
|
|
1445
|
+
return function (index, item) { return item[property]; };
|
|
1446
|
+
}
|
|
1447
|
+
};
|
|
1448
|
+
}
|
|
1449
|
+
TrackBy.track = track;
|
|
1438
1450
|
})(exports.TrackBy || (exports.TrackBy = {}));
|
|
1439
1451
|
|
|
1440
1452
|
exports.CommandContainer = /** @class */ (function (_super) {
|
|
@@ -8584,7 +8596,7 @@
|
|
|
8584
8596
|
};
|
|
8585
8597
|
Object.defineProperty(ConsolidatedParameterMap.prototype, "keys", {
|
|
8586
8598
|
get: function () {
|
|
8587
|
-
return this.paramMaps.reduce(function (result, params) { return result.concat(params.keys); }, []);
|
|
8599
|
+
return ___namespace.uniq(this.paramMaps.reduce(function (result, params) { return result.concat(params.keys); }, []));
|
|
8588
8600
|
},
|
|
8589
8601
|
enumerable: false,
|
|
8590
8602
|
configurable: true
|
|
@@ -10053,13 +10065,13 @@
|
|
|
10053
10065
|
}
|
|
10054
10066
|
_a.label = 2;
|
|
10055
10067
|
case 2: return [4 /*yield*/, this.cleanInteractionState(activatedRoute, state, function () { return __awaiter(_this, void 0, void 0, function () {
|
|
10056
|
-
var params, parsedParams,
|
|
10068
|
+
var navigationSession, params, parsedParams, initialVisit, sanitiser, sanitisedVisit, urlSnapshot;
|
|
10057
10069
|
return __generator(this, function (_a) {
|
|
10058
10070
|
switch (_a.label) {
|
|
10059
10071
|
case 0:
|
|
10072
|
+
navigationSession = this.placeRouter.navigationSession;
|
|
10060
10073
|
params = new ConsolidatedParameterMap(activatedRoute.url, activatedRoute.paramMap);
|
|
10061
10074
|
parsedParams = placeDefinition_1.parseRouteParams(params);
|
|
10062
|
-
navigationSession = this.placeRouter.navigationSession;
|
|
10063
10075
|
initialVisit = navigationSession.getVisitFor(placeDefinition_1) || new Visit(placeDefinition_1, parsedParams);
|
|
10064
10076
|
sanitiser = new VisitSanitiser(navigationSession, activatedRoute, this.router, this.placeHistory, this.injector);
|
|
10065
10077
|
return [4 /*yield*/, sanitiser.sanitise(initialVisit.mergeRouteParameters(parsedParams))];
|