@mikezimm/fps-core-v7 1.0.116 → 1.0.117
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/lib/PackageVersion.d.ts.map +1 -1
- package/lib/PackageVersion.js +3 -3
- package/lib/PackageVersion.js.map +1 -1
- package/lib/common/PropPaneHelp/preconfig/ApplyPresets.d.ts +3 -2
- package/lib/common/PropPaneHelp/preconfig/ApplyPresets.d.ts.map +1 -1
- package/lib/common/PropPaneHelp/preconfig/ApplyPresets.js +38 -20
- package/lib/common/PropPaneHelp/preconfig/ApplyPresets.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageVersion.d.ts","sourceRoot":"","sources":["../src/PackageVersion.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,EAAE,MAAsB,CAAC;AACvD,eAAO,MAAM,oBAAoB,EAAE,MAAkB,CAAC;AACtD,eAAO,MAAM,yBAAyB,EAAE,MAA8B,CAAC;AACvE,eAAO,MAAM,wBAAwB,EAAE,
|
|
1
|
+
{"version":3,"file":"PackageVersion.d.ts","sourceRoot":"","sources":["../src/PackageVersion.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,EAAE,MAAsB,CAAC;AACvD,eAAO,MAAM,oBAAoB,EAAE,MAAkB,CAAC;AACtD,eAAO,MAAM,yBAAyB,EAAE,MAA8B,CAAC;AACvE,eAAO,MAAM,wBAAwB,EAAE,MAAoC,CAAC"}
|
package/lib/PackageVersion.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const PackageNameFpsCv7 = 'fps-core-v7';
|
|
2
|
-
export const PackageVersionFpsCv7 = '1.0.
|
|
3
|
-
export const PackageVersionLabelFpsCv7 = 'fps-core-v7@1.0.
|
|
4
|
-
export const PackageVersionTimeFpsCv7 = '3/8/2025,
|
|
2
|
+
export const PackageVersionFpsCv7 = '1.0.117';
|
|
3
|
+
export const PackageVersionLabelFpsCv7 = 'fps-core-v7@1.0.117';
|
|
4
|
+
export const PackageVersionTimeFpsCv7 = '3/8/2025, 11:18:07 PM EST';
|
|
5
5
|
//# sourceMappingURL=PackageVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageVersion.js","sourceRoot":"","sources":["../src/PackageVersion.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,iBAAiB,GAAW,aAAa,CAAC;AACvD,MAAM,CAAC,MAAM,oBAAoB,GAAW,SAAS,CAAC;AACtD,MAAM,CAAC,MAAM,yBAAyB,GAAW,qBAAqB,CAAC;AACvE,MAAM,CAAC,MAAM,wBAAwB,GAAW,
|
|
1
|
+
{"version":3,"file":"PackageVersion.js","sourceRoot":"","sources":["../src/PackageVersion.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,iBAAiB,GAAW,aAAa,CAAC;AACvD,MAAM,CAAC,MAAM,oBAAoB,GAAW,SAAS,CAAC;AACtD,MAAM,CAAC,MAAM,yBAAyB,GAAW,qBAAqB,CAAC;AACvE,MAAM,CAAC,MAAM,wBAAwB,GAAW,2BAA2B,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { IAllPreConfigSettings, ISitePreConfigProps } from "./IPreConfig";
|
|
|
5
5
|
import { IMinWPBannerProps } from "../../../banner/interfaces/MinWP/IMinWPBannerProps";
|
|
6
6
|
import { IThisFPSWebPartClass } from "../../../banner/FPSWebPartClass/IThisFPSWebPartClass1152";
|
|
7
7
|
/**
|
|
8
|
-
* 2025-03-08: Updated applyPresetCollectionDefaults to activate the _class: [] options for setting class based variables based upon the webpart and site
|
|
8
|
+
* 2025-03-08: Updated applyPreConfiguredProps/applyPresetCollectionDefaults to activate the _class: [] options for setting class based variables based upon the webpart and site
|
|
9
9
|
* https://github.com/mikezimm/pivottiles7/issues/393
|
|
10
10
|
*
|
|
11
11
|
* @param sitePresets
|
|
@@ -14,5 +14,6 @@ import { IThisFPSWebPartClass } from "../../../banner/FPSWebPartClass/IThisFPSWe
|
|
|
14
14
|
* @param thisWPClass
|
|
15
15
|
* @returns
|
|
16
16
|
*/
|
|
17
|
-
export declare function
|
|
17
|
+
export declare function applyPreConfiguredProps(sitePresets: ISitePreConfigProps, PreConfiguredProps: IAllPreConfigSettings, thisProps: IMinWPBannerProps, thisWPClass: IThisFPSWebPartClass): ISitePreConfigProps;
|
|
18
|
+
export declare function applyPreConfiguredClass(PreConfiguredProps: IAllPreConfigSettings, thisProps: IMinWPBannerProps, thisWPClass: IThisFPSWebPartClass): void;
|
|
18
19
|
//# sourceMappingURL=ApplyPresets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplyPresets.d.ts","sourceRoot":"","sources":["../../../../src/common/PropPaneHelp/preconfig/ApplyPresets.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAKvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAEhG;;;;;;;;;GASG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"ApplyPresets.d.ts","sourceRoot":"","sources":["../../../../src/common/PropPaneHelp/preconfig/ApplyPresets.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAKvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAEhG;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAE,WAAW,EAAE,mBAAmB,EAAG,kBAAkB,EAAE,qBAAqB,EAAE,SAAS,EAAE,iBAAiB,EAAG,WAAW,EAAE,oBAAoB,uBA2CtL;AAED,wBAAgB,uBAAuB,CAAE,kBAAkB,EAAE,qBAAqB,EAAE,SAAS,EAAE,iBAAiB,EAAG,WAAW,EAAE,oBAAoB,GACjJ,IAAI,CA2BN"}
|
|
@@ -6,7 +6,7 @@ import { getThisSitesPreConfigProps } from "./getThisSitesPreConfigProps";
|
|
|
6
6
|
import { getDeepPropUsingDotNotation } from "../../../logic/Objects/deep";
|
|
7
7
|
import { check4This } from "../../../logic/Links/CheckSearch";
|
|
8
8
|
/**
|
|
9
|
-
* 2025-03-08: Updated applyPresetCollectionDefaults to activate the _class: [] options for setting class based variables based upon the webpart and site
|
|
9
|
+
* 2025-03-08: Updated applyPreConfiguredProps/applyPresetCollectionDefaults to activate the _class: [] options for setting class based variables based upon the webpart and site
|
|
10
10
|
* https://github.com/mikezimm/pivottiles7/issues/393
|
|
11
11
|
*
|
|
12
12
|
* @param sitePresets
|
|
@@ -15,49 +15,67 @@ import { check4This } from "../../../logic/Links/CheckSearch";
|
|
|
15
15
|
* @param thisWPClass
|
|
16
16
|
* @returns
|
|
17
17
|
*/
|
|
18
|
-
export function
|
|
18
|
+
export function applyPreConfiguredProps(sitePresets, PreConfiguredProps, thisProps, thisWPClass) {
|
|
19
19
|
const { context } = thisWPClass;
|
|
20
20
|
sitePresets = getThisSitesPreConfigProps(PreConfiguredProps, thisProps, context.pageContext.web.serverRelativeUrl);
|
|
21
21
|
sitePresets.presets.map(setting => {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
const { prop, value } = setting;
|
|
23
|
+
let valueX = setActualValue(value, context);
|
|
24
|
+
if (thisProps[prop] === valueX) {
|
|
24
25
|
setting.status = 'valid';
|
|
25
26
|
}
|
|
26
|
-
else if (thisProps[
|
|
27
|
-
thisProps[
|
|
27
|
+
else if (thisProps[prop] === undefined || thisProps[prop] === null) { //Changed from just !this... because if value was 'false' it would set to true
|
|
28
|
+
thisProps[prop] = valueX;
|
|
28
29
|
setting.status = 'preset';
|
|
29
30
|
}
|
|
30
31
|
});
|
|
31
32
|
sitePresets.forces.map(setting => {
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
const { prop, value } = setting;
|
|
34
|
+
let valueX = setActualValue(value, context);
|
|
35
|
+
if (thisProps.overrideKeys && thisProps.overrideKeys.indexOf(prop) > -1) {
|
|
34
36
|
setting.status = 'override';
|
|
35
37
|
}
|
|
36
|
-
else if (thisProps[
|
|
38
|
+
else if (thisProps[prop] === valueX) {
|
|
37
39
|
setting.status = 'valid';
|
|
38
40
|
}
|
|
39
|
-
else if (!thisProps[
|
|
40
|
-
thisProps[
|
|
41
|
+
else if (!thisProps[prop]) {
|
|
42
|
+
thisProps[prop] = valueX;
|
|
41
43
|
setting.status = 'preset';
|
|
42
44
|
}
|
|
43
|
-
else if (thisProps[
|
|
44
|
-
thisProps[
|
|
45
|
+
else if (thisProps[prop] !== valueX) {
|
|
46
|
+
thisProps[prop] = valueX;
|
|
45
47
|
setting.status = 'changed';
|
|
46
48
|
}
|
|
47
49
|
});
|
|
50
|
+
if (check4This(`showPresets=true`))
|
|
51
|
+
console.log('showPresets=true Preset props:', sitePresets);
|
|
52
|
+
return sitePresets;
|
|
53
|
+
}
|
|
54
|
+
export function applyPreConfiguredClass(PreConfiguredProps, thisProps, thisWPClass) {
|
|
55
|
+
const { context } = thisWPClass;
|
|
56
|
+
const sitePresets = getThisSitesPreConfigProps(PreConfiguredProps, thisProps, context.pageContext.web.serverRelativeUrl);
|
|
48
57
|
sitePresets._class.map(setting => {
|
|
49
|
-
|
|
50
|
-
|
|
58
|
+
const { prop, value } = setting;
|
|
59
|
+
let valueX = setActualValue(value, thisWPClass.context);
|
|
60
|
+
if (thisWPClass[prop] === valueX) {
|
|
51
61
|
setting.status = 'valid';
|
|
52
62
|
}
|
|
53
|
-
else if (thisWPClass[
|
|
54
|
-
thisWPClass[
|
|
63
|
+
else if (thisWPClass[prop] === undefined || thisWPClass[prop] === null) { //Changed from just !this... because if value was 'false' it would set to true
|
|
64
|
+
thisWPClass[prop] = valueX;
|
|
55
65
|
setting.status = 'preset';
|
|
56
66
|
}
|
|
67
|
+
else if (valueX) {
|
|
68
|
+
if (JSON.stringify(thisWPClass[prop]) === JSON.stringify(valueX)) {
|
|
69
|
+
setting.status = 'valid';
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
thisWPClass[prop] = valueX;
|
|
73
|
+
setting.status = 'override';
|
|
74
|
+
if (check4This(`showPresets=true`))
|
|
75
|
+
console.log('_class_Defaults: Else', setting, valueX);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
57
78
|
});
|
|
58
|
-
if (check4This(`showPresets=true`))
|
|
59
|
-
console.log('showPresets=true Preset props:', sitePresets);
|
|
60
|
-
return sitePresets;
|
|
61
79
|
}
|
|
62
80
|
/**
|
|
63
81
|
* This just gets the deep prop from context if it's used in the value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplyPresets.js","sourceRoot":"","sources":["../../../../src/common/PropPaneHelp/preconfig/ApplyPresets.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,sEAAsE;AACtE,OAAO,EAAqB,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE7F,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAG9D;;;;;;;;;GASG;AACH,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"ApplyPresets.js","sourceRoot":"","sources":["../../../../src/common/PropPaneHelp/preconfig/ApplyPresets.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,sEAAsE;AACtE,OAAO,EAAqB,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE7F,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAG9D;;;;;;;;;GASG;AACH,MAAM,UAAU,uBAAuB,CAAE,WAAgC,EAAG,kBAAyC,EAAE,SAA4B,EAAG,WAAiC;IACnL,MAAM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