@everymatrix/general-registration 1.22.2 → 1.22.10
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.
- package/dist/cjs/checkbox-group-input_13.cjs.entry.js +55 -19
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/collection/components/general-registration/general-registration.js +12 -2
- package/dist/collection/index.js +1 -1
- package/dist/components/active-mixin.js +1 -1
- package/dist/components/checkbox-group-input2.js +13 -7
- package/dist/components/date-input2.js +1 -1
- package/dist/components/field-mixin.js +3 -3
- package/dist/components/general-registration.js +11 -3
- package/dist/components/index.js +1 -1
- package/dist/components/input-field-shared-styles.js +1 -1
- package/dist/components/password-input2.js +1 -1
- package/dist/components/vaadin-button.js +1 -1
- package/dist/components/vaadin-combo-box.js +31 -9
- package/dist/components/virtual-keyboard-controller.js +1 -1
- package/dist/esm/checkbox-group-input_13.entry.js +55 -19
- package/dist/esm/index.js +1 -1
- package/dist/general-registration/general-registration.esm.js +1 -1
- package/dist/general-registration/index.esm.js +1 -1
- package/dist/general-registration/{p-59cdc741.entry.js → p-d885d65d.entry.js} +7 -7
- package/dist/types/components/general-registration/general-registration.d.ts +1 -0
- package/package.json +1 -12
|
@@ -109,7 +109,7 @@ class Lumo extends HTMLElement {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
static get version() {
|
|
112
|
-
return '24.2.
|
|
112
|
+
return '24.2.5';
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -9294,7 +9294,7 @@ const registered = new Set();
|
|
|
9294
9294
|
const ElementMixin = (superClass) =>
|
|
9295
9295
|
class VaadinElementMixin extends DirMixin(superClass) {
|
|
9296
9296
|
static get version() {
|
|
9297
|
-
return '24.2.
|
|
9297
|
+
return '24.2.5';
|
|
9298
9298
|
}
|
|
9299
9299
|
|
|
9300
9300
|
/** @protected */
|
|
@@ -12184,12 +12184,6 @@ const CheckedMixin = dedupingMixin(
|
|
|
12184
12184
|
const input = event.target;
|
|
12185
12185
|
|
|
12186
12186
|
this._toggleChecked(input.checked);
|
|
12187
|
-
|
|
12188
|
-
// Clicking the checkbox or radio-button in Safari
|
|
12189
|
-
// does not make it focused, so we do it manually.
|
|
12190
|
-
if (!isElementFocused(input)) {
|
|
12191
|
-
input.focus();
|
|
12192
|
-
}
|
|
12193
12187
|
}
|
|
12194
12188
|
|
|
12195
12189
|
/** @protected */
|
|
@@ -12733,6 +12727,18 @@ const CheckboxMixin = (superclass) =>
|
|
|
12733
12727
|
type: String,
|
|
12734
12728
|
value: '',
|
|
12735
12729
|
},
|
|
12730
|
+
|
|
12731
|
+
/**
|
|
12732
|
+
* Indicates whether the element can be focused and where it participates in sequential keyboard navigation.
|
|
12733
|
+
*
|
|
12734
|
+
* @override
|
|
12735
|
+
* @protected
|
|
12736
|
+
*/
|
|
12737
|
+
tabindex: {
|
|
12738
|
+
type: Number,
|
|
12739
|
+
value: 0,
|
|
12740
|
+
reflectToAttribute: true,
|
|
12741
|
+
},
|
|
12736
12742
|
};
|
|
12737
12743
|
}
|
|
12738
12744
|
|
|
@@ -30126,6 +30132,9 @@ const GeneralRegistration = class {
|
|
|
30126
30132
|
this.autofilled = true;
|
|
30127
30133
|
}
|
|
30128
30134
|
}
|
|
30135
|
+
addBtag() {
|
|
30136
|
+
this.addBtagValue();
|
|
30137
|
+
}
|
|
30129
30138
|
checkInputsValidityHandler(event) {
|
|
30130
30139
|
// Set isValid state of the input in the list.
|
|
30131
30140
|
this.listOfInputValidity.find(input => input.name == event.detail.name).isValid = event.detail.valid;
|
|
@@ -30398,8 +30407,6 @@ const GeneralRegistration = class {
|
|
|
30398
30407
|
return [inputElement];
|
|
30399
30408
|
}
|
|
30400
30409
|
});
|
|
30401
|
-
if (this.btag)
|
|
30402
|
-
this.addBtagValue();
|
|
30403
30410
|
this.listOfInputValidity = this.listOfInputs.reduce((acc, field) => {
|
|
30404
30411
|
var _a;
|
|
30405
30412
|
// If the field is a togglecheckbox, add its subfields
|
|
@@ -30445,6 +30452,8 @@ const GeneralRegistration = class {
|
|
|
30445
30452
|
}
|
|
30446
30453
|
return acc;
|
|
30447
30454
|
}, []);
|
|
30455
|
+
if (this.btag)
|
|
30456
|
+
this.addBtagValue();
|
|
30448
30457
|
// Set the list of actions
|
|
30449
30458
|
this.listOfActions = config.content.actions.map(action => action);
|
|
30450
30459
|
this.registrationID = config.content.registrationID;
|
|
@@ -30494,6 +30503,10 @@ const GeneralRegistration = class {
|
|
|
30494
30503
|
if (btagField) {
|
|
30495
30504
|
btagField.defaultValue = this.btag;
|
|
30496
30505
|
}
|
|
30506
|
+
const btagValue = this.listOfInputValues.find(input => input.name.toLowerCase() === 'btag');
|
|
30507
|
+
if (btagValue) {
|
|
30508
|
+
btagValue.value = this.btag;
|
|
30509
|
+
}
|
|
30497
30510
|
}
|
|
30498
30511
|
addTranslation(field) {
|
|
30499
30512
|
if (TRANSLATIONS[this.language][field.name]) {
|
|
@@ -30550,7 +30563,8 @@ const GeneralRegistration = class {
|
|
|
30550
30563
|
get host() { return getElement(this); }
|
|
30551
30564
|
static get watchers() { return {
|
|
30552
30565
|
"registrationStep": ["sendStep"],
|
|
30553
|
-
"forms": ["setFormValidity"]
|
|
30566
|
+
"forms": ["setFormValidity"],
|
|
30567
|
+
"btag": ["addBtag"]
|
|
30554
30568
|
}; }
|
|
30555
30569
|
};
|
|
30556
30570
|
GeneralRegistration.style = generalRegistrationCss;
|
|
@@ -33325,7 +33339,9 @@ class IronListAdapter {
|
|
|
33325
33339
|
this.__preventElementUpdates = false;
|
|
33326
33340
|
} else {
|
|
33327
33341
|
// Already initialized, just update _virtualCount
|
|
33342
|
+
this._updateScrollerSize();
|
|
33328
33343
|
this._virtualCount = this.items.length;
|
|
33344
|
+
this._render();
|
|
33329
33345
|
}
|
|
33330
33346
|
|
|
33331
33347
|
// When reducing size while invisible, iron-list does not update items, so
|
|
@@ -34874,6 +34890,14 @@ const ComboBoxMixin = (subclass) =>
|
|
|
34874
34890
|
observer: '_toggleElementChanged',
|
|
34875
34891
|
},
|
|
34876
34892
|
|
|
34893
|
+
/**
|
|
34894
|
+
* Set of items to be rendered in the dropdown.
|
|
34895
|
+
* @protected
|
|
34896
|
+
*/
|
|
34897
|
+
_dropdownItems: {
|
|
34898
|
+
type: Array,
|
|
34899
|
+
},
|
|
34900
|
+
|
|
34877
34901
|
/** @private */
|
|
34878
34902
|
_closeOnBlurIsPrevented: Boolean,
|
|
34879
34903
|
|
|
@@ -34891,8 +34915,8 @@ const ComboBoxMixin = (subclass) =>
|
|
|
34891
34915
|
static get observers() {
|
|
34892
34916
|
return [
|
|
34893
34917
|
'_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)',
|
|
34894
|
-
'_openedOrItemsChanged(opened,
|
|
34895
|
-
'_updateScroller(_scroller,
|
|
34918
|
+
'_openedOrItemsChanged(opened, _dropdownItems, loading)',
|
|
34919
|
+
'_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, theme)',
|
|
34896
34920
|
];
|
|
34897
34921
|
}
|
|
34898
34922
|
|
|
@@ -35131,7 +35155,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
35131
35155
|
this.dispatchEvent(new CustomEvent('vaadin-combo-box-dropdown-opened', { bubbles: true, composed: true }));
|
|
35132
35156
|
|
|
35133
35157
|
this._onOpened();
|
|
35134
|
-
} else if (wasOpened && this.
|
|
35158
|
+
} else if (wasOpened && this._dropdownItems && this._dropdownItems.length) {
|
|
35135
35159
|
this.close();
|
|
35136
35160
|
|
|
35137
35161
|
this.dispatchEvent(new CustomEvent('vaadin-combo-box-dropdown-closed', { bubbles: true, composed: true }));
|
|
@@ -35321,7 +35345,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
35321
35345
|
/** @private */
|
|
35322
35346
|
_onArrowDown() {
|
|
35323
35347
|
if (this.opened) {
|
|
35324
|
-
const items = this.
|
|
35348
|
+
const items = this._dropdownItems;
|
|
35325
35349
|
if (items) {
|
|
35326
35350
|
this._focusedIndex = Math.min(items.length - 1, this._focusedIndex + 1);
|
|
35327
35351
|
this._prefillFocusedItemLabel();
|
|
@@ -35337,7 +35361,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
35337
35361
|
if (this._focusedIndex > -1) {
|
|
35338
35362
|
this._focusedIndex = Math.max(0, this._focusedIndex - 1);
|
|
35339
35363
|
} else {
|
|
35340
|
-
const items = this.
|
|
35364
|
+
const items = this._dropdownItems;
|
|
35341
35365
|
if (items) {
|
|
35342
35366
|
this._focusedIndex = items.length - 1;
|
|
35343
35367
|
}
|
|
@@ -35352,7 +35376,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
35352
35376
|
/** @private */
|
|
35353
35377
|
_prefillFocusedItemLabel() {
|
|
35354
35378
|
if (this._focusedIndex > -1) {
|
|
35355
|
-
const focusedItem = this.
|
|
35379
|
+
const focusedItem = this._dropdownItems[this._focusedIndex];
|
|
35356
35380
|
this._inputElementValue = this._getItemLabel(focusedItem);
|
|
35357
35381
|
this._markAllSelectionRange();
|
|
35358
35382
|
}
|
|
@@ -35525,7 +35549,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
35525
35549
|
/** @private */
|
|
35526
35550
|
_commitValue() {
|
|
35527
35551
|
if (this._focusedIndex > -1) {
|
|
35528
|
-
const focusedItem = this.
|
|
35552
|
+
const focusedItem = this._dropdownItems[this._focusedIndex];
|
|
35529
35553
|
if (this.selectedItem !== focusedItem) {
|
|
35530
35554
|
this.selectedItem = focusedItem;
|
|
35531
35555
|
}
|
|
@@ -35540,7 +35564,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
35540
35564
|
}
|
|
35541
35565
|
} else {
|
|
35542
35566
|
// Try to find an item which label matches the input value.
|
|
35543
|
-
const items = [this.selectedItem, ...(this.
|
|
35567
|
+
const items = [this.selectedItem, ...(this._dropdownItems || [])];
|
|
35544
35568
|
const itemMatchingInputValue = items[this.__getItemIndexByLabel(items, this._inputElementValue)];
|
|
35545
35569
|
|
|
35546
35570
|
if (
|
|
@@ -35755,6 +35779,8 @@ const ComboBoxMixin = (subclass) =>
|
|
|
35755
35779
|
|
|
35756
35780
|
/** @private */
|
|
35757
35781
|
_filteredItemsChanged(filteredItems, oldFilteredItems) {
|
|
35782
|
+
this._setDropdownItems(filteredItems);
|
|
35783
|
+
|
|
35758
35784
|
// Store the currently focused item if any. The focused index preserves
|
|
35759
35785
|
// in the case when more filtered items are loading but it is reset
|
|
35760
35786
|
// when the user types in a filter query.
|
|
@@ -35815,6 +35841,16 @@ const ComboBoxMixin = (subclass) =>
|
|
|
35815
35841
|
}
|
|
35816
35842
|
}
|
|
35817
35843
|
|
|
35844
|
+
/**
|
|
35845
|
+
* Provide items to be rendered in the dropdown.
|
|
35846
|
+
* Override this method to show custom items.
|
|
35847
|
+
*
|
|
35848
|
+
* @protected
|
|
35849
|
+
*/
|
|
35850
|
+
_setDropdownItems(items) {
|
|
35851
|
+
this._dropdownItems = items;
|
|
35852
|
+
}
|
|
35853
|
+
|
|
35818
35854
|
/** @private */
|
|
35819
35855
|
_getItemElements() {
|
|
35820
35856
|
return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`));
|
package/dist/esm/index.js
CHANGED
|
@@ -6,7 +6,7 @@ function safeDecorator(fn) {
|
|
|
6
6
|
}
|
|
7
7
|
catch (error) {
|
|
8
8
|
if (error instanceof DOMException &&
|
|
9
|
-
error.message.includes('has already been used with this registry')) {
|
|
9
|
+
error.message.includes('has already been used with this registry') || error.message.includes('Cannot define multiple custom elements with the same tag name')) {
|
|
10
10
|
return false;
|
|
11
11
|
}
|
|
12
12
|
throw error;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as l,b as e}from"./p-4ff02444.js";(()=>{const e=import.meta.url,i={};return""!==e&&(i.resourcesUrl=new URL(".",e).href),l(i)})().then((l=>e([["p-
|
|
1
|
+
import{p as l,b as e}from"./p-4ff02444.js";(()=>{const e=import.meta.url,i={};return""!==e&&(i.resourcesUrl=new URL(".",e).href),l(i)})().then((l=>e([["p-d885d65d",[[1,"general-registration",{endpoint:[513],language:[513],clientStyling:[1537,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],dateFormat:[513,"date-format"],buttonInsideForm:[516,"button-inside-form"],btag:[513],errorMessage:[32],isFormValid:[32],isLoading:[32],isLoadingPOST:[32],registrationStep:[32],forms:[32],limitStylingAppends:[32],autofilled:[32]},[[0,"sendValidityState","checkInputsValidityHandler"],[0,"sendInputValue","getInputsValueHandler"]]],[1,"general-input",{type:[513],name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],validation:[16],options:[520],language:[513],autofilled:[516],tooltip:[513],defaultValue:[520,"default-value"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[520,"client-styling"],dateFormat:[513,"date-format"],translationUrl:[513,"translation-url"]}],[1,"toggle-checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],options:[16],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],showFields:[32]},[[4,"click","handleClickOutside"]]],[1,"checkbox-group-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],selectedValues:[32]},[[4,"click","handleClickOutside"]]],[1,"checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]]],[1,"date-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],dateFormat:[513,"date-format"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]]],[1,"email-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]]],[1,"number-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]]],[1,"password-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32],passwordComplexity:[32],showPopup:[32],value:[32]},[[16,"sendOriginalValidityState","originalValidityChangedHandler"],[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]]],[1,"radio-input",{name:[513],displayName:[513,"display-name"],optionsGroup:[16],validation:[16],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]]],[1,"select-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]]],[1,"tel-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],showLabels:[516,"show-labels"],action:[513],validation:[16],defaultValue:[520,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]]],[1,"text-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],checkValidity:[516,"check-validity"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]]]]]],l)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t;customElements.define=(t=customElements.define,function(...e){try{return t.apply(this,e)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry"))return!1;throw t}});
|
|
1
|
+
var t;customElements.define=(t=customElements.define,function(...e){try{return t.apply(this,e)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}});
|