hy-dispatch-ui-v3 0.2.1 → 0.2.3

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 (71) hide show
  1. package/es/components/appConfigProvider/appConfigProvider.vue.mjs +3 -1
  2. package/es/components/appDatePicker/appDatePicker.vue.mjs +57 -3
  3. package/es/components/appDatePicker/index.mjs +2 -1
  4. package/es/components/appForm/cpns/appFormItem.vue.mjs +37 -7
  5. package/es/components/appForm/js/useAppForm.mjs +5 -40
  6. package/es/components/appIcon/appIcon.vue.mjs +5 -1
  7. package/es/components/appInput/appInput.vue.mjs +17 -15
  8. package/es/components/appInput/index.mjs +2 -1
  9. package/es/components/appSearch/cpns/appSearchItem.vue.mjs +33 -3
  10. package/es/components/appSearch/js/index.mjs +1 -1
  11. package/es/components/appSearch/js/useAppSearch.mjs +9 -39
  12. package/es/components/appTimePicker/appTimePicker.vue.mjs +154 -0
  13. package/es/components/appTimePicker/index.mjs +7 -0
  14. package/es/components/appTimePicker/style/appTimePicker.scss +0 -0
  15. package/es/components/appTree/appTree.vue.mjs +11 -8
  16. package/es/components/appTree/config/tree-config.mjs +33 -0
  17. package/es/components/appTree/js/index.mjs +10 -12
  18. package/es/components/appVideoPlayer/appVideoPlayer.vue.mjs +6 -6
  19. package/es/components/index.mjs +3 -2
  20. package/es/hooks/index.mjs +1 -0
  21. package/es/hooks/useEnsureHyIcon.mjs +12 -0
  22. package/es/hooks/useGlobalConfig.mjs +5 -0
  23. package/es/index.mjs +4 -2
  24. package/es/locale/en.mjs +21 -11
  25. package/es/locale/zh_CN.mjs +21 -11
  26. package/es/static/_sprite.js +33 -0
  27. package/es/static/hy-svg-icons/ai.js +30 -0
  28. package/es/static/hy-svg-icons/batch.js +8 -0
  29. package/es/static/hy-svg-icons.js +10 -10
  30. package/es/static/index.js +2 -2
  31. package/es/static/protocolcheck.js +109 -85
  32. package/es/static/vite-plugin-hy-svg-icons.js +240 -0
  33. package/es/utils/date.mjs +1 -0
  34. package/es/utils/handler.mjs +2 -2
  35. package/es/version.mjs +1 -1
  36. package/lib/components/appConfigProvider/appConfigProvider.vue.js +3 -1
  37. package/lib/components/appDatePicker/appDatePicker.vue.js +56 -2
  38. package/lib/components/appDatePicker/index.js +2 -0
  39. package/lib/components/appForm/cpns/appFormItem.vue.js +38 -8
  40. package/lib/components/appForm/js/useAppForm.js +5 -40
  41. package/lib/components/appIcon/appIcon.vue.js +4 -0
  42. package/lib/components/appInput/appInput.vue.js +17 -15
  43. package/lib/components/appInput/index.js +2 -0
  44. package/lib/components/appSearch/cpns/appSearchItem.vue.js +34 -4
  45. package/lib/components/appSearch/js/index.js +1 -1
  46. package/lib/components/appSearch/js/useAppSearch.js +9 -39
  47. package/lib/components/appTimePicker/appTimePicker.vue.js +158 -0
  48. package/lib/components/appTimePicker/index.js +13 -0
  49. package/lib/components/appTimePicker/style/appTimePicker.scss +0 -0
  50. package/lib/components/appTree/appTree.vue.js +10 -7
  51. package/lib/components/appTree/config/tree-config.js +37 -0
  52. package/lib/components/appTree/js/index.js +10 -12
  53. package/lib/components/appVideoPlayer/appVideoPlayer.vue.js +6 -6
  54. package/lib/components/index.js +13 -8
  55. package/lib/hooks/index.js +3 -0
  56. package/lib/hooks/useEnsureHyIcon.js +15 -0
  57. package/lib/hooks/useGlobalConfig.js +5 -0
  58. package/lib/index.js +16 -8
  59. package/lib/locale/en.js +21 -11
  60. package/lib/locale/zh_CN.js +21 -11
  61. package/lib/static/_sprite.js +33 -0
  62. package/lib/static/hy-svg-icons/ai.js +30 -0
  63. package/lib/static/hy-svg-icons/batch.js +8 -0
  64. package/lib/static/hy-svg-icons.js +10 -12
  65. package/lib/static/index.js +2 -5
  66. package/lib/static/protocolcheck.js +109 -87
  67. package/lib/static/vite-plugin-hy-svg-icons.js +240 -0
  68. package/lib/utils/date.js +1 -0
  69. package/lib/utils/handler.js +2 -2
  70. package/lib/version.js +1 -1
  71. package/package.json +3 -3
