@fastkit/vui 0.18.10 → 0.18.12

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
@@ -464,14 +464,14 @@ var VFormControl = defineComponent({
464
464
  "v-form-control--focused": control.focused,
465
465
  "v-form-control--dirty": control.dirty,
466
466
  "v-form-control--pristine": control.pristine,
467
- "v-form-control--disabled": control.disabled,
468
- "v-form-control--readonly": control.readonly,
467
+ "v-form-control--disabled": control.isDisabled,
468
+ "v-form-control--readonly": control.isReadonly,
469
469
  "v-form-control--touched": control.touched,
470
470
  "v-form-control--untouched": control.untouched,
471
471
  "v-form-control--invalid": control.invalid,
472
472
  "v-form-control--valid": control.valid
473
- }, colorProvider.className(props12.error ? "error" : control.invalid && !control.readonly ? "error" : "primary")]);
474
- const getRequiredChip = createRequiredChipRenderer(() => control.required, props12, vui);
473
+ }, colorProvider.className(props12.error ? "error" : control.invalid && !control.isReadonly ? "error" : "primary")]);
474
+ const getRequiredChip = createRequiredChipRenderer(() => control.isRequired, props12, vui);
475
475
  const handleClick = (ev) => ctx.emit("clickLabel", ev, control);
476
476
  return () => {
477
477
  const label = control.renderLabel();
@@ -605,7 +605,6 @@ function defineFormSelectorComponent(opts) {
605
605
  return () => {
606
606
  return createVNode(VFormControl, {
607
607
  "nodeControl": selectorControl,
608
- "focused": selectorControl.focused,
609
608
  "hiddenInfo": props13.hiddenInfo,
610
609
  "class": classes.value,
611
610
  "label": props13.label,
@@ -2341,12 +2340,12 @@ var VControlField = defineComponent({
2341
2340
  return classes2;
2342
2341
  });
2343
2342
  const resolvedSlots = computed(() => {
2344
- const slots13 = {};
2343
+ const slots12 = {};
2345
2344
  ADORNMENT_POSITIONS.forEach((position) => {
2346
2345
  const key = `${position}Adornment`;
2347
- slots13[position] = resolveVNodeChildOrSlots(props12[key], ctx.slots[key]);
2346
+ slots12[position] = resolveVNodeChildOrSlots(props12[key], ctx.slots[key]);
2348
2347
  });
2349
- return slots13;
2348
+ return slots12;
2350
2349
  });
2351
2350
  const renderAdornment = (position) => {
2352
2351
  let child;
@@ -2394,7 +2393,7 @@ var VTextCounter = defineComponent({
2394
2393
  }, [`${this.length} / ${this.maxlength}`]);
2395
2394
  }
2396
2395
  });
2397
- var slots6 = defineSlots();
2396
+ var CHECKABLE_SLOTS = defineSlots();
2398
2397
  var VCheckable = defineComponent({
2399
2398
  name: "VCheckable",
2400
2399
  props: {
@@ -2402,10 +2401,10 @@ var VCheckable = defineComponent({
2402
2401
  disabled: Boolean,
2403
2402
  readonly: Boolean,
2404
2403
  checked: Boolean,
2405
- ...slots6()
2404
+ ...CHECKABLE_SLOTS()
2406
2405
  // autoWidth: Boolean,
2407
2406
  },
2408
- slots: slots6,
2407
+ slots: CHECKABLE_SLOTS,
2409
2408
  setup(props12, ctx) {
2410
2409
  const colorProvider = useVuiColorProvider();
2411
2410
  const invalid = computed(() => props12.invalid);
@@ -2466,7 +2465,7 @@ var VCheckbox = defineComponent({
2466
2465
  ctx.expose({
2467
2466
  control: api
2468
2467
  });
2469
- const slots13 = {
2468
+ const slots12 = {
2470
2469
  input: () => nodeControl.createInputElement({
2471
2470
  type: "checkbox"
2472
2471
  }),
@@ -2482,7 +2481,7 @@ var VCheckbox = defineComponent({
2482
2481
  "invalid": nodeControl.invalid,
2483
2482
  "disabled": nodeControl.isDisabled,
2484
2483
  "readonly": nodeControl.isReadonly
2485
- }, slots13);
2484
+ }, slots12);
2486
2485
  };
2487
2486
  }
2488
2487
  });
@@ -2496,9 +2495,9 @@ var VCheckboxGroup = defineFormSelectorComponent({
2496
2495
  className: "v-checkbox-group",
2497
2496
  itemRenderer: ({
2498
2497
  attrs,
2499
- slots: slots13
2500
- }) => createVNode(VCheckbox, attrs, _isSlot3(slots13) ? slots13 : {
2501
- default: () => [slots13]
2498
+ slots: slots12
2499
+ }) => createVNode(VCheckbox, attrs, _isSlot3(slots12) ? slots12 : {
2500
+ default: () => [slots12]
2502
2501
  })
2503
2502
  });
2504
2503
  var {
@@ -2521,7 +2520,7 @@ var VRadio = defineComponent({
2521
2520
  const classes = computed(() => ["v-radio", {
2522
2521
  "v-radio--selected": nodeControl.selected
2523
2522
  }, control.classes.value]);
2524
- const slots13 = {
2523
+ const slots12 = {
2525
2524
  input: () => nodeControl.createInputElement({
2526
2525
  type: "radio"
2527
2526
  }),
@@ -2537,7 +2536,7 @@ var VRadio = defineComponent({
2537
2536
  "invalid": nodeControl.invalid,
2538
2537
  "disabled": nodeControl.isDisabled,
2539
2538
  "readonly": nodeControl.isReadonly
2540
- }, slots13);
2539
+ }, slots12);
2541
2540
  };
2542
2541
  }
2543
2542
  });
@@ -2550,9 +2549,9 @@ var VRadioGroup = defineFormSelectorComponent({
2550
2549
  className: "v-radio-group",
2551
2550
  itemRenderer: ({
2552
2551
  attrs,
2553
- slots: slots13
2554
- }) => createVNode(VRadio, attrs, _isSlot4(slots13) ? slots13 : {
2555
- default: () => [slots13]
2552
+ slots: slots12
2553
+ }) => createVNode(VRadio, attrs, _isSlot4(slots12) ? slots12 : {
2554
+ default: () => [slots12]
2556
2555
  })
2557
2556
  });
2558
2557
  var {
@@ -2580,7 +2579,7 @@ var VSwitch = defineComponent({
2580
2579
  "v-switch--selected": nodeControl.selected,
2581
2580
  "v-switch--disabled": nodeControl.isDisabled
2582
2581
  }, control.classes.value]);
2583
- const slots13 = {
2582
+ const slots12 = {
2584
2583
  input: () => nodeControl.createInputElement({
2585
2584
  type: "checkbox"
2586
2585
  }),
@@ -2601,7 +2600,7 @@ var VSwitch = defineComponent({
2601
2600
  "invalid": nodeControl.invalid,
2602
2601
  "disabled": nodeControl.isDisabled,
2603
2602
  "readonly": nodeControl.isReadonly
2604
- }, slots13);
2603
+ }, slots12);
2605
2604
  };
2606
2605
  }
2607
2606
  });
@@ -2615,9 +2614,9 @@ var VSwitchGroup = defineFormSelectorComponent({
2615
2614
  className: "v-switch-group",
2616
2615
  itemRenderer: ({
2617
2616
  attrs,
2618
- slots: slots13
2619
- }) => createVNode(VSwitch, attrs, _isSlot5(slots13) ? slots13 : {
2620
- default: () => [slots13]
2617
+ slots: slots12
2618
+ }) => createVNode(VSwitch, attrs, _isSlot5(slots12) ? slots12 : {
2619
+ default: () => [slots12]
2621
2620
  })
2622
2621
  });
2623
2622
  var {
@@ -2657,16 +2656,16 @@ var VOption = defineComponent({
2657
2656
  };
2658
2657
  }
2659
2658
  });
