@momentum-ui/web-components 2.13.22 → 2.14.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 (371) hide show
  1. package/dist/chunks/md-10.js +2 -2
  2. package/dist/chunks/md-100.js +1 -1
  3. package/dist/chunks/md-101.js +1 -1
  4. package/dist/chunks/md-102.js +1 -1
  5. package/dist/chunks/md-103.js +1 -1
  6. package/dist/chunks/md-104.js +1 -1
  7. package/dist/chunks/md-105.js +1 -1
  8. package/dist/chunks/md-106.js +1 -1
  9. package/dist/chunks/md-107.js +1 -1
  10. package/dist/chunks/md-108.js +1 -1
  11. package/dist/chunks/md-109.js +1 -1
  12. package/dist/chunks/md-11.js +1 -1
  13. package/dist/chunks/md-110.js +1 -1
  14. package/dist/chunks/md-111.js +1 -1
  15. package/dist/chunks/md-112.js +1 -1
  16. package/dist/chunks/md-113.js +1 -1
  17. package/dist/chunks/md-114.js +1 -1
  18. package/dist/chunks/md-115.js +1 -1
  19. package/dist/chunks/md-116.js +1 -1
  20. package/dist/chunks/md-117.js +1 -1
  21. package/dist/chunks/md-118.js +1 -1
  22. package/dist/chunks/md-119.js +1 -1
  23. package/dist/chunks/md-120.js +1 -1
  24. package/dist/chunks/md-121.js +1 -1
  25. package/dist/chunks/md-122.js +1 -1
  26. package/dist/chunks/md-123.js +1 -1
  27. package/dist/chunks/md-124.js +1 -1
  28. package/dist/chunks/md-125.js +1 -1
  29. package/dist/chunks/md-126.js +1 -1
  30. package/dist/chunks/md-127.js +1 -1
  31. package/dist/chunks/md-128.js +1 -1
  32. package/dist/chunks/md-129.js +1 -1
  33. package/dist/chunks/md-130.js +1 -1
  34. package/dist/chunks/md-131.js +1 -1
  35. package/dist/chunks/md-132.js +1 -1
  36. package/dist/chunks/md-133.js +1 -1
  37. package/dist/chunks/md-134.js +1 -1
  38. package/dist/chunks/md-135.js +1 -1
  39. package/dist/chunks/md-136.js +1 -1
  40. package/dist/chunks/md-137.js +1 -1
  41. package/dist/chunks/md-138.js +1 -1
  42. package/dist/chunks/md-139.js +1 -1
  43. package/dist/chunks/md-14.js +1 -1
  44. package/dist/chunks/md-140.js +1 -1
  45. package/dist/chunks/md-141.js +1 -1
  46. package/dist/chunks/md-142.js +1 -1
  47. package/dist/chunks/md-143.js +1 -1
  48. package/dist/chunks/md-144.js +1 -1
  49. package/dist/chunks/md-145.js +1 -1
  50. package/dist/chunks/md-146.js +1 -1
  51. package/dist/chunks/md-147.js +1 -1
  52. package/dist/chunks/md-148.js +1 -1
  53. package/dist/chunks/md-149.js +1 -1
  54. package/dist/chunks/md-150.js +1 -1
  55. package/dist/chunks/md-151.js +1 -1
  56. package/dist/chunks/md-152.js +1 -1
  57. package/dist/chunks/md-153.js +1 -1
  58. package/dist/chunks/md-154.js +1 -1
  59. package/dist/chunks/md-155.js +1 -1
  60. package/dist/chunks/md-156.js +1 -1
  61. package/dist/chunks/md-157.js +1 -1
  62. package/dist/chunks/md-158.js +1 -1
  63. package/dist/chunks/md-159.js +1 -1
  64. package/dist/chunks/md-160.js +1 -1
  65. package/dist/chunks/md-161.js +1 -1
  66. package/dist/chunks/md-162.js +1 -1
  67. package/dist/chunks/md-163.js +1 -1
  68. package/dist/chunks/md-164.js +1 -1
  69. package/dist/chunks/md-165.js +1 -1
  70. package/dist/chunks/md-166.js +1 -1
  71. package/dist/chunks/md-167.js +1 -1
  72. package/dist/chunks/md-168.js +1 -1
  73. package/dist/chunks/md-169.js +1 -1
  74. package/dist/chunks/md-17.js +1 -1
  75. package/dist/chunks/md-170.js +1 -1
  76. package/dist/chunks/md-171.js +1 -1
  77. package/dist/chunks/md-172.js +1 -1
  78. package/dist/chunks/md-173.js +1 -1
  79. package/dist/chunks/md-174.js +1 -1
  80. package/dist/chunks/md-175.js +1 -1
  81. package/dist/chunks/md-176.js +1 -1
  82. package/dist/chunks/md-177.js +1 -1
  83. package/dist/chunks/md-178.js +1 -1
  84. package/dist/chunks/md-179.js +1 -1
  85. package/dist/chunks/md-180.js +1 -1
  86. package/dist/chunks/md-181.js +1 -1
  87. package/dist/chunks/md-182.js +1 -1
  88. package/dist/chunks/md-183.js +1 -1
  89. package/dist/chunks/md-184.js +1 -1
  90. package/dist/chunks/md-185.js +1 -1
  91. package/dist/chunks/md-186.js +1 -1
  92. package/dist/chunks/md-187.js +1 -1
  93. package/dist/chunks/md-188.js +1 -1
  94. package/dist/chunks/md-189.js +1 -1
  95. package/dist/chunks/md-190.js +1 -1
  96. package/dist/chunks/md-191.js +1 -1
  97. package/dist/chunks/md-192.js +1 -1
  98. package/dist/chunks/md-193.js +1 -1
  99. package/dist/chunks/md-194.js +1 -1
  100. package/dist/chunks/md-195.js +1 -1
  101. package/dist/chunks/md-196.js +1 -1
  102. package/dist/chunks/md-197.js +1 -1
  103. package/dist/chunks/md-198.js +1 -1
  104. package/dist/chunks/md-199.js +1 -1
  105. package/dist/chunks/md-200.js +1 -1
  106. package/dist/chunks/md-201.js +1 -1
  107. package/dist/chunks/md-202.js +1 -1
  108. package/dist/chunks/md-203.js +1 -1
  109. package/dist/chunks/md-204.js +1 -1
  110. package/dist/chunks/md-205.js +1 -1
  111. package/dist/chunks/md-206.js +1 -1
  112. package/dist/chunks/md-207.js +1 -1
  113. package/dist/chunks/md-208.js +1 -1
  114. package/dist/chunks/md-209.js +1 -1
  115. package/dist/chunks/md-210.js +1 -1
  116. package/dist/chunks/md-211.js +1 -1
  117. package/dist/chunks/md-212.js +1 -1
  118. package/dist/chunks/md-213.js +1 -1
  119. package/dist/chunks/md-214.js +1 -1
  120. package/dist/chunks/md-215.js +1 -1
  121. package/dist/chunks/md-216.js +1 -1
  122. package/dist/chunks/md-217.js +1 -1
  123. package/dist/chunks/md-218.js +1 -1
  124. package/dist/chunks/md-219.js +1 -1
  125. package/dist/chunks/md-220.js +1 -1
  126. package/dist/chunks/md-221.js +1 -1
  127. package/dist/chunks/md-222.js +1 -1
  128. package/dist/chunks/md-223.js +1 -1
  129. package/dist/chunks/md-224.js +1 -1
  130. package/dist/chunks/md-225.js +1 -1
  131. package/dist/chunks/md-226.js +1 -1
  132. package/dist/chunks/md-227.js +1 -1
  133. package/dist/chunks/md-228.js +1 -1
  134. package/dist/chunks/md-229.js +1 -1
  135. package/dist/chunks/md-23.js +1 -1
  136. package/dist/chunks/md-230.js +1 -1
  137. package/dist/chunks/md-231.js +1 -1
  138. package/dist/chunks/md-232.js +1 -1
  139. package/dist/chunks/md-233.js +1 -1
  140. package/dist/chunks/md-234.js +1 -1
  141. package/dist/chunks/md-235.js +1 -1
  142. package/dist/chunks/md-236.js +1 -1
  143. package/dist/chunks/md-237.js +1 -1
  144. package/dist/chunks/md-238.js +1 -1
  145. package/dist/chunks/md-239.js +1 -1
  146. package/dist/chunks/md-240.js +1 -1
  147. package/dist/chunks/md-241.js +1 -1
  148. package/dist/chunks/md-242.js +1 -1
  149. package/dist/chunks/md-243.js +1 -1
  150. package/dist/chunks/md-244.js +1 -1
  151. package/dist/chunks/md-245.js +1 -1
  152. package/dist/chunks/md-246.js +1 -1
  153. package/dist/chunks/md-247.js +1 -1
  154. package/dist/chunks/md-248.js +1 -1
  155. package/dist/chunks/md-249.js +1 -1
  156. package/dist/chunks/md-250.js +1 -1
  157. package/dist/chunks/md-251.js +1 -1
  158. package/dist/chunks/md-252.js +1 -1
  159. package/dist/chunks/md-253.js +1 -1
  160. package/dist/chunks/md-254.js +1 -1
  161. package/dist/chunks/md-255.js +1 -1
  162. package/dist/chunks/md-256.js +1 -1
  163. package/dist/chunks/md-257.js +1 -1
  164. package/dist/chunks/md-258.js +1 -1
  165. package/dist/chunks/md-259.js +1 -1
  166. package/dist/chunks/md-26.js +1 -1
  167. package/dist/chunks/md-260.js +1 -1
  168. package/dist/chunks/md-261.js +1 -1
  169. package/dist/chunks/md-262.js +1 -1
  170. package/dist/chunks/md-263.js +1 -1
  171. package/dist/chunks/md-264.js +1 -1
  172. package/dist/chunks/md-265.js +1 -1
  173. package/dist/chunks/md-266.js +1 -1
  174. package/dist/chunks/md-267.js +1 -1
  175. package/dist/chunks/md-268.js +1 -1
  176. package/dist/chunks/md-269.js +1 -1
  177. package/dist/chunks/md-270.js +1 -1
  178. package/dist/chunks/md-271.js +1 -1
  179. package/dist/chunks/md-272.js +1 -1
  180. package/dist/chunks/md-273.js +1 -1
  181. package/dist/chunks/md-274.js +1 -1
  182. package/dist/chunks/md-275.js +1 -1
  183. package/dist/chunks/md-276.js +1 -1
  184. package/dist/chunks/md-277.js +1 -1
  185. package/dist/chunks/md-278.js +1 -0
  186. package/dist/chunks/md-29.js +1 -1
  187. package/dist/chunks/md-48.js +1 -1
  188. package/dist/chunks/md-5.js +1 -1
  189. package/dist/chunks/md-51.js +1 -1
  190. package/dist/chunks/md-53.js +68 -59
  191. package/dist/chunks/md-54.js +64 -18
  192. package/dist/chunks/md-55.js +22 -14
  193. package/dist/chunks/md-56.js +14 -5
  194. package/dist/chunks/md-57.js +5 -51
  195. package/dist/chunks/md-58.js +51 -22
  196. package/dist/chunks/md-59.js +21 -4
  197. package/dist/chunks/md-6.js +1 -1
  198. package/dist/chunks/md-60.js +5 -1
  199. package/dist/chunks/md-61.js +1 -23
  200. package/dist/chunks/md-62.js +23 -5
  201. package/dist/chunks/md-63.js +4 -10
  202. package/dist/chunks/md-64.js +9 -140
  203. package/dist/chunks/md-65.js +139 -27
  204. package/dist/chunks/md-66.js +29 -69
  205. package/dist/chunks/md-67.js +70 -19
  206. package/dist/chunks/md-68.js +19 -21
  207. package/dist/chunks/md-69.js +20 -16
  208. package/dist/chunks/md-70.js +17 -36
  209. package/dist/chunks/md-71.js +33 -73
  210. package/dist/chunks/md-72.js +76 -7
  211. package/dist/chunks/md-73.js +7 -72
  212. package/dist/chunks/md-74.js +71 -77
  213. package/dist/chunks/md-75.js +78 -66
  214. package/dist/chunks/md-76.js +64 -15
  215. package/dist/chunks/md-77.js +16 -4
  216. package/dist/chunks/md-78.js +4 -18
  217. package/dist/chunks/md-79.js +19 -1
  218. package/dist/chunks/md-80.js +1 -166
  219. package/dist/chunks/md-81.js +165 -32
  220. package/dist/chunks/md-82.js +31 -98
  221. package/dist/chunks/md-83.js +93 -75
  222. package/dist/chunks/md-84.js +81 -11
  223. package/dist/chunks/md-85.js +11 -41
  224. package/dist/chunks/md-86.js +40 -32
  225. package/dist/chunks/md-87.js +34 -1
  226. package/dist/chunks/md-88.js +1 -1
  227. package/dist/chunks/md-89.js +1 -1
  228. package/dist/chunks/md-90.js +1 -1
  229. package/dist/chunks/md-91.js +1 -1
  230. package/dist/chunks/md-92.js +1 -1
  231. package/dist/chunks/md-93.js +1 -1
  232. package/dist/chunks/md-94.js +1 -1
  233. package/dist/chunks/md-95.js +1 -1
  234. package/dist/chunks/md-96.js +1 -1
  235. package/dist/chunks/md-97.js +1 -1
  236. package/dist/chunks/md-98.js +1 -1
  237. package/dist/chunks/md-99.js +1 -1
  238. package/dist/comp/md-accordion-entry.js +1 -1
  239. package/dist/comp/md-accordion-item-entry.js +1 -1
  240. package/dist/comp/md-accordion-item.js +1 -1
  241. package/dist/comp/md-accordion.js +1 -1
  242. package/dist/comp/md-activity-button-entry.js +1 -1
  243. package/dist/comp/md-activity-button.js +1 -1
  244. package/dist/comp/md-alert-banner-entry.js +1 -1
  245. package/dist/comp/md-alert-banner.js +1 -1
  246. package/dist/comp/md-alert-entry.js +1 -1
  247. package/dist/comp/md-alert.js +1 -1
  248. package/dist/comp/md-audio-player-entry.js +1 -1
  249. package/dist/comp/md-audio-player.js +1 -1
  250. package/dist/comp/md-avatar-entry.js +1 -1
  251. package/dist/comp/md-avatar.js +1 -1
  252. package/dist/comp/md-badge-entry.js +1 -1
  253. package/dist/comp/md-breadcrumb-entry.js +1 -1
  254. package/dist/comp/md-button-entry.js +1 -1
  255. package/dist/comp/md-button-group-entry.js +1 -1
  256. package/dist/comp/md-button-group.js +1 -1
  257. package/dist/comp/md-button.js +1 -1
  258. package/dist/comp/md-card-ai-entry.js +1 -0
  259. package/dist/comp/md-card-ai.js +9 -0
  260. package/dist/comp/md-card-entry.js +1 -1
  261. package/dist/comp/md-card.js +2 -2
  262. package/dist/comp/md-chat-message-entry.js +1 -1
  263. package/dist/comp/md-chat-message.js +2 -2
  264. package/dist/comp/md-checkbox-entry.js +1 -1
  265. package/dist/comp/md-checkbox.js +2 -2
  266. package/dist/comp/md-checkboxgroup-entry.js +1 -1
  267. package/dist/comp/md-checkboxgroup.js +2 -2
  268. package/dist/comp/md-chip-entry.js +1 -1
  269. package/dist/comp/md-chip.js +2 -2
  270. package/dist/comp/md-coachmark-entry.js +1 -1
  271. package/dist/comp/md-coachmark.js +2 -2
  272. package/dist/comp/md-combobox-entry.js +1 -1
  273. package/dist/comp/md-combobox.js +1 -1
  274. package/dist/comp/md-composite-avatar-entry.js +1 -1
  275. package/dist/comp/md-composite-avatar.js +1 -1
  276. package/dist/comp/md-date-range-picker-entry.js +1 -1
  277. package/dist/comp/md-date-range-picker.js +2 -2
  278. package/dist/comp/md-date-time-picker-entry.js +1 -1
  279. package/dist/comp/md-date-time-picker.js +2 -2
  280. package/dist/comp/md-datepicker-calendar-entry.js +1 -1
  281. package/dist/comp/md-datepicker-calendar.js +1 -1
  282. package/dist/comp/md-datepicker-day-entry.js +1 -1
  283. package/dist/comp/md-datepicker-day.js +1 -1
  284. package/dist/comp/md-datepicker-entry.js +1 -1
  285. package/dist/comp/md-datepicker-month-entry.js +1 -1
  286. package/dist/comp/md-datepicker-month.js +1 -1
  287. package/dist/comp/md-datepicker-week-entry.js +1 -1
  288. package/dist/comp/md-datepicker-week.js +1 -1
  289. package/dist/comp/md-datepicker.js +1 -1
  290. package/dist/comp/md-draggable-entry.js +1 -1
  291. package/dist/comp/md-draggable-item-entry.js +1 -1
  292. package/dist/comp/md-draggable-item.js +2 -2
  293. package/dist/comp/md-draggable.js +2 -2
  294. package/dist/comp/md-dropdown-entry.js +1 -1
  295. package/dist/comp/md-dropdown.js +2 -2
  296. package/dist/comp/md-editable-field-entry.js +1 -1
  297. package/dist/comp/md-editable-field.js +2 -2
  298. package/dist/comp/md-favorite-entry.js +1 -1
  299. package/dist/comp/md-favorite.js +1 -1
  300. package/dist/comp/md-floating-minimize-entry.js +1 -1
  301. package/dist/comp/md-floating-minimize.js +1 -1
  302. package/dist/comp/md-floating-modal-entry.js +1 -1
  303. package/dist/comp/md-floating-modal.js +2 -2
  304. package/dist/comp/md-form-entry.js +1 -1
  305. package/dist/comp/md-form.js +2 -2
  306. package/dist/comp/md-grabber-entry.js +1 -1
  307. package/dist/comp/md-grabber.js +2 -2
  308. package/dist/comp/md-help-text-entry.js +1 -1
  309. package/dist/comp/md-icon-entry.js +1 -1
  310. package/dist/comp/md-icon.js +1 -1
  311. package/dist/comp/md-inpu.js +2 -2
  312. package/dist/comp/md-input-entry.js +1 -1
  313. package/dist/comp/md-input-file.js +1 -1
  314. package/dist/comp/md-input.js +1 -1
  315. package/dist/comp/md-label-entry.js +1 -1
  316. package/dist/comp/md-link-entry.js +1 -1
  317. package/dist/comp/md-link.js +1 -1
  318. package/dist/comp/md-list-entry.js +1 -1
  319. package/dist/comp/md-list-item-entry.js +1 -1
  320. package/dist/comp/md-list-item.js +1 -1
  321. package/dist/comp/md-list.js +1 -1
  322. package/dist/comp/md-loading-entry.js +1 -1
  323. package/dist/comp/md-meeting-alert-entry.js +1 -1
  324. package/dist/comp/md-meeting-alert.js +2 -2
  325. package/dist/comp/md-menu-entry.js +1 -1
  326. package/dist/comp/md-menu-item-entry.js +1 -1
  327. package/dist/comp/md-menu-overlay-entry.js +1 -1
  328. package/dist/comp/md-menu-overlay.js +1 -1
  329. package/dist/comp/md-menu.js +1 -1
  330. package/dist/comp/md-modal-entry.js +1 -1
  331. package/dist/comp/md-modal.js +2 -2
  332. package/dist/comp/md-pagination-entry.js +1 -1
  333. package/dist/comp/md-pagination.js +2 -2
  334. package/dist/comp/md-phone-input-entry.js +1 -1
  335. package/dist/comp/md-phone-input.js +2 -2
  336. package/dist/comp/md-progress-bar-entry.js +1 -1
  337. package/dist/comp/md-radio-entry.js +1 -1
  338. package/dist/comp/md-radio.js +2 -2
  339. package/dist/comp/md-radiogroup-entry.js +1 -1
  340. package/dist/comp/md-radiogroup.js +2 -2
  341. package/dist/comp/md-slider-entry.js +1 -1
  342. package/dist/comp/md-slider.js +2 -2
  343. package/dist/comp/md-spinner-entry.js +1 -1
  344. package/dist/comp/md-spinner.js +1 -1
  345. package/dist/comp/md-tab-entry.js +1 -1
  346. package/dist/comp/md-tab-panel-entry.js +1 -1
  347. package/dist/comp/md-tab-panel.js +2 -2
  348. package/dist/comp/md-tab.js +1 -1
  349. package/dist/comp/md-table-advanced-entry.js +1 -1
  350. package/dist/comp/md-table-advanced.js +2 -2
  351. package/dist/comp/md-table-entry.js +1 -1
  352. package/dist/comp/md-table.js +1 -1
  353. package/dist/comp/md-tabs-entry.js +1 -1
  354. package/dist/comp/md-tabs.js +2 -2
  355. package/dist/comp/md-task-item-entry.js +1 -1
  356. package/dist/comp/md-task-item.js +2 -2
  357. package/dist/comp/md-theme-entry.js +1 -1
  358. package/dist/comp/md-theme.js +1 -1
  359. package/dist/comp/md-timepicker-entry.js +1 -1
  360. package/dist/comp/md-timepicker.js +2 -2
  361. package/dist/comp/md-toggle-switch-entry.js +1 -1
  362. package/dist/comp/md-toggle-switch.js +2 -2
  363. package/dist/comp/md-tooltip-entry.js +1 -1
  364. package/dist/comp/md-tooltip.js +1 -1
  365. package/dist/index-entry.js +2 -2
  366. package/dist/index.js +31 -30
  367. package/dist/types/components/card-ai/CardAi.d.ts +45 -0
  368. package/dist/types/components/combobox/ComboBox.d.ts +1 -1
  369. package/dist/types/components/slider/Slider.d.ts +1 -0
  370. package/dist/types/index.d.ts +1 -0
  371. package/package.json +3 -3
