@lvce-editor/renderer-process 10.42.0 → 10.44.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.
@@ -1568,6 +1568,9 @@ var setProp = ($Element, key, value, eventMap, newEventMap) => {
1568
1568
  $Element.removeAttribute("aria-owns");
1569
1569
  }
1570
1570
  break;
1571
+ case "ariaControls":
1572
+ $Element.setAttribute("aria-controls", value);
1573
+ break;
1571
1574
  case "inputType":
1572
1575
  $Element.type = value;
1573
1576
  break;
@@ -5951,6 +5954,21 @@ const focusElementByName = (viewletId, name) => {
5951
5954
  }
5952
5955
  $Element.focus();
5953
5956
  };
5957
+ const setValueByName = (viewletId, name, value) => {
5958
+ const selector = `[name="${name}"]`;
5959
+ const instance = state$6.instances[viewletId];
5960
+ if (!instance) {
5961
+ return;
5962
+ }
5963
+ const {
5964
+ $Viewlet
5965
+ } = instance.state;
5966
+ const $Element = $Viewlet.querySelector(selector);
5967
+ if (!$Element) {
5968
+ return;
5969
+ }
5970
+ $Element.value = value;
5971
+ };
5954
5972
  const focusSelector = (viewletId, selector) => {
5955
5973
  const instance = state$6.instances[viewletId];
5956
5974
  if (!instance) {
@@ -6124,6 +6142,9 @@ const sendMultiple = commands => {
6124
6142
  case 'Viewlet.focusElementByName':
6125
6143
  // @ts-ignore
6126
6144
  return focusElementByName(viewletId, method, ...args);
6145
+ case 'Viewlet.setValueByName':
6146
+ // @ts-ignore
6147
+ return setValueByName(viewletId, method, ...args);
6127
6148
  case 'Viewlet.registerEventListeners':
6128
6149
  return registerEventListeners(viewletId, method, ...args);
6129
6150
  default:
@@ -6289,6 +6310,8 @@ const getFn = command => {
6289
6310
  return createFunctionalRoot;
6290
6311
  case 'Viewlet.focusElementByName':
6291
6312
  return focusElementByName;
6313
+ case 'Viewlet.setValueByName':
6314
+ return setValueByName;
6292
6315
  case 'Viewlet.registerEventListeners':
6293
6316
  return registerEventListeners;
6294
6317
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "10.42.0",
3
+ "version": "10.44.0",
4
4
  "description": "",
5
5
  "main": "dist/rendererProcessMain.js",
6
6
  "type": "module",