@rxap/material-table-system 21.0.1-dev.0 → 21.0.1-dev.1
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/CHANGELOG.md +31 -0
- package/compodoc/changelog.html +30 -0
- package/compodoc/components/BooleanCellComponent.html +55 -38
- package/compodoc/components/CheckboxCellComponent.html +79 -88
- package/compodoc/components/CheckboxHeaderCellComponent.html +61 -141
- package/compodoc/components/CopyToClipboardCellComponent.html +44 -33
- package/compodoc/components/DateCellComponent.html +69 -61
- package/compodoc/components/ExpandControlsCellComponent.html +36 -90
- package/compodoc/components/ExpandRowContainerComponent.html +95 -173
- package/compodoc/components/IconCellComponent.html +44 -33
- package/compodoc/components/ImageCellComponent.html +164 -119
- package/compodoc/components/LinkCellComponent.html +121 -64
- package/compodoc/components/OptionsCellComponent.html +119 -250
- package/compodoc/components/TableColumnMenuComponent.html +128 -433
- package/compodoc/components/TableColumnOptionComponent.html +280 -378
- package/compodoc/components/TableSelectControlsComponent.html +30 -93
- package/compodoc/components/TableShowArchivedSlideComponent.html +67 -102
- package/compodoc/components/TreeControlCellComponent.html +54 -62
- package/compodoc/dependencies.html +10 -10
- package/compodoc/directives/AbstractTableRowAction.html +1568 -0
- package/compodoc/directives/ExpandRowContentDirective.html +7 -77
- package/compodoc/directives/ExpandRowDirective.html +76 -184
- package/compodoc/directives/FilterHeaderRowDirective.html +67 -177
- package/compodoc/directives/PersistentPaginatorDirective.html +60 -83
- package/compodoc/directives/SelectedRowsDirective.html +17 -115
- package/compodoc/directives/TableColumnFilterInputDirective.html +67 -100
- package/compodoc/directives/TableCreateButtonDirective.html +53 -194
- package/compodoc/directives/TableDataSourceDirective.html +298 -350
- package/compodoc/directives/TableHeaderButtonDirective.html +290 -435
- package/compodoc/directives/TableRowActionDirective.html +816 -105
- package/compodoc/directives/TableRowActionExecutingDirective.html +11 -80
- package/compodoc/directives/TableRowHeaderActionDirective.html +772 -335
- package/compodoc/graph/dependencies.svg +15 -433
- package/compodoc/injectables/ExpandRowService.html +43 -8
- package/compodoc/injectables/SelectRowService.html +17 -52
- package/compodoc/interfaces/ExpandCellContentDirectiveContext.html +3 -11
- package/compodoc/interfaces/SelectedRowsDirectiveContext.html +15 -40
- package/compodoc/js/menu-wc.js +4 -166
- package/compodoc/js/menu-wc_es5.js +1 -1
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/modules.html +0 -85
- package/compodoc/overview.html +3 -467
- package/compodoc/pipes/RowActionCheckPipe.html +6 -13
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +9700 -11542
- package/docs/html/assets/hierarchy.js +1 -1
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/AbstractTableRowAction.html +22 -20
- package/docs/html/classes/BooleanCellComponent.html +2 -2
- package/docs/html/classes/CheckboxCellComponent.html +3 -2
- package/docs/html/classes/CheckboxHeaderCellComponent.html +5 -11
- package/docs/html/classes/CopyToClipboardCellComponent.html +2 -2
- package/docs/html/classes/DateCellComponent.html +2 -2
- package/docs/html/classes/ExpandControlsCellComponent.html +2 -2
- package/docs/html/classes/ExpandRowContainerComponent.html +4 -11
- package/docs/html/classes/ExpandRowContentDirective.html +2 -2
- package/docs/html/classes/ExpandRowDirective.html +3 -3
- package/docs/html/classes/ExpandRowService.html +3 -2
- package/docs/html/classes/FilterHeaderRowDirective.html +44 -29
- package/docs/html/classes/IconCellComponent.html +2 -2
- package/docs/html/classes/ImageCellComponent.html +3 -3
- package/docs/html/classes/LinkCellComponent.html +3 -3
- package/docs/html/classes/OptionsCellComponent.html +2 -17
- package/docs/html/classes/PersistentPaginatorDirective.html +4 -7
- package/docs/html/classes/RowActionCheckPipe.html +2 -2
- package/docs/html/classes/SelectRowService.html +2 -2
- package/docs/html/classes/SelectedRowsDirective.html +2 -11
- package/docs/html/classes/SelectionModel.html +15 -15
- package/docs/html/classes/TableColumnFilterInputDirective.html +2 -9
- package/docs/html/classes/TableColumnFilterService.html +2 -2
- package/docs/html/classes/TableColumnMenuComponent.html +8 -13
- package/docs/html/classes/TableColumnOptionComponent.html +11 -12
- package/docs/html/classes/TableCreateButtonDirective.html +3 -9
- package/docs/html/classes/TableDataSourceDirective.html +14 -11
- package/docs/html/classes/TableFilterService.html +3 -3
- package/docs/html/classes/TableHeaderButtonDirective.html +18 -20
- package/docs/html/classes/TableRowActionDirective.html +22 -20
- package/docs/html/classes/TableRowActionExecutingDirective.html +2 -2
- package/docs/html/classes/TableRowHeaderActionDirective.html +23 -21
- package/docs/html/classes/TableSelectControlsComponent.html +3 -3
- package/docs/html/classes/TableShowArchivedSlideComponent.html +4 -8
- package/docs/html/classes/ToFilterColumnNamesPipe.html +2 -2
- package/docs/html/classes/TreeControlCellComponent.html +3 -9
- package/docs/html/enums/TableHeaderButtonActionStatus.html +2 -2
- package/docs/html/enums/TableRowActionStatus.html +2 -2
- package/docs/html/functions/GetTableHeaderButtonMetadata.html +1 -1
- package/docs/html/functions/GetTableRowActionCheckFunction.html +1 -1
- package/docs/html/functions/GetTableRowActionMetadata.html +1 -1
- package/docs/html/functions/HasTableRowActionCheckFunction.html +1 -1
- package/docs/html/functions/HasTableRowActionMetadata.html +1 -1
- package/docs/html/functions/IsTableRowActionTypeMethod.html +1 -1
- package/docs/html/functions/IsTableRowActionTypeSwitchMethod.html +1 -1
- package/docs/html/functions/NormalizeTableRow.html +3 -3
- package/docs/html/functions/TableActionMethod.html +1 -1
- package/docs/html/functions/TableHeaderButtonMethod.html +1 -1
- package/docs/html/functions/getMultipleValuesInSingleSelectionError.html +2 -2
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/ExpandCellContentDirectiveContext.html +2 -2
- package/docs/html/interfaces/SelectRowOptions.html +2 -2
- package/docs/html/interfaces/SelectedRowsDirectiveContext.html +2 -2
- package/docs/html/interfaces/SelectionChange.html +5 -5
- package/docs/html/interfaces/TableActionMethodOptions.html +9 -9
- package/docs/html/interfaces/TableHeaderButtonMethodOptions.html +6 -6
- package/docs/html/interfaces/TableRowMetadata.html +3 -3
- package/docs/html/modules.html +1 -1
- package/docs/html/types/RawTableRow.html +1 -1
- package/docs/html/types/RowActionCheckFunction.html +1 -1
- package/docs/html/types/RowIdMapperFunction.html +1 -1
- package/docs/html/types/TableRemoteMethodAdapterFactory.html +1 -1
- package/docs/html/types/TableRowActionMethod.html +1 -1
- package/docs/html/types/TableRowActionTypeMethod.html +1 -1
- package/docs/html/types/TableRowActionTypeSwitchMethod.html +1 -1
- package/docs/html/variables/RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS.html +1 -1
- package/docs/html/variables/RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA.html +2 -2
- package/docs/html/variables/RXAP_TABLE_ACTION_METHOD_METADATA.html +1 -1
- package/docs/html/variables/RXAP_TABLE_ACTION_METHOD_TYPE_METADATA.html +2 -2
- package/docs/html/variables/RXAP_TABLE_FILTER.html +1 -1
- package/docs/html/variables/RXAP_TABLE_FILTER_FORM_DEFINITION.html +1 -1
- package/docs/html/variables/RXAP_TABLE_HEADER_BUTTON_METHOD_METADATA.html +1 -1
- package/docs/html/variables/RXAP_TABLE_METHOD.html +1 -1
- package/docs/html/variables/RXAP_TABLE_ROW_ACTION_METHOD.html +1 -1
- package/docs/html/variables/RowAnimation.html +1 -1
- package/docs/html/variables/TABLE_CREATE_REMOTE_METHOD.html +1 -1
- package/docs/html/variables/TABLE_DATA_SOURCE.html +1 -1
- package/docs/html/variables/TABLE_HEADER_BUTTON_METHOD.html +1 -1
- package/docs/html/variables/TABLE_REMOTE_METHOD.html +2 -2
- package/docs/html/variables/TABLE_REMOTE_METHOD_ADAPTER_FACTORY.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/AbstractTableRowAction.md +107 -147
- package/docs/markdown/classes/BooleanCellComponent.md +4 -4
- package/docs/markdown/classes/CheckboxCellComponent.md +14 -14
- package/docs/markdown/classes/CheckboxHeaderCellComponent.md +12 -50
- package/docs/markdown/classes/CopyToClipboardCellComponent.md +4 -4
- package/docs/markdown/classes/DateCellComponent.md +6 -6
- package/docs/markdown/classes/ExpandControlsCellComponent.md +6 -14
- package/docs/markdown/classes/ExpandRowContainerComponent.md +12 -67
- package/docs/markdown/classes/ExpandRowContentDirective.md +5 -13
- package/docs/markdown/classes/ExpandRowDirective.md +9 -23
- package/docs/markdown/classes/ExpandRowService.md +14 -6
- package/docs/markdown/classes/FilterHeaderRowDirective.md +245 -181
- package/docs/markdown/classes/IconCellComponent.md +4 -4
- package/docs/markdown/classes/ImageCellComponent.md +13 -13
- package/docs/markdown/classes/LinkCellComponent.md +10 -10
- package/docs/markdown/classes/OptionsCellComponent.md +15 -106
- package/docs/markdown/classes/PersistentPaginatorDirective.md +10 -38
- package/docs/markdown/classes/RowActionCheckPipe.md +5 -11
- package/docs/markdown/classes/SelectRowService.md +9 -15
- package/docs/markdown/classes/SelectedRowsDirective.md +4 -68
- package/docs/markdown/classes/SelectionModel.md +16 -16
- package/docs/markdown/classes/TableColumnFilterInputDirective.md +6 -60
- package/docs/markdown/classes/TableColumnFilterService.md +5 -5
- package/docs/markdown/classes/TableColumnMenuComponent.md +18 -93
- package/docs/markdown/classes/TableColumnOptionComponent.md +40 -103
- package/docs/markdown/classes/TableCreateButtonDirective.md +7 -46
- package/docs/markdown/classes/TableDataSourceDirective.md +49 -84
- package/docs/markdown/classes/TableFilterService.md +11 -11
- package/docs/markdown/classes/TableHeaderButtonDirective.md +88 -124
- package/docs/markdown/classes/TableRowActionDirective.md +136 -160
- package/docs/markdown/classes/TableRowActionExecutingDirective.md +6 -18
- package/docs/markdown/classes/TableRowHeaderActionDirective.md +133 -174
- package/docs/markdown/classes/TableSelectControlsComponent.md +8 -20
- package/docs/markdown/classes/TableShowArchivedSlideComponent.md +8 -46
- package/docs/markdown/classes/ToFilterColumnNamesPipe.md +3 -3
- package/docs/markdown/classes/TreeControlCellComponent.md +10 -33
- package/docs/markdown/enumerations/TableHeaderButtonActionStatus.md +6 -6
- package/docs/markdown/enumerations/TableRowActionStatus.md +6 -6
- package/docs/markdown/functions/GetTableHeaderButtonMetadata.md +2 -2
- package/docs/markdown/functions/GetTableRowActionCheckFunction.md +2 -2
- package/docs/markdown/functions/GetTableRowActionMetadata.md +2 -2
- package/docs/markdown/functions/HasTableRowActionCheckFunction.md +2 -2
- package/docs/markdown/functions/HasTableRowActionMetadata.md +2 -2
- package/docs/markdown/functions/IsTableRowActionTypeMethod.md +2 -2
- package/docs/markdown/functions/IsTableRowActionTypeSwitchMethod.md +2 -2
- package/docs/markdown/functions/NormalizeTableRow.md +3 -3
- package/docs/markdown/functions/TableActionMethod.md +3 -3
- package/docs/markdown/functions/TableHeaderButtonMethod.md +2 -2
- package/docs/markdown/functions/getMultipleValuesInSingleSelectionError.md +2 -2
- package/docs/markdown/globals.md +2 -7
- package/docs/markdown/interfaces/ExpandCellContentDirectiveContext.md +3 -3
- package/docs/markdown/interfaces/SelectRowOptions.md +6 -6
- package/docs/markdown/interfaces/SelectedRowsDirectiveContext.md +3 -3
- package/docs/markdown/interfaces/SelectionChange.md +5 -5
- package/docs/markdown/interfaces/TableActionMethodOptions.md +11 -11
- package/docs/markdown/interfaces/TableHeaderButtonMethodOptions.md +7 -7
- package/docs/markdown/interfaces/TableRowMetadata.md +4 -4
- package/docs/markdown/type-aliases/RawTableRow.md +2 -2
- package/docs/markdown/type-aliases/RowActionCheckFunction.md +2 -2
- package/docs/markdown/type-aliases/RowIdMapperFunction.md +2 -2
- package/docs/markdown/type-aliases/TableRemoteMethodAdapterFactory.md +2 -2
- package/docs/markdown/type-aliases/TableRowActionMethod.md +2 -2
- package/docs/markdown/type-aliases/TableRowActionTypeMethod.md +2 -2
- package/docs/markdown/type-aliases/TableRowActionTypeSwitchMethod.md +2 -2
- package/docs/markdown/variables/RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS.md +2 -2
- package/docs/markdown/variables/RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA.md +2 -2
- package/docs/markdown/variables/RXAP_TABLE_ACTION_METHOD_METADATA.md +2 -2
- package/docs/markdown/variables/RXAP_TABLE_ACTION_METHOD_TYPE_METADATA.md +2 -2
- package/docs/markdown/variables/RXAP_TABLE_FILTER.md +2 -2
- package/docs/markdown/variables/RXAP_TABLE_FILTER_FORM_DEFINITION.md +2 -2
- package/docs/markdown/variables/RXAP_TABLE_HEADER_BUTTON_METHOD_METADATA.md +2 -2
- package/docs/markdown/variables/RXAP_TABLE_METHOD.md +2 -2
- package/docs/markdown/variables/RXAP_TABLE_ROW_ACTION_METHOD.md +2 -2
- package/docs/markdown/variables/RowAnimation.md +2 -2
- package/docs/markdown/variables/TABLE_CREATE_REMOTE_METHOD.md +2 -2
- package/docs/markdown/variables/TABLE_DATA_SOURCE.md +2 -2
- package/docs/markdown/variables/TABLE_HEADER_BUTTON_METHOD.md +2 -2
- package/docs/markdown/variables/TABLE_REMOTE_METHOD.md +2 -2
- package/docs/markdown/variables/TABLE_REMOTE_METHOD_ADAPTER_FACTORY.md +2 -2
- package/docs/wiki/Class.AbstractTableRowAction.md +106 -146
- package/docs/wiki/Class.BooleanCellComponent.md +3 -3
- package/docs/wiki/Class.CheckboxCellComponent.md +13 -13
- package/docs/wiki/Class.CheckboxHeaderCellComponent.md +11 -49
- package/docs/wiki/Class.CopyToClipboardCellComponent.md +3 -3
- package/docs/wiki/Class.DateCellComponent.md +5 -5
- package/docs/wiki/Class.ExpandControlsCellComponent.md +5 -13
- package/docs/wiki/Class.ExpandRowContainerComponent.md +11 -66
- package/docs/wiki/Class.ExpandRowContentDirective.md +4 -12
- package/docs/wiki/Class.ExpandRowDirective.md +8 -22
- package/docs/wiki/Class.ExpandRowService.md +13 -5
- package/docs/wiki/Class.FilterHeaderRowDirective.md +244 -180
- package/docs/wiki/Class.IconCellComponent.md +3 -3
- package/docs/wiki/Class.ImageCellComponent.md +12 -12
- package/docs/wiki/Class.LinkCellComponent.md +9 -9
- package/docs/wiki/Class.OptionsCellComponent.md +14 -105
- package/docs/wiki/Class.PersistentPaginatorDirective.md +9 -37
- package/docs/wiki/Class.RowActionCheckPipe.md +4 -10
- package/docs/wiki/Class.SelectRowService.md +8 -14
- package/docs/wiki/Class.SelectedRowsDirective.md +3 -67
- package/docs/wiki/Class.SelectionModel.md +15 -15
- package/docs/wiki/Class.TableColumnFilterInputDirective.md +5 -59
- package/docs/wiki/Class.TableColumnFilterService.md +4 -4
- package/docs/wiki/Class.TableColumnMenuComponent.md +17 -92
- package/docs/wiki/Class.TableColumnOptionComponent.md +39 -102
- package/docs/wiki/Class.TableCreateButtonDirective.md +6 -45
- package/docs/wiki/Class.TableDataSourceDirective.md +48 -83
- package/docs/wiki/Class.TableFilterService.md +10 -10
- package/docs/wiki/Class.TableHeaderButtonDirective.md +87 -123
- package/docs/wiki/Class.TableRowActionDirective.md +135 -159
- package/docs/wiki/Class.TableRowActionExecutingDirective.md +5 -17
- package/docs/wiki/Class.TableRowHeaderActionDirective.md +132 -173
- package/docs/wiki/Class.TableSelectControlsComponent.md +7 -19
- package/docs/wiki/Class.TableShowArchivedSlideComponent.md +7 -45
- package/docs/wiki/Class.ToFilterColumnNamesPipe.md +2 -2
- package/docs/wiki/Class.TreeControlCellComponent.md +9 -32
- package/docs/wiki/Enumeration.TableHeaderButtonActionStatus.md +5 -5
- package/docs/wiki/Enumeration.TableRowActionStatus.md +5 -5
- package/docs/wiki/Function.GetTableHeaderButtonMetadata.md +1 -1
- package/docs/wiki/Function.GetTableRowActionCheckFunction.md +1 -1
- package/docs/wiki/Function.GetTableRowActionMetadata.md +1 -1
- package/docs/wiki/Function.HasTableRowActionCheckFunction.md +1 -1
- package/docs/wiki/Function.HasTableRowActionMetadata.md +1 -1
- package/docs/wiki/Function.IsTableRowActionTypeMethod.md +1 -1
- package/docs/wiki/Function.IsTableRowActionTypeSwitchMethod.md +1 -1
- package/docs/wiki/Function.NormalizeTableRow.md +2 -2
- package/docs/wiki/Function.TableActionMethod.md +2 -2
- package/docs/wiki/Function.TableHeaderButtonMethod.md +1 -1
- package/docs/wiki/Function.getMultipleValuesInSingleSelectionError.md +1 -1
- package/docs/wiki/Interface.ExpandCellContentDirectiveContext.md +2 -2
- package/docs/wiki/Interface.SelectRowOptions.md +5 -5
- package/docs/wiki/Interface.SelectedRowsDirectiveContext.md +2 -2
- package/docs/wiki/Interface.SelectionChange.md +4 -4
- package/docs/wiki/Interface.TableActionMethodOptions.md +10 -10
- package/docs/wiki/Interface.TableHeaderButtonMethodOptions.md +6 -6
- package/docs/wiki/Interface.TableRowMetadata.md +3 -3
- package/docs/wiki/TypeAlias.RawTableRow.md +1 -1
- package/docs/wiki/TypeAlias.RowActionCheckFunction.md +1 -1
- package/docs/wiki/TypeAlias.RowIdMapperFunction.md +1 -1
- package/docs/wiki/TypeAlias.TableRemoteMethodAdapterFactory.md +1 -1
- package/docs/wiki/TypeAlias.TableRowActionMethod.md +1 -1
- package/docs/wiki/TypeAlias.TableRowActionTypeMethod.md +1 -1
- package/docs/wiki/TypeAlias.TableRowActionTypeSwitchMethod.md +1 -1
- package/docs/wiki/Variable.RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS.md +1 -1
- package/docs/wiki/Variable.RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA.md +1 -1
- package/docs/wiki/Variable.RXAP_TABLE_ACTION_METHOD_METADATA.md +1 -1
- package/docs/wiki/Variable.RXAP_TABLE_ACTION_METHOD_TYPE_METADATA.md +1 -1
- package/docs/wiki/Variable.RXAP_TABLE_FILTER.md +1 -1
- package/docs/wiki/Variable.RXAP_TABLE_FILTER_FORM_DEFINITION.md +1 -1
- package/docs/wiki/Variable.RXAP_TABLE_HEADER_BUTTON_METHOD_METADATA.md +1 -1
- package/docs/wiki/Variable.RXAP_TABLE_METHOD.md +1 -1
- package/docs/wiki/Variable.RXAP_TABLE_ROW_ACTION_METHOD.md +1 -1
- package/docs/wiki/Variable.RowAnimation.md +1 -1
- package/docs/wiki/Variable.TABLE_CREATE_REMOTE_METHOD.md +1 -1
- package/docs/wiki/Variable.TABLE_DATA_SOURCE.md +1 -1
- package/docs/wiki/Variable.TABLE_HEADER_BUTTON_METHOD.md +1 -1
- package/docs/wiki/Variable.TABLE_REMOTE_METHOD.md +1 -1
- package/docs/wiki/Variable.TABLE_REMOTE_METHOD_ADAPTER_FACTORY.md +1 -1
- package/docs/wiki/_Sidebar.md +0 -5
- package/docs/wiki/globals.md +1 -6
- package/fesm2022/rxap-material-table-system.mjs +561 -1137
- package/fesm2022/rxap-material-table-system.mjs.map +1 -1
- package/package.json +28 -28
- package/types/rxap-material-table-system.d.ts +389 -439
- package/docs/html/classes/ExpandRowModule.html +0 -2
- package/docs/html/classes/SelectRowModule.html +0 -2
- package/docs/html/classes/TableColumnMenuModule.html +0 -2
- package/docs/html/classes/TableFilterModule.html +0 -2
- package/docs/html/classes/TableRowActionsModule.html +0 -2
- package/docs/markdown/classes/ExpandRowModule.md +0 -19
- package/docs/markdown/classes/SelectRowModule.md +0 -19
- package/docs/markdown/classes/TableColumnMenuModule.md +0 -19
- package/docs/markdown/classes/TableFilterModule.md +0 -19
- package/docs/markdown/classes/TableRowActionsModule.md +0 -19
- package/docs/wiki/Class.ExpandRowModule.md +0 -15
- package/docs/wiki/Class.SelectRowModule.md +0 -15
- package/docs/wiki/Class.TableColumnMenuModule.md +0 -15
- package/docs/wiki/Class.TableFilterModule.md +0 -15
- package/docs/wiki/Class.TableRowActionsModule.md +0 -15
|
@@ -0,0 +1,1568 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html class="no-js" lang="">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
6
|
+
<title>angular-material-table-system</title>
|
|
7
|
+
<meta name="description" content="">
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
+
|
|
10
|
+
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
|
|
11
|
+
<link rel="stylesheet" href="../styles/style.css">
|
|
12
|
+
<link rel="stylesheet" href="../styles/dark.css">
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<script>
|
|
16
|
+
// Blocking script to avoid flickering dark mode
|
|
17
|
+
// Dark mode toggle button
|
|
18
|
+
var useDark = window.matchMedia('(prefers-color-scheme: dark)');
|
|
19
|
+
var darkModeState = useDark.matches;
|
|
20
|
+
var $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
21
|
+
var $darkModeToggles = document.querySelectorAll('.dark-mode-switch');
|
|
22
|
+
var darkModeStateLocal = localStorage.getItem('compodoc_darkmode-state');
|
|
23
|
+
|
|
24
|
+
function checkToggle(check) {
|
|
25
|
+
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
26
|
+
$darkModeToggleSwitchers[i].checked = check;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function toggleDarkMode(state) {
|
|
31
|
+
if (window.localStorage) {
|
|
32
|
+
localStorage.setItem('compodoc_darkmode-state', state);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
checkToggle(state);
|
|
36
|
+
|
|
37
|
+
const hasClass = document.body.classList.contains('dark');
|
|
38
|
+
|
|
39
|
+
if (state) {
|
|
40
|
+
for (var i = 0; i < $darkModeToggles.length; i++) {
|
|
41
|
+
$darkModeToggles[i].classList.add('dark');
|
|
42
|
+
}
|
|
43
|
+
if (!hasClass) {
|
|
44
|
+
document.body.classList.add('dark');
|
|
45
|
+
}
|
|
46
|
+
} else {
|
|
47
|
+
for (var i = 0; i < $darkModeToggles.length; i++) {
|
|
48
|
+
$darkModeToggles[i].classList.remove('dark');
|
|
49
|
+
}
|
|
50
|
+
if (hasClass) {
|
|
51
|
+
document.body.classList.remove('dark');
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
useDark.addEventListener('change', function (evt) {
|
|
57
|
+
toggleDarkMode(evt.matches);
|
|
58
|
+
});
|
|
59
|
+
if (darkModeStateLocal) {
|
|
60
|
+
darkModeState = darkModeStateLocal === 'true';
|
|
61
|
+
}
|
|
62
|
+
toggleDarkMode(darkModeState);
|
|
63
|
+
</script>
|
|
64
|
+
|
|
65
|
+
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
66
|
+
<div class="d-flex">
|
|
67
|
+
<a href="../" class="navbar-brand">angular-material-table-system</a>
|
|
68
|
+
<button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<div class="xs-menu menu" id="mobile-menu">
|
|
73
|
+
<div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<div class="container-fluid main">
|
|
77
|
+
<div class="row main">
|
|
78
|
+
<div class="d-none d-md-block menu">
|
|
79
|
+
<compodoc-menu mode="normal"></compodoc-menu>
|
|
80
|
+
</div>
|
|
81
|
+
<!-- START CONTENT -->
|
|
82
|
+
<div class="content directive">
|
|
83
|
+
<div class="content-data">
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
<ol class="breadcrumb">
|
|
92
|
+
<li class="breadcrumb-item">Directives</li>
|
|
93
|
+
<li class="breadcrumb-item" >AbstractTableRowAction</li>
|
|
94
|
+
</ol>
|
|
95
|
+
|
|
96
|
+
<ul class="nav nav-tabs" role="tablist">
|
|
97
|
+
<li class="nav-item">
|
|
98
|
+
<a href="#info"
|
|
99
|
+
class="nav-link"
|
|
100
|
+
class="nav-link active"
|
|
101
|
+
role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
|
|
102
|
+
</li>
|
|
103
|
+
<li class="nav-item">
|
|
104
|
+
<a href="#source"
|
|
105
|
+
class="nav-link"
|
|
106
|
+
|
|
107
|
+
role="tab" id="source-tab" data-bs-toggle="tab" data-link="source">Source</a>
|
|
108
|
+
</li>
|
|
109
|
+
</ul>
|
|
110
|
+
|
|
111
|
+
<div class="tab-content">
|
|
112
|
+
<div class="tab-pane fade active in" id="info">
|
|
113
|
+
<p class="comment">
|
|
114
|
+
<h3>File</h3>
|
|
115
|
+
</p>
|
|
116
|
+
<p class="comment">
|
|
117
|
+
<code>src/lib/table-row-actions/abstract-table-row-action.ts</code>
|
|
118
|
+
</p>
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
<p class="comment">
|
|
122
|
+
<h3>Description</h3>
|
|
123
|
+
</p>
|
|
124
|
+
<p class="comment">
|
|
125
|
+
<p>Subclasses must be decorated with @Directive, declare the <code>type</code> signal input and
|
|
126
|
+
implement <code>getElementList</code>. No constructor arguments are required anymore - all
|
|
127
|
+
dependencies are acquired with inject().</p>
|
|
128
|
+
|
|
129
|
+
</p>
|
|
130
|
+
|
|
131
|
+
<p class="comment">
|
|
132
|
+
<h3>Extends</h3>
|
|
133
|
+
</p>
|
|
134
|
+
<p class="comment">
|
|
135
|
+
<code>ConfirmDirective</code>
|
|
136
|
+
</p>
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
<section data-compodoc="block-index">
|
|
142
|
+
<h3 id="index">Index</h3>
|
|
143
|
+
<table class="table table-sm table-bordered index-table">
|
|
144
|
+
<tbody>
|
|
145
|
+
<tr>
|
|
146
|
+
<td class="col-md-4">
|
|
147
|
+
<h6><b>Properties</b></h6>
|
|
148
|
+
</td>
|
|
149
|
+
</tr>
|
|
150
|
+
<tr>
|
|
151
|
+
<td class="col-md-4">
|
|
152
|
+
<ul class="index-list">
|
|
153
|
+
<li>
|
|
154
|
+
<span class="modifier">Public</span>
|
|
155
|
+
<span class="modifier">Readonly</span>
|
|
156
|
+
<a href="#color" >color</a>
|
|
157
|
+
</li>
|
|
158
|
+
<li>
|
|
159
|
+
<span class="modifier">Protected</span>
|
|
160
|
+
<span class="modifier">Readonly</span>
|
|
161
|
+
<a href="#effectiveColor" >effectiveColor</a>
|
|
162
|
+
</li>
|
|
163
|
+
<li>
|
|
164
|
+
<span class="modifier">Protected</span>
|
|
165
|
+
<span class="modifier">Readonly</span>
|
|
166
|
+
<a href="#effectiveErrorMessage" >effectiveErrorMessage</a>
|
|
167
|
+
</li>
|
|
168
|
+
<li>
|
|
169
|
+
<span class="modifier">Protected</span>
|
|
170
|
+
<span class="modifier">Readonly</span>
|
|
171
|
+
<a href="#effectiveRefresh" >effectiveRefresh</a>
|
|
172
|
+
</li>
|
|
173
|
+
<li>
|
|
174
|
+
<span class="modifier">Protected</span>
|
|
175
|
+
<span class="modifier">Readonly</span>
|
|
176
|
+
<a href="#effectiveSuccessMessage" >effectiveSuccessMessage</a>
|
|
177
|
+
</li>
|
|
178
|
+
<li>
|
|
179
|
+
<span class="modifier">Public</span>
|
|
180
|
+
<span class="modifier">Readonly</span>
|
|
181
|
+
<a href="#errorMessage" >errorMessage</a>
|
|
182
|
+
</li>
|
|
183
|
+
<li>
|
|
184
|
+
<span class="modifier">Public</span>
|
|
185
|
+
<span class="modifier">Readonly</span>
|
|
186
|
+
<a href="#hasConfirmDirective" >hasConfirmDirective</a>
|
|
187
|
+
</li>
|
|
188
|
+
<li>
|
|
189
|
+
<span class="modifier">Protected</span>
|
|
190
|
+
<span class="modifier">Readonly</span>
|
|
191
|
+
<a href="#injector" >injector</a>
|
|
192
|
+
</li>
|
|
193
|
+
<li>
|
|
194
|
+
<span class="modifier">Public</span>
|
|
195
|
+
<span class="modifier">Readonly</span>
|
|
196
|
+
<a href="#isHeader" >isHeader</a>
|
|
197
|
+
</li>
|
|
198
|
+
<li>
|
|
199
|
+
<span class="modifier">Protected</span>
|
|
200
|
+
<span class="modifier">Readonly</span>
|
|
201
|
+
<a href="#matButton" >matButton</a>
|
|
202
|
+
</li>
|
|
203
|
+
<li>
|
|
204
|
+
<span class="modifier">Protected</span>
|
|
205
|
+
<span class="modifier">Readonly</span>
|
|
206
|
+
<a href="#matTooltip" >matTooltip</a>
|
|
207
|
+
</li>
|
|
208
|
+
<li>
|
|
209
|
+
<span class="modifier">Protected</span>
|
|
210
|
+
<span class="modifier">Readonly</span>
|
|
211
|
+
<a href="#options" >options</a>
|
|
212
|
+
</li>
|
|
213
|
+
<li>
|
|
214
|
+
<span class="modifier">Public</span>
|
|
215
|
+
<span class="modifier">Readonly</span>
|
|
216
|
+
<a href="#refresh" >refresh</a>
|
|
217
|
+
</li>
|
|
218
|
+
<li>
|
|
219
|
+
<span class="modifier">Protected</span>
|
|
220
|
+
<span class="modifier">Readonly</span>
|
|
221
|
+
<a href="#renderer" >renderer</a>
|
|
222
|
+
</li>
|
|
223
|
+
<li>
|
|
224
|
+
<span class="modifier">Protected</span>
|
|
225
|
+
<span class="modifier">Readonly</span>
|
|
226
|
+
<a href="#snackBar" >snackBar</a>
|
|
227
|
+
</li>
|
|
228
|
+
<li>
|
|
229
|
+
<span class="modifier">Public</span>
|
|
230
|
+
<span class="modifier">Readonly</span>
|
|
231
|
+
<a href="#successMessage" >successMessage</a>
|
|
232
|
+
</li>
|
|
233
|
+
<li>
|
|
234
|
+
<span class="modifier">Protected</span>
|
|
235
|
+
<span class="modifier">Readonly</span>
|
|
236
|
+
<a href="#tableDataSourceDirective" >tableDataSourceDirective</a>
|
|
237
|
+
</li>
|
|
238
|
+
<li>
|
|
239
|
+
<span class="modifier">Public</span>
|
|
240
|
+
<span class="modifier">Abstract</span>
|
|
241
|
+
<span class="modifier">Readonly</span>
|
|
242
|
+
<a href="#type" >type</a>
|
|
243
|
+
</li>
|
|
244
|
+
<li>
|
|
245
|
+
<span class="modifier">Protected</span>
|
|
246
|
+
<span class="modifier">Readonly</span>
|
|
247
|
+
<a href="#vcr" >vcr</a>
|
|
248
|
+
</li>
|
|
249
|
+
</ul>
|
|
250
|
+
</td>
|
|
251
|
+
</tr>
|
|
252
|
+
|
|
253
|
+
<tr>
|
|
254
|
+
<td class="col-md-4">
|
|
255
|
+
<h6><b>Methods</b></h6>
|
|
256
|
+
</td>
|
|
257
|
+
</tr>
|
|
258
|
+
<tr>
|
|
259
|
+
<td class="col-md-4">
|
|
260
|
+
<ul class="index-list">
|
|
261
|
+
<li>
|
|
262
|
+
<span class="modifier">Public</span>
|
|
263
|
+
<span class="modifier">Async</span>
|
|
264
|
+
<a href="#execute" >execute</a>
|
|
265
|
+
</li>
|
|
266
|
+
<li>
|
|
267
|
+
<span class="modifier">Protected</span>
|
|
268
|
+
<span class="modifier">Abstract</span>
|
|
269
|
+
<a href="#getElementList" >getElementList</a>
|
|
270
|
+
</li>
|
|
271
|
+
<li>
|
|
272
|
+
<span class="modifier">Public</span>
|
|
273
|
+
<span class="modifier"></span>
|
|
274
|
+
<a href="#onClick" >onClick</a>
|
|
275
|
+
</li>
|
|
276
|
+
<li>
|
|
277
|
+
<span class="modifier">Public</span>
|
|
278
|
+
<span class="modifier"></span>
|
|
279
|
+
<a href="#onConfirmed" >onConfirmed</a>
|
|
280
|
+
</li>
|
|
281
|
+
<li>
|
|
282
|
+
<span class="modifier">Protected</span>
|
|
283
|
+
<a href="#setButtonDisabled" >setButtonDisabled</a>
|
|
284
|
+
</li>
|
|
285
|
+
<li>
|
|
286
|
+
<span class="modifier">Protected</span>
|
|
287
|
+
<a href="#setButtonEnabled" >setButtonEnabled</a>
|
|
288
|
+
</li>
|
|
289
|
+
</ul>
|
|
290
|
+
</td>
|
|
291
|
+
</tr>
|
|
292
|
+
|
|
293
|
+
<tr>
|
|
294
|
+
<td class="col-md-4">
|
|
295
|
+
<h6><b>Inputs</b></h6>
|
|
296
|
+
</td>
|
|
297
|
+
</tr>
|
|
298
|
+
<tr>
|
|
299
|
+
<td class="col-md-4">
|
|
300
|
+
<ul class="index-list">
|
|
301
|
+
<li>
|
|
302
|
+
<a href="#color" >color</a>
|
|
303
|
+
</li>
|
|
304
|
+
<li>
|
|
305
|
+
<a href="#errorMessage" >errorMessage</a>
|
|
306
|
+
</li>
|
|
307
|
+
<li>
|
|
308
|
+
<a href="#refresh" >refresh</a>
|
|
309
|
+
</li>
|
|
310
|
+
<li>
|
|
311
|
+
<a href="#successMessage" >successMessage</a>
|
|
312
|
+
</li>
|
|
313
|
+
</ul>
|
|
314
|
+
</td>
|
|
315
|
+
</tr>
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
</tbody>
|
|
321
|
+
</table>
|
|
322
|
+
</section>
|
|
323
|
+
|
|
324
|
+
<section data-compodoc="block-constructor">
|
|
325
|
+
<h3 id="constructor">Constructor</h3>
|
|
326
|
+
<table class="table table-sm table-bordered">
|
|
327
|
+
<tbody>
|
|
328
|
+
<tr>
|
|
329
|
+
<td class="col-md-4">
|
|
330
|
+
<span class="modifier">Protected</span>
|
|
331
|
+
<code>constructor()</code>
|
|
332
|
+
</td>
|
|
333
|
+
</tr>
|
|
334
|
+
<tr>
|
|
335
|
+
<td class="col-md-4">
|
|
336
|
+
<div class="io-line">Defined in <a href="" data-line="84" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:84</a></div>
|
|
337
|
+
</td>
|
|
338
|
+
</tr>
|
|
339
|
+
|
|
340
|
+
</tbody>
|
|
341
|
+
</table>
|
|
342
|
+
</section>
|
|
343
|
+
|
|
344
|
+
<section data-compodoc="block-inputs">
|
|
345
|
+
<h3 id="inputs">Inputs</h3>
|
|
346
|
+
<table class="table table-sm table-bordered">
|
|
347
|
+
<tbody>
|
|
348
|
+
<tr>
|
|
349
|
+
<td class="col-md-4">
|
|
350
|
+
<a name="color"></a>
|
|
351
|
+
<b>color</b>
|
|
352
|
+
</td>
|
|
353
|
+
</tr>
|
|
354
|
+
<tr>
|
|
355
|
+
<td class="col-md-2" colspan="2">
|
|
356
|
+
<div class="io-line">Defined in <a href="" data-line="57" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:57</a></div>
|
|
357
|
+
</td>
|
|
358
|
+
</tr>
|
|
359
|
+
</tbody>
|
|
360
|
+
</table>
|
|
361
|
+
<table class="table table-sm table-bordered">
|
|
362
|
+
<tbody>
|
|
363
|
+
<tr>
|
|
364
|
+
<td class="col-md-4">
|
|
365
|
+
<a name="errorMessage"></a>
|
|
366
|
+
<b>errorMessage</b>
|
|
367
|
+
</td>
|
|
368
|
+
</tr>
|
|
369
|
+
<tr>
|
|
370
|
+
<td class="col-md-2" colspan="2">
|
|
371
|
+
<div class="io-line">Defined in <a href="" data-line="50" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:50</a></div>
|
|
372
|
+
</td>
|
|
373
|
+
</tr>
|
|
374
|
+
</tbody>
|
|
375
|
+
</table>
|
|
376
|
+
<table class="table table-sm table-bordered">
|
|
377
|
+
<tbody>
|
|
378
|
+
<tr>
|
|
379
|
+
<td class="col-md-4">
|
|
380
|
+
<a name="refresh"></a>
|
|
381
|
+
<b>refresh</b>
|
|
382
|
+
</td>
|
|
383
|
+
</tr>
|
|
384
|
+
<tr>
|
|
385
|
+
<td class="col-md-2" colspan="2">
|
|
386
|
+
<div class="io-line">Defined in <a href="" data-line="55" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:55</a></div>
|
|
387
|
+
</td>
|
|
388
|
+
</tr>
|
|
389
|
+
<tr>
|
|
390
|
+
<td class="col-md-4">
|
|
391
|
+
<div class="io-description"><p>true - after the action is executed the table datasource is refreshed</p>
|
|
392
|
+
</div>
|
|
393
|
+
</td>
|
|
394
|
+
</tr>
|
|
395
|
+
</tbody>
|
|
396
|
+
</table>
|
|
397
|
+
<table class="table table-sm table-bordered">
|
|
398
|
+
<tbody>
|
|
399
|
+
<tr>
|
|
400
|
+
<td class="col-md-4">
|
|
401
|
+
<a name="successMessage"></a>
|
|
402
|
+
<b>successMessage</b>
|
|
403
|
+
</td>
|
|
404
|
+
</tr>
|
|
405
|
+
<tr>
|
|
406
|
+
<td class="col-md-2" colspan="2">
|
|
407
|
+
<div class="io-line">Defined in <a href="" data-line="51" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:51</a></div>
|
|
408
|
+
</td>
|
|
409
|
+
</tr>
|
|
410
|
+
</tbody>
|
|
411
|
+
</table>
|
|
412
|
+
</section>
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
<section data-compodoc="block-methods">
|
|
417
|
+
|
|
418
|
+
<h3 id="methods">
|
|
419
|
+
Methods
|
|
420
|
+
</h3>
|
|
421
|
+
<table class="table table-sm table-bordered">
|
|
422
|
+
<tbody>
|
|
423
|
+
<tr>
|
|
424
|
+
<td class="col-md-4">
|
|
425
|
+
<a name="execute"></a>
|
|
426
|
+
<span class="name">
|
|
427
|
+
<span class="modifier">Public</span>
|
|
428
|
+
<span class="modifier">Async</span>
|
|
429
|
+
<span ><b>execute</b></span>
|
|
430
|
+
<a href="#execute"><span class="icon ion-ios-link"></span></a>
|
|
431
|
+
</span>
|
|
432
|
+
</td>
|
|
433
|
+
</tr>
|
|
434
|
+
<tr>
|
|
435
|
+
<td class="col-md-4">
|
|
436
|
+
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
437
|
+
<code>execute()</code>
|
|
438
|
+
</td>
|
|
439
|
+
</tr>
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
<tr>
|
|
443
|
+
<td class="col-md-4">
|
|
444
|
+
<div class="io-line">Defined in <a href="" data-line="128"
|
|
445
|
+
class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:128</a></div>
|
|
446
|
+
</td>
|
|
447
|
+
</tr>
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
<tr>
|
|
451
|
+
<td class="col-md-4">
|
|
452
|
+
|
|
453
|
+
<div class="io-description">
|
|
454
|
+
<b>Returns : </b> <code>Promise<void></code>
|
|
455
|
+
|
|
456
|
+
</div>
|
|
457
|
+
</td>
|
|
458
|
+
</tr>
|
|
459
|
+
</tbody>
|
|
460
|
+
</table>
|
|
461
|
+
<table class="table table-sm table-bordered">
|
|
462
|
+
<tbody>
|
|
463
|
+
<tr>
|
|
464
|
+
<td class="col-md-4">
|
|
465
|
+
<a name="getElementList"></a>
|
|
466
|
+
<span class="name">
|
|
467
|
+
<span class="modifier">Protected</span>
|
|
468
|
+
<span class="modifier">Abstract</span>
|
|
469
|
+
<span ><b>getElementList</b></span>
|
|
470
|
+
<a href="#getElementList"><span class="icon ion-ios-link"></span></a>
|
|
471
|
+
</span>
|
|
472
|
+
</td>
|
|
473
|
+
</tr>
|
|
474
|
+
<tr>
|
|
475
|
+
<td class="col-md-4">
|
|
476
|
+
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
477
|
+
<code>getElementList()</code>
|
|
478
|
+
</td>
|
|
479
|
+
</tr>
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
<tr>
|
|
483
|
+
<td class="col-md-4">
|
|
484
|
+
<div class="io-line">Defined in <a href="" data-line="161"
|
|
485
|
+
class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:161</a></div>
|
|
486
|
+
</td>
|
|
487
|
+
</tr>
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
<tr>
|
|
491
|
+
<td class="col-md-4">
|
|
492
|
+
|
|
493
|
+
<div class="io-description">
|
|
494
|
+
<b>Returns : </b> <code>Data[]</code>
|
|
495
|
+
|
|
496
|
+
</div>
|
|
497
|
+
</td>
|
|
498
|
+
</tr>
|
|
499
|
+
</tbody>
|
|
500
|
+
</table>
|
|
501
|
+
<table class="table table-sm table-bordered">
|
|
502
|
+
<tbody>
|
|
503
|
+
<tr>
|
|
504
|
+
<td class="col-md-4">
|
|
505
|
+
<a name="onClick"></a>
|
|
506
|
+
<span class="name">
|
|
507
|
+
<span class="modifier">Public</span>
|
|
508
|
+
<span class="modifier"></span>
|
|
509
|
+
<span ><b>onClick</b></span>
|
|
510
|
+
<a href="#onClick"><span class="icon ion-ios-link"></span></a>
|
|
511
|
+
</span>
|
|
512
|
+
</td>
|
|
513
|
+
</tr>
|
|
514
|
+
<tr>
|
|
515
|
+
<td class="col-md-4">
|
|
516
|
+
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
517
|
+
<code>onClick($event?: Event)</code>
|
|
518
|
+
</td>
|
|
519
|
+
</tr>
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
<tr>
|
|
523
|
+
<td class="col-md-4">
|
|
524
|
+
<div class="io-line">Defined in <a href="" data-line="114"
|
|
525
|
+
class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:114</a></div>
|
|
526
|
+
</td>
|
|
527
|
+
</tr>
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
<tr>
|
|
531
|
+
<td class="col-md-4">
|
|
532
|
+
|
|
533
|
+
<div class="io-description">
|
|
534
|
+
<b>Parameters :</b>
|
|
535
|
+
|
|
536
|
+
<table class="params">
|
|
537
|
+
<thead>
|
|
538
|
+
<tr>
|
|
539
|
+
<td>Name</td>
|
|
540
|
+
<td>Type</td>
|
|
541
|
+
<td>Optional</td>
|
|
542
|
+
</tr>
|
|
543
|
+
</thead>
|
|
544
|
+
<tbody>
|
|
545
|
+
<tr>
|
|
546
|
+
<td>$event</td>
|
|
547
|
+
<td>
|
|
548
|
+
<code>Event</code>
|
|
549
|
+
</td>
|
|
550
|
+
|
|
551
|
+
<td>
|
|
552
|
+
Yes
|
|
553
|
+
</td>
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
</tr>
|
|
557
|
+
</tbody>
|
|
558
|
+
</table>
|
|
559
|
+
</div>
|
|
560
|
+
<div class="io-description">
|
|
561
|
+
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
562
|
+
|
|
563
|
+
</div>
|
|
564
|
+
<div class="io-description">
|
|
565
|
+
|
|
566
|
+
</div>
|
|
567
|
+
</td>
|
|
568
|
+
</tr>
|
|
569
|
+
</tbody>
|
|
570
|
+
</table>
|
|
571
|
+
<table class="table table-sm table-bordered">
|
|
572
|
+
<tbody>
|
|
573
|
+
<tr>
|
|
574
|
+
<td class="col-md-4">
|
|
575
|
+
<a name="onConfirmed"></a>
|
|
576
|
+
<span class="name">
|
|
577
|
+
<span class="modifier">Public</span>
|
|
578
|
+
<span class="modifier"></span>
|
|
579
|
+
<span ><b>onConfirmed</b></span>
|
|
580
|
+
<a href="#onConfirmed"><span class="icon ion-ios-link"></span></a>
|
|
581
|
+
</span>
|
|
582
|
+
</td>
|
|
583
|
+
</tr>
|
|
584
|
+
<tr>
|
|
585
|
+
<td class="col-md-4">
|
|
586
|
+
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
587
|
+
<code>onConfirmed()</code>
|
|
588
|
+
</td>
|
|
589
|
+
</tr>
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
<tr>
|
|
593
|
+
<td class="col-md-4">
|
|
594
|
+
<div class="io-line">Defined in <a href="" data-line="110"
|
|
595
|
+
class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:110</a></div>
|
|
596
|
+
</td>
|
|
597
|
+
</tr>
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
<tr>
|
|
601
|
+
<td class="col-md-4">
|
|
602
|
+
|
|
603
|
+
<div class="io-description">
|
|
604
|
+
<b>Returns : </b> <code>Promise<void></code>
|
|
605
|
+
|
|
606
|
+
</div>
|
|
607
|
+
</td>
|
|
608
|
+
</tr>
|
|
609
|
+
</tbody>
|
|
610
|
+
</table>
|
|
611
|
+
<table class="table table-sm table-bordered">
|
|
612
|
+
<tbody>
|
|
613
|
+
<tr>
|
|
614
|
+
<td class="col-md-4">
|
|
615
|
+
<a name="setButtonDisabled"></a>
|
|
616
|
+
<span class="name">
|
|
617
|
+
<span class="modifier">Protected</span>
|
|
618
|
+
<span ><b>setButtonDisabled</b></span>
|
|
619
|
+
<a href="#setButtonDisabled"><span class="icon ion-ios-link"></span></a>
|
|
620
|
+
</span>
|
|
621
|
+
</td>
|
|
622
|
+
</tr>
|
|
623
|
+
<tr>
|
|
624
|
+
<td class="col-md-4">
|
|
625
|
+
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
626
|
+
<code>setButtonDisabled()</code>
|
|
627
|
+
</td>
|
|
628
|
+
</tr>
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
<tr>
|
|
632
|
+
<td class="col-md-4">
|
|
633
|
+
<div class="io-line">Defined in <a href="" data-line="170"
|
|
634
|
+
class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:170</a></div>
|
|
635
|
+
</td>
|
|
636
|
+
</tr>
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
<tr>
|
|
640
|
+
<td class="col-md-4">
|
|
641
|
+
<div class="io-description"><p>Disables the action. If the button is pressed the action is NOT executed</p>
|
|
642
|
+
<p>Hint: the button is set to disabled = true to prevent any conflict with
|
|
643
|
+
extern button enable features linke : rxapHasEnablePermission</p>
|
|
644
|
+
</div>
|
|
645
|
+
|
|
646
|
+
<div class="io-description">
|
|
647
|
+
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
648
|
+
|
|
649
|
+
</div>
|
|
650
|
+
</td>
|
|
651
|
+
</tr>
|
|
652
|
+
</tbody>
|
|
653
|
+
</table>
|
|
654
|
+
<table class="table table-sm table-bordered">
|
|
655
|
+
<tbody>
|
|
656
|
+
<tr>
|
|
657
|
+
<td class="col-md-4">
|
|
658
|
+
<a name="setButtonEnabled"></a>
|
|
659
|
+
<span class="name">
|
|
660
|
+
<span class="modifier">Protected</span>
|
|
661
|
+
<span ><b>setButtonEnabled</b></span>
|
|
662
|
+
<a href="#setButtonEnabled"><span class="icon ion-ios-link"></span></a>
|
|
663
|
+
</span>
|
|
664
|
+
</td>
|
|
665
|
+
</tr>
|
|
666
|
+
<tr>
|
|
667
|
+
<td class="col-md-4">
|
|
668
|
+
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
669
|
+
<code>setButtonEnabled()</code>
|
|
670
|
+
</td>
|
|
671
|
+
</tr>
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
<tr>
|
|
675
|
+
<td class="col-md-4">
|
|
676
|
+
<div class="io-line">Defined in <a href="" data-line="182"
|
|
677
|
+
class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:182</a></div>
|
|
678
|
+
</td>
|
|
679
|
+
</tr>
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
<tr>
|
|
683
|
+
<td class="col-md-4">
|
|
684
|
+
<div class="io-description"><p>Enables the action. If the button is pressed the action is executed</p>
|
|
685
|
+
<p>TODO : find a way to communicate the disabled state between the features
|
|
686
|
+
Hint: the button is set to disabled = false to prevent any conflict with
|
|
687
|
+
extern button enable features linke : rxapHasEnablePermission</p>
|
|
688
|
+
</div>
|
|
689
|
+
|
|
690
|
+
<div class="io-description">
|
|
691
|
+
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
692
|
+
|
|
693
|
+
</div>
|
|
694
|
+
</td>
|
|
695
|
+
</tr>
|
|
696
|
+
</tbody>
|
|
697
|
+
</table>
|
|
698
|
+
</section>
|
|
699
|
+
<section data-compodoc="block-properties">
|
|
700
|
+
|
|
701
|
+
<h3 id="inputs">
|
|
702
|
+
Properties
|
|
703
|
+
</h3>
|
|
704
|
+
<table class="table table-sm table-bordered">
|
|
705
|
+
<tbody>
|
|
706
|
+
<tr>
|
|
707
|
+
<td class="col-md-4">
|
|
708
|
+
<a name="color"></a>
|
|
709
|
+
<span class="name">
|
|
710
|
+
<span class="modifier">Public</span>
|
|
711
|
+
<span class="modifier">Readonly</span>
|
|
712
|
+
<span ><b>color</b></span>
|
|
713
|
+
<a href="#color"><span class="icon ion-ios-link"></span></a>
|
|
714
|
+
</span>
|
|
715
|
+
</td>
|
|
716
|
+
</tr>
|
|
717
|
+
<tr>
|
|
718
|
+
<td class="col-md-4">
|
|
719
|
+
<div class="io-line">Defined in <a href="" data-line="57" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:57</a></div>
|
|
720
|
+
</td>
|
|
721
|
+
</tr>
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
</tbody>
|
|
725
|
+
</table>
|
|
726
|
+
<table class="table table-sm table-bordered">
|
|
727
|
+
<tbody>
|
|
728
|
+
<tr>
|
|
729
|
+
<td class="col-md-4">
|
|
730
|
+
<a name="effectiveColor"></a>
|
|
731
|
+
<span class="name">
|
|
732
|
+
<span class="modifier">Protected</span>
|
|
733
|
+
<span class="modifier">Readonly</span>
|
|
734
|
+
<span ><b>effectiveColor</b></span>
|
|
735
|
+
<a href="#effectiveColor"><span class="icon ion-ios-link"></span></a>
|
|
736
|
+
</span>
|
|
737
|
+
</td>
|
|
738
|
+
</tr>
|
|
739
|
+
<tr>
|
|
740
|
+
<td class="col-md-4">
|
|
741
|
+
<i>Default value : </i><code>computed(() => this.color() ?? this.options()?.color ?? undefined)</code>
|
|
742
|
+
</td>
|
|
743
|
+
</tr>
|
|
744
|
+
<tr>
|
|
745
|
+
<td class="col-md-4">
|
|
746
|
+
<div class="io-line">Defined in <a href="" data-line="80" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:80</a></div>
|
|
747
|
+
</td>
|
|
748
|
+
</tr>
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
</tbody>
|
|
752
|
+
</table>
|
|
753
|
+
<table class="table table-sm table-bordered">
|
|
754
|
+
<tbody>
|
|
755
|
+
<tr>
|
|
756
|
+
<td class="col-md-4">
|
|
757
|
+
<a name="effectiveErrorMessage"></a>
|
|
758
|
+
<span class="name">
|
|
759
|
+
<span class="modifier">Protected</span>
|
|
760
|
+
<span class="modifier">Readonly</span>
|
|
761
|
+
<span ><b>effectiveErrorMessage</b></span>
|
|
762
|
+
<a href="#effectiveErrorMessage"><span class="icon ion-ios-link"></span></a>
|
|
763
|
+
</span>
|
|
764
|
+
</td>
|
|
765
|
+
</tr>
|
|
766
|
+
<tr>
|
|
767
|
+
<td class="col-md-4">
|
|
768
|
+
<i>Default value : </i><code>computed(() => this.errorMessage() ?? this.options()?.errorMessage ?? undefined)</code>
|
|
769
|
+
</td>
|
|
770
|
+
</tr>
|
|
771
|
+
<tr>
|
|
772
|
+
<td class="col-md-4">
|
|
773
|
+
<div class="io-line">Defined in <a href="" data-line="78" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:78</a></div>
|
|
774
|
+
</td>
|
|
775
|
+
</tr>
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
</tbody>
|
|
779
|
+
</table>
|
|
780
|
+
<table class="table table-sm table-bordered">
|
|
781
|
+
<tbody>
|
|
782
|
+
<tr>
|
|
783
|
+
<td class="col-md-4">
|
|
784
|
+
<a name="effectiveRefresh"></a>
|
|
785
|
+
<span class="name">
|
|
786
|
+
<span class="modifier">Protected</span>
|
|
787
|
+
<span class="modifier">Readonly</span>
|
|
788
|
+
<span ><b>effectiveRefresh</b></span>
|
|
789
|
+
<a href="#effectiveRefresh"><span class="icon ion-ios-link"></span></a>
|
|
790
|
+
</span>
|
|
791
|
+
</td>
|
|
792
|
+
</tr>
|
|
793
|
+
<tr>
|
|
794
|
+
<td class="col-md-4">
|
|
795
|
+
<i>Default value : </i><code>computed(() => this.refresh() ?? this.options()?.refresh ?? false)</code>
|
|
796
|
+
</td>
|
|
797
|
+
</tr>
|
|
798
|
+
<tr>
|
|
799
|
+
<td class="col-md-4">
|
|
800
|
+
<div class="io-line">Defined in <a href="" data-line="77" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:77</a></div>
|
|
801
|
+
</td>
|
|
802
|
+
</tr>
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
</tbody>
|
|
806
|
+
</table>
|
|
807
|
+
<table class="table table-sm table-bordered">
|
|
808
|
+
<tbody>
|
|
809
|
+
<tr>
|
|
810
|
+
<td class="col-md-4">
|
|
811
|
+
<a name="effectiveSuccessMessage"></a>
|
|
812
|
+
<span class="name">
|
|
813
|
+
<span class="modifier">Protected</span>
|
|
814
|
+
<span class="modifier">Readonly</span>
|
|
815
|
+
<span ><b>effectiveSuccessMessage</b></span>
|
|
816
|
+
<a href="#effectiveSuccessMessage"><span class="icon ion-ios-link"></span></a>
|
|
817
|
+
</span>
|
|
818
|
+
</td>
|
|
819
|
+
</tr>
|
|
820
|
+
<tr>
|
|
821
|
+
<td class="col-md-4">
|
|
822
|
+
<i>Default value : </i><code>computed(() => this.successMessage() ?? this.options()?.successMessage ?? undefined)</code>
|
|
823
|
+
</td>
|
|
824
|
+
</tr>
|
|
825
|
+
<tr>
|
|
826
|
+
<td class="col-md-4">
|
|
827
|
+
<div class="io-line">Defined in <a href="" data-line="79" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:79</a></div>
|
|
828
|
+
</td>
|
|
829
|
+
</tr>
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
</tbody>
|
|
833
|
+
</table>
|
|
834
|
+
<table class="table table-sm table-bordered">
|
|
835
|
+
<tbody>
|
|
836
|
+
<tr>
|
|
837
|
+
<td class="col-md-4">
|
|
838
|
+
<a name="errorMessage"></a>
|
|
839
|
+
<span class="name">
|
|
840
|
+
<span class="modifier">Public</span>
|
|
841
|
+
<span class="modifier">Readonly</span>
|
|
842
|
+
<span ><b>errorMessage</b></span>
|
|
843
|
+
<a href="#errorMessage"><span class="icon ion-ios-link"></span></a>
|
|
844
|
+
</span>
|
|
845
|
+
</td>
|
|
846
|
+
</tr>
|
|
847
|
+
<tr>
|
|
848
|
+
<td class="col-md-4">
|
|
849
|
+
<div class="io-line">Defined in <a href="" data-line="50" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:50</a></div>
|
|
850
|
+
</td>
|
|
851
|
+
</tr>
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
</tbody>
|
|
855
|
+
</table>
|
|
856
|
+
<table class="table table-sm table-bordered">
|
|
857
|
+
<tbody>
|
|
858
|
+
<tr>
|
|
859
|
+
<td class="col-md-4">
|
|
860
|
+
<a name="hasConfirmDirective"></a>
|
|
861
|
+
<span class="name">
|
|
862
|
+
<span class="modifier">Public</span>
|
|
863
|
+
<span class="modifier">Readonly</span>
|
|
864
|
+
<span ><b>hasConfirmDirective</b></span>
|
|
865
|
+
<a href="#hasConfirmDirective"><span class="icon ion-ios-link"></span></a>
|
|
866
|
+
</span>
|
|
867
|
+
</td>
|
|
868
|
+
</tr>
|
|
869
|
+
<tr>
|
|
870
|
+
<td class="col-md-4">
|
|
871
|
+
<i>Default value : </i><code>input(false, { alias: 'rxapConfirm', transform: coerceBoolean })</code>
|
|
872
|
+
</td>
|
|
873
|
+
</tr>
|
|
874
|
+
<tr>
|
|
875
|
+
<td class="col-md-4">
|
|
876
|
+
<div class="io-line">Defined in <a href="" data-line="59" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:59</a></div>
|
|
877
|
+
</td>
|
|
878
|
+
</tr>
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
</tbody>
|
|
882
|
+
</table>
|
|
883
|
+
<table class="table table-sm table-bordered">
|
|
884
|
+
<tbody>
|
|
885
|
+
<tr>
|
|
886
|
+
<td class="col-md-4">
|
|
887
|
+
<a name="injector"></a>
|
|
888
|
+
<span class="name">
|
|
889
|
+
<span class="modifier">Protected</span>
|
|
890
|
+
<span class="modifier">Readonly</span>
|
|
891
|
+
<span ><b>injector</b></span>
|
|
892
|
+
<a href="#injector"><span class="icon ion-ios-link"></span></a>
|
|
893
|
+
</span>
|
|
894
|
+
</td>
|
|
895
|
+
</tr>
|
|
896
|
+
<tr>
|
|
897
|
+
<td class="col-md-4">
|
|
898
|
+
<i>Default value : </i><code>inject<Injector>(INJECTOR)</code>
|
|
899
|
+
</td>
|
|
900
|
+
</tr>
|
|
901
|
+
<tr>
|
|
902
|
+
<td class="col-md-4">
|
|
903
|
+
<div class="io-line">Defined in <a href="" data-line="70" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:70</a></div>
|
|
904
|
+
</td>
|
|
905
|
+
</tr>
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
</tbody>
|
|
909
|
+
</table>
|
|
910
|
+
<table class="table table-sm table-bordered">
|
|
911
|
+
<tbody>
|
|
912
|
+
<tr>
|
|
913
|
+
<td class="col-md-4">
|
|
914
|
+
<a name="isHeader"></a>
|
|
915
|
+
<span class="name">
|
|
916
|
+
<span class="modifier">Public</span>
|
|
917
|
+
<span class="modifier">Readonly</span>
|
|
918
|
+
<span ><b>isHeader</b></span>
|
|
919
|
+
<a href="#isHeader"><span class="icon ion-ios-link"></span></a>
|
|
920
|
+
</span>
|
|
921
|
+
</td>
|
|
922
|
+
</tr>
|
|
923
|
+
<tr>
|
|
924
|
+
<td class="col-md-4">
|
|
925
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
926
|
+
|
|
927
|
+
</td>
|
|
928
|
+
</tr>
|
|
929
|
+
<tr>
|
|
930
|
+
<td class="col-md-4">
|
|
931
|
+
<i>Default value : </i><code>false</code>
|
|
932
|
+
</td>
|
|
933
|
+
</tr>
|
|
934
|
+
<tr>
|
|
935
|
+
<td class="col-md-4">
|
|
936
|
+
<div class="io-line">Defined in <a href="" data-line="61" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:61</a></div>
|
|
937
|
+
</td>
|
|
938
|
+
</tr>
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
</tbody>
|
|
942
|
+
</table>
|
|
943
|
+
<table class="table table-sm table-bordered">
|
|
944
|
+
<tbody>
|
|
945
|
+
<tr>
|
|
946
|
+
<td class="col-md-4">
|
|
947
|
+
<a name="matButton"></a>
|
|
948
|
+
<span class="name">
|
|
949
|
+
<span class="modifier">Protected</span>
|
|
950
|
+
<span class="modifier">Readonly</span>
|
|
951
|
+
<span ><b>matButton</b></span>
|
|
952
|
+
<a href="#matButton"><span class="icon ion-ios-link"></span></a>
|
|
953
|
+
</span>
|
|
954
|
+
</td>
|
|
955
|
+
</tr>
|
|
956
|
+
<tr>
|
|
957
|
+
<td class="col-md-4">
|
|
958
|
+
<i>Type : </i> <code>MatIconButton | MatButton | null</code>
|
|
959
|
+
|
|
960
|
+
</td>
|
|
961
|
+
</tr>
|
|
962
|
+
<tr>
|
|
963
|
+
<td class="col-md-4">
|
|
964
|
+
<i>Default value : </i><code>inject(MatIconButton, { optional: true }) ??
|
|
965
|
+
inject(MatButton, { optional: true })</code>
|
|
966
|
+
</td>
|
|
967
|
+
</tr>
|
|
968
|
+
<tr>
|
|
969
|
+
<td class="col-md-4">
|
|
970
|
+
<div class="io-line">Defined in <a href="" data-line="67" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:67</a></div>
|
|
971
|
+
</td>
|
|
972
|
+
</tr>
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
</tbody>
|
|
976
|
+
</table>
|
|
977
|
+
<table class="table table-sm table-bordered">
|
|
978
|
+
<tbody>
|
|
979
|
+
<tr>
|
|
980
|
+
<td class="col-md-4">
|
|
981
|
+
<a name="matTooltip"></a>
|
|
982
|
+
<span class="name">
|
|
983
|
+
<span class="modifier">Protected</span>
|
|
984
|
+
<span class="modifier">Readonly</span>
|
|
985
|
+
<span ><b>matTooltip</b></span>
|
|
986
|
+
<a href="#matTooltip"><span class="icon ion-ios-link"></span></a>
|
|
987
|
+
</span>
|
|
988
|
+
</td>
|
|
989
|
+
</tr>
|
|
990
|
+
<tr>
|
|
991
|
+
<td class="col-md-4">
|
|
992
|
+
<i>Default value : </i><code>inject(MatTooltip, { optional: true })</code>
|
|
993
|
+
</td>
|
|
994
|
+
</tr>
|
|
995
|
+
<tr>
|
|
996
|
+
<td class="col-md-4">
|
|
997
|
+
<div class="io-line">Defined in <a href="" data-line="69" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:69</a></div>
|
|
998
|
+
</td>
|
|
999
|
+
</tr>
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
</tbody>
|
|
1003
|
+
</table>
|
|
1004
|
+
<table class="table table-sm table-bordered">
|
|
1005
|
+
<tbody>
|
|
1006
|
+
<tr>
|
|
1007
|
+
<td class="col-md-4">
|
|
1008
|
+
<a name="options"></a>
|
|
1009
|
+
<span class="name">
|
|
1010
|
+
<span class="modifier">Protected</span>
|
|
1011
|
+
<span class="modifier">Readonly</span>
|
|
1012
|
+
<span ><b>options</b></span>
|
|
1013
|
+
<a href="#options"><span class="icon ion-ios-link"></span></a>
|
|
1014
|
+
</span>
|
|
1015
|
+
</td>
|
|
1016
|
+
</tr>
|
|
1017
|
+
<tr>
|
|
1018
|
+
<td class="col-md-4">
|
|
1019
|
+
<i>Type : </i> <code><a href="../interfaces/TableActionMethodOptions.html" target="_self" >Signal<TableActionMethodOptions | null></a></code>
|
|
1020
|
+
|
|
1021
|
+
</td>
|
|
1022
|
+
</tr>
|
|
1023
|
+
<tr>
|
|
1024
|
+
<td class="col-md-4">
|
|
1025
|
+
<i>Default value : </i><code>computed(() => this.getTableActionOptions())</code>
|
|
1026
|
+
</td>
|
|
1027
|
+
</tr>
|
|
1028
|
+
<tr>
|
|
1029
|
+
<td class="col-md-4">
|
|
1030
|
+
<div class="io-line">Defined in <a href="" data-line="75" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:75</a></div>
|
|
1031
|
+
</td>
|
|
1032
|
+
</tr>
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
</tbody>
|
|
1036
|
+
</table>
|
|
1037
|
+
<table class="table table-sm table-bordered">
|
|
1038
|
+
<tbody>
|
|
1039
|
+
<tr>
|
|
1040
|
+
<td class="col-md-4">
|
|
1041
|
+
<a name="refresh"></a>
|
|
1042
|
+
<span class="name">
|
|
1043
|
+
<span class="modifier">Public</span>
|
|
1044
|
+
<span class="modifier">Readonly</span>
|
|
1045
|
+
<span ><b>refresh</b></span>
|
|
1046
|
+
<a href="#refresh"><span class="icon ion-ios-link"></span></a>
|
|
1047
|
+
</span>
|
|
1048
|
+
</td>
|
|
1049
|
+
</tr>
|
|
1050
|
+
<tr>
|
|
1051
|
+
<td class="col-md-4">
|
|
1052
|
+
<div class="io-line">Defined in <a href="" data-line="55" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:55</a></div>
|
|
1053
|
+
</td>
|
|
1054
|
+
</tr>
|
|
1055
|
+
|
|
1056
|
+
<tr>
|
|
1057
|
+
<td class="col-md-4">
|
|
1058
|
+
<div class="io-description"><p>true - after the action is executed the table datasource is refreshed</p>
|
|
1059
|
+
</div>
|
|
1060
|
+
</td>
|
|
1061
|
+
</tr>
|
|
1062
|
+
|
|
1063
|
+
</tbody>
|
|
1064
|
+
</table>
|
|
1065
|
+
<table class="table table-sm table-bordered">
|
|
1066
|
+
<tbody>
|
|
1067
|
+
<tr>
|
|
1068
|
+
<td class="col-md-4">
|
|
1069
|
+
<a name="renderer"></a>
|
|
1070
|
+
<span class="name">
|
|
1071
|
+
<span class="modifier">Protected</span>
|
|
1072
|
+
<span class="modifier">Readonly</span>
|
|
1073
|
+
<span ><b>renderer</b></span>
|
|
1074
|
+
<a href="#renderer"><span class="icon ion-ios-link"></span></a>
|
|
1075
|
+
</span>
|
|
1076
|
+
</td>
|
|
1077
|
+
</tr>
|
|
1078
|
+
<tr>
|
|
1079
|
+
<td class="col-md-4">
|
|
1080
|
+
<i>Default value : </i><code>inject(Renderer2)</code>
|
|
1081
|
+
</td>
|
|
1082
|
+
</tr>
|
|
1083
|
+
<tr>
|
|
1084
|
+
<td class="col-md-4">
|
|
1085
|
+
<div class="io-line">Defined in <a href="" data-line="63" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:63</a></div>
|
|
1086
|
+
</td>
|
|
1087
|
+
</tr>
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
</tbody>
|
|
1091
|
+
</table>
|
|
1092
|
+
<table class="table table-sm table-bordered">
|
|
1093
|
+
<tbody>
|
|
1094
|
+
<tr>
|
|
1095
|
+
<td class="col-md-4">
|
|
1096
|
+
<a name="snackBar"></a>
|
|
1097
|
+
<span class="name">
|
|
1098
|
+
<span class="modifier">Protected</span>
|
|
1099
|
+
<span class="modifier">Readonly</span>
|
|
1100
|
+
<span ><b>snackBar</b></span>
|
|
1101
|
+
<a href="#snackBar"><span class="icon ion-ios-link"></span></a>
|
|
1102
|
+
</span>
|
|
1103
|
+
</td>
|
|
1104
|
+
</tr>
|
|
1105
|
+
<tr>
|
|
1106
|
+
<td class="col-md-4">
|
|
1107
|
+
<i>Default value : </i><code>inject(MatSnackBar)</code>
|
|
1108
|
+
</td>
|
|
1109
|
+
</tr>
|
|
1110
|
+
<tr>
|
|
1111
|
+
<td class="col-md-4">
|
|
1112
|
+
<div class="io-line">Defined in <a href="" data-line="66" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:66</a></div>
|
|
1113
|
+
</td>
|
|
1114
|
+
</tr>
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
</tbody>
|
|
1118
|
+
</table>
|
|
1119
|
+
<table class="table table-sm table-bordered">
|
|
1120
|
+
<tbody>
|
|
1121
|
+
<tr>
|
|
1122
|
+
<td class="col-md-4">
|
|
1123
|
+
<a name="successMessage"></a>
|
|
1124
|
+
<span class="name">
|
|
1125
|
+
<span class="modifier">Public</span>
|
|
1126
|
+
<span class="modifier">Readonly</span>
|
|
1127
|
+
<span ><b>successMessage</b></span>
|
|
1128
|
+
<a href="#successMessage"><span class="icon ion-ios-link"></span></a>
|
|
1129
|
+
</span>
|
|
1130
|
+
</td>
|
|
1131
|
+
</tr>
|
|
1132
|
+
<tr>
|
|
1133
|
+
<td class="col-md-4">
|
|
1134
|
+
<div class="io-line">Defined in <a href="" data-line="51" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:51</a></div>
|
|
1135
|
+
</td>
|
|
1136
|
+
</tr>
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
</tbody>
|
|
1140
|
+
</table>
|
|
1141
|
+
<table class="table table-sm table-bordered">
|
|
1142
|
+
<tbody>
|
|
1143
|
+
<tr>
|
|
1144
|
+
<td class="col-md-4">
|
|
1145
|
+
<a name="tableDataSourceDirective"></a>
|
|
1146
|
+
<span class="name">
|
|
1147
|
+
<span class="modifier">Protected</span>
|
|
1148
|
+
<span class="modifier">Readonly</span>
|
|
1149
|
+
<span ><b>tableDataSourceDirective</b></span>
|
|
1150
|
+
<a href="#tableDataSourceDirective"><span class="icon ion-ios-link"></span></a>
|
|
1151
|
+
</span>
|
|
1152
|
+
</td>
|
|
1153
|
+
</tr>
|
|
1154
|
+
<tr>
|
|
1155
|
+
<td class="col-md-4">
|
|
1156
|
+
<i>Default value : </i><code>inject(TableDataSourceDirective)</code>
|
|
1157
|
+
</td>
|
|
1158
|
+
</tr>
|
|
1159
|
+
<tr>
|
|
1160
|
+
<td class="col-md-4">
|
|
1161
|
+
<div class="io-line">Defined in <a href="" data-line="65" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:65</a></div>
|
|
1162
|
+
</td>
|
|
1163
|
+
</tr>
|
|
1164
|
+
|
|
1165
|
+
|
|
1166
|
+
</tbody>
|
|
1167
|
+
</table>
|
|
1168
|
+
<table class="table table-sm table-bordered">
|
|
1169
|
+
<tbody>
|
|
1170
|
+
<tr>
|
|
1171
|
+
<td class="col-md-4">
|
|
1172
|
+
<a name="type"></a>
|
|
1173
|
+
<span class="name">
|
|
1174
|
+
<span class="modifier">Public</span>
|
|
1175
|
+
<span class="modifier">Abstract</span>
|
|
1176
|
+
<span class="modifier">Readonly</span>
|
|
1177
|
+
<span ><b>type</b></span>
|
|
1178
|
+
<a href="#type"><span class="icon ion-ios-link"></span></a>
|
|
1179
|
+
</span>
|
|
1180
|
+
</td>
|
|
1181
|
+
</tr>
|
|
1182
|
+
<tr>
|
|
1183
|
+
<td class="col-md-4">
|
|
1184
|
+
<i>Type : </i> <code>Signal<string></code>
|
|
1185
|
+
|
|
1186
|
+
</td>
|
|
1187
|
+
</tr>
|
|
1188
|
+
<tr>
|
|
1189
|
+
<td class="col-md-4">
|
|
1190
|
+
<div class="io-line">Defined in <a href="" data-line="49" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:49</a></div>
|
|
1191
|
+
</td>
|
|
1192
|
+
</tr>
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
</tbody>
|
|
1196
|
+
</table>
|
|
1197
|
+
<table class="table table-sm table-bordered">
|
|
1198
|
+
<tbody>
|
|
1199
|
+
<tr>
|
|
1200
|
+
<td class="col-md-4">
|
|
1201
|
+
<a name="vcr"></a>
|
|
1202
|
+
<span class="name">
|
|
1203
|
+
<span class="modifier">Protected</span>
|
|
1204
|
+
<span class="modifier">Readonly</span>
|
|
1205
|
+
<span ><b>vcr</b></span>
|
|
1206
|
+
<a href="#vcr"><span class="icon ion-ios-link"></span></a>
|
|
1207
|
+
</span>
|
|
1208
|
+
</td>
|
|
1209
|
+
</tr>
|
|
1210
|
+
<tr>
|
|
1211
|
+
<td class="col-md-4">
|
|
1212
|
+
<i>Default value : </i><code>inject(ViewContainerRef)</code>
|
|
1213
|
+
</td>
|
|
1214
|
+
</tr>
|
|
1215
|
+
<tr>
|
|
1216
|
+
<td class="col-md-4">
|
|
1217
|
+
<div class="io-line">Defined in <a href="" data-line="64" class="link-to-prism">src/lib/table-row-actions/abstract-table-row-action.ts:64</a></div>
|
|
1218
|
+
</td>
|
|
1219
|
+
</tr>
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
</tbody>
|
|
1223
|
+
</table>
|
|
1224
|
+
</section>
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
</div>
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
<div class="tab-pane fade tab-source-code" id="source">
|
|
1231
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
1232
|
+
computed,
|
|
1233
|
+
Directive,
|
|
1234
|
+
effect,
|
|
1235
|
+
INJECTOR,
|
|
1236
|
+
Injector,
|
|
1237
|
+
input,
|
|
1238
|
+
contentChild,
|
|
1239
|
+
inject,
|
|
1240
|
+
isDevMode,
|
|
1241
|
+
Renderer2,
|
|
1242
|
+
Signal,
|
|
1243
|
+
ViewContainerRef,
|
|
1244
|
+
untracked,
|
|
1245
|
+
} from '@angular/core';
|
|
1246
|
+
import { MatButton, MatIconButton } from '@angular/material/button';
|
|
1247
|
+
import { ThemePalette } from '@angular/material/core';
|
|
1248
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
1249
|
+
import { MatTooltip } from '@angular/material/tooltip';
|
|
1250
|
+
import { ConfirmDirective } from '@rxap/components';
|
|
1251
|
+
import {
|
|
1252
|
+
coerceArray,
|
|
1253
|
+
coerceBoolean,
|
|
1254
|
+
dasherize,
|
|
1255
|
+
} from '@rxap/utilities';
|
|
1256
|
+
import { TableDataSourceDirective } from '../table-data-source.directive';
|
|
1257
|
+
import { TableActionMethodOptions } from './decorators';
|
|
1258
|
+
import { TableRowActionExecutingDirective } from './table-row-action-executing.directive';
|
|
1259
|
+
import { TableRowActionStatus } from './table-row-action-status';
|
|
1260
|
+
import {
|
|
1261
|
+
GetTableRowActionMetadata,
|
|
1262
|
+
IsTableRowActionTypeMethod,
|
|
1263
|
+
IsTableRowActionTypeSwitchMethod,
|
|
1264
|
+
} from './table-row-action.method';
|
|
1265
|
+
import { RXAP_TABLE_ROW_ACTION_METHOD } from './tokens';
|
|
1266
|
+
import {
|
|
1267
|
+
TableRowActionMethod,
|
|
1268
|
+
TableRowActionTypeMethod,
|
|
1269
|
+
TableRowActionTypeSwitchMethod,
|
|
1270
|
+
} from './types';
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* Subclasses must be decorated with @Directive, declare the `type` signal input and
|
|
1274
|
+
* implement `getElementList`. No constructor arguments are required anymore - all
|
|
1275
|
+
* dependencies are acquired with inject().
|
|
1276
|
+
*/
|
|
1277
|
+
@Directive()
|
|
1278
|
+
export abstract class AbstractTableRowAction<Data extends Record<string, any>> extends ConfirmDirective {
|
|
1279
|
+
public abstract readonly type: Signal<string>;
|
|
1280
|
+
public readonly errorMessage = input<string>();
|
|
1281
|
+
public readonly successMessage = input<string>();
|
|
1282
|
+
/**
|
|
1283
|
+
* true - after the action is executed the table datasource is refreshed
|
|
1284
|
+
*/
|
|
1285
|
+
public readonly refresh = input<boolean>();
|
|
1286
|
+
|
|
1287
|
+
public readonly color = input<ThemePalette>();
|
|
1288
|
+
|
|
1289
|
+
public readonly hasConfirmDirective = input(false, { alias: 'rxapConfirm', transform: coerceBoolean });
|
|
1290
|
+
|
|
1291
|
+
public readonly isHeader: boolean = false;
|
|
1292
|
+
|
|
1293
|
+
protected readonly renderer = inject(Renderer2);
|
|
1294
|
+
protected readonly vcr = inject(ViewContainerRef);
|
|
1295
|
+
protected readonly tableDataSourceDirective = inject(TableDataSourceDirective);
|
|
1296
|
+
protected readonly snackBar = inject(MatSnackBar);
|
|
1297
|
+
protected readonly matButton: MatIconButton | MatButton | null = inject(MatIconButton, { optional: true }) ??
|
|
1298
|
+
inject(MatButton, { optional: true });
|
|
1299
|
+
protected readonly matTooltip = inject(MatTooltip, { optional: true });
|
|
1300
|
+
protected readonly injector = inject<Injector>(INJECTOR);
|
|
1301
|
+
private readonly actionMethodList: Array<TableRowActionMethod<Data>> = coerceArray(
|
|
1302
|
+
inject<Array<TableRowActionMethod<Data>> | TableRowActionMethod<Data>>(RXAP_TABLE_ROW_ACTION_METHOD),
|
|
1303
|
+
);
|
|
1304
|
+
|
|
1305
|
+
protected readonly options: Signal<TableActionMethodOptions | null> = computed(() => this.getTableActionOptions());
|
|
1306
|
+
|
|
1307
|
+
protected readonly effectiveRefresh = computed(() => this.refresh() ?? this.options()?.refresh ?? false);
|
|
1308
|
+
protected readonly effectiveErrorMessage = computed(() => this.errorMessage() ?? this.options()?.errorMessage ?? undefined);
|
|
1309
|
+
protected readonly effectiveSuccessMessage = computed(() => this.successMessage() ?? this.options()?.successMessage ?? undefined);
|
|
1310
|
+
protected readonly effectiveColor = computed(() => this.color() ?? this.options()?.color ?? undefined);
|
|
1311
|
+
|
|
1312
|
+
private readonly executingDirective = contentChild(TableRowActionExecutingDirective);
|
|
1313
|
+
private _currentStatus: TableRowActionStatus = TableRowActionStatus.DONE;
|
|
1314
|
+
private _actionDisabled = false;
|
|
1315
|
+
|
|
1316
|
+
protected constructor() {
|
|
1317
|
+
super();
|
|
1318
|
+
effect(() => {
|
|
1319
|
+
const tooltip = this.options()?.tooltip;
|
|
1320
|
+
if (this.matTooltip && tooltip) {
|
|
1321
|
+
untracked(() => this.matTooltip!.message = tooltip);
|
|
1322
|
+
}
|
|
1323
|
+
});
|
|
1324
|
+
effect(() => {
|
|
1325
|
+
const color = this.effectiveColor();
|
|
1326
|
+
if (this.matButton && color) {
|
|
1327
|
+
untracked(() => this.matButton!.color = color);
|
|
1328
|
+
}
|
|
1329
|
+
});
|
|
1330
|
+
effect(() => {
|
|
1331
|
+
const type = this.type();
|
|
1332
|
+
const element = this.elementRef.nativeElement;
|
|
1333
|
+
untracked(() => {
|
|
1334
|
+
this.renderer.addClass(element, this.isHeader ? 'rxap-table-row-header-action' : 'rxap-table-row-action');
|
|
1335
|
+
this.renderer.addClass(element, `rxap-action-${ dasherize(type) }`);
|
|
1336
|
+
});
|
|
1337
|
+
});
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
public override onConfirmed() {
|
|
1341
|
+
return this.execute();
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
public override onClick($event?: Event) {
|
|
1345
|
+
$event?.stopPropagation();
|
|
1346
|
+
if (!this.hasConfirmDirective() && !this.options()?.confirm) {
|
|
1347
|
+
return this.execute();
|
|
1348
|
+
} else if (this.options()?.confirm) {
|
|
1349
|
+
this.openConfirmOverly();
|
|
1350
|
+
} else {
|
|
1351
|
+
if (isDevMode()) {
|
|
1352
|
+
console.debug('skip remote method call. Wait for confirmation.');
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
return Promise.resolve();
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
public async execute(): Promise<void> {
|
|
1359
|
+
if (this._actionDisabled) {
|
|
1360
|
+
return Promise.resolve();
|
|
1361
|
+
}
|
|
1362
|
+
this.setStatus(TableRowActionStatus.EXECUTING);
|
|
1363
|
+
try {
|
|
1364
|
+
await Promise.all(
|
|
1365
|
+
this.getElementList().map((element) => {
|
|
1366
|
+
return Promise.all([
|
|
1367
|
+
Promise.all(
|
|
1368
|
+
this.findUntypedActionMethod().map((am) => {
|
|
1369
|
+
return am.call({
|
|
1370
|
+
element,
|
|
1371
|
+
type: this.type(),
|
|
1372
|
+
});
|
|
1373
|
+
},
|
|
1374
|
+
),
|
|
1375
|
+
),
|
|
1376
|
+
Promise.all(
|
|
1377
|
+
this.findTypedActionMethod().map((am) => {
|
|
1378
|
+
return am.call(element);
|
|
1379
|
+
}),
|
|
1380
|
+
),
|
|
1381
|
+
]);
|
|
1382
|
+
}),
|
|
1383
|
+
);
|
|
1384
|
+
this.setStatus(TableRowActionStatus.SUCCESS);
|
|
1385
|
+
} catch (e: any) {
|
|
1386
|
+
console.error(`Failed to execute row action: ${ e.message }`);
|
|
1387
|
+
this.setStatus(TableRowActionStatus.ERROR);
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
protected abstract getElementList(): Data[];
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* Disables the action. If the button is pressed the action is NOT executed
|
|
1395
|
+
*
|
|
1396
|
+
* Hint: the button is set to disabled = true to prevent any conflict with
|
|
1397
|
+
* extern button enable features linke : rxapHasEnablePermission
|
|
1398
|
+
* @protected
|
|
1399
|
+
*/
|
|
1400
|
+
protected setButtonDisabled() {
|
|
1401
|
+
this._actionDisabled = true;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* Enables the action. If the button is pressed the action is executed
|
|
1406
|
+
*
|
|
1407
|
+
* TODO : find a way to communicate the disabled state between the features
|
|
1408
|
+
* Hint: the button is set to disabled = false to prevent any conflict with
|
|
1409
|
+
* extern button enable features linke : rxapHasEnablePermission
|
|
1410
|
+
* @protected
|
|
1411
|
+
*/
|
|
1412
|
+
protected setButtonEnabled() {
|
|
1413
|
+
this._actionDisabled = false;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* find all method instance in the actionMethodList member that
|
|
1418
|
+
* do not have a @TableActionMethod decorators
|
|
1419
|
+
* @private
|
|
1420
|
+
*/
|
|
1421
|
+
private findUntypedActionMethod(): Array<TableRowActionTypeSwitchMethod<Data>> {
|
|
1422
|
+
return this.actionMethodList.filter(IsTableRowActionTypeSwitchMethod);
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* find all method instance in the actionMethodList member that
|
|
1427
|
+
* do have a @TableActionMethod decorators with the current type
|
|
1428
|
+
* @private
|
|
1429
|
+
*/
|
|
1430
|
+
private findTypedActionMethod(): Array<TableRowActionTypeMethod<Data>> {
|
|
1431
|
+
return this.actionMethodList.filter(IsTableRowActionTypeMethod(this.type()));
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
private setStatus(status: TableRowActionStatus) {
|
|
1435
|
+
if (this._currentStatus === status) {
|
|
1436
|
+
return;
|
|
1437
|
+
}
|
|
1438
|
+
this._currentStatus = status;
|
|
1439
|
+
const errorMessage = this.effectiveErrorMessage();
|
|
1440
|
+
const successMessage = this.effectiveSuccessMessage();
|
|
1441
|
+
switch (status) {
|
|
1442
|
+
case TableRowActionStatus.EXECUTING:
|
|
1443
|
+
this.setButtonDisabled();
|
|
1444
|
+
this.executingDirective()?.show();
|
|
1445
|
+
break;
|
|
1446
|
+
case TableRowActionStatus.SUCCESS:
|
|
1447
|
+
if (this.effectiveRefresh()) {
|
|
1448
|
+
this.tableDataSourceDirective.refresh();
|
|
1449
|
+
}
|
|
1450
|
+
if (successMessage) {
|
|
1451
|
+
this.snackBar.open(successMessage, 'ok', { duration: 2560 });
|
|
1452
|
+
}
|
|
1453
|
+
this.setStatus(TableRowActionStatus.DONE);
|
|
1454
|
+
break;
|
|
1455
|
+
case TableRowActionStatus.ERROR:
|
|
1456
|
+
this.setStatus(TableRowActionStatus.DONE);
|
|
1457
|
+
if (errorMessage) {
|
|
1458
|
+
this.snackBar.open(errorMessage, 'ok', { duration: 5120 });
|
|
1459
|
+
}
|
|
1460
|
+
break;
|
|
1461
|
+
case TableRowActionStatus.DONE:
|
|
1462
|
+
this.setButtonEnabled();
|
|
1463
|
+
this.executingDirective()?.hide();
|
|
1464
|
+
break;
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
private getTableActionOptions(): TableActionMethodOptions | null {
|
|
1469
|
+
const metadataList = this.actionMethodList.map(actionMethod => GetTableRowActionMetadata(actionMethod));
|
|
1470
|
+
if (metadataList.length === 0) {
|
|
1471
|
+
return null;
|
|
1472
|
+
}
|
|
1473
|
+
// TODO : handle multiple metadata or not exist metadata
|
|
1474
|
+
return metadataList.filter(metadata => metadata.type === this.type())
|
|
1475
|
+
.sort((a, b) => (a.priority ?? 0) - (b.priority ?? 0))[0];
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
}
|
|
1479
|
+
</code></pre>
|
|
1480
|
+
</div>
|
|
1481
|
+
|
|
1482
|
+
</div>
|
|
1483
|
+
|
|
1484
|
+
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
|
|
1489
|
+
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
|
|
1496
|
+
|
|
1497
|
+
</div><div class="search-results">
|
|
1498
|
+
<div class="has-results">
|
|
1499
|
+
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
|
1500
|
+
<ul class="search-results-list"></ul>
|
|
1501
|
+
</div>
|
|
1502
|
+
<div class="no-results">
|
|
1503
|
+
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
|
1504
|
+
</div>
|
|
1505
|
+
</div>
|
|
1506
|
+
</div>
|
|
1507
|
+
<!-- END CONTENT -->
|
|
1508
|
+
</div>
|
|
1509
|
+
</div>
|
|
1510
|
+
|
|
1511
|
+
<label class="dark-mode-switch">
|
|
1512
|
+
<input type="checkbox">
|
|
1513
|
+
<span class="slider">
|
|
1514
|
+
<svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
|
|
1515
|
+
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
|
|
1516
|
+
</svg>
|
|
1517
|
+
</span>
|
|
1518
|
+
</label>
|
|
1519
|
+
|
|
1520
|
+
<script>
|
|
1521
|
+
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
|
|
1522
|
+
var COMPODOC_CURRENT_PAGE_CONTEXT = 'directive';
|
|
1523
|
+
var COMPODOC_CURRENT_PAGE_URL = 'AbstractTableRowAction.html';
|
|
1524
|
+
var MAX_SEARCH_RESULTS = 15;
|
|
1525
|
+
</script>
|
|
1526
|
+
|
|
1527
|
+
<script>
|
|
1528
|
+
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
1529
|
+
checkToggle(darkModeState);
|
|
1530
|
+
if ($darkModeToggleSwitchers.length > 0) {
|
|
1531
|
+
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
1532
|
+
$darkModeToggleSwitchers[i].addEventListener('change', function (event) {
|
|
1533
|
+
darkModeState = !darkModeState;
|
|
1534
|
+
toggleDarkMode(darkModeState);
|
|
1535
|
+
});
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
</script>
|
|
1539
|
+
|
|
1540
|
+
<script src="../js/libs/custom-elements.min.js"></script>
|
|
1541
|
+
<script src="../js/libs/lit-html.js"></script>
|
|
1542
|
+
|
|
1543
|
+
<script src="../js/menu-wc.js" defer></script>
|
|
1544
|
+
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
1545
|
+
|
|
1546
|
+
<script src="../js/libs/bootstrap-native.js"></script>
|
|
1547
|
+
|
|
1548
|
+
<script src="../js/libs/es6-shim.min.js"></script>
|
|
1549
|
+
<script src="../js/libs/EventDispatcher.js"></script>
|
|
1550
|
+
<script src="../js/libs/promise.min.js"></script>
|
|
1551
|
+
<script src="../js/libs/zepto.min.js"></script>
|
|
1552
|
+
|
|
1553
|
+
<script src="../js/compodoc.js"></script>
|
|
1554
|
+
|
|
1555
|
+
<script src="../js/tabs.js"></script>
|
|
1556
|
+
<script src="../js/menu.js"></script>
|
|
1557
|
+
<script src="../js/libs/clipboard.min.js"></script>
|
|
1558
|
+
<script src="../js/libs/prism.js"></script>
|
|
1559
|
+
<script src="../js/sourceCode.js"></script>
|
|
1560
|
+
<script src="../js/search/search.js"></script>
|
|
1561
|
+
<script src="../js/search/lunr.min.js"></script>
|
|
1562
|
+
<script src="../js/search/search-lunr.js"></script>
|
|
1563
|
+
<script src="../js/search/search_index.js"></script>
|
|
1564
|
+
<script src="../js/lazy-load-graphs.js"></script>
|
|
1565
|
+
|
|
1566
|
+
|
|
1567
|
+
</body>
|
|
1568
|
+
</html>
|