oip-common 0.6.4 → 0.7.0
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 +189 -68
- package/assets/demo/code.scss +17 -17
- package/assets/demo/demo.scss +2 -2
- package/assets/demo/flags/flags.scss +984 -984
- package/assets/i18n/extensions.en.json +1 -1
- package/assets/layout/_core.scss +30 -30
- package/assets/layout/_footer.scss +8 -8
- package/assets/layout/_main.scss +12 -12
- package/assets/layout/_menu.scss +148 -148
- package/assets/layout/_mixins.scss +15 -15
- package/assets/layout/_preloading.scss +49 -49
- package/assets/layout/_responsive.scss +108 -108
- package/assets/layout/_topbar.scss +168 -168
- package/assets/layout/_typography.scss +68 -68
- package/assets/layout/_utils.scss +25 -25
- package/assets/layout/layout.scss +13 -13
- package/assets/layout/variables/_common.scss +20 -20
- package/assets/layout/variables/_dark.scss +5 -5
- package/assets/layout/variables/_light.scss +5 -5
- package/assets/oip-common.scss +6 -6
- package/assets/tailwind.css +3 -3
- package/fesm2022/oip-common.mjs +1033 -241
- package/fesm2022/oip-common.mjs.map +1 -1
- package/index.d.ts +319 -5
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{}
|
|
1
|
+
{}
|
package/assets/layout/_core.scss
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
html {
|
|
2
|
-
height: 100%;
|
|
3
|
-
font-size: 14px;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
body {
|
|
7
|
-
font-family: "Lato", sans-serif;
|
|
8
|
-
color: var(--text-color);
|
|
9
|
-
background-color: var(--surface-ground);
|
|
10
|
-
margin: 0;
|
|
11
|
-
padding: 0;
|
|
12
|
-
min-height: 100%;
|
|
13
|
-
-webkit-font-smoothing: antialiased;
|
|
14
|
-
-moz-osx-font-smoothing: grayscale;
|
|
15
|
-
line-height: 1.2;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
a {
|
|
19
|
-
text-decoration: none;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.layout-wrapper {
|
|
23
|
-
min-height: 100vh;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.p-column-filter-active {
|
|
27
|
-
filtericon {
|
|
28
|
-
color: color-mix(in srgb, var(--primary-color), transparent 20%);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
1
|
+
html {
|
|
2
|
+
height: 100%;
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
body {
|
|
7
|
+
font-family: "Lato", sans-serif;
|
|
8
|
+
color: var(--text-color);
|
|
9
|
+
background-color: var(--surface-ground);
|
|
10
|
+
margin: 0;
|
|
11
|
+
padding: 0;
|
|
12
|
+
min-height: 100%;
|
|
13
|
+
-webkit-font-smoothing: antialiased;
|
|
14
|
+
-moz-osx-font-smoothing: grayscale;
|
|
15
|
+
line-height: 1.2;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
a {
|
|
19
|
+
text-decoration: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.layout-wrapper {
|
|
23
|
+
min-height: 100vh;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.p-column-filter-active {
|
|
27
|
+
filtericon {
|
|
28
|
+
color: color-mix(in srgb, var(--primary-color), transparent 20%);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.layout-footer {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
padding: 1rem 0 1rem 0;
|
|
6
|
-
gap: 0.5rem;
|
|
7
|
-
border-top: 1px solid var(--surface-border);
|
|
8
|
-
}
|
|
1
|
+
.layout-footer {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
padding: 1rem 0 1rem 0;
|
|
6
|
+
gap: 0.5rem;
|
|
7
|
+
border-top: 1px solid var(--surface-border);
|
|
8
|
+
}
|
package/assets/layout/_main.scss
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.layout-main-container {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
min-height: 100vh;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
padding: 5rem 1rem 0rem 1rem;
|
|
7
|
-
transition: margin-left var(--layout-section-transition-duration);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.layout-main {
|
|
11
|
-
flex: 1 1 auto;
|
|
12
|
-
}
|
|
1
|
+
.layout-main-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
min-height: 100vh;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
padding: 5rem 1rem 0rem 1rem;
|
|
7
|
+
transition: margin-left var(--layout-section-transition-duration);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.layout-main {
|
|
11
|
+
flex: 1 1 auto;
|
|
12
|
+
}
|
package/assets/layout/_menu.scss
CHANGED
|
@@ -1,148 +1,148 @@
|
|
|
1
|
-
@use "./mixins" as *;
|
|
2
|
-
|
|
3
|
-
.layout-sidebar {
|
|
4
|
-
position: fixed;
|
|
5
|
-
width: 21rem;
|
|
6
|
-
height: 100vh;
|
|
7
|
-
z-index: 996;
|
|
8
|
-
overflow-y: auto;
|
|
9
|
-
user-select: none;
|
|
10
|
-
|
|
11
|
-
transition:
|
|
12
|
-
transform var(--layout-section-transition-duration),
|
|
13
|
-
left var(--layout-section-transition-duration);
|
|
14
|
-
background-color: var(--surface-overlay);
|
|
15
|
-
border-radius: var(--content-border-radius);
|
|
16
|
-
padding: 4.5rem 1.5rem;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.layout-menu {
|
|
20
|
-
margin: 0;
|
|
21
|
-
padding: 0;
|
|
22
|
-
list-style-type: none;
|
|
23
|
-
|
|
24
|
-
.layout-root-menuitem {
|
|
25
|
-
> .layout-menuitem-root-text {
|
|
26
|
-
font-size: 0.857rem;
|
|
27
|
-
text-transform: uppercase;
|
|
28
|
-
font-weight: 700;
|
|
29
|
-
color: var(--text-color);
|
|
30
|
-
margin: 0.75rem 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
> a {
|
|
34
|
-
display: none;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
a {
|
|
39
|
-
user-select: none;
|
|
40
|
-
|
|
41
|
-
&.active-menuitem {
|
|
42
|
-
> .layout-submenu-toggler {
|
|
43
|
-
transform: rotate(-180deg);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
li.active-menuitem {
|
|
49
|
-
> a {
|
|
50
|
-
.layout-submenu-toggler {
|
|
51
|
-
transform: rotate(-180deg);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
ul {
|
|
57
|
-
margin: 0;
|
|
58
|
-
padding: 0;
|
|
59
|
-
list-style-type: none;
|
|
60
|
-
|
|
61
|
-
a {
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
position: relative;
|
|
65
|
-
outline: 0 none;
|
|
66
|
-
color: var(--text-color);
|
|
67
|
-
cursor: pointer;
|
|
68
|
-
padding: 0.75rem 1rem;
|
|
69
|
-
border-radius: var(--content-border-radius);
|
|
70
|
-
transition:
|
|
71
|
-
background-color var(--element-transition-duration),
|
|
72
|
-
box-shadow var(--element-transition-duration);
|
|
73
|
-
|
|
74
|
-
.layout-menuitem-icon {
|
|
75
|
-
margin-right: 0.5rem;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.layout-submenu-toggler {
|
|
79
|
-
font-size: 75%;
|
|
80
|
-
margin-left: auto;
|
|
81
|
-
transition: transform var(--element-transition-duration);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&.active-route {
|
|
85
|
-
font-weight: 700;
|
|
86
|
-
color: var(--primary-color);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&:hover {
|
|
90
|
-
background-color: var(--surface-hover);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&:focus {
|
|
94
|
-
@include focused-inset();
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
ul {
|
|
99
|
-
overflow: hidden;
|
|
100
|
-
border-radius: var(--content-border-radius);
|
|
101
|
-
|
|
102
|
-
&.layout-submenu {
|
|
103
|
-
max-height: 0;
|
|
104
|
-
transition: max-height 400ms cubic-bezier(0.86, 0, 0.07, 1);
|
|
105
|
-
|
|
106
|
-
&.layout-submenu-expanded {
|
|
107
|
-
max-height: 1000px;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
li {
|
|
112
|
-
a {
|
|
113
|
-
margin-left: 1rem;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
li {
|
|
117
|
-
a {
|
|
118
|
-
margin-left: 2rem;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
li {
|
|
122
|
-
a {
|
|
123
|
-
margin-left: 2.5rem;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
li {
|
|
127
|
-
a {
|
|
128
|
-
margin-left: 3rem;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
li {
|
|
132
|
-
a {
|
|
133
|
-
margin-left: 3.5rem;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
li {
|
|
137
|
-
a {
|
|
138
|
-
margin-left: 4rem;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
1
|
+
@use "./mixins" as *;
|
|
2
|
+
|
|
3
|
+
.layout-sidebar {
|
|
4
|
+
position: fixed;
|
|
5
|
+
width: 21rem;
|
|
6
|
+
height: 100vh;
|
|
7
|
+
z-index: 996;
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
user-select: none;
|
|
10
|
+
|
|
11
|
+
transition:
|
|
12
|
+
transform var(--layout-section-transition-duration),
|
|
13
|
+
left var(--layout-section-transition-duration);
|
|
14
|
+
background-color: var(--surface-overlay);
|
|
15
|
+
border-radius: var(--content-border-radius);
|
|
16
|
+
padding: 4.5rem 1.5rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.layout-menu {
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
list-style-type: none;
|
|
23
|
+
|
|
24
|
+
.layout-root-menuitem {
|
|
25
|
+
> .layout-menuitem-root-text {
|
|
26
|
+
font-size: 0.857rem;
|
|
27
|
+
text-transform: uppercase;
|
|
28
|
+
font-weight: 700;
|
|
29
|
+
color: var(--text-color);
|
|
30
|
+
margin: 0.75rem 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
> a {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
a {
|
|
39
|
+
user-select: none;
|
|
40
|
+
|
|
41
|
+
&.active-menuitem {
|
|
42
|
+
> .layout-submenu-toggler {
|
|
43
|
+
transform: rotate(-180deg);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
li.active-menuitem {
|
|
49
|
+
> a {
|
|
50
|
+
.layout-submenu-toggler {
|
|
51
|
+
transform: rotate(-180deg);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
ul {
|
|
57
|
+
margin: 0;
|
|
58
|
+
padding: 0;
|
|
59
|
+
list-style-type: none;
|
|
60
|
+
|
|
61
|
+
a {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
position: relative;
|
|
65
|
+
outline: 0 none;
|
|
66
|
+
color: var(--text-color);
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
padding: 0.75rem 1rem;
|
|
69
|
+
border-radius: var(--content-border-radius);
|
|
70
|
+
transition:
|
|
71
|
+
background-color var(--element-transition-duration),
|
|
72
|
+
box-shadow var(--element-transition-duration);
|
|
73
|
+
|
|
74
|
+
.layout-menuitem-icon {
|
|
75
|
+
margin-right: 0.5rem;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.layout-submenu-toggler {
|
|
79
|
+
font-size: 75%;
|
|
80
|
+
margin-left: auto;
|
|
81
|
+
transition: transform var(--element-transition-duration);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&.active-route {
|
|
85
|
+
font-weight: 700;
|
|
86
|
+
color: var(--primary-color);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&:hover {
|
|
90
|
+
background-color: var(--surface-hover);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:focus {
|
|
94
|
+
@include focused-inset();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
ul {
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
border-radius: var(--content-border-radius);
|
|
101
|
+
|
|
102
|
+
&.layout-submenu {
|
|
103
|
+
max-height: 0;
|
|
104
|
+
transition: max-height 400ms cubic-bezier(0.86, 0, 0.07, 1);
|
|
105
|
+
|
|
106
|
+
&.layout-submenu-expanded {
|
|
107
|
+
max-height: 1000px;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
li {
|
|
112
|
+
a {
|
|
113
|
+
margin-left: 1rem;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
li {
|
|
117
|
+
a {
|
|
118
|
+
margin-left: 2rem;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
li {
|
|
122
|
+
a {
|
|
123
|
+
margin-left: 2.5rem;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
li {
|
|
127
|
+
a {
|
|
128
|
+
margin-left: 3rem;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
li {
|
|
132
|
+
a {
|
|
133
|
+
margin-left: 3.5rem;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
li {
|
|
137
|
+
a {
|
|
138
|
+
margin-left: 4rem;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
@mixin focused() {
|
|
2
|
-
outline-width: var(--focus-ring-width);
|
|
3
|
-
outline-style: var(--focus-ring-style);
|
|
4
|
-
outline-color: var(--focus-ring-color);
|
|
5
|
-
outline-offset: var(--focus-ring-offset);
|
|
6
|
-
box-shadow: var(--focus-ring-shadow);
|
|
7
|
-
transition:
|
|
8
|
-
box-shadow var(--transition-duration),
|
|
9
|
-
outline-color var(--transition-duration);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@mixin focused-inset() {
|
|
13
|
-
outline-offset: -1px;
|
|
14
|
-
box-shadow: inset var(--focus-ring-shadow);
|
|
15
|
-
}
|
|
1
|
+
@mixin focused() {
|
|
2
|
+
outline-width: var(--focus-ring-width);
|
|
3
|
+
outline-style: var(--focus-ring-style);
|
|
4
|
+
outline-color: var(--focus-ring-color);
|
|
5
|
+
outline-offset: var(--focus-ring-offset);
|
|
6
|
+
box-shadow: var(--focus-ring-shadow);
|
|
7
|
+
transition:
|
|
8
|
+
box-shadow var(--transition-duration),
|
|
9
|
+
outline-color var(--transition-duration);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@mixin focused-inset() {
|
|
13
|
+
outline-offset: -1px;
|
|
14
|
+
box-shadow: inset var(--focus-ring-shadow);
|
|
15
|
+
}
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
.preloader {
|
|
2
|
-
position: fixed;
|
|
3
|
-
z-index: 999999;
|
|
4
|
-
background: #edf1f5;
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 100%;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.preloader-content {
|
|
10
|
-
border: 0 solid transparent;
|
|
11
|
-
border-radius: 50%;
|
|
12
|
-
width: 150px;
|
|
13
|
-
height: 150px;
|
|
14
|
-
position: absolute;
|
|
15
|
-
top: calc(50vh - 75px);
|
|
16
|
-
left: calc(50vw - 75px);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.preloader-content:before,
|
|
20
|
-
.preloader-content:after {
|
|
21
|
-
content: "";
|
|
22
|
-
border: 1em solid var(--primary-color);
|
|
23
|
-
border-radius: 50%;
|
|
24
|
-
width: inherit;
|
|
25
|
-
height: inherit;
|
|
26
|
-
position: absolute;
|
|
27
|
-
top: 0;
|
|
28
|
-
left: 0;
|
|
29
|
-
animation: loader 2s linear infinite;
|
|
30
|
-
opacity: 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.preloader-content:before {
|
|
34
|
-
animation-delay: 0.5s;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@keyframes loader {
|
|
38
|
-
0% {
|
|
39
|
-
transform: scale(0);
|
|
40
|
-
opacity: 0;
|
|
41
|
-
}
|
|
42
|
-
50% {
|
|
43
|
-
opacity: 1;
|
|
44
|
-
}
|
|
45
|
-
100% {
|
|
46
|
-
transform: scale(1);
|
|
47
|
-
opacity: 0;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
.preloader {
|
|
2
|
+
position: fixed;
|
|
3
|
+
z-index: 999999;
|
|
4
|
+
background: #edf1f5;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.preloader-content {
|
|
10
|
+
border: 0 solid transparent;
|
|
11
|
+
border-radius: 50%;
|
|
12
|
+
width: 150px;
|
|
13
|
+
height: 150px;
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: calc(50vh - 75px);
|
|
16
|
+
left: calc(50vw - 75px);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.preloader-content:before,
|
|
20
|
+
.preloader-content:after {
|
|
21
|
+
content: "";
|
|
22
|
+
border: 1em solid var(--primary-color);
|
|
23
|
+
border-radius: 50%;
|
|
24
|
+
width: inherit;
|
|
25
|
+
height: inherit;
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 0;
|
|
28
|
+
left: 0;
|
|
29
|
+
animation: loader 2s linear infinite;
|
|
30
|
+
opacity: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.preloader-content:before {
|
|
34
|
+
animation-delay: 0.5s;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@keyframes loader {
|
|
38
|
+
0% {
|
|
39
|
+
transform: scale(0);
|
|
40
|
+
opacity: 0;
|
|
41
|
+
}
|
|
42
|
+
50% {
|
|
43
|
+
opacity: 1;
|
|
44
|
+
}
|
|
45
|
+
100% {
|
|
46
|
+
transform: scale(1);
|
|
47
|
+
opacity: 0;
|
|
48
|
+
}
|
|
49
|
+
}
|