@fastkit/vui 0.19.54 → 0.19.55

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
@@ -29,7 +29,7 @@ export * from '@fastkit/vue-stack';
29
29
  import { useActionable, VAction, actionableInheritProps, setDefaultActionableClassName, setDefaultRouterLink } from '@fastkit/vue-action';
30
30
  export * from '@fastkit/vue-action';
31
31
  export { VAction as VLink } from '@fastkit/vue-action';
32
- import { createPropsOptions, defineSlots, renderSlotOrEmpty, isFragment, resolveNumberish, resolveVNodeChildOrSlots, rawNumberPropType, onAppUnmount } from '@fastkit/vue-utils';
32
+ import { createPropsOptions, typedSlotWithCtx, defineSlots, typedSlotsWithCtx, renderSlotOrEmpty, withCtx, isFragment, resolveNumberish, resolveVNodeChildOrSlots, withCtxForSlots, rawNumberPropType, onAppUnmount } from '@fastkit/vue-utils';
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';
@@ -382,9 +382,9 @@ var VTooltip = defineComponent({
382
382
  "class": "v-tooltip"
383
383
  }), {
384
384
  ...ctx.slots,
385
- default: (payload) => [createVNode("span", {
385
+ default: typedSlotWithCtx(VMenu, "default", (payload) => [createVNode("span", {
386
386
  "class": "v-tooltip__inner"
387
- }, [defaultSlot?.(payload)])]
387
+ }, [defaultSlot?.(payload)])])
388
388
  });
389
389
  };
390
390
  }
@@ -488,10 +488,12 @@ var VFormControl = defineComponent({
488
488
  default: () => [createVNode("div", {
489
489
  "class": "v-form-control__label__hinttip__hint"
490
490
  }, [hinttip.hint])],
491
- activator: (tooltip) => createVNode("a", mergeProps({
492
- "class": "v-form-control__label__hinttip",
493
- "href": "javascript:void(0)"
494
- }, tooltip.attrs), [hinttip.tip])
491
+ ...typedSlotsWithCtx(VTooltip, {
492
+ activator: (tooltip) => createVNode("a", mergeProps({
493
+ "class": "v-form-control__label__hinttip",
494
+ "href": "javascript:void(0)"
495
+ }, tooltip.attrs), [hinttip.tip])
496
+ })
495
497
  })]), createVNode("div", {
496
498
  "class": "v-form-control__body"
497
499
  }, [ctx.slots.default?.(control), !props12.hiddenInfo && createVNode("div", {
@@ -608,7 +610,7 @@ function defineFormSelectorComponent(opts) {
608
610
  "error": selectorControl.itemsLoadFailed
609
611
  }, {
610
612
  ...ctx.slots,
611
- default: defaultSlot
613
+ default: withCtx(defaultSlot)
612
614
  });
613
615
  }
614
616
  });
@@ -973,8 +975,9 @@ var VBusyImage = defineComponent({
973
975
  });
974
976
  let booted = false;
975
977
  const mounted = ref(false);
976
- watch(() => [ctx.attrs.src, mounted.value], ([src, _mounted]) => {
978
+ watch(() => [ctx.attrs.src, mounted.value], ([src, _mounted], before) => {
977
979
  if (!_mounted) return;
980
+ if (src === before?.[0] && !props12.cover && !isPendingRef.value) return;
978
981
  coverImageRef.value = void 0;
979
982
  if (isAvailableSrc(src)) {
980
983
  loadStateRef.value = "loading";
@@ -1523,13 +1526,13 @@ var VButton = defineComponent({
1523
1526
  "class": ["v-button", classes.value],
1524
1527
  "guardInProgressClass": "v-button--guard-in-progress"
1525
1528
  }), {
1526
- default: () => createVNode(Fragment, null, [createVNode("span", {
1529
+ default: withCtx(() => createVNode(Fragment, null, [createVNode("span", {
1527
1530
  "class": "v-button__content"
1528
1531
  }, [startIcon.value, ctx.slots.default?.(), icon.value, endIcon.value]), isLoading.value && createVNode(loading_exports.VProgressCircular, {
1529
1532
  "class": "v-button__loading",
1530
1533
  "indeterminate": true,
1531
1534
  "size": LOADING_SIZE_MAP[control.size.value]
1532
- }, null)])
1535
+ }, null)]))
1533
1536
  });
1534
1537
  }
1535
1538
  });
@@ -2435,7 +2438,7 @@ var VCheckbox = defineComponent({
2435
2438
  "invalid": nodeControl.invalid,
2436
2439
  "disabled": nodeControl.isDisabled,
2437
2440
  "readonly": nodeControl.isReadonly
2438
- }, slots12);
2441
+ }, withCtxForSlots(slots12));
2439
2442
  }
2440
2443
  });
