xmlui 0.10.18 → 0.10.19

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 (33) hide show
  1. package/dist/lib/{index-Cy6Emsex.mjs → index-cuh97e2e.mjs} +286 -140
  2. package/dist/lib/index.css +1 -1
  3. package/dist/lib/{initMock-B-rmnC-t.mjs → initMock-BMxsanHc.mjs} +1 -1
  4. package/dist/lib/xmlui.mjs +1 -1
  5. package/dist/metadata/{collectedComponentMetadata-CB63ngkU.mjs → collectedComponentMetadata-Cp-9lpnG.mjs} +286 -140
  6. package/dist/metadata/{initMock-D0wDKF_I.mjs → initMock-C-cnv--V.mjs} +1 -1
  7. package/dist/metadata/style.css +1 -1
  8. package/dist/metadata/xmlui-metadata.mjs +1 -1
  9. package/dist/metadata/xmlui-metadata.umd.js +3 -3
  10. package/dist/scripts/package.json +1 -1
  11. package/dist/scripts/src/components/AutoComplete/AutoComplete.spec.js +25 -4
  12. package/dist/scripts/src/components/Checkbox/Checkbox.spec.js +5 -0
  13. package/dist/scripts/src/components/DateInput/DateInput.spec.js +22 -17
  14. package/dist/scripts/src/components/DatePicker/DatePicker.js +14 -9
  15. package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +21 -18
  16. package/dist/scripts/src/components/DatePicker/DatePickerNative.js +24 -21
  17. package/dist/scripts/src/components/FileInput/FileInput.spec.js +7 -0
  18. package/dist/scripts/src/components/Icon/Icon.js +1 -1
  19. package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +5 -0
  20. package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +9 -0
  21. package/dist/scripts/src/components/Select/Select.spec.js +286 -217
  22. package/dist/scripts/src/components/Slider/Slider.spec.js +7 -0
  23. package/dist/scripts/src/components/Switch/Switch.spec.js +24 -17
  24. package/dist/scripts/src/components/Table/Table.js +11 -1
  25. package/dist/scripts/src/components/Table/Table.spec.js +272 -0
  26. package/dist/scripts/src/components/Table/TableNative.js +162 -5
  27. package/dist/scripts/src/components/TextArea/TextArea.spec.js +51 -0
  28. package/dist/scripts/src/components/TextBox/TextBox.spec.js +7 -0
  29. package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +44 -37
  30. package/dist/scripts/src/components/TimeInput/TimeInputNative.js +6 -20
  31. package/dist/scripts/src/components/Toggle/Toggle.js +3 -1
  32. package/dist/standalone/xmlui-standalone.umd.js +33 -33
  33. package/package.json +1 -1
@@ -87,7 +87,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
87
87
  yield (0, fixtures_1.expect)(driver.amPmInput).not.toBeVisible();
88
88
  yield (0, fixtures_1.expect)(driver.clearButton).not.toBeVisible();
89
89
  }));
90
- (0, fixtures_1.test)("falls back to ISO time format when standard parsing fails", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
90
+ (0, fixtures_1.test)("falls back to ISO time format when standard parsing fails", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
91
91
  yield initTestBed(`<TimeInput testId="timeInput" initialValue="15:30:00" />`);
92
92
  const driver = yield createTimeInputDriver("timeInput");
93
93
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
@@ -97,7 +97,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
97
97
  yield (0, fixtures_1.expect)(driver.amPmInput).not.toBeVisible();
98
98
  yield (0, fixtures_1.expect)(driver.clearButton).not.toBeVisible();
99
99
  }));
100
- (0, fixtures_1.test)("falls back to ISO time format with seconds", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
100
+ (0, fixtures_1.test)("falls back to ISO time format with seconds", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
101
101
  yield initTestBed(`<TimeInput testId="timeInput" initialValue="09:15:30" seconds="true" />`);
102
102
  const driver = yield createTimeInputDriver("timeInput");
103
103
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
@@ -107,7 +107,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
107
107
  yield (0, fixtures_1.expect)(driver.amPmInput).not.toBeVisible();
108
108
  yield (0, fixtures_1.expect)(driver.clearButton).not.toBeVisible();
109
109
  }));
