@solcre-org/core-ui 2.13.5 → 2.13.6

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.
@@ -0,0 +1,136 @@
1
+ /* ******************************************** */
2
+ /** COMPONENT: SWITCH
3
+ /* ******************************************** */
4
+
5
+ .c-switch {
6
+ --_color-main-hsl: var(--btn-color-main-hsl, var(--color-primary-400-hsl));
7
+ --_color-active-bg: var(--color-primary-600);
8
+ --_color-active-text: var(--color-neutral-100);
9
+
10
+ --_border-w: 1px;
11
+ --_br: var(--app-main-br);
12
+ --_border-color-hsl: var(--color-alternative-100-hsl);
13
+
14
+ display: flex;
15
+ border: var(--_border-w) solid hsl(var(--_border-color-hsl));
16
+ border-radius: var(--_br);
17
+ width: fit-content;
18
+ }
19
+
20
+ .c-switch>* {
21
+ border: none;
22
+ pointer-events: none;
23
+ }
24
+
25
+ .c-switch>*.is-active {
26
+ background-color: var(--_color-active-bg);
27
+ color: var(--_color-active-text);
28
+ }
29
+
30
+
31
+ .c-switch:hover {
32
+ --_bg: hsl(from hsl(var(--_color-main-hsl)) h s l / 0.05);
33
+ --_current-color-hsl: from hsl(var(--_color-main-hsl)) h s calc(l - 12);
34
+ background-color: var(--_bg);
35
+ }
36
+
37
+
38
+
39
+
40
+ /* ********************** SHORT MOBILE ********************** */
41
+
42
+ @media (max-width: 22.4375rem) {
43
+ /* 359px */
44
+ }
45
+
46
+
47
+
48
+
49
+
50
+ /* ********************** TALL MOBILE PORTRAIT ********************** */
51
+
52
+ @media (max-width: 47.9375rem) and (min-height: 45.625rem) {
53
+ /* 767px, 730px */
54
+ }
55
+
56
+
57
+
58
+
59
+
60
+ /* ********************** MOBILE LANDSCAPE ********************** */
61
+
62
+ @media (orientation: landscape) and (min-width: 31.25rem) and (max-width: 47.9375rem) {
63
+ /* 500px, 767px */
64
+ }
65
+
66
+
67
+
68
+
69
+
70
+ /* ********************** de Mobile a TABLET ********************** */
71
+
72
+ @media (min-width: 48rem) {
73
+ /* 768px */
74
+ }
75
+
76
+ @media (min-width: 48rem) and (orientation: portrait) {}
77
+
78
+
79
+
80
+
81
+ /* ********************** de Tablet a DESKTOP ********************** */
82
+
83
+ @media (min-width: 61.25rem) {
84
+ /* 980px */
85
+ }
86
+
87
+
88
+
89
+
90
+ /* ********************** de Desktop a DESKTOP 2 ********************** */
91
+
92
+ @media (min-width: 75rem) {
93
+ /* 1200px */
94
+ }
95
+
96
+ @media (min-width: 75rem) and (min-height: 45rem) {
97
+ /* 1200, 720 */
98
+ }
99
+
100
+
101
+
102
+
103
+ /* ********************** de Desktop 2 a HD ********************** */
104
+
105
+ @media (min-width: 87.5rem) {
106
+ /* 1400px */
107
+ }
108
+
109
+ @media (min-width: 87.5rem) and (min-height: 49.375rem) {
110
+ /* 1400px, 790px */
111
+ }
112
+
113
+
114
+
115
+
116
+ /* ********************** de Hd a FULL HD ********************** */
117
+
118
+ @media (min-width: 100rem) {
119
+ /* 1600px */
120
+ }
121
+
122
+ @media (min-width: 100rem) and (min-height: 49.375rem) {
123
+ /* 1600px, 790px */
124
+ }
125
+
126
+ @media (min-width: 100rem) and (min-height: 56.25rem) {
127
+ /* 1600px, 900px */
128
+ }
129
+
130
+ @media (min-width: 112.5rem) {
131
+ /* 1800px */
132
+ }
133
+
134
+ @media (min-width: 112.5rem) and (min-height: 56.25rem) {
135
+ /* 1800px, 900px */
136
+ }
@@ -30,6 +30,9 @@
30
30
  .u-flex--inline{
31
31
  display: inline-flex
32
32
  }
33
+ .u-flex--space-between{
34
+ justify-content: space-between;
35
+ }
33
36
  [class*="u-flex"].u-align-center{
34
37
  justify-content: center;
35
38
  }
@@ -7853,8 +7853,11 @@ class FileTemplateType {
7853
7853
  }
7854
7854
  }
7855
7855
 
