@datarailsshared/datarailsshared 1.4.98 → 1.4.101

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.
@@ -4094,6 +4094,7 @@
4094
4094
  quarter: exports.DateFromats.QUARTER_FORMAT,
4095
4095
  week: exports.DateFromats.WEEK_FORMAT
4096
4096
  };
4097
+ this.fiscalYearMonthsModifier = 0;
4097
4098
  }
4098
4099
  DrDatePickerService.prototype.getDisplayPrefix = function () {
4099
4100
  var formatCached = this.format$.getValue();
@@ -4120,6 +4121,94 @@
4120
4121
  DrDatePickerService.prototype.normalizeValue = function (value) {
4121
4122
  return value.replace(/d/g, 'D');
4122
4123
  };
4124
+ /**
4125
+ * Get quarter number for date according to fiscal year
4126
+ *
4127
+ * @param date
4128
+ */
4129
+ DrDatePickerService.prototype.getQuarterAccordingToFiscalYear = function (date) {
4130
+ var fiscalMonth = this.fiscalYearMonthsModifier;
4131
+ var dateMonth = date.month();
4132
+ if (dateMonth < fiscalMonth) {
4133
+ fiscalMonth -= 12;
4134
+ }
4135
+ return Math.trunc((date.month() - fiscalMonth) / 3) + 1;
4136
+ };
4137
+ /**
4138
+ * Sets date to end of quarter in FY by passed quarter number
4139
+ *
4140
+ * @param date
4141
+ * @param quarterNumber
4142
+ */
4143
+ DrDatePickerService.prototype.setEndOfQuarter = function (date, quarterNumber) {
4144
+ date
4145
+ .subtract(this.fiscalYearMonthsModifier, 'M')
4146
+ .startOf('year')
4147
+ .add(this.fiscalYearMonthsModifier + quarterNumber * 3 - 1, 'M')
4148
+ .endOf('month');
4149
+ };
4150
+ /**
4151
+ * Sets date to start of quarter in FY by passed quarter number
4152
+ *
4153
+ * @param date
4154
+ * @param quarterNumber
4155
+ */
4156
+ DrDatePickerService.prototype.setStartOfQuarter = function (date, quarterNumber) {
4157
+ date
4158
+ .subtract(this.fiscalYearMonthsModifier, 'M')
4159
+ .startOf('year')
4160
+ .add(this.fiscalYearMonthsModifier + (quarterNumber - 1) * 3, 'M');
4161
+ };
4162
+ /**
4163
+ * Sets date to end of current quarter (in which date is located) according to FY
4164
+ *
4165
+ * @param date
4166
+ */
4167
+ DrDatePickerService.prototype.setEndOfCurrentQuarter = function (date) {
4168
+ this.setEndOfQuarter(date, this.getQuarterAccordingToFiscalYear(date));
4169
+ };
4170
+ /**
4171
+ * Sets date to start of current quarter (in which date is located) according to FY
4172
+ *
4173
+ * @param date
4174
+ */
4175
+ DrDatePickerService.prototype.setStartOfCurrentQuarter = function (date) {
4176
+ this.setStartOfQuarter(date, this.getQuarterAccordingToFiscalYear(date));
4177
+ };
4178
+ /**
4179
+ * If date selection on this timeframe depends on Fiscal Year
4180
+ *
4181
+ * @param timeframe
4182
+ */
4183
+ DrDatePickerService.prototype.isTimeframeDependingOnFY = function (timeframe) {
4184
+ return ___namespace.includes([exports.TimeframeOption.QUARTER, exports.TimeframeOption.YEAR], timeframe);
4185
+ };
4186
+ /**
4187
+ * Subtract from date fiscal year shift months count
4188
+ *
4189
+ * @param date
4190
+ */
4191
+ DrDatePickerService.prototype.subtractFiscalYearMonthsFromDate = function (date) {
4192
+ return this.getDateModifiedByFiscalMonths(date, true);
4193
+ };
4194
+ /**
4195
+ * Add to date fiscal year shift months count
4196
+ *
4197
+ * @param date
4198
+ */
4199
+ DrDatePickerService.prototype.addFiscalYearMonthsToDate = function (date) {
4200
+ return this.getDateModifiedByFiscalMonths(date);
4201
+ };
4202
+ /**
4203
+ * Add or subtract depending on isRevert paremeter Fiscal year month shift
4204
+ *
4205
+ * @param date
4206
+ * @param isSubtract
4207
+ */
4208
+ DrDatePickerService.prototype.getDateModifiedByFiscalMonths = function (date, isSubtract) {
4209
+ if (isSubtract === void 0) { isSubtract = false; }
4210
+ return date ? ___namespace.cloneDeep(date)[isSubtract ? 'subtract' : 'add'](this.fiscalYearMonthsModifier, 'month') : date;
4211
+ };
4123
4212
  return DrDatePickerService;
4124
4213
  }());
