@vcita/design-system 1.12.2 → 1.12.3
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/@vcita/design-system.esm.js +51 -78
- package/dist/@vcita/design-system.min.js +1 -1
- package/dist/@vcita/design-system.ssr.js +58 -84
- package/package.json +1 -1
- package/src/components/VcTabs/VcTabs.spec.js +6 -45
- package/src/components/VcTabs/VcTabs.stories.js +14 -40
- package/src/components/VcTabs/VcTabs.vue +89 -40
- package/src/components/table/elements/VcDataTable/VcDataTable.vue +11 -0
|
@@ -17115,61 +17115,19 @@ const __vue_component__$1g = /*#__PURE__*/normalizeComponent({
|
|
|
17115
17115
|
|
|
17116
17116
|
var __vue_component__$1h = __vue_component__$1g;
|
|
17117
17117
|
|
|
17118
|
-
//
|
|
17119
|
-
//
|
|
17120
|
-
//
|
|
17121
|
-
//
|
|
17122
|
-
//
|
|
17123
|
-
//
|
|
17124
|
-
//
|
|
17125
|
-
//
|
|
17126
|
-
//
|
|
17127
|
-
//
|
|
17128
|
-
//
|
|
17129
|
-
//
|
|
17130
|
-
//
|
|
17131
|
-
//
|
|
17132
|
-
//
|
|
17133
|
-
//
|
|
17134
|
-
//
|
|
17135
|
-
//
|
|
17136
|
-
//
|
|
17137
|
-
//
|
|
17138
|
-
//
|
|
17139
|
-
//
|
|
17140
|
-
//
|
|
17141
|
-
//
|
|
17142
|
-
//
|
|
17143
|
-
//
|
|
17144
|
-
//
|
|
17145
|
-
//
|
|
17146
|
-
//
|
|
17147
|
-
//
|
|
17148
|
-
//
|
|
17149
|
-
//
|
|
17150
|
-
//
|
|
17151
|
-
//
|
|
17152
|
-
//
|
|
17153
|
-
//
|
|
17154
|
-
//
|
|
17155
|
-
//
|
|
17156
|
-
//
|
|
17157
|
-
//
|
|
17158
17118
|
var script$P = {
|
|
17119
|
+
name: "VcTabs",
|
|
17159
17120
|
components: {
|
|
17121
|
+
VcIcon,
|
|
17160
17122
|
VTab: VTab,
|
|
17161
17123
|
VTabs: VTabs,
|
|
17162
17124
|
VTabItem: VTabItem,
|
|
17163
17125
|
VTabsItems: VTabsItems
|
|
17164
17126
|
},
|
|
17165
|
-
|
|
17166
|
-
name: "VcTabs",
|
|
17167
|
-
|
|
17168
17127
|
model: {
|
|
17169
17128
|
prop: 'currentIndex',
|
|
17170
17129
|
event: 'change'
|
|
17171
17130
|
},
|
|
17172
|
-
|
|
17173
17131
|
props: {
|
|
17174
17132
|
tabs: {
|
|
17175
17133
|
type: Array,
|
|
@@ -17200,50 +17158,30 @@ var script$P = {
|
|
|
17200
17158
|
type: String,
|
|
17201
17159
|
default: 'VcTabs'
|
|
17202
17160
|
},
|
|
17203
|
-
|
|
17204
|
-
type:
|
|
17205
|
-
default:
|
|
17206
|
-
|
|
17207
|
-
ripple: {
|
|
17208
|
-
type: Boolean,
|
|
17209
|
-
default: true
|
|
17210
|
-
},
|
|
17211
|
-
customTabHeight: {
|
|
17212
|
-
type: Number,
|
|
17213
|
-
required: false
|
|
17214
|
-
},
|
|
17215
|
-
topSlider: {
|
|
17216
|
-
type: Boolean,
|
|
17217
|
-
default: false
|
|
17218
|
-
},
|
|
17219
|
-
// use for complex custom tab header content
|
|
17220
|
-
zeroTabWidth: {
|
|
17221
|
-
type: Boolean,
|
|
17222
|
-
default: false
|
|
17161
|
+
type: {
|
|
17162
|
+
type: String,
|
|
17163
|
+
default: 'default',
|
|
17164
|
+
validator: prop => ['default', 'folder'].includes(prop)
|
|
17223
17165
|
},
|
|
17224
17166
|
fullHeightTabs: {
|
|
17225
17167
|
type: Boolean,
|
|
17226
17168
|
default: false
|
|
17227
17169
|
}
|
|
17228
17170
|
},
|
|
17229
|
-
|
|
17230
17171
|
computed: {
|
|
17231
17172
|
safeCurrentIndex() {
|
|
17232
17173
|
return Math.max(0, Math.min(this.currentIndex, this.tabs.length - 1));
|
|
17233
17174
|
},
|
|
17234
17175
|
|
|
17235
17176
|
tabHeight() {
|
|
17236
|
-
return this.
|
|
17177
|
+
return this.type === 'folder' ? 62 : this.tabSize === 'M' ? 48 : 60;
|
|
17237
17178
|
},
|
|
17238
17179
|
|
|
17239
17180
|
customClasses() {
|
|
17240
17181
|
return {
|
|
17241
17182
|
'separatorShadow': this.separatorStyle === 'shadow',
|
|
17242
17183
|
'separatorDivider': this.separatorStyle === 'divider',
|
|
17243
|
-
|
|
17244
|
-
'no-ripple': !this.ripple,
|
|
17245
|
-
'top-slider': this.topSlider,
|
|
17246
|
-
'zero-tab-width': this.zeroTabWidth
|
|
17184
|
+
[this.type]: true
|
|
17247
17185
|
};
|
|
17248
17186
|
}
|
|
17249
17187
|
|
|
@@ -17297,7 +17235,37 @@ var __vue_render__$L = function () {
|
|
|
17297
17235
|
"data-qa": _vm.dataQa + "-tab-" + index
|
|
17298
17236
|
}
|
|
17299
17237
|
}, [_vm._t("tab-" + index, function () {
|
|
17300
|
-
return [_c('
|
|
17238
|
+
return [_vm.type === 'folder' ? _c('div', {
|
|
17239
|
+
key: index,
|
|
17240
|
+
staticClass: "folder-label"
|
|
17241
|
+
}, [_c('VcIcon', {
|
|
17242
|
+
staticClass: "folder-label__drag",
|
|
17243
|
+
attrs: {
|
|
17244
|
+
"size": "16",
|
|
17245
|
+
"color": "var(--gray-darken-4)"
|
|
17246
|
+
}
|
|
17247
|
+
}, [_vm._v("\n $draggable\n ")]), _vm._v(" "), _vm._t("folder-label-info", function () {
|
|
17248
|
+
return [_c('div', {
|
|
17249
|
+
staticClass: "folder-label__info"
|
|
17250
|
+
}, [_vm._v(_vm._s(item.label))])];
|
|
17251
|
+
}), _vm._v(" "), _c('VcIcon', {
|
|
17252
|
+
staticClass: "folder-label__close",
|
|
17253
|
+
attrs: {
|
|
17254
|
+
"size": "12",
|
|
17255
|
+
"color": "var(--gray-darken-4)"
|
|
17256
|
+
},
|
|
17257
|
+
on: {
|
|
17258
|
+
"click": function ($event) {
|
|
17259
|
+
return _vm.$emit('closeButtonClicked', index);
|
|
17260
|
+
}
|
|
17261
|
+
}
|
|
17262
|
+
}, [_vm._v("\n $close_button\n ")]), _vm._v(" "), _c('VcIcon', {
|
|
17263
|
+
staticClass: "folder-label__menu",
|
|
17264
|
+
attrs: {
|
|
17265
|
+
"size": "14",
|
|
17266
|
+
"color": "var(--gray-darken-4)"
|
|
17267
|
+
}
|
|
17268
|
+
}, [_vm._v("\n $three_dots\n ")])], 2) : _c('span', {
|
|
17301
17269
|
staticClass: "VcTab-label"
|
|
17302
17270
|
}, [_vm._v(_vm._s(item.label))])];
|
|
17303
17271
|
}, {
|
|
@@ -17320,7 +17288,7 @@ var __vue_render__$L = function () {
|
|
|
17320
17288
|
return _c('v-tab-item', {
|
|
17321
17289
|
key: "tab-content-" + index,
|
|
17322
17290
|
attrs: {
|
|
17323
|
-
"transition": _vm.
|
|
17291
|
+
"transition": _vm.type === 'folder' ? false : undefined,
|
|
17324
17292
|
"data-qa": _vm.dataQa + "-tab-content-" + index
|
|
17325
17293
|
}
|
|
17326
17294
|
}, [_vm._t("tab-content-" + index, function () {
|
|
@@ -17336,8 +17304,8 @@ var __vue_staticRenderFns__$L = [];
|
|
|
17336
17304
|
|
|
17337
17305
|
const __vue_inject_styles__$P = function (inject) {
|
|
17338
17306
|
if (!inject) return;
|
|
17339
|
-
inject("data-v-
|
|
17340
|
-
source: ".VcTabs--wrapper[data-v-
|
|
17307
|
+
inject("data-v-3dc41cc0_0", {
|
|
17308
|
+
source: ".VcTabs--wrapper[data-v-3dc41cc0]{display:flex;flex-direction:column;height:100%}.VcTabs--wrapper .separatorShadow[data-v-3dc41cc0]{border-bottom:1px solid var(--gray-lighten-1);box-shadow:var(--shadow-1)}.VcTabs--wrapper .separatorDivider[data-v-3dc41cc0]{border-bottom:1px solid var(--gray-lighten-1)}.VcTabs--wrapper .folder[data-v-3dc41cc0] .v-tabs-slider-wrapper{transition:none;bottom:auto}.VcTabs--wrapper .folder[data-v-3dc41cc0] .v-ripple__container{display:none!important}.VcTabs--wrapper .folder[data-v-3dc41cc0] .VcTab{padding:0;min-width:auto}.VcTabs--wrapper .full-height-tabs[data-v-3dc41cc0]{height:100%}.VcTabs--wrapper .full-height-tabs .v-window-item[data-v-3dc41cc0]{height:100%}.VcTabs--content[data-v-3dc41cc0]{flex:unset}.VcTab[data-v-3dc41cc0]:focus{color:rgba(255,255,255,0)!important;box-shadow:inset 0 0 0 3px var(--v-secondary-lighten1);border-radius:2px}.VcTab:focus .VcTab-label[data-v-3dc41cc0]{color:var(--gray-darken-4)}.VcTab:focus.VcTabDisabled[data-v-3dc41cc0]{background:rgba(0,0,0,.04);color:var(--gray-darken-2)}.VcTabActive[data-v-3dc41cc0]{color:var(--gray-darken-5)}.VcTab-label[data-v-3dc41cc0]{font-size:var(--font-size-x-small);font-weight:var(--font-weight-medium2);line-height:var(--size-value4);letter-spacing:0;text-transform:initial}.VcTab .folder-label[data-v-3dc41cc0]{display:flex;flex-direction:row;height:100%;width:216px;font-size:var(--font-size-xx-small);border-inline-end:1px solid var(--gray);text-transform:none;letter-spacing:normal;padding:var(--size-value3) var(--size-value1);gap:var(--size-value1);text-align:start}.VcTab .folder-label__info[data-v-3dc41cc0]{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.VcTab .folder-label__close[data-v-3dc41cc0]{line-height:20px;margin-inline-end:var(--size-value1);visibility:hidden}.VcTab .folder-label__menu[data-v-3dc41cc0]{visibility:hidden}.VcTab .folder-label:hover .folder-label__close[data-v-3dc41cc0],.VcTab .folder-label:hover .folder-label__drag[data-v-3dc41cc0],.VcTab .folder-label:hover .folder-label__menu[data-v-3dc41cc0]{visibility:visible}.VcTab:not(.VcTabActive) .folder-label[data-v-3dc41cc0]{background-color:var(--gray-lighten-4);border-bottom:1px solid var(--gray)}.VcTab:not(.VcTabActive) .folder-label__drag[data-v-3dc41cc0]{visibility:hidden}.VcTab[data-v-3dc41cc0]:focus{color:unset!important;box-shadow:none}.VcTabsContent[data-v-3dc41cc0]{background-color:transparent;overflow-y:auto}[data-v-3dc41cc0] .v-slide-group__next,[data-v-3dc41cc0] .v-slide-group__prev{display:none!important}[data-v-3dc41cc0] .v-slide-group__wrapper{overflow-x:auto;overflow-y:hidden}",
|
|
17341
17309
|
map: undefined,
|
|
17342
17310
|
media: undefined
|
|
17343
17311
|
});
|
|
@@ -17345,7 +17313,7 @@ const __vue_inject_styles__$P = function (inject) {
|
|
|
17345
17313
|
/* scoped */
|
|
17346
17314
|
|
|
17347
17315
|
|
|
17348
|
-
const __vue_scope_id__$P = "data-v-
|
|
17316
|
+
const __vue_scope_id__$P = "data-v-3dc41cc0";
|
|
17349
17317
|
/* module identifier */
|
|
17350
17318
|
|
|
17351
17319
|
const __vue_module_identifier__$P = undefined;
|
|
@@ -24786,6 +24754,11 @@ var script$7 = {
|
|
|
24786
24754
|
display: '',
|
|
24787
24755
|
class: 'scroll-indicator'
|
|
24788
24756
|
});
|
|
24757
|
+
updatedHeaders.push({
|
|
24758
|
+
value: 'filler',
|
|
24759
|
+
display: '',
|
|
24760
|
+
class: 'table-filler'
|
|
24761
|
+
});
|
|
24789
24762
|
return updatedHeaders;
|
|
24790
24763
|
},
|
|
24791
24764
|
|
|
@@ -25011,8 +24984,8 @@ var __vue_staticRenderFns__$7 = [];
|
|
|
25011
24984
|
|
|
25012
24985
|
const __vue_inject_styles__$7 = function (inject) {
|
|
25013
24986
|
if (!inject) return;
|
|
25014
|
-
inject("data-v-
|
|
25015
|
-
source: ".VcDataTable--wrapper[data-v-
|
|
24987
|
+
inject("data-v-aa4aef38_0", {
|
|
24988
|
+
source: ".VcDataTable--wrapper[data-v-aa4aef38]{height:calc(100% - var(--size-value12))}.VcDataTable--wrapper.empty[data-v-aa4aef38] table{height:100%}.VcDataTable[data-v-aa4aef38]{height:100%;overflow-y:hidden}.VcDataTable.isScrolling[data-v-aa4aef38] table tbody td.sticky,.VcDataTable.isScrolling[data-v-aa4aef38] table thead th.sticky{box-shadow:var(--table-sticky-column-shadow)}.VcDataTable--actionBar[data-v-aa4aef38]{min-height:var(--size-value19);position:sticky;padding:var(--size-value3) var(--size-value5);margin-bottom:var(--size-value3);margin-left:var(--size-value1)}.VcDataTable--header[data-v-aa4aef38]{border-inline-end:var(--gray-lighten-2) solid 1px}.VcDataTable[data-v-aa4aef38] .v-data-table__wrapper{height:calc(100% - 88px)}.VcDataTable[data-v-aa4aef38] table{table-layout:auto}.VcDataTable[data-v-aa4aef38] thead{position:sticky;top:0;z-index:2}.VcDataTable[data-v-aa4aef38] table thead th.scroll-indicator{position:absolute;height:100vh!important}.VcDataTable[data-v-aa4aef38] table thead th.table-filler{min-width:0;background-color:var(--gray-lighten-4)}.VcDataTable[data-v-aa4aef38] table thead th.sticky{position:sticky;z-index:3}.VcDataTable[data-v-aa4aef38] table thead th:nth-child(2){left:0}.VcDataTable[data-v-aa4aef38] table tbody td.sticky:nth-child(3),.VcDataTable[data-v-aa4aef38] table thead th.sticky:nth-child(3){left:49px}.VcDataTable[data-v-aa4aef38] table tbody tr:not(:last-child) td{border-bottom:thin solid var(--gray-lighten-2)!important}.VcDataTable[data-v-aa4aef38] table tbody td.sticky,.VcDataTable[data-v-aa4aef38] table thead th.sticky{box-shadow:0 0 0 transparent;transition:box-shadow .1s ease-in-out}.VcDataTable[data-v-aa4aef38] table tbody td.sticky{position:sticky;background:#fff;z-index:1}.VcDataTable[data-v-aa4aef38] table tbody tr:hover td{background:var(--gray-lighten-3)}.VcDataTable[data-v-aa4aef38] table tbody td.sticky:nth-child(2){left:0}.VcDataTable[data-v-aa4aef38] table tbody td:first-child{width:0;max-width:0}.VcDataTable[data-v-aa4aef38] tfoot{position:sticky;bottom:0;z-index:2}.VcDataTable[data-v-aa4aef38] .v-data-table__wrapper>table>thead>tr>th{padding:0;height:auto}.VcDataTable[data-v-aa4aef38] .v-data-table__wrapper>table>tbody>tr>td{padding:0}.VcDataTable[data-v-aa4aef38] .v-data-table-header__icon{display:none}.VcDataTable[data-v-aa4aef38] .VcDataTable--footer{position:sticky;bottom:0}",
|
|
25016
24989
|
map: undefined,
|
|
25017
24990
|
media: undefined
|
|
25018
24991
|
});
|
|
@@ -25020,7 +24993,7 @@ const __vue_inject_styles__$7 = function (inject) {
|
|
|
25020
24993
|
/* scoped */
|
|
25021
24994
|
|
|
25022
24995
|
|
|
25023
|
-
const __vue_scope_id__$7 = "data-v-
|
|
24996
|
+
const __vue_scope_id__$7 = "data-v-aa4aef38";
|
|
25024
24997
|
/* module identifier */
|
|
25025
24998
|
|
|
25026
24999
|
const __vue_module_identifier__$7 = undefined;
|