kwikid-forms 0.5.14 → 0.5.16

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.
@@ -1,8 +1,8 @@
1
1
  import { EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
2
2
  import { FormGroup } from "@angular/forms";
3
+ import { KwikUILoaderService } from "kwikui";
3
4
  import { TFormEditorType } from "./builder-form-editor.definitions";
4
5
  import { KwikIDFormBuilderFormEditorService } from "./builder.form-editor.service";
5
- import { KwikUILoaderService } from "kwikui";
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class KwikIDBuilderFormEditorComponent implements OnInit, OnChanges {
8
8
  loaderService: KwikUILoaderService;
@@ -88,6 +88,8 @@ export declare class KwikIDBuilderFormEditorComponent implements OnInit, OnChang
88
88
  * Other Helper Methods
89
89
  */
90
90
  copyToClipboard(): void;
91
+ convertToMinifiedJson(): void;
92
+ convertToCompleteJson(): void;
91
93
  downloadJSON(): void;
92
94
  /**
93
95
  * Misc Methods
@@ -3,6 +3,7 @@ export declare const OPTIONS: {
3
3
  type: string[];
4
4
  disabled: boolean[];
5
5
  properties: {
6
+ button: {};
6
7
  text: {
7
8
  case: string[];
8
9
  };
@@ -65,6 +66,10 @@ export declare const FIELD_PROPERTIES_COMMON_CONFIG: {
65
66
  placeholder: string;
66
67
  };
67
68
  export declare const FIELD_PROPERTIES_CONFIG: {
69
+ button: {
70
+ readOnly: boolean;
71
+ placeholder: string;
72
+ };
68
73
  title: {
69
74
  readOnly: boolean;
70
75
  placeholder: string;
@@ -270,6 +275,27 @@ export declare const FIELD_CONFIG: {
270
275
  max: number;
271
276
  };
272
277
  };
278
+ button: {
279
+ type: string;
280
+ properties: {
281
+ readOnly: boolean;
282
+ placeholder: string;
283
+ };
284
+ key: string;
285
+ label: string;
286
+ disabled: boolean;
287
+ validators: {
288
+ required: boolean;
289
+ minLength: number;
290
+ maxLength: number;
291
+ pattern: {
292
+ key: string;
293
+ pattern: string;
294
+ };
295
+ min: number;
296
+ max: number;
297
+ };
298
+ };
273
299
  textarea: {
274
300
  type: string;
275
301
  properties: {
@@ -719,3 +745,49 @@ export declare const FIELD_CONFIG: {
719
745
  };
720
746
  };
721
747
  };
748
+ export declare const NOFIELD_CONFIG: {
749
+ required: boolean;
750
+ type: string;
751
+ props: {
752
+ url: string;
753
+ title: string;
754
+ };
755
+ hidden: boolean;
756
+ disabled: boolean;
757
+ dependentOn: any[];
758
+ title: string;
759
+ properties: {
760
+ header: {
761
+ logo: {
762
+ src: string;
763
+ alt: string;
764
+ hidden: boolean;
765
+ };
766
+ backButton: {
767
+ mode: string;
768
+ bypassConfirmation: boolean;
769
+ hidden: boolean;
770
+ };
771
+ title: {
772
+ hidden: boolean;
773
+ label: string;
774
+ };
775
+ steps: {
776
+ hidden: boolean;
777
+ };
778
+ };
779
+ footer: {
780
+ viewFormsButton: {
781
+ bypassConfirmation: boolean;
782
+ hidden: boolean;
783
+ label: string;
784
+ };
785
+ saveButton: {
786
+ hidden: boolean;
787
+ label: string;
788
+ };
789
+ };
790
+ isUnsavedDataAlertEnabled: boolean;
791
+ };
792
+ fieldGroups: {};
793
+ };
@@ -1,7 +1,7 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
2
2
  import { FormGroup } from "@angular/forms";
3
3
  import { TuiPreviewDialogService } from "@taiga-ui/addon-preview";
4
- import { TuiAlertService, TuiDialogContext, TuiDialogService, TuiNotificationT } from "@taiga-ui/core";
4
+ import { TuiAlertService, TuiDialogContext, TuiDialogService, TuiNotification } from "@taiga-ui/core";
5
5
  import { TuiPushService } from "@taiga-ui/kit";
6
6
  import { TAction } from "kwikid-toolkit";
7
7
  import { KwikUILoaderService } from "kwikui";
@@ -147,7 +147,7 @@ export declare class KwikIDFormViewComponent implements OnInit, AfterViewInit {
147
147
  showPreview(previewProperties: any): void;
148
148
  showErrorPreview(previewProperties: any): void;
149
149
  showPopupForm(popupFormKey: string, popupType?: "DIALOG" | "POPUP"): void;
150
- alertShow(type: TuiNotificationT, message: string): void;
150
+ alertShow(type: TuiNotification, message: string): void;
151
151
  takeActionOnFieldGroup(action: TAction, object: any): Promise<void>;
152
152
  takeAction(action: TAction, object: any): Promise<void>;
153
153
  static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDFormViewComponent, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kwikid-forms",
3
- "version": "0.5.14",
3
+ "version": "0.5.16",
4
4
  "description": "KwikID's JSON Configuration based Forms Renderer and Builder",
5
5
  "author": {
6
6
  "name": "Baiju Dodhia"