@mediusinc/mng-commons 0.0.1-rc.4 → 0.1.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 (323) hide show
  1. package/.pnpm-debug.log +15 -0
  2. package/README.md +95 -0
  3. package/assets/i18n/en.json +54 -3
  4. package/assets/i18n/sl.json +54 -8
  5. package/assets/images/effect-ondark.png +0 -0
  6. package/assets/images/effect-ondark.svg +38 -0
  7. package/assets/images/effect-ondark@2x.png +0 -0
  8. package/assets/images/effect-onlight.png +0 -0
  9. package/assets/images/effect-onlight.svg +38 -0
  10. package/assets/images/effect-onlight@2x.png +0 -0
  11. package/assets/images/pages/exception-ondark.png +0 -0
  12. package/assets/images/pages/exception-onlight.png +0 -0
  13. package/assets/images/pages/login-ondark.png +0 -0
  14. package/assets/images/pages/login-onlight.png +0 -0
  15. package/esm2020/lib/api/models/builders/query-param.builder.mjs +8 -8
  16. package/esm2020/lib/api/models/filter-match-type.model.mjs +14 -12
  17. package/esm2020/lib/api/models/filter-param.model.mjs +6 -6
  18. package/esm2020/lib/api/models/mappers.mjs +12 -12
  19. package/esm2020/lib/api/models/query-mode.model.mjs +7 -7
  20. package/esm2020/lib/api/models/query-param.model.mjs +5 -5
  21. package/esm2020/lib/api/models/query-result.model.mjs +15 -15
  22. package/esm2020/lib/api/services/abstract-crud-api.service.mjs +1 -1
  23. package/esm2020/lib/api/utils/medius-rest.util.mjs +99 -47
  24. package/esm2020/lib/components/action/action.component.mjs +3 -3
  25. package/esm2020/lib/components/action/dialog/action-dialog.component.mjs +6 -4
  26. package/esm2020/lib/components/action/route/action-route.component.mjs +3 -3
  27. package/esm2020/lib/components/form/autocomplete/mng-autocomplete.component.mjs +114 -0
  28. package/esm2020/lib/components/form/dropdown/mng-dropdown.component.mjs +113 -0
  29. package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +7 -46
  30. package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +7 -39
  31. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +1 -1
  32. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +6 -6
  33. package/esm2020/lib/components/form/index.mjs +3 -1
  34. package/esm2020/lib/components/layout/breadcrumb.component.mjs +17 -0
  35. package/esm2020/lib/components/layout/footer.component.mjs +17 -0
  36. package/esm2020/lib/components/layout/index.mjs +7 -7
  37. package/esm2020/lib/components/layout/main-layout.component.mjs +33 -0
  38. package/esm2020/lib/components/layout/menu-item.component.mjs +173 -0
  39. package/esm2020/lib/components/layout/menu.component.mjs +20 -0
  40. package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +190 -0
  41. package/esm2020/lib/components/layout/topbar.component.mjs +40 -0
  42. package/esm2020/lib/components/tableview/index.mjs +3 -1
  43. package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +74 -0
  44. package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +25 -0
  45. package/esm2020/lib/components/tableview/table/table.component.mjs +175 -41
  46. package/esm2020/lib/components/tableview/tableview.component.mjs +5 -5
  47. package/esm2020/lib/mng-commons.module.mjs +70 -40
  48. package/esm2020/lib/models/config/mng-config.model.mjs +1 -1
  49. package/esm2020/lib/models/descriptors/action-descriptor.model.mjs +1 -1
  50. package/esm2020/lib/models/descriptors/editor-descriptor.model.mjs +17 -12
  51. package/esm2020/lib/models/descriptors/table-descriptor.model.mjs +291 -13
  52. package/esm2020/lib/models/descriptors/tableview-descriptor.model.mjs +12 -3
  53. package/esm2020/lib/models/events/table-event.model.mjs +1 -1
  54. package/esm2020/lib/models/interfaces/index.mjs +2 -1
  55. package/esm2020/lib/models/interfaces/lookup.model.mjs +2 -0
  56. package/esm2020/lib/models/providers/data-provider.model.mjs +3 -3
  57. package/esm2020/lib/models/router/index.mjs +2 -0
  58. package/esm2020/lib/models/router/router.model.mjs +2 -0
  59. package/esm2020/lib/models/user/index.mjs +2 -0
  60. package/esm2020/lib/models/user/user.model.mjs +2 -0
  61. package/esm2020/lib/pipes/boolean.pipe.mjs +22 -0
  62. package/esm2020/lib/pipes/index.mjs +2 -1
  63. package/esm2020/lib/services/action.service.mjs +8 -7
  64. package/esm2020/lib/services/commons.service.mjs +357 -0
  65. package/esm2020/lib/services/configuration.service.mjs +7 -7
  66. package/esm2020/lib/services/index.mjs +2 -4
  67. package/esm2020/lib/services/navigation.service.mjs +5 -6
  68. package/esm2020/lib/services/providers/commons-init.provider.mjs +4 -0
  69. package/esm2020/lib/services/providers/config-service.provider.mjs +5 -5
  70. package/esm2020/lib/services/providers/formly-config.provider.mjs +2 -2
  71. package/esm2020/lib/utils/editor-formly.util.mjs +4 -4
  72. package/esm2020/lib/utils/i18n.util.mjs +37 -3
  73. package/esm2020/lib/utils/model.util.mjs +20 -1
  74. package/esm2020/lib/utils/toast.util.mjs +14 -1
  75. package/esm2020/public-api.mjs +3 -1
  76. package/fesm2015/mediusinc-mng-commons.mjs +3404 -2526
  77. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  78. package/fesm2020/mediusinc-mng-commons.mjs +3328 -2472
  79. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  80. package/lib/api/models/builders/query-param.builder.d.ts +9 -9
  81. package/lib/api/models/filter-match-type.model.d.ts +7 -5
  82. package/lib/api/models/filter-param.model.d.ts +3 -3
  83. package/lib/api/models/query-mode.model.d.ts +1 -1
  84. package/lib/api/models/query-param.model.d.ts +5 -5
  85. package/lib/api/models/query-result.model.d.ts +5 -5
  86. package/lib/api/services/abstract-crud-api.service.d.ts +3 -3
  87. package/lib/api/utils/medius-rest.util.d.ts +9 -3
  88. package/lib/components/action/action.component.d.ts +2 -2
  89. package/lib/components/action/dialog/action-dialog.component.d.ts +3 -2
  90. package/lib/components/action/route/action-route.component.d.ts +2 -2
  91. package/lib/components/form/autocomplete/mng-autocomplete.component.d.ts +36 -0
  92. package/lib/components/form/dropdown/mng-dropdown.component.d.ts +34 -0
  93. package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +1 -11
  94. package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +0 -8
  95. package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +3 -3
  96. package/lib/components/form/index.d.ts +2 -0
  97. package/lib/components/layout/breadcrumb.component.d.ts +8 -0
  98. package/lib/components/layout/footer.component.d.ts +9 -0
  99. package/lib/components/layout/index.d.ts +6 -6
  100. package/lib/components/layout/main-layout.component.d.ts +13 -0
  101. package/lib/components/layout/menu-item.component.d.ts +29 -0
  102. package/lib/components/layout/menu.component.d.ts +10 -0
  103. package/lib/components/layout/services/main-layout.component.service.d.ts +65 -0
  104. package/lib/components/layout/topbar.component.d.ts +18 -0
  105. package/lib/components/tableview/index.d.ts +2 -0
  106. package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +22 -0
  107. package/lib/components/tableview/table/column-value/column-value.component.d.ts +12 -0
  108. package/lib/components/tableview/table/table.component.d.ts +42 -10
  109. package/lib/components/tableview/tableview.component.d.ts +3 -3
  110. package/lib/mng-commons.module.d.ts +66 -59
  111. package/lib/models/config/mng-config.model.d.ts +18 -1
  112. package/lib/models/descriptors/editor-descriptor.model.d.ts +9 -7
  113. package/lib/models/descriptors/table-descriptor.model.d.ts +133 -14
  114. package/lib/models/descriptors/tableview-descriptor.model.d.ts +6 -3
  115. package/lib/models/events/table-event.model.d.ts +4 -4
  116. package/lib/models/interfaces/index.d.ts +1 -0
  117. package/lib/models/interfaces/lookup.model.d.ts +17 -0
  118. package/lib/models/providers/data-provider.model.d.ts +10 -10
  119. package/lib/models/router/index.d.ts +1 -0
  120. package/lib/models/router/router.model.d.ts +9 -0
  121. package/lib/models/user/index.d.ts +1 -0
  122. package/lib/models/user/user.model.d.ts +8 -0
  123. package/lib/pipes/boolean.pipe.d.ts +7 -0
  124. package/lib/pipes/index.d.ts +1 -0
  125. package/lib/services/action.service.d.ts +3 -3
  126. package/lib/services/commons.service.d.ts +74 -0
  127. package/lib/services/configuration.service.d.ts +3 -3
  128. package/lib/services/index.d.ts +1 -3
  129. package/lib/services/navigation.service.d.ts +3 -3
  130. package/lib/services/providers/commons-init.provider.d.ts +2 -0
  131. package/lib/services/providers/config-service.provider.d.ts +3 -3
  132. package/lib/services/providers/formly-config.provider.d.ts +1 -1
  133. package/lib/utils/i18n.util.d.ts +3 -0
  134. package/lib/utils/model.util.d.ts +2 -0
  135. package/lib/utils/toast.util.d.ts +2 -1
  136. package/mediusinc-mng-commons-0.1.0.tgz +0 -0
  137. package/package.json +37 -36
  138. package/public-api.d.ts +2 -0
  139. package/scss/common/layout/_breadcrumb.scss +96 -0
  140. package/scss/common/layout/_config.scss +101 -0
  141. package/scss/common/layout/_dashboard.scss +16 -0
  142. package/scss/common/layout/_exception.scss +131 -0
  143. package/scss/common/layout/_footer.scss +29 -0
  144. package/scss/common/layout/_help.scss +157 -0
  145. package/scss/common/layout/_inlinemenu.scss +55 -0
  146. package/scss/common/layout/_invoice.scss +176 -0
  147. package/scss/common/layout/_landing.scss +639 -0
  148. package/scss/common/layout/_layout_dark.scss +23 -0
  149. package/scss/common/layout/_layout_light.scss +23 -0
  150. package/scss/common/layout/_loader.scss +18 -0
  151. package/scss/common/layout/_login.scss +106 -0
  152. package/scss/common/layout/_main.scss +45 -0
  153. package/scss/common/layout/_mixins.scss +214 -0
  154. package/scss/common/layout/_rightmenu.scss +125 -0
  155. package/scss/common/layout/_topbar.scss +189 -0
  156. package/scss/common/layout/_typography.scss +63 -0
  157. package/scss/common/layout/_utils.scss +96 -0
  158. package/scss/common/layout/_widgets.scss +391 -0
  159. package/scss/common/layout/menu/_menu.scss +7 -0
  160. package/scss/common/layout/menu/_menu_common.scss +183 -0
  161. package/scss/common/layout/menu/_menu_overlay.scss +52 -0
  162. package/scss/common/layout/menu/_menu_sidebar.scss +232 -0
  163. package/scss/common/layout/menu/_menu_slim.scss +138 -0
  164. package/scss/common/layout/menu/_menu_static.scss +70 -0
  165. package/scss/common/layout/menu/_menu_theme.scss +365 -0
  166. package/scss/common/theme/_theme_dark.scss +5 -0
  167. package/scss/common/theme/_theme_light.scss +5 -0
  168. package/scss/common/theme/designer/_colors.scss +18 -0
  169. package/scss/common/theme/designer/_common.scss +40 -0
  170. package/scss/common/theme/designer/_components.scss +101 -0
  171. package/scss/common/theme/designer/_mixins.scss +174 -0
  172. package/scss/common/theme/designer/components/button/_button.scss +560 -0
  173. package/scss/common/theme/designer/components/button/_speeddial.scss +79 -0
  174. package/scss/common/theme/designer/components/button/_splitbutton.scss +1 -0
  175. package/scss/common/theme/designer/components/data/_carousel.scss +37 -0
  176. package/scss/common/theme/designer/components/data/_datatable.scss +266 -0
  177. package/scss/common/theme/designer/components/data/_dataview.scss +55 -0
  178. package/scss/common/theme/designer/components/data/_filter.scss +138 -0
  179. package/scss/common/theme/designer/components/data/_fullcalendar.scss +324 -0
  180. package/scss/common/theme/designer/components/data/_orderlist.scss +91 -0
  181. package/scss/common/theme/designer/components/data/_organizationchart.scss +50 -0
  182. package/scss/common/theme/designer/components/data/_paginator.scss +83 -0
  183. package/scss/common/theme/designer/components/data/_picklist.scss +91 -0
  184. package/scss/common/theme/designer/components/data/_timeline.scss +38 -0
  185. package/scss/common/theme/designer/components/data/_tree.scss +144 -0
  186. package/scss/common/theme/designer/components/data/_treetable.scss +242 -0
  187. package/scss/common/theme/designer/components/data/_virtualscroller.scss +28 -0
  188. package/scss/common/theme/designer/components/file/_fileupload.scss +58 -0
  189. package/scss/common/theme/designer/components/input/_autocomplete.scss +103 -0
  190. package/scss/common/theme/designer/components/input/_calendar.scss +212 -0
  191. package/scss/common/theme/designer/components/input/_cascadeselect.scss +98 -0
  192. package/scss/common/theme/designer/components/input/_checkbox.scss +85 -0
  193. package/scss/common/theme/designer/components/input/_chips.scss +41 -0
  194. package/scss/common/theme/designer/components/input/_colorpicker.scss +19 -0
  195. package/scss/common/theme/designer/components/input/_dropdown.scss +136 -0
  196. package/scss/common/theme/designer/components/input/_editor.scss +122 -0
  197. package/scss/common/theme/designer/components/input/_inputgroup.scss +69 -0
  198. package/scss/common/theme/designer/components/input/_inputmask.scss +3 -0
  199. package/scss/common/theme/designer/components/input/_inputnumber.scss +3 -0
  200. package/scss/common/theme/designer/components/input/_inputswitch.scss +58 -0
  201. package/scss/common/theme/designer/components/input/_inputtext.scss +97 -0
  202. package/scss/common/theme/designer/components/input/_listbox.scss +82 -0
  203. package/scss/common/theme/designer/components/input/_multiselect.scss +164 -0
  204. package/scss/common/theme/designer/components/input/_password.scss +33 -0
  205. package/scss/common/theme/designer/components/input/_radiobutton.scss +78 -0
  206. package/scss/common/theme/designer/components/input/_rating.scss +48 -0
  207. package/scss/common/theme/designer/components/input/_selectbutton.scss +50 -0
  208. package/scss/common/theme/designer/components/input/_slider.scss +69 -0
  209. package/scss/common/theme/designer/components/input/_togglebutton.scss +48 -0
  210. package/scss/common/theme/designer/components/input/_treeselect.scss +89 -0
  211. package/scss/common/theme/designer/components/menu/_breadcrumb.scss +42 -0
  212. package/scss/common/theme/designer/components/menu/_contextmenu.scss +50 -0
  213. package/scss/common/theme/designer/components/menu/_dock.scss +51 -0
  214. package/scss/common/theme/designer/components/menu/_megamenu.scss +102 -0
  215. package/scss/common/theme/designer/components/menu/_menu.scss +41 -0
  216. package/scss/common/theme/designer/components/menu/_menubar.scss +179 -0
  217. package/scss/common/theme/designer/components/menu/_panelmenu.scss +137 -0
  218. package/scss/common/theme/designer/components/menu/_slidemenu.scss +55 -0
  219. package/scss/common/theme/designer/components/menu/_steps.scss +55 -0
  220. package/scss/common/theme/designer/components/menu/_tabmenu.scss +49 -0
  221. package/scss/common/theme/designer/components/menu/_tieredmenu.scss +56 -0
  222. package/scss/common/theme/designer/components/messages/_inlinemessage.scss +64 -0
  223. package/scss/common/theme/designer/components/messages/_message.scss +102 -0
  224. package/scss/common/theme/designer/components/messages/_toast.scss +95 -0
  225. package/scss/common/theme/designer/components/misc/_avatar.scss +30 -0
  226. package/scss/common/theme/designer/components/misc/_badge.scss +48 -0
  227. package/scss/common/theme/designer/components/misc/_blockui.scss +3 -0
  228. package/scss/common/theme/designer/components/misc/_chip.scss +36 -0
  229. package/scss/common/theme/designer/components/misc/_inplace.scss +17 -0
  230. package/scss/common/theme/designer/components/misc/_progressbar.scss +17 -0
  231. package/scss/common/theme/designer/components/misc/_scrolltop.scss +20 -0
  232. package/scss/common/theme/designer/components/misc/_skeleton.scss +8 -0
  233. package/scss/common/theme/designer/components/misc/_tag.scss +33 -0
  234. package/scss/common/theme/designer/components/misc/_terminal.scss +11 -0
  235. package/scss/common/theme/designer/components/multimedia/_galleria.scss +141 -0
  236. package/scss/common/theme/designer/components/overlay/_confirmpopup.scss +67 -0
  237. package/scss/common/theme/designer/components/overlay/_dialog.scss +63 -0
  238. package/scss/common/theme/designer/components/overlay/_overlaypanel.scss +62 -0
  239. package/scss/common/theme/designer/components/overlay/_sidebar.scss +27 -0
  240. package/scss/common/theme/designer/components/overlay/_tooltip.scss +33 -0
  241. package/scss/common/theme/designer/components/panel/_accordion.scss +119 -0
  242. package/scss/common/theme/designer/components/panel/_card.scss +30 -0
  243. package/scss/common/theme/designer/components/panel/_divider.scss +31 -0
  244. package/scss/common/theme/designer/components/panel/_fieldset.scss +47 -0
  245. package/scss/common/theme/designer/components/panel/_panel.scss +42 -0
  246. package/scss/common/theme/designer/components/panel/_scrollpanel.scss +6 -0
  247. package/scss/common/theme/designer/components/panel/_splitter.scss +19 -0
  248. package/scss/common/theme/designer/components/panel/_tabview.scss +66 -0
  249. package/scss/common/theme/designer/components/panel/_toolbar.scss +10 -0
  250. package/scss/common/theme/extensions/_button.scss +99 -0
  251. package/scss/common/theme/extensions/_calendar.scss +18 -0
  252. package/scss/common/theme/extensions/_card.scss +6 -0
  253. package/scss/common/theme/extensions/_carousel.scss +13 -0
  254. package/scss/common/theme/extensions/_checkbox.scss +10 -0
  255. package/scss/common/theme/extensions/_contextmenu.scss +16 -0
  256. package/scss/common/theme/extensions/_datatable.scss +83 -0
  257. package/scss/common/theme/extensions/_dialog.scss +14 -0
  258. package/scss/common/theme/extensions/_fieldset.scss +6 -0
  259. package/scss/common/theme/extensions/_galleria.scss +25 -0
  260. package/scss/common/theme/extensions/_megamenu.scss +18 -0
  261. package/scss/common/theme/extensions/_menu.scss +14 -0
  262. package/scss/common/theme/extensions/_menubar.scss +14 -0
  263. package/scss/common/theme/extensions/_orderlist.scss +38 -0
  264. package/scss/common/theme/extensions/_paginator.scss +19 -0
  265. package/scss/common/theme/extensions/_panelmenu.scss +20 -0
  266. package/scss/common/theme/extensions/_password.scss +5 -0
  267. package/scss/common/theme/extensions/_picklist.scss +38 -0
  268. package/scss/common/theme/extensions/_radiobutton.scss +8 -0
  269. package/scss/common/theme/extensions/_sidebar.scss +19 -0
  270. package/scss/common/theme/extensions/_slidemenu.scss +10 -0
  271. package/scss/common/theme/extensions/_slider.scss +6 -0
  272. package/scss/common/theme/extensions/_steps.scss +50 -0
  273. package/scss/common/theme/extensions/_tieredmenu.scss +14 -0
  274. package/scss/common/theme/extensions/_toast.scss +6 -0
  275. package/scss/common/theme/extensions/_tree.scss +36 -0
  276. package/scss/common/theme/extensions/_treetable.scss +35 -0
  277. package/scss/common/theme/extensions/_vendor_extensions.scss +27 -0
  278. package/scss/common/variables/layout/_common.scss +10 -0
  279. package/scss/common/variables/layout/_layout_dark.scss +70 -0
  280. package/scss/common/variables/layout/_layout_light.scss +70 -0
  281. package/scss/common/variables/theme/_theme_dark.scss +897 -0
  282. package/scss/common/variables/theme/_theme_light.scss +885 -0
  283. package/scss/layout/default/_mng-variables-layout-dark.scss +2 -0
  284. package/scss/layout/default/_mng-variables-layout-light.scss +2 -0
  285. package/scss/layout/default/layout-dark.scss +2 -0
  286. package/scss/layout/default/layout-light.scss +2 -0
  287. package/scss/mng-commons-dark.scss +10 -0
  288. package/scss/mng-commons-light.scss +13 -0
  289. package/scss/mng-overrides/_layout_action.scss +3 -0
  290. package/scss/mng-overrides/_layout_dialog.scss +34 -0
  291. package/scss/mng-overrides/_layout_forms.scss +31 -0
  292. package/scss/mng-overrides/_layout_radio.scss +3 -0
  293. package/scss/mng-overrides/_layout_styles.scss +4 -0
  294. package/scss/mng-overrides/_theme_datatable.scss +9 -0
  295. package/scss/mng-overrides/_theme_dialog.scss +9 -0
  296. package/scss/mng-overrides/_theme_dropdown.scss +6 -0
  297. package/scss/mng-overrides/_theme_styles.scss +9 -0
  298. package/scss/mng-overrides/_theme_tableview.scss +94 -0
  299. package/scss/theme/default/_mng-variables-theme-dark.scss +8 -0
  300. package/scss/theme/default/_mng-variables-theme-light.scss +8 -0
  301. package/scss/theme/default/theme-dark.scss +2 -0
  302. package/scss/theme/default/theme-light.scss +2 -0
  303. package/esm2020/lib/components/layout/app.breadcrumb.component.mjs +0 -26
  304. package/esm2020/lib/components/layout/app.footer.component.mjs +0 -35
  305. package/esm2020/lib/components/layout/app.main.component.mjs +0 -25
  306. package/esm2020/lib/components/layout/app.main.component.service.mjs +0 -133
  307. package/esm2020/lib/components/layout/app.menu.component.mjs +0 -24
  308. package/esm2020/lib/components/layout/app.menuitem.component.mjs +0 -241
  309. package/esm2020/lib/components/layout/app.topbar.component.mjs +0 -135
  310. package/esm2020/lib/services/breadcrumb.service.mjs +0 -74
  311. package/esm2020/lib/services/menu.service.mjs +0 -37
  312. package/esm2020/lib/services/settings.service.mjs +0 -81
  313. package/lib/components/layout/app.breadcrumb.component.d.ts +0 -14
  314. package/lib/components/layout/app.footer.component.d.ts +0 -8
  315. package/lib/components/layout/app.main.component.d.ts +0 -12
  316. package/lib/components/layout/app.main.component.service.d.ts +0 -40
  317. package/lib/components/layout/app.menu.component.d.ts +0 -15
  318. package/lib/components/layout/app.menuitem.component.d.ts +0 -31
  319. package/lib/components/layout/app.topbar.component.d.ts +0 -15
  320. package/lib/services/breadcrumb.service.d.ts +0 -15
  321. package/lib/services/menu.service.d.ts +0 -16
  322. package/lib/services/settings.service.d.ts +0 -30
  323. package/mediusinc-mng-commons-0.0.1-rc.4.tgz +0 -0