110
- (0, fixtures_1.test)("handles boolean initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
110
+ (0, fixtures_1.test)("handles boolean initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
111
111
  yield initTestBed(`<TimeInput testId="timeInput" initialValue="{true}" />`);
112
112
  const driver = yield createTimeInputDriver("timeInput");
113
113
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
@@ -117,7 +117,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
117
117
  yield (0, fixtures_1.expect)(driver.amPmInput).not.toBeVisible();
118
118
  yield (0, fixtures_1.expect)(driver.clearButton).not.toBeVisible();
119
119
  }));
120
- (0, fixtures_1.test)("handles numeric initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
120
+ (0, fixtures_1.test)("handles numeric initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
121
121
  yield initTestBed(`<TimeInput testId="timeInput" initialValue="{123}" />`);
122
122
  const driver = yield createTimeInputDriver("timeInput");
123
123
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
@@ -127,7 +127,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
127
127
  yield (0, fixtures_1.expect)(driver.amPmInput).not.toBeVisible();
128
128
  yield (0, fixtures_1.expect)(driver.clearButton).not.toBeVisible();
129
129
  }));
130
- (0, fixtures_1.test)("handles array initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
130
+ (0, fixtures_1.test)("handles array initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
131
131
  yield initTestBed(`<TimeInput testId="timeInput" initialValue="{['14', '30']}" />`);
132
132
  const driver = yield createTimeInputDriver("timeInput");
133
133
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
@@ -137,7 +137,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
137
137
  yield (0, fixtures_1.expect)(driver.amPmInput).not.toBeVisible();
138
138
  yield (0, fixtures_1.expect)(driver.clearButton).not.toBeVisible();
139
139
  }));
140
- (0, fixtures_1.test)("handles object initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
140
+ (0, fixtures_1.test)("handles object initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
141
141
  yield initTestBed(`<TimeInput testId="timeInput" initialValue="{{ hour: 14, minute: 30 }}" />`);
142
142
  const driver = yield createTimeInputDriver("timeInput");
143
143
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
@@ -147,7 +147,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
147
147
  yield (0, fixtures_1.expect)(driver.amPmInput).not.toBeVisible();
148
148
  yield (0, fixtures_1.expect)(driver.clearButton).not.toBeVisible();
149
149
  }));
150
- (0, fixtures_1.test)("handles function initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
150
+ (0, fixtures_1.test)("handles function initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
151
151
  yield initTestBed(`<TimeInput testId="timeInput" initialValue="{() => '14:30'}" />`);
152
152
  const driver = yield createTimeInputDriver("timeInput");
153
153
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
@@ -157,7 +157,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
157
157
  yield (0, fixtures_1.expect)(driver.amPmInput).not.toBeVisible();
158
158
  yield (0, fixtures_1.expect)(driver.clearButton).not.toBeVisible();
159
159
  }));
160
- (0, fixtures_1.test)("handles Date object initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
160
+ (0, fixtures_1.test)("handles Date object initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
161
161
  yield initTestBed(`<TimeInput testId="timeInput" initialValue="{getDate()}" />`);
162
162
  const driver = yield createTimeInputDriver("timeInput");
163
163
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
@@ -167,7 +167,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
167
167
  yield (0, fixtures_1.expect)(driver.amPmInput).not.toBeVisible();
168
168
  yield (0, fixtures_1.expect)(driver.clearButton).not.toBeVisible();
169
169
  }));
170
- (0, fixtures_1.test)("handles Symbol initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
170
+ (0, fixtures_1.test)("handles Symbol initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
171
171
  yield initTestBed(`<TimeInput testId="timeInput" initialValue="{Symbol('time')}" />`);
172
172
  const driver = yield createTimeInputDriver("timeInput");
173
173
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
@@ -177,7 +177,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
177
177
  yield (0, fixtures_1.expect)(driver.amPmInput).not.toBeVisible();
178
178
  yield (0, fixtures_1.expect)(driver.clearButton).not.toBeVisible();
179
179
  }));
180
- (0, fixtures_1.test)("handles BigInt initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
180
+ (0, fixtures_1.test)("handles BigInt initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
181
181
  yield initTestBed(`<TimeInput testId="timeInput" initialValue="{BigInt(1430)}" />`);
182
182
  const driver = yield createTimeInputDriver("timeInput");
183
183
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
@@ -187,7 +187,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
187
187
  yield (0, fixtures_1.expect)(driver.amPmInput).not.toBeVisible();
188
188
  yield (0, fixtures_1.expect)(driver.clearButton).not.toBeVisible();
189
189
  }));
