fantasia-archive/src/scripts/databaseManager/blueprints/currencies.ts

142 lines
4 KiB
TypeScript

import { I_Blueprint } from "../../../interfaces/I_Blueprint"
export const currenciesBlueprint: I_Blueprint = {
_id: "currencies",
order: 8,
namePlural: "Currencies",
nameSingular: "Currency",
icon: "fas fa-coins",
extraFields: [
{
id: "breakBasic",
name: "Basic information",
type: "break",
sizing: 12
},
{
id: "name",
name: "Name",
type: "text",
icon: "fas fa-coins",
sizing: 3
},
{
id: "documentColor",
name: "Color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "parentDoc",
name: "Belongs under",
type: "singleToNoneRelationship",
tooltip:
`This field is used to build up custom hierarchical tree structure in the main list of items in the left side of the app.
<br> You can use this for an infinite amount of sub-levels to the hierarchical structure.
<br> An example would be multiple sub-groups (provinces) of Roman Empire belonging under the main political group called "Roman Empire".
`,
sizing: 3,
relationshipSettings: {
connectedObjectType: "currencies"
}
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`,
sizing: 2
},
{
id: "categorySwitch",
name: "Is a category",
type: "switch",
icon: "fas fa-folder-open",
tooltip:
`This setting allows for setting the current document to category mode.
<br>
A document with category mode toggled on will have most of its fields hidden and will not show in any other relationship searches except for "Belongs under".
`,
sizing: 2
},
{
id: "tags",
name: "Tags",
type: "tags",
icon: "mdi-tag",
tooltip:
`tags
`,
sizing: 12
},
{
id: "otherNames",
name: "Other names & Epithets",
type: "list",
icon: "mdi-book-plus",
sizing: 6
},
{
id: "traits",
name: "Defining features/traits",
type: "list",
icon: "fas fa-coins",
sizing: 6
},
{
id: "description",
name: "Description & History",
type: "wysiwyg",
sizing: 12
},
{
id: "breakRelasionships",
name: "Usage details",
type: "break",
sizing: 12
},
{
id: "pairedLocations",
name: "Used in locations",
type: "manyToManyRelationship",
icon: "mdi-map-marker-radius",
sizing: 4,
relationshipSettings: {
connectedObjectType: "locations",
connectedField: "pairedCurrencies"
}
},
{
id: "usedInPoliticalGroups",
name: "Used by political groups/ideologies",
type: "manyToManyRelationship",
icon: "mdi-bank-outline",
sizing: 4,
relationshipSettings: {
connectedObjectType: "politicalGroups",
connectedField: "localCurrencies"
}
},
{
id: "usedByRaces",
name: "Used by races",
type: "manyToManyRelationship",
icon: "fas fa-dragon",
sizing: 4,
relationshipSettings: {
connectedObjectType: "races",
connectedField: "localCurrencies"
}
}
]
}