@colijnit/corecomponents_v12 12.1.2 → 12.1.4

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 (33) hide show
  1. package/bundles/colijnit-corecomponents_v12.umd.js +142 -41
  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/co-dialog/co-dialog.component.js +2 -2
  5. package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.component.js +6 -1
  6. package/esm2015/lib/components/input-text/input-text.component.js +3 -3
  7. package/esm2015/lib/components/list-of-values/list-of-values-popup.component.js +75 -34
  8. package/esm2015/lib/components/list-of-values/list-of-values.component.js +25 -9
  9. package/esm2015/lib/components/responsive-text/responsive-text.component.js +24 -0
  10. package/esm2015/lib/components/responsive-text/responsive-text.module.js +19 -0
  11. package/esm2015/public-api.js +3 -1
  12. package/fesm2015/colijnit-corecomponents_v12.js +145 -45
  13. package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
  14. package/lib/components/co-dialog/style/_layout.scss +28 -11
  15. package/lib/components/co-dialog/style/_material-definition.scss +4 -1
  16. package/lib/components/filter-item/style/_layout.scss +10 -0
  17. package/lib/components/filter-item/style/_material-definition.scss +5 -0
  18. package/lib/components/input-date-range-picker/input-date-range-picker.component.d.ts +1 -0
  19. package/lib/components/input-text/style/_material-definition.scss +1 -0
  20. package/lib/components/list-of-values/list-of-values-popup.component.d.ts +6 -5
  21. package/lib/components/list-of-values/list-of-values.component.d.ts +1 -0
  22. package/lib/components/list-of-values/style/_layout.scss +22 -3
  23. package/lib/components/list-of-values/style/_material-definition.scss +5 -0
  24. package/lib/components/responsive-text/responsive-text.component.d.ts +4 -0
  25. package/lib/components/responsive-text/responsive-text.module.d.ts +2 -0
  26. package/lib/components/responsive-text/style/_layout.scss +9 -0
  27. package/lib/components/responsive-text/style/_material-definition.scss +0 -0
  28. package/lib/components/responsive-text/style/_theme.scss +4 -0
  29. package/lib/components/responsive-text/style/material.scss +4 -0
  30. package/lib/components/simple-grid/style/_layout.scss +4 -0
  31. package/lib/components/simple-grid/style/_material-definition.scss +1 -0
  32. package/package.json +1 -1
  33. package/public-api.d.ts +2 -0
@@ -40,10 +40,10 @@
40
40
  align-items: center;
41
41
  font-family: $cc-co-dialog-header-font-family;
42
42
  font-size: $cc-co-dialog-header-font-size;
43
+ padding: $cc-co-dialog-header-padding;
43
44
  .dialog-header-caption {
44
45
  width: 100%;
45
46
  font-weight: $cc-co-dialog-header-font-weight;
46
- padding: $cc-co-dialog-header-padding;
47
47
  margin: $cc-co-dialog-header-margin;
48
48
  border-style: $cc-co-dialog-header-border-style;
49
49
  border-width: $cc-co-dialog-header-border-width;
@@ -52,16 +52,13 @@
52
52
  display: flex;
53
53
  align-items: center;
54
54
  justify-content: center;
55
- position: absolute;
56
- top: 0;
57
- right: 5px;
58
- transform: translateY(-50%);
59
- width: 36px;
60
- height: 36px;
55
+ width: $cc-co-dialog-header-close-button-size;
56
+ height: $cc-co-dialog-header-close-button-size;
61
57
  border-radius: 5px;
62
- .co-icon [fill] {
63
- fill: white;
64
- }
58
+ position: absolute;
59
+ right: $cc-co-dialog-header-close-button-right;
60
+ top: $cc-co-dialog-header-close-button-top;
61
+ background: $cc-co-dialog-header-close-button-background-color;
65
62
  }
66
63
  }
