coer-elements 2.0.15 → 2.0.17

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 (43) hide show
  1. package/components/lib/coer-accordion/coer-accordion.component.d.ts +3 -1
  2. package/components/lib/coer-button/coer-button.component.d.ts +1 -1
  3. package/components/lib/coer-dropdown/coer-dropdown.component.d.ts +1 -1
  4. package/components/lib/coer-sidenav/coer-toolbar/coer-toolbar.component.d.ts +0 -1
  5. package/directives/lib/directives.module.d.ts +3 -2
  6. package/directives/lib/element-data.directive.d.ts +10 -0
  7. package/directives/lib/life-cycle.directive.d.ts +4 -5
  8. package/directives/public-api.d.ts +1 -0
  9. package/extensions/lib/string.extension.d.ts +3 -1
  10. package/fesm2022/coer-elements-components.mjs +40 -38
  11. package/fesm2022/coer-elements-components.mjs.map +1 -1
  12. package/fesm2022/coer-elements-directives.mjs +34 -7
  13. package/fesm2022/coer-elements-directives.mjs.map +1 -1
  14. package/fesm2022/coer-elements-extensions.mjs +4 -5
  15. package/fesm2022/coer-elements-extensions.mjs.map +1 -1
  16. package/fesm2022/coer-elements-interfaces.mjs.map +1 -1
  17. package/fesm2022/coer-elements-pages.mjs +4 -4
  18. package/fesm2022/coer-elements-pages.mjs.map +1 -1
  19. package/fesm2022/coer-elements-services.mjs +14 -2
  20. package/fesm2022/coer-elements-services.mjs.map +1 -1
  21. package/fesm2022/coer-elements-tools.mjs +22 -0
  22. package/fesm2022/coer-elements-tools.mjs.map +1 -1
  23. package/fesm2022/coer-elements.mjs +2 -1
  24. package/fesm2022/coer-elements.mjs.map +1 -1
  25. package/index.d.ts +1 -1
  26. package/interfaces/lib/colors/action-colors.interface.d.ts +9 -0
  27. package/interfaces/lib/colors/app-colors.interface.d.ts +10 -0
  28. package/interfaces/lib/colors/colors.interface.d.ts +8 -0
  29. package/interfaces/lib/colors/fixed-colors.interface.d.ts +12 -0
  30. package/interfaces/public-api.d.ts +5 -2
  31. package/package.json +5 -5
  32. package/services/lib/jwt.service.d.ts +3 -0
  33. package/styles/coer-elements.css +4270 -1987
  34. package/styles/containers.scss +12 -3
  35. package/styles/font.scss +11 -0
  36. package/styles/index.scss +3 -2
  37. package/styles/layout.scss +115 -39
  38. package/styles/position.scss +16 -5
  39. package/styles/space.scss +70 -0
  40. package/tools/lib/tools.d.ts +6 -0
  41. package/interfaces/lib/colors.interface.d.ts +0 -36
  42. /package/interfaces/lib/coer-grid/{grid-input-textbox.interface.d.ts → grid-input.interface.d.ts} +0 -0
  43. /package/styles/{angular-material.scss → components.scss} +0 -0
@@ -1,6 +1,6 @@
1
1
  @keyframes fadeIn {
2
2
  from { opacity: 0; }
3
- to { opacity: 1; }
3
+ to { opacity: 1; }
4
4
  }
5
5
 
6
6
  @mixin Container() {
@@ -17,7 +17,7 @@
17
17
 
18
18
  .coer-container {
19
19
  @include Container();
20
- }
20
+ }
21
21
 
22
22
  .coer-container-accordion {
23
23
  @include Container();
@@ -41,4 +41,13 @@
41
41
  .coer-container-list {
42
42
  @include Container();
43
43
  padding: 0px;
44
- }
44
+ }
45
+
46
+ .coer-container-code {
47
+ font-family: 'consolas', 'console', monospace !important;
48
+ background-color: var(--black) !important;
49
+ color: var(--smoke) !important;
50
+ border-radius: 10px !important;
51
+ padding: 10px !important;
52
+ font-size: 14px;
53
+ }
@@ -0,0 +1,11 @@
1
+ .font-family-console {
2
+ font-family: 'consolas', 'console', monospace !important;
3
+ }
4
+
5
+ .font-weight-normal {
6
+ font-weight: normal !important;
7
+ }
8
+
9
+ .font-weight-bold {
10
+ font-weight: bold !important;
11
+ }
package/styles/index.scss CHANGED
@@ -1,5 +1,4 @@
1
- @use 'sass:color';
2
- @use "./angular-material.scss";
1
+ @use "./components.scss";
3
2
  @use "./bootstrap.scss";
