@onereach/ui-components 4.1.2 → 4.1.3-beta.2558.0

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.
Files changed (150) hide show
  1. package/dist/bundled/v2/components/OrCheckboxGroupV3/OrCheckboxGroup.js +140 -0
  2. package/dist/bundled/v2/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +115 -0
  3. package/dist/bundled/v2/components/OrCheckboxGroupV3/index.d.ts +1 -0
  4. package/dist/bundled/v2/components/OrCheckboxGroupV3/index.js +25 -0
  5. package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +203 -0
  6. package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +76 -0
  7. package/dist/bundled/v2/components/OrCheckboxTreeV3/index.d.ts +1 -0
  8. package/dist/bundled/v2/components/OrCheckboxTreeV3/index.js +17 -0
  9. package/dist/bundled/v2/components/OrCheckboxTreeV3/styles.d.ts +2 -0
  10. package/dist/bundled/v2/components/OrCheckboxTreeV3/styles.js +10 -0
  11. package/dist/bundled/v2/components/OrCheckboxTreeV3/types.d.ts +7 -0
  12. package/dist/bundled/v2/components/OrCheckboxTreeV3/types.js +1 -0
  13. package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.js +34 -39
  14. package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.vue.d.ts +18 -16
  15. package/dist/bundled/v2/components/OrCheckboxV3/index.js +1 -0
  16. package/dist/bundled/v2/components/OrFormGroupV3/OrFormGroup.js +123 -0
  17. package/dist/bundled/v2/components/OrFormGroupV3/OrFormGroup.vue.d.ts +85 -0
  18. package/dist/bundled/v2/components/OrFormGroupV3/index.d.ts +2 -0
  19. package/dist/bundled/v2/components/OrFormGroupV3/index.js +12 -0
  20. package/dist/bundled/v2/components/OrFormGroupV3/props.d.ts +4 -0
  21. package/dist/bundled/v2/components/OrFormGroupV3/props.js +7 -0
  22. package/dist/bundled/v2/components/OrFormGroupV3/styles.d.ts +6 -0
  23. package/dist/bundled/v2/components/OrFormGroupV3/styles.js +20 -0
  24. package/dist/bundled/v2/components/OrRadioGroupV3/OrRadioGroup.js +132 -0
  25. package/dist/bundled/v2/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +110 -0
  26. package/dist/bundled/v2/components/OrRadioGroupV3/index.d.ts +1 -0
  27. package/dist/bundled/v2/components/OrRadioGroupV3/index.js +19 -0
  28. package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +1 -1
  29. package/dist/bundled/v2/components/OrSelectV3/index.js +1 -1
  30. package/dist/bundled/v2/index.d.ts +1 -0
  31. package/dist/bundled/v2/index.js +4 -3
  32. package/dist/bundled/v2/utils/functions/flattenDeep.d.ts +2 -0
  33. package/dist/bundled/v2/utils/functions/flattenDeep.js +5 -0
  34. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-60cefcbd.js → OrCheckbox.vue_vue_type_script_lang-51a4f8d3.js} +26 -10
  35. package/dist/bundled/v3/OrCheckboxTree.vue_vue_type_script_lang-ffa313a0.js +102 -0
  36. package/dist/bundled/v3/OrFormGroup.vue_vue_type_script_lang-360b258b.js +60 -0
  37. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-f7601423.js → OrSelect.vue_vue_type_script_lang-c0612348.js} +1 -1
  38. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +112 -0
  39. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +115 -0
  40. package/dist/bundled/v3/components/OrCheckboxGroupV3/index.d.ts +1 -0
  41. package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +32 -0
  42. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +74 -0
  43. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +76 -0
  44. package/dist/bundled/v3/components/OrCheckboxTreeV3/index.d.ts +1 -0
  45. package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +20 -0
  46. package/dist/bundled/v3/components/OrCheckboxTreeV3/styles.d.ts +2 -0
  47. package/dist/bundled/v3/components/OrCheckboxTreeV3/styles.js +10 -0
  48. package/dist/bundled/v3/components/OrCheckboxTreeV3/types.d.ts +7 -0
  49. package/dist/bundled/v3/components/OrCheckboxTreeV3/types.js +1 -0
  50. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +9 -7
  51. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +18 -16
  52. package/dist/bundled/v3/components/OrCheckboxV3/index.js +2 -1
  53. package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.js +58 -0
  54. package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +85 -0
  55. package/dist/bundled/v3/components/OrFormGroupV3/index.d.ts +2 -0
  56. package/dist/bundled/v3/components/OrFormGroupV3/index.js +15 -0
  57. package/dist/bundled/v3/components/OrFormGroupV3/props.d.ts +4 -0
  58. package/dist/bundled/v3/components/OrFormGroupV3/props.js +7 -0
  59. package/dist/bundled/v3/components/OrFormGroupV3/styles.d.ts +6 -0
  60. package/dist/bundled/v3/components/OrFormGroupV3/styles.js +20 -0
  61. package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +104 -0
  62. package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +110 -0
  63. package/dist/bundled/v3/components/OrRadioGroupV3/index.d.ts +1 -0
  64. package/dist/bundled/v3/components/OrRadioGroupV3/index.js +24 -0
  65. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +4 -4
  66. package/dist/bundled/v3/components/OrSelectV3/index.js +3 -3
  67. package/dist/bundled/v3/components/index.js +2 -2
  68. package/dist/bundled/v3/index.d.ts +1 -0
  69. package/dist/bundled/v3/index.js +7 -7
  70. package/dist/bundled/v3/utils/functions/flattenDeep.d.ts +2 -0
  71. package/dist/bundled/v3/utils/functions/flattenDeep.js +5 -0
  72. package/dist/esm/v2/{OrCheckbox-dc587ec9.js → OrCheckbox-e55228e5.js} +34 -40
  73. package/dist/esm/v2/OrCheckboxTree-00fd6cf9.js +202 -0
  74. package/dist/esm/v2/OrFormGroup-7a883bce.js +140 -0
  75. package/dist/esm/v2/{OrSelect-40183874.js → OrSelect-4031334e.js} +1 -1
  76. package/dist/esm/v2/components/index.js +2 -2
  77. package/dist/esm/v2/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +115 -0
  78. package/dist/esm/v2/components/or-checkbox-group-v3/index.d.ts +1 -0
  79. package/dist/esm/v2/components/or-checkbox-group-v3/index.js +129 -0
  80. package/dist/esm/v2/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +76 -0
  81. package/dist/esm/v2/components/or-checkbox-tree-v3/index.d.ts +1 -0
  82. package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +10 -0
  83. package/dist/esm/v2/components/or-checkbox-tree-v3/styles.d.ts +2 -0
  84. package/dist/esm/v2/components/or-checkbox-tree-v3/types.d.ts +7 -0
  85. package/dist/esm/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -16
  86. package/dist/esm/v2/components/or-checkbox-v3/index.js +2 -2
  87. package/dist/esm/v2/components/or-form-group-v3/OrFormGroup.vue.d.ts +85 -0
  88. package/dist/esm/v2/components/or-form-group-v3/index.d.ts +2 -0
  89. package/dist/esm/v2/components/or-form-group-v3/index.js +6 -0
  90. package/dist/esm/v2/components/or-form-group-v3/props.d.ts +4 -0
  91. package/dist/esm/v2/components/or-form-group-v3/styles.d.ts +6 -0
  92. package/dist/esm/v2/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +110 -0
  93. package/dist/esm/v2/components/or-radio-group-v3/index.d.ts +1 -0
  94. package/dist/esm/v2/components/or-radio-group-v3/index.js +124 -0
  95. package/dist/esm/v2/components/or-select-v3/index.js +2 -2
  96. package/dist/esm/v2/flattenDeep-e7a8b995.js +5 -0
  97. package/dist/esm/v2/index.d.ts +1 -0
  98. package/dist/esm/v2/index.js +3 -2
  99. package/dist/esm/v2/utils/functions/flattenDeep.d.ts +2 -0
  100. package/dist/esm/v3/{OrCheckbox-56f849f7.js → OrCheckbox-eab735d0.js} +32 -16
  101. package/dist/esm/v3/OrCheckboxTree-8ead5a31.js +162 -0
  102. package/dist/esm/v3/OrFormGroup-d9255559.js +121 -0
  103. package/dist/esm/v3/{OrSelect-5502d82d.js → OrSelect-ebdab996.js} +1 -1
  104. package/dist/esm/v3/components/index.js +2 -2
  105. package/dist/esm/v3/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +115 -0
  106. package/dist/esm/v3/components/or-checkbox-group-v3/index.d.ts +1 -0
  107. package/dist/esm/v3/components/or-checkbox-group-v3/index.js +94 -0
  108. package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +76 -0
  109. package/dist/esm/v3/components/or-checkbox-tree-v3/index.d.ts +1 -0
  110. package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +10 -0
  111. package/dist/esm/v3/components/or-checkbox-tree-v3/styles.d.ts +2 -0
  112. package/dist/esm/v3/components/or-checkbox-tree-v3/types.d.ts +7 -0
  113. package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -16
  114. package/dist/esm/v3/components/or-checkbox-v3/index.js +2 -2
  115. package/dist/esm/v3/components/or-form-group-v3/OrFormGroup.vue.d.ts +85 -0
  116. package/dist/esm/v3/components/or-form-group-v3/index.d.ts +2 -0
  117. package/dist/esm/v3/components/or-form-group-v3/index.js +6 -0
  118. package/dist/esm/v3/components/or-form-group-v3/props.d.ts +4 -0
  119. package/dist/esm/v3/components/or-form-group-v3/styles.d.ts +6 -0
  120. package/dist/esm/v3/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +110 -0
  121. package/dist/esm/v3/components/or-radio-group-v3/index.d.ts +1 -0
  122. package/dist/esm/v3/components/or-radio-group-v3/index.js +91 -0
  123. package/dist/esm/v3/components/or-select-v3/index.js +2 -2
  124. package/dist/esm/v3/flattenDeep-e7a8b995.js +5 -0
  125. package/dist/esm/v3/index.d.ts +1 -0
  126. package/dist/esm/v3/index.js +3 -2
  127. package/dist/esm/v3/utils/functions/flattenDeep.d.ts +2 -0
  128. package/package.json +2 -3
  129. package/src/components/or-checkbox-group-v3/OrCheckboxGroup.docs.mdx +7 -0
  130. package/src/components/or-checkbox-group-v3/OrCheckboxGroup.stories3.ts +263 -0
  131. package/src/components/or-checkbox-group-v3/OrCheckboxGroup.vue +82 -0
  132. package/src/components/or-checkbox-group-v3/index.ts +1 -0
  133. package/src/components/or-checkbox-tree-v3/OrCheckboxTree.docs.mdx +7 -0
  134. package/src/components/or-checkbox-tree-v3/OrCheckboxTree.stories3.ts +112 -0
  135. package/src/components/or-checkbox-tree-v3/OrCheckboxTree.vue +168 -0
  136. package/src/components/or-checkbox-tree-v3/index.ts +1 -0
  137. package/src/components/or-checkbox-tree-v3/styles.ts +15 -0
  138. package/src/components/or-checkbox-tree-v3/types.ts +7 -0
  139. package/src/components/or-checkbox-v3/OrCheckbox.vue +30 -12
  140. package/src/components/or-form-group-v3/OrFormGroup.stories3.ts +114 -0
  141. package/src/components/or-form-group-v3/OrFormGroup.vue +114 -0
  142. package/src/components/or-form-group-v3/index.ts +2 -0
  143. package/src/components/or-form-group-v3/props.ts +4 -0
  144. package/src/components/or-form-group-v3/styles.ts +36 -0
  145. package/src/components/or-radio-group-v3/OrRadioGroup.stories3.ts +81 -0
  146. package/src/components/or-radio-group-v3/OrRadioGroup.vue +80 -0
  147. package/src/components/or-radio-group-v3/index.ts +1 -0
  148. package/src/components/or-radio-v3/OrRadio.stories3.ts +1 -1
  149. package/src/index.ts +1 -0
  150. package/src/utils/functions/flattenDeep.ts +5 -0