67
64
  .dialog-content {
@@ -79,7 +76,27 @@
79
76
  margin: $cc-co-dialog-footer-margin;
80
77
  border-style: $cc-co-dialog-footer-border-style;
81
78
  border-width: $cc-co-dialog-footer-border-width;
82
-
79
+ co-button ::ng-deep {
80
+ cursor: pointer;
81
+ &.ok-click {
82
+ co-icon {
83
+ svg {
84
+ path {
85
+ fill: #5FDCB3;
86
+ }
87
+ }
88
+ }
89
+ }
90
+ &.cancel-click {
91
+ co-icon {
92
+ svg {
93
+ path {
94
+ fill: #6b6e8a;
95
+ }
96
+ }
97
+ }
98
+ }
99
+ }
83
100
  }
84
101
  .dialog-close-button {
85
102
  cursor: pointer;
@@ -11,7 +11,10 @@ $cc-co-dialog-header-margin: 0 0 10px 0 !default;
11
11
  $cc-co-dialog-header-border-style: solid !default;
12
12
  $cc-co-dialog-header-border-color: $cc-color-border !default;
13
13
  $cc-co-dialog-header-border-width: 0 0 1px 0 !default;
14
- $cc-co-dialog-header-close-button-background-color: #4682b4 !default;
14
+ $cc-co-dialog-header-close-button-background-color: transparent !default;
15
+ $cc-co-dialog-header-close-button-right: 20px !default;
16
+ $cc-co-dialog-header-close-button-top: 10px !default;
17
+ $cc-co-dialog-header-close-button-size: 30px !default;
15
18
  $cc-co-dialog-min-width: 250px !default;
16
19
  $cc-co-dialog-background-color: $cc-color-light !default;
17
20
  $cc-co-dialog-box-shadow: 0 0 10px #484f6040 !default;
@@ -27,6 +27,16 @@
27
27
  width: $cc-co-filter-item-header-icon-size;
28
28
  }
29
29
  }
30
+ .collapsible-header {
31
+ .collapsible-button {
32
+ border-color: $cc-co-filter-item-collapsible-header-search-border;
33
+ color: $cc-co-filter-item-collapsible-header-search-color;
34
+ &:hover {
35
+ background: $cc-co-filter-item-collapsible-header-search-hover-background;
36
+ color: $cc-co-filter-item-collapsible-header-search-hover-color;
37
+ }
38
+ }
39
+ }
30
40
  }
31
41
 
