@energycap/components 0.42.4-esbuild.20250131-1219 → 0.42.4-esbuild.20250131-1441

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 (324) hide show
  1. package/esm2022/energycap-components.mjs +5 -0
  2. package/esm2022/lib/components.module.mjs +423 -0
  3. package/esm2022/lib/controls/banner/banner.component.mjs +109 -0
  4. package/esm2022/lib/controls/button/button.component.mjs +106 -0
  5. package/esm2022/lib/controls/button/copy-button-base.directive.mjs +67 -0
  6. package/esm2022/lib/controls/button/copy-button.directive.mjs +28 -0
  7. package/esm2022/lib/controls/button/copy-table-button.directive.mjs +43 -0
  8. package/esm2022/lib/controls/calendar/calendar-item.component.mjs +91 -0
  9. package/esm2022/lib/controls/calendar/calendar.component.mjs +248 -0
  10. package/esm2022/lib/controls/calendar/calendar.types.mjs +2 -0
  11. package/esm2022/lib/controls/checkbox/checkbox.component.mjs +140 -0
  12. package/esm2022/lib/controls/collapsible-toggle/collapsible-toggle.component.mjs +38 -0
  13. package/esm2022/lib/controls/combobox/combobox.component.mjs +879 -0
  14. package/esm2022/lib/controls/date-input/date-input-selection-strategies/date-input-selection-strategy-base.mjs +57 -0
  15. package/esm2022/lib/controls/date-input/date-input-selection-strategies/day-selection-strategy.mjs +62 -0
  16. package/esm2022/lib/controls/date-input/date-input-selection-strategies/last-28-days-selection-strategy.mjs +100 -0
  17. package/esm2022/lib/controls/date-input/date-input-selection-strategies/last-7-days-selection-strategy.mjs +101 -0
  18. package/esm2022/lib/controls/date-input/date-input-selection-strategies/month-selection-strategy.mjs +76 -0
  19. package/esm2022/lib/controls/date-input/date-input-selection-strategies/quarter-selection-strategy.mjs +79 -0
  20. package/esm2022/lib/controls/date-input/date-input-selection-strategies/range-selection-strategy.mjs +210 -0
  21. package/esm2022/lib/controls/date-input/date-input-selection-strategies/year-selection-strategy.mjs +81 -0
  22. package/esm2022/lib/controls/date-input/date-input.component.mjs +464 -0
  23. package/esm2022/lib/controls/date-input/date-input.types.mjs +44 -0
  24. package/esm2022/lib/controls/dropdown/dropdown.component.mjs +243 -0
  25. package/esm2022/lib/controls/file-upload/file-upload.component.mjs +261 -0
  26. package/esm2022/lib/controls/form-control/form-control.component.mjs +98 -0
  27. package/esm2022/lib/controls/form-control-base.mjs +151 -0
  28. package/esm2022/lib/controls/form-control-label/form-control-label.component.mjs +136 -0
  29. package/esm2022/lib/controls/form-group/form-group.component.mjs +261 -0
  30. package/esm2022/lib/controls/help-popover/help-popover.component.mjs +31 -0
  31. package/esm2022/lib/controls/item-picker/item-picker.component.mjs +329 -0
  32. package/esm2022/lib/controls/link-button/link-button.component.mjs +11 -0
  33. package/esm2022/lib/controls/menu/menu.component.mjs +485 -0
  34. package/esm2022/lib/controls/navigation/link-item.mjs +2 -0
  35. package/esm2022/lib/controls/navigation/nav-group.mjs +39 -0
  36. package/esm2022/lib/controls/navigation/nav-item-active.directive.mjs +92 -0
  37. package/esm2022/lib/controls/navigation/nav-item.mjs +2 -0
  38. package/esm2022/lib/controls/numericbox/numericbox.component.mjs +372 -0
  39. package/esm2022/lib/controls/popover/popover.component.mjs +117 -0
  40. package/esm2022/lib/controls/radio-button/radio-button-option.mjs +3 -0
  41. package/esm2022/lib/controls/radio-button/radio-button.component.mjs +82 -0
  42. package/esm2022/lib/controls/select/select.component.mjs +88 -0
  43. package/esm2022/lib/controls/tabs/tabs.component.mjs +47 -0
  44. package/esm2022/lib/controls/textbox/textbox.component.mjs +155 -0
  45. package/esm2022/lib/core/cache.service.mjs +105 -0
  46. package/esm2022/lib/core/custom-validators.mjs +29 -0
  47. package/esm2022/lib/core/date-time-helper.mjs +228 -0
  48. package/esm2022/lib/core/error.service.mjs +61 -0
  49. package/esm2022/lib/core/router-helper.service.mjs +111 -0
  50. package/esm2022/lib/core/scroll.service.mjs +89 -0
  51. package/esm2022/lib/core/telemetry-tracker.service.mjs +16 -0
  52. package/esm2022/lib/core/telemetry.service.mjs +38 -0
  53. package/esm2022/lib/core/validation-message.service.mjs +185 -0
  54. package/esm2022/lib/core/validation-patterns.mjs +31 -0
  55. package/esm2022/lib/core/window.service.mjs +186 -0
  56. package/esm2022/lib/display/app-bar/app-bar.component.mjs +46 -0
  57. package/esm2022/lib/display/avatar/avatar.component.mjs +67 -0
  58. package/esm2022/lib/display/avatar/avatar.service.mjs +64 -0
  59. package/esm2022/lib/display/confirm/confirm.component.mjs +168 -0
  60. package/esm2022/lib/display/dialog/dialog-content.mjs +2 -0
  61. package/esm2022/lib/display/dialog/dialog-group/dialog-group.component.mjs +63 -0
  62. package/esm2022/lib/display/dialog/dialog-types.mjs +77 -0
  63. package/esm2022/lib/display/dialog/dialog.component.mjs +281 -0
  64. package/esm2022/lib/display/dialog/dialog.service.mjs +71 -0
  65. package/esm2022/lib/display/help/help-types.mjs +2 -0
  66. package/esm2022/lib/display/hierarchy/hierarchy-base.mjs +111 -0
  67. package/esm2022/lib/display/hierarchy/hierarchy-mocks.spec.mjs +54 -0
  68. package/esm2022/lib/display/hierarchy/hierarchy-tree/hierarchy-tree.component.mjs +61 -0
  69. package/esm2022/lib/display/item-display/item-display.component.mjs +81 -0
  70. package/esm2022/lib/display/json-display/json-display.component.mjs +47 -0
  71. package/esm2022/lib/display/resizable/resizable-base.mjs +120 -0
  72. package/esm2022/lib/display/resizable/resizable.component.mjs +57 -0
  73. package/esm2022/lib/display/spinner/spinner.component.mjs +12 -0
  74. package/esm2022/lib/display/splash/splash.component.mjs +42 -0
  75. package/esm2022/lib/display/splash/splash.service.mjs +35 -0
  76. package/esm2022/lib/display/table/resizable-column.component.mjs +20 -0
  77. package/esm2022/lib/display/table/resizable-table.directive.mjs +227 -0
  78. package/esm2022/lib/display/table/searchable-table.component.mjs +342 -0
  79. package/esm2022/lib/display/table/table-detail-row.component.mjs +28 -0
  80. package/esm2022/lib/display/table/table-locked-column.component.mjs +58 -0
  81. package/esm2022/lib/display/table/table-master-header-row.component.mjs +14 -0
  82. package/esm2022/lib/display/table/table-master-row.component.mjs +163 -0
  83. package/esm2022/lib/display/table/table-pagination.component.mjs +155 -0
  84. package/esm2022/lib/display/table/table-selectable-row.component.mjs +235 -0
  85. package/esm2022/lib/display/table/table.component.mjs +249 -0
  86. package/esm2022/lib/display/tags/tag.mjs +18 -0
  87. package/esm2022/lib/display/tags/tags.component.mjs +77 -0
  88. package/esm2022/lib/display/toast/toast/toast.component.mjs +77 -0
  89. package/esm2022/lib/display/toast/toast-types.mjs +8 -0
  90. package/esm2022/lib/display/toast/toast.service.mjs +35 -0
  91. package/esm2022/lib/display/toast/toaster/toaster.component.mjs +114 -0
  92. package/esm2022/lib/display/tooltip/tooltip.component.mjs +28 -0
  93. package/esm2022/lib/display/tooltip/tooltip.service.mjs +78 -0
  94. package/esm2022/lib/display/tooltip-directive/tooltip.directive.mjs +173 -0
  95. package/esm2022/lib/display/tour/tour-types.mjs +34 -0
  96. package/esm2022/lib/display/tour/tour.component.mjs +398 -0
  97. package/esm2022/lib/display/tour/tour.service.mjs +75 -0
  98. package/esm2022/lib/display/tree/tree.component.mjs +135 -0
  99. package/esm2022/lib/display/view-overlay/view-overlay.component.mjs +58 -0
  100. package/esm2022/lib/shared/directives/click-area-for/click-area-for.directive.mjs +32 -0
  101. package/esm2022/lib/shared/directives/if-viewport-width/if-viewport-width.directive.mjs +111 -0
  102. package/esm2022/lib/shared/directives/keyboard-nav-container/keyboard-nav-container.directive.mjs +100 -0
  103. package/esm2022/lib/shared/directives/popup/popup-container.directive.mjs +166 -0
  104. package/esm2022/lib/shared/display/pipes/date-display.pipe.mjs +50 -0
  105. package/esm2022/lib/shared/display/pipes/highlight-text.pipe.mjs +30 -0
  106. package/esm2022/lib/shared/display/pipes/relative-date.pipe.mjs +62 -0
  107. package/esm2022/lib/shared/display/pipes/row-count.pipe.mjs +48 -0
  108. package/esm2022/lib/shared/display/pipes/time-display.pipe.mjs +41 -0
  109. package/esm2022/lib/shared/display.mjs +6 -0
  110. package/esm2022/lib/shared/form-group.helper.mjs +67 -0
  111. package/esm2022/lib/shared/json-helper.mjs +19 -0
  112. package/esm2022/lib/shared/lodash-helper.mjs +52 -0
  113. package/esm2022/lib/shared/page/page-base/page-base.component.mjs +387 -0
  114. package/esm2022/lib/shared/page/page-statuses.mjs +23 -0
  115. package/esm2022/lib/shared/page/page-title/page-title.component.mjs +23 -0
  116. package/esm2022/lib/shared/page/page-view/page-view.component.mjs +147 -0
  117. package/esm2022/lib/shared/testing/copy-button-base-test-injector-factory.spec.mjs +17 -0
  118. package/esm2022/lib/shared/testing/hierarchy-base-test-injector-factory.spec.mjs +17 -0
  119. package/esm2022/lib/shared/testing/page-base-component-test-helper.spec.mjs +38 -0
  120. package/esm2022/lib/shared/testing/page-base-component-test-injector-factory.spec.mjs +98 -0
  121. package/esm2022/lib/shared/testing/public-mocks.spec.mjs +148 -0
  122. package/esm2022/lib/shared/testing/spy-factory.spec.mjs +40 -0
  123. package/esm2022/lib/shared/testing/translation-mocks.spec.mjs +57 -0
  124. package/esm2022/lib/shared/user-preference.service.mjs +17 -0
  125. package/esm2022/lib/shared/wizard/wizard-base/wizard-base.component.mjs +246 -0
  126. package/esm2022/lib/shared/wizard/wizard-buttons/wizard-buttons.component.mjs +68 -0
  127. package/esm2022/lib/shared/wizard/wizard-progress/wizard-progress.component.mjs +18 -0
  128. package/esm2022/public-api.mjs +117 -0
  129. package/fesm2022/energycap-components.mjs +13219 -0
  130. package/fesm2022/energycap-components.mjs.map +1 -0
  131. package/index.d.ts +5 -0
  132. package/lib/components.module.d.ts +92 -0
  133. package/lib/controls/banner/banner.component.d.ts +50 -0
  134. package/lib/controls/button/button.component.d.ts +78 -0
  135. package/lib/controls/button/copy-button-base.directive.d.ts +20 -0
  136. package/lib/controls/button/copy-button.directive.d.ts +14 -0
  137. package/lib/controls/button/copy-table-button.directive.d.ts +19 -0
  138. package/lib/controls/calendar/calendar-item.component.d.ts +22 -0
  139. package/lib/controls/calendar/calendar.component.d.ts +52 -0
  140. package/lib/controls/calendar/calendar.types.d.ts +11 -0
  141. package/lib/controls/checkbox/checkbox.component.d.ts +65 -0
  142. package/lib/controls/collapsible-toggle/collapsible-toggle.component.d.ts +25 -0
  143. package/lib/controls/combobox/combobox.component.d.ts +418 -0
  144. package/lib/controls/date-input/date-input-selection-strategies/date-input-selection-strategy-base.d.ts +42 -0
  145. package/lib/controls/date-input/date-input-selection-strategies/day-selection-strategy.d.ts +21 -0
  146. package/lib/controls/date-input/date-input-selection-strategies/last-28-days-selection-strategy.d.ts +21 -0
  147. package/lib/controls/date-input/date-input-selection-strategies/last-7-days-selection-strategy.d.ts +21 -0
  148. package/lib/controls/date-input/date-input-selection-strategies/month-selection-strategy.d.ts +18 -0
  149. package/lib/controls/date-input/date-input-selection-strategies/quarter-selection-strategy.d.ts +18 -0
  150. package/lib/controls/date-input/date-input-selection-strategies/range-selection-strategy.d.ts +21 -0
  151. package/lib/controls/date-input/date-input-selection-strategies/year-selection-strategy.d.ts +20 -0
  152. package/lib/controls/date-input/date-input.component.d.ts +115 -0
  153. package/lib/controls/date-input/date-input.types.d.ts +62 -0
  154. package/lib/controls/dropdown/dropdown.component.d.ts +161 -0
  155. package/lib/controls/file-upload/file-upload.component.d.ts +124 -0
  156. package/lib/controls/form-control/form-control.component.d.ts +28 -0
  157. package/lib/controls/form-control-base.d.ts +110 -0
  158. package/lib/controls/form-control-label/form-control-label.component.d.ts +73 -0
  159. package/lib/controls/form-group/form-group.component.d.ts +105 -0
  160. package/lib/controls/help-popover/help-popover.component.d.ts +11 -0
  161. package/lib/controls/item-picker/item-picker.component.d.ts +164 -0
  162. package/lib/controls/link-button/link-button.component.d.ts +5 -0
  163. package/lib/controls/menu/menu.component.d.ts +255 -0
  164. package/lib/controls/navigation/link-item.d.ts +32 -0
  165. package/lib/controls/navigation/nav-group.d.ts +18 -0
  166. package/lib/controls/navigation/nav-item-active.directive.d.ts +42 -0
  167. package/lib/controls/navigation/nav-item.d.ts +31 -0
  168. package/lib/controls/numericbox/numericbox.component.d.ts +148 -0
  169. package/lib/controls/popover/popover.component.d.ts +51 -0
  170. package/lib/controls/radio-button/radio-button-option.d.ts +19 -0
  171. package/lib/controls/radio-button/radio-button.component.d.ts +53 -0
  172. package/lib/controls/select/select.component.d.ts +44 -0
  173. package/lib/controls/tabs/tabs.component.d.ts +30 -0
  174. package/lib/controls/textbox/textbox.component.d.ts +107 -0
  175. package/lib/core/cache.service.d.ts +33 -0
  176. package/lib/core/custom-validators.d.ts +20 -0
  177. package/lib/core/date-time-helper.d.ts +101 -0
  178. package/lib/core/error.service.d.ts +20 -0
  179. package/lib/core/router-helper.service.d.ts +48 -0
  180. package/lib/core/scroll.service.d.ts +36 -0
  181. package/lib/core/telemetry-tracker.service.d.ts +13 -0
  182. package/lib/core/telemetry.service.d.ts +31 -0
  183. package/lib/core/validation-message.service.d.ts +26 -0
  184. package/lib/core/validation-patterns.d.ts +22 -0
  185. package/lib/core/window.service.d.ts +116 -0
  186. package/lib/display/app-bar/app-bar.component.d.ts +20 -0
  187. package/lib/display/avatar/avatar.component.d.ts +35 -0
  188. package/lib/display/avatar/avatar.service.d.ts +24 -0
  189. package/lib/display/confirm/confirm.component.d.ts +123 -0
  190. package/lib/display/dialog/dialog-content.d.ts +19 -0
  191. package/lib/display/dialog/dialog-group/dialog-group.component.d.ts +32 -0
  192. package/lib/display/dialog/dialog-types.d.ts +130 -0
  193. package/lib/display/dialog/dialog.component.d.ts +120 -0
  194. package/lib/display/dialog/dialog.service.d.ts +48 -0
  195. package/lib/display/help/help-types.d.ts +33 -0
  196. package/lib/display/hierarchy/hierarchy-base.d.ts +97 -0
  197. package/lib/display/hierarchy/hierarchy-mocks.spec.d.ts +53 -0
  198. package/lib/display/hierarchy/hierarchy-tree/hierarchy-tree.component.d.ts +34 -0
  199. package/lib/display/item-display/item-display.component.d.ts +43 -0
  200. package/lib/display/json-display/json-display.component.d.ts +16 -0
  201. package/lib/display/resizable/resizable-base.d.ts +67 -0
  202. package/lib/display/resizable/resizable.component.d.ts +31 -0
  203. package/lib/display/spinner/spinner.component.d.ts +5 -0
  204. package/lib/display/splash/splash.component.d.ts +16 -0
  205. package/lib/display/splash/splash.service.d.ts +22 -0
  206. package/lib/display/table/resizable-column.component.d.ts +10 -0
  207. package/lib/display/table/resizable-table.directive.d.ts +93 -0
  208. package/lib/display/table/searchable-table.component.d.ts +206 -0
  209. package/lib/display/table/table-detail-row.component.d.ts +8 -0
  210. package/lib/display/table/table-locked-column.component.d.ts +20 -0
  211. package/lib/display/table/table-master-header-row.component.d.ts +9 -0
  212. package/lib/display/table/table-master-row.component.d.ts +113 -0
  213. package/lib/display/table/table-pagination.component.d.ts +91 -0
  214. package/lib/display/table/table-selectable-row.component.d.ts +102 -0
  215. package/lib/display/table/table.component.d.ts +121 -0
  216. package/lib/display/tags/tag.d.ts +18 -0
  217. package/lib/display/tags/tags.component.d.ts +48 -0
  218. package/lib/display/toast/toast/toast.component.d.ts +23 -0
  219. package/lib/display/toast/toast-types.d.ts +24 -0
  220. package/lib/display/toast/toast.service.d.ts +20 -0
  221. package/lib/display/toast/toaster/toaster.component.d.ts +35 -0
  222. package/lib/display/tooltip/tooltip.component.d.ts +70 -0
  223. package/lib/display/tooltip/tooltip.service.d.ts +16 -0
  224. package/lib/display/tooltip-directive/tooltip.directive.d.ts +44 -0
  225. package/lib/display/tour/tour-types.d.ts +70 -0
  226. package/lib/display/tour/tour.component.d.ts +147 -0
  227. package/lib/display/tour/tour.service.d.ts +38 -0
  228. package/lib/display/tree/tree.component.d.ts +75 -0
  229. package/lib/display/view-overlay/view-overlay.component.d.ts +38 -0
  230. package/lib/shared/directives/click-area-for/click-area-for.directive.d.ts +14 -0
  231. package/lib/shared/directives/if-viewport-width/if-viewport-width.directive.d.ts +60 -0
  232. package/lib/shared/directives/keyboard-nav-container/keyboard-nav-container.directive.d.ts +23 -0
  233. package/lib/shared/directives/popup/popup-container.directive.d.ts +101 -0
  234. package/lib/shared/display/pipes/date-display.pipe.d.ts +21 -0
  235. package/lib/shared/display/pipes/highlight-text.pipe.d.ts +9 -0
  236. package/lib/shared/display/pipes/relative-date.pipe.d.ts +36 -0
  237. package/lib/shared/display/pipes/row-count.pipe.d.ts +23 -0
  238. package/lib/shared/display/pipes/time-display.pipe.d.ts +18 -0
  239. package/lib/shared/display.d.ts +42 -0
  240. package/lib/shared/form-group.helper.d.ts +31 -0
  241. package/lib/shared/json-helper.d.ts +7 -0
  242. package/lib/shared/lodash-helper.d.ts +18 -0
  243. package/lib/shared/page/page-base/page-base.component.d.ts +259 -0
  244. package/lib/shared/page/page-statuses.d.ts +13 -0
  245. package/lib/shared/page/page-title/page-title.component.d.ts +9 -0
  246. package/lib/shared/page/page-view/page-view.component.d.ts +102 -0
  247. package/lib/shared/testing/copy-button-base-test-injector-factory.spec.d.ts +4 -0
  248. package/lib/shared/testing/hierarchy-base-test-injector-factory.spec.d.ts +4 -0
  249. package/lib/shared/testing/page-base-component-test-helper.spec.d.ts +30 -0
  250. package/lib/shared/testing/page-base-component-test-injector-factory.spec.d.ts +28 -0
  251. package/lib/shared/testing/public-mocks.spec.d.ts +90 -0
  252. package/lib/shared/testing/spy-factory.spec.d.ts +27 -0
  253. package/lib/shared/testing/translation-mocks.spec.d.ts +30 -0
  254. package/lib/shared/user-preference.service.d.ts +13 -0
  255. package/lib/shared/wizard/wizard-base/wizard-base.component.d.ts +134 -0
  256. package/lib/shared/wizard/wizard-buttons/wizard-buttons.component.d.ts +27 -0
  257. package/lib/shared/wizard/wizard-progress/wizard-progress.component.d.ts +10 -0
  258. package/package.json +2 -6
  259. package/public-api.d.ts +113 -0
  260. package/schematics/collection.json +10 -0
  261. package/schematics/rxjs-7-upgrade/index.d.ts +3 -0
  262. package/schematics/rxjs-7-upgrade/index.js +71 -0
  263. package/schematics/rxjs-7-upgrade/index.js.map +1 -0
  264. package/schematics/rxjs-7-upgrade/schema.d.ts +4 -0
  265. package/schematics/rxjs-7-upgrade/schema.js +3 -0
  266. package/schematics/rxjs-7-upgrade/schema.js.map +1 -0
  267. package/schematics/rxjs-7-upgrade/schema.json +14 -0
  268. package/schematics/utilities/typescript.d.ts +7 -0
  269. package/schematics/utilities/typescript.js +45 -0
  270. package/schematics/utilities/typescript.js.map +1 -0
  271. package/schematics/utilities/workspace.d.ts +8 -0
  272. package/schematics/utilities/workspace.js +72 -0
  273. package/schematics/utilities/workspace.js.map +1 -0
  274. package/src/assets/images/email-icon.png +0 -0
  275. package/src/assets/images/email-logo.png +0 -0
  276. package/src/assets/images/favicon-ech.svg +7 -0
  277. package/src/assets/images/favicon-esa.svg +6 -0
  278. package/src/assets/images/favicon-eum.svg +6 -0
  279. package/src/assets/images/favicon.svg +5 -0
  280. package/src/assets/images/icon-carbonhub.svg +10 -0
  281. package/src/assets/images/icon-eum.svg +5 -0
  282. package/src/assets/images/icon-ucp.svg +5 -0
  283. package/src/assets/images/icon-wattics.svg +5 -0
  284. package/src/assets/images/icon.svg +4 -0
  285. package/src/assets/images/logo.svg +3 -0
  286. package/src/assets/images/splash.gif +0 -0
  287. package/src/assets/locales/en_US.json +59 -0
  288. package/src/assets/scripts/unsupported-browser.js +17 -0
  289. package/src/styles/_base.scss +38 -0
  290. package/src/styles/_colors.scss +96 -0
  291. package/src/styles/_core.scss +4 -0
  292. package/src/styles/_functions.scss +114 -0
  293. package/src/styles/_global-variables.scss +232 -0
  294. package/src/styles/_icons.scss +24 -0
  295. package/src/styles/bootstrap/_grid.scss +34 -0
  296. package/src/styles/bootstrap/_reboot.scss +323 -0
  297. package/src/styles/components/_card.scss +21 -0
  298. package/src/styles/components/_link-icons.scss +38 -0
  299. package/src/styles/components/_splash.scss +57 -0
  300. package/src/styles/components/_unsupported-browsers.scss +24 -0
  301. package/src/styles/email/_email-base.scss +228 -0
  302. package/src/styles/email/email.scss +43 -0
  303. package/src/styles/index.scss +27 -0
  304. package/src/styles/mixins/_animations.scss +18 -0
  305. package/src/styles/mixins/_button-base.scss +185 -0
  306. package/src/styles/mixins/_card-base.scss +40 -0
  307. package/src/styles/mixins/_common.scss +52 -0
  308. package/src/styles/mixins/_dialog-base.scss +96 -0
  309. package/src/styles/mixins/_form-control-base.scss +641 -0
  310. package/src/styles/mixins/_login.scss +74 -0
  311. package/src/styles/mixins/_menu-base.scss +153 -0
  312. package/src/styles/mixins/_overlay-base.scss +33 -0
  313. package/src/styles/mixins/_resizable-base.scss +57 -0
  314. package/src/styles/mixins/_spinner-base.scss +34 -0
  315. package/src/styles/mixins/_table-base.scss +298 -0
  316. package/src/styles/mixins/_tabs-base.scss +110 -0
  317. package/src/styles/mixins/_tags-base.scss +116 -0
  318. package/src/styles/mixins/_text.scss +89 -0
  319. package/src/styles/mixins.scss +15 -0
  320. package/src/styles/utilities/_borders.scss +30 -0
  321. package/src/styles/utilities/_common.scss +49 -0
  322. package/src/styles/utilities/_layout.scss +116 -0
  323. package/src/styles/utilities/_spacing.scss +65 -0
  324. package/src/styles/utilities/_text.scss +139 -0
