@gravitee/ui-components 3.25.3-typescript-bfd8f67 → 3.25.3-typescript-e7256ca
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- 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-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,194 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Date Picker
|
|
3
|
+
*
|
|
4
|
+
* ## Details
|
|
5
|
+
* * has @theme facet
|
|
6
|
+
*
|
|
7
|
+
* @attr {Number|Array} value - if range picker, value is an array of timestamp else is a timestamp
|
|
8
|
+
* @attr {Boolean} range - if has range picker
|
|
9
|
+
* @attr {Boolean} time - if has time picker
|
|
10
|
+
* @attr {String} name - name of the input
|
|
11
|
+
* @attr {Boolean} strict - in completion of time if just have time picker
|
|
12
|
+
* @attr {Number} min - min timestamp
|
|
13
|
+
* @attr {Number} max - max timestamp
|
|
14
|
+
* @attr {Number} distanceFromNow - The distance timestamp relative to the current date. If configured, the min / max will be updated every minute.
|
|
15
|
+
* @attr {String} format - date format
|
|
16
|
+
* @attr {Boolean} valid - if value is valid
|
|
17
|
+
* @attr {Boolean} invalid - if value is invalid
|
|
18
|
+
* @attr {Boolean} small - for a small input
|
|
19
|
+
*
|
|
20
|
+
* @cssprop {Color} [--gv-date-picker-hover--bgc=var(--gv-theme-color-light, #86c3d0)] - Hover background color
|
|
21
|
+
* @cssprop {Color} [--gv-date-picker-hover--c=var(--gv-theme-font-color-dark, #262626)] - Hover color
|
|
22
|
+
* @cssprop {Color} [--gv-date-picker-selected--bgc=var(--gv-theme-color, #5a7684)] - Selected background color
|
|
23
|
+
* @cssprop {Color} [--gv-date-picker-selected--c=var(--gv-theme-font-color-light, #ffffff)] - Selected color
|
|
24
|
+
*/
|
|
25
|
+
export class GvDatePicker extends LitElement {
|
|
26
|
+
static get properties(): {
|
|
27
|
+
range: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
};
|
|
30
|
+
label: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
};
|
|
33
|
+
name: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
};
|
|
36
|
+
time: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
};
|
|
39
|
+
strict: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
};
|
|
42
|
+
small: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
};
|
|
45
|
+
value: {
|
|
46
|
+
type: ArrayConstructor;
|
|
47
|
+
reflect: boolean;
|
|
48
|
+
};
|
|
49
|
+
min: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
};
|
|
52
|
+
max: {
|
|
53
|
+
type: NumberConstructor;
|
|
54
|
+
};
|
|
55
|
+
distanceFromNow: {
|
|
56
|
+
type: NumberConstructor;
|
|
57
|
+
};
|
|
58
|
+
disabledDates: {
|
|
59
|
+
type: ArrayConstructor;
|
|
60
|
+
};
|
|
61
|
+
format: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
};
|
|
64
|
+
invalid: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
reflect: boolean;
|
|
67
|
+
};
|
|
68
|
+
valid: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
reflect: boolean;
|
|
71
|
+
};
|
|
72
|
+
_hoveredDate: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
attribute: boolean;
|
|
75
|
+
};
|
|
76
|
+
_open: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
attribute: boolean;
|
|
79
|
+
};
|
|
80
|
+
_month: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
attribute: boolean;
|
|
83
|
+
};
|
|
84
|
+
_year: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
attribute: boolean;
|
|
87
|
+
};
|
|
88
|
+
_monthPlus: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
attribute: boolean;
|
|
91
|
+
};
|
|
92
|
+
_yearPlus: {
|
|
93
|
+
type: NumberConstructor;
|
|
94
|
+
attribute: boolean;
|
|
95
|
+
};
|
|
96
|
+
_mode: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
attribute: boolean;
|
|
99
|
+
};
|
|
100
|
+
_from: {
|
|
101
|
+
type: NumberConstructor;
|
|
102
|
+
attribute: boolean;
|
|
103
|
+
};
|
|
104
|
+
_to: {
|
|
105
|
+
type: NumberConstructor;
|
|
106
|
+
attribute: boolean;
|
|
107
|
+
};
|
|
108
|
+
_min: {
|
|
109
|
+
type: NumberConstructor;
|
|
110
|
+
attribute: boolean;
|
|
111
|
+
};
|
|
112
|
+
_max: {
|
|
113
|
+
type: NumberConstructor;
|
|
114
|
+
attribute: boolean;
|
|
115
|
+
};
|
|
116
|
+
_distance: {
|
|
117
|
+
type: NumberConstructor;
|
|
118
|
+
attribute: boolean;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
static get styles(): import("lit").CSSResult[];
|
|
122
|
+
_id: string;
|
|
123
|
+
strict: boolean;
|
|
124
|
+
range: boolean;
|
|
125
|
+
time: boolean;
|
|
126
|
+
format: string;
|
|
127
|
+
timeFormat: string;
|
|
128
|
+
strictTimeFormat: string;
|
|
129
|
+
handleClick: (e: any) => void;
|
|
130
|
+
handleDocumentClick: (e: any) => void;
|
|
131
|
+
disabledDates: any[];
|
|
132
|
+
_year: any;
|
|
133
|
+
_month: any;
|
|
134
|
+
set min(arg: any);
|
|
135
|
+
_min: number | undefined;
|
|
136
|
+
set max(arg: any);
|
|
137
|
+
_max: number | undefined;
|
|
138
|
+
set distanceFromNow(arg: any);
|
|
139
|
+
_distance: any;
|
|
140
|
+
_from: any;
|
|
141
|
+
_onClick(e: any): void;
|
|
142
|
+
_onDocumentClick(e: any): void;
|
|
143
|
+
_open: boolean | undefined;
|
|
144
|
+
_onFocus(mode: any): void;
|
|
145
|
+
_mode: any;
|
|
146
|
+
getLocale(): Promise<any>;
|
|
147
|
+
get dateFromPlaceholder(): string;
|
|
148
|
+
get dateToPlaceholder(): string;
|
|
149
|
+
get icon(): "general:calendar" | "code:error";
|
|
150
|
+
get hasContent(): boolean;
|
|
151
|
+
_onClear(): void;
|
|
152
|
+
invalid: boolean | undefined;
|
|
153
|
+
value: any;
|
|
154
|
+
hasFrom(): boolean;
|
|
155
|
+
hasTo(): boolean;
|
|
156
|
+
_distanceTimer: NodeJS.Timeout | undefined;
|
|
157
|
+
monthChanged(month: any, year: any): void;
|
|
158
|
+
_monthPlus: string | undefined;
|
|
159
|
+
_yearPlus: number | undefined;
|
|
160
|
+
_to: any;
|
|
161
|
+
_onMonthChanged({ detail }: {
|
|
162
|
+
detail: any;
|
|
163
|
+
}): void;
|
|
164
|
+
_hoveredDate: any;
|
|
165
|
+
_onYearChanged({ detail }: {
|
|
166
|
+
detail: any;
|
|
167
|
+
}): void;
|
|
168
|
+
_onMonthMode({ detail }: {
|
|
169
|
+
detail: any;
|
|
170
|
+
}): void;
|
|
171
|
+
_onYearMode({ detail }: {
|
|
172
|
+
detail: any;
|
|
173
|
+
}): void;
|
|
174
|
+
_onBlurForm({ target }: {
|
|
175
|
+
target: any;
|
|
176
|
+
}): void;
|
|
177
|
+
_onBlurTo({ target }: {
|
|
178
|
+
target: any;
|
|
179
|
+
}): void;
|
|
180
|
+
hoveredDateChanged({ detail }: {
|
|
181
|
+
detail: any;
|
|
182
|
+
}): void;
|
|
183
|
+
dateFromChanged({ detail }: {
|
|
184
|
+
detail: any;
|
|
185
|
+
}): void;
|
|
186
|
+
valid: boolean | undefined;
|
|
187
|
+
dateToChanged({ detail }: {
|
|
188
|
+
detail: any;
|
|
189
|
+
}): void;
|
|
190
|
+
getFormat(): string;
|
|
191
|
+
getFormattedDate(date: any): Promise<string>;
|
|
192
|
+
parseValue(value: any): "" | Date;
|
|
193
|
+
}
|
|
194
|
+
import { LitElement } from "lit-element/lit-element";
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File upload
|
|
3
|
+
*
|
|
4
|
+
* ## Details
|
|
5
|
+
* * has @theme facet
|
|
6
|
+
*
|
|
7
|
+
* @fires gv-file-upload:drop - Custom event when user drop file
|
|
8
|
+
*
|
|
9
|
+
* @attr {String} label - Label
|
|
10
|
+
* @attr {String} accept - One or more file type identifiers describing the authorized file types.
|
|
11
|
+
* @attr {String} except - One or more file type identifiers describing unauthorized file types.
|
|
12
|
+
* @attr {Number} limit - Max size limit in bytes.
|
|
13
|
+
* @attr {String} value - Reflected value of uploaded file
|
|
14
|
+
**/
|
|
15
|
+
export class GvFileUpload extends LitElement {
|
|
16
|
+
static get properties(): {
|
|
17
|
+
label: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
};
|
|
20
|
+
accept: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
};
|
|
23
|
+
except: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
};
|
|
26
|
+
limit: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
};
|
|
29
|
+
value: {
|
|
30
|
+
type: ArrayConstructor;
|
|
31
|
+
reflect: boolean;
|
|
32
|
+
};
|
|
33
|
+
_preview: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
attribute: boolean;
|
|
36
|
+
};
|
|
37
|
+
_files: {
|
|
38
|
+
type: ArrayConstructor;
|
|
39
|
+
attribute: boolean;
|
|
40
|
+
};
|
|
41
|
+
_errors: {
|
|
42
|
+
type: ArrayConstructor;
|
|
43
|
+
attribute: boolean;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
static get styles(): import("lit").CSSResult[];
|
|
47
|
+
reader: FileReader;
|
|
48
|
+
_files: any[];
|
|
49
|
+
_errors: any[];
|
|
50
|
+
_counter: number;
|
|
51
|
+
_onDragOver(e: any): void;
|
|
52
|
+
_onDragEnd(e: any): void;
|
|
53
|
+
_onDrop(e: any): void;
|
|
54
|
+
_getRegex(mimeTypes: any): string;
|
|
55
|
+
setFiles(files: any): void;
|
|
56
|
+
_preview: string | ArrayBuffer | null | undefined;
|
|
57
|
+
value: string | ArrayBuffer | null | undefined;
|
|
58
|
+
_cancelEvent(e: any): void;
|
|
59
|
+
_removeFile(): void;
|
|
60
|
+
_onChange(e: any): void;
|
|
61
|
+
get icon(): "general:clip" | "general:upload";
|
|
62
|
+
_onPreviewError(): void;
|
|
63
|
+
}
|
|
64
|
+
import { LitElement } from "lit-element/lit-element";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An icon
|
|
3
|
+
*
|
|
4
|
+
* ## Details
|
|
5
|
+
* * has @theme facet
|
|
6
|
+
*
|
|
7
|
+
* @cssprop {Color} [--gv-icon--c=var(--gv-theme-font-color-dark, #262626)] - Color
|
|
8
|
+
* @cssprop {Color} [--gv-icon-opacity--c=var(--gv-theme-font-color-dark, #262626)] - Opacity color
|
|
9
|
+
* @cssprop {Length} [--gv-icon--s=32px] - Height and width
|
|
10
|
+
*/
|
|
11
|
+
export class GvIcon extends LitElement {
|
|
12
|
+
static get properties(): {
|
|
13
|
+
/**
|
|
14
|
+
* This is a shape, an concatenation of category name and icon name.
|
|
15
|
+
* @type {"{category}:{iconName}"}
|
|
16
|
+
* @attr
|
|
17
|
+
* @required
|
|
18
|
+
*/
|
|
19
|
+
shape: "{category}:{iconName}";
|
|
20
|
+
};
|
|
21
|
+
static get excludedShapes(): string[];
|
|
22
|
+
static get styles(): import("lit").CSSResult[];
|
|
23
|
+
static getHref(shape: any): string;
|
|
24
|
+
canCustomize(): boolean;
|
|
25
|
+
}
|
|
26
|
+
import { LitElement } from "lit-element/lit-element";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An image
|
|
3
|
+
*
|
|
4
|
+
* ## Details
|
|
5
|
+
* * has @theme facet
|
|
6
|
+
*
|
|
7
|
+
* @fires gv-image:loaded - When image is loaded
|
|
8
|
+
*
|
|
9
|
+
* @attr {String} src - Source of img
|
|
10
|
+
* @attr {String} alt - Alternative text of img
|
|
11
|
+
* @attr {Boolean} skeleton - enable skeleton screen UI pattern (loading hint)
|
|
12
|
+
*
|
|
13
|
+
* @cssprop {String} [--gv-image--of=cover] - set the object-fit of image
|
|
14
|
+
*/
|
|
15
|
+
export class GvImage extends LitElement {
|
|
16
|
+
static get properties(): {
|
|
17
|
+
src: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
};
|
|
20
|
+
skeleton: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
reflect: boolean;
|
|
23
|
+
};
|
|
24
|
+
alt: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
};
|
|
27
|
+
_loaded: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
reflect: boolean;
|
|
30
|
+
};
|
|
31
|
+
_error: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
static get styles(): import("lit").CSSResult[];
|
|
36
|
+
skeleton: boolean;
|
|
37
|
+
_error: boolean;
|
|
38
|
+
_loaded: boolean;
|
|
39
|
+
set src(arg: any);
|
|
40
|
+
get src(): any;
|
|
41
|
+
_src: any;
|
|
42
|
+
_onLoad(e: any): void;
|
|
43
|
+
_onError(e: any): void;
|
|
44
|
+
}
|
|
45
|
+
import { LitElement } from "lit-element/lit-element";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input message component
|
|
3
|
+
*
|
|
4
|
+
* @attr {String} level - level of message ['info', 'error', 'warning']
|
|
5
|
+
*/
|
|
6
|
+
export class GvInputMessage extends LitElement {
|
|
7
|
+
static get properties(): {
|
|
8
|
+
level: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
};
|
|
11
|
+
_level: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
attribute: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
static get styles(): import("lit").CSSResult[];
|
|
17
|
+
_level: string;
|
|
18
|
+
set level(arg: any);
|
|
19
|
+
}
|
|
20
|
+
import { LitElement } from "lit-element/lit-element";
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
declare const GvInput_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
|
+
*
|
|
67
|
+
* ## Details
|
|
68
|
+
* * has @theme facet
|
|
69
|
+
*
|
|
70
|
+
* @fires gv-input:input - mirrors native input events with the `value` on `detail`
|
|
71
|
+
* @fires gv-input:clear - event when user clear a clearable input
|
|
72
|
+
*
|
|
73
|
+
* @attr {Boolean} disabled - same as native input element `disabled` attribute
|
|
74
|
+
* @attr {Boolean} required - same as native input element `required` attribute
|
|
75
|
+
* @attr {Boolean} skeleton - enable skeleton screen UI pattern (loading hint)
|
|
76
|
+
* @attr {String} value - the value of the input
|
|
77
|
+
* @attr {String} label - label of the input
|
|
78
|
+
* @attr {String} title - title of the input
|
|
79
|
+
* @attr {String} name - name of the input
|
|
80
|
+
* @attr {String} placeholder - an example value to display in the input when empty
|
|
81
|
+
* @attr {String} description - a description
|
|
82
|
+
* @attr {String} type - type of the input, can be text (Default), password, email, search, number, url.
|
|
83
|
+
* @attr {Boolean} clipboard - for readonly input with clipboard
|
|
84
|
+
* @attr {Boolean} large - for a large input
|
|
85
|
+
* @attr {Boolean} medium - for a medium input (Default)
|
|
86
|
+
* @attr {Boolean} small - for a small input
|
|
87
|
+
* @attr {String} icon - icon of the input
|
|
88
|
+
* @attr {String} icon-left - icon of the input to display at left
|
|
89
|
+
* @attr {Boolean} valid - if value is valid
|
|
90
|
+
* @attr {Boolean} invalid - if value is invalid
|
|
91
|
+
* @attr {Boolean} [loading=false] - true to display a loading icon
|
|
92
|
+
* @attr {Boolean} [autofocus=false] - true to put the focus on the input
|
|
93
|
+
* @attr {Boolean} [readonly=false] - true if field is readonly mode
|
|
94
|
+
* @attr {String} [autocomplete='off'] - standard autocomplete attribute
|
|
95
|
+
* @attr {Boolean} [clickable=false] - If true, icon has link style
|
|
96
|
+
* @attr {Boolean} [clearable=false] - If true, input can be clear with button
|
|
97
|
+
* @attr {Boolean} [no-submit=false] - If true, input cannot dispatch native submit event on enter key press to closest form
|
|
98
|
+
* @attr {String} [pattern=null] - Pattern for input validation. If type is url, default pattern is ^(http|https)://
|
|
99
|
+
*
|
|
100
|
+
* @cssprop {String} [--gv-input--bdc=var(--gv-theme-neutral-color, #F5F5F5)] - Border color
|
|
101
|
+
* @cssprop {Color} [--gv-input--bds=solid] - Border style
|
|
102
|
+
* @cssprop {Color} [--gv-input-icon--bgc=var(--gv-theme-neutral-color, #F5F5F5)] - Icon background color
|
|
103
|
+
*/
|
|
104
|
+
export class GvInput extends GvInput_base {
|
|
105
|
+
static get properties(): {
|
|
106
|
+
type: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
reflect: boolean;
|
|
109
|
+
};
|
|
110
|
+
large: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
};
|
|
113
|
+
medium: {
|
|
114
|
+
type: BooleanConstructor;
|
|
115
|
+
};
|
|
116
|
+
small: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
};
|
|
119
|
+
icon: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
};
|
|
122
|
+
iconLeft: {
|
|
123
|
+
type: StringConstructor;
|
|
124
|
+
attribute: string;
|
|
125
|
+
};
|
|
126
|
+
loading: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
};
|
|
129
|
+
min: {
|
|
130
|
+
type: NumberConstructor;
|
|
131
|
+
};
|
|
132
|
+
max: {
|
|
133
|
+
type: NumberConstructor;
|
|
134
|
+
};
|
|
135
|
+
autocomplete: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
};
|
|
138
|
+
clipboard: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
};
|
|
141
|
+
clickable: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
};
|
|
144
|
+
clearable: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
};
|
|
147
|
+
noSubmit: {
|
|
148
|
+
type: BooleanConstructor;
|
|
149
|
+
attribute: string;
|
|
150
|
+
};
|
|
151
|
+
pattern: {
|
|
152
|
+
type: StringConstructor;
|
|
153
|
+
reflect: boolean;
|
|
154
|
+
};
|
|
155
|
+
description: {
|
|
156
|
+
type: StringConstructor;
|
|
157
|
+
};
|
|
158
|
+
_type: {
|
|
159
|
+
type: StringConstructor;
|
|
160
|
+
attribute: boolean;
|
|
161
|
+
};
|
|
162
|
+
disabled: {
|
|
163
|
+
type: BooleanConstructor;
|
|
164
|
+
reflect: boolean;
|
|
165
|
+
};
|
|
166
|
+
required: {
|
|
167
|
+
type: BooleanConstructor;
|
|
168
|
+
reflect: boolean;
|
|
169
|
+
};
|
|
170
|
+
readonly: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
reflect: boolean;
|
|
173
|
+
};
|
|
174
|
+
skeleton: {
|
|
175
|
+
type: BooleanConstructor;
|
|
176
|
+
};
|
|
177
|
+
value: {
|
|
178
|
+
type: StringConstructor;
|
|
179
|
+
reflect: boolean;
|
|
180
|
+
};
|
|
181
|
+
label: {
|
|
182
|
+
type: StringConstructor;
|
|
183
|
+
};
|
|
184
|
+
title: {
|
|
185
|
+
type: StringConstructor;
|
|
186
|
+
};
|
|
187
|
+
name: {
|
|
188
|
+
type: StringConstructor;
|
|
189
|
+
};
|
|
190
|
+
placeholder: {
|
|
191
|
+
type: StringConstructor;
|
|
192
|
+
};
|
|
193
|
+
autofocus: {
|
|
194
|
+
type: BooleanConstructor;
|
|
195
|
+
};
|
|
196
|
+
invalid: {
|
|
197
|
+
type: BooleanConstructor;
|
|
198
|
+
reflect: boolean;
|
|
199
|
+
};
|
|
200
|
+
valid: {
|
|
201
|
+
type: BooleanConstructor;
|
|
202
|
+
reflect: boolean;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
static get shapeSearch(): string;
|
|
206
|
+
static get shapeClear(): string;
|
|
207
|
+
static get shapeInvisible(): string;
|
|
208
|
+
static get shapeVisible(): string;
|
|
209
|
+
_type: string;
|
|
210
|
+
_showPassword: boolean;
|
|
211
|
+
value: string;
|
|
212
|
+
autocomplete: string;
|
|
213
|
+
noSubmit: boolean;
|
|
214
|
+
reset(): void;
|
|
215
|
+
focus(): void;
|
|
216
|
+
_regexPattern: RegExp | undefined;
|
|
217
|
+
_setClipboardIcon(shape: any): void;
|
|
218
|
+
iconLeft: any;
|
|
219
|
+
icon: any;
|
|
220
|
+
copy: (() => void) | undefined;
|
|
221
|
+
_copied: boolean | undefined;
|
|
222
|
+
bindInputEvents(): void;
|
|
223
|
+
catchSlot(): void;
|
|
224
|
+
_input: any;
|
|
225
|
+
_onInput(e: any): void;
|
|
226
|
+
_onKeyPress(e: any): void;
|
|
227
|
+
_onKeyUp(e: any): void;
|
|
228
|
+
get isClearable(): boolean | undefined;
|
|
229
|
+
set type(arg: string);
|
|
230
|
+
get type(): string;
|
|
231
|
+
pattern: string | RegExp | undefined;
|
|
232
|
+
clearable: boolean | undefined;
|
|
233
|
+
_onIconClick(): void;
|
|
234
|
+
_onIconVisibleClick(e: any): void;
|
|
235
|
+
get isPassword(): boolean;
|
|
236
|
+
get hasClickableIcon(): any;
|
|
237
|
+
get hasClipboard(): any;
|
|
238
|
+
clear(): void;
|
|
239
|
+
_renderClearIcon(): "" | import("lit-html").TemplateResult<1>;
|
|
240
|
+
_shapePassword(): "general:visible" | "general:hidden";
|
|
241
|
+
_renderPasswordIcon(): "" | import("lit-html").TemplateResult<1>;
|
|
242
|
+
get hasBackground(): boolean;
|
|
243
|
+
renderIcon(): "" | import("lit-html").TemplateResult<1>;
|
|
244
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
245
|
+
}
|
|
246
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A link
|
|
3
|
+
*
|
|
4
|
+
* ## Details
|
|
5
|
+
* * has @theme facet
|
|
6
|
+
*
|
|
7
|
+
* @fires gv-link:click - Custom click event from inner link element
|
|
8
|
+
*
|
|
9
|
+
* @slot - The content of the link (text or HTML)
|
|
10
|
+
*
|
|
11
|
+
* @attr {Boolean} active - set if link is active
|
|
12
|
+
* @attr {String} path - link path
|
|
13
|
+
* @attr {String} title - link title
|
|
14
|
+
* @attr {String} target - link target
|
|
15
|
+
* @attr {String} help - help text left between parentheses
|
|
16
|
+
*
|
|
17
|
+
* @cssprop {Length} [--gv-link-a--pv=15px] - Vertical padding for the inner <a> tag
|
|
18
|
+
* @cssprop {Length} [--gv-link-a--ph=15px] - Horizontal padding for the inner <a> tag
|
|
19
|
+
* @cssprop {Color} [--gv-link--c=var(--gv-theme-font-color-dark, #262626)] - Color
|
|
20
|
+
* @cssprop {Color} [--gv-link-active--c=var(--gv-theme-font-color-light, #ffffff)] - Active color
|
|
21
|
+
* @cssprop {Color} [--gv-link--bgc=transparent] - Background color
|
|
22
|
+
* @cssprop {Color} [--gv-link-active--bgc=var(--gv-theme-color-dark, #28444f)] - Active background color
|
|
23
|
+
* @cssprop {Color} [--gv-link-active--bdc=none] - Active border color
|
|
24
|
+
* @cssprop {String} [--gv-link-active--bds=none] - Active border style
|
|
25
|
+
* @cssprop {Length} [--gv-link-active--bdw=none] - Active border width
|
|
26
|
+
* @cssprop {String} [--gv-link--ta=center] - Text align
|
|
27
|
+
* @cssprop {String} [--gv-link--td=none] - Text decoration
|
|
28
|
+
* @cssprop {String} [--gv-link--tsh=none]- Text shadow
|
|
29
|
+
* @cssprop {Length} [--gv-link-icon--s=24px] - Height and icon width
|
|
30
|
+
*/
|
|
31
|
+
export class GvLink extends LitElement {
|
|
32
|
+
static get properties(): {
|
|
33
|
+
active: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
reflect: boolean;
|
|
36
|
+
};
|
|
37
|
+
icon: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
};
|
|
40
|
+
path: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
};
|
|
43
|
+
title: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
};
|
|
46
|
+
target: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
};
|
|
49
|
+
_title: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
attribute: boolean;
|
|
52
|
+
};
|
|
53
|
+
help: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
};
|
|
56
|
+
skeleton: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
};
|
|
59
|
+
small: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
static get styles(): import("lit").CSSResult[];
|
|
64
|
+
_onClick(e: any): Promise<void>;
|
|
65
|
+
_title: any;
|
|
66
|
+
}
|
|
67
|
+
import { LitElement } from "lit-element/lit-element";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import './gv-icon';
|
|
3
|
+
/**
|
|
4
|
+
* Message component
|
|
5
|
+
*
|
|
6
|
+
* ## Details
|
|
7
|
+
* * has @theme facet
|
|
8
|
+
*
|
|
9
|
+
* @fires gv-message:close - Click event from inner button element
|
|
10
|
+
*
|
|
11
|
+
* @slot - The content of the button (text or HTML)
|
|
12
|
+
*
|
|
13
|
+
* @attr {String} type - type of the message. Can be default, success, error, warning or info.
|
|
14
|
+
* @attr {boolean} closable - determines if the message can be hidden.
|
|
15
|
+
*/
|
|
16
|
+
export declare class GvMessage extends LitElement {
|
|
17
|
+
private _close;
|
|
18
|
+
closable: boolean;
|
|
19
|
+
type: string;
|
|
20
|
+
static styles: import("lit").CSSResult;
|
|
21
|
+
private _onClick;
|
|
22
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
23
|
+
}
|