@haiilo/catalyst 5.2.3 → 5.4.0

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 (189) hide show
  1. package/dist/catalyst/catalyst.css +56 -39
  2. package/dist/catalyst/catalyst.esm.js +1 -1
  3. package/dist/catalyst/catalyst.esm.js.map +1 -1
  4. package/dist/catalyst/index.cdn.js +1 -0
  5. package/dist/catalyst/index.esm.js +2 -2
  6. package/dist/catalyst/index.esm.js.map +1 -1
  7. package/dist/catalyst/p-34e0cbba.entry.js +10 -0
  8. package/dist/catalyst/p-34e0cbba.entry.js.map +1 -0
  9. package/dist/catalyst/{p-d1fb9d96.js → p-ce6a1db2.js} +1 -1
  10. package/dist/catalyst/p-ce6a1db2.js.map +1 -0
  11. package/dist/catalyst/p-cf32399c.js +2 -0
  12. package/dist/catalyst/p-cf32399c.js.map +1 -0
  13. package/dist/catalyst/scss/_snippets/_checkbox-hint.scss +20 -0
  14. package/dist/catalyst/scss/_snippets/_form-label.scss +2 -1
  15. package/dist/catalyst/scss/utils/_border.scss +14 -0
  16. package/dist/catalyst/scss/utils/_media.mixins.scss +0 -1
  17. package/dist/catalyst/scss/utils/_typography.mixins.scss +1 -0
  18. package/dist/cjs/{cat-alert_24.cjs.entry.js → cat-alert_27.cjs.entry.js} +3777 -192
  19. package/dist/cjs/cat-alert_27.cjs.entry.js.map +1 -0
  20. package/dist/cjs/{cat-icon-registry-671af264.js → cat-icon-registry-228164a1.js} +43 -2
  21. package/dist/cjs/cat-icon-registry-228164a1.js.map +1 -0
  22. package/dist/cjs/catalyst.cjs.js +3 -3
  23. package/dist/cjs/catalyst.cjs.js.map +1 -1
  24. package/dist/cjs/{index-01312a2e.js → index-4258b31e.js} +8 -1
  25. package/dist/{catalyst/p-d1fb9d96.js.map → cjs/index-4258b31e.js.map} +1 -1
  26. package/dist/cjs/index.cjs.js +2 -2
  27. package/dist/cjs/index.cjs.js.map +1 -1
  28. package/dist/cjs/loader.cjs.js +3 -3
  29. package/dist/cjs/loader.cjs.js.map +1 -1
  30. package/dist/collection/collection-manifest.json +5 -2
  31. package/dist/collection/components/cat-alert/cat-alert.js +5 -5
  32. package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
  33. package/dist/collection/components/cat-button/cat-button.css +27 -9
  34. package/dist/collection/components/cat-button/cat-button.js +27 -25
  35. package/dist/collection/components/cat-button/cat-button.js.map +1 -1
  36. package/dist/collection/components/cat-button-group/cat-button-group.css +15 -0
  37. package/dist/collection/components/cat-button-group/cat-button-group.js +51 -0
  38. package/dist/collection/components/cat-button-group/cat-button-group.js.map +1 -0
  39. package/dist/collection/components/cat-checkbox/cat-checkbox.css +24 -1
  40. package/dist/collection/components/cat-checkbox/cat-checkbox.js +8 -4
  41. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
  42. package/dist/collection/components/cat-datepicker/cat-datepicker.css +381 -0
  43. package/dist/collection/components/cat-datepicker/cat-datepicker.js +873 -0
  44. package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -0
  45. package/dist/collection/components/cat-datepicker/datepicker-type.js +8 -0
  46. package/dist/collection/components/cat-datepicker/datepicker-type.js.map +1 -0
  47. package/dist/collection/components/cat-datepicker/dayjs.config.js +8 -0
  48. package/dist/collection/components/cat-datepicker/dayjs.config.js.map +1 -0
  49. package/dist/collection/components/cat-datepicker/vanillajs-datepicker.config.js +46 -0
  50. package/dist/collection/components/cat-datepicker/vanillajs-datepicker.config.js.map +1 -0
  51. package/dist/collection/components/cat-dropdown/cat-dropdown.css +1 -0
  52. package/dist/collection/components/cat-dropdown/cat-dropdown.js +26 -7
  53. package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
  54. package/dist/collection/components/cat-form-group/cat-form-group.js +29 -1
  55. package/dist/collection/components/cat-form-group/cat-form-group.js.map +1 -1
  56. package/dist/collection/components/cat-icon/cat-icon-registry.js +29 -1
  57. package/dist/collection/components/cat-icon/cat-icon-registry.js.map +1 -1
  58. package/dist/collection/components/cat-input/cat-input.css +392 -15
  59. package/dist/collection/components/cat-input/cat-input.js +8 -4
  60. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  61. package/dist/collection/components/cat-label/cat-label.js +19 -0
  62. package/dist/collection/components/cat-label/cat-label.js.map +1 -1
  63. package/dist/collection/components/cat-notification/cat-notification.js +1 -1
  64. package/dist/collection/components/cat-notification/cat-notification.js.map +1 -1
  65. package/dist/collection/components/cat-pagination/cat-pagination.js +28 -6
  66. package/dist/collection/components/cat-pagination/cat-pagination.js.map +1 -1
  67. package/dist/collection/components/cat-radio/cat-radio.css +24 -1
  68. package/dist/collection/components/cat-radio/cat-radio.js +8 -4
  69. package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
  70. package/dist/collection/components/cat-radio-group/cat-radio-group.js +7 -3
  71. package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
  72. package/dist/collection/components/cat-scrollable/cat-scrollable.css +1 -4
  73. package/dist/collection/components/cat-select/cat-select.css +98 -11
  74. package/dist/collection/components/cat-select/cat-select.js +73 -23
  75. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  76. package/dist/collection/components/cat-skeleton/cat-skeleton.css +1 -1
  77. package/dist/collection/components/cat-textarea/cat-textarea.css +17 -16
  78. package/dist/collection/components/cat-textarea/cat-textarea.js +8 -4
  79. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  80. package/dist/collection/components/cat-timepicker/cat-timepicker.css +5 -0
  81. package/dist/collection/components/cat-timepicker/cat-timepicker.js +668 -0
  82. package/dist/collection/components/cat-timepicker/cat-timepicker.js.map +1 -0
  83. package/dist/collection/components/cat-toggle/cat-toggle.css +24 -1
  84. package/dist/collection/components/cat-toggle/cat-toggle.js +8 -4
  85. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
  86. package/dist/collection/components/cat-tooltip/cat-tooltip.css +1 -8
  87. package/dist/collection/components/cat-tooltip/cat-tooltip.js +22 -18
  88. package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
  89. package/dist/collection/index.cdn.js +1 -0
  90. package/dist/collection/scss/_snippets/_checkbox-hint.scss +20 -0
  91. package/dist/collection/scss/_snippets/_form-label.scss +2 -1
  92. package/dist/collection/scss/utils/_border.scss +14 -0
  93. package/dist/collection/scss/utils/_media.mixins.scss +0 -1
  94. package/dist/collection/scss/utils/_typography.mixins.scss +1 -0
  95. package/dist/components/cat-alert.js +5 -5
  96. package/dist/components/cat-alert.js.map +1 -1
  97. package/dist/components/cat-button-group.d.ts +11 -0
  98. package/dist/components/cat-button-group.js +46 -0
  99. package/dist/components/cat-button-group.js.map +1 -0
  100. package/dist/components/cat-button2.js +12 -10
  101. package/dist/components/cat-button2.js.map +1 -1
  102. package/dist/components/cat-checkbox2.js +2 -2
  103. package/dist/components/cat-checkbox2.js.map +1 -1
  104. package/dist/components/cat-datepicker.d.ts +11 -0
  105. package/dist/components/cat-datepicker.js +3210 -0
  106. package/dist/components/cat-datepicker.js.map +1 -0
  107. package/dist/components/cat-dropdown2.js +640 -43
  108. package/dist/components/cat-dropdown2.js.map +1 -1
  109. package/dist/components/cat-form-group.js +11 -2
  110. package/dist/components/cat-form-group.js.map +1 -1
  111. package/dist/components/cat-icon-registry.js +42 -1
  112. package/dist/components/cat-icon-registry.js.map +1 -1
  113. package/dist/components/cat-input.js +1 -226
  114. package/dist/components/cat-input.js.map +1 -1
  115. package/dist/components/cat-input2.js +230 -0
  116. package/dist/components/cat-input2.js.map +1 -0
  117. package/dist/components/cat-label.js +2 -0
  118. package/dist/components/cat-label.js.map +1 -1
  119. package/dist/components/cat-pagination.js +10 -5
  120. package/dist/components/cat-pagination.js.map +1 -1
  121. package/dist/components/cat-radio-group.js.map +1 -1
  122. package/dist/components/cat-radio.js +2 -2
  123. package/dist/components/cat-radio.js.map +1 -1
  124. package/dist/components/cat-scrollable2.js +7 -5
  125. package/dist/components/cat-scrollable2.js.map +1 -1
  126. package/dist/components/cat-select-demo.js +2 -2
  127. package/dist/components/cat-select-demo.js.map +1 -1
  128. package/dist/components/cat-select2.js +46 -17
  129. package/dist/components/cat-select2.js.map +1 -1
  130. package/dist/components/cat-skeleton2.js +1 -1
  131. package/dist/components/cat-skeleton2.js.map +1 -1
  132. package/dist/components/cat-textarea.js +3 -3
  133. package/dist/components/cat-textarea.js.map +1 -1
  134. package/dist/components/cat-timepicker.d.ts +11 -0
  135. package/dist/components/cat-timepicker.js +258 -0
  136. package/dist/components/cat-timepicker.js.map +1 -0
  137. package/dist/components/cat-toggle.js +2 -2
  138. package/dist/components/cat-toggle.js.map +1 -1
  139. package/dist/components/cat-tooltip.js +24 -20
  140. package/dist/components/cat-tooltip.js.map +1 -1
  141. package/dist/components/floating-ui.dom.esm.js +142 -56
  142. package/dist/components/floating-ui.dom.esm.js.map +1 -1
  143. package/dist/components/index.js +1 -1
  144. package/dist/components/index.js.map +1 -1
  145. package/dist/esm/{cat-alert_24.entry.js → cat-alert_27.entry.js} +3775 -193
  146. package/dist/esm/cat-alert_27.entry.js.map +1 -0
  147. package/dist/esm/{cat-icon-registry-d6b80490.js → cat-icon-registry-4bd597f4.js} +43 -2
  148. package/dist/esm/cat-icon-registry-4bd597f4.js.map +1 -0
  149. package/dist/esm/catalyst.js +4 -4
  150. package/dist/esm/catalyst.js.map +1 -1
  151. package/dist/esm/{index-fc2f91a4.js → index-636ce8d6.js} +8 -1
  152. package/dist/esm/index-636ce8d6.js.map +1 -0
  153. package/dist/esm/index.js +3 -3
  154. package/dist/esm/index.js.map +1 -1
  155. package/dist/esm/loader.js +4 -4
  156. package/dist/esm/loader.js.map +1 -1
  157. package/dist/types/components/cat-button/cat-button.d.ts +4 -5
  158. package/dist/types/components/cat-button-group/cat-button-group.d.ts +11 -0
  159. package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +1 -1
  160. package/dist/types/components/cat-datepicker/cat-datepicker.d.ts +187 -0
  161. package/dist/types/components/cat-datepicker/datepicker-type.d.ts +7 -0
  162. package/dist/types/components/cat-datepicker/datepicker.d.ts +1 -0
  163. package/dist/types/components/cat-datepicker/dayjs.config.d.ts +3 -0
  164. package/dist/types/components/cat-datepicker/vanillajs-datepicker.config.d.ts +4 -0
  165. package/dist/types/components/cat-form-group/cat-form-group.d.ts +5 -0
  166. package/dist/types/components/cat-input/cat-input.d.ts +1 -1
  167. package/dist/types/components/cat-label/cat-label.d.ts +4 -0
  168. package/dist/types/components/cat-pagination/cat-pagination.d.ts +6 -0
  169. package/dist/types/components/cat-radio/cat-radio.d.ts +1 -1
  170. package/dist/types/components/cat-radio-group/cat-radio-group.d.ts +1 -1
  171. package/dist/types/components/cat-select/cat-select.d.ts +10 -1
  172. package/dist/types/components/cat-textarea/cat-textarea.d.ts +1 -1
  173. package/dist/types/components/cat-timepicker/cat-timepicker.d.ts +158 -0
  174. package/dist/types/components/cat-toggle/cat-toggle.d.ts +1 -1
  175. package/dist/types/components/cat-tooltip/cat-tooltip.d.ts +2 -2
  176. package/dist/types/components.d.ts +585 -17
  177. package/package.json +22 -18
  178. package/dist/catalyst/p-ccfebe33.js +0 -2
  179. package/dist/catalyst/p-ccfebe33.js.map +0 -1
  180. package/dist/catalyst/p-d135d677.entry.js +0 -10
  181. package/dist/catalyst/p-d135d677.entry.js.map +0 -1
  182. package/dist/cjs/cat-alert_24.cjs.entry.js.map +0 -1
  183. package/dist/cjs/cat-icon-registry-671af264.js.map +0 -1
  184. package/dist/cjs/index-01312a2e.js.map +0 -1
  185. package/dist/components/first-tabbable.js +0 -464
  186. package/dist/components/first-tabbable.js.map +0 -1
  187. package/dist/esm/cat-alert_24.entry.js.map +0 -1
  188. package/dist/esm/cat-icon-registry-d6b80490.js.map +0 -1
  189. package/dist/esm/index-fc2f91a4.js.map +0 -1
