@skyux/modals 7.12.0 → 7.14.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.
@@ -3702,7 +3702,7 @@
3702
3702
  {
3703
3703
  "fileName": "modal-demo.component.ts",
3704
3704
  "filePath": "/projects/modals/documentation/code-examples/inline-help/modal-demo.component.ts",
3705
- "rawContents": "import { Component, OnDestroy } from '@angular/core';\nimport { SkyWaitService } from '@skyux/indicators';\nimport { SkyModalConfigurationInterface, SkyModalService } from '@skyux/modals';\n\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { ModalDemoContext } from '../inline-help/modal-demo-context';\n\nimport { ModalDemoData } from './modal-demo-data';\nimport { ModalDemoDataService } from './modal-demo-data.service';\nimport { ModalDemoModalComponent } from './modal-demo-modal.component';\n\n@Component({\n selector: 'app-modal-demo',\n templateUrl: './modal-demo.component.html',\n})\nexport class ModalDemoComponent implements OnDestroy {\n public modalSize = 'medium';\n\n public demoValue: string | null | undefined;\n\n #ngUnsubscribe = new Subject<void>();\n\n #modalSvc: SkyModalService;\n #waitSvc: SkyWaitService;\n #dataSvc: ModalDemoDataService;\n\n constructor(\n modalSvc: SkyModalService,\n waitSvc: SkyWaitService,\n dataSvc: ModalDemoDataService\n ) {\n this.#modalSvc = modalSvc;\n this.#waitSvc = waitSvc;\n this.#dataSvc = dataSvc;\n }\n\n public onOpenModalClick(): void {\n // Display a blocking wait while data is loaded from the data service.\n this.#waitSvc\n .blockingWrap(this.#dataSvc.load())\n .pipe(takeUntil(this.#ngUnsubscribe))\n .subscribe((data) => {\n const options: SkyModalConfigurationInterface = {\n providers: [\n {\n provide: ModalDemoContext,\n useValue: new ModalDemoContext(data),\n },\n ],\n size: this.modalSize,\n };\n\n // Show the modal after data is loaded.\n const instance = this.#modalSvc.open(ModalDemoModalComponent, options);\n\n instance.closed.subscribe((result) => {\n if (result.reason === 'save') {\n // Display the updated value.\n const data = result.data as ModalDemoData;\n this.demoValue = data.value1;\n }\n });\n });\n }\n\n public ngOnDestroy(): void {\n this.#ngUnsubscribe.next();\n this.#ngUnsubscribe.complete();\n }\n}\n"
3705
+ "rawContents": "import { Component, OnDestroy } from '@angular/core';\nimport { SkyWaitService } from '@skyux/indicators';\nimport { SkyModalConfigurationInterface, SkyModalService } from '@skyux/modals';\n\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { ModalDemoContext } from './modal-demo-context';\nimport { ModalDemoData } from './modal-demo-data';\nimport { ModalDemoDataService } from './modal-demo-data.service';\nimport { ModalDemoModalComponent } from './modal-demo-modal.component';\n\n@Component({\n selector: 'app-modal-demo',\n templateUrl: './modal-demo.component.html',\n})\nexport class ModalDemoComponent implements OnDestroy {\n public modalSize = 'medium';\n\n public demoValue: string | null | undefined;\n\n #ngUnsubscribe = new Subject<void>();\n\n #modalSvc: SkyModalService;\n #waitSvc: SkyWaitService;\n #dataSvc: ModalDemoDataService;\n\n constructor(\n modalSvc: SkyModalService,\n waitSvc: SkyWaitService,\n dataSvc: ModalDemoDataService\n ) {\n this.#modalSvc = modalSvc;\n this.#waitSvc = waitSvc;\n this.#dataSvc = dataSvc;\n }\n\n public onOpenModalClick(): void {\n // Display a blocking wait while data is loaded from the data service.\n this.#waitSvc\n .blockingWrap(this.#dataSvc.load())\n .pipe(takeUntil(this.#ngUnsubscribe))\n .subscribe((data) => {\n const options: SkyModalConfigurationInterface = {\n providers: [\n {\n provide: ModalDemoContext,\n useValue: new ModalDemoContext(data),\n },\n ],\n size: this.modalSize,\n };\n\n // Show the modal after data is loaded.\n const instance = this.#modalSvc.open(ModalDemoModalComponent, options);\n\n instance.closed.subscribe((result) => {\n if (result.reason === 'save') {\n // Display the updated value.\n const data = result.data as ModalDemoData;\n this.demoValue = data.value1;\n }\n });\n });\n }\n\n public ngOnDestroy(): void {\n this.#ngUnsubscribe.next();\n this.#ngUnsubscribe.complete();\n }\n}\n"
3706
3706
  },
3707
3707
  {
3708
3708
  "fileName": "modal-demo.module.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/modals",
3
- "version": "7.12.0",
3
+ "version": "7.14.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -44,10 +44,10 @@
44
44
  "@angular/common": "^14.2.11",
45
45
  "@angular/core": "^14.2.11",
46
46
  "@angular/router": "^14.2.11",
47
- "@skyux/core": "7.12.0",
48
- "@skyux/i18n": "7.12.0",
49
- "@skyux/indicators": "7.12.0",
50
- "@skyux/theme": "7.12.0"
47
+ "@skyux/core": "7.14.0",
48
+ "@skyux/i18n": "7.14.0",
49
+ "@skyux/indicators": "7.14.0",
50
+ "@skyux/theme": "7.14.0"
51
51
  },
52
52
  "dependencies": {
53
53
  "tslib": "^2.3.1"