190
- (0, fixtures_1.test)("handles zero numeric initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
190
+ (0, fixtures_1.test)("handles zero numeric initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
191
191
  yield initTestBed(`<TimeInput testId="timeInput" initialValue="{0}" />`);
192
192
  const driver = yield createTimeInputDriver("timeInput");
193
193
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
@@ -197,7 +197,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
197
197
  yield (0, fixtures_1.expect)(driver.amPmInput).not.toBeVisible();
198
198
  yield (0, fixtures_1.expect)(driver.clearButton).not.toBeVisible();
199
199
  }));
200
- (0, fixtures_1.test)("handles negative numeric initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
200
+ (0, fixtures_1.test)("handles negative numeric initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
201
201
  yield initTestBed(`<TimeInput testId="timeInput" initialValue="{-1}" />`);
202
202
  const driver = yield createTimeInputDriver("timeInput");
203
203
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
@@ -207,7 +207,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
207
207
  yield (0, fixtures_1.expect)(driver.amPmInput).not.toBeVisible();
208
208
  yield (0, fixtures_1.expect)(driver.clearButton).not.toBeVisible();
209
209
  }));
210
- (0, fixtures_1.test)("handles empty string initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
210
+ (0, fixtures_1.test)("handles empty string initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
211
211
  yield initTestBed(`<TimeInput testId="timeInput" initialValue="" />`);
212
212
  const driver = yield createTimeInputDriver("timeInput");
213
213
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
@@ -217,7 +217,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
217
217
  yield (0, fixtures_1.expect)(driver.amPmInput).not.toBeVisible();
218
218
  yield (0, fixtures_1.expect)(driver.clearButton).not.toBeVisible();
219
219
  }));
220
- (0, fixtures_1.test)("handles whitespace-only initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
220
+ (0, fixtures_1.test)("handles whitespace-only initialValue gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
221
221
  yield initTestBed(`<TimeInput testId="timeInput" initialValue=" " />`);
222
222
  const driver = yield createTimeInputDriver("timeInput");
223
223
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
@@ -229,7 +229,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
229
229
  }));
230
230
  });
231
231
  fixtures_1.test.describe("hour24 and seconds properties", () => {
232
- (0, fixtures_1.test)("displays 24-hour format without seconds", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
232
+ (0, fixtures_1.test)("displays 24-hour format without seconds", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
233
233
  yield initTestBed(`<TimeInput testId="timeInput" hour24="true" seconds="false" initialValue="14:30" />`);
234
234
  const driver = yield createTimeInputDriver("timeInput");
235
235
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
@@ -249,7 +249,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
249
249
  yield (0, fixtures_1.expect)(driver.amPmInput).not.toBeVisible();
250
250
  yield (0, fixtures_1.expect)(driver.clearButton).not.toBeVisible();
251
251
  }));
252
- (0, fixtures_1.test)("displays 12-hour format without seconds", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
252
+ (0, fixtures_1.test)("displays 12-hour format without seconds", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
253
253
  yield initTestBed(`<TimeInput testId="timeInput" hour24="false" seconds="false" initialValue="14:30" />`);
254
254
  const driver = yield createTimeInputDriver("timeInput");
255
255
  yield (0, fixtures_1.expect)(driver.hourInput).toHaveValue("02");
@@ -315,7 +315,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
315
315
  }));
316
316
  });
317
317
  fixtures_1.test.describe("clearable property", () => {
318
- (0, fixtures_1.test)("shows clear button when clearable is true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
318
+ (0, fixtures_1.test)("shows clear button when clearable is true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
319
319
  yield initTestBed(`<TimeInput testId="timeInput" clearable="true" initialValue="14:30" />`);
320
320
  const driver = yield createTimeInputDriver("timeInput");
321
321
  yield (0, fixtures_1.expect)(driver.clearButton).toBeVisible();
@@ -325,7 +325,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
325
325
  const driver = yield createTimeInputDriver("timeInput");
326
326
  yield (0, fixtures_1.expect)(driver.clearButton).not.toBeVisible();
327
327
  }));
328
- (0, fixtures_1.test)("clears value when clear button is clicked (clearToInitialValue is true)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
328
+ (0, fixtures_1.test)("clears value when clear button is clicked (clearToInitialValue is true)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
329
329
  yield initTestBed(`<TimeInput testId="timeInput" clearable="true" initialValue="14:30" />`);
330
330
  const driver = yield createTimeInputDriver("timeInput");
331
331
  driver.hourInput.fill("05");
@@ -333,7 +333,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
333
333
  yield (0, fixtures_1.expect)(driver.hourInput).toHaveValue("14");
334
334
  yield (0, fixtures_1.expect)(driver.minuteInput).toHaveValue("30");
335
335
  }));