@@ -1,166 +1 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[80],{103:function(e,t,o){"use strict";o.r(t),o.d(t,"TableAdvanced",(function(){return w}));o(17),o(15),o(30);var r=o(6),i=o(34),a=o(5),l=o(0),d=o(2),s=o(4),n=o(3),c=o(83),h=o(32),p=o.n(h),b=l.css`:host{display:block}.md-table-advanced{width:100%}table{border-collapse:separate;border-spacing:0;max-width:100%;position:relative;width:100%}table.sticky-header{height:100%}table.sticky-header thead th:first-child{border-left:1px solid var(--table-advanced-border-color,#dedede)}table.sticky-header thead th{background-color:var(--table-advanced-header-bg-color,#f7f7f7);border-left:0;border-top:0;position:sticky;top:0;z-index:1}table.sticky-header thead th::before{border-top:1px solid var(--table-advanced-border-color,#dedede);bottom:0;content:" ";left:0;position:absolute;top:0;width:100%}table.sticky-header thead tr:last-child th{top:2.5rem}table.sticky-header thead tr:last-child th::before{border-bottom:1px solid var(--table-advanced-border-color,#dedede);border-top:1px solid var(--table-advanced-border-color,#dedede)}table.sticky-header thead tr:first-child th{height:calc(2.5rem + .0625rem*2);top:0}table.sticky-header thead tr:first-child th::before{border-bottom:1px solid var(--table-advanced-border-color,#dedede);border-top:1px solid var(--table-advanced-border-color,#dedede)}table.sticky-header thead tr:focus{outline:0}table.sticky-header thead tr:focus th:first-child{border-left:2px solid var(--md-focus-border-color)}table.sticky-header thead tr:focus th:last-child{border-right:2px solid var(--md-focus-border-color)}table.sticky-header thead tr:focus th::before{border-bottom:2px solid var(--md-focus-border-color);border-top:2px solid var(--md-focus-border-color)}thead th:first-child{border-left:1px solid var(--table-advanced-border-color,#dedede)}thead th{background-color:var(--table-advanced-header-bg-color,#f7f7f7);border:1px solid var(--table-advanced-border-color,#dedede);border-left:0;color:var(--md-secondary-text-color);font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:14px;height:2.5rem;max-width:0;padding:0 .375rem;position:relative;text-align:left}thead th .filter{display:inline-block;height:auto;margin-top:calc(.25rem/2)}thead th .resize{background-color:rgba(0,0,0,0);cursor:col-resize;height:100%;left:calc(-.25rem/2);position:absolute;top:0;width:.25rem;z-index:1}thead .head-inner-cell{align-items:center;display:flex;min-width:.875rem}thead .head-inner-cell .filter-wrap{align-items:center;display:inline-flex;flex:1;justify-content:flex-end}thead .head-inner-cell .filter-icon{color:var(--md-secondary-text-color);cursor:pointer;display:inline-block;height:1.5rem;min-width:1.25rem;position:relative;z-index:1}thead .head-inner-cell .filter-icon::part(button){padding:.25rem;text-align:center;width:1.5rem}thead .head-inner-cell .filter-icon:hover{background-color:var(--table-advanced-filter-hover-bg-color,#ededed)}thead .head-inner-cell .filter-icon:active{background-color:var(--table-advanced-filter-pressed-bg-color,#dedede)}thead .head-inner-cell span{display:inline-block;overflow:hidden;padding-right:calc(.25rem*1.25);text-overflow:ellipsis;white-space:nowrap;width:100%}thead .head-inner-cell .sortable{background:rgba(0,0,0,0);border:0;color:var(--md-secondary-text-color);display:inline-block;min-width:calc(1rem*2.5);overflow:hidden;padding-right:calc(.25rem*4);text-overflow:ellipsis;white-space:nowrap;width:auto}thead md-menu-overlay::part(overlay){top:-.375rem;white-space:normal}@supports(-moz-appearance:none){thead md-menu-overlay::part(overlay){top:-.25rem;white-space:normal}}thead .drag-area-col{cursor:grab;display:block;height:calc(.25rem*10);left:.25rem;position:absolute;right:.25rem;top:0;z-index:1}thead .drag-area-col.drag{border:2px dashed var(--table-advanced-filter-border-color,#ccc);opacity:1}thead .drag-area-col.over{background-color:#a87ff1;height:100%;opacity:.1}thead .sortable{cursor:pointer;position:relative;z-index:1}thead .sortable::after,thead .sortable::before{border:.25rem solid transparent;content:"";display:block;height:0;opacity:.3;position:absolute;right:.25rem;top:50%;width:0}thead .sortable::before{border-bottom-color:var(--md-secondary-text-color);margin-top:-9px}thead .sortable::after{border-top-color:var(--md-secondary-text-color);margin-top:1px}thead .sortable.ascending::after{opacity:1}thead .sortable.descending::before{opacity:1}.filter-active{display:inline-block;height:1.25rem;text-align:center;vertical-align:bottom;width:1.25rem}.filter-active::part(icon){line-height:.875rem}.filter-menu{background-color:var(--table-advanced-filter-bg-color,#fff);padding:calc(.25rem*3);position:relative;z-index:1}.filter-menu select{background-color:var(--table-advanced-filter-bg-color,#fff);border:1px solid var(--table-advanced-filter-border-color,#ccc);color:var(--md-secondary-text-color);min-height:calc(.875rem*1.8);width:100%}.filter-menu input{background-color:var(--table-advanced-filter-bg-color,#fff);border:1px solid var(--table-advanced-filter-border-color,#ccc);color:var(--md-secondary-text-color);margin-top:calc(.25rem*2);width:100%}tbody tr{position:relative}tbody tr td:first-child{border-left:1px solid var(--table-advanced-border-color,#dedede)}tbody tr td{border-bottom:1px solid var(--table-advanced-border-color,#dedede);border-right:1px solid var(--table-advanced-border-color,#dedede);font-size:14px;height:2.5rem;max-width:0;padding:calc(.25rem*1.5);position:relative}tbody tr th:first-child{border-top:1px solid var(--table-advanced-border-color,#dedede)}tbody tr th{background-color:var(--table-advanced-header-bg-color,#f7f7f7);border-bottom:1px solid var(--table-advanced-border-color,#dedede);border-right:1px solid var(--table-advanced-border-color,#dedede);font-size:14px;max-width:0;padding:0 calc(.25rem*4);position:relative;text-align:left}tbody tr .inner-cell{display:flex;white-space:nowrap;align-items:center}tbody tr .inner-cell .warn-icon{display:inline-block;margin-left:.25rem;max-height:1.25rem;position:relative;vertical-align:middle;z-index:0}tbody tr .inner-cell md-icon::part(icon){line-height:1.25rem}tbody tr .inner-cell span{align-self:center;display:inline-block;flex:1;overflow:hidden;padding:0 .25rem;text-overflow:ellipsis;vertical-align:middle}tbody tr .drag-handle{cursor:grab;float:left;margin-right:calc(.25rem*1.5)}tbody tr .drag-area{height:50%;left:0;opacity:.3;position:absolute;right:0}tbody tr .drag-area.top{top:0}tbody tr .drag-area.bottom{background-color:rgba(0,0,0,0);bottom:0}tbody tr.ghost{opacity:.3}tbody tr:hover{background-color:var(--table-advanced-hover-bg-color,#f7f7f7)}tbody tr:hover td,tbody tr:hover th{background-color:var(--table-advanced-hover-bg-color,#f7f7f7)}tbody tr.selected,tbody tr:active{background-color:var(--table-advanced-selected-bg-color,#ededed)}tbody tr.selected td,tbody tr.selected th,tbody tr:active td,tbody tr:active th{background-color:var(--table-advanced-selected-bg-color,#ededed)}button.row-collapsible{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;width:1.25rem;margin-right:calc(.25rem*1.5);background-color:rgba(0,0,0,0);border:1px solid var(--table-advanced-border-color);border-radius:2px}button.row-collapsible:hover{background-color:var(--table-advanced-filter-hover-bg-color,#ededed);border:0}button.row-collapsible:active{background-color:var(--table-advanced-filter-pressed-bg-color);border:0}`;function g(e=250){return function(t,o,r){let i;return function(e,t){if(e.descriptor=e.descriptor||Object.getOwnPropertyDescriptor(e.target,e.key),"function"!=typeof e.descriptor.value)return console.warn(e.key,"Decorator must be used on function"),e.descriptor;const o=e.descriptor.value,r=e.target.constructor.name;return e.descriptor.value=function(...e){return t.call(this,o,e,r)},e.descriptor}({target:t,key:o,descriptor:r},(function(t,o){clearTimeout(i),i=window.setTimeout(()=>{clearTimeout(i),t.apply(this,o)},e)}))}}class u{constructor(e,t){this.target=e,this.eventName=t}emit(e,t={bubbles:!0,composed:!0,cancelable:!1}){this.target.dispatchEvent(new CustomEvent(this.eventName,Object.assign({detail:e},t)))}}const m=new WeakMap,f=Object(d.directive)(e=>t=>{if(!(t instanceof d.NodePart))throw new Error("templateCallback can only be used in text bindings");const o=m.get(t);if(void 0!==o&&e.template===o.template&&t.value===o.fragment)return;const r=document.importNode(e.template.content,!0);e.cb({content:e.content,row:e.row,col:e.col,insertIndex:e.insertIndex,fragment:r}),t.setValue(r),m.set(t,{template:e.template,fragment:r})});var v;!function(e){const t={placeholder:"Filter..."};e.OPTIONS={equals:{label:"Equals",input:t,predicate:(e,t)=>e==t},notEqual:{label:"Not equal",input:t,predicate:(e,t)=>e!=t},contains:{label:"Contains",input:t,predicate:(e,t)=>e.includes(t)},notContains:{label:"Not contains",input:t,predicate:(e,t)=>!e.includes(t)},startsWith:{label:"Starts with",input:t,predicate:(e,t)=>e.startsWith(t)},endsWith:{label:"Ends with",input:t,predicate:(e,t)=>e.endsWith(t)},lessThan:{label:"Less than",input:t,predicate:(e,t)=>e<t},lessThanOrEquals:{label:"Less than or equals",input:t,predicate:(e,t)=>e<=t},greaterThan:{label:"Greater than",input:t,predicate:(e,t)=>e>t},greaterThanOrEquals:{label:"Greater than or equals",input:t,predicate:(e,t)=>e>=t}},e.optionsString=[e.OPTIONS.equals,e.OPTIONS.notEqual,e.OPTIONS.contains,e.OPTIONS.notContains,e.OPTIONS.startsWith,e.OPTIONS.endsWith],e.optionsNumber=[e.OPTIONS.equals,e.OPTIONS.notEqual,e.OPTIONS.lessThan,e.OPTIONS.lessThanOrEquals,e.OPTIONS.greaterThan,e.OPTIONS.greaterThanOrEquals]}(v||(v={}));var y=function(e,t,o,r){var i,a=arguments.length,l=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,r);else for(var d=e.length-1;d>=0;d--)(i=e[d])&&(l=(a<3?i(l):a>3?i(t,o,l):i(t,o))||l);return a>3&&l&&Object.defineProperty(t,o,l),l};const x=document.createElement("img");var w;x.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",function(e){let t=class extends(Object(i.a)(l.LitElement)){constructor(){super(...arguments),this.isRowFocusable="true",this.error="",this.COLS=[],this.ROWS=[],this.updCols=()=>this.requestUpdate("COLS"),this.updRows=()=>this.requestUpdate("ROWS"),this.dragRow=-1,this.dropRow=-1,this.drops=[],this.dragRowElem=null,this.dragCol=-1,this.dropCol=-1,this.isResizing=!1,this.isSelectable=!1,this.selected={},this.expandedRowIdx={},this.dragover=e=>e.preventDefault(),this.eX=0,this.onResize=(e,t)=>{var o;if(-1!=this.dragCol||-1!=this.dragRow)return;this.isResizing=!0;const r=e.target;null===(o=e.dataTransfer)||void 0===o||o.setDragImage(x,0,0);const i=this.COLS.map(e=>this.shadowRoot.querySelector("th.col-index-"+e.index));this.COLS.forEach((e,t)=>e.width=i[t].offsetWidth+"px"),this.updCols();const a=e.x;this.eX=e.x;let l=-1,d=-1,s=-1;const n=this.COLS[t.index-1],c=i[t.index],h=i[t.index-1],p=c.offsetWidth,b=h.offsetWidth,g=()=>{const e=this.eX;if(l!=e&&0!=e){l=e;const o=l-a;d=p-o,s=b+o,t.width=d+"px",n.width=s+"px",this.updCols()}},u=e=>this.eX=e.x,m=()=>{this.isResizing=!1,r.removeEventListener("drag",g),r.removeEventListener("dragend",m),document.removeEventListener("dragover",u)};r.addEventListener("drag",g),r.addEventListener("dragend",m),document.addEventListener("dragover",u)}}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("dragover",this.dragover)}connectedCallback(){super.connectedCallback(),document.addEventListener("dragover",this.dragover),this.updateTableConfig(),this.updateTableData(),this.populateTable()}update(e){super.update(e),e.has("data")&&(this.updateTableData(),this.updateDataInTable())}updateTableData(){if("string"==typeof this.data)try{this.tableData=JSON.parse(this.data)}catch(e){console.error("[INVALID_JSON_FORMAT] Please recheck the config json")}else this.tableData=Object.assign({},this.data)}updateTableConfig(){if("string"==typeof this.config)try{this.tableConfig=JSON.parse(this.config)}catch(e){console.error("[INVALID_JSON_FORMAT] Please recheck the data json")}else this.tableConfig=Object.assign({},this.config)}populateColumns(){var e;let t=0;const o=(e,o)=>{var r,i,a,l;const d=e.filters||(null===(i=null===(r=this.tableConfig.default)||void 0===r?void 0:r.col)||void 0===i?void 0:i.filters),s=d?"forString"==d?v.optionsString:"forNumber"==d?v.optionsNumber:d.length?d:null:null;this.COLS.push({options:Object.assign({},e),index:t++,group:o,sort:"default",sorter:e.sorter||(null===(l=null===(a=this.tableConfig.default)||void 0===a?void 0:a.col)||void 0===l?void 0:l.sorter),isCollapsable:this.tableConfig.cols.collapse==e.id,filter:s?{list:s,selectedIndex:0,input:"",active:!1,menuVisible:!1}:void 0})};this.tableConfig.cols.define.forEach(e=>{"children"in e?e.children.forEach(t=>o(t,{name:e.groupName,length:e.children.length})):o(e)}),this.isSelectable=!!this.tableConfig.rows&&"none"!=(null===(e=this.tableConfig.rows)||void 0===e?void 0:e.selectable)}populateData(){const e=this.COLS.length;if("csv"in this.tableData){const e=p.a.parse(this.tableData.csv,{skipEmptyLines:!0,transform:e=>e.trim()});if(e.errors)return void(this.error="PARSE ERROR:\n"+JSON.stringify(e.errors,null,2));{const t=e.data;this.ROWS=t.map(e=>e.map(e=>({text:e})))}}else if("list2d"in this.tableData)this.ROWS=this.tableData.list2d.map(e=>e.map(e=>({text:e})));else{for(;this.tableData.list.length>e;)this.ROWS.push(this.tableData.list.splice(0,e).map(e=>({text:e})));0!=this.tableData.list.length&&this.ROWS.push(this.tableData.list.map(e=>({text:e})))}0!=this.ROWS.length||(this.error="DATA ERROR: Data is empty")}validateData(){const e=this.COLS.length;this.ROWS.reduce((e,t)=>e+t.length,0)%e==0?this.ROWS.forEach((t,o)=>{const r=t.length;r!=e&&(this.error=`DATA ERROR: Total number of cols (=${e}) and data[${o}] length (=${r}) mismatch`)}):this.error=this.error="DATA ERROR: Data length mismatch. You must provide (numberOfRows * numberOfColumns) amount of data values."}populateTemplate(){const e=this.tableConfig.cellTemplates,t=Object.keys(e||{});e&&t.length&&this.ROWS.forEach((t,o)=>{t.forEach((t,r)=>{for(const i in e){const a=t.text.indexOf(i);if(-1!=a){const l=e[i],d=this.querySelector("#"+l.templateName);if(null==d){console.warn(`cellTemplates["${i}"]: Missing '${l.templateName}' template.`);continue}let s=t.text.replace(i,"");l.contentCb&&(s=l.contentCb({col:r,row:o,content:s,insertIndex:a})),this.ROWS[o][r]={text:s,template:{template:d,templateCb:l.templateCb,insertIndex:"replace"==l.contentUse?-1:a}};break}}})})}setDefaultFilterAndSort(){var e,t;const o=null===(e=this.tableConfig.default)||void 0===e?void 0:e.sort;if(o){const e=this.COLS.find(e=>e.options.id==o.colId);e?this.sort(e,o.order):console.warn(`Cant find ${o.colId} col - for sorting`)}const r=null===(t=this.tableConfig.default)||void 0===t?void 0:t.filter;if(r){const e=this.COLS.find(e=>e.options.id==r.colId);e?e.filter?(e.filter.selectedIndex=r.selectedIndex,e.filter.input=r.input,this.updCols(),this.filter(e)):console.warn(`Cant find filters on ${r.colId} col`):console.warn(`Cant find ${r.colId} col - for filtering`)}}populateTable(){this.populateColumns(),this.populateData(),this.validateData(),this.setDefaultFilterAndSort(),this.populateTemplate()}updateDataInTable(){this.populateData(),this.validateData(),this.populateTemplate()}onDropRow(){this.dragRow!=this.dropRow&&this.drops.push([this.dragRow,this.dropRow]),this.dragRow=-1,this.dropRow=-1,this.dragRowElem&&(this.dragRowElem.setAttribute("draggable","false"),this.dragRowElem=null)}onDropCol(){if(this.dragCol!=this.dropCol){const e=this.COLS[this.dragCol],t=this.COLS[this.dropCol],o=e.group,r=t.group,i=e.index,a=t.index;e.group=r,t.group=o,e.index=a,t.index=i,this.COLS[this.dragCol]=t,this.COLS[this.dropCol]=e,this.ROWS.forEach(e=>{const t=e[this.dragCol],o=e[this.dropCol];e[this.dragCol]=o,e[this.dropCol]=t}),this.updCols(),this.updRows()}this.dragCol=-1,this.dropCol=-1}sort(e,t){e.sorter&&(this.clearSelection(),this.drops=[],this.COLS.forEach(o=>{o.options.id==e.options.id?o.sort=t||("default"==o.sort?"ascending":"ascending"==o.sort?"descending":"default"):o.sort="default"}),this.updCols(),this.requestUpdate(),this["md-table-advanced-change"].emit({type:"sort",order:e.sort}))}filter(e){if(!e.filter)return;this.clearSelection(),this.drops=[];const t=e.filter.input.trim(),o=e.filter.list[e.filter.selectedIndex];e.filter.active=!!t,this.requestUpdate(),t?this["md-table-advanced-change"].emit({type:"filter-on",filter:o,input:t}):this["md-table-advanced-change"].emit({type:"filter-off",filter:e.filter.list[e.filter.selectedIndex]})}selectRow(e){var t;const o=e.row.idx,r=Object.prototype.hasOwnProperty.call(this.selected,o);"multiple"==(null===(t=this.tableConfig.rows)||void 0===t?void 0:t.selectable)?(e.metaKey?r?delete this.selected[o]:this.selected[o]=!0:e.shiftKey||(this.selected={[o]:!0}),this["md-table-advanced-change"].emit({type:"multi-select",rows:Object.keys(this.selected).map(e=>+e)})):r?this.clearSelection():(this.selected={[o]:!0},this["md-table-advanced-change"].emit({type:"select",index:o})),this.requestUpdate("selected")}clearSelection(){this.selected={},this.requestUpdate("selected")}collapseToggle(e,t){e.stopPropagation(),this.expandedRowIdx[t]?(delete this.expandedRowIdx[t],this["md-table-advanced-change"].emit({type:"collapse",row:t})):(this.expandedRowIdx[t]=!0,this["md-table-advanced-change"].emit({type:"expand",row:t})),this.clearSelection(),this.requestUpdate()}render(){if(this.error)return l.html` <div>${this.error}</div> `;const{head:e}=this.tableConfig,t=Object(s.classMap)({"sticky-header":!!this.tableConfig.isStickyHeader});return l.html`
2
- <div class="md-table-advanced">
3
- <slot></slot>
4
- <table class=${t} summary=${Object(n.ifDefined)(null==e?void 0:e.summary)}>
5
- ${(null==e?void 0:e.caption)?l.html`
6
- <caption>
7
- ${null==e?void 0:e.caption}
8
- ${(null==e?void 0:e.tableDescription)?l.html` <span style="position: absolute; top: -30em">${null==e?void 0:e.tableDescription}</span> `:d.nothing}
9
- </caption>
10
- `:(null==e?void 0:e.tableDescription)?l.html`
11
- <caption>
12
- <span style="position: absolute; top: -30em">${null==e?void 0:e.tableDescription}</span>
13
- </caption>
14
- `:d.nothing}
15
- ${this.renderHead()} ${this.renderBody()}
16
- </table>
17
- </div>
18
- `}renderHead(){let e=d.nothing;const t=this.COLS.reduce((e,t)=>!!t.group||e,!1);if(t){let t="";e=l.html`
19
- ${this.COLS.map(e=>e.group?t!=e.group.name?(t=e.group.name,l.html` <colgroup span=${e.group.length}></colgroup> `):void 0:l.html` <col /> `)}
20
- <tr tabindex="0">
21
- ${this.COLS.map(e=>e.group?t!=e.group.name?(t=e.group.name,l.html`
22
- <th colspan=${e.group.length} scope="colgroup" title="${e.group.name}">
23
- <div class="head-inner-cell">
24
- <span>${e.group.name}</span>
25
- ${this.renderColResize(e)}
26
- </div>
27
- </th>
28
- `):void 0:this.renderCol(e,2))}
29
- </tr>
30
- `}const o=l.html`
31
- <tr tabindex="0">
32
- ${this.COLS.map(e=>t?e.group?this.renderCol(e):void 0:this.renderCol(e))}
33
- </tr>
34
- `;return l.html`
35
- <thead>
36
- ${e} ${o}
37
- </thead>
38
- `}renderCol(e,t){var o,r;const i=null===(r=null===(o=e.filter)||void 0===o?void 0:o.list[e.filter.selectedIndex])||void 0===r?void 0:r.input,a=Object(s.classMap)({ascending:"ascending"==e.sort,descending:"descending"==e.sort});return l.html`
39
- <th
40
- rowspan=${Object(n.ifDefined)(t)}
41
- width=${Object(n.ifDefined)(e.width?e.width:e.options.width)}
42
- scope="col"
43
- part="head-col"
44
- aria-sort=${e.sort}
45
- title="${e.options.title}"
46
- class=${"col-index-"+e.index}
47
- >
48
- <!-- DRAG -->
49
- ${this.renderColDrag(e)}
50
-
51
- <div class="head-inner-cell">
52
- <!-- SORT -->
53
- ${e.sorter?l.html`
54
- <button class="sortable ${a}" @click=${()=>this.sort(e)}>${e.options.title}</button>
55
- `:l.html` <span>${e.options.title}</span> `}
56
-
57
- <!-- FILTER -->
58
- ${e.filter?l.html`
59
- <div class="filter-wrap">
60
- ${e.filter.active?l.html`
61
- <md-icon
62
- class="filter-active"
63
- name="filter-bold"
64
- size="14"
65
- iconSet="momentumDesign"
66
- ></md-icon>
67
- `:d.nothing}
68
- <md-menu-overlay placement="bottom" class="filter" custom-width="188px">
69
- <md-button class="filter-icon" slot="menu-trigger" color="color-none" size="size-none">
70
- <md-icon slot="icon" name="filter-bold" size="16" iconSet="momentumDesign"></md-icon>
71
- </md-button>
72
- <div class="filter-menu" style="width: 100%;">
73
- <select
74
- name="filter-type"
75
- @change=${t=>{e.filter.selectedIndex=t.target.value,this.updCols(),this.filter(e)}}
76
- >
77
- ${e.filter.list.map((t,o)=>l.html`
78
- <option value=${o} ?selected=${e.filter.selectedIndex==o}>${t.label}</option>
79
- `)}
80
- </select>
81
- <input
82
- type="text"
83
- placeholder=${i.placeholder}
84
- maxlength=${Object(n.ifDefined)(i.maxlength)}
85
- pattern=${Object(n.ifDefined)(i.pattern)}
86
- .value=${e.filter.input}
87
- @input=${t=>{e.filter.input=t.target.value,this.updCols(),this.filter(e)}}
88
- />
89
- </div>
90
- </md-menu-overlay>
91
- </div>
92
- `:d.nothing}
93
-
94
- <!-- RESIZE -->
95
- ${this.renderColResize(e)}
96
- </div>
97
- </th>
98
- `}renderColDrag(e){return this.tableConfig.cols.isDraggable?l.html`
99
- <div
100
- draggable="true"
101
- class="drag-area-col ${Object(s.classMap)({drag:-1!=this.dragCol,over:this.dropCol==e.index&&this.dropCol!=this.dragCol})}"
102
- @dragstart=${t=>{this.isResizing||-1!=this.dragRow||(this.dragCol=e.index,t.dataTransfer.setDragImage(t.target.parentNode,0,0))}}
103
- @dragenter=${()=>{this.isResizing||-1!=this.dragRow||(this.dropCol=e.index)}}
104
- @dragend=${()=>this.onDropCol()}
105
- ></div>
106
- `:d.nothing}renderColResize(e){return this.tableConfig.cols.isResizable?l.html`
107
- ${e.index>0?l.html`
108
- <div class="resize" draggable="true" @dragstart=${t=>this.onResize(t,e)}></div>
109
- `:d.nothing}
110
- `:d.nothing}renderBody(){let e=this.ROWS.map((e,t)=>({cells:e,idx:t,idxDrag:t,collapse:"none",first:0===t,isGhost:!1,children:[]}));const t=this.COLS.length;e=e.filter(e=>{var o;for(let r=0;r<t;r++){const t=this.COLS[r];if(null===(o=t.filter)||void 0===o?void 0:o.active){if(!t.filter.list[t.filter.selectedIndex].predicate(e.cells[r].text,t.filter.input))return!1}}return!0});const o=this.COLS.find(e=>"default"!=e.sort);if(o){const t=this.ROWS.map((e,t)=>({v:e[o.index].text,i:t})),r="ascending"==o.sort?1:-1;let i=[];if("byNumber"==o.sorter)i=t.sort((e,t)=>1==r?+e.v-+t.v:+t.v-+e.v);else if("byString"==o.sorter)i=t.sort((e,t)=>e.v==t.v?0:e.v>t.v?r:-r);else if("function"==typeof o.sorter){const e=o.sorter;i=t.sort((t,o)=>e(t.v,o.v,r))}e=i.map(t=>e[t.i])}const r=this.COLS.find(e=>e.isCollapsable);if(r){const t=r.index,o=e.reduce((e,o)=>{const r=o.cells[t].text,i=e.find(e=>e.key==r);return i?(o.collapse="child",i.children.push(o)):e.push({key:r,root:o,children:[]}),e},[]);e=[],o.forEach(t=>{e.push(t.root),t.root.collapse=0==t.children.length?"none":this.expandedRowIdx[t.root.idx]?"expanded":"collapsed",t.root.children=t.children})}return this.drops.forEach(({0:t,1:o})=>{e.splice(o,0,e.splice(t,1)[0])}),e.forEach((e,t)=>e.idxDrag=t),-1!=this.dragRow&&(e[this.dragRow].isGhost=!0,-1!=this.dropRow&&e.splice(this.dropRow,0,e.splice(this.dragRow,1)[0])),l.html`
111
- <tbody>
112
- ${e.map(t=>{const o=e.length,r=t.children.length>0&&"expanded"==t.collapse&&!t.isGhost;return l.html`
113
- ${this.renderRow(t,o)} ${r?t.children.map(e=>this.renderRow(e,o)):d.nothing}
114
- `})}
115
- </tbody>
116
- `}renderRow(e,t){const o=Object.prototype.hasOwnProperty.call(this.selected,e.idx),r=Object(s.classMap)({selected:o,selectable:this.isSelectable&&!o,ghost:e.isGhost});return l.html`
117
- <tr
118
- class=${r}
119
- tabindex=${Object(n.ifDefined)("true"===this.isRowFocusable?"0":void 0)}
120
- part=${e.first?"first-row":"row"}
121
- @click=${({shiftKey:t,metaKey:o})=>{this.isSelectable&&this.selectRow({row:e,shiftKey:t,metaKey:o})}}
122
- >
123
- ${e.cells.map((o,r)=>{var i;const a=this.COLS[r];let s=o.text;const n=o.template;n&&(s=n.templateCb?l.html`
124
- ${f({cb:n.templateCb,insertIndex:n.insertIndex,template:n.template,content:o.text,row:e.idx,col:r})}
125
- `:l.html` ${Object(c.templateContent)(n.template)} `,-1!=n.insertIndex&&(s=l.html`
126
- ${n.insertIndex>0?o.text.substring(0,n.insertIndex):d.nothing} ${s}
127
- ${n.insertIndex<o.text.length-1?o.text.substring(n.insertIndex):d.nothing}
128
- `));const h=(null===(i=this.tableConfig.rows)||void 0===i?void 0:i.isDraggable)&&"child"!=e.collapse,p=h&&-1!=this.dragRow&&this.dragRow!=e.idxDrag,b=h&&0==r,g=l.html`
129
- <div
130
- class="inner-cell"
131
- draggable="false"
132
- @dragstart=${()=>{this.isResizing||-1!=this.dragCol||(this.dragRow=e.idxDrag)}}
133
- @dragend=${()=>this.onDropRow()}
134
- >
135
- ${p?l.html`
136
- <div
137
- class="drag-area top"
138
- @dragenter=${()=>{if(0==this.dragRow){const t=e.idxDrag-1;this.dropRow=t>=0?t:0}else this.dropRow=e.idxDrag}}
139
- ></div>
140
- <div
141
- class="drag-area bottom"
142
- @dragenter=${()=>{if(0==this.dragRow)this.dropRow=e.idxDrag;else{const o=e.idxDrag+1;this.dropRow=o<t?o:t-1}}}
143
- ></div>
144
- `:d.nothing}
145
- ${b?l.html`
146
- <md-icon
147
- class="drag-handle"
148
- @mousedown=${e=>{this.isResizing||-1!=this.dragCol||(this.dragRowElem=e.target.parentNode,this.dragRowElem.setAttribute("draggable","true"))}}
149
- name="dragger-vertical-bold"
150
- size="16"
151
- iconSet="momentumDesign"
152
- >
153
- </md-icon>
154
- `:d.nothing}
155
- ${a.isCollapsable?l.html`
156
- ${"expanded"==e.collapse||"collapsed"==e.collapse?l.html`
157
- <button class="row-collapsible" @click=${t=>this.collapseToggle(t,e.idx)}>
158
- ${"collapsed"==e.collapse?l.html` <md-icon name="plus-bold" size="12" iconSet="momentumDesign"></md-icon> `:l.html` <md-icon name="minus-bold" size="12" iconSet="momentumDesign"></md-icon> `}
159
- </button>
160
- `:d.nothing}
161
- <span>${"child"==e.collapse?d.nothing:s}</span>
162
- `:l.html` <span>${s}</span> `}
163
- </div>
164
- `;return a.options.isHeader?l.html` <th part="cell-ishead" scope="row" title="${o.text}">${g}</th> `:l.html` <td part=${0===r?"first-cell":"cell"} title="${o.text}">${g}</td> `})}
165
- </tr>
166
- `}static get styles(){return[a.a,b]}};y([Object(l.property)({attribute:"config"})],t.prototype,"config",void 0),y([Object(l.property)({attribute:"data"})],t.prototype,"data",void 0),y([Object(l.property)({type:String})],t.prototype,"isRowFocusable",void 0),y([(e,t)=>{const o={get(){return new u(this,void 0!==t?t:e.key)},enumerable:!0,configurable:!0};return void 0!==t?Object.defineProperty(e,t,o):{kind:"method",placement:"prototype",key:e.key,descriptor:o}}],t.prototype,"md-table-advanced-change",void 0),y([Object(l.internalProperty)()],t.prototype,"tableConfig",void 0),y([Object(l.internalProperty)()],t.prototype,"tableData",void 0),y([Object(l.internalProperty)()],t.prototype,"error",void 0),y([Object(l.internalProperty)()],t.prototype,"COLS",void 0),y([Object(l.internalProperty)()],t.prototype,"ROWS",void 0),y([Object(l.internalProperty)()],t.prototype,"dragRow",void 0),y([Object(l.internalProperty)()],t.prototype,"dropRow",void 0),y([Object(l.internalProperty)()],t.prototype,"drops",void 0),y([Object(l.internalProperty)()],t.prototype,"dragCol",void 0),y([Object(l.internalProperty)()],t.prototype,"dropCol",void 0),y([Object(l.queryAll)("tr[tabindex]")],t.prototype,"tableRaws",void 0),y([g(500)],t.prototype,"filter",null),t=y([Object(r.a)("md-table-advanced")],t),e.ELEMENT=t}(w||(w={}))}}]);
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[80],{100:function(e,t,r){"use strict";r.r(t),r.d(t,"TabPanel",(function(){return n}));var n,o=r(7),a=r(6),s=r(5),c=r(0),i=r(38),l=function(e,t,r,n){var o,a=arguments.length,s=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(s=(a<3?o(s):a>3?o(t,r,s):o(t,r))||s);return a>3&&s&&Object.defineProperty(t,r,s),s};!function(e){let t=class extends(Object(o.a)(c.LitElement)){constructor(){super(...arguments),this.selected=!1,this.name="",this.focusablePanel="true"}static get styles(){return[s.a,i.a]}firstUpdated(e){super.firstUpdated(e),this.setAttribute("role","tabpanel"),"true"===this.focusablePanel&&this.setAttribute("tabindex","0")}render(){return c.html` <slot></slot> `}};l([Object(c.property)({type:Boolean,reflect:!0})],t.prototype,"selected",void 0),l([Object(c.property)({type:String,attribute:"name"})],t.prototype,"name",void 0),l([Object(c.property)({type:String,attribute:"focusable-panel"})],t.prototype,"focusablePanel",void 0),t=l([Object(a.a)("md-tab-panel")],t),e.ELEMENT=t}(n||(n={}))}}]);
@@ -1,33 +1,166 @@
1
- (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[81],{124:function(t,e,r){"use strict";r.r(e),r.d(e,"formatType",(function(){return h})),r.d(e,"Table",(function(){return m}));var o=r(6),a=r(5),l=r(0),d=r(2),i=r(13),s=r(32),n=r.n(s),c=l.css`.md-table-container{width:100%}.md-table-container_stickly{height:100%;overflow-y:auto;position:relative}.md-table-container_stickly .md-table__header tr{background-color:rgba(0,0,0,0)}.md-table-container_stickly .md-table__header th{background-color:var(--table-header-bg-color,#f7f7f7);position:sticky;top:0}.md-table-container_stickly .md-table__header th:hover{background-color:var(--table-hover-bg-color,#ededed)}.md-table{border:1px solid var(--table-border-color,#dedede);border-collapse:collapse;width:100%}.md-table .md-table__header tr{background-color:var(--table-header-bg-color,#f7f7f7)}.md-table .md-table__header th{border-bottom:1px solid var(--table-border-color,#dedede);border-right:1px solid var(--table-border-color,#dedede);color:var(--table-text-color,#545454);font-size:12px;font-weight:700;padding-left:calc(.25rem*3);text-align:left}.md-table .md-table__header th:hover{background-color:var(--table-hover-bg-color,#ededed)}.md-table .md-table__header th:active{background-color:var(--table-pressed-bg-color,#dedede)}.md-table .md-table__header th a{color:var(--table-text-color,#545454)}.md-table .md-table__header th a.sortedAbc:after{content:"\\f1cc";display:inline-block;font-family:momentum-ui-icons;padding-left:.25rem;vertical-align:bottom}.md-table .md-table__header th a.sortedZyx:after{content:"\\f1cf";display:inline-block;font-family:momentum-ui-icons;padding-left:.25rem;vertical-align:bottom}.md-table .md-table__body tr{height:2.5rem}.md-table .md-table__body tr:hover{background-color:var(--table-hover-bg-color,#ededed)}.md-table .md-table__body tr:active{background-color:var(--table-pressed-bg-color,#dedede)}.md-table .md-table__body td{font-size:14px;min-width:calc(2.5rem*3.2);padding-left:calc(.25rem*3);vertical-align:middle}.md-table .md-table__body td span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:calc(.25rem*6);width:calc(100% - .25rem)}.md-table .md-table__body td md-icon{padding-left:.25rem;vertical-align:bottom}.md-table .md-table__body td:last-child span{width:auto}.md-table tr{height:2.5rem}.md-table tr td{border-bottom:1px solid var(--table-border-color,#dedede);border-right:1px solid var(--table-border-color,#dedede);vertical-align:top}.md-table--stripped .md-table__body tr:nth-child(even){background-color:var(--table-stripped-bg-color,#ededed)}.md-table--stripped .md-table__body tr:nth-child(even):hover{background-color:var(--table-hover-bg-color,#ededed)}.md-table--clean tr td{border-right:unset}.md-table--no-borders{border:unset}.md-table--no-borders .md-table__header th,.md-table--no-borders tr td{border-bottom:unset;border-right:unset}`,b=function(t,e,r,o){var a,l=arguments.length,d=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,e,r,o);else for(var i=t.length-1;i>=0;i--)(a=t[i])&&(d=(l<3?a(d):l>3?a(e,r,d):a(e,r))||d);return l>3&&d&&Object.defineProperty(e,r,d),d};const h=["number","default"];var m;!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.tabledata="",this.zebra=!1,this.clean=!1,this.sorting=!1,this.nodata="No data Loaded",this.stickheader=!1,this.label="Table",this.noBorders=!1,this.format="default",this.warning=[],this.errors=[],this.sort={columnName:"",sortting:!1},this.csvData=void 0,this.config={quoteChar:'"',escapeChar:'""',header:!1,preview:0,comments:!1,step:void 0,complete:void 0,download:!1}}connectedCallback(){super.connectedCallback(),this.results=n.a.parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.requestUpdate("tabledata"),this.linkCellItems()}get rowItem(){return this.rowTable}linkCellItems(){const t=this.rowTable;null==t||t.forEach((t,e)=>{this.warning.forEach(r=>{if(e+1===r.row){t.querySelectorAll('td[role="cell"').forEach((t,e)=>{e+1===r.col&&(t.classList.add("warning"),t.insertAdjacentHTML("beforeend",'<md-icon name="warning-regular" size="24" iconSet="momentumDesign" color="var(--md-alert-warning-text-color)"></md-icon>'))})}}),this.errors.forEach(r=>{if(e+1===r.row){t.querySelectorAll('td[role="cell"').forEach((t,e)=>{e+1===r.col&&(t.classList.add("error"),t.insertAdjacentHTML("beforeend",'<md-icon name="clear-bold" size="24" iconSet="momentumDesign" color="var(--md-alert-error-text-color)"></md-icon>'))})}})})}sortTab(t,e){const r=t.target,o=Array.from(this.csvData),a=this.headerRow.indexOf(e);e!==this.sort.columnName||!0!==this.sort.sortting?(o.sort((function(t,e){const r=t[a].toLowerCase(),o=e[a].toLowerCase();return r>o?1:r<o?-1:0})),this.sort.sortting=!0,r.classList.remove("sortedZyx"),r.classList.add("sortedAbc")):(o.reverse(),this.sort.sortting=!1,r.classList.remove("sortedAbc"),r.classList.add("sortedZyx")),this.sort.columnName=e,this.csvData=o,this.requestUpdate("csvData")}update(t){super.update(t),t.has("tabledata")&&(this.results=n.a.parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.linkCellItems())}static get styles(){return[a.a,c]}get tableClassMap(){return{"md-table--clean":this.clean,"md-table--no-borders":this.noBorders,"md-table--stripped":this.zebra,"md-table--sorting":this.sorting}}render(){return l.html`
2
- <div class=${"md-table-container "+(this.stickheader?"md-table-container_stickly":d.nothing)}>
3
- ${0!=this.csvData.length?l.html`
4
- <table
5
- class="md-table ${Object(i.classMap)(this.tableClassMap)}"
6
- tabindex="0"
7
- role="table"
8
- aria-label="${this.label}"
9
- >
10
- <thead class="md-table__header" role="rowgroup" tabindex="0">
11
- <tr role="row">
12
- ${this.headerRow.map(t=>l.html`
13
- <th role="columnheader">
14
- ${this.sorting?l.html` <a @click=${e=>this.sortTab(e,t)}>${t}</a> `:l.html` ${t} `}
15
- </th>
16
- `)}
17
- </tr>
18
- </thead>
19
- <tbody class="md-table__body" role="rowgroup">
20
- ${this.csvData.map((t,e)=>l.html`
21
- <tr tabindex="0" role="row" part=${0===e?"first-row":"row"}>
22
- ${t.map((t,e)=>{const r="number"===this.format&&0!==e?Number(t).toLocaleString():t;return l.html`
23
- <td part=${0===e?"left-cell":"cell"} role="cell">
24
- <span>${r}</span>
25
- </td>
26
- `})}
27
- </tr>
28
- `)}
29
- </tbody>
30
- </table>
31
- `:l.html` <p>${this.nodata}</p> `}
1
+ (window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[81],{103:function(e,t,o){"use strict";o.r(t),o.d(t,"TableAdvanced",(function(){return w}));o(17),o(15),o(30);var r=o(6),i=o(34),a=o(5),l=o(0),d=o(2),s=o(4),n=o(3),c=o(83),h=o(32),p=o.n(h),b=l.css`:host{display:block}.md-table-advanced{width:100%}table{border-collapse:separate;border-spacing:0;max-width:100%;position:relative;width:100%}table.sticky-header{height:100%}table.sticky-header thead th:first-child{border-left:1px solid var(--table-advanced-border-color,#dedede)}table.sticky-header thead th{background-color:var(--table-advanced-header-bg-color,#f7f7f7);border-left:0;border-top:0;position:sticky;top:0;z-index:1}table.sticky-header thead th::before{border-top:1px solid var(--table-advanced-border-color,#dedede);bottom:0;content:" ";left:0;position:absolute;top:0;width:100%}table.sticky-header thead tr:last-child th{top:2.5rem}table.sticky-header thead tr:last-child th::before{border-bottom:1px solid var(--table-advanced-border-color,#dedede);border-top:1px solid var(--table-advanced-border-color,#dedede)}table.sticky-header thead tr:first-child th{height:calc(2.5rem + .0625rem*2);top:0}table.sticky-header thead tr:first-child th::before{border-bottom:1px solid var(--table-advanced-border-color,#dedede);border-top:1px solid var(--table-advanced-border-color,#dedede)}table.sticky-header thead tr:focus{outline:0}table.sticky-header thead tr:focus th:first-child{border-left:2px solid var(--md-focus-border-color)}table.sticky-header thead tr:focus th:last-child{border-right:2px solid var(--md-focus-border-color)}table.sticky-header thead tr:focus th::before{border-bottom:2px solid var(--md-focus-border-color);border-top:2px solid var(--md-focus-border-color)}thead th:first-child{border-left:1px solid var(--table-advanced-border-color,#dedede)}thead th{background-color:var(--table-advanced-header-bg-color,#f7f7f7);border:1px solid var(--table-advanced-border-color,#dedede);border-left:0;color:var(--md-secondary-text-color);font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:14px;height:2.5rem;max-width:0;padding:0 .375rem;position:relative;text-align:left}thead th .filter{display:inline-block;height:auto;margin-top:calc(.25rem/2)}thead th .resize{background-color:rgba(0,0,0,0);cursor:col-resize;height:100%;left:calc(-.25rem/2);position:absolute;top:0;width:.25rem;z-index:1}thead .head-inner-cell{align-items:center;display:flex;min-width:.875rem}thead .head-inner-cell .filter-wrap{align-items:center;display:inline-flex;flex:1;justify-content:flex-end}thead .head-inner-cell .filter-icon{color:var(--md-secondary-text-color);cursor:pointer;display:inline-block;height:1.5rem;min-width:1.25rem;position:relative;z-index:1}thead .head-inner-cell .filter-icon::part(button){padding:.25rem;text-align:center;width:1.5rem}thead .head-inner-cell .filter-icon:hover{background-color:var(--table-advanced-filter-hover-bg-color,#ededed)}thead .head-inner-cell .filter-icon:active{background-color:var(--table-advanced-filter-pressed-bg-color,#dedede)}thead .head-inner-cell span{display:inline-block;overflow:hidden;padding-right:calc(.25rem*1.25);text-overflow:ellipsis;white-space:nowrap;width:100%}thead .head-inner-cell .sortable{background:rgba(0,0,0,0);border:0;color:var(--md-secondary-text-color);display:inline-block;min-width:calc(1rem*2.5);overflow:hidden;padding-right:calc(.25rem*4);text-overflow:ellipsis;white-space:nowrap;width:auto}thead md-menu-overlay::part(overlay){top:-.375rem;white-space:normal}@supports(-moz-appearance:none){thead md-menu-overlay::part(overlay){top:-.25rem;white-space:normal}}thead .drag-area-col{cursor:grab;display:block;height:calc(.25rem*10);left:.25rem;position:absolute;right:.25rem;top:0;z-index:1}thead .drag-area-col.drag{border:2px dashed var(--table-advanced-filter-border-color,#ccc);opacity:1}thead .drag-area-col.over{background-color:#a87ff1;height:100%;opacity:.1}thead .sortable{cursor:pointer;position:relative;z-index:1}thead .sortable::after,thead .sortable::before{border:.25rem solid transparent;content:"";display:block;height:0;opacity:.3;position:absolute;right:.25rem;top:50%;width:0}thead .sortable::before{border-bottom-color:var(--md-secondary-text-color);margin-top:-9px}thead .sortable::after{border-top-color:var(--md-secondary-text-color);margin-top:1px}thead .sortable.ascending::after{opacity:1}thead .sortable.descending::before{opacity:1}.filter-active{display:inline-block;height:1.25rem;text-align:center;vertical-align:bottom;width:1.25rem}.filter-active::part(icon){line-height:.875rem}.filter-menu{background-color:var(--table-advanced-filter-bg-color,#fff);padding:calc(.25rem*3);position:relative;z-index:1}.filter-menu select{background-color:var(--table-advanced-filter-bg-color,#fff);border:1px solid var(--table-advanced-filter-border-color,#ccc);color:var(--md-secondary-text-color);min-height:calc(.875rem*1.8);width:100%}.filter-menu input{background-color:var(--table-advanced-filter-bg-color,#fff);border:1px solid var(--table-advanced-filter-border-color,#ccc);color:var(--md-secondary-text-color);margin-top:calc(.25rem*2);width:100%}tbody tr{position:relative}tbody tr td:first-child{border-left:1px solid var(--table-advanced-border-color,#dedede)}tbody tr td{border-bottom:1px solid var(--table-advanced-border-color,#dedede);border-right:1px solid var(--table-advanced-border-color,#dedede);font-size:14px;height:2.5rem;max-width:0;padding:calc(.25rem*1.5);position:relative}tbody tr th:first-child{border-top:1px solid var(--table-advanced-border-color,#dedede)}tbody tr th{background-color:var(--table-advanced-header-bg-color,#f7f7f7);border-bottom:1px solid var(--table-advanced-border-color,#dedede);border-right:1px solid var(--table-advanced-border-color,#dedede);font-size:14px;max-width:0;padding:0 calc(.25rem*4);position:relative;text-align:left}tbody tr .inner-cell{display:flex;white-space:nowrap;align-items:center}tbody tr .inner-cell .warn-icon{display:inline-block;margin-left:.25rem;max-height:1.25rem;position:relative;vertical-align:middle;z-index:0}tbody tr .inner-cell md-icon::part(icon){line-height:1.25rem}tbody tr .inner-cell span{align-self:center;display:inline-block;flex:1;overflow:hidden;padding:0 .25rem;text-overflow:ellipsis;vertical-align:middle}tbody tr .drag-handle{cursor:grab;float:left;margin-right:calc(.25rem*1.5)}tbody tr .drag-area{height:50%;left:0;opacity:.3;position:absolute;right:0}tbody tr .drag-area.top{top:0}tbody tr .drag-area.bottom{background-color:rgba(0,0,0,0);bottom:0}tbody tr.ghost{opacity:.3}tbody tr:hover{background-color:var(--table-advanced-hover-bg-color,#f7f7f7)}tbody tr:hover td,tbody tr:hover th{background-color:var(--table-advanced-hover-bg-color,#f7f7f7)}tbody tr.selected,tbody tr:active{background-color:var(--table-advanced-selected-bg-color,#ededed)}tbody tr.selected td,tbody tr.selected th,tbody tr:active td,tbody tr:active th{background-color:var(--table-advanced-selected-bg-color,#ededed)}button.row-collapsible{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;width:1.25rem;margin-right:calc(.25rem*1.5);background-color:rgba(0,0,0,0);border:1px solid var(--table-advanced-border-color);border-radius:2px}button.row-collapsible:hover{background-color:var(--table-advanced-filter-hover-bg-color,#ededed);border:0}button.row-collapsible:active{background-color:var(--table-advanced-filter-pressed-bg-color);border:0}`;function g(e=250){return function(t,o,r){let i;return function(e,t){if(e.descriptor=e.descriptor||Object.getOwnPropertyDescriptor(e.target,e.key),"function"!=typeof e.descriptor.value)return console.warn(e.key,"Decorator must be used on function"),e.descriptor;const o=e.descriptor.value,r=e.target.constructor.name;return e.descriptor.value=function(...e){return t.call(this,o,e,r)},e.descriptor}({target:t,key:o,descriptor:r},(function(t,o){clearTimeout(i),i=window.setTimeout(()=>{clearTimeout(i),t.apply(this,o)},e)}))}}class u{constructor(e,t){this.target=e,this.eventName=t}emit(e,t={bubbles:!0,composed:!0,cancelable:!1}){this.target.dispatchEvent(new CustomEvent(this.eventName,Object.assign({detail:e},t)))}}const m=new WeakMap,f=Object(d.directive)(e=>t=>{if(!(t instanceof d.NodePart))throw new Error("templateCallback can only be used in text bindings");const o=m.get(t);if(void 0!==o&&e.template===o.template&&t.value===o.fragment)return;const r=document.importNode(e.template.content,!0);e.cb({content:e.content,row:e.row,col:e.col,insertIndex:e.insertIndex,fragment:r}),t.setValue(r),m.set(t,{template:e.template,fragment:r})});var v;!function(e){const t={placeholder:"Filter..."};e.OPTIONS={equals:{label:"Equals",input:t,predicate:(e,t)=>e==t},notEqual:{label:"Not equal",input:t,predicate:(e,t)=>e!=t},contains:{label:"Contains",input:t,predicate:(e,t)=>e.includes(t)},notContains:{label:"Not contains",input:t,predicate:(e,t)=>!e.includes(t)},startsWith:{label:"Starts with",input:t,predicate:(e,t)=>e.startsWith(t)},endsWith:{label:"Ends with",input:t,predicate:(e,t)=>e.endsWith(t)},lessThan:{label:"Less than",input:t,predicate:(e,t)=>e<t},lessThanOrEquals:{label:"Less than or equals",input:t,predicate:(e,t)=>e<=t},greaterThan:{label:"Greater than",input:t,predicate:(e,t)=>e>t},greaterThanOrEquals:{label:"Greater than or equals",input:t,predicate:(e,t)=>e>=t}},e.optionsString=[e.OPTIONS.equals,e.OPTIONS.notEqual,e.OPTIONS.contains,e.OPTIONS.notContains,e.OPTIONS.startsWith,e.OPTIONS.endsWith],e.optionsNumber=[e.OPTIONS.equals,e.OPTIONS.notEqual,e.OPTIONS.lessThan,e.OPTIONS.lessThanOrEquals,e.OPTIONS.greaterThan,e.OPTIONS.greaterThanOrEquals]}(v||(v={}));var y=function(e,t,o,r){var i,a=arguments.length,l=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,r);else for(var d=e.length-1;d>=0;d--)(i=e[d])&&(l=(a<3?i(l):a>3?i(t,o,l):i(t,o))||l);return a>3&&l&&Object.defineProperty(t,o,l),l};const x=document.createElement("img");var w;x.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",function(e){let t=class extends(Object(i.a)(l.LitElement)){constructor(){super(...arguments),this.isRowFocusable="true",this.error="",this.COLS=[],this.ROWS=[],this.updCols=()=>this.requestUpdate("COLS"),this.updRows=()=>this.requestUpdate("ROWS"),this.dragRow=-1,this.dropRow=-1,this.drops=[],this.dragRowElem=null,this.dragCol=-1,this.dropCol=-1,this.isResizing=!1,this.isSelectable=!1,this.selected={},this.expandedRowIdx={},this.dragover=e=>e.preventDefault(),this.eX=0,this.onResize=(e,t)=>{var o;if(-1!=this.dragCol||-1!=this.dragRow)return;this.isResizing=!0;const r=e.target;null===(o=e.dataTransfer)||void 0===o||o.setDragImage(x,0,0);const i=this.COLS.map(e=>this.shadowRoot.querySelector("th.col-index-"+e.index));this.COLS.forEach((e,t)=>e.width=i[t].offsetWidth+"px"),this.updCols();const a=e.x;this.eX=e.x;let l=-1,d=-1,s=-1;const n=this.COLS[t.index-1],c=i[t.index],h=i[t.index-1],p=c.offsetWidth,b=h.offsetWidth,g=()=>{const e=this.eX;if(l!=e&&0!=e){l=e;const o=l-a;d=p-o,s=b+o,t.width=d+"px",n.width=s+"px",this.updCols()}},u=e=>this.eX=e.x,m=()=>{this.isResizing=!1,r.removeEventListener("drag",g),r.removeEventListener("dragend",m),document.removeEventListener("dragover",u)};r.addEventListener("drag",g),r.addEventListener("dragend",m),document.addEventListener("dragover",u)}}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("dragover",this.dragover)}connectedCallback(){super.connectedCallback(),document.addEventListener("dragover",this.dragover),this.updateTableConfig(),this.updateTableData(),this.populateTable()}update(e){super.update(e),e.has("data")&&(this.updateTableData(),this.updateDataInTable())}updateTableData(){if("string"==typeof this.data)try{this.tableData=JSON.parse(this.data)}catch(e){console.error("[INVALID_JSON_FORMAT] Please recheck the config json")}else this.tableData=Object.assign({},this.data)}updateTableConfig(){if("string"==typeof this.config)try{this.tableConfig=JSON.parse(this.config)}catch(e){console.error("[INVALID_JSON_FORMAT] Please recheck the data json")}else this.tableConfig=Object.assign({},this.config)}populateColumns(){var e;let t=0;const o=(e,o)=>{var r,i,a,l;const d=e.filters||(null===(i=null===(r=this.tableConfig.default)||void 0===r?void 0:r.col)||void 0===i?void 0:i.filters),s=d?"forString"==d?v.optionsString:"forNumber"==d?v.optionsNumber:d.length?d:null:null;this.COLS.push({options:Object.assign({},e),index:t++,group:o,sort:"default",sorter:e.sorter||(null===(l=null===(a=this.tableConfig.default)||void 0===a?void 0:a.col)||void 0===l?void 0:l.sorter),isCollapsable:this.tableConfig.cols.collapse==e.id,filter:s?{list:s,selectedIndex:0,input:"",active:!1,menuVisible:!1}:void 0})};this.tableConfig.cols.define.forEach(e=>{"children"in e?e.children.forEach(t=>o(t,{name:e.groupName,length:e.children.length})):o(e)}),this.isSelectable=!!this.tableConfig.rows&&"none"!=(null===(e=this.tableConfig.rows)||void 0===e?void 0:e.selectable)}populateData(){const e=this.COLS.length;if("csv"in this.tableData){const e=p.a.parse(this.tableData.csv,{skipEmptyLines:!0,transform:e=>e.trim()});if(e.errors)return void(this.error="PARSE ERROR:\n"+JSON.stringify(e.errors,null,2));{const t=e.data;this.ROWS=t.map(e=>e.map(e=>({text:e})))}}else if("list2d"in this.tableData)this.ROWS=this.tableData.list2d.map(e=>e.map(e=>({text:e})));else{for(;this.tableData.list.length>e;)this.ROWS.push(this.tableData.list.splice(0,e).map(e=>({text:e})));0!=this.tableData.list.length&&this.ROWS.push(this.tableData.list.map(e=>({text:e})))}0!=this.ROWS.length||(this.error="DATA ERROR: Data is empty")}validateData(){const e=this.COLS.length;this.ROWS.reduce((e,t)=>e+t.length,0)%e==0?this.ROWS.forEach((t,o)=>{const r=t.length;r!=e&&(this.error=`DATA ERROR: Total number of cols (=${e}) and data[${o}] length (=${r}) mismatch`)}):this.error=this.error="DATA ERROR: Data length mismatch. You must provide (numberOfRows * numberOfColumns) amount of data values."}populateTemplate(){const e=this.tableConfig.cellTemplates,t=Object.keys(e||{});e&&t.length&&this.ROWS.forEach((t,o)=>{t.forEach((t,r)=>{for(const i in e){const a=t.text.indexOf(i);if(-1!=a){const l=e[i],d=this.querySelector("#"+l.templateName);if(null==d){console.warn(`cellTemplates["${i}"]: Missing '${l.templateName}' template.`);continue}let s=t.text.replace(i,"");l.contentCb&&(s=l.contentCb({col:r,row:o,content:s,insertIndex:a})),this.ROWS[o][r]={text:s,template:{template:d,templateCb:l.templateCb,insertIndex:"replace"==l.contentUse?-1:a}};break}}})})}setDefaultFilterAndSort(){var e,t;const o=null===(e=this.tableConfig.default)||void 0===e?void 0:e.sort;if(o){const e=this.COLS.find(e=>e.options.id==o.colId);e?this.sort(e,o.order):console.warn(`Cant find ${o.colId} col - for sorting`)}const r=null===(t=this.tableConfig.default)||void 0===t?void 0:t.filter;if(r){const e=this.COLS.find(e=>e.options.id==r.colId);e?e.filter?(e.filter.selectedIndex=r.selectedIndex,e.filter.input=r.input,this.updCols(),this.filter(e)):console.warn(`Cant find filters on ${r.colId} col`):console.warn(`Cant find ${r.colId} col - for filtering`)}}populateTable(){this.populateColumns(),this.populateData(),this.validateData(),this.setDefaultFilterAndSort(),this.populateTemplate()}updateDataInTable(){this.populateData(),this.validateData(),this.populateTemplate()}onDropRow(){this.dragRow!=this.dropRow&&this.drops.push([this.dragRow,this.dropRow]),this.dragRow=-1,this.dropRow=-1,this.dragRowElem&&(this.dragRowElem.setAttribute("draggable","false"),this.dragRowElem=null)}onDropCol(){if(this.dragCol!=this.dropCol){const e=this.COLS[this.dragCol],t=this.COLS[this.dropCol],o=e.group,r=t.group,i=e.index,a=t.index;e.group=r,t.group=o,e.index=a,t.index=i,this.COLS[this.dragCol]=t,this.COLS[this.dropCol]=e,this.ROWS.forEach(e=>{const t=e[this.dragCol],o=e[this.dropCol];e[this.dragCol]=o,e[this.dropCol]=t}),this.updCols(),this.updRows()}this.dragCol=-1,this.dropCol=-1}sort(e,t){e.sorter&&(this.clearSelection(),this.drops=[],this.COLS.forEach(o=>{o.options.id==e.options.id?o.sort=t||("default"==o.sort?"ascending":"ascending"==o.sort?"descending":"default"):o.sort="default"}),this.updCols(),this.requestUpdate(),this["md-table-advanced-change"].emit({type:"sort",order:e.sort}))}filter(e){if(!e.filter)return;this.clearSelection(),this.drops=[];const t=e.filter.input.trim(),o=e.filter.list[e.filter.selectedIndex];e.filter.active=!!t,this.requestUpdate(),t?this["md-table-advanced-change"].emit({type:"filter-on",filter:o,input:t}):this["md-table-advanced-change"].emit({type:"filter-off",filter:e.filter.list[e.filter.selectedIndex]})}selectRow(e){var t;const o=e.row.idx,r=Object.prototype.hasOwnProperty.call(this.selected,o);"multiple"==(null===(t=this.tableConfig.rows)||void 0===t?void 0:t.selectable)?(e.metaKey?r?delete this.selected[o]:this.selected[o]=!0:e.shiftKey||(this.selected={[o]:!0}),this["md-table-advanced-change"].emit({type:"multi-select",rows:Object.keys(this.selected).map(e=>+e)})):r?this.clearSelection():(this.selected={[o]:!0},this["md-table-advanced-change"].emit({type:"select",index:o})),this.requestUpdate("selected")}clearSelection(){this.selected={},this.requestUpdate("selected")}collapseToggle(e,t){e.stopPropagation(),this.expandedRowIdx[t]?(delete this.expandedRowIdx[t],this["md-table-advanced-change"].emit({type:"collapse",row:t})):(this.expandedRowIdx[t]=!0,this["md-table-advanced-change"].emit({type:"expand",row:t})),this.clearSelection(),this.requestUpdate()}render(){if(this.error)return l.html` <div>${this.error}</div> `;const{head:e}=this.tableConfig,t=Object(s.classMap)({"sticky-header":!!this.tableConfig.isStickyHeader});return l.html`
2
+ <div class="md-table-advanced">
3
+ <slot></slot>
4
+ <table class=${t} summary=${Object(n.ifDefined)(null==e?void 0:e.summary)}>
5
+ ${(null==e?void 0:e.caption)?l.html`
6
+ <caption>
7
+ ${null==e?void 0:e.caption}
8
+ ${(null==e?void 0:e.tableDescription)?l.html` <span style="position: absolute; top: -30em">${null==e?void 0:e.tableDescription}</span> `:d.nothing}
9
+ </caption>
10
+ `:(null==e?void 0:e.tableDescription)?l.html`
11
+ <caption>
12
+ <span style="position: absolute; top: -30em">${null==e?void 0:e.tableDescription}</span>
13
+ </caption>
14
+ `:d.nothing}
15
+ ${this.renderHead()} ${this.renderBody()}
16
+ </table>
32
17
  </div>
33
- `}};b([Object(l.property)({type:String})],e.prototype,"tabledata",void 0),b([Object(l.property)({type:Boolean})],e.prototype,"zebra",void 0),b([Object(l.property)({type:Boolean})],e.prototype,"clean",void 0),b([Object(l.property)({type:Boolean})],e.prototype,"sorting",void 0),b([Object(l.property)({type:String})],e.prototype,"nodata",void 0),b([Object(l.property)({type:Boolean})],e.prototype,"stickheader",void 0),b([Object(l.property)({type:String})],e.prototype,"label",void 0),b([Object(l.property)({type:Boolean,attribute:"no-borders"})],e.prototype,"noBorders",void 0),b([Object(l.property)({type:String})],e.prototype,"format",void 0),b([Object(l.property)({type:Array})],e.prototype,"warning",void 0),b([Object(l.property)({type:Array})],e.prototype,"errors",void 0),b([Object(l.internalProperty)()],e.prototype,"sort",void 0),b([Object(l.internalProperty)()],e.prototype,"csvData",void 0),b([Object(l.queryAll)('.md-table__body tr[role="row"]')],e.prototype,"rowTable",void 0),e=b([Object(o.a)("md-table")],e),t.ELEMENT=e}(m||(m={}))}}]);
18
+ `}renderHead(){let e=d.nothing;const t=this.COLS.reduce((e,t)=>!!t.group||e,!1);if(t){let t="";e=l.html`
19
+ ${this.COLS.map(e=>e.group?t!=e.group.name?(t=e.group.name,l.html` <colgroup span=${e.group.length}></colgroup> `):void 0:l.html` <col /> `)}
20
+ <tr tabindex="0">
21
+ ${this.COLS.map(e=>e.group?t!=e.group.name?(t=e.group.name,l.html`
22
+ <th colspan=${e.group.length} scope="colgroup" title="${e.group.name}">
23
+ <div class="head-inner-cell">
24
+ <span>${e.group.name}</span>
25
+ ${this.renderColResize(e)}
26
+ </div>
27
+ </th>
28
+ `):void 0:this.renderCol(e,2))}
29
+ </tr>
30
+ `}const o=l.html`
31
+ <tr tabindex="0">
32
+ ${this.COLS.map(e=>t?e.group?this.renderCol(e):void 0:this.renderCol(e))}
33
+ </tr>
34
+ `;return l.html`
35
+ <thead>
36
+ ${e} ${o}
37
+ </thead>
38
+ `}renderCol(e,t){var o,r;const i=null===(r=null===(o=e.filter)||void 0===o?void 0:o.list[e.filter.selectedIndex])||void 0===r?void 0:r.input,a=Object(s.classMap)({ascending:"ascending"==e.sort,descending:"descending"==e.sort});return l.html`
39
+ <th
40
+ rowspan=${Object(n.ifDefined)(t)}
41
+ width=${Object(n.ifDefined)(e.width?e.width:e.options.width)}
42
+ scope="col"
43
+ part="head-col"
44
+ aria-sort=${e.sort}
45
+ title="${e.options.title}"
46
+ class=${"col-index-"+e.index}
47
+ >
48
+ <!-- DRAG -->
49
+ ${this.renderColDrag(e)}
50
+
51
+ <div class="head-inner-cell">
52
+ <!-- SORT -->
53
+ ${e.sorter?l.html`
54
+ <button class="sortable ${a}" @click=${()=>this.sort(e)}>${e.options.title}</button>
55
+ `:l.html` <span>${e.options.title}</span> `}
56
+
57
+ <!-- FILTER -->
58
+ ${e.filter?l.html`
59
+ <div class="filter-wrap">
60
+ ${e.filter.active?l.html`
61
+ <md-icon
62
+ class="filter-active"
63
+ name="filter-bold"
64
+ size="14"
65
+ iconSet="momentumDesign"
66
+ ></md-icon>
67
+ `:d.nothing}
68
+ <md-menu-overlay placement="bottom" class="filter" custom-width="188px">
69
+ <md-button class="filter-icon" slot="menu-trigger" color="color-none" size="size-none">
70
+ <md-icon slot="icon" name="filter-bold" size="16" iconSet="momentumDesign"></md-icon>
71
+ </md-button>
72
+ <div class="filter-menu" style="width: 100%;">
73
+ <select
74
+ name="filter-type"
75
+ @change=${t=>{e.filter.selectedIndex=t.target.value,this.updCols(),this.filter(e)}}
76
+ >
77
+ ${e.filter.list.map((t,o)=>l.html`
78
+ <option value=${o} ?selected=${e.filter.selectedIndex==o}>${t.label}</option>
79
+ `)}
80
+ </select>
81
+ <input
82
+ type="text"
83
+ placeholder=${i.placeholder}
84
+ maxlength=${Object(n.ifDefined)(i.maxlength)}
85
+ pattern=${Object(n.ifDefined)(i.pattern)}
86
+ .value=${e.filter.input}
87
+ @input=${t=>{e.filter.input=t.target.value,this.updCols(),this.filter(e)}}
88
+ />
89
+ </div>
90
+ </md-menu-overlay>
91
+ </div>
92
+ `:d.nothing}
93
+
94
+ <!-- RESIZE -->
95
+ ${this.renderColResize(e)}
96
+ </div>
97
+ </th>
98
+ `}renderColDrag(e){return this.tableConfig.cols.isDraggable?l.html`
99
+ <div
100
+ draggable="true"
101
+ class="drag-area-col ${Object(s.classMap)({drag:-1!=this.dragCol,over:this.dropCol==e.index&&this.dropCol!=this.dragCol})}"
102
+ @dragstart=${t=>{this.isResizing||-1!=this.dragRow||(this.dragCol=e.index,t.dataTransfer.setDragImage(t.target.parentNode,0,0))}}
103
+ @dragenter=${()=>{this.isResizing||-1!=this.dragRow||(this.dropCol=e.index)}}
104
+ @dragend=${()=>this.onDropCol()}
105
+ ></div>
106
+ `:d.nothing}renderColResize(e){return this.tableConfig.cols.isResizable?l.html`
107
+ ${e.index>0?l.html`
108
+ <div class="resize" draggable="true" @dragstart=${t=>this.onResize(t,e)}></div>
109
+ `:d.nothing}
110
+ `:d.nothing}renderBody(){let e=this.ROWS.map((e,t)=>({cells:e,idx:t,idxDrag:t,collapse:"none",first:0===t,isGhost:!1,children:[]}));const t=this.COLS.length;e=e.filter(e=>{var o;for(let r=0;r<t;r++){const t=this.COLS[r];if(null===(o=t.filter)||void 0===o?void 0:o.active){if(!t.filter.list[t.filter.selectedIndex].predicate(e.cells[r].text,t.filter.input))return!1}}return!0});const o=this.COLS.find(e=>"default"!=e.sort);if(o){const t=this.ROWS.map((e,t)=>({v:e[o.index].text,i:t})),r="ascending"==o.sort?1:-1;let i=[];if("byNumber"==o.sorter)i=t.sort((e,t)=>1==r?+e.v-+t.v:+t.v-+e.v);else if("byString"==o.sorter)i=t.sort((e,t)=>e.v==t.v?0:e.v>t.v?r:-r);else if("function"==typeof o.sorter){const e=o.sorter;i=t.sort((t,o)=>e(t.v,o.v,r))}e=i.map(t=>e[t.i])}const r=this.COLS.find(e=>e.isCollapsable);if(r){const t=r.index,o=e.reduce((e,o)=>{const r=o.cells[t].text,i=e.find(e=>e.key==r);return i?(o.collapse="child",i.children.push(o)):e.push({key:r,root:o,children:[]}),e},[]);e=[],o.forEach(t=>{e.push(t.root),t.root.collapse=0==t.children.length?"none":this.expandedRowIdx[t.root.idx]?"expanded":"collapsed",t.root.children=t.children})}return this.drops.forEach(({0:t,1:o})=>{e.splice(o,0,e.splice(t,1)[0])}),e.forEach((e,t)=>e.idxDrag=t),-1!=this.dragRow&&(e[this.dragRow].isGhost=!0,-1!=this.dropRow&&e.splice(this.dropRow,0,e.splice(this.dragRow,1)[0])),l.html`
111
+ <tbody>
112
+ ${e.map(t=>{const o=e.length,r=t.children.length>0&&"expanded"==t.collapse&&!t.isGhost;return l.html`
113
+ ${this.renderRow(t,o)} ${r?t.children.map(e=>this.renderRow(e,o)):d.nothing}
114
+ `})}
115
+ </tbody>
116
+ `}renderRow(e,t){const o=Object.prototype.hasOwnProperty.call(this.selected,e.idx),r=Object(s.classMap)({selected:o,selectable:this.isSelectable&&!o,ghost:e.isGhost});return l.html`
117
+ <tr
118
+ class=${r}
119
+ tabindex=${Object(n.ifDefined)("true"===this.isRowFocusable?"0":void 0)}
120
+ part=${e.first?"first-row":"row"}
121
+ @click=${({shiftKey:t,metaKey:o})=>{this.isSelectable&&this.selectRow({row:e,shiftKey:t,metaKey:o})}}
122
+ >
123
+ ${e.cells.map((o,r)=>{var i;const a=this.COLS[r];let s=o.text;const n=o.template;n&&(s=n.templateCb?l.html`
124
+ ${f({cb:n.templateCb,insertIndex:n.insertIndex,template:n.template,content:o.text,row:e.idx,col:r})}
125
+ `:l.html` ${Object(c.templateContent)(n.template)} `,-1!=n.insertIndex&&(s=l.html`
126
+ ${n.insertIndex>0?o.text.substring(0,n.insertIndex):d.nothing} ${s}
127
+ ${n.insertIndex<o.text.length-1?o.text.substring(n.insertIndex):d.nothing}
128
+ `));const h=(null===(i=this.tableConfig.rows)||void 0===i?void 0:i.isDraggable)&&"child"!=e.collapse,p=h&&-1!=this.dragRow&&this.dragRow!=e.idxDrag,b=h&&0==r,g=l.html`
129
+ <div
130
+ class="inner-cell"
131
+ draggable="false"
132
+ @dragstart=${()=>{this.isResizing||-1!=this.dragCol||(this.dragRow=e.idxDrag)}}
133
+ @dragend=${()=>this.onDropRow()}
134
+ >
135
+ ${p?l.html`
136
+ <div
137
+ class="drag-area top"
138
+ @dragenter=${()=>{if(0==this.dragRow){const t=e.idxDrag-1;this.dropRow=t>=0?t:0}else this.dropRow=e.idxDrag}}
139
+ ></div>
140
+ <div
141
+ class="drag-area bottom"
142
+ @dragenter=${()=>{if(0==this.dragRow)this.dropRow=e.idxDrag;else{const o=e.idxDrag+1;this.dropRow=o<t?o:t-1}}}
143
+ ></div>
144
+ `:d.nothing}
145
+ ${b?l.html`
146
+ <md-icon
147
+ class="drag-handle"
148
+ @mousedown=${e=>{this.isResizing||-1!=this.dragCol||(this.dragRowElem=e.target.parentNode,this.dragRowElem.setAttribute("draggable","true"))}}
149
+ name="dragger-vertical-bold"
150
+ size="16"
151
+ iconSet="momentumDesign"
152
+ >
153
+ </md-icon>
154
+ `:d.nothing}
155
+ ${a.isCollapsable?l.html`
156
+ ${"expanded"==e.collapse||"collapsed"==e.collapse?l.html`
157
+ <button class="row-collapsible" @click=${t=>this.collapseToggle(t,e.idx)}>
158
+ ${"collapsed"==e.collapse?l.html` <md-icon name="plus-bold" size="12" iconSet="momentumDesign"></md-icon> `:l.html` <md-icon name="minus-bold" size="12" iconSet="momentumDesign"></md-icon> `}
159
+ </button>
160
+ `:d.nothing}
161
+ <span>${"child"==e.collapse?d.nothing:s}</span>
162
+ `:l.html` <span>${s}</span> `}
163
+ </div>
164
+ `;return a.options.isHeader?l.html` <th part="cell-ishead" scope="row" title="${o.text}">${g}</th> `:l.html` <td part=${0===r?"first-cell":"cell"} title="${o.text}">${g}</td> `})}
165
+ </tr>
166
+ `}static get styles(){return[a.a,b]}};y([Object(l.property)({attribute:"config"})],t.prototype,"config",void 0),y([Object(l.property)({attribute:"data"})],t.prototype,"data",void 0),y([Object(l.property)({type:String})],t.prototype,"isRowFocusable",void 0),y([(e,t)=>{const o={get(){return new u(this,void 0!==t?t:e.key)},enumerable:!0,configurable:!0};return void 0!==t?Object.defineProperty(e,t,o):{kind:"method",placement:"prototype",key:e.key,descriptor:o}}],t.prototype,"md-table-advanced-change",void 0),y([Object(l.internalProperty)()],t.prototype,"tableConfig",void 0),y([Object(l.internalProperty)()],t.prototype,"tableData",void 0),y([Object(l.internalProperty)()],t.prototype,"error",void 0),y([Object(l.internalProperty)()],t.prototype,"COLS",void 0),y([Object(l.internalProperty)()],t.prototype,"ROWS",void 0),y([Object(l.internalProperty)()],t.prototype,"dragRow",void 0),y([Object(l.internalProperty)()],t.prototype,"dropRow",void 0),y([Object(l.internalProperty)()],t.prototype,"drops",void 0),y([Object(l.internalProperty)()],t.prototype,"dragCol",void 0),y([Object(l.internalProperty)()],t.prototype,"dropCol",void 0),y([Object(l.queryAll)("tr[tabindex]")],t.prototype,"tableRaws",void 0),y([g(500)],t.prototype,"filter",null),t=y([Object(r.a)("md-table-advanced")],t),e.ELEMENT=t}(w||(w={}))}}]);