@skyux/popovers 7.5.0 → 7.6.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.
Files changed (38) hide show
  1. package/documentation.json +38 -38
  2. package/esm2020/lib/modules/dropdown/dropdown-item.component.mjs +2 -2
  3. package/esm2020/lib/modules/dropdown/dropdown-menu.component.mjs +3 -3
  4. package/esm2020/lib/modules/dropdown/dropdown.component.mjs +8 -8
  5. package/esm2020/lib/modules/dropdown/types/dropdown-horizontal-alignment.mjs +1 -1
  6. package/esm2020/lib/modules/dropdown/types/dropdown-menu-change.mjs +1 -1
  7. package/esm2020/lib/modules/dropdown/types/dropdown-message-type.mjs +2 -2
  8. package/esm2020/lib/modules/dropdown/types/dropdown-message.mjs +1 -1
  9. package/esm2020/lib/modules/dropdown/types/dropdown-trigger-type.mjs +1 -1
  10. package/esm2020/lib/modules/popover/popover.component.mjs +6 -6
  11. package/esm2020/lib/modules/popover/popover.directive.mjs +3 -3
  12. package/esm2020/lib/modules/popover/types/popover-message-type.mjs +2 -2
  13. package/esm2020/lib/modules/popover/types/popover-trigger.mjs +1 -1
  14. package/esm2020/testing/dropdown/dropdown-fixture.mjs +2 -2
  15. package/esm2020/testing/popover/popover-fixture.mjs +2 -2
  16. package/fesm2015/skyux-popovers-testing.mjs +2 -2
  17. package/fesm2015/skyux-popovers-testing.mjs.map +1 -1
  18. package/fesm2015/skyux-popovers.mjs +19 -19
  19. package/fesm2015/skyux-popovers.mjs.map +1 -1
  20. package/fesm2020/skyux-popovers-testing.mjs +2 -2
  21. package/fesm2020/skyux-popovers-testing.mjs.map +1 -1
  22. package/fesm2020/skyux-popovers.mjs +19 -19
  23. package/fesm2020/skyux-popovers.mjs.map +1 -1
  24. package/lib/modules/dropdown/dropdown-item.component.d.ts +1 -1
  25. package/lib/modules/dropdown/dropdown-menu.component.d.ts +3 -3
  26. package/lib/modules/dropdown/dropdown.component.d.ts +9 -9
  27. package/lib/modules/dropdown/types/dropdown-horizontal-alignment.d.ts +1 -1
  28. package/lib/modules/dropdown/types/dropdown-menu-change.d.ts +3 -3
  29. package/lib/modules/dropdown/types/dropdown-message-type.d.ts +1 -1
  30. package/lib/modules/dropdown/types/dropdown-message.d.ts +1 -1
  31. package/lib/modules/dropdown/types/dropdown-trigger-type.d.ts +1 -1
  32. package/lib/modules/popover/popover.component.d.ts +6 -6
  33. package/lib/modules/popover/popover.directive.d.ts +5 -5
  34. package/lib/modules/popover/types/popover-message-type.d.ts +1 -1
  35. package/lib/modules/popover/types/popover-trigger.d.ts +1 -1
  36. package/package.json +6 -6
  37. package/testing/dropdown/dropdown-fixture.d.ts +1 -1
  38. package/testing/popover/popover-fixture.d.ts +1 -1
@@ -70,7 +70,7 @@ class SkyDropdownFixture {
70
70
  };
71
71
  }
72
72
  /**
73
- * Indicates if the dropdown menu is open and visible.
73
+ * Whether the dropdown menu is open and visible.
74
74
  */
