@pnp/spfx-controls-react 3.25.0-beta.2833053 → 3.25.0-beta.2833059
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/CHANGELOG.json +3 -1
- package/CHANGELOG.md +4 -0
- package/jest-output/JUnit.xml +91 -91
- package/lib/common/telemetry/version.js +1 -1
- package/lib/controls/dynamicForm/DynamicForm.d.ts.map +1 -1
- package/lib/controls/dynamicForm/DynamicForm.js +50 -22
- package/lib/controls/dynamicForm/DynamicForm.js.map +1 -1
- package/lib/controls/dynamicForm/dynamicField/DynamicField.d.ts.map +1 -1
- package/lib/controls/dynamicForm/dynamicField/DynamicField.js +16 -3
- package/lib/controls/dynamicForm/dynamicField/DynamicField.js.map +1 -1
- package/lib/controls/dynamicForm/dynamicField/DynamicField.styles.d.ts.map +1 -1
- package/lib/controls/dynamicForm/dynamicField/DynamicField.styles.js +17 -0
- package/lib/controls/dynamicForm/dynamicField/DynamicField.styles.js.map +1 -1
- package/lib/controls/dynamicForm/dynamicField/IDynamicFieldProps.d.ts +7 -0
- package/lib/controls/dynamicForm/dynamicField/IDynamicFieldProps.d.ts.map +1 -1
- package/lib/services/ISPService.d.ts +26 -0
- package/lib/services/ISPService.d.ts.map +1 -1
- package/lib/services/SPService.d.ts +9 -1
- package/lib/services/SPService.d.ts.map +1 -1
- package/lib/services/SPService.js +34 -0
- package/lib/services/SPService.js.map +1 -1
- package/lib/services/SPServiceMock.d.ts +2 -1
- package/lib/services/SPServiceMock.d.ts.map +1 -1
- package/lib/services/SPServiceMock.js +3 -0
- package/lib/services/SPServiceMock.js.map +1 -1
- package/lib-commonjs/common/telemetry/version.js +1 -1
- package/lib-commonjs/controls/dynamicForm/DynamicForm.js +50 -22
- package/lib-commonjs/controls/dynamicForm/DynamicForm.js.map +1 -1
- package/lib-commonjs/controls/dynamicForm/dynamicField/DynamicField.js +16 -3
- package/lib-commonjs/controls/dynamicForm/dynamicField/DynamicField.js.map +1 -1
- package/lib-commonjs/controls/dynamicForm/dynamicField/DynamicField.styles.js +17 -0
- package/lib-commonjs/controls/dynamicForm/dynamicField/DynamicField.styles.js.map +1 -1
- package/lib-commonjs/services/SPService.js +34 -0
- package/lib-commonjs/services/SPService.js.map +1 -1
- package/lib-commonjs/services/SPServiceMock.js +3 -0
- package/lib-commonjs/services/SPServiceMock.js.map +1 -1
- package/package.json +1 -1
- package/release/manifests/45165954-80f9-44c1-9967-cd38ae92a33b.manifest.json +1 -1
- package/release/manifests/57ebd944-98ed-43f9-b722-e959d6dac6ad.manifest.json +1 -1
- package/release/manifests/f9c6b930-8d5d-4550-bfd9-ed5f6ca443a8.manifest.json +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
"version": "3.25.0",
|
|
5
5
|
"changes": {
|
|
6
6
|
"new": [],
|
|
7
|
-
"enhancements": [
|
|
7
|
+
"enhancements": [
|
|
8
|
+
"`DynamicForm`: Multiline Text Column (with Append changes) not showing comment history (#1556)[https://github.com/pnp/sp-dev-fx-controls-react/issues/1556]"
|
|
9
|
+
],
|
|
8
10
|
"fixes":[
|
|
9
11
|
"`Calendar` - Remove the dependency of @nuvemerudita/react-controls (deprecated library) [#2119](https://github.com/pnp/sp-dev-fx-controls-react/pull/2119)",
|
|
10
12
|
"Calendar not showing items like #2025, but also completely crashes when changing views - AEST Timezone (GMT+10) [#2115](https://github.com/pnp/sp-dev-fx-controls-react/issues/2115)",
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## 3.25.0
|
|
4
4
|
|
|
5
|
+
### Enhancements
|
|
6
|
+
|
|
7
|
+
- `DynamicForm`: Multiline Text Column (with Append changes) not showing comment history (#1556)[https://github.com/pnp/sp-dev-fx-controls-react/issues/1556]
|
|
8
|
+
|
|
5
9
|
### Fixes
|
|
6
10
|
|
|
7
11
|
- `Calendar` - Remove the dependency of @nuvemerudita/react-controls (deprecated library) [#2119](https://github.com/pnp/sp-dev-fx-controls-react/pull/2119)
|
package/jest-output/JUnit.xml
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuites name="jest tests" tests="85" failures="0" errors="0" time="7.
|
|
3
|
-
<testsuite name="<
|
|
2
|
+
<testsuites name="jest tests" tests="85" failures="0" errors="0" time="7.163">
|
|
3
|
+
<testsuite name="<AccessibleChartTable />" errors="0" failures="0" skipped="0" timestamp="2026-06-28T17:45:04" time="1.751" tests="13">
|
|
4
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should render only one table (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.083">
|
|
5
|
+
</testcase>
|
|
6
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should render with a custom className if one is provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.01">
|
|
7
|
+
</testcase>
|
|
8
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should render a caption if one is provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.011">
|
|
9
|
+
</testcase>
|
|
10
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should render a caption if no caption is provided but a title is available (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.01">
|
|
11
|
+
</testcase>
|
|
12
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should prioritize the caption if both caption and title are provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.011">
|
|
13
|
+
</testcase>
|
|
14
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should render the same number of rows as there are data elements (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.012">
|
|
15
|
+
</testcase>
|
|
16
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should render a table matching the data provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.034">
|
|
17
|
+
</testcase>
|
|
18
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should include a summary in the caption if one is provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.016">
|
|
19
|
+
</testcase>
|
|
20
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should include a summary in the caption if one is provided -- even if no title is provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.015">
|
|
21
|
+
</testcase>
|
|
22
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should do nothing if there are no data labels (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.006">
|
|
23
|
+
</testcase>
|
|
24
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should render an X and Y label if axis labels are provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.026">
|
|
25
|
+
</testcase>
|
|
26
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should render multi dataset labels (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.04">
|
|
27
|
+
</testcase>
|
|
28
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should render a multi dataset table matching the data provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.032">
|
|
29
|
+
</testcase>
|
|
30
|
+
</testsuite>
|
|
31
|
+
<testsuite name="<ComboBoxListItemPicker />" errors="0" failures="0" skipped="7" timestamp="2026-06-28T17:45:04" time="1.874" tests="7">
|
|
4
32
|
<testcase classname="<ComboBoxListItemPicker /> > " name="Should render initial data (lib-commonjs/controls/listItemPicker/ComboBoxListItemPicker.test.js)" time="0">
|
|
5
33
|
<skipped/>
|
|
6
34
|
</testcase>
|
|
@@ -23,178 +51,150 @@
|
|
|
23
51
|
<skipped/>
|
|
24
52
|
</testcase>
|
|
25
53
|
</testsuite>
|
|
26
|
-
<testsuite name="<
|
|
27
|
-
<testcase classname="<
|
|
28
|
-
</testcase>
|
|
29
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should render with a custom className if one is provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.008">
|
|
30
|
-
</testcase>
|
|
31
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should render a caption if one is provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.011">
|
|
32
|
-
</testcase>
|
|
33
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should render a caption if no caption is provided but a title is available (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.011">
|
|
34
|
-
</testcase>
|
|
35
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should prioritize the caption if both caption and title are provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.01">
|
|
36
|
-
</testcase>
|
|
37
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should render the same number of rows as there are data elements (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.015">
|
|
38
|
-
</testcase>
|
|
39
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should render a table matching the data provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.027">
|
|
40
|
-
</testcase>
|
|
41
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should include a summary in the caption if one is provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.019">
|
|
42
|
-
</testcase>
|
|
43
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should include a summary in the caption if one is provided -- even if no title is provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.032">
|
|
44
|
-
</testcase>
|
|
45
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should do nothing if there are no data labels (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.005">
|
|
46
|
-
</testcase>
|
|
47
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should render an X and Y label if axis labels are provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.02">
|
|
48
|
-
</testcase>
|
|
49
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should render multi dataset labels (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.037">
|
|
50
|
-
</testcase>
|
|
51
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should render a multi dataset table matching the data provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.024">
|
|
52
|
-
</testcase>
|
|
53
|
-
</testsuite>
|
|
54
|
-
<testsuite name="<FileTypeIcon />" errors="0" failures="0" skipped="0" timestamp="2026-06-28T17:42:39" time="1.833" tests="21">
|
|
55
|
-
<testcase classname="<FileTypeIcon /> > " name="Font icon test with application (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.151">
|
|
54
|
+
<testsuite name="<FileTypeIcon />" errors="0" failures="0" skipped="0" timestamp="2026-06-28T17:45:04" time="1.959" tests="21">
|
|
55
|
+
<testcase classname="<FileTypeIcon /> > " name="Font icon test with application (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.209">
|
|
56
56
|
</testcase>
|
|
57
|
-
<testcase classname="<FileTypeIcon /> > " name="Font icon test with path (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
57
|
+
<testcase classname="<FileTypeIcon /> > " name="Font icon test with path (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.01">
|
|
58
58
|
</testcase>
|
|
59
|
-
<testcase classname="<FileTypeIcon /> > " name="Font icon test with path that contains querystring params (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
59
|
+
<testcase classname="<FileTypeIcon /> > " name="Font icon test with path that contains querystring params (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.008">
|
|
60
60
|
</testcase>
|
|
61
61
|
<testcase classname="<FileTypeIcon /> > " name="Font icon test with path of unknown extension (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.007">
|
|
62
62
|
</testcase>
|
|
63
|
-
<testcase classname="<FileTypeIcon /> > " name="Font icon test without application or path, should render the generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
63
|
+
<testcase classname="<FileTypeIcon /> > " name="Font icon test without application or path, should render the generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.008">
|
|
64
64
|
</testcase>
|
|
65
|
-
<testcase classname="<FileTypeIcon /> > " name="Font icon test with both the application and path, should take the path into account (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
65
|
+
<testcase classname="<FileTypeIcon /> > " name="Font icon test with both the application and path, should take the path into account (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.013">
|
|
66
66
|
</testcase>
|
|
67
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon test with application (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
67
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon test with application (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.021">
|
|
68
68
|
</testcase>
|
|
69
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon test with path (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
69
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon test with path (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.007">
|
|
70
70
|
</testcase>
|
|
71
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon test with path that contains querystring params (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
71
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon test with path that contains querystring params (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.01">
|
|
72
72
|
</testcase>
|
|
73
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon test with path of unknown extension (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
73
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon test with path of unknown extension (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.018">
|
|
74
74
|
</testcase>
|
|
75
75
|
<testcase classname="<FileTypeIcon /> > " name="Image icon test without application or path, should render the generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.004">
|
|
76
76
|
</testcase>
|
|
77
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon test with both application and path, should take the path into account (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
77
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon test with both application and path, should take the path into account (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.004">
|
|
78
78
|
</testcase>
|
|
79
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon size SMALL test (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
79
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon size SMALL test (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.004">
|
|
80
80
|
</testcase>
|
|
81
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon size MEDIUM test (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
81
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon size MEDIUM test (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.006">
|
|
82
82
|
</testcase>
|
|
83
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon size LARGE test (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
83
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon size LARGE test (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.005">
|
|
84
84
|
</testcase>
|
|
85
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon size SMALL test for generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
85
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon size SMALL test for generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.009">
|
|
86
86
|
</testcase>
|
|
87
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon size MEDIUM test for generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
87
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon size MEDIUM test for generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.005">
|
|
88
88
|
</testcase>
|
|
89
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon size LARGE test for generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
89
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon size LARGE test for generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.008">
|
|
90
90
|
</testcase>
|
|
91
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon size test with unkown size (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
91
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon size test with unkown size (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.007">
|
|
92
92
|
</testcase>
|
|
93
93
|
<testcase classname="<FileTypeIcon /> > " name="Image icon size test with unkown size for generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.005">
|
|
94
94
|
</testcase>
|
|
95
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon test with unkown application (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
95
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon test with unkown application (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.003">
|
|
96
96
|
</testcase>
|
|
97
97
|
</testsuite>
|
|
98
|
-
<testsuite name="<WebPartTitle />" errors="0" failures="0" skipped="0" timestamp="2026-06-28T17:
|
|
99
|
-
<testcase classname="<WebPartTitle /> > " name="Check the read mode of the component (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.
|
|
98
|
+
<testsuite name="<WebPartTitle />" errors="0" failures="0" skipped="0" timestamp="2026-06-28T17:45:06" time="1.004" tests="8">
|
|
99
|
+
<testcase classname="<WebPartTitle /> > " name="Check the read mode of the component (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.089">
|
|
100
100
|
</testcase>
|
|
101
101
|
<testcase classname="<WebPartTitle /> > " name="Check the edit mode of the component (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.008">
|
|
102
102
|
</testcase>
|
|
103
|
-
<testcase classname="<WebPartTitle /> > " name="Check class change (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.
|
|
103
|
+
<testcase classname="<WebPartTitle /> > " name="Check class change (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.006">
|
|
104
104
|
</testcase>
|
|
105
105
|
<testcase classname="<WebPartTitle /> > " name="Check if the change is processed correctly (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.008">
|
|
106
106
|
</testcase>
|
|
107
|
-
<testcase classname="<WebPartTitle /> > " name="Check more link is shown if function specified (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.
|
|
107
|
+
<testcase classname="<WebPartTitle /> > " name="Check more link is shown if function specified (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.01">
|
|
108
108
|
</testcase>
|
|
109
|
-
<testcase classname="<WebPartTitle /> > " name="Check more link is shown if children specified (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.
|
|
109
|
+
<testcase classname="<WebPartTitle /> > " name="Check more link is shown if children specified (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.008">
|
|
110
110
|
</testcase>
|
|
111
|
-
<testcase classname="<WebPartTitle /> > " name="Check more link is not shown otherwise (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.
|
|
111
|
+
<testcase classname="<WebPartTitle /> > " name="Check more link is not shown otherwise (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.012">
|
|
112
112
|
</testcase>
|
|
113
113
|
<testcase classname="<WebPartTitle /> > " name="Check theme's color is used if specified (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.005">
|
|
114
114
|
</testcase>
|
|
115
115
|
</testsuite>
|
|
116
|
-
<testsuite name="<ChartControl />" errors="0" failures="0" skipped="0" timestamp="2026-06-28T17:
|
|
117
|
-
<testcase classname="<ChartControl /> > " name="Check that an accessible table gets created by default (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.
|
|
116
|
+
<testsuite name="<ChartControl />" errors="0" failures="0" skipped="0" timestamp="2026-06-28T17:45:06" time="1.238" tests="12">
|
|
117
|
+
<testcase classname="<ChartControl /> > " name="Check that an accessible table gets created by default (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.126">
|
|
118
118
|
</testcase>
|
|
119
|
-
<testcase classname="<ChartControl /> > " name="Check that the accessible table accepts a custom classname (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.
|
|
119
|
+
<testcase classname="<ChartControl /> > " name="Check that the accessible table accepts a custom classname (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.015">
|
|
120
120
|
</testcase>
|
|
121
|
-
<testcase classname="<ChartControl /> > " name="Check that the accessible table doesn't get rendered if disabled (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.
|
|
121
|
+
<testcase classname="<ChartControl /> > " name="Check that the accessible table doesn't get rendered if disabled (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.015">
|
|
122
122
|
</testcase>
|
|
123
|
-
<testcase classname="<ChartControl /> > " name="Check that an accessible table gets created with the caption matching the title (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.
|
|
123
|
+
<testcase classname="<ChartControl /> > " name="Check that an accessible table gets created with the caption matching the title (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.029">
|
|
124
124
|
</testcase>
|
|
125
|
-
<testcase classname="<ChartControl /> > " name="Check that an accessible table gets created with a caption (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.
|
|
125
|
+
<testcase classname="<ChartControl /> > " name="Check that an accessible table gets created with a caption (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.018">
|
|
126
126
|
</testcase>
|
|
127
|
-
<testcase classname="<ChartControl /> > " name="Check that the accessible table has a number of rows matching the number of data elements (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.
|
|
127
|
+
<testcase classname="<ChartControl /> > " name="Check that the accessible table has a number of rows matching the number of data elements (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.019">
|
|
128
128
|
</testcase>
|
|
129
|
-
<testcase classname="<ChartControl /> > " name="Check that the accessible table has only one header row (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.
|
|
129
|
+
<testcase classname="<ChartControl /> > " name="Check that the accessible table has only one header row (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.013">
|
|
130
130
|
</testcase>
|
|
131
|
-
<testcase classname="<ChartControl /> > " name="Check that custom class gets rendered (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.
|
|
131
|
+
<testcase classname="<ChartControl /> > " name="Check that custom class gets rendered (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.019">
|
|
132
132
|
</testcase>
|
|
133
|
-
<testcase classname="<ChartControl /> > " name="Check that a canvas gets rendered (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.
|
|
133
|
+
<testcase classname="<ChartControl /> > " name="Check that a canvas gets rendered (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.022">
|
|
134
134
|
</testcase>
|
|
135
|
-
<testcase classname="<ChartControl /> > " name="Check that it doesn't crash if data is omitted (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.
|
|
135
|
+
<testcase classname="<ChartControl /> > " name="Check that it doesn't crash if data is omitted (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.008">
|
|
136
136
|
</testcase>
|
|
137
|
-
<testcase classname="<ChartControl /> > " name="Check that it applies a themed background by default (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.
|
|
137
|
+
<testcase classname="<ChartControl /> > " name="Check that it applies a themed background by default (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.009">
|
|
138
138
|
</testcase>
|
|
139
|
-
<testcase classname="<ChartControl /> > " name="Check that it disables themed background when useTheme is set to false (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.
|
|
139
|
+
<testcase classname="<ChartControl /> > " name="Check that it disables themed background when useTheme is set to false (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.008">
|
|
140
140
|
</testcase>
|
|
141
141
|
</testsuite>
|
|
142
|
-
<testsuite name="<ListView />" errors="0" failures="0" skipped="0" timestamp="2026-06-28T17:
|
|
143
|
-
<testcase classname="<ListView /> > " name="Test view with an empty array of items (lib-commonjs/controls/listView/ListView.test.js)" time="0.
|
|
142
|
+
<testsuite name="<ListView />" errors="0" failures="0" skipped="0" timestamp="2026-06-28T17:45:06" time="2.192" tests="8">
|
|
143
|
+
<testcase classname="<ListView /> > " name="Test view with an empty array of items (lib-commonjs/controls/listView/ListView.test.js)" time="0.229">
|
|
144
144
|
</testcase>
|
|
145
|
-
<testcase classname="<ListView /> > " name="Test view with two items (lib-commonjs/controls/listView/ListView.test.js)" time="0.
|
|
145
|
+
<testcase classname="<ListView /> > " name="Test view with two items (lib-commonjs/controls/listView/ListView.test.js)" time="0.08">
|
|
146
146
|
</testcase>
|
|
147
|
-
<testcase classname="<ListView /> > " name="Test view by updating the items porperty (lib-commonjs/controls/listView/ListView.test.js)" time="0.
|
|
147
|
+
<testcase classname="<ListView /> > " name="Test view by updating the items porperty (lib-commonjs/controls/listView/ListView.test.js)" time="0.083">
|
|
148
148
|
</testcase>
|
|
149
|
-
<testcase classname="<ListView /> > " name="Test view with iconFieldName (lib-commonjs/controls/listView/ListView.test.js)" time="0.
|
|
149
|
+
<testcase classname="<ListView /> > " name="Test view with iconFieldName (lib-commonjs/controls/listView/ListView.test.js)" time="0.186">
|
|
150
150
|
</testcase>
|
|
151
|
-
<testcase classname="<ListView /> > " name="Test view with iconFieldName render method (lib-commonjs/controls/listView/ListView.test.js)" time="0.
|
|
151
|
+
<testcase classname="<ListView /> > " name="Test view with iconFieldName render method (lib-commonjs/controls/listView/ListView.test.js)" time="0.072">
|
|
152
152
|
</testcase>
|
|
153
|
-
<testcase classname="<ListView /> > " name="Test view with _flattenItems function (lib-commonjs/controls/listView/ListView.test.js)" time="0.
|
|
153
|
+
<testcase classname="<ListView /> > " name="Test view with _flattenItems function (lib-commonjs/controls/listView/ListView.test.js)" time="0.057">
|
|
154
154
|
</testcase>
|
|
155
|
-
<testcase classname="<ListView /> > " name="Test view with viewFields (lib-commonjs/controls/listView/ListView.test.js)" time="0.
|
|
155
|
+
<testcase classname="<ListView /> > " name="Test view with viewFields (lib-commonjs/controls/listView/ListView.test.js)" time="0.08">
|
|
156
156
|
</testcase>
|
|
157
|
-
<testcase classname="<ListView /> > " name="Test out the sorting method (lib-commonjs/controls/listView/ListView.test.js)" time="0.
|
|
157
|
+
<testcase classname="<ListView /> > " name="Test out the sorting method (lib-commonjs/controls/listView/ListView.test.js)" time="0.14">
|
|
158
158
|
</testcase>
|
|
159
159
|
</testsuite>
|
|
160
|
-
<testsuite name="<GridLayout />" errors="0" failures="0" skipped="0" timestamp="2026-06-28T17:
|
|
161
|
-
<testcase classname="<GridLayout /> > " name="Test grid layout (lib-commonjs/controls/gridLayout/GridLayout.test.js)" time="0.
|
|
160
|
+
<testsuite name="<GridLayout />" errors="0" failures="0" skipped="0" timestamp="2026-06-28T17:45:08" time="1.485" tests="1">
|
|
161
|
+
<testcase classname="<GridLayout /> > " name="Test grid layout (lib-commonjs/controls/gridLayout/GridLayout.test.js)" time="0.217">
|
|
162
162
|
</testcase>
|
|
163
163
|
</testsuite>
|
|
164
|
-
<testsuite name="PaletteGenerator" errors="0" failures="0" skipped="0" timestamp="2026-06-28T17:
|
|
165
|
-
<testcase classname="PaletteGenerator > " name="Should repeat palette if array is longer than number of available colors in repeating palette (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.
|
|
164
|
+
<testsuite name="PaletteGenerator" errors="0" failures="0" skipped="0" timestamp="2026-06-28T17:45:08" time="0.924" tests="8">
|
|
165
|
+
<testcase classname="PaletteGenerator > " name="Should repeat palette if array is longer than number of available colors in repeating palette (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.005">
|
|
166
166
|
</testcase>
|
|
167
167
|
<testcase classname="PaletteGenerator > " name="Should stretch palette if array is longer than number of available colors in non-repeating palette (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.001">
|
|
168
168
|
</testcase>
|
|
169
169
|
<testcase classname="PaletteGenerator > " name="Should return the right alpha palette length (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.004">
|
|
170
170
|
</testcase>
|
|
171
|
-
<testcase classname="PaletteGenerator > " name="Should repeat a shorter array of colors (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0">
|
|
171
|
+
<testcase classname="PaletteGenerator > " name="Should repeat a shorter array of colors (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.001">
|
|
172
172
|
</testcase>
|
|
173
173
|
<testcase classname="PaletteGenerator > " name="Should not repeat colors in a gradient (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.001">
|
|
174
174
|
</testcase>
|
|
175
|
-
<testcase classname="PaletteGenerator > " name="Should return an array of alpha value for a given array of colors (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0
|
|
175
|
+
<testcase classname="PaletteGenerator > " name="Should return an array of alpha value for a given array of colors (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0">
|
|
176
176
|
</testcase>
|
|
177
|
-
<testcase classname="PaletteGenerator > " name="Should return a single alpha value for a single color (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0">
|
|
177
|
+
<testcase classname="PaletteGenerator > " name="Should return a single alpha value for a single color (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.001">
|
|
178
178
|
</testcase>
|
|
179
|
-
<testcase classname="PaletteGenerator > " name="Should return a single alpha value for any valid type of color value (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.
|
|
179
|
+
<testcase classname="PaletteGenerator > " name="Should return a single alpha value for any valid type of color value (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.002">
|
|
180
180
|
</testcase>
|
|
181
181
|
</testsuite>
|
|
182
|
-
<testsuite name="ControlsTestWebPart" errors="0" failures="0" skipped="0" timestamp="2026-06-28T17:
|
|
182
|
+
<testsuite name="ControlsTestWebPart" errors="0" failures="0" skipped="0" timestamp="2026-06-28T17:45:09" time="0.665" tests="1">
|
|
183
183
|
<testcase classname="ControlsTestWebPart > " name="should do something (lib-commonjs/webparts/controlsTest/test/ControlsTestWebPart.test.js)" time="0.001">
|
|
184
184
|
</testcase>
|
|
185
185
|
</testsuite>
|
|
186
|
-
<testsuite name="<Placeholder />" errors="0" failures="0" skipped="0" timestamp="2026-06-28T17:
|
|
187
|
-
<testcase classname="<Placeholder /> > " name="Test that placeholder renders (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.
|
|
186
|
+
<testsuite name="<Placeholder />" errors="0" failures="0" skipped="0" timestamp="2026-06-28T17:45:07" time="3.256" tests="6">
|
|
187
|
+
<testcase classname="<Placeholder /> > " name="Test that placeholder renders (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.048">
|
|
188
188
|
</testcase>
|
|
189
|
-
<testcase classname="<Placeholder /> > " name="Test placeholder without button (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.
|
|
189
|
+
<testcase classname="<Placeholder /> > " name="Test placeholder without button (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.014">
|
|
190
190
|
</testcase>
|
|
191
191
|
<testcase classname="<Placeholder /> > " name="Test placeholder with custom classname (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.007">
|
|
192
192
|
</testcase>
|
|
193
|
-
<testcase classname="<Placeholder /> > " name="Test placeholder with null values (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.
|
|
193
|
+
<testcase classname="<Placeholder /> > " name="Test placeholder with null values (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.012">
|
|
194
194
|
</testcase>
|
|
195
195
|
<testcase classname="<Placeholder /> > " name="Test placeholder with button (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.016">
|
|
196
196
|
</testcase>
|
|
197
|
-
<testcase classname="<Placeholder /> > " name="Test button onConfigure trigger (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.
|
|
197
|
+
<testcase classname="<Placeholder /> > " name="Test button onConfigure trigger (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.009">
|
|
198
198
|
</testcase>
|
|
199
199
|
</testsuite>
|
|
200
200
|
</testsuites>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export var version = "3.25.0-beta.
|
|
1
|
+
export var version = "3.25.0-beta.2833059";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicForm.d.ts","sourceRoot":"","sources":["../../../src/controls/dynamicForm/DynamicForm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA6B/B,OAAO,eAAe,CAAC;AACvB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,iBAAiB,CAAC;AACzB,OAAO,eAAe,CAAC;AAiBvB,OAAO,EAAE,iBAAiB,EAA8C,MAAM,qBAAqB,CAAC;AACpG,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAYxD;;GAEG;AACH,qBAAa,eAAgB,SAAQ,KAAK,CAAC,SAAS,CAClD,iBAAiB,EACjB,iBAAiB,CAClB;IACC,OAAO,CAAC,UAAU,CAAY;IAC9B,OAAO,CAAC,kBAAkB,CAAoB;IAC9C,OAAO,CAAC,gBAAgB,CAAyB;IACjD,OAAO,CAAC,gBAAgB,CAAoB;IAC5C,OAAO,CAAC,MAAM,CAEqC;IACnD,OAAO,CAAC,WAAW,CAAyC;gBAEhD,KAAK,EAAE,iBAAiB;IA4CpC;;;;;;OAMG;IACI,UAAU,CAAC,QAAQ,EAAE,GAAG,GAAG,IAAI;IAQtC;;OAEG;IACI,iBAAiB,IAAI,IAAI;IAWzB,kBAAkB,CAAC,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,iBAAiB,GAAG,IAAI;IAwB3F;;OAEG;IACI,MAAM,IAAI,GAAG,CAAC,OAAO;IA8H5B,OAAO,CAAC,UAAU,CAiBjB;IAED,OAAO,CAAC,WAAW,CAsClB;IAED,OAAO,CAAC,kBAAkB;IAO1B,gDAAgD;IAChD,OAAO,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"DynamicForm.d.ts","sourceRoot":"","sources":["../../../src/controls/dynamicForm/DynamicForm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA6B/B,OAAO,eAAe,CAAC;AACvB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,iBAAiB,CAAC;AACzB,OAAO,eAAe,CAAC;AAiBvB,OAAO,EAAE,iBAAiB,EAA8C,MAAM,qBAAqB,CAAC;AACpG,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAYxD;;GAEG;AACH,qBAAa,eAAgB,SAAQ,KAAK,CAAC,SAAS,CAClD,iBAAiB,EACjB,iBAAiB,CAClB;IACC,OAAO,CAAC,UAAU,CAAY;IAC9B,OAAO,CAAC,kBAAkB,CAAoB;IAC9C,OAAO,CAAC,gBAAgB,CAAyB;IACjD,OAAO,CAAC,gBAAgB,CAAoB;IAC5C,OAAO,CAAC,MAAM,CAEqC;IACnD,OAAO,CAAC,WAAW,CAAyC;gBAEhD,KAAK,EAAE,iBAAiB;IA4CpC;;;;;;OAMG;IACI,UAAU,CAAC,QAAQ,EAAE,GAAG,GAAG,IAAI;IAQtC;;OAEG;IACI,iBAAiB,IAAI,IAAI;IAWzB,kBAAkB,CAAC,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,iBAAiB,GAAG,IAAI;IAwB3F;;OAEG;IACI,MAAM,IAAI,GAAG,CAAC,OAAO;IA8H5B,OAAO,CAAC,UAAU,CAiBjB;IAED,OAAO,CAAC,WAAW,CAsClB;IAED,OAAO,CAAC,kBAAkB;IAO1B,gDAAgD;IAChD,OAAO,CAAC,aAAa,CA+VnB;IAEF;;OAEG;IACH,OAAO,CAAC,gBAAgB,CA4DvB;IAED;;OAEG;IACH,OAAO,CAAC,QAAQ,CAoGd;IAEF,kGAAkG;IAClG,OAAO,CAAC,iBAAiB,CAexB;IAED,8HAA8H;IAC9H,OAAO,CAAC,gCAAgC,CAEvC;IAED,wGAAwG;IACxG,OAAO,CAAC,0BAA0B,CAEjC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,gBAAgB,CA2BvB;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,0BAA0B,CAsCjC;IAED;;OAEG;IACH,OAAO,CAAC,kBAAkB,CAuIzB;IAED;;;;;;;;;;OAUG;YAEW,oBAAoB;IA+XlC,OAAO,CAAC,+BAA+B,CA8CtC;IAED,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,WAAW,CAsBjB;IAEF,OAAO,CAAC,mBAAmB,CASzB;IAEF,OAAO,CAAC,0BAA0B,CAIhC;IAEF,OAAO,CAAC,uBAAuB,CAS7B;IAEF,OAAO,CAAC,yBAAyB,CAS/B;IAEF,OAAO,CAAC,0BAA0B,CA+CjC;IAED,OAAO,CAAC,wBAAwB,CAsB/B;IAED;;;;;;OAMG;IACH,OAAO,CAAC,aAAa,CAYpB;IAED;;;;;;OAMG;IACH,OAAO,CAAC,eAAe,CAarB;IAEF;;;;;;;OAOG;IACH,OAAO,CAAC,mBAAmB,CAY1B;CAEF;AAED,eAAO,MAAM,WAAW,8FAOvB,CAAC"}
|
|
@@ -82,7 +82,7 @@ var DynamicFormBase = /** @class */ (function (_super) {
|
|
|
82
82
|
};
|
|
83
83
|
/** Triggered when the user submits the form. */
|
|
84
84
|
_this.onSubmitClick = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
85
|
-
var _a, listId, listItemId, onSubmitted, onBeforeSubmit, onSubmitError, enableFileSelection, validationErrorDialogProps, returnListItemInstanceOnSubmit, useModernTaxonomyPicker, contentTypeId, fileSelectRendered, shouldBeReturnBack_1, fields, validationDisabled, validationErrors, objects, _loop_1, this_1, i, len, isCancelled, apiError, newETag, iur, error_1, contentTypeIdField, iar, error_2, idField, contentTypeIdField, library, folderFileName, folder, _b, newFolder, fields_2, folderId, iur, error_3, error_4;
|
|
85
|
+
var _a, listId, listItemId, onSubmitted, onBeforeSubmit, onSubmitError, enableFileSelection, validationErrorDialogProps, returnListItemInstanceOnSubmit, useModernTaxonomyPicker, contentTypeId, fileSelectRendered, shouldBeReturnBack_1, fields, validationDisabled, validationErrors, objects, _loop_1, this_1, i, len, isCancelled, apiError, newETag, iur, error_1, contentTypeIdField, iar, error_2, idField, contentTypeIdField, library, folderFileName, folder, _b, newFolder, fields_2, folderId, iur, error_3, updatedExtendedInfo_1, error_4;
|
|
86
86
|
var _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
87
87
|
return __generator(this, function (_m) {
|
|
88
88
|
switch (_m.label) {
|
|
@@ -94,7 +94,7 @@ var DynamicFormBase = /** @class */ (function (_super) {
|
|
|
94
94
|
fileSelectRendered = !listItemId && contentTypeId.startsWith("0x0101") && enableFileSelection === true;
|
|
95
95
|
_m.label = 1;
|
|
96
96
|
case 1:
|
|
97
|
-
_m.trys.push([1,
|
|
97
|
+
_m.trys.push([1, 35, , 36]);
|
|
98
98
|
shouldBeReturnBack_1 = false;
|
|
99
99
|
fields = (this.state.fieldCollection || []).slice();
|
|
100
100
|
fields.forEach(function (field) {
|
|
@@ -402,20 +402,32 @@ var DynamicFormBase = /** @class */ (function (_super) {
|
|
|
402
402
|
console.log("Error", error_3);
|
|
403
403
|
return [3 /*break*/, 32];
|
|
404
404
|
case 32:
|
|
405
|
+
if (!(listItemId && this.state.fieldCollection.some(function (f) { return f.isAppendOnly; }))) return [3 /*break*/, 34];
|
|
406
|
+
return [4 /*yield*/, this._spService.getExtendedListFormData(listId, listItemId, this.webURL)];
|
|
407
|
+
case 33:
|
|
408
|
+
updatedExtendedInfo_1 = _m.sent();
|
|
409
|
+
this.setState(function (prevState) { return ({
|
|
410
|
+
fieldCollection: prevState.fieldCollection.map(function (field) {
|
|
411
|
+
return field.isAppendOnly
|
|
412
|
+
? __assign(__assign({}, field), { notesAppendOnlyHistory: updatedExtendedInfo_1[field.columnInternalName], newValue: '', value: '' }) : field;
|
|
413
|
+
})
|
|
414
|
+
}); });
|
|
415
|
+
_m.label = 34;
|
|
416
|
+
case 34:
|
|
405
417
|
this.setState({
|
|
406
418
|
isSaving: false,
|
|
407
419
|
etag: newETag,
|
|
408
420
|
infoErrorMessages: apiError ? [{ type: MessageBarType.error, message: apiError }] : [],
|
|
409
421
|
});
|
|
410
|
-
return [3 /*break*/,
|
|
411
|
-
case
|
|
422
|
+
return [3 /*break*/, 36];
|
|
423
|
+
case 35:
|
|
412
424
|
error_4 = _m.sent();
|
|
413
425
|
if (onSubmitError) {
|
|
414
426
|
onSubmitError(null, error_4);
|
|
415
427
|
}
|
|
416
428
|
console.log("Error onSubmit", error_4);
|
|
417
|
-
return [3 /*break*/,
|
|
418
|
-
case
|
|
429
|
+
return [3 /*break*/, 36];
|
|
430
|
+
case 36: return [2 /*return*/];
|
|
419
431
|
}
|
|
420
432
|
});
|
|
421
433
|
}); };
|
|
@@ -721,7 +733,7 @@ var DynamicFormBase = /** @class */ (function (_super) {
|
|
|
721
733
|
* Invoked when component first mounts, loads information about the SharePoint list, fields and list item
|
|
722
734
|
*/
|
|
723
735
|
_this.getListInformation = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
724
|
-
var _a, listId, listItemId, disabledFields, respectETag, customIcons, onListItemLoaded, contentTypeId, listInfo, additionalInfo, numberFields, validationFormulas, contentTypeName, clientValidationFormulas, headerJSON, footerJSON, bodySections, customFormatInfo, spList, item, isEditingItem, etag, spListItem, tempFields, sortedFields, installedLanguages, error_6;
|
|
736
|
+
var _a, listId, listItemId, disabledFields, respectETag, customIcons, onListItemLoaded, contentTypeId, listInfo, additionalInfo, numberFields, validationFormulas, contentTypeName, clientValidationFormulas, headerJSON, footerJSON, bodySections, customFormatInfo, spList, item, isEditingItem, etag, extendedInfo, spListItem, appendOnlyFields, tempFields, sortedFields, installedLanguages, error_6;
|
|
725
737
|
var _this = this;
|
|
726
738
|
var _b, _c;
|
|
727
739
|
return __generator(this, function (_d) {
|
|
@@ -731,7 +743,7 @@ var DynamicFormBase = /** @class */ (function (_super) {
|
|
|
731
743
|
contentTypeId = this.props.contentTypeId;
|
|
732
744
|
_d.label = 1;
|
|
733
745
|
case 1:
|
|
734
|
-
_d.trys.push([1,
|
|
746
|
+
_d.trys.push([1, 12, , 13]);
|
|
735
747
|
return [4 /*yield*/, this._spService.getListFormRenderInfo(listId, this.webURL)];
|
|
736
748
|
case 2:
|
|
737
749
|
listInfo = _d.sent();
|
|
@@ -774,7 +786,8 @@ var DynamicFormBase = /** @class */ (function (_super) {
|
|
|
774
786
|
item = null;
|
|
775
787
|
isEditingItem = listItemId !== undefined && listItemId !== null && listItemId !== 0;
|
|
776
788
|
etag = undefined;
|
|
777
|
-
|
|
789
|
+
extendedInfo = undefined;
|
|
790
|
+
if (!isEditingItem) return [3 /*break*/, 8];
|
|
778
791
|
spListItem = spList.items.getById(listItemId);
|
|
779
792
|
if (contentTypeId.startsWith("0x0120") || contentTypeId.startsWith("0x0101")) {
|
|
780
793
|
spListItem.select("*", "FileLeafRef"); // Explainer: FileLeafRef is not loaded by default. Load it to show the file/folder name in the field.
|
|
@@ -791,20 +804,26 @@ var DynamicFormBase = /** @class */ (function (_super) {
|
|
|
791
804
|
if (respectETag !== false) {
|
|
792
805
|
etag = item["odata.etag"];
|
|
793
806
|
}
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
807
|
+
appendOnlyFields = listInfo.ClientForms.Edit[contentTypeName]
|
|
808
|
+
.filter(function (field) { return field.FieldType === 'Note' && field.AppendOnly; });
|
|
809
|
+
if (!(appendOnlyFields.length > 0)) return [3 /*break*/, 8];
|
|
810
|
+
return [4 /*yield*/, this._spService.getExtendedListFormData(listId, listItemId, this.webURL)];
|
|
811
|
+
case 7:
|
|
812
|
+
extendedInfo = _d.sent();
|
|
813
|
+
_d.label = 8;
|
|
814
|
+
case 8: return [4 /*yield*/, this.buildFieldCollection(listInfo, contentTypeName, item, numberFields, listId, listItemId, disabledFields, customIcons, extendedInfo)];
|
|
815
|
+
case 9:
|
|
797
816
|
tempFields = _d.sent();
|
|
798
817
|
sortedFields = ((_c = this.props.fieldOrder) === null || _c === void 0 ? void 0 : _c.length) > 0
|
|
799
818
|
? this.sortFields(tempFields, this.props.fieldOrder)
|
|
800
819
|
: tempFields;
|
|
801
820
|
installedLanguages = void 0;
|
|
802
|
-
if (!(tempFields.filter(function (f) { return f.fieldType === "Currency"; }).length > 0)) return [3 /*break*/,
|
|
821
|
+
if (!(tempFields.filter(function (f) { return f.fieldType === "Currency"; }).length > 0)) return [3 /*break*/, 11];
|
|
803
822
|
return [4 /*yield*/, sp.web.regionalSettings.getInstalledLanguages()];
|
|
804
|
-
case 9:
|
|
805
|
-
installedLanguages = _d.sent();
|
|
806
|
-
_d.label = 10;
|
|
807
823
|
case 10:
|
|
824
|
+
installedLanguages = _d.sent();
|
|
825
|
+
_d.label = 11;
|
|
826
|
+
case 11:
|
|
808
827
|
this.setState({
|
|
809
828
|
contentTypeId: contentTypeId,
|
|
810
829
|
clientValidationFormulas: clientValidationFormulas,
|
|
@@ -818,13 +837,13 @@ var DynamicFormBase = /** @class */ (function (_super) {
|
|
|
818
837
|
installedLanguages: installedLanguages,
|
|
819
838
|
validationFormulas: validationFormulas
|
|
820
839
|
}, function () { return _this.performValidation(true); });
|
|
821
|
-
return [3 /*break*/,
|
|
822
|
-
case
|
|
840
|
+
return [3 /*break*/, 13];
|
|
841
|
+
case 12:
|
|
823
842
|
error_6 = _d.sent();
|
|
824
843
|
this.updateFormMessages(MessageBarType.error, 'An error occurred while loading: ' + error_6.message);
|
|
825
844
|
console.error("An error occurred while loading DynamicForm", error_6);
|
|
826
845
|
return [2 /*return*/, null];
|
|
827
|
-
case
|
|
846
|
+
case 13: return [2 /*return*/];
|
|
828
847
|
}
|
|
829
848
|
});
|
|
830
849
|
}); };
|
|
@@ -1254,7 +1273,7 @@ var DynamicFormBase = /** @class */ (function (_super) {
|
|
|
1254
1273
|
* @returns
|
|
1255
1274
|
*/
|
|
1256
1275
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1257
|
-
DynamicFormBase.prototype.buildFieldCollection = function (listInfo, contentTypeName, item, numberFields, listId, listItemId, disabledFields, customIcons) {
|
|
1276
|
+
DynamicFormBase.prototype.buildFieldCollection = function (listInfo, contentTypeName, item, numberFields, listId, listItemId, disabledFields, customIcons, extendedInfo) {
|
|
1258
1277
|
return __awaiter(this, void 0, void 0, function () {
|
|
1259
1278
|
var useModernTaxonomyPicker, tempFields, order, hiddenFields, defaultDayOfWeek, _loop_3, this_2, i, len;
|
|
1260
1279
|
return __generator(this, function (_a) {
|
|
@@ -1266,7 +1285,7 @@ var DynamicFormBase = /** @class */ (function (_super) {
|
|
|
1266
1285
|
hiddenFields = this.props.hiddenFields !== undefined ? this.props.hiddenFields : [];
|
|
1267
1286
|
defaultDayOfWeek = 0;
|
|
1268
1287
|
_loop_3 = function (i, len) {
|
|
1269
|
-
var field, hiddenName, termSetId, anchorId, lookupListId, lookupField, choices_1, defaultValue, value, stringValue, subPropertyValues, richText, dateFormat, principalType, cultureName, minValue, maxValue, showAsPercentage, selectedTags_1, choiceType, fieldName, numberField, userEmails, _b, _c, response, term, termId, term, _selectedTags, _selectedTags, response;
|
|
1288
|
+
var field, hiddenName, termSetId, anchorId, lookupListId, lookupField, choices_1, defaultValue, value, stringValue, subPropertyValues, richText, appendOnly, dateFormat, principalType, cultureName, minValue, maxValue, showAsPercentage, selectedTags_1, choiceType, notesAppendOnlyHistory, fieldName, numberField, userEmails, _b, _c, response, term, termId, term, _selectedTags, _selectedTags, response;
|
|
1270
1289
|
return __generator(this, function (_d) {
|
|
1271
1290
|
switch (_d.label) {
|
|
1272
1291
|
case 0:
|
|
@@ -1285,6 +1304,7 @@ var DynamicFormBase = /** @class */ (function (_super) {
|
|
|
1285
1304
|
stringValue = null;
|
|
1286
1305
|
subPropertyValues = {};
|
|
1287
1306
|
richText = false;
|
|
1307
|
+
appendOnly = false;
|
|
1288
1308
|
dateFormat = void 0;
|
|
1289
1309
|
principalType = "";
|
|
1290
1310
|
cultureName = void 0;
|
|
@@ -1293,6 +1313,7 @@ var DynamicFormBase = /** @class */ (function (_super) {
|
|
|
1293
1313
|
showAsPercentage = void 0;
|
|
1294
1314
|
selectedTags_1 = [];
|
|
1295
1315
|
choiceType = void 0;
|
|
1316
|
+
notesAppendOnlyHistory = void 0;
|
|
1296
1317
|
fieldName = field.InternalName;
|
|
1297
1318
|
if (fieldName.startsWith('_x') || fieldName.startsWith('_')) {
|
|
1298
1319
|
fieldName = "OData_".concat(fieldName);
|
|
@@ -1326,6 +1347,11 @@ var DynamicFormBase = /** @class */ (function (_super) {
|
|
|
1326
1347
|
// Setup Note, Number and Currency fields
|
|
1327
1348
|
if (field.FieldType === "Note") {
|
|
1328
1349
|
richText = field.RichText;
|
|
1350
|
+
appendOnly = field.AppendOnly;
|
|
1351
|
+
if (field.AppendOnly) {
|
|
1352
|
+
notesAppendOnlyHistory = extendedInfo === null || extendedInfo === void 0 ? void 0 : extendedInfo[field.InternalName];
|
|
1353
|
+
value = '';
|
|
1354
|
+
}
|
|
1329
1355
|
}
|
|
1330
1356
|
if (field.FieldType === "Number" || field.FieldType === "Currency") {
|
|
1331
1357
|
numberField = numberFields.find(function (f) { return f.InternalName === field.InternalName; });
|
|
@@ -1609,6 +1635,7 @@ var DynamicFormBase = /** @class */ (function (_super) {
|
|
|
1609
1635
|
hiddenFieldName: hiddenName,
|
|
1610
1636
|
Order: order,
|
|
1611
1637
|
isRichText: richText,
|
|
1638
|
+
isAppendOnly: appendOnly,
|
|
1612
1639
|
dateFormat: dateFormat,
|
|
1613
1640
|
firstDayOfWeek: defaultDayOfWeek,
|
|
1614
1641
|
listItemId: listItemId,
|
|
@@ -1619,7 +1646,8 @@ var DynamicFormBase = /** @class */ (function (_super) {
|
|
|
1619
1646
|
showAsPercentage: showAsPercentage,
|
|
1620
1647
|
customIcon: customIcons ? customIcons[field.InternalName] : undefined,
|
|
1621
1648
|
useModernTaxonomyPickerControl: useModernTaxonomyPicker,
|
|
1622
|
-
choiceType: choiceType
|
|
1649
|
+
choiceType: choiceType,
|
|
1650
|
+
notesAppendOnlyHistory: notesAppendOnlyHistory
|
|
1623
1651
|
});
|
|
1624
1652
|
// This may not be necessary now using RenderListDataAsStream
|
|
1625
1653
|
tempFields.sort(function (a, b) { return a.Order - b.Order; });
|