@mediusinc/mng-commons-layout 6.2.0-rc.0 → 7.0.0-rc.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.
Files changed (97) hide show
  1. package/components/index.d.ts +168 -10
  2. package/components/pages/error/index.d.ts +10 -1
  3. package/components/pages/main/index.d.ts +35 -2
  4. package/components/pages/main/lazy/index.d.ts +11 -1
  5. package/components/pages/not-found/index.d.ts +10 -1
  6. package/fesm2022/mediusinc-mng-commons-layout-components-pages-error.mjs +4 -4
  7. package/fesm2022/mediusinc-mng-commons-layout-components-pages-error.mjs.map +1 -1
  8. package/fesm2022/mediusinc-mng-commons-layout-components-pages-main-lazy.mjs.map +1 -1
  9. package/fesm2022/mediusinc-mng-commons-layout-components-pages-main.mjs +9 -9
  10. package/fesm2022/mediusinc-mng-commons-layout-components-pages-main.mjs.map +1 -1
  11. package/fesm2022/mediusinc-mng-commons-layout-components-pages-not-found.mjs +4 -4
  12. package/fesm2022/mediusinc-mng-commons-layout-components-pages-not-found.mjs.map +1 -1
  13. package/fesm2022/mediusinc-mng-commons-layout-components.mjs +66 -65
  14. package/fesm2022/mediusinc-mng-commons-layout-components.mjs.map +1 -1
  15. package/fesm2022/mediusinc-mng-commons-layout.mjs +40 -41
  16. package/fesm2022/mediusinc-mng-commons-layout.mjs.map +1 -1
  17. package/index.d.ts +206 -8
  18. package/package.json +25 -16
  19. package/styles/atlantis/index.scss +16 -0
  20. package/{scss → styles/atlantis}/layout/_content.scss +1 -1
  21. package/{scss → styles/atlantis}/layout/_main.scss +17 -2
  22. package/{scss → styles/atlantis}/layout/_profile.scss +1 -1
  23. package/styles/atlantis/layout/_sass_variables.scss +1 -0
  24. package/{scss → styles/atlantis}/layout/_sidebar_drawer.scss +5 -3
  25. package/{scss → styles/atlantis}/layout/_sidebar_horizontal.scss +8 -10
  26. package/{scss → styles/atlantis}/layout/_sidebar_reveal.scss +9 -12
  27. package/{scss → styles/atlantis}/layout/_sidebar_slim.scss +1 -2
  28. package/{scss → styles/atlantis}/layout/_sidebar_slim_plus.scss +1 -2
  29. package/{scss → styles/atlantis}/layout/_sidebar_vertical.scss +3 -1
  30. package/{scss → styles/atlantis}/layout/_topbar.scss +0 -1
  31. package/styles/atlantis/layout/atlantis.scss +0 -0
  32. package/{scss → styles/atlantis}/layout/layout.scss +3 -3
  33. package/{scss → styles/atlantis}/layout/variables/_dark.scss +2 -2
  34. package/{scss → styles/atlantis}/layout/variables/_light.scss +2 -2
  35. package/styles/tailwindcss-commons/atlantis/index.css +20 -0
  36. package/styles/tailwindcss-commons/atlantis/layout/breadcrumb.css +100 -0
  37. package/styles/tailwindcss-commons/atlantis/layout/content.css +3 -0
  38. package/styles/tailwindcss-commons/atlantis/layout/main.css +67 -0
  39. package/styles/tailwindcss-commons/atlantis/layout/profile.css +10 -0
  40. package/styles/tailwindcss-commons/atlantis/layout/responsive.css +131 -0
  41. package/styles/tailwindcss-commons/atlantis/layout/sidebar-drawer.css +286 -0
  42. package/styles/tailwindcss-commons/atlantis/layout/sidebar-reveal.css +204 -0
  43. package/styles/tailwindcss-commons/atlantis/layout/sidebar-slim-plus.css +166 -0
  44. package/styles/tailwindcss-commons/atlantis/layout/sidebar-slim.css +156 -0
  45. package/styles/tailwindcss-commons/atlantis/layout/sidebar-vertical.css +184 -0
  46. package/styles/tailwindcss-commons/atlantis/layout/topbar.css +203 -0
  47. package/styles/tailwindcss-commons/atlantis/layout/utils.css +29 -0
  48. package/styles/tailwindcss-commons/atlantis/variables/common.css +15 -0
  49. package/styles/tailwindcss-commons/atlantis/variables/dark.css +10 -0
  50. package/styles/tailwindcss-commons/atlantis/variables/light.css +10 -0
  51. package/styles/tailwindcss-commons/index.css +14 -0
  52. package/styles/tailwindcss-commons/index_wo_atlantis.css +13 -0
  53. package/styles/tailwindcss-commons/setup/breakpoints.css +15 -0
  54. package/styles/tailwindcss-commons/setup/dark.css +2 -0
  55. package/{scss/layout/mng/variables/_mng-variables-common.scss → styles/tailwindcss-commons/setup/variables.css} +9 -0
  56. package/{scss/layout/mng/theme/_mng_theme_button.scss → styles/tailwindcss-commons/styles/button.css} +2 -2
  57. package/{scss/layout/mng/theme/_mng_theme_dialog.scss → styles/tailwindcss-commons/styles/dialog.css} +22 -18
  58. package/styles/tailwindcss-commons/styles/tailwind.css +44 -0
  59. package/styles/tailwindcss-commons/styles/topbar.css +24 -0
  60. package/version-info.json +5 -5
  61. package/components/lib/components/breadcrumb.component.d.ts +0 -9
  62. package/components/lib/components/footer.component.d.ts +0 -13
  63. package/components/lib/components/main-layout.component.d.ts +0 -23
  64. package/components/lib/components/menu-item.component.d.ts +0 -26
  65. package/components/lib/components/menu.component.d.ts +0 -12
  66. package/components/lib/components/settings.component.d.ts +0 -28
  67. package/components/lib/components/sidebar.component.d.ts +0 -15
  68. package/components/lib/components/topbar-user.component.d.ts +0 -16
  69. package/components/lib/components/topbar.component.d.ts +0 -16
  70. package/components/lib/components/version.component.d.ts +0 -19
  71. package/components/pages/error/lib/error.page.component.d.ts +0 -7
  72. package/components/pages/main/lazy/lib/route-builder.d.ts +0 -8
  73. package/components/pages/main/lib/main-layout.component.d.ts +0 -23
  74. package/components/pages/main/lib/route-builder.d.ts +0 -8
  75. package/components/pages/not-found/lib/not-found.page.component.d.ts +0 -7
  76. package/lib/helpers/menu-items.d.ts +0 -5
  77. package/lib/models/layout-state.model.d.ts +0 -10
  78. package/lib/models/menu.model.d.ts +0 -4
  79. package/lib/provide.d.ts +0 -8
  80. package/lib/services/layout-feature-config.token.d.ts +0 -91
  81. package/lib/services/layout.service.d.ts +0 -48
  82. package/lib/services/menu.service.d.ts +0 -22
  83. package/lib/services/version.service.d.ts +0 -14
  84. package/scss/commons.scss +0 -1
  85. package/scss/layout/_sass_variables.scss +0 -1
  86. package/scss/layout/mng/layout/_mng_layout_topbar.scss +0 -18
  87. /package/{scss → styles/atlantis}/layout/_breadcrumb.scss +0 -0
  88. /package/{scss → styles/atlantis}/layout/_config.scss +0 -0
  89. /package/{scss → styles/atlantis}/layout/_responsive.scss +0 -0
  90. /package/{scss → styles/atlantis}/layout/_utils.scss +0 -0
  91. /package/{scss → styles/atlantis}/layout/variables/_common.scss +0 -0
  92. /package/{scss/layout/mng/layout/_mng_layout_footer.scss → styles/tailwindcss-commons/styles/footer.css} +0 -0
  93. /package/{scss/layout/mng/layout/_mng_layout.scss → styles/tailwindcss-commons/styles/layout.css} +0 -0
  94. /package/{scss/layout/mng/layout/_mng_layout_menu.scss → styles/tailwindcss-commons/styles/menu.css} +0 -0
  95. /package/{scss/layout/mng/layout/_mng_sidebar_vertical.scss → styles/tailwindcss-commons/styles/sidebar.css} +0 -0
  96. /package/{scss/layout/mng/theme/_mng_theme_toast.scss → styles/tailwindcss-commons/styles/toast.css} +0 -0
  97. /package/{scss/layout/mng/theme/_mng_theme_toggleswitch.scss → styles/tailwindcss-commons/styles/toggleswitch.css} +0 -0