4125
4214
  DrDatePickerService.decorators = [
@@ -4156,20 +4245,20 @@
4156
4245
  title: 'Month',
4157
4246
  value: exports.CalendarView.FOR_MONTHS,
4158
4247
  format: this.datePickerService.formatConfig.month,
4159
- periodLabel: function () { return String(moment$1(_this._calendar.activeDate).year()); }
4248
+ periodLabel: function () { return String(moment$1(_this._calendar.activeDate).utc().year()); }
4160
4249
  }, {
4161
4250
  timeframe: exports.TimeframeOption.QUARTER,
4162
4251
  title: 'Quarter',
4163
4252
  value: exports.CalendarView.FOR_QUARTERS,
4164
4253
  format: this.datePickerService.formatConfig.quarter,
4165
- periodLabel: function () { return String(moment$1(_this._calendar.activeDate).year()); }
4254
+ periodLabel: function () { return String(moment$1(_this.datePickerService.subtractFiscalYearMonthsFromDate(_this._calendar.activeDate)).utc().year()); }
4166
4255
  }, {
4167
4256
  timeframe: exports.TimeframeOption.YEAR,
4168
4257
  title: 'Year',
4169
4258
  value: exports.CalendarView.FOR_YEARS,
4170
4259
  format: this.datePickerService.formatConfig.year,
4171
4260
  periodLabel: function () {
4172
- var currentYear = moment$1(_this._calendar.activeDate).year();
4261
+ var currentYear = moment$1(_this.datePickerService.subtractFiscalYearMonthsFromDate(_this._calendar.activeDate)).utc().year();
4173
4262
  var startPeriod = Math.floor(currentYear / 24) * 24;
4174
4263
  return startPeriod + '-' + (startPeriod + 23);
4175
4264
  }
@@ -4191,12 +4280,25 @@
4191
4280
  _calendar.currentView = _this.selectedTimeframe;
4192
4281
  _this.setPeriodLabels();
4193
4282
  if (_this.selectedTimeframe === exports.CalendarView.FOR_QUARTERS) {
4194
- _this.selectedQuarter = moment$1(_this._calendar.activeDate).quarter();
4283
+ _this.selectedQuarter = _this.datePickerService.getQuarterAccordingToFiscalYear(_this._calendar.activeDate);
4284
+ }
4285
+ });
4286
+ _calendar.viewChanged.pipe(operators.takeUntil(this._destroyed)).subscribe(function () {
4287
+ _this.setPeriodLabels();
4288
+ if (_calendar.multiYearView) {
4289
+ _this.transformDateInMultiyearViewAccordingToFY();
4195
4290
  }
4196
4291
  });
4197
- _calendar.viewChanged.pipe(operators.takeUntil(this._destroyed)).subscribe(function () { return _this.setPeriodLabels(); });
4198
4292
  this.datePickerService.calendarInstance = _calendar;
4199
4293
  }
