@idds/js 1.0.47 → 1.0.48

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.
@@ -1020,7 +1020,7 @@ var InaUI = (() => {
1020
1020
  const wrapper = picker.querySelector(".ina-time-picker__wrapper");
1021
1021
  if (!input || !wrapper) return;
1022
1022
  const format = picker.dataset.format || "HH:mm";
1023
- const use12Hours = picker.dataset.use12Hours === "true" || picker.getAttribute("data-use-12-hours") === "true";
1023
+ const use12Hours = picker.dataset.use12Hours === "true" || picker.getAttribute("data-use-12-hours") === "true" || /a/i.test(format);
1024
1024
  const showSecond = picker.dataset.showSecond === "true";
1025
1025
  const disabled = picker.classList.contains("ina-time-picker--disabled");
1026
1026
  const allowClear = picker.dataset.allowClear !== "false";
package/dist/index.js CHANGED
@@ -1344,7 +1344,7 @@ function initTimepicker() {
1344
1344
  const wrapper = picker.querySelector(".ina-time-picker__wrapper");
1345
1345
  if (!input || !wrapper) return;
1346
1346
  const format = picker.dataset.format || "HH:mm";
1347
- const use12Hours = picker.dataset.use12Hours === "true" || picker.getAttribute("data-use-12-hours") === "true";
1347
+ const use12Hours = picker.dataset.use12Hours === "true" || picker.getAttribute("data-use-12-hours") === "true" || /a/i.test(format);
1348
1348
  const showSecond = picker.dataset.showSecond === "true";
1349
1349
  const disabled = picker.classList.contains("ina-time-picker--disabled");
1350
1350
  const allowClear = picker.dataset.allowClear !== "false";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idds/js",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },