@fastkit/vui 0.16.33 → 0.16.35

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/vui.mjs CHANGED
@@ -33,7 +33,7 @@ import { createPropsOptions, defineSlots, renderSlotOrEmpty, isFragment, resolve
33
33
  export * from '@fastkit/vue-utils';
34
34
  import * as vue_loading_star from '@fastkit/vue-loading';
35
35
  export * from '@fastkit/vue-loading';
36
- import { defineComponent, computed, createVNode, mergeProps, ref, watch, onMounted, onBeforeUnmount, isVNode, cloneVNode, withDirectives, Fragment, vShow, onBeforeUpdate, vModelSelect, Transition, inject, provide, createTextVNode, reactive, nextTick } from 'vue';
36
+ import { defineComponent, computed, createVNode, mergeProps, ref, watch, onMounted, onBeforeUnmount, Fragment, isVNode, cloneVNode, withDirectives, vShow, onBeforeUpdate, vModelSelect, Transition, inject, provide, createTextVNode, reactive, nextTick } from 'vue';
37
37
  import { loadImage } from '@fastkit/dom';
38
38
  import { useRouter, useRoute, RouterLink, useLink } from 'vue-router';
39
39
  import { resizeDirectiveArgument, installResizeDirective } from '@fastkit/vue-resize';
@@ -1303,10 +1303,6 @@ var VAvatar = defineComponent({
1303
1303
  color: () => props11.color || defaults.color,
1304
1304
  variant: () => props11.variant || defaults.variant
1305
1305
  });
1306
- const actionable = useActionable(ctx, {
1307
- clickableClassName: () => "v-avatar--clickable",
1308
- linkFallbackTag: "div"
1309
- });
1310
1306
  const classes = computed(() => {
1311
1307
  const {
1312
1308
  size
@@ -1326,24 +1322,23 @@ var VAvatar = defineComponent({
1326
1322
  "--avatar-size": `${size}px`
1327
1323
  };
1328
1324
  });
1325
+ const actionable = useActionable(ctx, {
1326
+ attrs: () => ({
1327
+ class: ["v-avatar", classes.value, color.colorClasses.value],
1328
+ style: styles.value
1329
+ }),
1330
+ actionableClass: () => "v-avatar--clickable",
1331
+ linkFallbackTag: "div"
1332
+ });
1329
1333
  return () => {
1330
1334
  const {
1331
1335
  src
1332
1336
  } = props11;
1333
- const {
1334
- Tag,
1335
- attrs
1336
- } = actionable.value;
1337
- return createVNode(Tag, mergeProps(attrs, {
1338
- "class": ["v-avatar", classes.value, color.colorClasses.value],
1339
- "style": styles.value
1340
- }), {
1341
- default: () => [!!src && createVNode(VBusyImage, {
1342
- "class": "v-avatar__image",
1343
- "src": src,
1344
- "cover": true
1345
- }, null) || ctx.slots.default?.()]
1346
- });
1337
+ return actionable.render(!!src && createVNode(VBusyImage, {
1338
+ "class": "v-avatar__image",
1339
+ "src": src,
1340
+ "cover": true
1341
+ }, null) || ctx.slots.default?.());
1347
1342
  };
1348
1343
  }
1349
1344
  });
@@ -1399,10 +1394,6 @@ var VChip = defineComponent({
1399
1394
  const _icon = resolveRawVChipIcon(props11.endIcon, "end");
1400
1395
  return _icon && _icon();
1401
1396
  });
1402
- const actionable = useActionable(ctx, {
1403
- clickableClassName: () => "v-chip--clickable",
1404
- linkFallbackTag: "div"
1405
- });
1406
1397
  const classes = computed(() => {
1407
1398
  const {
1408
1399
  size
@@ -1411,19 +1402,16 @@ var VChip = defineComponent({
1411
1402
  "v-chip--label": props11.label
1412
1403
  }, typeof size === "string" && `v-chip--${size}`];
1413
1404
  });
1414
- return () => {
1415
- const {
1416
- Tag,
1417
- attrs
1418
- } = actionable.value;
1419
- return createVNode(Tag, mergeProps(attrs, {
1420
- "class": ["v-chip", classes.value, color.colorClasses.value]
1421
- }), {
1422
- default: () => [startIcon.value, createVNode("span", {
1423
- "class": "v-chip__content"
1424
- }, [ctx.slots.default?.()]), endIcon.value]
1425
- });
1426
- };
1405
+ const actionable = useActionable(ctx, {
1406
+ attrs: () => ({
1407
+ class: ["v-chip", classes.value, color.colorClasses.value]
1408
+ }),
1409
+ actionableClass: () => "v-chip--clickable",
1410
+ linkFallbackTag: "div"
1411
+ });
1412
+ return () => actionable.render([startIcon.value, createVNode("span", {
1413
+ "class": "v-chip__content"
1414
+ }, [ctx.slots.default?.()]), endIcon.value]);
1427
1415
  }
1428
1416
  });
1429
1417
  function createCardProps() {
@@ -1552,15 +1540,16 @@ var VButton = defineComponent({
1552
1540
  }]);
1553
1541
  return () => {
1554
1542
  return createVNode(VAction, mergeProps(ctx.attrs, {
1555
- "class": ["v-button", classes.value]
1543
+ "class": ["v-button", classes.value],
1544
+ "guardInProgressClass": "v-button--guard-in-progress"
1556
1545
  }), {
1557
- default: () => [createVNode("span", {
1546
+ default: () => createVNode(Fragment, null, [createVNode("span", {
1558
1547
  "class": "v-button__content"
1559
1548
  }, [startIcon.value, ctx.slots.default?.(), icon.value, endIcon.value]), isLoading.value && createVNode(loading_exports.VProgressCircular, {
1560
1549
  "class": "v-button__loading",
1561
1550
  "indeterminate": true,
1562
1551
  "size": LOADING_SIZE_MAP[control.size.value]
1563
- }, null)]
1552
+ }, null)])
1564
1553
  });
1565
1554
  };
1566
1555
  }
@@ -1960,7 +1949,7 @@ var VListTile = defineComponent({
1960
1949
  const _endIcon = endIcon.value;
1961
1950
  return createVNode(VAction, mergeProps(ctx.attrs, {
1962
1951
  "class": ["v-list-tile", classes.value],
1963
- "clickableClassName": "v-list-tile--clickable"
1952
+ "actionableClass": "v-list-tile--clickable"
1964
1953
  }), {
1965
1954
  default: () => [_startIcon && createVNode("span", {
1966
1955
  "class": "v-list-tile__icon v-list-tile__icon--start"