4294
+ DrDatePickerCustomHeaderComponent.prototype.ngOnInit = function () {
4295
+ var _this = this;
4296
+ setTimeout(function () {
4297
+ if (_this._calendar.multiYearView) {
4298
+ _this.transformDateInMultiyearViewAccordingToFY();
4299
+ }
4300
+ });
4301
+ };
4200
4302
  DrDatePickerCustomHeaderComponent.prototype.ngOnDestroy = function () {
4201
4303
  this._destroyed.next();
4202
4304
  this._destroyed.complete();
@@ -4222,7 +4324,7 @@
4222
4324
  var chosenTimeframeOption = this.timeframeOptions.filter(function (option) { return option.value === _this.selectedTimeframe; })[0];
4223
4325
  this.datePickerService.updateTimeframeAndFormat(chosenTimeframeOption.format);
4224
4326
  if (this.selectedTimeframe === exports.CalendarView.FOR_QUARTERS) {
4225
- this.selectedQuarter = moment$1(this._calendar.activeDate).quarter();
4327
+ this.selectedQuarter = this.datePickerService.getQuarterAccordingToFiscalYear(this._calendar.activeDate);
4226
4328
  }
4227
4329
  };
4228
4330
  Object.defineProperty(DrDatePickerCustomHeaderComponent.prototype, "currentViewIsQuarter", {
@@ -4236,11 +4338,9 @@
4236
4338
  this._calendar.currentView = view;
4237
4339
  };
4238
4340
  DrDatePickerCustomHeaderComponent.prototype.onSelectQuarter = function (quarterNumber) {
4239
- var monthsInQuarter = 3;
4240
- this.selectedQuarter = moment$1(this._calendar.activeDate).quarter();
4241
- var unadaptedDate = this._dateAdapter.addCalendarMonths(this._calendar.activeDate, monthsInQuarter * (quarterNumber - this.selectedQuarter));
4242
- this._calendar.activeDate = unadaptedDate;
4243
- this.datePickerService.updatedQuarter$.next(moment$1(unadaptedDate));
4341
+ this.selectedQuarter = quarterNumber;
4342
+ this.datePickerService.setEndOfQuarter(this._calendar.activeDate, quarterNumber);
4343
+ this.datePickerService.updatedQuarter$.next(this._calendar.activeDate);
4244
4344
  this.datePickerService.datePickerInstance.close();
4245
4345
  };
4246
4346
  DrDatePickerCustomHeaderComponent.prototype.pagingClicked = function (forward) {
@@ -4252,12 +4352,18 @@
4252
4352
  this._calendar.activeDate = this._dateAdapter[actionCall](this._calendar.activeDate, forward ? amount : -amount);
4253
4353
  this.setPeriodLabels();
4254
4354
  };
4355
+ DrDatePickerCustomHeaderComponent.prototype.transformDateInMultiyearViewAccordingToFY = function () {
4356
+ var multuYearView = this._calendar.multiYearView;
4357
+ multuYearView._activeDate = this.datePickerService.subtractFiscalYearMonthsFromDate(multuYearView._activeDate);
4358
+ multuYearView._selectedYear = multuYearView._activeDate.year();
4359
+ multuYearView._init();
4360
+ };
4255
4361
  return DrDatePickerCustomHeaderComponent;
4256
4362
  }());
