carbon-components-angular 3.16.3 → 3.17.3

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 (322) hide show
  1. package/docs/documentation/classes/DataGridInteractionModel.html +1462 -0
  2. package/docs/documentation/classes/NumberChange.html +8 -7
  3. package/docs/documentation/classes/TableAdapter.html +852 -0
  4. package/docs/documentation/classes/TableCellAdapter.html +445 -0
  5. package/docs/documentation/classes/TableDomAdapter.html +968 -0
  6. package/docs/documentation/classes/TableHeaderItem.html +125 -64
  7. package/docs/documentation/classes/TableItem.html +5 -18
  8. package/docs/documentation/classes/TableModel.html +445 -180
  9. package/docs/documentation/classes/TableRowAdapter.html +445 -0
  10. package/docs/documentation/components/Accordion.html +2 -2
  11. package/docs/documentation/components/AccordionItem.html +2 -2
  12. package/docs/documentation/components/AlertModal.html +2 -2
  13. package/docs/documentation/components/Breadcrumb.html +2 -2
  14. package/docs/documentation/components/BreadcrumbItemComponent.html +2 -2
  15. package/docs/documentation/components/Checkbox.html +2 -2
  16. package/docs/documentation/components/ClickableTile.html +2 -2
  17. package/docs/documentation/components/CodeSnippet.html +2 -2
  18. package/docs/documentation/components/ComboBox.html +2 -2
  19. package/docs/documentation/components/ContentSwitcher.html +2 -2
  20. package/docs/documentation/components/DatePicker.html +2 -2
  21. package/docs/documentation/components/DatePickerInput.html +2 -2
  22. package/docs/documentation/components/Dialog.html +2 -2
  23. package/docs/documentation/components/DialogPlaceholder.html +2 -2
  24. package/docs/documentation/components/Documentation.html +2 -2
  25. package/docs/documentation/components/Dropdown.html +12 -7
  26. package/docs/documentation/components/DropdownList.html +2 -2
  27. package/docs/documentation/components/ExpandableTile.html +2 -2
  28. package/docs/documentation/components/File.html +51 -8
  29. package/docs/documentation/components/FileUploader.html +41 -29
  30. package/docs/documentation/components/Hamburger.html +2 -2
  31. package/docs/documentation/components/Header.html +430 -13
  32. package/docs/documentation/components/HeaderAction.html +8 -10
  33. package/docs/documentation/components/HeaderGlobal.html +2 -2
  34. package/docs/documentation/components/HeaderItem.html +2 -2
  35. package/docs/documentation/components/HeaderMenu.html +2 -2
  36. package/docs/documentation/components/HeaderNavigation.html +2 -2
  37. package/docs/documentation/components/InlineLoading.html +2 -2
  38. package/docs/documentation/components/Label.html +2 -2
  39. package/docs/documentation/components/ListColumn.html +2 -2
  40. package/docs/documentation/components/ListHeader.html +2 -2
  41. package/docs/documentation/components/ListRow.html +2 -2
  42. package/docs/documentation/components/Loading.html +2 -2
  43. package/docs/documentation/components/Modal.html +2 -2
  44. package/docs/documentation/components/ModalFooter.html +2 -2
  45. package/docs/documentation/components/ModalHeader.html +2 -2
  46. package/docs/documentation/components/ModalPlaceholder.html +2 -2
  47. package/docs/documentation/components/Notification.html +39 -7
  48. package/docs/documentation/components/{Number.html → NumberComponent.html} +14 -13
  49. package/docs/documentation/components/OverflowMenu.html +2 -2
  50. package/docs/documentation/components/OverflowMenuOption.html +2 -2
  51. package/docs/documentation/components/OverflowMenuPane.html +2 -2
  52. package/docs/documentation/components/Overlay.html +2 -2
  53. package/docs/documentation/components/Pagination.html +2 -2
  54. package/docs/documentation/components/Panel.html +2 -2
  55. package/docs/documentation/components/Placeholder.html +2 -2
  56. package/docs/documentation/components/ProductSwitcher.html +2 -2
  57. package/docs/documentation/components/ProgressIndicator.html +2 -2
  58. package/docs/documentation/components/Radio.html +2 -2
  59. package/docs/documentation/components/RadioGroup.html +2 -2
  60. package/docs/documentation/components/Sample.html +2 -2
  61. package/docs/documentation/components/SampleSub.html +2 -2
  62. package/docs/documentation/components/Search.html +2 -2
  63. package/docs/documentation/components/Select.html +2 -2
  64. package/docs/documentation/components/SelectionTile.html +2 -2
  65. package/docs/documentation/components/SideNav.html +2 -2
  66. package/docs/documentation/components/SideNavHeader.html +2 -2
  67. package/docs/documentation/components/SideNavItem.html +2 -2
  68. package/docs/documentation/components/SideNavMenu.html +2 -2
  69. package/docs/documentation/components/Slider.html +2 -2
  70. package/docs/documentation/components/StructuredList.html +2 -2
  71. package/docs/documentation/components/SwitcherList.html +2 -2
  72. package/docs/documentation/components/SwitcherListItem.html +2 -2
  73. package/docs/documentation/components/Tab.html +2 -2
  74. package/docs/documentation/components/TabHeaders.html +34 -32
  75. package/docs/documentation/components/Table.html +1039 -1121
  76. package/docs/documentation/components/TableBody.html +1145 -0
  77. package/docs/documentation/components/TableCheckbox.html +828 -0
  78. package/docs/documentation/components/TableContainer.html +2 -2
  79. package/docs/documentation/components/TableData.html +307 -0
  80. package/docs/documentation/components/TableExpandButton.html +762 -0
  81. package/docs/documentation/components/TableExpandedRow.html +567 -0
  82. package/docs/documentation/components/TableHead.html +1549 -0
  83. package/docs/documentation/components/TableHeadCell.html +1307 -0
  84. package/docs/documentation/components/TableHeadCheckbox.html +792 -0
  85. package/docs/documentation/components/TableHeadExpand.html +292 -0
  86. package/docs/documentation/components/TableHeader.html +2 -2
  87. package/docs/documentation/components/TableRowComponent.html +1414 -0
  88. package/docs/documentation/components/TableToolbar.html +2 -2
  89. package/docs/documentation/components/TableToolbarActions.html +2 -2
  90. package/docs/documentation/components/TableToolbarContent.html +2 -2
  91. package/docs/documentation/components/TableToolbarSearch.html +2 -2
  92. package/docs/documentation/components/Tabs.html +2 -2
  93. package/docs/documentation/components/Tag.html +2 -2
  94. package/docs/documentation/components/TagFilter.html +2 -2
  95. package/docs/documentation/components/Tile.html +2 -2
  96. package/docs/documentation/components/TileGroup.html +2 -2
  97. package/docs/documentation/components/TimePicker.html +2 -2
  98. package/docs/documentation/components/TimePickerSelect.html +2 -2
  99. package/docs/documentation/components/Toast.html +79 -9
  100. package/docs/documentation/components/Toggle.html +2 -2
  101. package/docs/documentation/components/Tooltip.html +2 -2
  102. package/docs/documentation/components/TooltipDefinition.html +2 -2
  103. package/docs/documentation/components/TooltipIcon.html +2 -2
  104. package/docs/documentation/coverage.html +297 -25
  105. package/docs/documentation/directives/DataGridFocus.html +38 -117
  106. package/docs/documentation/directives/TableDirective.html +452 -0
  107. package/docs/documentation/graph/dependencies.dot +2 -4
  108. package/docs/documentation/images/coverage-badge-documentation.svg +1 -1
  109. package/docs/documentation/interfaces/DataGridPosition.html +490 -0
  110. package/docs/documentation/interfaces/FileItem.html +66 -0
  111. package/docs/documentation/interfaces/NotificationContent.html +39 -0
  112. package/docs/documentation/interfaces/TableTranslations.html +254 -455
  113. package/docs/documentation/interfaces/ToastContent.html +1 -0
  114. package/docs/documentation/js/menu-wc.js +1 -1
  115. package/docs/documentation/js/search/search_index.js +2 -2
  116. package/docs/documentation/modules/FileUploaderModule.html +3 -1
  117. package/docs/documentation/modules/NumberModule/dependencies.svg +30 -56
  118. package/docs/documentation/modules/NumberModule.html +32 -58
  119. package/docs/documentation/modules/TableModule/dependencies.svg +424 -160
  120. package/docs/documentation/modules/TableModule.html +575 -182
  121. package/docs/documentation/overview.html +4 -4
  122. package/docs/storybook/iframe.html +3 -3
  123. package/docs/storybook/{main.9e8069cf2ee0957ae098.bundle.js → main.edce6b8dbd74b486e13b.bundle.js} +4631 -2440
  124. package/docs/storybook/main.edce6b8dbd74b486e13b.bundle.js.map +1 -0
  125. package/docs/storybook/{runtime~main.9e8069cf2ee0957ae098.bundle.js → runtime~main.edce6b8dbd74b486e13b.bundle.js} +1 -1
  126. package/docs/storybook/{runtime~main.9e8069cf2ee0957ae098.bundle.js.map → runtime~main.edce6b8dbd74b486e13b.bundle.js.map} +1 -1
  127. package/docs/storybook/{vendors~main.9e8069cf2ee0957ae098.bundle.js → vendors~main.edce6b8dbd74b486e13b.bundle.js} +1 -1
  128. package/docs/storybook/{vendors~main.9e8069cf2ee0957ae098.bundle.js.map → vendors~main.edce6b8dbd74b486e13b.bundle.js.map} +1 -1
  129. package/dropdown/dropdown.component.js +4 -0
  130. package/dropdown/dropdown.component.js.map +1 -1
  131. package/file-uploader/file-item.interface.d.ts +2 -0
  132. package/file-uploader/file-item.interface.js.map +1 -1
  133. package/file-uploader/file-uploader.component.js +3 -1
  134. package/file-uploader/file-uploader.component.js.map +1 -1
  135. package/file-uploader/file-uploader.component.metadata.json +1 -1
  136. package/file-uploader/file-uploader.component.ngfactory.js +9 -8
  137. package/file-uploader/file-uploader.component.ngfactory.js.map +1 -1
  138. package/file-uploader/file-uploader.module.js +3 -1
  139. package/file-uploader/file-uploader.module.js.map +1 -1
  140. package/file-uploader/file-uploader.module.metadata.json +1 -1
  141. package/file-uploader/file-uploader.module.ngfactory.js +2 -1
  142. package/file-uploader/file-uploader.module.ngfactory.js.map +1 -1
  143. package/file-uploader/file-uploader.module.ngsummary.json +1 -1
  144. package/file-uploader/file.component.d.ts +1 -0
  145. package/file-uploader/file.component.js +10 -2
  146. package/file-uploader/file.component.js.map +1 -1
  147. package/file-uploader/file.component.metadata.json +1 -1
  148. package/file-uploader/file.component.ngfactory.js +19 -16
  149. package/file-uploader/file.component.ngfactory.js.map +1 -1
  150. package/file-uploader/file.component.ngsummary.json +1 -1
  151. package/index.ngsummary.json +1 -1
  152. package/notification/notification-content.interface.d.ts +1 -0
  153. package/notification/notification-content.interface.js.map +1 -1
  154. package/notification/notification.component.d.ts +1 -0
  155. package/notification/notification.component.js +7 -1
  156. package/notification/notification.component.js.map +1 -1
  157. package/notification/notification.component.metadata.json +1 -1
  158. package/notification/notification.component.ngfactory.js +1 -1
  159. package/notification/notification.component.ngsummary.json +1 -1
  160. package/notification/toast.component.d.ts +1 -0
  161. package/notification/toast.component.js +7 -1
  162. package/notification/toast.component.js.map +1 -1
  163. package/notification/toast.component.metadata.json +1 -1
  164. package/notification/toast.component.ngfactory.js +1 -1
  165. package/notification/toast.component.ngsummary.json +1 -1
  166. package/number-input/number.component.d.ts +3 -2
  167. package/number-input/number.component.js +21 -20
  168. package/number-input/number.component.js.map +1 -1
  169. package/package.json +1 -1
  170. package/table/body/table-body.component.d.ts +77 -0
  171. package/table/body/table-body.component.js +120 -0
  172. package/table/body/table-body.component.js.map +1 -0
  173. package/table/body/table-body.component.metadata.json +1 -0
  174. package/{utils/window-tools.d.ts → table/body/table-body.component.ngfactory.d.ts} +2 -2
  175. package/table/body/table-body.component.ngfactory.js +62 -0
  176. package/table/body/table-body.component.ngfactory.js.map +1 -0
  177. package/table/body/table-body.component.ngsummary.json +1 -0
  178. package/table/body/table-expanded-row.component.d.ts +28 -0
  179. package/table/body/table-expanded-row.component.js +58 -0
  180. package/table/body/table-expanded-row.component.js.map +1 -0
  181. package/table/body/table-expanded-row.component.metadata.json +1 -0
  182. package/table/body/table-expanded-row.component.ngfactory.d.ts +21 -0
  183. package/table/body/table-expanded-row.component.ngfactory.js +39 -0
  184. package/table/body/table-expanded-row.component.ngfactory.js.map +1 -0
  185. package/table/body/table-expanded-row.component.ngsummary.json +1 -0
  186. package/table/body/table-row.component.d.ts +85 -0
  187. package/table/body/table-row.component.js +163 -0
  188. package/table/body/table-row.component.js.map +1 -0
  189. package/table/body/table-row.component.metadata.json +1 -0
  190. package/table/body/table-row.component.ngfactory.d.ts +21 -0
  191. package/table/body/table-row.component.ngfactory.js +55 -0
  192. package/table/body/table-row.component.ngfactory.js.map +1 -0
  193. package/table/body/table-row.component.ngsummary.json +1 -0
  194. package/table/cell/table-checkbox.component.d.ts +56 -0
  195. package/table/cell/table-checkbox.component.js +80 -0
  196. package/table/cell/table-checkbox.component.js.map +1 -0
  197. package/table/cell/table-checkbox.component.metadata.json +1 -0
  198. package/table/cell/table-checkbox.component.ngfactory.d.ts +21 -0
  199. package/table/cell/table-checkbox.component.ngfactory.js +46 -0
  200. package/table/cell/table-checkbox.component.ngfactory.js.map +1 -0
  201. package/table/cell/table-checkbox.component.ngsummary.json +1 -0
  202. package/table/cell/table-data.component.d.ts +24 -0
  203. package/table/cell/table-data.component.js +40 -0
  204. package/table/cell/table-data.component.js.map +1 -0
  205. package/table/cell/table-data.component.metadata.json +1 -0
  206. package/table/cell/table-data.component.ngfactory.d.ts +21 -0
  207. package/table/cell/table-data.component.ngfactory.js +39 -0
  208. package/table/cell/table-data.component.ngfactory.js.map +1 -0
  209. package/table/cell/table-data.component.ngsummary.json +1 -0
  210. package/table/cell/table-expand-button.component.d.ts +43 -0
  211. package/table/cell/table-expand-button.component.js +83 -0
  212. package/table/cell/table-expand-button.component.js.map +1 -0
  213. package/table/cell/table-expand-button.component.metadata.json +1 -0
  214. package/table/cell/table-expand-button.component.ngfactory.d.ts +21 -0
  215. package/table/cell/table-expand-button.component.ngfactory.js +44 -0
  216. package/table/cell/table-expand-button.component.ngfactory.js.map +1 -0
  217. package/table/cell/table-expand-button.component.ngsummary.json +1 -0
  218. package/table/data-grid-focus.directive.d.ts +5 -1
  219. package/table/data-grid-focus.directive.js +17 -24
  220. package/table/data-grid-focus.directive.js.map +1 -1
  221. package/table/data-grid-focus.directive.metadata.json +1 -1
  222. package/table/data-grid-focus.directive.ngsummary.json +1 -1
  223. package/table/data-grid-interaction-model.class.d.ts +185 -0
  224. package/table/data-grid-interaction-model.class.js +269 -0
  225. package/table/data-grid-interaction-model.class.js.map +1 -0
  226. package/table/data-grid-interaction-model.class.metadata.json +1 -0
  227. package/table/data-grid-interaction-model.class.ngsummary.json +1 -0
  228. package/table/head/table-head-cell.component.d.ts +46 -0
  229. package/table/head/table-head-cell.component.js +117 -0
  230. package/table/head/table-head-cell.component.js.map +1 -0
  231. package/table/head/table-head-cell.component.metadata.json +1 -0
  232. package/table/head/table-head-cell.component.ngfactory.d.ts +21 -0
  233. package/table/head/table-head-cell.component.ngfactory.js +55 -0
  234. package/table/head/table-head-cell.component.ngfactory.js.map +1 -0
  235. package/table/head/table-head-cell.component.ngsummary.json +1 -0
  236. package/table/head/table-head-checkbox.component.d.ts +40 -0
  237. package/table/head/table-head-checkbox.component.js +75 -0
  238. package/table/head/table-head-checkbox.component.js.map +1 -0
  239. package/table/head/table-head-checkbox.component.metadata.json +1 -0
  240. package/table/head/table-head-checkbox.component.ngfactory.d.ts +21 -0
  241. package/table/head/table-head-checkbox.component.ngfactory.js +45 -0
  242. package/table/head/table-head-checkbox.component.ngfactory.js.map +1 -0
  243. package/table/head/table-head-checkbox.component.ngsummary.json +1 -0
  244. package/table/head/table-head-expand.component.d.ts +23 -0
  245. package/table/head/table-head-expand.component.js +39 -0
  246. package/table/head/table-head-expand.component.js.map +1 -0
  247. package/table/head/table-head-expand.component.metadata.json +1 -0
  248. package/table/head/table-head-expand.component.ngfactory.d.ts +21 -0
  249. package/table/head/table-head-expand.component.ngfactory.js +36 -0
  250. package/table/head/table-head-expand.component.ngfactory.js.map +1 -0
  251. package/table/head/table-head-expand.component.ngsummary.json +1 -0
  252. package/table/head/table-head.component.d.ts +77 -0
  253. package/table/head/table-head.component.js +157 -0
  254. package/table/head/table-head.component.js.map +1 -0
  255. package/table/head/table-head.component.metadata.json +1 -0
  256. package/table/head/table-head.component.ngfactory.d.ts +21 -0
  257. package/table/head/table-head.component.ngfactory.js +56 -0
  258. package/table/head/table-head.component.ngfactory.js.map +1 -0
  259. package/table/head/table-head.component.ngsummary.json +1 -0
  260. package/table/table-adapter.class.d.ts +149 -0
  261. package/table/table-adapter.class.js +210 -0
  262. package/table/table-adapter.class.js.map +1 -0
  263. package/table/table-adapter.class.metadata.json +1 -0
  264. package/table/table-adapter.class.ngsummary.json +1 -0
  265. package/table/table-header-item.class.d.ts +8 -35
  266. package/table/table-header-item.class.js +0 -17
  267. package/table/table-header-item.class.js.map +1 -1
  268. package/table/table-item.class.d.ts +0 -13
  269. package/table/table-item.class.js +0 -2
  270. package/table/table-item.class.js.map +1 -1
  271. package/table/table-model.class.d.ts +41 -105
  272. package/table/table-model.class.js +45 -73
  273. package/table/table-model.class.js.map +1 -1
  274. package/table/table-model.class.metadata.json +1 -1
  275. package/table/table-model.class.ngsummary.json +1 -1
  276. package/table/table.component.d.ts +45 -81
  277. package/table/table.component.js +191 -200
  278. package/table/table.component.js.map +1 -1
  279. package/table/table.component.metadata.json +1 -1
  280. package/table/table.component.ngfactory.js +30 -199
  281. package/table/table.component.ngfactory.js.map +1 -1
  282. package/table/table.component.ngsummary.json +1 -1
  283. package/table/table.directive.d.ts +33 -0
  284. package/table/table.directive.js +72 -0
  285. package/table/table.directive.js.map +1 -0
  286. package/table/table.directive.metadata.json +1 -0
  287. package/table/table.directive.ngfactory.js.map +1 -0
  288. package/table/table.directive.ngsummary.json +1 -0
  289. package/table/table.module.d.ts +25 -11
  290. package/table/table.module.js +60 -21
  291. package/table/table.module.js.map +1 -1
  292. package/table/table.module.metadata.json +1 -1
  293. package/table/table.module.ngfactory.js.map +1 -1
  294. package/table/table.module.ngsummary.json +1 -1
  295. package/tabs/tab-headers.component.js +1 -1
  296. package/tabs/tab-headers.component.js.map +1 -1
  297. package/tabs/tab-headers.component.metadata.json +1 -1
  298. package/tabs/tab-headers.component.ngfactory.js +1 -1
  299. package/tabs/tab-headers.component.ngfactory.js.map +1 -1
  300. package/ui-shell/header/header-action.component.js +1 -1
  301. package/ui-shell/header/header-action.component.js.map +1 -1
  302. package/ui-shell/header/header-action.component.metadata.json +1 -1
  303. package/ui-shell/header/header-action.component.ngfactory.js +5 -6
  304. package/ui-shell/header/header-action.component.ngfactory.js.map +1 -1
  305. package/ui-shell/header/header.component.d.ts +26 -1
  306. package/ui-shell/header/header.component.js +40 -5
  307. package/ui-shell/header/header.component.js.map +1 -1
  308. package/ui-shell/header/header.component.metadata.json +1 -1
  309. package/ui-shell/header/header.component.ngfactory.js +9 -3
  310. package/ui-shell/header/header.component.ngfactory.js.map +1 -1
  311. package/ui-shell/header/header.component.ngsummary.json +1 -1
  312. package/ui-shell/header/header.module.ngfactory.js.map +1 -1
  313. package/common/utils.d.ts +0 -35
  314. package/common/utils.js +0 -40
  315. package/common/utils.js.map +0 -1
  316. package/common/utils.metadata.json +0 -1
  317. package/common/utils.ngsummary.json +0 -1
  318. package/docs/storybook/main.9e8069cf2ee0957ae098.bundle.js.map +0 -1
  319. package/utils/window-tools.js +0 -46
  320. package/utils/window-tools.js.map +0 -1
  321. package/utils/window-tools.metadata.json +0 -1
  322. package/utils/window-tools.ngsummary.json +0 -1
