next-helios-fe 1.1.16 → 1.1.18

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": "next-helios-fe",
3
- "version": "1.1.16",
3
+ "version": "1.1.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -380,12 +380,12 @@ export const Table: TableComponentProps = ({
380
380
  <div className="flex flex-col">
381
381
  <Form.Checkbox
382
382
  options={{ disableHover: true }}
383
- checked={selected.length === data.length}
383
+ checked={selected.length === filteredData.length}
384
384
  onChange={(e) => {
385
- if (selected.length === data.length) {
385
+ if (selected.length === filteredData.length) {
386
386
  setSelected([]);
387
387
  } else {
388
- setSelected(data.map((item) => item));
388
+ setSelected(filteredData.map((item) => item));
389
389
  }
390
390
  }}
391
391
  />
@@ -402,12 +402,14 @@ export const Table: TableComponentProps = ({
402
402
  <th className="sticky left-0 w-min px-4 py-2 z-10 bg-secondary-bg font-medium text-center whitespace-nowrap">
403
403
  <div className="flex flex-col">
404
404
  <span>NO.</span>
405
- <div className="invisible w-0 overflow-hidden">
406
- <input
407
- type="search"
408
- className="w-full px-0 pt-0 pb-0.5 border-default border-t-0 border-b border-x-0 bg-secondary-bg text-sm font-normal placeholder:duration-300 placeholder:translate-x-0 [&::-webkit-search-cancel-button]:appearance-none focus:placeholder:translate-x-1 placeholder:text-slate-300 focus:outline-none focus:ring-0 focus:border-primary-dark disabled:bg-secondary-light disabled:text-slate-400"
409
- />
410
- </div>
405
+ {options?.toolbar?.columnSearch?.show !== false && (
406
+ <div className="invisible w-0 overflow-hidden">
407
+ <input
408
+ type="search"
409
+ className="w-full px-0 pt-0 pb-0.5 border-default border-t-0 border-b border-x-0 bg-secondary-bg text-sm font-normal placeholder:duration-300 placeholder:translate-x-0 [&::-webkit-search-cancel-button]:appearance-none focus:placeholder:translate-x-1 placeholder:text-slate-300 focus:outline-none focus:ring-0 focus:border-primary-dark disabled:bg-secondary-light disabled:text-slate-400"
410
+ />
411
+ </div>
412
+ )}
411
413
  </div>
412
414
  </th>
413
415
  )}
@@ -416,12 +418,14 @@ export const Table: TableComponentProps = ({
416
418
  <th className="w-min px-4 py-2 bg-secondary-bg font-medium text-center">
417
419
  <div className="flex flex-col">
418
420
  <span>Actions</span>
419
- <div className="invisible w-0 overflow-hidden">
420
- <input
421
- type="search"
422
- className="w-full px-0 pt-0 pb-0.5 border-default border-t-0 border-b border-x-0 bg-secondary-bg text-sm font-normal placeholder:duration-300 placeholder:translate-x-0 [&::-webkit-search-cancel-button]:appearance-none focus:placeholder:translate-x-1 placeholder:text-slate-300 focus:outline-none focus:ring-0 focus:border-primary-dark disabled:bg-secondary-light disabled:text-slate-400"
423
- />
424
- </div>
421
+ {options?.toolbar?.columnSearch?.show !== false && (
422
+ <div className="invisible w-0 overflow-hidden">
423
+ <input
424
+ type="search"
425
+ className="w-full px-0 pt-0 pb-0.5 border-default border-t-0 border-b border-x-0 bg-secondary-bg text-sm font-normal placeholder:duration-300 placeholder:translate-x-0 [&::-webkit-search-cancel-button]:appearance-none focus:placeholder:translate-x-1 placeholder:text-slate-300 focus:outline-none focus:ring-0 focus:border-primary-dark disabled:bg-secondary-light disabled:text-slate-400"
426
+ />
427
+ </div>
428
+ )}
425
429
  </div>
426
430
  </th>
427
431
  )}