vueless 0.0.762 → 0.0.763

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.762",
3
+ "version": "0.0.763",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -38,7 +38,7 @@ import {
38
38
  import { COMPONENT_NAME } from "./constants.ts";
39
39
 
40
40
  import type { Cell, Row, RowId, UTableProps, UTableRowAttrs, Config } from "./types.ts";
41
- import type { Ref, ComputedRef, VNode } from "vue";
41
+ import type { Ref, ComputedRef } from "vue";
42
42
 
43
43
  defineOptions({ inheritAttrs: false });
44
44
 
@@ -186,17 +186,6 @@ const isCheckedMoreOneTableItems = computed(() => {
186
186
 
187
187
  const tableRowWidthStyle = computed(() => ({ width: `${tableWidth.value / PX_IN_REM}rem` }));
188
188
 
189
- const hasSlotContentBeforeFirstRow = computed(() => {
190
- if (
191
- hasSlotContent(slots["before-first-row"]) &&
192
- typeof slots["before-first-row"] === "function"
193
- ) {
194
- return (slots["before-first-row"]({}) as VNode[])?.some((item) => Boolean(item.type));
195
- }
196
-
197
- return false;
198
- });
199
-
200
189
  const flatTableRows = computed(() => getFlatRows(tableRows.value));
201
190
 
202
191
  const isSelectedAllRows = computed(() => {
@@ -345,19 +334,16 @@ function onKeyupEsc(event: KeyboardEvent) {
345
334
 
346
335
  function isShownDateDivider(rowIndex: number) {
347
336
  const prevIndex = rowIndex ? rowIndex - 1 : rowIndex;
348
- const nextIndex = rowIndex ? rowIndex + 1 : rowIndex;
349
337
  const prevItem = tableRows.value[prevIndex];
350
- const nextItem = tableRows.value[nextIndex];
351
338
  const currentItem = tableRows.value[rowIndex];
352
339
 
353
340
  if (rowIndex === 0) {
354
- return hasSlotContentBeforeFirstRow.value;
341
+ return true;
355
342
  }
356
343
 
357
344
  const isPrevSameDate = prevItem?.rowDate === currentItem?.rowDate;
358
- const isNextSameDate = nextItem?.rowDate === currentItem?.rowDate;
359
345
 
360
- return !isPrevSameDate && isNextSameDate && props.dateDivider;
346
+ return !isPrevSameDate && props.dateDivider;
361
347
  }
362
348
 
363
349
  function onClickRow(row: Row) {