4257
4363
  DrDatePickerCustomHeaderComponent.decorators = [
4258
4364
  { type: i0.Component, args: [{
4259
4365
  selector: 'dr-date-picker_custom-header.component',
4260
- template: "<div *ngIf=\"datePickerService.isTimeframeSelectionEnabled\" class=\"dr-datepicker__timeframe-select__wrapper\">\n <dr-select\n class=\"dr-datepicker__timeframe-select\"\n [(ngModel)]=\"selectedTimeframe\"\n [items]=\"timeframeOptions | drShowTimeframePipe: datePickerService.availableTimeframes\"\n bindLabel=\"title\"\n bindValue=\"value\"\n (ngModelChange)=\"setTimeframe()\">\n </dr-select>\n</div>\n\n<div class=\"dr-date-paging\">\n <div class=\"dr-date-paging flip-page-button\"\n (click)=\"pagingClicked(false)\">\n <i class=\"dr-icon-arrow-left presentation_buttons-navigate_input\"></i>\n </div>\n <span class=\"example-header-label\">\n <span (click)=\"switchViewOnClickOnPeriodLabel(calendarView.FOR_MONTHS)\">{{periodMonthLabel + ' '}}</span>\n <span (click)=\"switchViewOnClickOnPeriodLabel(calendarView.FOR_YEARS)\">{{periodYearLabel}}</span>\n </span>\n <div class=\"dr-date-paging flip-page-button\"\n (click)=\"pagingClicked(true)\">\n <i class=\"dr-icon-arrow-right presentation_buttons-navigate_input\"></i>\n </div>\n</div>\n<div #quarterlyDatePicker class=\"dr-quarterly-datepicker\" *ngIf=\"currentViewIsQuarter\">\n <div *ngFor=\"let quarter of quarters\"\n class=\"quarter-selector\" (click)=\"onSelectQuarter(quarter)\"\n [class]=\"quarter === selectedQuarter ? 'selected' : ''\"\n >Q{{quarter}}</div>\n</div>\n\n",
4366
+ template: "<div *ngIf=\"datePickerService.isTimeframeSelectionEnabled\" class=\"dr-datepicker__timeframe-select__wrapper\">\n <dr-select\n class=\"dr-datepicker__timeframe-select\"\n [(ngModel)]=\"selectedTimeframe\"\n [items]=\"timeframeOptions | drShowTimeframePipe: datePickerService.availableTimeframes\"\n bindLabel=\"title\"\n bindValue=\"value\"\n (ngModelChange)=\"setTimeframe()\">\n </dr-select>\n</div>\n\n<div class=\"dr-date-paging\">\n <div class=\"dr-date-paging flip-page-button\"\n (click)=\"pagingClicked(false)\">\n <i class=\"dr-icon-arrow-left presentation_buttons-navigate_input\"></i>\n </div>\n <span class=\"example-header-label\">\n <span (click)=\"switchViewOnClickOnPeriodLabel(calendarView.FOR_MONTHS)\">{{ periodMonthLabel + ' ' }}</span>\n <span (click)=\"switchViewOnClickOnPeriodLabel(calendarView.FOR_YEARS)\">{{ periodYearLabel }}</span>\n </span>\n <div class=\"dr-date-paging flip-page-button\"\n (click)=\"pagingClicked(true)\">\n <i class=\"dr-icon-arrow-right presentation_buttons-navigate_input\"></i>\n </div>\n</div>\n<div #quarterlyDatePicker class=\"dr-quarterly-datepicker\" *ngIf=\"currentViewIsQuarter\">\n <div *ngFor=\"let quarter of quarters\"\n class=\"quarter-selector\" (click)=\"onSelectQuarter(quarter)\"\n [class]=\"quarter === selectedQuarter ? 'selected' : ''\"\n >Q{{quarter}}</div>\n</div>\n\n",
4261
4367
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
4262
4368
  styles: [":host{height:54px;align-items:center;font-family:\"Poppins\";font-style:normal;font-weight:600;font-size:14px;line-height:22px}.dr-datepicker__timeframe-select__wrapper{background-color:#f9faff;padding:16px 32px;border-radius:18px 18px 0 0}.dr-date-paging{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:16px 8px;grid-gap:4px;gap:4px}.dr-date-paging.flip-page-button{width:20px;height:20px;padding:0;color:#4e566c}.dr-date-paging.flip-page-button:hover{border-radius:50%;background:#f2f2fb;color:#4646ce}.example-header-label{cursor:pointer}.dr-quarterly-datepicker{display:flex;justify-content:space-between;padding:10px}.dr-quarterly-datepicker .quarter-selector{display:block;width:74px;height:40px;text-align:center;border-radius:40px;font-weight:400;padding-top:9px}.dr-quarterly-datepicker .quarter-selector:hover{background:#f2f2fb;color:#4646ce;font-weight:600;cursor:pointer}.dr-quarterly-datepicker .quarter-selector.selected{background-color:#4646ce;color:#f3f7ff;font-weight:600}\n"]
4263
4369
  },] }
@@ -4283,6 +4389,7 @@
4283
4389
  // Whether to transform date, taking end, start, middle of preiod (i.e. set middle of month if timeframe='month')
4284
4390
  this.periodPosition = exports.DatePickerPeriodPosition.DEFAULT;
4285
4391
  this.placeholder = 'Select';
4392
+ this.fiscalYearMonthsModifier = 0;
4286
4393
  this.calendarViewsTimeframeMapping = {
4287
4394
  year: 'multi-year',
4288
4395
  month: 'year',
@@ -4335,6 +4442,7 @@
4335
4442
  configurable: true
4336
4443
  });
