@angular/cdk-experimental 16.0.0-next.3 → 16.0.0-next.5
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/combobox/index.d.ts +2 -2
- package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
- package/esm2020/column-resize/column-resize-directives/column-resize.mjs +3 -3
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +3 -3
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +3 -3
- package/esm2020/column-resize/column-resize-module.mjs +8 -8
- package/esm2020/column-resize/column-resize-notifier.mjs +6 -6
- package/esm2020/column-resize/column-resize.mjs +3 -3
- package/esm2020/column-resize/column-size-store.mjs +3 -3
- package/esm2020/column-resize/event-dispatcher.mjs +3 -3
- package/esm2020/column-resize/overlay-handle.mjs +3 -3
- package/esm2020/column-resize/resizable.mjs +3 -3
- package/esm2020/column-resize/resize-strategy.mjs +9 -9
- package/esm2020/combobox/combobox-module.mjs +4 -4
- package/esm2020/combobox/combobox-popup.mjs +3 -3
- package/esm2020/combobox/combobox.mjs +3 -3
- package/esm2020/popover-edit/edit-event-dispatcher.mjs +3 -3
- package/esm2020/popover-edit/edit-ref.mjs +3 -3
- package/esm2020/popover-edit/edit-services.mjs +3 -3
- package/esm2020/popover-edit/focus-dispatcher.mjs +3 -3
- package/esm2020/popover-edit/focus-escape-notifier.mjs +3 -3
- package/esm2020/popover-edit/lens-directives.mjs +9 -9
- package/esm2020/popover-edit/popover-edit-module.mjs +4 -4
- package/esm2020/popover-edit/popover-edit-position-strategy-factory.mjs +6 -6
- package/esm2020/popover-edit/table-directives.mjs +18 -19
- package/esm2020/scrolling/auto-size-virtual-scroll.mjs +3 -3
- package/esm2020/scrolling/scrolling-module.mjs +4 -4
- package/esm2020/selection/row-selection.mjs +3 -3
- package/esm2020/selection/select-all.mjs +6 -15
- package/esm2020/selection/selection-column.mjs +3 -3
- package/esm2020/selection/selection-module.mjs +4 -4
- package/esm2020/selection/selection-toggle.mjs +5 -6
- package/esm2020/selection/selection.mjs +3 -3
- package/esm2020/table-scroll-container/table-scroll-container-module.mjs +4 -4
- package/esm2020/table-scroll-container/table-scroll-container.mjs +3 -3
- package/esm2020/version.mjs +1 -1
- package/fesm2015/cdk-experimental.mjs +1 -24
- package/fesm2015/cdk-experimental.mjs.map +1 -1
- package/fesm2015/column-resize.mjs +50 -171
- package/fesm2015/column-resize.mjs.map +1 -1
- package/fesm2015/combobox.mjs +10 -47
- package/fesm2015/combobox.mjs.map +1 -1
- package/fesm2015/popover-edit.mjs +52 -131
- package/fesm2015/popover-edit.mjs.map +1 -1
- package/fesm2015/scrolling.mjs +7 -37
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/selection.mjs +22 -97
- package/fesm2015/selection.mjs.map +1 -1
- package/fesm2015/table-scroll-container.mjs +7 -37
- package/fesm2015/table-scroll-container.mjs.map +1 -1
- package/fesm2020/cdk-experimental.mjs +1 -24
- package/fesm2020/cdk-experimental.mjs.map +1 -1
- package/fesm2020/column-resize.mjs +50 -171
- package/fesm2020/column-resize.mjs.map +1 -1
- package/fesm2020/combobox.mjs +10 -47
- package/fesm2020/combobox.mjs.map +1 -1
- package/fesm2020/popover-edit.mjs +51 -145
- package/fesm2020/popover-edit.mjs.map +1 -1
- package/fesm2020/scrolling.mjs +7 -37
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/selection.mjs +22 -97
- package/fesm2020/selection.mjs.map +1 -1
- package/fesm2020/table-scroll-container.mjs +7 -37
- package/fesm2020/table-scroll-container.mjs.map +1 -1
- package/package.json +2 -2
- package/popover-edit/index.d.ts +4 -4
- package/scrolling/index.d.ts +1 -1
- package/selection/index.d.ts +4 -4
|
@@ -5,13 +5,6 @@ import { _getShadowRoot } from '@angular/cdk/platform';
|
|
|
5
5
|
import { STICKY_POSITIONING_LISTENER } from '@angular/cdk/table';
|
|
6
6
|
import * as i1 from '@angular/cdk/bidi';
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* @license
|
|
10
|
-
* Copyright Google LLC All Rights Reserved.
|
|
11
|
-
*
|
|
12
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
13
|
-
* found in the LICENSE file at https://angular.io/license
|
|
14
|
-
*/
|
|
15
8
|
let nextId = 0;
|
|
16
9
|
/**
|
|
17
10
|
* Applies styles to the host element that make its scrollbars match up with
|
|
@@ -103,9 +96,9 @@ class CdkTableScrollContainer {
|
|
|
103
96
|
}
|
|
104
97
|
}
|
|
105
98
|
}
|
|
106
|
-
CdkTableScrollContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
107
|
-
CdkTableScrollContainer.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
99
|
+
CdkTableScrollContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkTableScrollContainer, deps: [{ token: i0.ElementRef }, { token: DOCUMENT }, { token: i1.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
100
|
+
CdkTableScrollContainer.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkTableScrollContainer, selector: "[cdkTableScrollContainer]", host: { classAttribute: "cdk-table-scroll-container" }, providers: [{ provide: STICKY_POSITIONING_LISTENER, useExisting: CdkTableScrollContainer }], ngImport: i0 });
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkTableScrollContainer, decorators: [{
|
|
109
102
|
type: Directive,
|
|
110
103
|
args: [{
|
|
111
104
|
selector: '[cdkTableScrollContainer]',
|
|
@@ -133,19 +126,12 @@ function computeMargin(sizes) {
|
|
|
133
126
|
return margin;
|
|
134
127
|
}
|
|
135
128
|
|
|
136
|
-
/**
|
|
137
|
-
* @license
|
|
138
|
-
* Copyright Google LLC All Rights Reserved.
|
|
139
|
-
*
|
|
140
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
141
|
-
* found in the LICENSE file at https://angular.io/license
|
|
142
|
-
*/
|
|
143
129
|
class CdkTableScrollContainerModule {
|
|
144
130
|
}
|
|
145
|
-
CdkTableScrollContainerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
146
|
-
CdkTableScrollContainerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
147
|
-
CdkTableScrollContainerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
148
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
131
|
+
CdkTableScrollContainerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkTableScrollContainerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
132
|
+
CdkTableScrollContainerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkTableScrollContainerModule, declarations: [CdkTableScrollContainer], exports: [CdkTableScrollContainer] });
|
|
133
|
+
CdkTableScrollContainerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkTableScrollContainerModule });
|
|
134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkTableScrollContainerModule, decorators: [{
|
|
149
135
|
type: NgModule,
|
|
150
136
|
args: [{
|
|
151
137
|
declarations: [CdkTableScrollContainer],
|
|
@@ -153,22 +139,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
153
139
|
}]
|
|
154
140
|
}] });
|
|
155
141
|
|
|
156
|
-
/**
|
|
157
|
-
* @license
|
|
158
|
-
* Copyright Google LLC All Rights Reserved.
|
|
159
|
-
*
|
|
160
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
161
|
-
* found in the LICENSE file at https://angular.io/license
|
|
162
|
-
*/
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* @license
|
|
166
|
-
* Copyright Google LLC All Rights Reserved.
|
|
167
|
-
*
|
|
168
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
169
|
-
* found in the LICENSE file at https://angular.io/license
|
|
170
|
-
*/
|
|
171
|
-
|
|
172
142
|
/**
|
|
173
143
|
* Generated bundle index. Do not edit.
|
|
174
144
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-scroll-container.mjs","sources":["../../../../../../src/cdk-experimental/table-scroll-container/table-scroll-container.ts","../../../../../../src/cdk-experimental/table-scroll-container/table-scroll-container-module.ts","../../../../../../src/cdk-experimental/table-scroll-container/public-api.ts","../../../../../../src/cdk-experimental/table-scroll-container/index.ts","../../../../../../src/cdk-experimental/table-scroll-container/table-scroll-container_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\nimport {Directive, ElementRef, Inject, OnDestroy, OnInit, Optional} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {Directionality} from '@angular/cdk/bidi';\nimport {_getShadowRoot} from '@angular/cdk/platform';\nimport {\n STICKY_POSITIONING_LISTENER,\n StickyPositioningListener,\n StickySize,\n StickyUpdate,\n} from '@angular/cdk/table';\n\nlet nextId = 0;\n\n/**\n * Applies styles to the host element that make its scrollbars match up with\n * the non-sticky scrollable portions of the CdkTable contained within.\n *\n * This visual effect only works in Webkit and Blink based browsers (eg Chrome,\n * Safari, Edge). Other browsers such as Firefox will gracefully degrade to\n * normal scrollbar appearance.\n * Further note: These styles have no effect when the browser is using OS-default\n * scrollbars. The easiest way to force them into custom mode is to specify width\n * and height for the scrollbar and thumb.\n */\n@Directive({\n selector: '[cdkTableScrollContainer]',\n host: {\n 'class': 'cdk-table-scroll-container',\n },\n providers: [{provide: STICKY_POSITIONING_LISTENER, useExisting: CdkTableScrollContainer}],\n})\nexport class CdkTableScrollContainer implements StickyPositioningListener, OnDestroy, OnInit {\n private readonly _uniqueClassName: string;\n private _styleRoot!: Node;\n private _styleElement?: HTMLStyleElement;\n\n /** The most recent sticky column size values from the CdkTable. */\n private _startSizes: StickySize[] = [];\n private _endSizes: StickySize[] = [];\n private _headerSizes: StickySize[] = [];\n private _footerSizes: StickySize[] = [];\n\n constructor(\n private readonly _elementRef: ElementRef<HTMLElement>,\n @Inject(DOCUMENT) private readonly _document: Document,\n @Optional() private readonly _directionality?: Directionality,\n ) {\n this._uniqueClassName = `cdk-table-scroll-container-${++nextId}`;\n _elementRef.nativeElement.classList.add(this._uniqueClassName);\n }\n\n ngOnInit() {\n // Note that we need to look up the root node in ngOnInit, rather than the constructor, because\n // Angular seems to create the element outside the shadow root and then moves it inside, if the\n // node is inside an `ngIf` and a ShadowDom-encapsulated component.\n this._styleRoot = _getShadowRoot(this._elementRef.nativeElement) ?? this._document.head;\n }\n\n ngOnDestroy(): void {\n this._styleElement?.remove();\n this._styleElement = undefined;\n }\n\n stickyColumnsUpdated({sizes}: StickyUpdate): void {\n this._startSizes = sizes;\n this._updateScrollbar();\n }\n\n stickyEndColumnsUpdated({sizes}: StickyUpdate): void {\n this._endSizes = sizes;\n this._updateScrollbar();\n }\n\n stickyHeaderRowsUpdated({sizes}: StickyUpdate): void {\n this._headerSizes = sizes;\n this._updateScrollbar();\n }\n\n stickyFooterRowsUpdated({sizes}: StickyUpdate): void {\n this._footerSizes = sizes;\n this._updateScrollbar();\n }\n\n /**\n * Set padding on the scrollbar track based on the sticky states from CdkTable.\n */\n private _updateScrollbar(): void {\n const topMargin = computeMargin(this._headerSizes);\n const bottomMargin = computeMargin(this._footerSizes);\n const startMargin = computeMargin(this._startSizes);\n const endMargin = computeMargin(this._endSizes);\n\n if (topMargin === 0 && bottomMargin === 0 && startMargin === 0 && endMargin === 0) {\n this._clearCss();\n return;\n }\n\n const direction = this._directionality ? this._directionality.value : 'ltr';\n const leftMargin = direction === 'rtl' ? endMargin : startMargin;\n const rightMargin = direction === 'rtl' ? startMargin : endMargin;\n\n this._applyCss(`${topMargin}px ${rightMargin}px ${bottomMargin}px ${leftMargin}px`);\n }\n\n /** Gets the stylesheet for the scrollbar styles and creates it if need be. */\n private _getStyleSheet(): CSSStyleSheet {\n if (!this._styleElement) {\n this._styleElement = this._document.createElement('style');\n this._styleRoot.appendChild(this._styleElement);\n }\n\n return this._styleElement.sheet as CSSStyleSheet;\n }\n\n /** Updates the stylesheet with the specified scrollbar style. */\n private _applyCss(value: string) {\n this._clearCss();\n\n const selector = `.${this._uniqueClassName}::-webkit-scrollbar-track`;\n this._getStyleSheet().insertRule(`${selector} {margin: ${value}}`, 0);\n }\n\n private _clearCss() {\n const styleSheet = this._getStyleSheet();\n if (styleSheet.cssRules.length > 0) {\n styleSheet.deleteRule(0);\n }\n }\n}\n\nfunction computeMargin(sizes: (number | null | undefined)[]): number {\n let margin = 0;\n for (const size of sizes) {\n if (size == null) {\n break;\n }\n margin += size;\n }\n return margin;\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';\n\nimport {CdkTableScrollContainer} from './table-scroll-container';\n\n@NgModule({\n declarations: [CdkTableScrollContainer],\n exports: [CdkTableScrollContainer],\n})\nexport class CdkTableScrollContainerModule {}\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 './table-scroll-container';\nexport * from './table-scroll-container-module';\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":";;;;;;;AAAA;;;;;;AAMG;AAaH,IAAI,MAAM,GAAG,CAAC,CAAC;AAEf;;;;;;;;;;AAUG;AACH,MAOa,uBAAuB,CAAA;AAWlC,IAAA,WAAA,CACmB,WAAoC,EAClB,SAAmB,EACzB,eAAgC,EAAA;AAF5C,QAAA,IAAW,CAAA,WAAA,GAAX,WAAW,CAAyB;AAClB,QAAA,IAAS,CAAA,SAAA,GAAT,SAAS,CAAU;AACzB,QAAA,IAAe,CAAA,eAAA,GAAf,eAAe,CAAiB;;AARvD,QAAA,IAAW,CAAA,WAAA,GAAiB,EAAE,CAAC;AAC/B,QAAA,IAAS,CAAA,SAAA,GAAiB,EAAE,CAAC;AAC7B,QAAA,IAAY,CAAA,YAAA,GAAiB,EAAE,CAAC;AAChC,QAAA,IAAY,CAAA,YAAA,GAAiB,EAAE,CAAC;AAOtC,QAAA,IAAI,CAAC,gBAAgB,GAAG,8BAA8B,EAAE,MAAM,EAAE,CAAC;QACjE,WAAW,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;KAChE;IAED,QAAQ,GAAA;;;;;AAIN,QAAA,IAAI,CAAC,UAAU,GAAG,MAAA,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KACzF;IAED,WAAW,GAAA;;AACT,QAAA,CAAA,EAAA,GAAA,IAAI,CAAC,aAAa,MAAE,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA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AA,YAAA,EAAA,CAHzB,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAC5B,uBAAuB,CAAA,EAAA,CAAA,CAAA;kIAEtB,6BAA6B,EAAA,CAAA,CAAA;kGAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAJzC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,uBAAuB,CAAC;oBACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;iBACnC,CAAA;;;ACfD;;;;;;AAMG;;ACNH;;;;;;AAMG;;ACNH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"table-scroll-container.mjs","sources":["../../../../../../src/cdk-experimental/table-scroll-container/table-scroll-container.ts","../../../../../../src/cdk-experimental/table-scroll-container/table-scroll-container-module.ts","../../../../../../src/cdk-experimental/table-scroll-container/table-scroll-container_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\nimport {Directive, ElementRef, Inject, OnDestroy, OnInit, Optional} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {Directionality} from '@angular/cdk/bidi';\nimport {_getShadowRoot} from '@angular/cdk/platform';\nimport {\n STICKY_POSITIONING_LISTENER,\n StickyPositioningListener,\n StickySize,\n StickyUpdate,\n} from '@angular/cdk/table';\n\nlet nextId = 0;\n\n/**\n * Applies styles to the host element that make its scrollbars match up with\n * the non-sticky scrollable portions of the CdkTable contained within.\n *\n * This visual effect only works in Webkit and Blink based browsers (eg Chrome,\n * Safari, Edge). Other browsers such as Firefox will gracefully degrade to\n * normal scrollbar appearance.\n * Further note: These styles have no effect when the browser is using OS-default\n * scrollbars. The easiest way to force them into custom mode is to specify width\n * and height for the scrollbar and thumb.\n */\n@Directive({\n selector: '[cdkTableScrollContainer]',\n host: {\n 'class': 'cdk-table-scroll-container',\n },\n providers: [{provide: STICKY_POSITIONING_LISTENER, useExisting: CdkTableScrollContainer}],\n})\nexport class CdkTableScrollContainer implements StickyPositioningListener, OnDestroy, OnInit {\n private readonly _uniqueClassName: string;\n private _styleRoot!: Node;\n private _styleElement?: HTMLStyleElement;\n\n /** The most recent sticky column size values from the CdkTable. */\n private _startSizes: StickySize[] = [];\n private _endSizes: StickySize[] = [];\n private _headerSizes: StickySize[] = [];\n private _footerSizes: StickySize[] = [];\n\n constructor(\n private readonly _elementRef: ElementRef<HTMLElement>,\n @Inject(DOCUMENT) private readonly _document: Document,\n @Optional() private readonly _directionality?: Directionality,\n ) {\n this._uniqueClassName = `cdk-table-scroll-container-${++nextId}`;\n _elementRef.nativeElement.classList.add(this._uniqueClassName);\n }\n\n ngOnInit() {\n // Note that we need to look up the root node in ngOnInit, rather than the constructor, because\n // Angular seems to create the element outside the shadow root and then moves it inside, if the\n // node is inside an `ngIf` and a ShadowDom-encapsulated component.\n this._styleRoot = _getShadowRoot(this._elementRef.nativeElement) ?? this._document.head;\n }\n\n ngOnDestroy(): void {\n this._styleElement?.remove();\n this._styleElement = undefined;\n }\n\n stickyColumnsUpdated({sizes}: StickyUpdate): void {\n this._startSizes = sizes;\n this._updateScrollbar();\n }\n\n stickyEndColumnsUpdated({sizes}: StickyUpdate): void {\n this._endSizes = sizes;\n this._updateScrollbar();\n }\n\n stickyHeaderRowsUpdated({sizes}: StickyUpdate): void {\n this._headerSizes = sizes;\n this._updateScrollbar();\n }\n\n stickyFooterRowsUpdated({sizes}: StickyUpdate): void {\n this._footerSizes = sizes;\n this._updateScrollbar();\n }\n\n /**\n * Set padding on the scrollbar track based on the sticky states from CdkTable.\n */\n private _updateScrollbar(): void {\n const topMargin = computeMargin(this._headerSizes);\n const bottomMargin = computeMargin(this._footerSizes);\n const startMargin = computeMargin(this._startSizes);\n const endMargin = computeMargin(this._endSizes);\n\n if (topMargin === 0 && bottomMargin === 0 && startMargin === 0 && endMargin === 0) {\n this._clearCss();\n return;\n }\n\n const direction = this._directionality ? this._directionality.value : 'ltr';\n const leftMargin = direction === 'rtl' ? endMargin : startMargin;\n const rightMargin = direction === 'rtl' ? startMargin : endMargin;\n\n this._applyCss(`${topMargin}px ${rightMargin}px ${bottomMargin}px ${leftMargin}px`);\n }\n\n /** Gets the stylesheet for the scrollbar styles and creates it if need be. */\n private _getStyleSheet(): CSSStyleSheet {\n if (!this._styleElement) {\n this._styleElement = this._document.createElement('style');\n this._styleRoot.appendChild(this._styleElement);\n }\n\n return this._styleElement.sheet as CSSStyleSheet;\n }\n\n /** Updates the stylesheet with the specified scrollbar style. */\n private _applyCss(value: string) {\n this._clearCss();\n\n const selector = `.${this._uniqueClassName}::-webkit-scrollbar-track`;\n this._getStyleSheet().insertRule(`${selector} {margin: ${value}}`, 0);\n }\n\n private _clearCss() {\n const styleSheet = this._getStyleSheet();\n if (styleSheet.cssRules.length > 0) {\n styleSheet.deleteRule(0);\n }\n }\n}\n\nfunction computeMargin(sizes: (number | null | undefined)[]): number {\n let margin = 0;\n for (const size of sizes) {\n if (size == null) {\n break;\n }\n margin += size;\n }\n return margin;\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';\n\nimport {CdkTableScrollContainer} from './table-scroll-container';\n\n@NgModule({\n declarations: [CdkTableScrollContainer],\n exports: [CdkTableScrollContainer],\n})\nexport class CdkTableScrollContainerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAmBA,IAAI,MAAM,GAAG,CAAC,CAAC;AAEf;;;;;;;;;;AAUG;AACH,MAOa,uBAAuB,CAAA;AAWlC,IAAA,WAAA,CACmB,WAAoC,EAClB,SAAmB,EACzB,eAAgC,EAAA;AAF5C,QAAA,IAAW,CAAA,WAAA,GAAX,WAAW,CAAyB;AAClB,QAAA,IAAS,CAAA,SAAA,GAAT,SAAS,CAAU;AACzB,QAA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AS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,IAAI,EAAE;AACJ,wBAAA,OAAO,EAAE,4BAA4B;AACtC,qBAAA;oBACD,SAAS,EAAE,CAAC,EAAC,OAAO,EAAE,2BAA2B,EAAE,WAAW,EAAyB,uBAAA,EAAC,CAAC;iBAC1F,CAAA;;;8BAcI,MAAM;+BAAC,QAAQ,CAAA;;8BACf,QAAQ;;;AAqFb,SAAS,aAAa,CAAC,KAAoC,EAAA;IACzD,IAAI,MAAM,GAAG,CAAC,CAAC;AACf,IAAA,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACxB,IAAI,IAAI,IAAI,IAAI,EAAE;YAChB,MAAM;AACP,SAAA;QACD,MAAM,IAAI,IAAI,CAAC;AAChB,KAAA;AACD,IAAA,OAAO,MAAM,CAAC;AAChB;;ACvIA,MAIa,6BAA6B,CAAA;;iIAA7B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;kIAA7B,6BAA6B,EAAA,YAAA,EAAA,CAHzB,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAC5B,uBAAuB,CAAA,EAAA,CAAA,CAAA;kIAEtB,6BAA6B,EAAA,CAAA,CAAA;kGAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAJzC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,uBAAuB,CAAC;oBACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;iBACnC,CAAA;;;ACfD;;AAEG;;;;"}
|
|
@@ -1,30 +1,7 @@
|
|
|
1
1
|
import { Version } from '@angular/core';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* @license
|
|
5
|
-
* Copyright Google LLC All Rights Reserved.
|
|
6
|
-
*
|
|
7
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
8
|
-
* found in the LICENSE file at https://angular.io/license
|
|
9
|
-
*/
|
|
10
3
|
/** Current version of the CDK Experimental package. */
|
|
11
|
-
const VERSION = new Version('16.0.0-next.
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @license
|
|
15
|
-
* Copyright Google LLC All Rights Reserved.
|
|
16
|
-
*
|
|
17
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
18
|
-
* found in the LICENSE file at https://angular.io/license
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @license
|
|
23
|
-
* Copyright Google LLC All Rights Reserved.
|
|
24
|
-
*
|
|
25
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
26
|
-
* found in the LICENSE file at https://angular.io/license
|
|
27
|
-
*/
|
|
4
|
+
const VERSION = new Version('16.0.0-next.5');
|
|
28
5
|
|
|
29
6
|
export { VERSION };
|
|
30
7
|
//# sourceMappingURL=cdk-experimental.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdk-experimental.mjs","sources":["../../../../../../src/cdk-experimental/version.ts"
|
|
1
|
+
{"version":3,"file":"cdk-experimental.mjs","sources":["../../../../../../src/cdk-experimental/version.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\nimport {Version} from '@angular/core';\n\n/** Current version of the CDK Experimental package. */\nexport const VERSION = new Version('16.0.0-next.5');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
|
|
@@ -10,26 +10,12 @@ import { coerceCssPixelValue } from '@angular/cdk/coercion';
|
|
|
10
10
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
11
11
|
import { ESCAPE } from '@angular/cdk/keycodes';
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* @license
|
|
15
|
-
* Copyright Google LLC All Rights Reserved.
|
|
16
|
-
*
|
|
17
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
18
|
-
* found in the LICENSE file at https://angular.io/license
|
|
19
|
-
*/
|
|
20
13
|
// TODO: Figure out how to remove `mat-` classes from the CDK part of the
|
|
21
14
|
// column resize implementation.
|
|
22
15
|
const HEADER_CELL_SELECTOR = '.cdk-header-cell, .mat-header-cell';
|
|
23
16
|
const HEADER_ROW_SELECTOR = '.cdk-header-row, .mat-header-row';
|
|
24
17
|
const RESIZE_OVERLAY_SELECTOR = '.mat-column-resize-overlay-thumb';
|
|
25
18
|
|
|
26
|
-
/**
|
|
27
|
-
* @license
|
|
28
|
-
* Copyright Google LLC All Rights Reserved.
|
|
29
|
-
*
|
|
30
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
31
|
-
* found in the LICENSE file at https://angular.io/license
|
|
32
|
-
*/
|
|
33
19
|
const HOVER_OR_ACTIVE_CLASS = 'cdk-column-resize-hover-or-active';
|
|
34
20
|
const WITH_RESIZED_COLUMN_CLASS = 'cdk-column-resize-with-resized-column';
|
|
35
21
|
let nextId = 0;
|
|
@@ -93,19 +79,12 @@ class ColumnResize {
|
|
|
93
79
|
});
|
|
94
80
|
}
|
|
95
81
|
}
|
|
96
|
-
ColumnResize.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
97
|
-
ColumnResize.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
98
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
82
|
+
ColumnResize.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ColumnResize, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
83
|
+
ColumnResize.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: ColumnResize, ngImport: i0 });
|
|
84
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ColumnResize, decorators: [{
|
|
99
85
|
type: Directive
|
|
100
86
|
}] });
|
|
101
87
|
|
|
102
|
-
/**
|
|
103
|
-
* @license
|
|
104
|
-
* Copyright Google LLC All Rights Reserved.
|
|
105
|
-
*
|
|
106
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
107
|
-
* found in the LICENSE file at https://angular.io/license
|
|
108
|
-
*/
|
|
109
88
|
/**
|
|
110
89
|
* Originating source of column resize events within a table.
|
|
111
90
|
* @docs-private
|
|
@@ -120,9 +99,9 @@ class ColumnResizeNotifierSource {
|
|
|
120
99
|
this.triggerResize = new Subject();
|
|
121
100
|
}
|
|
122
101
|
}
|
|
123
|
-
ColumnResizeNotifierSource.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
124
|
-
ColumnResizeNotifierSource.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
102
|
+
ColumnResizeNotifierSource.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ColumnResizeNotifierSource, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
103
|
+
ColumnResizeNotifierSource.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ColumnResizeNotifierSource });
|
|
104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ColumnResizeNotifierSource, decorators: [{
|
|
126
105
|
type: Injectable
|
|
127
106
|
}] });
|
|
128
107
|
/** Service for triggering column resizes imperatively or being notified of them. */
|
|
@@ -142,19 +121,12 @@ class ColumnResizeNotifier {
|
|
|
142
121
|
});
|
|
143
122
|
}
|
|
144
123
|
}
|
|
145
|
-
ColumnResizeNotifier.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
146
|
-
ColumnResizeNotifier.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
124
|
+
ColumnResizeNotifier.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ColumnResizeNotifier, deps: [{ token: ColumnResizeNotifierSource }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
125
|
+
ColumnResizeNotifier.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ColumnResizeNotifier });
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ColumnResizeNotifier, decorators: [{
|
|
148
127
|
type: Injectable
|
|
149
128
|
}], ctorParameters: function () { return [{ type: ColumnResizeNotifierSource }]; } });
|
|
150
129
|
|
|
151
|
-
/**
|
|
152
|
-
* @license
|
|
153
|
-
* Copyright Google LLC All Rights Reserved.
|
|
154
|
-
*
|
|
155
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
156
|
-
* found in the LICENSE file at https://angular.io/license
|
|
157
|
-
*/
|
|
158
130
|
/** Coordinates events between the column resize directives. */
|
|
159
131
|
class HeaderRowEventDispatcher {
|
|
160
132
|
constructor(_ngZone) {
|
|
@@ -206,19 +178,12 @@ class HeaderRowEventDispatcher {
|
|
|
206
178
|
}));
|
|
207
179
|
}
|
|
208
180
|
}
|
|
209
|
-
HeaderRowEventDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
210
|
-
HeaderRowEventDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
211
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
181
|
+
HeaderRowEventDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: HeaderRowEventDispatcher, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
182
|
+
HeaderRowEventDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: HeaderRowEventDispatcher });
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: HeaderRowEventDispatcher, decorators: [{
|
|
212
184
|
type: Injectable
|
|
213
185
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
214
186
|
|
|
215
|
-
/**
|
|
216
|
-
* @license
|
|
217
|
-
* Copyright Google LLC All Rights Reserved.
|
|
218
|
-
*
|
|
219
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
220
|
-
* found in the LICENSE file at https://angular.io/license
|
|
221
|
-
*/
|
|
222
187
|
/**
|
|
223
188
|
* Provides an implementation for resizing a column.
|
|
224
189
|
* The details of how resizing works for tables for flex mat-tables are quite different.
|
|
@@ -243,9 +208,9 @@ class ResizeStrategy {
|
|
|
243
208
|
this._pendingResizeDelta = (this._pendingResizeDelta ?? 0) + delta;
|
|
244
209
|
}
|
|
245
210
|
}
|
|
246
|
-
ResizeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
247
|
-
ResizeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
211
|
+
ResizeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ResizeStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
212
|
+
ResizeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ResizeStrategy });
|
|
213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ResizeStrategy, decorators: [{
|
|
249
214
|
type: Injectable
|
|
250
215
|
}] });
|
|
251
216
|
/**
|
|
@@ -283,9 +248,9 @@ class TableLayoutFixedResizeStrategy extends ResizeStrategy {
|
|
|
283
248
|
this.applyColumnSize(_, columnHeader, newWidth, currentWidth);
|
|
284
249
|
}
|
|
285
250
|
}
|
|
286
|
-
TableLayoutFixedResizeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
287
|
-
TableLayoutFixedResizeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
288
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
251
|
+
TableLayoutFixedResizeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: TableLayoutFixedResizeStrategy, deps: [{ token: ColumnResize }, { token: _COALESCED_STYLE_SCHEDULER }, { token: i3.CdkTable }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
252
|
+
TableLayoutFixedResizeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: TableLayoutFixedResizeStrategy });
|
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: TableLayoutFixedResizeStrategy, decorators: [{
|
|
289
254
|
type: Injectable
|
|
290
255
|
}], ctorParameters: function () { return [{ type: ColumnResize }, { type: i3._CoalescedStyleScheduler, decorators: [{
|
|
291
256
|
type: Inject,
|
|
@@ -397,9 +362,9 @@ class CdkFlexTableResizeStrategy extends ResizeStrategy {
|
|
|
397
362
|
this._getStyleSheet().insertRule(`${selector} {${body}}`, index);
|
|
398
363
|
}
|
|
399
364
|
}
|
|
400
|
-
CdkFlexTableResizeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
401
|
-
CdkFlexTableResizeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
365
|
+
CdkFlexTableResizeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkFlexTableResizeStrategy, deps: [{ token: ColumnResize }, { token: _COALESCED_STYLE_SCHEDULER }, { token: i3.CdkTable }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
366
|
+
CdkFlexTableResizeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkFlexTableResizeStrategy });
|
|
367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkFlexTableResizeStrategy, decorators: [{
|
|
403
368
|
type: Injectable
|
|
404
369
|
}], ctorParameters: function () { return [{ type: ColumnResize }, { type: i3._CoalescedStyleScheduler, decorators: [{
|
|
405
370
|
type: Inject,
|
|
@@ -434,13 +399,6 @@ const FLEX_RESIZE_STRATEGY_PROVIDER = {
|
|
|
434
399
|
useClass: CdkFlexTableResizeStrategy,
|
|
435
400
|
};
|
|
436
401
|
|
|
437
|
-
/**
|
|
438
|
-
* @license
|
|
439
|
-
* Copyright Google LLC All Rights Reserved.
|
|
440
|
-
*
|
|
441
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
442
|
-
* found in the LICENSE file at https://angular.io/license
|
|
443
|
-
*/
|
|
444
402
|
const PROVIDERS = [
|
|
445
403
|
ColumnResizeNotifier,
|
|
446
404
|
HeaderRowEventDispatcher,
|
|
@@ -452,13 +410,6 @@ const TABLE_PROVIDERS = [
|
|
|
452
410
|
];
|
|
453
411
|
const FLEX_PROVIDERS = [...PROVIDERS, FLEX_RESIZE_STRATEGY_PROVIDER];
|
|
454
412
|
|
|
455
|
-
/**
|
|
456
|
-
* @license
|
|
457
|
-
* Copyright Google LLC All Rights Reserved.
|
|
458
|
-
*
|
|
459
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
460
|
-
* found in the LICENSE file at https://angular.io/license
|
|
461
|
-
*/
|
|
462
413
|
/**
|
|
463
414
|
* Explicitly enables column resizing for a table-based cdk-table.
|
|
464
415
|
* Individual columns must be annotated specifically.
|
|
@@ -474,9 +425,9 @@ class CdkColumnResize extends ColumnResize {
|
|
|
474
425
|
this.table = table;
|
|
475
426
|
}
|
|
476
427
|
}
|
|
477
|
-
CdkColumnResize.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
478
|
-
CdkColumnResize.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
479
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
428
|
+
CdkColumnResize.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkColumnResize, deps: [{ token: ColumnResizeNotifier }, { token: i0.ElementRef }, { token: HeaderRowEventDispatcher }, { token: i0.NgZone }, { token: ColumnResizeNotifierSource }, { token: i3.CdkTable }], target: i0.ɵɵFactoryTarget.Directive });
|
|
429
|
+
CdkColumnResize.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkColumnResize, selector: "table[cdk-table][columnResize]", providers: [...TABLE_PROVIDERS, { provide: ColumnResize, useExisting: CdkColumnResize }], usesInheritance: true, ngImport: i0 });
|
|
430
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkColumnResize, decorators: [{
|
|
480
431
|
type: Directive,
|
|
481
432
|
args: [{
|
|
482
433
|
selector: 'table[cdk-table][columnResize]',
|
|
@@ -484,13 +435,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
484
435
|
}]
|
|
485
436
|
}], ctorParameters: function () { return [{ type: ColumnResizeNotifier }, { type: i0.ElementRef }, { type: HeaderRowEventDispatcher }, { type: i0.NgZone }, { type: ColumnResizeNotifierSource }, { type: i3.CdkTable }]; } });
|
|
486
437
|
|
|
487
|
-
/**
|
|
488
|
-
* @license
|
|
489
|
-
* Copyright Google LLC All Rights Reserved.
|
|
490
|
-
*
|
|
491
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
492
|
-
* found in the LICENSE file at https://angular.io/license
|
|
493
|
-
*/
|
|
494
438
|
/**
|
|
495
439
|
* Explicitly enables column resizing for a flexbox-based cdk-table.
|
|
496
440
|
* Individual columns must be annotated specifically.
|
|
@@ -506,9 +450,9 @@ class CdkColumnResizeFlex extends ColumnResize {
|
|
|
506
450
|
this.table = table;
|
|
507
451
|
}
|
|
508
452
|
}
|
|
509
|
-
CdkColumnResizeFlex.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
510
|
-
CdkColumnResizeFlex.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
453
|
+
CdkColumnResizeFlex.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkColumnResizeFlex, deps: [{ token: ColumnResizeNotifier }, { token: i0.ElementRef }, { token: HeaderRowEventDispatcher }, { token: i0.NgZone }, { token: ColumnResizeNotifierSource }, { token: i3.CdkTable }], target: i0.ɵɵFactoryTarget.Directive });
|
|
454
|
+
CdkColumnResizeFlex.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkColumnResizeFlex, selector: "cdk-table[columnResize]", providers: [...FLEX_PROVIDERS, { provide: ColumnResize, useExisting: CdkColumnResizeFlex }], usesInheritance: true, ngImport: i0 });
|
|
455
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkColumnResizeFlex, decorators: [{
|
|
512
456
|
type: Directive,
|
|
513
457
|
args: [{
|
|
514
458
|
selector: 'cdk-table[columnResize]',
|
|
@@ -516,13 +460,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
516
460
|
}]
|
|
517
461
|
}], ctorParameters: function () { return [{ type: ColumnResizeNotifier }, { type: i0.ElementRef }, { type: HeaderRowEventDispatcher }, { type: i0.NgZone }, { type: ColumnResizeNotifierSource }, { type: i3.CdkTable }]; } });
|
|
518
462
|
|
|
519
|
-
/**
|
|
520
|
-
* @license
|
|
521
|
-
* Copyright Google LLC All Rights Reserved.
|
|
522
|
-
*
|
|
523
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
524
|
-
* found in the LICENSE file at https://angular.io/license
|
|
525
|
-
*/
|
|
526
463
|
/**
|
|
527
464
|
* Implicitly enables column resizing for a table-based cdk-table.
|
|
528
465
|
* Individual columns will be resizable unless opted out.
|
|
@@ -538,12 +475,12 @@ class CdkDefaultEnabledColumnResize extends ColumnResize {
|
|
|
538
475
|
this.table = table;
|
|
539
476
|
}
|
|
540
477
|
}
|
|
541
|
-
CdkDefaultEnabledColumnResize.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
542
|
-
CdkDefaultEnabledColumnResize.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
478
|
+
CdkDefaultEnabledColumnResize.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkDefaultEnabledColumnResize, deps: [{ token: ColumnResizeNotifier }, { token: i0.ElementRef }, { token: HeaderRowEventDispatcher }, { token: i0.NgZone }, { token: ColumnResizeNotifierSource }, { token: i3.CdkTable }], target: i0.ɵɵFactoryTarget.Directive });
|
|
479
|
+
CdkDefaultEnabledColumnResize.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkDefaultEnabledColumnResize, selector: "table[cdk-table]", providers: [
|
|
543
480
|
...TABLE_PROVIDERS,
|
|
544
481
|
{ provide: ColumnResize, useExisting: CdkDefaultEnabledColumnResize },
|
|
545
482
|
], usesInheritance: true, ngImport: i0 });
|
|
546
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
483
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkDefaultEnabledColumnResize, decorators: [{
|
|
547
484
|
type: Directive,
|
|
548
485
|
args: [{
|
|
549
486
|
selector: 'table[cdk-table]',
|
|
@@ -554,13 +491,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
554
491
|
}]
|
|
555
492
|
}], ctorParameters: function () { return [{ type: ColumnResizeNotifier }, { type: i0.ElementRef }, { type: HeaderRowEventDispatcher }, { type: i0.NgZone }, { type: ColumnResizeNotifierSource }, { type: i3.CdkTable }]; } });
|
|
556
493
|
|
|
557
|
-
/**
|
|
558
|
-
* @license
|
|
559
|
-
* Copyright Google LLC All Rights Reserved.
|
|
560
|
-
*
|
|
561
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
562
|
-
* found in the LICENSE file at https://angular.io/license
|
|
563
|
-
*/
|
|
564
494
|
/**
|
|
565
495
|
* Implicitly enables column resizing for a flex cdk-table.
|
|
566
496
|
* Individual columns will be resizable unless opted out.
|
|
@@ -576,12 +506,12 @@ class CdkDefaultEnabledColumnResizeFlex extends ColumnResize {
|
|
|
576
506
|
this.table = table;
|
|
577
507
|
}
|
|
578
508
|
}
|
|
579
|
-
CdkDefaultEnabledColumnResizeFlex.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
580
|
-
CdkDefaultEnabledColumnResizeFlex.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
509
|
+
CdkDefaultEnabledColumnResizeFlex.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkDefaultEnabledColumnResizeFlex, deps: [{ token: ColumnResizeNotifier }, { token: i0.ElementRef }, { token: HeaderRowEventDispatcher }, { token: i0.NgZone }, { token: ColumnResizeNotifierSource }, { token: i3.CdkTable }], target: i0.ɵɵFactoryTarget.Directive });
|
|
510
|
+
CdkDefaultEnabledColumnResizeFlex.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkDefaultEnabledColumnResizeFlex, selector: "cdk-table", providers: [
|
|
581
511
|
...FLEX_PROVIDERS,
|
|
582
512
|
{ provide: ColumnResize, useExisting: CdkDefaultEnabledColumnResizeFlex },
|
|
583
513
|
], usesInheritance: true, ngImport: i0 });
|
|
584
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
514
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkDefaultEnabledColumnResizeFlex, decorators: [{
|
|
585
515
|
type: Directive,
|
|
586
516
|
args: [{
|
|
587
517
|
selector: 'cdk-table',
|
|
@@ -592,23 +522,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
592
522
|
}]
|
|
593
523
|
}], ctorParameters: function () { return [{ type: ColumnResizeNotifier }, { type: i0.ElementRef }, { type: HeaderRowEventDispatcher }, { type: i0.NgZone }, { type: ColumnResizeNotifierSource }, { type: i3.CdkTable }]; } });
|
|
594
524
|
|
|
595
|
-
/**
|
|
596
|
-
* @license
|
|
597
|
-
* Copyright Google LLC All Rights Reserved.
|
|
598
|
-
*
|
|
599
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
600
|
-
* found in the LICENSE file at https://angular.io/license
|
|
601
|
-
*/
|
|
602
525
|
/**
|
|
603
526
|
* One of two NgModules for use with CdkColumnResize.
|
|
604
527
|
* When using this module, columns are resizable by default.
|
|
605
528
|
*/
|
|
606
529
|
class CdkColumnResizeDefaultEnabledModule {
|
|
607
530
|
}
|
|
608
|
-
CdkColumnResizeDefaultEnabledModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
609
|
-
CdkColumnResizeDefaultEnabledModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
610
|
-
CdkColumnResizeDefaultEnabledModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
611
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
531
|
+
CdkColumnResizeDefaultEnabledModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkColumnResizeDefaultEnabledModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
532
|
+
CdkColumnResizeDefaultEnabledModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkColumnResizeDefaultEnabledModule, declarations: [CdkDefaultEnabledColumnResize, CdkDefaultEnabledColumnResizeFlex], exports: [CdkDefaultEnabledColumnResize, CdkDefaultEnabledColumnResizeFlex] });
|
|
533
|
+
CdkColumnResizeDefaultEnabledModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkColumnResizeDefaultEnabledModule });
|
|
534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkColumnResizeDefaultEnabledModule, decorators: [{
|
|
612
535
|
type: NgModule,
|
|
613
536
|
args: [{
|
|
614
537
|
declarations: [CdkDefaultEnabledColumnResize, CdkDefaultEnabledColumnResizeFlex],
|
|
@@ -621,10 +544,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
621
544
|
*/
|
|
622
545
|
class CdkColumnResizeModule {
|
|
623
546
|
}
|
|
624
|
-
CdkColumnResizeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
625
|
-
CdkColumnResizeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
626
|
-
CdkColumnResizeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
547
|
+
CdkColumnResizeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkColumnResizeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
548
|
+
CdkColumnResizeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkColumnResizeModule, declarations: [CdkColumnResize, CdkColumnResizeFlex], exports: [CdkColumnResize, CdkColumnResizeFlex] });
|
|
549
|
+
CdkColumnResizeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkColumnResizeModule });
|
|
550
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkColumnResizeModule, decorators: [{
|
|
628
551
|
type: NgModule,
|
|
629
552
|
args: [{
|
|
630
553
|
declarations: [CdkColumnResize, CdkColumnResizeFlex],
|
|
@@ -632,31 +555,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2",
|
|
|
632
555
|
}]
|
|
633
556
|
}] });
|
|
634
557
|
|
|
635
|
-
/**
|
|
636
|
-
* @license
|
|
637
|
-
* Copyright Google LLC All Rights Reserved.
|
|
638
|
-
*
|
|
639
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
640
|
-
* found in the LICENSE file at https://angular.io/license
|
|
641
|
-
*/
|
|
642
558
|
/**
|
|
643
559
|
* Can be provided by the host application to enable persistence of column resize state.
|
|
644
560
|
*/
|
|
645
561
|
class ColumnSizeStore {
|
|
646
562
|
}
|
|
647
|
-
ColumnSizeStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
648
|
-
ColumnSizeStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
649
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
563
|
+
ColumnSizeStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ColumnSizeStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
564
|
+
ColumnSizeStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ColumnSizeStore });
|
|
565
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ColumnSizeStore, decorators: [{
|
|
650
566
|
type: Injectable
|
|
651
567
|
}] });
|
|
652
568
|
|
|
653
|
-
/**
|
|
654
|
-
* @license
|
|
655
|
-
* Copyright Google LLC All Rights Reserved.
|
|
656
|
-
*
|
|
657
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
658
|
-
* found in the LICENSE file at https://angular.io/license
|
|
659
|
-
*/
|
|
660
569
|
/** Tracks state of resize events in progress. */
|
|
661
570
|
class ResizeRef {
|
|
662
571
|
constructor(origin, overlayRef, minWidthPx, maxWidthPx) {
|
|
@@ -667,13 +576,6 @@ class ResizeRef {
|
|
|
667
576
|
}
|
|
668
577
|
}
|
|
669
578
|
|
|
670
|
-
/**
|
|
671
|
-
* @license
|
|
672
|
-
* Copyright Google LLC All Rights Reserved.
|
|
673
|
-
*
|
|
674
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
675
|
-
* found in the LICENSE file at https://angular.io/license
|
|
676
|
-
*/
|
|
677
579
|
const OVERLAY_ACTIVE_CLASS = 'cdk-resizable-overlay-thumb-active';
|
|
678
580
|
/**
|
|
679
581
|
* Base class for Resizable directives which are applied to column headers to make those columns
|
|
@@ -852,19 +754,12 @@ class Resizable {
|
|
|
852
754
|
});
|
|
853
755
|
}
|
|
854
756
|
}
|
|
855
|
-
Resizable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
856
|
-
Resizable.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
857
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
757
|
+
Resizable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: Resizable, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
758
|
+
Resizable.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: Resizable, ngImport: i0 });
|
|
759
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: Resizable, decorators: [{
|
|
858
760
|
type: Directive
|
|
859
761
|
}] });
|
|
860
762
|
|
|
861
|
-
/**
|
|
862
|
-
* @license
|
|
863
|
-
* Copyright Google LLC All Rights Reserved.
|
|
864
|
-
*
|
|
865
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
866
|
-
* found in the LICENSE file at https://angular.io/license
|
|
867
|
-
*/
|
|
868
763
|
// TODO: Take another look at using cdk drag drop. IIRC I ran into a couple
|
|
869
764
|
// good reasons for not using it but I don't remember what they were at this point.
|
|
870
765
|
/**
|
|
@@ -990,28 +885,12 @@ class ResizeOverlayHandle {
|
|
|
990
885
|
});
|
|
991
886
|
}
|
|
992
887
|
}
|
|
993
|
-
ResizeOverlayHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
994
|
-
ResizeOverlayHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
995
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
888
|
+
ResizeOverlayHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ResizeOverlayHandle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
889
|
+
ResizeOverlayHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: ResizeOverlayHandle, ngImport: i0 });
|
|
890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: ResizeOverlayHandle, decorators: [{
|
|
996
891
|
type: Directive
|
|
997
892
|
}] });
|
|
998
893
|
|
|
999
|
-
/**
|
|
1000
|
-
* @license
|
|
1001
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1002
|
-
*
|
|
1003
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1004
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1005
|
-
*/
|
|
1006
|
-
|
|
1007
|
-
/**
|
|
1008
|
-
* @license
|
|
1009
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1010
|
-
*
|
|
1011
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1012
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1013
|
-
*/
|
|
1014
|
-
|
|
1015
894
|
/**
|
|
1016
895
|
* Generated bundle index. Do not edit.
|
|
1017
896
|
*/
|