@mikezimm/fps-library-v2 1.0.31 → 1.0.33

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 (131) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/lib/banner/FPSWebPartClass/BuildBannerPropsX2.js +1 -1
  3. package/lib/banner/FPSWebPartClass/BuildBannerPropsX2.js.map +1 -1
  4. package/lib/banner/FPSWebPartClass/runOnPropChange.d.ts.map +1 -1
  5. package/lib/banner/FPSWebPartClass/runOnPropChange.js +25 -0
  6. package/lib/banner/FPSWebPartClass/runOnPropChange.js.map +1 -1
  7. package/lib/banner/components/EasyPages/functions.d.ts +1 -1
  8. package/lib/banner/components/EasyPages/functions.d.ts.map +1 -1
  9. package/lib/banner/components/SpecialBanner/component.d.ts +1 -1
  10. package/lib/banner/components/SpecialBanner/component.d.ts.map +1 -1
  11. package/lib/banner/features/Expando/functions.d.ts +1 -1
  12. package/lib/banner/features/Expando/functions.d.ts.map +1 -1
  13. package/lib/banner/features/FPSDOM/FPSEnviro.js +2 -2
  14. package/lib/banner/features/FPSDOM/FPSEnviro.js.map +1 -1
  15. package/lib/banner/features/PageStyle/minimzeToolbar.d.ts +2 -2
  16. package/lib/banner/features/PageStyle/minimzeToolbar.d.ts.map +1 -1
  17. package/lib/banner/features/PageStyle/setAllSectionStyles.d.ts +1 -1
  18. package/lib/banner/features/PageStyle/setAllSectionStyles.d.ts.map +1 -1
  19. package/lib/banner/features/PinMe/FPSPinMenu.d.ts +1 -1
  20. package/lib/banner/features/PinMe/FPSPinMenu.d.ts.map +1 -1
  21. package/lib/banner/mainReact/IWebpartBannerProps.d.ts +1 -1
  22. package/lib/banner/mainReact/IWebpartBannerProps.d.ts.map +1 -1
  23. package/lib/banner/propPane/controls.d.ts +1 -1
  24. package/lib/banner/propPane/controls.d.ts.map +1 -1
  25. package/lib/common/interfaces/openSource/spfxControlsReact/@3.7.2/IViewField.d.ts +139 -0
  26. package/lib/common/interfaces/openSource/spfxControlsReact/@3.7.2/IViewField.d.ts.map +1 -0
  27. package/lib/common/interfaces/openSource/spfxControlsReact/@3.7.2/IViewField.js +2 -0
  28. package/lib/common/interfaces/openSource/spfxControlsReact/@3.7.2/IViewField.js.map +1 -0
  29. package/lib/components/atoms/Elements/basic.d.ts +1 -1
  30. package/lib/components/atoms/Elements/basic.d.ts.map +1 -1
  31. package/lib/components/molecules/Accordion/Accordion.d.ts +24 -0
  32. package/lib/components/molecules/Accordion/Accordion.d.ts.map +1 -0
  33. package/lib/components/molecules/Accordion/Accordion.js +55 -0
  34. package/lib/components/molecules/Accordion/Accordion.js.map +1 -0
  35. package/lib/components/molecules/Arrows/PageArrows.d.ts +44 -0
  36. package/lib/components/molecules/Arrows/PageArrows.d.ts.map +1 -0
  37. package/lib/components/molecules/Arrows/PageArrows.js +134 -0
  38. package/lib/components/molecules/Arrows/PageArrows.js.map +1 -0
  39. package/lib/components/molecules/Performance/tables.d.ts +1 -1
  40. package/lib/components/molecules/Performance/tables.d.ts.map +1 -1
  41. package/lib/components/molecules/PropPaneCols/PropPaneCols.module.scss.d.ts +3 -0
  42. package/lib/components/molecules/PropPaneCols/PropPaneCols.module.scss.d.ts.map +1 -0
  43. package/lib/components/molecules/PropPaneCols/PropPaneCols.module.scss.js +6 -0
  44. package/lib/components/molecules/PropPaneCols/PropPaneCols.module.scss.js.map +1 -0
  45. package/lib/components/molecules/PropPaneCols/PropPaneColsClass.d.ts +42 -0
  46. package/lib/components/molecules/PropPaneCols/PropPaneColsClass.d.ts.map +1 -0
  47. package/lib/components/molecules/PropPaneCols/PropPaneColsClass.js +240 -0
  48. package/lib/components/molecules/PropPaneCols/PropPaneColsClass.js.map +1 -0
  49. package/lib/components/molecules/PropPaneCols/PropPaneColsHook.d.ts +1 -0
  50. package/lib/components/molecules/PropPaneCols/PropPaneColsHook.d.ts.map +1 -0
  51. package/lib/components/molecules/PropPaneCols/PropPaneColsHook.js +135 -0
  52. package/lib/components/molecules/PropPaneCols/PropPaneColsHook.js.map +1 -0
  53. package/lib/components/molecules/PropPaneCols/components/FieldPanel.d.ts +10 -0
  54. package/lib/components/molecules/PropPaneCols/components/FieldPanel.d.ts.map +1 -0
  55. package/lib/components/molecules/PropPaneCols/components/FieldPanel.js +43 -0
  56. package/lib/components/molecules/PropPaneCols/components/FieldPanel.js.map +1 -0
  57. package/lib/components/molecules/PropPaneCols/components/IPropPaneColsProps.d.ts +87 -0
  58. package/lib/components/molecules/PropPaneCols/components/IPropPaneColsProps.d.ts.map +1 -0
  59. package/lib/components/molecules/PropPaneCols/components/IPropPaneColsProps.js +2 -0
  60. package/lib/components/molecules/PropPaneCols/components/IPropPaneColsProps.js.map +1 -0
  61. package/lib/components/molecules/PropPaneCols/components/OnClickHelpers.d.ts +18 -0
  62. package/lib/components/molecules/PropPaneCols/components/OnClickHelpers.d.ts.map +1 -0
  63. package/lib/components/molecules/PropPaneCols/components/OnClickHelpers.js +120 -0
  64. package/lib/components/molecules/PropPaneCols/components/OnClickHelpers.js.map +1 -0
  65. package/lib/components/molecules/PropPaneCols/components/command/Accordion.d.ts +17 -0
  66. package/lib/components/molecules/PropPaneCols/components/command/Accordion.d.ts.map +1 -0
  67. package/lib/components/molecules/PropPaneCols/components/command/Accordion.js +229 -0
  68. package/lib/components/molecules/PropPaneCols/components/command/Accordion.js.map +1 -0
  69. package/lib/components/molecules/PropPaneCols/components/command/IAccordion.d.ts +69 -0
  70. package/lib/components/molecules/PropPaneCols/components/command/IAccordion.d.ts.map +1 -0
  71. package/lib/components/molecules/PropPaneCols/components/command/IAccordion.js +73 -0
  72. package/lib/components/molecules/PropPaneCols/components/command/IAccordion.js.map +1 -0
  73. package/lib/components/molecules/PropPaneCols/components/command/SampleDesign copy.d.ts +9 -0
  74. package/lib/components/molecules/PropPaneCols/components/command/SampleDesign copy.d.ts.map +1 -0
  75. package/lib/components/molecules/PropPaneCols/components/command/SampleDesign copy.js +61 -0
  76. package/lib/components/molecules/PropPaneCols/components/command/SampleDesign copy.js.map +1 -0
  77. package/lib/components/molecules/PropPaneCols/components/command/SampleDesign.d.ts +10 -0
  78. package/lib/components/molecules/PropPaneCols/components/command/SampleDesign.d.ts.map +1 -0
  79. package/lib/components/molecules/PropPaneCols/components/command/SampleDesign.js +66 -0
  80. package/lib/components/molecules/PropPaneCols/components/command/SampleDesign.js.map +1 -0
  81. package/lib/components/molecules/PropPaneCols/components/command/createLogic.d.ts +13 -0
  82. package/lib/components/molecules/PropPaneCols/components/command/createLogic.d.ts.map +1 -0
  83. package/lib/components/molecules/PropPaneCols/components/command/createLogic.js +397 -0
  84. package/lib/components/molecules/PropPaneCols/components/command/createLogic.js.map +1 -0
  85. package/lib/components/molecules/PropPaneCols/components/command/helpers.d.ts +2 -0
  86. package/lib/components/molecules/PropPaneCols/components/command/helpers.d.ts.map +1 -0
  87. package/lib/components/molecules/PropPaneCols/components/command/helpers.js +2 -0
  88. package/lib/components/molecules/PropPaneCols/components/command/helpers.js.map +1 -0
  89. package/lib/components/molecules/PropPaneCols/components/command/tableRows.d.ts +5 -0
  90. package/lib/components/molecules/PropPaneCols/components/command/tableRows.d.ts.map +1 -0
  91. package/lib/components/molecules/PropPaneCols/components/command/tableRows.js +25 -0
  92. package/lib/components/molecules/PropPaneCols/components/command/tableRows.js.map +1 -0
  93. package/lib/components/molecules/PropPaneCols/components/common.d.ts +4 -0
  94. package/lib/components/molecules/PropPaneCols/components/common.d.ts.map +1 -0
  95. package/lib/components/molecules/PropPaneCols/components/common.js +16 -0
  96. package/lib/components/molecules/PropPaneCols/components/common.js.map +1 -0
  97. package/lib/components/molecules/PropPaneCols/components/fetch/Pane.d.ts +11 -0
  98. package/lib/components/molecules/PropPaneCols/components/fetch/Pane.d.ts.map +1 -0
  99. package/lib/components/molecules/PropPaneCols/components/fetch/Pane.js +51 -0
  100. package/lib/components/molecules/PropPaneCols/components/fetch/Pane.js.map +1 -0
  101. package/lib/components/molecules/PropPaneCols/components/fetch/funcions.d.ts +3 -0
  102. package/lib/components/molecules/PropPaneCols/components/fetch/funcions.d.ts.map +1 -0
  103. package/lib/components/molecules/PropPaneCols/components/fetch/funcions.js +96 -0
  104. package/lib/components/molecules/PropPaneCols/components/fetch/funcions.js.map +1 -0
  105. package/lib/components/molecules/PropPaneCols/components/main/FieldTable.d.ts +14 -0
  106. package/lib/components/molecules/PropPaneCols/components/main/FieldTable.d.ts.map +1 -0
  107. package/lib/components/molecules/PropPaneCols/components/main/FieldTable.js +68 -0
  108. package/lib/components/molecules/PropPaneCols/components/main/FieldTable.js.map +1 -0
  109. package/lib/components/molecules/PropPaneCols/components/main/Pane.d.ts +13 -0
  110. package/lib/components/molecules/PropPaneCols/components/main/Pane.d.ts.map +1 -0
  111. package/lib/components/molecules/PropPaneCols/components/main/Pane.js +87 -0
  112. package/lib/components/molecules/PropPaneCols/components/main/Pane.js.map +1 -0
  113. package/lib/components/molecules/PropPaneCols/components/selected/TableHook.d.ts +9 -0
  114. package/lib/components/molecules/PropPaneCols/components/selected/TableHook.d.ts.map +1 -0
  115. package/lib/components/molecules/PropPaneCols/components/selected/TableHook.js +63 -0
  116. package/lib/components/molecules/PropPaneCols/components/selected/TableHook.js.map +1 -0
  117. package/lib/components/molecules/PropPaneCols/components/selected/functions.d.ts +5 -0
  118. package/lib/components/molecules/PropPaneCols/components/selected/functions.d.ts.map +1 -0
  119. package/lib/components/molecules/PropPaneCols/components/selected/functions.js +59 -0
  120. package/lib/components/molecules/PropPaneCols/components/selected/functions.js.map +1 -0
  121. package/lib/components/molecules/PropPaneCols/components/views/Accordion.d.ts +12 -0
  122. package/lib/components/molecules/PropPaneCols/components/views/Accordion.d.ts.map +1 -0
  123. package/lib/components/molecules/PropPaneCols/components/views/Accordion.js +29 -0
  124. package/lib/components/molecules/PropPaneCols/components/views/Accordion.js.map +1 -0
  125. package/lib/components/molecules/PropPaneCols/components/views/functions.d.ts +5 -0
  126. package/lib/components/molecules/PropPaneCols/components/views/functions.d.ts.map +1 -0
  127. package/lib/components/molecules/PropPaneCols/components/views/functions.js +133 -0
  128. package/lib/components/molecules/PropPaneCols/components/views/functions.js.map +1 -0
  129. package/lib/logic/Errors/friendly.d.ts +1 -1
  130. package/lib/logic/Errors/friendly.d.ts.map +1 -1
  131. package/package.json +1 -1
