@mediusinc/mng-commons-layout 5.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 (194) hide show
  1. package/README.md +13 -0
  2. package/assets/fonts/poppins-v20-latin-500.woff +0 -0
  3. package/assets/fonts/poppins-v20-latin-500.woff2 +0 -0
  4. package/assets/fonts/poppins-v20-latin-600.woff +0 -0
  5. package/assets/fonts/poppins-v20-latin-600.woff2 +0 -0
  6. package/assets/fonts/poppins-v20-latin-700.woff +0 -0
  7. package/assets/fonts/poppins-v20-latin-700.woff2 +0 -0
  8. package/assets/fonts/poppins-v20-latin-regular.woff +0 -0
  9. package/assets/fonts/poppins-v20-latin-regular.woff2 +0 -0
  10. package/assets/images/effect-ondark.png +0 -0
  11. package/assets/images/effect-ondark.svg +38 -0
  12. package/assets/images/effect-ondark@2x.png +0 -0
  13. package/assets/images/effect-onlight.png +0 -0
  14. package/assets/images/effect-onlight.svg +38 -0
  15. package/assets/images/effect-onlight@2x.png +0 -0
  16. package/assets/images/pages/exception-ondark.png +0 -0
  17. package/assets/images/pages/exception-onlight.png +0 -0
  18. package/assets/images/pages/login-ondark.png +0 -0
  19. package/assets/images/pages/login-onlight.png +0 -0
  20. package/esm2022/index.mjs +23 -0
  21. package/esm2022/lib/components/breadcrumb.component.mjs +30 -0
  22. package/esm2022/lib/components/footer.component.mjs +28 -0
  23. package/esm2022/lib/components/main-layout.component.mjs +99 -0
  24. package/esm2022/lib/components/menu-item.component.mjs +275 -0
  25. package/esm2022/lib/components/menu.component.mjs +40 -0
  26. package/esm2022/lib/components/sidebar.component.mjs +61 -0
  27. package/esm2022/lib/components/topbar-user.component.mjs +39 -0
  28. package/esm2022/lib/components/topbar.component.mjs +57 -0
  29. package/esm2022/lib/components/version.component.mjs +63 -0
  30. package/esm2022/lib/helpers/route-builder.mjs +11 -0
  31. package/esm2022/lib/models/layout-state.model.mjs +2 -0
  32. package/esm2022/lib/models/menu.model.mjs +2 -0
  33. package/esm2022/lib/provide.mjs +23 -0
  34. package/esm2022/lib/services/layout-feature-config.token.mjs +3 -0
  35. package/esm2022/lib/services/main-layout.component.service.mjs +71 -0
  36. package/esm2022/lib/services/menu.service.mjs +120 -0
  37. package/esm2022/lib/services/version.service.mjs +45 -0
  38. package/esm2022/mediusinc-mng-commons-layout.mjs +5 -0
  39. package/fesm2022/mediusinc-mng-commons-layout.mjs +878 -0
  40. package/fesm2022/mediusinc-mng-commons-layout.mjs.map +1 -0
  41. package/index.d.ts +17 -0
  42. package/lib/components/breadcrumb.component.d.ts +10 -0
  43. package/lib/components/footer.component.d.ts +12 -0
  44. package/lib/components/main-layout.component.d.ts +27 -0
  45. package/lib/components/menu-item.component.d.ts +40 -0
  46. package/lib/components/menu.component.d.ts +14 -0
  47. package/lib/components/sidebar.component.d.ts +19 -0
  48. package/lib/components/topbar-user.component.d.ts +15 -0
  49. package/lib/components/topbar.component.d.ts +22 -0
  50. package/lib/components/version.component.d.ts +18 -0
  51. package/lib/helpers/route-builder.d.ts +6 -0
  52. package/lib/models/layout-state.model.d.ts +10 -0
  53. package/lib/models/menu.model.d.ts +4 -0
  54. package/lib/provide.d.ts +8 -0
  55. package/lib/services/layout-feature-config.token.d.ts +18 -0
  56. package/lib/services/main-layout.component.service.d.ts +17 -0
  57. package/lib/services/menu.service.d.ts +22 -0
  58. package/lib/services/version.service.d.ts +14 -0
  59. package/package.json +35 -0
  60. package/scss/commons-dark.scss +9 -0
  61. package/scss/commons-light.scss +9 -0
  62. package/scss/layout/_animation.scss +53 -0
  63. package/scss/layout/_breadcrumb.scss +97 -0
  64. package/scss/layout/_config.scss +42 -0
  65. package/scss/layout/_content.scss +3 -0
  66. package/scss/layout/_fonts.scss +40 -0
  67. package/scss/layout/_layout_dark.scss +12 -0
  68. package/scss/layout/_layout_light.scss +12 -0
  69. package/scss/layout/_main.scss +54 -0
  70. package/scss/layout/_profile.scss +10 -0
  71. package/scss/layout/_responsive.scss +131 -0
  72. package/scss/layout/_sidebar_drawer.scss +285 -0
  73. package/scss/layout/_sidebar_horizontal.scss +168 -0
  74. package/scss/layout/_sidebar_reveal.scss +203 -0
  75. package/scss/layout/_sidebar_slim.scss +157 -0
  76. package/scss/layout/_sidebar_slim_plus.scss +166 -0
  77. package/scss/layout/_sidebar_vertical.scss +178 -0
  78. package/scss/layout/_topbar.scss +174 -0
  79. package/scss/layout/_typography.scss +67 -0
  80. package/scss/layout/_utils.scss +33 -0
  81. package/scss/layout/layout.scss +24 -0
  82. package/scss/layout/mng/_mng_layout_footer.scss +39 -0
  83. package/scss/layout/mng/_mng_layout_menu.scss +10 -0
  84. package/scss/layout/mng/_mng_layout_styles.scss +3 -0
  85. package/scss/layout/mng/_mng_layout_topbar.scss +18 -0
  86. package/scss/layout/preloading.scss +84 -0
  87. package/scss/theme/extensions/_fullcalendar.scss +328 -0
  88. package/scss/theme/theme-base/_colors.scss +17 -0
  89. package/scss/theme/theme-base/_common.scss +76 -0
  90. package/scss/theme/theme-base/_components.scss +110 -0
  91. package/scss/theme/theme-base/_mixins.scss +337 -0
  92. package/scss/theme/theme-base/components/button/_button.scss +576 -0
  93. package/scss/theme/theme-base/components/button/_speeddial.scss +96 -0
  94. package/scss/theme/theme-base/components/button/_splitbutton.scss +348 -0
  95. package/scss/theme/theme-base/components/data/_carousel.scss +37 -0
  96. package/scss/theme/theme-base/components/data/_datatable.scss +338 -0
  97. package/scss/theme/theme-base/components/data/_dataview.scss +46 -0
  98. package/scss/theme/theme-base/components/data/_filter.scss +137 -0
  99. package/scss/theme/theme-base/components/data/_orderlist.scss +114 -0
  100. package/scss/theme/theme-base/components/data/_organizationchart.scss +50 -0
  101. package/scss/theme/theme-base/components/data/_paginator.scss +92 -0
  102. package/scss/theme/theme-base/components/data/_picklist.scss +114 -0
  103. package/scss/theme/theme-base/components/data/_timeline.scss +35 -0
  104. package/scss/theme/theme-base/components/data/_tree.scss +150 -0
  105. package/scss/theme/theme-base/components/data/_treetable.scss +255 -0
  106. package/scss/theme/theme-base/components/data/_virtualscroller.scss +28 -0
  107. package/scss/theme/theme-base/components/file/_fileupload.scss +64 -0
  108. package/scss/theme/theme-base/components/input/_autocomplete.scss +136 -0
  109. package/scss/theme/theme-base/components/input/_calendar.scss +267 -0
  110. package/scss/theme/theme-base/components/input/_cascadeselect.scss +135 -0
  111. package/scss/theme/theme-base/components/input/_checkbox.scss +94 -0
  112. package/scss/theme/theme-base/components/input/_chips.scss +65 -0
  113. package/scss/theme/theme-base/components/input/_colorpicker.scss +19 -0
  114. package/scss/theme/theme-base/components/input/_dropdown.scss +151 -0
  115. package/scss/theme/theme-base/components/input/_editor.scss +122 -0
  116. package/scss/theme/theme-base/components/input/_inputgroup.scss +74 -0
  117. package/scss/theme/theme-base/components/input/_inputmask.scss +16 -0
  118. package/scss/theme/theme-base/components/input/_inputnumber.scss +28 -0
  119. package/scss/theme/theme-base/components/input/_inputswitch.scss +60 -0
  120. package/scss/theme/theme-base/components/input/_inputtext.scss +100 -0
  121. package/scss/theme/theme-base/components/input/_listbox.scss +97 -0
  122. package/scss/theme/theme-base/components/input/_multiselect.scss +177 -0
  123. package/scss/theme/theme-base/components/input/_password.scss +52 -0
  124. package/scss/theme/theme-base/components/input/_radiobutton.scss +78 -0
  125. package/scss/theme/theme-base/components/input/_rating.scss +60 -0
  126. package/scss/theme/theme-base/components/input/_selectbutton.scss +50 -0
  127. package/scss/theme/theme-base/components/input/_slider.scss +75 -0
  128. package/scss/theme/theme-base/components/input/_togglebutton.scss +48 -0
  129. package/scss/theme/theme-base/components/input/_treeselect.scss +139 -0
  130. package/scss/theme/theme-base/components/menu/_breadcrumb.scss +42 -0
  131. package/scss/theme/theme-base/components/menu/_contextmenu.scss +39 -0
  132. package/scss/theme/theme-base/components/menu/_dock.scss +95 -0
  133. package/scss/theme/theme-base/components/menu/_megamenu.scss +55 -0
  134. package/scss/theme/theme-base/components/menu/_menu.scss +37 -0
  135. package/scss/theme/theme-base/components/menu/_menubar.scss +140 -0
  136. package/scss/theme/theme-base/components/menu/_panelmenu.scss +153 -0
  137. package/scss/theme/theme-base/components/menu/_slidemenu.scss +59 -0
  138. package/scss/theme/theme-base/components/menu/_steps.scss +56 -0
  139. package/scss/theme/theme-base/components/menu/_tabmenu.scss +73 -0
  140. package/scss/theme/theme-base/components/menu/_tieredmenu.scss +43 -0
  141. package/scss/theme/theme-base/components/messages/_inlinemessage.scss +69 -0
  142. package/scss/theme/theme-base/components/messages/_message.scss +107 -0
  143. package/scss/theme/theme-base/components/messages/_toast.scss +99 -0
  144. package/scss/theme/theme-base/components/misc/_avatar.scss +30 -0
  145. package/scss/theme/theme-base/components/misc/_badge.scss +48 -0
  146. package/scss/theme/theme-base/components/misc/_blockui.scss +0 -0
  147. package/scss/theme/theme-base/components/misc/_chip.scss +42 -0
  148. package/scss/theme/theme-base/components/misc/_inplace.scss +16 -0
  149. package/scss/theme/theme-base/components/misc/_progressbar.scss +17 -0
  150. package/scss/theme/theme-base/components/misc/_scrolltop.scss +25 -0
  151. package/scss/theme/theme-base/components/misc/_skeleton.scss +8 -0
  152. package/scss/theme/theme-base/components/misc/_tag.scss +40 -0
  153. package/scss/theme/theme-base/components/misc/_terminal.scss +12 -0
  154. package/scss/theme/theme-base/components/multimedia/_galleria.scss +155 -0
  155. package/scss/theme/theme-base/components/multimedia/_image.scss +49 -0
  156. package/scss/theme/theme-base/components/overlay/_confirmpopup.scss +70 -0
  157. package/scss/theme/theme-base/components/overlay/_dialog.scss +69 -0
  158. package/scss/theme/theme-base/components/overlay/_overlaypanel.scss +62 -0
  159. package/scss/theme/theme-base/components/overlay/_sidebar.scss +27 -0
  160. package/scss/theme/theme-base/components/overlay/_tooltip.scss +33 -0
  161. package/scss/theme/theme-base/components/panel/_accordion.scss +119 -0
  162. package/scss/theme/theme-base/components/panel/_card.scss +30 -0
  163. package/scss/theme/theme-base/components/panel/_divider.scss +31 -0
  164. package/scss/theme/theme-base/components/panel/_fieldset.scss +47 -0
  165. package/scss/theme/theme-base/components/panel/_panel.scss +63 -0
  166. package/scss/theme/theme-base/components/panel/_scrollpanel.scss +6 -0
  167. package/scss/theme/theme-base/components/panel/_splitter.scss +19 -0
  168. package/scss/theme/theme-base/components/panel/_tabview.scss +82 -0
  169. package/scss/theme/theme-base/components/panel/_toolbar.scss +11 -0
  170. package/scss/theme/theme-base/mng/_mng_mixins.scss +69 -0
  171. package/scss/theme/theme-base/mng/_mng_theme_autocomplete.scss +34 -0
  172. package/scss/theme/theme-base/mng/_mng_theme_button.scss +68 -0
  173. package/scss/theme/theme-base/mng/_mng_theme_datatable.scss +153 -0
  174. package/scss/theme/theme-base/mng/_mng_theme_datepicker.scss +21 -0
  175. package/scss/theme/theme-base/mng/_mng_theme_dialog.scss +206 -0
  176. package/scss/theme/theme-base/mng/_mng_theme_dropdown.scss +32 -0
  177. package/scss/theme/theme-base/mng/_mng_theme_fileupload.scss +24 -0
  178. package/scss/theme/theme-base/mng/_mng_theme_forms.scss +66 -0
  179. package/scss/theme/theme-base/mng/_mng_theme_image.scss +27 -0
  180. package/scss/theme/theme-base/mng/_mng_theme_input.scss +31 -0
  181. package/scss/theme/theme-base/mng/_mng_theme_menu.scss +5 -0
  182. package/scss/theme/theme-base/mng/_mng_theme_multiselect.scss +20 -0
  183. package/scss/theme/theme-base/mng/_mng_theme_styles.scss +17 -0
  184. package/scss/theme/theme-base/mng/_mng_theme_tableview.scss +97 -0
  185. package/scss/theme/theme-base/mng/_mng_theme_tabview.scss +14 -0
  186. package/scss/theme/theme-base/mng/_mng_theme_toast.scss +3 -0
  187. package/scss/theme/theme-base/mng/_mng_theme_toolbar.scss +5 -0
  188. package/scss/theme/theme-base/mng/_mng_variables.scss +15 -0
  189. package/scss/theme/theme-dark/_extensions.scss +109 -0
  190. package/scss/theme/theme-dark/_variables.scss +940 -0
  191. package/scss/theme/theme-dark/blue/theme.scss +14 -0
  192. package/scss/theme/theme-light/_extensions.scss +109 -0
  193. package/scss/theme/theme-light/_variables.scss +936 -0
  194. package/scss/theme/theme-light/blue/theme.scss +14 -0
