@gravitee/ui-components 3.25.3-typescript-5a46c7d → 3.25.3-typescript-fdacf14

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 (185) hide show
  1. package/package.json +3 -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-message.js +1 -1
  16. package/src/atoms/gv-metric.d.ts +32 -0
  17. package/src/atoms/gv-relative-time.d.ts +45 -0
  18. package/src/atoms/gv-select-native.d.ts +174 -0
  19. package/src/atoms/gv-select.d.ts +71 -0
  20. package/src/atoms/gv-spinner.d.ts +10 -0
  21. package/src/atoms/gv-state.d.ts +50 -0
  22. package/src/atoms/gv-switch.d.ts +60 -0
  23. package/src/atoms/gv-tag.d.ts +69 -0
  24. package/src/atoms/gv-text.d.ts +110 -0
  25. package/src/charts/gv-chart-bar.d.ts +50 -0
  26. package/src/charts/gv-chart-gauge.d.ts +58 -0
  27. package/src/charts/gv-chart-histogram.d.ts +48 -0
  28. package/src/charts/gv-chart-line.d.ts +52 -0
  29. package/src/charts/gv-chart-map.d.ts +50 -0
  30. package/src/charts/gv-chart-pie.d.ts +50 -0
  31. package/src/index.d.ts +77 -0
  32. package/src/lib/cron-expression.d.ts +1 -0
  33. package/src/lib/date.d.ts +1 -0
  34. package/src/lib/events.d.ts +1 -0
  35. package/src/lib/http-client-schema-form.d.ts +68 -0
  36. package/src/lib/http.d.ts +222 -0
  37. package/src/lib/i18n.d.ts +30 -0
  38. package/src/lib/item.d.ts +12 -0
  39. package/src/lib/properties.d.ts +42 -0
  40. package/src/lib/schema-form.d.ts +5 -0
  41. package/src/lib/studio.d.ts +2 -0
  42. package/src/lib/style.d.ts +6 -0
  43. package/src/lib/text-format.d.ts +6 -0
  44. package/src/lib/theme.d.ts +4 -0
  45. package/src/lib/utils.d.ts +9 -0
  46. package/src/mixins/chart-element.d.ts +39 -0
  47. package/src/mixins/input-element.d.ts +64 -0
  48. package/src/mixins/item-resource.d.ts +56 -0
  49. package/src/mixins/keyboard-element.d.ts +25 -0
  50. package/src/mixins/update-after-browser.d.ts +11 -0
  51. package/src/mixins/with-resize-observer.d.ts +12 -0
  52. package/src/mixins/with-skeleton-attribute.d.ts +35 -0
  53. package/src/molecules/gv-card-full.d.ts +78 -0
  54. package/src/molecules/gv-card-list.d.ts +33 -0
  55. package/src/molecules/gv-card.d.ts +65 -0
  56. package/src/molecules/gv-category-list.d.ts +17 -0
  57. package/src/molecules/gv-category.d.ts +64 -0
  58. package/src/molecules/gv-code.d.ts +192 -0
  59. package/src/molecules/gv-confirm.d.ts +60 -0
  60. package/src/molecules/gv-cron-editor.d.ts +115 -0
  61. package/src/molecules/gv-dropdown-menu.d.ts +28 -0
  62. package/src/molecules/gv-expandable.d.ts +37 -0
  63. package/src/molecules/gv-expression-language.d.ts +150 -0
  64. package/src/molecules/gv-identity-picture.d.ts +44 -0
  65. package/src/molecules/gv-identity-picture.js +1 -1
  66. package/src/molecules/gv-list.d.ts +123 -0
  67. package/src/molecules/gv-metrics.d.ts +65 -0
  68. package/src/molecules/gv-modal.d.ts +64 -0
  69. package/src/molecules/gv-nav.d.ts +41 -0
  70. package/src/molecules/gv-option.d.ts +65 -0
  71. package/src/molecules/gv-plans.d.ts +73 -0
  72. package/src/molecules/gv-popover.d.ts +91 -0
  73. package/src/molecules/gv-promote.d.ts +108 -0
  74. package/src/molecules/gv-rating-list.d.ts +77 -0
  75. package/src/molecules/gv-rating.d.ts +55 -0
  76. package/src/molecules/gv-row-expandable.d.ts +8 -0
  77. package/src/molecules/gv-row.d.ts +37 -0
  78. package/src/molecules/gv-stats.d.ts +53 -0
  79. package/src/molecules/gv-stepper.d.ts +46 -0
  80. package/src/molecules/gv-table.d.ts +159 -0
  81. package/src/molecules/gv-tree.d.ts +44 -0
  82. package/src/organisms/gv-documentation.d.ts +52 -0
  83. package/src/organisms/gv-header.d.ts +60 -0
  84. package/src/organisms/gv-http-client.d.ts +57 -0
  85. package/src/organisms/gv-menu.d.ts +74 -0
  86. package/src/organisms/gv-newsletter-subscription.d.ts +82 -0
  87. package/src/organisms/gv-pagination.d.ts +63 -0
  88. package/src/organisms/gv-properties.d.ts +229 -0
  89. package/src/organisms/gv-resizable-views.d.ts +33 -0
  90. package/src/organisms/gv-resources.d.ts +125 -0
  91. package/src/organisms/gv-schema-form-array.d.ts +55 -0
  92. package/src/organisms/gv-schema-form-control-object.d.ts +64 -0
  93. package/src/organisms/gv-schema-form-control.d.ts +90 -0
  94. package/src/organisms/gv-schema-form.d.ts +156 -0
  95. package/src/organisms/gv-tabs.d.ts +56 -0
  96. package/src/organisms/gv-user-menu.d.ts +56 -0
  97. package/src/organisms/gv-vertical-menu.d.ts +28 -0
  98. package/src/policy-studio/gv-flow-step.d.ts +142 -0
  99. package/src/policy-studio/gv-flow.d.ts +89 -0
  100. package/src/policy-studio/gv-policy-studio-menu.d.ts +94 -0
  101. package/src/policy-studio/gv-policy-studio.d.ts +464 -0
  102. package/src/styles/empty.d.ts +1 -0
  103. package/src/styles/input.d.ts +1 -0
  104. package/src/styles/link.d.ts +1 -0
  105. package/src/styles/shapes.d.ts +2 -0
  106. package/src/styles/skeleton.d.ts +1 -0
  107. package/src/styles/zoom.d.ts +1 -0
  108. package/src/theme/gv-theme.d.ts +81 -0
  109. package/wc/gv-autocomplete.d.ts +1 -0
  110. package/wc/gv-button.d.ts +1 -0
  111. package/wc/gv-card-full.d.ts +1 -0
  112. package/wc/gv-card-list.d.ts +1 -0
  113. package/wc/gv-card.d.ts +1 -0
  114. package/wc/gv-category-list.d.ts +1 -0
  115. package/wc/gv-category.d.ts +1 -0
  116. package/wc/gv-chart-bar.d.ts +1 -0
  117. package/wc/gv-chart-gauge.d.ts +1 -0
  118. package/wc/gv-chart-histogram.d.ts +1 -0
  119. package/wc/gv-chart-line.d.ts +1 -0
  120. package/wc/gv-chart-map.d.ts +1 -0
  121. package/wc/gv-chart-pie.d.ts +1 -0
  122. package/wc/gv-checkbox.d.ts +1 -0
  123. package/wc/gv-code.d.ts +1 -0
  124. package/wc/gv-confirm.d.ts +1 -0
  125. package/wc/gv-cron-editor.d.ts +1 -0
  126. package/wc/gv-date-picker-calendar.d.ts +1 -0
  127. package/wc/gv-date-picker-cell.d.ts +1 -0
  128. package/wc/gv-date-picker.d.ts +1 -0
  129. package/wc/gv-documentation.d.ts +1 -0
  130. package/wc/gv-dropdown-menu.d.ts +1 -0
  131. package/wc/gv-expandable.d.ts +1 -0
  132. package/wc/gv-expression-language.d.ts +1 -0
  133. package/wc/gv-file-upload.d.ts +1 -0
  134. package/wc/gv-flow-step.d.ts +1 -0
  135. package/wc/gv-flow.d.ts +1 -0
  136. package/wc/gv-header.d.ts +1 -0
  137. package/wc/gv-http-client.d.ts +1 -0
  138. package/wc/gv-icon.d.ts +1 -0
  139. package/wc/gv-identity-picture.d.ts +1 -0
  140. package/wc/gv-image.d.ts +1 -0
  141. package/wc/gv-input-message.d.ts +1 -0
  142. package/wc/gv-input.d.ts +1 -0
  143. package/wc/gv-link.d.ts +1 -0
  144. package/wc/gv-list.d.ts +1 -0
  145. package/wc/gv-menu.d.ts +1 -0
  146. package/wc/gv-message.d.ts +1 -0
  147. package/wc/gv-metric.d.ts +1 -0
  148. package/wc/gv-metrics.d.ts +1 -0
  149. package/wc/gv-modal.d.ts +1 -0
  150. package/wc/gv-nav.d.ts +1 -0
  151. package/wc/gv-newsletter-subscription.d.ts +1 -0
  152. package/wc/gv-option.d.ts +1 -0
  153. package/wc/gv-pagination.d.ts +1 -0
  154. package/wc/gv-plans.d.ts +1 -0
  155. package/wc/gv-policy-studio-menu.d.ts +1 -0
  156. package/wc/gv-policy-studio.d.ts +1 -0
  157. package/wc/gv-popover.d.ts +1 -0
  158. package/wc/gv-promote.d.ts +1 -0
  159. package/wc/gv-properties.d.ts +1 -0
  160. package/wc/gv-rating-list.d.ts +1 -0
  161. package/wc/gv-rating.d.ts +1 -0
  162. package/wc/gv-relative-time.d.ts +1 -0
  163. package/wc/gv-resizable-views.d.ts +1 -0
  164. package/wc/gv-resources.d.ts +1 -0
  165. package/wc/gv-row-expandable.d.ts +1 -0
  166. package/wc/gv-row.d.ts +1 -0
  167. package/wc/gv-schema-form-array.d.ts +1 -0
  168. package/wc/gv-schema-form-control-object.d.ts +1 -0
  169. package/wc/gv-schema-form-control.d.ts +1 -0
  170. package/wc/gv-schema-form.d.ts +1 -0
  171. package/wc/gv-select-native.d.ts +1 -0
  172. package/wc/gv-select.d.ts +1 -0
  173. package/wc/gv-spinner.d.ts +1 -0
  174. package/wc/gv-state.d.ts +1 -0
  175. package/wc/gv-stats.d.ts +1 -0
  176. package/wc/gv-stepper.d.ts +1 -0
  177. package/wc/gv-switch.d.ts +1 -0
  178. package/wc/gv-table.d.ts +1 -0
  179. package/wc/gv-tabs.d.ts +1 -0
  180. package/wc/gv-tag.d.ts +1 -0
  181. package/wc/gv-text.d.ts +1 -0
  182. package/wc/gv-theme.d.ts +1 -0
  183. package/wc/gv-tree.d.ts +1 -0
  184. package/wc/gv-user-menu.d.ts +1 -0
  185. package/wc/gv-vertical-menu.d.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/ui-components",
