@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,151 @@
1
+ .p-dropdown {
2
+ background: $inputBg;
3
+ border: $inputBorder;
4
+ transition: $formElementTransition;
5
+ border-radius: $borderRadius;
6
+
7
+ &:not(.p-disabled):hover {
8
+ border-color: $inputHoverBorderColor;
9
+ }
10
+
11
+ &:not(.p-disabled).p-focus {
12
+ @include focused-input();
13
+ }
14
+
15
+ &.p-dropdown-clearable {
16
+ .p-dropdown-label {
17
+ padding-right: nth($inputPadding, 2) + $primeIconFontSize;
18
+ }
19
+ }
20
+
21
+ .p-dropdown-label {
22
+ background: transparent;
23
+ border: 0 none;
24
+
25
+ &.p-placeholder {
26
+ color: $inputPlaceholderTextColor;
27
+ }
28
+
29
+ &:focus,
30
+ &:enabled:focus {
31
+ outline: 0 none;
32
+ box-shadow: none;
33
+ }
34
+ }
35
+
36
+ .p-dropdown-trigger {
37
+ background: transparent;
38
+ color: $inputIconColor;
39
+ width: $inputGroupAddOnMinWidth;
40
+ border-top-right-radius: $borderRadius;
41
+ border-bottom-right-radius: $borderRadius;
42
+ }
43
+
44
+ .p-dropdown-clear-icon {
45
+ color: $inputIconColor;
46
+ right: $inputGroupAddOnMinWidth;
47
+ }
48
+
49
+ &.p-invalid.p-component {
50
+ @include invalid-input();
51
+ }
52
+ }
53
+
54
+ .p-dropdown-panel {
55
+ background: $inputOverlayBg;
56
+ color: $inputListTextColor;
57
+ border: $inputOverlayBorder;
58
+ border-radius: $borderRadius;
59
+ box-shadow: $inputOverlayShadow;
60
+
61
+ .p-dropdown-header {
62
+ padding: $inputListHeaderPadding;
63
+ border-bottom: $inputListHeaderBorder;
64
+ color: $inputListHeaderTextColor;
65
+ background: $inputOverlayHeaderBg;
66
+ margin: $inputListHeaderMargin;
67
+ border-top-right-radius: $borderRadius;
68
+ border-top-left-radius: $borderRadius;
69
+
70
+ .p-dropdown-filter {
71
+ padding-right: nth($inputPadding, 2) + $primeIconFontSize;
72
+ margin-right: -1 * (nth($inputPadding, 2) + $primeIconFontSize);
73
+ }
74
+
75
+ .p-dropdown-filter-icon {
76
+ right: nth($inputPadding, 2);
77
+ color: $inputIconColor;
78
+ }
79
+ }
80
+
81
+ .p-dropdown-items {
82
+ padding: $inputListPadding;
83
+
84
+ .p-dropdown-item {
85
+ margin: $inputListItemMargin;
86
+ padding: $inputListItemPadding;
87
+ border: $inputListItemBorder;
88
+ color: $inputListItemTextColor;
89
+ background: $inputListItemBg;
90
+ transition: $listItemTransition;
91
+ border-radius: $inputListItemBorderRadius;
92
+
93
+ &.p-highlight {
94
+ color: $highlightTextColor;
95
+ background: $highlightBg;
96
+
97
+ &.p-focus {
98
+ background: $highlightFocusBg;
99
+ }
100
+ }
101
+
102
+ &:not(.p-highlight):not(.p-disabled) {
103
+ &.p-focus {
104
+ color: $inputListItemTextFocusColor;
105
+ background: $inputListItemFocusBg;
106
+ }
107
+
108
+ &:hover {
109
+ color: $inputListItemTextHoverColor;
110
+ background: $inputListItemHoverBg;
111
+ }
112
+ }
113
+ }
114
+
115
+ .p-dropdown-item-group {
116
+ margin: $submenuHeaderMargin;
117
+ padding: $submenuHeaderPadding;
118
+ color: $submenuHeaderTextColor;
119
+ background: $submenuHeaderBg;
120
+ font-weight: $submenuHeaderFontWeight;
121
+ }
122
+
123
+ .p-dropdown-empty-message {
124
+ padding: $inputListItemPadding;
125
+ color: $inputListItemTextColor;
126
+ background: $inputListItemBg;
127
+ }
128
+ }
129
+ }
130
+
131
+ .p-input-filled {
132
+ .p-dropdown {
133
+ background: $inputFilledBg;
134
+
135
+ &:not(.p-disabled):hover {
136
+ background-color: $inputFilledHoverBg;
137
+ }
138
+
139
+ &:not(.p-disabled).p-focus {
140
+ background-color: $inputFilledFocusBg;
141
+
142
+ .p-inputtext {
143
+ background-color: transparent;
144
+ }
145
+ }
146
+ }
147
+ }
148
+
149
+ p-dropdown.ng-dirty.ng-invalid > .p-dropdown {
150
+ @include invalid-input();
151
+ }
@@ -0,0 +1,122 @@
1
+ .p-editor-container {
2
+ .p-editor-toolbar {
3
+ background: $editorToolbarBg;
4
+ border-top-right-radius: $borderRadius;
5
+ border-top-left-radius: $borderRadius;
6
+
7
+ &.ql-snow {
8
+ border: $editorToolbarBorder;
9
+
10
+ .ql-stroke {
11
+ stroke: $editorToolbarIconColor;
12
+ }
13
+
14
+ .ql-fill {
15
+ fill: $editorToolbarIconColor;
16
+ }
17
+
18
+ .ql-picker {
19
+ .ql-picker-label {
20
+ border: 0 none;
21
+ color: $editorToolbarIconColor;
22
+
23
+ &:hover {
24
+ color: $editorToolbarIconHoverColor;
25
+
26
+ .ql-stroke {
27
+ stroke: $editorToolbarIconHoverColor;
28
+ }
29
+
30
+ .ql-fill {
31
+ fill: $editorToolbarIconHoverColor;
32
+ }
33
+ }
34
+ }
35
+
36
+ &.ql-expanded {
37
+ .ql-picker-label {
38
+ color: $editorToolbarIconHoverColor;
39
+
40
+ .ql-stroke {
41
+ stroke: $editorToolbarIconHoverColor;
42
+ }
43
+
44
+ .ql-fill {
45
+ fill: $editorToolbarIconHoverColor;
46
+ }
47
+ }
48
+
49
+ .ql-picker-options {
50
+ background: $inputOverlayBg;
51
+ border: $inputOverlayBorder;
52
+ box-shadow: $inputOverlayShadow;
53
+ border-radius: $borderRadius;
54
+ padding: $inputListPadding;
55
+
56
+ .ql-picker-item {
57
+ color: $inputListItemTextColor;
58
+
59
+ &:hover {
60
+ color: $inputListItemTextHoverColor;
61
+ background: $inputListItemHoverBg;
62
+ }
63
+ }
64
+ }
65
+
66
+ &:not(.ql-icon-picker) {
67
+ .ql-picker-item {
68
+ padding: $inputListItemPadding;
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+
76
+ .p-editor-content {
77
+ border-bottom-right-radius: $borderRadius;
78
+ border-bottom-left-radius: $borderRadius;
79
+
80
+ &.ql-snow {
81
+ border: $editorContentBorder;
82
+ }
83
+
84
+ .ql-editor {
85
+ background: $inputBg;
86
+ color: $inputTextColor;
87
+ border-bottom-right-radius: $borderRadius;
88
+ border-bottom-left-radius: $borderRadius;
89
+ }
90
+ }
91
+
92
+ .ql-snow.ql-toolbar button:hover,
93
+ .ql-snow.ql-toolbar button:focus {
94
+ color: $editorToolbarIconHoverColor;
95
+
96
+ .ql-stroke {
97
+ stroke: $editorToolbarIconHoverColor;
98
+ }
99
+
100
+ .ql-fill {
101
+ fill: $editorToolbarIconHoverColor;
102
+ }
103
+ }
104
+
105
+ .ql-snow.ql-toolbar button.ql-active,
106
+ .ql-snow.ql-toolbar .ql-picker-label.ql-active,
107
+ .ql-snow.ql-toolbar .ql-picker-item.ql-selected {
108
+ color: $editorIconActiveColor;
109
+
110
+ .ql-stroke {
111
+ stroke: $editorIconActiveColor;
112
+ }
113
+
114
+ .ql-fill {
115
+ fill: $editorIconActiveColor;
116
+ }
117
+
118
+ .ql-picker-label {
119
+ color: $editorIconActiveColor;
120
+ }
121
+ }
122
+ }
@@ -0,0 +1,74 @@
1
+ .p-inputgroup-addon {
2
+ background: $inputGroupBg;
3
+ color: $inputGroupTextColor;
4
+ border-top: $inputBorder;
5
+ border-left: $inputBorder;
6
+ border-bottom: $inputBorder;
7
+ padding: $inputPadding;
8
+ min-width: $inputGroupAddOnMinWidth;
9
+
10
+ &:last-child {
11
+ border-right: $inputBorder;
12
+ }
13
+ }
14
+
15
+ .p-inputgroup {
16
+ > .p-component,
17
+ > .p-inputwrapper > .p-inputtext,
18
+ > .p-float-label > .p-component {
19
+ border-radius: 0;
20
+ margin: 0;
21
+
22
+ + .p-inputgroup-addon {
23
+ border-left: 0 none;
24
+ }
25
+
26
+ &:focus {
27
+ z-index: 1;
28
+
29
+ ~ label {
30
+ z-index: 1;
31
+ }
32
+ }
33
+ }
34
+ }
35
+
36
+ .p-inputgroup-addon:first-child,
37
+ .p-inputgroup button:first-child,
38
+ .p-inputgroup input:first-child,
39
+ .p-inputgroup > .p-inputwrapper:first-child > .p-component,
40
+ .p-inputgroup > .p-inputwrapper:first-child > .p-component > .p-inputtext {
41
+ border-top-left-radius: $borderRadius;
42
+ border-bottom-left-radius: $borderRadius;
43
+ }
44
+
45
+ .p-inputgroup .p-float-label:first-child input {
46
+ border-top-left-radius: $borderRadius;
47
+ border-bottom-left-radius: $borderRadius;
48
+ }
49
+
50
+ .p-inputgroup-addon:last-child,
51
+ .p-inputgroup button:last-child,
52
+ .p-inputgroup input:last-child,
53
+ .p-inputgroup > .p-inputwrapper:last-child > .p-component,
54
+ .p-inputgroup > .p-inputwrapper:last-child > .p-component > .p-inputtext {
55
+ border-top-right-radius: $borderRadius;
56
+ border-bottom-right-radius: $borderRadius;
57
+ }
58
+
59
+ .p-inputgroup .p-float-label:last-child input {
60
+ border-top-right-radius: $borderRadius;
61
+ border-bottom-right-radius: $borderRadius;
62
+ }
63
+
64
+ .p-fluid {
65
+ .p-inputgroup {
66
+ .p-button {
67
+ width: auto;
68
+
69
+ &.p-button-icon-only {
70
+ width: $buttonIconOnlyWidth;
71
+ }
72
+ }
73
+ }
74
+ }
@@ -0,0 +1,16 @@
1
+ @use 'sass:math';
2
+
3
+ p-inputmask.ng-dirty.ng-invalid > .p-inputtext {
4
+ @include invalid-input();
5
+ }
6
+
7
+ p-inputmask.p-inputmask-clearable {
8
+ .p-inputtext {
9
+ padding-right: nth($inputPadding, 2) * 2 + $primeIconFontSize;
10
+ }
11
+
12
+ .p-inputmask-clear-icon {
13
+ color: $inputIconColor;
14
+ right: nth($inputPadding, 2);
15
+ }
16
+ }
@@ -0,0 +1,28 @@
1
+ p-inputnumber.ng-dirty.ng-invalid > .p-inputnumber > .p-inputtext {
2
+ @include invalid-input();
3
+ }
4
+
5
+ p-inputnumber.p-inputnumber-clearable {
6
+ .p-inputnumber-input {
7
+ padding-right: nth($inputPadding, 2) * 2 + $primeIconFontSize;
8
+ }
9
+
10
+ .p-inputnumber-clear-icon {
11
+ color: $inputIconColor;
12
+ right: nth($inputPadding, 2);
13
+ }
14
+ }
15
+
16
+ p-inputnumber.p-inputnumber-clearable {
17
+ .p-inputnumber-buttons-stacked {
18
+ .p-inputnumber-clear-icon {
19
+ right: $buttonIconOnlyWidth + nth($inputPadding, 2);
20
+ }
21
+ }
22
+
23
+ .p-inputnumber-buttons-horizontal {
24
+ .p-inputnumber-clear-icon {
25
+ right: $buttonIconOnlyWidth + nth($inputPadding, 2);
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,60 @@
1
+ @use 'sass:math';
2
+
3
+ .p-inputswitch {
4
+ width: $inputSwitchWidth;
5
+ height: $inputSwitchHeight;
6
+
7
+ .p-inputswitch-slider {
8
+ background: $inputSwitchSliderOffBg;
9
+ transition: $formElementTransition;
10
+ border-radius: $inputSwitchBorderRadius;
11
+
12
+ &:before {
13
+ background: $inputSwitchHandleOffBg;
14
+ width: $inputSwitchHandleWidth;
15
+ height: $inputSwitchHandleHeight;
16
+ left: $inputSwitchSliderPadding;
17
+ margin-top: math.div(-1 * $inputSwitchHandleHeight, 2);
18
+ border-radius: $inputSwitchHandleBorderRadius;
19
+ transition-duration: $transitionDuration;
20
+ }
21
+ }
22
+
23
+ &.p-inputswitch-checked {
24
+ .p-inputswitch-slider:before {
25
+ transform: translateX($inputSwitchHandleWidth);
26
+ }
27
+ }
28
+
29
+ &.p-focus {
30
+ .p-inputswitch-slider {
31
+ @include focused();
32
+ }
33
+ }
34
+
35
+ &:not(.p-disabled):hover {
36
+ .p-inputswitch-slider {
37
+ background: $inputSwitchSliderOffHoverBg;
38
+ }
39
+ }
40
+
41
+ &.p-inputswitch-checked {
42
+ .p-inputswitch-slider {
43
+ background: $inputSwitchSliderOnBg;
44
+
45
+ &:before {
46
+ background: $inputSwitchHandleOnBg;
47
+ }
48
+ }
49
+
50
+ &:not(.p-disabled):hover {
51
+ .p-inputswitch-slider {
52
+ background: $inputSwitchSliderOnHoverBg;
53
+ }
54
+ }
55
+ }
56
+ }
57
+
58
+ p-inputswitch.ng-dirty.ng-invalid > .p-inputswitch > .p-inputswitch-slider {
59
+ @include invalid-input();
60
+ }
@@ -0,0 +1,100 @@
1
+ .p-inputtext {
2
+ font-family: var(--font-family);
3
+ font-feature-settings: var(--font-feature-settings, normal);
4
+ font-size: $inputTextFontSize;
5
+ color: $inputTextColor;
6
+ background: $inputBg;
7
+ padding: $inputPadding;
8
+ border: $inputBorder;
9
+ transition: $formElementTransition;
10
+ appearance: none;
11
+ border-radius: $borderRadius;
12
+
13
+ &:enabled:hover {
14
+ border-color: $inputHoverBorderColor;
15
+ }
16
+
17
+ &:enabled:focus {
18
+ @include focused-input();
19
+ }
20
+
21
+ &.ng-dirty.ng-invalid {
22
+ @include invalid-input();
23
+ }
24
+
25
+ &.p-inputtext-sm {
26
+ @include scaledFontSize($inputTextFontSize, $scaleSM);
27
+ @include scaledPadding($inputPadding, $scaleSM);
28
+ }
29
+
30
+ &.p-inputtext-lg {
31
+ @include scaledFontSize($inputTextFontSize, $scaleLG);
32
+ @include scaledPadding($inputPadding, $scaleLG);
33
+ }
34
+ }
35
+
36
+ .p-float-label > label {
37
+ left: nth($inputPadding, 2);
38
+ color: $inputPlaceholderTextColor;
39
+ transition-duration: $transitionDuration;
40
+ }
41
+
42
+ .p-float-label > .ng-invalid.ng-dirty + label {
43
+ color: $inputErrorBorderColor;
44
+ }
45
+
46
+ .p-input-icon-left > .p-icon-wrapper.p-icon,
47
+ .p-input-icon-left > i:first-of-type {
48
+ left: nth($inputPadding, 2);
49
+ color: $inputIconColor;
50
+ }
51
+
52
+ .p-input-icon-left > .p-inputtext {
53
+ padding-left: nth($inputPadding, 2) * 2 + $primeIconFontSize;
54
+ }
55
+
56
+ .p-input-icon-left.p-float-label > label {
57
+ left: nth($inputPadding, 2) * 2 + $primeIconFontSize;
58
+ }
59
+
60
+ .p-input-icon-right > .p-icon-wrapper,
61
+ .p-input-icon-right > i:last-of-type {
62
+ right: nth($inputPadding, 2);
63
+ color: $inputIconColor;
64
+ }
65
+
66
+ .p-input-icon-right > .p-inputtext {
67
+ padding-right: nth($inputPadding, 2) * 2 + $primeIconFontSize;
68
+ }
69
+
70
+ @include placeholder {
71
+ color: $inputPlaceholderTextColor;
72
+ }
73
+
74
+ .p-input-filled {
75
+ .p-inputtext {
76
+ background-color: $inputFilledBg;
77
+
78
+ &:enabled:hover {
79
+ background-color: $inputFilledHoverBg;
80
+ }
81
+
82
+ &:enabled:focus {
83
+ background-color: $inputFilledFocusBg;
84
+ }
85
+ }
86
+ }
87
+
88
+ .p-inputtext-sm {
89
+ .p-inputtext {
90
+ @include scaledFontSize($inputTextFontSize, $scaleSM);
91
+ @include scaledPadding($inputPadding, $scaleSM);
92
+ }
93
+ }
94
+
95
+ .p-inputtext-lg {
96
+ .p-inputtext {
97
+ @include scaledFontSize($inputTextFontSize, $scaleLG);
98
+ @include scaledPadding($inputPadding, $scaleLG);
99
+ }
100
+ }
@@ -0,0 +1,97 @@
1
+ .p-listbox {
2
+ background: $inputListBg;
3
+ color: $inputListTextColor;
4
+ border: $inputListBorder;
5
+ border-radius: $borderRadius;
6
+ transition: $formElementTransition;
7
+
8
+ .p-listbox-header {
9
+ padding: $inputListHeaderPadding;
10
+ border-bottom: $inputListHeaderBorder;
11
+ color: $inputListHeaderTextColor;
12
+ background: $inputListHeaderBg;
13
+ margin: $inputListHeaderMargin;
14
+ border-top-right-radius: $borderRadius;
15
+ border-top-left-radius: $borderRadius;
16
+
17
+ .p-listbox-filter {
18
+ padding-right: nth($inputPadding, 2) + $primeIconFontSize;
19
+ }
20
+
21
+ .p-listbox-filter-icon {
22
+ right: nth($inputPadding, 2);
23
+ color: $inputIconColor;
24
+ }
25
+
26
+ .p-checkbox {
27
+ margin-right: $inlineSpacing;
28
+ }
29
+ }
30
+
31
+ .p-listbox-list {
32
+ padding: $inputListPadding;
33
+ outline: 0 none;
34
+
35
+ .p-listbox-item {
36
+ margin: $inputListItemMargin;
37
+ padding: $inputListItemPadding;
38
+ border: $inputListItemBorder;
39
+ color: $inputListItemTextColor;
40
+ transition: $listItemTransition;
41
+ border-radius: $inputListItemBorderRadius;
42
+
43
+ &.p-highlight {
44
+ color: $highlightTextColor;
45
+ background: $highlightBg;
46
+ }
47
+
48
+ .p-checkbox {
49
+ margin-right: $inlineSpacing;
50
+ }
51
+ }
52
+
53
+ .p-listbox-item-group {
54
+ margin: $submenuHeaderMargin;
55
+ padding: $submenuHeaderPadding;
56
+ color: $submenuHeaderTextColor;
57
+ background: $submenuHeaderBg;
58
+ font-weight: $submenuHeaderFontWeight;
59
+ }
60
+
61
+ .p-listbox-empty-message {
62
+ padding: $inputListItemPadding;
63
+ color: $inputListItemTextColor;
64
+ background: $inputListItemBg;
65
+ }
66
+ }
67
+
68
+ &:not(.p-disabled) {
69
+ .p-listbox-item {
70
+ &.p-highlight {
71
+ &.p-focus {
72
+ background: $highlightFocusBg;
73
+ }
74
+ }
75
+
76
+ &:not(.p-highlight):not(.p-disabled) {
77
+ &.p-focus {
78
+ color: $inputListItemTextFocusColor;
79
+ background: $inputListItemFocusBg;
80
+ }
81
+
82
+ &:hover {
83
+ color: $inputListItemTextHoverColor;
84
+ background: $inputListItemHoverBg;
85
+ }
86
+ }
87
+ }
88
+ }
89
+
90
+ &.p-focus {
91
+ @include focused-input();
92
+ }
93
+ }
94
+
95
+ p-listbox.ng-dirty.ng-invalid > .p-listbox {
96
+ @include invalid-input();
97
+ }