@craftsjs/modal 6.1.0 → 6.1.1

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,4 +1,5 @@
1
1
  import { Component, ChangeDetectionStrategy, ViewEncapsulation, ViewChild } from '@angular/core';
2
+ import { PerfectScrollbarDirective } from '@craftsjs/perfect-scrollbar';
2
3
  import PerfectScrollbar from 'perfect-scrollbar';
3
4
  import * as i0 from "@angular/core";
4
5
  export class ModalBodyComponent {
@@ -9,15 +10,15 @@ export class ModalBodyComponent {
9
10
  this.ps?.update();
10
11
  }
11
12
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ModalBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
12
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ModalBodyComponent, isStandalone: true, selector: "modal-body, [modal-body], [craftsjsModalBody]", host: { classAttribute: "modal-body" }, viewQueries: [{ propertyName: "ps", first: true, predicate: PerfectScrollbar, descendants: true }], ngImport: i0, template: "<div class=\"modal-body-responsive\" perfectScrollbar>\r\n <ng-content></ng-content>\r\n</div>\r\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
13
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ModalBodyComponent, isStandalone: true, selector: "modal-body, [modal-body], [craftsjsModalBody]", host: { classAttribute: "modal-body" }, viewQueries: [{ propertyName: "ps", first: true, predicate: PerfectScrollbar, descendants: true }], ngImport: i0, template: "<div class=\"modal-body-responsive\" perfectScrollbar>\r\n <ng-content></ng-content>\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "directive", type: PerfectScrollbarDirective, selector: "[perfectScrollbar]", inputs: ["perfectScrollOptions"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
13
14
  }