@@ -0,0 +1,55 @@
1
+ /*!
2
+ *
3
+ * carbon-angular v0.0.0 | table-row.component.ngfactory.js
4
+ *
5
+ * Copyright 2014, 2019 IBM
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+
20
+
21
+ /**
22
+ * @fileoverview This file was generated by the Angular template compiler. Do not edit.
23
+ *
24
+ * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
25
+ * tslint:disable
26
+ */
27
+ import * as i0 from "@angular/core";
28
+ import * as i1 from "../cell/table-expand-button.component.ngfactory";
29
+ import * as i2 from "../cell/table-expand-button.component";
30
+ import * as i3 from "../../i18n/i18n.service";
31
+ import * as i4 from "../cell/table-checkbox.component.ngfactory";
32
+ import * as i5 from "../cell/table-checkbox.component";
33
+ import * as i6 from "../cell/table-data.component.ngfactory";
34
+ import * as i7 from "@angular/common";
35
+ import * as i8 from "../cell/table-data.component";
36
+ import * as i9 from "./table-row.component";
37
+ var styles_TableRowComponent = [];
38
+ var RenderType_TableRowComponent = i0.ɵcrt({ encapsulation: 2, styles: styles_TableRowComponent, data: {} });
39
+ export { RenderType_TableRowComponent as RenderType_TableRowComponent };
40
+ function View_TableRowComponent_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "td", [["ibmTableExpandButton", ""]], [[2, "bx--table-expand", null], [1, "data-previous-value", 0]], [[null, "expandRow"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("expandRow" === en)) {
41
+ var pd_0 = (_co.expandRow.emit() !== false);
42
+ ad = (pd_0 && ad);
43
+ } return ad; }, i1.View_TableExpandButton_0, i1.RenderType_TableExpandButton)), i0.ɵdid(1, 49152, null, 0, i2.TableExpandButton, [i3.I18n], { expanded: [0, "expanded"], expandable: [1, "expandable"], ariaLabel: [2, "ariaLabel"], skeleton: [3, "skeleton"] }, { expandRow: "expandRow" })], function (_ck, _v) { var _co = _v.component; var currVal_2 = _co.expanded; var currVal_3 = _co.expandable; var currVal_4 = _co.getExpandButtonAriaLabel(); var currVal_5 = _co.skeleton; _ck(_v, 1, 0, currVal_2, currVal_3, currVal_4, currVal_5); }, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 1).expandClass; var currVal_1 = i0.ɵnov(_v, 1).previousValue; _ck(_v, 0, 0, currVal_0, currVal_1); }); }
44
+ function View_TableRowComponent_3(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "td", [["ibmTableCheckbox", ""]], null, [[null, "change"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("change" === en)) {
45
+ var pd_0 = (_co.onSelectionChange() !== false);
46
+ ad = (pd_0 && ad);
47
+ } return ad; }, i4.View_TableCheckbox_0, i4.RenderType_TableCheckbox)), i0.ɵdid(1, 49152, null, 0, i5.TableCheckbox, [i3.I18n], { selected: [0, "selected"], size: [1, "size"], label: [2, "label"], skeleton: [3, "skeleton"] }, { change: "change" })], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.selected; var currVal_1 = _co.size; var currVal_2 = _co.getCheckboxLabel(); var currVal_3 = _co.skeleton; _ck(_v, 1, 0, currVal_0, currVal_1, currVal_2, currVal_3); }, null); }
48
+ function View_TableRowComponent_5(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "td", [["ibmTableData", ""]], [[8, "className", 0]], null, null, i6.View_TableData_0, i6.RenderType_TableData)), i0.ɵdid(1, 278528, null, 0, i7.NgStyle, [i0.KeyValueDiffers, i0.ElementRef, i0.Renderer2], { ngStyle: [0, "ngStyle"] }, null), i0.ɵdid(2, 49152, null, 0, i8.TableData, [], { item: [0, "item"], skeleton: [1, "skeleton"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_1 = _co.model.header[_v.parent.context.index].style; _ck(_v, 1, 0, currVal_1); var currVal_2 = _v.parent.context.$implicit; var currVal_3 = _co.skeleton; _ck(_v, 2, 0, currVal_2, currVal_3); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.model.header[_v.parent.context.index].className; _ck(_v, 0, 0, currVal_0); }); }
49
+ function View_TableRowComponent_4(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, null, null, null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_TableRowComponent_5)), i0.ɵdid(2, 16384, null, 0, i7.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(0, null, null, 0))], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.model.header[_v.context.index].visible; _ck(_v, 2, 0, currVal_0); }, null); }
50
+ function View_TableRowComponent_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 6, null, null, null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_TableRowComponent_2)), i0.ɵdid(2, 16384, null, 0, i7.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_TableRowComponent_3)), i0.ɵdid(4, 16384, null, 0, i7.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_TableRowComponent_4)), i0.ɵdid(6, 278528, null, 0, i7.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null), (_l()(), i0.ɵand(0, null, null, 0))], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.model.hasExpandableRows(); _ck(_v, 2, 0, currVal_0); var currVal_1 = (!_co.skeleton && _co.showSelectionColumn); _ck(_v, 4, 0, currVal_1); var currVal_2 = _co.row; _ck(_v, 6, 0, currVal_2); }, null); }
51
+ export function View_TableRowComponent_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵand(16777216, null, null, 1, null, View_TableRowComponent_1)), i0.ɵdid(1, 16384, null, 0, i7.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), i0.ɵncd(null, 0)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.model; _ck(_v, 1, 0, currVal_0); }, null); }
52
+ export function View_TableRowComponent_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "div", [["ibmTableRow", ""]], [[2, "bx--data-table--selected", null], [2, "bx--parent-row", null], [2, "bx--expandable-row", null], [2, "tbody_row--selectable", null], [1, "data-parent-row", 0]], null, null, View_TableRowComponent_0, RenderType_TableRowComponent)), i0.ɵdid(1, 49152, null, 0, i9.TableRowComponent, [i3.I18n], null, null)], null, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 1).selectedClass; var currVal_1 = i0.ɵnov(_v, 1).parentRowClass; var currVal_2 = i0.ɵnov(_v, 1).expandableRowClass; var currVal_3 = i0.ɵnov(_v, 1).selectableClass; var currVal_4 = i0.ɵnov(_v, 1).isParentRow; _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4); }); }
53
+ var TableRowComponentNgFactory = i0.ɵccf("[ibmTableRow]", i9.TableRowComponent, View_TableRowComponent_Host_0, { model: "model", row: "row", expanded: "expanded", expandable: "expandable", selected: "selected", size: "size", enableSingleSelect: "enableSingleSelect", expandButtonAriaLabel: "expandButtonAriaLabel", checkboxLabel: "checkboxLabel", showSelectionColumn: "showSelectionColumn", selectionLabelColumn: "selectionLabelColumn", skeleton: "skeleton" }, { selectRow: "selectRow", deselectRow: "deselectRow", expandRow: "expandRow" }, ["*"]);
54
+ export { TableRowComponentNgFactory as TableRowComponentNgFactory };
55
+ //# sourceMappingURL=table-row.component.ngfactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-row.component.ngfactory.js","sourceRoot":"","sources":["../../src/table/body/table-row.component.ngfactory.ts","../../src/table/body/table-row.component.ts.TableRowComponent.html"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;4DCEG,yNAOgC,YAA/B;;wBAA8B;MAP/B,wRAOgC,mDAJ/B,mBAAqB,WACrB,mBAAyB,aAEzB,mBAAwC,6BADxC,mBAAqB,WALtB,YAOgC,EAJ/B,SAAqB,EACrB,SAAyB,EAEzB,SAAwC,EADxC,SAAqB,2BALtB,4HAOgC;4DAEhC,wJAOgC,YAA/B;;wBAA8B;MAP/B,kPAOgC,mDAH/B,mBAAqB,WADrB,mBAAa,OAEb,mBAA4B,qBAC5B,mBAAqB,WANtB,YAOgC,EAH/B,SAAqB,EADrB,SAAa,EAEb,SAA4B,EAC5B,SAAqB;4DAIrB,wXAMuB,iDADtB,mCAAiC,8BALlC,YAMuB,EADtB,SAAiC,GAFjC,kBAAa,2BAGb,mBAAqB,WANtB,YAMuB,EAHtB,SAAa,EAGb,SAAqB,mDAFrB,mCAAmC,kCAJpC,YAMuB,EAFtB,SAAmC;4DALrC,6EAAsD,KACrD,iLAMuB,sFALtB,mCAA+B,yBADhC,YAMuB,EALtB,SAA+B;4DArBlC,6EAA4B,KAC3B,iLAOgC,IAEhC,iLAOgC,IAEhC,+MAAsD,sFAjBrD,mBAAiC,4BADlC,YAOgC,EAN/B,SAAiC,GASjC,qCAAwC,uBADzC,YAOgC,EAN/B,SAAwC,GAQ3B,mBAAuC,MAArD,YAAsD,EAAxC,SAAuC;mEAnBtD,iLAA4B,GA8B5B,eAAY,iDA9BE,mBAAa,QAA3B,YAA4B,EAAd,SAAa","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n","\n\t\t<ng-container *ngIf=\"model\">\n\t\t\t<td\n\t\t\t\t*ngIf=\"model.hasExpandableRows()\"\n\t\t\t\tibmTableExpandButton\n\t\t\t\t[expanded]=\"expanded\"\n\t\t\t\t[expandable]=\"expandable\"\n\t\t\t\t[skeleton]=\"skeleton\"\n\t\t\t\t[ariaLabel]=\"getExpandButtonAriaLabel()\"\n\t\t\t\t(expandRow)=\"expandRow.emit()\">\n\t\t\t</td>\n\t\t\t<td\n\t\t\t\t*ngIf=\"!skeleton && showSelectionColumn\"\n\t\t\t\tibmTableCheckbox\n\t\t\t\t[size]=\"size\"\n\t\t\t\t[selected]=\"selected\"\n\t\t\t\t[label]=\"getCheckboxLabel()\"\n\t\t\t\t[skeleton]=\"skeleton\"\n\t\t\t\t(change)=\"onSelectionChange()\">\n\t\t\t</td>\n\t\t\t<ng-container *ngFor=\"let item of row; let j = index\">\n\t\t\t\t<td\n\t\t\t\t\t*ngIf=\"model.header[j].visible\"\n\t\t\t\t\tibmTableData\n\t\t\t\t\t[item]=\"item\"\n\t\t\t\t\t[class]=\"model.header[j].className\"\n\t\t\t\t\t[ngStyle]=\"model.header[j].style\"\n\t\t\t\t\t[skeleton]=\"skeleton\">\n\t\t\t\t</td>\n\t\t\t</ng-container>\n\t\t</ng-container>\n\t\t<ng-content></ng-content>\n\t"]}
@@ -0,0 +1 @@
1
+ {"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","members":{"model":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"row":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"expanded":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"expandable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"selected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"enableSingleSelect":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"expandButtonAriaLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"checkboxLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"showSelectionColumn":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"selectionLabelColumn":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"skeleton":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"selectRow":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]}}]}],"deselectRow":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]}}]}],"expandRow":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]}}]}],"selectedClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":3,"members":[]},"arguments":["class.bx--data-table--selected"]}]}],"parentRowClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":3,"members":[]},"arguments":["class.bx--parent-row"]}]}],"expandableRowClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":3,"members":[]},"arguments":["class.bx--expandable-row"]}]}],"selectableClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":3,"members":[]},"arguments":["class.tbody_row--selectable"]}]}],"isParentRow":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":3,"members":[]},"arguments":["attr.data-parent-row"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbol":4,"members":[]}]}],"onSelectionChange":[{"__symbolic":"method"}],"getCheckboxLabel":[{"__symbolic":"method"}],"getExpandButtonAriaLabel":[{"__symbolic":"method"}]}},"type":{"summaryKind":1,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":5,"members":[]}}}}],"lifecycleHooks":[]},"isComponent":true,"selector":"[ibmTableRow]","exportAs":null,"inputs":{"model":"model","row":"row","expanded":"expanded","expandable":"expandable","selected":"selected","size":"size","enableSingleSelect":"enableSingleSelect","expandButtonAriaLabel":"expandButtonAriaLabel","checkboxLabel":"checkboxLabel","showSelectionColumn":"showSelectionColumn","selectionLabelColumn":"selectionLabelColumn","skeleton":"skeleton"},"outputs":{"selectRow":"selectRow","deselectRow":"deselectRow","expandRow":"expandRow"},"hostListeners":{},"hostProperties":{"class.bx--data-table--selected":"selectedClass","class.bx--parent-row":"parentRowClass","class.bx--expandable-row":"expandableRowClass","class.tbody_row--selectable":"selectableClass","attr.data-parent-row":"isParentRow"},"hostAttributes":{},"providers":[],"viewProviders":[],"queries":[],"guards":{},"viewQueries":[],"entryComponents":[],"changeDetection":1,"template":{"ngContentSelectors":["*"],"encapsulation":2},"componentViewType":{"__symbol":6,"members":[]},"rendererType":{"__symbol":7,"members":[]},"componentFactory":{"__symbol":8,"members":[]}}}],"symbols":[{"__symbol":0,"name":"TableRowComponent","filePath":"./table-row.component"},{"__symbol":1,"name":"Input","filePath":"@angular/core"},{"__symbol":2,"name":"Output","filePath":"@angular/core"},{"__symbol":3,"name":"HostBinding","filePath":"@angular/core"},{"__symbol":4,"name":"I18n","filePath":"../../i18n/i18n.module"},{"__symbol":5,"name":"I18n","filePath":"../../i18n/i18n.service"},{"__symbol":6,"name":"View_TableRowComponent_0","filePath":"./table-row.component.ngfactory"},{"__symbol":7,"name":"RenderType_TableRowComponent","filePath":"./table-row.component.ngfactory"},{"__symbol":8,"name":"TableRowComponentNgFactory","filePath":"./table-row.component.ngfactory"}]}
@@ -0,0 +1,56 @@
1
+ /*!
2
+ *
3
+ * carbon-angular v0.0.0 | table-checkbox.component.d.ts
4
+ *
5
+ * Copyright 2014, 2019 IBM
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+
20
+
21
+ import { EventEmitter } from "@angular/core";
22
+ import { I18n, Overridable } from "./../../i18n/i18n.module";
23
+ import { TableItem } from "./../table-item.class";
24
+ import { Observable } from "rxjs";
25
+ export declare class TableCheckbox {
26
+ protected i18n: I18n;
27
+ row: any[];
28
+ selected: boolean;
29
+ /**
30
+ * Size of the table rows.
31
+ */
32
+ size: "sm" | "md" | "lg";
33
+ label: string | Observable<string>;
34
+ /**
35
+ * Used to populate the row selection checkbox label with a useful value if set.
36
+ *
37
+ * Example:
38
+ * ```
39
+ * <ibm-table [selectionLabelColumn]="0"></ibm-table>
40
+ * <!-- results in aria-label="Select first column value"
41
+ * (where "first column value" is the value of the first column in the row -->
42
+ * ```
43
+ */
44
+ selectionLabelColumn: number;
45
+ skeleton: boolean;
46
+ /**
47
+ * Emits if a single row is selected.
48
+ */
49
+ change: EventEmitter<{}>;
50
+ protected _label: Overridable;
51
+ constructor(i18n: I18n);
52
+ getSelectionLabelValue(row: TableItem[]): {
53
+ value: any;
54
+ };
55
+ getLabel(): Observable<string>;
56
+ }
@@ -0,0 +1,80 @@
1
+ /*!
2
+ *
3
+ * carbon-angular v0.0.0 | table-checkbox.component.js
4
+ *
5
+ * Copyright 2014, 2019 IBM
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+
20
+
21
+ import { Component, Input, Output, EventEmitter } from "@angular/core";
22
+ import { I18n } from "./../../i18n/i18n.module";
23
+ var TableCheckbox = /** @class */ (function () {
24
+ function TableCheckbox(i18n) {
25
+ this.i18n = i18n;
26
+ this.selected = false;
27
+ /**
28
+ * Size of the table rows.
29
+ */
30
+ this.size = "md";
31
+ this.skeleton = false;
32
+ /**
33
+ * Emits if a single row is selected.
34
+ */
35
+ this.change = new EventEmitter();
36
+ this._label = this.i18n.getOverridable("TABLE.CHECKBOX_ROW");
37
+ }
38
+ Object.defineProperty(TableCheckbox.prototype, "label", {
39
+ get: function () {
40
+ return this._label.value;
41
+ },
42
+ set: function (value) {
43
+ this._label.override(value);
44
+ },
45
+ enumerable: true,
46
+ configurable: true
47
+ });
48
+ TableCheckbox.prototype.getSelectionLabelValue = function (row) {
49
+ if (!this.selectionLabelColumn) {
50
+ return { value: this.i18n.get().TABLE.ROW };
51
+ }
52
+ return { value: row[this.selectionLabelColumn].data };
53
+ };
54
+ TableCheckbox.prototype.getLabel = function () {
55
+ return this._label.subject;
56
+ };
57
+ TableCheckbox.decorators = [
58
+ { type: Component, args: [{
59
+ // tslint:disable-next-line: component-selector
60
+ selector: "[ibmTableCheckbox]",
61
+ template: "\n\t\t<ibm-checkbox\n\t\t\t*ngIf=\"!skeleton\"\n\t\t\tinline=\"true\"\n\t\t\t[aria-label]=\"getLabel() | i18nReplace:getSelectionLabelValue(row) | async\"\n\t\t\t[size]=\"(size !== 'sm' ? 'md' : 'sm')\"\n\t\t\t[checked]=\"selected\"\n\t\t\t(change)=\"change.emit()\">\n\t\t</ibm-checkbox>\n\t"
62
+ },] },
63
+ ];
64
+ /** @nocollapse */
65
+ TableCheckbox.ctorParameters = function () { return [
66
+ { type: I18n }
67
+ ]; };
68
+ TableCheckbox.propDecorators = {
69
+ row: [{ type: Input }],
70
+ selected: [{ type: Input }],
71
+ size: [{ type: Input }],
72
+ label: [{ type: Input }],
73
+ selectionLabelColumn: [{ type: Input }],
74
+ skeleton: [{ type: Input }],
75
+ change: [{ type: Output }]
76
+ };
77
+ return TableCheckbox;
78
+ }());
79
+ export { TableCheckbox };
80
+ //# sourceMappingURL=table-checkbox.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-checkbox.component.js","sourceRoot":"","sources":["../../src/table/cell/table-checkbox.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,KAAK,EACL,MAAM,EACN,YAAY,EACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,IAAI,EAAe,MAAM,0BAA0B,CAAC;AAI7D;IAsDC,uBAAsB,IAAU;QAAV,SAAI,GAAJ,IAAI,CAAM;QArCvB,aAAQ,GAAG,KAAK,CAAC;QAE1B;;WAEG;QACM,SAAI,GAAuB,IAAI,CAAC;QAuBhC,aAAQ,GAAG,KAAK,CAAC;QAE1B;;WAEG;QACO,WAAM,GAAG,IAAI,YAAY,EAAE,CAAC;QAE5B,WAAM,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;IAE9B,CAAC;IA9BrC,sBACI,gCAAK;aAIT;YACC,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;QAC1B,CAAC;aAPD,UACU,KAAkC;YAC3C,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC7B,CAAC;;;OAAA;IA6BD,8CAAsB,GAAtB,UAAuB,GAAgB;QACtC,IAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC/B,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;SAC5C;QACD,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,EAAE,CAAC;IACvD,CAAC;IAED,gCAAQ,GAAR;QACC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;IAC5B,CAAC;;gBAjED,SAAS,SAAC;oBACV,+CAA+C;oBAC/C,QAAQ,EAAE,oBAAoB;oBAC9B,QAAQ,EAAE,sSAST;iBACD;;;;gBAjBQ,IAAI;;;sBAmBX,KAAK;2BAEL,KAAK;uBAKL,KAAK;wBAEL,KAAK;uCAmBL,KAAK;2BAEL,KAAK;yBAKL,MAAM;;IAgBR,oBAAC;CAAA,AAlED,IAkEC;SApDY,aAAa","sourcesContent":["import {\n\tComponent,\n\tInput,\n\tOutput,\n\tEventEmitter\n} from \"@angular/core\";\nimport { I18n, Overridable } from \"./../../i18n/i18n.module\";\nimport { TableItem } from \"./../table-item.class\";\nimport { Observable } from \"rxjs\";\n\n@Component({\n\t// tslint:disable-next-line: component-selector\n\tselector: \"[ibmTableCheckbox]\",\n\ttemplate: `\n\t\t<ibm-checkbox\n\t\t\t*ngIf=\"!skeleton\"\n\t\t\tinline=\"true\"\n\t\t\t[aria-label]=\"getLabel() | i18nReplace:getSelectionLabelValue(row) | async\"\n\t\t\t[size]=\"(size !== 'sm' ? 'md' : 'sm')\"\n\t\t\t[checked]=\"selected\"\n\t\t\t(change)=\"change.emit()\">\n\t\t</ibm-checkbox>\n\t`\n})\nexport class TableCheckbox {\n\t@Input() row: any[];\n\n\t@Input() selected = false;\n\n\t/**\n\t * Size of the table rows.\n\t */\n\t@Input() size: \"sm\" | \"md\" | \"lg\" = \"md\";\n\n\t@Input()\n\tset label(value: string | Observable<string>) {\n\t\tthis._label.override(value);\n\t}\n\n\tget label() {\n\t\treturn this._label.value;\n\t}\n\n\t/**\n\t * Used to populate the row selection checkbox label with a useful value if set.\n\t *\n\t * Example:\n\t * ```\n\t * <ibm-table [selectionLabelColumn]=\"0\"></ibm-table>\n\t * <!-- results in aria-label=\"Select first column value\"\n\t * (where \"first column value\" is the value of the first column in the row -->\n\t * ```\n\t */\n\t@Input() selectionLabelColumn: number;\n\n\t@Input() skeleton = false;\n\n\t/**\n\t * Emits if a single row is selected.\n\t */\n\t@Output() change = new EventEmitter();\n\n\tprotected _label = this.i18n.getOverridable(\"TABLE.CHECKBOX_ROW\");\n\n\tconstructor(protected i18n: I18n) { }\n\n\tgetSelectionLabelValue(row: TableItem[]) {\n\t\tif (!this.selectionLabelColumn) {\n\t\t\treturn { value: this.i18n.get().TABLE.ROW };\n\t\t}\n\t\treturn { value: row[this.selectionLabelColumn].data };\n\t}\n\n\tgetLabel(): Observable<string> {\n\t\treturn this._label.subject;\n\t}\n}\n"]}
@@ -0,0 +1 @@
1
+ [{"__symbolic":"module","version":4,"metadata":{"TableCheckbox":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"[ibmTableCheckbox]","template":"\n\t\t<ibm-checkbox\n\t\t\t*ngIf=\"!skeleton\"\n\t\t\tinline=\"true\"\n\t\t\t[aria-label]=\"getLabel() | i18nReplace:getSelectionLabelValue(row) | async\"\n\t\t\t[size]=\"(size !== 'sm' ? 'md' : 'sm')\"\n\t\t\t[checked]=\"selected\"\n\t\t\t(change)=\"change.emit()\">\n\t\t</ibm-checkbox>\n\t"}]}],"members":{"row":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":2}}]}],"selected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":2}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":2}}]}],"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":2}}]}],"selectionLabelColumn":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":53,"character":2}}]}],"skeleton":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":55,"character":2}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":60,"character":2}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./../../i18n/i18n.module","name":"I18n","line":64,"character":29}]}],"getSelectionLabelValue":[{"__symbolic":"method"}],"getLabel":[{"__symbolic":"method"}]}}}}]
@@ -0,0 +1,21 @@
1
+ /*!
2
+ *
3
+ * carbon-angular v0.0.0 | table-checkbox.component.ngfactory.d.ts
4
+ *
5
+ * Copyright 2014, 2019 IBM
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+
20
+
21
+ export {};
@@ -0,0 +1,46 @@
1
+ /*!
2
+ *
3
+ * carbon-angular v0.0.0 | table-checkbox.component.ngfactory.js
4
+ *
5
+ * Copyright 2014, 2019 IBM
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+
20
+
21
+ /**
22
+ * @fileoverview This file was generated by the Angular template compiler. Do not edit.
23
+ *
24
+ * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
25
+ * tslint:disable
26
+ */
27
+ import * as i0 from "@angular/core";
28
+ import * as i1 from "../../checkbox/checkbox.component.ngfactory";
29
+ import * as i2 from "@angular/forms";
30
+ import * as i3 from "../../checkbox/checkbox.component";
31
+ import * as i4 from "@angular/common";
32
+ import * as i5 from "../../i18n/replace.pipe";
33
+ import * as i6 from "./table-checkbox.component";
34
+ import * as i7 from "../../i18n/i18n.service";
35
+ var styles_TableCheckbox = [];
36
+ var RenderType_TableCheckbox = i0.ɵcrt({ encapsulation: 2, styles: styles_TableCheckbox, data: {} });
37
+ export { RenderType_TableCheckbox as RenderType_TableCheckbox };
38
+ function View_TableCheckbox_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "ibm-checkbox", [["inline", "true"]], [[2, "bx--checkbox-wrapper", null], [2, "bx--form-item", null]], [[null, "change"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("change" === en)) {
39
+ var pd_0 = (_co.change.emit() !== false);
40
+ ad = (pd_0 && ad);
41
+ } return ad; }, i1.View_Checkbox_0, i1.RenderType_Checkbox)), i0.ɵprd(5120, null, i2.NG_VALUE_ACCESSOR, function (p0_0) { return [p0_0]; }, [i3.Checkbox]), i0.ɵdid(2, 4243456, null, 0, i3.Checkbox, [i0.ChangeDetectorRef], { size: [0, "size"], inline: [1, "inline"], ariaLabel: [2, "ariaLabel"], checked: [3, "checked"] }, { change: "change" }), i0.ɵppd(3, 2), i0.ɵpid(131072, i4.AsyncPipe, [i0.ChangeDetectorRef])], function (_ck, _v) { var _co = _v.component; var currVal_2 = ((_co.size !== "sm") ? "md" : "sm"); var currVal_3 = "true"; var currVal_4 = i0.ɵunv(_v, 2, 2, i0.ɵnov(_v, 4).transform(i0.ɵunv(_v, 2, 2, _ck(_v, 3, 0, i0.ɵnov(_v.parent, 0), _co.getLabel(), _co.getSelectionLabelValue(_co.row))))); var currVal_5 = _co.selected; _ck(_v, 2, 0, currVal_2, currVal_3, currVal_4, currVal_5); }, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 2).checkboxWrapperClass; var currVal_1 = i0.ɵnov(_v, 2).formItemClass; _ck(_v, 0, 0, currVal_0, currVal_1); }); }
42
+ export function View_TableCheckbox_0(_l) { return i0.ɵvid(0, [i0.ɵpid(0, i5.ReplacePipe, []), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_TableCheckbox_1)), i0.ɵdid(2, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = !_co.skeleton; _ck(_v, 2, 0, currVal_0); }, null); }
43
+ export function View_TableCheckbox_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "div", [["ibmTableCheckbox", ""]], null, null, null, View_TableCheckbox_0, RenderType_TableCheckbox)), i0.ɵdid(1, 49152, null, 0, i6.TableCheckbox, [i7.I18n], null, null)], null, null); }
44
+ var TableCheckboxNgFactory = i0.ɵccf("[ibmTableCheckbox]", i6.TableCheckbox, View_TableCheckbox_Host_0, { row: "row", selected: "selected", size: "size", label: "label", selectionLabelColumn: "selectionLabelColumn", skeleton: "skeleton" }, { change: "change" }, []);
45
+ export { TableCheckboxNgFactory as TableCheckboxNgFactory };
46
+ //# sourceMappingURL=table-checkbox.component.ngfactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-checkbox.component.ngfactory.js","sourceRoot":"","sources":["../../src/table/cell/table-checkbox.component.ngfactory.ts","../../src/table/cell/table-checkbox.component.ts.TableCheckbox.html"],"names":[],"mappings":";;;;;;;;;;;;;;;;;wDCCE,uNAM0B,YAAzB;;wBAAwB;MANzB,kVAM0B,KAHzB,kEAA2E,kDAC3E,kDAAsC,GAFtC,sBAAa,EACb,gKAA2E,WAE3E,mBAAoB,WALrB,YAM0B,EAFzB,SAAsC,EAFtC,SAAa,EACb,SAA2E,EAE3E,SAAoB,2BALrB;4QAM0B,iDALzB,oBAAiB,WADlB,YAM0B,EALzB,SAAiB","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n","\n\t\t<ibm-checkbox\n\t\t\t*ngIf=\"!skeleton\"\n\t\t\tinline=\"true\"\n\t\t\t[aria-label]=\"getLabel() | i18nReplace:getSelectionLabelValue(row) | async\"\n\t\t\t[size]=\"(size !== 'sm' ? 'md' : 'sm')\"\n\t\t\t[checked]=\"selected\"\n\t\t\t(change)=\"change.emit()\">\n\t\t</ibm-checkbox>\n\t"]}
@@ -0,0 +1 @@
1
+ {"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","members":{"row":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"selected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"selectionLabelColumn":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"skeleton":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbol":3,"members":[]}]}],"getSelectionLabelValue":[{"__symbolic":"method"}],"getLabel":[{"__symbolic":"method"}]}},"type":{"summaryKind":1,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":4,"members":[]}}}}],"lifecycleHooks":[]},"isComponent":true,"selector":"[ibmTableCheckbox]","exportAs":null,"inputs":{"row":"row","selected":"selected","size":"size","label":"label","selectionLabelColumn":"selectionLabelColumn","skeleton":"skeleton"},"outputs":{"change":"change"},"hostListeners":{},"hostProperties":{},"hostAttributes":{},"providers":[],"viewProviders":[],"queries":[],"guards":{},"viewQueries":[],"entryComponents":[],"changeDetection":1,"template":{"ngContentSelectors":[],"encapsulation":2},"componentViewType":{"__symbol":5,"members":[]},"rendererType":{"__symbol":6,"members":[]},"componentFactory":{"__symbol":7,"members":[]}}}],"symbols":[{"__symbol":0,"name":"TableCheckbox","filePath":"./table-checkbox.component"},{"__symbol":1,"name":"Input","filePath":"@angular/core"},{"__symbol":2,"name":"Output","filePath":"@angular/core"},{"__symbol":3,"name":"I18n","filePath":"../../i18n/i18n.module"},{"__symbol":4,"name":"I18n","filePath":"../../i18n/i18n.service"},{"__symbol":5,"name":"View_TableCheckbox_0","filePath":"./table-checkbox.component.ngfactory"},{"__symbol":6,"name":"RenderType_TableCheckbox","filePath":"./table-checkbox.component.ngfactory"},{"__symbol":7,"name":"TableCheckboxNgFactory","filePath":"./table-checkbox.component.ngfactory"}]}
@@ -0,0 +1,24 @@
1
+ /*!
2
+ *
3
+ * carbon-angular v0.0.0 | table-data.component.d.ts
4
+ *
5
+ * Copyright 2014, 2019 IBM
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+
20
+
21
+ export declare class TableData {
22
+ item: any;
23
+ skeleton: boolean;
24
+ }
@@ -0,0 +1,40 @@
1
+ /*!
2
+ *
3
+ * carbon-angular v0.0.0 | table-data.component.js
4
+ *
5
+ * Copyright 2014, 2019 IBM
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+
20
+
21
+ import { Component, Input } from "@angular/core";
22
+ var TableData = /** @class */ (function () {
23
+ function TableData() {
24
+ this.skeleton = false;
25
+ }
26
+ TableData.decorators = [
27
+ { type: Component, args: [{
28
+ // tslint:disable-next-line: component-selector
29
+ selector: "[ibmTableData]",
30
+ template: "\n\t\t<ng-container *ngIf=\"!item.template\">{{item.data}}</ng-container>\n\t\t<ng-template\n\t\t\t[ngTemplateOutlet]=\"item.template\" [ngTemplateOutletContext]=\"{data: item.data}\">\n\t\t</ng-template>\n\t"
31
+ },] },
32
+ ];
33
+ TableData.propDecorators = {
34
+ item: [{ type: Input }],
35
+ skeleton: [{ type: Input }]
36
+ };
37
+ return TableData;
38
+ }());
39
+ export { TableData };
40
+ //# sourceMappingURL=table-data.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-data.component.js","sourceRoot":"","sources":["../../src/table/cell/table-data.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,KAAK,EACL,MAAM,eAAe,CAAC;AAEvB;IAAA;QAaU,aAAQ,GAAG,KAAK,CAAC;IAC3B,CAAC;;gBAdA,SAAS,SAAC;oBACV,+CAA+C;oBAC/C,QAAQ,EAAE,gBAAgB;oBAC1B,QAAQ,EAAE,kNAKT;iBACD;;;uBAEC,KAAK;2BAEL,KAAK;;IACP,gBAAC;CAAA,AAdD,IAcC;SAJY,SAAS","sourcesContent":["import {\n\tComponent,\n\tInput\n} from \"@angular/core\";\n\n@Component({\n\t// tslint:disable-next-line: component-selector\n\tselector: \"[ibmTableData]\",\n\ttemplate: `\n\t\t<ng-container *ngIf=\"!item.template\">{{item.data}}</ng-container>\n\t\t<ng-template\n\t\t\t[ngTemplateOutlet]=\"item.template\" [ngTemplateOutletContext]=\"{data: item.data}\">\n\t\t</ng-template>\n\t`\n})\nexport class TableData {\n\t@Input() item;\n\n\t@Input() skeleton = false;\n}\n"]}
@@ -0,0 +1 @@
1
+ [{"__symbolic":"module","version":4,"metadata":{"TableData":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"[ibmTableData]","template":"\n\t\t<ng-container *ngIf=\"!item.template\">{{item.data}}</ng-container>\n\t\t<ng-template\n\t\t\t[ngTemplateOutlet]=\"item.template\" [ngTemplateOutletContext]=\"{data: item.data}\">\n\t\t</ng-template>\n\t"}]}],"members":{"item":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":2}}]}],"skeleton":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":2}}]}]}}}}]
@@ -0,0 +1,21 @@
1
+ /*!
2
+ *
3
+ * carbon-angular v0.0.0 | table-data.component.ngfactory.d.ts
4
+ *
5
+ * Copyright 2014, 2019 IBM
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+
20
+
21
+ export {};
@@ -0,0 +1,39 @@
1
+ /*!
2
+ *
3
+ * carbon-angular v0.0.0 | table-data.component.ngfactory.js
4
+ *
5
+ * Copyright 2014, 2019 IBM
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+
20
+
21
+ /**
22
+ * @fileoverview This file was generated by the Angular template compiler. Do not edit.
23
+ *
24
+ * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
25
+ * tslint:disable
26
+ */
27
+ import * as i0 from "@angular/core";
28
+ import * as i1 from "@angular/common";
29
+ import * as i2 from "./table-data.component";
30
+ var styles_TableData = [];
31
+ var RenderType_TableData = i0.ɵcrt({ encapsulation: 2, styles: styles_TableData, data: {} });
32
+ export { RenderType_TableData as RenderType_TableData };
33
+ function View_TableData_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, null, null, null, null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", ""]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.item.data; _ck(_v, 1, 0, currVal_0); }); }
34
+ function View_TableData_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵand(0, null, null, 0))], null, null); }
35
+ export function View_TableData_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵand(16777216, null, null, 1, null, View_TableData_1)), i0.ɵdid(1, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 2, null, View_TableData_2)), i0.ɵdid(3, 540672, null, 0, i1.NgTemplateOutlet, [i0.ViewContainerRef], { ngTemplateOutletContext: [0, "ngTemplateOutletContext"], ngTemplateOutlet: [1, "ngTemplateOutlet"] }, null), i0.ɵpod(4, { data: 0 })], function (_ck, _v) { var _co = _v.component; var currVal_0 = !_co.item.template; _ck(_v, 1, 0, currVal_0); var currVal_1 = _ck(_v, 4, 0, _co.item.data); var currVal_2 = _co.item.template; _ck(_v, 3, 0, currVal_1, currVal_2); }, null); }
36
+ export function View_TableData_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "div", [["ibmTableData", ""]], null, null, null, View_TableData_0, RenderType_TableData)), i0.ɵdid(1, 49152, null, 0, i2.TableData, [], null, null)], null, null); }
37
+ var TableDataNgFactory = i0.ɵccf("[ibmTableData]", i2.TableData, View_TableData_Host_0, { item: "item", skeleton: "skeleton" }, {}, []);
38
+ export { TableDataNgFactory as TableDataNgFactory };
39
+ //# sourceMappingURL=table-data.component.ngfactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-data.component.ngfactory.js","sourceRoot":"","sources":["../../src/table/cell/table-data.component.ngfactory.ts","../../src/table/cell/table-data.component.ts.TableData.html"],"names":[],"mappings":";;;;;;;;;;;;oDCCE,6EAAqC,KAAA,+IAAa;;2DAAlD,yKAAqC,IACrC,uPACkF,GAA9C,oBAA6C,mDAFnE,oBAAsB,gBAApC,YAAqC,EAAvB,SAAsB,GAEA,iCAA6C,aAAhF,mBAAkC,gBADnC,YACkF,EAA9C,SAA6C,EAAhF,SAAkC","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n","\n\t\t<ng-container *ngIf=\"!item.template\">{{item.data}}</ng-container>\n\t\t<ng-template\n\t\t\t[ngTemplateOutlet]=\"item.template\" [ngTemplateOutletContext]=\"{data: item.data}\">\n\t\t</ng-template>\n\t"]}
@@ -0,0 +1 @@
1
+ {"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","members":{"item":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}],"skeleton":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":1,"members":[]}}]}]}},"type":{"summaryKind":1,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]},"isComponent":true,"selector":"[ibmTableData]","exportAs":null,"inputs":{"item":"item","skeleton":"skeleton"},"outputs":{},"hostListeners":{},"hostProperties":{},"hostAttributes":{},"providers":[],"viewProviders":[],"queries":[],"guards":{},"viewQueries":[],"entryComponents":[],"changeDetection":1,"template":{"ngContentSelectors":[],"encapsulation":2},"componentViewType":{"__symbol":2,"members":[]},"rendererType":{"__symbol":3,"members":[]},"componentFactory":{"__symbol":4,"members":[]}}}],"symbols":[{"__symbol":0,"name":"TableData","filePath":"./table-data.component"},{"__symbol":1,"name":"Input","filePath":"@angular/core"},{"__symbol":2,"name":"View_TableData_0","filePath":"./table-data.component.ngfactory"},{"__symbol":3,"name":"RenderType_TableData","filePath":"./table-data.component.ngfactory"},{"__symbol":4,"name":"TableDataNgFactory","filePath":"./table-data.component.ngfactory"}]}
@@ -0,0 +1,43 @@
1
+ /*!
2
+ *
3
+ * carbon-angular v0.0.0 | table-expand-button.component.d.ts
4
+ *
5
+ * Copyright 2014, 2019 IBM
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+
20
+
21
+ import { EventEmitter } from "@angular/core";
22
+ import { I18n, Overridable } from "./../../i18n/i18n.module";
23
+ import { Observable } from "rxjs";
24
+ export declare class TableExpandButton {
25
+ protected i18n: I18n;
26
+ /**
27
+ * Set to true to indicate the row has expanded
28
+ */
29
+ expanded: boolean;
30
+ /**
31
+ * Set to true to indicate the row can be expanded.
32
+ * Defaults to false to allow for correct column alignment
33
+ */
34
+ expandable: boolean;
35
+ ariaLabel: string | Observable<string>;
36
+ skeleton: boolean;
37
+ expandClass: boolean;
38
+ readonly previousValue: string;
39
+ expandRow: EventEmitter<void>;
40
+ protected _ariaLabel: Overridable;
41
+ constructor(i18n: I18n);
42
+ getAriaLabel(): Observable<string>;
43
+ }
@@ -0,0 +1,83 @@
1
+ /*!
2
+ *
3
+ * carbon-angular v0.0.0 | table-expand-button.component.js
4
+ *
5
+ * Copyright 2014, 2019 IBM
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+
20
+
21
+ import { Component, Input, Output, EventEmitter, HostBinding } from "@angular/core";
22
+ import { I18n } from "./../../i18n/i18n.module";
23
+ var TableExpandButton = /** @class */ (function () {
24
+ function TableExpandButton(i18n) {
25
+ this.i18n = i18n;
26
+ /**
27
+ * Set to true to indicate the row has expanded
28
+ */
29
+ this.expanded = false;
30
+ /**
31
+ * Set to true to indicate the row can be expanded.
32
+ * Defaults to false to allow for correct column alignment
33
+ */
34
+ this.expandable = false;
35
+ this.skeleton = false;
36
+ this.expandClass = true;
37
+ this.expandRow = new EventEmitter();
38
+ this._ariaLabel = this.i18n.getOverridable("TABLE.EXPAND_BUTTON");
39
+ }
40
+ Object.defineProperty(TableExpandButton.prototype, "ariaLabel", {
41
+ get: function () {
42
+ return this._ariaLabel.value;
43
+ },
44
+ set: function (value) {
45
+ this._ariaLabel.override(value);
46
+ },
47
+ enumerable: true,
48
+ configurable: true
49
+ });
50
+ Object.defineProperty(TableExpandButton.prototype, "previousValue", {
51
+ get: function () {
52
+ return this.expanded ? "collapsed" : null;
53
+ },
54
+ enumerable: true,
55
+ configurable: true
56
+ });
57
+ TableExpandButton.prototype.getAriaLabel = function () {
58
+ return this._ariaLabel.subject;
59
+ };
60
+ TableExpandButton.decorators = [
61
+ { type: Component, args: [{
62
+ // tslint:disable-next-line: component-selector
63
+ selector: "[ibmTableExpandButton]",
64
+ template: "\n\t\t<button\n\t\t\t*ngIf=\"expandable\"\n\t\t\tclass=\"bx--table-expand__button\"\n\t\t\t[attr.aria-label]=\"getAriaLabel() | async\"\n\t\t\t(click)=\"expandRow.emit()\">\n\t\t\t<ibm-icon-chevron-right16 innerClass=\"bx--table-expand__svg\"></ibm-icon-chevron-right16>\n\t\t</button>\n\t"
65
+ },] },
66
+ ];
67
+ /** @nocollapse */
68
+ TableExpandButton.ctorParameters = function () { return [
69
+ { type: I18n }
70
+ ]; };
71
+ TableExpandButton.propDecorators = {
72
+ expanded: [{ type: Input }],
73
+ expandable: [{ type: Input }],
74
+ ariaLabel: [{ type: Input }],
75
+ skeleton: [{ type: Input }],
76
+ expandClass: [{ type: HostBinding, args: ["class.bx--table-expand",] }],
77
+ previousValue: [{ type: HostBinding, args: ["attr.data-previous-value",] }],
78
+ expandRow: [{ type: Output }]
79
+ };
80
+ return TableExpandButton;
81
+ }());
82
+ export { TableExpandButton };
83
+ //# sourceMappingURL=table-expand-button.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-expand-button.component.js","sourceRoot":"","sources":["../../src/table/cell/table-expand-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,KAAK,EACL,MAAM,EACN,YAAY,EACZ,WAAW,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,IAAI,EAAe,MAAM,0BAA0B,CAAC;AAG7D;IA6CC,2BAAsB,IAAU;QAAV,SAAI,GAAJ,IAAI,CAAM;QA/BhC;;WAEG;QACM,aAAQ,GAAG,KAAK,CAAC;QAC1B;;;WAGG;QACM,eAAU,GAAG,KAAK,CAAC;QAWnB,aAAQ,GAAG,KAAK,CAAC;QAEa,gBAAW,GAAG,IAAI,CAAC;QAMhD,cAAS,GAAG,IAAI,YAAY,EAAQ,CAAC;QAErC,eAAU,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC;IAEnC,CAAC;IArBrC,sBACI,wCAAS;aAIb;YACC,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;QAC9B,CAAC;aAPD,UACc,KAAkC;YAC/C,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC;;;OAAA;IAUD,sBAA6C,4CAAa;aAA1D;YACC,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC;QAC3C,CAAC;;;OAAA;IAQD,wCAAY,GAAZ;QACC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;IAChC,CAAC;;gBAjDD,SAAS,SAAC;oBACV,+CAA+C;oBAC/C,QAAQ,EAAE,wBAAwB;oBAClC,QAAQ,EAAE,mSAQT;iBACD;;;;gBAfQ,IAAI;;;2BAoBX,KAAK;6BAKL,KAAK;4BAEL,KAAK;2BASL,KAAK;8BAEL,WAAW,SAAC,wBAAwB;gCAEpC,WAAW,SAAC,0BAA0B;4BAItC,MAAM;;IASR,wBAAC;CAAA,AAlDD,IAkDC;SArCY,iBAAiB","sourcesContent":["import {\n\tComponent,\n\tInput,\n\tOutput,\n\tEventEmitter,\n\tHostBinding\n} from \"@angular/core\";\nimport { I18n, Overridable } from \"./../../i18n/i18n.module\";\nimport { Observable } from \"rxjs\";\n\n@Component({\n\t// tslint:disable-next-line: component-selector\n\tselector: \"[ibmTableExpandButton]\",\n\ttemplate: `\n\t\t<button\n\t\t\t*ngIf=\"expandable\"\n\t\t\tclass=\"bx--table-expand__button\"\n\t\t\t[attr.aria-label]=\"getAriaLabel() | async\"\n\t\t\t(click)=\"expandRow.emit()\">\n\t\t\t<ibm-icon-chevron-right16 innerClass=\"bx--table-expand__svg\"></ibm-icon-chevron-right16>\n\t\t</button>\n\t`\n})\nexport class TableExpandButton {\n\t/**\n\t * Set to true to indicate the row has expanded\n\t */\n\t@Input() expanded = false;\n\t/**\n\t * Set to true to indicate the row can be expanded.\n\t * Defaults to false to allow for correct column alignment\n\t */\n\t@Input() expandable = false;\n\n\t@Input()\n\tset ariaLabel(value: string | Observable<string>) {\n\t\tthis._ariaLabel.override(value);\n\t}\n\n\tget ariaLabel() {\n\t\treturn this._ariaLabel.value;\n\t}\n\n\t@Input() skeleton = false;\n\n\t@HostBinding(\"class.bx--table-expand\") expandClass = true;\n\n\t@HostBinding(\"attr.data-previous-value\") get previousValue() {\n\t\treturn this.expanded ? \"collapsed\" : null;\n\t}\n\n\t@Output() expandRow = new EventEmitter<void>();\n\n\tprotected _ariaLabel = this.i18n.getOverridable(\"TABLE.EXPAND_BUTTON\");\n\n\tconstructor(protected i18n: I18n) { }\n\n\tgetAriaLabel(): Observable<string> {\n\t\treturn this._ariaLabel.subject;\n\t}\n}\n"]}