@pega/lists-core 9.0.0-build.14.9 → 9.0.0-build.15.1

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.
@@ -45,6 +45,7 @@ declare const ActionTypes: {
45
45
  readonly UPDATE_AGGREGATIONS: "updateAggregations";
46
46
  readonly UPDATE_TABLE_HEIGHT: "updateTableHeight";
47
47
  readonly CHANGE_RENDERER_FORMATTER: "changeRenderFormatter";
48
+ readonly REMOVE_RENDERER_FORMATTER: "removeRenderFormatter";
48
49
  readonly CHANGE_LABEL: "changeLabel";
49
50
  readonly REPLACE_LABELS: "replaceLabels";
50
51
  readonly SHOW_HEADER_ICONS: "showHeaderIcons";
@@ -1 +1 @@
1
- {"version":3,"file":"actionConstants.d.ts","sourceRoot":"","sources":["../../../../src/core/actions/actionConstants.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2EP,CAAC;AAEX,eAAe,WAAW,CAAC;AAC3B,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"actionConstants.d.ts","sourceRoot":"","sources":["../../../../src/core/actions/actionConstants.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4EP,CAAC;AAEX,eAAe,WAAW,CAAC;AAC3B,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC"}
@@ -48,6 +48,7 @@ const ActionTypes = {
48
48
  UPDATE_AGGREGATIONS: 'updateAggregations',
49
49
  UPDATE_TABLE_HEIGHT: 'updateTableHeight',
50
50
  CHANGE_RENDERER_FORMATTER: 'changeRenderFormatter',
51
+ REMOVE_RENDERER_FORMATTER: 'removeRenderFormatter',
51
52
  CHANGE_LABEL: 'changeLabel',
52
53
  REPLACE_LABELS: 'replaceLabels',
53
54
  SHOW_HEADER_ICONS: 'showHeaderIcons',
@@ -1 +1 @@
1
- {"version":3,"file":"actionConstants.js","sourceRoot":"","sources":["../../../../src/core/actions/actionConstants.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IAClB,gBAAgB,EAAE,kBAAkB;IACpC,mBAAmB,EAAE,qBAAqB;IAC1C,mCAAmC;IAEnC,qCAAqC;IACrC,mBAAmB,EAAE,qBAAqB;IAC1C,oBAAoB,EAAE,sBAAsB;IAC5C,sBAAsB,EAAE,wBAAwB;IAChD,yBAAyB,EAAE,2BAA2B;IACtD,gCAAgC,EAAE,kCAAkC;IACpE,sBAAsB,EAAE,wBAAwB;IAChD,0BAA0B,EAAE,4BAA4B;IACxD,2BAA2B,EAAE,6BAA6B;IAC1D,+BAA+B,EAAE,iCAAiC;IAClE,sBAAsB,EAAE,wBAAwB;IAChD,mCAAmC;IAEnC,gBAAgB,EAAE,iBAAiB;IACnC,sBAAsB,EAAE,sBAAsB;IAC9C,UAAU,EAAE,WAAW;IACvB,mBAAmB,EAAE,kBAAkB;IACvC,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,YAAY;IACzB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;IACpB,iBAAiB,EAAE,iBAAiB;IACpC,aAAa,EAAE,cAAc;IAC7B,aAAa,EAAE,cAAc;IAC7B,oBAAoB,EAAE,oBAAoB;IAC1C,gBAAgB,EAAE,kBAAkB;IACpC,qBAAqB,EAAE,wBAAwB;IAC/C,eAAe,EAAE,gBAAgB;IACjC,oBAAoB,EAAE,oBAAoB;IAC1C,sBAAsB,EAAE,sBAAsB;IAC9C,UAAU,EAAE,WAAW;IACvB,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,aAAa;IAC3B,oBAAoB,EAAE,oBAAoB;IAC1C,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,eAAe;IAC/B,gBAAgB,EAAE,gBAAgB;IAClC,mBAAmB,EAAE,mBAAmB;IACxC,gBAAgB,EAAE,gBAAgB;IAClC,oBAAoB,EAAE,oBAAoB;IAC1C,2BAA2B,EAAE,6BAA6B;IAC1D,0BAA0B,EAAE,4BAA4B;IACxD,mBAAmB,EAAE,qBAAqB;IAC1C,kBAAkB,EAAE,mBAAmB;IACvC,mBAAmB,EAAE,oBAAoB;IACzC,mBAAmB,EAAE,mBAAmB;IACxC,yBAAyB,EAAE,uBAAuB;IAClD,YAAY,EAAE,aAAa;IAC3B,cAAc,EAAE,eAAe;IAC/B,iBAAiB,EAAE,iBAAiB;IACpC,gBAAgB,EAAE,gBAAgB;IAClC,YAAY,EAAE,aAAa;IAC3B,aAAa,EAAE,cAAc;IAC7B,0BAA0B,EAAE,yBAAyB;IACrD,oBAAoB,EAAE,oBAAoB;IAC1C,yBAAyB,EAAE,yBAAyB;IAEpD,iHAAiH;IACjH,wBAAwB,EAAE,wBAAwB;IAClD,iBAAiB,EAAE,iBAAiB;IACpC,eAAe,EAAE,gBAAgB;IACjC,mBAAmB,EAAE,mBAAmB;IACxC,wBAAwB,EAAE,wBAAwB;IAClD,iCAAiC,EAAE,gCAAgC;IACnE,qBAAqB,EAAE,oBAAoB;IAC3C,oBAAoB,EAAE,oBAAoB;IAC1C,cAAc,EAAE,cAAc;IAC9B,6BAA6B,EAAE,sCAAsC;IACrE,yBAAyB,EAAE,yBAAyB;IACpD,6BAA6B,EAAE,4BAA4B;CACnD,CAAC;AAEX,eAAe,WAAW,CAAC","sourcesContent":["const ActionTypes = {\n NOTIFICATION_ADD: 'NOTIFICATION_ADD',\n NOTIFICATION_REMOVE: 'NOTIFICATION_REMOVE',\n /* Personalization Actions - End */\n\n /* Personalization Actions - Start */\n PERSONALIZATION_GET: 'PERSONALIZATION_GET',\n PERSONALIZATION_EDIT: 'PERSONALIZATION_EDIT',\n PERSONALIZATION_UPDATE: 'PERSONALIZATION_UPDATE',\n PERSONALIZATION_UPDATE_ID: 'PERSONALIZATION_UPDATE_ID',\n PERSONALIZATION_UPDATE_PRESET_ID: 'PERSONALIZATION_UPDATE_PRESET_ID',\n PERSONALIZATION_DELETE: 'PERSONALIZATION_DELETE',\n PERSONALIZATION_SET_ACTIVE: 'PERSONALIZATION_SET_ACTIVE',\n PERSONALIZATION_SET_DEFAULT: 'PERSONALIZATION_SET_DEFAULT',\n PERSONALIZATION_SET_APP_DEFAULT: 'PERSONALIZATION_SET_APP_DEFAULT',\n PERSONALIZATION_CREATE: 'PERSONALIZATION_CREATE',\n /* Personalization Actions - End */\n\n COLUMN_FILTERING: 'columnFiltering',\n COLUMN_CLEAR_FILTERING: 'columnClearFiltering',\n TOGGLE_PIN: 'togglePin',\n TOGGLE_PIN_AT_INDEX: 'togglePinAtIndex',\n COLUMN_SORT: 'columnSort',\n UPDATE_SORT: 'updateSort',\n BOOTSTRAP: 'bootstrap',\n PAGINATE: 'paginate',\n ROW_HEIGHT_CHANGE: 'rowHeightChange',\n COLUMN_RESIZE: 'columnResize',\n COLUMN_TOGGLE: 'columnToggle',\n HIDDEN_COLUMN_UPDATE: 'hiddenColumnUpdate',\n COLUMN_DRAG_DROP: 'COLUMN_DRAG_DROP',\n COLUMN_DISPLAY_CHANGE: 'COLUMN_DISPLAY_CHANGE’',\n TOGGLE_GROUPING: 'toggleGrouping',\n UPDATE_GROUPING_SORT: 'updateGroupingSort',\n TOGGLE_EXPAND_COLLAPSE: 'toggleExpandCollapse',\n ADD_GROUPS: 'addGroups',\n SEARCH: 'search',\n COLUMN_MERGE: 'columnMerge',\n CUSTOM_COLUMN_DELETE: 'customColumnDelete',\n HYDRATE_STATE: 'HYDRATE_STATE',\n SANITIZE_STATE: 'sanitizeState',\n MOVE_RECORD_KEYS: 'moverecordkeys',\n UPDATE_COLUMN_ORDER: 'updateColumnOrder',\n NEW_COLUMN_ORDER: 'newColumnOrder',\n UPDATE_ROW_SELECTION: 'updateRowSelection',\n UPDATE_ROW_SELECTION_STATUS: 'UPDATE_ROW_SELECTION_STATUS',\n UPDATE_ROW_SELECTION_ITEMS: 'UPDATE_ROW_SELECTION_ITEMS',\n CLEAR_ROW_SELECTION: 'CLEAR_ROW_SELECTION',\n UPDATE_AGGREGATION: 'updateAggregation',\n UPDATE_AGGREGATIONS: 'updateAggregations',\n UPDATE_TABLE_HEIGHT: 'updateTableHeight',\n CHANGE_RENDERER_FORMATTER: 'changeRenderFormatter',\n CHANGE_LABEL: 'changeLabel',\n REPLACE_LABELS: 'replaceLabels',\n SHOW_HEADER_ICONS: 'showHeaderIcons',\n CHANGE_CELL_MODE: 'changeCellMode',\n FORCE_UPDATE: 'forceUpdate',\n FORCE_REFRESH: 'forceRefresh',\n TOGGLE_EXPAND_COLLAPSE_ALL: 'toggleExpandCollapseAll',\n UPDATE_STATE_VERSION: 'updateStateVersion',\n TOGGLE_SELECTALL_CHECKBOX: 'toggleSelectAllCheckbox',\n\n // Dispatch Action constants that is used by consumer in order to send particular actions to Repeating structures\n TOGGLE_DISABLE_SELECTION: 'toggleDisableSelection',\n UPDATE_DEBUG_INFO: 'updateDebugInfo',\n TOGGLE_REQUIRED: 'toggleRequired',\n NOTIFY_DATA_REFRESH: 'notifyDataRefresh',\n USER_CONFIRMATION_ACTION: 'userConfirmationAction',\n COMPLETE_USER_CONFIRMATION_ACTION: 'completeUserConfirmationAction',\n SET_IN_EXTERNAL_STATE: 'setInExternalState',\n UPDATE_SELECTED_ROWS: 'updateSelectedRows',\n SET_DATA_ERROR: 'setDataError',\n SET_DOM_CONTAINER_BREAKPOINTS: 'setDomContainerResponsiveBreakpoints',\n UPDATE_COLUMNS_VISIBILITY: 'updateColumnsVisibility',\n SET_CONDITIONAL_STYLE_FORMATS: 'setConditionalStyleFormats'\n} as const;\n\nexport default ActionTypes;\nexport type ActionType = (typeof ActionTypes)[keyof typeof ActionTypes];\n"]}
1
+ {"version":3,"file":"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2B,EAAE,6BAA6B;IAC1D,0BAA0B,EAAE,4BAA4B;IACxD,mBAAmB,EAAE,qBAAqB;IAC1C,kBAAkB,EAAE,mBAAmB;IACvC,mBAAmB,EAAE,oBAAoB;IACzC,mBAAmB,EAAE,mBAAmB;IACxC,yBAAyB,EAAE,uBAAuB;IAClD,yBAAyB,EAAE,uBAAuB;IAClD,YAAY,EAAE,aAAa;IAC3B,cAAc,EAAE,eAAe;IAC/B,iBAAiB,EAAE,iBAAiB;IACpC,gBAAgB,EAAE,gBAAgB;IAClC,YAAY,EAAE,aAAa;IAC3B,aAAa,EAAE,cAAc;IAC7B,0BAA0B,EAAE,yBAAyB;IACrD,oBAAoB,EAAE,oBAAoB;IAC1C,yBAAyB,EAAE,yBAAyB;IAEpD,iHAAiH;IACjH,wBAAwB,EAAE,wBAAwB;IAClD,iBAAiB,EAAE,iBAAiB;IACpC,eAAe,EAAE,gBAAgB;IACjC,mBAAmB,EAAE,mBAAmB;IACxC,wBAAwB,EAAE,wBAAwB;IAClD,iCAAiC,EAAE,gCAAgC;IACnE,qBAAqB,EAAE,oBAAoB;IAC3C,oBAAoB,EAAE,oBAAoB;IAC1C,cAAc,EAAE,cAAc;IAC9B,6BAA6B,EAAE,sCAAsC;IACrE,yBAAyB,EAAE,yBAAyB;IACpD,6BAA6B,EAAE,4BAA4B;CACnD,CAAC;AAEX,eAAe,WAAW,CAAC","sourcesContent":["const ActionTypes = {\n NOTIFICATION_ADD: 'NOTIFICATION_ADD',\n NOTIFICATION_REMOVE: 'NOTIFICATION_REMOVE',\n /* Personalization Actions - End */\n\n /* Personalization Actions - Start */\n PERSONALIZATION_GET: 'PERSONALIZATION_GET',\n PERSONALIZATION_EDIT: 'PERSONALIZATION_EDIT',\n PERSONALIZATION_UPDATE: 'PERSONALIZATION_UPDATE',\n PERSONALIZATION_UPDATE_ID: 'PERSONALIZATION_UPDATE_ID',\n PERSONALIZATION_UPDATE_PRESET_ID: 'PERSONALIZATION_UPDATE_PRESET_ID',\n PERSONALIZATION_DELETE: 'PERSONALIZATION_DELETE',\n PERSONALIZATION_SET_ACTIVE: 'PERSONALIZATION_SET_ACTIVE',\n PERSONALIZATION_SET_DEFAULT: 'PERSONALIZATION_SET_DEFAULT',\n PERSONALIZATION_SET_APP_DEFAULT: 'PERSONALIZATION_SET_APP_DEFAULT',\n PERSONALIZATION_CREATE: 'PERSONALIZATION_CREATE',\n /* Personalization Actions - End */\n\n COLUMN_FILTERING: 'columnFiltering',\n COLUMN_CLEAR_FILTERING: 'columnClearFiltering',\n TOGGLE_PIN: 'togglePin',\n TOGGLE_PIN_AT_INDEX: 'togglePinAtIndex',\n COLUMN_SORT: 'columnSort',\n UPDATE_SORT: 'updateSort',\n BOOTSTRAP: 'bootstrap',\n PAGINATE: 'paginate',\n ROW_HEIGHT_CHANGE: 'rowHeightChange',\n COLUMN_RESIZE: 'columnResize',\n COLUMN_TOGGLE: 'columnToggle',\n HIDDEN_COLUMN_UPDATE: 'hiddenColumnUpdate',\n COLUMN_DRAG_DROP: 'COLUMN_DRAG_DROP',\n COLUMN_DISPLAY_CHANGE: 'COLUMN_DISPLAY_CHANGE’',\n TOGGLE_GROUPING: 'toggleGrouping',\n UPDATE_GROUPING_SORT: 'updateGroupingSort',\n TOGGLE_EXPAND_COLLAPSE: 'toggleExpandCollapse',\n ADD_GROUPS: 'addGroups',\n SEARCH: 'search',\n COLUMN_MERGE: 'columnMerge',\n CUSTOM_COLUMN_DELETE: 'customColumnDelete',\n HYDRATE_STATE: 'HYDRATE_STATE',\n SANITIZE_STATE: 'sanitizeState',\n MOVE_RECORD_KEYS: 'moverecordkeys',\n UPDATE_COLUMN_ORDER: 'updateColumnOrder',\n NEW_COLUMN_ORDER: 'newColumnOrder',\n UPDATE_ROW_SELECTION: 'updateRowSelection',\n UPDATE_ROW_SELECTION_STATUS: 'UPDATE_ROW_SELECTION_STATUS',\n UPDATE_ROW_SELECTION_ITEMS: 'UPDATE_ROW_SELECTION_ITEMS',\n CLEAR_ROW_SELECTION: 'CLEAR_ROW_SELECTION',\n UPDATE_AGGREGATION: 'updateAggregation',\n UPDATE_AGGREGATIONS: 'updateAggregations',\n UPDATE_TABLE_HEIGHT: 'updateTableHeight',\n CHANGE_RENDERER_FORMATTER: 'changeRenderFormatter',\n REMOVE_RENDERER_FORMATTER: 'removeRenderFormatter',\n CHANGE_LABEL: 'changeLabel',\n REPLACE_LABELS: 'replaceLabels',\n SHOW_HEADER_ICONS: 'showHeaderIcons',\n CHANGE_CELL_MODE: 'changeCellMode',\n FORCE_UPDATE: 'forceUpdate',\n FORCE_REFRESH: 'forceRefresh',\n TOGGLE_EXPAND_COLLAPSE_ALL: 'toggleExpandCollapseAll',\n UPDATE_STATE_VERSION: 'updateStateVersion',\n TOGGLE_SELECTALL_CHECKBOX: 'toggleSelectAllCheckbox',\n\n // Dispatch Action constants that is used by consumer in order to send particular actions to Repeating structures\n TOGGLE_DISABLE_SELECTION: 'toggleDisableSelection',\n UPDATE_DEBUG_INFO: 'updateDebugInfo',\n TOGGLE_REQUIRED: 'toggleRequired',\n NOTIFY_DATA_REFRESH: 'notifyDataRefresh',\n USER_CONFIRMATION_ACTION: 'userConfirmationAction',\n COMPLETE_USER_CONFIRMATION_ACTION: 'completeUserConfirmationAction',\n SET_IN_EXTERNAL_STATE: 'setInExternalState',\n UPDATE_SELECTED_ROWS: 'updateSelectedRows',\n SET_DATA_ERROR: 'setDataError',\n SET_DOM_CONTAINER_BREAKPOINTS: 'setDomContainerResponsiveBreakpoints',\n UPDATE_COLUMNS_VISIBILITY: 'updateColumnsVisibility',\n SET_CONDITIONAL_STYLE_FORMATS: 'setConditionalStyleFormats'\n} as const;\n\nexport default ActionTypes;\nexport type ActionType = (typeof ActionTypes)[keyof typeof ActionTypes];\n"]}
@@ -2,7 +2,7 @@ import { type ConditionalStyleFormat, type FieldDef, type HierarchicalInfo, type
2
2
  import type { Errors, Group, Notification, State } from '../../../types/State.types';
3
3
  import type Column from '../generators/ColumnGenerator';
4
4
  import type View from '../generators/ViewGenerator';
5
- import type { ActionMeta, ApplyAliasesActionPayload, ChangeLabelActionPayload, ColumnDragDropAction, ColumnFilteringActionPayload, ColumnResizePayload, ColumnSortPayload, DeleteCustomColumnPayload, ExpandCollapsePayload, MergeColumnsPayload, MoveRecordKeysUpdatePayload, PaginateAction, PaginationPayload, RowSelectionItemsUpdatePayload, RowSelectionUpdatePayload, SanitizableProperties, SearchGlobalActionAsFunction, UpdateAggregationPayload, UpdateRenderFormatterPayload, UpdateRowSelectionStatusPayload } from './actions.types';
5
+ import type { ActionMeta, ApplyAliasesActionPayload, ChangeLabelActionPayload, ColumnDragDropAction, ColumnFilteringActionPayload, ColumnResizePayload, ColumnSortPayload, DeleteCustomColumnPayload, ExpandCollapsePayload, MergeColumnsPayload, MoveRecordKeysUpdatePayload, PaginateAction, PaginationPayload, RemoveRenderFormatterPayload, RowSelectionItemsUpdatePayload, RowSelectionUpdatePayload, SanitizableProperties, SearchGlobalActionAsFunction, UpdateAggregationPayload, UpdateRenderFormatterPayload, UpdateRowSelectionStatusPayload } from './actions.types';
6
6
  export declare function actionNotificationAdd(notifications: Notification | Notification[]): {
7
7
  type: "NOTIFICATION_ADD";
8
8
  payload: {
@@ -283,6 +283,10 @@ export declare function actionUpdateRenderFormatter(payload: UpdateRenderFormatt
283
283
  type: "changeRenderFormatter";
284
284
  payload: UpdateRenderFormatterPayload;
285
285
  };
286
+ export declare function actionRemoveRenderFormatter(payload: RemoveRenderFormatterPayload): {
287
+ type: "removeRenderFormatter";
288
+ payload: RemoveRenderFormatterPayload;
289
+ };
286
290
  export declare function actionUpdateDisplayMode(payload: HierarchicalInfo): {
287
291
  type: "COLUMN_DISPLAY_CHANGE’";
288
292
  payload: HierarchicalInfo;
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/core/actions/actions.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,QAAQ,EACb,KAAK,gB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AG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAO,EAC3C,eAAe,GAAE,MAAM,EAAO;;;;;;EA4B/B;AAED,wBAAgB,6BAA6B,CAAC,OAAO,EAAE;IAAE,qBAAqB,EAAE,OAAO,CAAA;CAAE;;;+BAAT,OAAO;;EAKtF;AAED,wBAAgB,sBAAsB;;;EAKrC;AAED,wBAAgB,0BAA0B;;;EAKzC;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,YAAY,CAAC;;;EAK1D;AAED,wBAAgB,oCAAoC,CAAC,OAAO,EAAE;IAC5D,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;CAChB;;;oBAFa,MAAM;eACX,OAAO;;EAMf;AAGD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;;;;;EAK5E;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,OAAO,CAAA;CAAE;;;;;EAKlF;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,sBAAsB,EAAE;;;EAK3E"}
@@ -388,6 +388,12 @@ export function actionUpdateRenderFormatter(payload) {
388
388
  payload
389
389
  };
390
390
  }
391
+ export function actionRemoveRenderFormatter(payload) {
392
+ return {
393
+ type: ActionTypes.REMOVE_RENDERER_FORMATTER,
394
+ payload
395
+ };
396
+ }
391
397
  export function actionUpdateDisplayMode(payload) {
392
398
  return {
393
399
  type: ActionTypes.COLUMN_DISPLAY_CHANGE,
@@ -1 +1 @@
1
- {"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../../src/core/actions/actions.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EACL,6BAA6B,EAK9B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,E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CAAC,6BAA6B;QAC/C,OAAO;KACR,CAAC;AACJ,CAAC;AAED,sEAAsE;AACtE,MAAM,UAAU,gBAAgB,CAAC,OAA4C;IAC3E,OAAO;QACL,IAAI,EAAE,WAAW,CAAC,qBAAqB;QACvC,OAAO;KACR,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,OAA2C;IACjF,OAAO;QACL,IAAI,EAAE,WAAW,CAAC,yBAAyB;QAC3C,OAAO;KACR,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,OAAiC;IAC1E,OAAO;QACL,IAAI,EAAE,WAAW,CAAC,6BAA6B;QAC/C,OAAO;KACR,CAAC;AACJ,CAAC","sourcesContent":["// cspell:words Sanitizable\nimport { v4 as uuidV4 } from 'uuid';\n\nimport {\n REPEATING_STRUCTURE_TEMPLATES,\n type ConditionalStyleFormat,\n type FieldDef,\n type HierarchicalInfo,\n type ROW_DENSITY\n} from '../../../types/Meta.types';\nimport type { Errors, Group, Notification, State } from '../../../types/State.types';\nimport { SUPPORTED_AVOIDABLE_FEATURES, SUPPORTED_FLUSH_KEYS } from '../constants';\nimport {\n autoSizeOfColumn,\n autoSizeOfColumns\n} from '../features/uIFeatures/afterRender/columnSizing/autoSize';\nimport type Column from '../generators/ColumnGenerator';\nimport type View from '../generators/ViewGenerator';\nimport { getVisibileFields } from '../utils/util';\n\nimport ActionTypes from './actionConstants';\nimport type {\n ActionMeta,\n ApplyAliasesActionPayload,\n ChangeLabelActionPayload,\n ColumnDragDropAction,\n ColumnFilteringActionPayload,\n ColumnResizePayload,\n ColumnSortPayload,\n DeleteCustomColumnPayload,\n ExpandCollapsePayload,\n MergeColumnsPayload,\n MoveRecordKeysUpdatePayload,\n PaginateAction,\n PaginationPayload,\n RowSelectionItemsUpdatePayload,\n RowSelectionUpdatePayload,\n SanitizableProperties,\n SearchGlobalActionAsFunction,\n UpdateAggregationPayload,\n UpdateRenderFormatterPayload,\n UpdateRowSelectionStatusPayload\n} from './actions.types';\n\nexport function actionNotificationAdd(notifications: Notification | Notification[]) {\n const msgs = Array.isArray(notifications) ? notifications : [notifications];\n\n msgs.forEach(msg => {\n msg.id = uuidV4();\n });\n\n return {\n type: ActionTypes.NOTIFICATION_ADD,\n payload: {\n msgs\n }\n };\n}\n\nexport function actionNotificationRemove(ids: string | string[]) {\n return {\n type: ActionTypes.NOTIFICATION_REMOVE,\n payload: {\n ids\n }\n };\n}\n\nexport function actionGroupingExpandCollapseAll(payload: boolean) {\n return {\n type: ActionTypes.TOGGLE_EXPAND_COLLAPSE_ALL,\n payload\n };\n}\n\nexport function actionColumnFiltering(payload: ColumnFilteringActionPayload) {\n return {\n type: ActionTypes.COLUMN_FILTERING,\n payload\n };\n}\n\nexport function actionClearFiltering(colId: string) {\n return {\n type: ActionTypes.COLUMN_CLEAR_FILTERING,\n payload: {\n colId\n }\n };\n}\n\nexport function actionColumnSort(payload: ColumnSortPayload) {\n return {\n type: ActionTypes.COLUMN_SORT,\n payload\n };\n}\n\nexport function actionUpdateSort(payload: NonNullable<State['sortingOrder']>) {\n return {\n type: ActionTypes.UPDATE_SORT,\n payload\n };\n}\n\nexport function actionPaginate(\n payload: PaginationPayload,\n actionMeta: ActionMeta = {}\n): PaginateAction {\n return {\n takeLatestAction: actionMeta.takeLatestAction,\n type: ActionTypes.PAGINATE,\n payload\n };\n}\n\nexport function actionRowHeightChange(payload: (typeof ROW_DENSITY)[keyof typeof ROW_DENSITY]) {\n return {\n type: ActionTypes.ROW_HEIGHT_CHANGE,\n payload\n };\n}\n\nexport function actionColumnResize(columnResizeObj: ColumnResizePayload['data']) {\n return {\n type: ActionTypes.COLUMN_RESIZE,\n payload: { data: columnResizeObj }\n };\n}\n\nexport function actionColumnAutoSize(\n column: Column,\n domContainer: NonNullable<View['domContainer']>,\n forceAutoSize = false\n) {\n const columnResizeObj = {\n [column.field.id]: autoSizeOfColumn(column, domContainer, forceAutoSize)\n };\n return {\n type: ActionTypes.COLUMN_RESIZE,\n payload: { data: columnResizeObj }\n };\n}\n\nexport function actionColumnsAutoSize(\n columns: Column[],\n domContainer: NonNullable<View['domContainer']>,\n reset = true\n) {\n return {\n type: ActionTypes.COLUMN_RESIZE,\n payload: {\n data: autoSizeOfColumns(columns, domContainer, reset) as ColumnResizePayload['data']\n }\n };\n}\n\nexport function actionColumnToggle(toggledColumns: string[]) {\n return {\n type: ActionTypes.COLUMN_TOGGLE,\n payload: toggledColumns\n };\n}\n\nexport function actionHiddenColumnUpdate(\n hiddenColumns: string[],\n ootbColumns?: { dragHandle?: boolean }\n) {\n return {\n type: ActionTypes.HIDDEN_COLUMN_UPDATE,\n payload: { hiddenColumns, ootbColumns }\n };\n}\n\nexport function actionColumnPin(pinnedColumns: string[]) {\n return {\n type: ActionTypes.TOGGLE_PIN,\n payload: pinnedColumns\n };\n}\n\nexport function actionColumnPinAtIndex(pinnedColumn: string, index: number) {\n return {\n type: ActionTypes.TOGGLE_PIN_AT_INDEX,\n payload: { pinnedColumn, index }\n };\n}\n\nexport function actionColumnDragDrop(\n sourceColId: string,\n targetColId: string\n): ColumnDragDropAction {\n return {\n type: ActionTypes.COLUMN_DRAG_DROP,\n payload: {\n sourceColId: `${sourceColId}`,\n targetColId: `${targetColId}`\n }\n };\n}\n\nexport function actionToggleGrouping(payload: FieldDef) {\n return {\n type: ActionTypes.TOGGLE_GROUPING,\n payload\n };\n}\n\nexport function actionToggleExpandCollpase(payload: ExpandCollapsePayload) {\n return {\n type: ActionTypes.TOGGLE_EXPAND_COLLAPSE,\n payload\n };\n}\n\nexport function actionUpdateGroupingSort() {\n return {\n type: ActionTypes.UPDATE_GROUPING_SORT\n };\n}\n\nexport function actionAddGroups(payload: Group[]) {\n return {\n type: ActionTypes.ADD_GROUPS,\n payload\n };\n}\n\nexport function actionMoveRecordKeysUpdate(payload: MoveRecordKeysUpdatePayload) {\n return {\n type: ActionTypes.MOVE_RECORD_KEYS,\n payload\n };\n}\n\nexport function actionRowSelectionUpdate(payload: RowSelectionUpdatePayload) {\n return {\n type: ActionTypes.UPDATE_ROW_SELECTION,\n payload\n };\n}\n\nexport function actionRowSelectionItemsUpdate(payload: RowSelectionItemsUpdatePayload) {\n return {\n type: ActionTypes.UPDATE_ROW_SELECTION_ITEMS,\n payload\n };\n}\n\nexport function actionUpdateRowSelectionStatus(payload: UpdateRowSelectionStatusPayload) {\n return {\n type: ActionTypes.UPDATE_ROW_SELECTION_STATUS,\n payload\n };\n}\n\nexport function actionClearRowSelectionStatus(payload: { keys: string[] }) {\n return {\n type: ActionTypes.CLEAR_ROW_SELECTION,\n payload\n };\n}\n\n/**\n * Returns a dispatch function that dispatches {@link query} value with all the text type fields.\n * @param query search string\n * @returns\n */\nexport function actionSearchGlobal(query: string): SearchGlobalActionAsFunction {\n return (dispatch, getState, meta) => {\n const state = getState();\n const { customFields } = state;\n let { hiddenColumns } = state;\n if (meta.template === REPEATING_STRUCTURE_TEMPLATES.TIMELINE && meta.timelineFields) {\n const { title, date, status } = meta.timelineFields;\n const timelineCustomColumns = [title?.label, date?.label, status?.label];\n hiddenColumns = hiddenColumns?.filter(el => !timelineCustomColumns.includes(el));\n }\n const visibleFields = getVisibileFields(meta.fieldDefs, hiddenColumns, customFields);\n const fields = visibleFields.filter(({ type }) => type === 'text').map(({ name }) => name); // Searchable fields\n dispatch({\n type: ActionTypes.SEARCH,\n payload: { query, fields }\n });\n };\n}\n\nexport function actionMergeColumns(payload: MergeColumnsPayload) {\n return {\n type: ActionTypes.COLUMN_MERGE,\n payload\n };\n}\n\nexport function actionGetPersonalizations(\n payload: NonNullable<State['personalization']> & { personalizationKey?: string }\n) {\n return {\n skipActionQueue: true,\n type: ActionTypes.PERSONALIZATION_GET,\n payload\n };\n}\n\nexport function actionDeleteCustomColumn(payload: DeleteCustomColumnPayload) {\n return {\n type: ActionTypes.CUSTOM_COLUMN_DELETE,\n payload\n };\n}\n\nexport function actionHydrateState(payload: State) {\n return {\n skipActionQueue: false,\n type: ActionTypes.HYDRATE_STATE,\n payload\n };\n}\n\n// cspell:disable-next-line\nexport function actionSanitizeState(payload: SanitizableProperties) {\n return {\n skipActionQueue: true,\n type: ActionTypes.SANITIZE_STATE,\n payload\n };\n}\n\n/**\n * Returns the {@link ActionTypes.UPDATE_COLUMN_ORDER UPDATE_COLUMN_ORDER} action.\n * @param payload A field name tuple of the column.\n * @returns\n */\nexport function actionUpdateColumnOrder(payload: [string]) {\n return {\n type: ActionTypes.UPDATE_COLUMN_ORDER,\n payload\n };\n}\n\nexport function actionNewColumnOrder(payload: string[]) {\n return {\n type: ActionTypes.NEW_COLUMN_ORDER,\n payload\n };\n}\n\nexport function actionUpdateTableHeight(payload: View['bodyHeight']) {\n return {\n type: ActionTypes.UPDATE_TABLE_HEIGHT,\n payload\n };\n}\n\n/**\n * Returns personalization update action.\n * @param personalizationKey - The current personalization key\n * @param markAsDefault - Indicates whether the current personalization should be marked as default.\n * @param markAsAppDefault - Indicates whether the current personalization should be marked as app default.\n * @returns\n */\nexport function actionPersonalizationUpdate(\n personalizationKey: string,\n markAsDefault: boolean,\n markAsAppDefault: boolean\n) {\n return {\n type: ActionTypes.PERSONALIZATION_UPDATE,\n payload: {\n personalizationKey,\n markAsDefault,\n markAsAppDefault\n }\n };\n}\n\nexport function actionPersonalizationUpdateId(\n oldPersonalizationId: string,\n newPersonalizationId: string\n) {\n return {\n type: ActionTypes.PERSONALIZATION_UPDATE_ID,\n payload: {\n oldPersonalizationId,\n newPersonalizationId\n }\n };\n}\n\nexport function actionPersonalizationUpdatePresetId(\n personalizationKey: string,\n oldPresetId: string,\n newPresetId: string\n) {\n return {\n type: ActionTypes.PERSONALIZATION_UPDATE_PRESET_ID,\n payload: {\n oldPresetId,\n newPresetId,\n personalizationKey\n }\n };\n}\n\n/**\n * Returns an action that deletes the personalization\n * @param personalizationKey id of the personalization that needs to be deleted.\n * @param deletePresetPersonalizations If set to false indicates notification to be shown after deletion of personalization.\n * @returns\n */\nexport function actionPersonalizationDelete(\n personalizationKey: string,\n deletePresetPersonalizations?: boolean\n) {\n return {\n type: ActionTypes.PERSONALIZATION_DELETE,\n payload: {\n personalizationKey,\n deletePresetPersonalizations\n }\n };\n}\n\nexport function actionPersonalizationSetActive({\n id,\n isPreset\n}: {\n id: string;\n isPreset: boolean;\n}) {\n return {\n type: ActionTypes.PERSONALIZATION_SET_ACTIVE,\n payload: {\n personalizationKey: id,\n isPreset\n }\n };\n}\n\n// TODO: remove template, presetId after Infinity'23 release branch is cut\nexport function actionPersonalizationCreate(\n personalizationName: string,\n markAsDefault: boolean,\n template?: string,\n presetId?: string\n) {\n return {\n type: ActionTypes.PERSONALIZATION_CREATE,\n payload: {\n personalizationKey: uuidV4(),\n personalizationName,\n markAsDefault,\n template,\n presetId\n }\n };\n}\n\nexport function actionPersonalizationEdit(\n personalizationKey: string,\n personalizationName: string,\n markAsDefault: boolean,\n markAsAppDefault: boolean\n) {\n return {\n type: ActionTypes.PERSONALIZATION_EDIT,\n payload: {\n personalizationKey,\n personalizationName,\n markAsDefault,\n markAsAppDefault\n }\n };\n}\n\nexport function actionPersonalizationSetDefault(personalizationKey: string) {\n return {\n type: ActionTypes.PERSONALIZATION_SET_DEFAULT,\n payload: {\n personalizationKey\n }\n };\n}\n\nexport function actionPersonalizationSetAppDefault(\n personalizationKey: string,\n personalizationName: string\n) {\n return {\n type: ActionTypes.PERSONALIZATION_SET_APP_DEFAULT,\n payload: {\n personalizationKey,\n personalizationName\n }\n };\n}\n\nexport function actionBootstrap() {\n return {\n type: ActionTypes.BOOTSTRAP\n };\n}\n\nexport function actionUpdateStateVersion() {\n return {\n type: ActionTypes.UPDATE_STATE_VERSION\n };\n}\n\nexport function actionUpdateAggregation(payload: UpdateAggregationPayload) {\n return {\n type: ActionTypes.UPDATE_AGGREGATION,\n payload\n };\n}\n\nexport function actionUpdateAggregations(payload: NonNullable<State['aggregationInfo']>) {\n return {\n type: ActionTypes.UPDATE_AGGREGATIONS,\n payload\n };\n}\n\nexport function actionUpdateRenderFormatter(payload: UpdateRenderFormatterPayload) {\n return {\n type: ActionTypes.CHANGE_RENDERER_FORMATTER,\n payload\n };\n}\n\nexport function actionUpdateDisplayMode(payload: HierarchicalInfo) {\n return {\n type: ActionTypes.COLUMN_DISPLAY_CHANGE,\n payload\n };\n}\n\nexport function actionChangeLabel(payload: ChangeLabelActionPayload) {\n return {\n type: ActionTypes.CHANGE_LABEL,\n payload\n };\n}\n\nexport function actionReplaceLabels(payload: ApplyAliasesActionPayload) {\n return {\n type: ActionTypes.REPLACE_LABELS,\n payload\n };\n}\n\nexport function actionShowHeaderIcons(showHeaderIcons: boolean) {\n return {\n type: ActionTypes.SHOW_HEADER_ICONS,\n payload: showHeaderIcons\n };\n}\n\n/**\n *\n * @param {*} instantRender skip the action queue and update the state immediately\n * @param {*} forceUpdateFeatures if instantRender is false, push feature identifying name in state.forceUpdateFeatures to render in next execution\n */\nexport function actionForceUpdate(\n instantRender = true,\n forceUpdateFeatures: State['forceUpdateFeatures'] = {}\n) {\n return {\n instantRender,\n type: ActionTypes.FORCE_UPDATE,\n payload: {\n forceUpdateFeatures\n }\n };\n}\n\nexport function actionForceRefresh(\n flushState: { [key: string]: boolean } = {},\n featuresToAvoid: string[] = []\n) {\n let stateToReset = {};\n if (Object.keys(flushState).length > 0) {\n stateToReset = SUPPORTED_FLUSH_KEYS.reduce((acc: { [k: string]: undefined }, k: string) => {\n if (flushState[k] === true) {\n acc[k] = undefined;\n }\n return acc;\n }, {});\n }\n\n const featuresToNotRun: string[] = [];\n featuresToAvoid.forEach(item => {\n if (SUPPORTED_AVOIDABLE_FEATURES.includes(item)) {\n featuresToNotRun.push(item);\n }\n });\n\n const payload = {\n stateToReset,\n featuresToAvoid: featuresToNotRun\n };\n\n return {\n type: ActionTypes.FORCE_REFRESH,\n payload\n };\n}\n\nexport function actionToggleSelectAllCheckbox(payload: { showSelectAllCheckbox: boolean }) {\n return {\n type: ActionTypes.TOGGLE_SELECTALL_CHECKBOX,\n payload\n };\n}\n\nexport function showConfirmationAction() {\n return {\n type: ActionTypes.USER_CONFIRMATION_ACTION,\n instantRender: true\n };\n}\n\nexport function completeConfirmationAction() {\n return {\n type: ActionTypes.COMPLETE_USER_CONFIRMATION_ACTION,\n instantRender: true\n };\n}\n\nexport function setDataErrors(payload: Errors['dataErrors']) {\n return {\n type: ActionTypes.SET_DATA_ERROR,\n payload\n };\n}\n\nexport function setDomContainerResponsiveBreakpoints(payload: {\n breakpoint: string;\n value: boolean;\n}) {\n return {\n type: ActionTypes.SET_DOM_CONTAINER_BREAKPOINTS,\n payload\n };\n}\n\n// External state should set instantly without executing action queue.\nexport function setExternalState(payload: NonNullable<State['externalState']>) {\n return {\n type: ActionTypes.SET_IN_EXTERNAL_STATE,\n payload\n };\n}\n\nexport function updateColumnsVisibility(payload: { [key: FieldDef['id']]: boolean }) {\n return {\n type: ActionTypes.UPDATE_COLUMNS_VISIBILITY,\n payload\n };\n}\n\nexport function setConditionalStyleFormats(payload: ConditionalStyleFormat[]) {\n return {\n type: ActionTypes.SET_CONDITIONAL_STYLE_FORMATS,\n payload\n };\n}\n"]}
1
+ {"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../../src/core/actions/actions.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EACL,6BAA6B,EAK9B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAClF,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,0DAA0D,CAAC;AAGlE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAyB5C,MAAM,UAAU,qBAAqB,CAAC,aAA4C;IAChF,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAA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F,OAAO;QACL,IAAI,EAAE,WAAW,CAAC,yBAAyB;QAC3C,OAAO;KACR,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,OAAiC;IAC1E,OAAO;QACL,IAAI,EAAE,WAAW,CAAC,6BAA6B;QAC/C,OAAO;KACR,CAAC;AACJ,CAAC","sourcesContent":["// cspell:words Sanitizable\nimport { v4 as uuidV4 } from 'uuid';\n\nimport {\n REPEATING_STRUCTURE_TEMPLATES,\n type ConditionalStyleFormat,\n type FieldDef,\n type HierarchicalInfo,\n type ROW_DENSITY\n} from '../../../types/Meta.types';\nimport type { Errors, Group, Notification, State } from '../../../types/State.types';\nimport { SUPPORTED_AVOIDABLE_FEATURES, SUPPORTED_FLUSH_KEYS } from '../constants';\nimport {\n autoSizeOfColumn,\n autoSizeOfColumns\n} from '../features/uIFeatures/afterRender/columnSizing/autoSize';\nimport type Column from '../generators/ColumnGenerator';\nimport type View from '../generators/ViewGenerator';\nimport { getVisibileFields } from '../utils/util';\n\nimport ActionTypes from './actionConstants';\nimport type {\n ActionMeta,\n ApplyAliasesActionPayload,\n ChangeLabelActionPayload,\n ColumnDragDropAction,\n ColumnFilteringActionPayload,\n ColumnResizePayload,\n ColumnSortPayload,\n DeleteCustomColumnPayload,\n ExpandCollapsePayload,\n MergeColumnsPayload,\n MoveRecordKeysUpdatePayload,\n PaginateAction,\n PaginationPayload,\n RemoveRenderFormatterPayload,\n RowSelectionItemsUpdatePayload,\n RowSelectionUpdatePayload,\n SanitizableProperties,\n SearchGlobalActionAsFunction,\n UpdateAggregationPayload,\n UpdateRenderFormatterPayload,\n UpdateRowSelectionStatusPayload\n} from './actions.types';\n\nexport function actionNotificationAdd(notifications: Notification | Notification[]) {\n const msgs = Array.isArray(notifications) ? notifications : [notifications];\n\n msgs.forEach(msg => {\n msg.id = uuidV4();\n });\n\n return {\n type: ActionTypes.NOTIFICATION_ADD,\n payload: {\n msgs\n }\n };\n}\n\nexport function actionNotificationRemove(ids: string | string[]) {\n return {\n type: ActionTypes.NOTIFICATION_REMOVE,\n payload: {\n ids\n }\n };\n}\n\nexport function actionGroupingExpandCollapseAll(payload: boolean) {\n return {\n type: ActionTypes.TOGGLE_EXPAND_COLLAPSE_ALL,\n payload\n };\n}\n\nexport function actionColumnFiltering(payload: ColumnFilteringActionPayload) {\n return {\n type: ActionTypes.COLUMN_FILTERING,\n payload\n };\n}\n\nexport function actionClearFiltering(colId: string) {\n return {\n type: ActionTypes.COLUMN_CLEAR_FILTERING,\n payload: {\n colId\n }\n };\n}\n\nexport function actionColumnSort(payload: ColumnSortPayload) {\n return {\n type: ActionTypes.COLUMN_SORT,\n payload\n };\n}\n\nexport function actionUpdateSort(payload: NonNullable<State['sortingOrder']>) {\n return {\n type: ActionTypes.UPDATE_SORT,\n payload\n };\n}\n\nexport function actionPaginate(\n payload: PaginationPayload,\n actionMeta: ActionMeta = {}\n): PaginateAction {\n return {\n takeLatestAction: actionMeta.takeLatestAction,\n type: ActionTypes.PAGINATE,\n payload\n };\n}\n\nexport function actionRowHeightChange(payload: (typeof ROW_DENSITY)[keyof typeof ROW_DENSITY]) {\n return {\n type: ActionTypes.ROW_HEIGHT_CHANGE,\n payload\n };\n}\n\nexport function actionColumnResize(columnResizeObj: ColumnResizePayload['data']) {\n return {\n type: ActionTypes.COLUMN_RESIZE,\n payload: { data: columnResizeObj }\n };\n}\n\nexport function actionColumnAutoSize(\n column: Column,\n domContainer: NonNullable<View['domContainer']>,\n forceAutoSize = false\n) {\n const columnResizeObj = {\n [column.field.id]: autoSizeOfColumn(column, domContainer, forceAutoSize)\n };\n return {\n type: ActionTypes.COLUMN_RESIZE,\n payload: { data: columnResizeObj }\n };\n}\n\nexport function actionColumnsAutoSize(\n columns: Column[],\n domContainer: NonNullable<View['domContainer']>,\n reset = true\n) {\n return {\n type: ActionTypes.COLUMN_RESIZE,\n payload: {\n data: autoSizeOfColumns(columns, domContainer, reset) as ColumnResizePayload['data']\n }\n };\n}\n\nexport function actionColumnToggle(toggledColumns: string[]) {\n return {\n type: ActionTypes.COLUMN_TOGGLE,\n payload: toggledColumns\n };\n}\n\nexport function actionHiddenColumnUpdate(\n hiddenColumns: string[],\n ootbColumns?: { dragHandle?: boolean }\n) {\n return {\n type: ActionTypes.HIDDEN_COLUMN_UPDATE,\n payload: { hiddenColumns, ootbColumns }\n };\n}\n\nexport function actionColumnPin(pinnedColumns: string[]) {\n return {\n type: ActionTypes.TOGGLE_PIN,\n payload: pinnedColumns\n };\n}\n\nexport function actionColumnPinAtIndex(pinnedColumn: string, index: number) {\n return {\n type: ActionTypes.TOGGLE_PIN_AT_INDEX,\n payload: { pinnedColumn, index }\n };\n}\n\nexport function actionColumnDragDrop(\n sourceColId: string,\n targetColId: string\n): ColumnDragDropAction {\n return {\n type: ActionTypes.COLUMN_DRAG_DROP,\n payload: {\n sourceColId: `${sourceColId}`,\n targetColId: `${targetColId}`\n }\n };\n}\n\nexport function actionToggleGrouping(payload: FieldDef) {\n return {\n type: ActionTypes.TOGGLE_GROUPING,\n payload\n };\n}\n\nexport function actionToggleExpandCollpase(payload: ExpandCollapsePayload) {\n return {\n type: ActionTypes.TOGGLE_EXPAND_COLLAPSE,\n payload\n };\n}\n\nexport function actionUpdateGroupingSort() {\n return {\n type: ActionTypes.UPDATE_GROUPING_SORT\n };\n}\n\nexport function actionAddGroups(payload: Group[]) {\n return {\n type: ActionTypes.ADD_GROUPS,\n payload\n };\n}\n\nexport function actionMoveRecordKeysUpdate(payload: MoveRecordKeysUpdatePayload) {\n return {\n type: ActionTypes.MOVE_RECORD_KEYS,\n payload\n };\n}\n\nexport function actionRowSelectionUpdate(payload: RowSelectionUpdatePayload) {\n return {\n type: ActionTypes.UPDATE_ROW_SELECTION,\n payload\n };\n}\n\nexport function actionRowSelectionItemsUpdate(payload: RowSelectionItemsUpdatePayload) {\n return {\n type: ActionTypes.UPDATE_ROW_SELECTION_ITEMS,\n payload\n };\n}\n\nexport function actionUpdateRowSelectionStatus(payload: UpdateRowSelectionStatusPayload) {\n return {\n type: ActionTypes.UPDATE_ROW_SELECTION_STATUS,\n payload\n };\n}\n\nexport function actionClearRowSelectionStatus(payload: { keys: string[] }) {\n return {\n type: ActionTypes.CLEAR_ROW_SELECTION,\n payload\n };\n}\n\n/**\n * Returns a dispatch function that dispatches {@link query} value with all the text type fields.\n * @param query search string\n * @returns\n */\nexport function actionSearchGlobal(query: string): SearchGlobalActionAsFunction {\n return (dispatch, getState, meta) => {\n const state = getState();\n const { customFields } = state;\n let { hiddenColumns } = state;\n if (meta.template === REPEATING_STRUCTURE_TEMPLATES.TIMELINE && meta.timelineFields) {\n const { title, date, status } = meta.timelineFields;\n const timelineCustomColumns = [title?.label, date?.label, status?.label];\n hiddenColumns = hiddenColumns?.filter(el => !timelineCustomColumns.includes(el));\n }\n const visibleFields = getVisibileFields(meta.fieldDefs, hiddenColumns, customFields);\n const fields = visibleFields.filter(({ type }) => type === 'text').map(({ name }) => name); // Searchable fields\n dispatch({\n type: ActionTypes.SEARCH,\n payload: { query, fields }\n });\n };\n}\n\nexport function actionMergeColumns(payload: MergeColumnsPayload) {\n return {\n type: ActionTypes.COLUMN_MERGE,\n payload\n };\n}\n\nexport function actionGetPersonalizations(\n payload: NonNullable<State['personalization']> & { personalizationKey?: string }\n) {\n return {\n skipActionQueue: true,\n type: ActionTypes.PERSONALIZATION_GET,\n payload\n };\n}\n\nexport function actionDeleteCustomColumn(payload: DeleteCustomColumnPayload) {\n return {\n type: ActionTypes.CUSTOM_COLUMN_DELETE,\n payload\n };\n}\n\nexport function actionHydrateState(payload: State) {\n return {\n skipActionQueue: false,\n type: ActionTypes.HYDRATE_STATE,\n payload\n };\n}\n\n// cspell:disable-next-line\nexport function actionSanitizeState(payload: SanitizableProperties) {\n return {\n skipActionQueue: true,\n type: ActionTypes.SANITIZE_STATE,\n payload\n };\n}\n\n/**\n * Returns the {@link ActionTypes.UPDATE_COLUMN_ORDER UPDATE_COLUMN_ORDER} action.\n * @param payload A field name tuple of the column.\n * @returns\n */\nexport function actionUpdateColumnOrder(payload: [string]) {\n return {\n type: ActionTypes.UPDATE_COLUMN_ORDER,\n payload\n };\n}\n\nexport function actionNewColumnOrder(payload: string[]) {\n return {\n type: ActionTypes.NEW_COLUMN_ORDER,\n payload\n };\n}\n\nexport function actionUpdateTableHeight(payload: View['bodyHeight']) {\n return {\n type: ActionTypes.UPDATE_TABLE_HEIGHT,\n payload\n };\n}\n\n/**\n * Returns personalization update action.\n * @param personalizationKey - The current personalization key\n * @param markAsDefault - Indicates whether the current personalization should be marked as default.\n * @param markAsAppDefault - Indicates whether the current personalization should be marked as app default.\n * @returns\n */\nexport function actionPersonalizationUpdate(\n personalizationKey: string,\n markAsDefault: boolean,\n markAsAppDefault: boolean\n) {\n return {\n type: ActionTypes.PERSONALIZATION_UPDATE,\n payload: {\n personalizationKey,\n markAsDefault,\n markAsAppDefault\n }\n };\n}\n\nexport function actionPersonalizationUpdateId(\n oldPersonalizationId: string,\n newPersonalizationId: string\n) {\n return {\n type: ActionTypes.PERSONALIZATION_UPDATE_ID,\n payload: {\n oldPersonalizationId,\n newPersonalizationId\n }\n };\n}\n\nexport function actionPersonalizationUpdatePresetId(\n personalizationKey: string,\n oldPresetId: string,\n newPresetId: string\n) {\n return {\n type: ActionTypes.PERSONALIZATION_UPDATE_PRESET_ID,\n payload: {\n oldPresetId,\n newPresetId,\n personalizationKey\n }\n };\n}\n\n/**\n * Returns an action that deletes the personalization\n * @param personalizationKey id of the personalization that needs to be deleted.\n * @param deletePresetPersonalizations If set to false indicates notification to be shown after deletion of personalization.\n * @returns\n */\nexport function actionPersonalizationDelete(\n personalizationKey: string,\n deletePresetPersonalizations?: boolean\n) {\n return {\n type: ActionTypes.PERSONALIZATION_DELETE,\n payload: {\n personalizationKey,\n deletePresetPersonalizations\n }\n };\n}\n\nexport function actionPersonalizationSetActive({\n id,\n isPreset\n}: {\n id: string;\n isPreset: boolean;\n}) {\n return {\n type: ActionTypes.PERSONALIZATION_SET_ACTIVE,\n payload: {\n personalizationKey: id,\n isPreset\n }\n };\n}\n\n// TODO: remove template, presetId after Infinity'23 release branch is cut\nexport function actionPersonalizationCreate(\n personalizationName: string,\n markAsDefault: boolean,\n template?: string,\n presetId?: string\n) {\n return {\n type: ActionTypes.PERSONALIZATION_CREATE,\n payload: {\n personalizationKey: uuidV4(),\n personalizationName,\n markAsDefault,\n template,\n presetId\n }\n };\n}\n\nexport function actionPersonalizationEdit(\n personalizationKey: string,\n personalizationName: string,\n markAsDefault: boolean,\n markAsAppDefault: boolean\n) {\n return {\n type: ActionTypes.PERSONALIZATION_EDIT,\n payload: {\n personalizationKey,\n personalizationName,\n markAsDefault,\n markAsAppDefault\n }\n };\n}\n\nexport function actionPersonalizationSetDefault(personalizationKey: string) {\n return {\n type: ActionTypes.PERSONALIZATION_SET_DEFAULT,\n payload: {\n personalizationKey\n }\n };\n}\n\nexport function actionPersonalizationSetAppDefault(\n personalizationKey: string,\n personalizationName: string\n) {\n return {\n type: ActionTypes.PERSONALIZATION_SET_APP_DEFAULT,\n payload: {\n personalizationKey,\n personalizationName\n }\n };\n}\n\nexport function actionBootstrap() {\n return {\n type: ActionTypes.BOOTSTRAP\n };\n}\n\nexport function actionUpdateStateVersion() {\n return {\n type: ActionTypes.UPDATE_STATE_VERSION\n };\n}\n\nexport function actionUpdateAggregation(payload: UpdateAggregationPayload) {\n return {\n type: ActionTypes.UPDATE_AGGREGATION,\n payload\n };\n}\n\nexport function actionUpdateAggregations(payload: NonNullable<State['aggregationInfo']>) {\n return {\n type: ActionTypes.UPDATE_AGGREGATIONS,\n payload\n };\n}\n\nexport function actionUpdateRenderFormatter(payload: UpdateRenderFormatterPayload) {\n return {\n type: ActionTypes.CHANGE_RENDERER_FORMATTER,\n payload\n };\n}\n\nexport function actionRemoveRenderFormatter(payload: RemoveRenderFormatterPayload) {\n return {\n type: ActionTypes.REMOVE_RENDERER_FORMATTER,\n payload\n };\n}\n\nexport function actionUpdateDisplayMode(payload: HierarchicalInfo) {\n return {\n type: ActionTypes.COLUMN_DISPLAY_CHANGE,\n payload\n };\n}\n\nexport function actionChangeLabel(payload: ChangeLabelActionPayload) {\n return {\n type: ActionTypes.CHANGE_LABEL,\n payload\n };\n}\n\nexport function actionReplaceLabels(payload: ApplyAliasesActionPayload) {\n return {\n type: ActionTypes.REPLACE_LABELS,\n payload\n };\n}\n\nexport function actionShowHeaderIcons(showHeaderIcons: boolean) {\n return {\n type: ActionTypes.SHOW_HEADER_ICONS,\n payload: showHeaderIcons\n };\n}\n\n/**\n *\n * @param {*} instantRender skip the action queue and update the state immediately\n * @param {*} forceUpdateFeatures if instantRender is false, push feature identifying name in state.forceUpdateFeatures to render in next execution\n */\nexport function actionForceUpdate(\n instantRender = true,\n forceUpdateFeatures: State['forceUpdateFeatures'] = {}\n) {\n return {\n instantRender,\n type: ActionTypes.FORCE_UPDATE,\n payload: {\n forceUpdateFeatures\n }\n };\n}\n\nexport function actionForceRefresh(\n flushState: { [key: string]: boolean } = {},\n featuresToAvoid: string[] = []\n) {\n let stateToReset = {};\n if (Object.keys(flushState).length > 0) {\n stateToReset = SUPPORTED_FLUSH_KEYS.reduce((acc: { [k: string]: undefined }, k: string) => {\n if (flushState[k] === true) {\n acc[k] = undefined;\n }\n return acc;\n }, {});\n }\n\n const featuresToNotRun: string[] = [];\n featuresToAvoid.forEach(item => {\n if (SUPPORTED_AVOIDABLE_FEATURES.includes(item)) {\n featuresToNotRun.push(item);\n }\n });\n\n const payload = {\n stateToReset,\n featuresToAvoid: featuresToNotRun\n };\n\n return {\n type: ActionTypes.FORCE_REFRESH,\n payload\n };\n}\n\nexport function actionToggleSelectAllCheckbox(payload: { showSelectAllCheckbox: boolean }) {\n return {\n type: ActionTypes.TOGGLE_SELECTALL_CHECKBOX,\n payload\n };\n}\n\nexport function showConfirmationAction() {\n return {\n type: ActionTypes.USER_CONFIRMATION_ACTION,\n instantRender: true\n };\n}\n\nexport function completeConfirmationAction() {\n return {\n type: ActionTypes.COMPLETE_USER_CONFIRMATION_ACTION,\n instantRender: true\n };\n}\n\nexport function setDataErrors(payload: Errors['dataErrors']) {\n return {\n type: ActionTypes.SET_DATA_ERROR,\n payload\n };\n}\n\nexport function setDomContainerResponsiveBreakpoints(payload: {\n breakpoint: string;\n value: boolean;\n}) {\n return {\n type: ActionTypes.SET_DOM_CONTAINER_BREAKPOINTS,\n payload\n };\n}\n\n// External state should set instantly without executing action queue.\nexport function setExternalState(payload: NonNullable<State['externalState']>) {\n return {\n type: ActionTypes.SET_IN_EXTERNAL_STATE,\n payload\n };\n}\n\nexport function updateColumnsVisibility(payload: { [key: FieldDef['id']]: boolean }) {\n return {\n type: ActionTypes.UPDATE_COLUMNS_VISIBILITY,\n payload\n };\n}\n\nexport function setConditionalStyleFormats(payload: ConditionalStyleFormat[]) {\n return {\n type: ActionTypes.SET_CONDITIONAL_STYLE_FORMATS,\n payload\n };\n}\n"]}
@@ -111,6 +111,9 @@ export interface UpdateRenderFormatterPayload {
111
111
  columnId: FieldDef['id'];
112
112
  name: Column['formatterName'];
113
113
  }
114
+ export interface RemoveRenderFormatterPayload {
115
+ columnId: FieldDef['id'];
116
+ }
114
117
  export interface ChangeLabelActionPayload {
115
118
  columnId: FieldDef['id'];
116
119
  label: Column['label'];
@@ -391,6 +394,10 @@ declare const objectActions: {
391
394
  type: "changeRenderFormatter";
392
395
  payload: UpdateRenderFormatterPayload;
393
396
  };
397
+ actionRemoveRenderFormatter(payload: RemoveRenderFormatterPayload): {
398
+ type: "removeRenderFormatter";
399
+ payload: RemoveRenderFormatterPayload;
400
+ };
394
401
  actionUpdateDisplayMode(payload: import("../../../types/Meta.types").HierarchicalInfo): {
395
402
  type: "COLUMN_DISPLAY_CHANGE’";
396
403
  payload: import("../../../types/Meta.types").HierarchicalInfo;
@@ -1 +1 @@
1
- {"version":3,"file":"actions.types.d.ts","sourceRoot":"","sources":["../../../../src/core/actions/actions.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,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AO,MAAM,WAAW,CAAC;AA0LrC,2EAA2E;AAC3E,MAAM,EAAE,kBAAkB,EAAE,GAAG,aAAa,EAAE,GAAG,OAAO,CAAC","sourcesContent":["import type { FieldDef, Meta } from '../../../types/Meta.types';\nimport type { AggregationType, Group, Sort, State } from '../../../types/State.types';\nimport type { STATE } from '../constants';\nimport type { FeatureProps } from '../features/featureFactory';\nimport type Column from '../generators/ColumnGenerator';\nimport type { RowData } from '../generators/RowGenerator.types';\nimport type View from '../generators/ViewGenerator';\n\nimport ActionTypes from './actionConstants';\nimport * as Actions from './actions';\n\n/** A Type function utility that accepts an object of methods and returns a union of return type of all the methods. Used in case of actions functions. */\ntype GenerateActionType<T extends { [key: string]: (...args: any[]) => any }> = {\n [K in keyof T]: ReturnType<T[K]>;\n}[keyof T];\n\nexport interface ActionMeta {\n /**\n * Instantly dispatches a render by calling the external store reference's dispatch method.\n * This action bypasses the usual waiting for actions, features, or side effects to complete.\n */\n instantRender?: boolean;\n /** Indicates to skip the action queue and directly call reducer. */\n skipActionQueue?: boolean;\n /** Indicates to take latest action from the action queue if multiple actions of same type are present. */\n takeLatestAction?: boolean;\n}\n\nexport interface ColumnFilteringActionPayload {\n filterExp: NonNullable<State['filterExpression']>;\n}\n\nexport interface ApplyAliasesActionPayload {\n aliases: NonNullable<State['columnAlias']>;\n}\nexport interface ColumnSortPayload {\n id: FieldDef['id'];\n flushState: boolean;\n sortOrderId: Sort['order'];\n}\n\nexport interface PaginationPayload {\n id: string;\n startIndex: number;\n endIndex: number;\n}\n\nexport interface PaginateAction extends ActionMeta {\n payload: PaginationPayload;\n type: typeof ActionTypes.PAGINATE;\n}\n\nexport interface ColumnResizePayload {\n data: { [fieldId: string]: number };\n}\n\nexport interface ColumnDragDropAction {\n payload: {\n sourceColId: string;\n targetColId: string;\n };\n type: typeof ActionTypes.COLUMN_DRAG_DROP;\n}\n\nexport interface ExpandCollapsePayload {\n groupHeader?: NonNullable<View['groupHeaders']>[number];\n groups?: Group[];\n}\n\nexport interface MoveRecordKeysUpdatePayload {\n sourceID?: string;\n destinationID?: string;\n sourceKey?: string;\n destinationKey?: string;\n}\n\nexport interface RowSelectionUpdatePayload {\n key: string;\n selected: boolean;\n data: RowData;\n status: typeof STATE.NOT_STARTED;\n mode: Meta['selectionMode'];\n}\n\nexport interface RowSelectionItemsUpdatePayload {\n selectedRows: string[];\n mode: NonNullable<Meta['selectionMode']>;\n}\n\nexport interface UpdateRowSelectionStatusPayload {\n keys: string[];\n status: typeof STATE.IN_PROGRESS;\n mode: NonNullable<Meta['selectionMode']>;\n}\n\nexport type SearchGlobalActionAsFunction = (\n dispatch: FeatureProps['dispatch'],\n getState: FeatureProps['getState'],\n meta: Meta\n) => void;\n\nexport interface SearchGlobalAction {\n type: typeof ActionTypes.SEARCH;\n payload: { query: string; fields: string[] };\n}\n\nexport interface MergeColumnsPayload {\n sourceId: string;\n targetId: string;\n title: string;\n templateName: string;\n bHideColumns: boolean;\n uniqueID: string;\n hideColumns?: [string, string];\n}\n\nexport interface DeleteCustomColumnPayload {\n columnId: FieldDef['id'] | FieldDef['id'][];\n}\n\n// cSpell:disable-next-line\nexport type SanitizableProperties = Pick<\n State,\n | 'sortingOrder'\n | 'freezeColumns'\n | 'hiddenColumns'\n | 'columnWidths'\n | 'colOrder'\n | 'aggregationInfo'\n | 'groups'\n | 'customFields'\n | 'filterExpression'\n | 'hierarchicalGroup'\n | 'renderFormatter'\n>;\nexport interface UpdateAggregationPayload {\n columnId: FieldDef['id'];\n type: AggregationType;\n}\n\nexport interface UpdateRenderFormatterPayload {\n columnId: FieldDef['id'];\n name: Column['formatterName'];\n}\n\nexport interface ChangeLabelActionPayload {\n columnId: FieldDef['id'];\n label: Column['label'];\n}\n\nexport interface SubmitChangeSetPayload {\n key: string;\n name: string;\n newValue: string | number | Date | boolean;\n oldValue: string | number | Date | boolean;\n status: string;\n}\n\n// Personalization Actions.\nexport type PersonalizationCreateAction = ReturnType<typeof Actions.actionPersonalizationCreate>;\nexport type PersonalizationDeleteAction = ReturnType<typeof Actions.actionPersonalizationDelete>;\nexport type PersonalizationEditAction = ReturnType<typeof Actions.actionPersonalizationEdit>;\nexport type PersonalizationSetActiveAction = ReturnType<\n typeof Actions.actionPersonalizationSetActive\n>;\nexport type PersonalizationSetAppDefaultAction = ReturnType<\n typeof Actions.actionPersonalizationSetAppDefault\n>;\nexport type PersonalizationSetDefaultAction = ReturnType<\n typeof Actions.actionPersonalizationSetDefault\n>;\nexport type PersonalizationUpdateAction = ReturnType<typeof Actions.actionPersonalizationUpdate>;\nexport type PersonalizationUpdateIdAction = ReturnType<\n typeof Actions.actionPersonalizationUpdateId\n>;\nexport type PersonalizationUpdatePresetIdAction = ReturnType<\n typeof Actions.actionPersonalizationUpdatePresetId\n>;\nexport type GetPersonalizationsAction = ReturnType<typeof Actions.actionGetPersonalizations>;\nexport type PersonalizationActions =\n | PersonalizationCreateAction\n | PersonalizationDeleteAction\n | PersonalizationEditAction\n | PersonalizationSetActiveAction\n | PersonalizationSetAppDefaultAction\n | PersonalizationSetDefaultAction\n | PersonalizationUpdateAction\n | PersonalizationUpdateIdAction\n | PersonalizationUpdatePresetIdAction\n | GetPersonalizationsAction;\n\n// TODO: Remove Action as function.The logic for Search global action function can be move to reducer.\n// Needs further refactor, but it is required to remove the Actions as function usecase in reducer.\nexport type ActionAsFunction = SearchGlobalActionAsFunction;\n\n// All Actions of type object with signature {type: TYPE: payload: PAYLOAD}\nconst { actionSearchGlobal, ...objectActions } = Actions;\nexport type Action = GenerateActionType<typeof objectActions> | SearchGlobalAction;\n\n// Generic Action that represents Actions as object and Action as function.\n// TODO Action as function should be removed, only one use case is present as of today which can be migrated to Action as object.\nexport type BaseAction = Action | ActionAsFunction;\n"]}
1
+ {"version":3,"file":"actions.types.js","sourceRoot":"","sources":["../../../../src/core/actions/actions.types.ts"],"names":[],"mappings":"AAQA,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AA8LrC,2EAA2E;AAC3E,MAAM,EAAE,kBAAkB,EAAE,GAAG,aAAa,EAAE,GAAG,OAAO,CAAC","sourcesContent":["import type { FieldDef, Meta } from '../../../types/Meta.types';\nimport type { AggregationType, Group, Sort, State } from '../../../types/State.types';\nimport type { STATE } from '../constants';\nimport type { FeatureProps } from '../features/featureFactory';\nimport type Column from '../generators/ColumnGenerator';\nimport type { RowData } from '../generators/RowGenerator.types';\nimport type View from '../generators/ViewGenerator';\n\nimport ActionTypes from './actionConstants';\nimport * as Actions from './actions';\n\n/** A Type function utility that accepts an object of methods and returns a union of return type of all the methods. Used in case of actions functions. */\ntype GenerateActionType<T extends { [key: string]: (...args: any[]) => any }> = {\n [K in keyof T]: ReturnType<T[K]>;\n}[keyof T];\n\nexport interface ActionMeta {\n /**\n * Instantly dispatches a render by calling the external store reference's dispatch method.\n * This action bypasses the usual waiting for actions, features, or side effects to complete.\n */\n instantRender?: boolean;\n /** Indicates to skip the action queue and directly call reducer. */\n skipActionQueue?: boolean;\n /** Indicates to take latest action from the action queue if multiple actions of same type are present. */\n takeLatestAction?: boolean;\n}\n\nexport interface ColumnFilteringActionPayload {\n filterExp: NonNullable<State['filterExpression']>;\n}\n\nexport interface ApplyAliasesActionPayload {\n aliases: NonNullable<State['columnAlias']>;\n}\nexport interface ColumnSortPayload {\n id: FieldDef['id'];\n flushState: boolean;\n sortOrderId: Sort['order'];\n}\n\nexport interface PaginationPayload {\n id: string;\n startIndex: number;\n endIndex: number;\n}\n\nexport interface PaginateAction extends ActionMeta {\n payload: PaginationPayload;\n type: typeof ActionTypes.PAGINATE;\n}\n\nexport interface ColumnResizePayload {\n data: { [fieldId: string]: number };\n}\n\nexport interface ColumnDragDropAction {\n payload: {\n sourceColId: string;\n targetColId: string;\n };\n type: typeof ActionTypes.COLUMN_DRAG_DROP;\n}\n\nexport interface ExpandCollapsePayload {\n groupHeader?: NonNullable<View['groupHeaders']>[number];\n groups?: Group[];\n}\n\nexport interface MoveRecordKeysUpdatePayload {\n sourceID?: string;\n destinationID?: string;\n sourceKey?: string;\n destinationKey?: string;\n}\n\nexport interface RowSelectionUpdatePayload {\n key: string;\n selected: boolean;\n data: RowData;\n status: typeof STATE.NOT_STARTED;\n mode: Meta['selectionMode'];\n}\n\nexport interface RowSelectionItemsUpdatePayload {\n selectedRows: string[];\n mode: NonNullable<Meta['selectionMode']>;\n}\n\nexport interface UpdateRowSelectionStatusPayload {\n keys: string[];\n status: typeof STATE.IN_PROGRESS;\n mode: NonNullable<Meta['selectionMode']>;\n}\n\nexport type SearchGlobalActionAsFunction = (\n dispatch: FeatureProps['dispatch'],\n getState: FeatureProps['getState'],\n meta: Meta\n) => void;\n\nexport interface SearchGlobalAction {\n type: typeof ActionTypes.SEARCH;\n payload: { query: string; fields: string[] };\n}\n\nexport interface MergeColumnsPayload {\n sourceId: string;\n targetId: string;\n title: string;\n templateName: string;\n bHideColumns: boolean;\n uniqueID: string;\n hideColumns?: [string, string];\n}\n\nexport interface DeleteCustomColumnPayload {\n columnId: FieldDef['id'] | FieldDef['id'][];\n}\n\n// cSpell:disable-next-line\nexport type SanitizableProperties = Pick<\n State,\n | 'sortingOrder'\n | 'freezeColumns'\n | 'hiddenColumns'\n | 'columnWidths'\n | 'colOrder'\n | 'aggregationInfo'\n | 'groups'\n | 'customFields'\n | 'filterExpression'\n | 'hierarchicalGroup'\n | 'renderFormatter'\n>;\nexport interface UpdateAggregationPayload {\n columnId: FieldDef['id'];\n type: AggregationType;\n}\n\nexport interface UpdateRenderFormatterPayload {\n columnId: FieldDef['id'];\n name: Column['formatterName'];\n}\n\nexport interface RemoveRenderFormatterPayload {\n columnId: FieldDef['id'];\n}\n\nexport interface ChangeLabelActionPayload {\n columnId: FieldDef['id'];\n label: Column['label'];\n}\n\nexport interface SubmitChangeSetPayload {\n key: string;\n name: string;\n newValue: string | number | Date | boolean;\n oldValue: string | number | Date | boolean;\n status: string;\n}\n\n// Personalization Actions.\nexport type PersonalizationCreateAction = ReturnType<typeof Actions.actionPersonalizationCreate>;\nexport type PersonalizationDeleteAction = ReturnType<typeof Actions.actionPersonalizationDelete>;\nexport type PersonalizationEditAction = ReturnType<typeof Actions.actionPersonalizationEdit>;\nexport type PersonalizationSetActiveAction = ReturnType<\n typeof Actions.actionPersonalizationSetActive\n>;\nexport type PersonalizationSetAppDefaultAction = ReturnType<\n typeof Actions.actionPersonalizationSetAppDefault\n>;\nexport type PersonalizationSetDefaultAction = ReturnType<\n typeof Actions.actionPersonalizationSetDefault\n>;\nexport type PersonalizationUpdateAction = ReturnType<typeof Actions.actionPersonalizationUpdate>;\nexport type PersonalizationUpdateIdAction = ReturnType<\n typeof Actions.actionPersonalizationUpdateId\n>;\nexport type PersonalizationUpdatePresetIdAction = ReturnType<\n typeof Actions.actionPersonalizationUpdatePresetId\n>;\nexport type GetPersonalizationsAction = ReturnType<typeof Actions.actionGetPersonalizations>;\nexport type PersonalizationActions =\n | PersonalizationCreateAction\n | PersonalizationDeleteAction\n | PersonalizationEditAction\n | PersonalizationSetActiveAction\n | PersonalizationSetAppDefaultAction\n | PersonalizationSetDefaultAction\n | PersonalizationUpdateAction\n | PersonalizationUpdateIdAction\n | PersonalizationUpdatePresetIdAction\n | GetPersonalizationsAction;\n\n// TODO: Remove Action as function.The logic for Search global action function can be move to reducer.\n// Needs further refactor, but it is required to remove the Actions as function usecase in reducer.\nexport type ActionAsFunction = SearchGlobalActionAsFunction;\n\n// All Actions of type object with signature {type: TYPE: payload: PAYLOAD}\nconst { actionSearchGlobal, ...objectActions } = Actions;\nexport type Action = GenerateActionType<typeof objectActions> | SearchGlobalAction;\n\n// Generic Action that represents Actions as object and Action as function.\n// TODO Action as function should be removed, only one use case is present as of today which can be migrated to Action as object.\nexport type BaseAction = Action | ActionAsFunction;\n"]}
@@ -280,6 +280,11 @@ export default class Column {
280
280
  * @param name - Formatter name.
281
281
  */
282
282
  applyFormatter(name: NonNullable<Column['formatterName']>): void;
283
+ /** Removes formatter of the current column.
284
+ *
285
+ * Dispatches an action that updates {@link State.renderFormatter renderFormatter} in the state.
286
+ */
287
+ removeFormatter(): void;
283
288
  /**
284
289
  * Applies {@link mode displayMode} to hierarchical column.
285
290
  *
@@ -1 +1 @@
1
- {"version":3,"file":"ColumnGenerator.d.ts","sourceRoot":"","sources":["../../../../src/core/generators/ColumnGenerator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE,OAAO,KAAK,EACV,sBAAsB,EACtB,QAAQ,EACR,IAAI,EACJ,WAAW,EACZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAS,IAAI,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAI/E,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,eAAe,CAAC;AAM5C,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,aAAa,EACb,0BAA0B,EAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,CAAC,OAAO,OAAO,MAAM;;IASzB,gEAAgE;IAChE,KAAK,EAAS,WAAW,CAAC;IAC1B;;OAEG;IACH,OAAO,UAAS;IAChB;;OAEG;IACH,MAAM,UAAS;IACf;;OAEG;IACH,QAAQ,UAAS;IACjB;;OAEG;IACH,MAAM,UAAS;IACf,4EAA4E;IAC5E,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAC9C,yEAAyE;IACzE,SAAS,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;IACxC;;O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M,YAAY,CAAC;IA2B1C;;;;OAIG;IACH,aAAa;IAIb;;;;;;;OAOG;IAEH,YAAY,CAAC,UAAU,qBAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC;IAU3D;;;;;;OAMG;IAEH,qBAAqB;IAIrB;;;;;OAKG;IACH,WAAW;IAIX;;;;;;;OAOG;IACH,kBAAkB,CAAC,KAAK,EAAE,MAAM;IAIhC;;;OAGG;IACH,gBAAgB,CAAC,IAAI,EAAE,eAAe;IAStC;;;OAGG;IACH,UAAU,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAS9C;;;;OAIG;IACH,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IASzD;;;OAGG;IACH,eAAe;IAQf;;;;;;OAMG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM;IAezB;;;;;;;;OAQG;IACH,UAAU,CACR,SAAS,EAAE,MAAM,GAAG,OAAO,EAC3B,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,WAAW,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EACzE,YAAY,EAAE,OAAO;IAgBvB;;;;OAIG;IACH,kBAAkB;IAQlB;;;;OAIG;IAEH,mBAAmB;IAInB;;OAEG;IACH,IAAI,aAAa,wBAEhB;IAED;;OAEG;IACH,iBAAiB;IAOjB;;;;;;OAMG;IAEH,oBAAoB;CAUrB"}
@@ -202,6 +202,7 @@ export default class Column {
202
202
  this.applyAggregation = this.applyAggregation.bind(this);
203
203
  this.applyLabel = this.applyLabel.bind(this);
204
204
  this.applyFormatter = this.applyFormatter.bind(this);
205
+ this.removeFormatter = this.removeFormatter.bind(this);
205
206
  this.applyMerge = this.applyMerge.bind(this);
206
207
  this.deleteCustomColumn = this.deleteCustomColumn.bind(this);
207
208
  this.applyColumnAutoSize = this.applyColumnAutoSize.bind(this);
@@ -397,6 +398,8 @@ export default class Column {
397
398
  }
398
399
  return (overriddenExecutionContext || this.#executionContext)?.getValue?.()?.[tooltip];
399
400
  },
401
+ /** Returns the header label */
402
+ getLabel: () => this.categorizedHeaderLabel,
400
403
  setProp: (prop, value) => this.setPropMutatively(prop, value),
401
404
  getSortProperties: this.getSortProperties,
402
405
  getExpression: this.getExpression,
@@ -411,6 +414,7 @@ export default class Column {
411
414
  applyAggregation: this.applyAggregation,
412
415
  applyLabel: this.applyLabel,
413
416
  applyFormatter: this.applyFormatter,
417
+ removeFormatter: this.removeFormatter,
414
418
  applyMerge: this.applyMerge,
415
419
  deleteCustomColumn: this.deleteCustomColumn,
416
420
  getRendererType: () => {
@@ -553,6 +557,15 @@ export default class Column {
553
557
  name
554
558
  }));
555
559
  }
560
+ /** Removes formatter of the current column.
561
+ *
562
+ * Dispatches an action that updates {@link State.renderFormatter renderFormatter} in the state.
563
+ */
564
+ removeFormatter() {
565
+ this.#dispatch(actions.actionRemoveRenderFormatter({
566
+ columnId: this.field.id
567
+ }));
568
+ }
556
569
  /**
557
570
  * Applies {@link mode displayMode} to hierarchical column.
558
571
  *
@@ -1 +1 @@
1
- {"version":3,"file":"ColumnGenerator.js","sourceRoot":"","sources":["../../../../src/core/generators/ColumnGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,YAAY,CAAC;AAY7B,OAAO,EAAE,cAAc,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAoBzC,MAAM,CAAC,OAAO,OAAO,MAAM;IACzB,8CAA8C;IAC9C,QAAQ,CAAU;IAClB,8CAA8C;IAC9C,QAAQ,CAAU;IAClB,uCAAuC;IACvC,WAAW,CAAa;IACxB,MAAM;IACN,SAAS,CAA4B;IACrC,gEAAgE;IAChE,KAAK,GAAG,EAAiB,CAAC;IAC1B;;OAEG;IAC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,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACvC,CAAC;CACF","sourcesContent":["import get from 'lodash.get';\n\nimport type { ExcludeStrict, OmitStrict } from '@pega/cosmos-react-core';\nimport type { Condition } from '@pega/cosmos-react-condition-builder';\n\nimport type {\n ConditionalStyleFormat,\n FieldDef,\n Meta,\n StyleFormat\n} from '../../../types/Meta.types';\nimport type { State, Sort, AggregationType } from '../../../types/State.types';\nimport { compareObjects, evaluateStyleFormatForCell } from '../utils/util';\nimport * as actions from '../actions/actions';\nimport { RICH_TEXT } from '../constants';\nimport type RsProps from '../RsProps';\nimport type RsInternal from '../RsInternal';\nimport type RsStore from '../RsStore';\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport type { ApiContext } from '../../../types/ApiContext.types';\nimport type StateResolver from '../StateResolver';\n\nimport type Row from './RowGenerator';\nimport type {\n ColumnConfig,\n ColumnResizerProps,\n ColumnStyle,\n SortProperties,\n ColumnContext,\n ColumnRenderingEngineProps\n} from './ColumnGenerator.types';\nimport type { RowContext, RowData } from './RowGenerator.types';\nimport type { FormatterFunction } from './ViewGenerator.types';\n\nexport default class Column {\n /** Reference to repeating structure props. */\n #rsProps: RsProps;\n /** Reference to repeating structure store. */\n #rsStore: RsStore;\n /** Reference to rs internal object. */\n #rsInternal: RsInternal;\n /** */\n #dispatch: StateResolver['dispatch'];\n /** The common CSS styles for a column like width, order etc. */\n style = {} as ColumnStyle;\n /** Indicates if the column is grouped.\n * @default false\n */\n grouped = false;\n /** Indicates if the column is frozen.\n * @default false\n */\n frozen = false;\n /** Indicates if any filter is appplied to the column.\n * @default false\n */\n filtered = false;\n /** Indicates if any sorting is applied to the column.\n * @default false\n */\n sorted = false;\n /** Indicates the sorting sequence of the column if it is {@link sorted}. */\n sortSequence?: SortProperties['sortSequence'];\n /** Indicates the sorting order of the column if it is {@link sorted}. */\n sortOrder?: SortProperties['sortOrder'];\n /** Indicates if the column is lastFrozen column if it is {@link frozen}.\n * @default false\n */\n lastFrozen = false;\n /** Indicates if aggregation is applied on the column.\n * @default false\n */\n aggregated = false;\n /** Aggregated value for the column for an {@link aggregationType} if {@link aggregated aggregation} is applied. */\n aggregateValue?: number;\n /** Current aggregation type applied on the column. */\n aggregationType?: AggregationType;\n /** Indicates the current width of the column. */\n currentWidth?: number;\n /** Field meta for this column from {@link Meta.fieldDefs meta fieldDefs}. */\n field: FieldDef;\n /** Indicates if the formatting is allowed on this column.\n * @default true\n */\n formatterAllowed = true;\n /** Indicates the current formatter applied to the column. */\n formatterName?: string;\n /** The formatter function corresponding toe the {@link formatterName}. */\n formatter?: FormatterFunction;\n /** The name of the renderer for this cell. */\n cellRenderer?: string;\n /** Indicates if the column is hidden.\n * @default false\n */\n hidden = false;\n /** Label for the column that can be displayed to end user. */\n label?: string;\n /** Categorized label for the column if the column has categories derived from {@link FieldDef.category}. */\n categorizedHeaderLabel?: string;\n /** Indicates if the column is first visual column for the end user.\n * @default false\n */\n isFirstVisualColumn = false;\n /** Indicates if the column is first data column, excluding any action column like checkbox, row action, drag drop column.\n * @default false\n */\n isFirstDataColumn = false;\n /** Indicates if the column is last column. */\n isLastColumn = false;\n /** Indicates if the column is a custom column derived from Customize column feature.\n * E.g. column generated by joining 2 columns. */\n isCustomColumn = false;\n /** Visual order of the column with respect to other columns */\n order?: number;\n /** CSS classes for the column.\n * @default empty array.\n */\n classList = [] as string[];\n /** Indicates if the icons should be shown for the column on the header based on {@link FieldDef.type type}. */\n showHeaderIcons = false;\n /** Indicates if the width of the column is changed. */\n isWidthChanged = false;\n /** Indicates if tooltip should be shown for the column in cells. */\n #showToolTip!: boolean;\n /** Indicates the current display mode for hierarchical columns. */\n displayMode?: string | null;\n /** Indicates if the selection column is disabled for selection. */\n disableSelection?: boolean;\n // TODO: Update executionContext type. 'RowContext' | 'ViewContext' | null\n /** The current running execution context i.e. row context for the column in which the column is being rendered. */\n #executionContext: RowContext | null;\n /** The {@link Row row} in which column is being rendered. */\n #pRow: Row | null;\n /** The formatted value for the column. */\n formattedValue: string | null;\n /** Returns the resize events that can be attached to column DOM node. */\n getResizerProps: () => ColumnResizerProps | undefined;\n /** Alias of the column */\n alias?: string;\n /** Indicates a re-render is triggered for the column. */\n refresh?: number;\n /** A factory function provided to RsCore that returns component or component definition for specified type\n * @param type It is equal to value of {@link FieldDef.cellRenderer cellRenderer}(if added in fieldDefs of that column).\n * @returns It should return a component definition (or an object that contains component definition).\n * This component definition will be used by RepeatingStructures to render a cell with the component provided by renderFactory.\n * If component definition is not provided from render factory or renderFactory is not provided to Repeating structures then cell will be rendered directly with value derived for the cell or the formatted value(if {@link RsProps.formatters formatters} are provided for that column)\n */\n renderFactory?: RsProps['renderFactory'];\n /** Reference to {@link Column} class construtcor. */\n type?: typeof Column;\n /** Array of conditional style formats applied to this column. */\n conditionalStyleFormats?: OmitStrict<ConditionalStyleFormat, 'fieldName'>[];\n\n /**\n * Creates a new instance of a column within a repeating structure template.\n * @param config It represents few config properties which is used to create column instance.\n * @param rsInternal A reference to rsInternal object.\n */\n constructor(config: ColumnConfig, rsInternal: RsInternal) {\n const {\n aggregateValue,\n aggregationType,\n currentWidth,\n field,\n formatterName,\n formatter,\n cellRenderer,\n label,\n alias,\n categorizedHeaderLabel,\n sortSequence,\n sortOrder,\n order,\n displayMode,\n disableSelection,\n filtered = false,\n formatterAllowed = true,\n hidden = false,\n style = {} as ColumnStyle,\n grouped = false,\n frozen = false,\n lastFrozen = false,\n aggregated = false,\n sorted = false,\n isFirstVisualColumn = false,\n isFirstDataColumn = false,\n isLastColumn = false,\n isCustomColumn = false,\n classList = [],\n showHeaderIcons = false,\n showTooltip = !!(field.showTooltip === undefined ? true : field.showTooltip),\n isWidthChanged = false,\n refresh,\n conditionalStyleFormats\n } = config;\n const { getRsStore, getRsProps, getRsStateResolver } = rsInternal;\n const rsStore = getRsStore();\n const rsProps = getRsProps();\n const { dispatch } = getRsStateResolver();\n this.#rsInternal = rsInternal;\n this.#rsProps = rsProps;\n this.#rsStore = rsStore;\n this.#dispatch = dispatch;\n this.renderFactory = rsProps.renderFactory;\n this.type = this.constructor as typeof Column;\n // Persisted props at column level.\n this.style = style;\n this.grouped = grouped;\n this.frozen = frozen;\n this.filtered = filtered;\n this.sorted = sorted;\n this.sortSequence = sortSequence;\n this.sortOrder = sortOrder;\n this.lastFrozen = lastFrozen;\n this.aggregated = aggregated;\n this.aggregateValue = aggregateValue;\n this.aggregationType = aggregationType;\n this.currentWidth = currentWidth;\n this.field = field;\n this.formatterAllowed = formatterAllowed;\n this.formatterName = formatterName;\n this.formatter = formatter;\n this.cellRenderer = cellRenderer;\n this.hidden = hidden;\n this.label = label;\n this.alias = alias;\n this.refresh = refresh;\n this.categorizedHeaderLabel = categorizedHeaderLabel;\n this.isFirstVisualColumn = isFirstVisualColumn;\n this.isFirstDataColumn = isFirstDataColumn;\n this.isLastColumn = isLastColumn;\n this.isCustomColumn = isCustomColumn;\n this.order = order;\n this.classList = classList;\n this.showHeaderIcons = showHeaderIcons;\n this.showTooltip = showTooltip;\n this.isWidthChanged = isWidthChanged;\n this.displayMode = displayMode;\n this.disableSelection = disableSelection;\n this.conditionalStyleFormats = conditionalStyleFormats;\n\n // this props are only used at time of rendering. values are not persisted across rows / cells\n this.#executionContext = null;\n this.#pRow = null;\n this.formattedValue = null;\n\n /** IMP: For generator methods use traditional function syntax\n * rather than arrow function for memory efficiency\n * and bind 'this' to the methods which requires 'this' context. */\n this.getUniqueValues = this.getUniqueValues.bind(this);\n this.getRenderFormatters = this.getRenderFormatters.bind(this);\n this.getSortProperties = this.getSortProperties.bind(this);\n this.getFilterProperties = this.getFilterProperties.bind(this);\n this.getUIProps = this.getUIProps.bind(this);\n this.getHeaderUIProps = this.getHeaderUIProps.bind(this);\n this.getResizerProps = () => getRsStore().getColumnResizerProps?.();\n this.setProp = this.setProp.bind(this);\n this.getRenderingEngineProps = this.getRenderingEngineProps.bind(this);\n this.renderDisplayMode = this.renderDisplayMode.bind(this);\n\n this.setExecutionContext = this.setExecutionContext.bind(this);\n this.getExecutionContext = this.getExecutionContext.bind(this);\n this.getContext = this.getContext.bind(this);\n this.getExpression = this.getExpression.bind(this);\n // All action APIs supported on instance\n this.applyGrouping = this.applyGrouping.bind(this);\n this.applySorting = this.applySorting.bind(this);\n this.applyToggleVisibility = this.applyToggleVisibility.bind(this);\n this.applyFreeze = this.applyFreeze.bind(this);\n this.applyFreezeAtIndex = this.applyFreezeAtIndex.bind(this);\n this.applyAggregation = this.applyAggregation.bind(this);\n this.applyLabel = this.applyLabel.bind(this);\n this.applyFormatter = this.applyFormatter.bind(this);\n this.applyMerge = this.applyMerge.bind(this);\n this.deleteCustomColumn = this.deleteCustomColumn.bind(this);\n this.applyColumnAutoSize = this.applyColumnAutoSize.bind(this);\n this.applyDisplay = this.applyDisplay.bind(this);\n this.getCellStyleFormat = this.getCellStyleFormat.bind(this);\n }\n\n /** Reference to current view object. */\n get parent() {\n return this.#rsInternal.getView();\n }\n\n /** The data for all the cells for the column. */\n get data(): RowData[keyof RowData][] {\n return this.parent.data?.map(d => get(d, this.field.name)) || [];\n }\n\n /**\n * It returns the expression for the column if it is a {@link isCustomColumn custom} column.\n */\n getExpression() {\n return this.parent.state?.customFields?.find(c => c.id === this.field.id)?.expression;\n }\n\n // Used by setProp for mutation\n /**\n * Returns the current column config, which can be used to create a new instance of the column.\n * This is typically used with {@link setProp}\n * @returns {ColumnConfig}\n */\n #get(): ColumnConfig {\n return {\n aggregated: this.aggregated,\n grouped: this.grouped,\n aggregateValue: this.aggregateValue,\n aggregationType: this.aggregationType,\n currentWidth: this.currentWidth,\n field: this.field,\n style: this.style,\n frozen: this.frozen,\n lastFrozen: this.lastFrozen,\n formatterAllowed: this.formatterAllowed,\n formatterName: this.formatterName,\n formatter: this.formatter,\n hidden: this.hidden,\n label: this.label,\n categorizedHeaderLabel: this.categorizedHeaderLabel,\n cellRenderer: this.cellRenderer,\n filtered: this.filtered,\n sorted: this.sorted,\n sortSequence: this.sortSequence,\n sortOrder: this.sortOrder,\n isCustomColumn: this.isCustomColumn,\n isFirstVisualColumn: this.isFirstVisualColumn,\n isFirstDataColumn: this.isFirstDataColumn,\n isLastColumn: this.isLastColumn,\n order: this.order,\n classList: this.classList,\n showHeaderIcons: this.showHeaderIcons,\n isWidthChanged: this.isWidthChanged,\n displayMode: this.displayMode,\n disableSelection: this.disableSelection,\n alias: this.alias,\n conditionalStyleFormats: this.conditionalStyleFormats\n };\n }\n\n /**\n * Indicates if tooltip needs to be shown or not for the current column cells.\n */\n get showTooltip() {\n return this.#showToolTip && this.cellRenderer !== RICH_TEXT;\n }\n\n /**\n * Sets the showTooltip flag for the current column.\n */\n set showTooltip(showTooltip) {\n this.#showToolTip = showTooltip;\n }\n\n /**\n * Retrieves the distinct values for this column using {@link ApiContext.fetchUniqueColValues fetchUniqueColValues}.\n */\n async getUniqueValues() {\n return (\n this.#rsProps.apiContext.fetchUniqueColValues?.(\n this.parent.state,\n this.parent.meta,\n this.field.id,\n {\n ...(this.#rsStore.refreshInProgress && {\n invalidateCache: true,\n invalidateCacheToken: this.#rsStore.refreshToken\n })\n }\n ) || Promise.resolve([])\n );\n }\n\n /**\n * Returns the formatters available for the current column from\n * {@link RsProps.renderFormatterTypeMap renderFormatterTypeMap} based on its {@link FieldDef.type type}\n */\n getRenderFormatters() {\n const formattersForType = this.parent.renderFormatterTypeMap?.[this.field.type] || [];\n return this.field.formatters ?? formattersForType;\n }\n\n /** Returns the sorting information for the current column. */\n getSortProperties() {\n return {\n sorted: this.sorted,\n sortSequence: this.sortSequence,\n sortOrder: this.sortOrder\n };\n }\n\n /** Returns the filter information for the current column. */\n getFilterProperties(): { filtered: boolean; filterExpression: Condition | undefined } {\n return {\n filtered: this.filtered,\n filterExpression: this.parent.state.filterExpression\n };\n }\n\n /**\n * Retrieves the UI properties for the column, which can be applied to value cells within this column.\n */\n getUIProps() {\n // FIXME: aria-colIndex is NaN sometimes\n return {\n style: { ...this.style },\n 'data-col-id': this.field.id,\n classList: [...this.classList],\n 'aria-colindex': this.order! + 1,\n role: this.field.isRowHeader ? 'rowheader' : 'gridcell'\n };\n }\n\n /**\n * Retrieves the {@link StyleFormat style format} style format applicable to the cell\n * @returns The style format if applicable, otherwise `undefined`.\n *\n */\n getCellStyleFormat(): StyleFormat | undefined {\n return evaluateStyleFormatForCell(this, this.#rsInternal);\n }\n\n /**\n * Retrieves the UI properties for the column, which can be applied to the header cells of this column.\n */\n getHeaderUIProps() {\n return {\n 'data-col-id': this.field.id,\n draggable: this.field.reorderFields,\n role: 'columnheader',\n ...(this.field.reorderFields && this.parent.type.getFieldReorderProps?.())\n };\n }\n\n // TODO: why return search query in column rendering engine props.\n /**\n * Provides essential information for cell rendering, including the column and row.\n * Additionally, it supplies the current search query.\n */\n getRenderingEngineProps(): ColumnRenderingEngineProps {\n return {\n column: this as Column,\n row: this.#pRow,\n searchKeyword: this.parent?.state?.search?.query\n };\n }\n\n /**\n * Sets the current execution context, {@link RowContext}, when rendering a cell for this column.\n * This dynamic context is updated for each cell in the column as it is rendered.\n */\n setExecutionContext(row: Row | null) {\n this.#pRow = row;\n this.#executionContext = row ? row.getContext() : null;\n }\n\n /**\n * Retrieves the current execution context, i.e., {@link RowContext}, when rendering a cell for this column.\n * This context dynamically updates as each cell in the column is rendered.\n */\n getExecutionContext() {\n return this.#executionContext;\n }\n\n /**\n * Returns the current column {@link ColumnContext context}.\n * @param overriddenExecutionContext - optional param to override the execution context with custom {@link RowContext}.\n * @returns\n *\n * @public\n */\n getContext(overriddenExecutionContext?: RowContext | null): ColumnContext {\n return {\n name: 'column',\n getField: () => this.field,\n getValue: () =>\n get((overriddenExecutionContext || this.#executionContext)?.getValue?.(), this.field?.name),\n getExecutionContext: () => overriddenExecutionContext || this.#executionContext,\n getParentContext: () => this.parent.getContext(),\n getFormatter: () => this.formatter,\n formatterAllowed: () => this.formatterAllowed,\n getCellRenderer: () => this.cellRenderer,\n getFormatterName: () => this.formatterName,\n getFormattedValue: () => this.formattedValue,\n getSearchKeyword: () => this.parent?.state?.searchText,\n showTooltip: () => this.showTooltip,\n getToolTipValue: () => {\n const tooltip = this.field?.tooltip;\n if (!tooltip) {\n return this.formattedValue;\n }\n return (overriddenExecutionContext || this.#executionContext)?.getValue?.()?.[tooltip];\n },\n setProp: (\n prop:\n | Partial<OmitStrict<Column, 'data' | 'isAutoSizable' | 'parent'>>\n | ExcludeStrict<keyof Column, 'data' | 'isAutoSizable' | 'parent'>,\n value?: Column[keyof Column]\n ) => this.setPropMutatively(prop, value),\n getSortProperties: this.getSortProperties,\n getExpression: this.getExpression,\n getFilterProperties: this.getFilterProperties,\n searchKeyword: this.parent?.state?.searchText,\n getTableMeta: () => this.parent.meta,\n getRsMeta: () => this.parent.meta,\n applyGrouping: this.applyGrouping,\n applySorting: this.applySorting,\n applyToggleVisibility: this.applyToggleVisibility,\n applyFreeze: this.applyFreeze,\n applyAggregation: this.applyAggregation,\n applyLabel: this.applyLabel,\n applyFormatter: this.applyFormatter,\n applyMerge: this.applyMerge,\n deleteCustomColumn: this.deleteCustomColumn,\n getRendererType: () => {\n return this.isCustomColumn ? 'customCellRenderer' : 'cellRenderer';\n },\n selectAllRows: this.parent.type.selectAllRows,\n getDisableSelection: () => this.disableSelection\n };\n }\n\n /**\n * Updates property of the column with value. The updated value will be reflected on next re-render.\n * @param prop Either partial of {@link Column} or individual properties of {@link Column}.\n * @param [value] An optional parameter to provide value for {@link prop} in case prop is not of type {@link ColumnConfig}\n * @returns void\n */\n setPropMutatively(\n prop:\n | Partial<OmitStrict<Column, 'data' | 'isAutoSizable' | 'parent'>>\n | ExcludeStrict<keyof Column, 'data' | 'isAutoSizable' | 'parent'>,\n value?: Column[keyof Column]\n ) {\n if (typeof prop !== 'object' && value) {\n // @ts-expect-error check the index based type error.\n this[prop] = value;\n } else {\n Object.entries(prop).forEach(([k, v]) => {\n // @ts-expect-error Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'Column'.\n this[k] = v;\n });\n }\n }\n\n // setProp is used to make columns immutables.\n /**\n * Sets a {@link prop property} and its {@link value} in the {@link Column} instance, creating an immutable instance.\n * Always use `setProp` to update properties of {@link Column} to ensure immutability.\n *\n * @param prop Either a partial {@link ColumnConfig} or individual properties of {@link ColumnConfig}.\n * @param [value] Optional value to set for `prop` if `prop` is not of type {@link ColumnConfig}.\n * @returns void\n */\n\n setProp(\n prop: Partial<ColumnConfig> | keyof ColumnConfig,\n value?: ColumnConfig[keyof ColumnConfig]\n ) {\n const { getView } = this.#rsInternal;\n const index = getView().columns!.findIndex(c => c === this);\n let pObject = prop;\n if (typeof prop !== 'object') {\n pObject = { [prop]: value };\n }\n\n // Change object if any value changes actually.\n // @ts-expect-error utils should be converted to TS in order to resolve this.\n if (!compareObjects(this, pObject, Object.keys(pObject)) && index >= 0) {\n const newColumn = new Column(\n {\n ...this.#get(),\n ...(pObject as Partial<ColumnConfig>)\n },\n this.#rsInternal\n );\n const cloned = [...getView().columns!];\n cloned.splice(index, 1, newColumn);\n getView().columns = cloned;\n return newColumn;\n }\n return this;\n }\n\n /**\n * Applies grouping to this column.\n *\n * Dispatches an action that modifies the {@link State.groups groups} in the state.\n */\n applyGrouping() {\n this.#dispatch(actions.actionToggleGrouping(this.field));\n }\n\n /**\n * Applies sorting to this column.\n *\n * Dispatches an action that updates the {@link State.sortingOrder sortingOrder} in the state.\n *\n * @param flushState If true, it will reset the existing {@link State.sortingOrder sortingOrder} state for this column.\n * @param sortOrderId The sort order, either 'asc' or 'desc'.\n */\n // eslint-disable-next-line @typescript-eslint/default-param-last\n applySorting(flushState = false, sortOrderId: Sort['order']) {\n this.#dispatch(\n actions.actionColumnSort({\n id: this.field.id,\n flushState,\n sortOrderId\n })\n );\n }\n\n /**\n * Toggles the visibility of a column, allowing it to be shown or hidden.\n *\n * Dispatches an action that updates {@link State.hiddenColumns hiddenColumns} in the state.\n *\n * @param column The column to be toggled.\n */\n\n applyToggleVisibility() {\n this.#dispatch(actions.actionColumnToggle([this.field.id]));\n }\n\n /**\n * Toggles the \"freeze\" effect on a column, locking it to the left while the rest of the content scrolls.\n * This helps keep key columns visible in large datasets.\n *\n * Dispatches an action that updates {@link State.freezeColumns freezeColumns} in the state.\n */\n applyFreeze() {\n this.#dispatch(actions.actionColumnPin([this.field.id]));\n }\n\n /**\n * Toggles the \"freeze\" effect on a column, locking it at given index while the rest of the columns\n * continues to scroll. This can be used to keep key columns visible in large datasets.\n * The freeze order of the given column is defined by {@link index} passed.\n *\n * Dispatches an action that modifies {@link State.freezeColumns freezeColumns} in the state.\n * @param index\n */\n applyFreezeAtIndex(index: number) {\n this.#dispatch(actions.actionColumnPinAtIndex(this.field.id, index));\n }\n\n /** Applies aggregation to the column, summarizing the data based on a specified {@link type aggregationType}.\n *\n * Dispatches an action that modifies {@link State.aggregationInfo aggregation} in the state.\n */\n applyAggregation(type: AggregationType) {\n this.#dispatch(\n actions.actionUpdateAggregation({\n columnId: this.field.id,\n type\n })\n );\n }\n\n /** Applies label to the current column.\n *\n * Dispatches an action that updates {@link State.columnAlias columnAlias} in the state.\n */\n applyLabel(label: NonNullable<Column['label']>) {\n this.#dispatch(\n actions.actionChangeLabel({\n columnId: this.field.id,\n label\n })\n );\n }\n\n /** Applies formatter to the current column.\n *\n * Dispatches an action that updates {@link State.renderFormatter renderFormatter} in the state.\n * @param name - Formatter name.\n */\n applyFormatter(name: NonNullable<Column['formatterName']>) {\n this.#dispatch(\n actions.actionUpdateRenderFormatter({\n columnId: this.field.id,\n name\n })\n );\n }\n\n /**\n * Applies {@link mode displayMode} to hierarchical column.\n *\n * Dispatches an action that modifies {@link State.hierarchicalGroup hierarchicalGroups},\n * {@link State.groupToggle groupToggle}, {@link State.groups groups} in the state.\n * @param mode\n */\n applyDisplay(mode: string) {\n const { hierarchicalInfo } = this.field;\n this.#rsStore.groupingInfo = [] as NonNullable<RsStore['groupingInfo']>;\n this.#dispatch(\n actions.actionUpdateDisplayMode({\n parentId: hierarchicalInfo!.parentId,\n materializedPathId: hierarchicalInfo!.materializedPathId,\n targetId: hierarchicalInfo!.targetId,\n columnId: this.field.id,\n sortById: hierarchicalInfo!.sortById || hierarchicalInfo!.targetId,\n mode\n })\n );\n }\n\n /**\n * Applies merge operation(combine columns) to 2 columns based on selected template.\n *\n * Dispatches an action that modifies {@link State.customFields customFields} in the state.\n * @param mergeWith On which column the merge operation to be performed(left/right)\n * @param title label for the new custom column.\n * @param templateName The template which should be used to merge the columns\n * @param bHideColumns Hide the existing columns.\n */\n applyMerge(\n mergeWith: 'left' | 'right',\n title: string,\n templateName: NonNullable<Meta['dynamicFieldTemplates']>[number]['value'],\n bHideColumns: boolean\n ) {\n const step = mergeWith === 'left' ? -1 : 1;\n const targetId = this.parent.columns!.find(c => c.order === this.order! + step)!.field.id;\n this.#dispatch(\n actions.actionMergeColumns({\n sourceId: this.field.id,\n targetId,\n title,\n templateName,\n bHideColumns,\n uniqueID: String(+new Date())\n })\n );\n }\n\n /**\n * Deletes the custom column.\n *\n * Dispatches an action that modifies {@link State.customFields customFields} in the state by removing this column from it.\n */\n deleteCustomColumn() {\n this.#dispatch(\n actions.actionDeleteCustomColumn({\n columnId: this.field.id\n })\n );\n }\n\n /**\n * Updates column's width based on the autosize logic.\n *\n * Dispatches an action that modifies the {@link State.columnWidths columnWidths} in the state.\n */\n\n applyColumnAutoSize() {\n this.#dispatch(actions.actionColumnAutoSize(this, this.parent.getDomContainer()!));\n }\n\n /**\n * Determines if autosize is enabled for this column.\n */\n get isAutoSizable() {\n return this.field.autosize && !this.hidden && this.cellRenderer !== RICH_TEXT;\n }\n\n /**\n * Determines whether hierarchical mode should be enabled for this column.\n */\n renderDisplayMode() {\n const { meta } = this.parent;\n const { hierarchicalInfo } = this.field;\n\n return hierarchicalInfo?.materializedPathId && meta.grouping && !meta.editing;\n }\n\n /**\n * Retrieves the personalized width of the column, sourced from either\n * {@link RsProps.persistedInfo persistedInfo} or the current\n * {@link State.personalization personalized state}.\n *\n * @returns The personalized width of the column.\n */\n\n getPersonalizedWidth() {\n let columnWidths: State['columnWidths'] = {};\n if (this.#rsProps.persistedInfo) {\n columnWidths = this.#rsProps.persistedInfo.columnWidths;\n } else {\n const { active, allPersonalizations } = this.parent.state?.personalization ?? {};\n columnWidths = allPersonalizations?.[active!]?.personalizationState?.columnWidths;\n }\n return columnWidths?.[this.field.id];\n }\n}\n"]}
1
+ {"version":3,"file":"ColumnGenerator.js","sourceRoot":"","sources":["../../../../src/core/generators/ColumnGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,YAAY,CAAC;AAY7B,OAAO,EAAE,cAAc,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAoBzC,MAAM,CAAC,OAAO,OAAO,MAAM;IACzB,8CAA8C;IAC9C,QAAQ,CAAU;IAClB,8CAA8C;IAC9C,QAAQ,CAAU;IAClB,uCAAuC;IACvC,WAAW,CAAa;IACxB,MAAM;IACN,SAAS,CAA4B;IACrC,gEAAgE;IAChE,KAAK,GAAG,EAAiB,CAAC;IAC1B;;OAEG;IACH,OAAO,GAAG,KAAK,CAAC;IAChB;;OAEG;IACH,MAAM,GAAG,KAAK,CAAC;IACf;;OAEG;IACH,QAAQ,GAAG,KAAK,CAAC;IACjB;;OAEG;IACH,MAAM,GAAG,KAAK,CAAC;IACf,4EAA4E;IAC5E,YAAY,CAAkC;IAC9C,yEAAyE;IACzE,SAAS,CAA+B;IACxC;;OAEG;IACH,UAAU,GAAG,KAAK,CAAC;IACnB;;OAEG;IACH,UAAU,GAAG,KAAK,CAAC;IACnB,oHAAoH;IACpH,cAAc,CAAU;IACxB,sDAAsD;IACtD,eAAe,CAAmB;IAClC,iDAAiD;IACjD,YAAY,CAAU;IACtB,6EAA6E;IAC7E,KAAK,CAAW;IAChB;;OAEG;IACH,gBAAgB,GAAG,IAAI,CAAC;IACxB,6DAA6D;IAC7D,aAAa,CAAU;IACvB,0EAA0E;IAC1E,SAAS,CAAq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ACJ,CAAC;IAED;;;;OAIG;IAEH,mBAAmB;QACjB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,eAAe,EAAG,CAAC,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,YAAY,KAAK,SAAS,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,iBAAiB;QACf,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC;QAC7B,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAExC,OAAO,gBAAgB,EAAE,kBAAkB,IAAI,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;IAChF,CAAC;IAED;;;;;;OAMG;IAEH,oBAAoB;QAClB,IAAI,YAAY,GAA0B,EAAE,CAAC;QAC7C,IAAI,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;YAChC,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,YAAY,CAAC;QAC1D,CAAC;aAAM,CAAC;YACN,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,eAAe,IAAI,EAAE,CAAC;YACjF,YAAY,GAAG,mBAAmB,EAAE,CAAC,MAAO,CAAC,EAAE,oBAAoB,EAAE,YAAY,CAAC;QACpF,CAAC;QACD,OAAO,YAAY,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACvC,CAAC;CACF","sourcesContent":["import get from 'lodash.get';\n\nimport type { ExcludeStrict, OmitStrict } from '@pega/cosmos-react-core';\nimport type { Condition } from '@pega/cosmos-react-condition-builder';\n\nimport type {\n ConditionalStyleFormat,\n FieldDef,\n Meta,\n StyleFormat\n} from '../../../types/Meta.types';\nimport type { State, Sort, AggregationType } from '../../../types/State.types';\nimport { compareObjects, evaluateStyleFormatForCell } from '../utils/util';\nimport * as actions from '../actions/actions';\nimport { RICH_TEXT } from '../constants';\nimport type RsProps from '../RsProps';\nimport type RsInternal from '../RsInternal';\nimport type RsStore from '../RsStore';\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport type { ApiContext } from '../../../types/ApiContext.types';\nimport type StateResolver from '../StateResolver';\n\nimport type Row from './RowGenerator';\nimport type {\n ColumnConfig,\n ColumnResizerProps,\n ColumnStyle,\n SortProperties,\n ColumnContext,\n ColumnRenderingEngineProps\n} from './ColumnGenerator.types';\nimport type { RowContext, RowData } from './RowGenerator.types';\nimport type { FormatterFunction } from './ViewGenerator.types';\n\nexport default class Column {\n /** Reference to repeating structure props. */\n #rsProps: RsProps;\n /** Reference to repeating structure store. */\n #rsStore: RsStore;\n /** Reference to rs internal object. */\n #rsInternal: RsInternal;\n /** */\n #dispatch: StateResolver['dispatch'];\n /** The common CSS styles for a column like width, order etc. */\n style = {} as ColumnStyle;\n /** Indicates if the column is grouped.\n * @default false\n */\n grouped = false;\n /** Indicates if the column is frozen.\n * @default false\n */\n frozen = false;\n /** Indicates if any filter is appplied to the column.\n * @default false\n */\n filtered = false;\n /** Indicates if any sorting is applied to the column.\n * @default false\n */\n sorted = false;\n /** Indicates the sorting sequence of the column if it is {@link sorted}. */\n sortSequence?: SortProperties['sortSequence'];\n /** Indicates the sorting order of the column if it is {@link sorted}. */\n sortOrder?: SortProperties['sortOrder'];\n /** Indicates if the column is lastFrozen column if it is {@link frozen}.\n * @default false\n */\n lastFrozen = false;\n /** Indicates if aggregation is applied on the column.\n * @default false\n */\n aggregated = false;\n /** Aggregated value for the column for an {@link aggregationType} if {@link aggregated aggregation} is applied. */\n aggregateValue?: number;\n /** Current aggregation type applied on the column. */\n aggregationType?: AggregationType;\n /** Indicates the current width of the column. */\n currentWidth?: number;\n /** Field meta for this column from {@link Meta.fieldDefs meta fieldDefs}. */\n field: FieldDef;\n /** Indicates if the formatting is allowed on this column.\n * @default true\n */\n formatterAllowed = true;\n /** Indicates the current formatter applied to the column. */\n formatterName?: string;\n /** The formatter function corresponding toe the {@link formatterName}. */\n formatter?: FormatterFunction;\n /** The name of the renderer for this cell. */\n cellRenderer?: string;\n /** Indicates if the column is hidden.\n * @default false\n */\n hidden = false;\n /** Label for the column that can be displayed to end user. */\n label?: string;\n /** Categorized label for the column if the column has categories derived from {@link FieldDef.category}. */\n categorizedHeaderLabel?: string;\n /** Indicates if the column is first visual column for the end user.\n * @default false\n */\n isFirstVisualColumn = false;\n /** Indicates if the column is first data column, excluding any action column like checkbox, row action, drag drop column.\n * @default false\n */\n isFirstDataColumn = false;\n /** Indicates if the column is last column. */\n isLastColumn = false;\n /** Indicates if the column is a custom column derived from Customize column feature.\n * E.g. column generated by joining 2 columns. */\n isCustomColumn = false;\n /** Visual order of the column with respect to other columns */\n order?: number;\n /** CSS classes for the column.\n * @default empty array.\n */\n classList = [] as string[];\n /** Indicates if the icons should be shown for the column on the header based on {@link FieldDef.type type}. */\n showHeaderIcons = false;\n /** Indicates if the width of the column is changed. */\n isWidthChanged = false;\n /** Indicates if tooltip should be shown for the column in cells. */\n #showToolTip!: boolean;\n /** Indicates the current display mode for hierarchical columns. */\n displayMode?: string | null;\n /** Indicates if the selection column is disabled for selection. */\n disableSelection?: boolean;\n // TODO: Update executionContext type. 'RowContext' | 'ViewContext' | null\n /** The current running execution context i.e. row context for the column in which the column is being rendered. */\n #executionContext: RowContext | null;\n /** The {@link Row row} in which column is being rendered. */\n #pRow: Row | null;\n /** The formatted value for the column. */\n formattedValue: string | null;\n /** Returns the resize events that can be attached to column DOM node. */\n getResizerProps: () => ColumnResizerProps | undefined;\n /** Alias of the column */\n alias?: string;\n /** Indicates a re-render is triggered for the column. */\n refresh?: number;\n /** A factory function provided to RsCore that returns component or component definition for specified type\n * @param type It is equal to value of {@link FieldDef.cellRenderer cellRenderer}(if added in fieldDefs of that column).\n * @returns It should return a component definition (or an object that contains component definition).\n * This component definition will be used by RepeatingStructures to render a cell with the component provided by renderFactory.\n * If component definition is not provided from render factory or renderFactory is not provided to Repeating structures then cell will be rendered directly with value derived for the cell or the formatted value(if {@link RsProps.formatters formatters} are provided for that column)\n */\n renderFactory?: RsProps['renderFactory'];\n /** Reference to {@link Column} class construtcor. */\n type?: typeof Column;\n /** Array of conditional style formats applied to this column. */\n conditionalStyleFormats?: OmitStrict<ConditionalStyleFormat, 'fieldName'>[];\n\n /**\n * Creates a new instance of a column within a repeating structure template.\n * @param config It represents few config properties which is used to create column instance.\n * @param rsInternal A reference to rsInternal object.\n */\n constructor(config: ColumnConfig, rsInternal: RsInternal) {\n const {\n aggregateValue,\n aggregationType,\n currentWidth,\n field,\n formatterName,\n formatter,\n cellRenderer,\n label,\n alias,\n categorizedHeaderLabel,\n sortSequence,\n sortOrder,\n order,\n displayMode,\n disableSelection,\n filtered = false,\n formatterAllowed = true,\n hidden = false,\n style = {} as ColumnStyle,\n grouped = false,\n frozen = false,\n lastFrozen = false,\n aggregated = false,\n sorted = false,\n isFirstVisualColumn = false,\n isFirstDataColumn = false,\n isLastColumn = false,\n isCustomColumn = false,\n classList = [],\n showHeaderIcons = false,\n showTooltip = !!(field.showTooltip === undefined ? true : field.showTooltip),\n isWidthChanged = false,\n refresh,\n conditionalStyleFormats\n } = config;\n const { getRsStore, getRsProps, getRsStateResolver } = rsInternal;\n const rsStore = getRsStore();\n const rsProps = getRsProps();\n const { dispatch } = getRsStateResolver();\n this.#rsInternal = rsInternal;\n this.#rsProps = rsProps;\n this.#rsStore = rsStore;\n this.#dispatch = dispatch;\n this.renderFactory = rsProps.renderFactory;\n this.type = this.constructor as typeof Column;\n // Persisted props at column level.\n this.style = style;\n this.grouped = grouped;\n this.frozen = frozen;\n this.filtered = filtered;\n this.sorted = sorted;\n this.sortSequence = sortSequence;\n this.sortOrder = sortOrder;\n this.lastFrozen = lastFrozen;\n this.aggregated = aggregated;\n this.aggregateValue = aggregateValue;\n this.aggregationType = aggregationType;\n this.currentWidth = currentWidth;\n this.field = field;\n this.formatterAllowed = formatterAllowed;\n this.formatterName = formatterName;\n this.formatter = formatter;\n this.cellRenderer = cellRenderer;\n this.hidden = hidden;\n this.label = label;\n this.alias = alias;\n this.refresh = refresh;\n this.categorizedHeaderLabel = categorizedHeaderLabel;\n this.isFirstVisualColumn = isFirstVisualColumn;\n this.isFirstDataColumn = isFirstDataColumn;\n this.isLastColumn = isLastColumn;\n this.isCustomColumn = isCustomColumn;\n this.order = order;\n this.classList = classList;\n this.showHeaderIcons = showHeaderIcons;\n this.showTooltip = showTooltip;\n this.isWidthChanged = isWidthChanged;\n this.displayMode = displayMode;\n this.disableSelection = disableSelection;\n this.conditionalStyleFormats = conditionalStyleFormats;\n\n // this props are only used at time of rendering. values are not persisted across rows / cells\n this.#executionContext = null;\n this.#pRow = null;\n this.formattedValue = null;\n\n /** IMP: For generator methods use traditional function syntax\n * rather than arrow function for memory efficiency\n * and bind 'this' to the methods which requires 'this' context. */\n this.getUniqueValues = this.getUniqueValues.bind(this);\n this.getRenderFormatters = this.getRenderFormatters.bind(this);\n this.getSortProperties = this.getSortProperties.bind(this);\n this.getFilterProperties = this.getFilterProperties.bind(this);\n this.getUIProps = this.getUIProps.bind(this);\n this.getHeaderUIProps = this.getHeaderUIProps.bind(this);\n this.getResizerProps = () => getRsStore().getColumnResizerProps?.();\n this.setProp = this.setProp.bind(this);\n this.getRenderingEngineProps = this.getRenderingEngineProps.bind(this);\n this.renderDisplayMode = this.renderDisplayMode.bind(this);\n\n this.setExecutionContext = this.setExecutionContext.bind(this);\n this.getExecutionContext = this.getExecutionContext.bind(this);\n this.getContext = this.getContext.bind(this);\n this.getExpression = this.getExpression.bind(this);\n // All action APIs supported on instance\n this.applyGrouping = this.applyGrouping.bind(this);\n this.applySorting = this.applySorting.bind(this);\n this.applyToggleVisibility = this.applyToggleVisibility.bind(this);\n this.applyFreeze = this.applyFreeze.bind(this);\n this.applyFreezeAtIndex = this.applyFreezeAtIndex.bind(this);\n this.applyAggregation = this.applyAggregation.bind(this);\n this.applyLabel = this.applyLabel.bind(this);\n this.applyFormatter = this.applyFormatter.bind(this);\n this.removeFormatter = this.removeFormatter.bind(this);\n this.applyMerge = this.applyMerge.bind(this);\n this.deleteCustomColumn = this.deleteCustomColumn.bind(this);\n this.applyColumnAutoSize = this.applyColumnAutoSize.bind(this);\n this.applyDisplay = this.applyDisplay.bind(this);\n this.getCellStyleFormat = this.getCellStyleFormat.bind(this);\n }\n\n /** Reference to current view object. */\n get parent() {\n return this.#rsInternal.getView();\n }\n\n /** The data for all the cells for the column. */\n get data(): RowData[keyof RowData][] {\n return this.parent.data?.map(d => get(d, this.field.name)) || [];\n }\n\n /**\n * It returns the expression for the column if it is a {@link isCustomColumn custom} column.\n */\n getExpression() {\n return this.parent.state?.customFields?.find(c => c.id === this.field.id)?.expression;\n }\n\n // Used by setProp for mutation\n /**\n * Returns the current column config, which can be used to create a new instance of the column.\n * This is typically used with {@link setProp}\n * @returns {ColumnConfig}\n */\n #get(): ColumnConfig {\n return {\n aggregated: this.aggregated,\n grouped: this.grouped,\n aggregateValue: this.aggregateValue,\n aggregationType: this.aggregationType,\n currentWidth: this.currentWidth,\n field: this.field,\n style: this.style,\n frozen: this.frozen,\n lastFrozen: this.lastFrozen,\n formatterAllowed: this.formatterAllowed,\n formatterName: this.formatterName,\n formatter: this.formatter,\n hidden: this.hidden,\n label: this.label,\n categorizedHeaderLabel: this.categorizedHeaderLabel,\n cellRenderer: this.cellRenderer,\n filtered: this.filtered,\n sorted: this.sorted,\n sortSequence: this.sortSequence,\n sortOrder: this.sortOrder,\n isCustomColumn: this.isCustomColumn,\n isFirstVisualColumn: this.isFirstVisualColumn,\n isFirstDataColumn: this.isFirstDataColumn,\n isLastColumn: this.isLastColumn,\n order: this.order,\n classList: this.classList,\n showHeaderIcons: this.showHeaderIcons,\n isWidthChanged: this.isWidthChanged,\n displayMode: this.displayMode,\n disableSelection: this.disableSelection,\n alias: this.alias,\n conditionalStyleFormats: this.conditionalStyleFormats\n };\n }\n\n /**\n * Indicates if tooltip needs to be shown or not for the current column cells.\n */\n get showTooltip() {\n return this.#showToolTip && this.cellRenderer !== RICH_TEXT;\n }\n\n /**\n * Sets the showTooltip flag for the current column.\n */\n set showTooltip(showTooltip) {\n this.#showToolTip = showTooltip;\n }\n\n /**\n * Retrieves the distinct values for this column using {@link ApiContext.fetchUniqueColValues fetchUniqueColValues}.\n */\n async getUniqueValues() {\n return (\n this.#rsProps.apiContext.fetchUniqueColValues?.(\n this.parent.state,\n this.parent.meta,\n this.field.id,\n {\n ...(this.#rsStore.refreshInProgress && {\n invalidateCache: true,\n invalidateCacheToken: this.#rsStore.refreshToken\n })\n }\n ) || Promise.resolve([])\n );\n }\n\n /**\n * Returns the formatters available for the current column from\n * {@link RsProps.renderFormatterTypeMap renderFormatterTypeMap} based on its {@link FieldDef.type type}\n */\n getRenderFormatters() {\n const formattersForType = this.parent.renderFormatterTypeMap?.[this.field.type] || [];\n return this.field.formatters ?? formattersForType;\n }\n\n /** Returns the sorting information for the current column. */\n getSortProperties() {\n return {\n sorted: this.sorted,\n sortSequence: this.sortSequence,\n sortOrder: this.sortOrder\n };\n }\n\n /** Returns the filter information for the current column. */\n getFilterProperties(): { filtered: boolean; filterExpression: Condition | undefined } {\n return {\n filtered: this.filtered,\n filterExpression: this.parent.state.filterExpression\n };\n }\n\n /**\n * Retrieves the UI properties for the column, which can be applied to value cells within this column.\n */\n getUIProps() {\n // FIXME: aria-colIndex is NaN sometimes\n return {\n style: { ...this.style },\n 'data-col-id': this.field.id,\n classList: [...this.classList],\n 'aria-colindex': this.order! + 1,\n role: this.field.isRowHeader ? 'rowheader' : 'gridcell'\n };\n }\n\n /**\n * Retrieves the {@link StyleFormat style format} style format applicable to the cell\n * @returns The style format if applicable, otherwise `undefined`.\n *\n */\n getCellStyleFormat(): StyleFormat | undefined {\n return evaluateStyleFormatForCell(this, this.#rsInternal);\n }\n\n /**\n * Retrieves the UI properties for the column, which can be applied to the header cells of this column.\n */\n getHeaderUIProps() {\n return {\n 'data-col-id': this.field.id,\n draggable: this.field.reorderFields,\n role: 'columnheader',\n ...(this.field.reorderFields && this.parent.type.getFieldReorderProps?.())\n };\n }\n\n // TODO: why return search query in column rendering engine props.\n /**\n * Provides essential information for cell rendering, including the column and row.\n * Additionally, it supplies the current search query.\n */\n getRenderingEngineProps(): ColumnRenderingEngineProps {\n return {\n column: this as Column,\n row: this.#pRow,\n searchKeyword: this.parent?.state?.search?.query\n };\n }\n\n /**\n * Sets the current execution context, {@link RowContext}, when rendering a cell for this column.\n * This dynamic context is updated for each cell in the column as it is rendered.\n */\n setExecutionContext(row: Row | null) {\n this.#pRow = row;\n this.#executionContext = row ? row.getContext() : null;\n }\n\n /**\n * Retrieves the current execution context, i.e., {@link RowContext}, when rendering a cell for this column.\n * This context dynamically updates as each cell in the column is rendered.\n */\n getExecutionContext() {\n return this.#executionContext;\n }\n\n /**\n * Returns the current column {@link ColumnContext context}.\n * @param overriddenExecutionContext - optional param to override the execution context with custom {@link RowContext}.\n * @returns\n *\n * @public\n */\n getContext(overriddenExecutionContext?: RowContext | null): ColumnContext {\n return {\n name: 'column',\n getField: () => this.field,\n getValue: () =>\n get((overriddenExecutionContext || this.#executionContext)?.getValue?.(), this.field?.name),\n getExecutionContext: () => overriddenExecutionContext || this.#executionContext,\n getParentContext: () => this.parent.getContext(),\n getFormatter: () => this.formatter,\n formatterAllowed: () => this.formatterAllowed,\n getCellRenderer: () => this.cellRenderer,\n getFormatterName: () => this.formatterName,\n getFormattedValue: () => this.formattedValue,\n getSearchKeyword: () => this.parent?.state?.searchText,\n showTooltip: () => this.showTooltip,\n getToolTipValue: () => {\n const tooltip = this.field?.tooltip;\n if (!tooltip) {\n return this.formattedValue;\n }\n return (overriddenExecutionContext || this.#executionContext)?.getValue?.()?.[tooltip];\n },\n /** Returns the header label */\n getLabel: () => this.categorizedHeaderLabel,\n setProp: (\n prop:\n | Partial<OmitStrict<Column, 'data' | 'isAutoSizable' | 'parent'>>\n | ExcludeStrict<keyof Column, 'data' | 'isAutoSizable' | 'parent'>,\n value?: Column[keyof Column]\n ) => this.setPropMutatively(prop, value),\n getSortProperties: this.getSortProperties,\n getExpression: this.getExpression,\n getFilterProperties: this.getFilterProperties,\n searchKeyword: this.parent?.state?.searchText,\n getTableMeta: () => this.parent.meta,\n getRsMeta: () => this.parent.meta,\n applyGrouping: this.applyGrouping,\n applySorting: this.applySorting,\n applyToggleVisibility: this.applyToggleVisibility,\n applyFreeze: this.applyFreeze,\n applyAggregation: this.applyAggregation,\n applyLabel: this.applyLabel,\n applyFormatter: this.applyFormatter,\n removeFormatter: this.removeFormatter,\n applyMerge: this.applyMerge,\n deleteCustomColumn: this.deleteCustomColumn,\n getRendererType: () => {\n return this.isCustomColumn ? 'customCellRenderer' : 'cellRenderer';\n },\n selectAllRows: this.parent.type.selectAllRows,\n getDisableSelection: () => this.disableSelection\n };\n }\n\n /**\n * Updates property of the column with value. The updated value will be reflected on next re-render.\n * @param prop Either partial of {@link Column} or individual properties of {@link Column}.\n * @param [value] An optional parameter to provide value for {@link prop} in case prop is not of type {@link ColumnConfig}\n * @returns void\n */\n setPropMutatively(\n prop:\n | Partial<OmitStrict<Column, 'data' | 'isAutoSizable' | 'parent'>>\n | ExcludeStrict<keyof Column, 'data' | 'isAutoSizable' | 'parent'>,\n value?: Column[keyof Column]\n ) {\n if (typeof prop !== 'object' && value) {\n // @ts-expect-error check the index based type error.\n this[prop] = value;\n } else {\n Object.entries(prop).forEach(([k, v]) => {\n // @ts-expect-error Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'Column'.\n this[k] = v;\n });\n }\n }\n\n // setProp is used to make columns immutables.\n /**\n * Sets a {@link prop property} and its {@link value} in the {@link Column} instance, creating an immutable instance.\n * Always use `setProp` to update properties of {@link Column} to ensure immutability.\n *\n * @param prop Either a partial {@link ColumnConfig} or individual properties of {@link ColumnConfig}.\n * @param [value] Optional value to set for `prop` if `prop` is not of type {@link ColumnConfig}.\n * @returns void\n */\n\n setProp(\n prop: Partial<ColumnConfig> | keyof ColumnConfig,\n value?: ColumnConfig[keyof ColumnConfig]\n ) {\n const { getView } = this.#rsInternal;\n const index = getView().columns!.findIndex(c => c === this);\n let pObject = prop;\n if (typeof prop !== 'object') {\n pObject = { [prop]: value };\n }\n\n // Change object if any value changes actually.\n // @ts-expect-error utils should be converted to TS in order to resolve this.\n if (!compareObjects(this, pObject, Object.keys(pObject)) && index >= 0) {\n const newColumn = new Column(\n {\n ...this.#get(),\n ...(pObject as Partial<ColumnConfig>)\n },\n this.#rsInternal\n );\n const cloned = [...getView().columns!];\n cloned.splice(index, 1, newColumn);\n getView().columns = cloned;\n return newColumn;\n }\n return this;\n }\n\n /**\n * Applies grouping to this column.\n *\n * Dispatches an action that modifies the {@link State.groups groups} in the state.\n */\n applyGrouping() {\n this.#dispatch(actions.actionToggleGrouping(this.field));\n }\n\n /**\n * Applies sorting to this column.\n *\n * Dispatches an action that updates the {@link State.sortingOrder sortingOrder} in the state.\n *\n * @param flushState If true, it will reset the existing {@link State.sortingOrder sortingOrder} state for this column.\n * @param sortOrderId The sort order, either 'asc' or 'desc'.\n */\n // eslint-disable-next-line @typescript-eslint/default-param-last\n applySorting(flushState = false, sortOrderId: Sort['order']) {\n this.#dispatch(\n actions.actionColumnSort({\n id: this.field.id,\n flushState,\n sortOrderId\n })\n );\n }\n\n /**\n * Toggles the visibility of a column, allowing it to be shown or hidden.\n *\n * Dispatches an action that updates {@link State.hiddenColumns hiddenColumns} in the state.\n *\n * @param column The column to be toggled.\n */\n\n applyToggleVisibility() {\n this.#dispatch(actions.actionColumnToggle([this.field.id]));\n }\n\n /**\n * Toggles the \"freeze\" effect on a column, locking it to the left while the rest of the content scrolls.\n * This helps keep key columns visible in large datasets.\n *\n * Dispatches an action that updates {@link State.freezeColumns freezeColumns} in the state.\n */\n applyFreeze() {\n this.#dispatch(actions.actionColumnPin([this.field.id]));\n }\n\n /**\n * Toggles the \"freeze\" effect on a column, locking it at given index while the rest of the columns\n * continues to scroll. This can be used to keep key columns visible in large datasets.\n * The freeze order of the given column is defined by {@link index} passed.\n *\n * Dispatches an action that modifies {@link State.freezeColumns freezeColumns} in the state.\n * @param index\n */\n applyFreezeAtIndex(index: number) {\n this.#dispatch(actions.actionColumnPinAtIndex(this.field.id, index));\n }\n\n /** Applies aggregation to the column, summarizing the data based on a specified {@link type aggregationType}.\n *\n * Dispatches an action that modifies {@link State.aggregationInfo aggregation} in the state.\n */\n applyAggregation(type: AggregationType) {\n this.#dispatch(\n actions.actionUpdateAggregation({\n columnId: this.field.id,\n type\n })\n );\n }\n\n /** Applies label to the current column.\n *\n * Dispatches an action that updates {@link State.columnAlias columnAlias} in the state.\n */\n applyLabel(label: NonNullable<Column['label']>) {\n this.#dispatch(\n actions.actionChangeLabel({\n columnId: this.field.id,\n label\n })\n );\n }\n\n /** Applies formatter to the current column.\n *\n * Dispatches an action that updates {@link State.renderFormatter renderFormatter} in the state.\n * @param name - Formatter name.\n */\n applyFormatter(name: NonNullable<Column['formatterName']>) {\n this.#dispatch(\n actions.actionUpdateRenderFormatter({\n columnId: this.field.id,\n name\n })\n );\n }\n\n /** Removes formatter of the current column.\n *\n * Dispatches an action that updates {@link State.renderFormatter renderFormatter} in the state.\n */\n removeFormatter() {\n this.#dispatch(\n actions.actionRemoveRenderFormatter({\n columnId: this.field.id\n })\n );\n }\n\n /**\n * Applies {@link mode displayMode} to hierarchical column.\n *\n * Dispatches an action that modifies {@link State.hierarchicalGroup hierarchicalGroups},\n * {@link State.groupToggle groupToggle}, {@link State.groups groups} in the state.\n * @param mode\n */\n applyDisplay(mode: string) {\n const { hierarchicalInfo } = this.field;\n this.#rsStore.groupingInfo = [] as NonNullable<RsStore['groupingInfo']>;\n this.#dispatch(\n actions.actionUpdateDisplayMode({\n parentId: hierarchicalInfo!.parentId,\n materializedPathId: hierarchicalInfo!.materializedPathId,\n targetId: hierarchicalInfo!.targetId,\n columnId: this.field.id,\n sortById: hierarchicalInfo!.sortById || hierarchicalInfo!.targetId,\n mode\n })\n );\n }\n\n /**\n * Applies merge operation(combine columns) to 2 columns based on selected template.\n *\n * Dispatches an action that modifies {@link State.customFields customFields} in the state.\n * @param mergeWith On which column the merge operation to be performed(left/right)\n * @param title label for the new custom column.\n * @param templateName The template which should be used to merge the columns\n * @param bHideColumns Hide the existing columns.\n */\n applyMerge(\n mergeWith: 'left' | 'right',\n title: string,\n templateName: NonNullable<Meta['dynamicFieldTemplates']>[number]['value'],\n bHideColumns: boolean\n ) {\n const step = mergeWith === 'left' ? -1 : 1;\n const targetId = this.parent.columns!.find(c => c.order === this.order! + step)!.field.id;\n this.#dispatch(\n actions.actionMergeColumns({\n sourceId: this.field.id,\n targetId,\n title,\n templateName,\n bHideColumns,\n uniqueID: String(+new Date())\n })\n );\n }\n\n /**\n * Deletes the custom column.\n *\n * Dispatches an action that modifies {@link State.customFields customFields} in the state by removing this column from it.\n */\n deleteCustomColumn() {\n this.#dispatch(\n actions.actionDeleteCustomColumn({\n columnId: this.field.id\n })\n );\n }\n\n /**\n * Updates column's width based on the autosize logic.\n *\n * Dispatches an action that modifies the {@link State.columnWidths columnWidths} in the state.\n */\n\n applyColumnAutoSize() {\n this.#dispatch(actions.actionColumnAutoSize(this, this.parent.getDomContainer()!));\n }\n\n /**\n * Determines if autosize is enabled for this column.\n */\n get isAutoSizable() {\n return this.field.autosize && !this.hidden && this.cellRenderer !== RICH_TEXT;\n }\n\n /**\n * Determines whether hierarchical mode should be enabled for this column.\n */\n renderDisplayMode() {\n const { meta } = this.parent;\n const { hierarchicalInfo } = this.field;\n\n return hierarchicalInfo?.materializedPathId && meta.grouping && !meta.editing;\n }\n\n /**\n * Retrieves the personalized width of the column, sourced from either\n * {@link RsProps.persistedInfo persistedInfo} or the current\n * {@link State.personalization personalized state}.\n *\n * @returns The personalized width of the column.\n */\n\n getPersonalizedWidth() {\n let columnWidths: State['columnWidths'] = {};\n if (this.#rsProps.persistedInfo) {\n columnWidths = this.#rsProps.persistedInfo.columnWidths;\n } else {\n const { active, allPersonalizations } = this.parent.state?.personalization ?? {};\n columnWidths = allPersonalizations?.[active!]?.personalizationState?.columnWidths;\n }\n return columnWidths?.[this.field.id];\n }\n}\n"]}
@@ -60,6 +60,8 @@ export interface ColumnContext {
60
60
  getFormatterName: () => string | undefined;
61
61
  /** Returns the formatted value. */
62
62
  getFormattedValue: () => string | null;
63
+ /** Returns the header label */
64
+ getLabel: () => string | undefined;
63
65
  /** Returns the search text. */
64
66
  getSearchKeyword: () => string | undefined;
65
67
  searchKeyword: string | undefined;
@@ -116,6 +118,10 @@ export interface ColumnContext {
116
118
  * Check {@link applyFormatter} for more details.
117
119
  */
118
120
  applyFormatter: (name: string) => void;
121
+ /** Removes formatter of the current column.
122
+ * Check {@link removeFormatter} for more details.
123
+ */
124
+ removeFormatter: () => void;
119
125
  /** Applies merge operation to 2 columns based on selected expression.
120
126
  * Check {@link applyMerge} for more details.
121
127
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ColumnGenerator.types.d.ts","sourceRoot":"","sources":["../../../../src/core/generators/ColumnGenerator.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE9F,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;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OAAO,EAC3B,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,OAAO,KAClB,IAAI,CAAC;IACV,yGAAyG;IACzG,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,yCAAyC;IACzC,eAAe,EAAE,MAAM,cAAc,GAAG,oBAAoB,CAAC;IAC7D,mDAAmD;IACnD,aAAa,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,+GAA+G;IAC/G,mBAAmB,EAAE,MAAM,OAAO,GAAG,SAAS,CAAC;CAChD;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC;IAChB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ColumnGenerator.types.js","sourceRoot":"","sources":["../../../../src/core/generators/ColumnGenerator.types.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC","sourcesContent":["import type { ExcludeStrict, OmitStrict } from '@pega/cosmos-react-core';\nimport type { Condition } from '@pega/cosmos-react-condition-builder';\n\nimport type { FieldDef, Meta } from '../../../types/Meta.types';\nimport type { AggregationType, CustomField, SortDirection } from '../../../types/State.types';\n\nimport type Column from './ColumnGenerator';\nimport type { RowContext, RowData } from './RowGenerator.types';\nimport type { FormatterFunction, ViewContext } from './ViewGenerator.types';\nimport type Row from './RowGenerator';\n\nexport const DATA_KEY = 'data-key';\nexport type ColumnConfig = Partial<\n Pick<\n Column,\n | 'style'\n | 'grouped'\n | 'frozen'\n | 'lastFrozen'\n | 'aggregated'\n | 'aggregateValue'\n | 'aggregationType'\n | 'currentWidth'\n | 'formatterAllowed'\n | 'formatterName'\n | 'formatter'\n | 'cellRenderer'\n | 'hidden'\n | 'label'\n | 'categorizedHeaderLabel'\n | 'filtered'\n | 'sorted'\n | 'sortSequence'\n | 'sortOrder'\n | 'isFirstVisualColumn'\n | 'isFirstDataColumn'\n | 'isLastColumn'\n | 'isCustomColumn'\n | 'order'\n | 'classList'\n | 'showHeaderIcons'\n | 'isWidthChanged'\n | 'displayMode'\n | 'disableSelection'\n | 'alias'\n | 'refresh'\n | 'conditionalStyleFormats'\n >\n> & { field: FieldDef; showTooltip?: boolean };\n\nexport type ColumnResizerProps = {\n onMouseDown: (e: MouseEvent) => boolean | void;\n};\n\nexport type ColumnReorderProps = {\n onDragStart: (e: DragEvent) => boolean | undefined;\n onDrag: (e: DragEvent) => boolean;\n onDragEnd: (e: DragEvent) => boolean;\n};\n\ntype PixelValue = `${number}px`;\nexport interface ColumnStyle {\n /** Display attribute to be set on column */\n display: string;\n\n /** Left attribute denoting CSS attribute set in px */\n left: PixelValue;\n\n /** Visual order of column */\n order: number;\n\n /** Width attribute denoting CSS attribute set in px */\n width: PixelValue;\n}\n\n/** Sort properties exposed on a column */\nexport interface SortProperties {\n /** Indicates if a column is sorted. */\n sorted: boolean;\n\n /** Sequence of the sort with respect to other column sort sequences */\n sortSequence: number;\n\n /** Sort order on a column - ASC, DESC */\n sortOrder: (typeof SortDirection)[keyof typeof SortDirection];\n}\n\nexport interface ColumnContext {\n /** @default 'column' */\n name: 'column' | 'GroupAdditionalField';\n /** Returns {@link Column.field fieldDef} for this column. */\n getField: () => FieldDef;\n /** Returns the value of cell for this column based on {@link Column.executionContext} or overriddenExecutionContext. */\n getValue: () => RowData[keyof RowData] | undefined;\n /** Returns the current execution context for this column. It can return {@link overriddenExecutionContext} if passed. */\n getExecutionContext: () => RowContext | null;\n /** Returns the {@link View} Context object. */\n getParentContext: () => ViewContext;\n /** Returns the current formatter function for this column. */\n getFormatter: () => FormatterFunction | undefined;\n /** Indicates if formatter is allowed. */\n formatterAllowed: () => boolean;\n /** Returns the cell renderer name. */\n getCellRenderer: () => string | undefined;\n /** Returns the formatter name. */\n getFormatterName: () => string | undefined;\n /** Returns the formatted value. */\n getFormattedValue: () => string | null;\n /** Returns the search text. */\n getSearchKeyword: () => string | undefined;\n searchKeyword: string | undefined;\n /** Indicates if tooltip should be shown. */\n showTooltip: () => boolean;\n /** Returns the value to be shown on the tooltip. */\n getToolTipValue: () => RowData[keyof RowData] | undefined;\n /** Updates property of the column with value. The updated value will be reflected on next re-render. Check {@link setPropMutatively} for more info. */\n setProp: (\n prop:\n | Partial<OmitStrict<Column, 'data' | 'isAutoSizable' | 'parent'>>\n | ExcludeStrict<keyof Column, 'data' | 'isAutoSizable' | 'parent'>,\n value?: Column[keyof Column]\n ) => void;\n /** Returns the sort definition of the current column. */\n getSortProperties: () => {\n sorted: boolean;\n sortSequence: number | undefined;\n sortOrder: SortProperties['sortOrder'] | undefined;\n };\n /**\n * Returns the expression for the column if it is a {@link isCustomColumn custom} column.\n */\n getExpression: () => CustomField['expression'] | undefined;\n /** Returns the filter definition for the current column. */\n getFilterProperties: () => {\n filtered: boolean;\n filterExpression: Condition | undefined;\n };\n /** Returns the repeating structures {@link Meta meta}.\n * @deprecated Use {@link getRsMeta} instead.\n */\n getTableMeta: () => Meta;\n /** Returns the repeating structures {@link Meta meta}. */\n getRsMeta: () => Meta;\n /**\n * Applies grouping on this column.\n * It groups the rows based on column values.\n * This can be used to organize data into meaningful sections or categories.\n * Check {@link applyGrouping} for more details.\n */\n applyGrouping: () => void;\n /** Applies sorting to a column, ordering the data based on specified criteria. Check {@link applySorting} for more details. */\n applySorting: (flushState: boolean, sortOrderId: 'desc' | 'asc') => void;\n /** Toggles the visibility of the column. This can be used to show or hide the column. Check {@link applyToggleVisibility} for more details. */\n applyToggleVisibility: () => void;\n /** Applies a \"freeze\" effect to the column, locking it in place while the rest of the content\n * continues to scroll. This can be used to keep key columns visible in large datasets.\n * Check {@link applyFreeze} for more details. */\n applyFreeze: () => void;\n /** Applies aggregation to the column, summarizing the data based on a specified\n * {@link aggregationType}.\n * Check {@link applyAggregation} for more details.\n */\n applyAggregation: (type: AggregationType) => void;\n /** Applies custom label to the column. Check {@link applyLabel} for more details. */\n applyLabel: (label: string) => void;\n /** Applies formatter to the current column.\n * Check {@link applyFormatter} for more details.\n */\n applyFormatter: (name: string) => void;\n /** Applies merge operation to 2 columns based on selected expression.\n * Check {@link applyMerge} for more details.\n */\n applyMerge: (\n mergeWith: 'left' | 'right',\n title: string,\n templateName: string,\n bHideColumns: boolean\n ) => void;\n /** Deletes the {@link isCustomColumnustom column}. Check {@link deleteCustomColumn} for more details. */\n deleteCustomColumn: () => void;\n /** Returns the current renderer type. */\n getRendererType: () => 'cellRenderer' | 'customCellRenderer';\n /** Select all rows of the repeating structures. */\n selectAllRows: (isSelected: boolean) => Promise<void>;\n /** Indicates if the selection is disabled for this column. Refer {@link disableSelection} for more details. */\n getDisableSelection: () => boolean | undefined;\n}\n\nexport interface ColumnRenderingEngineProps {\n column: Column;\n row: Row | null;\n searchKeyword: string | undefined;\n}\n"]}
1
+ {"version":3,"file":"ColumnGenerator.types.js","sourceRoot":"","sources":["../../../../src/core/generators/ColumnGenerator.types.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC","sourcesContent":["import type { ExcludeStrict, OmitStrict } from '@pega/cosmos-react-core';\nimport type { Condition } from '@pega/cosmos-react-condition-builder';\n\nimport type { FieldDef, Meta } from '../../../types/Meta.types';\nimport type { AggregationType, CustomField, SortDirection } from '../../../types/State.types';\n\nimport type Column from './ColumnGenerator';\nimport type { RowContext, RowData } from './RowGenerator.types';\nimport type { FormatterFunction, ViewContext } from './ViewGenerator.types';\nimport type Row from './RowGenerator';\n\nexport const DATA_KEY = 'data-key';\nexport type ColumnConfig = Partial<\n Pick<\n Column,\n | 'style'\n | 'grouped'\n | 'frozen'\n | 'lastFrozen'\n | 'aggregated'\n | 'aggregateValue'\n | 'aggregationType'\n | 'currentWidth'\n | 'formatterAllowed'\n | 'formatterName'\n | 'formatter'\n | 'cellRenderer'\n | 'hidden'\n | 'label'\n | 'categorizedHeaderLabel'\n | 'filtered'\n | 'sorted'\n | 'sortSequence'\n | 'sortOrder'\n | 'isFirstVisualColumn'\n | 'isFirstDataColumn'\n | 'isLastColumn'\n | 'isCustomColumn'\n | 'order'\n | 'classList'\n | 'showHeaderIcons'\n | 'isWidthChanged'\n | 'displayMode'\n | 'disableSelection'\n | 'alias'\n | 'refresh'\n | 'conditionalStyleFormats'\n >\n> & { field: FieldDef; showTooltip?: boolean };\n\nexport type ColumnResizerProps = {\n onMouseDown: (e: MouseEvent) => boolean | void;\n};\n\nexport type ColumnReorderProps = {\n onDragStart: (e: DragEvent) => boolean | undefined;\n onDrag: (e: DragEvent) => boolean;\n onDragEnd: (e: DragEvent) => boolean;\n};\n\ntype PixelValue = `${number}px`;\nexport interface ColumnStyle {\n /** Display attribute to be set on column */\n display: string;\n\n /** Left attribute denoting CSS attribute set in px */\n left: PixelValue;\n\n /** Visual order of column */\n order: number;\n\n /** Width attribute denoting CSS attribute set in px */\n width: PixelValue;\n}\n\n/** Sort properties exposed on a column */\nexport interface SortProperties {\n /** Indicates if a column is sorted. */\n sorted: boolean;\n\n /** Sequence of the sort with respect to other column sort sequences */\n sortSequence: number;\n\n /** Sort order on a column - ASC, DESC */\n sortOrder: (typeof SortDirection)[keyof typeof SortDirection];\n}\n\nexport interface ColumnContext {\n /** @default 'column' */\n name: 'column' | 'GroupAdditionalField';\n /** Returns {@link Column.field fieldDef} for this column. */\n getField: () => FieldDef;\n /** Returns the value of cell for this column based on {@link Column.executionContext} or overriddenExecutionContext. */\n getValue: () => RowData[keyof RowData] | undefined;\n /** Returns the current execution context for this column. It can return {@link overriddenExecutionContext} if passed. */\n getExecutionContext: () => RowContext | null;\n /** Returns the {@link View} Context object. */\n getParentContext: () => ViewContext;\n /** Returns the current formatter function for this column. */\n getFormatter: () => FormatterFunction | undefined;\n /** Indicates if formatter is allowed. */\n formatterAllowed: () => boolean;\n /** Returns the cell renderer name. */\n getCellRenderer: () => string | undefined;\n /** Returns the formatter name. */\n getFormatterName: () => string | undefined;\n /** Returns the formatted value. */\n getFormattedValue: () => string | null;\n /** Returns the header label */\n getLabel: () => string | undefined;\n /** Returns the search text. */\n getSearchKeyword: () => string | undefined;\n searchKeyword: string | undefined;\n /** Indicates if tooltip should be shown. */\n showTooltip: () => boolean;\n /** Returns the value to be shown on the tooltip. */\n getToolTipValue: () => RowData[keyof RowData] | undefined;\n /** Updates property of the column with value. The updated value will be reflected on next re-render. Check {@link setPropMutatively} for more info. */\n setProp: (\n prop:\n | Partial<OmitStrict<Column, 'data' | 'isAutoSizable' | 'parent'>>\n | ExcludeStrict<keyof Column, 'data' | 'isAutoSizable' | 'parent'>,\n value?: Column[keyof Column]\n ) => void;\n /** Returns the sort definition of the current column. */\n getSortProperties: () => {\n sorted: boolean;\n sortSequence: number | undefined;\n sortOrder: SortProperties['sortOrder'] | undefined;\n };\n /**\n * Returns the expression for the column if it is a {@link isCustomColumn custom} column.\n */\n getExpression: () => CustomField['expression'] | undefined;\n /** Returns the filter definition for the current column. */\n getFilterProperties: () => {\n filtered: boolean;\n filterExpression: Condition | undefined;\n };\n /** Returns the repeating structures {@link Meta meta}.\n * @deprecated Use {@link getRsMeta} instead.\n */\n getTableMeta: () => Meta;\n /** Returns the repeating structures {@link Meta meta}. */\n getRsMeta: () => Meta;\n /**\n * Applies grouping on this column.\n * It groups the rows based on column values.\n * This can be used to organize data into meaningful sections or categories.\n * Check {@link applyGrouping} for more details.\n */\n applyGrouping: () => void;\n /** Applies sorting to a column, ordering the data based on specified criteria. Check {@link applySorting} for more details. */\n applySorting: (flushState: boolean, sortOrderId: 'desc' | 'asc') => void;\n /** Toggles the visibility of the column. This can be used to show or hide the column. Check {@link applyToggleVisibility} for more details. */\n applyToggleVisibility: () => void;\n /** Applies a \"freeze\" effect to the column, locking it in place while the rest of the content\n * continues to scroll. This can be used to keep key columns visible in large datasets.\n * Check {@link applyFreeze} for more details. */\n applyFreeze: () => void;\n /** Applies aggregation to the column, summarizing the data based on a specified\n * {@link aggregationType}.\n * Check {@link applyAggregation} for more details.\n */\n applyAggregation: (type: AggregationType) => void;\n /** Applies custom label to the column. Check {@link applyLabel} for more details. */\n applyLabel: (label: string) => void;\n /** Applies formatter to the current column.\n * Check {@link applyFormatter} for more details.\n */\n applyFormatter: (name: string) => void;\n /** Removes formatter of the current column.\n * Check {@link removeFormatter} for more details.\n */\n removeFormatter: () => void;\n /** Applies merge operation to 2 columns based on selected expression.\n * Check {@link applyMerge} for more details.\n */\n applyMerge: (\n mergeWith: 'left' | 'right',\n title: string,\n templateName: string,\n bHideColumns: boolean\n ) => void;\n /** Deletes the {@link isCustomColumnustom column}. Check {@link deleteCustomColumn} for more details. */\n deleteCustomColumn: () => void;\n /** Returns the current renderer type. */\n getRendererType: () => 'cellRenderer' | 'customCellRenderer';\n /** Select all rows of the repeating structures. */\n selectAllRows: (isSelected: boolean) => Promise<void>;\n /** Indicates if the selection is disabled for this column. Refer {@link disableSelection} for more details. */\n getDisableSelection: () => boolean | undefined;\n}\n\nexport interface ColumnRenderingEngineProps {\n column: Column;\n row: Row | null;\n searchKeyword: string | undefined;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"renderFormatter.d.ts","sourceRoot":"","sources":["../../../../src/core/reducers/renderFormatter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAExD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;yBAEvC,OAAO,KAAK,EAAE,QAAQ,MAAM;AAA5C,wBAqBE"}
1
+ {"version":3,"file":"renderFormatter.d.ts","sourceRoot":"","sources":["../../../../src/core/reducers/renderFormatter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAExD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;yBAEvC,OAAO,KAAK,EAAE,QAAQ,MAAM;AAA5C,wBAgCE"}
@@ -17,6 +17,16 @@ export default (state, action) => {
17
17
  renderFormatter: { ...state.renderFormatter, ...{ [columnId]: name } }
18
18
  };
19
19
  }
20
+ if (type === ActionTypes.REMOVE_RENDERER_FORMATTER) {
21
+ const { payload } = action;
22
+ const { columnId } = payload;
23
+ const cloned = { ...state.renderFormatter };
24
+ delete cloned[columnId];
25
+ return {
26
+ ...state,
27
+ renderFormatter: cloned
28
+ };
29
+ }
20
30
  return state;
21
31
  };
22
32
  //# sourceMappingURL=renderFormatter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderFormatter.js","sourceRoot":"","sources":["../../../../src/core/reducers/renderFormatter.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,4BAA4B,CAAC;AAGrD,eAAe,CAAC,KAAY,EAAE,MAAc,EAAE,EAAE;IAC9C,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAExB,IAAI,IAAI,KAAK,WAAW,CAAC,yBAAyB,EAAE,CAAC;QACnD,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;QACnC,IAAI,CAAC,IAAI,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,MAAM,GAAG,EAAE,GAAG,KAAK,CAAC,eAAe,EAAE,CAAC;YAC5C,OAAO,MAAM,CAAC,QAAQ,CAAC,CAAC;YACxB,OAAO;gBACL,GAAG,KAAK;gBACR,eAAe,EAAE,MAAM;aACxB,CAAC;QACJ,CAAC;QACD,OAAO;YACL,GAAG,KAAK;YACR,eAAe,EAAE,EAAE,GAAG,KAAK,CAAC,eAAe,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE;SACvE,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC,CAAC","sourcesContent":["import type { State } from '../../../types/State.types';\nimport ActionTypes from '../actions/actionConstants';\nimport type { Action } from '../actions/actions.types';\n\nexport default (state: State, action: Action) => {\n const { type } = action;\n\n if (type === ActionTypes.CHANGE_RENDERER_FORMATTER) {\n const { payload } = action;\n const { columnId, name } = payload;\n if (!name || name === 'Default') {\n const cloned = { ...state.renderFormatter };\n delete cloned[columnId];\n return {\n ...state,\n renderFormatter: cloned\n };\n }\n return {\n ...state,\n renderFormatter: { ...state.renderFormatter, ...{ [columnId]: name } }\n };\n }\n\n return state;\n};\n"]}
1
+ {"version":3,"file":"renderFormatter.js","sourceRoot":"","sources":["../../../../src/core/reducers/renderFormatter.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,4BAA4B,CAAC;AAGrD,eAAe,CAAC,KAAY,EAAE,MAAc,EAAE,EAAE;IAC9C,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAExB,IAAI,IAAI,KAAK,WAAW,CAAC,yBAAyB,EAAE,CAAC;QACnD,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;QACnC,IAAI,CAAC,IAAI,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,MAAM,GAAG,EAAE,GAAG,KAAK,CAAC,eAAe,EAAE,CAAC;YAC5C,OAAO,MAAM,CAAC,QAAQ,CAAC,CAAC;YACxB,OAAO;gBACL,GAAG,KAAK;gBACR,eAAe,EAAE,MAAM;aACxB,CAAC;QACJ,CAAC;QACD,OAAO;YACL,GAAG,KAAK;YACR,eAAe,EAAE,EAAE,GAAG,KAAK,CAAC,eAAe,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE;SACvE,CAAC;IACJ,CAAC;IAED,IAAI,IAAI,KAAK,WAAW,CAAC,yBAAyB,EAAE,CAAC;QACnD,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;QAC7B,MAAM,MAAM,GAAG,EAAE,GAAG,KAAK,CAAC,eAAe,EAAE,CAAC;QAC5C,OAAO,MAAM,CAAC,QAAQ,CAAC,CAAC;QACxB,OAAO;YACL,GAAG,KAAK;YACR,eAAe,EAAE,MAAM;SACxB,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC,CAAC","sourcesContent":["import type { State } from '../../../types/State.types';\nimport ActionTypes from '../actions/actionConstants';\nimport type { Action } from '../actions/actions.types';\n\nexport default (state: State, action: Action) => {\n const { type } = action;\n\n if (type === ActionTypes.CHANGE_RENDERER_FORMATTER) {\n const { payload } = action;\n const { columnId, name } = payload;\n if (!name || name === 'Default') {\n const cloned = { ...state.renderFormatter };\n delete cloned[columnId];\n return {\n ...state,\n renderFormatter: cloned\n };\n }\n return {\n ...state,\n renderFormatter: { ...state.renderFormatter, ...{ [columnId]: name } }\n };\n }\n\n if (type === ActionTypes.REMOVE_RENDERER_FORMATTER) {\n const { payload } = action;\n const { columnId } = payload;\n const cloned = { ...state.renderFormatter };\n delete cloned[columnId];\n return {\n ...state,\n renderFormatter: cloned\n };\n }\n\n return state;\n};\n"]}
@@ -99,6 +99,11 @@ export type RsApi = {
99
99
  * @param formatterName - ID of the formatter/renderer
100
100
  */
101
101
  setRenderFormatter: (columnId: string, formatterName: string) => void;
102
+ /**
103
+ * Removes the `renderFormatter` for the given column.
104
+ * @param columnId - Column ID
105
+ */
106
+ removeRenderFormatter: (columnId: string) => void;
102
107
  /**
103
108
  * Sets the conditional style formats of the view.
104
109
  * @param conditionalStyleFormats - The conditional style formats to apply.
@@ -1 +1 @@
1
- {"version":3,"file":"ApiContext.types.d.ts","sourceRoot":"","sources":["../../types/ApiContext.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAC;AACzG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAA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BAAiB,CAAC,EAAE,MAAM,OAAO,CAAC,iBAAiB,GAAG;QAAE,qBAAqB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC1F;;;;;OAKG;IACH,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,wBAAwB,CAAC,QAAQ,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9E;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAErF;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1F;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/E;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,eAAe,KAAK,OAAO,CAAC;IAEvF;;;;;;;;;OASG;IACH,qCAAqC,CAAC,EAAE,CACtC,eAAe,EAAE,oBAAoB,EACrC,YAAY,EAAE,WAAW,CAAC,SAAS,CAAC,EACpC,OAAO,EAAE,KAAK,EACd,MAAM,EAAE,IAAI,EACZ,OAAO,CAAC,EAAE,UAAU,KACjB,OAAO,CAAC,gCAAgC,CAAC,CAAC;CAChD"}
@@ -1 +1 @@
1
- {"version":3,"file":"ApiContext.types.js","sourceRoot":"","sources":["../../types/ApiContext.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ModalManagerContextValue } from '@pega/cosmos-react-core/lib/components/Modal/Modal.types';\nimport type { Condition } from '@pega/cosmos-react-condition-builder';\n\nimport type { RowData } from '../src/core/generators/RowGenerator.types';\nimport type { UtilityFunctions } from '../src/core/generators/viewUtilityMethods';\n\nimport type {\n Personalization,\n PersonalizationInfo,\n PersonalizedState,\n State,\n Group,\n /* eslint-disable @typescript-eslint/no-unused-vars */\n DateGroupAdditionalField,\n NumberGroupAdditionalField,\n GroupFilter,\n GroupAdditionalField\n /* eslint-enable @typescript-eslint/no-unused-vars */\n} from './State.types';\nimport type {\n Meta,\n RowAction,\n FieldDef,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n FieldType\n} from './Meta.types';\n\n/**\n * Represents information about the currently active view in the repeating structures.\n */\ntype ActiveViewInfo = {\n /**\n * The unique identifier of the active view.\n */\n id: string | undefined;\n\n /**\n * The name of the active view.\n */\n name: string | undefined;\n\n /**\n * Indicates whether the active view has unsaved changes.\n */\n isDirty: boolean;\n};\n\nexport type RsApi = {\n /**\n * Refreshes the current view.\n * @see {@link UtilityFunctions.refreshView}\n */\n refreshView: UtilityFunctions['forceRefresh'];\n\n /**\n * Sets the record count in the view.\n * @see {@link UtilityFunctions.setRecordCount}\n */\n setRecordCount: UtilityFunctions['setRecordCount'];\n\n /**\n * Dispatches an action to the repeating structures with an payload.\n * @see {@link UtilityFunctions.dispatchAction}\n */\n dispatchAction: UtilityFunctions['dispatchAction'];\n\n /**\n * Retrieves information about the currently active view.\n * @returns The {@link ActiveViewInfo active view information} or `void` if unavailable.\n */\n getActiveViewInfo: () => ActiveViewInfo | void;\n\n /**\n * Sets hidden columns of the view.\n * @param columns - An array of column IDs to hide.\n * @param ootbColumns - .\n * @param ootbColumns.dragHandle - Whether to hide the drag-and-drop column.\n */\n setHiddenColumns?: (columns: string[], ootbColumns?: { dragHandle: boolean }) => void;\n\n /**\n * Sets Column order of the view.\n * @param columns - An array of column IDs to reorder.\n */\n setColumnOrder?: (columns: string[]) => void;\n\n /**\n * Sets the filters of the view.\n * @param filter - The filter condition to apply.\n */\n setFilter: (filter: Condition) => void;\n\n /**\n * Sets the groups of the view.\n * @param groups - The grouping configuration.\n */\n setGrouping?: (groups: Group[]) => void;\n\n /**\n * Sets the sorting order of the view.\n * @param {NonNullable<State['sortingOrder']>} sorts - The sorting configuration.\n */\n setSorting: (sorts: NonNullable<State['sortingOrder']>) => void;\n\n /**\n * Sets the column aliases of the view.\n * @param aliases - The column alias configuration.\n */\n setAliases: (aliases: State['columnAlias']) => void;\n\n /**\n * Sets the aggregation information of the view.\n * @param {State['aggregationInfo']} agg - The aggregation configuration.\n */\n setAggregations: (agg: State['aggregationInfo']) => void;\n\n /**\n * Sets the visibility of the row reorder field.\n * @param {boolean} visibility - Whether the row reorder field should be visible.\n */\n setRowReorderFieldVisibility: (visibility: boolean) => void;\n\n /**\n * Updates the visibility of specific columns.\n * @param {Object} columns - A mapping of column IDs to their visibility state.\n */\n updateColumnsVisibility: (columns: { [key: FieldDef['id']]: boolean }) => void;\n\n /**\n * Sets the `renderFormatter` for the given column.\n * @param columnId - Column ID\n * @param formatterName - ID of the formatter/renderer\n */\n setRenderFormatter: (columnId: string, formatterName: string) => void;\n\n /**\n * Sets the conditional style formats of the view.\n * @param conditionalStyleFormats - The conditional style formats to apply.\n */\n setConditionalStyleFormats: (\n conditionalStyleFormats: NonNullable<State['conditionalStyleFormats']>\n ) => void;\n};\n\nexport interface ApiOptions {\n signal?: AbortSignal;\n /** Indicates current api triggered should invalidate the cache if any and reload the data. */\n invalidateCache?: boolean;\n /** A unique token or version identifier that changes whenever a refresh is triggered. Unlike a boolean `invalidateCache` flag, the `invalidateCacheToken` ensures that multiple APIs triggered\n in the same refresh cycle receive the same identifier. */\n invalidateCacheToken?: number;\n}\n// Aggregation response type\ntype AggregationTypeResp = 'avg' | 'max' | 'min' | 'nonNullCount' | 'sum' | 'distinctCount';\n/** An object with key equal to {@link AggregationTypeResp aggregation type} and value is equal to the actual value of that aggregation type */\ntype AggregationOptions = {\n [agg in AggregationTypeResp]?: number | null;\n};\n/** An object where key is equal to the column id (i.e. {@link FieldDef.id id} in FieldDef) and value is equal to its {@link AggregationOptions Aggregation values} */\nexport type AggregationResp = {\n [columnId: string]: AggregationOptions;\n};\n\nexport type AdditionalFieldData = {\n /** {@link FieldDef.id Field Id} of the additional field. */\n id: string;\n /** Value of the additional field that should be displayed for additional field.\n * The value can represent:\n * - An aggregated value (e.g., sum, max, min, avg) for {@link FieldType.NUMBER number} type fields when\n * {@link NumberGroupAdditionalField.aggregation aggregation} is selected in additional fields meta.\n * - A date function value (e.g., Day, Month, Year) for {@link FieldType.DATE 'date'} / {@link FieldType.DATE_TIME 'datetime'}\n * fields when a {@link DateGroupAdditionalField.dateFunction date function} is selected in the additional fields metadata..\n * - A scalar or single value for the additional field.\n */\n value: null | string | number | boolean | Date;\n /** Represents the distinct count of\n * occurrences for the additional field data. This is generally required,\n * but may be omitted if {@link NumberGroupAdditionalField.aggregation aggregation} is selected for number type fields\n * in the additional fields metadata. */\n count?: number;\n};\n\n// Grouping response type\nexport interface GroupedInfo {\n /** Value for the current group node. */\n name: null | string | number | boolean | Date; // Value for the current node\n /** # of data rows in this node */\n count: number;\n /** An optional data row from the group node that is used to process extra information required by group node */\n data?: RowData;\n /** Additional fields data for the current group node */\n additionalFieldsData?: AdditionalFieldData[];\n /** Aggregation values of a column if applied */\n agg?: AggregationResp;\n /** Nested groups within the parent group node */\n children?: GroupedInfo[];\n}\n\nexport interface HierarchicalGroupedInfo extends Pick<GroupedInfo, 'count' | 'agg'> {\n info: RowData;\n children?: HierarchicalGroupedInfo[];\n}\n\nexport type AggregateValueResponse = {\n [columnId: string]: number | null;\n};\n/** An object where key is equal to column id i.e. {@link FieldDef.id id key in fieldDef} and value is equal to the aggregation value for the given aggregation */\nexport type AggregationResult = {\n [columnId: string]: number;\n};\n\nexport interface FetchDataResponse {\n /** An array of {@link RowData} */\n data: RowData[];\n /** An optional parameter to provide the total record count for a given Repeating structures with a given filter criteria in the query. If not provided, use callback setRecordCount */\n totalRecordCount?: number;\n /** @deprecated An optional parameter to provide the total record count for a given Repeating structures with a given filter criteria in the query. If not provided, use callback setRecordCount */\n filteredRecordCount?: number;\n}\n\ntype BulkAction = Pick<RowAction, 'id' | 'text'> & {\n /**\n * @param rowIds - The values for the {@link Meta.itemKey 'itemkey'} for given rows.\n * @param clearSelectionAndRefreshRowsCallback - A callback used to trigger deselection of all the selected rows and then call\n * {@link ApiContext.fetchRowsData 'fetchRowsData'} api of to fetch latest data for given rows, after action is completed.\n * @return {void} - void\n */\n onClick: (rowIds: string[], clearSelectionAndRefreshRowsCallback: () => void) => void;\n};\n\ninterface ConditionConfig {\n condition: Condition;\n data: RowData;\n}\n\nexport type PersonalizationResponse = Pick<Personalization, 'defaultPersonalization'> & {\n allPersonalizations: {\n [personalizationKey: string]: Pick<PersonalizationInfo, 'name'> & {\n personalizationState: PersonalizedState;\n };\n };\n};\n\nexport interface GroupAdditionalFieldUniqueValues {\n /** Unique values for the group additional field. */\n values: (string | number | boolean | Date)[];\n /** Indicates if there are more values. */\n hasMore: boolean;\n}\n\nexport interface ApiContext {\n /**\n * This api is used to fetch a list of raw data rows (excluding aggregations) for a given group or at the top level when no groups.\n *Refer **[apiContext](https://git.pega.io/projects/PS/repos/ui-lists-lib/browse/docs/apiContext.md?useDefaultHandler=true#29) documentation** for more details.\n * @requireWhen Always\n * @invokedWhen filters are changed OR\\\n * search criteria is changed OR\\\n end user scrolls through the RS records OR\\\n sorting is changed OR\\\n forceRefresh is triggered by consumer OR\\\n groups are changed OR\\\n hierarchicalGroups are changed OR\\\n hiddenColumns are changed\n * @param {State} rsState - Current repeating structures {@link State}. Majorly used to build the criteria for query(e.g. filter, sort, group criteria, paginationOptions).\n * @param {Meta} rsMeta - Repeating structures {@link Meta}. Majorly used to determine the fields for which data needs to be fetched.\n * @param {ApiOptions} apiOptions - Extra api options provided by repeating structures,\n * for instance, abort signal handler is sent which can be attached to the native fetch call or any framework like axios. Repeating structures will use to cancel the api calls which might be using stale state, e.g. in case of progressive scroll.\n * @returns {Promise<FetchDataResponse>} - It should return a promise of type {@link FetchDataResponse} that should contain data as one key of type Array<{@link RowData}> to provide data for given query.\n */\n fetchData: (rsState: State, rsMeta: Meta, apiOptions: ApiOptions) => Promise<FetchDataResponse>;\n\n /**\n * This api is used to fetch details for any group/sub-group ribbons in the RS. Should return labels, counts, aggregation values at each group node.This can sometimes be called even when there are no groups. Avoid running into exceptions in those cases.\n * Refer **[apiContext](https://git.pega.io/projects/PS/repos/ui-lists-lib/browse/docs/apiContext.md?useDefaultHandler=true#59) documentation** for more details.\n * @requireWhen {@link Meta.grouping 'grouping'} key is set to true in\n * @invokedWhen Grouping is applied on any {@link FieldDef fieldDef} OR\\\n * filters are changed OR\\\n * search criteria is changed OR\\\n * personalization is toggled. OR\\\n * aggregation is changed OR\\\n * hiddenColumns are changed OR\\\n * forceRefresh of RS is triggered by consumer.\n * @param {State} rsState - Current repeating structures {@link State}. Majorly used to build the criteria for query. For e.g. use rsState.groups and rsState.aggregationInfo to determine the query.\n * @param {Meta} rsMeta - Repeating structures {@link Meta}. Majorly used to determine the fields info for which data needs to be fetched.\n * @returns {GroupedInfo[]} - It should return a promise of type array of all the {@link GroupedInfo } for the specific field. It can also include nested groups in children key.\n */\n fetchGroupedInfo?: (\n rsState: State,\n rsMeta: Meta,\n apiOptions: ApiOptions\n ) => Promise<GroupedInfo[]>;\n\n /**\n * This api is used to fetch aggregation results for a given aggregation type(sum/min/max/count) on a field. This is called when aggregations are configured on one or more column.\n * Refer **[apiContext](https://git.pega.io/projects/PS/repos/ui-lists-lib/browse/docs/apiContext.md?useDefaultHandler=true#84) documentation** for more details.\n * @requireWhen {@link FieldDef.aggregation 'aggregation'} key is set to true for at least one FieldDef AND {@link FieldDef.type 'type'} key in FieldDef should be of number for that particular fieldDef.\n * @invokedWhen When aggregation is applied on any {@link FieldDef fieldDef} OR\\\n * filters are changed OR\\\n * search criteria is changed OR\\\n * personalization is toggled. OR\\\n * hiddenColumns are changed.\n * @param {State} rsState - Current repeating structures {@link State}. Majorly used to get current aggregations applied on the RS from aggregationInfo key in state. Apart from this current filters and search criteria can also be picked from state.\n * @param {Meta} rsMeta - Repeating structures {@link Meta}. Majorly used to determine the fields for which data needs to be fetched.\n * @returns {Promise<AggregationResult>} - It should return a promise of type {@link AggregationResult}\n */\n fetchAggregatedValues?: (\n rsState: State,\n rsMeta: Meta,\n apiOptions: ApiOptions\n ) => Promise<AggregationResult>;\n\n /**\n * This api is used to fetch unique values available for a particular field. It is generally called for a field which has {@link FieldDef.filterPickList filterPickList} key set to true.The unique values are presented to the user while filtering.\n * Refer **[apiContext](https://git.pega.io/projects/PS/repos/ui-lists-lib/browse/docs/apiContext.md?useDefaultHandler=true#99) documentation** for more details.\n * @requireWhen {@link FieldDef.filterPickList filterPickList} key set to true for at least one FieldDef\n * @invokedWhen Picklist Filter is invoked by end user from FieldDef header action menu.\n * @param {State} rsState - Current repeating structures {@link State}.\n * @param {Meta} rsMeta - Repeating structures {@link Meta}.\n * @param {string} columnId - This is equal to { @link FieldDef.id 'id'} key of the field for which unique values needs to be fetched.\n * @returns {Promise<Array<string | number | boolean | Date>>} It should return a promise of type array of unique values for a given fieldDef id.\n */\n fetchUniqueColValues?: (\n rsState: State,\n rsMeta: Meta,\n columnId: string,\n apiOptions: ApiOptions\n ) => Promise<(string | number | boolean | Date)[]>;\n\n /**\n * This api is used to fetch the latest data for a given row identified uniquely by {@link FieldDef.itemKey itemKey}.\n * @requireWhen {@link Meta.editing 'editing'} OR {@link Meta.deleting 'deleting'} is set to true\n * @invokedWhen A {@link Meta.rowActions rowAction} is submitted by consumer of RS, as part of {@link RowAction. rowAction.onClick} 'refresRow' callback.\n * @param {State} rsState - Current repeating structures {@link State}.\n * @param {Meta} rsMeta - Repeating structures {@link Meta}.\n * @param {string} key - A unique identifier for a given row. This is equal to {@link Meta.itemKey 'itemKey'}\n * @param {string} value - The value for the given {@link Meta.itemKey 'itemKey'} for given row.\n * @param {RowData} existingRowData - Existing row data for the given row.\n * @returns {Promise<RowData[]>} It should return a promise of type {@link RowData} array containing the data for a given row.Only 0th index is considered from the array.\n */\n fetchRowData?: (\n rsState: State,\n rsMeta: Meta,\n key: string,\n value: string,\n existingRowData: RowData,\n apiOptions: ApiOptions\n ) => Promise<RowData[]>;\n\n /**\n * This api is used to fetch the latest data for given set of rows identified uniquely by itemKey in {@link FieldDef}. This is passed as callback to all the {@link BulkAction.onClick bulk actions 'onClick'} method with {@link ApiContext.clearSelectedRows clearSelectedRows} api.\n * @requireWhen {@link Meta.allowBulkActions 'allowBulkActions'} is set to true.\n * @invokedWhen The bulk action is submitted, this can be called by bulk actions {@link BulkAction.onClick 'onClick'} method by RS consumer.\n * @param {State} rsState - Current repeating structures {@link State}.\n * @param {Meta} rsMeta - Repeating structures {@link Meta}.\n * @param {Array<string | number | boolean | Date>} rowIds - The values for the given {@link Meta.itemKey 'itemKey'} for given rows.\n * @param itemKey - A unique identifier for a given row. This is equal to {@link Meta.itemKey 'itemKey'}\n * @returns {Promise<RowData[]>} It should return a promise of type {@link RowData} array containing the data for given rows.\n */\n fetchRowsData?: (\n rsState: State,\n rsMeta: Meta,\n rowIds: string[],\n itemKey: string,\n apiOptions: ApiOptions\n ) => Promise<RowData[]>;\n\n /**\n * This api is used to fetch the actions that is supported on rows of Repeating Structure. It is generally called when {@link Meta.editing 'editing'} is set to true.\n * @requireWhen {@link Meta.editing 'editing'} OR {@link Meta.deleting 'deleting'} is set to true\n * @invokedWhen The end user clicks on 'RowActionMenu'.Once fetched it is not refetched.\n * @param {} uniqueKey - A unique identifier for a given row. This is equal to value for {@link Meta.itemKey 'itemKey'} in {@link RowData} data.\n * @returns - A promise of type Array of {@link RowAction}\n */\n fetchRowActionDetails?: (uniqueKey: string, rowContext: RowData) => Promise<RowAction[]>;\n\n /**\n * This api is used to submit the updated row data to apiContext. It is generally called when {@link FieldDef.editable 'editable'} key is set to true for at least one FieldDef to enable inline editing for a cell.\n * @requireWhen {@link FieldDef.editable 'editable'} key is set to true for at least one FieldDef.\n * @invokedWhen The end user is done editing the cell using inline editing.\n * @param {State} rsState - Current repeating structures {@link State}.\n * @param {Meta} rsMeta - Repeating structures {@link Meta}.\n * @param dataToSubmit - Updated row data to be submitted to apiContext\n * @returns It should return a promise of type {@link RowData} with the updated contents that is passed in {@link dataToSubmit} param.\n */\n submitData?: (\n rsState: State,\n rsMeta: Meta,\n dataToSubmit: RowData\n ) => Promise<{ rowData: RowData }>;\n\n /**\n * This api is used to submit moved records in a repeating structure. It is called when {@link Meta.moveListRecords 'moveListRecords'} is set to true. Repeating structure allow moving of records based on it's value.\n * @requireWhen {@link Meta.moveListRecords 'moveListRecords'} is set to true\n * @invokedWhen The move process is completed by end user this api is called to provide the info related to move records.\n * @param moveInfo - It is an object that contains sourceID(the data of {@link Meta.itemKey 'itemKey'} for the given row) that user has selected to move and\n * destinationID(the data of {@link Meta.itemKey 'itemKey'} for the given row) where the user has dropped the source row.\n * @returns It should return a promise of type object that contains a refresh key if set to true, repeating structures will trigger a refresh and fetch the whole data agin using {@link ApiContext.fetchData 'fetchData'} api\n */\n moveListRecords?: (moveInfo: {\n sourceID: string;\n destinationID: string;\n }) => Promise<{ refresh: boolean }>;\n\n /**\n * This api is used to fetch the bulkActions for a repeating structures if {@link Meta.allowBulkActions 'allowBulkActions'} is set to true.\n * This is called on demand, when the bulk action button in repeating structures is clicked. The button will be disabled till the time at least one record is not selected in repeating structures to trigger bulk action.\n * @requireWhen {@link Meta.allowBulkActions 'allowBulkActions'} is set to true.\n * @invokedWhen End user clicks on 'Bulk actions' button in RS Toolbar.Once fetched it is not refetched.\n * @param {Array<string>} rowIds - The values for the given {@link Meta.itemKey 'itemKey'} for given rows.\n * @returns A promise of type Array of {@link BulkAction}\n */\n fetchActions?: (rowIds: string[]) => Promise<BulkAction[]>;\n\n /**\n * This API is used to pass utility callbacks to the consumer. Consumers can use these callbacks at any point in the lifecycle of Repeating Structures to interact with them.\n *\n * @returns {void} This function does not return any value.\n */\n addCallbacks?: (\n /**\n * @param rsUtilityCallbacks - A set of callbacks exposed by Repeating Structures, including methods for interacting with the view and managing state.\n * See {@link RsApi} for the list of available callbacks.\n *\n */\n rsUtilityCallbacks: RsApi & {\n /**\n * @deprecated This method will be removed in future versions. Please use {@link RsApi.refreshView refreshView} instead.\n *\n * It is used to trigger a force refresh the data and re-fetch selections using apiContext.getSelectedRows api (if any of the selection mode is enabled) of repeating structures\n * @returns {void} void\n */\n forceRefresh: UtilityFunctions['forceRefresh'];\n }\n ) => void;\n\n /**\n * This api passes a unique identifier to apiContext to identify a repeating structure instance. This can be used to uniquely identify a RS instance in case of multiple RS instances.\n * @requireWhen Optional\n * @invokedWhen On Repeating structures mount to share current repeating structure instance identifier.\n * @param {string} rsID - A unique identifier\n * @returns {void} void\n */\n setRsID?: (rsID: string) => void;\n\n /**\n * This api is called to fetch all the personalizations for a repeating structure.\n * @requireWhen {@link Meta.personalization 'personalization'} key is set to true.\n * @invokedWhen On Repeating structures mount to fetch all personalizations.\n * @returns {PersonalizationResponse} It should return all the personalizations.\n */\n fetchPersonalizations?: () => Promise<PersonalizationResponse>;\n\n /**\n * This api is called to update the personalization for a repeating structure.\n * @requireWhen {@link Meta.personalization 'personalization'} key is set to true.\n * @invokedWhen End user deletes a personalization.\n * @param {string} personalizationKey - Unique identifier for the personalization.\n * @param personalization - The updated personalization state.\n * @returns {void} void\n */\n updatePersonalization?: (\n personalizationKey: string,\n personalization: {\n markAsDefault?: boolean;\n markAsAppDefault?: boolean;\n name?: string;\n personalizationState?: PersonalizedState;\n }\n ) => Promise<void>;\n\n /**\n * This api is called to delete the personalization for a repeating structure.\n * @requireWhen {@link Meta.personalization 'personalization'} key is set to true.\n * @invokedWhen End user deletes a personalization.\n * @param personalizationKey - Unique identifier for a personalization.\n * @returns {void} void\n */\n deletePersonalization?: (personalizationKey: string) => Promise<void>;\n\n /**\n * This api is called to create the personalization for a repeating structure.\n * @requireWhen {@link Meta.personalization 'personalization'} key is set to true.\n * @invokedWhen End user create a new personalization.\n * @param {string} personalizationKey - Unique identifier for the personalization.\n * @param personalization - The personalization state to be saved\n * @returns {void} void\n */\n createPersonalization?: (\n personalizationKey: string,\n personalization: {\n markAsDefault: boolean;\n name: string;\n personalizationState: PersonalizedState;\n }\n ) => Promise<string> | Promise<{ data: string }>;\n\n /**\n * This api is used to communicate selectedRows in the repeating structures to the consumer.\n * @requireWhen {@link Meta.selectionMode 'selectionMode'} key is set to true.\n * @invokedWhen {@link Meta.selectionMode 'selectionMode'} key is set to true and whenever selection changes in RS.\n * @param {Array<RowData & { $selected: boolean }>} selectedRows The selectedRows that needs to be communicated.\n * @returns {Promise<void>} A promise\n */\n setSelectedRows?: (selectedRows: (RowData & { $selected: boolean })[]) => Promise<void>;\n\n /**\n * This api is used to get the selectedRows for the repeating structures from the consumer, to populate the selections in RS.\n * @requireWhen {@link Meta.selectionMode 'selectionMode'} key is set to true.\n * @invokedWhen {@link Meta.selectionMode 'selectionMode'} key is set to true and RS requires current selected rows from the consumer.\n * @returns {Promise<Array<string>>} A promise of type array of unique identifiers for all the row. It is value of {@link Meta.itemKey 'itemKey'}\n */\n getSelectedRows?: () => Promise<string[]>;\n\n /** This api is used to communicate the clearance of all the selectedRows for the repeating structures to the consumer.\n * This is also passed as callback to all the {@link BulkAction.onClick bulk actions 'onClick'} method with {@link ApiContext.fetchRowsData fetchRowsData} api.\n * @requireWhen {@link Meta.selectionMode 'selectionMode'} key is set to true.\n * @invokedWhen In case of {@link Meta.selectionMode \"multi\"} selection mode, while toggling all the selections OR\\\n * while switching personalizations OR\\\n * when the bulk action is submitted, this can be called by bulk actions {@link BulkAction.onClick 'onClick'} method by RS consumer.\n * @returns {Promise<void>} A promise\n */\n clearSelectedRows?: () => Promise<void>;\n\n /**\n * This api is used to fetch the hierarchical groups for an RS if {@link FieldDef.hierarchicalInfo 'hierarchicalInfo'} key is set to true for at least one FieldDef.\n * @requireWhen {@link FieldDef.hierarchicalInfo 'hierarchicalInfo'} key is set to true for at least one FieldDef\n * @invokedWhen Any change in filters, search criteria, hierarchichal groups, aggregations is detected in RS state or personalizations are toggled.\n * @param {State} rsState - Current repeating structures {@link State}.\n * @param {Meta} rsMeta - Repeating structures {@link Meta}.\n * @returns {HierarchicalGroupedInfo[]} - It should return a promise of type array of all the {@link HierarchicalGroupedInfo } for the specific field. It can also include nested hierarchical groups in children key.\n */\n fetchHierarchicalGroupedInfo?: (\n rsState: State,\n rsMeta: Meta,\n apiOptions: ApiOptions\n ) => Promise<HierarchicalGroupedInfo[]>;\n\n /**\n * This api is used to communicate repeating structure state to the consumer. It also includes visibleColumns apart from regular repeating structure state.\n * @requireWhen Optional\n * @invokedWhen After any action performed on Repeating structures that results in updating of state.\n * @param state Repeating structure state\n * @returns {void} void\n */\n stateUpdateCallback?: (state: PersonalizedState & { visibleColumns?: string[] }) => void;\n\n /**\n * This api is used to communicate repeating structure state to the consumer. It also includes active personalization in RS apart from regular repeating structure state.\n * @requireWhen Optional\n * @param state Repeating structure state\n * @returns {void} void\n */\n setComponentState?: (state: PersonalizedState & { activePersonalization?: string }) => void;\n /**\n * This api is used to communicate repeating structure state to RS from consumer.\n * @requireWhen Optional\n * @returns RS state.\n */\n getComponentState?: () => Promise<PersonalizedState & { activePersonalization?: string }>;\n /** This api is called on click of 'Import data' option in repeating structures toolbar and should open a modal to allow import of data from a CSV file.\n * @requireWhen {@link Meta.showImportDataOption showImportDataOption} is set to true in Meta.\n * @invokedWhen \"Import data\" button is clicked in the repeating structures toolbar\n * @param {ModalManagerContextValue['create']} create - The function to create a modal in the current context {@link ModalManagerContextValue['create']}.\n * @returns {void} void\n */\n importCSVData?: (create: ModalManagerContextValue['create']) => Promise<void>;\n /** This api is called on click of 'Export to excel' option in repeating structures toolbar and should export the data into a excel file.\n * @requireWhen {@link Meta.showExportToExcelOption showExportToExcelOption} is set to true in Meta.\n * @invokedWhen \"Export to excel\" button is clicked in the repeating structures toolbar\n * @param {State} rsState - Current repeating structures state {@link State}.\n * @param {Meta} rsMeta - Repeating structures meta {@link Meta}.\n * @returns {void} void\n */\n exportData?: (rsState: State, rsMeta: Meta, apiOptions: ApiOptions) => Promise<void>;\n\n /** This api is called on click of 'Export to CSV' option in repeating structures toolbar and should export the data into a CSV file.\n * @requireWhen {@link Meta.showExportToCSVOption showExportToCSVOption} is set to true in Meta.\n * @invokedWhen \"Export to CSV\" button is clicked in the repeating structures toolbar\n * @param {State} rsState - Current repeating structures state {@link State}.\n * @param {Meta} rsMeta - Repeating structures meta {@link Meta}.\n * @returns {void} void\n */\n exportDataToCSV?: (rsState: State, rsMeta: Meta, apiOptions: ApiOptions) => Promise<void>;\n\n /** This api is used to communicate source and destinaltion row keys to apiContext during row-reordering operation.\n * @requireWhen {@link Meta.reorderItems reorderItems} is set to true and {@link Meta.moveListRecords moveListRecords} is set to false in Meta.\n * @invokedWhen Reordering operations is being performed on rows.\n * @param {string} sourceKey - the value of {@link Meta.itemKey 'itemKey'} for the given row that user has selected to move.\n * @param {string} destinationKey - the value of {@link Meta.itemKey 'itemKey'} for the given row where the user has dropped the source row.\n * @returns {void} void\n */\n applyRowReorder?: (sourceKey: string, destinationKey: string) => Promise<void>;\n\n /**\n * This API allows Repeating Structures to determine if a given `data` meets a specified `condition`. It is utilized in the following features if provided:\n * - `Conditional Formatting` - Optional. If `evaluateCondition` is not provided, Repeating Structures will evaluate the row condition on their own. Otherwise, this function will be used.\n *\n * @param {State} rsState - The state of the Repeating Structures.\n * @param {Meta} rsMeta - The meta information of the Repeating Structures.\n * @param {ConditionConfig} config - The configuration for the condition.\n * @returns {Promise<boolean> | boolean} - Returns `true` if the data satisfies the condition, otherwise `false`.\n */\n evaluateCondition?: (rsState: State, rsMeta: Meta, config: ConditionConfig) => boolean;\n\n /**\n * This api is used to fetch unique values for a particular group additional field. It is generally called for a group additional field which has more than 1 value.\n * It should return unique values for the additional field along with hasMore flag to indicate if there are more values.\n * @param additionalField - The group additional field for which unique values needs to be fetched.\n * @param groupFilters - The current group filters on which the additional field is set.\n * @param rsState - The state of the Repeating Structures.\n * @param rsMeta - The meta information of the Repeating Structures.\n * @param options - Extra api options provided by repeating structures.\n * @returns GroupAdditionalFieldUniqueValues - It should return a promise of type {@link GroupAdditionalFieldUniqueValues}\n */\n fetchGroupAdditionalFieldUniqueValues?: (\n additionalField: GroupAdditionalField,\n groupFilters: GroupFilter['filters'],\n rsState: State,\n rsMeta: Meta,\n options?: ApiOptions\n ) => Promise<GroupAdditionalFieldUniqueValues>;\n}\n"]}
1
+ {"version":3,"file":"ApiContext.types.js","sourceRoot":"","sources":["../../types/ApiContext.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ModalManagerContextValue } from '@pega/cosmos-react-core/lib/components/Modal/Modal.types';\nimport type { Condition } from '@pega/cosmos-react-condition-builder';\n\nimport type { RowData } from '../src/core/generators/RowGenerator.types';\nimport type { UtilityFunctions } from '../src/core/generators/viewUtilityMethods';\n\nimport type {\n Personalization,\n PersonalizationInfo,\n PersonalizedState,\n State,\n Group,\n /* eslint-disable @typescript-eslint/no-unused-vars */\n DateGroupAdditionalField,\n NumberGroupAdditionalField,\n GroupFilter,\n GroupAdditionalField\n /* eslint-enable @typescript-eslint/no-unused-vars */\n} from './State.types';\nimport type {\n Meta,\n RowAction,\n FieldDef,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n FieldType\n} from './Meta.types';\n\n/**\n * Represents information about the currently active view in the repeating structures.\n */\ntype ActiveViewInfo = {\n /**\n * The unique identifier of the active view.\n */\n id: string | undefined;\n\n /**\n * The name of the active view.\n */\n name: string | undefined;\n\n /**\n * Indicates whether the active view has unsaved changes.\n */\n isDirty: boolean;\n};\n\nexport type RsApi = {\n /**\n * Refreshes the current view.\n * @see {@link UtilityFunctions.refreshView}\n */\n refreshView: UtilityFunctions['forceRefresh'];\n\n /**\n * Sets the record count in the view.\n * @see {@link UtilityFunctions.setRecordCount}\n */\n setRecordCount: UtilityFunctions['setRecordCount'];\n\n /**\n * Dispatches an action to the repeating structures with an payload.\n * @see {@link UtilityFunctions.dispatchAction}\n */\n dispatchAction: UtilityFunctions['dispatchAction'];\n\n /**\n * Retrieves information about the currently active view.\n * @returns The {@link ActiveViewInfo active view information} or `void` if unavailable.\n */\n getActiveViewInfo: () => ActiveViewInfo | void;\n\n /**\n * Sets hidden columns of the view.\n * @param columns - An array of column IDs to hide.\n * @param ootbColumns - .\n * @param ootbColumns.dragHandle - Whether to hide the drag-and-drop column.\n */\n setHiddenColumns?: (columns: string[], ootbColumns?: { dragHandle: boolean }) => void;\n\n /**\n * Sets Column order of the view.\n * @param columns - An array of column IDs to reorder.\n */\n setColumnOrder?: (columns: string[]) => void;\n\n /**\n * Sets the filters of the view.\n * @param filter - The filter condition to apply.\n */\n setFilter: (filter: Condition) => void;\n\n /**\n * Sets the groups of the view.\n * @param groups - The grouping configuration.\n */\n setGrouping?: (groups: Group[]) => void;\n\n /**\n * Sets the sorting order of the view.\n * @param {NonNullable<State['sortingOrder']>} sorts - The sorting configuration.\n */\n setSorting: (sorts: NonNullable<State['sortingOrder']>) => void;\n\n /**\n * Sets the column aliases of the view.\n * @param aliases - The column alias configuration.\n */\n setAliases: (aliases: State['columnAlias']) => void;\n\n /**\n * Sets the aggregation information of the view.\n * @param {State['aggregationInfo']} agg - The aggregation configuration.\n */\n setAggregations: (agg: State['aggregationInfo']) => void;\n\n /**\n * Sets the visibility of the row reorder field.\n * @param {boolean} visibility - Whether the row reorder field should be visible.\n */\n setRowReorderFieldVisibility: (visibility: boolean) => void;\n\n /**\n * Updates the visibility of specific columns.\n * @param {Object} columns - A mapping of column IDs to their visibility state.\n */\n updateColumnsVisibility: (columns: { [key: FieldDef['id']]: boolean }) => void;\n\n /**\n * Sets the `renderFormatter` for the given column.\n * @param columnId - Column ID\n * @param formatterName - ID of the formatter/renderer\n */\n setRenderFormatter: (columnId: string, formatterName: string) => void;\n\n /**\n * Removes the `renderFormatter` for the given column.\n * @param columnId - Column ID\n */\n removeRenderFormatter: (columnId: string) => void;\n\n /**\n * Sets the conditional style formats of the view.\n * @param conditionalStyleFormats - The conditional style formats to apply.\n */\n setConditionalStyleFormats: (\n conditionalStyleFormats: NonNullable<State['conditionalStyleFormats']>\n ) => void;\n};\n\nexport interface ApiOptions {\n signal?: AbortSignal;\n /** Indicates current api triggered should invalidate the cache if any and reload the data. */\n invalidateCache?: boolean;\n /** A unique token or version identifier that changes whenever a refresh is triggered. Unlike a boolean `invalidateCache` flag, the `invalidateCacheToken` ensures that multiple APIs triggered\n in the same refresh cycle receive the same identifier. */\n invalidateCacheToken?: number;\n}\n// Aggregation response type\ntype AggregationTypeResp = 'avg' | 'max' | 'min' | 'nonNullCount' | 'sum' | 'distinctCount';\n/** An object with key equal to {@link AggregationTypeResp aggregation type} and value is equal to the actual value of that aggregation type */\ntype AggregationOptions = {\n [agg in AggregationTypeResp]?: number | null;\n};\n/** An object where key is equal to the column id (i.e. {@link FieldDef.id id} in FieldDef) and value is equal to its {@link AggregationOptions Aggregation values} */\nexport type AggregationResp = {\n [columnId: string]: AggregationOptions;\n};\n\nexport type AdditionalFieldData = {\n /** {@link FieldDef.id Field Id} of the additional field. */\n id: string;\n /** Value of the additional field that should be displayed for additional field.\n * The value can represent:\n * - An aggregated value (e.g., sum, max, min, avg) for {@link FieldType.NUMBER number} type fields when\n * {@link NumberGroupAdditionalField.aggregation aggregation} is selected in additional fields meta.\n * - A date function value (e.g., Day, Month, Year) for {@link FieldType.DATE 'date'} / {@link FieldType.DATE_TIME 'datetime'}\n * fields when a {@link DateGroupAdditionalField.dateFunction date function} is selected in the additional fields metadata..\n * - A scalar or single value for the additional field.\n */\n value: null | string | number | boolean | Date;\n /** Represents the distinct count of\n * occurrences for the additional field data. This is generally required,\n * but may be omitted if {@link NumberGroupAdditionalField.aggregation aggregation} is selected for number type fields\n * in the additional fields metadata. */\n count?: number;\n};\n\n// Grouping response type\nexport interface GroupedInfo {\n /** Value for the current group node. */\n name: null | string | number | boolean | Date; // Value for the current node\n /** # of data rows in this node */\n count: number;\n /** An optional data row from the group node that is used to process extra information required by group node */\n data?: RowData;\n /** Additional fields data for the current group node */\n additionalFieldsData?: AdditionalFieldData[];\n /** Aggregation values of a column if applied */\n agg?: AggregationResp;\n /** Nested groups within the parent group node */\n children?: GroupedInfo[];\n}\n\nexport interface HierarchicalGroupedInfo extends Pick<GroupedInfo, 'count' | 'agg'> {\n info: RowData;\n children?: HierarchicalGroupedInfo[];\n}\n\nexport type AggregateValueResponse = {\n [columnId: string]: number | null;\n};\n/** An object where key is equal to column id i.e. {@link FieldDef.id id key in fieldDef} and value is equal to the aggregation value for the given aggregation */\nexport type AggregationResult = {\n [columnId: string]: number;\n};\n\nexport interface FetchDataResponse {\n /** An array of {@link RowData} */\n data: RowData[];\n /** An optional parameter to provide the total record count for a given Repeating structures with a given filter criteria in the query. If not provided, use callback setRecordCount */\n totalRecordCount?: number;\n /** @deprecated An optional parameter to provide the total record count for a given Repeating structures with a given filter criteria in the query. If not provided, use callback setRecordCount */\n filteredRecordCount?: number;\n}\n\ntype BulkAction = Pick<RowAction, 'id' | 'text'> & {\n /**\n * @param rowIds - The values for the {@link Meta.itemKey 'itemkey'} for given rows.\n * @param clearSelectionAndRefreshRowsCallback - A callback used to trigger deselection of all the selected rows and then call\n * {@link ApiContext.fetchRowsData 'fetchRowsData'} api of to fetch latest data for given rows, after action is completed.\n * @return {void} - void\n */\n onClick: (rowIds: string[], clearSelectionAndRefreshRowsCallback: () => void) => void;\n};\n\ninterface ConditionConfig {\n condition: Condition;\n data: RowData;\n}\n\nexport type PersonalizationResponse = Pick<Personalization, 'defaultPersonalization'> & {\n allPersonalizations: {\n [personalizationKey: string]: Pick<PersonalizationInfo, 'name'> & {\n personalizationState: PersonalizedState;\n };\n };\n};\n\nexport interface GroupAdditionalFieldUniqueValues {\n /** Unique values for the group additional field. */\n values: (string | number | boolean | Date)[];\n /** Indicates if there are more values. */\n hasMore: boolean;\n}\n\nexport interface ApiContext {\n /**\n * This api is used to fetch a list of raw data rows (excluding aggregations) for a given group or at the top level when no groups.\n *Refer **[apiContext](https://git.pega.io/projects/PS/repos/ui-lists-lib/browse/docs/apiContext.md?useDefaultHandler=true#29) documentation** for more details.\n * @requireWhen Always\n * @invokedWhen filters are changed OR\\\n * search criteria is changed OR\\\n end user scrolls through the RS records OR\\\n sorting is changed OR\\\n forceRefresh is triggered by consumer OR\\\n groups are changed OR\\\n hierarchicalGroups are changed OR\\\n hiddenColumns are changed\n * @param {State} rsState - Current repeating structures {@link State}. Majorly used to build the criteria for query(e.g. filter, sort, group criteria, paginationOptions).\n * @param {Meta} rsMeta - Repeating structures {@link Meta}. Majorly used to determine the fields for which data needs to be fetched.\n * @param {ApiOptions} apiOptions - Extra api options provided by repeating structures,\n * for instance, abort signal handler is sent which can be attached to the native fetch call or any framework like axios. Repeating structures will use to cancel the api calls which might be using stale state, e.g. in case of progressive scroll.\n * @returns {Promise<FetchDataResponse>} - It should return a promise of type {@link FetchDataResponse} that should contain data as one key of type Array<{@link RowData}> to provide data for given query.\n */\n fetchData: (rsState: State, rsMeta: Meta, apiOptions: ApiOptions) => Promise<FetchDataResponse>;\n\n /**\n * This api is used to fetch details for any group/sub-group ribbons in the RS. Should return labels, counts, aggregation values at each group node.This can sometimes be called even when there are no groups. Avoid running into exceptions in those cases.\n * Refer **[apiContext](https://git.pega.io/projects/PS/repos/ui-lists-lib/browse/docs/apiContext.md?useDefaultHandler=true#59) documentation** for more details.\n * @requireWhen {@link Meta.grouping 'grouping'} key is set to true in\n * @invokedWhen Grouping is applied on any {@link FieldDef fieldDef} OR\\\n * filters are changed OR\\\n * search criteria is changed OR\\\n * personalization is toggled. OR\\\n * aggregation is changed OR\\\n * hiddenColumns are changed OR\\\n * forceRefresh of RS is triggered by consumer.\n * @param {State} rsState - Current repeating structures {@link State}. Majorly used to build the criteria for query. For e.g. use rsState.groups and rsState.aggregationInfo to determine the query.\n * @param {Meta} rsMeta - Repeating structures {@link Meta}. Majorly used to determine the fields info for which data needs to be fetched.\n * @returns {GroupedInfo[]} - It should return a promise of type array of all the {@link GroupedInfo } for the specific field. It can also include nested groups in children key.\n */\n fetchGroupedInfo?: (\n rsState: State,\n rsMeta: Meta,\n apiOptions: ApiOptions\n ) => Promise<GroupedInfo[]>;\n\n /**\n * This api is used to fetch aggregation results for a given aggregation type(sum/min/max/count) on a field. This is called when aggregations are configured on one or more column.\n * Refer **[apiContext](https://git.pega.io/projects/PS/repos/ui-lists-lib/browse/docs/apiContext.md?useDefaultHandler=true#84) documentation** for more details.\n * @requireWhen {@link FieldDef.aggregation 'aggregation'} key is set to true for at least one FieldDef AND {@link FieldDef.type 'type'} key in FieldDef should be of number for that particular fieldDef.\n * @invokedWhen When aggregation is applied on any {@link FieldDef fieldDef} OR\\\n * filters are changed OR\\\n * search criteria is changed OR\\\n * personalization is toggled. OR\\\n * hiddenColumns are changed.\n * @param {State} rsState - Current repeating structures {@link State}. Majorly used to get current aggregations applied on the RS from aggregationInfo key in state. Apart from this current filters and search criteria can also be picked from state.\n * @param {Meta} rsMeta - Repeating structures {@link Meta}. Majorly used to determine the fields for which data needs to be fetched.\n * @returns {Promise<AggregationResult>} - It should return a promise of type {@link AggregationResult}\n */\n fetchAggregatedValues?: (\n rsState: State,\n rsMeta: Meta,\n apiOptions: ApiOptions\n ) => Promise<AggregationResult>;\n\n /**\n * This api is used to fetch unique values available for a particular field. It is generally called for a field which has {@link FieldDef.filterPickList filterPickList} key set to true.The unique values are presented to the user while filtering.\n * Refer **[apiContext](https://git.pega.io/projects/PS/repos/ui-lists-lib/browse/docs/apiContext.md?useDefaultHandler=true#99) documentation** for more details.\n * @requireWhen {@link FieldDef.filterPickList filterPickList} key set to true for at least one FieldDef\n * @invokedWhen Picklist Filter is invoked by end user from FieldDef header action menu.\n * @param {State} rsState - Current repeating structures {@link State}.\n * @param {Meta} rsMeta - Repeating structures {@link Meta}.\n * @param {string} columnId - This is equal to { @link FieldDef.id 'id'} key of the field for which unique values needs to be fetched.\n * @returns {Promise<Array<string | number | boolean | Date>>} It should return a promise of type array of unique values for a given fieldDef id.\n */\n fetchUniqueColValues?: (\n rsState: State,\n rsMeta: Meta,\n columnId: string,\n apiOptions: ApiOptions\n ) => Promise<(string | number | boolean | Date)[]>;\n\n /**\n * This api is used to fetch the latest data for a given row identified uniquely by {@link FieldDef.itemKey itemKey}.\n * @requireWhen {@link Meta.editing 'editing'} OR {@link Meta.deleting 'deleting'} is set to true\n * @invokedWhen A {@link Meta.rowActions rowAction} is submitted by consumer of RS, as part of {@link RowAction. rowAction.onClick} 'refresRow' callback.\n * @param {State} rsState - Current repeating structures {@link State}.\n * @param {Meta} rsMeta - Repeating structures {@link Meta}.\n * @param {string} key - A unique identifier for a given row. This is equal to {@link Meta.itemKey 'itemKey'}\n * @param {string} value - The value for the given {@link Meta.itemKey 'itemKey'} for given row.\n * @param {RowData} existingRowData - Existing row data for the given row.\n * @returns {Promise<RowData[]>} It should return a promise of type {@link RowData} array containing the data for a given row.Only 0th index is considered from the array.\n */\n fetchRowData?: (\n rsState: State,\n rsMeta: Meta,\n key: string,\n value: string,\n existingRowData: RowData,\n apiOptions: ApiOptions\n ) => Promise<RowData[]>;\n\n /**\n * This api is used to fetch the latest data for given set of rows identified uniquely by itemKey in {@link FieldDef}. This is passed as callback to all the {@link BulkAction.onClick bulk actions 'onClick'} method with {@link ApiContext.clearSelectedRows clearSelectedRows} api.\n * @requireWhen {@link Meta.allowBulkActions 'allowBulkActions'} is set to true.\n * @invokedWhen The bulk action is submitted, this can be called by bulk actions {@link BulkAction.onClick 'onClick'} method by RS consumer.\n * @param {State} rsState - Current repeating structures {@link State}.\n * @param {Meta} rsMeta - Repeating structures {@link Meta}.\n * @param {Array<string | number | boolean | Date>} rowIds - The values for the given {@link Meta.itemKey 'itemKey'} for given rows.\n * @param itemKey - A unique identifier for a given row. This is equal to {@link Meta.itemKey 'itemKey'}\n * @returns {Promise<RowData[]>} It should return a promise of type {@link RowData} array containing the data for given rows.\n */\n fetchRowsData?: (\n rsState: State,\n rsMeta: Meta,\n rowIds: string[],\n itemKey: string,\n apiOptions: ApiOptions\n ) => Promise<RowData[]>;\n\n /**\n * This api is used to fetch the actions that is supported on rows of Repeating Structure. It is generally called when {@link Meta.editing 'editing'} is set to true.\n * @requireWhen {@link Meta.editing 'editing'} OR {@link Meta.deleting 'deleting'} is set to true\n * @invokedWhen The end user clicks on 'RowActionMenu'.Once fetched it is not refetched.\n * @param {} uniqueKey - A unique identifier for a given row. This is equal to value for {@link Meta.itemKey 'itemKey'} in {@link RowData} data.\n * @returns - A promise of type Array of {@link RowAction}\n */\n fetchRowActionDetails?: (uniqueKey: string, rowContext: RowData) => Promise<RowAction[]>;\n\n /**\n * This api is used to submit the updated row data to apiContext. It is generally called when {@link FieldDef.editable 'editable'} key is set to true for at least one FieldDef to enable inline editing for a cell.\n * @requireWhen {@link FieldDef.editable 'editable'} key is set to true for at least one FieldDef.\n * @invokedWhen The end user is done editing the cell using inline editing.\n * @param {State} rsState - Current repeating structures {@link State}.\n * @param {Meta} rsMeta - Repeating structures {@link Meta}.\n * @param dataToSubmit - Updated row data to be submitted to apiContext\n * @returns It should return a promise of type {@link RowData} with the updated contents that is passed in {@link dataToSubmit} param.\n */\n submitData?: (\n rsState: State,\n rsMeta: Meta,\n dataToSubmit: RowData\n ) => Promise<{ rowData: RowData }>;\n\n /**\n * This api is used to submit moved records in a repeating structure. It is called when {@link Meta.moveListRecords 'moveListRecords'} is set to true. Repeating structure allow moving of records based on it's value.\n * @requireWhen {@link Meta.moveListRecords 'moveListRecords'} is set to true\n * @invokedWhen The move process is completed by end user this api is called to provide the info related to move records.\n * @param moveInfo - It is an object that contains sourceID(the data of {@link Meta.itemKey 'itemKey'} for the given row) that user has selected to move and\n * destinationID(the data of {@link Meta.itemKey 'itemKey'} for the given row) where the user has dropped the source row.\n * @returns It should return a promise of type object that contains a refresh key if set to true, repeating structures will trigger a refresh and fetch the whole data agin using {@link ApiContext.fetchData 'fetchData'} api\n */\n moveListRecords?: (moveInfo: {\n sourceID: string;\n destinationID: string;\n }) => Promise<{ refresh: boolean }>;\n\n /**\n * This api is used to fetch the bulkActions for a repeating structures if {@link Meta.allowBulkActions 'allowBulkActions'} is set to true.\n * This is called on demand, when the bulk action button in repeating structures is clicked. The button will be disabled till the time at least one record is not selected in repeating structures to trigger bulk action.\n * @requireWhen {@link Meta.allowBulkActions 'allowBulkActions'} is set to true.\n * @invokedWhen End user clicks on 'Bulk actions' button in RS Toolbar.Once fetched it is not refetched.\n * @param {Array<string>} rowIds - The values for the given {@link Meta.itemKey 'itemKey'} for given rows.\n * @returns A promise of type Array of {@link BulkAction}\n */\n fetchActions?: (rowIds: string[]) => Promise<BulkAction[]>;\n\n /**\n * This API is used to pass utility callbacks to the consumer. Consumers can use these callbacks at any point in the lifecycle of Repeating Structures to interact with them.\n *\n * @returns {void} This function does not return any value.\n */\n addCallbacks?: (\n /**\n * @param rsUtilityCallbacks - A set of callbacks exposed by Repeating Structures, including methods for interacting with the view and managing state.\n * See {@link RsApi} for the list of available callbacks.\n *\n */\n rsUtilityCallbacks: RsApi & {\n /**\n * @deprecated This method will be removed in future versions. Please use {@link RsApi.refreshView refreshView} instead.\n *\n * It is used to trigger a force refresh the data and re-fetch selections using apiContext.getSelectedRows api (if any of the selection mode is enabled) of repeating structures\n * @returns {void} void\n */\n forceRefresh: UtilityFunctions['forceRefresh'];\n }\n ) => void;\n\n /**\n * This api passes a unique identifier to apiContext to identify a repeating structure instance. This can be used to uniquely identify a RS instance in case of multiple RS instances.\n * @requireWhen Optional\n * @invokedWhen On Repeating structures mount to share current repeating structure instance identifier.\n * @param {string} rsID - A unique identifier\n * @returns {void} void\n */\n setRsID?: (rsID: string) => void;\n\n /**\n * This api is called to fetch all the personalizations for a repeating structure.\n * @requireWhen {@link Meta.personalization 'personalization'} key is set to true.\n * @invokedWhen On Repeating structures mount to fetch all personalizations.\n * @returns {PersonalizationResponse} It should return all the personalizations.\n */\n fetchPersonalizations?: () => Promise<PersonalizationResponse>;\n\n /**\n * This api is called to update the personalization for a repeating structure.\n * @requireWhen {@link Meta.personalization 'personalization'} key is set to true.\n * @invokedWhen End user deletes a personalization.\n * @param {string} personalizationKey - Unique identifier for the personalization.\n * @param personalization - The updated personalization state.\n * @returns {void} void\n */\n updatePersonalization?: (\n personalizationKey: string,\n personalization: {\n markAsDefault?: boolean;\n markAsAppDefault?: boolean;\n name?: string;\n personalizationState?: PersonalizedState;\n }\n ) => Promise<void>;\n\n /**\n * This api is called to delete the personalization for a repeating structure.\n * @requireWhen {@link Meta.personalization 'personalization'} key is set to true.\n * @invokedWhen End user deletes a personalization.\n * @param personalizationKey - Unique identifier for a personalization.\n * @returns {void} void\n */\n deletePersonalization?: (personalizationKey: string) => Promise<void>;\n\n /**\n * This api is called to create the personalization for a repeating structure.\n * @requireWhen {@link Meta.personalization 'personalization'} key is set to true.\n * @invokedWhen End user create a new personalization.\n * @param {string} personalizationKey - Unique identifier for the personalization.\n * @param personalization - The personalization state to be saved\n * @returns {void} void\n */\n createPersonalization?: (\n personalizationKey: string,\n personalization: {\n markAsDefault: boolean;\n name: string;\n personalizationState: PersonalizedState;\n }\n ) => Promise<string> | Promise<{ data: string }>;\n\n /**\n * This api is used to communicate selectedRows in the repeating structures to the consumer.\n * @requireWhen {@link Meta.selectionMode 'selectionMode'} key is set to true.\n * @invokedWhen {@link Meta.selectionMode 'selectionMode'} key is set to true and whenever selection changes in RS.\n * @param {Array<RowData & { $selected: boolean }>} selectedRows The selectedRows that needs to be communicated.\n * @returns {Promise<void>} A promise\n */\n setSelectedRows?: (selectedRows: (RowData & { $selected: boolean })[]) => Promise<void>;\n\n /**\n * This api is used to get the selectedRows for the repeating structures from the consumer, to populate the selections in RS.\n * @requireWhen {@link Meta.selectionMode 'selectionMode'} key is set to true.\n * @invokedWhen {@link Meta.selectionMode 'selectionMode'} key is set to true and RS requires current selected rows from the consumer.\n * @returns {Promise<Array<string>>} A promise of type array of unique identifiers for all the row. It is value of {@link Meta.itemKey 'itemKey'}\n */\n getSelectedRows?: () => Promise<string[]>;\n\n /** This api is used to communicate the clearance of all the selectedRows for the repeating structures to the consumer.\n * This is also passed as callback to all the {@link BulkAction.onClick bulk actions 'onClick'} method with {@link ApiContext.fetchRowsData fetchRowsData} api.\n * @requireWhen {@link Meta.selectionMode 'selectionMode'} key is set to true.\n * @invokedWhen In case of {@link Meta.selectionMode \"multi\"} selection mode, while toggling all the selections OR\\\n * while switching personalizations OR\\\n * when the bulk action is submitted, this can be called by bulk actions {@link BulkAction.onClick 'onClick'} method by RS consumer.\n * @returns {Promise<void>} A promise\n */\n clearSelectedRows?: () => Promise<void>;\n\n /**\n * This api is used to fetch the hierarchical groups for an RS if {@link FieldDef.hierarchicalInfo 'hierarchicalInfo'} key is set to true for at least one FieldDef.\n * @requireWhen {@link FieldDef.hierarchicalInfo 'hierarchicalInfo'} key is set to true for at least one FieldDef\n * @invokedWhen Any change in filters, search criteria, hierarchichal groups, aggregations is detected in RS state or personalizations are toggled.\n * @param {State} rsState - Current repeating structures {@link State}.\n * @param {Meta} rsMeta - Repeating structures {@link Meta}.\n * @returns {HierarchicalGroupedInfo[]} - It should return a promise of type array of all the {@link HierarchicalGroupedInfo } for the specific field. It can also include nested hierarchical groups in children key.\n */\n fetchHierarchicalGroupedInfo?: (\n rsState: State,\n rsMeta: Meta,\n apiOptions: ApiOptions\n ) => Promise<HierarchicalGroupedInfo[]>;\n\n /**\n * This api is used to communicate repeating structure state to the consumer. It also includes visibleColumns apart from regular repeating structure state.\n * @requireWhen Optional\n * @invokedWhen After any action performed on Repeating structures that results in updating of state.\n * @param state Repeating structure state\n * @returns {void} void\n */\n stateUpdateCallback?: (state: PersonalizedState & { visibleColumns?: string[] }) => void;\n\n /**\n * This api is used to communicate repeating structure state to the consumer. It also includes active personalization in RS apart from regular repeating structure state.\n * @requireWhen Optional\n * @param state Repeating structure state\n * @returns {void} void\n */\n setComponentState?: (state: PersonalizedState & { activePersonalization?: string }) => void;\n /**\n * This api is used to communicate repeating structure state to RS from consumer.\n * @requireWhen Optional\n * @returns RS state.\n */\n getComponentState?: () => Promise<PersonalizedState & { activePersonalization?: string }>;\n /** This api is called on click of 'Import data' option in repeating structures toolbar and should open a modal to allow import of data from a CSV file.\n * @requireWhen {@link Meta.showImportDataOption showImportDataOption} is set to true in Meta.\n * @invokedWhen \"Import data\" button is clicked in the repeating structures toolbar\n * @param {ModalManagerContextValue['create']} create - The function to create a modal in the current context {@link ModalManagerContextValue['create']}.\n * @returns {void} void\n */\n importCSVData?: (create: ModalManagerContextValue['create']) => Promise<void>;\n /** This api is called on click of 'Export to excel' option in repeating structures toolbar and should export the data into a excel file.\n * @requireWhen {@link Meta.showExportToExcelOption showExportToExcelOption} is set to true in Meta.\n * @invokedWhen \"Export to excel\" button is clicked in the repeating structures toolbar\n * @param {State} rsState - Current repeating structures state {@link State}.\n * @param {Meta} rsMeta - Repeating structures meta {@link Meta}.\n * @returns {void} void\n */\n exportData?: (rsState: State, rsMeta: Meta, apiOptions: ApiOptions) => Promise<void>;\n\n /** This api is called on click of 'Export to CSV' option in repeating structures toolbar and should export the data into a CSV file.\n * @requireWhen {@link Meta.showExportToCSVOption showExportToCSVOption} is set to true in Meta.\n * @invokedWhen \"Export to CSV\" button is clicked in the repeating structures toolbar\n * @param {State} rsState - Current repeating structures state {@link State}.\n * @param {Meta} rsMeta - Repeating structures meta {@link Meta}.\n * @returns {void} void\n */\n exportDataToCSV?: (rsState: State, rsMeta: Meta, apiOptions: ApiOptions) => Promise<void>;\n\n /** This api is used to communicate source and destinaltion row keys to apiContext during row-reordering operation.\n * @requireWhen {@link Meta.reorderItems reorderItems} is set to true and {@link Meta.moveListRecords moveListRecords} is set to false in Meta.\n * @invokedWhen Reordering operations is being performed on rows.\n * @param {string} sourceKey - the value of {@link Meta.itemKey 'itemKey'} for the given row that user has selected to move.\n * @param {string} destinationKey - the value of {@link Meta.itemKey 'itemKey'} for the given row where the user has dropped the source row.\n * @returns {void} void\n */\n applyRowReorder?: (sourceKey: string, destinationKey: string) => Promise<void>;\n\n /**\n * This API allows Repeating Structures to determine if a given `data` meets a specified `condition`. It is utilized in the following features if provided:\n * - `Conditional Formatting` - Optional. If `evaluateCondition` is not provided, Repeating Structures will evaluate the row condition on their own. Otherwise, this function will be used.\n *\n * @param {State} rsState - The state of the Repeating Structures.\n * @param {Meta} rsMeta - The meta information of the Repeating Structures.\n * @param {ConditionConfig} config - The configuration for the condition.\n * @returns {Promise<boolean> | boolean} - Returns `true` if the data satisfies the condition, otherwise `false`.\n */\n evaluateCondition?: (rsState: State, rsMeta: Meta, config: ConditionConfig) => boolean;\n\n /**\n * This api is used to fetch unique values for a particular group additional field. It is generally called for a group additional field which has more than 1 value.\n * It should return unique values for the additional field along with hasMore flag to indicate if there are more values.\n * @param additionalField - The group additional field for which unique values needs to be fetched.\n * @param groupFilters - The current group filters on which the additional field is set.\n * @param rsState - The state of the Repeating Structures.\n * @param rsMeta - The meta information of the Repeating Structures.\n * @param options - Extra api options provided by repeating structures.\n * @returns GroupAdditionalFieldUniqueValues - It should return a promise of type {@link GroupAdditionalFieldUniqueValues}\n */\n fetchGroupAdditionalFieldUniqueValues?: (\n additionalField: GroupAdditionalField,\n groupFilters: GroupFilter['filters'],\n rsState: State,\n rsMeta: Meta,\n options?: ApiOptions\n ) => Promise<GroupAdditionalFieldUniqueValues>;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/lists-core",
3
- "version": "9.0.0-build.14.9",
3
+ "version": "9.0.0-build.15.1",
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,8 +14,8 @@
14
14
  "build": "tsc -b tsconfig.build.json"
15
15
  },
16
16
  "dependencies": {
17
- "@pega/cosmos-react-condition-builder": "9.0.0-build.14.9",
18
- "@pega/cosmos-react-core": "9.0.0-build.14.9",
17
+ "@pega/cosmos-react-condition-builder": "9.0.0-build.15.1",
18
+ "@pega/cosmos-react-core": "9.0.0-build.15.1",
19
19
  "@types/lodash.get": "^4.4.9",
20
20
  "@types/uuid": "^9.0.0",
21
21
  "dayjs": "^1.11.13",