@pepperi-addons/ngx-lib 0.2.59-query-builder.7 → 0.2.61

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 (521) hide show
  1. package/README.md +39 -39
  2. package/address/address.component.theme.scss +8 -8
  3. package/address/pepperi-addons-ngx-lib-address.metadata.json +1 -1
  4. package/attachment/attachment.component.d.ts +0 -1
  5. package/attachment/attachment.component.theme.scss +3 -3
  6. package/attachment/pepperi-addons-ngx-lib-attachment.metadata.json +1 -1
  7. package/bread-crumbs/bread-crumbs.component.theme.scss +8 -8
  8. package/bread-crumbs/pepperi-addons-ngx-lib-bread-crumbs.metadata.json +1 -1
  9. package/bundles/pepperi-addons-ngx-lib-address.umd.js +1 -1
  10. package/bundles/pepperi-addons-ngx-lib-address.umd.js.map +1 -1
  11. package/bundles/pepperi-addons-ngx-lib-attachment.umd.js +1 -6
  12. package/bundles/pepperi-addons-ngx-lib-attachment.umd.js.map +1 -1
  13. package/bundles/pepperi-addons-ngx-lib-bread-crumbs.umd.js +1 -1
  14. package/bundles/pepperi-addons-ngx-lib-bread-crumbs.umd.js.map +1 -1
  15. package/bundles/pepperi-addons-ngx-lib-button.umd.js +1 -1
  16. package/bundles/pepperi-addons-ngx-lib-button.umd.js.map +1 -1
  17. package/bundles/pepperi-addons-ngx-lib-carousel.umd.js.map +1 -1
  18. package/bundles/pepperi-addons-ngx-lib-checkbox.umd.js +1 -4
  19. package/bundles/pepperi-addons-ngx-lib-checkbox.umd.js.map +1 -1
  20. package/bundles/pepperi-addons-ngx-lib-color.umd.js +2 -7
  21. package/bundles/pepperi-addons-ngx-lib-color.umd.js.map +1 -1
  22. package/bundles/pepperi-addons-ngx-lib-date.umd.js +3 -5
  23. package/bundles/pepperi-addons-ngx-lib-date.umd.js.map +1 -1
  24. package/bundles/pepperi-addons-ngx-lib-dialog.umd.js +2 -2
  25. package/bundles/pepperi-addons-ngx-lib-dialog.umd.js.map +1 -1
  26. package/bundles/pepperi-addons-ngx-lib-field-title.umd.js +1 -1
  27. package/bundles/pepperi-addons-ngx-lib-field-title.umd.js.map +1 -1
  28. package/bundles/pepperi-addons-ngx-lib-files-uploader.umd.js +1 -1
  29. package/bundles/pepperi-addons-ngx-lib-files-uploader.umd.js.map +1 -1
  30. package/bundles/pepperi-addons-ngx-lib-form.umd.js +23 -26
  31. package/bundles/pepperi-addons-ngx-lib-form.umd.js.map +1 -1
  32. package/bundles/pepperi-addons-ngx-lib-group-buttons.umd.js +1 -1
  33. package/bundles/pepperi-addons-ngx-lib-group-buttons.umd.js.map +1 -1
  34. package/bundles/pepperi-addons-ngx-lib-icon.umd.js.map +1 -1
  35. package/bundles/pepperi-addons-ngx-lib-image.umd.js +1 -6
  36. package/bundles/pepperi-addons-ngx-lib-image.umd.js.map +1 -1
  37. package/bundles/pepperi-addons-ngx-lib-images-filmstrip.umd.js +1 -6
  38. package/bundles/pepperi-addons-ngx-lib-images-filmstrip.umd.js.map +1 -1
  39. package/bundles/pepperi-addons-ngx-lib-list.umd.js +8 -8
  40. package/bundles/pepperi-addons-ngx-lib-list.umd.js.map +1 -1
  41. package/bundles/pepperi-addons-ngx-lib-menu.umd.js +2 -2
  42. package/bundles/pepperi-addons-ngx-lib-menu.umd.js.map +1 -1
  43. package/bundles/pepperi-addons-ngx-lib-page-layout.umd.js +1 -1
  44. package/bundles/pepperi-addons-ngx-lib-page-layout.umd.js.map +1 -1
  45. package/bundles/pepperi-addons-ngx-lib-quantity-selector.umd.js +1 -6
  46. package/bundles/pepperi-addons-ngx-lib-quantity-selector.umd.js.map +1 -1
  47. package/bundles/pepperi-addons-ngx-lib-rich-html-textarea.umd.js +1 -6
  48. package/bundles/pepperi-addons-ngx-lib-rich-html-textarea.umd.js.map +1 -1
  49. package/bundles/pepperi-addons-ngx-lib-search.umd.js +1 -1
  50. package/bundles/pepperi-addons-ngx-lib-search.umd.js.map +1 -1
  51. package/bundles/pepperi-addons-ngx-lib-select.umd.js +1 -6
  52. package/bundles/pepperi-addons-ngx-lib-select.umd.js.map +1 -1
  53. package/bundles/pepperi-addons-ngx-lib-separator.umd.js +1 -9
  54. package/bundles/pepperi-addons-ngx-lib-separator.umd.js.map +1 -1
  55. package/bundles/pepperi-addons-ngx-lib-side-bar.umd.js +1 -1
  56. package/bundles/pepperi-addons-ngx-lib-side-bar.umd.js.map +1 -1
  57. package/bundles/pepperi-addons-ngx-lib-signature.umd.js +1 -6
  58. package/bundles/pepperi-addons-ngx-lib-signature.umd.js.map +1 -1
  59. package/bundles/pepperi-addons-ngx-lib-size-detector.umd.js +1 -1
  60. package/bundles/pepperi-addons-ngx-lib-size-detector.umd.js.map +1 -1
  61. package/bundles/pepperi-addons-ngx-lib-slider.umd.js +1 -1
  62. package/bundles/pepperi-addons-ngx-lib-slider.umd.js.map +1 -1
  63. package/bundles/pepperi-addons-ngx-lib-smart-filters.umd.js +40 -307
  64. package/bundles/pepperi-addons-ngx-lib-smart-filters.umd.js.map +1 -1
  65. package/bundles/pepperi-addons-ngx-lib-textarea.umd.js +1 -6
  66. package/bundles/pepperi-addons-ngx-lib-textarea.umd.js.map +1 -1
  67. package/bundles/pepperi-addons-ngx-lib-textbox-icon.umd.js +1 -1
  68. package/bundles/pepperi-addons-ngx-lib-textbox-icon.umd.js.map +1 -1
  69. package/bundles/pepperi-addons-ngx-lib-textbox.umd.js +3 -5
  70. package/bundles/pepperi-addons-ngx-lib-textbox.umd.js.map +1 -1
  71. package/bundles/pepperi-addons-ngx-lib-top-bar.umd.js +1 -1
  72. package/bundles/pepperi-addons-ngx-lib-top-bar.umd.js.map +1 -1
  73. package/bundles/pepperi-addons-ngx-lib.umd.js +36 -38
  74. package/bundles/pepperi-addons-ngx-lib.umd.js.map +1 -1
  75. package/button/button.component.theme.scss +2 -2
  76. package/button/pepperi-addons-ngx-lib-button.metadata.json +1 -1
  77. package/checkbox/checkbox.component.theme.scss +2 -2
  78. package/checkbox/pepperi-addons-ngx-lib-checkbox.metadata.json +1 -1
  79. package/color/color-picker.component.theme.scss +175 -175
  80. package/color/color.component.d.ts +0 -1
  81. package/color/color.component.theme.scss +7 -7
  82. package/color/pepperi-addons-ngx-lib-color.metadata.json +1 -1
  83. package/core/common/services/addon.service.d.ts +2 -1
  84. package/core/common/services/file.service.d.ts +4 -4
  85. package/core/customization/customization.service.d.ts +0 -1
  86. package/date/date.component.theme.scss +169 -169
  87. package/date/pepperi-addons-ngx-lib-date.metadata.json +1 -1
  88. package/dialog/dialog.component.theme.scss +5 -5
  89. package/dialog/pepperi-addons-ngx-lib-dialog.metadata.json +1 -1
  90. package/esm2015/address/address.component.js +2 -2
  91. package/esm2015/address/address.module.js +1 -1
  92. package/esm2015/address/public-api.js +1 -1
  93. package/esm2015/attachment/attachment.component.js +2 -7
  94. package/esm2015/attachment/attachment.module.js +1 -1
  95. package/esm2015/attachment/public-api.js +1 -1
  96. package/esm2015/bread-crumbs/bread-crumbs.component.js +2 -2
  97. package/esm2015/bread-crumbs/bread-crumbs.model.js +1 -1
  98. package/esm2015/bread-crumbs/bread-crumbs.module.js +1 -1
  99. package/esm2015/bread-crumbs/public-api.js +1 -1
  100. package/esm2015/button/button.component.js +2 -2
  101. package/esm2015/button/button.model.js +1 -1
  102. package/esm2015/button/button.module.js +1 -1
  103. package/esm2015/button/public-api.js +1 -1
  104. package/esm2015/carousel/carousel-item.directive.js +1 -1
  105. package/esm2015/carousel/carousel.component.js +15 -15
  106. package/esm2015/carousel/carousel.module.js +1 -1
  107. package/esm2015/carousel/public-api.js +1 -1
  108. package/esm2015/checkbox/checkbox.component.js +2 -5
  109. package/esm2015/checkbox/checkbox.module.js +1 -1
  110. package/esm2015/checkbox/public-api.js +1 -1
  111. package/esm2015/color/color-picker.component.js +28 -28
  112. package/esm2015/color/color.component.js +2 -7
  113. package/esm2015/color/color.model.js +1 -1
  114. package/esm2015/color/color.module.js +1 -1
  115. package/esm2015/color/public-api.js +1 -1
  116. package/esm2015/core/clipboard/clipboard.directive.js +1 -1
  117. package/esm2015/core/clipboard/clipboard.service.js +1 -1
  118. package/esm2015/core/clipboard/index.js +1 -1
  119. package/esm2015/core/clipboard/public-api.js +1 -1
  120. package/esm2015/core/common/directives/auto-width.directive.js +1 -1
  121. package/esm2015/core/common/directives/button-blur.directive.js +1 -1
  122. package/esm2015/core/common/directives/button-loader.directive.js +1 -1
  123. package/esm2015/core/common/directives/data-qa.directive.js +1 -1
  124. package/esm2015/core/common/directives/index.js +1 -1
  125. package/esm2015/core/common/directives/menu-blur.directive.js +1 -1
  126. package/esm2015/core/common/directives/prevent-multi-click.directive.js +1 -1
  127. package/esm2015/core/common/directives/public-api.js +1 -1
  128. package/esm2015/core/common/index.js +1 -1
  129. package/esm2015/core/common/model/index.js +1 -1
  130. package/esm2015/core/common/model/papi.model.js +1 -1
  131. package/esm2015/core/common/model/public-api.js +1 -1
  132. package/esm2015/core/common/model/utilities.model.js +1 -1
  133. package/esm2015/core/common/model/wapi.model.js +1 -1
  134. package/esm2015/core/common/pipes/common-pipes.js +1 -1
  135. package/esm2015/core/common/pipes/index.js +1 -1
  136. package/esm2015/core/common/pipes/public-api.js +1 -1
  137. package/esm2015/core/common/public-api.js +1 -1
  138. package/esm2015/core/common/services/addon.service.js +19 -4
  139. package/esm2015/core/common/services/color.service.js +1 -1
  140. package/esm2015/core/common/services/cookie.service.js +1 -1
  141. package/esm2015/core/common/services/data-convertor.service.js +1 -1
  142. package/esm2015/core/common/services/file.service.js +9 -9
  143. package/esm2015/core/common/services/index.js +1 -1
  144. package/esm2015/core/common/services/jwt-helper.service.js +1 -1
  145. package/esm2015/core/common/services/public-api.js +1 -1
  146. package/esm2015/core/common/services/session.service.js +1 -1
  147. package/esm2015/core/common/services/utilities.service.js +4 -25
  148. package/esm2015/core/common/services/validator.service.js +1 -1
  149. package/esm2015/core/common/services/window-scrolling.service.js +5 -5
  150. package/esm2015/core/customization/customization.model.js +1 -1
  151. package/esm2015/core/customization/customization.service.js +2 -4
  152. package/esm2015/core/customization/index.js +1 -1
  153. package/esm2015/core/customization/public-api.js +1 -1
  154. package/esm2015/core/http/index.js +1 -1
  155. package/esm2015/core/http/interceptors/error.interceptor.js +1 -1
  156. package/esm2015/core/http/interceptors/index.js +1 -1
  157. package/esm2015/core/http/interceptors/loader.interceptor.js +1 -1
  158. package/esm2015/core/http/interceptors/profiler.interceptor.js +1 -1
  159. package/esm2015/core/http/public-api.js +1 -1
  160. package/esm2015/core/http/services/http.service.js +1 -1
  161. package/esm2015/core/http/services/loader.service.js +1 -1
  162. package/esm2015/core/index.js +1 -1
  163. package/esm2015/core/layout/index.js +1 -1
  164. package/esm2015/core/layout/layout.service.js +1 -1
  165. package/esm2015/core/layout/public-api.js +1 -1
  166. package/esm2015/core/layout/rtl.directive.js +1 -1
  167. package/esm2015/core/portal/attach.directive.js +1 -1
  168. package/esm2015/core/portal/index.js +1 -1
  169. package/esm2015/core/portal/portal.service.js +1 -1
  170. package/esm2015/core/portal/public-api.js +1 -1
  171. package/esm2015/core/portal/target.directive.js +1 -1
  172. package/esm2015/core/public-api.js +1 -1
  173. package/esm2015/core/scroll-to/index.js +1 -1
  174. package/esm2015/core/scroll-to/public-api.js +1 -1
  175. package/esm2015/core/scroll-to/scroll-to.service.js +1 -1
  176. package/esm2015/date/date.component.js +4 -6
  177. package/esm2015/date/date.module.js +1 -1
  178. package/esm2015/date/public-api.js +1 -1
  179. package/esm2015/dialog/default-dialog.component.js +2 -2
  180. package/esm2015/dialog/dialog.component.js +2 -2
  181. package/esm2015/dialog/dialog.model.js +1 -1
  182. package/esm2015/dialog/dialog.module.js +1 -1
  183. package/esm2015/dialog/dialog.service.js +1 -1
  184. package/esm2015/dialog/public-api.js +1 -1
  185. package/esm2015/field-title/field-title.component.js +2 -2
  186. package/esm2015/field-title/field-title.module.js +1 -1
  187. package/esm2015/field-title/public-api.js +1 -1
  188. package/esm2015/files-uploader/files-uploader.component.js +2 -2
  189. package/esm2015/files-uploader/files-uploader.module.js +1 -1
  190. package/esm2015/files-uploader/public-api.js +1 -1
  191. package/esm2015/form/field-generator.component.js +2 -2
  192. package/esm2015/form/form.component.js +2 -2
  193. package/esm2015/form/form.module.js +1 -1
  194. package/esm2015/form/indicators.component.js +2 -2
  195. package/esm2015/form/internal-button.component.js +18 -21
  196. package/esm2015/form/internal-carusel.component.js +2 -2
  197. package/esm2015/form/internal-carusel.service.js +1 -1
  198. package/esm2015/form/internal-list.component.js +2 -2
  199. package/esm2015/form/internal-menu.component.js +2 -2
  200. package/esm2015/form/internal-page.component.js +2 -2
  201. package/esm2015/form/internal-page.service.js +1 -1
  202. package/esm2015/form/public-api.js +1 -1
  203. package/esm2015/group-buttons/group-buttons.component.js +2 -2
  204. package/esm2015/group-buttons/group-buttons.module.js +1 -1
  205. package/esm2015/group-buttons/public-api.js +1 -1
  206. package/esm2015/icon/icon-generated-all.model.js +1 -1
  207. package/esm2015/icon/icon-generated.model.js +1 -1
  208. package/esm2015/icon/icon-registry.service.js +2 -2
  209. package/esm2015/icon/icon.component.js +1 -1
  210. package/esm2015/icon/icon.module.js +1 -1
  211. package/esm2015/icon/public-api.js +1 -1
  212. package/esm2015/image/image.component.js +2 -7
  213. package/esm2015/image/image.module.js +1 -1
  214. package/esm2015/image/public-api.js +1 -1
  215. package/esm2015/images-filmstrip/images-filmstrip.component.js +2 -7
  216. package/esm2015/images-filmstrip/images-filmstrip.module.js +1 -1
  217. package/esm2015/images-filmstrip/public-api.js +1 -1
  218. package/esm2015/list/list-actions.component.js +2 -2
  219. package/esm2015/list/list-carousel.component.js +2 -2
  220. package/esm2015/list/list-chooser.component.js +2 -2
  221. package/esm2015/list/list-pager.component.js +2 -2
  222. package/esm2015/list/list-sorting.component.js +2 -2
  223. package/esm2015/list/list-total.component.js +2 -2
  224. package/esm2015/list/list-views.component.js +2 -2
  225. package/esm2015/list/list.component.js +2 -2
  226. package/esm2015/list/list.model.js +1 -1
  227. package/esm2015/list/list.module.js +1 -1
  228. package/esm2015/list/public-api.js +1 -1
  229. package/esm2015/menu/menu-item.component.js +2 -2
  230. package/esm2015/menu/menu.component.js +2 -2
  231. package/esm2015/menu/menu.model.js +1 -1
  232. package/esm2015/menu/menu.module.js +1 -1
  233. package/esm2015/menu/public-api.js +1 -1
  234. package/esm2015/ngx-lib.module.js +1 -1
  235. package/esm2015/page-layout/page-layout.component.js +2 -2
  236. package/esm2015/page-layout/page-layout.module.js +1 -1
  237. package/esm2015/page-layout/public-api.js +1 -1
  238. package/esm2015/public-api.js +1 -1
  239. package/esm2015/quantity-selector/public-api.js +1 -1
  240. package/esm2015/quantity-selector/quantity-selector-validation.directive.js +1 -1
  241. package/esm2015/quantity-selector/quantity-selector.component.js +2 -7
  242. package/esm2015/quantity-selector/quantity-selector.module.js +1 -1
  243. package/esm2015/quantity-selector/quantity-selector.pipes.js +1 -1
  244. package/esm2015/rich-html-textarea/public-api.js +1 -1
  245. package/esm2015/rich-html-textarea/rich-html-textarea.component.js +2 -7
  246. package/esm2015/rich-html-textarea/rich-html-textarea.module.js +1 -1
  247. package/esm2015/search/public-api.js +1 -1
  248. package/esm2015/search/search.component.js +2 -2
  249. package/esm2015/search/search.model.js +1 -1
  250. package/esm2015/search/search.module.js +1 -1
  251. package/esm2015/select/public-api.js +1 -1
  252. package/esm2015/select/select.component.js +2 -7
  253. package/esm2015/select/select.module.js +1 -1
  254. package/esm2015/separator/public-api.js +1 -1
  255. package/esm2015/separator/separator.component.js +2 -10
  256. package/esm2015/separator/separator.module.js +1 -1
  257. package/esm2015/side-bar/public-api.js +1 -1
  258. package/esm2015/side-bar/side-bar.component.js +2 -2
  259. package/esm2015/side-bar/side-bar.model.js +1 -1
  260. package/esm2015/side-bar/side-bar.module.js +1 -1
  261. package/esm2015/signature/public-api.js +1 -1
  262. package/esm2015/signature/signature.component.js +2 -7
  263. package/esm2015/signature/signature.module.js +1 -1
  264. package/esm2015/size-detector/public-api.js +1 -1
  265. package/esm2015/size-detector/size-detector.component.js +2 -2
  266. package/esm2015/size-detector/size-detector.module.js +1 -1
  267. package/esm2015/slider/public-api.js +1 -1
  268. package/esm2015/slider/slider.component.js +2 -2
  269. package/esm2015/slider/slider.module.js +1 -1
  270. package/esm2015/smart-filters/boolean-filter/boolean-filter.component.js +3 -23
  271. package/esm2015/smart-filters/common/filter-actions.component.js +2 -2
  272. package/esm2015/smart-filters/common/model/base-filter-component.js +8 -35
  273. package/esm2015/smart-filters/common/model/creator.js +2 -8
  274. package/esm2015/smart-filters/common/model/field.js +1 -12
  275. package/esm2015/smart-filters/common/model/filter.js +1 -1
  276. package/esm2015/smart-filters/common/model/operator.js +8 -8
  277. package/esm2015/smart-filters/common/model/type.js +1 -1
  278. package/esm2015/smart-filters/date-filter/date-filter.component.js +2 -45
  279. package/esm2015/smart-filters/multi-select-filter/multi-select-filter.component.js +14 -53
  280. package/esm2015/smart-filters/number-filter/number-filter.component.js +2 -27
  281. package/esm2015/smart-filters/public-api.js +1 -2
  282. package/esm2015/smart-filters/smart-filters.component.js +2 -2
  283. package/esm2015/smart-filters/smart-filters.module.js +3 -16
  284. package/esm2015/textarea/public-api.js +1 -1
  285. package/esm2015/textarea/textarea.component.js +2 -7
  286. package/esm2015/textarea/textarea.module.js +1 -1
  287. package/esm2015/textbox/public-api.js +1 -1
  288. package/esm2015/textbox/textbox-validation.directive.js +1 -1
  289. package/esm2015/textbox/textbox.component.js +4 -6
  290. package/esm2015/textbox/textbox.module.js +1 -1
  291. package/esm2015/textbox-icon/public-api.js +1 -1
  292. package/esm2015/textbox-icon/textbox-icon.component.js +2 -2
  293. package/esm2015/textbox-icon/textbox-icon.module.js +1 -1
  294. package/esm2015/top-bar/public-api.js +1 -1
  295. package/esm2015/top-bar/top-bar.component.js +2 -2
  296. package/esm2015/top-bar/top-bar.model.js +1 -1
  297. package/esm2015/top-bar/top-bar.module.js +1 -1
  298. package/fesm2015/pepperi-addons-ngx-lib-address.js +1 -1
  299. package/fesm2015/pepperi-addons-ngx-lib-address.js.map +1 -1
  300. package/fesm2015/pepperi-addons-ngx-lib-attachment.js +1 -6
  301. package/fesm2015/pepperi-addons-ngx-lib-attachment.js.map +1 -1
  302. package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.js +1 -1
  303. package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.js.map +1 -1
  304. package/fesm2015/pepperi-addons-ngx-lib-button.js +1 -1
  305. package/fesm2015/pepperi-addons-ngx-lib-button.js.map +1 -1
  306. package/fesm2015/pepperi-addons-ngx-lib-carousel.js +14 -14
  307. package/fesm2015/pepperi-addons-ngx-lib-carousel.js.map +1 -1
  308. package/fesm2015/pepperi-addons-ngx-lib-checkbox.js +1 -4
  309. package/fesm2015/pepperi-addons-ngx-lib-checkbox.js.map +1 -1
  310. package/fesm2015/pepperi-addons-ngx-lib-color.js +28 -33
  311. package/fesm2015/pepperi-addons-ngx-lib-color.js.map +1 -1
  312. package/fesm2015/pepperi-addons-ngx-lib-date.js +3 -5
  313. package/fesm2015/pepperi-addons-ngx-lib-date.js.map +1 -1
  314. package/fesm2015/pepperi-addons-ngx-lib-dialog.js +2 -2
  315. package/fesm2015/pepperi-addons-ngx-lib-dialog.js.map +1 -1
  316. package/fesm2015/pepperi-addons-ngx-lib-field-title.js +1 -1
  317. package/fesm2015/pepperi-addons-ngx-lib-field-title.js.map +1 -1
  318. package/fesm2015/pepperi-addons-ngx-lib-files-uploader.js +1 -1
  319. package/fesm2015/pepperi-addons-ngx-lib-files-uploader.js.map +1 -1
  320. package/fesm2015/pepperi-addons-ngx-lib-form.js +23 -26
  321. package/fesm2015/pepperi-addons-ngx-lib-form.js.map +1 -1
  322. package/fesm2015/pepperi-addons-ngx-lib-group-buttons.js +1 -1
  323. package/fesm2015/pepperi-addons-ngx-lib-group-buttons.js.map +1 -1
  324. package/fesm2015/pepperi-addons-ngx-lib-icon.js +1 -1
  325. package/fesm2015/pepperi-addons-ngx-lib-icon.js.map +1 -1
  326. package/fesm2015/pepperi-addons-ngx-lib-image.js +1 -6
  327. package/fesm2015/pepperi-addons-ngx-lib-image.js.map +1 -1
  328. package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.js +1 -6
  329. package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.js.map +1 -1
  330. package/fesm2015/pepperi-addons-ngx-lib-list.js +8 -8
  331. package/fesm2015/pepperi-addons-ngx-lib-list.js.map +1 -1
  332. package/fesm2015/pepperi-addons-ngx-lib-menu.js +2 -2
  333. package/fesm2015/pepperi-addons-ngx-lib-menu.js.map +1 -1
  334. package/fesm2015/pepperi-addons-ngx-lib-page-layout.js +1 -1
  335. package/fesm2015/pepperi-addons-ngx-lib-page-layout.js.map +1 -1
  336. package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.js +1 -6
  337. package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.js.map +1 -1
  338. package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.js +1 -6
  339. package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.js.map +1 -1
  340. package/fesm2015/pepperi-addons-ngx-lib-search.js +1 -1
  341. package/fesm2015/pepperi-addons-ngx-lib-search.js.map +1 -1
  342. package/fesm2015/pepperi-addons-ngx-lib-select.js +1 -6
  343. package/fesm2015/pepperi-addons-ngx-lib-select.js.map +1 -1
  344. package/fesm2015/pepperi-addons-ngx-lib-separator.js +1 -9
  345. package/fesm2015/pepperi-addons-ngx-lib-separator.js.map +1 -1
  346. package/fesm2015/pepperi-addons-ngx-lib-side-bar.js +1 -1
  347. package/fesm2015/pepperi-addons-ngx-lib-side-bar.js.map +1 -1
  348. package/fesm2015/pepperi-addons-ngx-lib-signature.js +1 -6
  349. package/fesm2015/pepperi-addons-ngx-lib-signature.js.map +1 -1
  350. package/fesm2015/pepperi-addons-ngx-lib-size-detector.js +1 -1
  351. package/fesm2015/pepperi-addons-ngx-lib-size-detector.js.map +1 -1
  352. package/fesm2015/pepperi-addons-ngx-lib-slider.js +1 -1
  353. package/fesm2015/pepperi-addons-ngx-lib-slider.js.map +1 -1
  354. package/fesm2015/pepperi-addons-ngx-lib-smart-filters.js +37 -294
  355. package/fesm2015/pepperi-addons-ngx-lib-smart-filters.js.map +1 -1
  356. package/fesm2015/pepperi-addons-ngx-lib-textarea.js +1 -6
  357. package/fesm2015/pepperi-addons-ngx-lib-textarea.js.map +1 -1
  358. package/fesm2015/pepperi-addons-ngx-lib-textbox-icon.js +1 -1
  359. package/fesm2015/pepperi-addons-ngx-lib-textbox-icon.js.map +1 -1
  360. package/fesm2015/pepperi-addons-ngx-lib-textbox.js +3 -5
  361. package/fesm2015/pepperi-addons-ngx-lib-textbox.js.map +1 -1
  362. package/fesm2015/pepperi-addons-ngx-lib-top-bar.js +1 -1
  363. package/fesm2015/pepperi-addons-ngx-lib-top-bar.js.map +1 -1
  364. package/fesm2015/pepperi-addons-ngx-lib.js +34 -42
  365. package/fesm2015/pepperi-addons-ngx-lib.js.map +1 -1
  366. package/field-title/field-title.component.theme.scss +2 -2
  367. package/field-title/pepperi-addons-ngx-lib-field-title.metadata.json +1 -1
  368. package/files-uploader/files-uploader.component.theme.scss +2 -2
  369. package/files-uploader/pepperi-addons-ngx-lib-files-uploader.metadata.json +1 -1
  370. package/form/form.component.theme.scss +2 -2
  371. package/form/indicators.component.theme.scss +7 -7
  372. package/form/internal-button.component.d.ts +1 -0
  373. package/form/internal-button.component.theme.scss +2 -2
  374. package/form/internal-menu.component.theme.scss +3 -3
  375. package/form/pepperi-addons-ngx-lib-form.metadata.json +1 -1
  376. package/group-buttons/group-buttons.component.theme.scss +15 -15
  377. package/group-buttons/pepperi-addons-ngx-lib-group-buttons.metadata.json +1 -1
  378. package/image/image.component.d.ts +0 -1
  379. package/image/image.component.theme.scss +35 -35
  380. package/image/pepperi-addons-ngx-lib-image.metadata.json +1 -1
  381. package/images-filmstrip/images-filmstrip.component.d.ts +0 -1
  382. package/images-filmstrip/images-filmstrip.component.theme.scss +32 -32
  383. package/images-filmstrip/pepperi-addons-ngx-lib-images-filmstrip.metadata.json +1 -1
  384. package/list/list-actions.component.theme.scss +3 -3
  385. package/list/list-carousel.component.theme.scss +9 -9
  386. package/list/list-chooser.component.theme.scss +3 -3
  387. package/list/list-pager.component.theme.scss +3 -3
  388. package/list/list-sorting.component.theme.scss +3 -3
  389. package/list/list-total.component.theme.scss +10 -10
  390. package/list/list-views.component.theme.scss +3 -3
  391. package/list/list.component.theme.scss +5 -5
  392. package/list/list_old.component.theme.scss +5 -5
  393. package/list/pepperi-addons-ngx-lib-list.metadata.json +1 -1
  394. package/menu/menu.component.theme.scss +2 -2
  395. package/menu/pepperi-addons-ngx-lib-menu.metadata.json +1 -1
  396. package/package.json +1 -1
  397. package/page-layout/page-layout.component.theme.scss +7 -7
  398. package/page-layout/pepperi-addons-ngx-lib-page-layout.metadata.json +1 -1
  399. package/pepperi-addons-ngx-lib.metadata.json +1 -1
  400. package/quantity-selector/pepperi-addons-ngx-lib-quantity-selector.metadata.json +1 -1
  401. package/quantity-selector/quantity-selector.component.d.ts +0 -1
  402. package/quantity-selector/quantity-selector.component.theme.scss +77 -77
  403. package/rich-html-textarea/pepperi-addons-ngx-lib-rich-html-textarea.metadata.json +1 -1
  404. package/rich-html-textarea/rich-html-textarea.component.d.ts +0 -1
  405. package/rich-html-textarea/rich-html-textarea.component.theme.scss +236 -236
  406. package/search/pepperi-addons-ngx-lib-search.metadata.json +1 -1
  407. package/search/search.component.theme.scss +3 -3
  408. package/select/pepperi-addons-ngx-lib-select.metadata.json +1 -1
  409. package/select/select.component.d.ts +0 -1
  410. package/select/select.component.theme.scss +2 -2
  411. package/separator/pepperi-addons-ngx-lib-separator.metadata.json +1 -1
  412. package/separator/separator.component.theme.scss +2 -2
  413. package/side-bar/pepperi-addons-ngx-lib-side-bar.metadata.json +1 -1
  414. package/side-bar/side-bar.component.theme.scss +25 -25
  415. package/signature/pepperi-addons-ngx-lib-signature.metadata.json +1 -1
  416. package/signature/signature.component.d.ts +0 -1
  417. package/signature/signature.component.theme.scss +28 -28
  418. package/size-detector/pepperi-addons-ngx-lib-size-detector.metadata.json +1 -1
  419. package/slider/pepperi-addons-ngx-lib-slider.metadata.json +1 -1
  420. package/slider/slider.component.theme.scss +65 -65
  421. package/smart-filters/boolean-filter/boolean-filter.component.d.ts +1 -6
  422. package/smart-filters/common/model/base-filter-component.d.ts +0 -7
  423. package/smart-filters/common/model/field.d.ts +0 -4
  424. package/smart-filters/common/model/operator.d.ts +0 -1
  425. package/smart-filters/common/model/type.d.ts +2 -2
  426. package/smart-filters/date-filter/date-filter.component.d.ts +1 -8
  427. package/smart-filters/multi-select-filter/multi-select-filter.component.d.ts +0 -6
  428. package/smart-filters/number-filter/number-filter.component.d.ts +0 -5
  429. package/smart-filters/pepperi-addons-ngx-lib-smart-filters.metadata.json +1 -1
  430. package/smart-filters/public-api.d.ts +0 -1
  431. package/smart-filters/smart-filters.component.theme.scss +10 -10
  432. package/src/assets/i18n/de.ngx-lib.json +77 -77
  433. package/src/assets/i18n/en.ngx-lib.json +138 -139
  434. package/src/assets/i18n/es.ngx-lib.json +77 -77
  435. package/src/assets/i18n/fr.ngx-lib.json +78 -78
  436. package/src/assets/i18n/he.ngx-lib.json +78 -78
  437. package/src/assets/i18n/hu.ngx-lib.json +78 -78
  438. package/src/assets/i18n/it.ngx-lib.json +78 -78
  439. package/src/assets/i18n/ja.ngx-lib.json +78 -78
  440. package/src/assets/i18n/nl.ngx-lib.json +78 -78
  441. package/src/assets/i18n/pl.ngx-lib.json +78 -78
  442. package/src/assets/i18n/pt.ngx-lib.json +78 -78
  443. package/src/assets/i18n/ru.ngx-lib.json +78 -78
  444. package/src/assets/i18n/zh.ngx-lib.json +76 -76
  445. package/src/assets/images/no-image.svg +41 -41
  446. package/src/core/style/abstracts/breakpoints.scss +35 -35
  447. package/src/core/style/abstracts/functions.scss +422 -422
  448. package/src/core/style/abstracts/mixins.scss +797 -797
  449. package/src/core/style/abstracts/variables.scss +545 -545
  450. package/src/core/style/base/base.scss +873 -873
  451. package/src/core/style/base/grids.scss +4 -4
  452. package/src/core/style/base/helpers.scss +70 -70
  453. package/src/core/style/base/typography.scss +255 -255
  454. package/src/core/style/components/button.scss +349 -349
  455. package/src/core/style/components/checkbox.scss +473 -473
  456. package/src/core/style/components/datetime.scss +22 -22
  457. package/src/core/style/components/file.scss +219 -219
  458. package/src/core/style/components/general.scss +1086 -1088
  459. package/src/core/style/components/input.scss +94 -94
  460. package/src/core/style/components/quantity-selector.scss +14 -14
  461. package/src/core/style/components/radio-button.scss +168 -168
  462. package/src/core/style/components/select.scss +185 -185
  463. package/src/core/style/components/signature.scss +12 -12
  464. package/src/core/style/components/splitter.scss +64 -64
  465. package/src/core/style/components/textarea.scss +195 -195
  466. package/src/core/style/themes/black-theme.scss +7 -7
  467. package/src/core/style/themes/default-theme.scss +144 -144
  468. package/src/core/style/themes/light-theme.scss +7 -7
  469. package/src/core/style/themes/nature-theme.scss +7 -7
  470. package/src/core/style/vendors/normalize.scss +497 -497
  471. package/textarea/pepperi-addons-ngx-lib-textarea.metadata.json +1 -1
  472. package/textarea/textarea.component.d.ts +0 -1
  473. package/textarea/textarea.component.theme.scss +2 -2
  474. package/textbox/pepperi-addons-ngx-lib-textbox.metadata.json +1 -1
  475. package/textbox/textbox.component.theme.scss +3 -3
  476. package/textbox-icon/pepperi-addons-ngx-lib-textbox-icon.metadata.json +1 -1
  477. package/textbox-icon/textbox-icon.component.theme.scss +2 -2
  478. package/theming.scss +220 -224
  479. package/top-bar/pepperi-addons-ngx-lib-top-bar.metadata.json +1 -1
  480. package/top-bar/top-bar.component.theme.scss +9 -9
  481. package/bundles/pepperi-addons-ngx-lib-query-builder.umd.js +0 -1113
  482. package/bundles/pepperi-addons-ngx-lib-query-builder.umd.js.map +0 -1
  483. package/esm2015/query-builder/common/model/filter.js +0 -2
  484. package/esm2015/query-builder/common/model/legacy.js +0 -2
  485. package/esm2015/query-builder/common/model/operator-unit.js +0 -42
  486. package/esm2015/query-builder/common/model/operator.js +0 -207
  487. package/esm2015/query-builder/common/model/structure.js +0 -2
  488. package/esm2015/query-builder/common/model/type-map.js +0 -27
  489. package/esm2015/query-builder/common/model/type.js +0 -6
  490. package/esm2015/query-builder/common/services/output-query.service.js +0 -114
  491. package/esm2015/query-builder/common/services/type-convertor.service.js +0 -44
  492. package/esm2015/query-builder/pepperi-addons-ngx-lib-query-builder.js +0 -9
  493. package/esm2015/query-builder/public-api.js +0 -8
  494. package/esm2015/query-builder/query-builder-item/query-builder-item.component.js +0 -103
  495. package/esm2015/query-builder/query-builder-section/query-builder-section.component.js +0 -64
  496. package/esm2015/query-builder/query-builder.component.js +0 -101
  497. package/esm2015/query-builder/query-builder.module.js +0 -43
  498. package/esm2015/query-builder/query-builder.service.js +0 -283
  499. package/esm2015/smart-filters/text-filter/text-filter.component.js +0 -79
  500. package/fesm2015/pepperi-addons-ngx-lib-query-builder.js +0 -1010
  501. package/fesm2015/pepperi-addons-ngx-lib-query-builder.js.map +0 -1
  502. package/query-builder/common/model/filter.d.ts +0 -6
  503. package/query-builder/common/model/legacy.d.ts +0 -20
  504. package/query-builder/common/model/operator-unit.d.ts +0 -13
  505. package/query-builder/common/model/operator.d.ts +0 -21
  506. package/query-builder/common/model/structure.d.ts +0 -4
  507. package/query-builder/common/model/type-map.d.ts +0 -12
  508. package/query-builder/common/model/type.d.ts +0 -4
  509. package/query-builder/common/services/output-query.service.d.ts +0 -43
  510. package/query-builder/common/services/type-convertor.service.d.ts +0 -10
  511. package/query-builder/package.json +0 -14
  512. package/query-builder/pepperi-addons-ngx-lib-query-builder.d.ts +0 -8
  513. package/query-builder/pepperi-addons-ngx-lib-query-builder.metadata.json +0 -1
  514. package/query-builder/public-api.d.ts +0 -4
  515. package/query-builder/query-builder-item/query-builder-item.component.d.ts +0 -30
  516. package/query-builder/query-builder-section/query-builder-section.component.d.ts +0 -27
  517. package/query-builder/query-builder-section/query-builder-section.component.theme.scss +0 -6
  518. package/query-builder/query-builder.component.d.ts +0 -35
  519. package/query-builder/query-builder.module.d.ts +0 -2
  520. package/query-builder/query-builder.service.d.ts +0 -94
  521. package/smart-filters/text-filter/text-filter.component.d.ts +0 -17
