ngx-smz-ui 3.6.3 → 3.6.4
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/ngx-smz-ui.umd.js +10 -5
- package/bundles/ngx-smz-ui.umd.js.map +1 -1
- package/esm2015/lib/builders/smz-documents/document-cells.js +6 -2
- package/esm2015/lib/builders/smz-documents/document-content.js +2 -2
- package/esm2015/lib/modules/smz-documents/components/chart/chart.component.js +4 -3
- package/esm2015/lib/modules/smz-documents/components/content/content.component.js +2 -2
- package/esm2015/lib/modules/smz-documents/models/smz-document-features.js +1 -1
- package/esm2015/lib/modules/smz-documents/services/smz-documents.service.js +1 -1
- package/fesm2015/ngx-smz-ui.js +10 -5
- package/fesm2015/ngx-smz-ui.js.map +1 -1
- package/lib/builders/smz-documents/document-cells.d.ts +1 -0
- package/lib/modules/smz-documents/models/smz-document-features.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9797,11 +9797,12 @@
|
|
|
9797
9797
|
var SmzDocumentChartComponent = /** @class */ (function () {
|
|
9798
9798
|
function SmzDocumentChartComponent() {
|
|
9799
9799
|
}
|
|
9800
|
-
SmzDocumentChartComponent.prototype.ngOnInit = function () {
|
|
9800
|
+
SmzDocumentChartComponent.prototype.ngOnInit = function () {
|
|
9801
|
+
};
|
|
9801
9802
|
return SmzDocumentChartComponent;
|
|
9802
9803
|
}());
|
|
9803
9804
|
SmzDocumentChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDocumentChartComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9804
|
-
SmzDocumentChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: SmzDocumentChartComponent, selector: "smz-document-chart", inputs: { data: "data", config: "config" }, ngImport: i0__namespace, template: "<div\n [ngStyle]=\"{ background: data.container.background }\"\n class=\"p-grid p-nogutter p-align-stretch p-justify-start h-full w-full relative\"\n [ngClass]=\"data.container.styles\">\n\n <smz-ui-chart\n class=\"w-full h-full\"\n [type]=\"data.content.chartData.type\"\n [data]=\"data.content.chartData.data\"\n [options]=\"data.content.chartData.config\">\n </smz-ui-chart>\n\n</div>", components: [{ type: SmzChartComponent, selector: "smz-ui-chart", inputs: ["type", "plugins", "width", "height", "responsive", "data", "options"], outputs: ["chartClick", "chartHover"] }], directives: [{ type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
9805
|
+
SmzDocumentChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: SmzDocumentChartComponent, selector: "smz-document-chart", inputs: { data: "data", config: "config" }, ngImport: i0__namespace, template: "<div\n [ngStyle]=\"{ background: data.container.background }\"\n class=\"p-grid p-nogutter p-align-stretch p-justify-start h-full w-full relative\"\n [ngClass]=\"data.container.styles\">\n\n <smz-ui-chart\n class=\"w-full h-full\"\n [ngClass]=\"data.flexWidth\"\n [type]=\"data.content.chartData.type\"\n [data]=\"data.content.chartData.data\"\n [options]=\"data.content.chartData.config\">\n </smz-ui-chart>\n\n</div>", components: [{ type: SmzChartComponent, selector: "smz-ui-chart", inputs: ["type", "plugins", "width", "height", "responsive", "data", "options"], outputs: ["chartClick", "chartHover"] }], directives: [{ type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
9805
9806
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDocumentChartComponent, decorators: [{
|
|
9806
9807
|
type: i0.Component,
|
|
9807
9808
|
args: [{
|
|
@@ -9822,7 +9823,7 @@
|
|
|
9822
9823
|
return SmzDocumentContentComponent;
|
|
9823
9824
|
}());
|
|
9824
9825
|
SmzDocumentContentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDocumentContentComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9825
|
-
SmzDocumentContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: SmzDocumentContentComponent, selector: "smz-document-content", inputs: { data: "data", config: "config", isDebug: "isDebug" }, ngImport: i0__namespace, template: "<table class=\"w-full h-full border-collapse\" cellspacing=\"0\" cellpadding=\"0\">\n\n <ng-container *ngFor=\"let row of data?.rows\">\n\n <tr>\n\n <ng-container *ngFor=\"let cell of row.cells\">\n\n <td class=\"relative\" [colSpan]=\"cell.colspan\" [rowSpan]=\"cell.rowspan\" [ngStyle]=\"{ height: cell.height, width: cell.width }\" [ngClass]=\"data.cellStyles\">\n\n <ng-container [ngSwitch]=\"cell.data?.type\">\n\n <ng-container *ngSwitchCase=\"'content'\">\n <smz-document-content [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-content>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.TITLE\">\n <smz-document-title [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-title>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.DIVIDER\">\n <smz-document-divider [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-divider>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.FIELD\">\n <smz-document-field [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-field>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.IMAGE\">\n <smz-document-image [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-image>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.SPACER\">\n <smz-document-spacer [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-spacer>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.SUB_TITLE\">\n <smz-document-sub-title [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-sub-title>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.FIELDS_GROUP\">\n <smz-document-fields-group [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-fields-group>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.TABLE\">\n <smz-document-table [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-table>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.CHART\">\n <smz-document-chart [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-chart>\n </ng-container>\n\n <ng-container *ngSwitchDefault>unknown cell data type</ng-container>\n\n </ng-container>\n\n <div *ngIf=\"isDebug\"\n class=\"absolute inset-0 w-full h-full border-dotted border border-red-500 cursor-pointer hover:bg-red-700 hover:opacity-10 transition-all\"\n [pTooltip]=\"'colspan: ' + cell.colspan + ' - rowspan: ' + cell.rowspan\" appendTo=\"body\" [hideDelay]=\"200\" [showDelay]=\"50\">\n </div>\n\n </td>\n\n </ng-container>\n\n </tr>\n\n </ng-container>\n\n</table>", components: [{ type: SmzDocumentContentComponent, selector: "smz-document-content", inputs: ["data", "config", "isDebug"] }, { type: SmzDocumentTitleComponent, selector: "smz-document-title", inputs: ["data", "config"] }, { type: SmzDocumentDividerComponent, selector: "smz-document-divider", inputs: ["data", "config"] }, { type: SmzDocumentFieldComponent, selector: "smz-document-field", inputs: ["data", "config"] }, { type: SmzDocumentImageComponent, selector: "smz-document-image", inputs: ["data", "config"] }, { type: SmzDocumentSpacerComponent, selector: "smz-document-spacer", inputs: ["data", "config"] }, { type: SmzDocumentSubTitleComponent, selector: "smz-document-sub-title", inputs: ["data", "config"] }, { type: SmzDocumentFieldsGroupComponent, selector: "smz-document-fields-group", inputs: ["data", "config"] }, { type: SmzDocumentTableComponent, selector: "smz-document-table", inputs: ["data", "config"] }, { type: SmzDocumentChartComponent, selector: "smz-document-chart", inputs: ["data", "config"] }], directives: [{ type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }] });
|
|
9826
|
+
SmzDocumentContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: SmzDocumentContentComponent, selector: "smz-document-content", inputs: { data: "data", config: "config", isDebug: "isDebug" }, ngImport: i0__namespace, template: "<table class=\"w-full h-full border-collapse bg-white\" cellspacing=\"0\" cellpadding=\"0\">\n\n <ng-container *ngFor=\"let row of data?.rows\">\n\n <tr>\n\n <ng-container *ngFor=\"let cell of row.cells\">\n\n <td class=\"relative\" [colSpan]=\"cell.colspan\" [rowSpan]=\"cell.rowspan\" [ngStyle]=\"{ height: cell.height, width: cell.width }\" [ngClass]=\"data.cellStyles\">\n\n <ng-container [ngSwitch]=\"cell.data?.type\">\n\n <ng-container *ngSwitchCase=\"'content'\">\n <smz-document-content [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-content>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.TITLE\">\n <smz-document-title [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-title>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.DIVIDER\">\n <smz-document-divider [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-divider>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.FIELD\">\n <smz-document-field [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-field>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.IMAGE\">\n <smz-document-image [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-image>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.SPACER\">\n <smz-document-spacer [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-spacer>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.SUB_TITLE\">\n <smz-document-sub-title [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-sub-title>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.FIELDS_GROUP\">\n <smz-document-fields-group [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-fields-group>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.TABLE\">\n <smz-document-table [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-table>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.CHART\">\n <smz-document-chart [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-chart>\n </ng-container>\n\n <ng-container *ngSwitchDefault>unknown cell data type</ng-container>\n\n </ng-container>\n\n <div *ngIf=\"isDebug\"\n class=\"absolute inset-0 w-full h-full border-dotted border border-red-500 cursor-pointer hover:bg-red-700 hover:opacity-10 transition-all\"\n [pTooltip]=\"'colspan: ' + cell.colspan + ' - rowspan: ' + cell.rowspan\" appendTo=\"body\" [hideDelay]=\"200\" [showDelay]=\"50\">\n </div>\n\n </td>\n\n </ng-container>\n\n </tr>\n\n </ng-container>\n\n</table>", components: [{ type: SmzDocumentContentComponent, selector: "smz-document-content", inputs: ["data", "config", "isDebug"] }, { type: SmzDocumentTitleComponent, selector: "smz-document-title", inputs: ["data", "config"] }, { type: SmzDocumentDividerComponent, selector: "smz-document-divider", inputs: ["data", "config"] }, { type: SmzDocumentFieldComponent, selector: "smz-document-field", inputs: ["data", "config"] }, { type: SmzDocumentImageComponent, selector: "smz-document-image", inputs: ["data", "config"] }, { type: SmzDocumentSpacerComponent, selector: "smz-document-spacer", inputs: ["data", "config"] }, { type: SmzDocumentSubTitleComponent, selector: "smz-document-sub-title", inputs: ["data", "config"] }, { type: SmzDocumentFieldsGroupComponent, selector: "smz-document-fields-group", inputs: ["data", "config"] }, { type: SmzDocumentTableComponent, selector: "smz-document-table", inputs: ["data", "config"] }, { type: SmzDocumentChartComponent, selector: "smz-document-chart", inputs: ["data", "config"] }], directives: [{ type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }] });
|
|
9826
9827
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDocumentContentComponent, decorators: [{
|
|
9827
9828
|
type: i0.Component,
|
|
9828
9829
|
args: [{
|
|
@@ -24361,7 +24362,6 @@
|
|
|
24361
24362
|
_this.that = _this;
|
|
24362
24363
|
var defaultConfig = cloneDeep__default["default"](_this._documentBuilder._state.config);
|
|
24363
24364
|
_data.container = { styles: defaultConfig.tables.container };
|
|
24364
|
-
_data.content = {};
|
|
24365
24365
|
return _this;
|
|
24366
24366
|
}
|
|
24367
24367
|
SmzCellChartBuilder.prototype.overrideContainerStyles = function (styleClass) {
|
|
@@ -24372,6 +24372,11 @@
|
|
|
24372
24372
|
this._data.container.background = color;
|
|
24373
24373
|
return this.that;
|
|
24374
24374
|
};
|
|
24375
|
+
SmzCellChartBuilder.prototype.setWidth = function (width) {
|
|
24376
|
+
var newStyle = width === 'auto' ? 'p-col' : "p-" + width;
|
|
24377
|
+
this._data.flexWidth = newStyle;
|
|
24378
|
+
return this;
|
|
24379
|
+
};
|
|
24375
24380
|
return SmzCellChartBuilder;
|
|
24376
24381
|
}(SmzDocumentBaseCellBuilder));
|
|
24377
24382
|
|
|
@@ -24464,7 +24469,7 @@
|
|
|
24464
24469
|
SmzDocumentRowBuilder.prototype.chart = function (chartData) {
|
|
24465
24470
|
var cell = { colspan: 1, rowspan: 1, height: '100%', width: 'auto', data: null };
|
|
24466
24471
|
this._row.cells.push(cell);
|
|
24467
|
-
var item = { type: SmzDocumentFeatureDefinitions.CHART, content: { chartData: chartData } };
|
|
24472
|
+
var item = { type: SmzDocumentFeatureDefinitions.CHART, content: { chartData: chartData }, flexWidth: 'p-col' };
|
|
24468
24473
|
cell.data = item;
|
|
24469
24474
|
return new SmzCellChartBuilder(this, cell, item, this._documentBuilder);
|
|
24470
24475
|
};
|