@colijnit/corecomponents_v12 12.1.3 → 12.1.5

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.
Files changed (27) hide show
  1. package/bundles/colijnit-corecomponents_v12.umd.js +69 -8
  2. package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
  3. package/colijnit-corecomponents_v12.metadata.json +1 -1
  4. package/esm2015/lib/components/input-text/input-text.component.js +3 -3
  5. package/esm2015/lib/components/list-of-values/list-of-values.component.js +6 -1
  6. package/esm2015/lib/components/responsive-text/responsive-text.component.js +24 -0
  7. package/esm2015/lib/components/responsive-text/responsive-text.module.js +19 -0
  8. package/esm2015/lib/directives/overlay/overlay.directive.js +23 -8
  9. package/esm2015/public-api.js +3 -1
  10. package/fesm2015/colijnit-corecomponents_v12.js +69 -10
  11. package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
  12. package/lib/components/co-dialog/style/_layout.scss +3 -0
  13. package/lib/components/filter-item/style/_layout.scss +10 -0
  14. package/lib/components/filter-item/style/_material-definition.scss +5 -0
  15. package/lib/components/input-text/style/_material-definition.scss +1 -0
  16. package/lib/components/list-of-values/list-of-values.component.d.ts +1 -0
  17. package/lib/components/list-of-values/style/_layout.scss +10 -0
  18. package/lib/components/list-of-values/style/_material-definition.scss +5 -0
  19. package/lib/components/responsive-text/responsive-text.component.d.ts +4 -0
  20. package/lib/components/responsive-text/responsive-text.module.d.ts +2 -0
  21. package/lib/components/responsive-text/style/_layout.scss +9 -0
  22. package/lib/components/responsive-text/style/_material-definition.scss +0 -0
  23. package/lib/components/responsive-text/style/_theme.scss +4 -0
  24. package/lib/components/responsive-text/style/material.scss +4 -0
  25. package/lib/directives/overlay/overlay.directive.d.ts +2 -0
  26. package/package.json +1 -1
  27. package/public-api.d.ts +2 -0
