@onereach/ui-components 4.14.1 → 4.14.2-beta.3002.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 (71) hide show
  1. package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.js +3 -3
  2. package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.vue.d.ts +10 -10
  3. package/dist/bundled/v2/components/OrInputV3/OrInput.js +2 -2
  4. package/dist/bundled/v2/components/OrInputV3/OrInput.vue.d.ts +10 -10
  5. package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +12 -12
  6. package/dist/bundled/v2/components/OrSelectV3/OrSelect.vue.d.ts +9 -9
  7. package/dist/bundled/v2/components/OrSelectV3/types.d.ts +1 -1
  8. package/dist/bundled/v2/utils/isEmptyValue.d.ts +1 -1
  9. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-a27167e0.js → OrCheckbox.vue_vue_type_script_lang-6c0e5fe9.js} +1 -1
  10. package/dist/bundled/v3/{OrCheckboxGroup.vue_vue_type_script_lang-386971f8.js → OrCheckboxGroup.vue_vue_type_script_lang-d8afbbf9.js} +1 -1
  11. package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-1d754ac1.js → OrCheckboxTree.vue_vue_type_script_lang-d3632aaa.js} +1 -1
  12. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-cd73a3d2.js → OrSelect.vue_vue_type_script_lang-f62151ac.js} +2 -2
  13. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +4 -4
  14. package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +3 -3
  15. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +3 -3
  16. package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +2 -2
  17. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +2 -2
  18. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +6 -6
  19. package/dist/bundled/v3/components/OrCheckboxV3/index.js +1 -1
  20. package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +6 -6
  21. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +14 -14
  22. package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +5 -5
  23. package/dist/bundled/v3/components/OrSelectV3/index.js +2 -2
  24. package/dist/bundled/v3/components/OrSelectV3/types.d.ts +1 -1
  25. package/dist/bundled/v3/components/index.js +4 -4
  26. package/dist/bundled/v3/index.js +4 -4
  27. package/dist/bundled/v3/utils/isEmptyValue.d.ts +1 -1
  28. package/dist/esm/v2/{OrCardCollection-74566219.js → OrCardCollection-04ac96cf.js} +1 -1
  29. package/dist/esm/v2/{OrCheckbox-43615f70.js → OrCheckbox-0c2a7fa7.js} +3 -3
  30. package/dist/esm/v2/{OrCheckboxGroup-4e6dbdd3.js → OrCheckboxGroup-026ecf5f.js} +1 -1
  31. package/dist/esm/v2/{OrCheckboxTree-ba023624.js → OrCheckboxTree-e991bcd9.js} +1 -1
  32. package/dist/esm/v2/{OrConfirm-d8d3b5e1.js → OrConfirm-defe0311.js} +1 -1
  33. package/dist/esm/v2/{OrInput-386e9352.js → OrInput-b7b43cd0.js} +2 -2
  34. package/dist/esm/v2/{OrSearch-7f444d5c.js → OrSearch-e8866022.js} +1 -1
  35. package/dist/esm/v2/{OrSelect-a3664bf7.js → OrSelect-9745beca.js} +14 -14
  36. package/dist/esm/v2/components/index.js +8 -8
  37. package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -3
  38. package/dist/esm/v2/components/or-checkbox-group-v3/index.js +3 -3
  39. package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +2 -2
  40. package/dist/esm/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +10 -10
  41. package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -1
  42. package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
  43. package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +10 -10
  44. package/dist/esm/v2/components/or-input-v3/index.js +1 -1
  45. package/dist/esm/v2/components/or-search-v3/index.js +2 -2
  46. package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +9 -9
  47. package/dist/esm/v2/components/or-select-v3/index.js +3 -3
  48. package/dist/esm/v2/components/or-select-v3/types.d.ts +1 -1
  49. package/dist/esm/v2/index.js +8 -8
  50. package/dist/esm/v2/utils/isEmptyValue.d.ts +1 -1
  51. package/dist/esm/v3/{OrCheckbox-bb06af0f.js → OrCheckbox-d1ceab55.js} +1 -1
  52. package/dist/esm/v3/{OrCheckboxGroup-9a8ab902.js → OrCheckboxGroup-6ec89f2a.js} +1 -1
  53. package/dist/esm/v3/{OrCheckboxTree-969bc928.js → OrCheckboxTree-9e08a6c4.js} +1 -1
  54. package/dist/esm/v3/{OrSelect-9613954a.js → OrSelect-775025c6.js} +13 -13
  55. package/dist/esm/v3/components/index.js +4 -4
  56. package/dist/esm/v3/components/or-checkbox-group-v3/index.js +3 -3
  57. package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +2 -2
  58. package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +6 -6
  59. package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -1
  60. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +6 -6
  61. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +5 -5
  62. package/dist/esm/v3/components/or-select-v3/index.js +2 -2
  63. package/dist/esm/v3/components/or-select-v3/types.d.ts +1 -1
  64. package/dist/esm/v3/index.js +4 -4
  65. package/dist/esm/v3/utils/isEmptyValue.d.ts +1 -1
  66. package/package.json +2 -3
  67. package/src/components/or-checkbox-v3/OrCheckbox.vue +2 -2
  68. package/src/components/or-input-v3/OrInput.vue +2 -2
  69. package/src/components/or-select-v3/OrSelect.vue +12 -12
  70. package/src/components/or-select-v3/types.ts +1 -1
  71. package/src/utils/isEmptyValue.ts +1 -1
