@gravitee/ui-components 3.25.3-typescript-ad6021f → 3.25.3-typescript-bfd8f67

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 (188) hide show
  1. package/package.json +5 -8
  2. package/src/atoms/gv-autocomplete.js +1 -461
  3. package/src/atoms/gv-button.js +1 -410
  4. package/src/atoms/gv-checkbox.js +1 -187
  5. package/src/atoms/gv-date-picker-calendar.js +1 -894
  6. package/src/atoms/gv-date-picker-cell.js +1 -190
  7. package/src/atoms/gv-date-picker.js +1 -671
  8. package/src/atoms/gv-file-upload.js +1 -367
  9. package/src/atoms/gv-icon.js +1 -103
  10. package/src/atoms/gv-image.js +1 -144
  11. package/src/atoms/gv-input-message.js +1 -84
  12. package/src/atoms/gv-input.js +1 -561
  13. package/src/atoms/gv-link.js +1 -210
  14. package/src/atoms/gv-message.js +1 -128
  15. package/src/atoms/gv-metric.js +1 -117
  16. package/src/atoms/gv-relative-time.js +1 -156
  17. package/src/atoms/gv-select-native.js +1 -388
  18. package/src/atoms/gv-select.js +1 -437
  19. package/src/atoms/gv-spinner.js +1 -57
  20. package/src/atoms/gv-state.js +1 -130
  21. package/src/atoms/gv-switch.js +1 -243
  22. package/src/atoms/gv-tag.js +1 -168
  23. package/src/atoms/gv-text.js +1 -168
  24. package/src/charts/gv-chart-bar.js +1 -103
  25. package/src/charts/gv-chart-gauge.js +1 -100
  26. package/src/charts/gv-chart-histogram.js +1 -83
  27. package/src/charts/gv-chart-line.js +1 -224
  28. package/src/charts/gv-chart-map.js +1 -112
  29. package/src/charts/gv-chart-pie.js +1 -91
  30. package/src/index.js +1 -77
  31. package/src/lib/cron-expression.js +1 -205
  32. package/src/lib/date.js +1 -44
  33. package/src/lib/events.js +1 -26
  34. package/src/lib/http-client-schema-form.js +1 -67
  35. package/src/lib/http.js +1 -237
  36. package/src/lib/i18n.js +1 -103
  37. package/src/lib/item.js +1 -118
  38. package/src/lib/properties.js +1 -189
  39. package/src/lib/schema-form.js +1 -44
  40. package/src/lib/studio.js +1 -141
  41. package/src/lib/style.js +1 -41
  42. package/src/lib/text-format.js +1 -69
  43. package/src/lib/theme.js +1 -63
  44. package/src/lib/utils.js +1 -111
  45. package/src/mixins/chart-element.js +1 -165
  46. package/src/mixins/input-element.js +1 -144
  47. package/src/mixins/item-resource.js +1 -120
  48. package/src/mixins/keyboard-element.js +1 -69
  49. package/src/mixins/update-after-browser.js +1 -30
  50. package/src/mixins/with-resize-observer.js +1 -68
  51. package/src/mixins/with-skeleton-attribute.js +1 -112
  52. package/src/molecules/gv-card-full.js +1 -218
  53. package/src/molecules/gv-card-list.js +1 -113
  54. package/src/molecules/gv-card.js +1 -133
  55. package/src/molecules/gv-category-list.js +1 -60
  56. package/src/molecules/gv-category.js +1 -170
  57. package/src/molecules/gv-code.js +1 -359
  58. package/src/molecules/gv-confirm.js +1 -188
  59. package/src/molecules/gv-cron-editor.js +1 -710
  60. package/src/molecules/gv-dropdown-menu.js +1 -116
  61. package/src/molecules/gv-expandable.js +1 -122
  62. package/src/molecules/gv-expression-language.js +1 -270
  63. package/src/molecules/gv-identity-picture.js +1 -148
  64. package/src/molecules/gv-list.js +1 -227
  65. package/src/molecules/gv-metrics.js +1 -162
  66. package/src/molecules/gv-modal.js +1 -213
  67. package/src/molecules/gv-nav.js +1 -196
  68. package/src/molecules/gv-option.js +1 -242
  69. package/src/molecules/gv-plans.js +1 -429
  70. package/src/molecules/gv-popover.js +1 -351
  71. package/src/molecules/gv-promote.js +1 -209
  72. package/src/molecules/gv-rating-list.js +1 -365
  73. package/src/molecules/gv-rating.js +1 -253
  74. package/src/molecules/gv-row-expandable.js +1 -45
  75. package/src/molecules/gv-row.js +1 -210
  76. package/src/molecules/gv-stats.js +1 -121
  77. package/src/molecules/gv-stepper.js +1 -288
  78. package/src/molecules/gv-table.js +1 -685
  79. package/src/molecules/gv-tree.js +1 -250
  80. package/src/organisms/gv-documentation.js +1 -215
  81. package/src/organisms/gv-header.js +1 -288
  82. package/src/organisms/gv-http-client.js +1 -275
  83. package/src/organisms/gv-menu.js +1 -263
  84. package/src/organisms/gv-newsletter-subscription.js +1 -271
  85. package/src/organisms/gv-pagination.js +1 -198
  86. package/src/organisms/gv-properties.js +1 -920
  87. package/src/organisms/gv-resizable-views.js +1 -396
  88. package/src/organisms/gv-resources.js +1 -535
  89. package/src/organisms/gv-schema-form-array.js +1 -250
  90. package/src/organisms/gv-schema-form-control-object.js +1 -154
  91. package/src/organisms/gv-schema-form-control.js +1 -443
  92. package/src/organisms/gv-schema-form.js +1 -751
  93. package/src/organisms/gv-tabs.js +1 -210
  94. package/src/organisms/gv-user-menu.js +1 -314
  95. package/src/organisms/gv-vertical-menu.js +1 -123
  96. package/src/policy-studio/gv-flow-step.js +1 -464
  97. package/src/policy-studio/gv-flow.js +1 -621
  98. package/src/policy-studio/gv-policy-studio-menu.js +1 -750
  99. package/src/policy-studio/gv-policy-studio.js +1 -1842
  100. package/src/styles/empty.js +1 -36
  101. package/src/styles/input.js +1 -263
  102. package/src/styles/link.js +1 -32
  103. package/src/styles/shapes.js +1 -17
  104. package/src/styles/skeleton.js +1 -53
  105. package/src/styles/zoom.js +1 -40
  106. package/src/theme/gv-theme.js +1 -203
  107. package/wc/gv-autocomplete.js +1 -1
  108. package/wc/gv-button.js +1 -1
  109. package/wc/gv-card-full.js +1 -1
  110. package/wc/gv-card-list.js +1 -1
  111. package/wc/gv-card.js +1 -1
  112. package/wc/gv-category-list.js +1 -1
  113. package/wc/gv-category.js +1 -1
  114. package/wc/gv-chart-bar.js +1 -1
  115. package/wc/gv-chart-gauge.js +1 -1
  116. package/wc/gv-chart-histogram.js +1 -1
  117. package/wc/gv-chart-line.js +1 -1
  118. package/wc/gv-chart-map.js +1 -1
  119. package/wc/gv-chart-pie.js +1 -1
  120. package/wc/gv-checkbox.js +1 -1
  121. package/wc/gv-code.js +1 -1
  122. package/wc/gv-confirm.js +1 -1
  123. package/wc/gv-cron-editor.js +1 -1
  124. package/wc/gv-date-picker-calendar.js +1 -1
  125. package/wc/gv-date-picker-cell.js +1 -1
  126. package/wc/gv-date-picker.js +1 -1
  127. package/wc/gv-documentation.js +1 -1
  128. package/wc/gv-dropdown-menu.js +1 -1
  129. package/wc/gv-expandable.js +1 -1
  130. package/wc/gv-expression-language.js +1 -1
  131. package/wc/gv-file-upload.js +1 -1
  132. package/wc/gv-flow-step.js +1 -1
  133. package/wc/gv-flow.js +1 -1
  134. package/wc/gv-header.js +1 -1
  135. package/wc/gv-http-client.js +1 -1
  136. package/wc/gv-icon.js +1 -1
  137. package/wc/gv-identity-picture.js +1 -1
  138. package/wc/gv-image.js +1 -1
  139. package/wc/gv-input-message.js +1 -1
  140. package/wc/gv-input.js +1 -1
  141. package/wc/gv-link.js +1 -1
  142. package/wc/gv-list.js +1 -1
  143. package/wc/gv-menu.js +1 -1
  144. package/wc/gv-message.js +1 -1
  145. package/wc/gv-metric.js +1 -1
  146. package/wc/gv-metrics.js +1 -1
  147. package/wc/gv-modal.js +1 -1
  148. package/wc/gv-nav.js +1 -1
  149. package/wc/gv-newsletter-subscription.js +1 -1
  150. package/wc/gv-option.js +1 -1
  151. package/wc/gv-pagination.js +1 -1
  152. package/wc/gv-plans.js +1 -1
  153. package/wc/gv-policy-studio-menu.js +1 -1
  154. package/wc/gv-policy-studio.js +1 -1
  155. package/wc/gv-popover.js +1 -1
  156. package/wc/gv-promote.js +1 -1
  157. package/wc/gv-properties.js +1 -1
  158. package/wc/gv-rating-list.js +1 -1
  159. package/wc/gv-rating.js +1 -1
  160. package/wc/gv-relative-time.js +1 -1
  161. package/wc/gv-resizable-views.js +1 -1
  162. package/wc/gv-resources.js +1 -1
  163. package/wc/gv-row-expandable.js +1 -1
  164. package/wc/gv-row.js +1 -1
  165. package/wc/gv-schema-form-array.js +1 -1
  166. package/wc/gv-schema-form-control-object.js +1 -1
  167. package/wc/gv-schema-form-control.js +1 -1
  168. package/wc/gv-schema-form.js +1 -1
  169. package/wc/gv-select-native.js +1 -1
  170. package/wc/gv-select.js +1 -1
  171. package/wc/gv-spinner.js +1 -1
  172. package/wc/gv-state.js +1 -1
  173. package/wc/gv-stats.js +1 -1
  174. package/wc/gv-stepper.js +1 -1
  175. package/wc/gv-switch.js +1 -1
  176. package/wc/gv-table.js +1 -1
  177. package/wc/gv-tabs.js +1 -1
  178. package/wc/gv-tag.js +1 -1
  179. package/wc/gv-text.js +1 -1
  180. package/wc/gv-theme.js +1 -1
  181. package/wc/gv-tree.js +1 -1
  182. package/wc/gv-user-menu.js +1 -1
  183. package/wc/gv-vertical-menu.js +1 -1
  184. package/CHANGELOG.md +0 -1292
  185. package/LICENSE.txt +0 -202
  186. package/README.md +0 -195
  187. package/src/.eslintrc.js +0 -19
  188. package/src/theme/definition.json +0 -1762
