@descope/web-components-ui 3.18.2 → 3.18.4

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 (22) hide show
  1. package/dist/cjs/index.cjs.js +25 -0
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +26 -1
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/umd/DescopeDev.js +1 -1
  6. package/dist/umd/DescopeDev.js.map +1 -1
  7. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -1
  8. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js.map +1 -1
  9. package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -1
  10. package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js.map +1 -1
  11. package/dist/umd/descope-radio-group-index-js.js +1 -1
  12. package/dist/umd/descope-radio-group-index-js.js.map +1 -1
  13. package/dist/umd/index.js +1 -1
  14. package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
  15. package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js.map +1 -1
  16. package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
  17. package/dist/umd/phone-fields-descope-phone-field-index-js.js.map +1 -1
  18. package/package.json +42 -42
  19. package/src/components/button-selection-group-fields/descope-button-multi-selection-group/ButtonMultiSelectionGroupClass.js +8 -0
  20. package/src/components/button-selection-group-fields/descope-button-selection-group/ButtonSelectionGroupClass.js +8 -0
  21. package/src/components/descope-radio-group/RadioGroupClass.js +9 -0
  22. package/src/components/phone-fields/descope-phone-field/helpers.js +1 -1
package/dist/index.esm.js CHANGED
@@ -11372,7 +11372,7 @@ const comboBoxItem = ({ code, dialCode, name: country }) => `
11372
11372
  >
11373
11373
  <div>
11374
11374
  <span>
11375
- <img src="${getCountryFlag(code)}" width="20"/>
11375
+ <img src="${getCountryFlag(code)}" width="20" loading="lazy" />
11376
11376
  </span>
11377
11377
  <span>${country}</span>
11378
11378
  </div>
@@ -14399,6 +14399,14 @@ const buttonSelectionGroupMixin = (superclass) =>
14399
14399
 
14400
14400
  this.inputElement = this.shadowRoot.querySelector(componentName$$);
14401
14401
 
14402
+ // the inner *-internal dispatches a non-bubbling, non-composed `change`,
14403
+ // which never reaches the flow runtime. Re-emit standard input/change from
14404
+ // the host (bubbling + composed) so flow real-time conditions fire.
14405
+ this.inputElement.addEventListener('change', () => {
14406
+ this.dispatchEvent(new Event('input', { bubbles: true, composed: true }));
14407
+ this.dispatchEvent(new Event('change', { bubbles: true, composed: true }));
14408
+ });
14409
+
14402
14410
  forwardAttrs(this, this.inputElement, {
14403
14411
  includeAttrs: ['size', 'default-value', 'allow-deselect'],
14404
14412
  });
@@ -14674,6 +14682,14 @@ const buttonMultiSelectionGroupMixin = (superclass) =>
14674
14682
 
14675
14683
  this.inputElement = this.shadowRoot.querySelector(componentName$Y);
14676
14684
 
14685
+ // the inner *-internal dispatches a non-bubbling, non-composed `change`,
14686
+ // which never reaches the flow runtime. Re-emit standard input/change from
14687
+ // the host (bubbling + composed) so flow real-time conditions fire.
14688
+ this.inputElement.addEventListener('change', () => {
14689
+ this.dispatchEvent(new Event('input', { bubbles: true, composed: true }));
14690
+ this.dispatchEvent(new Event('change', { bubbles: true, composed: true }));
14691
+ });
14692
+
14677
14693
  forwardAttrs(this, this.inputElement, {
14678
14694
  includeAttrs: ['size', 'default-values', 'min-items-selection', 'max-items-selection'],
14679
14695
  });
@@ -17844,6 +17860,15 @@ const RadioGroupMixin = (superclass) =>
17844
17860
 
17845
17861
  this.inputElement = this.baseElement;
17846
17862
 
17863
+ // vaadin-radio-group emits `value-changed` on selection but no native
17864
+ // input/change events. Re-emit standard input/change from the host
17865
+ // (bubbling + composed) so flow real-time conditions fire, matching how
17866
+ // proxyInputMixin bridges input/change for other fields.
17867
+ this.baseElement.addEventListener('value-changed', () => {
17868
+ this.dispatchEvent(new Event('input', { bubbles: true, composed: true }));
17869
+ this.dispatchEvent(new Event('change', { bubbles: true, composed: true }));
17870
+ });
17871
+
17847
17872
  this.renderItems();
17848
17873
 
17849
17874
  observeAttributes(this, this.renderItems.bind(this), { includeAttrs: ['data'] });