@@ -7,16 +7,6 @@ var zh_CN = {
7
7
  hy: {
8
8
  language: "\u8BED\u8A00",
9
9
  help: "\u5E2E\u52A9",
10
- startYear: "\u5F00\u59CB\u5E74\u4EFD",
11
- endYear: "\u7ED3\u675F\u5E74\u4EFD",
12
- startMonth: "\u5F00\u59CB\u6708\u4EFD",
13
- endMonth: "\u7ED3\u675F\u6708\u4EFD",
14
- startDate: "\u5F00\u59CB\u65E5\u671F",
15
- endDate: "\u7ED3\u675F\u65E5\u671F",
16
- startTime: "\u5F00\u59CB\u65F6\u95F4",
17
- endTime: "\u7ED3\u675F\u65F6\u95F4",
18
- startDateTime: "\u5F00\u59CB\u65E5\u671F\u65F6\u95F4",
19
- endDateTime: "\u7ED3\u675F\u65E5\u671F\u65F6\u95F4",
20
10
  pleaseEnterPlaceholder: "\u8BF7\u8F93\u5165{0}",
21
11
  pleaseSelectPlaceholder: "\u8BF7\u9009\u62E9{0}",
22
12
  cannotBeEmpty: "{0}\u4E0D\u80FD\u4E3A\u7A7A",
@@ -114,7 +104,11 @@ var zh_CN = {
114
104
  pleaseGoToTheBrowserSettingsAndClickOnTheDownloadOrCopyLinkToOpenInTheBrowser: "\u8BF7\u524D\u5F80\u6D4F\u89C8\u5668\u8BBE\u7F6E\u540E\u5728\u70B9\u51FB\u4E0B\u8F7D \u6216 \u590D\u5236\u94FE\u63A5\u5230\u6D4F\u89C8\u5668\u6253\u5F00",
115
105
  copyLink: "\u590D\u5236\u94FE\u63A5",
116
106
  fullScreenSwitch: "\u5168\u5C4F\u5207\u6362",
117
- pleaseConfigureTheAddressForDownloadingVLC: "\u8BF7\u914D\u7F6E\u524D\u5F80\u4E0B\u8F7DVLC\u7684\u5730\u5740"
107
+ pleaseConfigureTheAddressForDownloadingVLC: "\u8BF7\u914D\u7F6E\u524D\u5F80\u4E0B\u8F7DVLC\u7684\u5730\u5740",
108
+ viewThePreviousVideo: "\u67E5\u770B\u4E0A\u4E00\u6761\u89C6\u9891",
109
+ viewTheNextVideo: "\u67E5\u770B\u4E0B\u4E00\u6761\u89C6\u9891",
110
+ packUp: "\u6536\u8D77",
111
+ expand: "\u5C55\u5F00"
118
112
  },
119
113
  audioPlayer: {
120
114
  clickPlay: "\u70B9\u51FB\u64AD\u653E",
@@ -127,6 +121,22 @@ var zh_CN = {
127
121
  currentIsTheFirstItem: "\u5F53\u524D\u662F\u7B2C\u4E00\u6761",
128
122
  currentIsTheLastItem: "\u5F53\u524D\u662F\u6700\u540E\u4E00\u6761",
129
123
  downloadFile: "\u4E0B\u8F7D\u6587\u4EF6"
124
+ },
125
+ timePicker: {
126
+ to: "\u81F3",
127
+ startTime: "\u5F00\u59CB\u65F6\u95F4",
128
+ endTime: "\u7ED3\u675F\u65F6\u95F4"
129
+ },
130
+ datePicker: {
131
+ to: "\u81F3",
132
+ startDate: "\u5F00\u59CB\u65E5\u671F",
133
+ endDate: "\u7ED3\u675F\u65E5\u671F",
134
+ startDateTime: "\u5F00\u59CB\u65E5\u671F\u65F6\u95F4",
135
+ endDateTime: "\u7ED3\u675F\u65E5\u671F\u65F6\u95F4",
136
+ startMonth: "\u5F00\u59CB\u6708\u4EFD",
137
+ endMonth: "\u7ED3\u675F\u6708\u4EFD",
138
+ startYear: "\u5F00\u59CB\u5E74\u4EFD",
139
+ endYear: "\u7ED3\u675F\u5E74\u4EFD"
130
140
  }
131
141
  };
132
142
 
@@ -0,0 +1,33 @@
1
+ const SPRITE_ID = '__HY_DISPATCH_UI_SVG_SPRITE_NODE__'
2
+ const SVG_NS = 'http://www.w3.org/2000/svg'
3
+
4
+ function ensureSprite() {
5
+ if (typeof window === 'undefined' || typeof document === 'undefined') return null
6
+ let svg = document.getElementById(SPRITE_ID)
7
+ if (svg) return svg
8
+ svg = document.createElementNS(SVG_NS, 'svg')
9
+ svg.setAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink')
10
+ svg.setAttribute('id', SPRITE_ID)
11
+ svg.style.setProperty('position', 'absolute')
12
+ svg.style.setProperty('width', '0px')
13
+ svg.style.setProperty('height', '0px')
14
+ svg.innerHTML = '<defs></defs>'
15
+ const mount = () => {
16
+ if (document.getElementById(SPRITE_ID)) return
17
+ document.body.insertBefore(svg, document.body.firstChild)
18
+ }
19
+ if (document.body) mount()
20
+ else document.addEventListener('DOMContentLoaded', mount, { once: true })
21
+ return svg
22
+ }
23
+
24
+ export function registerSymbol({ id, defs = '', symbol }) {
25
+ const svg = ensureSprite()
26
+ if (!svg) return
27
+ if (id && document.getElementById(id)) return
28
+ if (defs) {
29
+ const defsNode = svg.querySelector('defs')
30
+ if (defsNode) defsNode.insertAdjacentHTML('beforeend', defs)
31
+ }
32
+ svg.insertAdjacentHTML('beforeend', symbol)
33
+ }
@@ -0,0 +1,30 @@
1
+ export default {
2
+ id: 'hy-icon-system-v3-ai-interpretation-ai',
3
+ defs: `<linearGradient x1="25.1644341%" y1="16.3345334%" x2="79.7208027%" y2="91.4640074%" id="hy-icon-system-v3-ai-interpretation-ai-linearGradient-1">
4
+ <stop stop-color="#9859DB" offset="0%"/>
5
+ <stop stop-color="#452980" offset="77.3927837%"/>
6
+ <stop stop-color="#5F2DB4" offset="100%"/>
7
+ </linearGradient>
8
+ <radialGradient cx="10.3906827%" cy="5.64880091%" fx="10.3906827%" fy="5.64880091%" r="50%" id="hy-icon-system-v3-ai-interpretation-ai-radialGradient-2">
9
+ <stop stop-color="#CE6CFB" offset="0%"/>
10
+ <stop stop-color="#CE6CFB" stop-opacity="0" offset="100%"/>
11
+ </radialGradient>
12
+ <circle id="hy-icon-system-v3-ai-interpretation-ai-path-3" cx="9" cy="9" r="9"/>
13
+ <linearGradient x1="14.1579629%" y1="15.2062525%" x2="89.8583432%" y2="78.1093584%" id="hy-icon-system-v3-ai-interpretation-ai-linearGradient-4">
14
+ <stop stop-color="#D773FF" offset="0%"/>
15
+ <stop stop-color="#D773FF" stop-opacity="0.156659747" offset="100%"/>
16
+ </linearGradient>`,
17
+ symbol: `<symbol id="hy-icon-system-v3-ai-interpretation-ai" viewBox="0 0 18 18">
18
+ <g id="hy-icon-system-v3-ai-interpretation-ai-AI" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
19
+ <g id="hy-icon-system-v3-ai-interpretation-ai-&#x692D;&#x5706;&#x5F62;&#x5907;&#x4EFD;-8">
20
+ <use fill="url(#hy-icon-system-v3-ai-interpretation-ai-linearGradient-1)" xlink:href="#hy-icon-system-v3-ai-interpretation-ai-path-3"/>
21
+ <use fill="url(#hy-icon-system-v3-ai-interpretation-ai-radialGradient-2)" xlink:href="#hy-icon-system-v3-ai-interpretation-ai-path-3"/>
22
+ </g>
23
+ <path d="M9,0 C13.9705627,0 18,4.02943725 18,9 C18,13.9705627 13.9705627,18 9,18 C4.02943725,18 0,13.9705627 0,9 C0,4.02943725 4.02943725,0 9,0 Z M9,0.75 C4.44365081,0.75 0.75,4.44365081 0.75,9 C0.75,13.5563492 4.44365081,17.25 9,17.25 C13.5563492,17.25 17.25,13.5563492 17.25,9 C17.25,4.44365081 13.5563492,0.75 9,0.75 Z" id="hy-icon-system-v3-ai-interpretation-ai-&#x692D;&#x5706;&#x5F62;&#x5907;&#x4EFD;-9" fill="url(#hy-icon-system-v3-ai-interpretation-ai-linearGradient-4)" fill-rule="nonzero"/>
24
+ <g transform="translate(4.32, 5.625)" fill="#FFFFFF" fill-rule="nonzero">
25
+ <path d="M4.50052305,0 L1.85042167,0 L0,6.75 L1.59006083,6.75 L1.99919929,5.16634615 L4.22156501,5.16634615 L4.64000207,6.75 L6.36024331,6.75 L4.50052305,0 Z M3.90541256,3.95480769 L2.31535173,3.95480769 L2.88256641,1.81730769 C2.96625383,1.51442308 3.04064264,1.20288462 3.09643424,0.891346154 L3.14292725,0.891346154 C3.18942026,1.20288462 3.26380907,1.51442308 3.34749648,1.81730769 L3.90541256,3.95480769 Z" id="hy-icon-system-v3-ai-interpretation-ai-&#x5F62;&#x72B6;"/>
26
+ <polygon id="hy-icon-system-v3-ai-interpretation-ai-&#x8DEF;&#x5F84;" points="9 0 7.27975875 0 7.27975875 6.75 9 6.75"/>
27
+ </g>
28
+ </g>
29
+ </symbol>`,
30
+ };
@@ -0,0 +1,8 @@
1
+ export default {
2
+ id: 'hy-icon-sss-batch',
3
+ symbol: `</symbol><symbol id="hy-icon-sss-batch" viewBox="0 0 14 14">
4
+ <g id="hy-icon-sss-batch-button-IC/batch" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <path d="M4.66563015,7.875 L3.80848729,7.875 L3.80848729,9.55050024 L0,9.55050024 L0,11.4823884 L3.80848729,11.4823884 L3.80848729,13.125 L4.66563015,13.125 L7.74448729,10.933 C8.09420158,10.711 8.09420158,10.289 7.74448729,10.067 L4.66563015,7.875 Z M9.1458719,0.201 C9.02146373,0.072 8.85199435,0 8.67566781,0 L1.71428571,0 C1.1637551,0 0.857142857,0.308 0.857142857,0.875 L0.857142857,7 L2.74613679,7 L2.74613679,1.82308504 L7.87815167,1.82308504 L7.87815167,4.375 C7.87815167,4.753 8.36794759,5.25 8.73529453,5.25 L11.3067231,5.25 L11.3184782,12.25 L8.73529453,12.25 L8.73529453,14 L12.3501168,14 C12.9006474,14 13.2072597,13.692 13.2072597,13.125 L13.2072597,4.659 C13.2072597,4.477 13.136729,4.303 13.0123209,4.175 L9.1458719,0.201 Z" id="hy-icon-sss-batch-&#x5F62;&#x72B6;" fill="#FFFFFF" fill-rule="nonzero"/>
6
+ </g>
7
+ </symbol>`,
8
+ };