32
42
  .co-filter-item-collection-content {
@@ -13,8 +13,13 @@ $cc-co-filter-item-header-border-color: #DCE4EA !default;
13
13
  $cc-co-filter-item-header-border-width: 0 !default;
14
14
  $cc-co-filter-item-header-icon-size: 30px !default;
15
15
 
16
+
16
17
  $cc-co-filter-item-collapsible-content-padding: 0 10px 20px 10px !default;
17
18
  $cc-co-filter-item-collapsible-width: 95% !default;
19
+ $cc-co-filter-item-collapsible-header-search-color: $cc-color-action !default;
20
+ $cc-co-filter-item-collapsible-header-search-hover-background: $cc-color-action !default;
21
+ $cc-co-filter-item-collapsible-header-search-border: $cc-color-action !default;
22
+ $cc-co-filter-item-collapsible-header-search-hover-color: $cc-color-light !default;
18
23
 
19
24
  $cc-co-filter-item-collection-results-container-padding: 10px !default;
20
25
  $cc-co-filter-item-collection-results-background-color: $cc-color-light !default;
@@ -6,6 +6,7 @@ export declare class InputDateRangePickerComponent extends BaseInputDatePickerDi
6
6
  showClass(): boolean;
7
7
  handleDatesSelected(dates: Date[]): void;
8
8
  handleSecondDateSelected(): void;
9
+ clearDate(index: number): void;
9
10
  toggleCalendar(): void;
10
11
  handleFirstDateChanged(value: string): void;
11
12
  handleSecondDateChanged(value: string): void;
@@ -10,6 +10,7 @@ $cc-co-input-text-icon-max-height: 80px !default;
10
10
  $cc-co-input-text-icon-size: 50% !default;
11
11
  $cc-co-input-text-icon-margin-number: 0 !default;
12
12
  $cc-co-input-text-spacer-width: $cc-input-border-width !default;
13
+ $cc-co-input-text-right-spacer-width: 0 !default;
13
14
  $cc-co-input-text-spacer-color: $cc-input-border-color !default;
14
15
  //$cc-co-input-label-color: $cc-color-border !default;
15
16
  //$cc-co-input-label-font-style: normal !default;
@@ -24,18 +24,19 @@ export declare class ListOfValuesPopupComponent implements OnInit {
24
24
  get searchTerm(): string;
25
25
  viewModels: lovViewModel[];
26
26
  viewModelsMain: lovViewModel[];
27
+ highLightModel: lovViewModel;
27
28
  private _collection;
28
29
  private _searchTerm;
29
30
  private _lovItems;
30
- private _activeIndex;
31
31
  private _searchInput;
32
32
  ngOnInit(): void;
33
+ handleInputKeyDown(event: KeyboardEvent): boolean;
33
34
  filterViewModels(): void;
34
- selectViewModel(viewModel: lovViewModel): void;
35
- selectOptionByActiveIndex(closePopup?: boolean): void;
35
+ selectViewModel(viewModel: lovViewModel, closePopup?: boolean): void;
36
+ selectModelByViewModel(viewModel: lovViewModel, closePopup?: boolean): void;
37
+ selectOptionAndClosePopup(): void;
36
38
  selectOptions(): void;
37
- selectNextOption(): void;
38
- selectPreviousOption(): void;
39
+ selectNextOption(back?: boolean): void;
39
40
  private _prepareViewModelsMain;
40
41
  private _prepareViewModels;
41
42
  private _scrollIntoView;
@@ -32,5 +32,6 @@ export declare class ListOfValuesComponent extends BaseInputComponent<any> imple
32
32
  removeOptionFromModel(chip: any): void;
33
33
  optionChosen(option: any): void;
34
34
  closePopup(): void;
35
+ checkModel(): void;
35
36
  private _setSelectedModel;
36
37
  }
@@ -32,6 +32,16 @@
32
32
  box-shadow: none;
33
33
  }
34
34
  }
35
+ .right-icon {
36
+ min-width: $cc-co-list-of-values-right-icon-spacer-width;
37
+ }
38
+ .input-text-right-icon svg {
39
+ width: $cc-co-list-of-values-right-icon-width;
40
+ height: $cc-co-list-of-values-right-icon-width;
41
+ padding: $cc-co-list-of-values-right-icon-padding;
42
+ background: $cc-co-list-of-values-right-icon-background;
43
+ border-radius: $cc-co-list-of-values-right-icon-radius;
44
+ }
35
45
  }
36
46
  //&.cc-input-focused:not(.no-focus-line) {
37
47
  // @include focus($cc-co-list-of-values-border-focus-style, $cc-co-list-of-values-border-focus-width, $cc-co-list-of-values-border-focus-color, $cc-co-list-of-values-border-radius);
@@ -76,17 +86,26 @@
76
86
  font-family: $cc-co-list-of-values-font-family;
77
87
  font-size: $cc-co-list-of-values-font-size;
78
88
  .lov-options {
89
+ display: flex;
90
+ flex-direction: column;
79
91
  overflow: hidden;
80
92
  position: fixed;
81
93
  max-height: $cc-co-list-of-values-lov-options-max-height;
82
- overflow-y: auto;
83
94
  background-color: $cc-co-list-of-values-lov-options-background-color;
84
95
  border: $cc-co-list-of-values-lov-options-border;
85
96
  border-radius: $cc-co-list-of-values-lov-options-border-radius;
86
- margin-top: $cc-co-list-of-values-lov-options-margin;
87
97
  z-index: 99999999;
88
98
  }
