UNPKG

@mikezimm/fps-library-v2

Version:

Library of reusable typescript/javascript functions, interfaces and constants

75 lines (74 loc) 3.21 kB
/** * CodeAnalizerComment: Updated 1 imports on 2024-09-22 14:49:52 * Update:: import { IQuickButton } to '@mikezimm/fps-core-v7/lib/components/webparts/Drilldown/QuickCommands/IQuickCommands;' */ export const SampleDividerButton = { "type": "divider", "label": "Tip: CTRL-Click a button to show commands", "icon": "TouchPointer" }; export const SampleLabelButton = { "type": "label-only", "label": "Have a nice day!", "icon": "Emoji2" }; export const SampleCommands = { "buttons": [[{ "strPrev": "PREVIOUS Choice Value", "str1": "In Process", "strNext": "NEXT Choice Value", "label": "Set to {str1}", "primary": false, "confirm": "Are you sure you want to Set to {str1}", "alert": "We made our updates!", "console": "Message to browser console", "panelMessage": "Updated item to {str1}", "icon": "UserWarning", "updateItem": { "DueDate": "[today+14]", "AssignedToId": "{Me}", "Status": "{str1}", "ReviewDays": 99, "Body": "Hi! It's [Today+3] and I'm $MyName$", }, // https://github.com/mikezimm/drilldown7/issues/246 "showWhenEvalTrue": "item.AssignedToTitle !== sourceUserInfo.Title && item.Status === {strPrev}" } ], [ SampleDividerButton ], [ SampleLabelButton ] ], "fields": [], }; export const AdvancedCommands = { "updateItem": { "SingleChoiceOrText": "Completed", "MultiChoice": ["Color", "Yellow"], // https://github.com/mikezimm/drilldown7/issues/309 // https://github.com/mikezimm/drilldown7/issues/476 "SingleUser": "||{Me}", "MultiUser": "||[Me]", // https://github.com/mikezimm/drilldown7/issues/496 v v v v v "TextUser": "{Me.Title}", "TextUserFirstN": "{Me.TitleFirstW}", "TextUserLastN": "{Me.TitleLastW}", "TextUserJob": "{Me.Job}", // https://github.com/mikezimm/drilldown7/issues/496 ^ ^ ^ ^ ^ "DateColumn1": "||[Today]]", "DateColumn2": "||[Today+7]]", "DateColumn3": "||[Today-30]]", "Comment": "||Adds this if empty", "Comments": "{{append rich stamp require}}", "SharePointLink": "{{spo require}}", "OtherLink": "{{link require}}", // https://github.com/mikezimm/drilldown7/issues/245 "CaptchaField": "{{captcha=Author/Title?Verify Created By Name}}", //https://github.com/mikezimm/drilldown7/issues/244, // https://github.com/mikezimm/drilldown7/issues/246 // 2025-01-27: Added $ to: `${str1}` and `${strNext}` // 2025-01-27: Added \" to \"[Today]\" so that the date gets updated with the new logic "ConditionalDate": "eval( item.TESTCOLUMN===`${str1}` ? \"[Today]\" : item.TESTCOLUMN===`${strNext}` ? null : item.TESTCOLUMN )", } }; //# sourceMappingURL=SampleCommands.js.map