@mikezimm/fps-library-v2 1.0.18 → 1.0.19
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 +6 -1
- package/lib/banner/propPane/FPSBanner3NavGroup.d.ts +14 -0
- package/lib/banner/propPane/FPSBanner3NavGroup.d.ts.map +1 -0
- package/lib/banner/propPane/FPSBanner3NavGroup.js +36 -0
- package/lib/banner/propPane/FPSBanner3NavGroup.js.map +1 -0
- package/lib/banner/propPane/FPSBanner3ThemeGroup.d.ts +21 -0
- package/lib/banner/propPane/FPSBanner3ThemeGroup.d.ts.map +1 -0
- package/lib/banner/propPane/FPSBanner3ThemeGroup.js +66 -0
- package/lib/banner/propPane/FPSBanner3ThemeGroup.js.map +1 -0
- package/lib/banner/propPane/FPSBanner4BasicGroup.d.ts +23 -0
- package/lib/banner/propPane/FPSBanner4BasicGroup.d.ts.map +1 -0
- package/lib/banner/propPane/FPSBanner4BasicGroup.js +76 -0
- package/lib/banner/propPane/FPSBanner4BasicGroup.js.map +1 -0
- package/lib/banner/propPane/FPSOptionsGroupBasic.d.ts +14 -0
- package/lib/banner/propPane/FPSOptionsGroupBasic.d.ts.map +1 -0
- package/lib/banner/propPane/FPSOptionsGroupBasic.js +72 -0
- package/lib/banner/propPane/FPSOptionsGroupBasic.js.map +1 -0
- package/lib/banner/propPane/index.d.ts +4 -0
- package/lib/banner/propPane/index.d.ts.map +1 -1
- package/lib/banner/propPane/index.js +4 -0
- package/lib/banner/propPane/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,11 +5,16 @@ npm run build
|
|
|
5
5
|
npm version major/minor/patch
|
|
6
6
|
npm publish --access=public
|
|
7
7
|
|
|
8
|
-
npm install @mikezimm/fps-library-v2@1.0.
|
|
8
|
+
npm install @mikezimm/fps-library-v2@1.0.19
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
# Changelog
|
|
12
12
|
|
|
13
|
+
## 1.0.19 - 2022-Dec-13
|
|
14
|
+
export { FPSBanner4BasicGroup, } from './FPSBanner4BasicGroup';
|
|
15
|
+
export { FPSBanner3NavGroup, } from './FPSBanner3NavGroup';
|
|
16
|
+
export { FPSBanner3ThemeGroup } from './FPSBanner3ThemeGroup';
|
|
17
|
+
|
|
13
18
|
## 1.0.18 - 2022-Dec-13
|
|
14
19
|
- fix this. errors in functional components
|
|
15
20
|
- update css import statements
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BannerPropNavButtonFields - Builds Fields for FPS Banner Nav Group
|
|
3
|
+
*/
|
|
4
|
+
export declare const BannerPropNavButtonFields: any[];
|
|
5
|
+
/**
|
|
6
|
+
* FPSBanner3NavGroup - Builds Prop Pane group for Nav Buttons: showGoToHome, showGoToParent, homeParentGearAudience
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function FPSBanner3NavGroup(): {
|
|
10
|
+
groupName: string;
|
|
11
|
+
isCollapsed: boolean;
|
|
12
|
+
groupFields: any[];
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=FPSBanner3NavGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FPSBanner3NavGroup.d.ts","sourceRoot":"","sources":["../../../src/banner/propPane/FPSBanner3NavGroup.ts"],"names":[],"mappings":"AAmBA;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAG,GAAG,EAe3C,CAAC;AACF;;;GAGG;AAEH,wBAAgB,kBAAkB;;;;EAQjC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
// IPropertyPaneTextFieldProps,
|
|
3
|
+
// PropertyPaneLink, IPropertyPaneLinkProps,
|
|
4
|
+
PropertyPaneDropdown,
|
|
5
|
+
// IPropertyPaneDropdownOption,
|
|
6
|
+
PropertyPaneToggle } from '@microsoft/sp-property-pane';
|
|
7
|
+
import { EveryoneAudienceChoices } from './Audiences/Interfaces';
|
|
8
|
+
/**
|
|
9
|
+
* BannerPropNavButtonFields - Builds Fields for FPS Banner Nav Group
|
|
10
|
+
*/
|
|
11
|
+
export const BannerPropNavButtonFields = [
|
|
12
|
+
PropertyPaneToggle('showGoToHome', {
|
|
13
|
+
label: 'Show Go to Home Page Icon',
|
|
14
|
+
}),
|
|
15
|
+
PropertyPaneToggle('showGoToParent', {
|
|
16
|
+
label: 'Show Got to Parent Site Icon',
|
|
17
|
+
}),
|
|
18
|
+
PropertyPaneDropdown('homeParentGearAudience', {
|
|
19
|
+
label: 'Gear, Home, Parent audience',
|
|
20
|
+
options: EveryoneAudienceChoices,
|
|
21
|
+
}),
|
|
22
|
+
];
|
|
23
|
+
/**
|
|
24
|
+
* FPSBanner3NavGroup - Builds Prop Pane group for Nav Buttons: showGoToHome, showGoToParent, homeParentGearAudience
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
27
|
+
export function FPSBanner3NavGroup() {
|
|
28
|
+
let fields = BannerPropNavButtonFields;
|
|
29
|
+
let bannerGroup = {
|
|
30
|
+
groupName: 'FPS Banner - Navigation',
|
|
31
|
+
isCollapsed: true,
|
|
32
|
+
groupFields: fields
|
|
33
|
+
};
|
|
34
|
+
return bannerGroup;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=FPSBanner3NavGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FPSBanner3NavGroup.js","sourceRoot":"","sources":["../../../src/banner/propPane/FPSBanner3NavGroup.ts"],"names":[],"mappings":"AAAA,OAAO;AAOH,+BAA+B;AAC/B,4CAA4C;AAC7C,oBAAoB;AACnB,+BAA+B;AAC/B,kBAAkB,EAKW,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEjE;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAW;IAE/C,kBAAkB,CAAC,cAAc,EAAE;QAC/B,KAAK,EAAE,2BAA2B;KACrC,CAAC;IAEF,kBAAkB,CAAC,gBAAgB,EAAE;QACjC,KAAK,EAAE,8BAA8B;KACxC,CAAC;IAEF,oBAAoB,CAAC,wBAAwB,EAA8B;QACvE,KAAK,EAAE,6BAA6B;QACpC,OAAO,EAAE,uBAAuB;KACnC,CAAC;CAEH,CAAC;AACF;;;GAGG;AAEH,MAAM,UAAU,kBAAkB;IAChC,IAAI,MAAM,GAAU,yBAAyB,CAAC;IAC9C,IAAI,WAAW,GAAG;QAChB,SAAS,EAAE,yBAAyB;QACpC,WAAW,EAAE,IAAI;QACjB,WAAW,EAAE,MAAM;KACpB,CAAC;IACF,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FPSBanner3ThemeGroup - Builds FPS Banner Theme Group: bannerStyleChoice, bannerStyle, bannerCmdStyle, bannerHoverEffect
|
|
3
|
+
* @param modifyBannerStyle
|
|
4
|
+
* @param showBanner
|
|
5
|
+
* @param lockStyles
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare function FPSBanner3ThemeGroup(modifyBannerStyle: boolean, showBanner: boolean, lockStyles: boolean, includeSiteTheme: boolean): {
|
|
9
|
+
groupName: string;
|
|
10
|
+
isCollapsed: boolean;
|
|
11
|
+
groupFields: any[];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Generates prop pane FIELDS for: bannerStyleChoice, bannerStyle, bannerCmdStyle, bannerHoverEffect
|
|
15
|
+
* @param modifyBannerStyle
|
|
16
|
+
* @param showBanner
|
|
17
|
+
* @param lockStyles
|
|
18
|
+
* @returns
|
|
19
|
+
*/
|
|
20
|
+
export declare function BannerPropButtonThemes(modifyBannerStyle: boolean, showBanner: boolean, lockStyles: boolean, includeSiteTheme: boolean): any[];
|
|
21
|
+
//# sourceMappingURL=FPSBanner3ThemeGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FPSBanner3ThemeGroup.d.ts","sourceRoot":"","sources":["../../../src/banner/propPane/FPSBanner3ThemeGroup.ts"],"names":[],"mappings":"AAqBA;;;;;;GAMG;AAGH,wBAAgB,oBAAoB,CAAC,iBAAiB,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,gBAAgB,EAAE,OAAO;;;;EAQnI;AAGC;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAE,iBAAiB,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,gBAAgB,EAAE,OAAO,SAwCtI"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {
|
|
2
|
+
// IPropertyPanePage,
|
|
3
|
+
// IPropertyPaneGroup,
|
|
4
|
+
// PropertyPaneLabel,
|
|
5
|
+
// IPropertyPaneLabelProps,
|
|
6
|
+
// PropertyPaneHorizontalRule,
|
|
7
|
+
PropertyPaneTextField,
|
|
8
|
+
// IPropertyPaneTextFieldProps,
|
|
9
|
+
// PropertyPaneLink, IPropertyPaneLinkProps,
|
|
10
|
+
PropertyPaneDropdown,
|
|
11
|
+
// IPropertyPaneDropdownOption,
|
|
12
|
+
PropertyPaneToggle } from '@microsoft/sp-property-pane';
|
|
13
|
+
import { bannerThemeChoices, bannerThemeChoicesWSiteTheme } from '../../common/commandStyles/defaults';
|
|
14
|
+
/**
|
|
15
|
+
* FPSBanner3ThemeGroup - Builds FPS Banner Theme Group: bannerStyleChoice, bannerStyle, bannerCmdStyle, bannerHoverEffect
|
|
16
|
+
* @param modifyBannerStyle
|
|
17
|
+
* @param showBanner
|
|
18
|
+
* @param lockStyles
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
21
|
+
export function FPSBanner3ThemeGroup(modifyBannerStyle, showBanner, lockStyles, includeSiteTheme) {
|
|
22
|
+
let fields = BannerPropButtonThemes(modifyBannerStyle, showBanner, lockStyles, includeSiteTheme);
|
|
23
|
+
let bannerGroup = {
|
|
24
|
+
groupName: 'FPS Banner - Theme',
|
|
25
|
+
isCollapsed: true,
|
|
26
|
+
groupFields: fields
|
|
27
|
+
};
|
|
28
|
+
return bannerGroup;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Generates prop pane FIELDS for: bannerStyleChoice, bannerStyle, bannerCmdStyle, bannerHoverEffect
|
|
32
|
+
* @param modifyBannerStyle
|
|
33
|
+
* @param showBanner
|
|
34
|
+
* @param lockStyles
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
export function BannerPropButtonThemes(modifyBannerStyle, showBanner, lockStyles, includeSiteTheme) {
|
|
38
|
+
let fields = [];
|
|
39
|
+
fields.push(PropertyPaneDropdown('bannerStyleChoice', {
|
|
40
|
+
label: 'Banner Theme',
|
|
41
|
+
options: includeSiteTheme === true ? bannerThemeChoicesWSiteTheme : bannerThemeChoices,
|
|
42
|
+
disabled: modifyBannerStyle !== true || showBanner !== true ? true : false,
|
|
43
|
+
}));
|
|
44
|
+
// if ( lockStyles !== true ) {
|
|
45
|
+
fields.push(PropertyPaneTextField('bannerStyle', {
|
|
46
|
+
label: 'Style options',
|
|
47
|
+
description: 'React.CSSProperties format like: "fontSize":"larger","color":"red"',
|
|
48
|
+
disabled: modifyBannerStyle !== true || showBanner !== true || lockStyles === true ? true : false,
|
|
49
|
+
multiline: true,
|
|
50
|
+
}));
|
|
51
|
+
// }
|
|
52
|
+
// if ( lockStyles !== true ) {
|
|
53
|
+
fields.push(PropertyPaneTextField('bannerCmdStyle', {
|
|
54
|
+
label: 'Button Style options',
|
|
55
|
+
description: 'React.CSSProperties format like: "fontSize":"larger","color":"red"',
|
|
56
|
+
disabled: modifyBannerStyle !== true || showBanner !== true || lockStyles === true ? true : false,
|
|
57
|
+
multiline: true,
|
|
58
|
+
}));
|
|
59
|
+
// }
|
|
60
|
+
fields.push(PropertyPaneToggle('bannerHoverEffect', {
|
|
61
|
+
label: 'Banner Hover Effect',
|
|
62
|
+
disabled: modifyBannerStyle !== true || showBanner !== true ? true : false,
|
|
63
|
+
}));
|
|
64
|
+
return fields;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=FPSBanner3ThemeGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FPSBanner3ThemeGroup.js","sourceRoot":"","sources":["../../../src/banner/propPane/FPSBanner3ThemeGroup.ts"],"names":[],"mappings":"AACA,OAAO;AACL,sBAAsB;AACtB,uBAAuB;AACvB,sBAAsB;AACtB,4BAA4B;AAC5B,+BAA+B;AAC7B,qBAAqB;AACrB,+BAA+B;AAC/B,4CAA4C;AAC7C,oBAAoB;AACnB,+BAA+B;AAC/B,kBAAkB,EAKW,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AAGvG;;;;;;GAMG;AAGH,MAAM,UAAU,oBAAoB,CAAC,iBAA0B,EAAE,UAAmB,EAAE,UAAmB,EAAE,gBAAyB;IAClI,IAAI,MAAM,GAAU,sBAAsB,CAAC,iBAAiB,EAAE,UAAU,EAAE,UAAU,EAAE,gBAAgB,CAAC,CAAC;IACxG,IAAI,WAAW,GAAG;QAChB,SAAS,EAAE,oBAAoB;QAC/B,WAAW,EAAE,IAAI;QACjB,WAAW,EAAE,MAAM;KACpB,CAAC;IACF,OAAO,WAAW,CAAC;AACrB,CAAC;AAGC;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CAAE,iBAA0B,EAAE,UAAmB,EAAE,UAAmB,EAAE,gBAAyB;IAErI,IAAI,MAAM,GAAW,EAAE,CAAC;IAGxB,MAAM,CAAC,IAAI,CACP,oBAAoB,CAAC,mBAAmB,EAA8B;QAClE,KAAK,EAAE,cAAc;QACrB,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,kBAAkB;QACtF,QAAQ,EAAE,iBAAiB,KAAK,IAAI,IAAI,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;KAC7E,CAAC,CAAE,CAAC;IAET,+BAA+B;IAC/B,MAAM,CAAC,IAAI,CACP,qBAAqB,CAAC,aAAa,EAAE;QACjC,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,qEAAqE;QAClF,QAAQ,EAAE,iBAAiB,KAAK,IAAI,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;QACjG,SAAS,EAAE,IAAI;KAClB,CAAC,CAAE,CAAC;IACT,IAAI;IAEJ,+BAA+B;IAC/B,MAAM,CAAC,IAAI,CACP,qBAAqB,CAAC,gBAAgB,EAAE;QACpC,KAAK,EAAE,sBAAsB;QAC7B,WAAW,EAAE,qEAAqE;QAClF,QAAQ,EAAE,iBAAiB,KAAK,IAAI,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;QACjG,SAAS,EAAE,IAAI;KACd,CAAC,CAAE,CAAC;IACb,IAAI;IAEJ,MAAM,CAAC,IAAI,CACP,kBAAkB,CAAC,mBAAmB,EAAE;QACpC,KAAK,EAAE,qBAAqB;QAC5B,QAAQ,EAAE,iBAAiB,KAAK,IAAI,IAAI,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;KACzE,CAAC,CAAE,CAAC;IAEb,OAAO,MAAM,CAAC;AAEhB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FPSBanner3BasicGroup builds FPS Banner Basics Prop Pane Group: showBanner, bannerTitle, infoElementChoice, infoElementText,
|
|
3
|
+
* @param forceBanner
|
|
4
|
+
* @param modifyBannerTitle
|
|
5
|
+
* @param showBanner
|
|
6
|
+
* @param infoElementText
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function FPSBanner4BasicGroup(forceBanner: boolean, modifyBannerTitle: boolean, showBanner: boolean, infoElementText: boolean, feedback: boolean, enableBeAUser: boolean): {
|
|
10
|
+
groupName: string;
|
|
11
|
+
isCollapsed: boolean;
|
|
12
|
+
groupFields: any[];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* BannerPropPaneButtonBasics - Builds Basic FIELDS for Banner
|
|
16
|
+
* @param forceBanner
|
|
17
|
+
* @param modifyBannerTitle
|
|
18
|
+
* @param showBanner
|
|
19
|
+
* @param infoElementText
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
export declare function BannerPropPaneButtonBasics(forceBanner: boolean, modifyBannerTitle: boolean, showBanner: boolean, infoElementText: boolean, feedback: boolean, enableBeAUser: boolean): any[];
|
|
23
|
+
//# sourceMappingURL=FPSBanner4BasicGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FPSBanner4BasicGroup.d.ts","sourceRoot":"","sources":["../../../src/banner/propPane/FPSBanner4BasicGroup.ts"],"names":[],"mappings":"AAqBA;;;;;;;GAOG;AAEH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,EAClI,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO;;;;EAQ1C;AAGC;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CAAE,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAC/G,eAAe,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,SAqDpE"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import {
|
|
2
|
+
// IPropertyPanePage,
|
|
3
|
+
// IPropertyPaneGroup,
|
|
4
|
+
// PropertyPaneLabel,
|
|
5
|
+
// IPropertyPaneLabelProps,
|
|
6
|
+
// PropertyPaneHorizontalRule,
|
|
7
|
+
PropertyPaneTextField,
|
|
8
|
+
// IPropertyPaneTextFieldProps,
|
|
9
|
+
// PropertyPaneLink, IPropertyPaneLinkProps,
|
|
10
|
+
PropertyPaneDropdown,
|
|
11
|
+
// IPropertyPaneDropdownOption,
|
|
12
|
+
PropertyPaneToggle } from '@microsoft/sp-property-pane';
|
|
13
|
+
import { bannerInfoEleChoices } from '../../common/commandStyles/defaults';
|
|
14
|
+
import { PageEditorAudienceChoices } from './Audiences/Interfaces';
|
|
15
|
+
/**
|
|
16
|
+
* FPSBanner3BasicGroup builds FPS Banner Basics Prop Pane Group: showBanner, bannerTitle, infoElementChoice, infoElementText,
|
|
17
|
+
* @param forceBanner
|
|
18
|
+
* @param modifyBannerTitle
|
|
19
|
+
* @param showBanner
|
|
20
|
+
* @param infoElementText
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export function FPSBanner4BasicGroup(forceBanner, modifyBannerTitle, showBanner, infoElementText, feedback, enableBeAUser) {
|
|
24
|
+
let fields = BannerPropPaneButtonBasics(forceBanner, modifyBannerTitle, showBanner, infoElementText, feedback, enableBeAUser);
|
|
25
|
+
let bannerGroup = {
|
|
26
|
+
groupName: 'FPS Banner - Basics',
|
|
27
|
+
isCollapsed: true,
|
|
28
|
+
groupFields: fields
|
|
29
|
+
};
|
|
30
|
+
return bannerGroup;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* BannerPropPaneButtonBasics - Builds Basic FIELDS for Banner
|
|
34
|
+
* @param forceBanner
|
|
35
|
+
* @param modifyBannerTitle
|
|
36
|
+
* @param showBanner
|
|
37
|
+
* @param infoElementText
|
|
38
|
+
* @returns
|
|
39
|
+
*/
|
|
40
|
+
export function BannerPropPaneButtonBasics(forceBanner, modifyBannerTitle, showBanner, infoElementText, feedback, enableBeAUser) {
|
|
41
|
+
let fields = [];
|
|
42
|
+
fields.push(PropertyPaneToggle('showBanner', {
|
|
43
|
+
label: 'Show Banner',
|
|
44
|
+
disabled: forceBanner !== false ? true : false,
|
|
45
|
+
}));
|
|
46
|
+
fields.push(PropertyPaneTextField('bannerTitle', {
|
|
47
|
+
label: 'Webpart Title',
|
|
48
|
+
description: '',
|
|
49
|
+
disabled: modifyBannerTitle !== true || showBanner !== true ? true : false,
|
|
50
|
+
}));
|
|
51
|
+
fields.push(PropertyPaneDropdown('infoElementChoice', {
|
|
52
|
+
label: 'More Info text-button',
|
|
53
|
+
options: bannerInfoEleChoices,
|
|
54
|
+
disabled: showBanner !== true ? true : false,
|
|
55
|
+
}));
|
|
56
|
+
fields.push(PropertyPaneTextField('infoElementText', {
|
|
57
|
+
label: 'More Information text on right of banner',
|
|
58
|
+
description: 'Keep simple to one word if possible.',
|
|
59
|
+
disabled: infoElementText !== true || showBanner !== true ? true : false,
|
|
60
|
+
}));
|
|
61
|
+
//feedbackEmail: string;
|
|
62
|
+
fields.push(PropertyPaneTextField('feedbackEmail', {
|
|
63
|
+
label: 'Feedback email',
|
|
64
|
+
description: 'Adds Feedback icon in the banner.',
|
|
65
|
+
disabled: feedback !== true || showBanner !== true ? true : false,
|
|
66
|
+
}));
|
|
67
|
+
if (enableBeAUser === true) {
|
|
68
|
+
fields.push(PropertyPaneDropdown('beAUserAudience', {
|
|
69
|
+
label: 'Audience for Be A User mode',
|
|
70
|
+
options: PageEditorAudienceChoices,
|
|
71
|
+
disabled: showBanner !== true ? true : false,
|
|
72
|
+
}));
|
|
73
|
+
}
|
|
74
|
+
return fields;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=FPSBanner4BasicGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FPSBanner4BasicGroup.js","sourceRoot":"","sources":["../../../src/banner/propPane/FPSBanner4BasicGroup.ts"],"names":[],"mappings":"AACA,OAAO;AACL,sBAAsB;AACtB,uBAAuB;A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E,CAAC,CACP,CAAC;IAEJ,MAAM,CAAC,IAAI,CACP,oBAAoB,CAAC,mBAAmB,EAA8B;QAClE,KAAK,EAAE,uBAAuB;QAC9B,OAAO,EAAE,oBAAoB;QAC7B,QAAQ,EAAE,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;KAC/C,CAAC,CAAE,CAAC;IAGT,MAAM,CAAC,IAAI,CACP,qBAAqB,CAAC,iBAAiB,EAAE;QACrC,KAAK,EAAE,0CAA0C;QACjD,WAAW,EAAE,sCAAsC;QACnD,QAAQ,EAAC,eAAe,KAAK,IAAI,IAAI,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;KAC1E,CAAC,CAAE,CAAC;IACb,wBAAwB;IACpB,MAAM,CAAC,IAAI,CACP,qBAAqB,CAAC,eAAe,EAAE;QACnC,KAAK,EAAE,gBAAgB;QACvB,WAAW,EAAE,mCAAmC;QAChD,QAAQ,EAAC,QAAQ,KAAK,IAAI,IAAI,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;KACnE,CAAC,CAAE,CAAC;IAET,IAAK,aAAa,KAAK,IAAI,EAAG;QAC1B,MAAM,CAAC,IAAI,CACX,oBAAoB,CAAC,iBAAiB,EAA8B;YAChE,KAAK,EAAE,6BAA6B;YACpC,OAAO,EAAE,yBAAyB;YAClC,QAAQ,EAAE,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;SAC/C,CAAC,CAAE,CAAC;KACR;IAGD,OAAO,MAAM,CAAC;AAEhB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IFPSBasicToggleSetting } from '../../common/interfaces/fps/IFPSBasicToggleSetting';
|
|
2
|
+
/**
|
|
3
|
+
* This is the second version which is more simple (toggles and sliders)
|
|
4
|
+
* @param showSearch
|
|
5
|
+
* @param pageStyle
|
|
6
|
+
* @param quickLaunchHide
|
|
7
|
+
* @param containerMaxWidth
|
|
8
|
+
*/
|
|
9
|
+
export declare function FPSOptionsGroupBasic(showSearch: boolean, quickLaunchHide: boolean, pageHeaderHide: boolean, allSectWidth: IFPSBasicToggleSetting, allSectionMaxWidthEnable: any, allSectMargin: IFPSBasicToggleSetting, allSectionMarginEnable: any, toolBarHide: IFPSBasicToggleSetting): {
|
|
10
|
+
groupName: string;
|
|
11
|
+
isCollapsed: boolean;
|
|
12
|
+
groupFields: any[];
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=FPSOptionsGroupBasic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FPSOptionsGroupBasic.d.ts","sourceRoot":"","sources":["../../../src/banner/propPane/FPSOptionsGroupBasic.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AAG5F;;;;;;GAMG;AAGH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,GAAG,EAAE,aAAa,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,GAAG,EAAE,WAAW,EAAE,sBAAsB;;;;EAgFxR"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import {
|
|
2
|
+
// IPropertyPaneDropdownOption,
|
|
3
|
+
PropertyPaneToggle, PropertyPaneSlider } from '@microsoft/sp-property-pane';
|
|
4
|
+
/**
|
|
5
|
+
* This is the second version which is more simple (toggles and sliders)
|
|
6
|
+
* @param showSearch
|
|
7
|
+
* @param pageStyle
|
|
8
|
+
* @param quickLaunchHide
|
|
9
|
+
* @param containerMaxWidth
|
|
10
|
+
*/
|
|
11
|
+
export function FPSOptionsGroupBasic(showSearch, quickLaunchHide, pageHeaderHide, allSectWidth, allSectionMaxWidthEnable, allSectMargin, allSectionMarginEnable, toolBarHide) {
|
|
12
|
+
let fields = [];
|
|
13
|
+
if (showSearch === true) {
|
|
14
|
+
fields.push(PropertyPaneToggle('searchShow', {
|
|
15
|
+
label: 'Show search bar by default', offText: 'Hide', onText: 'Show',
|
|
16
|
+
}));
|
|
17
|
+
}
|
|
18
|
+
if (quickLaunchHide === true) {
|
|
19
|
+
fields.push(PropertyPaneToggle('quickLaunchHide', {
|
|
20
|
+
label: 'Hide quick launch - may be seen briefly', offText: 'Ignore', onText: 'Hidden',
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
if (pageHeaderHide === true) {
|
|
24
|
+
fields.push(PropertyPaneToggle('pageHeaderHide', {
|
|
25
|
+
label: 'Hide Page Header - may be seen briefly',
|
|
26
|
+
offText: 'Ignore',
|
|
27
|
+
onText: 'Hidden',
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
if (allSectWidth !== 'skip') {
|
|
31
|
+
fields.push(PropertyPaneToggle('allSectionMaxWidthEnable', {
|
|
32
|
+
label: 'All Sections Max Width',
|
|
33
|
+
offText: 'Off',
|
|
34
|
+
onText: 'On',
|
|
35
|
+
}));
|
|
36
|
+
fields.push(PropertyPaneSlider('allSectionMaxWidth', {
|
|
37
|
+
label: 'Max width of all sections',
|
|
38
|
+
disabled: allSectionMaxWidthEnable === true ? false : true,
|
|
39
|
+
min: 1200,
|
|
40
|
+
max: 3200,
|
|
41
|
+
step: 100,
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
if (allSectMargin !== 'skip') {
|
|
45
|
+
fields.push(PropertyPaneToggle('allSectionMarginEnable', {
|
|
46
|
+
label: 'All Sections Margin',
|
|
47
|
+
offText: 'Off',
|
|
48
|
+
onText: 'On',
|
|
49
|
+
}));
|
|
50
|
+
fields.push(PropertyPaneSlider('allSectionMargin', {
|
|
51
|
+
label: 'Top and Bottom Margin',
|
|
52
|
+
disabled: allSectionMarginEnable === true ? false : true,
|
|
53
|
+
min: 0,
|
|
54
|
+
max: 100,
|
|
55
|
+
step: 2,
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
if (toolBarHide === true) {
|
|
59
|
+
fields.push(PropertyPaneToggle('toolBarHide', {
|
|
60
|
+
label: 'Hide Toolbar - while viewing',
|
|
61
|
+
offText: 'Ignore',
|
|
62
|
+
onText: 'Hidden',
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
let optionsGroup = {
|
|
66
|
+
groupName: 'FPS Page Layout - Basic',
|
|
67
|
+
isCollapsed: true,
|
|
68
|
+
groupFields: fields
|
|
69
|
+
};
|
|
70
|
+
return optionsGroup;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=FPSOptionsGroupBasic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FPSOptionsGroupBasic.js","sourceRoot":"","sources":["../../../src/banner/propPane/FPSOptionsGroupBasic.ts"],"names":[],"mappings":"AAAA,OAAO;AACL,+BAA+B;AAC/B,kBAAkB,EAAE,kBAAkB,EACvC,MAAM,6BAA6B,CAAC;AAIrC;;;;;;GAMG;AAGH,MAAM,UAAU,oBAAoB,CAAC,UAAmB,EAAE,eAAwB,EAAE,cAAuB,EAAE,YAAoC,EAAE,wBAA6B,EAAE,aAAqC,EAAE,sBAA2B,EAAE,WAAmC;IAEvR,IAAI,MAAM,GAAU,EAAE,CAAC;IACvB,IAAI,UAAU,KAAK,IAAI,EAAE;QACvB,MAAM,CAAC,IAAI,CACT,kBAAkB,CAAC,YAAY,EAAE;YAC/B,KAAK,EAAE,4BAA4B,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;SACrE,CAAC,CAAC,CAAC;KACP;IACD,IAAI,eAAe,KAAK,IAAI,EAAE;QAC5B,MAAM,CAAC,IAAI,CACT,kBAAkB,CAAC,iBAAiB,EAAE;YACpC,KAAK,EAAE,yCAAyC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,QA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AAa,EAAE;YAChC,KAAK,EAAE,8BAA8B;YACrC,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;SACjB,CAAC,CACH,CAAC;KACH;IAED,IAAI,YAAY,GAAG;QACjB,SAAS,EAAE,yBAAyB;QACpC,WAAW,EAAE,IAAI;QACjB,WAAW,EAAE,MAAM;KAEpB,CAAC;IAEF,OAAO,YAAY,CAAC;AAEtB,CAAC"}
|
|
@@ -1 +1,5 @@
|
|
|
1
|
+
export { FPSOptionsGroupBasic, } from './FPSOptionsGroupBasic';
|
|
2
|
+
export { FPSBanner4BasicGroup, } from './FPSBanner4BasicGroup';
|
|
3
|
+
export { FPSBanner3NavGroup, } from './FPSBanner3NavGroup';
|
|
4
|
+
export { FPSBanner3ThemeGroup } from './FPSBanner3ThemeGroup';
|
|
1
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/banner/propPane/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/banner/propPane/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,oBAAoB,GAAG,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,GAAI,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,kBAAkB,GAAG,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -2,4 +2,8 @@
|
|
|
2
2
|
// export { getSourceItems } from './getSourceItems';
|
|
3
3
|
// export { prepSourceColumns } from './prepSourceColumns';
|
|
4
4
|
// export * from '';
|
|
5
|
+
export { FPSOptionsGroupBasic, } from './FPSOptionsGroupBasic';
|
|
6
|
+
export { FPSBanner4BasicGroup, } from './FPSBanner4BasicGroup';
|
|
7
|
+
export { FPSBanner3NavGroup, } from './FPSBanner3NavGroup';
|
|
8
|
+
export { FPSBanner3ThemeGroup } from './FPSBanner3ThemeGroup';
|
|
5
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/banner/propPane/index.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,qDAAqD;AACrD,2DAA2D;AAE3D,oBAAoB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/banner/propPane/index.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,qDAAqD;AACrD,2DAA2D;AAE3D,oBAAoB;AAEpB,OAAO,EAAE,oBAAoB,GAAG,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,GAAI,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,kBAAkB,GAAG,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|