2441
2444
  function _isSlot3(s) {
@@ -2489,7 +2492,7 @@ var VRadio = defineComponent({
2489
2492
  "invalid": nodeControl.invalid,
2490
2493
  "disabled": nodeControl.isDisabled,
2491
2494
  "readonly": nodeControl.isReadonly
2492
- }, slots12);
2495
+ }, withCtxForSlots(slots12));
2493
2496
  }
2494
2497
  });
2495
2498
  function _isSlot4(s) {
@@ -2552,7 +2555,7 @@ var VSwitch = defineComponent({
2552
2555
  "invalid": nodeControl.invalid,
2553
2556
  "disabled": nodeControl.isDisabled,
2554
2557
  "readonly": nodeControl.isReadonly
2555
- }, slots12);
2558
+ }, withCtxForSlots(slots12));
2556
2559
  }
2557
2560
  });
2558
2561
  function _isSlot5(s) {
@@ -2927,8 +2930,8 @@ var VSelect = defineComponent({
2927
2930
  }
2928
2931
  }, {
2929
2932
  ...ctx.slots,
2930
- default: controlDefaultSlot,
2931
- endAdornment: endAdornmentSlot
2933
+ default: withCtx(controlDefaultSlot),
2934
+ endAdornment: withCtx(endAdornmentSlot)
2932
2935
  });
2933
2936
  const menuSlots = {
2934
2937
  activator: menuActivatorSlot,
@@ -2946,7 +2949,7 @@ var VSelect = defineComponent({
2946
2949
  "onUpdate:modelValue": ($event) => menuOpened.value = $event,
2947
2950
  "ref": menuRef,
2948
2951
  "onClose": clearKeyFocused
2949
- }, menuSlots);
2952
+ }, withCtxForSlots(menuSlots));
2950
2953
  return createVNode(VFormControl, {
2951
2954
  "nodeControl": inputControl,
2952
2955
  "class": classes.value,
@@ -2958,7 +2961,7 @@ var VSelect = defineComponent({
2958
2961
  "onClickLabel": handleClickLabel
2959
2962
  }, {
2960
2963
  ...ctx.slots,
2961
- default: defaultSlot
2964
+ default: withCtx(defaultSlot)
2962
2965
  });
2963
2966
  };
2964
2967
  }
@@ -3001,9 +3004,9 @@ var VTextField = defineComponent({
3001
3004
  "size": control.size.value
3002
3005
  }, {
3003
3006
  ...ctx.slots,
3004
- default: () => [inputControl.createInputElement({
3007
+ default: withCtx(() => [inputControl.createInputElement({
3005
3008
  class: "v-text-field__input__element"
3006
- }), inputControl.createDatalist()]
3009
+ }), inputControl.createDatalist()])
3007
3010
  });
3008
3011
  const infoAppendsSlot = () => {
3009
3012
  const {
@@ -3026,8 +3029,8 @@ var VTextField = defineComponent({
3026
3029
  "onClickLabel": handleClickLabel
3027
3030
  }, {
3028
3031
  ...ctx.slots,
3029
- default: defaultSlot,
3030
- infoAppends: infoAppendsSlot
3032
+ default: withCtx(defaultSlot),
3033
+ infoAppends: withCtx(infoAppendsSlot)
3031
3034
  });
3032
3035
  }
3033
3036
  });
@@ -3121,9 +3124,9 @@ var VTextarea = defineComponent({
3121
3124
  "endAdornment": props12.endAdornment
3122
3125
  }, {
3123
3126
  ...ctx.slots,
3124
- default: () => inputControl.createInputElement({
3127
+ default: withCtx(() => inputControl.createInputElement({
3125
3128
  class: "v-textarea__input__element"
3126
- })
3129
+ }))
3127
3130
  });
3128
3131
  const infoAppendsSlot = () => {
3129
3132
  const {
@@ -3145,8 +3148,8 @@ var VTextarea = defineComponent({
3145
3148
  }
3146
3149
  }, {
3147
3150
  ...ctx.slots,
3148
- default: defaultSlot,
3149
- infoAppends: infoAppendsSlot
3151
+ default: withCtx(defaultSlot),
3152
+ infoAppends: withCtx(infoAppendsSlot)
3150
3153
  });
3151
3154
  }
3152
3155
  });
@@ -4646,13 +4649,13 @@ var VuiService = class {
4646
4649
  stack.resolve(_state);
4647
4650
  }
4648
4651
  }, {
4649
- default: (_form) => {
4652
+ default: withCtx((_form) => {
4650
4653
  form = _form;
4651
4654
  return slot(_state, {
4652
4655
  form,
4653
4656
  stack
4654
4657
  });
4655
- }
4658
+ })
4656
4659
  }));
4657
4660
  }
4658
4661
  prompt(rawOptions = {}) {