@fctc/sme-widget-ui 2.8.5 → 2.8.7

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/index.js CHANGED
@@ -13142,9 +13142,15 @@ var TableHead = (props) => {
13142
13142
  children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
13143
13143
  "div",
13144
13144
  {
13145
- className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
13145
+ className: `cursor-pointer flex items-center gap-[4px] w-full group relative `,
13146
13146
  children: [
13147
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "cursor-pointer flex justify-between items-center gap-[4px] w-full max-w-full truncate", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate", children: col.title }) }),
13147
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13148
+ "div",
13149
+ {
13150
+ className: `cursor-pointer flex justify-between items-center gap-[4px] w-full max-w-full truncate ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
13151
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate", children: col.title })
13152
+ }
13153
+ ),
13148
13154
  col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
13149
13155
  (0, import_react_dom.createPortal)(
13150
13156
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
package/dist/index.mjs CHANGED
@@ -13015,9 +13015,15 @@ var TableHead = (props) => {
13015
13015
  children: /* @__PURE__ */ jsxs29(
13016
13016
  "div",
13017
13017
  {
13018
- className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
13018
+ className: `cursor-pointer flex items-center gap-[4px] w-full group relative `,
13019
13019
  children: [
13020
- /* @__PURE__ */ jsx51("div", { className: "cursor-pointer flex justify-between items-center gap-[4px] w-full max-w-full truncate", children: /* @__PURE__ */ jsx51("span", { className: "truncate", children: col.title }) }),
13020
+ /* @__PURE__ */ jsx51(
13021
+ "div",
13022
+ {
13023
+ className: `cursor-pointer flex justify-between items-center gap-[4px] w-full max-w-full truncate ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
13024
+ children: /* @__PURE__ */ jsx51("span", { className: "truncate", children: col.title })
13025
+ }
13026
+ ),
13021
13027
  col?.field?.help && /* @__PURE__ */ jsxs29(Fragment4, { children: [
13022
13028
  createPortal(
13023
13029
  /* @__PURE__ */ jsx51(
@@ -397,46 +397,18 @@ interface IStatusDropdownFieldProps extends IInputFieldProps {
397
397
 
398
398
  declare const StatusDropdownField: (props: IStatusDropdownFieldProps) => JSX.Element;
399
399
 
400
- interface SearchController {
401
- groupBy?: string[] | null;
402
- searchBy?: string[] | null;
403
- filterBy?: Record<string, any>[] | null;
404
- selectedTags?: string[] | null;
405
- searchString?: string;
406
- setFilterBy?: Dispatch<SetStateAction<Record<string, any>[] | null>>;
407
- setGroupBy?: Dispatch<SetStateAction<string[] | null>>;
408
- setSearchBy?: Dispatch<SetStateAction<string[] | null>>;
409
- clearSearch?: () => void;
410
- setSelectedTags?: Dispatch<SetStateAction<string[] | null>>;
411
- removeSearchItems?: (key: string, item: any) => void;
412
- onSearchString?: (searchString: string) => void;
413
- handleAddTagSearch?: (tag: string) => void;
414
- domain?: any[];
415
- context?: Record<string, any>;
416
- }
417
400
  interface Many2ManyProps extends IInputFieldProps {
418
401
  aid?: number | null;
419
402
  title?: string;
420
- isDisplayCheckbox?: boolean;
421
- rootField?: any;
422
- onAddNew?: any;
423
- onChoose?: any;
424
403
  onClose?: any;
404
+ onChoose?: any;
405
+ onAddNew?: any;
406
+ isDisplayCheckbox?: boolean;
425
407
  onAddRow?: Function;
426
- onClickRow?: Function;
427
- renderField?: ({ row, col, indexRow, onChangeData, rootField, }: {
428
- row: any;
429
- col: any;
430
- indexRow: any;
431
- onChangeData: any;
432
- rootField: any;
433
- }) => {};
434
408
  evalJSONContext?: any;
435
- searchController: SearchController;
436
- tableGroupController: (props: TableGroupControllerProps) => TableGroupControllerReturn;
437
409
  many2manyController?: any;
438
- tableHeadController?: any;
439
410
  renderTable?: any;
411
+ model?: any;
440
412
  }
441
413
 
442
414
  declare const Many2ManyField: (props: Many2ManyProps) => React$1.ReactPortal;
package/dist/widgets.d.ts CHANGED
@@ -397,46 +397,18 @@ interface IStatusDropdownFieldProps extends IInputFieldProps {
397
397
 
398
398
  declare const StatusDropdownField: (props: IStatusDropdownFieldProps) => JSX.Element;
399
399
 
400
- interface SearchController {
401
- groupBy?: string[] | null;
402
- searchBy?: string[] | null;
403
- filterBy?: Record<string, any>[] | null;
404
- selectedTags?: string[] | null;
405
- searchString?: string;
406
- setFilterBy?: Dispatch<SetStateAction<Record<string, any>[] | null>>;
407
- setGroupBy?: Dispatch<SetStateAction<string[] | null>>;
408
- setSearchBy?: Dispatch<SetStateAction<string[] | null>>;
409
- clearSearch?: () => void;
410
- setSelectedTags?: Dispatch<SetStateAction<string[] | null>>;
411
- removeSearchItems?: (key: string, item: any) => void;
412
- onSearchString?: (searchString: string) => void;
413
- handleAddTagSearch?: (tag: string) => void;
414
- domain?: any[];
415
- context?: Record<string, any>;
416
- }
417
400
  interface Many2ManyProps extends IInputFieldProps {
418
401
  aid?: number | null;
419
402
  title?: string;
420
- isDisplayCheckbox?: boolean;
421
- rootField?: any;
422
- onAddNew?: any;
423
- onChoose?: any;
424
403
  onClose?: any;
404
+ onChoose?: any;
405
+ onAddNew?: any;
406
+ isDisplayCheckbox?: boolean;
425
407
  onAddRow?: Function;
426
- onClickRow?: Function;
427
- renderField?: ({ row, col, indexRow, onChangeData, rootField, }: {
428
- row: any;
429
- col: any;
430
- indexRow: any;
431
- onChangeData: any;
432
- rootField: any;
433
- }) => {};
434
408
  evalJSONContext?: any;
435
- searchController: SearchController;
436
- tableGroupController: (props: TableGroupControllerProps) => TableGroupControllerReturn;
437
409
  many2manyController?: any;
438
- tableHeadController?: any;
439
410
  renderTable?: any;
411
+ model?: any;
440
412
  }
441
413
 
442
414
  declare const Many2ManyField: (props: Many2ManyProps) => React$1.ReactPortal;
package/dist/widgets.js CHANGED
@@ -12134,9 +12134,15 @@ var TableHead = (props) => {
12134
12134
  children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
12135
12135
  "div",
12136
12136
  {
12137
- className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
12137
+ className: `cursor-pointer flex items-center gap-[4px] w-full group relative `,
12138
12138
  children: [
12139
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "cursor-pointer flex justify-between items-center gap-[4px] w-full max-w-full truncate", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate", children: col.title }) }),
12139
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12140
+ "div",
12141
+ {
12142
+ className: `cursor-pointer flex justify-between items-center gap-[4px] w-full max-w-full truncate ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
12143
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate", children: col.title })
12144
+ }
12145
+ ),
12140
12146
  col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
12141
12147
  (0, import_react_dom.createPortal)(
12142
12148
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
package/dist/widgets.mjs CHANGED
@@ -12071,9 +12071,15 @@ var TableHead = (props) => {
12071
12071
  children: /* @__PURE__ */ jsxs29(
12072
12072
  "div",
12073
12073
  {
12074
- className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
12074
+ className: `cursor-pointer flex items-center gap-[4px] w-full group relative `,
12075
12075
  children: [
12076
- /* @__PURE__ */ jsx51("div", { className: "cursor-pointer flex justify-between items-center gap-[4px] w-full max-w-full truncate", children: /* @__PURE__ */ jsx51("span", { className: "truncate", children: col.title }) }),
12076
+ /* @__PURE__ */ jsx51(
12077
+ "div",
12078
+ {
12079
+ className: `cursor-pointer flex justify-between items-center gap-[4px] w-full max-w-full truncate ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
12080
+ children: /* @__PURE__ */ jsx51("span", { className: "truncate", children: col.title })
12081
+ }
12082
+ ),
12077
12083
  col?.field?.help && /* @__PURE__ */ jsxs29(Fragment4, { children: [
12078
12084
  createPortal(
12079
12085
  /* @__PURE__ */ jsx51(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "2.8.5",
3
+ "version": "2.8.7",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",