grav-svelte 0.0.76 → 0.0.77
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.
|
@@ -24,11 +24,19 @@
|
|
|
24
24
|
export let Filtros: FiltrosI[];
|
|
25
25
|
export let showAddButton: boolean = true;
|
|
26
26
|
export let showImportButton: boolean = true;
|
|
27
|
+
export let showMostrandoInput: boolean = true;
|
|
27
28
|
export let Titulo_Crud: string;
|
|
28
29
|
|
|
29
30
|
// Dynamic grid columns calculation
|
|
30
31
|
$: gridColumns = Math.min(Filtros.length, 6);
|
|
31
32
|
|
|
33
|
+
// Force PageSize to 50 if showMostrandoInput is false
|
|
34
|
+
$: if (!showMostrandoInput) {
|
|
35
|
+
PageSize = 50;
|
|
36
|
+
localPageSize = 50;
|
|
37
|
+
localPageSizeStr = "50";
|
|
38
|
+
}
|
|
39
|
+
|
|
32
40
|
// Convert string to number and ensure it's never 0
|
|
33
41
|
$: {
|
|
34
42
|
const num = parseInt(localPageSizeStr);
|
|
@@ -265,13 +273,15 @@
|
|
|
265
273
|
</div>
|
|
266
274
|
|
|
267
275
|
<!-- Filtro 2 -->
|
|
268
|
-
|
|
269
|
-
<
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
276
|
+
{#if showMostrandoInput}
|
|
277
|
+
<div class="page-size-input">
|
|
278
|
+
<InputFormText
|
|
279
|
+
label="Mostrando:"
|
|
280
|
+
bind:valueVar={localPageSizeStr}
|
|
281
|
+
noMarginTop={true}
|
|
282
|
+
/>
|
|
283
|
+
</div>
|
|
284
|
+
{/if}
|
|
275
285
|
<!-- /Filtro 2 -->
|
|
276
286
|
</div>
|
|
277
287
|
</div>
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
export let showImportButton: boolean = true;
|
|
22
22
|
export let showExcelButton: boolean = true;
|
|
23
23
|
export let showPdfButton: boolean = true;
|
|
24
|
+
export let showMostrandoInput: boolean = true;
|
|
24
25
|
export let Titulo_Crud: string;
|
|
25
26
|
export let dragEnabled: boolean = false;
|
|
26
27
|
export let orderField: string = "inOrden";
|
|
@@ -123,6 +124,7 @@
|
|
|
123
124
|
on:import={handleImport}
|
|
124
125
|
{showAddButton}
|
|
125
126
|
{showImportButton}
|
|
127
|
+
{showMostrandoInput}
|
|
126
128
|
{Titulo_Crud}
|
|
127
129
|
/>
|
|
128
130
|
<div class="crud-table-container">
|