native-document 1.0.103 → 1.0.104
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.
|
@@ -4520,6 +4520,13 @@ var NativeComponents = (function (exports) {
|
|
|
4520
4520
|
*/
|
|
4521
4521
|
HtmlElementWrapper('td');
|
|
4522
4522
|
|
|
4523
|
+
/**
|
|
4524
|
+
* Creates an empty `DocumentFragment` wrapper.
|
|
4525
|
+
* Useful for grouping elements without adding a DOM node.
|
|
4526
|
+
* @type {function(GlobalAttributes=, NdChild|NdChild[]=): DocumentFragment}
|
|
4527
|
+
*/
|
|
4528
|
+
HtmlElementWrapper('');
|
|
4529
|
+
|
|
4523
4530
|
/**
|
|
4524
4531
|
* Represents an individual item within an Accordion component
|
|
4525
4532
|
* @param {{ id?: string|number, title?: string, icon?: string, collapsible?: boolean, content?: ValidChildren, renderHeader?: Function, renderContent?: Function, render?: Function, expanded?: Observable<boolean>, disabled?: boolean }} config - Configuration object
|
|
@@ -6107,15 +6107,9 @@ var NativeDocument = (function (exports) {
|
|
|
6107
6107
|
/**
|
|
6108
6108
|
* Creates an empty `DocumentFragment` wrapper.
|
|
6109
6109
|
* Useful for grouping elements without adding a DOM node.
|
|
6110
|
-
* @param {NdChild} children
|
|
6111
6110
|
* @type {function(GlobalAttributes=, NdChild|NdChild[]=): DocumentFragment}
|
|
6112
|
-
* @returns {Anchor}
|
|
6113
6111
|
*/
|
|
6114
|
-
const Fragment = (
|
|
6115
|
-
const fragment = Anchor('Fragment');
|
|
6116
|
-
fragment.append(children);
|
|
6117
|
-
return fragment;
|
|
6118
|
-
};
|
|
6112
|
+
const Fragment = HtmlElementWrapper('');
|
|
6119
6113
|
|
|
6120
6114
|
var elements = /*#__PURE__*/Object.freeze({
|
|
6121
6115
|
__proto__: null,
|
|
@@ -6658,7 +6652,7 @@ var NativeDocument = (function (exports) {
|
|
|
6658
6652
|
}
|
|
6659
6653
|
|
|
6660
6654
|
let anchor = node;
|
|
6661
|
-
if(!Validator.isAnchor(node)) {
|
|
6655
|
+
if(!Validator.isAnchor(node) || Validator.isFragment(node)) {
|
|
6662
6656
|
anchor = Anchor(path);
|
|
6663
6657
|
anchor.appendChild(node);
|
|
6664
6658
|
}
|