@mikezimm/fps-library-v2
Version:
Library of reusable typescript/javascript functions, interfaces and constants
47 lines (45 loc) • 2.14 kB
JavaScript
/**
* CodeAnalizerComment: Updated 4 imports on 2024-09-22 14:49:52
* Update:: import { IPropertyPaneGroup } to '@mikezimm/fps-core-v7/lib/types/@msft/1.15.2/sp-property-pane;'
* Update:: import { IPropertyPaneField } to '@mikezimm/fps-core-v7/lib/types/@msft/1.15.2/sp-property-pane;'
* Update:: import { IThisFPSWebPartClass } to '@mikezimm/fps-core-v7/lib/banner/FPSWebPartClass/IThisFPSWebPartClass1152;'
* Update:: import { IMinWPBannerProps } to '@mikezimm/fps-core-v7/lib/banner/interfaces/MinWP/IMinWPBannerProps;'
*/
/**
* CodeAnalizerComment: Updated 2 imports on 2024-09-21 23:07:24
* Update:: import { IThisFPSWebPartClass } to '@mikezimm/fps-core-v7/lib/banner/FPSWebPartClass/IThisFPSWebPartClass1152;'
* Update:: import { IMinWPBannerProps } to '@mikezimm/fps-core-v7/lib/banner/interfaces/MinWP/IMinWPBannerProps;'
*/
import { PropertyPaneLabel, PropertyPaneTextField, PropertyPaneToggle, } from '@microsoft/sp-property-pane';
/**
*
* @param thisWPClass
* @returns
*/
export function buildFPSulGroup(thisWPClass) {
const wpProps = thisWPClass.properties;
const groupFields = [];
const { enableSUL } = wpProps;
groupFields.push(PropertyPaneLabel('lockedX', {
text: `If you enable this feature, you will need to have a valid key. If you enable and it is invalid or expires, the webpart automatically expires.`,
}));
groupFields.push(PropertyPaneToggle('enableSUL', {
label: 'Enable single instance liscensing',
onText: 'I have a special liscense',
offText: 'I do not have a special liscense',
}));
groupFields.push(PropertyPaneTextField('sUCode', {
label: 'Enter your single use code',
multiline: true,
description: 'Typically this will ONLY work on a specific site collection.',
disabled: enableSUL === false ? true : false,
}));
groupFields.push();
const ExportThisGroup = {
groupName: `Single Use License`,
isCollapsed: true,
groupFields: groupFields
};
return ExportThisGroup;
}
//# sourceMappingURL=buildFPSulGroup.js.map