89
- .lov-options ul {
99
+ .co-input-search {
100
+ display: flex;
101
+ flex-shrink: 0;
102
+ width: 100%;
103
+ .co-input-text {
104
+ width: 100%;
105
+ }
106
+ }
107
+ .dropdown-list {
108
+ overflow-y: auto;
90
109
  list-style-type: none;
91
110
  padding: 0;
92
111
  margin: 0;
@@ -9,6 +9,11 @@ $cc-co-list-of-values-border-radius: 5px !default;
9
9
  $cc-co-list-of-values-border-hover-style: solid !default;
10
10
  $cc-co-list-of-values-border-hover-width: 2px !default;
11
11
  $cc-co-list-of-values-border-hover-color: $cc-color-input-lov !default;
12
+ $cc-co-list-of-values-right-icon-spacer-width: 0 !default;
13
+ $cc-co-list-of-values-right-icon-width: 24px !default;
14
+ $cc-co-list-of-values-right-icon-background: #f5f5fc !default;
15
+ $cc-co-list-of-values-right-icon-radius: 100% !default;
16
+ $cc-co-list-of-values-right-icon-padding: 5px !default;
12
17
 
13
18
  $cc-co-list-of-values-border-focus-style: solid !default;
14
19
  $cc-co-list-of-values-border-focus-width: 1px !default;
@@ -0,0 +1,4 @@
1
+ export declare class ResponsiveTextComponent {
2
+ text: string;
3
+ showClass(): boolean;
4
+ }
@@ -0,0 +1,2 @@
1
+ export declare class ResponsiveTextModule {
2
+ }
@@ -0,0 +1,9 @@
1
+ @include export-module('co-responsive-text-layout') {
2
+ .co-responsive-text {
3
+ svg {
4
+ display: block;
5
+ height: 100%;
6
+ width: 100%;
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,4 @@
1
+ @include export-module('co-responsive-text-theme') {
2
+ .co-responsive-text {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";
@@ -62,6 +62,10 @@
62
62
  }
63
63
  .co-simple-grid-cell {
64
64
  width: 100%;
65
+ .co-icon {
66
+ width: $cc-simple-grid-cell-icon-size;
67
+ height: $cc-simple-grid-cell-icon-size;
68
+ }
65
69
  }
66
70
  .simple-grid-column-cell-value {
67
71
  //height: 100%;
@@ -27,6 +27,7 @@ $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
29
  $cc-simple-grid-row-even-background: #F5F5FC !default;
30
+ $cc-simple-grid-cell-icon-size: 20px !default;
30
31
 
31
32
  $cc-simple-grid-pagination-background-color: white !default;
32
33
  $cc-simple-grid-pagination-bar-margin: 10px 0 0 0 !default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/corecomponents_v12",
3
- "version": "12.1.2",
3
+ "version": "12.1.4",
4
4
  "description": "Colijn IT core components for Angular 12",
5
5
  "private": false,
6
6
  "peerDependencies": {
package/public-api.d.ts CHANGED
@@ -73,6 +73,8 @@ export * from './lib/components/view-mode-buttons/content-view-mode.enum';
73
73
  export * from './lib/components/list-of-values/list-of-values.component';
74
74
  export * from './lib/components/list-of-values/list-of-values-popup.component';
75
75
  export * from './lib/components/list-of-values/list-of-values.module';
76
+ export * from './lib/components/responsive-text/responsive-text.component';
77
+ export * from './lib/components/responsive-text/responsive-text.module';
76
78
  export * from './lib/pipes/price-display.pipe';
77
79
  export * from './lib/pipes/price-display-pipe.module';
78
80
  export * from './lib/pipes/filter.pipe';