nakedobjects.spa
Version:
Single Page Application client for a Naked Objects application.
275 lines • 18.3 kB
JavaScript
// user message constants
export var noResultMessage = "no result found";
export var obscuredText = "*****";
export var tooShort = "Too short";
export var tooLong = "Too long";
export var notAnInteger = "Not an integer";
export var notANumber = "Not a number";
export var mandatory = "Mandatory";
export var optional = "Optional";
export var choices = "Choices";
export var pendingAutoComplete = "Pending auto-complete...";
export var noPatternMatch = "Invalid entry";
export var closeActions = "Close actions";
export var noActions = "No actions available";
export var openActions = "Open actions (Alt-a)";
export var mandatoryFieldsPrefix = "Missing mandatory fields: ";
export var invalidFieldsPrefix = "Invalid fields: ";
export var unknownFileTitle = "UnknownFile";
export var unknownCollectionSize = "";
export var emptyCollectionSize = "Empty";
export var noItemsFound = "No items found";
export var noItemsSelected = "Must select items for collection contributed action";
export var dropPrompt = "(drop here)";
export var autoCompletePrompt = "(auto-complete or drop)";
export var concurrencyMessage = "The object has been reloaded to pick up changes by another user. Please review, and re-enter any changes you still require.";
export var loadingMessage = "Loading...";
export var submittedMessage = "Submitted";
export var today = "Today";
export var clear = "Clear";
export var recentDisabledMessage = "Nothing to clear";
export var recentMessage = "Clear recent history";
export var recentTitle = "Recently Viewed Objects";
export var noUserMessage = "'No user set'";
export var noImageMessage = "No image";
export var invalidDate = "Invalid date";
export var invalidTime = "Invalid time";
export var outOfRange = function (val, min, max, filter) {
var minVal = filter ? filter.filter(min) : min;
var maxVal = filter ? filter.filter(max) : max;
return "Value is outside the range " + (minVal || "unlimited") + " to " + (maxVal || "unlimited");
};
export var pageMessage = function (p, tp, c, tc) { return "Page " + p + " of " + tp + "; viewing " + c + " of " + tc + " items"; };
export var logOffMessage = function (u) { return "Please confirm logoff of user: " + u; };
export var submittedCount = function (c) { return " with " + c + " lines submitted."; };
//Cicero commands and Help text
export var welcomeMessage = "Welcome to Cicero. Type 'help' and the Enter key for more information.";
export var basicHelp = "Cicero is a user interface purpose-designed to work with an audio screen-reader.\n" +
"The display has only two fields: a read-only output field, and a single input field.\n" +
"The input field always has the focus.\n" +
"Commands are typed into the input field followed by the Enter key.\n" +
"When the output field updates (either instantaneously or after the server has responded)\n" +
"its contents are read out automatically, so \n" +
"the user never has to navigate around the screen.\n" +
"Commands, such as 'action', 'field' and 'save', may be typed in full\n" +
"or abbreviated to the first two or more characters.\n" +
"Commands are not case sensitive.\n" +
"Some commands take one or more arguments.\n" +
"There must be a space between the command word and the first argument,\n" +
"and a comma between arguments.\n" +
"Arguments may contain spaces if needed.\n" +
"The commands available to the user vary according to the context.\n" +
"The command 'help ?' (note that there is a space between help and '?')\n" +
"will list the commands available to the user in the current context.\n" +
"‘help’ followed by another command word (in full or abbreviated) will give more details about that command.\n" +
"Some commands will change the context, for example using the Go command to navigate to an associated object, \n" +
"in which case the new context will be read out.\n" +
"Other commands - help being an example - do not change the context, but will read out information to the user.\n" +
"If the user needs a reminder of the current context, the 'Where' command will read the context out again.\n" +
"Hitting Enter on the empty input field has the same effect.\n" +
"When the user enters a command and the output has been updated, the input field will be cleared, \n" +
"ready for the next command. The user may recall the previous command by hitting the up-arrow key.\n" +
"The user might then edit or extend that previous command and hit Enter to run it again.\n" +
"For advanced users: commands may be chained using a semi-colon between them,\n" +
"however commands that do, or might, result in data updates cannot be chained.";
export var actionCommand = "action";
export var actionHelp = "Open the dialog for action from a menu, or from object actions.\n" +
"A dialog is always opened for an action, even if it has no fields (parameters):\n" +
"This is a safety mechanism, allowing the user to confirm that the action is the one intended.\n" +
"Once the dialog fields have been completed, using the Enter command,\n" +
"the action may then be invoked with the OK command.\n" +
"The action command takes two optional arguments.\n" +
"The first is the name, or partial name, of the action.\n" +
"If the partial name matches more than one action, a list of matches is returned but none opened.\n" +
"If no argument is provided, a full list of available action names is returned.\n" +
"The partial name may have more than one clause, separated by spaces.\n" +
"these may match either parts of the action name or the sub-menu name if one exists.\n" +
"If the action name matches a single action, then a question-mark may be added as a second\n" +
"parameter, which will generate a more detailed description of the Action.";
export var backCommand = "back";
export var backHelp = "Move back to the previous context.";
export var cancelCommand = "cancel";
export var cancelHelp = "Leave the current activity (action dialog, or object edit), incomplete.";
export var clipboardCommand = "clipboard";
export var clipboardCopy = "copy";
export var clipboardShow = "show";
export var clipboardGo = "go";
export var clipboardDiscard = "discard";
export var clipboardHelp = "The clipboard command is used for temporarily\n" +
"holding a reference to an object, so that it may be used later\n" +
"to enter into a field.\n" +
"Clipboard requires one argument, which may take one of four values:\n" +
"copy, show, go, or discard\n" +
"each of which may be abbreviated down to one character.\n" +
"Copy copies a reference to the object being viewed into the clipboard,\n" +
"overwriting any existing reference.\n" +
"Show displays the content of the clipboard without using it.\n" +
"Go takes you directly to the object held in the clipboard.\n" +
"Discard removes any existing reference from the clipboard.\n" +
"The reference held in the clipboard may be used within the Enter command.";
export var editCommand = "edit";
export var editHelp = "Put an object into Edit mode.";
export var enterCommand = "enter";
export var enterHelp = "Enter a value into a field,\n" +
"meaning a parameter in an action dialog,\n" +
"or a property on an object being edited.\n" +
"Enter requires 2 arguments.\n" +
"The first argument is the partial field name, which must match a single field.\n" +
"The second optional argument specifies the value, or selection, to be entered.\n" +
"If a question mark is provided as the second argument, the field will not be\n" +
"updated but further details will be provided about that input field.\n" +
"If the word paste is used as the second argument, then, provided that the field is\n" +
"a reference field, the object reference in the clipboard will be pasted into the field.\n";
export var forwardCommand = "forward";
export var forwardHelp = "Move forward to next context in the history\n" +
"(if you have previously moved back).";
export var geminiCommand = "gemini";
export var geminiHelp = "Switch to the Gemini (graphical) user interface\n" +
"preserving the current context.";
export var gotoCommand = "goto";
export var gotoHelp = "Go to the object referenced in a property,\n" +
"or to a collection within an object,\n" +
"or to an object within an open list or collection.\n" +
"Goto takes one argument. In the context of an object\n" +
"that is the name or partial name of the property or collection.\n" +
"In the context of an open list or collection, it is the\n" +
"number of the item within the list or collection (starting at 1). ";
export var helpCommand = "help";
export var helpHelp = "If no argument is specified, help provides a basic explanation of how to use Cicero.\n" +
"If help is followed by a question mark as an argument, this lists the commands available\n" +
"in the current context. If help is followed by another command word as an argument\n" +
"(or an abbreviation of it), a description of the specified Command is returned.";
export var menuCommand = "menu";
export var menuHelp = "Open a named main menu, from any context.\n" +
"Menu takes one optional argument: the name, or partial name, of the menu.\n" +
"If the partial name matches more than one menu, a list of matches is returned\n" +
"but no menu is opened; if no argument is provided a list of all the menus\n" +
"is returned.";
export var okCommand = "ok";
export var okHelp = "Invoke the action currently open as a dialog.\n" +
"Fields in the dialog should be completed before this.";
export var pageCommand = "page";
export var pageFirst = "first";
export var pagePrevious = "previous";
export var pageNext = "next";
export var pageLast = "last";
export var pageHelp = "Supports paging of returned lists.\n" +
"The page command takes a single argument, which may be one of these four words:\n" +
"first, previous, next, or last, \n" +
"which may be abbreviated down to the first character.\n" +
"Alternative, the argument may be a specific page number.";
export var reloadCommand = "reload";
export var reloadHelp = "Not yet implemented. Reload the data from the server for an object or a list.\n" +
"Note that for a list, which was generated by an action, reload runs the action again, \n" +
"thus ensuring that the list is up to date. However, reloading a list does not reload the\n" +
"individual objects in that list, which may still be cached. Invoking Reload on an\n" +
"individual object, however, will ensure that its fields show the latest server data.";
export var rootCommand = "root";
export var rootHelp = "From within an opend collection context, the root command returns\n" +
" to the root object that owns the collection. Does not take any arguments.\n";
export var saveCommand = "save";
export var saveHelp = "Save the updated fields on an object that is being edited,\n" +
"and return from edit mode to a normal view of that object";
export var selectionCommand = "selection";
export var selectionHelp = "Not fully implemented. Select one or more items from a list,\n" +
"prior to invoking an action on the selection.\n" +
"Selection has one mandatory argument, which must be one of these words,\n" +
"add, remove, all, clear, show.\n" +
"The Add and Remove options must be followed by a second argument specifying\n" +
"the item number, or range, to be added or removed.\n";
export var showCommand = "show";
export var showHelp = "In the context of an object, shows the name and content of\n" +
"one or more of the properties.\n" +
"May take 1 argument: the partial field name.\n" +
"If this matches more than one property, a list of matches is returned.\n" +
"If no argument is provided, the full list of properties is returned.\n" +
"In the context of an opened object collection, or a list,\n" +
"shows one or more items from that collection or list.\n" +
"If no arguments are specified, show will list all of the the items in the collection,\n" +
"or the first page of items if in a list view.\n" +
"Alternatively, the command may be specified with an item number, or a range such as 3- 5.";
export var whereCommand = "where";
export var whereHelp = "Display a reminder of the current context.\n" +
"The same can also be achieved by hitting the Return key on the empty input field.";
//Cicero feedback messages
export var commandTooShort = "Command word must have at least 2 characters";
export var noCommandMatch = function (a) { return "No command begins with " + a; };
export var commandsAvailable = "Commands available in current context:\n";
export var noArguments = "No arguments provided";
export var tooFewArguments = "Too few arguments provided";
export var tooManyArguments = "Too many arguments provided";
export var commandNotAvailable = function (c) { return "The command: " + c + " is not available in the current context"; };
export var startHigherEnd = "Starting item number cannot be greater than the ending item number";
export var highestItem = function (n) { return "The highest numbered item is " + n; };
export var item = "item";
export var empty = "empty";
export var numberOfItems = function (n) { return n + " items"; };
export var on = "on";
export var collection = "Collection";
export var modified = "modified";
export var properties = "properties";
export var modifiedProperties = "Modified " + properties;
export var page = "Page";
export var noVisible = "No visible properties";
export var doesNotMatch = function (name) { return name + " does not match any properties"; };
export var cannotPage = "Cannot page list";
export var alreadyOnFirst = "List is already showing the first page";
export var alreadyOnLast = "List is already showing the last page";
export var pageArgumentWrong = "The argument must match: first, previous, next, last, or a single number";
export var pageNumberWrong = function (max) { return "Specified page number must be between 1 and " + max; };
export var mayNotbeChainedMessage = function (c, r) { return c + " command may not be chained" + r + ". Use Where command to see where execution stopped."; };
export var queryOnlyRider = " unless the action is query-only";
export var noSuchCommand = function (c) { return "No such command: " + c; };
export var missingArgument = function (i) { return "Required argument number " + i + " is missing"; };
export var wrongTypeArgument = function (i) { return "Argument number " + i + " must be a number"; };
export var isNotANumber = function (s) { return s + " is not a number"; };
export var tooManyDashes = "Cannot have more than one dash in argument";
export var mustBeGreaterThanZero = "Item number or range values must be greater than zero";
export var pleaseCompleteOrCorrect = "Please complete or correct these fields:\n";
export var required = "required";
export var mustbeQuestionMark = "Second argument may only be a question mark - to get action details";
export var noActionsAvailable = "No actions available";
export var doesNotMatchActions = function (a) { return a + " does not match any actions"; };
export var matchingActions = "Matching actions:\n";
export var actionsMessage = "Actions:\n";
export var actionPrefix = "Action:";
export var disabledPrefix = "disabled:";
export var isDisabled = "is disabled.";
export var noDescription = "No description provided";
export var descriptionPrefix = "Description for action:";
export var clipboardError = "Clipboard command may only be followed by copy, show, go, or discard";
export var clipboardContextError = "Clipboard copy may only be used in the context of viewing an object";
export var clipboardContents = function (contents) { return "Clipboard contains: " + contents; };
export var clipboardEmpty = "Clipboard is empty";
export var doesNotMatchProperties = function (name) { return name + " does not match any properties"; };
export var matchesMultiple = "matches multiple fields:\n";
export var doesNotMatchDialog = function (name) { return name + " does not match any fields in the dialog"; };
export var multipleFieldMatches = "Multiple fields match";
export var isNotModifiable = "is not modifiable";
export var invalidCase = "Invalid case";
export var invalidRefEntry = "Invalid entry for a reference field. Use clipboard or clip";
export var emptyClipboard = "Cannot use Clipboard as it is empty";
export var incompatibleClipboard = "Contents of Clipboard are not compatible with the field";
export var noMatch = function (s) { return "None of the choices matches " + s; };
export var multipleMatches = "Multiple matches:\n";
export var fieldName = function (name) { return "Field name: " + name; };
export var descriptionFieldPrefix = "Description:";
export var typePrefix = "Type:";
export var unModifiablePrefix = function (reason) { return "Unmodifiable: " + reason; };
export var outOfItemRange = function (n) { return n + " is out of range for displayed items"; };
export var doesNotMatchMenu = function (name) { return name + " does not match any menu"; };
export var matchingMenus = "Matching menus:";
export var menuTitle = function (title) { return title + " menu"; };
export var allMenus = "Menus:";
export var noRefFieldMatch = function (s) { return s + " does not match any reference fields or collections"; };
export var unsaved = "Unsaved";
export var editing = "Editing";
//Error messages
export var errorUnknown = "Unknown software error";
export var errorExpiredTransient = "The requested view of unsaved object details has expired";
export var errorWrongType = "An unexpected type of result was returned";
export var errorNotImplemented = "The requested software feature is not implemented";
export var errorSoftware = "A software error occurred";
export var errorConnection = "The client failed to connect to the server";
export var errorClient = "Client Error";
//# sourceMappingURL=user-messages.js.map