14
15
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ModalBodyComponent, decorators: [{
15
16
  type: Component,
16
17
  args: [{ selector: 'modal-body, [modal-body], [craftsjsModalBody]', changeDetection: ChangeDetectionStrategy.OnPush, host: {
17
18
  class: 'modal-body'
18
- }, encapsulation: ViewEncapsulation.None, standalone: true, imports: [], template: "<div class=\"modal-body-responsive\" perfectScrollbar>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
19
+ }, encapsulation: ViewEncapsulation.None, standalone: true, imports: [PerfectScrollbarDirective], template: "<div class=\"modal-body-responsive\" perfectScrollbar>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
19
20
  }], propDecorators: { ps: [{
20
21
  type: ViewChild,
21
22
  args: [PerfectScrollbar]
22
23
  }] } });
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtYm9keS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jcmFmdHNqcy9tb2RhbC9zcmMvbGliL2NvbXBvbmVudHMvbW9kYWwtYm9keS9tb2RhbC1ib2R5LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NyYWZ0c2pzL21vZGFsL3NyYy9saWIvY29tcG9uZW50cy9tb2RhbC1ib2R5L21vZGFsLWJvZHkuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBRSxpQkFBaUIsRUFBRSxTQUFTLEVBQW1DLE1BQU0sZUFBZSxDQUFDO0FBRWxJLE9BQU8sZ0JBQWdCLE1BQU0sbUJBQW1CLENBQUM7O0FBY2pELE1BQU0sT0FBTyxrQk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k7XHJcbiAgfVxyXG5cclxufVxyXG4iLCI8ZGl2IGNsYXNzPVwibW9kYWwtYm9keS1yZXNwb25zaXZlXCIgcGVyZmVjdFNjcm9sbGJhcj5cclxuICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XHJcbjwvZGl2PlxyXG4iXX0=
@@ -3,8 +3,8 @@ import { ViewEncapsulation, ChangeDetectionStrategy, Component, Directive, ViewC
3
3
  import { CommonModule } from '@angular/common';
4
4
  import * as i1 from '@angular/material/dialog';
5
5
  import { MatDialogModule } from '@angular/material/dialog';
6
- import PerfectScrollbar from 'perfect-scrollbar';
7
6
  import { PerfectScrollbarDirective } from '@craftsjs/perfect-scrollbar';
7
+ import PerfectScrollbar from 'perfect-scrollbar';
8
8
 
9
9
  class ModalComponent {
10
10
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
@@ -51,13 +51,13 @@ class ModalBodyComponent {
51
51
  this.ps?.update();
52
52
  }
53
53
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ModalBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
54
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ModalBodyComponent, isStandalone: true, selector: "modal-body, [modal-body], [craftsjsModalBody]", host: { classAttribute: "modal-body" }, viewQueries: [{ propertyName: "ps", first: true, predicate: PerfectScrollbar, descendants: true }], ngImport: i0, template: "<div class=\"modal-body-responsive\" perfectScrollbar>\r\n <ng-content></ng-content>\r\n</div>\r\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
54
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ModalBodyComponent, isStandalone: true, selector: "modal-body, [modal-body], [craftsjsModalBody]", host: { classAttribute: "modal-body" }, viewQueries: [{ propertyName: "ps", first: true, predicate: PerfectScrollbar, descendants: true }], ngImport: i0, template: "<div class=\"modal-body-responsive\" perfectScrollbar>\r\n <ng-content></ng-content>\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "directive", type: PerfectScrollbarDirective, selector: "[perfectScrollbar]", inputs: ["perfectScrollOptions"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
55
55
  }
56
56
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ModalBodyComponent, decorators: [{
57
57
  type: Component,
58
58
  args: [{ selector: 'modal-body, [modal-body], [craftsjsModalBody]', changeDetection: ChangeDetectionStrategy.OnPush, host: {
59
59
  class: 'modal-body'
60
- }, encapsulation: ViewEncapsulation.None, standalone: true, imports: [], template: "<div class=\"modal-body-responsive\" perfectScrollbar>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
60
+ }, encapsulation: ViewEncapsulation.None, standalone: true, imports: [PerfectScrollbarDirective], template: "<div class=\"modal-body-responsive\" perfectScrollbar>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
61
61
  }], propDecorators: { ps: [{
62
62
  type: ViewChild,
63
63
  args: [PerfectScrollbar]
@@ -1 +1 @@
1
- {"version":3,"file":"craftsjs-modal.mjs","sources":["../../../../projects/craftsjs/modal/src/lib/modal.component.ts","../../../../projects/craftsjs/modal/src/lib/modal.component.html","../../../../projects/craftsjs/modal/src/lib/directives/modal-header.directive.ts","../../../../projects/craftsjs/modal/src/lib/directives/modal-footer.directive.ts","../../../../projects/craftsjs/modal/src/lib/components/modal-body/modal-body.component.ts","../../../../projects/craftsjs/modal/src/lib/components/modal-body/modal-body.component.html","../../../../projects/craftsjs/modal/src/lib/tokens.ts","../../../../projects/craftsjs/modal/src/lib/models/modal-config.model.ts","../../../../projects/craftsjs/modal/src/lib/services/modal.service.ts","../../../../projects/craftsjs/modal/src/lib/modal.module.ts","../../../../projects/craftsjs/modal/src/lib/modal.providers.ts","../../../../projects/craftsjs/modal/src/public-api.ts","../../../../projects/craftsjs/modal/src/craftsjs-modal.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';\r\n\r\n\r\n@Component({\r\n selector: 'craftsjs-modal',\r\n templateUrl: './modal.component.html',\r\n styleUrls: ['./modal.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n host: {\r\n class: 'modal'\r\n },\r\n standalone: true,\r\n imports: []\r\n})\r\nexport class ModalComponent { }\r\n","<ng-content select=\"modal-header\"></ng-content>\r\n<ng-content select=\"modal-body\"></ng-content>\r\n<ng-content select=\"modal-footer\"></ng-content>","import { Directive } from '@angular/core';\r\n\r\n@Directive({\r\n selector: 'modal-header, [modal-header], [craftsjsModalHeader]',\r\n host: { class: 'modal-header' },\r\n standalone: true\r\n})\r\nexport class ModalHeaderDirective { }\r\n","import { Directive } from '@angular/core';\r\n\r\n@Directive({\r\n selector: 'modal-footer, [modal-footer], [craftsjsModalFooter]',\r\n host: { class: 'modal-footer' },\r\n standalone: true\r\n})\r\nexport class ModalFooterDirective { }\r\n","import { Component, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, AfterViewInit, AfterViewChecked } from '@angular/core';\r\n\r\nimport PerfectScrollbar from 'perfect-scrollbar';\r\n\r\n@Component({\r\n selector: 'modal-body, [modal-body], [craftsjsModalBody]',\r\n templateUrl: './modal-body.component.html',\r\n styleUrls: ['./modal-body.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n class: 'modal-body'\r\n },\r\n encapsulation: ViewEncapsulation.None,\r\n standalone: true,\r\n imports: []\r\n})\r\nexport class ModalBodyComponent implements AfterViewInit, AfterViewChecked { \r\n\r\n @ViewChild(PerfectScrollbar)\r\n private ps: PerfectScrollbar;\r\n\r\n\r\n ngAfterViewInit() {\r\n this.ps?.update();\r\n }\r\n\r\n ngAfterViewChecked(): void {\r\n this.ps?.update();\r\n }\r\n\r\n}\r\n","<div class=\"modal-body-responsive\" perfectScrollbar>\r\n <ng-content></ng-content>\r\n</div>\r\n","import { InjectionToken } from '@angular/core';\r\n\r\nexport const CRAFTSJS_MODAL_CONFIG = new InjectionToken<string>('CRAFTSJS_MODAL_CONFIG');\r\n","export class ModalConfig {\r\n width: string;\r\n}\r\n","import { Injectable, TemplateRef, Inject, Injector, ViewContainerRef } from '@angular/core';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { ComponentType } from '@angular/cdk/portal';\r\nimport { CRAFTSJS_MODAL_CONFIG } from '../tokens';\r\nimport { ModalConfig } from '../models/modal-config.model';\r\n\r\nexport interface ModalData<T = any> { \r\n data?: T;\r\n injector?: Injector;\r\n viewContainerRef?: ViewContainerRef;\r\n}\r\n\r\n@Injectable()\r\nexport class ModalService {\r\n\r\n constructor(\r\n private _dialog: MatDialog,\r\n @Inject(CRAFTSJS_MODAL_CONFIG) private modalConfig: ModalConfig\r\n ) { }\r\n\r\n show<T = any>(component: ComponentType<T> | TemplateRef<T>, data?: ModalData) {\r\n return this._dialog.open(component, {\r\n data: data?.data,\r\n width: this.modalConfig.width,\r\n injector: data?.injector,\r\n viewContainerRef: data?.viewContainerRef\r\n });\r\n }\r\n\r\n}\r\n","import { NgModule, ModuleWithProviders } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { ModalComponent } from './modal.component';\r\nimport { ModalHeaderDirective } from './directives/modal-header.directive';\r\nimport { ModalFooterDirective } from './directives/modal-footer.directive';\r\nimport { ModalBodyComponent } from './components/modal-body/modal-body.component';\r\nimport { PerfectScrollbarDirective } from '@craftsjs/perfect-scrollbar';\r\nimport { ModalConfig } from './models/modal-config.model';\r\nimport { ModalService } from './services/modal.service';\r\nimport { CRAFTSJS_MODAL_CONFIG } from './tokens';\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [\r\n CommonModule,\r\n MatDialogModule,\r\n PerfectScrollbarDirective,\r\n // standalone components/directives\r\n ModalComponent,\r\n ModalHeaderDirective,\r\n ModalFooterDirective,\r\n ModalBodyComponent,\r\n ],\r\n exports: [\r\n ModalComponent,\r\n ModalBodyComponent,\r\n ModalHeaderDirective,\r\n ModalFooterDirective\r\n ],\r\n providers: [\r\n ModalService,\r\n ]\r\n})\r\nexport class ModalModule {\r\n static forRoot(config: ModalConfig = { width: '800px' }): ModuleWithProviders<ModalModule> {\r\n return {\r\n ngModule: ModalModule,\r\n providers: [\r\n { provide: CRAFTSJS_MODAL_CONFIG, useValue: config },\r\n ModalService\r\n ]\r\n };\r\n }\r\n}\r\n","import { EnvironmentProviders, makeEnvironmentProviders, importProvidersFrom } from '@angular/core';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { CRAFTSJS_MODAL_CONFIG } from './tokens';\r\nimport { ModalConfig } from './models/modal-config.model';\r\nimport { ModalService } from './services/modal.service';\r\n\r\n/**\r\n * Standalone providers for CraftsJS Modal.\r\n * Use in Angular 15+ standalone apps instead of ModalModule.forRoot().\r\n */\r\nexport function provideCraftsjsModal(config: ModalConfig = { width: '800px' }): EnvironmentProviders {\r\n return makeEnvironmentProviders([\r\n importProvidersFrom(MatDialogModule),\r\n { provide: CRAFTSJS_MODAL_CONFIG, useValue: config },\r\n ModalService\r\n ]);\r\n}\r\n","/*\r\n * Public API Surface of modal\r\n */\r\n\r\nexport * from './lib/modal.component';\r\nexport * from './lib/modal.module';\r\nexport * from './lib/components/modal-body/modal-body.component';\r\nexport * from './lib/directives/modal-footer.directive';\r\nexport * from './lib/directives/modal-header.directive';\r\nexport * from './lib/models/modal-config.model';\r\nexport * from './lib/services/modal.service';\r\nexport * from './lib/tokens';\r\nexport * from './lib/modal.providers';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAea,cAAc,CAAA;+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,cAAc;wBACd,kBAAkB;wBAClB,oBAAoB;wBACpB;AACD,qBAAA;AACD,oBAAA,SAAS,EAAE;wBACT,YAAY;AACb;AACF,iBAAA;;;AC3BD;;;AAGG;AACG,SAAU,oBAAoB,CAAC,MAAA,GAAsB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAA;AAC3E,IAAA,OAAO,wBAAwB,CAAC;QAC9B,mBAAmB,CAAC,eAAe,CAAC;AACpC,QAAA,EAAE,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,EAAE;QACpD;AACD,KAAA,CAAC;AACJ;;AChBA;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"craftsjs-modal.mjs","sources":["../../../../projects/craftsjs/modal/src/lib/modal.component.ts","../../../../projects/craftsjs/modal/src/lib/modal.component.html","../../../../projects/craftsjs/modal/src/lib/directives/modal-header.directive.ts","../../../../projects/craftsjs/modal/src/lib/directives/modal-footer.directive.ts","../../../../projects/craftsjs/modal/src/lib/components/modal-body/modal-body.component.ts","../../../../projects/craftsjs/modal/src/lib/components/modal-body/modal-body.component.html","../../../../projects/craftsjs/modal/src/lib/tokens.ts","../../../../projects/craftsjs/modal/src/lib/models/modal-config.model.ts","../../../../projects/craftsjs/modal/src/lib/services/modal.service.ts","../../../../projects/craftsjs/modal/src/lib/modal.module.ts","../../../../projects/craftsjs/modal/src/lib/modal.providers.ts","../../../../projects/craftsjs/modal/src/public-api.ts","../../../../projects/craftsjs/modal/src/craftsjs-modal.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';\r\n\r\n\r\n@Component({\r\n selector: 'craftsjs-modal',\r\n templateUrl: './modal.component.html',\r\n styleUrls: ['./modal.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n host: {\r\n class: 'modal'\r\n },\r\n standalone: true,\r\n imports: []\r\n})\r\nexport class ModalComponent { }\r\n","<ng-content select=\"modal-header\"></ng-content>\r\n<ng-content select=\"modal-body\"></ng-content>\r\n<ng-content select=\"modal-footer\"></ng-content>","import { Directive } from '@angular/core';\r\n\r\n@Directive({\r\n selector: 'modal-header, [modal-header], [craftsjsModalHeader]',\r\n host: { class: 'modal-header' },\r\n standalone: true\r\n})\r\nexport class ModalHeaderDirective { }\r\n","import { Directive } from '@angular/core';\r\n\r\n@Directive({\r\n selector: 'modal-footer, [modal-footer], [craftsjsModalFooter]',\r\n host: { class: 'modal-footer' },\r\n standalone: true\r\n})\r\nexport class ModalFooterDirective { }\r\n","import { Component, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, AfterViewInit, AfterViewChecked } from '@angular/core';\r\nimport { PerfectScrollbarDirective } from '@craftsjs/perfect-scrollbar';\r\n\r\nimport PerfectScrollbar from 'perfect-scrollbar';\r\n\r\n@Component({\r\n selector: 'modal-body, [modal-body], [craftsjsModalBody]',\r\n templateUrl: './modal-body.component.html',\r\n styleUrls: ['./modal-body.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n class: 'modal-body'\r\n },\r\n encapsulation: ViewEncapsulation.None,\r\n standalone: true,\r\n imports: [PerfectScrollbarDirective]\r\n})\r\nexport class ModalBodyComponent implements AfterViewInit, AfterViewChecked { \r\n\r\n @ViewChild(PerfectScrollbar)\r\n private ps: PerfectScrollbar;\r\n\r\n\r\n ngAfterViewInit() {\r\n this.ps?.update();\r\n }\r\n\r\n ngAfterViewChecked(): void {\r\n this.ps?.update();\r\n }\r\n\r\n}\r\n","<div class=\"modal-body-responsive\" perfectScrollbar>\r\n <ng-content></ng-content>\r\n</div>\r\n","import { InjectionToken } from '@angular/core';\r\n\r\nexport const CRAFTSJS_MODAL_CONFIG = new InjectionToken<string>('CRAFTSJS_MODAL_CONFIG');\r\n","export class ModalConfig {\r\n width: string;\r\n}\r\n","import { Injectable, TemplateRef, Inject, Injector, ViewContainerRef } from '@angular/core';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { ComponentType } from '@angular/cdk/portal';\r\nimport { CRAFTSJS_MODAL_CONFIG } from '../tokens';\r\nimport { ModalConfig } from '../models/modal-config.model';\r\n\r\nexport interface ModalData<T = any> { \r\n data?: T;\r\n injector?: Injector;\r\n viewContainerRef?: ViewContainerRef;\r\n}\r\n\r\n@Injectable()\r\nexport class ModalService {\r\n\r\n constructor(\r\n private _dialog: MatDialog,\r\n @Inject(CRAFTSJS_MODAL_CONFIG) private modalConfig: ModalConfig\r\n ) { }\r\n\r\n show<T = any>(component: ComponentType<T> | TemplateRef<T>, data?: ModalData) {\r\n return this._dialog.open(component, {\r\n data: data?.data,\r\n width: this.modalConfig.width,\r\n injector: data?.injector,\r\n viewContainerRef: data?.viewContainerRef\r\n });\r\n }\r\n\r\n}\r\n","import { NgModule, ModuleWithProviders } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { ModalComponent } from './modal.component';\r\nimport { ModalHeaderDirective } from './directives/modal-header.directive';\r\nimport { ModalFooterDirective } from './directives/modal-footer.directive';\r\nimport { ModalBodyComponent } from './components/modal-body/modal-body.component';\r\nimport { PerfectScrollbarDirective } from '@craftsjs/perfect-scrollbar';\r\nimport { ModalConfig } from './models/modal-config.model';\r\nimport { ModalService } from './services/modal.service';\r\nimport { CRAFTSJS_MODAL_CONFIG } from './tokens';\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [\r\n CommonModule,\r\n MatDialogModule,\r\n PerfectScrollbarDirective,\r\n // standalone components/directives\r\n ModalComponent,\r\n ModalHeaderDirective,\r\n ModalFooterDirective,\r\n ModalBodyComponent,\r\n ],\r\n exports: [\r\n ModalComponent,\r\n ModalBodyComponent,\r\n ModalHeaderDirective,\r\n ModalFooterDirective\r\n ],\r\n providers: [\r\n ModalService,\r\n ]\r\n})\r\nexport class ModalModule {\r\n static forRoot(config: ModalConfig = { width: '800px' }): ModuleWithProviders<ModalModule> {\r\n return {\r\n ngModule: ModalModule,\r\n providers: [\r\n { provide: CRAFTSJS_MODAL_CONFIG, useValue: config },\r\n ModalService\r\n ]\r\n };\r\n }\r\n}\r\n","import { EnvironmentProviders, makeEnvironmentProviders, importProvidersFrom } from '@angular/core';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { CRAFTSJS_MODAL_CONFIG } from './tokens';\r\nimport { ModalConfig } from './models/modal-config.model';\r\nimport { ModalService } from './services/modal.service';\r\n\r\n/**\r\n * Standalone providers for CraftsJS Modal.\r\n * Use in Angular 15+ standalone apps instead of ModalModule.forRoot().\r\n */\r\nexport function provideCraftsjsModal(config: ModalConfig = { width: '800px' }): EnvironmentProviders {\r\n return makeEnvironmentProviders([\r\n importProvidersFrom(MatDialogModule),\r\n { provide: CRAFTSJS_MODAL_CONFIG, useValue: config },\r\n ModalService\r\n ]);\r\n}\r\n","/*\r\n * Public API Surface of modal\r\n */\r\n\r\nexport * from './lib/modal.component';\r\nexport * from './lib/modal.module';\r\nexport * from './lib/components/modal-body/modal-body.component';\r\nexport * from './lib/directives/modal-footer.directive';\r\nexport * from './lib/directives/modal-header.directive';\r\nexport * from './lib/models/modal-config.model';\r\nexport * from './lib/services/modal.service';\r\nexport * from './lib/tokens';\r\nexport * from './lib/modal.providers';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAea,cAAc,CAAA;+GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,cAAc,6GCf3B,2JAE+C,EAAA,MAAA,EAAA,CAAA,wDAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA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GAAsB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAA;AAC3E,IAAA,OAAO,wBAAwB,CAAC;QAC9B,mBAAmB,CAAC,eAAe,CAAC;AACpC,QAAA,EAAE,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,EAAE;QACpD;AACD,KAAA,CAAC;AACJ;;AChBA;;AAEG;;ACFH;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@craftsjs/modal",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "author": "craftsjs",
5
5
  "description": "Material modal is a library for angular",
6
6
  "license": "MIT",