@@ -0,0 +1,576 @@
1
+ .p-button {
2
+ color: $buttonTextColor;
3
+ background: $buttonBg;
4
+ border: $buttonBorder;
5
+ padding: $buttonPadding;
6
+ font-size: $fontSize;
7
+ transition: $formElementTransition;
8
+ border-radius: $borderRadius;
9
+
10
+ &:not(:disabled):hover {
11
+ background: $buttonHoverBg;
12
+ color: $buttonTextHoverColor;
13
+ border-color: $buttonHoverBorderColor;
14
+ }
15
+
16
+ &:not(:disabled):active {
17
+ background: $buttonActiveBg;
18
+ color: $buttonTextActiveColor;
19
+ border-color: $buttonActiveBorderColor;
20
+ }
21
+
22
+ &.p-button-outlined {
23
+ background-color: transparent;
24
+ color: $buttonBg;
25
+ border: $outlinedButtonBorder;
26
+
27
+ &:not(:disabled):hover {
28
+ background: rgba($buttonBg, $textButtonHoverBgOpacity);
29
+ color: $buttonBg;
30
+ border: $outlinedButtonBorder;
31
+ }
32
+
33
+ &:not(:disabled):active {
34
+ background: rgba($buttonBg, $textButtonActiveBgOpacity);
35
+ color: $buttonBg;
36
+ border: $outlinedButtonBorder;
37
+ }
38
+
39
+ &.p-button-plain {
40
+ color: $plainButtonTextColor;
41
+ border-color: $plainButtonTextColor;
42
+
43
+ &:not(:disabled):hover {
44
+ background: $plainButtonHoverBgColor;
45
+ color: $plainButtonTextColor;
46
+ }
47
+
48
+ &:not(:disabled):active {
49
+ background: $plainButtonActiveBgColor;
50
+ color: $plainButtonTextColor;
51
+ }
52
+ }
53
+ }
54
+
55
+ &.p-button-text {
56
+ background-color: transparent;
57
+ color: $buttonBg;
58
+ border-color: transparent;
59
+
60
+ &:not(:disabled):hover {
61
+ background: rgba($buttonBg, $textButtonHoverBgOpacity);
62
+ color: $buttonBg;
63
+ border-color: transparent;
64
+ }
65
+
66
+ &:not(:disabled):active {
67
+ background: rgba($buttonBg, $textButtonActiveBgOpacity);
68
+ color: $buttonBg;
69
+ border-color: transparent;
70
+ }
71
+
72
+ &.p-button-plain {
73
+ color: $plainButtonTextColor;
74
+
75
+ &:not(:disabled):hover {
76
+ background: $plainButtonHoverBgColor;
77
+ color: $plainButtonTextColor;
78
+ }
79
+
80
+ &:not(:disabled):active {
81
+ background: $plainButtonActiveBgColor;
82
+ color: $plainButtonTextColor;
83
+ }
84
+ }
85
+ }
86
+
87
+ &:focus {
88
+ @include focused();
89
+ }
90
+
91
+ .p-button-label {
92
+ transition-duration: $transitionDuration;
93
+ }
94
+
95
+ .p-button-icon-left {
96
+ margin-right: $inlineSpacing;
97
+ }
98
+
99
+ .p-button-icon-right {
100
+ margin-left: $inlineSpacing;
101
+ }
102
+
103
+ .p-button-icon-bottom {
104
+ margin-top: $inlineSpacing;
105
+ }
106
+
107
+ .p-button-icon-top {
108
+ margin-bottom: $inlineSpacing;
109
+ }
110
+
111
+ .p-badge {
112
+ margin-left: $inlineSpacing;
113
+ min-width: $fontSize;
114
+ height: $fontSize;
115
+ line-height: $fontSize;
116
+ color: $buttonBg;
117
+ background-color: $buttonTextColor;
118
+ }
119
+
120
+ &.p-button-raised {
121
+ box-shadow: $raisedButtonShadow;
122
+ }
123
+
124
+ &.p-button-rounded {
125
+ border-radius: $roundedButtonBorderRadius;
126
+ }
127
+
128
+ &.p-button-icon-only {
129
+ width: $buttonIconOnlyWidth;
130
+ padding: $buttonIconOnlyPadding;
131
+
132
+ .p-button-icon-left,
133
+ .p-button-icon-right {
134
+ margin: 0;
135
+ }
136
+
137
+ &.p-button-rounded {
138
+ border-radius: 50%;
139
+ height: $buttonIconOnlyWidth;
140
+ }
141
+ }
142
+
143
+ &.p-button-sm {
144
+ @include scaledFontSize($fontSize, $scaleSM);
145
+ @include scaledPadding($buttonPadding, $scaleSM);
146
+
147
+ .p-button-icon {
148
+ @include scaledFontSize($primeIconFontSize, $scaleSM);
149
+ }
150
+ }
151
+
152
+ &.p-button-lg {
153
+ @include scaledFontSize($fontSize, $scaleLG);
154
+ @include scaledPadding($buttonPadding, $scaleLG);
155
+
156
+ .p-button-icon {
157
+ @include scaledFontSize($primeIconFontSize, $scaleLG);
158
+ }
159
+ }
160
+
161
+ &.p-button-loading-label-only {
162
+ .p-button-label {
163
+ margin-left: $inlineSpacing;
164
+ }
165
+
166
+ .p-button-loading-icon {
167
+ margin-right: 0;
168
+ }
169
+ }
170
+ }
171
+
172
+ .p-fluid {
173
+ .p-button {
174
+ width: 100%;
175
+ }
176
+
177
+ .p-button-icon-only {
178
+ width: $buttonIconOnlyWidth;
179
+ }
180
+
181
+ .p-buttonset {
182
+ display: flex;
183
+
184
+ .p-button {
185
+ flex: 1;
186
+ }
187
+ }
188
+ }
189
+
190
+ .p-button.p-button-secondary,
191
+ .p-buttonset.p-button-secondary > .p-button,
192
+ .p-splitbutton.p-button-secondary > .p-button {
193
+ color: $secondaryButtonTextColor;
194
+ background: $secondaryButtonBg;
195
+ border: $secondaryButtonBorder;
196
+
197
+ &:not(:disabled):hover {
198
+ background: $secondaryButtonHoverBg;
199
+ color: $secondaryButtonTextHoverColor;
200
+ border-color: $secondaryButtonHoverBorderColor;
201
+ }
202
+
203
+ &:not(:disabled):focus {
204
+ box-shadow: $secondaryButtonFocusShadow;
205
+ }
206
+
207
+ &:not(:disabled):active {
208
+ background: $secondaryButtonActiveBg;
209
+ color: $secondaryButtonTextActiveColor;
210
+ border-color: $secondaryButtonActiveBorderColor;
211
+ }
212
+
213
+ &.p-button-outlined {
214
+ background-color: transparent;
215
+ color: $secondaryButtonBg;
216
+ border: $outlinedButtonBorder;
217
+
218
+ &:not(:disabled):hover {
219
+ background: rgba($secondaryButtonBg, $textButtonHoverBgOpacity);
220
+ color: $secondaryButtonBg;
221
+ border: $outlinedButtonBorder;
222
+ }
223
+
224
+ &:not(:disabled):active {
225
+ background: rgba($secondaryButtonBg, $textButtonActiveBgOpacity);
226
+ color: $secondaryButtonBg;
227
+ border: $outlinedButtonBorder;
228
+ }
229
+ }
230
+
231
+ &.p-button-text {
232
+ background-color: transparent;
233
+ color: $secondaryButtonBg;
234
+ border-color: transparent;
235
+
236
+ &:not(:disabled):hover {
237
+ background: rgba($secondaryButtonBg, $textButtonHoverBgOpacity);
238
+ border-color: transparent;
239
+ color: $secondaryButtonBg;
240
+ }
241
+
242
+ &:not(:disabled):active {
243
+ background: rgba($secondaryButtonBg, $textButtonActiveBgOpacity);
244
+ border-color: transparent;
245
+ color: $secondaryButtonBg;
246
+ }
247
+ }
248
+ }
249
+
250
+ .p-button.p-button-info,
251
+ .p-buttonset.p-button-info > .p-button,
252
+ .p-splitbutton.p-button-info > .p-button {
253
+ color: $infoButtonTextColor;
254
+ background: $infoButtonBg;
255
+ border: $infoButtonBorder;
256
+
257
+ &:not(:disabled):hover {
258
+ background: $infoButtonHoverBg;
259
+ color: $infoButtonTextHoverColor;
260
+ border-color: $infoButtonHoverBorderColor;
261
+ }
262
+
263
+ &:not(:disabled):focus {
264
+ box-shadow: $infoButtonFocusShadow;
265
+ }
266
+
267
+ &:not(:disabled):active {
268
+ background: $infoButtonActiveBg;
269
+ color: $infoButtonTextActiveColor;
270
+ border-color: $infoButtonActiveBorderColor;
271
+ }
272
+
273
+ &.p-button-outlined {
274
+ background-color: transparent;
275
+ color: $infoButtonBg;
276
+ border: $outlinedButtonBorder;
277
+
278
+ &:not(:disabled):hover {
279
+ background: rgba($infoButtonBg, $textButtonHoverBgOpacity);
280
+ color: $infoButtonBg;
281
+ border: $outlinedButtonBorder;
282
+ }
283
+
284
+ &:not(:disabled):active {
285
+ background: rgba($infoButtonBg, $textButtonActiveBgOpacity);
286
+ color: $infoButtonBg;
287
+ border: $outlinedButtonBorder;
288
+ }
289
+ }
290
+
291
+ &.p-button-text {
292
+ background-color: transparent;
293
+ color: $infoButtonBg;
294
+ border-color: transparent;
295
+
296
+ &:not(:disabled):hover {
297
+ background: rgba($infoButtonBg, $textButtonHoverBgOpacity);
298
+ border-color: transparent;
299
+ color: $infoButtonBg;
300
+ }
301
+
302
+ &:not(:disabled):active {
303
+ background: rgba($infoButtonBg, $textButtonActiveBgOpacity);
304
+ border-color: transparent;
305
+ color: $infoButtonBg;
306
+ }
307
+ }
308
+ }
309
+
310
+ .p-button.p-button-success,
311
+ .p-buttonset.p-button-success > .p-button,
312
+ .p-splitbutton.p-button-success > .p-button {
313
+ color: $successButtonTextColor;
314
+ background: $successButtonBg;
315
+ border: $successButtonBorder;
316
+
317
+ &:not(:disabled):hover {
318
+ background: $successButtonHoverBg;
319
+ color: $successButtonTextHoverColor;
320
+ border-color: $successButtonHoverBorderColor;
321
+ }
322
+
323
+ &:not(:disabled):focus {
324
+ box-shadow: $successButtonFocusShadow;
325
+ }
326
+
327
+ &:not(:disabled):active {
328
+ background: $successButtonActiveBg;
329
+ color: $successButtonTextActiveColor;
330
+ border-color: $successButtonActiveBorderColor;
331
+ }
332
+
333
+ &.p-button-outlined {
334
+ background-color: transparent;
335
+ color: $successButtonBg;
336
+ border: $outlinedButtonBorder;
337
+
338
+ &:not(:disabled):hover {
339
+ background: rgba($successButtonBg, $textButtonHoverBgOpacity);
340
+ color: $successButtonBg;
341
+ border: $outlinedButtonBorder;
342
+ }
343
+
344
+ &:not(:disabled):active {
345
+ background: rgba($successButtonBg, $textButtonActiveBgOpacity);
346
+ color: $successButtonBg;
347
+ border: $outlinedButtonBorder;
348
+ }
349
+ }
350
+
351
+ &.p-button-text {
352
+ background-color: transparent;
353
+ color: $successButtonBg;
354
+ border-color: transparent;
355
+
356
+ &:not(:disabled):hover {
357
+ background: rgba($successButtonBg, $textButtonHoverBgOpacity);
358
+ border-color: transparent;
359
+ color: $successButtonBg;
360
+ }
361
+
362
+ &:not(:disabled):active {
363
+ background: rgba($successButtonBg, $textButtonActiveBgOpacity);
364
+ border-color: transparent;
365
+ color: $successButtonBg;
366
+ }
367
+ }
368
+ }
369
+
370
+ .p-button.p-button-warning,
371
+ .p-buttonset.p-button-warning > .p-button,
372
+ .p-splitbutton.p-button-warning > .p-button {
373
+ color: $warningButtonTextColor;
374
+ background: $warningButtonBg;
375
+ border: $warningButtonBorder;
376
+
377
+ &:not(:disabled):hover {
378
+ background: $warningButtonHoverBg;
379
+ color: $warningButtonTextHoverColor;
380
+ border-color: $warningButtonHoverBorderColor;
381
+ }
382
+
383
+ &:not(:disabled):focus {
384
+ box-shadow: $warningButtonFocusShadow;
385
+ }
386
+
387
+ &:not(:disabled):active {
388
+ background: $warningButtonActiveBg;
389
+ color: $warningButtonTextActiveColor;
390
+ border-color: $warningButtonActiveBorderColor;
391
+ }
392
+
393
+ &.p-button-outlined {
394
+ background-color: transparent;
395
+ color: $warningButtonBg;
396
+ border: $outlinedButtonBorder;
397
+
398
+ &:not(:disabled):hover {
399
+ background: rgba($warningButtonBg, $textButtonHoverBgOpacity);
400
+ color: $warningButtonBg;
401
+ border: $outlinedButtonBorder;
402
+ }
403
+
404
+ &:not(:disabled):active {
405
+ background: rgba($warningButtonBg, $textButtonActiveBgOpacity);
406
+ color: $warningButtonBg;
407
+ border: $outlinedButtonBorder;
408
+ }
409
+ }
410
+
411
+ &.p-button-text {
412
+ background-color: transparent;
413
+ color: $warningButtonBg;
414
+ border-color: transparent;
415
+
416
+ &:not(:disabled):hover {
417
+ background: rgba($warningButtonBg, $textButtonHoverBgOpacity);
418
+ border-color: transparent;
419
+ color: $warningButtonBg;
420
+ }
421
+
422
+ &:not(:disabled):active {
423
+ background: rgba($warningButtonBg, $textButtonActiveBgOpacity);
424
+ border-color: transparent;
425
+ color: $warningButtonBg;
426
+ }
427
+ }
428
+ }
429
+
430
+ .p-button.p-button-help,
431
+ .p-buttonset.p-button-help > .p-button,
432
+ .p-splitbutton.p-button-help > .p-button {
433
+ color: $helpButtonTextColor;
434
+ background: $helpButtonBg;
435
+ border: $helpButtonBorder;
436
+
437
+ &:not(:disabled):hover {
438
+ background: $helpButtonHoverBg;
439
+ color: $helpButtonTextHoverColor;
440
+ border-color: $helpButtonHoverBorderColor;
441
+ }
442
+
443
+ &:not(:disabled):focus {
444
+ box-shadow: $helpButtonFocusShadow;
445
+ }
446
+
447
+ &:not(:disabled):active {
448
+ background: $helpButtonActiveBg;
449
+ color: $helpButtonTextActiveColor;
450
+ border-color: $helpButtonActiveBorderColor;
451
+ }
452
+
453
+ &.p-button-outlined {
454
+ background-color: transparent;
455
+ color: $helpButtonBg;
456
+ border: $outlinedButtonBorder;
457
+
458
+ &:not(:disabled):hover {
459
+ background: rgba($helpButtonBg, $textButtonHoverBgOpacity);
460
+ color: $helpButtonBg;
461
+ border: $outlinedButtonBorder;
462
+ }
463
+
464
+ &:not(:disabled):active {
465
+ background: rgba($helpButtonBg, $textButtonActiveBgOpacity);
466
+ color: $helpButtonBg;
467
+ border: $outlinedButtonBorder;
468
+ }
469
+ }
470
+
471
+ &.p-button-text {
472
+ background-color: transparent;
473
+ color: $helpButtonBg;
474
+ border-color: transparent;
475
+
476
+ &:not(:disabled):hover {
477
+ background: rgba($helpButtonBg, $textButtonHoverBgOpacity);
478
+ border-color: transparent;
479
+ color: $helpButtonBg;
480
+ }
481
+
482
+ &:not(:disabled):active {
483
+ background: rgba($helpButtonBg, $textButtonActiveBgOpacity);
484
+ border-color: transparent;
485
+ color: $helpButtonBg;
486
+ }
487
+ }
488
+ }
489
+
490
+ .p-button.p-button-danger,
491
+ .p-buttonset.p-button-danger > .p-button,
492
+ .p-splitbutton.p-button-danger > .p-button {
493
+ color: $dangerButtonTextColor;
494
+ background: $dangerButtonBg;
495
+ border: $dangerButtonBorder;
496
+
497
+ &:not(:disabled):hover {
498
+ background: $dangerButtonHoverBg;
499
+ color: $dangerButtonTextHoverColor;
500
+ border-color: $dangerButtonHoverBorderColor;
501
+ }
502
+
503
+ &:not(:disabled):focus {
504
+ box-shadow: $dangerButtonFocusShadow;
505
+ }
506
+
507
+ &:not(:disabled):active {
508
+ background: $dangerButtonActiveBg;
509
+ color: $dangerButtonTextActiveColor;
510
+ border-color: $dangerButtonActiveBorderColor;
511
+ }
512
+
513
+ &.p-button-outlined {
514
+ background-color: transparent;
515
+ color: $dangerButtonBg;
516
+ border: $outlinedButtonBorder;
517
+
518
+ &:not(:disabled):hover {
519
+ background: rgba($dangerButtonBg, $textButtonHoverBgOpacity);
520
+ color: $dangerButtonBg;
521
+ border: $outlinedButtonBorder;
522
+ }
523
+
524
+ &:not(:disabled):active {
525
+ background: rgba($dangerButtonBg, $textButtonActiveBgOpacity);
526
+ color: $dangerButtonBg;
527
+ border: $outlinedButtonBorder;
528
+ }
529
+ }
530
+
531
+ &.p-button-text {
532
+ background-color: transparent;
533
+ color: $dangerButtonBg;
534
+ border-color: transparent;
535
+
536
+ &:not(:disabled):hover {
537
+ background: rgba($dangerButtonBg, $textButtonHoverBgOpacity);
538
+ border-color: transparent;
539
+ color: $dangerButtonBg;
540
+ }
541
+
542
+ &:not(:disabled):active {
543
+ background: rgba($dangerButtonBg, $textButtonActiveBgOpacity);
544
+ border-color: transparent;
545
+ color: $dangerButtonBg;
546
+ }
547
+ }
548
+ }
549
+
550
+ .p-button.p-button-link {
551
+ color: $linkButtonColor;
552
+ background: transparent;
553
+ border: transparent;
554
+
555
+ &:not(:disabled):hover {
556
+ background: transparent;
557
+ color: $linkButtonHoverColor;
558
+ border-color: transparent;
559
+
560
+ .p-button-label {
561
+ text-decoration: $linkButtonTextHoverDecoration;
562
+ }
563
+ }
564
+
565
+ &:not(:disabled):focus {
566
+ background: transparent;
567
+ box-shadow: $linkButtonFocusShadow;
568
+ border-color: transparent;
569
+ }
570
+
571
+ &:not(:disabled):active {
572
+ background: transparent;
573
+ color: $linkButtonColor;
574
+ border-color: transparent;
575
+ }
576
+ }
@@ -0,0 +1,96 @@
1
+ @use 'sass:math';
2
+
3
+ .p-speeddial-button {
4
+ &.p-button.p-button-icon-only {
5
+ width: $speedDialButtonWidth;
6
+ height: $speedDialButtonHeight;
7
+
8
+ .p-button-icon {
9
+ font-size: $speedDialButtonIconFontSize;
10
+ }
11
+
12
+ .p-icon {
13
+ width: $speedDialButtonIconFontSize;
14
+ height: $speedDialButtonIconFontSize;
15
+ }
16
+ }
17
+ }
18
+
19
+ .p-speeddial-list {
20
+ outline: 0 none;
21
+ }
22
+
23
+ .p-speeddial-item {
24
+ &.p-focus > .p-speeddial-action {
25
+ @include focused();
26
+ }
27
+ }
28
+
29
+ .p-speeddial-action {
30
+ width: $speedDialActionWidth;
31
+ height: $speedDialActionHeight;
32
+ background: $speedDialActionBg;
33
+ color: $speedDialActionTextColor;
34
+
35
+ &:hover {
36
+ background: $speedDialActionHoverBg;
37
+ color: $speedDialActionTextHoverColor;
38
+ }
39
+ }
40
+
41
+ .p-speeddial-direction-up {
42
+ .p-speeddial-item {
43
+ margin: math.div($inlineSpacing, 2) 0;
44
+
45
+ &:first-child {
46
+ margin-bottom: $inlineSpacing;
47
+ }
48
+ }
49
+ }
50
+
51
+ .p-speeddial-direction-down {
52
+ .p-speeddial-item {
53
+ margin: math.div($inlineSpacing, 2) 0;
54
+
55
+ &:first-child {
56
+ margin-top: $inlineSpacing;
57
+ }
58
+ }
59
+ }
60
+
61
+ .p-speeddial-direction-left {
62
+ .p-speeddial-item {
63
+ margin: 0 math.div($inlineSpacing, 2);
64
+
65
+ &:first-child {
66
+ margin-right: $inlineSpacing;
67
+ }
68
+ }
69
+ }
70
+
71
+ .p-speeddial-direction-right {
72
+ .p-speeddial-item {
73
+ margin: 0 math.div($inlineSpacing, 2);
74
+
75
+ &:first-child {
76
+ margin-left: $inlineSpacing;
77
+ }
78
+ }
79
+ }
80
+
81
+ .p-speeddial-circle,
82
+ .p-speeddial-semi-circle,
83
+ .p-speeddial-quarter-circle {
84
+ .p-speeddial-item {
85
+ margin: 0;
86
+
87
+ &:first-child,
88
+ &:last-child {
89
+ margin: 0;
90
+ }
91
+ }
92
+ }
93
+
94
+ .p-speeddial-mask {
95
+ background-color: $maskBg;
96
+ }