@colijnit/corecomponents_v12 12.0.99 → 12.0.101

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 (24) hide show
  1. package/bundles/colijnit-corecomponents_v12.umd.js +25 -10
  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/image/image.component.js +30 -8
  5. package/esm2015/lib/components/image/image.module.js +3 -2
  6. package/esm2015/lib/components/input-number-picker/input-number-picker.component.js +4 -3
  7. package/esm2015/lib/core/constant/default-upper-bound-for-range-components.js +2 -1
  8. package/esm2015/lib/core/model/bounds-constrained-number-value.js +3 -3
  9. package/fesm2015/colijnit-corecomponents_v12.js +33 -10
  10. package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
  11. package/lib/components/icon-collapse-handle/style/material.scss +0 -1
  12. package/lib/components/image/image.component.d.ts +18 -2
  13. package/lib/components/image/style/_layout.scss +29 -0
  14. package/lib/components/image/style/_material-definition.scss +10 -0
  15. package/lib/components/image/style/_theme.scss +14 -0
  16. package/lib/components/image/style/material.scss +4 -0
  17. package/lib/components/input-number-picker/style/_layout.scss +0 -1
  18. package/lib/components/input-number-picker/style/_material-definition.scss +4 -5
  19. package/lib/components/input-search/style/_material-definition.scss +1 -1
  20. package/lib/components/simple-grid/style/_material-definition.scss +2 -2
  21. package/lib/core/constant/default-upper-bound-for-range-components.d.ts +1 -0
  22. package/lib/style/_input.mixins.scss +3 -1
  23. package/lib/style/_variables.scss +5 -2
  24. package/package.json +1 -1
