@mikezimm/fps-core-v7 1.0.30 → 1.0.32

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 (21) hide show
  1. package/lib/components/atoms/Inputs/ClipboardImage/ImageSave.d.ts +24 -0
  2. package/lib/components/atoms/Inputs/ClipboardImage/ImageSave.d.ts.map +1 -0
  3. package/lib/components/atoms/Inputs/ClipboardImage/ImageSave.js +83 -0
  4. package/lib/components/atoms/Inputs/ClipboardImage/ImageSave.js.map +1 -0
  5. package/lib/components/atoms/Inputs/ClipboardImage/handlePasteFiles.d.ts +14 -0
  6. package/lib/components/atoms/Inputs/ClipboardImage/handlePasteFiles.d.ts.map +1 -0
  7. package/lib/components/atoms/Inputs/ClipboardImage/handlePasteFiles.js +67 -0
  8. package/lib/components/atoms/Inputs/ClipboardImage/handlePasteFiles.js.map +1 -0
  9. package/lib/components/atoms/Inputs/ClipboardImage/handlePasteImage.d.ts +8 -0
  10. package/lib/components/atoms/Inputs/ClipboardImage/handlePasteImage.d.ts.map +1 -0
  11. package/lib/components/atoms/Inputs/ClipboardImage/handlePasteImage.js +31 -0
  12. package/lib/components/atoms/Inputs/ClipboardImage/handlePasteImage.js.map +1 -0
  13. package/lib/components/atoms/Inputs/GeoLocation/functions.d.ts +2 -1
  14. package/lib/components/atoms/Inputs/GeoLocation/functions.d.ts.map +1 -1
  15. package/lib/components/atoms/Inputs/GeoLocation/functions.js +25 -3
  16. package/lib/components/atoms/Inputs/GeoLocation/functions.js.map +1 -1
  17. package/lib/components/atoms/Inputs/GeoLocation/interfaces.d.ts +6 -5
  18. package/lib/components/atoms/Inputs/GeoLocation/interfaces.d.ts.map +1 -1
  19. package/lib/components/atoms/Inputs/GeoLocation/interfaces.js +1 -0
  20. package/lib/components/atoms/Inputs/GeoLocation/interfaces.js.map +1 -1
  21. package/package.json +1 -1
