@colijnit/corecomponents_v12 12.0.58 → 12.0.60

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 +134 -0
  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/icon-collapse-handle/icon-collapse-handle.component.js +64 -0
  5. package/esm2015/lib/components/icon-collapse-handle/icon-collapse-handle.module.js +23 -0
  6. package/esm2015/lib/components/input-search/input-search.component.js +3 -1
  7. package/esm2015/lib/core/enum/co-direction.js +9 -0
  8. package/esm2015/lib/core/enum/co-orientation.js +17 -0
  9. package/esm2015/lib/core/utils/direction-enum-utils.js +14 -0
  10. package/esm2015/public-api.js +5 -1
  11. package/fesm2015/colijnit-corecomponents_v12.js +116 -1
  12. package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
  13. package/lib/components/icon-collapse-handle/icon-collapse-handle.component.d.ts +21 -0
  14. package/lib/components/icon-collapse-handle/icon-collapse-handle.module.d.ts +2 -0
  15. package/lib/components/icon-collapse-handle/style/_layout.scss +95 -0
  16. package/lib/components/icon-collapse-handle/style/_material-definition.scss +0 -0
  17. package/lib/components/icon-collapse-handle/style/_theme.scss +6 -0
  18. package/lib/components/icon-collapse-handle/style/material.scss +5 -0
  19. package/lib/components/input-search/input-search.component.d.ts +1 -0
  20. package/lib/components/input-search/style/_layout.scss +20 -0
  21. package/lib/core/enum/co-direction.d.ts +6 -0
  22. package/lib/core/enum/co-orientation.d.ts +6 -0
  23. package/lib/core/utils/direction-enum-utils.d.ts +5 -0
  24. package/lib/style/_mixin.scss +7 -0
  25. package/lib/style/_variables.scss +2 -1
  26. package/package.json +1 -1
  27. package/public-api.d.ts +4 -0
@@ -0,0 +1,21 @@
1
+ import { CoDirection } from "../../core/enum/co-direction";
2
+ import { CoOrientation } from "../../core/enum/co-orientation";
3
+ import { CoreComponentsIcon } from "../../core/enum/core-components-icon.enum";
4
+ export declare class IconCollapseHandleComponent {
5
+ showClass(): boolean;
6
+ orientation: CoOrientation;
7
+ set arrowDirection(arrowDirection: CoDirection);
8
+ get arrowDirection(): CoDirection;
9
+ twoArrows: boolean;
10
+ get isVertical(): boolean;
11
+ get arrowsOrientatedHorizontally(): boolean;
12
+ get oppositeArrowDirection(): CoDirection;
13
+ readonly iconColorClass: string;
14
+ hidden: boolean;
15
+ required: boolean;
16
+ readonly: boolean;
17
+ readonly Icons: typeof CoreComponentsIcon;
18
+ private _arrowDirection;
19
+ private _oppositeArrowDirection;
20
+ constructor();
21
+ }
@@ -0,0 +1,2 @@
1
+ export declare class IconCollapseHandleModule {
2
+ }
@@ -0,0 +1,95 @@
1
+ @include export-module('cc-icon-collapse-handle-layout') {
2
+ .co-icon-collapse-handle {
3
+
4
+ @include button-small-semi-round($cc-color-light, 25px, 35px);
5
+ display: flex;
6
+ align-items: center !important;
7
+ justify-content: center !important;
8
+ border: 1px solid $cc-color-light-accent;
9
+ cursor: pointer;
10
+ flex-shrink: 0;
11
+ top: 50%;
12
+ transform: translateY(-50%);
13
+ overflow: hidden;
14
+
15
+ &.two-arrows {
16
+ co-icon { // smaller icons
17
+ position: relative;
18
+ width: 25px;
19
+ height: 25px;
20
+ }
21
+ co-icon.first { // reposition icons
22
+ top: 10px;
23
+ }
24
+ co-icon.second {
25
+ bottom: 10px;
26
+ }
27
+
28
+ &.arrows-orientated-horizontally {
29
+ div.wrap {
30
+ display: flex;
31
+ flex-direction: row;
32
+ }
33
+ co-icon.first { // reposition icons
34
+ left: 10px;
35
+ }
36
+ co-icon.second {
37
+ right: 10px;
38
+ }
39
+ }
40
+ }
41
+
42
+ &.vertical {
43
+ transform: rotate(90deg);
44
+ co-icon {
45
+ &.right {
46
+ transform: rotate(0);
47
+ }
48
+ &.bottom {
49
+ transform: rotate(90deg);
50
+ }
51
+ &.left {
52
+ transform: rotate(180deg);
53
+ }
54
+ &.top{
55
+ transform: rotate(270deg);
56
+ }
57
+ }
58
+ }
59
+
60
+ &:hover {
61
+ background: $cc-color-action;
62
+ co-icon ::ng-deep {
63
+ [fill] {
64
+ fill: $cc-color-light;
65
+ }
66
+ }
67
+ }
68
+
69
+ co-icon {
70
+ width: 35px;
71
+ height: 35px;
72
+ transition: transform 0.2s;
73
+ ::ng-deep [fill] {
74
+ fill : red;
75
+ }
76
+ &.up {
77
+ transform: rotate(0);
78
+ }
79
+ &.right {
80
+ transform: rotate(90deg);
81
+ }
82
+ &.bottom {
83
+ transform: rotate(180deg);
84
+ }
85
+ &.left{
86
+ transform: rotate(270deg);
87
+ }
88
+ }
89
+
90
+ div.wrap {
91
+ display: flex;
92
+ flex-direction: column;
93
+ }
94
+ }
95
+ }
@@ -0,0 +1,6 @@
1
+ @import "../../../style/mixin";
2
+
3
+ @include export-module('cc-icon-collapse-handle-theme') {
4
+ .co-icon-collapse-handle {
5
+ }
6
+ }
@@ -0,0 +1,5 @@
1
+ @import "../../../style/mixin";
2
+ @import "../../../style/variables";
3
+ @import "./material-definition";
4
+ @import "./layout";
5
+ @import "./theme";
@@ -8,6 +8,7 @@ export declare class InputSearchComponent extends BaseInputComponent<string> imp
8
8
  useLeftIcon: boolean;
