hamzus-ui 0.0.127 → 0.0.128

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hamzus-ui",
3
- "version": "0.0.127",
3
+ "version": "0.0.128",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "svelte": "index.js",
@@ -12,6 +12,7 @@
12
12
  // props
13
13
  export let tableId = null;
14
14
  export let pagination = true;
15
+ export let hasGlobalSearch = false;
15
16
 
16
17
  // local var
17
18
  // let globalSearch = $tableData[tableId].globalSearch;
@@ -376,7 +377,8 @@
376
377
  </DropdownMenu.Content>
377
378
  </DropdownMenu.Root>
378
379
  {/if}
379
- <!-- <Input placeholder="recherche" bind:value={globalSearch}>
380
+ {#if hasGlobalSearch}
381
+ <Input placeholder="recherche" bind:value={globalSearch}>
380
382
  <svg
381
383
  slot="endContent"
382
384
  width="24"
@@ -394,7 +396,8 @@
394
396
  fill="#292D32"
395
397
  />
396
398
  </svg>
397
- </Input> -->
399
+ </Input>
400
+ {/if}
398
401
 
399
402
  <DropdownMenu.Root>
400
403
  <DropdownMenu.Trigger slot="trigger">