udp-react-enterprise-component-library 26.9.0 → 26.10.0-beta.0

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.
@@ -0,0 +1,22 @@
1
+ //#region src/udp/fileImportMapping/fileImportProperties.ts
2
+ /**
3
+ * The File step's form values → the layout's `properties`.
4
+ *
5
+ * A file type setting with `options` is a dropdown, whose form value is the
6
+ * selected option (`{ name, value }`); its option's `value` is saved. A setting
7
+ * without `options` is a text box, whose form value is the typed text; it is
8
+ * saved as-is. An untouched setting is not in the form values, so it is not
9
+ * saved.
10
+ */
11
+ const toFileImportProperties = (values) => {
12
+ const properties = {};
13
+ Object.keys(values).forEach((propKey) => {
14
+ const entry = values[propKey];
15
+ properties[propKey] = entry !== null && typeof entry === "object" && "value" in entry ? entry.value : entry;
16
+ });
17
+ return properties;
18
+ };
19
+ //#endregion
20
+ export { toFileImportProperties };
21
+
22
+ //# sourceMappingURL=fileImportProperties.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileImportProperties.mjs","names":["toFileImportProperties","values","Record","properties","Object","keys","forEach","propKey","entry","value"],"sources":["../../../src/udp/fileImportMapping/fileImportProperties.ts"],"sourcesContent":["/**\n * The File step's form values → the layout's `properties`.\n *\n * A file type setting with `options` is a dropdown, whose form value is the\n * selected option (`{ name, value }`); its option's `value` is saved. A setting\n * without `options` is a text box, whose form value is the typed text; it is\n * saved as-is. An untouched setting is not in the form values, so it is not\n * saved.\n */\nexport const toFileImportProperties = (\n values: Record<string, unknown>\n): Record<string, unknown> => {\n const properties: Record<string, unknown> = {};\n Object.keys(values).forEach((propKey) => {\n const entry = values[propKey];\n properties[propKey] =\n entry !== null && typeof entry === 'object' && 'value' in entry\n ? (entry as { value: unknown }).value\n : entry;\n });\n return properties;\n};\n"],"mappings":";;;;;;;;;;AASA,MAAaA,0BACXC,WAC4B;CAC5B,MAAME,aAAsC,EAAE;AAC9CC,QAAOC,KAAKJ,OAAO,CAACK,SAASC,YAAY;EACvC,MAAMC,QAAQP,OAAOM;AACrBJ,aAAWI,WACTC,UAAU,QAAQ,OAAOA,UAAU,YAAY,WAAWA,QACrDA,MAA6BC,QAC9BD;GACN;AACF,QAAOL"}
@@ -1,8 +1,8 @@
1
1
  import { GridExcelStyleEnums } from '../../enums/unitySystemEnums';
2
2
  export declare const useDateStringColumnDef: (includeTime?: boolean, timeZone?: any, includeTimeZoneOffset?: boolean) => {
3
- filter?: undefined;
4
3
  valueFormatter?: undefined;
5
4
  cellClass?: undefined;
5
+ filter?: undefined;
6
6
  filterParams?: undefined;
7
7
  } | {
8
8
  valueFormatter: (params: any) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "udp-react-enterprise-component-library",
3
- "version": "26.9.0",
3
+ "version": "26.10.0-beta.0",
4
4
  "description": "React-based UI component library implementing Fluent UI design for Univerus internal projects",
5
5
  "author": "Univerus",
6
6
  "license": "MIT",
@@ -1517,6 +1517,10 @@
1517
1517
  "types": "./dist/udp/fileImportMapping/FileImportMappingWizard.d.ts",
1518
1518
  "default": "./dist/udp/fileImportMapping/FileImportMappingWizard.mjs"
1519
1519
  },
1520
+ "./udp/fileImportMapping/fileImportProperties": {
1521
+ "types": "./dist/udp/fileImportMapping/fileImportProperties.d.ts",
1522
+ "default": "./dist/udp/fileImportMapping/fileImportProperties.mjs"
1523
+ },
1520
1524
  "./udp/fileImportMapping/fileUtils": {
1521
1525
  "types": "./dist/udp/fileImportMapping/fileUtils.d.ts",
1522
1526
  "default": "./dist/udp/fileImportMapping/fileUtils.mjs"