@nebula.js/sn-org-chart 1.1.0 → 1.2.0

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # sn-org-chart
2
2
 
3
- [![CircleCI](https://circleci.com/gh/qlik-oss/sn-org-chart.svg?style=svg)](https://circleci.com/gh/qlik-oss/sn-org-chart)
4
- [![Coverage Status](https://coveralls.io/repos/github/qlik-oss/sn-org-chart/badge.svg)](https://coveralls.io/github/qlik-oss/sn-org-chart)
3
+ [![Maintainability](https://api.codeclimate.com/v1/badges/ade25ba21298edd5cf95/maintainability)](https://codeclimate.com/repos/6627a2755c8df620cf6e1cb8/maintainability)
4
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/ade25ba21298edd5cf95/test_coverage)](https://codeclimate.com/repos/6627a2755c8df620cf6e1cb8/test_coverage)
5
5
 
6
6
  Organizational chart for use with Qlik's Analytics Platform.
7
7
 
@@ -1,9 +1,9 @@
1
1
  {
2
- "scriptappy": "1.0.0",
2
+ "scriptappy": "1.1.0",
3
3
  "info": {
4
4
  "name": "@nebula.js/sn-org-chart:properties",
5
5
  "description": "Org chart generic object definition",
6
- "version": "1.1.0",
6
+ "version": "1.2.0",
7
7
  "license": "MIT",
8
8
  "stability": "experimental",
9
9
  "x-qlik-visibility": "public"
@@ -12,11 +12,26 @@
12
12
  "properties": {
13
13
  "extends": [
14
14
  {
15
- "type": "qae.GenericObjectProperties"
15
+ "type": "EngineAPI.GenericObjectProperties"
16
16
  }
17
17
  ],
18
18
  "kind": "object",
19
19
  "entries": {
20
+ "showTitles": {
21
+ "description": "Show title for the visualization",
22
+ "defaultValue": true,
23
+ "type": "boolean"
24
+ },
25
+ "title": {
26
+ "description": "Visualization title",
27
+ "defaultValue": "",
28
+ "type": "string"
29
+ },
30
+ "subtitle": {
31
+ "description": "Visualization subtitle",
32
+ "defaultValue": "",
33
+ "type": "string"
34
+ },
20
35
  "footnote": {
21
36
  "description": "Visualization footnote",
22
37
  "defaultValue": "",
@@ -35,206 +50,205 @@
35
50
  "kind": "literal",
36
51
  "value": "'free'"
37
52
  }
38
- ],
39
- "type": "string"
53
+ ]
40
54
  },
41
55
  "resizeOnExpand": {
42
56
  "description": "Resize and pan chart when a node's list of children is expanded",
43
57
  "defaultValue": false,
44
58
  "type": "boolean"
45
59
  },
46
- "showTitles": {
47
- "description": "Show title for the visualization",
48
- "defaultValue": true,
49
- "type": "boolean"
50
- },
51
60
  "style": {
52
61
  "description": "Holds chart styling",
53
62
  "type": "#/definitions/Style"
54
- },
55
- "subtitle": {
56
- "description": "Visualization subtitle",
57
- "defaultValue": "",
58
- "type": "string"
59
- },
60
- "title": {
61
- "description": "Visualization title",
62
- "defaultValue": "",
63
- "type": "string"
64
63
  }
65
64
  }
66
65
  }
67
66
  },
68
67
  "definitions": {
69
- "Background": {
70
- "kind": "object",
71
- "entries": {
72
- "colorType": {
73
- "description": "How the background color is defined",
74
- "optional": true,
75
- "defaultValue": "'colorPicker'",
76
- "kind": "union",
77
- "items": [
78
- {
79
- "kind": "literal",
80
- "value": "'auto'"
81
- },
82
- {
83
- "kind": "literal",
84
- "value": "'colorPicker'"
85
- },
86
- {
87
- "kind": "literal",
88
- "value": "'byExpression'"
89
- }
90
- ],
91
- "type": "string"
92
- },
93
- "color": {
94
- "description": "Color defined by index or hex code, needed if colorType is colorPicker",
95
- "optional": true,
96
- "type": "#/definitions/PaletteColor"
97
- },
98
- "colorExpression": {
99
- "description": "Color defined by expression, needed if colorType is byExpression",
100
- "optional": true,
101
- "type": "#/definitions/ColorExpression"
68
+ "Style": {
69
+ "description": "Holds styling options",
70
+ "kind": "alias",
71
+ "items": {
72
+ "kind": "object",
73
+ "entries": {
74
+ "fontColor": {
75
+ "description": "Color of the text, by default #484848",
76
+ "optional": true,
77
+ "type": "#/definitions/FontColor"
78
+ },
79
+ "backgroundColor": {
80
+ "description": "Color of the background, by default #ffffff",
81
+ "optional": true,
82
+ "type": "#/definitions/Background"
83
+ },
84
+ "border": {
85
+ "description": "Styling for border, by default #737373",
86
+ "optional": true,
87
+ "type": "#/definitions/Border"
88
+ }
102
89
  }
103
90
  }
104
91
  },
105
- "Border": {
106
- "kind": "object",
107
- "entries": {
108
- "top": {
109
- "description": "Set to true to show thicker top border",
110
- "optional": true,
111
- "defaultValue": true,
112
- "type": "boolean"
113
- },
114
- "fullBorder": {
115
- "description": "Set to true to show full border",
116
- "optional": true,
117
- "defaultValue": true,
118
- "type": "boolean"
119
- },
120
- "colorType": {
121
- "description": "How the border color is defined",
122
- "optional": true,
123
- "defaultValue": "'auto'",
124
- "kind": "union",
125
- "items": [
126
- {
127
- "kind": "literal",
128
- "value": "'auto'"
129
- },
130
- {
131
- "kind": "literal",
132
- "value": "'colorPicker'"
133
- },
134
- {
135
- "kind": "literal",
136
- "value": "'byExpression'"
137
- }
138
- ],
139
- "type": "string"
140
- },
141
- "color": {
142
- "description": "Color defined by index or hex code, needed if colorType is colorPicker",
143
- "optional": true,
144
- "type": "#/definitions/PaletteColor"
145
- },
146
- "colorExpression": {
147
- "description": "Color defined by expression, needed if colorType is byExpression",
148
- "optional": true,
149
- "type": "#/definitions/ColorExpression"
92
+ "FontColor": {
93
+ "kind": "alias",
94
+ "items": {
95
+ "kind": "object",
96
+ "entries": {
97
+ "colorType": {
98
+ "description": "How the font color is defined",
99
+ "optional": true,
100
+ "defaultValue": "'auto'",
101
+ "kind": "union",
102
+ "items": [
103
+ {
104
+ "kind": "literal",
105
+ "value": "'auto'"
106
+ },
107
+ {
108
+ "kind": "literal",
109
+ "value": "'colorPicker'"
110
+ },
111
+ {
112
+ "kind": "literal",
113
+ "value": "'byExpression'"
114
+ }
115
+ ]
116
+ },
117
+ "color": {
118
+ "description": "Color defined by index or hex code, needed if colorType is colorPicker",
119
+ "optional": true,
120
+ "type": "#/definitions/PaletteColor"
121
+ },
122
+ "colorExpression": {
123
+ "description": "Color defined by expression, needed if colorType is byExpression",
124
+ "optional": true,
125
+ "type": "#/definitions/ColorExpression"
126
+ }
150
127
  }
151
128
  }
152
129
  },
153
- "ColorExpression": {
154
- "description": "Format for using color expressions",
155
- "kind": "object",
156
- "entries": {
157
- "qStringExpression": {
158
- "kind": "object",
159
- "entries": {
160
- "qExpr": {
161
- "description": "expression that resolves to a supported color format",
162
- "type": "string"
163
- }
130
+ "Background": {
131
+ "kind": "alias",
132
+ "items": {
133
+ "kind": "object",
134
+ "entries": {
135
+ "colorType": {
136
+ "description": "How the background color is defined",
137
+ "optional": true,
138
+ "defaultValue": "'colorPicker'",
139
+ "kind": "union",
140
+ "items": [
141
+ {
142
+ "kind": "literal",
143
+ "value": "'auto'"
144
+ },
145
+ {
146
+ "kind": "literal",
147
+ "value": "'colorPicker'"
148
+ },
149
+ {
150
+ "kind": "literal",
151
+ "value": "'byExpression'"
152
+ }
153
+ ]
154
+ },
155
+ "color": {
156
+ "description": "Color defined by index or hex code, needed if colorType is colorPicker",
157
+ "optional": true,
158
+ "type": "#/definitions/PaletteColor"
159
+ },
160
+ "colorExpression": {
161
+ "description": "Color defined by expression, needed if colorType is byExpression",
162
+ "optional": true,
163
+ "type": "#/definitions/ColorExpression"
164
164
  }
165
165
  }
166
166
  }
167
167
  },
168
- "FontColor": {
169
- "kind": "object",
170
- "entries": {
171
- "colorType": {
172
- "description": "How the font color is defined",
173
- "optional": true,
174
- "defaultValue": "'auto'",
175
- "kind": "union",
176
- "items": [
177
- {
178
- "kind": "literal",
179
- "value": "'auto'"
180
- },
181
- {
182
- "kind": "literal",
183
- "value": "'colorPicker'"
184
- },
185
- {
186
- "kind": "literal",
187
- "value": "'byExpression'"
188
- }
189
- ],
190
- "type": "string"
191
- },
192
- "color": {
193
- "description": "Color defined by index or hex code, needed if colorType is colorPicker",
194
- "optional": true,
195
- "type": "#/definitions/PaletteColor"
196
- },
197
- "colorExpression": {
198
- "description": "Color defined by expression, needed if colorType is byExpression",
199
- "optional": true,
200
- "type": "#/definitions/ColorExpression"
168
+ "Border": {
169
+ "kind": "alias",
170
+ "items": {
171
+ "kind": "object",
172
+ "entries": {
173
+ "top": {
174
+ "description": "Set to true to show thicker top border",
175
+ "optional": true,
176
+ "defaultValue": true,
177
+ "type": "boolean"
178
+ },
179
+ "fullBorder": {
180
+ "description": "Set to true to show full border",
181
+ "optional": true,
182
+ "defaultValue": true,
183
+ "type": "boolean"
184
+ },
185
+ "colorType": {
186
+ "description": "How the border color is defined",
187
+ "optional": true,
188
+ "defaultValue": "'auto'",
189
+ "kind": "union",
190
+ "items": [
191
+ {
192
+ "kind": "literal",
193
+ "value": "'auto'"
194
+ },
195
+ {
196
+ "kind": "literal",
197
+ "value": "'colorPicker'"
198
+ },
199
+ {
200
+ "kind": "literal",
201
+ "value": "'byExpression'"
202
+ }
203
+ ]
204
+ },
205
+ "color": {
206
+ "description": "Color defined by index or hex code, needed if colorType is colorPicker",
207
+ "optional": true,
208
+ "type": "#/definitions/PaletteColor"
209
+ },
210
+ "colorExpression": {
211
+ "description": "Color defined by expression, needed if colorType is byExpression",
212
+ "optional": true,
213
+ "type": "#/definitions/ColorExpression"
214
+ }
201
215
  }
202
216
  }
203
217
  },
204
218
  "PaletteColor": {
205
219
  "description": "Color information structure. Holds the actual color and index in palette.",
206
- "kind": "object",
207
- "entries": {
208
- "color": {
209
- "description": "Color as hex string (only used if index: -1)",
210
- "optional": true,
211
- "type": "string"
212
- },
213
- "index": {
214
- "description": "Index in palette",
215
- "optional": true,
216
- "type": "number"
220
+ "kind": "alias",
221
+ "items": {
222
+ "kind": "object",
223
+ "entries": {
224
+ "color": {
225
+ "description": "Color as hex string (only used if index: -1)",
226
+ "optional": true,
227
+ "type": "string"
228
+ },
229
+ "index": {
230
+ "description": "Index in palette",
231
+ "optional": true,
232
+ "type": "number"
233
+ }
217
234
  }
218
235
  }
219
236
  },
220
- "Style": {
221
- "description": "Holds styling options",
222
- "kind": "object",
223
- "entries": {
224
- "fontColor": {
225
- "description": "Color of the text, by default #484848",
226
- "optional": true,
227
- "type": "#/definitions/FontColor"
228
- },
229
- "backgroundColor": {
230
- "description": "Color of the background, by default #ffffff",
231
- "optional": true,
232
- "type": "#/definitions/Background"
233
- },
234
- "border": {
235
- "description": "Styling for border, by default #737373",
236
- "optional": true,
237
- "type": "#/definitions/Border"
237
+ "ColorExpression": {
238
+ "description": "Format for using color expressions",
239
+ "kind": "alias",
240
+ "items": {
241
+ "kind": "object",
242
+ "entries": {
243
+ "qStringExpression": {
244
+ "kind": "object",
245
+ "entries": {
246
+ "qExpr": {
247
+ "description": "expression that resolves to a supported color format",
248
+ "type": "string"
249
+ }
250
+ }
251
+ }
238
252
  }
239
253
  }
240
254
  }