@colijnit/corecomponents_v12 12.0.33 → 12.0.34

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 (97) hide show
  1. package/bundles/colijnit-corecomponents_v12.umd.js +85 -45
  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/card/card.component.js +31 -29
  5. package/esm2015/lib/components/filter-item/filter-item.component.js +41 -36
  6. package/esm2015/lib/components/icon/icon.component.js +7 -5
  7. package/esm2015/lib/components/input-search/input-search.component.js +7 -2
  8. package/esm2015/lib/components/input-text/input-text.component.js +7 -1
  9. package/esm2015/lib/components/level-indicator/level-indicator.component.js +7 -5
  10. package/esm2015/lib/components/popup/popup-window-shell.component.js +1 -1
  11. package/esm2015/lib/components/simple-grid/simple-grid-column.directive.js +15 -1
  12. package/esm2015/lib/components/simple-grid/simple-grid.component.js +10 -5
  13. package/esm2015/lib/components/tile/tile.component.js +33 -31
  14. package/esm2015/lib/core/interface/filter-item-viewmodel.js +2 -0
  15. package/esm2015/lib/core/interface/filter-viewmodel.js +2 -0
  16. package/fesm2015/colijnit-corecomponents_v12.js +142 -99
  17. package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
  18. package/lib/components/base/commit-buttons/style/material.scss +0 -1
  19. package/lib/components/button/style/material.scss +1 -1
  20. package/lib/components/button-drop-down/style/material.scss +0 -1
  21. package/lib/components/card/card.component.d.ts +4 -3
  22. package/lib/components/card/style/_layout.scss +102 -0
  23. package/lib/components/card/style/_material-definition.scss +0 -0
  24. package/lib/components/card/style/_theme.scss +4 -0
  25. package/lib/components/card/style/material.scss +4 -0
  26. package/lib/components/carousel-3d/style/material.scss +0 -1
  27. package/lib/components/co-dialog/style/material.scss +0 -1
  28. package/lib/components/co-dialog-wizard/style/material.scss +0 -1
  29. package/lib/components/co-kanban/style/material.scss +0 -1
  30. package/lib/components/co-rich-text-editor/style/material.scss +0 -1
  31. package/lib/components/collapsible/style/material.scss +0 -1
  32. package/lib/components/drop-down-list/style/material.scss +0 -1
  33. package/lib/components/filter-item/filter-item.component.d.ts +13 -14
  34. package/lib/components/filter-item/style/_layout.scss +27 -17
  35. package/lib/components/filter-item/style/_material-definition.scss +4 -3
  36. package/lib/components/filter-item/style/_theme.scss +2 -2
  37. package/lib/components/filter-item/style/material.scss +2 -1
  38. package/lib/components/grid/style/material.scss +0 -1
  39. package/lib/components/grid-toolbar/style/material.scss +0 -1
  40. package/lib/components/icon/icon.component.d.ts +1 -0
  41. package/lib/components/icon/style/_layout.scss +39 -0
  42. package/lib/components/icon/style/_material-definition.scss +0 -0
  43. package/lib/components/icon/style/_theme.scss +4 -0
  44. package/lib/components/icon/style/material.scss +4 -0
  45. package/lib/components/input-checkbox/style/material.scss +0 -1
  46. package/lib/components/input-checkbox-multi-select/style/material.scss +0 -1
  47. package/lib/components/input-combo-box/style/material.scss +0 -1
  48. package/lib/components/input-date-picker/style/_material-definition.scss +1 -0
  49. package/lib/components/input-date-picker/style/material.scss +0 -1
  50. package/lib/components/input-date-range-picker/style/material.scss +0 -1
  51. package/lib/components/input-listbox/style/material.scss +0 -1
  52. package/lib/components/input-number-picker/style/material.scss +0 -1
  53. package/lib/components/input-radio-button/style/material.scss +0 -1
  54. package/lib/components/input-search/input-search.component.d.ts +2 -0
  55. package/lib/components/input-search/style/_layout.scss +13 -0
  56. package/lib/components/input-search/style/_material-definition.scss +5 -0
  57. package/lib/components/input-search/style/_theme.scss +6 -0
  58. package/lib/components/input-search/style/material.scss +0 -1
  59. package/lib/components/input-text/input-text.component.d.ts +2 -0
  60. package/lib/components/input-text/style/_layout.scss +12 -0
  61. package/lib/components/input-text/style/_material-definition.scss +5 -0
  62. package/lib/components/input-text/style/_theme.scss +16 -0
  63. package/lib/components/input-text/style/material.scss +0 -1
  64. package/lib/components/input-textarea/style/material.scss +0 -1
  65. package/lib/components/level-indicator/level-indicator.component.d.ts +2 -1
  66. package/lib/components/level-indicator/style/_layout.scss +58 -0
  67. package/lib/components/level-indicator/style/_material-definition.scss +0 -0
  68. package/lib/components/level-indicator/style/_theme.scss +4 -0
  69. package/lib/components/level-indicator/style/material.scss +4 -0
  70. package/lib/components/multi-select-list/style/material.scss +0 -1
  71. package/lib/components/pivot/style/material.scss +0 -1
  72. package/lib/components/simple-grid/simple-grid-column.directive.d.ts +6 -2
  73. package/lib/components/simple-grid/style/_layout.scss +4 -2
  74. package/lib/components/simple-grid/style/_material-definition.scss +1 -2
  75. package/lib/components/simple-grid/style/_theme.scss +4 -4
  76. package/lib/components/simple-grid/style/material.scss +0 -1
  77. package/lib/components/tile/style/_layout.scss +54 -0
  78. package/lib/components/tile/style/_material-definition.scss +0 -0
  79. package/lib/components/tile/style/_theme.scss +4 -0
  80. package/lib/components/tile/style/material.scss +4 -0
  81. package/lib/components/tile/tile.component.d.ts +1 -0
  82. package/lib/components/validation-error/style/material.scss +0 -1
  83. package/lib/core/interface/filter-item-viewmodel.d.ts +6 -0
  84. package/lib/core/interface/filter-viewmodel.d.ts +4 -0
  85. package/lib/modules/pagination/{pagination.scss → style/_layout.scss} +30 -22
  86. package/lib/modules/pagination/style/_material-definition.scss +0 -0
  87. package/lib/modules/pagination/style/_theme.scss +5 -0
  88. package/lib/modules/pagination/style/material.scss +5 -0
  89. package/lib/style/_input.mixins.scss +17 -0
  90. package/lib/style/_variables.scss +6 -16
  91. package/lib/style/corecomponents-globals.scss +49 -0
  92. package/package.json +1 -1
  93. package/lib/components/card/card.scss +0 -175
  94. package/lib/components/icon/icon.scss +0 -28
  95. package/lib/components/level-indicator/level-indicator.scss +0 -58
  96. package/lib/components/tile/tile.component.scss +0 -218
  97. package/lib/style/main.scss +0 -37
