@gravitee/ui-components 3.25.3-typescript-9a4271f → 3.25.3-typescript-50960c3

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 (184) hide show
  1. package/package.json +3 -4
  2. package/src/atoms/gv-autocomplete.d.ts +104 -0
  3. package/src/atoms/gv-button.d.ts +109 -0
  4. package/src/atoms/gv-checkbox.d.ts +114 -0
  5. package/src/atoms/gv-date-picker-calendar.d.ts +190 -0
  6. package/src/atoms/gv-date-picker-cell.d.ts +80 -0
  7. package/src/atoms/gv-date-picker.d.ts +194 -0
  8. package/src/atoms/gv-file-upload.d.ts +64 -0
  9. package/src/atoms/gv-icon.d.ts +26 -0
  10. package/src/atoms/gv-image.d.ts +45 -0
  11. package/src/atoms/gv-input-message.d.ts +20 -0
  12. package/src/atoms/gv-input.d.ts +246 -0
  13. package/src/atoms/gv-link.d.ts +67 -0
  14. package/src/atoms/gv-message.d.ts +23 -0
  15. package/src/atoms/gv-message.js +1 -1
  16. package/src/atoms/gv-metric.d.ts +32 -0
  17. package/src/atoms/gv-relative-time.d.ts +45 -0
  18. package/src/atoms/gv-select-native.d.ts +174 -0
  19. package/src/atoms/gv-select.d.ts +71 -0
  20. package/src/atoms/gv-spinner.d.ts +10 -0
  21. package/src/atoms/gv-state.d.ts +50 -0
  22. package/src/atoms/gv-switch.d.ts +60 -0
  23. package/src/atoms/gv-tag.d.ts +69 -0
  24. package/src/atoms/gv-text.d.ts +110 -0
  25. package/src/charts/gv-chart-bar.d.ts +50 -0
  26. package/src/charts/gv-chart-gauge.d.ts +58 -0
  27. package/src/charts/gv-chart-histogram.d.ts +48 -0
  28. package/src/charts/gv-chart-line.d.ts +52 -0
  29. package/src/charts/gv-chart-map.d.ts +50 -0
  30. package/src/charts/gv-chart-pie.d.ts +50 -0
  31. package/src/index.d.ts +77 -0
  32. package/src/lib/cron-expression.d.ts +1 -0
  33. package/src/lib/date.d.ts +1 -0
  34. package/src/lib/events.d.ts +1 -0
  35. package/src/lib/http-client-schema-form.d.ts +68 -0
  36. package/src/lib/http.d.ts +222 -0
  37. package/src/lib/i18n.d.ts +30 -0
  38. package/src/lib/item.d.ts +12 -0
  39. package/src/lib/properties.d.ts +42 -0
  40. package/src/lib/schema-form.d.ts +5 -0
  41. package/src/lib/studio.d.ts +2 -0
  42. package/src/lib/style.d.ts +6 -0
  43. package/src/lib/text-format.d.ts +6 -0
  44. package/src/lib/theme.d.ts +4 -0
  45. package/src/lib/utils.d.ts +9 -0
  46. package/src/mixins/chart-element.d.ts +39 -0
  47. package/src/mixins/input-element.d.ts +64 -0
  48. package/src/mixins/item-resource.d.ts +56 -0
  49. package/src/mixins/keyboard-element.d.ts +25 -0
  50. package/src/mixins/update-after-browser.d.ts +11 -0
  51. package/src/mixins/with-resize-observer.d.ts +12 -0
  52. package/src/mixins/with-skeleton-attribute.d.ts +35 -0
  53. package/src/molecules/gv-card-full.d.ts +78 -0
  54. package/src/molecules/gv-card-list.d.ts +33 -0
  55. package/src/molecules/gv-card.d.ts +65 -0
  56. package/src/molecules/gv-category-list.d.ts +17 -0
  57. package/src/molecules/gv-category.d.ts +64 -0
  58. package/src/molecules/gv-code.d.ts +192 -0
  59. package/src/molecules/gv-confirm.d.ts +60 -0
  60. package/src/molecules/gv-cron-editor.d.ts +115 -0
  61. package/src/molecules/gv-dropdown-menu.d.ts +28 -0
  62. package/src/molecules/gv-expandable.d.ts +37 -0
  63. package/src/molecules/gv-expression-language.d.ts +150 -0
  64. package/src/molecules/gv-identity-picture.d.ts +44 -0
  65. package/src/molecules/gv-list.d.ts +123 -0
  66. package/src/molecules/gv-metrics.d.ts +65 -0
  67. package/src/molecules/gv-modal.d.ts +64 -0
  68. package/src/molecules/gv-nav.d.ts +41 -0
  69. package/src/molecules/gv-option.d.ts +65 -0
  70. package/src/molecules/gv-plans.d.ts +73 -0
  71. package/src/molecules/gv-popover.d.ts +91 -0
  72. package/src/molecules/gv-promote.d.ts +108 -0
  73. package/src/molecules/gv-rating-list.d.ts +77 -0
  74. package/src/molecules/gv-rating.d.ts +55 -0
  75. package/src/molecules/gv-row-expandable.d.ts +8 -0
  76. package/src/molecules/gv-row.d.ts +37 -0
  77. package/src/molecules/gv-stats.d.ts +53 -0
  78. package/src/molecules/gv-stepper.d.ts +46 -0
  79. package/src/molecules/gv-table.d.ts +159 -0
  80. package/src/molecules/gv-tree.d.ts +44 -0
  81. package/src/organisms/gv-documentation.d.ts +52 -0
  82. package/src/organisms/gv-header.d.ts +60 -0
  83. package/src/organisms/gv-http-client.d.ts +57 -0
  84. package/src/organisms/gv-menu.d.ts +74 -0
  85. package/src/organisms/gv-newsletter-subscription.d.ts +82 -0
  86. package/src/organisms/gv-pagination.d.ts +63 -0
  87. package/src/organisms/gv-properties.d.ts +229 -0
  88. package/src/organisms/gv-resizable-views.d.ts +33 -0
  89. package/src/organisms/gv-resources.d.ts +125 -0
  90. package/src/organisms/gv-schema-form-array.d.ts +55 -0
  91. package/src/organisms/gv-schema-form-control-object.d.ts +64 -0
  92. package/src/organisms/gv-schema-form-control.d.ts +90 -0
  93. package/src/organisms/gv-schema-form.d.ts +156 -0
  94. package/src/organisms/gv-tabs.d.ts +56 -0
  95. package/src/organisms/gv-user-menu.d.ts +56 -0
  96. package/src/organisms/gv-vertical-menu.d.ts +28 -0
  97. package/src/policy-studio/gv-flow-step.d.ts +142 -0
  98. package/src/policy-studio/gv-flow.d.ts +89 -0
  99. package/src/policy-studio/gv-policy-studio-menu.d.ts +94 -0
  100. package/src/policy-studio/gv-policy-studio.d.ts +464 -0
  101. package/src/styles/empty.d.ts +1 -0
  102. package/src/styles/input.d.ts +1 -0
  103. package/src/styles/link.d.ts +1 -0
  104. package/src/styles/shapes.d.ts +2 -0
  105. package/src/styles/skeleton.d.ts +1 -0
  106. package/src/styles/zoom.d.ts +1 -0
  107. package/src/theme/gv-theme.d.ts +81 -0
  108. package/wc/gv-autocomplete.d.ts +1 -0
  109. package/wc/gv-button.d.ts +1 -0
  110. package/wc/gv-card-full.d.ts +1 -0
  111. package/wc/gv-card-list.d.ts +1 -0
  112. package/wc/gv-card.d.ts +1 -0
  113. package/wc/gv-category-list.d.ts +1 -0
  114. package/wc/gv-category.d.ts +1 -0
  115. package/wc/gv-chart-bar.d.ts +1 -0
  116. package/wc/gv-chart-gauge.d.ts +1 -0
  117. package/wc/gv-chart-histogram.d.ts +1 -0
  118. package/wc/gv-chart-line.d.ts +1 -0
  119. package/wc/gv-chart-map.d.ts +1 -0
  120. package/wc/gv-chart-pie.d.ts +1 -0
  121. package/wc/gv-checkbox.d.ts +1 -0
  122. package/wc/gv-code.d.ts +1 -0
  123. package/wc/gv-confirm.d.ts +1 -0
  124. package/wc/gv-cron-editor.d.ts +1 -0
  125. package/wc/gv-date-picker-calendar.d.ts +1 -0
  126. package/wc/gv-date-picker-cell.d.ts +1 -0
  127. package/wc/gv-date-picker.d.ts +1 -0
  128. package/wc/gv-documentation.d.ts +1 -0
  129. package/wc/gv-dropdown-menu.d.ts +1 -0
  130. package/wc/gv-expandable.d.ts +1 -0
  131. package/wc/gv-expression-language.d.ts +1 -0
  132. package/wc/gv-file-upload.d.ts +1 -0
  133. package/wc/gv-flow-step.d.ts +1 -0
  134. package/wc/gv-flow.d.ts +1 -0
  135. package/wc/gv-header.d.ts +1 -0
  136. package/wc/gv-http-client.d.ts +1 -0
  137. package/wc/gv-icon.d.ts +1 -0
  138. package/wc/gv-identity-picture.d.ts +1 -0
  139. package/wc/gv-image.d.ts +1 -0
  140. package/wc/gv-input-message.d.ts +1 -0
  141. package/wc/gv-input.d.ts +1 -0
  142. package/wc/gv-link.d.ts +1 -0
  143. package/wc/gv-list.d.ts +1 -0
  144. package/wc/gv-menu.d.ts +1 -0
  145. package/wc/gv-message.d.ts +1 -0
  146. package/wc/gv-metric.d.ts +1 -0
  147. package/wc/gv-metrics.d.ts +1 -0
  148. package/wc/gv-modal.d.ts +1 -0
  149. package/wc/gv-nav.d.ts +1 -0
  150. package/wc/gv-newsletter-subscription.d.ts +1 -0
  151. package/wc/gv-option.d.ts +1 -0
  152. package/wc/gv-pagination.d.ts +1 -0
  153. package/wc/gv-plans.d.ts +1 -0
  154. package/wc/gv-policy-studio-menu.d.ts +1 -0
  155. package/wc/gv-policy-studio.d.ts +1 -0
  156. package/wc/gv-popover.d.ts +1 -0
  157. package/wc/gv-promote.d.ts +1 -0
  158. package/wc/gv-properties.d.ts +1 -0
  159. package/wc/gv-rating-list.d.ts +1 -0
  160. package/wc/gv-rating.d.ts +1 -0
  161. package/wc/gv-relative-time.d.ts +1 -0
  162. package/wc/gv-resizable-views.d.ts +1 -0
  163. package/wc/gv-resources.d.ts +1 -0
  164. package/wc/gv-row-expandable.d.ts +1 -0
  165. package/wc/gv-row.d.ts +1 -0
  166. package/wc/gv-schema-form-array.d.ts +1 -0
  167. package/wc/gv-schema-form-control-object.d.ts +1 -0
  168. package/wc/gv-schema-form-control.d.ts +1 -0
  169. package/wc/gv-schema-form.d.ts +1 -0
  170. package/wc/gv-select-native.d.ts +1 -0
  171. package/wc/gv-select.d.ts +1 -0
  172. package/wc/gv-spinner.d.ts +1 -0
  173. package/wc/gv-state.d.ts +1 -0
  174. package/wc/gv-stats.d.ts +1 -0
  175. package/wc/gv-stepper.d.ts +1 -0
  176. package/wc/gv-switch.d.ts +1 -0
  177. package/wc/gv-table.d.ts +1 -0
  178. package/wc/gv-tabs.d.ts +1 -0
  179. package/wc/gv-tag.d.ts +1 -0
  180. package/wc/gv-text.d.ts +1 -0
  181. package/wc/gv-theme.d.ts +1 -0
  182. package/wc/gv-tree.d.ts +1 -0
  183. package/wc/gv-user-menu.d.ts +1 -0
  184. package/wc/gv-vertical-menu.d.ts +1 -0