@@ -0,0 +1,668 @@
1
+ import { h, Host } from '@stencil/core';
2
+ // import { catI18nRegistry as i18n } from '../cat-i18n/cat-i18n-registry';
3
+ import { of } from 'rxjs';
4
+ /**
5
+ * Inputs are used to allow users to provide text input when the expected input
6
+ * is short. As well as plain text, Input supports various types of text,
7
+ * including passwords and numbers.
8
+ *
9
+ * @slot hint - Optional hint element to be displayed with the input.
10
+ * @slot label - The slotted label. If both the label property and the label slot are present, only the label slot will be displayed.
11
+ * @part label - The label content.
12
+ * @part prefix - The text prefix.
13
+ * @part suffix - The text suffix.
14
+ */
15
+ export class CatTimepicker {
16
+ constructor() {
17
+ this.state = undefined;
18
+ this.hasSlottedLabel = false;
19
+ this.hasSlottedHint = false;
20
+ this.errorMap = undefined;
21
+ this.requiredMarker = 'optional';
22
+ this.horizontal = false;
23
+ this.multiple = false;
24
+ this.placement = 'bottom-start';
25
+ this.value = undefined;
26
+ this.disabled = false;
27
+ this.placeholder = undefined;
28
+ this.hint = undefined;
29
+ this.identifier = undefined;
30
+ this.label = '';
31
+ this.name = undefined;
32
+ this.labelHidden = false;
33
+ this.required = false;
34
+ this.clearable = false;
35
+ this.max = undefined;
36
+ this.min = undefined;
37
+ this.noItems = undefined;
38
+ this.errors = undefined;
39
+ this.errorUpdate = 0;
40
+ this.nativeAttributes = undefined;
41
+ this.minutesStep = 30;
42
+ this.hourShort = this.isBrowserHour12();
43
+ }
44
+ componentWillRender() {
45
+ this.hasSlottedLabel = !!this.hostElement.querySelector('[slot="label"]');
46
+ this.hasSlottedHint = !!this.hostElement.querySelector('[slot="hint"]');
47
+ }
48
+ componentDidLoad() {
49
+ var _a;
50
+ (_a = this.timeSelect) === null || _a === void 0 ? void 0 : _a.connect(this.timeConnector);
51
+ // IMask spike
52
+ // const input = this.hostElement.shadowRoot?.querySelector('cat-select')?.shadowRoot?.querySelector('input');
53
+ // if (input) {
54
+ // this.timeMask = this.getTimeMask(input);
55
+ // }
56
+ }
57
+ render() {
58
+ return (h(Host, null, h("cat-select", { requiredMarker: this.requiredMarker, horizontal: this.horizontal, clearable: this.clearable, disabled: this.disabled, hint: this.hint, identifier: this.identifier, label: this.label, labelHidden: this.labelHidden, name: this.name, multiple: this.multiple, placeholder: this.placeholder, placement: this.placement, required: this.required, noItems: this.noItems, ref: el => (this.timeSelect = el), value: this.value, errors: this.errors, errorUpdate: this.errorUpdate, nativeAttributes: this.nativeAttributes, onCatChange: event => this.onCatChange(event), onCatOpen: this.onCatOpen.bind(this), onCatClose: this.onCatClose.bind(this), onCatBlur: this.onCatBlur.bind(this) }, this.hasSlottedLabel && (h("span", { slot: "label" }, h("slot", { name: "label" }))), this.hasSlottedHint && (h("span", { slot: "hint" }, h("slot", { name: "hint" }))))));
59
+ }
60
+ get timeConnector() {
61
+ return {
62
+ resolve: (times) => {
63
+ return of(times.map(t => this.timeArray.find(time => time.hour === this.getHour(t) && time.minutes === this.getMinutes(t))));
64
+ },
65
+ retrieve: (term) => {
66
+ const filteredTimeArray = this.timeArray.filter(t => {
67
+ if (!term)
68
+ return true;
69
+ const formatedTime = this.hourShort ? this.formatAMPM(t.hour, t.minutes) : this.formatTime(t.hour, t.minutes);
70
+ return formatedTime.toUpperCase().includes(term.toUpperCase());
71
+ });
72
+ return of({
73
+ last: true,
74
+ totalElements: filteredTimeArray.length,
75
+ content: filteredTimeArray
76
+ });
77
+ },
78
+ render: ({ hour, minutes }) => ({
79
+ label: this.hourShort ? this.formatAMPM(hour, minutes) : this.formatTime(hour, minutes)
80
+ })
81
+ };
82
+ }
83
+ get timeArray() {
84
+ const times = [];
85
+ for (let hour = 0; hour < 24; hour++) {
86
+ for (let minutes = 0; minutes < 60; minutes += this.minutesStep) {
87
+ if (this.isHigherThanMinValue(hour, minutes) && this.isLowerThanMaxValue(hour, minutes)) {
88
+ times.push({
89
+ id: this.hourShort ? this.formatAMPM(hour, minutes) : this.formatTime(hour, minutes),
90
+ hour,
91
+ minutes
92
+ });
93
+ }
94
+ }
95
+ }
96
+ return times;
97
+ }
98
+ isBrowserHour12() {
99
+ var _a, _b;
100
+ const browserLanguage = (_b = (_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.language) !== null && _b !== void 0 ? _b : 'en';
101
+ const hour = new Intl.DateTimeFormat(browserLanguage, { hour: 'numeric' }).format(new Date().setHours(16));
102
+ return hour.toLowerCase().includes('pm' || 'am');
103
+ }
104
+ getHour(time) {
105
+ let hour = Number(time.split(':')[0]);
106
+ if (time.toLowerCase().includes('pm') && hour < 12)
107
+ hour = hour + 12;
108
+ if (time.toLowerCase().includes('am') && hour == 12)
109
+ hour = hour - 12;
110
+ return hour;
111
+ }
112
+ getMinutes(time) {
113
+ const minutes = time.match(/:(\d+)/);
114
+ return Number(minutes ? minutes[1] : 0);
115
+ }
116
+ isHigherThanMinValue(hour, minutes) {
117
+ if (this.min) {
118
+ const minHour = this.getHour(this.min);
119
+ const minMinutes = this.getMinutes(this.min);
120
+ return hour > minHour || (hour === minHour && minutes >= minMinutes);
121
+ }
122
+ return true;
123
+ }
124
+ isLowerThanMaxValue(hour, minutes) {
125
+ if (this.max) {
126
+ const maxHour = this.getHour(this.max);
127
+ const maxMinutes = this.getMinutes(this.max);
128
+ return hour < maxHour || (hour === maxHour && minutes <= maxMinutes);
129
+ }
130
+ return true;
131
+ }
132
+ formatAMPM(hour, minutes) {
133
+ if (hour === 0) {
134
+ return `12:${minutes < 10 ? `0${minutes}` : minutes} AM`;
135
+ }
136
+ else if (hour < 12) {
137
+ return `${hour < 10 ? `0${hour}` : hour}:${minutes < 10 ? `0${minutes}` : minutes} AM`;
138
+ }
139
+ else {
140
+ return `${hour % 12 < 10 ? `0${hour % 12}` : hour % 12}:${minutes < 10 ? `0${minutes}` : minutes} PM`;
141
+ }
142
+ }
143
+ formatTime(hour, minutes) {
144
+ return `${hour < 10 ? `0${hour}` : hour}:${minutes < 10 ? `0${minutes}` : minutes}`;
145
+ }
146
+ onCatChange(event) {
147
+ var _a;
148
+ event.stopPropagation();
149
+ this.value = (_a = this.timeSelect) === null || _a === void 0 ? void 0 : _a.value;
150
+ this.catChange.emit(event);
151
+ }
152
+ onCatOpen(event) {
153
+ event.stopPropagation();
154
+ this.catOpen.emit(event);
155
+ }
156
+ onCatClose(event) {
157
+ event.stopPropagation();
158
+ this.catClose.emit(event);
159
+ }
160
+ onCatBlur(event) {
161
+ event.stopPropagation();
162
+ this.catBlur.emit(event);
163
+ }
164
+ static get is() { return "cat-timepicker"; }
165
+ static get encapsulation() { return "shadow"; }
166
+ static get originalStyleUrls() {
167
+ return {
168
+ "$": ["cat-timepicker.scss"]
169
+ };
170
+ }
171
+ static get styleUrls() {
172
+ return {
173
+ "$": ["cat-timepicker.css"]
174
+ };
175
+ }
176
+ static get properties() {
177
+ return {
178
+ "requiredMarker": {
179
+ "type": "string",
180
+ "mutable": false,
181
+ "complexType": {
182
+ "original": "'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!'",
183
+ "resolved": "\"none!\" | \"none\" | \"optional!\" | \"optional\" | \"required!\" | \"required\"",
184
+ "references": {}
185
+ },
186
+ "required": false,
187
+ "optional": false,
188
+ "docs": {
189
+ "tags": [],
190
+ "text": "Whether the label need a marker to shown if the input is required or optional."
191
+ },
192
+ "attribute": "required-marker",
193
+ "reflect": false,
194
+ "defaultValue": "'optional'"
195
+ },
196
+ "horizontal": {
197
+ "type": "boolean",
198
+ "mutable": false,
199
+ "complexType": {
200
+ "original": "boolean",
201
+ "resolved": "boolean",
202
+ "references": {}
203
+ },
204
+ "required": false,
205
+ "optional": false,
206
+ "docs": {
207
+ "tags": [],
208
+ "text": "Whether the label is on top or left."
209
+ },
210
+ "attribute": "horizontal",
211
+ "reflect": false,
212
+ "defaultValue": "false"
213
+ },
214
+ "multiple": {
215
+ "type": "boolean",
216
+ "mutable": false,
217
+ "complexType": {
218
+ "original": "boolean",
219
+ "resolved": "boolean",
220
+ "references": {}
221
+ },
222
+ "required": false,
223
+ "optional": false,
224
+ "docs": {
225
+ "tags": [],
226
+ "text": "Enable multiple selection."
227
+ },
228
+ "attribute": "multiple",
229
+ "reflect": false,
230
+ "defaultValue": "false"
231
+ },
232
+ "placement": {
233
+ "type": "string",
234
+ "mutable": false,
235
+ "complexType": {
236
+ "original": "Placement",
237
+ "resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
238
+ "references": {
239
+ "Placement": {
240
+ "location": "import",
241
+ "path": "@floating-ui/dom"
242
+ }
243
+ }
244
+ },
245
+ "required": false,
246
+ "optional": false,
247
+ "docs": {
248
+ "tags": [],
249
+ "text": "The placement of the select."
250
+ },
251
+ "attribute": "placement",
252
+ "reflect": false,
253
+ "defaultValue": "'bottom-start'"
254
+ },
255
+ "value": {
256
+ "type": "string",
257
+ "mutable": true,
258
+ "complexType": {
259
+ "original": "string | string[] | CatSelectTaggingValue | CatSelectMultipleTaggingValue",
260
+ "resolved": "CatSelectMultipleTaggingValue | CatSelectTaggingValue | string | string[] | undefined",
261
+ "references": {
262
+ "CatSelectTaggingValue": {
263
+ "location": "import",
264
+ "path": "../cat-select/cat-select"
265
+ },
266
+ "CatSelectMultipleTaggingValue": {
267
+ "location": "import",
268
+ "path": "../cat-select/cat-select"
269
+ }
270
+ }
271
+ },
272
+ "required": false,
273
+ "optional": true,
274
+ "docs": {
275
+ "tags": [],
276
+ "text": "The value of the select. <br />\n<br />\nThe value of the select depends on whether it is allowed to choose a single item or several items. <br />\nWhen only one item can be selected, the value is the id of the item, in case several items can be selected, the value is an array of ids of the selected items. <br />\n<br />\nIn case the user can add new items to the select (tags activated), the value in the single select is an object (CatSelectTaggingValue) with the id of the item or the name of the created item,\nin the case of multiple select, it is an object (CatSelectMultipleTaggingValue) with the array of the ids of the items selected and the array of the names of the items created"
277
+ },
278
+ "attribute": "value",
279
+ "reflect": false
280
+ },
281
+ "disabled": {
282
+ "type": "boolean",
283
+ "mutable": false,
284
+ "complexType": {
285
+ "original": "boolean",
286
+ "resolved": "boolean",
287
+ "references": {}
288
+ },
289
+ "required": false,
290
+ "optional": false,
291
+ "docs": {
292
+ "tags": [],
293
+ "text": "Whether the input is disabled."
294
+ },
295
+ "attribute": "disabled",
296
+ "reflect": false,
297
+ "defaultValue": "false"
298
+ },
299
+ "placeholder": {
300
+ "type": "string",
301
+ "mutable": false,
302
+ "complexType": {
303
+ "original": "string",
304
+ "resolved": "string | undefined",
305
+ "references": {}
306
+ },
307
+ "required": false,
308
+ "optional": true,
309
+ "docs": {
310
+ "tags": [],
311
+ "text": "The placeholder text to display within the select."
312
+ },
313
+ "attribute": "placeholder",
314
+ "reflect": false
315
+ },
316
+ "hint": {
317
+ "type": "string",
318
+ "mutable": false,
319
+ "complexType": {
320
+ "original": "string | string[]",
321
+ "resolved": "string | string[] | undefined",
322
+ "references": {}
323
+ },
324
+ "required": false,
325
+ "optional": true,
326
+ "docs": {
327
+ "tags": [],
328
+ "text": "Optional hint text(s) to be displayed with the input."
329
+ },
330
+ "attribute": "hint",
331
+ "reflect": false
332
+ },
333
+ "identifier": {
334
+ "type": "string",
335
+ "mutable": false,
336
+ "complexType": {
337
+ "original": "string",
338
+ "resolved": "string | undefined",
339
+ "references": {}
340
+ },
341
+ "required": false,
342
+ "optional": true,
343
+ "docs": {
344
+ "tags": [],
345
+ "text": "A unique identifier for the input."
346
+ },
347
+ "attribute": "identifier",
348
+ "reflect": false
349
+ },
350
+ "label": {
351
+ "type": "string",
352
+ "mutable": false,
353
+ "complexType": {
354
+ "original": "string",
355
+ "resolved": "string",
356
+ "references": {}
357
+ },
358
+ "required": false,
359
+ "optional": false,
360
+ "docs": {
361
+ "tags": [],
362
+ "text": "The label for the input."
363
+ },
364
+ "attribute": "label",
365
+ "reflect": false,
366
+ "defaultValue": "''"
367
+ },
368
+ "name": {
369
+ "type": "string",
370
+ "mutable": false,
371
+ "complexType": {
372
+ "original": "string",
373
+ "resolved": "string | undefined",
374
+ "references": {}
375
+ },
376
+ "required": false,
377
+ "optional": true,
378
+ "docs": {
379
+ "tags": [],
380
+ "text": "The name of the form control. Submitted with the form as part of a name/value pair."
381
+ },
382
+ "attribute": "name",
383
+ "reflect": false
384
+ },
385
+ "labelHidden": {
386
+ "type": "boolean",
387
+ "mutable": false,
388
+ "complexType": {
389
+ "original": "boolean",
390
+ "resolved": "boolean",
391
+ "references": {}
392
+ },
393
+ "required": false,
394
+ "optional": false,
395
+ "docs": {
396
+ "tags": [],
397
+ "text": "Visually hide the label, but still show it to assistive technologies like screen readers."
398
+ },
399
+ "attribute": "label-hidden",
400
+ "reflect": false,
401
+ "defaultValue": "false"
402
+ },
403
+ "required": {
404
+ "type": "boolean",
405
+ "mutable": false,
406
+ "complexType": {
407
+ "original": "boolean",
408
+ "resolved": "boolean",
409
+ "references": {}
410
+ },
411
+ "required": false,
412
+ "optional": false,
413
+ "docs": {
414
+ "tags": [],
415
+ "text": "A value is required or must be checked for the form to be submittable."
416
+ },
417
+ "attribute": "required",
418
+ "reflect": false,
419
+ "defaultValue": "false"
420
+ },
421
+ "clearable": {
422
+ "type": "boolean",
423
+ "mutable": false,
424
+ "complexType": {
425
+ "original": "boolean",
426
+ "resolved": "boolean",
427
+ "references": {}
428
+ },
429
+ "required": false,
430
+ "optional": false,
431
+ "docs": {
432
+ "tags": [],
433
+ "text": "Whether the select should show a clear button."
434
+ },
435
+ "attribute": "clearable",
436
+ "reflect": false,
437
+ "defaultValue": "false"
438
+ },
439
+ "max": {
440
+ "type": "string",
441
+ "mutable": false,
442
+ "complexType": {
443
+ "original": "string",
444
+ "resolved": "string | undefined",
445
+ "references": {}
446
+ },
447
+ "required": false,
448
+ "optional": true,
449
+ "docs": {
450
+ "tags": [],
451
+ "text": "A maximum value for date, time and numeric values."
452
+ },
453
+ "attribute": "max",
454
+ "reflect": false
455
+ },
456
+ "min": {
457
+ "type": "string",
458
+ "mutable": false,
459
+ "complexType": {
460
+ "original": "string",
461
+ "resolved": "string | undefined",
462
+ "references": {}
463
+ },
464
+ "required": false,
465
+ "optional": true,
466
+ "docs": {
467
+ "tags": [],
468
+ "text": "A minimum value for date, time and numeric values."
469
+ },
470
+ "attribute": "min",
471
+ "reflect": false
472
+ },
473
+ "noItems": {
474
+ "type": "string",
475
+ "mutable": false,
476
+ "complexType": {
477
+ "original": "string",
478
+ "resolved": "string | undefined",
479
+ "references": {}
480
+ },
481
+ "required": false,
482
+ "optional": true,
483
+ "docs": {
484
+ "tags": [],
485
+ "text": "The text to display in the dropdown if no results are found."
486
+ },
487
+ "attribute": "no-items",
488
+ "reflect": false
489
+ },
490
+ "errors": {
491
+ "type": "boolean",
492
+ "mutable": false,
493
+ "complexType": {
494
+ "original": "boolean | string[] | ErrorMap",
495
+ "resolved": "boolean | string[] | undefined | { [key: string]: any; }",
496
+ "references": {
497
+ "ErrorMap": {
498
+ "location": "import",
499
+ "path": "../cat-form-hint/cat-form-hint"
500
+ }
501
+ }
502
+ },
503
+ "required": false,
504
+ "optional": true,
505
+ "docs": {
506
+ "tags": [],
507
+ "text": "The validation errors for this input. Will render a hint under the input\nwith the translated error message(s) `error.${key}`. If an object is\npassed, the keys will be used as error keys and the values translation\nparameters.\nIf the value is `true`, the input will be marked as invalid without any\nhints under the input."
508
+ },
509
+ "attribute": "errors",
510
+ "reflect": false
511
+ },
512
+ "errorUpdate": {
513
+ "type": "any",
514
+ "mutable": false,
515
+ "complexType": {
516
+ "original": "boolean | number",
517
+ "resolved": "boolean | number",
518
+ "references": {}
519
+ },
520
+ "required": false,
521
+ "optional": false,
522
+ "docs": {
523
+ "tags": [],
524
+ "text": "Fine-grained control over when the errors are shown. Can be `false` to\nnever show errors, `true` to show errors on blur, or a number to show\nerrors on change with the given delay in milliseconds."
525
+ },
526
+ "attribute": "error-update",
527
+ "reflect": false,
528
+ "defaultValue": "0"
529
+ },
530
+ "nativeAttributes": {
531
+ "type": "unknown",
532
+ "mutable": false,
533
+ "complexType": {
534
+ "original": "{ [key: string]: string }",
535
+ "resolved": "undefined | { [key: string]: string; }",
536
+ "references": {}
537
+ },
538
+ "required": false,
539
+ "optional": true,
540
+ "docs": {
541
+ "tags": [],
542
+ "text": "Attributes that will be added to the native HTML input element."
543
+ }
544
+ },
545
+ "minutesStep": {
546
+ "type": "number",
547
+ "mutable": false,
548
+ "complexType": {
549
+ "original": "number",
550
+ "resolved": "number",
551
+ "references": {}
552
+ },
553
+ "required": false,
554
+ "optional": false,
555
+ "docs": {
556
+ "tags": [],
557
+ "text": "Attributes that will be added to the native HTML input element."
558
+ },
559
+ "attribute": "minutes-step",
560
+ "reflect": false,
561
+ "defaultValue": "30"
562
+ },
563
+ "hourShort": {
564
+ "type": "boolean",
565
+ "mutable": false,
566
+ "complexType": {
567
+ "original": "boolean",
568
+ "resolved": "boolean",
569
+ "references": {}
570
+ },
571
+ "required": false,
572
+ "optional": false,
573
+ "docs": {
574
+ "tags": [],
575
+ "text": "Attributes that will be added to the native HTML input element."
576
+ },
577
+ "attribute": "hour-short",
578
+ "reflect": false,
579
+ "defaultValue": "this.isBrowserHour12()"
580
+ }
581
+ };
582
+ }
583
+ static get states() {
584
+ return {
585
+ "state": {},
586
+ "hasSlottedLabel": {},
587
+ "hasSlottedHint": {},
588
+ "errorMap": {}
589
+ };
590
+ }
591
+ static get events() {
592
+ return [{
593
+ "method": "catOpen",
594
+ "name": "catOpen",
595
+ "bubbles": true,
596
+ "cancelable": true,
597
+ "composed": true,
598
+ "docs": {
599
+ "tags": [],
600
+ "text": "Emitted when the select dropdown is opened."
601
+ },
602
+ "complexType": {
603
+ "original": "FocusEvent",
604
+ "resolved": "FocusEvent",
605
+ "references": {
606
+ "FocusEvent": {
607
+ "location": "global"
608
+ }
609
+ }
610
+ }
611
+ }, {
612
+ "method": "catClose",
613
+ "name": "catClose",
614
+ "bubbles": true,
615
+ "cancelable": true,
616
+ "composed": true,
617
+ "docs": {
618
+ "tags": [],
619
+ "text": "Emitted when the select dropdown is closed."
620
+ },
621
+ "complexType": {
622
+ "original": "FocusEvent",
623
+ "resolved": "FocusEvent",
624
+ "references": {
625
+ "FocusEvent": {
626
+ "location": "global"
627
+ }
628
+ }
629
+ }
630
+ }, {
631
+ "method": "catChange",
632
+ "name": "catChange",
633
+ "bubbles": true,
634
+ "cancelable": true,
635
+ "composed": true,
636
+ "docs": {
637
+ "tags": [],
638
+ "text": "Emitted when the value is changed."
639
+ },
640
+ "complexType": {
641
+ "original": "any",
642
+ "resolved": "any",
643
+ "references": {}
644
+ }
645
+ }, {
646
+ "method": "catBlur",
647
+ "name": "catBlur",
648
+ "bubbles": true,
649
+ "cancelable": true,
650
+ "composed": true,
651
+ "docs": {
652
+ "tags": [],
653
+ "text": "Emitted when the select loses the focus."
654
+ },
655
+ "complexType": {
656
+ "original": "FocusEvent",
657
+ "resolved": "FocusEvent",
658
+ "references": {
659
+ "FocusEvent": {
660
+ "location": "global"
661
+ }
662
+ }
663
+ }
664
+ }];
665
+ }
666
+ static get elementRef() { return "hostElement"; }
667
+ }
668
+ //# sourceMappingURL=cat-timepicker.js.map