7856
- dayjs.extend(utc);
7857
- dayjs.extend(timezone);
7856
+ // Safely extend dayjs with plugins (check if extend exists for Jest compatibility)
7857
+ if (dayjs.extend) {
7858
+ dayjs.extend(utc);
7859
+ dayjs.extend(timezone);
7860
+ }
7858
7861
  class DateUtility {
7859
7862
  static fromUTCtoUruguay(date, outputFormat = 'DD/MM/YYYY HH:mm') {
7860
7863
  try {
@@ -11929,7 +11932,8 @@ class GenericTableComponent {
11929
11932
  if (this.currentSortColumn() === null && this.currentSortDirection() === null) {
11930
11933
  this.originalUnsortedData.set([...inputData]);
11931
11934
  }
11932
- const visibleData = this.applyRowVisibilityFilter(inputData);
11935
+ let visibleData = this.applyRowVisibilityFilter(inputData);
11936
+ visibleData = this.moveDisabledRowsToEnd(visibleData);
11933
11937
  this.displayedData.set([...visibleData]);
11934
11938
  this.loadingStates.mainData = false;
11935
11939
  this.loadingStates.filterData = false;
@@ -12096,7 +12100,8 @@ class GenericTableComponent {
12096
12100
  if (this.currentSortColumn() === null && this.currentSortDirection() === null) {
12097
12101
  this.originalUnsortedData.set([...data]);
12098
12102
  }
12099
- const visibleData = this.applyRowVisibilityFilter(data);
12103
+ let visibleData = this.applyRowVisibilityFilter(data);
12104
+ visibleData = this.moveDisabledRowsToEnd(visibleData);
12100
12105
  if (this.endpoint() && this.endpoint() !== '') {
12101
12106
  this.displayedData.set([...visibleData]);
12102
12107
  if (this.enablePagination() && visibleData.length !== data.length) {
@@ -12105,7 +12110,8 @@ class GenericTableComponent {
12105
12110
  }
12106
12111
  else {
12107
12112
  this.tableDataService.updateDisplayedData(visibleData, this.enablePagination(), this.paginationService, this.tableId, this.itemsLoaded());
12108
- const displayed = this.tableDataService.getDisplayedData();
12113
+ let displayed = this.tableDataService.getDisplayedData();
12114
+ displayed = this.moveDisabledRowsToEnd(displayed);
12109
12115
  this.displayedData.set([...displayed]);
12110
12116
  }
12111
12117
  }
@@ -12193,11 +12199,13 @@ class GenericTableComponent {
12193
12199
  resetToOriginalOrder() {
12194
12200
  const originalData = this.originalUnsortedData();
12195
12201
  if (originalData.length > 0) {
12196
- this.displayedData.set([...originalData]);
12202
+ const orderedData = this.moveDisabledRowsToEnd([...originalData]);
12203
+ this.displayedData.set(orderedData);
12197
12204
  }
12198
12205
  else if (!this.endpoint()) {
12199
12206
  const inputData = this.dataInput();
12200
- this.displayedData.set([...inputData]);
12207
+ const orderedData = this.moveDisabledRowsToEnd([...inputData]);
12208
+ this.displayedData.set(orderedData);
12201
12209
  }
12202
12210
  else if (this.endpoint() && originalData.length === 0) {
12203
12211
  this.tableDataService.refreshWithFilters();
@@ -12219,7 +12227,8 @@ class GenericTableComponent {
12219
12227
  const comparison = valueA < valueB ? -1 : valueA > valueB ? 1 : 0;
12220
12228
  return sortDirection === 'asc' ? comparison : -comparison;
12221
12229
  });
12222
- this.displayedData.set(sorted);
12230
+ const orderedData = this.moveDisabledRowsToEnd(sorted);
12231
+ this.displayedData.set(orderedData);
12223
12232
  }
12224
12233
  isAllSelected() {
12225
12234
  return this.displayedData().every(row => this.selectedRows().includes(row));
@@ -12676,6 +12685,23 @@ class GenericTableComponent {
12676
12685
  }
12677
12686
  return data.filter(row => this.isRowVisible(row));
12678
12687
  }
12688
+ moveDisabledRowsToEnd(data) {
12689
+ const disabledConfigs = this.columnDisabledConfigs();
12690
+ if (!disabledConfigs || disabledConfigs.length === 0) {
12691
+ return data;
12692
+ }
12693
+ const enabledRows = [];
12694
+ const disabledRows = [];
12695
+ data.forEach(row => {
12696
+ if (this.isRowDisabled(row)) {
12697
+ disabledRows.push(row);
12698
+ }
12699
+ else {
12700
+ enabledRows.push(row);
12701
+ }
12702
+ });
12703
+ return [...enabledRows, ...disabledRows];
12704
+ }
12679
12705
  generateActiveFilters() {
12680
12706
  const activeFilters = [];
12681
12707
  const currentFilters = this.currentFilterValues();
@@ -13088,7 +13114,8 @@ class GenericTableComponent {
13088
13114
  const stringB = String(refB).toLowerCase();
13089
13115
  return stringA.localeCompare(stringB);
13090
13116
  });
13091
- this.displayedData.set(sortedData);
13117
+ const orderedData = this.moveDisabledRowsToEnd(sortedData);
13118
+ this.displayedData.set(orderedData);
13092
13119
  }
13093
13120
  catch (error) {
13094
13121
  console.warn('Error al ordenar por getReference():', error);
@@ -14725,12 +14752,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
14725
14752
  // Este archivo es generado automáticamente por scripts/update-version.js
14726
14753
  // No edites manualmente este archivo
14727
14754
  const VERSION = {
14728
- full: '2.13.5',
14755
+ full: '2.13.6',
14729
14756
  major: 2,
14730
14757
  minor: 13,
14731
- patch: 5,
14732
- timestamp: '2025-09-29T18:27:57.345Z',
14733
- buildDate: '29/9/2025'
14758
+ patch: 6,
14759
+ timestamp: '2025-10-01T14:08:19.539Z',
14760
+ buildDate: '1/10/2025'
14734
14761
  };
14735
14762
 
14736
14763
  class MainNavComponent {