@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
@@ -0,0 +1,464 @@
1
+ declare const GvPolicyStudio_base: {
2
+ new (): {
3
+ [x: string]: any;
4
+ _controller: {};
5
+ _handleKeyDown: (e: any) => void;
6
+ _handleKeyUp: (e: any) => void;
7
+ connectedCallback(): void;
8
+ disconnectedCallback(): void;
9
+ _onKeyDown(e: any): void;
10
+ _onKeyUp(e: any): void;
11
+ isPressed(...keys: any[]): boolean;
12
+ onKeyboard(controller: any): void;
13
+ };
14
+ [x: string]: any;
15
+ };
16
+ /**
17
+ * Studio Policy component
18
+ *
19
+ * ⚠️ This component is based on `asciidoctor`, `highlight.js` and `asciidoctor-highlight.js`.
20
+ * To use this component in your project be sure the dependencies are installed or
21
+ * install them with: `npm install asciidoctor highlight.js asciidoctor-highlight.js --save`
22
+ *
23
+ * @fires gv-policy-studio:select-policy - Select policy event
24
+ * @fires gv-policy-studio:save - Event sent when "Save" button is clicked, it contains the whole definition of the API
25
+ * @fires gv-policy-studio:debug - Event sent when validation button of the 'Try it' tab is clicked, it contains the whole definition of the API and the information about the try it request.
26
+ *
27
+ * @attr {Array} policies - Policies available
28
+ * @attr {Array} services - Services available
29
+ * @attr {Array} resourceTypes - Resources types available
30
+ * @attr {Array} propertyProviders - Providers of properties
31
+ * @attr {Array} dynamicPropertySchema - Schema for the dynamic property form
32
+ * @attr {String} tabId - Current tabId to display (design, settings, properties or resources)
33
+ * @attr {Object} definition - The definition of flows
34
+ * @attr {Object} documentation - The documentation to display
35
+ * @attr {Object} flowSchema - The flow form configuration to display in gv-schema-form component
36
+ * @attr {Object} configurationSchema - The form configuration to display in gv-schema-form component
37
+ * @attr {Object} configurationInformation - The information related to api configuration tab
38
+ * @attr {Boolean} isDirty - true if component is dirty
39
+ * @attr {Array} selectedFlowsId - The selected flows id
40
+ * @attr {Boolean} sortable - true if flows are sortable
41
+ * @attr {Boolean} readonly - true if readonly
42
+ * @attr {Boolean} readonly-plans - true if plans' flows can't be modified
43
+ * @attr {Boolean} can-add - true if user can add flow
44
+ * @attr {String} flowsTitle - flows menu title
45
+ * @attr {Boolean} has-policy-filter - true if policies have onRequest/onResponse properties
46
+ * @attr {Boolean} can-debug - true if debug tab should be displayed
47
+ * @attr {Object} debugResponse - true if debug tab should be displayed
48
+ * @attr {Boolean} has-conditional-steps - true if steps can be conditioned
49
+ */
50
+ export class GvPolicyStudio extends GvPolicyStudio_base {
51
+ static get properties(): {
52
+ policies: {
53
+ type: ArrayConstructor;
54
+ };
55
+ services: {
56
+ type: ObjectConstructor;
57
+ };
58
+ resourceTypes: {
59
+ type: ArrayConstructor;
60
+ attribute: string;
61
+ };
62
+ propertyProviders: {
63
+ type: ArrayConstructor;
64
+ attribute: string;
65
+ };
66
+ dynamicPropertySchema: {
67
+ type: ObjectConstructor;
68
+ attribute: string;
69
+ };
70
+ tabId: {
71
+ type: StringConstructor;
72
+ attribute: string;
73
+ };
74
+ _tabId: {
75
+ type: StringConstructor;
76
+ attribute: boolean;
77
+ };
78
+ definition: {
79
+ type: ObjectConstructor;
80
+ };
81
+ _definition: {
82
+ type: ObjectConstructor;
83
+ attribute: boolean;
84
+ };
85
+ documentation: {
86
+ type: ObjectConstructor;
87
+ };
88
+ flowSchema: {
89
+ type: ObjectConstructor;
90
+ attribute: string;
91
+ };
92
+ configurationSchema: {
93
+ type: ObjectConstructor;
94
+ attribute: string;
95
+ };
96
+ _configurationSchema: {
97
+ type: ObjectConstructor;
98
+ attribute: boolean;
99
+ };
100
+ configurationInformation: {
101
+ type: StringConstructor;
102
+ attribute: string;
103
+ };
104
+ isDirty: {
105
+ type: BooleanConstructor;
106
+ attribute: string;
107
+ reflect: boolean;
108
+ };
109
+ _dragPolicy: {
110
+ type: ObjectConstructor;
111
+ attribute: boolean;
112
+ };
113
+ _dropPolicy: {
114
+ type: ObjectConstructor;
115
+ attribute: boolean;
116
+ };
117
+ selectedFlowsId: {
118
+ type: ArrayConstructor;
119
+ attribute: string;
120
+ };
121
+ _selectedFlowsId: {
122
+ type: ArrayConstructor;
123
+ attribute: boolean;
124
+ };
125
+ _currentPolicyId: {
126
+ type: StringConstructor;
127
+ attribute: boolean;
128
+ };
129
+ _searchPolicyQuery: {
130
+ type: StringConstructor;
131
+ attribute: boolean;
132
+ };
133
+ _searchFlowQuery: {
134
+ type: StringConstructor;
135
+ attribute: boolean;
136
+ };
137
+ _flowStepSchema: {
138
+ type: ObjectConstructor;
139
+ attribute: boolean;
140
+ };
141
+ _currentFlowStep: {
142
+ type: ObjectConstructor;
143
+ attribute: boolean;
144
+ };
145
+ _policyFilter: {
146
+ type: ArrayConstructor;
147
+ attribute: boolean;
148
+ };
149
+ _flowFilter: {
150
+ type: ArrayConstructor;
151
+ attribute: boolean;
152
+ };
153
+ _currentAskConfirmation: {
154
+ type: BooleanConstructor;
155
+ attribute: boolean;
156
+ };
157
+ hasProperties: {
158
+ type: BooleanConstructor;
159
+ attribute: string;
160
+ };
161
+ _hasProperties: {
162
+ type: BooleanConstructor;
163
+ attribute: boolean;
164
+ };
165
+ hasResources: {
166
+ type: BooleanConstructor;
167
+ attribute: string;
168
+ };
169
+ hasPolicyFilter: {
170
+ type: BooleanConstructor;
171
+ attribute: string;
172
+ };
173
+ flowsTitle: {
174
+ type: StringConstructor;
175
+ attribute: string;
176
+ };
177
+ sortable: {
178
+ type: BooleanConstructor;
179
+ };
180
+ canAdd: {
181
+ type: BooleanConstructor;
182
+ attribute: string;
183
+ };
184
+ readonly: {
185
+ type: BooleanConstructor;
186
+ };
187
+ readonlyPlans: {
188
+ type: BooleanConstructor;
189
+ attribute: string;
190
+ };
191
+ canDebug: {
192
+ type: BooleanConstructor;
193
+ attribute: string;
194
+ };
195
+ _canDebug: {
196
+ type: BooleanConstructor;
197
+ attribute: boolean;
198
+ };
199
+ debugResponse: {
200
+ type: ObjectConstructor;
201
+ attribute: string;
202
+ };
203
+ hasConditionalSteps: {
204
+ type: BooleanConstructor;
205
+ attribute: string;
206
+ };
207
+ };
208
+ static get styles(): import("lit").CSSResult[];
209
+ isDirty: boolean;
210
+ policies: any[];
211
+ resourceTypes: any[];
212
+ set tabId(arg: any);
213
+ get tabId(): any;
214
+ set selectedFlowsId(arg: any);
215
+ get selectedFlowsId(): any;
216
+ flowsTitle: string;
217
+ sortable: boolean;
218
+ services: {};
219
+ _definition: {
220
+ flows: never[];
221
+ };
222
+ _tabs: {
223
+ id: string;
224
+ title: string;
225
+ icon: string;
226
+ }[];
227
+ _policyFilter: any[];
228
+ _flowFilter: any[];
229
+ set hasProperties(arg: any);
230
+ get hasProperties(): any;
231
+ _hasProperties: any;
232
+ set hasResources(arg: any);
233
+ set canDebug(arg: any);
234
+ get _flowFilterOptions(): {
235
+ id: string;
236
+ title: string;
237
+ icon: string;
238
+ }[] | undefined;
239
+ set hasPolicyFilter(arg: any);
240
+ _policyFilterOptions: {
241
+ id: string;
242
+ title: string;
243
+ icon: string;
244
+ }[] | undefined;
245
+ set configurationSchema(arg: any);
246
+ get configurationSchema(): any;
247
+ _configurationSchema: any;
248
+ _tabId: any;
249
+ set definition(arg: {
250
+ flows: never[];
251
+ });
252
+ get definition(): {
253
+ flows: never[];
254
+ };
255
+ _initialDefinition: any;
256
+ _selectedFlowsId: any;
257
+ _updateSelectedFlows(selectedFlowsId: any): void;
258
+ _selectFirstFlow(dispatch?: boolean): void;
259
+ _getFlowElement(flowId: any): any;
260
+ _onDragEndPolicy(): void;
261
+ _onDropPolicy({ detail }: {
262
+ detail: any;
263
+ }): Promise<void>;
264
+ _dragPolicy: any;
265
+ _dropPolicy: any;
266
+ _currentAskConfirmation: boolean | null | undefined;
267
+ _onDeletePolicy({ detail }: {
268
+ detail: any;
269
+ }): void;
270
+ _onDesign(): void;
271
+ buildSchema({ schema }: {
272
+ schema: any;
273
+ }): any;
274
+ _editFlowStep({ step, flow, policy, group }: {
275
+ step: any;
276
+ flow: any;
277
+ policy: any;
278
+ group: any;
279
+ }): Promise<void>;
280
+ _currentPolicyId: any;
281
+ _onEditFlowStep({ detail: { step, flow, policy, group } }: {
282
+ detail: {
283
+ step: any;
284
+ flow: any;
285
+ policy: any;
286
+ group: any;
287
+ };
288
+ }): Promise<void>;
289
+ _getResizableViews(): any;
290
+ _maximizeTopView(): void;
291
+ _maximizeBottomView(): void;
292
+ _splitMainViews(): void;
293
+ _onChangeFlowStepState({ detail }: {
294
+ detail: any;
295
+ }): void;
296
+ _onCloseFlowStepForm(): Promise<void>;
297
+ _closeFlowStepForm(force?: boolean): Promise<void>;
298
+ _askToValidateForms(): Promise<any>;
299
+ _setCurrentFlowStep(currentFlowStep: any, flowStepSchema: any, force?: boolean): Promise<void>;
300
+ _currentFlowStep: any;
301
+ _flowStepSchema: any;
302
+ _refresh(closeStepForm?: boolean): void;
303
+ _onSelectFlows({ detail }: {
304
+ detail: any;
305
+ }): Promise<void>;
306
+ _onOpenDocumentationFromMenu({ detail: { policy } }: {
307
+ detail: {
308
+ policy: any;
309
+ };
310
+ }): Promise<void>;
311
+ _fetchDocumentation(policy: any): void;
312
+ _onOpenDocumentation(): void;
313
+ _onOpenDocumentationFromForm(): void;
314
+ _findFlowCollection(flowId: any): {
315
+ plan: any;
316
+ flows: any;
317
+ };
318
+ _findFlowById(flowId: any): undefined;
319
+ getSelectedFlow(index?: number): undefined;
320
+ _onTargetPolicy({ detail }: {
321
+ detail: any;
322
+ }): void;
323
+ _onChangeFlowStep({ detail }: {
324
+ detail: any;
325
+ }): void;
326
+ _writeFlowStep(values: any): void;
327
+ _onSubmitFlowStep({ detail }: {
328
+ detail: any;
329
+ }): Promise<void>;
330
+ _onCancelFlow(): void;
331
+ _onSubmitFlow({ detail: { values } }: {
332
+ detail: {
333
+ values: any;
334
+ };
335
+ }): void;
336
+ _onCancelFlowMode(): void;
337
+ _onSubmitFlowMode({ detail: { values } }: {
338
+ detail: {
339
+ values: any;
340
+ };
341
+ }): void;
342
+ _onChangeTab({ detail }: {
343
+ detail: any;
344
+ }): void;
345
+ _changeTabValidator({ from, to }: {
346
+ from: any;
347
+ to: any;
348
+ }): Promise<any>;
349
+ _changeTab(tabId: any): void;
350
+ _onDragStartFlowStep(flow: any, { detail }: {
351
+ detail: any;
352
+ }): void;
353
+ _renderFlowEmptyState(readonlyMode: any): import("lit-html").TemplateResult<1>;
354
+ _renderFlow(index: number | undefined, hasEmptyState: boolean | undefined, readonlyMode: any): import("lit-html").TemplateResult<1>;
355
+ _onFetchResources(event: any): void;
356
+ _renderPolicy(readonlyMode: any): import("lit-html").TemplateResult<1>;
357
+ _getFlowStepForm(): any;
358
+ _onResetFlowStep(): void;
359
+ _generateFlowsId(list: any, force?: boolean): any;
360
+ _generatePlanFlowsId(plan: any, force?: boolean): any;
361
+ _generateFlowStepId(flowId: any, flowKey: any, position: any): string;
362
+ _generateId(prefix: any, list: any, force?: boolean, isFlow?: boolean): any;
363
+ getChildren(): any[];
364
+ getUpdateComplete(): Promise<void>;
365
+ shouldUpdate(changedProperties: any): any;
366
+ updated(props: any): void;
367
+ _renderFlowStepForm(readonlyMode: any): import("lit-html").TemplateResult<1>;
368
+ _onCloseDocumentation(): void;
369
+ documentation: any;
370
+ _onDeleteFlow({ detail }: {
371
+ detail: any;
372
+ }): void;
373
+ get definedFlows(): never[];
374
+ get definedPlans(): any;
375
+ get definedResources(): any;
376
+ get definedProperties(): any;
377
+ _onDuplicateFlow({ detail }: {
378
+ detail: any;
379
+ }): Promise<void>;
380
+ _onChangeFlowState({ detail }: {
381
+ detail: any;
382
+ }): void;
383
+ _onAddFlowPlan({ detail }: {
384
+ detail: any;
385
+ }): Promise<void>;
386
+ _onAddFlow(): Promise<void>;
387
+ _addFlow(collection: any, duplicate?: null): any;
388
+ _createFlowFromSchema(): {};
389
+ _instantiate(propertiesDefinition: any, initiator?: {}): {};
390
+ _deleteFlow(collection: any, flow: any): void;
391
+ _findFlowIndex(list: any, id: any): null;
392
+ _onReorderFlows({ detail: { plan } }: {
393
+ detail: {
394
+ plan: any;
395
+ };
396
+ }): Promise<void>;
397
+ _onSearchPolicy({ detail }: {
398
+ detail: any;
399
+ }): void;
400
+ _searchPolicyQuery: any;
401
+ _onClearPolicy(): void;
402
+ _onSearchFlows({ detail }: {
403
+ detail: any;
404
+ }): void;
405
+ _searchFlowQuery: any;
406
+ _onClearFlows(): void;
407
+ _onResetAll(): Promise<void>;
408
+ _filterNotValidStep(step: any): boolean;
409
+ _removePrivateProperties(o: any): any;
410
+ _submitOrConfirmForms(): any[];
411
+ getPropertiesElement(): any;
412
+ _checkCurrentFlowStep(): Promise<void | any[]>;
413
+ saved(): void;
414
+ _definitionSaved: {
415
+ flows: any[];
416
+ } | null | undefined;
417
+ _buildDefinitionToSave(): {
418
+ flows: any[];
419
+ };
420
+ _buildDefinitionToSend(definitionToSave: any): {
421
+ flows: any;
422
+ };
423
+ _onSaveAll(): void;
424
+ _onDebug(requestEvent: any): void;
425
+ get filteredFlows(): never[] | null;
426
+ get filteredPlans(): any;
427
+ _onFilterFlows({ detail }: {
428
+ detail: any;
429
+ }): void;
430
+ _getFilteredPolicies(): any[];
431
+ _onFilterPolicies({ detail }: {
432
+ detail: any;
433
+ }): void;
434
+ _renderDesign(readonlyMode: any): import("lit-html").TemplateResult<1>;
435
+ _renderDebug(): import("lit-html").TemplateResult<1>;
436
+ _renderConfigurationForm(readonlyMode: any): import("lit-html").TemplateResult<1>;
437
+ _renderFlowForm(readonlyMode: any): import("lit-html").TemplateResult<1> | undefined;
438
+ _onResourcesChange({ detail }: {
439
+ detail: any;
440
+ }): void;
441
+ _onPropertiesChange({ detail }: {
442
+ detail: any;
443
+ }): void;
444
+ _onSaveProvider({ detail }: {
445
+ detail: any;
446
+ }): void;
447
+ _onSwitchEncryptedProperty({ detail }: {
448
+ detail: any;
449
+ }): void;
450
+ render(): import("lit-html").TemplateResult<1>;
451
+ /**
452
+ * Determine if the design view should be in readonly mode or not
453
+ * It is in readonly mode if:
454
+ * the readonly attribute is set to true
455
+ * OR
456
+ * the main selected flow belongs to a plan and the readonly-plans attribute is set to true
457
+ * OR
458
+ * the second flow for comparison belongs to a plan and the readonly-plans attribute is set to true
459
+ * @returns {boolean|*|{type: BooleanConstructor}|{attribute: string, type: BooleanConstructor}|{type: *}|{attribute: string, type: *}}
460
+ * @private
461
+ */
462
+ private _getReadonlyModeForDesign;
463
+ }
464
+ export {};