@vaadin/component-base
Advanced tools
Comparing version 24.5.0-alpha7 to 24.5.0-alpha8
{ | ||
"name": "@vaadin/component-base", | ||
"version": "24.5.0-alpha7", | ||
"version": "24.5.0-alpha8", | ||
"publishConfig": { | ||
@@ -41,7 +41,7 @@ "access": "public" | ||
"devDependencies": { | ||
"@esm-bundle/chai": "^4.3.4", | ||
"@vaadin/testing-helpers": "^0.6.0", | ||
"sinon": "^13.0.2" | ||
"@vaadin/chai-plugins": "24.5.0-alpha8", | ||
"@vaadin/testing-helpers": "^1.0.0", | ||
"sinon": "^18.0.0" | ||
}, | ||
"gitHead": "89f77a69ae0eba6247f2b3084941f9395d7134e1" | ||
"gitHead": "1e227aaa55df3f5dae3d477b9afb5fce4f5ece33" | ||
} |
@@ -12,3 +12,3 @@ /** | ||
get() { | ||
return '24.5.0-alpha7'; | ||
return '24.5.0-alpha8'; | ||
}, | ||
@@ -15,0 +15,0 @@ }); |
@@ -41,2 +41,3 @@ /** | ||
useUniqueId?: boolean; | ||
uniqueIdPrefix?: string; | ||
initializer?(host: HTMLElement, node: HTMLElement): void; | ||
@@ -43,0 +44,0 @@ }, |
@@ -22,4 +22,3 @@ /** | ||
*/ | ||
static generateId(host, slotName) { | ||
const prefix = slotName || 'default'; | ||
static generateId(host, prefix = 'default') { | ||
return `${prefix}-${host.localName}-${generateUniqueId()}`; | ||
@@ -31,3 +30,3 @@ } | ||
const { initializer, multiple, observe, useUniqueId } = config; | ||
const { initializer, multiple, observe, useUniqueId, uniqueIdPrefix } = config; | ||
@@ -47,3 +46,3 @@ this.host = host; | ||
if (useUniqueId) { | ||
this.defaultId = this.constructor.generateId(host, slotName); | ||
this.defaultId = this.constructor.generateId(host, uniqueIdPrefix || slotName); | ||
} | ||
@@ -50,0 +49,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
216067