coer-elements 0.0.63 → 0.0.65

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. package/components/lib/coer-accordion/coer-accordion.component.d.ts +1 -1
  2. package/components/lib/coer-button/coer-button.component.d.ts +1 -1
  3. package/components/lib/coer-datebox/coer-datebox.component.d.ts +49 -0
  4. package/components/lib/coer-filebox/coer-filebox.component.d.ts +1 -1
  5. package/components/lib/coer-grid/coer-grid.extension.d.ts +2 -2
  6. package/components/lib/coer-modal/coer-modal.component.d.ts +1 -1
  7. package/components/lib/coer-numberbox/coer-numberbox.component.d.ts +1 -1
  8. package/components/lib/coer-switch/coer-switch.component.d.ts +1 -1
  9. package/components/lib/coer-tab/coer-tab.component.d.ts +2 -2
  10. package/components/lib/coer-textarea/coer-textarea.component.d.ts +1 -1
  11. package/components/lib/coer-textbox/coer-textbox.component.d.ts +1 -1
  12. package/components/lib/components.module.d.ts +37 -33
  13. package/components/public-api.d.ts +1 -0
  14. package/fesm2022/coer-elements-components.mjs +264 -109
  15. package/fesm2022/coer-elements-components.mjs.map +1 -1
  16. package/fesm2022/coer-elements-directives.mjs +14 -12
  17. package/fesm2022/coer-elements-directives.mjs.map +1 -1
  18. package/fesm2022/coer-elements-pipes.mjs +16 -16
  19. package/fesm2022/coer-elements-pipes.mjs.map +1 -1
  20. package/fesm2022/coer-elements-tools.mjs +20 -14
  21. package/fesm2022/coer-elements-tools.mjs.map +1 -1
  22. package/fesm2022/coer-elements.mjs +4 -4
  23. package/fesm2022/coer-elements.mjs.map +1 -1
  24. package/package.json +1 -15
  25. package/styles/angular-material.scss +18 -13
  26. package/styles/bootstrap.scss +1 -6
  27. package/styles/coer-elements.css +993 -2866
  28. package/styles/colors.scss +50 -60
  29. package/styles/index.scss +9 -9
  30. package/styles/layout.scss +10 -0
  31. package/styles/scroll-bar.scss +5 -5
  32. package/tools/lib/date-time.class.d.ts +3 -1
  33. package/tools/lib/page.class.d.ts +1 -1
  34. package/tools/lib/section.class.d.ts +1 -1
  35. package/tools/lib/tools.d.ts +9 -9
  36. package/esm2022/coer-elements.mjs +0 -5
  37. package/esm2022/components/coer-elements-components.mjs +0 -5
  38. package/esm2022/components/lib/coer-accordion/coer-accordion.component.mjs +0 -53
  39. package/esm2022/components/lib/coer-button/coer-button.component.mjs +0 -138
  40. package/esm2022/components/lib/coer-checkbox/coer-checkbox.component.mjs +0 -83
  41. package/esm2022/components/lib/coer-filebox/coer-filebox.component.mjs +0 -102
  42. package/esm2022/components/lib/coer-form/coer-form.component.mjs +0 -107
  43. package/esm2022/components/lib/coer-grid/coer-grid.component.mjs +0 -512
  44. package/esm2022/components/lib/coer-grid/coer-grid.extension.mjs +0 -409
  45. package/esm2022/components/lib/coer-list/coer-list.component.mjs +0 -130
  46. package/esm2022/components/lib/coer-modal/coer-modal.component.mjs +0 -107
  47. package/esm2022/components/lib/coer-numberbox/coer-numberbox.component.mjs +0 -258
  48. package/esm2022/components/lib/coer-page-title/coer-page-title.component.mjs +0 -44
  49. package/esm2022/components/lib/coer-selectbox/coer-selectbox.component.mjs +0 -342
  50. package/esm2022/components/lib/coer-sidenav/coer-menu-option/coer-menu-option.component.mjs +0 -103
  51. package/esm2022/components/lib/coer-sidenav/coer-sidenav.component.mjs +0 -194
  52. package/esm2022/components/lib/coer-sidenav/coer-toolbar/coer-toolbar.component.mjs +0 -33
  53. package/esm2022/components/lib/coer-sidenav/coer-tree-accordion/coer-tree-accordion.component.mjs +0 -116
  54. package/esm2022/components/lib/coer-switch/coer-switch.component.mjs +0 -93
  55. package/esm2022/components/lib/coer-tab/coer-tab.component.mjs +0 -128
  56. package/esm2022/components/lib/coer-textarea/coer-textarea.component.mjs +0 -156
  57. package/esm2022/components/lib/coer-textbox/coer-textbox.component.mjs +0 -221
  58. package/esm2022/components/lib/components.module.mjs +0 -188
  59. package/esm2022/components/public-api.mjs +0 -20
  60. package/esm2022/directives/coer-elements-directives.mjs +0 -5
  61. package/esm2022/directives/lib/coer-ref.directive.mjs +0 -23
  62. package/esm2022/directives/lib/directives.module.mjs +0 -25
  63. package/esm2022/directives/lib/life-cycle.directive.mjs +0 -33
  64. package/esm2022/directives/public-api.mjs +0 -4
  65. package/esm2022/index.mjs +0 -54
  66. package/esm2022/interfaces/coer-elements-interfaces.mjs +0 -5
  67. package/esm2022/interfaces/lib/app-source.interface.mjs +0 -2
  68. package/esm2022/interfaces/lib/box-button.interface.mjs +0 -2
  69. package/esm2022/interfaces/lib/bulk-load.interface.mjs +0 -2
  70. package/esm2022/interfaces/lib/coer-filebox/file-image.interface.mjs +0 -2
  71. package/esm2022/interfaces/lib/coer-filebox/file.interface.mjs +0 -2
  72. package/esm2022/interfaces/lib/coer-grid/grid-button-by-row.interface.mjs +0 -2
  73. package/esm2022/interfaces/lib/coer-grid/grid-checkbox.interface.mjs +0 -2
  74. package/esm2022/interfaces/lib/coer-grid/grid-coer-numberbox.interface.mjs +0 -2
  75. package/esm2022/interfaces/lib/coer-grid/grid-coer-selectbox.interface.mjs +0 -2
  76. package/esm2022/interfaces/lib/coer-grid/grid-coer-switch.interface.mjs +0 -2
  77. package/esm2022/interfaces/lib/coer-grid/grid-coer-textbox.interface.mjs +0 -2
  78. package/esm2022/interfaces/lib/coer-grid/grid-column.interface.mjs +0 -2
  79. package/esm2022/interfaces/lib/coer-grid/grid-data-source.interface.mjs +0 -2
  80. package/esm2022/interfaces/lib/coer-grid/grid-header-button.interface.mjs +0 -2
  81. package/esm2022/interfaces/lib/coer-grid/grid-header-export-button.interface.mjs +0 -2
  82. package/esm2022/interfaces/lib/coer-grid/grid-header.interface.mjs +0 -2
  83. package/esm2022/interfaces/lib/coer-grid/grid-import.interface.mjs +0 -2
  84. package/esm2022/interfaces/lib/coer-grid/grid-input-checkbox.interface.mjs +0 -2
  85. package/esm2022/interfaces/lib/coer-grid/grid-input-switch-change.interface.mjs +0 -2
  86. package/esm2022/interfaces/lib/coer-grid/grid-input-textbox.interface.mjs +0 -2
  87. package/esm2022/interfaces/lib/coer-grid/grid-item.interface.mjs +0 -2
  88. package/esm2022/interfaces/lib/coer-grid/grid-keyup-enter.interface.mjs +0 -2
  89. package/esm2022/interfaces/lib/coer-grid/grid-length.interface.mjs +0 -2
  90. package/esm2022/interfaces/lib/coer-grid/grid-search.interface.mjs +0 -2
  91. package/esm2022/interfaces/lib/coer-grid/grid-sort.interface.mjs +0 -2
  92. package/esm2022/interfaces/lib/coer-menu/menu-option-selected.interface.mjs +0 -2
  93. package/esm2022/interfaces/lib/coer-menu/menu-selected.interface.mjs +0 -2
  94. package/esm2022/interfaces/lib/coer-menu/menu.interface.mjs +0 -2
  95. package/esm2022/interfaces/lib/coer-ref.interface.mjs +0 -2
  96. package/esm2022/interfaces/lib/image.interface.mjs +0 -2
  97. package/esm2022/interfaces/lib/page-title/breadcrumb.interface.mjs +0 -2
  98. package/esm2022/interfaces/lib/page-title/go-back.interface.mjs +0 -2
  99. package/esm2022/interfaces/lib/screen-size.interface.mjs +0 -2
  100. package/esm2022/interfaces/lib/service/http-request.interface.mjs +0 -2
  101. package/esm2022/interfaces/lib/service/http-response.interface.mjs +0 -2
  102. package/esm2022/interfaces/lib/service/patch.interface.mjs +0 -2
  103. package/esm2022/interfaces/public-api.mjs +0 -42
  104. package/esm2022/pipes/coer-elements-pipes.mjs +0 -5
  105. package/esm2022/pipes/lib/html.pipe.mjs +0 -18
  106. package/esm2022/pipes/lib/no-image.pipe.mjs +0 -23
  107. package/esm2022/pipes/lib/numeric-format.pipe.mjs +0 -15
  108. package/esm2022/pipes/lib/pipes.module.mjs +0 -31
  109. package/esm2022/pipes/public-api.mjs +0 -5
  110. package/esm2022/signals/coer-elements-signals.mjs +0 -5
  111. package/esm2022/signals/lib/breakpoint.signal.mjs +0 -4
  112. package/esm2022/signals/lib/is-loading.signal.mjs +0 -3
  113. package/esm2022/signals/lib/is-menu-open.signal.mjs +0 -3
  114. package/esm2022/signals/lib/is-modal-open.signal.mjs +0 -3
  115. package/esm2022/signals/lib/navigation.signal.mjs +0 -3
  116. package/esm2022/signals/public-api.mjs +0 -6
  117. package/esm2022/tools/coer-elements-tools.mjs +0 -5
  118. package/esm2022/tools/lib/breadcrumbs.class.mjs +0 -63
  119. package/esm2022/tools/lib/coer-alert/coer-alert.component.mjs +0 -229
  120. package/esm2022/tools/lib/coer-grid.templates.mjs +0 -34
  121. package/esm2022/tools/lib/colors.class.mjs +0 -68
  122. package/esm2022/tools/lib/control-value.class.mjs +0 -46
  123. package/esm2022/tools/lib/date-time.class.mjs +0 -29
  124. package/esm2022/tools/lib/files.class.mjs +0 -91
  125. package/esm2022/tools/lib/filters.class.mjs +0 -57
  126. package/esm2022/tools/lib/menu.class.mjs +0 -23
  127. package/esm2022/tools/lib/page.class.mjs +0 -187
  128. package/esm2022/tools/lib/screen.class.mjs +0 -51
  129. package/esm2022/tools/lib/section.class.mjs +0 -60
  130. package/esm2022/tools/lib/service.class.mjs +0 -408
  131. package/esm2022/tools/lib/source.class.mjs +0 -80
  132. package/esm2022/tools/lib/tools.mjs +0 -232
  133. package/esm2022/tools/public-api.mjs +0 -16
