@ng-matero/extensions 15.5.0 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alert/alert.d.ts +1 -1
- package/button/button-loading.d.ts +1 -1
- package/checkbox-group/checkbox-group.d.ts +1 -1
- package/colorpicker/colorpicker-input.d.ts +1 -1
- package/colorpicker/colorpicker-toggle.d.ts +1 -1
- package/colorpicker/colorpicker.d.ts +2 -2
- package/datetimepicker/calendar-body.d.ts +1 -1
- package/datetimepicker/calendar.d.ts +1 -1
- package/datetimepicker/clock.d.ts +1 -1
- package/datetimepicker/clock.scss +1 -4
- package/datetimepicker/datetimepicker-input.d.ts +1 -1
- package/datetimepicker/datetimepicker-toggle.d.ts +1 -1
- package/datetimepicker/datetimepicker.d.ts +2 -2
- package/datetimepicker/month-view.d.ts +1 -1
- package/datetimepicker/multi-year-view.d.ts +1 -1
- package/datetimepicker/time.d.ts +2 -2
- package/datetimepicker/year-view.d.ts +1 -1
- package/esm2022/alert/alert-module.mjs +19 -0
- package/esm2022/alert/alert.mjs +53 -0
- package/esm2022/button/button-loading.mjs +77 -0
- package/esm2022/button/button-module.mjs +21 -0
- package/esm2022/checkbox-group/checkbox-group-module.mjs +22 -0
- package/esm2022/checkbox-group/checkbox-group.mjs +234 -0
- package/esm2022/colorpicker/colorpicker-input.mjs +229 -0
- package/esm2022/colorpicker/colorpicker-module.mjs +64 -0
- package/esm2022/colorpicker/colorpicker-toggle.mjs +103 -0
- package/esm2022/colorpicker/colorpicker.mjs +367 -0
- package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +46 -0
- package/esm2022/column-resize/column-resize-directives/column-resize.mjs +46 -0
- package/esm2022/column-resize/column-resize-module.mjs +29 -0
- package/esm2022/column-resize/column-resize-notifier.mjs +49 -0
- package/esm2022/column-resize/column-resize.mjs +83 -0
- package/esm2022/column-resize/column-size-store.mjs +21 -0
- package/esm2022/column-resize/event-dispatcher.mjs +68 -0
- package/esm2022/column-resize/overlay-handle.mjs +147 -0
- package/esm2022/column-resize/resizable.mjs +200 -0
- package/esm2022/column-resize/resize-strategy.mjs +235 -0
- package/{esm2020 → esm2022}/core/datetime/datetime-adapter.mjs +1 -1
- package/esm2022/core/datetime/datetime.module.mjs +44 -0
- package/esm2022/core/datetime/native-datetime-adapter.mjs +139 -0
- package/esm2022/core/pipes/is-template-ref.pipe.mjs +15 -0
- package/esm2022/core/pipes/pipes.module.mjs +20 -0
- package/esm2022/core/pipes/to-observable.pipe.mjs +16 -0
- package/esm2022/datetimepicker/calendar-body.mjs +79 -0
- package/esm2022/datetimepicker/calendar.mjs +672 -0
- package/esm2022/datetimepicker/clock.mjs +354 -0
- package/esm2022/datetimepicker/datetimepicker-input.mjs +350 -0
- package/esm2022/datetimepicker/datetimepicker-intl.mjs +64 -0
- package/esm2022/datetimepicker/datetimepicker-module.mjs +83 -0
- package/esm2022/datetimepicker/datetimepicker-toggle.mjs +106 -0
- package/esm2022/datetimepicker/datetimepicker.mjs +529 -0
- package/esm2022/datetimepicker/month-view.mjs +149 -0
- package/esm2022/datetimepicker/multi-year-view.mjs +215 -0
- package/esm2022/datetimepicker/time.mjs +458 -0
- package/esm2022/datetimepicker/year-view.mjs +139 -0
- package/esm2022/dialog/dialog-container.mjs +36 -0
- package/esm2022/dialog/dialog-module.mjs +25 -0
- package/esm2022/dialog/dialog.mjs +75 -0
- package/esm2022/drawer/drawer-container.mjs +253 -0
- package/esm2022/drawer/drawer-module.mjs +23 -0
- package/esm2022/drawer/drawer.mjs +167 -0
- package/esm2022/grid/cell.mjs +117 -0
- package/{esm2020 → esm2022}/grid/column-menu.mjs +6 -5
- package/esm2022/grid/column-resize/column-resize-directives/column-resize-flex.mjs +38 -0
- package/esm2022/grid/column-resize/column-resize-directives/column-resize.mjs +38 -0
- package/esm2022/grid/column-resize/column-resize-module.mjs +44 -0
- package/esm2022/grid/column-resize/overlay-handle.mjs +61 -0
- package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +63 -0
- package/esm2022/grid/column-resize/resize-strategy.mjs +43 -0
- package/esm2022/grid/expansion-toggle.mjs +65 -0
- package/esm2022/grid/grid-module.mjs +137 -0
- package/esm2022/grid/grid-pipes.mjs +113 -0
- package/esm2022/grid/grid-utils.mjs +64 -0
- package/esm2022/grid/grid.mjs +630 -0
- package/esm2022/loader/loader-module.mjs +21 -0
- package/esm2022/loader/loader.mjs +70 -0
- package/esm2022/popover/popover-content.mjs +92 -0
- package/esm2022/popover/popover-module.mjs +25 -0
- package/esm2022/popover/popover-target.mjs +18 -0
- package/esm2022/popover/popover-trigger.mjs +472 -0
- package/esm2022/popover/popover.mjs +384 -0
- package/esm2022/progress/progress-module.mjs +19 -0
- package/esm2022/progress/progress.mjs +56 -0
- package/esm2022/select/option.mjs +58 -0
- package/esm2022/select/select-module.mjs +75 -0
- package/esm2022/select/select.mjs +561 -0
- package/esm2022/select/templates.mjs +135 -0
- package/esm2022/slider/slider-module.mjs +20 -0
- package/esm2022/slider/slider.mjs +1116 -0
- package/esm2022/split/split-module.mjs +20 -0
- package/esm2022/split/split-pane.mjs +150 -0
- package/esm2022/split/split.mjs +635 -0
- package/esm2022/tooltip/tooltip-module.mjs +25 -0
- package/esm2022/tooltip/tooltip.mjs +930 -0
- package/{fesm2020 → fesm2022}/mtxAlert.mjs +7 -7
- package/{fesm2020 → fesm2022}/mtxAlert.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mtxButton.mjs +7 -7
- package/{fesm2015 → fesm2022}/mtxButton.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mtxCheckboxGroup.mjs +13 -13
- package/{fesm2020 → fesm2022}/mtxCheckboxGroup.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mtxColorpicker.mjs +41 -41
- package/{fesm2020 → fesm2022}/mtxColorpicker.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mtxColumnResize.mjs +46 -46
- package/{fesm2015 → fesm2022}/mtxColumnResize.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mtxCore.mjs +26 -26
- package/fesm2022/mtxCore.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/mtxDatetimepicker.mjs +84 -80
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/mtxDialog.mjs +10 -10
- package/{fesm2015 → fesm2022}/mtxDialog.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mtxDrawer.mjs +10 -10
- package/{fesm2020 → fesm2022}/mtxDrawer.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mtxGrid.mjs +120 -120
- package/{fesm2020 → fesm2022}/mtxGrid.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mtxLoader.mjs +7 -7
- package/{fesm2020 → fesm2022}/mtxLoader.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mtxPopover.mjs +19 -19
- package/{fesm2020 → fesm2022}/mtxPopover.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mtxProgress.mjs +7 -7
- package/{fesm2015 → fesm2022}/mtxProgress.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mtxSelect.mjs +68 -68
- package/{fesm2015 → fesm2022}/mtxSelect.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mtxSlider.mjs +7 -7
- package/{fesm2020 → fesm2022}/mtxSlider.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mtxSplit.mjs +10 -10
- package/{fesm2020 → fesm2022}/mtxSplit.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mtxTooltip.mjs +16 -16
- package/{fesm2015 → fesm2022}/mtxTooltip.mjs.map +1 -1
- package/grid/cell.d.ts +1 -1
- package/grid/column-menu.d.ts +1 -1
- package/grid/column-resize/resizable-directives/resizable.d.ts +1 -1
- package/grid/expansion-toggle.d.ts +1 -1
- package/grid/grid.d.ts +2 -2
- package/loader/loader.d.ts +1 -1
- package/package.json +69 -109
- package/popover/popover-trigger.d.ts +1 -1
- package/popover/popover.d.ts +1 -1
- package/progress/progress.d.ts +1 -1
- package/select/option.d.ts +1 -1
- package/select/select.d.ts +1 -1
- package/select/select.scss +0 -7
- package/slider/slider.d.ts +1 -1
- package/split/split-pane.d.ts +1 -1
- package/split/split.d.ts +1 -1
- package/tooltip/tooltip.d.ts +1 -1
- package/tooltip/tooltip.scss +1 -4
- package/esm2020/alert/alert-module.mjs +0 -18
- package/esm2020/alert/alert.mjs +0 -52
- package/esm2020/button/button-loading.mjs +0 -76
- package/esm2020/button/button-module.mjs +0 -20
- package/esm2020/checkbox-group/checkbox-group-module.mjs +0 -21
- package/esm2020/checkbox-group/checkbox-group.mjs +0 -233
- package/esm2020/colorpicker/colorpicker-input.mjs +0 -228
- package/esm2020/colorpicker/colorpicker-module.mjs +0 -63
- package/esm2020/colorpicker/colorpicker-toggle.mjs +0 -101
- package/esm2020/colorpicker/colorpicker.mjs +0 -365
- package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +0 -45
- package/esm2020/column-resize/column-resize-directives/column-resize.mjs +0 -45
- package/esm2020/column-resize/column-resize-module.mjs +0 -28
- package/esm2020/column-resize/column-resize-notifier.mjs +0 -47
- package/esm2020/column-resize/column-resize.mjs +0 -82
- package/esm2020/column-resize/column-size-store.mjs +0 -20
- package/esm2020/column-resize/event-dispatcher.mjs +0 -67
- package/esm2020/column-resize/overlay-handle.mjs +0 -146
- package/esm2020/column-resize/resizable.mjs +0 -199
- package/esm2020/column-resize/resize-strategy.mjs +0 -232
- package/esm2020/core/datetime/datetime.module.mjs +0 -42
- package/esm2020/core/datetime/native-datetime-adapter.mjs +0 -138
- package/esm2020/core/pipes/is-template-ref.pipe.mjs +0 -14
- package/esm2020/core/pipes/pipes.module.mjs +0 -19
- package/esm2020/core/pipes/to-observable.pipe.mjs +0 -15
- package/esm2020/datetimepicker/calendar-body.mjs +0 -78
- package/esm2020/datetimepicker/calendar.mjs +0 -671
- package/esm2020/datetimepicker/clock.mjs +0 -349
- package/esm2020/datetimepicker/datetimepicker-input.mjs +0 -349
- package/esm2020/datetimepicker/datetimepicker-intl.mjs +0 -63
- package/esm2020/datetimepicker/datetimepicker-module.mjs +0 -82
- package/esm2020/datetimepicker/datetimepicker-toggle.mjs +0 -104
- package/esm2020/datetimepicker/datetimepicker.mjs +0 -527
- package/esm2020/datetimepicker/month-view.mjs +0 -148
- package/esm2020/datetimepicker/multi-year-view.mjs +0 -214
- package/esm2020/datetimepicker/time.mjs +0 -456
- package/esm2020/datetimepicker/year-view.mjs +0 -138
- package/esm2020/dialog/dialog-container.mjs +0 -35
- package/esm2020/dialog/dialog-module.mjs +0 -24
- package/esm2020/dialog/dialog.mjs +0 -74
- package/esm2020/drawer/drawer-container.mjs +0 -252
- package/esm2020/drawer/drawer-module.mjs +0 -22
- package/esm2020/drawer/drawer.mjs +0 -166
- package/esm2020/grid/cell.mjs +0 -116
- package/esm2020/grid/column-resize/column-resize-directives/column-resize-flex.mjs +0 -37
- package/esm2020/grid/column-resize/column-resize-directives/column-resize.mjs +0 -37
- package/esm2020/grid/column-resize/column-resize-module.mjs +0 -42
- package/esm2020/grid/column-resize/overlay-handle.mjs +0 -60
- package/esm2020/grid/column-resize/resizable-directives/resizable.mjs +0 -62
- package/esm2020/grid/column-resize/resize-strategy.mjs +0 -42
- package/esm2020/grid/expansion-toggle.mjs +0 -64
- package/esm2020/grid/grid-module.mjs +0 -136
- package/esm2020/grid/grid-pipes.mjs +0 -108
- package/esm2020/grid/grid-utils.mjs +0 -63
- package/esm2020/grid/grid.mjs +0 -628
- package/esm2020/loader/loader-module.mjs +0 -20
- package/esm2020/loader/loader.mjs +0 -69
- package/esm2020/popover/popover-content.mjs +0 -90
- package/esm2020/popover/popover-module.mjs +0 -24
- package/esm2020/popover/popover-target.mjs +0 -17
- package/esm2020/popover/popover-trigger.mjs +0 -471
- package/esm2020/popover/popover.mjs +0 -383
- package/esm2020/progress/progress-module.mjs +0 -18
- package/esm2020/progress/progress.mjs +0 -55
- package/esm2020/select/option.mjs +0 -57
- package/esm2020/select/select-module.mjs +0 -74
- package/esm2020/select/select.mjs +0 -560
- package/esm2020/select/templates.mjs +0 -124
- package/esm2020/slider/slider-module.mjs +0 -19
- package/esm2020/slider/slider.mjs +0 -1115
- package/esm2020/split/split-module.mjs +0 -19
- package/esm2020/split/split-pane.mjs +0 -149
- package/esm2020/split/split.mjs +0 -634
- package/esm2020/tooltip/tooltip-module.mjs +0 -24
- package/esm2020/tooltip/tooltip.mjs +0 -926
- package/fesm2015/mtxAlert.mjs +0 -74
- package/fesm2015/mtxAlert.mjs.map +0 -1
- package/fesm2015/mtxButton.mjs +0 -99
- package/fesm2015/mtxCheckboxGroup.mjs +0 -256
- package/fesm2015/mtxCheckboxGroup.mjs.map +0 -1
- package/fesm2015/mtxColorpicker.mjs +0 -767
- package/fesm2015/mtxColorpicker.mjs.map +0 -1
- package/fesm2015/mtxColumnResize.mjs +0 -959
- package/fesm2015/mtxCore.mjs +0 -374
- package/fesm2015/mtxCore.mjs.map +0 -1
- package/fesm2015/mtxDatetimepicker.mjs +0 -3164
- package/fesm2015/mtxDatetimepicker.mjs.map +0 -1
- package/fesm2015/mtxDialog.mjs +0 -130
- package/fesm2015/mtxDrawer.mjs +0 -578
- package/fesm2015/mtxDrawer.mjs.map +0 -1
- package/fesm2015/mtxGrid.mjs +0 -1514
- package/fesm2015/mtxGrid.mjs.map +0 -1
- package/fesm2015/mtxLoader.mjs +0 -93
- package/fesm2015/mtxLoader.mjs.map +0 -1
- package/fesm2015/mtxPopover.mjs +0 -1027
- package/fesm2015/mtxPopover.mjs.map +0 -1
- package/fesm2015/mtxProgress.mjs +0 -77
- package/fesm2015/mtxSelect.mjs +0 -814
- package/fesm2015/mtxSlider.mjs +0 -1139
- package/fesm2015/mtxSlider.mjs.map +0 -1
- package/fesm2015/mtxSplit.mjs +0 -1025
- package/fesm2015/mtxSplit.mjs.map +0 -1
- package/fesm2015/mtxTooltip.mjs +0 -982
- package/fesm2020/mtxButton.mjs.map +0 -1
- package/fesm2020/mtxColumnResize.mjs.map +0 -1
- package/fesm2020/mtxCore.mjs.map +0 -1
- package/fesm2020/mtxDatetimepicker.mjs.map +0 -1
- package/fesm2020/mtxDialog.mjs.map +0 -1
- package/fesm2020/mtxProgress.mjs.map +0 -1
- package/fesm2020/mtxSelect.mjs.map +0 -1
- package/fesm2020/mtxTooltip.mjs.map +0 -1
- package/fesm2020/ng-matero-extensions.mjs +0 -9
- package/fesm2020/ng-matero-extensions.mjs.map +0 -1
- /package/{esm2020 → esm2022}/alert/mtxAlert.mjs +0 -0
- /package/{esm2020 → esm2022}/alert/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/button/mtxButton.mjs +0 -0
- /package/{esm2020 → esm2022}/button/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox-group/interfaces.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox-group/mtxCheckboxGroup.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox-group/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/colorpicker-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/mtxColorpicker.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/column-resize/column-resize-directives/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/column-resize/mtxColumnResize.mjs +0 -0
- /package/{esm2020 → esm2022}/column-resize/polyfill.mjs +0 -0
- /package/{esm2020 → esm2022}/column-resize/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/column-resize/resize-ref.mjs +0 -0
- /package/{esm2020 → esm2022}/column-resize/selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/core/datetime/datetime-formats.mjs +0 -0
- /package/{esm2020 → esm2022}/core/datetime/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/datetime/native-datetime-formats.mjs +0 -0
- /package/{esm2020 → esm2022}/core/mtxCore.mjs +0 -0
- /package/{esm2020 → esm2022}/core/pipes/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/datetimepicker/datetimepicker-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/datetimepicker/datetimepicker-errors.mjs +0 -0
- /package/{esm2020 → esm2022}/datetimepicker/datetimepicker-filtertype.mjs +0 -0
- /package/{esm2020 → esm2022}/datetimepicker/datetimepicker-types.mjs +0 -0
- /package/{esm2020 → esm2022}/datetimepicker/mtxDatetimepicker.mjs +0 -0
- /package/{esm2020 → esm2022}/datetimepicker/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/dialog-config.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/mtxDialog.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/drawer-animation.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/drawer-config.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/drawer-ref.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/mtxDrawer.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/grid/column-resize/column-resize-directives/common.mjs +0 -0
- /package/{esm2020 → esm2022}/grid/column-resize/resizable-directives/common.mjs +0 -0
- /package/{esm2020 → esm2022}/grid/interfaces.mjs +0 -0
- /package/{esm2020 → esm2022}/grid/mtxGrid.mjs +0 -0
- /package/{esm2020 → esm2022}/grid/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/loader/mtxLoader.mjs +0 -0
- /package/{esm2020 → esm2022}/loader/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/ng-matero-extensions.mjs +0 -0
- /package/{esm2020 → esm2022}/popover/mtxPopover.mjs +0 -0
- /package/{esm2020 → esm2022}/popover/popover-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/popover/popover-errors.mjs +0 -0
- /package/{esm2020 → esm2022}/popover/popover-interfaces.mjs +0 -0
- /package/{esm2020 → esm2022}/popover/popover-types.mjs +0 -0
- /package/{esm2020 → esm2022}/popover/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/progress/mtxProgress.mjs +0 -0
- /package/{esm2020 → esm2022}/progress/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/select/mtxSelect.mjs +0 -0
- /package/{esm2020 → esm2022}/select/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/slider/mtxSlider.mjs +0 -0
- /package/{esm2020 → esm2022}/slider/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/split/interfaces.mjs +0 -0
- /package/{esm2020 → esm2022}/split/mtxSplit.mjs +0 -0
- /package/{esm2020 → esm2022}/split/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/split/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/mtxTooltip.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/tooltip-animations.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-matero-extensions.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-matero-extensions.mjs.map +0 -0
package/fesm2015/mtxGrid.mjs
DELETED
|
@@ -1,1514 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Inject, Directive, Component, ChangeDetectionStrategy, ViewEncapsulation, HostBinding, Input, Pipe, EventEmitter, Output, ViewChild, HostListener, InjectionToken, Optional, ContentChildren, NgModule } from '@angular/core';
|
|
3
|
-
import * as i3$1 from '@angular/common';
|
|
4
|
-
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
5
|
-
import * as i2$1 from '@angular/forms';
|
|
6
|
-
import { FormsModule } from '@angular/forms';
|
|
7
|
-
import * as i3$3 from '@angular/material/table';
|
|
8
|
-
import { MatTableDataSource, MatRowDef, MatHeaderRowDef, MatFooterRow, MatTable, MatTableModule } from '@angular/material/table';
|
|
9
|
-
import * as i4$2 from '@angular/material/sort';
|
|
10
|
-
import { MatSort, MatSortModule } from '@angular/material/sort';
|
|
11
|
-
import * as i5$1 from '@angular/material/paginator';
|
|
12
|
-
import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
|
|
13
|
-
import * as i3$2 from '@angular/material/checkbox';
|
|
14
|
-
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
15
|
-
import * as i4$1 from '@angular/material/button';
|
|
16
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
17
|
-
import * as i8$1 from '@angular/material/progress-bar';
|
|
18
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
19
|
-
import * as i5 from '@angular/material/chips';
|
|
20
|
-
import { MatChipsModule } from '@angular/material/chips';
|
|
21
|
-
import * as i6 from '@angular/material/tooltip';
|
|
22
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
23
|
-
import * as i7 from '@angular/material/icon';
|
|
24
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
25
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
26
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
27
|
-
import * as i6$1 from '@angular/material/menu';
|
|
28
|
-
import { MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
|
|
29
|
-
import * as i7$1 from '@angular/cdk/drag-drop';
|
|
30
|
-
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
31
|
-
import * as i8 from '@ng-matero/extensions/core';
|
|
32
|
-
import { MtxPipesModule } from '@ng-matero/extensions/core';
|
|
33
|
-
import * as i1$1 from '@ng-matero/extensions/dialog';
|
|
34
|
-
import { MtxDialogModule } from '@ng-matero/extensions/dialog';
|
|
35
|
-
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
36
|
-
import { SelectionModel } from '@angular/cdk/collections';
|
|
37
|
-
import * as i2 from '@ng-matero/extensions/column-resize';
|
|
38
|
-
import { CdkFlexTableResizeStrategy, ResizeStrategy, ColumnResizeNotifier, HeaderRowEventDispatcher, ColumnResizeNotifierSource, TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER, ColumnResize, ResizeOverlayHandle, Resizable } from '@ng-matero/extensions/column-resize';
|
|
39
|
-
export { TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER as MAT_TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER } from '@ng-matero/extensions/column-resize';
|
|
40
|
-
import * as i1 from '@angular/cdk/table';
|
|
41
|
-
import { _COALESCED_STYLE_SCHEDULER } from '@angular/cdk/table';
|
|
42
|
-
import * as i3 from '@angular/cdk/bidi';
|
|
43
|
-
import * as i4 from '@angular/cdk/overlay';
|
|
44
|
-
import { OverlayModule } from '@angular/cdk/overlay';
|
|
45
|
-
import PhotoViewer from 'photoviewer';
|
|
46
|
-
import { isObservable } from 'rxjs';
|
|
47
|
-
|
|
48
|
-
class MtxGridUtils {
|
|
49
|
-
constructor() { }
|
|
50
|
-
/**
|
|
51
|
-
* Get cell's value based on the data and column's field (e.g. `a.b.c`)
|
|
52
|
-
* @param rowData Row data
|
|
53
|
-
* @param colDef Column definition
|
|
54
|
-
* @returns
|
|
55
|
-
*/
|
|
56
|
-
getCellValue(rowData, colDef) {
|
|
57
|
-
const keyArr = colDef.field ? colDef.field.split('.') : [];
|
|
58
|
-
let tmp = '';
|
|
59
|
-
keyArr.forEach((key, i) => {
|
|
60
|
-
if (i === 0) {
|
|
61
|
-
tmp = rowData[key];
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
tmp = tmp && tmp[key];
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
return tmp;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Get all data of a col
|
|
71
|
-
* @param data All data
|
|
72
|
-
* @param colDef Column definition
|
|
73
|
-
* @returns
|
|
74
|
-
*/
|
|
75
|
-
getColData(data, colDef) {
|
|
76
|
-
return data.map(rowData => this.getCellValue(rowData, colDef));
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Remove white spaces in a string and convert string to array
|
|
80
|
-
* @param str
|
|
81
|
-
* @returns
|
|
82
|
-
*/
|
|
83
|
-
str2arr(str) {
|
|
84
|
-
return str.replace(/[\r\n\s]/g, '').split(',');
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Whether the value is empty (`null`, `undefined`, `''`, `[]`)
|
|
88
|
-
* @param value
|
|
89
|
-
* @returns
|
|
90
|
-
*/
|
|
91
|
-
isEmpty(value) {
|
|
92
|
-
return value == null || value.toString() === '';
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Whether the value contain HTML
|
|
96
|
-
* @param value
|
|
97
|
-
* @returns
|
|
98
|
-
*/
|
|
99
|
-
isContainHTML(value) {
|
|
100
|
-
return /<\/?[a-z][\s\S]*>/i.test(value);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
/** @nocollapse */ MtxGridUtils.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridUtils, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
104
|
-
/** @nocollapse */ MtxGridUtils.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridUtils });
|
|
105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridUtils, decorators: [{
|
|
106
|
-
type: Injectable
|
|
107
|
-
}], ctorParameters: function () { return []; } });
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* @license
|
|
111
|
-
* Copyright Google LLC All Rights Reserved.
|
|
112
|
-
*
|
|
113
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
114
|
-
* found in the LICENSE file at https://angular.io/license
|
|
115
|
-
*/
|
|
116
|
-
/**
|
|
117
|
-
* Overrides CdkFlexTableResizeStrategy to match mat-column elements.
|
|
118
|
-
*/
|
|
119
|
-
class MatFlexTableResizeStrategy extends CdkFlexTableResizeStrategy {
|
|
120
|
-
constructor(columnResize, styleScheduler, table, document) {
|
|
121
|
-
super(columnResize, styleScheduler, table, document);
|
|
122
|
-
}
|
|
123
|
-
getColumnCssClass(cssFriendlyColumnName) {
|
|
124
|
-
return `mat-column-${cssFriendlyColumnName}`;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
/** @nocollapse */ MatFlexTableResizeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MatFlexTableResizeStrategy, deps: [{ token: i2.ColumnResize }, { token: _COALESCED_STYLE_SCHEDULER }, { token: i1.CdkTable }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
128
|
-
/** @nocollapse */ MatFlexTableResizeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MatFlexTableResizeStrategy });
|
|
129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MatFlexTableResizeStrategy, decorators: [{
|
|
130
|
-
type: Injectable
|
|
131
|
-
}], ctorParameters: function () {
|
|
132
|
-
return [{ type: i2.ColumnResize }, { type: i1._CoalescedStyleScheduler, decorators: [{
|
|
133
|
-
type: Inject,
|
|
134
|
-
args: [_COALESCED_STYLE_SCHEDULER]
|
|
135
|
-
}] }, { type: i1.CdkTable }, { type: undefined, decorators: [{
|
|
136
|
-
type: Inject,
|
|
137
|
-
args: [DOCUMENT]
|
|
138
|
-
}] }];
|
|
139
|
-
} });
|
|
140
|
-
const FLEX_RESIZE_STRATEGY_PROVIDER = {
|
|
141
|
-
provide: ResizeStrategy,
|
|
142
|
-
useClass: MatFlexTableResizeStrategy,
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* @license
|
|
147
|
-
* Copyright Google LLC All Rights Reserved.
|
|
148
|
-
*
|
|
149
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
150
|
-
* found in the LICENSE file at https://angular.io/license
|
|
151
|
-
*/
|
|
152
|
-
const PROVIDERS = [
|
|
153
|
-
ColumnResizeNotifier,
|
|
154
|
-
HeaderRowEventDispatcher,
|
|
155
|
-
ColumnResizeNotifierSource,
|
|
156
|
-
];
|
|
157
|
-
const TABLE_PROVIDERS = [
|
|
158
|
-
...PROVIDERS,
|
|
159
|
-
TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER,
|
|
160
|
-
];
|
|
161
|
-
const FLEX_PROVIDERS = [...PROVIDERS, FLEX_RESIZE_STRATEGY_PROVIDER];
|
|
162
|
-
const TABLE_HOST_BINDINGS = {
|
|
163
|
-
class: 'mat-column-resize-table',
|
|
164
|
-
};
|
|
165
|
-
const FLEX_HOST_BINDINGS = {
|
|
166
|
-
class: 'mat-column-resize-flex',
|
|
167
|
-
};
|
|
168
|
-
class AbstractMatColumnResize extends ColumnResize {
|
|
169
|
-
getTableHeight() {
|
|
170
|
-
const table = this.elementRef.nativeElement;
|
|
171
|
-
const tableParent = table.parentNode;
|
|
172
|
-
const isTableContainer = tableParent.classList.contains('mat-table-container');
|
|
173
|
-
return isTableContainer ? tableParent.offsetHeight : table.offsetHeight;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* @license
|
|
179
|
-
* Copyright Google LLC All Rights Reserved.
|
|
180
|
-
*
|
|
181
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
182
|
-
* found in the LICENSE file at https://angular.io/license
|
|
183
|
-
*/
|
|
184
|
-
/**
|
|
185
|
-
* Explicitly enables column resizing for a table-based mat-table.
|
|
186
|
-
* Individual columns must be annotated specifically.
|
|
187
|
-
*/
|
|
188
|
-
class MatColumnResize extends AbstractMatColumnResize {
|
|
189
|
-
constructor(columnResizeNotifier, elementRef, eventDispatcher, ngZone, notifier) {
|
|
190
|
-
super();
|
|
191
|
-
this.columnResizeNotifier = columnResizeNotifier;
|
|
192
|
-
this.elementRef = elementRef;
|
|
193
|
-
this.eventDispatcher = eventDispatcher;
|
|
194
|
-
this.ngZone = ngZone;
|
|
195
|
-
this.notifier = notifier;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
/** @nocollapse */ MatColumnResize.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MatColumnResize, deps: [{ token: i2.ColumnResizeNotifier }, { token: i0.ElementRef }, { token: i2.HeaderRowEventDispatcher }, { token: i0.NgZone }, { token: i2.ColumnResizeNotifierSource }], target: i0.ɵɵFactoryTarget.Directive });
|
|
199
|
-
/** @nocollapse */ MatColumnResize.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: MatColumnResize, selector: "table[mat-table][columnResize]", host: { classAttribute: "mat-column-resize-table" }, providers: [...TABLE_PROVIDERS, { provide: ColumnResize, useExisting: MatColumnResize }], usesInheritance: true, ngImport: i0 });
|
|
200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MatColumnResize, decorators: [{
|
|
201
|
-
type: Directive,
|
|
202
|
-
args: [{
|
|
203
|
-
selector: 'table[mat-table][columnResize]',
|
|
204
|
-
host: TABLE_HOST_BINDINGS,
|
|
205
|
-
providers: [...TABLE_PROVIDERS, { provide: ColumnResize, useExisting: MatColumnResize }],
|
|
206
|
-
}]
|
|
207
|
-
}], ctorParameters: function () { return [{ type: i2.ColumnResizeNotifier }, { type: i0.ElementRef }, { type: i2.HeaderRowEventDispatcher }, { type: i0.NgZone }, { type: i2.ColumnResizeNotifierSource }]; } });
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* @license
|
|
211
|
-
* Copyright Google LLC All Rights Reserved.
|
|
212
|
-
*
|
|
213
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
214
|
-
* found in the LICENSE file at https://angular.io/license
|
|
215
|
-
*/
|
|
216
|
-
/**
|
|
217
|
-
* Component shown over the edge of a resizable column that is responsible
|
|
218
|
-
* for handling column resize mouse events and displaying a vertical line along the column edge.
|
|
219
|
-
*/
|
|
220
|
-
class MatColumnResizeOverlayHandle extends ResizeOverlayHandle {
|
|
221
|
-
constructor(columnDef, columnResize, directionality, elementRef, eventDispatcher, ngZone, resizeNotifier, resizeRef, styleScheduler, document) {
|
|
222
|
-
super();
|
|
223
|
-
this.columnDef = columnDef;
|
|
224
|
-
this.columnResize = columnResize;
|
|
225
|
-
this.directionality = directionality;
|
|
226
|
-
this.elementRef = elementRef;
|
|
227
|
-
this.eventDispatcher = eventDispatcher;
|
|
228
|
-
this.ngZone = ngZone;
|
|
229
|
-
this.resizeNotifier = resizeNotifier;
|
|
230
|
-
this.resizeRef = resizeRef;
|
|
231
|
-
this.styleScheduler = styleScheduler;
|
|
232
|
-
this.document = document;
|
|
233
|
-
}
|
|
234
|
-
updateResizeActive(active) {
|
|
235
|
-
super.updateResizeActive(active);
|
|
236
|
-
this.resizeRef.overlayRef.updateSize({
|
|
237
|
-
height: active
|
|
238
|
-
? this.columnResize.getTableHeight()
|
|
239
|
-
: this.resizeRef.origin.nativeElement.offsetHeight,
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
/** @nocollapse */ MatColumnResizeOverlayHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MatColumnResizeOverlayHandle, deps: [{ token: i1.CdkColumnDef }, { token: i2.ColumnResize }, { token: i3.Directionality }, { token: i0.ElementRef }, { token: i2.HeaderRowEventDispatcher }, { token: i0.NgZone }, { token: i2.ColumnResizeNotifierSource }, { token: i2.ResizeRef }, { token: _COALESCED_STYLE_SCHEDULER }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
244
|
-
/** @nocollapse */ MatColumnResizeOverlayHandle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: MatColumnResizeOverlayHandle, selector: "ng-component", host: { classAttribute: "mat-column-resize-overlay-thumb" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MatColumnResizeOverlayHandle, decorators: [{
|
|
246
|
-
type: Component,
|
|
247
|
-
args: [{
|
|
248
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
249
|
-
encapsulation: ViewEncapsulation.None,
|
|
250
|
-
host: { class: 'mat-column-resize-overlay-thumb' },
|
|
251
|
-
template: '',
|
|
252
|
-
}]
|
|
253
|
-
}], ctorParameters: function () {
|
|
254
|
-
return [{ type: i1.CdkColumnDef }, { type: i2.ColumnResize }, { type: i3.Directionality }, { type: i0.ElementRef }, { type: i2.HeaderRowEventDispatcher }, { type: i0.NgZone }, { type: i2.ColumnResizeNotifierSource }, { type: i2.ResizeRef }, { type: i1._CoalescedStyleScheduler, decorators: [{
|
|
255
|
-
type: Inject,
|
|
256
|
-
args: [_COALESCED_STYLE_SCHEDULER]
|
|
257
|
-
}] }, { type: undefined, decorators: [{
|
|
258
|
-
type: Inject,
|
|
259
|
-
args: [DOCUMENT]
|
|
260
|
-
}] }];
|
|
261
|
-
} });
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* @license
|
|
265
|
-
* Copyright Google LLC All Rights Reserved.
|
|
266
|
-
*
|
|
267
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
268
|
-
* found in the LICENSE file at https://angular.io/license
|
|
269
|
-
*/
|
|
270
|
-
class AbstractMatResizable extends Resizable {
|
|
271
|
-
constructor() {
|
|
272
|
-
super(...arguments);
|
|
273
|
-
this.minWidthPxInternal = 32;
|
|
274
|
-
}
|
|
275
|
-
getInlineHandleCssClassName() {
|
|
276
|
-
return 'mat-resizable-handle';
|
|
277
|
-
}
|
|
278
|
-
getOverlayHandleComponentType() {
|
|
279
|
-
return MatColumnResizeOverlayHandle;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
const RESIZABLE_HOST_BINDINGS = {
|
|
283
|
-
class: 'mat-resizable',
|
|
284
|
-
};
|
|
285
|
-
const RESIZABLE_INPUTS = [
|
|
286
|
-
'minWidthPx: matResizableMinWidthPx',
|
|
287
|
-
'maxWidthPx: matResizableMaxWidthPx',
|
|
288
|
-
];
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* Explicitly enables column resizing for a mat-header-cell.
|
|
292
|
-
*/
|
|
293
|
-
class MatResizable extends AbstractMatResizable {
|
|
294
|
-
get hasResizableClass() {
|
|
295
|
-
return this.isResizable ? RESIZABLE_HOST_BINDINGS.class : '';
|
|
296
|
-
}
|
|
297
|
-
get resizable() {
|
|
298
|
-
return this.isResizable;
|
|
299
|
-
}
|
|
300
|
-
set resizable(newValue) {
|
|
301
|
-
this.isResizable = newValue == null || newValue === '' || newValue;
|
|
302
|
-
}
|
|
303
|
-
constructor(columnDef, columnResize, directionality, document, elementRef, eventDispatcher, injector, ngZone, overlay, resizeNotifier, resizeStrategy, styleScheduler, viewContainerRef, changeDetectorRef) {
|
|
304
|
-
super();
|
|
305
|
-
this.columnDef = columnDef;
|
|
306
|
-
this.columnResize = columnResize;
|
|
307
|
-
this.directionality = directionality;
|
|
308
|
-
this.elementRef = elementRef;
|
|
309
|
-
this.eventDispatcher = eventDispatcher;
|
|
310
|
-
this.injector = injector;
|
|
311
|
-
this.ngZone = ngZone;
|
|
312
|
-
this.overlay = overlay;
|
|
313
|
-
this.resizeNotifier = resizeNotifier;
|
|
314
|
-
this.resizeStrategy = resizeStrategy;
|
|
315
|
-
this.styleScheduler = styleScheduler;
|
|
316
|
-
this.viewContainerRef = viewContainerRef;
|
|
317
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
318
|
-
this.isResizable = true;
|
|
319
|
-
this.document = document;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
/** @nocollapse */ MatResizable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MatResizable, deps: [{ token: i1.CdkColumnDef }, { token: i2.ColumnResize }, { token: i3.Directionality }, { token: DOCUMENT }, { token: i0.ElementRef }, { token: i2.HeaderRowEventDispatcher }, { token: i0.Injector }, { token: i0.NgZone }, { token: i4.Overlay }, { token: i2.ColumnResizeNotifierSource }, { token: i2.ResizeStrategy }, { token: _COALESCED_STYLE_SCHEDULER }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
323
|
-
/** @nocollapse */ MatResizable.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: MatResizable, selector: "mat-header-cell[resizable], th[mat-header-cell][resizable]", inputs: { minWidthPx: ["matResizableMinWidthPx", "minWidthPx"], maxWidthPx: ["matResizableMaxWidthPx", "maxWidthPx"], resizable: "resizable" }, host: { properties: { "class": "this.hasResizableClass" } }, usesInheritance: true, ngImport: i0 });
|
|
324
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MatResizable, decorators: [{
|
|
325
|
-
type: Directive,
|
|
326
|
-
args: [{
|
|
327
|
-
selector: 'mat-header-cell[resizable], th[mat-header-cell][resizable]',
|
|
328
|
-
inputs: RESIZABLE_INPUTS,
|
|
329
|
-
}]
|
|
330
|
-
}], ctorParameters: function () {
|
|
331
|
-
return [{ type: i1.CdkColumnDef }, { type: i2.ColumnResize }, { type: i3.Directionality }, { type: undefined, decorators: [{
|
|
332
|
-
type: Inject,
|
|
333
|
-
args: [DOCUMENT]
|
|
334
|
-
}] }, { type: i0.ElementRef }, { type: i2.HeaderRowEventDispatcher }, { type: i0.Injector }, { type: i0.NgZone }, { type: i4.Overlay }, { type: i2.ColumnResizeNotifierSource }, { type: i2.ResizeStrategy }, { type: i1._CoalescedStyleScheduler, decorators: [{
|
|
335
|
-
type: Inject,
|
|
336
|
-
args: [_COALESCED_STYLE_SCHEDULER]
|
|
337
|
-
}] }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }];
|
|
338
|
-
}, propDecorators: { hasResizableClass: [{
|
|
339
|
-
type: HostBinding,
|
|
340
|
-
args: ['class']
|
|
341
|
-
}], resizable: [{
|
|
342
|
-
type: Input
|
|
343
|
-
}] } });
|
|
344
|
-
|
|
345
|
-
class MtxGridColClassPipe {
|
|
346
|
-
transform(colDef, rowData, rowChangeRecord, currentValue) {
|
|
347
|
-
if (typeof colDef.class === 'string') {
|
|
348
|
-
return colDef.class;
|
|
349
|
-
}
|
|
350
|
-
else if (typeof colDef.class === 'function') {
|
|
351
|
-
return colDef.class(rowData, colDef);
|
|
352
|
-
}
|
|
353
|
-
return '';
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
/** @nocollapse */ MtxGridColClassPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridColClassPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
357
|
-
/** @nocollapse */ MtxGridColClassPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: MtxGridColClassPipe, name: "colClass" });
|
|
358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridColClassPipe, decorators: [{
|
|
359
|
-
type: Pipe,
|
|
360
|
-
args: [{
|
|
361
|
-
name: 'colClass',
|
|
362
|
-
}]
|
|
363
|
-
}] });
|
|
364
|
-
class MtxGridRowClassPipe {
|
|
365
|
-
transform(rowData, index, dataIndex, rowClassFormatter) {
|
|
366
|
-
const rowIndex = typeof index === 'undefined' ? dataIndex : index;
|
|
367
|
-
const classList = rowIndex % 2 === 1 ? ['mat-row-odd'] : [];
|
|
368
|
-
if (rowClassFormatter) {
|
|
369
|
-
for (const key of Object.keys(rowClassFormatter)) {
|
|
370
|
-
if (rowClassFormatter[key](rowData, rowIndex)) {
|
|
371
|
-
classList.push(key);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
return classList.join(' ');
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
/** @nocollapse */ MtxGridRowClassPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridRowClassPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
379
|
-
/** @nocollapse */ MtxGridRowClassPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: MtxGridRowClassPipe, name: "rowClass" });
|
|
380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridRowClassPipe, decorators: [{
|
|
381
|
-
type: Pipe,
|
|
382
|
-
args: [{
|
|
383
|
-
name: 'rowClass',
|
|
384
|
-
}]
|
|
385
|
-
}] });
|
|
386
|
-
class MtxGridCellActionTooltipPipe {
|
|
387
|
-
transform(btn) {
|
|
388
|
-
if (typeof btn.tooltip === 'string' || isObservable(btn.tooltip)) {
|
|
389
|
-
return {
|
|
390
|
-
message: btn.tooltip,
|
|
391
|
-
};
|
|
392
|
-
}
|
|
393
|
-
else {
|
|
394
|
-
return btn.tooltip || { message: '' };
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
/** @nocollapse */ MtxGridCellActionTooltipPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridCellActionTooltipPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
399
|
-
/** @nocollapse */ MtxGridCellActionTooltipPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: MtxGridCellActionTooltipPipe, name: "cellActionTooltip" });
|
|
400
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridCellActionTooltipPipe, decorators: [{
|
|
401
|
-
type: Pipe,
|
|
402
|
-
args: [{
|
|
403
|
-
name: 'cellActionTooltip',
|
|
404
|
-
}]
|
|
405
|
-
}] });
|
|
406
|
-
class MtxGridCellActionDisablePipe {
|
|
407
|
-
transform(btn, rowData, rowChangeRecord, currentValue) {
|
|
408
|
-
if (typeof btn.disabled === 'boolean') {
|
|
409
|
-
return btn.disabled;
|
|
410
|
-
}
|
|
411
|
-
else if (typeof btn.disabled === 'function') {
|
|
412
|
-
return btn.disabled(rowData);
|
|
413
|
-
}
|
|
414
|
-
else {
|
|
415
|
-
return false;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
/** @nocollapse */ MtxGridCellActionDisablePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridCellActionDisablePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
420
|
-
/** @nocollapse */ MtxGridCellActionDisablePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: MtxGridCellActionDisablePipe, name: "cellActionDisable" });
|
|
421
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridCellActionDisablePipe, decorators: [{
|
|
422
|
-
type: Pipe,
|
|
423
|
-
args: [{
|
|
424
|
-
name: 'cellActionDisable',
|
|
425
|
-
}]
|
|
426
|
-
}] });
|
|
427
|
-
class MtxGridCellSummaryPipe {
|
|
428
|
-
constructor(utils) {
|
|
429
|
-
this.utils = utils;
|
|
430
|
-
}
|
|
431
|
-
transform(data, colDef) {
|
|
432
|
-
if (typeof colDef.summary === 'string') {
|
|
433
|
-
return colDef.summary;
|
|
434
|
-
}
|
|
435
|
-
else if (typeof colDef.summary === 'function') {
|
|
436
|
-
return colDef.summary(this.utils.getColData(data, colDef), colDef);
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
/** @nocollapse */ MtxGridCellSummaryPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridCellSummaryPipe, deps: [{ token: MtxGridUtils }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
441
|
-
/** @nocollapse */ MtxGridCellSummaryPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: MtxGridCellSummaryPipe, name: "cellSummary" });
|
|
442
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridCellSummaryPipe, decorators: [{
|
|
443
|
-
type: Pipe,
|
|
444
|
-
args: [{
|
|
445
|
-
name: 'cellSummary',
|
|
446
|
-
}]
|
|
447
|
-
}], ctorParameters: function () { return [{ type: MtxGridUtils }]; } });
|
|
448
|
-
|
|
449
|
-
class MtxGridCell {
|
|
450
|
-
get _value() {
|
|
451
|
-
return this._utils.getCellValue(this.rowData, this.colDef);
|
|
452
|
-
}
|
|
453
|
-
constructor(_dialog, _utils, _differs, _changeDetectorRef) {
|
|
454
|
-
this._dialog = _dialog;
|
|
455
|
-
this._utils = _utils;
|
|
456
|
-
this._differs = _differs;
|
|
457
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
458
|
-
/** Row data */
|
|
459
|
-
this.rowData = {};
|
|
460
|
-
/** Table data */
|
|
461
|
-
this.data = [];
|
|
462
|
-
/** Whether show summary */
|
|
463
|
-
this.summary = false;
|
|
464
|
-
/** Placeholder for the empty value (`null`, `''`, `[]`) */
|
|
465
|
-
this.placeholder = '--';
|
|
466
|
-
this.rowDataChange = new EventEmitter();
|
|
467
|
-
}
|
|
468
|
-
ngOnInit() {
|
|
469
|
-
this.rowDataDiffer = this._differs.find(this.rowData).create();
|
|
470
|
-
}
|
|
471
|
-
ngDoCheck() {
|
|
472
|
-
var _a;
|
|
473
|
-
const changes = (_a = this.rowDataDiffer) === null || _a === void 0 ? void 0 : _a.diff(this.rowData);
|
|
474
|
-
if (changes) {
|
|
475
|
-
this._applyChanges(changes);
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
_applyChanges(changes) {
|
|
479
|
-
changes.forEachChangedItem(record => {
|
|
480
|
-
this.rowChangeRecord = record;
|
|
481
|
-
this.rowDataChange.emit(record);
|
|
482
|
-
this._changeDetectorRef.markForCheck();
|
|
483
|
-
});
|
|
484
|
-
}
|
|
485
|
-
_getText(value) {
|
|
486
|
-
return value === undefined ? '' : this._utils.isEmpty(value) ? this.placeholder : value;
|
|
487
|
-
}
|
|
488
|
-
_getTooltip(value) {
|
|
489
|
-
return this._utils.isEmpty(value) ? '' : value;
|
|
490
|
-
}
|
|
491
|
-
_getFormatterTooltip(value) {
|
|
492
|
-
return this._utils.isContainHTML(value) || this._utils.isEmpty(value) ? '' : value;
|
|
493
|
-
}
|
|
494
|
-
_onActionClick(event, btn, rowData) {
|
|
495
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
496
|
-
event.preventDefault();
|
|
497
|
-
event.stopPropagation();
|
|
498
|
-
if (btn.pop) {
|
|
499
|
-
this._dialog.open({
|
|
500
|
-
title: (_a = btn.pop) === null || _a === void 0 ? void 0 : _a.title,
|
|
501
|
-
description: (_b = btn.pop) === null || _b === void 0 ? void 0 : _b.description,
|
|
502
|
-
buttons: [
|
|
503
|
-
{
|
|
504
|
-
color: ((_c = btn.pop) === null || _c === void 0 ? void 0 : _c.okColor) || 'primary',
|
|
505
|
-
text: ((_d = btn.pop) === null || _d === void 0 ? void 0 : _d.okText) || 'OK',
|
|
506
|
-
onClick: () => { var _a; return ((_a = btn.click) === null || _a === void 0 ? void 0 : _a.call(btn, rowData)) || {}; },
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
color: (_e = btn.pop) === null || _e === void 0 ? void 0 : _e.closeColor,
|
|
510
|
-
text: ((_f = btn.pop) === null || _f === void 0 ? void 0 : _f.closeText) || 'CLOSE',
|
|
511
|
-
onClick: () => { },
|
|
512
|
-
},
|
|
513
|
-
],
|
|
514
|
-
});
|
|
515
|
-
}
|
|
516
|
-
else {
|
|
517
|
-
(_g = btn.click) === null || _g === void 0 ? void 0 : _g.call(btn, rowData);
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
/** Preview enlarged image */
|
|
521
|
-
_onImagePreview(urlStr) {
|
|
522
|
-
const imgs = [];
|
|
523
|
-
this._utils.str2arr(urlStr).forEach((url, index) => {
|
|
524
|
-
imgs.push({ title: index + 1 + '', src: url });
|
|
525
|
-
});
|
|
526
|
-
const footerToolbar = imgs.length > 1
|
|
527
|
-
? ['zoomIn', 'zoomOut', 'prev', 'next', 'rotateRight', 'rotateLeft', 'actualSize']
|
|
528
|
-
: ['zoomIn', 'zoomOut', 'rotateRight', 'rotateLeft', 'actualSize'];
|
|
529
|
-
const options = {
|
|
530
|
-
title: imgs.length > 1,
|
|
531
|
-
footerToolbar,
|
|
532
|
-
};
|
|
533
|
-
const photoviewer = new PhotoViewer(imgs, options);
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
/** @nocollapse */ MtxGridCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridCell, deps: [{ token: i1$1.MtxDialog }, { token: MtxGridUtils }, { token: i0.KeyValueDiffers }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
537
|
-
/** @nocollapse */ MtxGridCell.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: MtxGridCell, selector: "mtx-grid-cell", inputs: { rowData: "rowData", colDef: "colDef", data: "data", summary: "summary", placeholder: "placeholder" }, outputs: { rowDataChange: "rowDataChange" }, exportAs: ["mtxGridCell"], ngImport: i0, template: "<span *ngIf=\"summary; else customCellFormattingTpl\"\r\n [title]=\"_getFormatterTooltip((data | cellSummary: colDef))\"\r\n [innerHTML]=\"_getText((data | cellSummary: colDef))\">\r\n</span>\r\n\r\n<!-- Custom formatting -->\r\n<ng-template #customCellFormattingTpl>\r\n <span *ngIf=\"colDef.formatter; else defaultCellFormattingTpl\"\r\n [title]=\"_getFormatterTooltip(colDef.formatter(rowData, colDef))\"\r\n [innerHTML]=\"_getText(colDef.formatter(rowData, colDef))\">\r\n </span>\r\n</ng-template>\r\n\r\n<!-- Default formatting -->\r\n<ng-template #defaultCellFormattingTpl>\r\n <ng-container [ngSwitch]=\"colDef.type\">\r\n <!-- Tag -->\r\n <ng-container *ngSwitchCase=\"'tag'\">\r\n <mat-chip-listbox *ngIf=\"colDef.tag && colDef.tag[_value]; else tagEmptyTpl\">\r\n <mat-chip color=\"primary\" [ngClass]=\"['bg-' + colDef.tag[_value].color]\">\r\n {{colDef.tag[_value].text}}\r\n </mat-chip>\r\n </mat-chip-listbox>\r\n <ng-template #tagEmptyTpl>{{_value}}</ng-template>\r\n </ng-container>\r\n <!-- Buttons -->\r\n <ng-container *ngSwitchCase=\"'button'\">\r\n <ng-container *ngFor=\"let btn of colDef.buttons;\">\r\n <ng-container *ngIf=\"!btn.iif || btn.iif(rowData)\">\r\n <button *ngIf=\"btn.type==='basic'\" type=\"button\"\r\n [ngClass]=\"['mtx-grid-action-button', btn.class||'']\"\r\n mat-button [color]=\"btn.color || 'primary'\"\r\n [disabled]=\"(btn | cellActionDisable: rowData: rowChangeRecord: rowChangeRecord?.currentValue)\"\r\n [matTooltip]=\"(btn | cellActionTooltip).message | toObservable | async\"\r\n [matTooltipClass]=\"(btn | cellActionTooltip).class\"\r\n [matTooltipHideDelay]=\"(btn | cellActionTooltip).hideDelay\"\r\n [matTooltipShowDelay]=\"(btn | cellActionTooltip).showDelay\"\r\n [matTooltipPosition]=\"(btn | cellActionTooltip).position || 'below'\"\r\n [matTooltipTouchGestures]=\"(btn | cellActionTooltip).touchGestures || 'auto'\"\r\n (click)=\"_onActionClick($event, btn, rowData)\">\r\n <mat-icon class=\"mtx-grid-icon\" *ngIf=\"btn.icon\">{{btn.icon}}</mat-icon>\r\n <span>{{btn.text | toObservable | async}}</span>\r\n </button>\r\n <button *ngIf=\"!btn.type || btn.type==='icon'\" type=\"button\"\r\n [ngClass]=\"['mtx-grid-action-button', btn.class||'']\"\r\n mat-icon-button [color]=\"btn.color || 'primary'\"\r\n [disabled]=\"(btn | cellActionDisable: rowData: rowChangeRecord: rowChangeRecord?.currentValue)\"\r\n [matTooltip]=\"(btn | cellActionTooltip).message | toObservable | async\"\r\n [matTooltipClass]=\"(btn | cellActionTooltip).class\"\r\n [matTooltipHideDelay]=\"(btn | cellActionTooltip).hideDelay\"\r\n [matTooltipShowDelay]=\"(btn | cellActionTooltip).showDelay\"\r\n [matTooltipPosition]=\"(btn | cellActionTooltip).position || 'below'\"\r\n [matTooltipTouchGestures]=\"(btn | cellActionTooltip).touchGestures || 'auto'\"\r\n (click)=\"_onActionClick($event, btn, rowData)\">\r\n <mat-icon class=\"mtx-grid-icon\">{{btn.icon}}</mat-icon>\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n <!-- Link -->\r\n <ng-container *ngSwitchCase=\"'link'\">\r\n <a [href]=\"_value\" target=\"_blank\">{{_value}}</a>\r\n </ng-container>\r\n <!-- Image -->\r\n <ng-container *ngSwitchCase=\"'image'\">\r\n <img class=\"mtx-grid-img\" [src]=\"_value\" (click)=\"_onImagePreview(_value)\">\r\n </ng-container>\r\n <!-- Boolean -->\r\n <ng-container *ngSwitchCase=\"'boolean'\">\r\n <span [title]=\"_getTooltip(_value)\">{{_getText(_value)}}</span>\r\n </ng-container>\r\n <!-- Number -->\r\n <ng-container *ngSwitchCase=\"'number'\">\r\n <span [title]=\"_getTooltip(_value | number: colDef.typeParameter?.digitsInfo:\r\n colDef.typeParameter?.locale)\">\r\n {{_getText(_value | number: colDef.typeParameter?.digitsInfo:\r\n colDef.typeParameter?.locale)}}\r\n </span>\r\n </ng-container>\r\n <!-- Currency -->\r\n <ng-container *ngSwitchCase=\"'currency'\">\r\n <span [title]=\"_getTooltip(_value | currency: colDef.typeParameter?.currencyCode:\r\n colDef.typeParameter?.display:\r\n colDef.typeParameter?.digitsInfo:\r\n colDef.typeParameter?.locale)\">\r\n {{_getText(_value | currency: colDef.typeParameter?.currencyCode:\r\n colDef.typeParameter?.display:\r\n colDef.typeParameter?.digitsInfo:\r\n colDef.typeParameter?.locale)}}\r\n </span>\r\n </ng-container>\r\n <!-- Percent -->\r\n <ng-container *ngSwitchCase=\"'percent'\">\r\n <span [title]=\"_getTooltip(_value | percent: colDef.typeParameter?.digitsInfo:\r\n colDef.typeParameter?.locale)\">\r\n {{_getText(_value | percent: colDef.typeParameter?.digitsInfo:\r\n colDef.typeParameter?.locale)}}\r\n </span>\r\n </ng-container>\r\n <!-- Date -->\r\n <ng-container *ngSwitchCase=\"'date'\">\r\n <span [title]=\"_getTooltip(_value | date: colDef.typeParameter?.format:\r\n colDef.typeParameter?.timezone:\r\n colDef.typeParameter?.locale)\">\r\n {{_getText(_value | date: colDef.typeParameter?.format:\r\n colDef.typeParameter?.timezone:\r\n colDef.typeParameter?.locale)}}\r\n </span>\r\n </ng-container>\r\n <!-- Default -->\r\n <ng-container *ngSwitchDefault>\r\n <span [title]=\"_getTooltip(_value)\">{{_getText(_value)}}</span>\r\n </ng-container>\r\n </ng-container>\r\n</ng-template>\r\n", styles: [".mtx-grid-img{display:block;width:32px;border-radius:4px;cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i3$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i3$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i4$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5.MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["color", "disabled", "disableRipple", "tabIndex", "role", "id", "aria-label", "aria-description", "value", "removable", "highlighted"], outputs: ["removed", "destroyed"], exportAs: ["matChip"] }, { kind: "component", type: i5.MatChipListbox, selector: "mat-chip-listbox", inputs: ["tabIndex", "multiple", "aria-orientation", "selectable", "compareWith", "required", "hideSingleSelectionIndicator", "value"], outputs: ["change"] }, { kind: "directive", type: i6.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i3$1.DecimalPipe, name: "number" }, { kind: "pipe", type: i3$1.PercentPipe, name: "percent" }, { kind: "pipe", type: i3$1.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i3$1.DatePipe, name: "date" }, { kind: "pipe", type: i8.MtxToObservablePipe, name: "toObservable" }, { kind: "pipe", type: MtxGridCellActionTooltipPipe, name: "cellActionTooltip" }, { kind: "pipe", type: MtxGridCellActionDisablePipe, name: "cellActionDisable" }, { kind: "pipe", type: MtxGridCellSummaryPipe, name: "cellSummary" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
538
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridCell, decorators: [{
|
|
539
|
-
type: Component,
|
|
540
|
-
args: [{ selector: 'mtx-grid-cell', exportAs: 'mtxGridCell', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span *ngIf=\"summary; else customCellFormattingTpl\"\r\n [title]=\"_getFormatterTooltip((data | cellSummary: colDef))\"\r\n [innerHTML]=\"_getText((data | cellSummary: colDef))\">\r\n</span>\r\n\r\n<!-- Custom formatting -->\r\n<ng-template #customCellFormattingTpl>\r\n <span *ngIf=\"colDef.formatter; else defaultCellFormattingTpl\"\r\n [title]=\"_getFormatterTooltip(colDef.formatter(rowData, colDef))\"\r\n [innerHTML]=\"_getText(colDef.formatter(rowData, colDef))\">\r\n </span>\r\n</ng-template>\r\n\r\n<!-- Default formatting -->\r\n<ng-template #defaultCellFormattingTpl>\r\n <ng-container [ngSwitch]=\"colDef.type\">\r\n <!-- Tag -->\r\n <ng-container *ngSwitchCase=\"'tag'\">\r\n <mat-chip-listbox *ngIf=\"colDef.tag && colDef.tag[_value]; else tagEmptyTpl\">\r\n <mat-chip color=\"primary\" [ngClass]=\"['bg-' + colDef.tag[_value].color]\">\r\n {{colDef.tag[_value].text}}\r\n </mat-chip>\r\n </mat-chip-listbox>\r\n <ng-template #tagEmptyTpl>{{_value}}</ng-template>\r\n </ng-container>\r\n <!-- Buttons -->\r\n <ng-container *ngSwitchCase=\"'button'\">\r\n <ng-container *ngFor=\"let btn of colDef.buttons;\">\r\n <ng-container *ngIf=\"!btn.iif || btn.iif(rowData)\">\r\n <button *ngIf=\"btn.type==='basic'\" type=\"button\"\r\n [ngClass]=\"['mtx-grid-action-button', btn.class||'']\"\r\n mat-button [color]=\"btn.color || 'primary'\"\r\n [disabled]=\"(btn | cellActionDisable: rowData: rowChangeRecord: rowChangeRecord?.currentValue)\"\r\n [matTooltip]=\"(btn | cellActionTooltip).message | toObservable | async\"\r\n [matTooltipClass]=\"(btn | cellActionTooltip).class\"\r\n [matTooltipHideDelay]=\"(btn | cellActionTooltip).hideDelay\"\r\n [matTooltipShowDelay]=\"(btn | cellActionTooltip).showDelay\"\r\n [matTooltipPosition]=\"(btn | cellActionTooltip).position || 'below'\"\r\n [matTooltipTouchGestures]=\"(btn | cellActionTooltip).touchGestures || 'auto'\"\r\n (click)=\"_onActionClick($event, btn, rowData)\">\r\n <mat-icon class=\"mtx-grid-icon\" *ngIf=\"btn.icon\">{{btn.icon}}</mat-icon>\r\n <span>{{btn.text | toObservable | async}}</span>\r\n </button>\r\n <button *ngIf=\"!btn.type || btn.type==='icon'\" type=\"button\"\r\n [ngClass]=\"['mtx-grid-action-button', btn.class||'']\"\r\n mat-icon-button [color]=\"btn.color || 'primary'\"\r\n [disabled]=\"(btn | cellActionDisable: rowData: rowChangeRecord: rowChangeRecord?.currentValue)\"\r\n [matTooltip]=\"(btn | cellActionTooltip).message | toObservable | async\"\r\n [matTooltipClass]=\"(btn | cellActionTooltip).class\"\r\n [matTooltipHideDelay]=\"(btn | cellActionTooltip).hideDelay\"\r\n [matTooltipShowDelay]=\"(btn | cellActionTooltip).showDelay\"\r\n [matTooltipPosition]=\"(btn | cellActionTooltip).position || 'below'\"\r\n [matTooltipTouchGestures]=\"(btn | cellActionTooltip).touchGestures || 'auto'\"\r\n (click)=\"_onActionClick($event, btn, rowData)\">\r\n <mat-icon class=\"mtx-grid-icon\">{{btn.icon}}</mat-icon>\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n <!-- Link -->\r\n <ng-container *ngSwitchCase=\"'link'\">\r\n <a [href]=\"_value\" target=\"_blank\">{{_value}}</a>\r\n </ng-container>\r\n <!-- Image -->\r\n <ng-container *ngSwitchCase=\"'image'\">\r\n <img class=\"mtx-grid-img\" [src]=\"_value\" (click)=\"_onImagePreview(_value)\">\r\n </ng-container>\r\n <!-- Boolean -->\r\n <ng-container *ngSwitchCase=\"'boolean'\">\r\n <span [title]=\"_getTooltip(_value)\">{{_getText(_value)}}</span>\r\n </ng-container>\r\n <!-- Number -->\r\n <ng-container *ngSwitchCase=\"'number'\">\r\n <span [title]=\"_getTooltip(_value | number: colDef.typeParameter?.digitsInfo:\r\n colDef.typeParameter?.locale)\">\r\n {{_getText(_value | number: colDef.typeParameter?.digitsInfo:\r\n colDef.typeParameter?.locale)}}\r\n </span>\r\n </ng-container>\r\n <!-- Currency -->\r\n <ng-container *ngSwitchCase=\"'currency'\">\r\n <span [title]=\"_getTooltip(_value | currency: colDef.typeParameter?.currencyCode:\r\n colDef.typeParameter?.display:\r\n colDef.typeParameter?.digitsInfo:\r\n colDef.typeParameter?.locale)\">\r\n {{_getText(_value | currency: colDef.typeParameter?.currencyCode:\r\n colDef.typeParameter?.display:\r\n colDef.typeParameter?.digitsInfo:\r\n colDef.typeParameter?.locale)}}\r\n </span>\r\n </ng-container>\r\n <!-- Percent -->\r\n <ng-container *ngSwitchCase=\"'percent'\">\r\n <span [title]=\"_getTooltip(_value | percent: colDef.typeParameter?.digitsInfo:\r\n colDef.typeParameter?.locale)\">\r\n {{_getText(_value | percent: colDef.typeParameter?.digitsInfo:\r\n colDef.typeParameter?.locale)}}\r\n </span>\r\n </ng-container>\r\n <!-- Date -->\r\n <ng-container *ngSwitchCase=\"'date'\">\r\n <span [title]=\"_getTooltip(_value | date: colDef.typeParameter?.format:\r\n colDef.typeParameter?.timezone:\r\n colDef.typeParameter?.locale)\">\r\n {{_getText(_value | date: colDef.typeParameter?.format:\r\n colDef.typeParameter?.timezone:\r\n colDef.typeParameter?.locale)}}\r\n </span>\r\n </ng-container>\r\n <!-- Default -->\r\n <ng-container *ngSwitchDefault>\r\n <span [title]=\"_getTooltip(_value)\">{{_getText(_value)}}</span>\r\n </ng-container>\r\n </ng-container>\r\n</ng-template>\r\n", styles: [".mtx-grid-img{display:block;width:32px;border-radius:4px;cursor:pointer}\n"] }]
|
|
541
|
-
}], ctorParameters: function () { return [{ type: i1$1.MtxDialog }, { type: MtxGridUtils }, { type: i0.KeyValueDiffers }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { rowData: [{
|
|
542
|
-
type: Input
|
|
543
|
-
}], colDef: [{
|
|
544
|
-
type: Input
|
|
545
|
-
}], data: [{
|
|
546
|
-
type: Input
|
|
547
|
-
}], summary: [{
|
|
548
|
-
type: Input
|
|
549
|
-
}], placeholder: [{
|
|
550
|
-
type: Input
|
|
551
|
-
}], rowDataChange: [{
|
|
552
|
-
type: Output
|
|
553
|
-
}] } });
|
|
554
|
-
|
|
555
|
-
class MtxGridColumnMenu {
|
|
556
|
-
constructor() {
|
|
557
|
-
this.columns = [];
|
|
558
|
-
this.selectable = true;
|
|
559
|
-
this.selectableChecked = 'show';
|
|
560
|
-
this.sortable = true;
|
|
561
|
-
this.pinnable = true;
|
|
562
|
-
this._buttonText = '';
|
|
563
|
-
this.buttonType = 'stroked';
|
|
564
|
-
this.buttonClass = '';
|
|
565
|
-
this.buttonIcon = '';
|
|
566
|
-
this.showHeader = false;
|
|
567
|
-
this.headerText = 'Columns Header';
|
|
568
|
-
this.showFooter = false;
|
|
569
|
-
this.footerText = 'Columns Footer';
|
|
570
|
-
this.columnChange = new EventEmitter();
|
|
571
|
-
this._pinOptions = [
|
|
572
|
-
{ label: 'Pin Left', value: 'left' },
|
|
573
|
-
{ label: 'Pin Right', value: 'right' },
|
|
574
|
-
{ label: 'No Pin', value: null },
|
|
575
|
-
];
|
|
576
|
-
}
|
|
577
|
-
get buttonText() {
|
|
578
|
-
const defaultText = `Columns ${this.selectableChecked === 'show' ? 'Shown' : 'Hidden'}`;
|
|
579
|
-
return this._buttonText ? this._buttonText : defaultText;
|
|
580
|
-
}
|
|
581
|
-
set buttonText(value) {
|
|
582
|
-
this._buttonText = value;
|
|
583
|
-
}
|
|
584
|
-
get pinOptions() {
|
|
585
|
-
return this._pinOptions;
|
|
586
|
-
}
|
|
587
|
-
set pinOptions(value) {
|
|
588
|
-
if (value.length > 0) {
|
|
589
|
-
this._pinOptions = value;
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
_handleDroped(e) {
|
|
593
|
-
moveItemInArray(this.columns, e.previousIndex, e.currentIndex);
|
|
594
|
-
this.columnChange.emit(this.columns);
|
|
595
|
-
}
|
|
596
|
-
_handleChecked(e) {
|
|
597
|
-
this.columnChange.emit(this.columns);
|
|
598
|
-
}
|
|
599
|
-
_handlePinSelect(col, val) {
|
|
600
|
-
if (col.pinned != val) {
|
|
601
|
-
col.pinned = val;
|
|
602
|
-
this.columnChange.emit(this.columns);
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
/** @nocollapse */ MtxGridColumnMenu.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridColumnMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
607
|
-
/** @nocollapse */ MtxGridColumnMenu.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: MtxGridColumnMenu, selector: "mtx-grid-column-menu", inputs: { columns: "columns", selectable: "selectable", selectableChecked: "selectableChecked", sortable: "sortable", pinnable: "pinnable", buttonText: "buttonText", buttonType: "buttonType", buttonColor: "buttonColor", buttonClass: "buttonClass", buttonIcon: "buttonIcon", showHeader: "showHeader", headerText: "headerText", headerTemplate: "headerTemplate", showFooter: "showFooter", footerText: "footerText", footerTemplate: "footerTemplate", pinOptions: "pinOptions" }, outputs: { columnChange: "columnChange" }, viewQueries: [{ propertyName: "menuPanel", first: true, predicate: ["menu"], descendants: true, static: true }, { propertyName: "menuTrigger", first: true, predicate: MatMenuTrigger, descendants: true }], exportAs: ["mtxGridColumnMenu"], ngImport: i0, template: "<ng-container [ngSwitch]=\"buttonType\">\r\n <ng-container *ngSwitchCase=\"'raised'\">\r\n <button [ngClass]=\"buttonClass\" mat-raised-button type=\"button\" [color]=\"buttonColor\"\r\n [matMenuTriggerFor]=\"menu\">\r\n <mat-icon *ngIf=\"buttonIcon\">{{buttonIcon}}</mat-icon> {{buttonText}}\r\n </button>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'stroked'\">\r\n <button [ngClass]=\"buttonClass\" mat-stroked-button type=\"button\" [color]=\"buttonColor\"\r\n [matMenuTriggerFor]=\"menu\">\r\n <mat-icon *ngIf=\"buttonIcon\">{{buttonIcon}}</mat-icon> {{buttonText}}\r\n </button>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'flat'\">\r\n <button [ngClass]=\"buttonClass\" mat-flat-button type=\"button\" [color]=\"buttonColor\"\r\n [matMenuTriggerFor]=\"menu\">\r\n <mat-icon *ngIf=\"buttonIcon\">{{buttonIcon}}</mat-icon> {{buttonText}}\r\n </button>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'icon'\">\r\n <button [ngClass]=\"buttonClass\" mat-icon-button type=\"button\" [color]=\"buttonColor\"\r\n [matMenuTriggerFor]=\"menu\">\r\n <mat-icon *ngIf=\"buttonIcon\">{{buttonIcon}}</mat-icon>\r\n </button>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'fab'\">\r\n <button [ngClass]=\"buttonClass\" mat-fab type=\"button\" [color]=\"buttonColor\"\r\n [matMenuTriggerFor]=\"menu\">\r\n <mat-icon *ngIf=\"buttonIcon\">{{buttonIcon}}</mat-icon> {{buttonText}}\r\n </button>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'mini-fab'\">\r\n <button [ngClass]=\"buttonClass\" mat-mini-fab type=\"button\" [color]=\"buttonColor\"\r\n [matMenuTriggerFor]=\"menu\">\r\n <mat-icon *ngIf=\"buttonIcon\">{{buttonIcon}}</mat-icon> {{buttonText}}\r\n </button>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <button [ngClass]=\"buttonClass\" mat-button type=\"button\" [color]=\"buttonColor\"\r\n [matMenuTriggerFor]=\"menu\">\r\n <mat-icon *ngIf=\"buttonIcon\">{{buttonIcon}}</mat-icon> {{buttonText}}\r\n </button>\r\n </ng-container>\r\n</ng-container>\r\n\r\n<mat-menu #menu=\"matMenu\" class=\"mtx-grid-column-menu\">\r\n <div class=\"mtx-grid-column-menu-content\"\r\n (click)=\"$event.stopPropagation()\" (keydown)=\"$event.stopPropagation()\">\r\n <div class=\"mtx-grid-column-menu-header\" *ngIf=\"showHeader\">\r\n <ng-template [ngIf]=\"headerTemplate\" [ngIfElse]=\"defaultHeaderTpl\">\r\n <ng-template [ngTemplateOutlet]=\"headerTemplate\"></ng-template>\r\n </ng-template>\r\n <ng-template #defaultHeaderTpl>{{headerText}}</ng-template>\r\n </div>\r\n\r\n <div class=\"mtx-grid-column-menu-body\">\r\n <div class=\"mtx-grid-column-menu-list\" *ngIf=\"sortable\"\r\n cdkDropList (cdkDropListDropped)=\"_handleDroped($event)\">\r\n <div class=\"mtx-grid-column-menu-item\" *ngFor=\"let col of columns\"\r\n cdkDrag [cdkDragDisabled]=\"selectableChecked === 'show'? !col.show : col.hide\">\r\n <svg class=\"mtx-grid-icon mtx-grid-column-drag-handle-icon\" viewBox=\"0 0 24 24\"\r\n width=\"24px\" height=\"24px\" fill=\"currentColor\" focusable=\"false\">\r\n <path\r\n d=\"M7,19V17H9V19H7M11,19V17H13V19H11M15,19V17H17V19H15M7,15V13H9V15H7M11,15V13H13V15H11M15,15V13H17V15H15M7,11V9H9V11H7M11,11V9H13V11H11M15,11V9H17V11H15M7,7V5H9V7H7M11,7V5H13V7H11M15,7V5H17V7H15Z\">\r\n </path>\r\n </svg>\r\n <ng-template [ngTemplateOutlet]=\"checkboxList\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col }\">\r\n </ng-template>\r\n </div>\r\n </div>\r\n\r\n <div class=\"mtx-grid-column-menu-list\" *ngIf=\"!sortable\">\r\n <div class=\"mtx-grid-column-menu-item\" *ngFor=\"let col of columns\">\r\n <ng-template [ngTemplateOutlet]=\"checkboxList\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col }\">\r\n </ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"mtx-grid-column-menu-footer\" *ngIf=\"showFooter\">\r\n <ng-template [ngIf]=\"footerTemplate\" [ngIfElse]=\"defaultFooterTpl\">\r\n <ng-template [ngTemplateOutlet]=\"footerTemplate\"></ng-template>\r\n </ng-template>\r\n <ng-template #defaultFooterTpl>{{footerText}}</ng-template>\r\n </div>\r\n </div>\r\n</mat-menu>\r\n\r\n<ng-template #checkboxList let-col>\r\n <ng-container *ngIf=\"pinnable\">\r\n <button class=\"mtx-grid-column-pin-button\" mat-icon-button type=\"button\"\r\n [matMenuTriggerFor]=\"pinList\">\r\n <svg class=\"mtx-grid-icon mtx-grid-column-pin-icon\" *ngIf=\"col.pinned\"\r\n viewBox=\"0 0 24 24\" width=\"24px\" height=\"24px\" fill=\"currentColor\" focusable=\"false\">\r\n <path d=\"M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z\" />\r\n </svg>\r\n <svg class=\"mtx-grid-icon mtx-grid-column-pin-off-icon\" *ngIf=\"!col.pinned\"\r\n viewBox=\"0 0 24 24\" width=\"24px\" height=\"24px\" fill=\"currentColor\" focusable=\"false\">\r\n <path\r\n d=\"M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z\" />\r\n </svg>\r\n </button>\r\n <mat-menu #pinList=\"matMenu\" class=\"mtx-grid-column-pin-list\">\r\n <button class=\"mtx-grid-column-pin-option\" type=\"button\"\r\n *ngFor=\"let item of pinOptions\" mat-menu-item\r\n (click)=\"_handlePinSelect(col, item.value)\">\r\n <span class=\"mtx-grid-column-pin-option-placeholder\">\r\n <!-- eslint-disable-next-line @angular-eslint/template/eqeqeq -->\r\n <svg class=\"mtx-grid-icon mtx-grid-column-pin-check-icon\" *ngIf=\"col.pinned==item.value\"\r\n viewBox=\"0 0 24 24\" width=\"24px\" height=\"24px\" fill=\"currentColor\" focusable=\"false\">\r\n <path d=\"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z\" />\r\n </svg>\r\n </span>\r\n <span class=\"mtx-grid-column-pin-option-text\">{{item.label | toObservable | async}}</span>\r\n </button>\r\n </mat-menu>\r\n </ng-container>\r\n\r\n <mat-checkbox class=\"mtx-grid-column-menu-item-label\" *ngIf=\"selectable\"\r\n [(ngModel)]=\"col[selectableChecked]\" [disabled]=\"col.disabled\"\r\n (change)=\"_handleChecked($event)\">\r\n {{col.header | toObservable | async}}\r\n </mat-checkbox>\r\n <span class=\"mtx-grid-column-menu-item-label\" *ngIf=\"!selectable\">\r\n {{col.header | toObservable | async}}\r\n </span>\r\n</ng-template>\r\n", styles: [".mtx-grid-column-menu .mat-menu-content{padding:0}.mtx-grid-column-menu-body{padding:8px 16px}.mtx-grid-column-menu-header,.mtx-grid-column-menu-footer{position:sticky;z-index:1;padding:8px 16px}.mtx-grid-column-menu-header{top:0}.mtx-grid-column-menu-footer{bottom:0}.mtx-grid-column-menu-list{display:block;max-width:100%}.mtx-grid-column-menu-list.cdk-drop-list-dragging .mtx-grid-column-menu-item:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.mtx-grid-column-menu-item{display:flex;flex-direction:row;align-items:center}.mtx-grid-column-menu-item.cdk-drag-disabled .cdk-drag-handle{opacity:.35;cursor:no-drop}.mtx-grid-column-menu-item .cdk-drag-handle{cursor:move}.mtx-grid-column-menu-item.cdk-drag-preview{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mtx-grid-column-menu-item.cdk-drag-placeholder{opacity:0}.mtx-grid-column-menu-item.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.mtx-grid-column-pin-button.mat-mdc-icon-button{width:40px;height:40px;padding:8px}.mtx-grid-column-pin-button.mat-mdc-icon-button .mat-mdc-button-touch-target{width:100%;height:100%}.mtx-grid-column-pin-option.mat-menu-item{display:flex;align-items:center;height:32px}.mtx-grid-column-pin-option-placeholder{display:inline-block;width:20px;height:20px;line-height:20px;vertical-align:middle}.mtx-grid-column-pin-option-text{padding:0 8px;vertical-align:middle}.mtx-grid-column-drag-handle-icon:hover{cursor:move}\n"], dependencies: [{ kind: "directive", type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i3$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i3$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: i4$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4$1.MatMiniFabButton, selector: "button[mat-mini-fab]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4$1.MatFabButton, selector: "button[mat-fab]", inputs: ["disabled", "disableRipple", "color", "tabIndex", "extended"], exportAs: ["matButton"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6$1.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i6$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i6$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "directive", type: i7$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i7$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i8.MtxToObservablePipe, name: "toObservable" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
608
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridColumnMenu, decorators: [{
|
|
609
|
-
type: Component,
|
|
610
|
-
args: [{ selector: 'mtx-grid-column-menu', exportAs: 'mtxGridColumnMenu', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [ngSwitch]=\"buttonType\">\r\n <ng-container *ngSwitchCase=\"'raised'\">\r\n <button [ngClass]=\"buttonClass\" mat-raised-button type=\"button\" [color]=\"buttonColor\"\r\n [matMenuTriggerFor]=\"menu\">\r\n <mat-icon *ngIf=\"buttonIcon\">{{buttonIcon}}</mat-icon> {{buttonText}}\r\n </button>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'stroked'\">\r\n <button [ngClass]=\"buttonClass\" mat-stroked-button type=\"button\" [color]=\"buttonColor\"\r\n [matMenuTriggerFor]=\"menu\">\r\n <mat-icon *ngIf=\"buttonIcon\">{{buttonIcon}}</mat-icon> {{buttonText}}\r\n </button>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'flat'\">\r\n <button [ngClass]=\"buttonClass\" mat-flat-button type=\"button\" [color]=\"buttonColor\"\r\n [matMenuTriggerFor]=\"menu\">\r\n <mat-icon *ngIf=\"buttonIcon\">{{buttonIcon}}</mat-icon> {{buttonText}}\r\n </button>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'icon'\">\r\n <button [ngClass]=\"buttonClass\" mat-icon-button type=\"button\" [color]=\"buttonColor\"\r\n [matMenuTriggerFor]=\"menu\">\r\n <mat-icon *ngIf=\"buttonIcon\">{{buttonIcon}}</mat-icon>\r\n </button>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'fab'\">\r\n <button [ngClass]=\"buttonClass\" mat-fab type=\"button\" [color]=\"buttonColor\"\r\n [matMenuTriggerFor]=\"menu\">\r\n <mat-icon *ngIf=\"buttonIcon\">{{buttonIcon}}</mat-icon> {{buttonText}}\r\n </button>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'mini-fab'\">\r\n <button [ngClass]=\"buttonClass\" mat-mini-fab type=\"button\" [color]=\"buttonColor\"\r\n [matMenuTriggerFor]=\"menu\">\r\n <mat-icon *ngIf=\"buttonIcon\">{{buttonIcon}}</mat-icon> {{buttonText}}\r\n </button>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <button [ngClass]=\"buttonClass\" mat-button type=\"button\" [color]=\"buttonColor\"\r\n [matMenuTriggerFor]=\"menu\">\r\n <mat-icon *ngIf=\"buttonIcon\">{{buttonIcon}}</mat-icon> {{buttonText}}\r\n </button>\r\n </ng-container>\r\n</ng-container>\r\n\r\n<mat-menu #menu=\"matMenu\" class=\"mtx-grid-column-menu\">\r\n <div class=\"mtx-grid-column-menu-content\"\r\n (click)=\"$event.stopPropagation()\" (keydown)=\"$event.stopPropagation()\">\r\n <div class=\"mtx-grid-column-menu-header\" *ngIf=\"showHeader\">\r\n <ng-template [ngIf]=\"headerTemplate\" [ngIfElse]=\"defaultHeaderTpl\">\r\n <ng-template [ngTemplateOutlet]=\"headerTemplate\"></ng-template>\r\n </ng-template>\r\n <ng-template #defaultHeaderTpl>{{headerText}}</ng-template>\r\n </div>\r\n\r\n <div class=\"mtx-grid-column-menu-body\">\r\n <div class=\"mtx-grid-column-menu-list\" *ngIf=\"sortable\"\r\n cdkDropList (cdkDropListDropped)=\"_handleDroped($event)\">\r\n <div class=\"mtx-grid-column-menu-item\" *ngFor=\"let col of columns\"\r\n cdkDrag [cdkDragDisabled]=\"selectableChecked === 'show'? !col.show : col.hide\">\r\n <svg class=\"mtx-grid-icon mtx-grid-column-drag-handle-icon\" viewBox=\"0 0 24 24\"\r\n width=\"24px\" height=\"24px\" fill=\"currentColor\" focusable=\"false\">\r\n <path\r\n d=\"M7,19V17H9V19H7M11,19V17H13V19H11M15,19V17H17V19H15M7,15V13H9V15H7M11,15V13H13V15H11M15,15V13H17V15H15M7,11V9H9V11H7M11,11V9H13V11H11M15,11V9H17V11H15M7,7V5H9V7H7M11,7V5H13V7H11M15,7V5H17V7H15Z\">\r\n </path>\r\n </svg>\r\n <ng-template [ngTemplateOutlet]=\"checkboxList\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col }\">\r\n </ng-template>\r\n </div>\r\n </div>\r\n\r\n <div class=\"mtx-grid-column-menu-list\" *ngIf=\"!sortable\">\r\n <div class=\"mtx-grid-column-menu-item\" *ngFor=\"let col of columns\">\r\n <ng-template [ngTemplateOutlet]=\"checkboxList\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col }\">\r\n </ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"mtx-grid-column-menu-footer\" *ngIf=\"showFooter\">\r\n <ng-template [ngIf]=\"footerTemplate\" [ngIfElse]=\"defaultFooterTpl\">\r\n <ng-template [ngTemplateOutlet]=\"footerTemplate\"></ng-template>\r\n </ng-template>\r\n <ng-template #defaultFooterTpl>{{footerText}}</ng-template>\r\n </div>\r\n </div>\r\n</mat-menu>\r\n\r\n<ng-template #checkboxList let-col>\r\n <ng-container *ngIf=\"pinnable\">\r\n <button class=\"mtx-grid-column-pin-button\" mat-icon-button type=\"button\"\r\n [matMenuTriggerFor]=\"pinList\">\r\n <svg class=\"mtx-grid-icon mtx-grid-column-pin-icon\" *ngIf=\"col.pinned\"\r\n viewBox=\"0 0 24 24\" width=\"24px\" height=\"24px\" fill=\"currentColor\" focusable=\"false\">\r\n <path d=\"M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z\" />\r\n </svg>\r\n <svg class=\"mtx-grid-icon mtx-grid-column-pin-off-icon\" *ngIf=\"!col.pinned\"\r\n viewBox=\"0 0 24 24\" width=\"24px\" height=\"24px\" fill=\"currentColor\" focusable=\"false\">\r\n <path\r\n d=\"M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z\" />\r\n </svg>\r\n </button>\r\n <mat-menu #pinList=\"matMenu\" class=\"mtx-grid-column-pin-list\">\r\n <button class=\"mtx-grid-column-pin-option\" type=\"button\"\r\n *ngFor=\"let item of pinOptions\" mat-menu-item\r\n (click)=\"_handlePinSelect(col, item.value)\">\r\n <span class=\"mtx-grid-column-pin-option-placeholder\">\r\n <!-- eslint-disable-next-line @angular-eslint/template/eqeqeq -->\r\n <svg class=\"mtx-grid-icon mtx-grid-column-pin-check-icon\" *ngIf=\"col.pinned==item.value\"\r\n viewBox=\"0 0 24 24\" width=\"24px\" height=\"24px\" fill=\"currentColor\" focusable=\"false\">\r\n <path d=\"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z\" />\r\n </svg>\r\n </span>\r\n <span class=\"mtx-grid-column-pin-option-text\">{{item.label | toObservable | async}}</span>\r\n </button>\r\n </mat-menu>\r\n </ng-container>\r\n\r\n <mat-checkbox class=\"mtx-grid-column-menu-item-label\" *ngIf=\"selectable\"\r\n [(ngModel)]=\"col[selectableChecked]\" [disabled]=\"col.disabled\"\r\n (change)=\"_handleChecked($event)\">\r\n {{col.header | toObservable | async}}\r\n </mat-checkbox>\r\n <span class=\"mtx-grid-column-menu-item-label\" *ngIf=\"!selectable\">\r\n {{col.header | toObservable | async}}\r\n </span>\r\n</ng-template>\r\n", styles: [".mtx-grid-column-menu .mat-menu-content{padding:0}.mtx-grid-column-menu-body{padding:8px 16px}.mtx-grid-column-menu-header,.mtx-grid-column-menu-footer{position:sticky;z-index:1;padding:8px 16px}.mtx-grid-column-menu-header{top:0}.mtx-grid-column-menu-footer{bottom:0}.mtx-grid-column-menu-list{display:block;max-width:100%}.mtx-grid-column-menu-list.cdk-drop-list-dragging .mtx-grid-column-menu-item:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.mtx-grid-column-menu-item{display:flex;flex-direction:row;align-items:center}.mtx-grid-column-menu-item.cdk-drag-disabled .cdk-drag-handle{opacity:.35;cursor:no-drop}.mtx-grid-column-menu-item .cdk-drag-handle{cursor:move}.mtx-grid-column-menu-item.cdk-drag-preview{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mtx-grid-column-menu-item.cdk-drag-placeholder{opacity:0}.mtx-grid-column-menu-item.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.mtx-grid-column-pin-button.mat-mdc-icon-button{width:40px;height:40px;padding:8px}.mtx-grid-column-pin-button.mat-mdc-icon-button .mat-mdc-button-touch-target{width:100%;height:100%}.mtx-grid-column-pin-option.mat-menu-item{display:flex;align-items:center;height:32px}.mtx-grid-column-pin-option-placeholder{display:inline-block;width:20px;height:20px;line-height:20px;vertical-align:middle}.mtx-grid-column-pin-option-text{padding:0 8px;vertical-align:middle}.mtx-grid-column-drag-handle-icon:hover{cursor:move}\n"] }]
|
|
611
|
-
}], propDecorators: { menuPanel: [{
|
|
612
|
-
type: ViewChild,
|
|
613
|
-
args: ['menu', { static: true }]
|
|
614
|
-
}], menuTrigger: [{
|
|
615
|
-
type: ViewChild,
|
|
616
|
-
args: [MatMenuTrigger]
|
|
617
|
-
}], columns: [{
|
|
618
|
-
type: Input
|
|
619
|
-
}], selectable: [{
|
|
620
|
-
type: Input
|
|
621
|
-
}], selectableChecked: [{
|
|
622
|
-
type: Input
|
|
623
|
-
}], sortable: [{
|
|
624
|
-
type: Input
|
|
625
|
-
}], pinnable: [{
|
|
626
|
-
type: Input
|
|
627
|
-
}], buttonText: [{
|
|
628
|
-
type: Input
|
|
629
|
-
}], buttonType: [{
|
|
630
|
-
type: Input
|
|
631
|
-
}], buttonColor: [{
|
|
632
|
-
type: Input
|
|
633
|
-
}], buttonClass: [{
|
|
634
|
-
type: Input
|
|
635
|
-
}], buttonIcon: [{
|
|
636
|
-
type: Input
|
|
637
|
-
}], showHeader: [{
|
|
638
|
-
type: Input
|
|
639
|
-
}], headerText: [{
|
|
640
|
-
type: Input
|
|
641
|
-
}], headerTemplate: [{
|
|
642
|
-
type: Input
|
|
643
|
-
}], showFooter: [{
|
|
644
|
-
type: Input
|
|
645
|
-
}], footerText: [{
|
|
646
|
-
type: Input
|
|
647
|
-
}], footerTemplate: [{
|
|
648
|
-
type: Input
|
|
649
|
-
}], columnChange: [{
|
|
650
|
-
type: Output
|
|
651
|
-
}], pinOptions: [{
|
|
652
|
-
type: Input
|
|
653
|
-
}] } });
|
|
654
|
-
|
|
655
|
-
class MtxGridExpansionToggle {
|
|
656
|
-
get opened() {
|
|
657
|
-
return this._opened;
|
|
658
|
-
}
|
|
659
|
-
set opened(newValue) {
|
|
660
|
-
this._opened = newValue;
|
|
661
|
-
this.openedChange.emit(newValue);
|
|
662
|
-
}
|
|
663
|
-
get expanded() {
|
|
664
|
-
return this._opened;
|
|
665
|
-
}
|
|
666
|
-
set expandableRow(value) {
|
|
667
|
-
if (value !== this._row) {
|
|
668
|
-
this._row = value;
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
set template(value) {
|
|
672
|
-
if (value !== this._tplRef) {
|
|
673
|
-
this._tplRef = value;
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
constructor() {
|
|
677
|
-
this._opened = false;
|
|
678
|
-
this.openedChange = new EventEmitter();
|
|
679
|
-
this.toggleChange = new EventEmitter();
|
|
680
|
-
}
|
|
681
|
-
onClick(event) {
|
|
682
|
-
event.preventDefault();
|
|
683
|
-
event.stopPropagation();
|
|
684
|
-
this.toggle();
|
|
685
|
-
}
|
|
686
|
-
toggle() {
|
|
687
|
-
this.opened = !this.opened;
|
|
688
|
-
this.toggleChange.emit(this);
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
/** @nocollapse */ MtxGridExpansionToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridExpansionToggle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
692
|
-
/** @nocollapse */ MtxGridExpansionToggle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: MtxGridExpansionToggle, selector: "[mtx-grid-expansion-toggle]", inputs: { opened: "opened", expandableRow: "expandableRow", template: ["expansionRowTpl", "template"] }, outputs: { openedChange: "openedChange", toggleChange: "toggleChange" }, host: { listeners: { "click": "onClick($event)" }, properties: { "class.expanded": "this.expanded" } }, ngImport: i0 });
|
|
693
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridExpansionToggle, decorators: [{
|
|
694
|
-
type: Directive,
|
|
695
|
-
args: [{
|
|
696
|
-
selector: '[mtx-grid-expansion-toggle]',
|
|
697
|
-
}]
|
|
698
|
-
}], ctorParameters: function () { return []; }, propDecorators: { opened: [{
|
|
699
|
-
type: Input
|
|
700
|
-
}], openedChange: [{
|
|
701
|
-
type: Output
|
|
702
|
-
}], expanded: [{
|
|
703
|
-
type: HostBinding,
|
|
704
|
-
args: ['class.expanded']
|
|
705
|
-
}], expandableRow: [{
|
|
706
|
-
type: Input
|
|
707
|
-
}], template: [{
|
|
708
|
-
type: Input,
|
|
709
|
-
args: ['expansionRowTpl']
|
|
710
|
-
}], toggleChange: [{
|
|
711
|
-
type: Output
|
|
712
|
-
}], onClick: [{
|
|
713
|
-
type: HostListener,
|
|
714
|
-
args: ['click', ['$event']]
|
|
715
|
-
}] } });
|
|
716
|
-
|
|
717
|
-
/** Injection token that can be used to specify default grid options. */
|
|
718
|
-
const MTX_GRID_DEFAULT_OPTIONS = new InjectionToken('mtx-grid-default-options');
|
|
719
|
-
class MtxGrid {
|
|
720
|
-
get _hasNoResult() {
|
|
721
|
-
return (!this.data || this.data.length === 0) && !this.loading;
|
|
722
|
-
}
|
|
723
|
-
// TODO: Summary display conditions
|
|
724
|
-
get _whetherShowSummary() {
|
|
725
|
-
return this.showSummary;
|
|
726
|
-
}
|
|
727
|
-
constructor(_utils, _changeDetectorRef, _defaultOptions) {
|
|
728
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58;
|
|
729
|
-
this._utils = _utils;
|
|
730
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
731
|
-
this._defaultOptions = _defaultOptions;
|
|
732
|
-
this.dataSource = new MatTableDataSource();
|
|
733
|
-
/** The grid's displayed columns. */
|
|
734
|
-
this.displayedColumns = [];
|
|
735
|
-
/** The grid's columns. */
|
|
736
|
-
this.columns = [];
|
|
737
|
-
/** The grid's data. */
|
|
738
|
-
this.data = [];
|
|
739
|
-
/** The total number of the data. */
|
|
740
|
-
this.length = 0;
|
|
741
|
-
/** Whether the grid is loading. */
|
|
742
|
-
this.loading = false;
|
|
743
|
-
/** Whether the column is resizable. */
|
|
744
|
-
this.columnResizable = (_b = (_a = this._defaultOptions) === null || _a === void 0 ? void 0 : _a.columnResizable) !== null && _b !== void 0 ? _b : false;
|
|
745
|
-
/** Placeholder for the empty value (`null`, `''`, `[]`). */
|
|
746
|
-
this.emptyValuePlaceholder = (_d = (_c = this._defaultOptions) === null || _c === void 0 ? void 0 : _c.emptyValuePlaceholder) !== null && _d !== void 0 ? _d : '--';
|
|
747
|
-
// ===== Page =====
|
|
748
|
-
/** Whether to paginate the data on front end. */
|
|
749
|
-
this.pageOnFront = (_f = (_e = this._defaultOptions) === null || _e === void 0 ? void 0 : _e.pageOnFront) !== null && _f !== void 0 ? _f : true;
|
|
750
|
-
/** Whether to show the paginator. */
|
|
751
|
-
this.showPaginator = (_h = (_g = this._defaultOptions) === null || _g === void 0 ? void 0 : _g.showPaginator) !== null && _h !== void 0 ? _h : true;
|
|
752
|
-
/** Whether the paginator is disabled. */
|
|
753
|
-
this.pageDisabled = (_k = (_j = this._defaultOptions) === null || _j === void 0 ? void 0 : _j.pageDisabled) !== null && _k !== void 0 ? _k : false;
|
|
754
|
-
/** Whether to show the first/last buttons UI to the user. */
|
|
755
|
-
this.showFirstLastButtons = (_m = (_l = this._defaultOptions) === null || _l === void 0 ? void 0 : _l.showFirstLastButtons) !== null && _m !== void 0 ? _m : true;
|
|
756
|
-
/** The zero-based page index of the displayed list of items. */
|
|
757
|
-
this.pageIndex = (_p = (_o = this._defaultOptions) === null || _o === void 0 ? void 0 : _o.pageIndex) !== null && _p !== void 0 ? _p : 0;
|
|
758
|
-
/** Number of items to display on a page. */
|
|
759
|
-
this.pageSize = (_r = (_q = this._defaultOptions) === null || _q === void 0 ? void 0 : _q.pageSize) !== null && _r !== void 0 ? _r : 10;
|
|
760
|
-
/** The set of provided page size options to display to the user. */
|
|
761
|
-
this.pageSizeOptions = (_t = (_s = this._defaultOptions) === null || _s === void 0 ? void 0 : _s.pageSizeOptions) !== null && _t !== void 0 ? _t : [10, 50, 100];
|
|
762
|
-
/** Whether to hide the page size selection UI from the user. */
|
|
763
|
-
this.hidePageSize = (_v = (_u = this._defaultOptions) === null || _u === void 0 ? void 0 : _u.hidePageSize) !== null && _v !== void 0 ? _v : false;
|
|
764
|
-
/** Event emitted when the paginator changes the page size or page index. */
|
|
765
|
-
this.page = new EventEmitter();
|
|
766
|
-
// ===== Sort =====
|
|
767
|
-
/** Whether to sort the data on front end. */
|
|
768
|
-
this.sortOnFront = (_x = (_w = this._defaultOptions) === null || _w === void 0 ? void 0 : _w.sortOnFront) !== null && _x !== void 0 ? _x : true;
|
|
769
|
-
/** The id of the most recently sorted MatSortable. */
|
|
770
|
-
this.sortActive = (_z = (_y = this._defaultOptions) === null || _y === void 0 ? void 0 : _y.sortActive) !== null && _z !== void 0 ? _z : '';
|
|
771
|
-
/** The sort direction of the currently active MatSortable. */
|
|
772
|
-
this.sortDirection = (_1 = (_0 = this._defaultOptions) === null || _0 === void 0 ? void 0 : _0.sortDirection) !== null && _1 !== void 0 ? _1 : '';
|
|
773
|
-
/**
|
|
774
|
-
* Whether to disable the user from clearing the sort by finishing the sort direction cycle.
|
|
775
|
-
* May be overriden by the column's `disableClear` in `sortProp`.
|
|
776
|
-
*/
|
|
777
|
-
this.sortDisableClear = (_3 = (_2 = this._defaultOptions) === null || _2 === void 0 ? void 0 : _2.sortDisableClear) !== null && _3 !== void 0 ? _3 : false;
|
|
778
|
-
/** Whether the sort is disabled. */
|
|
779
|
-
this.sortDisabled = (_5 = (_4 = this._defaultOptions) === null || _4 === void 0 ? void 0 : _4.sortDisabled) !== null && _5 !== void 0 ? _5 : false;
|
|
780
|
-
/**
|
|
781
|
-
* The direction to set when an MatSortable is initially sorted.
|
|
782
|
-
* May be overriden by the column's `start` in `sortProp`.
|
|
783
|
-
*/
|
|
784
|
-
this.sortStart = (_7 = (_6 = this._defaultOptions) === null || _6 === void 0 ? void 0 : _6.sortStart) !== null && _7 !== void 0 ? _7 : 'asc';
|
|
785
|
-
/** Event emitted when the user changes either the active sort or sort direction. */
|
|
786
|
-
this.sortChange = new EventEmitter();
|
|
787
|
-
// ===== Row =====
|
|
788
|
-
/** Whether to use the row hover style. */
|
|
789
|
-
this.rowHover = (_9 = (_8 = this._defaultOptions) === null || _8 === void 0 ? void 0 : _8.rowHover) !== null && _9 !== void 0 ? _9 : false;
|
|
790
|
-
/** Whether to use the row striped style. */
|
|
791
|
-
this.rowStriped = (_11 = (_10 = this._defaultOptions) === null || _10 === void 0 ? void 0 : _10.rowStriped) !== null && _11 !== void 0 ? _11 : false;
|
|
792
|
-
/** Event emitted when the user clicks the row. */
|
|
793
|
-
this.rowClick = new EventEmitter();
|
|
794
|
-
// ===== Expandable Row =====
|
|
795
|
-
this.expansionRowStates = [];
|
|
796
|
-
/** Whether the row is expandable. */
|
|
797
|
-
this.expandable = false;
|
|
798
|
-
/** Event emitted when the user toggles the expandable row. */
|
|
799
|
-
this.expansionChange = new EventEmitter();
|
|
800
|
-
// ===== Row Selection =====
|
|
801
|
-
this.rowSelection = new SelectionModel(true, []);
|
|
802
|
-
/** Whether to support multiple row/cell selection. */
|
|
803
|
-
this.multiSelectable = (_13 = (_12 = this._defaultOptions) === null || _12 === void 0 ? void 0 : _12.multiSelectable) !== null && _13 !== void 0 ? _13 : true;
|
|
804
|
-
/** Whether the user can select multiple rows with click. */
|
|
805
|
-
this.multiSelectionWithClick = (_15 = (_14 = this._defaultOptions) === null || _14 === void 0 ? void 0 : _14.multiSelectionWithClick) !== null && _15 !== void 0 ? _15 : false;
|
|
806
|
-
/** The selected row items. */
|
|
807
|
-
this.rowSelected = [];
|
|
808
|
-
/** Whether the row is selectable. */
|
|
809
|
-
this.rowSelectable = (_17 = (_16 = this._defaultOptions) === null || _16 === void 0 ? void 0 : _16.rowSelectable) !== null && _17 !== void 0 ? _17 : false;
|
|
810
|
-
/** Whether to hide the row selection checkbox. */
|
|
811
|
-
this.hideRowSelectionCheckbox = (_19 = (_18 = this._defaultOptions) === null || _18 === void 0 ? void 0 : _18.hideRowSelectionCheckbox) !== null && _19 !== void 0 ? _19 : false;
|
|
812
|
-
/** Whether disable rows to be selected when clicked. */
|
|
813
|
-
this.disableRowClickSelection = (_21 = (_20 = this._defaultOptions) === null || _20 === void 0 ? void 0 : _20.disableRowClickSelection) !== null && _21 !== void 0 ? _21 : false;
|
|
814
|
-
/** The formatter to disable the row selection or hide the row's checkbox. */
|
|
815
|
-
this.rowSelectionFormatter = {};
|
|
816
|
-
/** Event emitted when the row is selected. */
|
|
817
|
-
this.rowSelectionChange = new EventEmitter();
|
|
818
|
-
// ===== Cell Selection =====
|
|
819
|
-
this.cellSelection = [];
|
|
820
|
-
/** Whether the cell is selectable. */
|
|
821
|
-
this.cellSelectable = (_23 = (_22 = this._defaultOptions) === null || _22 === void 0 ? void 0 : _22.cellSelectable) !== null && _23 !== void 0 ? _23 : true;
|
|
822
|
-
/** Event emitted when the cell is selected. */
|
|
823
|
-
this.cellSelectionChange = new EventEmitter();
|
|
824
|
-
// ===== Toolbar =====
|
|
825
|
-
/** Whether to show the toolbar. */
|
|
826
|
-
this.showToolbar = (_25 = (_24 = this._defaultOptions) === null || _24 === void 0 ? void 0 : _24.showToolbar) !== null && _25 !== void 0 ? _25 : false;
|
|
827
|
-
/** The text of the toolbar's title. */
|
|
828
|
-
this.toolbarTitle = (_27 = (_26 = this._defaultOptions) === null || _26 === void 0 ? void 0 : _26.toolbarTitle) !== null && _27 !== void 0 ? _27 : '';
|
|
829
|
-
// ===== Column Menu =====
|
|
830
|
-
/** Whether the column is hideable. */
|
|
831
|
-
this.columnHideable = (_29 = (_28 = this._defaultOptions) === null || _28 === void 0 ? void 0 : _28.columnHideable) !== null && _29 !== void 0 ? _29 : true;
|
|
832
|
-
/** Hide or show when the column's checkbox is checked. */
|
|
833
|
-
this.columnHideableChecked = (_31 = (_30 = this._defaultOptions) === null || _30 === void 0 ? void 0 : _30.columnHideableChecked) !== null && _31 !== void 0 ? _31 : 'show';
|
|
834
|
-
/** Whether the column is sortable. */
|
|
835
|
-
this.columnSortable = (_33 = (_32 = this._defaultOptions) === null || _32 === void 0 ? void 0 : _32.columnSortable) !== null && _33 !== void 0 ? _33 : true;
|
|
836
|
-
/** Whether the column is pinnable. */
|
|
837
|
-
this.columnPinnable = (_35 = (_34 = this._defaultOptions) === null || _34 === void 0 ? void 0 : _34.columnPinnable) !== null && _35 !== void 0 ? _35 : true;
|
|
838
|
-
/** Event emitted when the column is hided or is sorted. */
|
|
839
|
-
this.columnChange = new EventEmitter();
|
|
840
|
-
/** The options for the column pin list. */
|
|
841
|
-
this.columnPinOptions = (_37 = (_36 = this._defaultOptions) === null || _36 === void 0 ? void 0 : _36.columnPinOptions) !== null && _37 !== void 0 ? _37 : [];
|
|
842
|
-
/** Whether to show the column menu button. */
|
|
843
|
-
this.showColumnMenuButton = (_39 = (_38 = this._defaultOptions) === null || _38 === void 0 ? void 0 : _38.showColumnMenuButton) !== null && _39 !== void 0 ? _39 : true;
|
|
844
|
-
/** The text for the column menu button. */
|
|
845
|
-
this.columnMenuButtonText = (_41 = (_40 = this._defaultOptions) === null || _40 === void 0 ? void 0 : _40.columnMenuButtonText) !== null && _41 !== void 0 ? _41 : '';
|
|
846
|
-
/** The type for the column menu button. */
|
|
847
|
-
this.columnMenuButtonType = (_43 = (_42 = this._defaultOptions) === null || _42 === void 0 ? void 0 : _42.columnMenuButtonType) !== null && _43 !== void 0 ? _43 : 'stroked';
|
|
848
|
-
/** The color for the column menu button. */
|
|
849
|
-
this.columnMenuButtonColor = (_44 = this._defaultOptions) === null || _44 === void 0 ? void 0 : _44.columnMenuButtonColor;
|
|
850
|
-
/** The class for the column menu button. */
|
|
851
|
-
this.columnMenuButtonClass = (_46 = (_45 = this._defaultOptions) === null || _45 === void 0 ? void 0 : _45.columnMenuButtonClass) !== null && _46 !== void 0 ? _46 : '';
|
|
852
|
-
/** The icon for the column menu button. */
|
|
853
|
-
this.columnMenuButtonIcon = (_48 = (_47 = this._defaultOptions) === null || _47 === void 0 ? void 0 : _47.columnMenuButtonIcon) !== null && _48 !== void 0 ? _48 : '';
|
|
854
|
-
/** Whether to show the column-menu's header. */
|
|
855
|
-
this.showColumnMenuHeader = (_50 = (_49 = this._defaultOptions) === null || _49 === void 0 ? void 0 : _49.showColumnMenuHeader) !== null && _50 !== void 0 ? _50 : false;
|
|
856
|
-
/** The text for the column-menu's header. */
|
|
857
|
-
this.columnMenuHeaderText = (_52 = (_51 = this._defaultOptions) === null || _51 === void 0 ? void 0 : _51.columnMenuHeaderText) !== null && _52 !== void 0 ? _52 : 'Columns Header';
|
|
858
|
-
/** Whether to show the the column-menu's footer. */
|
|
859
|
-
this.showColumnMenuFooter = (_54 = (_53 = this._defaultOptions) === null || _53 === void 0 ? void 0 : _53.showColumnMenuFooter) !== null && _54 !== void 0 ? _54 : false;
|
|
860
|
-
/** The text for the column-menu's footer. */
|
|
861
|
-
this.columnMenuFooterText = (_56 = (_55 = this._defaultOptions) === null || _55 === void 0 ? void 0 : _55.columnMenuFooterText) !== null && _56 !== void 0 ? _56 : 'Columns Footer';
|
|
862
|
-
// ===== No Result =====
|
|
863
|
-
/** The displayed text for the empty data. */
|
|
864
|
-
this.noResultText = (_58 = (_57 = this._defaultOptions) === null || _57 === void 0 ? void 0 : _57.noResultText) !== null && _58 !== void 0 ? _58 : 'No records found';
|
|
865
|
-
// ===== Row Templates =====
|
|
866
|
-
/** Whether to use custom row template. If true, you should define a matRowDef. */
|
|
867
|
-
this.useContentRowTemplate = false;
|
|
868
|
-
// TODO: It can't use together with `useContentRowTemplate`
|
|
869
|
-
this.useContentHeaderRowTemplate = false;
|
|
870
|
-
// TODO: It's not working
|
|
871
|
-
this.useContentFooterRowTemplate = false;
|
|
872
|
-
// ===== Summary =====
|
|
873
|
-
/** Whether to show the summary. */
|
|
874
|
-
this.showSummary = false;
|
|
875
|
-
// ===== Side Bar =====
|
|
876
|
-
/** Whether to show the sidebar. */
|
|
877
|
-
this.showSidebar = false;
|
|
878
|
-
// ===== Status Bar =====
|
|
879
|
-
/** Whether to show the status bar. */
|
|
880
|
-
this.showStatusbar = false;
|
|
881
|
-
}
|
|
882
|
-
detectChanges() {
|
|
883
|
-
this._changeDetectorRef.detectChanges();
|
|
884
|
-
}
|
|
885
|
-
_getColData(data, colDef) {
|
|
886
|
-
return this._utils.getColData(data, colDef);
|
|
887
|
-
}
|
|
888
|
-
// Waiting for async data
|
|
889
|
-
ngOnChanges(changes) {
|
|
890
|
-
var _a;
|
|
891
|
-
this._countPinnedPosition();
|
|
892
|
-
this.displayedColumns = this.columns.filter(item => !item.hide).map(item => item.field);
|
|
893
|
-
if (this.showColumnMenuButton) {
|
|
894
|
-
this.columns.forEach(item => {
|
|
895
|
-
if (this.columnHideableChecked === 'show') {
|
|
896
|
-
item.show = !item.hide;
|
|
897
|
-
}
|
|
898
|
-
else {
|
|
899
|
-
item.hide = !!item.hide;
|
|
900
|
-
}
|
|
901
|
-
});
|
|
902
|
-
}
|
|
903
|
-
if (this.rowSelectable && !this.hideRowSelectionCheckbox) {
|
|
904
|
-
this.displayedColumns.unshift('MtxGridCheckboxColumnDef');
|
|
905
|
-
}
|
|
906
|
-
// We should copy each item of data for expansion data
|
|
907
|
-
if (this.expandable) {
|
|
908
|
-
this.expansionRowStates = []; // reset
|
|
909
|
-
(_a = this.data) === null || _a === void 0 ? void 0 : _a.forEach(_ => {
|
|
910
|
-
this.expansionRowStates.push({ expanded: false });
|
|
911
|
-
});
|
|
912
|
-
}
|
|
913
|
-
if (this.rowSelectable) {
|
|
914
|
-
this.rowSelection = new SelectionModel(this.multiSelectable, this.rowSelected);
|
|
915
|
-
}
|
|
916
|
-
this.dataSource = new MatTableDataSource(this.data);
|
|
917
|
-
this.dataSource.paginator = this.pageOnFront ? this.paginator : null;
|
|
918
|
-
this.dataSource.sort = this.sortOnFront ? this.sort : null;
|
|
919
|
-
// Only scroll top with data change
|
|
920
|
-
if (changes.data) {
|
|
921
|
-
this.scrollTop(0);
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
ngAfterViewInit() {
|
|
925
|
-
var _a, _b, _c;
|
|
926
|
-
if (this.pageOnFront) {
|
|
927
|
-
this.dataSource.paginator = this.paginator;
|
|
928
|
-
}
|
|
929
|
-
if (this.sortOnFront) {
|
|
930
|
-
this.dataSource.sort = this.sort;
|
|
931
|
-
}
|
|
932
|
-
if (((_a = this.rowDefs) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.useContentRowTemplate) {
|
|
933
|
-
this.rowDefs.forEach(rowDef => this.table.addRowDef(rowDef));
|
|
934
|
-
}
|
|
935
|
-
if (((_b = this.headerRowDefs) === null || _b === void 0 ? void 0 : _b.length) > 0 && this.useContentHeaderRowTemplate) {
|
|
936
|
-
this.headerRowDefs.forEach(headerRowDef => this.table.addHeaderRowDef(headerRowDef));
|
|
937
|
-
}
|
|
938
|
-
if (((_c = this.footerRowDefs) === null || _c === void 0 ? void 0 : _c.length) > 0 && this.useContentFooterRowTemplate) {
|
|
939
|
-
this.footerRowDefs.forEach(footerRowDef => this.table.addFooterRowDef(footerRowDef));
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
ngOnDestroy() { }
|
|
943
|
-
_countPinnedPosition() {
|
|
944
|
-
const count = (acc, cur) => acc + parseFloat(cur.width || '80px');
|
|
945
|
-
const pinnedLeftCols = this.columns.filter(col => col.pinned && col.pinned === 'left');
|
|
946
|
-
pinnedLeftCols.forEach((item, idx) => {
|
|
947
|
-
item.left = pinnedLeftCols.slice(0, idx).reduce(count, 0) + 'px';
|
|
948
|
-
});
|
|
949
|
-
const pinnedRightCols = this.columns
|
|
950
|
-
.filter(col => col.pinned && col.pinned === 'right')
|
|
951
|
-
.reverse();
|
|
952
|
-
pinnedRightCols.forEach((item, idx) => {
|
|
953
|
-
item.right = pinnedRightCols.slice(0, idx).reduce(count, 0) + 'px';
|
|
954
|
-
});
|
|
955
|
-
}
|
|
956
|
-
_getIndex(index, dataIndex) {
|
|
957
|
-
return typeof index === 'undefined' ? dataIndex : index;
|
|
958
|
-
}
|
|
959
|
-
_onSortChange(sort) {
|
|
960
|
-
this.sortChange.emit(sort);
|
|
961
|
-
}
|
|
962
|
-
_onRowDataChange(record) {
|
|
963
|
-
this.rowChangeRecord = record;
|
|
964
|
-
this._changeDetectorRef.markForCheck();
|
|
965
|
-
}
|
|
966
|
-
/** Expansion change event */
|
|
967
|
-
_onExpansionChange(expansionRef, rowData, column, index) {
|
|
968
|
-
this.expansionChange.emit({ expanded: expansionRef.expanded, data: rowData, index, column });
|
|
969
|
-
}
|
|
970
|
-
/** Cell select event */
|
|
971
|
-
_selectCell(cellRef, rowData, colDef) {
|
|
972
|
-
// If not the same cell
|
|
973
|
-
if (this._selectedCell !== cellRef) {
|
|
974
|
-
const colValue = this._utils.getCellValue(rowData, colDef);
|
|
975
|
-
this.cellSelection = []; // reset
|
|
976
|
-
this.cellSelection.push({ cellData: colValue, rowData, colDef });
|
|
977
|
-
this.cellSelectionChange.emit(this.cellSelection);
|
|
978
|
-
if (this._selectedCell) {
|
|
979
|
-
this._selectedCell.deselect(); // the selectedCell will be undefined
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
this._selectedCell = cellRef.selected ? cellRef : undefined;
|
|
983
|
-
}
|
|
984
|
-
/** Row select event */
|
|
985
|
-
_selectRow(event, rowData, index) {
|
|
986
|
-
var _a, _b, _c, _d;
|
|
987
|
-
if (this.rowSelectable &&
|
|
988
|
-
!((_b = (_a = this.rowSelectionFormatter).disabled) === null || _b === void 0 ? void 0 : _b.call(_a, rowData, index)) &&
|
|
989
|
-
!((_d = (_c = this.rowSelectionFormatter).hideCheckbox) === null || _d === void 0 ? void 0 : _d.call(_c, rowData, index)) &&
|
|
990
|
-
!this.disableRowClickSelection) {
|
|
991
|
-
// metaKey -> command key
|
|
992
|
-
if (!this.multiSelectionWithClick && !event.ctrlKey && !event.metaKey) {
|
|
993
|
-
this.rowSelection.clear();
|
|
994
|
-
}
|
|
995
|
-
this._toggleNormalCheckbox(rowData);
|
|
996
|
-
}
|
|
997
|
-
this.rowClick.emit({ rowData, index });
|
|
998
|
-
}
|
|
999
|
-
/** Whether the number of selected elements matches the total number of rows. */
|
|
1000
|
-
_isAllSelected() {
|
|
1001
|
-
const numSelected = this.rowSelection.selected.length;
|
|
1002
|
-
const numRows = this.dataSource.data.filter((row, index) => { var _a, _b; return !((_b = (_a = this.rowSelectionFormatter).disabled) === null || _b === void 0 ? void 0 : _b.call(_a, row, index)); }).length;
|
|
1003
|
-
return numSelected === numRows;
|
|
1004
|
-
}
|
|
1005
|
-
/** Select all rows if they are not all selected; otherwise clear selection. */
|
|
1006
|
-
_toggleMasterCheckbox() {
|
|
1007
|
-
this._isAllSelected()
|
|
1008
|
-
? this.rowSelection.clear()
|
|
1009
|
-
: this.dataSource.data.forEach((row, index) => {
|
|
1010
|
-
var _a, _b;
|
|
1011
|
-
if (!((_b = (_a = this.rowSelectionFormatter).disabled) === null || _b === void 0 ? void 0 : _b.call(_a, row, index))) {
|
|
1012
|
-
this.rowSelection.select(row);
|
|
1013
|
-
}
|
|
1014
|
-
});
|
|
1015
|
-
this.rowSelectionChange.emit(this.rowSelection.selected);
|
|
1016
|
-
}
|
|
1017
|
-
/** Select normal row */
|
|
1018
|
-
_toggleNormalCheckbox(row) {
|
|
1019
|
-
this.rowSelection.toggle(row);
|
|
1020
|
-
this.rowSelectionChange.emit(this.rowSelection.selected);
|
|
1021
|
-
}
|
|
1022
|
-
/** Column change event */
|
|
1023
|
-
_onColumnChange(columns) {
|
|
1024
|
-
this.columnChange.emit(columns);
|
|
1025
|
-
this.displayedColumns = Object.assign([], this.getDisplayedColumnFields(columns));
|
|
1026
|
-
if (this.rowSelectable && !this.hideRowSelectionCheckbox) {
|
|
1027
|
-
this.displayedColumns.unshift('MtxGridCheckboxColumnDef');
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
getDisplayedColumnFields(columns) {
|
|
1031
|
-
const fields = columns
|
|
1032
|
-
.filter(item => (this.columnHideableChecked === 'show' ? item.show : !item.hide))
|
|
1033
|
-
.map(item => item.field);
|
|
1034
|
-
return fields;
|
|
1035
|
-
}
|
|
1036
|
-
/** Customize expansion event */
|
|
1037
|
-
toggleExpansion(index) {
|
|
1038
|
-
if (!this.expandable) {
|
|
1039
|
-
throw new Error('The `expandable` should be set true.');
|
|
1040
|
-
}
|
|
1041
|
-
this.expansionRowStates[index].expanded = !this.expansionRowStates[index].expanded;
|
|
1042
|
-
return this.expansionRowStates[index].expanded;
|
|
1043
|
-
}
|
|
1044
|
-
/** Scroll to top when turn to the next page. */
|
|
1045
|
-
_onPage(e) {
|
|
1046
|
-
if (this.pageOnFront) {
|
|
1047
|
-
this.scrollTop(0);
|
|
1048
|
-
}
|
|
1049
|
-
this.page.emit(e);
|
|
1050
|
-
}
|
|
1051
|
-
scrollTop(value) {
|
|
1052
|
-
var _a;
|
|
1053
|
-
if (value == null) {
|
|
1054
|
-
return (_a = this.tableContainer) === null || _a === void 0 ? void 0 : _a.nativeElement.scrollTop;
|
|
1055
|
-
}
|
|
1056
|
-
if (this.tableContainer && !this.loading) {
|
|
1057
|
-
this.tableContainer.nativeElement.scrollTop = value;
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
scrollLeft(value) {
|
|
1061
|
-
var _a;
|
|
1062
|
-
if (value == null) {
|
|
1063
|
-
return (_a = this.tableContainer) === null || _a === void 0 ? void 0 : _a.nativeElement.scrollLeft;
|
|
1064
|
-
}
|
|
1065
|
-
if (this.tableContainer && !this.loading) {
|
|
1066
|
-
this.tableContainer.nativeElement.scrollLeft = value;
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
/** @nocollapse */ MtxGrid.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGrid, deps: [{ token: MtxGridUtils }, { token: i0.ChangeDetectorRef }, { token: MTX_GRID_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1071
|
-
/** @nocollapse */ MtxGrid.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: MtxGrid, selector: "mtx-grid", inputs: { displayedColumns: "displayedColumns", columns: "columns", data: "data", length: "length", loading: "loading", trackBy: "trackBy", columnResizable: "columnResizable", emptyValuePlaceholder: "emptyValuePlaceholder", pageOnFront: "pageOnFront", showPaginator: "showPaginator", pageDisabled: "pageDisabled", showFirstLastButtons: "showFirstLastButtons", pageIndex: "pageIndex", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hidePageSize: "hidePageSize", paginationTemplate: "paginationTemplate", sortOnFront: "sortOnFront", sortActive: "sortActive", sortDirection: "sortDirection", sortDisableClear: "sortDisableClear", sortDisabled: "sortDisabled", sortStart: "sortStart", rowHover: "rowHover", rowStriped: "rowStriped", expandable: "expandable", expansionTemplate: "expansionTemplate", multiSelectable: "multiSelectable", multiSelectionWithClick: "multiSelectionWithClick", rowSelected: "rowSelected", rowSelectable: "rowSelectable", hideRowSelectionCheckbox: "hideRowSelectionCheckbox", disableRowClickSelection: "disableRowClickSelection", rowSelectionFormatter: "rowSelectionFormatter", rowClassFormatter: "rowClassFormatter", cellSelectable: "cellSelectable", showToolbar: "showToolbar", toolbarTitle: "toolbarTitle", toolbarTemplate: "toolbarTemplate", columnHideable: "columnHideable", columnHideableChecked: "columnHideableChecked", columnSortable: "columnSortable", columnPinnable: "columnPinnable", columnPinOptions: "columnPinOptions", showColumnMenuButton: "showColumnMenuButton", columnMenuButtonText: "columnMenuButtonText", columnMenuButtonType: "columnMenuButtonType", columnMenuButtonColor: "columnMenuButtonColor", columnMenuButtonClass: "columnMenuButtonClass", columnMenuButtonIcon: "columnMenuButtonIcon", showColumnMenuHeader: "showColumnMenuHeader", columnMenuHeaderText: "columnMenuHeaderText", columnMenuHeaderTemplate: "columnMenuHeaderTemplate", showColumnMenuFooter: "showColumnMenuFooter", columnMenuFooterText: "columnMenuFooterText", columnMenuFooterTemplate: "columnMenuFooterTemplate", noResultText: "noResultText", noResultTemplate: "noResultTemplate", headerTemplate: "headerTemplate", headerExtraTemplate: "headerExtraTemplate", cellTemplate: "cellTemplate", useContentRowTemplate: "useContentRowTemplate", useContentHeaderRowTemplate: "useContentHeaderRowTemplate", useContentFooterRowTemplate: "useContentFooterRowTemplate", showSummary: "showSummary", summaryTemplate: "summaryTemplate", showSidebar: "showSidebar", sidebarTemplate: "sidebarTemplate", showStatusbar: "showStatusbar", statusbarTemplate: "statusbarTemplate" }, outputs: { page: "page", sortChange: "sortChange", rowClick: "rowClick", expansionChange: "expansionChange", rowSelectionChange: "rowSelectionChange", cellSelectionChange: "cellSelectionChange", columnChange: "columnChange" }, host: { classAttribute: "mtx-grid" }, queries: [{ propertyName: "rowDefs", predicate: MatRowDef }, { propertyName: "headerRowDefs", predicate: MatHeaderRowDef }, { propertyName: "footerRowDefs", predicate: MatFooterRow }], viewQueries: [{ propertyName: "table", first: true, predicate: MatTable, descendants: true }, { propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true }, { propertyName: "columnMenu", first: true, predicate: ["columnMenu"], descendants: true }, { propertyName: "tableContainer", first: true, predicate: ["tableContainer"], descendants: true }], exportAs: ["mtxGrid"], usesOnChanges: true, ngImport: i0, template: "<!-- Progress bar-->\r\n<div class=\"mtx-grid-progress\" *ngIf=\"loading\">\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n</div>\r\n\r\n<!-- Toolbar -->\r\n<div class=\"mtx-grid-toolbar\" *ngIf=\"showToolbar\">\r\n <div class=\"mtx-grid-toolbar-content\">\r\n <ng-template [ngIf]=\"toolbarTemplate\" [ngIfElse]=\"defaultToolbarTemplate\">\r\n <ng-template [ngTemplateOutlet]=\"toolbarTemplate\"></ng-template>\r\n </ng-template>\r\n <ng-template #defaultToolbarTemplate>\r\n <div class=\"mtx-grid-toolbar-title\" *ngIf=\"toolbarTitle\">{{toolbarTitle}}</div>\r\n </ng-template>\r\n </div>\r\n <div class=\"mtx-grid-toolbar-actions\">\r\n <mtx-grid-column-menu *ngIf=\"showColumnMenuButton\" #columnMenu\r\n [columns]=\"columns\"\r\n [buttonText]=\"columnMenuButtonText\"\r\n [buttonType]=\"columnMenuButtonType\"\r\n [buttonColor]=\"columnMenuButtonColor\"\r\n [buttonClass]=\"columnMenuButtonClass\"\r\n [buttonIcon]=\"columnMenuButtonIcon\"\r\n [selectable]=\"columnHideable\"\r\n [selectableChecked]=\"columnHideableChecked\"\r\n [sortable]=\"columnSortable\"\r\n [pinnable]=\"columnPinnable\"\r\n [showHeader]=\"showColumnMenuHeader\"\r\n [headerText]=\"columnMenuHeaderText\"\r\n [headerTemplate]=\"columnMenuHeaderTemplate\"\r\n [showFooter]=\"showColumnMenuFooter\"\r\n [footerText]=\"columnMenuFooterText\"\r\n [footerTemplate]=\"columnMenuFooterTemplate\"\r\n [pinOptions]=\"columnPinOptions\"\r\n (columnChange)=\"_onColumnChange($event)\">\r\n </mtx-grid-column-menu>\r\n </div>\r\n</div>\r\n\r\n<div class=\"mtx-grid-main mtx-grid-layout\">\r\n <!-- Table content -->\r\n <div class=\"mtx-grid-content mtx-grid-layout\">\r\n <div #tableContainer class=\"mat-table-container\"\r\n [ngClass]=\"{'mat-table-with-data': !_hasNoResult}\">\r\n <table mat-table *ngIf=\"!columnResizable\"\r\n [ngClass]=\"{'mat-table-hover': rowHover, 'mat-table-striped': rowStriped, 'mat-table-expandable': expandable}\"\r\n [dataSource]=\"dataSource\" [multiTemplateDataRows]=\"expandable\"\r\n matSort\r\n [matSortActive]=\"sortActive\"\r\n [matSortDirection]=\"sortDirection\"\r\n [matSortDisableClear]=\"sortDisableClear\"\r\n [matSortDisabled]=\"sortDisabled\"\r\n [matSortStart]=\"sortStart\"\r\n (matSortChange)=\"_onSortChange($event)\"\r\n [trackBy]=\"trackBy\">\r\n\r\n <ng-container *ngIf=\"rowSelectable && !hideRowSelectionCheckbox\"\r\n matColumnDef=\"MtxGridCheckboxColumnDef\">\r\n <th mat-header-cell *matHeaderCellDef class=\"mtx-grid-checkbox-cell\">\r\n <mat-checkbox *ngIf=\"multiSelectable\"\r\n [checked]=\"rowSelection.hasValue() && _isAllSelected()\"\r\n [indeterminate]=\"rowSelection.hasValue() && !_isAllSelected()\"\r\n (change)=\"$event ? _toggleMasterCheckbox() : null\">\r\n </mat-checkbox>\r\n </th>\r\n <td mat-cell *matCellDef=\"let row; let index = index; let dataIndex = dataIndex;\"\r\n class=\"mtx-grid-checkbox-cell\">\r\n <mat-checkbox *ngIf=\"!(rowSelectionFormatter.hideCheckbox && rowSelectionFormatter.hideCheckbox(row, _getIndex(index, dataIndex)))\"\r\n [disabled]=\"rowSelectionFormatter.disabled && rowSelectionFormatter.disabled(row, _getIndex(index, dataIndex))\"\r\n [checked]=\"rowSelection.isSelected(row)\"\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"$event ? _toggleNormalCheckbox(row) : null\">\r\n </mat-checkbox>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef class=\"mtx-grid-checkbox-cell\"></td>\r\n </ng-container>\r\n\r\n <ng-container *ngFor=\"let col of columns;\">\r\n <ng-container [matColumnDef]=\"col.field\"\r\n [sticky]=\"col.pinned==='left'\" [stickyEnd]=\"col.pinned==='right'\">\r\n <th mat-header-cell *matHeaderCellDef\r\n [class]=\"col | colClass\"\r\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\r\n [ngStyle]=\"{'width': col.width, 'min-width': col.width, 'left': col.left, 'right': col.right}\">\r\n <div class=\"mat-header-cell-inner\">\r\n <ng-template [ngIf]=\"headerTemplate | isTemplateRef\" [ngIfElse]=\"headerTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(headerTemplate)\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #headerTpl>\r\n <ng-template [ngIf]=\"$any(headerTemplate)?.[col.field] | isTemplateRef\"\r\n [ngIfElse]=\"defaultHeaderTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(headerTemplate)[col.field]\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #defaultHeaderTpl>\r\n <div [mat-sort-header]=\"col.sortProp?.id || col.field\"\r\n [disabled]=\"!col.sortable\"\r\n [disableClear]=\"col.sortProp?.disableClear ?? sortDisableClear\"\r\n [arrowPosition]=\"col.sortProp?.arrowPosition!\"\r\n [start]=\"col.sortProp?.start!\">\r\n <span class=\"mtx-grid-expansion-placeholder\" *ngIf=\"col.showExpand\"></span>\r\n <span>{{col.header | toObservable | async}}</span>\r\n <svg class=\"mtx-grid-icon mat-sort-header-icon\" *ngIf=\"col.sortable\"\r\n viewBox=\"0 0 24 24\" width=\"24px\" height=\"24px\" fill=\"currentColor\"\r\n focusable=\"false\">\r\n <path d=\"M3,13H15V11H3M3,6V8H21V6M3,18H9V16H3V18Z\"></path>\r\n </svg>\r\n </div>\r\n <ng-template [ngTemplateOutlet]=\"headerExtraTplBase\"\r\n [ngTemplateOutletContext]=\"{ $implicit: headerExtraTemplate, colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </div>\r\n </th>\r\n\r\n <td mat-cell *matCellDef=\"let row; let index = index; let dataIndex = dataIndex;\"\r\n [class]=\"col | colClass: row: rowChangeRecord: rowChangeRecord?.currentValue\"\r\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\r\n [ngStyle]=\"{'width': col.width, 'min-width': col.width, 'left': col.left, 'right': col.right}\"\r\n mtx-grid-selectable-cell (cellSelectionChange)=\"_selectCell($event, row, col)\">\r\n <ng-template [ngIf]=\"cellTemplate | isTemplateRef\" [ngIfElse]=\"cellTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(cellTemplate)\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: _getIndex(index, dataIndex), colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #cellTpl>\r\n <ng-template [ngIf]=\"$any(cellTemplate)?.[col.field] | isTemplateRef\"\r\n [ngIfElse]=\"colDefCellTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(cellTemplate)[col.field]\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: _getIndex(index, dataIndex), colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #colDefCellTpl>\r\n <ng-template [ngIf]=\"col.cellTemplate\" [ngIfElse]=\"defaultCellTpl\"\r\n [ngTemplateOutlet]=\"col.cellTemplate!\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: _getIndex(index, dataIndex), colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #defaultCellTpl>\r\n <button class=\"mtx-grid-row-expand-button\" *ngIf=\"col.showExpand\"\r\n mat-icon-button mtx-grid-expansion-toggle type=\"button\"\r\n [(opened)]=\"expansionRowStates[dataIndex].expanded\"\r\n (toggleChange)=\"_onExpansionChange($event, row, col, dataIndex);\">\r\n <svg class=\"mtx-grid-icon mtx-grid-row-expand-icon\" viewBox=\"0 0 24 24\"\r\n width=\"24px\" height=\"24px\" fill=\"currentColor\" focusable=\"false\">\r\n <path d=\"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"></path>\r\n </svg>\r\n </button>\r\n\r\n <mtx-grid-cell [rowData]=\"row\" [colDef]=\"col\" [placeholder]=\"emptyValuePlaceholder\"\r\n (rowDataChange)=\"_onRowDataChange($event)\">\r\n </mtx-grid-cell>\r\n </ng-template>\r\n </td>\r\n\r\n <td mat-footer-cell *matFooterCellDef\r\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\r\n [ngStyle]=\"{'width': col.width, 'min-width': col.width, 'left': col.left, 'right': col.right}\">\r\n <span class=\"mtx-grid-expansion-placeholder\" *ngIf=\"col.showExpand\"></span>\r\n\r\n <ng-template [ngIf]=\"summaryTemplate | isTemplateRef\" [ngIfElse]=\"summaryTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(summaryTemplate)\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col, data: data }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #summaryTpl>\r\n <ng-template [ngIf]=\"$any(summaryTemplate)?.[col.field] | isTemplateRef\"\r\n [ngIfElse]=\"defaultSummaryTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(summaryTemplate)[col.field]\"\r\n [ngTemplateOutletContext]=\"{ $implicit: _getColData(data, col), colData: _getColData(data, col), colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #defaultSummaryTpl>\r\n <mtx-grid-cell [summary]=\"true\" [data]=\"data\" [colDef]=\"col\"\r\n [placeholder]=\"emptyValuePlaceholder\">\r\n </mtx-grid-cell>\r\n </ng-template>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template [ngIf]=\"useContentHeaderRowTemplate\" [ngIfElse]=\"defaultHeaderRowTpl\">\r\n </ng-template>\r\n <ng-template #defaultHeaderRowTpl>\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"useContentRowTemplate\" [ngIfElse]=\"defaultRowTpl\"></ng-template>\r\n <ng-template #defaultRowTpl>\r\n <tr mat-row\r\n *matRowDef=\"let row; let index = index; let dataIndex = dataIndex; columns: displayedColumns;\"\r\n [class]=\"row | rowClass: index: dataIndex: rowClassFormatter\"\r\n [ngClass]=\"{'selected': rowSelection.isSelected(row)}\"\r\n (click)=\"_selectRow($event, row, _getIndex(index, dataIndex))\">\r\n </tr>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"_whetherShowSummary\">\r\n <tr mat-footer-row *matFooterRowDef=\"displayedColumns; sticky: true\"></tr>\r\n </ng-template>\r\n <ng-template [ngIf]=\"useContentFooterRowTemplate\"></ng-template>\r\n\r\n <ng-container *ngIf=\"expandable\">\r\n <!-- Expanded Content Column - The expandable row is made up of this one column that spans across all columns -->\r\n <ng-container matColumnDef=\"MtxGridExpansionColumnDef\">\r\n <td mat-cell *matCellDef=\"let row; let dataIndex = dataIndex\"\r\n [attr.colspan]=\"displayedColumns.length\">\r\n <div class=\"mtx-grid-expansion-detail\"\r\n [@expansion]=\"expansionRowStates[dataIndex].expanded ? 'expanded' : 'collapsed'\">\r\n <ng-template [ngTemplateOutlet]=\"expansionTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: dataIndex, expanded: expansionRowStates[dataIndex].expanded }\">\r\n </ng-template>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-row\r\n *matRowDef=\"let row; columns: ['MtxGridExpansionColumnDef']; let dataIndex = dataIndex\"\r\n [ngClass]=\"['mtx-grid-expansion', expansionRowStates[dataIndex].expanded ? 'expanded' : 'collapsed']\">\r\n </tr>\r\n </ng-container>\r\n </table>\r\n\r\n <!-- TODO: Use flexbox-based mat-table -->\r\n <table mat-table *ngIf=\"columnResizable\"\r\n columnResize\r\n [ngClass]=\"{'mat-table-hover': rowHover, 'mat-table-striped': rowStriped, 'mat-table-expandable': expandable}\"\r\n [dataSource]=\"dataSource\" [multiTemplateDataRows]=\"expandable\"\r\n matSort\r\n [matSortActive]=\"sortActive\"\r\n [matSortDirection]=\"sortDirection\"\r\n [matSortDisableClear]=\"sortDisableClear\"\r\n [matSortDisabled]=\"sortDisabled\"\r\n [matSortStart]=\"sortStart\"\r\n (matSortChange)=\"_onSortChange($event)\"\r\n [trackBy]=\"trackBy\">\r\n\r\n <ng-container *ngIf=\"rowSelectable && !hideRowSelectionCheckbox\"\r\n matColumnDef=\"MtxGridCheckboxColumnDef\">\r\n <th mat-header-cell *matHeaderCellDef class=\"mtx-grid-checkbox-cell\">\r\n <mat-checkbox *ngIf=\"multiSelectable\"\r\n [checked]=\"rowSelection.hasValue() && _isAllSelected()\"\r\n [indeterminate]=\"rowSelection.hasValue() && !_isAllSelected()\"\r\n (change)=\"$event ? _toggleMasterCheckbox() : null\">\r\n </mat-checkbox>\r\n </th>\r\n <td mat-cell *matCellDef=\"let row; let index = index; let dataIndex = dataIndex;\"\r\n class=\"mtx-grid-checkbox-cell\">\r\n <mat-checkbox *ngIf=\"!(rowSelectionFormatter.hideCheckbox && rowSelectionFormatter.hideCheckbox(row, _getIndex(index, dataIndex)))\"\r\n [disabled]=\"rowSelectionFormatter.disabled && rowSelectionFormatter.disabled(row, _getIndex(index, dataIndex))\"\r\n [checked]=\"rowSelection.isSelected(row)\"\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"$event ? _toggleNormalCheckbox(row) : null\">\r\n </mat-checkbox>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef class=\"mtx-grid-checkbox-cell\"></td>\r\n </ng-container>\r\n\r\n <ng-container *ngFor=\"let col of columns;\">\r\n <ng-container [matColumnDef]=\"col.field\"\r\n [sticky]=\"col.pinned==='left'\" [stickyEnd]=\"col.pinned==='right'\">\r\n <th mat-header-cell *matHeaderCellDef\r\n [class]=\"col | colClass\"\r\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\r\n [ngStyle]=\"{'width': col.width, 'left': col.left, 'right': col.right}\"\r\n [resizable]=\"col.resizable\"\r\n [matResizableMinWidthPx]=\"col.minWidth\" [matResizableMaxWidthPx]=\"col.maxWidth\">\r\n <div class=\"mat-header-cell-inner\">\r\n <ng-template [ngIf]=\"headerTemplate | isTemplateRef\" [ngIfElse]=\"headerTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(headerTemplate)\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #headerTpl>\r\n <ng-template [ngIf]=\"$any(headerTemplate)?.[col.field] | isTemplateRef\"\r\n [ngIfElse]=\"defaultHeaderTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(headerTemplate)[col.field]\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #defaultHeaderTpl>\r\n <div [mat-sort-header]=\"col.sortProp?.id || col.field\"\r\n [disabled]=\"!col.sortable\"\r\n [disableClear]=\"col.sortProp?.disableClear ?? sortDisableClear\"\r\n [arrowPosition]=\"col.sortProp?.arrowPosition!\"\r\n [start]=\"col.sortProp?.start!\">\r\n <span class=\"mtx-grid-expansion-placeholder\" *ngIf=\"col.showExpand\"></span>\r\n <span>{{col.header | toObservable | async}}</span>\r\n <svg class=\"mtx-grid-icon mat-sort-header-icon\" *ngIf=\"col.sortable\"\r\n viewBox=\"0 0 24 24\" width=\"24px\" height=\"24px\" fill=\"currentColor\"\r\n focusable=\"false\">\r\n <path d=\"M3,13H15V11H3M3,6V8H21V6M3,18H9V16H3V18Z\"></path>\r\n </svg>\r\n </div>\r\n <ng-template [ngTemplateOutlet]=\"headerExtraTplBase\"\r\n [ngTemplateOutletContext]=\"{ $implicit: headerExtraTemplate, colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </div>\r\n </th>\r\n\r\n <td mat-cell *matCellDef=\"let row; let index = index; let dataIndex = dataIndex;\"\r\n [class]=\"col | colClass: row: rowChangeRecord :rowChangeRecord?.currentValue\"\r\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\r\n [ngStyle]=\"{'width': col.width, 'left': col.left, 'right': col.right}\"\r\n mtx-grid-selectable-cell (cellSelectionChange)=\"_selectCell($event, row, col)\">\r\n <ng-template [ngIf]=\"cellTemplate | isTemplateRef\" [ngIfElse]=\"cellTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(cellTemplate)\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: _getIndex(index, dataIndex), colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #cellTpl>\r\n <ng-template [ngIf]=\"$any(cellTemplate)?.[col.field] | isTemplateRef\"\r\n [ngIfElse]=\"colDefCellTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(cellTemplate)[col.field]\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: _getIndex(index, dataIndex), colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #colDefCellTpl>\r\n <ng-template [ngIf]=\"col.cellTemplate\" [ngIfElse]=\"defaultCellTpl\"\r\n [ngTemplateOutlet]=\"col.cellTemplate!\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: _getIndex(index, dataIndex), colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #defaultCellTpl>\r\n <button class=\"mtx-grid-row-expand-button\" *ngIf=\"col.showExpand\"\r\n mat-icon-button mtx-grid-expansion-toggle type=\"button\"\r\n [(opened)]=\"expansionRowStates[dataIndex].expanded\"\r\n (toggleChange)=\"_onExpansionChange($event, row, col, dataIndex);\">\r\n <svg class=\"mtx-grid-icon mtx-grid-row-expand-icon\" viewBox=\"0 0 24 24\"\r\n width=\"24px\" height=\"24px\" fill=\"currentColor\" focusable=\"false\">\r\n <path d=\"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"></path>\r\n </svg>\r\n </button>\r\n\r\n <mtx-grid-cell [rowData]=\"row\" [colDef]=\"col\" [placeholder]=\"emptyValuePlaceholder\"\r\n (rowDataChange)=\"_onRowDataChange($event)\">\r\n </mtx-grid-cell>\r\n </ng-template>\r\n </td>\r\n\r\n <td mat-footer-cell *matFooterCellDef\r\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\r\n [ngStyle]=\"{'width': col.width, 'left': col.left, 'right': col.right}\">\r\n <span class=\"mtx-grid-expansion-placeholder\" *ngIf=\"col.showExpand\"></span>\r\n\r\n <ng-template [ngIf]=\"summaryTemplate | isTemplateRef\" [ngIfElse]=\"summaryTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(summaryTemplate)\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col, data: data }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #summaryTpl>\r\n <ng-template [ngIf]=\"$any(summaryTemplate)?.[col.field] | isTemplateRef\"\r\n [ngIfElse]=\"defaultSummaryTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(summaryTemplate)[col.field]\"\r\n [ngTemplateOutletContext]=\"{ $implicit: _getColData(data, col), colData: _getColData(data, col), colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #defaultSummaryTpl>\r\n <mtx-grid-cell [summary]=\"true\" [data]=\"data\" [colDef]=\"col\"\r\n [placeholder]=\"emptyValuePlaceholder\">\r\n </mtx-grid-cell>\r\n </ng-template>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template [ngIf]=\"useContentHeaderRowTemplate\" [ngIfElse]=\"defaultHeaderRowTpl\">\r\n </ng-template>\r\n <ng-template #defaultHeaderRowTpl>\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"useContentRowTemplate\" [ngIfElse]=\"defaultRowTpl\"></ng-template>\r\n <ng-template #defaultRowTpl>\r\n <tr mat-row\r\n *matRowDef=\"let row; let index = index; let dataIndex = dataIndex; columns: displayedColumns;\"\r\n [class]=\"row | rowClass: index: dataIndex: rowClassFormatter\"\r\n [ngClass]=\"{'selected': rowSelection.isSelected(row)}\"\r\n (click)=\"_selectRow($event, row, _getIndex(index, dataIndex))\">\r\n </tr>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"_whetherShowSummary\">\r\n <tr mat-footer-row *matFooterRowDef=\"displayedColumns; sticky: true\"></tr>\r\n </ng-template>\r\n <ng-template [ngIf]=\"useContentFooterRowTemplate\"></ng-template>\r\n\r\n <ng-container *ngIf=\"expandable\">\r\n <!-- Expanded Content Column - The expandable row is made up of this one column that spans across all columns -->\r\n <ng-container matColumnDef=\"MtxGridExpansionColumnDef\">\r\n <td mat-cell *matCellDef=\"let row; let dataIndex = dataIndex\"\r\n [attr.colspan]=\"displayedColumns.length\">\r\n <div class=\"mtx-grid-expansion-detail\"\r\n [@expansion]=\"expansionRowStates[dataIndex].expanded ? 'expanded' : 'collapsed'\">\r\n <ng-template [ngTemplateOutlet]=\"expansionTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: dataIndex, expanded: expansionRowStates[dataIndex].expanded }\">\r\n </ng-template>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-row\r\n *matRowDef=\"let row; columns: ['MtxGridExpansionColumnDef']; let dataIndex = dataIndex\"\r\n [ngClass]=\"['mtx-grid-expansion', expansionRowStates[dataIndex].expanded ? 'expanded' : 'collapsed']\">\r\n </tr>\r\n </ng-container>\r\n </table>\r\n </div>\r\n\r\n <!-- No result -->\r\n <div class=\"mtx-grid-no-result\" *ngIf=\"_hasNoResult\">\r\n <ng-template [ngIf]=\"noResultTemplate\" [ngIfElse]=\"defaultNoResultTpl\">\r\n <ng-template [ngTemplateOutlet]=\"noResultTemplate\"></ng-template>\r\n </ng-template>\r\n <ng-template #defaultNoResultTpl>{{noResultText}}</ng-template>\r\n </div>\r\n </div>\r\n\r\n <!-- Tool sidebar -->\r\n <div class=\"mtx-grid-sidebar\" *ngIf=\"showSidebar\">\r\n <ng-template [ngIf]=\"sidebarTemplate\">\r\n <ng-template [ngTemplateOutlet]=\"sidebarTemplate\"></ng-template>\r\n </ng-template>\r\n </div>\r\n</div>\r\n\r\n<div class=\"mtx-grid-footer\">\r\n <!-- Status Bar -->\r\n <div class=\"mtx-grid-statusbar\" *ngIf=\"showStatusbar\">\r\n <ng-template [ngIf]=\"statusbarTemplate\">\r\n <ng-template [ngTemplateOutlet]=\"statusbarTemplate\"></ng-template>\r\n </ng-template>\r\n </div>\r\n\r\n <!-- Pagination -->\r\n <div class=\"mtx-grid-pagination\">\r\n <ng-template [ngIf]=\"paginationTemplate\" [ngIfElse]=\"defaultPaginationTemplate\">\r\n <ng-template [ngTemplateOutlet]=\"paginationTemplate\"></ng-template>\r\n </ng-template>\r\n <ng-template #defaultPaginationTemplate>\r\n <mat-paginator [class.mat-paginator-hidden]=\"!showPaginator\"\r\n [showFirstLastButtons]=\"showFirstLastButtons\"\r\n [length]=\"length\"\r\n [pageIndex]=\"pageIndex\"\r\n [pageSize]=\"pageSize\"\r\n [pageSizeOptions]=\"pageSizeOptions\"\r\n [hidePageSize]=\"hidePageSize\"\r\n (page)=\"_onPage($event)\"\r\n [disabled]=\"pageDisabled\">\r\n </mat-paginator>\r\n </ng-template>\r\n </div>\r\n</div>\r\n\r\n<!-- Header template for extra content -->\r\n<ng-template #headerExtraTplBase let-headerExtraTemplate let-col=\"colDef\">\r\n <ng-template [ngIf]=\"headerExtraTemplate | isTemplateRef\" [ngIfElse]=\"headerExtraTpl\">\r\n <ng-template [ngTemplateOutlet]=\"headerExtraTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #headerExtraTpl>\r\n <ng-template [ngIf]=\"$any(headerExtraTemplate)?.[col.field] | isTemplateRef\">\r\n <ng-template [ngTemplateOutlet]=\"headerExtraTemplate[col.field]\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n</ng-template>\r\n", styles: [".mtx-grid{position:relative;display:flex;flex-direction:column;width:100%}.mtx-grid .mat-table-container{overflow:auto}.mtx-grid .mat-table-container.mat-table-with-data{flex:1}.mtx-grid .mat-mdc-table:not(.mat-column-resize-table){min-width:100%;border-collapse:separate}.mtx-grid .mat-mdc-table:not(.mat-column-resize-table) .mat-mdc-header-cell:not(.mtx-grid-checkbox-cell),.mtx-grid .mat-mdc-table:not(.mat-column-resize-table) .mat-mdc-footer-cell:not(.mtx-grid-checkbox-cell),.mtx-grid .mat-mdc-table:not(.mat-column-resize-table) .mat-mdc-cell:not(.mtx-grid-checkbox-cell){min-width:80px}.mtx-grid .mat-table-sticky-left{border-right-width:1px;border-right-style:solid}[dir=rtl] .mtx-grid .mat-table-sticky-left{border-right-width:0;border-left-width:1px;border-left-style:solid}.mtx-grid .mat-table-sticky-right{border-left-width:1px;border-left-style:solid}[dir=rtl] .mtx-grid .mat-table-sticky-right{border-left-width:0;border-right-width:1px;border-right-style:solid}.mtx-grid .mat-mdc-header-cell,.mtx-grid .mat-mdc-footer-cell,.mtx-grid .mat-mdc-cell{padding:4px 10px;box-sizing:border-box}.mtx-grid .mat-mdc-header-cell:first-of-type:not(:only-of-type),.mtx-grid .mat-mdc-footer-cell:first-of-type:not(:only-of-type),.mtx-grid .mat-mdc-cell:first-of-type:not(:only-of-type){padding-left:24px}.mtx-grid .mat-mdc-header-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell,.mtx-grid .mat-mdc-footer-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell,.mtx-grid .mat-mdc-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell{padding-left:10px;padding-right:10px}[dir=rtl] .mtx-grid .mat-mdc-header-cell:first-of-type:not(:only-of-type),[dir=rtl] .mtx-grid .mat-mdc-footer-cell:first-of-type:not(:only-of-type),[dir=rtl] .mtx-grid .mat-mdc-cell:first-of-type:not(:only-of-type){padding-left:10px;padding-right:24px}[dir=rtl] .mtx-grid .mat-mdc-header-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell,[dir=rtl] .mtx-grid .mat-mdc-footer-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell,[dir=rtl] .mtx-grid .mat-mdc-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell{padding-left:10px;padding-right:10px}.mtx-grid .mat-mdc-header-cell:last-of-type:not(:only-of-type),.mtx-grid .mat-mdc-footer-cell:last-of-type:not(:only-of-type),.mtx-grid .mat-mdc-cell:last-of-type:not(:only-of-type){padding-right:24px}[dir=rtl] .mtx-grid .mat-mdc-header-cell:last-of-type:not(:only-of-type),[dir=rtl] .mtx-grid .mat-mdc-footer-cell:last-of-type:not(:only-of-type),[dir=rtl] .mtx-grid .mat-mdc-cell:last-of-type:not(:only-of-type){padding-left:24px;padding-right:10px}.mtx-grid .mat-mdc-row.mtx-grid-expansion{height:0;overflow:hidden}.mtx-grid .mat-mdc-row.mtx-grid-expansion .mat-mdc-cell{padding-top:0;padding-bottom:0}.mtx-grid .mat-mdc-row.mtx-grid-expansion.collapsed .mat-mdc-cell{border-bottom-width:0}.mtx-grid .mat-mdc-row:last-of-type .mat-cell{border-bottom-width:0}.mtx-grid .mat-sort-header-icon{margin:0 4px}.mtx-grid .mat-header-cell-inner{display:flex;align-items:center}.mtx-grid .mat-paginator-hidden{display:none}.mtx-grid-progress{position:absolute;top:0;z-index:120;width:100%}.mtx-grid-toolbar{display:flex;justify-content:space-between;align-items:center;min-height:48px;padding:8px;box-sizing:border-box}.mtx-grid-layout{display:flex;flex:1 1 auto;overflow:auto}.mtx-grid-content{flex-direction:column;width:0}.mtx-grid-sidebar{max-width:50%;border-left-width:1px;border-left-style:solid}[dir=rtl] .mtx-grid-sidebar{border-left-width:0;border-right-width:1px;border-right-style:solid}.mtx-grid-footer{position:relative;z-index:1}.mtx-grid-statusbar{display:flex;align-items:center;min-height:56px;padding:8px}.mtx-grid-no-result{display:flex;justify-content:center;align-items:center;flex:1;min-height:150px}.mtx-grid-expansion-placeholder{display:inline-block;width:40px;height:40px;vertical-align:middle}.mtx-grid-expansion-detail{display:flex;align-items:center;min-height:48px;overflow:hidden}.mtx-grid-checkbox-cell{flex:none;justify-content:center;width:60px;min-width:60px}.mtx-grid-checkbox-cell .mat-checkbox{display:flex;margin:0 10px}.mtx-grid-checkbox-cell .mat-checkbox-inner-container{margin-left:0}.mtx-grid-row-expand-button.mat-mdc-icon-button{width:40px;height:40px;padding:8px;vertical-align:middle}.mtx-grid-row-expand-button.mat-mdc-icon-button.expanded .mtx-grid-row-expand-icon{transform:rotate(90deg)}.mtx-grid-row-expand-button.mat-mdc-icon-button+mtx-grid-cell{vertical-align:middle}.mtx-grid-row-expand-button.mat-mdc-icon-button .mat-mdc-button-touch-target{width:100%;height:100%}.mtx-grid-icon{width:20px;height:20px;font-size:20px}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(function () { return i3$1.NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(function () { return i3$1.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(function () { return i3$1.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(function () { return i3$1.NgTemplateOutlet; }), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(function () { return i3$1.NgStyle; }), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i0.forwardRef(function () { return i3$3.MatTable; }), selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i0.forwardRef(function () { return i3$3.MatHeaderCellDef; }), selector: "[matHeaderCellDef]" }, { kind: "directive", type: i0.forwardRef(function () { return i3$3.MatHeaderRowDef; }), selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i0.forwardRef(function () { return i3$3.MatColumnDef; }), selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i0.forwardRef(function () { return i3$3.MatCellDef; }), selector: "[matCellDef]" }, { kind: "directive", type: i0.forwardRef(function () { return i3$3.MatRowDef; }), selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i0.forwardRef(function () { return i3$3.MatFooterCellDef; }), selector: "[matFooterCellDef]" }, { kind: "directive", type: i0.forwardRef(function () { return i3$3.MatFooterRowDef; }), selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "directive", type: i0.forwardRef(function () { return i3$3.MatHeaderCell; }), selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i0.forwardRef(function () { return i3$3.MatCell; }), selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i0.forwardRef(function () { return i3$3.MatFooterCell; }), selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i0.forwardRef(function () { return i3$3.MatHeaderRow; }), selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i0.forwardRef(function () { return i3$3.MatRow; }), selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i0.forwardRef(function () { return i3$3.MatFooterRow; }), selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "directive", type: i0.forwardRef(function () { return i4$2.MatSort; }), selector: "[matSort]", inputs: ["matSortDisabled", "matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i0.forwardRef(function () { return i4$2.MatSortHeader; }), selector: "[mat-sort-header]", inputs: ["disabled", "mat-sort-header", "arrowPosition", "start", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "component", type: i0.forwardRef(function () { return i5$1.MatPaginator; }), selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }, { kind: "component", type: i0.forwardRef(function () { return i3$2.MatCheckbox; }), selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: i0.forwardRef(function () { return i4$1.MatIconButton; }), selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i0.forwardRef(function () { return i8$1.MatProgressBar; }), selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i0.forwardRef(function () { return MatColumnResize; }), selector: "table[mat-table][columnResize]" }, { kind: "directive", type: i0.forwardRef(function () { return MatResizable; }), selector: "mat-header-cell[resizable], th[mat-header-cell][resizable]", inputs: ["matResizableMinWidthPx", "matResizableMaxWidthPx", "resizable"] }, { kind: "component", type: i0.forwardRef(function () { return MtxGridCell; }), selector: "mtx-grid-cell", inputs: ["rowData", "colDef", "data", "summary", "placeholder"], outputs: ["rowDataChange"], exportAs: ["mtxGridCell"] }, { kind: "component", type: i0.forwardRef(function () { return MtxGridColumnMenu; }), selector: "mtx-grid-column-menu", inputs: ["columns", "selectable", "selectableChecked", "sortable", "pinnable", "buttonText", "buttonType", "buttonColor", "buttonClass", "buttonIcon", "showHeader", "headerText", "headerTemplate", "showFooter", "footerText", "footerTemplate", "pinOptions"], outputs: ["columnChange"], exportAs: ["mtxGridColumnMenu"] }, { kind: "directive", type: i0.forwardRef(function () { return MtxGridExpansionToggle; }), selector: "[mtx-grid-expansion-toggle]", inputs: ["opened", "expandableRow", "expansionRowTpl"], outputs: ["openedChange", "toggleChange"] }, { kind: "directive", type: i0.forwardRef(function () { return MtxGridSelectableCell; }), selector: "[mtx-grid-selectable-cell]", inputs: ["mtxSelectableRowData"], outputs: ["cellSelectionChange"] }, { kind: "pipe", type: i0.forwardRef(function () { return i3$1.AsyncPipe; }), name: "async" }, { kind: "pipe", type: i0.forwardRef(function () { return i8.MtxToObservablePipe; }), name: "toObservable" }, { kind: "pipe", type: i0.forwardRef(function () { return i8.MtxIsTemplateRefPipe; }), name: "isTemplateRef" }, { kind: "pipe", type: i0.forwardRef(function () { return MtxGridRowClassPipe; }), name: "rowClass" }, { kind: "pipe", type: i0.forwardRef(function () { return MtxGridColClassPipe; }), name: "colClass" }], animations: [
|
|
1072
|
-
trigger('expansion', [
|
|
1073
|
-
state('collapsed, void', style({ height: '0', minHeight: '0', visibility: 'hidden' })),
|
|
1074
|
-
state('expanded', style({ height: '*', visibility: 'visible' })),
|
|
1075
|
-
transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),
|
|
1076
|
-
transition('expanded <=> void', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),
|
|
1077
|
-
]),
|
|
1078
|
-
], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1079
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGrid, decorators: [{
|
|
1080
|
-
type: Component,
|
|
1081
|
-
args: [{ selector: 'mtx-grid', exportAs: 'mtxGrid', host: {
|
|
1082
|
-
class: 'mtx-grid',
|
|
1083
|
-
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
1084
|
-
trigger('expansion', [
|
|
1085
|
-
state('collapsed, void', style({ height: '0', minHeight: '0', visibility: 'hidden' })),
|
|
1086
|
-
state('expanded', style({ height: '*', visibility: 'visible' })),
|
|
1087
|
-
transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),
|
|
1088
|
-
transition('expanded <=> void', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),
|
|
1089
|
-
]),
|
|
1090
|
-
], template: "<!-- Progress bar-->\r\n<div class=\"mtx-grid-progress\" *ngIf=\"loading\">\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n</div>\r\n\r\n<!-- Toolbar -->\r\n<div class=\"mtx-grid-toolbar\" *ngIf=\"showToolbar\">\r\n <div class=\"mtx-grid-toolbar-content\">\r\n <ng-template [ngIf]=\"toolbarTemplate\" [ngIfElse]=\"defaultToolbarTemplate\">\r\n <ng-template [ngTemplateOutlet]=\"toolbarTemplate\"></ng-template>\r\n </ng-template>\r\n <ng-template #defaultToolbarTemplate>\r\n <div class=\"mtx-grid-toolbar-title\" *ngIf=\"toolbarTitle\">{{toolbarTitle}}</div>\r\n </ng-template>\r\n </div>\r\n <div class=\"mtx-grid-toolbar-actions\">\r\n <mtx-grid-column-menu *ngIf=\"showColumnMenuButton\" #columnMenu\r\n [columns]=\"columns\"\r\n [buttonText]=\"columnMenuButtonText\"\r\n [buttonType]=\"columnMenuButtonType\"\r\n [buttonColor]=\"columnMenuButtonColor\"\r\n [buttonClass]=\"columnMenuButtonClass\"\r\n [buttonIcon]=\"columnMenuButtonIcon\"\r\n [selectable]=\"columnHideable\"\r\n [selectableChecked]=\"columnHideableChecked\"\r\n [sortable]=\"columnSortable\"\r\n [pinnable]=\"columnPinnable\"\r\n [showHeader]=\"showColumnMenuHeader\"\r\n [headerText]=\"columnMenuHeaderText\"\r\n [headerTemplate]=\"columnMenuHeaderTemplate\"\r\n [showFooter]=\"showColumnMenuFooter\"\r\n [footerText]=\"columnMenuFooterText\"\r\n [footerTemplate]=\"columnMenuFooterTemplate\"\r\n [pinOptions]=\"columnPinOptions\"\r\n (columnChange)=\"_onColumnChange($event)\">\r\n </mtx-grid-column-menu>\r\n </div>\r\n</div>\r\n\r\n<div class=\"mtx-grid-main mtx-grid-layout\">\r\n <!-- Table content -->\r\n <div class=\"mtx-grid-content mtx-grid-layout\">\r\n <div #tableContainer class=\"mat-table-container\"\r\n [ngClass]=\"{'mat-table-with-data': !_hasNoResult}\">\r\n <table mat-table *ngIf=\"!columnResizable\"\r\n [ngClass]=\"{'mat-table-hover': rowHover, 'mat-table-striped': rowStriped, 'mat-table-expandable': expandable}\"\r\n [dataSource]=\"dataSource\" [multiTemplateDataRows]=\"expandable\"\r\n matSort\r\n [matSortActive]=\"sortActive\"\r\n [matSortDirection]=\"sortDirection\"\r\n [matSortDisableClear]=\"sortDisableClear\"\r\n [matSortDisabled]=\"sortDisabled\"\r\n [matSortStart]=\"sortStart\"\r\n (matSortChange)=\"_onSortChange($event)\"\r\n [trackBy]=\"trackBy\">\r\n\r\n <ng-container *ngIf=\"rowSelectable && !hideRowSelectionCheckbox\"\r\n matColumnDef=\"MtxGridCheckboxColumnDef\">\r\n <th mat-header-cell *matHeaderCellDef class=\"mtx-grid-checkbox-cell\">\r\n <mat-checkbox *ngIf=\"multiSelectable\"\r\n [checked]=\"rowSelection.hasValue() && _isAllSelected()\"\r\n [indeterminate]=\"rowSelection.hasValue() && !_isAllSelected()\"\r\n (change)=\"$event ? _toggleMasterCheckbox() : null\">\r\n </mat-checkbox>\r\n </th>\r\n <td mat-cell *matCellDef=\"let row; let index = index; let dataIndex = dataIndex;\"\r\n class=\"mtx-grid-checkbox-cell\">\r\n <mat-checkbox *ngIf=\"!(rowSelectionFormatter.hideCheckbox && rowSelectionFormatter.hideCheckbox(row, _getIndex(index, dataIndex)))\"\r\n [disabled]=\"rowSelectionFormatter.disabled && rowSelectionFormatter.disabled(row, _getIndex(index, dataIndex))\"\r\n [checked]=\"rowSelection.isSelected(row)\"\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"$event ? _toggleNormalCheckbox(row) : null\">\r\n </mat-checkbox>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef class=\"mtx-grid-checkbox-cell\"></td>\r\n </ng-container>\r\n\r\n <ng-container *ngFor=\"let col of columns;\">\r\n <ng-container [matColumnDef]=\"col.field\"\r\n [sticky]=\"col.pinned==='left'\" [stickyEnd]=\"col.pinned==='right'\">\r\n <th mat-header-cell *matHeaderCellDef\r\n [class]=\"col | colClass\"\r\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\r\n [ngStyle]=\"{'width': col.width, 'min-width': col.width, 'left': col.left, 'right': col.right}\">\r\n <div class=\"mat-header-cell-inner\">\r\n <ng-template [ngIf]=\"headerTemplate | isTemplateRef\" [ngIfElse]=\"headerTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(headerTemplate)\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #headerTpl>\r\n <ng-template [ngIf]=\"$any(headerTemplate)?.[col.field] | isTemplateRef\"\r\n [ngIfElse]=\"defaultHeaderTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(headerTemplate)[col.field]\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #defaultHeaderTpl>\r\n <div [mat-sort-header]=\"col.sortProp?.id || col.field\"\r\n [disabled]=\"!col.sortable\"\r\n [disableClear]=\"col.sortProp?.disableClear ?? sortDisableClear\"\r\n [arrowPosition]=\"col.sortProp?.arrowPosition!\"\r\n [start]=\"col.sortProp?.start!\">\r\n <span class=\"mtx-grid-expansion-placeholder\" *ngIf=\"col.showExpand\"></span>\r\n <span>{{col.header | toObservable | async}}</span>\r\n <svg class=\"mtx-grid-icon mat-sort-header-icon\" *ngIf=\"col.sortable\"\r\n viewBox=\"0 0 24 24\" width=\"24px\" height=\"24px\" fill=\"currentColor\"\r\n focusable=\"false\">\r\n <path d=\"M3,13H15V11H3M3,6V8H21V6M3,18H9V16H3V18Z\"></path>\r\n </svg>\r\n </div>\r\n <ng-template [ngTemplateOutlet]=\"headerExtraTplBase\"\r\n [ngTemplateOutletContext]=\"{ $implicit: headerExtraTemplate, colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </div>\r\n </th>\r\n\r\n <td mat-cell *matCellDef=\"let row; let index = index; let dataIndex = dataIndex;\"\r\n [class]=\"col | colClass: row: rowChangeRecord: rowChangeRecord?.currentValue\"\r\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\r\n [ngStyle]=\"{'width': col.width, 'min-width': col.width, 'left': col.left, 'right': col.right}\"\r\n mtx-grid-selectable-cell (cellSelectionChange)=\"_selectCell($event, row, col)\">\r\n <ng-template [ngIf]=\"cellTemplate | isTemplateRef\" [ngIfElse]=\"cellTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(cellTemplate)\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: _getIndex(index, dataIndex), colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #cellTpl>\r\n <ng-template [ngIf]=\"$any(cellTemplate)?.[col.field] | isTemplateRef\"\r\n [ngIfElse]=\"colDefCellTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(cellTemplate)[col.field]\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: _getIndex(index, dataIndex), colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #colDefCellTpl>\r\n <ng-template [ngIf]=\"col.cellTemplate\" [ngIfElse]=\"defaultCellTpl\"\r\n [ngTemplateOutlet]=\"col.cellTemplate!\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: _getIndex(index, dataIndex), colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #defaultCellTpl>\r\n <button class=\"mtx-grid-row-expand-button\" *ngIf=\"col.showExpand\"\r\n mat-icon-button mtx-grid-expansion-toggle type=\"button\"\r\n [(opened)]=\"expansionRowStates[dataIndex].expanded\"\r\n (toggleChange)=\"_onExpansionChange($event, row, col, dataIndex);\">\r\n <svg class=\"mtx-grid-icon mtx-grid-row-expand-icon\" viewBox=\"0 0 24 24\"\r\n width=\"24px\" height=\"24px\" fill=\"currentColor\" focusable=\"false\">\r\n <path d=\"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"></path>\r\n </svg>\r\n </button>\r\n\r\n <mtx-grid-cell [rowData]=\"row\" [colDef]=\"col\" [placeholder]=\"emptyValuePlaceholder\"\r\n (rowDataChange)=\"_onRowDataChange($event)\">\r\n </mtx-grid-cell>\r\n </ng-template>\r\n </td>\r\n\r\n <td mat-footer-cell *matFooterCellDef\r\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\r\n [ngStyle]=\"{'width': col.width, 'min-width': col.width, 'left': col.left, 'right': col.right}\">\r\n <span class=\"mtx-grid-expansion-placeholder\" *ngIf=\"col.showExpand\"></span>\r\n\r\n <ng-template [ngIf]=\"summaryTemplate | isTemplateRef\" [ngIfElse]=\"summaryTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(summaryTemplate)\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col, data: data }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #summaryTpl>\r\n <ng-template [ngIf]=\"$any(summaryTemplate)?.[col.field] | isTemplateRef\"\r\n [ngIfElse]=\"defaultSummaryTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(summaryTemplate)[col.field]\"\r\n [ngTemplateOutletContext]=\"{ $implicit: _getColData(data, col), colData: _getColData(data, col), colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #defaultSummaryTpl>\r\n <mtx-grid-cell [summary]=\"true\" [data]=\"data\" [colDef]=\"col\"\r\n [placeholder]=\"emptyValuePlaceholder\">\r\n </mtx-grid-cell>\r\n </ng-template>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template [ngIf]=\"useContentHeaderRowTemplate\" [ngIfElse]=\"defaultHeaderRowTpl\">\r\n </ng-template>\r\n <ng-template #defaultHeaderRowTpl>\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"useContentRowTemplate\" [ngIfElse]=\"defaultRowTpl\"></ng-template>\r\n <ng-template #defaultRowTpl>\r\n <tr mat-row\r\n *matRowDef=\"let row; let index = index; let dataIndex = dataIndex; columns: displayedColumns;\"\r\n [class]=\"row | rowClass: index: dataIndex: rowClassFormatter\"\r\n [ngClass]=\"{'selected': rowSelection.isSelected(row)}\"\r\n (click)=\"_selectRow($event, row, _getIndex(index, dataIndex))\">\r\n </tr>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"_whetherShowSummary\">\r\n <tr mat-footer-row *matFooterRowDef=\"displayedColumns; sticky: true\"></tr>\r\n </ng-template>\r\n <ng-template [ngIf]=\"useContentFooterRowTemplate\"></ng-template>\r\n\r\n <ng-container *ngIf=\"expandable\">\r\n <!-- Expanded Content Column - The expandable row is made up of this one column that spans across all columns -->\r\n <ng-container matColumnDef=\"MtxGridExpansionColumnDef\">\r\n <td mat-cell *matCellDef=\"let row; let dataIndex = dataIndex\"\r\n [attr.colspan]=\"displayedColumns.length\">\r\n <div class=\"mtx-grid-expansion-detail\"\r\n [@expansion]=\"expansionRowStates[dataIndex].expanded ? 'expanded' : 'collapsed'\">\r\n <ng-template [ngTemplateOutlet]=\"expansionTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: dataIndex, expanded: expansionRowStates[dataIndex].expanded }\">\r\n </ng-template>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-row\r\n *matRowDef=\"let row; columns: ['MtxGridExpansionColumnDef']; let dataIndex = dataIndex\"\r\n [ngClass]=\"['mtx-grid-expansion', expansionRowStates[dataIndex].expanded ? 'expanded' : 'collapsed']\">\r\n </tr>\r\n </ng-container>\r\n </table>\r\n\r\n <!-- TODO: Use flexbox-based mat-table -->\r\n <table mat-table *ngIf=\"columnResizable\"\r\n columnResize\r\n [ngClass]=\"{'mat-table-hover': rowHover, 'mat-table-striped': rowStriped, 'mat-table-expandable': expandable}\"\r\n [dataSource]=\"dataSource\" [multiTemplateDataRows]=\"expandable\"\r\n matSort\r\n [matSortActive]=\"sortActive\"\r\n [matSortDirection]=\"sortDirection\"\r\n [matSortDisableClear]=\"sortDisableClear\"\r\n [matSortDisabled]=\"sortDisabled\"\r\n [matSortStart]=\"sortStart\"\r\n (matSortChange)=\"_onSortChange($event)\"\r\n [trackBy]=\"trackBy\">\r\n\r\n <ng-container *ngIf=\"rowSelectable && !hideRowSelectionCheckbox\"\r\n matColumnDef=\"MtxGridCheckboxColumnDef\">\r\n <th mat-header-cell *matHeaderCellDef class=\"mtx-grid-checkbox-cell\">\r\n <mat-checkbox *ngIf=\"multiSelectable\"\r\n [checked]=\"rowSelection.hasValue() && _isAllSelected()\"\r\n [indeterminate]=\"rowSelection.hasValue() && !_isAllSelected()\"\r\n (change)=\"$event ? _toggleMasterCheckbox() : null\">\r\n </mat-checkbox>\r\n </th>\r\n <td mat-cell *matCellDef=\"let row; let index = index; let dataIndex = dataIndex;\"\r\n class=\"mtx-grid-checkbox-cell\">\r\n <mat-checkbox *ngIf=\"!(rowSelectionFormatter.hideCheckbox && rowSelectionFormatter.hideCheckbox(row, _getIndex(index, dataIndex)))\"\r\n [disabled]=\"rowSelectionFormatter.disabled && rowSelectionFormatter.disabled(row, _getIndex(index, dataIndex))\"\r\n [checked]=\"rowSelection.isSelected(row)\"\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"$event ? _toggleNormalCheckbox(row) : null\">\r\n </mat-checkbox>\r\n </td>\r\n <td mat-footer-cell *matFooterCellDef class=\"mtx-grid-checkbox-cell\"></td>\r\n </ng-container>\r\n\r\n <ng-container *ngFor=\"let col of columns;\">\r\n <ng-container [matColumnDef]=\"col.field\"\r\n [sticky]=\"col.pinned==='left'\" [stickyEnd]=\"col.pinned==='right'\">\r\n <th mat-header-cell *matHeaderCellDef\r\n [class]=\"col | colClass\"\r\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\r\n [ngStyle]=\"{'width': col.width, 'left': col.left, 'right': col.right}\"\r\n [resizable]=\"col.resizable\"\r\n [matResizableMinWidthPx]=\"col.minWidth\" [matResizableMaxWidthPx]=\"col.maxWidth\">\r\n <div class=\"mat-header-cell-inner\">\r\n <ng-template [ngIf]=\"headerTemplate | isTemplateRef\" [ngIfElse]=\"headerTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(headerTemplate)\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #headerTpl>\r\n <ng-template [ngIf]=\"$any(headerTemplate)?.[col.field] | isTemplateRef\"\r\n [ngIfElse]=\"defaultHeaderTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(headerTemplate)[col.field]\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #defaultHeaderTpl>\r\n <div [mat-sort-header]=\"col.sortProp?.id || col.field\"\r\n [disabled]=\"!col.sortable\"\r\n [disableClear]=\"col.sortProp?.disableClear ?? sortDisableClear\"\r\n [arrowPosition]=\"col.sortProp?.arrowPosition!\"\r\n [start]=\"col.sortProp?.start!\">\r\n <span class=\"mtx-grid-expansion-placeholder\" *ngIf=\"col.showExpand\"></span>\r\n <span>{{col.header | toObservable | async}}</span>\r\n <svg class=\"mtx-grid-icon mat-sort-header-icon\" *ngIf=\"col.sortable\"\r\n viewBox=\"0 0 24 24\" width=\"24px\" height=\"24px\" fill=\"currentColor\"\r\n focusable=\"false\">\r\n <path d=\"M3,13H15V11H3M3,6V8H21V6M3,18H9V16H3V18Z\"></path>\r\n </svg>\r\n </div>\r\n <ng-template [ngTemplateOutlet]=\"headerExtraTplBase\"\r\n [ngTemplateOutletContext]=\"{ $implicit: headerExtraTemplate, colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </div>\r\n </th>\r\n\r\n <td mat-cell *matCellDef=\"let row; let index = index; let dataIndex = dataIndex;\"\r\n [class]=\"col | colClass: row: rowChangeRecord :rowChangeRecord?.currentValue\"\r\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\r\n [ngStyle]=\"{'width': col.width, 'left': col.left, 'right': col.right}\"\r\n mtx-grid-selectable-cell (cellSelectionChange)=\"_selectCell($event, row, col)\">\r\n <ng-template [ngIf]=\"cellTemplate | isTemplateRef\" [ngIfElse]=\"cellTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(cellTemplate)\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: _getIndex(index, dataIndex), colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #cellTpl>\r\n <ng-template [ngIf]=\"$any(cellTemplate)?.[col.field] | isTemplateRef\"\r\n [ngIfElse]=\"colDefCellTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(cellTemplate)[col.field]\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: _getIndex(index, dataIndex), colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #colDefCellTpl>\r\n <ng-template [ngIf]=\"col.cellTemplate\" [ngIfElse]=\"defaultCellTpl\"\r\n [ngTemplateOutlet]=\"col.cellTemplate!\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: _getIndex(index, dataIndex), colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #defaultCellTpl>\r\n <button class=\"mtx-grid-row-expand-button\" *ngIf=\"col.showExpand\"\r\n mat-icon-button mtx-grid-expansion-toggle type=\"button\"\r\n [(opened)]=\"expansionRowStates[dataIndex].expanded\"\r\n (toggleChange)=\"_onExpansionChange($event, row, col, dataIndex);\">\r\n <svg class=\"mtx-grid-icon mtx-grid-row-expand-icon\" viewBox=\"0 0 24 24\"\r\n width=\"24px\" height=\"24px\" fill=\"currentColor\" focusable=\"false\">\r\n <path d=\"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"></path>\r\n </svg>\r\n </button>\r\n\r\n <mtx-grid-cell [rowData]=\"row\" [colDef]=\"col\" [placeholder]=\"emptyValuePlaceholder\"\r\n (rowDataChange)=\"_onRowDataChange($event)\">\r\n </mtx-grid-cell>\r\n </ng-template>\r\n </td>\r\n\r\n <td mat-footer-cell *matFooterCellDef\r\n [ngClass]=\"{'mat-table-sticky-left': col.pinned === 'left', 'mat-table-sticky-right': col.pinned === 'right'}\"\r\n [ngStyle]=\"{'width': col.width, 'left': col.left, 'right': col.right}\">\r\n <span class=\"mtx-grid-expansion-placeholder\" *ngIf=\"col.showExpand\"></span>\r\n\r\n <ng-template [ngIf]=\"summaryTemplate | isTemplateRef\" [ngIfElse]=\"summaryTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(summaryTemplate)\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col, data: data }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #summaryTpl>\r\n <ng-template [ngIf]=\"$any(summaryTemplate)?.[col.field] | isTemplateRef\"\r\n [ngIfElse]=\"defaultSummaryTpl\">\r\n <ng-template [ngTemplateOutlet]=\"$any(summaryTemplate)[col.field]\"\r\n [ngTemplateOutletContext]=\"{ $implicit: _getColData(data, col), colData: _getColData(data, col), colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #defaultSummaryTpl>\r\n <mtx-grid-cell [summary]=\"true\" [data]=\"data\" [colDef]=\"col\"\r\n [placeholder]=\"emptyValuePlaceholder\">\r\n </mtx-grid-cell>\r\n </ng-template>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template [ngIf]=\"useContentHeaderRowTemplate\" [ngIfElse]=\"defaultHeaderRowTpl\">\r\n </ng-template>\r\n <ng-template #defaultHeaderRowTpl>\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></tr>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"useContentRowTemplate\" [ngIfElse]=\"defaultRowTpl\"></ng-template>\r\n <ng-template #defaultRowTpl>\r\n <tr mat-row\r\n *matRowDef=\"let row; let index = index; let dataIndex = dataIndex; columns: displayedColumns;\"\r\n [class]=\"row | rowClass: index: dataIndex: rowClassFormatter\"\r\n [ngClass]=\"{'selected': rowSelection.isSelected(row)}\"\r\n (click)=\"_selectRow($event, row, _getIndex(index, dataIndex))\">\r\n </tr>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"_whetherShowSummary\">\r\n <tr mat-footer-row *matFooterRowDef=\"displayedColumns; sticky: true\"></tr>\r\n </ng-template>\r\n <ng-template [ngIf]=\"useContentFooterRowTemplate\"></ng-template>\r\n\r\n <ng-container *ngIf=\"expandable\">\r\n <!-- Expanded Content Column - The expandable row is made up of this one column that spans across all columns -->\r\n <ng-container matColumnDef=\"MtxGridExpansionColumnDef\">\r\n <td mat-cell *matCellDef=\"let row; let dataIndex = dataIndex\"\r\n [attr.colspan]=\"displayedColumns.length\">\r\n <div class=\"mtx-grid-expansion-detail\"\r\n [@expansion]=\"expansionRowStates[dataIndex].expanded ? 'expanded' : 'collapsed'\">\r\n <ng-template [ngTemplateOutlet]=\"expansionTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: row, rowData: row, index: dataIndex, expanded: expansionRowStates[dataIndex].expanded }\">\r\n </ng-template>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-row\r\n *matRowDef=\"let row; columns: ['MtxGridExpansionColumnDef']; let dataIndex = dataIndex\"\r\n [ngClass]=\"['mtx-grid-expansion', expansionRowStates[dataIndex].expanded ? 'expanded' : 'collapsed']\">\r\n </tr>\r\n </ng-container>\r\n </table>\r\n </div>\r\n\r\n <!-- No result -->\r\n <div class=\"mtx-grid-no-result\" *ngIf=\"_hasNoResult\">\r\n <ng-template [ngIf]=\"noResultTemplate\" [ngIfElse]=\"defaultNoResultTpl\">\r\n <ng-template [ngTemplateOutlet]=\"noResultTemplate\"></ng-template>\r\n </ng-template>\r\n <ng-template #defaultNoResultTpl>{{noResultText}}</ng-template>\r\n </div>\r\n </div>\r\n\r\n <!-- Tool sidebar -->\r\n <div class=\"mtx-grid-sidebar\" *ngIf=\"showSidebar\">\r\n <ng-template [ngIf]=\"sidebarTemplate\">\r\n <ng-template [ngTemplateOutlet]=\"sidebarTemplate\"></ng-template>\r\n </ng-template>\r\n </div>\r\n</div>\r\n\r\n<div class=\"mtx-grid-footer\">\r\n <!-- Status Bar -->\r\n <div class=\"mtx-grid-statusbar\" *ngIf=\"showStatusbar\">\r\n <ng-template [ngIf]=\"statusbarTemplate\">\r\n <ng-template [ngTemplateOutlet]=\"statusbarTemplate\"></ng-template>\r\n </ng-template>\r\n </div>\r\n\r\n <!-- Pagination -->\r\n <div class=\"mtx-grid-pagination\">\r\n <ng-template [ngIf]=\"paginationTemplate\" [ngIfElse]=\"defaultPaginationTemplate\">\r\n <ng-template [ngTemplateOutlet]=\"paginationTemplate\"></ng-template>\r\n </ng-template>\r\n <ng-template #defaultPaginationTemplate>\r\n <mat-paginator [class.mat-paginator-hidden]=\"!showPaginator\"\r\n [showFirstLastButtons]=\"showFirstLastButtons\"\r\n [length]=\"length\"\r\n [pageIndex]=\"pageIndex\"\r\n [pageSize]=\"pageSize\"\r\n [pageSizeOptions]=\"pageSizeOptions\"\r\n [hidePageSize]=\"hidePageSize\"\r\n (page)=\"_onPage($event)\"\r\n [disabled]=\"pageDisabled\">\r\n </mat-paginator>\r\n </ng-template>\r\n </div>\r\n</div>\r\n\r\n<!-- Header template for extra content -->\r\n<ng-template #headerExtraTplBase let-headerExtraTemplate let-col=\"colDef\">\r\n <ng-template [ngIf]=\"headerExtraTemplate | isTemplateRef\" [ngIfElse]=\"headerExtraTpl\">\r\n <ng-template [ngTemplateOutlet]=\"headerExtraTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #headerExtraTpl>\r\n <ng-template [ngIf]=\"$any(headerExtraTemplate)?.[col.field] | isTemplateRef\">\r\n <ng-template [ngTemplateOutlet]=\"headerExtraTemplate[col.field]\"\r\n [ngTemplateOutletContext]=\"{ $implicit: col, colDef: col }\">\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n</ng-template>\r\n", styles: [".mtx-grid{position:relative;display:flex;flex-direction:column;width:100%}.mtx-grid .mat-table-container{overflow:auto}.mtx-grid .mat-table-container.mat-table-with-data{flex:1}.mtx-grid .mat-mdc-table:not(.mat-column-resize-table){min-width:100%;border-collapse:separate}.mtx-grid .mat-mdc-table:not(.mat-column-resize-table) .mat-mdc-header-cell:not(.mtx-grid-checkbox-cell),.mtx-grid .mat-mdc-table:not(.mat-column-resize-table) .mat-mdc-footer-cell:not(.mtx-grid-checkbox-cell),.mtx-grid .mat-mdc-table:not(.mat-column-resize-table) .mat-mdc-cell:not(.mtx-grid-checkbox-cell){min-width:80px}.mtx-grid .mat-table-sticky-left{border-right-width:1px;border-right-style:solid}[dir=rtl] .mtx-grid .mat-table-sticky-left{border-right-width:0;border-left-width:1px;border-left-style:solid}.mtx-grid .mat-table-sticky-right{border-left-width:1px;border-left-style:solid}[dir=rtl] .mtx-grid .mat-table-sticky-right{border-left-width:0;border-right-width:1px;border-right-style:solid}.mtx-grid .mat-mdc-header-cell,.mtx-grid .mat-mdc-footer-cell,.mtx-grid .mat-mdc-cell{padding:4px 10px;box-sizing:border-box}.mtx-grid .mat-mdc-header-cell:first-of-type:not(:only-of-type),.mtx-grid .mat-mdc-footer-cell:first-of-type:not(:only-of-type),.mtx-grid .mat-mdc-cell:first-of-type:not(:only-of-type){padding-left:24px}.mtx-grid .mat-mdc-header-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell,.mtx-grid .mat-mdc-footer-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell,.mtx-grid .mat-mdc-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell{padding-left:10px;padding-right:10px}[dir=rtl] .mtx-grid .mat-mdc-header-cell:first-of-type:not(:only-of-type),[dir=rtl] .mtx-grid .mat-mdc-footer-cell:first-of-type:not(:only-of-type),[dir=rtl] .mtx-grid .mat-mdc-cell:first-of-type:not(:only-of-type){padding-left:10px;padding-right:24px}[dir=rtl] .mtx-grid .mat-mdc-header-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell,[dir=rtl] .mtx-grid .mat-mdc-footer-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell,[dir=rtl] .mtx-grid .mat-mdc-cell:first-of-type:not(:only-of-type).mtx-grid-checkbox-cell{padding-left:10px;padding-right:10px}.mtx-grid .mat-mdc-header-cell:last-of-type:not(:only-of-type),.mtx-grid .mat-mdc-footer-cell:last-of-type:not(:only-of-type),.mtx-grid .mat-mdc-cell:last-of-type:not(:only-of-type){padding-right:24px}[dir=rtl] .mtx-grid .mat-mdc-header-cell:last-of-type:not(:only-of-type),[dir=rtl] .mtx-grid .mat-mdc-footer-cell:last-of-type:not(:only-of-type),[dir=rtl] .mtx-grid .mat-mdc-cell:last-of-type:not(:only-of-type){padding-left:24px;padding-right:10px}.mtx-grid .mat-mdc-row.mtx-grid-expansion{height:0;overflow:hidden}.mtx-grid .mat-mdc-row.mtx-grid-expansion .mat-mdc-cell{padding-top:0;padding-bottom:0}.mtx-grid .mat-mdc-row.mtx-grid-expansion.collapsed .mat-mdc-cell{border-bottom-width:0}.mtx-grid .mat-mdc-row:last-of-type .mat-cell{border-bottom-width:0}.mtx-grid .mat-sort-header-icon{margin:0 4px}.mtx-grid .mat-header-cell-inner{display:flex;align-items:center}.mtx-grid .mat-paginator-hidden{display:none}.mtx-grid-progress{position:absolute;top:0;z-index:120;width:100%}.mtx-grid-toolbar{display:flex;justify-content:space-between;align-items:center;min-height:48px;padding:8px;box-sizing:border-box}.mtx-grid-layout{display:flex;flex:1 1 auto;overflow:auto}.mtx-grid-content{flex-direction:column;width:0}.mtx-grid-sidebar{max-width:50%;border-left-width:1px;border-left-style:solid}[dir=rtl] .mtx-grid-sidebar{border-left-width:0;border-right-width:1px;border-right-style:solid}.mtx-grid-footer{position:relative;z-index:1}.mtx-grid-statusbar{display:flex;align-items:center;min-height:56px;padding:8px}.mtx-grid-no-result{display:flex;justify-content:center;align-items:center;flex:1;min-height:150px}.mtx-grid-expansion-placeholder{display:inline-block;width:40px;height:40px;vertical-align:middle}.mtx-grid-expansion-detail{display:flex;align-items:center;min-height:48px;overflow:hidden}.mtx-grid-checkbox-cell{flex:none;justify-content:center;width:60px;min-width:60px}.mtx-grid-checkbox-cell .mat-checkbox{display:flex;margin:0 10px}.mtx-grid-checkbox-cell .mat-checkbox-inner-container{margin-left:0}.mtx-grid-row-expand-button.mat-mdc-icon-button{width:40px;height:40px;padding:8px;vertical-align:middle}.mtx-grid-row-expand-button.mat-mdc-icon-button.expanded .mtx-grid-row-expand-icon{transform:rotate(90deg)}.mtx-grid-row-expand-button.mat-mdc-icon-button+mtx-grid-cell{vertical-align:middle}.mtx-grid-row-expand-button.mat-mdc-icon-button .mat-mdc-button-touch-target{width:100%;height:100%}.mtx-grid-icon{width:20px;height:20px;font-size:20px}\n"] }]
|
|
1091
|
-
}], ctorParameters: function () {
|
|
1092
|
-
return [{ type: MtxGridUtils }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
1093
|
-
type: Optional
|
|
1094
|
-
}, {
|
|
1095
|
-
type: Inject,
|
|
1096
|
-
args: [MTX_GRID_DEFAULT_OPTIONS]
|
|
1097
|
-
}] }];
|
|
1098
|
-
}, propDecorators: { table: [{
|
|
1099
|
-
type: ViewChild,
|
|
1100
|
-
args: [MatTable]
|
|
1101
|
-
}], paginator: [{
|
|
1102
|
-
type: ViewChild,
|
|
1103
|
-
args: [MatPaginator]
|
|
1104
|
-
}], sort: [{
|
|
1105
|
-
type: ViewChild,
|
|
1106
|
-
args: [MatSort]
|
|
1107
|
-
}], rowDefs: [{
|
|
1108
|
-
type: ContentChildren,
|
|
1109
|
-
args: [MatRowDef]
|
|
1110
|
-
}], headerRowDefs: [{
|
|
1111
|
-
type: ContentChildren,
|
|
1112
|
-
args: [MatHeaderRowDef]
|
|
1113
|
-
}], footerRowDefs: [{
|
|
1114
|
-
type: ContentChildren,
|
|
1115
|
-
args: [MatFooterRow]
|
|
1116
|
-
}], columnMenu: [{
|
|
1117
|
-
type: ViewChild,
|
|
1118
|
-
args: ['columnMenu']
|
|
1119
|
-
}], tableContainer: [{
|
|
1120
|
-
type: ViewChild,
|
|
1121
|
-
args: ['tableContainer']
|
|
1122
|
-
}], displayedColumns: [{
|
|
1123
|
-
type: Input
|
|
1124
|
-
}], columns: [{
|
|
1125
|
-
type: Input
|
|
1126
|
-
}], data: [{
|
|
1127
|
-
type: Input
|
|
1128
|
-
}], length: [{
|
|
1129
|
-
type: Input
|
|
1130
|
-
}], loading: [{
|
|
1131
|
-
type: Input
|
|
1132
|
-
}], trackBy: [{
|
|
1133
|
-
type: Input
|
|
1134
|
-
}], columnResizable: [{
|
|
1135
|
-
type: Input
|
|
1136
|
-
}], emptyValuePlaceholder: [{
|
|
1137
|
-
type: Input
|
|
1138
|
-
}], pageOnFront: [{
|
|
1139
|
-
type: Input
|
|
1140
|
-
}], showPaginator: [{
|
|
1141
|
-
type: Input
|
|
1142
|
-
}], pageDisabled: [{
|
|
1143
|
-
type: Input
|
|
1144
|
-
}], showFirstLastButtons: [{
|
|
1145
|
-
type: Input
|
|
1146
|
-
}], pageIndex: [{
|
|
1147
|
-
type: Input
|
|
1148
|
-
}], pageSize: [{
|
|
1149
|
-
type: Input
|
|
1150
|
-
}], pageSizeOptions: [{
|
|
1151
|
-
type: Input
|
|
1152
|
-
}], hidePageSize: [{
|
|
1153
|
-
type: Input
|
|
1154
|
-
}], page: [{
|
|
1155
|
-
type: Output
|
|
1156
|
-
}], paginationTemplate: [{
|
|
1157
|
-
type: Input
|
|
1158
|
-
}], sortOnFront: [{
|
|
1159
|
-
type: Input
|
|
1160
|
-
}], sortActive: [{
|
|
1161
|
-
type: Input
|
|
1162
|
-
}], sortDirection: [{
|
|
1163
|
-
type: Input
|
|
1164
|
-
}], sortDisableClear: [{
|
|
1165
|
-
type: Input
|
|
1166
|
-
}], sortDisabled: [{
|
|
1167
|
-
type: Input
|
|
1168
|
-
}], sortStart: [{
|
|
1169
|
-
type: Input
|
|
1170
|
-
}], sortChange: [{
|
|
1171
|
-
type: Output
|
|
1172
|
-
}], rowHover: [{
|
|
1173
|
-
type: Input
|
|
1174
|
-
}], rowStriped: [{
|
|
1175
|
-
type: Input
|
|
1176
|
-
}], rowClick: [{
|
|
1177
|
-
type: Output
|
|
1178
|
-
}], expandable: [{
|
|
1179
|
-
type: Input
|
|
1180
|
-
}], expansionTemplate: [{
|
|
1181
|
-
type: Input
|
|
1182
|
-
}], expansionChange: [{
|
|
1183
|
-
type: Output
|
|
1184
|
-
}], multiSelectable: [{
|
|
1185
|
-
type: Input
|
|
1186
|
-
}], multiSelectionWithClick: [{
|
|
1187
|
-
type: Input
|
|
1188
|
-
}], rowSelected: [{
|
|
1189
|
-
type: Input
|
|
1190
|
-
}], rowSelectable: [{
|
|
1191
|
-
type: Input
|
|
1192
|
-
}], hideRowSelectionCheckbox: [{
|
|
1193
|
-
type: Input
|
|
1194
|
-
}], disableRowClickSelection: [{
|
|
1195
|
-
type: Input
|
|
1196
|
-
}], rowSelectionFormatter: [{
|
|
1197
|
-
type: Input
|
|
1198
|
-
}], rowClassFormatter: [{
|
|
1199
|
-
type: Input
|
|
1200
|
-
}], rowSelectionChange: [{
|
|
1201
|
-
type: Output
|
|
1202
|
-
}], cellSelectable: [{
|
|
1203
|
-
type: Input
|
|
1204
|
-
}], cellSelectionChange: [{
|
|
1205
|
-
type: Output
|
|
1206
|
-
}], showToolbar: [{
|
|
1207
|
-
type: Input
|
|
1208
|
-
}], toolbarTitle: [{
|
|
1209
|
-
type: Input
|
|
1210
|
-
}], toolbarTemplate: [{
|
|
1211
|
-
type: Input
|
|
1212
|
-
}], columnHideable: [{
|
|
1213
|
-
type: Input
|
|
1214
|
-
}], columnHideableChecked: [{
|
|
1215
|
-
type: Input
|
|
1216
|
-
}], columnSortable: [{
|
|
1217
|
-
type: Input
|
|
1218
|
-
}], columnPinnable: [{
|
|
1219
|
-
type: Input
|
|
1220
|
-
}], columnChange: [{
|
|
1221
|
-
type: Output
|
|
1222
|
-
}], columnPinOptions: [{
|
|
1223
|
-
type: Input
|
|
1224
|
-
}], showColumnMenuButton: [{
|
|
1225
|
-
type: Input
|
|
1226
|
-
}], columnMenuButtonText: [{
|
|
1227
|
-
type: Input
|
|
1228
|
-
}], columnMenuButtonType: [{
|
|
1229
|
-
type: Input
|
|
1230
|
-
}], columnMenuButtonColor: [{
|
|
1231
|
-
type: Input
|
|
1232
|
-
}], columnMenuButtonClass: [{
|
|
1233
|
-
type: Input
|
|
1234
|
-
}], columnMenuButtonIcon: [{
|
|
1235
|
-
type: Input
|
|
1236
|
-
}], showColumnMenuHeader: [{
|
|
1237
|
-
type: Input
|
|
1238
|
-
}], columnMenuHeaderText: [{
|
|
1239
|
-
type: Input
|
|
1240
|
-
}], columnMenuHeaderTemplate: [{
|
|
1241
|
-
type: Input
|
|
1242
|
-
}], showColumnMenuFooter: [{
|
|
1243
|
-
type: Input
|
|
1244
|
-
}], columnMenuFooterText: [{
|
|
1245
|
-
type: Input
|
|
1246
|
-
}], columnMenuFooterTemplate: [{
|
|
1247
|
-
type: Input
|
|
1248
|
-
}], noResultText: [{
|
|
1249
|
-
type: Input
|
|
1250
|
-
}], noResultTemplate: [{
|
|
1251
|
-
type: Input
|
|
1252
|
-
}], headerTemplate: [{
|
|
1253
|
-
type: Input
|
|
1254
|
-
}], headerExtraTemplate: [{
|
|
1255
|
-
type: Input
|
|
1256
|
-
}], cellTemplate: [{
|
|
1257
|
-
type: Input
|
|
1258
|
-
}], useContentRowTemplate: [{
|
|
1259
|
-
type: Input
|
|
1260
|
-
}], useContentHeaderRowTemplate: [{
|
|
1261
|
-
type: Input
|
|
1262
|
-
}], useContentFooterRowTemplate: [{
|
|
1263
|
-
type: Input
|
|
1264
|
-
}], showSummary: [{
|
|
1265
|
-
type: Input
|
|
1266
|
-
}], summaryTemplate: [{
|
|
1267
|
-
type: Input
|
|
1268
|
-
}], showSidebar: [{
|
|
1269
|
-
type: Input
|
|
1270
|
-
}], sidebarTemplate: [{
|
|
1271
|
-
type: Input
|
|
1272
|
-
}], showStatusbar: [{
|
|
1273
|
-
type: Input
|
|
1274
|
-
}], statusbarTemplate: [{
|
|
1275
|
-
type: Input
|
|
1276
|
-
}] } });
|
|
1277
|
-
class MtxGridSelectableCell {
|
|
1278
|
-
get selected() {
|
|
1279
|
-
return this._selected;
|
|
1280
|
-
}
|
|
1281
|
-
set mtxSelectableRowData(value) {
|
|
1282
|
-
if (value !== this._rowData) {
|
|
1283
|
-
this._rowData = value;
|
|
1284
|
-
}
|
|
1285
|
-
}
|
|
1286
|
-
constructor(_grid) {
|
|
1287
|
-
this._grid = _grid;
|
|
1288
|
-
this._selected = false;
|
|
1289
|
-
this.ctrlKeyPressed = false;
|
|
1290
|
-
this.shiftKeyPressed = false;
|
|
1291
|
-
this.cellSelectionChange = new EventEmitter();
|
|
1292
|
-
}
|
|
1293
|
-
onClick(event) {
|
|
1294
|
-
this.ctrlKeyPressed = event.ctrlKey;
|
|
1295
|
-
this.shiftKeyPressed = event.shiftKey;
|
|
1296
|
-
if (this._grid.cellSelectable) {
|
|
1297
|
-
this.select();
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
select() {
|
|
1301
|
-
this._selected = true;
|
|
1302
|
-
this.cellSelectionChange.emit(this);
|
|
1303
|
-
}
|
|
1304
|
-
deselect() {
|
|
1305
|
-
this._selected = false;
|
|
1306
|
-
this.cellSelectionChange.emit(this);
|
|
1307
|
-
}
|
|
1308
|
-
toggle() {
|
|
1309
|
-
this._selected = !this._selected;
|
|
1310
|
-
this.cellSelectionChange.emit(this);
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
/** @nocollapse */ MtxGridSelectableCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridSelectableCell, deps: [{ token: MtxGrid }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1314
|
-
/** @nocollapse */ MtxGridSelectableCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: MtxGridSelectableCell, selector: "[mtx-grid-selectable-cell]", inputs: { mtxSelectableRowData: "mtxSelectableRowData" }, outputs: { cellSelectionChange: "cellSelectionChange" }, host: { listeners: { "click": "onClick($event)" }, properties: { "class.selected": "this.selected" } }, ngImport: i0 });
|
|
1315
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridSelectableCell, decorators: [{
|
|
1316
|
-
type: Directive,
|
|
1317
|
-
args: [{
|
|
1318
|
-
selector: '[mtx-grid-selectable-cell]',
|
|
1319
|
-
}]
|
|
1320
|
-
}], ctorParameters: function () { return [{ type: MtxGrid }]; }, propDecorators: { selected: [{
|
|
1321
|
-
type: HostBinding,
|
|
1322
|
-
args: ['class.selected']
|
|
1323
|
-
}], mtxSelectableRowData: [{
|
|
1324
|
-
type: Input
|
|
1325
|
-
}], cellSelectionChange: [{
|
|
1326
|
-
type: Output
|
|
1327
|
-
}], onClick: [{
|
|
1328
|
-
type: HostListener,
|
|
1329
|
-
args: ['click', ['$event']]
|
|
1330
|
-
}] } });
|
|
1331
|
-
|
|
1332
|
-
/**
|
|
1333
|
-
* @license
|
|
1334
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1335
|
-
*
|
|
1336
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1337
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1338
|
-
*/
|
|
1339
|
-
/**
|
|
1340
|
-
* Explicitly enables column resizing for a flexbox-based mat-table.
|
|
1341
|
-
* Individual columns must be annotated specifically.
|
|
1342
|
-
*/
|
|
1343
|
-
class MatColumnResizeFlex extends AbstractMatColumnResize {
|
|
1344
|
-
constructor(columnResizeNotifier, elementRef, eventDispatcher, ngZone, notifier) {
|
|
1345
|
-
super();
|
|
1346
|
-
this.columnResizeNotifier = columnResizeNotifier;
|
|
1347
|
-
this.elementRef = elementRef;
|
|
1348
|
-
this.eventDispatcher = eventDispatcher;
|
|
1349
|
-
this.ngZone = ngZone;
|
|
1350
|
-
this.notifier = notifier;
|
|
1351
|
-
}
|
|
1352
|
-
}
|
|
1353
|
-
/** @nocollapse */ MatColumnResizeFlex.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MatColumnResizeFlex, deps: [{ token: i2.ColumnResizeNotifier }, { token: i0.ElementRef }, { token: i2.HeaderRowEventDispatcher }, { token: i0.NgZone }, { token: i2.ColumnResizeNotifierSource }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1354
|
-
/** @nocollapse */ MatColumnResizeFlex.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: MatColumnResizeFlex, selector: "mat-table[columnResize]", host: { classAttribute: "mat-column-resize-flex" }, providers: [...FLEX_PROVIDERS, { provide: ColumnResize, useExisting: MatColumnResizeFlex }], usesInheritance: true, ngImport: i0 });
|
|
1355
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MatColumnResizeFlex, decorators: [{
|
|
1356
|
-
type: Directive,
|
|
1357
|
-
args: [{
|
|
1358
|
-
selector: 'mat-table[columnResize]',
|
|
1359
|
-
host: FLEX_HOST_BINDINGS,
|
|
1360
|
-
providers: [...FLEX_PROVIDERS, { provide: ColumnResize, useExisting: MatColumnResizeFlex }],
|
|
1361
|
-
}]
|
|
1362
|
-
}], ctorParameters: function () { return [{ type: i2.ColumnResizeNotifier }, { type: i0.ElementRef }, { type: i2.HeaderRowEventDispatcher }, { type: i0.NgZone }, { type: i2.ColumnResizeNotifierSource }]; } });
|
|
1363
|
-
|
|
1364
|
-
/**
|
|
1365
|
-
* @license
|
|
1366
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1367
|
-
*
|
|
1368
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1369
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1370
|
-
*/
|
|
1371
|
-
const ENTRY_COMMON_COMPONENTS = [MatColumnResizeOverlayHandle];
|
|
1372
|
-
class MatColumnResizeCommonModule {
|
|
1373
|
-
}
|
|
1374
|
-
/** @nocollapse */ MatColumnResizeCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MatColumnResizeCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1375
|
-
/** @nocollapse */ MatColumnResizeCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: MatColumnResizeCommonModule, declarations: [MatColumnResizeOverlayHandle], exports: [MatColumnResizeOverlayHandle] });
|
|
1376
|
-
/** @nocollapse */ MatColumnResizeCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MatColumnResizeCommonModule });
|
|
1377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MatColumnResizeCommonModule, decorators: [{
|
|
1378
|
-
type: NgModule,
|
|
1379
|
-
args: [{
|
|
1380
|
-
declarations: ENTRY_COMMON_COMPONENTS,
|
|
1381
|
-
exports: ENTRY_COMMON_COMPONENTS,
|
|
1382
|
-
}]
|
|
1383
|
-
}] });
|
|
1384
|
-
const IMPORTS = [OverlayModule, MatColumnResizeCommonModule];
|
|
1385
|
-
class MatColumnResizeModule {
|
|
1386
|
-
}
|
|
1387
|
-
/** @nocollapse */ MatColumnResizeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MatColumnResizeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1388
|
-
/** @nocollapse */ MatColumnResizeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: MatColumnResizeModule, declarations: [MatColumnResize, MatColumnResizeFlex, MatResizable], imports: [OverlayModule, MatColumnResizeCommonModule], exports: [MatColumnResize, MatColumnResizeFlex, MatResizable] });
|
|
1389
|
-
/** @nocollapse */ MatColumnResizeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MatColumnResizeModule, imports: [IMPORTS] });
|
|
1390
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MatColumnResizeModule, decorators: [{
|
|
1391
|
-
type: NgModule,
|
|
1392
|
-
args: [{
|
|
1393
|
-
imports: IMPORTS,
|
|
1394
|
-
declarations: [MatColumnResize, MatColumnResizeFlex, MatResizable],
|
|
1395
|
-
exports: [MatColumnResize, MatColumnResizeFlex, MatResizable],
|
|
1396
|
-
}]
|
|
1397
|
-
}] });
|
|
1398
|
-
|
|
1399
|
-
class MtxGridModule {
|
|
1400
|
-
}
|
|
1401
|
-
/** @nocollapse */ MtxGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1402
|
-
/** @nocollapse */ MtxGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: MtxGridModule, declarations: [MtxGrid,
|
|
1403
|
-
MtxGridCell,
|
|
1404
|
-
MtxGridColumnMenu,
|
|
1405
|
-
MtxGridExpansionToggle,
|
|
1406
|
-
MtxGridSelectableCell,
|
|
1407
|
-
MtxGridRowClassPipe,
|
|
1408
|
-
MtxGridColClassPipe,
|
|
1409
|
-
MtxGridCellActionTooltipPipe,
|
|
1410
|
-
MtxGridCellActionDisablePipe,
|
|
1411
|
-
MtxGridCellSummaryPipe], imports: [CommonModule,
|
|
1412
|
-
FormsModule,
|
|
1413
|
-
MatTableModule,
|
|
1414
|
-
MatSortModule,
|
|
1415
|
-
MatPaginatorModule,
|
|
1416
|
-
MatCheckboxModule,
|
|
1417
|
-
MatButtonModule,
|
|
1418
|
-
MatProgressBarModule,
|
|
1419
|
-
MatChipsModule,
|
|
1420
|
-
MatTooltipModule,
|
|
1421
|
-
MatIconModule,
|
|
1422
|
-
MatSelectModule,
|
|
1423
|
-
MatFormFieldModule,
|
|
1424
|
-
MatMenuModule,
|
|
1425
|
-
DragDropModule,
|
|
1426
|
-
MtxDialogModule,
|
|
1427
|
-
MtxPipesModule,
|
|
1428
|
-
MatColumnResizeModule], exports: [MtxGrid,
|
|
1429
|
-
MtxGridCell,
|
|
1430
|
-
MtxGridColumnMenu,
|
|
1431
|
-
MtxGridExpansionToggle,
|
|
1432
|
-
MtxGridSelectableCell,
|
|
1433
|
-
MatColumnResizeModule,
|
|
1434
|
-
MtxGridRowClassPipe,
|
|
1435
|
-
MtxGridColClassPipe,
|
|
1436
|
-
MtxGridCellActionTooltipPipe,
|
|
1437
|
-
MtxGridCellActionDisablePipe,
|
|
1438
|
-
MtxGridCellSummaryPipe] });
|
|
1439
|
-
/** @nocollapse */ MtxGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridModule, providers: [MtxGridUtils], imports: [CommonModule,
|
|
1440
|
-
FormsModule,
|
|
1441
|
-
MatTableModule,
|
|
1442
|
-
MatSortModule,
|
|
1443
|
-
MatPaginatorModule,
|
|
1444
|
-
MatCheckboxModule,
|
|
1445
|
-
MatButtonModule,
|
|
1446
|
-
MatProgressBarModule,
|
|
1447
|
-
MatChipsModule,
|
|
1448
|
-
MatTooltipModule,
|
|
1449
|
-
MatIconModule,
|
|
1450
|
-
MatSelectModule,
|
|
1451
|
-
MatFormFieldModule,
|
|
1452
|
-
MatMenuModule,
|
|
1453
|
-
DragDropModule,
|
|
1454
|
-
MtxDialogModule,
|
|
1455
|
-
MtxPipesModule,
|
|
1456
|
-
MatColumnResizeModule, MatColumnResizeModule] });
|
|
1457
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: MtxGridModule, decorators: [{
|
|
1458
|
-
type: NgModule,
|
|
1459
|
-
args: [{
|
|
1460
|
-
imports: [
|
|
1461
|
-
CommonModule,
|
|
1462
|
-
FormsModule,
|
|
1463
|
-
MatTableModule,
|
|
1464
|
-
MatSortModule,
|
|
1465
|
-
MatPaginatorModule,
|
|
1466
|
-
MatCheckboxModule,
|
|
1467
|
-
MatButtonModule,
|
|
1468
|
-
MatProgressBarModule,
|
|
1469
|
-
MatChipsModule,
|
|
1470
|
-
MatTooltipModule,
|
|
1471
|
-
MatIconModule,
|
|
1472
|
-
MatSelectModule,
|
|
1473
|
-
MatFormFieldModule,
|
|
1474
|
-
MatMenuModule,
|
|
1475
|
-
DragDropModule,
|
|
1476
|
-
MtxDialogModule,
|
|
1477
|
-
MtxPipesModule,
|
|
1478
|
-
MatColumnResizeModule,
|
|
1479
|
-
],
|
|
1480
|
-
exports: [
|
|
1481
|
-
MtxGrid,
|
|
1482
|
-
MtxGridCell,
|
|
1483
|
-
MtxGridColumnMenu,
|
|
1484
|
-
MtxGridExpansionToggle,
|
|
1485
|
-
MtxGridSelectableCell,
|
|
1486
|
-
MatColumnResizeModule,
|
|
1487
|
-
MtxGridRowClassPipe,
|
|
1488
|
-
MtxGridColClassPipe,
|
|
1489
|
-
MtxGridCellActionTooltipPipe,
|
|
1490
|
-
MtxGridCellActionDisablePipe,
|
|
1491
|
-
MtxGridCellSummaryPipe,
|
|
1492
|
-
],
|
|
1493
|
-
declarations: [
|
|
1494
|
-
MtxGrid,
|
|
1495
|
-
MtxGridCell,
|
|
1496
|
-
MtxGridColumnMenu,
|
|
1497
|
-
MtxGridExpansionToggle,
|
|
1498
|
-
MtxGridSelectableCell,
|
|
1499
|
-
MtxGridRowClassPipe,
|
|
1500
|
-
MtxGridColClassPipe,
|
|
1501
|
-
MtxGridCellActionTooltipPipe,
|
|
1502
|
-
MtxGridCellActionDisablePipe,
|
|
1503
|
-
MtxGridCellSummaryPipe,
|
|
1504
|
-
],
|
|
1505
|
-
providers: [MtxGridUtils],
|
|
1506
|
-
}]
|
|
1507
|
-
}] });
|
|
1508
|
-
|
|
1509
|
-
/**
|
|
1510
|
-
* Generated bundle index. Do not edit.
|
|
1511
|
-
*/
|
|
1512
|
-
|
|
1513
|
-
export { AbstractMatColumnResize, AbstractMatResizable, FLEX_HOST_BINDINGS as MAT_FLEX_HOST_BINDINGS, FLEX_PROVIDERS as MAT_FLEX_PROVIDERS, FLEX_RESIZE_STRATEGY_PROVIDER as MAT_FLEX_RESIZE_STRATEGY_PROVIDER, RESIZABLE_HOST_BINDINGS as MAT_RESIZABLE_HOST_BINDINGS, RESIZABLE_INPUTS as MAT_RESIZABLE_INPUTS, TABLE_HOST_BINDINGS as MAT_TABLE_HOST_BINDINGS, TABLE_PROVIDERS as MAT_TABLE_PROVIDERS, MTX_GRID_DEFAULT_OPTIONS, MatColumnResize, MatColumnResizeCommonModule, MatColumnResizeFlex, MatColumnResizeModule, MatColumnResizeOverlayHandle, MatFlexTableResizeStrategy, MatResizable, MtxGrid, MtxGridCell, MtxGridCellActionDisablePipe, MtxGridCellActionTooltipPipe, MtxGridCellSummaryPipe, MtxGridColClassPipe, MtxGridColumnMenu, MtxGridExpansionToggle, MtxGridModule, MtxGridRowClassPipe, MtxGridSelectableCell, MtxGridUtils };
|
|
1514
|
-
//# sourceMappingURL=mtxGrid.mjs.map
|