@angular/cdk-experimental 13.0.0-next.8 → 13.0.0-rc.3
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.
- package/column-resize/column-resize_public_index.d.ts +4 -0
- package/column-resize/index.d.ts +5 -1
- package/column-resize/package.json +2 -2
- package/combobox/combobox_public_index.d.ts +4 -0
- package/combobox/index.d.ts +5 -1
- package/combobox/package.json +2 -2
- package/dialog/dialog_public_index.d.ts +4 -0
- package/dialog/index.d.ts +5 -1
- package/dialog/package.json +2 -2
- package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +5 -11
- package/esm2020/column-resize/column-resize-directives/column-resize.mjs +5 -11
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +4 -4
- package/esm2020/column-resize/column-resize-module.mjs +9 -9
- package/esm2020/column-resize/column-resize-notifier.mjs +13 -8
- package/esm2020/column-resize/column-resize.mjs +17 -9
- package/esm2020/column-resize/column-resize_public_index.mjs +5 -0
- package/esm2020/column-resize/column-size-store.mjs +4 -4
- package/esm2020/column-resize/event-dispatcher.mjs +8 -8
- package/esm2020/column-resize/index.mjs +6 -2
- package/esm2020/column-resize/overlay-handle.mjs +20 -16
- package/esm2020/column-resize/resizable.mjs +25 -14
- package/esm2020/column-resize/resize-ref.mjs +1 -1
- package/esm2020/column-resize/resize-strategy.mjs +13 -12
- package/esm2020/combobox/combobox-module.mjs +5 -5
- package/esm2020/combobox/combobox-panel.mjs +5 -5
- package/esm2020/combobox/combobox-popup.mjs +7 -7
- package/esm2020/combobox/combobox.mjs +27 -15
- package/esm2020/combobox/combobox_public_index.mjs +5 -0
- package/esm2020/combobox/index.mjs +6 -2
- package/esm2020/dialog/dialog-container.mjs +26 -15
- package/esm2020/dialog/dialog-injectors.mjs +2 -2
- package/esm2020/dialog/dialog-module.mjs +9 -21
- package/esm2020/dialog/dialog-ref.mjs +3 -2
- package/esm2020/dialog/dialog.mjs +19 -14
- package/esm2020/dialog/dialog_public_index.mjs +5 -0
- package/esm2020/dialog/index.mjs +6 -2
- package/esm2020/listbox/index.mjs +6 -2
- package/esm2020/listbox/listbox-module.mjs +5 -5
- package/esm2020/listbox/listbox.mjs +24 -25
- package/esm2020/listbox/listbox_public_index.mjs +5 -0
- package/esm2020/menu/context-menu.mjs +9 -11
- package/esm2020/menu/index.mjs +6 -2
- package/esm2020/menu/menu-aim.mjs +7 -7
- package/esm2020/menu/menu-bar.mjs +4 -4
- package/esm2020/menu/menu-errors.mjs +1 -1
- package/esm2020/menu/menu-group.mjs +4 -4
- package/esm2020/menu/menu-item-checkbox.mjs +4 -4
- package/esm2020/menu/menu-item-radio.mjs +4 -4
- package/esm2020/menu/menu-item-selectable.mjs +4 -4
- package/esm2020/menu/menu-item-trigger.mjs +4 -4
- package/esm2020/menu/menu-item.mjs +4 -4
- package/esm2020/menu/menu-module.mjs +5 -5
- package/esm2020/menu/menu-panel.mjs +4 -4
- package/esm2020/menu/menu.mjs +4 -4
- package/esm2020/menu/menu_public_index.mjs +5 -0
- package/esm2020/menu/pointer-focus-tracker.mjs +1 -1
- package/esm2020/popover-edit/edit-event-dispatcher.mjs +11 -11
- package/esm2020/popover-edit/edit-ref.mjs +4 -4
- package/esm2020/popover-edit/edit-services.mjs +4 -4
- package/esm2020/popover-edit/focus-dispatcher.mjs +5 -5
- package/esm2020/popover-edit/focus-escape-notifier.mjs +4 -4
- package/esm2020/popover-edit/index.mjs +6 -2
- package/esm2020/popover-edit/lens-directives.mjs +11 -11
- package/esm2020/popover-edit/polyfill.mjs +8 -6
- package/esm2020/popover-edit/popover-edit-module.mjs +17 -17
- package/esm2020/popover-edit/popover-edit-position-strategy-factory.mjs +13 -10
- package/esm2020/popover-edit/popover-edit_public_index.mjs +5 -0
- package/esm2020/popover-edit/table-directives.mjs +50 -33
- package/esm2020/scrolling/auto-size-virtual-scroll.mjs +32 -22
- package/esm2020/scrolling/index.mjs +6 -2
- package/esm2020/scrolling/scrolling-module.mjs +5 -5
- package/esm2020/scrolling/scrolling_public_index.mjs +5 -0
- package/esm2020/selection/index.mjs +6 -2
- package/esm2020/selection/row-selection.mjs +10 -6
- package/esm2020/selection/select-all.mjs +5 -5
- package/esm2020/selection/selection-column.mjs +5 -5
- package/esm2020/selection/selection-module.mjs +8 -25
- package/esm2020/selection/selection-set.mjs +1 -1
- package/esm2020/selection/selection-toggle.mjs +11 -7
- package/esm2020/selection/selection.mjs +13 -12
- package/esm2020/selection/selection_public_index.mjs +5 -0
- package/esm2020/table-scroll-container/index.mjs +6 -2
- package/esm2020/table-scroll-container/table-scroll-container-module.mjs +5 -5
- package/esm2020/table-scroll-container/table-scroll-container.mjs +5 -9
- package/esm2020/table-scroll-container/table-scroll-container_public_index.mjs +5 -0
- package/esm2020/version.mjs +1 -1
- package/fesm2015/cdk-experimental.mjs +1 -1
- package/fesm2015/cdk-experimental.mjs.map +1 -1
- package/fesm2015/column-resize.mjs +122 -97
- package/fesm2015/column-resize.mjs.map +1 -1
- package/fesm2015/combobox.mjs +45 -25
- package/fesm2015/combobox.mjs.map +1 -1
- package/fesm2015/dialog.mjs +59 -46
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/listbox.mjs +34 -27
- package/fesm2015/listbox.mjs.map +1 -1
- package/fesm2015/menu.mjs +53 -47
- package/fesm2015/menu.mjs.map +1 -1
- package/fesm2015/popover-edit.mjs +122 -92
- package/fesm2015/popover-edit.mjs.map +1 -1
- package/fesm2015/scrolling.mjs +42 -24
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/selection.mjs +53 -53
- package/fesm2015/selection.mjs.map +1 -1
- package/fesm2015/table-scroll-container.mjs +16 -12
- package/fesm2015/table-scroll-container.mjs.map +1 -1
- package/fesm2020/cdk-experimental.mjs +1 -1
- package/fesm2020/cdk-experimental.mjs.map +1 -1
- package/fesm2020/column-resize.mjs +123 -98
- package/fesm2020/column-resize.mjs.map +1 -1
- package/fesm2020/combobox.mjs +45 -25
- package/fesm2020/combobox.mjs.map +1 -1
- package/fesm2020/dialog.mjs +59 -46
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/listbox.mjs +34 -27
- package/fesm2020/listbox.mjs.map +1 -1
- package/fesm2020/menu.mjs +53 -47
- package/fesm2020/menu.mjs.map +1 -1
- package/fesm2020/popover-edit.mjs +122 -92
- package/fesm2020/popover-edit.mjs.map +1 -1
- package/fesm2020/scrolling.mjs +42 -24
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/selection.mjs +53 -53
- package/fesm2020/selection.mjs.map +1 -1
- package/fesm2020/table-scroll-container.mjs +16 -12
- package/fesm2020/table-scroll-container.mjs.map +1 -1
- package/listbox/index.d.ts +5 -1
- package/listbox/listbox_public_index.d.ts +4 -0
- package/listbox/package.json +2 -2
- package/menu/index.d.ts +5 -1
- package/menu/menu_public_index.d.ts +4 -0
- package/menu/package.json +2 -2
- package/package.json +20 -20
- package/popover-edit/index.d.ts +5 -1
- package/popover-edit/package.json +2 -2
- package/popover-edit/popover-edit_public_index.d.ts +4 -0
- package/scrolling/index.d.ts +5 -1
- package/scrolling/package.json +2 -2
- package/scrolling/scrolling_public_index.d.ts +4 -0
- package/selection/index.d.ts +5 -1
- package/selection/package.json +2 -2
- package/selection/selection_public_index.d.ts +4 -0
- package/table-scroll-container/index.d.ts +5 -1
- package/table-scroll-container/package.json +2 -2
- package/table-scroll-container/table-scroll-container_public_index.d.ts +4 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.mjs","sources":["../../../../../../src/cdk-experimental/combobox/combobox.ts","../../../../../../src/cdk-experimental/combobox/combobox-panel.ts","../../../../../../src/cdk-experimental/combobox/combobox-popup.ts","../../../../../../src/cdk-experimental/combobox/combobox-module.ts","../../../../../../src/cdk-experimental/combobox/public-api.ts","../../../../../../src/cdk-experimental/combobox/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nexport type OpenAction = 'focus' | 'click' | 'downKey' | 'toggle';\nexport type OpenActionInput = OpenAction | OpenAction[] | string | null | undefined;\n\nimport {\n AfterContentInit,\n Directive,\n ElementRef,\n EventEmitter,\n Input,\n OnDestroy,\n Optional,\n Output, ViewContainerRef\n} from '@angular/core';\nimport {CdkComboboxPanel, AriaHasPopupValue} from './combobox-panel';\nimport {TemplatePortal} from '@angular/cdk/portal';\nimport {\n ConnectedPosition,\n FlexibleConnectedPositionStrategy,\n Overlay,\n OverlayConfig,\n OverlayRef\n} from '@angular/cdk/overlay';\nimport {Directionality} from '@angular/cdk/bidi';\nimport {BooleanInput, coerceBooleanProperty, coerceArray} from '@angular/cdk/coercion';\nimport {_getEventTarget} from '@angular/cdk/platform';\nimport {DOWN_ARROW, ENTER, ESCAPE, TAB} from '@angular/cdk/keycodes';\n\nconst allowedOpenActions = ['focus', 'click', 'downKey', 'toggle'];\n\n@Directive({\n selector: '[cdkCombobox]',\n exportAs: 'cdkCombobox',\n host: {\n 'role': 'combobox',\n 'class': 'cdk-combobox',\n '(click)': '_handleInteractions(\"click\")',\n '(focus)': '_handleInteractions(\"focus\")',\n '(keydown)': '_keydown($event)',\n '(document:click)': '_attemptClose($event)',\n '[attr.aria-disabled]': 'disabled',\n '[attr.aria-owns]': 'contentId',\n '[attr.aria-haspopup]': 'contentType',\n '[attr.aria-expanded]': 'isOpen()',\n '[attr.tabindex]': '_getTabIndex()'\n }\n})\nexport class CdkCombobox<T = unknown> implements OnDestroy, AfterContentInit {\n @Input('cdkComboboxTriggerFor')\n get panel(): CdkComboboxPanel<T> | undefined { return this._panel; }\n set panel(panel: CdkComboboxPanel<T> | undefined) { this._panel = panel; }\n private _panel: CdkComboboxPanel<T> | undefined;\n\n @Input()\n value: T | T[];\n\n @Input()\n get disabled(): boolean { return this._disabled; }\n set disabled(value: boolean) { this._disabled = coerceBooleanProperty(value); }\n private _disabled: boolean = false;\n\n @Input()\n get openActions(): OpenAction[] {\n return this._openActions;\n }\n set openActions(action: OpenAction[]) {\n this._openActions = this._coerceOpenActionProperty(action);\n }\n private _openActions: OpenAction[] = ['click'];\n\n /** Whether the textContent is automatically updated upon change of the combobox value. */\n @Input()\n get autoSetText(): boolean { return this._autoSetText; }\n set autoSetText(value: boolean) { this._autoSetText = coerceBooleanProperty(value); }\n private _autoSetText: boolean = true;\n\n @Output('comboboxPanelOpened') readonly opened: EventEmitter<void> = new EventEmitter<void>();\n @Output('comboboxPanelClosed') readonly closed: EventEmitter<void> = new EventEmitter<void>();\n @Output('panelValueChanged') readonly panelValueChanged: EventEmitter<T[]>\n = new EventEmitter<T[]>();\n\n private _overlayRef: OverlayRef;\n private _panelContent: TemplatePortal;\n contentId: string = '';\n contentType: AriaHasPopupValue;\n\n constructor(\n private readonly _elementRef: ElementRef<HTMLElement>,\n private readonly _overlay: Overlay,\n protected readonly _viewContainerRef: ViewContainerRef,\n @Optional() private readonly _directionality?: Directionality\n ) {}\n\n ngAfterContentInit() {\n this._panel?.valueUpdated.subscribe(data => {\n this._setComboboxValue(data);\n this.close();\n });\n\n this._panel?.contentIdUpdated.subscribe(id => {\n this.contentId = id;\n });\n\n this._panel?.contentTypeUpdated.subscribe(type => {\n this.contentType = type;\n });\n }\n\n ngOnDestroy() {\n if (this._overlayRef) {\n this._overlayRef.dispose();\n }\n\n this.opened.complete();\n this.closed.complete();\n this.panelValueChanged.complete();\n }\n\n _keydown(event: KeyboardEvent) {\n const {keyCode} = event;\n\n if (keyCode === DOWN_ARROW) {\n if (this.isOpen()) {\n this._panel?.focusContent();\n } else if (this._openActions.indexOf('downKey') !== -1) {\n this.open();\n }\n } else if (keyCode === ENTER) {\n if (this._openActions.indexOf('toggle') !== -1) {\n this.toggle();\n } else if (this._openActions.indexOf('click') !== -1) {\n this.open();\n }\n\n } else if (keyCode === ESCAPE) {\n event.preventDefault();\n this.close();\n } else if (keyCode === TAB) {\n this.close();\n }\n }\n\n /** Handles click or focus interactions. */\n _handleInteractions(interaction: OpenAction) {\n if (interaction === 'click') {\n if (this._openActions.indexOf('toggle') !== -1) {\n this.toggle();\n } else if (this._openActions.indexOf('click') !== -1) {\n this.open();\n }\n } else if (interaction === 'focus') {\n if (this._openActions.indexOf('focus') !== -1) {\n this.open();\n }\n }\n }\n\n /** Given a click in the document, determines if the click was inside a combobox. */\n _attemptClose(event: MouseEvent) {\n if (this.isOpen()) {\n let target = _getEventTarget(event);\n while (target instanceof Element) {\n if (target.className.indexOf('cdk-combobox') !== -1) {\n return;\n }\n target = target.parentElement;\n }\n }\n\n this.close();\n }\n\n /** Toggles the open state of the panel. */\n toggle() {\n if (this.hasPanel()) {\n this.isOpen() ? this.close() : this.open();\n }\n }\n\n /** If the combobox is closed and not disabled, opens the panel. */\n open() {\n if (!this.isOpen() && !this.disabled) {\n this.opened.next();\n this._overlayRef = this._overlayRef || this._overlay.create(this._getOverlayConfig());\n this._overlayRef.attach(this._getPanelContent());\n if (!this._isTextTrigger()) {\n this._panel?.focusContent();\n }\n }\n }\n\n /** If the combobox is open and not disabled, closes the panel. */\n close() {\n if (this.isOpen() && !this.disabled) {\n this.closed.next();\n this._overlayRef.detach();\n }\n }\n\n /** Returns true if panel is currently opened. */\n isOpen(): boolean {\n return this._overlayRef ? this._overlayRef.hasAttached() : false;\n }\n\n /** Returns true if combobox has a child panel. */\n hasPanel(): boolean {\n return !!this.panel;\n }\n\n _getTabIndex(): string | null {\n return this.disabled ? null : '0';\n }\n\n private _setComboboxValue(value: T | T[]) {\n\n const valueChanged = (this.value !== value);\n this.value = value;\n\n if (valueChanged) {\n this.panelValueChanged.emit(coerceArray(value));\n if (this._autoSetText) {\n this._setTextContent(value);\n }\n }\n }\n\n private _setTextContent(content: T | T[]) {\n const contentArray = coerceArray(content);\n this._elementRef.nativeElement.textContent = contentArray.join(' ');\n }\n\n private _isTextTrigger() {\n // TODO: Should check if the trigger is contenteditable.\n const tagName = this._elementRef.nativeElement.tagName.toLowerCase();\n return tagName === 'input' || tagName === 'textarea' ? true : false;\n }\n\n private _getOverlayConfig() {\n return new OverlayConfig({\n positionStrategy: this._getOverlayPositionStrategy(),\n scrollStrategy: this._overlay.scrollStrategies.block(),\n direction: this._directionality,\n });\n }\n\n private _getOverlayPositionStrategy(): FlexibleConnectedPositionStrategy {\n return this._overlay\n .position()\n .flexibleConnectedTo(this._elementRef)\n .withPositions(this._getOverlayPositions());\n }\n\n private _getOverlayPositions(): ConnectedPosition[] {\n return [\n {originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top'},\n {originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom'},\n {originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top'},\n {originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom'},\n ];\n }\n\n private _getPanelContent() {\n const hasPanelChanged = this._panel?._templateRef !== this._panelContent?.templateRef;\n if (this._panel && (!this._panel || hasPanelChanged)) {\n this._panelContent = new TemplatePortal(this._panel._templateRef, this._viewContainerRef);\n }\n\n return this._panelContent;\n }\n\n private _coerceOpenActionProperty(input: string | OpenAction[]): OpenAction[] {\n let actions = typeof input === 'string' ? input.trim().split(/[ ,]+/) : input;\n if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n actions.some(a => allowedOpenActions.indexOf(a) === -1)) {\n throw Error(`${input} is not a support open action for CdkCombobox`);\n }\n return actions as OpenAction[];\n }\n\n static ngAcceptInputType_openActions: OpenActionInput;\n static ngAcceptInputType_autoSetText: OpenActionInput;\n static ngAcceptInputType_disabled: BooleanInput;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport type AriaHasPopupValue = 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';\n\nimport {Directive, TemplateRef} from '@angular/core';\nimport {Subject} from 'rxjs';\n\n@Directive({\n host: {\n 'class': 'cdk-combobox-panel'\n },\n selector: 'ng-template[cdkComboboxPanel]',\n exportAs: 'cdkComboboxPanel',\n})\nexport class CdkComboboxPanel<T = unknown> {\n\n valueUpdated: Subject<T | T[]> = new Subject<T | T[]>();\n contentIdUpdated: Subject<string> = new Subject<string>();\n contentTypeUpdated: Subject<AriaHasPopupValue> = new Subject<AriaHasPopupValue>();\n\n contentId: string = '';\n contentType: AriaHasPopupValue;\n\n constructor(\n readonly _templateRef: TemplateRef<unknown>\n ) {}\n\n /** Tells the parent combobox to close the panel and sends back the content value. */\n closePanel(data?: T | T[]) {\n this.valueUpdated.next(data || []);\n }\n\n // TODO: instead of using a focus function, potentially use cdk/a11y focus trapping\n focusContent() {\n // TODO: Use an injected document here\n document.getElementById(this.contentId)?.focus();\n }\n\n /** Registers the content's id and the content type with the panel. */\n _registerContent(contentId: string, contentType: AriaHasPopupValue) {\n // If content has already been registered, no further contentIds are registered.\n if (this.contentType && this.contentType !== contentType) {\n return;\n }\n\n this.contentId = contentId;\n if (contentType !== 'listbox' && contentType !== 'dialog') {\n throw Error('CdkComboboxPanel currently only supports listbox or dialog content.');\n }\n this.contentType = contentType;\n\n this.contentIdUpdated.next(this.contentId);\n this.contentTypeUpdated.next(this.contentType);\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {\n Directive,\n ElementRef,\n Inject,\n InjectionToken,\n Input,\n OnInit,\n Optional} from '@angular/core';\nimport {AriaHasPopupValue, CdkComboboxPanel} from './combobox-panel';\n\nexport const PANEL = new InjectionToken<CdkComboboxPanel>('CdkComboboxPanel');\n\nlet nextId = 0;\n\n@Directive({\n selector: '[cdkComboboxPopup]',\n exportAs: 'cdkComboboxPopup',\n host: {\n 'class': 'cdk-combobox-popup',\n '[attr.role]': 'role',\n '[id]': 'id',\n 'tabindex': '-1',\n '(focus)': 'focusFirstElement()'\n }\n})\nexport class CdkComboboxPopup<T = unknown> implements OnInit {\n @Input()\n get role(): AriaHasPopupValue {\n return this._role;\n }\n set role(value: AriaHasPopupValue) {\n this._role = value;\n }\n private _role: AriaHasPopupValue = 'dialog';\n\n @Input()\n get firstFocus(): HTMLElement {\n return this._firstFocusElement;\n }\n set firstFocus(id: HTMLElement) {\n this._firstFocusElement = id;\n }\n private _firstFocusElement: HTMLElement;\n\n @Input() id = `cdk-combobox-popup-${nextId++}`;\n\n @Input('parentPanel') private readonly _explicitPanel: CdkComboboxPanel;\n\n constructor(\n private readonly _elementRef: ElementRef<HTMLElement>,\n @Optional() @Inject(PANEL) readonly _parentPanel?: CdkComboboxPanel<T>,\n ) { }\n\n ngOnInit() {\n this.registerWithPanel();\n }\n\n registerWithPanel(): void {\n if (this._parentPanel === null || this._parentPanel === undefined) {\n this._explicitPanel._registerContent(this.id, this._role);\n } else {\n this._parentPanel._registerContent(this.id, this._role);\n }\n }\n\n focusFirstElement() {\n if (this._firstFocusElement) {\n this._firstFocusElement.focus();\n } else {\n this._elementRef.nativeElement.focus();\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {NgModule} from '@angular/core';\nimport {OverlayModule} from '@angular/cdk/overlay';\nimport {CdkCombobox} from './combobox';\nimport {CdkComboboxPanel} from './combobox-panel';\nimport {CdkComboboxPopup} from './combobox-popup';\n\nconst EXPORTED_DECLARATIONS = [CdkCombobox, CdkComboboxPanel, CdkComboboxPopup];\n@NgModule({\n imports: [OverlayModule],\n exports: EXPORTED_DECLARATIONS,\n declarations: EXPORTED_DECLARATIONS,\n})\nexport class CdkComboboxModule {}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './combobox-module';\nexport * from './combobox';\nexport * from './combobox-panel';\nexport * from './combobox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aAAa,CAAC;oBACxB,OAAO,EAAE,qBAAqB;oBAC9B,YAAY,EAAE,qBAAqB;iBACpC;;;ACnBD;;;;;;;;ACAA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"combobox.mjs","sources":["../../../../../../src/cdk-experimental/combobox/combobox.ts","../../../../../../src/cdk-experimental/combobox/combobox-panel.ts","../../../../../../src/cdk-experimental/combobox/combobox-popup.ts","../../../../../../src/cdk-experimental/combobox/combobox-module.ts","../../../../../../src/cdk-experimental/combobox/public-api.ts","../../../../../../src/cdk-experimental/combobox/index.ts","../../../../../../src/cdk-experimental/combobox/combobox_public_index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport type OpenAction = 'focus' | 'click' | 'downKey' | 'toggle';\nexport type OpenActionInput = OpenAction | OpenAction[] | string | null | undefined;\n\nimport {\n AfterContentInit,\n Directive,\n ElementRef,\n EventEmitter,\n Input,\n OnDestroy,\n Optional,\n Output,\n ViewContainerRef,\n} from '@angular/core';\nimport {CdkComboboxPanel, AriaHasPopupValue} from './combobox-panel';\nimport {TemplatePortal} from '@angular/cdk/portal';\nimport {\n ConnectedPosition,\n FlexibleConnectedPositionStrategy,\n Overlay,\n OverlayConfig,\n OverlayRef,\n} from '@angular/cdk/overlay';\nimport {Directionality} from '@angular/cdk/bidi';\nimport {BooleanInput, coerceBooleanProperty, coerceArray} from '@angular/cdk/coercion';\nimport {_getEventTarget} from '@angular/cdk/platform';\nimport {DOWN_ARROW, ENTER, ESCAPE, TAB} from '@angular/cdk/keycodes';\n\nconst allowedOpenActions = ['focus', 'click', 'downKey', 'toggle'];\n\n@Directive({\n selector: '[cdkCombobox]',\n exportAs: 'cdkCombobox',\n host: {\n 'role': 'combobox',\n 'class': 'cdk-combobox',\n '(click)': '_handleInteractions(\"click\")',\n '(focus)': '_handleInteractions(\"focus\")',\n '(keydown)': '_keydown($event)',\n '(document:click)': '_attemptClose($event)',\n '[attr.aria-disabled]': 'disabled',\n '[attr.aria-owns]': 'contentId',\n '[attr.aria-haspopup]': 'contentType',\n '[attr.aria-expanded]': 'isOpen()',\n '[attr.tabindex]': '_getTabIndex()',\n },\n})\nexport class CdkCombobox<T = unknown> implements OnDestroy, AfterContentInit {\n @Input('cdkComboboxTriggerFor')\n get panel(): CdkComboboxPanel<T> | undefined {\n return this._panel;\n }\n set panel(panel: CdkComboboxPanel<T> | undefined) {\n this._panel = panel;\n }\n private _panel: CdkComboboxPanel<T> | undefined;\n\n @Input()\n value: T | T[];\n\n @Input()\n get disabled(): boolean {\n return this._disabled;\n }\n set disabled(value: boolean) {\n this._disabled = coerceBooleanProperty(value);\n }\n private _disabled: boolean = false;\n\n @Input()\n get openActions(): OpenAction[] {\n return this._openActions;\n }\n set openActions(action: OpenAction[]) {\n this._openActions = this._coerceOpenActionProperty(action);\n }\n private _openActions: OpenAction[] = ['click'];\n\n /** Whether the textContent is automatically updated upon change of the combobox value. */\n @Input()\n get autoSetText(): boolean {\n return this._autoSetText;\n }\n set autoSetText(value: boolean) {\n this._autoSetText = coerceBooleanProperty(value);\n }\n private _autoSetText: boolean = true;\n\n @Output('comboboxPanelOpened') readonly opened: EventEmitter<void> = new EventEmitter<void>();\n @Output('comboboxPanelClosed') readonly closed: EventEmitter<void> = new EventEmitter<void>();\n @Output('panelValueChanged') readonly panelValueChanged: EventEmitter<T[]> = new EventEmitter<\n T[]\n >();\n\n private _overlayRef: OverlayRef;\n private _panelContent: TemplatePortal;\n contentId: string = '';\n contentType: AriaHasPopupValue;\n\n constructor(\n private readonly _elementRef: ElementRef<HTMLElement>,\n private readonly _overlay: Overlay,\n protected readonly _viewContainerRef: ViewContainerRef,\n @Optional() private readonly _directionality?: Directionality,\n ) {}\n\n ngAfterContentInit() {\n this._panel?.valueUpdated.subscribe(data => {\n this._setComboboxValue(data);\n this.close();\n });\n\n this._panel?.contentIdUpdated.subscribe(id => {\n this.contentId = id;\n });\n\n this._panel?.contentTypeUpdated.subscribe(type => {\n this.contentType = type;\n });\n }\n\n ngOnDestroy() {\n if (this._overlayRef) {\n this._overlayRef.dispose();\n }\n\n this.opened.complete();\n this.closed.complete();\n this.panelValueChanged.complete();\n }\n\n _keydown(event: KeyboardEvent) {\n const {keyCode} = event;\n\n if (keyCode === DOWN_ARROW) {\n if (this.isOpen()) {\n this._panel?.focusContent();\n } else if (this._openActions.indexOf('downKey') !== -1) {\n this.open();\n }\n } else if (keyCode === ENTER) {\n if (this._openActions.indexOf('toggle') !== -1) {\n this.toggle();\n } else if (this._openActions.indexOf('click') !== -1) {\n this.open();\n }\n } else if (keyCode === ESCAPE) {\n event.preventDefault();\n this.close();\n } else if (keyCode === TAB) {\n this.close();\n }\n }\n\n /** Handles click or focus interactions. */\n _handleInteractions(interaction: OpenAction) {\n if (interaction === 'click') {\n if (this._openActions.indexOf('toggle') !== -1) {\n this.toggle();\n } else if (this._openActions.indexOf('click') !== -1) {\n this.open();\n }\n } else if (interaction === 'focus') {\n if (this._openActions.indexOf('focus') !== -1) {\n this.open();\n }\n }\n }\n\n /** Given a click in the document, determines if the click was inside a combobox. */\n _attemptClose(event: MouseEvent) {\n if (this.isOpen()) {\n let target = _getEventTarget(event);\n while (target instanceof Element) {\n if (target.className.indexOf('cdk-combobox') !== -1) {\n return;\n }\n target = target.parentElement;\n }\n }\n\n this.close();\n }\n\n /** Toggles the open state of the panel. */\n toggle() {\n if (this.hasPanel()) {\n this.isOpen() ? this.close() : this.open();\n }\n }\n\n /** If the combobox is closed and not disabled, opens the panel. */\n open() {\n if (!this.isOpen() && !this.disabled) {\n this.opened.next();\n this._overlayRef = this._overlayRef || this._overlay.create(this._getOverlayConfig());\n this._overlayRef.attach(this._getPanelContent());\n if (!this._isTextTrigger()) {\n this._panel?.focusContent();\n }\n }\n }\n\n /** If the combobox is open and not disabled, closes the panel. */\n close() {\n if (this.isOpen() && !this.disabled) {\n this.closed.next();\n this._overlayRef.detach();\n }\n }\n\n /** Returns true if panel is currently opened. */\n isOpen(): boolean {\n return this._overlayRef ? this._overlayRef.hasAttached() : false;\n }\n\n /** Returns true if combobox has a child panel. */\n hasPanel(): boolean {\n return !!this.panel;\n }\n\n _getTabIndex(): string | null {\n return this.disabled ? null : '0';\n }\n\n private _setComboboxValue(value: T | T[]) {\n const valueChanged = this.value !== value;\n this.value = value;\n\n if (valueChanged) {\n this.panelValueChanged.emit(coerceArray(value));\n if (this._autoSetText) {\n this._setTextContent(value);\n }\n }\n }\n\n private _setTextContent(content: T | T[]) {\n const contentArray = coerceArray(content);\n this._elementRef.nativeElement.textContent = contentArray.join(' ');\n }\n\n private _isTextTrigger() {\n // TODO: Should check if the trigger is contenteditable.\n const tagName = this._elementRef.nativeElement.tagName.toLowerCase();\n return tagName === 'input' || tagName === 'textarea' ? true : false;\n }\n\n private _getOverlayConfig() {\n return new OverlayConfig({\n positionStrategy: this._getOverlayPositionStrategy(),\n scrollStrategy: this._overlay.scrollStrategies.block(),\n direction: this._directionality,\n });\n }\n\n private _getOverlayPositionStrategy(): FlexibleConnectedPositionStrategy {\n return this._overlay\n .position()\n .flexibleConnectedTo(this._elementRef)\n .withPositions(this._getOverlayPositions());\n }\n\n private _getOverlayPositions(): ConnectedPosition[] {\n return [\n {originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top'},\n {originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom'},\n {originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top'},\n {originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom'},\n ];\n }\n\n private _getPanelContent() {\n const hasPanelChanged = this._panel?._templateRef !== this._panelContent?.templateRef;\n if (this._panel && (!this._panel || hasPanelChanged)) {\n this._panelContent = new TemplatePortal(this._panel._templateRef, this._viewContainerRef);\n }\n\n return this._panelContent;\n }\n\n private _coerceOpenActionProperty(input: string | OpenAction[]): OpenAction[] {\n let actions = typeof input === 'string' ? input.trim().split(/[ ,]+/) : input;\n if (\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n actions.some(a => allowedOpenActions.indexOf(a) === -1)\n ) {\n throw Error(`${input} is not a support open action for CdkCombobox`);\n }\n return actions as OpenAction[];\n }\n\n static ngAcceptInputType_openActions: OpenActionInput;\n static ngAcceptInputType_autoSetText: OpenActionInput;\n static ngAcceptInputType_disabled: BooleanInput;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport type AriaHasPopupValue = 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';\n\nimport {Directive, TemplateRef} from '@angular/core';\nimport {Subject} from 'rxjs';\n\n@Directive({\n host: {\n 'class': 'cdk-combobox-panel',\n },\n selector: 'ng-template[cdkComboboxPanel]',\n exportAs: 'cdkComboboxPanel',\n})\nexport class CdkComboboxPanel<T = unknown> {\n valueUpdated: Subject<T | T[]> = new Subject<T | T[]>();\n contentIdUpdated: Subject<string> = new Subject<string>();\n contentTypeUpdated: Subject<AriaHasPopupValue> = new Subject<AriaHasPopupValue>();\n\n contentId: string = '';\n contentType: AriaHasPopupValue;\n\n constructor(readonly _templateRef: TemplateRef<unknown>) {}\n\n /** Tells the parent combobox to close the panel and sends back the content value. */\n closePanel(data?: T | T[]) {\n this.valueUpdated.next(data || []);\n }\n\n // TODO: instead of using a focus function, potentially use cdk/a11y focus trapping\n focusContent() {\n // TODO: Use an injected document here\n document.getElementById(this.contentId)?.focus();\n }\n\n /** Registers the content's id and the content type with the panel. */\n _registerContent(contentId: string, contentType: AriaHasPopupValue) {\n // If content has already been registered, no further contentIds are registered.\n if (this.contentType && this.contentType !== contentType) {\n return;\n }\n\n this.contentId = contentId;\n if (contentType !== 'listbox' && contentType !== 'dialog') {\n throw Error('CdkComboboxPanel currently only supports listbox or dialog content.');\n }\n this.contentType = contentType;\n\n this.contentIdUpdated.next(this.contentId);\n this.contentTypeUpdated.next(this.contentType);\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {\n Directive,\n ElementRef,\n Inject,\n InjectionToken,\n Input,\n OnInit,\n Optional,\n} from '@angular/core';\nimport {AriaHasPopupValue, CdkComboboxPanel} from './combobox-panel';\n\nexport const PANEL = new InjectionToken<CdkComboboxPanel>('CdkComboboxPanel');\n\nlet nextId = 0;\n\n@Directive({\n selector: '[cdkComboboxPopup]',\n exportAs: 'cdkComboboxPopup',\n host: {\n 'class': 'cdk-combobox-popup',\n '[attr.role]': 'role',\n '[id]': 'id',\n 'tabindex': '-1',\n '(focus)': 'focusFirstElement()',\n },\n})\nexport class CdkComboboxPopup<T = unknown> implements OnInit {\n @Input()\n get role(): AriaHasPopupValue {\n return this._role;\n }\n set role(value: AriaHasPopupValue) {\n this._role = value;\n }\n private _role: AriaHasPopupValue = 'dialog';\n\n @Input()\n get firstFocus(): HTMLElement {\n return this._firstFocusElement;\n }\n set firstFocus(id: HTMLElement) {\n this._firstFocusElement = id;\n }\n private _firstFocusElement: HTMLElement;\n\n @Input() id = `cdk-combobox-popup-${nextId++}`;\n\n @Input('parentPanel') private readonly _explicitPanel: CdkComboboxPanel;\n\n constructor(\n private readonly _elementRef: ElementRef<HTMLElement>,\n @Optional() @Inject(PANEL) readonly _parentPanel?: CdkComboboxPanel<T>,\n ) {}\n\n ngOnInit() {\n this.registerWithPanel();\n }\n\n registerWithPanel(): void {\n if (this._parentPanel === null || this._parentPanel === undefined) {\n this._explicitPanel._registerContent(this.id, this._role);\n } else {\n this._parentPanel._registerContent(this.id, this._role);\n }\n }\n\n focusFirstElement() {\n if (this._firstFocusElement) {\n this._firstFocusElement.focus();\n } else {\n this._elementRef.nativeElement.focus();\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {NgModule} from '@angular/core';\nimport {OverlayModule} from '@angular/cdk/overlay';\nimport {CdkCombobox} from './combobox';\nimport {CdkComboboxPanel} from './combobox-panel';\nimport {CdkComboboxPopup} from './combobox-popup';\n\nconst EXPORTED_DECLARATIONS = [CdkCombobox, CdkComboboxPanel, CdkComboboxPopup];\n@NgModule({\n imports: [OverlayModule],\n exports: EXPORTED_DECLARATIONS,\n declarations: EXPORTED_DECLARATIONS,\n})\nexport class CdkComboboxModule {}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './combobox-module';\nexport * from './combobox';\nexport * from './combobox-panel';\nexport * from './combobox-popup';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './public-api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAoCA,MAAM,kBAAkB,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;MAmBtD,WAAW;IAoDtB,YACmB,WAAoC,EACpC,QAAiB,EACf,iBAAmC,EACzB,eAAgC;QAH5C,gBAAW,GAAX,WAAW,CAAyB;QACpC,aAAQ,GAAR,QAAQ,CAAS;QACf,sBAAiB,GAAjB,iBAAiB,CAAkB;QACzB,oBAAe,GAAf,eAAe,CAAiB;QApCvD,cAAS,GAAY,KAAK,CAAC;QAS3B,iBAAY,GAAiB,CAAC,OAAO,CAAC,CAAC;QAUvC,iBAAY,GAAY,IAAI,CAAC;QAEG,WAAM,GAAuB,IAAI,YAAY,EAAQ,CAAC;QACtD,WAAM,GAAuB,IAAI,YAAY,EAAQ,CAAC;QACxD,sBAAiB,GAAsB,IAAI,YAAY,EAE1F,CAAC;QAIJ,cAAS,GAAW,EAAE,CAAC;KAQnB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IAAI;wBAChB,SAAS,EAAE,qBAAqB;qBACjC;iBACF;;;8BA0BI,QAAQ;;8BAAI,MAAM;+BAAC,KAAK;;yBAvBvB,IAAI;sBADP,KAAK;gBAUF,UAAU;sBADb,KAAK;gBASG,EAAE;sBAAV,KAAK;gBAEiC,cAAc;sBAApD,KAAK;uBAAC,aAAa;;;ACvDtB;;;;;;;AAcA,MAAM,qBAAqB,GAAG,CAAC,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;MAMnE,iBAAiB;;mHAAjB,iBAAiB;oHAAjB,iBAAiB,iBANC,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,aAElE,aAAa,aAFM,WAAW,EAAE,gBAAgB,EAAE,gBAAgB;oHAMjE,iBAAiB,YAJnB,CAAC,aAAa,CAAC;gGAIb,iBAAiB;kBAL7B,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,aAAa,CAAC;oBACxB,OAAO,EAAE,qBAAqB;oBAC9B,YAAY,EAAE,qBAAqB;iBACpC;;;ACnBD;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;"}
|
package/fesm2015/dialog.mjs
CHANGED
|
@@ -116,9 +116,11 @@ class CdkDialogContainer extends BasePortalOutlet {
|
|
|
116
116
|
// We use a Subject with a distinctUntilChanged, rather than a callback attached to .done,
|
|
117
117
|
// because some browsers fire the done event twice and we don't want to emit duplicate events.
|
|
118
118
|
// See: https://github.com/angular/angular/issues/24084
|
|
119
|
-
this._animationDone
|
|
119
|
+
this._animationDone
|
|
120
|
+
.pipe(distinctUntilChanged((x, y) => {
|
|
120
121
|
return x.fromState === y.fromState && x.toState === y.toState;
|
|
121
|
-
}))
|
|
122
|
+
}))
|
|
123
|
+
.subscribe(event => {
|
|
122
124
|
// Emit lifecycle events based on animation `done` callback.
|
|
123
125
|
if (event.toState === 'enter') {
|
|
124
126
|
this._autoFocus();
|
|
@@ -136,10 +138,18 @@ class CdkDialogContainer extends BasePortalOutlet {
|
|
|
136
138
|
// metadata is not inherited by child classes, instead the host binding data is defined in a way
|
|
137
139
|
// that can be inherited.
|
|
138
140
|
// tslint:disable:no-host-decorator-in-concrete no-private-getters
|
|
139
|
-
get _ariaLabel() {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
get
|
|
141
|
+
get _ariaLabel() {
|
|
142
|
+
return this._config.ariaLabel || null;
|
|
143
|
+
}
|
|
144
|
+
get _ariaDescribedBy() {
|
|
145
|
+
return this._config.ariaDescribedBy;
|
|
146
|
+
}
|
|
147
|
+
get _role() {
|
|
148
|
+
return this._config.role;
|
|
149
|
+
}
|
|
150
|
+
get _tabindex() {
|
|
151
|
+
return -1;
|
|
152
|
+
}
|
|
143
153
|
/** Initializes the dialog container with the attached content. */
|
|
144
154
|
_initializeWithAttachedContent() {
|
|
145
155
|
// Save the previously focused element. This element will be re-focused
|
|
@@ -257,8 +267,7 @@ class CdkDialogContainer extends BasePortalOutlet {
|
|
|
257
267
|
break;
|
|
258
268
|
case true:
|
|
259
269
|
case 'first-tabbable':
|
|
260
|
-
this._focusTrap.focusInitialElementWhenReady()
|
|
261
|
-
.then(hasMovedFocus => {
|
|
270
|
+
this._focusTrap.focusInitialElementWhenReady().then(hasMovedFocus => {
|
|
262
271
|
if (!hasMovedFocus) {
|
|
263
272
|
element.focus();
|
|
264
273
|
}
|
|
@@ -283,23 +292,25 @@ class CdkDialogContainer extends BasePortalOutlet {
|
|
|
283
292
|
// non-focusable element like the backdrop was clicked) before moving it. It's possible that
|
|
284
293
|
// the consumer moved it themselves before the animation was done, in which case we shouldn't
|
|
285
294
|
// do anything.
|
|
286
|
-
if (!activeElement ||
|
|
295
|
+
if (!activeElement ||
|
|
296
|
+
activeElement === this._document.body ||
|
|
297
|
+
activeElement === element ||
|
|
287
298
|
element.contains(activeElement)) {
|
|
288
299
|
toFocus.focus();
|
|
289
300
|
}
|
|
290
301
|
}
|
|
291
302
|
}
|
|
292
303
|
}
|
|
293
|
-
CdkDialogContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
294
|
-
CdkDialogContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
304
|
+
CdkDialogContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkDialogContainer, deps: [{ token: i0.ElementRef }, { token: i1.FocusTrapFactory }, { token: i0.ChangeDetectorRef }, { token: i1.InteractivityChecker }, { token: i0.NgZone }, { token: DOCUMENT, optional: true }, { token: DialogConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
305
|
+
CdkDialogContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkDialogContainer, selector: "cdk-dialog-container", host: { listeners: { "@dialog.start": "_onAnimationStart($event)", "@dialog.done": "_animationDone.next($event)" }, properties: { "@dialog": "{\n value: _state,\n params: {\n enterAnimationDuration: _config.enterAnimationDuration,\n exitAnimationDuration: _config.exitAnimationDuration\n }\n }", "attr.aria-label": "this._ariaLabel", "attr.aria-describedby": "this._ariaDescribedBy", "attr.role": "this._role", "attr.aria-modal": "this._ariaModal", "attr.tabindex": "this._tabindex" } }, viewQueries: [{ propertyName: "_portalHost", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-template cdkPortalOutlet></ng-template>\n", styles: ["cdk-dialog-container{background:#fff;border-radius:5px;display:block;padding:10px}\n"], directives: [{ type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [
|
|
295
306
|
trigger('dialog', [
|
|
296
307
|
state('enter', style({ opacity: 1 })),
|
|
297
308
|
state('exit, void', style({ opacity: 0 })),
|
|
298
309
|
transition('* => enter', animate('{{enterAnimationDuration}}')),
|
|
299
310
|
transition('* => exit, * => void', animate('{{exitAnimationDuration}}')),
|
|
300
|
-
])
|
|
311
|
+
]),
|
|
301
312
|
], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
302
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
313
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkDialogContainer, decorators: [{
|
|
303
314
|
type: Component,
|
|
304
315
|
args: [{ selector: 'cdk-dialog-container', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, animations: [
|
|
305
316
|
trigger('dialog', [
|
|
@@ -307,7 +318,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
307
318
|
state('exit, void', style({ opacity: 0 })),
|
|
308
319
|
transition('* => enter', animate('{{enterAnimationDuration}}')),
|
|
309
320
|
transition('* => exit, * => void', animate('{{exitAnimationDuration}}')),
|
|
310
|
-
])
|
|
321
|
+
]),
|
|
311
322
|
], host: {
|
|
312
323
|
'[@dialog]': `{
|
|
313
324
|
value: _state,
|
|
@@ -380,7 +391,8 @@ class DialogRef {
|
|
|
380
391
|
this.componentInstance = null;
|
|
381
392
|
});
|
|
382
393
|
// Close when escape keydown event occurs
|
|
383
|
-
_overlayRef
|
|
394
|
+
_overlayRef
|
|
395
|
+
.keydownEvents()
|
|
384
396
|
.pipe(filter(event => {
|
|
385
397
|
return event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event);
|
|
386
398
|
}))
|
|
@@ -508,8 +520,9 @@ class Dialog {
|
|
|
508
520
|
this._parentDialog = _parentDialog;
|
|
509
521
|
this._afterAllClosedBase = new Subject();
|
|
510
522
|
// TODO(jelbourn): tighten the type on the right-hand side of this expression.
|
|
511
|
-
this.afterAllClosed = defer(() => this.openDialogs.length
|
|
512
|
-
|
|
523
|
+
this.afterAllClosed = defer(() => this.openDialogs.length
|
|
524
|
+
? this._getAfterAllClosed()
|
|
525
|
+
: this._getAfterAllClosed().pipe(startWith(undefined)));
|
|
513
526
|
this._afterOpened = new Subject();
|
|
514
527
|
this._openDialogs = [];
|
|
515
528
|
// Close all of the dialogs when the user goes forwards/backwards in history or when the
|
|
@@ -605,7 +618,7 @@ class Dialog {
|
|
|
605
618
|
minWidth: config.minWidth,
|
|
606
619
|
minHeight: config.minHeight,
|
|
607
620
|
maxWidth: config.maxWidth,
|
|
608
|
-
maxHeight: config.maxHeight
|
|
621
|
+
maxHeight: config.maxHeight,
|
|
609
622
|
});
|
|
610
623
|
if (config.backdropClass) {
|
|
611
624
|
overlayConfig.backdropClass = config.backdropClass;
|
|
@@ -623,7 +636,7 @@ class Dialog {
|
|
|
623
636
|
const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
|
|
624
637
|
const injector = Injector.create({
|
|
625
638
|
parent: userInjector || this._injector,
|
|
626
|
-
providers: [{ provide: DialogConfig, useValue: config }]
|
|
639
|
+
providers: [{ provide: DialogConfig, useValue: config }],
|
|
627
640
|
});
|
|
628
641
|
const containerPortal = new ComponentPortal(container, config.viewContainerRef, injector);
|
|
629
642
|
const containerRef = overlay.attach(containerPortal);
|
|
@@ -661,7 +674,10 @@ class Dialog {
|
|
|
661
674
|
// Create a reference to the dialog we're creating in order to give the user a handle
|
|
662
675
|
// to modify and close it.
|
|
663
676
|
const dialogRef = this._createDialogRef(overlayRef, dialogContainer, config);
|
|
664
|
-
dialogContainer.attachTemplatePortal(new TemplatePortal(componentOrTemplateRef, null, {
|
|
677
|
+
dialogContainer.attachTemplatePortal(new TemplatePortal(componentOrTemplateRef, null, {
|
|
678
|
+
$implicit: config.data,
|
|
679
|
+
dialogRef,
|
|
680
|
+
}));
|
|
665
681
|
return dialogRef;
|
|
666
682
|
}
|
|
667
683
|
/**
|
|
@@ -677,13 +693,14 @@ class Dialog {
|
|
|
677
693
|
const providers = [
|
|
678
694
|
{ provide: this._injector.get(DIALOG_REF), useValue: dialogRef },
|
|
679
695
|
{ provide: this._injector.get(DIALOG_CONTAINER), useValue: dialogContainer },
|
|
680
|
-
{ provide: DIALOG_DATA, useValue: config.data }
|
|
696
|
+
{ provide: DIALOG_DATA, useValue: config.data },
|
|
681
697
|
];
|
|
682
|
-
if (config.direction &&
|
|
683
|
-
!userInjector
|
|
698
|
+
if (config.direction &&
|
|
699
|
+
(!userInjector ||
|
|
700
|
+
!userInjector.get(Directionality, null, InjectFlags.Optional))) {
|
|
684
701
|
providers.push({
|
|
685
702
|
provide: Directionality,
|
|
686
|
-
useValue: { value: config.direction, change: of() }
|
|
703
|
+
useValue: { value: config.direction, change: of() },
|
|
687
704
|
});
|
|
688
705
|
}
|
|
689
706
|
return Injector.create({ parent: userInjector || this._injector, providers });
|
|
@@ -704,9 +721,9 @@ class Dialog {
|
|
|
704
721
|
return Object.assign(Object.assign({}, new dialogConfig()), config);
|
|
705
722
|
}
|
|
706
723
|
}
|
|
707
|
-
Dialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
708
|
-
Dialog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
709
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
724
|
+
Dialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: Dialog, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }, { token: DIALOG_REF }, { token: DIALOG_SCROLL_STRATEGY }, { token: Dialog, optional: true, skipSelf: true }, { token: i2.Location, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
725
|
+
Dialog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: Dialog });
|
|
726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: Dialog, decorators: [{
|
|
710
727
|
type: Injectable
|
|
711
728
|
}], ctorParameters: function () {
|
|
712
729
|
return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: i0.Type, decorators: [{
|
|
@@ -733,46 +750,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
733
750
|
*/
|
|
734
751
|
class DialogModule {
|
|
735
752
|
}
|
|
736
|
-
DialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
737
|
-
DialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-
|
|
738
|
-
PortalModule,
|
|
739
|
-
A11yModule], exports: [
|
|
753
|
+
DialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
754
|
+
DialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DialogModule, declarations: [CdkDialogContainer], imports: [OverlayModule, PortalModule, A11yModule], exports: [
|
|
740
755
|
// Re-export the PortalModule so that people extending the `CdkDialogContainer`
|
|
741
756
|
// don't have to remember to import it or be faced with an unhelpful error.
|
|
742
757
|
PortalModule,
|
|
743
758
|
CdkDialogContainer
|
|
744
759
|
] });
|
|
745
|
-
DialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-
|
|
760
|
+
DialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DialogModule, providers: [
|
|
746
761
|
Dialog,
|
|
747
762
|
MAT_DIALOG_SCROLL_STRATEGY_PROVIDER,
|
|
748
763
|
{ provide: DIALOG_REF, useValue: DialogRef },
|
|
749
764
|
{ provide: DIALOG_CONTAINER, useValue: CdkDialogContainer },
|
|
750
765
|
{ provide: DIALOG_CONFIG, useValue: DialogConfig },
|
|
751
|
-
], imports: [[
|
|
752
|
-
OverlayModule,
|
|
753
|
-
PortalModule,
|
|
754
|
-
A11yModule,
|
|
755
|
-
],
|
|
766
|
+
], imports: [[OverlayModule, PortalModule, A11yModule],
|
|
756
767
|
// Re-export the PortalModule so that people extending the `CdkDialogContainer`
|
|
757
768
|
// don't have to remember to import it or be faced with an unhelpful error.
|
|
758
769
|
PortalModule] });
|
|
759
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
770
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DialogModule, decorators: [{
|
|
760
771
|
type: NgModule,
|
|
761
772
|
args: [{
|
|
762
|
-
imports: [
|
|
763
|
-
OverlayModule,
|
|
764
|
-
PortalModule,
|
|
765
|
-
A11yModule,
|
|
766
|
-
],
|
|
773
|
+
imports: [OverlayModule, PortalModule, A11yModule],
|
|
767
774
|
exports: [
|
|
768
775
|
// Re-export the PortalModule so that people extending the `CdkDialogContainer`
|
|
769
776
|
// don't have to remember to import it or be faced with an unhelpful error.
|
|
770
777
|
PortalModule,
|
|
771
778
|
CdkDialogContainer,
|
|
772
779
|
],
|
|
773
|
-
declarations: [
|
|
774
|
-
CdkDialogContainer,
|
|
775
|
-
],
|
|
780
|
+
declarations: [CdkDialogContainer],
|
|
776
781
|
providers: [
|
|
777
782
|
Dialog,
|
|
778
783
|
MAT_DIALOG_SCROLL_STRATEGY_PROVIDER,
|
|
@@ -792,6 +797,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
792
797
|
* found in the LICENSE file at https://angular.io/license
|
|
793
798
|
*/
|
|
794
799
|
|
|
800
|
+
/**
|
|
801
|
+
* @license
|
|
802
|
+
* Copyright Google LLC All Rights Reserved.
|
|
803
|
+
*
|
|
804
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
805
|
+
* found in the LICENSE file at https://angular.io/license
|
|
806
|
+
*/
|
|
807
|
+
|
|
795
808
|
/**
|
|
796
809
|
* Generated bundle index. Do not edit.
|
|
797
810
|
*/
|