4
3
  @use "./colors.scss";
5
4
  @use "./containers.scss";
@@ -8,6 +7,8 @@
8
7
  @use "./layout.scss";
9
8
  @use "./animations.scss";
10
9
  @use "./position.scss";
10
+ @use "./font.scss";
11
+ @use "./space.scss";
11
12
 
12
13
  * {
13
14
  font-family: sans-serif;
@@ -1,49 +1,125 @@
1
- .flex-center {
2
- display: flex !important;
3
- align-items: center !important;
4
- justify-content: center !important;
5
- }
1
+ @each $key, $value in (
2
+ 'top': flex-start,
3
+ 'middle': center,
4
+ 'bottom': flex-end
5
+ ) {
6
6
 
7
- .flex-center-left {
8
- display: flex !important;
9
- align-items: center !important;
10
- justify-content: flex-start !important;
11
- }
7
+ .flex-#{$key}-left {
8
+ display: flex;
9
+ align-items: $value;
10
+ justify-content: flex-start;
11
+ }
12
12
 
13
- .flex-center-right {
14
- display: flex !important;
15
- align-items: center !important;
16
- justify-content: flex-end !important;
17
- }
13
+ .flex-wrap-#{$key}-left {
14
+ display: flex;
15
+ align-items: $value;
16
+ justify-content: flex-start;
17
+ flex-wrap: wrap;
18
+ gap: 10px;
19
+ }
18
20
 
19
- .fill-space {
20
- flex: 1 1 auto;
21
- }
21
+ .flex-#{$key}-center {
22
+ display: flex;
23
+ align-items: $value;
24
+ justify-content: center;
25
+ }
22
26
 
27
+ .flex-wrap-#{$key}-center {
28
+ display: flex;
29
+ align-items: $value;
30
+ justify-content: center;
31
+ flex-wrap: wrap;
32
+ gap: 10px;
33
+ }
23
34
 
24
- @mixin FlexWrap() {
25
- display: flex !important;
26
- flex-wrap: wrap !important;
27
- gap: 10px !important;
28
- }
35
+ .flex-#{$key}-right {
36
+ display: flex;
37
+ align-items: $value;
38
+ justify-content: flex-end;
39
+ }
29
40
 
30
- .flex-wrap-left {
31
- @include FlexWrap();
32
- align-items: flex-start !important;
33
- }
41
+ .flex-wrap-#{$key}-right {
42
+ display: flex;
43
+ align-items: $value;
44
+ justify-content: flex-end;
45
+ flex-wrap: wrap;
46
+ gap: 10px;
47
+ }
34
48
 
35
- .flex-wrap,
36
- .flex-wrap-center {
37
- @include FlexWrap();
38
- align-items: center !important;
39
- }
49
+ .flex-#{$key}-between {
50
+ display: flex;
51
+ align-items: $value;
52
+ justify-content: space-between;
53
+ }
54
+
55
+ .flex-wrap-#{$key}-between {
56
+ display: flex;
57
+ align-items: $value;
58
+ justify-content: space-between;
59
+ flex-wrap: wrap;
60
+ gap: 10px;
61
+ }
40
62
 
41
- .flex-wrap-end {
42
- @include FlexWrap();
43
- align-items: flex-end !important;
63
+ .flex-#{$key}-around {
64
+ display: flex;
65
+ align-items: $value;
66
+ justify-content: space-around;
67
+ }
68
+
69
+ .flex-wrap-#{$key}-around {
70
+ display: flex;
71
+ align-items: $value;
72
+ justify-content: space-around;
73
+ flex-wrap: wrap;
74
+ gap: 10px;
75
+ }
76
+
77
+ .flex-#{$key}-evenly {
78
+ display: flex;
79
+ align-items: $value;
80
+ justify-content: space-evenly;
81
+ }
82
+
83
+ .flex-wrap-#{$key}-evenly {
84
+ display: flex;
85
+ align-items: $value;
86
+ justify-content: space-evenly;
87
+ flex-wrap: wrap;
88
+ gap: 10px;
89
+ }
44
90
  }
91
+
92
+
93
+ @for $i from 1 through 10 {
94
+ @if($i == 1) {
95
+ .flex-wrap-item-50 {
96
+ flex-grow: 1;
97
+ flex-basis: 50px ;
98
+ }
99
+ }
100
+
101
+ .flex-wrap-item-#{$i * 100} {
102
+ flex-grow: 1;
103
+ flex-basis: $i * 100px;
104
+ }
105
+
106
+ @if($i * 100px + 50px < 1000px) {
107
+ .flex-wrap-item-#{$i * 100 + 50} {
108
+ flex-grow: 1;
109
+ flex-basis: $i * 100px + 50px;
110
+ }
111
+ }
112
+ }
113
+
45
114
 