@@ -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 {};
@@ -0,0 +1,65 @@
1
+ declare const GvMetrics_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
+ * Metrics information component
33
+ *
34
+ * ## Details
35
+ * * has @theme facet
36
+ * * attributes `metrics` should be an array of Object {value, clickable}, or an array of values, or a mix.
37
+ *
38
+ * @fires gv-metrics:click - Click event from metric if is clickable
39
+ *
40
+ * @attr {Promise<{ hits: value, health: {value, clickable}, subscribers: {value, clickable?, title?} }>} metrics - Metrics.
41
+ * @attr {RatingSummary} rating - Ratings of an API.
42
+ */
43
+ export class GvMetrics extends GvMetrics_base {
44
+ static get properties(): {
45
+ metrics: {
46
+ type: ObjectConstructor;
47
+ };
48
+ _metrics: {
49
+ type: ObjectConstructor;
50
+ attribute: boolean;
51
+ };
52
+ };
53
+ _skeletonAttribute: string;
54
+ skeleton: boolean;
55
+ _isClickable(metricName: any): any;
56
+ _getValue(metric: any): any;
57
+ _getSubscribers(): any;
58
+ _getHits(): any;
59
+ _getHealth(): string | null;
60
+ _getTitle(metricName: any): any;
61
+ _onClick(key: any): void;
62
+ _renderMetric(key: any, icon: any, name: any, value: any): import("lit-html").TemplateResult<1>;
63
+ render(): import("lit-html").TemplateResult<1>;
64
+ }
65
+ export {};
@@ -0,0 +1,64 @@
1
+ /**
2
+ * A modal that shows up on top of your page
3
+ *
4
+ * @fires gv-modal:closed - Event fired when modal is closed.
5
+ *
6
+ * @cssprop {Length} [--gv-modal--anim-duration=0.3s] - Duration of the animation
7
+ * @cssprop {Length} [--gv-modal--z=100] - z-index for modal
8
+ * @cssprop {Color} [--gv-modal--bgc=rgba(30, 30, 30, 0.6)] - Modal background color
9
+ * @cssprop {Length} [--gv-modal-content--z=101] - z-index for modal content
10
+ * @cssprop {Length} [--gv-modal--w=280px] - model width
11
+ * @cssprop {Length} [--gv-modal--miw=250px] - modal min-width
12
+ * @cssprop {Length} [--gv-modal--maw=100vw] - modal max-width
13
+ * @cssprop {Length} [--gv-modal--h=auto] - modal height
14
+ * @cssprop {Length} [--gv-modal--mih=auto] - modal min height
15
+ * @cssprop {Length} [--gv-modal--mah=100vh] - modal max height
16
+ * @cssprop {Color} [--gv-modal-content--bgc=var(--gv-theme-neutral-color-light, #efefef)] - Modal content background color
17
+ * @cssprop {String} [--gv-modal--bxsh=0px 0px 16px #383e3f] - Modal box shadow
18
+ * @cssprop {Length} [--gv-modal--bdrs=4px] - Modal border radius
19
+ * @cssprop {Length} [--gv-modal--p=1em] - Modal content padding
20
+ * @cssprop {Length} [--gv-modal-close-icon--s=24px] - Modal close icon size
21
+ */
22
+ export class GvModal extends LitElement {
23
+ static get properties(): {
24
+ _toChange: {
25
+ type: BooleanConstructor;
26
+ };
27
+ /**
28
+ * If true the modal box is in opened status.
29
+ */
30
+ opened: {
31
+ type: BooleanConstructor;
32
+ };
33
+ /**
34
+ * If true the modal box displays a close icon
35
+ */
36
+ showCloseIcon: {
37
+ type: BooleanConstructor;
38
+ };
39
+ /**
40
+ * The title of the modal dialog
41
+ */
42
+ modalTitle: {
43
+ type: StringConstructor;
44
+ };
45
+ /**
46
+ * If true the modal box blocks the screen. That is, when you click in the background layer, the modal box do not close.
47
+ */
48
+ blocking: {
49
+ type: BooleanConstructor;
50
+ };
51
+ };
52
+ static get styles(): import("lit").CSSResult[];
53
+ _toChange: boolean;
54
+ opened: boolean;
55
+ showCloseIcon: boolean;
56
+ blocking: boolean;
57
+ getModalClass(opened: any, _toChange: any): "transparent" | "transparent opened" | "opaque" | undefined;
58
+ open(): void;
59
+ _backgroundModalClick(e: any): void;
60
+ close(): void;
61
+ animationEnd(): void;
62
+ contentClick(e: any): void;
63
+ }
64
+ import { LitElement } from "lit-element/lit-element";
@@ -0,0 +1,41 @@
1
+ /**
2
+ * A main nav
3
+ *
4
+ * ## Details
5
+ * * has @theme facet
6
+ *
7
+ * @fires gv-nav:click - Custom event when nav item is clicked
8
+ *
9
+ * @attr {Array<{active: Boolean, icon: String, path: String, title: Promise<String>, target: String}>} routes - definition of routes
10
+ */
11
+ export class GvNav extends LitElement {
12
+ static get properties(): {
13
+ routes: {
14
+ type: ArrayConstructor;
15
+ };
16
+ _routes: {
17
+ type: ArrayConstructor;
18
+ };
19
+ small: {
20
+ type: BooleanConstructor;
21
+ };
22
+ _compact: {
23
+ type: BooleanConstructor;
24
+ attribute: boolean;
25
+ };
26
+ vertical: {
27
+ type: BooleanConstructor;
28
+ reflect: boolean;
29
+ };
30
+ };
31
+ static get styles(): import("lit").CSSResult[];
32
+ _onClick(event: any): void;
33
+ _isLocked: boolean | undefined;
34
+ /** @protected */
35
+ protected _routes: any[];
36
+ vertical: boolean;
37
+ set routes(arg: any);
38
+ _getLink(route: any, index: any): Promise<void | import("lit-html").TemplateResult<1>>;
39
+ _compact: boolean | undefined;
40
+ }
41
+ import { LitElement } from "lit-element/lit-element";
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Option component
3
+ *
4
+ * ## Details
5
+ * * has @theme facet
6
+ *
7
+ * @attr {Array<{id, title, icon?, active?, description?, label?}>} options - An array of options.
8
+ * @attr {String|Array} value - Selected value id, array with multiple option ids.
9
+ * @attr {Boolean} multiple - If true, can choose several option
10
+ * @attr {Boolean} reverse - If true, title and description are reversed.
11
+ * @attr {Boolean} small - If true, use small button for options
12
+ * @attr {Boolean} outlined - If true, use outlined button for options
13
+ *
14
+ * @cssprop {Color} [--gv-option--bgc=var(--gv-theme-neutral-color-dark, #bfbfbf)] - Background color
15
+ * @cssprop {Length} [--gv-option--bdrs=0.15rem] - Border radius
16
+ * @cssprop {Length} [--gv-option-button--maw=200px] - Button max width
17
+ * @cssprop {Length} [--gv-option-icon--s=64px] - Icon size
18
+ */
19
+ export class GvOption extends LitElement {
20
+ static get properties(): {
21
+ options: {
22
+ type: ArrayConstructor;
23
+ };
24
+ _options: {
25
+ type: ArrayConstructor;
26
+ attribute: boolean;
27
+ };
28
+ _hasDescription: {
29
+ type: ArrayConstructor;
30
+ attribute: boolean;
31
+ };
32
+ value: {
33
+ type: StringConstructor;
34
+ reflect: boolean;
35
+ };
36
+ multiple: {
37
+ type: BooleanConstructor;
38
+ };
39
+ reverse: {
40
+ type: BooleanConstructor;
41
+ };
42
+ small: {
43
+ type: BooleanConstructor;
44
+ };
45
+ outlined: {
46
+ type: BooleanConstructor;
47
+ };
48
+ disabled: {
49
+ type: BooleanConstructor;
50
+ reflect: boolean;
51
+ };
52
+ };
53
+ static get styles(): import("lit").CSSResult[];
54
+ multiple: boolean;
55
+ reverse: boolean;
56
+ _onClick(option: any): void;
57
+ setValue(option: any): void;
58
+ value: any;
59
+ set options(arg: any);
60
+ _options: any[] | undefined;
61
+ _hasDescription: boolean | undefined;
62
+ isActive(option: any): any;
63
+ _renderOption(option: any, index: any): import("lit-html").TemplateResult<1>;
64
+ }
65
+ import { LitElement } from "lit-element/lit-element";
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Plans
3
+ *
4
+ * ## Details
5
+ * * has @theme facet
6
+ *
7
+ * @fires input - Native input event when plan change
8
+ * @fires gv-plans:redirect - Event when user click to redirect link when plans are empty
9
+ *
10
+ * @attr {Array} plans - Plans list
11
+ * @attr {Number} current - The current plan index
12
+ * @attr {String} value - The current plan id
13
+ * @attr {Boolean} skeleton - enable skeleton screen UI pattern (loading hint)
14
+ *
15
+ * @cssprop {Color} [--gv-plans--bgc=var(--gv-theme-color, #5a7684)] - Background color
16
+ * @cssprop {Color} [--gv-plans-font--c=var(--gv-theme-font-color-light, #ffffff)] - Font color
17
+ * @cssprop {Color} [--gv-plans-characteristic--bgc=var(--gv-theme-color-light, #86c3d0)] - Characteristic background color
18
+ * @cssprop {Color} [--gv-plans-characteristics--bdc=var(--gv-theme-neutral-color, #f5f5f5)] - Characteristics border color
19
+ * @cssprop {Length} [--gv-plans-icon--s=24px] - Height and icon width
20
+ */
21
+ export class GvPlans extends LitElement {
22
+ static get properties(): {
23
+ /**
24
+ * This List of Plan
25
+ * @type Object https://github.com/gravitee-io/gravitee-clients-sdk/blob/master/model/plan.ts
26
+ * @attr
27
+ * @required
28
+ */
29
+ plans: Object;
30
+ current: {
31
+ type: NumberConstructor;
32
+ };
33
+ value: {
34
+ type: StringConstructor;
35
+ reflect: boolean;
36
+ };
37
+ skeleton: {
38
+ type: BooleanConstructor;
39
+ };
40
+ size: {
41
+ type: NumberConstructor;
42
+ };
43
+ _empty: {
44
+ type: BooleanConstructor;
45
+ };
46
+ _plans: {
47
+ type: ArrayConstructor;
48
+ };
49
+ };
50
+ static get styles(): import("lit").CSSResult[];
51
+ current: number;
52
+ size: number;
53
+ _plans: any[];
54
+ _empty: boolean;
55
+ get _characteristics(): any;
56
+ set plans(arg: any[]);
57
+ get plans(): any[];
58
+ skeleton: boolean | undefined;
59
+ value: any;
60
+ _error: boolean | undefined;
61
+ to(plan: any): void;
62
+ _getPlanTitle(plan: any): any;
63
+ _onRedirect(): void;
64
+ get hasPagination(): boolean;
65
+ get hasLeft(): boolean;
66
+ get hasRight(): boolean;
67
+ _renderHeader(plans: any): any;
68
+ _renderTriangles(plans: any): any;
69
+ _renderPagination(): "" | import("lit-html").TemplateResult<1>;
70
+ toLeft(): void;
71
+ toRight(): void;
72
+ }
73
+ import { LitElement } from "lit-element/lit-element";
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Popover component
3
+ *
4
+ * ## Details
5
+ * * has @theme facet
6
+ *
7
+ * @attr {String} event - the event that triggers the opening.
8
+ * @attr {String} delay - the time before closing, useful for a click event
9
+ * @attr {String} arrow - if need arrow
10
+ * @attr {String} small - Small popover
11
+ * @attr {String} medium - Medium popover
12
+ * @attr {String} large - Large popover
13
+ * @attr {String} width - The width of popover
14
+ * @attr {String} position - The position top, right, bottom or left
15
+ * @attr {Boolean} auto - to let the component choose the position
16
+ *
17
+ * @cssprop {Color} [--gv-popover--bgc=var(--gv-theme-neutral-color-lighter, #fafafa)] - Background color
18
+ * @cssprop {Color} [--gv-popover--c=var(--gv-theme-font-color-dark, #262626)] - Color
19
+ * @cssprop {Color} [--gv-popover--bdc=var(--gv-theme-neutral-color, #f5f5f5)] - Border color
20
+ * @cssprop {Length} [--gv-popover--p=0.5rem] - Padding
21
+ */
22
+ export class GvPopover extends LitElement {
23
+ static get properties(): {
24
+ event: {
25
+ type: StringConstructor;
26
+ };
27
+ delay: {
28
+ type: NumberConstructor;
29
+ };
30
+ arrow: {
31
+ type: BooleanConstructor;
32
+ reflect: boolean;
33
+ };
34
+ small: {
35
+ type: BooleanConstructor;
36
+ reflect: boolean;
37
+ };
38
+ medium: {
39
+ type: BooleanConstructor;
40
+ reflect: boolean;
41
+ };
42
+ large: {
43
+ type: BooleanConstructor;
44
+ reflect: boolean;
45
+ };
46
+ width: {
47
+ type: StringConstructor;
48
+ };
49
+ position: {
50
+ type: StringConstructor;
51
+ reflect: boolean;
52
+ };
53
+ auto: {
54
+ type: BooleanConstructor;
55
+ };
56
+ _opened: {
57
+ type: BooleanConstructor;
58
+ attribute: boolean;
59
+ };
60
+ };
61
+ static get styles(): import("lit").CSSResult[];
62
+ event: string;
63
+ _closeHandler: (e: any) => void;
64
+ delay: number;
65
+ arrow: boolean;
66
+ position: string;
67
+ auto: boolean;
68
+ _open(e: any): void;
69
+ _opened: boolean | undefined;
70
+ close(): void;
71
+ _close(e: any): void;
72
+ renderContent(): import("lit-html").TemplateResult<1>;
73
+ _getContentSize(): {
74
+ width: any;
75
+ height: any;
76
+ };
77
+ _getPositionPadding(): number;
78
+ _getCenterPosition(): {
79
+ x: number;
80
+ y: number;
81
+ };
82
+ _updatePosition(): void;
83
+ target: DOMRect | undefined;
84
+ _getMaxX(): number;
85
+ _getMaxY(): number;
86
+ _hasBottomSpace(): boolean;
87
+ _hasRightSpace(): boolean;
88
+ _hasTopSpace(): boolean;
89
+ _hasLeftSpace(): boolean;
90
+ }
91
+ import { LitElement } from "lit-element/lit-element";
@@ -0,0 +1,108 @@
1
+ declare const GvPromote_base: {
2
+ new (): {
3
+ [x: string]: any;
4
+ _skeletonAttribute: string;
5
+ _onImageLoaded(): void;
6
+ _skeleton: boolean;
7
+ _renderImage(): "" | import("lit-html").TemplateResult<1>;
8
+ _onTagClick(tagValue: any, event: any): void;
9
+ _renderLabels(clickable: any): unknown;
10
+ _renderStates(): unknown;
11
+ _onClickToMetrics(event: any): void;
12
+ _renderMetricsWithRating(): "" | import("lit-html").TemplateResult<1>;
13
+ _renderInfoRating(): "" | import("lit-html").TemplateResult<1>;
14
+ _invisible: boolean;
15
+ _error: boolean;
16
+ _empty: boolean;
17
+ updated(changedProperties: any): void;
18
+ };
19
+ readonly properties: {
20
+ item: {
21
+ type: ObjectConstructor;
22
+ };
23
+ href: {
24
+ type: StringConstructor;
25
+ };
26
+ metrics: {
27
+ type: ObjectConstructor;
28
+ };
29
+ _item: {
30
+ type: ObjectConstructor;
31
+ attribute: boolean;
32
+ };
33
+ _invisible: {
34
+ type: BooleanConstructor;
35
+ reflect: boolean;
36
+ };
37
+ _skeleton: {
38
+ type: BooleanConstructor;
39
+ attribute: boolean;
40
+ };
41
+ _error: {
42
+ type: BooleanConstructor;
43
+ attribute: boolean;
44
+ };
45
+ _empty: {
46
+ type: BooleanConstructor;
47
+ attribute: boolean;
48
+ };
49
+ };
50
+ readonly styles: import("lit").CSSResult[];
51
+ };
52
+ /**
53
+ * Promote component
54
+ *
55
+ * ## Details
56
+ * * has @theme facet
57
+ *
58
+ * @fires gv-promote:click - When click on button for view item
59
+ * @fires gv-tag:click - When one of the label is clicked
60
+ *
61
+ * @attr {Promise<any>} item - an item.
62
+ *
63
+ * @cssprop {Color} [--gv-promote-image--bgc=var(--gv-theme-color-light, #86c3d0)] - Image background color
64
+ * @cssprop {Color} [--gv-promote--bgc=var(--gv-theme-neutral-color-lightest, #ffffff)] - Background color
65
+ * @cssprop {Length} [--gv-promote-image--h=300px] - Image height
66
+ * @cssprop {Length} [--gv-promote-image--w=300px] - Image width
67
+ * @cssprop {Length} [--gv-promote-button--p=19px 80px] - Button padding
68
+ * @cssprop {Length} [--gv-promote-button--fz=var(--gv-theme-font-size-l, 16px)] - Button font size
69
+ */
70
+ export class GvPromote extends GvPromote_base {
71
+ static get properties(): {
72
+ limit: {
73
+ type: NumberConstructor;
74
+ };
75
+ item: {
76
+ type: ObjectConstructor;
77
+ };
78
+ href: {
79
+ type: StringConstructor;
80
+ };
81
+ metrics: {
82
+ type: ObjectConstructor;
83
+ };
84
+ _item: {
85
+ type: ObjectConstructor;
86
+ attribute: boolean;
87
+ };
88
+ _invisible: {
89
+ type: BooleanConstructor;
90
+ reflect: boolean;
91
+ };
92
+ _skeleton: {
93
+ type: BooleanConstructor;
94
+ attribute: boolean;
95
+ };
96
+ _error: {
97
+ type: BooleanConstructor;
98
+ attribute: boolean;
99
+ };
100
+ _empty: {
101
+ type: BooleanConstructor;
102
+ attribute: boolean;
103
+ };
104
+ };
105
+ _onClick(): void;
106
+ render(): "" | import("lit-html").TemplateResult<1>;
107
+ }
108
+ export {};