@@ -62,7 +62,7 @@ export default defineComponent({
62
62
  },
63
63
 
64
64
  value: {
65
- type: [String, Boolean, Number] as PropType<string | boolean | number>,
65
+ type: [Object, String, Number, Boolean] as PropType<object | string | number | boolean>,
66
66
  default: null,
67
67
  },
68
68
 
@@ -72,7 +72,7 @@ export default defineComponent({
72
72
  },
73
73
 
74
74
  labelVariant: {
75
- type: String as PropType<LabelVariant>,
75
+ type: String as PropType<`${LabelVariant}`>,
76
76
  default: LabelVariant.Toggle,
77
77
  },
78
78
 
@@ -156,12 +156,12 @@ export default defineComponent({
156
156
  },
157
157
 
158
158
  type: {
159
- type: String as PropType<InputType>,
159
+ type: String as PropType<`${InputType}`>,
160
160
  default: InputType.Text,
161
161
  },
162
162
 
163
163
  size: {
164
- type: String as PropType<InputSize>,
164
+ type: String as PropType<`${InputSize}`>,
165
165
  default: InputSize.M,
166
166
  },
167
167
 
@@ -45,8 +45,8 @@
45
45
  :model="proxyModelValue"
46
46
  >
47
47
  <OrTag
48
- v-for="option in selection"
49
- :key="option.value"
48
+ v-for="(option, i) in selection"
49
+ :key="i"
50
50
  :variant="'reset'"
51
51
  :disabled="disabled || readonly"
52
52
  @reset="deselect(option)"
@@ -68,7 +68,7 @@
68
68
  :model="proxyModelValue"
69
69
  >
70
70
  <span class="truncate">
71
- {{ selection.label }}
71
+ {{ selection && selection.label }}
72
72
  </span>
73
73
  </slot>
74
74
  </template>
@@ -127,8 +127,8 @@
127
127
  >
128
128
  <template v-if="multiple">
129
129
  <OrMenuItem
130
- v-for="option in group"
131
- :key="option.value"
130
+ v-for="(option, i) in group"
131
+ :key="i"
132
132
  >
133
133
  <slot
134
134
  name="optionTemplate"
@@ -147,8 +147,8 @@
147
147
 
148
148
  <template v-else>
149
149
  <OrMenuItem
150
- v-for="option in group"
151
- :key="option.value"
150
+ v-for="(option, i) in group"
151
+ :key="i"
152
152
  @click.stop="proxyModelValue = option.value; close()"
153
153
  >
154
154
  <slot
@@ -166,8 +166,8 @@
166
166
  <template v-else>
167
167
  <template v-if="multiple">
168
168
  <OrMenuItem
169
- v-for="option in resolvedSearchOptions"
170
- :key="option.value"
169
+ v-for="(option, i) in resolvedSearchOptions"
170
+ :key="i"
171
171
  >
172
172
  <OrCheckbox
173
173
  v-model="proxyModelValue"
@@ -186,8 +186,8 @@
186
186
 
187
187
  <template v-else>
188
188
  <OrMenuItem
189
- v-for="option in resolvedSearchOptions"
190
- :key="option.value"
189
+ v-for="(option, i) in resolvedSearchOptions"
190
+ :key="i"
191
191
  @click.stop="proxyModelValue = option.value; close()"
192
192
  >
193
193
  <slot
@@ -295,7 +295,7 @@ export default defineComponent({
295
295
  },
296
296
 
297
297
  modelValue: {
298
- type: [String, Number, Array] as PropType<string | number | (string | number)[]>,
298
+ type: [Object, String, Number, Array] as PropType<object | string | number | object[] | string[] | number[]>,
299
299
  default: undefined,
300
300
  },
301
301
 
@@ -1,5 +1,5 @@
1
1
  export interface SelectOption {
2
- value: string | number;
2
+ value: object | string | number;
3
3
  label: string;
4
4
  }
5
5
 
@@ -1,3 +1,3 @@
1
- export function isEmptyValue(val: string|number|boolean|null|undefined): boolean {
1
+ export function isEmptyValue(val: unknown): boolean {
2
2
  return val === undefined || val === null || val === '';
3
3
  }