@nebula.js/sn-tabbed-container 0.3.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 +13 -0
- package/api-specification/spec.json +261 -0
- package/core/esm/index.js +96 -0
- package/core/package.json +8 -0
- package/dist/sn-tabbed-container.js +115 -0
- package/dist/sn-tabbed-container.systemjs.js +96 -0
- package/package.json +83 -0
- package/sn-tabbed-container-ext/dist/sn-tabbed-container.js +115 -0
- package/sn-tabbed-container-ext/sn-tabbed-container.js +1 -0
- package/sn-tabbed-container-ext/sn-tabbed-container.qext +9 -0
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# sn-tabbed-container
|
|
2
|
+
|
|
3
|
+
The tabbed container is a [nebula](https://qlik.dev/extend/set-up-nebula-environment) based chart that allows you to switch between charts by using a tab bar.
|
|
4
|
+
|
|
5
|
+
## Contribution
|
|
6
|
+
|
|
7
|
+
Information about developing and contributing can be found in our [contribution guide](../../.github/CONTRIBUTION.md).
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
npm install sn-tabbed-container
|
|
13
|
+
```
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
{
|
|
2
|
+
"scriptappy": "1.1.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"name": "@nebula.js/sn-tabbed-container:properties",
|
|
5
|
+
"description": "Tabbed container generic object definition",
|
|
6
|
+
"version": "0.3.0",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"stability": "experimental",
|
|
9
|
+
"x-qlik-visibility": "public"
|
|
10
|
+
},
|
|
11
|
+
"entries": {
|
|
12
|
+
"properties": {
|
|
13
|
+
"extends": [
|
|
14
|
+
{
|
|
15
|
+
"type": "GenericObjectProperties"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"kind": "object",
|
|
19
|
+
"entries": {
|
|
20
|
+
"showTitles": {
|
|
21
|
+
"description": "Show titles of the tabbed-container",
|
|
22
|
+
"optional": true,
|
|
23
|
+
"defaultValue": true,
|
|
24
|
+
"type": "boolean"
|
|
25
|
+
},
|
|
26
|
+
"title": {
|
|
27
|
+
"description": "Tabbed-container title",
|
|
28
|
+
"optional": true,
|
|
29
|
+
"defaultValue": "",
|
|
30
|
+
"kind": "union",
|
|
31
|
+
"items": [
|
|
32
|
+
{
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "EngineAPI.StringExpression"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"subtitle": {
|
|
41
|
+
"description": "Tabbed-container subtitle",
|
|
42
|
+
"optional": true,
|
|
43
|
+
"defaultValue": "",
|
|
44
|
+
"kind": "union",
|
|
45
|
+
"items": [
|
|
46
|
+
{
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "EngineAPI.StringExpression"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"footnote": {
|
|
55
|
+
"description": "Tabbed-container footnote",
|
|
56
|
+
"optional": true,
|
|
57
|
+
"defaultValue": "",
|
|
58
|
+
"kind": "union",
|
|
59
|
+
"items": [
|
|
60
|
+
{
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"type": "EngineAPI.StringExpression"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"disableNavMenu": {
|
|
69
|
+
"description": "Allow the hover menu to appear.",
|
|
70
|
+
"optional": true,
|
|
71
|
+
"defaultValue": true,
|
|
72
|
+
"type": "boolean"
|
|
73
|
+
},
|
|
74
|
+
"objects": {
|
|
75
|
+
"description": "Array with child objects",
|
|
76
|
+
"kind": "array",
|
|
77
|
+
"items": {
|
|
78
|
+
"type": "#/definitions/ContainerChildProperties"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"showTabs": {
|
|
82
|
+
"description": "Show the tabs of the tabbed-container",
|
|
83
|
+
"defaultValue": true,
|
|
84
|
+
"type": "boolean"
|
|
85
|
+
},
|
|
86
|
+
"useScrollButton": {
|
|
87
|
+
"description": "Show the navigation-arrows next to the tabs of the tabbed-container",
|
|
88
|
+
"defaultValue": true,
|
|
89
|
+
"type": "boolean"
|
|
90
|
+
},
|
|
91
|
+
"showIcons": {
|
|
92
|
+
"description": "Show the chart icons in each tab.",
|
|
93
|
+
"optional": true,
|
|
94
|
+
"defaultValue": false,
|
|
95
|
+
"type": "boolean"
|
|
96
|
+
},
|
|
97
|
+
"components": {
|
|
98
|
+
"description": "Styling components.",
|
|
99
|
+
"optional": true,
|
|
100
|
+
"kind": "array",
|
|
101
|
+
"items": {
|
|
102
|
+
"type": "#/definitions/Component"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"definitions": {
|
|
109
|
+
"Component": {
|
|
110
|
+
"kind": "alias",
|
|
111
|
+
"items": {
|
|
112
|
+
"type": "#/definitions/General"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"General": {
|
|
116
|
+
"kind": "object",
|
|
117
|
+
"entries": {
|
|
118
|
+
"key": {
|
|
119
|
+
"description": "This should be set to `\"general\"` (Determines which component the settings apply to).",
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
"title": {
|
|
123
|
+
"type": "#/definitions/TitleStyling"
|
|
124
|
+
},
|
|
125
|
+
"bgImage": {
|
|
126
|
+
"type": "#/definitions/BackgroundImageStyling"
|
|
127
|
+
},
|
|
128
|
+
"bgColor": {
|
|
129
|
+
"type": "#/definitions/BackgroundColorStyling"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"TitleStyling": {
|
|
134
|
+
"kind": "object",
|
|
135
|
+
"entries": {
|
|
136
|
+
"footer": {
|
|
137
|
+
"type": "#/definitions/FontStyling"
|
|
138
|
+
},
|
|
139
|
+
"main": {
|
|
140
|
+
"type": "#/definitions/FontStyling"
|
|
141
|
+
},
|
|
142
|
+
"subTitle": {
|
|
143
|
+
"type": "#/definitions/FontStyling"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"BackgroundImageStyling": {
|
|
148
|
+
"kind": "object",
|
|
149
|
+
"entries": {
|
|
150
|
+
"mode": {
|
|
151
|
+
"description": "This should be set to `\"media\"`.",
|
|
152
|
+
"type": "string"
|
|
153
|
+
},
|
|
154
|
+
"sizing": {
|
|
155
|
+
"description": "This can be `\"originalSize\"`, `\"alwaysFit\"`, `\"fitWidth\"`, `\"fitHeight\"`, `\"stretchFit\"` or `\"alwaysFill\"`.",
|
|
156
|
+
"type": "string"
|
|
157
|
+
},
|
|
158
|
+
"position": {
|
|
159
|
+
"description": "This can be `\"top-left\"`, `\"top-center\"`, `\"top-right\"`, `\"center-left\"`, `\"center-center\"`, `\"center-right\"`, `\"bottom-left\"`, `\"bottom-center\"` or `\"bottom-right\"`.",
|
|
160
|
+
"type": "string"
|
|
161
|
+
},
|
|
162
|
+
"mediaUrl": {
|
|
163
|
+
"type": "#/definitions/MediaLibraryRef"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"BackgroundColorStyling": {
|
|
168
|
+
"kind": "object",
|
|
169
|
+
"entries": {
|
|
170
|
+
"useColorExpression": {
|
|
171
|
+
"type": "boolean"
|
|
172
|
+
},
|
|
173
|
+
"colorExpression": {
|
|
174
|
+
"type": "EngineAPI.StringExpression"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"FontStyling": {
|
|
179
|
+
"kind": "object",
|
|
180
|
+
"entries": {
|
|
181
|
+
"color": {
|
|
182
|
+
"type": "#/definitions/paletteColor"
|
|
183
|
+
},
|
|
184
|
+
"fontFamily": {
|
|
185
|
+
"type": "string"
|
|
186
|
+
},
|
|
187
|
+
"fontSize": {
|
|
188
|
+
"type": "string"
|
|
189
|
+
},
|
|
190
|
+
"fontStyle": {
|
|
191
|
+
"kind": "array",
|
|
192
|
+
"items": {
|
|
193
|
+
"type": "#/definitions/FontStyle"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"paletteColor": {
|
|
199
|
+
"description": "Color information structure. Holds the actual color and index in palette.",
|
|
200
|
+
"kind": "object",
|
|
201
|
+
"entries": {
|
|
202
|
+
"color": {
|
|
203
|
+
"description": "Color as hex string (mandatory if index: -1).",
|
|
204
|
+
"type": "string"
|
|
205
|
+
},
|
|
206
|
+
"index": {
|
|
207
|
+
"description": "Index in palette.",
|
|
208
|
+
"type": "number"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"FontStyle": {
|
|
213
|
+
"description": "This can be `\"italic\"`, `\"bold\"` or `\"underline\"`.",
|
|
214
|
+
"kind": "alias",
|
|
215
|
+
"items": {
|
|
216
|
+
"type": "string"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"MediaLibraryRef": {
|
|
220
|
+
"description": "Media Library Reference structure.",
|
|
221
|
+
"kind": "object",
|
|
222
|
+
"entries": {
|
|
223
|
+
"qStaticContentUrlDef": {
|
|
224
|
+
"description": "Media library structure.",
|
|
225
|
+
"type": "object"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"qStaticContentUrlDef": {
|
|
230
|
+
"description": "Media Library structure that will be evaluated by the engine.",
|
|
231
|
+
"kind": "object",
|
|
232
|
+
"entries": {
|
|
233
|
+
"qUrl": {
|
|
234
|
+
"description": "Value of media library image.",
|
|
235
|
+
"type": "string"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"ContainerChildProperties": {
|
|
240
|
+
"description": "Contains information about a child object.",
|
|
241
|
+
"kind": "alias",
|
|
242
|
+
"items": {
|
|
243
|
+
"kind": "object",
|
|
244
|
+
"entries": {
|
|
245
|
+
"childRefId": {
|
|
246
|
+
"description": "Internal reference id of container child",
|
|
247
|
+
"type": "string"
|
|
248
|
+
},
|
|
249
|
+
"label": {
|
|
250
|
+
"description": "Label of the child object, shows up in property panel and tab",
|
|
251
|
+
"type": "string"
|
|
252
|
+
},
|
|
253
|
+
"condition": {
|
|
254
|
+
"description": "Show condition",
|
|
255
|
+
"type": "ValueExpression"
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|