@gravitee/ui-components 3.25.3-typescript-bfd8f67 → 3.25.3-yarn-784d7a8
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 +15 -15
- 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 +124 -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,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List of ratings with answer form
|
|
3
|
+
*
|
|
4
|
+
* ## Details
|
|
5
|
+
* * has @theme facet
|
|
6
|
+
*
|
|
7
|
+
* ## Attribute `permissions` details
|
|
8
|
+
* * `delete` and `update` properties supports booleans or arrays of rating identifier.
|
|
9
|
+
* * `addAnswer` and `deleteAnswer` only accept booleans.
|
|
10
|
+
*
|
|
11
|
+
* @fires gv-rating-list:add-answer - When user submit answer
|
|
12
|
+
* @fires gv-rating-list:delete - When user delete rating
|
|
13
|
+
* @fires gv-rating-list:delete-answer - When user delete answer
|
|
14
|
+
* @fires gv-rating-list:update - When user update rating
|
|
15
|
+
*
|
|
16
|
+
* @attr {Promise<Array>} ratings - ratings
|
|
17
|
+
* @attr {id, avatar, display_name} user - a current user
|
|
18
|
+
* @attr {Object<{update, delete, addAnswer, deleteAnswer}>} permissions - The permissions
|
|
19
|
+
* @cssprop {Color} [--gv-rating-list--bgc=var(--gv-theme-neutral-color-lightest, #ffffff)] - Background color
|
|
20
|
+
* @cssprop {Color} [--gv-rating-list-answer--bgc=var(--gv-theme-neutral-color-lighter, #fafafa)] - Answer background color
|
|
21
|
+
* @cssprop {Color} [--gv-rating-list--bdc=var(--gv-theme-neutral-color, #f5f5f5)] - Border color
|
|
22
|
+
* @cssprop {Length} [--gv-rating-list--s=18px] - Height and star width
|
|
23
|
+
*/
|
|
24
|
+
export class GvRatingList extends LitElement {
|
|
25
|
+
static get properties(): {
|
|
26
|
+
ratings: {
|
|
27
|
+
type: ArrayConstructor;
|
|
28
|
+
};
|
|
29
|
+
user: {
|
|
30
|
+
type: ObjectConstructor;
|
|
31
|
+
};
|
|
32
|
+
permissions: {
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
};
|
|
35
|
+
required: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
attribute: string;
|
|
38
|
+
};
|
|
39
|
+
_permissions: {
|
|
40
|
+
type: ObjectConstructor;
|
|
41
|
+
attribute: boolean;
|
|
42
|
+
};
|
|
43
|
+
_ratings: {
|
|
44
|
+
type: ArrayConstructor;
|
|
45
|
+
attribute: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
static get styles(): import("lit").CSSResult[];
|
|
49
|
+
_ratings: any[];
|
|
50
|
+
_permissions: {
|
|
51
|
+
update: boolean;
|
|
52
|
+
delete: boolean;
|
|
53
|
+
addAnswer: boolean;
|
|
54
|
+
deleteAnswer: boolean;
|
|
55
|
+
};
|
|
56
|
+
set ratings(arg: any);
|
|
57
|
+
_skeleton: boolean | undefined;
|
|
58
|
+
set permissions(arg: any);
|
|
59
|
+
_editAnswer(rating: any, e: any): void;
|
|
60
|
+
_getAnswerValue(): any;
|
|
61
|
+
_onAnswer(rating: any): void;
|
|
62
|
+
_hasValidAnswer(): boolean;
|
|
63
|
+
_onClose(rating: any): void;
|
|
64
|
+
_renderAnswer(rating: any, answer: any): any;
|
|
65
|
+
_renderAnswers(rating: any): any;
|
|
66
|
+
_onDelete(rating: any): void;
|
|
67
|
+
_onDeleteAnswer(rating: any, answer: any): void;
|
|
68
|
+
_renderActions(data: any, parent: any): import("lit-html").TemplateResult<1>;
|
|
69
|
+
_render(data: any, parent: any): any;
|
|
70
|
+
_onUpdateRating(rating: any, e: any): void;
|
|
71
|
+
_canAddAnswer(): boolean;
|
|
72
|
+
_canDeleteAnswer(): boolean;
|
|
73
|
+
_canUpdate(ratingId: any): boolean;
|
|
74
|
+
_canDelete(ratingId: any): boolean;
|
|
75
|
+
_getDisplayName(data: any): "" | import("lit-html").TemplateResult<1>;
|
|
76
|
+
}
|
|
77
|
+
import { LitElement } from "lit-element/lit-element";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rating component
|
|
3
|
+
*
|
|
4
|
+
* ## Details
|
|
5
|
+
* * has @theme facet
|
|
6
|
+
*
|
|
7
|
+
* @attr {Length} value - average of ratings between 1 and 5
|
|
8
|
+
* @attr {String} count - total count for the average
|
|
9
|
+
* @attr {Boolean} skeleton - skeleton mode
|
|
10
|
+
* @attr {Boolean} readonly - readonly mode
|
|
11
|
+
* @attr {Boolean} with-description - if true, show rate description on hover
|
|
12
|
+
*
|
|
13
|
+
* @cssprop {Color} [--gv-rating--c=var(--gv-theme-color, #5a7684)] - Color
|
|
14
|
+
* @cssprop {Length} [--gv-rating--s=13px] - Size
|
|
15
|
+
*/
|
|
16
|
+
export class GvRating extends LitElement {
|
|
17
|
+
static get properties(): {
|
|
18
|
+
value: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
reflect: boolean;
|
|
21
|
+
};
|
|
22
|
+
count: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
};
|
|
25
|
+
skeleton: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
};
|
|
28
|
+
readonly: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
};
|
|
31
|
+
_candidate: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
attribute: boolean;
|
|
34
|
+
};
|
|
35
|
+
withDescription: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
attribute: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
static get styles(): import("lit").CSSResult[];
|
|
41
|
+
value: number;
|
|
42
|
+
count: number;
|
|
43
|
+
readonly: boolean;
|
|
44
|
+
_candidate: number;
|
|
45
|
+
isSelected: boolean;
|
|
46
|
+
_getTitle(): string;
|
|
47
|
+
_onMouseEnter(index: any): void;
|
|
48
|
+
description: string | null | undefined;
|
|
49
|
+
_onMouseOut(): void;
|
|
50
|
+
_onClick(index: any): void;
|
|
51
|
+
_getAverage(): number;
|
|
52
|
+
_renderStar(star: any, index: any): import("lit-html").TemplateResult<1>;
|
|
53
|
+
_getCountTitle(): string;
|
|
54
|
+
}
|
|
55
|
+
import { LitElement } from "lit-element/lit-element";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare const GvRow_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
|
+
* Row component
|
|
15
|
+
*
|
|
16
|
+
* ## Details
|
|
17
|
+
* * has @theme facet
|
|
18
|
+
*
|
|
19
|
+
* @attr {Promise<any>} item - An item.
|
|
20
|
+
* @attr {Boolean} small - When true, not display labels
|
|
21
|
+
*
|
|
22
|
+
* @cssprop {Color} [--gv-row-hover--bgc=var(--gv-theme-neutral-color-lighter, #fafafa)] - Hoover background color
|
|
23
|
+
* @cssprop {Length} [--gv-row-hover--trf-ty=0px] - Hoover transform translateY
|
|
24
|
+
* @cssprop {Length} [--gv-row-image--h=35px] - Image height
|
|
25
|
+
* @cssprop {Length} [--gv-row-image--w=35px] - Image width
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class GvRow extends GvRow_base {
|
|
29
|
+
static get styles(): any[];
|
|
30
|
+
static get properties(): any;
|
|
31
|
+
breakpoints: {
|
|
32
|
+
width: number[];
|
|
33
|
+
};
|
|
34
|
+
small: boolean;
|
|
35
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
declare const GvStats_base: {
|
|
2
|
+
new (): {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
_invisible: boolean;
|
|
5
|
+
_skeleton: boolean;
|
|
6
|
+
_error: boolean;
|
|
7
|
+
_empty: boolean;
|
|
8
|
+
updated(changedProperties: any): void;
|
|
9
|
+
};
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
readonly properties: {
|
|
12
|
+
_invisible: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
reflect: boolean;
|
|
15
|
+
};
|
|
16
|
+
_skeleton: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
attribute: boolean;
|
|
19
|
+
};
|
|
20
|
+
_error: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
attribute: boolean;
|
|
23
|
+
};
|
|
24
|
+
_empty: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
attribute: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly styles: import("lit").CSSResult[];
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Stats component
|
|
33
|
+
*
|
|
34
|
+
* ## Details
|
|
35
|
+
* * has @theme facet
|
|
36
|
+
*
|
|
37
|
+
* @attr {Object} stats - The stats (count by key). Key can be: count, min, max, avg, sum, rps, rpm or rph.
|
|
38
|
+
* @attr {Array<any>} options - The list of options to display.
|
|
39
|
+
*/
|
|
40
|
+
export class GvStats extends GvStats_base {
|
|
41
|
+
static get properties(): {
|
|
42
|
+
stats: {
|
|
43
|
+
type: ObjectConstructor;
|
|
44
|
+
};
|
|
45
|
+
options: {
|
|
46
|
+
type: ArrayConstructor;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
_skeletonAttribute: string;
|
|
50
|
+
_getStat(option: any): import("lit-html").TemplateResult<1> | "<div></div>";
|
|
51
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stepper component
|
|
3
|
+
*
|
|
4
|
+
* ## Details
|
|
5
|
+
* * has @theme facet
|
|
6
|
+
*
|
|
7
|
+
* @fires gv-stepper:change - when step change
|
|
8
|
+
*
|
|
9
|
+
* @attr {Length} current - The current selected step
|
|
10
|
+
* @attr {Array} steps - Array of step {title: string, description: string, valid: boolean, invalid: boolean}
|
|
11
|
+
* @attr {Boolean} [disabled=false] - Indicate if stepper is disabled
|
|
12
|
+
*
|
|
13
|
+
* @cssprop {Color} [--gv-stepper-valid--bgc=var(--gv-theme-color, #5a7684)] - Valid background color
|
|
14
|
+
* @cssprop {Color} [--gv-stepper-passed--bdc=var(--gv-theme-color-light, #86c3d0)] - Passed border color
|
|
15
|
+
* @cssprop {Color} [--gv-stepper--bgc=var(--gv-theme-neutral-color-dark, #bfbfbf)] - Background color
|
|
16
|
+
* @cssprop {Color} [--gv-stepper--bdc=var(--gv-theme-neutral-color-dark, #bfbfbf)] - Border color
|
|
17
|
+
* @cssprop {Color} [--gv-stepper--c=var(--gv-theme-neutral-color-dark, #bfbfbf)] - Color
|
|
18
|
+
* @cssprop {Color} [--gv-stepper-passed--c=#595959] - Passed color
|
|
19
|
+
* @cssprop {Length} [--gv-stepper-icon--s=32px] - Height and icon width
|
|
20
|
+
*/
|
|
21
|
+
export class GvStepper extends LitElement {
|
|
22
|
+
static get properties(): {
|
|
23
|
+
current: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
reflect: boolean;
|
|
26
|
+
};
|
|
27
|
+
steps: {
|
|
28
|
+
type: ArrayConstructor;
|
|
29
|
+
};
|
|
30
|
+
disabled: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
};
|
|
33
|
+
_error: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
static get styles(): import("lit").CSSResult[];
|
|
38
|
+
current: number;
|
|
39
|
+
_steps: any[];
|
|
40
|
+
_error: boolean;
|
|
41
|
+
_empty: boolean;
|
|
42
|
+
_onClick(index: any): void;
|
|
43
|
+
_getIcon(step: any): import("lit-html").TemplateResult<1>;
|
|
44
|
+
_getStep(step: any, index: any): import("lit-html").TemplateResult<1>;
|
|
45
|
+
}
|
|
46
|
+
import { LitElement } from "lit-element/lit-element";
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
declare const GvTable_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
|
+
* Table component
|
|
15
|
+
*
|
|
16
|
+
* ## Details
|
|
17
|
+
* * has @theme facet
|
|
18
|
+
*
|
|
19
|
+
* @fires gv-table:select - when table row is selected
|
|
20
|
+
* @fires gv-table:mouseenter - when the pointer is entering on a table row
|
|
21
|
+
* @fires gv-table:mouseleave - when the pointer is leaving a table row
|
|
22
|
+
* @fires gv-table:sort - when the order is changed
|
|
23
|
+
*
|
|
24
|
+
* @attr {Array<any>} items - A list of items to display
|
|
25
|
+
* @attr {String} title - A title to display
|
|
26
|
+
* @attr {String} order - If defined, the table will be ordered by the field. Start with '-' to sort in desc
|
|
27
|
+
* @attr {Array<any>} options - The list of options to display
|
|
28
|
+
* @attr {Boolean} noheader - Used to hide the table header
|
|
29
|
+
* @attr {Boolean} nosort - Used to disable the click on header to sort
|
|
30
|
+
* @attr {String} rowsheight - The height of the table rows
|
|
31
|
+
* @attr {String} rowheight - The height of the table single row
|
|
32
|
+
* @attr {String} emptymessage - The empty message to display
|
|
33
|
+
* @attr {Function} format - A function to format table headers and string cells
|
|
34
|
+
* @attr {Function} compareFn - A function to define how to sort. Default function will sort selected field ignoring case
|
|
35
|
+
* @attr {Array<any>} selected - A list of selected ids of the items displayed
|
|
36
|
+
* @attr {String} total - Total of data displayed on the table (useful with in case of pagination)
|
|
37
|
+
* @attr {Boolean} skeleton - Force gv-table to be in skeleton mode
|
|
38
|
+
*
|
|
39
|
+
* @cssprop {Color} [--gv-table-selected--bgc=var(--gv-theme-color, #5a7684)] - Selected background color
|
|
40
|
+
* @cssprop {Color} [--gv-table-hover--bgc=var(--gv-theme-neutral-color-lighter, #fafafa)] - Row background color on hover
|
|
41
|
+
* @cssprop {Color} [--gv-table--bgc=var(--gv-theme-neutral-color-lightest, #ffffff)] - Background color
|
|
42
|
+
* @cssprop {Color} [--gv-table--bdc=var(--gv-theme-neutral-color-dark, #d9d9d9)] - Border color
|
|
43
|
+
* @cssprop {String} [--gv-table-header--fz=var(--gv-theme-font-size-l, 20px)] - Title font size
|
|
44
|
+
* @cssprop {Length} [--gv-table-header--p=2rem 4rem] - Title padding
|
|
45
|
+
* @cssprop {String} [--gv-table-rows--ov=auto] - Overflow on table
|
|
46
|
+
* @cssprop {Length} [--gv-table--colmg=0.2rem] - Column gap
|
|
47
|
+
* @cssprop {String} [--gv-table-row--ai=center] - Row align-items
|
|
48
|
+
* @cssprop {String} [--gv-table-row--ac=center] - Row align-content
|
|
49
|
+
* @cssprop {String} [--gv-table-cell--d=flex] - Cell display
|
|
50
|
+
*/
|
|
51
|
+
export class GvTable extends GvTable_base {
|
|
52
|
+
static get properties(): {
|
|
53
|
+
items: {
|
|
54
|
+
type: ArrayConstructor;
|
|
55
|
+
};
|
|
56
|
+
title: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
};
|
|
59
|
+
order: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
};
|
|
62
|
+
options: {
|
|
63
|
+
type: ArrayConstructor;
|
|
64
|
+
};
|
|
65
|
+
noheader: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
};
|
|
68
|
+
nosort: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
};
|
|
71
|
+
rowsheight: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
};
|
|
74
|
+
rowheight: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
};
|
|
77
|
+
emptymessage: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
};
|
|
80
|
+
format: {
|
|
81
|
+
type: FunctionConstructor;
|
|
82
|
+
};
|
|
83
|
+
compareFn: {
|
|
84
|
+
type: FunctionConstructor;
|
|
85
|
+
};
|
|
86
|
+
selected: {
|
|
87
|
+
type: ArrayConstructor;
|
|
88
|
+
reflect: boolean;
|
|
89
|
+
};
|
|
90
|
+
total: {
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
};
|
|
93
|
+
skeleton: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
};
|
|
96
|
+
_items: {
|
|
97
|
+
type: ArrayConstructor;
|
|
98
|
+
attribute: boolean;
|
|
99
|
+
};
|
|
100
|
+
_skeleton: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
attribute: boolean;
|
|
103
|
+
};
|
|
104
|
+
_error: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
attribute: boolean;
|
|
107
|
+
};
|
|
108
|
+
_empty: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
attribute: boolean;
|
|
111
|
+
};
|
|
112
|
+
_itemsProvider: {
|
|
113
|
+
type: ArrayConstructor;
|
|
114
|
+
attribute: boolean;
|
|
115
|
+
};
|
|
116
|
+
_page: {
|
|
117
|
+
type: NumberConstructor;
|
|
118
|
+
attribute: boolean;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
static get styles(): import("lit").CSSResult[];
|
|
122
|
+
_id: number;
|
|
123
|
+
breakpoints: {
|
|
124
|
+
width: number[];
|
|
125
|
+
};
|
|
126
|
+
_empty: boolean;
|
|
127
|
+
order: string;
|
|
128
|
+
_page: number;
|
|
129
|
+
_itemsProvider: any[];
|
|
130
|
+
selected: any[];
|
|
131
|
+
compareFn: (item: any, item2: any, value: any) => any;
|
|
132
|
+
set items(arg: any[]);
|
|
133
|
+
get items(): any[];
|
|
134
|
+
_skeleton: boolean | undefined;
|
|
135
|
+
_error: boolean | undefined;
|
|
136
|
+
_onSortChanged(field: any, e: any): void;
|
|
137
|
+
get _items(): any[];
|
|
138
|
+
_getItemId(item: any): any;
|
|
139
|
+
_onSelect(item: any, event: any): void;
|
|
140
|
+
get selectedItems(): any[];
|
|
141
|
+
_onMouseEnter(item: any): void;
|
|
142
|
+
_onMouseLeave(): void;
|
|
143
|
+
_renderHeader(styleGridColumns: any): "" | import("lit-html").TemplateResult<1>;
|
|
144
|
+
_renderIcon(item: any, itemIndex: any, option: any): "" | import("lit-html").TemplateResult<1>;
|
|
145
|
+
_renderComponent(item: any, itemIndex: any, option: any, value: any, type: any): any;
|
|
146
|
+
_renderCell(formattedValue: any, option: any, item: any, itemIndex: any): any;
|
|
147
|
+
_getFormattedCellValue(option: any, item: any): any;
|
|
148
|
+
_isSelected(item: any): boolean;
|
|
149
|
+
_renderRows(styleGridColumns: any): import("lit-html").TemplateResult<1>;
|
|
150
|
+
_renderItems(): import("lit-html").TemplateResult<1>;
|
|
151
|
+
_renderPagination(): import("lit-html").TemplateResult<1> | undefined;
|
|
152
|
+
_getDataFromField(item: any, field: any): any;
|
|
153
|
+
_renderTag(option: any, item: any): "" | import("lit-html").TemplateResult<1>;
|
|
154
|
+
_onImageLoaded(): void;
|
|
155
|
+
_renderImage(picture: any, alt: any): import("lit-html").TemplateResult<1>;
|
|
156
|
+
updated(props: any): void;
|
|
157
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
158
|
+
}
|
|
159
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A tree menu
|
|
3
|
+
*
|
|
4
|
+
* ## Details
|
|
5
|
+
* * has @theme facet
|
|
6
|
+
*
|
|
7
|
+
* @fires gv-tree:select - Custom event from child components
|
|
8
|
+
* @fires gv-tree:toggle - Custom event from child components
|
|
9
|
+
*
|
|
10
|
+
* @attr {Array} items - list of items and subitems to be displayed in the menu MenuItem: {name: String, value: any, children: Array<MenuItem>}
|
|
11
|
+
* @attr {Boolean} closed - allows to close the menu
|
|
12
|
+
* @attr {Object} selectedItem - the item selected
|
|
13
|
+
*
|
|
14
|
+
* @cssprop {Color} [--gv-tree--bgc=var(--gv-theme-neutral-color-lightest, #ffffff)] - Background color
|
|
15
|
+
* @cssprop {Color} [--gv-tree--c=var(--gv-theme-font-color-dark, #262626)] - Color
|
|
16
|
+
* @cssprop {Color} [--gv-tree-active--bdc=var(--gv-theme-color, #5a7684)] - Active border
|
|
17
|
+
* @cssprop {Color} [--gv-tree-active--bgc=var(--gv-theme-neutral-color-dark, #d9d9d9)] - Active background color
|
|
18
|
+
* @cssprop {Length} [--gv-tree-icon--s=20px] - Height and icon width
|
|
19
|
+
*/
|
|
20
|
+
export class GvTree extends LitElement {
|
|
21
|
+
static get properties(): {
|
|
22
|
+
items: {
|
|
23
|
+
type: ArrayConstructor;
|
|
24
|
+
};
|
|
25
|
+
closed: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
reflect: boolean;
|
|
28
|
+
};
|
|
29
|
+
selectedItem: {
|
|
30
|
+
type: ObjectConstructor;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
static get styles(): import("lit").CSSResult[];
|
|
34
|
+
closed: boolean;
|
|
35
|
+
_onSelect(menuItem: any, e: any): void;
|
|
36
|
+
selectedItem: any;
|
|
37
|
+
_onClick(menuItem: any, e: any): void;
|
|
38
|
+
_getMenuItemPage(menuItem: any): import("lit-html").TemplateResult<1>;
|
|
39
|
+
_getMenuItemFolder(menuItem: any): any;
|
|
40
|
+
_getMenu(menuItems: any): any;
|
|
41
|
+
_getMenuItem(menuItem: any): any;
|
|
42
|
+
_toggleMenu(): void;
|
|
43
|
+
}
|
|
44
|
+
import { LitElement } from "lit-element/lit-element";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Documentation component
|
|
3
|
+
*
|
|
4
|
+
* ⚠️ This component is based on `asciidoctor`, `highlight.js` and `asciidoctor-highlight.js`.
|
|
5
|
+
* To use this component in your project be sure the dependencies are installed or
|
|
6
|
+
* install them with: `npm install asciidoctor highlight.js asciidoctor-highlight.js --save`
|
|
7
|
+
*
|
|
8
|
+
* @attr {String} text - Documentation content
|
|
9
|
+
* @attr {String} type - Type of content
|
|
10
|
+
* @attr {String} image - Image or icon to display in header
|
|
11
|
+
* @attr {Boolean} disabled - true if component is disabled
|
|
12
|
+
* @attr {Boolean} without-header - true if component should not have header with title and actions
|
|
13
|
+
*/
|
|
14
|
+
export class GvDocumentation extends LitElement {
|
|
15
|
+
static get properties(): {
|
|
16
|
+
text: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
};
|
|
19
|
+
type: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
};
|
|
22
|
+
image: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
};
|
|
25
|
+
_dom: {
|
|
26
|
+
type: ObjectConstructor;
|
|
27
|
+
attribute: boolean;
|
|
28
|
+
};
|
|
29
|
+
disabled: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
};
|
|
32
|
+
withoutHeader: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
attribute: string;
|
|
35
|
+
};
|
|
36
|
+
_cssLoaded: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
attribute: boolean;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
static get styles(): import("lit").CSSResult[];
|
|
42
|
+
type: string;
|
|
43
|
+
_onCloseDocumentation(): void;
|
|
44
|
+
_renderIcon(): import("lit-html").TemplateResult<1>;
|
|
45
|
+
_dom: {
|
|
46
|
+
title: string;
|
|
47
|
+
element: HTMLDivElement;
|
|
48
|
+
} | undefined;
|
|
49
|
+
_onLoad(): void;
|
|
50
|
+
_cssLoaded: boolean | undefined;
|
|
51
|
+
}
|
|
52
|
+
import { LitElement } from "lit-element/lit-element";
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare const GvHeader_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
|
+
* Header component
|
|
15
|
+
*
|
|
16
|
+
* ## Details
|
|
17
|
+
* * has @theme facet
|
|
18
|
+
*
|
|
19
|
+
* @attr {Promise<any>} item - An item
|
|
20
|
+
* @attr {Promise<Array<{ path: String, title: String }>>} breadcrumbs - definition of routes in order
|
|
21
|
+
* @attr {Boolean} canSubscribe - for display actions (default: false)
|
|
22
|
+
*
|
|
23
|
+
* @cssprop {Color} [--gv-header--bgc=var(--gv-theme-color-light, #86c3d0)] - Background color.
|
|
24
|
+
* @cssprop {Color} [--gv-header--c=var(--gv-theme-font-color-dark, #262626)] - Color
|
|
25
|
+
*
|
|
26
|
+
* @cssprop {Length} [--gv-header-button--p=10px 24px] - Button adding
|
|
27
|
+
* @cssprop {Length} [--gv-header-button--fz=var(--gv-theme-font-size-l, 16px)] - Button font size
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export class GvHeader extends GvHeader_base {
|
|
31
|
+
static get properties(): {
|
|
32
|
+
breadcrumbs: {
|
|
33
|
+
type: ArrayConstructor;
|
|
34
|
+
};
|
|
35
|
+
sticky: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
reflect: boolean;
|
|
38
|
+
};
|
|
39
|
+
_breadcrumbs: {
|
|
40
|
+
type: ArrayConstructor;
|
|
41
|
+
attribute: boolean;
|
|
42
|
+
};
|
|
43
|
+
canSubscribe: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
attribute: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
static get styles(): any[];
|
|
49
|
+
breakpoints: {
|
|
50
|
+
width: number[];
|
|
51
|
+
};
|
|
52
|
+
_breadcrumbs: any[];
|
|
53
|
+
canSubscribe: boolean;
|
|
54
|
+
set breadcrumbs(arg: any);
|
|
55
|
+
_getLink(route: any, index: any): Promise<void | import("lit-html").TemplateResult<1>>;
|
|
56
|
+
_renderBreadcrumbs(): import("lit-html").TemplateResult<1>;
|
|
57
|
+
_onSubscribe(e: any): void;
|
|
58
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare const GvHttpClient_base: {
|
|
2
|
+
new (): {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
_controller: {};
|
|
5
|
+
_handleKeyDown: (e: any) => void;
|
|
6
|
+
_handleKeyUp: (e: any) => void;
|
|
7
|
+
connectedCallback(): void;
|
|
8
|
+
disconnectedCallback(): void;
|
|
9
|
+
_onKeyDown(e: any): void;
|
|
10
|
+
_onKeyUp(e: any): void;
|
|
11
|
+
isPressed(...keys: any[]): boolean;
|
|
12
|
+
onKeyboard(controller: any): void;
|
|
13
|
+
};
|
|
14
|
+
[x: string]: any;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @fires gv-http-client:send - Event sent when
|
|
18
|
+
*
|
|
19
|
+
* @attr {String} path - Path of the request
|
|
20
|
+
* @attr {String} method - Method of the request
|
|
21
|
+
* @attr {Boolean} loading - True if the request is in progress
|
|
22
|
+
* @attr {Object} response - Response of the request
|
|
23
|
+
*/
|
|
24
|
+
export class GvHttpClient extends GvHttpClient_base {
|
|
25
|
+
static get properties(): {
|
|
26
|
+
response: {
|
|
27
|
+
type: ObjectConstructor;
|
|
28
|
+
};
|
|
29
|
+
path: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
};
|
|
32
|
+
method: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
};
|
|
35
|
+
loading: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
static get styles(): import("lit").CSSResult[];
|
|
40
|
+
response: any;
|
|
41
|
+
loading: boolean;
|
|
42
|
+
path: any;
|
|
43
|
+
method: any;
|
|
44
|
+
request: {
|
|
45
|
+
method: string;
|
|
46
|
+
path: string;
|
|
47
|
+
};
|
|
48
|
+
_sendRequest(): void;
|
|
49
|
+
_updateRequest(formData: any): void;
|
|
50
|
+
isFormValid: any;
|
|
51
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
52
|
+
_renderEmptyResponse(): import("lit-html").TemplateResult<1>;
|
|
53
|
+
_renderLoading(): import("lit-html").TemplateResult<1>;
|
|
54
|
+
_renderDebugResponse(): import("lit-html").TemplateResult<1>;
|
|
55
|
+
_renderResponseHeader(): import("lit-html").TemplateResult<1>;
|
|
56
|
+
}
|
|
57
|
+
export {};
|