@rxap/material-table-system 18.0.2 → 18.0.3-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +1 -1
  3. package/compodoc/changelog.html +965 -0
  4. package/compodoc/classes/SelectionModel.html +1401 -0
  5. package/compodoc/components/BooleanCellComponent.html +428 -0
  6. package/compodoc/components/CheckboxCellComponent.html +535 -0
  7. package/compodoc/components/CheckboxHeaderCellComponent.html +705 -0
  8. package/compodoc/components/CopyToClipboardCellComponent.html +421 -0
  9. package/compodoc/components/DateCellComponent.html +453 -0
  10. package/compodoc/components/ExpandControlsCellComponent.html +545 -0
  11. package/compodoc/components/ExpandRowContainerComponent.html +703 -0
  12. package/compodoc/components/IconCellComponent.html +415 -0
  13. package/compodoc/components/ImageCellComponent.html +573 -0
  14. package/compodoc/components/LinkCellComponent.html +550 -0
  15. package/compodoc/components/OptionsCellComponent.html +780 -0
  16. package/compodoc/components/TableColumnMenuComponent.html +1123 -0
  17. package/compodoc/components/TableColumnOptionComponent.html +1034 -0
  18. package/compodoc/components/TableSelectControlsComponent.html +613 -0
  19. package/compodoc/components/TableShowArchivedSlideComponent.html +629 -0
  20. package/compodoc/components/TreeControlCellComponent.html +642 -0
  21. package/compodoc/dependencies.html +227 -0
  22. package/compodoc/directives/ExpandRowContentDirective.html +508 -0
  23. package/compodoc/directives/ExpandRowDirective.html +563 -0
  24. package/compodoc/directives/FilterHeaderRowDirective.html +550 -0
  25. package/compodoc/directives/PersistentPaginatorDirective.html +562 -0
  26. package/compodoc/directives/SelectedRowsDirective.html +397 -0
  27. package/compodoc/directives/TableColumnFilterInputDirective.html +428 -0
  28. package/compodoc/directives/TableCreateButtonDirective.html +560 -0
  29. package/compodoc/directives/TableDataSourceDirective.html +1291 -0
  30. package/compodoc/directives/TableHeaderButtonDirective.html +1224 -0
  31. package/compodoc/directives/TableRowActionDirective.html +886 -0
  32. package/compodoc/directives/TableRowActionExecutingDirective.html +498 -0
  33. package/compodoc/directives/TableRowHeaderActionDirective.html +1135 -0
  34. package/compodoc/fonts/ionicons.eot +0 -0
  35. package/compodoc/fonts/ionicons.svg +2090 -0
  36. package/compodoc/fonts/ionicons.ttf +0 -0
  37. package/compodoc/fonts/ionicons.woff +0 -0
  38. package/compodoc/fonts/ionicons.woff2 +0 -0
  39. package/compodoc/fonts/roboto-v15-latin-300.eot +0 -0
  40. package/compodoc/fonts/roboto-v15-latin-300.svg +314 -0
  41. package/compodoc/fonts/roboto-v15-latin-300.ttf +0 -0
  42. package/compodoc/fonts/roboto-v15-latin-300.woff +0 -0
  43. package/compodoc/fonts/roboto-v15-latin-300.woff2 +0 -0
  44. package/compodoc/fonts/roboto-v15-latin-700.eot +0 -0
  45. package/compodoc/fonts/roboto-v15-latin-700.svg +310 -0
  46. package/compodoc/fonts/roboto-v15-latin-700.ttf +0 -0
  47. package/compodoc/fonts/roboto-v15-latin-700.woff +0 -0
  48. package/compodoc/fonts/roboto-v15-latin-700.woff2 +0 -0
  49. package/compodoc/fonts/roboto-v15-latin-italic.eot +0 -0
  50. package/compodoc/fonts/roboto-v15-latin-italic.svg +323 -0
  51. package/compodoc/fonts/roboto-v15-latin-italic.ttf +0 -0
  52. package/compodoc/fonts/roboto-v15-latin-italic.woff +0 -0
  53. package/compodoc/fonts/roboto-v15-latin-italic.woff2 +0 -0
  54. package/compodoc/fonts/roboto-v15-latin-regular.eot +0 -0
  55. package/compodoc/fonts/roboto-v15-latin-regular.svg +308 -0
  56. package/compodoc/fonts/roboto-v15-latin-regular.ttf +0 -0
  57. package/compodoc/fonts/roboto-v15-latin-regular.woff +0 -0
  58. package/compodoc/fonts/roboto-v15-latin-regular.woff2 +0 -0
  59. package/compodoc/graph/dependencies.svg +442 -0
  60. package/compodoc/images/compodoc-vectorise-inverted.png +0 -0
  61. package/compodoc/images/compodoc-vectorise-inverted.svg +201 -0
  62. package/compodoc/images/compodoc-vectorise.png +0 -0
  63. package/compodoc/images/compodoc-vectorise.svg +201 -0
  64. package/compodoc/images/favicon.ico +0 -0
  65. package/compodoc/index.html +190 -0
  66. package/compodoc/injectables/AbstractTableRowAction.html +1223 -0
  67. package/compodoc/injectables/ExpandRowService.html +541 -0
  68. package/compodoc/injectables/SelectRowService.html +501 -0
  69. package/compodoc/injectables/TableColumnFilterService.html +449 -0
  70. package/compodoc/injectables/TableFilterService.html +732 -0
  71. package/compodoc/interfaces/ExpandCellContentDirectiveContext.html +309 -0
  72. package/compodoc/interfaces/SelectRowOptions.html +427 -0
  73. package/compodoc/interfaces/SelectedRowsDirectiveContext.html +338 -0
  74. package/compodoc/interfaces/SelectionChange.html +640 -0
  75. package/compodoc/interfaces/TableActionMethodOptions.html +776 -0
  76. package/compodoc/interfaces/TableHeaderButtonMethodOptions.html +548 -0
  77. package/compodoc/interfaces/TableRowMetadata.html +378 -0
  78. package/compodoc/js/compodoc.js +14 -0
  79. package/compodoc/js/lazy-load-graphs.js +44 -0
  80. package/compodoc/js/libs/EventDispatcher.js +5 -0
  81. package/compodoc/js/libs/bootstrap-native.js +2 -0
  82. package/compodoc/js/libs/clipboard.min.js +7 -0
  83. package/compodoc/js/libs/custom-elements-es5-adapter.js +15 -0
  84. package/compodoc/js/libs/custom-elements.min.js +38 -0
  85. package/compodoc/js/libs/d3.v3.min.js +2 -0
  86. package/compodoc/js/libs/deep-iterator.js +2 -0
  87. package/compodoc/js/libs/es6-shim.min.js +12 -0
  88. package/compodoc/js/libs/htmlparser.js +23 -0
  89. package/compodoc/js/libs/innersvg.js +9 -0
  90. package/compodoc/js/libs/lit-html.js +1 -0
  91. package/compodoc/js/libs/prism.js +46 -0
  92. package/compodoc/js/libs/promise.min.js +6 -0
  93. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -0
  94. package/compodoc/js/libs/tablesort.min.js +6 -0
  95. package/compodoc/js/libs/tablesort.number.min.js +6 -0
  96. package/compodoc/js/libs/vis.min.js +47 -0
  97. package/compodoc/js/libs/zepto.min.js +2 -0
  98. package/compodoc/js/menu-wc.js +408 -0
  99. package/compodoc/js/menu-wc_es5.js +40 -0
  100. package/compodoc/js/menu.js +270 -0
  101. package/compodoc/js/routes.js +301 -0
  102. package/compodoc/js/search/lunr.min.js +6 -0
  103. package/compodoc/js/search/search-lunr.js +67 -0
  104. package/compodoc/js/search/search.js +283 -0
  105. package/compodoc/js/search/search_index.js +4 -0
  106. package/compodoc/js/sourceCode.js +58 -0
  107. package/compodoc/js/svg-pan-zoom.controls.js +53 -0
  108. package/compodoc/js/tabs.js +21 -0
  109. package/compodoc/js/tree.js +147 -0
  110. package/compodoc/license.html +731 -0
  111. package/compodoc/miscellaneous/enumerations.html +307 -0
  112. package/compodoc/miscellaneous/functions.html +1193 -0
  113. package/compodoc/miscellaneous/typealiases.html +334 -0
  114. package/compodoc/miscellaneous/variables.html +676 -0
  115. package/compodoc/modules/ExpandRowModule/dependencies.svg +82 -0
  116. package/compodoc/modules/ExpandRowModule.html +364 -0
  117. package/compodoc/modules/SelectRowModule/dependencies.svg +114 -0
  118. package/compodoc/modules/SelectRowModule.html +401 -0
  119. package/compodoc/modules/TableColumnMenuModule/dependencies.svg +114 -0
  120. package/compodoc/modules/TableColumnMenuModule.html +400 -0
  121. package/compodoc/modules/TableFilterModule/dependencies.svg +90 -0
  122. package/compodoc/modules/TableFilterModule.html +369 -0
  123. package/compodoc/modules/TableRowActionsModule/dependencies.svg +138 -0
  124. package/compodoc/modules/TableRowActionsModule.html +446 -0
  125. package/compodoc/modules.html +268 -0
  126. package/compodoc/overview.html +697 -0
  127. package/compodoc/pipes/RowActionCheckPipe.html +379 -0
  128. package/compodoc/pipes/ToFilterColumnNamesPipe.html +325 -0
  129. package/compodoc/properties.html +195 -0
  130. package/compodoc/styles/bootstrap-card.css +219 -0
  131. package/compodoc/styles/bootstrap.min.css +6 -0
  132. package/compodoc/styles/compodoc.css +1124 -0
  133. package/compodoc/styles/dark.css +121 -0
  134. package/compodoc/styles/ionicons.min.css +11 -0
  135. package/compodoc/styles/laravel.css +113 -0
  136. package/compodoc/styles/material.css +131 -0
  137. package/compodoc/styles/original.css +51 -0
  138. package/compodoc/styles/postmark.css +238 -0
  139. package/compodoc/styles/prism.css +301 -0
  140. package/compodoc/styles/readthedocs.css +117 -0
  141. package/compodoc/styles/reset.css +129 -0
  142. package/compodoc/styles/stripe.css +106 -0
  143. package/compodoc/styles/style.css +7 -0
  144. package/compodoc/styles/tablesort.css +33 -0
  145. package/compodoc/styles/vagrant.css +130 -0
  146. package/docs/.nojekyll +1 -0
  147. package/docs/assets/highlight.css +57 -0
  148. package/docs/assets/icons.js +15 -0
  149. package/docs/assets/icons.svg +1 -0
  150. package/docs/assets/main.js +59 -0
  151. package/docs/assets/navigation.js +1 -0
  152. package/docs/assets/search.js +1 -0
  153. package/docs/assets/style.css +1412 -0
  154. package/docs/classes/AbstractTableRowAction.html +58 -0
  155. package/docs/classes/BooleanCellComponent.html +3 -0
  156. package/docs/classes/CheckboxCellComponent.html +4 -0
  157. package/docs/classes/CheckboxHeaderCellComponent.html +9 -0
  158. package/docs/classes/CopyToClipboardCellComponent.html +3 -0
  159. package/docs/classes/DateCellComponent.html +4 -0
  160. package/docs/classes/ExpandControlsCellComponent.html +4 -0
  161. package/docs/classes/ExpandRowContainerComponent.html +10 -0
  162. package/docs/classes/ExpandRowContentDirective.html +4 -0
  163. package/docs/classes/ExpandRowDirective.html +6 -0
  164. package/docs/classes/ExpandRowModule.html +2 -0
  165. package/docs/classes/ExpandRowService.html +6 -0
  166. package/docs/classes/FilterHeaderRowDirective.html +188 -0
  167. package/docs/classes/IconCellComponent.html +3 -0
  168. package/docs/classes/ImageCellComponent.html +7 -0
  169. package/docs/classes/LinkCellComponent.html +6 -0
  170. package/docs/classes/OptionsCellComponent.html +15 -0
  171. package/docs/classes/PersistentPaginatorDirective.html +10 -0
  172. package/docs/classes/RowActionCheckPipe.html +4 -0
  173. package/docs/classes/SelectRowModule.html +2 -0
  174. package/docs/classes/SelectRowService.html +6 -0
  175. package/docs/classes/SelectedRowsDirective.html +9 -0
  176. package/docs/classes/SelectionModel.html +67 -0
  177. package/docs/classes/TableColumnFilterInputDirective.html +8 -0
  178. package/docs/classes/TableColumnFilterService.html +5 -0
  179. package/docs/classes/TableColumnMenuComponent.html +14 -0
  180. package/docs/classes/TableColumnMenuModule.html +2 -0
  181. package/docs/classes/TableColumnOptionComponent.html +18 -0
  182. package/docs/classes/TableCreateButtonDirective.html +10 -0
  183. package/docs/classes/TableDataSourceDirective.html +32 -0
  184. package/docs/classes/TableFilterModule.html +2 -0
  185. package/docs/classes/TableFilterService.html +15 -0
  186. package/docs/classes/TableHeaderButtonDirective.html +42 -0
  187. package/docs/classes/TableRowActionDirective.html +44 -0
  188. package/docs/classes/TableRowActionExecutingDirective.html +6 -0
  189. package/docs/classes/TableRowActionsModule.html +2 -0
  190. package/docs/classes/TableRowHeaderActionDirective.html +45 -0
  191. package/docs/classes/TableSelectControlsComponent.html +7 -0
  192. package/docs/classes/TableShowArchivedSlideComponent.html +8 -0
  193. package/docs/classes/ToFilterColumnNamesPipe.html +3 -0
  194. package/docs/classes/TreeControlCellComponent.html +10 -0
  195. package/docs/documentation.json +34032 -0
  196. package/docs/enums/TableHeaderButtonActionStatus.html +5 -0
  197. package/docs/enums/TableRowActionStatus.html +5 -0
  198. package/docs/functions/GetTableHeaderButtonMetadata.html +1 -0
  199. package/docs/functions/GetTableRowActionCheckFunction.html +1 -0
  200. package/docs/functions/GetTableRowActionMetadata.html +1 -0
  201. package/docs/functions/HasTableRowActionCheckFunction.html +1 -0
  202. package/docs/functions/HasTableRowActionMetadata.html +1 -0
  203. package/docs/functions/IsTableRowActionTypeMethod.html +1 -0
  204. package/docs/functions/IsTableRowActionTypeSwitchMethod.html +1 -0
  205. package/docs/functions/NormalizeTableRow.html +5 -0
  206. package/docs/functions/TableActionMethod.html +1 -0
  207. package/docs/functions/TableHeaderButtonMethod.html +1 -0
  208. package/docs/functions/getMultipleValuesInSingleSelectionError.html +4 -0
  209. package/docs/hierarchy.html +1 -0
  210. package/docs/index.html +16 -0
  211. package/docs/interfaces/ExpandCellContentDirectiveContext.html +2 -0
  212. package/docs/interfaces/SelectRowOptions.html +5 -0
  213. package/docs/interfaces/SelectedRowsDirectiveContext.html +2 -0
  214. package/docs/interfaces/SelectionChange.html +9 -0
  215. package/docs/interfaces/TableActionMethodOptions.html +19 -0
  216. package/docs/interfaces/TableHeaderButtonMethodOptions.html +11 -0
  217. package/docs/interfaces/TableRowMetadata.html +5 -0
  218. package/docs/modules.html +84 -0
  219. package/docs/types/RawTableRow.html +1 -0
  220. package/docs/types/RowActionCheckFunction.html +1 -0
  221. package/docs/types/RowIdMapperFunction.html +1 -0
  222. package/docs/types/TableRemoteMethodAdapterFactory.html +1 -0
  223. package/docs/types/TableRowActionMethod.html +1 -0
  224. package/docs/types/TableRowActionTypeMethod.html +1 -0
  225. package/docs/types/TableRowActionTypeSwitchMethod.html +1 -0
  226. package/docs/variables/RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS.html +1 -0
  227. package/docs/variables/RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA.html +2 -0
  228. package/docs/variables/RXAP_TABLE_ACTION_METHOD_METADATA.html +1 -0
  229. package/docs/variables/RXAP_TABLE_ACTION_METHOD_TYPE_METADATA.html +2 -0
  230. package/docs/variables/RXAP_TABLE_FILTER.html +1 -0
  231. package/docs/variables/RXAP_TABLE_FILTER_FORM_DEFINITION.html +1 -0
  232. package/docs/variables/RXAP_TABLE_HEADER_BUTTON_METHOD_METADATA.html +1 -0
  233. package/docs/variables/RXAP_TABLE_METHOD.html +1 -0
  234. package/docs/variables/RXAP_TABLE_ROW_ACTION_METHOD.html +1 -0
  235. package/docs/variables/RowAnimation.html +1 -0
  236. package/docs/variables/TABLE_CREATE_REMOTE_METHOD.html +1 -0
  237. package/docs/variables/TABLE_DATA_SOURCE.html +1 -0
  238. package/docs/variables/TABLE_HEADER_BUTTON_METHOD.html +1 -0
  239. package/docs/variables/TABLE_REMOTE_METHOD.html +2 -0
  240. package/docs/variables/TABLE_REMOTE_METHOD_ADAPTER_FACTORY.html +1 -0
  241. package/package.json +29 -29