@@ -0,0 +1,24 @@
1
+ /**
2
+ * 2024-11-04: Copied from PhotoFormWebpart
3
+ * Sample functions generated by ChatGPT for handling various types of file.
4
+ * 2024-11-03: Currently not used or tested.
5
+ *
6
+ import { ISourceProps } from "../../../molecules/source-props/ISourceProps";
7
+ import { getThisFPSDigestValueFromUrl } from "../../../molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl";
8
+
9
+ import { ISourceProps } from '@mikezimm/fps-core-v7/lib/components/molecules/source-props/ISourceProps';
10
+ import { getThisFPSDigestValueFromUrl } from '@mikezimm/fps-core-v7/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl';
11
+ */
12
+ import { ISourceProps } from "../../../molecules/source-props/ISourceProps";
13
+ export declare const base64ToBlob: (base64: string) => Blob;
14
+ /**
15
+ * Recommended to use this end point for the base call to upload... or the wrapper which returns IStateSource
16
+ *
17
+ * @param ImagesSource
18
+ * @param base64
19
+ * @param fileName
20
+ * @returns
21
+ */
22
+ export declare function uploadBase64ImageToLibrary(ImagesSource: ISourceProps, base64: string, fileName: string): Promise<string | null>;
23
+ export declare function uploadImageToLibrary(ImagesSource: ISourceProps, blob: Blob, fileName: string): Promise<string | null>;
24
+ //# sourceMappingURL=ImageSave.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageSave.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/ClipboardImage/ImageSave.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAS5E,eAAO,MAAM,YAAY,WAAY,MAAM,KAAG,IAO7C,CAAA;AAED;;;;;;;GAOG;AACH,wBAAsB,0BAA0B,CAAE,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAIvI;AAGD,wBAAsB,oBAAoB,CAAC,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAgD3H"}
@@ -0,0 +1,83 @@
1
+ /**
2
+ * 2024-11-04: Copied from PhotoFormWebpart
3
+ * Sample functions generated by ChatGPT for handling various types of file.
4
+ * 2024-11-03: Currently not used or tested.
5
+ *
6
+ import { ISourceProps } from "../../../molecules/source-props/ISourceProps";
7
+ import { getThisFPSDigestValueFromUrl } from "../../../molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl";
8
+
9
+ import { ISourceProps } from '@mikezimm/fps-core-v7/lib/components/molecules/source-props/ISourceProps';
10
+ import { getThisFPSDigestValueFromUrl } from '@mikezimm/fps-core-v7/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl';
11
+ */
12
+ import { getThisFPSDigestValueFromUrl } from "../../../molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl";
13
+ // import { ISourceProps } from '@mikezimm/fps-core-v7/lib/components/molecules/source-props/ISourceProps';
14
+ // import { getThisFPSDigestValueFromUrl } from '@mikezimm/fps-core-v7/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl';
15
+ // 2024-11-02: https://github.com/fps-solutions/FPS-Photo-Form/issues/66
16
+ // Convert base64 image to a Blob
17
+ export const base64ToBlob = (base64) => {
18
+ const binary = atob(base64.split(',')[1]);
19
+ const array = [];
20
+ for (let i = 0; i < binary.length; i++) {
21
+ array.push(binary.charCodeAt(i));
22
+ }
23
+ return new Blob([new Uint8Array(array)], { type: 'image/png' });
24
+ };
25
+ /**
26
+ * Recommended to use this end point for the base call to upload... or the wrapper which returns IStateSource
27
+ *
28
+ * @param ImagesSource
29
+ * @param base64
30
+ * @param fileName
31
+ * @returns
32
+ */
33
+ export async function uploadBase64ImageToLibrary(ImagesSource, base64, fileName) {
34
+ const blob = base64ToBlob(base64);
35
+ const imageUrl = await uploadImageToLibrary(ImagesSource, blob, fileName);
36
+ return imageUrl;
37
+ }
38
+ // Upload image to SiteAssets library
39
+ export async function uploadImageToLibrary(ImagesSource, blob, fileName) {
40
+ // Destructure properties from ImagesSource for easier access
41
+ const { absoluteWebUrl, listTitle, subFolder } = ImagesSource;
42
+ // Retrieve the request digest value necessary for SharePoint authentication
43
+ const requestDigest = await getThisFPSDigestValueFromUrl(absoluteWebUrl);
44
+ // Return a new Promise for handling the asynchronous file upload
45
+ return new Promise((resolve, reject) => {
46
+ // Create a FileReader to read the Blob data
47
+ const fileReader = new FileReader();
48
+ // Event handler for when the file reading is complete
49
+ fileReader.onloadend = async () => {
50
+ // Get the result as an ArrayBuffer
51
+ const buffer = fileReader.result;
52
+ // Determine the folder path where the file will be uploaded
53
+ const folderRelativeUrl = subFolder ? `${listTitle}/${ImagesSource.subFolder}` : listTitle;
54
+ try {
55
+ // Make a POST request to the SharePoint REST API to upload the file
56
+ const response = await fetch(`${absoluteWebUrl}/_api/web/GetFolderByServerRelativeUrl('${folderRelativeUrl}')/Files/add(url='${fileName}', overwrite=true)`, {
57
+ method: 'POST',
58
+ headers: {
59
+ 'Accept': 'application/json; odata=verbose',
60
+ 'X-RequestDigest': requestDigest,
61
+ 'Content-Length': buffer.byteLength.toString() // Set content length for the upload
62
+ },
63
+ body: buffer // Set the body of the request to the ArrayBuffer
64
+ });
65
+ // Check if the response is OK (status code 200-299)
66
+ if (response.ok) {
67
+ const data = await response.json(); // Parse the JSON response
68
+ const imageUrl = data.d.ServerRelativeUrl; // Get the server-relative URL of the uploaded image
69
+ resolve(imageUrl); // Resolve the promise with the image URL
70
+ }
71
+ else {
72
+ reject(new Error('File upload failed')); // Reject if the upload fails
73
+ }
74
+ }
75
+ catch (error) {
76
+ reject(error); // Reject the promise if there’s an error during the fetch
77
+ }
78
+ };
79
+ // Start reading the Blob as an ArrayBuffer
80
+ fileReader.readAsArrayBuffer(blob);
81
+ });
82
+ }
83
+ //# sourceMappingURL=ImageSave.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageSave.js","sourceRoot":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CAAC,CAAC,0DAA0D;aAC1E;QACH,CAAC,CAAC;QAEF,2CAA2C;QAC3C,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 2024-11-04: Copied from PhotoFormWebpart
3
+ * Sample functions generated by ChatGPT for handling various types of file.
4
+ * 2024-11-03: Currently not used or tested.
5
+ *
6
+ */
7
+ export interface IClipboardHandlerOptions {
8
+ onImageData?: (data: string) => void;
9
+ onExcelData?: (data: ArrayBuffer) => void;
10
+ onTextData?: (data: string) => void;
11
+ onPowerPointData?: (data: ArrayBuffer) => void;
12
+ }
13
+ export declare const handlePaste: (e: ClipboardEvent, options: IClipboardHandlerOptions) => void;
14
+ //# sourceMappingURL=handlePasteFiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handlePasteFiles.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/ClipboardImage/handlePasteFiles.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AAEH,MAAM,WAAW,wBAAwB;IACvC,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC1C,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;CAChD;AAuCD,eAAO,MAAM,WAAW,MAAO,cAAc,WAAW,wBAAwB,KAAG,IAqBlF,CAAC"}
@@ -0,0 +1,67 @@
1
+ /**
2
+ * 2024-11-04: Copied from PhotoFormWebpart
3
+ * Sample functions generated by ChatGPT for handling various types of file.
4
+ * 2024-11-03: Currently not used or tested.
5
+ *
6
+ */
7
+ // Handle image files
8
+ const handleImage = (file, onImageData) => {
9
+ const reader = new FileReader();
10
+ reader.onloadend = function () {
11
+ onImageData(reader.result);
12
+ };
13
+ reader.readAsDataURL(file);
14
+ };
15
+ // Handle Excel files
16
+ const handleExcel = (file, onExcelData) => {
17
+ const reader = new FileReader();
18
+ reader.onloadend = function () {
19
+ onExcelData(reader.result);
20
+ };
21
+ reader.readAsArrayBuffer(file);
22
+ };
23
+ // Handle text files
24
+ const handleText = (file, onTextData) => {
25
+ const reader = new FileReader();
26
+ reader.onloadend = function () {
27
+ onTextData(reader.result);
28
+ };
29
+ reader.readAsText(file);
30
+ };
31
+ // Handle PowerPoint files
32
+ const handlePowerPoint = (file, onPowerPointData) => {
33
+ const reader = new FileReader();
34
+ reader.onloadend = function () {
35
+ onPowerPointData(reader.result);
36
+ };
37
+ reader.readAsArrayBuffer(file);
38
+ };
39
+ // Main clipboard handler
40
+ export const handlePaste = (e, options) => {
41
+ var _a;
42
+ const clipboardItems = (_a = e.clipboardData) === null || _a === void 0 ? void 0 : _a.items;
43
+ if (clipboardItems)
44
+ for (let i = 0; i < (clipboardItems === null || clipboardItems === void 0 ? void 0 : clipboardItems.length); i++) {
45
+ const item = clipboardItems[i];
46
+ const file = item.getAsFile();
47
+ if (!file)
48
+ continue; // Skip if no file is found
49
+ // Combine existence check and type check
50
+ if (options.onImageData && item.type.indexOf('image') !== -1) {
51
+ handleImage(file, options.onImageData);
52
+ }
53
+ else if (options.onExcelData && item.type.indexOf('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') !== -1) {
54
+ handleExcel(file, options.onExcelData);
55
+ }
56
+ else if (options.onTextData && item.type.indexOf('text/plain') !== -1) {
57
+ handleText(file, options.onTextData);
58
+ }
59
+ else if (options.onPowerPointData && item.type.indexOf('application/vnd.openxmlformats-officedocument.presentationml.presentation') !== -1) {
60
+ handlePowerPoint(file, options.onPowerPointData);
61
+ }
62
+ else {
63
+ console.warn('Unsupported file type');
64
+ }
65
+ }
66
+ };
67
+ //# sourceMappingURL=handlePasteFiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handlePasteFiles.js","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/ClipboardImage/handlePasteFiles.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AASH,qBAAqB;AACrB,MAAM,WAAW,GAAG,CAAC,IAAU,EAAE,WAAmC,EAAQ,EAAE;IAC5E,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;IAChC,MAAM,CAAC,SAAS,GAAG;QACjB,WAAW,CAAC,MAAM,CAAC,MAAgB,CAAC,CAAC;IACvC,CAAC,CAAC;IACF,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC7B,CAAC,CAAC;AAEF,qBAAqB;AACrB,MAAM,WAAW,GAAG,CAAC,IAAU,EAAE,WAAwC,EAAQ,EAAE;IACjF,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;IAChC,MAAM,CAAC,SAAS,GAAG;QACjB,WAAW,CAAC,MAAM,CAAC,MAAqB,CAAC,CAAC;IAC5C,CAAC,CAAC;IACF,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;AACjC,CAAC,CAAC;AAEF,oBAAoB;AACpB,MAAM,UAAU,GAAG,CAAC,IAAU,EAAE,UAAkC,EAAQ,EAAE;IAC1E,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;IAChC,MAAM,CAAC,SAAS,GAAG;QACjB,UAAU,CAAC,MAAM,CAAC,MAAgB,CAAC,CAAC;IACtC,CAAC,CAAC;IACF,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC,CAAC;AAEF,0BAA0B;AAC1B,MAAM,gBAAgB,GAAG,CAAC,IAAU,EAAE,gBAA6C,EAAQ,EAAE;IAC3F,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;IAChC,MAAM,CAAC,SAAS,GAAG;QACjB,gBAAgB,CAAC,MAAM,CAAC,MAAqB,CAAC,CAAC;IACjD,CAAC,CAAC;IACF,MAAM,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AC,gBAAgB,CAAC,CAAC;aAClD;iBAAM;gBACL,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;aACvC;SACF;AACH,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 2024-11-04: Copied from PhotoFormWebpart
3
+ * Sample functions generated by ChatGPT for handling various types of file.
4
+ * 2024-11-03: Currently tested and used in PasteFormForm.tsx in PhotoForm.
5
+ *
6
+ */
7
+ export declare function handleImagePaste(e: ClipboardEvent, setImageData: (data: string | null) => void): void;
8
+ //# sourceMappingURL=handlePasteImage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handlePasteImage.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/ClipboardImage/handlePasteImage.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AAGH,wBAAgB,gBAAgB,CAAE,CAAC,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,GAAI,IAAI,CAwBvG"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * 2024-11-04: Copied from PhotoFormWebpart
3
+ * Sample functions generated by ChatGPT for handling various types of file.
4
+ * 2024-11-03: Currently tested and used in PasteFormForm.tsx in PhotoForm.
5
+ *
6
+ */
7
+ // eslint-disable-next-line @rushstack/no-new-null
8
+ export function handleImagePaste(e, setImageData) {
9
+ var _a;
10
+ // Get the clipboard items from the event
11
+ const clipboardItems = (_a = e.clipboardData) === null || _a === void 0 ? void 0 : _a.items;
12
+ // Loop through each item in the clipboard
13
+ if (clipboardItems)
14
+ for (let i = 0; i < (clipboardItems === null || clipboardItems === void 0 ? void 0 : clipboardItems.length); i++) {
15
+ // Check if the item is an image
16
+ if (clipboardItems[i].type.indexOf('image') !== -1) {
17
+ // Get the image file from the clipboard item
18
+ const file = clipboardItems[i].getAsFile();
19
+ // Create a new FileReader instance
20
+ const reader = new FileReader();
21
+ // Define what to do when the file has been read
22
+ reader.onloadend = function () {
23
+ // Store the base64 image data
24
+ setImageData(reader.result);
25
+ };
26
+ // Start reading the image file as a Data URL (base64 format)
27
+ reader.readAsDataURL(file);
28
+ }
29
+ }
30
+ }
31
+ //# sourceMappingURL=handlePasteImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handlePasteImage.js","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/ClipboardImage/handlePasteImage.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AAEH,kDAAkD;AAClD,MAAM,UAAU,gBAAgB,CAAE,CAAiB,EAAE,YAA2C;;IAC9F,yCAAyC;IACzC,MAAM,cAAc,GAAG,MAAA,CAAC,CAAC,aAAa,0CAAE,KAAK,CAAC;IAE9C,0CAA0C;IAC1C,IAAK,cAAc;QAAG,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,MAAM,CAAA,EAAE,CAAC,EAAE,EAAE;YACrE,gCAAgC;YAChC,IAAI,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE;gBAClD,6CAA6C;gBAC7C,MAAM,IAAI,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;gBAE3C,mCAAmC;gBACnC,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;gBAEhC,gDAAgD;gBAChD,MAAM,CAAC,SAAS,GAAG;oBACjB,8BAA8B;oBAC9B,YAAY,CAAC,MAAM,CAAC,MAAgB,CAAC,CAAC;gBACxC,CAAC,CAAC;gBAEF,6DAA6D;gBAC7D,MAAM,CAAC,aAAa,CAAC,IAAY,CAAC,CAAC;aACpC;SACF;AACH,CAAC"}
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * 2024-10-31 GeoLocation code originally migrated from PhotoForm Webpart sample
3
3
  * Happy Halloween 2024!
