@mikezimm/fps-library-v2 1.0.148 → 1.0.150
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 +52 -27
- package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardProps.d.ts +12 -0
- package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardProps.d.ts.map +1 -0
- package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardProps.js +2 -0
- package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardProps.js.map +1 -0
- package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardState.d.ts +5 -0
- package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardState.d.ts.map +1 -0
- package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardState.js +2 -0
- package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardState.js.map +1 -0
- package/lib/components/atoms/PersonaCard/Interfaces/IUserProperties.d.ts +13 -0
- package/lib/components/atoms/PersonaCard/Interfaces/IUserProperties.d.ts.map +1 -0
- package/lib/components/atoms/PersonaCard/Interfaces/IUserProperties.js +2 -0
- package/lib/components/atoms/PersonaCard/Interfaces/IUserProperties.js.map +1 -0
- package/lib/components/atoms/PersonaCard/Interfaces/StandardPersonIconNames.d.ts +5 -0
- package/lib/components/atoms/PersonaCard/Interfaces/StandardPersonIconNames.d.ts.map +1 -0
- package/lib/components/atoms/PersonaCard/Interfaces/StandardPersonIconNames.js +5 -0
- package/lib/components/atoms/PersonaCard/Interfaces/StandardPersonIconNames.js.map +1 -0
- package/lib/components/atoms/PersonaCard/PersonaCard.d.ts +57 -0
- package/lib/components/atoms/PersonaCard/PersonaCard.d.ts.map +1 -0
- package/lib/components/atoms/PersonaCard/PersonaCard.js +233 -0
- package/lib/components/atoms/PersonaCard/PersonaCard.js.map +1 -0
- package/lib/components/atoms/PersonaCard/PersonaIcons.d.ts +4 -0
- package/lib/components/atoms/PersonaCard/PersonaIcons.d.ts.map +1 -0
- package/lib/components/atoms/PersonaCard/PersonaIcons.js +16 -0
- package/lib/components/atoms/PersonaCard/PersonaIcons.js.map +1 -0
- package/lib/components/atoms/PersonaCard/PersonaRow.d.ts +54 -0
- package/lib/components/atoms/PersonaCard/PersonaRow.d.ts.map +1 -0
- package/lib/components/atoms/PersonaCard/PersonaRow.js +116 -0
- package/lib/components/atoms/PersonaCard/PersonaRow.js.map +1 -0
- package/lib/components/atoms/Suggestions/ISuggestion.d.ts +14 -0
- package/lib/components/atoms/Suggestions/ISuggestion.d.ts.map +1 -0
- package/lib/components/atoms/Suggestions/ISuggestion.js +5 -0
- package/lib/components/atoms/Suggestions/ISuggestion.js.map +1 -0
- package/lib/components/atoms/Suggestions/SuggestionsSample-Labels.d.ts +17 -0
- package/lib/components/atoms/Suggestions/SuggestionsSample-Labels.d.ts.map +1 -0
- package/lib/components/atoms/Suggestions/SuggestionsSample-Labels.js +89 -0
- package/lib/components/atoms/Suggestions/SuggestionsSample-Labels.js.map +1 -0
- package/lib/components/atoms/Suggestions/convertSugsLC.d.ts +10 -0
- package/lib/components/atoms/Suggestions/convertSugsLC.d.ts.map +1 -0
- package/lib/components/atoms/Suggestions/convertSugsLC.js +18 -0
- package/lib/components/atoms/Suggestions/convertSugsLC.js.map +1 -0
- package/lib/components/atoms/Suggestions/getSuggestionsByKeys.d.ts +7 -0
- package/lib/components/atoms/Suggestions/getSuggestionsByKeys.d.ts.map +1 -0
- package/lib/components/atoms/Suggestions/getSuggestionsByKeys.js +54 -0
- package/lib/components/atoms/Suggestions/getSuggestionsByKeys.js.map +1 -0
- package/lib/components/atoms/WordSummary/IWordSummary.d.ts +19 -0
- package/lib/components/atoms/WordSummary/IWordSummary.d.ts.map +1 -0
- package/lib/components/atoms/WordSummary/IWordSummary.js +2 -0
- package/lib/components/atoms/WordSummary/IWordSummary.js.map +1 -0
- package/lib/components/atoms/WordSummary/buildWordSummary.d.ts +5 -0
- package/lib/components/atoms/WordSummary/buildWordSummary.d.ts.map +1 -0
- package/lib/components/atoms/WordSummary/buildWordSummary.js +67 -0
- package/lib/components/atoms/WordSummary/buildWordSummary.js.map +1 -0
- package/lib/components/molecules/ModernPages/Interfaces/IModernPage.d.ts +25 -0
- package/lib/components/molecules/ModernPages/Interfaces/IModernPage.d.ts.map +1 -0
- package/lib/components/molecules/ModernPages/Interfaces/IModernPage.js +13 -0
- package/lib/components/molecules/ModernPages/Interfaces/IModernPage.js.map +1 -0
- package/lib/components/molecules/SearchPage/Interfaces/ISourceSearch.d.ts +1 -0
- package/lib/components/molecules/SearchPage/Interfaces/ISourceSearch.d.ts.map +1 -1
- package/lib/components/molecules/SearchPage/component/SearchBoxRow.d.ts +18 -0
- package/lib/components/molecules/SearchPage/component/SearchBoxRow.d.ts.map +1 -0
- package/lib/components/molecules/SearchPage/component/SearchBoxRow.js +25 -0
- package/lib/components/molecules/SearchPage/component/SearchBoxRow.js.map +1 -0
- package/lib/components/molecules/SearchPage/functions/getFilteredV1.d.ts +20 -0
- package/lib/components/molecules/SearchPage/functions/getFilteredV1.d.ts.map +1 -0
- package/lib/components/molecules/SearchPage/functions/getFilteredV1.js +127 -0
- package/lib/components/molecules/SearchPage/functions/getFilteredV1.js.map +1 -0
- package/lib/components/molecules/SourceList/ItemPane/IItemPaneProps.d.ts +30 -0
- package/lib/components/molecules/SourceList/ItemPane/IItemPaneProps.d.ts.map +1 -0
- package/lib/components/molecules/SourceList/ItemPane/IItemPaneProps.js +2 -0
- package/lib/components/molecules/SourceList/ItemPane/IItemPaneProps.js.map +1 -0
- package/lib/components/molecules/SourceList/ItemPane/component.d.ts +36 -0
- package/lib/components/molecules/SourceList/ItemPane/component.d.ts.map +1 -0
- package/lib/components/molecules/SourceList/ItemPane/component.js +263 -0
- package/lib/components/molecules/SourceList/ItemPane/component.js.map +1 -0
- package/lib/logic/Regex/constants.d.ts +12 -0
- package/lib/logic/Regex/constants.d.ts.map +1 -1
- package/lib/logic/Regex/constants.js +13 -0
- package/lib/logic/Regex/constants.js.map +1 -1
- package/lib/logic/Strings/getStringArrayBasic.d.ts +26 -0
- package/lib/logic/Strings/getStringArrayBasic.d.ts.map +1 -0
- package/lib/logic/Strings/getStringArrayBasic.js +42 -0
- package/lib/logic/Strings/getStringArrayBasic.js.map +1 -0
- package/lib/logic/Strings/getWordsFromString.d.ts +15 -0
- package/lib/logic/Strings/getWordsFromString.d.ts.map +1 -1
- package/lib/logic/Strings/getWordsFromString.js +29 -7
- package/lib/logic/Strings/getWordsFromString.js.map +1 -1
- package/lib/logic/Time/getFPSPrefNavLang.js +1 -1
- package/lib/logic/Time/getFPSPrefNavLang.js.map +1 -1
- package/lib/pnpjs/SourceItems/Interface.d.ts +3 -0
- package/lib/pnpjs/SourceItems/Interface.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* get array of strings only (aka words) from the item proprty
|
|
4
|
+
Original code:
|
|
5
|
+
const keyVals: string[] = item[key].replace(/[0-9]/g, " ").split(/\b([a-z]+)\b/gi);
|
|
6
|
+
*
|
|
7
|
+
https://github.com/mikezimm/Compliance/issues/138
|
|
8
|
+
*
|
|
9
|
+
Test code: resulting in ["test","i","ng","as","dfasd","asdf"]
|
|
10
|
+
const item = 'test1234~321i~ng as?!_$dfasd. -++[asdf];?~!&^$%...,;'
|
|
11
|
+
const keyVals = item.replace(/[0-9.,;:?~!&^$%+_[\]-]/g, " ").replace(/\s\s+/g, ' ').split(/\b([a-z]+)\b/gi).filter( v => v.trim() !== '' );
|
|
12
|
+
console.log( keyVals )
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
* getStringArrayBasic is a simpler variation of getArrayOfWordsFromString
|
|
16
|
+
* This will use exact case and not filter duplicates .
|
|
17
|
+
* Finally it does not do any sorting.
|
|
18
|
+
*
|
|
19
|
+
* You can use getArrayOfWordsFromString IF YOU NEED any of those advanced options.
|
|
20
|
+
*
|
|
21
|
+
* @param baseStr
|
|
22
|
+
* @param removeDigits
|
|
23
|
+
* @returns
|
|
24
|
+
*/
|
|
25
|
+
export declare function getStringArrayBasic(baseStr: string, removeDigits: boolean): string[];
|
|
26
|
+
//# sourceMappingURL=getStringArrayBasic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStringArrayBasic.d.ts","sourceRoot":"","sources":["../../../src/logic/Strings/getStringArrayBasic.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,mBAAmB,CAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,GAAI,MAAM,EAAE,CAqBtF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* get array of strings only (aka words) from the item proprty
|
|
4
|
+
Original code:
|
|
5
|
+
const keyVals: string[] = item[key].replace(/[0-9]/g, " ").split(/\b([a-z]+)\b/gi);
|
|
6
|
+
*
|
|
7
|
+
https://github.com/mikezimm/Compliance/issues/138
|
|
8
|
+
*
|
|
9
|
+
Test code: resulting in ["test","i","ng","as","dfasd","asdf"]
|
|
10
|
+
const item = 'test1234~321i~ng as?!_$dfasd. -++[asdf];?~!&^$%...,;'
|
|
11
|
+
const keyVals = item.replace(/[0-9.,;:?~!&^$%+_[\]-]/g, " ").replace(/\s\s+/g, ' ').split(/\b([a-z]+)\b/gi).filter( v => v.trim() !== '' );
|
|
12
|
+
console.log( keyVals )
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
* getStringArrayBasic is a simpler variation of getArrayOfWordsFromString
|
|
16
|
+
* This will use exact case and not filter duplicates .
|
|
17
|
+
* Finally it does not do any sorting.
|
|
18
|
+
*
|
|
19
|
+
* You can use getArrayOfWordsFromString IF YOU NEED any of those advanced options.
|
|
20
|
+
*
|
|
21
|
+
* @param baseStr
|
|
22
|
+
* @param removeDigits
|
|
23
|
+
* @returns
|
|
24
|
+
*/
|
|
25
|
+
export function getStringArrayBasic(baseStr, removeDigits) {
|
|
26
|
+
if (!baseStr)
|
|
27
|
+
return [];
|
|
28
|
+
if (removeDigits === true)
|
|
29
|
+
baseStr = baseStr.replace(/[0-9]/g, ' ');
|
|
30
|
+
baseStr = baseStr.replace(/[.,;:?~!&^$%+_[\]-]+/g, ' '); // Replace most common special characters
|
|
31
|
+
baseStr = baseStr.replace(/[()]+/g, ' '); // Replace most common special characters
|
|
32
|
+
baseStr = baseStr.replace(/[/\\]+/g, ' '); // Replace most common special characters
|
|
33
|
+
baseStr = baseStr.replace(/[']+/g, ' '); // Replace most common special characters
|
|
34
|
+
baseStr = baseStr.replace(/\s\s+/g, ' '); // Replace multiple spaces with just one
|
|
35
|
+
// get array of original trimmed words and exclude empties
|
|
36
|
+
const originalWords = baseStr.split(/\b([a-z]+)\b/gi)
|
|
37
|
+
.map(word => { return word.trim(); }).filter(word => { return word; });
|
|
38
|
+
// NOTE: getSuggestionsByKeys used this code which may also be valid... seemed to work in testing
|
|
39
|
+
// .filter( ( v: string ) => v.trim() !== '' ); // then remove spaces and empties
|
|
40
|
+
return originalWords;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=getStringArrayBasic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStringArrayBasic.js","sourceRoot":"","sources":["../../../src/logic/Strings/getStringArrayBasic.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,mBAAmB,CAAE,OAAe,EAAE,YAAqB;IAEzE,IAAK,CAAC,OAAO;QAAG,OAAO,EAAE,CAAC;IAE1B,IAAK,YAAY,KAAK,IAAI;QAAG,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACtE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAE,uBAAuB,EAAE,GAAG,CAAE,CAAC,CAAC,yCAAyC;IACpG,OAAO,GAAG,OAAO,CAAC,OAAO,CAAE,QAAQ,EAAE,GAAG,CAAE,CAAC,CAAC,yCAAyC;IACrF,OAAO,GAAG,OAAO,CAAC,OAAO,CAAE,SAAS,EAAE,GAAG,CAAE,CAAC,CAAC,yCAAyC;IACtF,OAAO,GAAG,OAAO,CAAC,OAAO,CAAE,OAAO,EAAE,GAAG,CAAE,CAAC,CAAC,yCAAyC;IAEpF,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,wCAAwC;IAElF,0DAA0D;IAC1D,MAAM,aAAa,GAAa,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC;SAC5D,GAAG,CAAE,IAAI,CAAC,EAAE,GAAG,OAAO,IAAI,CAAC,IAAI,EAAE,CAAA,CAAC,CAAC,CAAE,CAAC,MAAM,CAAE,IAAI,CAAC,EAAE,GAAG,OAAO,IAAI,CAAA,CAAC,CAAC,CAAE,CAAC;IAEzE,kGAAkG;IAClG,iFAAiF;IAEnF,OAAO,aAAa,CAAC;AAEvB,CAAC"}
|
|
@@ -2,12 +2,27 @@ import { ISeriesSort } from "../../logic/Arrays/sorting/Interfaces";
|
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* Originally used in Compliance to get list of words from a string
|
|
5
|
+
* Updated 2023-03-28
|
|
5
6
|
*
|
|
6
7
|
* @param str
|
|
7
8
|
* @param removeDigits
|
|
8
9
|
* @returns array of words found
|
|
9
10
|
*/
|
|
10
11
|
export declare function mergeArrayOfWordsFromString(str: string, intoThese: string[], removeDigits: boolean, removeDups: boolean, ignoreCase: boolean, order: ISeriesSort, localLanguage?: string): string[];
|
|
12
|
+
/**
|
|
13
|
+
* getArrayOfWordsFromString is a more advanced variation of getStringArrayBasic
|
|
14
|
+
* This will check for duplicates and also allow for using or ignoring case.
|
|
15
|
+
* Finally it also provides a built in option to sort.
|
|
16
|
+
*
|
|
17
|
+
* You can use getStringArrayBasic if you do not need any of those advanced options but to just split into words.
|
|
18
|
+
* @param str
|
|
19
|
+
* @param removeDigits
|
|
20
|
+
* @param removeDups
|
|
21
|
+
* @param ignoreCase
|
|
22
|
+
* @param order
|
|
23
|
+
* @param localLanguage
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
11
26
|
export declare function getArrayOfWordsFromString(str: string, removeDigits: boolean, removeDups: boolean, ignoreCase: boolean, order: ISeriesSort, localLanguage?: string): string[];
|
|
12
27
|
export declare function mergeWordArrays(mergeThese: string[], intoThese: string[], ignoreCase: boolean, order: ISeriesSort, localLanguage?: string): string[];
|
|
13
28
|
//# sourceMappingURL=getWordsFromString.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWordsFromString.d.ts","sourceRoot":"","sources":["../../../src/logic/Strings/getWordsFromString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAIpE
|
|
1
|
+
{"version":3,"file":"getWordsFromString.d.ts","sourceRoot":"","sources":["../../../src/logic/Strings/getWordsFromString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAIpE;;;;;;;;GAQG;AAEH,wBAAgB,2BAA2B,CAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,aAAa,GAAE,MAAa,GAAI,MAAM,EAAE,CAO3M;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,yBAAyB,CAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,aAAa,GAAE,MAAa,GAAI,MAAM,EAAE,CAiDpL;AAED,wBAAgB,eAAe,CAAE,UAAU,EAAE,MAAM,EAAE,EAAE,SAAS,EAAC,MAAM,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,aAAa,GAAE,MAAa,GAAI,MAAM,EAAE,CAiB3J"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { sortStringArrayCollator } from "../../logic/Arrays/sorting/strings";
|
|
2
|
+
import { getStringArrayBasic } from "./getStringArrayBasic";
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
* Originally used in Compliance to get list of words from a string
|
|
6
|
+
* Updated 2023-03-28
|
|
5
7
|
*
|
|
6
8
|
* @param str
|
|
7
9
|
* @param removeDigits
|
|
@@ -14,14 +16,34 @@ export function mergeArrayOfWordsFromString(str, intoThese, removeDigits, remove
|
|
|
14
16
|
const results = mergeWordArrays(theseWords, intoThese, ignoreCase, order, localLanguage);
|
|
15
17
|
return results;
|
|
16
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* getArrayOfWordsFromString is a more advanced variation of getStringArrayBasic
|
|
21
|
+
* This will check for duplicates and also allow for using or ignoring case.
|
|
22
|
+
* Finally it also provides a built in option to sort.
|
|
23
|
+
*
|
|
24
|
+
* You can use getStringArrayBasic if you do not need any of those advanced options but to just split into words.
|
|
25
|
+
* @param str
|
|
26
|
+
* @param removeDigits
|
|
27
|
+
* @param removeDups
|
|
28
|
+
* @param ignoreCase
|
|
29
|
+
* @param order
|
|
30
|
+
* @param localLanguage
|
|
31
|
+
* @returns
|
|
32
|
+
*/
|
|
17
33
|
export function getArrayOfWordsFromString(str, removeDigits, removeDups, ignoreCase, order, localLanguage = 'en') {
|
|
18
34
|
const results = [];
|
|
19
35
|
if (!str)
|
|
20
36
|
return results;
|
|
21
|
-
let baseStr = `${str}`;
|
|
22
|
-
if (removeDigits === true)
|
|
23
|
-
|
|
24
|
-
|
|
37
|
+
// let baseStr = `${str}`;
|
|
38
|
+
// if ( removeDigits === true ) baseStr = baseStr.replace(/[0-9]/g, ' ');
|
|
39
|
+
// baseStr = baseStr.replace( /[-_,&[\]]+/g, ' ' ); // Replace most common special characters
|
|
40
|
+
// baseStr = baseStr.replace( /[()]+/g, ' ' ); // Replace most common special characters
|
|
41
|
+
// baseStr = baseStr.replace( /[/\\]+/g, ' ' ); // Replace most common special characters
|
|
42
|
+
// baseStr = baseStr.replace( /[']+/g, ' ' ); // Replace most common special characters
|
|
43
|
+
// baseStr = baseStr.replace(/\s\s+/g, ' '); // Replace multiple spaces with just one
|
|
44
|
+
// // get array of original trimmed words and exclude empties
|
|
45
|
+
// const originalWords: string[] = baseStr.split(/\b([a-z]+)\b/gi).map( word => { return word.trim() } ).filter( word => { return word } );
|
|
46
|
+
const originalWords = getStringArrayBasic(`${str}`, removeDigits);
|
|
25
47
|
// Correct case of compare array of strings from str
|
|
26
48
|
let originalCompareWords = ignoreCase === true ? originalWords.map(item => { return item.toLocaleLowerCase(); }) : originalWords;
|
|
27
49
|
originalCompareWords = removeDups === true ? originalCompareWords.filter(item => { return item.toLocaleLowerCase(); }) : originalCompareWords;
|
|
@@ -49,9 +71,9 @@ export function getArrayOfWordsFromString(str, removeDigits, removeDups, ignoreC
|
|
|
49
71
|
return finalVals;
|
|
50
72
|
}
|
|
51
73
|
export function mergeWordArrays(mergeThese, intoThese, ignoreCase, order, localLanguage = 'en') {
|
|
52
|
-
let finalWords =
|
|
53
|
-
const finalCompareWords = ignoreCase === true ? finalWords.map(item => { return item.toLocaleLowerCase(); }) :
|
|
54
|
-
const mergeTheseCompare = ignoreCase === true ? mergeThese.map(item => { return item.toLocaleLowerCase(); }) :
|
|
74
|
+
let finalWords = intoThese;
|
|
75
|
+
const finalCompareWords = ignoreCase === true ? finalWords.map(item => { return item.toLocaleLowerCase(); }) : finalWords;
|
|
76
|
+
const mergeTheseCompare = ignoreCase === true ? mergeThese.map(item => { return item.toLocaleLowerCase(); }) : mergeThese;
|
|
55
77
|
// Now compare the filteredNewWords with the finalWords and only add ones that are not a duplicate.
|
|
56
78
|
mergeTheseCompare.map((compareWord, index) => {
|
|
57
79
|
if (finalCompareWords.indexOf(compareWord) === -1) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWordsFromString.js","sourceRoot":"","sources":["../../../src/logic/Strings/getWordsFromString.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"getWordsFromString.js","sourceRoot":"","sources":["../../../src/logic/Strings/getWordsFromString.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;;;;;;GAQG;AAEH,MAAM,UAAU,2BAA2B,CAAE,GAAW,EAAE,SAAmB,EAAE,YAAqB,EAAE,UAAmB,EAAE,UAAmB,EAAE,KAAkB,EAAE,gBAAwB,IAAI;IAE9L,IAAK,CAAC,GAAG;QAAG,OAAO,EAAE,CAAC;IACtB,MAAM,UAAU,GAAa,yBAAyB,CAAE,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,CAAE,CAAC;IAC1H,MAAM,OAAO,GAAa,eAAe,CAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,CAAE,CAAC;IACrG,OAAO,OAAO,CAAC;AAEjB,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,yBAAyB,CAAE,GAAW,EAAE,YAAqB,EAAE,UAAmB,EAAE,UAAmB,EAAE,KAAkB,EAAE,gBAAwB,IAAI;IACvK,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAK,CAAC,GAAG;QAAG,OAAO,OAAO,CAAC;IAC3B,0BAA0B;IAC1B,yEAAyE;IACzE,6FAA6F;IAC7F,wFAAwF;IACxF,yFAAyF;IACzF,uFAAuF;IAEvF,qFAAqF;IAErF,6DAA6D;IAC7D,2IAA2I;IAE3I,MAAM,aAAa,GAAa,mBA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B,CAAC;AAED,MAAM,UAAU,eAAe,CAAE,UAAoB,EAAE,SAAkB,EAAE,UAAmB,EAAE,KAAkB,EAAE,gBAAwB,IAAI;IAC9I,IAAI,UAAU,GAAa,SAAS,CAAC;IACrC,MAAM,iBAAiB,GAAa,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAE,IAAI,CAAC,EAAE,GAAG,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAA,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,UAAU,CAAC;IACrI,MAAM,iBAAiB,GAAa,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAE,IAAI,CAAC,EAAE,GAAG,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAA,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,UAAU,CAAC;IAEnI,mGAAmG;IACnG,iBAAiB,CAAC,GAAG,CAAE,CAAE,WAAmB,EAAE,KAAa,EAAG,EAAE;QAC9D,IAAK,iBAAiB,CAAC,OAAO,CAAE,WAAW,CAAE,KAAK,CAAC,CAAC,EAAG;YACrD,UAAU,CAAC,IAAI,CAAE,UAAU,CAAE,KAAK,CAAE,CAAE,CAAC;YACvC,iBAAiB,CAAC,IAAI,CAAE,WAAW,CAAE,CAAA;SACtC;IACH,CAAC,CAAC,CAAC;IAEH,IAAK,KAAK,KAAK,MAAM;QAAG,UAAU,GAAG,uBAAuB,CAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,CAAE,CAAC;IAE1G,OAAO,UAAU,CAAC;AAEpB,CAAC"}
|
|
@@ -6,7 +6,7 @@ export function getFPSPrefNavLang() {
|
|
|
6
6
|
let found = false; // Only get first one of preferences
|
|
7
7
|
navigatorLanguages.map((lang) => {
|
|
8
8
|
if (found === false && DateLanguageKeys.indexOf(lang.toLocaleLowerCase()) > -1) {
|
|
9
|
-
pref = lang;
|
|
9
|
+
pref = lang.toLowerCase();
|
|
10
10
|
found = true;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFPSPrefNavLang.js","sourceRoot":"","sources":["../../../src/logic/Time/getFPSPrefNavLang.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAsB,MAAM,sBAAsB,CAAC;AAI5E,MAAM,UAAU,iBAAiB;IAC/B,MAAM,kBAAkB,GAAG,SAAS,CAAC,SAAS,CAAC;IAC/C,2DAA2D;IAC3D,IAAI,IAAI,GAAuB,OAAO,CAAC;IACvC,IAAI,KAAK,GAAG,KAAK,CAAC,CAAC,oCAAoC;IAEvD,kBAAkB,CAAC,GAAG,CAAC,CAAC,IAAwB,EAAE,EAAE;QAClD,IAAI,KAAK,KAAK,KAAK,IAAI,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAwB,CAAC,GAAG,CAAC,CAAC,EAAE;YACpG,IAAI,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"getFPSPrefNavLang.js","sourceRoot":"","sources":["../../../src/logic/Time/getFPSPrefNavLang.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAsB,MAAM,sBAAsB,CAAC;AAI5E,MAAM,UAAU,iBAAiB;IAC/B,MAAM,kBAAkB,GAAG,SAAS,CAAC,SAAS,CAAC;IAC/C,2DAA2D;IAC3D,IAAI,IAAI,GAAuB,OAAO,CAAC;IACvC,IAAI,KAAK,GAAG,KAAK,CAAC,CAAC,oCAAoC;IAEvD,kBAAkB,CAAC,GAAG,CAAC,CAAC,IAAwB,EAAE,EAAE;QAClD,IAAI,KAAK,KAAK,KAAK,IAAI,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAwB,CAAC,GAAG,CAAC,CAAC,EAAE;YACpG,IAAI,GAAG,IAAI,CAAC,WAAW,EAAwB,CAAC;YAChD,KAAK,GAAG,IAAI,CAAC;SACd;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AAEd,CAAC"}
|
|
@@ -14,6 +14,9 @@ export interface IMinSourceWPProps {
|
|
|
14
14
|
orderByProp?: string;
|
|
15
15
|
orderByAsc?: boolean;
|
|
16
16
|
}
|
|
17
|
+
export interface ISourceInfo {
|
|
18
|
+
history: ISourceProps;
|
|
19
|
+
}
|
|
17
20
|
export interface ISourceProps extends IMinSourceFetchProps {
|
|
18
21
|
webUrl: string;
|
|
19
22
|
absoluteWebUrl?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Interface.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/SourceItems/Interface.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAG,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,SAAS,EAAE,eAAe,CAAC;CAC5B;AAID,MAAM,WAAW,iBAAiB;IAEhC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CAEtB;
|
|
1
|
+
{"version":3,"file":"Interface.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/SourceItems/Interface.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAG,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,WAAW,WAAW;IAC1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B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAE5B;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gBAAgB,CAAC,EAAE,GAAG,CAAC;CACxB"}
|
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.150",
|
|
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.18",
|
|
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",
|