3
- "version": "3.25.3-typescript-5a46c7d",
3
+ "version": "3.25.3-typescript-fdacf14",
4
4
  "description": "Gravitee.io UI Components library, based on Web Components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,6 +9,7 @@
9
9
  "license": "Apache-2.0",
10
10
  "author": "",
11
11
  "main": "src/index.js",
12
+ "types": "src/index.d.ts",
12
13
  "files": [
13
14
  "assets/css",
14
15
  "assets/i18n",
@@ -72,6 +73,7 @@
72
73
  "@babel/core": "7.16.5",
73
74
  "@babel/plugin-syntax-dynamic-import": "7.8.3",
74
75
  "@babel/preset-env": "7.16.5",
76
+ "@babel/preset-typescript": "^7.16.5",
75
77
  "@commitlint/cli": "15.0.0",
76
78
  "@commitlint/config-conventional": "15.0.0",
77
79
  "@highcharts/map-collection": "1.1.4",
@@ -0,0 +1,104 @@
1
+ /**
2
+ * Autocomplete input wrapper
3
+ *
4
+ * ## Details
5
+ * * has @theme facet
6
+ *
7
+ * @fires gv-autocomplete:search - Custom event when user search value
8
+ * @fires gv-autocomplete:select - Custom event when user select value
9
+ * @fires gv-autocomplete:opened - Custom event after opened autocomplete
10
+ *
11
+ * @slot style - The options style
12
+ * @slot input - The input to wrap
13
+ * @slot noOption - What should be shown when there is no options to display
14
+ *
15
+ * @attr {Array.<{value: String, innerHTML?: String}>} options - the options for search
16
+ * @attr {String} value - selected value
17
+ * @attr {String} style - css if you want custom options rendered
18
+ * @attr {Number} minChars - minimum of characters for launch search and show results
19
+ * @attr {Number} size - results size to show before user must scroll
20
+ * @attr {Boolean|Function(value,option)} filter - If true, filter options by input, if function, filter options against it. The function will
21
+ * receive two arguments, inputValue and option, if the function returns true, the option will be included
22
+ * in the filtered set; Otherwise, it will be excluded.
23
+ * the option will be included in the filtered set; Otherwise, it will be excluded.
24
+ *
25
+ * @cssprop {Color} [--gv-autocomplete-hover--bgc=var(--gv-theme-neutral-color-lighter, #fafafa)] - Hover background color
26
+ * @cssprop {Color} [--gv-autocomplete--bgc=var(--gv-theme-neutral-color-lightest, #ffffff)] - Background color
27
+ * @cssprop {Color} [--gv-autocomplete--c=var(--gv-theme-font-color, #262626)] - Color
28
+ */
29
+ export class GvAutocomplete extends LitElement {
30
+ static get properties(): {
31
+ options: {
32
+ type: ArrayConstructor;
33
+ reflect: boolean;
34
+ };
35
+ value: {
36
+ type: StringConstructor;
37
+ reflect: boolean;
38
+ };
39
+ style: {
40
+ type: StringConstructor;
41
+ };
42
+ minChars: {
43
+ type: NumberConstructor;
44
+ };
45
+ filter: {
46
+ type: number;
47
+ };
48
+ size: {
49
+ type: NumberConstructor;
50
+ };
51
+ _options: {
52
+ type: ArrayConstructor;
53
+ attribute: boolean;
54
+ };
55
+ _forceOpen: {
56
+ type: BooleanConstructor;
57
+ attribute: boolean;
58
+ };
59
+ };
60
+ static get styles(): import("lit").CSSResult[];
61
+ _options: any[];
62
+ _candidateIndex: number;
63
+ minChars: number;
64
+ value: string;
65
+ filter: boolean;
66
+ size: number;
67
+ _handleOpened: ({ detail }: {
68
+ detail: any;
69
+ }) => void;
70
+ set options(arg: any[]);
71
+ get options(): any[];
72
+ reset(): void;
73
+ _getFilteredOptions(): any[];
74
+ _onInput(event: any): void;
75
+ _cancellableTimeout: NodeJS.Timeout | undefined;
76
+ _onSelect(value: any, option: any): void;
77
+ _onMouseOver(): void;
78
+ _shouldSelect: boolean | undefined;
79
+ _onMouseLeave(): void;
80
+ _renderOption(option: any): any;
81
+ _renderStyle(): "" | HTMLDivElement;
82
+ _hasNoOptionSlot(): boolean;
83
+ _clearHover(): void;
84
+ _updateHover(): void;
85
+ _onKeydown(e: any): void;
86
+ _open(): void;
87
+ _forceOpen: boolean | undefined;
88
+ _close(): void;
89
+ _onFocus(): void;
90
+ _onBlur(): void;
91
+ _getInput(): ChildNode | null;
92
+ _onClear(event: any): void;
93
+ _handlers: {
94
+ input: (event: any) => void;
95
+ focus: () => void;
96
+ blur: () => void;
97
+ keydown: (e: any) => void;
98
+ clear: (event: any) => void;
99
+ } | undefined;
100
+ _onOpened({ detail }: {
101
+ detail: any;
102
+ }): void;
103
+ }
104
+ import { LitElement } from "lit-element/lit-element";
@@ -0,0 +1,109 @@
1
+ /**
2
+ * A button
3
+ *
4
+ * ## Details
5
+ *
6
+ * * attributes `primary` define the mode of the button and are exclusive.
7
+ * * You can only set one mode at a time.
8
+ * * When you don't use any of these values, the mode defaults to `default`.
9
+ * * has @theme facet
10
+ *
11
+ * @fires gv-button:click - Click event from inner button element
12
+ *
13
+ * @slot - The content of the button (text or HTML)
14
+ *
15
+ * @attr {Enum{button|submit}} type - the type of the button
16
+ * @attr {Boolean} primary - set button UI mode to primary
17
+ * @attr {Boolean} danger - set button UI mode to danger
18
+ * @attr {Boolean} disabled - same as native button element `disabled` attribute
19
+ * @attr {Boolean} outlined - set button UI as outlined (white background instead of filled color)
20
+ * @attr {Boolean} link - set button UI mode to link
21
+ * @attr {String} href - If is defined gv-button will be rendered as a <a> with `href`
22
+ * @attr {Boolean} skeleton - enable skeleton screen UI pattern (loading hint)
23
+ * @attr {String} icon - display an icon on the left side of the button
24
+ * @attr {String} icon-right - display an icon on the right side of the button
25
+ * @attr {String} title - title of button
26
+ * @attr {Boolean} loading - true to display a loading icon
27
+ * @attr {String} provider - Provider name (github, oidc, graviteeio_am, google)
28
+ * @attr {Boolean} small - for a small input
29
+ * @attr {Number} tabindex - tabindex of button
30
+ *
31
+ * @cssprop {Color} [--gv-button--bgc=var(--gv-theme-color-dark, #28444f)] - Background color
32
+ * @cssprop {Color} [--gv-button--c=var(--gv-theme-font-color-light, #ffffff)] - Color
33
+ * @cssprop {Color} [--gv-button-primary--c=var(--gv-theme-font-color-light, #ffffff)] - Primary color
34
+ * @cssprop {Color} [--gv-button-primary--bgc=var(--gv-theme-color, #5a7684)] - Primary background color
35
+ * @cssprop {Color} [--gv-button-danger--c=var(--gv-theme-font-color-light, #ffffff)] - Danger color
36
+ * @cssprop {Color} [--gv-button-danger--bgc=var(--gv-theme-color-danger, #ff5722)] - Danger background color
37
+ * @cssprop {Color} [--gv-button-oidc--bgc=#000000] - OIDC Social Provider button background color
38
+ * @cssprop {Color} [--gv-button-graviteeio_am--bgc=#86c3d0] - Gravitee.io AM Social Provider button background color
39
+ * @cssprop {Length} [--gv-button--p=7px 14px] - Padding
40
+ * @cssprop {Length} [--gv-button--fz=var(--gv-theme-font-size-m, 14px)] - Font size
41
+ * @cssprop {Length} [--gv-button--bdrs=0.15rem] - Border radius
42
+ */
43
+ export class GvButton extends LitElement {
44
+ static get properties(): {
45
+ type: {
46
+ type: StringConstructor;
47
+ };
48
+ danger: {
49
+ type: BooleanConstructor;
50
+ };
51
+ disabled: {
52
+ type: BooleanConstructor;
53
+ };
54
+ primary: {
55
+ type: BooleanConstructor;
56
+ };
57
+ outlined: {
58
+ type: BooleanConstructor;
59
+ };
60
+ link: {
61
+ type: BooleanConstructor;
62
+ };
63
+ href: {
64
+ type: StringConstructor;
65
+ };
66
+ skeleton: {
67
+ type: BooleanConstructor;
68
+ };
69
+ icon: {
70
+ type: StringConstructor;
71
+ };
72
+ iconRight: {
73
+ type: StringConstructor;
74
+ attribute: string;
75
+ };
76
+ loading: {
77
+ type: BooleanConstructor;
78
+ };
79
+ title: {
80
+ type: StringConstructor;
81
+ reflect: boolean;
82
+ };
83
+ provider: {
84
+ type: StringConstructor;
85
+ };
86
+ small: {
87
+ type: BooleanConstructor;
88
+ };
89
+ tabindex: {
90
+ type: NumberConstructor;
91
+ reflect: boolean;
92
+ };
93
+ _hasContent: {
94
+ type: BooleanConstructor;
95
+ attribute: boolean;
96
+ };
97
+ };
98
+ static get styles(): import("lit").CSSResult[];
99
+ tabindex: number;
100
+ type: string;
101
+ _onKeyDown(e: any): void;
102
+ _onClick(e: any): void;
103
+ icon: string | undefined;
104
+ _getIconRight(): "" | import("lit-html").TemplateResult<1>;
105
+ _hasIconLeft(): any;
106
+ _getIconLeft(): "" | import("lit-html").TemplateResult<1>;
107
+ _hasContent: boolean | undefined;
108
+ }
109
+ import { LitElement } from "lit-element/lit-element";
@@ -0,0 +1,114 @@
1
+ declare const GvCheckbox_base: {
2
+ new (): {
3
+ [x: string]: any;
4
+ _id: string;
5
+ valid: boolean;
6
+ invalid: boolean;
7
+ updateState(value: any): void;
8
+ setValidity(isInvalid?: boolean, violation?: string): void;
9
+ firstUpdated(): void;
10
+ updated(changedProperties: any): void;
11
+ getInputElement(): any;
12
+ readonly offsetHeight: any;
13
+ renderLabel(): "" | import("lit-html").TemplateResult<1>;
14
+ };
15
+ [x: string]: any;
16
+ readonly properties: {
17
+ disabled: {
18
+ type: BooleanConstructor;
19
+ reflect: boolean;
20
+ };
21
+ required: {
22
+ type: BooleanConstructor;
23
+ reflect: boolean;
24
+ };
25
+ readonly: {
26
+ type: BooleanConstructor;
27
+ reflect: boolean;
28
+ };
29
+ skeleton: {
30
+ type: BooleanConstructor;
31
+ };
32
+ value: {
33
+ type: StringConstructor;
34
+ reflect: boolean;
35
+ };
36
+ label: {
37
+ type: StringConstructor;
38
+ };
39
+ title: {
40
+ type: StringConstructor;
41
+ };
42
+ name: {
43
+ type: StringConstructor;
44
+ };
45
+ placeholder: {
46
+ type: StringConstructor;
47
+ };
48
+ description: {
49
+ type: StringConstructor;
50
+ };
51
+ autofocus: {
52
+ type: BooleanConstructor;
53
+ };
54
+ invalid: {
55
+ type: BooleanConstructor;
56
+ reflect: boolean;
57
+ };
58
+ valid: {
59
+ type: BooleanConstructor;
60
+ reflect: boolean;
61
+ };
62
+ };
63
+ readonly styles: import("lit").CSSResult[];
64
+ };
65
+ /**
66
+ * A wrapper of a <checkbox> component.
67
+ *
68
+ * ## Details
69
+ * * has @theme facet
70
+ *
71
+ * @fires gv-checkbox:input - mirrors native input events with the `value` on `detail`
72
+ * @fires input - native input event
73
+ * @fires change - native change event
74
+ *
75
+ * @attr {Boolean} disabled - same as native checkbox element `disabled` attribute
76
+ * @attr {Boolean} skeleton - enable skeleton screen UI pattern (loading hint)
77
+ * @attr {String} value - The string to use as the value of the checkbox when submitting the form, if the checkbox is currently toggled on
78
+ * @attr {Boolean} checked - true if the checkbox is checked, false otherwise
79
+ * @attr {String} label - label of the checkbox
80
+ * @attr {String} title - title of the checkbox
81
+ *
82
+ * @cssprop {Color} [--gv-checkbox--bgc=var(--gv-theme-color, #5a7684)] - Checked background color
83
+ */
84
+ export class GvCheckbox extends GvCheckbox_base {
85
+ static get properties(): {
86
+ disabled: {
87
+ type: BooleanConstructor;
88
+ };
89
+ skeleton: {
90
+ type: BooleanConstructor;
91
+ };
92
+ value: {
93
+ type: StringConstructor;
94
+ reflect: boolean;
95
+ };
96
+ checked: {
97
+ type: BooleanConstructor;
98
+ reflect: boolean;
99
+ };
100
+ label: {
101
+ type: StringConstructor;
102
+ };
103
+ title: {
104
+ type: StringConstructor;
105
+ };
106
+ };
107
+ _type: string;
108
+ checked: boolean;
109
+ value: string;
110
+ _renderLabel(): "" | import("lit-html").TemplateResult<1>;
111
+ _onInput(): void;
112
+ render(): import("lit-html").TemplateResult<1>;
113
+ }
114
+ export {};
@@ -0,0 +1,190 @@
1
+ /**
2
+ * Date Picker Calendar
3
+ *
4
+ * ## Details
5
+ * * has @theme facet
6
+ *
7
+ * @fires gv-date-picker-cell:select - Custom event when user select cell
8
+ * @fires gv-date-picker-cell:hover - Custom event when user hover cell
9
+ *
10
+ * @attr {Number} dateFrom - unix date form
11
+ * @attr {Number} dateTo - unix date to
12
+ * @attr {Array} disabledDates - array of disabled date
13
+ * @attr {Number} hoveredDate - unix hovered date
14
+ * @attr {Number} min - unix min date
15
+ * @attr {Number} max - unix max date
16
+ * @attr {Object} locale - date-fns locale object
17
+ *
18
+ * @cssprop {Color} [--gv-date-picker-hover--bgc=var(--gv-theme-color-light, #86c3d0)] - Hover background color
19
+ * @cssprop {Color} [--gv-date-picker-hover--c=var(--gv-theme-font-color-dark, #262626)] - Hover color
20
+ * @cssprop {Color} [--gv-date-picker-selected--bgc=var(--gv-theme-color, #5a7684)] - Selected background color
21
+ * @cssprop {Color} [--gv-date-picker-selected--c=var(--gv-theme-font-color-light, #ffffff)] - Selected color
22
+ */
23
+ export class GvDatePickerCalendar extends LitElement {
24
+ static get properties(): {
25
+ dateFrom: {
26
+ type: NumberConstructor;
27
+ };
28
+ dateTo: {
29
+ type: NumberConstructor;
30
+ };
31
+ disabledDates: {
32
+ type: ArrayConstructor;
33
+ };
34
+ hoveredDate: {
35
+ type: NumberConstructor;
36
+ };
37
+ locale: {
38
+ type: ObjectConstructor;
39
+ };
40
+ max: {
41
+ type: NumberConstructor;
42
+ };
43
+ min: {
44
+ type: NumberConstructor;
45
+ };
46
+ month: {
47
+ type: StringConstructor;
48
+ };
49
+ monthMode: {
50
+ type: BooleanConstructor;
51
+ };
52
+ next: {
53
+ type: BooleanConstructor;
54
+ };
55
+ prev: {
56
+ type: BooleanConstructor;
57
+ };
58
+ range: {
59
+ type: BooleanConstructor;
60
+ };
61
+ time: {
62
+ type: BooleanConstructor;
63
+ };
64
+ small: {
65
+ type: BooleanConstructor;
66
+ reflect: boolean;
67
+ };
68
+ strict: {
69
+ type: BooleanConstructor;
70
+ };
71
+ year: {
72
+ type: StringConstructor;
73
+ };
74
+ yearMode: {
75
+ type: BooleanConstructor;
76
+ };
77
+ _dayNamesOfWeek: {
78
+ type: ArrayConstructor;
79
+ attribute: boolean;
80
+ };
81
+ _dimensions: {
82
+ type: ArrayConstructor;
83
+ attribute: boolean;
84
+ };
85
+ _hasGoToday: {
86
+ type: BooleanConstructor;
87
+ attribute: boolean;
88
+ };
89
+ _hour: {
90
+ type: NumberConstructor;
91
+ attribute: boolean;
92
+ };
93
+ _minute: {
94
+ type: NumberConstructor;
95
+ attribute: boolean;
96
+ };
97
+ _second: {
98
+ type: NumberConstructor;
99
+ attribute: boolean;
100
+ };
101
+ _monthsList: {
102
+ type: ArrayConstructor;
103
+ attribute: boolean;
104
+ };
105
+ _locale: {
106
+ type: ObjectConstructor;
107
+ attribute: boolean;
108
+ };
109
+ _from: {
110
+ type: NumberConstructor;
111
+ attribute: boolean;
112
+ };
113
+ _to: {
114
+ type: NumberConstructor;
115
+ attribute: boolean;
116
+ };
117
+ };
118
+ static get styles(): import("lit").CSSResult[];
119
+ _dayNamesOfWeek: any[];
120
+ _monthsList: string[];
121
+ range: boolean;
122
+ currentDate: number;
123
+ _hasGoToday: boolean;
124
+ _hours: string[];
125
+ _minutes: string[];
126
+ _seconds: string[];
127
+ set dateFrom(arg: any);
128
+ _from: any;
129
+ _hour: any;
130
+ _minute: any;
131
+ _second: any;
132
+ set dateTo(arg: any);
133
+ _to: any;
134
+ computeArrayOfTime(size: any): string[];
135
+ _renderPreviousNav(): "" | import("lit-html").TemplateResult<1>;
136
+ _renderCurrentNav(): import("lit-html").TemplateResult<1>;
137
+ _renderNextNav(): import("lit-html").TemplateResult<1> | undefined;
138
+ _renderDays(): import("lit-html").TemplateResult<1>;
139
+ isStrictTime(): boolean;
140
+ isMinutesDisabled(value: any): boolean;
141
+ isSecondsDisabled(value: any): boolean;
142
+ isHoursDisabled(value: any): boolean;
143
+ _updateTime(): void;
144
+ getTime(): string;
145
+ isCurrentDate(data: any): boolean;
146
+ _updateDays(): void;
147
+ yearAndMonthChanged(year: any, month: any): void;
148
+ _dimensions: null[][] | {
149
+ hover: boolean;
150
+ date: number;
151
+ title: string;
152
+ }[][] | (number | {
153
+ hover: boolean;
154
+ date: number;
155
+ title: number;
156
+ })[][] | undefined;
157
+ getYearInterval(year?: any): {
158
+ start: number;
159
+ end: number;
160
+ };
161
+ computeName(month: any, year: any, _format?: string): string;
162
+ computeCurrentYearName(): any;
163
+ _onSelectHour(value: any): void;
164
+ _onSelectMinute(value: any): void;
165
+ _onSelectSecond(value: any): void;
166
+ _onSelectMonth(): void;
167
+ _dateFrom: any;
168
+ yearMode: any;
169
+ monthMode: any;
170
+ _onSelectYear(): void;
171
+ get datetimeSelected(): number;
172
+ _onDateTimeSelected(): void;
173
+ value: number | undefined;
174
+ _onNow(): void;
175
+ month: string | undefined;
176
+ year: any;
177
+ get disableValidation(): boolean;
178
+ _onSelect({ detail }: {
179
+ detail: any;
180
+ }): void;
181
+ hoveredDate: any;
182
+ _onHover(event: any): void;
183
+ _onNextMonth(): void;
184
+ _onPrevMonth(): void;
185
+ _onNextYear(): void;
186
+ _onPrevYear(): void;
187
+ goToday(): void;
188
+ hasGoToday(): boolean;
189
+ }
190
+ import { LitElement } from "lit-element/lit-element";
@@ -0,0 +1,80 @@
1
+ /**
2
+ * Date Picker Cell
3
+ *
4
+ * ## Details
5
+ * * has @theme facet
6
+ *
7
+ * @fires gv-date-picker-cell:select - Custom event when user select cell
8
+ * @fires gv-date-picker-cell:hover - Custom event when user hover cell
9
+ *
10
+ * @attr {Object.<{date:Number,title:String}>} data - data to display
11
+ * @attr {Boolean} selected - if data is selected
12
+ * @attr {Boolean} hovered - if data is hovered
13
+ * @attr {Boolean} disabled - if data is disabled
14
+ * @attr {Boolean} isCurrent - if data is current date
15
+ * @attr {Number} dateFrom - unix date form
16
+ * @attr {Number} dateTo - unix date to
17
+ * @attr {Number} hoveredDate - unix hovered date
18
+ * @attr {Number} min - unix min date
19
+ * @attr {Number} max - unix max date
20
+ * @attr {Array} disabledDates - array of disabled date
21
+ *
22
+ * @cssprop {Color} [--gv-date-picker-hover--bgc=var(--gv-theme-color-light, #86c3d0)] - Hover background color
23
+ * @cssprop {Color} [--gv-date-picker-hover--c=var(--gv-theme-font-color-dark, #262626)] - Hover color
24
+ * @cssprop {Color} [--gv-date-picker-selected--bgc=var(--gv-theme-color, #5a7684)] - Selected background color
25
+ * @cssprop {Color} [--gv-date-picker-selected--c=var(--gv-theme-font-color-light, #ffffff)] - Selected color
26
+ */
27
+ export class GvDatePickerCell extends LitElement {
28
+ static get properties(): {
29
+ data: {
30
+ type: ObjectConstructor;
31
+ };
32
+ selected: {
33
+ type: BooleanConstructor;
34
+ };
35
+ hovered: {
36
+ type: BooleanConstructor;
37
+ };
38
+ dateTo: {
39
+ type: NumberConstructor;
40
+ };
41
+ dateFrom: {
42
+ type: NumberConstructor;
43
+ };
44
+ month: {
45
+ type: StringConstructor;
46
+ };
47
+ hoveredDate: {
48
+ type: NumberConstructor;
49
+ };
50
+ min: {
51
+ type: NumberConstructor;
52
+ };
53
+ max: {
54
+ type: NumberConstructor;
55
+ };
56
+ disabled: {
57
+ type: BooleanConstructor;
58
+ };
59
+ isCurrent: {
60
+ type: BooleanConstructor;
61
+ };
62
+ time: {
63
+ type: BooleanConstructor;
64
+ };
65
+ disabledDate: {
66
+ type: ArrayConstructor;
67
+ };
68
+ };
69
+ static get styles(): import("lit").CSSResult[];
70
+ selected: boolean;
71
+ hovered: boolean;
72
+ isCurrent: boolean;
73
+ disabledDates: any[];
74
+ isSelected(parsedDateFrom: any, parsedDateTo: any, data: any): any;
75
+ dateChanged(dateFrom: any, dateTo: any, hoveredDate: any, data: any): void;
76
+ _onClick(): void;
77
+ _onMouseOver(): void;
78
+ isDisabled(): boolean;
79
+ }
80
+ import { LitElement } from "lit-element/lit-element";