@@ -0,0 +1,129 @@
1
+ import { defineComponent } from 'vue-demi';
2
+ import { useVModel } from '@vueuse/core';
3
+ import { _ as __vue_component__$2, F as FormGroupDirection } from '../../OrFormGroup-7a883bce.js';
4
+ import { _ as __vue_component__$1 } from '../../OrCheckboxTree-00fd6cf9.js';
5
+ import { s as styleInject } from '../../style-inject.es-4c6f2515.js';
6
+ import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
7
+ import '../../OrLabel-63380256.js';
8
+ import '../../OrError-4ffc1c39.js';
9
+ import '../../OrHint-aa221198.js';
10
+ import '../../OrCheckbox-e55228e5.js';
11
+ import '../../useIdAttribute-859439f0.js';
12
+ import '../../OrIcon-d35a84d8.js';
13
+ import '../../flattenDeep-e7a8b995.js';
14
+
15
+ var script = defineComponent({
16
+ name: 'OrCheckboxGroup',
17
+ components: {
18
+ OrCheckboxTree: __vue_component__$1,
19
+ OrFormGroup: __vue_component__$2
20
+ },
21
+ model: {
22
+ prop: 'modelValue',
23
+ event: 'update:modelValue'
24
+ },
25
+ props: {
26
+ modelValue: {
27
+ type: Array,
28
+ default: () => []
29
+ },
30
+ label: {
31
+ type: String,
32
+ default: ''
33
+ },
34
+ error: {
35
+ type: String,
36
+ default: ''
37
+ },
38
+ hint: {
39
+ type: String,
40
+ default: ''
41
+ },
42
+ direction: {
43
+ type: String,
44
+ default: FormGroupDirection.Vertical
45
+ },
46
+ options: {
47
+ type: Array,
48
+ default: () => []
49
+ },
50
+ disabled: {
51
+ type: Boolean,
52
+ default: false
53
+ }
54
+ },
55
+ setup(props, {
56
+ emit
57
+ }) {
58
+ const proxyModelValue = useVModel(props, 'modelValue', emit);
59
+ return {
60
+ proxyModelValue
61
+ };
62
+ }
63
+ });
64
+
65
+ var css_248z = "";
66
+ styleInject(css_248z);
67
+
68
+ /* script */
69
+ const __vue_script__ = script;
70
+ /* template */
71
+ var __vue_render__ = function () {
72
+ var _vm = this;
73
+ var _h = _vm.$createElement;
74
+ var _c = _vm._self._c || _h;
75
+ return _c('OrFormGroup', {
76
+ attrs: {
77
+ "label": _vm.label,
78
+ "error": _vm.error,
79
+ "hint": _vm.hint,
80
+ "disabled": _vm.disabled,
81
+ "direction": _vm.direction
82
+ },
83
+ scopedSlots: _vm._u([{
84
+ key: "addon",
85
+ fn: function () {
86
+ return [_vm._t("addon")];
87
+ },
88
+ proxy: true
89
+ }], null, true)
90
+ }, [_vm._v(" "), _vm._l(_vm.options, function (option) {
91
+ return _c('OrCheckboxTree', {
92
+ key: option.value,
93
+ attrs: {
94
+ "item": option,
95
+ "disabled": _vm.disabled || option.disabled,
96
+ "collapsible": option.collapsible
97
+ },
98
+ model: {
99
+ value: _vm.proxyModelValue,
100
+ callback: function ($$v) {
101
+ _vm.proxyModelValue = $$v;
102
+ },
103
+ expression: "proxyModelValue"
104
+ }
105
+ });
106
+ })], 2);
107
+ };
108
+ var __vue_staticRenderFns__ = [];
109
+
110
+ /* style */
111
+ const __vue_inject_styles__ = undefined;
112
+ /* scoped */
113
+ const __vue_scope_id__ = "data-v-3e45cf11";
114
+ /* module identifier */
115
+ const __vue_module_identifier__ = undefined;
116
+ /* functional template */
117
+ const __vue_is_functional_template__ = false;
118
+ /* style inject */
119
+
120
+ /* style inject SSR */
121
+
122
+ /* style inject shadow dom */
123
+
124
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
125
+ render: __vue_render__,
126
+ staticRenderFns: __vue_staticRenderFns__
127
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
128
+
129
+ export { __vue_component__ as OrCheckboxGroupV3 };
@@ -0,0 +1,76 @@
1
+ import { PropType } from 'vue-demi';
2
+ import { CheckboxNode } from './types';
3
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
+ rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
5
+ parentStyles: import("@vue/composition-api").ComputedRef<string[]>;
6
+ hasChildren: import("@vue/composition-api").ComputedRef<boolean | undefined>;
7
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<string[]> | import("@vue/composition-api").Ref<string[]>;
8
+ isOpen: import("@vue/composition-api").Ref<boolean>;
9
+ setIsOpen: (value?: boolean | undefined) => boolean;
10
+ isIntermediate: import("@vue/composition-api").ComputedRef<boolean>;
11
+ isAllChildrenSelected: import("@vue/composition-api").ComputedRef<boolean>;
12
+ isAnyChildrenSelected: import("@vue/composition-api").ComputedRef<boolean>;
13
+ childrenValues: import("@vue/composition-api").ComputedRef<any[]>;
14
+ handleParentClick: () => void;
15
+ }> & import("@vue/composition-api").Data, {}, {}, {
16
+ modelValue: {
17
+ type: PropType<string[]>;
18
+ default: () => never[];
19
+ };
20
+ item: {
21
+ type: PropType<CheckboxNode>;
22
+ required: true;
23
+ };
24
+ collapsible: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ disabled: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ }, import("@vue/composition-api").ExtractPropTypes<{
33
+ modelValue: {
34
+ type: PropType<string[]>;
35
+ default: () => never[];
36
+ };
37
+ item: {
38
+ type: PropType<CheckboxNode>;
39
+ required: true;
40
+ };
41
+ collapsible: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ disabled: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
50
+ modelValue: string[];
51
+ item: CheckboxNode;
52
+ collapsible: boolean;
53
+ disabled: boolean;
54
+ } & {}, import("@vue/composition-api").ShallowUnwrapRef<{
55
+ rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
56
+ parentStyles: import("@vue/composition-api").ComputedRef<string[]>;
57
+ hasChildren: import("@vue/composition-api").ComputedRef<boolean | undefined>;
58
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<string[]> | import("@vue/composition-api").Ref<string[]>;
59
+ isOpen: import("@vue/composition-api").Ref<boolean>;
60
+ setIsOpen: (value?: boolean | undefined) => boolean;
61
+ isIntermediate: import("@vue/composition-api").ComputedRef<boolean>;
62
+ isAllChildrenSelected: import("@vue/composition-api").ComputedRef<boolean>;
63
+ isAnyChildrenSelected: import("@vue/composition-api").ComputedRef<boolean>;
64
+ childrenValues: import("@vue/composition-api").ComputedRef<any[]>;
65
+ handleParentClick: () => void;
66
+ }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
67
+ modelValue: string[];
68
+ item: CheckboxNode;
69
+ collapsible: boolean;
70
+ disabled: boolean;
71
+ } & {}, {
72
+ modelValue: string[];
73
+ collapsible: boolean;
74
+ disabled: boolean;
75
+ }, true>);
76
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as OrCheckboxTreeV3 } from './OrCheckboxTree.vue';
@@ -0,0 +1,10 @@
1
+ export { _ as OrCheckboxTreeV3 } from '../../OrCheckboxTree-00fd6cf9.js';
2
+ import 'vue-demi';
3
+ import '@vueuse/core';
4
+ import '../../OrCheckbox-e55228e5.js';
5
+ import '../../useIdAttribute-859439f0.js';
6
+ import '../../OrLabel-63380256.js';
7
+ import '../../normalize-component-6e8e3d80.js';
8
+ import '../../style-inject.es-4c6f2515.js';
9
+ import '../../OrIcon-d35a84d8.js';
10
+ import '../../flattenDeep-e7a8b995.js';
@@ -0,0 +1,2 @@
1
+ export declare const CheckboxTreeRoot: string[];
2
+ export declare const CheckboxTreeRootParent: string[];
@@ -0,0 +1,7 @@
1
+ export type CheckboxNode = {
2
+ label: string;
3
+ value: string;
4
+ children?: CheckboxNode[];
5
+ collapsible?: boolean;
6
+ disabled?: boolean;
7
+ };
@@ -11,17 +11,18 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
11
11
  'force-state': string | undefined;
