@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.
- package/package.json +3 -4
- package/src/atoms/gv-autocomplete.d.ts +104 -0
- package/src/atoms/gv-button.d.ts +109 -0
- package/src/atoms/gv-checkbox.d.ts +114 -0
- package/src/atoms/gv-date-picker-calendar.d.ts +190 -0
- package/src/atoms/gv-date-picker-cell.d.ts +80 -0
- package/src/atoms/gv-date-picker.d.ts +194 -0
- package/src/atoms/gv-file-upload.d.ts +64 -0
- package/src/atoms/gv-icon.d.ts +26 -0
- package/src/atoms/gv-image.d.ts +45 -0
- package/src/atoms/gv-input-message.d.ts +20 -0
- package/src/atoms/gv-input.d.ts +246 -0
- package/src/atoms/gv-link.d.ts +67 -0
- package/src/atoms/gv-message.d.ts +23 -0
- package/src/atoms/gv-message.js +1 -1
- package/src/atoms/gv-metric.d.ts +32 -0
- package/src/atoms/gv-relative-time.d.ts +45 -0
- package/src/atoms/gv-select-native.d.ts +174 -0
- package/src/atoms/gv-select.d.ts +71 -0
- package/src/atoms/gv-spinner.d.ts +10 -0
- package/src/atoms/gv-state.d.ts +50 -0
- package/src/atoms/gv-switch.d.ts +60 -0
- package/src/atoms/gv-tag.d.ts +69 -0
- package/src/atoms/gv-text.d.ts +110 -0
- package/src/charts/gv-chart-bar.d.ts +50 -0
- package/src/charts/gv-chart-gauge.d.ts +58 -0
- package/src/charts/gv-chart-histogram.d.ts +48 -0
- package/src/charts/gv-chart-line.d.ts +52 -0
- package/src/charts/gv-chart-map.d.ts +50 -0
- package/src/charts/gv-chart-pie.d.ts +50 -0
- package/src/index.d.ts +77 -0
- package/src/lib/cron-expression.d.ts +1 -0
- package/src/lib/date.d.ts +1 -0
- package/src/lib/events.d.ts +1 -0
- package/src/lib/http-client-schema-form.d.ts +68 -0
- package/src/lib/http.d.ts +222 -0
- package/src/lib/i18n.d.ts +30 -0
- package/src/lib/item.d.ts +12 -0
- package/src/lib/properties.d.ts +42 -0
- package/src/lib/schema-form.d.ts +5 -0
- package/src/lib/studio.d.ts +2 -0
- package/src/lib/style.d.ts +6 -0
- package/src/lib/text-format.d.ts +6 -0
- package/src/lib/theme.d.ts +4 -0
- package/src/lib/utils.d.ts +9 -0
- package/src/mixins/chart-element.d.ts +39 -0
- package/src/mixins/input-element.d.ts +64 -0
- package/src/mixins/item-resource.d.ts +56 -0
- package/src/mixins/keyboard-element.d.ts +25 -0
- package/src/mixins/update-after-browser.d.ts +11 -0
- package/src/mixins/with-resize-observer.d.ts +12 -0
- package/src/mixins/with-skeleton-attribute.d.ts +35 -0
- package/src/molecules/gv-card-full.d.ts +78 -0
- package/src/molecules/gv-card-list.d.ts +33 -0
- package/src/molecules/gv-card.d.ts +65 -0
- package/src/molecules/gv-category-list.d.ts +17 -0
- package/src/molecules/gv-category.d.ts +64 -0
- package/src/molecules/gv-code.d.ts +192 -0
- package/src/molecules/gv-confirm.d.ts +60 -0
- package/src/molecules/gv-cron-editor.d.ts +115 -0
- package/src/molecules/gv-dropdown-menu.d.ts +28 -0
- package/src/molecules/gv-expandable.d.ts +37 -0
- package/src/molecules/gv-expression-language.d.ts +150 -0
- package/src/molecules/gv-identity-picture.d.ts +44 -0
- package/src/molecules/gv-list.d.ts +123 -0
- package/src/molecules/gv-metrics.d.ts +65 -0
- package/src/molecules/gv-modal.d.ts +64 -0
- package/src/molecules/gv-nav.d.ts +41 -0
- package/src/molecules/gv-option.d.ts +65 -0
- package/src/molecules/gv-plans.d.ts +73 -0
- package/src/molecules/gv-popover.d.ts +91 -0
- package/src/molecules/gv-promote.d.ts +108 -0
- package/src/molecules/gv-rating-list.d.ts +77 -0
- package/src/molecules/gv-rating.d.ts +55 -0
- package/src/molecules/gv-row-expandable.d.ts +8 -0
- package/src/molecules/gv-row.d.ts +37 -0
- package/src/molecules/gv-stats.d.ts +53 -0
- package/src/molecules/gv-stepper.d.ts +46 -0
- package/src/molecules/gv-table.d.ts +159 -0
- package/src/molecules/gv-tree.d.ts +44 -0
- package/src/organisms/gv-documentation.d.ts +52 -0
- package/src/organisms/gv-header.d.ts +60 -0
- package/src/organisms/gv-http-client.d.ts +57 -0
- package/src/organisms/gv-menu.d.ts +74 -0
- package/src/organisms/gv-newsletter-subscription.d.ts +82 -0
- package/src/organisms/gv-pagination.d.ts +63 -0
- package/src/organisms/gv-properties.d.ts +229 -0
- package/src/organisms/gv-resizable-views.d.ts +33 -0
- package/src/organisms/gv-resources.d.ts +125 -0
- package/src/organisms/gv-schema-form-array.d.ts +55 -0
- package/src/organisms/gv-schema-form-control-object.d.ts +64 -0
- package/src/organisms/gv-schema-form-control.d.ts +90 -0
- package/src/organisms/gv-schema-form.d.ts +156 -0
- package/src/organisms/gv-tabs.d.ts +56 -0
- package/src/organisms/gv-user-menu.d.ts +56 -0
- package/src/organisms/gv-vertical-menu.d.ts +28 -0
- package/src/policy-studio/gv-flow-step.d.ts +142 -0
- package/src/policy-studio/gv-flow.d.ts +89 -0
- package/src/policy-studio/gv-policy-studio-menu.d.ts +94 -0
- package/src/policy-studio/gv-policy-studio.d.ts +464 -0
- package/src/styles/empty.d.ts +1 -0
- package/src/styles/input.d.ts +1 -0
- package/src/styles/link.d.ts +1 -0
- package/src/styles/shapes.d.ts +2 -0
- package/src/styles/skeleton.d.ts +1 -0
- package/src/styles/zoom.d.ts +1 -0
- package/src/theme/gv-theme.d.ts +81 -0
- package/wc/gv-autocomplete.d.ts +1 -0
- package/wc/gv-button.d.ts +1 -0
- package/wc/gv-card-full.d.ts +1 -0
- package/wc/gv-card-list.d.ts +1 -0
- package/wc/gv-card.d.ts +1 -0
- package/wc/gv-category-list.d.ts +1 -0
- package/wc/gv-category.d.ts +1 -0
- package/wc/gv-chart-bar.d.ts +1 -0
- package/wc/gv-chart-gauge.d.ts +1 -0
- package/wc/gv-chart-histogram.d.ts +1 -0
- package/wc/gv-chart-line.d.ts +1 -0
- package/wc/gv-chart-map.d.ts +1 -0
- package/wc/gv-chart-pie.d.ts +1 -0
- package/wc/gv-checkbox.d.ts +1 -0
- package/wc/gv-code.d.ts +1 -0
- package/wc/gv-confirm.d.ts +1 -0
- package/wc/gv-cron-editor.d.ts +1 -0
- package/wc/gv-date-picker-calendar.d.ts +1 -0
- package/wc/gv-date-picker-cell.d.ts +1 -0
- package/wc/gv-date-picker.d.ts +1 -0
- package/wc/gv-documentation.d.ts +1 -0
- package/wc/gv-dropdown-menu.d.ts +1 -0
- package/wc/gv-expandable.d.ts +1 -0
- package/wc/gv-expression-language.d.ts +1 -0
- package/wc/gv-file-upload.d.ts +1 -0
- package/wc/gv-flow-step.d.ts +1 -0
- package/wc/gv-flow.d.ts +1 -0
- package/wc/gv-header.d.ts +1 -0
- package/wc/gv-http-client.d.ts +1 -0
- package/wc/gv-icon.d.ts +1 -0
- package/wc/gv-identity-picture.d.ts +1 -0
- package/wc/gv-image.d.ts +1 -0
- package/wc/gv-input-message.d.ts +1 -0
- package/wc/gv-input.d.ts +1 -0
- package/wc/gv-link.d.ts +1 -0
- package/wc/gv-list.d.ts +1 -0
- package/wc/gv-menu.d.ts +1 -0
- package/wc/gv-message.d.ts +1 -0
- package/wc/gv-metric.d.ts +1 -0
- package/wc/gv-metrics.d.ts +1 -0
- package/wc/gv-modal.d.ts +1 -0
- package/wc/gv-nav.d.ts +1 -0
- package/wc/gv-newsletter-subscription.d.ts +1 -0
- package/wc/gv-option.d.ts +1 -0
- package/wc/gv-pagination.d.ts +1 -0
- package/wc/gv-plans.d.ts +1 -0
- package/wc/gv-policy-studio-menu.d.ts +1 -0
- package/wc/gv-policy-studio.d.ts +1 -0
- package/wc/gv-popover.d.ts +1 -0
- package/wc/gv-promote.d.ts +1 -0
- package/wc/gv-properties.d.ts +1 -0
- package/wc/gv-rating-list.d.ts +1 -0
- package/wc/gv-rating.d.ts +1 -0
- package/wc/gv-relative-time.d.ts +1 -0
- package/wc/gv-resizable-views.d.ts +1 -0
- package/wc/gv-resources.d.ts +1 -0
- package/wc/gv-row-expandable.d.ts +1 -0
- package/wc/gv-row.d.ts +1 -0
- package/wc/gv-schema-form-array.d.ts +1 -0
- package/wc/gv-schema-form-control-object.d.ts +1 -0
- package/wc/gv-schema-form-control.d.ts +1 -0
- package/wc/gv-schema-form.d.ts +1 -0
- package/wc/gv-select-native.d.ts +1 -0
- package/wc/gv-select.d.ts +1 -0
- package/wc/gv-spinner.d.ts +1 -0
- package/wc/gv-state.d.ts +1 -0
- package/wc/gv-stats.d.ts +1 -0
- package/wc/gv-stepper.d.ts +1 -0
- package/wc/gv-switch.d.ts +1 -0
- package/wc/gv-table.d.ts +1 -0
- package/wc/gv-tabs.d.ts +1 -0
- package/wc/gv-tag.d.ts +1 -0
- package/wc/gv-text.d.ts +1 -0
- package/wc/gv-theme.d.ts +1 -0
- package/wc/gv-tree.d.ts +1 -0
- package/wc/gv-user-menu.d.ts +1 -0
- package/wc/gv-vertical-menu.d.ts +1 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Metric
|
|
3
|
+
*
|
|
4
|
+
* ## Details
|
|
5
|
+
* * has @theme facet
|
|
6
|
+
*
|
|
7
|
+
* @attr {String} icon - name of shape
|
|
8
|
+
* @attr {String} name - the name of the metric
|
|
9
|
+
* @attr {String} value - the value of the metric
|
|
10
|
+
* @attr {Boolean} skeleton - enable skeleton screen UI pattern (loading hint)
|
|
11
|
+
*
|
|
12
|
+
* @cssprop {Color} [--gv-metric--c=var(--gv-theme-color, #5a7684)] - Color
|
|
13
|
+
* @cssprop {Length} [--gv-metric-icon--s=24px] - Height and icon width
|
|
14
|
+
*/
|
|
15
|
+
export class GvMetric extends LitElement {
|
|
16
|
+
static get properties(): {
|
|
17
|
+
icon: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
};
|
|
20
|
+
name: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
};
|
|
23
|
+
value: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
};
|
|
26
|
+
skeleton: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
static get styles(): import("lit").CSSResult[];
|
|
31
|
+
}
|
|
32
|
+
import { LitElement } from "lit-element/lit-element";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component to display a localized humanized relative date (ex: "two minutes ago").
|
|
3
|
+
*
|
|
4
|
+
* ## Details
|
|
5
|
+
* * has @theme facet
|
|
6
|
+
*
|
|
7
|
+
* @prop {String|Number} datetime - Date as ISO string or timestamp.
|
|
8
|
+
* @prop {Boolean} noFuture - Whether a date in future is allowed or not (useful when not sync).
|
|
9
|
+
*/
|
|
10
|
+
export class GvRelativeTime extends LitElement {
|
|
11
|
+
static get properties(): {
|
|
12
|
+
datetime: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
};
|
|
15
|
+
title: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
reflect: boolean;
|
|
18
|
+
};
|
|
19
|
+
noFuture: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
};
|
|
22
|
+
_relativeTime: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
attribute: boolean;
|
|
25
|
+
};
|
|
26
|
+
_updateIntervalId: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
attribute: boolean;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
_formatter: {
|
|
32
|
+
new (locales?: string | string[] | undefined, options?: Intl.RelativeTimeFormatOptions | undefined): Intl.RelativeTimeFormat;
|
|
33
|
+
supportedLocalesOf(locales?: string | string[] | undefined, options?: Intl.RelativeTimeFormatOptions | undefined): string[];
|
|
34
|
+
} | null;
|
|
35
|
+
getFormatter(): Promise<{
|
|
36
|
+
new (locales?: string | string[] | undefined, options?: Intl.RelativeTimeFormatOptions | undefined): Intl.RelativeTimeFormat;
|
|
37
|
+
supportedLocalesOf(locales?: string | string[] | undefined, options?: Intl.RelativeTimeFormatOptions | undefined): string[];
|
|
38
|
+
}>;
|
|
39
|
+
set datetime(arg: any);
|
|
40
|
+
_datetime: any;
|
|
41
|
+
_formatDateInThePast(date: any): any;
|
|
42
|
+
_format(dateStr: any, lang: any): Promise<string | undefined>;
|
|
43
|
+
updateIntervalId: NodeJS.Timeout | null | undefined;
|
|
44
|
+
}
|
|
45
|
+
import { LitElement } from "lit-element/lit-element";
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
declare const GvSelectNative_base: {
|
|
2
|
+
new (): {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
_id: string;
|
|
5
|
+
valid: boolean;
|
|
6
|
+
invalid: boolean;
|
|
7
|
+
updateState(value: any): void;
|
|
8
|
+
setValidity(isInvalid?: boolean, violation?: string): void;
|
|
9
|
+
firstUpdated(): void;
|
|
10
|
+
updated(changedProperties: any): void;
|
|
11
|
+
getInputElement(): any;
|
|
12
|
+
readonly offsetHeight: any;
|
|
13
|
+
renderLabel(): "" | import("lit-html").TemplateResult<1>;
|
|
14
|
+
};
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
readonly properties: {
|
|
17
|
+
disabled: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
reflect: boolean;
|
|
20
|
+
};
|
|
21
|
+
required: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
reflect: boolean;
|
|
24
|
+
};
|
|
25
|
+
readonly: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
reflect: boolean;
|
|
28
|
+
};
|
|
29
|
+
skeleton: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
};
|
|
32
|
+
value: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
reflect: boolean;
|
|
35
|
+
};
|
|
36
|
+
label: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
};
|
|
39
|
+
title: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
};
|
|
42
|
+
name: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
};
|
|
45
|
+
placeholder: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
};
|
|
48
|
+
description: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
};
|
|
51
|
+
autofocus: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
};
|
|
54
|
+
invalid: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
reflect: boolean;
|
|
57
|
+
};
|
|
58
|
+
valid: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
reflect: boolean;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
readonly styles: import("lit").CSSResult[];
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* A select native component.
|
|
67
|
+
*
|
|
68
|
+
* @fires gv-select:select - Event when user select a value (deprecated, use gv-select:input)
|
|
69
|
+
* @fires gv-select:input - Event when user select a value
|
|
70
|
+
*
|
|
71
|
+
* @attr {Boolean} disabled - same as native select element `disabled` attribute
|
|
72
|
+
* @attr {Boolean} required - same as native select element `required` attribute
|
|
73
|
+
* @attr {Boolean} skeleton - enable skeleton screen UI pattern (loading hint)
|
|
74
|
+
* @attr {Array} options - the options of the select
|
|
75
|
+
* @attr {String | Array} value - the value of the select
|
|
76
|
+
* @attr {String} label - label of the select
|
|
77
|
+
* @attr {String} title - title of the select
|
|
78
|
+
* @attr {String} name - name of the select
|
|
79
|
+
* @attr {String} placeholder - an example value to display in the select when empty
|
|
80
|
+
* @attr {String} description - a description
|
|
81
|
+
* @attr {Boolean} multiple - enable multiple selection
|
|
82
|
+
*
|
|
83
|
+
* @cssprop {Color} [--gv-select--bgc=var(--gv-theme-neutral-color-lightest, #ffffff)] - Background color
|
|
84
|
+
* @cssprop {Color} [--gv-select--bdc=var(--gv-theme-neutral-color-dark, #d9d9d9)] - Border color
|
|
85
|
+
* @cssprop {Color} [--gv-select--c=var(--gv-theme-font-color-dark, #262626)] - Color
|
|
86
|
+
* @cssprop {Color} [--gv-select-hover--bgc=var(--gv-theme-color-light, #86c3d0)] - Hover background color
|
|
87
|
+
* @cssprop {Color} [--gv-select-selected--bgc=var(--gv-theme-neutral-color-light, #efefef)] - Selected background color
|
|
88
|
+
*/
|
|
89
|
+
export class GvSelectNative extends GvSelectNative_base {
|
|
90
|
+
static get properties(): {
|
|
91
|
+
options: {
|
|
92
|
+
type: ArrayConstructor;
|
|
93
|
+
};
|
|
94
|
+
_options: {
|
|
95
|
+
type: ArrayConstructor;
|
|
96
|
+
attribute: boolean;
|
|
97
|
+
};
|
|
98
|
+
large: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
};
|
|
101
|
+
medium: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
};
|
|
104
|
+
small: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
};
|
|
107
|
+
value: {
|
|
108
|
+
type: number;
|
|
109
|
+
};
|
|
110
|
+
label: {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
};
|
|
113
|
+
title: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
};
|
|
116
|
+
name: {
|
|
117
|
+
type: StringConstructor;
|
|
118
|
+
};
|
|
119
|
+
placeholder: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
};
|
|
122
|
+
description: {
|
|
123
|
+
type: StringConstructor;
|
|
124
|
+
};
|
|
125
|
+
multiple: {
|
|
126
|
+
type: BooleanConstructor;
|
|
127
|
+
reflect: boolean;
|
|
128
|
+
};
|
|
129
|
+
disabled: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
reflect: boolean;
|
|
132
|
+
};
|
|
133
|
+
required: {
|
|
134
|
+
type: BooleanConstructor;
|
|
135
|
+
reflect: boolean;
|
|
136
|
+
};
|
|
137
|
+
readonly: {
|
|
138
|
+
type: BooleanConstructor;
|
|
139
|
+
reflect: boolean;
|
|
140
|
+
};
|
|
141
|
+
skeleton: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
};
|
|
144
|
+
autofocus: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
};
|
|
147
|
+
invalid: {
|
|
148
|
+
type: BooleanConstructor;
|
|
149
|
+
reflect: boolean;
|
|
150
|
+
};
|
|
151
|
+
valid: {
|
|
152
|
+
type: BooleanConstructor;
|
|
153
|
+
reflect: boolean;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
_options: {
|
|
157
|
+
label: string;
|
|
158
|
+
value: string;
|
|
159
|
+
disabled: boolean;
|
|
160
|
+
title: null;
|
|
161
|
+
}[];
|
|
162
|
+
willUpdate(changedProperties: any): void;
|
|
163
|
+
_onEnter(e: any): void;
|
|
164
|
+
_onLeave(): void;
|
|
165
|
+
_onInput(e: any): void;
|
|
166
|
+
value: any;
|
|
167
|
+
_onClear(): void;
|
|
168
|
+
set options(arg: any);
|
|
169
|
+
selectedLabel(): string;
|
|
170
|
+
renderSelect(): import("lit-html").TemplateResult<1>;
|
|
171
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
172
|
+
isSelected(option: any): any;
|
|
173
|
+
}
|
|
174
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
declare const GvSelect_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
|
+
* A select component, is more like a list box...
|
|
15
|
+
* ⚠️ Please use `<gv-select-native>` component if you don't need strong customization.
|
|
16
|
+
* ⚠️ DO NO USE IT inside a `<gv-table>` component to avoid any scroll or overlapping issue.
|
|
17
|
+
*
|
|
18
|
+
* ## Details
|
|
19
|
+
* * has @theme facet
|
|
20
|
+
*
|
|
21
|
+
* @fires gv-select:select - Event when user select a value (deprecated, use gv-select:input)
|
|
22
|
+
* @fires gv-select:input - Event when user select a value
|
|
23
|
+
*
|
|
24
|
+
* @attr {Boolean} disabled - same as native select element `disabled` attribute
|
|
25
|
+
* @attr {Boolean} required - same as native select element `required` attribute
|
|
26
|
+
* @attr {Boolean} skeleton - enable skeleton screen UI pattern (loading hint)
|
|
27
|
+
* @attr {Array} options - the options of the select
|
|
28
|
+
* @attr {String | Array} value - the value of the select
|
|
29
|
+
* @attr {String} label - label of the select
|
|
30
|
+
* @attr {String} title - title of the select
|
|
31
|
+
* @attr {String} name - name of the select
|
|
32
|
+
* @attr {String} placeholder - an example value to display in the select when empty
|
|
33
|
+
* @attr {String} description - a description
|
|
34
|
+
* @attr {Boolean} multiple - enable multiple selection
|
|
35
|
+
*
|
|
36
|
+
* @cssprop {Color} [--gv-select--bgc=var(--gv-theme-neutral-color-lightest, #ffffff)] - Background color
|
|
37
|
+
* @cssprop {Color} [--gv-select--list-bgc=var(--gv-select--bgc, var(--gv-theme-neutral-color-lightest, #ffffff))] - List items background color
|
|
38
|
+
* @cssprop {Color} [--gv-select--bdc=var(--gv-theme-neutral-color-dark, #d9d9d9)] - Border color
|
|
39
|
+
* @cssprop {Color} [--gv-select--c=var(--gv-theme-font-color-dark, #262626)] - Color
|
|
40
|
+
* @cssprop {Color} [--gv-select-hover--bgc=var(--gv-theme-color-light, #86c3d0)] - Hover background color
|
|
41
|
+
* @cssprop {Color} [--gv-select-selected--bgc=var(--gv-theme-neutral-color-light, #efefef)] - Selected background color
|
|
42
|
+
*/
|
|
43
|
+
export class GvSelect extends GvSelect_base {
|
|
44
|
+
static get properties(): any;
|
|
45
|
+
static get styles(): any[];
|
|
46
|
+
_type: string;
|
|
47
|
+
_isClosed: boolean;
|
|
48
|
+
_options: {
|
|
49
|
+
label: string;
|
|
50
|
+
value: string;
|
|
51
|
+
disabled: boolean;
|
|
52
|
+
title: null;
|
|
53
|
+
}[];
|
|
54
|
+
_handleDocumentClick: () => void;
|
|
55
|
+
willUpdate(changedProperties: any): void;
|
|
56
|
+
updateState(value: any): void;
|
|
57
|
+
invalid: boolean | undefined;
|
|
58
|
+
close(): void;
|
|
59
|
+
_onDocumentClick(): void;
|
|
60
|
+
_onClick(e: any): void;
|
|
61
|
+
_onSelect(option: any, e: any): void;
|
|
62
|
+
value: any;
|
|
63
|
+
_onClear(): void;
|
|
64
|
+
_renderIcon(): "" | import("lit-html").TemplateResult<1>;
|
|
65
|
+
set options(arg: any);
|
|
66
|
+
selectedLabel(): string;
|
|
67
|
+
onResize(): void;
|
|
68
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
69
|
+
isSelected(option: any): any;
|
|
70
|
+
}
|
|
71
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spinner component
|
|
3
|
+
*
|
|
4
|
+
* ## Details
|
|
5
|
+
* @cssprop {Image} [--gv-theme-loader=var(--gv-theme-loader, url('images/gravitee-loader.gif'))] - Spinner image
|
|
6
|
+
*/
|
|
7
|
+
export class GvSpinner extends LitElement {
|
|
8
|
+
static get styles(): import("lit").CSSResult[];
|
|
9
|
+
}
|
|
10
|
+
import { LitElement } from "lit-element/lit-element";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A State
|
|
3
|
+
*
|
|
4
|
+
* ## Details
|
|
5
|
+
* * has @theme facet
|
|
6
|
+
*
|
|
7
|
+
* @fires click - Native click event
|
|
8
|
+
*
|
|
9
|
+
* @slot - The content of the state (text or HTML)
|
|
10
|
+
*
|
|
11
|
+
* @attr {Boolean} error - enable error mode
|
|
12
|
+
* @attr {Boolean} major - enable major mode
|
|
13
|
+
* @attr {Boolean} success - enable success mode
|
|
14
|
+
* @attr {Boolean} warn - enable warn mode
|
|
15
|
+
* @attr {Boolean} skeleton - enable skeleton screen UI pattern (loading hint)
|
|
16
|
+
*
|
|
17
|
+
* @cssprop {Length} [--gv-state--bdr=17px] - Border radius
|
|
18
|
+
* @cssprop {Length} [--gv-state--fz=var(--gv-theme-font-size-s, 12px)] - Font size
|
|
19
|
+
* @cssprop {String} [--gv-state--fw=bold] - Font weight
|
|
20
|
+
* @cssprop {String} [--gv-state--tt=uppercase] - Text transform
|
|
21
|
+
* @cssprop {Length} [--gv-state--p=4px 8px] - Padding
|
|
22
|
+
* @cssprop {Color} [--gv-state--bgc=#f0f5ff] - Background color
|
|
23
|
+
* @cssprop {Color} [--gv-state--c=#597ef7] - Color
|
|
24
|
+
* @cssprop {Color} [--gv-state-major--bgc=var(--gv-theme-color-light, #d5fdcb)] - Major background color
|
|
25
|
+
* @cssprop {Color} [--gv-state-major--c=var(--gv-theme-color, #009b5b)] - Major color
|
|
26
|
+
*/
|
|
27
|
+
export class GvState extends LitElement {
|
|
28
|
+
static get properties(): {
|
|
29
|
+
default: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
};
|
|
32
|
+
error: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
};
|
|
35
|
+
major: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
};
|
|
38
|
+
skeleton: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
};
|
|
41
|
+
success: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
};
|
|
44
|
+
warn: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
static get styles(): import("lit").CSSResult[];
|
|
49
|
+
}
|
|
50
|
+
import { LitElement } from "lit-element/lit-element";
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A wrapper of a <switch> component.
|
|
3
|
+
*
|
|
4
|
+
* ## Details
|
|
5
|
+
* * has @theme facet
|
|
6
|
+
*
|
|
7
|
+
* @fires gv-switch:input - mirrors native input events with the `value` on `detail`
|
|
8
|
+
*
|
|
9
|
+
* @attr {Boolean} disabled - same as native switch element `disabled` attribute
|
|
10
|
+
* @attr {Boolean} skeleton - enable skeleton screen UI pattern (loading hint)
|
|
11
|
+
* @attr {Boolean|String} value - true if the switch is checked, false otherwise
|
|
12
|
+
* @attr {String} label - label of the switch
|
|
13
|
+
* @attr {String} description - description of the switch
|
|
14
|
+
* @attr {Boolean} checked - same as native switch element `checked` attribute
|
|
15
|
+
* @attr {Boolean} readonly - true if readonly
|
|
16
|
+
*
|
|
17
|
+
* @cssprop {Color} [--gv-switch-on--bgc=var(--gv-theme-color, #5a7684)] - On background color
|
|
18
|
+
* @cssprop {Color} [--gv-switch-off--bgc=var(--gv-theme-neutral-color-dark, #bfbfbf)] - Off background color
|
|
19
|
+
* @cssprop {Color} [--gv-switch--bgc=var(--gv-theme-neutral-color-lightest, #ffffff)] - Switch background color
|
|
20
|
+
* @cssprop {String} [--gv-switch--ta=left] - Switch label text alignment
|
|
21
|
+
*/
|
|
22
|
+
export class GvSwitch extends LitElement {
|
|
23
|
+
static get properties(): {
|
|
24
|
+
disabled: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
reflect: boolean;
|
|
27
|
+
};
|
|
28
|
+
skeleton: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
};
|
|
31
|
+
value: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
reflect: boolean;
|
|
34
|
+
};
|
|
35
|
+
label: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
};
|
|
38
|
+
description: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
};
|
|
41
|
+
small: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
reflect: boolean;
|
|
44
|
+
};
|
|
45
|
+
checked: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
reflect: boolean;
|
|
48
|
+
};
|
|
49
|
+
readonly: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
reflect: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
static get styles(): import("lit").CSSResult[];
|
|
55
|
+
_id: string;
|
|
56
|
+
checked: boolean;
|
|
57
|
+
_onInput(): void;
|
|
58
|
+
value: boolean | undefined;
|
|
59
|
+
}
|
|
60
|
+
import { LitElement } from "lit-element/lit-element";
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Tag
|
|
3
|
+
*
|
|
4
|
+
* ## Details
|
|
5
|
+
* * has @theme facet
|
|
6
|
+
*
|
|
7
|
+
* @fires click - Native click event
|
|
8
|
+
*
|
|
9
|
+
* @slot - The content of the tag (text or HTML)
|
|
10
|
+
*
|
|
11
|
+
* @attr {String} icon - name of shape
|
|
12
|
+
* @attr {String} icon-right - name of shape
|
|
13
|
+
* @attr {Boolean} major - set tag UI as major
|
|
14
|
+
* @attr {Boolean} minor - set tag UI as minor
|
|
15
|
+
* @attr {Boolean} skeleton - enable skeleton screen UI pattern (loading hint)
|
|
16
|
+
* @attr {Boolean} clickable - If true, tag has link style
|
|
17
|
+
*
|
|
18
|
+
* @cssprop {Length} [--gv-tag--fz=var(--gv-theme-font-size-s, 12px)] - Font size
|
|
19
|
+
* @cssprop {Length} [--gv-tag--p=4px 8px] - Padding
|
|
20
|
+
* @cssprop {Length} [--gv-tag--bdr=4px] - Border radius
|
|
21
|
+
* @cssprop {String} [--gv-tag--bsw=none] - Box shadow
|
|
22
|
+
*
|
|
23
|
+
* @cssprop {Color} [--gv-tag--bgc=var(--gv-theme-neutral-color-lighter, #fafafa)] - Background color
|
|
24
|
+
* @cssprop {Color} [--gv-tag-major--bgc=var(--gv-theme-color, #5a7684)] - Major background color
|
|
25
|
+
* @cssprop {Color} [--gv-tag-minor--bgc=var(--gv-theme-neutral-color-lightest, #ffffff)] - Minor background color
|
|
26
|
+
*
|
|
27
|
+
* @cssprop {Color} [--gv-tag--bdc=var(--gv-theme-neutral-color-dark, #d9d9d9)] - Border color
|
|
28
|
+
* @cssprop {Color} [--gv-tag-major--bdc=var(--gv-theme-color, #5a7684)] - Major border color
|
|
29
|
+
* @cssprop {Color} [--gv-tag-minor--bdc=var(--gv-theme-neutral-color-dark, #d9d9d9)] - Minor border color
|
|
30
|
+
|
|
31
|
+
* @cssprop {String} [--gv-tag--bds=solid] - Border style
|
|
32
|
+
* @cssprop {String} [--gv-tag-major--bds=solid] - Major border style
|
|
33
|
+
* @cssprop {String} [--gv-tag-minor--bds=dashed] - Minor border style
|
|
34
|
+
*
|
|
35
|
+
* @cssprop {Length} [--gv-tag--bdw=1px] - Border width
|
|
36
|
+
* @cssprop {Length} [--gv-tag-major--bdw=1px] - Major border width
|
|
37
|
+
* @cssprop {Length} [--gv-tag-minor--bdw=1px] - Minor border width
|
|
38
|
+
*
|
|
39
|
+
* @cssprop {Color} [--gv-tag--c=var(--gv-theme-font-color-dark, #262626)] - Color
|
|
40
|
+
* @cssprop {Color} [--gv-tag-major--c=var(--gv-theme-font-color-light, #ffffff)] - Major color
|
|
41
|
+
* @cssprop {Color} [--gv-tag-minor--c=var(--gv-theme-font-color-dark, #262626)] - Minor color
|
|
42
|
+
* @cssprop {Length} [--gv-tag-icon--s=18px] - Height and icon width
|
|
43
|
+
*/
|
|
44
|
+
export class GvTag extends LitElement {
|
|
45
|
+
static get properties(): {
|
|
46
|
+
icon: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
};
|
|
49
|
+
iconRight: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
attribute: string;
|
|
52
|
+
};
|
|
53
|
+
major: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
};
|
|
56
|
+
minor: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
};
|
|
59
|
+
skeleton: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
};
|
|
62
|
+
clickable: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
static get styles(): import("lit").CSSResult[];
|
|
67
|
+
_onTagClick(e: any): void;
|
|
68
|
+
}
|
|
69
|
+
import { LitElement } from "lit-element/lit-element";
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
declare const GvText_base: {
|
|
2
|
+
new (): {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
_id: string;
|
|
5
|
+
valid: boolean;
|
|
6
|
+
invalid: boolean;
|
|
7
|
+
updateState(value: any): void;
|
|
8
|
+
setValidity(isInvalid?: boolean, violation?: string): void;
|
|
9
|
+
firstUpdated(): void;
|
|
10
|
+
updated(changedProperties: any): void;
|
|
11
|
+
getInputElement(): any;
|
|
12
|
+
readonly offsetHeight: any;
|
|
13
|
+
renderLabel(): "" | import("lit-html").TemplateResult<1>;
|
|
14
|
+
};
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
readonly properties: {
|
|
17
|
+
disabled: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
reflect: boolean;
|
|
20
|
+
};
|
|
21
|
+
required: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
reflect: boolean;
|
|
24
|
+
};
|
|
25
|
+
readonly: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
reflect: boolean;
|
|
28
|
+
};
|
|
29
|
+
skeleton: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
};
|
|
32
|
+
value: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
reflect: boolean;
|
|
35
|
+
};
|
|
36
|
+
label: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
};
|
|
39
|
+
title: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
};
|
|
42
|
+
name: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
};
|
|
45
|
+
placeholder: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
};
|
|
48
|
+
description: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
};
|
|
51
|
+
autofocus: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
};
|
|
54
|
+
invalid: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
reflect: boolean;
|
|
57
|
+
};
|
|
58
|
+
valid: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
reflect: boolean;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
readonly styles: import("lit").CSSResult[];
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* A wrapper of a <text> component.
|
|
67
|
+
*
|
|
68
|
+
* ## Details
|
|
69
|
+
* * has @theme facet
|
|
70
|
+
*
|
|
71
|
+
* @fires gv-text:input - mirrors native textarea events with the `value` on `detail`
|
|
72
|
+
*
|
|
73
|
+
* @attr {Boolean} disabled - same as native text element `disabled` attribute
|
|
74
|
+
* @attr {Boolean} required - same as native text element `required` attribute
|
|
75
|
+
* @attr {Boolean} skeleton - enable skeleton screen UI pattern (loading hint)
|
|
76
|
+
* @attr {String} value - the value of the text
|
|
77
|
+
* @attr {String} label - label of the text
|
|
78
|
+
* @attr {String} title - title of the text
|
|
79
|
+
* @attr {String} name - name of the text
|
|
80
|
+
* @attr {String} placeholder - an example value to display in the text when empty
|
|
81
|
+
* @attr {Length} rows - number of rows of the text element
|
|
82
|
+
* @attr {Boolean} autofocus - true to put the focus on the input
|
|
83
|
+
* @attr {Boolean} [readonly=false] - true if field is readonly mode
|
|
84
|
+
* @attr {Boolean} [autosize=false] - true if field auto resize when content change
|
|
85
|
+
*
|
|
86
|
+
* @cssprop {Color} [--gv-input--bdc=var(--gv-theme-neutral-color-dark, #d9d9d9)] - Border color
|
|
87
|
+
* @cssprop {Length} [--gv-text--fz=var(--gv-theme-font-size-m, 14px)] - Font size
|
|
88
|
+
* @cssprop {Length} [--gv-text--lh=var(--gv-theme-font-size-m, 14px)] - Line height
|
|
89
|
+
*/
|
|
90
|
+
export class GvText extends GvText_base {
|
|
91
|
+
static get properties(): {
|
|
92
|
+
rows: {
|
|
93
|
+
type: NumberConstructor;
|
|
94
|
+
};
|
|
95
|
+
minlength: {
|
|
96
|
+
type: NumberConstructor;
|
|
97
|
+
};
|
|
98
|
+
maxlength: {
|
|
99
|
+
type: NumberConstructor;
|
|
100
|
+
};
|
|
101
|
+
autosize: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
rows: number;
|
|
106
|
+
_onInput(e: any): void;
|
|
107
|
+
value: any;
|
|
108
|
+
render(): "" | import("lit-html").TemplateResult<1>;
|
|
109
|
+
}
|
|
110
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
declare const GvChartBar_base: {
|
|
2
|
+
new (): {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
_skeletonAttribute: string;
|
|
5
|
+
_eventListener: () => void;
|
|
6
|
+
connectedCallback(): void;
|
|
7
|
+
disconnectedCallback(): void;
|
|
8
|
+
getOptions(): Promise<void>;
|
|
9
|
+
updated(changedProperties: any): void;
|
|
10
|
+
_additionalOptions: void | undefined;
|
|
11
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
12
|
+
_invisible: boolean;
|
|
13
|
+
_skeleton: boolean;
|
|
14
|
+
_error: boolean;
|
|
15
|
+
_empty: boolean;
|
|
16
|
+
};
|
|
17
|
+
readonly properties: {
|
|
18
|
+
series: {
|
|
19
|
+
type: ArrayConstructor;
|
|
20
|
+
};
|
|
21
|
+
options: {
|
|
22
|
+
type: ArrayConstructor;
|
|
23
|
+
};
|
|
24
|
+
_additionalOptions: {
|
|
25
|
+
type: ObjectConstructor;
|
|
26
|
+
attribute: boolean;
|
|
27
|
+
};
|
|
28
|
+
_series: {
|
|
29
|
+
type: ArrayConstructor;
|
|
30
|
+
attribute: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
readonly styles: import("lit").CSSResult[];
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Bar chart component
|
|
37
|
+
*
|
|
38
|
+
* ⚠️ This component is based on `highcharts`.
|
|
39
|
+
* To use this component in your project be sure the dependency is installed or
|
|
40
|
+
* install it with: `npm install highcharts --save`
|
|
41
|
+
*
|
|
42
|
+
* @fires gv-chart-bar:select - Custom event with selected value
|
|
43
|
+
*
|
|
44
|
+
* @attr {Array} series - The series to display on the bar chart.
|
|
45
|
+
* @attr {Array} options - The list of options to display.
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
export class GvChartBar extends GvChartBar_base {
|
|
49
|
+
}
|
|
50
|
+
export {};
|