@@ -5382,6 +5382,7 @@ class OverlayDirective {
5382
5382
  this.keepInView = false;
5383
5383
  this.inheritWidth = false;
5384
5384
  this.rightAlign = false;
5385
+ this.fullSize = false;
5385
5386
  this.handleScroll = (event) => {
5386
5387
  this._checkAndPlaceElement();
5387
5388
  };
@@ -5435,11 +5436,18 @@ class OverlayDirective {
5435
5436
  _checkAndPlaceElement() {
5436
5437
  if (this._elementRef && this._elementRef.nativeElement && this._parent && this._parent.nativeElement) {
5437
5438
  const elementRect = this._elementRef.nativeElement.getBoundingClientRect();
5438
- const parentRect = this._parent.nativeElement.getBoundingClientRect();
5439
+ const parentBoundingRect = this._parent.nativeElement.getBoundingClientRect();
5440
+ const parentRect = {
5441
+ bottom: this._parent.nativeElement.offsetTop + parentBoundingRect.height,
5442
+ right: this._parent.nativeElement.offsetLeft + parentBoundingRect.width,
5443
+ left: this._parent.nativeElement.offsetLeft,
5444
+ top: this._parent.nativeElement.offsetTop
5445
+ };
5439
5446
  this._placeElement(window.innerHeight, window.innerWidth, parentRect, elementRect);
5440
5447
  }
5441
5448
  }
5442
5449
  _placeElement(bottom, right, parentRect, elementRect) {
5450
+ this._elementRef.nativeElement.style.position = "fixed";
5443
5451
  if (bottom < parentRect.bottom + elementRect.height) { // make sure it fits at the bottom
5444
5452
  this._elementRef.nativeElement.style.top = (parentRect.top - elementRect.height) + "px";
5445
5453
  this._elementRef.nativeElement.classList.add('top');
@@ -5454,18 +5462,23 @@ class OverlayDirective {
5454
5462
  if (this.rightAlign) {
5455
5463
  this._elementRef.nativeElement.style.left = (parentRect.right - elementRect.width) + "px";
5456
5464
  }
5465
+ else if (this.fullSize) {
5466
+ this._elementRef.nativeElement.style.left = "0px";
5467
+ }
5457
5468
  else {
5458
5469
  this._elementRef.nativeElement.style.left = parentRect.left + "px";
5459
5470
  }
5460
5471
  if (this.keepInView) {
5461
- if (elementRect.right > window.innerWidth) {
5472
+ const viewToKeepIn = this.view ? this.view : window;
5473
+ const viewWidth = viewToKeepIn.innerWidth || viewToKeepIn.clientWidth;
5474
+ if (elementRect.right > viewWidth) {
5462
5475
  //see if we can move it to the left
5463
- if ((window.innerWidth - elementRect.width) > 0) {
5464
- this._elementRef.nativeElement.style.left = (window.innerWidth - elementRect.width) + "px";
5476
+ if (((viewWidth - elementRect.width) > 0) && !this.fullSize) {
5477
+ this._elementRef.nativeElement.style.left = (viewWidth - elementRect.width) + "px";
5465
5478
  }
5466
5479
  else { //resize so it fits into view
5467
- this._elementRef.nativeElement.style.width = window.innerWidth + "px";
5468
- this._elementRef.nativeElement.style.left = 0;
5480
+ this._elementRef.nativeElement.style.width = viewWidth + "px";
5481
+ this._elementRef.nativeElement.style.left = viewToKeepIn.offsetLeft + "px";
5469
5482
  }
5470
5483
  }
5471
5484
  }
@@ -5481,9 +5494,11 @@ OverlayDirective.ctorParameters = () => [
5481
5494
  ];
5482
5495
  OverlayDirective.propDecorators = {
5483
5496
  parent: [{ type: Input, args: ["overlay",] }],
5497
+ view: [{ type: Input }],
5484
5498
  keepInView: [{ type: Input }],
5485
5499
  inheritWidth: [{ type: Input }],
5486
- rightAlign: [{ type: Input }]
5500
+ rightAlign: [{ type: Input }],
5501
+ fullSize: [{ type: Input }]
5487
5502
  };
5488
5503
 
5489
5504
  class OverlayParentDirective {
@@ -5640,7 +5655,7 @@ InputTextComponent.decorators = [
5640
5655
  <co-icon *ngIf="leftIcon || leftIconData" class="input-text-left-icon" [icon]="leftIcon" [iconData]="leftIconData"
5641
5656
  (click)="handleLeftIconClick($event)" (mousedown)="handleLeftIconMouseDown($event)"
5642
5657
  (mouseup)="handleLeftIconMouseUp($event)"></co-icon>
5643
- <div *ngIf="leftIcon || leftIconData" class="spacer"></div>
5658
+ <div *ngIf="leftIcon || leftIconData" class="spacer left-icon"></div>
5644
5659
  <div class="input-wrapper">
5645
5660
  <label *ngIf="showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)"
5646
5661
  [textContent]="placeholder"></label>
@@ -5660,7 +5675,7 @@ InputTextComponent.decorators = [
5660
5675
  <co-icon [class.show]="showClearButton && hasValue && focused && !readonly" class="input-text-clear-button" [icon]="icons.CrossSkinny" (click)="clearInput($event)"></co-icon>
5661
5676
  <div class="required-indicator"></div>
5662
5677
  </div>
5663
- <div *ngIf="rightIcon || rightIconData" class="spacer"></div>
5678
+ <div *ngIf="rightIcon || rightIconData" class="spacer right-icon"></div>
5664
5679
  <co-icon *ngIf="rightIcon || rightIconData" class="input-text-right-icon" [icon]="rightIcon" [iconData]="rightIconData"
5665
5680
  (click)="handleRightIconClick($event)" (mousedown)="handleRightIconMouseDown($event)" (mouseup)="handleRightIconMouseUp($event)"></co-icon>
5666
5681
  </div>
@@ -10452,6 +10467,7 @@ class ListOfValuesComponent extends BaseInputComponent {
10452
10467
  this.multiselect = false;
10453
10468
  this.displayField = 'description';
10454
10469
  this.searchDisabled = false;
10470
+ this.closeAfterOptionChosen = true;
10455
10471
  this.isSelectOpen = false;
10456
10472
  this.state = 'default';
10457
10473
  this.selectedModels = [];
@@ -10555,6 +10571,9 @@ class ListOfValuesComponent extends BaseInputComponent {
10555
10571
  }
10556
10572
  else {
10557
10573
  this.selectedModel = option[this.displayField];
10574
+ if (this.closeAfterOptionChosen) {
10575
+ this.toggleSelect();
10576
+ }
10558
10577
  }
10559
10578
  }
10560
10579
  this.model = option;
@@ -10652,6 +10671,7 @@ ListOfValuesComponent.propDecorators = {
10652
10671
  label: [{ type: Input }],
10653
10672
  customCssClass: [{ type: Input }],
10654
10673
  searchDisabled: [{ type: Input }],
10674
+ closeAfterOptionChosen: [{ type: Input }],
10655
10675
  showClass: [{ type: HostBinding, args: ['class.co-list-of-values',] }]
10656
10676
  };
10657
10677
 
@@ -10790,6 +10810,45 @@ ListOfValuesModule.decorators = [
10790
10810
  },] }
10791
10811
  ];
10792
10812
 
10813
+ class ResponsiveTextComponent {
10814
+ showClass() {
10815
+ return true;
10816
+ }
10817
+ }
10818
+ ResponsiveTextComponent.decorators = [
10819
+ { type: Component, args: [{
10820
+ selector: 'co-responsive-text',
10821
+ template: `
10822
+ <svg viewBox="0 0 100 100">
10823
+ <foreignObject height="100%" width="100%">
10824
+ <div class="text" [textContent]="text"></div>
10825
+ </foreignObject>
10826
+ </svg>
10827
+ `,
10828
+ encapsulation: ViewEncapsulation.None
10829
+ },] }
10830
+ ];
10831
+ ResponsiveTextComponent.propDecorators = {
10832
+ text: [{ type: Input }],
10833
+ showClass: [{ type: HostBinding, args: ['class.co-responsive-text',] }]
10834
+ };
10835
+
10836
+ class ResponsiveTextModule {
10837
+ }
10838
+ ResponsiveTextModule.decorators = [
10839
+ { type: NgModule, args: [{
10840
+ imports: [
10841
+ CommonModule
10842
+ ],
10843
+ declarations: [
10844
+ ResponsiveTextComponent
10845
+ ],
10846
+ exports: [
10847
+ ResponsiveTextComponent
10848
+ ]
10849
+ },] }
10850
+ ];
10851
+
10793
10852
  class FilterPipe {
10794
10853
  transform(items, field, value) {
10795
10854
  if (!items || !field) {
@@ -11578,5 +11637,5 @@ ColorSequenceService.decorators = [
11578
11637
  * Generated bundle index. Do not edit.
11579
11638
  */
11580
11639
 
11581
- export { ArticleTileComponent, ArticleTileModule, BaseInputComponent, BaseInputDatePickerDirective, ButtonComponent, ButtonModule, CalendarComponent, CalendarModule, CardComponent, CardModule, Carousel3dComponent, Carousel3dModule, CarouselComponent, CarouselHammerConfig, CarouselModule, CheckmarkOverlayModule, ClickoutsideModule, CoDialogComponent, CoDialogModule, CoDialogWizardComponent, CoDialogWizardModule, CoDirection, CoOrientation, CollapsibleComponent, CollapsibleModule, ColorSequenceService, ColumnAlign, ContentViewMode, CoreComponentsIcon, CoreComponentsTranslationModule, CoreComponentsTranslationService, DoubleCalendarComponent, DoubleCalendarModule, FilterItemComponent, FilterItemModule, FilterItemViewmodel, FilterPipe, FilterPipeModule, FilterViewmodel, FormComponent, FormInputUserModelChangeListenerService, FormMasterService, FormModule, GridToolbarButtonComponent, GridToolbarButtonModule, GridToolbarComponent, GridToolbarModule, IconCacheService, IconCollapseHandleComponent, IconCollapseHandleModule, IconComponent, IconModule, ImageComponent, ImageModule, InputCheckboxComponent, InputCheckboxModule, InputDatePickerComponent, InputDatePickerModule, InputDateRangePickerComponent, InputDateRangePickerModule, InputNumberPickerComponent, InputNumberPickerModule, InputRadioButtonComponent, InputRadioButtonModule, InputSearchComponent, InputSearchModule, InputTextComponent, InputTextModule, InputTextareaComponent, InputTextareaModule, LevelIndicatorComponent, LevelIndicatorModule, ListOfValuesComponent, ListOfValuesModule, ListOfValuesPopupComponent, NgZoneWrapperService, ObserveVisibilityModule, OrientationOfDirection, OverlayModule, OverlayService, PaginationBarComponent, PaginationBarModule, PaginationComponent, PaginationModule, PopupButtonsComponent, PopupMessageDisplayComponent, PopupModule, PopupWindowShellComponent, PriceDisplayPipe, PriceDisplayPipeModule, PromptService, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, ScreenConfigurationModule, SimpleGridColumnDirective, SimpleGridComponent, SimpleGridModule, TextInputPopupComponent, TileComponent, TileModule, TooltipDirectiveModule, ViewModeButtonsComponent, ViewModeButtonsModule, emailValidator, equalValidator, getValidatePasswordErrorString, maxStringLengthValidator, passwordValidator, precisionScaleValidator, requiredValidator, showHideDialog, InputBoolean as ɵa, RippleModule as ɵb, PaginationService as ɵba, PaginatePipe as ɵbb, SimpleGridCellComponent as ɵbc, ListOfValuesMultiselectPopupComponent as ɵbd, PrependPipeModule as ɵbe, PrependPipe as ɵbf, TooltipModule as ɵbg, TooltipComponent as ɵbh, TooltipDirective as ɵbi, CheckmarkOverlayComponent as ɵbj, ScreenConfigurationDirective as ɵbk, ScreenConfigComponentWrapper as ɵbl, MD_RIPPLE_GLOBAL_OPTIONS as ɵc, CoRippleDirective as ɵd, CoViewportRulerService as ɵe, CoScrollDispatcherService as ɵf, CoScrollableDirective as ɵg, StopClickModule as ɵh, StopClickDirective as ɵi, BaseModule as ɵj, AppendPipeModule as ɵk, AppendPipe as ɵl, ValidationErrorModule as ɵm, OverlayDirective as ɵn, OverlayParentDirective as ɵo, LocalizePipe as ɵp, DictionaryService as ɵq, ValidationErrorComponent as ɵr, CommitButtonsModule as ɵs, CommitButtonsComponent as ɵt, ClickOutsideDirective as ɵu, ClickOutsideMasterService as ɵv, CalendarTemplateComponent as ɵw, PopupShowerService as ɵx, BaseSimpleGridComponent as ɵy, ObserveVisibilityDirective as ɵz };
11640
+ export { ArticleTileComponent, ArticleTileModule, BaseInputComponent, BaseInputDatePickerDirective, ButtonComponent, ButtonModule, CalendarComponent, CalendarModule, CardComponent, CardModule, Carousel3dComponent, Carousel3dModule, CarouselComponent, CarouselHammerConfig, CarouselModule, CheckmarkOverlayModule, ClickoutsideModule, CoDialogComponent, CoDialogModule, CoDialogWizardComponent, CoDialogWizardModule, CoDirection, CoOrientation, CollapsibleComponent, CollapsibleModule, ColorSequenceService, ColumnAlign, ContentViewMode, CoreComponentsIcon, CoreComponentsTranslationModule, CoreComponentsTranslationService, DoubleCalendarComponent, DoubleCalendarModule, FilterItemComponent, FilterItemModule, FilterItemViewmodel, FilterPipe, FilterPipeModule, FilterViewmodel, FormComponent, FormInputUserModelChangeListenerService, FormMasterService, FormModule, GridToolbarButtonComponent, GridToolbarButtonModule, GridToolbarComponent, GridToolbarModule, IconCacheService, IconCollapseHandleComponent, IconCollapseHandleModule, IconComponent, IconModule, ImageComponent, ImageModule, InputCheckboxComponent, InputCheckboxModule, InputDatePickerComponent, InputDatePickerModule, InputDateRangePickerComponent, InputDateRangePickerModule, InputNumberPickerComponent, InputNumberPickerModule, InputRadioButtonComponent, InputRadioButtonModule, InputSearchComponent, InputSearchModule, InputTextComponent, InputTextModule, InputTextareaComponent, InputTextareaModule, LevelIndicatorComponent, LevelIndicatorModule, ListOfValuesComponent, ListOfValuesModule, ListOfValuesPopupComponent, NgZoneWrapperService, ObserveVisibilityModule, OrientationOfDirection, OverlayModule, OverlayService, PaginationBarComponent, PaginationBarModule, PaginationComponent, PaginationModule, PopupButtonsComponent, PopupMessageDisplayComponent, PopupModule, PopupWindowShellComponent, PriceDisplayPipe, PriceDisplayPipeModule, PromptService, ResponsiveTextComponent, ResponsiveTextModule, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, ScreenConfigurationModule, SimpleGridColumnDirective, SimpleGridComponent, SimpleGridModule, TextInputPopupComponent, TileComponent, TileModule, TooltipDirectiveModule, ViewModeButtonsComponent, ViewModeButtonsModule, emailValidator, equalValidator, getValidatePasswordErrorString, maxStringLengthValidator, passwordValidator, precisionScaleValidator, requiredValidator, showHideDialog, InputBoolean as ɵa, RippleModule as ɵb, PaginationService as ɵba, PaginatePipe as ɵbb, SimpleGridCellComponent as ɵbc, ListOfValuesMultiselectPopupComponent as ɵbd, PrependPipeModule as ɵbe, PrependPipe as ɵbf, TooltipModule as ɵbg, TooltipComponent as ɵbh, TooltipDirective as ɵbi, CheckmarkOverlayComponent as ɵbj, ScreenConfigurationDirective as ɵbk, ScreenConfigComponentWrapper as ɵbl, MD_RIPPLE_GLOBAL_OPTIONS as ɵc, CoRippleDirective as ɵd, CoViewportRulerService as ɵe, CoScrollDispatcherService as ɵf, CoScrollableDirective as ɵg, StopClickModule as ɵh, StopClickDirective as ɵi, BaseModule as ɵj, AppendPipeModule as ɵk, AppendPipe as ɵl, ValidationErrorModule as ɵm, OverlayDirective as ɵn, OverlayParentDirective as ɵo, LocalizePipe as ɵp, DictionaryService as ɵq, ValidationErrorComponent as ɵr, CommitButtonsModule as ɵs, CommitButtonsComponent as ɵt, ClickOutsideDirective as ɵu, ClickOutsideMasterService as ɵv, CalendarTemplateComponent as ɵw, PopupShowerService as ɵx, BaseSimpleGridComponent as ɵy, ObserveVisibilityDirective as ɵz };
11582
11641
  //# sourceMappingURL=colijnit-corecomponents_v12.js.map