12
12
  id: string | undefined;
13
13
  };
14
- proxyModelValue: import("@vue/composition-api").WritableComputedRef<boolean | string[]>;
14
+ isChecked: import("@vue/composition-api").ComputedRef<boolean | "" | 0>;
15
+ handleChange: () => void;
15
16
  focus: () => void;
16
17
  blur: () => void;
17
18
  }> & import("@vue/composition-api").Data, {}, {}, {
18
19
  modelValue: {
19
- type: PropType<boolean | string[]>;
20
- default: undefined;
20
+ type: any;
21
+ default: null;
21
22
  };
22
23
  value: {
23
- type: StringConstructor;
24
- default: undefined;
24
+ type: PropType<string | number | boolean>;
25
+ default: null;
25
26
  };
26
27
  label: {
27
28
  type: StringConstructor;
@@ -45,12 +46,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
45
46
  };
46
47
  }, import("@vue/composition-api").ExtractPropTypes<{
47
48
  modelValue: {
48
- type: PropType<boolean | string[]>;
49
- default: undefined;
49
+ type: any;
50
+ default: null;
50
51
  };
51
52
  value: {
52
- type: StringConstructor;
53
- default: undefined;
53
+ type: PropType<string | number | boolean>;
54
+ default: null;
54
55
  };
55
56
  label: {
56
57
  type: StringConstructor;
@@ -73,8 +74,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
73
74
  default: boolean;
74
75
  };
75
76
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
76
- modelValue: boolean | string[];
77
- value: string;
77
+ modelValue: any;
78
+ value: string | number | boolean;
78
79
  label: string;
79
80
  labelVariant: LabelVariant;
80
81
  indeterminate: boolean;
@@ -93,12 +94,13 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
93
94
  'force-state': string | undefined;
94
95
  id: string | undefined;
95
96
  };
