@clr/angular 5.4.0 → 5.4.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 +88 -110
- 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/esm2015/accordion/accordion-panel.js +11 -1
- package/esm2015/utils/outside-click/outside-click.js +26 -17
- package/fesm2015/clr-angular.js +85 -68
- package/fesm2015/clr-angular.js.map +1 -1
- 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";
|
|
@@ -3460,12 +3432,12 @@
|
|
|
3460
3432
|
*/
|
|
3461
3433
|
var activeCounter = 0;
|
|
3462
3434
|
var IF_ACTIVE_ID = new i0.InjectionToken('IF_ACTIVE_ID');
|
|
3463
|
-
function tokenFactory
|
|
3435
|
+
function tokenFactory() {
|
|
3464
3436
|
return ++activeCounter;
|
|
3465
3437
|
}
|
|
3466
3438
|
var IF_ACTIVE_ID_PROVIDER = {
|
|
3467
3439
|
provide: IF_ACTIVE_ID,
|
|
3468
|
-
useFactory: tokenFactory
|
|
3440
|
+
useFactory: tokenFactory,
|
|
3469
3441
|
};
|
|
3470
3442
|
/*********
|
|
3471
3443
|
* @class IfActiveService
|
|
@@ -3935,7 +3907,7 @@
|
|
|
3935
3907
|
};
|
|
3936
3908
|
return FocusTrapTracker;
|
|
3937
3909
|
}());
|
|
3938
|
-
FocusTrapTracker.ɵprov =
|
|
3910
|
+
FocusTrapTracker.ɵprov = i0.ɵɵdefineInjectable({ factory: function FocusTrapTracker_Factory() { return new FocusTrapTracker(); }, token: FocusTrapTracker, providedIn: "root" });
|
|
3939
3911
|
FocusTrapTracker.decorators = [
|
|
3940
3912
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
3941
3913
|
];
|
|
@@ -5137,7 +5109,7 @@
|
|
|
5137
5109
|
* This software is released under MIT license.
|
|
5138
5110
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5139
5111
|
*/
|
|
5140
|
-
var FocusService
|
|
5112
|
+
var FocusService = /** @class */ (function () {
|
|
5141
5113
|
function FocusService() {
|
|
5142
5114
|
this._focused = new rxjs.BehaviorSubject(false);
|
|
5143
5115
|
}
|
|
@@ -5157,7 +5129,7 @@
|
|
|
5157
5129
|
});
|
|
5158
5130
|
return FocusService;
|
|
5159
5131
|
}());
|
|
5160
|
-
FocusService
|
|
5132
|
+
FocusService.decorators = [
|
|
5161
5133
|
{ type: i0.Injectable }
|
|
5162
5134
|
];
|
|
5163
5135
|
|
|
@@ -5408,7 +5380,7 @@
|
|
|
5408
5380
|
ClrPopoverPositionService,
|
|
5409
5381
|
LocaleHelperService,
|
|
5410
5382
|
ControlClassService,
|
|
5411
|
-
FocusService
|
|
5383
|
+
FocusService,
|
|
5412
5384
|
NgControlService,
|
|
5413
5385
|
DateIOService,
|
|
5414
5386
|
DateNavigationService,
|
|
@@ -5431,7 +5403,7 @@
|
|
|
5431
5403
|
{ type: DatepickerEnabledService },
|
|
5432
5404
|
{ type: DateFormControlService },
|
|
5433
5405
|
{ type: ClrCommonStringsService },
|
|
5434
|
-
{ type: FocusService
|
|
5406
|
+
{ type: FocusService },
|
|
5435
5407
|
{ type: ViewManagerService },
|
|
5436
5408
|
{ type: ControlClassService },
|
|
5437
5409
|
{ type: LayoutService, decorators: [{ type: i0.Optional }] },
|
|
@@ -5712,7 +5684,7 @@
|
|
|
5712
5684
|
{ type: DatepickerEnabledService, decorators: [{ type: i0.Optional }] },
|
|
5713
5685
|
{ type: DateFormControlService, decorators: [{ type: i0.Optional }] },
|
|
5714
5686
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [i0.PLATFORM_ID,] }] },
|
|
5715
|
-
{ type: FocusService
|
|
5687
|
+
{ type: FocusService, decorators: [{ type: i0.Optional }] },
|
|
5716
5688
|
{ type: DatepickerFocusService }
|
|
5717
5689
|
]; };
|
|
5718
5690
|
ClrDateInput.propDecorators = {
|
|
@@ -6418,7 +6390,7 @@
|
|
|
6418
6390
|
NgControlService,
|
|
6419
6391
|
ControlIdService,
|
|
6420
6392
|
ControlClassService,
|
|
6421
|
-
FocusService
|
|
6393
|
+
FocusService,
|
|
6422
6394
|
TOGGLE_SERVICE_PROVIDER,
|
|
6423
6395
|
IfControlStateService,
|
|
6424
6396
|
]
|
|
@@ -6429,7 +6401,7 @@
|
|
|
6429
6401
|
{ type: LayoutService, decorators: [{ type: i0.Optional }] },
|
|
6430
6402
|
{ type: ControlClassService },
|
|
6431
6403
|
{ type: NgControlService },
|
|
6432
|
-
{ type: FocusService
|
|
6404
|
+
{ type: FocusService },
|
|
6433
6405
|
{ type: rxjs.BehaviorSubject, decorators: [{ type: i0.Inject, args: [TOGGLE_SERVICE,] }] },
|
|
6434
6406
|
{ type: ClrCommonStringsService }
|
|
6435
6407
|
]; };
|
|
@@ -6474,7 +6446,7 @@
|
|
|
6474
6446
|
{ type: forms.NgControl, decorators: [{ type: i0.Self }, { type: i0.Optional }] },
|
|
6475
6447
|
{ type: i0.Renderer2 },
|
|
6476
6448
|
{ type: i0.ElementRef },
|
|
6477
|
-
{ type: FocusService
|
|
6449
|
+
{ type: FocusService, decorators: [{ type: i0.Optional }] },
|
|
6478
6450
|
{ type: rxjs.BehaviorSubject, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [TOGGLE_SERVICE,] }] }
|
|
6479
6451
|
]; };
|
|
6480
6452
|
ClrPassword.propDecorators = {
|
|
@@ -6895,10 +6867,10 @@
|
|
|
6895
6867
|
* This software is released under MIT license.
|
|
6896
6868
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
6897
6869
|
*/
|
|
6898
|
-
var counter = 0;
|
|
6870
|
+
var counter$2 = 0;
|
|
6899
6871
|
var DatalistIdService = /** @class */ (function () {
|
|
6900
6872
|
function DatalistIdService() {
|
|
6901
|
-
this._id = 'clr-datalist-' + ++counter;
|
|
6873
|
+
this._id = 'clr-datalist-' + ++counter$2;
|
|
6902
6874
|
this._idChange = new rxjs.BehaviorSubject(this._id);
|
|
6903
6875
|
}
|
|
6904
6876
|
Object.defineProperty(DatalistIdService.prototype, "id", {
|
|
@@ -6950,7 +6922,7 @@
|
|
|
6950
6922
|
ControlClassService,
|
|
6951
6923
|
LayoutService,
|
|
6952
6924
|
ControlIdService,
|
|
6953
|
-
FocusService
|
|
6925
|
+
FocusService,
|
|
6954
6926
|
NgControlService,
|
|
6955
6927
|
DatalistIdService,
|
|
6956
6928
|
IfControlStateService,
|
|
@@ -6961,7 +6933,7 @@
|
|
|
6961
6933
|
{ type: ControlClassService },
|
|
6962
6934
|
{ type: LayoutService, decorators: [{ type: i0.Optional }] },
|
|
6963
6935
|
{ type: NgControlService },
|
|
6964
|
-
{ type: FocusService
|
|
6936
|
+
{ type: FocusService },
|
|
6965
6937
|
{ type: IfControlStateService }
|
|
6966
6938
|
]; };
|
|
6967
6939
|
|
|
@@ -7004,7 +6976,7 @@
|
|
|
7004
6976
|
},] }
|
|
7005
6977
|
];
|
|
7006
6978
|
ClrDatalistInput.ctorParameters = function () { return [
|
|
7007
|
-
{ type: FocusService
|
|
6979
|
+
{ type: FocusService, decorators: [{ type: i0.Optional }] },
|
|
7008
6980
|
{ type: i0.ViewContainerRef },
|
|
7009
6981
|
{ type: i0.Injector },
|
|
7010
6982
|
{ type: forms.NgControl, decorators: [{ type: i0.Self }, { type: i0.Optional }] },
|
|
@@ -7902,7 +7874,7 @@
|
|
|
7902
7874
|
* This software is released under MIT license.
|
|
7903
7875
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
7904
7876
|
*/
|
|
7905
|
-
var FocusService = /** @class */ (function () {
|
|
7877
|
+
var FocusService$1 = /** @class */ (function () {
|
|
7906
7878
|
function FocusService(renderer) {
|
|
7907
7879
|
this.renderer = renderer;
|
|
7908
7880
|
this._unlistenFuncs = [];
|
|
@@ -7981,19 +7953,19 @@
|
|
|
7981
7953
|
};
|
|
7982
7954
|
return FocusService;
|
|
7983
7955
|
}());
|
|
7984
|
-
FocusService.decorators = [
|
|
7956
|
+
FocusService$1.decorators = [
|
|
7985
7957
|
{ type: i0.Injectable }
|
|
7986
7958
|
];
|
|
7987
|
-
FocusService.ctorParameters = function () { return [
|
|
7959
|
+
FocusService$1.ctorParameters = function () { return [
|
|
7988
7960
|
{ type: i0.Renderer2 }
|
|
7989
7961
|
]; };
|
|
7990
7962
|
function clrFocusServiceFactory(existing, renderer) {
|
|
7991
|
-
return existing || new FocusService(renderer);
|
|
7963
|
+
return existing || new FocusService$1(renderer);
|
|
7992
7964
|
}
|
|
7993
7965
|
var FOCUS_SERVICE_PROVIDER = {
|
|
7994
|
-
provide: FocusService,
|
|
7966
|
+
provide: FocusService$1,
|
|
7995
7967
|
useFactory: clrFocusServiceFactory,
|
|
7996
|
-
deps: [[new i0.Optional(), new i0.SkipSelf(), FocusService], i0.Renderer2],
|
|
7968
|
+
deps: [[new i0.Optional(), new i0.SkipSelf(), FocusService$1], i0.Renderer2],
|
|
7997
7969
|
};
|
|
7998
7970
|
|
|
7999
7971
|
var ClrCombobox = /** @class */ (function (_super) {
|
|
@@ -9019,21 +8991,30 @@
|
|
|
9019
8991
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
9020
8992
|
*/
|
|
9021
8993
|
var OutsideClick = /** @class */ (function () {
|
|
9022
|
-
function OutsideClick(
|
|
9023
|
-
|
|
8994
|
+
function OutsideClick(host, renderer, ngZone) {
|
|
8995
|
+
var _this = this;
|
|
9024
8996
|
this.strict = false;
|
|
9025
8997
|
this.outsideClick = new i0.EventEmitter(false);
|
|
8998
|
+
ngZone.runOutsideAngular(function () {
|
|
8999
|
+
_this.documentClickListener = renderer.listen('document', 'click', function (event) {
|
|
9000
|
+
// Compare the element in the DOM on which the mouse was clicked
|
|
9001
|
+
// with the current actionMenu native HTML element.
|
|
9002
|
+
if (host.nativeElement === event.target) {
|
|
9003
|
+
return;
|
|
9004
|
+
}
|
|
9005
|
+
if (!_this.strict && host.nativeElement.contains(event.target)) {
|
|
9006
|
+
return;
|
|
9007
|
+
}
|
|
9008
|
+
// We'll run change detection only if the click event actually happened outside of
|
|
9009
|
+
// the host element.
|
|
9010
|
+
ngZone.run(function () {
|
|
9011
|
+
_this.outsideClick.emit(event);
|
|
9012
|
+
});
|
|
9013
|
+
});
|
|
9014
|
+
});
|
|
9026
9015
|
}
|
|
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);
|
|
9016
|
+
OutsideClick.prototype.ngOnDestroy = function () {
|
|
9017
|
+
this.documentClickListener();
|
|
9037
9018
|
};
|
|
9038
9019
|
return OutsideClick;
|
|
9039
9020
|
}());
|
|
@@ -9041,12 +9022,13 @@
|
|
|
9041
9022
|
{ type: i0.Directive, args: [{ selector: '[clrOutsideClick]' },] }
|
|
9042
9023
|
];
|
|
9043
9024
|
OutsideClick.ctorParameters = function () { return [
|
|
9044
|
-
{ type: i0.ElementRef }
|
|
9025
|
+
{ type: i0.ElementRef },
|
|
9026
|
+
{ type: i0.Renderer2 },
|
|
9027
|
+
{ type: i0.NgZone }
|
|
9045
9028
|
]; };
|
|
9046
9029
|
OutsideClick.propDecorators = {
|
|
9047
9030
|
strict: [{ type: i0.Input, args: ['clrStrict',] }],
|
|
9048
|
-
outsideClick: [{ type: i0.Output, args: ['clrOutsideClick',] }]
|
|
9049
|
-
documentClick: [{ type: i0.HostListener, args: ['document:click', ['$event'],] }]
|
|
9031
|
+
outsideClick: [{ type: i0.Output, args: ['clrOutsideClick',] }]
|
|
9050
9032
|
};
|
|
9051
9033
|
|
|
9052
9034
|
var OUSTIDE_CLICK_DIRECTIVES = [OutsideClick];
|
|
@@ -9198,7 +9180,7 @@
|
|
|
9198
9180
|
};
|
|
9199
9181
|
return DragAndDropEventBusService;
|
|
9200
9182
|
}());
|
|
9201
|
-
DragAndDropEventBusService.ɵprov =
|
|
9183
|
+
DragAndDropEventBusService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DragAndDropEventBusService_Factory() { return new DragAndDropEventBusService(); }, token: DragAndDropEventBusService, providedIn: "root" });
|
|
9202
9184
|
DragAndDropEventBusService.decorators = [
|
|
9203
9185
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9204
9186
|
];
|
|
@@ -11676,14 +11658,6 @@
|
|
|
11676
11658
|
* This software is released under MIT license.
|
|
11677
11659
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
11678
11660
|
*/
|
|
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
11661
|
(function (ClrDatagridSortOrder) {
|
|
11688
11662
|
ClrDatagridSortOrder[ClrDatagridSortOrder["UNSORTED"] = 0] = "UNSORTED";
|
|
11689
11663
|
ClrDatagridSortOrder[ClrDatagridSortOrder["ASC"] = 1] = "ASC";
|
|
@@ -13277,7 +13251,7 @@
|
|
|
13277
13251
|
templateRef: [{ type: i0.ViewChild, args: ['rowPortal',] }]
|
|
13278
13252
|
};
|
|
13279
13253
|
|
|
13280
|
-
var nbRow
|
|
13254
|
+
var nbRow = 0;
|
|
13281
13255
|
var DatagridIfExpandService = /** @class */ (function (_super) {
|
|
13282
13256
|
__extends(DatagridIfExpandService, _super);
|
|
13283
13257
|
function DatagridIfExpandService() {
|
|
@@ -13285,8 +13259,8 @@
|
|
|
13285
13259
|
_this.expandableId = '';
|
|
13286
13260
|
_this._replace = new rxjs.BehaviorSubject(false);
|
|
13287
13261
|
_this._animate = new rxjs.Subject();
|
|
13288
|
-
nbRow
|
|
13289
|
-
_this.expandableId = 'clr-dg-expandable-row-' + nbRow
|
|
13262
|
+
nbRow++;
|
|
13263
|
+
_this.expandableId = 'clr-dg-expandable-row-' + nbRow;
|
|
13290
13264
|
return _this;
|
|
13291
13265
|
}
|
|
13292
13266
|
Object.defineProperty(DatagridIfExpandService.prototype, "expanded", {
|
|
@@ -13335,7 +13309,7 @@
|
|
|
13335
13309
|
];
|
|
13336
13310
|
DatagridIfExpandService.ctorParameters = function () { return []; };
|
|
13337
13311
|
|
|
13338
|
-
var nbRow = 0;
|
|
13312
|
+
var nbRow$1 = 0;
|
|
13339
13313
|
var ClrDatagridRow = /** @class */ (function () {
|
|
13340
13314
|
function ClrDatagridRow(selection, rowActionService, globalExpandable, expand, detailService, displayMode, vcr, renderer, el, commonStrings) {
|
|
13341
13315
|
var _this = this;
|
|
@@ -13359,10 +13333,10 @@
|
|
|
13359
13333
|
this._detailCloseLabel = '';
|
|
13360
13334
|
this.subscriptions = [];
|
|
13361
13335
|
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;
|
|
13336
|
+
nbRow$1++;
|
|
13337
|
+
this.id = 'clr-dg-row' + nbRow$1;
|
|
13338
|
+
this.radioId = 'clr-dg-row-rd' + nbRow$1;
|
|
13339
|
+
this.checkboxId = 'clr-dg-row-cb' + nbRow$1;
|
|
13366
13340
|
this.expandableId = expand.expandableId;
|
|
13367
13341
|
this.subscriptions.push(rxjs.combineLatest(this.expand.replace, this.expand.expandChange).subscribe(function (_a) {
|
|
13368
13342
|
var _b = __read(_a, 2), expandReplaceValue = _b[0], expandChangeValue = _b[1];
|
|
@@ -16163,8 +16137,6 @@
|
|
|
16163
16137
|
* This software is released under MIT license.
|
|
16164
16138
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
16165
16139
|
*/
|
|
16166
|
-
// TODO: I'd like this to be a CheckedState enum for the checkboxes in the future.
|
|
16167
|
-
exports.ClrSelectedState = void 0;
|
|
16168
16140
|
(function (ClrSelectedState) {
|
|
16169
16141
|
// WARNING! Unselected has the value 0,
|
|
16170
16142
|
// so it's actually the only one that will evaluate to false if cast to a boolean.
|
|
@@ -17302,7 +17274,7 @@
|
|
|
17302
17274
|
{ type: i0.Renderer2 },
|
|
17303
17275
|
{ type: DropdownFocusHandler, decorators: [{ type: i0.SkipSelf }, { type: i0.Optional }] },
|
|
17304
17276
|
{ type: ClrPopoverToggleService },
|
|
17305
|
-
{ type: FocusService },
|
|
17277
|
+
{ type: FocusService$1 },
|
|
17306
17278
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [i0.PLATFORM_ID,] }] }
|
|
17307
17279
|
]; };
|
|
17308
17280
|
var DROPDOWN_FOCUS_HANDLER_PROVIDER = customFocusableItemProvider(DropdownFocusHandler);
|
|
@@ -18795,7 +18767,7 @@
|
|
|
18795
18767
|
};
|
|
18796
18768
|
return ResponsiveNavigationService;
|
|
18797
18769
|
}());
|
|
18798
|
-
ResponsiveNavigationService.ɵprov =
|
|
18770
|
+
ResponsiveNavigationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ResponsiveNavigationService_Factory() { return new ResponsiveNavigationService(); }, token: ResponsiveNavigationService, providedIn: "root" });
|
|
18799
18771
|
ResponsiveNavigationService.decorators = [
|
|
18800
18772
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
18801
18773
|
];
|
|
@@ -19324,12 +19296,12 @@
|
|
|
19324
19296
|
*/
|
|
19325
19297
|
var nbTabsComponent = 0;
|
|
19326
19298
|
var TABS_ID = new i0.InjectionToken('TABS_ID');
|
|
19327
|
-
function tokenFactory() {
|
|
19299
|
+
function tokenFactory$1() {
|
|
19328
19300
|
return 'clr-tabs-' + nbTabsComponent++;
|
|
19329
19301
|
}
|
|
19330
19302
|
var TABS_ID_PROVIDER = {
|
|
19331
19303
|
provide: TABS_ID,
|
|
19332
|
-
useFactory: tokenFactory,
|
|
19304
|
+
useFactory: tokenFactory$1,
|
|
19333
19305
|
};
|
|
19334
19306
|
|
|
19335
19307
|
/*
|
|
@@ -20460,7 +20432,7 @@
|
|
|
20460
20432
|
};
|
|
20461
20433
|
|
|
20462
20434
|
// aka where the arrow / pointer is at in relation to the anchor
|
|
20463
|
-
var POSITIONS
|
|
20435
|
+
var POSITIONS = [
|
|
20464
20436
|
'top-left',
|
|
20465
20437
|
'top-middle',
|
|
20466
20438
|
'top-right',
|
|
@@ -20538,7 +20510,7 @@
|
|
|
20538
20510
|
set: function (position) {
|
|
20539
20511
|
// Ugh
|
|
20540
20512
|
this.renderer.removeClass(this.el.nativeElement, this.position);
|
|
20541
|
-
if (position && POSITIONS
|
|
20513
|
+
if (position && POSITIONS.indexOf(position) > -1) {
|
|
20542
20514
|
this._position = position;
|
|
20543
20515
|
}
|
|
20544
20516
|
else {
|
|
@@ -20658,7 +20630,7 @@
|
|
|
20658
20630
|
},] }
|
|
20659
20631
|
];
|
|
20660
20632
|
|
|
20661
|
-
var POSITIONS = ['bottom-left', 'bottom-right', 'top-left', 'top-right', 'right', 'left'];
|
|
20633
|
+
var POSITIONS$1 = ['bottom-left', 'bottom-right', 'top-left', 'top-right', 'right', 'left'];
|
|
20662
20634
|
var SIZES = ['xs', 'sm', 'md', 'lg'];
|
|
20663
20635
|
var ClrTooltipContent = /** @class */ (function (_super) {
|
|
20664
20636
|
__extends(ClrTooltipContent, _super);
|
|
@@ -20697,7 +20669,7 @@
|
|
|
20697
20669
|
set: function (position) {
|
|
20698
20670
|
// Ugh
|
|
20699
20671
|
this.renderer.removeClass(this.el.nativeElement, 'tooltip-' + this.position);
|
|
20700
|
-
if (position && POSITIONS.indexOf(position) > -1) {
|
|
20672
|
+
if (position && POSITIONS$1.indexOf(position) > -1) {
|
|
20701
20673
|
this._position = position;
|
|
20702
20674
|
}
|
|
20703
20675
|
else {
|
|
@@ -23902,6 +23874,16 @@
|
|
|
23902
23874
|
ClrAccordionPanel.prototype.emitPanelChange = function (panel) {
|
|
23903
23875
|
if (panel.open !== this.panelOpen) {
|
|
23904
23876
|
this.panelOpenChange.emit(panel.open);
|
|
23877
|
+
/**
|
|
23878
|
+
* @Note: this line below is needed because we don't want to use another value to track
|
|
23879
|
+
* for changes of the panel. Because we use BehaviorSubject this emit event is trigger on
|
|
23880
|
+
* init (that is not needed - there is no change of the original value) - in some cases this
|
|
23881
|
+
* lead to duplicate events.
|
|
23882
|
+
*
|
|
23883
|
+
* To prevent this we try to emit only when the value is changed and keep the value in sync
|
|
23884
|
+
* even that is used only into the Initial Lifecycle (ngOnInit).
|
|
23885
|
+
*/
|
|
23886
|
+
this.panelOpen = panel.open;
|
|
23905
23887
|
}
|
|
23906
23888
|
if (panel.open) {
|
|
23907
23889
|
this.ifExpandService.expanded = true;
|
|
@@ -24063,7 +24045,7 @@
|
|
|
24063
24045
|
{ type: IfExpandService }
|
|
24064
24046
|
]; };
|
|
24065
24047
|
|
|
24066
|
-
var declarations
|
|
24048
|
+
var declarations = [
|
|
24067
24049
|
ClrAccordion,
|
|
24068
24050
|
ClrAccordionPanel,
|
|
24069
24051
|
ClrAccordionTitle,
|
|
@@ -24081,8 +24063,8 @@
|
|
|
24081
24063
|
ClrAccordionModule.decorators = [
|
|
24082
24064
|
{ type: i0.NgModule, args: [{
|
|
24083
24065
|
imports: [i1.CommonModule, ClrIconModule],
|
|
24084
|
-
declarations: __spread(declarations
|
|
24085
|
-
exports: __spread(declarations
|
|
24066
|
+
declarations: __spread(declarations),
|
|
24067
|
+
exports: __spread(declarations),
|
|
24086
24068
|
},] }
|
|
24087
24069
|
];
|
|
24088
24070
|
ClrAccordionModule.ctorParameters = function () { return []; };
|
|
@@ -24367,7 +24349,6 @@
|
|
|
24367
24349
|
* This software is released under MIT license.
|
|
24368
24350
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
24369
24351
|
*/
|
|
24370
|
-
exports.ClrStepButtonType = void 0;
|
|
24371
24352
|
(function (ClrStepButtonType) {
|
|
24372
24353
|
ClrStepButtonType["Next"] = "next";
|
|
24373
24354
|
ClrStepButtonType["Submit"] = "submit";
|
|
@@ -24527,7 +24508,7 @@
|
|
|
24527
24508
|
{ type: IfExpandService }
|
|
24528
24509
|
]; };
|
|
24529
24510
|
|
|
24530
|
-
var declarations = [ClrStepper, ClrStepButton, ClrStepperPanel, StepperOompaLoompa, StepperWillyWonka];
|
|
24511
|
+
var declarations$1 = [ClrStepper, ClrStepButton, ClrStepperPanel, StepperOompaLoompa, StepperWillyWonka];
|
|
24531
24512
|
var ClrStepperModule = /** @class */ (function () {
|
|
24532
24513
|
function ClrStepperModule() {
|
|
24533
24514
|
}
|
|
@@ -24536,8 +24517,8 @@
|
|
|
24536
24517
|
ClrStepperModule.decorators = [
|
|
24537
24518
|
{ type: i0.NgModule, args: [{
|
|
24538
24519
|
imports: [i1.CommonModule, ClrIconModule, ClrAccordionModule],
|
|
24539
|
-
declarations: __spread(declarations),
|
|
24540
|
-
exports: __spread(declarations, [ClrAccordionModule]),
|
|
24520
|
+
declarations: __spread(declarations$1),
|
|
24521
|
+
exports: __spread(declarations$1, [ClrAccordionModule]),
|
|
24541
24522
|
},] }
|
|
24542
24523
|
];
|
|
24543
24524
|
|
|
@@ -24765,7 +24746,6 @@
|
|
|
24765
24746
|
* This software is released under MIT license.
|
|
24766
24747
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
24767
24748
|
*/
|
|
24768
|
-
exports.ClrTimelineLayout = void 0;
|
|
24769
24749
|
(function (ClrTimelineLayout) {
|
|
24770
24750
|
ClrTimelineLayout["HORIZONTAL"] = "horizontal";
|
|
24771
24751
|
ClrTimelineLayout["VERTICAL"] = "vertical";
|
|
@@ -24776,7 +24756,6 @@
|
|
|
24776
24756
|
* This software is released under MIT license.
|
|
24777
24757
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
24778
24758
|
*/
|
|
24779
|
-
exports.ClrTimelineStepState = void 0;
|
|
24780
24759
|
(function (ClrTimelineStepState) {
|
|
24781
24760
|
ClrTimelineStepState["NOT_STARTED"] = "not-started";
|
|
24782
24761
|
ClrTimelineStepState["CURRENT"] = "current";
|
|
@@ -25409,7 +25388,6 @@
|
|
|
25409
25388
|
* This software is released under MIT license.
|
|
25410
25389
|
* The full license information can be found in LICENSE in the root directory of this project.
|
|
25411
25390
|
*/
|
|
25412
|
-
exports.ClrAriaLivePoliteness = void 0;
|
|
25413
25391
|
(function (ClrAriaLivePoliteness) {
|
|
25414
25392
|
ClrAriaLivePoliteness["off"] = "off";
|
|
25415
25393
|
ClrAriaLivePoliteness["polite"] = "polite";
|
|
@@ -25554,7 +25532,7 @@
|
|
|
25554
25532
|
};
|
|
25555
25533
|
return ClrAriaLiveService;
|
|
25556
25534
|
}());
|
|
25557
|
-
ClrAriaLiveService.ɵprov =
|
|
25535
|
+
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
25536
|
ClrAriaLiveService.decorators = [
|
|
25559
25537
|
{ type: i0.Injectable, args: [{
|
|
25560
25538
|
providedIn: 'root',
|
|
@@ -25953,7 +25931,7 @@
|
|
|
25953
25931
|
exports.ɵbv = DateNavigationService;
|
|
25954
25932
|
exports.ɵbw = DateFormControlService;
|
|
25955
25933
|
exports.ɵbx = LocaleHelperService;
|
|
25956
|
-
exports.ɵby = FocusService
|
|
25934
|
+
exports.ɵby = FocusService;
|
|
25957
25935
|
exports.ɵbz = DateIOService;
|
|
25958
25936
|
exports.ɵc = FOCUS_ON_VIEW_INIT_PROVIDER;
|
|
25959
25937
|
exports.ɵca = DatepickerEnabledService;
|
|
@@ -26011,7 +25989,7 @@
|
|
|
26011
25989
|
exports.ɵe = RootDropdownService;
|
|
26012
25990
|
exports.ɵea = TabsService;
|
|
26013
25991
|
exports.ɵeb = TABS_ID;
|
|
26014
|
-
exports.ɵec = tokenFactory;
|
|
25992
|
+
exports.ɵec = tokenFactory$1;
|
|
26015
25993
|
exports.ɵed = TABS_ID_PROVIDER;
|
|
26016
25994
|
exports.ɵee = VerticalNavService;
|
|
26017
25995
|
exports.ɵef = VerticalNavIconService;
|
|
@@ -26031,7 +26009,7 @@
|
|
|
26031
26009
|
exports.ɵf = clrRootDropdownFactory;
|
|
26032
26010
|
exports.ɵg = ROOT_DROPDOWN_PROVIDER;
|
|
26033
26011
|
exports.ɵh = POPOVER_HOST_ANCHOR;
|
|
26034
|
-
exports.ɵi = FocusService;
|
|
26012
|
+
exports.ɵi = FocusService$1;
|
|
26035
26013
|
exports.ɵj = clrFocusServiceFactory;
|
|
26036
26014
|
exports.ɵk = FOCUS_SERVICE_PROVIDER;
|
|
26037
26015
|
exports.ɵl = DropdownFocusHandler;
|
|
@@ -26045,7 +26023,7 @@
|
|
|
26045
26023
|
exports.ɵt = BasicFocusableItem;
|
|
26046
26024
|
exports.ɵu = BASIC_FOCUSABLE_ITEM_PROVIDER;
|
|
26047
26025
|
exports.ɵv = IF_ACTIVE_ID;
|
|
26048
|
-
exports.ɵw = tokenFactory
|
|
26026
|
+
exports.ɵw = tokenFactory;
|
|
26049
26027
|
exports.ɵx = IF_ACTIVE_ID_PROVIDER;
|
|
26050
26028
|
exports.ɵy = IfActiveService;
|
|
26051
26029
|
exports.ɵz = IfExpandService;
|