@statistikzh/leu 0.22.0 → 0.22.1

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 (190) hide show
  1. package/.github/workflows/release-please.yml +1 -2
  2. package/.nvmrc +1 -1
  3. package/.release-please-manifest.json +1 -1
  4. package/CHANGELOG.md +9 -0
  5. package/README.md +15 -10
  6. package/dist/Accordion.js +1 -1
  7. package/dist/Button.d.ts +1 -1
  8. package/dist/Button.js +1 -1
  9. package/dist/ButtonGroup.js +1 -1
  10. package/dist/ChartWrapper.js +1 -1
  11. package/dist/Checkbox.d.ts +1 -1
  12. package/dist/Checkbox.js +1 -1
  13. package/dist/CheckboxGroup.js +1 -1
  14. package/dist/Chip.d.ts +1 -7
  15. package/dist/Chip.js +7 -5
  16. package/dist/ChipGroup.d.ts +17 -36
  17. package/dist/ChipGroup.js +35 -33
  18. package/dist/ChipLink.d.ts +5 -21
  19. package/dist/ChipLink.js +14 -15
  20. package/dist/ChipRemovable.d.ts +4 -15
  21. package/dist/ChipRemovable.js +7 -9
  22. package/dist/ChipSelectable.d.ts +14 -37
  23. package/dist/ChipSelectable.js +24 -28
  24. package/dist/Dialog.d.ts +7 -18
  25. package/dist/Dialog.js +15 -18
  26. package/dist/Dropdown.d.ts +16 -28
  27. package/dist/Dropdown.js +22 -23
  28. package/dist/FileInput.d.ts +2 -1
  29. package/dist/FileInput.js +19 -5
  30. package/dist/Icon.d-itcQ94ym.d.ts +151 -0
  31. package/dist/Icon.d.ts +4 -156
  32. package/dist/Icon.js +1 -4
  33. package/dist/Input.d.ts +73 -141
  34. package/dist/Input.js +91 -88
  35. package/dist/{LeuElement-BooZrClI.js → LeuElement-DfsEye-A.js} +1 -1
  36. package/dist/Menu.d.ts +2 -8
  37. package/dist/Menu.js +7 -9
  38. package/dist/MenuItem.d.ts +31 -59
  39. package/dist/MenuItem.js +30 -33
  40. package/dist/Message.d.ts +1 -1
  41. package/dist/Message.js +1 -1
  42. package/dist/Pagination.d.ts +1 -1
  43. package/dist/Pagination.js +1 -1
  44. package/dist/Placeholder.js +1 -1
  45. package/dist/Popup.js +1 -1
  46. package/dist/ProgressBar.js +1 -1
  47. package/dist/Radio.js +1 -1
  48. package/dist/RadioGroup.js +1 -1
  49. package/dist/Range.d.ts +22 -65
  50. package/dist/Range.js +36 -37
  51. package/dist/ScrollTop.d.ts +5 -7
  52. package/dist/ScrollTop.js +10 -15
  53. package/dist/Select.d.ts +2 -1
  54. package/dist/Select.js +1 -1
  55. package/dist/Spinner.js +1 -1
  56. package/dist/Table.d.ts +1 -1
  57. package/dist/Table.js +1 -1
  58. package/dist/Tag.js +1 -1
  59. package/dist/VisuallyHidden.js +1 -1
  60. package/dist/components/chart-wrapper/leu-chart-wrapper.d.ts +5 -0
  61. package/dist/components/chart-wrapper/leu-chart-wrapper.d.ts.map +1 -1
  62. package/dist/components/chip/Chip.d.ts +1 -7
  63. package/dist/components/chip/Chip.d.ts.map +1 -1
  64. package/dist/components/chip/ChipGroup.d.ts +15 -35
  65. package/dist/components/chip/ChipGroup.d.ts.map +1 -1
  66. package/dist/components/chip/ChipLink.d.ts +4 -20
  67. package/dist/components/chip/ChipLink.d.ts.map +1 -1
  68. package/dist/components/chip/ChipRemovable.d.ts +3 -14
  69. package/dist/components/chip/ChipRemovable.d.ts.map +1 -1
  70. package/dist/components/chip/ChipSelectable.d.ts +13 -36
  71. package/dist/components/chip/ChipSelectable.d.ts.map +1 -1
  72. package/dist/components/chip/stories/chip-group.stories.d.ts +1 -1
  73. package/dist/components/chip/stories/chip-group.stories.d.ts.map +1 -1
  74. package/dist/components/chip/stories/chip-link.stories.d.ts.map +1 -1
  75. package/dist/components/chip/stories/chip-selectable.stories.d.ts.map +1 -1
  76. package/dist/components/dialog/Dialog.d.ts +5 -17
  77. package/dist/components/dialog/Dialog.d.ts.map +1 -1
  78. package/dist/components/dropdown/Dropdown.d.ts +14 -27
  79. package/dist/components/dropdown/Dropdown.d.ts.map +1 -1
  80. package/dist/components/file-input/FileInput.d.ts +1 -0
  81. package/dist/components/file-input/FileInput.d.ts.map +1 -1
  82. package/dist/components/file-input/leu-file-input.d.ts +5 -0
  83. package/dist/components/file-input/leu-file-input.d.ts.map +1 -1
  84. package/dist/components/file-input/stories/file-input.stories.d.ts +4 -0
  85. package/dist/components/file-input/stories/file-input.stories.d.ts.map +1 -1
  86. package/dist/components/icon/Icon.d.ts +0 -6
  87. package/dist/components/icon/Icon.d.ts.map +1 -1
  88. package/dist/components/input/Input.d.ts +73 -140
  89. package/dist/components/input/Input.d.ts.map +1 -1
  90. package/dist/components/menu/Menu.d.ts +1 -7
  91. package/dist/components/menu/Menu.d.ts.map +1 -1
  92. package/dist/components/menu/MenuItem.d.ts +30 -57
  93. package/dist/components/menu/MenuItem.d.ts.map +1 -1
  94. package/dist/components/message/leu-message.d.ts +5 -0
  95. package/dist/components/message/leu-message.d.ts.map +1 -1
  96. package/dist/components/placeholder/leu-placeholder.d.ts +5 -0
  97. package/dist/components/placeholder/leu-placeholder.d.ts.map +1 -1
  98. package/dist/components/progress-bar/leu-progress-bar.d.ts +5 -0
  99. package/dist/components/progress-bar/leu-progress-bar.d.ts.map +1 -1
  100. package/dist/components/range/Range.d.ts +22 -65
  101. package/dist/components/range/Range.d.ts.map +1 -1
  102. package/dist/components/scroll-top/ScrollTop.d.ts +4 -6
  103. package/dist/components/scroll-top/ScrollTop.d.ts.map +1 -1
  104. package/dist/components/tag/leu-tag.d.ts +5 -0
  105. package/dist/components/tag/leu-tag.d.ts.map +1 -1
  106. package/dist/index.d.ts +11 -0
  107. package/dist/index.d.ts.map +1 -1
  108. package/dist/index.js +13 -4
  109. package/dist/leu-accordion.js +1 -1
  110. package/dist/leu-button-group.js +1 -1
  111. package/dist/leu-button.d.ts +1 -1
  112. package/dist/leu-button.js +1 -1
  113. package/dist/leu-chart-wrapper.d.ts +10 -1
  114. package/dist/leu-chart-wrapper.js +1 -1
  115. package/dist/leu-checkbox-group.js +1 -1
  116. package/dist/leu-checkbox.d.ts +1 -1
  117. package/dist/leu-checkbox.js +1 -1
  118. package/dist/leu-chip-group.d.ts +2 -0
  119. package/dist/leu-chip-group.js +5 -1
  120. package/dist/leu-chip-link.js +3 -1
  121. package/dist/leu-chip-removable.d.ts +1 -1
  122. package/dist/leu-chip-removable.js +3 -3
  123. package/dist/leu-chip-selectable.js +3 -1
  124. package/dist/leu-dialog.d.ts +2 -1
  125. package/dist/leu-dialog.js +3 -3
  126. package/dist/leu-dropdown.d.ts +2 -1
  127. package/dist/leu-dropdown.js +3 -3
  128. package/dist/leu-file-input.d.ts +11 -2
  129. package/dist/leu-file-input.js +11 -4
  130. package/dist/leu-icon.d.ts +1 -1
  131. package/dist/leu-icon.js +1 -1
  132. package/dist/leu-input.d.ts +2 -1
  133. package/dist/leu-input.js +3 -3
  134. package/dist/leu-menu-item.d.ts +2 -2
  135. package/dist/leu-menu-item.js +3 -3
  136. package/dist/leu-menu.d.ts +1 -1
  137. package/dist/leu-menu.js +3 -3
  138. package/dist/leu-message.d.ts +11 -2
  139. package/dist/leu-message.js +1 -1
  140. package/dist/leu-pagination.d.ts +1 -1
  141. package/dist/leu-pagination.js +1 -1
  142. package/dist/leu-placeholder.d.ts +10 -1
  143. package/dist/leu-placeholder.js +1 -1
  144. package/dist/leu-popup.js +1 -1
  145. package/dist/leu-progress-bar.d.ts +10 -1
  146. package/dist/leu-progress-bar.js +1 -1
  147. package/dist/leu-radio-group.js +1 -1
  148. package/dist/leu-radio.js +1 -1
  149. package/dist/leu-range.js +3 -1
  150. package/dist/leu-scroll-top.d.ts +1 -1
  151. package/dist/leu-scroll-top.js +3 -3
  152. package/dist/leu-select.d.ts +2 -1
  153. package/dist/leu-select.js +1 -1
  154. package/dist/leu-spinner.js +1 -1
  155. package/dist/leu-table.d.ts +1 -1
  156. package/dist/leu-table.js +1 -1
  157. package/dist/leu-tag.d.ts +10 -1
  158. package/dist/leu-tag.js +1 -1
  159. package/dist/leu-visually-hidden.js +1 -1
  160. package/dist/vscode.html-custom-data.json +126 -123
  161. package/dist/vue/index.d.ts +129 -146
  162. package/dist/web-types.json +340 -345
  163. package/package.json +1 -1
  164. package/scripts/generate-component/templates/[namespace]-[name].ts +6 -0
  165. package/src/components/chart-wrapper/leu-chart-wrapper.ts +6 -0
  166. package/src/components/chip/Chip.ts +3 -9
  167. package/src/components/chip/ChipGroup.ts +26 -39
  168. package/src/components/chip/ChipLink.ts +7 -18
  169. package/src/components/chip/ChipRemovable.ts +4 -11
  170. package/src/components/chip/ChipSelectable.ts +21 -35
  171. package/src/components/chip/stories/chip-group.stories.ts +4 -7
  172. package/src/components/chip/stories/chip-link.stories.ts +2 -4
  173. package/src/components/chip/stories/chip-selectable.stories.ts +4 -6
  174. package/src/components/chip/test/chip-group.test.ts +34 -31
  175. package/src/components/dialog/Dialog.ts +9 -22
  176. package/src/components/dropdown/Dropdown.ts +19 -26
  177. package/src/components/file-input/FileInput.ts +12 -1
  178. package/src/components/file-input/leu-file-input.ts +6 -0
  179. package/src/components/file-input/stories/file-input.stories.ts +7 -0
  180. package/src/components/icon/Icon.ts +0 -4
  181. package/src/components/input/Input.ts +108 -105
  182. package/src/components/menu/Menu.ts +3 -12
  183. package/src/components/menu/MenuItem.ts +37 -41
  184. package/src/components/message/leu-message.ts +6 -0
  185. package/src/components/placeholder/leu-placeholder.ts +6 -0
  186. package/src/components/progress-bar/leu-progress-bar.ts +6 -0
  187. package/src/components/range/Range.ts +51 -59
  188. package/src/components/scroll-top/ScrollTop.ts +8 -15
  189. package/src/components/tag/leu-tag.ts +6 -0
  190. package/src/index.ts +11 -0
