@morozeckiy/dd-lib 0.7.112 → 0.7.116
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.
|
@@ -2339,15 +2339,13 @@ class LibSvgViewerComponent {
|
|
|
2339
2339
|
const elements = svg.querySelectorAll(rule.selector);
|
|
2340
2340
|
elements.forEach(el => {
|
|
2341
2341
|
if (rule.attribute === 'fill' || rule.attribute === 'both' || !rule.attribute) {
|
|
2342
|
-
if (el.
|
|
2343
|
-
el.getAttribute('fill') !== 'none' &&
|
|
2342
|
+
if (el.getAttribute('fill') !== 'none' &&
|
|
2344
2343
|
el.getAttribute('fill') !== 'transparent') {
|
|
2345
2344
|
el.setAttribute('fill', rule.color);
|
|
2346
2345
|
}
|
|
2347
2346
|
}
|
|
2348
2347
|
if (rule.attribute === 'stroke' || rule.attribute === 'both' || !rule.attribute) {
|
|
2349
|
-
if (el.
|
|
2350
|
-
el.getAttribute('stroke') !== 'none' &&
|
|
2348
|
+
if (el.getAttribute('stroke') !== 'none' &&
|
|
2351
2349
|
el.getAttribute('stroke') !== 'transparent') {
|
|
2352
2350
|
el.setAttribute('stroke', rule.color);
|
|
2353
2351
|
}
|
|
@@ -2358,13 +2356,11 @@ class LibSvgViewerComponent {
|
|
|
2358
2356
|
applyColor(svg) {
|
|
2359
2357
|
const elements = svg.querySelectorAll('[stroke], [fill]');
|
|
2360
2358
|
elements.forEach(el => {
|
|
2361
|
-
if (el.
|
|
2362
|
-
el.getAttribute('stroke') !== 'none' &&
|
|
2359
|
+
if (el.getAttribute('stroke') !== 'none' &&
|
|
2363
2360
|
el.getAttribute('stroke') !== 'transparent') {
|
|
2364
2361
|
el.setAttribute('stroke', this.color);
|
|
2365
2362
|
}
|
|
2366
|
-
if (el.
|
|
2367
|
-
el.getAttribute('fill') !== 'none' &&
|
|
2363
|
+
if (el.getAttribute('fill') !== 'none' &&
|
|
2368
2364
|
el.getAttribute('fill') !== 'transparent') {
|
|
2369
2365
|
el.setAttribute('fill', this.color);
|
|
2370
2366
|
}
|
|
@@ -4401,8 +4397,12 @@ class LibTabsFragmentComponent {
|
|
|
4401
4397
|
if (this.rout && !this.noFragment) {
|
|
4402
4398
|
this.router.navigate([this.rout], { fragment: tab.fragment });
|
|
4403
4399
|
}
|
|
4404
|
-
else if (this.rout && this.noFragment
|
|
4405
|
-
|
|
4400
|
+
else if (this.rout && this.noFragment) {
|
|
4401
|
+
const route = tab.path ? [this.rout, tab.path] : [this.rout];
|
|
4402
|
+
this.router.navigate(route);
|
|
4403
|
+
}
|
|
4404
|
+
else if (!this.rout && tab.path) {
|
|
4405
|
+
this.router.navigate([tab.path || '']);
|
|
4406
4406
|
}
|
|
4407
4407
|
else if (!this.rout && !this.noFragment) {
|
|
4408
4408
|
const currentUrl = this.location.path(); // Получаем текущий URL без фрагмента
|
|
@@ -4411,7 +4411,7 @@ class LibTabsFragmentComponent {
|
|
|
4411
4411
|
}
|
|
4412
4412
|
if (callEvent) {
|
|
4413
4413
|
this.setActiveTab.emit(this.activeFragment);
|
|
4414
|
-
this.onChange(tab);
|
|
4414
|
+
this.onChange(tab);
|
|
4415
4415
|
this.onTouched();
|
|
4416
4416
|
}
|
|
4417
4417
|
}
|
|
@@ -4458,7 +4458,7 @@ class LibTabsFragmentComponent {
|
|
|
4458
4458
|
}
|
|
4459
4459
|
else if (this.needInitEvent) {
|
|
4460
4460
|
if (this.noFragment && this.tabs?.[0].path) {
|
|
4461
|
-
this.activeFragment = this.tabs?.length ? this.tabs.find(f => (this.rout ? this.rout + '/' : '
|
|
4461
|
+
this.activeFragment = this.tabs?.length ? this.tabs.find(f => '/' + (this.rout ? this.rout + '/' : '') + f.path === this.location.path())?.id : 0;
|
|
4462
4462
|
}
|
|
4463
4463
|
}
|
|
4464
4464
|
this.setActiveTab.emit(this.activeFragment);
|