@pod-os/elements 0.4.1-97844f2.0 → 0.5.0
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/ion-app_42.cjs.entry.js +173 -24
- package/dist/collection/components/pos-navigation-bar/pos-navigation-bar.js +1 -1
- package/dist/custom-elements/index.js +173 -24
- package/dist/elements/elements.esm.js +1 -1
- package/dist/elements/{p-74916699.entry.js → p-1366069b.entry.js} +2 -2
- package/dist/esm/ion-app_42.entry.js +173 -24
- package/package.json +1 -1
|
@@ -25284,6 +25284,22 @@ var require_regenerator = __commonJS({
|
|
|
25284
25284
|
// ../node_modules/@xmldom/xmldom/lib/conventions.js
|
|
25285
25285
|
var require_conventions = __commonJS({
|
|
25286
25286
|
"../node_modules/@xmldom/xmldom/lib/conventions.js"(exports) {
|
|
25287
|
+
function find(list, predicate, ac) {
|
|
25288
|
+
if (ac === void 0) {
|
|
25289
|
+
ac = Array.prototype;
|
|
25290
|
+
}
|
|
25291
|
+
if (list && typeof ac.find === "function") {
|
|
25292
|
+
return ac.find.call(list, predicate);
|
|
25293
|
+
}
|
|
25294
|
+
for (var i = 0; i < list.length; i++) {
|
|
25295
|
+
if (Object.prototype.hasOwnProperty.call(list, i)) {
|
|
25296
|
+
var item = list[i];
|
|
25297
|
+
if (predicate.call(void 0, item, i, list)) {
|
|
25298
|
+
return item;
|
|
25299
|
+
}
|
|
25300
|
+
}
|
|
25301
|
+
}
|
|
25302
|
+
}
|
|
25287
25303
|
function freeze(object, oc) {
|
|
25288
25304
|
if (oc === void 0) {
|
|
25289
25305
|
oc = Object;
|
|
@@ -25321,6 +25337,7 @@ var require_conventions = __commonJS({
|
|
|
25321
25337
|
XMLNS: "http://www.w3.org/2000/xmlns/"
|
|
25322
25338
|
});
|
|
25323
25339
|
exports.assign = assign;
|
|
25340
|
+
exports.find = find;
|
|
25324
25341
|
exports.freeze = freeze;
|
|
25325
25342
|
exports.MIME_TYPE = MIME_TYPE;
|
|
25326
25343
|
exports.NAMESPACE = NAMESPACE;
|
|
@@ -25331,6 +25348,7 @@ var require_conventions = __commonJS({
|
|
|
25331
25348
|
var require_dom = __commonJS({
|
|
25332
25349
|
"../node_modules/@xmldom/xmldom/lib/dom.js"(exports) {
|
|
25333
25350
|
var conventions = require_conventions();
|
|
25351
|
+
var find = conventions.find;
|
|
25334
25352
|
var NAMESPACE = conventions.NAMESPACE;
|
|
25335
25353
|
function notEmptyString(input) {
|
|
25336
25354
|
return input !== "";
|
|
@@ -25438,6 +25456,12 @@ var require_dom = __commonJS({
|
|
|
25438
25456
|
serializeToString(this[i], buf, isHTML, nodeFilter);
|
|
25439
25457
|
}
|
|
25440
25458
|
return buf.join("");
|
|
25459
|
+
},
|
|
25460
|
+
filter: function(predicate) {
|
|
25461
|
+
return Array.prototype.filter.call(this, predicate);
|
|
25462
|
+
},
|
|
25463
|
+
indexOf: function(item) {
|
|
25464
|
+
return Array.prototype.indexOf.call(this, item);
|
|
25441
25465
|
}
|
|
25442
25466
|
};
|
|
25443
25467
|
function LiveNodeList(node, refresh) {
|
|
@@ -25500,7 +25524,7 @@ var require_dom = __commonJS({
|
|
|
25500
25524
|
}
|
|
25501
25525
|
}
|
|
25502
25526
|
} else {
|
|
25503
|
-
throw DOMException(NOT_FOUND_ERR, new Error(el.tagName + "@" + attr));
|
|
25527
|
+
throw new DOMException(NOT_FOUND_ERR, new Error(el.tagName + "@" + attr));
|
|
25504
25528
|
}
|
|
25505
25529
|
}
|
|
25506
25530
|
NamedNodeMap.prototype = {
|
|
@@ -25602,7 +25626,7 @@ var require_dom = __commonJS({
|
|
|
25602
25626
|
return _insertBefore(this, newChild, refChild);
|
|
25603
25627
|
},
|
|
25604
25628
|
replaceChild: function(newChild, oldChild) {
|
|
25605
|
-
this
|
|
25629
|
+
_insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
|
|
25606
25630
|
if (oldChild) {
|
|
25607
25631
|
this.removeChild(oldChild);
|
|
25608
25632
|
}
|
|
@@ -25689,6 +25713,7 @@ var require_dom = __commonJS({
|
|
|
25689
25713
|
}
|
|
25690
25714
|
}
|
|
25691
25715
|
function Document() {
|
|
25716
|
+
this.ownerDocument = this;
|
|
25692
25717
|
}
|
|
25693
25718
|
function _onAddAttribute(doc, el, newAttr) {
|
|
25694
25719
|
doc && doc._inc++;
|
|
@@ -25741,41 +25766,153 @@ var require_dom = __commonJS({
|
|
|
25741
25766
|
_onUpdateChild(parentNode.ownerDocument, parentNode);
|
|
25742
25767
|
return child;
|
|
25743
25768
|
}
|
|
25744
|
-
function
|
|
25745
|
-
|
|
25769
|
+
function hasValidParentNodeType(node) {
|
|
25770
|
+
return node && (node.nodeType === Node3.DOCUMENT_NODE || node.nodeType === Node3.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node3.ELEMENT_NODE);
|
|
25771
|
+
}
|
|
25772
|
+
function hasInsertableNodeType(node) {
|
|
25773
|
+
return node && (isElementNode(node) || isTextNode(node) || isDocTypeNode(node) || node.nodeType === Node3.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node3.COMMENT_NODE || node.nodeType === Node3.PROCESSING_INSTRUCTION_NODE);
|
|
25774
|
+
}
|
|
25775
|
+
function isDocTypeNode(node) {
|
|
25776
|
+
return node && node.nodeType === Node3.DOCUMENT_TYPE_NODE;
|
|
25777
|
+
}
|
|
25778
|
+
function isElementNode(node) {
|
|
25779
|
+
return node && node.nodeType === Node3.ELEMENT_NODE;
|
|
25780
|
+
}
|
|
25781
|
+
function isTextNode(node) {
|
|
25782
|
+
return node && node.nodeType === Node3.TEXT_NODE;
|
|
25783
|
+
}
|
|
25784
|
+
function isElementInsertionPossible(doc, child) {
|
|
25785
|
+
var parentChildNodes = doc.childNodes || [];
|
|
25786
|
+
if (find(parentChildNodes, isElementNode) || isDocTypeNode(child)) {
|
|
25787
|
+
return false;
|
|
25788
|
+
}
|
|
25789
|
+
var docTypeNode = find(parentChildNodes, isDocTypeNode);
|
|
25790
|
+
return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));
|
|
25791
|
+
}
|
|
25792
|
+
function isElementReplacementPossible(doc, child) {
|
|
25793
|
+
var parentChildNodes = doc.childNodes || [];
|
|
25794
|
+
function hasElementChildThatIsNotChild(node) {
|
|
25795
|
+
return isElementNode(node) && node !== child;
|
|
25796
|
+
}
|
|
25797
|
+
if (find(parentChildNodes, hasElementChildThatIsNotChild)) {
|
|
25798
|
+
return false;
|
|
25799
|
+
}
|
|
25800
|
+
var docTypeNode = find(parentChildNodes, isDocTypeNode);
|
|
25801
|
+
return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));
|
|
25802
|
+
}
|
|
25803
|
+
function assertPreInsertionValidity1to5(parent2, node, child) {
|
|
25804
|
+
if (!hasValidParentNodeType(parent2)) {
|
|
25805
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Unexpected parent node type " + parent2.nodeType);
|
|
25806
|
+
}
|
|
25807
|
+
if (child && child.parentNode !== parent2) {
|
|
25808
|
+
throw new DOMException(NOT_FOUND_ERR, "child not in parent");
|
|
25809
|
+
}
|
|
25810
|
+
if (!hasInsertableNodeType(node) || isDocTypeNode(node) && parent2.nodeType !== Node3.DOCUMENT_NODE) {
|
|
25811
|
+
throw new DOMException(
|
|
25812
|
+
HIERARCHY_REQUEST_ERR,
|
|
25813
|
+
"Unexpected node type " + node.nodeType + " for parent node type " + parent2.nodeType
|
|
25814
|
+
);
|
|
25815
|
+
}
|
|
25816
|
+
}
|
|
25817
|
+
function assertPreInsertionValidityInDocument(parent2, node, child) {
|
|
25818
|
+
var parentChildNodes = parent2.childNodes || [];
|
|
25819
|
+
var nodeChildNodes = node.childNodes || [];
|
|
25820
|
+
if (node.nodeType === Node3.DOCUMENT_FRAGMENT_NODE) {
|
|
25821
|
+
var nodeChildElements = nodeChildNodes.filter(isElementNode);
|
|
25822
|
+
if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {
|
|
25823
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
|
|
25824
|
+
}
|
|
25825
|
+
if (nodeChildElements.length === 1 && !isElementInsertionPossible(parent2, child)) {
|
|
25826
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
|
|
25827
|
+
}
|
|
25828
|
+
}
|
|
25829
|
+
if (isElementNode(node)) {
|
|
25830
|
+
if (!isElementInsertionPossible(parent2, child)) {
|
|
25831
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
|
|
25832
|
+
}
|
|
25833
|
+
}
|
|
25834
|
+
if (isDocTypeNode(node)) {
|
|
25835
|
+
if (find(parentChildNodes, isDocTypeNode)) {
|
|
25836
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
|
|
25837
|
+
}
|
|
25838
|
+
var parentElementChild = find(parentChildNodes, isElementNode);
|
|
25839
|
+
if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {
|
|
25840
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
|
|
25841
|
+
}
|
|
25842
|
+
if (!child && parentElementChild) {
|
|
25843
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can not be appended since element is present");
|
|
25844
|
+
}
|
|
25845
|
+
}
|
|
25846
|
+
}
|
|
25847
|
+
function assertPreReplacementValidityInDocument(parent2, node, child) {
|
|
25848
|
+
var parentChildNodes = parent2.childNodes || [];
|
|
25849
|
+
var nodeChildNodes = node.childNodes || [];
|
|
25850
|
+
if (node.nodeType === Node3.DOCUMENT_FRAGMENT_NODE) {
|
|
25851
|
+
var nodeChildElements = nodeChildNodes.filter(isElementNode);
|
|
25852
|
+
if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {
|
|
25853
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
|
|
25854
|
+
}
|
|
25855
|
+
if (nodeChildElements.length === 1 && !isElementReplacementPossible(parent2, child)) {
|
|
25856
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
|
|
25857
|
+
}
|
|
25858
|
+
}
|
|
25859
|
+
if (isElementNode(node)) {
|
|
25860
|
+
if (!isElementReplacementPossible(parent2, child)) {
|
|
25861
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
|
|
25862
|
+
}
|
|
25863
|
+
}
|
|
25864
|
+
if (isDocTypeNode(node)) {
|
|
25865
|
+
let hasDoctypeChildThatIsNotChild2 = function(node2) {
|
|
25866
|
+
return isDocTypeNode(node2) && node2 !== child;
|
|
25867
|
+
};
|
|
25868
|
+
if (find(parentChildNodes, hasDoctypeChildThatIsNotChild2)) {
|
|
25869
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
|
|
25870
|
+
}
|
|
25871
|
+
var parentElementChild = find(parentChildNodes, isElementNode);
|
|
25872
|
+
if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {
|
|
25873
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
|
|
25874
|
+
}
|
|
25875
|
+
}
|
|
25876
|
+
}
|
|
25877
|
+
function _insertBefore(parent2, node, child, _inDocumentAssertion) {
|
|
25878
|
+
assertPreInsertionValidity1to5(parent2, node, child);
|
|
25879
|
+
if (parent2.nodeType === Node3.DOCUMENT_NODE) {
|
|
25880
|
+
(_inDocumentAssertion || assertPreInsertionValidityInDocument)(parent2, node, child);
|
|
25881
|
+
}
|
|
25882
|
+
var cp = node.parentNode;
|
|
25746
25883
|
if (cp) {
|
|
25747
|
-
cp.removeChild(
|
|
25884
|
+
cp.removeChild(node);
|
|
25748
25885
|
}
|
|
25749
|
-
if (
|
|
25750
|
-
var newFirst =
|
|
25886
|
+
if (node.nodeType === DOCUMENT_FRAGMENT_NODE) {
|
|
25887
|
+
var newFirst = node.firstChild;
|
|
25751
25888
|
if (newFirst == null) {
|
|
25752
|
-
return
|
|
25889
|
+
return node;
|
|
25753
25890
|
}
|
|
25754
|
-
var newLast =
|
|
25891
|
+
var newLast = node.lastChild;
|
|
25755
25892
|
} else {
|
|
25756
|
-
newFirst = newLast =
|
|
25893
|
+
newFirst = newLast = node;
|
|
25757
25894
|
}
|
|
25758
|
-
var pre =
|
|
25895
|
+
var pre = child ? child.previousSibling : parent2.lastChild;
|
|
25759
25896
|
newFirst.previousSibling = pre;
|
|
25760
|
-
newLast.nextSibling =
|
|
25897
|
+
newLast.nextSibling = child;
|
|
25761
25898
|
if (pre) {
|
|
25762
25899
|
pre.nextSibling = newFirst;
|
|
25763
25900
|
} else {
|
|
25764
|
-
|
|
25901
|
+
parent2.firstChild = newFirst;
|
|
25765
25902
|
}
|
|
25766
|
-
if (
|
|
25767
|
-
|
|
25903
|
+
if (child == null) {
|
|
25904
|
+
parent2.lastChild = newLast;
|
|
25768
25905
|
} else {
|
|
25769
|
-
|
|
25906
|
+
child.previousSibling = newLast;
|
|
25770
25907
|
}
|
|
25771
25908
|
do {
|
|
25772
|
-
newFirst.parentNode =
|
|
25909
|
+
newFirst.parentNode = parent2;
|
|
25773
25910
|
} while (newFirst !== newLast && (newFirst = newFirst.nextSibling));
|
|
25774
|
-
_onUpdateChild(
|
|
25775
|
-
if (
|
|
25776
|
-
|
|
25911
|
+
_onUpdateChild(parent2.ownerDocument || parent2, parent2);
|
|
25912
|
+
if (node.nodeType == DOCUMENT_FRAGMENT_NODE) {
|
|
25913
|
+
node.firstChild = node.lastChild = null;
|
|
25777
25914
|
}
|
|
25778
|
-
return
|
|
25915
|
+
return node;
|
|
25779
25916
|
}
|
|
25780
25917
|
function _appendSingleChild(parentNode, newChild) {
|
|
25781
25918
|
if (newChild.parentNode) {
|
|
@@ -25809,10 +25946,12 @@ var require_dom = __commonJS({
|
|
|
25809
25946
|
}
|
|
25810
25947
|
return newChild;
|
|
25811
25948
|
}
|
|
25812
|
-
|
|
25949
|
+
_insertBefore(this, newChild, refChild);
|
|
25950
|
+
newChild.ownerDocument = this;
|
|
25951
|
+
if (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) {
|
|
25813
25952
|
this.documentElement = newChild;
|
|
25814
25953
|
}
|
|
25815
|
-
return
|
|
25954
|
+
return newChild;
|
|
25816
25955
|
},
|
|
25817
25956
|
removeChild: function(oldChild) {
|
|
25818
25957
|
if (this.documentElement == oldChild) {
|
|
@@ -25820,6 +25959,16 @@ var require_dom = __commonJS({
|
|
|
25820
25959
|
}
|
|
25821
25960
|
return _removeChild(this, oldChild);
|
|
25822
25961
|
},
|
|
25962
|
+
replaceChild: function(newChild, oldChild) {
|
|
25963
|
+
_insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
|
|
25964
|
+
newChild.ownerDocument = this;
|
|
25965
|
+
if (oldChild) {
|
|
25966
|
+
this.removeChild(oldChild);
|
|
25967
|
+
}
|
|
25968
|
+
if (isElementNode(newChild)) {
|
|
25969
|
+
this.documentElement = newChild;
|
|
25970
|
+
}
|
|
25971
|
+
},
|
|
25823
25972
|
importNode: function(importedNode, deep) {
|
|
25824
25973
|
return importNode(this, importedNode, deep);
|
|
25825
25974
|
},
|
|
@@ -40591,7 +40740,7 @@ const PosNavigationBar = class {
|
|
|
40591
40740
|
this.linkEmitter.emit(this.value);
|
|
40592
40741
|
}
|
|
40593
40742
|
render() {
|
|
40594
|
-
return (index$1.h("form", { onSubmit: e => this.onSubmit(e) }, index$1.h("ion-searchbar", { enterkeyhint: "search", placeholder: "Enter URI", value: this.uri, onIonChange: e => this.onChange(e) })));
|
|
40743
|
+
return (index$1.h("form", { onSubmit: e => this.onSubmit(e) }, index$1.h("ion-searchbar", { enterkeyhint: "search", placeholder: "Enter URI", value: this.uri, debounce: 0, onIonChange: e => this.onChange(e) })));
|
|
40595
40744
|
}
|
|
40596
40745
|
};
|
|
40597
40746
|
|
|
@@ -12,7 +12,7 @@ export class PosNavigationBar {
|
|
|
12
12
|
this.linkEmitter.emit(this.value);
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h("form", { onSubmit: e => this.onSubmit(e) }, h("ion-searchbar", { enterkeyhint: "search", placeholder: "Enter URI", value: this.uri, onIonChange: e => this.onChange(e) })));
|
|
15
|
+
return (h("form", { onSubmit: e => this.onSubmit(e) }, h("ion-searchbar", { enterkeyhint: "search", placeholder: "Enter URI", value: this.uri, debounce: 0, onIonChange: e => this.onChange(e) })));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "pos-navigation-bar"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -41304,6 +41304,22 @@ var require_regenerator = __commonJS({
|
|
|
41304
41304
|
// ../node_modules/@xmldom/xmldom/lib/conventions.js
|
|
41305
41305
|
var require_conventions = __commonJS({
|
|
41306
41306
|
"../node_modules/@xmldom/xmldom/lib/conventions.js"(exports) {
|
|
41307
|
+
function find(list, predicate, ac) {
|
|
41308
|
+
if (ac === void 0) {
|
|
41309
|
+
ac = Array.prototype;
|
|
41310
|
+
}
|
|
41311
|
+
if (list && typeof ac.find === "function") {
|
|
41312
|
+
return ac.find.call(list, predicate);
|
|
41313
|
+
}
|
|
41314
|
+
for (var i = 0; i < list.length; i++) {
|
|
41315
|
+
if (Object.prototype.hasOwnProperty.call(list, i)) {
|
|
41316
|
+
var item = list[i];
|
|
41317
|
+
if (predicate.call(void 0, item, i, list)) {
|
|
41318
|
+
return item;
|
|
41319
|
+
}
|
|
41320
|
+
}
|
|
41321
|
+
}
|
|
41322
|
+
}
|
|
41307
41323
|
function freeze(object, oc) {
|
|
41308
41324
|
if (oc === void 0) {
|
|
41309
41325
|
oc = Object;
|
|
@@ -41341,6 +41357,7 @@ var require_conventions = __commonJS({
|
|
|
41341
41357
|
XMLNS: "http://www.w3.org/2000/xmlns/"
|
|
41342
41358
|
});
|
|
41343
41359
|
exports.assign = assign;
|
|
41360
|
+
exports.find = find;
|
|
41344
41361
|
exports.freeze = freeze;
|
|
41345
41362
|
exports.MIME_TYPE = MIME_TYPE;
|
|
41346
41363
|
exports.NAMESPACE = NAMESPACE;
|
|
@@ -41351,6 +41368,7 @@ var require_conventions = __commonJS({
|
|
|
41351
41368
|
var require_dom = __commonJS({
|
|
41352
41369
|
"../node_modules/@xmldom/xmldom/lib/dom.js"(exports) {
|
|
41353
41370
|
var conventions = require_conventions();
|
|
41371
|
+
var find = conventions.find;
|
|
41354
41372
|
var NAMESPACE = conventions.NAMESPACE;
|
|
41355
41373
|
function notEmptyString(input) {
|
|
41356
41374
|
return input !== "";
|
|
@@ -41458,6 +41476,12 @@ var require_dom = __commonJS({
|
|
|
41458
41476
|
serializeToString(this[i], buf, isHTML, nodeFilter);
|
|
41459
41477
|
}
|
|
41460
41478
|
return buf.join("");
|
|
41479
|
+
},
|
|
41480
|
+
filter: function(predicate) {
|
|
41481
|
+
return Array.prototype.filter.call(this, predicate);
|
|
41482
|
+
},
|
|
41483
|
+
indexOf: function(item) {
|
|
41484
|
+
return Array.prototype.indexOf.call(this, item);
|
|
41461
41485
|
}
|
|
41462
41486
|
};
|
|
41463
41487
|
function LiveNodeList(node, refresh) {
|
|
@@ -41520,7 +41544,7 @@ var require_dom = __commonJS({
|
|
|
41520
41544
|
}
|
|
41521
41545
|
}
|
|
41522
41546
|
} else {
|
|
41523
|
-
throw DOMException(NOT_FOUND_ERR, new Error(el.tagName + "@" + attr));
|
|
41547
|
+
throw new DOMException(NOT_FOUND_ERR, new Error(el.tagName + "@" + attr));
|
|
41524
41548
|
}
|
|
41525
41549
|
}
|
|
41526
41550
|
NamedNodeMap.prototype = {
|
|
@@ -41622,7 +41646,7 @@ var require_dom = __commonJS({
|
|
|
41622
41646
|
return _insertBefore(this, newChild, refChild);
|
|
41623
41647
|
},
|
|
41624
41648
|
replaceChild: function(newChild, oldChild) {
|
|
41625
|
-
this
|
|
41649
|
+
_insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
|
|
41626
41650
|
if (oldChild) {
|
|
41627
41651
|
this.removeChild(oldChild);
|
|
41628
41652
|
}
|
|
@@ -41709,6 +41733,7 @@ var require_dom = __commonJS({
|
|
|
41709
41733
|
}
|
|
41710
41734
|
}
|
|
41711
41735
|
function Document() {
|
|
41736
|
+
this.ownerDocument = this;
|
|
41712
41737
|
}
|
|
41713
41738
|
function _onAddAttribute(doc, el, newAttr) {
|
|
41714
41739
|
doc && doc._inc++;
|
|
@@ -41761,41 +41786,153 @@ var require_dom = __commonJS({
|
|
|
41761
41786
|
_onUpdateChild(parentNode.ownerDocument, parentNode);
|
|
41762
41787
|
return child;
|
|
41763
41788
|
}
|
|
41764
|
-
function
|
|
41765
|
-
|
|
41789
|
+
function hasValidParentNodeType(node) {
|
|
41790
|
+
return node && (node.nodeType === Node3.DOCUMENT_NODE || node.nodeType === Node3.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node3.ELEMENT_NODE);
|
|
41791
|
+
}
|
|
41792
|
+
function hasInsertableNodeType(node) {
|
|
41793
|
+
return node && (isElementNode(node) || isTextNode(node) || isDocTypeNode(node) || node.nodeType === Node3.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node3.COMMENT_NODE || node.nodeType === Node3.PROCESSING_INSTRUCTION_NODE);
|
|
41794
|
+
}
|
|
41795
|
+
function isDocTypeNode(node) {
|
|
41796
|
+
return node && node.nodeType === Node3.DOCUMENT_TYPE_NODE;
|
|
41797
|
+
}
|
|
41798
|
+
function isElementNode(node) {
|
|
41799
|
+
return node && node.nodeType === Node3.ELEMENT_NODE;
|
|
41800
|
+
}
|
|
41801
|
+
function isTextNode(node) {
|
|
41802
|
+
return node && node.nodeType === Node3.TEXT_NODE;
|
|
41803
|
+
}
|
|
41804
|
+
function isElementInsertionPossible(doc, child) {
|
|
41805
|
+
var parentChildNodes = doc.childNodes || [];
|
|
41806
|
+
if (find(parentChildNodes, isElementNode) || isDocTypeNode(child)) {
|
|
41807
|
+
return false;
|
|
41808
|
+
}
|
|
41809
|
+
var docTypeNode = find(parentChildNodes, isDocTypeNode);
|
|
41810
|
+
return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));
|
|
41811
|
+
}
|
|
41812
|
+
function isElementReplacementPossible(doc, child) {
|
|
41813
|
+
var parentChildNodes = doc.childNodes || [];
|
|
41814
|
+
function hasElementChildThatIsNotChild(node) {
|
|
41815
|
+
return isElementNode(node) && node !== child;
|
|
41816
|
+
}
|
|
41817
|
+
if (find(parentChildNodes, hasElementChildThatIsNotChild)) {
|
|
41818
|
+
return false;
|
|
41819
|
+
}
|
|
41820
|
+
var docTypeNode = find(parentChildNodes, isDocTypeNode);
|
|
41821
|
+
return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));
|
|
41822
|
+
}
|
|
41823
|
+
function assertPreInsertionValidity1to5(parent2, node, child) {
|
|
41824
|
+
if (!hasValidParentNodeType(parent2)) {
|
|
41825
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Unexpected parent node type " + parent2.nodeType);
|
|
41826
|
+
}
|
|
41827
|
+
if (child && child.parentNode !== parent2) {
|
|
41828
|
+
throw new DOMException(NOT_FOUND_ERR, "child not in parent");
|
|
41829
|
+
}
|
|
41830
|
+
if (!hasInsertableNodeType(node) || isDocTypeNode(node) && parent2.nodeType !== Node3.DOCUMENT_NODE) {
|
|
41831
|
+
throw new DOMException(
|
|
41832
|
+
HIERARCHY_REQUEST_ERR,
|
|
41833
|
+
"Unexpected node type " + node.nodeType + " for parent node type " + parent2.nodeType
|
|
41834
|
+
);
|
|
41835
|
+
}
|
|
41836
|
+
}
|
|
41837
|
+
function assertPreInsertionValidityInDocument(parent2, node, child) {
|
|
41838
|
+
var parentChildNodes = parent2.childNodes || [];
|
|
41839
|
+
var nodeChildNodes = node.childNodes || [];
|
|
41840
|
+
if (node.nodeType === Node3.DOCUMENT_FRAGMENT_NODE) {
|
|
41841
|
+
var nodeChildElements = nodeChildNodes.filter(isElementNode);
|
|
41842
|
+
if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {
|
|
41843
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
|
|
41844
|
+
}
|
|
41845
|
+
if (nodeChildElements.length === 1 && !isElementInsertionPossible(parent2, child)) {
|
|
41846
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
|
|
41847
|
+
}
|
|
41848
|
+
}
|
|
41849
|
+
if (isElementNode(node)) {
|
|
41850
|
+
if (!isElementInsertionPossible(parent2, child)) {
|
|
41851
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
|
|
41852
|
+
}
|
|
41853
|
+
}
|
|
41854
|
+
if (isDocTypeNode(node)) {
|
|
41855
|
+
if (find(parentChildNodes, isDocTypeNode)) {
|
|
41856
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
|
|
41857
|
+
}
|
|
41858
|
+
var parentElementChild = find(parentChildNodes, isElementNode);
|
|
41859
|
+
if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {
|
|
41860
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
|
|
41861
|
+
}
|
|
41862
|
+
if (!child && parentElementChild) {
|
|
41863
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can not be appended since element is present");
|
|
41864
|
+
}
|
|
41865
|
+
}
|
|
41866
|
+
}
|
|
41867
|
+
function assertPreReplacementValidityInDocument(parent2, node, child) {
|
|
41868
|
+
var parentChildNodes = parent2.childNodes || [];
|
|
41869
|
+
var nodeChildNodes = node.childNodes || [];
|
|
41870
|
+
if (node.nodeType === Node3.DOCUMENT_FRAGMENT_NODE) {
|
|
41871
|
+
var nodeChildElements = nodeChildNodes.filter(isElementNode);
|
|
41872
|
+
if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {
|
|
41873
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
|
|
41874
|
+
}
|
|
41875
|
+
if (nodeChildElements.length === 1 && !isElementReplacementPossible(parent2, child)) {
|
|
41876
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
|
|
41877
|
+
}
|
|
41878
|
+
}
|
|
41879
|
+
if (isElementNode(node)) {
|
|
41880
|
+
if (!isElementReplacementPossible(parent2, child)) {
|
|
41881
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
|
|
41882
|
+
}
|
|
41883
|
+
}
|
|
41884
|
+
if (isDocTypeNode(node)) {
|
|
41885
|
+
let hasDoctypeChildThatIsNotChild2 = function(node2) {
|
|
41886
|
+
return isDocTypeNode(node2) && node2 !== child;
|
|
41887
|
+
};
|
|
41888
|
+
if (find(parentChildNodes, hasDoctypeChildThatIsNotChild2)) {
|
|
41889
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
|
|
41890
|
+
}
|
|
41891
|
+
var parentElementChild = find(parentChildNodes, isElementNode);
|
|
41892
|
+
if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {
|
|
41893
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
|
|
41894
|
+
}
|
|
41895
|
+
}
|
|
41896
|
+
}
|
|
41897
|
+
function _insertBefore(parent2, node, child, _inDocumentAssertion) {
|
|
41898
|
+
assertPreInsertionValidity1to5(parent2, node, child);
|
|
41899
|
+
if (parent2.nodeType === Node3.DOCUMENT_NODE) {
|
|
41900
|
+
(_inDocumentAssertion || assertPreInsertionValidityInDocument)(parent2, node, child);
|
|
41901
|
+
}
|
|
41902
|
+
var cp = node.parentNode;
|
|
41766
41903
|
if (cp) {
|
|
41767
|
-
cp.removeChild(
|
|
41904
|
+
cp.removeChild(node);
|
|
41768
41905
|
}
|
|
41769
|
-
if (
|
|
41770
|
-
var newFirst =
|
|
41906
|
+
if (node.nodeType === DOCUMENT_FRAGMENT_NODE) {
|
|
41907
|
+
var newFirst = node.firstChild;
|
|
41771
41908
|
if (newFirst == null) {
|
|
41772
|
-
return
|
|
41909
|
+
return node;
|
|
41773
41910
|
}
|
|
41774
|
-
var newLast =
|
|
41911
|
+
var newLast = node.lastChild;
|
|
41775
41912
|
} else {
|
|
41776
|
-
newFirst = newLast =
|
|
41913
|
+
newFirst = newLast = node;
|
|
41777
41914
|
}
|
|
41778
|
-
var pre =
|
|
41915
|
+
var pre = child ? child.previousSibling : parent2.lastChild;
|
|
41779
41916
|
newFirst.previousSibling = pre;
|
|
41780
|
-
newLast.nextSibling =
|
|
41917
|
+
newLast.nextSibling = child;
|
|
41781
41918
|
if (pre) {
|
|
41782
41919
|
pre.nextSibling = newFirst;
|
|
41783
41920
|
} else {
|
|
41784
|
-
|
|
41921
|
+
parent2.firstChild = newFirst;
|
|
41785
41922
|
}
|
|
41786
|
-
if (
|
|
41787
|
-
|
|
41923
|
+
if (child == null) {
|
|
41924
|
+
parent2.lastChild = newLast;
|
|
41788
41925
|
} else {
|
|
41789
|
-
|
|
41926
|
+
child.previousSibling = newLast;
|
|
41790
41927
|
}
|
|
41791
41928
|
do {
|
|
41792
|
-
newFirst.parentNode =
|
|
41929
|
+
newFirst.parentNode = parent2;
|
|
41793
41930
|
} while (newFirst !== newLast && (newFirst = newFirst.nextSibling));
|
|
41794
|
-
_onUpdateChild(
|
|
41795
|
-
if (
|
|
41796
|
-
|
|
41931
|
+
_onUpdateChild(parent2.ownerDocument || parent2, parent2);
|
|
41932
|
+
if (node.nodeType == DOCUMENT_FRAGMENT_NODE) {
|
|
41933
|
+
node.firstChild = node.lastChild = null;
|
|
41797
41934
|
}
|
|
41798
|
-
return
|
|
41935
|
+
return node;
|
|
41799
41936
|
}
|
|
41800
41937
|
function _appendSingleChild(parentNode, newChild) {
|
|
41801
41938
|
if (newChild.parentNode) {
|
|
@@ -41829,10 +41966,12 @@ var require_dom = __commonJS({
|
|
|
41829
41966
|
}
|
|
41830
41967
|
return newChild;
|
|
41831
41968
|
}
|
|
41832
|
-
|
|
41969
|
+
_insertBefore(this, newChild, refChild);
|
|
41970
|
+
newChild.ownerDocument = this;
|
|
41971
|
+
if (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) {
|
|
41833
41972
|
this.documentElement = newChild;
|
|
41834
41973
|
}
|
|
41835
|
-
return
|
|
41974
|
+
return newChild;
|
|
41836
41975
|
},
|
|
41837
41976
|
removeChild: function(oldChild) {
|
|
41838
41977
|
if (this.documentElement == oldChild) {
|
|
@@ -41840,6 +41979,16 @@ var require_dom = __commonJS({
|
|
|
41840
41979
|
}
|
|
41841
41980
|
return _removeChild(this, oldChild);
|
|
41842
41981
|
},
|
|
41982
|
+
replaceChild: function(newChild, oldChild) {
|
|
41983
|
+
_insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
|
|
41984
|
+
newChild.ownerDocument = this;
|
|
41985
|
+
if (oldChild) {
|
|
41986
|
+
this.removeChild(oldChild);
|
|
41987
|
+
}
|
|
41988
|
+
if (isElementNode(newChild)) {
|
|
41989
|
+
this.documentElement = newChild;
|
|
41990
|
+
}
|
|
41991
|
+
},
|
|
41843
41992
|
importNode: function(importedNode, deep) {
|
|
41844
41993
|
return importNode(this, importedNode, deep);
|
|
41845
41994
|
},
|
|
@@ -56627,7 +56776,7 @@ const PosNavigationBar$1 = class extends HTMLElement$1 {
|
|
|
56627
56776
|
this.linkEmitter.emit(this.value);
|
|
56628
56777
|
}
|
|
56629
56778
|
render() {
|
|
56630
|
-
return (h("form", { onSubmit: e => this.onSubmit(e) }, h("ion-searchbar", { enterkeyhint: "search", placeholder: "Enter URI", value: this.uri, onIonChange: e => this.onChange(e) })));
|
|
56779
|
+
return (h("form", { onSubmit: e => this.onSubmit(e) }, h("ion-searchbar", { enterkeyhint: "search", placeholder: "Enter URI", value: this.uri, debounce: 0, onIonChange: e => this.onChange(e) })));
|
|
56631
56780
|
}
|
|
56632
56781
|
};
|
|
56633
56782
|
|