@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,192 @@
1
+ /**
2
+ * Code component
3
+ *
4
+ * ## Details
5
+ * * has @theme facet
6
+ *
7
+ * @fires gv-code:input - input events with the `value` on `detail`
8
+ * @fires gv-code:ready - event dispatch when component is ready
9
+ * @fires gv-code:clipboard-copy - event dispatch when component the `value` has been copied to clipboard
10
+ *
11
+ * @attr {String} label - code language
12
+ * @attr {String} value - code content to be highlighted
13
+ * @attr {options} Object - options based on codemirror
14
+ * @attr {String} placeholder - an example value to display in the input when empty
15
+ * @attr {Number} rows - number of rows of the text element
16
+ * @attr {Boolean} large - for a large input (only if the field has one row)
17
+ * @attr {Boolean} medium - for a medium input (only if the field has one row) (Default)
18
+ * @attr {Boolean} small - for a small input (only if the field has one row)
19
+ *
20
+ * @attr {Boolean} [clipboard=false]- true if field has clipboard button
21
+ * @attr {Boolean} [autofocus=false] - true to put the focus on the input
22
+ * @attr {Boolean} [readonly=false] - true if field is readonly mode
23
+ */
24
+ export class GvCode extends GvInput {
25
+ static get properties(): {
26
+ options: {
27
+ type: ObjectConstructor;
28
+ };
29
+ rows: {
30
+ type: NumberConstructor;
31
+ };
32
+ _error: {
33
+ type: StringConstructor;
34
+ attribute: boolean;
35
+ };
36
+ type: {
37
+ type: StringConstructor;
38
+ reflect: boolean;
39
+ };
40
+ large: {
41
+ type: BooleanConstructor;
42
+ };
43
+ medium: {
44
+ type: BooleanConstructor;
45
+ };
46
+ small: {
47
+ type: BooleanConstructor;
48
+ };
49
+ icon: {
50
+ type: StringConstructor;
51
+ };
52
+ iconLeft: {
53
+ type: StringConstructor;
54
+ attribute: string;
55
+ };
56
+ loading: {
57
+ type: BooleanConstructor;
58
+ };
59
+ min: {
60
+ type: NumberConstructor;
61
+ };
62
+ max: {
63
+ type: NumberConstructor;
64
+ };
65
+ autocomplete: {
66
+ type: StringConstructor;
67
+ };
68
+ clipboard: {
69
+ type: BooleanConstructor;
70
+ };
71
+ clickable: {
72
+ type: BooleanConstructor;
73
+ };
74
+ clearable: {
75
+ type: BooleanConstructor;
76
+ };
77
+ noSubmit: {
78
+ type: BooleanConstructor;
79
+ attribute: string;
80
+ };
81
+ pattern: {
82
+ type: StringConstructor;
83
+ reflect: boolean;
84
+ };
85
+ description: {
86
+ type: StringConstructor;
87
+ };
88
+ _type: {
89
+ type: StringConstructor;
90
+ attribute: boolean;
91
+ };
92
+ disabled: {
93
+ type: BooleanConstructor;
94
+ reflect: boolean;
95
+ };
96
+ required: {
97
+ type: BooleanConstructor;
98
+ reflect: boolean;
99
+ };
100
+ readonly: {
101
+ type: BooleanConstructor;
102
+ reflect: boolean;
103
+ };
104
+ skeleton: {
105
+ type: BooleanConstructor;
106
+ };
107
+ value: {
108
+ type: StringConstructor;
109
+ reflect: boolean;
110
+ };
111
+ label: {
112
+ type: StringConstructor;
113
+ };
114
+ title: {
115
+ type: StringConstructor;
116
+ };
117
+ name: {
118
+ type: StringConstructor;
119
+ };
120
+ placeholder: {
121
+ type: StringConstructor;
122
+ };
123
+ autofocus: {
124
+ type: BooleanConstructor;
125
+ };
126
+ invalid: {
127
+ type: BooleanConstructor;
128
+ reflect: boolean;
129
+ };
130
+ valid: {
131
+ type: BooleanConstructor;
132
+ reflect: boolean; /**
133
+ * Code component
134
+ *
135
+ * ## Details
136
+ * * has @theme facet
137
+ *
138
+ * @fires gv-code:input - input events with the `value` on `detail`
139
+ * @fires gv-code:ready - event dispatch when component is ready
140
+ * @fires gv-code:clipboard-copy - event dispatch when component the `value` has been copied to clipboard
141
+ *
142
+ * @attr {String} label - code language
143
+ * @attr {String} value - code content to be highlighted
144
+ * @attr {options} Object - options based on codemirror
145
+ * @attr {String} placeholder - an example value to display in the input when empty
146
+ * @attr {Number} rows - number of rows of the text element
147
+ * @attr {Boolean} large - for a large input (only if the field has one row)
148
+ * @attr {Boolean} medium - for a medium input (only if the field has one row) (Default)
149
+ * @attr {Boolean} small - for a small input (only if the field has one row)
150
+ *
151
+ * @attr {Boolean} [clipboard=false]- true if field has clipboard button
152
+ * @attr {Boolean} [autofocus=false] - true to put the focus on the input
153
+ * @attr {Boolean} [readonly=false] - true if field is readonly mode
154
+ */
155
+ };
156
+ };
157
+ static findLanguage(mode: any): Promise<import("@codemirror/language").LanguageDescription | {
158
+ name: string;
159
+ support: {
160
+ extension: import("@codemirror/stream-parser").StreamLanguage<unknown>;
161
+ };
162
+ } | null | undefined>;
163
+ static get codemirrorTheme(): import("@codemirror/state").Extension;
164
+ readonly: boolean;
165
+ autofocus: boolean;
166
+ clipboard: boolean;
167
+ _clipboardIcon: string;
168
+ languageCompartment: Compartment;
169
+ readonlyCompartment: Compartment;
170
+ placeholderCompartment: Compartment;
171
+ get hasInputStyle(): boolean;
172
+ _autocomplete(completionContext: any): any;
173
+ findBestAutocompleteHandler(completionContext: any): {
174
+ handler: {
175
+ run(completionContext: any): any;
176
+ };
177
+ match: boolean;
178
+ };
179
+ get defaultCompletionHandler(): {
180
+ run(completionContext: any): any;
181
+ };
182
+ _getExtensions(): import("@codemirror/state").Extension[];
183
+ getExtensions(): never[];
184
+ _editorState: any;
185
+ _editorView: any;
186
+ _reflectPlaceholder(): void;
187
+ _reflectValue(): void;
188
+ _reflectReadonlyDisabled(): void;
189
+ _reflectOptions(): Promise<void>;
190
+ }
191
+ import { GvInput } from "../atoms/gv-input";
192
+ import { Compartment } from "@codemirror/state";
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Confirm component
3
+ *
4
+ * ## Details
5
+ * * has @theme facet
6
+ *
7
+ * @extends GvPopover
8
+ *
9
+ * @attr {String} event - the event that triggers the opening
10
+ * @attr {String} okLabel - the label of ok btn
11
+ * @attr {String} cancelLabel - the label of cancel btn
12
+ * @attr {String} icon - the icon before message
13
+ * @attr {String} message - the message
14
+ * @attr {Boolean} disabled - same as native button element `disabled` attribute
15
+ *
16
+ * @cssprop {Color} [--gv-confirm--bgc=var(--gv-theme-neutral-color-lighter, #fafafa)] - Background color
17
+ * @cssprop {Length} [--gv-confirm--maw=350px] - Max width
18
+ */
19
+ export class GvConfirm extends GvPopover {
20
+ static get properties(): {
21
+ /**
22
+ * @default i18n: gv-confirm.cancel
23
+ */
24
+ cancelLabel: {
25
+ type: StringConstructor;
26
+ };
27
+ /**
28
+ * @default i18n: gv-confirm.ok
29
+ */
30
+ okLabel: {
31
+ type: StringConstructor;
32
+ };
33
+ message: {
34
+ type: StringConstructor;
35
+ };
36
+ icon: {
37
+ type: StringConstructor;
38
+ };
39
+ danger: {
40
+ type: BooleanConstructor;
41
+ reflect: boolean;
42
+ };
43
+ disabled: {
44
+ type: BooleanConstructor;
45
+ };
46
+ _disabled: {
47
+ type: BooleanConstructor;
48
+ };
49
+ };
50
+ static get styles(): (import("lit").CSSResult | import("lit").CSSResult[])[];
51
+ icon: string;
52
+ cancelLabel: string;
53
+ okLabel: string;
54
+ _onCancel(): void;
55
+ _onOk(): void;
56
+ _disabled: any;
57
+ _reflectDisabledOnSlot(): void;
58
+ _calculateIsDisabled(): any;
59
+ }
60
+ import { GvPopover } from "./gv-popover";
@@ -0,0 +1,115 @@
1
+ declare const GvCronEditor_base: {
2
+ new (): {
3
+ [x: string]: any;
4
+ _onResize({ width }: {
5
+ width: any;
6
+ }): void;
7
+ connectedCallback(): Promise<void>;
8
+ _unobserveResize: (() => any) | undefined;
9
+ disconnectedCallback(): void;
10
+ };
11
+ [x: string]: any;
12
+ };
13
+ /**
14
+ * Cron editor component
15
+ *
16
+ * ## Details
17
+ *
18
+ * @fires gv-cron-editor:input - input events with the `value` on `detail`
19
+ *
20
+ * @attr {String} label - cron editor label
21
+ * @attr {String} value - cron expression
22
+ * @attr {String} mode - the opened mode (if no value is set, the pro mode will be opened)
23
+ *
24
+ * @attr {Boolean} [clipboard=false]- true if field has clipboard button
25
+ * @attr {Boolean} [autofocus=false] - true to put the focus on the input
26
+ * @attr {Boolean} [readonly=false] - true if field is readonly mode
27
+ */
28
+ export class GvCronEditor extends GvCronEditor_base {
29
+ static get properties(): any;
30
+ static get styles(): import("lit").CSSResult[];
31
+ _value: string;
32
+ readonly: boolean;
33
+ autofocus: boolean;
34
+ clipboard: boolean;
35
+ _modes: string[];
36
+ _timeRange: number[];
37
+ _days: {
38
+ value: string;
39
+ label: string;
40
+ }[];
41
+ _months: string[];
42
+ _state: {
43
+ seconds: {
44
+ seconds: number;
45
+ };
46
+ minutes: {
47
+ minutes: number;
48
+ seconds: number;
49
+ };
50
+ hourly: {
51
+ hours: number;
52
+ minutes: number;
53
+ seconds: number;
54
+ };
55
+ daily: {
56
+ days: number;
57
+ time: number;
58
+ weekdays: boolean;
59
+ };
60
+ weekly: {
61
+ days: never[];
62
+ time: number;
63
+ };
64
+ monthly: {
65
+ day: number;
66
+ month: number;
67
+ time: number;
68
+ };
69
+ yearly: {
70
+ day: number;
71
+ month: number;
72
+ time: number;
73
+ };
74
+ pro: {
75
+ value: string;
76
+ displayDetails: boolean;
77
+ };
78
+ };
79
+ _docs: {
80
+ id: string;
81
+ label: string;
82
+ }[];
83
+ _currentDocumentationId: string;
84
+ _handleChange: ({ target, detail }: {
85
+ target: any;
86
+ detail: any;
87
+ }) => void;
88
+ _small: boolean;
89
+ tryToComputeAndInitModeFromValue(): void;
90
+ mode: any;
91
+ onResize({ width }: {
92
+ width: any;
93
+ }): void;
94
+ _truncateTabs: boolean | undefined;
95
+ set value(arg: string);
96
+ get value(): string;
97
+ firstUpdated(): Promise<void>;
98
+ _onOpenDocumentation(docId: any): void;
99
+ _onChange({ target, detail }: {
100
+ target: any;
101
+ detail: any;
102
+ }): void;
103
+ _onChangeTab(event: any): void;
104
+ _getTimeExpression(date: any): string;
105
+ generate(): void;
106
+ updateState(value: any): void;
107
+ renderLabel(): "" | import("lit-html").TemplateResult<1>;
108
+ displayProDetails(): void;
109
+ renderProDetails(): "" | import("lit-html").TemplateResult<1>;
110
+ render(): import("lit-html").TemplateResult<1>;
111
+ get allowedValues(): "" | "0-23" | "1-31" | "1-12 or JAN-DEC" | "1-7 or SUN-SAT" | "0-59";
112
+ get allowedChar(): "" | ",-*/";
113
+ _getDaySuffix(day?: number): "" | "th" | "st" | "nd" | "rd";
114
+ }
115
+ export {};
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Dropdown menu
3
+ *
4
+ * @slot - The element which must be clicked to open the actions
5
+ * @slot actions - Element that contains actions
6
+ *
7
+ * @attr {Boolean} open - true, if menu should be open
8
+ * @attr {Boolean} right - true, if actions should at right of container when opened
9
+ */
10
+ export class GvDropdownMenu extends LitElement {
11
+ static get properties(): {
12
+ open: {
13
+ type: BooleanConstructor;
14
+ reflect: boolean;
15
+ };
16
+ right: {
17
+ type: BooleanConstructor;
18
+ reflect: boolean;
19
+ };
20
+ };
21
+ static get styles(): import("lit").CSSResult[];
22
+ open: boolean;
23
+ right: boolean;
24
+ _handleDocumentClick: () => void;
25
+ _onDocumentClick(): void;
26
+ toggle(): void;
27
+ }
28
+ import { LitElement } from "lit-element/lit-element";
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Expandable component
3
+ *
4
+ * @fires gv-expandable:toggle - When user toggle
5
+ *
6
+ * @attr {Boolean} open - When true, opens details by default
7
+ * @attr {String} icon - An icon to show open feature
8
+ * @attr {String} icon-opened - An icon to show close feature
9
+ * @attr {Boolean} clickable - When true, details is clickable like summary
10
+ *
11
+ * @cssprop {String} [--gv-expandable--bdb=var(--gv-expandable--bdb, thin solid var(--gv-theme-color, #5a7684)] - Border bottom
12
+ */
13
+ export class GvExpandable extends LitElement {
14
+ static get properties(): {
15
+ open: {
16
+ type: BooleanConstructor;
17
+ reflect: boolean;
18
+ };
19
+ icon: {
20
+ type: StringConstructor;
21
+ };
22
+ iconOpened: {
23
+ type: StringConstructor;
24
+ attribute: string;
25
+ };
26
+ clickable: {
27
+ type: BooleanConstructor;
28
+ };
29
+ };
30
+ static get styles(): import("lit").CSSResult[];
31
+ open: boolean;
32
+ icon: string;
33
+ iconOpened: string;
34
+ clickable: boolean;
35
+ _onClick(event: any): void;
36
+ }
37
+ import { LitElement } from "lit-element/lit-element";
@@ -0,0 +1,150 @@
1
+ /**
2
+ * Expression Language component
3
+ *
4
+ * @fires gv-expression-language:input - input events with the `value` on `detail`
5
+ * @fires gv-expression-language:ready - event dispatch when component is ready
6
+ * @fires gv-expression-language:clipboard-copy - event dispatch when component the `value` has been copied to clipboard
7
+ *
8
+ * @attr {String} label - code language
9
+ * @attr {String} value - code content to be highlighted
10
+ * @attr {options} Object - options based on codemirror
11
+ * @attr {String} placeholder - an example value to display in the input when empty
12
+ * @attr {Number} rows - number of rows of the text element
13
+ * @attr {Boolean} large - for a large input (only if the field has one row)
14
+ * @attr {Boolean} medium - for a medium input (only if the field has one row) (Default)
15
+ * @attr {Boolean} small - for a small input (only if the field has one row)
16
+ * @attr {Object} grammar - The grammar for Expression Language support
17
+ *
18
+ * @attr {Boolean} [clipboard=false]- true if field has clipboard button
19
+ * @attr {Boolean} [autofocus=false] - true to put the focus on the input
20
+ * @attr {Boolean} [readonly=false] - true if field is readonly mode
21
+ */
22
+ export class GvExpressionLanguage extends GvCode {
23
+ static get properties(): {
24
+ grammar: {
25
+ type: ObjectConstructor;
26
+ };
27
+ options: {
28
+ type: ObjectConstructor;
29
+ };
30
+ rows: {
31
+ type: NumberConstructor;
32
+ };
33
+ _error: {
34
+ type: StringConstructor;
35
+ attribute: boolean;
36
+ };
37
+ type: {
38
+ type: StringConstructor;
39
+ reflect: boolean;
40
+ };
41
+ large: {
42
+ type: BooleanConstructor;
43
+ };
44
+ medium: {
45
+ type: BooleanConstructor;
46
+ };
47
+ small: {
48
+ type: BooleanConstructor;
49
+ };
50
+ icon: {
51
+ type: StringConstructor;
52
+ };
53
+ iconLeft: {
54
+ type: StringConstructor;
55
+ attribute: string;
56
+ };
57
+ loading: {
58
+ type: BooleanConstructor;
59
+ };
60
+ min: {
61
+ type: NumberConstructor;
62
+ };
63
+ max: {
64
+ type: NumberConstructor;
65
+ };
66
+ autocomplete: {
67
+ type: StringConstructor;
68
+ };
69
+ clipboard: {
70
+ type: BooleanConstructor;
71
+ };
72
+ clickable: {
73
+ type: BooleanConstructor;
74
+ };
75
+ clearable: {
76
+ type: BooleanConstructor;
77
+ };
78
+ noSubmit: {
79
+ type: BooleanConstructor;
80
+ attribute: string;
81
+ };
82
+ pattern: {
83
+ type: StringConstructor;
84
+ reflect: boolean;
85
+ };
86
+ description: {
87
+ type: StringConstructor;
88
+ };
89
+ _type: {
90
+ type: StringConstructor;
91
+ attribute: boolean;
92
+ };
93
+ disabled: {
94
+ type: BooleanConstructor;
95
+ reflect: boolean;
96
+ };
97
+ required: {
98
+ type: BooleanConstructor;
99
+ reflect: boolean;
100
+ };
101
+ readonly: {
102
+ type: BooleanConstructor;
103
+ reflect: boolean;
104
+ };
105
+ skeleton: {
106
+ type: BooleanConstructor;
107
+ };
108
+ value: {
109
+ type: StringConstructor;
110
+ reflect: boolean;
111
+ };
112
+ label: {
113
+ type: StringConstructor;
114
+ };
115
+ title: {
116
+ type: StringConstructor;
117
+ };
118
+ name: {
119
+ type: StringConstructor;
120
+ };
121
+ placeholder: {
122
+ type: StringConstructor;
123
+ };
124
+ autofocus: {
125
+ type: BooleanConstructor;
126
+ };
127
+ invalid: {
128
+ type: BooleanConstructor;
129
+ reflect: boolean;
130
+ };
131
+ valid: {
132
+ type: BooleanConstructor;
133
+ reflect: boolean;
134
+ };
135
+ };
136
+ insertELKeymap(): import("@codemirror/state").Extension;
137
+ buildMethods(type: any): any;
138
+ getModelType(typeId: any): any;
139
+ isMap(typeId: any): boolean;
140
+ getEnum(typeId: any): any;
141
+ convertType(type: any): "text" | "variable" | "type" | "enum";
142
+ get expressionLanguageCompletionHandlers(): ({
143
+ run(completionContext: any): any;
144
+ } | {
145
+ expr: RegExp;
146
+ supportEL: boolean;
147
+ run(completionContext: any, match: any): any;
148
+ })[];
149
+ }
150
+ import { GvCode } from "../molecules/gv-code";
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Identity picture component
3
+ *
4
+ * ## Details
5
+ * * has @theme facet
6
+ *
7
+ * @attr {String} picture - the picture
8
+ * @attr {String} display_name - the display_name of the picture
9
+ * @attr {Boolean} notification - true to display a notification info
10
+ * @attr {Boolean} rounded - true for rounded image/icon
11
+ *
12
+ * @cssprop {Color} [--gv-identity-picture-notification--bgc=var(--gv-theme-color-light, #86c3d0)] - Notification background color
13
+ */
14
+ export class GvIdentityPicture extends LitElement {
15
+ static get properties(): {
16
+ picture: {
17
+ type: StringConstructor;
18
+ };
19
+ display_name: {
20
+ type: StringConstructor;
21
+ };
22
+ _error: {
23
+ type: BooleanConstructor;
24
+ attribute: boolean;
25
+ };
26
+ notification: {
27
+ type: BooleanConstructor;
28
+ };
29
+ rounded: {
30
+ type: BooleanConstructor;
31
+ reflect: boolean;
32
+ };
33
+ skeleton: {
34
+ type: BooleanConstructor;
35
+ };
36
+ };
37
+ static get styles(): import("lit").CSSResult[];
38
+ _onError(): void;
39
+ _error: boolean | undefined;
40
+ _toNumber(size: any): number;
41
+ _onLoaded(): void;
42
+ _getMaxSize(width: any, height: any): number;
43
+ }
44
+ import { LitElement } from "lit-element/lit-element";