@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.
Files changed (183) hide show
  1. package/package.json +2 -1
  2. package/src/atoms/gv-autocomplete.d.ts +104 -0
  3. package/src/atoms/gv-button.d.ts +109 -0
  4. package/src/atoms/gv-checkbox.d.ts +114 -0
  5. package/src/atoms/gv-date-picker-calendar.d.ts +190 -0
  6. package/src/atoms/gv-date-picker-cell.d.ts +80 -0
  7. package/src/atoms/gv-date-picker.d.ts +194 -0
  8. package/src/atoms/gv-file-upload.d.ts +64 -0
  9. package/src/atoms/gv-icon.d.ts +26 -0
  10. package/src/atoms/gv-image.d.ts +45 -0
  11. package/src/atoms/gv-input-message.d.ts +20 -0
  12. package/src/atoms/gv-input.d.ts +246 -0
  13. package/src/atoms/gv-link.d.ts +67 -0
  14. package/src/atoms/gv-message.d.ts +23 -0
  15. package/src/atoms/gv-metric.d.ts +32 -0
  16. package/src/atoms/gv-relative-time.d.ts +45 -0
  17. package/src/atoms/gv-select-native.d.ts +174 -0
  18. package/src/atoms/gv-select.d.ts +71 -0
  19. package/src/atoms/gv-spinner.d.ts +10 -0
  20. package/src/atoms/gv-state.d.ts +50 -0
  21. package/src/atoms/gv-switch.d.ts +60 -0
  22. package/src/atoms/gv-tag.d.ts +69 -0
  23. package/src/atoms/gv-text.d.ts +110 -0
  24. package/src/charts/gv-chart-bar.d.ts +50 -0
  25. package/src/charts/gv-chart-gauge.d.ts +58 -0
  26. package/src/charts/gv-chart-histogram.d.ts +48 -0
  27. package/src/charts/gv-chart-line.d.ts +52 -0
  28. package/src/charts/gv-chart-map.d.ts +50 -0
  29. package/src/charts/gv-chart-pie.d.ts +50 -0
  30. package/src/index.d.ts +77 -0
  31. package/src/lib/cron-expression.d.ts +1 -0
  32. package/src/lib/date.d.ts +1 -0
  33. package/src/lib/events.d.ts +1 -0
  34. package/src/lib/http-client-schema-form.d.ts +68 -0
  35. package/src/lib/http.d.ts +222 -0
  36. package/src/lib/i18n.d.ts +30 -0
  37. package/src/lib/item.d.ts +12 -0
  38. package/src/lib/properties.d.ts +42 -0
  39. package/src/lib/schema-form.d.ts +5 -0
  40. package/src/lib/studio.d.ts +2 -0
  41. package/src/lib/style.d.ts +6 -0
  42. package/src/lib/text-format.d.ts +6 -0
  43. package/src/lib/theme.d.ts +4 -0
  44. package/src/lib/utils.d.ts +9 -0
  45. package/src/mixins/chart-element.d.ts +39 -0
  46. package/src/mixins/input-element.d.ts +64 -0
  47. package/src/mixins/item-resource.d.ts +56 -0
  48. package/src/mixins/keyboard-element.d.ts +25 -0
  49. package/src/mixins/update-after-browser.d.ts +11 -0
  50. package/src/mixins/with-resize-observer.d.ts +12 -0
  51. package/src/mixins/with-skeleton-attribute.d.ts +35 -0
  52. package/src/molecules/gv-card-full.d.ts +78 -0
  53. package/src/molecules/gv-card-list.d.ts +33 -0
  54. package/src/molecules/gv-card.d.ts +65 -0
  55. package/src/molecules/gv-category-list.d.ts +17 -0
  56. package/src/molecules/gv-category.d.ts +64 -0
  57. package/src/molecules/gv-code.d.ts +192 -0
  58. package/src/molecules/gv-confirm.d.ts +60 -0
  59. package/src/molecules/gv-cron-editor.d.ts +115 -0
  60. package/src/molecules/gv-dropdown-menu.d.ts +28 -0
  61. package/src/molecules/gv-expandable.d.ts +37 -0
  62. package/src/molecules/gv-expression-language.d.ts +150 -0
  63. package/src/molecules/gv-identity-picture.d.ts +44 -0
  64. package/src/molecules/gv-list.d.ts +123 -0
  65. package/src/molecules/gv-metrics.d.ts +65 -0
  66. package/src/molecules/gv-modal.d.ts +64 -0
  67. package/src/molecules/gv-nav.d.ts +41 -0
  68. package/src/molecules/gv-option.d.ts +65 -0
  69. package/src/molecules/gv-plans.d.ts +73 -0
  70. package/src/molecules/gv-popover.d.ts +91 -0
  71. package/src/molecules/gv-promote.d.ts +108 -0
  72. package/src/molecules/gv-rating-list.d.ts +77 -0
  73. package/src/molecules/gv-rating.d.ts +55 -0
  74. package/src/molecules/gv-row-expandable.d.ts +8 -0
  75. package/src/molecules/gv-row.d.ts +37 -0
  76. package/src/molecules/gv-stats.d.ts +53 -0
  77. package/src/molecules/gv-stepper.d.ts +46 -0
  78. package/src/molecules/gv-table.d.ts +159 -0
  79. package/src/molecules/gv-tree.d.ts +44 -0
  80. package/src/organisms/gv-documentation.d.ts +52 -0
  81. package/src/organisms/gv-header.d.ts +60 -0
  82. package/src/organisms/gv-http-client.d.ts +57 -0
  83. package/src/organisms/gv-menu.d.ts +74 -0
  84. package/src/organisms/gv-newsletter-subscription.d.ts +82 -0
  85. package/src/organisms/gv-pagination.d.ts +63 -0
  86. package/src/organisms/gv-properties.d.ts +229 -0
  87. package/src/organisms/gv-resizable-views.d.ts +33 -0
  88. package/src/organisms/gv-resources.d.ts +125 -0
  89. package/src/organisms/gv-schema-form-array.d.ts +55 -0
  90. package/src/organisms/gv-schema-form-control-object.d.ts +64 -0
  91. package/src/organisms/gv-schema-form-control.d.ts +90 -0
  92. package/src/organisms/gv-schema-form.d.ts +156 -0
  93. package/src/organisms/gv-tabs.d.ts +56 -0
  94. package/src/organisms/gv-user-menu.d.ts +56 -0
  95. package/src/organisms/gv-vertical-menu.d.ts +28 -0
  96. package/src/policy-studio/gv-flow-step.d.ts +142 -0
  97. package/src/policy-studio/gv-flow.d.ts +89 -0
  98. package/src/policy-studio/gv-policy-studio-menu.d.ts +94 -0
  99. package/src/policy-studio/gv-policy-studio.d.ts +464 -0
  100. package/src/styles/empty.d.ts +1 -0
  101. package/src/styles/input.d.ts +1 -0
  102. package/src/styles/link.d.ts +1 -0
  103. package/src/styles/shapes.d.ts +2 -0
  104. package/src/styles/skeleton.d.ts +1 -0
  105. package/src/styles/zoom.d.ts +1 -0
  106. package/src/theme/gv-theme.d.ts +81 -0
  107. package/wc/gv-autocomplete.d.ts +1 -0
  108. package/wc/gv-button.d.ts +1 -0
  109. package/wc/gv-card-full.d.ts +1 -0
  110. package/wc/gv-card-list.d.ts +1 -0
  111. package/wc/gv-card.d.ts +1 -0
  112. package/wc/gv-category-list.d.ts +1 -0
  113. package/wc/gv-category.d.ts +1 -0
  114. package/wc/gv-chart-bar.d.ts +1 -0
  115. package/wc/gv-chart-gauge.d.ts +1 -0
  116. package/wc/gv-chart-histogram.d.ts +1 -0
  117. package/wc/gv-chart-line.d.ts +1 -0
  118. package/wc/gv-chart-map.d.ts +1 -0
  119. package/wc/gv-chart-pie.d.ts +1 -0
  120. package/wc/gv-checkbox.d.ts +1 -0
  121. package/wc/gv-code.d.ts +1 -0
  122. package/wc/gv-confirm.d.ts +1 -0
  123. package/wc/gv-cron-editor.d.ts +1 -0
  124. package/wc/gv-date-picker-calendar.d.ts +1 -0
  125. package/wc/gv-date-picker-cell.d.ts +1 -0
  126. package/wc/gv-date-picker.d.ts +1 -0
  127. package/wc/gv-documentation.d.ts +1 -0
  128. package/wc/gv-dropdown-menu.d.ts +1 -0
  129. package/wc/gv-expandable.d.ts +1 -0
  130. package/wc/gv-expression-language.d.ts +1 -0
  131. package/wc/gv-file-upload.d.ts +1 -0
  132. package/wc/gv-flow-step.d.ts +1 -0
  133. package/wc/gv-flow.d.ts +1 -0
  134. package/wc/gv-header.d.ts +1 -0
  135. package/wc/gv-http-client.d.ts +1 -0
  136. package/wc/gv-icon.d.ts +1 -0
  137. package/wc/gv-identity-picture.d.ts +1 -0
  138. package/wc/gv-image.d.ts +1 -0
  139. package/wc/gv-input-message.d.ts +1 -0
  140. package/wc/gv-input.d.ts +1 -0
  141. package/wc/gv-link.d.ts +1 -0
  142. package/wc/gv-list.d.ts +1 -0
  143. package/wc/gv-menu.d.ts +1 -0
  144. package/wc/gv-message.d.ts +1 -0
  145. package/wc/gv-metric.d.ts +1 -0
  146. package/wc/gv-metrics.d.ts +1 -0
  147. package/wc/gv-modal.d.ts +1 -0
  148. package/wc/gv-nav.d.ts +1 -0
  149. package/wc/gv-newsletter-subscription.d.ts +1 -0
  150. package/wc/gv-option.d.ts +1 -0
  151. package/wc/gv-pagination.d.ts +1 -0
  152. package/wc/gv-plans.d.ts +1 -0
  153. package/wc/gv-policy-studio-menu.d.ts +1 -0
  154. package/wc/gv-policy-studio.d.ts +1 -0
  155. package/wc/gv-popover.d.ts +1 -0
  156. package/wc/gv-promote.d.ts +1 -0
  157. package/wc/gv-properties.d.ts +1 -0
  158. package/wc/gv-rating-list.d.ts +1 -0
  159. package/wc/gv-rating.d.ts +1 -0
  160. package/wc/gv-relative-time.d.ts +1 -0
  161. package/wc/gv-resizable-views.d.ts +1 -0
  162. package/wc/gv-resources.d.ts +1 -0
  163. package/wc/gv-row-expandable.d.ts +1 -0
  164. package/wc/gv-row.d.ts +1 -0
  165. package/wc/gv-schema-form-array.d.ts +1 -0
  166. package/wc/gv-schema-form-control-object.d.ts +1 -0
  167. package/wc/gv-schema-form-control.d.ts +1 -0
  168. package/wc/gv-schema-form.d.ts +1 -0
  169. package/wc/gv-select-native.d.ts +1 -0
  170. package/wc/gv-select.d.ts +1 -0
  171. package/wc/gv-spinner.d.ts +1 -0
  172. package/wc/gv-state.d.ts +1 -0
  173. package/wc/gv-stats.d.ts +1 -0
  174. package/wc/gv-stepper.d.ts +1 -0
  175. package/wc/gv-switch.d.ts +1 -0
  176. package/wc/gv-table.d.ts +1 -0
  177. package/wc/gv-tabs.d.ts +1 -0
  178. package/wc/gv-tag.d.ts +1 -0
  179. package/wc/gv-text.d.ts +1 -0
  180. package/wc/gv-theme.d.ts +1 -0
  181. package/wc/gv-tree.d.ts +1 -0
  182. package/wc/gv-user-menu.d.ts +1 -0
  183. package/wc/gv-vertical-menu.d.ts +1 -0
