@colijnit/corecomponents_v12 12.0.86 → 12.0.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,8 +4,9 @@ import { IconCacheService } from './icon-cache.service';
4
4
  export declare class IconComponent {
5
5
  private _iconCache;
6
6
  set icon(value: CoreComponentsIcon);
7
- iconData: SafeHtml | undefined;
7
+ set iconData(value: SafeHtml);
8
8
  showClass: boolean;
9
+ innerIconData: SafeHtml;
9
10
  constructor(_iconCache: IconCacheService);
10
11
  private _setIconFromEnum;
11
12
  }
@@ -1,14 +1,18 @@
1
1
  import { EventEmitter, OnDestroy } from '@angular/core';
2
2
  import { CoreComponentsIcon } from '../../core/enum/core-components-icon.enum';
3
3
  import { BaseInputComponent } from '../base/base-input.component';
4
+ import { SafeHtml } from '@angular/platform-browser';
4
5
  export declare class InputSearchComponent extends BaseInputComponent<string> implements OnDestroy {
5
6
  readonly searchIcon: CoreComponentsIcon;
6
7
  placeholder: string;
7
8
  search: EventEmitter<string>;
8
9
  useLeftIcon: boolean;
9
10
  useRightIcon: boolean;
11
+ leftIconData: SafeHtml | undefined;
12
+ rightIconData: SafeHtml | undefined;
10
13
  centerLabel: boolean;
11
- isSmall: boolean;
14
+ leftIconClick: EventEmitter<MouseEvent>;
15
+ rightIconClick: EventEmitter<MouseEvent>;
12
16
  showClass(): boolean;
13
17
  handleKeyDown(event: KeyboardEvent): void;
14
18
  }
@@ -1,19 +1,13 @@
1
1
  @include export-module('cc-input-search-layout') {
2
2
  .co-input-search {
3
- &.is-small {
4
- height: 2rem;
5
- .co-input-text {
6
- height: inherit;
7
- label {
8
- left: 0.5rem;
9
- top: 16px
10
- }
11
- .co-icon {
12
- height: 30px;
13
- width: 30px;
14
- }
15
- }
3
+ display: block;
4
+ font-family: $cc-co-input-search-font-family;
5
+ font-size: $cc-co-input-search-font-size;
6
+ height: $cc-co-input-search-height;
7
+ .co-input-text {
8
+ height: 100%;
16
9
  }
10
+
17
11
  .co-input-text {
18
12
  border-style: $cc-co-input-search-border-style;
19
13
  border-width: $cc-co-input-search-border-width;
@@ -53,11 +47,5 @@
53
47
  }
54
48
  }
55
49
  }
56
- &.custom-height {
57
- .co-input-text {
58
- height: $cc-co-input-search-custom-height;
59
- display: flex;
60
- }
61
- }
62
50
  }
63
51
  }
@@ -1,3 +1,6 @@
1
+ $cc-co-input-search-font-family: $cc-font-family !default;
2
+ $cc-co-input-search-font-size: $cc-font-size-default !default;
3
+ $cc-co-input-search-height: $cc-item-size !default;
1
4
  $cc-co-input-search-background-color: #F5F5FC !default;
2
5
  $cc-co-input-search-border-style: $cc-input-border-style !default;
3
6
  $cc-co-input-search-border-width: $cc-input-border-width !default;
@@ -1,10 +1,11 @@
1
- import { AfterViewInit, ChangeDetectorRef, ComponentFactoryResolver, ElementRef } from "@angular/core";
1
+ import { AfterViewInit, ChangeDetectorRef, ComponentFactoryResolver, ElementRef, EventEmitter } from '@angular/core';
2
2
  import { BaseInputComponent } from "../base/base-input.component";
3
3
  import { CoreComponentsIcon } from "../../core/enum/core-components-icon.enum";
4
4
  import { KeyboardCode } from "../../core/enum/keyboard-code.enum";
5
5
  import { FormInputUserModelChangeListenerService } from "../../core/service/form-input-user-change-listener.service";
6
6
  import { NgZoneWrapperService } from "../../core/service/ng-zone-wrapper.service";
7
7
  import { FormComponent } from "../form/form.component";
8
+ import { SafeHtml } from '@angular/platform-browser';
8
9
  export declare class InputTextComponent extends BaseInputComponent<any> implements AfterViewInit {
9
10
  formComponent: FormComponent;
10
11
  protected changeDetector: ChangeDetectorRef;
@@ -22,8 +23,12 @@ export declare class InputTextComponent extends BaseInputComponent<any> implemen
22
23
  keyDownWhiteList: KeyboardCode[];
23
24
  showPlaceholderOnFocus: boolean;
24
25
  leftIcon: CoreComponentsIcon;
26
+ leftIconData: SafeHtml | undefined;
25
27
  rightIcon: CoreComponentsIcon;
28
+ rightIconData: SafeHtml | undefined;
26
29
  noStyle: boolean;
30
+ leftIconClick: EventEmitter<MouseEvent>;
31
+ rightIconClick: EventEmitter<MouseEvent>;
27
32
  set model(value: any);
28
33
  get model(): any;
29
34
  showClass(): boolean;
@@ -6,7 +6,7 @@
6
6
  font-family: $cc-co-input-text-font-family;
7
7
  font-size: $cc-co-input-text-font-size;
8
8
  }
9
- &.hideArrows {
9
+ &.hide-arrows {
10
10
  input::-webkit-outer-spin-button,
11
11
  input::-webkit-inner-spin-button {
12
12
  -webkit-appearance: none;
@@ -34,9 +34,10 @@
34
34
  .input-text-left-icon {
35
35
  top: 50%;
36
36
  position: absolute;
37
- height: $cc-item-size;
38
- width: $cc-item-size;
37
+ height: 100%;
38
+ width: fit-content;
39
39
  transform: translateY(-50%);
40
+ max-height: $cc-co-input-text-icon-max-height;
40
41
  }
41
42
  input, label {
42
43
  margin-left: $cc-item-size;
@@ -48,9 +49,10 @@
48
49
  top: 50%;
49
50
  position: absolute;
50
51
  right: 0;
51
- height: $cc-item-size;
52
- width: $cc-item-size;
52
+ height: 100%;
53
+ width: fit-content;
53
54
  transform: translateY(-50%);
55
+ max-height: $cc-co-input-text-icon-max-height;
54
56
  }
55
57
  input, label {
56
58
  margin-right: $cc-item-size;
@@ -6,5 +6,6 @@ $cc-co-input-text-border-color: $cc-color-border !default;
6
6
  $cc-co-input-placeholder-color: $cc-color-border !default;
7
7
  $cc-co-input-placeholder-font-style: italic !default;
8
8
  $cc-co-input-text-small-height: 45px !default;
9
+ $cc-co-input-text-icon-max-height: 80px !default;
9
10
  //$cc-co-input-label-color: $cc-color-border !default;
10
11
  //$cc-co-input-label-font-style: normal !default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/corecomponents_v12",
3
- "version": "12.0.86",
3
+ "version": "12.0.88",
4
4
  "description": "Colijn IT core components for Angular 12",
5
5
  "private": false,
6
6
  "peerDependencies": {