vueless 0.0.85 → 0.0.87
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/package.json +1 -1
- package/ui.container-page/index.vue +23 -3
- package/ui.data-table/index.vue +1 -1
- package/web-types.json +17 -1
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :data-cy="dataCy" v-bind="wrapperAttrs">
|
|
3
3
|
<div v-bind="pageAttrs">
|
|
4
|
+
<!-- @slot Use it to add something before the header. -->
|
|
5
|
+
<slot name="header-before" />
|
|
6
|
+
|
|
4
7
|
<div v-if="isShownHeader" v-bind="headerAttrs">
|
|
5
8
|
<div v-bind="headerLeftAttrs">
|
|
6
9
|
<!-- @slot Use it to add something before left side of the header. -->
|
|
@@ -41,11 +44,17 @@
|
|
|
41
44
|
</div>
|
|
42
45
|
</div>
|
|
43
46
|
|
|
47
|
+
<!-- @slot Use it to add something after the header. -->
|
|
48
|
+
<slot name="header-after" />
|
|
49
|
+
|
|
44
50
|
<div>
|
|
45
51
|
<!-- @slot Use it to add main content. -->
|
|
46
52
|
<slot />
|
|
47
53
|
</div>
|
|
48
54
|
|
|
55
|
+
<!-- @slot Use it to add something before the footer. -->
|
|
56
|
+
<slot name="footer-before" />
|
|
57
|
+
|
|
49
58
|
<div v-if="isShownFooterSlot" class="vueless-page-footer" v-bind="footerAttrs">
|
|
50
59
|
<div class="vueless-page-footer-left" v-bind="footerLeftAttrs">
|
|
51
60
|
<!-- @slot Use it to add something to the left side of the footer. -->
|
|
@@ -57,6 +66,9 @@
|
|
|
57
66
|
<slot name="footer-right" />
|
|
58
67
|
</div>
|
|
59
68
|
</div>
|
|
69
|
+
|
|
70
|
+
<!-- @slot Use it to add something after the footer. -->
|
|
71
|
+
<slot name="footer-after" />
|
|
60
72
|
</div>
|
|
61
73
|
|
|
62
74
|
<div v-if="fixedRounding && !isMobileBreakpoint" v-bind="rightRoundingWrapperAttrs">
|
|
@@ -193,9 +205,17 @@ const {
|
|
|
193
205
|
|
|
194
206
|
const isShownHeader = computed(() => {
|
|
195
207
|
const isHeaderLeftSlot = hasSlotContent(slots["header-left"]);
|
|
196
|
-
const isHeaderRightSlot = hasSlotContent(slots["header-
|
|
197
|
-
|
|
198
|
-
|
|
208
|
+
const isHeaderRightSlot = hasSlotContent(slots["header-right"]);
|
|
209
|
+
const isHeaderLeftBeforeSlot = hasSlotContent(slots["header-left-before"]);
|
|
210
|
+
const isHeaderLeftAfterSlot = hasSlotContent(slots["header-left-after"]);
|
|
211
|
+
|
|
212
|
+
return (
|
|
213
|
+
props.title ||
|
|
214
|
+
isHeaderLeftSlot ||
|
|
215
|
+
isHeaderLeftBeforeSlot ||
|
|
216
|
+
isHeaderLeftAfterSlot ||
|
|
217
|
+
isHeaderRightSlot
|
|
218
|
+
);
|
|
199
219
|
});
|
|
200
220
|
|
|
201
221
|
const isShownFooterSlot = computed(() => {
|
package/ui.data-table/index.vue
CHANGED
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
<slot name="cell-other" :value="value" :row="row" />
|
|
185
185
|
</template>
|
|
186
186
|
|
|
187
|
-
<template v-else-if="value
|
|
187
|
+
<template v-else-if="value?.hasOwnProperty('secondaryRow')">
|
|
188
188
|
<div :data-cy="`${dataCy}-${key}-cell`">
|
|
189
189
|
{{ value.primaryRow || HYPHEN_SYMBOL }}
|
|
190
190
|
</div>
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "vueless",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.87",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -5230,6 +5230,10 @@
|
|
|
5230
5230
|
}
|
|
5231
5231
|
],
|
|
5232
5232
|
"slots": [
|
|
5233
|
+
{
|
|
5234
|
+
"name": "header-before",
|
|
5235
|
+
"description": "Use it to add something before the header."
|
|
5236
|
+
},
|
|
5233
5237
|
{
|
|
5234
5238
|
"name": "header-left-before",
|
|
5235
5239
|
"description": "Use it to add something before left side of the header."
|
|
@@ -5246,10 +5250,18 @@
|
|
|
5246
5250
|
"name": "header-right",
|
|
5247
5251
|
"description": "Use it to customise right side of the header."
|
|
5248
5252
|
},
|
|
5253
|
+
{
|
|
5254
|
+
"name": "header-after",
|
|
5255
|
+
"description": "Use it to add something after the header."
|
|
5256
|
+
},
|
|
5249
5257
|
{
|
|
5250
5258
|
"name": "default",
|
|
5251
5259
|
"description": "Use it to add main content."
|
|
5252
5260
|
},
|
|
5261
|
+
{
|
|
5262
|
+
"name": "footer-before",
|
|
5263
|
+
"description": "Use it to add something before the footer."
|
|
5264
|
+
},
|
|
5253
5265
|
{
|
|
5254
5266
|
"name": "footer-left",
|
|
5255
5267
|
"description": "Use it to add something to the left side of the footer."
|
|
@@ -5257,6 +5269,10 @@
|
|
|
5257
5269
|
{
|
|
5258
5270
|
"name": "footer-right",
|
|
5259
5271
|
"description": "Use it to add something to the right side of the footer."
|
|
5272
|
+
},
|
|
5273
|
+
{
|
|
5274
|
+
"name": "footer-after",
|
|
5275
|
+
"description": "Use it to add something after the footer."
|
|
5260
5276
|
}
|
|
5261
5277
|
],
|
|
5262
5278
|
"source": {
|