@fctc/sme-widget-ui 1.1.3 → 1.1.4

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/.babelrc ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "presets": [
3
+ "@babel/preset-env",
4
+ "@babel/preset-react",
5
+ "@babel/preset-typescript"
6
+ ]
7
+ }
@@ -0,0 +1,10 @@
1
+ root = true
2
+
3
+ [*]
4
+ end_of_line = lf
5
+ insert_final_newline = true
6
+
7
+ [*.{js,json,yml}]
8
+ charset = utf-8
9
+ indent_style = space
10
+ indent_size = 2
@@ -0,0 +1,6 @@
1
+ dist
2
+ .cache
3
+ package-lock.json
4
+ public
5
+ node_modules
6
+ yarn.lock
@@ -0,0 +1,66 @@
1
+ module.exports = {
2
+ root: true,
3
+ env: { browser: true, es2020: true },
4
+ extends: [
5
+ 'eslint:recommended',
6
+ 'plugin:@typescript-eslint/recommended',
7
+ 'plugin:prettier/recommended',
8
+ ],
9
+ ignorePatterns: ['dist', '.eslintrc.cjs', 'commitlint.config.cjs'],
10
+ parser: '@typescript-eslint/parser',
11
+ overrides: [
12
+ {
13
+ files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx', '**/*.cjs'],
14
+ plugins: [
15
+ '@typescript-eslint',
16
+ 'unused-imports',
17
+ 'simple-import-sort',
18
+ 'react-refresh',
19
+ ],
20
+ rules: {
21
+ 'react-refresh/only-export-components': [
22
+ 'warn',
23
+ { allowConstantExport: true },
24
+ ],
25
+ 'import/prefer-default-export': 'off',
26
+ 'simple-import-sort/imports': [
27
+ 'error',
28
+ {
29
+ groups: [
30
+ // Packages `react` related packages come first.
31
+ ['^react', '^@?\\w'],
32
+ // Internal packages.
33
+ ['^(@|components)(/.*|$)'],
34
+ // Side effect imports.
35
+ ['^\\u0000'],
36
+ // Parent imports. Put `..` last.
37
+ ['^\\.\\.(?!/?$)', '^\\.\\./?$'],
38
+ // Other relative imports. Put same-folder imports and `.` last.
39
+ ['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
40
+ // Style imports.
41
+ ['^.+\\.?(css)$'],
42
+ ],
43
+ },
44
+ ],
45
+ 'prettier/prettier': [
46
+ 'error',
47
+ {
48
+ endOfLine: 'auto',
49
+ },
50
+ ],
51
+ 'react/react-in-jsx-scope': 'off',
52
+ 'no-param-reassign': 'off',
53
+ 'simple-import-sort/exports': 'error',
54
+ '@typescript-eslint/no-unused-vars': 'off',
55
+ '@typescript-eslint/no-non-null-assertion': 'off',
56
+ '@typescript-eslint/no-explicit-any': 'off',
57
+ '@typescript-eslint/ban-ts-comment': 'off',
58
+ '@typescript-eslint/ban-types': 'off',
59
+ 'unused-imports/no-unused-imports': 'error',
60
+ 'unused-imports/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
61
+ 'no-plusplus': 'off',
62
+ 'no-case-declarations': 'off',
63
+ },
64
+ },
65
+ ],
66
+ }
@@ -0,0 +1,4 @@
1
+ /.yarn/** linguist-vendored
2
+ /.yarn/releases/* binary
3
+ /.yarn/plugins/**/* binary
4
+ /.pnp.* binary linguist-generated
@@ -0,0 +1,4 @@
1
+ {
2
+ "singleQuote": true,
3
+ "semi": false
4
+ }
package/dist/index.js CHANGED
@@ -12410,9 +12410,12 @@ var TableBodyRow = (props) => {
12410
12410
  isForm,
12411
12411
  typeCo,
12412
12412
  selectedRowKeys,
12413
+ tableGroupController,
12414
+ groupByList,
12415
+ setIsAutoSelect,
12416
+ isAutoSelect,
12413
12417
  isEditTable
12414
12418
  } = props;
12415
- const [isAutoSelect, setIsAutoSelect] = (0, import_react12.useState)(false);
12416
12419
  const rootStyle = getComputedStyle(document.documentElement);
12417
12420
  const colorPrimary = rootStyle.getPropertyValue("--primary").trim();
12418
12421
  return rows && rows?.length > 0 ? rows?.map((row, index4) => {
@@ -12420,21 +12423,24 @@ var TableBodyRow = (props) => {
12420
12423
  TableGroup,
12421
12424
  {
12422
12425
  columns,
12423
- indexRow: index4,
12424
12426
  rows,
12425
12427
  row,
12428
+ indexRow: index4,
12426
12429
  model,
12427
12430
  viewData,
12428
12431
  renderField,
12429
12432
  level: level + 1,
12430
12433
  specification,
12431
- domain: row?.__domain,
12432
12434
  context,
12433
12435
  checkedAll,
12434
12436
  isDisplayCheckbox,
12435
12437
  selectedRowKeysRef,
12436
12438
  isAutoSelect,
12437
- setIsAutoSelect
12439
+ setIsAutoSelect,
12440
+ groupByList,
12441
+ tableGroupController,
12442
+ setSelectedRowKeys,
12443
+ selectedRowKeys
12438
12444
  },
12439
12445
  `record-group-${index4}`
12440
12446
  ) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
@@ -12473,7 +12479,15 @@ var TableBodyRow = (props) => {
12473
12479
  ) }) });
12474
12480
  };