46
- .flex-wrap-item {
47
- flex-grow: 1 !important;
48
- flex-basis: 200 !important;
49
- }
115
+ @each $key, $value in (
116
+ 'row': row,
117
+ 'row-reverse': row-reverse,
118
+ 'column': column,
119
+ 'column-reverse': column-reverse
120
+ ) {
121
+ .flex-#{$key} {
122
+ display: flex;
123
+ flex-direction: $value;
124
+ }
125
+ }
@@ -1,7 +1,18 @@
1
- @for $i from 1 through 10 {
2
- .z-index-#{$i} {
3
- z-index: $i !important;
1
+ $counter: 10;
2
+ @for $i from 0 through $counter {
3
+ .position-#{$i + 1} {
4
+ z-index: $counter - $i !important;
4
5
  }
5
- }
6
+ }
6
7
 
7
-
8
+ @each $key, $value in (
9
+ 'static' : static,
10
+ 'relative': relative,
11
+ 'absolute': absolute,
12
+ 'fixed' : fixed,
13
+ 'sticky' : sticky
14
+ ) {
15
+ .position-#{$key} {
16
+ position: $value !important;
17
+ }
18
+ }
@@ -0,0 +1,70 @@
1
+ @for $i from 0 through 30 {
2
+ //padding
3
+ .padding-#{$i} {
4
+ padding: $i * 1px;
5
+ }
6
+
7
+ .padding-top-#{$i} {
8
+ padding-top: $i * 1px;
9
+ }
10
+
11
+ .padding-right-#{$i} {
12
+ padding-right: $i * 1px;
13
+ }
14
+
15
+ .padding-bottom-#{$i} {
16
+ padding-bottom: $i * 1px;
17
+ }
18
+
19
+ .padding-left-#{$i} {
20
+ padding-left: $i * 1px;
21
+ }
22
+
23
+ //margin
24
+ .margin-#{$i} {
25
+ margin: $i * 1px;
26
+ }
27
+
28
+ .margin-top-#{$i} {
29
+ margin-top: $i * 1px;
30
+ }
31
+
32
+ .margin-right-#{$i} {
33
+ margin-right: $i * 1px;
34
+ }
35
+
36
+ .margin-bottom-#{$i} {
37
+ margin-bottom: $i * 1px;
38
+ }
39
+
40
+ .margin-left-#{$i} {
41
+ margin-left: $i * 1px;
42
+ }
43
+
44
+ //position
45
+ .top-#{$i} {
46
+ top: $i * 1px;
47
+ }
48
+
49
+ .right-#{$i} {
50
+ right: $i * 1px;
51
+ }
52
+
53
+ .bottom-#{$i} {
54
+ bottom: $i * 1px;
55
+ }
56
+
57
+ .left-#{$i} {
58
+ left: $i * 1px;
59
+ }
60
+
61
+ //gap
62
+ .gap-#{$i} {
63
+ gap: $i * 1px;
64
+ }
65
+ }
66
+
67
+
68
+ .fill-space {
69
+ flex: 1 1 auto;
70
+ }
@@ -39,4 +39,10 @@ export declare const Tools: {
39
39
  Distinct: <T>(array: T[], ...args: T[][]) => T[];
40
40
  /** */
41
41
  Except: <T>(array: T[], filter: any[], ...properties: string[]) => T[];
42
+ /** */
43
+ IsNumber: (value: any) => boolean;
44
+ /** */
45
+ Clipboard: (text: string, message?: string, title?: string) => void;
46
+ /** */
47
+ RemoveLastChar: (text: string) => string;
42
48
  };
@@ -1,36 +0,0 @@
1
- export interface IColors {
2
- fixedColors: IFixedColors;
3
- actionColors: IActionColors;
4
- appColors: IAppColors;
5
- }
6
- export interface IFixedColors {
7
- blue: string;
8
- gray: string;
9
- green: string;
10
- yellow: string;
11
- red: string;
12
- smoke: string;
13
- black: string;
14
- orange: string;
15
- white: string;
16
- purple: string;
17
- }
18
- export interface IActionColors {
19
- primary: string;
20
- secondary: string;
21
- success: string;
22
- warning: string;
23
- danger: string;
24
- navigation: string;
25
- information: string;
26
- }
27
- export interface IAppColors {
28
- breadcrumbs: string;
29
- background: string;
30
- containers: string;
31
- sidenav: string;
32
- sidenavText: string;
33
- sidenavActive: string;
34
- toolbar: string;
35
- toolbarText: string;
36
- }