verben-workflow-ui 0.7.1 → 0.7.2

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.
@@ -25,11 +25,11 @@ class FormViewerComponent {
25
25
  this.onClose.emit();
26
26
  }
27
27
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormViewerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
28
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: FormViewerComponent, selector: "app-form-viewer", inputs: { form: "form", isVisible: "isVisible" }, outputs: { onOpen: "onOpen", onClose: "onClose" }, ngImport: i0, template: "<verben-dialogue\n [showCloseIcon]=\"false\"\n [dismissOutsideClick]=\"false\"\n [closeOnEscape]=\"true\"\n [size]=\"'medium'\"\n [mode]=\"'dialogue'\"\n [customClass]=\"'show-form'\"\n [disableFooter]=\"true\"\n (openModal)=\"onModalOpen($event)\"\n [isVisible]=\"isVisible\"\n [bodyTemplate]=\"bodyTemplate\"\n (closeModal)=\"onModalClose($event)\"\n>\n <ng-template #bodyTemplate>\n <div class=\"dialog-body flex flex-col gap-4\">\n <div class=\"main-body flex flex-col gap-2\">\n <div\n class=\"group-selector-container flex overflow-x-auto bg-[#9A9FBF80] rounded-xl px-3 py-2 w-full relative gap-3\"\n *ngIf=\"form\"\n >\n <div *ngFor=\"let group of form.Entities; index as j\">\n <div\n (click)=\"setActiveGroup(j)\"\n [ngClass]=\"{\n 'bg-[#fff] text-primary rounded-lg shadow-lg':\n activeFormGroup == j\n }\"\n class=\"px-6 py-2 cursor-pointer\"\n >\n {{ group.Name }}\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"form && form.Entities[activeFormGroup]; else emptyState\"\n class=\"selected-form-container\"\n >\n <form-control\n [dataType]=\"dataType\"\n [disabled]=\"true\"\n [formProperties]=\"form.Entities[activeFormGroup].Properties\"\n ></form-control>\n </div>\n <ng-template #emptyState>\n <p class=\"mt-4 p-4 text-gray-600 text-center\">\n No entries available for the selected form group.\n </p>\n </ng-template>\n </div>\n <div class=\"dialog-button-container flex justify-end gap-2\">\n <verbena-button\n width=\"100%\"\n class=\"verben-primary-button\"\n [text]=\"'Close'\"\n (click)=\"onModalClose($event)\"\n >\n </verbena-button>\n </div>\n </div>\n </ng-template>\n</verben-dialogue>\n", styles: [".dialog-body{padding:15px;height:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.VerbenaButtonComponent, selector: "verbena-button", inputs: ["type", "text", "styleType", "size", "block", "disable", "disabled", "isLoading", "spinnerSize", "spinnerColor", "svg", "svgPosition", "svgWidth", "svgHeight", "svgSize", "svgColor", "icon", "useIcon", "iconPosition", "iconColor", "variant", "weight", "bgColor", "textColor", "border", "borderRadius", "pd", "width", "height", "fontSize", "fontWeight", "buttonClass", "buttonTextClass"] }, { kind: "component", type: i2.VerbenDialogueComponent, selector: "verben-dialogue", inputs: ["dialogueWidth", "headerTemplate", "bodyTemplate", "footerTemplate", "showCloseIcon", "dismissOutsideClick", "closeOnEscape", "isVisible", "size", "backdropColor", "customClass", "disableFooter", "margin", "padding", "borderRadius", "dialogueBgColor", "width", "closeIconClass", "boxShadow", "enableTransition", "modalData", "mode", "position", "drawerWidth"], outputs: ["openModal", "closeModal"] }, { kind: "component", type: i3.FormControlComponent, selector: "form-control", inputs: ["dataType", "value", "boolInputType", "formProperties", "disabled"] }] });
28
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: FormViewerComponent, selector: "app-form-viewer", inputs: { form: "form", isVisible: "isVisible" }, outputs: { onOpen: "onOpen", onClose: "onClose" }, ngImport: i0, template: "<verben-dialogue\n [showCloseIcon]=\"false\"\n [dismissOutsideClick]=\"false\"\n [closeOnEscape]=\"true\"\n [size]=\"'medium'\"\n [mode]=\"'dialogue'\"\n [padding]=\"'16px 18px'\"\n [customClass]=\"'show-form'\"\n [disableFooter]=\"true\"\n (openModal)=\"onModalOpen($event)\"\n [isVisible]=\"isVisible\"\n [bodyTemplate]=\"bodyTemplate\"\n (closeModal)=\"onModalClose($event)\"\n>\n <ng-template #bodyTemplate>\n <div class=\"dialog-body flex flex-col gap-4\">\n <div class=\"main-body flex flex-col gap-2\">\n <div\n class=\"group-selector-container flex overflow-x-auto bg-[#9A9FBF80] rounded-xl px-3 py-2 w-full relative gap-3\"\n *ngIf=\"form\"\n >\n <div *ngFor=\"let group of form.Entities; index as j\">\n <div\n (click)=\"setActiveGroup(j)\"\n [ngClass]=\"{\n 'bg-[#fff] text-primary rounded-lg shadow-lg':\n activeFormGroup == j\n }\"\n class=\"px-6 py-2 cursor-pointer\"\n >\n {{ group.Name }}\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"form && form.Entities[activeFormGroup]; else emptyState\"\n class=\"selected-form-container\"\n >\n <form-control\n [dataType]=\"dataType\"\n [disabled]=\"true\"\n [formProperties]=\"form.Entities[activeFormGroup].Properties\"\n ></form-control>\n </div>\n <ng-template #emptyState>\n <p class=\"mt-4 p-4 text-gray-600 text-center\">\n No entries available for the selected form group.\n </p>\n </ng-template>\n </div>\n <div class=\"dialog-button-container flex justify-end gap-2\">\n <verbena-button\n width=\"100%\"\n class=\"verben-primary-button\"\n [text]=\"'Close'\"\n (click)=\"onModalClose($event)\"\n >\n </verbena-button>\n </div>\n </div>\n </ng-template>\n</verben-dialogue>\n", styles: [".dialog-body{padding:0;height:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.VerbenaButtonComponent, selector: "verbena-button", inputs: ["type", "text", "styleType", "size", "block", "disable", "disabled", "isLoading", "spinnerSize", "spinnerColor", "svg", "svgPosition", "svgWidth", "svgHeight", "svgSize", "svgColor", "icon", "useIcon", "iconPosition", "iconColor", "variant", "weight", "bgColor", "textColor", "border", "borderRadius", "pd", "width", "height", "fontSize", "fontWeight", "buttonClass", "buttonTextClass"] }, { kind: "component", type: i2.VerbenDialogueComponent, selector: "verben-dialogue", inputs: ["dialogueWidth", "headerTemplate", "bodyTemplate", "footerTemplate", "showCloseIcon", "dismissOutsideClick", "closeOnEscape", "isVisible", "size", "backdropColor", "customClass", "disableFooter", "margin", "padding", "borderRadius", "dialogueBgColor", "width", "closeIconClass", "boxShadow", "enableTransition", "modalData", "mode", "position", "drawerWidth"], outputs: ["openModal", "closeModal"] }, { kind: "component", type: i3.FormControlComponent, selector: "form-control", inputs: ["dataType", "value", "boolInputType", "formProperties", "disabled"] }] });
29
29
  }
30
30
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormViewerComponent, decorators: [{
31
31
  type: Component,
32
- args: [{ selector: 'app-form-viewer', template: "<verben-dialogue\n [showCloseIcon]=\"false\"\n [dismissOutsideClick]=\"false\"\n [closeOnEscape]=\"true\"\n [size]=\"'medium'\"\n [mode]=\"'dialogue'\"\n [customClass]=\"'show-form'\"\n [disableFooter]=\"true\"\n (openModal)=\"onModalOpen($event)\"\n [isVisible]=\"isVisible\"\n [bodyTemplate]=\"bodyTemplate\"\n (closeModal)=\"onModalClose($event)\"\n>\n <ng-template #bodyTemplate>\n <div class=\"dialog-body flex flex-col gap-4\">\n <div class=\"main-body flex flex-col gap-2\">\n <div\n class=\"group-selector-container flex overflow-x-auto bg-[#9A9FBF80] rounded-xl px-3 py-2 w-full relative gap-3\"\n *ngIf=\"form\"\n >\n <div *ngFor=\"let group of form.Entities; index as j\">\n <div\n (click)=\"setActiveGroup(j)\"\n [ngClass]=\"{\n 'bg-[#fff] text-primary rounded-lg shadow-lg':\n activeFormGroup == j\n }\"\n class=\"px-6 py-2 cursor-pointer\"\n >\n {{ group.Name }}\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"form && form.Entities[activeFormGroup]; else emptyState\"\n class=\"selected-form-container\"\n >\n <form-control\n [dataType]=\"dataType\"\n [disabled]=\"true\"\n [formProperties]=\"form.Entities[activeFormGroup].Properties\"\n ></form-control>\n </div>\n <ng-template #emptyState>\n <p class=\"mt-4 p-4 text-gray-600 text-center\">\n No entries available for the selected form group.\n </p>\n </ng-template>\n </div>\n <div class=\"dialog-button-container flex justify-end gap-2\">\n <verbena-button\n width=\"100%\"\n class=\"verben-primary-button\"\n [text]=\"'Close'\"\n (click)=\"onModalClose($event)\"\n >\n </verbena-button>\n </div>\n </div>\n </ng-template>\n</verben-dialogue>\n", styles: [".dialog-body{padding:15px;height:100%}\n"] }]
32
+ args: [{ selector: 'app-form-viewer', template: "<verben-dialogue\n [showCloseIcon]=\"false\"\n [dismissOutsideClick]=\"false\"\n [closeOnEscape]=\"true\"\n [size]=\"'medium'\"\n [mode]=\"'dialogue'\"\n [padding]=\"'16px 18px'\"\n [customClass]=\"'show-form'\"\n [disableFooter]=\"true\"\n (openModal)=\"onModalOpen($event)\"\n [isVisible]=\"isVisible\"\n [bodyTemplate]=\"bodyTemplate\"\n (closeModal)=\"onModalClose($event)\"\n>\n <ng-template #bodyTemplate>\n <div class=\"dialog-body flex flex-col gap-4\">\n <div class=\"main-body flex flex-col gap-2\">\n <div\n class=\"group-selector-container flex overflow-x-auto bg-[#9A9FBF80] rounded-xl px-3 py-2 w-full relative gap-3\"\n *ngIf=\"form\"\n >\n <div *ngFor=\"let group of form.Entities; index as j\">\n <div\n (click)=\"setActiveGroup(j)\"\n [ngClass]=\"{\n 'bg-[#fff] text-primary rounded-lg shadow-lg':\n activeFormGroup == j\n }\"\n class=\"px-6 py-2 cursor-pointer\"\n >\n {{ group.Name }}\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"form && form.Entities[activeFormGroup]; else emptyState\"\n class=\"selected-form-container\"\n >\n <form-control\n [dataType]=\"dataType\"\n [disabled]=\"true\"\n [formProperties]=\"form.Entities[activeFormGroup].Properties\"\n ></form-control>\n </div>\n <ng-template #emptyState>\n <p class=\"mt-4 p-4 text-gray-600 text-center\">\n No entries available for the selected form group.\n </p>\n </ng-template>\n </div>\n <div class=\"dialog-button-container flex justify-end gap-2\">\n <verbena-button\n width=\"100%\"\n class=\"verben-primary-button\"\n [text]=\"'Close'\"\n (click)=\"onModalClose($event)\"\n >\n </verbena-button>\n </div>\n </div>\n </ng-template>\n</verben-dialogue>\n", styles: [".dialog-body{padding:0;height:100%}\n"] }]
33
33
  }], propDecorators: { form: [{
34
34
  type: Input
35
35
  }], isVisible: [{
@@ -1 +1 @@
1
- {"version":3,"file":"verben-workflow-ui-src-lib-components-form-viewer.mjs","sources":["../../../projects/verben-workflow-ui/src/lib/components/form-viewer/form-viewer.component.ts","../../../projects/verben-workflow-ui/src/lib/components/form-viewer/form-viewer.component.html","../../../projects/verben-workflow-ui/src/lib/components/form-viewer/form-viewer.module.ts","../../../projects/verben-workflow-ui/src/lib/components/form-viewer/verben-workflow-ui-src-lib-components-form-viewer.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { DataType } from 'verben-ng-ui';\nimport { Form } from 'verben-workflow-ui/src/lib/models';\n\n@Component({\n selector: 'app-form-viewer',\n templateUrl: './form-viewer.component.html',\n styleUrl: './form-viewer.component.css',\n})\nexport class FormViewerComponent {\n @Input() form: Form | null = null;\n @Input() isVisible: boolean = false;\n\n @Output() onOpen: EventEmitter<Event> = new EventEmitter();\n @Output() onClose: EventEmitter<Event> = new EventEmitter();\n\n activeFormGroup: number = 0;\n dataType: DataType = DataType.Text;\n\n setActiveGroup(index: number) {\n this.activeFormGroup = index;\n }\n\n onModalOpen(event: any) {\n this.onOpen.emit();\n }\n\n onModalClose(event: any) {\n this.onClose.emit();\n }\n}\n","<verben-dialogue\n [showCloseIcon]=\"false\"\n [dismissOutsideClick]=\"false\"\n [closeOnEscape]=\"true\"\n [size]=\"'medium'\"\n [mode]=\"'dialogue'\"\n [customClass]=\"'show-form'\"\n [disableFooter]=\"true\"\n (openModal)=\"onModalOpen($event)\"\n [isVisible]=\"isVisible\"\n [bodyTemplate]=\"bodyTemplate\"\n (closeModal)=\"onModalClose($event)\"\n>\n <ng-template #bodyTemplate>\n <div class=\"dialog-body flex flex-col gap-4\">\n <div class=\"main-body flex flex-col gap-2\">\n <div\n class=\"group-selector-container flex overflow-x-auto bg-[#9A9FBF80] rounded-xl px-3 py-2 w-full relative gap-3\"\n *ngIf=\"form\"\n >\n <div *ngFor=\"let group of form.Entities; index as j\">\n <div\n (click)=\"setActiveGroup(j)\"\n [ngClass]=\"{\n 'bg-[#fff] text-primary rounded-lg shadow-lg':\n activeFormGroup == j\n }\"\n class=\"px-6 py-2 cursor-pointer\"\n >\n {{ group.Name }}\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"form && form.Entities[activeFormGroup]; else emptyState\"\n class=\"selected-form-container\"\n >\n <form-control\n [dataType]=\"dataType\"\n [disabled]=\"true\"\n [formProperties]=\"form.Entities[activeFormGroup].Properties\"\n ></form-control>\n </div>\n <ng-template #emptyState>\n <p class=\"mt-4 p-4 text-gray-600 text-center\">\n No entries available for the selected form group.\n </p>\n </ng-template>\n </div>\n <div class=\"dialog-button-container flex justify-end gap-2\">\n <verbena-button\n width=\"100%\"\n class=\"verben-primary-button\"\n [text]=\"'Close'\"\n (click)=\"onModalClose($event)\"\n >\n </verbena-button>\n </div>\n </div>\n </ng-template>\n</verben-dialogue>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport {\n CardDataViewModule,\n DataExportModule,\n DataTableModule,\n DataViewModule,\n DropDownModule,\n SortTableModule,\n SvgModule,\n TableFilterModule,\n TooltipModule,\n VerbenaButtonModule,\n VerbenaInputModule,\n VerbenaSwitchModule,\n VerbenDialogueModule,\n VerbenPopUpModule,\n VisibleColumnModule,\n} from 'verben-ng-ui';\nimport { RouterModule, Routes } from '@angular/router';\nimport { FormControlerModule } from 'verben-workflow-ui/src/lib/components/form-control';\nimport { FormViewerComponent } from './form-viewer.component';\n\n@NgModule({\n declarations: [FormViewerComponent],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n DataTableModule,\n SvgModule,\n VerbenPopUpModule,\n DataViewModule,\n VerbenaButtonModule,\n CardDataViewModule,\n DropDownModule,\n VerbenaSwitchModule,\n TableFilterModule,\n VisibleColumnModule,\n SortTableModule,\n DataExportModule,\n TooltipModule,\n VerbenDialogueModule,\n VerbenaInputModule,\n FormControlerModule,\n ],\n exports: [FormViewerComponent],\n})\nexport class FormViewerLibModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MASa,mBAAmB,CAAA;IACrB,IAAI,GAAgB,IAAI,CAAC;IACzB,SAAS,GAAY,KAAK,CAAC;AAE1B,IAAA,MAAM,GAAwB,IAAI,YAAY,EAAE,CAAC;AACjD,IAAA,OAAO,GAAwB,IAAI,YAAY,EAAE,CAAC;IAE5D,eAAe,GAAW,CAAC,CAAC;AAC5B,IAAA,QAAQ,GAAa,QAAQ,CAAC,IAAI,CAAC;AAEnC,IAAA,cAAc,CAAC,KAAa,EAAA;AAC1B,QAAA,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;KAC9B;AAED,IAAA,WAAW,CAAC,KAAU,EAAA;AACpB,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KACpB;AAED,IAAA,YAAY,CAAC,KAAU,EAAA;AACrB,QAAA,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mBAAmB,CAAC;AAC/B,iBAAA,CAAA;;;AClDD;;AAEG;;;;"}
1
+ {"version":3,"file":"verben-workflow-ui-src-lib-components-form-viewer.mjs","sources":["../../../projects/verben-workflow-ui/src/lib/components/form-viewer/form-viewer.component.ts","../../../projects/verben-workflow-ui/src/lib/components/form-viewer/form-viewer.component.html","../../../projects/verben-workflow-ui/src/lib/components/form-viewer/form-viewer.module.ts","../../../projects/verben-workflow-ui/src/lib/components/form-viewer/verben-workflow-ui-src-lib-components-form-viewer.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { DataType } from 'verben-ng-ui';\nimport { Form } from 'verben-workflow-ui/src/lib/models';\n\n@Component({\n selector: 'app-form-viewer',\n templateUrl: './form-viewer.component.html',\n styleUrl: './form-viewer.component.css',\n})\nexport class FormViewerComponent {\n @Input() form: Form | null = null;\n @Input() isVisible: boolean = false;\n\n @Output() onOpen: EventEmitter<Event> = new EventEmitter();\n @Output() onClose: EventEmitter<Event> = new EventEmitter();\n\n activeFormGroup: number = 0;\n dataType: DataType = DataType.Text;\n\n setActiveGroup(index: number) {\n this.activeFormGroup = index;\n }\n\n onModalOpen(event: any) {\n this.onOpen.emit();\n }\n\n onModalClose(event: any) {\n this.onClose.emit();\n }\n}\n","<verben-dialogue\n [showCloseIcon]=\"false\"\n [dismissOutsideClick]=\"false\"\n [closeOnEscape]=\"true\"\n [size]=\"'medium'\"\n [mode]=\"'dialogue'\"\n [padding]=\"'16px 18px'\"\n [customClass]=\"'show-form'\"\n [disableFooter]=\"true\"\n (openModal)=\"onModalOpen($event)\"\n [isVisible]=\"isVisible\"\n [bodyTemplate]=\"bodyTemplate\"\n (closeModal)=\"onModalClose($event)\"\n>\n <ng-template #bodyTemplate>\n <div class=\"dialog-body flex flex-col gap-4\">\n <div class=\"main-body flex flex-col gap-2\">\n <div\n class=\"group-selector-container flex overflow-x-auto bg-[#9A9FBF80] rounded-xl px-3 py-2 w-full relative gap-3\"\n *ngIf=\"form\"\n >\n <div *ngFor=\"let group of form.Entities; index as j\">\n <div\n (click)=\"setActiveGroup(j)\"\n [ngClass]=\"{\n 'bg-[#fff] text-primary rounded-lg shadow-lg':\n activeFormGroup == j\n }\"\n class=\"px-6 py-2 cursor-pointer\"\n >\n {{ group.Name }}\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"form && form.Entities[activeFormGroup]; else emptyState\"\n class=\"selected-form-container\"\n >\n <form-control\n [dataType]=\"dataType\"\n [disabled]=\"true\"\n [formProperties]=\"form.Entities[activeFormGroup].Properties\"\n ></form-control>\n </div>\n <ng-template #emptyState>\n <p class=\"mt-4 p-4 text-gray-600 text-center\">\n No entries available for the selected form group.\n </p>\n </ng-template>\n </div>\n <div class=\"dialog-button-container flex justify-end gap-2\">\n <verbena-button\n width=\"100%\"\n class=\"verben-primary-button\"\n [text]=\"'Close'\"\n (click)=\"onModalClose($event)\"\n >\n </verbena-button>\n </div>\n </div>\n </ng-template>\n</verben-dialogue>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport {\n CardDataViewModule,\n DataExportModule,\n DataTableModule,\n DataViewModule,\n DropDownModule,\n SortTableModule,\n SvgModule,\n TableFilterModule,\n TooltipModule,\n VerbenaButtonModule,\n VerbenaInputModule,\n VerbenaSwitchModule,\n VerbenDialogueModule,\n VerbenPopUpModule,\n VisibleColumnModule,\n} from 'verben-ng-ui';\nimport { RouterModule, Routes } from '@angular/router';\nimport { FormControlerModule } from 'verben-workflow-ui/src/lib/components/form-control';\nimport { FormViewerComponent } from './form-viewer.component';\n\n@NgModule({\n declarations: [FormViewerComponent],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n DataTableModule,\n SvgModule,\n VerbenPopUpModule,\n DataViewModule,\n VerbenaButtonModule,\n CardDataViewModule,\n DropDownModule,\n VerbenaSwitchModule,\n TableFilterModule,\n VisibleColumnModule,\n SortTableModule,\n DataExportModule,\n TooltipModule,\n VerbenDialogueModule,\n VerbenaInputModule,\n FormControlerModule,\n ],\n exports: [FormViewerComponent],\n})\nexport class FormViewerLibModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MASa,mBAAmB,CAAA;IACrB,IAAI,GAAgB,IAAI,CAAC;IACzB,SAAS,GAAY,KAAK,CAAC;AAE1B,IAAA,MAAM,GAAwB,IAAI,YAAY,EAAE,CAAC;AACjD,IAAA,OAAO,GAAwB,IAAI,YAAY,EAAE,CAAC;IAE5D,eAAe,GAAW,CAAC,CAAC;AAC5B,IAAA,QAAQ,GAAa,QAAQ,CAAC,IAAI,CAAC;AAEnC,IAAA,cAAc,CAAC,KAAa,EAAA;AAC1B,QAAA,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;KAC9B;AAED,IAAA,WAAW,CAAC,KAAU,EAAA;AACpB,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KACpB;AAED,IAAA,YAAY,CAAC,KAAU,EAAA;AACrB,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;KACrB;wGApBU,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,mBAAmB,4JCThC,2gEA+DA,EAAA,MAAA,EAAA,CAAA,uCAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,E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