crdx-components 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/.github/workflows/publish.yml +38 -0
  2. package/bun.lock +491 -0
  3. package/crdx-components-1.0.0.tgz +0 -0
  4. package/crdx-components-tokenized-components-1.0.1.tgz +0 -0
  5. package/ng-package.json +12 -0
  6. package/npm +0 -0
  7. package/package.json +33 -0
  8. package/src/index.ts +45 -0
  9. package/src/lib/components/breadcrumb/breadcrumb.component.css +206 -0
  10. package/src/lib/components/breadcrumb/breadcrumb.component.html +15 -0
  11. package/src/lib/components/breadcrumb/breadcrumb.component.ts +47 -0
  12. package/src/lib/components/button/button.css +371 -0
  13. package/src/lib/components/button/button.html +187 -0
  14. package/src/lib/components/button/button.ts +103 -0
  15. package/src/lib/components/card/card.css +285 -0
  16. package/src/lib/components/card/card.html +69 -0
  17. package/src/lib/components/card/card.ts +93 -0
  18. package/src/lib/components/checkbox/checkbox-showcase.component.css +42 -0
  19. package/src/lib/components/checkbox/checkbox-showcase.component.html +36 -0
  20. package/src/lib/components/checkbox/checkbox-showcase.component.ts +13 -0
  21. package/src/lib/components/checkbox/checkbox.css +10 -0
  22. package/src/lib/components/checkbox/checkbox.html +13 -0
  23. package/src/lib/components/checkbox/checkbox.ts +64 -0
  24. package/src/lib/components/circular-progress-stepper/circular-progress-stepper.css +89 -0
  25. package/src/lib/components/circular-progress-stepper/circular-progress-stepper.html +23 -0
  26. package/src/lib/components/circular-progress-stepper/circular-progress-stepper.ts +40 -0
  27. package/src/lib/components/dialogs/alert-modal/alert-modal.css +118 -0
  28. package/src/lib/components/dialogs/alert-modal/alert-modal.html +29 -0
  29. package/src/lib/components/dialogs/alert-modal/alert-modal.ts +28 -0
  30. package/src/lib/components/dialogs/confirm-modal/confirm-modal.css +219 -0
  31. package/src/lib/components/dialogs/confirm-modal/confirm-modal.html +60 -0
  32. package/src/lib/components/dialogs/confirm-modal/confirm-modal.store.ts +139 -0
  33. package/src/lib/components/dialogs/confirm-modal/confirm-modal.ts +63 -0
  34. package/src/lib/components/dialogs/container-custom/container-custom.css +11 -0
  35. package/src/lib/components/dialogs/container-custom/container-custom.html +3 -0
  36. package/src/lib/components/dialogs/container-custom/container-custom.ts +37 -0
  37. package/src/lib/components/dialogs/container-custom/custom-modal.state.ts +57 -0
  38. package/src/lib/components/dialogs/error-modal/error-modal.css +53 -0
  39. package/src/lib/components/dialogs/error-modal/error-modal.html +17 -0
  40. package/src/lib/components/dialogs/error-modal/error-modal.ts +20 -0
  41. package/src/lib/components/dialogs/side-modal/side-modal.css +80 -0
  42. package/src/lib/components/dialogs/side-modal/side-modal.html +30 -0
  43. package/src/lib/components/dialogs/side-modal/side-modal.state.ts +78 -0
  44. package/src/lib/components/dialogs/side-modal/side-modal.ts +50 -0
  45. package/src/lib/components/divider/divider.css +24 -0
  46. package/src/lib/components/divider/divider.html +7 -0
  47. package/src/lib/components/divider/divider.ts +13 -0
  48. package/src/lib/components/footer-actions/footer/footer-flow.store.ts +30 -0
  49. package/src/lib/components/footer-actions/footer/footer.html +14 -0
  50. package/src/lib/components/footer-actions/footer/footer.ts +50 -0
  51. package/src/lib/components/footer-actions/modal-footer-actions/modal-footer-actions.css +44 -0
  52. package/src/lib/components/footer-actions/modal-footer-actions/modal-footer-actions.html +7 -0
  53. package/src/lib/components/footer-actions/modal-footer-actions/modal-footer-actions.ts +12 -0
  54. package/src/lib/components/footer-actions/page-footer-actions/page-footer-actions.css +31 -0
  55. package/src/lib/components/footer-actions/page-footer-actions/page-footer-actions.html +7 -0
  56. package/src/lib/components/footer-actions/page-footer-actions/page-footer-actions.ts +12 -0
  57. package/src/lib/components/form-field/select-field.css +178 -0
  58. package/src/lib/components/form-field/select-field.html +94 -0
  59. package/src/lib/components/form-field/select-field.ts +324 -0
  60. package/src/lib/components/form-field/text-field.css +41 -0
  61. package/src/lib/components/form-field/text-field.html +38 -0
  62. package/src/lib/components/form-field/text-field.ts +102 -0
  63. package/src/lib/components/header/header.css +142 -0
  64. package/src/lib/components/header/header.html +36 -0
  65. package/src/lib/components/header/header.ts +101 -0
  66. package/src/lib/components/icon-button/icon-button.css +445 -0
  67. package/src/lib/components/icon-button/icon-button.html +15 -0
  68. package/src/lib/components/icon-button/icon-button.ts +49 -0
  69. package/src/lib/components/list-item/list-item.css +122 -0
  70. package/src/lib/components/list-item/list-item.html +79 -0
  71. package/src/lib/components/list-item/list-item.ts +104 -0
  72. package/src/lib/components/menu/menu.css +39 -0
  73. package/src/lib/components/menu/menu.html +57 -0
  74. package/src/lib/components/menu/menu.ts +159 -0
  75. package/src/lib/components/shared-table/shared-table-cell-template.directive.ts +25 -0
  76. package/src/lib/components/shared-table/shared-table.component.css +223 -0
  77. package/src/lib/components/shared-table/shared-table.component.html +96 -0
  78. package/src/lib/components/shared-table/shared-table.component.ts +172 -0
  79. package/src/lib/components/sidebar/sidebar.css +234 -0
  80. package/src/lib/components/sidebar/sidebar.html +67 -0
  81. package/src/lib/components/sidebar/sidebar.ts +92 -0
  82. package/src/lib/components/slide-toggle/slide-toggle.css +0 -0
  83. package/src/lib/components/slide-toggle/slide-toggle.html +3 -0
  84. package/src/lib/components/slide-toggle/slide-toggle.ts +18 -0
  85. package/src/lib/components/spinner/spinner.css +9 -0
  86. package/src/lib/components/spinner/spinner.html +9 -0
  87. package/src/lib/components/spinner/spinner.ts +17 -0
  88. package/src/lib/components/tooltip/tooltip.css +32 -0
  89. package/src/lib/components/tooltip/tooltip.html +3 -0
  90. package/src/lib/components/tooltip/tooltip.ts +31 -0
  91. package/src/lib/icons/configuration-countable.svg +8 -0
  92. package/src/lib/icons/edit-table.svg +3 -0
  93. package/src/lib/icons/edit.svg +3 -0
  94. package/src/lib/icons/error-circle.svg +8 -0
  95. package/src/lib/icons/hub.svg +3 -0
  96. package/src/lib/icons/icon-menu.svg +8 -0
  97. package/src/lib/icons/info-error.svg +8 -0
  98. package/src/lib/icons/keyboard_arrow_down.svg +1 -0
  99. package/src/lib/icons/logo.svg +0 -0
  100. package/src/lib/icons/logout.svg +0 -0
  101. package/src/lib/icons/notifications.svg +0 -0
  102. package/src/lib/icons/profile-user-menu.svg +0 -0
  103. package/src/lib/icons/profile.svg +0 -0
  104. package/src/lib/icons/register-icons.ts +101 -0
  105. package/src/lib/icons/visibility.svg +0 -0
  106. package/src/lib/lib-ui/lib-ui.html +1 -0
  107. package/src/lib/lib-ui/lib-ui.scss +0 -0
  108. package/src/lib/lib-ui/lib-ui.ts +9 -0
  109. package/src/lib/styles/generated/_app-tokens.scss +2757 -0
  110. package/src/lib/styles/generated/_md3-tokens.scss +179 -0
  111. package/src/lib/styles/generated/_tokens-avatars.scss +4 -0
  112. package/src/lib/styles/global-material-theme.scss +69 -0
  113. package/src/lib/styles/index.scss +16 -0
  114. package/src/lib/styles/layout.scss +29 -0
  115. package/src/lib/styles/overrides/_index.scss +11 -0
  116. package/src/lib/styles/overrides/_mat-button-overrides.scss +105 -0
  117. package/src/lib/styles/overrides/_mat-checkbox-overrides.scss +49 -0
  118. package/src/lib/styles/overrides/_mat-form-field-overrides.scss +148 -0
  119. package/src/lib/styles/overrides/_mat-icon-button-overrides.scss +20 -0
  120. package/src/lib/styles/overrides/_mat-list-overrides.scss +59 -0
  121. package/src/lib/styles/overrides/_mat-slide-toggle-overrides.scss +33 -0
  122. package/src/lib/styles/overrides/_mat-table-overrides.scss +259 -0
  123. package/src/lib/styles/overrides/_mat-tabs-overrides.scss +116 -0
  124. package/src/lib/styles/scrollbar.scss +40 -0
  125. package/src/lib/styles/text-classes.scss +116 -0
  126. package/src/lib/styles/typography.scss +14 -0
  127. package/tsconfig.json +30 -0
  128. package/tsconfig.lib.json +20 -0
