@mikezimm/fps-library-v2 1.0.150 → 1.0.152
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.md +18 -2
- package/lib/banner/components/EasyPages/componentPage.d.ts.map +1 -1
- package/lib/banner/components/EasyPages/componentPage.js +1 -1
- package/lib/banner/components/EasyPages/componentPage.js.map +1 -1
- package/lib/banner/components/EasyPages/epTypes.d.ts +1 -1
- package/lib/banner/components/EasyPages/epTypes.d.ts.map +1 -1
- package/lib/banner/components/EasyPages/epTypes.js.map +1 -1
- package/lib/banner/components/EasyPages/functions.js +1 -1
- package/lib/banner/components/EasyPages/functions.js.map +1 -1
- package/lib/components/atoms/Links/GoToLinks.d.ts +13 -0
- package/lib/components/atoms/Links/GoToLinks.d.ts.map +1 -0
- package/lib/components/atoms/Links/GoToLinks.js +31 -0
- package/lib/components/atoms/Links/GoToLinks.js.map +1 -0
- package/lib/components/atoms/WhoDunItRow/getDateStampRow.d.ts +16 -0
- package/lib/components/atoms/WhoDunItRow/getDateStampRow.d.ts.map +1 -0
- package/lib/components/atoms/WhoDunItRow/getDateStampRow.js +28 -0
- package/lib/components/atoms/WhoDunItRow/getDateStampRow.js.map +1 -0
- package/lib/components/molecules/ModernPages/Interfaces/IModernPagesProps.d.ts +26 -0
- package/lib/components/molecules/ModernPages/Interfaces/IModernPagesProps.d.ts.map +1 -0
- package/lib/components/molecules/ModernPages/Interfaces/IModernPagesProps.js +4 -0
- package/lib/components/molecules/ModernPages/Interfaces/IModernPagesProps.js.map +1 -0
- package/lib/components/molecules/ModernPages/Interfaces/ISingleModernPageProps.d.ts +18 -0
- package/lib/components/molecules/ModernPages/Interfaces/ISingleModernPageProps.d.ts.map +1 -0
- package/lib/components/molecules/ModernPages/Interfaces/ISingleModernPageProps.js +5 -0
- package/lib/components/molecules/ModernPages/Interfaces/ISingleModernPageProps.js.map +1 -0
- package/lib/components/molecules/ModernPages/ModernPages.d.ts +25 -0
- package/lib/components/molecules/ModernPages/ModernPages.d.ts.map +1 -0
- package/lib/components/molecules/ModernPages/ModernPages.js +169 -0
- package/lib/components/molecules/ModernPages/ModernPages.js.map +1 -0
- package/lib/components/molecules/ModernPages/SinglePage/LimitedVersion.d.ts +4 -0
- package/lib/components/molecules/ModernPages/SinglePage/LimitedVersion.d.ts.map +1 -0
- package/lib/components/molecules/ModernPages/SinglePage/LimitedVersion.js +33 -0
- package/lib/components/molecules/ModernPages/SinglePage/LimitedVersion.js.map +1 -0
- package/lib/components/molecules/ModernPages/SinglePage/PageDetails.d.ts +3 -0
- package/lib/components/molecules/ModernPages/SinglePage/PageDetails.d.ts.map +1 -0
- package/lib/components/molecules/ModernPages/SinglePage/PageDetails.js +28 -0
- package/lib/components/molecules/ModernPages/SinglePage/PageDetails.js.map +1 -0
- package/lib/components/molecules/ModernPages/SinglePage/SingleModernPage.d.ts +26 -0
- package/lib/components/molecules/ModernPages/SinglePage/SingleModernPage.d.ts.map +1 -0
- package/lib/components/molecules/ModernPages/SinglePage/SingleModernPage.js +181 -0
- package/lib/components/molecules/ModernPages/SinglePage/SingleModernPage.js.map +1 -0
- package/lib/components/molecules/ModernPages/SinglePage/getModernContent.d.ts +5 -0
- package/lib/components/molecules/ModernPages/SinglePage/getModernContent.d.ts.map +1 -0
- package/lib/components/molecules/ModernPages/SinglePage/getModernContent.js +53 -0
- package/lib/components/molecules/ModernPages/SinglePage/getModernContent.js.map +1 -0
- package/lib/components/molecules/ModernPages/SinglePage/processModernContent.d.ts +30 -0
- package/lib/components/molecules/ModernPages/SinglePage/processModernContent.d.ts.map +1 -0
- package/lib/components/molecules/ModernPages/SinglePage/processModernContent.js +205 -0
- package/lib/components/molecules/ModernPages/SinglePage/processModernContent.js.map +1 -0
- package/lib/components/molecules/ReactListV1/atoms/createPanelButtonsV2.d.ts +1 -1
- package/lib/components/molecules/ReactListV1/atoms/createPanelButtonsV2.d.ts.map +1 -1
- package/lib/components/molecules/ReactListV1/component/IReactListItemsProps.d.ts +1 -1
- package/lib/components/molecules/ReactListV1/component/IReactListItemsProps.d.ts.map +1 -1
- package/lib/components/molecules/ReactListV1/component/reactListView.js +2 -2
- package/lib/components/molecules/ReactListV1/component/reactListView.js.map +1 -1
- package/lib/components/molecules/SearchPage/functions/addSearchMeta1.d.ts.map +1 -1
- package/lib/components/molecules/SearchPage/functions/addSearchMeta1.js +5 -0
- package/lib/components/molecules/SearchPage/functions/addSearchMeta1.js.map +1 -1
- package/lib/components/molecules/SourceList/ItemPane/IItemPaneProps.d.ts +1 -0
- package/lib/components/molecules/SourceList/ItemPane/IItemPaneProps.d.ts.map +1 -1
- package/lib/components/molecules/SourceList/ItemPane/component.d.ts.map +1 -1
- package/lib/components/molecules/SourceList/ItemPane/component.js +60 -62
- package/lib/components/molecules/SourceList/ItemPane/component.js.map +1 -1
- package/lib/components/molecules/SourceList/ItemPane/itemEmbed.d.ts +9 -0
- package/lib/components/molecules/SourceList/ItemPane/itemEmbed.d.ts.map +1 -0
- package/lib/components/molecules/SourceList/ItemPane/itemEmbed.js +9 -0
- package/lib/components/molecules/SourceList/ItemPane/itemEmbed.js.map +1 -0
- package/lib/components/molecules/SourceList/ItemPane/itemProperties.d.ts +21 -0
- package/lib/components/molecules/SourceList/ItemPane/itemProperties.d.ts.map +1 -0
- package/lib/components/molecules/SourceList/ItemPane/itemProperties.js +124 -0
- package/lib/components/molecules/SourceList/ItemPane/itemProperties.js.map +1 -0
- package/lib/components/molecules/SourceList/SourcePanelContent.d.ts +21 -0
- package/lib/components/molecules/SourceList/SourcePanelContent.d.ts.map +1 -0
- package/lib/components/molecules/SourceList/SourcePanelContent.js +32 -0
- package/lib/components/molecules/SourceList/SourcePanelContent.js.map +1 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/pnpjs/SourceItems/index.d.ts +0 -3
- package/lib/pnpjs/SourceItems/index.d.ts.map +1 -1
- package/lib/pnpjs/SourceItems/index.js +3 -2
- package/lib/pnpjs/SourceItems/index.js.map +1 -1
- package/lib/pnpjs/index.d.ts +0 -6
- package/lib/pnpjs/index.d.ts.map +1 -1
- package/lib/pnpjs/index.js +6 -6
- package/lib/pnpjs/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Icon } from 'office-ui-fabric-react/lib/Icon';
|
|
3
|
+
require('@mikezimm/fps-styles/dist/itemPaneProps.css');
|
|
4
|
+
export function getItemProperties(props) {
|
|
5
|
+
const { primarySource, item, columns } = props;
|
|
6
|
+
if (!primarySource || !item || !columns)
|
|
7
|
+
return undefined;
|
|
8
|
+
const keys = [];
|
|
9
|
+
const propElements = [];
|
|
10
|
+
columns.map(cols => {
|
|
11
|
+
if (cols === 'Selected') {
|
|
12
|
+
keys.push('selectThese');
|
|
13
|
+
}
|
|
14
|
+
else if (cols === 'Searched') {
|
|
15
|
+
keys.push('searchProps');
|
|
16
|
+
}
|
|
17
|
+
else if (cols === 'Columns') {
|
|
18
|
+
keys.push('columns');
|
|
19
|
+
}
|
|
20
|
+
else if (cols === 'Expanded') {
|
|
21
|
+
keys.push('expandThese');
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
keys.map(key => {
|
|
25
|
+
// Declaring as any so it passes linting when mapping through possible keys
|
|
26
|
+
const primarySourceAny = primarySource;
|
|
27
|
+
const showProps = primarySourceAny[key];
|
|
28
|
+
let thesePropsList = undefined;
|
|
29
|
+
//Was doing this in original code, possibly to avoid a mutation so just doing it here to be safe.
|
|
30
|
+
const doProps = JSON.parse(JSON.stringify(showProps));
|
|
31
|
+
if (doProps && doProps.length > 0) {
|
|
32
|
+
// Loop through the item's props that match the doProps array of columns
|
|
33
|
+
thesePropsList = React.createElement("ul", null, doProps.map((field, idx) => {
|
|
34
|
+
// https://github.com/mikezimm/ALVFinMan/issues/167
|
|
35
|
+
return getValidPropLI(item, field, idx);
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
thesePropsList = React.createElement("div", null, `There are no ${key} properties.`);
|
|
40
|
+
}
|
|
41
|
+
// Create the property list element
|
|
42
|
+
const thesePropsElement = React.createElement("div", { key: key, className: 'source-itemPane-properties' },
|
|
43
|
+
React.createElement("h3", null, `${key} Properties`),
|
|
44
|
+
thesePropsList);
|
|
45
|
+
propElements.push(thesePropsElement);
|
|
46
|
+
});
|
|
47
|
+
// const searchProps: string[] = JSON.parse(JSON.stringify( primarySource.searchProps ));
|
|
48
|
+
// console.log( 'selectThese - searchProps', searchProps );
|
|
49
|
+
// const searchPropsList = primarySource && searchProps && searchProps.length > 0 ?
|
|
50
|
+
// <ul>
|
|
51
|
+
// { searchProps.map( ( field: string, idx: number ) => {
|
|
52
|
+
// // https://github.com/mikezimm/ALVFinMan/issues/167
|
|
53
|
+
// return this.getValidPropLI( item, field, idx );
|
|
54
|
+
// })}
|
|
55
|
+
// </ul> : <div>There are no Searched properties.</div>;
|
|
56
|
+
// //Created this ling hand instead of filter after the LinkColumn issue.
|
|
57
|
+
// //Filter may work but I've had it on this one trying to figure it out.
|
|
58
|
+
// const selectThese: string[] = [];
|
|
59
|
+
// primarySource.selectThese.map( (selectProp) => {
|
|
60
|
+
// if ( primarySource.searchProps.indexOf( selectProp ) < 0 ) selectThese.push( selectProp );
|
|
61
|
+
// });
|
|
62
|
+
// console.log( 'selectThese - selectThese', selectThese );
|
|
63
|
+
// const selectTheseList: JSX.Element = primarySource && selectThese && selectThese.length > 0 ?
|
|
64
|
+
// <ul>
|
|
65
|
+
// { selectThese.map(( field: string, idx: number ) => {
|
|
66
|
+
// // https://github.com/mikezimm/ALVFinMan/issues/167
|
|
67
|
+
// return this.getValidPropLI( item, field, idx );
|
|
68
|
+
// })}
|
|
69
|
+
// </ul>: <div>There are no Selected properties.</div>;
|
|
70
|
+
const itemContent = React.createElement("div", null, propElements);
|
|
71
|
+
return itemContent;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* function: getValidPropLI
|
|
75
|
+
*
|
|
76
|
+
* Created this function to resolve issue: https://github.com/mikezimm/ALVFinMan/issues/167
|
|
77
|
+
* @param showThisItem
|
|
78
|
+
* @param field
|
|
79
|
+
* @param idx
|
|
80
|
+
* @returns
|
|
81
|
+
*/
|
|
82
|
+
export function getValidPropLI(showThisItem, field, idx) {
|
|
83
|
+
var _a;
|
|
84
|
+
console.log('field', field, typeof showThisItem[field], JSON.stringify(showThisItem[field]));
|
|
85
|
+
const isLink = ((_a = showThisItem[field]) === null || _a === void 0 ? void 0 : _a.Url) ? true : false;
|
|
86
|
+
const isObject = typeof showThisItem[field] === 'object' ? true : false;
|
|
87
|
+
const isRich = typeof showThisItem[field] === 'string' && showThisItem[field].indexOf(`<div class="ExternalClass`) === 0 ? true : false;
|
|
88
|
+
if (isRich === true) {
|
|
89
|
+
return React.createElement("li", { key: idx },
|
|
90
|
+
React.createElement("div", null,
|
|
91
|
+
field,
|
|
92
|
+
":"),
|
|
93
|
+
" ",
|
|
94
|
+
React.createElement("div", { dangerouslySetInnerHTML: { __html: showThisItem[field] } }));
|
|
95
|
+
}
|
|
96
|
+
else if (isLink === true) {
|
|
97
|
+
return React.createElement("li", { key: idx },
|
|
98
|
+
React.createElement("div", null,
|
|
99
|
+
field,
|
|
100
|
+
":"),
|
|
101
|
+
" ",
|
|
102
|
+
React.createElement("div", { style: { cursor: 'pointer', fontSize: 'larger' }, onClick: () => window.open(showThisItem[field].Url, '_blank') },
|
|
103
|
+
showThisItem[field].Description,
|
|
104
|
+
React.createElement(Icon, { style: { marginLeft: '30px' }, iconName: 'OpenInNewTab' })));
|
|
105
|
+
}
|
|
106
|
+
else if (isObject === true) {
|
|
107
|
+
const obj = JSON.stringify(showThisItem[field]);
|
|
108
|
+
return React.createElement("li", { key: idx },
|
|
109
|
+
React.createElement("div", null,
|
|
110
|
+
field,
|
|
111
|
+
":"),
|
|
112
|
+
" ",
|
|
113
|
+
React.createElement("div", null, obj));
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
return React.createElement("li", { key: idx },
|
|
117
|
+
React.createElement("div", null,
|
|
118
|
+
field,
|
|
119
|
+
":"),
|
|
120
|
+
" ",
|
|
121
|
+
React.createElement("div", null, showThisItem[field]));
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=itemProperties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itemProperties.js","sourceRoot":"","sources":["../../../../../src/components/molecules/SourceList/ItemPane/itemProperties.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AAIvD,OAAO,CAAC,6CAA6C,CAAC,CAAC;AAUvD,MAAM,UAAU,iBAAiB,CAAG,KAAyB;IAE3D,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE/C,IAAK,CAAC,aAAa,IAAI,CAAC,IAAI,IAAI,CAAC,OAAO;QAAG,OAAO,SAAS,CAAC;IAE5D,MAAM,IAAI,GAAa,EAAE,CAAC;IAC1B,MAAM,YAAY,GAAkB,EAAE,CAAC;IAEvC,OAAO,CAAC,GAAG,CAAE,IAAI,CAAC,EAAE;QAClB,IAAK,IAAI,KAAK,UAAU,EAAG;YAAE,IAAI,CAAC,IAAI,CAAE,aAAa,CAAE,CAAC;SAAE;aACrD,IAAK,IAAI,KAAK,UAAU,EAAG;YAAE,IAAI,CAAC,IAAI,CAAE,aAAa,CAAE,CAAC;SAAE;aAC1D,IAAK,IAAI,KAAK,SAAS,EAAG;YAAE,IAAI,CAAC,IAAI,CAAE,SAAS,CAAE,CAAC;SAAE;aACrD,IAAK,IAAI,KAAK,UAAU,EAAG;YAAE,IAAI,CAAC,IAAI,CAAE,aAAa,CAAE,CAAC;SAAE;IACjE,CAAC,CAAC,CAAC;IAEH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GAAG,EAAE,QAAQ,CAAE;gBAAI,YAAY,CAAE,KAAK,CAAE,CAAC,WAAW;gBAAE,oBAAC,IAAI,IAAC,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,EAAC,QAAQ,EAAC,cAAc,GAAE,CAAM,CAAK,CAAE;KAEtL;SAAM,IAAK,QAAQ,KAAK,IAAI,EAAG;QAC9B,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAE,YAAY,CAAE,KAAK,CAAE,CAAE,CAAC;QACpD,OAAO,4BAAI,GAAG,EAAE,GAAG;YAAE;gBAAO,KAAK;oBAAS;;YAAC,iCAAS,GAAG,CAAQ,CAAK,CAAE;KAEvE;SAAM;QACL,OAAO,4BAAI,GAAG,EAAE,GAAG;YAAE;gBAAO,KAAK;oBAAS;;YAAC,iCAAO,YAAY,CAAE,KAAK,CAAE,CAAQ,CAAK,CAAE;KAEvF;AAEH,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IAnySourceItem } from './IAnyContent';
|
|
3
|
+
import { ISourceInfo, ISourceProps } from '../../../pnpjs/SourceItems/Interface';
|
|
4
|
+
import { ICanvasContentOptions } from '../ModernPages/Interfaces/IModernPage';
|
|
5
|
+
import { ISourceSearch } from '../SearchPage/Interfaces/ISourceSearch';
|
|
6
|
+
export type IPaneOrPage = 'ModernPage' | 'ItemPane';
|
|
7
|
+
export interface IContentPanel {
|
|
8
|
+
showItemPanel: boolean;
|
|
9
|
+
showThisItem: IAnySourceItem;
|
|
10
|
+
primarySource: ISourceProps;
|
|
11
|
+
onClosePanel: any;
|
|
12
|
+
debugMode: boolean;
|
|
13
|
+
topButtons: string[];
|
|
14
|
+
paneOrPage: IPaneOrPage;
|
|
15
|
+
refreshId: string;
|
|
16
|
+
search: ISourceSearch;
|
|
17
|
+
source: ISourceInfo;
|
|
18
|
+
canvasOptions: ICanvasContentOptions;
|
|
19
|
+
}
|
|
20
|
+
export declare function ContentPanel(props: IContentPanel): JSX.Element;
|
|
21
|
+
//# sourceMappingURL=SourcePanelContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourcePanelContent.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/SourceList/SourcePanelContent.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAMvE,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,UAAU,CAAA;AAEnD,MAAM,WAAW,aAAa;IAE5B,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,cAAc,CAAC;IAC7B,aAAa,EAAE,YAAY,CAAC;IAC5B,YAAY,EAAE,GAAG,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;IAErB,UAAU,EAAE,WAAW,CAAC;IAExB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,WAAW,CAAC;IACpB,aAAa,EAAE,qBAAqB,CAAC;CAEtC;AAED,wBAAgB,YAAY,CAAE,KAAK,EAAE,aAAa,GAAI,GAAG,CAAC,OAAO,CAqDhE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Panel, PanelType } from 'office-ui-fabric-react/lib/Panel';
|
|
3
|
+
import ItemPane from './ItemPane/component';
|
|
4
|
+
// import { ISourceInfo } from "../DataInterface";
|
|
5
|
+
// import { ICanvasContentOptions } from "../INTERFACES/IModernPage";
|
|
6
|
+
// import { IFinManSearch } from "../INTERFACES/IFinManSearch";
|
|
7
|
+
// import { IPagesContent } from "../../fpsReferences";
|
|
8
|
+
// import { IAnySourceItemFM } from "../INTERFACES/IAnySource";
|
|
9
|
+
// import { IAppFormat } from "../INTERFACES/ILayoutsPage";
|
|
10
|
+
import SingleModernPage from '../ModernPages/SinglePage/SingleModernPage';
|
|
11
|
+
export function ContentPanel(props) {
|
|
12
|
+
//Copied from ModernPages
|
|
13
|
+
const imageStyle = '';
|
|
14
|
+
let panelContent = null;
|
|
15
|
+
if (!props.showThisItem) {
|
|
16
|
+
panelContent = React.createElement("div", null, "Very strange indeed.... No item was detected...");
|
|
17
|
+
}
|
|
18
|
+
else if (props.paneOrPage === 'ItemPane') {
|
|
19
|
+
console.log('ContentPanel', props);
|
|
20
|
+
panelContent = React.createElement(ItemPane, { item: props.showThisItem, showCanvasContent1: true, source: props.source, primarySource: props.primarySource, refreshId: props.refreshId, canvasOptions: props.canvasOptions, imageStyle: imageStyle, debugMode: props.debugMode, search: props.search, topButtons: props.topButtons });
|
|
21
|
+
}
|
|
22
|
+
else if (props.paneOrPage === 'ModernPage') {
|
|
23
|
+
panelContent = React.createElement(SingleModernPage, { page: props.showThisItem, showCanvasContent1: true, source: props.primarySource, refreshId: props.refreshId, canvasOptions: props.canvasOptions, imageStyle: imageStyle, debugMode: props.debugMode });
|
|
24
|
+
// } else if ( primarySource.defType === 'account' ) {
|
|
25
|
+
}
|
|
26
|
+
const thePanel = React.createElement("div", null,
|
|
27
|
+
React.createElement(Panel, { isOpen: props.showItemPanel === true ? true : false,
|
|
28
|
+
// this prop makes the panel non-modal
|
|
29
|
+
isBlocking: true, onDismiss: props.onClosePanel, closeButtonAriaLabel: "Close", type: PanelType.large, isLightDismiss: true }, panelContent));
|
|
30
|
+
return thePanel;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=SourcePanelContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourcePanelContent.js","sourceRoot":"","sources":["../../../../src/components/molecules/SourceList/SourcePanelContent.tsx"],"names":[],"mappings":"AAAA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I,KAAK,CAAC,aAAa,EACpC,UAAU,EAAI,UAAU,EACxB,SAAS,EAAI,KAAK,CAAC,SAAS,GAC1B,CAAC;QACP,sDAAsD;KAErD;IAED,MAAM,QAAQ,GAAG;QAAK,oBAAC,KAAK,IAC1B,MAAM,EAAG,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;YACpD,sCAAsC;YACtC,UAAU,EAAE,IAAI,EAChB,SAAS,EAAG,KAAK,CAAC,YAAY,EAC9B,oBAAoB,EAAC,OAAO,EAC5B,IAAI,EAAK,SAAS,CAAC,KAAK,EACxB,cAAc,EAAK,IAAI,IAErB,YAAY,CACR,CAAM,CAAC;IAEf,OAAO,QAAQ,CAAA;AAEjB,CAAC"}
|
package/lib/index.d.ts
CHANGED
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,mCAAmC,CAAC;AAElD,cAAc,uCAAuC,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,mCAAmC,CAAC;AAElD,cAAc,uCAAuC,CAAC"}
|
package/lib/index.js
CHANGED
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAG5B,cAAc,mCAAmC,CAAC;AAElD,cAAc,uCAAuC,CAAC;AACtD,yCAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAG5B,cAAc,mCAAmC,CAAC;AAElD,cAAc,uCAAuC,CAAC;AACtD,yCAAyC;AACzC,iCAAiC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/SourceItems/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/SourceItems/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
// export type { IItemsError,IMinSourceWPProps, ISourceProps } from './Interface';
|
|
2
|
+
// export { getSourceItems } from './getSourceItems';
|
|
3
|
+
// export { prepSourceColumns } from './prepSourceColumns';
|
|
3
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/pnpjs/SourceItems/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/pnpjs/SourceItems/index.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,qDAAqD;AACrD,2DAA2D"}
|
package/lib/pnpjs/index.d.ts
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
export * from './Fields/PnpjsFieldsConstants';
|
|
2
|
-
export * from './Lists/getVX/PnpjsListGetBasic';
|
|
3
|
-
export * from './Lists/getVX/PnpjsListGetFull';
|
|
4
|
-
export * from './Logging/saveErrorToLog';
|
|
5
|
-
export * from './SourceItems';
|
|
6
|
-
export * from './Users/indexes/index';
|
|
7
1
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/pnpjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pnpjs/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pnpjs/index.ts"],"names":[],"mappings":""}
|
package/lib/pnpjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './Fields/PnpjsFieldsConstants';
|
|
2
|
-
export * from './Lists/getVX/PnpjsListGetBasic';
|
|
3
|
-
export * from './Lists/getVX/PnpjsListGetFull';
|
|
4
|
-
export * from './Logging/saveErrorToLog';
|
|
5
|
-
export * from './SourceItems';
|
|
6
|
-
export * from './Users/indexes/index';
|
|
1
|
+
// export * from './Fields/PnpjsFieldsConstants';
|
|
2
|
+
// export * from './Lists/getVX/PnpjsListGetBasic';
|
|
3
|
+
// export * from './Lists/getVX/PnpjsListGetFull';
|
|
4
|
+
// export * from './Logging/saveErrorToLog';
|
|
5
|
+
// export * from './SourceItems';
|
|
6
|
+
// export * from './Users/indexes/index';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/lib/pnpjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/pnpjs/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/pnpjs/index.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD,mDAAmD;AACnD,kDAAkD;AAElD,4CAA4C;AAC5C,iCAAiC;AACjC,yCAAyC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikezimm/fps-library-v2",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.152",
|
|
4
4
|
"description": "Library of reusable typescript/javascript functions, interfaces and constants",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@microsoft/sp-property-pane": "^1.15.2",
|
|
43
43
|
"@mikezimm/fps-pnp2": "^1.0.40",
|
|
44
|
-
"@mikezimm/fps-styles": "^1.0.
|
|
44
|
+
"@mikezimm/fps-styles": "^1.0.20",
|
|
45
45
|
"@pnp/spfx-controls-react": "3.12.0",
|
|
46
46
|
"@pnp/spfx-property-controls": "^3.6.0",
|
|
47
47
|
"office-ui-fabric-react": "^7.199.1",
|