globuswebcomponents 1.3.0 → 1.3.2
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/cjs/{gb-avatar_19.cjs.entry.js → gb-avatar_21.cjs.entry.js} +77 -4
- package/dist/cjs/gb-avatar_21.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-dropdown-items-with-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/gb-dropdown-items-with-shortcut.cjs.entry.js.map +1 -1
- package/dist/cjs/gb-vertical-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gb-wysiwyg-editor-icon.cjs.entry.js +1 -1
- package/dist/cjs/gb-wysiwyg-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/globuscomponents.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/test-input-tag.cjs.entry.js +2 -2
- package/dist/collection/assets/top_bar_active_bar.svg +3 -0
- package/dist/collection/assets/top_bar_active_bar_red.svg +3 -0
- package/dist/collection/assets/top_bar_pattern.svg +2409 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/gb-detail-cell/gb-detail-cell.css +9 -10
- package/dist/collection/components/gb-detail-cell/gb-detail-cell.js +1 -1
- package/dist/collection/components/gb-detail-cell/gb-detail-cell.js.map +1 -1
- package/dist/collection/components/gb-dropdown-items-with-shortcut/gb-dropdown-items-with-shortcut.css +54 -52
- package/dist/collection/components/gb-header/gb-header.css +1 -1
- package/dist/collection/components/gb-top-bar/gb-top-bar.css +45 -0
- package/dist/collection/components/gb-top-bar/gb-top-bar.js +490 -0
- package/dist/collection/components/gb-top-bar/gb-top-bar.js.map +1 -0
- package/dist/collection/components/gb-top-bar-item/gb-top-bar-item.css +2763 -0
- package/dist/collection/components/gb-top-bar-item/gb-top-bar-item.js +141 -0
- package/dist/collection/components/gb-top-bar-item/gb-top-bar-item.js.map +1 -0
- package/dist/collection/components/gb-vertical-tabs/gb-vertical-tabs.js +1 -1
- package/dist/collection/components/gb-wysiwyg-editor-icon/gb-wysiwyg-editor-icon.js +1 -1
- package/dist/collection/components/gb-wysiwyg-tooltip/gb-wysiwyg-tooltip.js +1 -1
- package/dist/collection/components/test-input-tag/test-input-tag.js +2 -2
- package/dist/components/gb-avatar-dropdown.js +1 -1
- package/dist/components/gb-detail-cell.js +2 -2
- package/dist/components/gb-detail-cell.js.map +1 -1
- package/dist/components/gb-dropdown-items-with-shortcut.js +1 -1
- package/dist/components/gb-header.js +1 -1
- package/dist/components/gb-header.js.map +1 -1
- package/dist/components/gb-help-dropdown.js +1 -1
- package/dist/components/gb-top-bar-item.d.ts +11 -0
- package/dist/components/gb-top-bar-item.js +8 -0
- package/dist/components/gb-top-bar-item.js.map +1 -0
- package/dist/components/gb-top-bar.d.ts +11 -0
- package/dist/components/gb-top-bar.js +102 -0
- package/dist/components/gb-top-bar.js.map +1 -0
- package/dist/components/gb-vertical-tabs.js +1 -1
- package/dist/components/gb-wysiwyg-editor-icon.js +1 -1
- package/dist/components/gb-wysiwyg-tooltip.js +2 -2
- package/dist/components/{p-c1b2bd3f.js → p-954d7fe7.js} +2 -2
- package/dist/components/p-954d7fe7.js.map +1 -0
- package/dist/components/{p-ace54e5a.js → p-98f5c49f.js} +2 -2
- package/dist/components/{p-ace54e5a.js.map → p-98f5c49f.js.map} +1 -1
- package/dist/components/p-d0a741ae.js +64 -0
- package/dist/components/p-d0a741ae.js.map +1 -0
- package/dist/components/test-input-tag.js +2 -2
- package/dist/docs.json +720 -2
- package/dist/esm/{gb-avatar_19.entry.js → gb-avatar_21.entry.js} +76 -5
- package/dist/esm/gb-avatar_21.entry.js.map +1 -0
- package/dist/esm/gb-dropdown-items-with-shortcut.entry.js +1 -1
- package/dist/esm/gb-dropdown-items-with-shortcut.entry.js.map +1 -1
- package/dist/esm/gb-vertical-tabs.entry.js +1 -1
- package/dist/esm/gb-wysiwyg-editor-icon.entry.js +1 -1
- package/dist/esm/gb-wysiwyg-tooltip.entry.js +1 -1
- package/dist/esm/globuscomponents.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/test-input-tag.entry.js +2 -2
- package/dist/globuscomponents/assets/top_bar_active_bar.svg +3 -0
- package/dist/globuscomponents/assets/top_bar_active_bar_red.svg +3 -0
- package/dist/globuscomponents/assets/top_bar_pattern.svg +2409 -0
- package/dist/globuscomponents/globuscomponents.esm.js +1 -1
- package/dist/globuscomponents/globuscomponents.esm.js.map +1 -1
- package/dist/globuscomponents/{p-36d21d06.entry.js → p-0e9e58ed.entry.js} +2 -2
- package/dist/globuscomponents/p-0e9e58ed.entry.js.map +1 -0
- package/dist/globuscomponents/{p-2642f33d.entry.js → p-16bc1a62.entry.js} +2 -2
- package/dist/globuscomponents/p-16bc1a62.entry.js.map +1 -0
- package/dist/globuscomponents/{p-7529cb77.entry.js → p-96fb5dcf.entry.js} +2 -2
- package/dist/globuscomponents/{p-9cd7be10.entry.js → p-a2c16d5c.entry.js} +2 -2
- package/dist/globuscomponents/{p-26363afa.entry.js → p-d2b16d4d.entry.js} +2 -2
- package/dist/globuscomponents/{p-a14b1bf2.entry.js → p-fd67e1e0.entry.js} +2 -2
- package/dist/types/components/gb-top-bar/gb-top-bar.d.ts +30 -0
- package/dist/types/components/gb-top-bar-item/gb-top-bar-item.d.ts +13 -0
- package/dist/types/components.d.ts +98 -0
- package/package.json +1 -1
- package/dist/cjs/gb-avatar_19.cjs.entry.js.map +0 -1
- package/dist/components/p-c1b2bd3f.js.map +0 -1
- package/dist/esm/gb-avatar_19.entry.js.map +0 -1
- package/dist/globuscomponents/p-2642f33d.entry.js.map +0 -1
- package/dist/globuscomponents/p-36d21d06.entry.js.map +0 -1
- /package/dist/globuscomponents/{p-7529cb77.entry.js.map → p-96fb5dcf.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-9cd7be10.entry.js.map → p-a2c16d5c.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-26363afa.entry.js.map → p-d2b16d4d.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-a14b1bf2.entry.js.map → p-fd67e1e0.entry.js.map} +0 -0
|
@@ -0,0 +1,490 @@
|
|
|
1
|
+
import { getAssetPath, h } from "@stencil/core";
|
|
2
|
+
export class GbTopBar {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.category = undefined;
|
|
5
|
+
this.firstTabIcon = '';
|
|
6
|
+
this.secondTabIcon = '';
|
|
7
|
+
this.thirdTabIcon = '';
|
|
8
|
+
this.fourthTabIcon = '';
|
|
9
|
+
this.fifthTabIcon = '';
|
|
10
|
+
this.sixthTabIcon = '';
|
|
11
|
+
this.seventhTabIcon = '';
|
|
12
|
+
this.firstTabLabel = '';
|
|
13
|
+
this.secondTabLabel = '';
|
|
14
|
+
this.thirdTabLabel = '';
|
|
15
|
+
this.fourthTabLabel = '';
|
|
16
|
+
this.fifthTabLabel = '';
|
|
17
|
+
this.sixthTabLabel = '';
|
|
18
|
+
this.seventhTabLabel = '';
|
|
19
|
+
this.firstTabIconOnly = false;
|
|
20
|
+
this.secondTabIconOnly = false;
|
|
21
|
+
this.thirdTabIconOnly = false;
|
|
22
|
+
this.fourthTabIconOnly = false;
|
|
23
|
+
this.fifthTabIconOnly = false;
|
|
24
|
+
this.sixthTabIconOnly = false;
|
|
25
|
+
this.seventhTabIconOnly = false;
|
|
26
|
+
this.activeIndex = 0;
|
|
27
|
+
}
|
|
28
|
+
onTabItemClicked(index) {
|
|
29
|
+
this.activeIndex = index;
|
|
30
|
+
this.topBarItemClicked.emit(index);
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
const patternSrc = getAssetPath(`assets/top_bar_pattern.svg`);
|
|
34
|
+
return (h("div", { key: 'd3b0314c7c5a1173beb135a7e7827b8154238fc7', class: `top_bar_div ${this.category}` }, this.category === 'colored_background' && (h("div", { key: '200516b1a593216099ec2a30a924f411507e607b', class: "pattern" }, h("img", { key: 'ad89725150f65d29ee61b2c78fb5ce276c1c10c8', src: patternSrc, alt: "" }))), h("div", { key: 'dd5874774cce280eeabc069dc66f860fc5432de7', class: "top_bar_content" }, h("div", { key: 'cd10d197d211f80e262ccdbd46ab0ae78cb19899', class: "content" }, this.firstTabLabel && (h("gb-top-bar-item", { key: '7a4daa6b66b1d65eb6add52bd827411344d2dc6d', state: this.activeIndex === 0 ? 'active' : 'default', "icon-only": this.firstTabIconOnly, category: this.category, icon: this.firstTabIcon, label: this.firstTabLabel, onClick: () => this.onTabItemClicked(0) })), this.secondTabLabel && (h("gb-top-bar-item", { key: 'a3338869ec8751f0b089d20cf0f4c67d6a9b8e5e', state: this.activeIndex === 1 ? 'active' : 'default', "icon-only": this.secondTabIconOnly, category: this.category, icon: this.secondTabIcon, label: this.secondTabLabel, onClick: () => this.onTabItemClicked(1) })), this.thirdTabLabel && (h("gb-top-bar-item", { key: '3e41efa5b25b0ae5f2c333de004c40de61dbb081', state: this.activeIndex === 2 ? 'active' : 'default', "icon-only": this.thirdTabIconOnly, category: this.category, icon: this.thirdTabIcon, label: this.thirdTabLabel, onClick: () => this.onTabItemClicked(2) })), this.fourthTabLabel && (h("gb-top-bar-item", { key: '7fa62a025c84f9283776feb7a36d49d854cde1bf', state: this.activeIndex === 3 ? 'active' : 'default', "icon-only": this.fourthTabIconOnly, category: this.category, icon: this.fourthTabIcon, label: this.fourthTabLabel, onClick: () => this.onTabItemClicked(3) })), this.fifthTabLabel && (h("gb-top-bar-item", { key: '7e7c421aaa31d9cd60c14117bd87968801090f1a', state: this.activeIndex === 4 ? 'active' : 'default', "icon-only": this.fifthTabIconOnly, category: this.category, icon: this.fifthTabIcon, label: this.fifthTabLabel, onClick: () => this.onTabItemClicked(4) })), this.sixthTabLabel && (h("gb-top-bar-item", { key: '1e419316f1da79e12c2723c0541d1a34f12ed9aa', state: this.activeIndex === 5 ? 'active' : 'default', "icon-only": this.sixthTabIconOnly, category: this.category, icon: this.sixthTabIcon, label: this.sixthTabLabel, onClick: () => this.onTabItemClicked(5) })), this.seventhTabLabel && (h("gb-top-bar-item", { key: '9ec5ac6297f8dc223dc6d94460c950b06e9072f7', state: this.activeIndex === 6 ? 'active' : 'default', "icon-only": this.seventhTabIconOnly, category: this.category, icon: this.seventhTabIcon, label: this.seventhTabLabel, onClick: () => this.onTabItemClicked(6) }))))));
|
|
35
|
+
}
|
|
36
|
+
static get is() { return "gb-top-bar"; }
|
|
37
|
+
static get encapsulation() { return "shadow"; }
|
|
38
|
+
static get originalStyleUrls() {
|
|
39
|
+
return {
|
|
40
|
+
"$": ["gb-top-bar.css"]
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
static get styleUrls() {
|
|
44
|
+
return {
|
|
45
|
+
"$": ["gb-top-bar.css"]
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
static get properties() {
|
|
49
|
+
return {
|
|
50
|
+
"category": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"mutable": false,
|
|
53
|
+
"complexType": {
|
|
54
|
+
"original": "GeneralBackgroundCategories",
|
|
55
|
+
"resolved": "\"colored_background\" | \"plain_background\"",
|
|
56
|
+
"references": {
|
|
57
|
+
"GeneralBackgroundCategories": {
|
|
58
|
+
"location": "import",
|
|
59
|
+
"path": "../../models/reusableModels",
|
|
60
|
+
"id": "src/models/reusableModels.ts::GeneralBackgroundCategories"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": false,
|
|
65
|
+
"optional": false,
|
|
66
|
+
"docs": {
|
|
67
|
+
"tags": [],
|
|
68
|
+
"text": ""
|
|
69
|
+
},
|
|
70
|
+
"attribute": "category",
|
|
71
|
+
"reflect": false
|
|
72
|
+
},
|
|
73
|
+
"firstTabIcon": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"mutable": false,
|
|
76
|
+
"complexType": {
|
|
77
|
+
"original": "string",
|
|
78
|
+
"resolved": "string",
|
|
79
|
+
"references": {}
|
|
80
|
+
},
|
|
81
|
+
"required": false,
|
|
82
|
+
"optional": false,
|
|
83
|
+
"docs": {
|
|
84
|
+
"tags": [],
|
|
85
|
+
"text": ""
|
|
86
|
+
},
|
|
87
|
+
"attribute": "first-tab-icon",
|
|
88
|
+
"reflect": false,
|
|
89
|
+
"defaultValue": "''"
|
|
90
|
+
},
|
|
91
|
+
"secondTabIcon": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"mutable": false,
|
|
94
|
+
"complexType": {
|
|
95
|
+
"original": "string",
|
|
96
|
+
"resolved": "string",
|
|
97
|
+
"references": {}
|
|
98
|
+
},
|
|
99
|
+
"required": false,
|
|
100
|
+
"optional": false,
|
|
101
|
+
"docs": {
|
|
102
|
+
"tags": [],
|
|
103
|
+
"text": ""
|
|
104
|
+
},
|
|
105
|
+
"attribute": "second-tab-icon",
|
|
106
|
+
"reflect": false,
|
|
107
|
+
"defaultValue": "''"
|
|
108
|
+
},
|
|
109
|
+
"thirdTabIcon": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"mutable": false,
|
|
112
|
+
"complexType": {
|
|
113
|
+
"original": "string",
|
|
114
|
+
"resolved": "string",
|
|
115
|
+
"references": {}
|
|
116
|
+
},
|
|
117
|
+
"required": false,
|
|
118
|
+
"optional": false,
|
|
119
|
+
"docs": {
|
|
120
|
+
"tags": [],
|
|
121
|
+
"text": ""
|
|
122
|
+
},
|
|
123
|
+
"attribute": "third-tab-icon",
|
|
124
|
+
"reflect": false,
|
|
125
|
+
"defaultValue": "''"
|
|
126
|
+
},
|
|
127
|
+
"fourthTabIcon": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"mutable": false,
|
|
130
|
+
"complexType": {
|
|
131
|
+
"original": "string",
|
|
132
|
+
"resolved": "string",
|
|
133
|
+
"references": {}
|
|
134
|
+
},
|
|
135
|
+
"required": false,
|
|
136
|
+
"optional": false,
|
|
137
|
+
"docs": {
|
|
138
|
+
"tags": [],
|
|
139
|
+
"text": ""
|
|
140
|
+
},
|
|
141
|
+
"attribute": "fourth-tab-icon",
|
|
142
|
+
"reflect": false,
|
|
143
|
+
"defaultValue": "''"
|
|
144
|
+
},
|
|
145
|
+
"fifthTabIcon": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"mutable": false,
|
|
148
|
+
"complexType": {
|
|
149
|
+
"original": "string",
|
|
150
|
+
"resolved": "string",
|
|
151
|
+
"references": {}
|
|
152
|
+
},
|
|
153
|
+
"required": false,
|
|
154
|
+
"optional": false,
|
|
155
|
+
"docs": {
|
|
156
|
+
"tags": [],
|
|
157
|
+
"text": ""
|
|
158
|
+
},
|
|
159
|
+
"attribute": "fifth-tab-icon",
|
|
160
|
+
"reflect": false,
|
|
161
|
+
"defaultValue": "''"
|
|
162
|
+
},
|
|
163
|
+
"sixthTabIcon": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"mutable": false,
|
|
166
|
+
"complexType": {
|
|
167
|
+
"original": "string",
|
|
168
|
+
"resolved": "string",
|
|
169
|
+
"references": {}
|
|
170
|
+
},
|
|
171
|
+
"required": false,
|
|
172
|
+
"optional": false,
|
|
173
|
+
"docs": {
|
|
174
|
+
"tags": [],
|
|
175
|
+
"text": ""
|
|
176
|
+
},
|
|
177
|
+
"attribute": "sixth-tab-icon",
|
|
178
|
+
"reflect": false,
|
|
179
|
+
"defaultValue": "''"
|
|
180
|
+
},
|
|
181
|
+
"seventhTabIcon": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"mutable": false,
|
|
184
|
+
"complexType": {
|
|
185
|
+
"original": "string",
|
|
186
|
+
"resolved": "string",
|
|
187
|
+
"references": {}
|
|
188
|
+
},
|
|
189
|
+
"required": false,
|
|
190
|
+
"optional": false,
|
|
191
|
+
"docs": {
|
|
192
|
+
"tags": [],
|
|
193
|
+
"text": ""
|
|
194
|
+
},
|
|
195
|
+
"attribute": "seventh-tab-icon",
|
|
196
|
+
"reflect": false,
|
|
197
|
+
"defaultValue": "''"
|
|
198
|
+
},
|
|
199
|
+
"firstTabLabel": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"mutable": false,
|
|
202
|
+
"complexType": {
|
|
203
|
+
"original": "string",
|
|
204
|
+
"resolved": "string",
|
|
205
|
+
"references": {}
|
|
206
|
+
},
|
|
207
|
+
"required": false,
|
|
208
|
+
"optional": false,
|
|
209
|
+
"docs": {
|
|
210
|
+
"tags": [],
|
|
211
|
+
"text": ""
|
|
212
|
+
},
|
|
213
|
+
"attribute": "first-tab-label",
|
|
214
|
+
"reflect": false,
|
|
215
|
+
"defaultValue": "''"
|
|
216
|
+
},
|
|
217
|
+
"secondTabLabel": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"mutable": false,
|
|
220
|
+
"complexType": {
|
|
221
|
+
"original": "string",
|
|
222
|
+
"resolved": "string",
|
|
223
|
+
"references": {}
|
|
224
|
+
},
|
|
225
|
+
"required": false,
|
|
226
|
+
"optional": false,
|
|
227
|
+
"docs": {
|
|
228
|
+
"tags": [],
|
|
229
|
+
"text": ""
|
|
230
|
+
},
|
|
231
|
+
"attribute": "second-tab-label",
|
|
232
|
+
"reflect": false,
|
|
233
|
+
"defaultValue": "''"
|
|
234
|
+
},
|
|
235
|
+
"thirdTabLabel": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"mutable": false,
|
|
238
|
+
"complexType": {
|
|
239
|
+
"original": "string",
|
|
240
|
+
"resolved": "string",
|
|
241
|
+
"references": {}
|
|
242
|
+
},
|
|
243
|
+
"required": false,
|
|
244
|
+
"optional": false,
|
|
245
|
+
"docs": {
|
|
246
|
+
"tags": [],
|
|
247
|
+
"text": ""
|
|
248
|
+
},
|
|
249
|
+
"attribute": "third-tab-label",
|
|
250
|
+
"reflect": false,
|
|
251
|
+
"defaultValue": "''"
|
|
252
|
+
},
|
|
253
|
+
"fourthTabLabel": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"mutable": false,
|
|
256
|
+
"complexType": {
|
|
257
|
+
"original": "string",
|
|
258
|
+
"resolved": "string",
|
|
259
|
+
"references": {}
|
|
260
|
+
},
|
|
261
|
+
"required": false,
|
|
262
|
+
"optional": false,
|
|
263
|
+
"docs": {
|
|
264
|
+
"tags": [],
|
|
265
|
+
"text": ""
|
|
266
|
+
},
|
|
267
|
+
"attribute": "fourth-tab-label",
|
|
268
|
+
"reflect": false,
|
|
269
|
+
"defaultValue": "''"
|
|
270
|
+
},
|
|
271
|
+
"fifthTabLabel": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"mutable": false,
|
|
274
|
+
"complexType": {
|
|
275
|
+
"original": "string",
|
|
276
|
+
"resolved": "string",
|
|
277
|
+
"references": {}
|
|
278
|
+
},
|
|
279
|
+
"required": false,
|
|
280
|
+
"optional": false,
|
|
281
|
+
"docs": {
|
|
282
|
+
"tags": [],
|
|
283
|
+
"text": ""
|
|
284
|
+
},
|
|
285
|
+
"attribute": "fifth-tab-label",
|
|
286
|
+
"reflect": false,
|
|
287
|
+
"defaultValue": "''"
|
|
288
|
+
},
|
|
289
|
+
"sixthTabLabel": {
|
|
290
|
+
"type": "string",
|
|
291
|
+
"mutable": false,
|
|
292
|
+
"complexType": {
|
|
293
|
+
"original": "string",
|
|
294
|
+
"resolved": "string",
|
|
295
|
+
"references": {}
|
|
296
|
+
},
|
|
297
|
+
"required": false,
|
|
298
|
+
"optional": false,
|
|
299
|
+
"docs": {
|
|
300
|
+
"tags": [],
|
|
301
|
+
"text": ""
|
|
302
|
+
},
|
|
303
|
+
"attribute": "sixth-tab-label",
|
|
304
|
+
"reflect": false,
|
|
305
|
+
"defaultValue": "''"
|
|
306
|
+
},
|
|
307
|
+
"seventhTabLabel": {
|
|
308
|
+
"type": "string",
|
|
309
|
+
"mutable": false,
|
|
310
|
+
"complexType": {
|
|
311
|
+
"original": "string",
|
|
312
|
+
"resolved": "string",
|
|
313
|
+
"references": {}
|
|
314
|
+
},
|
|
315
|
+
"required": false,
|
|
316
|
+
"optional": false,
|
|
317
|
+
"docs": {
|
|
318
|
+
"tags": [],
|
|
319
|
+
"text": ""
|
|
320
|
+
},
|
|
321
|
+
"attribute": "seventh-tab-label",
|
|
322
|
+
"reflect": false,
|
|
323
|
+
"defaultValue": "''"
|
|
324
|
+
},
|
|
325
|
+
"firstTabIconOnly": {
|
|
326
|
+
"type": "boolean",
|
|
327
|
+
"mutable": false,
|
|
328
|
+
"complexType": {
|
|
329
|
+
"original": "boolean",
|
|
330
|
+
"resolved": "boolean",
|
|
331
|
+
"references": {}
|
|
332
|
+
},
|
|
333
|
+
"required": false,
|
|
334
|
+
"optional": false,
|
|
335
|
+
"docs": {
|
|
336
|
+
"tags": [],
|
|
337
|
+
"text": ""
|
|
338
|
+
},
|
|
339
|
+
"attribute": "first-tab-icon-only",
|
|
340
|
+
"reflect": false,
|
|
341
|
+
"defaultValue": "false"
|
|
342
|
+
},
|
|
343
|
+
"secondTabIconOnly": {
|
|
344
|
+
"type": "boolean",
|
|
345
|
+
"mutable": false,
|
|
346
|
+
"complexType": {
|
|
347
|
+
"original": "boolean",
|
|
348
|
+
"resolved": "boolean",
|
|
349
|
+
"references": {}
|
|
350
|
+
},
|
|
351
|
+
"required": false,
|
|
352
|
+
"optional": false,
|
|
353
|
+
"docs": {
|
|
354
|
+
"tags": [],
|
|
355
|
+
"text": ""
|
|
356
|
+
},
|
|
357
|
+
"attribute": "second-tab-icon-only",
|
|
358
|
+
"reflect": false,
|
|
359
|
+
"defaultValue": "false"
|
|
360
|
+
},
|
|
361
|
+
"thirdTabIconOnly": {
|
|
362
|
+
"type": "boolean",
|
|
363
|
+
"mutable": false,
|
|
364
|
+
"complexType": {
|
|
365
|
+
"original": "boolean",
|
|
366
|
+
"resolved": "boolean",
|
|
367
|
+
"references": {}
|
|
368
|
+
},
|
|
369
|
+
"required": false,
|
|
370
|
+
"optional": false,
|
|
371
|
+
"docs": {
|
|
372
|
+
"tags": [],
|
|
373
|
+
"text": ""
|
|
374
|
+
},
|
|
375
|
+
"attribute": "third-tab-icon-only",
|
|
376
|
+
"reflect": false,
|
|
377
|
+
"defaultValue": "false"
|
|
378
|
+
},
|
|
379
|
+
"fourthTabIconOnly": {
|
|
380
|
+
"type": "boolean",
|
|
381
|
+
"mutable": false,
|
|
382
|
+
"complexType": {
|
|
383
|
+
"original": "boolean",
|
|
384
|
+
"resolved": "boolean",
|
|
385
|
+
"references": {}
|
|
386
|
+
},
|
|
387
|
+
"required": false,
|
|
388
|
+
"optional": false,
|
|
389
|
+
"docs": {
|
|
390
|
+
"tags": [],
|
|
391
|
+
"text": ""
|
|
392
|
+
},
|
|
393
|
+
"attribute": "fourth-tab-icon-only",
|
|
394
|
+
"reflect": false,
|
|
395
|
+
"defaultValue": "false"
|
|
396
|
+
},
|
|
397
|
+
"fifthTabIconOnly": {
|
|
398
|
+
"type": "boolean",
|
|
399
|
+
"mutable": false,
|
|
400
|
+
"complexType": {
|
|
401
|
+
"original": "boolean",
|
|
402
|
+
"resolved": "boolean",
|
|
403
|
+
"references": {}
|
|
404
|
+
},
|
|
405
|
+
"required": false,
|
|
406
|
+
"optional": false,
|
|
407
|
+
"docs": {
|
|
408
|
+
"tags": [],
|
|
409
|
+
"text": ""
|
|
410
|
+
},
|
|
411
|
+
"attribute": "fifth-tab-icon-only",
|
|
412
|
+
"reflect": false,
|
|
413
|
+
"defaultValue": "false"
|
|
414
|
+
},
|
|
415
|
+
"sixthTabIconOnly": {
|
|
416
|
+
"type": "boolean",
|
|
417
|
+
"mutable": false,
|
|
418
|
+
"complexType": {
|
|
419
|
+
"original": "boolean",
|
|
420
|
+
"resolved": "boolean",
|
|
421
|
+
"references": {}
|
|
422
|
+
},
|
|
423
|
+
"required": false,
|
|
424
|
+
"optional": false,
|
|
425
|
+
"docs": {
|
|
426
|
+
"tags": [],
|
|
427
|
+
"text": ""
|
|
428
|
+
},
|
|
429
|
+
"attribute": "sixth-tab-icon-only",
|
|
430
|
+
"reflect": false,
|
|
431
|
+
"defaultValue": "false"
|
|
432
|
+
},
|
|
433
|
+
"seventhTabIconOnly": {
|
|
434
|
+
"type": "boolean",
|
|
435
|
+
"mutable": false,
|
|
436
|
+
"complexType": {
|
|
437
|
+
"original": "boolean",
|
|
438
|
+
"resolved": "boolean",
|
|
439
|
+
"references": {}
|
|
440
|
+
},
|
|
441
|
+
"required": false,
|
|
442
|
+
"optional": false,
|
|
443
|
+
"docs": {
|
|
444
|
+
"tags": [],
|
|
445
|
+
"text": ""
|
|
446
|
+
},
|
|
447
|
+
"attribute": "seventh-tab-icon-only",
|
|
448
|
+
"reflect": false,
|
|
449
|
+
"defaultValue": "false"
|
|
450
|
+
},
|
|
451
|
+
"activeIndex": {
|
|
452
|
+
"type": "number",
|
|
453
|
+
"mutable": true,
|
|
454
|
+
"complexType": {
|
|
455
|
+
"original": "number",
|
|
456
|
+
"resolved": "number",
|
|
457
|
+
"references": {}
|
|
458
|
+
},
|
|
459
|
+
"required": false,
|
|
460
|
+
"optional": false,
|
|
461
|
+
"docs": {
|
|
462
|
+
"tags": [],
|
|
463
|
+
"text": ""
|
|
464
|
+
},
|
|
465
|
+
"attribute": "active-index",
|
|
466
|
+
"reflect": false,
|
|
467
|
+
"defaultValue": "0"
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
static get events() {
|
|
472
|
+
return [{
|
|
473
|
+
"method": "topBarItemClicked",
|
|
474
|
+
"name": "topBarItemClicked",
|
|
475
|
+
"bubbles": true,
|
|
476
|
+
"cancelable": true,
|
|
477
|
+
"composed": true,
|
|
478
|
+
"docs": {
|
|
479
|
+
"tags": [],
|
|
480
|
+
"text": ""
|
|
481
|
+
},
|
|
482
|
+
"complexType": {
|
|
483
|
+
"original": "number",
|
|
484
|
+
"resolved": "number",
|
|
485
|
+
"references": {}
|
|
486
|
+
}
|
|
487
|
+
}];
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
//# sourceMappingURL=gb-top-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gb-top-bar.js","sourceRoot":"","sources":["../../../src/components/gb-top-bar/gb-top-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, Prop, getAssetPath, h } from '@stencil/core';\r\nimport { GeneralBackgroundCategories } from '../../models/reusableModels';\r\n\r\n@Component({\r\n tag: 'gb-top-bar',\r\n styleUrl: 'gb-top-bar.css',\r\n shadow: true,\r\n})\r\nexport class GbTopBar {\r\n @Prop() category: GeneralBackgroundCategories;\r\n @Prop() firstTabIcon: string = '';\r\n @Prop() secondTabIcon: string = '';\r\n @Prop() thirdTabIcon: string = '';\r\n @Prop() fourthTabIcon: string = '';\r\n @Prop() fifthTabIcon: string = '';\r\n @Prop() sixthTabIcon: string = '';\r\n @Prop() seventhTabIcon: string = '';\r\n @Prop() firstTabLabel: string = '';\r\n @Prop() secondTabLabel: string = '';\r\n @Prop() thirdTabLabel: string = '';\r\n @Prop() fourthTabLabel: string = '';\r\n @Prop() fifthTabLabel: string = '';\r\n @Prop() sixthTabLabel: string = '';\r\n @Prop() seventhTabLabel: string = '';\r\n @Prop() firstTabIconOnly: boolean = false;\r\n @Prop() secondTabIconOnly: boolean = false;\r\n @Prop() thirdTabIconOnly: boolean = false;\r\n @Prop() fourthTabIconOnly: boolean = false;\r\n @Prop() fifthTabIconOnly: boolean = false;\r\n @Prop() sixthTabIconOnly: boolean = false;\r\n @Prop() seventhTabIconOnly: boolean = false;\r\n @Prop({ mutable: true }) activeIndex: number = 0;\r\n @Event() topBarItemClicked: EventEmitter<number>;\r\n\r\n onTabItemClicked(index: number) {\r\n this.activeIndex = index;\r\n this.topBarItemClicked.emit(index);\r\n }\r\n\r\n render() {\r\n const patternSrc = getAssetPath(`assets/top_bar_pattern.svg`);\r\n\r\n return (\r\n <div class={`top_bar_div ${this.category}`}>\r\n {this.category === 'colored_background' && (\r\n <div class=\"pattern\">\r\n <img src={patternSrc} alt=\"\" />\r\n </div>\r\n )}\r\n <div class=\"top_bar_content\">\r\n <div class=\"content\">\r\n {this.firstTabLabel && (\r\n <gb-top-bar-item\r\n state={this.activeIndex === 0 ? 'active' : 'default'}\r\n icon-only={this.firstTabIconOnly}\r\n category={this.category}\r\n icon={this.firstTabIcon}\r\n label={this.firstTabLabel}\r\n onClick={() => this.onTabItemClicked(0)}\r\n ></gb-top-bar-item>\r\n )}\r\n {this.secondTabLabel && (\r\n <gb-top-bar-item\r\n state={this.activeIndex === 1 ? 'active' : 'default'}\r\n icon-only={this.secondTabIconOnly}\r\n category={this.category}\r\n icon={this.secondTabIcon}\r\n label={this.secondTabLabel}\r\n onClick={() => this.onTabItemClicked(1)}\r\n ></gb-top-bar-item>\r\n )}\r\n {this.thirdTabLabel && (\r\n <gb-top-bar-item\r\n state={this.activeIndex === 2 ? 'active' : 'default'}\r\n icon-only={this.thirdTabIconOnly}\r\n category={this.category}\r\n icon={this.thirdTabIcon}\r\n label={this.thirdTabLabel}\r\n onClick={() => this.onTabItemClicked(2)}\r\n ></gb-top-bar-item>\r\n )}\r\n {this.fourthTabLabel && (\r\n <gb-top-bar-item\r\n state={this.activeIndex === 3 ? 'active' : 'default'}\r\n icon-only={this.fourthTabIconOnly}\r\n category={this.category}\r\n icon={this.fourthTabIcon}\r\n label={this.fourthTabLabel}\r\n onClick={() => this.onTabItemClicked(3)}\r\n ></gb-top-bar-item>\r\n )}\r\n {this.fifthTabLabel && (\r\n <gb-top-bar-item\r\n state={this.activeIndex === 4 ? 'active' : 'default'}\r\n icon-only={this.fifthTabIconOnly}\r\n category={this.category}\r\n icon={this.fifthTabIcon}\r\n label={this.fifthTabLabel}\r\n onClick={() => this.onTabItemClicked(4)}\r\n ></gb-top-bar-item>\r\n )}\r\n {this.sixthTabLabel && (\r\n <gb-top-bar-item\r\n state={this.activeIndex === 5 ? 'active' : 'default'}\r\n icon-only={this.sixthTabIconOnly}\r\n category={this.category}\r\n icon={this.sixthTabIcon}\r\n label={this.sixthTabLabel}\r\n onClick={() => this.onTabItemClicked(5)}\r\n ></gb-top-bar-item>\r\n )}\r\n {this.seventhTabLabel && (\r\n <gb-top-bar-item\r\n state={this.activeIndex === 6 ? 'active' : 'default'}\r\n icon-only={this.seventhTabIconOnly}\r\n category={this.category}\r\n icon={this.seventhTabIcon}\r\n label={this.seventhTabLabel}\r\n onClick={() => this.onTabItemClicked(6)}\r\n ></gb-top-bar-item>\r\n )}\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
|