@mikezimm/fps-library-v2 1.0.43 → 1.0.44
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 +5 -1
- package/lib/common/Audiences/AudiencePropGroup.d.ts +0 -3
- package/lib/common/Audiences/AudiencePropGroup.d.ts.map +1 -1
- package/lib/common/Audiences/AudiencePropGroup.js +15 -23
- package/lib/common/Audiences/AudiencePropGroup.js.map +1 -1
- package/lib/common/Audiences/Interfaces.d.ts +0 -17
- package/lib/common/Audiences/Interfaces.d.ts.map +1 -1
- package/lib/common/Audiences/Interfaces.js +42 -27
- package/lib/common/Audiences/Interfaces.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,13 +5,17 @@ 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.44
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
# Changelog
|
|
12
12
|
|
|
13
13
|
NOTE: TURN BACK ON STRICT NULL CHECKS - turned off for PropPaneCols
|
|
14
14
|
|
|
15
|
+
## 1.0.44 - 2022-Dec-18: Drilldown Update part 5
|
|
16
|
+
- remove duplicate src\common\Audiences folder from here.... go to banner/propPane/Audiences instead
|
|
17
|
+
- fix reactListView css import to point to fps-sytles
|
|
18
|
+
|
|
15
19
|
## 1.0.43 - 2022-Dec-18: Drilldown Update part 5
|
|
16
20
|
- add siteServerRelativeUrl to IFPSEnviro - in order to easily tell if a url is on the current site collection
|
|
17
21
|
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import { IPropertyPaneDropdownProps } from '@microsoft/sp-property-pane';
|
|
2
|
-
import { IAudienceGroupType } from './Interfaces';
|
|
3
|
-
export declare function createAudienceGroup(propName: string, label: string, audience: IAudienceGroupType, disabled: boolean): import("@microsoft/sp-property-pane").IPropertyPaneField<IPropertyPaneDropdownProps>;
|
|
4
1
|
//# sourceMappingURL=AudiencePropGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AudiencePropGroup.d.ts","sourceRoot":"","sources":["../../../src/common/Audiences/AudiencePropGroup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AudiencePropGroup.d.ts","sourceRoot":"","sources":["../../../src/common/Audiences/AudiencePropGroup.ts"],"names":[],"mappings":""}
|
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
import { PropertyPaneDropdown, } from '@microsoft/sp-property-pane';
|
|
2
|
-
import { EveryoneAudienceChoices, FullControlAudienceChoices, PageEditorAudienceChoices, ItemEditorAudienceChoices, EditorAudienceChoices } from './Interfaces';
|
|
3
|
-
export function createAudienceGroup(propName, label, audience, disabled) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
const thisField = PropertyPaneDropdown(propName, {
|
|
18
|
-
label: label,
|
|
19
|
-
options: options,
|
|
20
|
-
disabled: disabled,
|
|
21
|
-
});
|
|
22
|
-
return thisField;
|
|
23
|
-
}
|
|
1
|
+
// import { PropertyPaneDropdown, IPropertyPaneDropdownProps, } from '@microsoft/sp-property-pane';
|
|
2
|
+
// import { IAudienceGroupType, EveryoneAudienceChoices, FullControlAudienceChoices, PageEditorAudienceChoices, ItemEditorAudienceChoices, EditorAudienceChoices } from './Interfaces';
|
|
3
|
+
// export function createAudienceGroup( propName: string, label: string, audience: IAudienceGroupType, disabled: boolean ) {
|
|
4
|
+
// let options = EveryoneAudienceChoices;
|
|
5
|
+
// if ( audience === 'Owner' ) { options = FullControlAudienceChoices; }
|
|
6
|
+
// else if ( audience === 'Page' ) { options = PageEditorAudienceChoices; }
|
|
7
|
+
// else if ( audience === 'Item' ) { options = ItemEditorAudienceChoices; }
|
|
8
|
+
// else if ( audience === 'Editor' ) { options = EditorAudienceChoices; }
|
|
9
|
+
// const thisField = PropertyPaneDropdown( propName, <IPropertyPaneDropdownProps>{
|
|
10
|
+
// label: label,
|
|
11
|
+
// options: options,
|
|
12
|
+
// disabled: disabled,
|
|
13
|
+
// }) ;
|
|
14
|
+
// return thisField;
|
|
15
|
+
// }
|
|
24
16
|
//# sourceMappingURL=AudiencePropGroup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AudiencePropGroup.js","sourceRoot":"","sources":["../../../src/common/Audiences/AudiencePropGroup.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"AudiencePropGroup.js","sourceRoot":"","sources":["../../../src/common/Audiences/AudiencePropGroup.ts"],"names":[],"mappings":"AAEA,mGAAmG;AAEnG,uLAAuL;AACvL,4HAA4H;AAE5H,2CAA2C;AAC3C,0EAA0E;AAC1E,6EAA6E;AAC7E,6EAA6E;AAC7E,2EAA2E;AAE3E,uFAAuF;AACvF,oBAAoB;AACpB,wBAAwB;AACxB,0BAA0B;AAC1B,SAAS;AAET,sBAAsB;AAGtB,IAAI"}
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
import { IPropertyPaneDropdownOption } from '@microsoft/sp-property-pane';
|
|
2
|
-
export type IAdminAudience = 'Site Admins';
|
|
3
|
-
export type IOwnerAudience = 'Site Owners';
|
|
4
|
-
export type IPageEditAudience = 'Page Editors';
|
|
5
|
-
export type IItemEditAudience = 'Item Editors';
|
|
6
|
-
export type IVisitorAudience = 'Everyone';
|
|
7
|
-
export type IFullControlAudience = IAdminAudience | IOwnerAudience;
|
|
8
|
-
export declare const FullControlAudienceChoices: IPropertyPaneDropdownOption[];
|
|
9
|
-
export type IPageEditorAudience = IAdminAudience | IOwnerAudience | IPageEditAudience;
|
|
10
|
-
export declare const PageEditorAudienceChoices: IPropertyPaneDropdownOption[];
|
|
11
|
-
export type IItemEditorAudience = IAdminAudience | IOwnerAudience | IPageEditAudience | IItemEditAudience | IVisitorAudience;
|
|
12
|
-
export declare const ItemEditorAudienceChoices: IPropertyPaneDropdownOption[];
|
|
13
|
-
export type IEditorAudience = IAdminAudience | IOwnerAudience | IPageEditAudience | IItemEditAudience;
|
|
14
|
-
export declare const EditorAudienceChoices: IPropertyPaneDropdownOption[];
|
|
15
|
-
export type IEveryoneAudience = IAdminAudience | IOwnerAudience | IPageEditAudience | IItemEditAudience | IVisitorAudience;
|
|
16
|
-
export declare const EveryoneAudienceChoices: IPropertyPaneDropdownOption[];
|
|
17
|
-
export type IAudienceGroupType = 'Admin' | 'Owner' | 'Page' | 'Item' | 'Editor' | 'Everyone';
|
|
18
1
|
//# sourceMappingURL=Interfaces.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Interfaces.d.ts","sourceRoot":"","sources":["../../../src/common/Audiences/Interfaces.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Interfaces.d.ts","sourceRoot":"","sources":["../../../src/common/Audiences/Interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,28 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
];
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
];
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
// import {
|
|
2
|
+
// IPropertyPaneDropdownOption, PropertyPaneToggle,
|
|
3
|
+
// PropertyPaneDropdown, IPropertyPaneDropdownProps,
|
|
4
|
+
// } from '@microsoft/sp-property-pane';
|
|
5
|
+
// export type IAdminAudience = 'Site Admins';
|
|
6
|
+
// export type IOwnerAudience = 'Site Owners';
|
|
7
|
+
// export type IPageEditAudience = 'Page Editors';
|
|
8
|
+
// export type IItemEditAudience = 'Item Editors';
|
|
9
|
+
// export type IVisitorAudience = 'Everyone';
|
|
10
|
+
// export type IFullControlAudience = IAdminAudience | IOwnerAudience;
|
|
11
|
+
// export const FullControlAudienceChoices: IPropertyPaneDropdownOption[] = <IPropertyPaneDropdownOption[]>[ //beAUserAudienceChoicesAll
|
|
12
|
+
// { index: 0, key: 'Site Admins', text: "Site Admins" },
|
|
13
|
+
// { index: 1, key: 'Site Owners', text: "Site Owners" },
|
|
14
|
+
// ];
|
|
15
|
+
// export type IPageEditorAudience = IAdminAudience | IOwnerAudience | IPageEditAudience;
|
|
16
|
+
// export const PageEditorAudienceChoices: IPropertyPaneDropdownOption[] = <IPropertyPaneDropdownOption[]>[ //beAUserAudienceChoicesAll
|
|
17
|
+
// { index: 0, key: 'Site Admins', text: "Site Admins" },
|
|
18
|
+
// { index: 1, key: 'Site Owners', text: "Site Owners" },
|
|
19
|
+
// { index: 2, key: 'Page Editors', text: "Page Editors" },
|
|
20
|
+
// ];
|
|
21
|
+
// export type IItemEditorAudience = IAdminAudience | IOwnerAudience | IPageEditAudience | IItemEditAudience | IVisitorAudience;
|
|
22
|
+
// export const ItemEditorAudienceChoices: IPropertyPaneDropdownOption[] = <IPropertyPaneDropdownOption[]>[ //expandAudienceChoicesAll
|
|
23
|
+
// { index: 0, key: 'Site Admins', text: "Site Admins" },
|
|
24
|
+
// { index: 1, key: 'Site Owners', text: "Site Owners" },
|
|
25
|
+
// { index: 3, key: 'Item Editors', text: "Item Editors" },
|
|
26
|
+
// ];
|
|
27
|
+
// export type IEditorAudience = IAdminAudience | IOwnerAudience | IPageEditAudience | IItemEditAudience;
|
|
28
|
+
// export const EditorAudienceChoices: IPropertyPaneDropdownOption[] = <IPropertyPaneDropdownOption[]>[ //expandAudienceChoicesAll
|
|
29
|
+
// { index: 0, key: 'Site Admins', text: "Site Admins" },
|
|
30
|
+
// { index: 1, key: 'Site Owners', text: "Site Owners" },
|
|
31
|
+
// { index: 2, key: 'Page Editors', text: "Page Editors" },
|
|
32
|
+
// { index: 3, key: 'Item Editors', text: "Item Editors" },
|
|
33
|
+
// ];
|
|
34
|
+
// export type IEveryoneAudience = IAdminAudience | IOwnerAudience | IPageEditAudience | IItemEditAudience | IVisitorAudience;
|
|
35
|
+
// export const EveryoneAudienceChoices: IPropertyPaneDropdownOption[] = <IPropertyPaneDropdownOption[]>[ //expandAudienceChoicesAll
|
|
36
|
+
// { index: 0, key: 'Site Admins', text: "Site Admins" },
|
|
37
|
+
// { index: 1, key: 'Site Owners', text: "Site Owners" },
|
|
38
|
+
// { index: 2, key: 'Page Editors', text: "Page Editors" },
|
|
39
|
+
// { index: 3, key: 'Item Editors', text: "Item Editors" },
|
|
40
|
+
// { index: 4, key: 'Everyone', text: "Everyone" },
|
|
41
|
+
// ];
|
|
42
|
+
// export type IAudienceGroupType = 'Admin' | 'Owner' | 'Page' | 'Item' | 'Editor' | 'Everyone'
|
|
28
43
|
//# sourceMappingURL=Interfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Interfaces.js","sourceRoot":"","sources":["../../../src/common/Audiences/Interfaces.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Interfaces.js","sourceRoot":"","sources":["../../../src/common/Audiences/Interfaces.ts"],"names":[],"mappings":"AAEA,WAAW;AACX,uDAAuD;AACvD,wDAAwD;AACxD,0CAA0C;AAG1C,8CAA8C;AAC9C,8CAA8C;AAC9C,kDAAkD;AAClD,kDAAkD;AAClD,6CAA6C;AAE7C,sEAAsE;AAEtE,yIAAyI;AACzI,gEAAgE;AAChE,gEAAgE;AAChE,KAAK;AAGL,yFAAyF;AAEzF,wIAAwI;AACxI,gEAAgE;AAChE,gEAAgE;AAChE,kEAAkE;AAClE,KAAK;AAGL,gIAAgI;AAEhI,uIAAuI;AACvI,gEAAgE;AAChE,gEAAgE;AAChE,kEAAkE;AAClE,KAAK;AAGL,yGAAyG;AAEzG,mIAAmI;AACnI,gEAAgE;AAChE,gEAAgE;AAChE,kEAAkE;AAClE,kEAAkE;AAClE,KAAK;AAGL,8HAA8H;AAE9H,qIAAqI;AACrI,gEAAgE;AAChE,gEAAgE;AAChE,kEAAkE;AAClE,kEAAkE;AAClE,0DAA0D;AAC1D,KAAK;AAEL,+FAA+F"}
|