@@ -0,0 +1,100 @@
1
+ .layout-breadcrumb {
2
+ ol {
3
+ display: flex;
4
+ align-items: center;
5
+ margin: 0;
6
+ padding: 0;
7
+ list-style: none;
8
+ gap: 1rem;
9
+ flex-wrap: wrap;
10
+ color: var(--text-color-secondary);
11
+
12
+ li {
13
+ font-weight: 600;
14
+ }
15
+ }
16
+
17
+ .breadcrumb-menu {
18
+ margin: 0;
19
+ padding: 0 1.15rem 0 0.85rem;
20
+ padding-right: 0;
21
+ list-style: none;
22
+ flex-grow: 1;
23
+ margin-right: -2rem;
24
+
25
+ li {
26
+ margin-left: 1.5rem;
27
+
28
+ .breadcrumb-search {
29
+ display: flex;
30
+ align-items: center;
31
+ flex-shrink: 0;
32
+ width: 100%;
33
+ margin-left: 0rem;
34
+
35
+ .breadcrumb-searchbutton {
36
+ display: flex;
37
+ opacity: 1;
38
+ }
39
+
40
+ .search-input-wrapper {
41
+ position: relative;
42
+ width: 0;
43
+ opacity: 0;
44
+ visibility: hidden;
45
+ transition: var(--layout-section-transition-duration);
46
+
47
+ > div {
48
+ width: 100%;
49
+
50
+ .p-inputtext {
51
+ width: 100%;
52
+ position: relative;
53
+ border-radius: 40px;
54
+ padding: 9px;
55
+ }
56
+
57
+ span {
58
+ font-size: 18px;
59
+ margin-top: -9px;
60
+ margin-right: 9px;
61
+ }
62
+ }
63
+ }
64
+
65
+ &.breadcrumb-search-active {
66
+ .breadcrumb-searchbutton {
67
+ opacity: 0;
68
+ display: none;
69
+ pointer-events: none;
70
+ cursor: default;
71
+ }
72
+
73
+ .search-input-wrapper {
74
+ width: 100%;
75
+ opacity: 1;
76
+ visibility: visible;
77
+ border-radius: var(--border-radius);
78
+ transition: var(--layout-section-transition-duration);
79
+
80
+ span {
81
+ display: block;
82
+ z-index: 2;
83
+ }
84
+
85
+ .p-inputtext {
86
+ border-radius: var(--border-radius);
87
+ width: 100%;
88
+ background: var(--surface-ground);
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+
97
+ .content-breadcrumb {
98
+ margin-bottom: 2rem;
99
+ padding: 0 0.5rem;
100
+ }
@@ -0,0 +1,3 @@
1
+ .layout-content-wrapper {
2
+ padding: 2rem;
3
+ }
@@ -0,0 +1,67 @@
1
+ * {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ html {
6
+ height: 100%;
7
+ font-size: 14px;
8
+ line-height: 1.5;
9
+ }
10
+
11
+ body {
12
+ font-weight: 400;
13
+ padding: 0;
14
+ margin: 0;
15
+ min-height: 100%;
16
+ color: var(--text-color);
17
+ font-family:
18
+ 'Inter var',
19
+ -apple-system,
20
+ BlinkMacSystemFont,
21
+ 'Segoe UI',
22
+ Roboto,
23
+ Helvetica,
24
+ Arial,
25
+ sans-serif,
26
+ 'Apple Color Emoji',
27
+ 'Segoe UI Emoji',
28
+ 'Segoe UI Symbol';
29
+ font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
30
+ line-height: 1.4;
31
+ font-variation-settings: normal;
32
+ -webkit-font-smoothing: antialiased;
33
+ -moz-osx-font-smoothing: grayscale;
34
+ }
35
+
36
+ a {
37
+ text-decoration: none;
38
+ }
39
+
40
+ .layout-container {
41
+ background: var(--body-bg);
42
+ min-height: 100vh;
43
+ &:before {
44
+ min-height: 100vh;
45
+ height: 100%;
46
+ width: 100%;
47
+ content: '';
48
+ z-index: 0;
49
+ display: block;
50
+ position: absolute;
51
+ top: 0;
52
+ left: 0;
53
+ background-image: var(--body-image);
54
+ background-repeat: no-repeat;
55
+ z-index: 0;
56
+ }
57
+
58
+ .layout-content-wrapper {
59
+ position: relative;
60
+ z-index: 1;
61
+ overflow-x: hidden;
62
+ }
63
+ }
64
+
65
+ img {
66
+ max-width: none !important;
67
+ }
@@ -0,0 +1,10 @@
1
+ .layout-profile-sidebar {
2
+ &.p-sidebar {
3
+ width: 25rem;
4
+
5
+ .p-sidebar-content {
6
+ padding-left: 2rem;
7
+ padding-right: 2rem;
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,131 @@
1
+ @variant media-lg {
2
+ .layout-container {
3
+ &.layout-static {
4
+ .layout-sidebar {
5
+ transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1);
6
+ }
7
+
8
+ .layout-content-wrapper {
9
+ margin-left: 22rem;
10
+ transition: margin-left 0.3s cubic-bezier(0, 0, 0.2, 1);
11
+ }
12
+ }
13
+
14
+ &.layout-static-inactive {
15
+ .layout-sidebar {
16
+ transform: translateX(-100%);
17
+ }
18
+
19
+ .layout-content-wrapper {
20
+ margin-left: 0;
21
+ }
22
+ }
23
+
24
+ &.layout-overlay {
25
+ .layout-content-wrapper {
26
+ margin-left: 0;
27
+ }
28
+
29
+ .layout-sidebar {
30
+ z-index: 999;
31
+ transform: translateX(-100%);
32
+ transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1);
33
+ background: var(--surface-ground);
34
+ }
35
+
36
+ &.layout-overlay-active {
37
+ .layout-sidebar {
38
+ transform: translateX(0);
39
+ }
40
+ }
41
+ }
42
+
43
+ .content-breadcrumb {
44
+ display: none;
45
+ }
46
+ }
47
+ }
48
+
49
+ @variant media-lg-max {
50
+ .blocked-scroll {
51
+ overflow: hidden;
52
+ }
53
+
54
+ .layout-topbar {
55
+ .topbar-menu {
56
+ margin-right: 0rem !important;
57
+ }
58
+ .right-panel-button {
59
+ position: absolute !important;
60
+ right: 0;
61
+ }
62
+ }
63
+
64
+ .layout-container {
65
+ .layout-content-wrapper {
66
+ margin-left: 0;
67
+ padding: 1rem;
68
+ }
69
+
70
+ .layout-sidebar {
71
+ z-index: 999;
72
+ transform: translateX(-100%);
73
+ transition: transform var(--transition-duration);
74
+ box-shadow: none;
75
+ }
76
+
77
+ &.layout-mobile-active {
78
+ .layout-sidebar {
79
+ transform: translateX(0);
80
+ background: var(--surface-ground);
81
+ }
82
+
83
+ .layout-mask {
84
+ display: block;
85
+ animation: fadein var(--transition-duration);
86
+ }
87
+ }
88
+
89
+ .layout-mask {
90
+ display: none;
91
+ position: fixed;
92
+ top: 0;
93
+ left: 0;
94
+ z-index: 998;
95
+ width: 100%;
96
+ height: 100%;
97
+ background-color: var(--maskbg);
98
+ }
99
+
100
+ .topbar-breadcrumb {
101
+ display: none;
102
+ }
103
+
104
+ .content-breadcrumb {
105
+ display: block;
106
+ }
107
+ }
108
+ }
109
+
110
+ @media screen and (min-width: 1960px) {
111
+ .layout-content,
112
+ .landing-wrapper {
113
+ width: 1504px;
114
+ margin-left: auto !important;
115
+ margin-right: auto !important;
116
+ }
117
+
118
+ .layout-topbar {
119
+ width: 1504px;
120
+ margin-left: auto !important;
121
+ margin-right: auto !important;
122
+ .topbar-menu {
123
+ margin-right: 0rem !important;
124
+ }
125
+
126
+ .right-panel-button {
127
+ position: absolute !important;
128
+ right: 0;
129
+ }
130
+ }
131
+ }
@@ -0,0 +1,286 @@
1
+ @variant media-lg {
2
+ .layout-container {
3
+ &.layout-drawer {
4
+ .layout-topbar {
5
+ .topbar-menubutton {
6
+ display: none;
7
+ }
8
+ }
9
+
10
+ .layout-sidebar {
11
+ height: 100%;
12
+ top: 0;
13
+ transition: width 0.3s cubic-bezier(0, 0, 0.2, 1);
14
+ width: 6rem;
15
+ z-index: 999;
16
+ background: var(--surface-ground);
17
+ padding-bottom: 3rem;
18
+ .layout-menu-container {
19
+ overflow: hidden;
20
+ }
21
+
22
+ .sidebar-header {
23
+ display: flex;
24
+ justify-content: center;
25
+ gap: 1rem;
26
+ padding: 1.5rem 0rem;
27
+ height: 5.71rem;
28
+ .app-logo {
29
+ text-align: center;
30
+ .app-logo-small {
31
+ display: inline;
32
+ order: 1;
33
+ }
34
+
35
+ .app-logo-normal {
36
+ display: flex;
37
+ align-items: center;
38
+ width: 0;
39
+ transition: width 0.1s cubic-bezier(0, 0, 0.2, 1);
40
+ transition-delay: 50ms;
41
+ max-width: 0;
42
+ height: 0;
43
+ img {
44
+ width: 0;
45
+ transition: width 0.1s cubic-bezier(0, 0, 0.2, 1);
46
+ transition-delay: 50ms;
47
+ max-width: 0;
48
+ }
49
+ }
50
+ }
51
+
52
+ .layout-sidebar-anchor {
53
+ display: none;
54
+ flex-shrink: 0;
55
+ width: 1.25rem;
56
+ height: 1.25rem;
57
+ border-radius: 50%;
58
+ border: 2px solid var(--primary-color);
59
+ background-color: transparent;
60
+ transition:
61
+ background-color var(--layout-section-transition-duration),
62
+ transform 0.3s;
63
+ }
64
+ }
65
+
66
+ .layout-menu-container {
67
+ overflow: hidden;
68
+ }
69
+
70
+ .layout-menu {
71
+ transition: all 0.4s;
72
+ padding: 0 1rem;
73
+ .layout-root-menuitem {
74
+ > .layout-menuitem-root-text {
75
+ opacity: 0;
76
+ white-space: nowrap;
77
+ transition: all 0.1s;
78
+
79
+ > span {
80
+ margin-right: auto;
81
+ }
82
+
83
+ .layout-menuitem-icon {
84
+ font-size: 1rem;
85
+ }
86
+
87
+ > .layout-menuitem-root-icon {
88
+ display: block;
89
+ margin-right: 0.125rem;
90
+ font-size: 1.25rem;
91
+ }
92
+ }
93
+ }
94
+
95
+ ul {
96
+ margin: 0 auto;
97
+ padding: 0;
98
+ list-style-type: none;
99
+ width: 3rem;
100
+ a {
101
+ border: none;
102
+ width: 3rem;
103
+ padding: 0.5rem 1rem;
104
+ span {
105
+ opacity: 0;
106
+ white-space: nowrap;
107
+ transition: all 0.1s;
108
+ }
109
+
110
+ .layout-menuitem-icon {
111
+ font-size: 1rem;
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+
118
+ &.layout-drawer {
119
+ .layout-content-wrapper {
120
+ margin-left: 5.25rem;
121
+ transition: margin-left 0.3s cubic-bezier(0, 0, 0.2, 1);
122
+ overflow-x: hidden;
123
+ }
124
+ }
125
+
126
+ &.layout-sidebar-active {
127
+ .layout-sidebar {
128
+ width: 22rem;
129
+ padding-bottom: 0rem;
130
+ .layout-menu-container {
131
+ overflow: auto;
132
+ }
133
+
134
+ .sidebar-header {
135
+ padding: 1.5rem 2rem;
136
+ justify-content: space-between;
137
+ height: 5.71rem;
138
+ .app-logo {
139
+ text-align: left;
140
+ .app-logo-normal {
141
+ height: auto;
142
+ width: 100%;
143
+ max-width: none;
144
+ img {
145
+ &:first-child {
146
+ width: 32px;
147
+ max-width: none;
148
+ }
149
+ &:last-child {
150
+ width: 142px;
151
+ max-width: none;
152
+ }
153
+ }
154
+ }
155
+
156
+ .app-logo-small {
157
+ display: none;
158
+ }
159
+ }
160
+
161
+ .layout-sidebar-anchor {
162
+ display: block;
163
+ animation: px-fadein 0.15s linear;
164
+ }
165
+ }
166
+
167
+ .layout-menu {
168
+ padding: 0 1rem;
169
+
170
+ li {
171
+ border-radius: 8px;
172
+ a {
173
+ border-left: 8px solid transparent;
174
+ }
175
+ }
176
+ li.active-menuitem {
177
+ background-color: var(--root-menu-item-hover-bg);
178
+ > a {
179
+ border-left-color: var(--primary-color);
180
+ background-color: var(--root-menu-item-hover-bg);
181
+ .layout-submenu-toggler {
182
+ transform: rotate(-180deg);
183
+ }
184
+ }
185
+ }
186
+ a {
187
+ user-select: none;
188
+
189
+ &.active-menuitem {
190
+ > .layout-submenu-toggler {
191
+ transform: rotate(-180deg);
192
+ }
193
+ }
194
+ }
195
+ .layout-root-menuitem {
196
+ > div {
197
+ padding-left: 1.5rem;
198
+ margin-bottom: 0.5rem;
199
+ font-size: 12px;
200
+ opacity: 1;
201
+ > .layout-menuitem-text {
202
+ font-size: 0.857rem;
203
+ opacity: 1;
204
+ font-weight: 600;
205
+ text-transform: uppercase;
206
+ }
207
+ }
208
+ }
209
+
210
+ ul {
211
+ width: auto;
212
+ li {
213
+ width: auto;
214
+ }
215
+ a {
216
+ width: auto;
217
+
218
+ .layout-submenu-toggler {
219
+ display: block;
220
+ }
221
+
222
+ span {
223
+ opacity: 1;
224
+ white-space: nowrap;
225
+ transition: all 0.3s;
226
+ }
227
+ }
228
+ ul {
229
+ overflow: hidden;
230
+ border-radius: var(--border-radius);
231
+
232
+ li {
233
+ a {
234
+ padding-left: 2.5rem;
235
+ }
236
+
237
+ li {
238
+ a {
239
+ padding-left: 3rem;
240
+ }
241
+
242
+ li {
243
+ a {
244
+ padding-left: 3.5rem;
245
+ }
246
+
247
+ li {
248
+ a {
249
+ padding-left: 4rem;
250
+ }
251
+
252
+ li {
253
+ a {
254
+ padding-left: 5.5rem;
255
+ }
256
+
257
+ li {
258
+ a {
259
+ padding-left: 5rem;
260
+ }
261
+ }
262
+ }
263
+ }
264
+ }
265
+ }
266
+ }
267
+ }
268
+ }
269
+ }
270
+ }
271
+ }
272
+
273
+ &.layout-sidebar-anchored {
274
+ .sidebar-header {
275
+ .layout-sidebar-anchor {
276
+ background-color: var(--primary-color);
277
+ }
278
+ }
279
+
280
+ .layout-content-wrapper {
281
+ margin-left: 22rem;
282
+ }
283
+ }
284
+ }
285
+ }
286
+ }