@nexdom/uimed-vue 2.0.0-beta.33 → 2.0.0-beta.34

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.
@@ -1,4 +1,4 @@
1
- import { t as ButtonProps } from "./types-DNT_odv7.js";
1
+ import { t as ButtonProps } from "./types-CjaJ2WAC.js";
2
2
  import { RouteLocationRaw } from "vue-router";
3
3
  //#region src/components/app-bar/types.d.ts
4
4
  /**
@@ -433,8 +433,8 @@ declare const __VLS_export$14: import("vue", { with: { "resolution-mode": "impor
433
433
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
434
434
  }>, {
435
435
  variant: TextFieldVariant;
436
- type: TextFieldType;
437
436
  clearable: boolean;
437
+ type: TextFieldType;
438
438
  }, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
439
439
  //#endregion
440
440
  //#region src/components/inputs/checkbox/types.d.ts
@@ -961,7 +961,8 @@ interface SectionAction extends ButtonProps {
961
961
  */
962
962
  label: string;
963
963
  /**
964
- * Called when the action button is clicked.
964
+ * Called when the action button is clicked. Not called while the action is `disabled` or
965
+ * `loading`.
965
966
  */
966
967
  onClick?: (event: MouseEvent) => void;
967
968
  }
@@ -1406,7 +1407,8 @@ interface DialogButtonAction extends ButtonProps {
1406
1407
  */
1407
1408
  label: string;
1408
1409
  /**
1409
- * Called when the action button is clicked. The dialog stays open.
1410
+ * Called when the action button is clicked. Not called while the action is `disabled` or
1411
+ * `loading`. The dialog stays open.
1410
1412
  */
1411
1413
  onClick?: (event: MouseEvent) => void;
1412
1414
  }
@@ -822,12 +822,13 @@ var button_default = /* @__PURE__ */ defineComponent({
822
822
  const type = useButtonType(() => props.type);
823
823
  const form = useButtonForm(() => props.form);
824
824
  const widthClass = useFullWidth(() => props.fullWidth);
825
+ const isDisabled = computed(() => props.disabled || props.loading);
825
826
  function onClick(event) {
826
827
  emit("click", event);
827
828
  }
828
829
  return (_ctx, _cache) => {
829
830
  return openBlock(), createBlock(unref(VBtn), {
830
- disabled: props.disabled,
831
+ disabled: isDisabled.value,
831
832
  loading: props.loading,
832
833
  "data-testid": props.dataTestid,
833
834
  variant: unref(variant),
@@ -1084,7 +1085,6 @@ var dialog_host_default = /* @__PURE__ */ defineComponent({
1084
1085
  show();
1085
1086
  }
1086
1087
  async function select(current, action) {
1087
- if (isRunning.value) return;
1088
1088
  requests.value.shift();
1089
1089
  selected.value = action;
1090
1090
  await current.select(action?.value);
@@ -1,4 +1,4 @@
1
- import { i as FeedbackColorVariant, n as ButtonVariant, r as ColorVariant } from "./types-DNT_odv7.js";
1
+ import { i as FeedbackColorVariant, n as ButtonVariant, r as ColorVariant } from "./types-CjaJ2WAC.js";
2
2
  import { ComputedRef, MaybeRefOrGetter } from "vue";
3
3
  //#region src/composables/dialogs/types.d.ts
4
4
  interface ToastOptions {
@@ -32,8 +32,11 @@ type ButtonProps = {
32
32
  */
33
33
  disabled?: boolean;
34
34
  /**
35
- * Displays a loading indicator on the button, disabling interaction.
36
- * The button keeps its text as accessible name and is marked as busy, and
35
+ * Displays a loading indicator on the button and disables it while active, as `disabled` does:
36
+ * it can't be clicked or focused, `click` isn't emitted and its form isn't submitted, including
37
+ * by pressing `Enter` in one of the form's fields when it's the form's first submit button. It
38
+ * looks disabled, with the indicator, and loses focus if focused when loading starts, as any
39
+ * disabled button does. The button keeps its text as accessible name and is marked as busy, and
37
40
  * assistive technologies ignore the indicator.
38
41
  * @default false
39
42
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexdom/uimed-vue",
3
- "version": "2.0.0-beta.33",
3
+ "version": "2.0.0-beta.34",
4
4
  "description": "A ui framework for NEXDOM applications.",
5
5
  "keywords": [
6
6
  "lib",