@gravitee/ui-components 3.25.3-typescript-8a53edf → 3.25.3-typescript-e7256ca

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 (370) hide show
  1. package/package.json +3 -4
  2. package/src/atoms/gv-autocomplete.d.ts +104 -0
  3. package/src/atoms/gv-autocomplete.js +1 -461
  4. package/src/atoms/gv-button.d.ts +109 -0
  5. package/src/atoms/gv-button.js +1 -410
  6. package/src/atoms/gv-checkbox.d.ts +114 -0
  7. package/src/atoms/gv-checkbox.js +1 -187
  8. package/src/atoms/gv-date-picker-calendar.d.ts +190 -0
  9. package/src/atoms/gv-date-picker-calendar.js +1 -894
  10. package/src/atoms/gv-date-picker-cell.d.ts +80 -0
  11. package/src/atoms/gv-date-picker-cell.js +1 -190
  12. package/src/atoms/gv-date-picker.d.ts +194 -0
  13. package/src/atoms/gv-date-picker.js +1 -671
  14. package/src/atoms/gv-file-upload.d.ts +64 -0
  15. package/src/atoms/gv-file-upload.js +1 -367
  16. package/src/atoms/gv-icon.d.ts +26 -0
  17. package/src/atoms/gv-icon.js +1 -103
  18. package/src/atoms/gv-image.d.ts +45 -0
  19. package/src/atoms/gv-image.js +1 -144
  20. package/src/atoms/gv-input-message.d.ts +20 -0
  21. package/src/atoms/gv-input-message.js +1 -84
  22. package/src/atoms/gv-input.d.ts +246 -0
  23. package/src/atoms/gv-input.js +1 -561
  24. package/src/atoms/gv-link.d.ts +67 -0
  25. package/src/atoms/gv-link.js +1 -210
  26. package/src/atoms/gv-message.d.ts +23 -0
  27. package/src/atoms/gv-message.js +1 -128
  28. package/src/atoms/gv-metric.d.ts +32 -0
  29. package/src/atoms/gv-metric.js +1 -117
  30. package/src/atoms/gv-relative-time.d.ts +45 -0
  31. package/src/atoms/gv-relative-time.js +1 -156
  32. package/src/atoms/gv-select-native.d.ts +174 -0
  33. package/src/atoms/gv-select-native.js +1 -388
  34. package/src/atoms/gv-select.d.ts +71 -0
  35. package/src/atoms/gv-select.js +1 -437
  36. package/src/atoms/gv-spinner.d.ts +10 -0
  37. package/src/atoms/gv-spinner.js +1 -57
  38. package/src/atoms/gv-state.d.ts +50 -0
  39. package/src/atoms/gv-state.js +1 -130
  40. package/src/atoms/gv-switch.d.ts +60 -0
  41. package/src/atoms/gv-switch.js +1 -243
  42. package/src/atoms/gv-tag.d.ts +69 -0
  43. package/src/atoms/gv-tag.js +1 -168
  44. package/src/atoms/gv-text.d.ts +110 -0
  45. package/src/atoms/gv-text.js +1 -168
  46. package/src/charts/gv-chart-bar.d.ts +50 -0
  47. package/src/charts/gv-chart-bar.js +1 -103
  48. package/src/charts/gv-chart-gauge.d.ts +58 -0
  49. package/src/charts/gv-chart-gauge.js +1 -100
  50. package/src/charts/gv-chart-histogram.d.ts +48 -0
  51. package/src/charts/gv-chart-histogram.js +1 -83
  52. package/src/charts/gv-chart-line.d.ts +52 -0
  53. package/src/charts/gv-chart-line.js +1 -224
  54. package/src/charts/gv-chart-map.d.ts +50 -0
  55. package/src/charts/gv-chart-map.js +1 -112
  56. package/src/charts/gv-chart-pie.d.ts +50 -0
  57. package/src/charts/gv-chart-pie.js +1 -91
  58. package/src/index.d.ts +77 -0
  59. package/src/index.js +1 -77
  60. package/src/lib/cron-expression.d.ts +1 -0
  61. package/src/lib/cron-expression.js +1 -205
  62. package/src/lib/date.d.ts +1 -0
  63. package/src/lib/date.js +1 -44
  64. package/src/lib/events.d.ts +1 -0
  65. package/src/lib/events.js +1 -26
  66. package/src/lib/http-client-schema-form.d.ts +68 -0
  67. package/src/lib/http-client-schema-form.js +1 -67
  68. package/src/lib/http.d.ts +222 -0
  69. package/src/lib/http.js +1 -237
  70. package/src/lib/i18n.d.ts +30 -0
  71. package/src/lib/i18n.js +1 -103
  72. package/src/lib/item.d.ts +12 -0
  73. package/src/lib/item.js +1 -118
  74. package/src/lib/properties.d.ts +42 -0
  75. package/src/lib/properties.js +1 -189
  76. package/src/lib/schema-form.d.ts +5 -0
  77. package/src/lib/schema-form.js +1 -44
  78. package/src/lib/studio.d.ts +2 -0
  79. package/src/lib/studio.js +1 -141
  80. package/src/lib/style.d.ts +6 -0
  81. package/src/lib/style.js +1 -41
  82. package/src/lib/text-format.d.ts +6 -0
  83. package/src/lib/text-format.js +1 -69
  84. package/src/lib/theme.d.ts +4 -0
  85. package/src/lib/theme.js +1 -63
  86. package/src/lib/utils.d.ts +9 -0
  87. package/src/lib/utils.js +1 -111
  88. package/src/mixins/chart-element.d.ts +39 -0
  89. package/src/mixins/chart-element.js +1 -165
  90. package/src/mixins/input-element.d.ts +64 -0
  91. package/src/mixins/input-element.js +1 -144
  92. package/src/mixins/item-resource.d.ts +56 -0
  93. package/src/mixins/item-resource.js +1 -120
  94. package/src/mixins/keyboard-element.d.ts +25 -0
  95. package/src/mixins/keyboard-element.js +1 -69
  96. package/src/mixins/update-after-browser.d.ts +11 -0
  97. package/src/mixins/update-after-browser.js +1 -30
  98. package/src/mixins/with-resize-observer.d.ts +12 -0
  99. package/src/mixins/with-resize-observer.js +1 -68
  100. package/src/mixins/with-skeleton-attribute.d.ts +35 -0
  101. package/src/mixins/with-skeleton-attribute.js +1 -112
  102. package/src/molecules/gv-card-full.d.ts +78 -0
  103. package/src/molecules/gv-card-full.js +1 -218
  104. package/src/molecules/gv-card-list.d.ts +33 -0
  105. package/src/molecules/gv-card-list.js +1 -113
  106. package/src/molecules/gv-card.d.ts +65 -0
  107. package/src/molecules/gv-card.js +1 -133
  108. package/src/molecules/gv-category-list.d.ts +17 -0
  109. package/src/molecules/gv-category-list.js +1 -60
  110. package/src/molecules/gv-category.d.ts +64 -0
  111. package/src/molecules/gv-category.js +1 -170
  112. package/src/molecules/gv-code.d.ts +192 -0
  113. package/src/molecules/gv-code.js +1 -359
  114. package/src/molecules/gv-confirm.d.ts +60 -0
  115. package/src/molecules/gv-confirm.js +1 -188
  116. package/src/molecules/gv-cron-editor.d.ts +115 -0
  117. package/src/molecules/gv-cron-editor.js +1 -710
  118. package/src/molecules/gv-dropdown-menu.d.ts +28 -0
  119. package/src/molecules/gv-dropdown-menu.js +1 -116
  120. package/src/molecules/gv-expandable.d.ts +37 -0
  121. package/src/molecules/gv-expandable.js +1 -122
  122. package/src/molecules/gv-expression-language.d.ts +150 -0
  123. package/src/molecules/gv-expression-language.js +1 -270
  124. package/src/molecules/gv-identity-picture.d.ts +44 -0
  125. package/src/molecules/gv-identity-picture.js +1 -148
  126. package/src/molecules/gv-list.d.ts +123 -0
  127. package/src/molecules/gv-list.js +1 -227
  128. package/src/molecules/gv-metrics.d.ts +65 -0
  129. package/src/molecules/gv-metrics.js +1 -162
  130. package/src/molecules/gv-modal.d.ts +64 -0
  131. package/src/molecules/gv-modal.js +1 -213
  132. package/src/molecules/gv-nav.d.ts +41 -0
  133. package/src/molecules/gv-nav.js +1 -196
  134. package/src/molecules/gv-option.d.ts +65 -0
  135. package/src/molecules/gv-option.js +1 -242
  136. package/src/molecules/gv-plans.d.ts +73 -0
  137. package/src/molecules/gv-plans.js +1 -429
  138. package/src/molecules/gv-popover.d.ts +91 -0
  139. package/src/molecules/gv-popover.js +1 -351
  140. package/src/molecules/gv-promote.d.ts +108 -0
  141. package/src/molecules/gv-promote.js +1 -209
  142. package/src/molecules/gv-rating-list.d.ts +77 -0
  143. package/src/molecules/gv-rating-list.js +1 -365
  144. package/src/molecules/gv-rating.d.ts +55 -0
  145. package/src/molecules/gv-rating.js +1 -253
  146. package/src/molecules/gv-row-expandable.d.ts +8 -0
  147. package/src/molecules/gv-row-expandable.js +1 -45
  148. package/src/molecules/gv-row.d.ts +37 -0
  149. package/src/molecules/gv-row.js +1 -210
  150. package/src/molecules/gv-stats.d.ts +53 -0
  151. package/src/molecules/gv-stats.js +1 -121
  152. package/src/molecules/gv-stepper.d.ts +46 -0
  153. package/src/molecules/gv-stepper.js +1 -288
  154. package/src/molecules/gv-table.d.ts +159 -0
  155. package/src/molecules/gv-table.js +1 -685
  156. package/src/molecules/gv-tree.d.ts +44 -0
  157. package/src/molecules/gv-tree.js +1 -250
  158. package/src/organisms/gv-documentation.d.ts +52 -0
  159. package/src/organisms/gv-documentation.js +1 -215
  160. package/src/organisms/gv-header.d.ts +60 -0
  161. package/src/organisms/gv-header.js +1 -288
  162. package/src/organisms/gv-http-client.d.ts +57 -0
  163. package/src/organisms/gv-http-client.js +1 -275
  164. package/src/organisms/gv-menu.d.ts +74 -0
  165. package/src/organisms/gv-menu.js +1 -263
  166. package/src/organisms/gv-newsletter-subscription.d.ts +82 -0
  167. package/src/organisms/gv-newsletter-subscription.js +1 -271
  168. package/src/organisms/gv-pagination.d.ts +63 -0
  169. package/src/organisms/gv-pagination.js +1 -198
  170. package/src/organisms/gv-properties.d.ts +229 -0
  171. package/src/organisms/gv-properties.js +1 -920
  172. package/src/organisms/gv-resizable-views.d.ts +33 -0
  173. package/src/organisms/gv-resizable-views.js +1 -396
  174. package/src/organisms/gv-resources.d.ts +125 -0
  175. package/src/organisms/gv-resources.js +1 -535
  176. package/src/organisms/gv-schema-form-array.d.ts +55 -0
  177. package/src/organisms/gv-schema-form-array.js +1 -250
  178. package/src/organisms/gv-schema-form-control-object.d.ts +64 -0
  179. package/src/organisms/gv-schema-form-control-object.js +1 -154
  180. package/src/organisms/gv-schema-form-control.d.ts +90 -0
  181. package/src/organisms/gv-schema-form-control.js +1 -443
  182. package/src/organisms/gv-schema-form.d.ts +156 -0
  183. package/src/organisms/gv-schema-form.js +1 -751
  184. package/src/organisms/gv-tabs.d.ts +56 -0
  185. package/src/organisms/gv-tabs.js +1 -210
  186. package/src/organisms/gv-user-menu.d.ts +56 -0
  187. package/src/organisms/gv-user-menu.js +1 -314
  188. package/src/organisms/gv-vertical-menu.d.ts +28 -0
  189. package/src/organisms/gv-vertical-menu.js +1 -123
  190. package/src/policy-studio/gv-flow-step.d.ts +142 -0
  191. package/src/policy-studio/gv-flow-step.js +1 -464
  192. package/src/policy-studio/gv-flow.d.ts +89 -0
  193. package/src/policy-studio/gv-flow.js +1 -621
  194. package/src/policy-studio/gv-policy-studio-menu.d.ts +94 -0
  195. package/src/policy-studio/gv-policy-studio-menu.js +1 -750
  196. package/src/policy-studio/gv-policy-studio.d.ts +464 -0
  197. package/src/policy-studio/gv-policy-studio.js +1 -1842
  198. package/src/styles/empty.d.ts +1 -0
  199. package/src/styles/empty.js +1 -36
  200. package/src/styles/input.d.ts +1 -0
  201. package/src/styles/input.js +1 -263
  202. package/src/styles/link.d.ts +1 -0
  203. package/src/styles/link.js +1 -32
  204. package/src/styles/shapes.d.ts +2 -0
  205. package/src/styles/shapes.js +1 -17
  206. package/src/styles/skeleton.d.ts +1 -0
  207. package/src/styles/skeleton.js +1 -53
  208. package/src/styles/zoom.d.ts +1 -0
  209. package/src/styles/zoom.js +1 -40
  210. package/src/theme/gv-theme.d.ts +81 -0
  211. package/src/theme/gv-theme.js +1 -203
  212. package/wc/gv-autocomplete.d.ts +1 -0
  213. package/wc/gv-autocomplete.js +1 -1
  214. package/wc/gv-button.d.ts +1 -0
  215. package/wc/gv-button.js +1 -1
  216. package/wc/gv-card-full.d.ts +1 -0
  217. package/wc/gv-card-full.js +1 -1
  218. package/wc/gv-card-list.d.ts +1 -0
  219. package/wc/gv-card-list.js +1 -1
  220. package/wc/gv-card.d.ts +1 -0
  221. package/wc/gv-card.js +1 -1
  222. package/wc/gv-category-list.d.ts +1 -0
  223. package/wc/gv-category-list.js +1 -1
  224. package/wc/gv-category.d.ts +1 -0
  225. package/wc/gv-category.js +1 -1
  226. package/wc/gv-chart-bar.d.ts +1 -0
  227. package/wc/gv-chart-bar.js +1 -1
  228. package/wc/gv-chart-gauge.d.ts +1 -0
  229. package/wc/gv-chart-gauge.js +1 -1
  230. package/wc/gv-chart-histogram.d.ts +1 -0
  231. package/wc/gv-chart-histogram.js +1 -1
  232. package/wc/gv-chart-line.d.ts +1 -0
  233. package/wc/gv-chart-line.js +1 -1
  234. package/wc/gv-chart-map.d.ts +1 -0
  235. package/wc/gv-chart-map.js +1 -1
  236. package/wc/gv-chart-pie.d.ts +1 -0
  237. package/wc/gv-chart-pie.js +1 -1
  238. package/wc/gv-checkbox.d.ts +1 -0
  239. package/wc/gv-checkbox.js +1 -1
  240. package/wc/gv-code.d.ts +1 -0
  241. package/wc/gv-code.js +1 -1
  242. package/wc/gv-confirm.d.ts +1 -0
  243. package/wc/gv-confirm.js +1 -1
  244. package/wc/gv-cron-editor.d.ts +1 -0
  245. package/wc/gv-cron-editor.js +1 -1
  246. package/wc/gv-date-picker-calendar.d.ts +1 -0
  247. package/wc/gv-date-picker-calendar.js +1 -1
  248. package/wc/gv-date-picker-cell.d.ts +1 -0
  249. package/wc/gv-date-picker-cell.js +1 -1
  250. package/wc/gv-date-picker.d.ts +1 -0
  251. package/wc/gv-date-picker.js +1 -1
  252. package/wc/gv-documentation.d.ts +1 -0
  253. package/wc/gv-documentation.js +1 -1
  254. package/wc/gv-dropdown-menu.d.ts +1 -0
  255. package/wc/gv-dropdown-menu.js +1 -1
  256. package/wc/gv-expandable.d.ts +1 -0
  257. package/wc/gv-expandable.js +1 -1
  258. package/wc/gv-expression-language.d.ts +1 -0
  259. package/wc/gv-expression-language.js +1 -1
  260. package/wc/gv-file-upload.d.ts +1 -0
  261. package/wc/gv-file-upload.js +1 -1
  262. package/wc/gv-flow-step.d.ts +1 -0
  263. package/wc/gv-flow-step.js +1 -1
  264. package/wc/gv-flow.d.ts +1 -0
  265. package/wc/gv-flow.js +1 -1
  266. package/wc/gv-header.d.ts +1 -0
  267. package/wc/gv-header.js +1 -1
  268. package/wc/gv-http-client.d.ts +1 -0
  269. package/wc/gv-http-client.js +1 -1
  270. package/wc/gv-icon.d.ts +1 -0
  271. package/wc/gv-icon.js +1 -1
  272. package/wc/gv-identity-picture.d.ts +1 -0
  273. package/wc/gv-identity-picture.js +1 -1
  274. package/wc/gv-image.d.ts +1 -0
  275. package/wc/gv-image.js +1 -1
  276. package/wc/gv-input-message.d.ts +1 -0
  277. package/wc/gv-input-message.js +1 -1
  278. package/wc/gv-input.d.ts +1 -0
  279. package/wc/gv-input.js +1 -1
  280. package/wc/gv-link.d.ts +1 -0
  281. package/wc/gv-link.js +1 -1
  282. package/wc/gv-list.d.ts +1 -0
  283. package/wc/gv-list.js +1 -1
  284. package/wc/gv-menu.d.ts +1 -0
  285. package/wc/gv-menu.js +1 -1
  286. package/wc/gv-message.d.ts +1 -0
  287. package/wc/gv-message.js +1 -1
  288. package/wc/gv-metric.d.ts +1 -0
  289. package/wc/gv-metric.js +1 -1
  290. package/wc/gv-metrics.d.ts +1 -0
  291. package/wc/gv-metrics.js +1 -1
  292. package/wc/gv-modal.d.ts +1 -0
  293. package/wc/gv-modal.js +1 -1
  294. package/wc/gv-nav.d.ts +1 -0
  295. package/wc/gv-nav.js +1 -1
  296. package/wc/gv-newsletter-subscription.d.ts +1 -0
  297. package/wc/gv-newsletter-subscription.js +1 -1
  298. package/wc/gv-option.d.ts +1 -0
  299. package/wc/gv-option.js +1 -1
  300. package/wc/gv-pagination.d.ts +1 -0
  301. package/wc/gv-pagination.js +1 -1
  302. package/wc/gv-plans.d.ts +1 -0
  303. package/wc/gv-plans.js +1 -1
  304. package/wc/gv-policy-studio-menu.d.ts +1 -0
  305. package/wc/gv-policy-studio-menu.js +1 -1
  306. package/wc/gv-policy-studio.d.ts +1 -0
  307. package/wc/gv-policy-studio.js +1 -1
  308. package/wc/gv-popover.d.ts +1 -0
  309. package/wc/gv-popover.js +1 -1
  310. package/wc/gv-promote.d.ts +1 -0
  311. package/wc/gv-promote.js +1 -1
  312. package/wc/gv-properties.d.ts +1 -0
  313. package/wc/gv-properties.js +1 -1
  314. package/wc/gv-rating-list.d.ts +1 -0
  315. package/wc/gv-rating-list.js +1 -1
  316. package/wc/gv-rating.d.ts +1 -0
  317. package/wc/gv-rating.js +1 -1
  318. package/wc/gv-relative-time.d.ts +1 -0
  319. package/wc/gv-relative-time.js +1 -1
  320. package/wc/gv-resizable-views.d.ts +1 -0
  321. package/wc/gv-resizable-views.js +1 -1
  322. package/wc/gv-resources.d.ts +1 -0
  323. package/wc/gv-resources.js +1 -1
  324. package/wc/gv-row-expandable.d.ts +1 -0
  325. package/wc/gv-row-expandable.js +1 -1
  326. package/wc/gv-row.d.ts +1 -0
  327. package/wc/gv-row.js +1 -1
  328. package/wc/gv-schema-form-array.d.ts +1 -0
  329. package/wc/gv-schema-form-array.js +1 -1
  330. package/wc/gv-schema-form-control-object.d.ts +1 -0
  331. package/wc/gv-schema-form-control-object.js +1 -1
  332. package/wc/gv-schema-form-control.d.ts +1 -0
  333. package/wc/gv-schema-form-control.js +1 -1
  334. package/wc/gv-schema-form.d.ts +1 -0
  335. package/wc/gv-schema-form.js +1 -1
  336. package/wc/gv-select-native.d.ts +1 -0
  337. package/wc/gv-select-native.js +1 -1
  338. package/wc/gv-select.d.ts +1 -0
  339. package/wc/gv-select.js +1 -1
  340. package/wc/gv-spinner.d.ts +1 -0
  341. package/wc/gv-spinner.js +1 -1
  342. package/wc/gv-state.d.ts +1 -0
  343. package/wc/gv-state.js +1 -1
  344. package/wc/gv-stats.d.ts +1 -0
  345. package/wc/gv-stats.js +1 -1
  346. package/wc/gv-stepper.d.ts +1 -0
  347. package/wc/gv-stepper.js +1 -1
  348. package/wc/gv-switch.d.ts +1 -0
  349. package/wc/gv-switch.js +1 -1
  350. package/wc/gv-table.d.ts +1 -0
  351. package/wc/gv-table.js +1 -1
  352. package/wc/gv-tabs.d.ts +1 -0
  353. package/wc/gv-tabs.js +1 -1
  354. package/wc/gv-tag.d.ts +1 -0
  355. package/wc/gv-tag.js +1 -1
  356. package/wc/gv-text.d.ts +1 -0
  357. package/wc/gv-text.js +1 -1
  358. package/wc/gv-theme.d.ts +1 -0
  359. package/wc/gv-theme.js +1 -1
  360. package/wc/gv-tree.d.ts +1 -0
  361. package/wc/gv-tree.js +1 -1
  362. package/wc/gv-user-menu.d.ts +1 -0
  363. package/wc/gv-user-menu.js +1 -1
  364. package/wc/gv-vertical-menu.d.ts +1 -0
  365. package/wc/gv-vertical-menu.js +1 -1
  366. package/CHANGELOG.md +0 -1292
  367. package/LICENSE.txt +0 -202
  368. package/README.md +0 -195
  369. package/src/.eslintrc.js +0 -19
  370. package/src/theme/definition.json +0 -1762
