@norwegian/core-components 6.18.4 → 6.20.0

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.
@@ -86,7 +86,22 @@ export declare class ModalComponent extends NasComponentBase implements OnInit,
86
86
  */
87
87
  get show(): boolean;
88
88
  set show(show: boolean);
89
+ /**
90
+ * @property Input
91
+ * @description
92
+ * Used to show or hide the close button in the modal
93
+ * @example
94
+ * <nas-modal [enableClose]="true"></nas-modal>
95
+ */
89
96
  enableClose: boolean;
97
+ /**
98
+ * @property Input
99
+ * @description
100
+ * Disabling the event click outside to close the modal.
101
+ * @example
102
+ * <nas-modal [blockCloseOnClickOutside]="true"></nas-modal>
103
+ */
104
+ blockCloseOnClickOutside: boolean;
90
105
  showChange: EventEmitter<boolean>;
91
106
  content: ElementRef<HTMLElement>;
92
107
  backdrop: ElementRef<HTMLButtonElement>;
@@ -100,5 +115,5 @@ export declare class ModalComponent extends NasComponentBase implements OnInit,
100
115
  onClose(): void;
101
116
  private animate;
102
117
  static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
103
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "nas-modal", never, { "form": { "alias": "form"; "required": false; }; "tight": { "alias": "tight"; "required": false; }; "center": { "alias": "center"; "required": false; }; "outlined": { "alias": "outlined"; "required": false; }; "title": { "alias": "title"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; "animated": { "alias": "animated"; "required": false; }; "show": { "alias": "show"; "required": false; }; "enableClose": { "alias": "enableClose"; "required": false; }; }, { "showChange": "showChange"; }, never, ["*"], false, never>;
118
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "nas-modal", never, { "form": { "alias": "form"; "required": false; }; "tight": { "alias": "tight"; "required": false; }; "center": { "alias": "center"; "required": false; }; "outlined": { "alias": "outlined"; "required": false; }; "title": { "alias": "title"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; "animated": { "alias": "animated"; "required": false; }; "show": { "alias": "show"; "required": false; }; "enableClose": { "alias": "enableClose"; "required": false; }; "blockCloseOnClickOutside": { "alias": "blockCloseOnClickOutside"; "required": false; }; }, { "showChange": "showChange"; }, never, ["*"], false, never>;
104
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norwegian/core-components",
3
- "version": "6.18.4",
3
+ "version": "6.20.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=16.0.0 < 19.0.0",
6
6
  "@angular/core": ">=16.0.0 < 19.0.0"