@rxap/material-table-system 18.0.2 → 18.0.3-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 +8 -0
- package/README.md +14 -1
- package/compodoc/changelog.html +967 -0
- package/compodoc/classes/SelectionModel.html +1401 -0
- package/compodoc/components/BooleanCellComponent.html +428 -0
- package/compodoc/components/CheckboxCellComponent.html +535 -0
- package/compodoc/components/CheckboxHeaderCellComponent.html +705 -0
- package/compodoc/components/CopyToClipboardCellComponent.html +421 -0
- package/compodoc/components/DateCellComponent.html +453 -0
- package/compodoc/components/ExpandControlsCellComponent.html +545 -0
- package/compodoc/components/ExpandRowContainerComponent.html +703 -0
- package/compodoc/components/IconCellComponent.html +415 -0
- package/compodoc/components/ImageCellComponent.html +573 -0
- package/compodoc/components/LinkCellComponent.html +550 -0
- package/compodoc/components/OptionsCellComponent.html +780 -0
- package/compodoc/components/TableColumnMenuComponent.html +1123 -0
- package/compodoc/components/TableColumnOptionComponent.html +1034 -0
- package/compodoc/components/TableSelectControlsComponent.html +613 -0
- package/compodoc/components/TableShowArchivedSlideComponent.html +629 -0
- package/compodoc/components/TreeControlCellComponent.html +642 -0
- package/compodoc/dependencies.html +229 -0
- package/compodoc/directives/ExpandRowContentDirective.html +508 -0
- package/compodoc/directives/ExpandRowDirective.html +563 -0
- package/compodoc/directives/FilterHeaderRowDirective.html +550 -0
- package/compodoc/directives/PersistentPaginatorDirective.html +562 -0
- package/compodoc/directives/SelectedRowsDirective.html +397 -0
- package/compodoc/directives/TableColumnFilterInputDirective.html +428 -0
- package/compodoc/directives/TableCreateButtonDirective.html +560 -0
- package/compodoc/directives/TableDataSourceDirective.html +1291 -0
- package/compodoc/directives/TableHeaderButtonDirective.html +1224 -0
- package/compodoc/directives/TableRowActionDirective.html +886 -0
- package/compodoc/directives/TableRowActionExecutingDirective.html +498 -0
- package/compodoc/directives/TableRowHeaderActionDirective.html +1135 -0
- package/compodoc/fonts/ionicons.eot +0 -0
- package/compodoc/fonts/ionicons.svg +2090 -0
- package/compodoc/fonts/ionicons.ttf +0 -0
- package/compodoc/fonts/ionicons.woff +0 -0
- package/compodoc/fonts/ionicons.woff2 +0 -0
- package/compodoc/fonts/roboto-v15-latin-300.eot +0 -0
- package/compodoc/fonts/roboto-v15-latin-300.svg +314 -0
- package/compodoc/fonts/roboto-v15-latin-300.ttf +0 -0
- package/compodoc/fonts/roboto-v15-latin-300.woff +0 -0
- package/compodoc/fonts/roboto-v15-latin-300.woff2 +0 -0
- package/compodoc/fonts/roboto-v15-latin-700.eot +0 -0
- package/compodoc/fonts/roboto-v15-latin-700.svg +310 -0
- package/compodoc/fonts/roboto-v15-latin-700.ttf +0 -0
- package/compodoc/fonts/roboto-v15-latin-700.woff +0 -0
- package/compodoc/fonts/roboto-v15-latin-700.woff2 +0 -0
- package/compodoc/fonts/roboto-v15-latin-italic.eot +0 -0
- package/compodoc/fonts/roboto-v15-latin-italic.svg +323 -0
- package/compodoc/fonts/roboto-v15-latin-italic.ttf +0 -0
- package/compodoc/fonts/roboto-v15-latin-italic.woff +0 -0
- package/compodoc/fonts/roboto-v15-latin-italic.woff2 +0 -0
- package/compodoc/fonts/roboto-v15-latin-regular.eot +0 -0
- package/compodoc/fonts/roboto-v15-latin-regular.svg +308 -0
- package/compodoc/fonts/roboto-v15-latin-regular.ttf +0 -0
- package/compodoc/fonts/roboto-v15-latin-regular.woff +0 -0
- package/compodoc/fonts/roboto-v15-latin-regular.woff2 +0 -0
- package/compodoc/graph/dependencies.svg +442 -0
- package/compodoc/images/compodoc-vectorise-inverted.png +0 -0
- package/compodoc/images/compodoc-vectorise-inverted.svg +201 -0
- package/compodoc/images/compodoc-vectorise.png +0 -0
- package/compodoc/images/compodoc-vectorise.svg +201 -0
- package/compodoc/images/favicon.ico +0 -0
- package/compodoc/index.html +197 -0
- package/compodoc/injectables/AbstractTableRowAction.html +1223 -0
- package/compodoc/injectables/ExpandRowService.html +541 -0
- package/compodoc/injectables/SelectRowService.html +501 -0
- package/compodoc/injectables/TableColumnFilterService.html +449 -0
- package/compodoc/injectables/TableFilterService.html +732 -0
- package/compodoc/interfaces/ExpandCellContentDirectiveContext.html +309 -0
- package/compodoc/interfaces/SelectRowOptions.html +427 -0
- package/compodoc/interfaces/SelectedRowsDirectiveContext.html +338 -0
- package/compodoc/interfaces/SelectionChange.html +640 -0
- package/compodoc/interfaces/TableActionMethodOptions.html +776 -0
- package/compodoc/interfaces/TableHeaderButtonMethodOptions.html +548 -0
- package/compodoc/interfaces/TableRowMetadata.html +378 -0
- package/compodoc/js/compodoc.js +14 -0
- package/compodoc/js/lazy-load-graphs.js +44 -0
- package/compodoc/js/libs/EventDispatcher.js +5 -0
- package/compodoc/js/libs/bootstrap-native.js +2 -0
- package/compodoc/js/libs/clipboard.min.js +7 -0
- package/compodoc/js/libs/custom-elements-es5-adapter.js +15 -0
- package/compodoc/js/libs/custom-elements.min.js +38 -0
- package/compodoc/js/libs/d3.v3.min.js +2 -0
- package/compodoc/js/libs/deep-iterator.js +2 -0
- package/compodoc/js/libs/es6-shim.min.js +12 -0
- package/compodoc/js/libs/htmlparser.js +23 -0
- package/compodoc/js/libs/innersvg.js +9 -0
- package/compodoc/js/libs/lit-html.js +1 -0
- package/compodoc/js/libs/prism.js +46 -0
- package/compodoc/js/libs/promise.min.js +6 -0
- package/compodoc/js/libs/svg-pan-zoom.min.js +3 -0
- package/compodoc/js/libs/tablesort.min.js +6 -0
- package/compodoc/js/libs/tablesort.number.min.js +6 -0
- package/compodoc/js/libs/vis.min.js +47 -0
- package/compodoc/js/libs/zepto.min.js +2 -0
- package/compodoc/js/menu-wc.js +408 -0
- package/compodoc/js/menu-wc_es5.js +40 -0
- package/compodoc/js/menu.js +270 -0
- package/compodoc/js/routes.js +301 -0
- package/compodoc/js/search/lunr.min.js +6 -0
- package/compodoc/js/search/search-lunr.js +67 -0
- package/compodoc/js/search/search.js +283 -0
- package/compodoc/js/search/search_index.js +4 -0
- package/compodoc/js/sourceCode.js +58 -0
- package/compodoc/js/svg-pan-zoom.controls.js +53 -0
- package/compodoc/js/tabs.js +21 -0
- package/compodoc/js/tree.js +147 -0
- package/compodoc/license.html +731 -0
- package/compodoc/miscellaneous/enumerations.html +307 -0
- package/compodoc/miscellaneous/functions.html +1264 -0
- package/compodoc/miscellaneous/typealiases.html +334 -0
- package/compodoc/miscellaneous/variables.html +676 -0
- package/compodoc/modules/ExpandRowModule/dependencies.svg +82 -0
- package/compodoc/modules/ExpandRowModule.html +364 -0
- package/compodoc/modules/SelectRowModule/dependencies.svg +114 -0
- package/compodoc/modules/SelectRowModule.html +401 -0
- package/compodoc/modules/TableColumnMenuModule/dependencies.svg +114 -0
- package/compodoc/modules/TableColumnMenuModule.html +400 -0
- package/compodoc/modules/TableFilterModule/dependencies.svg +90 -0
- package/compodoc/modules/TableFilterModule.html +369 -0
- package/compodoc/modules/TableRowActionsModule/dependencies.svg +138 -0
- package/compodoc/modules/TableRowActionsModule.html +446 -0
- package/compodoc/modules.html +268 -0
- package/compodoc/overview.html +697 -0
- package/compodoc/pipes/RowActionCheckPipe.html +379 -0
- package/compodoc/pipes/ToFilterColumnNamesPipe.html +325 -0
- package/compodoc/properties.html +195 -0
- package/compodoc/styles/bootstrap-card.css +219 -0
- package/compodoc/styles/bootstrap.min.css +6 -0
- package/compodoc/styles/compodoc.css +1124 -0
- package/compodoc/styles/dark.css +121 -0
- package/compodoc/styles/ionicons.min.css +11 -0
- package/compodoc/styles/laravel.css +113 -0
- package/compodoc/styles/material.css +131 -0
- package/compodoc/styles/original.css +51 -0
- package/compodoc/styles/postmark.css +238 -0
- package/compodoc/styles/prism.css +301 -0
- package/compodoc/styles/readthedocs.css +117 -0
- package/compodoc/styles/reset.css +129 -0
- package/compodoc/styles/stripe.css +106 -0
- package/compodoc/styles/style.css +7 -0
- package/compodoc/styles/tablesort.css +33 -0
- package/compodoc/styles/vagrant.css +130 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +57 -0
- package/docs/assets/icons.js +15 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +59 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1412 -0
- package/docs/classes/AbstractTableRowAction.html +58 -0
- package/docs/classes/BooleanCellComponent.html +3 -0
- package/docs/classes/CheckboxCellComponent.html +4 -0
- package/docs/classes/CheckboxHeaderCellComponent.html +9 -0
- package/docs/classes/CopyToClipboardCellComponent.html +3 -0
- package/docs/classes/DateCellComponent.html +4 -0
- package/docs/classes/ExpandControlsCellComponent.html +4 -0
- package/docs/classes/ExpandRowContainerComponent.html +10 -0
- package/docs/classes/ExpandRowContentDirective.html +4 -0
- package/docs/classes/ExpandRowDirective.html +6 -0
- package/docs/classes/ExpandRowModule.html +2 -0
- package/docs/classes/ExpandRowService.html +6 -0
- package/docs/classes/FilterHeaderRowDirective.html +188 -0
- package/docs/classes/IconCellComponent.html +3 -0
- package/docs/classes/ImageCellComponent.html +7 -0
- package/docs/classes/LinkCellComponent.html +6 -0
- package/docs/classes/OptionsCellComponent.html +15 -0
- package/docs/classes/PersistentPaginatorDirective.html +10 -0
- package/docs/classes/RowActionCheckPipe.html +4 -0
- package/docs/classes/SelectRowModule.html +2 -0
- package/docs/classes/SelectRowService.html +6 -0
- package/docs/classes/SelectedRowsDirective.html +9 -0
- package/docs/classes/SelectionModel.html +67 -0
- package/docs/classes/TableColumnFilterInputDirective.html +8 -0
- package/docs/classes/TableColumnFilterService.html +5 -0
- package/docs/classes/TableColumnMenuComponent.html +14 -0
- package/docs/classes/TableColumnMenuModule.html +2 -0
- package/docs/classes/TableColumnOptionComponent.html +18 -0
- package/docs/classes/TableCreateButtonDirective.html +10 -0
- package/docs/classes/TableDataSourceDirective.html +32 -0
- package/docs/classes/TableFilterModule.html +2 -0
- package/docs/classes/TableFilterService.html +15 -0
- package/docs/classes/TableHeaderButtonDirective.html +42 -0
- package/docs/classes/TableRowActionDirective.html +44 -0
- package/docs/classes/TableRowActionExecutingDirective.html +6 -0
- package/docs/classes/TableRowActionsModule.html +2 -0
- package/docs/classes/TableRowHeaderActionDirective.html +45 -0
- package/docs/classes/TableSelectControlsComponent.html +7 -0
- package/docs/classes/TableShowArchivedSlideComponent.html +8 -0
- package/docs/classes/ToFilterColumnNamesPipe.html +3 -0
- package/docs/classes/TreeControlCellComponent.html +10 -0
- package/docs/documentation.json +34048 -0
- package/docs/enums/TableHeaderButtonActionStatus.html +5 -0
- package/docs/enums/TableRowActionStatus.html +5 -0
- package/docs/functions/GetTableHeaderButtonMetadata.html +1 -0
- package/docs/functions/GetTableRowActionCheckFunction.html +1 -0
- package/docs/functions/GetTableRowActionMetadata.html +1 -0
- package/docs/functions/HasTableRowActionCheckFunction.html +1 -0
- package/docs/functions/HasTableRowActionMetadata.html +1 -0
- package/docs/functions/IsTableRowActionTypeMethod.html +1 -0
- package/docs/functions/IsTableRowActionTypeSwitchMethod.html +1 -0
- package/docs/functions/NormalizeTableRow.html +5 -0
- package/docs/functions/TableActionMethod.html +1 -0
- package/docs/functions/TableHeaderButtonMethod.html +1 -0
- package/docs/functions/getMultipleValuesInSingleSelectionError.html +4 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +25 -0
- package/docs/interfaces/ExpandCellContentDirectiveContext.html +2 -0
- package/docs/interfaces/SelectRowOptions.html +5 -0
- package/docs/interfaces/SelectedRowsDirectiveContext.html +2 -0
- package/docs/interfaces/SelectionChange.html +9 -0
- package/docs/interfaces/TableActionMethodOptions.html +19 -0
- package/docs/interfaces/TableHeaderButtonMethodOptions.html +11 -0
- package/docs/interfaces/TableRowMetadata.html +5 -0
- package/docs/modules.html +84 -0
- package/docs/types/RawTableRow.html +1 -0
- package/docs/types/RowActionCheckFunction.html +1 -0
- package/docs/types/RowIdMapperFunction.html +1 -0
- package/docs/types/TableRemoteMethodAdapterFactory.html +1 -0
- package/docs/types/TableRowActionMethod.html +1 -0
- package/docs/types/TableRowActionTypeMethod.html +1 -0
- package/docs/types/TableRowActionTypeSwitchMethod.html +1 -0
- package/docs/variables/RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS.html +1 -0
- package/docs/variables/RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA.html +2 -0
- package/docs/variables/RXAP_TABLE_ACTION_METHOD_METADATA.html +1 -0
- package/docs/variables/RXAP_TABLE_ACTION_METHOD_TYPE_METADATA.html +2 -0
- package/docs/variables/RXAP_TABLE_FILTER.html +1 -0
- package/docs/variables/RXAP_TABLE_FILTER_FORM_DEFINITION.html +1 -0
- package/docs/variables/RXAP_TABLE_HEADER_BUTTON_METHOD_METADATA.html +1 -0
- package/docs/variables/RXAP_TABLE_METHOD.html +1 -0
- package/docs/variables/RXAP_TABLE_ROW_ACTION_METHOD.html +1 -0
- package/docs/variables/RowAnimation.html +1 -0
- package/docs/variables/TABLE_CREATE_REMOTE_METHOD.html +1 -0
- package/docs/variables/TABLE_DATA_SOURCE.html +1 -0
- package/docs/variables/TABLE_HEADER_BUTTON_METHOD.html +1 -0
- package/docs/variables/TABLE_REMOTE_METHOD.html +2 -0
- package/docs/variables/TABLE_REMOTE_METHOD_ADAPTER_FACTORY.html +1 -0
- package/package.json +31 -29
|
@@ -0,0 +1,1291 @@
|
|
|
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" >TableDataSourceDirective</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-data-source.directive.ts</code>
|
|
118
|
+
</p>
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
<p class="comment">
|
|
124
|
+
<h3>Implements</h3>
|
|
125
|
+
</p>
|
|
126
|
+
<p class="comment">
|
|
127
|
+
<code>OnInit</code>
|
|
128
|
+
<code>OnDestroy</code>
|
|
129
|
+
</p>
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
<section data-compodoc="block-metadata">
|
|
133
|
+
<h3>Metadata</h3>
|
|
134
|
+
<table class="table table-sm table-hover metadata">
|
|
135
|
+
<tbody>
|
|
136
|
+
|
|
137
|
+
<tr>
|
|
138
|
+
<td class="col-md-3">Selector</td>
|
|
139
|
+
<td class="col-md-9"><code>table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]</code></td>
|
|
140
|
+
</tr>
|
|
141
|
+
|
|
142
|
+
<tr>
|
|
143
|
+
<td class="col-md-3">Standalone</td>
|
|
144
|
+
<td class="col-md-9"><code>true</code></td>
|
|
145
|
+
</tr>
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
<tr>
|
|
149
|
+
<td class="col-md-3">exportAs</td>
|
|
150
|
+
<td class="col-md-9"><code>rxapTableDataSource</code></td>
|
|
151
|
+
</tr>
|
|
152
|
+
|
|
153
|
+
</tbody>
|
|
154
|
+
</table>
|
|
155
|
+
</section>
|
|
156
|
+
|
|
157
|
+
<section data-compodoc="block-index">
|
|
158
|
+
<h3 id="index">Index</h3>
|
|
159
|
+
<table class="table table-sm table-bordered index-table">
|
|
160
|
+
<tbody>
|
|
161
|
+
<tr>
|
|
162
|
+
<td class="col-md-4">
|
|
163
|
+
<h6><b>Properties</b></h6>
|
|
164
|
+
</td>
|
|
165
|
+
</tr>
|
|
166
|
+
<tr>
|
|
167
|
+
<td class="col-md-4">
|
|
168
|
+
<ul class="index-list">
|
|
169
|
+
<li>
|
|
170
|
+
<span class="modifier">Protected</span>
|
|
171
|
+
<a href="#_subscription" >_subscription</a>
|
|
172
|
+
</li>
|
|
173
|
+
<li>
|
|
174
|
+
<span class="modifier">Public</span>
|
|
175
|
+
<span class="modifier">Readonly</span>
|
|
176
|
+
<a href="#error$" >error$</a>
|
|
177
|
+
</li>
|
|
178
|
+
<li>
|
|
179
|
+
<span class="modifier">Public</span>
|
|
180
|
+
<span class="modifier">Readonly</span>
|
|
181
|
+
<a href="#hasError$" >hasError$</a>
|
|
182
|
+
</li>
|
|
183
|
+
<li>
|
|
184
|
+
<span class="modifier">Public</span>
|
|
185
|
+
<span class="modifier">Readonly</span>
|
|
186
|
+
<a href="#loading$" >loading$</a>
|
|
187
|
+
</li>
|
|
188
|
+
<li>
|
|
189
|
+
<span class="modifier">Public</span>
|
|
190
|
+
<span class="modifier">Optional</span>
|
|
191
|
+
<a href="#method" >method</a>
|
|
192
|
+
</li>
|
|
193
|
+
</ul>
|
|
194
|
+
</td>
|
|
195
|
+
</tr>
|
|
196
|
+
|
|
197
|
+
<tr>
|
|
198
|
+
<td class="col-md-4">
|
|
199
|
+
<h6><b>Methods</b></h6>
|
|
200
|
+
</td>
|
|
201
|
+
</tr>
|
|
202
|
+
<tr>
|
|
203
|
+
<td class="col-md-4">
|
|
204
|
+
<ul class="index-list">
|
|
205
|
+
<li>
|
|
206
|
+
<span class="modifier">Public</span>
|
|
207
|
+
<a href="#refresh" >refresh</a>
|
|
208
|
+
</li>
|
|
209
|
+
<li>
|
|
210
|
+
<span class="modifier">Public</span>
|
|
211
|
+
<a href="#reset" >reset</a>
|
|
212
|
+
</li>
|
|
213
|
+
<li>
|
|
214
|
+
<span class="modifier">Public</span>
|
|
215
|
+
<a href="#retry" >retry</a>
|
|
216
|
+
</li>
|
|
217
|
+
</ul>
|
|
218
|
+
</td>
|
|
219
|
+
</tr>
|
|
220
|
+
|
|
221
|
+
<tr>
|
|
222
|
+
<td class="col-md-4">
|
|
223
|
+
<h6><b>Inputs</b></h6>
|
|
224
|
+
</td>
|
|
225
|
+
</tr>
|
|
226
|
+
<tr>
|
|
227
|
+
<td class="col-md-4">
|
|
228
|
+
<ul class="index-list">
|
|
229
|
+
<li>
|
|
230
|
+
<a href="#dataSource" >dataSource</a>
|
|
231
|
+
</li>
|
|
232
|
+
<li>
|
|
233
|
+
<a href="#id" >id</a>
|
|
234
|
+
</li>
|
|
235
|
+
<li>
|
|
236
|
+
<a href="#paginator" >paginator</a>
|
|
237
|
+
</li>
|
|
238
|
+
<li>
|
|
239
|
+
<a href="#parameters" >parameters</a>
|
|
240
|
+
</li>
|
|
241
|
+
<li>
|
|
242
|
+
<a href="#rxapTableDataSource" class="deprecated-name">rxapTableDataSource</a>
|
|
243
|
+
</li>
|
|
244
|
+
</ul>
|
|
245
|
+
</td>
|
|
246
|
+
</tr>
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
<tr>
|
|
252
|
+
<td class="col-md-4">
|
|
253
|
+
<h6><b>Accessors</b></h6>
|
|
254
|
+
</td>
|
|
255
|
+
</tr>
|
|
256
|
+
<tr>
|
|
257
|
+
<td class="col-md-4">
|
|
258
|
+
<ul class="index-list">
|
|
259
|
+
<li>
|
|
260
|
+
<a href="#setDataSource" >setDataSource</a>
|
|
261
|
+
</li>
|
|
262
|
+
<li>
|
|
263
|
+
<a href="#lastRefreshed" >lastRefreshed</a>
|
|
264
|
+
</li>
|
|
265
|
+
<li>
|
|
266
|
+
<a href="#remoteMethod" >remoteMethod</a>
|
|
267
|
+
</li>
|
|
268
|
+
<li>
|
|
269
|
+
<a href="#sourceRemoteMethod" >sourceRemoteMethod</a>
|
|
270
|
+
</li>
|
|
271
|
+
</ul>
|
|
272
|
+
</td>
|
|
273
|
+
</tr>
|
|
274
|
+
</tbody>
|
|
275
|
+
</table>
|
|
276
|
+
</section>
|
|
277
|
+
|
|
278
|
+
<section data-compodoc="block-constructor">
|
|
279
|
+
<h3 id="constructor">Constructor</h3>
|
|
280
|
+
<table class="table table-sm table-bordered">
|
|
281
|
+
<tbody>
|
|
282
|
+
<tr>
|
|
283
|
+
<td class="col-md-4">
|
|
284
|
+
<code>constructor(matTable: CdkTable<Data>, cdr: ChangeDetectorRef, sourceMethod: Method<[] | any | TableEvent | any> | null, sourceDataSource: AbstractTableDataSource<Data> | null, adapterFactory: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>, matSort: MatSort | null, tableFilter: <a href="../injectables/TableFilterService.html" target="_self">TableFilterService | null</a>, _tableFilter: FilterLike | null)</code>
|
|
285
|
+
</td>
|
|
286
|
+
</tr>
|
|
287
|
+
<tr>
|
|
288
|
+
<td class="col-md-4">
|
|
289
|
+
<div class="io-line">Defined in <a href="" data-line="117" class="link-to-prism">src/lib/table-data-source.directive.ts:117</a></div>
|
|
290
|
+
</td>
|
|
291
|
+
</tr>
|
|
292
|
+
|
|
293
|
+
<tr>
|
|
294
|
+
<td class="col-md-4">
|
|
295
|
+
<div>
|
|
296
|
+
<b>Parameters :</b>
|
|
297
|
+
<table class="params">
|
|
298
|
+
<thead>
|
|
299
|
+
<tr>
|
|
300
|
+
<td>Name</td>
|
|
301
|
+
<td>Type</td>
|
|
302
|
+
<td>Optional</td>
|
|
303
|
+
</tr>
|
|
304
|
+
</thead>
|
|
305
|
+
<tbody>
|
|
306
|
+
<tr>
|
|
307
|
+
<td>matTable</td>
|
|
308
|
+
|
|
309
|
+
<td>
|
|
310
|
+
<code>CdkTable<Data></code>
|
|
311
|
+
</td>
|
|
312
|
+
|
|
313
|
+
<td>
|
|
314
|
+
No
|
|
315
|
+
</td>
|
|
316
|
+
|
|
317
|
+
</tr>
|
|
318
|
+
<tr>
|
|
319
|
+
<td>cdr</td>
|
|
320
|
+
|
|
321
|
+
<td>
|
|
322
|
+
<code>ChangeDetectorRef</code>
|
|
323
|
+
</td>
|
|
324
|
+
|
|
325
|
+
<td>
|
|
326
|
+
No
|
|
327
|
+
</td>
|
|
328
|
+
|
|
329
|
+
</tr>
|
|
330
|
+
<tr>
|
|
331
|
+
<td>sourceMethod</td>
|
|
332
|
+
|
|
333
|
+
<td>
|
|
334
|
+
<code>Method<[] | any | TableEvent | any> | null</code>
|
|
335
|
+
</td>
|
|
336
|
+
|
|
337
|
+
<td>
|
|
338
|
+
No
|
|
339
|
+
</td>
|
|
340
|
+
|
|
341
|
+
</tr>
|
|
342
|
+
<tr>
|
|
343
|
+
<td>sourceDataSource</td>
|
|
344
|
+
|
|
345
|
+
<td>
|
|
346
|
+
<code>AbstractTableDataSource<Data> | null</code>
|
|
347
|
+
</td>
|
|
348
|
+
|
|
349
|
+
<td>
|
|
350
|
+
No
|
|
351
|
+
</td>
|
|
352
|
+
|
|
353
|
+
</tr>
|
|
354
|
+
<tr>
|
|
355
|
+
<td>adapterFactory</td>
|
|
356
|
+
|
|
357
|
+
<td>
|
|
358
|
+
<code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
359
|
+
</td>
|
|
360
|
+
|
|
361
|
+
<td>
|
|
362
|
+
No
|
|
363
|
+
</td>
|
|
364
|
+
|
|
365
|
+
</tr>
|
|
366
|
+
<tr>
|
|
367
|
+
<td>matSort</td>
|
|
368
|
+
|
|
369
|
+
<td>
|
|
370
|
+
<code>MatSort | null</code>
|
|
371
|
+
</td>
|
|
372
|
+
|
|
373
|
+
<td>
|
|
374
|
+
No
|
|
375
|
+
</td>
|
|
376
|
+
|
|
377
|
+
</tr>
|
|
378
|
+
<tr>
|
|
379
|
+
<td>tableFilter</td>
|
|
380
|
+
|
|
381
|
+
<td>
|
|
382
|
+
<code><a href="../injectables/TableFilterService.html" target="_self" >TableFilterService | null</a></code>
|
|
383
|
+
</td>
|
|
384
|
+
|
|
385
|
+
<td>
|
|
386
|
+
No
|
|
387
|
+
</td>
|
|
388
|
+
|
|
389
|
+
</tr>
|
|
390
|
+
<tr>
|
|
391
|
+
<td>_tableFilter</td>
|
|
392
|
+
|
|
393
|
+
<td>
|
|
394
|
+
<code>FilterLike | null</code>
|
|
395
|
+
</td>
|
|
396
|
+
|
|
397
|
+
<td>
|
|
398
|
+
No
|
|
399
|
+
</td>
|
|
400
|
+
|
|
401
|
+
</tr>
|
|
402
|
+
</tbody>
|
|
403
|
+
</table>
|
|
404
|
+
</div>
|
|
405
|
+
</td>
|
|
406
|
+
</tr>
|
|
407
|
+
</tbody>
|
|
408
|
+
</table>
|
|
409
|
+
</section>
|
|
410
|
+
|
|
411
|
+
<section data-compodoc="block-inputs">
|
|
412
|
+
<h3 id="inputs">Inputs</h3>
|
|
413
|
+
<table class="table table-sm table-bordered">
|
|
414
|
+
<tbody>
|
|
415
|
+
<tr>
|
|
416
|
+
<td class="col-md-4">
|
|
417
|
+
<a name="dataSource"></a>
|
|
418
|
+
<b>dataSource</b>
|
|
419
|
+
</td>
|
|
420
|
+
</tr>
|
|
421
|
+
<tr>
|
|
422
|
+
<td class="col-md-4">
|
|
423
|
+
<i>Type : </i> <code>AbstractTableDataSource<Data></code>
|
|
424
|
+
|
|
425
|
+
</td>
|
|
426
|
+
</tr>
|
|
427
|
+
<tr>
|
|
428
|
+
<td class="col-md-2" colspan="2">
|
|
429
|
+
<div class="io-line">Defined in <a href="" data-line="85" class="link-to-prism">src/lib/table-data-source.directive.ts:85</a></div>
|
|
430
|
+
</td>
|
|
431
|
+
</tr>
|
|
432
|
+
</tbody>
|
|
433
|
+
</table>
|
|
434
|
+
<table class="table table-sm table-bordered">
|
|
435
|
+
<tbody>
|
|
436
|
+
<tr>
|
|
437
|
+
<td class="col-md-4">
|
|
438
|
+
<a name="id"></a>
|
|
439
|
+
<b>id</b>
|
|
440
|
+
</td>
|
|
441
|
+
</tr>
|
|
442
|
+
<tr>
|
|
443
|
+
<td class="col-md-4">
|
|
444
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
445
|
+
|
|
446
|
+
</td>
|
|
447
|
+
</tr>
|
|
448
|
+
<tr>
|
|
449
|
+
<td class="col-md-4">
|
|
450
|
+
<i>Required : </i> <b>true</b>
|
|
451
|
+
</td>
|
|
452
|
+
</tr>
|
|
453
|
+
<tr>
|
|
454
|
+
<td class="col-md-2" colspan="2">
|
|
455
|
+
<div class="io-line">Defined in <a href="" data-line="81" class="link-to-prism">src/lib/table-data-source.directive.ts:81</a></div>
|
|
456
|
+
</td>
|
|
457
|
+
</tr>
|
|
458
|
+
</tbody>
|
|
459
|
+
</table>
|
|
460
|
+
<table class="table table-sm table-bordered">
|
|
461
|
+
<tbody>
|
|
462
|
+
<tr>
|
|
463
|
+
<td class="col-md-4">
|
|
464
|
+
<a name="paginator"></a>
|
|
465
|
+
<b>paginator</b>
|
|
466
|
+
</td>
|
|
467
|
+
</tr>
|
|
468
|
+
<tr>
|
|
469
|
+
<td class="col-md-4">
|
|
470
|
+
<i>Type : </i> <code>MatPaginator</code>
|
|
471
|
+
|
|
472
|
+
</td>
|
|
473
|
+
</tr>
|
|
474
|
+
<tr>
|
|
475
|
+
<td class="col-md-2" colspan="2">
|
|
476
|
+
<div class="io-line">Defined in <a href="" data-line="76" class="link-to-prism">src/lib/table-data-source.directive.ts:76</a></div>
|
|
477
|
+
</td>
|
|
478
|
+
</tr>
|
|
479
|
+
</tbody>
|
|
480
|
+
</table>
|
|
481
|
+
<table class="table table-sm table-bordered">
|
|
482
|
+
<tbody>
|
|
483
|
+
<tr>
|
|
484
|
+
<td class="col-md-4">
|
|
485
|
+
<a name="parameters"></a>
|
|
486
|
+
<b>parameters</b>
|
|
487
|
+
</td>
|
|
488
|
+
</tr>
|
|
489
|
+
<tr>
|
|
490
|
+
<td class="col-md-4">
|
|
491
|
+
<i>Type : </i> <code>Observable<Record<string, any>></code>
|
|
492
|
+
|
|
493
|
+
</td>
|
|
494
|
+
</tr>
|
|
495
|
+
<tr>
|
|
496
|
+
<td class="col-md-2" colspan="2">
|
|
497
|
+
<div class="io-line">Defined in <a href="" data-line="83" class="link-to-prism">src/lib/table-data-source.directive.ts:83</a></div>
|
|
498
|
+
</td>
|
|
499
|
+
</tr>
|
|
500
|
+
</tbody>
|
|
501
|
+
</table>
|
|
502
|
+
<table class="table table-sm table-bordered">
|
|
503
|
+
<tbody>
|
|
504
|
+
<tr>
|
|
505
|
+
<td class="col-md-4">
|
|
506
|
+
<a name="rxapTableDataSource"></a>
|
|
507
|
+
<b>rxapTableDataSource</b>
|
|
508
|
+
</td>
|
|
509
|
+
</tr>
|
|
510
|
+
<tr>
|
|
511
|
+
<td class="col-md-4">
|
|
512
|
+
<i>Type : </i> <code>AbstractTableDataSource | string</code>
|
|
513
|
+
|
|
514
|
+
</td>
|
|
515
|
+
</tr>
|
|
516
|
+
<tr>
|
|
517
|
+
<td class="col-md-2" colspan="2">
|
|
518
|
+
<div class="io-line">Defined in <a href="" data-line="69" class="link-to-prism">src/lib/table-data-source.directive.ts:69</a></div>
|
|
519
|
+
</td>
|
|
520
|
+
</tr>
|
|
521
|
+
</tbody>
|
|
522
|
+
</table>
|
|
523
|
+
</section>
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
<section data-compodoc="block-methods">
|
|
528
|
+
|
|
529
|
+
<h3 id="methods">
|
|
530
|
+
Methods
|
|
531
|
+
</h3>
|
|
532
|
+
<table class="table table-sm table-bordered">
|
|
533
|
+
<tbody>
|
|
534
|
+
<tr>
|
|
535
|
+
<td class="col-md-4">
|
|
536
|
+
<a name="refresh"></a>
|
|
537
|
+
<span class="name">
|
|
538
|
+
<span class="modifier">Public</span>
|
|
539
|
+
<span ><b>refresh</b></span>
|
|
540
|
+
<a href="#refresh"><span class="icon ion-ios-link"></span></a>
|
|
541
|
+
</span>
|
|
542
|
+
</td>
|
|
543
|
+
</tr>
|
|
544
|
+
<tr>
|
|
545
|
+
<td class="col-md-4">
|
|
546
|
+
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
547
|
+
<code>refresh()</code>
|
|
548
|
+
</td>
|
|
549
|
+
</tr>
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
<tr>
|
|
553
|
+
<td class="col-md-4">
|
|
554
|
+
<div class="io-line">Defined in <a href="" data-line="235"
|
|
555
|
+
class="link-to-prism">src/lib/table-data-source.directive.ts:235</a></div>
|
|
556
|
+
</td>
|
|
557
|
+
</tr>
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
<tr>
|
|
561
|
+
<td class="col-md-4">
|
|
562
|
+
|
|
563
|
+
<div class="io-description">
|
|
564
|
+
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
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="reset"></a>
|
|
576
|
+
<span class="name">
|
|
577
|
+
<span class="modifier">Public</span>
|
|
578
|
+
<span ><b>reset</b></span>
|
|
579
|
+
<a href="#reset"><span class="icon ion-ios-link"></span></a>
|
|
580
|
+
</span>
|
|
581
|
+
</td>
|
|
582
|
+
</tr>
|
|
583
|
+
<tr>
|
|
584
|
+
<td class="col-md-4">
|
|
585
|
+
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
586
|
+
<code>reset()</code>
|
|
587
|
+
</td>
|
|
588
|
+
</tr>
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
<tr>
|
|
592
|
+
<td class="col-md-4">
|
|
593
|
+
<div class="io-line">Defined in <a href="" data-line="243"
|
|
594
|
+
class="link-to-prism">src/lib/table-data-source.directive.ts:243</a></div>
|
|
595
|
+
</td>
|
|
596
|
+
</tr>
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
<tr>
|
|
600
|
+
<td class="col-md-4">
|
|
601
|
+
|
|
602
|
+
<div class="io-description">
|
|
603
|
+
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
604
|
+
|
|
605
|
+
</div>
|
|
606
|
+
</td>
|
|
607
|
+
</tr>
|
|
608
|
+
</tbody>
|
|
609
|
+
</table>
|
|
610
|
+
<table class="table table-sm table-bordered">
|
|
611
|
+
<tbody>
|
|
612
|
+
<tr>
|
|
613
|
+
<td class="col-md-4">
|
|
614
|
+
<a name="retry"></a>
|
|
615
|
+
<span class="name">
|
|
616
|
+
<span class="modifier">Public</span>
|
|
617
|
+
<span ><b>retry</b></span>
|
|
618
|
+
<a href="#retry"><span class="icon ion-ios-link"></span></a>
|
|
619
|
+
</span>
|
|
620
|
+
</td>
|
|
621
|
+
</tr>
|
|
622
|
+
<tr>
|
|
623
|
+
<td class="col-md-4">
|
|
624
|
+
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
625
|
+
<code>retry()</code>
|
|
626
|
+
</td>
|
|
627
|
+
</tr>
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
<tr>
|
|
631
|
+
<td class="col-md-4">
|
|
632
|
+
<div class="io-line">Defined in <a href="" data-line="239"
|
|
633
|
+
class="link-to-prism">src/lib/table-data-source.directive.ts:239</a></div>
|
|
634
|
+
</td>
|
|
635
|
+
</tr>
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
<tr>
|
|
639
|
+
<td class="col-md-4">
|
|
640
|
+
|
|
641
|
+
<div class="io-description">
|
|
642
|
+
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
643
|
+
|
|
644
|
+
</div>
|
|
645
|
+
</td>
|
|
646
|
+
</tr>
|
|
647
|
+
</tbody>
|
|
648
|
+
</table>
|
|
649
|
+
</section>
|
|
650
|
+
<section data-compodoc="block-properties">
|
|
651
|
+
|
|
652
|
+
<h3 id="inputs">
|
|
653
|
+
Properties
|
|
654
|
+
</h3>
|
|
655
|
+
<table class="table table-sm table-bordered">
|
|
656
|
+
<tbody>
|
|
657
|
+
<tr>
|
|
658
|
+
<td class="col-md-4">
|
|
659
|
+
<a name="_subscription"></a>
|
|
660
|
+
<span class="name">
|
|
661
|
+
<span class="modifier">Protected</span>
|
|
662
|
+
<span ><b>_subscription</b></span>
|
|
663
|
+
<a href="#_subscription"><span class="icon ion-ios-link"></span></a>
|
|
664
|
+
</span>
|
|
665
|
+
</td>
|
|
666
|
+
</tr>
|
|
667
|
+
<tr>
|
|
668
|
+
<td class="col-md-4">
|
|
669
|
+
<i>Default value : </i><code>new Subscription()</code>
|
|
670
|
+
</td>
|
|
671
|
+
</tr>
|
|
672
|
+
<tr>
|
|
673
|
+
<td class="col-md-4">
|
|
674
|
+
<div class="io-line">Defined in <a href="" data-line="114" class="link-to-prism">src/lib/table-data-source.directive.ts:114</a></div>
|
|
675
|
+
</td>
|
|
676
|
+
</tr>
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
</tbody>
|
|
680
|
+
</table>
|
|
681
|
+
<table class="table table-sm table-bordered">
|
|
682
|
+
<tbody>
|
|
683
|
+
<tr>
|
|
684
|
+
<td class="col-md-4">
|
|
685
|
+
<a name="error$"></a>
|
|
686
|
+
<span class="name">
|
|
687
|
+
<span class="modifier">Public</span>
|
|
688
|
+
<span class="modifier">Readonly</span>
|
|
689
|
+
<span ><b>error$</b></span>
|
|
690
|
+
<a href="#error$"><span class="icon ion-ios-link"></span></a>
|
|
691
|
+
</span>
|
|
692
|
+
</td>
|
|
693
|
+
</tr>
|
|
694
|
+
<tr>
|
|
695
|
+
<td class="col-md-4">
|
|
696
|
+
<i>Default value : </i><code>new Subject<unknown>()</code>
|
|
697
|
+
</td>
|
|
698
|
+
</tr>
|
|
699
|
+
<tr>
|
|
700
|
+
<td class="col-md-4">
|
|
701
|
+
<div class="io-line">Defined in <a href="" data-line="91" class="link-to-prism">src/lib/table-data-source.directive.ts:91</a></div>
|
|
702
|
+
</td>
|
|
703
|
+
</tr>
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
</tbody>
|
|
707
|
+
</table>
|
|
708
|
+
<table class="table table-sm table-bordered">
|
|
709
|
+
<tbody>
|
|
710
|
+
<tr>
|
|
711
|
+
<td class="col-md-4">
|
|
712
|
+
<a name="hasError$"></a>
|
|
713
|
+
<span class="name">
|
|
714
|
+
<span class="modifier">Public</span>
|
|
715
|
+
<span class="modifier">Readonly</span>
|
|
716
|
+
<span ><b>hasError$</b></span>
|
|
717
|
+
<a href="#hasError$"><span class="icon ion-ios-link"></span></a>
|
|
718
|
+
</span>
|
|
719
|
+
</td>
|
|
720
|
+
</tr>
|
|
721
|
+
<tr>
|
|
722
|
+
<td class="col-md-4">
|
|
723
|
+
<i>Default value : </i><code>new ToggleSubject()</code>
|
|
724
|
+
</td>
|
|
725
|
+
</tr>
|
|
726
|
+
<tr>
|
|
727
|
+
<td class="col-md-4">
|
|
728
|
+
<div class="io-line">Defined in <a href="" data-line="89" class="link-to-prism">src/lib/table-data-source.directive.ts:89</a></div>
|
|
729
|
+
</td>
|
|
730
|
+
</tr>
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
</tbody>
|
|
734
|
+
</table>
|
|
735
|
+
<table class="table table-sm table-bordered">
|
|
736
|
+
<tbody>
|
|
737
|
+
<tr>
|
|
738
|
+
<td class="col-md-4">
|
|
739
|
+
<a name="loading$"></a>
|
|
740
|
+
<span class="name">
|
|
741
|
+
<span class="modifier">Public</span>
|
|
742
|
+
<span class="modifier">Readonly</span>
|
|
743
|
+
<span ><b>loading$</b></span>
|
|
744
|
+
<a href="#loading$"><span class="icon ion-ios-link"></span></a>
|
|
745
|
+
</span>
|
|
746
|
+
</td>
|
|
747
|
+
</tr>
|
|
748
|
+
<tr>
|
|
749
|
+
<td class="col-md-4">
|
|
750
|
+
<i>Default value : </i><code>new ToggleSubject(true)</code>
|
|
751
|
+
</td>
|
|
752
|
+
</tr>
|
|
753
|
+
<tr>
|
|
754
|
+
<td class="col-md-4">
|
|
755
|
+
<div class="io-line">Defined in <a href="" data-line="78" class="link-to-prism">src/lib/table-data-source.directive.ts:78</a></div>
|
|
756
|
+
</td>
|
|
757
|
+
</tr>
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
</tbody>
|
|
761
|
+
</table>
|
|
762
|
+
<table class="table table-sm table-bordered">
|
|
763
|
+
<tbody>
|
|
764
|
+
<tr>
|
|
765
|
+
<td class="col-md-4">
|
|
766
|
+
<a name="method"></a>
|
|
767
|
+
<span class="name">
|
|
768
|
+
<span class="modifier">Public</span>
|
|
769
|
+
<span class="modifier">Optional</span>
|
|
770
|
+
<span ><b>method</b></span>
|
|
771
|
+
<a href="#method"><span class="icon ion-ios-link"></span></a>
|
|
772
|
+
</span>
|
|
773
|
+
</td>
|
|
774
|
+
</tr>
|
|
775
|
+
<tr>
|
|
776
|
+
<td class="col-md-4">
|
|
777
|
+
<i>Type : </i> <code>Method<Data[] | TableEvent></code>
|
|
778
|
+
|
|
779
|
+
</td>
|
|
780
|
+
</tr>
|
|
781
|
+
<tr>
|
|
782
|
+
<td class="col-md-4">
|
|
783
|
+
<div class="io-line">Defined in <a href="" data-line="87" class="link-to-prism">src/lib/table-data-source.directive.ts:87</a></div>
|
|
784
|
+
</td>
|
|
785
|
+
</tr>
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
</tbody>
|
|
789
|
+
</table>
|
|
790
|
+
</section>
|
|
791
|
+
|
|
792
|
+
<section data-compodoc="block-accessors">
|
|
793
|
+
<h3 id="accessors">
|
|
794
|
+
Accessors
|
|
795
|
+
</h3>
|
|
796
|
+
<table class="table table-sm table-bordered">
|
|
797
|
+
<tbody>
|
|
798
|
+
<tr>
|
|
799
|
+
<td class="col-md-4">
|
|
800
|
+
<a name="setDataSource"></a>
|
|
801
|
+
<span class="name"><b>setDataSource</b><a href="#setDataSource"><span class="icon ion-ios-link"></span></a></span>
|
|
802
|
+
</td>
|
|
803
|
+
</tr>
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
<tr>
|
|
807
|
+
<td class="col-md-4">
|
|
808
|
+
<span class="accessor"><b>set</b><code>setDataSource(dataSource: AbstractTableDataSource<Data> | string)</code></span>
|
|
809
|
+
</td>
|
|
810
|
+
</tr>
|
|
811
|
+
<tr>
|
|
812
|
+
<td class="col-md-4">
|
|
813
|
+
<div class="io-line">Defined in <a href="" data-line="69" class="link-to-prism">src/lib/table-data-source.directive.ts:69</a></div>
|
|
814
|
+
</td>
|
|
815
|
+
</tr>
|
|
816
|
+
<tr>
|
|
817
|
+
<td class="col-md-4">
|
|
818
|
+
|
|
819
|
+
<div class="io-description">
|
|
820
|
+
<b>Parameters :</b>
|
|
821
|
+
<table class="params">
|
|
822
|
+
<thead>
|
|
823
|
+
<tr>
|
|
824
|
+
<td>Name</td>
|
|
825
|
+
<td>Type</td>
|
|
826
|
+
<td>Optional</td>
|
|
827
|
+
</tr>
|
|
828
|
+
</thead>
|
|
829
|
+
<tbody>
|
|
830
|
+
<tr>
|
|
831
|
+
<td>dataSource</td>
|
|
832
|
+
|
|
833
|
+
<td>
|
|
834
|
+
<code>AbstractTableDataSource<Data> | string</code>
|
|
835
|
+
</td>
|
|
836
|
+
|
|
837
|
+
<td>
|
|
838
|
+
No
|
|
839
|
+
</td>
|
|
840
|
+
|
|
841
|
+
</tr>
|
|
842
|
+
</tbody>
|
|
843
|
+
</table>
|
|
844
|
+
</div>
|
|
845
|
+
<div>
|
|
846
|
+
</div>
|
|
847
|
+
<div class="io-description">
|
|
848
|
+
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
849
|
+
|
|
850
|
+
</div>
|
|
851
|
+
</td>
|
|
852
|
+
</tr>
|
|
853
|
+
</tbody>
|
|
854
|
+
</table>
|
|
855
|
+
<table class="table table-sm table-bordered">
|
|
856
|
+
<tbody>
|
|
857
|
+
<tr>
|
|
858
|
+
<td class="col-md-4">
|
|
859
|
+
<a name="lastRefreshed"></a>
|
|
860
|
+
<span class="name"><b>lastRefreshed</b><a href="#lastRefreshed"><span class="icon ion-ios-link"></span></a></span>
|
|
861
|
+
</td>
|
|
862
|
+
</tr>
|
|
863
|
+
|
|
864
|
+
<tr>
|
|
865
|
+
<td class="col-md-4">
|
|
866
|
+
<span class="accessor"><b>get</b><code>lastRefreshed()</code></span>
|
|
867
|
+
</td>
|
|
868
|
+
</tr>
|
|
869
|
+
<tr>
|
|
870
|
+
<td class="col-md-4">
|
|
871
|
+
<div class="io-line">Defined in <a href="" data-line="93" class="link-to-prism">src/lib/table-data-source.directive.ts:93</a></div>
|
|
872
|
+
</td>
|
|
873
|
+
</tr>
|
|
874
|
+
|
|
875
|
+
</tbody>
|
|
876
|
+
</table>
|
|
877
|
+
<table class="table table-sm table-bordered">
|
|
878
|
+
<tbody>
|
|
879
|
+
<tr>
|
|
880
|
+
<td class="col-md-4">
|
|
881
|
+
<a name="remoteMethod"></a>
|
|
882
|
+
<span class="name"><b>remoteMethod</b><a href="#remoteMethod"><span class="icon ion-ios-link"></span></a></span>
|
|
883
|
+
</td>
|
|
884
|
+
</tr>
|
|
885
|
+
|
|
886
|
+
<tr>
|
|
887
|
+
<td class="col-md-4">
|
|
888
|
+
<span class="accessor"><b>get</b><code>remoteMethod()</code></span>
|
|
889
|
+
</td>
|
|
890
|
+
</tr>
|
|
891
|
+
<tr>
|
|
892
|
+
<td class="col-md-4">
|
|
893
|
+
<div class="io-line">Defined in <a href="" data-line="100" class="link-to-prism">src/lib/table-data-source.directive.ts:100</a></div>
|
|
894
|
+
</td>
|
|
895
|
+
</tr>
|
|
896
|
+
<tr>
|
|
897
|
+
<td class="col-md-4">
|
|
898
|
+
|
|
899
|
+
<div>
|
|
900
|
+
</div>
|
|
901
|
+
<div class="io-description">
|
|
902
|
+
<b>Returns : </b> <code>Method | undefined</code>
|
|
903
|
+
|
|
904
|
+
</div>
|
|
905
|
+
</td>
|
|
906
|
+
</tr>
|
|
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="sourceRemoteMethod"></a>
|
|
915
|
+
<span class="name"><b>sourceRemoteMethod</b><a href="#sourceRemoteMethod"><span class="icon ion-ios-link"></span></a></span>
|
|
916
|
+
</td>
|
|
917
|
+
</tr>
|
|
918
|
+
|
|
919
|
+
<tr>
|
|
920
|
+
<td class="col-md-4">
|
|
921
|
+
<span class="accessor"><b>get</b><code>sourceRemoteMethod()</code></span>
|
|
922
|
+
</td>
|
|
923
|
+
</tr>
|
|
924
|
+
<tr>
|
|
925
|
+
<td class="col-md-4">
|
|
926
|
+
<div class="io-line">Defined in <a href="" data-line="107" class="link-to-prism">src/lib/table-data-source.directive.ts:107</a></div>
|
|
927
|
+
</td>
|
|
928
|
+
</tr>
|
|
929
|
+
<tr>
|
|
930
|
+
<td class="col-md-4">
|
|
931
|
+
|
|
932
|
+
<div>
|
|
933
|
+
</div>
|
|
934
|
+
<div class="io-description">
|
|
935
|
+
<b>Returns : </b> <code>Method | null</code>
|
|
936
|
+
|
|
937
|
+
</div>
|
|
938
|
+
</td>
|
|
939
|
+
</tr>
|
|
940
|
+
|
|
941
|
+
</tbody>
|
|
942
|
+
</table>
|
|
943
|
+
</section>
|
|
944
|
+
|
|
945
|
+
</div>
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
<div class="tab-pane fade tab-source-code" id="source">
|
|
949
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { CdkTable } from '@angular/cdk/table';
|
|
950
|
+
import {
|
|
951
|
+
ChangeDetectorRef,
|
|
952
|
+
Directive,
|
|
953
|
+
Inject,
|
|
954
|
+
InjectionToken,
|
|
955
|
+
Input,
|
|
956
|
+
isDevMode,
|
|
957
|
+
OnDestroy,
|
|
958
|
+
OnInit,
|
|
959
|
+
Optional,
|
|
960
|
+
} from '@angular/core';
|
|
961
|
+
import type { MatPaginator } from '@angular/material/paginator';
|
|
962
|
+
import { MatSort } from '@angular/material/sort';
|
|
963
|
+
import { pipeDataSource } from '@rxap/data-source';
|
|
964
|
+
import { PaginatorLike } from '@rxap/data-source/pagination';
|
|
965
|
+
import {
|
|
966
|
+
AbstractTableDataSource,
|
|
967
|
+
DynamicTableDataSource,
|
|
968
|
+
FilterLike,
|
|
969
|
+
RXAP_TABLE_METHOD,
|
|
970
|
+
SortLike,
|
|
971
|
+
TableEvent,
|
|
972
|
+
} from '@rxap/data-source/table';
|
|
973
|
+
import { Method } from '@rxap/pattern';
|
|
974
|
+
import { ToggleSubject } from '@rxap/rxjs';
|
|
975
|
+
import {
|
|
976
|
+
Observable,
|
|
977
|
+
Subject,
|
|
978
|
+
Subscription,
|
|
979
|
+
} from 'rxjs';
|
|
980
|
+
import { tap } from 'rxjs/operators';
|
|
981
|
+
import { TableFilterService } from './table-filter/table-filter.service';
|
|
982
|
+
|
|
983
|
+
export { RXAP_TABLE_METHOD } from '@rxap/data-source/table';
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* @deprecated use TABLE_METHOD instead
|
|
987
|
+
*/
|
|
988
|
+
export const TABLE_REMOTE_METHOD = RXAP_TABLE_METHOD;
|
|
989
|
+
export const TABLE_REMOTE_METHOD_ADAPTER_FACTORY = new InjectionToken(
|
|
990
|
+
'table-remote-method-adapter-factory',
|
|
991
|
+
);
|
|
992
|
+
export const RXAP_TABLE_FILTER = new InjectionToken('rxap/material-table-system/table-filter');
|
|
993
|
+
export const TABLE_DATA_SOURCE = new InjectionToken('table-data-source');
|
|
994
|
+
|
|
995
|
+
export type TableRemoteMethodAdapterFactory<
|
|
996
|
+
Data extends Record<string, any> = Record<string, any>
|
|
997
|
+
> = (
|
|
998
|
+
method: Method,
|
|
999
|
+
paginator?: PaginatorLike,
|
|
1000
|
+
sort?: SortLike | null,
|
|
1001
|
+
filter?: FilterLike | null,
|
|
1002
|
+
parameters?: Observable<Record<string, any>>,
|
|
1003
|
+
) => Method<Data[], TableEvent>;
|
|
1004
|
+
|
|
1005
|
+
@Directive({
|
|
1006
|
+
selector: 'table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]',
|
|
1007
|
+
exportAs: 'rxapTableDataSource',
|
|
1008
|
+
standalone: true,
|
|
1009
|
+
})
|
|
1010
|
+
export class TableDataSourceDirective<Data extends Record<string, any> = any>
|
|
1011
|
+
implements OnInit, OnDestroy {
|
|
1012
|
+
/**
|
|
1013
|
+
* @deprecated use dataSource instead
|
|
1014
|
+
*/
|
|
1015
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
1016
|
+
@Input('rxapTableDataSource')
|
|
1017
|
+
public set setDataSource(dataSource: AbstractTableDataSource<Data> | '') {
|
|
1018
|
+
if (typeof dataSource !== 'string') {
|
|
1019
|
+
this.dataSource = dataSource;
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
@Input()
|
|
1024
|
+
public paginator?: MatPaginator;
|
|
1025
|
+
|
|
1026
|
+
public readonly loading$ = new ToggleSubject(true);
|
|
1027
|
+
|
|
1028
|
+
@Input({ required: true })
|
|
1029
|
+
public id!: string;
|
|
1030
|
+
@Input()
|
|
1031
|
+
public parameters?: Observable<Record<string, any>>;
|
|
1032
|
+
@Input()
|
|
1033
|
+
public dataSource?: AbstractTableDataSource<Data>;
|
|
1034
|
+
|
|
1035
|
+
public method?: Method<Data[], TableEvent>;
|
|
1036
|
+
|
|
1037
|
+
public readonly hasError$ = new ToggleSubject();
|
|
1038
|
+
|
|
1039
|
+
public readonly error$ = new Subject<unknown>();
|
|
1040
|
+
|
|
1041
|
+
public get lastRefreshed(): Date | null {
|
|
1042
|
+
return this.dataSource?.lastRefreshed ?? null;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* @deprecated use method instead
|
|
1047
|
+
*/
|
|
1048
|
+
public get remoteMethod(): Method<Data[], TableEvent> | undefined {
|
|
1049
|
+
return this.method;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* @deprecated use sourceMethod instead
|
|
1054
|
+
*/
|
|
1055
|
+
public get sourceRemoteMethod(): Method<
|
|
1056
|
+
Data[] | any,
|
|
1057
|
+
TableEvent | any
|
|
1058
|
+
> | null {
|
|
1059
|
+
return this.sourceMethod;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
protected _subscription = new Subscription();
|
|
1063
|
+
|
|
1064
|
+
private readonly adapterFactory: TableRemoteMethodAdapterFactory<Data> | null =
|
|
1065
|
+
null;
|
|
1066
|
+
|
|
1067
|
+
constructor(
|
|
1068
|
+
@Inject(CdkTable)
|
|
1069
|
+
private readonly matTable: CdkTable<Data>,
|
|
1070
|
+
protected readonly cdr: ChangeDetectorRef,
|
|
1071
|
+
@Optional()
|
|
1072
|
+
@Inject(RXAP_TABLE_METHOD)
|
|
1073
|
+
private readonly sourceMethod: Method<Data[] | any,
|
|
1074
|
+
TableEvent | any> | null,
|
|
1075
|
+
@Optional()
|
|
1076
|
+
@Inject(TABLE_DATA_SOURCE)
|
|
1077
|
+
private readonly sourceDataSource: AbstractTableDataSource<Data> | null,
|
|
1078
|
+
@Optional()
|
|
1079
|
+
@Inject(TABLE_REMOTE_METHOD_ADAPTER_FACTORY)
|
|
1080
|
+
adapterFactory: any,
|
|
1081
|
+
@Optional()
|
|
1082
|
+
@Inject(MatSort)
|
|
1083
|
+
private readonly matSort: MatSort | null,
|
|
1084
|
+
@Optional()
|
|
1085
|
+
@Inject(TableFilterService)
|
|
1086
|
+
private readonly tableFilter: TableFilterService | null,
|
|
1087
|
+
@Optional()
|
|
1088
|
+
@Inject(RXAP_TABLE_FILTER)
|
|
1089
|
+
private readonly _tableFilter: FilterLike | null,
|
|
1090
|
+
) {
|
|
1091
|
+
this.matTable.trackBy = this.trackBy;
|
|
1092
|
+
this.adapterFactory = adapterFactory;
|
|
1093
|
+
this.retry = this.retry.bind(this);
|
|
1094
|
+
this.refresh = this.refresh.bind(this);
|
|
1095
|
+
this.reset = this.reset.bind(this);
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
private trackBy(index: number, item: Data): string | number {
|
|
1099
|
+
return item['uuid'] ?? index;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
public ngOnInit() {
|
|
1103
|
+
const tableFilter = this._tableFilter ?? this.tableFilter ?? undefined;
|
|
1104
|
+
if (!this.dataSource) {
|
|
1105
|
+
if (this.sourceDataSource) {
|
|
1106
|
+
this.dataSource = this.sourceDataSource;
|
|
1107
|
+
} else if (this.sourceMethod) {
|
|
1108
|
+
if (this.adapterFactory) {
|
|
1109
|
+
this.method = this.adapterFactory(
|
|
1110
|
+
this.sourceMethod,
|
|
1111
|
+
this.paginator,
|
|
1112
|
+
this.matSort,
|
|
1113
|
+
tableFilter,
|
|
1114
|
+
this.parameters,
|
|
1115
|
+
);
|
|
1116
|
+
} else {
|
|
1117
|
+
this.method = this.sourceMethod;
|
|
1118
|
+
}
|
|
1119
|
+
this.dataSource = new DynamicTableDataSource<Data>(
|
|
1120
|
+
this.method,
|
|
1121
|
+
this.paginator,
|
|
1122
|
+
this.matSort,
|
|
1123
|
+
tableFilter,
|
|
1124
|
+
this.parameters,
|
|
1125
|
+
this.method.metadata ?? { id: this.id },
|
|
1126
|
+
);
|
|
1127
|
+
}
|
|
1128
|
+
if (!this.dataSource) {
|
|
1129
|
+
throw new Error(
|
|
1130
|
+
'The TABLE_DATA_SOURCE and RXAP_TABLE_METHOD token are not defined!',
|
|
1131
|
+
);
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
this.dataSource.paginator = this.paginator;
|
|
1135
|
+
this.dataSource.sort = this.matSort ?? undefined;
|
|
1136
|
+
this.dataSource.filter = tableFilter;
|
|
1137
|
+
this.dataSource.parameters = this.parameters;
|
|
1138
|
+
if (this.dataSource instanceof DynamicTableDataSource) {
|
|
1139
|
+
this.dataSource.setPaginator(this.paginator, this.id);
|
|
1140
|
+
this.dataSource.setSort(this.matSort, this.id);
|
|
1141
|
+
this.dataSource.setFilter(tableFilter, this.id);
|
|
1142
|
+
this.dataSource.setParameters(this.parameters, this.id);
|
|
1143
|
+
}
|
|
1144
|
+
this._subscription.add(
|
|
1145
|
+
this.dataSource.loading$.pipe(
|
|
1146
|
+
tap(loading => this.loading$.next(!!loading)),
|
|
1147
|
+
).subscribe(),
|
|
1148
|
+
);
|
|
1149
|
+
this._subscription.add(
|
|
1150
|
+
this.dataSource.hasError$.pipe(
|
|
1151
|
+
tap(hasError => this.hasError$.next(!!hasError)),
|
|
1152
|
+
).subscribe(),
|
|
1153
|
+
);
|
|
1154
|
+
this._subscription.add(
|
|
1155
|
+
this.dataSource.error$.pipe(
|
|
1156
|
+
tap(error => this.error$.next(error)),
|
|
1157
|
+
).subscribe(),
|
|
1158
|
+
);
|
|
1159
|
+
// create the id property for the mat table component.
|
|
1160
|
+
// the instance of the mat table component is used as viewer object
|
|
1161
|
+
// with the set of the id property it is possible to use the same data source
|
|
1162
|
+
// instance for multiple table component simultaneously
|
|
1163
|
+
// on connect the data source can then use the correct paginator/matSort/tableFilter/parameters instance
|
|
1164
|
+
// to create the TableEvent objects
|
|
1165
|
+
Reflect.set(this.matTable, 'id', this.id);
|
|
1166
|
+
this.matTable.dataSource = pipeDataSource(this.dataSource, tap(rowList => {
|
|
1167
|
+
if (rowList.some((element: any) => !element.__metadata__)) {
|
|
1168
|
+
if (isDevMode()) {
|
|
1169
|
+
console.debug('Ensure to use the NormalizeTableRow function to normalize the table row!');
|
|
1170
|
+
}
|
|
1171
|
+
rowList.forEach((element: any) => {
|
|
1172
|
+
element.__metadata__ ??= {};
|
|
1173
|
+
element.__metadata__.loading$ ??= new ToggleSubject();
|
|
1174
|
+
});
|
|
1175
|
+
}
|
|
1176
|
+
}));
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
public ngOnDestroy() {
|
|
1180
|
+
this._subscription?.unsubscribe();
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
public refresh() {
|
|
1184
|
+
this.dataSource?.refresh();
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
public retry() {
|
|
1188
|
+
this.dataSource?.retry();
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
public reset() {
|
|
1192
|
+
if (this.tableFilter) {
|
|
1193
|
+
this.tableFilter.reset();
|
|
1194
|
+
} else {
|
|
1195
|
+
this.dataSource?.reset();
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
</code></pre>
|
|
1203
|
+
</div>
|
|
1204
|
+
|
|
1205
|
+
</div>
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
</div><div class="search-results">
|
|
1221
|
+
<div class="has-results">
|
|
1222
|
+
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
|
1223
|
+
<ul class="search-results-list"></ul>
|
|
1224
|
+
</div>
|
|
1225
|
+
<div class="no-results">
|
|
1226
|
+
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
|
1227
|
+
</div>
|
|
1228
|
+
</div>
|
|
1229
|
+
</div>
|
|
1230
|
+
<!-- END CONTENT -->
|
|
1231
|
+
</div>
|
|
1232
|
+
</div>
|
|
1233
|
+
|
|
1234
|
+
<label class="dark-mode-switch">
|
|
1235
|
+
<input type="checkbox">
|
|
1236
|
+
<span class="slider">
|
|
1237
|
+
<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">
|
|
1238
|
+
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
|
|
1239
|
+
</svg>
|
|
1240
|
+
</span>
|
|
1241
|
+
</label>
|
|
1242
|
+
|
|
1243
|
+
<script>
|
|
1244
|
+
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
|
|
1245
|
+
var COMPODOC_CURRENT_PAGE_CONTEXT = 'directive';
|
|
1246
|
+
var COMPODOC_CURRENT_PAGE_URL = 'TableDataSourceDirective.html';
|
|
1247
|
+
var MAX_SEARCH_RESULTS = 15;
|
|
1248
|
+
</script>
|
|
1249
|
+
|
|
1250
|
+
<script>
|
|
1251
|
+
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
1252
|
+
checkToggle(darkModeState);
|
|
1253
|
+
if ($darkModeToggleSwitchers.length > 0) {
|
|
1254
|
+
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
1255
|
+
$darkModeToggleSwitchers[i].addEventListener('change', function (event) {
|
|
1256
|
+
darkModeState = !darkModeState;
|
|
1257
|
+
toggleDarkMode(darkModeState);
|
|
1258
|
+
});
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
</script>
|
|
1262
|
+
|
|
1263
|
+
<script src="../js/libs/custom-elements.min.js"></script>
|
|
1264
|
+
<script src="../js/libs/lit-html.js"></script>
|
|
1265
|
+
|
|
1266
|
+
<script src="../js/menu-wc.js" defer></script>
|
|
1267
|
+
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
1268
|
+
|
|
1269
|
+
<script src="../js/libs/bootstrap-native.js"></script>
|
|
1270
|
+
|
|
1271
|
+
<script src="../js/libs/es6-shim.min.js"></script>
|
|
1272
|
+
<script src="../js/libs/EventDispatcher.js"></script>
|
|
1273
|
+
<script src="../js/libs/promise.min.js"></script>
|
|
1274
|
+
<script src="../js/libs/zepto.min.js"></script>
|
|
1275
|
+
|
|
1276
|
+
<script src="../js/compodoc.js"></script>
|
|
1277
|
+
|
|
1278
|
+
<script src="../js/tabs.js"></script>
|
|
1279
|
+
<script src="../js/menu.js"></script>
|
|
1280
|
+
<script src="../js/libs/clipboard.min.js"></script>
|
|
1281
|
+
<script src="../js/libs/prism.js"></script>
|
|
1282
|
+
<script src="../js/sourceCode.js"></script>
|
|
1283
|
+
<script src="../js/search/search.js"></script>
|
|
1284
|
+
<script src="../js/search/lunr.min.js"></script>
|
|
1285
|
+
<script src="../js/search/search-lunr.js"></script>
|
|
1286
|
+
<script src="../js/search/search_index.js"></script>
|
|
1287
|
+
<script src="../js/lazy-load-graphs.js"></script>
|
|
1288
|
+
|
|
1289
|
+
|
|
1290
|
+
</body>
|
|
1291
|
+
</html>
|