@@ -0,0 +1,174 @@
1
+ @mixin icon-override($icon) {
2
+ &:before {
3
+ content: $icon;
4
+ }
5
+ }
6
+
7
+ @mixin focused() {
8
+ outline: $focusOutline;
9
+ outline-offset: $focusOutlineOffset;
10
+ box-shadow: $focusShadow;
11
+ }
12
+
13
+ @mixin focused-input() {
14
+ @include focused();
15
+ border-color: $inputFocusBorderColor;
16
+ }
17
+
18
+ @mixin focused-listitem() {
19
+ outline: $focusOutline;
20
+ outline-offset: $focusOutlineOffset;
21
+ box-shadow: $inputListItemFocusShadow;
22
+ }
23
+
24
+ @mixin invalid-input() {
25
+ border-color: $inputErrorBorderColor;
26
+ }
27
+
28
+ @mixin menuitem-link {
29
+ padding: $menuitemPadding;
30
+ color: $menuitemTextColor;
31
+ border-radius: $menuitemBorderRadius;
32
+ transition: $listItemTransition;
33
+ user-select: none;
34
+
35
+ .p-menuitem-text {
36
+ color: $menuitemTextColor;
37
+ }
38
+
39
+ .p-menuitem-icon {
40
+ color: $menuitemIconColor;
41
+ margin-right: $inlineSpacing;
42
+ }
43
+
44
+ .p-submenu-icon {
45
+ color: $menuitemIconColor;
46
+ }
47
+
48
+ &:not(.p-disabled):hover {
49
+ background: $menuitemHoverBg;
50
+
51
+ .p-menuitem-text {
52
+ color: $menuitemTextHoverColor;
53
+ }
54
+
55
+ .p-menuitem-icon {
56
+ color: $menuitemIconHoverColor;
57
+ }
58
+
59
+ .p-submenu-icon {
60
+ color: $menuitemIconHoverColor;
61
+ }
62
+ }
63
+
64
+ &:focus {
65
+ @include focused-listitem();
66
+ }
67
+ }
68
+
69
+ @mixin horizontal-rootmenuitem-link {
70
+ padding: $horizontalMenuRootMenuitemPadding;
71
+ color: $horizontalMenuRootMenuitemTextColor;
72
+ border-radius: $horizontalMenuRootMenuitemBorderRadius;
73
+ transition: $listItemTransition;
74
+ user-select: none;
75
+
76
+ .p-menuitem-text {
77
+ color: $horizontalMenuRootMenuitemTextColor;
78
+ }
79
+
80
+ .p-menuitem-icon {
81
+ color: $horizontalMenuRootMenuitemIconColor;
82
+ margin-right: $inlineSpacing;
83
+ }
84
+
85
+ .p-submenu-icon {
86
+ color: $horizontalMenuRootMenuitemIconColor;
87
+ margin-left: $inlineSpacing;
88
+ }
89
+
90
+ &:not(.p-disabled):hover {
91
+ background: $horizontalMenuRootMenuitemHoverBg;
92
+
93
+ .p-menuitem-text {
94
+ color: $horizontalMenuRootMenuitemTextHoverColor;
95
+ }
96
+
97
+ .p-menuitem-icon {
98
+ color: $horizontalMenuRootMenuitemIconHoverColor;
99
+ }
100
+
101
+ .p-submenu-icon {
102
+ color: $horizontalMenuRootMenuitemIconHoverColor;
103
+ }
104
+ }
105
+
106
+ &:focus {
107
+ @include focused-listitem();
108
+ }
109
+ }
110
+
111
+ @mixin placeholder {
112
+ ::-webkit-input-placeholder {
113
+ @content
114
+ }
115
+ :-moz-placeholder {
116
+ @content
117
+ }
118
+ ::-moz-placeholder {
119
+ @content
120
+ }
121
+ :-ms-input-placeholder {
122
+ @content
123
+ }
124
+ }
125
+
126
+ @mixin scaledPadding($val, $scale) {
127
+ padding: nth($val, 1) * $scale nth($val, 2) * $scale;
128
+ }
129
+
130
+ @mixin scaledFontSize($val, $scale) {
131
+ font-size: $val * $scale;
132
+ }
133
+
134
+ @mixin nested-submenu-indents($val, $index, $length) {
135
+ ul {
136
+ li {
137
+ a {
138
+ padding-left: $val * ($index + 1);
139
+ }
140
+
141
+ @if $index < $length {
142
+ @include nested-submenu-indents($val, $index + 2, $length);
143
+ }
144
+ }
145
+ }
146
+ }
147
+
148
+ @mixin action-icon($enabled: true) {
149
+ width: $actionIconWidth;
150
+ height: $actionIconHeight;
151
+ color: $actionIconColor;
152
+ border: $actionIconBorder;
153
+ background: $actionIconBg;
154
+ border-radius: $actionIconBorderRadius;
155
+ transition: $actionIconTransition;
156
+
157
+ &:enabled:hover {
158
+ color: $actionIconHoverColor;
159
+ border-color: $actionIconHoverBorderColor;
160
+ background: $actionIconHoverBg;
161
+ }
162
+
163
+ &:focus {
164
+ @include focused();
165
+ }
166
+ }
167
+
168
+ @function tint($color, $percentage) {
169
+ @return mix(#fff, $color, $percentage);
170
+ }
171
+
172
+ @function shade($color, $percentage) {
173
+ @return mix(#000, $color, $percentage);
174
+ }
@@ -0,0 +1,560 @@
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
+ &:enabled:hover {
11
+ background: $buttonHoverBg;
12
+ color: $buttonTextHoverColor;
13
+ border-color: $buttonHoverBorderColor;
14
+ }
15
+
16
+ &:enabled: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
+ &:enabled:hover {
28
+ background: rgba($buttonBg, $textButtonHoverBgOpacity);
29
+ color: $buttonBg;
30
+ border: $outlinedButtonBorder;
31
+ }
32
+
33
+ &:enabled: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
+ &:enabled:hover {
44
+ background: $plainButtonHoverBgColor;
45
+ color: $plainButtonTextColor;
46
+ }
47
+
48
+ &:enabled: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
+ &:enabled:hover {
61
+ background: rgba($buttonBg, $textButtonHoverBgOpacity);
62
+ color: $buttonBg;
63
+ border-color: transparent;
64
+ }
65
+
66
+ &:enabled:active {
67
+ background: rgba($buttonBg, $textButtonActiveBgOpacity);
68
+ color: $buttonBg;
69
+ border-color: transparent;
70
+ }
71
+
72
+ &.p-button-plain {
73
+ color: $plainButtonTextColor;
74
+
75
+ &:enabled:hover {
76
+ background: $plainButtonHoverBgColor;
77
+ color: $plainButtonTextColor;
78
+ }
79
+
80
+ &:enabled:active {
81
+ background: $plainButtonActiveBgColor;
82
+ color: $plainButtonTextColor;
83
+ }
84
+ }
85
+ }
86
+
87
+ &:focus {
88
+ @include focused();
89
+ }
90
+
91
+ .p-button-icon-left {
92
+ margin-right: $inlineSpacing;
93
+ }
94
+
95
+ .p-button-icon-right {
96
+ margin-left: $inlineSpacing;
97
+ }
98
+
99
+ .p-button-icon-bottom {
100
+ margin-top: $inlineSpacing;
101
+ }
102
+
103
+ .p-button-icon-top {
104
+ margin-bottom: $inlineSpacing;
105
+ }
106
+
107
+ .p-badge {
108
+ margin-left: $inlineSpacing;
109
+ min-width: $fontSize;
110
+ height: $fontSize;
111
+ line-height: $fontSize;
112
+ color: $buttonBg;
113
+ background-color: $buttonTextColor;
114
+ }
115
+
116
+ &.p-button-raised {
117
+ box-shadow: $raisedButtonShadow;
118
+ }
119
+
120
+ &.p-button-rounded {
121
+ border-radius: $roundedButtonBorderRadius;
122
+ }
123
+
124
+ &.p-button-icon-only {
125
+ width: $buttonIconOnlyWidth;
126
+ padding: $buttonIconOnlyPadding;
127
+
128
+ .p-button-icon-left,
129
+ .p-button-icon-right {
130
+ margin: 0;
131
+ }
132
+
133
+ &.p-button-rounded {
134
+ border-radius: 50%;
135
+ height: $buttonIconOnlyWidth;
136
+ }
137
+ }
138
+
139
+ &.p-button-sm {
140
+ @include scaledFontSize($fontSize, $scaleSM);
141
+ @include scaledPadding($buttonPadding, $scaleSM);
142
+
143
+ .p-button-icon {
144
+ @include scaledFontSize($primeIconFontSize, $scaleSM);
145
+ }
146
+ }
147
+
148
+ &.p-button-lg {
149
+ @include scaledFontSize($fontSize, $scaleLG);
150
+ @include scaledPadding($buttonPadding, $scaleLG);
151
+
152
+ .p-button-icon {
153
+ @include scaledFontSize($primeIconFontSize, $scaleLG);
154
+ }
155
+ }
156
+
157
+ &.p-button-loading-label-only {
158
+ .p-button-label {
159
+ margin-left: $inlineSpacing;
160
+ }
161
+
162
+ .p-button-loading-icon {
163
+ margin-right: 0;
164
+ }
165
+ }
166
+ }
167
+
168
+ .p-fluid {
169
+ .p-button {
170
+ width: 100%;
171
+ }
172
+
173
+ .p-button-icon-only {
174
+ width: $buttonIconOnlyWidth;
175
+ }
176
+
177
+ .p-buttonset {
178
+ display: flex;
179
+
180
+ .p-button {
181
+ flex: 1;
182
+ }
183
+ }
184
+ }
185
+
186
+ .p-button.p-button-secondary, .p-buttonset.p-button-secondary > .p-button, .p-splitbutton.p-button-secondary > .p-button {
187
+ color: $secondaryButtonTextColor;
188
+ background: $secondaryButtonBg;
189
+ border: $secondaryButtonBorder;
190
+
191
+ &:enabled:hover {
192
+ background: $secondaryButtonHoverBg;
193
+ color: $secondaryButtonTextHoverColor;
194
+ border-color: $secondaryButtonHoverBorderColor;
195
+ }
196
+
197
+ &:enabled:focus {
198
+ box-shadow: $secondaryButtonFocusShadow;
199
+ }
200
+
201
+ &:enabled:active {
202
+ background: $secondaryButtonActiveBg;
203
+ color: $secondaryButtonTextActiveColor;
204
+ border-color: $secondaryButtonActiveBorderColor;
205
+ }
206
+
207
+ &.p-button-outlined {
208
+ background-color: transparent;
209
+ color: $secondaryButtonBg;
210
+ border: $outlinedButtonBorder;
211
+
212
+ &:enabled:hover {
213
+ background: rgba($secondaryButtonBg, $textButtonHoverBgOpacity);
214
+ color: $secondaryButtonBg;
215
+ border: $outlinedButtonBorder;
216
+ }
217
+
218
+ &:enabled:active {
219
+ background: rgba($secondaryButtonBg, $textButtonActiveBgOpacity);
220
+ color: $secondaryButtonBg;
221
+ border: $outlinedButtonBorder;
222
+ }
223
+ }
224
+
225
+ &.p-button-text {
226
+ background-color: transparent;
227
+ color: $secondaryButtonBg;
228
+ border-color: transparent;
229
+
230
+ &:enabled:hover {
231
+ background: rgba($secondaryButtonBg, $textButtonHoverBgOpacity);
232
+ border-color: transparent;
233
+ color: $secondaryButtonBg;
234
+ }
235
+
236
+ &:enabled:active {
237
+ background: rgba($secondaryButtonBg, $textButtonActiveBgOpacity);
238
+ border-color: transparent;
239
+ color: $secondaryButtonBg;
240
+ }
241
+ }
242
+ }
243
+
244
+ .p-button.p-button-info, .p-buttonset.p-button-info > .p-button, .p-splitbutton.p-button-info > .p-button {
245
+ color: $infoButtonTextColor;
246
+ background: $infoButtonBg;
247
+ border: $infoButtonBorder;
248
+
249
+ &:enabled:hover {
250
+ background: $infoButtonHoverBg;
251
+ color: $infoButtonTextHoverColor;
252
+ border-color: $infoButtonHoverBorderColor;
253
+ }
254
+
255
+ &:enabled:focus {
256
+ box-shadow: $infoButtonFocusShadow;
257
+ }
258
+
259
+ &:enabled:active {
260
+ background: $infoButtonActiveBg;
261
+ color: $infoButtonTextActiveColor;
262
+ border-color: $infoButtonActiveBorderColor;
263
+ }
264
+
265
+ &.p-button-outlined {
266
+ background-color: transparent;
267
+ color: $infoButtonBg;
268
+ border: $outlinedButtonBorder;
269
+
270
+ &:enabled:hover {
271
+ background: rgba($infoButtonBg, $textButtonHoverBgOpacity);
272
+ color: $infoButtonBg;
273
+ border: $outlinedButtonBorder;
274
+ }
275
+
276
+ &:enabled:active {
277
+ background: rgba($infoButtonBg, $textButtonActiveBgOpacity);
278
+ color: $infoButtonBg;
279
+ border: $outlinedButtonBorder;
280
+ }
281
+ }
282
+
283
+ &.p-button-text {
284
+ background-color: transparent;
285
+ color: $infoButtonBg;
286
+ border-color: transparent;
287
+
288
+ &:enabled:hover {
289
+ background: rgba($infoButtonBg, $textButtonHoverBgOpacity);
290
+ border-color: transparent;
291
+ color: $infoButtonBg;
292
+ }
293
+
294
+ &:enabled:active {
295
+ background: rgba($infoButtonBg, $textButtonActiveBgOpacity);
296
+ border-color: transparent;
297
+ color: $infoButtonBg;
298
+ }
299
+ }
300
+ }
301
+
302
+ .p-button.p-button-success, .p-buttonset.p-button-success > .p-button, .p-splitbutton.p-button-success > .p-button {
303
+ color: $successButtonTextColor;
304
+ background: $successButtonBg;
305
+ border: $successButtonBorder;
306
+
307
+ &:enabled:hover {
308
+ background: $successButtonHoverBg;
309
+ color: $successButtonTextHoverColor;
310
+ border-color: $successButtonHoverBorderColor;
311
+ }
312
+
313
+ &:enabled:focus {
314
+ box-shadow: $successButtonFocusShadow;
315
+ }
316
+
317
+ &:enabled:active {
318
+ background: $successButtonActiveBg;
319
+ color: $successButtonTextActiveColor;
320
+ border-color: $successButtonActiveBorderColor;
321
+ }
322
+
323
+ &.p-button-outlined {
324
+ background-color: transparent;
325
+ color: $successButtonBg;
326
+ border: $outlinedButtonBorder;
327
+
328
+ &:enabled:hover {
329
+ background: rgba($successButtonBg, $textButtonHoverBgOpacity);
330
+ color: $successButtonBg;
331
+ border: $outlinedButtonBorder;
332
+ }
333
+
334
+ &:enabled:active {
335
+ background: rgba($successButtonBg, $textButtonActiveBgOpacity);
336
+ color: $successButtonBg;
337
+ border: $outlinedButtonBorder;
338
+ }
339
+ }
340
+
341
+ &.p-button-text {
342
+ background-color: transparent;
343
+ color: $successButtonBg;
344
+ border-color: transparent;
345
+
346
+ &:enabled:hover {
347
+ background: rgba($successButtonBg, $textButtonHoverBgOpacity);
348
+ border-color: transparent;
349
+ color: $successButtonBg;
350
+ }
351
+
352
+ &:enabled:active {
353
+ background: rgba($successButtonBg, $textButtonActiveBgOpacity);
354
+ border-color: transparent;
355
+ color: $successButtonBg;
356
+ }
357
+ }
358
+ }
359
+
360
+ .p-button.p-button-warning, .p-buttonset.p-button-warning > .p-button, .p-splitbutton.p-button-warning > .p-button {
361
+ color: $warningButtonTextColor;
362
+ background: $warningButtonBg;
363
+ border: $warningButtonBorder;
364
+
365
+ &:enabled:hover {
366
+ background: $warningButtonHoverBg;
367
+ color: $warningButtonTextHoverColor;
368
+ border-color: $warningButtonHoverBorderColor;
369
+ }
370
+
371
+ &:enabled:focus {
372
+ box-shadow: $warningButtonFocusShadow;
373
+ }
374
+
375
+ &:enabled:active {
376
+ background: $warningButtonActiveBg;
377
+ color: $warningButtonTextActiveColor;
378
+ border-color: $warningButtonActiveBorderColor;
379
+ }
380
+
381
+ &.p-button-outlined {
382
+ background-color: transparent;
383
+ color: $warningButtonBg;
384
+ border: $outlinedButtonBorder;
385
+
386
+ &:enabled:hover {
387
+ background: rgba($warningButtonBg, $textButtonHoverBgOpacity);
388
+ color: $warningButtonBg;
389
+ border: $outlinedButtonBorder;
390
+ }
391
+
392
+ &:enabled:active {
393
+ background: rgba($warningButtonBg, $textButtonActiveBgOpacity);
394
+ color: $warningButtonBg;
395
+ border: $outlinedButtonBorder;
396
+ }
397
+ }
398
+
399
+ &.p-button-text {
400
+ background-color: transparent;
401
+ color: $warningButtonBg;
402
+ border-color: transparent;
403
+
404
+ &:enabled:hover {
405
+ background: rgba($warningButtonBg, $textButtonHoverBgOpacity);
406
+ border-color: transparent;
407
+ color: $warningButtonBg;
408
+ }
409
+
410
+ &:enabled:active {
411
+ background: rgba($warningButtonBg, $textButtonActiveBgOpacity);
412
+ border-color: transparent;
413
+ color: $warningButtonBg;
414
+ }
415
+ }
416
+ }
417
+
418
+ .p-button.p-button-help, .p-buttonset.p-button-help > .p-button, .p-splitbutton.p-button-help > .p-button {
419
+ color: $helpButtonTextColor;
420
+ background: $helpButtonBg;
421
+ border: $helpButtonBorder;
422
+
423
+ &:enabled:hover {
424
+ background: $helpButtonHoverBg;
425
+ color: $helpButtonTextHoverColor;
426
+ border-color: $helpButtonHoverBorderColor;
427
+ }
428
+
429
+ &:enabled:focus {
430
+ box-shadow: $helpButtonFocusShadow;
431
+ }
432
+
433
+ &:enabled:active {
434
+ background: $helpButtonActiveBg;
435
+ color: $helpButtonTextActiveColor;
436
+ border-color: $helpButtonActiveBorderColor;
437
+ }
438
+
439
+ &.p-button-outlined {
440
+ background-color: transparent;
441
+ color: $helpButtonBg;
442
+ border: $outlinedButtonBorder;
443
+
444
+ &:enabled:hover {
445
+ background: rgba($helpButtonBg, $textButtonHoverBgOpacity);
446
+ color: $helpButtonBg;
447
+ border: $outlinedButtonBorder;
448
+ }
449
+
450
+ &:enabled:active {
451
+ background: rgba($helpButtonBg, $textButtonActiveBgOpacity);
452
+ color: $helpButtonBg;
453
+ border: $outlinedButtonBorder;
454
+ }
455
+ }
456
+
457
+ &.p-button-text {
458
+ background-color: transparent;
459
+ color: $helpButtonBg;
460
+ border-color: transparent;
461
+
462
+ &:enabled:hover {
463
+ background: rgba($helpButtonBg, $textButtonHoverBgOpacity);
464
+ border-color: transparent;
465
+ color: $helpButtonBg;
466
+ }
467
+
468
+ &:enabled:active {
469
+ background: rgba($helpButtonBg, $textButtonActiveBgOpacity);
470
+ border-color: transparent;
471
+ color: $helpButtonBg;
472
+ }
473
+ }
474
+ }
475
+
476
+ .p-button.p-button-danger, .p-buttonset.p-button-danger > .p-button, .p-splitbutton.p-button-danger > .p-button {
477
+ color: $dangerButtonTextColor;
478
+ background: $dangerButtonBg;
479
+ border: $dangerButtonBorder;
480
+
481
+ &:enabled:hover {
482
+ background: $dangerButtonHoverBg;
483
+ color: $dangerButtonTextHoverColor;
484
+ border-color: $dangerButtonHoverBorderColor;
485
+ }
486
+
487
+ &:enabled:focus {
488
+ box-shadow: $dangerButtonFocusShadow;
489
+ }
490
+
491
+ &:enabled:active {
492
+ background: $dangerButtonActiveBg;
493
+ color: $dangerButtonTextActiveColor;
494
+ border-color: $dangerButtonActiveBorderColor;
495
+ }
496
+
497
+ &.p-button-outlined {
498
+ background-color: transparent;
499
+ color: $dangerButtonBg;
500
+ border: $outlinedButtonBorder;
501
+
502
+ &:enabled:hover {
503
+ background: rgba($dangerButtonBg, $textButtonHoverBgOpacity);
504
+ color: $dangerButtonBg;
505
+ border: $outlinedButtonBorder;
506
+ }
507
+
508
+ &:enabled:active {
509
+ background: rgba($dangerButtonBg, $textButtonActiveBgOpacity);
510
+ color: $dangerButtonBg;
511
+ border: $outlinedButtonBorder;
512
+ }
513
+ }
514
+
515
+ &.p-button-text {
516
+ background-color: transparent;
517
+ color: $dangerButtonBg;
518
+ border-color: transparent;
519
+
520
+ &:enabled:hover {
521
+ background: rgba($dangerButtonBg, $textButtonHoverBgOpacity);
522
+ border-color: transparent;
523
+ color: $dangerButtonBg;
524
+ }
525
+
526
+ &:enabled:active {
527
+ background: rgba($dangerButtonBg, $textButtonActiveBgOpacity);
528
+ border-color: transparent;
529
+ color: $dangerButtonBg;
530
+ }
531
+ }
532
+ }
533
+
534
+ .p-button.p-button-link {
535
+ color: $linkButtonColor;
536
+ background: transparent;
537
+ border: transparent;
538
+
539
+ &:enabled:hover {
540
+ background: transparent;
541
+ color: $linkButtonHoverColor;
542
+ border-color: transparent;
543
+
544
+ .p-button-label {
545
+ text-decoration: $linkButtonTextHoverDecoration;
546
+ }
547
+ }
548
+
549
+ &:enabled:focus {
550
+ background: transparent;
551
+ box-shadow: $linkButtonFocusShadow;
552
+ border-color: transparent;
553
+ }
554
+
555
+ &:enabled:active {
556
+ background: transparent;
557
+ color: $linkButtonColor;
558
+ border-color: transparent;
559
+ }
560
+ }