336
- (0, fixtures_1.test)("clears value when clear button is clicked (clearToInitialValue is false)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
336
+ (0, fixtures_1.test)("clears value when clear button is clicked (clearToInitialValue is false)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
337
337
  yield initTestBed(`
338
338
  <TimeInput testId="timeInput" clearable="true"
339
339
  clearToInitialValue="false" initialValue="14:30" />
@@ -434,7 +434,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
434
434
  const driver = yield createTimeInputDriver("timeInput");
435
435
  yield (0, fixtures_1.expect)(driver.component.getByRole("img")).toBeVisible();
436
436
  }));
437
- (0, fixtures_1.test)("displays multiple adornments together", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
437
+ (0, fixtures_1.test)("displays multiple adornments together", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
438
438
  yield initTestBed(`<TimeInput testId="timeInput" startText="Start" endText="End" startIcon="phone" endIcon="email" />`);
439
439
  const driver = yield createTimeInputDriver("timeInput");
440
440
  yield (0, fixtures_1.expect)(driver.component).toContainText("Start");
@@ -668,7 +668,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
668
668
  yield page.keyboard.press("p", { delay: 100 });
669
669
  yield (0, fixtures_1.expect)(driver.amPmInput).toHaveText("PM");
670
670
  }));
671
- (0, fixtures_1.test)("auto-tabs from hour to minute after typing two digits", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createTimeInputDriver }) {
671
+ (0, fixtures_1.test)("auto-tabs from hour to minute after typing two digits", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createTimeInputDriver, }) {
672
672
  yield initTestBed(`<TimeInput testId="timeInput" />`);
673
673
  const driver = yield createTimeInputDriver("timeInput");
674
674
  // Focus on hour input and clear it
@@ -680,7 +680,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
680
680
  yield (0, fixtures_1.expect)(driver.hourInput).toHaveValue("14");
681
681
  yield (0, fixtures_1.expect)(driver.minuteInput).toBeFocused();
682
682
  }));
683
- (0, fixtures_1.test)("auto-tabs from minute to second after typing two digits", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createTimeInputDriver }) {
683
+ (0, fixtures_1.test)("auto-tabs from minute to second after typing two digits", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createTimeInputDriver, }) {
684
684
  yield initTestBed(`<TimeInput testId="timeInput" seconds="true" />`);
685
685
  const driver = yield createTimeInputDriver("timeInput");
686
686
  // Focus on minute input and clear it
@@ -692,7 +692,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
692
692
  yield (0, fixtures_1.expect)(driver.minuteInput).toHaveValue("30");
693
693
  yield (0, fixtures_1.expect)(driver.secondInput).toBeFocused();
694
694
  }));
695
- (0, fixtures_1.test)("auto-tabs from second to AM/PM after typing two digits in 12-hour format", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createTimeInputDriver }) {
695
+ (0, fixtures_1.test)("auto-tabs from second to AM/PM after typing two digits in 12-hour format", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createTimeInputDriver, }) {
696
696
  yield initTestBed(`<TimeInput testId="timeInput" hour24="false" seconds="true" />`);
697
697
  const driver = yield createTimeInputDriver("timeInput");
698
698
  // Focus on second input and clear it
@@ -704,7 +704,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
704
704
  yield (0, fixtures_1.expect)(driver.secondInput).toHaveValue("45");
705
705
  yield (0, fixtures_1.expect)(driver.amPmInput).toBeFocused();
706
706
  }));
707
- (0, fixtures_1.test)("does not auto-tab from second input in 24-hour format", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createTimeInputDriver }) {
707
+ (0, fixtures_1.test)("does not auto-tab from second input in 24-hour format", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createTimeInputDriver, }) {
708
708
  yield initTestBed(`<TimeInput testId="timeInput" hour24="true" seconds="true" />`);
709
709
  const driver = yield createTimeInputDriver("timeInput");
710
710
  // Focus on second input and clear it
@@ -738,7 +738,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
738
738
  yield page.getByTestId("getIsoBtn").click();
739
739
  yield fixtures_1.expect.poll(testStateDriver.testState).toBe("14:30:00");
740
740
  }));
741
- (0, fixtures_1.test)("isoValue returns ISO format for 24-hour time with seconds", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
741
+ (0, fixtures_1.test)("isoValue returns ISO format for 24-hour time with seconds", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
742
742
  const { testStateDriver } = yield initTestBed(`
743
743
  <Fragment>
744
744
  <TimeInput id="timeInput" initialValue="14:30:45" hour24="true" seconds="true" />
@@ -788,7 +788,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
788
788
  yield page.getByTestId("getIsoBtn").click();
789
789
  yield fixtures_1.expect.poll(testStateDriver.testState).toBe("12:00:00");
790
790
  }));
