@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
|
@@ -25280,6 +25280,22 @@ var require_regenerator = __commonJS({
|
|
|
25280
25280
|
// ../node_modules/@xmldom/xmldom/lib/conventions.js
|
|
25281
25281
|
var require_conventions = __commonJS({
|
|
25282
25282
|
"../node_modules/@xmldom/xmldom/lib/conventions.js"(exports) {
|
|
25283
|
+
function find(list, predicate, ac) {
|
|
25284
|
+
if (ac === void 0) {
|
|
25285
|
+
ac = Array.prototype;
|
|
25286
|
+
}
|
|
25287
|
+
if (list && typeof ac.find === "function") {
|
|
25288
|
+
return ac.find.call(list, predicate);
|
|
25289
|
+
}
|
|
25290
|
+
for (var i = 0; i < list.length; i++) {
|
|
25291
|
+
if (Object.prototype.hasOwnProperty.call(list, i)) {
|
|
25292
|
+
var item = list[i];
|
|
25293
|
+
if (predicate.call(void 0, item, i, list)) {
|
|
25294
|
+
return item;
|
|
25295
|
+
}
|
|
25296
|
+
}
|
|
25297
|
+
}
|
|
25298
|
+
}
|
|
25283
25299
|
function freeze(object, oc) {
|
|
25284
25300
|
if (oc === void 0) {
|
|
25285
25301
|
oc = Object;
|
|
@@ -25317,6 +25333,7 @@ var require_conventions = __commonJS({
|
|
|
25317
25333
|
XMLNS: "http://www.w3.org/2000/xmlns/"
|
|
25318
25334
|
});
|
|
25319
25335
|
exports.assign = assign;
|
|
25336
|
+
exports.find = find;
|
|
25320
25337
|
exports.freeze = freeze;
|
|
25321
25338
|
exports.MIME_TYPE = MIME_TYPE;
|
|
25322
25339
|
exports.NAMESPACE = NAMESPACE;
|
|
@@ -25327,6 +25344,7 @@ var require_conventions = __commonJS({
|
|
|
25327
25344
|
var require_dom = __commonJS({
|
|
25328
25345
|
"../node_modules/@xmldom/xmldom/lib/dom.js"(exports) {
|
|
25329
25346
|
var conventions = require_conventions();
|
|
25347
|
+
var find = conventions.find;
|
|
25330
25348
|
var NAMESPACE = conventions.NAMESPACE;
|
|
25331
25349
|
function notEmptyString(input) {
|
|
25332
25350
|
return input !== "";
|
|
@@ -25434,6 +25452,12 @@ var require_dom = __commonJS({
|
|
|
25434
25452
|
serializeToString(this[i], buf, isHTML, nodeFilter);
|
|
25435
25453
|
}
|
|
25436
25454
|
return buf.join("");
|
|
25455
|
+
},
|
|
25456
|
+
filter: function(predicate) {
|
|
25457
|
+
return Array.prototype.filter.call(this, predicate);
|
|
25458
|
+
},
|
|
25459
|
+
indexOf: function(item) {
|
|
25460
|
+
return Array.prototype.indexOf.call(this, item);
|
|
25437
25461
|
}
|
|
25438
25462
|
};
|
|
25439
25463
|
function LiveNodeList(node, refresh) {
|
|
@@ -25496,7 +25520,7 @@ var require_dom = __commonJS({
|
|
|
25496
25520
|
}
|
|
25497
25521
|
}
|
|
25498
25522
|
} else {
|
|
25499
|
-
throw DOMException(NOT_FOUND_ERR, new Error(el.tagName + "@" + attr));
|
|
25523
|
+
throw new DOMException(NOT_FOUND_ERR, new Error(el.tagName + "@" + attr));
|
|
25500
25524
|
}
|
|
25501
25525
|
}
|
|
25502
25526
|
NamedNodeMap.prototype = {
|
|
@@ -25598,7 +25622,7 @@ var require_dom = __commonJS({
|
|
|
25598
25622
|
return _insertBefore(this, newChild, refChild);
|
|
25599
25623
|
},
|
|
25600
25624
|
replaceChild: function(newChild, oldChild) {
|
|
25601
|
-
this
|
|
25625
|
+
_insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
|
|
25602
25626
|
if (oldChild) {
|
|
25603
25627
|
this.removeChild(oldChild);
|
|
25604
25628
|
}
|
|
@@ -25685,6 +25709,7 @@ var require_dom = __commonJS({
|
|
|
25685
25709
|
}
|
|
25686
25710
|
}
|
|
25687
25711
|
function Document() {
|
|
25712
|
+
this.ownerDocument = this;
|
|
25688
25713
|
}
|
|
25689
25714
|
function _onAddAttribute(doc, el, newAttr) {
|
|
25690
25715
|
doc && doc._inc++;
|
|
@@ -25737,41 +25762,153 @@ var require_dom = __commonJS({
|
|
|
25737
25762
|
_onUpdateChild(parentNode.ownerDocument, parentNode);
|
|
25738
25763
|
return child;
|
|
25739
25764
|
}
|
|
25740
|
-
function
|
|
25741
|
-
|
|
25765
|
+
function hasValidParentNodeType(node) {
|
|
25766
|
+
return node && (node.nodeType === Node3.DOCUMENT_NODE || node.nodeType === Node3.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node3.ELEMENT_NODE);
|
|
25767
|
+
}
|
|
25768
|
+
function hasInsertableNodeType(node) {
|
|
25769
|
+
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);
|
|
25770
|
+
}
|
|
25771
|
+
function isDocTypeNode(node) {
|
|
25772
|
+
return node && node.nodeType === Node3.DOCUMENT_TYPE_NODE;
|
|
25773
|
+
}
|
|
25774
|
+
function isElementNode(node) {
|
|
25775
|
+
return node && node.nodeType === Node3.ELEMENT_NODE;
|
|
25776
|
+
}
|
|
25777
|
+
function isTextNode(node) {
|
|
25778
|
+
return node && node.nodeType === Node3.TEXT_NODE;
|
|
25779
|
+
}
|
|
25780
|
+
function isElementInsertionPossible(doc, child) {
|
|
25781
|
+
var parentChildNodes = doc.childNodes || [];
|
|
25782
|
+
if (find(parentChildNodes, isElementNode) || isDocTypeNode(child)) {
|
|
25783
|
+
return false;
|
|
25784
|
+
}
|
|
25785
|
+
var docTypeNode = find(parentChildNodes, isDocTypeNode);
|
|
25786
|
+
return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));
|
|
25787
|
+
}
|
|
25788
|
+
function isElementReplacementPossible(doc, child) {
|
|
25789
|
+
var parentChildNodes = doc.childNodes || [];
|
|
25790
|
+
function hasElementChildThatIsNotChild(node) {
|
|
25791
|
+
return isElementNode(node) && node !== child;
|
|
25792
|
+
}
|
|
25793
|
+
if (find(parentChildNodes, hasElementChildThatIsNotChild)) {
|
|
25794
|
+
return false;
|
|
25795
|
+
}
|
|
25796
|
+
var docTypeNode = find(parentChildNodes, isDocTypeNode);
|
|
25797
|
+
return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));
|
|
25798
|
+
}
|
|
25799
|
+
function assertPreInsertionValidity1to5(parent2, node, child) {
|
|
25800
|
+
if (!hasValidParentNodeType(parent2)) {
|
|
25801
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Unexpected parent node type " + parent2.nodeType);
|
|
25802
|
+
}
|
|
25803
|
+
if (child && child.parentNode !== parent2) {
|
|
25804
|
+
throw new DOMException(NOT_FOUND_ERR, "child not in parent");
|
|
25805
|
+
}
|
|
25806
|
+
if (!hasInsertableNodeType(node) || isDocTypeNode(node) && parent2.nodeType !== Node3.DOCUMENT_NODE) {
|
|
25807
|
+
throw new DOMException(
|
|
25808
|
+
HIERARCHY_REQUEST_ERR,
|
|
25809
|
+
"Unexpected node type " + node.nodeType + " for parent node type " + parent2.nodeType
|
|
25810
|
+
);
|
|
25811
|
+
}
|
|
25812
|
+
}
|
|
25813
|
+
function assertPreInsertionValidityInDocument(parent2, node, child) {
|
|
25814
|
+
var parentChildNodes = parent2.childNodes || [];
|
|
25815
|
+
var nodeChildNodes = node.childNodes || [];
|
|
25816
|
+
if (node.nodeType === Node3.DOCUMENT_FRAGMENT_NODE) {
|
|
25817
|
+
var nodeChildElements = nodeChildNodes.filter(isElementNode);
|
|
25818
|
+
if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {
|
|
25819
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
|
|
25820
|
+
}
|
|
25821
|
+
if (nodeChildElements.length === 1 && !isElementInsertionPossible(parent2, child)) {
|
|
25822
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
|
|
25823
|
+
}
|
|
25824
|
+
}
|
|
25825
|
+
if (isElementNode(node)) {
|
|
25826
|
+
if (!isElementInsertionPossible(parent2, child)) {
|
|
25827
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
|
|
25828
|
+
}
|
|
25829
|
+
}
|
|
25830
|
+
if (isDocTypeNode(node)) {
|
|
25831
|
+
if (find(parentChildNodes, isDocTypeNode)) {
|
|
25832
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
|
|
25833
|
+
}
|
|
25834
|
+
var parentElementChild = find(parentChildNodes, isElementNode);
|
|
25835
|
+
if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {
|
|
25836
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
|
|
25837
|
+
}
|
|
25838
|
+
if (!child && parentElementChild) {
|
|
25839
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can not be appended since element is present");
|
|
25840
|
+
}
|
|
25841
|
+
}
|
|
25842
|
+
}
|
|
25843
|
+
function assertPreReplacementValidityInDocument(parent2, node, child) {
|
|
25844
|
+
var parentChildNodes = parent2.childNodes || [];
|
|
25845
|
+
var nodeChildNodes = node.childNodes || [];
|
|
25846
|
+
if (node.nodeType === Node3.DOCUMENT_FRAGMENT_NODE) {
|
|
25847
|
+
var nodeChildElements = nodeChildNodes.filter(isElementNode);
|
|
25848
|
+
if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {
|
|
25849
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
|
|
25850
|
+
}
|
|
25851
|
+
if (nodeChildElements.length === 1 && !isElementReplacementPossible(parent2, child)) {
|
|
25852
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
|
|
25853
|
+
}
|
|
25854
|
+
}
|
|
25855
|
+
if (isElementNode(node)) {
|
|
25856
|
+
if (!isElementReplacementPossible(parent2, child)) {
|
|
25857
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
|
|
25858
|
+
}
|
|
25859
|
+
}
|
|
25860
|
+
if (isDocTypeNode(node)) {
|
|
25861
|
+
let hasDoctypeChildThatIsNotChild2 = function(node2) {
|
|
25862
|
+
return isDocTypeNode(node2) && node2 !== child;
|
|
25863
|
+
};
|
|
25864
|
+
if (find(parentChildNodes, hasDoctypeChildThatIsNotChild2)) {
|
|
25865
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
|
|
25866
|
+
}
|
|
25867
|
+
var parentElementChild = find(parentChildNodes, isElementNode);
|
|
25868
|
+
if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {
|
|
25869
|
+
throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
|
|
25870
|
+
}
|
|
25871
|
+
}
|
|
25872
|
+
}
|
|
25873
|
+
function _insertBefore(parent2, node, child, _inDocumentAssertion) {
|
|
25874
|
+
assertPreInsertionValidity1to5(parent2, node, child);
|
|
25875
|
+
if (parent2.nodeType === Node3.DOCUMENT_NODE) {
|
|
25876
|
+
(_inDocumentAssertion || assertPreInsertionValidityInDocument)(parent2, node, child);
|
|
25877
|
+
}
|
|
25878
|
+
var cp = node.parentNode;
|
|
25742
25879
|
if (cp) {
|
|
25743
|
-
cp.removeChild(
|
|
25880
|
+
cp.removeChild(node);
|
|
25744
25881
|
}
|
|
25745
|
-
if (
|
|
25746
|
-
var newFirst =
|
|
25882
|
+
if (node.nodeType === DOCUMENT_FRAGMENT_NODE) {
|
|
25883
|
+
var newFirst = node.firstChild;
|
|
25747
25884
|
if (newFirst == null) {
|
|
25748
|
-
return
|
|
25885
|
+
return node;
|
|
25749
25886
|
}
|
|
25750
|
-
var newLast =
|
|
25887
|
+
var newLast = node.lastChild;
|
|
25751
25888
|
} else {
|
|
25752
|
-
newFirst = newLast =
|
|
25889
|
+
newFirst = newLast = node;
|
|
25753
25890
|
}
|
|
25754
|
-
var pre =
|
|
25891
|
+
var pre = child ? child.previousSibling : parent2.lastChild;
|
|
25755
25892
|
newFirst.previousSibling = pre;
|
|
25756
|
-
newLast.nextSibling =
|
|
25893
|
+
newLast.nextSibling = child;
|
|
25757
25894
|
if (pre) {
|
|
25758
25895
|
pre.nextSibling = newFirst;
|
|
25759
25896
|
} else {
|
|
25760
|
-
|
|
25897
|
+
parent2.firstChild = newFirst;
|
|
25761
25898
|
}
|
|
25762
|
-
if (
|
|
25763
|
-
|
|
25899
|
+
if (child == null) {
|
|
25900
|
+
parent2.lastChild = newLast;
|
|
25764
25901
|
} else {
|
|
25765
|
-
|
|
25902
|
+
child.previousSibling = newLast;
|
|
25766
25903
|
}
|
|
25767
25904
|
do {
|
|
25768
|
-
newFirst.parentNode =
|
|
25905
|
+
newFirst.parentNode = parent2;
|
|
25769
25906
|
} while (newFirst !== newLast && (newFirst = newFirst.nextSibling));
|
|
25770
|
-
_onUpdateChild(
|
|
25771
|
-
if (
|
|
25772
|
-
|
|
25907
|
+
_onUpdateChild(parent2.ownerDocument || parent2, parent2);
|
|
25908
|
+
if (node.nodeType == DOCUMENT_FRAGMENT_NODE) {
|
|
25909
|
+
node.firstChild = node.lastChild = null;
|
|
25773
25910
|
}
|
|
25774
|
-
return
|
|
25911
|
+
return node;
|
|
25775
25912
|
}
|
|
25776
25913
|
function _appendSingleChild(parentNode, newChild) {
|
|
25777
25914
|
if (newChild.parentNode) {
|
|
@@ -25805,10 +25942,12 @@ var require_dom = __commonJS({
|
|
|
25805
25942
|
}
|
|
25806
25943
|
return newChild;
|
|
25807
25944
|
}
|
|
25808
|
-
|
|
25945
|
+
_insertBefore(this, newChild, refChild);
|
|
25946
|
+
newChild.ownerDocument = this;
|
|
25947
|
+
if (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) {
|
|
25809
25948
|
this.documentElement = newChild;
|
|
25810
25949
|
}
|
|
25811
|
-
return
|
|
25950
|
+
return newChild;
|
|
25812
25951
|
},
|
|
25813
25952
|
removeChild: function(oldChild) {
|
|
25814
25953
|
if (this.documentElement == oldChild) {
|
|
@@ -25816,6 +25955,16 @@ var require_dom = __commonJS({
|
|
|
25816
25955
|
}
|
|
25817
25956
|
return _removeChild(this, oldChild);
|
|
25818
25957
|
},
|
|
25958
|
+
replaceChild: function(newChild, oldChild) {
|
|
25959
|
+
_insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
|
|
25960
|
+
newChild.ownerDocument = this;
|
|
25961
|
+
if (oldChild) {
|
|
25962
|
+
this.removeChild(oldChild);
|
|
25963
|
+
}
|
|
25964
|
+
if (isElementNode(newChild)) {
|
|
25965
|
+
this.documentElement = newChild;
|
|
25966
|
+
}
|
|
25967
|
+
},
|
|
25819
25968
|
importNode: function(importedNode, deep) {
|
|
25820
25969
|
return importNode(this, importedNode, deep);
|
|
25821
25970
|
},
|
|
@@ -40587,7 +40736,7 @@ const PosNavigationBar = class {
|
|
|
40587
40736
|
this.linkEmitter.emit(this.value);
|
|
40588
40737
|
}
|
|
40589
40738
|
render() {
|
|
40590
|
-
return (h("form", { onSubmit: e => this.onSubmit(e) }, h("ion-searchbar", { enterkeyhint: "search", placeholder: "Enter URI", value: this.uri, onIonChange: e => this.onChange(e) })));
|
|
40739
|
+
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) })));
|
|
40591
40740
|
}
|
|
40592
40741
|
};
|
|
40593
40742
|
|