@@ -1,798 +1,798 @@
1
- // -----------------------------------------------------------------------------
2
- // This file contains all application-wide Sass mixins.
3
- // -----------------------------------------------------------------------------
4
-
5
- /// Event wrapper
6
- /// @author Harry Roberts
7
- /// @param {Bool} $self [false] - Whether or not to include current selector
8
- /// @link https://twitter.com/csswizardry/status/478938530342006784 Original tweet from Harry Roberts
9
- @mixin on-event($self: false) {
10
- @if $self {
11
- &,
12
- &:hover,
13
- &:active,
14
- &:focus {
15
- @content;
16
- }
17
- } @else {
18
- &:hover,
19
- &:active,
20
- &:focus {
21
- @content;
22
- }
23
- }
24
- }
25
-
26
- /// Make a context based selector a little more friendly
27
- /// @author Hugo Giraudel
28
- /// @param {String} $context
29
- @mixin when-inside($context) {
30
- #{$context} & {
31
- @content;
32
- }
33
- }
34
-
35
- @mixin font($size: false, $weight: 400, $lh: false, $family: $font-family-body) {
36
- font-family: $family;
37
-
38
- @if $size {
39
- font-size: $size;
40
- }
41
-
42
- @if $weight {
43
- font-weight: $weight;
44
- }
45
-
46
- @if $lh {
47
- line-height: $lh;
48
- }
49
- }
50
-
51
- @mixin pep-spacing-element-negative($add-important: true, $spacing-size: $spacing-xs) {
52
- @if ($add-important) {
53
- margin-right: calc(#{$spacing-size} * -1) !important;
54
- margin-left: calc(#{$spacing-size} * -1) !important;
55
- } @else {
56
- margin-right: calc(#{$spacing-size} * -1);
57
- margin-left: calc(#{$spacing-size} * -1);
58
- }
59
- }
60
-
61
- @mixin pep-spacing-element($add-important: true, $spacing-size: $spacing-xs) {
62
- @if ($add-important) {
63
- margin-right: $spacing-size !important;
64
- margin-left: $spacing-size !important;
65
- } @else {
66
- margin-right: $spacing-size;
67
- margin-left: $spacing-size;
68
- }
69
- }
70
-
71
- @mixin align-center($vertical-alignment: true, $horizontal-alignment: true) {
72
- display: inline-flex !important;
73
-
74
- @if ($vertical-alignment) {
75
- align-items: center;
76
- }
77
-
78
- @if ($horizontal-alignment) {
79
- justify-content: center;
80
- }
81
- }
82
-
83
- @mixin flex-grow($int: 1) {
84
- -webkit-box-flex: $int;
85
- -moz-box-flex: $int;
86
- -webkit-flex-grow: $int;
87
- -ms-flex: $int;
88
- flex-grow: $int;
89
- }
90
-
91
- @mixin ellipsis() {
92
- // -ms-text-overflow: ellipsis;
93
- // -o-text-overflow: ellipsis;
94
- text-overflow: ellipsis;
95
- overflow: hidden;
96
- white-space: nowrap;
97
- }
98
-
99
- @mixin hide-spin-buttons() {
100
- /*Hide numbers arrows in the qs input - Chrome, Safari, Edge, Opera */
101
- input::-webkit-outer-spin-button,
102
- input::-webkit-inner-spin-button {
103
- -webkit-appearance: none;
104
- margin: 0;
105
- }
106
- /*Hide numbers arrows in the qs input - Firefox */
107
- input[type=number] {
108
- -moz-appearance:textfield;
109
- }
110
- }
111
-
112
- @mixin select-arrow() {
113
- content: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgaWQ9InN2ZzQiCiAgIHZlcnNpb249IjEuMSIKICAgdmlld0JveD0iMCAwIDI0IDI0IgogICBoZWlnaHQ9IjE2IgogICB3aWR0aD0iMTYiPgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTEwIj4KICAgIDxyZGY6UkRGPgogICAgICA8Y2M6V29yawogICAgICAgICByZGY6YWJvdXQ9IiI+CiAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9zdmcreG1sPC9kYzpmb3JtYXQ+CiAgICAgICAgPGRjOnR5cGUKICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9wdXJsLm9yZy9kYy9kY21pdHlwZS9TdGlsbEltYWdlIiAvPgogICAgICA8L2NjOldvcms+CiAgICA8L3JkZjpSREY+CiAgPC9tZXRhZGF0YT4KICA8ZGVmcwogICAgIGlkPSJkZWZzOCIgLz4KICA8cGF0aAogICAgIGlkPSJwYXRoMiIKICAgICBkPSJNNS44MDAzMjE0OCw5LjI4Njc0MzU0IEwxMS4yNTQyODI0LDEzLjIwMjc1ODMgQzExLjY2NjEzMDksMTMuNTg1MDgzIDEyLjMzMzg2OTEsMTMuNTg1MDgzIDEyLjc0NTcxNzYsMTMuMjAyNzU4MyBMMTguMTk5Njc4NSw5LjI4Njc0MzU0IEMxOC42MTE1MjcsOC45MDQ0MTg4MiAxOS4yNzkyNjUyLDguOTA0NDE4ODIgMTkuNjkxMTEzNyw5LjI4Njc0MzU0IEMyMC4xMDI5NjIxLDkuNjY5MDY4MjYgMjAuMTAyOTYyMSwxMC4yODg5MzkxIDE5LjY5MTExMzcsMTAuNjcxMjYzOCBMMTMuNDkxNDM1MSwxNi40MjY1MTI5IEMxMi42Njc3MzgzLDE3LjE5MTE2MjQgMTEuMzMyMjYxNywxNy4xOTExNjI0IDEwLjUwODU2NDksMTYuNDI2NTEyOSBMNC4zMDg4ODYzMywxMC42NzEyNjM4IEMzLjg5NzAzNzg5LDEwLjI4ODkzOTEgMy44OTcwMzc4OSw5LjY2OTA2ODI2IDQuMzA4ODg2MzMsOS4yODY3NDM1NCBDNC43MjA3MzQ3OCw4LjkwNDQxODgyIDUuMzg4NDczMDMsOC45MDQ0MTg4MiA1LjgwMDMyMTQ4LDkuMjg2NzQzNTQgWiIKICAgICBmaWxsLXJ1bGU9ImV2ZW5vZGQiCiAgICAgZmlsbC1vcGFjaXR5PSIuNSIgLz4KPC9zdmc+Cg==");
114
- }
115
-
116
- @mixin multi-line-ellipsis($alignment: 1, $line-height: 1.5rem, $lines-count: 2, $text-background: #fff) {
117
- // @include calc(max-width, "100%");
118
- max-width: calc(100%);
119
-
120
- /* hide text if it more than N lines */
121
- overflow: hidden;
122
- /* for set '...' in absolute position */
123
- position: relative;
124
- /* use this value to count block height */
125
- line-height: $line-height;
126
- /* max-height = line-height (1.5) * lines max number (2) */
127
- max-height: $line-height * $lines-count + 0.05rem;
128
-
129
- /* create the ... */
130
- &:before {
131
- /* points in the end */
132
- content: "...";
133
- /* absolute position */
134
- position: absolute;
135
- /* set position to right bottom corner of block */
136
- bottom: 0;
137
- }
138
-
139
- /* hide ... if we have text, which is less than or equal to max lines */
140
- &:after {
141
- /* points in the end */
142
- content: "...";
143
- /* absolute position */
144
- position: absolute;
145
- /* set height & margin top*/
146
- height: $line-height;
147
- margin-top: 0.2rem;
148
- /* bg color = bg color under block */
149
- background: $text-background;
150
- color: $text-background;
151
- }
152
-
153
- @if $alignment == 2 {
154
- // right alignment
155
- direction: rtl;
156
- text-align: right;
157
-
158
- /* place for '...' */
159
- //margin-left: -1em;
160
- padding-left: 1em;
161
-
162
- &:before {
163
- left: 3px;
164
- }
165
- &:after {
166
- /* set position to left bottom corner of text */
167
- left: 3px;
168
- }
169
- } @else {
170
- // left alignment + center alignment
171
- direction: ltr;
172
-
173
- @if $alignment == 3 {
174
- text-align: center;
175
- } @else {
176
- text-align: left;
177
- }
178
-
179
- /* place for '...' */
180
- margin-right: -1em;
181
- padding-right: 1em;
182
-
183
- &:before {
184
- right: 3px;
185
- }
186
- &:after {
187
- /* set position to right bottom corner of text */
188
- right: 3px;
189
- }
190
- }
191
- }
192
-
193
- @mixin font-title($fs: $fs-md, $lh: $lh-md) {
194
- font-family: $font-family-title;
195
- font-weight: $font-weight-bold;
196
-
197
- @include font-size($fs);
198
- @include line-height($lh);
199
- }
200
-
201
- @mixin font-body($fs: $fs-sm, $lh: $lh-sm) {
202
- @include font-size($fs);
203
- @include line-height($lh);
204
- }
205
-
206
- // Mixin fall back px declaration and calculated rem value - more in _functions.scss
207
- @mixin font-size($size) {
208
- font-size: $size !important;
209
- // font-size: calculateRem($size) !important;
210
- }
211
-
212
- @mixin line-height($lineHeight) {
213
- line-height: $lineHeight !important ;
214
- // line-height: calculateRem($lineHeight) !important;
215
- }
216
-
217
- @mixin border($property, $width: 0, $style: solid, $color: transparent, $important: false) {
218
- @if $important {
219
- #{$property}: $width $style $color !important;
220
- } @else {
221
- #{$property}: $width $style $color;
222
- }
223
- }
224
-
225
- @mixin pep-border($property, $pepperi-theme, $style: solid, $important: false) {
226
- @include border($property, 1px, $style, get-pep-color($pepperi-theme, color-system-primary, color-tran-50), $important);
227
- }
228
-
229
- // Inline - this line face inward // This works only for buttons (and other objects that contains children).
230
- @mixin inline($color: transparent, $width: 1px, $style: solid, $regularBorder: false) {
231
- @if $regularBorder {
232
- @include border(border, $width, $style, $color);
233
- } @else {
234
- position: relative;
235
-
236
- // 👆 Requires parent element to be 'position: relative;'
237
- &:after {
238
- z-index: $z-index-lowest - 1;
239
- content: "";
240
- transition: all 0.25s; // same as 'pep-btn' @mixin
241
- display: block;
242
- position: absolute;
243
- top: 0;
244
- bottom: 0;
245
- left: 0;
246
- right: 0;
247
- border-radius: inherit;
248
- border: $width $style $color;
249
- }
250
- }
251
- }
252
-
253
- @mixin fix-inline-z-index() {
254
- // to fix the z-index in the inline &:after.
255
- z-index: $z-index-lowest;
256
- }
257
-
258
- @mixin mat-badge-content() {
259
- z-index: $z-index-medium - 3;
260
- min-width: 1.5rem;
261
- width: fit-content !important;
262
- border-radius: 0.625rem;
263
- padding: 0 0.5rem;
264
- top: calc(#{$spacing-sm} * -1) !important;
265
- @include ellipsis();
266
- max-width: inherit;
267
- }
268
-
269
- @mixin pep-top-bar-button() {
270
- // margin-top: $spacing-xs;
271
- height: $top-bar-field-height;
272
- line-height: $top-bar-field-height;
273
- }
274
-
275
- @mixin pep-cross-hatch($pepperi-theme, $hex-color: null) {
276
- $color-low-opacity: null;
277
- $color-high-opacity: null;
278
-
279
- @if ($hex-color == null) {
280
- $color-low-opacity: get-pep-color($pepperi-theme, color-system-caution, color-tran-0);
281
- $color-high-opacity: get-pep-color($pepperi-theme, color-system-caution, color-tran-60);
282
- } @else {
283
- $color-low-opacity: rgba($hex-color, 0);
284
- $color-high-opacity: rgba($hex-color, 0.32)
285
- }
286
-
287
- background: repeating-linear-gradient(
288
- 45deg,
289
- $color-low-opacity,
290
- $color-low-opacity .65rem,
291
- $color-high-opacity .65rem,
292
- $color-high-opacity 0.8rem,
293
- ),
294
- repeating-linear-gradient(
295
- -45deg,
296
- $color-low-opacity,
297
- $color-low-opacity .65rem,
298
- $color-high-opacity 0.65rem,
299
- $color-high-opacity 0.8rem,
300
- );
301
- }
302
-
303
- // ******************************************************************************
304
- // General state declerations
305
- // ******************************************************************************
306
- @mixin focus($pepperi-theme, $add-important: false, $focus-color: null, $focus-size: $spacing-xs) {
307
- @if ($focus-color == null) {
308
- $focus-color: get-pep-color($pepperi-theme, color-text, color-link-focus);
309
- }
310
-
311
- @if ($add-important) {
312
- box-shadow: 0 0 0 $focus-size $focus-color !important;
313
- } @else {
314
- box-shadow: 0 0 0 $focus-size $focus-color;
315
- }
316
- }
317
-
318
- @mixin state-error-wrapper($pepperi-theme) {
319
- border-radius: $border-radius-md;
320
- background: get-pep-color($pepperi-theme, color-system-caution, color-base);
321
- box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, regular);
322
- }
323
-
324
- @mixin state-error($pepperi-theme) {
325
- background: get-pep-color($pepperi-theme, color-system-primary-invert, color-base);
326
- border: 1px solid get-pep-color($pepperi-theme, color-system-caution, color-base);
327
- }
328
-
329
- @mixin state-disabled($pepperi-theme) {
330
- // For remove all other states
331
- box-shadow: unset;
332
- border: unset;
333
-
334
- &:after {
335
- border: unset;
336
- }
337
-
338
- .svg-icon {
339
- @include state-icon-disabled($pepperi-theme);
340
- }
341
- }
342
-
343
- // State icon
344
- // ----------------------------------------------------------------------------------
345
- @mixin state-icon($pepperi-theme) {
346
- @include svg-icon-color(get-pep-color($pepperi-theme, color-system-primary, color-tran-80));
347
-
348
- &:hover {
349
- @include svg-icon-color(get-pep-color($pepperi-theme, color-system-primary, color-tran-90));
350
- }
351
-
352
- &:active {
353
- @include svg-icon-color(get-pep-color($pepperi-theme, color-system-primary, color-base));
354
- }
355
-
356
- &:disabled {
357
- @include state-icon-disabled($pepperi-theme);
358
- }
359
- }
360
-
361
- @mixin state-icon-disabled($pepperi-theme) {
362
- @include svg-icon-color(get-pep-color($pepperi-theme, color-text, color-disabled));
363
- }
364
-
365
- @mixin svg-icon-color($color) {
366
- fill: $color;
367
-
368
- &.stroke {
369
- fill: unset;
370
- stroke: $color;
371
- }
372
- }
373
-
374
- // State badge
375
- // -----------------------------------------------------------------------------
376
- @mixin pep-badge($pepperi-theme) {
377
- .mat-badge-content {
378
- @include state-strong-default($pepperi-theme);
379
- background-color: get-pep-color($pepperi-theme, color-system-primary, color-base) !important;
380
- box-shadow: get-pep-shadow($pepperi-theme, shadow-sm, hard);
381
- }
382
- }
383
-
384
- // ******************************************************************************
385
- // State weak declerations
386
- // ******************************************************************************
387
- @mixin pep-state-default($pepperi-theme, $style: weak, $color-name: null, $regularBorder: false) {
388
- @if ($style == 'none') {
389
- @include state-none-default($pepperi-theme);
390
- } @else if ($style == 'weak-invert') {
391
- @include state-weak-invert-default($pepperi-theme);
392
- } @else if ($style == 'weak') {
393
- @include state-weak-default($pepperi-theme, $color-name);
394
- } @else if ($style == 'strong') {
395
- @include state-strong-default($pepperi-theme, $color-name);
396
- } @else { // regular.
397
- @include state-regular-default($pepperi-theme, $regularBorder, $color-name);
398
- }
399
- }
400
- @mixin pep-state-disable($pepperi-theme, $style: weak, $color-name: null, $regularBorder: false) {
401
- @if ($style == 'none') {
402
- @include state-none-disable($pepperi-theme);
403
- } @else if ($style == 'weak-invert') {
404
- @include state-weak-invert-disable($pepperi-theme);
405
- } @else if ($style == 'weak') {
406
- @include state-weak-disable($pepperi-theme, $color-name);
407
- } @else if ($style == 'strong') {
408
- @include state-strong-disable($pepperi-theme, $color-name);
409
- } @else { // regular.
410
- @include state-regular-disable($pepperi-theme, $regularBorder, $color-name);
411
- }
412
- }
413
- @mixin pep-state-hover($pepperi-theme, $style: weak, $color-name: null, $regularBorder: false) {
414
- @if ($style == 'none') {
415
- @include state-none-hover($pepperi-theme);
416
- } @else if ($style == 'weak-invert') {
417
- @include state-weak-invert-hover($pepperi-theme);
418
- } @else if ($style == 'weak') {
419
- @include state-weak-hover($pepperi-theme, $color-name);
420
- } @else if ($style == 'strong') {
421
- @include state-strong-hover($pepperi-theme, $color-name);
422
- } @else { // regular.
423
- @include state-regular-hover($pepperi-theme, $regularBorder, $color-name);
424
- }
425
- }
426
- @mixin pep-state-active($pepperi-theme, $style: weak, $color-name: null, $regularBorder: false) {
427
- @if ($style == 'none') {
428
- @include state-none-active($pepperi-theme);
429
- } @else if ($style == 'weak-invert') {
430
- @include state-weak-invert-active($pepperi-theme);
431
- } @else if ($style == 'weak') {
432
- @include state-weak-active($pepperi-theme, $color-name);
433
- } @else if ($style == 'strong') {
434
- @include state-strong-active($pepperi-theme, $color-name);
435
- } @else { // regular.
436
- @include state-regular-active($pepperi-theme, $regularBorder, $color-name);
437
- }
438
- }
439
- @mixin pep-state-focus($pepperi-theme, $style: weak, $color-name: null, $regularBorder: false) {
440
- @if ($style == 'none') {
441
- @include state-none-focus($pepperi-theme);
442
- } @else if ($style == 'weak-invert') {
443
- @include state-weak-invert-focus($pepperi-theme);
444
- } @else if ($style == 'weak') {
445
- @include state-weak-focus($pepperi-theme, $color-name);
446
- } @else if ($style == 'strong') {
447
- @include state-strong-focus($pepperi-theme, $color-name);
448
- } @else { // regular.
449
- @include state-regular-focus($pepperi-theme, $regularBorder, $color-name);
450
- }
451
- }
452
-
453
- // ******************************************************************************
454
- // State weak declerations
455
- // ******************************************************************************
456
- // Weak - default
457
- // -----------------------------------------------------------------------------
458
- @mixin state-weak-default($pepperi-theme, $color-map-name: null) {
459
- @if ($color-map-name == null) {
460
- $color-map-name: color-weak;
461
- }
462
- background: get-pep-color($pepperi-theme, $color-map-name, color-tran-30);
463
- }
464
- @mixin state-weak-disable($pepperi-theme, $color-map-name: null) {
465
- @include state-disabled($pepperi-theme);
466
-
467
- @if ($color-map-name == null) {
468
- $color-map-name: color-weak;
469
- }
470
- color:get-pep-color($pepperi-theme, color-text, color-disabled) !important;
471
- background: get-pep-color($pepperi-theme, $color-map-name, color-tran-10) !important;
472
- }
473
- @mixin state-weak-hover($pepperi-theme, $color-map-name: null) {
474
- @if ($color-map-name == null) {
475
- $color-map-name: color-weak;
476
- }
477
- background: get-pep-color($pepperi-theme, $color-map-name, color-tran-40);
478
- }
479
- @mixin state-weak-active($pepperi-theme, $color-map-name: null, $add-inline: true, $regularBorder: false) {
480
- @if ($color-map-name == null) {
481
- $color-map-name: color-weak;
482
- }
483
-
484
- &:not(.keep-background-on-focus) {
485
- // background: get-pep-color($pepperi-theme, $color-map-name, color-tran-0); // TODO: In Table view is gray so what sould we do ask Yonatan.
486
- background: get-pep-color($pepperi-theme, color-system-primary-invert, color-base);
487
- }
488
-
489
- box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, soft);
490
-
491
- @if ($add-inline) {
492
- @include inline(get-pep-color($pepperi-theme, $color-map-name, color-base), 1px, solid, $regularBorder);
493
- }
494
- }
495
- @mixin state-weak-focus($pepperi-theme, $color-map-name: null, $add-inline: true, $regularBorder: false) {
496
- // box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, soft);
497
- @include state-weak-active($pepperi-theme, $color-map-name, $add-inline, $regularBorder);
498
- @include focus($pepperi-theme);
499
- }
500
-
501
- // Weak - invert
502
- // -----------------------------------------------------------------------------
503
- @mixin state-weak-invert-default($pepperi-theme) {
504
- background: get-pep-color($pepperi-theme, color-system-primary-invert, color-tran-70);
505
-
506
- // $color: get-pep-color($pepperi-theme, color-text, color-main);
507
- // color: $color;
508
-
509
- // .svg-icon {
510
- // fill: $color !important;
511
- // }
512
- }
513
- @mixin state-weak-invert-disable($pepperi-theme) {
514
- @include state-disabled($pepperi-theme);
515
-
516
- color:get-pep-color($pepperi-theme, color-text, color-disabled) !important;
517
- background: get-pep-color($pepperi-theme, color-system-primary-invert, color-tran-20) !important;
518
- }
519
- @mixin state-weak-invert-hover($pepperi-theme) {
520
- background: get-pep-color($pepperi-theme, color-system-primary-invert, color-tran-70);
521
- box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, soft);
522
- cursor: pointer;
523
- }
524
- @mixin state-weak-invert-active($pepperi-theme) {
525
- background: get-pep-color($pepperi-theme, color-system-primary-invert, color-base);
526
- box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, regular);
527
- }
528
- @mixin state-weak-invert-focus($pepperi-theme) {
529
- background: get-pep-color($pepperi-theme, color-system-primary-invert, color-base);
530
- @include focus($pepperi-theme);
531
- }
532
-
533
- // ******************************************************************************
534
- // State regular declerations
535
- // ******************************************************************************
536
- // Regular - default
537
- // -----------------------------------------------------------------------------
538
- @mixin state-regular-default($pepperi-theme, $regularBorder: false, $color-map-name: null) {
539
- @if ($color-map-name == null) {
540
- $color-map-name: color-regular;
541
- }
542
- background: get-pep-color($pepperi-theme, $color-map-name, color-flat-r-40);
543
- box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, soft);
544
- @include inline(get-pep-color($pepperi-theme, $color-map-name, color-flat-r-20), 1px, solid, $regularBorder);
545
- }
546
- @mixin state-regular-hover($pepperi-theme, $regularBorder: false, $color-map-name: null) {
547
- @if ($color-map-name == null) {
548
- $color-map-name: color-regular;
549
- }
550
- background: get-pep-color($pepperi-theme, $color-map-name, color-flat-r-40);
551
- box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, regular);
552
- @include inline(get-pep-color($pepperi-theme, $color-map-name, color-flat-r-10), 1px, solid, $regularBorder);
553
- }
554
- @mixin state-regular-active($pepperi-theme, $regularBorder: false, $color-map-name: null) {
555
- @if ($color-map-name == null) {
556
- $color-map-name: color-regular;
557
- }
558
- background: get-pep-color($pepperi-theme, $color-map-name, color-flat-r-30);
559
- box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, hard);
560
- @include inline(get-pep-color($pepperi-theme, $color-map-name, color-base), 1px, solid, $regularBorder);
561
-
562
- // @if $regularBorder {
563
- // } @else {
564
- // @include focus($pepperi-theme);
565
- // }
566
- }
567
- @mixin state-regular-focus($pepperi-theme, $regularBorder: false, $color-map-name: null) {
568
- @if ($color-map-name == null) {
569
- $color-map-name: color-regular;
570
- }
571
- background: get-pep-color($pepperi-theme, $color-map-name, color-flat-r-30);
572
- box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, regular);
573
- @include inline(get-pep-color($pepperi-theme, $color-map-name, color-base), 1px, solid, $regularBorder);
574
- @include focus($pepperi-theme);
575
- }
576
- @mixin state-regular-disable($pepperi-theme, $regularBorder: false, $color-map-name: null) {
577
- @include state-disabled($pepperi-theme);
578
-
579
- @if ($color-map-name == null) {
580
- $color-map-name: color-regular;
581
- }
582
- color:get-pep-color($pepperi-theme, color-text, color-disabled) !important;
583
- background: get-pep-color($pepperi-theme, $color-map-name, color-flat-r-30) !important;
584
- box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, xsoft) !important;
585
- @include inline(get-pep-color($pepperi-theme, $color-map-name, color-tran-20), 1px, solid, $regularBorder);
586
- }
587
-
588
- // ******************************************************************************
589
- // State strong declerations
590
- // ******************************************************************************
591
- // Strong - default
592
- // -----------------------------------------------------------------------------
593
- @mixin state-strong-default($pepperi-theme, $color-map-name: null) {
594
- @if ($color-map-name == null) {
595
- $color-map-name: color-strong;
596
- }
597
-
598
- font-weight: $font-weight-bold;
599
- background: get-pep-color($pepperi-theme, $color-map-name, color-base);
600
- box-shadow: get-pep-shadow($pepperi-theme, shadow-sm, soft);
601
-
602
- $color: get-pep-color($pepperi-theme, color-text, color-invert);
603
-
604
- color: $color;
605
- .svg-icon {
606
- @include svg-icon-color($color);
607
- }
608
- }
609
- @mixin state-strong-disable($pepperi-theme, $color-map-name: null) {
610
- @include state-disabled($pepperi-theme);
611
-
612
- @if ($color-map-name == null) {
613
- $color-map-name: color-strong;
614
- }
615
- background: get-pep-color($pepperi-theme, $color-map-name, color-base) !important;
616
- opacity: 0.5 !important;
617
-
618
- $color: get-pep-color($pepperi-theme, color-text, color-invert);
619
-
620
- color: $color;
621
- .svg-icon {
622
- @include svg-icon-color($color);
623
- }
624
- }
625
- @mixin state-strong-hover($pepperi-theme, $color-map-name: null) {
626
- @if ($color-map-name == null) {
627
- $color-map-name: color-strong;
628
- }
629
- background: get-pep-color($pepperi-theme, $color-map-name, color-flat-l-10);
630
- box-shadow: get-pep-shadow($pepperi-theme, shadow-sm, regular);
631
- }
632
- @mixin state-strong-active($pepperi-theme, $color-map-name: null) {
633
- @if ($color-map-name == null) {
634
- $color-map-name: color-strong;
635
- }
636
- background: get-pep-color($pepperi-theme, $color-map-name, color-flat-l-20);
637
- box-shadow: get-pep-shadow($pepperi-theme, shadow-sm, hard);
638
- }
639
- @mixin state-strong-focus($pepperi-theme, $color-map-name: null) {
640
- @if ($color-map-name == null) {
641
- $color-map-name: color-strong;
642
- }
643
- background: get-pep-color($pepperi-theme, $color-map-name, color-flat-l-20);
644
- box-shadow: get-pep-shadow($pepperi-theme, shadow-sm, soft);
645
- @include focus($pepperi-theme);
646
- }
647
-
648
- // ******************************************************************************
649
- // State none declerations
650
- // ******************************************************************************
651
- // None - default
652
- // -----------------------------------------------------------------------------
653
- @mixin state-none-default($pepperi-theme) {
654
- background: get-pep-color($pepperi-theme, color-system-primary, color-tran-0);
655
- }
656
- @mixin state-none-disable($pepperi-theme) {
657
- @include state-disabled($pepperi-theme);
658
- background: get-pep-color($pepperi-theme, color-system-primary, color-tran-0) !important;
659
- }
660
- @mixin state-none-hover($pepperi-theme) {
661
- @include state-weak-hover($pepperi-theme);
662
- }
663
- @mixin state-none-active($pepperi-theme) {
664
- @include state-weak-active($pepperi-theme);
665
- }
666
- @mixin state-none-focus($pepperi-theme) {
667
- @include state-weak-focus($pepperi-theme);
668
- }
669
-
670
- // ******************************************************************************
671
- // Buttons states declerations
672
- // ******************************************************************************
673
- @mixin pep-button-states($pepperi-theme, $style: weak, $color-name: null) {
674
- @include pep-state-default($pepperi-theme, $style, $color-name, true);
675
- &:hover {
676
- @include pep-state-hover($pepperi-theme, $style, $color-name, true);
677
- }
678
- &:focus {
679
- @include pep-state-focus($pepperi-theme, $style, $color-name, true);
680
- }
681
- &:active {
682
- @include pep-state-active($pepperi-theme, $style, $color-name, true);
683
- }
684
- &:disabled {
685
- &:not(.ignore-disabled) {
686
- @include pep-state-disable($pepperi-theme, $style, $color-name, true);
687
- }
688
- }
689
- }
690
-
691
- // ******************************************************************************
692
- // Form field states declerations
693
- // ******************************************************************************
694
- @mixin pep-form-field-states($pepperi-theme, $style: weak, $color-name: null) {
695
- // Default
696
- .mat-form-field-flex {
697
- @include pep-state-default($pepperi-theme, $style, $color-name);
698
- }
699
-
700
- // Hover
701
- &:hover {
702
- .ignore-disabled,
703
- &:not(.mat-form-field-disabled) {
704
- .mat-form-field-flex {
705
- @include pep-state-hover($pepperi-theme, $style, $color-name);
706
- }
707
- }
708
- }
709
-
710
- // Focused
711
- &.mat-focused {
712
- .ignore-disabled,
713
- &:not(.mat-form-field-disabled) {
714
- .mat-form-field-flex {
715
- @include pep-state-focus($pepperi-theme, $style, $color-name);
716
- }
717
- }
718
- }
719
-
720
- // Active
721
- &.active,
722
- &:active {
723
- .ignore-disabled,
724
- &:not(.mat-form-field-disabled) {
725
- .mat-form-field-flex {
726
- @include pep-state-active($pepperi-theme, $style, $color-name);
727
- }
728
- }
729
- }
730
-
731
- // Disabled
732
- &.mat-form-field-disabled {
733
- &:not(.ignore-disabled) {
734
- .mat-form-field-flex {
735
- @include pep-state-disable($pepperi-theme, $style, $color-name);
736
- }
737
- }
738
- }
739
- }
740
-
741
- // ******************************************************************************
742
- // Table states declerations
743
- // ******************************************************************************
744
- @mixin state-table-row-default($pepperi-theme) {
745
-
746
- }
747
- @mixin state-table-row-hover($pepperi-theme) {
748
- background: get-pep-color($pepperi-theme, color-weak, color-tran-30);
749
- }
750
- @mixin state-table-row-active($pepperi-theme) {
751
-
752
- }
753
- @mixin state-table-row-selected($pepperi-theme) {
754
- background: get-pep-color($pepperi-theme, color-system-success, color-tran-20);
755
- }
756
-
757
- // ******************************************************************************
758
- // Card states declerations
759
- // ******************************************************************************
760
- @mixin state-card-default($pepperi-theme) {
761
- background: get-pep-color($pepperi-theme, color-system-primary-invert, color-base);
762
- box-shadow: get-pep-shadow($pepperi-theme, shadow-card, soft);
763
-
764
- transition: box-shadow 0.25s;
765
- }
766
- @mixin state-card-hover($pepperi-theme) {
767
- box-shadow: get-pep-shadow($pepperi-theme, shadow-card, regular);
768
- }
769
- @mixin state-card-active($pepperi-theme) {
770
- box-shadow: get-pep-shadow($pepperi-theme, shadow-card, hard);
771
- // @include focus($pepperi-theme);
772
- }
773
- @mixin state-card-selected($pepperi-theme) {
774
- background: get-pep-color($pepperi-theme, color-system-success, color-tran-20);;
775
- box-shadow: none;
776
- }
777
-
778
- // ******************************************************************************
779
- // General List declerations
780
- // ******************************************************************************
781
- @mixin state-list-body-default($pepperi-theme) {
782
- background: get-pep-color($pepperi-theme, color-system-primary-invert, color-base);
783
- }
784
-
785
- // ******************************************************************************
786
- // Tabs declerations
787
- // ******************************************************************************
788
- // @mixin mat-tabs-fixed-header-width($side-width) {
789
- // width: calc(100% - (#{$side-width} + #{$double-content-padding} + #{$double-content-margin}));
790
-
791
- // @media (max-width: $screen-max-size-md) {
792
- // width: calc(100% - (#{$double-content-padding} + #{$double-content-margin}));
793
- // }
794
-
795
- // @media (max-width: $screen-max-size-xs) {
796
- // width: calc(100% - (#{$content-padding} + #{$content-margin}));
797
- // }
1
+ // -----------------------------------------------------------------------------
2
+ // This file contains all application-wide Sass mixins.
3
+ // -----------------------------------------------------------------------------
4
+
5
+ /// Event wrapper
6
+ /// @author Harry Roberts
7
+ /// @param {Bool} $self [false] - Whether or not to include current selector
8
+ /// @link https://twitter.com/csswizardry/status/478938530342006784 Original tweet from Harry Roberts
9
+ @mixin on-event($self: false) {
10
+ @if $self {
11
+ &,
12
+ &:hover,
13
+ &:active,
14
+ &:focus {
15
+ @content;
16
+ }
17
+ } @else {
18
+ &:hover,
19
+ &:active,
20
+ &:focus {
21
+ @content;
22
+ }
23
+ }
24
+ }
25
+
26
+ /// Make a context based selector a little more friendly
27
+ /// @author Hugo Giraudel
28
+ /// @param {String} $context
29
+ @mixin when-inside($context) {
30
+ #{$context} & {
31
+ @content;
32
+ }
33
+ }
34
+
35
+ @mixin font($size: false, $weight: 400, $lh: false, $family: $font-family-body) {
36
+ font-family: $family;
37
+
38
+ @if $size {
39
+ font-size: $size;
40
+ }
41
+
42
+ @if $weight {
43
+ font-weight: $weight;
44
+ }
45
+
46
+ @if $lh {
47
+ line-height: $lh;
48
+ }
49
+ }
50
+
51
+ @mixin pep-spacing-element-negative($add-important: true, $spacing-size: $spacing-xs) {
52
+ @if ($add-important) {
53
+ margin-right: calc(#{$spacing-size} * -1) !important;
54
+ margin-left: calc(#{$spacing-size} * -1) !important;
55
+ } @else {
56
+ margin-right: calc(#{$spacing-size} * -1);
57
+ margin-left: calc(#{$spacing-size} * -1);
58
+ }
59
+ }
60
+
61
+ @mixin pep-spacing-element($add-important: true, $spacing-size: $spacing-xs) {
62
+ @if ($add-important) {
63
+ margin-right: $spacing-size !important;
64
+ margin-left: $spacing-size !important;
65
+ } @else {
66
+ margin-right: $spacing-size;
67
+ margin-left: $spacing-size;
68
+ }
69
+ }
70
+
71
+ @mixin align-center($vertical-alignment: true, $horizontal-alignment: true) {
72
+ display: inline-flex !important;
73
+
74
+ @if ($vertical-alignment) {
75
+ align-items: center;
76
+ }
77
+
78
+ @if ($horizontal-alignment) {
79
+ justify-content: center;
80
+ }
81
+ }
82
+
83
+ @mixin flex-grow($int: 1) {
84
+ -webkit-box-flex: $int;
85
+ -moz-box-flex: $int;
86
+ -webkit-flex-grow: $int;
87
+ -ms-flex: $int;
88
+ flex-grow: $int;
89
+ }
90
+
91
+ @mixin ellipsis() {
92
+ // -ms-text-overflow: ellipsis;
93
+ // -o-text-overflow: ellipsis;
94
+ text-overflow: ellipsis;
95
+ overflow: hidden;
96
+ white-space: nowrap;
97
+ }
98
+
99
+ @mixin hide-spin-buttons() {
100
+ /*Hide numbers arrows in the qs input - Chrome, Safari, Edge, Opera */
101
+ input::-webkit-outer-spin-button,
102
+ input::-webkit-inner-spin-button {
103
+ -webkit-appearance: none;
104
+ margin: 0;
105
+ }
106
+ /*Hide numbers arrows in the qs input - Firefox */
107
+ input[type=number] {
108
+ -moz-appearance:textfield;
109
+ }
110
+ }
111
+
112
+ @mixin select-arrow() {
113
+ content: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgaWQ9InN2ZzQiCiAgIHZlcnNpb249IjEuMSIKICAgdmlld0JveD0iMCAwIDI0IDI0IgogICBoZWlnaHQ9IjE2IgogICB3aWR0aD0iMTYiPgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTEwIj4KICAgIDxyZGY6UkRGPgogICAgICA8Y2M6V29yawogICAgICAgICByZGY6YWJvdXQ9IiI+CiAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9zdmcreG1sPC9kYzpmb3JtYXQ+CiAgICAgICAgPGRjOnR5cGUKICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9wdXJsLm9yZy9kYy9kY21pdHlwZS9TdGlsbEltYWdlIiAvPgogICAgICA8L2NjOldvcms+CiAgICA8L3JkZjpSREY+CiAgPC9tZXRhZGF0YT4KICA8ZGVmcwogICAgIGlkPSJkZWZzOCIgLz4KICA8cGF0aAogICAgIGlkPSJwYXRoMiIKICAgICBkPSJNNS44MDAzMjE0OCw5LjI4Njc0MzU0IEwxMS4yNTQyODI0LDEzLjIwMjc1ODMgQzExLjY2NjEzMDksMTMuNTg1MDgzIDEyLjMzMzg2OTEsMTMuNTg1MDgzIDEyLjc0NTcxNzYsMTMuMjAyNzU4MyBMMTguMTk5Njc4NSw5LjI4Njc0MzU0IEMxOC42MTE1MjcsOC45MDQ0MTg4MiAxOS4yNzkyNjUyLDguOTA0NDE4ODIgMTkuNjkxMTEzNyw5LjI4Njc0MzU0IEMyMC4xMDI5NjIxLDkuNjY5MDY4MjYgMjAuMTAyOTYyMSwxMC4yODg5MzkxIDE5LjY5MTExMzcsMTAuNjcxMjYzOCBMMTMuNDkxNDM1MSwxNi40MjY1MTI5IEMxMi42Njc3MzgzLDE3LjE5MTE2MjQgMTEuMzMyMjYxNywxNy4xOTExNjI0IDEwLjUwODU2NDksMTYuNDI2NTEyOSBMNC4zMDg4ODYzMywxMC42NzEyNjM4IEMzLjg5NzAzNzg5LDEwLjI4ODkzOTEgMy44OTcwMzc4OSw5LjY2OTA2ODI2IDQuMzA4ODg2MzMsOS4yODY3NDM1NCBDNC43MjA3MzQ3OCw4LjkwNDQxODgyIDUuMzg4NDczMDMsOC45MDQ0MTg4MiA1LjgwMDMyMTQ4LDkuMjg2NzQzNTQgWiIKICAgICBmaWxsLXJ1bGU9ImV2ZW5vZGQiCiAgICAgZmlsbC1vcGFjaXR5PSIuNSIgLz4KPC9zdmc+Cg==");
114
+ }
115
+
116
+ @mixin multi-line-ellipsis($alignment: 1, $line-height: 1.5rem, $lines-count: 2, $text-background: #fff) {
117
+ // @include calc(max-width, "100%");
118
+ max-width: calc(100%);
119
+
120
+ /* hide text if it more than N lines */
121
+ overflow: hidden;
122
+ /* for set '...' in absolute position */
123
+ position: relative;
124
+ /* use this value to count block height */
125
+ line-height: $line-height;
126
+ /* max-height = line-height (1.5) * lines max number (2) */
127
+ max-height: $line-height * $lines-count + 0.05rem;
128
+
129
+ /* create the ... */
130
+ &:before {
131
+ /* points in the end */
132
+ content: "...";
133
+ /* absolute position */
134
+ position: absolute;
135
+ /* set position to right bottom corner of block */
136
+ bottom: 0;
137
+ }
138
+
139
+ /* hide ... if we have text, which is less than or equal to max lines */
140
+ &:after {
141
+ /* points in the end */
142
+ content: "...";
143
+ /* absolute position */
144
+ position: absolute;
145
+ /* set height & margin top*/
146
+ height: $line-height;
147
+ margin-top: 0.2rem;
148
+ /* bg color = bg color under block */
149
+ background: $text-background;
150
+ color: $text-background;
151
+ }
152
+
153
+ @if $alignment == 2 {
154
+ // right alignment
155
+ direction: rtl;
156
+ text-align: right;
157
+
158
+ /* place for '...' */
159
+ //margin-left: -1em;
160
+ padding-left: 1em;
161
+
162
+ &:before {
163
+ left: 3px;
164
+ }
165
+ &:after {
166
+ /* set position to left bottom corner of text */
167
+ left: 3px;
168
+ }
169
+ } @else {
170
+ // left alignment + center alignment
171
+ direction: ltr;
172
+
173
+ @if $alignment == 3 {
174
+ text-align: center;
175
+ } @else {
176
+ text-align: left;
177
+ }
178
+
179
+ /* place for '...' */
180
+ margin-right: -1em;
181
+ padding-right: 1em;
182
+
183
+ &:before {
184
+ right: 3px;
185
+ }
186
+ &:after {
187
+ /* set position to right bottom corner of text */
188
+ right: 3px;
189
+ }
190
+ }
191
+ }
192
+
193
+ @mixin font-title($fs: $fs-md, $lh: $lh-md) {
194
+ font-family: $font-family-title;
195
+ font-weight: $font-weight-bold;
196
+
197
+ @include font-size($fs);
198
+ @include line-height($lh);
199
+ }
200
+
201
+ @mixin font-body($fs: $fs-sm, $lh: $lh-sm) {
202
+ @include font-size($fs);
203
+ @include line-height($lh);
204
+ }
205
+
206
+ // Mixin fall back px declaration and calculated rem value - more in _functions.scss
207
+ @mixin font-size($size) {
208
+ font-size: $size !important;
209
+ // font-size: calculateRem($size) !important;
210
+ }
211
+
212
+ @mixin line-height($lineHeight) {
213
+ line-height: $lineHeight !important ;
214
+ // line-height: calculateRem($lineHeight) !important;
215
+ }
216
+
217
+ @mixin border($property, $width: 0, $style: solid, $color: transparent, $important: false) {
218
+ @if $important {
219
+ #{$property}: $width $style $color !important;
220
+ } @else {
221
+ #{$property}: $width $style $color;
222
+ }
223
+ }
224
+
225
+ @mixin pep-border($property, $pepperi-theme, $style: solid, $important: false) {
226
+ @include border($property, 1px, $style, get-pep-color($pepperi-theme, color-system-primary, color-tran-50), $important);
227
+ }
228
+
229
+ // Inline - this line face inward // This works only for buttons (and other objects that contains children).
230
+ @mixin inline($color: transparent, $width: 1px, $style: solid, $regularBorder: false) {
231
+ @if $regularBorder {
232
+ @include border(border, $width, $style, $color);
233
+ } @else {
234
+ position: relative;
235
+
236
+ // 👆 Requires parent element to be 'position: relative;'
237
+ &:after {
238
+ z-index: $z-index-lowest - 1;
239
+ content: "";
240
+ transition: all 0.25s; // same as 'pep-btn' @mixin
241
+ display: block;
242
+ position: absolute;
243
+ top: 0;
244
+ bottom: 0;
245
+ left: 0;
246
+ right: 0;
247
+ border-radius: inherit;
248
+ border: $width $style $color;
249
+ }
250
+ }
251
+ }
252
+
253
+ @mixin fix-inline-z-index() {
254
+ // to fix the z-index in the inline &:after.
255
+ z-index: $z-index-lowest;
256
+ }
257
+
258
+ @mixin mat-badge-content() {
259
+ z-index: $z-index-medium - 3;
260
+ min-width: 1.5rem;
261
+ width: fit-content !important;
262
+ border-radius: 0.625rem;
263
+ padding: 0 0.5rem;
264
+ top: calc(#{$spacing-sm} * -1) !important;
265
+ @include ellipsis();
266
+ max-width: inherit;
267
+ }
268
+
269
+ @mixin pep-top-bar-button() {
270
+ // margin-top: $spacing-xs;
271
+ height: $top-bar-field-height;
272
+ line-height: $top-bar-field-height;
273
+ }
274
+
275
+ @mixin pep-cross-hatch($pepperi-theme, $hex-color: null) {
276
+ $color-low-opacity: null;
277
+ $color-high-opacity: null;
278
+
279
+ @if ($hex-color == null) {
280
+ $color-low-opacity: get-pep-color($pepperi-theme, color-system-caution, color-tran-0);
281
+ $color-high-opacity: get-pep-color($pepperi-theme, color-system-caution, color-tran-60);
282
+ } @else {
283
+ $color-low-opacity: rgba($hex-color, 0);
284
+ $color-high-opacity: rgba($hex-color, 0.32)
285
+ }
286
+
287
+ background: repeating-linear-gradient(
288
+ 45deg,
289
+ $color-low-opacity,
290
+ $color-low-opacity .65rem,
291
+ $color-high-opacity .65rem,
292
+ $color-high-opacity 0.8rem,
293
+ ),
294
+ repeating-linear-gradient(
295
+ -45deg,
296
+ $color-low-opacity,
297
+ $color-low-opacity .65rem,
298
+ $color-high-opacity 0.65rem,
299
+ $color-high-opacity 0.8rem,
300
+ );
301
+ }
302
+
303
+ // ******************************************************************************
304
+ // General state declerations
305
+ // ******************************************************************************
306
+ @mixin focus($pepperi-theme, $add-important: false, $focus-color: null, $focus-size: $spacing-xs) {
307
+ @if ($focus-color == null) {
308
+ $focus-color: get-pep-color($pepperi-theme, color-text, color-link-focus);
309
+ }
310
+
311
+ @if ($add-important) {
312
+ box-shadow: 0 0 0 $focus-size $focus-color !important;
313
+ } @else {
314
+ box-shadow: 0 0 0 $focus-size $focus-color;
315
+ }
316
+ }
317
+
318
+ @mixin state-error-wrapper($pepperi-theme) {
319
+ border-radius: $border-radius-md;
320
+ background: get-pep-color($pepperi-theme, color-system-caution, color-base);
321
+ box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, regular);
322
+ }
323
+
324
+ @mixin state-error($pepperi-theme) {
325
+ background: get-pep-color($pepperi-theme, color-system-primary-invert, color-base);
326
+ border: 1px solid get-pep-color($pepperi-theme, color-system-caution, color-base);
327
+ }
328
+
329
+ @mixin state-disabled($pepperi-theme) {
330
+ // For remove all other states
331
+ box-shadow: unset;
332
+ border: unset;
333
+
334
+ &:after {
335
+ border: unset;
336
+ }
337
+
338
+ .svg-icon {
339
+ @include state-icon-disabled($pepperi-theme);
340
+ }
341
+ }
342
+
343
+ // State icon
344
+ // ----------------------------------------------------------------------------------
345
+ @mixin state-icon($pepperi-theme) {
346
+ @include svg-icon-color(get-pep-color($pepperi-theme, color-system-primary, color-tran-80));
347
+
348
+ &:hover {
349
+ @include svg-icon-color(get-pep-color($pepperi-theme, color-system-primary, color-tran-90));
350
+ }
351
+
352
+ &:active {
353
+ @include svg-icon-color(get-pep-color($pepperi-theme, color-system-primary, color-base));
354
+ }
355
+
356
+ &:disabled {
357
+ @include state-icon-disabled($pepperi-theme);
358
+ }
359
+ }
360
+
361
+ @mixin state-icon-disabled($pepperi-theme) {
362
+ @include svg-icon-color(get-pep-color($pepperi-theme, color-text, color-disabled));
363
+ }
364
+
365
+ @mixin svg-icon-color($color) {
366
+ fill: $color;
367
+
368
+ &.stroke {
369
+ fill: unset;
370
+ stroke: $color;
371
+ }
372
+ }
373
+
374
+ // State badge
375
+ // -----------------------------------------------------------------------------
376
+ @mixin pep-badge($pepperi-theme) {
377
+ .mat-badge-content {
378
+ @include state-strong-default($pepperi-theme);
379
+ background-color: get-pep-color($pepperi-theme, color-system-primary, color-base) !important;
380
+ box-shadow: get-pep-shadow($pepperi-theme, shadow-sm, hard);
381
+ }
382
+ }
383
+
384
+ // ******************************************************************************
385
+ // State weak declerations
386
+ // ******************************************************************************
387
+ @mixin pep-state-default($pepperi-theme, $style: weak, $color-name: null, $regularBorder: false) {
388
+ @if ($style == 'none') {
389
+ @include state-none-default($pepperi-theme);
390
+ } @else if ($style == 'weak-invert') {
391
+ @include state-weak-invert-default($pepperi-theme);
392
+ } @else if ($style == 'weak') {
393
+ @include state-weak-default($pepperi-theme, $color-name);
394
+ } @else if ($style == 'strong') {
395
+ @include state-strong-default($pepperi-theme, $color-name);
396
+ } @else { // regular.
397
+ @include state-regular-default($pepperi-theme, $regularBorder, $color-name);
398
+ }
399
+ }
400
+ @mixin pep-state-disable($pepperi-theme, $style: weak, $color-name: null, $regularBorder: false) {
401
+ @if ($style == 'none') {
402
+ @include state-none-disable($pepperi-theme);
403
+ } @else if ($style == 'weak-invert') {
404
+ @include state-weak-invert-disable($pepperi-theme);
405
+ } @else if ($style == 'weak') {
406
+ @include state-weak-disable($pepperi-theme, $color-name);
407
+ } @else if ($style == 'strong') {
408
+ @include state-strong-disable($pepperi-theme, $color-name);
409
+ } @else { // regular.
410
+ @include state-regular-disable($pepperi-theme, $regularBorder, $color-name);
411
+ }
412
+ }
413
+ @mixin pep-state-hover($pepperi-theme, $style: weak, $color-name: null, $regularBorder: false) {
414
+ @if ($style == 'none') {
415
+ @include state-none-hover($pepperi-theme);
416
+ } @else if ($style == 'weak-invert') {
417
+ @include state-weak-invert-hover($pepperi-theme);
418
+ } @else if ($style == 'weak') {
419
+ @include state-weak-hover($pepperi-theme, $color-name);
420
+ } @else if ($style == 'strong') {
421
+ @include state-strong-hover($pepperi-theme, $color-name);
422
+ } @else { // regular.
423
+ @include state-regular-hover($pepperi-theme, $regularBorder, $color-name);
424
+ }
425
+ }
426
+ @mixin pep-state-active($pepperi-theme, $style: weak, $color-name: null, $regularBorder: false) {
427
+ @if ($style == 'none') {
428
+ @include state-none-active($pepperi-theme);
429
+ } @else if ($style == 'weak-invert') {
430
+ @include state-weak-invert-active($pepperi-theme);
431
+ } @else if ($style == 'weak') {
432
+ @include state-weak-active($pepperi-theme, $color-name);
433
+ } @else if ($style == 'strong') {
434
+ @include state-strong-active($pepperi-theme, $color-name);
435
+ } @else { // regular.
436
+ @include state-regular-active($pepperi-theme, $regularBorder, $color-name);
437
+ }
438
+ }
439
+ @mixin pep-state-focus($pepperi-theme, $style: weak, $color-name: null, $regularBorder: false) {
440
+ @if ($style == 'none') {
441
+ @include state-none-focus($pepperi-theme);
442
+ } @else if ($style == 'weak-invert') {
443
+ @include state-weak-invert-focus($pepperi-theme);
444
+ } @else if ($style == 'weak') {
445
+ @include state-weak-focus($pepperi-theme, $color-name);
446
+ } @else if ($style == 'strong') {
447
+ @include state-strong-focus($pepperi-theme, $color-name);
448
+ } @else { // regular.
449
+ @include state-regular-focus($pepperi-theme, $regularBorder, $color-name);
450
+ }
451
+ }
452
+
453
+ // ******************************************************************************
454
+ // State weak declerations
455
+ // ******************************************************************************
456
+ // Weak - default
457
+ // -----------------------------------------------------------------------------
458
+ @mixin state-weak-default($pepperi-theme, $color-map-name: null) {
459
+ @if ($color-map-name == null) {
460
+ $color-map-name: color-weak;
461
+ }
462
+ background: get-pep-color($pepperi-theme, $color-map-name, color-tran-30);
463
+ }
464
+ @mixin state-weak-disable($pepperi-theme, $color-map-name: null) {
465
+ @include state-disabled($pepperi-theme);
466
+
467
+ @if ($color-map-name == null) {
468
+ $color-map-name: color-weak;
469
+ }
470
+ color:get-pep-color($pepperi-theme, color-text, color-disabled) !important;
471
+ background: get-pep-color($pepperi-theme, $color-map-name, color-tran-10) !important;
472
+ }
473
+ @mixin state-weak-hover($pepperi-theme, $color-map-name: null) {
474
+ @if ($color-map-name == null) {
475
+ $color-map-name: color-weak;
476
+ }
477
+ background: get-pep-color($pepperi-theme, $color-map-name, color-tran-40);
478
+ }
479
+ @mixin state-weak-active($pepperi-theme, $color-map-name: null, $add-inline: true, $regularBorder: false) {
480
+ @if ($color-map-name == null) {
481
+ $color-map-name: color-weak;
482
+ }
483
+
484
+ &:not(.keep-background-on-focus) {
485
+ // background: get-pep-color($pepperi-theme, $color-map-name, color-tran-0); // TODO: In Table view is gray so what sould we do ask Yonatan.
486
+ background: get-pep-color($pepperi-theme, color-system-primary-invert, color-base);
487
+ }
488
+
489
+ box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, soft);
490
+
491
+ @if ($add-inline) {
492
+ @include inline(get-pep-color($pepperi-theme, $color-map-name, color-base), 1px, solid, $regularBorder);
493
+ }
494
+ }
495
+ @mixin state-weak-focus($pepperi-theme, $color-map-name: null, $add-inline: true, $regularBorder: false) {
496
+ // box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, soft);
497
+ @include state-weak-active($pepperi-theme, $color-map-name, $add-inline, $regularBorder);
498
+ @include focus($pepperi-theme);
499
+ }
500
+
501
+ // Weak - invert
502
+ // -----------------------------------------------------------------------------
503
+ @mixin state-weak-invert-default($pepperi-theme) {
504
+ background: get-pep-color($pepperi-theme, color-system-primary-invert, color-tran-70);
505
+
506
+ // $color: get-pep-color($pepperi-theme, color-text, color-main);
507
+ // color: $color;
508
+
509
+ // .svg-icon {
510
+ // fill: $color !important;
511
+ // }
512
+ }
513
+ @mixin state-weak-invert-disable($pepperi-theme) {
514
+ @include state-disabled($pepperi-theme);
515
+
516
+ color:get-pep-color($pepperi-theme, color-text, color-disabled) !important;
517
+ background: get-pep-color($pepperi-theme, color-system-primary-invert, color-tran-20) !important;
518
+ }
519
+ @mixin state-weak-invert-hover($pepperi-theme) {
520
+ background: get-pep-color($pepperi-theme, color-system-primary-invert, color-tran-70);
521
+ box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, soft);
522
+ cursor: pointer;
523
+ }
524
+ @mixin state-weak-invert-active($pepperi-theme) {
525
+ background: get-pep-color($pepperi-theme, color-system-primary-invert, color-base);
526
+ box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, regular);
527
+ }
528
+ @mixin state-weak-invert-focus($pepperi-theme) {
529
+ background: get-pep-color($pepperi-theme, color-system-primary-invert, color-base);
530
+ @include focus($pepperi-theme);
531
+ }
532
+
533
+ // ******************************************************************************
534
+ // State regular declerations
535
+ // ******************************************************************************
536
+ // Regular - default
537
+ // -----------------------------------------------------------------------------
538
+ @mixin state-regular-default($pepperi-theme, $regularBorder: false, $color-map-name: null) {
539
+ @if ($color-map-name == null) {
540
+ $color-map-name: color-regular;
541
+ }
542
+ background: get-pep-color($pepperi-theme, $color-map-name, color-flat-r-40);
543
+ box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, soft);
544
+ @include inline(get-pep-color($pepperi-theme, $color-map-name, color-flat-r-20), 1px, solid, $regularBorder);
545
+ }
546
+ @mixin state-regular-hover($pepperi-theme, $regularBorder: false, $color-map-name: null) {
547
+ @if ($color-map-name == null) {
548
+ $color-map-name: color-regular;
549
+ }
550
+ background: get-pep-color($pepperi-theme, $color-map-name, color-flat-r-40);
551
+ box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, regular);
552
+ @include inline(get-pep-color($pepperi-theme, $color-map-name, color-flat-r-10), 1px, solid, $regularBorder);
553
+ }
554
+ @mixin state-regular-active($pepperi-theme, $regularBorder: false, $color-map-name: null) {
555
+ @if ($color-map-name == null) {
556
+ $color-map-name: color-regular;
557
+ }
558
+ background: get-pep-color($pepperi-theme, $color-map-name, color-flat-r-30);
559
+ box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, hard);
560
+ @include inline(get-pep-color($pepperi-theme, $color-map-name, color-base), 1px, solid, $regularBorder);
561
+
562
+ // @if $regularBorder {
563
+ // } @else {
564
+ // @include focus($pepperi-theme);
565
+ // }
566
+ }
567
+ @mixin state-regular-focus($pepperi-theme, $regularBorder: false, $color-map-name: null) {
568
+ @if ($color-map-name == null) {
569
+ $color-map-name: color-regular;
570
+ }
571
+ background: get-pep-color($pepperi-theme, $color-map-name, color-flat-r-30);
572
+ box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, regular);
573
+ @include inline(get-pep-color($pepperi-theme, $color-map-name, color-base), 1px, solid, $regularBorder);
574
+ @include focus($pepperi-theme);
575
+ }
576
+ @mixin state-regular-disable($pepperi-theme, $regularBorder: false, $color-map-name: null) {
577
+ @include state-disabled($pepperi-theme);
578
+
579
+ @if ($color-map-name == null) {
580
+ $color-map-name: color-regular;
581
+ }
582
+ color:get-pep-color($pepperi-theme, color-text, color-disabled) !important;
583
+ background: get-pep-color($pepperi-theme, $color-map-name, color-flat-r-30) !important;
584
+ box-shadow: get-pep-shadow($pepperi-theme, shadow-xs, xsoft) !important;
585
+ @include inline(get-pep-color($pepperi-theme, $color-map-name, color-tran-20), 1px, solid, $regularBorder);
586
+ }
587
+
588
+ // ******************************************************************************
589
+ // State strong declerations
590
+ // ******************************************************************************
591
+ // Strong - default
592
+ // -----------------------------------------------------------------------------
593
+ @mixin state-strong-default($pepperi-theme, $color-map-name: null) {
594
+ @if ($color-map-name == null) {
595
+ $color-map-name: color-strong;
596
+ }
597
+
598
+ font-weight: $font-weight-bold;
599
+ background: get-pep-color($pepperi-theme, $color-map-name, color-base);
600
+ box-shadow: get-pep-shadow($pepperi-theme, shadow-sm, soft);
601
+
602
+ $color: get-pep-color($pepperi-theme, color-text, color-invert);
603
+
604
+ color: $color;
605
+ .svg-icon {
606
+ @include svg-icon-color($color);
607
+ }
608
+ }
609
+ @mixin state-strong-disable($pepperi-theme, $color-map-name: null) {
610
+ @include state-disabled($pepperi-theme);
611
+
612
+ @if ($color-map-name == null) {
613
+ $color-map-name: color-strong;
614
+ }
615
+ background: get-pep-color($pepperi-theme, $color-map-name, color-base) !important;
616
+ opacity: 0.5 !important;
617
+
618
+ $color: get-pep-color($pepperi-theme, color-text, color-invert);
619
+
620
+ color: $color;
621
+ .svg-icon {
622
+ @include svg-icon-color($color);
623
+ }
624
+ }
625
+ @mixin state-strong-hover($pepperi-theme, $color-map-name: null) {
626
+ @if ($color-map-name == null) {
627
+ $color-map-name: color-strong;
628
+ }
629
+ background: get-pep-color($pepperi-theme, $color-map-name, color-flat-l-10);
630
+ box-shadow: get-pep-shadow($pepperi-theme, shadow-sm, regular);
631
+ }
632
+ @mixin state-strong-active($pepperi-theme, $color-map-name: null) {
633
+ @if ($color-map-name == null) {
634
+ $color-map-name: color-strong;
635
+ }
636
+ background: get-pep-color($pepperi-theme, $color-map-name, color-flat-l-20);
637
+ box-shadow: get-pep-shadow($pepperi-theme, shadow-sm, hard);
638
+ }
639
+ @mixin state-strong-focus($pepperi-theme, $color-map-name: null) {
640
+ @if ($color-map-name == null) {
641
+ $color-map-name: color-strong;
642
+ }
643
+ background: get-pep-color($pepperi-theme, $color-map-name, color-flat-l-20);
644
+ box-shadow: get-pep-shadow($pepperi-theme, shadow-sm, soft);
645
+ @include focus($pepperi-theme);
646
+ }
647
+
648
+ // ******************************************************************************
649
+ // State none declerations
650
+ // ******************************************************************************
651
+ // None - default
652
+ // -----------------------------------------------------------------------------
653
+ @mixin state-none-default($pepperi-theme) {
654
+ background: get-pep-color($pepperi-theme, color-system-primary, color-tran-0);
655
+ }
656
+ @mixin state-none-disable($pepperi-theme) {
657
+ @include state-disabled($pepperi-theme);
658
+ background: get-pep-color($pepperi-theme, color-system-primary, color-tran-0) !important;
659
+ }
660
+ @mixin state-none-hover($pepperi-theme) {
661
+ @include state-weak-hover($pepperi-theme);
662
+ }
663
+ @mixin state-none-active($pepperi-theme) {
664
+ @include state-weak-active($pepperi-theme);
665
+ }
666
+ @mixin state-none-focus($pepperi-theme) {
667
+ @include state-weak-focus($pepperi-theme);
668
+ }
669
+
670
+ // ******************************************************************************
671
+ // Buttons states declerations
672
+ // ******************************************************************************
673
+ @mixin pep-button-states($pepperi-theme, $style: weak, $color-name: null) {
674
+ @include pep-state-default($pepperi-theme, $style, $color-name, true);
675
+ &:hover {
676
+ @include pep-state-hover($pepperi-theme, $style, $color-name, true);
677
+ }
678
+ &:focus {
679
+ @include pep-state-focus($pepperi-theme, $style, $color-name, true);
680
+ }
681
+ &:active {
682
+ @include pep-state-active($pepperi-theme, $style, $color-name, true);
683
+ }
684
+ &:disabled {
685
+ &:not(.ignore-disabled) {
686
+ @include pep-state-disable($pepperi-theme, $style, $color-name, true);
687
+ }
688
+ }
689
+ }
690
+
691
+ // ******************************************************************************
692
+ // Form field states declerations
693
+ // ******************************************************************************
694
+ @mixin pep-form-field-states($pepperi-theme, $style: weak, $color-name: null) {
695
+ // Default
696
+ .mat-form-field-flex {
697
+ @include pep-state-default($pepperi-theme, $style, $color-name);
698
+ }
699
+
700
+ // Hover
701
+ &:hover {
702
+ .ignore-disabled,
703
+ &:not(.mat-form-field-disabled) {
704
+ .mat-form-field-flex {
705
+ @include pep-state-hover($pepperi-theme, $style, $color-name);
706
+ }
707
+ }
708
+ }
709
+
710
+ // Focused
711
+ &.mat-focused {
712
+ .ignore-disabled,
713
+ &:not(.mat-form-field-disabled) {
714
+ .mat-form-field-flex {
715
+ @include pep-state-focus($pepperi-theme, $style, $color-name);
716
+ }
717
+ }
718
+ }
719
+
720
+ // Active
721
+ &.active,
722
+ &:active {
723
+ .ignore-disabled,
724
+ &:not(.mat-form-field-disabled) {
725
+ .mat-form-field-flex {
726
+ @include pep-state-active($pepperi-theme, $style, $color-name);
727
+ }
728
+ }
729
+ }
730
+
731
+ // Disabled
732
+ &.mat-form-field-disabled {
733
+ &:not(.ignore-disabled) {
734
+ .mat-form-field-flex {
735
+ @include pep-state-disable($pepperi-theme, $style, $color-name);
736
+ }
737
+ }
738
+ }
739
+ }
740
+
741
+ // ******************************************************************************
742
+ // Table states declerations
743
+ // ******************************************************************************
744
+ @mixin state-table-row-default($pepperi-theme) {
745
+
746
+ }
747
+ @mixin state-table-row-hover($pepperi-theme) {
748
+ background: get-pep-color($pepperi-theme, color-weak, color-tran-30);
749
+ }
750
+ @mixin state-table-row-active($pepperi-theme) {
751
+
752
+ }
753
+ @mixin state-table-row-selected($pepperi-theme) {
754
+ background: get-pep-color($pepperi-theme, color-system-success, color-tran-20);
755
+ }
756
+
757
+ // ******************************************************************************
758
+ // Card states declerations
759
+ // ******************************************************************************
760
+ @mixin state-card-default($pepperi-theme) {
761
+ background: get-pep-color($pepperi-theme, color-system-primary-invert, color-base);
762
+ box-shadow: get-pep-shadow($pepperi-theme, shadow-card, soft);
763
+
764
+ transition: box-shadow 0.25s;
765
+ }
766
+ @mixin state-card-hover($pepperi-theme) {
767
+ box-shadow: get-pep-shadow($pepperi-theme, shadow-card, regular);
768
+ }
769
+ @mixin state-card-active($pepperi-theme) {
770
+ box-shadow: get-pep-shadow($pepperi-theme, shadow-card, hard);
771
+ // @include focus($pepperi-theme);
772
+ }
773
+ @mixin state-card-selected($pepperi-theme) {
774
+ background: get-pep-color($pepperi-theme, color-system-success, color-tran-20);;
775
+ box-shadow: none;
776
+ }
777
+
778
+ // ******************************************************************************
779
+ // General List declerations
780
+ // ******************************************************************************
781
+ @mixin state-list-body-default($pepperi-theme) {
782
+ background: get-pep-color($pepperi-theme, color-system-primary-invert, color-base);
783
+ }
784
+
785
+ // ******************************************************************************
786
+ // Tabs declerations
787
+ // ******************************************************************************
788
+ // @mixin mat-tabs-fixed-header-width($side-width) {
789
+ // width: calc(100% - (#{$side-width} + #{$double-content-padding} + #{$double-content-margin}));
790
+
791
+ // @media (max-width: $screen-max-size-md) {
792
+ // width: calc(100% - (#{$double-content-padding} + #{$double-content-margin}));
793
+ // }
794
+
795
+ // @media (max-width: $screen-max-size-xs) {
796
+ // width: calc(100% - (#{$content-padding} + #{$content-margin}));
797
+ // }
798
798
  // }