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.
- package/dist/tailwind.css +89 -78
- package/es/api/file.mjs +14 -1
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +5 -469
- package/es/components/hyAudioPlayer/audioPlayer2.vue.mjs +1321 -0
- package/es/components/hyAudioPlayer/hyAudioPlayer/audioPlayer.vue.mjs +472 -0
- package/es/components/hyAudioPlayer/{js → hyAudioPlayer/js}/index.mjs +5 -5
- package/es/components/hyAudioPlayer/index.mjs +2 -2
- package/es/components/hyAudioPlayer/locale/en_US.mjs +18 -0
- package/es/components/hyAudioPlayer/locale/index.mjs +2 -0
- package/es/components/hyAudioPlayer/locale/zh_CN.mjs +18 -0
- package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +9 -7
- package/es/components/hyForm/cpns/formItem.vue.mjs +2 -0
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +95 -49
- package/es/components/hyTable/table.vue.mjs +3 -3
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +2 -2
- package/es/components/hyVideoPlayer/videoPlayer2.vue.mjs +615 -336
- package/es/utils/timeUtils.mjs +8 -29
- package/es/version.mjs +1 -1
- package/lib/api/file.js +14 -0
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +5 -469
- package/lib/components/hyAudioPlayer/audioPlayer2.vue.js +1325 -0
- package/lib/components/hyAudioPlayer/hyAudioPlayer/audioPlayer.vue.js +476 -0
- package/lib/components/hyAudioPlayer/{js → hyAudioPlayer/js}/index.js +5 -5
- package/lib/components/hyAudioPlayer/locale/en_US.js +22 -0
- package/lib/components/hyAudioPlayer/locale/index.js +9 -0
- package/lib/components/hyAudioPlayer/locale/zh_CN.js +22 -0
- package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +11 -9
- package/lib/components/hyForm/cpns/formItem.vue.js +2 -0
- package/lib/components/hyRadioGroup/radioGroup.vue.js +94 -48
- package/lib/components/hyTable/table.vue.js +2 -2
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +2 -2
- package/lib/components/hyVideoPlayer/videoPlayer2.vue.js +614 -335
- package/lib/utils/timeUtils.js +8 -29
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/es/components/hyVideoPlayer/videoPlayer1.vue.mjs +0 -8
- package/es/components/hyVideoPlayer/videoPlayer12.vue.mjs +0 -947
- package/lib/components/hyVideoPlayer/videoPlayer1.vue.js +0 -12
- package/lib/components/hyVideoPlayer/videoPlayer12.vue.js +0 -951
- /package/es/components/hyAudioPlayer/{style → hyAudioPlayer/style}/audioPlayer.scss +0 -0
- /package/lib/components/hyAudioPlayer/{style → hyAudioPlayer/style}/audioPlayer.scss +0 -0
package/lib/utils/timeUtils.js
CHANGED
|
@@ -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
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
package/package.json
CHANGED
|
@@ -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 };
|