12475
12481
  var TableBody = (props) => {
12476
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("tbody", { className: "overflow-hidden z-0", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TableBodyRow, { ...props }) });
12482
+ const [isAutoSelect, setIsAutoSelect] = (0, import_react12.useState)(false);
12483
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
12484
+ TableBodyRow,
12485
+ {
12486
+ ...props,
12487
+ isAutoSelect,
12488
+ setIsAutoSelect
12489
+ }
12490
+ ) });
12477
12491
  };
12478
12492
 
12479
12493
  // src/widgets/advanced/table/table-filter.tsx
package/dist/index.mjs CHANGED
@@ -12291,9 +12291,12 @@ var TableBodyRow = (props) => {
12291
12291
  isForm,
12292
12292
  typeCo,
12293
12293
  selectedRowKeys,
12294
+ tableGroupController,
12295
+ groupByList,
12296
+ setIsAutoSelect,
12297
+ isAutoSelect,
12294
12298
  isEditTable
12295
12299
  } = props;
12296
- const [isAutoSelect, setIsAutoSelect] = useState2(false);
12297
12300
  const rootStyle = getComputedStyle(document.documentElement);
12298
12301
  const colorPrimary = rootStyle.getPropertyValue("--primary").trim();
12299
12302
  return rows && rows?.length > 0 ? rows?.map((row, index4) => {
@@ -12301,21 +12304,24 @@ var TableBodyRow = (props) => {
12301
12304
  TableGroup,
12302
12305
  {
12303
12306
  columns,
12304
- indexRow: index4,
12305
12307
  rows,
12306
12308
  row,
12309
+ indexRow: index4,
12307
12310
  model,
12308
12311
  viewData,
12309
12312
  renderField,
12310
12313
  level: level + 1,
12311
12314
  specification,
12312
- domain: row?.__domain,
12313
12315
  context,
12314
12316
  checkedAll,
12315
12317
  isDisplayCheckbox,
12316
12318
  selectedRowKeysRef,
12317
12319
  isAutoSelect,
12318
- setIsAutoSelect
12320
+ setIsAutoSelect,
12321
+ groupByList,
12322
+ tableGroupController,
12323
+ setSelectedRowKeys,
12324
+ selectedRowKeys
12319
12325
  },
12320
12326
  `record-group-${index4}`
12321
12327
  ) : /* @__PURE__ */ jsx42(
@@ -12354,7 +12360,15 @@ var TableBodyRow = (props) => {
12354
12360
  ) }) });
12355
12361
  };
12356
12362
  var TableBody = (props) => {
12357
- return /* @__PURE__ */ jsx42("tbody", { className: "overflow-hidden z-0", children: /* @__PURE__ */ jsx42(TableBodyRow, { ...props }) });
12363
+ const [isAutoSelect, setIsAutoSelect] = useState2(false);
12364
+ return /* @__PURE__ */ jsx42("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx42(
12365
+ TableBodyRow,
12366
+ {
12367
+ ...props,
12368
+ isAutoSelect,
12369
+ setIsAutoSelect
12370
+ }
12371
+ ) });
12358
12372
  };
12359
12373
 
12360
12374
  // src/widgets/advanced/table/table-filter.tsx
@@ -39,6 +39,8 @@ interface TableBodyProps {
39
39
  typeCo?: any;
40
40
  setSelectedRowKeys?: any;
41
41
  selectedRowKeys?: any;
42
+ tableGroupController?: any;
43
+ groupByList?: any;
42
44
  isEditTable?: boolean;
43
45
  }
44
46
  declare const TableBody: (props: TableBodyProps) => JSX.Element;
package/dist/widgets.d.ts CHANGED
@@ -39,6 +39,8 @@ interface TableBodyProps {
39
39
  typeCo?: any;
40
40
  setSelectedRowKeys?: any;
41
41
  selectedRowKeys?: any;
42
+ tableGroupController?: any;
43
+ groupByList?: any;
42
44
  isEditTable?: boolean;
43
45
  }
44
46
  declare const TableBody: (props: TableBodyProps) => JSX.Element;
