coer-elements 1.0.18 → 1.1.2
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.
- package/README.md +63 -1
- package/components/index.d.ts +5 -0
- package/components/lib/coer-accordion/coer-accordion.component.d.ts +32 -0
- package/components/lib/coer-button/coer-button.component.d.ts +46 -0
- package/components/lib/coer-checkbox/coer-checkbox.component.d.ts +29 -0
- package/components/lib/coer-datebox/coer-datebox.component.d.ts +58 -0
- package/components/lib/coer-dropdown/coer-dropdown.component.d.ts +69 -0
- package/components/lib/coer-filebox/coer-filebox.component.d.ts +36 -0
- package/components/lib/coer-form/coer-form.component.d.ts +36 -0
- package/components/lib/coer-grid/coer-grid.component.d.ts +53 -0
- package/components/lib/coer-grid/coer-grid.extension.d.ts +111 -0
- package/components/lib/coer-list/coer-list.component.d.ts +57 -0
- package/components/lib/coer-modal/coer-modal.component.d.ts +38 -0
- package/components/lib/coer-numberbox/coer-numberbox.component.d.ts +56 -0
- package/components/lib/coer-page-title/coer-page-title.component.d.ts +14 -0
- package/components/lib/coer-selectbox/coer-selectbox.component.d.ts +79 -0
- package/components/lib/coer-sidenav/coer-menu-option/coer-menu-option.component.d.ts +22 -0
- package/components/lib/coer-sidenav/coer-sidenav.component.d.ts +49 -0
- package/components/lib/coer-sidenav/coer-toolbar/coer-toolbar.component.d.ts +32 -0
- package/components/lib/coer-sidenav/coer-tree-accordion/coer-tree-accordion.component.d.ts +43 -0
- package/components/lib/coer-switch/coer-switch.component.d.ts +32 -0
- package/components/lib/coer-tab/coer-tab.component.d.ts +36 -0
- package/components/lib/coer-textarea/coer-textarea.component.d.ts +52 -0
- package/components/lib/coer-textbox/coer-textbox.component.d.ts +66 -0
- package/components/lib/components.module.d.ts +46 -0
- package/components/public-api.d.ts +21 -0
- package/directives/index.d.ts +5 -0
- package/directives/lib/coer-ref.directive.d.ts +14 -0
- package/directives/lib/directives.module.d.ts +8 -0
- package/directives/lib/life-cycle.directive.d.ts +16 -0
- package/directives/public-api.d.ts +3 -0
- package/extensions/index.d.ts +5 -0
- package/extensions/lib/object.extension.d.ts +1 -0
- package/extensions/lib/string.extension.d.ts +19 -0
- package/extensions/public-api.d.ts +2 -0
- package/fesm2022/coer-elements-components.mjs +4040 -0
- package/fesm2022/coer-elements-components.mjs.map +1 -0
- package/fesm2022/coer-elements-directives.mjs +84 -0
- package/fesm2022/coer-elements-directives.mjs.map +1 -0
- package/fesm2022/coer-elements-extensions.mjs +68 -0
- package/fesm2022/coer-elements-extensions.mjs.map +1 -0
- package/fesm2022/coer-elements-guards.mjs +28 -0
- package/fesm2022/coer-elements-guards.mjs.map +1 -0
- package/fesm2022/coer-elements-interceptors.mjs +64 -0
- package/fesm2022/coer-elements-interceptors.mjs.map +1 -0
- package/fesm2022/coer-elements-interfaces.mjs +6 -0
- package/fesm2022/coer-elements-interfaces.mjs.map +1 -0
- package/fesm2022/coer-elements-pages.mjs +441 -0
- package/fesm2022/coer-elements-pages.mjs.map +1 -0
- package/fesm2022/coer-elements-pipes.mjs +87 -0
- package/fesm2022/coer-elements-pipes.mjs.map +1 -0
- package/fesm2022/coer-elements-signals.mjs +35 -0
- package/fesm2022/coer-elements-signals.mjs.map +1 -0
- package/fesm2022/coer-elements-tools.mjs +1960 -0
- package/fesm2022/coer-elements-tools.mjs.map +1 -0
- package/fesm2022/coer-elements.mjs +68 -0
- package/fesm2022/coer-elements.mjs.map +1 -0
- package/guards/index.d.ts +5 -0
- package/guards/lib/login.guard.d.ts +2 -0
- package/guards/lib/page.guard.d.ts +2 -0
- package/guards/public-api.d.ts +2 -0
- package/images/loading.gif +0 -0
- package/images/no-image.png +0 -0
- package/images/no-user.png +0 -0
- package/index.d.ts +12 -0
- package/interceptors/index.d.ts +5 -0
- package/interceptors/lib/user.interceptor.d.ts +8 -0
- package/interceptors/lib/utc-offset.interceptor.d.ts +8 -0
- package/interceptors/public-api.d.ts +1 -0
- package/interfaces/index.d.ts +5 -0
- package/interfaces/lib/app-source.interface.d.ts +4 -0
- package/interfaces/lib/box-button.interface.d.ts +6 -0
- package/interfaces/lib/bulk-load.interface.d.ts +5 -0
- package/interfaces/lib/coer-filebox/file-image.interface.d.ts +14 -0
- package/interfaces/lib/coer-filebox/file.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-button-by-row.interface.d.ts +6 -0
- package/interfaces/lib/coer-grid/grid-checkbox.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-coer-numberbox.interface.d.ts +12 -0
- package/interfaces/lib/coer-grid/grid-coer-selectbox.interface.d.ts +9 -0
- package/interfaces/lib/coer-grid/grid-coer-switch.interface.d.ts +6 -0
- package/interfaces/lib/coer-grid/grid-coer-textbox.interface.d.ts +11 -0
- package/interfaces/lib/coer-grid/grid-column.interface.d.ts +24 -0
- package/interfaces/lib/coer-grid/grid-data-source.interface.d.ts +6 -0
- package/interfaces/lib/coer-grid/grid-header-button.interface.d.ts +8 -0
- package/interfaces/lib/coer-grid/grid-header-export-button.interface.d.ts +10 -0
- package/interfaces/lib/coer-grid/grid-header.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-import.interface.d.ts +4 -0
- package/interfaces/lib/coer-grid/grid-input-checkbox.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-input-switch-change.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-input-textbox.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-item.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-keyup-enter.interface.d.ts +6 -0
- package/interfaces/lib/coer-grid/grid-length.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-search.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-sort.interface.d.ts +5 -0
- package/interfaces/lib/coer-menu/menu-access.interface.d.ts +7 -0
- package/interfaces/lib/coer-menu/menu-option-selected.interface.d.ts +9 -0
- package/interfaces/lib/coer-menu/menu-selected.interface.d.ts +10 -0
- package/interfaces/lib/coer-menu/menu.interface.d.ts +10 -0
- package/interfaces/lib/coer-ref.interface.d.ts +10 -0
- package/interfaces/lib/image.interface.d.ts +11 -0
- package/interfaces/lib/login-response.interface.d.ts +10 -0
- package/interfaces/lib/login.interface.d.ts +4 -0
- package/interfaces/lib/page-title/breadcrumb.interface.d.ts +6 -0
- package/interfaces/lib/page-title/go-back.interface.d.ts +6 -0
- package/interfaces/lib/page-title/information.interface.d.ts +4 -0
- package/interfaces/lib/screen-size.interface.d.ts +5 -0
- package/interfaces/lib/service/http-request.interface.d.ts +12 -0
- package/interfaces/lib/service/http-response.interface.d.ts +6 -0
- package/interfaces/lib/service/patch.interface.d.ts +5 -0
- package/interfaces/lib/toolbar-menu.interface.d.ts +5 -0
- package/interfaces/public-api.d.ts +41 -0
- package/package.json +67 -38
- package/pages/index.d.ts +5 -0
- package/pages/lib/coer-loading/loading.component.d.ts +5 -0
- package/pages/lib/coer-menu/coer-menu.component.d.ts +12 -0
- package/pages/lib/coer-system/coer-system.component.d.ts +64 -0
- package/pages/lib/coer-system/login/login.component.d.ts +31 -0
- package/pages/lib/home/home.component.d.ts +7 -0
- package/pages/lib/pages.module.d.ts +18 -0
- package/pages/public-api.d.ts +5 -0
- package/pipes/index.d.ts +5 -0
- package/pipes/lib/html.pipe.d.ts +10 -0
- package/pipes/lib/no-image.pipe.d.ts +7 -0
- package/pipes/lib/numeric-format.pipe.d.ts +7 -0
- package/pipes/lib/pipes.module.d.ts +9 -0
- package/pipes/public-api.d.ts +4 -0
- package/signals/index.d.ts +5 -0
- package/signals/lib/breakpoint.signal.d.ts +1 -0
- package/signals/lib/is-loading.signal.d.ts +1 -0
- package/signals/lib/is-menu-open.signal.d.ts +1 -0
- package/signals/lib/is-modal-open.signal.d.ts +1 -0
- package/signals/lib/menu-selected.signal.d.ts +2 -0
- package/signals/lib/navigation.signal.d.ts +2 -0
- package/signals/public-api.d.ts +6 -0
- package/styles/angular-material.scss +20 -0
- package/styles/animations.scss +11 -0
- package/styles/bootstrap.scss +1 -14
- package/styles/coer-elements.css +2054 -0
- package/styles/colors.scss +90 -49
- package/styles/containers.scss +44 -0
- package/styles/cursores.scss +19 -0
- package/styles/index.scss +58 -0
- package/styles/layout.scss +49 -0
- package/styles/position.scss +7 -0
- package/styles/scroll-bar.scss +20 -0
- package/tools/index.d.ts +5 -0
- package/tools/lib/breadcrumbs.class.d.ts +18 -0
- package/tools/lib/coer-alert/coer-alert.component.d.ts +23 -0
- package/tools/lib/coer-grid.templates.d.ts +11 -0
- package/tools/lib/colors.class.d.ts +21 -0
- package/tools/lib/control-value.class.d.ts +25 -0
- package/tools/lib/date-time.class.d.ts +21 -0
- package/tools/lib/elements-html.class.d.ts +8 -0
- package/tools/lib/files.class.d.ts +16 -0
- package/tools/lib/filters.class.d.ts +11 -0
- package/tools/lib/menu.class.d.ts +9 -0
- package/tools/lib/page.class.d.ts +83 -0
- package/tools/lib/screen.class.d.ts +13 -0
- package/tools/lib/section.class.d.ts +33 -0
- package/tools/lib/service.class.d.ts +42 -0
- package/tools/lib/source.class.d.ts +20 -0
- package/tools/lib/tools.d.ts +42 -0
- package/tools/lib/user.class.d.ts +11 -0
- package/tools/public-api.d.ts +17 -0
- package/Signals/index.ts +0 -7
- package/Tools/Breadcrumbs.class.ts +0 -84
- package/Tools/ControlValue.ts +0 -63
- package/Tools/DateTime.class.ts +0 -27
- package/Tools/Files.class.ts +0 -119
- package/Tools/Page.class.ts +0 -197
- package/Tools/Screen.class.ts +0 -50
- package/Tools/Source.class.ts +0 -107
- package/Tools/Tools.ts +0 -212
- package/components/coer-alert/coer-alert.component.html +0 -56
- package/components/coer-alert/coer-alert.component.scss +0 -100
- package/components/coer-alert/coer-alert.component.ts +0 -249
- package/components/index.ts +0 -96
- package/dist_browser/Tools/Breadcrumbs.class.js +0 -66
- package/dist_browser/Tools/ControlValue.js +0 -49
- package/dist_browser/Tools/DateTime.class.js +0 -25
- package/dist_browser/Tools/Files.class.js +0 -99
- package/dist_browser/Tools/Page.class.js +0 -213
- package/dist_browser/Tools/Screen.class.js +0 -68
- package/dist_browser/Tools/Source.class.js +0 -83
- package/dist_browser/Tools/Tools.js +0 -227
- package/dist_browser/components/coer-alert/coer-alert.component.js +0 -314
- package/dist_browser/index.js +0 -8
- package/dist_node/Tools/Breadcrumbs.class.js +0 -69
- package/dist_node/Tools/ControlValue.js +0 -53
- package/dist_node/Tools/DateTime.class.js +0 -28
- package/dist_node/Tools/Files.class.js +0 -102
- package/dist_node/Tools/Page.class.js +0 -216
- package/dist_node/Tools/Screen.class.js +0 -71
- package/dist_node/Tools/Source.class.js +0 -86
- package/dist_node/Tools/Tools.js +0 -230
- package/dist_node/components/coer-alert/coer-alert.component.js +0 -317
- package/dist_node/index.js +0 -24
- package/dist_node/interfaces/index.js +0 -2
- package/index.ts +0 -8
- package/interfaces/index.ts +0 -47
- package/styles/coer.scss +0 -95
- package/tsconfig.json +0 -29
package/styles/colors.scss
CHANGED
|
@@ -1,167 +1,208 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
:root {
|
|
2
|
+
--blue: #0d6efd;
|
|
3
|
+
--gray: #6c757d;
|
|
4
|
+
--green: #198754;
|
|
5
|
+
--yellow: #ffc107;
|
|
6
|
+
--red: #dc3545;
|
|
7
|
+
--white: #f5f5f5;
|
|
8
|
+
--black: #252525;
|
|
9
|
+
--orange: #fd6031;
|
|
10
|
+
--purple: #a615bc;
|
|
11
|
+
}
|
|
9
12
|
|
|
10
13
|
//Blue
|
|
11
14
|
.text-blue {
|
|
12
|
-
color:
|
|
13
|
-
}
|
|
15
|
+
color: var(--blue) !important;
|
|
16
|
+
}
|
|
14
17
|
|
|
15
18
|
.text-blue-bold {
|
|
16
|
-
color:
|
|
19
|
+
color: var(--blue) !important;
|
|
17
20
|
font-weight: bold !important;
|
|
18
21
|
}
|
|
19
22
|
|
|
20
23
|
.background-blue {
|
|
21
|
-
background-color:
|
|
24
|
+
background-color: var(--blue) !important;
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
.background-border-blue {
|
|
25
|
-
background-color:
|
|
26
|
-
border-color:
|
|
28
|
+
background-color: var(--blue) !important;
|
|
29
|
+
border-color: var(--blue) !important;
|
|
27
30
|
}
|
|
28
31
|
|
|
32
|
+
.border-blue {
|
|
33
|
+
border-color: var(--blue) !important;
|
|
34
|
+
}
|
|
29
35
|
|
|
30
36
|
//Gray
|
|
31
37
|
.text-gray {
|
|
32
|
-
color:
|
|
38
|
+
color: var(--gray) !important;
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
.text-gray-bold {
|
|
36
|
-
color:
|
|
42
|
+
color: var(--gray) !important;
|
|
37
43
|
font-weight: bold !important;
|
|
38
44
|
}
|
|
39
45
|
|
|
40
46
|
.background-gray {
|
|
41
|
-
background-color:
|
|
47
|
+
background-color: var(--gray) !important;
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
.background-border-gray {
|
|
45
|
-
background-color:
|
|
46
|
-
border-color:
|
|
51
|
+
background-color: var(--gray) !important;
|
|
52
|
+
border-color: var(--gray) !important;
|
|
47
53
|
}
|
|
48
54
|
|
|
55
|
+
.border-gray {
|
|
56
|
+
border-color: var(--gray) !important;
|
|
57
|
+
}
|
|
49
58
|
|
|
50
59
|
//Green
|
|
51
60
|
.text-green {
|
|
52
|
-
color:
|
|
61
|
+
color: var(--green) !important;
|
|
53
62
|
}
|
|
54
63
|
|
|
55
64
|
.text-green-bold {
|
|
56
|
-
color:
|
|
65
|
+
color: var(--green) !important;
|
|
57
66
|
font-weight: bold !important;
|
|
58
67
|
}
|
|
59
68
|
|
|
60
69
|
.background-green {
|
|
61
|
-
background-color:
|
|
70
|
+
background-color: var(--green) !important;
|
|
62
71
|
}
|
|
63
72
|
|
|
64
73
|
.background-border-green {
|
|
65
|
-
background-color:
|
|
66
|
-
border-color:
|
|
74
|
+
background-color: var(--green) !important;
|
|
75
|
+
border-color: var(--green) !important;
|
|
67
76
|
}
|
|
68
77
|
|
|
78
|
+
.border-green {
|
|
79
|
+
border-color: var(--green) !important;
|
|
80
|
+
}
|
|
69
81
|
|
|
70
82
|
//Yellow
|
|
71
83
|
.text-yellow {
|
|
72
|
-
color:
|
|
84
|
+
color: var(--yellow) !important;
|
|
73
85
|
}
|
|
74
86
|
|
|
75
87
|
.text-yellow-bold {
|
|
76
|
-
color:
|
|
88
|
+
color: var(--yellow) !important;
|
|
77
89
|
font-weight: bold !important;
|
|
78
90
|
}
|
|
79
91
|
|
|
80
92
|
.background-yellow {
|
|
81
|
-
background-color:
|
|
93
|
+
background-color: var(--yellow) !important;
|
|
82
94
|
}
|
|
83
95
|
|
|
84
96
|
.background-border-yellow {
|
|
85
|
-
background-color:
|
|
86
|
-
border-color:
|
|
97
|
+
background-color: var(--yellow) !important;
|
|
98
|
+
border-color: var(--yellow) !important;
|
|
87
99
|
}
|
|
88
100
|
|
|
101
|
+
.border-yellow {
|
|
102
|
+
border-color: var(--yellow) !important;
|
|
103
|
+
}
|
|
89
104
|
|
|
90
105
|
//Red
|
|
91
106
|
.text-red {
|
|
92
|
-
color:
|
|
107
|
+
color: var(--red) !important;
|
|
93
108
|
}
|
|
94
109
|
|
|
95
110
|
.text-red-bold {
|
|
96
|
-
color:
|
|
111
|
+
color: var(--red) !important;
|
|
97
112
|
font-weight: bold !important;
|
|
98
113
|
}
|
|
99
114
|
|
|
100
115
|
.background-red {
|
|
101
|
-
background-color:
|
|
116
|
+
background-color: var(--red) !important;
|
|
102
117
|
}
|
|
103
118
|
|
|
104
119
|
.background-border-red {
|
|
105
|
-
background-color:
|
|
106
|
-
border-color:
|
|
120
|
+
background-color: var(--red) !important;
|
|
121
|
+
border-color: var(--red) !important;
|
|
107
122
|
}
|
|
108
123
|
|
|
124
|
+
.border-red {
|
|
125
|
+
border-color: var(--red) !important;
|
|
126
|
+
}
|
|
109
127
|
|
|
110
128
|
//White
|
|
111
129
|
.text-white {
|
|
112
|
-
color:
|
|
130
|
+
color: var(--white) !important;
|
|
113
131
|
}
|
|
114
132
|
|
|
115
133
|
.text-white-bold {
|
|
116
|
-
color:
|
|
134
|
+
color: var(--white) !important;
|
|
117
135
|
font-weight: bold !important;
|
|
118
136
|
}
|
|
119
137
|
|
|
120
138
|
.background-white {
|
|
121
|
-
background-color:
|
|
139
|
+
background-color: var(--white) !important;
|
|
122
140
|
}
|
|
123
141
|
|
|
124
142
|
.background-border-white {
|
|
125
|
-
background-color:
|
|
126
|
-
border-color:
|
|
143
|
+
background-color: var(--white) !important;
|
|
144
|
+
border-color: var(--white) !important;
|
|
127
145
|
}
|
|
128
146
|
|
|
147
|
+
.border-white {
|
|
148
|
+
border-color: var(--white) !important;
|
|
149
|
+
}
|
|
129
150
|
|
|
130
151
|
//Black
|
|
131
152
|
.text-black {
|
|
132
|
-
color:
|
|
153
|
+
color: var(--black) !important;
|
|
133
154
|
}
|
|
134
155
|
|
|
135
156
|
.text-black-bold {
|
|
136
|
-
color:
|
|
157
|
+
color: var(--black) !important;
|
|
137
158
|
font-weight: bold !important;
|
|
138
159
|
}
|
|
139
160
|
|
|
140
161
|
.background-black {
|
|
141
|
-
background-color:
|
|
162
|
+
background-color: var(--black) !important;
|
|
142
163
|
}
|
|
143
164
|
|
|
144
165
|
.background-border-black {
|
|
145
|
-
background-color:
|
|
146
|
-
border-color:
|
|
166
|
+
background-color: var(--black) !important;
|
|
167
|
+
border-color: var(--black) !important;
|
|
147
168
|
}
|
|
148
169
|
|
|
170
|
+
.border-black {
|
|
171
|
+
border-color: var(--black) !important;
|
|
172
|
+
}
|
|
149
173
|
|
|
150
174
|
//Orange
|
|
151
175
|
.text-orange {
|
|
152
|
-
color:
|
|
176
|
+
color: var(--orange) !important;
|
|
153
177
|
}
|
|
154
178
|
|
|
155
179
|
.text-orange-bold {
|
|
156
|
-
color:
|
|
180
|
+
color: var(--orange) !important;
|
|
157
181
|
font-weight: bold !important;
|
|
158
182
|
}
|
|
159
183
|
|
|
160
184
|
.background-orange {
|
|
161
|
-
background-color:
|
|
185
|
+
background-color: var(--orange) !important;
|
|
162
186
|
}
|
|
163
187
|
|
|
164
188
|
.background-border-orange {
|
|
165
|
-
background-color:
|
|
166
|
-
border-color:
|
|
189
|
+
background-color: var(--orange) !important;
|
|
190
|
+
border-color: var(--orange) !important;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.border-orange {
|
|
194
|
+
border-color: var(--orange) !important;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
//transparent
|
|
198
|
+
.text-transparent {
|
|
199
|
+
color: transparent !important;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.background-transparent {
|
|
203
|
+
background-color: transparent !important;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.border-transparent {
|
|
207
|
+
border-color: transparent !important;
|
|
167
208
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@keyframes fadeIn {
|
|
2
|
+
from { opacity: 0; }
|
|
3
|
+
to { opacity: 1; }
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin Container() {
|
|
7
|
+
margin: 15px 30px 0px 30px;
|
|
8
|
+
padding: 10px;
|
|
9
|
+
box-shadow: 0px 0px 10px -10px black;
|
|
10
|
+
border-radius: 8px;
|
|
11
|
+
background-color: white;
|
|
12
|
+
animation-name: fadeIn;
|
|
13
|
+
animation-duration: 1.5s;
|
|
14
|
+
animation-iteration-count: 1;
|
|
15
|
+
min-height: 60px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.coer-container {
|
|
19
|
+
@include Container();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.coer-container-accordion {
|
|
23
|
+
@include Container();
|
|
24
|
+
min-height: 55px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.coer-container-tab {
|
|
28
|
+
@include Container();
|
|
29
|
+
padding: 0px;
|
|
30
|
+
|
|
31
|
+
.row {
|
|
32
|
+
margin: 12px 0px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.coer-container-grid {
|
|
37
|
+
@include Container();
|
|
38
|
+
padding-bottom: 5px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.coer-container-list {
|
|
42
|
+
@include Container();
|
|
43
|
+
padding: 0px;
|
|
44
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.cursor-default {
|
|
2
|
+
cursor: default !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.cursor-pointer {
|
|
6
|
+
cursor: pointer !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.cursor-wait {
|
|
10
|
+
cursor: wait !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.cursor-grab {
|
|
14
|
+
cursor: grab !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.cursor-grabbing {
|
|
18
|
+
cursor: grabbing !important;
|
|
19
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@use "./angular-material.scss";
|
|
3
|
+
@use "./bootstrap.scss";
|
|
4
|
+
@use "./colors.scss";
|
|
5
|
+
@use "./containers.scss";
|
|
6
|
+
@use "./cursores.scss";
|
|
7
|
+
@use "./scroll-bar.scss";
|
|
8
|
+
@use "./layout.scss";
|
|
9
|
+
@use "./animations.scss";
|
|
10
|
+
@use "./position.scss";
|
|
11
|
+
|
|
12
|
+
* {
|
|
13
|
+
font-family: sans-serif;
|
|
14
|
+
letter-spacing: normal;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
h1, h2, h3, h4, h5, h6, p, pre, hr, figure, fieldset {
|
|
18
|
+
margin: 0px;
|
|
19
|
+
padding: 0px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
input[type="file"] {
|
|
23
|
+
display: none !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.readonly {
|
|
27
|
+
color: black !important;
|
|
28
|
+
background-color: #bbbbbb83 !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.no-selection::selection {
|
|
32
|
+
background-color: transparent !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
div#coer-tool-bar {
|
|
37
|
+
coer-button * {
|
|
38
|
+
color: var(--orange) !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
coer-dropdown coer-button * {
|
|
42
|
+
color: transparent !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
coer-dropdown ul {
|
|
46
|
+
right: 0px !important;
|
|
47
|
+
width: auto !important;
|
|
48
|
+
top: 2px !important;
|
|
49
|
+
border-top: 0px !important;
|
|
50
|
+
background-color: whitesmoke !important;
|
|
51
|
+
|
|
52
|
+
li:not(.no-options):hover{
|
|
53
|
+
color: black !important;
|
|
54
|
+
background-color: color.adjust(#0d6efd, $lightness: 45%) !important;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.flex-center {
|
|
2
|
+
display: flex !important;
|
|
3
|
+
align-items: center !important;
|
|
4
|
+
justify-content: center !important;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.flex-center-left {
|
|
8
|
+
display: flex !important;
|
|
9
|
+
align-items: center !important;
|
|
10
|
+
justify-content: flex-start !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.flex-center-right {
|
|
14
|
+
display: flex !important;
|
|
15
|
+
align-items: center !important;
|
|
16
|
+
justify-content: flex-end !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.fill-space {
|
|
20
|
+
flex: 1 1 auto;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@mixin FlexWrap() {
|
|
25
|
+
display: flex !important;
|
|
26
|
+
flex-wrap: wrap !important;
|
|
27
|
+
gap: 10px !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.flex-wrap-left {
|
|
31
|
+
@include FlexWrap();
|
|
32
|
+
align-items: flex-start !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.flex-wrap,
|
|
36
|
+
.flex-wrap-center {
|
|
37
|
+
@include FlexWrap();
|
|
38
|
+
align-items: center !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.flex-wrap-end {
|
|
42
|
+
@include FlexWrap();
|
|
43
|
+
align-items: flex-end !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.flex-wrap-item {
|
|
47
|
+
flex-grow: 1 !important;
|
|
48
|
+
flex-basis: 200 !important;
|
|
49
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
|
|
3
|
+
*::-webkit-scrollbar {
|
|
4
|
+
background-color: color.adjust(#6c757d, $lightness: 48%);
|
|
5
|
+
width: 5px;
|
|
6
|
+
height: 5px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
*::-webkit-scrollbar-thumb{
|
|
10
|
+
background-color: color.adjust(#6c757d, $lightness: 35%) ;
|
|
11
|
+
border-radius: 4px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
*::-webkit-scrollbar-thumb:hover {
|
|
15
|
+
background-color: var(--gray);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
*::-webkit-scrollbar-thumb:active {
|
|
19
|
+
background-color: var(--gray);
|
|
20
|
+
}
|
package/tools/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IAppSource } from "coer-elements/interfaces";
|
|
2
|
+
export declare class Breadcrumbs {
|
|
3
|
+
private static readonly storage;
|
|
4
|
+
/** */
|
|
5
|
+
static Add(page: string, path: string): void;
|
|
6
|
+
/** */
|
|
7
|
+
static Get(): IAppSource[];
|
|
8
|
+
/** */
|
|
9
|
+
static GetFirst(): IAppSource | null;
|
|
10
|
+
/** */
|
|
11
|
+
static Save(breadcrumbs: IAppSource[]): void;
|
|
12
|
+
/** */
|
|
13
|
+
static Remove(path: string): void;
|
|
14
|
+
/** */
|
|
15
|
+
static SetLast(page: string, path: string): void;
|
|
16
|
+
/** */
|
|
17
|
+
static RemoveLast(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CoerAlert {
|
|
3
|
+
/** */
|
|
4
|
+
Success(message?: string | null, title?: string | null, icon?: string | null, autohide?: number | null): void;
|
|
5
|
+
/** */
|
|
6
|
+
Error(message?: string | null, title?: string | null, icon?: string | null, autohide?: number | null): void;
|
|
7
|
+
/** */
|
|
8
|
+
Info(message?: string | null, title?: string | null, icon?: string | null, autohide?: number | null): void;
|
|
9
|
+
/** */
|
|
10
|
+
Warning(message?: string | null, title?: string | null, icon?: string | null, autohide?: number | null): void;
|
|
11
|
+
/** */
|
|
12
|
+
protected Close(alert: 'alert-success' | 'alert-error' | 'alert-info' | 'alert-warning'): Promise<void>;
|
|
13
|
+
/** */
|
|
14
|
+
Confirm(message?: string, alertType?: 'warning' | 'danger' | 'success' | 'info', icon?: string | null): Promise<boolean>;
|
|
15
|
+
/** */
|
|
16
|
+
private SetIcon;
|
|
17
|
+
/** */
|
|
18
|
+
private SetAutoHide;
|
|
19
|
+
/** */
|
|
20
|
+
private GetIcon;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoerAlert, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoerAlert, "coer-alert", never, {}, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IGridCoerSwitch, IGridCoerTextBox, IGridItem } from "coer-elements/interfaces";
|
|
2
|
+
export declare const GridTemplates: {
|
|
3
|
+
/** Template for boolean property */
|
|
4
|
+
isActiveTemplate: (item: IGridItem<any>) => string;
|
|
5
|
+
/** Template for boolean property */
|
|
6
|
+
coerSwitchTemplate: (item: IGridItem<any>) => IGridCoerSwitch;
|
|
7
|
+
/** Template for text property */
|
|
8
|
+
coerTextboxTemplate: (item: IGridItem<any>) => IGridCoerTextBox;
|
|
9
|
+
/** Template for text property */
|
|
10
|
+
coerIconTemplate: (icon: string, color?: string) => string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare class Colors {
|
|
2
|
+
static readonly blue = "#0d6efd";
|
|
3
|
+
static readonly gray = "#6c757d";
|
|
4
|
+
static readonly green = "#198754";
|
|
5
|
+
static readonly yellow = "#ffc107";
|
|
6
|
+
static readonly red = "#dc3545";
|
|
7
|
+
static readonly white = "#f5f5f5";
|
|
8
|
+
static readonly black = "#252525";
|
|
9
|
+
static readonly orange = "#fd6031";
|
|
10
|
+
static readonly purple = "#a615bc";
|
|
11
|
+
/** Returns the color palette in hexadecimal */
|
|
12
|
+
private static readonly colorsHex;
|
|
13
|
+
/** Returns the color palette in RGB */
|
|
14
|
+
private static readonly ColorsRGB;
|
|
15
|
+
/** Returns a random color in hexadecimal */
|
|
16
|
+
static GetRandomColorHex: () => string;
|
|
17
|
+
/** Returns the number of colors requested */
|
|
18
|
+
static GetColorHexList(quantity: number): string[];
|
|
19
|
+
/** Returns the number of colors requested with opacity */
|
|
20
|
+
static GetColorRGBList(quantity: number): string[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
2
|
+
export declare const CONTROL_VALUE: <T>(component: T) => {
|
|
3
|
+
provide: import("@angular/core").InjectionToken<readonly ControlValueAccessor[]>;
|
|
4
|
+
useExisting: import("@angular/core").Type<any>;
|
|
5
|
+
multi: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare class ControlValue implements ControlValueAccessor {
|
|
8
|
+
protected _value: any;
|
|
9
|
+
private _isTouched;
|
|
10
|
+
protected _UpdateValue: Function;
|
|
11
|
+
private _IsTouched;
|
|
12
|
+
get isTouched(): boolean;
|
|
13
|
+
/** */
|
|
14
|
+
protected SetValue(value: any): void;
|
|
15
|
+
/** */
|
|
16
|
+
SetTouched(isTouched: boolean): void;
|
|
17
|
+
/** */
|
|
18
|
+
writeValue(value: any): void;
|
|
19
|
+
/** */
|
|
20
|
+
registerOnChange(callback: Function): void;
|
|
21
|
+
/** */
|
|
22
|
+
registerOnTouched(callback: Function): void;
|
|
23
|
+
/** */
|
|
24
|
+
setDisabledState(isDisabled: boolean): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import moment from "moment";
|
|
2
|
+
export declare class DateTime {
|
|
3
|
+
/** Get UTC Offset */
|
|
4
|
+
static GetOffset(): number;
|
|
5
|
+
/** YYYY-MM-DD HH:mm:ss */
|
|
6
|
+
static GetFormatDB(date: string | Date | moment.Moment): string;
|
|
7
|
+
/** Convert UTC Date to Local Zone */
|
|
8
|
+
static ToLocalZone(date: string | Date | moment.Moment): string;
|
|
9
|
+
/** Convert Local Zone Date to UTC */
|
|
10
|
+
static ToUTC(date: string | Date | moment.Moment): string;
|
|
11
|
+
/** MMM, DD YYYY */
|
|
12
|
+
static GetDateFormat(date: string | Date | moment.Moment): string;
|
|
13
|
+
/** MMM, DD YYYY at hh:mm a */
|
|
14
|
+
static GetDateTimeFormat(date: string | Date | moment.Moment): string;
|
|
15
|
+
/** */
|
|
16
|
+
static IsValidDate(date: string | Date | moment.Moment): boolean;
|
|
17
|
+
/** */
|
|
18
|
+
static SetFirstHour(date?: string | Date | moment.Moment, format?: 'database' | 'display'): string;
|
|
19
|
+
/** */
|
|
20
|
+
static SetLastHour(date?: string | Date | moment.Moment, format?: 'database' | 'display'): string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const ElementsHTML: {
|
|
2
|
+
/** Get width in px */
|
|
3
|
+
GetElementWidth: (element: HTMLElement | null | undefined, ...args: (number | HTMLElement | null | undefined)[]) => string;
|
|
4
|
+
/** Get height in px */
|
|
5
|
+
GetElementHeight: (element: HTMLElement | null | undefined, ...args: (number | HTMLElement | null | undefined)[]) => string;
|
|
6
|
+
/** */
|
|
7
|
+
IsInvalidElement: (element: any) => boolean;
|
|
8
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class Files {
|
|
2
|
+
static readonly EXCEL_EXTENSIONS: string[];
|
|
3
|
+
/** Get Extension File */
|
|
4
|
+
static GetExtension(file: File): string | null;
|
|
5
|
+
/** Is Excel File */
|
|
6
|
+
static IsExcel(file: File): boolean;
|
|
7
|
+
/** Read excel file */
|
|
8
|
+
static ReadExcel<T>(file: File): Promise<{
|
|
9
|
+
columns: string[];
|
|
10
|
+
rows: T[];
|
|
11
|
+
}>;
|
|
12
|
+
/** Export to excel file */
|
|
13
|
+
static ExportExcel<T>(data: T[], fileName?: string, sheetName?: string): void;
|
|
14
|
+
/** Convert file to string base64 */
|
|
15
|
+
static ConvertToBase64(file: File): Promise<string>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class Filters {
|
|
2
|
+
private static readonly storage;
|
|
3
|
+
/** */
|
|
4
|
+
static Add<T>(filters: T, path: string): void;
|
|
5
|
+
/** */
|
|
6
|
+
static Get<T>(path: string): T | null;
|
|
7
|
+
/** */
|
|
8
|
+
static Remove(path: string): void;
|
|
9
|
+
/** */
|
|
10
|
+
static RemoveAll(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IMenuAccess, IMenuOptionSelected } from "coer-elements/interfaces";
|
|
2
|
+
export declare class Menu {
|
|
3
|
+
private static readonly storage;
|
|
4
|
+
/** */
|
|
5
|
+
static SetSelectedOption(menu: IMenuOptionSelected): void;
|
|
6
|
+
/** */
|
|
7
|
+
static GetSelectedOption(): IMenuOptionSelected | null;
|
|
8
|
+
static GetMenuAccess: () => IMenuAccess[];
|
|
9
|
+
}
|