@mikezimm/npmfunctions
Version:
Functions used in my SPFx webparts
29 lines • 2.99 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.myFieldDefs = exports.cComputed = exports.cSLook = exports.cModStatus = exports.cLocal = exports.cMUser = exports.cUser = exports.cCalcT = exports.cCalcN = exports.cMChoice = exports.cURL = exports.cCurr = exports.cNumb = exports.cBool = exports.cDLook = exports.cLook = exports.cChoice = exports.cDate = exports.cMText = exports.cText = exports.cInt = exports.cCount = exports.maxInfinity = exports.minInfinity = void 0;
require("@pnp/sp/lists");
exports.minInfinity = -1.7976931348623157e+308;
exports.maxInfinity = -1 * exports.minInfinity;
exports.cCount = { kind: null, type: null, vType: 'Counter', label: 'Counter' };
exports.cInt = { kind: null, type: null, vType: 'Integer', label: 'Number' };
exports.cText = { kind: 2, type: 'SP.FieldText', vType: 'Text', label: 'Text' };
exports.cMText = { kind: 3, type: 'SP.FieldMultiLineText', vType: '', label: 'Text' };
exports.cDate = { kind: 4, type: 'SP.FieldDateTime', vType: 'DateTime', label: 'Date' };
exports.cChoice = { kind: 6, type: 'SP.FieldChoice', vType: 'Text', label: 'Choice' };
exports.cLook = { kind: 7, type: 'SP.FieldCreationInformation', vType: '', label: '9' };
exports.cDLook = { kind: 7, type: 'SP.FieldCreationInformation', vType: '', label: '9' };
exports.cBool = { kind: 8, type: 'SP.Field', vType: 'Boolean', label: 'Boolean' };
exports.cNumb = { kind: 9, type: 'SP.FieldNumber', vType: 'Number', label: 'Number' };
exports.cCurr = { kind: 10, type: 'SP.FieldCurrency', vType: '', label: 'Curr' };
exports.cURL = { kind: 11, type: 'SP.FieldUrl', vType: '', label: 'URL' };
exports.cMChoice = { kind: 15, type: 'SP.FieldMultiChoice', vType: '', label: 'Choice' };
exports.cCalcN = { kind: 17, type: 'SP.FieldCalculated', vType: 'Number', label: 'Calculated' };
exports.cCalcT = { kind: 17, type: 'SP.FieldCalculated', vType: 'Text', label: 'Calculated' };
exports.cUser = { kind: 20, type: 'SP.FieldUser', vType: 'Integer', label: 'User' };
exports.cMUser = { kind: 20, type: 'SP.FieldUserMulti', vType: '', label: 'User' }; //This may be SP.FieldUserMulti or may not ????... but this is required for the function in columnServices.ts to catch this option.
exports.cLocal = { kind: 33, type: 'SP.FieldLocation', vType: '', label: 'Loc' };
exports.cModStatus = { kind: 23, type: 'SP.FieldChoice', vType: '', label: 'ModStatus' };
exports.cSLook = { kind: 7, type: 'SP.FieldLookup', vType: '', label: 'Lookup' };
exports.cComputed = { kind: 12, type: 'SP.FieldComputed', vType: '', label: 'Computed' };
exports.myFieldDefs = [exports.cCount, exports.cInt, exports.cText, exports.cMText, exports.cDate, exports.cChoice, exports.cLook, exports.cDLook, exports.cBool, exports.cNumb, exports.cCurr, exports.cURL, exports.cMChoice, exports.cCalcN, exports.cCalcT, exports.cUser, exports.cMUser, exports.cLocal, exports.cSLook, exports.cComputed, exports.cModStatus];
//# sourceMappingURL=columnTypes.js.map
;