@@ -1,112 +1 @@
1
- /*
2
- * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { css } from 'lit';
17
- import { skeleton } from '../styles/skeleton';
18
- import { empty } from '../styles/empty';
19
-
20
- const timeBeforeSkeleton = 500;
21
- const minimumTimeOfSkeleton = 1000;
22
-
23
- /**
24
- * This is a mixin for withSkeletonStates
25
- * @mixinFunction
26
- */
27
- export function withSkeletonAttribute(ParentClass) {
28
- /**
29
- * @mixinClass
30
- */
31
- return class extends ParentClass {
32
- static get properties() {
33
- return {
34
- /** @required */
35
- _invisible: { type: Boolean, reflect: true },
36
- _skeleton: { type: Boolean, attribute: false },
37
- _error: { type: Boolean, attribute: false },
38
- _empty: { type: Boolean, attribute: false },
39
- };
40
- }
41
-
42
- static get styles() {
43
- return [
44
- skeleton,
45
- empty,
46
- // language=CSS
47
- css`
48
- :host([_invisible]) {
49
- visibility: hidden;
50
- }
51
- `,
52
- ];
53
- }
54
-
55
- constructor() {
56
- super();
57
- this._invisible = true;
58
- this._skeleton = false;
59
- this._error = false;
60
- this._empty = false;
61
- }
62
-
63
- updated(changedProperties) {
64
- if (this._skeletonAttribute != null && changedProperties.has(this._skeletonAttribute)) {
65
- this._error = false;
66
- this._empty = false;
67
- const start = new Date().getTime();
68
- let end = null;
69
- const timer = setTimeout(() => {
70
- this._invisible = false;
71
- this._skeleton = true;
72
- end = new Date().getTime();
73
- }, timeBeforeSkeleton);
74
-
75
- const attribute = this[this._skeletonAttribute];
76
- Promise.resolve(attribute)
77
- .then((value) => {
78
- clearTimeout(timer);
79
- if (end && end - start < minimumTimeOfSkeleton) {
80
- setTimeout(() => {
81
- this[this._skeletonAttribute] = value;
82
- }, minimumTimeOfSkeleton - (end - start));
83
- } else {
84
- this._invisible = value === undefined;
85
- this._skeleton = value === null;
86
- if (value) {
87
- if (Array.isArray(value)) {
88
- this._empty = value.length === 0;
89
- } else {
90
- this._empty = Object.keys(value).length === 0;
91
- }
92
- this[`_${this._skeletonAttribute}`] = value;
93
- }
94
- }
95
- })
96
- .catch((err) => {
97
- clearTimeout(timer);
98
- if (end && end - start < minimumTimeOfSkeleton) {
99
- setTimeout(() => {
100
- this[this._skeletonAttribute] = Promise.reject(err);
101
- }, minimumTimeOfSkeleton - (end - start));
102
- } else {
103
- this._error = true;
104
- this._skeleton = false;
105
- this._empty = false;
106
- this._invisible = false;
107
- }
108
- });
109
- }
110
- }
111
- };
112
- }
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.withSkeletonAttribute=void 0;const t=require("lit"),e=require("../styles/skeleton"),i=require("../styles/empty");exports.withSkeletonAttribute=function(s){return class extends s{static get properties(){return{_invisible:{type:Boolean,reflect:!0},_skeleton:{type:Boolean,attribute:!1},_error:{type:Boolean,attribute:!1},_empty:{type:Boolean,attribute:!1}}}static get styles(){return[e.skeleton,i.empty,t.css`:host([_invisible]){visibility:hidden}`]}constructor(){super(),this._invisible=!0,this._skeleton=!1,this._error=!1,this._empty=!1}updated(t){if(null!=this._skeletonAttribute&&t.has(this._skeletonAttribute)){this._error=!1,this._empty=!1;const t=(new Date).getTime();let e=null;const i=setTimeout((()=>{this._invisible=!1,this._skeleton=!0,e=(new Date).getTime()}),500),s=this[this._skeletonAttribute];Promise.resolve(s).then((s=>{clearTimeout(i),e&&e-t<1e3?setTimeout((()=>{this[this._skeletonAttribute]=s}),1e3-(e-t)):(this._invisible=void 0===s,this._skeleton=null===s,s&&(Array.isArray(s)?this._empty=0===s.length:this._empty=0===Object.keys(s).length,this[`_${this._skeletonAttribute}`]=s))})).catch((s=>{clearTimeout(i),e&&e-t<1e3?setTimeout((()=>{this[this._skeletonAttribute]=Promise.reject(s)}),1e3-(e-t)):(this._error=!0,this._skeleton=!1,this._empty=!1,this._invisible=!1)}))}}}};
@@ -0,0 +1,78 @@
1
+ declare const GvCardFull_base: {
2
+ new (): {
3
+ [x: string]: any;
4
+ _skeletonAttribute: string;
5
+ _onImageLoaded(): void;
6
+ _skeleton: boolean;
7
+ _renderImage(): "" | import("lit-html").TemplateResult<1>;
8
+ _onTagClick(tagValue: any, event: any): void;
9
+ _renderLabels(clickable: any): unknown;
10
+ _renderStates(): unknown;
11
+ _onClickToMetrics(event: any): void;
12
+ _renderMetricsWithRating(): "" | import("lit-html").TemplateResult<1>;
13
+ _renderInfoRating(): "" | import("lit-html").TemplateResult<1>;
14
+ _invisible: boolean;
15
+ _error: boolean;
16
+ _empty: boolean;
17
+ updated(changedProperties: any): void;
18
+ };
19
+ readonly properties: {
20
+ item: {
21
+ type: ObjectConstructor;
22
+ };
23
+ href: {
24
+ type: StringConstructor;
25
+ };
26
+ metrics: {
27
+ type: ObjectConstructor;
28
+ };
29
+ _item: {
30
+ type: ObjectConstructor;
31
+ attribute: boolean;
32
+ };
33
+ _invisible: {
34
+ type: BooleanConstructor;
35
+ reflect: boolean;
36
+ };
37
+ _skeleton: {
38
+ type: BooleanConstructor;
39
+ attribute: boolean;
40
+ };
41
+ _error: {
42
+ type: BooleanConstructor;
43
+ attribute: boolean;
44
+ };
45
+ _empty: {
46
+ type: BooleanConstructor;
47
+ attribute: boolean;
48
+ };
49
+ };
50
+ readonly styles: import("lit").CSSResult[];
51
+ };
52
+ /**
53
+ * Full Card component
54
+ *
55
+ * ## Details
56
+ * * has @theme facet
57
+ *
58
+ * @fires gv-card-full:click - Custom click event
59
+ * @fires gv-tag:click - Custom click event on card labels
60
+ *
61
+ * @attr {Promise<Object>} item - An item.
62
+ * @attr {Promise<Metrics>} metrics - A Metrics.
63
+ *
64
+ * @cssprop {Color} [--gv-card-full--bgc=var(--gv-theme-neutral-color-lightest, #ffffff)] - Background color
65
+ * @cssprop {Length} [--gv-card-full-image--h=65px] - Image height
66
+ * @cssprop {Length} [--gv-card-full-image--w=110px] - Image width
67
+ */
68
+ export class GvCardFull extends GvCardFull_base {
69
+ static get properties(): {
70
+ metrics: {
71
+ type: ObjectConstructor;
72
+ };
73
+ };
74
+ limit: number;
75
+ _onClick(e: any): void;
76
+ render(): import("lit-html").TemplateResult<1>;
77
+ }
78
+ export {};
@@ -1,218 +1 @@
1
- /*
2
- * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { css, html, LitElement } from 'lit';
17
- import { skeleton } from '../styles/skeleton';
18
- import { classMap } from 'lit/directives/class-map';
19
- import '../atoms/gv-image';
20
- import '../atoms/gv-button';
21
- import '../molecules/gv-metrics';
22
- import '../molecules/gv-rating';
23
- import '../atoms/gv-state';
24
- import '../atoms/gv-tag';
25
- import { truncate } from '../lib/utils';
26
- import { i18n } from '../lib/i18n';
27
- import { ItemResource } from '../mixins/item-resource';
28
- import { dispatchCustomEvent } from '../lib/events';
29
- import { getVersion, getTitle, getDescription, getOwner } from '../lib/item';
30
-
31
- /**
32
- * Full Card component
33
- *
34
- * ## Details
35
- * * has @theme facet
36
- *
37
- * @fires gv-card-full:click - Custom click event
38
- * @fires gv-tag:click - Custom click event on card labels
39
- *
40
- * @attr {Promise<Object>} item - An item.
41
- * @attr {Promise<Metrics>} metrics - A Metrics.
42
- *
43
- * @cssprop {Color} [--gv-card-full--bgc=var(--gv-theme-neutral-color-lightest, #ffffff)] - Background color
44
- * @cssprop {Length} [--gv-card-full-image--h=65px] - Image height
45
- * @cssprop {Length} [--gv-card-full-image--w=110px] - Image width
46
- */
47
- export class GvCardFull extends ItemResource(LitElement) {
48
- static get properties() {
49
- return {
50
- metrics: { type: Object },
51
- };
52
- }
53
-
54
- static get styles() {
55
- return [
56
- ...super.styles,
57
- // language=CSS
58
- css`
59
- :host {
60
- box-sizing: border-box;
61
- display: inline-block;
62
- margin: 0.2rem;
63
-
64
- vertical-align: middle;
65
- width: 100%;
66
- max-height: 281px;
67
- line-height: 22px;
68
- font-size: var(--gv-theme-font-size-m, 14px);
69
- }
70
-
71
- gv-identity-picture {
72
- height: var(--gv-card-full-image--h, 65px);
73
- width: var(--gv-card-full-image--w, 110px);
74
- --gv-image--of: contain;
75
- }
76
-
77
- .card {
78
- display: flex;
79
- flex-direction: column;
80
- height: 250px;
81
- border-radius: 4px;
82
- background-color: var(--gv-card-full--bgc, var(--gv-theme-neutral-color-lightest, #ffffff));
83
- color: var(--gv-theme-font-color-dark, #262626);
84
- padding: 16px;
85
- box-shadow: 0 0 0 1px var(--gv-theme-neutral-color, #f5f5f5), 0 1px 3px var(--gv-theme-neutral-color-dark, #bfbfbf);
86
- transition: transform 0.3s;
87
- }
88
-
89
- .card:hover {
90
- transform: translateY(-4px);
91
- box-shadow: 0 20px 40px -14px var(--gv-theme-neutral-color-dark, #bfbfbf);
92
- cursor: pointer;
93
- }
94
-
95
- .card > div {
96
- display: flex;
97
- }
98
-
99
- .image {
100
- min-height: 65px;
101
- min-width: 0;
102
- position: relative;
103
- padding-top: 0.2rem;
104
- }
105
-
106
- .title {
107
- line-height: 22px;
108
- font-size: var(--gv-theme-font-size-l, 16px);
109
- text-transform: capitalize;
110
- font-weight: bold;
111
- padding-bottom: 5px;
112
- }
113
-
114
- .owner {
115
- --gv-icon--c: var(--gv-theme-neutral-color-dark, #bfbfbf);
116
- --gv-icon--s: 16px;
117
- color: var(--gv-theme-neutral-color-dark, #bfbfbf);
118
- display: flex;
119
- padding-bottom: 2px;
120
- line-height: initial;
121
- }
122
-
123
- .content {
124
- flex: 1;
125
- padding: 0 10px 10px 10px;
126
- }
127
-
128
- .version {
129
- color: var(--gv-theme-neutral-color-dark, #d9d9d9);
130
- padding: 10px 8px;
131
- font-size: var(--gv-theme-font-size-s, 12px);
132
- }
133
-
134
- .description {
135
- padding: 0 16px;
136
- margin: 6px 0;
137
- flex: 1;
138
- flex-grow: 1;
139
- max-height: 150px;
140
- overflow: hidden;
141
- text-overflow: ellipsis;
142
- }
143
-
144
- .infos {
145
- display: flex;
146
- border-bottom: 1px solid var(--gv-theme-neutral-color-dark, #d9d9d9);
147
- padding: 0.5rem 0;
148
- justify-content: flex-end;
149
- }
150
-
151
- gv-metrics {
152
- display: flex;
153
- height: 100%;
154
- justify-content: flex-end;
155
- align-items: stretch;
156
- }
157
-
158
- .skeleton .infos {
159
- border-bottom: none;
160
- }
161
-
162
- .labels {
163
- padding: 0 16px;
164
- }
165
-
166
- .error .labels,
167
- .error .infos,
168
- .error .states {
169
- visibility: hidden;
170
- }
171
- `,
172
- skeleton,
173
- ];
174
- }
175
-
176
- constructor() {
177
- super();
178
- this.limit = 150;
179
- }
180
-
181
- _onClick(e) {
182
- if (!this._empty && !this._error && !this._skeleton && !e.target.tagName.toLowerCase().startsWith('gv-metrics')) {
183
- dispatchCustomEvent(this, 'click', this._item);
184
- }
185
- }
186
-
187
- render() {
188
- const title = getTitle(this._item);
189
- const owner = getOwner(this._item);
190
- const classes = { error: this._error || this._empty, card: true };
191
- return html`<div class="${classMap(classes)}" title="${title}" @click="${this._onClick}">
192
- <div class="${classMap({ skeleton: this._skeleton })}">
193
- <div class="${classMap({ image: true })}">${this._renderImage()}</div>
194
- <div class="content">
195
- <div class="${classMap({ title: true })}">${title}</div>
196
- ${owner != null && owner.trim().length > 0
197
- ? html`<div class="owner"><gv-icon shape="general:user" size="8px"></gv-icon>${owner}</div>`
198
- : ''}
199
- <div class="states">${this._renderStates()}</div>
200
- </div>
201
- <div class="version"><span class="${classMap({ skeleton: this._skeleton })}">${getVersion(this._item)}</span></div>
202
- </div>
203
- <div class="${classMap({ skeleton: this._skeleton, description: true })}">
204
- ${truncate(
205
- this._error ? i18n('gv-card-full.error') : this._empty ? i18n('gv-card-full.empty') : getDescription(this._item),
206
- this.limit,
207
- )}
208
- </div>
209
- <span class="${classMap({ skeleton: this._skeleton })}">
210
- <div class="infos">${this._renderMetricsWithRating()}</div>
211
-
212
- <div class="labels">${this._renderLabels(true)}</div>
213
- </span>
214
- </div>`;
215
- }
216
- }
217
-
218
- window.customElements.define('gv-card-full', GvCardFull);
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.GvCardFull=void 0;const e=require("lit"),t=require("../styles/skeleton"),i=require("lit/directives/class-map");require("../atoms/gv-image"),require("../atoms/gv-button"),require("../molecules/gv-metrics"),require("../molecules/gv-rating"),require("../atoms/gv-state"),require("../atoms/gv-tag");const r=require("../lib/utils"),s=require("../lib/i18n"),l=require("../mixins/item-resource"),a=require("../lib/events"),o=require("../lib/item");class n extends((0,l.ItemResource)(e.LitElement)){static get properties(){return{metrics:{type:Object}}}static get styles(){return[...super.styles,e.css`:host{box-sizing:border-box;display:inline-block;margin:.2rem;vertical-align:middle;width:100%;max-height:281px;line-height:22px;font-size:var(--gv-theme-font-size-m,14px)}gv-identity-picture{height:var(--gv-card-full-image--h,65px);width:var(--gv-card-full-image--w,110px);--gv-image--of:contain}.card{display:flex;flex-direction:column;height:250px;border-radius:4px;background-color:var(--gv-card-full--bgc,var(--gv-theme-neutral-color-lightest,#fff));color:var(--gv-theme-font-color-dark,#262626);padding:16px;box-shadow:0 0 0 1px var(--gv-theme-neutral-color,#f5f5f5),0 1px 3px var(--gv-theme-neutral-color-dark,#bfbfbf);transition:transform .3s}.card:hover{transform:translateY(-4px);box-shadow:0 20px 40px -14px var(--gv-theme-neutral-color-dark,#bfbfbf);cursor:pointer}.card>div{display:flex}.image{min-height:65px;min-width:0;position:relative;padding-top:.2rem}.title{line-height:22px;font-size:var(--gv-theme-font-size-l,16px);text-transform:capitalize;font-weight:700;padding-bottom:5px}.owner{--gv-icon--c:var(--gv-theme-neutral-color-dark, #bfbfbf);--gv-icon--s:16px;color:var(--gv-theme-neutral-color-dark,#bfbfbf);display:flex;padding-bottom:2px;line-height:initial}.content{flex:1;padding:0 10px 10px 10px}.version{color:var(--gv-theme-neutral-color-dark,#d9d9d9);padding:10px 8px;font-size:var(--gv-theme-font-size-s,12px)}.description{padding:0 16px;margin:6px 0;flex:1;flex-grow:1;max-height:150px;overflow:hidden;text-overflow:ellipsis}.infos{display:flex;border-bottom:1px solid var(--gv-theme-neutral-color-dark,#d9d9d9);padding:.5rem 0;justify-content:flex-end}gv-metrics{display:flex;height:100%;justify-content:flex-end;align-items:stretch}.skeleton .infos{border-bottom:none}.labels{padding:0 16px}.error .infos,.error .labels,.error .states{visibility:hidden}`,t.skeleton]}constructor(){super(),this.limit=150}_onClick(e){this._empty||this._error||this._skeleton||e.target.tagName.toLowerCase().startsWith("gv-metrics")||(0,a.dispatchCustomEvent)(this,"click",this._item)}render(){const t=(0,o.getTitle)(this._item),l=(0,o.getOwner)(this._item),a={error:this._error||this._empty,card:!0};return e.html`<div class="${(0,i.classMap)(a)}" title="${t}" @click="${this._onClick}"><div class="${(0,i.classMap)({skeleton:this._skeleton})}"><div class="${(0,i.classMap)({image:!0})}">${this._renderImage()}</div><div class="content"><div class="${(0,i.classMap)({title:!0})}">${t}</div>${null!=l&&l.trim().length>0?e.html`<div class="owner"><gv-icon shape="general:user" size="8px"></gv-icon>${l}</div>`:""}<div class="states">${this._renderStates()}</div></div><div class="version"><span class="${(0,i.classMap)({skeleton:this._skeleton})}">${(0,o.getVersion)(this._item)}</span></div></div><div class="${(0,i.classMap)({skeleton:this._skeleton,description:!0})}">${(0,r.truncate)(this._error?(0,s.i18n)("gv-card-full.error"):this._empty?(0,s.i18n)("gv-card-full.empty"):(0,o.getDescription)(this._item),this.limit)}</div><span class="${(0,i.classMap)({skeleton:this._skeleton})}"><div class="infos">${this._renderMetricsWithRating()}</div><div class="labels">${this._renderLabels(!0)}</div></span></div>`}}exports.GvCardFull=n,window.customElements.define("gv-card-full",n);
@@ -0,0 +1,33 @@
1
+ declare const GvCardList_base: {
2
+ new (): {
3
+ [x: string]: any;
4
+ _onResize({ width }: {
5
+ width: any;
6
+ }): void;
7
+ connectedCallback(): Promise<void>;
8
+ _unobserveResize: (() => any) | undefined;
9
+ disconnectedCallback(): void;
10
+ };
11
+ [x: string]: any;
12
+ };
13
+ /**
14
+ * List of cards
15
+ *
16
+ * ## Details
17
+ * * has @theme facet
18
+ */
19
+ export class GvCardList extends GvCardList_base {
20
+ static get properties(): {
21
+ items: {
22
+ type: ArrayConstructor;
23
+ };
24
+ };
25
+ static get styles(): import("lit").CSSResult[];
26
+ breakpoints: {
27
+ width: number[];
28
+ };
29
+ renderItem(item: any, index: any): import("lit-html").TemplateResult<1>;
30
+ render(): "" | import("lit-html").TemplateResult<1>;
31
+ updated(changedProperties: any): void;
32
+ }
33
+ export {};
@@ -1,113 +1 @@
1
- /*
2
- * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { css, LitElement, html } from 'lit';
17
- import { repeat } from 'lit/directives/repeat';
18
- import { withResizeObserver } from '../mixins/with-resize-observer';
19
- import { i18n } from '../lib/i18n';
20
- import './gv-card-full';
21
-
22
- /**
23
- * List of cards
24
- *
25
- * ## Details
26
- * * has @theme facet
27
- */
28
- export class GvCardList extends withResizeObserver(LitElement) {
29
- static get properties() {
30
- return {
31
- items: { type: Array },
32
- };
33
- }
34
-
35
- constructor() {
36
- super();
37
- this.breakpoints = {
38
- width: [845, 1270],
39
- };
40
- }
41
-
42
- static get styles() {
43
- return [
44
- // language=CSS
45
- css`
46
- :host {
47
- box-sizing: border-box;
48
- display: grid;
49
- grid-template-columns: repeat(3, 1fr);
50
- grid-gap: 0.5rem;
51
- }
52
-
53
- :host([w-lt-1270]) .container {
54
- grid-template-columns: repeat(2, 1fr);
55
- }
56
-
57
- :host([w-lt-845]) .container {
58
- display: flex;
59
- flex-direction: column;
60
- }
61
-
62
- :host([w-lt-845]) .container > .item {
63
- flex: 0 1 auto;
64
- }
65
-
66
- .item {
67
- opacity: 0;
68
- transition: opacity 100ms ease-in-out;
69
- }
70
-
71
- .item.show {
72
- opacity: 1;
73
- }
74
- `,
75
- ];
76
- }
77
-
78
- renderItem(item, index) {
79
- const _item = item && item.item ? item.item : null;
80
- const _metrics = item && item.metrics ? item.metrics : null;
81
- return html`<gv-card-full class="item" .item="${_item}" .metrics="${_metrics}"> </gv-card-full>`;
82
- }
83
-
84
- render() {
85
- if (this._error) {
86
- return html`<div>${i18n('gv-card-list.error')}</div>`;
87
- }
88
-
89
- if (this.items) {
90
- return html`${repeat(
91
- this.items,
92
- (item) => item,
93
- (item, index) => this.renderItem(item, index),
94
- )}`;
95
- }
96
- return '';
97
- }
98
-
99
- updated(changedProperties) {
100
- if (changedProperties.has('items')) {
101
- if (this.items && this.items.length > 0) {
102
- const items = this.shadowRoot.querySelectorAll('.item');
103
- items.forEach((item, index) => {
104
- setTimeout(() => {
105
- item.classList.add('show');
106
- }, index * 100);
107
- });
108
- }
109
- }
110
- }
111
- }
112
-
113
- window.customElements.define('gv-card-list', GvCardList);
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.GvCardList=void 0;const e=require("lit"),t=require("lit/directives/repeat"),i=require("../mixins/with-resize-observer"),r=require("../lib/i18n");require("./gv-card-full");class s extends((0,i.withResizeObserver)(e.LitElement)){static get properties(){return{items:{type:Array}}}constructor(){super(),this.breakpoints={width:[845,1270]}}static get styles(){return[e.css`:host{box-sizing:border-box;display:grid;grid-template-columns:repeat(3,1fr);grid-gap:.5rem}:host([w-lt-1270]) .container{grid-template-columns:repeat(2,1fr)}:host([w-lt-845]) .container{display:flex;flex-direction:column}:host([w-lt-845]) .container>.item{flex:0 1 auto}.item{opacity:0;transition:opacity .1s ease-in-out}.item.show{opacity:1}`]}renderItem(t,i){const r=t&&t.item?t.item:null,s=t&&t.metrics?t.metrics:null;return e.html`<gv-card-full class="item" .item="${r}" .metrics="${s}"></gv-card-full>`}render(){return this._error?e.html`<div>${(0,r.i18n)("gv-card-list.error")}</div>`:this.items?e.html`${(0,t.repeat)(this.items,(e=>e),((e,t)=>this.renderItem(e,t)))}`:""}updated(e){if(e.has("items")&&this.items&&this.items.length>0){this.shadowRoot.querySelectorAll(".item").forEach(((e,t)=>{setTimeout((()=>{e.classList.add("show")}),100*t)}))}}}exports.GvCardList=s,window.customElements.define("gv-card-list",s);
@@ -0,0 +1,65 @@
1
+ declare const GvCard_base: {
2
+ new (): {
3
+ [x: string]: any;
4
+ _skeletonAttribute: string;
5
+ _onImageLoaded(): void;
6
+ _skeleton: boolean;
7
+ _renderImage(): "" | import("lit-html").TemplateResult<1>;
8
+ _onTagClick(tagValue: any, event: any): void;
9
+ _renderLabels(clickable: any): unknown;
10
+ _renderStates(): unknown;
11
+ _onClickToMetrics(event: any): void;
12
+ _renderMetricsWithRating(): "" | import("lit-html").TemplateResult<1>;
13
+ _renderInfoRating(): "" | import("lit-html").TemplateResult<1>;
14
+ _invisible: boolean;
15
+ _error: boolean;
16
+ _empty: boolean;
17
+ updated(changedProperties: any): void;
18
+ };
19
+ readonly properties: {
20
+ item: {
21
+ type: ObjectConstructor;
22
+ };
23
+ href: {
24
+ type: StringConstructor;
25
+ };
26
+ metrics: {
27
+ type: ObjectConstructor;
28
+ };
29
+ _item: {
30
+ type: ObjectConstructor;
31
+ attribute: boolean;
32
+ };
33
+ _invisible: {
34
+ type: BooleanConstructor;
35
+ reflect: boolean;
36
+ };
37
+ _skeleton: {
38
+ type: BooleanConstructor;
39
+ attribute: boolean;
40
+ };
41
+ _error: {
42
+ type: BooleanConstructor;
43
+ attribute: boolean;
44
+ };
45
+ _empty: {
46
+ type: BooleanConstructor;
47
+ attribute: boolean;
48
+ };
49
+ };
50
+ readonly styles: import("lit").CSSResult[];
51
+ };
52
+ /**
53
+ * Card component
54
+ *
55
+ * ## Details
56
+ * * has @theme facet
57
+ *
58
+ * @attr {Promise<any>} item - An item.
59
+ *
60
+ * @cssprop {Color} [--gv-card--bgc=var(--gv-theme-neutral-color-lightest, #ffffff)] - Background color
61
+ */
62
+ export class GvCard extends GvCard_base {
63
+ render(): import("lit-html").TemplateResult<1>;
64
+ }
65
+ export {};