@clr/angular 5.4.0 → 5.5.2

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.
@@ -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";
@@ -1389,7 +1363,8 @@
1389
1363
  singleSelectionAriaLabel: 'Single selection header',
1390
1364
  singleActionableAriaLabel: 'Single actionable header',
1391
1365
  detailExpandableAriaLabel: 'Toggle more row content',
1392
- datagridFilterAriaLabel: 'Toggle column filter',
1366
+ datagridFilterAriaLabel: 'Filter dialog',
1367
+ datagridFilterDialogAriaLabel: 'Toggle column filter',
1393
1368
  columnSeparatorAriaLabel: 'Column resize handle',
1394
1369
  columnSeparatorDescription: 'Not necessary to use this button',
1395
1370
  // Alert
@@ -1470,7 +1445,7 @@
1470
1445
  };
1471
1446
  return ClrCommonStringsService;
1472
1447
  }());
1473
- ClrCommonStringsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ClrCommonStringsService_Factory() { return new ClrCommonStringsService(); }, token: ClrCommonStringsService, providedIn: "root" });
1448
+ ClrCommonStringsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ClrCommonStringsService_Factory() { return new ClrCommonStringsService(); }, token: ClrCommonStringsService, providedIn: "root" });
1474
1449
  ClrCommonStringsService.decorators = [
1475
1450
  { type: i0.Injectable, args: [{
1476
1451
  providedIn: 'root',
@@ -1498,7 +1473,6 @@
1498
1473
  * The full license information can be found in LICENSE in the root directory of this project.
1499
1474
  *
1500
1475
  */
1501
- exports.ClrSide = void 0;
1502
1476
  (function (ClrSide) {
1503
1477
  ClrSide[ClrSide["BEFORE"] = -1] = "BEFORE";
1504
1478
  ClrSide[ClrSide["AFTER"] = 1] = "AFTER";
@@ -2233,10 +2207,10 @@
2233
2207
  * This software is released under MIT license.
2234
2208
  * The full license information can be found in LICENSE in the root directory of this project.
2235
2209
  */
2236
- var counter$2 = 0;
2210
+ var counter = 0;
2237
2211
  var ControlIdService = /** @class */ (function () {
2238
2212
  function ControlIdService() {
2239
- this._id = 'clr-form-control-' + ++counter$2;
2213
+ this._id = 'clr-form-control-' + ++counter;
2240
2214
  this._idChange = new rxjs.BehaviorSubject(this._id);
2241
2215
  }
2242
2216
  Object.defineProperty(ControlIdService.prototype, "id", {
@@ -2305,7 +2279,6 @@
2305
2279
  * This software is released under MIT license.
2306
2280
  * The full license information can be found in LICENSE in the root directory of this project.
2307
2281
  */
2308
- exports.ClrFormLayout = void 0;
2309
2282
  (function (ClrFormLayout) {
2310
2283
  ClrFormLayout["VERTICAL"] = "vertical";
2311
2284
  ClrFormLayout["HORIZONTAL"] = "horizontal";
@@ -3151,11 +3124,19 @@
3151
3124
  if (!this.container) {
3152
3125
  return;
3153
3126
  }
3154
- if (invalid && this.displayedContent === false) {
3155
- this.container.createEmbeddedView(this.template, { error: this.control.getError(this.error) });
3156
- this.displayedContent = true;
3127
+ if (invalid) {
3128
+ if (this.displayedContent === false) {
3129
+ this.embeddedViewRef = this.container.createEmbeddedView(this.template, {
3130
+ error: this.control.getError(this.error),
3131
+ });
3132
+ this.displayedContent = true;
3133
+ }
3134
+ else if (this.embeddedViewRef && this.embeddedViewRef.context) {
3135
+ // if view is already rendered, update the error object to keep it in sync
3136
+ this.embeddedViewRef.context.error = this.control.getError(this.error);
3137
+ }
3157
3138
  }
3158
- else if (!invalid) {
3139
+ else {
3159
3140
  this.container.clear();
3160
3141
  this.displayedContent = false;
3161
3142
  }
@@ -3460,12 +3441,12 @@
3460
3441
  */
3461
3442
  var activeCounter = 0;
3462
3443
  var IF_ACTIVE_ID = new i0.InjectionToken('IF_ACTIVE_ID');
3463
- function tokenFactory$1() {
3444
+ function tokenFactory() {
3464
3445
  return ++activeCounter;
3465
3446
  }
3466
3447
  var IF_ACTIVE_ID_PROVIDER = {
3467
3448
  provide: IF_ACTIVE_ID,
3468
- useFactory: tokenFactory$1,
3449
+ useFactory: tokenFactory,
3469
3450
  };
3470
3451
  /*********
3471
3452
  * @class IfActiveService
@@ -3935,7 +3916,7 @@
3935
3916
  };
3936
3917
  return FocusTrapTracker;
3937
3918
  }());
3938
- FocusTrapTracker.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function FocusTrapTracker_Factory() { return new FocusTrapTracker(); }, token: FocusTrapTracker, providedIn: "root" });
3919
+ FocusTrapTracker.ɵprov = i0.ɵɵdefineInjectable({ factory: function FocusTrapTracker_Factory() { return new FocusTrapTracker(); }, token: FocusTrapTracker, providedIn: "root" });
3939
3920
  FocusTrapTracker.decorators = [
3940
3921
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
3941
3922
  ];
@@ -5137,7 +5118,7 @@
5137
5118
  * This software is released under MIT license.
5138
5119
  * The full license information can be found in LICENSE in the root directory of this project.
5139
5120
  */
5140
- var FocusService$1 = /** @class */ (function () {
5121
+ var FocusService = /** @class */ (function () {
5141
5122
  function FocusService() {
5142
5123
  this._focused = new rxjs.BehaviorSubject(false);
5143
5124
  }
@@ -5157,7 +5138,7 @@
5157
5138
  });
5158
5139
  return FocusService;
5159
5140
  }());
5160
- FocusService$1.decorators = [
5141
+ FocusService.decorators = [
5161
5142
  { type: i0.Injectable }
5162
5143
  ];
5163
5144
 
@@ -5408,7 +5389,7 @@
5408
5389
  ClrPopoverPositionService,
5409
5390
  LocaleHelperService,
5410
5391
  ControlClassService,
5411
- FocusService$1,
5392
+ FocusService,
5412
5393
  NgControlService,
5413
5394
  DateIOService,
5414
5395
  DateNavigationService,
@@ -5431,7 +5412,7 @@
5431
5412
  { type: DatepickerEnabledService },
5432
5413
  { type: DateFormControlService },
5433
5414
  { type: ClrCommonStringsService },
5434
- { type: FocusService$1 },
5415
+ { type: FocusService },
5435
5416
  { type: ViewManagerService },
5436
5417
  { type: ControlClassService },
5437
5418
  { type: LayoutService, decorators: [{ type: i0.Optional }] },
@@ -5712,7 +5693,7 @@
5712
5693
  { type: DatepickerEnabledService, decorators: [{ type: i0.Optional }] },
5713
5694
  { type: DateFormControlService, decorators: [{ type: i0.Optional }] },
5714
5695
  { type: undefined, decorators: [{ type: i0.Inject, args: [i0.PLATFORM_ID,] }] },
5715
- { type: FocusService$1, decorators: [{ type: i0.Optional }] },
5696
+ { type: FocusService, decorators: [{ type: i0.Optional }] },
5716
5697
  { type: DatepickerFocusService }
5717
5698
  ]; };
5718
5699
  ClrDateInput.propDecorators = {
@@ -6418,7 +6399,7 @@
6418
6399
  NgControlService,
6419
6400
  ControlIdService,
6420
6401
  ControlClassService,
6421
- FocusService$1,
6402
+ FocusService,
6422
6403
  TOGGLE_SERVICE_PROVIDER,
6423
6404
  IfControlStateService,
6424
6405
  ]
@@ -6429,7 +6410,7 @@
6429
6410
  { type: LayoutService, decorators: [{ type: i0.Optional }] },
6430
6411
  { type: ControlClassService },
6431
6412
  { type: NgControlService },
6432
- { type: FocusService$1 },
6413
+ { type: FocusService },
6433
6414
  { type: rxjs.BehaviorSubject, decorators: [{ type: i0.Inject, args: [TOGGLE_SERVICE,] }] },
6434
6415
  { type: ClrCommonStringsService }
6435
6416
  ]; };
@@ -6474,7 +6455,7 @@
6474
6455
  { type: forms.NgControl, decorators: [{ type: i0.Self }, { type: i0.Optional }] },
6475
6456
  { type: i0.Renderer2 },
6476
6457
  { type: i0.ElementRef },
6477
- { type: FocusService$1, decorators: [{ type: i0.Optional }] },
6458
+ { type: FocusService, decorators: [{ type: i0.Optional }] },
6478
6459
  { type: rxjs.BehaviorSubject, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [TOGGLE_SERVICE,] }] }
6479
6460
  ]; };
6480
6461
  ClrPassword.propDecorators = {
@@ -6895,10 +6876,10 @@
6895
6876
  * This software is released under MIT license.
6896
6877
  * The full license information can be found in LICENSE in the root directory of this project.
6897
6878
  */
6898
- var counter = 0;
6879
+ var counter$2 = 0;
6899
6880
  var DatalistIdService = /** @class */ (function () {
6900
6881
  function DatalistIdService() {
6901
- this._id = 'clr-datalist-' + ++counter;
6882
+ this._id = 'clr-datalist-' + ++counter$2;
6902
6883
  this._idChange = new rxjs.BehaviorSubject(this._id);
6903
6884
  }
6904
6885
  Object.defineProperty(DatalistIdService.prototype, "id", {
@@ -6950,7 +6931,7 @@
6950
6931
  ControlClassService,
6951
6932
  LayoutService,
6952
6933
  ControlIdService,
6953
- FocusService$1,
6934
+ FocusService,
6954
6935
  NgControlService,
6955
6936
  DatalistIdService,
6956
6937
  IfControlStateService,
@@ -6961,7 +6942,7 @@
6961
6942
  { type: ControlClassService },
6962
6943
  { type: LayoutService, decorators: [{ type: i0.Optional }] },
6963
6944
  { type: NgControlService },
6964
- { type: FocusService$1 },
6945
+ { type: FocusService },
6965
6946
  { type: IfControlStateService }
6966
6947
  ]; };
6967
6948
 
@@ -7004,7 +6985,7 @@
7004
6985
  },] }
7005
6986
  ];
7006
6987
  ClrDatalistInput.ctorParameters = function () { return [
7007
- { type: FocusService$1, decorators: [{ type: i0.Optional }] },
6988
+ { type: FocusService, decorators: [{ type: i0.Optional }] },
7008
6989
  { type: i0.ViewContainerRef },
7009
6990
  { type: i0.Injector },
7010
6991
  { type: forms.NgControl, decorators: [{ type: i0.Self }, { type: i0.Optional }] },
@@ -7902,7 +7883,7 @@
7902
7883
  * This software is released under MIT license.
7903
7884
  * The full license information can be found in LICENSE in the root directory of this project.
7904
7885
  */
7905
- var FocusService = /** @class */ (function () {
7886
+ var FocusService$1 = /** @class */ (function () {
7906
7887
  function FocusService(renderer) {
7907
7888
  this.renderer = renderer;
7908
7889
  this._unlistenFuncs = [];
@@ -7981,19 +7962,19 @@
7981
7962
  };
7982
7963
  return FocusService;
7983
7964
  }());
7984
- FocusService.decorators = [
7965
+ FocusService$1.decorators = [
7985
7966
  { type: i0.Injectable }
7986
7967
  ];
7987
- FocusService.ctorParameters = function () { return [
7968
+ FocusService$1.ctorParameters = function () { return [
7988
7969
  { type: i0.Renderer2 }
7989
7970
  ]; };
7990
7971
  function clrFocusServiceFactory(existing, renderer) {
7991
- return existing || new FocusService(renderer);
7972
+ return existing || new FocusService$1(renderer);
7992
7973
  }
7993
7974
  var FOCUS_SERVICE_PROVIDER = {
7994
- provide: FocusService,
7975
+ provide: FocusService$1,
7995
7976
  useFactory: clrFocusServiceFactory,
7996
- deps: [[new i0.Optional(), new i0.SkipSelf(), FocusService], i0.Renderer2],
7977
+ deps: [[new i0.Optional(), new i0.SkipSelf(), FocusService$1], i0.Renderer2],
7997
7978
  };
7998
7979
 
7999
7980
  var ClrCombobox = /** @class */ (function (_super) {
@@ -9019,21 +9000,30 @@
9019
9000
  * The full license information can be found in LICENSE in the root directory of this project.
9020
9001
  */
9021
9002
  var OutsideClick = /** @class */ (function () {
9022
- function OutsideClick(el) {
9023
- this.el = el;
9003
+ function OutsideClick(host, renderer, ngZone) {
9004
+ var _this = this;
9024
9005
  this.strict = false;
9025
9006
  this.outsideClick = new i0.EventEmitter(false);
9007
+ ngZone.runOutsideAngular(function () {
9008
+ _this.documentClickListener = renderer.listen('document', 'click', function (event) {
9009
+ // Compare the element in the DOM on which the mouse was clicked
9010
+ // with the current actionMenu native HTML element.
9011
+ if (host.nativeElement === event.target) {
9012
+ return;
9013
+ }
9014
+ if (!_this.strict && host.nativeElement.contains(event.target)) {
9015
+ return;
9016
+ }
9017
+ // We'll run change detection only if the click event actually happened outside of
9018
+ // the host element.
9019
+ ngZone.run(function () {
9020
+ _this.outsideClick.emit(event);
9021
+ });
9022
+ });
9023
+ });
9026
9024
  }
9027
- OutsideClick.prototype.documentClick = function (event) {
9028
- var target = event.target; // Get the element in the DOM on which the mouse was clicked
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);
9025
+ OutsideClick.prototype.ngOnDestroy = function () {
9026
+ this.documentClickListener();
9037
9027
  };
9038
9028
  return OutsideClick;
9039
9029
  }());
@@ -9041,12 +9031,13 @@
9041
9031
  { type: i0.Directive, args: [{ selector: '[clrOutsideClick]' },] }
9042
9032
  ];
9043
9033
  OutsideClick.ctorParameters = function () { return [
9044
- { type: i0.ElementRef }
9034
+ { type: i0.ElementRef },
9035
+ { type: i0.Renderer2 },
9036
+ { type: i0.NgZone }
9045
9037
  ]; };
9046
9038
  OutsideClick.propDecorators = {
9047
9039
  strict: [{ type: i0.Input, args: ['clrStrict',] }],
9048
- outsideClick: [{ type: i0.Output, args: ['clrOutsideClick',] }],
9049
- documentClick: [{ type: i0.HostListener, args: ['document:click', ['$event'],] }]
9040
+ outsideClick: [{ type: i0.Output, args: ['clrOutsideClick',] }]
9050
9041
  };
9051
9042
 
9052
9043
  var OUSTIDE_CLICK_DIRECTIVES = [OutsideClick];
@@ -9198,7 +9189,7 @@
9198
9189
  };
9199
9190
  return DragAndDropEventBusService;
9200
9191
  }());
9201
- DragAndDropEventBusService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DragAndDropEventBusService_Factory() { return new DragAndDropEventBusService(); }, token: DragAndDropEventBusService, providedIn: "root" });
9192
+ DragAndDropEventBusService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DragAndDropEventBusService_Factory() { return new DragAndDropEventBusService(); }, token: DragAndDropEventBusService, providedIn: "root" });
9202
9193
  DragAndDropEventBusService.decorators = [
9203
9194
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
9204
9195
  ];
@@ -10782,7 +10773,7 @@
10782
10773
  selector: 'clr-dg-filter',
10783
10774
  // We register this component as a CustomFilter, for the parent column to detect it.
10784
10775
  providers: [{ provide: CustomFilter, useExisting: ClrDatagridFilter }, UNIQUE_ID_PROVIDER],
10785
- template: "\n <button\n class=\"datagrid-filter-toggle\"\n type=\"button\"\n #anchor\n [attr.aria-label]=\"commonStrings.keys.datagridFilterAriaLabel\"\n [attr.aria-expanded]=\"ariaExpanded\"\n [attr.aria-controls]=\"popoverId\"\n clrPopoverAnchor\n clrPopoverOpenCloseButton\n [class.datagrid-filter-open]=\"open\"\n [class.datagrid-filtered]=\"active\"\n >\n <cds-icon\n [attr.status]=\"active ? 'info' : null\"\n [attr.shape]=\"active ? 'filter-grid-circle' : 'filter-grid'\"\n solid\n ></cds-icon>\n </button>\n\n <div\n class=\"datagrid-filter\"\n [id]=\"popoverId\"\n clrFocusTrap\n *clrPopoverContent=\"open; at: smartPosition; outsideClickToClose: true; scrollToClose: true\"\n >\n <div class=\"datagrid-filter-close-wrapper\">\n <button type=\"button\" class=\"close\" clrPopoverCloseButton>\n <cds-icon shape=\"window-close\" [attr.title]=\"commonStrings.keys.close\"></cds-icon>\n </button>\n </div>\n\n <ng-content></ng-content>\n </div>\n "
10776
+ template: "\n <button\n class=\"datagrid-filter-toggle\"\n type=\"button\"\n #anchor\n [attr.aria-label]=\"commonStrings.keys.datagridFilterAriaLabel\"\n [attr.aria-expanded]=\"ariaExpanded\"\n [attr.aria-controls]=\"popoverId\"\n clrPopoverAnchor\n clrPopoverOpenCloseButton\n [class.datagrid-filter-open]=\"open\"\n [class.datagrid-filtered]=\"active\"\n >\n <cds-icon\n [attr.status]=\"active ? 'info' : null\"\n [attr.shape]=\"active ? 'filter-grid-circle' : 'filter-grid'\"\n solid\n ></cds-icon>\n </button>\n\n <div\n class=\"datagrid-filter\"\n [id]=\"popoverId\"\n clrFocusTrap\n *clrPopoverContent=\"open; at: smartPosition; outsideClickToClose: true; scrollToClose: true\"\n role=\"dialog\"\n [attr.aria-label]=\"commonStrings.keys.datagridFilterDialogAriaLabel\"\n >\n <div class=\"datagrid-filter-close-wrapper\">\n <button type=\"button\" class=\"close\" clrPopoverCloseButton>\n <cds-icon shape=\"window-close\" [attr.title]=\"commonStrings.keys.close\"></cds-icon>\n </button>\n </div>\n\n <ng-content></ng-content>\n </div>\n "
10786
10777
  },] }
10787
10778
  ];
10788
10779
  ClrDatagridFilter.ctorParameters = function () { return [
@@ -11676,14 +11667,6 @@
11676
11667
  * This software is released under MIT license.
11677
11668
  * The full license information can be found in LICENSE in the root directory of this project.
11678
11669
  */
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
11670
  (function (ClrDatagridSortOrder) {
11688
11671
  ClrDatagridSortOrder[ClrDatagridSortOrder["UNSORTED"] = 0] = "UNSORTED";
11689
11672
  ClrDatagridSortOrder[ClrDatagridSortOrder["ASC"] = 1] = "ASC";
@@ -12569,6 +12552,12 @@
12569
12552
  _this.focusOnClose();
12570
12553
  }
12571
12554
  }), this.signpostIdService.id.subscribe(function (idChange) { return (_this.ariaControl = idChange); }));
12555
+ this.addDefaultAriaLabel(this.el.nativeElement);
12556
+ };
12557
+ ClrSignpostTrigger.prototype.addDefaultAriaLabel = function (el) {
12558
+ if (!el.hasAttribute('aria-label')) {
12559
+ el.setAttribute('aria-label', this.commonStrings.keys.signpostToggle);
12560
+ }
12572
12561
  };
12573
12562
  ClrSignpostTrigger.prototype.focusOnClose = function () {
12574
12563
  if (!i1.isPlatformBrowser(this.platformId)) {
@@ -12598,7 +12587,6 @@
12598
12587
  selector: '[clrSignpostTrigger]',
12599
12588
  host: {
12600
12589
  class: 'signpost-trigger',
12601
- '[attr.aria-label]': 'commonStrings.keys.signpostToggle',
12602
12590
  '[attr.aria-expanded]': 'ariaExpanded',
12603
12591
  '[attr.aria-controls]': 'ariaControl',
12604
12592
  '[class.active]': 'isOpen',
@@ -13277,7 +13265,7 @@
13277
13265
  templateRef: [{ type: i0.ViewChild, args: ['rowPortal',] }]
13278
13266
  };
13279
13267
 
13280
- var nbRow$1 = 0;
13268
+ var nbRow = 0;
13281
13269
  var DatagridIfExpandService = /** @class */ (function (_super) {
13282
13270
  __extends(DatagridIfExpandService, _super);
13283
13271
  function DatagridIfExpandService() {
@@ -13285,8 +13273,8 @@
13285
13273
  _this.expandableId = '';
13286
13274
  _this._replace = new rxjs.BehaviorSubject(false);
13287
13275
  _this._animate = new rxjs.Subject();
13288
- nbRow$1++;
13289
- _this.expandableId = 'clr-dg-expandable-row-' + nbRow$1;
13276
+ nbRow++;
13277
+ _this.expandableId = 'clr-dg-expandable-row-' + nbRow;
13290
13278
  return _this;
13291
13279
  }
13292
13280
  Object.defineProperty(DatagridIfExpandService.prototype, "expanded", {
@@ -13335,7 +13323,7 @@
13335
13323
  ];
13336
13324
  DatagridIfExpandService.ctorParameters = function () { return []; };
13337
13325
 
13338
- var nbRow = 0;
13326
+ var nbRow$1 = 0;
13339
13327
  var ClrDatagridRow = /** @class */ (function () {
13340
13328
  function ClrDatagridRow(selection, rowActionService, globalExpandable, expand, detailService, displayMode, vcr, renderer, el, commonStrings) {
13341
13329
  var _this = this;
@@ -13359,10 +13347,10 @@
13359
13347
  this._detailCloseLabel = '';
13360
13348
  this.subscriptions = [];
13361
13349
  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;
13350
+ nbRow$1++;
13351
+ this.id = 'clr-dg-row' + nbRow$1;
13352
+ this.radioId = 'clr-dg-row-rd' + nbRow$1;
13353
+ this.checkboxId = 'clr-dg-row-cb' + nbRow$1;
13366
13354
  this.expandableId = expand.expandableId;
13367
13355
  this.subscriptions.push(rxjs.combineLatest(this.expand.replace, this.expand.expandChange).subscribe(function (_a) {
13368
13356
  var _b = __read(_a, 2), expandReplaceValue = _b[0], expandChangeValue = _b[1];
@@ -13925,7 +13913,7 @@
13925
13913
  /**
13926
13914
  * Reopen updated row or close it
13927
13915
  */
13928
- row ? _this.detailService.open(row.item, row.detailButton) : _this.detailService.close();
13916
+ row ? _this.detailService.open(row.item, row.detailButton.nativeElement) : _this.detailService.close();
13929
13917
  }
13930
13918
  }));
13931
13919
  };
@@ -16163,8 +16151,6 @@
16163
16151
  * This software is released under MIT license.
16164
16152
  * The full license information can be found in LICENSE in the root directory of this project.
16165
16153
  */
16166
- // TODO: I'd like this to be a CheckedState enum for the checkboxes in the future.
16167
- exports.ClrSelectedState = void 0;
16168
16154
  (function (ClrSelectedState) {
16169
16155
  // WARNING! Unselected has the value 0,
16170
16156
  // so it's actually the only one that will evaluate to false if cast to a boolean.
@@ -17302,7 +17288,7 @@
17302
17288
  { type: i0.Renderer2 },
17303
17289
  { type: DropdownFocusHandler, decorators: [{ type: i0.SkipSelf }, { type: i0.Optional }] },
17304
17290
  { type: ClrPopoverToggleService },
17305
- { type: FocusService },
17291
+ { type: FocusService$1 },
17306
17292
  { type: undefined, decorators: [{ type: i0.Inject, args: [i0.PLATFORM_ID,] }] }
17307
17293
  ]; };
17308
17294
  var DROPDOWN_FOCUS_HANDLER_PROVIDER = customFocusableItemProvider(DropdownFocusHandler);
@@ -18795,7 +18781,7 @@
18795
18781
  };
18796
18782
  return ResponsiveNavigationService;
18797
18783
  }());
18798
- ResponsiveNavigationService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ResponsiveNavigationService_Factory() { return new ResponsiveNavigationService(); }, token: ResponsiveNavigationService, providedIn: "root" });
18784
+ ResponsiveNavigationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ResponsiveNavigationService_Factory() { return new ResponsiveNavigationService(); }, token: ResponsiveNavigationService, providedIn: "root" });
18799
18785
  ResponsiveNavigationService.decorators = [
18800
18786
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
18801
18787
  ];
@@ -19324,12 +19310,12 @@
19324
19310
  */
19325
19311
  var nbTabsComponent = 0;
19326
19312
  var TABS_ID = new i0.InjectionToken('TABS_ID');
19327
- function tokenFactory() {
19313
+ function tokenFactory$1() {
19328
19314
  return 'clr-tabs-' + nbTabsComponent++;
19329
19315
  }
19330
19316
  var TABS_ID_PROVIDER = {
19331
19317
  provide: TABS_ID,
19332
- useFactory: tokenFactory,
19318
+ useFactory: tokenFactory$1,
19333
19319
  };
19334
19320
 
19335
19321
  /*
@@ -20460,7 +20446,7 @@
20460
20446
  };
20461
20447
 
20462
20448
  // aka where the arrow / pointer is at in relation to the anchor
20463
- var POSITIONS$1 = [
20449
+ var POSITIONS = [
20464
20450
  'top-left',
20465
20451
  'top-middle',
20466
20452
  'top-right',
@@ -20538,7 +20524,7 @@
20538
20524
  set: function (position) {
20539
20525
  // Ugh
20540
20526
  this.renderer.removeClass(this.el.nativeElement, this.position);
20541
- if (position && POSITIONS$1.indexOf(position) > -1) {
20527
+ if (position && POSITIONS.indexOf(position) > -1) {
20542
20528
  this._position = position;
20543
20529
  }
20544
20530
  else {
@@ -20658,7 +20644,7 @@
20658
20644
  },] }
20659
20645
  ];
20660
20646
 
20661
- var POSITIONS = ['bottom-left', 'bottom-right', 'top-left', 'top-right', 'right', 'left'];
20647
+ var POSITIONS$1 = ['bottom-left', 'bottom-right', 'top-left', 'top-right', 'right', 'left'];
20662
20648
  var SIZES = ['xs', 'sm', 'md', 'lg'];
20663
20649
  var ClrTooltipContent = /** @class */ (function (_super) {
20664
20650
  __extends(ClrTooltipContent, _super);
@@ -20697,7 +20683,7 @@
20697
20683
  set: function (position) {
20698
20684
  // Ugh
20699
20685
  this.renderer.removeClass(this.el.nativeElement, 'tooltip-' + this.position);
20700
- if (position && POSITIONS.indexOf(position) > -1) {
20686
+ if (position && POSITIONS$1.indexOf(position) > -1) {
20701
20687
  this._position = position;
20702
20688
  }
20703
20689
  else {
@@ -23902,6 +23888,16 @@
23902
23888
  ClrAccordionPanel.prototype.emitPanelChange = function (panel) {
23903
23889
  if (panel.open !== this.panelOpen) {
23904
23890
  this.panelOpenChange.emit(panel.open);
23891
+ /**
23892
+ * @Note: this line below is needed because we don't want to use another value to track
23893
+ * for changes of the panel. Because we use BehaviorSubject this emit event is trigger on
23894
+ * init (that is not needed - there is no change of the original value) - in some cases this
23895
+ * lead to duplicate events.
23896
+ *
23897
+ * To prevent this we try to emit only when the value is changed and keep the value in sync
23898
+ * even that is used only into the Initial Lifecycle (ngOnInit).
23899
+ */
23900
+ this.panelOpen = panel.open;
23905
23901
  }
23906
23902
  if (panel.open) {
23907
23903
  this.ifExpandService.expanded = true;
@@ -24063,7 +24059,7 @@
24063
24059
  { type: IfExpandService }
24064
24060
  ]; };
24065
24061
 
24066
- var declarations$1 = [
24062
+ var declarations = [
24067
24063
  ClrAccordion,
24068
24064
  ClrAccordionPanel,
24069
24065
  ClrAccordionTitle,
@@ -24081,8 +24077,8 @@
24081
24077
  ClrAccordionModule.decorators = [
24082
24078
  { type: i0.NgModule, args: [{
24083
24079
  imports: [i1.CommonModule, ClrIconModule],
24084
- declarations: __spread(declarations$1),
24085
- exports: __spread(declarations$1),
24080
+ declarations: __spread(declarations),
24081
+ exports: __spread(declarations),
24086
24082
  },] }
24087
24083
  ];
24088
24084
  ClrAccordionModule.ctorParameters = function () { return []; };
@@ -24367,7 +24363,6 @@
24367
24363
  * This software is released under MIT license.
24368
24364
  * The full license information can be found in LICENSE in the root directory of this project.
24369
24365
  */
24370
- exports.ClrStepButtonType = void 0;
24371
24366
  (function (ClrStepButtonType) {
24372
24367
  ClrStepButtonType["Next"] = "next";
24373
24368
  ClrStepButtonType["Submit"] = "submit";
@@ -24527,7 +24522,7 @@
24527
24522
  { type: IfExpandService }
24528
24523
  ]; };
24529
24524
 
24530
- var declarations = [ClrStepper, ClrStepButton, ClrStepperPanel, StepperOompaLoompa, StepperWillyWonka];
24525
+ var declarations$1 = [ClrStepper, ClrStepButton, ClrStepperPanel, StepperOompaLoompa, StepperWillyWonka];
24531
24526
  var ClrStepperModule = /** @class */ (function () {
24532
24527
  function ClrStepperModule() {
24533
24528
  }
@@ -24536,8 +24531,8 @@
24536
24531
  ClrStepperModule.decorators = [
24537
24532
  { type: i0.NgModule, args: [{
24538
24533
  imports: [i1.CommonModule, ClrIconModule, ClrAccordionModule],
24539
- declarations: __spread(declarations),
24540
- exports: __spread(declarations, [ClrAccordionModule]),
24534
+ declarations: __spread(declarations$1),
24535
+ exports: __spread(declarations$1, [ClrAccordionModule]),
24541
24536
  },] }
24542
24537
  ];
24543
24538
 
@@ -24765,7 +24760,6 @@
24765
24760
  * This software is released under MIT license.
24766
24761
  * The full license information can be found in LICENSE in the root directory of this project.
24767
24762
  */
24768
- exports.ClrTimelineLayout = void 0;
24769
24763
  (function (ClrTimelineLayout) {
24770
24764
  ClrTimelineLayout["HORIZONTAL"] = "horizontal";
24771
24765
  ClrTimelineLayout["VERTICAL"] = "vertical";
@@ -24776,7 +24770,6 @@
24776
24770
  * This software is released under MIT license.
24777
24771
  * The full license information can be found in LICENSE in the root directory of this project.
24778
24772
  */
24779
- exports.ClrTimelineStepState = void 0;
24780
24773
  (function (ClrTimelineStepState) {
24781
24774
  ClrTimelineStepState["NOT_STARTED"] = "not-started";
24782
24775
  ClrTimelineStepState["CURRENT"] = "current";
@@ -25409,7 +25402,6 @@
25409
25402
  * This software is released under MIT license.
25410
25403
  * The full license information can be found in LICENSE in the root directory of this project.
25411
25404
  */
25412
- exports.ClrAriaLivePoliteness = void 0;
25413
25405
  (function (ClrAriaLivePoliteness) {
25414
25406
  ClrAriaLivePoliteness["off"] = "off";
25415
25407
  ClrAriaLivePoliteness["polite"] = "polite";
@@ -25554,7 +25546,7 @@
25554
25546
  };
25555
25547
  return ClrAriaLiveService;
25556
25548
  }());
25557
- ClrAriaLiveService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ClrAriaLiveService_Factory() { return new ClrAriaLiveService(i0__namespace.ɵɵinject(i0__namespace.NgZone), i0__namespace.ɵɵinject(i1__namespace.DOCUMENT), i0__namespace.ɵɵinject(i0__namespace.PLATFORM_ID)); }, token: ClrAriaLiveService, providedIn: "root" });
25549
+ 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
25550
  ClrAriaLiveService.decorators = [
25559
25551
  { type: i0.Injectable, args: [{
25560
25552
  providedIn: 'root',
@@ -25953,7 +25945,7 @@
25953
25945
  exports.ɵbv = DateNavigationService;
25954
25946
  exports.ɵbw = DateFormControlService;
25955
25947
  exports.ɵbx = LocaleHelperService;
25956
- exports.ɵby = FocusService$1;
25948
+ exports.ɵby = FocusService;
25957
25949
  exports.ɵbz = DateIOService;
25958
25950
  exports.ɵc = FOCUS_ON_VIEW_INIT_PROVIDER;
25959
25951
  exports.ɵca = DatepickerEnabledService;
@@ -26011,7 +26003,7 @@
26011
26003
  exports.ɵe = RootDropdownService;
26012
26004
  exports.ɵea = TabsService;
26013
26005
  exports.ɵeb = TABS_ID;
26014
- exports.ɵec = tokenFactory;
26006
+ exports.ɵec = tokenFactory$1;
26015
26007
  exports.ɵed = TABS_ID_PROVIDER;
26016
26008
  exports.ɵee = VerticalNavService;
26017
26009
  exports.ɵef = VerticalNavIconService;
@@ -26031,7 +26023,7 @@
26031
26023
  exports.ɵf = clrRootDropdownFactory;
26032
26024
  exports.ɵg = ROOT_DROPDOWN_PROVIDER;
26033
26025
  exports.ɵh = POPOVER_HOST_ANCHOR;
26034
- exports.ɵi = FocusService;
26026
+ exports.ɵi = FocusService$1;
26035
26027
  exports.ɵj = clrFocusServiceFactory;
26036
26028
  exports.ɵk = FOCUS_SERVICE_PROVIDER;
26037
26029
  exports.ɵl = DropdownFocusHandler;
@@ -26045,7 +26037,7 @@
26045
26037
  exports.ɵt = BasicFocusableItem;
26046
26038
  exports.ɵu = BASIC_FOCUSABLE_ITEM_PROVIDER;
26047
26039
  exports.ɵv = IF_ACTIVE_ID;
26048
- exports.ɵw = tokenFactory$1;
26040
+ exports.ɵw = tokenFactory;
26049
26041
  exports.ɵx = IF_ACTIVE_ID_PROVIDER;
26050
26042
  exports.ɵy = IfActiveService;
26051
26043
  exports.ɵz = IfExpandService;