4
+ * 2024-11-04 updated
4
5
  */
5
6
  import { IFpsGeolocationPosition } from "./interfaces";
6
7
  export declare const UnknownGeoLocation: IFpsGeolocationPosition;
7
- export declare function getGeoLocation(): Promise<IFpsGeolocationPosition>;
8
+ export declare function getGeoLocation(debugMode: boolean): Promise<IFpsGeolocationPosition>;
8
9
  //# sourceMappingURL=functions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/GeoLocation/functions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAA8B,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAEnF,eAAO,MAAM,kBAAkB,EAAE,uBAOhC,CAAC;AAEF,wBAAgB,cAAc,IAAI,OAAO,CAAC,uBAAuB,CAAC,CA4BjE"}
1
+ {"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/GeoLocation/functions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAA8B,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAEnF,eAAO,MAAM,kBAAkB,EAAE,uBAOhC,CAAC;AAEF,wBAAgB,cAAc,CAAE,SAAS,EAAE,OAAO,GAAI,OAAO,CAAC,uBAAuB,CAAC,CA0CrF"}
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * 2024-10-31 GeoLocation code originally migrated from PhotoForm Webpart sample
3
3
  * Happy Halloween 2024!
4
+ * 2024-11-04 updated
4
5
  */
5
6
  export const UnknownGeoLocation = {
6
7
  timestamp: new Date().getTime(),
@@ -8,20 +9,39 @@ export const UnknownGeoLocation = {
8
9
  coords: {},
9
10
  status: 'Unknown',
10
11
  message: '',
11
- error: null,
12
+ error: undefined,
12
13
  };
13
- export function getGeoLocation() {
14
+ export function getGeoLocation(debugMode) {
14
15
  return new Promise((resolve, reject) => {
16
+ if (debugMode)
17
+ alert(`debugMode getGeoLocation ~ 19`);
15
18
  let result = JSON.parse(JSON.stringify(UnknownGeoLocation));
19
+ if (debugMode)
20
+ alert(`debugMode getGeoLocation ~ 21`);
16
21
  if (navigator.geolocation) {
17
22
  navigator.geolocation.getCurrentPosition((position) => {
23
+ if (debugMode)
24
+ alert(`debugMode getGeoLocation ~ 25`);
18
25
  result = JSON.parse(JSON.stringify(position));
26
+ if (debugMode)
27
+ alert(`debugMode getGeoLocation ~ 27`);
19
28
  result.status = 'Success';
20
29
  result.localTime = new Date(result.timestamp).toLocaleString();
21
- result.message = `@${result.localTime}`;
30
+ // https://github.com/fps-solutions/FPS-Photo-Form/issues/68
31
+ if (result.localTime.indexOf('Invalid') > -1) {
32
+ result.status = 'Error';
33
+ result.error = { code: 2, message: 'Invalid Time' };
34
+ }
35
+ result.message = `${result.localTime}`;
36
+ if (debugMode)
37
+ alert(`debugMode getGeoLocation ~ 31: ${JSON.stringify(result)}`);
22
38
  resolve(result); // Resolve the promise with the result
23
39
  }, (error) => {
40
+ if (debugMode)
41
+ alert(`debugMode getGeoLocation ~ 35`);
24
42
  console.error('Error obtaining location:', error);
43
+ if (debugMode)
44
+ alert(`debugMode getGeoLocation ~ 37: ${error.message}`);
25
45
  result.status = 'Error';
26
46
  result.error = error;
27
47
  result.message = error.message;
@@ -32,6 +52,8 @@ export function getGeoLocation() {
32
52
  else {
33
53
  result.status = 'Error';
34
54
  result.message = 'Geolocation is not supported by this browser.';
55
+ if (debugMode)
56
+ alert(`debugMode getGeoLocation ~ 48: ${result.message}`);
35
57
  reject(result); // Reject the promise
36
58
  }
37
59
  });
@@ -1 +1 @@
1
- {"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/GeoLocation/functions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAA4B;IACzD,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE;IAC/B,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,cAAc,EAAE;IACtC,MAAM,EAAE,EAAgC;IACxC,MAAM,EAAE,SA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AqB;SACtC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/GeoLocation/functions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAA4B;IACzD,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE;IAC/B,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,cAAc,EAAE;IACtC,MAAM,EAAE,EAAgC;IACxC,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,SAAS;CACjB,CAAC;AAEF,MAAM,UAAU,cAAc,CAAE,SAAkB;IAChD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,IAAK,SAAS;YAAG,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACxD,IAAI,MAAM,GAA4B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC,CAAC;QACrF,IAAK,SAAS;YAAG,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACxD,IAAI,SAAS,CAAC,WAAW,EAAE;YACzB,SAAS,CAAC,WAAW,CAAC,kBAAkB,CACtC,CAAC,QAAQ,EAAE,EAAE;gBACX,IAAK,SAAS;oBAAG,KAAK,CAAC,+BAA+B,CAAC,CAAC;gBACxD,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;gBAC9C,IAAK,SAAS;oBAAG,KAAK,CAAC,+BAA+B,CAAC,CAAC;gBACxD,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC;gBAE1B,MAAM,CAAC,SAAS,GAAG,IAAI,IAAI,CAAE,MAAM,CAAC,SAAS,CAAE,CAAC,cAAc,EAAE,CAAC;gBACjE,4DAA4D;gBAC5D,IAAK,MAAM,CAAC,SAAS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
  /**
2
2
  * 2024-10-31 GeoLocation code originally migrated from PhotoForm Webpart sample
3
3
  * Happy Halloween 2024!
4
+ * 2024-11-04 updated
4
5
  */
5
6
  import { IReactCSSProperties } from "../../../../types/react/IReactCSSTypes";
6
7
  /**
@@ -24,16 +25,16 @@ export interface IFpsGeolocationPosition {
24
25
  coords: IFpsGeolocationCoordinates;
25
26
  status: string;
26
27
  message: string;
27
- error: IFpsGeolocationPositionError | null;
28
+ error: IFpsGeolocationPositionError | undefined;
28
29
  }
29
30
  export interface IFpsGeolocationCoordinates {
30
31
  accuracy: number;
31
32
  latitude: number;
32
33
  longitude: number;
33
- altitude: number | null;
34
- altitudeAccuracy: number | null;
35
- heading: number | null;
36
- speed: number | null;
34
+ altitude: number | undefined;
35
+ altitudeAccuracy: number | undefined;
36
+ heading: number | undefined;
37
+ speed: number | undefined;
37
38
  }
38
39
  export interface IFpsGeolocationPositionError {
39
40
  code: IFpsGeolocationPositionErrorCode;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/GeoLocation/interfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE7E;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,CAAE,QAAQ,EAAE,uBAAuB,KAAM,IAAI,CAAC;IAC9D,QAAQ,CAAC,EAAE,CAAE,QAAQ,EAAE,uBAAuB,KAAM,IAAI,CAAC;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,0BAA0B,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,4BAA4B,GAAG,IAAI,CAAC;CAC5C;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,gCAAgC,CAAC;IACvC,OAAO,EAAE,MAAM,CAAC;IAEhB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAGD,oBAAY,gCAAgC;IAC1C,iBAAiB,IAAI;IACrB,oBAAoB,IAAI;IACxB,OAAO,IAAI;CACZ"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/GeoLocation/interfaces.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE7E;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,CAAE,QAAQ,EAAE,uBAAuB,KAAM,IAAI,CAAC;IAC9D,QAAQ,CAAC,EAAE,CAAE,QAAQ,EAAE,uBAAuB,KAAM,IAAI,CAAC;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,0BAA0B,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,4BAA4B,GAAG,SAAS,CAAC;CACjD;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,gCAAgC,CAAC;IACvC,OAAO,EAAE,MAAM,CAAC;IAEhB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAGD,oBAAY,gCAAgC;IAC1C,iBAAiB,IAAI;IACrB,oBAAoB,IAAI;IACxB,OAAO,IAAI;CACZ"}
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * 2024-10-31 GeoLocation code originally migrated from PhotoForm Webpart sample
3
3
  * Happy Halloween 2024!
4
+ * 2024-11-04 updated
4
5
  */
5
6
  // Define the error codes as an enum for better type safety
6
7
  export var IFpsGeolocationPositionErrorCode;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/GeoLocation/interfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAgDH,2DAA2D;AAC3D,MAAM,CAAN,IAAY,gCAIX;AAJD,WAAY,gCAAgC;IAC1C,iHAAqB,CAAA;IACrB,uHAAwB,CAAA;IACxB,6FAAW,CAAA;AACb,CAAC,EAJW,gCAAgC,KAAhC,gCAAgC,QAI3C"}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/GeoLocation/interfaces.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAgDH,2DAA2D;AAC3D,MAAM,CAAN,IAAY,gCAIX;AAJD,WAAY,gCAAgC;IAC1C,iHAAqB,CAAA;IACrB,uHAAwB,CAAA;IACxB,6FAAW,CAAA;AACb,CAAC,EAJW,gCAAgC,KAAhC,gCAAgC,QAI3C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikezimm/fps-core-v7",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "Library of reusable core interfaces, types and constants migrated from fps-library-v2",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",