@libs-ui/services-config-project 0.1.1-1
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 +3 -0
- package/config-project-data.d.ts +326 -0
- package/config-project.interface.d.ts +104 -0
- package/config-project.service.d.ts +62 -0
- package/esm2022/config-project-data.mjs +621 -0
- package/esm2022/config-project.interface.mjs +2 -0
- package/esm2022/config-project.service.mjs +331 -0
- package/esm2022/index.mjs +4 -0
- package/esm2022/libs-ui-services-config-project.mjs +5 -0
- package/fesm2022/libs-ui-services-config-project.mjs +957 -0
- package/fesm2022/libs-ui-services-config-project.mjs.map +1 -0
- package/index.d.ts +3 -0
- package/package.json +25 -0
package/README.md
ADDED
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import { IColorButtonTab, ILibsUiConfigButtonSize, ILibsUiConfigButtonStatus, ILibsUiConfigButtonTab, ILibsUiConfigFontHeading, ILibsUiConfigFontWeight } from './config-project.interface';
|
|
2
|
+
export declare const fontConfig: {
|
|
3
|
+
name: string;
|
|
4
|
+
uri_regular: string;
|
|
5
|
+
uri_medium: string;
|
|
6
|
+
uri_semibold: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const weights: ILibsUiConfigFontWeight;
|
|
9
|
+
export declare const configHeading: ILibsUiConfigFontHeading;
|
|
10
|
+
export declare const sizeButtonConfig: () => ILibsUiConfigButtonSize;
|
|
11
|
+
export declare const configButtonColor: (rootColorInTheme: string) => {
|
|
12
|
+
'button-primary': {
|
|
13
|
+
configStepColor: {
|
|
14
|
+
text: string;
|
|
15
|
+
text_hover: string;
|
|
16
|
+
text_active: string;
|
|
17
|
+
text_disable: string;
|
|
18
|
+
background: number;
|
|
19
|
+
background_hover: number;
|
|
20
|
+
background_active: number;
|
|
21
|
+
background_disable: string;
|
|
22
|
+
border: number;
|
|
23
|
+
border_hover: number;
|
|
24
|
+
border_active: number;
|
|
25
|
+
border_disable: string;
|
|
26
|
+
};
|
|
27
|
+
rootColor: string;
|
|
28
|
+
};
|
|
29
|
+
'button-primary-revert': {
|
|
30
|
+
configStepColor: {
|
|
31
|
+
text: number;
|
|
32
|
+
text_hover: string;
|
|
33
|
+
text_active: string;
|
|
34
|
+
text_disable: string;
|
|
35
|
+
background: string;
|
|
36
|
+
background_hover: number;
|
|
37
|
+
background_active: number;
|
|
38
|
+
background_disable: string;
|
|
39
|
+
border: number;
|
|
40
|
+
border_hover: number;
|
|
41
|
+
border_active: number;
|
|
42
|
+
border_disable: string;
|
|
43
|
+
};
|
|
44
|
+
rootColor: string;
|
|
45
|
+
};
|
|
46
|
+
'button-secondary': {
|
|
47
|
+
configStepColor: {
|
|
48
|
+
text: number;
|
|
49
|
+
text_hover: number;
|
|
50
|
+
text_active: number;
|
|
51
|
+
text_disable: string;
|
|
52
|
+
background: number;
|
|
53
|
+
background_hover: number;
|
|
54
|
+
background_active: number;
|
|
55
|
+
background_disable: string;
|
|
56
|
+
border: number;
|
|
57
|
+
border_hover: number;
|
|
58
|
+
border_active: number;
|
|
59
|
+
border_disable: string;
|
|
60
|
+
};
|
|
61
|
+
rootColor: string;
|
|
62
|
+
};
|
|
63
|
+
'button-third': {
|
|
64
|
+
configStepColor: {
|
|
65
|
+
text: string;
|
|
66
|
+
text_hover: number;
|
|
67
|
+
text_active: number;
|
|
68
|
+
text_disable: string;
|
|
69
|
+
background: string;
|
|
70
|
+
background_hover: number;
|
|
71
|
+
background_active: number;
|
|
72
|
+
background_disable: string;
|
|
73
|
+
border: string;
|
|
74
|
+
border_hover: number;
|
|
75
|
+
border_active: number;
|
|
76
|
+
border_disable: string;
|
|
77
|
+
};
|
|
78
|
+
rootColor: string;
|
|
79
|
+
};
|
|
80
|
+
'button-secondary-red': {
|
|
81
|
+
configStepColor: {
|
|
82
|
+
text: number;
|
|
83
|
+
text_hover: number;
|
|
84
|
+
text_active: number;
|
|
85
|
+
text_disable: string;
|
|
86
|
+
background: number;
|
|
87
|
+
background_hover: number;
|
|
88
|
+
background_active: number;
|
|
89
|
+
background_disable: string;
|
|
90
|
+
border: number;
|
|
91
|
+
border_hover: number;
|
|
92
|
+
border_active: number;
|
|
93
|
+
border_disable: string;
|
|
94
|
+
};
|
|
95
|
+
rootColor: string;
|
|
96
|
+
};
|
|
97
|
+
'button-outline': {
|
|
98
|
+
configStepColor: {
|
|
99
|
+
text: string;
|
|
100
|
+
text_hover: number;
|
|
101
|
+
text_active: number;
|
|
102
|
+
text_disable: string;
|
|
103
|
+
background: string;
|
|
104
|
+
background_hover: string;
|
|
105
|
+
background_active: string;
|
|
106
|
+
background_disable: string;
|
|
107
|
+
border: string;
|
|
108
|
+
border_hover: number;
|
|
109
|
+
border_active: number;
|
|
110
|
+
border_disable: string;
|
|
111
|
+
};
|
|
112
|
+
rootColor: string;
|
|
113
|
+
};
|
|
114
|
+
'button-danger-high': {
|
|
115
|
+
configStepColor: {
|
|
116
|
+
text: string;
|
|
117
|
+
text_hover: string;
|
|
118
|
+
text_active: string;
|
|
119
|
+
text_disable: string;
|
|
120
|
+
background: number;
|
|
121
|
+
background_hover: number;
|
|
122
|
+
background_active: number;
|
|
123
|
+
background_disable: string;
|
|
124
|
+
border: number;
|
|
125
|
+
border_hover: number;
|
|
126
|
+
border_active: number;
|
|
127
|
+
border_disable: string;
|
|
128
|
+
};
|
|
129
|
+
rootColor: string;
|
|
130
|
+
};
|
|
131
|
+
'button-danger-low': {
|
|
132
|
+
configStepColor: {
|
|
133
|
+
text: string;
|
|
134
|
+
text_hover: string;
|
|
135
|
+
text_active: string;
|
|
136
|
+
text_disable: string;
|
|
137
|
+
background: number;
|
|
138
|
+
background_hover: number;
|
|
139
|
+
background_active: number;
|
|
140
|
+
background_disable: string;
|
|
141
|
+
border: number;
|
|
142
|
+
border_hover: number;
|
|
143
|
+
border_active: number;
|
|
144
|
+
border_disable: string;
|
|
145
|
+
};
|
|
146
|
+
rootColor: string;
|
|
147
|
+
};
|
|
148
|
+
'button-green': {
|
|
149
|
+
configStepColor: {
|
|
150
|
+
text: string;
|
|
151
|
+
text_hover: string;
|
|
152
|
+
text_active: string;
|
|
153
|
+
text_disable: string;
|
|
154
|
+
background: number;
|
|
155
|
+
background_hover: number;
|
|
156
|
+
background_active: number;
|
|
157
|
+
background_disable: string;
|
|
158
|
+
border: number;
|
|
159
|
+
border_hover: number;
|
|
160
|
+
border_active: number;
|
|
161
|
+
border_disable: string;
|
|
162
|
+
};
|
|
163
|
+
rootColor: string;
|
|
164
|
+
};
|
|
165
|
+
'button-violet': {
|
|
166
|
+
configStepColor: {
|
|
167
|
+
text: string;
|
|
168
|
+
text_hover: string;
|
|
169
|
+
text_active: string;
|
|
170
|
+
text_disable: string;
|
|
171
|
+
background: number;
|
|
172
|
+
background_hover: number;
|
|
173
|
+
background_active: number;
|
|
174
|
+
background_disable: string;
|
|
175
|
+
border: number;
|
|
176
|
+
border_hover: number;
|
|
177
|
+
border_active: number;
|
|
178
|
+
border_disable: string;
|
|
179
|
+
};
|
|
180
|
+
rootColor: string;
|
|
181
|
+
};
|
|
182
|
+
'button-outline-green': {
|
|
183
|
+
configStepColor: {
|
|
184
|
+
text: string;
|
|
185
|
+
text_hover: number;
|
|
186
|
+
text_active: number;
|
|
187
|
+
text_disable: string;
|
|
188
|
+
background: string;
|
|
189
|
+
background_hover: string;
|
|
190
|
+
background_active: string;
|
|
191
|
+
background_disable: string;
|
|
192
|
+
border: string;
|
|
193
|
+
border_hover: number;
|
|
194
|
+
border_active: number;
|
|
195
|
+
border_disable: string;
|
|
196
|
+
};
|
|
197
|
+
rootColor: string;
|
|
198
|
+
};
|
|
199
|
+
'button-secondary-green': {
|
|
200
|
+
configStepColor: {
|
|
201
|
+
text: number;
|
|
202
|
+
text_hover: string;
|
|
203
|
+
text_active: string;
|
|
204
|
+
text_disable: string;
|
|
205
|
+
background: number;
|
|
206
|
+
background_hover: number;
|
|
207
|
+
background_active: number;
|
|
208
|
+
background_disable: string;
|
|
209
|
+
border: number;
|
|
210
|
+
border_hover: number;
|
|
211
|
+
border_active: number;
|
|
212
|
+
border_disable: string;
|
|
213
|
+
};
|
|
214
|
+
rootColor: string;
|
|
215
|
+
};
|
|
216
|
+
'button-outline-secondary': {
|
|
217
|
+
configStepColor: {
|
|
218
|
+
text: number;
|
|
219
|
+
text_hover: string;
|
|
220
|
+
text_active: string;
|
|
221
|
+
text_disable: string;
|
|
222
|
+
background: number;
|
|
223
|
+
background_hover: number;
|
|
224
|
+
background_active: number;
|
|
225
|
+
background_disable: string;
|
|
226
|
+
border: number;
|
|
227
|
+
border_hover: number;
|
|
228
|
+
border_active: number;
|
|
229
|
+
border_disable: string;
|
|
230
|
+
};
|
|
231
|
+
rootColor: string;
|
|
232
|
+
};
|
|
233
|
+
'button-outline-hover-danger': {
|
|
234
|
+
configStepColor: {
|
|
235
|
+
text: string;
|
|
236
|
+
text_hover: number;
|
|
237
|
+
text_active: number;
|
|
238
|
+
text_disable: string;
|
|
239
|
+
background: string;
|
|
240
|
+
background_hover: string;
|
|
241
|
+
background_active: string;
|
|
242
|
+
background_disable: string;
|
|
243
|
+
border: string;
|
|
244
|
+
border_hover: number;
|
|
245
|
+
border_active: number;
|
|
246
|
+
border_disable: string;
|
|
247
|
+
};
|
|
248
|
+
rootColor: string;
|
|
249
|
+
};
|
|
250
|
+
'button-third-hover-danger': {
|
|
251
|
+
configStepColor: {
|
|
252
|
+
text: string;
|
|
253
|
+
text_hover: number;
|
|
254
|
+
text_active: number;
|
|
255
|
+
text_disable: string;
|
|
256
|
+
background: string;
|
|
257
|
+
background_hover: number;
|
|
258
|
+
background_active: number;
|
|
259
|
+
background_disable: string;
|
|
260
|
+
border: string;
|
|
261
|
+
border_hover: number;
|
|
262
|
+
border_active: number;
|
|
263
|
+
border_disable: string;
|
|
264
|
+
};
|
|
265
|
+
rootColor: string;
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
export declare const configLinkButton: (rootColorInTheme: string) => {
|
|
269
|
+
'button-link-primary': {
|
|
270
|
+
configStepColor: {
|
|
271
|
+
text: number;
|
|
272
|
+
text_hover: number;
|
|
273
|
+
text_active: number;
|
|
274
|
+
text_disable: string;
|
|
275
|
+
};
|
|
276
|
+
rootColor: string;
|
|
277
|
+
};
|
|
278
|
+
'button-link-third': {
|
|
279
|
+
configStepColor: {
|
|
280
|
+
text: string;
|
|
281
|
+
text_hover: number;
|
|
282
|
+
text_active: number;
|
|
283
|
+
text_disable: string;
|
|
284
|
+
};
|
|
285
|
+
rootColor: string;
|
|
286
|
+
};
|
|
287
|
+
'button-link-danger-high': {
|
|
288
|
+
configStepColor: {
|
|
289
|
+
text: number;
|
|
290
|
+
text_hover: number;
|
|
291
|
+
text_active: number;
|
|
292
|
+
text_disable: string;
|
|
293
|
+
};
|
|
294
|
+
rootColor: string;
|
|
295
|
+
};
|
|
296
|
+
'button-link-danger-low': {
|
|
297
|
+
configStepColor: {
|
|
298
|
+
text: number;
|
|
299
|
+
text_hover: number;
|
|
300
|
+
text_active: number;
|
|
301
|
+
text_disable: string;
|
|
302
|
+
};
|
|
303
|
+
rootColor: string;
|
|
304
|
+
};
|
|
305
|
+
'button-link-green': {
|
|
306
|
+
configStepColor: {
|
|
307
|
+
text: number;
|
|
308
|
+
text_hover: number;
|
|
309
|
+
text_active: number;
|
|
310
|
+
text_disable: string;
|
|
311
|
+
};
|
|
312
|
+
rootColor: string;
|
|
313
|
+
};
|
|
314
|
+
'button-link-violet': {
|
|
315
|
+
configStepColor: {
|
|
316
|
+
text: number;
|
|
317
|
+
text_hover: number;
|
|
318
|
+
text_active: number;
|
|
319
|
+
text_disable: string;
|
|
320
|
+
};
|
|
321
|
+
rootColor: string;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
export declare const configButtonStatus: () => ILibsUiConfigButtonStatus;
|
|
325
|
+
export declare const configButtonTab: () => ILibsUiConfigButtonTab;
|
|
326
|
+
export declare const styleButtonTab: (type: string, config: IColorButtonTab) => string;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export interface ILibsUiConfigFontFamily {
|
|
2
|
+
name: string;
|
|
3
|
+
uri_regular: string;
|
|
4
|
+
uri_medium: string;
|
|
5
|
+
uri_semibold: string;
|
|
6
|
+
uri_bold?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ILibsUiConfigFontWeight {
|
|
9
|
+
uri_regular: string;
|
|
10
|
+
uri_medium: string;
|
|
11
|
+
uri_semibold: string;
|
|
12
|
+
uri_bold: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ILibsUiConfigFontHeading {
|
|
15
|
+
h1r: ILibsUiConfigFontHeadingStyle;
|
|
16
|
+
h1m: ILibsUiConfigFontHeadingStyle;
|
|
17
|
+
h1s: ILibsUiConfigFontHeadingStyle;
|
|
18
|
+
h1b: ILibsUiConfigFontHeadingStyle;
|
|
19
|
+
h2r: ILibsUiConfigFontHeadingStyle;
|
|
20
|
+
h2m: ILibsUiConfigFontHeadingStyle;
|
|
21
|
+
h2s: ILibsUiConfigFontHeadingStyle;
|
|
22
|
+
h2b: ILibsUiConfigFontHeadingStyle;
|
|
23
|
+
h3r: ILibsUiConfigFontHeadingStyle;
|
|
24
|
+
h3m: ILibsUiConfigFontHeadingStyle;
|
|
25
|
+
h3s: ILibsUiConfigFontHeadingStyle;
|
|
26
|
+
h3b: ILibsUiConfigFontHeadingStyle;
|
|
27
|
+
h4r: ILibsUiConfigFontHeadingStyle;
|
|
28
|
+
h4m: ILibsUiConfigFontHeadingStyle;
|
|
29
|
+
h4s: ILibsUiConfigFontHeadingStyle;
|
|
30
|
+
h4b: ILibsUiConfigFontHeadingStyle;
|
|
31
|
+
h5r: ILibsUiConfigFontHeadingStyle;
|
|
32
|
+
h5m: ILibsUiConfigFontHeadingStyle;
|
|
33
|
+
h5s: ILibsUiConfigFontHeadingStyle;
|
|
34
|
+
h5b: ILibsUiConfigFontHeadingStyle;
|
|
35
|
+
h6r: ILibsUiConfigFontHeadingStyle;
|
|
36
|
+
h6m: ILibsUiConfigFontHeadingStyle;
|
|
37
|
+
h6s: ILibsUiConfigFontHeadingStyle;
|
|
38
|
+
h6b: ILibsUiConfigFontHeadingStyle;
|
|
39
|
+
h7r: ILibsUiConfigFontHeadingStyle;
|
|
40
|
+
h7m: ILibsUiConfigFontHeadingStyle;
|
|
41
|
+
h7s: ILibsUiConfigFontHeadingStyle;
|
|
42
|
+
h7b: ILibsUiConfigFontHeadingStyle;
|
|
43
|
+
}
|
|
44
|
+
export interface ILibsUiConfigFontHeadingStyle {
|
|
45
|
+
'font-size': string;
|
|
46
|
+
'font-weight': string;
|
|
47
|
+
'line-height': string;
|
|
48
|
+
'letter-spacing': string;
|
|
49
|
+
}
|
|
50
|
+
export interface ILibsUiConfigButtonStatus {
|
|
51
|
+
[key: string]: {
|
|
52
|
+
color: string;
|
|
53
|
+
background?: string;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export interface ILibsUiConfigButtonTab {
|
|
57
|
+
[key: string]: IColorButtonTab;
|
|
58
|
+
}
|
|
59
|
+
export interface IColorButtonTab {
|
|
60
|
+
color: string;
|
|
61
|
+
background?: string;
|
|
62
|
+
background_badge?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface IColorButton {
|
|
65
|
+
configStepColor: {
|
|
66
|
+
text: string | number;
|
|
67
|
+
text_hover: string | number;
|
|
68
|
+
text_active: string | number;
|
|
69
|
+
text_disable: string | number;
|
|
70
|
+
background?: string | number;
|
|
71
|
+
background_hover?: string | number;
|
|
72
|
+
background_active?: string | number;
|
|
73
|
+
background_disable?: string | number;
|
|
74
|
+
border?: string | number;
|
|
75
|
+
border_hover?: string | number;
|
|
76
|
+
border_active?: string | number;
|
|
77
|
+
border_disable?: string | number;
|
|
78
|
+
};
|
|
79
|
+
rootColor: string;
|
|
80
|
+
}
|
|
81
|
+
export interface ILibsUiConfigButtonSize {
|
|
82
|
+
icon: {
|
|
83
|
+
large: string;
|
|
84
|
+
medium: string;
|
|
85
|
+
small: string;
|
|
86
|
+
smaller: string;
|
|
87
|
+
};
|
|
88
|
+
large: {
|
|
89
|
+
font_size: string;
|
|
90
|
+
line_height: string;
|
|
91
|
+
};
|
|
92
|
+
medium: {
|
|
93
|
+
font_size: string;
|
|
94
|
+
line_height: string;
|
|
95
|
+
};
|
|
96
|
+
small: {
|
|
97
|
+
font_size: string;
|
|
98
|
+
line_height: string;
|
|
99
|
+
};
|
|
100
|
+
smaller: {
|
|
101
|
+
font_size: string;
|
|
102
|
+
line_height: string;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { IColorButton, ILibsUiConfigButtonStatus, ILibsUiConfigButtonTab, ILibsUiConfigFontFamily, ILibsUiConfigFontHeading } from './config-project.interface';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LibsUiConfigProjectService {
|
|
4
|
+
private readonly themeColor;
|
|
5
|
+
private readonly borderColor;
|
|
6
|
+
private readonly textErrorColor;
|
|
7
|
+
private readonly iconHoverDangerColor;
|
|
8
|
+
private readonly borderErrorColor;
|
|
9
|
+
private readonly backgroundDisableColor;
|
|
10
|
+
private readonly textReadonlyColor;
|
|
11
|
+
private readonly textDisableColor;
|
|
12
|
+
private readonly backgroundReadonlyColor;
|
|
13
|
+
private readonly backgroundUserSelection;
|
|
14
|
+
private readonly backgroundList;
|
|
15
|
+
private readonly backgroundListHover;
|
|
16
|
+
private readonly backgroundListHoverDanger;
|
|
17
|
+
private readonly configFont;
|
|
18
|
+
private readonly configHead;
|
|
19
|
+
private readonly functionGetConfigButtonIncludes;
|
|
20
|
+
private readonly configButton;
|
|
21
|
+
private readonly configButtonSize;
|
|
22
|
+
private readonly configButtonStatus;
|
|
23
|
+
private readonly configButtonTab;
|
|
24
|
+
private readonly styleClassGlobalEl;
|
|
25
|
+
private readonly styleClassHeadEl;
|
|
26
|
+
private readonly styleClassButtonTabEl;
|
|
27
|
+
constructor();
|
|
28
|
+
set ThemeColor(color: string);
|
|
29
|
+
set BorderColor(color: string);
|
|
30
|
+
set BorderErrorColor(color: string);
|
|
31
|
+
set TextErrorColor(color: string);
|
|
32
|
+
set IconHoverDangerColor(color: string);
|
|
33
|
+
set BackgroundReadonlyColor(color: string);
|
|
34
|
+
set TextReadonlyColor(color: string);
|
|
35
|
+
set BackgroundUserSelection(color: string);
|
|
36
|
+
set BackgroundList(color: string);
|
|
37
|
+
set BackgroundListHover(color: string);
|
|
38
|
+
set BackgroundListHoverDanger(color: string);
|
|
39
|
+
set BackgroundDisableColor(color: string);
|
|
40
|
+
set TextDisableColor(color: string);
|
|
41
|
+
set ConfigFont(configFont: ILibsUiConfigFontFamily);
|
|
42
|
+
set ConfigFontHead(configHead: ILibsUiConfigFontHeading);
|
|
43
|
+
get ConfigButton(): import("@angular/core").Signal<{
|
|
44
|
+
[key: string]: IColorButton;
|
|
45
|
+
}>;
|
|
46
|
+
set FunctionGetConfigButtonIncludes(functionGetConfigButtonIncludes: (rootColor: string) => {
|
|
47
|
+
[key: string]: IColorButton;
|
|
48
|
+
});
|
|
49
|
+
get ConfigButtonStatus(): ILibsUiConfigButtonStatus;
|
|
50
|
+
set ConfigButtonStatus(config: ILibsUiConfigButtonStatus);
|
|
51
|
+
set ConfigButtonTab(config: ILibsUiConfigButtonTab);
|
|
52
|
+
setupFontFamily(currentDoc?: Document): void;
|
|
53
|
+
private setupFontHead;
|
|
54
|
+
private setupButtonSize;
|
|
55
|
+
private setupButtonTab;
|
|
56
|
+
private setThemeColor;
|
|
57
|
+
colorStepContrastFromOrigin(step: number, color?: string): import("@libs-ui/utils").IColorContrastFromOrigin | undefined;
|
|
58
|
+
private setClassGlobal;
|
|
59
|
+
private configString;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiConfigProjectService, never>;
|
|
61
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LibsUiConfigProjectService>;
|
|
62
|
+
}
|