@mikezimm/fps-library-v2 1.1.112 → 1.1.114

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 CHANGED
@@ -27,13 +27,17 @@ npm run clean
27
27
  npm run build ; npm publish --access=public
28
28
  npm version major/minor/patch
29
29
  npm publish --access=public
30
- npm install @mikezimm/fps-library-v2@1.1.112
30
+ npm install @mikezimm/fps-library-v2@1.1.114
31
31
 
32
32
  # Changelog
33
33
  NOTE: TURN BACK ON STRICT NULL CHECKS - turned off for PropPaneCols
34
34
 
35
+ ## 1.1.114 - 2023-Dec 01:
36
+ - add createListSource for creating EmptyListSource
37
+
35
38
  ## 1.1.112 - 2023-Dec 01:
36
39
  - npm install @mikezimm/fps-pnp2@1.0.58 fix result.item = saveResult.data;
40
+ - add createListSource for creating EmptyListSource
37
41
 
38
42
  ## 1.1.111 - 2023-Dec 01: createListItemAsyncV2
39
43
  - create createSaveableListItems function from Item Ninja
@@ -0,0 +1,4 @@
1
+ import { ISourceProps } from "../../SourceItems/Interface";
2
+ export declare function createListSource(webUrl: string, listTitle: string, webRelativeLink: string): ISourceProps;
3
+ export declare const DefaultListSource: ISourceProps;
4
+ //# sourceMappingURL=createListSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListSource.d.ts","sourceRoot":"","sources":["../../../../src/pnpjs/Lists/createItems/createListSource.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAI3D,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,YAAY,CAQzG;AAED,eAAO,MAAM,iBAAiB,EAAE,YAqB/B,CAAC"}
@@ -0,0 +1,35 @@
1
+ // import { ISourceProps, StandardMetaViewProps } from "./Interface";
2
+ // import { createSeriesSort } from "./createOrderBy";
3
+ // import { libraryColumns } from "../../components/molecules/AnyContent/IFPSFileObject";
4
+ import { createSeriesSort } from "../../SourceItems/createOrderBy";
5
+ export function createListSource(webUrl, listTitle, webRelativeLink) {
6
+ const Source = DefaultListSource;
7
+ Source.webUrl = webUrl;
8
+ Source.listTitle = listTitle;
9
+ Source.webRelativeLink = webRelativeLink;
10
+ // Opted against this option since it may cause other issues... just adding to FPSFetchStatus
11
+ // Source.webRelativeLink = webRelativeLink.indexOf('/') === 0 ? webRelativeLink : `/${webRelativeLink}`;
12
+ return Source;
13
+ }
14
+ export const DefaultListSource = {
15
+ key: 'files',
16
+ defType: 'Files',
17
+ fpsContentType: ['item'],
18
+ webUrl: ``,
19
+ webRelativeLink: '',
20
+ viewItemLink: ``,
21
+ searchSource: '',
22
+ searchSourceDesc: '',
23
+ listTitle: '',
24
+ editProps: [],
25
+ viewProps: [],
26
+ columns: [],
27
+ searchProps: [],
28
+ selectThese: [],
29
+ isModern: true,
30
+ defSearchButtons: [],
31
+ orderBy: createSeriesSort('idx'),
32
+ fetchCount: 5000,
33
+ performanceSettings: { label: 'Library', updateMiliseconds: true, includeMsStr: true, op: 'fetch' },
34
+ };
35
+ //# sourceMappingURL=createListSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListSource.js","sourceRoot":"","sources":["../../../../src/pnpjs/Lists/createItems/createListSource.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sDAAsD;AACtD,yFAAyF;AAGzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAGnE,MAAM,UAAU,gBAAgB,CAAC,MAAc,EAAE,SAAiB,EAAE,eAAuB;IACzF,MAAM,MAAM,GAAiB,iBAAiB,CAAC;IAC/C,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,MAAM,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,6FAA6F;IAC7F,yGAAyG;IACzG,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAiB;IAC7C,GAAG,EAAE,OAAO;IACZ,OAAO,EAAE,OAAO;IAChB,cAAc,EAAE,CAAE,MAAM,CAAE;IAC1B,MAAM,EAAE,EAAE;IACV,eAAe,EAAE,EAAE;IACnB,YAAY,EAAE,EAAE;IAChB,YAAY,EAAE,EAAE;IAChB,gBAAgB,EAAE,EAAE;IACpB,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAG;IACd,SAAS,EAAE,EAAG;IACd,OAAO,EAAE,EAAI;IACb,WAAW,EAAE,EAAI;IACjB,WAAW,EAAE,EAAI;IACjB,QAAQ,EAAE,IAAI;IACd,gBAAgB,EAAE,EAAE;IACpB,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC;IAChC,UAAU,EAAE,IAAI;IAChB,mBAAmB,EAAE,EAAG,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAG;CAEtG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikezimm/fps-library-v2",
3
- "version": "1.1.112",
3
+ "version": "1.1.114",
4
4
  "description": "Library of reusable typescript/javascript functions, interfaces and constants",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",