edvoyui-component-library-test-flight 0.0.215 → 0.0.216

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.
@@ -33,6 +33,10 @@ declare const _default: import('../../../node_modules/vue').DefineComponent<impo
33
33
  type: BooleanConstructor;
34
34
  default: boolean;
35
35
  };
36
+ readonly: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
36
40
  }>, {}, {}, {}, {}, import('../../../node_modules/vue').ComponentOptionsMixin, import('../../../node_modules/vue').ComponentOptionsMixin, {
37
41
  "update:modelValue": (...args: any[]) => void;
38
42
  }, string, import('../../../node_modules/vue').PublicProps, Readonly<import('../../../node_modules/vue').ExtractPropTypes<{
@@ -65,6 +69,10 @@ declare const _default: import('../../../node_modules/vue').DefineComponent<impo
65
69
  type: BooleanConstructor;
66
70
  default: boolean;
67
71
  };
72
+ readonly: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
68
76
  }>> & Readonly<{
69
77
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
70
78
  }>, {
@@ -73,6 +81,7 @@ declare const _default: import('../../../node_modules/vue').DefineComponent<impo
73
81
  name: string;
74
82
  errors: Record<string, any>;
75
83
  modelValue: string;
84
+ readonly: boolean;
76
85
  options: RadioOption[];
77
86
  }, {}, {}, {}, string, import('../../../node_modules/vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
78
87
  export default _default;
@@ -11,13 +11,16 @@
11
11
  v-for="option in options"
12
12
  :key="option.value"
13
13
  class="inline-flex items-center gap-0 cursor-pointer"
14
- :class="{ 'opacity-50 cursor-not-allowed': disabled }"
14
+ :class="{
15
+ 'opacity-50 cursor-not-allowed': disabled,
16
+ 'cursor-not-allowed': readonly && !disabled,
17
+ }"
15
18
  >
16
19
  <input
17
20
  :value="option.value"
18
21
  type="radio"
19
22
  class="sr-only peer eui-radiogroup_input"
20
- :disabled="disabled"
23
+ :disabled="disabled || readonly"
21
24
  :checked="modelValue === option.value"
22
25
  @change="selectOption(option.value)"
23
26
  />
@@ -68,6 +71,10 @@ const props = defineProps({
68
71
  type: Boolean,
69
72
  default: false,
70
73
  },
74
+ readonly: {
75
+ type: Boolean,
76
+ default: false,
77
+ },
71
78
  });
72
79
 
73
80
  const { modelValue } = toRefs(props);