791
- (0, fixtures_1.test)("isoValue includes seconds when available in 12-hour format", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
791
+ (0, fixtures_1.test)("isoValue includes seconds when available in 12-hour format", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
792
792
  const { testStateDriver } = yield initTestBed(`
793
793
  <Fragment>
794
794
  <TimeInput id="timeInput" initialValue="02:30:15 PM" hour24="false" seconds="true" />
@@ -798,7 +798,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
798
798
  yield page.getByTestId("getIsoBtn").click();
799
799
  yield fixtures_1.expect.poll(testStateDriver.testState).toBe("14:30:15");
800
800
  }));
801
- (0, fixtures_1.test)("isoValue updates when time is changed programmatically", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
801
+ (0, fixtures_1.test)("isoValue updates when time is changed programmatically", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
802
802
  const { testStateDriver } = yield initTestBed(`
803
803
  <Fragment>
804
804
  <TimeInput id="timeInput" initialValue="14:30" hour24="true" />
@@ -812,7 +812,7 @@ fixtures_1.test.describe("Basic Functionality", () => {
812
812
  yield page.getByTestId("getIsoBtn").click();
813
813
  yield fixtures_1.expect.poll(testStateDriver.testState).toBe("09:15:00");
814
814
  }));
815
- (0, fixtures_1.test)("isoValue returns null when only hour is set", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createTimeInputDriver }) {
815
+ (0, fixtures_1.test)("isoValue returns null when only hour is set", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createTimeInputDriver, }) {
816
816
  const { testStateDriver } = yield initTestBed(`
817
817
  <Fragment>
818
818
  <TimeInput id="timeInput" testId="timeInput" />
@@ -836,7 +836,7 @@ fixtures_1.test.describe("Accessibility", () => {
836
836
  const driver = yield createTimeInputDriver("timeInput");
837
837
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
838
838
  }));
839
- (0, fixtures_1.test)("has correct accessibility attributes for inputs", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
839
+ (0, fixtures_1.test)("has correct accessibility attributes for inputs", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
840
840
  yield initTestBed(`<TimeInput testId="timeInput" label="Select time" />`);
841
841
  const driver = yield createTimeInputDriver("timeInput");
842
842
  yield (0, fixtures_1.expect)(driver.hourInput).toHaveAttribute("type", "text");
@@ -859,18 +859,18 @@ fixtures_1.test.describe("Accessibility", () => {
859
859
  yield page.keyboard.press("Tab");
860
860
  yield (0, fixtures_1.expect)(driver.secondInput).toBeFocused();
861
861
  }));
862
- (0, fixtures_1.test)("supports required attribute for accessibility", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
862
+ (0, fixtures_1.test)("supports required attribute for accessibility", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
863
863
  yield initTestBed(`<TimeInput testId="timeInput" required="true" label="Required time" />`);
864
864
  const driver = yield createTimeInputDriver("timeInput");
865
865
  yield (0, fixtures_1.expect)(driver.hourInput).toHaveAttribute("required");
866
866
  }));
867
- (0, fixtures_1.test)("has proper ARIA attributes for disabled state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
867
+ (0, fixtures_1.test)("has proper ARIA attributes for disabled state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
868
868
  yield initTestBed(`<TimeInput testId="timeInput" enabled="false" label="Disabled time" />`);
869
869
  const driver = yield createTimeInputDriver("timeInput");
870
870
  yield (0, fixtures_1.expect)(driver.hourInput).toBeDisabled();
871
871
  yield (0, fixtures_1.expect)(driver.minuteInput).toBeDisabled();
872
872
  }));
873
- (0, fixtures_1.test)("has proper ARIA attributes for readonly state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
873
+ (0, fixtures_1.test)("has proper ARIA attributes for readonly state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
874
874
  yield initTestBed(`<TimeInput testId="timeInput" readOnly="true" label="Readonly time" initialValue="14:30" />`);
875
875
  const driver = yield createTimeInputDriver("timeInput");
876
876
  yield (0, fixtures_1.expect)(driver.hourInput).toHaveAttribute("readonly");
@@ -891,14 +891,14 @@ fixtures_1.test.describe("Accessibility", () => {
891
891
  // THEME VARIABLE TESTS
892
892
  // =============================================================================
893
893
  fixtures_1.test.describe("Theme Variables", () => {
894
- (0, fixtures_1.test)("applies Input borderRadius theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
894
+ (0, fixtures_1.test)("applies Input borderRadius theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
895
895
  yield initTestBed(`<TimeInput testId="time-input" />`, {
896
896
  testThemeVars: { "borderRadius-TimeInput-default": "10px" },
897
897
  });
898
898
  const driver = yield createTimeInputDriver("time-input");
899
899
  yield (0, fixtures_1.expect)(driver.component).toHaveCSS("border-radius", "10px");
900
900
  }));
901
- (0, fixtures_1.test)("applies Input borderColor theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
901
+ (0, fixtures_1.test)("applies Input borderColor theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
902
902
  yield initTestBed(`<TimeInput testId="time-input" />`, {
903
903
  testThemeVars: { "borderColor-TimeInput-default": "rgb(255, 0, 0)" },
904
904
  });
@@ -948,7 +948,7 @@ fixtures_1.test.describe("Other Edge Cases", () => {
948
948
  yield driver.hourInput.blur();
949
949
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
950
950
  }));
951
- (0, fixtures_1.test)("handles very large numbers in time inputs", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
951
+ (0, fixtures_1.test)("handles very large numbers in time inputs", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
952
952
  yield initTestBed(`<TimeInput testId="timeInput" />`);
953
953
  const driver = yield createTimeInputDriver("timeInput");
954
954
  yield driver.hourInput.click();
@@ -957,7 +957,7 @@ fixtures_1.test.describe("Other Edge Cases", () => {
957
957
  yield driver.hourInput.blur();
958
958
  yield (0, fixtures_1.expect)(driver.component).toBeVisible();
959
959
  }));
960
- (0, fixtures_1.test)("handles multiple rapid clear button clicks", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
960
+ (0, fixtures_1.test)("handles multiple rapid clear button clicks", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
961
961
  yield initTestBed(`
962
962
  <TimeInput testId="timeInput" clearable="true" clearToInitialValue="false" initialValue="14:30" />
963
963
  `);
@@ -974,7 +974,7 @@ fixtures_1.test.describe("Other Edge Cases", () => {
974
974
  // EVENT TESTS
975
975
  // =============================================================================
976
976
  fixtures_1.test.describe("Events", () => {
977
- (0, fixtures_1.test)("didChange event fires when value changes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver }) {
977
+ (0, fixtures_1.test)("didChange event fires when value changes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
978
978
  const { testStateDriver } = yield initTestBed(`
979
979
  <TimeInput testId="timeInput" initialValue="03:28"
980
980
  onDidChange="arg => {testState = arg; console.log('arg', arg)}" />
@@ -1005,6 +1005,13 @@ fixtures_1.test.describe("Events", () => {
1005
1005
  yield driver.hourInput.focus();
1006
1006
  yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("focused");
1007
1007
  }));
1008
+ (0, fixtures_1.test)("gotFocus event fires on label click", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1009
+ const { testStateDriver } = yield initTestBed(`
1010
+ <TimeInput testId="timeInput" label="Time" onGotFocus="testState = 'focused'" />
1011
+ `);
1012
+ yield page.getByText("Time").click();
1013
+ yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("focused");
1014
+ }));
1008
1015
  (0, fixtures_1.test)("lostFocus event fires when component loses focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTimeInputDriver, }) {
1009
1016
  const { testStateDriver } = yield initTestBed(`
1010
1017
  <TimeInput testId="timeInput" onLostFocus="testState = 'blurred'" />
@@ -195,7 +195,7 @@ exports.TimeInputNative = (0, react_1.forwardRef)(function TimeInputNative(_a, r
195
195
  const timeString = formatTimeValue(timeValues.hour, timeValues.minute, timeValues.second, amPm, is12HourFormat);
196
196
  handleChange(timeString);
197
197
  }
198
- }, [hour, minute, second, amPm, is12HourFormat, handleChange]);
198
+ }, [hour, minute, second, formatTimeValue, amPm, is12HourFormat, handleChange]);
199
199
  // Handle changes from individual inputs
200
200
  const handleHourChange = (0, react_1.useMemo)(() => createInputChangeHandler("hour", setHour, setIsHourCurrentlyInvalid, (value) => isHourInvalid(value, !is12HourFormat)), [createInputChangeHandler, is12HourFormat]);
201
201
  const handleHourBlur = (0, react_1.useMemo)(() => createInputBlurHandler("hour", setHour, setIsHourCurrentlyInvalid, (value) => normalizeHour(value, !is12HourFormat)), [createInputBlurHandler, is12HourFormat]);
@@ -209,7 +209,7 @@ exports.TimeInputNative = (0, react_1.forwardRef)(function TimeInputNative(_a, r
209
209
  // Always call handleChange to update the time value
210
210
  const timeString = formatTimeValue(hour, minute, second, newAmPm, is12HourFormat);
211
211
  handleChange(timeString);
212
- }, [amPm, hour, minute, second, is12HourFormat, handleChange]);
212
+ }, [amPm, formatTimeValue, hour, minute, second, is12HourFormat, handleChange]);
213
213
  const handleAmPmSet = (0, react_1.useCallback)((targetAmPm) => {
214
214
  if (amPm === targetAmPm)
215
215
  return; // No change needed
@@ -217,7 +217,7 @@ exports.TimeInputNative = (0, react_1.forwardRef)(function TimeInputNative(_a, r
217
217
  // Always call handleChange to update the time value
218
218
  const timeString = formatTimeValue(hour, minute, second, targetAmPm, is12HourFormat);
219
219
  handleChange(timeString);
220
- }, [amPm, hour, minute, second, is12HourFormat, handleChange]);
220
+ }, [amPm, formatTimeValue, hour, minute, second, is12HourFormat, handleChange]);
221
221
  // Focus method
222
222
  const focus = (0, react_1.useCallback)(() => {
223
223
  var _a;
@@ -323,21 +323,7 @@ exports.TimeInputNative = (0, react_1.forwardRef)(function TimeInputNative(_a, r
323
323
  setTimeout(() => {
324
324
  focus();
325
325
  }, 0);
326
- }, [
327
- stableInitialValue,
328
- handleChange,
329
- localValue,
330
- controlledValue,
331
- hour,
332
- minute,
333
- second,
334
- amPm,
335
- setHour,
336
- setMinute,
337
- setSecond,
338
- setAmPm,
339
- focus,
340
- ]);
326
+ }, [clearToInitialValue, stableInitialValue, handleChange, is12HourFormat, focus]);
341
327
  function stopPropagation(event) {
342
328
  event.stopPropagation();
343
329
  }
@@ -441,7 +427,7 @@ function AmPmButton({ ariaLabel, autoFocus, className, disabled, locale, maxTime
441
427
  return ((0, jsx_runtime_1.jsx)("button", { type: "button", "data-part-id": PART_AMPM, "aria-label": ariaLabel || "Toggle AM/PM (Press A for AM, P for PM)", autoFocus: autoFocus, className: (0, classnames_1.default)(TimeInput_module_scss_1.default.amPmButton, TimeInput_module_scss_1.default.button, className), disabled: isDisabled, onClick: onClick, onKeyDown: handleKeyDown, ref: buttonRef, children: (0, jsx_runtime_1.jsx)("span", { className: TimeInput_module_scss_1.default.amPmValue, children: value ? (value === "am" ? amLabel : pmLabel) : "--" }) }));
442
428
  }
443
429
  function HourInput(_a) {
444
- var { amPm, maxTime, minTime, value, isInvalid = false, is24Hour = false, emptyCharacter = "-" } = _a, otherProps = __rest(_a, ["amPm", "maxTime", "minTime", "value", "isInvalid", "is24Hour", "emptyCharacter"]);
430
+ var { id, amPm, maxTime, minTime, value, isInvalid = false, is24Hour = false, emptyCharacter = "-" } = _a, otherProps = __rest(_a, ["id", "amPm", "maxTime", "minTime", "value", "isInvalid", "is24Hour", "emptyCharacter"]);
445
431
  // Calculate min/max based on format
446
432
  const { minHour, maxHour } = (() => {
447
433
  if (is24Hour) {
@@ -480,7 +466,7 @@ function HourInput(_a) {
480
466
  // Always show the raw value during typing, no conversion
481
467
  // This allows users to see invalid input like "23" before it gets normalized on blur
482
468
  const displayValue = value || "";
483
- return ((0, jsx_runtime_1.jsx)(PartialInput_1.PartialInput, { "data-part-id": PART_HOUR, value: displayValue, emptyCharacter: emptyCharacter, placeholderLength: 2, max: maxHour, min: minHour, maxLength: 2, validateFn: (val) => isHourInvalid(val, is24Hour), onChange: otherProps.onChange, onBlur: (direction, event) => {
469
+ return ((0, jsx_runtime_1.jsx)(PartialInput_1.PartialInput, { id: id, "data-part-id": PART_HOUR, value: displayValue, emptyCharacter: emptyCharacter, placeholderLength: 2, max: maxHour, min: minHour, maxLength: 2, validateFn: (val) => isHourInvalid(val, is24Hour), onChange: otherProps.onChange, onBlur: (direction, event) => {
484
470
  // PartialInput provides direction, but the current onBlur expects just the event
485
471
  if (otherProps.onBlur) {
486
472
  otherProps.onBlur(event);
@@ -65,7 +65,7 @@ exports.defaultProps = {
65
65
  indeterminate: false,
66
66
  };
67
67
  exports.Toggle = (0, react_2.forwardRef)(function Toggle(_a, forwardedRef) {
68
- var { id, initialValue = exports.defaultProps.initialValue, value = exports.defaultProps.value, enabled = exports.defaultProps.enabled, style, readOnly, validationStatus = exports.defaultProps.validationStatus, updateState = constants_1.noop, onClick = constants_1.noop, onDidChange = constants_1.noop, onFocus = constants_1.noop, onBlur = constants_1.noop, variant = "checkbox", indeterminate = exports.defaultProps.indeterminate, className, required, autoFocus, registerComponentApi, inputRenderer } = _a, rest = __rest(_a, ["id", "initialValue", "value", "enabled", "style", "readOnly", "validationStatus", "updateState", "onClick", "onDidChange", "onFocus", "onBlur", "variant", "indeterminate", "className", "required", "autoFocus", "registerComponentApi", "inputRenderer"]);
68
+ var { id, initialValue = exports.defaultProps.initialValue, value = exports.defaultProps.value, enabled = exports.defaultProps.enabled, style, readOnly, validationStatus = exports.defaultProps.validationStatus, updateState = constants_1.noop, onClick = constants_1.noop, onDidChange = constants_1.noop, onFocus = constants_1.noop, onBlur = constants_1.noop, variant = "checkbox", indeterminate = exports.defaultProps.indeterminate, className, required, autoFocus, registerComponentApi, inputRenderer, forceHover = false } = _a, rest = __rest(_a, ["id", "initialValue", "value", "enabled", "style", "readOnly", "validationStatus", "updateState", "onClick", "onDidChange", "onFocus", "onBlur", "variant", "indeterminate", "className", "required", "autoFocus", "registerComponentApi", "inputRenderer", "forceHover"]);
69
69
  const innerRef = react_2.default.useRef(null);
70
70
  const ref = innerRef ? (0, react_compose_refs_1.composeRefs)(forwardedRef, innerRef) : forwardedRef;
71
71
  const transformToLegitValue = (inp) => {
@@ -143,6 +143,7 @@ exports.Toggle = (0, react_2.forwardRef)(function Toggle(_a, forwardedRef) {
143
143
  [Toggle_module_scss_1.default.error]: validationStatus === "error",
144
144
  [Toggle_module_scss_1.default.warning]: validationStatus === "warning",
145
145
  [Toggle_module_scss_1.default.valid]: validationStatus === "valid",
146
+ [Toggle_module_scss_1.default.forceHover]: forceHover,
146
147
  }) })));
147
148
  }, [
148
149
  rest,
@@ -162,6 +163,7 @@ exports.Toggle = (0, react_2.forwardRef)(function Toggle(_a, forwardedRef) {
162
163
  variant,
163
164
  indeterminate,
164
165
  autoFocus,
166
+ forceHover,
165
167
  ]);
166
168
  return (inputRenderer ? ((0, jsx_runtime_1.jsxs)("label", { className: Toggle_module_scss_1.default.label, children: [(0, jsx_runtime_1.jsx)("div", { className: Toggle_module_scss_1.default.inputContainer, children: input }), inputRenderer({
167
169
  $checked: transformToLegitValue(value),