@compsych-ui-components/angular 7.0.21 → 7.0.22

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.
@@ -43,14 +43,14 @@ export class CmpDialogContainer extends CdkDialogContainer {
43
43
  >
44
44
  <ng-template cdkPortalOutlet></ng-template>
45
45
  </cmp-dialog-surface>
46
- `, isInline: true, dependencies: [{ kind: "component", type: DialogSurfaceComponent, selector: "cmp-dialog-surface", inputs: ["variant", "width", "title", "description", "icon", "dismissible", "closeLabel", "showActions", "titleId", "descId"], outputs: ["closeClick"] }, { kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
46
+ `, isInline: true, dependencies: [{ kind: "component", type: DialogSurfaceComponent, selector: "cmp-dialog-surface", inputs: ["variant", "width", "title", "description", "icon", "dismissible", "closeLabel", "showActions", "titleId", "descId"], outputs: ["closeClick"] }, { kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
47
47
  }
48
48
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: CmpDialogContainer, decorators: [{
49
49
  type: Component,
50
50
  args: [{
51
51
  selector: 'cmp-dialog-container',
52
52
  standalone: true,
53
- changeDetection: ChangeDetectionStrategy.Default,
53
+ changeDetection: ChangeDetectionStrategy.OnPush,
54
54
  imports: [DialogSurfaceComponent, CdkPortalOutlet],
55
55
  template: `
56
56
  <cmp-dialog-surface
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-container.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/dialog/dialog-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,SAAS,E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CdkDialogContainer, DialogConfig, DialogRef } from '@angular/cdk/dialog';\r\nimport { CdkPortalOutlet } from '@angular/cdk/portal';\r\nimport { DialogSurfaceComponent } from './dialog-surface';\r\nimport { DialogVariant } from './dialog-types';\r\n\r\n/** Chrome params supplied by `DialogService` to the container via {@link CMP_DIALOG_CHROME}. */\r\nexport interface DialogChrome {\r\n variant: DialogVariant;\r\n title: string;\r\n description: string;\r\n icon: string;\r\n dismissible: boolean;\r\n closeLabel: string;\r\n width: string;\r\n showActions: boolean;\r\n titleId: string;\r\n descId: string;\r\n}\r\n\r\n/**\r\n * Chrome params injected into `CmpDialogContainer`. Provided via the CDK `container` object\r\n * form (`{ type, providers }`) rather than spread onto the `DialogConfig` — that avoids\r\n * clobbering real config fields (e.g. `width`, which CDK also maps onto the overlay pane).\r\n */\r\nexport const CMP_DIALOG_CHROME = new InjectionToken<DialogChrome>('CMP_DIALOG_CHROME');\r\n\r\n/**\r\n * Container used by `DialogService` via CDK `Dialog.open(content, { container })`. Extends\r\n * the CDK dialog container (focus trap, focus capture/restore, portal outlet) and renders the\r\n * shared dialog surface around the attached content. The opened content is attached into the\r\n * surface's body via the `cdkPortalOutlet`; chrome params (title/variant/etc.) ride on the\r\n * `DialogConfig`. Internal — not part of the public API.\r\n *\r\n * Host aria bindings are redeclared here (component host metadata is not inherited) and read\r\n * from the injected `DialogConfig`, matching `CdkDialogContainer`'s own bindings.\r\n */\r\n@Component({\r\n selector: 'cmp-dialog-container',\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.Default,\r\n imports: [DialogSurfaceComponent, CdkPortalOutlet],\r\n template: `\r\n <cmp-dialog-surface\r\n [variant]=\"chrome.variant\"\r\n [width]=\"chrome.width\"\r\n [title]=\"chrome.title\"\r\n [description]=\"chrome.description\"\r\n [icon]=\"chrome.icon\"\r\n [dismissible]=\"chrome.dismissible\"\r\n [closeLabel]=\"chrome.closeLabel\"\r\n [showActions]=\"chrome.showActions\"\r\n [titleId]=\"chrome.titleId\"\r\n [descId]=\"chrome.descId\"\r\n (closeClick)=\"dialogRef.close()\"\r\n >\r\n <ng-template cdkPortalOutlet></ng-template>\r\n </cmp-dialog-surface>\r\n `,\r\n host: {\r\n class: 'cmp-dialog-container',\r\n tabindex: '-1',\r\n '[attr.role]': 'config.role',\r\n '[attr.aria-modal]': 'config.ariaModal',\r\n '[id]': 'config.id',\r\n '[attr.aria-labelledby]': 'config.ariaLabel ? null : config.ariaLabelledBy',\r\n '[attr.aria-label]': 'config.ariaLabel',\r\n '[attr.aria-describedby]': 'config.ariaDescribedBy',\r\n },\r\n})\r\nexport class CmpDialogContainer extends CdkDialogContainer {\r\n /** The dialog config (provided by CDK to the container injector); drives the aria host bindings. */\r\n protected readonly config = inject(DialogConfig);\r\n /** Ref for the open dialog (provided by CDK to the container injector); closes on the ✕. */\r\n protected readonly dialogRef = inject<DialogRef<unknown, unknown>>(DialogRef);\r\n /** Chrome params supplied by `DialogService` via the container `providers`. */\r\n protected readonly chrome = inject(CMP_DIALOG_CHROME);\r\n}\r\n"]}
1
+ {"version":3,"file":"dialog-container.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/dialog/dialog-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;;AAiB1D;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,cAAc,CAAe,mBAAmB,CAAC,CAAC;AAEvF;;;;;;;;;GASG;AAkCH,MAAM,OAAO,kBAAmB,SAAQ,kBAAkB;IACxD,oGAAoG;IACjF,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;IACjD,4FAA4F;IACzE,SAAS,GAAG,MAAM,CAA8B,SAAS,CAAC,CAAC;IAC9E,+EAA+E;IAC5D,MAAM,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;wGAN3C,kBAAkB;4FAAlB,kBAAkB,scA5BnB;;;;;;;;;;;;;;;;GAgBT,4DAjBS,sBAAsB,uNAAE,eAAe;;4FA6BtC,kBAAkB;kBAjC9B,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,sBAAsB,EAAE,eAAe,CAAC;oBAClD,QAAQ,EAAE;;;;;;;;;;;;;;;;GAgBT;oBACD,IAAI,EAAE;wBACJ,KAAK,EAAE,sBAAsB;wBAC7B,QAAQ,EAAE,IAAI;wBACd,aAAa,EAAE,aAAa;wBAC5B,mBAAmB,EAAE,kBAAkB;wBACvC,MAAM,EAAE,WAAW;wBACnB,wBAAwB,EAAE,iDAAiD;wBAC3E,mBAAmB,EAAE,kBAAkB;wBACvC,yBAAyB,EAAE,wBAAwB;qBACpD;iBACF","sourcesContent":["import { ChangeDetectionStrategy, Component, InjectionToken, inject } from '@angular/core';\r\nimport { CdkDialogContainer, DialogConfig, DialogRef } from '@angular/cdk/dialog';\r\nimport { CdkPortalOutlet } from '@angular/cdk/portal';\r\nimport { DialogSurfaceComponent } from './dialog-surface';\r\nimport { DialogVariant } from './dialog-types';\r\n\r\n/** Chrome params supplied by `DialogService` to the container via {@link CMP_DIALOG_CHROME}. */\r\nexport interface DialogChrome {\r\n variant: DialogVariant;\r\n title: string;\r\n description: string;\r\n icon: string;\r\n dismissible: boolean;\r\n closeLabel: string;\r\n width: string;\r\n showActions: boolean;\r\n titleId: string;\r\n descId: string;\r\n}\r\n\r\n/**\r\n * Chrome params injected into `CmpDialogContainer`. Provided via the CDK `container` object\r\n * form (`{ type, providers }`) rather than spread onto the `DialogConfig` — that avoids\r\n * clobbering real config fields (e.g. `width`, which CDK also maps onto the overlay pane).\r\n */\r\nexport const CMP_DIALOG_CHROME = new InjectionToken<DialogChrome>('CMP_DIALOG_CHROME');\r\n\r\n/**\r\n * Container used by `DialogService` via CDK `Dialog.open(content, { container })`. Extends\r\n * the CDK dialog container (focus trap, focus capture/restore, portal outlet) and renders the\r\n * shared dialog surface around the attached content. The opened content is attached into the\r\n * surface's body via the `cdkPortalOutlet`; chrome params (title/variant/etc.) ride on the\r\n * `DialogConfig`. Internal — not part of the public API.\r\n *\r\n * Host aria bindings are redeclared here (component host metadata is not inherited) and read\r\n * from the injected `DialogConfig`, matching `CdkDialogContainer`'s own bindings.\r\n */\r\n@Component({\r\n selector: 'cmp-dialog-container',\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [DialogSurfaceComponent, CdkPortalOutlet],\r\n template: `\r\n <cmp-dialog-surface\r\n [variant]=\"chrome.variant\"\r\n [width]=\"chrome.width\"\r\n [title]=\"chrome.title\"\r\n [description]=\"chrome.description\"\r\n [icon]=\"chrome.icon\"\r\n [dismissible]=\"chrome.dismissible\"\r\n [closeLabel]=\"chrome.closeLabel\"\r\n [showActions]=\"chrome.showActions\"\r\n [titleId]=\"chrome.titleId\"\r\n [descId]=\"chrome.descId\"\r\n (closeClick)=\"dialogRef.close()\"\r\n >\r\n <ng-template cdkPortalOutlet></ng-template>\r\n </cmp-dialog-surface>\r\n `,\r\n host: {\r\n class: 'cmp-dialog-container',\r\n tabindex: '-1',\r\n '[attr.role]': 'config.role',\r\n '[attr.aria-modal]': 'config.ariaModal',\r\n '[id]': 'config.id',\r\n '[attr.aria-labelledby]': 'config.ariaLabel ? null : config.ariaLabelledBy',\r\n '[attr.aria-label]': 'config.ariaLabel',\r\n '[attr.aria-describedby]': 'config.ariaDescribedBy',\r\n },\r\n})\r\nexport class CmpDialogContainer extends CdkDialogContainer {\r\n /** The dialog config (provided by CDK to the container injector); drives the aria host bindings. */\r\n protected readonly config = inject(DialogConfig);\r\n /** Ref for the open dialog (provided by CDK to the container injector); closes on the ✕. */\r\n protected readonly dialogRef = inject<DialogRef<unknown, unknown>>(DialogRef);\r\n /** Chrome params supplied by `DialogService` via the container `providers`. */\r\n protected readonly chrome = inject(CMP_DIALOG_CHROME);\r\n}\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compsych-ui-components/angular",
3
- "version": "7.0.21",
3
+ "version": "7.0.22",
4
4
  "description": "Angular UI components for compsych",
5
5
  "publishConfig": {
6
6
  "access": "public",