@@ -0,0 +1,134 @@
1
+ import * as React from 'react';
2
+ import { Icon, } from 'office-ui-fabric-react/lib/Icon';
3
+ export default class PageArrows extends React.Component {
4
+ _updateMaxFirst() {
5
+ this._maxFirst = this.props.itemsPerPage === 0 ? 0 : Math.floor(this.props.itemCount / this.props.itemsPerPage) * this.props.itemsPerPage;
6
+ }
7
+ _updateMaxLast() {
8
+ this._maxLast = this._maxFirst + this.props.itemsPerPage;
9
+ }
10
+ constructor(props) {
11
+ super(props);
12
+ this._maxFirst = 0;
13
+ this._maxLast = 0;
14
+ this.state = {
15
+ firstVisible: 0,
16
+ lastVisible: this.props.itemsPerPage - 1,
17
+ };
18
+ }
19
+ componentDidMount() {
20
+ this._updateMaxFirst();
21
+ this._updateMaxLast();
22
+ }
23
+ componentDidUpdate(prevProps) {
24
+ if (prevProps.resetArrows !== this.props.resetArrows) {
25
+ //https://github.com/mikezimm/drilldown7/issues/207
26
+ this._updateMaxFirst();
27
+ this._updateMaxLast();
28
+ this.setState({
29
+ firstVisible: 0,
30
+ lastVisible: this.props.itemsPerPage - 1,
31
+ });
32
+ }
33
+ else {
34
+ let refresh = false;
35
+ if (prevProps.itemsPerPage !== this.props.itemsPerPage) {
36
+ refresh = true;
37
+ }
38
+ if (prevProps.itemCount !== this.props.itemCount) {
39
+ refresh = true;
40
+ }
41
+ if (prevProps.debugMode !== this.props.debugMode) {
42
+ refresh = true;
43
+ }
44
+ if (refresh === true) {
45
+ this._updateMaxFirst();
46
+ this._updateMaxLast();
47
+ }
48
+ }
49
+ }
50
+ //
51
+ /***
52
+ * d8888b. d888888b d8888b. db db d8888b. d8888b. .d8b. d888888b d88888b
53
+ * 88 `8D `88' 88 `8D 88 88 88 `8D 88 `8D d8' `8b `~~88~~' 88'
54
+ * 88 88 88 88 88 88 88 88oodD' 88 88 88ooo88 88 88ooooo
55
+ * 88 88 88 88 88 88 88 88~~~ 88 88 88~~~88 88 88~~~~~
56
+ * 88 .8D .88. 88 .8D 88b d88 88 88 .8D 88 88 88 88.
57
+ * Y8888D' Y888888P Y8888D' ~Y8888P' 88 Y8888D' YP YP YP Y88888P
58
+ *
59
+ *
60
+ */
61
+ render() {
62
+ const arrowSize = this.props.fontSize ? `${this.props.fontSize}px` : '28px';
63
+ const fontSize = this.props.fontSize ? `${this.props.fontSize - 4}px` : '24px';
64
+ const leftActive = this.state.firstVisible === 0 ? false : true;
65
+ const rightActive = this.state.lastVisible === this.props.itemCount - 1 ? false : true;
66
+ const leftArrowStyles = { root: { padding: '5px 10px', fontSize: arrowSize, cursor: leftActive === true ? 'pointer' : 'default', opacity: leftActive === true ? 1 : .2 } };
67
+ const rightArrowStyles = { root: { padding: '5px 10px', fontSize: arrowSize, cursor: rightActive === true ? 'pointer' : 'default', opacity: rightActive === true ? 1 : .2 } };
68
+ const bigLeftActive = this.state.firstVisible === 0 ? false : true;
69
+ const bigRightActive = this.state.firstVisible >= this._maxFirst || this.state.lastVisible === this.props.itemCount - 1 ? false : true;
70
+ const bigLeftArrowStyles = { root: { padding: '5px 10px', fontSize: arrowSize, cursor: bigLeftActive === true ? 'pointer' : 'default', opacity: bigLeftActive === true ? 1 : .2 } };
71
+ const bigRightArrowStyles = { root: { padding: '5px 10px', fontSize: arrowSize, cursor: bigRightActive === true ? 'pointer' : 'default', opacity: bigRightActive === true ? 1 : .2 } };
72
+ const pageArrowStyles = { ...{ paddingLeft: '30px', display: 'flex', flexWrap: 'nowrap', flexDirection: 'row', alignItems: 'center' }, ...this.props.pageArrowStyles };
73
+ const maxFirstDebug = this.props.debugMode !== true ? null : React.createElement("div", { style: { paddingLeft: '30px' } },
74
+ "_maxFirst: ",
75
+ this._maxFirst);
76
+ const maxLastDebug = this.props.debugMode !== true ? null : React.createElement("div", { style: { paddingLeft: '30px' } },
77
+ "_maxLast: ",
78
+ this._maxLast);
79
+ const PageArrowsComponent = this.props.itemCount <= this.props.itemsPerPage ?
80
+ React.createElement("div", null,
81
+ "Showing all ",
82
+ this.props.itemCount,
83
+ " items.")
84
+ : React.createElement("div", { style: pageArrowStyles },
85
+ React.createElement(Icon, { iconName: 'DoubleChevronLeftMed', onClick: this._bigLeftPage.bind(this), title: `Jump backward ${this.props.itemsPerPage * 5} items`, styles: bigLeftArrowStyles }),
86
+ React.createElement(Icon, { iconName: 'ChevronLeftMed', onClick: this._leftPage.bind(this), title: `Show previous ${this.props.itemsPerPage} items`, styles: leftArrowStyles }),
87
+ React.createElement("span", { style: { fontSize: fontSize, textAlign: 'center' } },
88
+ " ",
89
+ React.createElement("span", null,
90
+ " ",
91
+ `${this.props.fontSize && this.props.fontSize >= 32 ? 'showing' : ''} items: `),
92
+ React.createElement("span", { style: { whiteSpace: 'nowrap' } }, `${this.state.firstVisible + 1} - ${this.state.lastVisible + 1}`)),
93
+ React.createElement(Icon, { iconName: 'ChevronRightMed', onClick: this._rightPage.bind(this), title: `Show next ${this.props.itemsPerPage} items`, styles: rightArrowStyles }),
94
+ React.createElement(Icon, { iconName: 'DoubleChevronRight12', onClick: this._bigRightPage.bind(this), title: `Jump forward ${this.props.itemsPerPage * 5} items`, styles: bigRightArrowStyles }),
95
+ maxFirstDebug,
96
+ maxLastDebug);
97
+ return (PageArrowsComponent);
98
+ }
99
+ _rightPage() {
100
+ this._updatePage(this.state.firstVisible + this.props.itemsPerPage);
101
+ }
102
+ _leftPage() {
103
+ this._updatePage(this.state.firstVisible - this.props.itemsPerPage);
104
+ }
105
+ _bigRightPage() {
106
+ if (this.state.firstVisible < this._maxFirst) {
107
+ this._updatePage(this.state.firstVisible + this.props.itemsPerPage * 5);
108
+ }
109
+ }
110
+ _bigLeftPage() {
111
+ this._updatePage(this.state.firstVisible - this.props.itemsPerPage * 5);
112
+ }
113
+ _updatePage(firstVisible) {
114
+ if (firstVisible < 0) {
115
+ firstVisible = 0;
116
+ } //Make sure firstVisible is always at least 0;
117
+ if (firstVisible > this._maxFirst) {
118
+ firstVisible = this._maxFirst;
119
+ } //Make sure the firstVisible is never more than the _maxFirst
120
+ let lastVisible = firstVisible + this.props.itemsPerPage - 1; //Must be -1 because the first visible really counts in the total itemsPerPage
121
+ if (lastVisible > this.props.itemCount - 1) {
122
+ lastVisible = this.props.itemCount - 1;
123
+ } //Make sure lastVisible is always <= last item index
124
+ if (firstVisible > lastVisible) { // Revert the itemsPerPage update since it would be greater than the lastVisible
125
+ firstVisible = firstVisible - this.props.itemsPerPage;
126
+ }
127
+ this.setState({
128
+ firstVisible: firstVisible,
129
+ lastVisible: lastVisible,
130
+ });
131
+ this.props.setParentStateFirstLast(firstVisible, lastVisible);
132
+ }
133
+ }
134
+ //# sourceMappingURL=PageArrows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageArrows.js","sourceRoot":"","sources":["../../../../src/components/molecules/Arrows/PageArrows.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,GAAgB,MAAM,iCAAiC,CAAC;AA+BrE,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,KAAK,CAAC,SAAmD;IAKrF,eAAe;QACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAE,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAE,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC;IAC/I,CAAC;IAEO,cAAc;QAClB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC;IAC7D,CAAC;IAED,YAAmB,KAAyB;QACxC,KAAK,CAAC,KA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AAC,CAAE;SAAE,CAAE,8CAA8C;QAC9F,IAAK,YAAY,GAAG,IAAI,CAAC,SAAS,EAAG;YAAE,YAAY,GAAG,IAAI,CAAC,SAAS,CAAE;SAAE,CAAC,6DAA6D;QAEtI,IAAI,WAAW,GAAG,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC,8EAA8E;QAC5I,IAAK,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,GAAE,CAAC,EAAG;YAAE,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,GAAE,CAAC,CAAE;SAAE,CAAC,oDAAoD;QAE7I,IAAK,YAAY,GAAG,WAAW,EAAG,EAAE,gFAAgF;YAChH,YAAY,GAAG,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAE;SAC1D;QAED,IAAI,CAAC,QAAQ,CAAC;YACV,YAAY,EAAE,YAAY;YAC1B,WAAW,EAAE,WAAW;SAC3B,CAAC,CAAC;QAEH,IAAI,CAAC,KAAK,CAAC,uBAAuB,CAAE,YAAY,EAAE,WAAW,CAAE,CAAC;IAEpE,CAAC;CAEJ"}
@@ -13,7 +13,7 @@ export declare function createPerformanceTableVisitor(performance: ILoadPerforma
13
13
  * @param performance
14
14
  * @returns
15
15
  */
16
- export declare function createPerformanceTableVisitorXtra(performance: ILoadPerformance, titleAboveTable: string | undefined, keysToShow: ILoadPerformanceOps[], objAboveTable?: any): JSX.Element;
16
+ export declare function createPerformanceTableVisitorXtra(performance: ILoadPerformance, titleAboveTable: string, keysToShow: ILoadPerformanceOps[], objAboveTable?: any): JSX.Element;
17
17
  /**
18
18
  * USED BY: SecureScript7 loadTable >> loadSummary in \secureScript7\components\SecureScript7.tsx
19
19
  * @param performance
@@ -1 +1 @@
1
- {"version":3,"file":"tables.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Performance/tables.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAkB,gBAAgB,EAAE,mBA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AA2B,CAAE,WAAW,EAAE,gBAAgB,EAAG,UAAU,EAAE,mBAAmB,EAAE,EAAE,YAAY,EAAE,GAAG,eAYhI;AAED;;;;;GAKG;AAEF,wBAAgB,qBAAqB,CAAE,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,eAapE"}
@@ -0,0 +1,3 @@
1
+ declare const styles: {};
2
+ export default styles;
3
+ //# sourceMappingURL=PropPaneCols.module.scss.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropPaneCols.module.scss.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/PropPaneCols/PropPaneCols.module.scss.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM,IAEX,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,6 @@
1
+ /* tslint:disable */
2
+ require("./PropPaneCols.module.css");
3
+ const styles = {};
4
+ export default styles;
5
+ /* tslint:enable */
6
+ //# sourceMappingURL=PropPaneCols.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropPaneCols.module.scss.js","sourceRoot":"","sources":["../../../../src/components/molecules/PropPaneCols/PropPaneCols.module.scss.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,CAAC,2BAA2B,CAAC,CAAC;AACrC,MAAM,MAAM,GAAG,EAEd,CAAC;AAEF,eAAe,MAAM,CAAC;AACtB,mBAAmB"}
@@ -0,0 +1,42 @@
1
+ import * as React from 'react';
2
+ import "@pnp/sp/webs";
3
+ import "@pnp/sp/clientside-pages/web";
4
+ import { IFieldPanelProps, IFieldPanelState } from './components/IPropPaneColsProps';
5
+ export default class FieldPanel extends React.Component<IFieldPanelProps, IFieldPanelState> {
6
+ private _performance;
7
+ /**
8
+ * This updates the private _performance.ops object.
9
+ * @param key
10
+ * @param phase
11
+ * @param note
12
+ * @param count
13
+ * @returns
14
+ */
15
+ private _updatePerformance;
16
+ /***
17
+ * .o88b. .d88b. d8b db .d8888. d888888b d8888b. db db .o88b. d888888b .d88b. d8888b.
18
+ * d8P Y8 .8P Y8. 888o 88 88' YP `~~88~~' 88 `8D 88 88 d8P Y8 `~~88~~' .8P Y8. 88 `8D
19
+ * 8P 88 88 88V8o 88 `8bo. 88 88oobY' 88 88 8P 88 88 88 88oobY'
20
+ * 8b 88 88 88 V8o88 `Y8b. 88 88`8b 88 88 8b 88 88 88 88`8b
21
+ * Y8b d8 `8b d8' 88 V888 db 8D 88 88 `88. 88b d88 Y8b d8 88 `8b d8' 88 `88.
22
+ * `Y88P' `Y88P' VP V8P `8888Y' YP 88 YD ~Y8888P' `Y88P' YP `Y88P' 88 YD
23
+ *
24
+ *
25
+ */
26
+ constructor(props: IFieldPanelProps);
27
+ componentDidUpdate(prevProps: IFieldPanelProps): boolean;
28
+ render(): React.ReactElement<IFieldPanelProps>;
29
+ private _toggleFullDesign;
30
+ private _updateSelected;
31
+ private _onCmdFieldClick;
32
+ private _clickFetchFields;
33
+ private _toggleDesign;
34
+ private _selectFiltered;
35
+ private _onFilterClick2;
36
+ private _onTypeClick;
37
+ private _onSelectItem;
38
+ private _onTextSearch;
39
+ private _onSearchChange;
40
+ private _showFieldPanel;
41
+ }
42
+ //# sourceMappingURL=PropPaneColsClass.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropPaneColsClass.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/PropPaneCols/PropPaneColsClass.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,cAAc,CAAC;AACtB,OAAO,8BAA8B,CAAC;AAStC,OAAO,EAAyB,gBAAgB,EAAE,gBAAgB,EAA6B,MAAM,iCAAiC,CAAC;AAUvI,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,KAAK,CAAC,SAAS,CAAE,gBAAgB,EAAE,gBAAgB,CAAE;IAE3F,OAAO,CAAC,YAAY,CAA0B;IAE9C;;;;;;;OAOG;IACD,OAAO,CAAC,kBAAkB;IAc5B;;;;;;;;;MASE;gBAEoB,KAAK,EAAE,gBAAgB;IAyBtC,kBAAkB,CAAC,SAAS,EAAE,gBAAgB,GAAI,OAAO;IAiCzD,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,gBAAgB,CAAC;IAiGrD,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,gBAAgB,CAGtB;YAEY,iBAAiB;IAiB/B,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,eAAe,CAItB;IAED,OAAO,CAAC,eAAe,CAOtB;IAED,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,aAAa,CAGnB;IAGF,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,eAAe;IAqCvB,OAAO,CAAC,eAAe,CAUtB;CAEF"}
@@ -0,0 +1,240 @@
1
+ import * as React from 'react';
2
+ import { startPerformOp, updatePerformanceEnd, createBasePerformanceInit, } from "../../../components/molecules/Performance/functions";
3
+ import "@pnp/sp/webs";
4
+ import "@pnp/sp/clientside-pages/web";
5
+ import { updateSelectedCommands } from './components/command/Accordion';
6
+ import CommandBuilderHook from './components/command/Accordion';
7
+ import { getMainSelectedItems, } from './components/OnClickHelpers';
8
+ // import { buildSelectedFieldTable } from './components/SelectedTable';
9
+ import ViewBuilderHook from './components/views/Accordion';
10
+ import { updateSelectedInfo, } from './components/OnClickHelpers';
11
+ import { MainPane } from './components/main/Pane';
12
+ import { fetchErrorPanel, FetchPane } from './components/fetch/Pane';
13
+ import { fetchFields } from './components/fetch/funcions';
14
+ import SelectedTableHook from './components/selected/TableHook';
15
+ require('./components/PropPaneCols.css');
16
+ export default class FieldPanel extends React.Component {
17
+ /**
18
+ * This updates the private _performance.ops object.
19
+ * @param key
20
+ * @param phase
21
+ * @param note
22
+ * @param count
23
+ * @returns
24
+ */
25
+ _updatePerformance(key, phase, note = '', count) {
26
+ const ops = this._performance.ops;
27
+ let thisPart = ops[key];
28
+ if (phase === 'start' || !thisPart) {
29
+ thisPart = startPerformOp(`${key} ${note ? ' - ' + note : ''}`, this.props.displayMode);
30
+ }
31
+ else if (phase === 'update') {
32
+ thisPart = updatePerformanceEnd(thisPart, true, count);
33
+ }
34
+ }
35
+ /***
36
+ * .o88b. .d88b. d8b db .d8888. d888888b d8888b. db db .o88b. d888888b .d88b. d8888b.
37
+ * d8P Y8 .8P Y8. 888o 88 88' YP `~~88~~' 88 `8D 88 88 d8P Y8 `~~88~~' .8P Y8. 88 `8D
38
+ * 8P 88 88 88V8o 88 `8bo. 88 88oobY' 88 88 8P 88 88 88 88oobY'
39
+ * 8b 88 88 88 V8o88 `Y8b. 88 88`8b 88 88 8b 88 88 88 88`8b
40
+ * Y8b d8 `8b d8' 88 V888 db 8D 88 88 `88. 88b d88 Y8b d8 88 `8b d8' 88 `88.
41
+ * `Y88P' `Y88P' VP V8P `8888Y' YP 88 YD ~Y8888P' `Y88P' YP `Y88P' 88 YD
42
+ *
43
+ *
44
+ */
45
+ constructor(props) {
46
+ super(props);
47
+ this._performance = null;
48
+ this._onCmdFieldClick = (ev) => {
49
+ const newSelected = updateSelectedCommands(ev, this.state.selected);
50
+ this.setState({ selected: newSelected });
51
+ };
52
+ this._selectFiltered = (ev) => {
53
+ const { listFields, selected, searchText } = this.state;
54
+ const selectedInfo = updateSelectedInfo(ev, listFields, selected, searchText);
55
+ this.setState(selectedInfo);
56
+ };
57
+ this._onFilterClick2 = (ev) => {
58
+ var _a, _b;
59
+ const target = ev.target;
60
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
61
+ const { altKey, ctrlKey, shiftKey, type } = ev; // type is like 'click'
62
+ const fieldtype = ((_a = this.state) === null || _a === void 0 ? void 0 : _a.searchText.toLocaleLowerCase()) === ((_b = target.dataset) === null || _b === void 0 ? void 0 : _b.fieldtype.toLocaleLowerCase()) ? '' : target.dataset.fieldtype;
63
+ this._onSearchChange(fieldtype, '');
64
+ };
65
+ this._onSelectItem = (ev) => {
66
+ const newSelected = getMainSelectedItems(ev, this.state.listFields, this.state.selected);
67
+ this.setState({ selected: newSelected });
68
+ };
69
+ // private _onKeeperClick = ( ev: React.MouseEvent<HTMLElement> ): void => {
70
+ // const newSelected: IMinField[] = getKeeperClicks( ev, this.state.selected );
71
+ // this.setState({ selected: newSelected });
72
+ // };
73
+ // private _onDirectionClick = ( ev: React.MouseEvent<HTMLElement> ): void => {
74
+ // const newSelected: IMinField[] = getDirectionClicks( ev, this.state.selected );
75
+ // this.setState({ selected: newSelected });
76
+ // };
77
+ // private _onClosePanel = () : void => {
78
+ // this.setState({ panelItem: null });
79
+ // }
80
+ //field: IMinField
81
+ // private _showFieldPanel = ( ev: React.MouseEvent<HTMLElement> ): void => {
82
+ this._showFieldPanel = (item) => {
83
+ // const currentTarget: any = ev.currentTarget;
84
+ // // eslint-disable-next-line @typescript-eslint/no-unused-vars
85
+ // // const { altKey, ctrlKey, shiftKey, type } = ev; // type is like 'click'
86
+ // const fieldName: string = currentTarget.dataset?.fieldname ? currentTarget.dataset.fieldname : '';
87
+ // const index: number = currentTarget.dataset?.fieldindex ? currentTarget.dataset.fieldindex : -1 ;
88
+ // const panelItem: IMinField = this.state.listFields[ index ];
89
+ // console.log('Selected field: ', fieldName, panelItem );
90
+ this.setState({ panelItem: item });
91
+ };
92
+ this._performance = createBasePerformanceInit(this.props.displayMode, false);
93
+ this._performance.ops.superOnInit = startPerformOp('superOnInit', this.props.displayMode);
94
+ this.state = {
95
+ status: 'Not started',
96
+ fetched: false,
97
+ searchText: '',
98
+ searchProp: '',
99
+ listFields: [],
100
+ filtered: [],
101
+ selected: [],
102
+ listIdx: this.props.lists.length > 0 ? 0 : null,
103
+ errMessage: '',
104
+ designMode: false,
105
+ fullDesign: false,
106
+ panelItem: null,
107
+ };
108
+ this._performance.ops.superOnInit = updatePerformanceEnd(this._performance.ops.superOnInit, true, 666);
109
+ }
110
+ componentDidUpdate(prevProps) {
111
+ let refresh = false;
112
+ if (JSON.stringify(this.props.lists) !== JSON.stringify(prevProps.lists)) {
113
+ refresh = true;
114
+ // Eventually add this and auto load?
115
+ // setTimeout(() => {
116
+ // if (this.LastSearch === NewSearch ) {
117
+ // this._onSearchChange( NewSearch );
118
+ // } else {
119
+ // }
120
+ // }, 1000);
121
+ this.setState({
122
+ status: 'Not started',
123
+ fetched: false,
124
+ searchText: '',
125
+ searchProp: '',
126
+ listFields: [],
127
+ filtered: [],
128
+ selected: [],
129
+ listIdx: this.props.lists.length > 0 ? 0 : null,
130
+ errMessage: '',
131
+ });
132
+ }
133
+ return refresh;
134
+ }
135
+ render() {
136
+ const { lists, } = this.props;
137
+ const { status, designMode, errMessage, listIdx, panelItem, searchText } = this.state;
138
+ const fetchPane = FetchPane({
139
+ onClickFetchFields: this._clickFetchFields.bind(this),
140
+ designMode: designMode,
141
+ performance: this._performance,
142
+ status: status,
143
+ });
144
+ if (this.state.errMessage) {
145
+ const result = fetchErrorPanel(fetchPane, errMessage, lists[listIdx].webURL, lists[listIdx].listTitle);
146
+ return (result);
147
+ }
148
+ else if (lists.length === 0) {
149
+ return (React.createElement("div", { className: 'prop-pane-cols' },
150
+ React.createElement("h3", null, "There are no lists to show columns for.")));
151
+ }
152
+ else {
153
+ const DesignCommands = React.createElement(CommandBuilderHook, { selected: this.state.selected, updateSelected: this._updateSelected.bind(this),
154
+ // onCmdFieldClick={ this._onCmdFieldClick }
155
+ expanded: this.state.fullDesign, onExpandRight: this._toggleFullDesign.bind(this), tryCallback: this.props.tryCommands, saveCallback: this.props.saveCommands });
156
+ // createCommandBuilder( this.state.selected, this._onCmdFieldClick, this.state.fullDesign,
157
+ // this._showFieldPanel.bind(this), this._toggleFullDesign.bind(this) ) ;
158
+ const DesignViews = React.createElement(ViewBuilderHook, { expanded: this.state.fullDesign, onExpandRight: this._toggleFullDesign.bind(this), selected: this.state.selected, tryCallback: this.props.tryViews, saveCallback: this.props.saveViews });
159
+ // const SelectedTable: JSX.Element = buildSelectedFieldTable( this.state.selected, this._onKeeperClick,
160
+ // this._onDirectionClick, this._showFieldPanel.bind(this) );
161
+ const SelectedHook = React.createElement(SelectedTableHook, { updateSelected: this._updateSelected.bind(this),
162
+ // onDirectionClick={ this._onDirectionClick }
163
+ // onKeeperClick={ this._onKeeperClick }
164
+ selected: this.state.selected });
165
+ const MainPanel = MainPane(this.props, this.state, {
166
+ selectFiltered: this._selectFiltered,
167
+ onFilterClick2: this._onFilterClick2,
168
+ onTextSearch: this._onTextSearch.bind(this),
169
+ toggleDesign: this._toggleDesign.bind(this),
170
+ onSelectItem: this._onSelectItem,
171
+ onTypeClick: this._onTypeClick.bind(this),
172
+ // showFieldPanel: this._showFieldPanel.bind(this),
173
+ });
174
+ let designPane = null;
175
+ if (designMode === true) {
176
+ designPane = React.createElement("div", { className: 'design-pane' },
177
+ DesignCommands,
178
+ DesignViews,
179
+ React.createElement("div", { style: { paddingBottom: '5px', fontSize: 'smaller' } },
180
+ "CTRL-click ",
181
+ React.createElement("b", null, "Arrows"),
182
+ " to move to Top or Bottom"),
183
+ SelectedHook);
184
+ }
185
+ return (React.createElement("div", { className: ['prop-pane-cols', 'cols-results', this.state.fullDesign === true ? 'full-design' : null].join(' ') },
186
+ fetchPane,
187
+ designPane,
188
+ MainPanel));
189
+ }
190
+ }
191
+ _toggleFullDesign(status) {
192
+ const fullDesign = this.state.fullDesign === true ? false : true;
193
+ this.setState({ fullDesign: fullDesign });
194
+ }
195
+ _updateSelected(selected) {
196
+ this.setState({ selected: selected });
197
+ }
198
+ async _clickFetchFields() {
199
+ const { lists, } = this.props;
200
+ const list = lists[this.state.listIdx];
201
+ const fetch = true;
202
+ if (fetch === true) {
203
+ this._updatePerformance('fetch4', 'start', 'fetchFields', null);
204
+ const fetchState = await fetchFields(list);
205
+ this._updatePerformance('fetch4', 'update', '', fetchState.filtered.length);
206
+ this.setState(fetchState);
207
+ console.log('fetchState: finished!', fetchState);
208
+ }
209
+ }
210
+ _toggleDesign() {
211
+ const designMode = this.state.designMode === true ? false : true;
212
+ this.setState({ designMode: designMode });
213
+ }
214
+ _onTypeClick(field) {
215
+ const filterType = this.state.searchProp ? '' : field.TypeDisplayName;
216
+ this._onSearchChange('', filterType);
217
+ }
218
+ _onTextSearch(input, text = '') {
219
+ const SearchValue = typeof input === 'string' ? input : input && input.target && input.target.value ? input.target.value : '';
220
+ this._onSearchChange(SearchValue, '');
221
+ }
222
+ _onSearchChange(SearchValue, property = '') {
223
+ const SearchValueLc = SearchValue.toLocaleLowerCase();
224
+ const filtered = [];
225
+ this.state.listFields.map((field) => {
226
+ const textFound = !SearchValueLc ? 0 : field.searchTextLC.indexOf(SearchValueLc);
227
+ const propertyFound = !property ? true : field.TypeDisplayName === property;
228
+ if (textFound > -1 && propertyFound === true)
229
+ filtered.push(field);
230
+ });
231
+ const searchText = `${SearchValue}${property ? property : ''}`;
232
+ if (!SearchValueLc) {
233
+ this.setState({ filtered: filtered, searchText: searchText, searchProp: property, designMode: true });
234
+ }
235
+ else {
236
+ this.setState({ filtered: filtered, searchText: searchText, searchProp: property, designMode: true });
237
+ }
238
+ }
239
+ }
240
+ //# sourceMappingURL=PropPaneColsClass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropPaneColsClass.js","sourceRoot":"","sources":["../../../../src/components/molecules/PropPaneCols/PropPaneColsClass.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,yBAAyB,GAAG,MAAM,qDAAqD,CAAC;AAEvI,OAAO,cAAc,CAAC;AACtB,OAAO,8BAA8B,CAAC;AAEtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,kBAAkB,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,oBAAoB,GAAG,MAAM,6BAA6B,CAAC;AACpE,wEAAwE;AACxE,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAiB,kBAAkB,GAAG,MAAM,6BAA6B,CAAC;AAIjF,OAAO,E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EAAE,IAAI,EAAE,CAAC,CAAC;SACvG;IACH,CAAC;CA8BF"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=PropPaneColsHook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropPaneColsHook.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/PropPaneCols/PropPaneColsHook.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,135 @@
1
+ // import * as React from 'react';
2
+ // import { useState, useEffect } from 'react';
3
+ // import { IWeb, Web, IFieldInfo } from "@pnp/sp/presets/all";
4
+ // import "@pnp/sp/webs";
5
+ // import "@pnp/sp/clientside-pages/web";
6
+ // // import { IContentsFieldInfo, IFieldBucketInfo } from './IFieldComponentTypes';
7
+ // // import { doesObjectExistInArray, } from '../fpsReferences';
8
+ // // import { addItemToArrayIfItDoesNotExist } from '../fpsReferences';
9
+ // // import { getFullUrlFromSlashSitesUrl } from '@mikezimm/npmfunctions/dist/Services/Strings/urlServices'; // webURL = getFullUrlFromSlashSitesUrl( webURL );
10
+ // // import { getHelpfullErrorV2 } from '../fpsReferences';
11
+ // // import { isGuid, } from '../fpsReferences';
12
+ // // import { BaseErrorTrace } from '../fpsReferences'; //, [ BaseErrorTrace , 'Failed', 'try switchType ~ 324', helpfulErrorEnd ].join('|') let helpfulErrorEnd = [ myList.title, f.name, i, n ].join('|');
13
+ // export type IValidTemplate = 100 | 101;
14
+ // export interface IMinField extends IFieldInfo {
15
+ // }
16
+ // export interface IFieldPanelProps {
17
+ // webURL: string;
18
+ // listTitle: string,
19
+ // tryCommands?: any; //if function is passed down, parent web part could use this to temporarily replace the saved button commands.
20
+ // saveCommands?: any; // callback function to save current command
21
+ // tryViews?: any; //if function is passed down, parent web part could use this to temporarily replace the saved button commands.
22
+ // saveViews?: any; // callback function to save current command
23
+ // }
24
+ // const ListFieldsHook: React.FC<IFieldPanelProps> = ( props ) => {
25
+ // const {
26
+ // listTitle,
27
+ // webURL,
28
+ // } = props;
29
+ // // Got https://reactjs.org/docs/error-decoder.html/?invariant=321 on this line
30
+ // const [ status, setStatus ] = useState<string>('Nothing');
31
+ // const [ fetch, setFetch ] = useState<boolean>(false);
32
+ // const [ listFIelds, setListFields ] = useState<IMinField[]>([]);
33
+ // useEffect(() => {
34
+ // ( async () => {
35
+ // if ( fetch === true ) {
36
+ // console.log( 'ListFieldsHook: started', webURL, listTitle, fetch );
37
+ // try {
38
+ // if ( listTitle && webURL ) {
39
+ // //setListFields( await allAvailableFields( webURL, listTitle, ) );
40
+ // // const fetchWebURL = getFullUrlFromSlashSitesUrl( webURL );
41
+ // const fetchWebURL = webURL ;
42
+ // const thisWebInstance : IWeb = Web(fetchWebURL);
43
+ // const allFields : IMinField[] = await thisWebInstance.lists.getByTitle(listTitle).fields.orderBy("Title", true)();
44
+ // const FilteredFields : IMinField[] = allFields.filter( field => field.Hidden !== true );
45
+ // setListFields( FilteredFields )
46
+ // setStatus( 'Fetched columns!' );
47
+ // } else {
48
+ // setStatus('Did NOT fetch anything');
49
+ // }
50
+ // } catch (e) {
51
+ // // getHelpfullErrorV2( e , false, true, null );
52
+ // setStatus( 'Failed to fetch' );
53
+ // }
54
+ // console.log( 'ListFieldsHook: finished!', listFIelds );
55
+ // }
56
+ // });
57
+ // }, [ fetch ]); //Tried [listTitle, webURL,] but got react #321
58
+ // const fieldRows : any [] = [];
59
+ // if ( listFIelds.length > 0 ) {
60
+ // fieldRows.push(
61
+ // <tr>
62
+ // <th>Type</th>
63
+ // <th>Title</th>
64
+ // <th>InternalName</th>
65
+ // <th>Description</th>
66
+ // </tr>
67
+ // );
68
+ // listFIelds.map( ( field: IMinField ) => {
69
+ // const row = <tr>
70
+ // <td>{field.TypeDisplayName}</td>
71
+ // <td>{field.Title}</td>
72
+ // <td>{field.InternalName}</td>
73
+ // <td>{field.Description}</td>
74
+ // </tr>;
75
+ // fieldRows.push( row );
76
+ // });
77
+ // }
78
+ // const onFetchClick = (): void => {
79
+ // setFetch ( fetch === true ? false : true );
80
+ // };
81
+ // return (
82
+ // <div style ={{ padding:'15px',background: 'lightblue'}}>
83
+ // <div style={{ display: 'flex' }}>
84
+ // <button onClick={ () => onFetchClick() } >Fetch</button>
85
+ // <div>{ status }</div>
86
+ // </div>
87
+ // <table>
88
+ // { fieldRows }
89
+ // </table>
90
+ // </div>
91
+ // );
92
+ // }
93
+ // // //export async function provisionTestPage( makeThisPage: IContentsFieldInfo, readOnly: boolean, setProgress: any, markComplete: any ): Promise<IServiceLog[]>{
94
+ // // export async function allAvailableFields( webURL: string, listTitle: string, ): Promise<IMinField[] | any> { //addTheseFieldsToState: any,
95
+ // // webURL = getFullUrlFromSlashSitesUrl( webURL );
96
+ // // let allFields : IMinField[] = [];
97
+ // // let thisWebInstance : IWeb = Web(webURL);
98
+ // // allFields= await thisWebInstance.lists.getByTitle(listTitle).fields.orderBy("Title", true).get();
99
+ // // allFields = allFields.filter( field => field.Hidden !== true );
100
+ // // return allFields;
101
+ // // // try {
102
+ // // // if ( listTitle != '' ) {
103
+ // // // thisWebInstance = Web(webURL);
104
+ // // // allFields= await thisWebInstance.lists.getByTitle(listTitle).fields.orderBy("Title", true).get();
105
+ // // // allFields = allFields.filter( field => field.Hidden !== true )
106
+ // // // }
107
+ // // // } catch (e) {
108
+ // // // errMessage = getHelpfullErrorV2(e, false, true, [ , 'Failed', 'get allFields ~ 106' ].join('|') );
109
+ // // // }
110
+ // // // return { allFields: allFields, scope: scope, errMessage: errMessage } ;
111
+ // // }
112
+ // // export async function GetFieldPanel( fieldPanel: IFieldPanelProps ) {
113
+ // // const fields = await allAvailableFields( fieldPanel.webURL, fieldPanel.listTitle, null );
114
+ // // const fieldRows : any [] = [];
115
+ // // fieldRows.push(
116
+ // // <tr>
117
+ // // <th>Type</th>
118
+ // // <th>Title</th>
119
+ // // <th>InternalName</th>
120
+ // // <th>Description</th>
121
+ // // </tr>
122
+ // // )
123
+ // // fields.map( ( field: IMinField ) => {
124
+ // // const row = <tr>
125
+ // // <td>{field.TypeDisplayName}</td>
126
+ // // <td>{field.Title}</td>
127
+ // // <td>{field.InternalName}</td>
128
+ // // <td>{field.Description}</td>
129
+ // // </tr>;
130
+ // // fieldRows.push( row );
131
+ // // });
132
+ // // return fieldRows;
133
+ // // }
134
+ // export default ListFieldsHook;
135
+ //# sourceMappingURL=PropPaneColsHook.js.map