@m3ui-vue/m3ui-vue 1.2.1 → 1.3.0
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/API.md +2914 -348
- package/dist/MButton-CuNzpoxm.js +172 -0
- package/dist/MButton-CuNzpoxm.js.map +1 -0
- package/dist/MDialog-HxEL-m58.js +173 -0
- package/dist/MDialog-HxEL-m58.js.map +1 -0
- package/dist/MIconButton-DoNotQ9v.js +282 -0
- package/dist/MIconButton-DoNotQ9v.js.map +1 -0
- package/dist/MListItem-DnPtv-hY.js +824 -0
- package/dist/MListItem-DnPtv-hY.js.map +1 -0
- package/dist/MLoadingIndicator-BQMNX6Dx.js +115 -0
- package/dist/MLoadingIndicator-BQMNX6Dx.js.map +1 -0
- package/dist/MMenuItem-Bih0h4-n.js +604 -0
- package/dist/MMenuItem-Bih0h4-n.js.map +1 -0
- package/dist/MProgressBar-BCoruxA-.js +184 -0
- package/dist/MProgressBar-BCoruxA-.js.map +1 -0
- package/dist/MSeekBar-LURE1Ah7.js +435 -0
- package/dist/MSeekBar-LURE1Ah7.js.map +1 -0
- package/dist/MSegmentedButton-DL9JtJFX.js +65 -0
- package/dist/MSegmentedButton-DL9JtJFX.js.map +1 -0
- package/dist/MSlider-_J4IS2_z.js +691 -0
- package/dist/MSlider-_J4IS2_z.js.map +1 -0
- package/dist/MSpinner-BhkMYKOM.js +65 -0
- package/dist/MSpinner-BhkMYKOM.js.map +1 -0
- package/dist/MTextField-CkzwNBWS.js +296 -0
- package/dist/MTextField-CkzwNBWS.js.map +1 -0
- package/dist/MTooltip-B67ZDSGp.js +756 -0
- package/dist/MTooltip-B67ZDSGp.js.map +1 -0
- package/dist/_storageKeys-CYXsUBwK.js +18 -0
- package/dist/_storageKeys-CYXsUBwK.js.map +1 -0
- package/dist/_useEscapeStack-CjndQhqg.js +19 -0
- package/dist/_useEscapeStack-CjndQhqg.js.map +1 -0
- package/dist/api.json +1 -1
- package/dist/chart.js +1 -1
- package/dist/code-editor.js +1 -1
- package/dist/components/MAudioPlayer.vue.d.ts +115 -0
- package/dist/components/MBadge.vue.d.ts +1 -1
- package/dist/components/MBottomSheetScaffold.vue.d.ts +1 -1
- package/dist/components/MBox.vue.d.ts +1 -1
- package/dist/components/MButton.vue.d.ts +1 -1
- package/dist/components/MConfirmDialog.vue.d.ts +1 -1
- package/dist/components/MCopyButton.vue.d.ts +2 -2
- package/dist/components/MDataTable.vue.d.ts +2 -2
- package/dist/components/MDialog.vue.d.ts +2 -2
- package/dist/components/MDivider.vue.d.ts +1 -1
- package/dist/components/MDragHandle.vue.d.ts +1 -1
- package/dist/components/MDrawCanvas.vue.d.ts +148 -0
- package/dist/components/MDrawLayers.vue.d.ts +3 -0
- package/dist/components/MDrawToolbar.vue.d.ts +34 -0
- package/dist/components/MExportButton.vue.d.ts +1 -1
- package/dist/components/MFab.vue.d.ts +2 -2
- package/dist/components/MFabMenu.vue.d.ts +2 -2
- package/dist/components/MFixed.vue.d.ts +1 -1
- package/dist/components/MFlex.vue.d.ts +2 -2
- package/dist/components/MFloorPlan.vue.d.ts +160 -0
- package/dist/components/MFlow.vue.d.ts +305 -0
- package/dist/components/MFlowControls.vue.d.ts +33 -0
- package/dist/components/MFlowHandle.vue.d.ts +16 -0
- package/dist/components/MFlowMinimap.vue.d.ts +22 -0
- package/dist/components/MFlowNode.vue.d.ts +35 -0
- package/dist/components/MGantt.vue.d.ts +141 -0
- package/dist/components/MGanttControls.vue.d.ts +32 -0
- package/dist/components/MIconButton.vue.d.ts +3 -1
- package/dist/components/MImageCropper.vue.d.ts +110 -0
- package/dist/components/MInfiniteScroll.vue.d.ts +1 -1
- package/dist/components/MLightbox.vue.d.ts +2 -2
- package/dist/components/MList.vue.d.ts +1 -1
- package/dist/components/MLoadingOverlay.vue.d.ts +1 -1
- package/dist/components/MMap.vue.d.ts +1 -1
- package/dist/components/MMapControl.vue.d.ts +1 -1
- package/dist/components/MMapSearch.vue.d.ts +1 -1
- package/dist/components/MMaskField.vue.d.ts +12 -1
- package/dist/components/MMenu.vue.d.ts +1 -1
- package/dist/components/MNavigationDrawer.vue.d.ts +1 -1
- package/dist/components/MNumberField.vue.d.ts +11 -2
- package/dist/components/MPdfViewer.vue.d.ts +174 -0
- package/dist/components/MPullToRefresh.vue.d.ts +1 -1
- package/dist/components/MResourceTimeline.vue.d.ts +149 -0
- package/dist/components/MScheduler.vue.d.ts +3 -3
- package/dist/components/MScheme.vue.d.ts +1 -1
- package/dist/components/MSearchField.vue.d.ts +1 -1
- package/dist/components/MSeekBar.vue.d.ts +1 -1
- package/dist/components/MSimpleCarousel.vue.d.ts +1 -1
- package/dist/components/MSkeleton.vue.d.ts +1 -1
- package/dist/components/MSlider.vue.d.ts +4 -4
- package/dist/components/MSparkline.vue.d.ts +1 -1
- package/dist/components/MSplitter.vue.d.ts +1 -1
- package/dist/components/MStack.vue.d.ts +2 -2
- package/dist/components/MSwipeToDismiss.vue.d.ts +1 -1
- package/dist/components/MSwitch.vue.d.ts +1 -1
- package/dist/components/MTable.vue.d.ts +1 -1
- package/dist/components/MTagInput.vue.d.ts +12 -1
- package/dist/components/MTextField.vue.d.ts +13 -2
- package/dist/components/MToolbar.vue.d.ts +1 -1
- package/dist/components/MTree.vue.d.ts +2 -2
- package/dist/components/MVideoPlayer.vue.d.ts +253 -0
- package/dist/components/MVirtualTable.vue.d.ts +1 -1
- package/dist/components/MWindow.vue.d.ts +3 -3
- package/dist/components/_MFlowEdge.vue.d.ts +9 -0
- package/dist/components/_MFlowEdgeLabel.vue.d.ts +9 -0
- package/dist/components/_MFlowNodeShell.vue.d.ts +9 -0
- package/dist/components/_MPdfPage.vue.d.ts +76 -0
- package/dist/components/_MTimeBackground.vue.d.ts +14 -0
- package/dist/components/_MTimeHeader.vue.d.ts +20 -0
- package/dist/composables/_effectCanvas.d.ts +23 -0
- package/dist/composables/_flowPanel.d.ts +2 -0
- package/dist/composables/_flowSlot.d.ts +5 -0
- package/dist/composables/_ganttTime.d.ts +41 -0
- package/dist/composables/_storageKeys.d.ts +9 -0
- package/dist/composables/_useTimeAxis.d.ts +90 -0
- package/dist/composables/drawGeometry.d.ts +119 -0
- package/dist/composables/flowFormats.d.ts +79 -0
- package/dist/composables/flowLayout.d.ts +45 -0
- package/dist/composables/flowPaths.d.ts +53 -0
- package/dist/composables/ganttFormats.d.ts +52 -0
- package/dist/composables/ganttSchedule.d.ts +99 -0
- package/dist/composables/themeInitScript.d.ts +2 -0
- package/dist/composables/useConfetti.d.ts +19 -8
- package/dist/composables/useDrawing.d.ts +44 -0
- package/dist/composables/useFireworks.d.ts +37 -0
- package/dist/composables/useFlow.d.ts +266 -0
- package/dist/composables/useGantt.d.ts +87 -0
- package/dist/composables/useLocale.d.ts +163 -0
- package/dist/composables/useMediaPlayer.d.ts +101 -0
- package/dist/composables/usePdf.d.ts +119 -0
- package/dist/composables/useReactions.d.ts +32 -0
- package/dist/composables/useResourceTimeline.d.ts +70 -0
- package/dist/composables/viewportHints.d.ts +2 -0
- package/dist/directives/vSparkle.d.ts +27 -0
- package/dist/draw.d.ts +7 -0
- package/dist/draw.js +1700 -0
- package/dist/draw.js.map +1 -0
- package/dist/flow.d.ts +14 -0
- package/dist/flow.js +3542 -0
- package/dist/flow.js.map +1 -0
- package/dist/flowPaths-CUc6X373.js +161 -0
- package/dist/flowPaths-CUc6X373.js.map +1 -0
- package/dist/gantt.d.ts +12 -0
- package/dist/gantt.js +3575 -0
- package/dist/gantt.js.map +1 -0
- package/dist/index.d.ts +11 -1
- package/dist/locales/index.js +1148 -7
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +7822 -7809
- package/dist/m3ui.js.map +1 -1
- package/dist/map.js +593 -588
- package/dist/map.js.map +1 -1
- package/dist/media.d.ts +5 -0
- package/dist/media.js +1311 -0
- package/dist/media.js.map +1 -0
- package/dist/pdf.d.ts +4 -0
- package/dist/pdf.js +1871 -0
- package/dist/pdf.js.map +1 -0
- package/dist/plugin.d.ts +10 -0
- package/dist/rich-text-editor.js +28 -26
- package/dist/rich-text-editor.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/{useLocale-JYxDDeXC.js → useLocale-BpGxplLV.js} +165 -2
- package/dist/useLocale-BpGxplLV.js.map +1 -0
- package/dist/{useThemeTokens-Bv-Uv8eX.js → useThemeTokens-DQQcaWbE.js} +41 -40
- package/dist/useThemeTokens-DQQcaWbE.js.map +1 -0
- package/package.json +29 -5
- package/src/__tests__/MAudioPlayer.test.ts +75 -0
- package/src/__tests__/MDrawCanvas.test.ts +110 -0
- package/src/__tests__/MFloorPlan.test.ts +97 -0
- package/src/__tests__/MFlow.test.ts +575 -0
- package/src/__tests__/MGantt.test.ts +130 -0
- package/src/__tests__/MImageCropper.test.ts +89 -0
- package/src/__tests__/MPdfViewer.test.ts +235 -0
- package/src/__tests__/MResourceTimeline.test.ts +102 -0
- package/src/__tests__/MSlider.test.ts +36 -0
- package/src/__tests__/MVideoPlayer.test.ts +201 -0
- package/src/__tests__/drawGeometry.test.ts +58 -0
- package/src/__tests__/fieldExpose.test.ts +30 -0
- package/src/__tests__/flowFormats.test.ts +185 -0
- package/src/__tests__/flowLayout.test.ts +113 -0
- package/src/__tests__/ganttFormats.test.ts +76 -0
- package/src/__tests__/ganttSchedule.test.ts +136 -0
- package/src/__tests__/pdfMock.ts +83 -0
- package/src/__tests__/plugin.test.ts +56 -1
- package/src/__tests__/ssr.test.ts +1 -1
- package/src/__tests__/themeInitScript.test.ts +10 -0
- package/src/__tests__/useConfetti.test.ts +33 -2
- package/src/__tests__/useFireworks.test.ts +104 -0
- package/src/__tests__/useMediaPlayer.test.ts +182 -0
- package/src/__tests__/usePdf.test.ts +102 -0
- package/src/__tests__/useReactions.test.ts +51 -0
- package/src/__tests__/vSparkle.test.ts +83 -0
- package/src/components/MAudioPlayer.vue +319 -0
- package/src/components/MDrawCanvas.vue +813 -0
- package/src/components/MDrawLayers.vue +114 -0
- package/src/components/MDrawToolbar.vue +171 -0
- package/src/components/MEmojiSelector.vue +3 -2
- package/src/components/MFloorPlan.vue +581 -0
- package/src/components/MFlow.vue +2049 -0
- package/src/components/MFlowControls.vue +110 -0
- package/src/components/MFlowHandle.vue +60 -0
- package/src/components/MFlowMinimap.vue +134 -0
- package/src/components/MFlowNode.vue +98 -0
- package/src/components/MGantt.vue +1609 -0
- package/src/components/MGanttControls.vue +77 -0
- package/src/components/MIconButton.vue +3 -1
- package/src/components/MImageCropper.vue +507 -0
- package/src/components/MMap.vue +3 -2
- package/src/components/MMaskField.vue +13 -0
- package/src/components/MNumberField.vue +13 -0
- package/src/components/MPdfViewer.vue +1269 -0
- package/src/components/MResourceTimeline.vue +1020 -0
- package/src/components/MSlider.vue +22 -4
- package/src/components/MTagInput.vue +13 -0
- package/src/components/MTextField.vue +24 -4
- package/src/components/MVideoPlayer.vue +839 -0
- package/src/components/_MFlowEdge.vue +100 -0
- package/src/components/_MFlowEdgeLabel.vue +56 -0
- package/src/components/_MFlowNodeShell.vue +111 -0
- package/src/components/_MPdfPage.vue +456 -0
- package/src/components/_MTimeBackground.vue +16 -0
- package/src/components/_MTimeHeader.vue +31 -0
- package/src/composables/_colorUtils.ts +4 -2
- package/src/composables/_effectCanvas.ts +109 -0
- package/src/composables/_flowPanel.ts +13 -0
- package/src/composables/_flowSlot.ts +6 -0
- package/src/composables/_ganttTime.ts +200 -0
- package/src/composables/_ssrState.ts +2 -2
- package/src/composables/_storageKeys.ts +28 -0
- package/src/composables/_useTimeAxis.ts +224 -0
- package/src/composables/drawGeometry.ts +405 -0
- package/src/composables/flowFormats.ts +916 -0
- package/src/composables/flowLayout.ts +297 -0
- package/src/composables/flowPaths.ts +239 -0
- package/src/composables/ganttFormats.ts +366 -0
- package/src/composables/ganttSchedule.ts +403 -0
- package/src/composables/themeInitScript.ts +5 -2
- package/src/composables/useColorPalette.ts +36 -8
- package/src/composables/useConfetti.ts +84 -107
- package/src/composables/useDrawing.ts +53 -0
- package/src/composables/useFireworks.ts +360 -0
- package/src/composables/useFlow.ts +250 -0
- package/src/composables/useGantt.ts +92 -0
- package/src/composables/useLocale.ts +328 -0
- package/src/composables/useMediaPlayer.ts +406 -0
- package/src/composables/usePdf.ts +456 -0
- package/src/composables/useReactions.ts +131 -0
- package/src/composables/useResourceTimeline.ts +76 -0
- package/src/composables/useTheme.ts +21 -4
- package/src/composables/viewportHints.ts +6 -5
- package/src/directives/vSparkle.ts +180 -0
- package/src/draw.ts +25 -0
- package/src/flow.ts +26 -0
- package/src/gantt.ts +12 -0
- package/src/index.ts +11 -1
- package/src/locales/de.ts +163 -0
- package/src/locales/es.ts +163 -0
- package/src/locales/fr.ts +163 -0
- package/src/locales/ja.ts +163 -0
- package/src/locales/ko.ts +163 -0
- package/src/locales/pt.ts +163 -0
- package/src/locales/zh.ts +163 -0
- package/src/media.ts +5 -0
- package/src/pdf.ts +15 -0
- package/src/plugin.ts +21 -5
- package/dist/MMenuItem-DI351kIf.js +0 -929
- package/dist/MMenuItem-DI351kIf.js.map +0 -1
- package/dist/MSlider-BnEy5ieZ.js +0 -1500
- package/dist/MSlider-BnEy5ieZ.js.map +0 -1
- package/dist/MTextField-BBmkaIbO.js +0 -633
- package/dist/MTextField-BBmkaIbO.js.map +0 -1
- package/dist/useLocale-JYxDDeXC.js.map +0 -1
- package/dist/useThemeTokens-Bv-Uv8eX.js.map +0 -1
package/src/locales/pt.ts
CHANGED
|
@@ -228,4 +228,167 @@ export const ptLocale: M3Locale = {
|
|
|
228
228
|
mapSearchPlaces: 'Pesquisar lugares',
|
|
229
229
|
timelineShowMore: 'Mostrar mais {count}',
|
|
230
230
|
timelineShowLess: 'Mostrar menos',
|
|
231
|
+
mediaPlayer: 'Player de mídia',
|
|
232
|
+
mediaPlay: 'Reproduzir',
|
|
233
|
+
mediaPause: 'Pausar',
|
|
234
|
+
mediaReplay: 'Assistir novamente',
|
|
235
|
+
mediaSeekBack: 'Voltar {seconds} segundos',
|
|
236
|
+
mediaSeekForward: 'Avançar {seconds} segundos',
|
|
237
|
+
mediaSeconds: '{seconds} segundos',
|
|
238
|
+
mediaMute: 'Silenciar',
|
|
239
|
+
mediaUnmute: 'Ativar som',
|
|
240
|
+
mediaVolume: 'Volume',
|
|
241
|
+
mediaFullscreen: 'Tela cheia',
|
|
242
|
+
mediaExitFullscreen: 'Sair da tela cheia',
|
|
243
|
+
mediaPictureInPicture: 'Picture-in-picture',
|
|
244
|
+
mediaSettings: 'Configurações',
|
|
245
|
+
mediaSpeed: 'Velocidade de reprodução',
|
|
246
|
+
mediaSpeedNormal: 'Normal',
|
|
247
|
+
mediaSubtitles: 'Legendas',
|
|
248
|
+
mediaSubtitlesOff: 'Desativadas',
|
|
249
|
+
mediaQuality: 'Qualidade',
|
|
250
|
+
mediaQualityAuto: 'Automática',
|
|
251
|
+
mediaLive: 'Ao vivo',
|
|
252
|
+
mediaError: 'Não é possível reproduzir esta mídia',
|
|
253
|
+
mediaRepeat: 'Repetir',
|
|
254
|
+
mediaRepeatOne: 'Repetir uma',
|
|
255
|
+
mediaShuffle: 'Aleatório',
|
|
256
|
+
pdfViewer: 'Visualizador de PDF',
|
|
257
|
+
pdfThumbnails: 'Páginas',
|
|
258
|
+
pdfOutline: 'Sumário',
|
|
259
|
+
pdfPage: 'Página',
|
|
260
|
+
pdfZoom: 'Zoom',
|
|
261
|
+
pdfZoomIn: 'Aumentar zoom',
|
|
262
|
+
pdfZoomOut: 'Diminuir zoom',
|
|
263
|
+
pdfFitWidth: 'Ajustar à largura',
|
|
264
|
+
pdfFitPage: 'Ajustar à página',
|
|
265
|
+
pdfSearch: 'Pesquisar no documento',
|
|
266
|
+
pdfSearchPrevious: 'Resultado anterior',
|
|
267
|
+
pdfSearchNext: 'Próximo resultado',
|
|
268
|
+
pdfMatchCount: '{current} de {total}',
|
|
269
|
+
pdfNoMatches: 'Nenhum resultado',
|
|
270
|
+
pdfMore: 'Mais opções',
|
|
271
|
+
pdfRotate: 'Girar',
|
|
272
|
+
pdfDownload: 'Baixar',
|
|
273
|
+
pdfPrint: 'Imprimir',
|
|
274
|
+
pdfFullscreen: 'Tela cheia',
|
|
275
|
+
pdfExitFullscreen: 'Sair da tela cheia',
|
|
276
|
+
pdfPassword: 'Este documento é protegido por senha',
|
|
277
|
+
pdfPasswordLabel: 'Senha',
|
|
278
|
+
pdfWrongPassword: 'Senha incorreta',
|
|
279
|
+
pdfOpen: 'Abrir',
|
|
280
|
+
pdfError: 'Não é possível abrir este PDF',
|
|
281
|
+
pdfLoading: 'Carregando documento',
|
|
282
|
+
pdfAnnotate: 'Anotar',
|
|
283
|
+
pdfSelect: 'Selecionar',
|
|
284
|
+
pdfHighlight: 'Destacar',
|
|
285
|
+
pdfNote: 'Nota',
|
|
286
|
+
pdfDraw: 'Desenhar',
|
|
287
|
+
pdfEraser: 'Borracha',
|
|
288
|
+
pdfInkWidth: 'Espessura {n} pt',
|
|
289
|
+
pdfColor: 'Cor',
|
|
290
|
+
pdfUndo: 'Desfazer',
|
|
291
|
+
pdfCopy: 'Copiar',
|
|
292
|
+
pdfDelete: 'Excluir',
|
|
293
|
+
pdfNotePlaceholder: 'Escreva uma nota',
|
|
294
|
+
pdfAddComment: 'Adicione um comentário',
|
|
295
|
+
flowCanvas: 'Diagrama',
|
|
296
|
+
flowNode: 'nó',
|
|
297
|
+
flowEdge: 'Conexão de {source} para {target}',
|
|
298
|
+
flowZoomIn: 'Aumentar zoom',
|
|
299
|
+
flowZoomOut: 'Diminuir zoom',
|
|
300
|
+
flowFitView: 'Ajustar à visualização',
|
|
301
|
+
flowLock: 'Bloquear',
|
|
302
|
+
flowUnlock: 'Desbloquear',
|
|
303
|
+
flowUndo: 'Desfazer',
|
|
304
|
+
flowRedo: 'Refazer',
|
|
305
|
+
flowMinimap: 'Minimapa',
|
|
306
|
+
flowMoved: '{label} movido',
|
|
307
|
+
flowConnected: '{source} conectado a {target}',
|
|
308
|
+
flowDeleted: '{count} excluídos',
|
|
309
|
+
flowDeleteEdge: 'Excluir conexão',
|
|
310
|
+
flowDelete: 'Excluir',
|
|
311
|
+
ganttChart: 'Gráfico de Gantt',
|
|
312
|
+
ganttTask: 'Tarefa',
|
|
313
|
+
ganttStart: 'Início',
|
|
314
|
+
ganttEnd: 'Fim',
|
|
315
|
+
ganttDuration: 'Duração',
|
|
316
|
+
ganttProgress: 'Progresso',
|
|
317
|
+
ganttDays: '{n} d',
|
|
318
|
+
ganttHours: '{n} h',
|
|
319
|
+
ganttMilestone: 'Marco',
|
|
320
|
+
ganttQuarter: 'T{n}',
|
|
321
|
+
ganttToday: 'Hoje',
|
|
322
|
+
ganttZoomIn: 'Aproximar',
|
|
323
|
+
ganttZoomOut: 'Afastar',
|
|
324
|
+
ganttExpandAll: 'Expandir tudo',
|
|
325
|
+
ganttCollapseAll: 'Recolher tudo',
|
|
326
|
+
ganttExpand: 'Expandir',
|
|
327
|
+
ganttCollapse: 'Recolher',
|
|
328
|
+
ganttUndo: 'Desfazer',
|
|
329
|
+
ganttRedo: 'Refazer',
|
|
330
|
+
ganttScaleHour: 'Horas',
|
|
331
|
+
ganttScaleDay: 'Dias',
|
|
332
|
+
ganttScaleWeek: 'Semanas',
|
|
333
|
+
ganttScaleMonth: 'Meses',
|
|
334
|
+
ganttScaleQuarter: 'Trimestres',
|
|
335
|
+
ganttScaleYear: 'Anos',
|
|
336
|
+
ganttMoved: '{name}: de {start} a {end}',
|
|
337
|
+
ganttProgressSet: '{name}: {progress}% concluído',
|
|
338
|
+
ganttLinked: '{from} vinculada a {to}',
|
|
339
|
+
ganttUnlink: 'Remover dependência',
|
|
340
|
+
ganttDeleted: '{count} excluídas',
|
|
341
|
+
ganttDelete: 'Excluir',
|
|
342
|
+
ganttReordered: '{name} movida para a linha {pos}',
|
|
343
|
+
ganttSlack: 'Folga: {n} d',
|
|
344
|
+
ganttCritical: 'Crítica',
|
|
345
|
+
ganttBaseline: 'Linha de base',
|
|
346
|
+
ganttEmpty: 'Ainda não há tarefas',
|
|
347
|
+
ganttResize: 'Redimensionar a lista de tarefas',
|
|
348
|
+
timelineResource: 'Recurso',
|
|
349
|
+
timelineConflict: 'Sobrepõe outra reserva',
|
|
350
|
+
timelineMoved: '{title}: {resource}, de {start} a {end}',
|
|
351
|
+
timelineEmpty: 'Nenhum recurso',
|
|
352
|
+
cropArea: 'Área de corte',
|
|
353
|
+
cropRotateLeft: 'Girar para a esquerda',
|
|
354
|
+
cropRotateRight: 'Girar para a direita',
|
|
355
|
+
cropFlip: 'Inverter horizontalmente',
|
|
356
|
+
cropReset: 'Redefinir',
|
|
357
|
+
cropFree: 'Livre',
|
|
358
|
+
drawCanvas: 'Tela de desenho',
|
|
359
|
+
drawTools: 'Ferramentas de desenho',
|
|
360
|
+
drawMore: 'Mais ferramentas',
|
|
361
|
+
drawSelect: 'Selecionar',
|
|
362
|
+
drawPan: 'Mover',
|
|
363
|
+
drawPen: 'Caneta',
|
|
364
|
+
drawBrush: 'Pincel',
|
|
365
|
+
drawMarker: 'Marcador',
|
|
366
|
+
drawHighlighter: 'Marca-texto',
|
|
367
|
+
drawEraser: 'Borracha',
|
|
368
|
+
drawStrokeEraser: 'Borracha de traços',
|
|
369
|
+
drawLine: 'Linha',
|
|
370
|
+
drawArrow: 'Seta',
|
|
371
|
+
drawRect: 'Retângulo',
|
|
372
|
+
drawEllipse: 'Elipse',
|
|
373
|
+
drawText: 'Texto',
|
|
374
|
+
drawFill: 'Preenchimento',
|
|
375
|
+
drawColor: 'Cor',
|
|
376
|
+
floorPlan: 'Planta do salão',
|
|
377
|
+
floorSeats: '{n} lugares',
|
|
378
|
+
drawCustomColor: 'Cor personalizada',
|
|
379
|
+
drawSize: 'Tamanho',
|
|
380
|
+
drawUndo: 'Desfazer',
|
|
381
|
+
drawRedo: 'Refazer',
|
|
382
|
+
drawDelete: 'Excluir seleção',
|
|
383
|
+
drawLayers: 'Camadas',
|
|
384
|
+
drawLayer: 'Camada {n}',
|
|
385
|
+
drawLayerName: 'Nome da camada',
|
|
386
|
+
drawAddLayer: 'Adicionar camada',
|
|
387
|
+
drawDeleteLayer: 'Excluir camada',
|
|
388
|
+
drawShowLayer: 'Mostrar camada',
|
|
389
|
+
drawHideLayer: 'Ocultar camada',
|
|
390
|
+
drawLockLayer: 'Bloquear camada',
|
|
391
|
+
drawUnlockLayer: 'Desbloquear camada',
|
|
392
|
+
drawLayerUp: 'Subir camada',
|
|
393
|
+
drawLayerDown: 'Descer camada',
|
|
231
394
|
}
|
package/src/locales/zh.ts
CHANGED
|
@@ -228,4 +228,167 @@ export const zhLocale: M3Locale = {
|
|
|
228
228
|
mapSearchPlaces: '搜索地点',
|
|
229
229
|
timelineShowMore: '再显示 {count} 项',
|
|
230
230
|
timelineShowLess: '收起',
|
|
231
|
+
mediaPlayer: '媒体播放器',
|
|
232
|
+
mediaPlay: '播放',
|
|
233
|
+
mediaPause: '暂停',
|
|
234
|
+
mediaReplay: '重新播放',
|
|
235
|
+
mediaSeekBack: '后退 {seconds} 秒',
|
|
236
|
+
mediaSeekForward: '前进 {seconds} 秒',
|
|
237
|
+
mediaSeconds: '{seconds} 秒',
|
|
238
|
+
mediaMute: '静音',
|
|
239
|
+
mediaUnmute: '取消静音',
|
|
240
|
+
mediaVolume: '音量',
|
|
241
|
+
mediaFullscreen: '全屏',
|
|
242
|
+
mediaExitFullscreen: '退出全屏',
|
|
243
|
+
mediaPictureInPicture: '画中画',
|
|
244
|
+
mediaSettings: '设置',
|
|
245
|
+
mediaSpeed: '播放速度',
|
|
246
|
+
mediaSpeedNormal: '正常',
|
|
247
|
+
mediaSubtitles: '字幕',
|
|
248
|
+
mediaSubtitlesOff: '关闭',
|
|
249
|
+
mediaQuality: '画质',
|
|
250
|
+
mediaQualityAuto: '自动',
|
|
251
|
+
mediaLive: '直播',
|
|
252
|
+
mediaError: '无法播放此媒体',
|
|
253
|
+
mediaRepeat: '重复',
|
|
254
|
+
mediaRepeatOne: '单曲循环',
|
|
255
|
+
mediaShuffle: '随机播放',
|
|
256
|
+
pdfViewer: 'PDF 查看器',
|
|
257
|
+
pdfThumbnails: '页面',
|
|
258
|
+
pdfOutline: '目录',
|
|
259
|
+
pdfPage: '页',
|
|
260
|
+
pdfZoom: '缩放',
|
|
261
|
+
pdfZoomIn: '放大',
|
|
262
|
+
pdfZoomOut: '缩小',
|
|
263
|
+
pdfFitWidth: '适合宽度',
|
|
264
|
+
pdfFitPage: '适合页面',
|
|
265
|
+
pdfSearch: '在文档中查找',
|
|
266
|
+
pdfSearchPrevious: '上一个匹配项',
|
|
267
|
+
pdfSearchNext: '下一个匹配项',
|
|
268
|
+
pdfMatchCount: '{current} / {total}',
|
|
269
|
+
pdfNoMatches: '无匹配项',
|
|
270
|
+
pdfMore: '更多选项',
|
|
271
|
+
pdfRotate: '旋转',
|
|
272
|
+
pdfDownload: '下载',
|
|
273
|
+
pdfPrint: '打印',
|
|
274
|
+
pdfFullscreen: '全屏',
|
|
275
|
+
pdfExitFullscreen: '退出全屏',
|
|
276
|
+
pdfPassword: '此文档受密码保护',
|
|
277
|
+
pdfPasswordLabel: '密码',
|
|
278
|
+
pdfWrongPassword: '密码错误',
|
|
279
|
+
pdfOpen: '打开',
|
|
280
|
+
pdfError: '无法打开此 PDF',
|
|
281
|
+
pdfLoading: '正在加载文档',
|
|
282
|
+
pdfAnnotate: '批注',
|
|
283
|
+
pdfSelect: '选择',
|
|
284
|
+
pdfHighlight: '高亮',
|
|
285
|
+
pdfNote: '注释',
|
|
286
|
+
pdfDraw: '绘制',
|
|
287
|
+
pdfEraser: '橡皮擦',
|
|
288
|
+
pdfInkWidth: '线宽 {n} pt',
|
|
289
|
+
pdfColor: '颜色',
|
|
290
|
+
pdfUndo: '撤消',
|
|
291
|
+
pdfCopy: '复制',
|
|
292
|
+
pdfDelete: '删除',
|
|
293
|
+
pdfNotePlaceholder: '写一条注释',
|
|
294
|
+
pdfAddComment: '添加评论',
|
|
295
|
+
flowCanvas: '图表',
|
|
296
|
+
flowNode: '节点',
|
|
297
|
+
flowEdge: '从 {source} 到 {target} 的连接',
|
|
298
|
+
flowZoomIn: '放大',
|
|
299
|
+
flowZoomOut: '缩小',
|
|
300
|
+
flowFitView: '适合视图',
|
|
301
|
+
flowLock: '锁定',
|
|
302
|
+
flowUnlock: '解锁',
|
|
303
|
+
flowUndo: '撤销',
|
|
304
|
+
flowRedo: '重做',
|
|
305
|
+
flowMinimap: '小地图',
|
|
306
|
+
flowMoved: '已移动 {label}',
|
|
307
|
+
flowConnected: '已将 {source} 连接到 {target}',
|
|
308
|
+
flowDeleted: '已删除 {count} 项',
|
|
309
|
+
flowDeleteEdge: '删除连接',
|
|
310
|
+
flowDelete: '删除',
|
|
311
|
+
ganttChart: '甘特图',
|
|
312
|
+
ganttTask: '任务',
|
|
313
|
+
ganttStart: '开始',
|
|
314
|
+
ganttEnd: '结束',
|
|
315
|
+
ganttDuration: '工期',
|
|
316
|
+
ganttProgress: '进度',
|
|
317
|
+
ganttDays: '{n} 天',
|
|
318
|
+
ganttHours: '{n} 小时',
|
|
319
|
+
ganttMilestone: '里程碑',
|
|
320
|
+
ganttQuarter: '第{n}季度',
|
|
321
|
+
ganttToday: '今天',
|
|
322
|
+
ganttZoomIn: '放大',
|
|
323
|
+
ganttZoomOut: '缩小',
|
|
324
|
+
ganttExpandAll: '全部展开',
|
|
325
|
+
ganttCollapseAll: '全部折叠',
|
|
326
|
+
ganttExpand: '展开',
|
|
327
|
+
ganttCollapse: '折叠',
|
|
328
|
+
ganttUndo: '撤销',
|
|
329
|
+
ganttRedo: '重做',
|
|
330
|
+
ganttScaleHour: '小时',
|
|
331
|
+
ganttScaleDay: '天',
|
|
332
|
+
ganttScaleWeek: '周',
|
|
333
|
+
ganttScaleMonth: '月',
|
|
334
|
+
ganttScaleQuarter: '季度',
|
|
335
|
+
ganttScaleYear: '年',
|
|
336
|
+
ganttMoved: '{name}:{start} 至 {end}',
|
|
337
|
+
ganttProgressSet: '{name}:已完成 {progress}%',
|
|
338
|
+
ganttLinked: '已将 {from} 链接到 {to}',
|
|
339
|
+
ganttUnlink: '删除依赖关系',
|
|
340
|
+
ganttDeleted: '已删除 {count} 项',
|
|
341
|
+
ganttDelete: '删除',
|
|
342
|
+
ganttReordered: '已将 {name} 移到第 {pos} 行',
|
|
343
|
+
ganttSlack: '浮动时间:{n} 天',
|
|
344
|
+
ganttCritical: '关键',
|
|
345
|
+
ganttBaseline: '基线',
|
|
346
|
+
ganttEmpty: '还没有任务',
|
|
347
|
+
ganttResize: '调整任务列表宽度',
|
|
348
|
+
timelineResource: '资源',
|
|
349
|
+
timelineConflict: '与另一个预订重叠',
|
|
350
|
+
timelineMoved: '{title}:{resource},{start} 至 {end}',
|
|
351
|
+
timelineEmpty: '没有资源',
|
|
352
|
+
cropArea: '裁剪区域',
|
|
353
|
+
cropRotateLeft: '向左旋转',
|
|
354
|
+
cropRotateRight: '向右旋转',
|
|
355
|
+
cropFlip: '水平翻转',
|
|
356
|
+
cropReset: '重置',
|
|
357
|
+
cropFree: '自由',
|
|
358
|
+
drawCanvas: '绘图画布',
|
|
359
|
+
drawTools: '绘图工具',
|
|
360
|
+
drawMore: '更多工具',
|
|
361
|
+
drawSelect: '选择',
|
|
362
|
+
drawPan: '平移',
|
|
363
|
+
drawPen: '钢笔',
|
|
364
|
+
drawBrush: '画笔',
|
|
365
|
+
drawMarker: '马克笔',
|
|
366
|
+
drawHighlighter: '荧光笔',
|
|
367
|
+
drawEraser: '橡皮擦',
|
|
368
|
+
drawStrokeEraser: '笔画橡皮擦',
|
|
369
|
+
drawLine: '直线',
|
|
370
|
+
drawArrow: '箭头',
|
|
371
|
+
drawRect: '矩形',
|
|
372
|
+
drawEllipse: '椭圆',
|
|
373
|
+
drawText: '文本',
|
|
374
|
+
drawFill: '填充',
|
|
375
|
+
drawColor: '颜色',
|
|
376
|
+
floorPlan: '平面图',
|
|
377
|
+
floorSeats: '{n} 个座位',
|
|
378
|
+
drawCustomColor: '自定义颜色',
|
|
379
|
+
drawSize: '大小',
|
|
380
|
+
drawUndo: '撤销',
|
|
381
|
+
drawRedo: '重做',
|
|
382
|
+
drawDelete: '删除所选',
|
|
383
|
+
drawLayers: '图层',
|
|
384
|
+
drawLayer: '图层 {n}',
|
|
385
|
+
drawLayerName: '图层名称',
|
|
386
|
+
drawAddLayer: '添加图层',
|
|
387
|
+
drawDeleteLayer: '删除图层',
|
|
388
|
+
drawShowLayer: '显示图层',
|
|
389
|
+
drawHideLayer: '隐藏图层',
|
|
390
|
+
drawLockLayer: '锁定图层',
|
|
391
|
+
drawUnlockLayer: '解锁图层',
|
|
392
|
+
drawLayerUp: '上移图层',
|
|
393
|
+
drawLayerDown: '下移图层',
|
|
231
394
|
}
|
package/src/media.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as MVideoPlayer } from './components/MVideoPlayer.vue'
|
|
2
|
+
export type { VideoSource, VideoTrack, VideoPlayerSlotProps, HlsLike, HlsModule } from './components/MVideoPlayer.vue'
|
|
3
|
+
export { default as MAudioPlayer } from './components/MAudioPlayer.vue'
|
|
4
|
+
export { useMediaPlayer } from './composables/useMediaPlayer'
|
|
5
|
+
export type { MediaPlayer, MediaPlayerOptions, MediaPlayerMetadata } from './composables/useMediaPlayer'
|
package/src/pdf.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { default as MPdfViewer } from './components/MPdfViewer.vue'
|
|
2
|
+
export type { PdfAnnotation, PdfTool, PdfZoom } from './components/MPdfViewer.vue'
|
|
3
|
+
export { usePdf, setPdfWorker } from './composables/usePdf'
|
|
4
|
+
export type {
|
|
5
|
+
PdfDocument,
|
|
6
|
+
PdfMetadata,
|
|
7
|
+
PdfOptions,
|
|
8
|
+
PdfOutlineItem,
|
|
9
|
+
PdfPage,
|
|
10
|
+
PdfPageText,
|
|
11
|
+
PdfSearchMatch,
|
|
12
|
+
PdfSource,
|
|
13
|
+
PdfState,
|
|
14
|
+
PdfjsModule,
|
|
15
|
+
} from './composables/usePdf'
|
package/src/plugin.ts
CHANGED
|
@@ -16,9 +16,10 @@ import { vLongPress } from './directives/vLongPress'
|
|
|
16
16
|
import { vSwipe } from './directives/vSwipe'
|
|
17
17
|
import { vClickOutside } from './directives/vClickOutside'
|
|
18
18
|
import { vSkeleton } from './directives/vSkeleton'
|
|
19
|
+
import { vSparkle } from './directives/vSparkle'
|
|
19
20
|
import { M3_HYDRATING_KEY } from './composables/_hydration'
|
|
20
21
|
import { M3_INITIAL_STATE_KEY, enableCookies, readCookie, trackViewport, writeCookie, type M3InitialState, type ResolvedInitialState } from './composables/_ssrState'
|
|
21
|
-
import { THEME_KEY } from './composables/_storageKeys'
|
|
22
|
+
import { THEME_KEY, setStoragePrefix, storageKey } from './composables/_storageKeys'
|
|
22
23
|
import type { Theme } from './composables/useTheme'
|
|
23
24
|
import { CONTRAST_KEY, PALETTE_KEY, SEED_PALETTE } from './composables/useColorPalette'
|
|
24
25
|
|
|
@@ -77,6 +78,14 @@ export interface M3UIOptions {
|
|
|
77
78
|
* and render with the user's choice and for their screen through `initialState`.
|
|
78
79
|
*/
|
|
79
80
|
cookies?: boolean
|
|
81
|
+
/**
|
|
82
|
+
* A prefix for every key the library stores in localStorage and cookies (`'admin'` → `admin-m3-theme`,
|
|
83
|
+
* `admin-m3-palette`…), so apps served from the same origin under different paths (`example.com/admin`,
|
|
84
|
+
* `example.com/shop`) each keep their own theme, palette, contrast and recent colors/emoji instead of sharing them.
|
|
85
|
+
* Letters, digits, `-` and `_` (it's also part of the cookie names). Pass the same one to `themeInitScript()` and
|
|
86
|
+
* `viewportFromHeaders()` when you use them.
|
|
87
|
+
*/
|
|
88
|
+
storagePrefix?: string
|
|
80
89
|
/**
|
|
81
90
|
* Server-side rendering: the user's theme, palette and contrast as the server knows them (from the cookies that
|
|
82
91
|
* `cookies` writes), on the server and on the client alike. `useTheme()` and `useColorPalette()` report them on
|
|
@@ -88,6 +97,10 @@ export interface M3UIOptions {
|
|
|
88
97
|
initialState?: M3InitialState
|
|
89
98
|
}
|
|
90
99
|
|
|
100
|
+
function readStored(key: string): string | null {
|
|
101
|
+
try { return localStorage.getItem(storageKey(key)) } catch { return null }
|
|
102
|
+
}
|
|
103
|
+
|
|
91
104
|
const THEMES: readonly Theme[] = ['light', 'dark', 'system']
|
|
92
105
|
const CONTRASTS: readonly string[] = ['standard', 'medium', 'high', 'system']
|
|
93
106
|
|
|
@@ -121,6 +134,9 @@ export function createM3UI(options: M3UIOptions = {}) {
|
|
|
121
134
|
app.directive('swipe', vSwipe)
|
|
122
135
|
app.directive('click-outside', vClickOutside)
|
|
123
136
|
app.directive('skeleton', vSkeleton)
|
|
137
|
+
app.directive('sparkle', vSparkle)
|
|
138
|
+
// First: the stored choices below (and those the modules read when they loaded) are this app's own
|
|
139
|
+
if (typeof window !== 'undefined') setStoragePrefix(options.storagePrefix ?? '')
|
|
124
140
|
if (options.isHydrating) app.provide(M3_HYDRATING_KEY, options.isHydrating)
|
|
125
141
|
if (options.initialState) app.provide(M3_INITIAL_STATE_KEY, resolveInitialState(options))
|
|
126
142
|
if (options.cookies && typeof window !== 'undefined') enableCookies()
|
|
@@ -135,7 +151,7 @@ export function createM3UI(options: M3UIOptions = {}) {
|
|
|
135
151
|
if (options.persistPalette === false) {
|
|
136
152
|
if (options.palette) __forcePalette(options.palette, false)
|
|
137
153
|
else if (options.seed) void __defaultSeed(options.seed, options.seedOptions, false)
|
|
138
|
-
} else if (!
|
|
154
|
+
} else if (!readStored(PALETTE_KEY) && !readCookie(storageKey(PALETTE_KEY))) {
|
|
139
155
|
// `palette`/`seed` are only the first-visit default — once the user picks a palette via
|
|
140
156
|
// `useColorPalette().set()` (or a seed via `setSeed()`) it's persisted to localStorage, and that choice
|
|
141
157
|
// must win on every later boot instead of being clobbered back to the plugin's static default.
|
|
@@ -148,9 +164,8 @@ export function createM3UI(options: M3UIOptions = {}) {
|
|
|
148
164
|
// without a stored value (cleared storage, or set by a server) stays
|
|
149
165
|
if (options.cookies) {
|
|
150
166
|
for (const key of [THEME_KEY, PALETTE_KEY, CONTRAST_KEY]) {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
if (value != null) writeCookie(key, value)
|
|
167
|
+
const value = readStored(key)
|
|
168
|
+
if (value != null) writeCookie(storageKey(key), value)
|
|
154
169
|
}
|
|
155
170
|
trackViewport()
|
|
156
171
|
}
|
|
@@ -176,5 +191,6 @@ declare module 'vue' {
|
|
|
176
191
|
vSwipe: typeof vSwipe
|
|
177
192
|
vClickOutside: typeof vClickOutside
|
|
178
193
|
vSkeleton: typeof vSkeleton
|
|
194
|
+
vSparkle: typeof vSparkle
|
|
179
195
|
}
|
|
180
196
|
}
|