package/dist/widgets.js CHANGED
@@ -12010,9 +12010,12 @@ var TableBodyRow = (props) => {
12010
12010
  isForm,
12011
12011
  typeCo,
12012
12012
  selectedRowKeys,
12013
+ tableGroupController,
12014
+ groupByList,
12015
+ setIsAutoSelect,
12016
+ isAutoSelect,
12013
12017
  isEditTable
12014
12018
  } = props;
12015
- const [isAutoSelect, setIsAutoSelect] = (0, import_react11.useState)(false);
12016
12019
  const rootStyle = getComputedStyle(document.documentElement);
12017
12020
  const colorPrimary = rootStyle.getPropertyValue("--primary").trim();
12018
12021
  return rows && rows?.length > 0 ? rows?.map((row, index4) => {
@@ -12020,21 +12023,24 @@ var TableBodyRow = (props) => {
12020
12023
  TableGroup,
12021
12024
  {
12022
12025
  columns,
12023
- indexRow: index4,
12024
12026
  rows,
12025
12027
  row,
12028
+ indexRow: index4,
12026
12029
  model,
12027
12030
  viewData,
12028
12031
  renderField,
12029
12032
  level: level + 1,
12030
12033
  specification,
12031
- domain: row?.__domain,
12032
12034
  context,
12033
12035
  checkedAll,
12034
12036
  isDisplayCheckbox,
12035
12037
  selectedRowKeysRef,
12036
12038
  isAutoSelect,
12037
- setIsAutoSelect
12039
+ setIsAutoSelect,
12040
+ groupByList,
12041
+ tableGroupController,
12042
+ setSelectedRowKeys,
12043
+ selectedRowKeys
12038
12044
  },
12039
12045
  `record-group-${index4}`
12040
12046
  ) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
@@ -12073,7 +12079,15 @@ var TableBodyRow = (props) => {
12073
12079
  ) }) });
12074
12080
  };
12075
12081
  var TableBody = (props) => {
12076
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("tbody", { className: "overflow-hidden z-0", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TableBodyRow, { ...props }) });
12082
+ const [isAutoSelect, setIsAutoSelect] = (0, import_react11.useState)(false);
12083
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
12084
+ TableBodyRow,
12085
+ {
12086
+ ...props,
12087
+ isAutoSelect,
12088
+ setIsAutoSelect
12089
+ }
12090
+ ) });
12077
12091
  };
12078
12092
 
12079
12093
  // src/widgets/advanced/table/table-filter.tsx
package/dist/widgets.mjs CHANGED
@@ -11948,9 +11948,12 @@ var TableBodyRow = (props) => {
11948
11948
  isForm,
11949
11949
  typeCo,
11950
11950
  selectedRowKeys,
11951
+ tableGroupController,
11952
+ groupByList,
11953
+ setIsAutoSelect,
11954
+ isAutoSelect,
11951
11955
  isEditTable
11952
11956
  } = props;
11953
- const [isAutoSelect, setIsAutoSelect] = useState2(false);
11954
11957
  const rootStyle = getComputedStyle(document.documentElement);
11955
11958
  const colorPrimary = rootStyle.getPropertyValue("--primary").trim();
11956
11959
  return rows && rows?.length > 0 ? rows?.map((row, index4) => {
@@ -11958,21 +11961,24 @@ var TableBodyRow = (props) => {
11958
11961
  TableGroup,
11959
11962
  {
11960
11963
  columns,
11961
- indexRow: index4,
11962
11964
  rows,
11963
11965
  row,
11966
+ indexRow: index4,
11964
11967
  model,
11965
11968
  viewData,
11966
11969
  renderField,
11967
11970
  level: level + 1,
11968
11971
  specification,
11969
- domain: row?.__domain,
11970
11972
  context,
11971
11973
  checkedAll,
11972
11974
  isDisplayCheckbox,
11973
11975
  selectedRowKeysRef,
11974
11976
  isAutoSelect,
11975
- setIsAutoSelect
11977
+ setIsAutoSelect,
11978
+ groupByList,
11979
+ tableGroupController,
11980
+ setSelectedRowKeys,
11981
+ selectedRowKeys
11976
11982
  },
11977
11983
  `record-group-${index4}`
11978
11984
  ) : /* @__PURE__ */ jsx42(
@@ -12011,7 +12017,15 @@ var TableBodyRow = (props) => {
12011
12017
  ) }) });
12012
12018
  };
12013
12019
  var TableBody = (props) => {
12014
- return /* @__PURE__ */ jsx42("tbody", { className: "overflow-hidden z-0", children: /* @__PURE__ */ jsx42(TableBodyRow, { ...props }) });
12020
+ const [isAutoSelect, setIsAutoSelect] = useState2(false);
12021
+ return /* @__PURE__ */ jsx42("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx42(
12022
+ TableBodyRow,
12023
+ {
12024
+ ...props,
12025
+ isAutoSelect,
12026
+ setIsAutoSelect
12027
+ }
12028
+ ) });
12015
12029
  };
12016
12030
 
12017
12031
  // src/widgets/advanced/table/table-filter.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",