@datarailsshared/datarailsshared 1.4.175 → 1.4.177

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.
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { EventEmitter, Component, ViewEncapsulation, Input, Output, HostBinding, ChangeDetectionStrategy, ChangeDetectorRef, forwardRef, ElementRef, Inject, PLATFORM_ID, ContentChildren, Renderer2, ViewChild, ContentChild, Pipe, TemplateRef, HostListener, Directive, ComponentFactoryResolver, ViewContainerRef, Injector, Injectable, Host, Optional, NgModule } from '@angular/core';
3
- import { DateAdapter, MAT_DATE_LOCALE, MAT_DATE_FORMATS } from '@angular/material/core';
3
+ import { DateAdapter, MAT_DATE_LOCALE, MAT_DATE_FORMATS, MatNativeDateModule } from '@angular/material/core';
4
4
  import { MomentDateAdapter, MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular/material-moment-adapter';
5
5
  import * as _ from 'lodash';
6
6
  import { find, map, merge, forEach, some, orderBy, cloneDeep, filter as filter$1, indexOf, reduce, isObject, isNil, isNumber, includes } from 'lodash';
@@ -269,10 +269,10 @@ class MonthTagComponent extends AnyTagComponent {
269
269
  this.lockedDate = [];
270
270
  }
271
271
  get isLocked() {
272
- return this.date ? !this.dateFilter(moment$7.unix(this.date).utc()) : false;
272
+ return this.date ? !this.dateFilter(moment$7.unix(this.date)) : false;
273
273
  }
274
274
  initDate() {
275
- this.date = this.defaultValue || moment$7().utc().unix();
275
+ this.date = this.defaultValue || moment$7().unix();
276
276
  this.dateObj.date = this.date;
277
277
  }
278
278
  initName() {
@@ -281,7 +281,7 @@ class MonthTagComponent extends AnyTagComponent {
281
281
  }
282
282
  }
283
283
  chosenTagHandler(value) {
284
- const resultDate = moment$7.unix(value).utc();
284
+ const resultDate = moment$7.unix(value);
285
285
  resultDate.hour(12);
286
286
  const resultTag = {
287
287
  name: this.name,
@@ -335,7 +335,7 @@ class QuarterTagComponent extends AnyTagComponent {
335
335
  }
336
336
  get isLocked() {
337
337
  return this.quarters
338
- ? this.quarters.some((quarter) => !this.dateFilter(moment$6.unix(quarter.value).utc()))
338
+ ? this.quarters.some((quarter) => !this.dateFilter(moment$6.unix(quarter.value)))
339
339
  : false;
340
340
  }
341
341
  ngOnInit() {
@@ -356,7 +356,7 @@ class QuarterTagComponent extends AnyTagComponent {
356
356
  }
357
357
  }
358
358
  chosenTagHandler(quarter) {
359
- const resultDate = moment$6.unix(quarter.value).utc();
359
+ const resultDate = moment$6.unix(quarter.value);
360
360
  const resultTag = {
361
361
  name: this.name,
362
362
  value: resultDate.unix(),
@@ -447,11 +447,11 @@ class WeekTagComponent extends AnyTagComponent {
447
447
  this.lockedDate = [];
448
448
  }
449
449
  get isLocked() {
450
- return this.date ? !this.dateFilter(moment$5.unix(this.date).utc()) : false;
450
+ return this.date ? !this.dateFilter(moment$5.unix(this.date)) : false;
451
451
  }
452
452
  ngOnInit() {
453
453
  this.initName();
454
- const timestamp = this.defaultValue || moment$5().utc().unix();
454
+ const timestamp = this.defaultValue || moment$5().unix();
455
455
  this.date = timestamp;
456
456
  this.dateObj.date = timestamp;
457
457
  this.chosenTagHandler(timestamp);
@@ -471,7 +471,7 @@ class WeekTagComponent extends AnyTagComponent {
471
471
  }
472
472
  ;
473
473
  chosenTagHandler(value) {
474
- const resultDate = moment$5.unix(value).utc();
474
+ const resultDate = moment$5.unix(value);
475
475
  const resultTag = {
476
476
  name: this.name,
477
477
  value: resultDate.unix(),
@@ -526,10 +526,10 @@ class YearTagComponent extends AnyTagComponent {
526
526
  this.lockedDate = [];
527
527
  }
528
528
  get isLocked() {
529
- return this.date ? !this.dateFilter(moment$4.unix(this.date).utc()) : false;
529
+ return this.date ? !this.dateFilter(moment$4.unix(this.date)) : false;
530
530
  }
531
531
  initDate() {
532
- this.date = this.defaultValue || moment$4().utc().unix();
532
+ this.date = this.defaultValue || moment$4().unix();
533
533
  this.dateObj.date = this.date;
534
534
  }
535
535
  initName() {
@@ -538,7 +538,7 @@ class YearTagComponent extends AnyTagComponent {
538
538
  }
539
539
  }
540
540
  chosenTagHandler(value) {
541
- const resultDate = moment$4.unix(value).utc();
541
+ const resultDate = moment$4.unix(value);
542
542
  resultDate.hour(12);
543
543
  const resultTag = {
544
544
  name: this.name,
@@ -829,10 +829,10 @@ class DayTagComponent extends AnyTagComponent {
829
829
  this.lockedDate = [];
830
830
  }
831
831
  get isLocked() {
832
- return this.date ? !this.dateFilter(moment$3.unix(this.date).utc()) : false;
832
+ return this.date ? !this.dateFilter(moment$3.unix(this.date)) : false;
833
833
  }
834
834
  initDate() {
835
- this.date = this.defaultValue || moment$3().utc().unix();
835
+ this.date = this.defaultValue || moment$3().unix();
836
836
  this.dateObj.date = this.date;
837
837
  }
838
838
  initName() {
@@ -841,7 +841,7 @@ class DayTagComponent extends AnyTagComponent {
841
841
  }
842
842
  }
843
843
  chosenTagHandler(value) {
844
- const date = moment$3.unix(value).utc();
844
+ const date = moment$3.unix(value);
845
845
  const resultTag = {
846
846
  name: this.name,
847
847
  value: date.unix(),
@@ -3679,6 +3679,17 @@ class ChatMessage {
3679
3679
  }
3680
3680
  }
3681
3681
 
3682
+ var BadgeStatus;
3683
+ (function (BadgeStatus) {
3684
+ BadgeStatus["INFO"] = "info";
3685
+ BadgeStatus["ERROR"] = "error";
3686
+ BadgeStatus["WARNING"] = "warning";
3687
+ BadgeStatus["SUCCESS"] = "success";
3688
+ BadgeStatus["REGULAR"] = "regular";
3689
+ BadgeStatus["PROGRESS"] = "progress";
3690
+ BadgeStatus["DOTTED"] = "dotted";
3691
+ })(BadgeStatus || (BadgeStatus = {}));
3692
+
3682
3693
  const allDateTags = {
3683
3694
  [TagsConfigSubType.YEAR]: {
3684
3695
  name: 'Date',
@@ -4970,6 +4981,7 @@ DrInputsModule.decorators = [
4970
4981
  ReactiveFormsModule,
4971
4982
  CommonModule,
4972
4983
  NgSelectModule,
4984
+ MatNativeDateModule,
4973
4985
  MatDatepickerModule,
4974
4986
  MatTooltipModule,
4975
4987
  DrTooltipModule
@@ -6166,11 +6178,50 @@ DrScenarioModule.decorators = [
6166
6178
  },] }
6167
6179
  ];
6168
6180
 
6181
+ class DrBadgeStatusComponent {
6182
+ constructor() {
6183
+ this.theme = BadgeStatus.REGULAR;
6184
+ }
6185
+ ngOnInit() {
6186
+ }
6187
+ }
6188
+ DrBadgeStatusComponent.decorators = [
6189
+ { type: Component, args: [{
6190
+ template: "<div class=\"badge-status\" [drTooltip]=\"tooltip\"\n [ngClass]=\"'badge-status--' + theme\">\n <i *ngIf=\"icon\" class=\"{{ icon }}\"></i>\n <span *ngIf=\"label\">{{ label }}</span>\n</div>\n",
6191
+ selector: 'dr-badge-status',
6192
+ encapsulation: ViewEncapsulation.None,
6193
+ styles: [".badge-status{display:flex;align-items:center;font-family:\"Poppins\",sans-serif;font-style:normal;font-size:\"Poppins\",sans-serif;font-weight:12px;line-height:20px;font-weight:600;height:24px;padding:2px 8px 2px 4px;border-radius:4px;cursor:pointer}.badge-status i{font-size:20px;margin-right:4px}.badge-status--info{color:#0b5af9;background:#E6EFFF}.badge-status--error{color:#bf1d30;background:#F7D9DC}.badge-status--warning{color:#ffb800;background:#FFEDBF}.badge-status--success{color:#03a678;background:#DBF5E6}.badge-status--regular{color:#7e828e;background:#F0F1F4}.badge-status--progress{color:#4646ce;background:#F2F2FB}.badge-status--dotted{color:#7e828e;background:transparent}.badge-status--dotted i{display:none}\n"]
6194
+ },] }
6195
+ ];
6196
+ DrBadgeStatusComponent.ctorParameters = () => [];
6197
+ DrBadgeStatusComponent.propDecorators = {
6198
+ theme: [{ type: Input }],
6199
+ icon: [{ type: Input }],
6200
+ label: [{ type: Input }],
6201
+ tooltip: [{ type: Input }]
6202
+ };
6203
+
6204
+ class DrBadgeStatusModule {
6205
+ }
6206
+ DrBadgeStatusModule.decorators = [
6207
+ { type: NgModule, args: [{
6208
+ imports: [
6209
+ CommonModule,
6210
+ DrTooltipModule
6211
+ ],
6212
+ exports: [DrBadgeStatusComponent],
6213
+ providers: [],
6214
+ declarations: [
6215
+ DrBadgeStatusComponent
6216
+ ],
6217
+ },] }
6218
+ ];
6219
+
6169
6220
  /* components */
6170
6221
 
6171
6222
  /**
6172
6223
  * Generated bundle index. Do not edit.
6173
6224
  */
6174
6225
 
6175
- export { AnyTagComponent, CHAT_MESSAGE_TYPE, CalendarView, ChatMessage, ChatRole, CheckboxComponent, CustomDateFormat, DIALOG_BUTTON_LABEL, DIALOG_FIELD_TYPE, DIALOG_SIZE, DateFromats, DatePickerPeriodPosition, DateTagComponent, DateTagModule, DateTags, DayTagComponent, DialogService, DrAccordionComponent, DrAccordionItemBodyComponent, DrAccordionItemComponent, DrAccordionItemHeaderComponent, DrAccordionModule, DrAvatarComponent, DrAvatarModule, DrAvatarPipe, DrButtonComponent, DrChatModule, DrDetailsListComponent, DrDetailsListModule, DrDialogModule, DrDropdownComponent, DrDropdownDirective, DrDropdownItemShowPipe, DrDropdownModule, DrDropdownPositionDirective, DrDropdownService, DrErrorComponent, DrErrorModule, DrInputComponent, DrInputsModule, DrLayoutBodyComponent, DrLayoutComponent, DrLayoutHeaderComponent, DrLayoutModule, DrModelDebounceChangeDirective, DrPopoverAlignmentDimension, DrPopoverComponent, DrPopoverDirective, DrPopoverModule, DrPopoverRef, DrPopoverService, DrScenarioModule, DrSelectComponent, DrSharedUtils, DrSpinnerComponent, DrSpinnerDirective, DrSpinnerModule, DrStepperModule, DrTabComponent, DrTabsComponent, DrTabsModule, DrTagComponent, DrTagModule, DrToggleButtonComponent, DrToggleComponent, DrTooltipDirective, DrTooltipModule, ForecastTagComponent, IMAGE_TYPES, ListTagComponent, ListTagModule, MonthTagComponent, QuarterTagComponent, RadioButtonComponent, RadioGroupComponent, Scenario, ScenarioService, SpinnerSize, SpinnerType, TagTypes, TimeframeOption, ToggleButtonMode, TooltipComponent, TooltipPosition, WeekTagComponent, YearTagComponent, components$2 as ɵa, POPUP_ANIMATION as ɵb, DrChatCustomMessageDirective as ɵba, DrScenarioConfigurationComponent as ɵbb, DrScenarioTagConfigurationComponent as ɵbc, DrDatePickerComponent as ɵc, DrDatePickerService as ɵd, DrDatePickerWithTimeframeComponent as ɵe, DrDatePickerFormatDirective as ɵf, DrDatePickerCustomHeaderComponent as ɵg, DrShowTimeframePipe as ɵh, DrSelectAddItemComponent as ɵi, TooltipInfoComponent as ɵj, TooltipInfoSimpleComponent as ɵk, TooltipNoBodyComponent as ɵl, TooltipProcessDefaultComponent as ɵm, DrDynamicTagModule as ɵn, DrDynamicTagComponent as ɵo, StepperComponent as ɵp, DialogWrapperComponent as ɵq, DialogModalWrapperComponent as ɵr, DrChatComponent as ɵs, DrChatCustomMessageService as ɵt, DrChatMessageComponent as ɵu, DrChatFormComponent as ɵv, DrChatSuggestionsComponent as ɵw, DrChatMessageTextComponent as ɵx, DrChatMessageFileComponent as ɵy, DrDotFlashingComponent as ɵz };
6226
+ export { AnyTagComponent, BadgeStatus, CHAT_MESSAGE_TYPE, CalendarView, ChatMessage, ChatRole, CheckboxComponent, CustomDateFormat, DIALOG_BUTTON_LABEL, DIALOG_FIELD_TYPE, DIALOG_SIZE, DateFromats, DatePickerPeriodPosition, DateTagComponent, DateTagModule, DateTags, DayTagComponent, DialogService, DrAccordionComponent, DrAccordionItemBodyComponent, DrAccordionItemComponent, DrAccordionItemHeaderComponent, DrAccordionModule, DrAvatarComponent, DrAvatarModule, DrAvatarPipe, DrBadgeStatusModule, DrButtonComponent, DrChatModule, DrDetailsListComponent, DrDetailsListModule, DrDialogModule, DrDropdownComponent, DrDropdownDirective, DrDropdownItemShowPipe, DrDropdownModule, DrDropdownPositionDirective, DrDropdownService, DrErrorComponent, DrErrorModule, DrInputComponent, DrInputsModule, DrLayoutBodyComponent, DrLayoutComponent, DrLayoutHeaderComponent, DrLayoutModule, DrModelDebounceChangeDirective, DrPopoverAlignmentDimension, DrPopoverComponent, DrPopoverDirective, DrPopoverModule, DrPopoverRef, DrPopoverService, DrScenarioModule, DrSelectComponent, DrSharedUtils, DrSpinnerComponent, DrSpinnerDirective, DrSpinnerModule, DrStepperModule, DrTabComponent, DrTabsComponent, DrTabsModule, DrTagComponent, DrTagModule, DrToggleButtonComponent, DrToggleComponent, DrTooltipDirective, DrTooltipModule, ForecastTagComponent, IMAGE_TYPES, ListTagComponent, ListTagModule, MonthTagComponent, QuarterTagComponent, RadioButtonComponent, RadioGroupComponent, Scenario, ScenarioService, SpinnerSize, SpinnerType, TagTypes, TimeframeOption, ToggleButtonMode, TooltipComponent, TooltipPosition, WeekTagComponent, YearTagComponent, components$2 as ɵa, POPUP_ANIMATION as ɵb, DrChatCustomMessageDirective as ɵba, DrScenarioConfigurationComponent as ɵbb, DrScenarioTagConfigurationComponent as ɵbc, DrBadgeStatusComponent as ɵbd, DrDatePickerComponent as ɵc, DrDatePickerService as ɵd, DrDatePickerWithTimeframeComponent as ɵe, DrDatePickerFormatDirective as ɵf, DrDatePickerCustomHeaderComponent as ɵg, DrShowTimeframePipe as ɵh, DrSelectAddItemComponent as ɵi, TooltipInfoComponent as ɵj, TooltipInfoSimpleComponent as ɵk, TooltipNoBodyComponent as ɵl, TooltipProcessDefaultComponent as ɵm, DrDynamicTagModule as ɵn, DrDynamicTagComponent as ɵo, StepperComponent as ɵp, DialogWrapperComponent as ɵq, DialogModalWrapperComponent as ɵr, DrChatComponent as ɵs, DrChatCustomMessageService as ɵt, DrChatMessageComponent as ɵu, DrChatFormComponent as ɵv, DrChatSuggestionsComponent as ɵw, DrChatMessageTextComponent as ɵx, DrChatMessageFileComponent as ɵy, DrDotFlashingComponent as ɵz };
6176
6227
  //# sourceMappingURL=datarailsshared-datarailsshared.js.map