package/dist/Icon.d.ts CHANGED
@@ -1,156 +1,4 @@
1
- import * as lit_html from 'lit-html';
2
- import * as lit from 'lit';
3
- import { L as LeuElement } from './LeuElement.d-BevHqLUu.js';
4
-
5
- type IconPathName = keyof typeof paths;
6
- declare const paths: {
7
- addNew: string;
8
- alert: string;
9
- angleDropDown: string;
10
- angleDropUp: string;
11
- angleLeft: string;
12
- angleRight: string;
13
- arrowDown: string;
14
- arrowLeft: string;
15
- arrowRight: string;
16
- arrowUp: string;
17
- backward: string;
18
- block: string;
19
- calendar: string;
20
- camera: string;
21
- caution: string;
22
- cc: string;
23
- chart: string;
24
- chatMessage: string;
25
- check: string;
26
- clear: string;
27
- close: string;
28
- comment: string;
29
- conference: string;
30
- confirm: string;
31
- confirmPlain: string;
32
- conversation: string;
33
- copy: string;
34
- delete: string;
35
- download: string;
36
- earth: string;
37
- edit: string;
38
- email: string;
39
- file: string;
40
- fileCsv: string;
41
- fileOutline: string;
42
- filePdf: string;
43
- fileXml: string;
44
- files: string;
45
- filter: string;
46
- floppy: string;
47
- folder: string;
48
- forward: string;
49
- getInformation: string;
50
- hide: string;
51
- home: string;
52
- image: string;
53
- income: string;
54
- launch: string;
55
- levelUp: string;
56
- like: string;
57
- link: string;
58
- list: string;
59
- location: string;
60
- lock: string;
61
- login: string;
62
- logout: string;
63
- love: string;
64
- emailOpen: string;
65
- map: string;
66
- mapLocateMe: string;
67
- mapNavigation: string;
68
- mapPin: string;
69
- menu: string;
70
- menuOverflow: string;
71
- minus: string;
72
- money: string;
73
- moneyIncome: string;
74
- organisation: string;
75
- overflow: string;
76
- paperplane: string;
77
- paragraph: string;
78
- passport: string;
79
- phoneCall: string;
80
- piechart: string;
81
- pill: string;
82
- pin: string;
83
- plus: string;
84
- print: string;
85
- refresh: string;
86
- remove: string;
87
- repost: string;
88
- resizeText: string;
89
- ruler: string;
90
- search: string;
91
- securities: string;
92
- setting: string;
93
- share: string;
94
- show: string;
95
- smileyDevastated: string;
96
- smileyIndifferent: string;
97
- smileySad: string;
98
- smileySmile: string;
99
- smileyThrilled: string;
100
- swissId: string;
101
- time: string;
102
- upload: string;
103
- user: string;
104
- userMultiple: string;
105
- vote: string;
106
- zoom: string;
107
- zoomOut: string;
108
- fastForward: string;
109
- fastRewind: string;
110
- fullScreen: string;
111
- next: string;
112
- pause: string;
113
- play: string;
114
- playButton: string;
115
- previous: string;
116
- skipNext: string;
117
- skipPrevious: string;
118
- stop: string;
119
- facebook: string;
120
- google: string;
121
- instagram: string;
122
- kununu: string;
123
- linkedin: string;
124
- snapchat: string;
125
- tiktok: string;
126
- twitter: string;
127
- xing: string;
128
- youtube: string;
129
- youtubeLogo: string;
130
- };
131
-
132
- /**
133
- * A component to render all defined zhWeb icons.
134
- * The `fill` of the icon is set to `currentColor` and
135
- * can be overriden by setting the css `color` property.
136
- * If the icon name is not found, a placeholder will be displayed.
137
- *
138
- * @tagname leu-icon
139
- * @cssprop --leu-icon-size - The size of the icon.
140
- */
141
- declare class LeuIcon extends LeuElement {
142
- static styles: lit.CSSResultGroup[];
143
- static properties: {
144
- name: {
145
- type: StringConstructor;
146
- reflect: boolean;
147
- };
148
- };
149
- /**
150
- * The name of the icon to display.
151
- */
152
- name: IconPathName | "";
153
- render(): lit_html.TemplateResult<1>;
154
- }
155
-
156
- export { LeuIcon };
1
+ import 'lit-html';
2
+ import 'lit';
3
+ import './LeuElement.d-BevHqLUu.js';
4
+ export { L as LeuIcon } from './Icon.d-itcQ94ym.js';
package/dist/Icon.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { css, html, svg } from 'lit';
3
3
  import { property } from 'lit/decorators.js';