@@ -1,91 +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 { LitElement } from 'lit';
17
- import '../atoms/gv-button';
18
- import '../atoms/gv-tag';
19
- import { ChartElement } from '../mixins/chart-element';
20
- import { dispatchCustomEvent } from '../lib/events';
21
-
22
- /**
23
- * Pie chart component
24
- *
25
- * ⚠️ This component is based on `highcharts`.
26
- * To use this component in your project be sure the dependency is installed or
27
- * install it with: `npm install highcharts --save`
28
- *
29
- * @fires gv-chart-pie:select - Custom event with selected value
30
- *
31
- * @attr {Array} series - The series to display on the pie chart.
32
- * @attr {Array} options - The list of options to display.
33
- *
34
- */
35
- export class GvChartPie extends ChartElement(LitElement) {
36
- async getOptions() {
37
- let total = 0;
38
- if (this._series && this._series.values) {
39
- this.options.data.forEach((data, i) => {
40
- data.y = this._series.values[Object.keys(this._series.values)[i]] || 0;
41
- });
42
- this.options.data.forEach((d) => {
43
- total += d.y;
44
- });
45
- }
46
- if (!total) {
47
- this._empty = true;
48
- }
49
- return {
50
- chart: {
51
- type: 'pie',
52
- },
53
- series: total === 0 ? [] : [this.options],
54
- plotOptions: {
55
- pie: {
56
- allowPointSelect: true,
57
- cursor: 'pointer',
58
- dataLabels: {
59
- enabled: true,
60
- format: '<b>{point.name}</b>: {point.percentage:.1f} %',
61
- },
62
- },
63
- series: {
64
- animation: false,
65
- events: {
66
- click: (event) => {
67
- event.preventDefault();
68
- dispatchCustomEvent(this, 'select', event.point.options);
69
- },
70
- },
71
- },
72
- },
73
- tooltip: {
74
- pointFormat: 'Nb hits: <b>{point.y}</b>',
75
- },
76
- title: {
77
- text: 'Total: ' + total,
78
- useHTML: true,
79
- align: 'left',
80
- verticalAlign: 'bottom',
81
- y: 10,
82
- style: {
83
- fontSize: '12px',
84
- fontWeight: 'bold',
85
- },
86
- },
87
- };
88
- }
89
- }
90
-
91
- window.customElements.define('gv-chart-pie', GvChartPie);
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.GvChartPie=void 0;const e=require("lit");require("../atoms/gv-button"),require("../atoms/gv-tag");const t=require("../mixins/chart-element"),i=require("../lib/events");class s extends((0,t.ChartElement)(e.LitElement)){async getOptions(){let e=0;return this._series&&this._series.values&&(this.options.data.forEach(((e,t)=>{e.y=this._series.values[Object.keys(this._series.values)[t]]||0})),this.options.data.forEach((t=>{e+=t.y}))),e||(this._empty=!0),{chart:{type:"pie"},series:0===e?[]:[this.options],plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!0,format:"<b>{point.name}</b>: {point.percentage:.1f} %"}},series:{animation:!1,events:{click:e=>{e.preventDefault(),(0,i.dispatchCustomEvent)(this,"select",e.point.options)}}}},tooltip:{pointFormat:"Nb hits: <b>{point.y}</b>"},title:{text:"Total: "+e,useHTML:!0,align:"left",verticalAlign:"bottom",y:10,style:{fontSize:"12px",fontWeight:"bold"}}}}}exports.GvChartPie=s,window.customElements.define("gv-chart-pie",s);
package/src/index.js CHANGED
@@ -1,77 +1 @@
1
- export { GvAutocomplete } from './atoms/gv-autocomplete';
2
- export { GvButton } from './atoms/gv-button';
3
- export { GvCheckbox } from './atoms/gv-checkbox';
4
- export { GvDatePickerCalendar } from './atoms/gv-date-picker-calendar';
5
- export { GvDatePickerCell } from './atoms/gv-date-picker-cell';
6
- export { GvDatePicker } from './atoms/gv-date-picker';
7
- export { GvFileUpload } from './atoms/gv-file-upload';
8
- export { GvIcon } from './atoms/gv-icon';
9
- export { GvImage } from './atoms/gv-image';
10
- export { GvInputMessage } from './atoms/gv-input-message';
11
- export { GvInput } from './atoms/gv-input';
12
- export { GvLink } from './atoms/gv-link';
13
- export { GvMessage } from './atoms/gv-message';
14
- export { GvMetric } from './atoms/gv-metric';
15
- export { GvRelativeTime } from './atoms/gv-relative-time';
16
- export { GvSelectNative } from './atoms/gv-select-native';
17
- export { GvSelect } from './atoms/gv-select';
18
- export { GvSpinner } from './atoms/gv-spinner';
19
- export { GvState } from './atoms/gv-state';
20
- export { GvSwitch } from './atoms/gv-switch';
21
- export { GvTag } from './atoms/gv-tag';
22
- export { GvText } from './atoms/gv-text';
23
- export { GvChartBar } from './charts/gv-chart-bar';
24
- export { GvChartGauge } from './charts/gv-chart-gauge';
25
- export { GvChartHistogram } from './charts/gv-chart-histogram';
26
- export { GvChartLine } from './charts/gv-chart-line';
27
- export { GvChartMap } from './charts/gv-chart-map';
28
- export { GvChartPie } from './charts/gv-chart-pie';
29
- export { GvCardFull } from './molecules/gv-card-full';
30
- export { GvCardList } from './molecules/gv-card-list';
31
- export { GvCard } from './molecules/gv-card';
32
- export { GvCategoryList } from './molecules/gv-category-list';
33
- export { GvCategory } from './molecules/gv-category';
34
- export { GvCode } from './molecules/gv-code';
35
- export { GvConfirm } from './molecules/gv-confirm';
36
- export { GvCronEditor } from './molecules/gv-cron-editor';
37
- export { GvDropdownMenu } from './molecules/gv-dropdown-menu';
38
- export { GvExpandable } from './molecules/gv-expandable';
39
- export { GvExpressionLanguage } from './molecules/gv-expression-language';
40
- export { GvIdentityPicture } from './molecules/gv-identity-picture';
41
- export { GvList } from './molecules/gv-list';
42
- export { GvMetrics } from './molecules/gv-metrics';
43
- export { GvModal } from './molecules/gv-modal';
44
- export { GvNav } from './molecules/gv-nav';
45
- export { GvOption } from './molecules/gv-option';
46
- export { GvPlans } from './molecules/gv-plans';
47
- export { GvPopover } from './molecules/gv-popover';
48
- export { GvPromote } from './molecules/gv-promote';
49
- export { GvRatingList } from './molecules/gv-rating-list';
50
- export { GvRating } from './molecules/gv-rating';
51
- export { GvRowExpandable } from './molecules/gv-row-expandable';
52
- export { GvRow } from './molecules/gv-row';
53
- export { GvStats } from './molecules/gv-stats';
54
- export { GvStepper } from './molecules/gv-stepper';
55
- export { GvTable } from './molecules/gv-table';
56
- export { GvTree } from './molecules/gv-tree';
57
- export { GvDocumentation } from './organisms/gv-documentation';
58
- export { GvHeader } from './organisms/gv-header';
59
- export { GvHttpClient } from './organisms/gv-http-client';
60
- export { GvMenu } from './organisms/gv-menu';
61
- export { GvNewsletterSubscription } from './organisms/gv-newsletter-subscription';
62
- export { GvPagination } from './organisms/gv-pagination';
63
- export { GvProperties } from './organisms/gv-properties';
64
- export { GvResizableViews } from './organisms/gv-resizable-views';
65
- export { GvResources } from './organisms/gv-resources';
66
- export { GvSchemaFormArray } from './organisms/gv-schema-form-array';
67
- export { GvSchemaFormControlObject } from './organisms/gv-schema-form-control-object';
68
- export { GvSchemaFormControl } from './organisms/gv-schema-form-control';
69
- export { GvSchemaForm } from './organisms/gv-schema-form';
70
- export { GvTabs } from './organisms/gv-tabs';
71
- export { GvUserMenu } from './organisms/gv-user-menu';
72
- export { GvVerticalMenu } from './organisms/gv-vertical-menu';
73
- export { GvFlowStep } from './policy-studio/gv-flow-step';
74
- export { GvFlow } from './policy-studio/gv-flow';
75
- export { GvPolicyStudioMenu } from './policy-studio/gv-policy-studio-menu';
76
- export { GvPolicyStudio } from './policy-studio/gv-policy-studio';
77
- export { GvTheme } from './theme/gv-theme';
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.GvRating=exports.GvRatingList=exports.GvPromote=exports.GvPopover=exports.GvPlans=exports.GvOption=exports.GvNav=exports.GvModal=exports.GvMetrics=exports.GvList=exports.GvIdentityPicture=exports.GvExpressionLanguage=exports.GvExpandable=exports.GvDropdownMenu=exports.GvCronEditor=exports.GvConfirm=exports.GvCode=exports.GvCategory=exports.GvCategoryList=exports.GvCard=exports.GvCardList=exports.GvCardFull=exports.GvChartPie=exports.GvChartMap=exports.GvChartLine=exports.GvChartHistogram=exports.GvChartGauge=exports.GvChartBar=exports.GvText=exports.GvTag=exports.GvSwitch=exports.GvState=exports.GvSpinner=exports.GvSelect=exports.GvSelectNative=exports.GvRelativeTime=exports.GvMetric=exports.GvMessage=exports.GvLink=exports.GvInput=exports.GvInputMessage=exports.GvImage=exports.GvIcon=exports.GvFileUpload=exports.GvDatePicker=exports.GvDatePickerCell=exports.GvDatePickerCalendar=exports.GvCheckbox=exports.GvButton=exports.GvAutocomplete=void 0,exports.GvTheme=exports.GvPolicyStudio=exports.GvPolicyStudioMenu=exports.GvFlow=exports.GvFlowStep=exports.GvVerticalMenu=exports.GvUserMenu=exports.GvTabs=exports.GvSchemaForm=exports.GvSchemaFormControl=exports.GvSchemaFormControlObject=exports.GvSchemaFormArray=exports.GvResources=exports.GvResizableViews=exports.GvProperties=exports.GvPagination=exports.GvNewsletterSubscription=exports.GvMenu=exports.GvHttpClient=exports.GvHeader=exports.GvDocumentation=exports.GvTree=exports.GvTable=exports.GvStepper=exports.GvStats=exports.GvRow=exports.GvRowExpandable=void 0;var e=require("./atoms/gv-autocomplete");Object.defineProperty(exports,"GvAutocomplete",{enumerable:!0,get:function(){return e.GvAutocomplete}});var r=require("./atoms/gv-button");Object.defineProperty(exports,"GvButton",{enumerable:!0,get:function(){return r.GvButton}});var t=require("./atoms/gv-checkbox");Object.defineProperty(exports,"GvCheckbox",{enumerable:!0,get:function(){return t.GvCheckbox}});var o=require("./atoms/gv-date-picker-calendar");Object.defineProperty(exports,"GvDatePickerCalendar",{enumerable:!0,get:function(){return o.GvDatePickerCalendar}});var n=require("./atoms/gv-date-picker-cell");Object.defineProperty(exports,"GvDatePickerCell",{enumerable:!0,get:function(){return n.GvDatePickerCell}});var i=require("./atoms/gv-date-picker");Object.defineProperty(exports,"GvDatePicker",{enumerable:!0,get:function(){return i.GvDatePicker}});var u=require("./atoms/gv-file-upload");Object.defineProperty(exports,"GvFileUpload",{enumerable:!0,get:function(){return u.GvFileUpload}});var a=require("./atoms/gv-icon");Object.defineProperty(exports,"GvIcon",{enumerable:!0,get:function(){return a.GvIcon}});var v=require("./atoms/gv-image");Object.defineProperty(exports,"GvImage",{enumerable:!0,get:function(){return v.GvImage}});var s=require("./atoms/gv-input-message");Object.defineProperty(exports,"GvInputMessage",{enumerable:!0,get:function(){return s.GvInputMessage}});var p=require("./atoms/gv-input");Object.defineProperty(exports,"GvInput",{enumerable:!0,get:function(){return p.GvInput}});var c=require("./atoms/gv-link");Object.defineProperty(exports,"GvLink",{enumerable:!0,get:function(){return c.GvLink}});var l=require("./atoms/gv-message");Object.defineProperty(exports,"GvMessage",{enumerable:!0,get:function(){return l.GvMessage}});var G=require("./atoms/gv-metric");Object.defineProperty(exports,"GvMetric",{enumerable:!0,get:function(){return G.GvMetric}});var g=require("./atoms/gv-relative-time");Object.defineProperty(exports,"GvRelativeTime",{enumerable:!0,get:function(){return g.GvRelativeTime}});var m=require("./atoms/gv-select-native");Object.defineProperty(exports,"GvSelectNative",{enumerable:!0,get:function(){return m.GvSelectNative}});var b=require("./atoms/gv-select");Object.defineProperty(exports,"GvSelect",{enumerable:!0,get:function(){return b.GvSelect}});var x=require("./atoms/gv-spinner");Object.defineProperty(exports,"GvSpinner",{enumerable:!0,get:function(){return x.GvSpinner}});var f=require("./atoms/gv-state");Object.defineProperty(exports,"GvState",{enumerable:!0,get:function(){return f.GvState}});var d=require("./atoms/gv-switch");Object.defineProperty(exports,"GvSwitch",{enumerable:!0,get:function(){return d.GvSwitch}});var P=require("./atoms/gv-tag");Object.defineProperty(exports,"GvTag",{enumerable:!0,get:function(){return P.GvTag}});var y=require("./atoms/gv-text");Object.defineProperty(exports,"GvText",{enumerable:!0,get:function(){return y.GvText}});var O=require("./charts/gv-chart-bar");Object.defineProperty(exports,"GvChartBar",{enumerable:!0,get:function(){return O.GvChartBar}});var j=require("./charts/gv-chart-gauge");Object.defineProperty(exports,"GvChartGauge",{enumerable:!0,get:function(){return j.GvChartGauge}});var q=require("./charts/gv-chart-histogram");Object.defineProperty(exports,"GvChartHistogram",{enumerable:!0,get:function(){return q.GvChartHistogram}});var h=require("./charts/gv-chart-line");Object.defineProperty(exports,"GvChartLine",{enumerable:!0,get:function(){return h.GvChartLine}});var C=require("./charts/gv-chart-map");Object.defineProperty(exports,"GvChartMap",{enumerable:!0,get:function(){return C.GvChartMap}});var S=require("./charts/gv-chart-pie");Object.defineProperty(exports,"GvChartPie",{enumerable:!0,get:function(){return S.GvChartPie}});var M=require("./molecules/gv-card-full");Object.defineProperty(exports,"GvCardFull",{enumerable:!0,get:function(){return M.GvCardFull}});var w=require("./molecules/gv-card-list");Object.defineProperty(exports,"GvCardList",{enumerable:!0,get:function(){return w.GvCardList}});var F=require("./molecules/gv-card");Object.defineProperty(exports,"GvCard",{enumerable:!0,get:function(){return F.GvCard}});var L=require("./molecules/gv-category-list");Object.defineProperty(exports,"GvCategoryList",{enumerable:!0,get:function(){return L.GvCategoryList}});var R=require("./molecules/gv-category");Object.defineProperty(exports,"GvCategory",{enumerable:!0,get:function(){return R.GvCategory}});var T=require("./molecules/gv-code");Object.defineProperty(exports,"GvCode",{enumerable:!0,get:function(){return T.GvCode}});var k=require("./molecules/gv-confirm");Object.defineProperty(exports,"GvConfirm",{enumerable:!0,get:function(){return k.GvConfirm}});var D=require("./molecules/gv-cron-editor");Object.defineProperty(exports,"GvCronEditor",{enumerable:!0,get:function(){return D.GvCronEditor}});var I=require("./molecules/gv-dropdown-menu");Object.defineProperty(exports,"GvDropdownMenu",{enumerable:!0,get:function(){return I.GvDropdownMenu}});var E=require("./molecules/gv-expandable");Object.defineProperty(exports,"GvExpandable",{enumerable:!0,get:function(){return E.GvExpandable}});var H=require("./molecules/gv-expression-language");Object.defineProperty(exports,"GvExpressionLanguage",{enumerable:!0,get:function(){return H.GvExpressionLanguage}});var N=require("./molecules/gv-identity-picture");Object.defineProperty(exports,"GvIdentityPicture",{enumerable:!0,get:function(){return N.GvIdentityPicture}});var A=require("./molecules/gv-list");Object.defineProperty(exports,"GvList",{enumerable:!0,get:function(){return A.GvList}});var B=require("./molecules/gv-metrics");Object.defineProperty(exports,"GvMetrics",{enumerable:!0,get:function(){return B.GvMetrics}});var U=require("./molecules/gv-modal");Object.defineProperty(exports,"GvModal",{enumerable:!0,get:function(){return U.GvModal}});var V=require("./molecules/gv-nav");Object.defineProperty(exports,"GvNav",{enumerable:!0,get:function(){return V.GvNav}});var z=require("./molecules/gv-option");Object.defineProperty(exports,"GvOption",{enumerable:!0,get:function(){return z.GvOption}});var _=require("./molecules/gv-plans");Object.defineProperty(exports,"GvPlans",{enumerable:!0,get:function(){return _.GvPlans}});var J=require("./molecules/gv-popover");Object.defineProperty(exports,"GvPopover",{enumerable:!0,get:function(){return J.GvPopover}});var K=require("./molecules/gv-promote");Object.defineProperty(exports,"GvPromote",{enumerable:!0,get:function(){return K.GvPromote}});var Q=require("./molecules/gv-rating-list");Object.defineProperty(exports,"GvRatingList",{enumerable:!0,get:function(){return Q.GvRatingList}});var W=require("./molecules/gv-rating");Object.defineProperty(exports,"GvRating",{enumerable:!0,get:function(){return W.GvRating}});var X=require("./molecules/gv-row-expandable");Object.defineProperty(exports,"GvRowExpandable",{enumerable:!0,get:function(){return X.GvRowExpandable}});var Y=require("./molecules/gv-row");Object.defineProperty(exports,"GvRow",{enumerable:!0,get:function(){return Y.GvRow}});var Z=require("./molecules/gv-stats");Object.defineProperty(exports,"GvStats",{enumerable:!0,get:function(){return Z.GvStats}});var $=require("./molecules/gv-stepper");Object.defineProperty(exports,"GvStepper",{enumerable:!0,get:function(){return $.GvStepper}});var ee=require("./molecules/gv-table");Object.defineProperty(exports,"GvTable",{enumerable:!0,get:function(){return ee.GvTable}});var re=require("./molecules/gv-tree");Object.defineProperty(exports,"GvTree",{enumerable:!0,get:function(){return re.GvTree}});var te=require("./organisms/gv-documentation");Object.defineProperty(exports,"GvDocumentation",{enumerable:!0,get:function(){return te.GvDocumentation}});var oe=require("./organisms/gv-header");Object.defineProperty(exports,"GvHeader",{enumerable:!0,get:function(){return oe.GvHeader}});var ne=require("./organisms/gv-http-client");Object.defineProperty(exports,"GvHttpClient",{enumerable:!0,get:function(){return ne.GvHttpClient}});var ie=require("./organisms/gv-menu");Object.defineProperty(exports,"GvMenu",{enumerable:!0,get:function(){return ie.GvMenu}});var ue=require("./organisms/gv-newsletter-subscription");Object.defineProperty(exports,"GvNewsletterSubscription",{enumerable:!0,get:function(){return ue.GvNewsletterSubscription}});var ae=require("./organisms/gv-pagination");Object.defineProperty(exports,"GvPagination",{enumerable:!0,get:function(){return ae.GvPagination}});var ve=require("./organisms/gv-properties");Object.defineProperty(exports,"GvProperties",{enumerable:!0,get:function(){return ve.GvProperties}});var se=require("./organisms/gv-resizable-views");Object.defineProperty(exports,"GvResizableViews",{enumerable:!0,get:function(){return se.GvResizableViews}});var pe=require("./organisms/gv-resources");Object.defineProperty(exports,"GvResources",{enumerable:!0,get:function(){return pe.GvResources}});var ce=require("./organisms/gv-schema-form-array");Object.defineProperty(exports,"GvSchemaFormArray",{enumerable:!0,get:function(){return ce.GvSchemaFormArray}});var le=require("./organisms/gv-schema-form-control-object");Object.defineProperty(exports,"GvSchemaFormControlObject",{enumerable:!0,get:function(){return le.GvSchemaFormControlObject}});var Ge=require("./organisms/gv-schema-form-control");Object.defineProperty(exports,"GvSchemaFormControl",{enumerable:!0,get:function(){return Ge.GvSchemaFormControl}});var ge=require("./organisms/gv-schema-form");Object.defineProperty(exports,"GvSchemaForm",{enumerable:!0,get:function(){return ge.GvSchemaForm}});var me=require("./organisms/gv-tabs");Object.defineProperty(exports,"GvTabs",{enumerable:!0,get:function(){return me.GvTabs}});var be=require("./organisms/gv-user-menu");Object.defineProperty(exports,"GvUserMenu",{enumerable:!0,get:function(){return be.GvUserMenu}});var xe=require("./organisms/gv-vertical-menu");Object.defineProperty(exports,"GvVerticalMenu",{enumerable:!0,get:function(){return xe.GvVerticalMenu}});var fe=require("./policy-studio/gv-flow-step");Object.defineProperty(exports,"GvFlowStep",{enumerable:!0,get:function(){return fe.GvFlowStep}});var de=require("./policy-studio/gv-flow");Object.defineProperty(exports,"GvFlow",{enumerable:!0,get:function(){return de.GvFlow}});var Pe=require("./policy-studio/gv-policy-studio-menu");Object.defineProperty(exports,"GvPolicyStudioMenu",{enumerable:!0,get:function(){return Pe.GvPolicyStudioMenu}});var ye=require("./policy-studio/gv-policy-studio");Object.defineProperty(exports,"GvPolicyStudio",{enumerable:!0,get:function(){return ye.GvPolicyStudio}});var Oe=require("./theme/gv-theme");Object.defineProperty(exports,"GvTheme",{enumerable:!0,get:function(){return Oe.GvTheme}});
@@ -1,205 +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
- // This comes from the fact that parseInt trims characters coming
17
- // after digits and consider it a valid int, so `1*` becomes `1`.
18
- const safeParseInt = (value) => {
19
- if (/^\d+$/.test(value)) {
20
- return Number(value);
21
- } else {
22
- return NaN;
23
- }
24
- };
25
-
26
- const isWildcard = (value) => {
27
- return value === '*';
28
- };
29
-
30
- const isQuestionMark = (value) => {
31
- return value === '?';
32
- };
33
-
34
- const isInRange = (value, start, stop) => {
35
- return value >= start && value <= stop;
36
- };
37
-
38
- const isValidRange = (value, start, stop) => {
39
- const sides = value.split('-');
40
- switch (sides.length) {
41
- case 1:
42
- return isWildcard(value) || isInRange(safeParseInt(value), start, stop);
43
- case 2:
44
- // eslint-disable-next-line no-case-declarations
45
- const [small, big] = sides.map((side) => safeParseInt(side));
46
- return small <= big && isInRange(small, start, stop) && isInRange(big, start, stop);
47
- default:
48
- return false;
49
- }
50
- };
51
-
52
- const isValidStep = (value) => {
53
- return value === undefined || value.search(/[^\d]/) === -1;
54
- };
55
-
56
- const validateForRange = (value, start, stop) => {
57
- if (value.search(/[^\d-,/*]/) !== -1) {
58
- return false;
59
- }
60
-
61
- const list = value.split(',');
62
- return list.every((condition) => {
63
- const splits = condition.split('/');
64
- // Prevents `*/ * * * *` from being accepted.
65
- if (condition.trim().endsWith('/')) {
66
- return false;
67
- }
68
-
69
- // Prevents `*/*/* * * * *` from being accepted
70
- if (splits.length > 2) {
71
- return false;
72
- }
73
-
74
- // If we don't have a `/`, right will be undefined which is considered a valid step if we don't a `/`.
75
- const [left, right] = splits;
76
- return isValidRange(left, start, stop) && isValidStep(right);
77
- });
78
- };
79
-
80
- const hasValidSeconds = (seconds) => {
81
- return validateForRange(seconds, 0, 59);
82
- };
83
-
84
- const hasValidMinutes = (minutes) => {
85
- return validateForRange(minutes, 0, 59);
86
- };
87
-
88
- const hasValidHours = (hours) => {
89
- return validateForRange(hours, 0, 23);
90
- };
91
-
92
- const hasValidDays = (days, allowBlankDay) => {
93
- return (allowBlankDay && isQuestionMark(days)) || validateForRange(days, 1, 31);
94
- };
95
-
96
- const monthAlias = {
97
- jan: '1',
98
- feb: '2',
99
- mar: '3',
100
- apr: '4',
101
- may: '5',
102
- jun: '6',
103
- jul: '7',
104
- aug: '8',
105
- sep: '9',
106
- oct: '10',
107
- nov: '11',
108
- dec: '12',
109
- };
110
-
111
- const hasValidMonths = (months, alias) => {
112
- // Prevents alias to be used as steps
113
- if (months.search(/\/[a-zA-Z]/) !== -1) {
114
- return false;
115
- }
116
-
117
- if (alias) {
118
- const remappedMonths = months.toLowerCase().replace(/[a-z]{3}/g, (match) => {
119
- return monthAlias[match] === undefined ? match : monthAlias[match];
120
- });
121
- // If any invalid alias was used, it won't pass the other checks as there will be non-numeric values in the months
122
- return validateForRange(remappedMonths, 1, 12);
123
- }
124
-
125
- return validateForRange(months, 1, 12);
126
- };
127
-
128
- const weekdaysAlias = {
129
- sun: '0',
130
- mon: '1',
131
- tue: '2',
132
- wed: '3',
133
- thu: '4',
134
- fri: '5',
135
- sat: '6',
136
- };
137
-
138
- const hasValidWeekdays = (weekdays, alias, allowBlankDay, allowSevenAsSunday) => {
139
- // If there is a question mark, checks if the allowBlankDay flag is set
140
- if (allowBlankDay && isQuestionMark(weekdays)) {
141
- return true;
142
- } else if (!allowBlankDay && isQuestionMark(weekdays)) {
143
- return false;
144
- }
145
-
146
- // Prevents alias to be used as steps
147
- if (weekdays.search(/\/[a-zA-Z]/) !== -1) {
148
- return false;
149
- }
150
-
151
- if (alias) {
152
- const remappedWeekdays = weekdays.toLowerCase().replace(/[a-z]{3}/g, (match) => {
153
- return weekdaysAlias[match] === undefined ? match : weekdaysAlias[match];
154
- });
155
- // If any invalid alias was used, it won't pass the other checks as there will be non-numeric values in the weekdays
156
- return validateForRange(remappedWeekdays, 0, allowSevenAsSunday ? 7 : 6);
157
- }
158
-
159
- return validateForRange(weekdays, 0, allowSevenAsSunday ? 7 : 6);
160
- };
161
-
162
- const hasCompatibleDayFormat = (days, weekdays, allowBlankDay) => {
163
- return !(allowBlankDay && isQuestionMark(days) && isQuestionMark(weekdays));
164
- };
165
-
166
- const split = (cron) => {
167
- return cron.trim().split(/\s+/);
168
- };
169
-
170
- const defaultOptions = {
171
- alias: false,
172
- seconds: false,
173
- allowBlankDay: false,
174
- allowSevenAsSunday: false,
175
- };
176
-
177
- export const isValidCron = (cron, options) => {
178
- options = { ...defaultOptions, ...options };
179
-
180
- const splits = split(cron);
181
-
182
- if (splits.length > (options.seconds ? 6 : 5) || splits.length < 5) {
183
- return false;
184
- }
185
-
186
- const checks = [];
187
- if (splits.length === 6) {
188
- const seconds = splits.shift();
189
- if (seconds) {
190
- checks.push(hasValidSeconds(seconds));
191
- }
192
- }
193
-
194
- // We could only check the steps gradually and return false on the first invalid block,
195
- // However, this won't have any performance impact so why bother for now.
196
- const [minutes, hours, days, months, weekdays] = splits;
197
- checks.push(hasValidMinutes(minutes));
198
- checks.push(hasValidHours(hours));
199
- checks.push(hasValidDays(days, options.allowBlankDay));
200
- checks.push(hasValidMonths(months, options.alias));
201
- checks.push(hasValidWeekdays(weekdays, options.alias, options.allowBlankDay, options.allowSevenAsSunday));
202
- checks.push(hasCompatibleDayFormat(days, weekdays, options.allowBlankDay));
203
-
204
- return checks.every(Boolean);
205
- };
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.isValidCron=void 0;const e=e=>/^\d+$/.test(e)?Number(e):NaN,r=e=>"?"===e,t=(e,r,t)=>e>=r&&e<=t,n=(r,n,s)=>{if(-1!==r.search(/[^\d-,/*]/))return!1;return r.split(",").every((r=>{const a=r.split("/");if(r.trim().endsWith("/"))return!1;if(a.length>2)return!1;const[o,l]=a;return((r,n,s)=>{const a=r.split("-");switch(a.length){case 1:return(e=>"*"===e)(r)||t(e(r),n,s);case 2:const[o,l]=a.map((r=>e(r)));return o<=l&&t(o,n,s)&&t(l,n,s);default:return!1}})(o,n,s)&&(e=>void 0===e||-1===e.search(/[^\d]/))(l)}))},s={jan:"1",feb:"2",mar:"3",apr:"4",may:"5",jun:"6",jul:"7",aug:"8",sep:"9",oct:"10",nov:"11",dec:"12"},a={sun:"0",mon:"1",tue:"2",wed:"3",thu:"4",fri:"5",sat:"6"},o={alias:!1,seconds:!1,allowBlankDay:!1,allowSevenAsSunday:!1};exports.isValidCron=(e,t)=>{t={...o,...t};const l=(e=>e.trim().split(/\s+/))(e);if(l.length>(t.seconds?6:5)||l.length<5)return!1;const u=[];if(6===l.length){const e=l.shift();e&&u.push((e=>n(e,0,59))(e))}const[i,c,h,p,d]=l;return u.push((e=>n(e,0,59))(i)),u.push((e=>n(e,0,23))(c)),u.push(((e,t)=>t&&r(e)||n(e,1,31))(h,t.allowBlankDay)),u.push(((e,r)=>{if(-1!==e.search(/\/[a-zA-Z]/))return!1;if(r){const r=e.toLowerCase().replace(/[a-z]{3}/g,(e=>void 0===s[e]?e:s[e]));return n(r,1,12)}return n(e,1,12)})(p,t.alias)),u.push(((e,t,s,o)=>{if(s&&r(e))return!0;if(!s&&r(e))return!1;if(-1!==e.search(/\/[a-zA-Z]/))return!1;if(t){const r=e.toLowerCase().replace(/[a-z]{3}/g,(e=>void 0===a[e]?e:a[e]));return n(r,0,o?7:6)}return n(e,0,o?7:6)})(d,t.alias,t.allowBlankDay,t.allowSevenAsSunday)),u.push(((e,t,n)=>!(n&&r(e)&&r(t)))(h,d,t.allowBlankDay)),u.every(Boolean)};
package/src/lib/date.js CHANGED
@@ -1,44 +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
- export function isInvalid(date, min, max, noTime = true, disabledDates = []) {
17
- if (date) {
18
- if (min) {
19
- const minDate = new Date(min * 1000);
20
- if (noTime) {
21
- minDate.setHours(0, 0);
22
- }
23
- minDate.setSeconds(0, 0);
24
- if (date < minDate.getTime() / 1000) {
25
- return true;
26
- }
27
- }
28
- if (max) {
29
- const maxDate = new Date(max * 1000);
30
- if (noTime) {
31
- maxDate.setHours(23, 59);
32
- }
33
- maxDate.setSeconds(59, 59);
34
- if (date > maxDate.getTime() / 1000) {
35
- return true;
36
- }
37
- }
38
-
39
- if (disabledDates.findIndex((disabledDay) => parseInt(disabledDay, 10) === date) !== -1) {
40
- return true;
41
- }
42
- }
43
- return false;
44
- }
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.isInvalid=void 0,exports.isInvalid=function(e,t,n,s=!0,i=[]){if(e){if(t){const n=new Date(1e3*t);if(s&&n.setHours(0,0),n.setSeconds(0,0),e<n.getTime()/1e3)return!0}if(n){const t=new Date(1e3*n);if(s&&t.setHours(23,59),t.setSeconds(59,59),e>t.getTime()/1e3)return!0}if(-1!==i.findIndex((t=>parseInt(t,10)===e)))return!0}return!1};
package/src/lib/events.js CHANGED
@@ -1,26 +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
- export function dispatchCustomEvent(node, suffix, detail, options = {}) {
17
- const eventName = `${node.nodeName.toLocaleLowerCase()}:${suffix}`;
18
- /* global CustomEvent */
19
- const event = new CustomEvent(eventName, {
20
- detail,
21
- bubbles: true,
22
- composed: true,
23
- ...options,
24
- });
25
- node.dispatchEvent(event);
26
- }
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.dispatchCustomEvent=void 0,exports.dispatchCustomEvent=function(e,t,o,s={}){const n=`${e.nodeName.toLocaleLowerCase()}:${t}`,d=new CustomEvent(n,{detail:o,bubbles:!0,composed:!0,...s});e.dispatchEvent(d)};
@@ -1,67 +1 @@
1
- /*
2
- * Copyright (C) 2021 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
- export const httpClientSchemaForm = {
17
- type: 'object',
18
- id: 'urn:jsonschema:io:gravitee:http:client',
19
- properties: {
20
- method: {
21
- title: 'HTTP Method',
22
- description: 'HTTP method to invoke the endpoint.',
23
- type: 'string',
24
- default: 'GET',
25
- enum: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'HEAD', 'CONNECT', 'OPTIONS', 'TRACE'],
26
- },
27
- path: {
28
- title: 'Path',
29
- type: 'string',
30
- default: '/',
31
- },
32
- headers: {
33
- type: 'array',
34
- title: 'Request Headers',
35
- items: {
36
- type: 'object',
37
- title: 'Header',
38
- properties: {
39
- name: {
40
- title: 'Name',
41
- type: 'string',
42
- },
43
- value: {
44
- title: 'Value',
45
- type: 'string',
46
- },
47
- },
48
- },
49
- required: ['name', 'value'],
50
- },
51
- body: {
52
- title: 'Request body',
53
- type: 'string',
54
- 'x-schema-form': {
55
- type: 'codemirror',
56
- codemirrorOptions: {
57
- placeholder: 'Put request body here',
58
- lineWrapping: true,
59
- lineNumbers: true,
60
- allowDropFileTypes: true,
61
- autoCloseTags: true,
62
- },
63
- },
64
- },
65
- },
66
- required: ['method', 'path'],
67
- };
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.httpClientSchemaForm=void 0,exports.httpClientSchemaForm={type:"object",id:"urn:jsonschema:io:gravitee:http:client",properties:{method:{title:"HTTP Method",description:"HTTP method to invoke the endpoint.",type:"string",default:"GET",enum:["GET","POST","PUT","DELETE","PATCH","HEAD","CONNECT","OPTIONS","TRACE"]},path:{title:"Path",type:"string",default:"/"},headers:{type:"array",title:"Request Headers",items:{type:"object",title:"Header",properties:{name:{title:"Name",type:"string"},value:{title:"Value",type:"string"}}},required:["name","value"]},body:{title:"Request body",type:"string","x-schema-form":{type:"codemirror",codemirrorOptions:{placeholder:"Put request body here",lineWrapping:!0,lineNumbers:!0,allowDropFileTypes:!0,autoCloseTags:!0}}}},required:["method","path"]};