@@ -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,4 +1,20 @@
1
- export declare class ImageComponent {
1
+ import { OnInit } from '@angular/core';
2
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
+ export declare class ImageComponent implements OnInit {
4
+ private _sanitizer;
5
+ /**
6
+ * Source of the image, can be an URL or a base64 data string
7
+ */
2
8
  source: string;
3
- constructor();
9
+ /**
10
+ * Placeholder svg source to show when there is no image
11
+ */
12
+ placeHolder: string;
13
+ showClass: boolean;
14
+ error: boolean;
15
+ innerPlaceHolder: SafeHtml | undefined;
16
+ private _defaultPlaceholder;
17
+ constructor(_sanitizer: DomSanitizer);
18
+ ngOnInit(): void;
19
+ handleImageError(event: any): void;
4
20
  }
@@ -0,0 +1,29 @@
1
+ @include export-module('co-image-layout') {
2
+ .co-image {
3
+ font-family: $co-image-font-family;
4
+ font-size: $co-image-font-size;
5
+ display: flex;
6
+ align-items: center;
7
+ justify-content: center;
8
+ height: $co-image-height;
9
+ width: $co-image-width;
10
+ img {
11
+ width: 100%;
12
+ height: 100%;
13
+ object-fit: contain;
14
+ }
15
+ .no-image-wrapper {
16
+ display: flex;
17
+ flex-direction: column;
18
+ align-items: center;
19
+ justify-content: center;
20
+ row-gap: $co-image-no-image-row-gap;
21
+ opacity: $co-image-no-image-opacity;
22
+ font-size: $co-image-no-image-font-size;
23
+ .co-icon {
24
+ height: $co-image-no-image-icon-size;
25
+ width: $co-image-no-image-icon-size;
26
+ }
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,10 @@
1
+ $co-image-font-family: $cc-font-family !default;
2
+ $co-image-font-size: $cc-font-size-default !default;
3
+ $co-image-height: 100px !default;
4
+ $co-image-width: 100px !default;
5
+ $co-image-background: transparent !default;
6
+ $co-image-no-image-row-gap: 10px !default;
7
+ $co-image-no-image-color: black !default;
8
+ $co-image-no-image-opacity: 0.2 !default;
9
+ $co-image-no-image-font-size: $cc-font-size-default !default;
10
+ $co-image-no-image-icon-size: 40% !default;
@@ -0,0 +1,14 @@
1
+ @include export-module('co-image-theme') {
2
+ .co-image {
3
+ background: $co-image-background;
4
+ .no-image-wrapper {
5
+ svg { // for fontawesome icons
6
+ fill: $co-image-no-image-color;
7
+ }
8
+ & [fill] { // for own icons
9
+ fill: $co-image-no-image-color;
10
+ }
11
+ color: $co-image-no-image-color;
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./material-definition";
3
+ @import "./layout";
4
+ @import "./theme";
@@ -7,7 +7,6 @@
7
7
  //height: $cc-co-input-number-picker-height;
8
8
  width: fit-content;
9
9
  border: $cc-co-input-number-picker-border;
10
- border-width: $cc-co-input-number-picker-border-width;
11
10
  border-radius: $cc-co-input-number-picker-border-radius;
12
11
  .button-wrapper {
13
12
  padding: $cc-co-input-number-picker-button-padding;
@@ -1,13 +1,12 @@
1
1
  $cc-co-input-number-picker-font-family: $cc-font-family !default;
2
- $cc-co-input-number-picker-height: 40px !default;
2
+ $cc-co-input-number-picker-height: $cc-item-size !default;
3
3
  $cc-co-input-number-picker-width: 125px !default;
4
4
  $cc-co-input-number-picker-readonly-opacity: 0.5 !default;
5
5
  $cc-co-input-number-picker-text-align: center !default;
6
- $cc-co-input-number-picker-border: 1px solid !default;
7
- $cc-co-input-number-picker-border-width: 1px 1px 1px 1px !default;
6
+ $cc-co-input-number-picker-border: $cc-input-border-width solid $cc-input-border-color !default;
8
7
  $cc-co-input-number-picker-button-padding: 5px !default;
9
- $cc-co-input-number-picker-border-color: $cc-color-dark !default;
10
- $cc-co-input-number-picker-border-radius: 3px !default;
8
+ $cc-co-input-number-picker-border-color: $cc-input-border-color !default;
9
+ $cc-co-input-number-picker-border-radius: $cc-input-border-radius !default;
11
10
  $cc-co-input-number-picker-button-height: 25px !default;
12
11
  $cc-co-input-number-picker-button-width: 25px !default;
13
12
  $cc-co-input-number-picker-button-background-color: transparent !default;
@@ -3,7 +3,7 @@ $cc-co-input-search-font-size: $cc-font-size-default !default;
3
3
  $cc-co-input-search-height: $cc-item-size !default;
4
4
  $cc-co-input-search-background-color: #F5F5FC !default;
5
5
  $cc-co-input-search-border-style: $cc-input-border-style !default;
6
- $cc-co-input-search-border-width: $cc-input-border-width !default;
6
+ $cc-co-input-search-border-width: 0 !default;
7
7
  $cc-co-input-search-border-color: $cc-input-border-color !default;
8
8
  $cc-co-input-search-border-radius: 10px !default;
9
9
  $cc-co-input-search-label-color: $cc-color-label !default;
@@ -22,11 +22,11 @@ $cc-simple-grid-row-edit-input-background-color: white !default;
22
22
  $cc-simple-grid-row-hover-background-color: $cc-color-grid-row-hover-background !default;
23
23
  $cc-simple-grid-row-hover-background-transparent: transparent !default;
24
24
  $cc-simple-grid-row-border: none !default;
25
- $cc-simple-grid-row-border-color: #F5F5F5 !default;
25
+ $cc-simple-grid-row-border-color: #F5F5FC !default;
26
26
  $cc-simple-grid-row-border-width: 10px 0 0 0 !default;
27
27
  $cc-simple-grid-cell-padding: 15px 5px !default;
28
28
  $cc-simple-grid-row-height: auto !default;
29
- $cc-simple-grid-row-even-background: #F5F5F5 !default;
29
+ $cc-simple-grid-row-even-background: #F5F5FC !default;
30
30
 
31
31
  $cc-simple-grid-pagination-background-color: white !default;
32
32
  $cc-simple-grid-pagination-bar-margin: 10px 0 0 0 !default;
@@ -1 +1,2 @@
1
+ export declare const DEFAULT_LOWER_BOUND_FOR_RANGE_COMPONENTS: number;
1
2
  export declare const DEFAULT_UPPER_BOUND_FOR_RANGE_COMPONENTS: number;
@@ -80,7 +80,9 @@
80
80
  }
81
81
  }
82
82
  &:hover {
83
- border-color: $cc-input-hover-color;
83
+ border-style: $cc-input-border-hover-style;
84
+ border-width: $cc-input-border-hover-width;
85
+ border-color: $cc-input-border-hover-color;
84
86
  }
85
87
  }
86
88
 
@@ -110,11 +110,14 @@ $cc-input-margin-top: 16px !default;
110
110
  $cc-input-show-focus-line: true !default;
111
111
  $cc-input-focus-line-color: $cc-color-action !default;
112
112
  $cc-input-hover-darken: 75% !default;
113
- $cc-input-hover-color: #2d5fc4 !default;
113
+ $cc-input-hover-color: $cc-color-action !default;
114
114
  $cc-input-border-style: solid !default;
115
- $cc-input-border-width: 2px !default;
115
+ $cc-input-border-width: 1px !default;
116
116
  $cc-input-border-color: $cc-color-border !default;
117
117
  $cc-input-border-radius: 5px !default;
118
+ $cc-input-border-hover-style: solid !default;
119
+ $cc-input-border-hover-width: 2px !default;
120
+ $cc-input-border-hover-color: $cc-input-hover-color !default;
118
121
 
119
122
  $cc-input-focused-border-style: solid !default;
120
123
  $cc-input-focused-border-width: 2px !default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/corecomponents_v12",
3
- "version": "12.0.99",
3
+ "version": "12.0.101",
4
4
  "description": "Colijn IT core components for Angular 12",
5
5
  "private": false,
6
6
  "peerDependencies": {