@xleddyl/443-components-vue 0.16.21 → 0.16.22
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/CATALOG.md
CHANGED
|
@@ -218,7 +218,7 @@ Mount `OverlayHost` once for the imperative hooks (see [Composables](#composable
|
|
|
218
218
|
| `Avatar` | User picture with initials fallback and status dot. | Props: `src`, `name`, `alt`, `size` (xs to xl), `shape` (circle, square), `status` (online, away, busy, offline), `decorative`. Slot: `fallback`. | `data/avatar.vue` |
|
|
219
219
|
| `AvatarGroup` | Overlapping stack of avatars with "+N". | Props: `items` (`src`, `name`, `alt`), `max`, `size`, `shape`, `moreLabel`. | `data/avatar.vue` |
|
|
220
220
|
| `Stat` | Key figure (KPI) with unit, delta, trend, hint and optional sparkline. Can be a link. | Props: `label`, `value`, `unit`, `delta`, `trend` (up, down, flat), `invert` (down is good), `hint`, `icon`, `loading`, `to`, `href`, `plain`. Slots: `label`, `value`, `icon`, `sparkline`, `footer`. | `data/stat.vue` |
|
|
221
|
-
| `RecordList` | Short list of records (settings, users, tokens): title, badge, description, leading and action slots, `SkeletonList` while `loading`, empty state. | Props: `items` (`RecordListItem`: `id`, `title`, `description`, `badge` `{ label, tone }`), `loading`, `avatar`, `action`, `label`, `skeletonRows`, `emptyText`, `emptyDescription`, `emptyIcon
|
|
221
|
+
| `RecordList` | Short list of records (settings, users, tokens): title, badge, description, leading and action slots, `SkeletonList` while `loading`, empty state. | Props: `items` (`RecordListItem`: `id`, `title`, `description`, `badge` `{ label, tone }`), `loading`, `avatar`, `action`, `label`, `skeletonRows`, `emptyText`, `emptyDescription`, `emptyIcon`, `emptyVariant` (card, the default, or plain). Slots: `leading`, `action` (`{ item }`), `empty`. | `data/record-list.vue` |
|
|
222
222
|
| `DescriptionList` | Label and value pairs for a record. Use it on detail views. | Props: `items` (`key`, `label`, `value`, `hint`), `layout` (stacked, inline, grid), `columns`, `divided`, `emptyText`. Slots: `term`, `value`, `value-<key>`. | `data/description-list.vue` |
|
|
223
223
|
| `Timeline` | Vertical list of events or activity. | Props: `items` (`title`, `description`, `time`, `datetime`, `icon`, `tone`), `compact`. Slot: `item`. | `data/timeline.vue` |
|
|
224
224
|
| `Tree` | Expandable hierarchy with selection, drag to reorder and nesting. | Models: `v-model:expanded`, `v-model:selected`. Props: `nodes` (`id`, `label`, `description`, `meta`, `icon`, `children`, `disabled`), `selectable`, `reorderable`, `nestable`, `moveButtons` (default `true`; `false` hides the row arrows, drag and Alt+arrow keys still work), `canDrop`, `size`, `checkmark`, `emptyText`. Slots: `label`, `meta`, `empty`. Events: `select`, `move`. | `data/tree.vue` |
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
:icon="emptyIcon"
|
|
28
28
|
:title="emptyText ?? t('common.empty')"
|
|
29
29
|
:description="emptyDescription"
|
|
30
|
-
size="sm"
|
|
31
|
-
variant="
|
|
30
|
+
:size="emptyVariant === 'plain' ? 'sm' : 'md'"
|
|
31
|
+
:variant="emptyVariant"
|
|
32
32
|
:level="3"
|
|
33
33
|
/>
|
|
34
34
|
</slot>
|
|
@@ -48,7 +48,8 @@ defineProps({
|
|
|
48
48
|
skeletonRows: { type: Number, required: false, default: 3 },
|
|
49
49
|
emptyText: { type: String, required: false },
|
|
50
50
|
emptyDescription: { type: String, required: false },
|
|
51
|
-
emptyIcon: { type: null, required: false }
|
|
51
|
+
emptyIcon: { type: null, required: false },
|
|
52
|
+
emptyVariant: { type: String, required: false, default: "card" }
|
|
52
53
|
});
|
|
53
54
|
defineSlots();
|
|
54
55
|
const { t } = useLocale();
|
|
@@ -11,6 +11,7 @@ declare const __VLS_export: <Item extends RecordListItem>(__VLS_props: NonNullab
|
|
|
11
11
|
emptyText?: string;
|
|
12
12
|
emptyDescription?: string;
|
|
13
13
|
emptyIcon?: IconName;
|
|
14
|
+
emptyVariant?: "card" | "plain";
|
|
14
15
|
} & Partial<{
|
|
15
16
|
readonly rows?: number | undefined;
|
|
16
17
|
readonly lines?: 1 | 2 | undefined;
|
package/package.json
CHANGED