@opentiny/vue-renderless 3.27.0 → 3.28.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 (48) hide show
  1. package/autocomplete/index.js +7 -2
  2. package/autocomplete/vue.js +1 -1
  3. package/base-select/index.js +189 -86
  4. package/base-select/vue.js +82 -20
  5. package/drawer/index.js +20 -0
  6. package/drawer/vue.js +9 -1
  7. package/dropdown/index.js +10 -4
  8. package/file-upload/index.js +18 -5
  9. package/form-item/index.js +28 -16
  10. package/form-item/vue.js +50 -11
  11. package/grid/static/array/eachTree.js +1 -0
  12. package/grid/utils/common.js +10 -3
  13. package/grid-select/index.js +418 -32
  14. package/grid-select/vue.js +103 -9
  15. package/guide/vue.js +11 -1
  16. package/package.json +3 -3
  17. package/picker/index.js +30 -13
  18. package/popover/index.js +1 -1
  19. package/rich-text/index.js +42 -0
  20. package/select/index.js +2 -2
  21. package/select/vue.js +2 -1
  22. package/select-dropdown/vue.js +8 -3
  23. package/select-wrapper/vue.js +134 -0
  24. package/switch/vue.js +19 -0
  25. package/tabs-mf/index.js +9 -1
  26. package/tabs-mf/vue-nav.js +66 -9
  27. package/tabs-mf/vue.js +21 -5
  28. package/transfer-panel/index.js +2 -1
  29. package/tree-select/index.js +13 -4
  30. package/tree-select/vue.js +19 -3
  31. package/types/autocomplete.type.d.ts +2 -1
  32. package/types/date-picker.type.d.ts +38 -2
  33. package/types/file-upload.type.d.ts +1 -1
  34. package/types/form-item.type.d.ts +1 -1
  35. package/types/{form.type-dd403065.d.ts → form.type-a54e1c06.d.ts} +2 -2
  36. package/types/form.type.d.ts +1 -1
  37. package/types/input.type.d.ts +1 -1
  38. package/types/modal.type.d.ts +4 -0
  39. package/types/picker.type.d.ts +38 -2
  40. package/types/popeditor.type.d.ts +76 -4
  41. package/types/popover.type.d.ts +1 -1
  42. package/types/switch.type.d.ts +1 -0
  43. package/types/transfer.type.d.ts +3 -3
  44. package/types/tree-menu.type.d.ts +38 -2
  45. package/types/upload-dragger.type.d.ts +1 -1
  46. package/types/{upload-list.type-36a8374a.d.ts → upload-list.type-d5ff675d.d.ts} +1 -1
  47. package/types/upload-list.type.d.ts +1 -1
  48. package/types/upload.type.d.ts +1 -1
@@ -158,7 +158,8 @@ const watchVisible = ({ suggestionState, vm }) => (val) => {
158
158
  const mounted = ({
159
159
  vm,
160
160
  state,
161
- suggestionState
161
+ suggestionState,
162
+ props
162
163
  }) => () => {
163
164
  const input = vm.$refs.input;
164
165
  const $input = input.getInput();
@@ -166,8 +167,12 @@ const mounted = ({
166
167
  suggestionState.referenceElm = $input;
167
168
  $input.setAttribute("role", "textbox");
168
169
  $input.setAttribute("aria-autocomplete", "list");
169
- $input.setAttribute("aria-controls", "id");
170
+ $input.setAttribute("aria-controls", state.id);
171
+ $input.setAttribute("aria-owns", state.id);
170
172
  $input.setAttribute("aria-activedescendant", `${state.id}-item-${state.highlightedIndex}`);
173
+ if (props.label || props.placeholder) {
174
+ $input.setAttribute("aria-label", String(props.label || props.placeholder));
175
+ }
171
176
  };
172
177
  export {
173
178
  close,
@@ -91,7 +91,7 @@ const initApi = ({
91
91
  close: close(state),
92
92
  open: open(api2),
93
93
  handleBlur: handleBlur({ emit, state, dispatch, props }),
94
- mounted: mounted({ vm, state, suggestionState }),
94
+ mounted: mounted({ vm, state, suggestionState, props }),
95
95
  highlight: highlight({ constants, vm, state }),
96
96
  handleClear: handleClear({ emit, state }),
97
97
  select: select({ emit, nextTick, props, state, dispatch }),