@colijnit/corecomponents_v12 261.20.6 → 261.20.7

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.
@@ -10,7 +10,7 @@ import { Subject, merge, fromEvent, BehaviorSubject } from 'rxjs';
10
10
  import * as i1$1 from '@angular/common';
11
11
  import { CommonModule, DatePipe } from '@angular/common';
12
12
  import { auditTime } from 'rxjs/operators';
13
- import { PlaneGeometry, Mesh, Vector2, Vector3, MeshPhongMaterial, SpotLight, PerspectiveCamera, Scene, Color, AmbientLight, Fog, WebGLRenderer, Box3 } from 'three';
13
+ import { PlaneGeometry, Mesh, Vector2, Vector3, MeshPhongMaterial, SpotLight, PerspectiveCamera, Scene, Color as Color$1, AmbientLight, Fog, WebGLRenderer, Box3 } from 'three';
14
14
  import { CSS3DObject, CSS3DRenderer } from 'three/examples/jsm/renderers/CSS3DRenderer.js';
15
15
  import TWEEN from '@tweenjs/tween.js';
16
16
  import 'hammerjs';
@@ -2238,7 +2238,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
2238
2238
  */
2239
2239
  class BaseInputComponent {
2240
2240
  changeDetector;
2241
- componentFactoryResolver;
2242
2241
  overlayService;
2243
2242
  formUserChangeListener;
2244
2243
  ngZoneWrapper;
@@ -2549,9 +2548,8 @@ class BaseInputComponent {
2549
2548
  _canSaveOrCancel = false;
2550
2549
  _commitButtonsComponentRef;
2551
2550
  _validationComponentRef;
2552
- constructor(changeDetector, componentFactoryResolver, overlayService, formUserChangeListener, ngZoneWrapper, elementRef) {
2551
+ constructor(changeDetector, overlayService, formUserChangeListener, ngZoneWrapper, elementRef) {
2553
2552
  this.changeDetector = changeDetector;
2554
- this.componentFactoryResolver = componentFactoryResolver;
2555
2553
  this.overlayService = overlayService;
2556
2554
  this.formUserChangeListener = formUserChangeListener;
2557
2555
  this.ngZoneWrapper = ngZoneWrapper;
@@ -2987,7 +2985,7 @@ class BaseInputComponent {
2987
2985
  }
2988
2986
  }
2989
2987
  }
2990
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BaseInputComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ComponentFactoryResolver }, { token: OverlayService }, { token: FormInputUserModelChangeListenerService, optional: true }, { token: NgZoneWrapperService, optional: true }, { token: i0.ElementRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
2988
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BaseInputComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: OverlayService }, { token: FormInputUserModelChangeListenerService, optional: true }, { token: NgZoneWrapperService, optional: true }, { token: i0.ElementRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
2991
2989
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: BaseInputComponent, isStandalone: true, inputs: { showSaveCancel: "showSaveCancel", model: "model", label: "label", noValidation: "noValidation", initFocus: "initFocus", noClickFocus: "noClickFocus", businessObjectId: "businessObjectId", disabled: "disabled", maxLength: "maxLength", defaultValue: "defaultValue", forcedMaxLength: "forcedMaxLength", readonly: "readonly", forceReadonly: "forceReadonly", required: "required", forceRequired: "forceRequired", validators: "validators", asyncValidators: "asyncValidators", hidden: "hidden", decimals: "decimals", icon: "icon", customCssClass: "customCssClass", redErrorBackground: "redErrorBackground", myFormInputInstance: "myFormInputInstance", commitOnBlur: "commitOnBlur", customWidth: "customWidth", customHeight: "customHeight", noTriangleGraphic: "noTriangleGraphic", keepFocussed: "keepFocussed", halfWidth: "halfWidth", fullWidth: "fullWidth", excludeUserModelChange: "excludeUserModelChange", noFormGroupControl: "noFormGroupControl" }, outputs: { nativeBlur: "nativeBlur", blur: "blur", enter: "enter", focus: "focus", keyDown: "keyDown", keyUp: "keyUp", modelChange: "modelChange", selectedValueChange: "selectedValueChange", userModelChange: "userModelChange", hiddenChange: "hiddenChange", cancelClicked: "cancelClicked" }, host: { listeners: { "click": "onClick($event)", "focusin": "onFocusIn()", "keydown": "handleKeyDown($event)" }, properties: { "class.hidden": "this.hidden", "class.cc-red-error-background": "this.redErrorBackground", "class.cc-input-focused": "this.focused", "class.form-input": "this.formInput", "class.custom-width": "this.customWidth", "class.custom-height": "this.customHeight", "class.half-width": "this.halfWidth", "class.full-width-important": "this.fullWidth", "class.form-submitted": "this.formSubmitted", "class.hasnolabel": "this.hasNoLabel", "class.hasvalue": "this.hasValue", "class.invalid": "this.invalid", "class.disabled": "this.isDisabled", "class.read-only": "this.isReadonly", "class.required": "this.isRequired", "class.cc-touched-invalid": "this.touchedInvalid", "class.valid": "this.valid", "class.no-validation": "this.validationDisabled" } }, viewQueries: [{ propertyName: "validationErrorContainer", first: true, predicate: ["validationError"], descendants: true, read: ViewContainerRef }, { propertyName: "_ngModel", first: true, predicate: NgModel, descendants: true, static: true }], ngImport: i0 });
2992
2990
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BaseInputComponent });
2993
2991
  }
@@ -3031,7 +3029,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
3031
3029
  type: Directive