4337
4444
  DrDatePickerComponent.prototype.ngAfterViewInit = function () {
4445
+ this.datePickerService.fiscalYearMonthsModifier = this.fiscalYearMonthsModifier;
4338
4446
  this.datePickerService.datePickerInstance = this.datePicker;
4339
4447
  this.datePicker.startView = this.calendarViewsTimeframeMapping[this.datePickerService.timeframe];
4340
4448
  };
@@ -4350,14 +4458,43 @@
4350
4458
  var timeframe = this.datePickerService.timeframe;
4351
4459
  switch (this.periodPosition) {
4352
4460
  case exports.DatePickerPeriodPosition.START_OF_PERIOD:
4353
- this.innerValue.startOf(timeframe);
4461
+ if (this.datePickerService.timeframe === exports.TimeframeOption.QUARTER) {
4462
+ this.datePickerService.setStartOfCurrentQuarter(this.innerValue);
4463
+ }
4464
+ else if (this.datePickerService.timeframe === exports.TimeframeOption.YEAR) {
4465
+ this.datePickerService.setStartOfQuarter(this.innerValue, 1);
4466
+ }
4467
+ else {
4468
+ this.innerValue.startOf(timeframe);
4469
+ }
4354
4470
  break;
4355
4471
  case exports.DatePickerPeriodPosition.END_OF_PERIOD:
4356
- this.innerValue.endOf(timeframe);
4472
+ if (this.datePickerService.timeframe === exports.TimeframeOption.QUARTER) {
4473
+ this.datePickerService.setEndOfCurrentQuarter(this.innerValue);
4474
+ }
4475
+ else if (this.datePickerService.timeframe === exports.TimeframeOption.YEAR) {
4476
+ this.datePickerService.setEndOfQuarter(this.innerValue, 4);
4477
+ }
4478
+ else {
4479
+ this.innerValue.endOf(timeframe);
4480
+ }
4357
4481
  break;
4358
4482
  case exports.DatePickerPeriodPosition.MIDDLE_OF_PERIOD:
4359
- this.innerValue.startOf(timeframe);
4360
- var endOfPeriod = this.innerValue.clone().endOf(timeframe);
4483
+ var endOfPeriod = void 0;
4484
+ if (this.datePickerService.timeframe === exports.TimeframeOption.QUARTER) {
4485
+ endOfPeriod = this.innerValue.clone();
4486
+ this.datePickerService.setStartOfCurrentQuarter(this.innerValue);
4487
+ this.datePickerService.setEndOfCurrentQuarter(endOfPeriod);
4488
+ }
4489
+ else if (this.datePickerService.timeframe === exports.TimeframeOption.YEAR) {
4490
+ endOfPeriod = this.innerValue.clone();
4491
+ this.datePickerService.setStartOfQuarter(this.innerValue, 1);
4492
+ this.datePickerService.setEndOfQuarter(endOfPeriod, 4);
4493
+ }
4494
+ else {
4495
+ this.innerValue.startOf(timeframe);
4496
+ endOfPeriod = this.innerValue.clone().endOf(timeframe);
4497
+ }
4361
4498
  var diff = endOfPeriod.diff(this.innerValue, 'seconds');
4362
4499
  this.innerValue.add(diff / 2 + 1, 'seconds');
4363
4500
  break;
@@ -4367,6 +4504,9 @@
4367
4504
  }
4368
4505
  };