2660
- var slots7 = defineSlots();
2659
+ var slots6 = defineSlots();
2661
2660
  var VOptionGroup = defineComponent({
2662
2661
  name: "VOptionGroup",
2663
2662
  props: {
2664
2663
  ...createFormSelectorItemGroupProps(),
2665
2664
  // eslint-disable-next-line vue/require-prop-types
2666
2665
  label: {},
2667
- ...slots7()
2666
+ ...slots6()
2668
2667
  },
2669
- slots: slots7,
2668
+ slots: slots6,
2670
2669
  setup(props12, ctx) {
2671
2670
  const groupControl = useFormSelectorItemGroupControl(props12, ctx, {
2672
2671
  parentNodeType: VUI_SELECT_SYMBOL
@@ -2704,7 +2703,7 @@ var {
2704
2703
  } = createFormSelectorSettings({
2705
2704
  defaultValidateTiming: "blur"
2706
2705
  });
2707
- var slots8 = defineSlots();
2706
+ var slots7 = defineSlots();
2708
2707
  var VSelect = defineComponent({
2709
2708
  name: "VSelect",
2710
2709
  props: {
@@ -2713,7 +2712,7 @@ var VSelect = defineComponent({
2713
2712
  ...createControlFieldProps(),
2714
2713
  ...createControlFieldProviderProps(),
2715
2714
  ...createControlProps(),
2716
- ...slots8(),
2715
+ ...slots7(),
2717
2716
  ...createPropsOptions({
2718
2717
  placeholder: String,
2719
2718
  loadingMessage: {},
@@ -2721,7 +2720,7 @@ var VSelect = defineComponent({
2721
2720
  }),
2722
2721
  closeOnNavigation: Boolean
2723
2722
  },
2724
- slots: slots8,
2723
+ slots: slots7,
2725
2724
  emits: emits7,
2726
2725
  setup(props12, ctx) {
2727
2726
  const menuRef = ref(null);
@@ -3044,7 +3043,7 @@ var {
3044
3043
  props: props8,
3045
3044
  emits: emits8
3046
3045
  } = createTextInputNodeSettings();
3047
- var slots9 = defineSlots();
3046
+ var slots8 = defineSlots();
3048
3047
  function createTextFieldProps() {
3049
3048
  return {
3050
3049
  ...props8,
@@ -3052,14 +3051,14 @@ function createTextFieldProps() {
3052
3051
  ...createControlFieldProps(),
3053
3052
  ...createControlFieldProviderProps(),
3054
3053
  ...createControlProps(),
3055
- ...slots9()
3054
+ ...slots8()
3056
3055
  };
3057
3056
  }
3058
3057
  var VTextField = defineComponent({
3059
3058
  name: "VTextField",
3060
3059
  props: createTextFieldProps(),
3061
3060
  emits: emits8,
3062
- slots: slots9,
3061
+ slots: slots8,
3063
3062
  setup(props12, ctx) {
3064
3063
  const inputControl = useTextInputNodeControl(props12, ctx, {
3065
3064
  nodeType: VUI_TEXT_FIELD_SYMBOL
@@ -3097,7 +3096,6 @@ var VTextField = defineComponent({
3097
3096
  return () => {
3098
3097
  return createVNode(VFormControl, {
3099
3098
  "nodeControl": inputControl,
3100
- "focused": inputControl.focused,
3101
3099
  "hiddenInfo": props12.hiddenInfo,
3102
3100
  "class": classes.value,
3103
3101
  "label": props12.label,
@@ -3178,7 +3176,7 @@ var {
3178
3176
  props: props9,
3179
3177
  emits: emits9
3180
3178
  } = createTextareaNodeSettings();
3181
- var slots10 = defineSlots();
3179
+ var slots9 = defineSlots();
3182
3180
  var VTextarea = defineComponent({
3183
3181
  name: "VTextarea",
3184
3182
  props: {
@@ -3187,7 +3185,7 @@ var VTextarea = defineComponent({
3187
3185
  ...createControlFieldProps(),
3188
3186
  ...createControlFieldProviderProps(),
3189
3187
  ...createControlProps(),
3190
- ...slots10()
3188
+ ...slots9()
3191
3189
  },
3192
3190
  emits: emits9,
3193
3191
  setup(props12, ctx) {
@@ -3226,7 +3224,6 @@ var VTextarea = defineComponent({
3226
3224
  return () => {
3227
3225
  return createVNode(VFormControl, {
3228
3226
  "nodeControl": inputControl,
3229
- "focused": inputControl.focused,
3230
3227
  "class": ["v-textarea", control.classes.value],
3231
3228
  "label": props12.label,
3232
3229
  "hint": props12.hint,
@@ -3310,13 +3307,9 @@ var VForm = defineComponent({
3310
3307
  ctx.expose({
3311
3308
  control: nodeControl
3312
3309
  });
3313
- return () => createVNode("form", {
3314
- "ref": nodeControl.formRef(),
3315
- "class": classes.value,
3316
- "action": nodeControl.nativeAction,
3317
- "spellcheck": nodeControl.spellcheck,
3318
- "onSubmit": nodeControl.handleSubmit
3319
- }, [ctx.slots.default?.(nodeControl)]);
3310
+ return () => createVNode("form", mergeProps({
3311
+ "class": classes.value
3312
+ }, nodeControl.formAttrs), [ctx.slots.default?.(nodeControl)]);
3320
3313
  }
3321
3314
  });
3322
3315
  function _isSlot7(s) {
@@ -3383,7 +3376,7 @@ var VTab = defineComponent({
3383
3376
  function _isSlot8(s) {
3384
3377
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
3385
3378
  }
3386
- var slots11 = defineSlots();
3379
+ var slots10 = defineSlots();
3387
3380
  var VTabs = defineComponent({
3388
3381
  name: "VTabs",
3389
3382
  props: {
@@ -3413,13 +3406,13 @@ var VTabs = defineComponent({
3413
3406
  withQuery: Boolean,
3414
3407
  color: String,
3415
3408
  onBeforeChange: Function,
3416
- ...slots11()
3409
+ ...slots10()
3417
3410
  },
3418
3411
  emits: {
3419
3412
  "update:modelValue": (newValue) => true,
3420
3413
  change: (newValue) => true
3421
3414
  },
3422
- slots: slots11,
3415
+ slots: slots10,
3423
3416
  setup(props12, ctx) {
3424
3417
  const vui = useVui();
3425
3418
  const internalValueRef = ref(null);
@@ -4595,7 +4588,7 @@ var VToolbarEdge = defineComponent({
4595
4588
  };
4596
4589
  }
4597
4590
  });
4598
- var slots12 = defineSlots();
4591
+ var slots11 = defineSlots();
4599
4592
  var VToolbarTitle = defineComponent({
4600
4593
  name: "VToolbarTitle",
4601
4594
  props: {
@@ -4603,9 +4596,9 @@ var VToolbarTitle = defineComponent({
4603
4596
  type: String,
4604
4597
  default: "span"
4605
4598
  },
4606
- ...slots12()
4599
+ ...slots11()
4607
4600
  },
4608
- slots: slots12,
4601
+ slots: slots11,
4609
4602
  setup(props12, ctx) {
4610
4603
  const _TagName = computed(() => props12.tag);
4611
4604
  return () => {