@zealicsolutions/web-ui 1.0.140-beta.231 → 1.0.140-beta.232

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.
Files changed (92) hide show
  1. package/dist/cjs/components/Buttons/TextButton.d.ts +1 -1
  2. package/dist/cjs/components/Input/helpers.d.ts +2 -2
  3. package/dist/cjs/containers/Container.d.ts +1 -1
  4. package/dist/cjs/containers/ReplicatorContainer/ReplicatorContainer.d.ts +1 -1
  5. package/dist/cjs/containers/ReplicatorContainer/ReplicatorFormSetup.d.ts +3 -3
  6. package/dist/cjs/containers/hooks/useEmptyStateFiltering.d.ts +6 -6
  7. package/dist/cjs/containers/hooks/useEmptyStateVisibility.d.ts +6 -6
  8. package/dist/cjs/containers/styles.d.ts +1 -1
  9. package/dist/cjs/containers/types/types.d.ts +2 -2
  10. package/dist/cjs/contexts/ReplicatorRegistryContext/types.d.ts +1 -1
  11. package/dist/cjs/contexts/WebpageContext/WebpageContext.d.ts +0 -5
  12. package/dist/cjs/contexts/WebpageContext/WebpageContextProvider.d.ts +0 -9
  13. package/dist/cjs/helpers/useWebpageQueryChains.d.ts +0 -4
  14. package/dist/cjs/index.js +87 -87
  15. package/dist/cjs/index.js.map +1 -1
  16. package/dist/cjs/molecules/Button/Button.d.ts +1 -1
  17. package/dist/cjs/molecules/Drawer/styles.d.ts +1 -1
  18. package/dist/cjs/organisms/Calendar/queries/useCalendarData.d.ts +3 -1
  19. package/dist/cjs/organisms/Calendar/types.d.ts +19 -3
  20. package/dist/cjs/organisms/CalendarDataGrid/queries/useCalendarDataGridData.d.ts +3 -4
  21. package/dist/cjs/organisms/CalendarDataGrid/types.d.ts +11 -0
  22. package/dist/cjs/organisms/CalendarDataGrid/useCalendarDataGrid.d.ts +2 -2
  23. package/dist/cjs/organisms/DataGrid/hooks/useDataGridOrganism.d.ts +3 -3
  24. package/dist/cjs/organisms/DataGrid/queries/useDataGridRows.d.ts +6 -5
  25. package/dist/cjs/organisms/DataGrid/types/types.d.ts +10 -0
  26. package/dist/esm/_virtual/index3.js +1 -1
  27. package/dist/esm/_virtual/index4.js +1 -1
  28. package/dist/esm/components/Buttons/TextButton.d.ts +1 -1
  29. package/dist/esm/components/Input/helpers.d.ts +2 -2
  30. package/dist/esm/containers/Container.d.ts +1 -1
  31. package/dist/esm/containers/Container.js +5 -5
  32. package/dist/esm/containers/Container.js.map +1 -1
  33. package/dist/esm/containers/ReplicatorContainer/ReplicatorContainer.d.ts +1 -1
  34. package/dist/esm/containers/ReplicatorContainer/ReplicatorContainer.js +1 -1
  35. package/dist/esm/containers/ReplicatorContainer/ReplicatorContainer.js.map +1 -1
  36. package/dist/esm/containers/ReplicatorContainer/ReplicatorFormSetup.d.ts +3 -3
  37. package/dist/esm/containers/ReplicatorContainer/ReplicatorFormSetup.js +1 -1
  38. package/dist/esm/containers/ReplicatorContainer/ReplicatorFormSetup.js.map +1 -1
  39. package/dist/esm/containers/hooks/useEmptyStateFiltering.d.ts +6 -6
  40. package/dist/esm/containers/hooks/useEmptyStateFiltering.js +1 -1
  41. package/dist/esm/containers/hooks/useEmptyStateFiltering.js.map +1 -1
  42. package/dist/esm/containers/hooks/useEmptyStateVisibility.d.ts +6 -6
  43. package/dist/esm/containers/styles.d.ts +1 -1
  44. package/dist/esm/containers/types/types.d.ts +2 -2
  45. package/dist/esm/contexts/ReplicatorRegistryContext/ReplicatorRegistryContextProvider.js +1 -1
  46. package/dist/esm/contexts/ReplicatorRegistryContext/ReplicatorRegistryContextProvider.js.map +1 -1
  47. package/dist/esm/contexts/ReplicatorRegistryContext/types.d.ts +1 -1
  48. package/dist/esm/contexts/WebpageContext/WebpageContext.d.ts +0 -5
  49. package/dist/esm/contexts/WebpageContext/WebpageContext.js.map +1 -1
  50. package/dist/esm/contexts/WebpageContext/WebpageContextProvider.d.ts +0 -9
  51. package/dist/esm/contexts/WebpageContext/WebpageContextProvider.js +1 -1
  52. package/dist/esm/contexts/WebpageContext/WebpageContextProvider.js.map +1 -1
  53. package/dist/esm/helpers/useDataResolution.js +1 -1
  54. package/dist/esm/helpers/useDataResolution.js.map +1 -1
  55. package/dist/esm/helpers/useWebpageQueryChains.d.ts +0 -4
  56. package/dist/esm/index.js +1 -1
  57. package/dist/esm/molecules/Button/Button.d.ts +1 -1
  58. package/dist/esm/molecules/Drawer/styles.d.ts +1 -1
  59. package/dist/esm/node_modules/@mui/material/esm/Accordion/Accordion.js +1 -1
  60. package/dist/esm/node_modules/@mui/material/esm/Menu/Menu.js +1 -1
  61. package/dist/esm/node_modules/@mui/material/esm/MenuList/MenuList.js +1 -1
  62. package/dist/esm/node_modules/@mui/material/esm/Select/SelectInput.js +1 -1
  63. package/dist/esm/node_modules/@mui/material/esm/SpeedDial/SpeedDial.js +1 -1
  64. package/dist/esm/node_modules/@mui/material/esm/Tabs/Tabs.js +1 -1
  65. package/dist/esm/node_modules/@mui/material/esm/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  66. package/dist/esm/node_modules/@mui/material/node_modules/react-is/index.js +1 -1
  67. package/dist/esm/node_modules/classnames/index.js +1 -1
  68. package/dist/esm/node_modules/react-slick/lib/arrows.js +1 -1
  69. package/dist/esm/node_modules/react-slick/lib/dots.js +1 -1
  70. package/dist/esm/node_modules/react-slick/lib/inner-slider.js +1 -1
  71. package/dist/esm/node_modules/react-slick/lib/track.js +1 -1
  72. package/dist/esm/organisms/Calendar/queries/useCalendarData.d.ts +3 -1
  73. package/dist/esm/organisms/Calendar/queries/useCalendarData.js +1 -1
  74. package/dist/esm/organisms/Calendar/queries/useCalendarData.js.map +1 -1
  75. package/dist/esm/organisms/Calendar/types.d.ts +19 -3
  76. package/dist/esm/organisms/Calendar/useCalendarOrganism.js +1 -1
  77. package/dist/esm/organisms/Calendar/useCalendarOrganism.js.map +1 -1
  78. package/dist/esm/organisms/CalendarDataGrid/queries/useCalendarDataGridData.d.ts +3 -4
  79. package/dist/esm/organisms/CalendarDataGrid/queries/useCalendarDataGridData.js +1 -1
  80. package/dist/esm/organisms/CalendarDataGrid/queries/useCalendarDataGridData.js.map +1 -1
  81. package/dist/esm/organisms/CalendarDataGrid/types.d.ts +11 -0
  82. package/dist/esm/organisms/CalendarDataGrid/useCalendarDataGrid.d.ts +2 -2
  83. package/dist/esm/organisms/CalendarDataGrid/useCalendarDataGrid.js +1 -1
  84. package/dist/esm/organisms/CalendarDataGrid/useCalendarDataGrid.js.map +1 -1
  85. package/dist/esm/organisms/DataGrid/hooks/useDataGridOrganism.d.ts +3 -3
  86. package/dist/esm/organisms/DataGrid/hooks/useDataGridOrganism.js +1 -1
  87. package/dist/esm/organisms/DataGrid/hooks/useDataGridOrganism.js.map +1 -1
  88. package/dist/esm/organisms/DataGrid/queries/useDataGridRows.d.ts +6 -5
  89. package/dist/esm/organisms/DataGrid/queries/useDataGridRows.js +1 -1
  90. package/dist/esm/organisms/DataGrid/queries/useDataGridRows.js.map +1 -1
  91. package/dist/esm/organisms/DataGrid/types/types.d.ts +10 -0
  92. package/package.json +1 -1
