croco-html 2.31.0 → 2.32.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/esm2022/lib/components/xml-tags/xml-tag-custom-widget/xml-tag-custom-widget.component.mjs +36 -11
- package/esm2022/lib/options/index.mjs +1 -1
- package/fesm2022/croco-html.mjs +34 -10
- package/fesm2022/croco-html.mjs.map +1 -1
- package/lib/components/xml-tags/xml-tag-custom-widget/xml-tag-custom-widget.component.d.ts +11 -2
- package/lib/index.d.ts +4 -4
- package/lib/options/index.d.ts +5 -0
- package/package.json +1 -1
package/esm2022/lib/components/xml-tags/xml-tag-custom-widget/xml-tag-custom-widget.component.mjs
CHANGED
|
@@ -1,25 +1,50 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
1
|
+
import { Component, Inject, Input, ViewChild, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { MatTooltip } from "@angular/material/tooltip";
|
|
3
|
+
import { CrocoHtmlOptionsToken } from "../../../consts";
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export class XmlTagCustomWidgetComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.tooltipData = "";
|
|
7
|
-
}
|
|
8
6
|
set tagData(value) {
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
if (value) {
|
|
8
|
+
this._tagData = value;
|
|
9
|
+
this.tooltipData = `data-id:${value.dataId}; widget-id: ${value.widgetId}`;
|
|
10
|
+
if (this.dynamicContainerRef?.instance) {
|
|
11
|
+
this.dynamicContainerRef.instance.tagData = value;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
11
14
|
}
|
|
12
15
|
;
|
|
13
16
|
get tagData() {
|
|
14
17
|
return this._tagData;
|
|
15
18
|
}
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
constructor(_options) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
this.tooltipData = "";
|
|
22
|
+
this.useDynamicComponent = false;
|
|
23
|
+
}
|
|
24
|
+
ngOnInit() {
|
|
25
|
+
if (this._options.customWidgetRendererComponent) {
|
|
26
|
+
this.useDynamicComponent = true;
|
|
27
|
+
this.viewContainerRef.remove();
|
|
28
|
+
this.dynamicContainerRef = this.viewContainerRef.createComponent(this._options.customWidgetRendererComponent);
|
|
29
|
+
this.dynamicContainerRef.instance.tagData = this.tagData;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
ngOnDestroy() {
|
|
33
|
+
this.dynamicContainerRef.destroy();
|
|
34
|
+
}
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: XmlTagCustomWidgetComponent, deps: [{ token: CrocoHtmlOptionsToken }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
36
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.4", type: XmlTagCustomWidgetComponent, isStandalone: true, selector: "croco-html-xml-tag-custom-widget", inputs: { tagData: "tagData" }, viewQueries: [{ propertyName: "viewContainerRef", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<ng-container #container>\n @if (!useDynamicComponent) {\n <div [matTooltip]=\"tooltipData\">\n \u041A\u0430\u0441\u0442\u043E\u043C\u043D\u044B\u0439 \u0432\u0438\u0434\u0436\u0435\u0442. \u0442\u0438\u043F \u0432\u0438\u0434\u0436\u0435\u0442\u0430: {{ tagData?.type }}\n </div>\n }\n</ng-container>\n\n", styles: [":host div{background-color:#a3ded5;padding:5px 10px;display:inline-block;border-radius:10px}\n"], dependencies: [{ kind: "directive", type: MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] }); }
|
|
18
37
|
}
|
|
19
38
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: XmlTagCustomWidgetComponent, decorators: [{
|
|
20
39
|
type: Component,
|
|
21
|
-
args: [{ selector: 'croco-html-xml-tag-custom-widget', imports: [MatTooltip], standalone: true, template: "<div [matTooltip]=\"tooltipData\">\n
|
|
22
|
-
}],
|
|
40
|
+
args: [{ selector: 'croco-html-xml-tag-custom-widget', imports: [MatTooltip], standalone: true, template: "<ng-container #container>\n @if (!useDynamicComponent) {\n <div [matTooltip]=\"tooltipData\">\n \u041A\u0430\u0441\u0442\u043E\u043C\u043D\u044B\u0439 \u0432\u0438\u0434\u0436\u0435\u0442. \u0442\u0438\u043F \u0432\u0438\u0434\u0436\u0435\u0442\u0430: {{ tagData?.type }}\n </div>\n }\n</ng-container>\n\n", styles: [":host div{background-color:#a3ded5;padding:5px 10px;display:inline-block;border-radius:10px}\n"] }]
|
|
41
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
42
|
+
type: Inject,
|
|
43
|
+
args: [CrocoHtmlOptionsToken]
|
|
44
|
+
}] }], propDecorators: { viewContainerRef: [{
|
|
45
|
+
type: ViewChild,
|
|
46
|
+
args: ['container', { read: ViewContainerRef, static: true }]
|
|
47
|
+
}], tagData: [{
|
|
23
48
|
type: Input
|
|
24
49
|
}] } });
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieG1sLXRhZy1jdXN0b20td2lkZ2V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nyb2NvLWh0bWwvc3JjL2xpYi9jb21wb25lbnRzL3htbC10YWdzL3htbC10YWctY3VzdG9tLXdpZGdldC94bWwtdGFnLWN1c3RvbS13aWRnZXQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4v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JlckNvbXBvbmVudCk7XG4gICAgICB0aGlzLmR5bmFtaWNDb250YWluZXJSZWYuaW5zdGFuY2UudGFnRGF0YSA9IHRoaXMudGFnRGF0YTtcbiAgICB9XG4gIH1cblxuICBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICB0aGlzLmR5bmFtaWNDb250YWluZXJSZWYuZGVzdHJveSgpO1xuICB9XG59XG4iLCI8bmctY29udGFpbmVyICNjb250YWluZXI+XG4gIEBpZiAoIXVzZUR5bmFtaWNDb21wb25lbnQpIHtcbiAgICA8ZGl2IFttYXRUb29sdGlwXT1cInRvb2x0aXBEYXRhXCI+XG4gICAgICAg0JrQsNGB0YLQvtC80L3Ri9C5INCy0LjQtNC20LXRgi4g0YLQuNC/INCy0LjQtNC20LXRgtCwOiB7eyB0YWdEYXRhPy50eXBlIH19XG4gICAgPC9kaXY+XG4gIH1cbjwvbmctY29udGFpbmVyPlxuXG4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jcm9jby1odG1sL3NyYy9saWIvb3B0aW9ucy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtJTWVkaWFSZXF1ZXN0fSBmcm9tIFwiLi4vZXh0ZW5zaW9uc1wiO1xuaW1wb3J0IHtUeXBlfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xuXG5leHBvcnQgaW50ZXJmYWNlIENyb2NvSHRtbE9wdGlvbnMge1xuICBwdWJsaWNJbWFnZVJlc2l6ZWRVcmxGb3JtYXQ6IHN0cmluZztcbiAgZ2xvYmFsTWVkaWFSZXF1ZXN0cz86IElNZWRpYVJlcXVlc3RbXTtcblxuICAvKipcbiAgICog0JrQvtC80L/QvtC90LXQvdGCINC00LvRjyDRgNC10L3QtNC10YDQsCDQutCw0YHRgtC+0LzQvdGL0YUg0LLQuNC00LbQtdGC0L7QslxuICAgKi9cbiAgY3VzdG9tV2lkZ2V0UmVuZGVyZXJDb21wb25lbnQ/OiBUeXBlPGFueT47XG59XG4iXX0=
|
package/fesm2022/croco-html.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Inject, EventEmitter, Component, ViewChild, Input, Output, ChangeDetectionStrategy, Pipe, ViewEncapsulation, NgModule } from '@angular/core';
|
|
2
|
+
import { Injectable, Inject, EventEmitter, Component, ViewChild, Input, Output, ChangeDetectionStrategy, Pipe, ViewContainerRef, ViewEncapsulation, NgModule } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/material/button';
|
|
4
4
|
import { MatButton, MatButtonModule, MatIconButton } from '@angular/material/button';
|
|
5
5
|
import * as i1 from '@angular/common/http';
|
|
@@ -1520,24 +1520,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
1520
1520
|
}] } });
|
|
1521
1521
|
|
|
1522
1522
|
class XmlTagCustomWidgetComponent {
|
|
1523
|
-
constructor() {
|
|
1524
|
-
this.tooltipData = "";
|
|
1525
|
-
}
|
|
1526
1523
|
set tagData(value) {
|
|
1527
|
-
|
|
1528
|
-
|
|
1524
|
+
if (value) {
|
|
1525
|
+
this._tagData = value;
|
|
1526
|
+
this.tooltipData = `data-id:${value.dataId}; widget-id: ${value.widgetId}`;
|
|
1527
|
+
if (this.dynamicContainerRef?.instance) {
|
|
1528
|
+
this.dynamicContainerRef.instance.tagData = value;
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1529
1531
|
}
|
|
1530
1532
|
;
|
|
1531
1533
|
get tagData() {
|
|
1532
1534
|
return this._tagData;
|
|
1533
1535
|
}
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
+
constructor(_options) {
|
|
1537
|
+
this._options = _options;
|
|
1538
|
+
this.tooltipData = "";
|
|
1539
|
+
this.useDynamicComponent = false;
|
|
1540
|
+
}
|
|
1541
|
+
ngOnInit() {
|
|
1542
|
+
if (this._options.customWidgetRendererComponent) {
|
|
1543
|
+
this.useDynamicComponent = true;
|
|
1544
|
+
this.viewContainerRef.remove();
|
|
1545
|
+
this.dynamicContainerRef = this.viewContainerRef.createComponent(this._options.customWidgetRendererComponent);
|
|
1546
|
+
this.dynamicContainerRef.instance.tagData = this.tagData;
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
ngOnDestroy() {
|
|
1550
|
+
this.dynamicContainerRef.destroy();
|
|
1551
|
+
}
|
|
1552
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: XmlTagCustomWidgetComponent, deps: [{ token: CrocoHtmlOptionsToken }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1553
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.4", type: XmlTagCustomWidgetComponent, isStandalone: true, selector: "croco-html-xml-tag-custom-widget", inputs: { tagData: "tagData" }, viewQueries: [{ propertyName: "viewContainerRef", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<ng-container #container>\n @if (!useDynamicComponent) {\n <div [matTooltip]=\"tooltipData\">\n \u041A\u0430\u0441\u0442\u043E\u043C\u043D\u044B\u0439 \u0432\u0438\u0434\u0436\u0435\u0442. \u0442\u0438\u043F \u0432\u0438\u0434\u0436\u0435\u0442\u0430: {{ tagData?.type }}\n </div>\n }\n</ng-container>\n\n", styles: [":host div{background-color:#a3ded5;padding:5px 10px;display:inline-block;border-radius:10px}\n"], dependencies: [{ kind: "directive", type: MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] }); }
|
|
1536
1554
|
}
|
|
1537
1555
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: XmlTagCustomWidgetComponent, decorators: [{
|
|
1538
1556
|
type: Component,
|
|
1539
|
-
args: [{ selector: 'croco-html-xml-tag-custom-widget', imports: [MatTooltip], standalone: true, template: "<div [matTooltip]=\"tooltipData\">\n
|
|
1540
|
-
}],
|
|
1557
|
+
args: [{ selector: 'croco-html-xml-tag-custom-widget', imports: [MatTooltip], standalone: true, template: "<ng-container #container>\n @if (!useDynamicComponent) {\n <div [matTooltip]=\"tooltipData\">\n \u041A\u0430\u0441\u0442\u043E\u043C\u043D\u044B\u0439 \u0432\u0438\u0434\u0436\u0435\u0442. \u0442\u0438\u043F \u0432\u0438\u0434\u0436\u0435\u0442\u0430: {{ tagData?.type }}\n </div>\n }\n</ng-container>\n\n", styles: [":host div{background-color:#a3ded5;padding:5px 10px;display:inline-block;border-radius:10px}\n"] }]
|
|
1558
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1559
|
+
type: Inject,
|
|
1560
|
+
args: [CrocoHtmlOptionsToken]
|
|
1561
|
+
}] }], propDecorators: { viewContainerRef: [{
|
|
1562
|
+
type: ViewChild,
|
|
1563
|
+
args: ['container', { read: ViewContainerRef, static: true }]
|
|
1564
|
+
}], tagData: [{
|
|
1541
1565
|
type: Input
|
|
1542
1566
|
}] } });
|
|
1543
1567
|
|