@cyberismo/assets 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD-PARTY.txt +127 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +892 -314
- package/dist/schemas.d.ts +39601 -38
- package/dist/static/pdf-themes/cyberismo-theme.yml +57 -0
- package/dist/static/pdf-themes/fonts/PlusJakartaSans-Bold.ttf +0 -0
- package/dist/static/pdf-themes/fonts/PlusJakartaSans-BoldItalic.ttf +0 -0
- package/dist/static/pdf-themes/fonts/PlusJakartaSans-ExtraBold.ttf +0 -0
- package/dist/static/pdf-themes/fonts/PlusJakartaSans-ExtraBoldItalic.ttf +0 -0
- package/dist/static/pdf-themes/fonts/PlusJakartaSans-ExtraLight.ttf +0 -0
- package/dist/static/pdf-themes/fonts/PlusJakartaSans-ExtraLightItalic.ttf +0 -0
- package/dist/static/pdf-themes/fonts/PlusJakartaSans-Italic.ttf +0 -0
- package/dist/static/pdf-themes/fonts/PlusJakartaSans-Light.ttf +0 -0
- package/dist/static/pdf-themes/fonts/PlusJakartaSans-LightItalic.ttf +0 -0
- package/dist/static/pdf-themes/fonts/PlusJakartaSans-Medium.ttf +0 -0
- package/dist/static/pdf-themes/fonts/PlusJakartaSans-MediumItalic.ttf +0 -0
- package/dist/static/pdf-themes/fonts/PlusJakartaSans-Regular.ttf +0 -0
- package/dist/static/pdf-themes/fonts/PlusJakartaSans-SemiBold.ttf +0 -0
- package/dist/static/pdf-themes/fonts/PlusJakartaSans-SemiBoldItalic.ttf +0 -0
- package/dist/static/pdf-themes/img/cyberismo-logo.png +0 -0
- package/package.json +3 -3
- package/src/calculations/common/base.lp +0 -14
- package/src/calculations/common/queryLanguage.lp +116 -265
- package/src/calculations/common/utils.lp +205 -0
- package/src/calculations/queries/card.lp +63 -57
- package/src/exportPdfReport/index.adoc.hbs +33 -0
- package/src/exportPdfReport/query.lp.hbs +47 -0
- package/src/graphvizReport/query.lp.hbs +10 -2
- package/src/index.ts +10 -1
- package/src/schema/cardsConfigSchema.json +3 -3
- package/src/schema/macros/imageMacroSchema.json +24 -0
- package/src/schema/macros/includeMacroSchema.json +26 -0
- package/src/schema/macros/percentageMacroSchema.json +25 -0
- package/src/schema/macros/vegaLiteMacroSchema.json +31711 -0
- package/src/schema/macros/vegaMacroSchema.json +14931 -0
- package/src/schema/macros/xrefMacroSchema.json +12 -0
- package/src/schema/resources/fieldTypeSchema.json +2 -1
- package/src/schema/resources/linkTypeSchema.json +2 -1
- package/src/schemas.ts +12 -0
- package/src/static/pdf-themes/cyberismo-theme.yml +57 -0
- package/src/static/pdf-themes/fonts/PlusJakartaSans-Bold.ttf +0 -0
- package/src/static/pdf-themes/fonts/PlusJakartaSans-BoldItalic.ttf +0 -0
- package/src/static/pdf-themes/fonts/PlusJakartaSans-ExtraBold.ttf +0 -0
- package/src/static/pdf-themes/fonts/PlusJakartaSans-ExtraBoldItalic.ttf +0 -0
- package/src/static/pdf-themes/fonts/PlusJakartaSans-ExtraLight.ttf +0 -0
- package/src/static/pdf-themes/fonts/PlusJakartaSans-ExtraLightItalic.ttf +0 -0
- package/src/static/pdf-themes/fonts/PlusJakartaSans-Italic.ttf +0 -0
- package/src/static/pdf-themes/fonts/PlusJakartaSans-Light.ttf +0 -0
- package/src/static/pdf-themes/fonts/PlusJakartaSans-LightItalic.ttf +0 -0
- package/src/static/pdf-themes/fonts/PlusJakartaSans-Medium.ttf +0 -0
- package/src/static/pdf-themes/fonts/PlusJakartaSans-MediumItalic.ttf +0 -0
- package/src/static/pdf-themes/fonts/PlusJakartaSans-Regular.ttf +0 -0
- package/src/static/pdf-themes/fonts/PlusJakartaSans-SemiBold.ttf +0 -0
- package/src/static/pdf-themes/fonts/PlusJakartaSans-SemiBoldItalic.ttf +0 -0
- package/src/static/pdf-themes/img/cyberismo-logo.png +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
extends: default
|
|
2
|
+
page:
|
|
3
|
+
size: a4
|
|
4
|
+
running-content:
|
|
5
|
+
start-at: toc
|
|
6
|
+
|
|
7
|
+
font:
|
|
8
|
+
merge: false
|
|
9
|
+
catalog:
|
|
10
|
+
Plus Jakarta Sans:
|
|
11
|
+
normal: PlusJakartaSans-Medium.ttf
|
|
12
|
+
italic: PlusJakartaSans-Italic.ttf
|
|
13
|
+
bold: PlusJakartaSans-Bold.ttf
|
|
14
|
+
bold_italic: PlusJakartaSans-BoldItalic.ttf
|
|
15
|
+
'M+ 1mn':
|
|
16
|
+
normal: GEM_FONTS_DIR/mplus1mn-regular-subset.ttf
|
|
17
|
+
bold: GEM_FONTS_DIR/mplus1mn-bold-subset.ttf
|
|
18
|
+
italic: GEM_FONTS_DIR/mplus1mn-italic-subset.ttf
|
|
19
|
+
bold_italic: GEM_FONTS_DIR/mplus1mn-bold_italic-subset.ttf
|
|
20
|
+
|
|
21
|
+
base:
|
|
22
|
+
font-family: Plus Jakarta Sans
|
|
23
|
+
font-style: normal
|
|
24
|
+
|
|
25
|
+
heading:
|
|
26
|
+
font-family: Plus Jakarta Sans
|
|
27
|
+
font-style: bold
|
|
28
|
+
|
|
29
|
+
codespan:
|
|
30
|
+
font_family: Courier
|
|
31
|
+
|
|
32
|
+
code:
|
|
33
|
+
font_family: Courier
|
|
34
|
+
|
|
35
|
+
title-page:
|
|
36
|
+
logo:
|
|
37
|
+
image: image:img/cyberismo-logo.png[pdfwidth=2.5in,align=right]
|
|
38
|
+
title:
|
|
39
|
+
font-color: #ff530f
|
|
40
|
+
font-style: bold
|
|
41
|
+
align: center
|
|
42
|
+
|
|
43
|
+
header:
|
|
44
|
+
height: 0.5in
|
|
45
|
+
recto:
|
|
46
|
+
right:
|
|
47
|
+
content: image:img/cyberismo-logo.png[pdfwidth=12%]
|
|
48
|
+
verso:
|
|
49
|
+
left:
|
|
50
|
+
content: image:img/cyberismo-logo.png[pdfwidth=12%]
|
|
51
|
+
|
|
52
|
+
footer:
|
|
53
|
+
columns: =100%
|
|
54
|
+
recto: &shared_footer
|
|
55
|
+
center:
|
|
56
|
+
content: '{page-number}'
|
|
57
|
+
verso: *shared_footer
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyberismo/assets",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "This package contains static resources",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"src"
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
|
-
"build": "shx rm -rf dist && shx mkdir -p dist && pnpm script:schemas && node scripts/build.js && tsc && shx cp -r src/static dist/",
|
|
27
|
-
"dev": "chokidar 'src/**/*' -c 'pnpm build'",
|
|
26
|
+
"build": "shx rm -rf dist && shx mkdir -p dist && shx cp THIRD-PARTY.txt dist/ && pnpm script:schemas && node scripts/build.js && tsc && shx cp -r src/static dist/",
|
|
27
|
+
"dev": "pnpm build && chokidar 'src/**/*' -i 'src/schemas.ts' -c 'pnpm build'",
|
|
28
28
|
"script:schemas": "node scripts/generateSchemaImports && prettier --write src/schemas.ts"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -34,20 +34,6 @@ dataType(Key, Field, DataType) :-
|
|
|
34
34
|
fieldType(Field),
|
|
35
35
|
field(Field, "dataType", DataType).
|
|
36
36
|
|
|
37
|
-
% data types for enum values
|
|
38
|
-
|
|
39
|
-
dataType((FieldType, EnumValue), "index", "integer") :-
|
|
40
|
-
enumValue(FieldType, EnumValue).
|
|
41
|
-
|
|
42
|
-
dataType((FieldType, EnumValue), "enumDisplayValue", "shortText") :-
|
|
43
|
-
enumValue(FieldType, EnumValue).
|
|
44
|
-
|
|
45
|
-
dataType((FieldType, EnumValue), "enumDescription", "longText") :-
|
|
46
|
-
enumValue(FieldType, EnumValue).
|
|
47
|
-
|
|
48
|
-
dataType((FieldType, EnumValue), "enumValue", "longText") :-
|
|
49
|
-
enumValue(FieldType, EnumValue).
|
|
50
|
-
|
|
51
37
|
% descendants of hidden cards are hidden
|
|
52
38
|
|
|
53
39
|
hiddenInTreeView(Card) :-
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
% select(field): "field" should be returned on all levels of hierarchy for all collections
|
|
7
7
|
% selectAll: all fields should be returned on all levels of hierarchy for all collections
|
|
8
8
|
|
|
9
|
-
% select works similarly for "labels", "links", "notifications", "policyChecks" and "deniedOperations" as it works for fields
|
|
10
9
|
|
|
11
10
|
select(N, Collection, Field) :- select(Field), resultLevel(_, N, Collection).
|
|
12
11
|
|
|
@@ -22,40 +21,62 @@ childResult(Key, Child, "results") :- childResult(Key, Child).
|
|
|
22
21
|
% resultLevel(key, n, collection): result "key" is on result level n in "collection"
|
|
23
22
|
resultLevel(Key, 1, "results") :- result(Key).
|
|
24
23
|
resultLevel(Child, N+1, Collection) :- childResult(Key, Child, Collection), resultLevel(Key, N, _).
|
|
24
|
+
resultLevel(Child, N+1, Collection) :- childObject(Key, Child, Collection), resultLevel(Key, N, _).
|
|
25
25
|
|
|
26
26
|
% result(key): key is a result of the query
|
|
27
27
|
#show result(Key) : result(Key), not queryError.
|
|
28
28
|
|
|
29
29
|
% childResult(key, child key): child key is a child result of key
|
|
30
30
|
#show childResult(Key, Child, Collection) : childResult(Key, Child, Collection), not queryError.
|
|
31
|
-
|
|
31
|
+
% childObject(key, child, collection): childObject is similar to childResult, expect it is an object
|
|
32
|
+
#show childObject(Key, Child, Collection) : childObject(Key, Child, Collection), not queryError.
|
|
32
33
|
% helpers for simplifying some of the #show statements
|
|
33
34
|
|
|
34
|
-
%
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
% anyResult(key): key is included in the results as a result or a child result/object
|
|
36
|
+
anyResult(Key) :- result(Key).
|
|
37
|
+
anyResult(Key) :- childResult(_, Key, _).
|
|
38
|
+
anyResult(Key) :- childObject(_, Key, _).
|
|
37
39
|
|
|
38
40
|
% showAll(key): whether all fields or field-like things of a key should be included in the results
|
|
39
41
|
showAll(Key) :-
|
|
40
|
-
|
|
42
|
+
anyResult(Key),
|
|
41
43
|
resultLevel(Key, Level, _),
|
|
42
44
|
selectAll(Level),
|
|
43
45
|
not queryError.
|
|
44
46
|
|
|
45
47
|
% showField: whether a certain field or field-like thing of a key should be included in the results
|
|
46
48
|
showField(Key, Field) :-
|
|
47
|
-
|
|
49
|
+
anyResult(Key),
|
|
48
50
|
resultLevel(Key, Level, _),
|
|
49
51
|
select(Level, Field),
|
|
50
52
|
not queryError.
|
|
51
53
|
|
|
52
54
|
showField(Key, Field) :-
|
|
53
|
-
|
|
55
|
+
anyResult(Key),
|
|
54
56
|
resultLevel(Key, Level, Collection),
|
|
55
57
|
select(Level, Collection, Field),
|
|
56
58
|
not queryError.
|
|
57
59
|
|
|
58
|
-
%
|
|
60
|
+
% showField is also defined if showAll is defined so there is only a single show predicate for each result
|
|
61
|
+
showField(Key, Field) :- showAll(Key), field(Key, Field, _).
|
|
62
|
+
|
|
63
|
+
% Allow specifying up to 3 fields at the same time for showField, similar to field
|
|
64
|
+
% For specifying 2 fields
|
|
65
|
+
resultField(Key, Field, Value, DataType) :-
|
|
66
|
+
resultFields(Key, Field, Value, DataType, _, _, _).
|
|
67
|
+
|
|
68
|
+
resultField(Key, Field, Value, DataType) :-
|
|
69
|
+
resultFields(Key, _, _, _, Field, Value, DataType).
|
|
70
|
+
|
|
71
|
+
% For specifying 3 fields
|
|
72
|
+
resultField(Key, Field, Value, DataType) :-
|
|
73
|
+
resultFields(Key, Field, Value, DataType, _, _, _, _, _, _).
|
|
74
|
+
|
|
75
|
+
resultField(Key, Field, Value, DataType) :-
|
|
76
|
+
resultFields(Key, _, _, _, Field, Value, DataType, _, _, _).
|
|
77
|
+
|
|
78
|
+
resultField(Key, Field, Value, DataType) :-
|
|
79
|
+
resultFields(Key, _, _, _, _, _, _, Field, Value, DataType).
|
|
59
80
|
%
|
|
60
81
|
% field(key, field, value, data type):
|
|
61
82
|
% "field" of result/child result "key" has value "value",
|
|
@@ -75,291 +96,121 @@ showField(Key, Field) :-
|
|
|
75
96
|
showField(Key, Field).
|
|
76
97
|
|
|
77
98
|
#show field(Key, Field, Value, DataType) :
|
|
78
|
-
field(Key, Field, Value),
|
|
79
|
-
dataType(Key, Field, DataType),
|
|
80
99
|
DataType != "enum",
|
|
81
100
|
DataType != "list",
|
|
82
|
-
|
|
101
|
+
resultField(Key, Field, Value, DataType).
|
|
83
102
|
|
|
84
103
|
#show field(Key, Field, Value, "shortText") :
|
|
85
104
|
field(Key, Field, Value),
|
|
86
105
|
not dataType(Key, Field, _),
|
|
87
106
|
showField(Key, Field).
|
|
88
107
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
108
|
+
% list
|
|
109
|
+
childResult(Key, (Key, Field, Value), Field) :-
|
|
110
|
+
DataType = "list",
|
|
111
|
+
resultField(Key, Field, Value, DataType).
|
|
93
112
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
field((Field, Value), "index", Index),
|
|
98
|
-
field((Field, Value), "enumDisplayValue", DisplayValue),
|
|
99
|
-
showField(Key, Field).
|
|
113
|
+
resultField((Key, Field, Value), "value", Value, "shortText") :-
|
|
114
|
+
childResult(Key, (Key, Field, Value), Field),
|
|
115
|
+
resultField(Key, Field, Value, _).
|
|
100
116
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
field((Field, Value), "index", Index)
|
|
105
|
-
|
|
106
|
-
|
|
117
|
+
resultField((Key, Field, Value), "index", Index, "integer") :-
|
|
118
|
+
childResult(Key, (Key, Field, Value), Field),
|
|
119
|
+
resultField(Key, Field, Value, _),
|
|
120
|
+
field((Field, Value), "index", Index).
|
|
121
|
+
|
|
122
|
+
resultField((Key, Field, Value), "displayName", EnumDisplayValue, "shortText") :-
|
|
123
|
+
childResult(Key, (Key, Field, Value), Field),
|
|
124
|
+
resultField(Key, Field, Value, _),
|
|
125
|
+
field((Field, Value), "enumDisplayValue", EnumDisplayValue).
|
|
107
126
|
|
|
108
|
-
|
|
127
|
+
childResult(Key, (Key, Field, Value), Field) :-
|
|
109
128
|
field(Key, Field, Value),
|
|
110
|
-
dataType(Key, Field, "
|
|
111
|
-
not field((Field, Value), "index", _),
|
|
112
|
-
not field((Field, Value), "enumDisplayValue", _),
|
|
129
|
+
dataType(Key, Field, "list"),
|
|
113
130
|
showField(Key, Field).
|
|
114
131
|
|
|
115
|
-
|
|
132
|
+
resultField((Key, Field, Value), "value", Value, "shortText") :-
|
|
133
|
+
childResult(Key, (Key, Field, Value), Field),
|
|
116
134
|
field(Key, Field, Value),
|
|
117
|
-
dataType(Key, Field, "
|
|
118
|
-
field((Field, Value), "index", Index),
|
|
119
|
-
field((Field, Value), "enumDisplayValue", DisplayValue),
|
|
120
|
-
showAll(Key).
|
|
135
|
+
dataType(Key, Field, "list").
|
|
121
136
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
dataType(Key, Field, "enum"),
|
|
125
|
-
field((Field, Value), "index", Index),
|
|
126
|
-
not field((Field, Value), "enumDisplayValue", _),
|
|
127
|
-
showAll(Key).
|
|
128
|
-
|
|
129
|
-
#show enumField(Key, Field, Value) :
|
|
130
|
-
field(Key, Field, Value),
|
|
131
|
-
dataType(Key, Field, "enum"),
|
|
132
|
-
not field((Field, Value), "index", _),
|
|
133
|
-
not field((Field, Value), "enumDisplayValue", _),
|
|
134
|
-
showAll(Key).
|
|
135
|
-
|
|
136
|
-
#show listField(Key, Field, Value, Index, DisplayValue) :
|
|
137
|
+
resultField((Key, Field, Value), "index", Index, "integer") :-
|
|
138
|
+
childResult(Key, (Key, Field, Value), Field),
|
|
137
139
|
field(Key, Field, Value),
|
|
138
140
|
dataType(Key, Field, "list"),
|
|
139
|
-
field((Field, Value), "index", Index)
|
|
140
|
-
field((Field, Value), "enumDisplayValue", DisplayValue),
|
|
141
|
-
showField(Key, Field).
|
|
141
|
+
field((Field, Value), "index", Index).
|
|
142
142
|
|
|
143
|
-
|
|
143
|
+
resultField((Key, Field, Value), "displayName", EnumDisplayValue, "shortText") :-
|
|
144
|
+
childResult(Key, (Key, Field, Value), Field),
|
|
144
145
|
field(Key, Field, Value),
|
|
145
146
|
dataType(Key, Field, "list"),
|
|
146
|
-
field((Field, Value), "
|
|
147
|
-
not field((Field, Value), "enumDisplayValue", _),
|
|
148
|
-
showField(Key, Field).
|
|
147
|
+
field((Field, Value), "enumDisplayValue", EnumDisplayValue).
|
|
149
148
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
149
|
+
% enum
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
childObject(Key, (Key, Field), Field) :-
|
|
153
|
+
DataType = "enum",
|
|
154
|
+
resultField(Key, Field, _, DataType).
|
|
155
|
+
|
|
156
|
+
resultField((Key, Field), "value", Value, "shortText") :-
|
|
157
|
+
childObject(Key, (Key, Field), Field),
|
|
158
|
+
resultField(Key, Field, Value, _).
|
|
159
|
+
|
|
160
|
+
resultField((Key, Field), "index", Index, "integer") :-
|
|
161
|
+
childObject(Key, (Key, Field), Field),
|
|
162
|
+
resultField(Key, Field, _, _),
|
|
163
|
+
field((Field, Value), "index", Index).
|
|
164
|
+
|
|
165
|
+
resultField((Key, Field), "displayValue", EnumDisplayValue, "shortText") :-
|
|
166
|
+
childObject(Key, (Key, Field), Field),
|
|
167
|
+
field((Field, Value), "enumDisplayValue", EnumDisplayValue).
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
childObject(Key, (Key, Field), Field) :-
|
|
171
|
+
field(Key, Field, _),
|
|
172
|
+
dataType(Key, Field, "enum"),
|
|
155
173
|
showField(Key, Field).
|
|
156
174
|
|
|
157
|
-
|
|
175
|
+
resultField((Key, Field), "value", Value, "shortText") :-
|
|
176
|
+
childObject(Key, (Key, Field), Field),
|
|
158
177
|
field(Key, Field, Value),
|
|
159
|
-
dataType(Key, Field, "
|
|
160
|
-
field((Field, Value), "index", Index),
|
|
161
|
-
field((Field, Value), "enumDisplayValue", DisplayValue),
|
|
162
|
-
showAll(Key).
|
|
178
|
+
dataType(Key, Field, "enum").
|
|
163
179
|
|
|
164
|
-
|
|
180
|
+
resultField((Key, Field), "index", Index, "integer") :-
|
|
181
|
+
childObject(Key, (Key, Field), Field),
|
|
165
182
|
field(Key, Field, Value),
|
|
166
|
-
dataType(Key, Field, "
|
|
167
|
-
field((Field, Value), "index", Index)
|
|
168
|
-
not field((Field, Value), "enumDisplayValue", _),
|
|
169
|
-
showAll(Key).
|
|
183
|
+
dataType(Key, Field, "enum"),
|
|
184
|
+
field((Field, Value), "index", Index).
|
|
170
185
|
|
|
171
|
-
|
|
186
|
+
resultField((Key, Field), "displayValue", EnumDisplayValue, "shortText") :-
|
|
187
|
+
childObject(Key, (Key, Field), Field),
|
|
172
188
|
field(Key, Field, Value),
|
|
173
|
-
dataType(Key, Field, "
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
field(Source, "title", SourceTitle),
|
|
199
|
-
field(LinkType, "inboundDisplayName", InboundDisplayName),
|
|
200
|
-
showField(Destination, "links").
|
|
201
|
-
|
|
202
|
-
#show link(Source, Destination, DestinationTitle, LinkType, OutboundDisplayName, "outbound", "user", LinkDescription) :
|
|
203
|
-
userLink(Source, Destination, LinkType, LinkDescription),
|
|
204
|
-
field(Destination, "title", DestinationTitle),
|
|
205
|
-
field(LinkType, "outboundDisplayName", OutboundDisplayName),
|
|
206
|
-
showAll(Source).
|
|
207
|
-
|
|
208
|
-
#show link(Destination, Source, SourceTitle, LinkType, InboundDisplayName, "inbound", "user", LinkDescription) :
|
|
209
|
-
userLink(Source, Destination, LinkType, LinkDescription),
|
|
210
|
-
field(Source, "title", SourceTitle),
|
|
211
|
-
field(LinkType, "inboundDisplayName", InboundDisplayName),
|
|
212
|
-
showAll(Destination).
|
|
213
|
-
|
|
214
|
-
#show link(Source, Destination, DestinationTitle, LinkType, OutboundDisplayName, "outbound", "user") :
|
|
215
|
-
userLink(Source, Destination, LinkType),
|
|
216
|
-
field(Destination, "title", DestinationTitle),
|
|
217
|
-
field(LinkType, "outboundDisplayName", OutboundDisplayName),
|
|
218
|
-
showField(Source, "links").
|
|
219
|
-
|
|
220
|
-
#show link(Destination, Source, SourceTitle, LinkType, InboundDisplayName, "inbound", "user") :
|
|
221
|
-
userLink(Source, Destination, LinkType),
|
|
222
|
-
field(Source, "title", SourceTitle),
|
|
223
|
-
field(LinkType, "inboundDisplayName", InboundDisplayName),
|
|
224
|
-
showField(Destination, "links").
|
|
225
|
-
|
|
226
|
-
#show link(Source, Destination, DestinationTitle, LinkType, OutboundDisplayName, "outbound", "user") :
|
|
227
|
-
userLink(Source, Destination, LinkType),
|
|
228
|
-
field(Destination, "title", DestinationTitle),
|
|
229
|
-
field(LinkType, "outboundDisplayName", OutboundDisplayName),
|
|
230
|
-
showAll(Source).
|
|
231
|
-
|
|
232
|
-
#show link(Destination, Source, SourceTitle, LinkType, InboundDisplayName, "inbound", "user") :
|
|
233
|
-
userLink(Source, Destination, LinkType),
|
|
234
|
-
field(Source, "title", SourceTitle),
|
|
235
|
-
field(LinkType, "inboundDisplayName", InboundDisplayName),
|
|
236
|
-
showAll(Destination).
|
|
237
|
-
|
|
238
|
-
#show link(Source, Destination, DestinationTitle, LinkType, OutboundDisplayName, "outbound", "calculated", LinkDescription) :
|
|
239
|
-
calculatedLink(Source, Destination, LinkType, LinkDescription),
|
|
240
|
-
field(Destination, "title", DestinationTitle),
|
|
241
|
-
field(LinkType, "outboundDisplayName", OutboundDisplayName),
|
|
242
|
-
showField(Source, "links").
|
|
243
|
-
|
|
244
|
-
#show link(Destination, Source, SourceTitle, LinkType, InboundDisplayName, "inbound", "calculated", LinkDescription) :
|
|
245
|
-
calculatedLink(Source, Destination, LinkType, LinkDescription),
|
|
246
|
-
field(Source, "title", SourceTitle),
|
|
247
|
-
field(LinkType, "inboundDisplayName", InboundDisplayName),
|
|
248
|
-
showField(Destination, "links").
|
|
249
|
-
|
|
250
|
-
#show link(Source, Destination, DestinationTitle, LinkType, OutboundDisplayName, "outbound", "calculated", LinkDescription) :
|
|
251
|
-
calculatedLink(Source, Destination, LinkType, LinkDescription),
|
|
252
|
-
field(Destination, "title", DestinationTitle),
|
|
253
|
-
field(LinkType, "outboundDisplayName", OutboundDisplayName),
|
|
254
|
-
showAll(Source).
|
|
255
|
-
|
|
256
|
-
#show link(Destination, Source, SourceTitle, LinkType, InboundDisplayName, "inbound", "calculated", LinkDescription) :
|
|
257
|
-
calculatedLink(Source, Destination, LinkType, LinkDescription),
|
|
258
|
-
field(Source, "title", SourceTitle),
|
|
259
|
-
field(LinkType, "inboundDisplayName", InboundDisplayName),
|
|
260
|
-
showAll(Destination).
|
|
261
|
-
|
|
262
|
-
#show link(Source, Destination, DestinationTitle, LinkType, OutboundDisplayName, "outbound", "calculated") :
|
|
263
|
-
calculatedLink(Source, Destination, LinkType),
|
|
264
|
-
field(Destination, "title", DestinationTitle),
|
|
265
|
-
field(LinkType, "outboundDisplayName", OutboundDisplayName),
|
|
266
|
-
showField(Source, "links").
|
|
267
|
-
|
|
268
|
-
#show link(Destination, Source, SourceTitle, LinkType, InboundDisplayName, "inbound", "calculated") :
|
|
269
|
-
calculatedLink(Source, Destination, LinkType),
|
|
270
|
-
field(Source, "title", SourceTitle),
|
|
271
|
-
field(LinkType, "inboundDisplayName", InboundDisplayName),
|
|
272
|
-
showField(Destination, "links").
|
|
273
|
-
|
|
274
|
-
#show link(Source, Destination, DestinationTitle, LinkType, OutboundDisplayName, "outbound", "calculated") :
|
|
275
|
-
calculatedLink(Source, Destination, LinkType),
|
|
276
|
-
field(Destination, "title", DestinationTitle),
|
|
277
|
-
field(LinkType, "outboundDisplayName", OutboundDisplayName),
|
|
278
|
-
showAll(Source).
|
|
279
|
-
|
|
280
|
-
#show link(Destination, Source, SourceTitle, LinkType, InboundDisplayName, "inbound", "calculated") :
|
|
281
|
-
calculatedLink(Source, Destination, LinkType),
|
|
282
|
-
field(Source, "title", SourceTitle),
|
|
283
|
-
field(LinkType, "inboundDisplayName", InboundDisplayName),
|
|
284
|
-
showAll(Destination).
|
|
285
|
-
|
|
286
|
-
% notifications
|
|
287
|
-
|
|
288
|
-
#show notification(Key, Category, Title, Message) :
|
|
289
|
-
notification(Key, Category, Title, Message),
|
|
290
|
-
showField(Key, "notifications").
|
|
291
|
-
|
|
292
|
-
#show notification(Key, Category, Title, Message) :
|
|
293
|
-
notification(Key, Category, Title, Message),
|
|
294
|
-
showAll(Key).
|
|
295
|
-
|
|
296
|
-
% policy checks
|
|
297
|
-
|
|
298
|
-
#show policyCheckFailure(Key, Category, Title, ErrorMessage, Field) :
|
|
299
|
-
policyCheckFailure(Key, Category, Title, ErrorMessage, Field),
|
|
300
|
-
showField(Key, "policyChecks").
|
|
301
|
-
|
|
302
|
-
#show policyCheckFailure(Key, Category, Title, ErrorMessage, Field) :
|
|
303
|
-
policyCheckFailure(Key, Category, Title, ErrorMessage, Field),
|
|
304
|
-
showAll(Key).
|
|
305
|
-
|
|
306
|
-
#show policyCheckFailure(Key, Category, Title, ErrorMessage) :
|
|
307
|
-
policyCheckFailure(Key, Category, Title, ErrorMessage),
|
|
308
|
-
showField(Key, "policyChecks").
|
|
309
|
-
|
|
310
|
-
#show policyCheckFailure(Key, Category, Title, ErrorMessage) :
|
|
311
|
-
policyCheckFailure(Key, Category, Title, ErrorMessage),
|
|
312
|
-
showAll(Key).
|
|
313
|
-
|
|
314
|
-
#show policyCheckSuccess(Key, Category, Title) :
|
|
315
|
-
policyCheckSuccess(Key, Category, Title),
|
|
316
|
-
showField(Key, "policyChecks").
|
|
317
|
-
|
|
318
|
-
#show policyCheckSuccess(Key, Category, Title) :
|
|
319
|
-
policyCheckSuccess(Key, Category, Title),
|
|
320
|
-
showAll(Key).
|
|
321
|
-
|
|
322
|
-
% denied operations
|
|
323
|
-
|
|
324
|
-
#show transitionDenied(Key, Transition, ErrorMessage) :
|
|
325
|
-
transitionDenied(Key, Transition, ErrorMessage),
|
|
326
|
-
showField(Key, "deniedOperations").
|
|
327
|
-
|
|
328
|
-
#show transitionDenied(Key, Transition, ErrorMessage) :
|
|
329
|
-
transitionDenied(Key, Transition, ErrorMessage),
|
|
330
|
-
showAll(Key).
|
|
331
|
-
|
|
332
|
-
#show movingCardDenied(Key, ErrorMessage) :
|
|
333
|
-
movingCardDenied(Key, ErrorMessage),
|
|
334
|
-
showField(Key, "deniedOperations").
|
|
335
|
-
|
|
336
|
-
#show movingCardDenied(Key, ErrorMessage) :
|
|
337
|
-
movingCardDenied(Key, ErrorMessage),
|
|
338
|
-
showAll(Key).
|
|
339
|
-
|
|
340
|
-
#show deletingCardDenied(Key, ErrorMessage) :
|
|
341
|
-
deletingCardDenied(Key, ErrorMessage),
|
|
342
|
-
showField(Key, "deniedOperations").
|
|
343
|
-
|
|
344
|
-
#show deletingCardDenied(Key, ErrorMessage) :
|
|
345
|
-
deletingCardDenied(Key, ErrorMessage),
|
|
346
|
-
showAll(Key).
|
|
347
|
-
|
|
348
|
-
#show editingFieldDenied(Key, Field, ErrorMessage) :
|
|
349
|
-
editingFieldDenied(Key, Field, ErrorMessage),
|
|
350
|
-
showField(Key, "deniedOperations").
|
|
351
|
-
|
|
352
|
-
#show editingFieldDenied(Key, Field, ErrorMessage) :
|
|
353
|
-
editingFieldDenied(Key, Field, ErrorMessage),
|
|
354
|
-
showAll(Key).
|
|
355
|
-
|
|
356
|
-
#show editingContentDenied(Key, ErrorMessage) :
|
|
357
|
-
editingContentDenied(Key, ErrorMessage),
|
|
358
|
-
showField(Key, "deniedOperations").
|
|
359
|
-
|
|
360
|
-
#show editingContentDenied(Key, ErrorMessage) :
|
|
361
|
-
editingContentDenied(Key, ErrorMessage),
|
|
362
|
-
showAll(Key).
|
|
189
|
+
dataType(Key, Field, "enum"),
|
|
190
|
+
field((Field, Value), "enumDisplayValue", EnumDisplayValue).
|
|
191
|
+
|
|
192
|
+
% Allow specifying up to 3 fields at the same time
|
|
193
|
+
field(Key, Field, Value) :-
|
|
194
|
+
fields(Key, Field, Value, _, _).
|
|
195
|
+
|
|
196
|
+
field(Key, Field, Value) :-
|
|
197
|
+
fields(Key, _, _, Field, Value).
|
|
198
|
+
|
|
199
|
+
field(Key, Field, Value) :-
|
|
200
|
+
fields(Key, Field, Value, _, _, _, _).
|
|
201
|
+
|
|
202
|
+
field(Key, Field, Value) :-
|
|
203
|
+
fields(Key, _, _, Field, Value, _, _).
|
|
204
|
+
|
|
205
|
+
field(Key, Field, Value) :-
|
|
206
|
+
fields(Key, _, _, _, _, Field, Value).
|
|
207
|
+
|
|
208
|
+
% allow using field directly
|
|
209
|
+
% fields are always shown
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
% childResultCollection(ParentKey, Collection): Defines a childResult. Allows guaranteeing an empty list, if no elements are present
|
|
213
|
+
#show childResultCollection(ParentKey, Collection) : childResultCollection(ParentKey, Collection).
|
|
363
214
|
|
|
364
215
|
% order(n, collection, 1, field, direction): the results in the collection on level n should be first ordered by "field" in "direction"
|
|
365
216
|
% order(n, collection, 2, field, direction): the results in the collection on level n should be secondly ordered by "field" in "direction"
|