@ngflux/ngflux 1.0.4 → 1.0.6
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/_index.scss +1 -0
- package/lib/components/button/button.component.scss +126 -0
- package/lib/components/dialog/body/body.component.scss +4 -0
- package/lib/components/dialog/boxes/alert/alert.dialog.scss +6 -0
- package/lib/components/dialog/boxes/confirm/confirm.dialog.scss +6 -0
- package/lib/components/dialog/boxes/prompt/prompt.dialog.scss +24 -0
- package/lib/components/dialog/footer/footer.component.scss +12 -0
- package/lib/components/dialog/header/header.component.scss +38 -0
- package/lib/components/dialog/main/main.component.scss +24 -0
- package/lib/components/dialog/root/root.component.scss +6 -0
- package/lib/components/loading/main/main.component.scss +42 -0
- package/lib/components/loading/root/root.component.scss +21 -0
- package/lib/components/pagination/info/info.component.scss +58 -0
- package/lib/components/pagination/pagination.component.scss +7 -0
- package/lib/components/root/root.component.scss +0 -0
- package/package.json +2 -1
package/_index.scss
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward './scss/system';
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
@use '../../../scss/system' as ngf;
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
border: 1px solid rgba(0, 0, 0, .2);
|
|
6
|
+
border-radius: 3px;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
font-size: 1rem;
|
|
9
|
+
overflow: clip;
|
|
10
|
+
|
|
11
|
+
&.block { display: block; }
|
|
12
|
+
|
|
13
|
+
&.disabled {
|
|
14
|
+
opacity: .5 !important;
|
|
15
|
+
user-select: none !important;
|
|
16
|
+
cursor: not-allowed;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.xs { font-size: .6rem; }
|
|
20
|
+
&.sm { font-size: .8rem; }
|
|
21
|
+
&.md { font-size: 1rem; }
|
|
22
|
+
&.lg { font-size: 1.25rem; }
|
|
23
|
+
&.xl { font-size: 1.5rem; }
|
|
24
|
+
|
|
25
|
+
&.default {
|
|
26
|
+
background-color: var(--ngf-default) !important;
|
|
27
|
+
color: var(--ngf-default-fg) !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.primary {
|
|
31
|
+
background-color: var(--ngf-primary) !important;
|
|
32
|
+
color: var(--ngf-primary-fg) !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.secondary {
|
|
36
|
+
background-color: var(--ngf-secondary) !important;
|
|
37
|
+
color: var(--ngf-secondary-fg) !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.error {
|
|
41
|
+
background-color: var(--ngf-error) !important;
|
|
42
|
+
color: var(--ngf-error-fg) !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.danger {
|
|
46
|
+
background-color: var(--ngf-danger) !important;
|
|
47
|
+
color: var(--ngf-danger-fg) !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.success {
|
|
51
|
+
background-color: var(--ngf-success) !important;
|
|
52
|
+
color: var(--ngf-success-fg) !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.warning {
|
|
56
|
+
background-color: var(--ngf-warning) !important;
|
|
57
|
+
color: var(--ngf-warning-fg) !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.info {
|
|
61
|
+
background-color: var(--ngf-info) !important;
|
|
62
|
+
color: var(--ngf-info-fg) !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.light {
|
|
66
|
+
background-color: var(--ngf-light) !important;
|
|
67
|
+
color: var(--ngf-light-fg) !important;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.dark {
|
|
71
|
+
background-color: var(--ngf-dark) !important;
|
|
72
|
+
color: var(--ngf-dark-fg) !important;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
> button {
|
|
76
|
+
display: block;
|
|
77
|
+
padding: 0px !important;
|
|
78
|
+
background-color: transparent;
|
|
79
|
+
border: none !important;
|
|
80
|
+
width: 100% !important;
|
|
81
|
+
cursor: inherit !important;
|
|
82
|
+
color: inherit !important;
|
|
83
|
+
font-weight: 500;
|
|
84
|
+
font-size: 1em;
|
|
85
|
+
|
|
86
|
+
&:focus {
|
|
87
|
+
outline: none !important;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.wrapper {
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: var(--flex-direction) !important;
|
|
94
|
+
|
|
95
|
+
--flex-direction: row;
|
|
96
|
+
--icon-border-left: none;
|
|
97
|
+
--icon-border-right: 1px solid rgba(0, 0, 0, .2);
|
|
98
|
+
|
|
99
|
+
&.reversed {
|
|
100
|
+
--flex-direction: row-reverse;
|
|
101
|
+
--icon-border-left: 1px solid rgba(0, 0, 0, .2);
|
|
102
|
+
--icon-border-right: none;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
> .icon {
|
|
106
|
+
display: flex;
|
|
107
|
+
flex-direction: column;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
align-items: center;
|
|
110
|
+
font-size: 1.05em;
|
|
111
|
+
border-left: var(--icon-border-left) !important;
|
|
112
|
+
border-right: var(--icon-border-right) !important;
|
|
113
|
+
padding: 0px .5em;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
> .content {
|
|
117
|
+
display: block;
|
|
118
|
+
flex-grow: 1;
|
|
119
|
+
padding: .5em 1em;
|
|
120
|
+
white-space: nowrap !important;
|
|
121
|
+
text-align: center !important;
|
|
122
|
+
text-overflow: ellipsis;
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 90%;
|
|
4
|
+
max-width: 350px;
|
|
5
|
+
background-color: #FFF;
|
|
6
|
+
|
|
7
|
+
.content {
|
|
8
|
+
margin: 0px 0px 10px 0px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
input {
|
|
12
|
+
display: block;
|
|
13
|
+
width: 100% !important;
|
|
14
|
+
border: 1px solid #DDD;
|
|
15
|
+
background-color: #FFF;
|
|
16
|
+
padding: 10px 15px;
|
|
17
|
+
font-size: 1.2rem;
|
|
18
|
+
|
|
19
|
+
&:focus {
|
|
20
|
+
outline: 2px solid #DDD;
|
|
21
|
+
box-shadow: none !important;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: end;
|
|
6
|
+
position: sticky;
|
|
7
|
+
background-color: var(--ngf-dialog-background-color) !important;
|
|
8
|
+
border-top: var(--ngf-dialog-border) !important;
|
|
9
|
+
padding: 7px 15px;
|
|
10
|
+
bottom: 0px;
|
|
11
|
+
gap: 10px;
|
|
12
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
position: sticky;
|
|
5
|
+
background-color: var(--ngf-dialog-background-color) !important;
|
|
6
|
+
border-bottom: var(--ngf-dialog-border) !important;
|
|
7
|
+
min-height: 50px;
|
|
8
|
+
top: 0px;
|
|
9
|
+
|
|
10
|
+
> .left {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
padding: 10px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
> .middle {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
align-items: start;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
text-overflow: ellipsis;
|
|
25
|
+
padding: 10px 20px;
|
|
26
|
+
flex: 1 0 0;
|
|
27
|
+
width: 0px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
> .right {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
align-items: center;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
padding: 10px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
position: fixed;
|
|
4
|
+
background-color: var(--ngf-dialog-backdrop-color) !important;
|
|
5
|
+
visibility: visible !important;
|
|
6
|
+
z-index: var(--ngf-dialog-z-index) !important;
|
|
7
|
+
inset: 0px;
|
|
8
|
+
|
|
9
|
+
> .wrapper {
|
|
10
|
+
display: block;
|
|
11
|
+
width: 100% !important;
|
|
12
|
+
height: 100% !important;
|
|
13
|
+
overflow: hidden auto;
|
|
14
|
+
|
|
15
|
+
> .content {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
align-items: center;
|
|
20
|
+
min-width: 100%;
|
|
21
|
+
min-height: 100%;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
|
|
4
|
+
svg {
|
|
5
|
+
width: 3.25em;
|
|
6
|
+
transform-origin: center;
|
|
7
|
+
animation: rotate4 2s linear infinite;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
circle {
|
|
11
|
+
fill: none;
|
|
12
|
+
// stroke: hsl(214, 97%, 59%);
|
|
13
|
+
stroke: var(--ngf-loading-foreground) !important;
|
|
14
|
+
stroke-width: 5;
|
|
15
|
+
stroke-dasharray: 1, 200;
|
|
16
|
+
stroke-dashoffset: 0;
|
|
17
|
+
stroke-linecap: round;
|
|
18
|
+
animation: dash4 1.5s ease-in-out infinite;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@keyframes rotate4 {
|
|
22
|
+
100% {
|
|
23
|
+
transform: rotate(360deg);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@keyframes dash4 {
|
|
28
|
+
0% {
|
|
29
|
+
stroke-dasharray: 1, 200;
|
|
30
|
+
stroke-dashoffset: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
50% {
|
|
34
|
+
stroke-dasharray: 90, 200;
|
|
35
|
+
stroke-dashoffset: -35px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
100% {
|
|
39
|
+
stroke-dashoffset: -125px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: none;
|
|
3
|
+
position: fixed;
|
|
4
|
+
z-index: var(--ngf-loading-z-index) !important;
|
|
5
|
+
inset: 0px;
|
|
6
|
+
|
|
7
|
+
&.show {
|
|
8
|
+
display: block;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
> .wrapper {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
background-color: var(--ngf-loading-background) !important;
|
|
17
|
+
height: 100% !important;
|
|
18
|
+
width: 100% !important;
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@use '../../../../scss/system' as ngf;
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
container: pagination / inline-size;
|
|
6
|
+
|
|
7
|
+
.wrapper {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
font-family: "Poppins", sans-serif;
|
|
11
|
+
align-items: end;
|
|
12
|
+
text-align: center;
|
|
13
|
+
font-size: .8rem;
|
|
14
|
+
gap: 5px;
|
|
15
|
+
|
|
16
|
+
@container pagination (min-width: 400px) {
|
|
17
|
+
flex-direction: row;
|
|
18
|
+
justify-content: end;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: 15px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.block {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: row;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: 5px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.limit {
|
|
32
|
+
> select {
|
|
33
|
+
display: block;
|
|
34
|
+
padding: 2px 5px;
|
|
35
|
+
font-size: inherit;
|
|
36
|
+
outline: none !important;
|
|
37
|
+
width: 50px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.nav {
|
|
42
|
+
> button {
|
|
43
|
+
display: block;
|
|
44
|
+
background-color: transparent;
|
|
45
|
+
box-shadow: none !important;
|
|
46
|
+
outline: none !important;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
border: none;
|
|
49
|
+
padding: 0px;
|
|
50
|
+
|
|
51
|
+
&:disabled {
|
|
52
|
+
cursor: default;
|
|
53
|
+
color: #AAA;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngflux/ngflux",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/NgFlux/ngflux.git"
|
|
7
7
|
},
|
|
8
|
+
"license": "MIT",
|
|
8
9
|
"homepage": "https://github.com/NgFlux/ngflux",
|
|
9
10
|
"keywords": [
|
|
10
11
|
"angular",
|