ng-ipa-library 0.6.1 → 0.6.5
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/bundles/ng-ipa-library.umd.js +20 -11
- package/bundles/ng-ipa-library.umd.js.map +1 -1
- package/esm2015/lib/core/interceptors/error.interceptor.js +3 -3
- package/esm2015/lib/services/breadcrumbs.service.js +9 -9
- package/esm2015/lib/share-button/share-button.component.js +11 -2
- package/fesm2015/ng-ipa-library.js +20 -11
- package/fesm2015/ng-ipa-library.js.map +1 -1
- package/lib/services/breadcrumbs.service.d.ts +1 -1
- package/lib/share-button/share-button.component.d.ts +2 -1
- package/package.json +1 -1
- package/src/lib/assets/ngIPAStyle.scss +13 -0
|
@@ -1452,15 +1452,22 @@
|
|
|
1452
1452
|
function ShareButtonComponent() {
|
|
1453
1453
|
this.title = '';
|
|
1454
1454
|
this.description = '';
|
|
1455
|
+
this.btnLabel = '';
|
|
1455
1456
|
}
|
|
1456
1457
|
ShareButtonComponent.prototype.ngAfterViewInit = function () {
|
|
1457
1458
|
var elements = document.getElementsByClassName('sb-show-icon');
|
|
1458
1459
|
elements[0].setAttribute('type', 'button');
|
|
1460
|
+
elements[0].setAttribute('id', 'IPAShareBtn');
|
|
1461
|
+
var label = document.createElement('label');
|
|
1462
|
+
label.innerHTML = this.btnLabel;
|
|
1463
|
+
label.classList.add('sm-share-title');
|
|
1464
|
+
label.classList.add('me-1');
|
|
1465
|
+
elements[0].before(label);
|
|
1459
1466
|
};
|
|
1460
1467
|
return ShareButtonComponent;
|
|
1461
1468
|
}());
|
|
1462
1469
|
ShareButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.9", ngImport: i0__namespace, type: ShareButtonComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1463
|
-
ShareButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.9", type: ShareButtonComponent, selector: "ipa-share-button", inputs: { title: "title", description: "description" }, ngImport: i0__namespace, template: "<share-popup-button [title]=\"title\" [description]=\"description\" [icon]=\"'share'\"\r\n [include]=\"['facebook','twitter','linkedin','telegram','whatsapp','email','copy']\">\r\n</share-popup-button>", styles: [""], components: [{ type: i1__namespace$1.SharePopupComponent, selector: "share-popup-button", inputs: ["theme", "icon", "text", "include", "exclude", "closeIcon", "url", "title", "description", "image", "tags", "autoSetMeta", "show", "showIcon", "showText", "disabled", "hasBackdrop", "backdropClass"], outputs: ["opened", "closed", "popupClosed"] }] });
|
|
1470
|
+
ShareButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.9", type: ShareButtonComponent, selector: "ipa-share-button", inputs: { title: "title", description: "description", btnLabel: "btnLabel" }, ngImport: i0__namespace, template: "<share-popup-button [title]=\"title\" [description]=\"description\" [icon]=\"'share-alt'\"\r\n [include]=\"['facebook','twitter','linkedin','telegram','whatsapp','email','copy']\">\r\n</share-popup-button>", styles: [""], components: [{ type: i1__namespace$1.SharePopupComponent, selector: "share-popup-button", inputs: ["theme", "icon", "text", "include", "exclude", "closeIcon", "url", "title", "description", "image", "tags", "autoSetMeta", "show", "showIcon", "showText", "disabled", "hasBackdrop", "backdropClass"], outputs: ["opened", "closed", "popupClosed"] }] });
|
|
1464
1471
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.9", ngImport: i0__namespace, type: ShareButtonComponent, decorators: [{
|
|
1465
1472
|
type: i0.Component,
|
|
1466
1473
|
args: [{
|
|
@@ -1472,6 +1479,8 @@
|
|
|
1472
1479
|
type: i0.Input
|
|
1473
1480
|
}], description: [{
|
|
1474
1481
|
type: i0.Input
|
|
1482
|
+
}], btnLabel: [{
|
|
1483
|
+
type: i0.Input
|
|
1475
1484
|
}] } });
|
|
1476
1485
|
|
|
1477
1486
|
var ShareButtonModule = /** @class */ (function () {
|
|
@@ -1708,9 +1717,9 @@
|
|
|
1708
1717
|
var toastrConfig = {
|
|
1709
1718
|
disableTimeOut: true,
|
|
1710
1719
|
};
|
|
1711
|
-
switch (response.statusCode) {
|
|
1720
|
+
switch (response === null || response === void 0 ? void 0 : response.statusCode) {
|
|
1712
1721
|
case 500:
|
|
1713
|
-
_this.toastrService.error((response === null || response === void 0 ? void 0 : response.innerException) + ' ' + (response === null || response === void 0 ? void 0 : response.stackTrace), response.message, toastrConfig);
|
|
1722
|
+
_this.toastrService.error((response === null || response === void 0 ? void 0 : response.innerException) + ' ' + (response === null || response === void 0 ? void 0 : response.stackTrace), response === null || response === void 0 ? void 0 : response.message, toastrConfig);
|
|
1714
1723
|
break;
|
|
1715
1724
|
default:
|
|
1716
1725
|
_this.toastrService.error(response.message, '', toastrConfig);
|
|
@@ -1888,7 +1897,7 @@
|
|
|
1888
1897
|
//add new link
|
|
1889
1898
|
lastIndex.appendChild(this.createLink(innerHTML, location.pathname, linkClasses));
|
|
1890
1899
|
//add new span and empty span
|
|
1891
|
-
var newSpan = this.
|
|
1900
|
+
var newSpan = this.createSpan(nodeName, spanClasses);
|
|
1892
1901
|
var emptySpan = document.createElement('span');
|
|
1893
1902
|
lastIndex.after.apply(lastIndex, [emptySpan, newSpan]);
|
|
1894
1903
|
};
|
|
@@ -1914,7 +1923,7 @@
|
|
|
1914
1923
|
lastIndex.after.apply(lastIndex, [emptySpan, newSpan]);
|
|
1915
1924
|
}
|
|
1916
1925
|
else {
|
|
1917
|
-
var newSpan = this.
|
|
1926
|
+
var newSpan = this.createSpan(nodeList[i].nodeName, spanClasses);
|
|
1918
1927
|
var emptySpan = document.createElement('span');
|
|
1919
1928
|
lastIndex.after.apply(lastIndex, [emptySpan, newSpan]);
|
|
1920
1929
|
}
|
|
@@ -1923,12 +1932,12 @@
|
|
|
1923
1932
|
BreadcrumbsService.prototype.createBreadcrumbs = function (nodeList, spanClasses, linkClasses) {
|
|
1924
1933
|
if (spanClasses === void 0) { spanClasses = 'bc-current'; }
|
|
1925
1934
|
if (linkClasses === void 0) { linkClasses = 'bc-node'; }
|
|
1926
|
-
var
|
|
1927
|
-
|
|
1935
|
+
var currentSpan = document.getElementById('ctl00_path');
|
|
1936
|
+
currentSpan.innerHTML = '';
|
|
1928
1937
|
var newSpan = document.createElement('span');
|
|
1929
|
-
|
|
1938
|
+
currentSpan === null || currentSpan === void 0 ? void 0 : currentSpan.appendChild(newSpan);
|
|
1930
1939
|
newSpan.appendChild(this.createLink(nodeList[0].nodeName, nodeList[0].nodeUrl, linkClasses));
|
|
1931
|
-
var spans =
|
|
1940
|
+
var spans = currentSpan === null || currentSpan === void 0 ? void 0 : currentSpan.children;
|
|
1932
1941
|
for (var i = 1; i < nodeList.length; i++) {
|
|
1933
1942
|
var lastIndex = spans === null || spans === void 0 ? void 0 : spans.item(spans.length - 1);
|
|
1934
1943
|
if (nodeList[i].nodeUrl) {
|
|
@@ -1938,7 +1947,7 @@
|
|
|
1938
1947
|
lastIndex === null || lastIndex === void 0 ? void 0 : lastIndex.after.apply(lastIndex, [emptySpan, newSpan_1]);
|
|
1939
1948
|
}
|
|
1940
1949
|
else {
|
|
1941
|
-
var newSpan_2 = this.
|
|
1950
|
+
var newSpan_2 = this.createSpan(nodeList[i].nodeName, spanClasses);
|
|
1942
1951
|
var emptySpan = document.createElement('span');
|
|
1943
1952
|
lastIndex.after.apply(lastIndex, [emptySpan, newSpan_2]);
|
|
1944
1953
|
}
|
|
@@ -1995,7 +2004,7 @@
|
|
|
1995
2004
|
(_g = link.classList).add.apply(_g, [classes]);
|
|
1996
2005
|
return link;
|
|
1997
2006
|
};
|
|
1998
|
-
BreadcrumbsService.prototype.
|
|
2007
|
+
BreadcrumbsService.prototype.createSpan = function (innerHTML, classes) {
|
|
1999
2008
|
var _g;
|
|
2000
2009
|
var span = document.createElement('span');
|
|
2001
2010
|
(_g = span.classList).add.apply(_g, [classes]);
|