4369
4506
  DrDatePickerComponent.prototype.chosenPeriodHandler = function (chosenDate, timeframe) {
4507
+ if (timeframe === exports.TimeframeOption.YEAR) {
4508
+ chosenDate = this.datePickerService.addFiscalYearMonthsToDate(chosenDate);
4509
+ }
4370
4510
  if (this.datePickerService.timeframe === exports.TimeframeOption.QUARTER && timeframe === exports.TimeframeOption.YEAR) {
4371
4511
  this.datePickerService.calendarInstance.currentView = exports.CalendarView.FOR_QUARTERS;
4372
4512
  this.datePickerService.calendarInstance.activeDate = chosenDate;
@@ -4435,6 +4575,7 @@
4435
4575
  max: [{ type: i0.Input }],
4436
4576
  periodPosition: [{ type: i0.Input }],
4437
4577
  placeholder: [{ type: i0.Input }],
4578
+ fiscalYearMonthsModifier: [{ type: i0.Input }],
4438
4579
  datePicker: [{ type: i0.ViewChild, args: ['datePicker',] }]
4439
4580
  };
4440
4581
 
@@ -4495,8 +4636,12 @@
4495
4636
  if (!this.value) {
4496
4637
  return this.placeholder;
4497
4638
  }
4639
+ var displayValue = ___namespace.cloneDeep(this.value);
4640
+ if (this.datePickerService.isTimeframeDependingOnFY(this.datePickerService.timeframe)) {
4641
+ displayValue = this.datePickerService.subtractFiscalYearMonthsFromDate(displayValue);
4642
+ }
4498
4643
  var formatCached = this.datePickerService.format$.getValue();
4499
- return this.datePickerService.getDisplayPrefix() + this.value.format(formatCached);
4644
+ return this.datePickerService.getDisplayPrefix() + displayValue.format(formatCached);
4500
4645
  },
4501
4646
  enumerable: false,
4502
4647
  configurable: true