9
9
  useRightIcon: boolean;
10
10
  noIcon: boolean;
11
+ isSmall: boolean;
11
12
  showClass(): boolean;
12
13
  handleKeyDown(event: KeyboardEvent): void;
13
14
  }
@@ -1,5 +1,25 @@
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
+ input {
12
+ height: 1rem;
13
+ margin-left: 0.5rem;
14
+ margin-top: 0.5rem;
15
+ }
16
+
17
+ .co-icon {
18
+ height: 30px;
19
+ width: 30px;
20
+ }
21
+ }
22
+ }
3
23
  .co-input-text {
4
24
  border-radius: $cc-co-input-search-border-radius;
5
25
  label {
@@ -0,0 +1,6 @@
1
+ export declare enum CoDirection {
2
+ Right = "right",
3
+ Left = "left",
4
+ Up = "top",
5
+ Down = "bottom"
6
+ }
@@ -0,0 +1,6 @@
1
+ import { CoDirection } from "./co-direction";
2
+ export declare enum CoOrientation {
3
+ Horizontal = "horizontal",
4
+ Vertical = "vertical"
5
+ }
6
+ export declare function OrientationOfDirection(direction: CoDirection): CoOrientation;
@@ -0,0 +1,5 @@
1
+ import { CoDirection } from "../enum/co-direction";
2
+ export declare class DirectionEnumUtils {
3
+ private static readonly _OppositeDirections;
4
+ static OppositeOf(direction: CoDirection): CoDirection;
5
+ }
@@ -7,3 +7,10 @@ $imported-modules: () !default;
7
7
  @content;
8
8
  }
9
9
  }
10
+
11
+ @mixin button-small-semi-round($background: $cc-color-light, $height: $cc-action-size-small, $width: $cc-action-size) {
12
+ background: $background;
13
+ height: $height;
14
+ width: $width;
15
+ border-radius: 15px;
16
+ }
@@ -74,8 +74,9 @@ $cc-scrollbar-size: 15px !default;
74
74
  $cc-shadow-size: 10px !default;
75
75
  $cc-shadow-size-small: 5px !default;
76
76
 
77
- $cc-item-size-very-small: 20px !default;
78
77
  $cc-action-size: 40px !default;
78
+ $cc-action-size-small: 30px !default;
79
+ $cc-item-size-very-small: 20px !default;
79
80
 
80
81
  $cc-font-size-input-label: 12px !default;
81
82
  $cc-font-size-small: 13px !default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/corecomponents_v12",
3
- "version": "12.0.58",
3
+ "version": "12.0.60",
4
4
  "description": "Colijn IT core components for Angular 12",
5
5
  "private": false,
6
6
  "peerDependencies": {
package/public-api.d.ts CHANGED
@@ -39,6 +39,10 @@ export * from './lib/components/grid-toolbar-button/grid-toolbar-button.componen
39
39
  export * from './lib/components/grid-toolbar-button/grid-toolbar-button.module';
40
40
  export * from './lib/components/icon/icon.module';
41
41
  export * from './lib/components/icon/icon.component';
42
+ export * from './lib/components/icon-collapse-handle/icon-collapse-handle.module';
43
+ export * from './lib/components/icon-collapse-handle/icon-collapse-handle.component';
44
+ export * from './lib/core/enum/co-direction';
45
+ export * from './lib/core/enum/co-orientation';
42
46
  export * from './lib/components/image/image.module';
43
47
  export * from './lib/components/image/image.component';
44
48
  export * from './lib/components/input-checkbox/input-checkbox.module';