@@ -10,7 +10,7 @@ export type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'onClick' | 'ch
10
10
  textColor: string;
11
11
  }>;
12
12
  export declare const BaseTextButton: React.FC<TextButtonProps & React.AnchorHTMLAttributes<HTMLAnchorElement>>;
13
- export declare const TextButton: import("@emotion/styled").StyledComponent<Pick<BaseButtonProps, "children" | "size" | "disabled" | "onClick" | "colorTheme"> & Partial<{
13
+ export declare const TextButton: import("@emotion/styled").StyledComponent<Pick<BaseButtonProps, "children" | "onClick" | "disabled" | "size" | "colorTheme"> & Partial<{
14
14
  buttonLink: string;
15
15
  elementId: string;
16
16
  $styles: StylesType;
@@ -10,7 +10,7 @@ export type MaskConfig = {
10
10
  };
11
11
  export declare const getSpecificInputProps: (type: string) => {
12
12
  type?: HTMLInputTypeAttribute | undefined;
13
- inputMode?: "search" | "text" | "email" | "none" | "tel" | "url" | "numeric" | "decimal" | undefined;
13
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
14
14
  };
15
15
  export declare const getMaskInputProps: (type?: string, config?: MaskConfig) => Pick<MaskedInputProps, 'pipe' | 'mask' | 'placeholder' | 'keepCharPositions'>;
16
16
  export declare const getInputIconColor: ({ isEditMode, isFocused, isError, disabled, }: Pick<Partial<{
@@ -38,6 +38,6 @@ export declare const getInputIconColor: ({ isEditMode, isFocused, isError, disab
38
38
  }>;
39
39
  config?: MaskConfig | undefined;
40
40
  state: import("containers").FormStateType;
41
- }>, "disabled" | "isEditMode" | "isError"> & {
41
+ }>, "disabled" | "isError" | "isEditMode"> & {
42
42
  isFocused: boolean;
43
43
  }) => ThemeColors;
@@ -5,7 +5,7 @@ import { StyleVariantConfig } from './ReplicatorContainer/types';
5
5
  export declare const Container: FC<PropsWithChildren<ContainerProps & {
6
6
  id: string;
7
7
  nestedPathSegments?: PathSegment[];
8
- replicatorFieldId?: DmfId;
8
+ targetRwoId?: DmfId;
9
9
  sourceDataPointerId?: string;
10
10
  parentStyleVariantConfig?: StyleVariantConfig;
11
11
  parentContainerWithVariantsId?: string;
@@ -21,7 +21,7 @@ export declare const getVariantContainerStyles: (config: VariantContainerConfig
21
21
  export type ReplicatorContainerProps = {
22
22
  /** The actual container UUID (passed from parent Container) for variant lookup */
23
23
  containerId?: string;
24
- replicatorFieldId?: DmfId;
24
+ targetRwoId?: DmfId;
25
25
  /** Points to specific query result from webpage context */
26
26
  sourceDataPointerId?: string;
27
27
  nestedPathSegments?: PathSegment[];
@@ -3,8 +3,8 @@ import { PathSegment } from '../../contexts/ContainerRuntimeContext/types';
3
3
  /** Default maximum number of replicator instances to prevent performance issues */
4
4
  export declare const DEFAULT_MAX_REPLICATOR_INSTANCES = 50;
5
5
  export interface ReplicatorFormSetupProps {
6
- /** The replicatorFieldId (pmiObjectId) - used as the field array name */
7
- replicatorFieldId: string;
6
+ /** The targetRwoId (pmiObjectId) - used as the field array name */
7
+ targetRwoId: string;
8
8
  /** Current nested path segments from parent containers */
9
9
  nestedPathSegments?: PathSegment[];
10
10
  /** Minimum instances allowed (defaults to 1 to ensure at least one instance is shown) */
@@ -36,7 +36,7 @@ export interface ReplicatorFormSetupProps {
36
36
  * @usage
37
37
  * Wrap a replicator Container in form organisms:
38
38
  * ```tsx
39
- * <ReplicatorFormSetup replicatorFieldId="visits">
39
+ * <ReplicatorFormSetup targetRwoId="visits">
40
40
  * <Container type="replicator" ... />
41
41
  * </ReplicatorFormSetup>
42
42
  * ```
@@ -5,14 +5,14 @@ import { ContainerComponentProps, Molecule } from '../types/types';
5
5
  */
6
6
  export declare const isEmptyStateContainer: (item: ContainerComponentProps | Molecule) => boolean;
7
7
  /**
8
- * Gets the replicatorFieldId from a container (works for any container type).
8
+ * Gets the targetRwoId from a container (works for any container type).
9
9
  */
10
10
  export declare const getReplicatorFieldId: (item: ContainerComponentProps | Molecule) => DmfId | undefined;
11
11
  /**
12
12
  * Checks if a specific field is empty at the given data scope.
13
13
  * Handles:
14
14
  * 1. scope[fieldId] - nested field lookup
15
- * 2. scope itself IS the array (when at root and pmiObjectId === replicatorFieldId)
15
+ * 2. scope itself IS the array (when at root and pmiObjectId === targetRwoId)
16
16
  */
17
17
  export declare const isFieldEmptyAtScope: (scope: Record<string, unknown> | unknown[] | undefined, fieldId: DmfId) => boolean;
18
18
  export type UseEmptyStateFilteringParams = {
@@ -35,11 +35,11 @@ export type EmptyStateFilterResult = {
35
35
  */
36
36
  filteredItems: (ContainerComponentProps | Molecule)[];
37
37
  /**
38
- * Set of replicatorFieldIds that have their empty state currently showing
38
+ * Set of targetRwoIds that have their empty state currently showing
39
39
  */
40
40
  showingEmptyStateForFields: Set<string>;
41
41
  /**
42
- * Whether organism-level empty state is showing (no replicatorFieldId)
42
+ * Whether organism-level empty state is showing (no targetRwoId)
43
43
  */
44
44
  showOrganismLevelEmptyState: boolean;
45
45
  };
@@ -51,8 +51,8 @@ export type EmptyStateFilterResult = {
51
51
  * When an empty_state is visible, ALL its siblings are hidden.
52
52
  *
53
53
  * ## Visibility Logic
54
- * - **With replicatorFieldId**: Shows when that field is empty at current data scope
55
- * - **Without replicatorFieldId**: Shows when organism-level data is empty (isEmptyDataState)
54
+ * - **With targetRwoId**: Shows when that field is empty at current data scope
55
+ * - **Without targetRwoId**: Shows when organism-level data is empty (isEmptyDataState)
56
56
  *
57
57
  * ## Design Mode
58
58
  * - All containers visible for editing (no filtering)
@@ -1,10 +1,10 @@
1
1
  import { DmfId, PathSegment } from '../../contexts/ContainerRuntimeContext/types';
2
2
  export type EmptyStateConfig = {
3
3
  /**
4
- * The replicatorFieldId this empty state is associated with.
4
+ * The targetRwoId this empty state is associated with.
5
5
  * If undefined, applies to entire organism data.
6
6
  */
7
- replicatorFieldId?: DmfId;
7
+ targetRwoId?: DmfId;
8
8
  /**
9
9
  * Current nested path segments from the container context.
10
10
  */
@@ -14,10 +14,10 @@ export type EmptyStateConfig = {
14
14
  * Hook to determine if an empty_state container should be visible.
15
15
  *
16
16
  * Logic:
17
- * - If replicatorFieldId is NOT set → check if entire organism data is empty
18
- * - If replicatorFieldId IS set → check if that specific array field is empty at current path
17
+ * - If targetRwoId is NOT set → check if entire organism data is empty
18
+ * - If targetRwoId IS set → check if that specific array field is empty at current path
19
19
  *
20
- * @param config - Configuration with replicatorFieldId and nestedPathSegments
20
+ * @param config - Configuration with targetRwoId and nestedPathSegments
21
21
  * @returns Object with visibility info and preview state management
22
22
  */
23
23
  export declare const useEmptyStateVisibility: (config: EmptyStateConfig) => {
@@ -34,4 +34,4 @@ export declare const useEmptyStateVisibility: (config: EmptyStateConfig) => {
34
34
  * Check if a specific array field is empty at the given path.
35
35
  * Non-hook version for use outside React components.
36
36
  */
37
- export declare const isArrayFieldEmpty: (dataRoot: Record<string, unknown>, nestedPathSegments: PathSegment[], replicatorFieldId: DmfId) => boolean;
37
+ export declare const isArrayFieldEmpty: (dataRoot: Record<string, unknown>, nestedPathSegments: PathSegment[], targetRwoId: DmfId) => boolean;
@@ -33,7 +33,7 @@ export declare const ContainerWrapper: import("@emotion/styled").StyledComponent
33
33
  activeOrganismIds: string[];
34
34
  padding: import("containers/types/types").Padding;
35
35
  enableBackgroundImage: boolean;
36
- replicatorFieldId?: string | undefined;
36
+ targetRwoId?: string | undefined;
37
37
  sourceDataPointerId?: string | undefined;
38
38
  minInstances?: number | undefined;
39
39
  maxInstances?: number | undefined;
@@ -81,7 +81,7 @@ export type ContainerPropsType = Partial<{
81
81
  activeOrganismIds: string[];
82
82
  padding: Padding;
83
83
  enableBackgroundImage: boolean;
84
- replicatorFieldId?: DmfId;
84
+ targetRwoId?: DmfId;
85
85
  sourceDataPointerId?: string;
86
86
  minInstances?: number;
87
87
  maxInstances?: number;
@@ -109,7 +109,7 @@ export type ContainerComponentProps = {
109
109
  id: string;
110
110
  instance: 'container';
111
111
  type: ContainerType;
112
- replicatorFieldId?: DmfId;
112
+ targetRwoId?: DmfId;
113
113
  items: (ContainerComponentProps | Molecule)[];
114
114
  config: Partial<{
115
115
  wide: AdditionalContainerProps;
@@ -1,6 +1,6 @@
1
1
  import { UseFieldArrayReturn } from 'react-hook-form';
2
2
  export interface ReplicatorRegistryEntry {
3
- replicatorFieldId: string;
3
+ targetRwoId: string;
4
4
  fieldArrayName: string;
5
5
  fieldArrayMethods: UseFieldArrayReturn;
6
6
  minInstances: number;
@@ -124,10 +124,5 @@ export type WebpageContextType = {
124
124
  * Pre-fetched by Brand App Boilerplate and shared across the page
125
125
  */
126
126
  queryResults?: Record<string, QueryResult>;
127
- /**
128
- * Volatile filter params (HLD-aligned webpage-scoped filter state)
129
- * FE-only state that triggers query chain refetch when changed
130
- */
131
- filterParams?: Record<string, unknown>;
132
127
  };
133
128
  export declare const WebpageContext: React.Context<WebpageContextType | undefined>;
@@ -14,21 +14,12 @@ export interface WebpageContextProviderProps extends Omit<WebpageContextType, 'd
14
14
  * - multi_record data: placed under query chain ID keys
15
15
  */
16
16
  webpageData?: Record<string, unknown>;
17
- /**
18
- * Volatile filter params (FE-only, not persisted)
19
- * HLD-aligned: webpage-scoped filter state
20
- */
21
- filterParams?: Record<string, unknown>;
22
17
  /**
23
18
  * Callback invoked when molecules publish context values.
24
19
  * Used to notify parent components (e.g., CortexProvider) of dynamic context changes.
25
20
  * @param context - The full dynamicContext object with all published values
26
21
  */
27
22
  onDynamicContextChange?: (context: Record<string, unknown>) => void;
28
- /**
29
- * Callback invoked when filter params change (for Brand App coordination)
30
- */
31
- onFilterParamsChange?: (filterParams: Record<string, unknown>) => void;
32
23
  /**
33
24
  * Callback invoked when query chains need to be executed
34
25
  */
@@ -8,10 +8,6 @@ import { QueryResult } from '../contexts/WebpageContext/WebpageContext';
8
8
  export interface UseWebpageQueryChainsReturn {
9
9
  /** Query chain results by queryChainId */
10
10
  queryResults: Record<string, QueryResult>;
11
- /** Volatile filter state (FE-only, not persisted) */
12
- filterParams: Record<string, unknown>;
13
- /** Update filter params (volatile, triggers query chain refetch) */
14
- setFilterParams: (updates: Record<string, unknown>) => Promise<void>;
15
11
  /** Execute specific query chains with options */
16
12
  executeQueryChains: (queryChainIds: string[], options?: ExecuteQueryChainsOptions) => Promise<void>;
17
13
  }