@@ -0,0 +1,64 @@
1
+ declare const GvSchemaFormControlObject_base: {
2
+ new (): {
3
+ [x: string]: any;
4
+ performUpdate(): Promise<void>;
5
+ };
6
+ [x: string]: any;
7
+ };
8
+ /**
9
+ * Schema form control object component
10
+ */
11
+ export class GvSchemaFormControlObject extends GvSchemaFormControlObject_base {
12
+ static get properties(): {
13
+ schema: {
14
+ type: ObjectConstructor;
15
+ };
16
+ value: {
17
+ type: ObjectConstructor;
18
+ reflect: boolean;
19
+ };
20
+ id: {
21
+ type: StringConstructor;
22
+ reflect: boolean;
23
+ };
24
+ title: {
25
+ type: StringConstructor;
26
+ reflect: boolean;
27
+ };
28
+ errors: {
29
+ type: ArrayConstructor;
30
+ };
31
+ skeleton: {
32
+ type: BooleanConstructor;
33
+ reflect: boolean;
34
+ };
35
+ readonly: {
36
+ type: BooleanConstructor;
37
+ reflect: boolean;
38
+ };
39
+ disabled: {
40
+ type: BooleanConstructor;
41
+ reflect: boolean;
42
+ };
43
+ required: {
44
+ type: BooleanConstructor;
45
+ reflect: boolean;
46
+ };
47
+ hidden: {
48
+ type: BooleanConstructor;
49
+ reflect: boolean;
50
+ };
51
+ compact: {
52
+ type: BooleanConstructor;
53
+ };
54
+ };
55
+ static get styles(): import("lit").CSSResult[];
56
+ value: any[];
57
+ _renderPart(subKey: any): import("lit-html").TemplateResult<1>;
58
+ getControls(): any[];
59
+ getControl(id: any): any;
60
+ getUpdateComplete(): Promise<void>;
61
+ shouldUpdate(changedProperties: any): any;
62
+ render(): import("lit-html").TemplateResult<1>;
63
+ }
64
+ export {};
@@ -0,0 +1,90 @@
1
+ declare const GvSchemaFormControl_base: {
2
+ new (): {
3
+ [x: string]: any;
4
+ performUpdate(): Promise<void>;
5
+ };
6
+ [x: string]: any;
7
+ };
8
+ export class GvSchemaFormControl extends GvSchemaFormControl_base {
9
+ static get properties(): {
10
+ type: {
11
+ type: StringConstructor;
12
+ };
13
+ id: {
14
+ type: StringConstructor;
15
+ reflect: boolean;
16
+ };
17
+ name: {
18
+ type: StringConstructor;
19
+ reflect: boolean;
20
+ };
21
+ required: {
22
+ type: BooleanConstructor;
23
+ reflect: boolean;
24
+ };
25
+ disabled: {
26
+ type: BooleanConstructor;
27
+ reflect: boolean;
28
+ };
29
+ readonly: {
30
+ type: BooleanConstructor;
31
+ reflect: boolean;
32
+ };
33
+ title: {
34
+ type: StringConstructor;
35
+ reflect: boolean;
36
+ };
37
+ pattern: {
38
+ type: StringConstructor;
39
+ };
40
+ control: {
41
+ type: ObjectConstructor;
42
+ };
43
+ errors: {
44
+ type: ArrayConstructor;
45
+ };
46
+ value: {
47
+ type: ObjectConstructor;
48
+ reflect: boolean;
49
+ };
50
+ skeleton: {
51
+ type: BooleanConstructor;
52
+ reflect: boolean;
53
+ };
54
+ hidden: {
55
+ type: BooleanConstructor;
56
+ reflect: boolean;
57
+ };
58
+ writeOnly: {
59
+ type: BooleanConstructor;
60
+ reflect: boolean;
61
+ };
62
+ compact: {
63
+ type: BooleanConstructor;
64
+ };
65
+ };
66
+ static get styles(): import("lit").CSSResult[];
67
+ _observedProperties: string[];
68
+ isExpressionLanguage(): any;
69
+ isCronExpression(): any;
70
+ isPassword(): any;
71
+ getPlaceholder(): any;
72
+ isCodemirror(): any;
73
+ isObject(): boolean;
74
+ isAutocomplete(): any;
75
+ isText(): any;
76
+ getElementName(): "gv-input" | "gv-button" | "gv-select-native" | "gv-select" | "gv-switch" | "gv-text" | "gv-code" | "gv-cron-editor" | "gv-expression-language" | "gv-schema-form-control-object" | "gv-schema-form-array";
77
+ _updateProperties(element: any): void;
78
+ _renderControl(): HTMLElement;
79
+ value: any;
80
+ _onInput(e: any): void;
81
+ getControls(): any[];
82
+ getControl(id: any): any;
83
+ _setValue(controlElement: any): any;
84
+ updated(changedProperties: any): Promise<void>;
85
+ getUpdateComplete(): Promise<void>;
86
+ formatErrorMessage(error: any): string;
87
+ shouldUpdate(changedProperties: any): any;
88
+ render(): import("lit-html").TemplateResult<1>;
89
+ }
90
+ export {};
@@ -0,0 +1,156 @@
1
+ /**
2
+ * Schema form component
3
+ *
4
+ * @fires gv-schema-form:submit - event when user submit valid form
5
+ * @fires gv-schema-form:error - event when user submit invalid form
6
+ * @fires gv-schema-form:change - event when when form change
7
+ * @fires gv-schema-form:cancel - event when user cancel form
8
+ *
9
+ * @attr {Object} schema - the schema form configuration
10
+ * @attr {Object} values - the values of fields
11
+ * @attr {Object} errors - the map of errors by input key
12
+ * @attr {Boolean} validate - to force validation on first render
13
+ * @attr {Boolean} readonly - true if readonly
14
+ * @attr {Boolean} scrollable - useful for making content scrollable with fixed headers / footers
15
+ *
16
+ * @cssprop {Color} [--gv-schema-form--bgc=#ffffff] - Background color
17
+ * @cssprop {Length} [--gv-schema-form-control--m=0.4rem] - Control margin
18
+ */
19
+ export class GvSchemaForm extends LitElement {
20
+ static get properties(): {
21
+ schema: {
22
+ type: ObjectConstructor;
23
+ };
24
+ errors: {
25
+ type: ObjectConstructor;
26
+ };
27
+ values: {
28
+ type: ObjectConstructor;
29
+ };
30
+ submitLabel: {
31
+ type: StringConstructor;
32
+ };
33
+ hasFooter: {
34
+ type: BooleanConstructor;
35
+ attribute: string;
36
+ };
37
+ hasHeader: {
38
+ type: BooleanConstructor;
39
+ attribute: string;
40
+ };
41
+ _confirm: {
42
+ type: ObjectConstructor;
43
+ };
44
+ _values: {
45
+ type: ObjectConstructor;
46
+ attribute: boolean;
47
+ };
48
+ dirty: {
49
+ type: BooleanConstructor;
50
+ reflect: boolean;
51
+ };
52
+ hideDeprecated: {
53
+ type: BooleanConstructor;
54
+ attribute: string;
55
+ };
56
+ validateOnRender: {
57
+ type: BooleanConstructor;
58
+ attribute: string;
59
+ };
60
+ _validatorResults: {
61
+ type: ObjectConstructor;
62
+ };
63
+ skeleton: {
64
+ type: BooleanConstructor;
65
+ reflect: boolean;
66
+ };
67
+ _touch: {
68
+ type: BooleanConstructor;
69
+ };
70
+ readonly: {
71
+ type: BooleanConstructor;
72
+ reflect: boolean;
73
+ };
74
+ scrollable: {
75
+ type: BooleanConstructor;
76
+ reflect: boolean;
77
+ };
78
+ groups: {
79
+ type: ArrayConstructor;
80
+ };
81
+ };
82
+ static get styles(): import("lit").CSSResult[];
83
+ hideDeprecated: boolean;
84
+ _values: {};
85
+ submitLabel: string;
86
+ hasHeader: boolean;
87
+ hasFooter: boolean;
88
+ _touch: boolean;
89
+ _validator: Validator;
90
+ _validatorResults: {};
91
+ _ignoreProperties: any[];
92
+ _dynamicControls: any[];
93
+ _dynamicAttributes: string[];
94
+ groups: any;
95
+ set values(arg: {});
96
+ get values(): {};
97
+ _initialValues: any;
98
+ reset(values?: null): void;
99
+ _onReset(): void;
100
+ requestValidation(): void;
101
+ _validateTimeout: NodeJS.Timeout | undefined;
102
+ submit(): void;
103
+ _onSubmit(): void;
104
+ dirty: boolean | undefined;
105
+ _setDirty(dirty?: boolean): void;
106
+ _setTouch(touch?: boolean): void;
107
+ confirm(): any;
108
+ _confirm: {
109
+ resolve: (value: any) => void;
110
+ reject: (reason?: any) => void;
111
+ } | null | undefined;
112
+ _onConfirmReset(): void;
113
+ _onConfirmEdit(): void;
114
+ _getSubmitBtn(): Element | null;
115
+ _getResetBtn(): Element | null;
116
+ _dispatchChange(): void;
117
+ _changeTimeout: NodeJS.Timeout | undefined;
118
+ _onDefaultValue({ detail: { currentTarget, value, control } }: {
119
+ detail: {
120
+ currentTarget: any;
121
+ value: any;
122
+ control: any;
123
+ };
124
+ }): void;
125
+ _onChange({ detail: { currentTarget, value, control } }: {
126
+ detail: {
127
+ currentTarget: any;
128
+ value: any;
129
+ control: any;
130
+ };
131
+ }): void;
132
+ _onControlReady(e: any): void;
133
+ _updateDynamicControls(): void;
134
+ _updateDynamicControl(controlElement: any): null;
135
+ _renderControl(key: any): import("lit-html").TemplateResult<1>;
136
+ _hasCondition(control: any): boolean;
137
+ _evaluateCondition(control: any, conditionKey: any): boolean;
138
+ _evaluateNotEqualsCondition(control: any, condition: any): boolean;
139
+ _evaluateEqualsCondition(control: any, condition: any): boolean;
140
+ _evaluateNotDefCondition(control: any, condition: any): boolean;
141
+ _evaluateDefCondition(control: any, condition: any): boolean;
142
+ _renderPart(): unknown;
143
+ getControls(): Element[];
144
+ getControl(id: any): Element | null;
145
+ _getErrors(): any;
146
+ validate(): {};
147
+ errors: any;
148
+ isValid(): boolean;
149
+ isTouch(): any;
150
+ canSubmit(): any;
151
+ _updateActions(): void;
152
+ _updateChildren(withValidation: any): void;
153
+ _updateActionsTimeout: NodeJS.Timeout | undefined;
154
+ }
155
+ import { LitElement } from "lit-element/lit-element";
156
+ import { Validator } from "jsonschema";
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Tabs component
3
+ *
4
+ * * ## Details
5
+ * * This component use gv-option component to generate tabs.
6
+ *
7
+ * @attr {Array<id: string | {id, title?, icon?, active?, description?, label?}>} options - An array of options for gv-option sub component
8
+ * @slot content - List of elements for tabs content. Should have an id related to options.
9
+ *
10
+ * @attr {String} value - the opened tab id
11
+ * @attr {Boolean} disabled - true if disabled
12
+ * @attr {Boolean} small - true if you want display tabs below of title
13
+ * @attr {Boolean} truncate - true if you want truncate tabs title
14
+ * @attr {Function} validator - a function that's calls when user change tab, this is useful to validate tab change.
15
+ *
16
+ * @cssprop {Length} [--gv-tabs-options--m=0] - Tabs options margin
17
+ */
18
+ export class GvTabs extends LitElement {
19
+ static get properties(): {
20
+ options: {
21
+ type: ArrayConstructor;
22
+ };
23
+ _options: {
24
+ type: ArrayConstructor;
25
+ attribute: boolean;
26
+ };
27
+ value: {
28
+ type: StringConstructor;
29
+ reflect: boolean;
30
+ };
31
+ validator: {
32
+ type: FunctionConstructor;
33
+ };
34
+ disabled: {
35
+ type: BooleanConstructor;
36
+ };
37
+ small: {
38
+ type: BooleanConstructor;
39
+ };
40
+ truncate: {
41
+ type: BooleanConstructor;
42
+ };
43
+ };
44
+ static get styles(): import("lit").CSSResult[];
45
+ _getContent(): any;
46
+ value: any;
47
+ set options(arg: any);
48
+ get options(): any;
49
+ _options: any;
50
+ _changeTab(from: any, content: any, value: any): void;
51
+ _onClick({ detail }: {
52
+ detail: any;
53
+ }): void;
54
+ get _contextualOptions(): any;
55
+ }
56
+ import { LitElement } from "lit-element/lit-element";
@@ -0,0 +1,56 @@
1
+ /**
2
+ * User menu
3
+ *
4
+ * ## Details
5
+ * * has @theme facet
6
+ *
7
+ * @fires gv-link:click - Custom event when nav link click
8
+ *
9
+ * @attr {Array} routes - definition of user routes [{icon: String, path: String, title: Promise<String>, active: Boolean, routes: Array<any>]
10
+ * @attr {String} username - name of the user
11
+ * @attr {String} avatar - url of the user avatar
12
+ *
13
+ * @cssprop {Color} [--gv-user-menu--c=var(--gv-theme-font-color-dark, #262626)] - Color
14
+ * @cssprop {Color} [--gv-user-menu-hover--c=var(--gv-theme-color-dark, #28444f)] - Hover color
15
+ * @cssprop {Color} [--gv-user-menu--bgc=transparent] - Background color
16
+ * @cssprop {Color} [--gv-user-menu-list--bgc=var(--gv-theme-neutral-color-lightest, #ffffff)] - List background color
17
+ * @cssprop {Color} [--gv-user-menu-hover--bgc=var(--gv-theme-color-light, #86c3d0)] - Hover background color
18
+ * @cssprop {Color} [--gv-user-menu--bdc=lightgrey] - Border color
19
+ * @cssprop {String} [--gv-user-menu--tsh=none] - Text shadow
20
+ * @cssprop {Color} [--gv-user-menu-icon--c=var(--gv-theme-neutral-color-darkest, #000000)] - Icon color
21
+ * @cssprop {Length} [--gv-user-menu-icon--s=16px] - Height and icon width
22
+ * @cssprop {Length} [--gv-user-menu-link-a--ph=0px] - Link horizontal padding
23
+ * @cssprop {String} [--gv-user-menu-link--ta=right] - Text align
24
+ */
25
+ export class GvUserMenu extends LitElement {
26
+ static get properties(): {
27
+ avatar: {
28
+ type: StringConstructor;
29
+ };
30
+ routes: {
31
+ type: ArrayConstructor;
32
+ };
33
+ _routes: {
34
+ type: ArrayConstructor;
35
+ attribute: boolean;
36
+ };
37
+ _isClosed: {
38
+ type: BooleanConstructor;
39
+ attribute: boolean;
40
+ };
41
+ username: {
42
+ type: StringConstructor;
43
+ };
44
+ };
45
+ static get styles(): import("lit").CSSResult[];
46
+ _isClosed: boolean;
47
+ _onClick(e: any): void;
48
+ _onMouseLeave(): void;
49
+ _onSelect(): void;
50
+ _hasOneItem(): boolean | null | undefined;
51
+ set routes(arg: any);
52
+ _routes: any[] | null | undefined;
53
+ _renderFirstItem(): import("lit-html").TemplateResult<1>;
54
+ _renderItem(route: any): any;
55
+ }
56
+ import { LitElement } from "lit-element/lit-element";
@@ -0,0 +1,28 @@
1
+ /**
2
+ * A vertical menu
3
+ *
4
+ * @fires gv-link:click - Custom event when link click
5
+ *
6
+ * @attr {Array} routes - definition of routes [{active: Boolean, icon: String, path: String, title: Promise<String>]
7
+ *
8
+ */
9
+ export class GvVerticalMenu extends LitElement {
10
+ static get properties(): {
11
+ /** @required **/
12
+ routes: {
13
+ type: ArrayConstructor;
14
+ };
15
+ _routes: {
16
+ type: ArrayConstructor;
17
+ attribute: boolean;
18
+ };
19
+ logo: {
20
+ type: StringConstructor;
21
+ };
22
+ };
23
+ static get styles(): import("lit").CSSResult[];
24
+ /** @protected */
25
+ protected _routes: any[];
26
+ set routes(arg: any);
27
+ }
28
+ import { LitElement } from "lit-element/lit-element";
@@ -0,0 +1,142 @@
1
+ declare const GvFlowStep_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
+ * Flow area component
15
+ *
16
+ * @fires gv-flow-step:duplicate - Duplicate event from actions
17
+ * @fires gv-flow-step:delete - Delete event from actions
18
+ * @fires gv-flow-step:edit - Edit event
19
+ * @fires gv-flow-step:copy - Copy event
20
+ * @fires gv-flow-step:move - Move event
21
+ *
22
+ * @attr {Object<{name, icon, configuration:{description, ...}}>} step - the flow step, configuration contains form conf for gv-schema-form component
23
+ * @attr {Boolean} editing - true, if edition in progress
24
+ * @attr {Boolean} dragging - true, if dragging in progress
25
+ * @attr {Boolean} hover - true, if area is hover
26
+ * @attr {String} title - title of area, default is "content.configuration.description" if exist
27
+ * @attr {Boolean} empty - true, if render empty state
28
+ * @attr {Boolean} confirm - true, if render confirm state
29
+ * @attr {Boolean} disabled - true for disabled
30
+ * @attr {Boolean} readonly - true if readonly
31
+ */
32
+ export class GvFlowStep extends GvFlowStep_base {
33
+ static get properties(): {
34
+ id: {
35
+ type: StringConstructor;
36
+ reflect: boolean;
37
+ };
38
+ group: {
39
+ type: StringConstructor;
40
+ reflect: boolean;
41
+ };
42
+ parent: {
43
+ type: StringConstructor;
44
+ reflect: boolean;
45
+ };
46
+ step: {
47
+ type: ObjectConstructor;
48
+ };
49
+ policy: {
50
+ type: ObjectConstructor;
51
+ };
52
+ editing: {
53
+ type: BooleanConstructor;
54
+ reflect: boolean;
55
+ };
56
+ dragging: {
57
+ type: BooleanConstructor;
58
+ reflect: boolean;
59
+ };
60
+ hover: {
61
+ type: BooleanConstructor;
62
+ reflect: boolean;
63
+ };
64
+ title: {
65
+ type: StringConstructor;
66
+ reflect: boolean;
67
+ };
68
+ empty: {
69
+ type: BooleanConstructor;
70
+ reflect: boolean;
71
+ };
72
+ confirm: {
73
+ type: BooleanConstructor;
74
+ reflect: boolean;
75
+ };
76
+ disabled: {
77
+ type: BooleanConstructor;
78
+ reflect: boolean;
79
+ };
80
+ readonly: {
81
+ type: BooleanConstructor;
82
+ reflect: boolean;
83
+ };
84
+ _small: {
85
+ type: BooleanConstructor;
86
+ attribute: boolean;
87
+ };
88
+ _confirmDelete: {
89
+ type: BooleanConstructor;
90
+ reflect: boolean;
91
+ };
92
+ _confirmDuplicate: {
93
+ type: BooleanConstructor;
94
+ reflect: boolean;
95
+ };
96
+ };
97
+ static get styles(): import("lit").CSSResult[];
98
+ empty: boolean;
99
+ breakpoints: {
100
+ width: number[];
101
+ };
102
+ onResize({ width }: {
103
+ width: any;
104
+ }): void;
105
+ _small: boolean | undefined;
106
+ _onDuplicate(): void;
107
+ _confirmDuplicate: boolean | undefined;
108
+ _onConfirmDuplicate(): void;
109
+ _onCancelDuplicate(): void;
110
+ _onClick(e: any): void;
111
+ _edit(): void;
112
+ _onMouseEnter(): void;
113
+ hover: boolean | undefined;
114
+ _onMouseLeave(): void;
115
+ _onDelete(): void;
116
+ _confirmDelete: boolean | undefined;
117
+ _onConfirmDelete(): void;
118
+ _onCancelDelete(): void;
119
+ updated(properties: any): void;
120
+ _onCancel(): void;
121
+ _onCopy(): void;
122
+ _onMove(): void;
123
+ _onChangeState({ detail }: {
124
+ detail: any;
125
+ }): void;
126
+ _renderDropdownMenu(): import("lit-html").TemplateResult<1>;
127
+ resetConfirm(): void;
128
+ confirm: boolean | undefined;
129
+ render(): import("lit-html").TemplateResult<1>;
130
+ title: any;
131
+ }
132
+ export class PolicyDraggable {
133
+ static parse(str: any): PolicyDraggable;
134
+ constructor(policy: any, sourcePosition: any, sourceFlowKey: any, sourceFlowId: any, flowStep: any);
135
+ policy: any;
136
+ sourcePosition: any;
137
+ sourceFlowKey: any;
138
+ sourceFlowId: any;
139
+ flowStep: any;
140
+ toString(): string;
141
+ }
142
+ export {};
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Flow component
3
+ *
4
+ * @fires gv-flow:drop - Drop event
5
+ * @fires gv-flow:edit - Edit event
6
+ * @fires gv-flow:delete - Delete event
7
+ *
8
+ * @attr {Object} flow - the flow to display
9
+ * @attr {String} selectedStepId - the selected step id
10
+ * @attr {Object} targetedPolicy - true, if flow is targeted for drop action
11
+ * @attr {Boolean} has-policy-filter - true if policies have onRequest/onResponse properties
12
+ * @attr {String} flowsTitle - flows menu title
13
+ * @attr {Boolean} disabled - true for disabled
14
+ * @attr {Boolean} readonly - true if readonly
15
+ */
16
+ export class GvFlow extends LitElement {
17
+ static get properties(): {
18
+ flow: {
19
+ type: ObjectConstructor;
20
+ };
21
+ plan: {
22
+ type: ObjectConstructor;
23
+ };
24
+ policies: {
25
+ type: ObjectConstructor;
26
+ };
27
+ selectedStepId: {
28
+ type: StringConstructor;
29
+ };
30
+ dragPolicy: {
31
+ type: ObjectConstructor;
32
+ };
33
+ dropPolicy: {
34
+ type: ObjectConstructor;
35
+ };
36
+ disabled: {
37
+ type: BooleanConstructor;
38
+ reflect: boolean;
39
+ };
40
+ hasPolicyFilter: {
41
+ type: BooleanConstructor;
42
+ attribute: string;
43
+ };
44
+ flowsTitle: {
45
+ type: StringConstructor;
46
+ attribute: string;
47
+ };
48
+ readonly: {
49
+ type: BooleanConstructor;
50
+ reflect: boolean;
51
+ };
52
+ };
53
+ static get styles(): import("lit").CSSResult[];
54
+ flowsTitle: string;
55
+ _onMouseLeave(): void;
56
+ dragPolicy: any;
57
+ dropPolicy: any;
58
+ getCandidate(): Element | null;
59
+ getFlowSteps(): Element[];
60
+ getOrCreateCandidate(): Element;
61
+ removeCandidate(): void;
62
+ _canDropPolicy(flowKey: any, policy: any): boolean;
63
+ _onDragOver(flowKey: any, e: any): void;
64
+ _onDragEnd(): void;
65
+ _draggablePolicyImage: HTMLDivElement | null | undefined;
66
+ _onDragStart(sourceFlowKey: any, flowStep: any, sourcePosition: any, e: any): void;
67
+ get draggingArea(): Element | null;
68
+ _onDrop(flowKey: any, e: any): void;
69
+ getFlowStep(flowKey: any, position: any): any;
70
+ _onEditStep({ detail: { step, policy, group } }: {
71
+ detail: {
72
+ step: any;
73
+ policy: any;
74
+ group: any;
75
+ };
76
+ }): void;
77
+ _onDuplicateStep(flowKey: any, position: any): void;
78
+ _isEditable(step: any): any;
79
+ _onDeleteStep(flowKey: any, position: any, e: any): void;
80
+ _onChangeStepState(flowKey: any, position: any, { detail }: {
81
+ detail: any;
82
+ }): void;
83
+ _renderDropStep(group: any, step: any, position: any): import("lit-html").TemplateResult<1>;
84
+ onDragEnd(): void;
85
+ _getLabel(flowKey: any): "" | import("lit-html").TemplateResult<1> | "request" | "response";
86
+ get collectionName(): any;
87
+ findPolicy(policyId: any): any;
88
+ }
89
+ import { LitElement } from "lit-element/lit-element";