@@ -4653,14 +4798,15 @@
4653
4798
  TooltipInfoComponent.decorators = [
4654
4799
  { type: i0.Component, args: [{
4655
4800
  selector: 'dr-tooltip-info',
4656
- template: "<div class=\"tooltip-info\">\n <i *ngIf=\"data?.icon else defaultIcon\" class=\"fa\" [class]=\"data.icon\" [style.fontSize.px]=\"14\"\n [style.margin.px]=\"12\" [style.color]=\"data?.iconColor || '#7B61FF'\"></i>\n <div class=\"tooltip-info-content-wrapper\">\n <div *ngIf=\"data?.title\" class=\"tooltip-info_header\">\n <span>{{data.title}}</span>\n </div>\n <div *ngIf=\"data?.description\" class=\"tooltip-info_description\"\n [class.tooltip-info_description-no-border]=\"!data.title\">\n <ng-container *ngIf=\"!data.title\"></ng-container>\n <span>{{data.description}}</span>\n </div>\n </div>\n</div>\n\n<ng-template #defaultIcon>\n <ng-container *ngIf=\"!data.icon\">\n <div class=\"default-icon\"></div>\n </ng-container>\n</ng-template>\n",
4801
+ template: "<div class=\"tooltip-info\">\n <i *ngIf=\"data?.icon else defaultIcon\" class=\"fa\" [class]=\"data.icon\" [style.fontSize.px]=\"14\"\n [style.margin.px]=\"12\" [style.color]=\"data?.iconColor || '#7B61FF'\"></i>\n <div class=\"tooltip-info-content-wrapper\">\n <div *ngIf=\"data?.title\" class=\"tooltip-info_header\">\n <span>{{data.title}}</span>\n </div>\n <div *ngIf=\"data?.description\" class=\"tooltip-info_description\"\n [class.tooltip-info_description-no-border]=\"!data.title\">\n <ng-container *ngIf=\"!data.title\"></ng-container>\n <span *ngIf=\"!useDescriptionAsHTML\">{{data.description}}</span>\n <div *ngIf=\"useDescriptionAsHTML\" [innerHTML]=\"data.description\"></div>\n </div>\n </div>\n</div>\n\n<ng-template #defaultIcon>\n <ng-container *ngIf=\"!data.icon\">\n <div class=\"default-icon\"></div>\n </ng-container>\n</ng-template>\n",
4657
4802
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
4658
4803
  styles: [".tooltip-info{width:316px;display:flex}.tooltip-info-content-wrapper{display:flex;flex-direction:column;padding-top:10px}.tooltip-info_header{padding:0 16px 6px 0;font-weight:bold;font-size:14px;line-height:16px;letter-spacing:.25px;display:flex;justify-content:flex-start}.tooltip-info_header>i{margin-right:10px}.tooltip-info-content-wrapper{padding-top:10px}.tooltip-info_description{display:flex;align-items:flex-start;border-top:1px solid #aeb5bb;padding:12px 10px 10px 0;text-align:left;font-weight:normal;font-size:14px;line-height:22px}.tooltip-info_description-no-border{padding-top:0;border-top:none}.tooltip-info_description>i{margin-right:10px}:host.tooltip-info-medium .tooltip-info{max-width:272px}:host.tooltip-info-medium .tooltip-info-content-wrapper{padding-top:10px}:host.tooltip-info-medium .tooltip-info_header,:host.tooltip-info-medium .tooltip-info_description{min-height:unset;border-top:none;font-size:14px;line-height:22px}:host.tooltip-info-medium .tooltip-info_header{padding:10px 10px 0 0}:host.tooltip-info-medium .tooltip-info_description{padding:10px 12px 10px 0}:host.tooltip-info-medium .tooltip-info .default-icon:before{background:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M8.00008 2.66669C5.05341 2.66669 2.66675 5.05335 2.66675 8.00002C2.66675 10.9467 5.05341 13.3334 8.00008 13.3334C10.9467 13.3334 13.3334 10.9467 13.3334 8.00002C13.3334 5.05335 10.9467 2.66669 8.00008 2.66669ZM8.53341 10.6667H7.46675V7.46669H8.53341V10.6667ZM8.53341 6.40002H7.46675V5.33335H8.53341V6.40002Z%22 fill%3D%22%237B61FF%22%2F%3E%3C%2Fsvg%3E\") no-repeat;background-size:100% 100%;display:inline-block;height:20px;width:20px;content:\"\"}:host.tooltip-info-small .tooltip-info{width:auto}:host.tooltip-info-small .tooltip-info-content-wrapper{padding-top:10px}:host.tooltip-info-small .tooltip-info_header,:host.tooltip-info-small .tooltip-info_description{min-height:unset;border-top:none;font-size:14px;line-height:22px}:host.tooltip-info-small .tooltip-info_header{padding:0 10px 0 0}:host.tooltip-info-small .tooltip-info_description{padding:0 12px 10px 0}:host.tooltip-info-small .tooltip-info .default-icon:before{background:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M8.00008 2.66669C5.05341 2.66669 2.66675 5.05335 2.66675 8.00002C2.66675 10.9467 5.05341 13.3334 8.00008 13.3334C10.9467 13.3334 13.3334 10.9467 13.3334 8.00002C13.3334 5.05335 10.9467 2.66669 8.00008 2.66669ZM8.53341 10.6667H7.46675V7.46669H8.53341V10.6667ZM8.53341 6.40002H7.46675V5.33335H8.53341V6.40002Z%22 fill%3D%22%237B61FF%22%2F%3E%3C%2Fsvg%3E\") no-repeat;background-size:100% 100%;display:inline-block;height:20px;width:20px;content:\"\"}.default-icon{position:relative;width:18px;height:18px;margin:10px}.default-icon:before{background:url(\"data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M8.00008 2.66669C5.05341 2.66669 2.66675 5.05335 2.66675 8.00002C2.66675 10.9467 5.05341 13.3334 8.00008 13.3334C10.9467 13.3334 13.3334 10.9467 13.3334 8.00002C13.3334 5.05335 10.9467 2.66669 8.00008 2.66669ZM8.53341 10.6667H7.46675V7.46669H8.53341V10.6667ZM8.53341 6.40002H7.46675V5.33335H8.53341V6.40002Z%22 fill%3D%22%237B61FF%22%2F%3E%3C%2Fsvg%3E\") no-repeat;background-size:100% 100%;display:inline-block;height:18px;width:18px;content:\"\"}\n"]
4659
4804
  },] }
4660
4805
  ];
4661
4806
  TooltipInfoComponent.ctorParameters = function () { return []; };
4662
4807
  TooltipInfoComponent.propDecorators = {
4663
- data: [{ type: i0.Input }]
4808
+ data: [{ type: i0.Input }],
4809
+ useDescriptionAsHTML: [{ type: i0.Input }]
4664
4810
  };
4665
4811
 
4666
4812
  var TooltipInfoSimpleComponent = /** @class */ (function () {