@@ -0,0 +1,640 @@
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 interface">
83
+ <div class="content-data">
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <ol class="breadcrumb">
98
+ <li class="breadcrumb-item">Interfaces</li>
99
+ <li class="breadcrumb-item"
100
+ >
101
+ SelectionChange</li>
102
+ </ol>
103
+
104
+ <ul class="nav nav-tabs" role="tablist">
105
+ <li class="nav-item">
106
+ <a href="#info"
107
+ class="nav-link"
108
+ class="nav-link active"
109
+ role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
110
+ </li>
111
+ <li class="nav-item">
112
+ <a href="#source"
113
+ class="nav-link"
114
+
115
+ role="tab" id="source-tab" data-bs-toggle="tab" data-link="source">Source</a>
116
+ </li>
117
+ </ul>
118
+
119
+ <div class="tab-content">
120
+ <div class="tab-pane fade active in" id="info">
121
+ <p class="comment">
122
+ <h3>File</h3>
123
+ </p>
124
+ <p class="comment">
125
+ <code>src/lib/select-row/selection-model.ts</code>
126
+ </p>
127
+
128
+
129
+ <p class="comment">
130
+ <h3>Description</h3>
131
+ </p>
132
+ <p class="comment">
133
+ <p>Event emitted when the value of a MatSelectionModel has changed.</p>
134
+
135
+ </p>
136
+
137
+
138
+ <section data-compodoc="block-index">
139
+ <h3 id="index">Index</h3>
140
+ <table class="table table-sm table-bordered index-table">
141
+ <tbody>
142
+ <tr>
143
+ <td class="col-md-4">
144
+ <h6><b>Properties</b></h6>
145
+ </td>
146
+ </tr>
147
+ <tr>
148
+ <td class="col-md-4">
149
+ <ul class="index-list">
150
+ <li>
151
+ <a href="#added"
152
+ >
153
+ added
154
+ </a>
155
+ </li>
156
+ <li>
157
+ <a href="#removed"
158
+ >
159
+ removed
160
+ </a>
161
+ </li>
162
+ <li>
163
+ <a href="#source"
164
+ >
165
+ source
166
+ </a>
167
+ </li>
168
+ </ul>
169
+ </td>
170
+ </tr>
171
+ </tbody>
172
+ </table>
173
+ </section>
174
+
175
+
176
+
177
+ <section data-compodoc="block-properties">
178
+ <h3 id="inputs">Properties</h3>
179
+ <table class="table table-sm table-bordered">
180
+ <tbody>
181
+ <tr>
182
+ <td class="col-md-4">
183
+ <a name="added"></a>
184
+ <span class="name "><b>added</b>
185
+ <a href="#added">
186
+ <span class="icon ion-ios-link"></span>
187
+ </a>
188
+ </span>
189
+ </td>
190
+ </tr>
191
+ <tr>
192
+ <td class="col-md-4">
193
+ <code>added: <code>T[]</code>
194
+ </code>
195
+ </td>
196
+ </tr>
197
+
198
+
199
+ <tr>
200
+ <td class="col-md-4">
201
+ <i>Type : </i> <code>T[]</code>
202
+
203
+ </td>
204
+ </tr>
205
+
206
+
207
+
208
+
209
+
210
+ <tr>
211
+ <td class="col-md-4">
212
+ <div class="io-description"><p>Options that were added to the model.</p>
213
+ </div>
214
+ </td>
215
+ </tr>
216
+ </tbody>
217
+ </table>
218
+ <table class="table table-sm table-bordered">
219
+ <tbody>
220
+ <tr>
221
+ <td class="col-md-4">
222
+ <a name="removed"></a>
223
+ <span class="name "><b>removed</b>
224
+ <a href="#removed">
225
+ <span class="icon ion-ios-link"></span>
226
+ </a>
227
+ </span>
228
+ </td>
229
+ </tr>
230
+ <tr>
231
+ <td class="col-md-4">
232
+ <code>removed: <code>T[]</code>
233
+ </code>
234
+ </td>
235
+ </tr>
236
+
237
+
238
+ <tr>
239
+ <td class="col-md-4">
240
+ <i>Type : </i> <code>T[]</code>
241
+
242
+ </td>
243
+ </tr>
244
+
245
+
246
+
247
+
248
+
249
+ <tr>
250
+ <td class="col-md-4">
251
+ <div class="io-description"><p>Options that were removed from the model.</p>
252
+ </div>
253
+ </td>
254
+ </tr>
255
+ </tbody>
256
+ </table>
257
+ <table class="table table-sm table-bordered">
258
+ <tbody>
259
+ <tr>
260
+ <td class="col-md-4">
261
+ <a name="source"></a>
262
+ <span class="name "><b>source</b>
263
+ <a href="#source">
264
+ <span class="icon ion-ios-link"></span>
265
+ </a>
266
+ </span>
267
+ </td>
268
+ </tr>
269
+ <tr>
270
+ <td class="col-md-4">
271
+ <code>source: <code><a href="../classes/SelectionModel.html" target="_self" >SelectionModel&lt;T&gt;</a></code>
272
+ </code>
273
+ </td>
274
+ </tr>
275
+
276
+
277
+ <tr>
278
+ <td class="col-md-4">
279
+ <i>Type : </i> <code><a href="../classes/SelectionModel.html" target="_self" >SelectionModel&lt;T&gt;</a></code>
280
+
281
+ </td>
282
+ </tr>
283
+
284
+
285
+
286
+
287
+
288
+ <tr>
289
+ <td class="col-md-4">
290
+ <div class="io-description"><p>Model that dispatched the event.</p>
291
+ </div>
292
+ </td>
293
+ </tr>
294
+ </tbody>
295
+ </table>
296
+ </section>
297
+ </div>
298
+
299
+
300
+ <div class="tab-pane fade tab-source-code" id="source">
301
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Subject } from &#x27;rxjs&#x27;;
302
+
303
+ declare const ngDevMode: object | null;
304
+
305
+ /**
306
+ * Class to be used to power selecting one or more options from a list.
307
+ */
308
+ export class SelectionModel&lt;T&gt; {
309
+ /** Currently-selected values. */
310
+ private _selection &#x3D; new Set&lt;T&gt;();
311
+
312
+ /** Keeps track of the deselected options that haven&#x27;t been emitted by the change event. */
313
+ private _deselectedToEmit: T[] &#x3D; [];
314
+
315
+ /** Keeps track of the selected options that haven&#x27;t been emitted by the change event. */
316
+ private _selectedToEmit: T[] &#x3D; [];
317
+
318
+ /** Cache for the array value of the selected items. */
319
+ private _selected: T[] | null &#x3D; null;
320
+
321
+ /** Selected values. */
322
+ get selected(): T[] {
323
+ if (!this._selected) {
324
+ this._selected &#x3D; Array.from(this._selection.values());
325
+ }
326
+
327
+ return this._selected;
328
+ }
329
+
330
+ /** Event emitted when the value has changed. */
331
+ readonly changed &#x3D; new Subject&lt;SelectionChange&lt;T&gt;&gt;();
332
+
333
+ constructor(
334
+ private _multiple &#x3D; false,
335
+ initiallySelectedValues?: T[],
336
+ private _emitChanges &#x3D; true,
337
+ public compareWith?: (o1: T, o2: T) &#x3D;&gt; boolean,
338
+ ) {
339
+ if (initiallySelectedValues &amp;&amp; initiallySelectedValues.length) {
340
+ if (_multiple) {
341
+ initiallySelectedValues.forEach(value &#x3D;&gt; this._markSelected(value));
342
+ } else {
343
+ this._markSelected(initiallySelectedValues[0]);
344
+ }
345
+
346
+ // Clear the array in order to avoid firing the change event for preselected values.
347
+ this._selectedToEmit.length &#x3D; 0;
348
+ }
349
+ }
350
+
351
+ /**
352
+ * Selects a value or an array of values.
353
+ * @param values The values to select
354
+ * @return Whether the selection changed as a result of this call
355
+ * @breaking-change 16.0.0 make return type boolean
356
+ */
357
+ select(...values: T[]): boolean | void {
358
+ this._verifyValueAssignment(values);
359
+ values.forEach(value &#x3D;&gt; this._markSelected(value));
360
+ const changed &#x3D; this._hasQueuedChanges();
361
+ this._emitChangeEvent();
362
+ return changed;
363
+ }
364
+
365
+ /**
366
+ * Deselects a value or an array of values.
367
+ * @param values The values to deselect
368
+ * @return Whether the selection changed as a result of this call
369
+ * @breaking-change 16.0.0 make return type boolean
370
+ */
371
+ deselect(...values: T[]): boolean | void {
372
+ this._verifyValueAssignment(values);
373
+ values.forEach(value &#x3D;&gt; this._unmarkSelected(value));
374
+ const changed &#x3D; this._hasQueuedChanges();
375
+ this._emitChangeEvent();
376
+ return changed;
377
+ }
378
+
379
+ /**
380
+ * Sets the selected values
381
+ * @param values The new selected values
382
+ * @return Whether the selection changed as a result of this call
383
+ * @breaking-change 16.0.0 make return type boolean
384
+ */
385
+ setSelection(...values: T[]): boolean | void {
386
+ this._verifyValueAssignment(values);
387
+ const oldValues &#x3D; this.selected;
388
+ const newSelectedSet &#x3D; new Set(values);
389
+ values.forEach(value &#x3D;&gt; this._markSelected(value));
390
+ oldValues
391
+ .filter(value &#x3D;&gt; !newSelectedSet.has(value))
392
+ .forEach(value &#x3D;&gt; this._unmarkSelected(value));
393
+ const changed &#x3D; this._hasQueuedChanges();
394
+ this._emitChangeEvent();
395
+ return changed;
396
+ }
397
+
398
+ /**
399
+ * Toggles a value between selected and deselected.
400
+ * @param value The value to toggle
401
+ * @return Whether the selection changed as a result of this call
402
+ * @breaking-change 16.0.0 make return type boolean
403
+ */
404
+ toggle(value: T): boolean | void {
405
+ return this.isSelected(value) ? this.deselect(value) : this.select(value);
406
+ }
407
+
408
+ /**
409
+ * Clears all of the selected values.
410
+ * @param flushEvent Whether to flush the changes in an event.
411
+ * If false, the changes to the selection will be flushed along with the next event.
412
+ * @return Whether the selection changed as a result of this call
413
+ * @breaking-change 16.0.0 make return type boolean
414
+ */
415
+ clear(flushEvent &#x3D; true): boolean | void {
416
+ this._unmarkAll();
417
+ const changed &#x3D; this._hasQueuedChanges();
418
+ if (flushEvent) {
419
+ this._emitChangeEvent();
420
+ }
421
+ return changed;
422
+ }
423
+
424
+ /**
425
+ * Determines whether a value is selected.
426
+ */
427
+ isSelected(value: T): boolean {
428
+ if (this.compareWith) {
429
+ for (const otherValue of this._selection) {
430
+ if (this.compareWith(otherValue, value)) {
431
+ return true;
432
+ }
433
+ }
434
+ return false;
435
+ }
436
+ return this._selection.has(value);
437
+ }
438
+
439
+ /**
440
+ * Determines whether the model does not have a value.
441
+ */
442
+ isEmpty(): boolean {
443
+ return this._selection.size &#x3D;&#x3D;&#x3D; 0;
444
+ }
445
+
446
+ /**
447
+ * Determines whether the model has a value.
448
+ */
449
+ hasValue(): boolean {
450
+ return !this.isEmpty();
451
+ }
452
+
453
+ /**
454
+ * Sorts the selected values based on a predicate function.
455
+ */
456
+ sort(predicate?: (a: T, b: T) &#x3D;&gt; number): void {
457
+ if (this._multiple &amp;&amp; this.selected) {
458
+ this._selected!.sort(predicate);
459
+ }
460
+ }
461
+
462
+ /**
463
+ * Gets whether multiple values can be selected.
464
+ */
465
+ isMultipleSelection() {
466
+ return this._multiple;
467
+ }
468
+
469
+ /** Emits a change event and clears the records of selected and deselected values. */
470
+ private _emitChangeEvent() {
471
+ // Clear the selected values so they can be re-cached.
472
+ this._selected &#x3D; null;
473
+
474
+ if (this._selectedToEmit.length || this._deselectedToEmit.length) {
475
+ this.changed.next({
476
+ source: this,
477
+ added: this._selectedToEmit,
478
+ removed: this._deselectedToEmit,
479
+ });
480
+
481
+ this._deselectedToEmit &#x3D; [];
482
+ this._selectedToEmit &#x3D; [];
483
+ }
484
+ }
485
+
486
+ /** Selects a value. */
487
+ private _markSelected(value: T) {
488
+ if (!this.isSelected(value)) {
489
+ if (!this._multiple) {
490
+ this._unmarkAll();
491
+ }
492
+
493
+ if (!this.isSelected(value)) {
494
+ this._selection.add(value);
495
+ }
496
+
497
+ if (this._emitChanges) {
498
+ this._selectedToEmit.push(value);
499
+ }
500
+ }
501
+ }
502
+
503
+ /** Deselects a value. */
504
+ private _unmarkSelected(value: T) {
505
+ if (this.isSelected(value)) {
506
+ this._selection.delete(value);
507
+
508
+ if (this._emitChanges) {
509
+ this._deselectedToEmit.push(value);
510
+ }
511
+ }
512
+ }
513
+
514
+ /** Clears out the selected values. */
515
+ private _unmarkAll() {
516
+ if (!this.isEmpty()) {
517
+ this._selection.forEach(value &#x3D;&gt; this._unmarkSelected(value));
518
+ }
519
+ }
520
+
521
+ /**
522
+ * Verifies the value assignment and throws an error if the specified value array is
523
+ * including multiple values while the selection model is not supporting multiple values.
524
+ */
525
+ private _verifyValueAssignment(values: T[]) {
526
+ if (values.length &gt; 1 &amp;&amp; !this._multiple &amp;&amp; (typeof ngDevMode &#x3D;&#x3D;&#x3D; &#x27;undefined&#x27; || ngDevMode)) {
527
+ throw getMultipleValuesInSingleSelectionError();
528
+ }
529
+ }
530
+
531
+ /** Whether there are queued up change to be emitted. */
532
+ private _hasQueuedChanges() {
533
+ return !!(this._deselectedToEmit.length || this._selectedToEmit.length);
534
+ }
535
+ }
536
+
537
+ /**
538
+ * Event emitted when the value of a MatSelectionModel has changed.
539
+ * @docs-private
540
+ */
541
+ export interface SelectionChange&lt;T&gt; {
542
+ /** Model that dispatched the event. */
543
+ source: SelectionModel&lt;T&gt;;
544
+ /** Options that were added to the model. */
545
+ added: T[];
546
+ /** Options that were removed from the model. */
547
+ removed: T[];
548
+ }
549
+
550
+ /**
551
+ * Returns an error that reports that multiple values are passed into a selection model
552
+ * with a single value.
553
+ * @docs-private
554
+ */
555
+ export function getMultipleValuesInSingleSelectionError() {
556
+ return Error(&#x27;Cannot pass multiple values into SelectionModel with single-value mode.&#x27;);
557
+ }
558
+ </code></pre>
559
+ </div>
560
+ </div>
561
+
562
+
563
+
564
+
565
+
566
+
567
+
568
+
569
+ </div><div class="search-results">
570
+ <div class="has-results">
571
+ <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
572
+ <ul class="search-results-list"></ul>
573
+ </div>
574
+ <div class="no-results">
575
+ <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
576
+ </div>
577
+ </div>
578
+ </div>
579
+ <!-- END CONTENT -->
580
+ </div>
581
+ </div>
582
+
583
+ <label class="dark-mode-switch">
584
+ <input type="checkbox">
585
+ <span class="slider">
586
+ <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">
587
+ <path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
588
+ </svg>
589
+ </span>
590
+ </label>
591
+
592
+ <script>
593
+ var COMPODOC_CURRENT_PAGE_DEPTH = 1;
594
+ var COMPODOC_CURRENT_PAGE_CONTEXT = 'interface';
595
+ var COMPODOC_CURRENT_PAGE_URL = 'SelectionChange.html';
596
+ var MAX_SEARCH_RESULTS = 15;
597
+ </script>
598
+
599
+ <script>
600
+ $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
601
+ checkToggle(darkModeState);
602
+ if ($darkModeToggleSwitchers.length > 0) {
603
+ for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
604
+ $darkModeToggleSwitchers[i].addEventListener('change', function (event) {
605
+ darkModeState = !darkModeState;
606
+ toggleDarkMode(darkModeState);
607
+ });
608
+ }
609
+ }
610
+ </script>
611
+
612
+ <script src="../js/libs/custom-elements.min.js"></script>
613
+ <script src="../js/libs/lit-html.js"></script>
614
+
615
+ <script src="../js/menu-wc.js" defer></script>
616
+ <script nomodule src="../js/menu-wc_es5.js" defer></script>
617
+
618
+ <script src="../js/libs/bootstrap-native.js"></script>
619
+
620
+ <script src="../js/libs/es6-shim.min.js"></script>
621
+ <script src="../js/libs/EventDispatcher.js"></script>
622
+ <script src="../js/libs/promise.min.js"></script>
623
+ <script src="../js/libs/zepto.min.js"></script>
624
+
625
+ <script src="../js/compodoc.js"></script>
626
+
627
+ <script src="../js/tabs.js"></script>
628
+ <script src="../js/menu.js"></script>
629
+ <script src="../js/libs/clipboard.min.js"></script>
630
+ <script src="../js/libs/prism.js"></script>
631
+ <script src="../js/sourceCode.js"></script>
632
+ <script src="../js/search/search.js"></script>
633
+ <script src="../js/search/lunr.min.js"></script>
634
+ <script src="../js/search/search-lunr.js"></script>
635
+ <script src="../js/search/search_index.js"></script>
636
+ <script src="../js/lazy-load-graphs.js"></script>
637
+
638
+
639
+ </body>
640
+ </html>