4
- import { L as LeuElement } from './LeuElement-BooZrClI.js';
4
+ import { L as LeuElement } from './LeuElement-DfsEye-A.js';
5
5
 
6
6
  var css_248z = css`:host {
7
7
  display: contents;
@@ -182,9 +182,6 @@ class LeuIcon extends LeuElement {
182
182
  }
183
183
  }
184
184
  LeuIcon.styles = [LeuElement.styles, css_248z];
185
- LeuIcon.properties = {
186
- name: { type: String, reflect: true },
187
- };
188
185
  __decorate([
189
186
  property({ type: String, reflect: true })
190
187
  ], LeuIcon.prototype, "name", void 0);
package/dist/Input.d.ts CHANGED
@@ -1,37 +1,18 @@
1
1
  import * as lit_html from 'lit-html';
2
+ import * as lit_html_directives_ref_js from 'lit-html/directives/ref.js';
2
3
  import * as lit from 'lit';
3
4
  import { nothing } from 'lit';
4
5
  import { L as LeuElement } from './LeuElement.d-BevHqLUu.js';
5
- import { LeuIcon } from './Icon.js';
6
+ import { L as LeuIcon, I as IconPathName } from './Icon.d-itcQ94ym.js';
6
7
 
7
8
  declare const SIZES: Readonly<{
8
9
  SMALL: "small";
9
10
  REGULAR: "regular";
10
11
  }>;
12
+ type InputType = "date" | "datetime-local" | "email" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "week";
11
13
  /**
12
14
  * A text input element.
13
15
  *
14
- * @prop {boolean} disabled - Disables the input element.
15
- * @prop {boolean} required - Marks the input element as required.
16
- * @prop {boolean} clearable - Adds a button to clear the input element.
17
- * @prop {string} value - The value of the input element.
18
- * @prop {string} name - The name of the input element.
19
- * @prop {string} label - The label of the input element.
20
- * @prop {string} error - A custom error that is completely independent of the validity state. Useful for displaying server side errors.
21
- * @prop {string} size - The size of the input element.
22
- * @prop {string} icon - The icon that is displayed at the end of the input element.
23
- * @prop {string} prefix - A prefix that relates to the value of the input (e.g. CHF).
24
- * @prop {string} suffix - A suffix that relates to the value of the input (e.g. mm).
25
- * @prop {string} pattern - A regular expression that the value is checked against.
26
- * @prop {string} type - The type of the input element.
27
- * @prop {string} min - The minimum value of the input element.
28
- * @prop {string} max - The maximum value of the input element.
29
- * @prop {string} minlength - The minimum length of the input element.
30
- * @prop {string} maxlength - The maximum length of the input element.
31
- * @prop {object} validationMessages - Custom validation messages. The key is the name of the validity state and the value is the message.
32
- * @prop {boolean} novalidate - Disables the browser's validation.
33
- * @prop {string} step - The step value of the input element.
34
- *
35
16
  * @fires {CustomEvent} input - Dispatched when the value of the input element changes.
36
17
  * @fires {CustomEvent} change - Dispatched when the value of the input element changes and the input element loses focus.
37
18
  *
@@ -53,92 +34,49 @@ declare class LeuInput extends LeuElement {
53
34
  customElements?: CustomElementRegistry;
54
35
  registry?: CustomElementRegistry;
55
36
  };
56
- static properties: {
57
- disabled: {
58
- type: BooleanConstructor;
59
- reflect: boolean;
60
- };
61
- required: {
62
- type: BooleanConstructor;
63
- reflect: boolean;
64
- };
65
- clearable: {
66
- type: BooleanConstructor;
67
- reflect: boolean;
68
- };
69
- value: {
70
- type: StringConstructor;
71
- reflect: boolean;
72
- };
73
- name: {
74
- type: StringConstructor;
75
- reflect: boolean;
76
- };
77
- error: {
78
- type: StringConstructor;
79
- reflect: boolean;
80
- };
81
- label: {
82
- type: StringConstructor;
83
- reflect: boolean;
84
- };
85
- prefix: {
86
- type: StringConstructor;
87
- reflect: boolean;
88
- };
89
- suffix: {
90
- type: StringConstructor;
91
- reflect: boolean;
92
- };
93
- size: {
94
- type: StringConstructor;
95
- reflect: boolean;
96
- };
97
- icon: {
98
- type: StringConstructor;
99
- reflect: boolean;
100
- };
101
- pattern: {
102
- type: StringConstructor;
103
- reflect: boolean;
104
- };
105
- type: {
106
- type: StringConstructor;
107
- reflect: boolean;
108
- };
109
- min: {
110
- type: StringConstructor;
111
- reflect: boolean;
112
- };
113
- max: {
114
- type: StringConstructor;
115
- reflect: boolean;
116
- };
117
- maxlength: {
118
- type: StringConstructor;
119
- reflect: boolean;
120
- };
121
- minlength: {
122
- type: StringConstructor;
123
- reflect: boolean;
124
- };
125
- validationMessages: {
126
- type: ObjectConstructor;
127
- };
128
- novalidate: {
129
- type: BooleanConstructor;
130
- reflect: boolean;
131
- };
132
- step: {
133
- type: StringConstructor;
134
- reflect: boolean;
135
- };
136
- _validity: {
137
- state: boolean;
138
- };
139
- };
37
+ /** Disables the input element. */
38
+ disabled: boolean;
39
+ /** Marks the input element as required */
40
+ required: boolean;
41
+ /** Adds a button to clear the input element */
42
+ clearable: boolean;
43
+ /** The value of the input element. */
44
+ value: string;
45
+ /** The name of the input element. */
46
+ name: string;
47
+ /** A custom error that is completely independent of the validity state. Useful for displaying server side errors. */
48
+ error: string;
49
+ /** The label of the input element */
50
+ label: string;
51
+ /** A prefix that relates to the value of the input (e.g. CHF) */
52
+ prefix: string;
53
+ /** A suffix that relates to the value of the input (e.g. mm). */
54
+ suffix: string;
55
+ /** The size of the input element */
56
+ size: "small" | "regular";
57
+ /** The icon that is displayed at the end of the input element */
58
+ icon: IconPathName;
59
+ /** A regular expression that the value is checked against. */
60
+ pattern: string;
61
+ /** The type of the input element. */
62
+ type: InputType;
63
+ /** The minimum value of the input element. */
64
+ min: number;
65
+ /** The maximum value of the input element. */
66
+ max: number;
67
+ /** The step value of the input element. */
68
+ step: number;
69
+ /** The maximum length of the input element. */
70
+ maxlength: number;
71
+ /** The minimum length of the input element. */
72
+ minlength: number;
73
+ /** Custom validation messages. The key is the name of the validity state and the value is the message. */
74
+ validationMessages: Record<string, string>;
75
+ /** Disables the browser's validation. */
76
+ novalidate: boolean;
77
+ _validity: ValidityState | null;
140
78
  static resolveErrorMessage(message: any, refernceValue: any): any;
141
- constructor();
79
+ protected _inputRef: lit_html_directives_ref_js.Ref<HTMLInputElement>;
142
80
  get valueAsNumber(): number;
143
81
  /**
144
82
  * Method for handling the click event of the wrapper element.
@@ -147,56 +85,47 @@ declare class LeuInput extends LeuElement {
147
85
  * looks like the input element. But the actual input field does not
148
86
  * completely fill the wrapper element. Keyboard events don't need to be
149
87
  * handled because the actual input element is focusable.
150
- * @private
151
- * @param {MouseEvent|PointerEvent} event
152
- * @returns {void}
153
88
  */
154
- handleWrapperClick(event: any): void;
89
+ protected handleWrapperClick(event: MouseEvent | PointerEvent): void;
155
90
  /**
156
91
  * Method for handling the blur event of the input element.
157
92
  * Checks validity of the input element and sets the validity state.
158
- * @private
159
- * @param {FocusEvent & {target: HTMLInputElement}} event
160
- * @returns {void}
161
93
  */
162
- handleBlur(event: any): void;
94
+ protected handleBlur(event: FocusEvent & {
95
+ target: HTMLInputElement;
96
+ }): void;
163
97
  /**
164
98
  * Method for handling the invalid event of the input element.
165
99
  * Sets the validity state.
166
- * @private
167
- * @param {Event} event
168
- * @returns {void}
169
100
  */
170
- handleInvalid(event: any): void;
101
+ protected handleInvalid(event: Event & {
102
+ target: HTMLInputElement;
103
+ }): void;
171
104
  /**
172
105
  * Method for handling the change event of the input element.
173
106
  * Sets the value property and dispatches a change event so that
174
107
  * the event can be handled outside the shadow DOM.
175
- * @private
176
- * @param {Event} event
177
108
  * @fires {CustomEvent} change
178
- * @returns {void}
179
109
  */
180
- handleChange(event: any): void;
110
+ protected handleChange(event: Event & {
111
+ target: HTMLInputElement;
112
+ }): void;
181
113
  /**
182
114
  * Method for handling the input event of the input element.
183
115
  * Sets the value property and dispatches an input event so that
184
116
  * the event can be handled outside the shadow DOM.
185
- * @private
186
- * @param {Event} event
187
- * @returns {void}
188
117
  */
189
- handleInput(event: any): void;
118
+ protected handleInput(event: Event & {
119
+ target: HTMLInputElement;
120
+ }): void;
190
121
  /**
191
122
  * Method for clearing the input element.
192
123
  * Sets the value property to an empty string and dispatches
193
124
  * an input and a change event.
194
- * @private
195
- * @returns {void}
196
125
  * @fires {CustomEvent} input
197
126
  * @fires {CustomEvent} change
198
127
  */
199
- clear(): void;
128
+ protected clear(): void;
200
129
  /**
201
130
  * Merge custom and default validation messages.
202
131
  * A validation message can be a function or a string.
@@ -205,29 +134,32 @@ declare class LeuInput extends LeuElement {
205
134
  * e.g.
206
135
  * `tooLong(this.maxlength)`
207
136
  * This way the framework user can create reasonable validation messages
208
- *
209
- * @returns {Object} validationMessages
210
137
  */
211
- getValidationMessages(): any;
138
+ protected getValidationMessages(): {
139
+ badInput: string;
140
+ patternMismatch: string;
141
+ rangeOverflow: (max: any) => string;
142
+ rangeUnderflow: (min: any) => string;
143
+ stepMismatch: string;
144
+ tooLong: (maxlength: any) => string;
145
+ tooShort: (minlength: any) => string;
146
+ typeMismatch: string;
147
+ valueMissing: string;
148
+ };
212
149
  isInvalid(): boolean;
213
150
  /**
214
151
  * Check input validation
215
- * @returns {boolean} if valid or not
216
152
  */
217
- checkValidity(): any;
153
+ checkValidity(): boolean;
218
154
  /**
219
155
  * Creates an error list with an item for the given validity state.
220
- * @returns {import("lit").TemplateResult | nothing}
221
156
  */
222
- renderErrorMessages(): typeof nothing | lit_html.TemplateResult<1>;
157
+ protected renderErrorMessages(): typeof nothing | lit_html.TemplateResult<1>;
223
158
  /**
224
159
  * Determines the content that is displayed after the input element.
225
160
  * This can be either an icon, a clear button or an error indicator icon.
226
- *
227
- * @private
228
- * @returns {import("lit").TemplateResult | nothing}
229
161
  */
230
- renderAfterContent(): typeof nothing | lit_html.TemplateResult<1>;
162
+ protected renderAfterContent(): typeof nothing | lit_html.TemplateResult<1>;
231
163
  render(): lit_html.TemplateResult<1>;
232
164
  }
233
165