@zealicsolutions/web-ui 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/containers/ReplicatorContainer/ReplicatorContainer.d.ts +1 -1
- package/dist/cjs/containers/ReplicatorContainer/types.d.ts +9 -3
- package/dist/cjs/index.js +11 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/_virtual/index3.js +1 -1
- package/dist/esm/_virtual/index4.js +1 -1
- package/dist/esm/containers/Container.js +10 -10
- package/dist/esm/containers/Container.js.map +1 -1
- package/dist/esm/containers/ReplicatorContainer/ReplicatorContainer.d.ts +1 -1
- package/dist/esm/containers/ReplicatorContainer/ReplicatorContainer.js +1 -1
- package/dist/esm/containers/ReplicatorContainer/ReplicatorContainer.js.map +1 -1
- package/dist/esm/containers/ReplicatorContainer/types.d.ts +9 -3
- package/dist/esm/node_modules/@mui/material/esm/Accordion/Accordion.js +1 -1
- package/dist/esm/node_modules/@mui/material/esm/Menu/Menu.js +1 -1
- package/dist/esm/node_modules/@mui/material/esm/MenuList/MenuList.js +1 -1
- package/dist/esm/node_modules/@mui/material/esm/Select/SelectInput.js +1 -1
- package/dist/esm/node_modules/@mui/material/esm/SpeedDial/SpeedDial.js +1 -1
- package/dist/esm/node_modules/@mui/material/esm/Tabs/Tabs.js +1 -1
- package/dist/esm/node_modules/@mui/material/esm/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/dist/esm/node_modules/@mui/material/node_modules/react-is/index.js +1 -1
- package/dist/esm/node_modules/classnames/index.js +1 -1
- package/dist/esm/node_modules/react-slick/lib/arrows.js +1 -1
- package/dist/esm/node_modules/react-slick/lib/dots.js +1 -1
- package/dist/esm/node_modules/react-slick/lib/inner-slider.js +1 -1
- package/dist/esm/node_modules/react-slick/lib/track.js +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { StyleVariantConfig, VariantContainerConfig, VariantContainerProperties
|
|
|
5
5
|
* Resolve the active variant from scoped data using the variant field configuration.
|
|
6
6
|
*
|
|
7
7
|
* @param styleVariantConfig - The variant configuration from container properties
|
|
8
|
-
* @param scopedData - The current item's data keyed by DMF ID
|
|
8
|
+
* @param scopedData - The current item's data keyed by DMF ID or variable name
|
|
9
9
|
* @returns The variant key (enum value) or null if not resolvable
|
|
10
10
|
*/
|
|
11
11
|
export declare const resolveActiveVariant: (styleVariantConfig: StyleVariantConfig | undefined, scopedData: Record<string, unknown> | undefined) => string | null;
|
|
@@ -12,12 +12,18 @@
|
|
|
12
12
|
export type StyleVariantConfig = {
|
|
13
13
|
/** Whether style variants are enabled for this container */
|
|
14
14
|
enabled: boolean;
|
|
15
|
-
/**
|
|
16
|
-
|
|
15
|
+
/** Nature of the field: 'data_model' for DMF field, 'variable' for variable name */
|
|
16
|
+
nature?: 'data_model' | 'variable';
|
|
17
|
+
/** DMF ID of the enum field that determines which variant to apply (when nature is 'data_model') */
|
|
18
|
+
sourceDataModelFieldId?: string;
|
|
19
|
+
/** Variable name (when nature is 'variable') */
|
|
20
|
+
variableName?: string;
|
|
21
|
+
/** Description for the variant field */
|
|
22
|
+
description?: string;
|
|
17
23
|
/** Cached picklist options for the variant field (used by designer tree view) */
|
|
18
24
|
picklistOptions?: Array<{
|
|
19
25
|
id: string;
|
|
20
|
-
|
|
26
|
+
value: string;
|
|
21
27
|
}>;
|
|
22
28
|
};
|
|
23
29
|
/**
|