vueless 0.0.547 → 0.0.549
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.data-table/UTable.vue +4 -13
- package/ui.data-table/config.ts +0 -1
- package/ui.data-table/useAttrs.ts +0 -3
- package/ui.form-date-picker/UDatePicker.vue +6 -5
- package/ui.form-date-picker/config.ts +2 -2
- package/ui.form-date-picker-range/UDatePickerRange.vue +3 -3
- package/ui.form-date-picker-range/config.ts +2 -2
- package/web-types.json +8 -2
package/package.json
CHANGED
package/ui.data-table/UTable.vue
CHANGED
|
@@ -206,7 +206,6 @@ const {
|
|
|
206
206
|
tableWrapperAttrs,
|
|
207
207
|
headerRowAttrs,
|
|
208
208
|
bodyRowAfterAttrs,
|
|
209
|
-
bodyRowAfterCellAttrs,
|
|
210
209
|
bodyRowBeforeAttrs,
|
|
211
210
|
bodyRowBeforeCellAttrs,
|
|
212
211
|
footerAttrs,
|
|
@@ -576,17 +575,11 @@ defineExpose({
|
|
|
576
575
|
<table v-bind="tableAttrs">
|
|
577
576
|
<thead v-bind="headerAttrs" :style="tableRowWidthStyle">
|
|
578
577
|
<tr v-if="hasSlotContent($slots['before-header'])" v-bind="headerRowAttrs">
|
|
579
|
-
|
|
580
|
-
v-if="hasSlotContent($slots['before-header'])"
|
|
581
|
-
:colspan="colsCount"
|
|
582
|
-
v-bind="headerCellBaseAttrs"
|
|
583
|
-
>
|
|
584
|
-
<!--
|
|
578
|
+
<!--
|
|
585
579
|
@slot Use it to add something before header row.
|
|
586
580
|
@binding {number} cols-count
|
|
587
581
|
-->
|
|
588
|
-
|
|
589
|
-
</td>
|
|
582
|
+
<slot name="before-header" :cols-count="colsCount" />
|
|
590
583
|
</tr>
|
|
591
584
|
|
|
592
585
|
<tr v-if="hasSlotContent($slots['before-header'])" v-bind="headerRowAttrs"></tr>
|
|
@@ -710,10 +703,8 @@ defineExpose({
|
|
|
710
703
|
v-if="rowIndex === lastRow && hasSlotContent($slots['after-last-row'])"
|
|
711
704
|
v-bind="bodyRowAfterAttrs"
|
|
712
705
|
>
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
<slot name="after-last-row" />
|
|
716
|
-
</td>
|
|
706
|
+
<!-- @slot Use it to add something after last row. -->
|
|
707
|
+
<slot name="after-last-row" :cols-count="colsCount" />
|
|
717
708
|
</tr>
|
|
718
709
|
</template>
|
|
719
710
|
</tbody>
|
package/ui.data-table/config.ts
CHANGED
|
@@ -78,9 +78,6 @@ export default function useAttrs(
|
|
|
78
78
|
bodyRowBeforeCell: {
|
|
79
79
|
base: computed(() => [extendingKeysClasses.bodyCellBase.value]),
|
|
80
80
|
},
|
|
81
|
-
bodyRowAfterCell: {
|
|
82
|
-
base: computed(() => [extendingKeysClasses.bodyCellBase.value]),
|
|
83
|
-
},
|
|
84
81
|
footer: {
|
|
85
82
|
extend: computed(() => [isFooterSticky.value && extendingKeysClasses.stickyFooter.value]),
|
|
86
83
|
},
|
|
@@ -86,10 +86,11 @@ const currentLocale = computed(() => merge(defaultConfig.i18n, i18nGlobal, props
|
|
|
86
86
|
|
|
87
87
|
const elementId = props.id || useId();
|
|
88
88
|
|
|
89
|
-
const { config,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
const { config, datepickerInputAttrs, datepickerInputActiveAttrs, calendarAttrs, wrapperAttrs } =
|
|
90
|
+
useAttrs(props, {
|
|
91
|
+
isTop,
|
|
92
|
+
isRight,
|
|
93
|
+
});
|
|
93
94
|
|
|
94
95
|
function activate() {
|
|
95
96
|
isShownCalendar.value = true;
|
|
@@ -195,7 +196,7 @@ defineExpose({
|
|
|
195
196
|
:size="size"
|
|
196
197
|
:left-icon="leftIcon"
|
|
197
198
|
:right-icon="rightIcon"
|
|
198
|
-
v-bind="isShownCalendar ?
|
|
199
|
+
v-bind="isShownCalendar ? datepickerInputActiveAttrs : datepickerInputAttrs"
|
|
199
200
|
@focus="activate"
|
|
200
201
|
>
|
|
201
202
|
<template #left>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
2
|
wrapper: "relative",
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
datepickerInput: "{UInput}",
|
|
4
|
+
datepickerInputActive: {
|
|
5
5
|
component: "{UInput}",
|
|
6
6
|
wrapper: "ring-dynamic rounded-dynamic ring-offset-dynamic ring-brand-700/15 border-brand-500 hover:border-brand-500",
|
|
7
7
|
},
|
|
@@ -134,14 +134,14 @@ const {
|
|
|
134
134
|
config,
|
|
135
135
|
wrapperAttrs,
|
|
136
136
|
calendarAttrs,
|
|
137
|
-
|
|
137
|
+
datepickerInputAttrs,
|
|
138
138
|
menuAttrs,
|
|
139
139
|
buttonWrapperAttrs,
|
|
140
140
|
buttonAttrs,
|
|
141
141
|
shiftRangeButtonAttrs,
|
|
142
142
|
rangeInputWrapperAttrs,
|
|
143
143
|
rangeInputErrorAttrs,
|
|
144
|
-
|
|
144
|
+
datepickerActiveInputAttrs,
|
|
145
145
|
rangeInputFirstAttrs,
|
|
146
146
|
rangeInputLastAttrs,
|
|
147
147
|
periodRowAttrs,
|
|
@@ -570,7 +570,7 @@ function onInputCalendar(value: RangeDate) {
|
|
|
570
570
|
readonly
|
|
571
571
|
:left-icon="leftIcon"
|
|
572
572
|
:right-icon="rightIcon"
|
|
573
|
-
v-bind="isShownMenu ?
|
|
573
|
+
v-bind="isShownMenu ? datepickerActiveInputAttrs : datepickerInputAttrs"
|
|
574
574
|
@focus="activate"
|
|
575
575
|
>
|
|
576
576
|
<template #left>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
2
|
wrapper: "relative",
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
datepickerInput: "{UInput}",
|
|
4
|
+
datepickerInputActive: {
|
|
5
5
|
component: "{UInput}",
|
|
6
6
|
wrapper: {
|
|
7
7
|
base: "ring-dynamic rounded-dynamic ring-offset-dynamic ring-brand-700/15 border-brand-500 hover:border-brand-500",
|
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.549",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -10613,7 +10613,13 @@
|
|
|
10613
10613
|
},
|
|
10614
10614
|
{
|
|
10615
10615
|
"name": "after-last-row",
|
|
10616
|
-
"
|
|
10616
|
+
"scoped": true,
|
|
10617
|
+
"description": "Use it to add something after last row.",
|
|
10618
|
+
"bindings": [
|
|
10619
|
+
{
|
|
10620
|
+
"name": "cols-count"
|
|
10621
|
+
}
|
|
10622
|
+
]
|
|
10617
10623
|
},
|
|
10618
10624
|
{
|
|
10619
10625
|
"name": "empty-state",
|