@rxdi/forms 0.7.253 → 0.7.255

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.
@@ -257,8 +257,11 @@ class FormGroup {
257
257
  }
258
258
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
259
259
  querySelectorAllInputs() {
260
- const customElements = this.options.customElements.map((v) => typeof v === 'string' ? v : typeof v === 'function' ? v.is() : v);
261
- return [...(customElements !== null && customElements !== void 0 ? customElements : []), 'input', 'select', 'textarea']
260
+ var _a;
261
+ // customElements is optional in FormOptions: default BEFORE mapping (a
262
+ // form declared without it used to crash with "reading 'map'").
263
+ const customElements = ((_a = this.options.customElements) !== null && _a !== void 0 ? _a : []).map((v) => typeof v === 'string' ? v : typeof v === 'function' ? v.is() : v);
264
+ return [...customElements, 'input', 'select', 'textarea']
262
265
  .map((item) => this.querySelectAll(item))
263
266
  .flat()
264
267
  .filter((el) => this.isInputPresentOnStage(el))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdi/forms",
3
- "version": "0.7.253",
3
+ "version": "0.7.255",
4
4
  "main": "./dist/index.js",
5
5
  "author": "Kristiyan Tachev",
6
6
  "license": "MIT",
@@ -13,7 +13,7 @@
13
13
  "test": "echo tests"
14
14
  },
15
15
  "devDependencies": {
16
- "@rxdi/lit-html": "^0.7.252",
16
+ "@rxdi/lit-html": "^0.7.254",
17
17
  "@types/node": "^25.0.3",
18
18
  "rxjs": "^7.8.2",
19
19
  "typescript": "^5.9.3"