mmhglobal-dynamicform 2.28.4 → 2.28.6
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/README.md +13 -0
- package/esm2020/lib/components/fieldbase.component.mjs +5 -5
- package/esm2020/lib/ksplitter/ksplitter.component.mjs +4 -3
- package/esm2020/lib/zbuttons/zbuttons.component.mjs +4 -7
- package/esm2020/lib/zworkflowbuttons/zworkflowbuttons.component.mjs +3 -2
- package/fesm2015/mmhglobal-dynamicform.mjs +14 -13
- package/fesm2015/mmhglobal-dynamicform.mjs.map +1 -1
- package/fesm2020/mmhglobal-dynamicform.mjs +12 -13
- package/fesm2020/mmhglobal-dynamicform.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4334,7 +4334,7 @@ class FieldBase {
|
|
|
4334
4334
|
}
|
|
4335
4335
|
appendStyle(style, ind = "") {
|
|
4336
4336
|
const currentStyle = this.getStyle(ind);
|
|
4337
|
-
const combinedStyle = (currentStyle.endsWith(';') ? currentStyle : `${currentStyle};`) + style;
|
|
4337
|
+
const combinedStyle = (currentStyle.endsWith(';') || !currentStyle ? currentStyle : `${currentStyle};`) + style;
|
|
4338
4338
|
this.componentService.setStyleByIndex(this, ind, combinedStyle);
|
|
4339
4339
|
}
|
|
4340
4340
|
removeStyle(style, ind = "") {
|
|
@@ -4345,7 +4345,7 @@ class FieldBase {
|
|
|
4345
4345
|
const currentStyle = this.getStyle(ind);
|
|
4346
4346
|
if (currentStyle) {
|
|
4347
4347
|
const currentStyleList = currentStyle.split(';');
|
|
4348
|
-
const styleToRetain = currentStyleList.filter(x => !x.startsWith(`${property}:`)).join(';');
|
|
4348
|
+
const styleToRetain = currentStyleList.filter(x => !x.startsWith(`${property}:`) && !!x).join(';');
|
|
4349
4349
|
this.componentService.setStyleByIndex(this, ind, styleToRetain);
|
|
4350
4350
|
}
|
|
4351
4351
|
}
|
|
@@ -4359,7 +4359,7 @@ class FieldBase {
|
|
|
4359
4359
|
}
|
|
4360
4360
|
appendContainerStyle(style, ind = "") {
|
|
4361
4361
|
const currentStyle = this.getContainerStyle(ind);
|
|
4362
|
-
const combinedStyle = (currentStyle.endsWith(';') ? currentStyle : `${currentStyle};`) + style;
|
|
4362
|
+
const combinedStyle = (currentStyle.endsWith(';') || !currentStyle ? currentStyle : `${currentStyle};`) + style;
|
|
4363
4363
|
this.componentService.setContainerStyleByIndex(this, ind, combinedStyle);
|
|
4364
4364
|
}
|
|
4365
4365
|
removeContainerStyle(style, ind = "") {
|
|
@@ -4370,7 +4370,7 @@ class FieldBase {
|
|
|
4370
4370
|
const currentStyle = this.getContainerStyle(ind);
|
|
4371
4371
|
if (currentStyle) {
|
|
4372
4372
|
const currentStyleList = currentStyle.split(';');
|
|
4373
|
-
const styleToRetain = currentStyleList.filter(x => !x.startsWith(`${property}:`)).join(';');
|
|
4373
|
+
const styleToRetain = currentStyleList.filter(x => !x.startsWith(`${property}:`) && !!x).join(';');
|
|
4374
4374
|
this.componentService.setContainerStyleByIndex(this, ind, styleToRetain);
|
|
4375
4375
|
}
|
|
4376
4376
|
}
|
|
@@ -5404,14 +5404,12 @@ class ZbuttonsComponent extends ButtonFieldBase {
|
|
|
5404
5404
|
});
|
|
5405
5405
|
}
|
|
5406
5406
|
updateEventId(button) {
|
|
5407
|
+
var _a;
|
|
5408
|
+
const name = (_a = button.Name) !== null && _a !== void 0 ? _a : button.name;
|
|
5407
5409
|
const updateButtonEventId = (buttons) => {
|
|
5408
5410
|
buttons.forEach(item => {
|
|
5409
|
-
if (item.name ===
|
|
5410
|
-
|
|
5411
|
-
const attributes = JSON.parse(item.fieldAttribute.Attributes);
|
|
5412
|
-
item.fieldAttribute.eventId = eventId;
|
|
5413
|
-
attributes.eventId = eventId;
|
|
5414
|
-
item.fieldAttribute.Attributes = JSON.stringify(attributes);
|
|
5411
|
+
if (item.name === name) {
|
|
5412
|
+
item.eventId = ZComponentHelper.generateTimeStampId();
|
|
5415
5413
|
}
|
|
5416
5414
|
});
|
|
5417
5415
|
};
|
|
@@ -7042,9 +7040,11 @@ class ZworkflowbuttonsComponent extends ButtonFieldBase {
|
|
|
7042
7040
|
}
|
|
7043
7041
|
}
|
|
7044
7042
|
updateEventId(button) {
|
|
7043
|
+
var _a;
|
|
7044
|
+
const name = (_a = button.Name) !== null && _a !== void 0 ? _a : button.name;
|
|
7045
7045
|
const updateButtonEventId = (buttons) => {
|
|
7046
7046
|
buttons.forEach(item => {
|
|
7047
|
-
if (item.name ===
|
|
7047
|
+
if (item.name === name) {
|
|
7048
7048
|
const eventId = ZComponentHelper.generateTimeStampId();
|
|
7049
7049
|
const attributes = JSON.parse(item.fieldAttribute.Attributes);
|
|
7050
7050
|
item.fieldAttribute.eventId = eventId;
|
|
@@ -14121,6 +14121,7 @@ class KsplitterComponent extends ContainerFieldBase {
|
|
|
14121
14121
|
toggleCollapseStateByIndex(index, isCollapse) {
|
|
14122
14122
|
const selectedPane = this.splitter.panes.find((_, i) => i === index);
|
|
14123
14123
|
selectedPane.collapsed = isCollapse !== null && isCollapse !== void 0 ? isCollapse : !selectedPane.collapsed;
|
|
14124
|
+
this.OnCollapse(null, this.data.PanelItems[index]);
|
|
14124
14125
|
}
|
|
14125
14126
|
ngAfterViewInit() {
|
|
14126
14127
|
this.componentService.decrementComponentCounterForField(this.data);
|
|
@@ -14132,10 +14133,10 @@ class KsplitterComponent extends ContainerFieldBase {
|
|
|
14132
14133
|
}
|
|
14133
14134
|
}
|
|
14134
14135
|
KsplitterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: KsplitterComponent, deps: [{ token: ZComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
14135
|
-
KsplitterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: KsplitterComponent, selector: "app-ksplitter", viewQueries: [{ propertyName: "splitter", first: true, predicate: SplitterComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ksplitter-container e1tag-container-style\"\r\n *ngIf=\"!isLoading && (!!componentProperties.isVisibleField ? group[componentProperties.isVisibleField] : componentProperties.isVisible)\"\r\n [ngClass]=\"data.Class\" [style]=\"componentProperties.containerStyle.style\" [class]=\"data.ComponentStyleType\">\r\n <kendo-splitter #splitter [orientation]=\"data.Orientation || 'horizontal'\" class=\"e1tag-container-style1\"\r\n [style]=\"componentProperties.containerStyle.style1\">\r\n <kendo-splitter-pane *ngFor=\"let item of data.PanelItems; let i = index\"\r\n [resizable]=\"item.Resizable != undefined ? item.Resizable : true\"\r\n [collapsible]=\"item.AllowCollapse != undefined ? item.AllowCollapse : true\" [size]=\"item.Size\"\r\n class=\"e1tag-container-style2\" [style]=\"componentProperties.containerStyle.style2 + item.Style\"\r\n [min]=\"item.MinWidth\" [max]=\"item.MaxWidth\"\r\n (collapsedChange)=\"OnCollapse($event, item)\">\r\n <app-zdiv [style]=\"componentProperties.containerStyle.style3\" class=\"e1tag-container-style3\"\r\n [data]=\"data | panelAreaFilter: i + ''\" [form]=\"form\" [group]=\"group\" [containerField]=\"containerField\">\r\n </app-zdiv>\r\n </kendo-splitter-pane>\r\n </kendo-splitter>\r\n</div>\r\n", styles: [""], components: [{ type: i2$5.SplitterComponent, selector: "kendo-splitter", inputs: ["orientation"], outputs: ["layoutChange"], exportAs: ["kendoSplitter"] }, { type: i2$5.SplitterPaneComponent, selector: "kendo-splitter-pane", inputs: ["order", "size", "min", "max", "resizable", "collapsible", "scrollable", "collapsed", "orientation", "containsSplitter", "overlayContent"], outputs: ["sizeChange", "collapsedChange"], exportAs: ["kendoSplitterPane"] }, { type: ZdivComponent, selector: "app-zdiv" }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i7.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "panelAreaFilter": PanelAreaFilter } });
|
|
14136
|
+
KsplitterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: KsplitterComponent, selector: "app-ksplitter", viewQueries: [{ propertyName: "splitter", first: true, predicate: SplitterComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ksplitter-container e1tag-container-style\"\r\n *ngIf=\"!isLoading && (!!componentProperties.isVisibleField ? group[componentProperties.isVisibleField] : componentProperties.isVisible)\"\r\n [ngClass]=\"data.Class\" [style]=\"componentProperties.containerStyle.style\" [class]=\"data.ComponentStyleType\">\r\n <kendo-splitter #splitter [orientation]=\"data.Orientation || 'horizontal'\" class=\"e1tag-container-style1\"\r\n [style]=\"componentProperties.containerStyle.style1\">\r\n <kendo-splitter-pane *ngFor=\"let item of data.PanelItems; let i = index\"\r\n [resizable]=\"item.Resizable != undefined ? item.Resizable : true\"\r\n [collapsible]=\"item.AllowCollapse != undefined ? item.AllowCollapse : true\" [size]=\"item.Size\"\r\n class=\"e1tag-container-style2\" [style]=\"componentProperties.containerStyle.style2 + item.Style\"\r\n [min]=\"item.MinWidth\" [max]=\"item.MaxWidth\" [collapsed]=\"item.isCollapse ?? false\"\r\n (collapsedChange)=\"OnCollapse($event, item)\">\r\n <app-zdiv [style]=\"componentProperties.containerStyle.style3\" class=\"e1tag-container-style3\"\r\n [data]=\"data | panelAreaFilter: i + ''\" [form]=\"form\" [group]=\"group\" [containerField]=\"containerField\">\r\n </app-zdiv>\r\n </kendo-splitter-pane>\r\n </kendo-splitter>\r\n</div>\r\n", styles: [""], components: [{ type: i2$5.SplitterComponent, selector: "kendo-splitter", inputs: ["orientation"], outputs: ["layoutChange"], exportAs: ["kendoSplitter"] }, { type: i2$5.SplitterPaneComponent, selector: "kendo-splitter-pane", inputs: ["order", "size", "min", "max", "resizable", "collapsible", "scrollable", "collapsed", "orientation", "containsSplitter", "overlayContent"], outputs: ["sizeChange", "collapsedChange"], exportAs: ["kendoSplitterPane"] }, { type: ZdivComponent, selector: "app-zdiv" }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i7.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "panelAreaFilter": PanelAreaFilter } });
|
|
14136
14137
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: KsplitterComponent, decorators: [{
|
|
14137
14138
|
type: Component,
|
|
14138
|
-
args: [{ selector: "app-ksplitter", template: "<div class=\"ksplitter-container e1tag-container-style\"\r\n *ngIf=\"!isLoading && (!!componentProperties.isVisibleField ? group[componentProperties.isVisibleField] : componentProperties.isVisible)\"\r\n [ngClass]=\"data.Class\" [style]=\"componentProperties.containerStyle.style\" [class]=\"data.ComponentStyleType\">\r\n <kendo-splitter #splitter [orientation]=\"data.Orientation || 'horizontal'\" class=\"e1tag-container-style1\"\r\n [style]=\"componentProperties.containerStyle.style1\">\r\n <kendo-splitter-pane *ngFor=\"let item of data.PanelItems; let i = index\"\r\n [resizable]=\"item.Resizable != undefined ? item.Resizable : true\"\r\n [collapsible]=\"item.AllowCollapse != undefined ? item.AllowCollapse : true\" [size]=\"item.Size\"\r\n class=\"e1tag-container-style2\" [style]=\"componentProperties.containerStyle.style2 + item.Style\"\r\n [min]=\"item.MinWidth\" [max]=\"item.MaxWidth\"\r\n (collapsedChange)=\"OnCollapse($event, item)\">\r\n <app-zdiv [style]=\"componentProperties.containerStyle.style3\" class=\"e1tag-container-style3\"\r\n [data]=\"data | panelAreaFilter: i + ''\" [form]=\"form\" [group]=\"group\" [containerField]=\"containerField\">\r\n </app-zdiv>\r\n </kendo-splitter-pane>\r\n </kendo-splitter>\r\n</div>\r\n", styles: [""] }]
|
|
14139
|
+
args: [{ selector: "app-ksplitter", template: "<div class=\"ksplitter-container e1tag-container-style\"\r\n *ngIf=\"!isLoading && (!!componentProperties.isVisibleField ? group[componentProperties.isVisibleField] : componentProperties.isVisible)\"\r\n [ngClass]=\"data.Class\" [style]=\"componentProperties.containerStyle.style\" [class]=\"data.ComponentStyleType\">\r\n <kendo-splitter #splitter [orientation]=\"data.Orientation || 'horizontal'\" class=\"e1tag-container-style1\"\r\n [style]=\"componentProperties.containerStyle.style1\">\r\n <kendo-splitter-pane *ngFor=\"let item of data.PanelItems; let i = index\"\r\n [resizable]=\"item.Resizable != undefined ? item.Resizable : true\"\r\n [collapsible]=\"item.AllowCollapse != undefined ? item.AllowCollapse : true\" [size]=\"item.Size\"\r\n class=\"e1tag-container-style2\" [style]=\"componentProperties.containerStyle.style2 + item.Style\"\r\n [min]=\"item.MinWidth\" [max]=\"item.MaxWidth\" [collapsed]=\"item.isCollapse ?? false\"\r\n (collapsedChange)=\"OnCollapse($event, item)\">\r\n <app-zdiv [style]=\"componentProperties.containerStyle.style3\" class=\"e1tag-container-style3\"\r\n [data]=\"data | panelAreaFilter: i + ''\" [form]=\"form\" [group]=\"group\" [containerField]=\"containerField\">\r\n </app-zdiv>\r\n </kendo-splitter-pane>\r\n </kendo-splitter>\r\n</div>\r\n", styles: [""] }]
|
|
14139
14140
|
}], ctorParameters: function () { return [{ type: ZComponentService }]; }, propDecorators: { splitter: [{
|
|
14140
14141
|
type: ViewChild,
|
|
14141
14142
|
args: [SplitterComponent]
|