hy-dispatch-ui-v3 0.2.88 → 0.2.89

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 (41) hide show
  1. package/dist/tailwind.css +89 -78
  2. package/es/api/file.mjs +14 -1
  3. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +5 -469
  4. package/es/components/hyAudioPlayer/audioPlayer2.vue.mjs +1321 -0
  5. package/es/components/hyAudioPlayer/hyAudioPlayer/audioPlayer.vue.mjs +472 -0
  6. package/es/components/hyAudioPlayer/{js → hyAudioPlayer/js}/index.mjs +5 -5
  7. package/es/components/hyAudioPlayer/index.mjs +2 -2
  8. package/es/components/hyAudioPlayer/locale/en_US.mjs +18 -0
  9. package/es/components/hyAudioPlayer/locale/index.mjs +2 -0
  10. package/es/components/hyAudioPlayer/locale/zh_CN.mjs +18 -0
  11. package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +9 -7
  12. package/es/components/hyForm/cpns/formItem.vue.mjs +2 -0
  13. package/es/components/hyRadioGroup/radioGroup.vue.mjs +95 -49
  14. package/es/components/hyTable/table.vue.mjs +3 -3
  15. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +2 -2
  16. package/es/components/hyVideoPlayer/videoPlayer2.vue.mjs +615 -336
  17. package/es/utils/timeUtils.mjs +8 -29
  18. package/es/version.mjs +1 -1
  19. package/lib/api/file.js +14 -0
  20. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +5 -469
  21. package/lib/components/hyAudioPlayer/audioPlayer2.vue.js +1325 -0
  22. package/lib/components/hyAudioPlayer/hyAudioPlayer/audioPlayer.vue.js +476 -0
  23. package/lib/components/hyAudioPlayer/{js → hyAudioPlayer/js}/index.js +5 -5
  24. package/lib/components/hyAudioPlayer/locale/en_US.js +22 -0
  25. package/lib/components/hyAudioPlayer/locale/index.js +9 -0
  26. package/lib/components/hyAudioPlayer/locale/zh_CN.js +22 -0
  27. package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +11 -9
  28. package/lib/components/hyForm/cpns/formItem.vue.js +2 -0
  29. package/lib/components/hyRadioGroup/radioGroup.vue.js +94 -48
  30. package/lib/components/hyTable/table.vue.js +2 -2
  31. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +2 -2
  32. package/lib/components/hyVideoPlayer/videoPlayer2.vue.js +614 -335
  33. package/lib/utils/timeUtils.js +8 -29
  34. package/lib/version.js +1 -1
  35. package/package.json +1 -1
  36. package/es/components/hyVideoPlayer/videoPlayer1.vue.mjs +0 -8
  37. package/es/components/hyVideoPlayer/videoPlayer12.vue.mjs +0 -947
  38. package/lib/components/hyVideoPlayer/videoPlayer1.vue.js +0 -12
  39. package/lib/components/hyVideoPlayer/videoPlayer12.vue.js +0 -951
  40. /package/es/components/hyAudioPlayer/{style → hyAudioPlayer/style}/audioPlayer.scss +0 -0
  41. /package/lib/components/hyAudioPlayer/{style → hyAudioPlayer/style}/audioPlayer.scss +0 -0
@@ -54,35 +54,14 @@ function getCurDtm(cutOff = "-") {
54
54
  return getToday(cutOff) + " " + formatTime(/* @__PURE__ */ new Date()).join(":");
55
55
  }
56
56
  function formatSeconds(value) {
57
- let theTime = parseInt(value);
58
- let middle = 0;
59
- let hour = 0;
60
- if (theTime > 60) {
61
- middle = parseInt(theTime / 60);
62
- theTime = parseInt(theTime % 60);
63
- if (middle > 60) {
64
- hour = parseInt(middle / 60);
65
- middle = parseInt(middle % 60);
66
- }
67
- }
68
- let result = "" + parseInt(theTime);
69
- if (theTime < 10) {
70
- result = `00:0${parseInt(theTime)}`;
71
- } else {
72
- result = `00:${parseInt(theTime)}`;
73
- }
74
- if (middle > 0) {
75
- result = `${parseInt(theTime)}`;
76
- if (middle < 10) {
77
- result = "0" + parseInt(middle) + ":" + result;
78
- } else {
79
- result = "" + parseInt(middle) + ":" + result;
80
- }
81
- }
82
- if (hour > 0) {
83
- result = "" + parseInt(hour) + ":" + result;
84
- }
85
- return result;
57
+ let total = parseInt(value);
58
+ if (isNaN(total) || total < 0) total = 0;
59
+ const hour = Math.floor(total / 3600);
60
+ const minute = Math.floor(total % 3600 / 60);
61
+ const second = total % 60;
62
+ const pad = (num) => num < 10 ? `0${num}` : `${num}`;
63
+ const result = `${pad(minute)}:${pad(second)}`;
64
+ return hour > 0 ? `${hour}:${result}` : result;
86
65
  }
87
66
  function formatHoursToHM(hours) {
88
67
  hours = parseFloat(hours);
package/lib/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const version = "0.2.87";
3
+ const version = "0.2.88";
4
4
 
5
5
  exports.version = version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hy-dispatch-ui-v3",
3
- "version": "0.2.88",
3
+ "version": "0.2.89",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "scripts": {
@@ -1,8 +0,0 @@
1
- import _sfc_main from './videoPlayer12.vue.mjs';
2
- import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
-
4
- import "/data/jenkins-work/workspace/WEB-V3-PROJECT-Web-hy-dispatch-ui@2/tmp/packages/components/hyVideoPlayer/videoPlayer1.vue?vue&type=style&index=0&scoped=b38aede1&lang.scss";
5
-
6
- var videoPlayer1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b38aede1"]]);
7
-
8
- export { videoPlayer1 as default };