@@ -0,0 +1,110 @@
1
+ @mixin tab-active($style: tabs) {
2
+ color: var(--ec-tab-color-active, var(--ec-color-interactive));
3
+
4
+ @if $style == tabs {
5
+ border-color: var(--ec-tab-border-color-active, var(--ec-border-color-focus));
6
+ } @else {
7
+ background-color: var(--ec-tab-background-color-active, var(--ec-background-color));
8
+ }
9
+ }
10
+
11
+ @mixin tab($style: tabs) {
12
+ $height: 2rem;
13
+
14
+ @if $style == 'pills' {
15
+ $height: 1.75rem;
16
+ padding-left: .5rem;
17
+ padding-right: .5rem;
18
+ border-radius: var(--ec-border-radius);
19
+ border: 1px solid var(--ec-tab-border-color, var(--ec-border-color));
20
+
21
+ } @else {
22
+ padding-left: 0;
23
+ padding-right: 0;
24
+ border-bottom: 2px solid transparent;
25
+ margin-bottom: -1px;
26
+ }
27
+
28
+ align-items: center;
29
+ color: var(--ec-tab-color, var(--ec-color-secondary-dark));
30
+ cursor: pointer;
31
+ font-size: var(--ec-tab-font-size, var(--ec-font-size-label));
32
+ display: flex;
33
+ height: $height;
34
+ min-width: $height;
35
+
36
+ justify-content: center;
37
+
38
+ &.active {
39
+ @include tab-active($style);
40
+ }
41
+
42
+ &:hover,
43
+ &:focus {
44
+ // Override the default browser focus ring
45
+ outline: none;
46
+
47
+ @if $style == 'pills' {
48
+ border-color: var(--ec-tab-border-color-active, var(--ec-border-color-focus));
49
+ box-shadow: 0 0 0 1px var(--ec-tab-border-color-active, var(--ec-border-color-focus));
50
+ position: relative;
51
+ z-index: 1;
52
+ } @else {
53
+ border-color: var(--ec-tab-border-color-active, var(--ec-border-color-focus));
54
+ }
55
+ }
56
+
57
+ &.is-disabled {
58
+ opacity: var(--ec-form-control-opacity-disabled);
59
+ cursor: default;
60
+ pointer-events: none;
61
+ }
62
+ }
63
+
64
+ @mixin tab-icon-only {
65
+ padding: 0;
66
+ justify-content: center;
67
+
68
+ .ec-icon {
69
+ color: inherit;
70
+ }
71
+ }
72
+
73
+ @mixin tab-item($style: tabs) {
74
+ display: block;
75
+ min-width: 0;
76
+
77
+ &:not(:last-child) {
78
+ @if $style == tabs {
79
+ margin-right: 1rem;
80
+ }
81
+ }
82
+
83
+ @if $style == pills {
84
+ &:not(:first-child) {
85
+ margin-left: -1px;
86
+ }
87
+
88
+ .tab {
89
+ border-radius: 0;
90
+ }
91
+
92
+ &:first-child .tab {
93
+ border-top-left-radius: var(--ec-border-radius);
94
+ border-bottom-left-radius: var(--ec-border-radius);
95
+ }
96
+
97
+ &:last-child .tab {
98
+ border-top-right-radius: var(--ec-border-radius);
99
+ border-bottom-right-radius: var(--ec-border-radius);
100
+ }
101
+ }
102
+ }
103
+
104
+ @mixin tabbar($style: tabs) {
105
+ display: flex;
106
+
107
+ @if $style == tabs {
108
+ border-bottom: 1px solid var(--ec-tab-border-color, var(--ec-border-color));
109
+ }
110
+ }
@@ -0,0 +1,116 @@
1
+ @import '../core';
2
+
3
+ $tag-colors: (
4
+ info: (bg: var(--ec-color-cobalt-1), border: var(--ec-color-info)),
5
+ success: (bg: var(--ec-color-green-1), border: var(--ec-color-success)),
6
+ warning: (bg: var(--ec-color-yellow-1), border: var(--ec-color-caution)),
7
+ danger: (bg: var(--ec-color-red-1), border: var(--ec-color-danger)),
8
+ accent: (bg: var(--ec-color-purple-1), border: var(--ec-color-accent)),
9
+ chargeback: (bg: var(--ec-color-orange-1), border: var(--ec-color-orange-7)),
10
+ accrual: (bg: var(--ec-color-aqua-1), border: var(--ec-color-aqua-5)),
11
+ system: (bg: var(--ec-color-gray-1), border: var(--ec-color-gray-4)),
12
+ );
13
+
14
+ @mixin tag-type($type) {
15
+ $colors: map-get($tag-colors, $type);
16
+ background-color: map-get($colors, bg);
17
+ border-color: map-get($colors, border);
18
+
19
+ > .ec-icon:first-child {
20
+ color: map-get($colors, border);
21
+ }
22
+ }
23
+
24
+ @mixin tags {
25
+ @include ul-reset;
26
+ display: flex;
27
+
28
+ &.is-wrapped {
29
+ flex-wrap: wrap;
30
+ margin-top: .25rem;
31
+
32
+ > .tag {
33
+ margin-bottom: .25rem
34
+ }
35
+ }
36
+ }
37
+
38
+ @mixin tag() {
39
+ @include truncate;
40
+
41
+ background-color: var(--ec-color-gray-1);
42
+ border: 2px solid var(--ec-color-gray-4);
43
+ display: inline-flex;
44
+ align-items: center;
45
+ border-radius: calc(var(--ec-border-radius, .25rem) * 3);
46
+ height: 1.5rem;
47
+ line-height: 1.25rem;
48
+ padding: 0 0.4375rem;
49
+ vertical-align: top;
50
+
51
+ > .ec-icon:first-child {
52
+ margin-right: 0.1875rem;
53
+ }
54
+
55
+ .ec-icon {
56
+ display: flex;
57
+ -moz-osx-font-smoothing: grayscale;
58
+ -webkit-font-smoothing: antialiased;
59
+ width: auto;
60
+ height: auto;
61
+ min-width: 1em;
62
+ justify-content: center;
63
+ }
64
+
65
+ &.is-inverted {
66
+ background-color: var(--ec-background-color);
67
+ border-color: var(--ec-background-color);
68
+ }
69
+
70
+ @each $type, $color in $tag-colors {
71
+ &.is-#{$type} {
72
+ @include tag-type($type);
73
+ }
74
+ }
75
+ }
76
+
77
+ @mixin tag-close-btn {
78
+ background-color: transparent;
79
+ border: 0;
80
+ display: flex;
81
+ align-items: center;
82
+ padding: 0 .25rem;
83
+ height: 100%;
84
+ cursor: pointer;
85
+ position: relative;
86
+
87
+ &:hover,
88
+ &:focus {
89
+ &::before {
90
+ display: block;
91
+ content: '';
92
+ position: absolute;
93
+ left: .125rem;
94
+ right: .125rem;
95
+ top: .0625rem;
96
+ bottom: .0625rem;
97
+ background-color: rgba(26, 26, 35, .1);
98
+ border-radius: .125rem;
99
+ }
100
+ outline: none;
101
+ }
102
+ }
103
+
104
+ @mixin tag-condensed {
105
+ border-radius: var(--ec-border-radius);
106
+ border-width: 1px;
107
+ padding: 0 .25rem;
108
+ height: 1.125rem;
109
+ line-height: 1.125rem;
110
+ min-width: 1.125rem;
111
+ justify-content: center;
112
+
113
+ > .ec-icon:first-child {
114
+ margin-right: .125rem;
115
+ }
116
+ }
@@ -0,0 +1,89 @@
1
+ // Text mixins
2
+ @mixin text-title-1 {
3
+ color: var(--ec-color-primary-dark);
4
+ font-size: var(--ec-font-size-title);
5
+ font-weight: var(--ec-font-weight-bold);
6
+ line-height: 1.2;
7
+ margin: 0;
8
+ }
9
+
10
+ @mixin text-title-2 {
11
+ @include text-title-1;
12
+ font-weight: var(--ec-font-weight-normal);
13
+ }
14
+
15
+ @mixin text-heading-1 {
16
+ color: var(--ec-color-primary-dark);
17
+ font-size: var(--ec-font-size-body);
18
+ font-weight: var(--ec-font-weight-bold);
19
+ line-height: 1.5;
20
+ margin: 0;
21
+ }
22
+
23
+ @mixin text-heading-2 {
24
+ @include text-heading-1;
25
+ font-weight: var(--ec-font-weight-normal);
26
+ }
27
+
28
+ @mixin text-heading-3 {
29
+ color: var(--ec-color-secondary-dark);
30
+ font-size: var(--ec-font-size-label);
31
+ font-weight: var(--ec-font-weight-bold);
32
+ line-height: 1.333333333;
33
+ margin: 0;
34
+ text-transform: uppercase;
35
+ }
36
+
37
+ @mixin text-body-1 {
38
+ color: var(--ec-color-primary-dark);
39
+ font-size: var(--ec-font-size);
40
+ font-weight: var(--ec-font-weight-normal);
41
+ line-height: 1.285714286;
42
+ margin: 0;
43
+ }
44
+
45
+ @mixin text-body-2 {
46
+ color: var(--ec-color-primary-dark);
47
+ font-size: var(--ec-font-size-label);
48
+ font-weight: var(--ec-font-weight-normal);
49
+ line-height: 1.333333333;
50
+ margin: 0;
51
+ }
52
+
53
+ @mixin text-caption-1 {
54
+ color: var(--ec-color-secondary-dark);
55
+ font-size: var(--ec-font-size-label);
56
+ font-weight: var(--ec-font-weight-normal);
57
+ line-height: 1.333333333;
58
+ margin: 0;
59
+ }
60
+
61
+ @mixin text-caption-2 {
62
+ color: var(--ec-color-secondary-dark);
63
+ font-size: var(--ec-font-size-tiny);
64
+ font-weight: var(--ec-font-weight-bold);
65
+ line-height: 1.6;
66
+ margin: 0;
67
+ }
68
+
69
+ @mixin text-display-1 {
70
+ color: var(--ec-color-primary-dark);
71
+ font-size: var(--ec-font-size-body);
72
+ font-weight: var(--ec-font-weight-normal);
73
+ line-height: 1.25;
74
+ margin: 0;
75
+ }
76
+
77
+ @mixin text-link {
78
+ color: var(--ec-color-link) !important;
79
+ cursor: pointer;
80
+
81
+ &:hover {
82
+ text-decoration: underline;
83
+ }
84
+
85
+ &:focus {
86
+ outline: none;
87
+ text-decoration: underline;
88
+ }
89
+ }
@@ -0,0 +1,15 @@
1
+ // Component base mixins imported here so they are availabe to consumers
2
+ // of the component library
3
+ @import 'mixins/common';
4
+ @import 'mixins/button-base';
5
+ @import 'mixins/dialog-base';
6
+ @import 'mixins/form-control-base';
7
+ @import 'mixins/overlay-base';
8
+ @import 'mixins/spinner-base';
9
+ @import 'mixins/tabs-base';
10
+ @import 'mixins/table-base';
11
+ @import 'mixins/resizable-base';
12
+ @import 'mixins/login';
13
+ @import 'mixins/tags-base';
14
+ @import 'mixins/animations';
15
+ @import 'mixins/card-base';
@@ -0,0 +1,30 @@
1
+ .border-0 {
2
+ border: 0 !important;
3
+ }
4
+
5
+ .border-all {
6
+ border: 1px solid var(--ec-border-color) !important;
7
+ }
8
+
9
+ .border-all-dark {
10
+ border: 1px solid var(--ec-border-color-dark) !important;
11
+ }
12
+
13
+ $sides: (top, bottom, right, left);
14
+ @each $side in $sides {
15
+ .border-#{$side}-0 {
16
+ border-#{$side}: 0 !important;
17
+ }
18
+
19
+ .border-#{$side} {
20
+ border-#{$side}: 1px solid var(--ec-border-color) !important;
21
+ }
22
+
23
+ .border-#{$side}-dark {
24
+ border-#{$side}: 1px solid var(--ec-border-color-dark) !important;
25
+ }
26
+ }
27
+
28
+ .border-radius-0 {
29
+ --ec-border-radius: 0;
30
+ }
@@ -0,0 +1,49 @@
1
+ @import '../mixins/text';
2
+
3
+ .cursor-pointer {
4
+ cursor: pointer !important;
5
+ }
6
+
7
+ .control-group {
8
+ --ec-border-radius: 0;
9
+
10
+ > :first-child {
11
+ --ec-border-radius: .25rem 0 0 .25rem;
12
+ }
13
+
14
+ > :last-child {
15
+ --ec-border-radius: 0 .25rem .25rem 0;
16
+ }
17
+
18
+ > :not(:first-child) {
19
+ margin-left: -1px;
20
+ }
21
+ }
22
+
23
+ .control-group-reverse {
24
+ --ec-border-radius: 0;
25
+
26
+ > :last-child {
27
+ --ec-border-radius: .25rem 0 0 .25rem;
28
+ }
29
+
30
+ > :first-child {
31
+ --ec-border-radius: 0 .25rem .25rem 0;
32
+ }
33
+
34
+ > :not(:last-child) {
35
+ margin-left: -1px;
36
+ }
37
+ }
38
+
39
+ .popover-content-dark {
40
+ @include text-body-1;
41
+ --ec-color-link: var(--ec-color-link-light);
42
+ background-color: var(--ec-color-gray-8);
43
+ color: var(--ec-color-primary-light);
44
+ padding: .375rem .5rem .375rem 1.75rem;
45
+
46
+ &.is-right-positioned {
47
+ padding: .375rem 1.75rem .375rem .5rem;
48
+ }
49
+ }
@@ -0,0 +1,116 @@
1
+ // TODO: implement when bootstrap dependency is replaced
2
+
3
+ // .d-flex {
4
+ // display: flex !important;
5
+ // }
6
+
7
+ // .d-block {
8
+ // display: block !important;
9
+ // }
10
+
11
+ // .d-inline {
12
+ // display: inline !important;
13
+ // }
14
+
15
+ // .d-inline-block {
16
+ // display: inline-block !important;
17
+ // }
18
+
19
+ // .d-inline-flex {
20
+ // display: inline-flex !important;
21
+ // }
22
+
23
+ // .d-none {
24
+ // display: none !important;
25
+ // }
26
+
27
+ .flex-grow {
28
+ flex: 1 1 !important;
29
+ min-height: 0;
30
+ min-width: 0;
31
+ }
32
+
33
+ .flex-shrink {
34
+ flex: none !important;
35
+ }
36
+
37
+ .flex-shrink-max {
38
+ flex: 0 1 auto !important;
39
+ min-height: 0;
40
+ }
41
+
42
+ // .flex-column {
43
+ // flex-direction: column !important;
44
+ // }
45
+
46
+ // .flex-1 {
47
+ // flex: 1 1 !important;
48
+ // }
49
+
50
+ // .flex-2 {
51
+ // flex: 2 2 !important;
52
+ // }
53
+
54
+ // .flex-3 {
55
+ // flex: 3 3 !important;
56
+ // }
57
+
58
+ // .flex-4 {
59
+ // flex: 4 4 !important;
60
+ // }
61
+
62
+ // .flex-5 {
63
+ // flex: 5 5 !important;
64
+ // }
65
+
66
+ // .flex-6 {
67
+ // flex: 6 6 !important;
68
+ // }
69
+
70
+ // .align-items-center {
71
+ // align-items: center !important;
72
+ // }
73
+
74
+ // .align-items-baseline {
75
+ // align-items: baseline !important;
76
+ // }
77
+
78
+ // .justify-content-center {
79
+ // justify-content: center !important;
80
+ // }
81
+
82
+ // .h-100 {
83
+ // height: 100% !important;
84
+ // }
85
+
86
+ // .h-auto {
87
+ // height: auto !important;
88
+ // }
89
+
90
+ // .w-100 {
91
+ // width: 100% !important;
92
+ // }
93
+
94
+ // .w-auto {
95
+ // width: auto !important;
96
+ // }
97
+
98
+ .scroll-y {
99
+ overflow-y: auto !important;
100
+ }
101
+
102
+ .position-relative {
103
+ position: relative !important;
104
+ }
105
+
106
+ .position-absolute {
107
+ position: absolute !important;
108
+ }
109
+
110
+ .position-fixed {
111
+ position: fixed !important;
112
+ }
113
+
114
+ .v-align-middle {
115
+ vertical-align: middle !important;
116
+ }
@@ -0,0 +1,65 @@
1
+ // TODO: implement after removing bootstrap.grid.min.css dependency
2
+
3
+ // @mixin spacer-prop($selector, $prop, $i, $rem) {
4
+ // .#{$selector}-#{$i} {
5
+ // #{$prop}: $rem !important;
6
+ // }
7
+ // .#{$selector}x-#{$i} {
8
+ // #{$prop}-left: $rem !important;
9
+ // #{$prop}-right: $rem !important;
10
+ // }
11
+ // .#{$selector}y-#{$i} {
12
+ // #{$prop}-top: $rem !important;
13
+ // #{$prop}-bottom: $rem !important;
14
+ // }
15
+ // .#{$selector}l-#{$i} {
16
+ // #{$prop}-left: $rem !important;
17
+ // }
18
+ // .#{$selector}t-#{$i} {
19
+ // #{$prop}-top: $rem !important;
20
+ // }
21
+ // .#{$selector}r-#{$i} {
22
+ // #{$prop}-right: $rem !important;
23
+ // }
24
+ // .#{$selector}b-#{$i} {
25
+ // #{$prop}-bottom: $rem !important;
26
+ // }
27
+ // }
28
+
29
+ // @mixin spacers() {
30
+ // $i: 0;
31
+ // $rem: 0;
32
+ // @while $i < 6 {
33
+ // @include spacer-prop(p, padding, $i, $rem);
34
+ // @include spacer-prop(m, margin, $i, $rem);
35
+
36
+ // @if $i == 0 {
37
+ // $rem: .25rem;
38
+ // } @else {
39
+ // $rem: ($rem * 2);
40
+ // }
41
+ // $i: $i + 1;
42
+ // }
43
+ // }
44
+
45
+ // .ml-auto {
46
+ // margin-left: auto !important;
47
+ // }
48
+
49
+ // .mr-auto {
50
+ // margin-right: auto !important;
51
+ // }
52
+
53
+ // .mt-auto {
54
+ // margin-top: auto !important;
55
+ // }
56
+
57
+ // .mb-auto {
58
+ // margin-bottom: auto !important;
59
+ // }
60
+
61
+ // .m-auto {
62
+ // margin: auto !important;
63
+ // }
64
+
65
+ // @include spacers();