kr-elements 0.0.1-alpha.24 → 0.0.1-alpha.25
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/combobox/Combobox.markup.js +1 -1
- package/dist/cjs/combobox/HTML.combobox.tag.element.js +0 -3
- package/dist/esm/combobox/Combobox.markup.js +1 -1
- package/dist/esm/combobox/HTML.combobox.tag.element.js +0 -3
- package/dist/types/combobox/HTML.combobox.tag.element.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -121,7 +121,7 @@ class ComboboxMarkup {
|
|
|
121
121
|
.forEach(node => {
|
|
122
122
|
const relatedPart = option.querySelector(`[part*="${node.getAttribute('part')}"]`);
|
|
123
123
|
if (relatedPart) {
|
|
124
|
-
tag.replaceChild(
|
|
124
|
+
tag.replaceChild(relatedPart.cloneNode(true), node);
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
const clearButton = tag.querySelector('[part*="tag-clear-button"]');
|
|
@@ -10,9 +10,6 @@ class HTMLComboboxTagElement extends HTMLElement {
|
|
|
10
10
|
throw new Error(`A <button> with part="tag-clear-button" is required for <combo-box> with multiple attribute`);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
if (!this.querySelector('[part="tag-label"]')) {
|
|
14
|
-
throw new Error(`Invalid <box-tag-template>, an element with part="tag-label" is required as a descendant`);
|
|
15
|
-
}
|
|
16
13
|
}
|
|
17
14
|
}
|
|
18
15
|
}
|
|
@@ -118,7 +118,7 @@ export class ComboboxMarkup {
|
|
|
118
118
|
.forEach(node => {
|
|
119
119
|
const relatedPart = option.querySelector(`[part*="${node.getAttribute('part')}"]`);
|
|
120
120
|
if (relatedPart) {
|
|
121
|
-
tag.replaceChild(
|
|
121
|
+
tag.replaceChild(relatedPart.cloneNode(true), node);
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
const clearButton = tag.querySelector('[part*="tag-clear-button"]');
|
|
@@ -7,9 +7,6 @@ export class HTMLComboboxTagElement extends HTMLElement {
|
|
|
7
7
|
throw new Error(`A <button> with part="tag-clear-button" is required for <combo-box> with multiple attribute`);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
if (!this.querySelector('[part="tag-label"]')) {
|
|
11
|
-
throw new Error(`Invalid <box-tag-template>, an element with part="tag-label" is required as a descendant`);
|
|
12
|
-
}
|
|
13
10
|
}
|
|
14
11
|
}
|
|
15
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HTML.combobox.tag.element.d.ts","sourceRoot":"","sources":["../../../src/combobox/HTML.combobox.tag.element.ts"],"names":[],"mappings":"AAAA,qBAAa,sBAAuB,SAAQ,WAAW;IACrD,iBAAiB;
|
|
1
|
+
{"version":3,"file":"HTML.combobox.tag.element.d.ts","sourceRoot":"","sources":["../../../src/combobox/HTML.combobox.tag.element.ts"],"names":[],"mappings":"AAAA,qBAAa,sBAAuB,SAAQ,WAAW;IACrD,iBAAiB;CAUlB"}
|