@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,270 +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 { GvCode } from '../molecules/gv-code';
17
- import { dispatchCustomEvent } from '../lib/events';
18
- import { pickedCompletion, startCompletion } from '@codemirror/autocomplete';
19
- import { keymap } from '@codemirror/view';
20
- import { EditorSelection, Prec } from '@codemirror/state';
21
- import { get } from 'object-path';
22
-
23
- /**
24
- * Expression Language component
25
- *
26
- * @fires gv-expression-language:input - input events with the `value` on `detail`
27
- * @fires gv-expression-language:ready - event dispatch when component is ready
28
- * @fires gv-expression-language:clipboard-copy - event dispatch when component the `value` has been copied to clipboard
29
- *
30
- * @attr {String} label - code language
31
- * @attr {String} value - code content to be highlighted
32
- * @attr {options} Object - options based on codemirror
33
- * @attr {String} placeholder - an example value to display in the input when empty
34
- * @attr {Number} rows - number of rows of the text element
35
- * @attr {Boolean} large - for a large input (only if the field has one row)
36
- * @attr {Boolean} medium - for a medium input (only if the field has one row) (Default)
37
- * @attr {Boolean} small - for a small input (only if the field has one row)
38
- * @attr {Object} grammar - The grammar for Expression Language support
39
- *
40
- * @attr {Boolean} [clipboard=false]- true if field has clipboard button
41
- * @attr {Boolean} [autofocus=false] - true to put the focus on the input
42
- * @attr {Boolean} [readonly=false] - true if field is readonly mode
43
- */
44
- export class GvExpressionLanguage extends GvCode {
45
- static get properties() {
46
- return {
47
- ...super.properties,
48
- grammar: { type: Object },
49
- };
50
- }
51
-
52
- firstUpdated() {
53
- super.firstUpdated();
54
- dispatchCustomEvent(this, 'ready', { currentTarget: this });
55
- }
56
-
57
- getExtensions() {
58
- return [Prec.high(this.insertELKeymap())];
59
- }
60
-
61
- insertELKeymap() {
62
- return keymap.of([
63
- {
64
- key: 'Ctrl-Shift-e',
65
- mac: 'Cmd-Shift-e',
66
- run(view) {
67
- view.dispatch(
68
- view.state.changeByRange((range) => ({
69
- changes: [{ from: range.from, to: range.to, insert: '{#}' }],
70
- range: EditorSelection.range(range.from + 2, range.from + 2),
71
- })),
72
- );
73
- startCompletion(view);
74
- return true;
75
- },
76
- },
77
- ]);
78
- }
79
-
80
- buildMethods(type) {
81
- const modelType = this.getModelType(type);
82
- return modelType.methods.map(({ name, params = [], returnType }) => {
83
- const command = `${name}()`;
84
- const displayParams = params.map((p) => `${p.type} ${p.name}`);
85
- const label = `${name}(${displayParams.join(', ')})`;
86
- const detail = `return ${returnType}`;
87
- return {
88
- type: 'method',
89
- command,
90
- apply: (view, completion, from, to) => {
91
- const anchor = from + name.length + 1;
92
- view.dispatch({
93
- changes: { from, to, insert: completion.command },
94
- selection: { anchor },
95
- userEvent: 'input.complete',
96
- annotations: pickedCompletion.of(view),
97
- });
98
- },
99
- label,
100
- detail,
101
- };
102
- });
103
- }
104
-
105
- findBestAutocompleteHandler(completionContext) {
106
- return this.expressionLanguageCompletionHandlers
107
- .filter((handler) => (this.grammar != null && handler.supportEL === true) || handler.supportEL !== true)
108
- .map((handler) => {
109
- const match = handler.expr ? completionContext.matchBefore(handler.expr) : true;
110
- return { handler, match };
111
- })
112
- .find(({ match, expr }) => match);
113
- }
114
-
115
- getModelType(typeId) {
116
- if (this.grammar != null) {
117
- return get(this.grammar, `_types.${typeId}`);
118
- }
119
- return null;
120
- }
121
-
122
- isMap(typeId) {
123
- return ['Map', 'HttpHeaders', 'MultiValueMap'].includes(typeId);
124
- }
125
-
126
- getEnum(typeId) {
127
- if (this.grammar != null) {
128
- return get(this.grammar, `_enums.${typeId}`);
129
- }
130
- return [''];
131
- }
132
-
133
- convertType(type) {
134
- if (type) {
135
- const lowerType = type.toLowerCase();
136
- if (lowerType === 'string') {
137
- return 'text';
138
- } else if (lowerType === 'httpheaders' || lowerType === 'multivaluemap') {
139
- return 'type';
140
- } else if (lowerType === 'int' || lowerType === 'long') {
141
- return 'variable';
142
- } else if (lowerType.includes('[]')) {
143
- return 'enum';
144
- }
145
- }
146
- return 'variable';
147
- }
148
-
149
- get expressionLanguageCompletionHandlers() {
150
- return [
151
- {
152
- expr: /{#[a-z]*/,
153
- supportEL: true,
154
- run(completionContext, match) {
155
- const prefix = match.text.replaceAll('{#', '');
156
- const from = completionContext.pos - prefix.length;
157
- const options = Object.keys(this.grammar)
158
- .filter((command) => !command.startsWith('_') && command.startsWith(prefix))
159
- .map((command) => {
160
- return {
161
- type: 'variable',
162
- command,
163
- apply: command,
164
- label: command,
165
- };
166
- });
167
- return { from, options };
168
- },
169
- },
170
- {
171
- expr: /{#[a-z]*.[a-zA-Z]*/,
172
- supportEL: true,
173
- run(completionContext, match) {
174
- const tokens = match.text.split('.');
175
- const key = tokens[0].replaceAll('{#', '');
176
- const prefix = tokens[1];
177
- let candidate = this.grammar[key][prefix];
178
- let options = [];
179
- let from = completionContext.pos;
180
- if (candidate) {
181
- if (this.isMap(candidate._type)) {
182
- options = this.getEnum(candidate._type).map((value) => {
183
- const type = this.convertType(candidate._type);
184
- const command = `['${value}'][0]`;
185
- return {
186
- type,
187
- command,
188
- apply: command,
189
- label: value,
190
- };
191
- });
192
- }
193
- } else {
194
- from -= prefix.length;
195
- candidate = this.grammar[key];
196
- if (candidate._type) {
197
- options = this.buildMethods(candidate._type);
198
- } else {
199
- options = Object.keys(candidate)
200
- .filter((command) => !command.startsWith('_') && command.startsWith(prefix))
201
- .map((command) => ({
202
- type: this.convertType(candidate[command]._type),
203
- command,
204
- apply: command,
205
- label: command,
206
- }));
207
- }
208
- }
209
- return { from, options };
210
- },
211
- },
212
- {
213
- expr: /{#[a-z]*.[a-zA-Z]*.[a-zA-Z]*/,
214
- supportEL: true,
215
- run(completionContext, match) {
216
- const tokens = match.text.split('.');
217
- const key = tokens[0].replaceAll('{#', '');
218
- const word = tokens[1];
219
- const prefix = tokens[2];
220
- const candidate = this.grammar[key][word];
221
- let options = [];
222
- let from = completionContext.pos;
223
- if (candidate) {
224
- if (this.isMap(candidate._type)) {
225
- options = this.getEnum(candidate._type)
226
- .filter((command) => !command.startsWith('_') && command.startsWith(prefix))
227
- .map((label) => {
228
- const type = this.convertType(candidate._type);
229
- return {
230
- type,
231
- command: `['${label}'][0]`,
232
- apply(view, completion, _from, to) {
233
- from = _from - prefix.length - 1;
234
- view.dispatch({
235
- changes: { from, to, insert: completion.command },
236
- selection: { anchor: from + completion.command.length },
237
- userEvent: 'input.complete',
238
- annotations: pickedCompletion.of(view),
239
- });
240
- },
241
- label,
242
- };
243
- });
244
- } else {
245
- if (candidate._type) {
246
- options = this.buildMethods(candidate._type);
247
- } else {
248
- from -= prefix.length;
249
- options = Object.keys(candidate)
250
- .filter((command) => command.startsWith(prefix))
251
- .map((command) => {
252
- return {
253
- type: this.convertType(candidate[command]._type),
254
- command,
255
- apply: command,
256
- label: command,
257
- };
258
- });
259
- }
260
- }
261
- }
262
- return { from, options };
263
- },
264
- },
265
- this.defaultCompletionHandler,
266
- ];
267
- }
268
- }
269
-
270
- window.customElements.define('gv-expression-language', GvExpressionLanguage);
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.GvExpressionLanguage=void 0;const e=require("../molecules/gv-code"),t=require("../lib/events"),r=require("@codemirror/autocomplete"),a=require("@codemirror/view"),s=require("@codemirror/state"),n=require("object-path");class p extends e.GvCode{static get properties(){return{...super.properties,grammar:{type:Object}}}firstUpdated(){super.firstUpdated(),(0,t.dispatchCustomEvent)(this,"ready",{currentTarget:this})}getExtensions(){return[s.Prec.high(this.insertELKeymap())]}insertELKeymap(){return a.keymap.of([{key:"Ctrl-Shift-e",mac:"Cmd-Shift-e",run:e=>(e.dispatch(e.state.changeByRange((e=>({changes:[{from:e.from,to:e.to,insert:"{#}"}],range:s.EditorSelection.range(e.from+2,e.from+2)})))),(0,r.startCompletion)(e),!0)}])}buildMethods(e){return this.getModelType(e).methods.map((({name:e,params:t=[],returnType:a})=>{const s=`${e}()`,n=t.map((e=>`${e.type} ${e.name}`));return{type:"method",command:s,apply:(t,a,s,n)=>{const p=s+e.length+1;t.dispatch({changes:{from:s,to:n,insert:a.command},selection:{anchor:p},userEvent:"input.complete",annotations:r.pickedCompletion.of(t)})},label:`${e}(${n.join(", ")})`,detail:`return ${a}`}}))}findBestAutocompleteHandler(e){return this.expressionLanguageCompletionHandlers.filter((e=>null!=this.grammar&&!0===e.supportEL||!0!==e.supportEL)).map((t=>({handler:t,match:!t.expr||e.matchBefore(t.expr)}))).find((({match:e,expr:t})=>e))}getModelType(e){return null!=this.grammar?(0,n.get)(this.grammar,`_types.${e}`):null}isMap(e){return["Map","HttpHeaders","MultiValueMap"].includes(e)}getEnum(e){return null!=this.grammar?(0,n.get)(this.grammar,`_enums.${e}`):[""]}convertType(e){if(e){const t=e.toLowerCase();if("string"===t)return"text";if("httpheaders"===t||"multivaluemap"===t)return"type";if("int"===t||"long"===t)return"variable";if(t.includes("[]"))return"enum"}return"variable"}get expressionLanguageCompletionHandlers(){return[{expr:/{#[a-z]*/,supportEL:!0,run(e,t){const r=t.text.replaceAll("{#","");return{from:e.pos-r.length,options:Object.keys(this.grammar).filter((e=>!e.startsWith("_")&&e.startsWith(r))).map((e=>({type:"variable",command:e,apply:e,label:e})))}}},{expr:/{#[a-z]*.[a-zA-Z]*/,supportEL:!0,run(e,t){const r=t.text.split("."),a=r[0].replaceAll("{#",""),s=r[1];let n=this.grammar[a][s],p=[],i=e.pos;return n?this.isMap(n._type)&&(p=this.getEnum(n._type).map((e=>{const t=`['${e}'][0]`;return{type:this.convertType(n._type),command:t,apply:t,label:e}}))):(i-=s.length,n=this.grammar[a],p=n._type?this.buildMethods(n._type):Object.keys(n).filter((e=>!e.startsWith("_")&&e.startsWith(s))).map((e=>({type:this.convertType(n[e]._type),command:e,apply:e,label:e})))),{from:i,options:p}}},{expr:/{#[a-z]*.[a-zA-Z]*.[a-zA-Z]*/,supportEL:!0,run(e,t){const a=t.text.split("."),s=a[0].replaceAll("{#",""),n=a[1],p=a[2],i=this.grammar[s][n];let o=[],l=e.pos;return i&&(this.isMap(i._type)?o=this.getEnum(i._type).filter((e=>!e.startsWith("_")&&e.startsWith(p))).map((e=>({type:this.convertType(i._type),command:`['${e}'][0]`,apply(e,t,a,s){l=a-p.length-1,e.dispatch({changes:{from:l,to:s,insert:t.command},selection:{anchor:l+t.command.length},userEvent:"input.complete",annotations:r.pickedCompletion.of(e)})},label:e}))):i._type?o=this.buildMethods(i._type):(l-=p.length,o=Object.keys(i).filter((e=>e.startsWith(p))).map((e=>({type:this.convertType(i[e]._type),command:e,apply:e,label:e}))))),{from:l,options:o}}},this.defaultCompletionHandler]}}exports.GvExpressionLanguage=p,window.customElements.define("gv-expression-language",p);
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Identity picture component
3
+ *
4
+ * ## Details
5
+ * * has @theme facet
6
+ *
7
+ * @attr {String} picture - the picture
8
+ * @attr {String} display_name - the display_name of the picture
9
+ * @attr {Boolean} notification - true to display a notification info
10
+ * @attr {Boolean} rounded - true for rounded image/icon
11
+ *
12
+ * @cssprop {Color} [--gv-identity-picture-notification--bgc=var(--gv-theme-color-light, #86c3d0)] - Notification background color
13
+ */
14
+ export class GvIdentityPicture extends LitElement {
15
+ static get properties(): {
16
+ picture: {
17
+ type: StringConstructor;
18
+ };
19
+ display_name: {
20
+ type: StringConstructor;
21
+ };
22
+ _error: {
23
+ type: BooleanConstructor;
24
+ attribute: boolean;
25
+ };
26
+ notification: {
27
+ type: BooleanConstructor;
28
+ };
29
+ rounded: {
30
+ type: BooleanConstructor;
31
+ reflect: boolean;
32
+ };
33
+ skeleton: {
34
+ type: BooleanConstructor;
35
+ };
36
+ };
37
+ static get styles(): import("lit").CSSResult[];
38
+ _onError(): void;
39
+ _error: boolean | undefined;
40
+ _toNumber(size: any): number;
41
+ _onLoaded(): void;
42
+ _getMaxSize(width: any, height: any): number;
43
+ }
44
+ import { LitElement } from "lit-element/lit-element";
@@ -1,148 +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 jdenticon from 'jdenticon';
18
- import { skeleton } from '../styles/skeleton';
19
- import { styleMap } from 'lit/directives/style-map';
20
- import '../atoms/gv-image';
21
-
22
- /**
23
- * Identity picture component
24
- *
25
- * ## Details
26
- * * has @theme facet
27
- *
28
- * @attr {String} picture - the picture
29
- * @attr {String} display_name - the display_name of the picture
30
- * @attr {Boolean} notification - true to display a notification info
31
- * @attr {Boolean} rounded - true for rounded image/icon
32
- *
33
- * @cssprop {Color} [--gv-identity-picture-notification--bgc=var(--gv-theme-color-light, #86c3d0)] - Notification background color
34
- */
35
- export class GvIdentityPicture extends LitElement {
36
- static get properties() {
37
- return {
38
- picture: { type: String },
39
- display_name: { type: String },
40
- _error: { type: Boolean, attribute: false },
41
- notification: { type: Boolean },
42
- rounded: { type: Boolean, reflect: true },
43
- skeleton: { type: Boolean },
44
- };
45
- }
46
-
47
- static get styles() {
48
- return [
49
- skeleton,
50
- // language=CSS
51
- css`
52
- :host {
53
- display: block;
54
- position: relative;
55
- }
56
-
57
- div {
58
- text-align: center;
59
- }
60
-
61
- svg,
62
- .skeleton {
63
- width: auto;
64
- height: auto;
65
- max-width: 100%;
66
- max-height: 100%;
67
- }
68
-
69
- gv-image {
70
- width: 100%;
71
- height: 100%;
72
- --gv-image--of: contain;
73
- }
74
-
75
- :host([rounded]) gv-image,
76
- :host([rounded]) svg {
77
- border: 2px solid var(--gv-theme-neutral-color-lighter, #fafafa);
78
- border-radius: 50%;
79
- box-sizing: border-box;
80
- --gv-image--of: cover;
81
- }
82
-
83
- .notification {
84
- position: absolute;
85
- width: 8px;
86
- height: 8px;
87
- background-clip: padding-box;
88
- border-radius: 50%;
89
- background-color: var(--gv-identity-picture-notification--bgc, var(--gv-theme-color-light, #86c3d0));
90
- }
91
- `,
92
- ];
93
- }
94
-
95
- _onError() {
96
- this._error = true;
97
- }
98
-
99
- _toNumber(size) {
100
- return parseInt(size.replace('px', ''), 10);
101
- }
102
-
103
- _onLoaded() {
104
- this._error = false;
105
- }
106
-
107
- _getMaxSize(width, height) {
108
- return Math.min(this._toNumber(width), this._toNumber(height));
109
- }
110
-
111
- updated(properties) {
112
- if (properties.has('picture')) {
113
- this._error = false;
114
- }
115
- }
116
-
117
- render() {
118
- const { width, height } = window.getComputedStyle(this);
119
- if ((!this.picture || this._error) && width && height) {
120
- const size = this._getMaxSize(width, height);
121
- const container = document.createElement('div');
122
- if (this.skeleton) {
123
- container.classList.add('skeleton');
124
- }
125
- container.title = this.display_name;
126
- container.innerHTML = jdenticon.toSvg(this.display_name, size, { backColor: '#FFF' });
127
- if (this.notification) {
128
- const notification = document.createElement('span');
129
- notification.className = 'notification';
130
- notification.style.left = width;
131
- container.appendChild(notification);
132
- }
133
- return html`${container}`;
134
- }
135
- return html`
136
- <gv-image
137
- src="${this.picture}"
138
- alt="${this.display_name}"
139
- title="${this.display_name}"
140
- @error="${this._onError}"
141
- @gv-image:loaded="${this._onLoaded}"
142
- ></gv-image>
143
- ${this.notification ? html`<span class="notification" style="${styleMap({ left: width })}"></span>` : ''}
144
- `;
145
- }
146
- }
147
-
148
- window.customElements.define('gv-identity-picture', GvIdentityPicture);
1
+ var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.GvIdentityPicture=void 0;const t=require("lit"),i=e(require("jdenticon")),r=require("../styles/skeleton"),o=require("lit/directives/style-map");require("../atoms/gv-image");class n extends t.LitElement{static get properties(){return{picture:{type:String},display_name:{type:String},_error:{type:Boolean,attribute:!1},notification:{type:Boolean},rounded:{type:Boolean,reflect:!0},skeleton:{type:Boolean}}}static get styles(){return[r.skeleton,t.css`:host{display:block;position:relative}div{text-align:center}.skeleton,svg{width:auto;height:auto;max-width:100%;max-height:100%}gv-image{width:100%;height:100%;--gv-image--of:contain}:host([rounded]) gv-image,:host([rounded]) svg{border:2px solid var(--gv-theme-neutral-color-lighter,#fafafa);border-radius:50%;box-sizing:border-box;--gv-image--of:cover}.notification{position:absolute;width:8px;height:8px;background-clip:padding-box;border-radius:50%;background-color:var(--gv-identity-picture-notification--bgc,var(--gv-theme-color-light,#86c3d0))}`]}_onError(){this._error=!0}_toNumber(e){return parseInt(e.replace("px",""),10)}_onLoaded(){this._error=!1}_getMaxSize(e,t){return Math.min(this._toNumber(e),this._toNumber(t))}updated(e){e.has("picture")&&(this._error=!1)}render(){const{width:e,height:r}=window.getComputedStyle(this);if((!this.picture||this._error)&&e&&r){const o=this._getMaxSize(e,r),n=document.createElement("div");if(this.skeleton&&n.classList.add("skeleton"),n.title=this.display_name,n.innerHTML=i.default.toSvg(this.display_name,o,{backColor:"#FFF"}),this.notification){const t=document.createElement("span");t.className="notification",t.style.left=e,n.appendChild(t)}return t.html`${n}`}return t.html`<gv-image src="${this.picture}" alt="${this.display_name}" title="${this.display_name}" @error="${this._onError}" @gv-image:loaded="${this._onLoaded}"></gv-image>${this.notification?t.html`<span class="notification" style="${(0,o.styleMap)({left:e})}"></span>`:""}`}}exports.GvIdentityPicture=n,window.customElements.define("gv-identity-picture",n);
@@ -0,0 +1,123 @@
1
+ declare const GvList_base: {
2
+ new (): {
3
+ [x: string]: any;
4
+ _invisible: boolean;
5
+ _skeleton: boolean;
6
+ _error: boolean;
7
+ _empty: boolean;
8
+ updated(changedProperties: any): void;
9
+ };
10
+ [x: string]: any;
11
+ readonly properties: {
12
+ _invisible: {
13
+ type: BooleanConstructor;
14
+ reflect: boolean;
15
+ };
16
+ _skeleton: {
17
+ type: BooleanConstructor;
18
+ attribute: boolean;
19
+ };
20
+ _error: {
21
+ type: BooleanConstructor;
22
+ attribute: boolean;
23
+ };
24
+ _empty: {
25
+ type: BooleanConstructor;
26
+ attribute: boolean;
27
+ };
28
+ };
29
+ readonly styles: import("lit").CSSResult[];
30
+ };
31
+ /**
32
+ * Connected Applications component
33
+ *
34
+ * ## Details
35
+ * * has @theme facet
36
+ *
37
+ * @fires gv-list:click - Click event from an element of the list
38
+ *
39
+ * @attr {Promise<Array<{Object}>>} items - a list of item.
40
+ * @attr {String} title - title of the list.
41
+ * @attr {Boolean} clickable - true if gv-list element can be clickable.
42
+ *
43
+ * @cssprop {Color} [--gv-list--bgc=var(--gv-theme-neutral-color-lightest, #ffffff)] - Background color
44
+ * @cssprop {Length} [--gv-list-icon--s=20px] - Height and icon width
45
+ * @cssprop {Length} [--gv-list-image--h=40px] - Image height
46
+ * @cssprop {Length} [--gv-list-image--w=40px] - Image width
47
+ */
48
+ export class GvList extends GvList_base {
49
+ static get properties(): {
50
+ items: {
51
+ type: ObjectConstructor;
52
+ };
53
+ title: {
54
+ type: StringConstructor;
55
+ };
56
+ clickable: {
57
+ type: BooleanConstructor;
58
+ };
59
+ _items: {
60
+ type: ObjectConstructor;
61
+ attribute: boolean;
62
+ };
63
+ length: number;
64
+ toString(): string;
65
+ toLocaleString(): string;
66
+ pop(): import("lit").CSSResult | undefined;
67
+ push(...items: import("lit").CSSResult[]): number;
68
+ concat(...items: ConcatArray<import("lit").CSSResult>[]): import("lit").CSSResult[];
69
+ concat(...items: (import("lit").CSSResult | ConcatArray<import("lit").CSSResult>)[]): import("lit").CSSResult[];
70
+ join(separator?: string | undefined): string;
71
+ reverse(): import("lit").CSSResult[];
72
+ shift(): import("lit").CSSResult | undefined;
73
+ slice(start?: number | undefined, end?: number | undefined): import("lit").CSSResult[];
74
+ sort(compareFn?: ((a: import("lit").CSSResult, b: import("lit").CSSResult) => number) | undefined): import("lit").CSSResult[];
75
+ splice(start: number, deleteCount?: number | undefined): import("lit").CSSResult[];
76
+ splice(start: number, deleteCount: number, ...items: import("lit").CSSResult[]): import("lit").CSSResult[];
77
+ unshift(...items: import("lit").CSSResult[]): number;
78
+ indexOf(searchElement: import("lit").CSSResult, fromIndex?: number | undefined): number;
79
+ lastIndexOf(searchElement: import("lit").CSSResult, fromIndex?: number | undefined): number;
80
+ every<S extends import("lit").CSSResult>(predicate: (value: import("lit").CSSResult, index: number, array: import("lit").CSSResult[]) => value is S, thisArg?: any): this is S[];
81
+ every(predicate: (value: import("lit").CSSResult, index: number, array: import("lit").CSSResult[]) => unknown, thisArg?: any): boolean;
82
+ some(predicate: (value: import("lit").CSSResult, index: number, array: import("lit").CSSResult[]) => unknown, thisArg?: any): boolean;
83
+ forEach(callbackfn: (value: import("lit").CSSResult, index: number, array: import("lit").CSSResult[]) => void, thisArg?: any): void;
84
+ map<U>(callbackfn: (value: import("lit").CSSResult, index: number, array: import("lit").CSSResult[]) => U, thisArg?: any): U[];
85
+ filter<S_1 extends import("lit").CSSResult>(predicate: (value: import("lit").CSSResult, index: number, array: import("lit").CSSResult[]) => value is S_1, thisArg?: any): S_1[];
86
+ filter(predicate: (value: import("lit").CSSResult, index: number, array: import("lit").CSSResult[]) => unknown, thisArg?: any): import("lit").CSSResult[];
87
+ reduce(callbackfn: (previousValue: import("lit").CSSResult, currentValue: import("lit").CSSResult, currentIndex: number, array: import("lit").CSSResult[]) => import("lit").CSSResult): import("lit").CSSResult;
88
+ reduce(callbackfn: (previousValue: import("lit").CSSResult, currentValue: import("lit").CSSResult, currentIndex: number, array: import("lit").CSSResult[]) => import("lit").CSSResult, initialValue: import("lit").CSSResult): import("lit").CSSResult;
89
+ reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: import("lit").CSSResult, currentIndex: number, array: import("lit").CSSResult[]) => U_1, initialValue: U_1): U_1;
90
+ reduceRight(callbackfn: (previousValue: import("lit").CSSResult, currentValue: import("lit").CSSResult, currentIndex: number, array: import("lit").CSSResult[]) => import("lit").CSSResult): import("lit").CSSResult;
91
+ reduceRight(callbackfn: (previousValue: import("lit").CSSResult, currentValue: import("lit").CSSResult, currentIndex: number, array: import("lit").CSSResult[]) => import("lit").CSSResult, initialValue: import("lit").CSSResult): import("lit").CSSResult;
92
+ reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: import("lit").CSSResult, currentIndex: number, array: import("lit").CSSResult[]) => U_2, initialValue: U_2): U_2;
93
+ find<S_2 extends import("lit").CSSResult>(predicate: (this: void, value: import("lit").CSSResult, index: number, obj: import("lit").CSSResult[]) => value is S_2, thisArg?: any): S_2 | undefined;
94
+ find(predicate: (value: import("lit").CSSResult, index: number, obj: import("lit").CSSResult[]) => unknown, thisArg?: any): import("lit").CSSResult | undefined;
95
+ findIndex(predicate: (value: import("lit").CSSResult, index: number, obj: import("lit").CSSResult[]) => unknown, thisArg?: any): number;
96
+ fill(value: import("lit").CSSResult, start?: number | undefined, end?: number | undefined): import("lit").CSSResult[];
97
+ copyWithin(target: number, start: number, end?: number | undefined): import("lit").CSSResult[];
98
+ entries(): IterableIterator<[number, import("lit").CSSResult]>;
99
+ keys(): IterableIterator<number>;
100
+ values(): IterableIterator<import("lit").CSSResult>;
101
+ includes(searchElement: import("lit").CSSResult, fromIndex?: number | undefined): boolean;
102
+ flatMap<U_3, This = undefined>(callback: (this: This, value: import("lit").CSSResult, index: number, array: import("lit").CSSResult[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
103
+ flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
104
+ [Symbol.iterator](): IterableIterator<import("lit").CSSResult>;
105
+ [Symbol.unscopables](): {
106
+ copyWithin: boolean;
107
+ entries: boolean;
108
+ fill: boolean;
109
+ find: boolean;
110
+ findIndex: boolean;
111
+ keys: boolean;
112
+ values: boolean;
113
+ };
114
+ };
115
+ _skeletonAttribute: string;
116
+ _onClick(item: any): void;
117
+ _renderImage(item: any): import("lit-html").TemplateResult<1>;
118
+ _renderStatus(subscriptions: any): "" | import("lit-html").TemplateResult<1>;
119
+ _renderItem(item: any): import("lit-html").TemplateResult<1>;
120
+ _renderItems(): "" | import("lit-html").TemplateResult<1>;
121
+ render(): import("lit-html").TemplateResult<1>;
122
+ }
123
+ export {};