3032
3030
  }, {
3033
3031
  type: Injectable
3034
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ComponentFactoryResolver }, { type: OverlayService }, { type: FormInputUserModelChangeListenerService, decorators: [{
3032
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: OverlayService }, { type: FormInputUserModelChangeListenerService, decorators: [{
3035
3033
  type: Optional
3036
3034
  }] }, { type: NgZoneWrapperService, decorators: [{
3037
3035
  type: Optional
@@ -4929,7 +4927,7 @@ class Carousel3dComponent {
4929
4927
  _initScene() {
4930
4928
  this._sceneCss = new Scene();
4931
4929
  this._scene = new Scene();
4932
- this._scene.background = new Color(this._backgroundColor);
4930
+ this._scene.background = new Color$1(this._backgroundColor);
4933
4931
  if (this._ambientLight) {
4934
4932
  const light = new AmbientLight(0xaaaaaa); // soft white light
4935
4933
  this._scene.add(light);
@@ -6624,10 +6622,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
6624
6622
 
6625
6623
  class InputCheckboxComponent extends BaseInputComponent {
6626
6624
  formComponent;
6627
- iconCacheService;
6628
6625
  changeDetector;
6629
6626
  overlayService;
6630
- componentFactoryResolver;
6631
6627
  formUserChangeListener;
6632
6628
  ngZoneWrapper;
6633
6629
  elementRef;
@@ -6640,13 +6636,11 @@ class InputCheckboxComponent extends BaseInputComponent {
6640
6636
  handleClick(event) {
6641
6637
  this.handleModelChange(event);
6642
6638
  }
6643
- constructor(formComponent, iconCacheService, changeDetector, overlayService, componentFactoryResolver, formUserChangeListener, ngZoneWrapper, elementRef) {
6644
- super(changeDetector, componentFactoryResolver, overlayService, formUserChangeListener, ngZoneWrapper, elementRef);
6639
+ constructor(formComponent, changeDetector, overlayService, formUserChangeListener, ngZoneWrapper, elementRef) {
6640
+ super(changeDetector, overlayService, formUserChangeListener, ngZoneWrapper, elementRef);
6645
6641
  this.formComponent = formComponent;
6646
- this.iconCacheService = iconCacheService;
6647
6642
  this.changeDetector = changeDetector;
6648
6643
  this.overlayService = overlayService;
6649
- this.componentFactoryResolver = componentFactoryResolver;
6650
6644
  this.formUserChangeListener = formUserChangeListener;
6651
6645
  this.ngZoneWrapper = ngZoneWrapper;
6652
6646
  this.elementRef = elementRef;
@@ -6658,7 +6652,7 @@ class InputCheckboxComponent extends BaseInputComponent {
6658
6652
  this.setModel(!this.model);
6659
6653
  }
6660
6654
  }
6661
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputCheckboxComponent, deps: [{ token: FormComponent, optional: true }, { token: IconCacheService }, { token: i0.ChangeDetectorRef }, { token: OverlayService }, { token: i0.ComponentFactoryResolver }, { token: FormInputUserModelChangeListenerService }, { token: NgZoneWrapperService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
6655
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputCheckboxComponent, deps: [{ token: FormComponent, optional: true }, { token: i0.ChangeDetectorRef }, { token: OverlayService }, { token: FormInputUserModelChangeListenerService }, { token: NgZoneWrapperService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
6662
6656
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: InputCheckboxComponent, isStandalone: false, selector: "co-input-checkbox", inputs: { cssClass: "cssClass", clickableLabel: "clickableLabel" }, outputs: { modelChange: "modelChange" }, host: { listeners: { "click": "handleClick($event)" }, properties: { "class.co-input-checkbox": "this.showClass" } }, providers: [
6663
6657
  OverlayService,
6664
6658
  {
@@ -6668,30 +6662,30 @@ class InputCheckboxComponent extends BaseInputComponent {
6668
6662
  provide: BaseInputComponent,
6669
6663
  useExisting: InputCheckboxComponent
6670
6664
  }
6671
- ], usesInheritance: true, ngImport: i0, template: `
6672
- <div class="checkbox" (click)="handleModelChange($event)" [class.checked]="model">
6673
- <div class="checkmark" [class.show]="model"></div>
6674
- </div>
6675
- @if (label) {
6676
- <div class="label" [class.clickable]="clickableLabel" [textContent]="label"
6677
- (click)="clickableLabel ? handleModelChange($event) : true"></div>
6678
- }
6679
- <input #input [ngModel]="model" [readonly]="readonly" [disabled]="disabled" type="hidden">
6665
+ ], usesInheritance: true, ngImport: i0, template: `
6666
+ <div class="checkbox" (click)="handleModelChange($event)" [class.checked]="model">
6667
+ <div class="checkmark" [class.show]="model"></div>
6668
+ </div>
6669
+ @if (label) {
6670
+ <div class="label" [class.clickable]="clickableLabel" [textContent]="label"
6671
+ (click)="clickableLabel ? handleModelChange($event) : true"></div>
6672
+ }
6673
+ <input #input [ngModel]="model" [readonly]="readonly" [disabled]="disabled" type="hidden">
6680
6674
  `, isInline: true, dependencies: [{ kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
6681
6675
  }
6682
6676
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputCheckboxComponent, decorators: [{
6683
6677
  type: Component,
6684
6678
  args: [{
6685
6679
  selector: 'co-input-checkbox',
6686
- template: `
6687
- <div class="checkbox" (click)="handleModelChange($event)" [class.checked]="model">
6688
- <div class="checkmark" [class.show]="model"></div>
6689
- </div>
6690
- @if (label) {
6691
- <div class="label" [class.clickable]="clickableLabel" [textContent]="label"
6692
- (click)="clickableLabel ? handleModelChange($event) : true"></div>
6693
- }
6694
- <input #input [ngModel]="model" [readonly]="readonly" [disabled]="disabled" type="hidden">
6680
+ template: `
6681
+ <div class="checkbox" (click)="handleModelChange($event)" [class.checked]="model">
6682
+ <div class="checkmark" [class.show]="model"></div>
6683
+ </div>
6684
+ @if (label) {
6685
+ <div class="label" [class.clickable]="clickableLabel" [textContent]="label"
6686
+ (click)="clickableLabel ? handleModelChange($event) : true"></div>
6687
+ }
6688
+ <input #input [ngModel]="model" [readonly]="readonly" [disabled]="disabled" type="hidden">
6695
6689
  `,
6696
6690
  providers: [
6697
6691
  OverlayService,
@@ -6709,7 +6703,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
6709
6703
  }]
6710
6704
  }], ctorParameters: () => [{ type: FormComponent, decorators: [{
6711
6705
  type: Optional
6712
- }] }, { type: IconCacheService }, { type: i0.ChangeDetectorRef }, { type: OverlayService }, { type: i0.ComponentFactoryResolver }, { type: FormInputUserModelChangeListenerService }, { type: NgZoneWrapperService }, { type: i0.ElementRef }], propDecorators: { cssClass: [{
6706
+ }] }, { type: i0.ChangeDetectorRef }, { type: OverlayService }, { type: FormInputUserModelChangeListenerService }, { type: NgZoneWrapperService }, { type: i0.ElementRef }], propDecorators: { cssClass: [{
6713
6707
  type: Input
6714
6708
  }], clickableLabel: [{
6715
6709
  type: Input
@@ -7613,10 +7607,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7613
7607
 
7614
7608
  class InputTextComponent extends BaseInputComponent {
7615
7609
  formComponent;
7616
- injector;
7617
7610
  changeDetector;
7618
7611
  overlayService;
7619
- componentFactoryResolver;
7620
7612
  formUserChangeListener;
7621
7613
  ngZoneWrapper;
7622
7614
  elementRef;
@@ -7705,13 +7697,11 @@ class InputTextComponent extends BaseInputComponent {
7705
7697
  isWeekInputMode = false;
7706
7698
  _isLeftIconMouseDown = false;
7707
7699
  _isRightIconMouseDown = false;
7708
- constructor(formComponent, injector, changeDetector, overlayService, componentFactoryResolver, formUserChangeListener, ngZoneWrapper, elementRef) {
7709
- super(changeDetector, componentFactoryResolver, overlayService, formUserChangeListener, ngZoneWrapper, elementRef);
7700
+ constructor(formComponent, changeDetector, overlayService, formUserChangeListener, ngZoneWrapper, elementRef) {
7701
+ super(changeDetector, overlayService, formUserChangeListener, ngZoneWrapper, elementRef);
7710
7702
  this.formComponent = formComponent;
7711
- this.injector = injector;
7712
7703
  this.changeDetector = changeDetector;
7713
7704
  this.overlayService = overlayService;
7714
- this.componentFactoryResolver = componentFactoryResolver;
7715
7705
  this.formUserChangeListener = formUserChangeListener;
7716
7706
  this.ngZoneWrapper = ngZoneWrapper;
7717
7707
  this.elementRef = elementRef;
@@ -7874,7 +7864,7 @@ class InputTextComponent extends BaseInputComponent {
7874
7864
  this.model = targetDate.toISOString().substring(0, 10);
7875
7865
  this.modelChange.emit(this.model);
7876
7866
  }
7877
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputTextComponent, deps: [{ token: FormComponent, optional: true }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: OverlayService }, { token: i0.ComponentFactoryResolver }, { token: FormInputUserModelChangeListenerService }, { token: NgZoneWrapperService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
7867
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputTextComponent, deps: [{ token: FormComponent, optional: true }, { token: i0.ChangeDetectorRef }, { token: OverlayService }, { token: FormInputUserModelChangeListenerService }, { token: NgZoneWrapperService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
7878
7868
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: InputTextComponent, isStandalone: false, selector: "co-input-text", inputs: { useContent: "useContent", placeholder: "placeholder", align: "align", type: "type", formatPipe: "formatPipe", min: "min", max: "max", pattern: "pattern", digitsOnly: "digitsOnly", excludePlusMinus: "excludePlusMinus", showClearButton: "showClearButton", keyDownWhiteList: "keyDownWhiteList", showPlaceholderOnFocus: "showPlaceholderOnFocus", leftIcon: "leftIcon", rightIcon: "rightIcon", leftIconData: "leftIconData", rightIconData: "rightIconData", selectOnFocus: "selectOnFocus", emptyPlace: "emptyPlace", firstDayOfWeek: "firstDayOfWeek", noStyle: "noStyle", hideArrowButtons: "hideArrowButtons", model: "model" }, outputs: { leftIconClick: "leftIconClick", leftIconMouseDown: "leftIconMouseDown", leftIconMouseUp: "leftIconMouseUp", rightIconClick: "rightIconClick", rightIconMouseDown: "rightIconMouseDown", rightIconMouseUp: "rightIconMouseUp", clearIconClick: "clearIconClick", isFocused: "isFocused" }, host: { listeners: { "document:pointerup": "handleDocumentPointerUp($event)", "document:pointercancel": "handleDocumentPointerUp($event)" }, properties: { "class.no-style": "this.noStyle", "class.hide-arrows": "this.hideArrowButtons", "class.isDate": "this.isDate", "class.co-input-text": "this.showClass", "class.has-left-icon": "this.hasLeftIcon", "class.has-right-icon": "this.hasRightIcon", "class.has-own-label": "this.hasOwnLabel" } }, providers: [
7879
7869
  OverlayService, {
7880
7870
  provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
@@ -7883,152 +7873,152 @@ class InputTextComponent extends BaseInputComponent {
7883
7873
  provide: BaseInputComponent,
7884
7874
  useExisting: InputTextComponent
7885
7875
  }
7886
- ], usesInheritance: true, ngImport: i0, template: `
7887
- <div class="input-text-wrapper" overlayParent #parentForOverlay="overlayParent">
7888
- @if (leftIcon || leftIconData) {
7889
- <co-icon class="input-text-left-icon" [icon]="leftIcon" [iconData]="leftIconData"
7890
- (click)="handleLeftIconClick($event)" (mousedown)="handleLeftIconMouseDown($event)"
7891
- (mouseup)="handleLeftIconMouseUp($event)"></co-icon>
7892
- }
7893
- @if (leftIcon || leftIconData) {
7894
- <div class="spacer left-icon"></div>
7895
- }
7896
- <div class="input-wrapper">
7897
- @if (showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)) {
7898
- <label
7899
- [textContent]="placeholder"></label>
7900
- }
7901
- @if (!focused && !useContent && formatPipe) {
7902
- <span class="input-text-formatted"
7903
- [class.show]="!focused && !useContent && formatPipe"
7904
- [ngClass]="align"
7905
- [textContent]="pipedModel"
7906
- (click)="handleDoFocus($event)"
7907
- ></span>
7908
- }
7909
- <input [class.show]="focused || !formatPipe" #input
7910
- [class.input-input-hidden]="useContent"
7911
- [ngClass]="align"
7912
- [type]="isWeekInputMode ? 'text' : (isFocusedOnDate || (hasValue && emptyPlace)) ? 'date' : (digitsOnly ? 'number' : (type === 'date' ? 'text' : type))"
7913
- [placeholder]="type === 'date' && !isFocusedOnDate ? '' : ''"
7914
- [pattern]="type === 'date' ? pattern : undefined"
7915
- [ngModel]="model"
7916
- [min]="(type === 'number' || type === 'date') && this.min ? this.min : undefined"
7917
- [max]="(type === 'number' || type === 'date') && this.max ? this.max : undefined"
7918
- [readonly]="readonly"
7919
- [required]="required"
7920
- (ngModelChange)="modelChange.emit($event)"
7921
- (keydown)="handleKeyDownInput($event)"
7922
- (keyup)="keyUp.emit($event)"
7923
- (focusin)="handleInputFocus($event)"
7924
- (focusout)="handleBlur($event)"
7925
- >
7926
- @if (useContent) {
7927
- <div class="input-content-wrapper">
7928
- <ng-content></ng-content>
7929
- </div>
7930
- }
7931
- <co-icon [class.show]="showClearButton && hasValue && !readonly" class="input-text-clear-button"
7932
- [icon]="icons.CrossSkinny" (click)="clearInput($event)"></co-icon>
7933
- <div class="required-indicator"></div>
7934
- </div>
7935
- @if (rightIcon || rightIconData) {
7936
- <div class="spacer right-icon"></div>
7937
- }
7938
- @if (rightIcon || rightIconData) {
7939
- <co-icon class="input-text-right-icon" [icon]="rightIcon"
7940
- [iconData]="rightIconData"
7941
- (click)="handleRightIconClick($event)"
7942
- (pointerdown)="handleRightIconPointerDown($event)"
7943
- (pointerup)="handleRightIconPointerUp($event)"
7944
- (pointercancel)="handleRightIconPointerUp($event)"></co-icon>
7945
- }
7946
- </div>
7947
- <!--
7948
- <co-commit-buttons *ngIf="showSaveCancel && focused && canSaveOrCancel"
7949
- [committing]="committing"
7950
- [commitFinished]="commitFinished"
7951
- (commitClick)="commitClick($event)"
7952
- (cancelClick)="cancelClick($event)"
7953
- >
7954
- </co-commit-buttons>
7955
- -->
7876
+ ], usesInheritance: true, ngImport: i0, template: `
7877
+ <div class="input-text-wrapper" overlayParent #parentForOverlay="overlayParent">
7878
+ @if (leftIcon || leftIconData) {
7879
+ <co-icon class="input-text-left-icon" [icon]="leftIcon" [iconData]="leftIconData"
7880
+ (click)="handleLeftIconClick($event)" (mousedown)="handleLeftIconMouseDown($event)"
7881
+ (mouseup)="handleLeftIconMouseUp($event)"></co-icon>
7882
+ }
7883
+ @if (leftIcon || leftIconData) {
7884
+ <div class="spacer left-icon"></div>
7885
+ }
7886
+ <div class="input-wrapper">
7887
+ @if (showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)) {
7888
+ <label
7889
+ [textContent]="placeholder"></label>
7890
+ }
7891
+ @if (!focused && !useContent && formatPipe) {
7892
+ <span class="input-text-formatted"
7893
+ [class.show]="!focused && !useContent && formatPipe"
7894
+ [ngClass]="align"
7895
+ [textContent]="pipedModel"
7896
+ (click)="handleDoFocus($event)"
7897
+ ></span>
7898
+ }
7899
+ <input [class.show]="focused || !formatPipe" #input
7900
+ [class.input-input-hidden]="useContent"
7901
+ [ngClass]="align"
7902
+ [type]="isWeekInputMode ? 'text' : (isFocusedOnDate || (hasValue && emptyPlace)) ? 'date' : (digitsOnly ? 'number' : (type === 'date' ? 'text' : type))"
7903
+ [placeholder]="type === 'date' && !isFocusedOnDate ? '' : ''"
7904
+ [pattern]="type === 'date' ? pattern : undefined"
7905
+ [ngModel]="model"
7906
+ [min]="(type === 'number' || type === 'date') && this.min ? this.min : undefined"
7907
+ [max]="(type === 'number' || type === 'date') && this.max ? this.max : undefined"
7908
+ [readonly]="readonly"
7909
+ [required]="required"
7910
+ (ngModelChange)="modelChange.emit($event)"
7911
+ (keydown)="handleKeyDownInput($event)"
7912
+ (keyup)="keyUp.emit($event)"
7913
+ (focusin)="handleInputFocus($event)"
7914
+ (focusout)="handleBlur($event)"
7915
+ >
7916
+ @if (useContent) {
7917
+ <div class="input-content-wrapper">
7918
+ <ng-content></ng-content>
7919
+ </div>
7920
+ }
7921
+ <co-icon [class.show]="showClearButton && hasValue && !readonly" class="input-text-clear-button"
7922
+ [icon]="icons.CrossSkinny" (click)="clearInput($event)"></co-icon>
7923
+ <div class="required-indicator"></div>
7924
+ </div>
7925
+ @if (rightIcon || rightIconData) {
7926
+ <div class="spacer right-icon"></div>
7927
+ }
7928
+ @if (rightIcon || rightIconData) {
7929
+ <co-icon class="input-text-right-icon" [icon]="rightIcon"
7930
+ [iconData]="rightIconData"
7931
+ (click)="handleRightIconClick($event)"
7932
+ (pointerdown)="handleRightIconPointerDown($event)"
7933
+ (pointerup)="handleRightIconPointerUp($event)"
7934
+ (pointercancel)="handleRightIconPointerUp($event)"></co-icon>
7935
+ }
7936
+ </div>
7937
+ <!--
7938
+ <co-commit-buttons *ngIf="showSaveCancel && focused && canSaveOrCancel"
7939
+ [committing]="committing"
7940
+ [commitFinished]="commitFinished"
7941
+ (commitClick)="commitClick($event)"
7942
+ (cancelClick)="cancelClick($event)"
7943
+ >
7944
+ </co-commit-buttons>
7945
+ -->
7956
7946
  `, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i5.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "directive", type: OverlayParentDirective, selector: "[overlayParent]", exportAs: ["overlayParent"] }], encapsulation: i0.ViewEncapsulation.None });
7957
7947
  }
7958
7948
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputTextComponent, decorators: [{
7959
7949
  type: Component,
7960
7950
  args: [{
7961
7951
  selector: 'co-input-text',
7962
- template: `
7963
- <div class="input-text-wrapper" overlayParent #parentForOverlay="overlayParent">
7964
- @if (leftIcon || leftIconData) {
7965
- <co-icon class="input-text-left-icon" [icon]="leftIcon" [iconData]="leftIconData"
7966
- (click)="handleLeftIconClick($event)" (mousedown)="handleLeftIconMouseDown($event)"
7967
- (mouseup)="handleLeftIconMouseUp($event)"></co-icon>
7968
- }
7969
- @if (leftIcon || leftIconData) {
7970
- <div class="spacer left-icon"></div>
7971
- }
7972
- <div class="input-wrapper">
7973
- @if (showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)) {
7974
- <label
7975
- [textContent]="placeholder"></label>
7976
- }
7977
- @if (!focused && !useContent && formatPipe) {
7978
- <span class="input-text-formatted"
7979
- [class.show]="!focused && !useContent && formatPipe"
7980
- [ngClass]="align"
7981
- [textContent]="pipedModel"
7982
- (click)="handleDoFocus($event)"
7983
- ></span>
7984
- }
7985
- <input [class.show]="focused || !formatPipe" #input
7986
- [class.input-input-hidden]="useContent"
7987
- [ngClass]="align"
7988
- [type]="isWeekInputMode ? 'text' : (isFocusedOnDate || (hasValue && emptyPlace)) ? 'date' : (digitsOnly ? 'number' : (type === 'date' ? 'text' : type))"
7989
- [placeholder]="type === 'date' && !isFocusedOnDate ? '' : ''"
7990
- [pattern]="type === 'date' ? pattern : undefined"
7991
- [ngModel]="model"
7992
- [min]="(type === 'number' || type === 'date') && this.min ? this.min : undefined"
7993
- [max]="(type === 'number' || type === 'date') && this.max ? this.max : undefined"
7994
- [readonly]="readonly"
7995
- [required]="required"
7996
- (ngModelChange)="modelChange.emit($event)"
7997
- (keydown)="handleKeyDownInput($event)"
7998
- (keyup)="keyUp.emit($event)"
7999
- (focusin)="handleInputFocus($event)"
8000
- (focusout)="handleBlur($event)"
8001
- >
8002
- @if (useContent) {
8003
- <div class="input-content-wrapper">
8004
- <ng-content></ng-content>
8005
- </div>
8006
- }
8007
- <co-icon [class.show]="showClearButton && hasValue && !readonly" class="input-text-clear-button"
8008
- [icon]="icons.CrossSkinny" (click)="clearInput($event)"></co-icon>
8009
- <div class="required-indicator"></div>
8010
- </div>
8011
- @if (rightIcon || rightIconData) {
8012
- <div class="spacer right-icon"></div>
8013
- }
8014
- @if (rightIcon || rightIconData) {
8015
- <co-icon class="input-text-right-icon" [icon]="rightIcon"
8016
- [iconData]="rightIconData"
8017
- (click)="handleRightIconClick($event)"
8018
- (pointerdown)="handleRightIconPointerDown($event)"
8019
- (pointerup)="handleRightIconPointerUp($event)"
8020
- (pointercancel)="handleRightIconPointerUp($event)"></co-icon>
8021
- }
8022
- </div>
8023
- <!--
8024
- <co-commit-buttons *ngIf="showSaveCancel && focused && canSaveOrCancel"
8025
- [committing]="committing"
8026
- [commitFinished]="commitFinished"
8027
- (commitClick)="commitClick($event)"
8028
- (cancelClick)="cancelClick($event)"
8029
- >
8030
- </co-commit-buttons>
8031
- -->
7952
+ template: `
7953
+ <div class="input-text-wrapper" overlayParent #parentForOverlay="overlayParent">
7954
+ @if (leftIcon || leftIconData) {
7955
+ <co-icon class="input-text-left-icon" [icon]="leftIcon" [iconData]="leftIconData"
7956
+ (click)="handleLeftIconClick($event)" (mousedown)="handleLeftIconMouseDown($event)"
7957
+ (mouseup)="handleLeftIconMouseUp($event)"></co-icon>
7958
+ }
7959
+ @if (leftIcon || leftIconData) {
7960
+ <div class="spacer left-icon"></div>
7961
+ }
7962
+ <div class="input-wrapper">
7963
+ @if (showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)) {
7964
+ <label
7965
+ [textContent]="placeholder"></label>
7966
+ }
7967
+ @if (!focused && !useContent && formatPipe) {
7968
+ <span class="input-text-formatted"
7969
+ [class.show]="!focused && !useContent && formatPipe"
7970
+ [ngClass]="align"
7971
+ [textContent]="pipedModel"
7972
+ (click)="handleDoFocus($event)"
7973
+ ></span>
7974
+ }
7975
+ <input [class.show]="focused || !formatPipe" #input
7976
+ [class.input-input-hidden]="useContent"
7977
+ [ngClass]="align"
7978
+ [type]="isWeekInputMode ? 'text' : (isFocusedOnDate || (hasValue && emptyPlace)) ? 'date' : (digitsOnly ? 'number' : (type === 'date' ? 'text' : type))"
7979
+ [placeholder]="type === 'date' && !isFocusedOnDate ? '' : ''"
7980
+ [pattern]="type === 'date' ? pattern : undefined"
7981
+ [ngModel]="model"
7982
+ [min]="(type === 'number' || type === 'date') && this.min ? this.min : undefined"
7983
+ [max]="(type === 'number' || type === 'date') && this.max ? this.max : undefined"
7984
+ [readonly]="readonly"
7985
+ [required]="required"
7986
+ (ngModelChange)="modelChange.emit($event)"
7987
+ (keydown)="handleKeyDownInput($event)"
7988
+ (keyup)="keyUp.emit($event)"
7989
+ (focusin)="handleInputFocus($event)"
7990
+ (focusout)="handleBlur($event)"
7991
+ >
7992
+ @if (useContent) {
7993
+ <div class="input-content-wrapper">
7994
+ <ng-content></ng-content>
7995
+ </div>
7996
+ }
7997
+ <co-icon [class.show]="showClearButton && hasValue && !readonly" class="input-text-clear-button"
7998
+ [icon]="icons.CrossSkinny" (click)="clearInput($event)"></co-icon>
7999
+ <div class="required-indicator"></div>
8000
+ </div>
8001
+ @if (rightIcon || rightIconData) {
8002
+ <div class="spacer right-icon"></div>
8003
+ }
8004
+ @if (rightIcon || rightIconData) {
8005
+ <co-icon class="input-text-right-icon" [icon]="rightIcon"
8006
+ [iconData]="rightIconData"
8007
+ (click)="handleRightIconClick($event)"
8008
+ (pointerdown)="handleRightIconPointerDown($event)"
8009
+ (pointerup)="handleRightIconPointerUp($event)"
8010
+ (pointercancel)="handleRightIconPointerUp($event)"></co-icon>
8011
+ }
8012
+ </div>
8013
+ <!--
8014
+ <co-commit-buttons *ngIf="showSaveCancel && focused && canSaveOrCancel"
8015
+ [committing]="committing"
8016
+ [commitFinished]="commitFinished"
8017
+ (commitClick)="commitClick($event)"
8018
+ (cancelClick)="cancelClick($event)"
8019
+ >
8020
+ </co-commit-buttons>
8021
+ -->
8032
8022
  `,
8033
8023
  providers: [
8034
8024
  OverlayService, {
@@ -8044,7 +8034,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
8044
8034
  }]
8045
8035
  }], ctorParameters: () => [{ type: FormComponent, decorators: [{
8046
8036
  type: Optional
8047
- }] }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }, { type: OverlayService }, { type: i0.ComponentFactoryResolver }, { type: FormInputUserModelChangeListenerService }, { type: NgZoneWrapperService }, { type: i0.ElementRef }], propDecorators: { useContent: [{
8037
+ }] }, { type: i0.ChangeDetectorRef }, { type: OverlayService }, { type: FormInputUserModelChangeListenerService }, { type: NgZoneWrapperService }, { type: i0.ElementRef }], propDecorators: { useContent: [{
8048
8038
  type: Input
8049
8039
  }], placeholder: [{
8050
8040
  type: Input
@@ -8139,7 +8129,6 @@ class InputDatePickerComponent extends BaseInputDatePickerDirective {
8139
8129
  formComponent;
8140
8130
  changeDetector;
8141
8131
  overlayService;
8142
- componentFactoryResolver;
8143
8132
  formUserChangeListener;
8144
8133
  ngZoneWrapper;
8145
8134
  elementRef;
@@ -8150,12 +8139,11 @@ class InputDatePickerComponent extends BaseInputDatePickerDirective {
8150
8139
  showClass() {
8151
8140
  return true;
8152
8141
  }
8153
- constructor(formComponent, changeDetector, overlayService, componentFactoryResolver, formUserChangeListener, ngZoneWrapper, elementRef) {
8154
- super(changeDetector, componentFactoryResolver, overlayService, formUserChangeListener, ngZoneWrapper, elementRef);
8142
+ constructor(formComponent, changeDetector, overlayService, formUserChangeListener, ngZoneWrapper, elementRef) {
8143
+ super(changeDetector, overlayService, formUserChangeListener, ngZoneWrapper, elementRef);
8155
8144
  this.formComponent = formComponent;
8156
8145
  this.changeDetector = changeDetector;
8157
8146
  this.overlayService = overlayService;
8158
- this.componentFactoryResolver = componentFactoryResolver;
8159
8147
  this.formUserChangeListener = formUserChangeListener;
8160
8148
  this.ngZoneWrapper = ngZoneWrapper;
8161
8149
  this.elementRef = elementRef;
@@ -8227,7 +8215,7 @@ class InputDatePickerComponent extends BaseInputDatePickerDirective {
8227
8215
  handleClearIconClicked() {
8228
8216
  this.setModel(undefined);
8229
8217
  }
8230
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputDatePickerComponent, deps: [{ token: FormComponent, optional: true }, { token: i0.ChangeDetectorRef }, { token: OverlayService }, { token: i0.ComponentFactoryResolver }, { token: FormInputUserModelChangeListenerService }, { token: NgZoneWrapperService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
8218
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputDatePickerComponent, deps: [{ token: FormComponent, optional: true }, { token: i0.ChangeDetectorRef }, { token: OverlayService }, { token: FormInputUserModelChangeListenerService }, { token: NgZoneWrapperService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
8231
8219
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: InputDatePickerComponent, isStandalone: false, selector: "co-input-date", inputs: { firstDayOfWeek: "firstDayOfWeek", showClearButton: "showClearButton" }, host: { properties: { "class.co-input-date": "this.showClass" } }, providers: [
8232
8220
  OverlayService, {
8233
8221
  provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: forwardRef(() => InputDatePickerComponent)
@@ -8299,7 +8287,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
8299
8287
  }]
8300
8288
  }], ctorParameters: () => [{ type: FormComponent, decorators: [{
8301
8289
  type: Optional
8302
- }] }, { type: i0.ChangeDetectorRef }, { type: OverlayService }, { type: i0.ComponentFactoryResolver }, { type: FormInputUserModelChangeListenerService }, { type: NgZoneWrapperService }, { type: i0.ElementRef }], propDecorators: { firstDayOfWeek: [{
8290
+ }] }, { type: i0.ChangeDetectorRef }, { type: OverlayService }, { type: FormInputUserModelChangeListenerService }, { type: NgZoneWrapperService }, { type: i0.ElementRef }], propDecorators: { firstDayOfWeek: [{
8303
8291
  type: Input
8304
8292
  }], showClearButton: [{
8305
8293
  type: Input
@@ -9475,7 +9463,6 @@ class InputNumberPickerComponent extends BaseInputComponent {
9475
9463
  iconCacheService;
9476
9464
  overlayService;
9477
9465
  _ngZone;
9478
- componentFactoryResolver;
9479
9466
  ngZoneWrapper;
9480
9467
  elementRef;
9481
9468
  // @override
@@ -9541,13 +9528,12 @@ class InputNumberPickerComponent extends BaseInputComponent {
9541
9528
  _autoCountTimeout;
9542
9529
  _stepIncrementTimeout;
9543
9530
  _startAutocountTimeout;
9544
- constructor(formComponent, iconCacheService, overlayService, _ngZone, componentFactoryResolver, changeDetector, formUserChangeListener, ngZoneWrapper, elementRef) {
9545
- super(changeDetector, componentFactoryResolver, overlayService, formUserChangeListener, ngZoneWrapper, elementRef);
9531
+ constructor(formComponent, iconCacheService, overlayService, _ngZone, changeDetector, formUserChangeListener, ngZoneWrapper, elementRef) {
9532
+ super(changeDetector, overlayService, formUserChangeListener, ngZoneWrapper, elementRef);
9546
9533
  this.formComponent = formComponent;
9547
9534
  this.iconCacheService = iconCacheService;
9548
9535
  this.overlayService = overlayService;
9549
9536
  this._ngZone = _ngZone;
9550
- this.componentFactoryResolver = componentFactoryResolver;
9551
9537
  this.ngZoneWrapper = ngZoneWrapper;
9552
9538
  this.elementRef = elementRef;
9553
9539
  this._numberLogicValueChangeSub = this.numberLogic.valueChange.subscribe((value) => {
@@ -9705,7 +9691,7 @@ class InputNumberPickerComponent extends BaseInputComponent {
9705
9691
  break;
9706
9692
  }
9707
9693
  }
9708
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputNumberPickerComponent, deps: [{ token: FormComponent, optional: true }, { token: IconCacheService }, { token: OverlayService }, { token: i0.NgZone }, { token: i0.ComponentFactoryResolver }, { token: i0.ChangeDetectorRef }, { token: FormInputUserModelChangeListenerService }, { token: NgZoneWrapperService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
9694
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputNumberPickerComponent, deps: [{ token: FormComponent, optional: true }, { token: IconCacheService }, { token: OverlayService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: FormInputUserModelChangeListenerService }, { token: NgZoneWrapperService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
9709
9695
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: InputNumberPickerComponent, isStandalone: false, selector: "co-input-number-picker", inputs: { model: "model", modelChangeOnEnter: "modelChangeOnEnter", showPermanentLabel: "showPermanentLabel", leftIconData: "leftIconData", min: "min", step: "step", max: "max", ngModelOptions: "ngModelOptions", minusIcon: "minusIcon", plusIcon: "plusIcon", buttonShowMode: "buttonShowMode", noValidation: "noValidation", decimals: "decimals" }, outputs: { modelChange: "modelChange", iconClick: "iconClick" }, host: { properties: { "class.has-icon": "this.leftIconData", "class.show-buttons-on-focus-only": "this.showButtonsOnFocusOnly", "class.has-label": "this.hasLabel", "class.co-input-number-picker": "this.showClass" } }, providers: [
9710
9696
  OverlayService, {
9711
9697
  provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: forwardRef(() => InputNumberPickerComponent)
@@ -9820,7 +9806,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
9820
9806
  }] }, { type: IconCacheService, decorators: [{
9821
9807
  type: Inject,
9822
9808
  args: [IconCacheService]
9823
- }] }, { type: OverlayService }, { type: i0.NgZone }, { type: i0.ComponentFactoryResolver }, { type: i0.ChangeDetectorRef }, { type: FormInputUserModelChangeListenerService }, { type: NgZoneWrapperService }, { type: i0.ElementRef }], propDecorators: { model: [{
9809
+ }] }, { type: OverlayService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: FormInputUserModelChangeListenerService }, { type: NgZoneWrapperService }, { type: i0.ElementRef }], propDecorators: { model: [{
9824
9810
  type: Input
9825
9811
  }], modelChangeOnEnter: [{
9826
9812
  type: Input
@@ -9896,7 +9882,6 @@ class InputRadioButtonComponent extends BaseInputComponent {
9896
9882
  formComponent;
9897
9883
  changeDetector;
9898
9884
  overlayService;
9899
- componentFactoryResolver;
9900
9885
  formUserChangeListener;
9901
9886
  ngZoneWrapper;
9902
9887
  elementRef;
@@ -9920,18 +9905,17 @@ class InputRadioButtonComponent extends BaseInputComponent {
9920
9905
  }
9921
9906
  }
9922
9907
  }
9923
- constructor(formComponent, changeDetector, overlayService, componentFactoryResolver, formUserChangeListener, ngZoneWrapper, elementRef) {
9924
- super(changeDetector, componentFactoryResolver, overlayService, formUserChangeListener, ngZoneWrapper, elementRef);
9908
+ constructor(formComponent, changeDetector, overlayService, formUserChangeListener, ngZoneWrapper, elementRef) {
9909
+ super(changeDetector, overlayService, formUserChangeListener, ngZoneWrapper, elementRef);
9925
9910
  this.formComponent = formComponent;
9926
9911
  this.changeDetector = changeDetector;
9927
9912
  this.overlayService = overlayService;
9928
- this.componentFactoryResolver = componentFactoryResolver;
9929
9913
  this.formUserChangeListener = formUserChangeListener;
9930
9914
  this.ngZoneWrapper = ngZoneWrapper;
9931
9915
  this.elementRef = elementRef;
9932
9916
  super._markAsOnPush();
9933
9917
  }
9934
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputRadioButtonComponent, deps: [{ token: FormComponent, optional: true }, { token: i0.ChangeDetectorRef }, { token: OverlayService }, { token: i0.ComponentFactoryResolver }, { token: FormInputUserModelChangeListenerService }, { token: NgZoneWrapperService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
9918
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputRadioButtonComponent, deps: [{ token: FormComponent, optional: true }, { token: i0.ChangeDetectorRef }, { token: OverlayService }, { token: FormInputUserModelChangeListenerService }, { token: NgZoneWrapperService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
9935
9919
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: InputRadioButtonComponent, isStandalone: false, selector: "co-input-radio-button", host: { listeners: { "click": "handleClick($event)" }, properties: { "class.selected": "this.isModelSelected", "class.co-radio-button": "this.showClass" } }, providers: [
9936
9920
  OverlayService, {
9937
9921
  provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: forwardRef(() => InputRadioButtonComponent)
@@ -9939,16 +9923,16 @@ class InputRadioButtonComponent extends BaseInputComponent {
9939
9923
  provide: BaseInputComponent,
9940
9924
  useExisting: InputRadioButtonComponent
9941
9925
  }
9942
- ], usesInheritance: true, ngImport: i0, template: `
9943
- <div class="outer-circle" [class.selected]="model">
9944
- @if (model) {
9945
- <div class="inner-circle" @showSelected></div>
9946
- }
9947
- </div>
9948
- @if (label) {
9949
- <div class="label" [textContent]="label"></div>
9950
- }
9951
- <input #input [ngModel]="model" type="hidden">
9926
+ ], usesInheritance: true, ngImport: i0, template: `
9927
+ <div class="outer-circle" [class.selected]="model">
9928
+ @if (model) {
9929
+ <div class="inner-circle" @showSelected></div>
9930
+ }
9931
+ </div>
9932
+ @if (label) {
9933
+ <div class="label" [textContent]="label"></div>
9934
+ }
9935
+ <input #input [ngModel]="model" type="hidden">
9952
9936
  `, isInline: true, dependencies: [{ kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], animations: [
9953
9937
  trigger('showSelected', [
9954
9938
  state('void', style({ transform: 'scale(0)' })),
@@ -9961,16 +9945,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
9961
9945
  type: Component,
9962
9946
  args: [{
9963
9947
  selector: 'co-input-radio-button',
9964
- template: `
9965
- <div class="outer-circle" [class.selected]="model">
9966
- @if (model) {
9967
- <div class="inner-circle" @showSelected></div>
9968
- }
9969
- </div>
9970
- @if (label) {
9971
- <div class="label" [textContent]="label"></div>
9972
- }
9973
- <input #input [ngModel]="model" type="hidden">
9948
+ template: `
9949
+ <div class="outer-circle" [class.selected]="model">
9950
+ @if (model) {
9951
+ <div class="inner-circle" @showSelected></div>
9952
+ }
9953
+ </div>
9954
+ @if (label) {
9955
+ <div class="label" [textContent]="label"></div>
9956
+ }
9957
+ <input #input [ngModel]="model" type="hidden">
9974
9958
  `,
9975
9959
  providers: [
9976
9960
  OverlayService, {
@@ -9992,7 +9976,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
9992
9976
  }]
9993
9977
  }], ctorParameters: () => [{ type: FormComponent, decorators: [{
9994
9978
  type: Optional
9995
- }] }, { type: i0.ChangeDetectorRef }, { type: OverlayService }, { type: i0.ComponentFactoryResolver }, { type: FormInputUserModelChangeListenerService }, { type: NgZoneWrapperService }, { type: i0.ElementRef }], propDecorators: { isModelSelected: [{
9979
+ }] }, { type: i0.ChangeDetectorRef }, { type: OverlayService }, { type: FormInputUserModelChangeListenerService }, { type: NgZoneWrapperService }, { type: i0.ElementRef }], propDecorators: { isModelSelected: [{
9996
9980
  type: HostBinding,
9997
9981
  args: ['class.selected']
9998
9982
  }], showClass: [{
@@ -10177,7 +10161,6 @@ class InputTextareaComponent extends BaseInputComponent {
10177
10161
  formComponent;
10178
10162
  changeDetector;
10179
10163
  overlayService;
10180
- componentFactoryResolver;
10181
10164
  formUserChangeListener;
10182
10165
  ngZoneWrapper;
10183
10166
  elementRef;
@@ -10186,18 +10169,17 @@ class InputTextareaComponent extends BaseInputComponent {
10186
10169
  return true;
10187
10170
  }
10188
10171
  hasOwnLabel = true;
10189
- constructor(formComponent, changeDetector, overlayService, componentFactoryResolver, formUserChangeListener, ngZoneWrapper, elementRef) {
10190
- super(changeDetector, componentFactoryResolver, overlayService, formUserChangeListener, ngZoneWrapper, elementRef);
10172
+ constructor(formComponent, changeDetector, overlayService, formUserChangeListener, ngZoneWrapper, elementRef) {
10173
+ super(changeDetector, overlayService, formUserChangeListener, ngZoneWrapper, elementRef);
10191
10174
  this.formComponent = formComponent;
10192
10175
  this.changeDetector = changeDetector;
10193
10176
  this.overlayService = overlayService;
10194
- this.componentFactoryResolver = componentFactoryResolver;
10195
10177
  this.formUserChangeListener = formUserChangeListener;
10196
10178
  this.ngZoneWrapper = ngZoneWrapper;
10197
10179
  this.elementRef = elementRef;
10198
10180
  super._markAsOnPush();
10199
10181
  }
10200
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputTextareaComponent, deps: [{ token: FormComponent, optional: true }, { token: i0.ChangeDetectorRef }, { token: OverlayService }, { token: i0.ComponentFactoryResolver }, { token: FormInputUserModelChangeListenerService }, { token: NgZoneWrapperService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
10182
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputTextareaComponent, deps: [{ token: FormComponent, optional: true }, { token: i0.ChangeDetectorRef }, { token: OverlayService }, { token: FormInputUserModelChangeListenerService }, { token: NgZoneWrapperService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
10201
10183
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: InputTextareaComponent, isStandalone: false, selector: "co-input-textarea", inputs: { placeholder: "placeholder" }, host: { properties: { "class.co-input-textarea": "this.showClass", "class.custom-height": "this.showClass", "class.has-own-label": "this.hasOwnLabel" } }, providers: [
10202
10184
  OverlayService, {
10203
10185
  provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
@@ -10271,7 +10253,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
10271
10253
  }]
10272
10254
  }], ctorParameters: () => [{ type: FormComponent, decorators: [{
10273
10255
  type: Optional
10274
- }] }, { type: i0.ChangeDetectorRef }, { type: OverlayService }, { type: i0.ComponentFactoryResolver }, { type: FormInputUserModelChangeListenerService }, { type: NgZoneWrapperService }, { type: i0.ElementRef }], propDecorators: { placeholder: [{
10256
+ }] }, { type: i0.ChangeDetectorRef }, { type: OverlayService }, { type: FormInputUserModelChangeListenerService }, { type: NgZoneWrapperService }, { type: i0.ElementRef }], propDecorators: { placeholder: [{
10275
10257
  type: Input
10276
10258
  }], showClass: [{
10277
10259
  type: HostBinding,
@@ -14326,7 +14308,6 @@ class ListOfValuesComponent extends BaseInputComponent {
14326
14308
  iconCacheService;
14327
14309
  changeDetector;
14328
14310
  overlayService;
14329
- componentFactoryResolver;
14330
14311
  formUserChangeListener;
14331
14312
  ngZoneWrapper;
14332
14313
  elementRef;
@@ -14369,13 +14350,12 @@ class ListOfValuesComponent extends BaseInputComponent {
14369
14350
  _collection = [];
14370
14351
  debounceTimeout;
14371
14352
  _lovPopupComponentRef;
14372
- constructor(formComponent, iconCacheService, changeDetector, overlayService, componentFactoryResolver, formUserChangeListener, ngZoneWrapper, elementRef) {
14373
- super(changeDetector, componentFactoryResolver, overlayService, formUserChangeListener, ngZoneWrapper, elementRef);
14353
+ constructor(formComponent, iconCacheService, changeDetector, overlayService, formUserChangeListener, ngZoneWrapper, elementRef) {
14354
+ super(changeDetector, overlayService, formUserChangeListener, ngZoneWrapper, elementRef);
14374
14355
  this.formComponent = formComponent;
14375
14356
  this.iconCacheService = iconCacheService;
14376
14357
  this.changeDetector = changeDetector;
14377
14358
  this.overlayService = overlayService;
14378
- this.componentFactoryResolver = componentFactoryResolver;
14379
14359
  this.formUserChangeListener = formUserChangeListener;
14380
14360
  this.ngZoneWrapper = ngZoneWrapper;
14381
14361
  this.elementRef = elementRef;
@@ -14570,7 +14550,7 @@ class ListOfValuesComponent extends BaseInputComponent {
14570
14550
  }
14571
14551
  }
14572
14552
  }
14573
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ListOfValuesComponent, deps: [{ token: FormComponent, optional: true }, { token: IconCacheService }, { token: i0.ChangeDetectorRef }, { token: OverlayService }, { token: i0.ComponentFactoryResolver }, { token: FormInputUserModelChangeListenerService }, { token: NgZoneWrapperService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
14553
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ListOfValuesComponent, deps: [{ token: FormComponent, optional: true }, { token: IconCacheService }, { token: i0.ChangeDetectorRef }, { token: OverlayService }, { token: FormInputUserModelChangeListenerService }, { token: NgZoneWrapperService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
14574
14554
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: ListOfValuesComponent, isStandalone: false, selector: "co-list-of-values", inputs: { model: "model", multiselect: "multiselect", showToggleAll: "showToggleAll", largeCollection: "largeCollection", displayField: "displayField", optionIcon: "optionIcon", collection: "collection", collectionLoadFn: "collectionLoadFn", collectionLoadFnProp: "collectionLoadFnProp", leftIconData: "leftIconData", searchPlaceholder: "searchPlaceholder", searchDisabled: "searchDisabled", showChips: "showChips" }, host: { properties: { "class.custom-height": "this.multiselect", "class.multi-select": "this.multiselect", "class.co-list-of-values": "this.showClass" } }, providers: [
14575
14555
  OverlayService,
14576
14556
  {
@@ -14712,7 +14692,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
14712
14692
  }]
14713
14693
  }], ctorParameters: () => [{ type: FormComponent, decorators: [{
14714
14694
  type: Optional
14715
- }] }, { type: IconCacheService }, { type: i0.ChangeDetectorRef }, { type: OverlayService }, { type: i0.ComponentFactoryResolver }, { type: FormInputUserModelChangeListenerService }, { type: NgZoneWrapperService }, { type: i0.ElementRef }], propDecorators: { model: [{
14695
+ }] }, { type: IconCacheService }, { type: i0.ChangeDetectorRef }, { type: OverlayService }, { type: FormInputUserModelChangeListenerService }, { type: NgZoneWrapperService }, { type: i0.ElementRef }], propDecorators: { model: [{
14716
14696
  type: Input
14717
14697
  }], parentForOverlay: [{
14718
14698
  type: ViewChild,
@@ -18855,8 +18835,354 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
18855
18835
  }]
18856
18836
  }] });
18857
18837
 
18838
+ // Static utility functions holder related to CSS.
18839
+ // @dynamic
18840
+ class CssUtils {
18841
+ /**
18842
+ * Performs a horizontal size change animation on the given DOM element.
18843
+ *
18844
+ * @param nativeElement The DOM element
18845
+ * @param transitionTime In seconds
18846
+ * @param startWidth Pixel size string
18847
+ * @param endWidth Defaults to elements true width, by calculation
18848
+ * @returns A resolved promise after the transition was done.
18849
+ */
18850
+ static AnimateMaxWidthTransitionOn(nativeElement, transitionTime = 0.2, startWidth = "0px", endWidth) {
18851
+ if (!nativeElement) {
18852
+ return;
18853
+ }
18854
+ if (!endWidth) {
18855
+ endWidth = CssUtils.FindOffsetWidthOfElementWithTransition(nativeElement);
18856
+ }
18857
+ const transitionStyle = `max-width ${transitionTime}s ease-out`;
18858
+ if (!CssUtils.ElementHasStyle(nativeElement, "transition", transitionStyle)) {
18859
+ CssUtils._AddTransitionStyleOn(nativeElement, transitionStyle);
18860
+ }
18861
+ nativeElement.style.maxWidth = startWidth;
18862
+ CssUtils.PushCssChanges(nativeElement);
18863
+ nativeElement.style.maxWidth = endWidth;
18864
+ return CssUtils._returnPromise(transitionTime);
18865
+ }
18866
+ /**
18867
+ * Performs a vertical size change animation on the given DOM element.
18868
+ *
18869
+ * @param nativeElement The DOM element
18870
+ * @param transitionTime In seconds
18871
+ * @param startHeight Pixel size string
18872
+ * @param endHeight Defaults to elements true height, by calculation
18873
+ * @returns A resolved promise after the transition was done.
18874
+ */
18875
+ static AnimateMaxHeightTransitionOn(nativeElement, transitionTime = 0.2, startHeight = "0px", endHeight) {
18876
+ if (!nativeElement) {
18877
+ return;
18878
+ }
18879
+ if (!endHeight) {
18880
+ endHeight = CssUtils.FindOffsetHeightOfElementWithTransition(nativeElement);
18881
+ }
18882
+ const transitionStyle = `max-height ${transitionTime}s ease-out`;
18883
+ if (!CssUtils.ElementHasStyle(nativeElement, "transition", transitionStyle)) {
18884
+ CssUtils._AddTransitionStyleOn(nativeElement, transitionStyle);
18885
+ }
18886
+ nativeElement.style.maxHeight = startHeight;
18887
+ CssUtils.PushCssChanges(nativeElement);
18888
+ nativeElement.style.maxHeight = endHeight;
18889
+ return CssUtils._returnPromise(transitionTime);
18890
+ }
18891
+ static AnimateMaxWidthToZeroOn(nativeElement, transitionTime = 0.2) {
18892
+ return CssUtils.AnimateMaxWidthTransitionOn(nativeElement, transitionTime, CssUtils.GetTrueWidthOf(nativeElement) + "px", "0px");
18893
+ }
18894
+ static AnimateMaxHeightToZeroOn(nativeElement, transitionTime = 0.2) {
18895
+ return CssUtils.AnimateMaxHeightTransitionOn(nativeElement, transitionTime, CssUtils.GetTrueHeightOf(nativeElement) + "px", "0px");
18896
+ }
18897
+ /**
18898
+ * Returns the offsetwidth of given element as a pixel string. Uses trick to find true width of elements with a max-width of 0 and
18899
+ * that have a transition style applied.
18900
+ *
18901
+ * @param nativeElement The DOM element
18902
+ * @returns The width in pixels, e.g. "20px"
18903
+ */
18904
+ static FindOffsetWidthOfElementWithTransition(nativeElement) {
18905
+ return CssUtils._FindOffsetHeightOrWidthOfElementWithTransition(nativeElement, false);
18906
+ }
18907
+ /**
18908
+ * Returns the offsetheight of given element as a pixel string. Uses trick to find true width of elements with a max-height of 0 and
18909
+ * that have a transition style applied.
18910
+ *
18911
+ * @param nativeElement The DOM element
18912
+ * @returns The height in pixels, e.g. "20px"
18913
+ */
18914
+ static FindOffsetHeightOfElementWithTransition(nativeElement) {
18915
+ return CssUtils._FindOffsetHeightOrWidthOfElementWithTransition(nativeElement, true);
18916
+ }
18917
+ // Returns the true height of the given element, in NUMBER of pixels. Includes margins.
18918
+ static GetTrueHeightOf(nativeElement) {
18919
+ const heightMargins = NumberUtils.ParseInt(document.defaultView.getComputedStyle(nativeElement, "").getPropertyValue('margin-top'))
18920
+ + NumberUtils.ParseInt(document.defaultView.getComputedStyle(nativeElement, "").getPropertyValue('margin-bottom'));
18921
+ return nativeElement.offsetHeight + heightMargins;
18922
+ }
18923
+ /**
18924
+ *
18925
+ * @param nativeElement
18926
+ * @param styleName e.g. "margin-top"
18927
+ * @returns
18928
+ */
18929
+ static GetComputedStyleVal(nativeElement, styleName) {
18930
+ return document.defaultView.getComputedStyle(nativeElement, "").getPropertyValue("styleName");
18931
+ }
18932
+ // Returns the true width of the given element, in NUMBER of pixels. Includes margins.
18933
+ static GetTrueWidthOf(nativeElement) {
18934
+ const widthMargins = NumberUtils.ParseInt(document.defaultView.getComputedStyle(nativeElement, "").getPropertyValue('margin-left'))
18935
+ + NumberUtils.ParseInt(document.defaultView.getComputedStyle(nativeElement, "").getPropertyValue('margin-right'));
18936
+ return nativeElement.offsetWidth + widthMargins;
18937
+ }
18938
+ static ElementHasStyle(nativeElement, styleName, styleValue) {
18939
+ if (!nativeElement || !styleName) {
18940
+ return false;
18941
+ }
18942
+ return (nativeElement.style[styleName] === styleValue);
18943
+ }
18944
+ static SetStyleOnElement(nativeElement, styleName, styleValue, pushChanges = false) {
18945
+ if (!nativeElement || !styleName) {
18946
+ return;
18947
+ }
18948
+ nativeElement.style[styleName] = styleValue;
18949
+ if (pushChanges) {
18950
+ CssUtils.PushCssChanges(nativeElement);
18951
+ }
18952
+ }
18953
+ static HideElement(nativeElement) {
18954
+ if (nativeElement) {
18955
+ CssUtils.SetStyleOnElement(nativeElement, "display", "none");
18956
+ }
18957
+ }
18958
+ /**
18959
+ * Returns the value of the given CSS style on the given native element.
18960
+ * @param nativeElement
18961
+ * @param styleName
18962
+ * @returns
18963
+ */
18964
+ static GetStyleValue(nativeElement, styleName) {
18965
+ if (!nativeElement || !styleName) {
18966
+ return;
18967
+ }
18968
+ return nativeElement.style[styleName];
18969
+ }
18970
+ /**
18971
+ * Returns a CSS-usable RGB string representation of given database-returned rgb color string.
18972
+ * Database returns color strings like "0xFFFF00" or "0X0"
18973
+ *
18974
+ * @param dbRgbColorStr e.g. 0x990000, or 0xAB045F
18975
+ * @returns The CSS HEX representation of given color
18976
+ */
18977
+ static DbRgbColorStringToCssRgbColor(dbRgbColorStr) {
18978
+ if (!dbRgbColorStr || dbRgbColorStr.length === 0) {
18979
+ return undefined;
18980
+ }
18981
+ // "0x" should become "#"
18982
+ dbRgbColorStr = dbRgbColorStr.split("0x")[1];
18983
+ if (!dbRgbColorStr) {
18984
+ return undefined;
18985
+ }
18986
+ // database colors could contain errors, like too little or too many color characters: correct them here.
18987
+ const strLen = dbRgbColorStr.length;
18988
+ // make sure our length is 6 or 3
18989
+ if (strLen > 6) {
18990
+ dbRgbColorStr = dbRgbColorStr.slice(0, 6);
18991
+ }
18992
+ else if (strLen > 3 && strLen < 6) {
18993
+ dbRgbColorStr = dbRgbColorStr.slice(0, 3);
18994
+ }
18995
+ else if (strLen === 1) {
18996
+ // a strLen of 1 would be more common than 2 (eg black is '0'), so its else clause sits above the == 2 case here
18997
+ dbRgbColorStr += dbRgbColorStr + dbRgbColorStr;
18998
+ }
18999
+ else if (strLen === 2) {
19000
+ dbRgbColorStr += dbRgbColorStr[1];
19001
+ }
19002
+ // the final css-usable color
19003
+ return "#" + dbRgbColorStr;
19004
+ }
19005
+ static PushCssChanges(nativeElement) {
19006
+ /* tslint:disable */
19007
+ // trick to wake renderer and push css changes, do not delete this line due to unused variable!
19008
+ const notUnused = nativeElement.offsetHeight; //NOSONAR
19009
+ /* tslint:enable */
19010
+ return;
19011
+ }
19012
+ static TransparentColor(hexColor, opacity) {
19013
+ const hex = hexColor.replace('#', '');
19014
+ return `rgba(${Array.from({ length: 3 }, (v, i) => parseInt(hex.substring(i * 2, (i + 1) * 2), 16)).join(',')},${opacity})`;
19015
+ }
19016
+ static ElementHasClass(element, cssClass) {
19017
+ return element && element.classList && element.classList.contains(cssClass);
19018
+ }
19019
+ // @param height True if you want height,fFalse if you want width
19020
+ static _FindOffsetHeightOrWidthOfElementWithTransition(nativeElement, wantHeight) {
19021
+ if (!nativeElement) {
19022
+ return "0px";
19023
+ }
19024
+ /* Take transition off temporarily to allow element to grow to its true size,
19025
+ then measure that size and reapply transition styling. */
19026
+ const originalTransitionStyle = nativeElement.style.transition;
19027
+ CssUtils._AddTransitionStyleOn(nativeElement, "none");
19028
+ if (wantHeight) {
19029
+ nativeElement.style.maxHeight = "";
19030
+ }
19031
+ else {
19032
+ nativeElement.style.maxWidth = "";
19033
+ }
19034
+ let trueHeightOrWidth;
19035
+ if (wantHeight) {
19036
+ trueHeightOrWidth = nativeElement.offsetHeight;
19037
+ }
19038
+ else {
19039
+ trueHeightOrWidth = nativeElement.offsetWidth;
19040
+ }
19041
+ trueHeightOrWidth += "px";
19042
+ nativeElement.style.transition = originalTransitionStyle;
19043
+ return trueHeightOrWidth;
19044
+ }
19045
+ /**
19046
+ * Adds given transition style on given DOM element.
19047
+ *
19048
+ * @param nativeElement DOM element reference
19049
+ * @param styleText The shorthand style string for the transition to set
19050
+ */
19051
+ static _AddTransitionStyleOn(nativeElement, styleText) {
19052
+ if (!nativeElement || !styleText) {
19053
+ return;
19054
+ }
19055
+ // if it already has a transition style: append new one with a comma
19056
+ if (nativeElement.style.transition) {
19057
+ styleText = ", " + styleText;
19058
+ }
19059
+ nativeElement.style.transition += styleText;
19060
+ nativeElement.style.WebkitTransition += styleText;
19061
+ nativeElement.style.MozTransition += styleText;
19062
+ }
19063
+ static _returnPromise(transitionTime) {
19064
+ return new Promise((resolve) => {
19065
+ setTimeout(() => {
19066
+ resolve();
19067
+ }, transitionTime * 1000);
19068
+ });
19069
+ }
19070
+ }
19071
+
19072
+ // @BusinessObjectData({
19073
+ // name: "Color",
19074
+ // mapping: DataMapping.Simplebasedata
19075
+ // })
19076
+ class Color {
19077
+ colorCode;
19078
+ description;
19079
+ rgbColor;
19080
+ // This rgbColor of this color represented like '#abcdef', for direct use in CSS.
19081
+ get cssColor() {
19082
+ return CssUtils.DbRgbColorStringToCssRgbColor(this.rgbColor);
19083
+ }
19084
+ constructor() {
19085
+ }
19086
+ // @override
19087
+ getId() {
19088
+ return this.rgbColor;
19089
+ }
19090
+ getTransparentCssColor(opacity = 0.5) {
19091
+ return CssUtils.TransparentColor(this.cssColor, opacity);
19092
+ }
19093
+ }
19094
+
19095
+ // @BusinessObjectData({
19096
+ // name: "ColorSequence",
19097
+ // mapping: DataMapping.Simplebasedata
19098
+ // })
19099
+ class ColorSequence {
19100
+ colors = [];
19101
+ name;
19102
+ addColor(color) {
19103
+ this.colors.push(color);
19104
+ }
19105
+ // CYCLES through the colors in this sequence and returns the color on given index.
19106
+ getColor(index) {
19107
+ if (!this.colors) {
19108
+ return new Color();
19109
+ }
19110
+ return this.colors[index % this.colors.length];
19111
+ }
19112
+ getId() {
19113
+ return this.name;
19114
+ }
19115
+ getRandomColor() {
19116
+ if (!this.colors) {
19117
+ return new Color();
19118
+ }
19119
+ return this.colors[NumberUtils.RandomInt(0, this.colors.length - 1)];
19120
+ }
19121
+ }
19122
+
19123
+ // Represents the enumeration of color sequence names; the different color sequences stored in db.
19124
+ var ColorSequenceName;
19125
+ (function (ColorSequenceName) {
19126
+ ColorSequenceName["Regular"] = "REGULAR";
19127
+ ColorSequenceName["Variant"] = "VARIANT";
19128
+ })(ColorSequenceName || (ColorSequenceName = {}));
19129
+
18858
19130
  class ColorSequenceService {
18859
19131
  colors = new Map();
19132
+ _colorSequences = [];
19133
+ _regularColSeq = new ColorSequence();
19134
+ _variantColSeq = new ColorSequence();
19135
+ _regularColorsRgb = [
19136
+ "0x009ee0",
19137
+ "0x6b4e77",
19138
+ "0xb10060",
19139
+ "0x56ad4a",
19140
+ "0x60091a",
19141
+ "0xf29400",
19142
+ "0x00878f",
19143
+ "0xb84e8a",
19144
+ "0x765c3d",
19145
+ "0x9da5b2",
19146
+ "0xe41f41",
19147
+ "0x025122",
19148
+ "0x995c57",
19149
+ "0x014b50",
19150
+ "0xd0a46c",
19151
+ "0x3d6e8b",
19152
+ "0x31363e",
19153
+ "0xe52986",
19154
+ "0x74b77f",
19155
+ "0xe95d0f"
19156
+ ];
19157
+ _variantColorsRgb = [
19158
+ "0x749b74",
19159
+ "0xca2f3f",
19160
+ "0x4fa9cb",
19161
+ "0xea7f3d",
19162
+ "0x9d6b9c",
19163
+ "0x7a4c19",
19164
+ "0x711240",
19165
+ "0x56ad4a",
19166
+ "0x024561",
19167
+ "0xf8b442",
19168
+ "0x58385d",
19169
+ "0xea6ea3",
19170
+ "0x9cc7e7",
19171
+ "0x554636",
19172
+ "0x9d5528",
19173
+ "0xe85152",
19174
+ "0x685d6d",
19175
+ "0xaad3ac",
19176
+ "0x97202d",
19177
+ "0x634946"
19178
+ ];
19179
+ constructor() {
19180
+ this._buildColorSequences();
19181
+ }
19182
+ // Retrieves ColorSequence that has the given name, if any.
19183
+ getColorSequenceByName(sequenceName) {
19184
+ return this._colorSequences.find(seq => seq.name === sequenceName);
19185
+ }
18860
19186
  getRandomColor(id) {
18861
19187
  if (this.colors.has(id)) {
18862
19188
  return this.colors.get(id);
@@ -18892,6 +19218,22 @@ class ColorSequenceService {
18892
19218
  GetHSLAColor(h, s, l, a) {
18893
19219
  return `hsl(${h}, ${s}%, ${l}%, ${a})`;
18894
19220
  }
19221
+ _buildColorSequences() {
19222
+ this._regularColSeq.name = ColorSequenceName.Regular;
19223
+ this._regularColorsRgb.forEach((color, index) => {
19224
+ const newColor = new Color();
19225
+ newColor.rgbColor = this._regularColorsRgb[index];
19226
+ this._regularColSeq.addColor(newColor);
19227
+ });
19228
+ this._colorSequences.push(this._regularColSeq);
19229
+ this._variantColSeq.name = ColorSequenceName.Variant;
19230
+ this._variantColorsRgb.forEach((color, index) => {
19231
+ const newColor = new Color();
19232
+ newColor.rgbColor = this._variantColorsRgb[index];
19233
+ this._variantColSeq.addColor(newColor);
19234
+ });
19235
+ this._colorSequences.push(this._variantColSeq);
19236
+ }
18895
19237
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ColorSequenceService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18896
19238
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ColorSequenceService, providedIn: 'root' });
18897
19239
  }
@@ -18900,7 +19242,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
18900
19242
  args: [{
18901
19243
  providedIn: 'root'
18902
19244
  }]
18903
- }] });
19245
+ }], ctorParameters: () => [] });
18904
19246
 
18905
19247
  class HourSchedulingTestObjectComponent {
18906
19248
  showClass() {