96
- proxyModelValue: import("@vue/composition-api").WritableComputedRef<boolean | string[]>;
97
+ isChecked: import("@vue/composition-api").ComputedRef<boolean | "" | 0>;
98
+ handleChange: () => void;
97
99
  focus: () => void;
98
100
  blur: () => void;
99
101
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
100
- modelValue: boolean | string[];
101
- value: string;
102
+ modelValue: any;
103
+ value: string | number | boolean;
102
104
  label: string;
103
105
  labelVariant: LabelVariant;
104
106
  indeterminate: boolean;
@@ -107,8 +109,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
107
109
  } & {} & {
108
110
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
109
111
  }, {
110
- modelValue: boolean | string[];
111
- value: string;
112
+ modelValue: any;
113
+ value: string | number | boolean;
112
114
  label: string;
113
115
  labelVariant: LabelVariant;
114
116
  indeterminate: boolean;
@@ -1,7 +1,7 @@
1
- export { _ as OrCheckboxV3 } from '../../OrCheckbox-dc587ec9.js';
1
+ export { _ as OrCheckboxV3 } from '../../OrCheckbox-e55228e5.js';
2
2
  import 'vue-demi';
3
- import '../../useIdAttribute-859439f0.js';
4
3
  import '@vueuse/core';
4
+ import '../../useIdAttribute-859439f0.js';
5
5
  import '../../OrLabel-63380256.js';
6
6
  import '../../normalize-component-6e8e3d80.js';
7
7
  import '../../style-inject.es-4c6f2515.js';
@@ -0,0 +1,85 @@
1
+ import { PropType } from 'vue-demi';
2
+ import { FormGroupDirection } from './props';
3
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
+ root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
5
+ rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
6
+ labelStyles: import("@vue/composition-api").ComputedRef<string[]>;
7
+ contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
8
+ }> & import("@vue/composition-api").Data, {}, {}, {
9
+ label: {
10
+ type: StringConstructor;
11
+ default: undefined;
12
+ };
13
+ required: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ disabled: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ direction: {
22
+ type: PropType<FormGroupDirection>;
23
+ default: FormGroupDirection;
24
+ };
25
+ error: {
26
+ type: (BooleanConstructor | StringConstructor)[];
27
+ default: undefined;
28
+ };
29
+ hint: {
30
+ type: StringConstructor;
31
+ default: undefined;
32
+ };
33
+ }, import("@vue/composition-api").ExtractPropTypes<{
34
+ label: {
35
+ type: StringConstructor;
36
+ default: undefined;
37
+ };
38
+ required: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ disabled: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ direction: {
47
+ type: PropType<FormGroupDirection>;
48
+ default: FormGroupDirection;
49
+ };
50
+ error: {
51
+ type: (BooleanConstructor | StringConstructor)[];
52
+ default: undefined;
53
+ };
54
+ hint: {
55
+ type: StringConstructor;
56
+ default: undefined;
57
+ };
58
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
59
+ label: string;
60
+ required: boolean;
61
+ disabled: boolean;
62
+ direction: FormGroupDirection;
63
+ error: string | boolean;
64
+ hint: string;
65
+ } & {}, import("@vue/composition-api").ShallowUnwrapRef<{
66
+ root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
67
+ rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
68
+ labelStyles: import("@vue/composition-api").ComputedRef<string[]>;
69
+ contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
70
+ }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
71
+ label: string;
72
+ required: boolean;
73
+ disabled: boolean;
74
+ direction: FormGroupDirection;
75
+ error: string | boolean;
76
+ hint: string;
77
+ } & {}, {
78
+ label: string;
79
+ required: boolean;
80
+ disabled: boolean;
81
+ direction: FormGroupDirection;
82
+ error: string | boolean;
83
+ hint: string;
84
+ }, true>);
85
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as OrFormGroupV3 } from './OrFormGroup.vue';
2
+ export * from './props';
@@ -0,0 +1,6 @@
1
+ export { F as FormGroupDirection, _ as OrFormGroupV3 } from '../../OrFormGroup-7a883bce.js';
2
+ import 'vue-demi';
3
+ import '../../OrLabel-63380256.js';
4
+ import '../../normalize-component-6e8e3d80.js';
5
+ import '../../OrError-4ffc1c39.js';
6
+ import '../../OrHint-aa221198.js';
@@ -0,0 +1,4 @@
1
+ export declare enum FormGroupDirection {
2
+ Vertical = "vertical",
3
+ Horizontal = "horizontal"
4
+ }
@@ -0,0 +1,6 @@
1
+ import { FormGroupDirection } from './props';
2
+ export declare const FormGroupRoot: string[];
3
+ export declare const FormGroupContent: string[];
4
+ export declare const FormGroupLabel: string[];
5
+ export declare const FormGroupLabelError: string[];
6
+ export declare const FormGroupContentDirections: Record<FormGroupDirection, string[]>;
@@ -0,0 +1,110 @@
1
+ import { PropType } from 'vue-demi';
2
+ import { FormGroupDirection } from '../or-form-group-v3';
3
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
+ proxyModelValue: import("@vue/composition-api").Ref<any> | import("@vue/composition-api").WritableComputedRef<any>;
5
+ }> & import("@vue/composition-api").Data, {}, {}, {
6
+ modelValue: {
7
+ type: any;
8
+ default: null;
9
+ };
10
+ direction: {
11
+ type: PropType<FormGroupDirection>;
12
+ default: string;
13
+ };
14
+ label: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ options: {
19
+ type: PropType<{
20
+ label: string;
21
+ value: any;
22
+ disabled?: boolean | undefined;
23
+ }[]>;
24
+ default: () => never[];
25
+ };
26
+ error: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ hint: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ disabled: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ }, import("@vue/composition-api").ExtractPropTypes<{
39
+ modelValue: {
40
+ type: any;
41
+ default: null;
42
+ };
43
+ direction: {
44
+ type: PropType<FormGroupDirection>;
45
+ default: string;
46
+ };
47
+ label: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ options: {
52
+ type: PropType<{
53
+ label: string;
54
+ value: any;
55
+ disabled?: boolean | undefined;
56
+ }[]>;
57
+ default: () => never[];
58
+ };
59
+ error: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ hint: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ disabled: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
72
+ modelValue: any;
73
+ direction: FormGroupDirection;
74
+ label: string;
75
+ options: {
76
+ label: string;
77
+ value: any;
78
+ disabled?: boolean | undefined;
79
+ }[];
80
+ error: string;
81
+ hint: string;
82
+ disabled: boolean;
83
+ } & {}, import("@vue/composition-api").ShallowUnwrapRef<{
84
+ proxyModelValue: import("@vue/composition-api").Ref<any> | import("@vue/composition-api").WritableComputedRef<any>;
85
+ }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
86
+ modelValue: any;
87
+ direction: FormGroupDirection;
88
+ label: string;
89
+ options: {
90
+ label: string;
91
+ value: any;
92
+ disabled?: boolean | undefined;
93
+ }[];
94
+ error: string;
95
+ hint: string;
96
+ disabled: boolean;
97
+ } & {}, {
98
+ modelValue: any;
99
+ direction: FormGroupDirection;
100
+ label: string;
101
+ options: {
102
+ label: string;
103
+ value: any;
104
+ disabled?: boolean | undefined;
105
+ }[];
106
+ error: string;
107
+ hint: string;
108
+ disabled: boolean;
109
+ }, true>);
110
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as OrRadioGroupV3 } from './OrRadioGroup.vue';
@@ -0,0 +1,124 @@
1
+ import { defineComponent } from 'vue-demi';
2
+ import { useVModel } from '@vueuse/core';
3
+ import { _ as __vue_component__$1 } from '../../OrFormGroup-7a883bce.js';
4
+ import { _ as __vue_component__$2 } from '../../OrRadio-26031dd3.js';
5
+ import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
6
+ import '../../OrLabel-63380256.js';
7
+ import '../../OrError-4ffc1c39.js';
8
+ import '../../OrHint-aa221198.js';
9
+ import '../../useIdAttribute-859439f0.js';
10
+ import '../../style-inject.es-4c6f2515.js';
11
+
12
+ var script = defineComponent({
13
+ name: 'OrRadioGroup',
14
+ components: {
15
+ OrFormGroup: __vue_component__$1,
16
+ OrRadio: __vue_component__$2
17
+ },
18
+ model: {
19
+ prop: 'modelValue',
20
+ event: 'update:modelValue'
21
+ },
22
+ props: {
23
+ modelValue: {
24
+ type: null,
25
+ default: null
26
+ },
27
+ direction: {
28
+ type: String,
29
+ default: 'vertical'
30
+ },
31
+ label: {
32
+ type: String,
33
+ default: ''
34
+ },
35
+ options: {
36
+ type: Array,
37
+ default: () => []
38
+ },
39
+ error: {
40
+ type: String,
41
+ default: ''
42
+ },
43
+ hint: {
44
+ type: String,
45
+ default: ''
46
+ },
47
+ disabled: {
48
+ type: Boolean,
49
+ default: false
50
+ }
51
+ },
52
+ setup(props, {
53
+ emit
54
+ }) {
55
+ const proxyModelValue = useVModel(props, 'modelValue', emit);
56
+ return {
57
+ proxyModelValue
58
+ };
59
+ }
60
+ });
61
+
62
+ /* script */
63
+ const __vue_script__ = script;
64
+
65
+ /* template */
66
+ var __vue_render__ = function () {
67
+ var _vm = this;
68
+ var _h = _vm.$createElement;
69
+ var _c = _vm._self._c || _h;
70
+ return _c('OrFormGroup', {
71
+ attrs: {
72
+ "direction": _vm.direction,
73
+ "label": _vm.label,
74
+ "error": _vm.error,
75
+ "hint": _vm.hint,
76
+ "disabled": _vm.disabled
77
+ },
78
+ scopedSlots: _vm._u([{
79
+ key: "addon",
80
+ fn: function () {
81
+ return [_vm._t("addon")];
82
+ },
83
+ proxy: true
84
+ }], null, true)
85
+ }, [_vm._v(" "), _vm._l(_vm.options, function (option) {
86
+ return _c('OrRadio', {
87
+ key: option.value,
88
+ attrs: {
89
+ "label": option.label,
90
+ "value": option.value,
91
+ "disabled": _vm.disabled || option.disabled
92
+ },
93
+ model: {
94
+ value: _vm.proxyModelValue,
95
+ callback: function ($$v) {
96
+ _vm.proxyModelValue = $$v;
97
+ },
98
+ expression: "proxyModelValue"
99
+ }
100
+ });
101
+ })], 2);
102
+ };
103
+ var __vue_staticRenderFns__ = [];
104
+
105
+ /* style */
106
+ const __vue_inject_styles__ = undefined;
107
+ /* scoped */
108
+ const __vue_scope_id__ = undefined;
109
+ /* module identifier */
110
+ const __vue_module_identifier__ = undefined;
111
+ /* functional template */
112
+ const __vue_is_functional_template__ = false;
113
+ /* style inject */
114
+
115
+ /* style inject SSR */
116
+
117
+ /* style inject shadow dom */
118
+
119
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
120
+ render: __vue_render__,
121
+ staticRenderFns: __vue_staticRenderFns__
122
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
123
+
124
+ export { __vue_component__ as OrRadioGroupV3 };
@@ -1,10 +1,10 @@
1
- export { _ as OrSelectV3 } from '../../OrSelect-40183874.js';
1
+ export { _ as OrSelectV3 } from '../../OrSelect-4031334e.js';
2
2
  export { a as SelectSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-23426690.js';
3
3
  import 'vue-demi';
4
4
  import '../../dropdown-open-0d314aa4.js';
5
5
  import '../../useOverflow-af6161c8.js';
6
6
  import '@vueuse/core';
7
- import '../../OrCheckbox-dc587ec9.js';
7
+ import '../../OrCheckbox-e55228e5.js';
8
8
  import '../../useIdAttribute-859439f0.js';
9
9
  import '../../OrLabel-63380256.js';
10
10
  import '../../normalize-component-6e8e3d80.js';