UNPKG

@mikezimm/fps-core-v7

Version:

Library of reusable core interfaces, types and constants migrated from fps-library-v2

85 lines (84 loc) 2.98 kB
/** * CodeAnalizerComment: Updated 1 imports on 2024-09-21 23:07:24 * Update:: import { FieldUserSelectionMode } to '@mikezimm/fps-core-v7/lib/types/@pnp/@2.14.0/sp/fields;' */ // >>>> ADD import additional controls/components // import { FieldUserSelectionMode, } from "@pnp/sp/fields/types"; import { FieldUserSelectionMode } from '../../../../types/@pnp/@2.14.0/sp/fields'; import { cCount, cInt, cDate, cText, cNumb, cComputed } from '../interfaces/columnTypes'; // import { ootbID, ootbTitle, ootbEditor, ootbAuthor, ootbCreated, ootbModified, } from './columnsOOTB'; /*** * .d8b. d8888b. d8888b. d888b d8888b. .d88b. db db d8888b. d8b db .d8b. .88b d88. d88888b * d8' `8b 88 `8D 88 `8D 88' Y8b 88 `8D .8P Y8. 88 88 88 `8D 888o 88 d8' `8b 88'YbdP`88 88' * 88ooo88 88 88 88 88 88 88oobY' 88 88 88 88 88oodD' 88V8o 88 88ooo88 88 88 88 88ooooo * 88~~~88 88 88 88 88 88 ooo 88`8b 88 88 88 88 88~~~ 88 V8o88 88~~~88 88 88 88 88~~~~~ * 88 88 88 .8D 88 .8D 88. ~8~ 88 `88. `8b d8' 88b d88 88 88 V888 88 88 88 88 88 88. * YP YP Y8888D' Y8888D' Y888P 88 YD `Y88P' ~Y8888P' 88 VP V8P YP YP YP YP YP Y88888P * * */ const thisColumnGroup = 'Custom Columns'; const defGroup = { Group: thisColumnGroup, }; export const ootbID = { fieldType: cCount, name: 'ID', title: 'ID', onCreateProps: defGroup, }; export const ootbVersion = { fieldType: cNumb, name: '_UIVersionString', title: 'UI Version', onCreateProps: defGroup, }; // NOTE: This was created but not tested... DO NOT HAVE IComputedField interface yet export const ootbLinkFilename = { fieldType: cComputed, name: 'LinkFilename', title: 'FileName', // onCreateProps: defGroup, }; export const ootbTitle = { fieldType: cText, name: 'Title', title: 'Title', onCreateProps: defGroup, }; export const ootbEditor = { fieldType: cInt, selectionMode: FieldUserSelectionMode.PeopleOnly, name: 'Editor', title: 'Modified By', onCreateProps: defGroup, }; export const ootbAuthor = { fieldType: cInt, selectionMode: FieldUserSelectionMode.PeopleOnly, name: 'Author', title: 'Created By', onCreateProps: defGroup, }; export const ootbCreated = { fieldType: cDate, name: 'Created', title: 'Created', onCreateProps: defGroup, }; export const ootbModified = { fieldType: cDate, name: 'Modified', title: 'Modified', onCreateProps: defGroup, }; export const RecentCreatedViewColumns = [ ootbAuthor, ootbCreated, ]; export const RecentModifiedViewColumns = [ ootbEditor, ootbModified, ]; export const AllRecentUpdatesViewColumns = [ ootbAuthor, ootbCreated, ootbEditor, ootbModified, ]; //# sourceMappingURL=columnsOOTB.js.map