@angular/cdk-experimental 13.0.0-next.7 → 13.0.0-rc.2
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-directives/column-resize-flex.d.ts +3 -0
- package/column-resize/column-resize-directives/column-resize.d.ts +3 -0
- package/column-resize/column-resize-directives/default-enabled-column-resize-flex.d.ts +3 -0
- package/column-resize/column-resize-directives/default-enabled-column-resize.d.ts +3 -0
- package/column-resize/column-resize-module.d.ts +11 -7
- package/column-resize/column-resize-notifier.d.ts +5 -7
- package/column-resize/column-resize.d.ts +3 -0
- package/column-resize/column-resize_public_index.d.ts +4 -0
- package/column-resize/column-size-store.d.ts +3 -7
- package/column-resize/event-dispatcher.d.ts +3 -0
- package/column-resize/index.d.ts +5 -2
- package/column-resize/overlay-handle.d.ts +3 -0
- package/column-resize/package.json +6 -6
- package/column-resize/resizable.d.ts +3 -0
- package/column-resize/resize-strategy.d.ts +7 -0
- package/combobox/combobox-module.d.ts +8 -7
- package/combobox/combobox-panel.d.ts +5 -2
- package/combobox/combobox-popup.d.ts +3 -0
- package/combobox/combobox.d.ts +8 -5
- package/combobox/combobox_public_index.d.ts +4 -0
- package/combobox/index.d.ts +5 -1
- package/combobox/package.json +6 -6
- package/dialog/dialog-container.d.ts +4 -1
- package/dialog/dialog-module.d.ts +8 -7
- package/dialog/dialog.d.ts +3 -0
- package/dialog/dialog_public_index.d.ts +4 -0
- package/dialog/index.d.ts +5 -1
- package/dialog/package.json +6 -6
- package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +42 -0
- package/esm2020/column-resize/column-resize-directives/column-resize.mjs +42 -0
- package/{esm2015/column-resize/column-resize-directives/constants.js → esm2020/column-resize/column-resize-directives/constants.mjs} +0 -0
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +48 -0
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +48 -0
- package/esm2020/column-resize/column-resize-module.mjs +46 -0
- package/esm2020/column-resize/column-resize-notifier.mjs +52 -0
- package/esm2020/column-resize/column-resize.mjs +82 -0
- package/esm2020/column-resize/column-resize_public_index.mjs +5 -0
- package/esm2020/column-resize/column-size-store.mjs +20 -0
- package/esm2020/column-resize/event-dispatcher.mjs +70 -0
- package/esm2020/column-resize/index.mjs +9 -0
- package/esm2020/column-resize/overlay-handle.mjs +146 -0
- package/{esm2015/column-resize/public-api.js → esm2020/column-resize/public-api.mjs} +0 -0
- package/esm2020/column-resize/resizable.mjs +195 -0
- package/{esm2015/column-resize/resize-ref.js → esm2020/column-resize/resize-ref.mjs} +1 -1
- package/esm2020/column-resize/resize-strategy.mjs +230 -0
- package/{esm2015/column-resize/selectors.js → esm2020/column-resize/selectors.mjs} +0 -0
- package/esm2020/combobox/combobox-module.mjs +28 -0
- package/esm2020/combobox/combobox-panel.mjs +48 -0
- package/esm2020/combobox/combobox-popup.mjs +83 -0
- package/esm2020/combobox/combobox.mjs +261 -0
- package/esm2020/combobox/combobox_public_index.mjs +5 -0
- package/esm2020/combobox/index.mjs +9 -0
- package/{esm2015/combobox/public-api.js → esm2020/combobox/public-api.mjs} +0 -0
- package/{esm2015/dialog/dialog-config.js → esm2020/dialog/dialog-config.mjs} +0 -0
- package/esm2020/dialog/dialog-container.mjs +310 -0
- package/esm2020/dialog/dialog-injectors.mjs +30 -0
- package/esm2020/dialog/dialog-module.mjs +57 -0
- package/esm2020/dialog/dialog-ref.mjs +116 -0
- package/esm2020/dialog/dialog.mjs +252 -0
- package/esm2020/dialog/dialog_public_index.mjs +5 -0
- package/esm2020/dialog/index.mjs +9 -0
- package/{esm2015/dialog/public-api.js → esm2020/dialog/public-api.mjs} +0 -0
- package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- package/esm2020/listbox/index.mjs +9 -0
- package/esm2020/listbox/listbox-module.mjs +24 -0
- package/esm2020/listbox/listbox.mjs +499 -0
- package/esm2020/listbox/listbox_public_index.mjs +5 -0
- package/{esm2015/listbox/public-api.js → esm2020/listbox/public-api.mjs} +0 -0
- package/esm2020/menu/context-menu.mjs +287 -0
- package/esm2020/menu/index.mjs +9 -0
- package/esm2020/menu/menu-aim.mjs +199 -0
- package/esm2020/menu/menu-bar.mjs +272 -0
- package/{esm2015/menu/menu-errors.js → esm2020/menu/menu-errors.mjs} +1 -1
- package/esm2020/menu/menu-group.mjs +68 -0
- package/{esm2015/menu/menu-interface.js → esm2020/menu/menu-interface.mjs} +0 -0
- package/esm2020/menu/menu-item-checkbox.mjs +48 -0
- package/esm2020/menu/menu-item-radio.mjs +90 -0
- package/esm2020/menu/menu-item-selectable.mjs +57 -0
- package/esm2020/menu/menu-item-trigger.mjs +361 -0
- package/esm2020/menu/menu-item.mjs +291 -0
- package/esm2020/menu/menu-module.mjs +64 -0
- package/esm2020/menu/menu-panel.mjs +37 -0
- package/{esm2015/menu/menu-stack.js → esm2020/menu/menu-stack.mjs} +0 -0
- package/esm2020/menu/menu.mjs +316 -0
- package/esm2020/menu/menu_public_index.mjs +5 -0
- package/{esm2015/menu/pointer-focus-tracker.js → esm2020/menu/pointer-focus-tracker.mjs} +1 -1
- package/{esm2015/menu/public-api.js → esm2020/menu/public-api.mjs} +0 -0
- package/{esm2015/popover-edit/constants.js → esm2020/popover-edit/constants.mjs} +0 -0
- package/esm2020/popover-edit/edit-event-dispatcher.mjs +215 -0
- package/esm2020/popover-edit/edit-ref.mjs +84 -0
- package/esm2020/popover-edit/edit-services.mjs +48 -0
- package/esm2020/popover-edit/focus-dispatcher.mjs +82 -0
- package/esm2020/popover-edit/focus-escape-notifier.mjs +63 -0
- package/{esm2015/popover-edit/form-value-container.js → esm2020/popover-edit/form-value-container.mjs} +0 -0
- package/esm2020/popover-edit/index.mjs +9 -0
- package/esm2020/popover-edit/lens-directives.mjs +210 -0
- package/esm2020/popover-edit/polyfill.mjs +37 -0
- package/esm2020/popover-edit/popover-edit-module.mjs +62 -0
- package/esm2020/popover-edit/popover-edit-position-strategy-factory.mjs +76 -0
- package/esm2020/popover-edit/popover-edit_public_index.mjs +5 -0
- package/{esm2015/popover-edit/public-api.js → esm2020/popover-edit/public-api.mjs} +0 -0
- package/esm2020/popover-edit/table-directives.mjs +400 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/esm2020/scrolling/auto-size-virtual-scroll.mjs +421 -0
- package/esm2020/scrolling/index.mjs +9 -0
- package/{esm2015/scrolling/public-api.js → esm2020/scrolling/public-api.mjs} +0 -0
- package/esm2020/scrolling/scrolling-module.mjs +23 -0
- package/esm2020/scrolling/scrolling_public_index.mjs +5 -0
- package/esm2020/selection/index.mjs +9 -0
- package/{esm2015/selection/public-api.js → esm2020/selection/public-api.mjs} +0 -0
- package/esm2020/selection/row-selection.mjs +49 -0
- package/esm2020/selection/select-all.mjs +109 -0
- package/esm2020/selection/selection-column.mjs +134 -0
- package/esm2020/selection/selection-module.mjs +40 -0
- package/{esm2015/selection/selection-set.js → esm2020/selection/selection-set.mjs} +1 -1
- package/esm2020/selection/selection-toggle.mjs +101 -0
- package/esm2020/selection/selection.mjs +186 -0
- package/esm2020/selection/selection_public_index.mjs +5 -0
- package/esm2020/table-scroll-container/index.mjs +9 -0
- package/{esm2015/table-scroll-container/public-api.js → esm2020/table-scroll-container/public-api.mjs} +0 -0
- package/esm2020/table-scroll-container/table-scroll-container-module.mjs +23 -0
- package/esm2020/table-scroll-container/table-scroll-container.mjs +131 -0
- package/esm2020/table-scroll-container/table-scroll-container_public_index.mjs +5 -0
- package/{esm2015/version.js → esm2020/version.mjs} +1 -1
- package/fesm2015/{cdk-experimental.js → cdk-experimental.mjs} +2 -2
- package/fesm2015/cdk-experimental.mjs.map +1 -0
- package/fesm2015/{column-resize.js → column-resize.mjs} +213 -175
- package/fesm2015/column-resize.mjs.map +1 -0
- package/fesm2015/{combobox.js → combobox.mjs} +134 -102
- package/fesm2015/combobox.mjs.map +1 -0
- package/fesm2015/dialog.mjs +813 -0
- package/fesm2015/dialog.mjs.map +1 -0
- package/fesm2015/{listbox.js → listbox.mjs} +128 -91
- package/fesm2015/listbox.mjs.map +1 -0
- package/fesm2015/{menu.js → menu.mjs} +576 -397
- package/fesm2015/menu.mjs.map +1 -0
- package/fesm2015/{popover-edit.js → popover-edit.mjs} +257 -230
- package/fesm2015/popover-edit.mjs.map +1 -0
- package/fesm2015/{scrolling.js → scrolling.mjs} +66 -36
- package/fesm2015/scrolling.mjs.map +1 -0
- package/fesm2015/selection.mjs +693 -0
- package/fesm2015/selection.mjs.map +1 -0
- package/fesm2015/{table-scroll-container.js → table-scroll-container.mjs} +43 -30
- package/fesm2015/table-scroll-container.mjs.map +1 -0
- package/fesm2020/cdk-experimental.mjs +30 -0
- package/fesm2020/cdk-experimental.mjs.map +1 -0
- package/fesm2020/column-resize.mjs +1016 -0
- package/fesm2020/column-resize.mjs.map +1 -0
- package/fesm2020/combobox.mjs +430 -0
- package/fesm2020/combobox.mjs.map +1 -0
- package/{fesm2015/dialog.js → fesm2020/dialog.mjs} +156 -104
- package/fesm2020/dialog.mjs.map +1 -0
- package/fesm2020/listbox.mjs +541 -0
- package/fesm2020/listbox.mjs.map +1 -0
- package/fesm2020/menu.mjs +2202 -0
- package/fesm2020/menu.mjs.map +1 -0
- package/fesm2020/popover-edit.mjs +1289 -0
- package/fesm2020/popover-edit.mjs.map +1 -0
- package/fesm2020/scrolling.mjs +464 -0
- package/fesm2020/scrolling.mjs.map +1 -0
- package/{fesm2015/selection.js → fesm2020/selection.mjs} +195 -107
- package/fesm2020/selection.mjs.map +1 -0
- package/fesm2020/table-scroll-container.mjs +173 -0
- package/fesm2020/table-scroll-container.mjs.map +1 -0
- package/listbox/index.d.ts +5 -1
- package/listbox/listbox-module.d.ts +5 -7
- package/listbox/listbox.d.ts +5 -0
- package/listbox/listbox_public_index.d.ts +4 -0
- package/listbox/package.json +6 -6
- package/menu/context-menu.d.ts +5 -0
- package/menu/index.d.ts +5 -3
- package/menu/menu-aim.d.ts +5 -0
- package/menu/menu-bar.d.ts +3 -0
- package/menu/menu-group.d.ts +3 -0
- package/menu/menu-item-checkbox.d.ts +3 -7
- package/menu/menu-item-radio.d.ts +3 -0
- package/menu/menu-item-selectable.d.ts +3 -0
- package/menu/menu-item-trigger.d.ts +3 -0
- package/menu/menu-item.d.ts +3 -0
- package/menu/menu-module.d.ts +15 -7
- package/menu/menu-panel.d.ts +3 -0
- package/menu/menu.d.ts +3 -0
- package/menu/menu_public_index.d.ts +4 -0
- package/menu/package.json +6 -6
- package/package.json +94 -8
- package/popover-edit/edit-event-dispatcher.d.ts +3 -0
- package/popover-edit/edit-ref.d.ts +3 -0
- package/popover-edit/edit-services.d.ts +3 -0
- package/popover-edit/focus-dispatcher.d.ts +3 -0
- package/popover-edit/focus-escape-notifier.d.ts +3 -0
- package/popover-edit/index.d.ts +5 -3
- package/popover-edit/lens-directives.d.ts +7 -0
- package/popover-edit/package.json +6 -6
- package/popover-edit/popover-edit-module.d.ts +7 -7
- package/popover-edit/popover-edit-position-strategy-factory.d.ts +5 -0
- package/popover-edit/popover-edit_public_index.d.ts +4 -0
- package/popover-edit/table-directives.d.ts +11 -0
- package/scrolling/auto-size-virtual-scroll.d.ts +3 -0
- package/scrolling/index.d.ts +5 -1
- package/scrolling/package.json +6 -6
- package/scrolling/scrolling-module.d.ts +5 -7
- package/scrolling/scrolling_public_index.d.ts +4 -0
- package/selection/index.d.ts +5 -1
- package/selection/package.json +6 -6
- package/selection/row-selection.d.ts +3 -0
- package/selection/select-all.d.ts +3 -0
- package/selection/selection-column.d.ts +3 -0
- package/selection/selection-module.d.ts +11 -7
- package/selection/selection-toggle.d.ts +3 -0
- package/selection/selection.d.ts +3 -0
- package/selection/selection_public_index.d.ts +4 -0
- package/table-scroll-container/index.d.ts +5 -1
- package/table-scroll-container/package.json +6 -6
- package/table-scroll-container/table-scroll-container-module.d.ts +5 -7
- package/table-scroll-container/table-scroll-container.d.ts +3 -0
- package/table-scroll-container/table-scroll-container_public_index.d.ts +4 -0
- package/bundles/cdk-experimental-column-resize.umd.js +0 -1324
- package/bundles/cdk-experimental-column-resize.umd.js.map +0 -1
- package/bundles/cdk-experimental-combobox.umd.js +0 -443
- package/bundles/cdk-experimental-combobox.umd.js.map +0 -1
- package/bundles/cdk-experimental-dialog.umd.js +0 -1113
- package/bundles/cdk-experimental-dialog.umd.js.map +0 -1
- package/bundles/cdk-experimental-listbox.umd.js +0 -935
- package/bundles/cdk-experimental-listbox.umd.js.map +0 -1
- package/bundles/cdk-experimental-menu.umd.js +0 -2461
- package/bundles/cdk-experimental-menu.umd.js.map +0 -1
- package/bundles/cdk-experimental-popover-edit.umd.js +0 -1679
- package/bundles/cdk-experimental-popover-edit.umd.js.map +0 -1
- package/bundles/cdk-experimental-scrolling.umd.js +0 -459
- package/bundles/cdk-experimental-scrolling.umd.js.map +0 -1
- package/bundles/cdk-experimental-selection.umd.js +0 -961
- package/bundles/cdk-experimental-selection.umd.js.map +0 -1
- package/bundles/cdk-experimental-table-scroll-container.umd.js +0 -499
- package/bundles/cdk-experimental-table-scroll-container.umd.js.map +0 -1
- package/bundles/cdk-experimental.umd.js +0 -38
- package/bundles/cdk-experimental.umd.js.map +0 -1
- package/column-resize/index.metadata.json +0 -1
- package/combobox/index.metadata.json +0 -1
- package/dialog/index.metadata.json +0 -1
- package/esm2015/cdk-experimental.externs.js +0 -0
- package/esm2015/column-resize/column-resize-directives/column-resize-flex.js +0 -46
- package/esm2015/column-resize/column-resize-directives/column-resize.js +0 -46
- package/esm2015/column-resize/column-resize-directives/default-enabled-column-resize-flex.js +0 -46
- package/esm2015/column-resize/column-resize-directives/default-enabled-column-resize.js +0 -46
- package/esm2015/column-resize/column-resize-module.js +0 -37
- package/esm2015/column-resize/column-resize-notifier.js +0 -45
- package/esm2015/column-resize/column-resize.externs.js +0 -6
- package/esm2015/column-resize/column-resize.js +0 -71
- package/esm2015/column-resize/column-size-store.js +0 -17
- package/esm2015/column-resize/event-dispatcher.js +0 -70
- package/esm2015/column-resize/index.js +0 -6
- package/esm2015/column-resize/overlay-handle.js +0 -139
- package/esm2015/column-resize/resizable.js +0 -185
- package/esm2015/column-resize/resize-strategy.js +0 -227
- package/esm2015/combobox/combobox-module.js +0 -23
- package/esm2015/combobox/combobox-panel.js +0 -55
- package/esm2015/combobox/combobox-popup.js +0 -74
- package/esm2015/combobox/combobox.externs.js +0 -6
- package/esm2015/combobox/combobox.js +0 -248
- package/esm2015/combobox/index.js +0 -5
- package/esm2015/dialog/dialog-container.js +0 -289
- package/esm2015/dialog/dialog-injectors.js +0 -30
- package/esm2015/dialog/dialog-module.js +0 -47
- package/esm2015/dialog/dialog-ref.js +0 -115
- package/esm2015/dialog/dialog.externs.js +0 -6
- package/esm2015/dialog/dialog.js +0 -238
- package/esm2015/dialog/index.js +0 -5
- package/esm2015/listbox/index.js +0 -5
- package/esm2015/listbox/listbox-module.js +0 -19
- package/esm2015/listbox/listbox.externs.js +0 -6
- package/esm2015/listbox/listbox.js +0 -481
- package/esm2015/menu/context-menu.js +0 -280
- package/esm2015/menu/index.js +0 -6
- package/esm2015/menu/menu-aim.js +0 -195
- package/esm2015/menu/menu-bar.js +0 -252
- package/esm2015/menu/menu-group.js +0 -63
- package/esm2015/menu/menu-item-checkbox.js +0 -41
- package/esm2015/menu/menu-item-radio.js +0 -73
- package/esm2015/menu/menu-item-selectable.js +0 -51
- package/esm2015/menu/menu-item-trigger.js +0 -354
- package/esm2015/menu/menu-item.js +0 -253
- package/esm2015/menu/menu-module.js +0 -41
- package/esm2015/menu/menu-panel.js +0 -37
- package/esm2015/menu/menu.externs.js +0 -6
- package/esm2015/menu/menu.js +0 -293
- package/esm2015/popover-edit/edit-event-dispatcher.js +0 -215
- package/esm2015/popover-edit/edit-ref.js +0 -82
- package/esm2015/popover-edit/edit-services.js +0 -49
- package/esm2015/popover-edit/focus-dispatcher.js +0 -83
- package/esm2015/popover-edit/focus-escape-notifier.js +0 -64
- package/esm2015/popover-edit/index.js +0 -7
- package/esm2015/popover-edit/lens-directives.js +0 -199
- package/esm2015/popover-edit/polyfill.js +0 -35
- package/esm2015/popover-edit/popover-edit-module.js +0 -38
- package/esm2015/popover-edit/popover-edit-position-strategy-factory.js +0 -70
- package/esm2015/popover-edit/popover-edit.externs.js +0 -6
- package/esm2015/popover-edit/table-directives.js +0 -390
- package/esm2015/scrolling/auto-size-virtual-scroll.js +0 -403
- package/esm2015/scrolling/index.js +0 -5
- package/esm2015/scrolling/scrolling-module.js +0 -18
- package/esm2015/scrolling/scrolling.externs.js +0 -6
- package/esm2015/selection/index.js +0 -5
- package/esm2015/selection/row-selection.js +0 -41
- package/esm2015/selection/select-all.js +0 -96
- package/esm2015/selection/selection-column.js +0 -93
- package/esm2015/selection/selection-module.js +0 -40
- package/esm2015/selection/selection-toggle.js +0 -82
- package/esm2015/selection/selection.externs.js +0 -6
- package/esm2015/selection/selection.js +0 -176
- package/esm2015/table-scroll-container/index.js +0 -5
- package/esm2015/table-scroll-container/table-scroll-container-module.js +0 -18
- package/esm2015/table-scroll-container/table-scroll-container.externs.js +0 -6
- package/esm2015/table-scroll-container/table-scroll-container.js +0 -133
- package/fesm2015/cdk-experimental.js.map +0 -1
- package/fesm2015/column-resize.js.map +0 -1
- package/fesm2015/combobox.js.map +0 -1
- package/fesm2015/dialog.js.map +0 -1
- package/fesm2015/listbox.js.map +0 -1
- package/fesm2015/menu.js.map +0 -1
- package/fesm2015/popover-edit.js.map +0 -1
- package/fesm2015/scrolling.js.map +0 -1
- package/fesm2015/selection.js.map +0 -1
- package/fesm2015/table-scroll-container.js.map +0 -1
- package/listbox/index.metadata.json +0 -1
- package/menu/index.metadata.json +0 -1
- package/popover-edit/index.metadata.json +0 -1
- package/scrolling/index.metadata.json +0 -1
- package/selection/index.metadata.json +0 -1
- package/table-scroll-container/index.metadata.json +0 -1
|
@@ -1,961 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/coercion'), require('@angular/cdk/collections'), require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@angular/forms'), require('@angular/cdk/table'), require('@angular/common')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@angular/cdk-experimental/selection', ['exports', '@angular/cdk/coercion', '@angular/cdk/collections', '@angular/core', 'rxjs', 'rxjs/operators', '@angular/forms', '@angular/cdk/table', '@angular/common'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ng = global.ng || {}, global.ng.cdkExperimental = global.ng.cdkExperimental || {}, global.ng.cdkExperimental.selection = {}), global.ng.cdk.coercion, global.ng.cdk.collections, global.ng.core, global.rxjs, global.rxjs.operators, global.ng.forms, global.ng.cdk.table, global.ng.common));
|
|
5
|
-
}(this, (function (exports, coercion, collections, core, rxjs, operators, forms, table, common) { 'use strict';
|
|
6
|
-
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation.
|
|
9
|
-
|
|
10
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
-
purpose with or without fee is hereby granted.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
/* global Reflect, Promise */
|
|
22
|
-
var extendStatics = function (d, b) {
|
|
23
|
-
extendStatics = Object.setPrototypeOf ||
|
|
24
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
25
|
-
function (d, b) { for (var p in b)
|
|
26
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
27
|
-
d[p] = b[p]; };
|
|
28
|
-
return extendStatics(d, b);
|
|
29
|
-
};
|
|
30
|
-
function __extends(d, b) {
|
|
31
|
-
if (typeof b !== "function" && b !== null)
|
|
32
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
33
|
-
extendStatics(d, b);
|
|
34
|
-
function __() { this.constructor = d; }
|
|
35
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36
|
-
}
|
|
37
|
-
var __assign = function () {
|
|
38
|
-
__assign = Object.assign || function __assign(t) {
|
|
39
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
40
|
-
s = arguments[i];
|
|
41
|
-
for (var p in s)
|
|
42
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
43
|
-
t[p] = s[p];
|
|
44
|
-
}
|
|
45
|
-
return t;
|
|
46
|
-
};
|
|
47
|
-
return __assign.apply(this, arguments);
|
|
48
|
-
};
|
|
49
|
-
function __rest(s, e) {
|
|
50
|
-
var t = {};
|
|
51
|
-
for (var p in s)
|
|
52
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
53
|
-
t[p] = s[p];
|
|
54
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
55
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
57
|
-
t[p[i]] = s[p[i]];
|
|
58
|
-
}
|
|
59
|
-
return t;
|
|
60
|
-
}
|
|
61
|
-
function __decorate(decorators, target, key, desc) {
|
|
62
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
63
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
64
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
65
|
-
else
|
|
66
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
67
|
-
if (d = decorators[i])
|
|
68
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
69
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
70
|
-
}
|
|
71
|
-
function __param(paramIndex, decorator) {
|
|
72
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
73
|
-
}
|
|
74
|
-
function __metadata(metadataKey, metadataValue) {
|
|
75
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
76
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
77
|
-
}
|
|
78
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
79
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
80
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
81
|
-
function fulfilled(value) { try {
|
|
82
|
-
step(generator.next(value));
|
|
83
|
-
}
|
|
84
|
-
catch (e) {
|
|
85
|
-
reject(e);
|
|
86
|
-
} }
|
|
87
|
-
function rejected(value) { try {
|
|
88
|
-
step(generator["throw"](value));
|
|
89
|
-
}
|
|
90
|
-
catch (e) {
|
|
91
|
-
reject(e);
|
|
92
|
-
} }
|
|
93
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
94
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function __generator(thisArg, body) {
|
|
98
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
99
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
100
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
101
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
102
|
-
function step(op) {
|
|
103
|
-
if (f)
|
|
104
|
-
throw new TypeError("Generator is already executing.");
|
|
105
|
-
while (_)
|
|
106
|
-
try {
|
|
107
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
108
|
-
return t;
|
|
109
|
-
if (y = 0, t)
|
|
110
|
-
op = [op[0] & 2, t.value];
|
|
111
|
-
switch (op[0]) {
|
|
112
|
-
case 0:
|
|
113
|
-
case 1:
|
|
114
|
-
t = op;
|
|
115
|
-
break;
|
|
116
|
-
case 4:
|
|
117
|
-
_.label++;
|
|
118
|
-
return { value: op[1], done: false };
|
|
119
|
-
case 5:
|
|
120
|
-
_.label++;
|
|
121
|
-
y = op[1];
|
|
122
|
-
op = [0];
|
|
123
|
-
continue;
|
|
124
|
-
case 7:
|
|
125
|
-
op = _.ops.pop();
|
|
126
|
-
_.trys.pop();
|
|
127
|
-
continue;
|
|
128
|
-
default:
|
|
129
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
130
|
-
_ = 0;
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
134
|
-
_.label = op[1];
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
138
|
-
_.label = t[1];
|
|
139
|
-
t = op;
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
if (t && _.label < t[2]) {
|
|
143
|
-
_.label = t[2];
|
|
144
|
-
_.ops.push(op);
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
if (t[2])
|
|
148
|
-
_.ops.pop();
|
|
149
|
-
_.trys.pop();
|
|
150
|
-
continue;
|
|
151
|
-
}
|
|
152
|
-
op = body.call(thisArg, _);
|
|
153
|
-
}
|
|
154
|
-
catch (e) {
|
|
155
|
-
op = [6, e];
|
|
156
|
-
y = 0;
|
|
157
|
-
}
|
|
158
|
-
finally {
|
|
159
|
-
f = t = 0;
|
|
160
|
-
}
|
|
161
|
-
if (op[0] & 5)
|
|
162
|
-
throw op[1];
|
|
163
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
167
|
-
if (k2 === undefined)
|
|
168
|
-
k2 = k;
|
|
169
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
170
|
-
}) : (function (o, m, k, k2) {
|
|
171
|
-
if (k2 === undefined)
|
|
172
|
-
k2 = k;
|
|
173
|
-
o[k2] = m[k];
|
|
174
|
-
});
|
|
175
|
-
function __exportStar(m, o) {
|
|
176
|
-
for (var p in m)
|
|
177
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
178
|
-
__createBinding(o, m, p);
|
|
179
|
-
}
|
|
180
|
-
function __values(o) {
|
|
181
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
182
|
-
if (m)
|
|
183
|
-
return m.call(o);
|
|
184
|
-
if (o && typeof o.length === "number")
|
|
185
|
-
return {
|
|
186
|
-
next: function () {
|
|
187
|
-
if (o && i >= o.length)
|
|
188
|
-
o = void 0;
|
|
189
|
-
return { value: o && o[i++], done: !o };
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
193
|
-
}
|
|
194
|
-
function __read(o, n) {
|
|
195
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
196
|
-
if (!m)
|
|
197
|
-
return o;
|
|
198
|
-
var i = m.call(o), r, ar = [], e;
|
|
199
|
-
try {
|
|
200
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
201
|
-
ar.push(r.value);
|
|
202
|
-
}
|
|
203
|
-
catch (error) {
|
|
204
|
-
e = { error: error };
|
|
205
|
-
}
|
|
206
|
-
finally {
|
|
207
|
-
try {
|
|
208
|
-
if (r && !r.done && (m = i["return"]))
|
|
209
|
-
m.call(i);
|
|
210
|
-
}
|
|
211
|
-
finally {
|
|
212
|
-
if (e)
|
|
213
|
-
throw e.error;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
return ar;
|
|
217
|
-
}
|
|
218
|
-
/** @deprecated */
|
|
219
|
-
function __spread() {
|
|
220
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
221
|
-
ar = ar.concat(__read(arguments[i]));
|
|
222
|
-
return ar;
|
|
223
|
-
}
|
|
224
|
-
/** @deprecated */
|
|
225
|
-
function __spreadArrays() {
|
|
226
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
227
|
-
s += arguments[i].length;
|
|
228
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
229
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
230
|
-
r[k] = a[j];
|
|
231
|
-
return r;
|
|
232
|
-
}
|
|
233
|
-
function __spreadArray(to, from, pack) {
|
|
234
|
-
if (pack || arguments.length === 2)
|
|
235
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
236
|
-
if (ar || !(i in from)) {
|
|
237
|
-
if (!ar)
|
|
238
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
239
|
-
ar[i] = from[i];
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
243
|
-
}
|
|
244
|
-
function __await(v) {
|
|
245
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
246
|
-
}
|
|
247
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
248
|
-
if (!Symbol.asyncIterator)
|
|
249
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
250
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
251
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
252
|
-
function verb(n) { if (g[n])
|
|
253
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
254
|
-
function resume(n, v) { try {
|
|
255
|
-
step(g[n](v));
|
|
256
|
-
}
|
|
257
|
-
catch (e) {
|
|
258
|
-
settle(q[0][3], e);
|
|
259
|
-
} }
|
|
260
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
261
|
-
function fulfill(value) { resume("next", value); }
|
|
262
|
-
function reject(value) { resume("throw", value); }
|
|
263
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
264
|
-
resume(q[0][0], q[0][1]); }
|
|
265
|
-
}
|
|
266
|
-
function __asyncDelegator(o) {
|
|
267
|
-
var i, p;
|
|
268
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
269
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
270
|
-
}
|
|
271
|
-
function __asyncValues(o) {
|
|
272
|
-
if (!Symbol.asyncIterator)
|
|
273
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
274
|
-
var m = o[Symbol.asyncIterator], i;
|
|
275
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
276
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
277
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
278
|
-
}
|
|
279
|
-
function __makeTemplateObject(cooked, raw) {
|
|
280
|
-
if (Object.defineProperty) {
|
|
281
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
282
|
-
}
|
|
283
|
-
else {
|
|
284
|
-
cooked.raw = raw;
|
|
285
|
-
}
|
|
286
|
-
return cooked;
|
|
287
|
-
}
|
|
288
|
-
;
|
|
289
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
290
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
291
|
-
}) : function (o, v) {
|
|
292
|
-
o["default"] = v;
|
|
293
|
-
};
|
|
294
|
-
function __importStar(mod) {
|
|
295
|
-
if (mod && mod.__esModule)
|
|
296
|
-
return mod;
|
|
297
|
-
var result = {};
|
|
298
|
-
if (mod != null)
|
|
299
|
-
for (var k in mod)
|
|
300
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
301
|
-
__createBinding(result, mod, k);
|
|
302
|
-
__setModuleDefault(result, mod);
|
|
303
|
-
return result;
|
|
304
|
-
}
|
|
305
|
-
function __importDefault(mod) {
|
|
306
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
307
|
-
}
|
|
308
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
309
|
-
if (kind === "a" && !f)
|
|
310
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
311
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
312
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
313
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
314
|
-
}
|
|
315
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
316
|
-
if (kind === "m")
|
|
317
|
-
throw new TypeError("Private method is not writable");
|
|
318
|
-
if (kind === "a" && !f)
|
|
319
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
320
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
321
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
322
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* Maintains a set of selected items. Support selecting and deselecting items, and checking if a
|
|
327
|
-
* value is selected.
|
|
328
|
-
* When constructed with a `trackByFn`, all the items will be identified by applying the `trackByFn`
|
|
329
|
-
* on them. Because `trackByFn` requires the index of the item to be passed in, the `index` field is
|
|
330
|
-
* expected to be set when calling `isSelected`, `select` and `deselect`.
|
|
331
|
-
*/
|
|
332
|
-
var SelectionSet = /** @class */ (function () {
|
|
333
|
-
function SelectionSet(_multiple, _trackByFn) {
|
|
334
|
-
if (_multiple === void 0) { _multiple = false; }
|
|
335
|
-
this._multiple = _multiple;
|
|
336
|
-
this._trackByFn = _trackByFn;
|
|
337
|
-
this._selectionMap = new Map();
|
|
338
|
-
this.changed = new rxjs.Subject();
|
|
339
|
-
}
|
|
340
|
-
SelectionSet.prototype.isSelected = function (value) {
|
|
341
|
-
return this._selectionMap.has(this._getTrackedByValue(value));
|
|
342
|
-
};
|
|
343
|
-
SelectionSet.prototype.select = function () {
|
|
344
|
-
var e_1, _a;
|
|
345
|
-
var selects = [];
|
|
346
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
347
|
-
selects[_i] = arguments[_i];
|
|
348
|
-
}
|
|
349
|
-
if (!this._multiple && selects.length > 1 && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
350
|
-
throw Error('SelectionSet: not multiple selection');
|
|
351
|
-
}
|
|
352
|
-
var before = this._getCurrentSelection();
|
|
353
|
-
if (!this._multiple) {
|
|
354
|
-
this._selectionMap.clear();
|
|
355
|
-
}
|
|
356
|
-
var toSelect = [];
|
|
357
|
-
try {
|
|
358
|
-
for (var selects_1 = __values(selects), selects_1_1 = selects_1.next(); !selects_1_1.done; selects_1_1 = selects_1.next()) {
|
|
359
|
-
var select = selects_1_1.value;
|
|
360
|
-
if (this.isSelected(select)) {
|
|
361
|
-
continue;
|
|
362
|
-
}
|
|
363
|
-
toSelect.push(select);
|
|
364
|
-
this._markSelected(this._getTrackedByValue(select), select);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
368
|
-
finally {
|
|
369
|
-
try {
|
|
370
|
-
if (selects_1_1 && !selects_1_1.done && (_a = selects_1.return)) _a.call(selects_1);
|
|
371
|
-
}
|
|
372
|
-
finally { if (e_1) throw e_1.error; }
|
|
373
|
-
}
|
|
374
|
-
var after = this._getCurrentSelection();
|
|
375
|
-
this.changed.next({ before: before, after: after });
|
|
376
|
-
};
|
|
377
|
-
SelectionSet.prototype.deselect = function () {
|
|
378
|
-
var e_2, _a;
|
|
379
|
-
var selects = [];
|
|
380
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
381
|
-
selects[_i] = arguments[_i];
|
|
382
|
-
}
|
|
383
|
-
if (!this._multiple && selects.length > 1 && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
384
|
-
throw Error('SelectionSet: not multiple selection');
|
|
385
|
-
}
|
|
386
|
-
var before = this._getCurrentSelection();
|
|
387
|
-
var toDeselect = [];
|
|
388
|
-
try {
|
|
389
|
-
for (var selects_2 = __values(selects), selects_2_1 = selects_2.next(); !selects_2_1.done; selects_2_1 = selects_2.next()) {
|
|
390
|
-
var select = selects_2_1.value;
|
|
391
|
-
if (!this.isSelected(select)) {
|
|
392
|
-
continue;
|
|
393
|
-
}
|
|
394
|
-
toDeselect.push(select);
|
|
395
|
-
this._markDeselected(this._getTrackedByValue(select));
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
399
|
-
finally {
|
|
400
|
-
try {
|
|
401
|
-
if (selects_2_1 && !selects_2_1.done && (_a = selects_2.return)) _a.call(selects_2);
|
|
402
|
-
}
|
|
403
|
-
finally { if (e_2) throw e_2.error; }
|
|
404
|
-
}
|
|
405
|
-
var after = this._getCurrentSelection();
|
|
406
|
-
this.changed.next({ before: before, after: after });
|
|
407
|
-
};
|
|
408
|
-
SelectionSet.prototype._markSelected = function (key, toSelect) {
|
|
409
|
-
this._selectionMap.set(key, toSelect);
|
|
410
|
-
};
|
|
411
|
-
SelectionSet.prototype._markDeselected = function (key) {
|
|
412
|
-
this._selectionMap.delete(key);
|
|
413
|
-
};
|
|
414
|
-
SelectionSet.prototype._getTrackedByValue = function (select) {
|
|
415
|
-
if (!this._trackByFn) {
|
|
416
|
-
return select.value;
|
|
417
|
-
}
|
|
418
|
-
if (select.index == null && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
419
|
-
throw Error('SelectionSet: index required when trackByFn is used.');
|
|
420
|
-
}
|
|
421
|
-
return this._trackByFn(select.index, select.value);
|
|
422
|
-
};
|
|
423
|
-
SelectionSet.prototype._getCurrentSelection = function () {
|
|
424
|
-
return Array.from(this._selectionMap.values());
|
|
425
|
-
};
|
|
426
|
-
return SelectionSet;
|
|
427
|
-
}());
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* Manages the selection states of the items and provides methods to check and update the selection
|
|
431
|
-
* states.
|
|
432
|
-
* It must be applied to the parent element if `cdkSelectionToggle`, `cdkSelectAll`,
|
|
433
|
-
* `cdkRowSelection` and `cdkSelectionColumn` are applied.
|
|
434
|
-
*/
|
|
435
|
-
var CdkSelection = /** @class */ (function () {
|
|
436
|
-
function CdkSelection() {
|
|
437
|
-
/** Emits when selection changes. */
|
|
438
|
-
this.change = new core.EventEmitter();
|
|
439
|
-
this._destroyed = new rxjs.Subject();
|
|
440
|
-
this.selectAllState = 'none';
|
|
441
|
-
}
|
|
442
|
-
Object.defineProperty(CdkSelection.prototype, "dataSource", {
|
|
443
|
-
get: function () {
|
|
444
|
-
return this._dataSource;
|
|
445
|
-
},
|
|
446
|
-
set: function (dataSource) {
|
|
447
|
-
if (this._dataSource !== dataSource) {
|
|
448
|
-
this._switchDataSource(dataSource);
|
|
449
|
-
}
|
|
450
|
-
},
|
|
451
|
-
enumerable: false,
|
|
452
|
-
configurable: true
|
|
453
|
-
});
|
|
454
|
-
Object.defineProperty(CdkSelection.prototype, "multiple", {
|
|
455
|
-
/** Whether to support multiple selection */
|
|
456
|
-
get: function () {
|
|
457
|
-
return this._multiple;
|
|
458
|
-
},
|
|
459
|
-
set: function (multiple) {
|
|
460
|
-
this._multiple = coercion.coerceBooleanProperty(multiple);
|
|
461
|
-
},
|
|
462
|
-
enumerable: false,
|
|
463
|
-
configurable: true
|
|
464
|
-
});
|
|
465
|
-
CdkSelection.prototype._switchDataSource = function (dataSource) {
|
|
466
|
-
this._data = [];
|
|
467
|
-
// TODO: Move this logic to a shared function in `cdk/collections`.
|
|
468
|
-
if (collections.isDataSource(this._dataSource)) {
|
|
469
|
-
this._dataSource.disconnect(this);
|
|
470
|
-
}
|
|
471
|
-
if (this._renderChangeSubscription) {
|
|
472
|
-
this._renderChangeSubscription.unsubscribe();
|
|
473
|
-
this._renderChangeSubscription = null;
|
|
474
|
-
}
|
|
475
|
-
this._dataSource = dataSource;
|
|
476
|
-
};
|
|
477
|
-
CdkSelection.prototype._observeRenderChanges = function () {
|
|
478
|
-
var _this = this;
|
|
479
|
-
if (!this._dataSource) {
|
|
480
|
-
return;
|
|
481
|
-
}
|
|
482
|
-
var dataStream;
|
|
483
|
-
if (collections.isDataSource(this._dataSource)) {
|
|
484
|
-
dataStream = this._dataSource.connect(this);
|
|
485
|
-
}
|
|
486
|
-
else if (this._dataSource instanceof rxjs.Observable) {
|
|
487
|
-
dataStream = this._dataSource;
|
|
488
|
-
}
|
|
489
|
-
else if (Array.isArray(this._dataSource)) {
|
|
490
|
-
dataStream = rxjs.of(this._dataSource);
|
|
491
|
-
}
|
|
492
|
-
if (dataStream == null && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
493
|
-
throw Error('Unknown data source');
|
|
494
|
-
}
|
|
495
|
-
this._renderChangeSubscription =
|
|
496
|
-
dataStream.pipe(operators.takeUntil(this._destroyed)).subscribe(function (data) {
|
|
497
|
-
_this._data = data || [];
|
|
498
|
-
});
|
|
499
|
-
};
|
|
500
|
-
CdkSelection.prototype.ngOnInit = function () {
|
|
501
|
-
var _this = this;
|
|
502
|
-
this._selection = new SelectionSet(this._multiple, this.trackByFn);
|
|
503
|
-
this._selection.changed.pipe(operators.takeUntil(this._destroyed)).subscribe(function (change) {
|
|
504
|
-
_this._updateSelectAllState();
|
|
505
|
-
_this.change.emit(change);
|
|
506
|
-
});
|
|
507
|
-
};
|
|
508
|
-
CdkSelection.prototype.ngAfterContentChecked = function () {
|
|
509
|
-
if (this._dataSource && !this._renderChangeSubscription) {
|
|
510
|
-
this._observeRenderChanges();
|
|
511
|
-
}
|
|
512
|
-
};
|
|
513
|
-
CdkSelection.prototype.ngOnDestroy = function () {
|
|
514
|
-
this._destroyed.next();
|
|
515
|
-
this._destroyed.complete();
|
|
516
|
-
if (collections.isDataSource(this._dataSource)) {
|
|
517
|
-
this._dataSource.disconnect(this);
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
|
-
/** Toggles selection for a given value. `index` is required if `trackBy` is used. */
|
|
521
|
-
CdkSelection.prototype.toggleSelection = function (value, index) {
|
|
522
|
-
if (!!this.trackByFn && index == null && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
523
|
-
throw Error('CdkSelection: index required when trackBy is used');
|
|
524
|
-
}
|
|
525
|
-
if (this.isSelected(value, index)) {
|
|
526
|
-
this._selection.deselect({ value: value, index: index });
|
|
527
|
-
}
|
|
528
|
-
else {
|
|
529
|
-
this._selection.select({ value: value, index: index });
|
|
530
|
-
}
|
|
531
|
-
};
|
|
532
|
-
/**
|
|
533
|
-
* Toggles select-all. If no value is selected, select all values. If all values or some of the
|
|
534
|
-
* values are selected, de-select all values.
|
|
535
|
-
*/
|
|
536
|
-
CdkSelection.prototype.toggleSelectAll = function () {
|
|
537
|
-
if (!this._multiple && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
538
|
-
throw Error('CdkSelection: multiple selection not enabled');
|
|
539
|
-
}
|
|
540
|
-
if (this.selectAllState === 'none') {
|
|
541
|
-
this._selectAll();
|
|
542
|
-
}
|
|
543
|
-
else {
|
|
544
|
-
this._clearAll();
|
|
545
|
-
}
|
|
546
|
-
};
|
|
547
|
-
/** Checks whether a value is selected. `index` is required if `trackBy` is used. */
|
|
548
|
-
CdkSelection.prototype.isSelected = function (value, index) {
|
|
549
|
-
if (!!this.trackByFn && index == null && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
550
|
-
throw Error('CdkSelection: index required when trackBy is used');
|
|
551
|
-
}
|
|
552
|
-
return this._selection.isSelected({ value: value, index: index });
|
|
553
|
-
};
|
|
554
|
-
/** Checks whether all values are selected. */
|
|
555
|
-
CdkSelection.prototype.isAllSelected = function () {
|
|
556
|
-
var _this = this;
|
|
557
|
-
return this._data.every(function (value, index) { return _this._selection.isSelected({ value: value, index: index }); });
|
|
558
|
-
};
|
|
559
|
-
/** Checks whether partially selected. */
|
|
560
|
-
CdkSelection.prototype.isPartialSelected = function () {
|
|
561
|
-
var _this = this;
|
|
562
|
-
return !this.isAllSelected() &&
|
|
563
|
-
this._data.some(function (value, index) { return _this._selection.isSelected({ value: value, index: index }); });
|
|
564
|
-
};
|
|
565
|
-
CdkSelection.prototype._selectAll = function () {
|
|
566
|
-
var _a;
|
|
567
|
-
var toSelect = [];
|
|
568
|
-
this._data.forEach(function (value, index) {
|
|
569
|
-
toSelect.push({ value: value, index: index });
|
|
570
|
-
});
|
|
571
|
-
(_a = this._selection).select.apply(_a, __spreadArray([], __read(toSelect)));
|
|
572
|
-
};
|
|
573
|
-
CdkSelection.prototype._clearAll = function () {
|
|
574
|
-
var _a;
|
|
575
|
-
var toDeselect = [];
|
|
576
|
-
this._data.forEach(function (value, index) {
|
|
577
|
-
toDeselect.push({ value: value, index: index });
|
|
578
|
-
});
|
|
579
|
-
(_a = this._selection).deselect.apply(_a, __spreadArray([], __read(toDeselect)));
|
|
580
|
-
};
|
|
581
|
-
CdkSelection.prototype._updateSelectAllState = function () {
|
|
582
|
-
if (this.isAllSelected()) {
|
|
583
|
-
this.selectAllState = 'all';
|
|
584
|
-
}
|
|
585
|
-
else if (this.isPartialSelected()) {
|
|
586
|
-
this.selectAllState = 'partial';
|
|
587
|
-
}
|
|
588
|
-
else {
|
|
589
|
-
this.selectAllState = 'none';
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
|
-
return CdkSelection;
|
|
593
|
-
}());
|
|
594
|
-
CdkSelection.decorators = [
|
|
595
|
-
{ type: core.Directive, args: [{
|
|
596
|
-
selector: '[cdkSelection]',
|
|
597
|
-
exportAs: 'cdkSelection',
|
|
598
|
-
},] }
|
|
599
|
-
];
|
|
600
|
-
CdkSelection.propDecorators = {
|
|
601
|
-
dataSource: [{ type: core.Input }],
|
|
602
|
-
trackByFn: [{ type: core.Input, args: ['trackBy',] }],
|
|
603
|
-
multiple: [{ type: core.Input, args: ['cdkSelectionMultiple',] }],
|
|
604
|
-
change: [{ type: core.Output, args: ['cdkSelectionChange',] }]
|
|
605
|
-
};
|
|
606
|
-
|
|
607
|
-
/**
|
|
608
|
-
* @license
|
|
609
|
-
* Copyright Google LLC All Rights Reserved.
|
|
610
|
-
*
|
|
611
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
612
|
-
* found in the LICENSE file at https://angular.io/license
|
|
613
|
-
*/
|
|
614
|
-
/**
|
|
615
|
-
* Makes the element a select-all toggle.
|
|
616
|
-
*
|
|
617
|
-
* Must be used within a parent `CdkSelection` directive. It toggles the selection states
|
|
618
|
-
* of all the selection toggles connected with the `CdkSelection` directive.
|
|
619
|
-
* If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive
|
|
620
|
-
* automatically connects it with the select-all state provided by the `CdkSelection` directive. If
|
|
621
|
-
* not, use `checked$` to get the checked state, `indeterminate$` to get the indeterminate state,
|
|
622
|
-
* and `toggle()` to change the selection state.
|
|
623
|
-
*/
|
|
624
|
-
var CdkSelectAll = /** @class */ (function () {
|
|
625
|
-
function CdkSelectAll(_selection, _controlValueAccessor) {
|
|
626
|
-
var _this = this;
|
|
627
|
-
this._selection = _selection;
|
|
628
|
-
this._controlValueAccessor = _controlValueAccessor;
|
|
629
|
-
/**
|
|
630
|
-
* The checked state of the toggle.
|
|
631
|
-
* Resolves to `true` if all the values are selected, `false` if no value is selected.
|
|
632
|
-
*/
|
|
633
|
-
this.checked = this._selection.change.pipe(operators.switchMap(function () { return rxjs.of(_this._selection.isAllSelected()); }));
|
|
634
|
-
/**
|
|
635
|
-
* The indeterminate state of the toggle.
|
|
636
|
-
* Resolves to `true` if part (not all) of the values are selected, `false` if all values or no
|
|
637
|
-
* value at all are selected.
|
|
638
|
-
*/
|
|
639
|
-
this.indeterminate = this._selection.change.pipe(operators.switchMap(function () { return rxjs.of(_this._selection.isPartialSelected()); }));
|
|
640
|
-
this._destroyed = new rxjs.Subject();
|
|
641
|
-
}
|
|
642
|
-
/**
|
|
643
|
-
* Toggles the select-all state.
|
|
644
|
-
* @param event The click event if the toggle is triggered by a (mouse or keyboard) click. If
|
|
645
|
-
* using with a native `<input type="checkbox">`, the parameter is required for the
|
|
646
|
-
* indeterminate state to work properly.
|
|
647
|
-
*/
|
|
648
|
-
CdkSelectAll.prototype.toggle = function (event) {
|
|
649
|
-
var _this = this;
|
|
650
|
-
// This is needed when applying the directive on a native <input type="checkbox">
|
|
651
|
-
// checkbox. The default behavior needs to be prevented in order to support the indeterminate
|
|
652
|
-
// state. The timeout is also needed so the checkbox can show the latest state.
|
|
653
|
-
if (event) {
|
|
654
|
-
event.preventDefault();
|
|
655
|
-
}
|
|
656
|
-
setTimeout(function () {
|
|
657
|
-
_this._selection.toggleSelectAll();
|
|
658
|
-
});
|
|
659
|
-
};
|
|
660
|
-
CdkSelectAll.prototype.ngOnInit = function () {
|
|
661
|
-
this._assertValidParentSelection();
|
|
662
|
-
this._configureControlValueAccessor();
|
|
663
|
-
};
|
|
664
|
-
CdkSelectAll.prototype._configureControlValueAccessor = function () {
|
|
665
|
-
var _this = this;
|
|
666
|
-
if (this._controlValueAccessor && this._controlValueAccessor.length) {
|
|
667
|
-
this._controlValueAccessor[0].registerOnChange(function (e) {
|
|
668
|
-
if (e === true || e === false) {
|
|
669
|
-
_this.toggle();
|
|
670
|
-
}
|
|
671
|
-
});
|
|
672
|
-
this.checked.pipe(operators.takeUntil(this._destroyed)).subscribe(function (state) {
|
|
673
|
-
_this._controlValueAccessor[0].writeValue(state);
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
};
|
|
677
|
-
CdkSelectAll.prototype._assertValidParentSelection = function () {
|
|
678
|
-
if (!this._selection && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
679
|
-
throw Error('CdkSelectAll: missing CdkSelection in the parent');
|
|
680
|
-
}
|
|
681
|
-
if (!this._selection.multiple && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
682
|
-
throw Error('CdkSelectAll: CdkSelection must have cdkSelectionMultiple set to true');
|
|
683
|
-
}
|
|
684
|
-
};
|
|
685
|
-
CdkSelectAll.prototype.ngOnDestroy = function () {
|
|
686
|
-
this._destroyed.next();
|
|
687
|
-
this._destroyed.complete();
|
|
688
|
-
};
|
|
689
|
-
return CdkSelectAll;
|
|
690
|
-
}());
|
|
691
|
-
CdkSelectAll.decorators = [
|
|
692
|
-
{ type: core.Directive, args: [{
|
|
693
|
-
selector: '[cdkSelectAll]',
|
|
694
|
-
exportAs: 'cdkSelectAll',
|
|
695
|
-
},] }
|
|
696
|
-
];
|
|
697
|
-
CdkSelectAll.ctorParameters = function () { return [
|
|
698
|
-
{ type: CdkSelection, decorators: [{ type: core.Optional }, { type: core.Inject, args: [CdkSelection,] }] },
|
|
699
|
-
{ type: Array, decorators: [{ type: core.Optional }, { type: core.Self }, { type: core.Inject, args: [forms.NG_VALUE_ACCESSOR,] }] }
|
|
700
|
-
]; };
|
|
701
|
-
|
|
702
|
-
/**
|
|
703
|
-
* @license
|
|
704
|
-
* Copyright Google LLC All Rights Reserved.
|
|
705
|
-
*
|
|
706
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
707
|
-
* found in the LICENSE file at https://angular.io/license
|
|
708
|
-
*/
|
|
709
|
-
/**
|
|
710
|
-
* Makes the element a selection toggle.
|
|
711
|
-
*
|
|
712
|
-
* Must be used within a parent `CdkSelection` directive.
|
|
713
|
-
* Must be provided with the value. If `trackBy` is used on `CdkSelection`, the index of the value
|
|
714
|
-
* is required. If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive
|
|
715
|
-
* automatically connects it with the selection state provided by the `CdkSelection` directive. If
|
|
716
|
-
* not, use `checked$` to get the checked state of the value, and `toggle()` to change the selection
|
|
717
|
-
* state.
|
|
718
|
-
*/
|
|
719
|
-
var CdkSelectionToggle = /** @class */ (function () {
|
|
720
|
-
function CdkSelectionToggle(_selection, _controlValueAccessors) {
|
|
721
|
-
var _this = this;
|
|
722
|
-
this._selection = _selection;
|
|
723
|
-
this._controlValueAccessors = _controlValueAccessors;
|
|
724
|
-
/** The checked state of the selection toggle */
|
|
725
|
-
this.checked = this._selection.change.pipe(operators.switchMap(function () { return rxjs.of(_this._isSelected()); }), operators.distinctUntilChanged());
|
|
726
|
-
this._destroyed = new rxjs.Subject();
|
|
727
|
-
}
|
|
728
|
-
Object.defineProperty(CdkSelectionToggle.prototype, "index", {
|
|
729
|
-
/** The index of the value in the list. Required when used with `trackBy` */
|
|
730
|
-
get: function () { return this._index; },
|
|
731
|
-
set: function (index) { this._index = coercion.coerceNumberProperty(index); },
|
|
732
|
-
enumerable: false,
|
|
733
|
-
configurable: true
|
|
734
|
-
});
|
|
735
|
-
/** Toggles the selection */
|
|
736
|
-
CdkSelectionToggle.prototype.toggle = function () {
|
|
737
|
-
this._selection.toggleSelection(this.value, this.index);
|
|
738
|
-
};
|
|
739
|
-
CdkSelectionToggle.prototype.ngOnInit = function () {
|
|
740
|
-
this._assertValidParentSelection();
|
|
741
|
-
this._configureControlValueAccessor();
|
|
742
|
-
};
|
|
743
|
-
CdkSelectionToggle.prototype.ngOnDestroy = function () {
|
|
744
|
-
this._destroyed.next();
|
|
745
|
-
this._destroyed.complete();
|
|
746
|
-
};
|
|
747
|
-
CdkSelectionToggle.prototype._assertValidParentSelection = function () {
|
|
748
|
-
if (!this._selection && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
749
|
-
throw Error('CdkSelectAll: missing CdkSelection in the parent');
|
|
750
|
-
}
|
|
751
|
-
};
|
|
752
|
-
CdkSelectionToggle.prototype._configureControlValueAccessor = function () {
|
|
753
|
-
var _this = this;
|
|
754
|
-
if (this._controlValueAccessors && this._controlValueAccessors.length) {
|
|
755
|
-
this._controlValueAccessors[0].registerOnChange(function (e) {
|
|
756
|
-
if (typeof e === 'boolean') {
|
|
757
|
-
_this.toggle();
|
|
758
|
-
}
|
|
759
|
-
});
|
|
760
|
-
this.checked.pipe(operators.takeUntil(this._destroyed)).subscribe(function (state) {
|
|
761
|
-
_this._controlValueAccessors[0].writeValue(state);
|
|
762
|
-
});
|
|
763
|
-
}
|
|
764
|
-
};
|
|
765
|
-
CdkSelectionToggle.prototype._isSelected = function () {
|
|
766
|
-
return this._selection.isSelected(this.value, this.index);
|
|
767
|
-
};
|
|
768
|
-
return CdkSelectionToggle;
|
|
769
|
-
}());
|
|
770
|
-
CdkSelectionToggle.decorators = [
|
|
771
|
-
{ type: core.Directive, args: [{
|
|
772
|
-
selector: '[cdkSelectionToggle]',
|
|
773
|
-
exportAs: 'cdkSelectionToggle',
|
|
774
|
-
},] }
|
|
775
|
-
];
|
|
776
|
-
CdkSelectionToggle.ctorParameters = function () { return [
|
|
777
|
-
{ type: CdkSelection, decorators: [{ type: core.Optional }, { type: core.Inject, args: [CdkSelection,] }] },
|
|
778
|
-
{ type: Array, decorators: [{ type: core.Optional }, { type: core.Self }, { type: core.Inject, args: [forms.NG_VALUE_ACCESSOR,] }] }
|
|
779
|
-
]; };
|
|
780
|
-
CdkSelectionToggle.propDecorators = {
|
|
781
|
-
value: [{ type: core.Input, args: ['cdkSelectionToggleValue',] }],
|
|
782
|
-
index: [{ type: core.Input, args: ['cdkSelectionToggleIndex',] }]
|
|
783
|
-
};
|
|
784
|
-
|
|
785
|
-
/**
|
|
786
|
-
* @license
|
|
787
|
-
* Copyright Google LLC All Rights Reserved.
|
|
788
|
-
*
|
|
789
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
790
|
-
* found in the LICENSE file at https://angular.io/license
|
|
791
|
-
*/
|
|
792
|
-
/**
|
|
793
|
-
* Column that adds row selecting checkboxes and a select-all checkbox if `cdkSelectionMultiple` is
|
|
794
|
-
* `true`.
|
|
795
|
-
*
|
|
796
|
-
* Must be used within a parent `CdkSelection` directive.
|
|
797
|
-
*/
|
|
798
|
-
var CdkSelectionColumn = /** @class */ (function () {
|
|
799
|
-
function CdkSelectionColumn(_table, selection) {
|
|
800
|
-
this._table = _table;
|
|
801
|
-
this.selection = selection;
|
|
802
|
-
}
|
|
803
|
-
Object.defineProperty(CdkSelectionColumn.prototype, "name", {
|
|
804
|
-
/** Column name that should be used to reference this column. */
|
|
805
|
-
get: function () {
|
|
806
|
-
return this._name;
|
|
807
|
-
},
|
|
808
|
-
set: function (name) {
|
|
809
|
-
this._name = name;
|
|
810
|
-
this._syncColumnDefName();
|
|
811
|
-
},
|
|
812
|
-
enumerable: false,
|
|
813
|
-
configurable: true
|
|
814
|
-
});
|
|
815
|
-
CdkSelectionColumn.prototype.ngOnInit = function () {
|
|
816
|
-
if (!this.selection && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
817
|
-
throw Error('CdkSelectionColumn: missing CdkSelection in the parent');
|
|
818
|
-
}
|
|
819
|
-
this._syncColumnDefName();
|
|
820
|
-
if (this._table) {
|
|
821
|
-
this._columnDef.cell = this._cell;
|
|
822
|
-
this._columnDef.headerCell = this._headerCell;
|
|
823
|
-
this._table.addColumnDef(this._columnDef);
|
|
824
|
-
}
|
|
825
|
-
else if ((typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
826
|
-
throw Error('CdkSelectionColumn: missing parent table');
|
|
827
|
-
}
|
|
828
|
-
};
|
|
829
|
-
CdkSelectionColumn.prototype.ngOnDestroy = function () {
|
|
830
|
-
if (this._table) {
|
|
831
|
-
this._table.removeColumnDef(this._columnDef);
|
|
832
|
-
}
|
|
833
|
-
};
|
|
834
|
-
CdkSelectionColumn.prototype._syncColumnDefName = function () {
|
|
835
|
-
if (this._columnDef) {
|
|
836
|
-
this._columnDef.name = this._name;
|
|
837
|
-
}
|
|
838
|
-
};
|
|
839
|
-
return CdkSelectionColumn;
|
|
840
|
-
}());
|
|
841
|
-
CdkSelectionColumn.decorators = [
|
|
842
|
-
{ type: core.Component, args: [{
|
|
843
|
-
selector: 'cdk-selection-column',
|
|
844
|
-
template: "\n <ng-container cdkColumnDef>\n <th cdkHeaderCell *cdkHeaderCellDef>\n <input type=\"checkbox\" *ngIf=\"selection.multiple\"\n cdkSelectAll\n #allToggler=\"cdkSelectAll\"\n [checked]=\"allToggler.checked | async\"\n [indeterminate]=\"allToggler.indeterminate | async\"\n (click)=\"allToggler.toggle($event)\">\n </th>\n <td cdkCell *cdkCellDef=\"let row; let i = $index\">\n <input type=\"checkbox\"\n #toggler=\"cdkSelectionToggle\"\n cdkSelectionToggle\n [cdkSelectionToggleValue]=\"row\"\n [cdkSelectionToggleIndex]=\"i\"\n (click)=\"toggler.toggle()\"\n [checked]=\"toggler.checked | async\">\n </td>\n </ng-container>\n ",
|
|
845
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
846
|
-
encapsulation: core.ViewEncapsulation.None
|
|
847
|
-
},] }
|
|
848
|
-
];
|
|
849
|
-
CdkSelectionColumn.ctorParameters = function () { return [
|
|
850
|
-
{ type: table.CdkTable, decorators: [{ type: core.Optional }, { type: core.Inject, args: [table.CdkTable,] }] },
|
|
851
|
-
{ type: CdkSelection, decorators: [{ type: core.Optional }, { type: core.Inject, args: [CdkSelection,] }] }
|
|
852
|
-
]; };
|
|
853
|
-
CdkSelectionColumn.propDecorators = {
|
|
854
|
-
name: [{ type: core.Input, args: ['cdkSelectionColumnName',] }],
|
|
855
|
-
_columnDef: [{ type: core.ViewChild, args: [table.CdkColumnDef, { static: true },] }],
|
|
856
|
-
_cell: [{ type: core.ViewChild, args: [table.CdkCellDef, { static: true },] }],
|
|
857
|
-
_headerCell: [{ type: core.ViewChild, args: [table.CdkHeaderCellDef, { static: true },] }]
|
|
858
|
-
};
|
|
859
|
-
|
|
860
|
-
/**
|
|
861
|
-
* @license
|
|
862
|
-
* Copyright Google LLC All Rights Reserved.
|
|
863
|
-
*
|
|
864
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
865
|
-
* found in the LICENSE file at https://angular.io/license
|
|
866
|
-
*/
|
|
867
|
-
/**
|
|
868
|
-
* Applies `cdk-selected` class and `aria-selected` to an element.
|
|
869
|
-
*
|
|
870
|
-
* Must be used within a parent `CdkSelection` directive.
|
|
871
|
-
* Must be provided with the value. The index is required if `trackBy` is used on the `CdkSelection`
|
|
872
|
-
* directive.
|
|
873
|
-
*/
|
|
874
|
-
var CdkRowSelection = /** @class */ (function () {
|
|
875
|
-
function CdkRowSelection(_selection) {
|
|
876
|
-
this._selection = _selection;
|
|
877
|
-
}
|
|
878
|
-
Object.defineProperty(CdkRowSelection.prototype, "index", {
|
|
879
|
-
get: function () { return this._index; },
|
|
880
|
-
set: function (index) { this._index = coercion.coerceNumberProperty(index); },
|
|
881
|
-
enumerable: false,
|
|
882
|
-
configurable: true
|
|
883
|
-
});
|
|
884
|
-
return CdkRowSelection;
|
|
885
|
-
}());
|
|
886
|
-
CdkRowSelection.decorators = [
|
|
887
|
-
{ type: core.Directive, args: [{
|
|
888
|
-
selector: '[cdkRowSelection]',
|
|
889
|
-
host: {
|
|
890
|
-
'[class.cdk-selected]': '_selection.isSelected(this.value, this.index)',
|
|
891
|
-
'[attr.aria-selected]': '_selection.isSelected(this.value, this.index)',
|
|
892
|
-
},
|
|
893
|
-
},] }
|
|
894
|
-
];
|
|
895
|
-
CdkRowSelection.ctorParameters = function () { return [
|
|
896
|
-
{ type: CdkSelection }
|
|
897
|
-
]; };
|
|
898
|
-
CdkRowSelection.propDecorators = {
|
|
899
|
-
value: [{ type: core.Input, args: ['cdkRowSelectionValue',] }],
|
|
900
|
-
index: [{ type: core.Input, args: ['cdkRowSelectionIndex',] }]
|
|
901
|
-
};
|
|
902
|
-
|
|
903
|
-
/**
|
|
904
|
-
* @license
|
|
905
|
-
* Copyright Google LLC All Rights Reserved.
|
|
906
|
-
*
|
|
907
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
908
|
-
* found in the LICENSE file at https://angular.io/license
|
|
909
|
-
*/
|
|
910
|
-
var CdkSelectionModule = /** @class */ (function () {
|
|
911
|
-
function CdkSelectionModule() {
|
|
912
|
-
}
|
|
913
|
-
return CdkSelectionModule;
|
|
914
|
-
}());
|
|
915
|
-
CdkSelectionModule.decorators = [
|
|
916
|
-
{ type: core.NgModule, args: [{
|
|
917
|
-
imports: [
|
|
918
|
-
common.CommonModule,
|
|
919
|
-
table.CdkTableModule,
|
|
920
|
-
],
|
|
921
|
-
exports: [
|
|
922
|
-
CdkSelection,
|
|
923
|
-
CdkSelectionToggle,
|
|
924
|
-
CdkSelectAll,
|
|
925
|
-
CdkSelectionColumn,
|
|
926
|
-
CdkRowSelection,
|
|
927
|
-
],
|
|
928
|
-
declarations: [
|
|
929
|
-
CdkSelection,
|
|
930
|
-
CdkSelectionToggle,
|
|
931
|
-
CdkSelectAll,
|
|
932
|
-
CdkSelectionColumn,
|
|
933
|
-
CdkRowSelection,
|
|
934
|
-
],
|
|
935
|
-
},] }
|
|
936
|
-
];
|
|
937
|
-
|
|
938
|
-
/**
|
|
939
|
-
* @license
|
|
940
|
-
* Copyright Google LLC All Rights Reserved.
|
|
941
|
-
*
|
|
942
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
943
|
-
* found in the LICENSE file at https://angular.io/license
|
|
944
|
-
*/
|
|
945
|
-
|
|
946
|
-
/**
|
|
947
|
-
* Generated bundle index. Do not edit.
|
|
948
|
-
*/
|
|
949
|
-
|
|
950
|
-
exports.CdkRowSelection = CdkRowSelection;
|
|
951
|
-
exports.CdkSelectAll = CdkSelectAll;
|
|
952
|
-
exports.CdkSelection = CdkSelection;
|
|
953
|
-
exports.CdkSelectionColumn = CdkSelectionColumn;
|
|
954
|
-
exports.CdkSelectionModule = CdkSelectionModule;
|
|
955
|
-
exports.CdkSelectionToggle = CdkSelectionToggle;
|
|
956
|
-
exports.SelectionSet = SelectionSet;
|
|
957
|
-
|
|
958
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
959
|
-
|
|
960
|
-
})));
|
|
961
|
-
//# sourceMappingURL=cdk-experimental-selection.umd.js.map
|