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
- <div class="page-size-input">
269
- <InputFormText
270
- label="Mostrando:"
271
- bind:valueVar={localPageSizeStr}
272
- noMarginTop={true}
273
- />
274
- </div>
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>
@@ -8,6 +8,7 @@ declare const __propDef: {
8
8
  Filtros: FiltrosI[];
9
9
  showAddButton?: boolean;
10
10
  showImportButton?: boolean;
11
+ showMostrandoInput?: boolean;
11
12
  Titulo_Crud: string;
12
13
  };
13
14
  events: {
@@ -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">
@@ -15,6 +15,7 @@ declare const __propDef: {
15
15
  showImportButton?: boolean;
16
16
  showExcelButton?: boolean;
17
17
  showPdfButton?: boolean;
18
+ showMostrandoInput?: boolean;
18
19
  Titulo_Crud: string;
19
20
  dragEnabled?: boolean;
20
21
  orderField?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grav-svelte",
3
- "version": "0.0.76",
3
+ "version": "0.0.77",
4
4
  "description": "A collection of Svelte components",
5
5
  "license": "MIT",
6
6
  "scripts": {