75
75
  get dropdownMenuIsVisible() {
76
76
  return this.getDropdownMenuContent() !== undefined;
@@ -221,7 +221,7 @@ class SkyPopoverFixture {
221
221
  return SkyAppTestUtility.getText(__classPrivateFieldGet(this, _SkyPopoverFixture_instances, "a", _SkyPopoverFixture_titleElement_get));
222
222
  }
223
223
  /**
224
- * Indicates if the popover is open and visible.
224
+ * Whether the popover is open and visible.
225
225
  */
226
226
  get popoverIsVisible() {
227
227
  return __classPrivateFieldGet(this, _SkyPopoverFixture_instances, "a", _SkyPopoverFixture_contentElement_get) !== undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"skyux-popovers-testing.mjs","sources":["../../../../../libs/components/popovers/testing/src/dropdown/dropdown-testing.module.ts","../../../../../libs/components/popovers/testing/src/dropdown/dropdown-fixture.ts","../../../../../libs/components/popovers/testing/src/popover/popover-testing.module.ts","../../../../../libs/components/popovers/testing/src/popover/popover-fixture.ts","../../../../../libs/components/popovers/testing/src/skyux-popovers-testing.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { SkyDropdownModule } from '@skyux/popovers';\n\n/**\n * @internal\n */\n@NgModule({\n exports: [SkyDropdownModule],\n})\nexport class SkyDropdownTestingModule {}\n","import { DebugElement } from '@angular/core';\nimport { ComponentFixture } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\nimport { SkyPopoversFixtureDropdown } from './popovers-fixture-dropdown';\nimport { SkyPopoversFixtureDropdownItem } from './popovers-fixture-dropdown-item';\nimport { SkyPopoversFixtureDropdownMenu } from './popovers-fixture-dropdown-menu';\n\n/**\n * Provides information for and interaction with a SKY UX dropdown component.\n * By using the fixture API, a test insulates itself against updates to the internals\n * of a component, such as changing its DOM structure.\n * @internal\n */\nexport class SkyDropdownFixture {\n /**\n * Returns information about the dropdown component.\n */\n public get dropdown(): SkyPopoversFixtureDropdown | undefined {\n const button = this.#buttonDebugElement;\n return {\n buttonStyle: this.#getButtonStyle(button.classes),\n buttonType: this.#getButtonType(button.classes),\n disabled: button.nativeElement.disabled,\n label: button.nativeElement.getAttribute('aria-label'),\n title: button.nativeElement.getAttribute('title'),\n };\n }\n\n /**\n * Returns the dropdown button's text.\n */\n public get dropdownButtonText(): string | undefined {\n return SkyAppTestUtility.getText(this.#buttonDebugElement.nativeElement);\n }\n\n /**\n * Returns information about the dropdown menu component.\n */\n public get dropdownMenu(): SkyPopoversFixtureDropdownMenu | undefined {\n const menu = this.getDropdownMenuContent();\n if (!menu) {\n return;\n }\n\n return {\n ariaLabelledBy: menu.getAttribute('aria-labelledby'),\n ariaRole: menu.getAttribute('role'),\n };\n }\n\n /**\n * Indicates if the dropdown menu is open and visible.\n */\n public get dropdownMenuIsVisible(): boolean {\n return this.getDropdownMenuContent() !== undefined;\n }\n\n get #buttonDebugElement(): DebugElement {\n return this.#debugEl.query(By.css('.sky-dropdown-button'));\n }\n\n #debugEl: DebugElement;\n\n #fixture: ComponentFixture<unknown>;\n\n constructor(fixture: ComponentFixture<unknown>, skyTestId: string) {\n this.#fixture = fixture;\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-dropdown'\n );\n }\n\n /**\n * Click the dropdown button to open or close the dropdown menu.\n */\n public async clickDropdownButton(): Promise<unknown> {\n this.#buttonDebugElement.nativeElement.click();\n this.#fixture.detectChanges();\n return this.#fixture.whenStable();\n }\n\n /**\n * Click the dropdown item at the provided index.\n */\n public async clickDropdownItem(index: number): Promise<unknown> {\n const itemEls = this.#getDropdownItemEls();\n\n if (!itemEls) {\n return;\n }\n\n if (index >= itemEls.length) {\n throw new Error(`There is no dropdown item at index ${index}.`);\n }\n\n itemEls[index].querySelector('button,a').click();\n\n this.#fixture.detectChanges();\n return this.#fixture.whenStable();\n }\n\n /**\n * Returns information about the dropdown item at the provided index.\n */\n public getDropdownItem(\n index: number\n ): SkyPopoversFixtureDropdownItem | undefined {\n const itemEls = this.#getDropdownItemEls();\n\n if (!itemEls) {\n return;\n }\n\n if (!itemEls[index]) {\n throw new Error(`There is no dropdown item at index ${index}.`);\n }\n\n const item = itemEls[index];\n\n return {\n ariaRole: item.getAttribute('role'),\n };\n }\n\n /**\n * Returns the contents of the dropdown menu.\n */\n public getDropdownMenuContent(): any {\n const overlay = this.#getOverlay();\n if (!overlay) {\n return;\n }\n\n return overlay.querySelector('.sky-dropdown-menu');\n }\n\n #getDropdownItemEls(): NodeListOf<any> | undefined {\n const overlay = this.#getOverlay();\n\n if (!overlay) {\n return;\n }\n\n return overlay.querySelectorAll('.sky-dropdown-item');\n }\n\n #getOverlay(): HTMLElement | null {\n return document.querySelector('sky-overlay');\n }\n\n #getButtonStyle(classNames: { [key: string]: boolean }): string | undefined {\n if (classNames['sky-btn-primary']) {\n return 'primary';\n }\n if (classNames['sky-btn-default']) {\n return 'default';\n }\n return;\n }\n\n #getButtonType(classNames: { [key: string]: boolean }): string {\n const prefix = 'sky-dropdown-button-type-';\n\n let found = '';\n for (const i in classNames) {\n if (classNames[i]) {\n if (i.indexOf(prefix) > -1) {\n found = i.replace(prefix, '');\n }\n }\n }\n\n return found;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { NoopAnimationsModule } from '@angular/platform-browser/animations';\nimport { SkyPopoverModule } from '@skyux/popovers';\nimport { SkyThemeModule } from '@skyux/theme';\n\n/**\n * @internal\n */\n@NgModule({\n exports: [\n SkyPopoverModule,\n\n // The noop animations module needs to be loaded last to avoid\n // subsequent modules adding animations and overriding this.\n NoopAnimationsModule,\n ],\n imports: [SkyThemeModule],\n})\nexport class SkyPopoverTestingModule {}\n","import { ComponentFixture } from '@angular/core/testing';\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Provides information for and interaction with a SKY UX popover component.\n * By using the fixture API, a test insulates itself against updates to the internals\n * of a component, such as changing its DOM structure.\n * @internal\n */\nexport class SkyPopoverFixture {\n /**\n * Returns the popover alignment if the popover is open, otherwise undefined.\n */\n public get alignment(): string | undefined {\n return this.#getClassSuffixByClassPrefix(\n this.#containerElement,\n 'sky-popover-alignment-'\n );\n }\n\n /**\n * Returns the popover body element if the popover is open, otherwise undefined.\n */\n public get body(): HTMLElement | undefined {\n return this.#bodyElement;\n }\n\n /**\n * Returns the popover position if the popover is open, otherwise undefined.\n */\n public get placement(): string | undefined {\n return this.#getClassSuffixByClassPrefix(\n this.#containerElement,\n 'sky-popover-placement-'\n );\n }\n\n /**\n * Returns the popover title text if the popover is open, otherwise undefined.\n */\n public get popoverTitle(): string | undefined {\n return SkyAppTestUtility.getText(this.#titleElement);\n }\n\n /**\n * Indicates if the popover is open and visible.\n */\n public get popoverIsVisible(): boolean {\n return this.#contentElement !== undefined;\n }\n\n #fixture: ComponentFixture<unknown>;\n\n constructor(fixture: ComponentFixture<unknown>) {\n this.#fixture = fixture;\n }\n\n /**\n * Triggers the blur event for the popover.\n */\n public blur(): Promise<unknown> {\n // close the popover by changing focus to the body element\n SkyAppTestUtility.fireDomEvent(window.document.body, 'click');\n\n this.#fixture.detectChanges();\n return this.#fixture.whenStable();\n }\n\n //#region helpers\n get #contentElement(): HTMLElement | undefined {\n return this.#queryOverlay('sky-popover-content') || undefined;\n }\n\n get #containerElement(): HTMLElement | undefined {\n return this.#queryOverlay('.sky-popover-container') || undefined;\n }\n\n get #titleElement(): HTMLElement | undefined {\n return this.#queryOverlay('.sky-popover-title') || undefined;\n }\n\n get #bodyElement(): HTMLElement | undefined {\n return this.#queryOverlay('.sky-popover-body') || undefined;\n }\n\n #getOverlay(): Element | undefined {\n return document.querySelector('sky-overlay') || undefined;\n }\n\n #queryOverlay(query: string): HTMLElement | null {\n const overlay = this.#getOverlay();\n\n return !overlay ? null : overlay.querySelector(query);\n }\n\n /**\n * Searches the element's class names for a class which matches a given prefix.\n * If a match is found, the prefix is trimmed from the class name and the suffix is returned.\n * If no class matching the prefix is found, undefined is returned.\n *\n * Example:\n * For a class 'sky-popover-placement-right', passing the prefix 'sky-popover-placement-'\n * should return the value 'right'.\n * @param prefix\n */\n #getClassSuffixByClassPrefix(\n element: HTMLElement | undefined,\n prefix: string\n ): string | undefined {\n const containerClasses = element?.className.split(' ');\n const prefixedClass = containerClasses?.find((x) => x.startsWith(prefix));\n\n return !prefixedClass ? undefined : prefixedClass.slice(prefix.length);\n }\n //#endregion\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAGA;;AAEG;MAIU,wBAAwB,CAAA;;sHAAxB,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAxB,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YAFzB,iBAAiB,CAAA,EAAA,CAAA,CAAA;AAEhB,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAA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,SAAA,kCAAA,GAAA;IAGC,OAAO,sBAAA,CAAA,IAAI,EAAA,4BAAA,EAAA,GAAA,EAAA,+BAAA,CAAc,CAAlB,IAAA,CAAA,IAAI,EAAe,mBAAmB,CAAC,IAAI,SAAS,CAAC;AAC9D,CAAC,EAAA,6BAAA,GAAA,SAAA,6BAAA,GAAA;IAGC,OAAO,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,SAAS,CAAC;AAC5D,CAAC,6EAEa,KAAa,EAAA;IACzB,MAAM,OAAO,GAAG,sBAAA,CAAA,IAAI,mEAAY,CAAhB,IAAA,CAAA,IAAI,CAAc,CAAC;AAEnC,IAAA,OAAO,CAAC,OAAO,GAAG,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACxD,CAAC,EAAA,8CAAA,GAAA,SAAA,8CAAA,CAaC,OAAgC,EAChC,MAAc,EAAA;IAEd,MAAM,gBAAgB,GAAG,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACvD,IAAA,MAAM,aAAa,GAAG,gBAAgB,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;AAE1E,IAAA,OAAO,CAAC,aAAa,GAAG,SAAS,GAAG,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACzE,CAAC;;ACjHH;;AAEG;;;;"}
1
+ {"version":3,"file":"skyux-popovers-testing.mjs","sources":["../../../../../libs/components/popovers/testing/src/dropdown/dropdown-testing.module.ts","../../../../../libs/components/popovers/testing/src/dropdown/dropdown-fixture.ts","../../../../../libs/components/popovers/testing/src/popover/popover-testing.module.ts","../../../../../libs/components/popovers/testing/src/popover/popover-fixture.ts","../../../../../libs/components/popovers/testing/src/skyux-popovers-testing.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { SkyDropdownModule } from '@skyux/popovers';\n\n/**\n * @internal\n */\n@NgModule({\n exports: [SkyDropdownModule],\n})\nexport class SkyDropdownTestingModule {}\n","import { DebugElement } from '@angular/core';\nimport { ComponentFixture } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\nimport { SkyPopoversFixtureDropdown } from './popovers-fixture-dropdown';\nimport { SkyPopoversFixtureDropdownItem } from './popovers-fixture-dropdown-item';\nimport { SkyPopoversFixtureDropdownMenu } from './popovers-fixture-dropdown-menu';\n\n/**\n * Provides information for and interaction with a SKY UX dropdown component.\n * By using the fixture API, a test insulates itself against updates to the internals\n * of a component, such as changing its DOM structure.\n * @internal\n */\nexport class SkyDropdownFixture {\n /**\n * Returns information about the dropdown component.\n */\n public get dropdown(): SkyPopoversFixtureDropdown | undefined {\n const button = this.#buttonDebugElement;\n return {\n buttonStyle: this.#getButtonStyle(button.classes),\n buttonType: this.#getButtonType(button.classes),\n disabled: button.nativeElement.disabled,\n label: button.nativeElement.getAttribute('aria-label'),\n title: button.nativeElement.getAttribute('title'),\n };\n }\n\n /**\n * Returns the dropdown button's text.\n */\n public get dropdownButtonText(): string | undefined {\n return SkyAppTestUtility.getText(this.#buttonDebugElement.nativeElement);\n }\n\n /**\n * Returns information about the dropdown menu component.\n */\n public get dropdownMenu(): SkyPopoversFixtureDropdownMenu | undefined {\n const menu = this.getDropdownMenuContent();\n if (!menu) {\n return;\n }\n\n return {\n ariaLabelledBy: menu.getAttribute('aria-labelledby'),\n ariaRole: menu.getAttribute('role'),\n };\n }\n\n /**\n * Whether the dropdown menu is open and visible.\n */\n public get dropdownMenuIsVisible(): boolean {\n return this.getDropdownMenuContent() !== undefined;\n }\n\n get #buttonDebugElement(): DebugElement {\n return this.#debugEl.query(By.css('.sky-dropdown-button'));\n }\n\n #debugEl: DebugElement;\n\n #fixture: ComponentFixture<unknown>;\n\n constructor(fixture: ComponentFixture<unknown>, skyTestId: string) {\n this.#fixture = fixture;\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-dropdown'\n );\n }\n\n /**\n * Click the dropdown button to open or close the dropdown menu.\n */\n public async clickDropdownButton(): Promise<unknown> {\n this.#buttonDebugElement.nativeElement.click();\n this.#fixture.detectChanges();\n return this.#fixture.whenStable();\n }\n\n /**\n * Click the dropdown item at the provided index.\n */\n public async clickDropdownItem(index: number): Promise<unknown> {\n const itemEls = this.#getDropdownItemEls();\n\n if (!itemEls) {\n return;\n }\n\n if (index >= itemEls.length) {\n throw new Error(`There is no dropdown item at index ${index}.`);\n }\n\n itemEls[index].querySelector('button,a').click();\n\n this.#fixture.detectChanges();\n return this.#fixture.whenStable();\n }\n\n /**\n * Returns information about the dropdown item at the provided index.\n */\n public getDropdownItem(\n index: number\n ): SkyPopoversFixtureDropdownItem | undefined {\n const itemEls = this.#getDropdownItemEls();\n\n if (!itemEls) {\n return;\n }\n\n if (!itemEls[index]) {\n throw new Error(`There is no dropdown item at index ${index}.`);\n }\n\n const item = itemEls[index];\n\n return {\n ariaRole: item.getAttribute('role'),\n };\n }\n\n /**\n * Returns the contents of the dropdown menu.\n */\n public getDropdownMenuContent(): any {\n const overlay = this.#getOverlay();\n if (!overlay) {\n return;\n }\n\n return overlay.querySelector('.sky-dropdown-menu');\n }\n\n #getDropdownItemEls(): NodeListOf<any> | undefined {\n const overlay = this.#getOverlay();\n\n if (!overlay) {\n return;\n }\n\n return overlay.querySelectorAll('.sky-dropdown-item');\n }\n\n #getOverlay(): HTMLElement | null {\n return document.querySelector('sky-overlay');\n }\n\n #getButtonStyle(classNames: { [key: string]: boolean }): string | undefined {\n if (classNames['sky-btn-primary']) {\n return 'primary';\n }\n if (classNames['sky-btn-default']) {\n return 'default';\n }\n return;\n }\n\n #getButtonType(classNames: { [key: string]: boolean }): string {\n const prefix = 'sky-dropdown-button-type-';\n\n let found = '';\n for (const i in classNames) {\n if (classNames[i]) {\n if (i.indexOf(prefix) > -1) {\n found = i.replace(prefix, '');\n }\n }\n }\n\n return found;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { NoopAnimationsModule } from '@angular/platform-browser/animations';\nimport { SkyPopoverModule } from '@skyux/popovers';\nimport { SkyThemeModule } from '@skyux/theme';\n\n/**\n * @internal\n */\n@NgModule({\n exports: [\n SkyPopoverModule,\n\n // The noop animations module needs to be loaded last to avoid\n // subsequent modules adding animations and overriding this.\n NoopAnimationsModule,\n ],\n imports: [SkyThemeModule],\n})\nexport class SkyPopoverTestingModule {}\n","import { ComponentFixture } from '@angular/core/testing';\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Provides information for and interaction with a SKY UX popover component.\n * By using the fixture API, a test insulates itself against updates to the internals\n * of a component, such as changing its DOM structure.\n * @internal\n */\nexport class SkyPopoverFixture {\n /**\n * Returns the popover alignment if the popover is open, otherwise undefined.\n */\n public get alignment(): string | undefined {\n return this.#getClassSuffixByClassPrefix(\n this.#containerElement,\n 'sky-popover-alignment-'\n );\n }\n\n /**\n * Returns the popover body element if the popover is open, otherwise undefined.\n */\n public get body(): HTMLElement | undefined {\n return this.#bodyElement;\n }\n\n /**\n * Returns the popover position if the popover is open, otherwise undefined.\n */\n public get placement(): string | undefined {\n return this.#getClassSuffixByClassPrefix(\n this.#containerElement,\n 'sky-popover-placement-'\n );\n }\n\n /**\n * Returns the popover title text if the popover is open, otherwise undefined.\n */\n public get popoverTitle(): string | undefined {\n return SkyAppTestUtility.getText(this.#titleElement);\n }\n\n /**\n * Whether the popover is open and visible.\n */\n public get popoverIsVisible(): boolean {\n return this.#contentElement !== undefined;\n }\n\n #fixture: ComponentFixture<unknown>;\n\n constructor(fixture: ComponentFixture<unknown>) {\n this.#fixture = fixture;\n }\n\n /**\n * Triggers the blur event for the popover.\n */\n public blur(): Promise<unknown> {\n // close the popover by changing focus to the body element\n SkyAppTestUtility.fireDomEvent(window.document.body, 'click');\n\n this.#fixture.detectChanges();\n return this.#fixture.whenStable();\n }\n\n //#region helpers\n get #contentElement(): HTMLElement | undefined {\n return this.#queryOverlay('sky-popover-content') || undefined;\n }\n\n get #containerElement(): HTMLElement | undefined {\n return this.#queryOverlay('.sky-popover-container') || undefined;\n }\n\n get #titleElement(): HTMLElement | undefined {\n return this.#queryOverlay('.sky-popover-title') || undefined;\n }\n\n get #bodyElement(): HTMLElement | undefined {\n return this.#queryOverlay('.sky-popover-body') || undefined;\n }\n\n #getOverlay(): Element | undefined {\n return document.querySelector('sky-overlay') || undefined;\n }\n\n #queryOverlay(query: string): HTMLElement | null {\n const overlay = this.#getOverlay();\n\n return !overlay ? null : overlay.querySelector(query);\n }\n\n /**\n * Searches the element's class names for a class which matches a given prefix.\n * If a match is found, the prefix is trimmed from the class name and the suffix is returned.\n * If no class matching the prefix is found, undefined is returned.\n *\n * Example:\n * For a class 'sky-popover-placement-right', passing the prefix 'sky-popover-placement-'\n * should return the value 'right'.\n * @param prefix\n */\n #getClassSuffixByClassPrefix(\n element: HTMLElement | undefined,\n prefix: string\n ): string | undefined {\n const containerClasses = element?.className.split(' ');\n const prefixedClass = containerClasses?.find((x) => x.startsWith(prefix));\n\n return !prefixedClass ? undefined : prefixedClass.slice(prefix.length);\n }\n //#endregion\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAGA;;AAEG;MAIU,wBAAwB,CAAA;;sHAAxB,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAxB,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YAFzB,iBAAiB,CAAA,EAAA,CAAA,CAAA;AAEhB,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAA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C,OAAO,sBAAA,CAAA,IAAI,EAAA,4BAAA,EAAA,GAAA,EAAA,+BAAA,CAAc,CAAlB,IAAA,CAAA,IAAI,EAAe,mBAAmB,CAAC,IAAI,SAAS,CAAC;AAC9D,CAAC,EAAA,6BAAA,GAAA,SAAA,6BAAA,GAAA;IAGC,OAAO,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,SAAS,CAAC;AAC5D,CAAC,6EAEa,KAAa,EAAA;IACzB,MAAM,OAAO,GAAG,sBAAA,CAAA,IAAI,mEAAY,CAAhB,IAAA,CAAA,IAAI,CAAc,CAAC;AAEnC,IAAA,OAAO,CAAC,OAAO,GAAG,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACxD,CAAC,EAAA,8CAAA,GAAA,SAAA,8CAAA,CAaC,OAAgC,EAChC,MAAc,EAAA;IAEd,MAAM,gBAAgB,GAAG,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACvD,IAAA,MAAM,aAAa,GAAG,gBAAgB,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;AAE1E,IAAA,OAAO,CAAC,aAAa,GAAG,SAAS,GAAG,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACzE,CAAC;;ACjHH;;AAEG;;;;"}
@@ -16,7 +16,7 @@ import { takeUntil } from 'rxjs/operators';
16
16
  import { trigger, state, style, transition, animate } from '@angular/animations';
17
17
 
18
18
  /**
19
- * Specifies the type of message to send.
19
+ * The type of message to send.
20
20
  * @internal
21
21
  */
22
22
  var SkyDropdownMessageType;
@@ -129,7 +129,7 @@ class SkyDropdownItemComponent {
129
129
  __classPrivateFieldSet(this, _SkyDropdownItemComponent_renderer, renderer, "f");
130
130
  }
131
131
  /**
132
- * Specifies an ARIA role for the dropdown menu item
132
+ * The ARIA role for the dropdown menu item
133
133
  * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility)
134
134
  * by indicating how the item functions and what it controls. For information about
135
135
  * how an ARIA role indicates what an item represents on a web page, see the
@@ -203,12 +203,12 @@ class SkyDropdownComponent {
203
203
  constructor(changeDetector, affixService, overlayService, logService, themeSvc) {
204
204
  _SkyDropdownComponent_instances.add(this);
205
205
  /**
206
- * Indicates whether to disable the dropdown button.
206
+ * Whether to disable the dropdown button.
207
207
  * @default false
208
208
  */
209
209
  this.disabled = false;
210
210
  /**
211
- * Provides an observable to send commands to the dropdown. The commands should respect
211
+ * The observable that sends commands to the dropdown. The commands should respect
212
212
  * the [[SkyDropdownMessage]] type.
213
213
  * @internal
214
214
  */
@@ -238,7 +238,7 @@ class SkyDropdownComponent {
238
238
  __classPrivateFieldSet(this, _SkyDropdownComponent_themeSvc, themeSvc, "f");
239
239
  }
240
240
  /**
241
- * Specifies a background color for the dropdown button. Available values are `default`,
241
+ * The background color for the dropdown button. Available values are `default`,
242
242
  * `primary`, and `link`. These values set the background color and hover behavior from the
243
243
  * [secondary and primary button classes](https://developer.blackbaud.com/skyux/components/button) respectively.
244
244
  * @default "default"
@@ -250,7 +250,7 @@ class SkyDropdownComponent {
250
250
  return __classPrivateFieldGet(this, _SkyDropdownComponent__buttonStyle, "f");
251
251
  }
252
252
  /**
253
- * Specifies the type of button to render as the dropdown's trigger element. To display a button
253
+ * The type of button to render as the dropdown's trigger element. To display a button
254
254
  * with a caret, specify `'select'` and render the button text or icon in a
255
255
  * `sky-dropdown-button` element. To display a round button with an ellipsis, specify
256
256
  * `'context-menu'`.
@@ -269,7 +269,7 @@ class SkyDropdownComponent {
269
269
  return __classPrivateFieldGet(this, _SkyDropdownComponent__buttonType, "f");
270
270
  }
271
271
  /**
272
- * Indicates whether to close the dropdown when users click away from the menu.
272
+ * Whether to close the dropdown when users click away from the menu.
273
273
  * @default true
274
274
  */
275
275
  set dismissOnBlur(value) {
@@ -279,7 +279,7 @@ class SkyDropdownComponent {
279
279
  return __classPrivateFieldGet(this, _SkyDropdownComponent__dismissOnBlur, "f");
280
280
  }
281
281
  /**
282
- * Specifies the horizontal alignment of the dropdown menu in relation to the dropdown button.
282
+ * The horizontal alignment of the dropdown menu in relation to the dropdown button.
283
283
  * @default "left"
284
284
  */
285
285
  set horizontalAlignment(value) {
@@ -289,7 +289,7 @@ class SkyDropdownComponent {
289
289
  return __classPrivateFieldGet(this, _SkyDropdownComponent__horizontalAlignment, "f");
290
290
  }
291
291
  /**
292
- * Specifies how users interact with the dropdown button to expose the dropdown menu.
292
+ * How users interact with the dropdown button to expose the dropdown menu.
293
293
  * We recommend the default `click` value because the `hover` value can pose
294
294
  * [accessibility](https://developer.blackbaud.com/skyux/learn/accessibility) issues
295
295
  * for users on touch devices such as phones and tablets.
@@ -588,7 +588,7 @@ class SkyDropdownMenuComponent {
588
588
  __classPrivateFieldSet(this, _SkyDropdownMenuComponent_dropdownComponent, dropdownComponent, "f");
589
589
  }
590
590
  /**
591
- * Specifies an ARIA role for the dropdown menu
591
+ * The ARIA role for the dropdown menu
592
592
  * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility)
593
593
  * by indicating how the dropdown menu functions and what it controls. The dropdown button
594
594
  * inherits this value to set its `aria-haspopup` property. For information
@@ -603,7 +603,7 @@ class SkyDropdownMenuComponent {
603
603
  return __classPrivateFieldGet(this, _SkyDropdownMenuComponent__ariaRole, "f");
604
604
  }
605
605
  /**
606
- * Indicates whether to use the browser's native focus function when users navigate through menu
606
+ * Whether to use the browser's native focus function when users navigate through menu
607
607
  * items with the keyboard. To disable the native focus function, set this property to `false`.
608
608
  * For example, to let users interact with the dropdown menu but keep the keyboard focus on a
609
609
  * different element, set this property to `false`.
@@ -1297,7 +1297,7 @@ class SkyPopoverComponent {
1297
1297
  */
1298
1298
  this.popoverOpened = new EventEmitter();
1299
1299
  /**
1300
- * Indicates that the popover is in the process of being opened or closed.
1300
+ * Whether the popover is in the process of being opened or closed.
1301
1301
  * @internal
1302
1302
  */
1303
1303
  this.isActive = false;
@@ -1320,7 +1320,7 @@ class SkyPopoverComponent {
1320
1320
  __classPrivateFieldSet(this, _SkyPopoverComponent_overlayService, overlayService, "f");
1321
1321
  }
1322
1322
  /**
1323
- * Specifies the horizontal alignment of the popover in relation to the trigger element.
1323
+ * The horizontal alignment of the popover in relation to the trigger element.
1324
1324
  * The `skyPopoverAlignment` property on the popover directive takes precedence over this property when specified.
1325
1325
  * @default "center"
1326
1326
  */
@@ -1331,7 +1331,7 @@ class SkyPopoverComponent {
1331
1331
  return __classPrivateFieldGet(this, _SkyPopoverComponent__alignment, "f");
1332
1332
  }
1333
1333
  /**
1334
- * Indicates whether to close the popover when it loses focus.
1334
+ * Whether to close the popover when it loses focus.
1335
1335
  * To require users to click a trigger button to close the popover, set this input to false.
1336
1336
  * @default true
1337
1337
  */
@@ -1342,7 +1342,7 @@ class SkyPopoverComponent {
1342
1342
  return __classPrivateFieldGet(this, _SkyPopoverComponent__dismissOnBlur, "f");
1343
1343
  }
1344
1344
  /**
1345
- * Specifies the placement of the popover in relation to the trigger element.
1345
+ * The placement of the popover in relation to the trigger element.
1346
1346
  * The `skyPopoverPlacement` property on the popover directive takes precedence over this property when specified.
1347
1347
  * @default "above"
1348
1348
  */
@@ -1353,7 +1353,7 @@ class SkyPopoverComponent {
1353
1353
  return __classPrivateFieldGet(this, _SkyPopoverComponent__placement, "f");
1354
1354
  }
1355
1355
  /**
1356
- * Specifies the type of popover.
1356
+ * The type of popover.
1357
1357
  * @default "info"
1358
1358
  */
1359
1359
  set popoverType(value) {
@@ -1492,7 +1492,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImpo
1492
1492
  }] } });
1493
1493
 
1494
1494
  /**
1495
- * Specifies the type of message to send to the popover component.
1495
+ * The type of message to send to the popover component.
1496
1496
  */
1497
1497
  var SkyPopoverMessageType;
1498
1498
  (function (SkyPopoverMessageType) {
@@ -1528,7 +1528,7 @@ class SkyPopoverDirective {
1528
1528
  __classPrivateFieldGet(this, _SkyPopoverDirective_instances, "m", _SkyPopoverDirective_subscribeMessageStream).call(this);
1529
1529
  }
1530
1530
  /**
1531
- * Provides an RxJS `Subject` to send commands to the popover that respect the `SkyPopoverMessage` type.
1531
+ * The RxJS `Subject` to send commands to the popover that respect the `SkyPopoverMessage` type.
1532
1532
  */
1533
1533
  set skyPopoverMessageStream(value) {
1534
1534
  __classPrivateFieldSet(this, _SkyPopoverDirective__skyPopoverMessageStream, value ?? new Subject(), "f");
@@ -1538,7 +1538,7 @@ class SkyPopoverDirective {
1538
1538
  return __classPrivateFieldGet(this, _SkyPopoverDirective__skyPopoverMessageStream, "f");
1539
1539
  }
1540
1540
  /**
1541
- * Specifies the user action that displays the popover.
1541
+ * The user action that displays the popover.
1542
1542
  */
1543
1543
  set skyPopoverTrigger(value) {
1544
1544
  __classPrivateFieldSet(this, _SkyPopoverDirective__trigger, value ?? 'click', "f");