@pega/lists-core 9.0.0-build.3.1 → 9.0.0-build.3.3
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/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/src/core/constants.d.ts +11 -101
- package/lib/src/core/constants.d.ts.map +1 -1
- package/lib/src/core/constants.js +6 -6
- package/lib/src/core/constants.js.map +1 -1
- package/lib/src/core/features/featureFactory.d.ts.map +1 -1
- package/lib/src/core/features/featureFactory.js +0 -1
- package/lib/src/core/features/featureFactory.js.map +1 -1
- package/lib/src/core/features/uIFeatures/afterRender/columnSizing/autoSize.d.ts.map +1 -1
- package/lib/src/core/features/uIFeatures/afterRender/columnSizing/autoSize.js +12 -5
- package/lib/src/core/features/uIFeatures/afterRender/columnSizing/autoSize.js.map +1 -1
- package/lib/src/core/features/uIFeatures/afterRender/columnSizing/index.d.ts.map +1 -1
- package/lib/src/core/features/uIFeatures/afterRender/columnSizing/index.js +13 -1
- package/lib/src/core/features/uIFeatures/afterRender/columnSizing/index.js.map +1 -1
- package/lib/src/core/features/uIFeatures/beforeRender/rowHeight.d.ts.map +1 -1
- package/lib/src/core/features/uIFeatures/beforeRender/rowHeight.js +4 -0
- package/lib/src/core/features/uIFeatures/beforeRender/rowHeight.js.map +1 -1
- package/lib/src/core/features/uIFeatures/index.d.ts +0 -2
- package/lib/src/core/features/uIFeatures/index.d.ts.map +1 -1
- package/lib/src/core/features/uIFeatures/index.js +0 -2
- package/lib/src/core/features/uIFeatures/index.js.map +1 -1
- package/lib/src/core/generators/ViewGenerator.d.ts.map +1 -1
- package/lib/src/core/generators/ViewGenerator.js +7 -2
- package/lib/src/core/generators/ViewGenerator.js.map +1 -1
- package/lib/src/core/utils/util.d.ts +1 -0
- package/lib/src/core/utils/util.d.ts.map +1 -1
- package/lib/src/core/utils/util.js +7 -1
- package/lib/src/core/utils/util.js.map +1 -1
- package/lib/types/Meta.types.d.ts +25 -0
- package/lib/types/Meta.types.d.ts.map +1 -1
- package/lib/types/Meta.types.js +3 -0
- package/lib/types/Meta.types.js.map +1 -1
- package/package.json +4 -4
- package/lib/src/core/features/uIFeatures/beforeRender/resizeGroupedDragDropColumn.d.ts +0 -7
- package/lib/src/core/features/uIFeatures/beforeRender/resizeGroupedDragDropColumn.d.ts.map +0 -1
- package/lib/src/core/features/uIFeatures/beforeRender/resizeGroupedDragDropColumn.js +0 -24
- package/lib/src/core/features/uIFeatures/beforeRender/resizeGroupedDragDropColumn.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/lists-core",
|
|
3
|
-
"version": "9.0.0-build.3.
|
|
3
|
+
"version": "9.0.0-build.3.3",
|
|
4
4
|
"description": "Core headless UI library that the users can use to write their own UI and create repeating structures like table, gallery, timeline etc.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Pegasystems",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"build": "tsc -b tsconfig.build.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@pega/cosmos-react-condition-builder": "9.0.0-build.3.
|
|
18
|
-
"@pega/cosmos-react-core": "9.0.0-build.3.
|
|
19
|
-
"@pega/cosmos-react-work": "9.0.0-build.3.
|
|
17
|
+
"@pega/cosmos-react-condition-builder": "9.0.0-build.3.3",
|
|
18
|
+
"@pega/cosmos-react-core": "9.0.0-build.3.3",
|
|
19
|
+
"@pega/cosmos-react-work": "9.0.0-build.3.3",
|
|
20
20
|
"@types/lodash.get": "^4.4.9",
|
|
21
21
|
"@types/uuid": "^9.0.0",
|
|
22
22
|
"dayjs": "^1.11.13",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { BeforeRenderFeatureProps } from '../../featureFactory';
|
|
2
|
-
/**
|
|
3
|
-
* Triggers {@link actionColumnResize columnResize} action for `drag drop` column when {@link State.showGroupingExpandCollapseAll} is changed.
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
export default function resizeGroupedDragDropColumn(): (featureProps: BeforeRenderFeatureProps) => void;
|
|
7
|
-
//# sourceMappingURL=resizeGroupedDragDropColumn.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resizeGroupedDragDropColumn.d.ts","sourceRoot":"","sources":["../../../../../../src/core/features/uIFeatures/beforeRender/resizeGroupedDragDropColumn.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAiBrE;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,2BAA2B,KAEzB,cAAc,wBAAwB,UAM/D"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { withMemoization } from '../../../utils/util';
|
|
2
|
-
import { actionColumnResize } from '../../../actions/actions';
|
|
3
|
-
import { expandCollapseAllMeta, rowDragDropColumnMeta } from '../../../constants';
|
|
4
|
-
async function updateDragDropColumnWidth([{ getView, dispatch }]) {
|
|
5
|
-
const dragDropColumnId = rowDragDropColumnMeta.field.id;
|
|
6
|
-
const isDragDropPresent = getView().columns.findIndex(column => column.field.id === dragDropColumnId) > -1;
|
|
7
|
-
if (!isDragDropPresent)
|
|
8
|
-
return;
|
|
9
|
-
const dragDropColumnWidth = getView().showGroupingExpandCollapseAll
|
|
10
|
-
? expandCollapseAllMeta.width
|
|
11
|
-
: rowDragDropColumnMeta.field.width;
|
|
12
|
-
dispatch(actionColumnResize({ [dragDropColumnId]: dragDropColumnWidth }));
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Triggers {@link actionColumnResize columnResize} action for `drag drop` column when {@link State.showGroupingExpandCollapseAll} is changed.
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
export default function resizeGroupedDragDropColumn() {
|
|
19
|
-
const memoizedUpdateDragDropColumnWidth = withMemoization(updateDragDropColumnWidth);
|
|
20
|
-
return function execute(featureProps) {
|
|
21
|
-
memoizedUpdateDragDropColumnWidth([featureProps], [featureProps.getView().showGroupingExpandCollapseAll]);
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=resizeGroupedDragDropColumn.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resizeGroupedDragDropColumn.js","sourceRoot":"","sources":["../../../../../../src/core/features/uIFeatures/beforeRender/resizeGroupedDragDropColumn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAKlF,KAAK,UAAU,yBAAyB,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAE9D;IACC,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,KAAK,CAAC,EAAE,CAAC;IACxD,MAAM,iBAAiB,GACrB,OAAO,EAAE,CAAC,OAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,KAAK,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC;IACpF,IAAI,CAAC,iBAAiB;QAAE,OAAO;IAC/B,MAAM,mBAAmB,GAAG,OAAO,EAAE,CAAC,6BAA6B;QACjE,CAAC,CAAC,qBAAqB,CAAC,KAAK;QAC7B,CAAC,CAAC,qBAAqB,CAAC,KAAK,CAAC,KAAK,CAAC;IACtC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC,gBAAgB,CAAC,EAAE,mBAAmB,EAAE,CAAC,CAAC,CAAC;AAC5E,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,2BAA2B;IACjD,MAAM,iCAAiC,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;IACrF,OAAO,SAAS,OAAO,CAAC,YAAsC;QAC5D,iCAAiC,CAC/B,CAAC,YAAY,CAAC,EACd,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC,6BAA6B,CAAC,CACvD,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { withMemoization } from '../../../utils/util';\nimport { actionColumnResize } from '../../../actions/actions';\nimport { expandCollapseAllMeta, rowDragDropColumnMeta } from '../../../constants';\nimport type { BeforeRenderFeatureProps } from '../../featureFactory';\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport type { State } from '../../../../../types/State.types';\n\nasync function updateDragDropColumnWidth([{ getView, dispatch }]: [\n featureProps: BeforeRenderFeatureProps\n]) {\n const dragDropColumnId = rowDragDropColumnMeta.field.id;\n const isDragDropPresent =\n getView().columns!.findIndex(column => column.field.id === dragDropColumnId) > -1;\n if (!isDragDropPresent) return;\n const dragDropColumnWidth = getView().showGroupingExpandCollapseAll\n ? expandCollapseAllMeta.width\n : rowDragDropColumnMeta.field.width;\n dispatch(actionColumnResize({ [dragDropColumnId]: dragDropColumnWidth }));\n}\n\n/**\n * Triggers {@link actionColumnResize columnResize} action for `drag drop` column when {@link State.showGroupingExpandCollapseAll} is changed.\n *\n */\nexport default function resizeGroupedDragDropColumn() {\n const memoizedUpdateDragDropColumnWidth = withMemoization(updateDragDropColumnWidth);\n return function execute(featureProps: BeforeRenderFeatureProps) {\n memoizedUpdateDragDropColumnWidth(\n [featureProps],\n [featureProps.getView().showGroupingExpandCollapseAll]\n );\n };\n}\n"]}
|