@@ -1,207 +1,197 @@
1
- * {
1
+ :root {
2
2
  --blue: #0d6efd;
3
3
  --gray: #6c757d;
4
4
  --green: #198754;
5
5
  --yellow: #ffc107;
6
6
  --red: #dc3545;
7
7
  --white: #f5f5f5;
8
- --black: #252525;
8
+ --black: #252525;
9
9
  --orange: #fd6031;
10
10
  --purple: #a615bc;
11
11
  }
12
12
 
13
- $blue: #0d6efd;
14
- $gray: #6c757d;
15
- $green: #198754;
16
- $yellow: #ffc107;
17
- $red: #dc3545;
18
- $white: #f5f5f5;
19
- $black: #252525;
20
- $orange: #fd6031;
21
- $purple: #a615bc;
22
-
23
13
  //Blue
24
14
  .text-blue {
25
- color: $blue !important;
15
+ color: var(--blue) !important;
26
16
  }
27
17
 
28
18
  .text-blue-bold {
29
- color: $blue !important;
19
+ color: var(--blue) !important;
30
20
  font-weight: bold !important;
31
21
  }
32
22
 
33
23
  .background-blue {
34
- background-color: $blue !important;
24
+ background-color: var(--blue) !important;
35
25
  }
36
26
 
37
27
  .background-border-blue {
38
- background-color: $blue !important;
39
- border-color: $blue !important;
28
+ background-color: var(--blue) !important;
29
+ border-color: var(--blue) !important;
40
30
  }
41
31
 
42
32
  .border-blue {
43
- border-color: $blue !important;
33
+ border-color: var(--blue) !important;
44
34
  }
45
35
 
46
36
  //Gray
47
37
  .text-gray {
48
- color: $gray !important;
38
+ color: var(--gray) !important;
49
39
  }
50
40
 
51
41
  .text-gray-bold {
52
- color: $gray !important;
42
+ color: var(--gray) !important;
53
43
  font-weight: bold !important;
54
44
  }
55
45
 
56
46
  .background-gray {
57
- background-color: $gray !important;
47
+ background-color: var(--gray) !important;
58
48
  }
59
49
 
60
50
  .background-border-gray {
61
- background-color: $gray !important;
62
- border-color: $gray !important;
51
+ background-color: var(--gray) !important;
52
+ border-color: var(--gray) !important;
63
53
  }
64
54
 
65
55
  .border-gray {
66
- border-color: $gray !important;
56
+ border-color: var(--gray) !important;
67
57
  }
68
58
 
69
59
  //Green
70
60
  .text-green {
71
- color: $green !important;
61
+ color: var(--green) !important;
72
62
  }
73
63
 
74
64
  .text-green-bold {
75
- color: $green !important;
65
+ color: var(--green) !important;
76
66
  font-weight: bold !important;
77
67
  }
78
68
 
79
69
  .background-green {
80
- background-color: $green !important;
70
+ background-color: var(--green) !important;
81
71
  }
82
72
 
83
73
  .background-border-green {
84
- background-color: $green !important;
85
- border-color: $green !important;
74
+ background-color: var(--green) !important;
75
+ border-color: var(--green) !important;
86
76
  }
87
77
 
88
78
  .border-green {
89
- border-color: $green !important;
79
+ border-color: var(--green) !important;
90
80
  }
91
81
 
92
82
  //Yellow
93
83
  .text-yellow {
94
- color: $yellow !important;
84
+ color: var(--yellow) !important;
95
85
  }
96
86
 
97
87
  .text-yellow-bold {
98
- color: $yellow !important;
88
+ color: var(--yellow) !important;
99
89
  font-weight: bold !important;
100
90
  }
101
91
 
102
92
  .background-yellow {
103
- background-color: $yellow !important;
93
+ background-color: var(--yellow) !important;
104
94
  }
105
95
 
106
96
  .background-border-yellow {
107
- background-color: $yellow !important;
108
- border-color: $yellow !important;
97
+ background-color: var(--yellow) !important;
98
+ border-color: var(--yellow) !important;
109
99
  }
110
100
 
111
101
  .border-yellow {
112
- border-color: $yellow !important;
102
+ border-color: var(--yellow) !important;
113
103
  }
114
104
 
115
105
  //Red
116
106
  .text-red {
117
- color: $red !important;
107
+ color: var(--red) !important;
118
108
  }
119
109
 
120
110
  .text-red-bold {
121
- color: $red !important;
111
+ color: var(--red) !important;
122
112
  font-weight: bold !important;
123
113
  }
124
114
 
125
115
  .background-red {
126
- background-color: $red !important;
116
+ background-color: var(--red) !important;
127
117
  }
128
118
 
129
119
  .background-border-red {
130
- background-color: $red !important;
131
- border-color: $red !important;
120
+ background-color: var(--red) !important;
121
+ border-color: var(--red) !important;
132
122
  }
133
123
 
134
124
  .border-red {
135
- border-color: $red !important;
125
+ border-color: var(--red) !important;
136
126
  }
137
127
 
138
128
  //White
139
129
  .text-white {
140
- color: $white !important;
130
+ color: var(--white) !important;
141
131
  }
142
132
 
143
133
  .text-white-bold {
144
- color: $white !important;
134
+ color: var(--white) !important;
145
135
  font-weight: bold !important;
146
136
  }
147
137
 
148
138
  .background-white {
149
- background-color: $white !important;
139
+ background-color: var(--white) !important;
150
140
  }
151
141
 
152
142
  .background-border-white {
153
- background-color: $white !important;
154
- border-color: $white !important;
143
+ background-color: var(--white) !important;
144
+ border-color: var(--white) !important;
155
145
  }
156
146
 
157
147
  .border-white {
158
- border-color: $white !important;
148
+ border-color: var(--white) !important;
159
149
  }
160
150
 
161
151
  //Black
162
152
  .text-black {
163
- color: $black !important;
153
+ color: var(--black) !important;
164
154
  }
165
155
 
166
156
  .text-black-bold {
167
- color: $black !important;
157
+ color: var(--black) !important;
168
158
  font-weight: bold !important;
169
159
  }
170
160
 
171
161
  .background-black {
172
- background-color: $black !important;
162
+ background-color: var(--black) !important;
173
163
  }
174
164
 
175
165
  .background-border-black {
176
- background-color: $black !important;
177
- border-color: $black !important;
166
+ background-color: var(--black) !important;
167
+ border-color: var(--black) !important;
178
168
  }
179
169
 
180
170
  .border-black {
181
- border-color: $black !important;
171
+ border-color: var(--black) !important;
182
172
  }
183
173
 
184
174
  //Orange
185
175
  .text-orange {
186
- color: $orange !important;
176
+ color: var(--orange) !important;
187
177
  }
188
178
 
189
179
  .text-orange-bold {
190
- color: $orange !important;
180
+ color: var(--orange) !important;
191
181
  font-weight: bold !important;
192
182
  }
193
183
 
194
184
  .background-orange {
195
- background-color: $orange !important;
185
+ background-color: var(--orange) !important;
196
186
  }
197
187
 
198
188
  .background-border-orange {
199
- background-color: $orange !important;
200
- border-color: $orange !important;
189
+ background-color: var(--orange) !important;
190
+ border-color: var(--orange) !important;
201
191
  }
202
192
 
203
193
  .border-orange {
204
- border-color: $orange !important;
194
+ border-color: var(--orange) !important;
205
195
  }
206
196
 
207
197
  //transparent
package/styles/index.scss CHANGED
@@ -1,3 +1,11 @@
1
+ @use "./angular-material.scss";
2
+ @use "./bootstrap.scss";
3
+ @use "./colors.scss";
4
+ @use "./containers.scss";
5
+ @use "./cursores.scss";
6
+ @use "./scroll-bar.scss";
7
+ @use "./layout.scss";
8
+
1
9
  * {
2
10
  font-family: sans-serif;
3
11
  letter-spacing: normal;
@@ -19,12 +27,4 @@ input[type="file"] {
19
27
 
20
28
  .no-selection::selection {
21
29
  background-color: transparent !important;
22
- }
23
-
24
- @import "./angular-material.scss";
25
- @import "./bootstrap.scss";
26
- @import "./colors.scss";
27
- @import "./containers.scss";
28
- @import "./cursores.scss";
29
- @import "./scroll-bar.scss";
30
- @import "./layout.scss";
30
+ }
@@ -18,4 +18,14 @@
18
18
 
19
19
  .fill-space {
20
20
  flex: 1 1 auto;
21
+ }
22
+
23
+ .flex-wrap {
24
+ display: flex !important;
25
+ flex-wrap: wrap !important;
26
+ }
27
+
28
+ .flex-wrap-item {
29
+ flex-grow: 1 !important;
30
+ flex-basis: 200 !important;
21
31
  }
@@ -1,20 +1,20 @@
1
- @import "./colors.scss";
1
+ @use 'sass:color';
2
2
 
3
3
  *::-webkit-scrollbar {
4
- background-color: lighten($gray, 48%);
4
+ background-color: color.adjust(#6c757d, $lightness: 48%);
5
5
  width: 5px;
6
6
  height: 5px;
7
7
  }
8
8
 
9
9
  *::-webkit-scrollbar-thumb{
10
- background-color: lighten($gray, 35%);
10
+ background-color: color.adjust(#6c757d, $lightness: 35%) ;
11
11
  border-radius: 4px;
12
12
  }
13
13
 
14
14
  *::-webkit-scrollbar-thumb:hover {
15
- background-color: $gray;
15
+ background-color: var(--gray);
16
16
  }
17
17
 
18
18
  *::-webkit-scrollbar-thumb:active {
19
- background-color: $gray;
19
+ background-color: var(--gray);
20
20
  }
@@ -8,6 +8,8 @@ export declare class DateTime {
8
8
  static ToLocalZone(date: string | Date | moment.Moment): string;
9
9
  /** Convert Local Zone Date to UTC */
10
10
  static ToUTC(date: string | Date | moment.Moment): string;
11
- /** DD MMM YYYY */
11
+ /** MMM, DD YYYY */
12
12
  static GetDateFormat(date: string | Date | moment.Moment): string;
13
+ /** DD MMM YYYY */
14
+ static IsValidDate(date: string | Date | moment.Moment): boolean;
13
15
  }
@@ -73,5 +73,5 @@ export declare class Page implements AfterViewInit, OnDestroy {
73
73
  protected IsOnlyWhiteSpace: <T>(value: T | null | undefined) => boolean;
74
74
  protected IsNotOnlyWhiteSpace: <T>(value: T | null | undefined) => boolean;
75
75
  static ɵfac: i0.ɵɵFactoryDeclaration<Page, never>;
76
- static ɵcmp: i0.ɵɵComponentDeclaration<Page, "ng-component", never, {}, {}, never, never, false, never>;
76
+ static ɵcmp: i0.ɵɵComponentDeclaration<Page, "ng-component", never, {}, {}, never, never, true, never>;
77
77
  }
@@ -27,5 +27,5 @@ export declare class Section<T> implements AfterViewInit, OnDestroy {
27
27
  protected IsOnlyWhiteSpace: <T_1>(value: T_1 | null | undefined) => boolean;
28
28
  protected IsNotOnlyWhiteSpace: <T_1>(value: T_1 | null | undefined) => boolean;
29
29
  static ɵfac: i0.ɵɵFactoryDeclaration<Section<any>, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<Section<any>, "ng-component", never, { "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "isUpdate": { "alias": "isUpdate"; "required": false; "isSignal": true; }; }, { "onReady": "onReady"; "onDestroy": "onDestroy"; "onIsLoadingChange": "onIsLoadingChange"; "onUpdated": "onUpdated"; }, never, never, false, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<Section<any>, "ng-component", never, { "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "isUpdate": { "alias": "isUpdate"; "required": false; "isSignal": true; }; }, { "onReady": "onReady"; "onDestroy": "onDestroy"; "onIsLoadingChange": "onIsLoadingChange"; "onUpdated": "onUpdated"; }, never, never, true, never>;
31
31
  }
@@ -4,33 +4,33 @@ export declare const Tools: {
4
4
  /** Returns true if the value is null or undefined, false otherwise */
5
5
  IsNull: <T>(value: T | null | undefined) => boolean;
6
6
  /** Returns true if the value is not null or undefined, false otherwise */
7
- IsNotNull: <T_1>(value: T_1 | null | undefined) => boolean;
7
+ IsNotNull: <T>(value: T | null | undefined) => boolean;
8
8
  /** Returns true if the value is null or undefined or contains only whitespace, false otherwise */
9
- IsOnlyWhiteSpace: <T_2>(value: T_2 | null | undefined) => boolean;
9
+ IsOnlyWhiteSpace: <T>(value: T | null | undefined) => boolean;
10
10
  /** Returns true if has string value and is not only whitespace, false otherwise */
11
- IsNotOnlyWhiteSpace: <T_3>(value: T_3 | null | undefined) => boolean;
11
+ IsNotOnlyWhiteSpace: <T>(value: T | null | undefined) => boolean;
12
12
  /** Break reference of a object or array */
13
- BreakReference: <T_4>(object: T_4) => T_4;
13
+ BreakReference: <T>(object: T) => T;
14
14
  /** Clean extra whitespaces */
15
15
  CleanUpBlanks: (text: string | number) => string;
16
16
  /** Get properties of an object */
17
- GetObjectProperties: <T_5>(obj: T_5 | null | undefined) => string[];
17
+ GetObjectProperties: <T>(obj: T | null | undefined) => string[];
18
18
  /**
19
19
  * Set an index and merge more arrays of the same type
20
20
  * */
21
- SetIndex: <T_6>(array: T_6[], ...args: T_6[][]) => T_6[];
21
+ SetIndex: <T>(array: T[], ...args: T[][]) => T[];
22
22
  /** Set First Char To Lower */
23
23
  FirstCharToLower: (text: string | null | undefined) => string;
24
24
  /** Set First Char To Upper */
25
25
  FirstCharToUpper: (text: string | null | undefined) => string;
26
26
  /** Sort an array in ascending order by property */
27
- SortBy: <T_7>(array: T_7[], property: string, propertyType?: 'string' | 'number') => T_7[];
27
+ SortBy: <T>(array: T[], property: string, propertyType?: "string" | "number") => T[];
28
28
  /** Sort an array in descending order by property */
29
- SortByDesc: <T_8>(array: T_8[], property: string, propertyType?: 'string' | 'number') => T_8[];
29
+ SortByDesc: <T>(array: T[], property: string, propertyType?: "string" | "number") => T[];
30
30
  /** Return a string with forman numeric */
31
31
  GetNumericFormat: (value: string | number | null | undefined, decimals?: number) => string;
32
32
  /** Wait the time indicated */
33
33
  Sleep: (milliseconds?: number, reference?: string | null) => Promise<unknown>;
34
34
  /** */
35
- Except: <T_9>(array: T_9[], filter: any[], ...properties: string[]) => T_9[];
35
+ Except: <T>(array: T[], filter: any[], ...properties: string[]) => T[];
36
36
  };
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29lci1lbGVtZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2NvZXItZWxlbWVudHMvY29lci1lbGVtZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29lci1lbGVtZW50cy1jb21wb25lbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvY29lci1lbGVtZW50cy9jb21wb25lbnRzL2NvZXItZWxlbWVudHMtY29tcG9uZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
@@ -1,53 +0,0 @@
1
- import { Component, input, Input, viewChild } from '@angular/core';
2
- import { Tools } from 'coer-elements/tools';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/material/expansion";
5
- export class CoerAccordion {
6
- constructor() {
7
- //Variables
8
- this._id = Tools.GetGuid('coer-accordion');
9
- this._expansionPanel = viewChild('coerAccordion');
10
- //Inputs
11
- this.id = '';
12
- this.title = input('');
13
- this.icon = input('');
14
- this.expanded = input(true);
15
- //Generic Tools
16
- this.IsNotOnlyWhiteSpace = Tools.IsNotOnlyWhiteSpace;
17
- }
18
- get isExpanded() {
19
- return Tools.IsNotNull(this._expansionPanel())
20
- ? this._expansionPanel().expanded
21
- : false;
22
- }
23
- get isCollapsed() {
24
- return Tools.IsNotNull(this._expansionPanel())
25
- ? !this._expansionPanel().expanded
26
- : true;
27
- }
28
- /** */
29
- Open() {
30
- if (Tools.IsNotNull(this._expansionPanel())) {
31
- if (this.isCollapsed) {
32
- this._expansionPanel()?.open();
33
- }
34
- }
35
- }
36
- /** */
37
- Close() {
38
- if (Tools.IsNotNull(this._expansionPanel())) {
39
- if (this.isExpanded) {
40
- this._expansionPanel()?.close();
41
- }
42
- }
43
- }
44
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoerAccordion, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
45
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: CoerAccordion, selector: "coer-accordion", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_expansionPanel", first: true, predicate: ["coerAccordion"], descendants: true, isSignal: true }], ngImport: i0, template: "<mat-expansion-panel #coerAccordion class=\"coer-accordion\" [expanded]=\"expanded()\" title=\"\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n @if(IsNotOnlyWhiteSpace(icon())) {\r\n <i [class]=\"icon()\"></i>\r\n }\r\n <span>{{ title() }}</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</mat-expansion-panel>", styles: ["mat-expansion-panel.coer-accordion{overflow:visible!important}mat-expansion-panel.coer-accordion mat-expansion-panel-header{height:35px!important;background-color:#f5f5f5!important;padding-left:12px!important}mat-expansion-panel.coer-accordion mat-expansion-panel-header span{font-size:16px!important}mat-expansion-panel.coer-accordion mat-expansion-panel-header mat-panel-title{display:flex;align-items:center;gap:5px}mat-expansion-panel.coer-accordion div.mat-expansion-panel-body{padding:0!important}\n"], dependencies: [{ kind: "component", type: i1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i1.MatExpansionPanelTitle, selector: "mat-panel-title" }] }); }
46
- }
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoerAccordion, decorators: [{
48
- type: Component,
49
- args: [{ selector: 'coer-accordion', template: "<mat-expansion-panel #coerAccordion class=\"coer-accordion\" [expanded]=\"expanded()\" title=\"\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n @if(IsNotOnlyWhiteSpace(icon())) {\r\n <i [class]=\"icon()\"></i>\r\n }\r\n <span>{{ title() }}</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <div>\r\n <ng-content></ng-content>\r\n </div>\r\n</mat-expansion-panel>", styles: ["mat-expansion-panel.coer-accordion{overflow:visible!important}mat-expansion-panel.coer-accordion mat-expansion-panel-header{height:35px!important;background-color:#f5f5f5!important;padding-left:12px!important}mat-expansion-panel.coer-accordion mat-expansion-panel-header span{font-size:16px!important}mat-expansion-panel.coer-accordion mat-expansion-panel-header mat-panel-title{display:flex;align-items:center;gap:5px}mat-expansion-panel.coer-accordion div.mat-expansion-panel-body{padding:0!important}\n"] }]
50
- }], propDecorators: { id: [{
51
- type: Input
52
- }] } });
53
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29lci1hY2NvcmRpb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29lci1lbGVtZW50cy9jb21wb25lbnRzL2xpYi9jb2VyLWFjY29yZGlvbi9jb2VyLWFjY29yZGlvbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9j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