@clr/angular 5.3.1 → 5.5.1
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/bundles/clr-angular.umd.js +101 -115
- package/bundles/clr-angular.umd.js.map +1 -1
- package/bundles/clr-angular.umd.min.js +2 -2
- package/bundles/clr-angular.umd.min.js.map +1 -1
- package/clr-angular.metadata.json +1 -1
- package/data/datagrid/datagrid-row.d.ts +1 -1
- package/esm2015/accordion/accordion-panel.js +11 -1
- package/esm2015/data/datagrid/datagrid-row.js +1 -1
- package/esm2015/data/datagrid/datagrid.js +2 -2
- package/esm2015/forms/common/if-control-state/if-error.js +13 -5
- package/esm2015/utils/outside-click/outside-click.js +26 -17
- package/fesm2015/clr-angular.js +98 -73
- package/fesm2015/clr-angular.js.map +1 -1
- package/forms/common/if-control-state/if-error.d.ts +1 -0
- package/package.json +2 -2
- package/schematics/add/index.js +1 -1
- package/schematics/add/index.js.map +1 -1
- package/schematics/add/schema.json +18 -0
- package/schematics/collection.json +10 -0
- package/schematics/migration-collection.json +20 -0
- package/utils/outside-click/outside-click.d.ts +5 -5
|
@@ -4,29 +4,6 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.clr = global.clr || {}, global.clr.angular = {}), global.ng.core, global.icon, global.ng.common, global.rxjs, global.rxjs.operators, global.ng.animations, global.ng.forms));
|
|
5
5
|
}(this, (function (exports, i0, icon, i1, rxjs, operators, animations, forms) { 'use strict';
|
|
6
6
|
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n['default'] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
29
|
-
|
|
30
7
|
/*
|
|
31
8
|
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
32
9
|
* This software is released under MIT license.
|
|
@@ -414,7 +391,6 @@
|
|
|
414
391
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
415
392
|
*
|
|
416
393
|
*/
|
|
417
|
-
exports.ClrAlignment = void 0;
|
|
418
394
|
(function (ClrAlignment) {
|
|
419
395
|
ClrAlignment[ClrAlignment["START"] = 0] = "START";
|
|
420
396
|
ClrAlignment[ClrAlignment["CENTER"] = 0.5] = "CENTER";
|
|
@@ -596,7 +572,6 @@
|
|
|
596
572
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
597
573
|
*
|
|
598
574
|
*/
|
|
599
|
-
exports.ClrAxis = void 0;
|
|
600
575
|
(function (ClrAxis) {
|
|
601
576
|
ClrAxis[ClrAxis["VERTICAL"] = 0] = "VERTICAL";
|
|
602
577
|
ClrAxis[ClrAxis["HORIZONTAL"] = 1] = "HORIZONTAL";
|
|
@@ -1127,7 +1102,6 @@
|
|
|
1127
1102
|
* This software is released under MIT license.
|
|
1128
1103
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
1129
1104
|
*/
|
|
1130
|
-
exports.ClrLoadingState = void 0;
|
|
1131
1105
|
(function (ClrLoadingState) {
|
|
1132
1106
|
ClrLoadingState[ClrLoadingState["DEFAULT"] = 0] = "DEFAULT";
|
|
1133
1107
|
ClrLoadingState[ClrLoadingState["LOADING"] = 1] = "LOADING";
|
|
@@ -1470,7 +1444,7 @@
|
|
|
1470
1444
|
};
|
|
1471
1445
|
return ClrCommonStringsService;
|
|
1472
1446
|
}());
|
|
1473
|
-
ClrCommonStringsService.ɵprov =
|
|
1447
|
+
ClrCommonStringsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ClrCommonStringsService_Factory() { return new ClrCommonStringsService(); }, token: ClrCommonStringsService, providedIn: "root" });
|
|
1474
1448
|
ClrCommonStringsService.decorators = [
|
|
1475
1449
|
{ type: i0.Injectable, args: [{
|
|
1476
1450
|
providedIn: 'root',
|
|
@@ -1498,7 +1472,6 @@
|
|
|
1498
1472
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
1499
1473
|
*
|
|
1500
1474
|
*/
|
|
1501
|
-
exports.ClrSide = void 0;
|
|
1502
1475
|
(function (ClrSide) {
|
|
1503
1476
|
ClrSide[ClrSide["BEFORE"] = -1] = "BEFORE";
|
|
1504
1477
|
ClrSide[ClrSide["AFTER"] = 1] = "AFTER";
|
|
@@ -2233,10 +2206,10 @@
|
|
|
2233
2206
|
* This software is released under MIT license.
|
|
2234
2207
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
2235
2208
|
*/
|
|
2236
|
-
var counter
|
|
2209
|
+
var counter = 0;
|
|
2237
2210
|
var ControlIdService = /** @class */ (function () {
|
|
2238
2211
|
function ControlIdService() {
|
|
2239
|
-
this._id = 'clr-form-control-' + ++counter
|
|
2212
|
+
this._id = 'clr-form-control-' + ++counter;
|
|
2240
2213
|
this._idChange = new rxjs.BehaviorSubject(this._id);
|
|
2241
2214
|
}
|
|
2242
2215
|
Object.defineProperty(ControlIdService.prototype, "id", {
|
|
@@ -2305,7 +2278,6 @@
|
|
|
2305
2278
|
* This software is released under MIT license.
|
|
2306
2279
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
2307
2280
|
*/
|
|
2308
|
-
exports.ClrFormLayout = void 0;
|
|
2309
2281
|
(function (ClrFormLayout) {
|
|
2310
2282
|
ClrFormLayout["VERTICAL"] = "vertical";
|
|
2311
2283
|
ClrFormLayout["HORIZONTAL"] = "horizontal";
|
|
@@ -3151,11 +3123,19 @@
|
|
|
3151
3123
|
if (!this.container) {
|
|
3152
3124
|
return;
|
|
3153
3125
|
}
|
|
3154
|
-
if (invalid
|
|
3155
|
-
|
|
3156
|
-
|
|
3126
|
+
if (invalid) {
|
|
3127
|
+
if (this.displayedContent === false) {
|
|
3128
|
+
this.embeddedViewRef = this.container.createEmbeddedView(this.template, {
|
|
3129
|
+
error: this.control.getError(this.error),
|
|
3130
|
+
});
|
|
3131
|
+
this.displayedContent = true;
|
|
3132
|
+
}
|
|
3133
|
+
else if (this.embeddedViewRef && this.embeddedViewRef.context) {
|
|
3134
|
+
// if view is already rendered, update the error object to keep it in sync
|
|
3135
|
+
this.embeddedViewRef.context.error = this.control.getError(this.error);
|
|
3136
|
+
}
|
|
3157
3137
|
}
|
|
3158
|
-
else
|
|
3138
|
+
else {
|
|
3159
3139
|
this.container.clear();
|
|
3160
3140
|
this.displayedContent = false;
|
|
3161
3141
|
}
|
|
@@ -3460,12 +3440,12 @@
|
|
|
3460
3440
|
*/
|
|
3461
3441
|
var activeCounter = 0;
|
|
3462
3442
|
var IF_ACTIVE_ID = new i0.InjectionToken('IF_ACTIVE_ID');
|
|
3463
|
-
function tokenFactory
|
|
3443
|
+
function tokenFactory() {
|
|
3464
3444
|
return ++activeCounter;
|
|
3465
3445
|
}
|
|
3466
3446
|
var IF_ACTIVE_ID_PROVIDER = {
|
|
3467
3447
|
provide: IF_ACTIVE_ID,
|
|
3468
|
-
useFactory: tokenFactory
|
|
3448
|
+
useFactory: tokenFactory,
|
|
3469
3449
|
};
|
|
3470
3450
|
/*********
|
|
3471
3451
|
* @class IfActiveService
|
|
@@ -3935,7 +3915,7 @@
|
|
|
3935
3915
|
};
|
|
3936
3916
|
return FocusTrapTracker;
|
|
3937
3917
|
}());
|
|
3938
|
-
FocusTrapTracker.ɵprov =
|
|
3918
|
+
FocusTrapTracker.ɵprov = i0.ɵɵdefineInjectable({ factory: function FocusTrapTracker_Factory() { return new FocusTrapTracker(); }, token: FocusTrapTracker, providedIn: "root" });
|
|
3939
3919
|
FocusTrapTracker.decorators = [
|
|
3940
3920
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
3941
3921
|
];
|
|
@@ -5137,7 +5117,7 @@
|
|
|
5137
5117
|
* This software is released under MIT license.
|
|
5138
5118
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5139
5119
|
*/
|
|
5140
|
-
var FocusService
|
|
5120
|
+
var FocusService = /** @class */ (function () {
|
|
5141
5121
|
function FocusService() {
|
|
5142
5122
|
this._focused = new rxjs.BehaviorSubject(false);
|
|
5143
5123
|
}
|
|
@@ -5157,7 +5137,7 @@
|
|
|
5157
5137
|
});
|
|
5158
5138
|
return FocusService;
|
|
5159
5139
|
}());
|
|
5160
|
-
FocusService
|
|
5140
|
+
FocusService.decorators = [
|
|
5161
5141
|
{ type: i0.Injectable }
|
|
5162
5142
|
];
|
|
5163
5143
|
|
|
@@ -5408,7 +5388,7 @@
|
|
|
5408
5388
|
ClrPopoverPositionService,
|
|
5409
5389
|
LocaleHelperService,
|
|
5410
5390
|
ControlClassService,
|
|
5411
|
-
FocusService
|
|
5391
|
+
FocusService,
|
|
5412
5392
|
NgControlService,
|
|
5413
5393
|
DateIOService,
|
|
5414
5394
|
DateNavigationService,
|
|
@@ -5431,7 +5411,7 @@
|
|
|
5431
5411
|
{ type: DatepickerEnabledService },
|
|
5432
5412
|
{ type: DateFormControlService },
|
|
5433
5413
|
{ type: ClrCommonStringsService },
|
|
5434
|
-
{ type: FocusService
|
|
5414
|
+
{ type: FocusService },
|
|
5435
5415
|
{ type: ViewManagerService },
|
|
5436
5416
|
{ type: ControlClassService },
|
|
5437
5417
|
{ type: LayoutService, decorators: [{ type: i0.Optional }] },
|
|
@@ -5712,7 +5692,7 @@
|
|
|
5712
5692
|
{ type: DatepickerEnabledService, decorators: [{ type: i0.Optional }] },
|
|
5713
5693
|
{ type: DateFormControlService, decorators: [{ type: i0.Optional }] },
|
|
5714
5694
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [i0.PLATFORM_ID,] }] },
|
|
5715
|
-
{ type: FocusService
|
|
5695
|
+
{ type: FocusService, decorators: [{ type: i0.Optional }] },
|
|
5716
5696
|
{ type: DatepickerFocusService }
|
|
5717
5697
|
]; };
|
|
5718
5698
|
ClrDateInput.propDecorators = {
|
|
@@ -6418,7 +6398,7 @@
|
|
|
6418
6398
|
NgControlService,
|
|
6419
6399
|
ControlIdService,
|
|
6420
6400
|
ControlClassService,
|
|
6421
|
-
FocusService
|
|
6401
|
+
FocusService,
|
|
6422
6402
|
TOGGLE_SERVICE_PROVIDER,
|
|
6423
6403
|
IfControlStateService,
|
|
6424
6404
|
]
|
|
@@ -6429,7 +6409,7 @@
|
|
|
6429
6409
|
{ type: LayoutService, decorators: [{ type: i0.Optional }] },
|
|
6430
6410
|
{ type: ControlClassService },
|
|
6431
6411
|
{ type: NgControlService },
|
|
6432
|
-
{ type: FocusService
|
|
6412
|
+
{ type: FocusService },
|
|
6433
6413
|
{ type: rxjs.BehaviorSubject, decorators: [{ type: i0.Inject, args: [TOGGLE_SERVICE,] }] },
|
|
6434
6414
|
{ type: ClrCommonStringsService }
|
|
6435
6415
|
]; };
|
|
@@ -6474,7 +6454,7 @@
|
|
|
6474
6454
|
{ type: forms.NgControl, decorators: [{ type: i0.Self }, { type: i0.Optional }] },
|
|
6475
6455
|
{ type: i0.Renderer2 },
|
|
6476
6456
|
{ type: i0.ElementRef },
|
|
6477
|
-
{ type: FocusService
|
|
6457
|
+
{ type: FocusService, decorators: [{ type: i0.Optional }] },
|
|
6478
6458
|
{ type: rxjs.BehaviorSubject, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [TOGGLE_SERVICE,] }] }
|
|
6479
6459
|
]; };
|
|
6480
6460
|
ClrPassword.propDecorators = {
|
|
@@ -6895,10 +6875,10 @@
|
|
|
6895
6875
|
* This software is released under MIT license.
|
|
6896
6876
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
6897
6877
|
*/
|
|
6898
|
-
var counter = 0;
|
|
6878
|
+
var counter$2 = 0;
|
|
6899
6879
|
var DatalistIdService = /** @class */ (function () {
|
|
6900
6880
|
function DatalistIdService() {
|
|
6901
|
-
this._id = 'clr-datalist-' + ++counter;
|
|
6881
|
+
this._id = 'clr-datalist-' + ++counter$2;
|
|
6902
6882
|
this._idChange = new rxjs.BehaviorSubject(this._id);
|
|
6903
6883
|
}
|
|
6904
6884
|
Object.defineProperty(DatalistIdService.prototype, "id", {
|
|
@@ -6950,7 +6930,7 @@
|
|
|
6950
6930
|
ControlClassService,
|
|
6951
6931
|
LayoutService,
|
|
6952
6932
|
ControlIdService,
|
|
6953
|
-
FocusService
|
|
6933
|
+
FocusService,
|
|
6954
6934
|
NgControlService,
|
|
6955
6935
|
DatalistIdService,
|
|
6956
6936
|
IfControlStateService,
|
|
@@ -6961,7 +6941,7 @@
|
|
|
6961
6941
|
{ type: ControlClassService },
|
|
6962
6942
|
{ type: LayoutService, decorators: [{ type: i0.Optional }] },
|
|
6963
6943
|
{ type: NgControlService },
|
|
6964
|
-
{ type: FocusService
|
|
6944
|
+
{ type: FocusService },
|
|
6965
6945
|
{ type: IfControlStateService }
|
|
6966
6946
|
]; };
|
|
6967
6947
|
|
|
@@ -7004,7 +6984,7 @@
|
|
|
7004
6984
|
},] }
|
|
7005
6985
|
];
|
|
7006
6986
|
ClrDatalistInput.ctorParameters = function () { return [
|
|
7007
|
-
{ type: FocusService
|
|
6987
|
+
{ type: FocusService, decorators: [{ type: i0.Optional }] },
|
|
7008
6988
|
{ type: i0.ViewContainerRef },
|
|
7009
6989
|
{ type: i0.Injector },
|
|
7010
6990
|
{ type: forms.NgControl, decorators: [{ type: i0.Self }, { type: i0.Optional }] },
|
|
@@ -7902,7 +7882,7 @@
|
|
|
7902
7882
|
* This software is released under MIT license.
|
|
7903
7883
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
7904
7884
|
*/
|
|
7905
|
-
var FocusService = /** @class */ (function () {
|
|
7885
|
+
var FocusService$1 = /** @class */ (function () {
|
|
7906
7886
|
function FocusService(renderer) {
|
|
7907
7887
|
this.renderer = renderer;
|
|
7908
7888
|
this._unlistenFuncs = [];
|
|
@@ -7981,19 +7961,19 @@
|
|
|
7981
7961
|
};
|
|
7982
7962
|
return FocusService;
|
|
7983
7963
|
}());
|
|
7984
|
-
FocusService.decorators = [
|
|
7964
|
+
FocusService$1.decorators = [
|
|
7985
7965
|
{ type: i0.Injectable }
|
|
7986
7966
|
];
|
|
7987
|
-
FocusService.ctorParameters = function () { return [
|
|
7967
|
+
FocusService$1.ctorParameters = function () { return [
|
|
7988
7968
|
{ type: i0.Renderer2 }
|
|
7989
7969
|
]; };
|
|
7990
7970
|
function clrFocusServiceFactory(existing, renderer) {
|
|
7991
|
-
return existing || new FocusService(renderer);
|
|
7971
|
+
return existing || new FocusService$1(renderer);
|
|
7992
7972
|
}
|
|
7993
7973
|
var FOCUS_SERVICE_PROVIDER = {
|
|
7994
|
-
provide: FocusService,
|
|
7974
|
+
provide: FocusService$1,
|
|
7995
7975
|
useFactory: clrFocusServiceFactory,
|
|
7996
|
-
deps: [[new i0.Optional(), new i0.SkipSelf(), FocusService], i0.Renderer2],
|
|
7976
|
+
deps: [[new i0.Optional(), new i0.SkipSelf(), FocusService$1], i0.Renderer2],
|
|
7997
7977
|
};
|
|
7998
7978
|
|
|
7999
7979
|
var ClrCombobox = /** @class */ (function (_super) {
|
|
@@ -9019,21 +8999,30 @@
|
|
|
9019
8999
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
9020
9000
|
*/
|
|
9021
9001
|
var OutsideClick = /** @class */ (function () {
|
|
9022
|
-
function OutsideClick(
|
|
9023
|
-
|
|
9002
|
+
function OutsideClick(host, renderer, ngZone) {
|
|
9003
|
+
var _this = this;
|
|
9024
9004
|
this.strict = false;
|
|
9025
9005
|
this.outsideClick = new i0.EventEmitter(false);
|
|
9006
|
+
ngZone.runOutsideAngular(function () {
|
|
9007
|
+
_this.documentClickListener = renderer.listen('document', 'click', function (event) {
|
|
9008
|
+
// Compare the element in the DOM on which the mouse was clicked
|
|
9009
|
+
// with the current actionMenu native HTML element.
|
|
9010
|
+
if (host.nativeElement === event.target) {
|
|
9011
|
+
return;
|
|
9012
|
+
}
|
|
9013
|
+
if (!_this.strict && host.nativeElement.contains(event.target)) {
|
|
9014
|
+
return;
|
|
9015
|
+
}
|
|
9016
|
+
// We'll run change detection only if the click event actually happened outside of
|
|
9017
|
+
// the host element.
|
|
9018
|
+
ngZone.run(function () {
|
|
9019
|
+
_this.outsideClick.emit(event);
|
|
9020
|
+
});
|
|
9021
|
+
});
|
|
9022
|
+
});
|
|
9026
9023
|
}
|
|
9027
|
-
OutsideClick.prototype.
|
|
9028
|
-
|
|
9029
|
-
var host = this.el.nativeElement; // Get the current actionMenu native HTML element
|
|
9030
|
-
if (target === host) {
|
|
9031
|
-
return;
|
|
9032
|
-
}
|
|
9033
|
-
if (!this.strict && host.contains(target)) {
|
|
9034
|
-
return;
|
|
9035
|
-
}
|
|
9036
|
-
this.outsideClick.emit(event);
|
|
9024
|
+
OutsideClick.prototype.ngOnDestroy = function () {
|
|
9025
|
+
this.documentClickListener();
|
|
9037
9026
|
};
|
|
9038
9027
|
return OutsideClick;
|
|
9039
9028
|
}());
|
|
@@ -9041,12 +9030,13 @@
|
|
|
9041
9030
|
{ type: i0.Directive, args: [{ selector: '[clrOutsideClick]' },] }
|
|
9042
9031
|
];
|
|
9043
9032
|
OutsideClick.ctorParameters = function () { return [
|
|
9044
|
-
{ type: i0.ElementRef }
|
|
9033
|
+
{ type: i0.ElementRef },
|
|
9034
|
+
{ type: i0.Renderer2 },
|
|
9035
|
+
{ type: i0.NgZone }
|
|
9045
9036
|
]; };
|
|
9046
9037
|
OutsideClick.propDecorators = {
|
|
9047
9038
|
strict: [{ type: i0.Input, args: ['clrStrict',] }],
|
|
9048
|
-
outsideClick: [{ type: i0.Output, args: ['clrOutsideClick',] }]
|
|
9049
|
-
documentClick: [{ type: i0.HostListener, args: ['document:click', ['$event'],] }]
|
|
9039
|
+
outsideClick: [{ type: i0.Output, args: ['clrOutsideClick',] }]
|
|
9050
9040
|
};
|
|
9051
9041
|
|
|
9052
9042
|
var OUSTIDE_CLICK_DIRECTIVES = [OutsideClick];
|
|
@@ -9198,7 +9188,7 @@
|
|
|
9198
9188
|
};
|
|
9199
9189
|
return DragAndDropEventBusService;
|
|
9200
9190
|
}());
|
|
9201
|
-
DragAndDropEventBusService.ɵprov =
|
|
9191
|
+
DragAndDropEventBusService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DragAndDropEventBusService_Factory() { return new DragAndDropEventBusService(); }, token: DragAndDropEventBusService, providedIn: "root" });
|
|
9202
9192
|
DragAndDropEventBusService.decorators = [
|
|
9203
9193
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9204
9194
|
];
|
|
@@ -11676,14 +11666,6 @@
|
|
|
11676
11666
|
* This software is released under MIT license.
|
|
11677
11667
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
11678
11668
|
*/
|
|
11679
|
-
/**
|
|
11680
|
-
* Enumeration representing the sorting order of a datagrid column. It is a constant Enum,
|
|
11681
|
-
* i.e. each value needs to be treated as a `number`, starting at index 0.
|
|
11682
|
-
*
|
|
11683
|
-
* @export
|
|
11684
|
-
* @enum {number}
|
|
11685
|
-
*/
|
|
11686
|
-
exports.ClrDatagridSortOrder = void 0;
|
|
11687
11669
|
(function (ClrDatagridSortOrder) {
|
|
11688
11670
|
ClrDatagridSortOrder[ClrDatagridSortOrder["UNSORTED"] = 0] = "UNSORTED";
|
|
11689
11671
|
ClrDatagridSortOrder[ClrDatagridSortOrder["ASC"] = 1] = "ASC";
|
|
@@ -13277,7 +13259,7 @@
|
|
|
13277
13259
|
templateRef: [{ type: i0.ViewChild, args: ['rowPortal',] }]
|
|
13278
13260
|
};
|
|
13279
13261
|
|
|
13280
|
-
var nbRow
|
|
13262
|
+
var nbRow = 0;
|
|
13281
13263
|
var DatagridIfExpandService = /** @class */ (function (_super) {
|
|
13282
13264
|
__extends(DatagridIfExpandService, _super);
|
|
13283
13265
|
function DatagridIfExpandService() {
|
|
@@ -13285,8 +13267,8 @@
|
|
|
13285
13267
|
_this.expandableId = '';
|
|
13286
13268
|
_this._replace = new rxjs.BehaviorSubject(false);
|
|
13287
13269
|
_this._animate = new rxjs.Subject();
|
|
13288
|
-
nbRow
|
|
13289
|
-
_this.expandableId = 'clr-dg-expandable-row-' + nbRow
|
|
13270
|
+
nbRow++;
|
|
13271
|
+
_this.expandableId = 'clr-dg-expandable-row-' + nbRow;
|
|
13290
13272
|
return _this;
|
|
13291
13273
|
}
|
|
13292
13274
|
Object.defineProperty(DatagridIfExpandService.prototype, "expanded", {
|
|
@@ -13335,7 +13317,7 @@
|
|
|
13335
13317
|
];
|
|
13336
13318
|
DatagridIfExpandService.ctorParameters = function () { return []; };
|
|
13337
13319
|
|
|
13338
|
-
var nbRow = 0;
|
|
13320
|
+
var nbRow$1 = 0;
|
|
13339
13321
|
var ClrDatagridRow = /** @class */ (function () {
|
|
13340
13322
|
function ClrDatagridRow(selection, rowActionService, globalExpandable, expand, detailService, displayMode, vcr, renderer, el, commonStrings) {
|
|
13341
13323
|
var _this = this;
|
|
@@ -13359,10 +13341,10 @@
|
|
|
13359
13341
|
this._detailCloseLabel = '';
|
|
13360
13342
|
this.subscriptions = [];
|
|
13361
13343
|
this.displayCells = false;
|
|
13362
|
-
nbRow++;
|
|
13363
|
-
this.id = 'clr-dg-row' + nbRow;
|
|
13364
|
-
this.radioId = 'clr-dg-row-rd' + nbRow;
|
|
13365
|
-
this.checkboxId = 'clr-dg-row-cb' + nbRow;
|
|
13344
|
+
nbRow$1++;
|
|
13345
|
+
this.id = 'clr-dg-row' + nbRow$1;
|
|
13346
|
+
this.radioId = 'clr-dg-row-rd' + nbRow$1;
|
|
13347
|
+
this.checkboxId = 'clr-dg-row-cb' + nbRow$1;
|
|
13366
13348
|
this.expandableId = expand.expandableId;
|
|
13367
13349
|
this.subscriptions.push(rxjs.combineLatest(this.expand.replace, this.expand.expandChange).subscribe(function (_a) {
|
|
13368
13350
|
var _b = __read(_a, 2), expandReplaceValue = _b[0], expandChangeValue = _b[1];
|
|
@@ -13925,7 +13907,7 @@
|
|
|
13925
13907
|
/**
|
|
13926
13908
|
* Reopen updated row or close it
|
|
13927
13909
|
*/
|
|
13928
|
-
row ? _this.detailService.open(row.item, row.detailButton) : _this.detailService.close();
|
|
13910
|
+
row ? _this.detailService.open(row.item, row.detailButton.nativeElement) : _this.detailService.close();
|
|
13929
13911
|
}
|
|
13930
13912
|
}));
|
|
13931
13913
|
};
|
|
@@ -16163,8 +16145,6 @@
|
|
|
16163
16145
|
* This software is released under MIT license.
|
|
16164
16146
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
16165
16147
|
*/
|
|
16166
|
-
// TODO: I'd like this to be a CheckedState enum for the checkboxes in the future.
|
|
16167
|
-
exports.ClrSelectedState = void 0;
|
|
16168
16148
|
(function (ClrSelectedState) {
|
|
16169
16149
|
// WARNING! Unselected has the value 0,
|
|
16170
16150
|
// so it's actually the only one that will evaluate to false if cast to a boolean.
|
|
@@ -17302,7 +17282,7 @@
|
|
|
17302
17282
|
{ type: i0.Renderer2 },
|
|
17303
17283
|
{ type: DropdownFocusHandler, decorators: [{ type: i0.SkipSelf }, { type: i0.Optional }] },
|
|
17304
17284
|
{ type: ClrPopoverToggleService },
|
|
17305
|
-
{ type: FocusService },
|
|
17285
|
+
{ type: FocusService$1 },
|
|
17306
17286
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [i0.PLATFORM_ID,] }] }
|
|
17307
17287
|
]; };
|
|
17308
17288
|
var DROPDOWN_FOCUS_HANDLER_PROVIDER = customFocusableItemProvider(DropdownFocusHandler);
|
|
@@ -18795,7 +18775,7 @@
|
|
|
18795
18775
|
};
|
|
18796
18776
|
return ResponsiveNavigationService;
|
|
18797
18777
|
}());
|
|
18798
|
-
ResponsiveNavigationService.ɵprov =
|
|
18778
|
+
ResponsiveNavigationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ResponsiveNavigationService_Factory() { return new ResponsiveNavigationService(); }, token: ResponsiveNavigationService, providedIn: "root" });
|
|
18799
18779
|
ResponsiveNavigationService.decorators = [
|
|
18800
18780
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
18801
18781
|
];
|
|
@@ -19324,12 +19304,12 @@
|
|
|
19324
19304
|
*/
|
|
19325
19305
|
var nbTabsComponent = 0;
|
|
19326
19306
|
var TABS_ID = new i0.InjectionToken('TABS_ID');
|
|
19327
|
-
function tokenFactory() {
|
|
19307
|
+
function tokenFactory$1() {
|
|
19328
19308
|
return 'clr-tabs-' + nbTabsComponent++;
|
|
19329
19309
|
}
|
|
19330
19310
|
var TABS_ID_PROVIDER = {
|
|
19331
19311
|
provide: TABS_ID,
|
|
19332
|
-
useFactory: tokenFactory,
|
|
19312
|
+
useFactory: tokenFactory$1,
|
|
19333
19313
|
};
|
|
19334
19314
|
|
|
19335
19315
|
/*
|
|
@@ -20460,7 +20440,7 @@
|
|
|
20460
20440
|
};
|
|
20461
20441
|
|
|
20462
20442
|
// aka where the arrow / pointer is at in relation to the anchor
|
|
20463
|
-
var POSITIONS
|
|
20443
|
+
var POSITIONS = [
|
|
20464
20444
|
'top-left',
|
|
20465
20445
|
'top-middle',
|
|
20466
20446
|
'top-right',
|
|
@@ -20538,7 +20518,7 @@
|
|
|
20538
20518
|
set: function (position) {
|
|
20539
20519
|
// Ugh
|
|
20540
20520
|
this.renderer.removeClass(this.el.nativeElement, this.position);
|
|
20541
|
-
if (position && POSITIONS
|
|
20521
|
+
if (position && POSITIONS.indexOf(position) > -1) {
|
|
20542
20522
|
this._position = position;
|
|
20543
20523
|
}
|
|
20544
20524
|
else {
|
|
@@ -20658,7 +20638,7 @@
|
|
|
20658
20638
|
},] }
|
|
20659
20639
|
];
|
|
20660
20640
|
|
|
20661
|
-
var POSITIONS = ['bottom-left', 'bottom-right', 'top-left', 'top-right', 'right', 'left'];
|
|
20641
|
+
var POSITIONS$1 = ['bottom-left', 'bottom-right', 'top-left', 'top-right', 'right', 'left'];
|
|
20662
20642
|
var SIZES = ['xs', 'sm', 'md', 'lg'];
|
|
20663
20643
|
var ClrTooltipContent = /** @class */ (function (_super) {
|
|
20664
20644
|
__extends(ClrTooltipContent, _super);
|
|
@@ -20697,7 +20677,7 @@
|
|
|
20697
20677
|
set: function (position) {
|
|
20698
20678
|
// Ugh
|
|
20699
20679
|
this.renderer.removeClass(this.el.nativeElement, 'tooltip-' + this.position);
|
|
20700
|
-
if (position && POSITIONS.indexOf(position) > -1) {
|
|
20680
|
+
if (position && POSITIONS$1.indexOf(position) > -1) {
|
|
20701
20681
|
this._position = position;
|
|
20702
20682
|
}
|
|
20703
20683
|
else {
|
|
@@ -23902,6 +23882,16 @@
|
|
|
23902
23882
|
ClrAccordionPanel.prototype.emitPanelChange = function (panel) {
|
|
23903
23883
|
if (panel.open !== this.panelOpen) {
|
|
23904
23884
|
this.panelOpenChange.emit(panel.open);
|
|
23885
|
+
/**
|
|
23886
|
+
* @Note: this line below is needed because we don't want to use another value to track
|
|
23887
|
+
* for changes of the panel. Because we use BehaviorSubject this emit event is trigger on
|
|
23888
|
+
* init (that is not needed - there is no change of the original value) - in some cases this
|
|
23889
|
+
* lead to duplicate events.
|
|
23890
|
+
*
|
|
23891
|
+
* To prevent this we try to emit only when the value is changed and keep the value in sync
|
|
23892
|
+
* even that is used only into the Initial Lifecycle (ngOnInit).
|
|
23893
|
+
*/
|
|
23894
|
+
this.panelOpen = panel.open;
|
|
23905
23895
|
}
|
|
23906
23896
|
if (panel.open) {
|
|
23907
23897
|
this.ifExpandService.expanded = true;
|
|
@@ -24063,7 +24053,7 @@
|
|
|
24063
24053
|
{ type: IfExpandService }
|
|
24064
24054
|
]; };
|
|
24065
24055
|
|
|
24066
|
-
var declarations
|
|
24056
|
+
var declarations = [
|
|
24067
24057
|
ClrAccordion,
|
|
24068
24058
|
ClrAccordionPanel,
|
|
24069
24059
|
ClrAccordionTitle,
|
|
@@ -24081,8 +24071,8 @@
|
|
|
24081
24071
|
ClrAccordionModule.decorators = [
|
|
24082
24072
|
{ type: i0.NgModule, args: [{
|
|
24083
24073
|
imports: [i1.CommonModule, ClrIconModule],
|
|
24084
|
-
declarations: __spread(declarations
|
|
24085
|
-
exports: __spread(declarations
|
|
24074
|
+
declarations: __spread(declarations),
|
|
24075
|
+
exports: __spread(declarations),
|
|
24086
24076
|
},] }
|
|
24087
24077
|
];
|
|
24088
24078
|
ClrAccordionModule.ctorParameters = function () { return []; };
|
|
@@ -24367,7 +24357,6 @@
|
|
|
24367
24357
|
* This software is released under MIT license.
|
|
24368
24358
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
24369
24359
|
*/
|
|
24370
|
-
exports.ClrStepButtonType = void 0;
|
|
24371
24360
|
(function (ClrStepButtonType) {
|
|
24372
24361
|
ClrStepButtonType["Next"] = "next";
|
|
24373
24362
|
ClrStepButtonType["Submit"] = "submit";
|
|
@@ -24527,7 +24516,7 @@
|
|
|
24527
24516
|
{ type: IfExpandService }
|
|
24528
24517
|
]; };
|
|
24529
24518
|
|
|
24530
|
-
var declarations = [ClrStepper, ClrStepButton, ClrStepperPanel, StepperOompaLoompa, StepperWillyWonka];
|
|
24519
|
+
var declarations$1 = [ClrStepper, ClrStepButton, ClrStepperPanel, StepperOompaLoompa, StepperWillyWonka];
|
|
24531
24520
|
var ClrStepperModule = /** @class */ (function () {
|
|
24532
24521
|
function ClrStepperModule() {
|
|
24533
24522
|
}
|
|
@@ -24536,8 +24525,8 @@
|
|
|
24536
24525
|
ClrStepperModule.decorators = [
|
|
24537
24526
|
{ type: i0.NgModule, args: [{
|
|
24538
24527
|
imports: [i1.CommonModule, ClrIconModule, ClrAccordionModule],
|
|
24539
|
-
declarations: __spread(declarations),
|
|
24540
|
-
exports: __spread(declarations, [ClrAccordionModule]),
|
|
24528
|
+
declarations: __spread(declarations$1),
|
|
24529
|
+
exports: __spread(declarations$1, [ClrAccordionModule]),
|
|
24541
24530
|
},] }
|
|
24542
24531
|
];
|
|
24543
24532
|
|
|
@@ -24765,7 +24754,6 @@
|
|
|
24765
24754
|
* This software is released under MIT license.
|
|
24766
24755
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
24767
24756
|
*/
|
|
24768
|
-
exports.ClrTimelineLayout = void 0;
|
|
24769
24757
|
(function (ClrTimelineLayout) {
|
|
24770
24758
|
ClrTimelineLayout["HORIZONTAL"] = "horizontal";
|
|
24771
24759
|
ClrTimelineLayout["VERTICAL"] = "vertical";
|
|
@@ -24776,7 +24764,6 @@
|
|
|
24776
24764
|
* This software is released under MIT license.
|
|
24777
24765
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
24778
24766
|
*/
|
|
24779
|
-
exports.ClrTimelineStepState = void 0;
|
|
24780
24767
|
(function (ClrTimelineStepState) {
|
|
24781
24768
|
ClrTimelineStepState["NOT_STARTED"] = "not-started";
|
|
24782
24769
|
ClrTimelineStepState["CURRENT"] = "current";
|
|
@@ -25409,7 +25396,6 @@
|
|
|
25409
25396
|
* This software is released under MIT license.
|
|
25410
25397
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
25411
25398
|
*/
|
|
25412
|
-
exports.ClrAriaLivePoliteness = void 0;
|
|
25413
25399
|
(function (ClrAriaLivePoliteness) {
|
|
25414
25400
|
ClrAriaLivePoliteness["off"] = "off";
|
|
25415
25401
|
ClrAriaLivePoliteness["polite"] = "polite";
|
|
@@ -25554,7 +25540,7 @@
|
|
|
25554
25540
|
};
|
|
25555
25541
|
return ClrAriaLiveService;
|
|
25556
25542
|
}());
|
|
25557
|
-
ClrAriaLiveService.ɵprov =
|
|
25543
|
+
ClrAriaLiveService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ClrAriaLiveService_Factory() { return new ClrAriaLiveService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i1.DOCUMENT), i0.ɵɵinject(i0.PLATFORM_ID)); }, token: ClrAriaLiveService, providedIn: "root" });
|
|
25558
25544
|
ClrAriaLiveService.decorators = [
|
|
25559
25545
|
{ type: i0.Injectable, args: [{
|
|
25560
25546
|
providedIn: 'root',
|
|
@@ -25953,7 +25939,7 @@
|
|
|
25953
25939
|
exports.ɵbv = DateNavigationService;
|
|
25954
25940
|
exports.ɵbw = DateFormControlService;
|
|
25955
25941
|
exports.ɵbx = LocaleHelperService;
|
|
25956
|
-
exports.ɵby = FocusService
|
|
25942
|
+
exports.ɵby = FocusService;
|
|
25957
25943
|
exports.ɵbz = DateIOService;
|
|
25958
25944
|
exports.ɵc = FOCUS_ON_VIEW_INIT_PROVIDER;
|
|
25959
25945
|
exports.ɵca = DatepickerEnabledService;
|
|
@@ -26011,7 +25997,7 @@
|
|
|
26011
25997
|
exports.ɵe = RootDropdownService;
|
|
26012
25998
|
exports.ɵea = TabsService;
|
|
26013
25999
|
exports.ɵeb = TABS_ID;
|
|
26014
|
-
exports.ɵec = tokenFactory;
|
|
26000
|
+
exports.ɵec = tokenFactory$1;
|
|
26015
26001
|
exports.ɵed = TABS_ID_PROVIDER;
|
|
26016
26002
|
exports.ɵee = VerticalNavService;
|
|
26017
26003
|
exports.ɵef = VerticalNavIconService;
|
|
@@ -26031,7 +26017,7 @@
|
|
|
26031
26017
|
exports.ɵf = clrRootDropdownFactory;
|
|
26032
26018
|
exports.ɵg = ROOT_DROPDOWN_PROVIDER;
|
|
26033
26019
|
exports.ɵh = POPOVER_HOST_ANCHOR;
|
|
26034
|
-
exports.ɵi = FocusService;
|
|
26020
|
+
exports.ɵi = FocusService$1;
|
|
26035
26021
|
exports.ɵj = clrFocusServiceFactory;
|
|
26036
26022
|
exports.ɵk = FOCUS_SERVICE_PROVIDER;
|
|
26037
26023
|
exports.ɵl = DropdownFocusHandler;
|
|
@@ -26045,7 +26031,7 @@
|
|
|
26045
26031
|
exports.ɵt = BasicFocusableItem;
|
|
26046
26032
|
exports.ɵu = BASIC_FOCUSABLE_ITEM_PROVIDER;
|
|
26047
26033
|
exports.ɵv = IF_ACTIVE_ID;
|
|
26048
|
-
exports.ɵw = tokenFactory
|
|
26034
|
+
exports.ɵw = tokenFactory;
|
|
26049
26035
|
exports.ɵx = IF_ACTIVE_ID_PROVIDER;
|
|
26050
26036
|
exports.ɵy = IfActiveService;
|
|
26051
26037
|
exports.ɵz = IfExpandService;
|