-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathConstantHelper.ts
196 lines (168 loc) · 9.11 KB
/
ConstantHelper.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
export class ConstantHelper {
public static readonly sections = {
content: "Content",
media: "Media",
settings: "Settings",
packages: "Packages",
members: "Members",
dictionary: "Translation",
users: "Users"
}
public static readonly testUserCredentials = {
name: 'Test User',
email: '[email protected]',
password: 'verySecurePassword123'
}
public static readonly validationMessages = {
emptyLinkPicker: 'Please enter an anchor or querystring, or select a published document or media item, or manually configure the URL',
invalidValue: 'Value is invalid, it does not match the correct pattern',
unsupportInvariantContentItemWithVariantBlocks: 'One or more Block Types of this Block Editor is using a Element-Type that is configured to Vary By Culture or Vary By Segment. This is not supported on a Content item that does not vary by Culture or Segment.',
emptyValue: 'Value cannot be empty'
}
public static readonly inputTypes = {
general: 'input',
tipTap: 'umb-input-tiptap'
}
public static readonly approvedColorSettings = {
0: ['Include labels?', 'Stores colors as a JSON object containing both the color hex string and label, rather than just the hex string.'],
1: ['Colors', 'Add, remove or sort colors'],
}
public static readonly checkboxListSettings = {
0: ['Add option', 'Add, remove or sort options for the list.']
}
public static readonly contentPickerSettings = {
0: ['Ignore user start nodes', 'Selecting this option allows a user to choose nodes that they normally dont have access to.'],
1: ['Start node', '']
}
public static readonly datePickerSettings = {
0: ['Date format', 'If left empty then the format is YYYY-MM-DD'],
//1: ['Offset time', "When enabled the time displayed will be offset with the server's timezone, this is useful for scenarios like scheduled publishing when an editor is in a different timezone than the hosted server"]
}
public static readonly dropdownSettings = {
0: ['Enable multiple choice', ''],
1: ['Add options', '']
}
public static readonly imageCropperSettings = {
0: ['Define Crops', ''],
}
public static readonly mediaPickerSettings = {
0: ['Accepted types', 'Limit to specific types'],
1: ['Pick multiple items', 'Outputs a IEnumerable'],
2: ['Amount', 'Set a required range of medias'],
3: ['Start node', ''],
4: ['Enable Focal Point', ''],
5: ['Image Crops', 'Local crops, stored on document'],
6: ['Ignore User Start Nodes', 'Selecting this option allows a user to choose nodes that they normally dont have access to.'],
}
public static readonly labelSettings = {
0: ['Value type', 'The type of value to store'],
}
public static readonly listViewSettings = {
0: ['Columns Displayed', 'The properties that will be displayed for each column.'],
1: ['Layouts', 'The properties that will be displayed for each column.'],
2: ['Order By', 'The default sort order for the Collection.'],
3: ['Order Direction', ''],
4: ['Page Size', 'Number of items per page.'],
5: ['Workspace View icon', "The icon for the Collection's Workspace View."],
6: ['Workspace View name', "The name of the Collection's Workspace View (default if empty: Child Items)."],
7: ['Show Content Workspace View First', "Enable this to show the Content Workspace View by default instead of the Collection's."],
}
public static readonly multiURLPickerSettings = {
0: ['Minimum number of items', ''],
1: ['Maximum number of items', ''],
2: ['Ignore user start nodes', 'Selecting this option allows a user to choose nodes that they normally dont have access to.'],
3: ['Overlay Size', 'Select the width of the overlay.'],
4: ['Hide anchor/query string input', 'Selecting this hides the anchor/query string input field in the link picker overlay.'],
}
public static readonly numericSettings = {
0: ['Minimum', 'Enter the minimum amount of number to be entered'],
1: ['Maximum', 'Enter the maximum amount of number to be entered'],
2: ['Step size', 'Enter the intervals amount between each step of number to be entered']
}
public static readonly radioboxSettings = {
0: ['Add option', 'Add, remove or sort options for the list.'],
}
public static readonly tagsSettings = {
0: ['Tag group', ''],
1: ['Storage Type', 'Select whether to store the tags in cache as JSON (default) or CSV format. Notice that CSV does not support commas in the tag value.']
}
public static readonly textareaSettings = {
0: ['Maximum allowed characters', 'If empty - no character limit'],
1: ['Number of rows', 'If empty or zero, the textarea is set to auto-height']
}
public static readonly textstringSettings = {
0: ['Maximum allowed characters', 'If empty, 512 character limit'],
}
public static readonly trueFalseSettings = {
0: ['Preset value', ''],
1: ['Show on/off labels', ''],
2: ['Label On', 'Displays text when enabled.'],
3: ['Label Off', 'Displays text when disabled.'],
4: ['Screen Reader Label', ''],
}
public static readonly uploadSettings = {
0: ['Accepted file extensions', ''],
}
public static readonly tipTapSettings = {
0: ['Capabilities', 'Choose which Tiptap extensions to enable\nOnce enabled, the related actions will be available for the toolbar.'],
1: ['Toolbar', 'Design the available actions\nDrag and drop the available actions onto the toolbar.'],
2: ['Stylesheets', 'Pick the stylesheets whose editor styles should be available when editing!!!'],
3: ['Dimensions', 'Set the maximum width and height of the editor. This excludes the toolbar height.'],
4: ['Maximum size for inserted images', 'Maximum width or height - enter 0 to disable resizing.'],
5: ['Overlay size', 'Select the width of the overlay (link picker).'],
6: ['Available Blocks', 'Define the available blocks.'],
7: ['Image Upload Folder', 'Choose the upload location of pasted images.'],
8: ['Ignore User Start Nodes', ''],
}
public static readonly tinyMCESettings = {
0: ['Toolbar', 'Pick the toolbar options that should be available when editing'],
1: ['Stylesheets', 'Pick the stylesheets whose editor styles should be available when editing'],
2: ['Dimensions', 'Set the editor dimensions'],
3: ['Maximum size for inserted images', 'Maximum width or height - enter 0 to disable resizing.'],
4: ['Mode', 'Select the mode for the editor'],
5: ['Available Blocks', 'Define the available blocks.'],
6: ['Overlay size', 'Select the width of the overlay (link picker).'],
7: ['Hide Label', ''],
8: ['Image Upload Folder', 'Choose the upload location of pasted images.'],
9: ['Ignore User Start Nodes', ''],
}
public static readonly userGroupAssignAccessSettings = {
0: ['Sections', 'Add sections to give users access'],
1: ['Languages', 'Limit the languages users have access to edit'],
2: ['Select content start node', 'Limit the content tree to a specific start node'],
3: ['Select media start node', 'Limit the media library to a specific start node']
}
public static readonly userGroupDefaultPermissionsSettings = {
0: ['Permissions', 'Assign permissions for actions']
}
public static readonly userGroupGranularPermissionsSettings = {
0: ['Documents', 'Assign permissions to specific documents']
}
public static readonly userGroupPermissionsSettings = {
0: ['Browse', 'Allow access to view a node', 'Umb.Document.Read'],
1: ['Create Document Blueprint', 'Allow access to create a Document Blueprint', 'Umb.Document.CreateBlueprint'],
2: ['Delete', 'Allow access to delete nodes', 'Umb.Document.Delete'],
3: ['Create', 'Allow access to create nodes', 'Umb.Document.Create'],
4: ['Notifications', 'Allow access to setup notifications for content nodes', 'Umb.Document.Notifications'],
5: ['Publish', 'Allow access to publish a node', 'Umb.Document.Publish'],
6: ['Set permissions', 'Allow access to change permissions for a node', 'Umb.Document.Permissions'],
7: ['Unpublish', 'Allow access to unpublish a node', 'Umb.Document.Unpublish'],
8: ['Update', 'Allow access to save a node', 'Umb.Document.Update'],
9: ['Duplicate', 'Allow access to copy a node', 'Umb.Document.Duplicate'],
10: ['Move to', 'Allow access to move a node', 'Umb.Document.Move'],
11: ['Sort children', 'Allow access to change the sort order for nodes', 'Umb.Document.Sort'],
12: ['Culture and Hostnames', 'Allow access to assign culture and hostnames', 'Umb.Document.CultureAndHostnames'],
13: ['Public Access', 'Allow access to set and change access restrictions for a node', 'Umb.Document.PublicAccess'],
14: ['Rollback', 'Allow access to roll back a node to a previous state', 'Umb.Document.Rollback'],
}
public static readonly userGroupSectionsSettings = {
0: ['Content', 'Umb.Section.Content'],
1: ['Forms', 'Umb.Section.Forms'],
2: ['Media', 'Umb.Section.Media'],
3: ['Members', 'Umb.Section.Members'],
4: ['Packages', 'Umb.Section.Packages'],
5: ['Settings', 'Umb.Section.Settings'],
6: ['Translation', 'Umb.Section.Translation'],
7: ['Users', 'Umb.Section.Users'],
}
}