@pepperi-addons/ngx-lib 0.2.59-query-builder.13 → 0.2.61-beta.2

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