do-ui-design-system 1.1.21 → 1.1.22
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.
package/dist/do-theme/table.css
CHANGED
|
@@ -185,8 +185,11 @@
|
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
187
|
|
|
188
|
-
const
|
|
189
|
-
const
|
|
188
|
+
const filteredIds = $derived(new Set(filtered().map((r) => r[idKey])));
|
|
189
|
+
const allSelected = $derived(
|
|
190
|
+
filteredIds.size > 0 && [...filteredIds].every((id) => selected.has(id))
|
|
191
|
+
);
|
|
192
|
+
const someSelected = $derived([...filteredIds].some((id) => selected.has(id)) && !allSelected);
|
|
190
193
|
|
|
191
194
|
const handleSort = (key: string) => {
|
|
192
195
|
if (sortKey !== key) {
|
|
@@ -209,11 +212,17 @@
|
|
|
209
212
|
|
|
210
213
|
const toggleAll = () => {
|
|
211
214
|
if (allSelected) {
|
|
212
|
-
|
|
213
|
-
|
|
215
|
+
// Deselecciona solo los filtrados, mantiene los que no están visibles
|
|
216
|
+
const next = new Set(selected);
|
|
217
|
+
for (const id of filteredIds) next.delete(id);
|
|
218
|
+
selected = next;
|
|
219
|
+
onSelectionChange?.(Array.from(next));
|
|
214
220
|
} else {
|
|
215
|
-
|
|
216
|
-
|
|
221
|
+
// Selecciona solo los filtrados, suma a los ya seleccionados
|
|
222
|
+
const next = new Set(selected);
|
|
223
|
+
for (const id of filteredIds) next.add(id);
|
|
224
|
+
selected = next;
|
|
225
|
+
onSelectionChange?.(Array.from(next));
|
|
217
226
|
}
|
|
218
227
|
};
|
|
219
228
|
|
|
@@ -321,7 +330,7 @@
|
|
|
321
330
|
{#if dateConfig?.columnFrom && dateConfig?.columnTo && !dateError}
|
|
322
331
|
<label class="do-table__partial-match">
|
|
323
332
|
<Toggle bind:checked={partialMatch} />
|
|
324
|
-
<h5>{dateConfig?.partialMatchLabel ?? 'Incluir
|
|
333
|
+
<h5>{dateConfig?.partialMatchLabel ?? 'Incluir datos parcialmente contenidos'}</h5>
|
|
325
334
|
</label>
|
|
326
335
|
{/if}
|
|
327
336
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableBasic.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/organisms/TableBasic/TableBasic.svelte.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAGV,SAAS,EACT,UAAU,EACV,YAAY,EACZ,eAAe,EACf,SAAS,EAET,MAAM,uBAAuB,CAAC;AAG/B,KAAK,KAAK,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI;IAC3C,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IACrC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IACzB,UAAU,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;IAChB,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KAAK,IAAI,CAAC;CACvD,CAAC;
|
|
1
|
+
{"version":3,"file":"TableBasic.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/organisms/TableBasic/TableBasic.svelte.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAGV,SAAS,EACT,UAAU,EACV,YAAY,EACZ,eAAe,EACf,SAAS,EAET,MAAM,uBAAuB,CAAC;AAG/B,KAAK,KAAK,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI;IAC3C,IAAI,EAAE,CAAC,E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