@@ -1,4 +1,3 @@
1
- @import "../../../../style/variables";
2
1
  @import "./material-definition";
3
2
  @import "./layout";
4
3
  @import "./theme";
@@ -1,7 +1,7 @@
1
- @import "../../../style/variables";
2
1
  @import "./material-definition";
3
2
  @import "./layout";
4
3
  @import "./theme";
4
+ @import "../../icon/style/material";
5
5
  /*
6
6
  @import "co-ripple";
7
7
  @import "../../../style/material2/theming/palette";
@@ -1,5 +1,4 @@
1
1
  @import "../../../style/mixin";
2
- @import "../../../style/variables";
3
2
  @import "./material-definition";
4
3
  @import "./layout";
5
4
  @import "./theme";
@@ -1,6 +1,6 @@
1
1
  import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
- import { IconCacheService } from "../icon/icon-cache.service";
3
- import { LevelIndicatorLevel } from "../level-indicator/level-indicator-level.enum";
2
+ import { IconCacheService } from '../icon/icon-cache.service';
3
+ import { LevelIndicatorLevel } from '../level-indicator/level-indicator-level.enum';
4
4
  export declare class CardComponent {
5
5
  icons: IconCacheService;
6
6
  private _changeDetector;
@@ -15,8 +15,9 @@ export declare class CardComponent {
15
15
  readonly contentClick: EventEmitter<MouseEvent>;
16
16
  readonly infoButtonClick: EventEmitter<MouseEvent>;
17
17
  readonly magnifierButtonClick: EventEmitter<MouseEvent>;
18
+ showClass: boolean;
19
+ onHostClick(event: MouseEvent): void;
18
20
  readonly Icons: any;
19
21
  heightCard: number;
20
- onHostClick(event: MouseEvent): void;
21
22
  constructor(icons: IconCacheService, _changeDetector: ChangeDetectorRef);
22
23
  }
@@ -0,0 +1,102 @@
1
+ @include export-module('co-card-layout') {
2
+ .co-card {
3
+ display: block;
4
+ .co-card-wrapper {
5
+ display: flex;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ position: relative;
9
+ //flex-shrink: 0;
10
+ //flex-grow: 0;
11
+ //width: 150px;
12
+ //height: 220px;
13
+ border-radius: 5px;
14
+ padding: 10px;
15
+ transition: all 0.14s ease-out;
16
+ .content-wrapper {
17
+ position: relative;
18
+ width: 100%;
19
+ padding-top: 100%;
20
+ }
21
+ .image {
22
+ position: absolute;
23
+ top: 0;
24
+ height: 100%;
25
+ width: 100%;
26
+ background-color: white;
27
+ border-radius: 15%;
28
+ overflow: hidden;
29
+ }
30
+ .check {
31
+ position: absolute;
32
+ background-color: #8faba6;
33
+ z-index: 1;
34
+ border-radius: 50%;
35
+ transform: scale(1.1);
36
+ right: 7px;
37
+ top: 7px;
38
+ ::ng-deep svg {
39
+ transform: scale(0.9);
40
+ }
41
+ }
42
+ .magnify {
43
+ position: absolute;
44
+ visibility: hidden;
45
+ top: 1px;
46
+ left: 1px;
47
+ z-index: 2; /* above co-icon.check */
48
+ ::ng-deep svg {
49
+ transform: scale(1.5);
50
+ }
51
+ }
52
+ .info {
53
+ position: absolute;
54
+ bottom: 1px;
55
+ right: 1px;
56
+ }
57
+ .co-level-indicator {
58
+ position: absolute;
59
+ bottom: 1px;
60
+ left: 50%;
61
+ transform: translateX(-50%);
62
+ }
63
+ .description-wrapper {
64
+ display: flex;
65
+ flex-direction: column;
66
+ align-items: center;
67
+ }
68
+ }
69
+ &.border-hover:hover {
70
+ .co-card-wrapper {
71
+ box-shadow: 0 0 3px 2px rgba(128, 128, 128, 0.4);
72
+ background-color: initial;
73
+ }
74
+ }
75
+
76
+ &:hover {
77
+ .co-card-wrapper {
78
+ background-color: rgb(228, 233, 232);
79
+ }
80
+ }
81
+
82
+ &:hover co-button.magnify {
83
+ visibility: visible;
84
+ }
85
+ co-image {
86
+ width: 100%;
87
+ height: 100%;
88
+ object-fit: contain;
89
+ }
90
+ span.description {
91
+ font-size: $cc-input-font-size;
92
+ margin-top: 10px;
93
+ text-align: center;
94
+ }
95
+
96
+ span.price {
97
+ //position: absolute;
98
+ //bottom: 10px;
99
+ font-weight: bold;
100
+ }
101
+ }
102
+ }
@@ -0,0 +1,4 @@
1
+ @include export-module('co-card-theme') {
2
+ .co-card {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./material-definition";
3
+ @import "./layout";
4
+ @import "./theme";
@@ -1,5 +1,4 @@
1
1
  @import "../../../style/mixin";
2
- @import "../../../style/variables";
3
2
  @import "./material-definition";
4
3
  @import "./layout";
5
4
  @import "./theme";
@@ -1,5 +1,4 @@
1
1
  @import "../../../style/mixin";
2
- @import "../../../style/variables";
3
2
  @import "./material-definition";
4
3
  @import "./layout";
5
4
  @import "./theme";
@@ -1,5 +1,4 @@
1
1
  @import "../../../style/mixin";
2
- @import "../../../style/variables";
3
2
  @import "./material-definition";
4
3
  @import "./layout";
5
4
  @import "./theme";
@@ -1,5 +1,4 @@
1
1
  @import "../../../style/mixin";
2
- @import "../../../style/variables";
3
2
  @import "./material-definition";
4
3
  @import "./layout";
5
4
  @import "./theme";
@@ -1,5 +1,4 @@
1
1
  @import "../../../style/mixin";
2
- @import "../../../style/variables";
3
2
  @import "./material-definition";
4
3
  @import "./layout";
5
4
  @import "./theme";
@@ -1,5 +1,4 @@
1
1
  @import "../../../style/mixin";
2
- @import "../../../style/variables";
3
2
  @import "./material-definition";
4
3
  @import "./layout";
5
4
  @import "./theme";
@@ -1,6 +1,5 @@
1
1
  @import "../../../style/mixin";
2
2
  @import "../../../style/input.mixins";
3
- @import "../../../style/variables";
4
3
  @import "./material-definition";
5
4
  @import "./layout";
6
5
  @import "./theme";
@@ -1,14 +1,15 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { CoreComponentsIcon } from '../../core/enum/core-components-icon.enum';
3
- import { IconCacheService } from '../icon/icon-cache.service';
1
+ import { EventEmitter, OnInit } from "@angular/core";
2
+ import { CoreComponentsIcon } from "../../core/enum/core-components-icon.enum";
3
+ import { FilterViewmodel } from "../../core/interface/filter-viewmodel";
4
+ import { IconCacheService } from "../icon/icon-cache.service";
4
5
  export declare class FilterItemComponent implements OnInit {
5
6
  iconService: IconCacheService;
6
7
  icons: typeof CoreComponentsIcon;
7
- set collection(value: any[]);
8
- get collection(): any[];
8
+ set collection(value: FilterViewmodel);
9
+ get collection(): FilterViewmodel;
9
10
  fields: {
10
- text: string;
11
- value: string;
11
+ text: any;
12
+ value: any;
12
13
  count?: string;
13
14
  };
14
15
  placeholder: string;
@@ -16,24 +17,22 @@ export declare class FilterItemComponent implements OnInit {
16
17
  expanded: boolean;
17
18
  customContent: boolean;
18
19
  searchable: boolean;
19
- showMore: boolean;
20
+ showAllResults: boolean;
20
21
  searchPlaceholder: string;
21
22
  showMoreLabel: string;
22
23
  showLessLabel: string;
23
- selectionChange: EventEmitter<any>;
24
+ noResultsLabel: string;
25
+ collectionChanged: EventEmitter<any>;
24
26
  showClass(): boolean;
25
- selectedCollection: any[];
26
- filteredCollection: any[];
27
+ filteredCollection: FilterViewmodel;
27
28
  limitTo: number;
28
29
  filterText: string;
29
- maxItems: number;
30
30
  private _collection;
31
31
  constructor(iconService: IconCacheService);
32
32
  ngOnInit(): void;
33
33
  setToInitialLimit(): void;
34
34
  increaseLimit(): void;
35
- updateSelection(): void;
36
35
  moreToShow(): boolean;
37
36
  lessToShow(): boolean;
38
- applyFilter(text: string): any[];
37
+ applyFilter(text: string): FilterViewmodel;
39
38
  }
@@ -14,6 +14,7 @@
14
14
  font-weight: $cc-co-filter-item-header-font-weight;
15
15
  padding: $cc-co-filter-item-header-padding;
16
16
  }
17
+
17
18
  .expand-icon-wrapper {
18
19
  .expand-icon {
19
20
  height: $cc-co-filter-item-header-icon-size;
@@ -22,28 +23,37 @@
22
23
  }
23
24
  }
24
25
 
25
- .co-filter-item-collection-results {
26
- max-height: 200px;
27
- margin: 10px 0;
28
- }
26
+ .co-filter-item-collection-content {
27
+ .no-results {
28
+ display: flex;
29
+ align-items: center;
30
+ height: $cc-co-filter-item-no-results-height;
31
+ }
32
+
33
+ .co-filter-item-collection-results {
34
+ margin: 10px 0;
35
+ }
29
36
 
30
- .co-filter-item-collection-result-item {
31
- display: flex;
32
- align-items: center;
33
- height: 25px;
34
- .co-filter-item-amount {
37
+ .co-filter-item-collection-result-item {
35
38
  display: flex;
36
39
  align-items: center;
37
- height: 100%;
38
- font-size: $cc-co-filter-item-collection-result-item-amount-font-size;
39
- opacity: $cc-co-filter-item-collection-result-item-amount-opacity;
40
- margin: 0 0 0 5px;
40
+ height: $cc-co-filter-item-collection-result-item-height;
41
+
42
+ .co-filter-item-amount {
43
+ display: flex;
44
+ align-items: center;
45
+ height: 100%;
46
+ font-size: $cc-co-filter-item-collection-result-item-amount-font-size;
47
+ opacity: $cc-co-filter-item-collection-result-item-amount-opacity;
48
+ margin: 0 0 0 5px;
49
+ }
41
50
  }
42
- }
43
51
 
44
- a {
45
- display: flex;
46
- align-items: center;
52
+ a {
53
+ display: flex;
54
+ align-items: center;
55
+ cursor: pointer;
56
+ }
47
57
  }
48
58
  }
49
59
  }
@@ -1,5 +1,6 @@
1
1
  $cc-co-filter-item-font-family: $cc-font-family !default;
2
2
  $cc-co-filter-item-font-size: $cc-font-size-default !default;
3
+ $cc-co-filter-item-border-color: #DCE4EA !default;
3
4
  $cc-co-filter-item-border-radius: 0 !default;
4
5
  $cc-co-filter-item-header-font-family: $cc-font-family !default;
5
6
  $cc-co-filter-item-header-font-size: $cc-font-size-default !default;
@@ -12,10 +13,10 @@ $cc-co-filter-item-header-border-color: #DCE4EA !default;
12
13
 
13
14
  $cc-co-filter-item-collection-results-container-padding: 10px !default;
14
15
  $cc-co-filter-item-collection-results-background-color: $cc-color-light !default;
15
- $cc-co-filter-item-collection-result-item-height: 1.8rem !default;
16
+ $cc-co-filter-item-collection-result-item-height: 25px !default;
16
17
  $cc-co-filter-item-collection-result-item-amount-font-size: 10px !default;
17
18
  $cc-co-filter-item-collection-result-item-amount-opacity: 0.7 !default;
18
19
 
19
- $cc-co-filter-item-show-more-less-color: $cc-float-label-font-color !default;
20
-
21
20
  $cc-co-filter-item-header-icon-size: 30px !default;
21
+ $cc-co-filter-item-no-results-height: 50px !default;
22
+ $cc-co-filter-item-clickable-color: $cc-color-action !default;
@@ -4,6 +4,7 @@
4
4
  @include export-module('co-filter-item-theme') {
5
5
  .co-filter-item {
6
6
  background-color: $cc-co-filter-item-header-background-color;
7
+ border-bottom: 1px solid $cc-co-filter-item-border-color;
7
8
 
8
9
  .collapsible-title {
9
10
  color: $cc-co-filter-item-header-text-color;
@@ -18,8 +19,7 @@
18
19
  }
19
20
 
20
21
  .clickable {
21
- cursor: pointer;
22
- color: $cc-co-filter-item-show-more-less-color;
22
+ color:$cc-co-filter-item-clickable-color;
23
23
  }
24
24
  }
25
25
  }
@@ -1,4 +1,5 @@
1
- @import "../../../style/variables";
1
+ @import "../../../style/mixin";
2
+ @import "../../../style/input.mixins";
2
3
  @import "./material-definition";
3
4
  @import "./layout";
4
5
  @import "./theme";
@@ -1,5 +1,4 @@
1
1
  @import "../../../style/mixin";
2
- @import "../../../style/variables";
3
2
  @import "./material-definition";
4
3
  @import "./layout";
5
4
  @import "./theme";
@@ -1,5 +1,4 @@
1
1
  @import "../../../style/mixin";
2
- @import "../../../style/variables";
3
2
  @import "./material-definition";
4
3
  @import "./layout";
5
4
  @import "./theme";
@@ -5,6 +5,7 @@ export declare class IconComponent {
5
5
  private _iconCache;
6
6
  set icon(value: CoreComponentsIcon);
7
7
  iconData: SafeHtml | undefined;
8
+ showClass: boolean;
8
9
  constructor(_iconCache: IconCacheService);
9
10
  private _setIconFromEnum;
10
11
  }
@@ -0,0 +1,39 @@
1
+ @include export-module('co-icon-layout') {
2
+ .co-icon {
3
+ display: flex;
4
+ align-items: center;
5
+ justify-content: center;
6
+ width: 30px;
7
+ height: 30px;
8
+ flex-shrink: 0;
9
+ svg {
10
+ max-height: 100%;
11
+ max-width: 100%;
12
+ width: 100%;
13
+ height: 100%;
14
+ }
15
+ &.big {
16
+ width: 50px;
17
+ height: 50px;
18
+ }
19
+
20
+ &.light {
21
+ svg { // for fontawesome icons
22
+ fill: $cc-color-light;
23
+ }
24
+ & [fill] { // for own icons
25
+ fill: $cc-color-light;
26
+ }
27
+ }
28
+
29
+ &.dark [fill] {
30
+ svg { // for fontawesome icons
31
+ fill: $cc-color-dark;
32
+ }
33
+ & [fill] { // for own icons
34
+ fill: $cc-color-dark;
35
+ }
36
+ }
37
+ }
38
+ }
39
+
@@ -0,0 +1,4 @@
1
+ @include export-module('co-icon-theme') {
2
+ .co-icon {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./material-definition";
3
+ @import "./layout";
4
+ @import "./theme";
@@ -1,5 +1,4 @@
1
1
  @import "../../../style/mixin";
2
- @import "../../../style/variables";
3
2
  @import "./material-definition";
4
3
  @import "./layout";
5
4
  @import "./theme";
@@ -1,5 +1,4 @@
1
1
  @import "../../../style/mixin";
2
- @import "../../../style/variables";
3
2
  @import "./material-definition";
4
3
  @import "./layout";
5
4
  @import "./theme";
@@ -1,6 +1,5 @@
1
1
  @import "../../../style/mixin";
2
2
  @import "../../../style/input.mixins";
3
- @import "../../../style/variables";
4
3
  @import "./material-definition";
5
4
  @import "./layout";
6
5
  @import "./theme";
@@ -1,6 +1,7 @@
1
1
  $cc-co-input-date-font-family: $cc-font-family !default;
2
2
  $cc-co-input-date-font-size: $cc-font-size-default !default;
3
3
  $input-border: none;
4
+ @import 'ej2-base/styles/_material-definition.scss';
4
5
  @import 'ej2-inputs/styles/input/_material-definition.scss';
5
6
  @import 'ej2-base/styles/material.scss';
6
7
  @import 'ej2-buttons/styles/material.scss';
@@ -1,6 +1,5 @@
1
1
  @import "../../../style/mixin";
2
2
  @import "../../../style/input.mixins";
3
- @import "../../../style/variables";
4
3
  @import "./material-definition";
5
4
  @import "./layout";
6
5
  @import "./theme";
@@ -1,6 +1,5 @@
1
1
  @import "../../../style/mixin";
2
2
  @import "../../../style/input.mixins";
3
- @import "../../../style/variables";
4
3
  @import "./material-definition";
5
4
  @import "./layout";
6
5
  @import "./theme";
@@ -1,6 +1,5 @@
1
1
  @import "../../../style/mixin";
2
2
  @import "../../../style/input.mixins";
3
- @import "../../../style/variables";
4
3
  @import "./material-definition";
5
4
  @import "./layout";
6
5
  @import "./theme";
@@ -1,5 +1,4 @@
1
1
  @import "../../../style/mixin";
2
- @import "../../../style/variables";
3
2
  @import "./material-definition";
4
3
  @import "./layout";
5
4
  @import "./theme";
@@ -1,5 +1,4 @@
1
1
  @import "../../../style/mixin";
2
- @import "../../../style/variables";
3
2
  @import "./material-definition";
4
3
  @import "./layout";
5
4
  @import "./theme";
@@ -4,6 +4,8 @@ import { BaseInputComponent } from '../base/base-input.component';
4
4
  export declare class InputSearchComponent extends BaseInputComponent<string> implements OnDestroy {
5
5
  readonly searchIcon: CoreComponentsIcon;
6
6
  placeholder: string;
7
+ iconRight: boolean;
8
+ noIcon: boolean;
7
9
  search: EventEmitter<string>;
8
10
  showClass(): boolean;
9
11
  handleKeyDown(event: KeyboardEvent): void;
@@ -1,4 +1,17 @@
1
1
  @include export-module('cc-input-search-layout') {
2
2
  .co-input-search {
3
+ .co-input-text {
4
+ border-radius: $cc-co-input-search-border-radius;
5
+ label {
6
+ font-style: $cc-co-input-search-label-font-style;
7
+ }
8
+ }
9
+ &.no-icon {
10
+ .co-input-text {
11
+ label {
12
+ margin: $cc-co-input-search-label-margin;
13
+ }
14
+ }
15
+ }
3
16
  }
4
17
  }
@@ -0,0 +1,5 @@
1
+ $cc-co-input-search-background-color: #F5F5FA !default;
2
+ $cc-co-input-search-border-radius: 10px !default;
3
+ $cc-co-input-search-label-color: #8083A3 !default;
4
+ $cc-co-input-search-label-font-style: italic !default;
5
+ $cc-co-input-search-label-margin: 0 0 0 15% !default;
@@ -1,4 +1,10 @@
1
1
  @include export-module('cc-input-search-theme') {
2
2
  .co-input-search {
3
+ .co-input-text {
4
+ background: $cc-co-input-search-background-color;
5
+ label {
6
+ color: $cc-co-input-search-label-color;
7
+ }
8
+ }
3
9
  }
4
10
  }
@@ -1,5 +1,4 @@
1
1
  @import "../../../style/mixin";
2
- @import "../../../style/variables";
3
2
  @import "./material-definition";
4
3
  @import "./layout";
5
4
  @import "./theme";
@@ -20,10 +20,12 @@ export declare class InputTextComponent extends BaseInputComponent<any> implemen
20
20
  keyDownWhiteList: KeyboardCode[];
21
21
  showPlaceholderOnFocus: boolean;
22
22
  leftIcon: CoreComponentsIcon;
23
+ rightIcon: CoreComponentsIcon;
23
24
  set model(value: any);
24
25
  get model(): any;
25
26
  showClass(): boolean;
26
27
  get hasLeftIcon(): boolean;
28
+ get hasRightIcon(): boolean;
27
29
  hasOwnLabel: boolean;
28
30
  hideArrowButtons: boolean;
29
31
  constructor(formComponent: FormComponent, changeDetector: ChangeDetectorRef, componentFactoryResolver: ComponentFactoryResolver, formUserChangeListener?: FormInputUserModelChangeListenerService, ngZoneWrapper?: NgZoneWrapperService, elementRef?: ElementRef);
@@ -23,6 +23,18 @@
23
23
  width: calc(100% - #{$cc-item-size});
24
24
  }
25
25
  }
26
+ &.has-right-icon {
27
+ .input-text-right-icon {
28
+ position: absolute;
29
+ height: $cc-item-size;
30
+ width: $cc-item-size;
31
+ top: 0;
32
+ right: 0;
33
+ }
34
+ input, label {
35
+ width: calc(100% - #{$cc-item-size});
36
+ }
37
+ }
26
38
  &.hideArrows {
27
39
  input::-webkit-outer-spin-button,
28
40
  input::-webkit-inner-spin-button {
@@ -1,4 +1,9 @@
1
1
  $cc-co-input-text-font-family: $cc-font-family !default;
2
2
  $cc-co-input-text-font-size: $cc-font-size-default !default;
3
3
  $cc-co-input-text-font-color: $cc-color-dark !default;
4
+ $cc-co-input-text-background-color: white !default;
4
5
  $cc-co-input-text-border-color: $cc-color-border !default;
6
+ $cc-co-input-placeholder-color: $cc-color-border !default;
7
+ $cc-co-input-placeholder-font-style: italic !default;
8
+ //$cc-co-input-label-color: $cc-color-border !default;
9
+ //$cc-co-input-label-font-style: normal !default;
@@ -1,7 +1,23 @@
1
1
  @include export-module('cc-input-text-theme') {
2
2
  .co-input-text {
3
+ background: $cc-co-input-text-background-color;
3
4
  input {
4
5
  background: transparent;
5
6
  }
7
+ ::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
8
+ color: $cc-color-input-placeholder-color;
9
+ font-style: $cc-co-input-placeholder-font-style;
10
+ opacity: 1; /* Firefox */
11
+ }
12
+
13
+ :-ms-input-placeholder { /* Internet Explorer 10-11 */
14
+ color: $cc-color-input-placeholder-color;
15
+ font-style: $cc-co-input-placeholder-font-style;
16
+ }
17
+
18
+ ::-ms-input-placeholder { /* Microsoft Edge */
19
+ color: $cc-color-input-placeholder-color;
20
+ font-style: $cc-co-input-placeholder-font-style;
21
+ }
6
22
  }
7
23
  }