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
|
@@ -4308,7 +4308,7 @@ class FieldBase {
|
|
|
4308
4308
|
}
|
|
4309
4309
|
appendStyle(style, ind = "") {
|
|
4310
4310
|
const currentStyle = this.getStyle(ind);
|
|
4311
|
-
const combinedStyle = (currentStyle.endsWith(';') ? currentStyle : `${currentStyle};`) + style;
|
|
4311
|
+
const combinedStyle = (currentStyle.endsWith(';') || !currentStyle ? currentStyle : `${currentStyle};`) + style;
|
|
4312
4312
|
this.componentService.setStyleByIndex(this, ind, combinedStyle);
|
|
4313
4313
|
}
|
|
4314
4314
|
removeStyle(style, ind = "") {
|
|
@@ -4319,7 +4319,7 @@ class FieldBase {
|
|
|
4319
4319
|
const currentStyle = this.getStyle(ind);
|
|
4320
4320
|
if (currentStyle) {
|
|
4321
4321
|
const currentStyleList = currentStyle.split(';');
|
|
4322
|
-
const styleToRetain = currentStyleList.filter(x => !x.startsWith(`${property}:`)).join(';');
|
|
4322
|
+
const styleToRetain = currentStyleList.filter(x => !x.startsWith(`${property}:`) && !!x).join(';');
|
|
4323
4323
|
this.componentService.setStyleByIndex(this, ind, styleToRetain);
|
|
4324
4324
|
}
|
|
4325
4325
|
}
|
|
@@ -4333,7 +4333,7 @@ class FieldBase {
|
|
|
4333
4333
|
}
|
|
4334
4334
|
appendContainerStyle(style, ind = "") {
|
|
4335
4335
|
const currentStyle = this.getContainerStyle(ind);
|
|
4336
|
-
const combinedStyle = (currentStyle.endsWith(';') ? currentStyle : `${currentStyle};`) + style;
|
|
4336
|
+
const combinedStyle = (currentStyle.endsWith(';') || !currentStyle ? currentStyle : `${currentStyle};`) + style;
|
|
4337
4337
|
this.componentService.setContainerStyleByIndex(this, ind, combinedStyle);
|
|
4338
4338
|
}
|
|
4339
4339
|
removeContainerStyle(style, ind = "") {
|
|
@@ -4344,7 +4344,7 @@ class FieldBase {
|
|
|
4344
4344
|
const currentStyle = this.getContainerStyle(ind);
|
|
4345
4345
|
if (currentStyle) {
|
|
4346
4346
|
const currentStyleList = currentStyle.split(';');
|
|
4347
|
-
const styleToRetain = currentStyleList.filter(x => !x.startsWith(`${property}:`)).join(';');
|
|
4347
|
+
const styleToRetain = currentStyleList.filter(x => !x.startsWith(`${property}:`) && !!x).join(';');
|
|
4348
4348
|
this.componentService.setContainerStyleByIndex(this, ind, styleToRetain);
|
|
4349
4349
|
}
|
|
4350
4350
|
}
|
|
@@ -5376,14 +5376,11 @@ class ZbuttonsComponent extends ButtonFieldBase {
|
|
|
5376
5376
|
});
|
|
5377
5377
|
}
|
|
5378
5378
|
updateEventId(button) {
|
|
5379
|
+
const name = button.Name ?? button.name;
|
|
5379
5380
|
const updateButtonEventId = (buttons) => {
|
|
5380
5381
|
buttons.forEach(item => {
|
|
5381
|
-
if (item.name ===
|
|
5382
|
-
|
|
5383
|
-
const attributes = JSON.parse(item.fieldAttribute.Attributes);
|
|
5384
|
-
item.fieldAttribute.eventId = eventId;
|
|
5385
|
-
attributes.eventId = eventId;
|
|
5386
|
-
item.fieldAttribute.Attributes = JSON.stringify(attributes);
|
|
5382
|
+
if (item.name === name) {
|
|
5383
|
+
item.eventId = ZComponentHelper.generateTimeStampId();
|
|
5387
5384
|
}
|
|
5388
5385
|
});
|
|
5389
5386
|
};
|
|
@@ -7007,9 +7004,10 @@ class ZworkflowbuttonsComponent extends ButtonFieldBase {
|
|
|
7007
7004
|
}
|
|
7008
7005
|
}
|
|
7009
7006
|
updateEventId(button) {
|
|
7007
|
+
const name = button.Name ?? button.name;
|
|
7010
7008
|
const updateButtonEventId = (buttons) => {
|
|
7011
7009
|
buttons.forEach(item => {
|
|
7012
|
-
if (item.name ===
|
|
7010
|
+
if (item.name === name) {
|
|
7013
7011
|
const eventId = ZComponentHelper.generateTimeStampId();
|
|
7014
7012
|
const attributes = JSON.parse(item.fieldAttribute.Attributes);
|
|
7015
7013
|
item.fieldAttribute.eventId = eventId;
|
|
@@ -14085,6 +14083,7 @@ class KsplitterComponent extends ContainerFieldBase {
|
|
|
14085
14083
|
toggleCollapseStateByIndex(index, isCollapse) {
|
|
14086
14084
|
const selectedPane = this.splitter.panes.find((_, i) => i === index);
|
|
14087
14085
|
selectedPane.collapsed = isCollapse ?? !selectedPane.collapsed;
|
|
14086
|
+
this.OnCollapse(null, this.data.PanelItems[index]);
|
|
14088
14087
|
}
|
|
14089
14088
|
ngAfterViewInit() {
|
|
14090
14089
|
this.componentService.decrementComponentCounterForField(this.data);
|
|
@@ -14096,10 +14095,10 @@ class KsplitterComponent extends ContainerFieldBase {
|
|
|
14096
14095
|
}
|
|
14097
14096
|
}
|
|
14098
14097
|
KsplitterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: KsplitterComponent, deps: [{ token: ZComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
14099
|
-
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 } });
|
|
14098
|
+
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 } });
|
|
14100
14099
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: KsplitterComponent, decorators: [{
|
|
14101
14100
|
type: Component,
|
|
14102
|
-
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: [""] }]
|
|
14101
|
+
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: [""] }]
|
|
14103
14102
|
}], ctorParameters: function () { return [{ type: ZComponentService }]; }, propDecorators: { splitter: [{
|
|
14104
14103
|
type: ViewChild,
|
|
14105
14104
|
args: [SplitterComponent]
|