@@ -0,0 +1,59 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ /// List overrides (M3). Tokens: _app-tokens (lists-wip-common).
4
+ html {
5
+ @include mat.list-overrides((
6
+ active-indicator-shape: calc(var(--app-lists-wip-common-shape-list-list-item-selected-container-shape) * 1px),
7
+ list-item-container-shape: calc(var(--app-lists-wip-common-shape-list-list-item-container-shape) * 1px),
8
+ list-item-disabled-label-text-color: var(--app-lists-wip-common-color-disabled-list-list-item-disabled-label-text-color),
9
+ list-item-disabled-label-text-opacity: calc(var(--app-lists-wip-common-color-disabled-list-list-item-disabled-label-text-opacity) / 100),
10
+ list-item-disabled-leading-icon-color: var(--app-lists-wip-common-color-disabled-list-list-item-disabled-leading-icon-color),
11
+ list-item-disabled-leading-icon-opacity: calc(var(--app-lists-wip-common-color-disabled-list-list-item-disabled-leading-icon-opacity) / 100),
12
+ list-item-disabled-state-layer-color: var(--app-lists-wip-common-color-disabled-list-list-item-disabled-state-layer-color),
13
+ list-item-disabled-state-layer-opacity: calc(var(--app-lists-wip-common-color-disabled-list-list-item-disabled-state-layer-opacity) / 100),
14
+ list-item-disabled-trailing-icon-color: var(--app-lists-wip-common-color-disabled-list-list-item-disabled-trailing-icon-color),
15
+ list-item-disabled-trailing-icon-opacity: calc(var(--app-lists-wip-common-color-disabled-list-list-item-disabled-trailing-icon-opacity) / 100),
16
+ list-item-focus-label-text-color: var(--app-lists-wip-common-color-focused-list-list-item-focus-label-text-color),
17
+ list-item-focus-state-layer-color: var(--app-lists-wip-common-color-focused-list-list-item-focus-state-layer-color),
18
+ list-item-focus-state-layer-opacity: calc(var(--app-lists-wip-common-color-focused-list-list-item-focus-state-layer-opacity) / 100),
19
+ list-item-hover-label-text-color: var(--app-lists-wip-common-color-hovered-list-list-item-hover-label-text-color),
20
+ list-item-label-text-color: var(--app-lists-wip-common-color-enabled-list-list-item-label-text-color),
21
+ list-item-leading-avatar-color: var(--app-lists-wip-common-color-enabled-list-list-item-leading-avatar-color),
22
+ list-item-leading-avatar-shape: 50%,
23
+ list-item-leading-avatar-size: calc(var(--app-lists-wip-common-typography-list-list-item-leading-avatar-size) * 1px),
24
+ list-item-leading-icon-color: var(--app-lists-wip-common-color-enabled-list-list-item-leading-icon-color),
25
+ list-item-leading-icon-size: calc(var(--app-lists-wip-common-typography-list-list-item-leading-icon-size) * 1px),
26
+ list-item-selected-trailing-icon-color: var(--app-lists-wip-common-color-enabled-selected-list-list-item-selected-trailing-icon-color),
27
+ list-item-supporting-text-color: var(--app-lists-wip-common-color-enabled-list-list-item-supporting-text-color),
28
+ list-item-trailing-icon-color: var(--app-lists-wip-common-color-enabled-list-list-item-trailing-icon-color),
29
+ list-item-trailing-icon-size: calc(var(--app-lists-wip-common-typography-list-list-item-trailing-icon-size) * 1px),
30
+ list-item-trailing-supporting-text-color: var(--app-lists-wip-common-color-enabled-list-list-item-trailing-supporting-text-color),
31
+ list-item-selected-container-color: var(--app-lists-wip-common-color-enabled-selected-list-list-item-selected-container-color),
32
+ list-item-hover-leading-icon-color: var(--app-lists-wip-common-color-hovered-list-list-item-hover-leading-icon-color),
33
+ list-item-hover-trailing-icon-color: var(--app-lists-wip-common-color-hovered-list-list-item-hover-trailing-icon-color),
34
+ list-item-label-text-font: var(--app-lists-wip-common-typography-list-list-item-label-text-font, 'Heebo'),
35
+ list-item-label-text-line-height: calc(var(--app-lists-wip-common-typography-list-list-item-label-text-line-height) * 1px),
36
+ list-item-label-text-size: calc(var(--app-lists-wip-common-typography-list-list-item-label-text-size) * 1px),
37
+ list-item-label-text-tracking: var(--app-lists-wip-common-typography-list-list-item-label-text-tracking),
38
+ list-item-label-text-weight: var(--app-lists-wip-common-typography-list-list-item-label-text-weight),
39
+ list-item-supporting-text-font: var(--app-lists-wip-common-typography-list-list-item-supporting-text-font, 'Heebo'),
40
+ list-item-supporting-text-line-height: calc(var(--app-lists-wip-common-typography-list-list-item-supporting-text-line-height) * 1px),
41
+ list-item-supporting-text-size: calc(var(--app-lists-wip-common-typography-list-list-item-supporting-text-size) * 1px),
42
+ list-item-supporting-text-tracking: var(--app-lists-wip-common-typography-list-list-item-supporting-text-tracking),
43
+ list-item-supporting-text-weight: var(--app-lists-wip-common-typography-list-list-item-supporting-text-weight),
44
+ list-item-trailing-supporting-text-font: var(--app-lists-wip-common-typography-list-list-item-trailing-supporting-text-font, 'Heebo'),
45
+ list-item-trailing-supporting-text-line-height: calc(var(--app-lists-wip-common-typography-list-list-item-trailing-supporting-text-line-height) * 1px),
46
+ list-item-trailing-supporting-text-size: calc(var(--app-lists-wip-common-typography-list-list-item-trailing-supporting-text-size) * 1px),
47
+ list-item-trailing-supporting-text-tracking: var(--app-lists-wip-common-typography-list-list-item-trailing-supporting-text-tracking),
48
+ list-item-trailing-supporting-text-weight: var(--app-lists-wip-common-typography-list-list-item-trailing-supporting-text-weight),
49
+ list-item-leading-icon-start-space: calc(var(--app-lists-wip-common-spacing-list-list-item-leading-space) * 1px),
50
+ list-item-leading-icon-end-space: calc(var(--app-lists-wip-common-spacing-list-list-item-between-space) * 1px),
51
+ list-item-one-line-container-height: calc(var(--app-lists-wip-common-typography-one-line-list-item-container-height) * 1px),
52
+ list-item-two-line-container-height: calc(var(--app-lists-wip-common-typography-two-lines-list-item-container-height) * 1px),
53
+ list-item-three-line-container-height: calc(var(--app-lists-wip-common-typography-three-lines-list-item-container-height) * 1px),
54
+ ));
55
+ }
56
+
57
+ .mdc-list-item:hover {
58
+ background-color: #fff !important;
59
+ }
@@ -0,0 +1,33 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ /// Slide toggle (switch) overrides (M3). Tokens: tokens-by-component (switch-*).
4
+ html {
5
+ @include mat.slide-toggle-overrides((
6
+ selected-track-color: var(--switch-enabled-track-switch-selected-track-color),
7
+ selected-hover-track-color: var(--switch-hovered-track-switch-selected-hover-track-color),
8
+ selected-focus-track-color: var(--switch-focused-track-switch-selected-focus-track-color),
9
+ selected-pressed-track-color: var(--switch-pressed-ripple-track-switch-selected-pressed-track-color),
10
+ selected-handle-color: var(--switch-enabled-handle-switch-selected-handle-color),
11
+ selected-hover-handle-color: var(--switch-enabled-handle-switch-selected-handle-color),
12
+ selected-focus-handle-color: var(--switch-enabled-handle-switch-selected-handle-color),
13
+ selected-pressed-handle-color: var(--switch-enabled-handle-switch-selected-handle-color),
14
+ unselected-track-color: var(--switch-enabled-track-switch-unselected-track-color),
15
+ unselected-hover-track-color: var(--switch-hovered-track-switch-unselected-hover-track-color),
16
+ unselected-focus-track-color: var(--switch-focused-track-switch-unselected-focus-track-color),
17
+ unselected-pressed-track-color: var(--switch-pressed-ripple-track-switch-unselected-pressed-track-color),
18
+ unselected-handle-color: var(--switch-enabled-handle-switch-unselected-handle-color),
19
+ unselected-hover-handle-color: var(--switch-hovered-handle-switch-unselected-hover-handle-color),
20
+ unselected-focus-handle-color: var(--switch-focused-handle-switch-unselected-focus-handle-color),
21
+ unselected-pressed-handle-color: var(--switch-pressed-ripple-handle-switch-unselected-pressed-handle-color),
22
+ selected-hover-state-layer-opacity: 0,
23
+ unselected-hover-state-layer-opacity: 0,
24
+ selected-focus-state-layer-opacity: 0,
25
+ unselected-focus-state-layer-opacity: 0,
26
+ selected-pressed-state-layer-opacity: 0,
27
+ unselected-pressed-state-layer-opacity: 0,
28
+ track-outline-width: calc(var(--switch-enabled-track-switch-track-outline-width) * 1px),
29
+ track-outline-color: var(--switch-enabled-track-switch-track-outline-color),
30
+ selected-track-outline-width: calc(var(--switch-enabled-track-switch-track-outline-width) * 1px),
31
+ selected-track-outline-color: transparent,
32
+ ));
33
+ }
@@ -0,0 +1,259 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ /// Table overrides (M3). Tokens: tokens-by-component (pallete-scheme-*, typescale-*).
4
+ html {
5
+ @include mat.table-overrides((
6
+ background-color: transparent,
7
+ row-item-outline-color: var(--pallete-scheme-surface-surface-container-highest, #e0e3e5),
8
+ header-headline-color: var(--pallete-scheme-surface-on-surface, #181C1E),
9
+ header-headline-size: 1rem,
10
+ header-headline-weight: 700,
11
+ header-headline-line-height: normal,
12
+ row-item-label-text-color: var(--md-sys-color-on-surface-variant),
13
+ row-item-outline-width: 1px,
14
+ row-item-label-text-size: var(--md-sys-typescale-body-medium-size),
15
+ row-item-label-text-weight: var(--md-sys-typescale-body-medium-weight),
16
+ header-container-height: 56px,
17
+ row-item-container-height: 56px,
18
+ ));
19
+
20
+ @include mat.paginator-overrides((
21
+ container-background-color: var(--pallete-scheme-surface-surface, #F7FAFC),
22
+ container-text-color: var(--md-sys-color-on-surface-variant),
23
+ ));
24
+ }
25
+
26
+ // Celdas: padding 0 16px (como en la especificación)
27
+ .mdc-data-table__cell,
28
+ .mdc-data-table__header-cell,
29
+ .mat-mdc-cell,
30
+ .mat-mdc-header-cell {
31
+ padding: 0 16px;
32
+ }
33
+
34
+ // Header sticky: fila y celdas (th) con sticky, z-index y fondo para que el contenido no se transparente
35
+ .shared-table__container .mat-mdc-header-row {
36
+ position: sticky;
37
+ top: 0;
38
+ z-index: 10;
39
+ background: var(--pallete-scheme-surface-surface, #F7FAFC);
40
+ border-bottom: 1px solid var(--pallete-scheme-surface-surface-container-highest, #e0e3e5);
41
+ }
42
+
43
+ .shared-table__container th.mat-mdc-header-cell,
44
+ .shared-table__container th.mdc-data-table__header-cell {
45
+ position: sticky;
46
+ top: 0;
47
+ z-index: 10;
48
+ background-color: var(--pallete-scheme-surface-surface, #f5f5f5);
49
+ border-bottom: 1px solid var(--pallete-scheme-surface-surface-container-highest, #e0e3e5);
50
+ }
51
+
52
+ .shared-table__container .mat-mdc-header-row .mat-mdc-header-cell,
53
+ .shared-table__container .mat-mdc-header-row .mdc-data-table__header-cell {
54
+ background: var(--pallete-scheme-surface-surface, #F7FAFC);
55
+ border-bottom: 1px solid var(--pallete-scheme-surface-surface-container-highest, #e0e3e5);
56
+ }
57
+
58
+ // th del header sticky: posición y fondo para que el contenido no se transparente al hacer scroll
59
+ .shared-table__container th.mat-mdc-header-cell,
60
+ .shared-table__container th.mdc-data-table__header-cell {
61
+ position: sticky;
62
+ top: 0;
63
+ z-index: 10;
64
+ background-color: var(--pallete-scheme-surface-surface, #F7FAFC);
65
+ }
66
+
67
+ .mdc-data-table__header-cell {
68
+ font-family: 'Heebo', sans-serif;
69
+ overflow: hidden;
70
+ text-overflow: ellipsis;
71
+ white-space: nowrap;
72
+ }
73
+
74
+ // Última fila: borde inferior antes del paginador (mismo tono que divisores internos)
75
+ .mdc-data-table__row:last-child > .mat-mdc-cell {
76
+ border-bottom: 1px solid var(--pallete-scheme-surface-surface-container-highest, #e0e3e5);
77
+ }
78
+
79
+ // Tabla: borde completo + esquinas redondeadas
80
+ .mdc-data-table {
81
+ border-radius: 0.25rem;
82
+ border: 1px solid var(--pallete-scheme-surface-outline-variant, #C3C7C9);
83
+ overflow: visible;
84
+ }
85
+
86
+ // Shared-table: solo esquinas superiores redondeadas, sin borde inferior
87
+ .shared-table__container.mdc-data-table {
88
+ overflow: hidden;
89
+ border-radius: 0.25rem 0.25rem 0 0;
90
+ border-bottom: none;
91
+ }
92
+
93
+ // Cuando hay paginador, la tabla mantiene el mismo borde, pero sin forzar border-bottom extra
94
+ .mdc-data-table:has(+ .mat-mdc-paginator),
95
+ .mat-mdc-table-sticky-header ~ .mat-mdc-paginator + .mdc-data-table {
96
+ border-radius: 0.25rem;
97
+ }
98
+
99
+ // Label "Items per page": Body/medium (especificidad alta para que aplique)
100
+ .mat-mdc-paginator .mat-mdc-paginator-page-size-label {
101
+ margin: 0;
102
+ color: var(--pallete-scheme-surface-on-surface, #181C1E) !important;
103
+ text-align: right;
104
+ font-family: var(--typescale-body-medium-font, Heebo), sans-serif;
105
+ font-size: var(--typescale-body-medium-size, 0.875rem);
106
+ font-style: normal;
107
+ font-weight: var(--typescale-body-medium-weight, 400);
108
+ line-height: var(--typescale-body-medium-line-height, 1.25rem);
109
+ letter-spacing: var(--typescale-body-medium-tracking, 0.01563rem);
110
+ }
111
+
112
+ // Rango "1-10 de 100": Label/medium, sin márgenes
113
+ .mat-mdc-paginator .mat-mdc-paginator-range-label {
114
+ margin: 0;
115
+ color: var(--pallete-scheme-surface-on-surface, #181C1E);
116
+ font-family: var(--typescale-label-medium-font, Heebo), sans-serif;
117
+ font-size: var(--typescale-label-medium-size, 0.75rem);
118
+ font-style: normal;
119
+ font-weight: var(--typescale-label-medium-weight, 500);
120
+ line-height: var(--typescale-label-medium-line-height, 1rem);
121
+ letter-spacing: var(--typescale-label-medium-tracking, 0.03125rem);
122
+ }
123
+
124
+ // Acciones de rango del paginador (rango + flechas anterior/siguiente)
125
+ .mat-mdc-paginator .mat-mdc-paginator-range-actions {
126
+ display: flex;
127
+ align-items: center;
128
+ gap: 2.15rem;
129
+ }
130
+
131
+ // Paginador: fondo sólido surface + esquinas inferiores redondeadas; border-top: none para unión visual con la tabla
132
+ // z-index para que quede por encima del contenido de la tabla (acciones de fila)
133
+ .mat-mdc-paginator {
134
+ background-color: var(--pallete-scheme-surface-surface, #F7FAFC);
135
+ border-radius: 0 0 0.25rem 0.25rem;
136
+ border-top: none;
137
+ border-right: 1px solid var(--pallete-scheme-surface-outline-variant, #C3C7C9);
138
+ border-bottom: 1px solid var(--pallete-scheme-surface-outline-variant, #C3C7C9);
139
+ border-left: 1px solid var(--pallete-scheme-surface-outline-variant, #C3C7C9);
140
+ overflow: hidden;
141
+ z-index: 1;
142
+ width: 100%;
143
+ height: 3.625rem;
144
+ }
145
+
146
+ // Contenedor interno: gap entre elementos (label | select | 1-10 de 100 | flecha izq | flecha der)
147
+ .mat-mdc-paginator-container {
148
+ display: flex;
149
+ width: 100%;
150
+ height: 3.625rem;
151
+ padding: 0 0.5rem;
152
+ justify-content: flex-end;
153
+ align-items: center;
154
+ gap: 2.125rem;
155
+ }
156
+
157
+ // Bloques con gap interno (elementos por página = label + select)
158
+ .mat-mdc-paginator-page-size {
159
+ margin: 0;
160
+ margin-right: 0 !important;
161
+ display: flex;
162
+ align-items: center;
163
+ gap: 2.125rem;
164
+ }
165
+
166
+ // Rango "1-10 de 100" con gap respecto a vecinos (heredado del container)
167
+ // Flecha derecha: 0.5rem padding a la derecha
168
+ .mat-mdc-paginator-navigation-next {
169
+ padding-right: 0.5rem;
170
+ }
171
+
172
+ // Selector de número de páginas: sin bordes ni padding
173
+ .mat-mdc-paginator .mat-mdc-paginator-page-size-select .mat-mdc-form-field {
174
+ border-radius: 0;
175
+ border: none !important;
176
+ padding: 0;
177
+
178
+ .mdc-notched-outline,
179
+ .mdc-notched-outline .mat-mdc-notch-piece,
180
+ .mdc-notched-outline__leading,
181
+ .mdc-notched-outline__notch,
182
+ .mdc-notched-outline__trailing {
183
+ border: none !important;
184
+ border-radius: 0 !important;
185
+ }
186
+
187
+ .mat-mdc-form-field-focus-overlay {
188
+ border-radius: 0;
189
+ }
190
+
191
+ .mat-mdc-form-field-flex,
192
+ .mat-mdc-form-field-subscript-wrapper {
193
+ padding: 0 !important;
194
+ border: none !important;
195
+ border-bottom: none !important;
196
+ }
197
+ }
198
+
199
+ .mat-mdc-paginator .mat-mdc-paginator-page-size-select .mat-mdc-select-trigger,
200
+ .mat-mdc-paginator .mat-mdc-paginator-page-size-select .mat-mdc-select-value {
201
+ padding: 0 !important;
202
+ border: none !important;
203
+ border-bottom: none !important;
204
+ }
205
+
206
+ // Icono del select: sin padding, solo border-bottom del bloque; chevron custom (Figma)
207
+ .mat-mdc-paginator .mat-mdc-select-arrow-wrapper {
208
+ padding: 0 !important;
209
+ }
210
+
211
+ .mat-mdc-paginator .mat-mdc-select-arrow svg {
212
+ display: none;
213
+ }
214
+
215
+ .mat-mdc-paginator .mat-mdc-select-arrow {
216
+ width: 22px;
217
+ height: 24px;
218
+ padding: 0;
219
+ background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 24' fill='none'%3E%3Cpath d='M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z' fill='%23181C1E'/%3E%3C/svg%3E") no-repeat center;
220
+ background-size: contain;
221
+ }
222
+
223
+ // Scrollbar del cuerpo de la tabla: mismo fondo para vertical, horizontal y esquina
224
+ .shared-table__body-wrap {
225
+ --scrollbar-track-bg: #F3F4F6;
226
+ }
227
+
228
+ .shared-table__body-wrap::-webkit-scrollbar {
229
+ width: 0.25rem;
230
+ height: 0.25rem;
231
+ background-color: var(--scrollbar-track-bg);
232
+ }
233
+
234
+ .shared-table__body-wrap::-webkit-scrollbar-track {
235
+ background-color: var(--scrollbar-track-bg);
236
+ }
237
+
238
+ .shared-table__body-wrap::-webkit-scrollbar-corner {
239
+ background-color: var(--scrollbar-track-bg);
240
+ }
241
+
242
+ .shared-table__body-wrap::-webkit-scrollbar-thumb {
243
+ background-color: #6A7282;
244
+ border-radius: 6.25rem;
245
+ }
246
+
247
+ .shared-table__body-wrap::-webkit-scrollbar-button {
248
+ display: none;
249
+ }
250
+
251
+ .mat-mdc-table,
252
+ .mdc-data-table__table {
253
+ border-radius: inherit;
254
+ }
255
+
256
+ .mdc-data-table__table {
257
+ border-collapse: separate;
258
+ border-spacing: 0;
259
+ }
@@ -0,0 +1,116 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ /// Tabs overrides (M3). Tokens: tokens-by-component (tabs-*).
4
+ html {
5
+ @include mat.tabs-overrides((
6
+ active-indicator-height: calc(var(--tabs-primary-navigation-enabled-active-indicator-primary-navigation-tab-active-indicator-height, 4) * 1px),
7
+ active-indicator-shape: 4px,
8
+ divider-height: 0.1875rem,
9
+ divider-color: transparent,
10
+ active-focus-indicator-color: var(--tabs-primary-navigation-enabled-active-indicator-primary-navigation-tab-active-indicator-color, #e42313),
11
+ active-focus-label-text-color: var(--tabs-primary-navigation-focused-label-text-primary-navigation-tab-with-label-text-active-focus-color, #e42313),
12
+ active-hover-indicator-color: var(--tabs-primary-navigation-enabled-active-indicator-primary-navigation-tab-active-indicator-color, #e42313),
13
+ active-hover-label-text-color: var(--tabs-primary-navigation-hovered-label-text-primary-navigation-tab-with-label-text-active-hover-color, #e42313),
14
+ active-indicator-color: var(--tabs-primary-navigation-enabled-active-indicator-primary-navigation-tab-active-indicator-color, #e42313),
15
+ active-label-text-color: var(--tabs-primary-navigation-enabled-label-text-primary-navigation-tab-with-label-text-active-color, #e42313),
16
+ active-ripple-color: var(--tabs-primary-navigation-enabled-label-text-primary-navigation-tab-with-label-text-active-color, #e42313),
17
+ inactive-focus-label-text-color: var(--tabs-primary-navigation-focused-label-text-primary-navigation-tab-with-label-text-inactive-focus-color, #181c1e),
18
+ inactive-hover-label-text-color: var(--tabs-primary-navigation-hovered-label-text-primary-navigation-tab-with-label-text-inactive-hover-color, #181c1e),
19
+ inactive-label-text-color: var(--tabs-primary-navigation-enabled-label-text-primary-navigation-tab-with-label-text-inactive-color, #434749),
20
+ inactive-ripple-color: var(--tabs-primary-navigation-enabled-label-text-primary-navigation-tab-with-label-text-inactive-color, #434749),
21
+ foreground-color: var(--tabs-primary-navigation-enabled-container-primary-navigation-tab-container-color, #f7fafc),
22
+ background-color: var(--tabs-primary-navigation-enabled-container-primary-navigation-tab-container-color, #f7fafc),
23
+ label-text-font: var(--tabs-primary-navigation-enabled-label-text-primary-navigation-tab-with-label-text-font, 'Heebo'),
24
+ label-text-line-height: calc(var(--tabs-primary-navigation-enabled-label-text-primary-navigation-tab-with-label-text-line-height, 20) * 1px),
25
+ label-text-size: var(--tabs-primary-navigation-enabled-label-text-primary-navigation-tab-with-label-text-size, 14px),
26
+ label-text-tracking: var(--tabs-primary-navigation-enabled-label-text-primary-navigation-tab-with-label-text-tracking, 0.1px),
27
+ label-text-weight: var(--tabs-primary-navigation-enabled-label-text-primary-navigation-tab-with-label-text-weight, 500),
28
+ container-height: calc(var(--tabs-primary-navigation-enabled-container-primary-navigation-tab-container-height, 48) * 1px),
29
+ ));
30
+
31
+ & .mat-mdc-tab-ripple.mat-mdc-tab-ripple {
32
+ border-bottom: none; // la línea gris va en el contenedor para que quede detrás del indicador
33
+ }
34
+ }
35
+
36
+ // Línea gris continua en todo el ancho (queda detrás). Indicador rojo encima con z-index.
37
+ .mat-mdc-tab-header .mat-mdc-tab-label-container {
38
+ border-bottom: 2px solid #e9e9e9;
39
+ }
40
+
41
+ .mat-mdc-tab-header {
42
+ justify-content: flex-start;
43
+ }
44
+
45
+ .mat-mdc-tab-header .mat-mdc-tab-label-container {
46
+ flex: 0 1 auto;
47
+ width: fit-content;
48
+ max-width: 100%;
49
+ }
50
+
51
+ .mat-mdc-tab-header .mat-mdc-tab-labels {
52
+ flex: 0 0 auto;
53
+ width: fit-content;
54
+ max-width: 100%;
55
+ }
56
+
57
+ // Indicador rojo debajo del label, alineado al texto (ligero inset horizontal)
58
+ .mat-mdc-tab-header .mdc-tab-indicator {
59
+ position: absolute !important;
60
+ top: auto !important;
61
+ bottom: 0 !important;
62
+ left: 0 !important;
63
+ right: 0 !important;
64
+ height: 4px !important;
65
+ }
66
+
67
+ .mat-mdc-tab-header .mdc-tab-indicator .mdc-tab-indicator__content,
68
+ .mat-mdc-tab-header .mdc-tab-indicator__content--underline,
69
+ .mat-mdc-tab-header .mat-ink-bar {
70
+ position: absolute !important;
71
+ bottom: 0 !important;
72
+ top: auto !important;
73
+ left: 0.25rem !important;
74
+ right: 0.25rem !important;
75
+ height: 0.19rem !important;
76
+ min-height: 0.19rem !important;
77
+ width: auto !important;
78
+ border: none !important;
79
+ border-bottom: none !important;
80
+ border-radius: 0.25rem 0.25rem 0 0 !important;
81
+ background-color: var(--app-tabs-primary-navigation-enabled-active-indicator-primary-navigation-tab-active-indicator-color, #e42313) !important;
82
+ z-index: 1 !important;
83
+ display: block !important;
84
+ }
85
+
86
+ // Ancho dinámico: cada tab ocupa solo el ancho de su título (label). Indicador abajo del label.
87
+ .mat-mdc-tab-header .mat-mdc-tab {
88
+ flex: 0 0 auto;
89
+ min-width: 0;
90
+ width: auto;
91
+ position: relative;
92
+ flex-direction: column;
93
+ }
94
+ .mat-mdc-tab-header .mat-mdc-tab .mdc-tab__content {
95
+ width: fit-content;
96
+ min-width: fit-content;
97
+ }
98
+
99
+ // Contenedor del indicador: fijado abajo del tab (debajo del label), encima de la línea gris.
100
+
101
+ // --- Customización del tab seleccionado ---
102
+ // 1) Via tokens del mixin (arriba): active-label-text-color, active-indicator-color, active-ripple-color, etc.
103
+ // 2) Via variables CSS (en :root o en _tokens-pallete.scss), p. ej.:
104
+ // --app-tabs-primary-navigation-enabled-label-text-primary-navigation-tab-with-label-text-active-color
105
+ // --app-tabs-primary-navigation-enabled-active-indicator-primary-navigation-tab-active-indicator-color
106
+ // 3) Via CSS aquí: el tab seleccionado tiene la clase .mdc-tab--active. Ejemplo:
107
+
108
+ // Tab seleccionado: selector .mat-mdc-tab.mdc-tab--active (y .mdc-tab__text-label para la etiqueta).
109
+ // Añade aquí reglas extra para el ítem activo, p. ej.:
110
+ // .mat-mdc-tab-header .mat-mdc-tab.mdc-tab--active .mdc-tab__text-label { font-weight: 600; }
111
+
112
+ // Hover en tab: border-radius y background según tokens.
113
+ .mat-mdc-tab-header .mat-mdc-tab:hover {
114
+ border-radius: var(--tabs-primary-navigation-enabled-container-primary-navigation-tab-container-shape, 0);
115
+ background: var(--tabs-primary-navigation-focused-state-layer-primary-navigation-tab-inactive-focus-state-layer-color, rgba(24, 28, 30, 0.1));
116
+ }
@@ -0,0 +1,40 @@
1
+ /// Scrollbar según Figma (node 8847:57066).
2
+ /// Track: 4px, Gris-100, Corner-Radius-Full (pill). Thumb: Gris-500, Corner-Radius-Small.
3
+ .app-scrollbar-figma {
4
+ --scrollbar-track-width: 0.25rem;
5
+ --scrollbar-track-bg: var(--Gris-100, #f3f4f6);
6
+ --scrollbar-track-radius: var(--Corner-Radius-Full, 6.25rem);
7
+ --scrollbar-thumb-bg: var(--Gris-500, #6a7282);
8
+ --scrollbar-thumb-radius: var(--Corner-Radius-Small, 0.5rem);
9
+ --scrollbar-thumb-min-height: 3rem;
10
+
11
+ scrollbar-gutter: stable;
12
+
13
+ &::-webkit-scrollbar {
14
+ width: var(--scrollbar-track-width);
15
+ height: var(--scrollbar-track-width);
16
+ }
17
+
18
+ &::-webkit-scrollbar-button {
19
+ display: none;
20
+ }
21
+
22
+ &::-webkit-scrollbar-track {
23
+ background: var(--scrollbar-track-bg);
24
+ border-radius: var(--scrollbar-track-radius);
25
+ }
26
+
27
+ &::-webkit-scrollbar-thumb {
28
+ background: var(--scrollbar-thumb-bg);
29
+ border-radius: var(--scrollbar-thumb-radius);
30
+ min-height: var(--scrollbar-thumb-min-height);
31
+ }
32
+
33
+ &::-webkit-scrollbar-thumb:hover {
34
+ background: color-mix(in srgb, var(--scrollbar-thumb-bg) 80%, black);
35
+ }
36
+
37
+ &::-webkit-scrollbar-thumb:active {
38
+ background: color-mix(in srgb, var(--scrollbar-thumb-bg) 65%, black);
39
+ }
40
+ }
@@ -0,0 +1,116 @@
1
+ /// Clases de texto para usar en la app. Usan tokens de tokens-by-component/_tokens-typescale (--typescale-*).
2
+ /// Uso: <h1 class="app-text-title">...</h1>, <p class="app-text-body">...</p>
3
+
4
+ $text-color: var(--2-semantic-pallete-scheme-surface-on-surface, #181C1E);
5
+
6
+ // --- Títulos (Headlines) ---
7
+ .app-text-title {
8
+ color: $text-color;
9
+ font-family: var(--typescale-headline-medium-font, Heebo);
10
+ font-size: calc(var(--typescale-headline-medium-size, 28) * 1px);
11
+ font-weight: var(--typescale-headline-medium-weight-emphasized, 500);
12
+ line-height: calc(var(--typescale-headline-medium-line-height, 36) * 1px);
13
+ letter-spacing: calc(var(--typescale-headline-medium-tracking, 0) * 1px);
14
+ }
15
+
16
+ .app-text-title-large {
17
+ color: $text-color;
18
+ font-family: var(--typescale-headline-large-font, Heebo);
19
+ font-size: calc(var(--typescale-headline-large-size, 32) * 1px);
20
+ font-weight: var(--typescale-headline-large-weight-emphasized, 500);
21
+ line-height: calc(var(--typescale-headline-large-line-height, 40) * 1px);
22
+ letter-spacing: calc(var(--typescale-headline-large-tracking, 0) * 1px);
23
+ }
24
+
25
+ .app-text-title-small {
26
+ color: $text-color;
27
+ font-family: var(--typescale-headline-small-font, Heebo);
28
+ font-size: calc(var(--typescale-headline-small-size, 24) * 1px);
29
+ font-weight: var(--typescale-headline-small-weight-emphasized, 500);
30
+ line-height: calc(var(--typescale-headline-small-line-height, 32) * 1px);
31
+ letter-spacing: calc(var(--typescale-headline-small-tracking, 0) * 1px);
32
+ }
33
+
34
+ // --- Subtítulos (Titles) ---
35
+ .app-text-subtitle {
36
+ color: $text-color;
37
+ font-family: var(--md-sys-typescale-title-large-font, Heebo);
38
+ font-size: calc(var(--md-sys-typescale-title-large-size, 22) * 1px);
39
+ font-weight: var(--md-sys-typescale-title-large-weight-emphasized, 500);
40
+ line-height: calc(var(--md-sys-typescale-title-large-line-height, 28) * 1px);
41
+ letter-spacing: calc(var(--md-sys-typescale-title-large-tracking, 0) * 1px);
42
+ }
43
+
44
+ .app-text-subtitle-medium {
45
+ color: $text-color;
46
+ font-family: var(--md-sys-typescale-title-medium-font, Heebo);
47
+ font-size: calc(var(--md-sys-typescale-title-medium-size, 16) * 1px);
48
+ font-weight: var(--md-sys-typescale-title-medium-weight, 500);
49
+ line-height: calc(var(--md-sys-typescale-title-medium-line-height, 24) * 1px);
50
+ letter-spacing: calc(var(--md-sys-typescale-title-medium-tracking, 0.15) * 1px);
51
+ }
52
+
53
+ .app-text-subtitle-small {
54
+ color: $text-color;
55
+ font-family: var(--md-sys-typescale-title-small-font, Heebo);
56
+ font-size: calc(var(--md-sys-typescale-title-small-size, 14) * 1px);
57
+ font-weight: var(--md-sys-typescale-title-small-weight, 500);
58
+ line-height: calc(var(--md-sys-typescale-title-small-line-height, 20) * 1px);
59
+ letter-spacing: calc(var(--md-sys-typescale-title-small-tracking, 0.1) * 1px);
60
+ }
61
+
62
+ // --- Cuerpo (Body) ---
63
+ .app-text-body {
64
+ color: $text-color;
65
+ font-family: var(--md-sys-typescale-body-medium-font, Heebo);
66
+ font-size: calc(var(--md-sys-typescale-body-medium-size, 14) * 1px);
67
+ font-weight: var(--md-sys-typescale-body-medium-weight, 400);
68
+ line-height: calc(var(--md-sys-typescale-body-medium-line-height, 20) * 1px);
69
+ letter-spacing: calc(var(--md-sys-typescale-body-medium-tracking, 0.25) * 1px);
70
+ }
71
+
72
+ .app-text-body-large {
73
+ color: $text-color;
74
+ font-family: var(--md-sys-typescale-body-large-font, Heebo);
75
+ font-size: calc(var(--md-sys-typescale-body-large-size, 16) * 1px);
76
+ font-weight: var(--md-sys-typescale-body-large-weight, 400);
77
+ line-height: calc(var(--md-sys-typescale-body-large-line-height, 24) * 1px);
78
+ letter-spacing: calc(var(--md-sys-typescale-body-large-tracking, 0.5) * 1px);
79
+ }
80
+
81
+ .app-text-body-small {
82
+ color: $text-color;
83
+ font-family: var(--md-sys-typescale-body-small-font, Heebo);
84
+ font-size: calc(var(--md-sys-typescale-body-small-size, 12) * 1px);
85
+ font-weight: var(--md-sys-typescale-body-small-weight, 400);
86
+ line-height: calc(var(--md-sys-typescale-body-small-line-height, 16) * 1px);
87
+ letter-spacing: calc(var(--md-sys-typescale-body-small-tracking, 0.4) * 1px);
88
+ }
89
+
90
+ // --- Etiquetas / Caption (Labels) ---
91
+ .app-text-caption {
92
+ color: $text-color;
93
+ font-family: var(--md-sys-typescale-label-medium-font, Heebo);
94
+ font-size: calc(var(--md-sys-typescale-label-medium-size, 12) * 1px);
95
+ font-weight: var(--md-sys-typescale-label-medium-weight, 500);
96
+ line-height: calc(var(--md-sys-typescale-label-medium-line-height, 16) * 1px);
97
+ letter-spacing: calc(var(--md-sys-typescale-label-medium-tracking, 0.5) * 1px);
98
+ }
99
+
100
+ .app-text-caption-large {
101
+ color: $text-color;
102
+ font-family: var(--md-sys-typescale-label-large-font, Heebo);
103
+ font-size: calc(var(--md-sys-typescale-label-large-size, 14) * 1px);
104
+ font-weight: var(--md-sys-typescale-label-large-weight, 500);
105
+ line-height: calc(var(--md-sys-typescale-label-large-line-height, 20) * 1px);
106
+ letter-spacing: calc(var(--md-sys-typescale-label-large-tracking, 0.1) * 1px);
107
+ }
108
+
109
+ .app-text-caption-small {
110
+ color: $text-color;
111
+ font-family: var(--md-sys-typescale-label-small-font, Heebo);
112
+ font-size: calc(var(--md-sys-typescale-label-small-size, 11) * 1px);
113
+ font-weight: var(--md-sys-typescale-label-small-weight, 500);
114
+ line-height: calc(var(--md-sys-typescale-label-small-line-height, 16) * 1px);
115
+ letter-spacing: calc(var(--md-sys-typescale-label-small-tracking, 0.5) * 1px);
116
+ }
@@ -0,0 +1,14 @@
1
+ // Compatibilidad: misma apariencia que .app-text-title (tokens app).
2
+ .app-typography-headline-medium {
3
+ color: var(--pallete-scheme-surface-on-surface, #181C1E);
4
+
5
+ /* Headline/medium-emphasized */
6
+ font-family: var(--typescale-Headline-medium-Font, Heebo);
7
+ font-size: var(--typescale-Headline-medium-Size, 1.75rem);
8
+ font-style: normal;
9
+ font-weight: var(--typescale-Headline-medium-Weight-emphasized, 500);
10
+ line-height: var(--typescale-Headline-medium-Line-Height, 2.25rem); /* 128.571% */
11
+ letter-spacing: var(--typescale-Headline-medium-Tracking, 0);
12
+ }
13
+
14
+
package/tsconfig.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es2022",
4
+ "module": "preserve",
5
+ "moduleResolution": "bundler",
6
+ "strict": true,
7
+ "noImplicitOverride": true,
8
+ "noPropertyAccessFromIndexSignature": true,
9
+ "noImplicitReturns": true,
10
+ "noFallthroughCasesInSwitch": true,
11
+ "emitDecoratorMetadata": false,
12
+ "experimentalDecorators": true,
13
+ "useDefineForClassFields": false,
14
+ "forceConsistentCasingInFileNames": true,
15
+ "skipLibCheck": true,
16
+ "lib": ["es2022", "dom"]
17
+ },
18
+ "angularCompilerOptions": {
19
+ "enableI18nLegacyMessageIdFormat": false,
20
+ "strictInjectionParameters": true,
21
+ "strictInputAccessModifiers": true,
22
+ "strictTemplates": true,
23
+ "skipTemplateCodegen": true
24
+ },
25
+ "files": [],
26
+ "include": [],
27
+ "references": [
28
+ { "path": "./tsconfig.lib.json" }
29
+ ]
30
+ }