@fxlt/common-ui 0.0.1 → 0.0.3-rc1
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 +2 -62
- package/components.css +18 -3
- package/dialogs.css +45 -91
- package/fesm2022/fxlt-common-ui.mjs +378 -94
- package/fesm2022/fxlt-common-ui.mjs.map +1 -1
- package/index.d.ts +105 -34
- package/package.json +4 -2
- package/src/lib/styles/components.css +18 -3
- package/src/lib/styles/dialogs.css +45 -91
- package/src/lib/ui/components/button/button.component.html +1 -1
- package/src/lib/ui/components/checkbox/checkbox.component.html +6 -7
- package/src/lib/ui/components/input/input.component.html +2 -0
- package/src/lib/ui/components/rich-text-area/rich-text-area.component.html +3 -0
- package/src/lib/ui/components/select/select.component.css +22 -0
- package/src/lib/ui/components/select/select.component.html +14 -1
- package/src/lib/ui/components/skeleton-table-loading/skeleton-table-loading.component.html +21 -0
- package/src/lib/ui/components/switch/switch.component.html +1 -1
- package/src/lib/ui/components/toast/toast.component.html +1 -1
- package/src/lib/ui/dialogs/confirmation/confirmation.component.html +4 -4
package/README.md
CHANGED
|
@@ -1,63 +1,3 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @fxlt/common-ui
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
ng generate component component-name
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
ng generate --help
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Building
|
|
20
|
-
|
|
21
|
-
To build the library, run:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
ng build ui
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
28
|
-
|
|
29
|
-
### Publishing the Library
|
|
30
|
-
|
|
31
|
-
Once the project is built, you can publish your library by following these steps:
|
|
32
|
-
|
|
33
|
-
1. Navigate to the `dist` directory:
|
|
34
|
-
```bash
|
|
35
|
-
cd dist/ui
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
2. Run the `npm publish` command to publish your library to the npm registry:
|
|
39
|
-
```bash
|
|
40
|
-
npm publish
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
## Running unit tests
|
|
44
|
-
|
|
45
|
-
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
ng test
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
## Running end-to-end tests
|
|
52
|
-
|
|
53
|
-
For end-to-end (e2e) testing, run:
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
ng e2e
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
60
|
-
|
|
61
|
-
## Additional Resources
|
|
62
|
-
|
|
63
|
-
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
3
|
+
Common UI & Service Library
|
package/components.css
CHANGED
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
box-shadow: 0 2px 4px rgb(var(--shadow-color) / 0.1) !important;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
.mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow {
|
|
125
|
+
.mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow {
|
|
126
126
|
color: rgb(var(--text-primary)) !important;
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -142,7 +142,10 @@
|
|
|
142
142
|
background-color: rgb(var(--bg-primary)) !important;
|
|
143
143
|
border-radius: 8px !important;
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
.mat-mdc-dialog-container .mat-mdc-dialog-content {
|
|
146
|
+
letter-spacing: 0 !important;
|
|
147
|
+
padding: 10px 20px !important;
|
|
148
|
+
}
|
|
146
149
|
|
|
147
150
|
input[type='number']::-webkit-outer-spin-button,
|
|
148
151
|
input[type='number']::-webkit-inner-spin-button {
|
|
@@ -187,6 +190,9 @@ input[type='password'] {
|
|
|
187
190
|
.txt-section-header {
|
|
188
191
|
@apply mb-1 text-xl text-text-primary font-semibold tracking-normal leading-7;
|
|
189
192
|
}
|
|
193
|
+
.txt-dialog-header {
|
|
194
|
+
@apply text-xl text-text-primary font-semibold tracking-normal leading-7 px-xl py-semi;
|
|
195
|
+
}
|
|
190
196
|
.txt-section-subtitle {
|
|
191
197
|
@apply text-sm text-text-secondary font-normal tracking-normal;
|
|
192
198
|
}
|
|
@@ -330,7 +336,7 @@ input[type='password'] {
|
|
|
330
336
|
@apply rounded px-semi py-small;
|
|
331
337
|
}
|
|
332
338
|
.tag-round {
|
|
333
|
-
@apply rounded-2xl
|
|
339
|
+
@apply rounded-2xl;
|
|
334
340
|
}
|
|
335
341
|
/* progress bar */
|
|
336
342
|
.progress-bar-container {
|
|
@@ -381,3 +387,12 @@ input[type='password'] {
|
|
|
381
387
|
padding-top: 16px !important;
|
|
382
388
|
padding-bottom: 16px !important;
|
|
383
389
|
}
|
|
390
|
+
.table-action-col {
|
|
391
|
+
width: 40px;
|
|
392
|
+
}
|
|
393
|
+
.table-status-col {
|
|
394
|
+
width: 200px;
|
|
395
|
+
}
|
|
396
|
+
.dialog-container {
|
|
397
|
+
@apply rounded-lg border border-border-default;
|
|
398
|
+
}
|
package/dialogs.css
CHANGED
|
@@ -2,71 +2,25 @@
|
|
|
2
2
|
max-width: unset !important;
|
|
3
3
|
border-radius: 8px !important;
|
|
4
4
|
.mat-dialog-actions {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
border-top: 1px solid rgb(var(--border-default)) !important;
|
|
6
|
+
margin-left: -24px;
|
|
7
|
+
margin-right: -24px;
|
|
8
|
+
padding: 12px 24px 10px 10px;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.mat-dialog-title {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
.mat-dialog-content {
|
|
21
|
-
min-height: 110px;
|
|
22
|
-
letter-spacing: 0 !important;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.fx-dialog3 {
|
|
27
|
-
.mat-dialog-actions {
|
|
28
|
-
border-top: 1px solid rgb(var(--border-default));
|
|
29
|
-
margin-left: -24px;
|
|
30
|
-
margin-right: -24px;
|
|
31
|
-
padding: 12px 24px 10px 10px;
|
|
12
|
+
margin-left: -24px;
|
|
13
|
+
margin-right: -24px;
|
|
14
|
+
padding-right: 24px;
|
|
15
|
+
padding-left: 24px;
|
|
16
|
+
border-bottom: 1px solid rgb(var(--border-default));
|
|
17
|
+
padding-bottom: 20px;
|
|
18
|
+
letter-spacing: 0 !important;
|
|
32
19
|
}
|
|
33
20
|
|
|
34
|
-
.mat-dialog-title {
|
|
35
|
-
margin-left: -24px;
|
|
36
|
-
margin-right: -24px;
|
|
37
|
-
padding-right: 24px;
|
|
38
|
-
padding-left: 24px;
|
|
39
|
-
border-bottom: 1px solid rgb(var(--border-default));
|
|
40
|
-
padding-bottom: 20px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
21
|
.mat-dialog-content {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
letter-spacing: 0 !important;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.fx-dialog4 {
|
|
51
|
-
max-width: unset !important;
|
|
52
|
-
.mat-dialog-actions {
|
|
53
|
-
border-top: 1px solid rgb(var(--border-default));
|
|
54
|
-
margin-left: -24px;
|
|
55
|
-
margin-right: -24px;
|
|
56
|
-
padding: 12px 24px 10px 10px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.mat-dialog-title {
|
|
60
|
-
margin-left: -24px;
|
|
61
|
-
margin-right: -24px;
|
|
62
|
-
padding-right: 24px;
|
|
63
|
-
padding-left: 24px;
|
|
64
|
-
border-bottom: 1px solid rgb(var(--border-default));
|
|
65
|
-
padding-bottom: 20px;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.mat-dialog-content {
|
|
69
|
-
min-height: 50px;
|
|
22
|
+
min-height: 110px;
|
|
23
|
+
letter-spacing: 0 !important;
|
|
70
24
|
}
|
|
71
25
|
}
|
|
72
26
|
|
|
@@ -75,42 +29,42 @@
|
|
|
75
29
|
height: 100%;
|
|
76
30
|
|
|
77
31
|
mat-dialog-container {
|
|
78
|
-
|
|
32
|
+
padding: 0;
|
|
79
33
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
34
|
+
form.wrapped-form {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
height: 100%;
|
|
38
|
+
justify-content: space-between;
|
|
39
|
+
}
|
|
86
40
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
41
|
+
.mat-dialog-title {
|
|
42
|
+
background-color: rgb(var(--bg-primary));
|
|
43
|
+
box-shadow: 0px 4px 8px rgba(26, 28, 38, 0.15);
|
|
44
|
+
color: rgb(var(--text-primary));
|
|
45
|
+
padding: 12px 20px;
|
|
46
|
+
min-height: 24px;
|
|
93
47
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
48
|
+
h2 {
|
|
49
|
+
font-weight: 500;
|
|
50
|
+
font-size: 18px;
|
|
51
|
+
line-height: 24px;
|
|
99
52
|
}
|
|
53
|
+
}
|
|
100
54
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
55
|
+
.mat-dialog-content {
|
|
56
|
+
background: rgb(var(--bg-primary));
|
|
57
|
+
padding: 16px 20px;
|
|
58
|
+
margin: unset;
|
|
59
|
+
height: 100%;
|
|
60
|
+
max-height: unset;
|
|
61
|
+
letter-spacing: 0 !important;
|
|
62
|
+
}
|
|
109
63
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
64
|
+
.mat-dialog-actions {
|
|
65
|
+
background-color: rgb(var(--bg-primary));
|
|
66
|
+
padding: 12px 20px;
|
|
67
|
+
margin-bottom: unset;
|
|
68
|
+
}
|
|
115
69
|
}
|
|
116
|
-
}
|
|
70
|
+
}
|