@aceshooting/lyra-ui 16.0.0 → 17.0.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/CHANGELOG.md +504 -0
- package/custom-elements.json +1 -1
- package/dist/cli/migration-contract.json +1 -1
- package/dist/components/agent-tools/browser-frame/browser-frame.class.d.ts +3 -3
- package/dist/components/agent-tools/browser-frame/browser-frame.class.js +2 -2
- package/dist/components/agent-tools/compare-panel/compare-panel.class.d.ts +2 -2
- package/dist/components/agent-tools/compare-panel/compare-panel.class.js +3 -3
- package/dist/components/agent-tools/confirm-bar/confirm-bar.class.d.ts +37 -13
- package/dist/components/agent-tools/confirm-bar/confirm-bar.class.js +2 -2
- package/dist/components/agent-tools/task-list/task-list.class.js +2 -2
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +4 -0
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.js +2 -2
- package/dist/components/agent-tools/tool-param-form/tool-param-form.class.d.ts +3 -3
- package/dist/components/agent-tools/tool-param-form/tool-param-form.class.js +1 -1
- package/dist/components/charts/chart/chart.class.d.ts +117 -17
- package/dist/components/charts/chart/chart.class.js +3 -3
- package/dist/components/charts/chart/histogram-bin.d.ts +5 -1
- package/dist/components/charts/chart/histogram-bin.js +1 -1
- package/dist/components/charts/chart/lite-chart.class.d.ts +9 -0
- package/dist/components/conversation/code-block/code-block.styles.js +1 -1
- package/dist/components/conversation/message-actions/message-actions.styles.js +1 -1
- package/dist/components/conversation/model-select/model-select.class.d.ts +13 -4
- package/dist/components/conversation/model-select/model-select.class.js +2 -1
- package/dist/components/conversation/model-select/model-select.styles.js +1 -1
- package/dist/components/conversation/streaming-text/streaming-text-base.class.d.ts +40 -2
- package/dist/components/conversation/streaming-text/streaming-text-base.class.js +2 -2
- package/dist/components/conversation/streaming-text/streaming-text-core.class.d.ts +5 -3
- package/dist/components/conversation/streaming-text/streaming-text-core.class.js +10 -0
- package/dist/components/conversation/streaming-text/streaming-text.class.d.ts +9 -3
- package/dist/components/conversation/streaming-text/streaming-text.class.js +10 -0
- package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +30 -2
- package/dist/components/conversation/suggestion-chips/suggestion-chips.class.js +4 -3
- package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +1 -1
- package/dist/components/conversation/transcript-feed/transcript-feed.class.js +1 -1
- package/dist/components/conversation/usage-badge/usage-badge-overlay-runtime.js +1 -1
- package/dist/components/conversation/usage-badge/usage-badge.class.d.ts +4 -0
- package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +16 -4
- package/dist/components/conversation/voice-picker/voice-picker.class.js +2 -1
- package/dist/components/conversation/voice-picker/voice-picker.styles.js +1 -1
- package/dist/components/data/context-meter/context-meter.class.d.ts +23 -4
- package/dist/components/data/context-meter/context-meter.class.js +10 -7
- package/dist/components/data/context-meter/context-meter.styles.js +1 -1
- package/dist/components/data/data-grid/data-grid.class.d.ts +5 -2
- package/dist/components/data/data-grid/data-grid.class.js +1 -1
- package/dist/components/data/flow-canvas/flow-canvas.class.d.ts +32 -5
- package/dist/components/data/flow-canvas/flow-canvas.class.js +3 -1
- package/dist/components/data/flow-canvas/flow-canvas.styles.js +1 -1
- package/dist/components/data/flow-canvas/flow-model.js +1 -1
- package/dist/components/data/flow-canvas/flow-types.d.ts +10 -1
- package/dist/components/data/gauge/gauge.class.d.ts +15 -2
- package/dist/components/data/gauge/gauge.class.js +20 -20
- package/dist/components/data/gauge/gauge.styles.js +1 -1
- package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +14 -5
- package/dist/components/data/graph-query-builder/graph-query-builder.class.js +2 -2
- package/dist/components/data/sequence-strip/sequence-strip.class.d.ts +28 -2
- package/dist/components/data/sequence-strip/sequence-strip.class.js +3 -2
- package/dist/components/data/sequence-strip/sequence-strip.styles.js +1 -1
- package/dist/components/data/table/table.class.d.ts +155 -30
- package/dist/components/data/table/table.class.js +6 -4
- package/dist/components/data/table/table.styles.js +1 -1
- package/dist/components/data/timeline/timeline-item.class.d.ts +9 -1
- package/dist/components/data/timeline/timeline-item.class.js +2 -2
- package/dist/components/data/word-cloud/word-cloud.class.js +1 -1
- package/dist/components/data/word-cloud/word-cloud.styles.js +1 -1
- package/dist/components/forms/button/button.class.d.ts +30 -1
- package/dist/components/forms/button/button.class.js +2 -2
- package/dist/components/forms/checkbox/checkbox.class.d.ts +8 -6
- package/dist/components/forms/checkbox/checkbox.class.js +2 -2
- package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +7 -5
- package/dist/components/forms/checkbox-group/checkbox-group.class.js +1 -1
- package/dist/components/forms/color-picker/color-picker.class.d.ts +16 -2
- package/dist/components/forms/color-picker/color-picker.class.js +2 -2
- package/dist/components/forms/color-picker/color-picker.styles.js +1 -1
- package/dist/components/forms/combobox/combobox.class.d.ts +43 -8
- package/dist/components/forms/combobox/combobox.class.js +2 -2
- package/dist/components/forms/date-picker/date-input.class.d.ts +4 -0
- package/dist/components/forms/date-picker/date-input.class.js +1 -1
- package/dist/components/forms/icon-button/icon-button.class.d.ts +20 -3
- package/dist/components/forms/icon-button/icon-button.class.js +1 -1
- package/dist/components/forms/icon-button/icon-button.styles.js +1 -1
- package/dist/components/forms/input/input.class.d.ts +5 -2
- package/dist/components/forms/input/input.class.js +1 -1
- package/dist/components/forms/input/time-input.class.d.ts +4 -0
- package/dist/components/forms/input/time-input.class.js +1 -1
- package/dist/components/forms/locale-picker/locale-picker.class.d.ts +11 -5
- package/dist/components/forms/locale-picker/locale-picker.class.js +1 -1
- package/dist/components/forms/otp-input/otp-input.class.d.ts +7 -2
- package/dist/components/forms/otp-input/otp-input.class.js +2 -2
- package/dist/components/forms/radio/radio-button.class.d.ts +2 -1
- package/dist/components/forms/radio/radio-group.class.d.ts +9 -4
- package/dist/components/forms/radio/radio-group.class.js +1 -1
- package/dist/components/forms/radio/radio.class.d.ts +13 -7
- package/dist/components/forms/radio/radio.class.js +1 -1
- package/dist/components/forms/rubric-form/rubric-form.class.d.ts +16 -6
- package/dist/components/forms/rubric-form/rubric-form.class.js +2 -2
- package/dist/components/forms/select/select.class.d.ts +19 -8
- package/dist/components/forms/select/select.class.js +2 -2
- package/dist/components/forms/slider/slider.class.d.ts +4 -2
- package/dist/components/forms/slider/slider.class.js +1 -1
- package/dist/components/forms/switch/switch.class.d.ts +8 -6
- package/dist/components/forms/switch/switch.class.js +1 -1
- package/dist/components/forms/textarea/textarea.class.d.ts +5 -3
- package/dist/components/forms/textarea/textarea.class.js +1 -1
- package/dist/components/forms/time-range/time-range.class.d.ts +12 -7
- package/dist/components/forms/time-range/time-range.class.js +1 -1
- package/dist/components/forms/time-range/time-range.styles.js +1 -1
- package/dist/components/forms/token-input/token-input.class.d.ts +6 -4
- package/dist/components/forms/token-input/token-input.class.js +1 -1
- package/dist/components/layout/app-rail/app-rail-item.class.d.ts +109 -4
- package/dist/components/layout/app-rail/app-rail-item.class.js +34 -29
- package/dist/components/layout/app-rail/app-rail-item.styles.js +1 -1
- package/dist/components/layout/app-rail/app-rail.class.d.ts +25 -3
- package/dist/components/layout/app-rail/app-rail.styles.js +1 -1
- package/dist/components/layout/app-rail-group/app-rail-group.class.d.ts +2 -2
- package/dist/components/layout/app-rail-group/app-rail-group.class.js +2 -2
- package/dist/components/layout/carousel/carousel.class.d.ts +1 -1
- package/dist/components/layout/carousel/carousel.class.js +1 -1
- package/dist/components/layout/details/accordion.class.d.ts +2 -2
- package/dist/components/layout/details/accordion.class.js +2 -2
- package/dist/components/layout/filter-bar/filter-bar-register.d.ts +1 -0
- package/dist/components/layout/filter-bar/filter-bar-register.js +1 -0
- package/dist/components/layout/filter-bar/filter-bar.class.d.ts +85 -10
- package/dist/components/layout/filter-bar/filter-bar.class.js +7 -4
- package/dist/components/layout/menu/menu-item.class.d.ts +3 -3
- package/dist/components/layout/menu/menu-item.class.js +3 -3
- package/dist/components/layout/menu/menu.class.d.ts +5 -1
- package/dist/components/layout/menu/menu.class.js +2 -2
- package/dist/components/layout/reorder-list/reorder-item.styles.js +1 -1
- package/dist/components/layout/virtual-list/virtual-list.class.js +1 -1
- package/dist/components/media/attachment-trigger/attachment-trigger.styles.js +1 -1
- package/dist/components/media/avatar-group/avatar-group.class.d.ts +12 -1
- package/dist/components/media/avatar-group/avatar-group.class.js +2 -2
- package/dist/components/media/drop-zone/drop-zone.class.d.ts +32 -11
- package/dist/components/media/drop-zone/drop-zone.class.js +2 -2
- package/dist/components/media/file-input/file-input.class.d.ts +40 -19
- package/dist/components/media/file-input/file-input.class.js +2 -2
- package/dist/components/overlays/callout/callout.styles.js +1 -1
- package/dist/components/overlays/dialog/dialog.styles.js +1 -1
- package/dist/components/overlays/overlay/dropdown.class.d.ts +13 -3
- package/dist/components/overlays/overlay/dropdown.class.js +2 -2
- package/dist/components/overlays/overlay/popover.class.d.ts +12 -3
- package/dist/components/overlays/overlay/popover.class.js +2 -2
- package/dist/components/overlays/rating/rating.class.d.ts +9 -7
- package/dist/components/overlays/rating/rating.class.js +1 -1
- package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +5 -1
- package/dist/components/retrieval/citation-badge/citation-badge.class.js +1 -1
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.styles.js +1 -1
- package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +5 -1
- package/dist/components/retrieval/entity-chip/entity-chip.class.js +1 -1
- package/dist/components/retrieval/graph-legend/graph-legend.styles.js +1 -1
- package/dist/components/retrieval/retrieval-value-format.js +1 -1
- package/dist/components/retrieval/source-list/source-list.styles.js +1 -1
- package/dist/components/utility/copy-button/copy-button.class.d.ts +23 -11
- package/dist/components/utility/copy-button/copy-button.class.js +2 -2
- package/dist/components/utility/copy-button/copy-button.styles.js +1 -1
- package/dist/components/utility/diff-view/diff-view.styles.js +1 -1
- package/dist/components/utility/export-button/export-button.class.d.ts +4 -0
- package/dist/components/utility/export-button/export-button.class.js +1 -1
- package/dist/components/utility/json-viewer/json-viewer.styles.js +1 -1
- package/dist/components/utility/known-date/known-date.class.js +1 -1
- package/dist/components/utility/mention-popover/mention-popover.class.d.ts +38 -3
- package/dist/components/utility/mention-popover/mention-popover.class.js +2 -1
- package/dist/components/utility/mention-popover/mention-popover.styles.js +1 -1
- package/dist/components/utility/poll-status/poll-status.styles.js +1 -1
- package/dist/components/utility/tour/tour.class.d.ts +4 -0
- package/dist/components/utility/tour/tour.class.js +1 -1
- package/dist/components/utility/tour/tour.styles.js +1 -1
- package/dist/components/viewers/document-preview/document-preview.class.js +2 -2
- package/dist/components/viewers/docx-viewer/docx-viewer.class.js +2 -2
- package/dist/components/viewers/ebook-viewer/ebook-viewer.class.js +2 -2
- package/dist/components/viewers/highlight-layer/highlight-layer.class.js +2 -2
- package/dist/components/viewers/notebook-viewer/notebook-viewer.class.js +2 -2
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +2 -2
- package/dist/components/viewers/pptx-viewer/pptx-viewer.class.js +2 -2
- package/dist/components/viewers/xml-viewer/xml-viewer.class.js +2 -2
- package/dist/custom-elements-jsx.d.ts +2 -2
- package/dist/events.d.ts +13 -12
- package/dist/internal/aggregate-file-limits.d.ts +33 -0
- package/dist/internal/aggregate-file-limits.js +1 -0
- package/dist/internal/catalog-picker.d.ts +15 -2
- package/dist/internal/catalog-picker.js +1 -1
- package/dist/internal/debounce-controller.d.ts +14 -0
- package/dist/internal/debounce-controller.js +1 -1
- package/dist/internal/default-strings.generated.d.ts +1 -1
- package/dist/internal/default-strings.generated.js +2 -2
- package/dist/internal/focus-navigation.d.ts +45 -0
- package/dist/internal/focus-navigation.js +1 -1
- package/dist/internal/form-associated.js +1 -1
- package/dist/internal/initial-slot-collection.d.ts +30 -0
- package/dist/internal/initial-slot-collection.js +1 -0
- package/dist/internal/intl-cache.js +1 -1
- package/dist/internal/invalid-event-alias.d.ts +46 -0
- package/dist/internal/invalid-event-alias.js +1 -1
- package/dist/internal/localization-runtime.d.ts +24 -0
- package/dist/internal/localization-runtime.js +1 -1
- package/dist/internal/localization-types.d.ts +1 -1
- package/dist/internal/localization.js +1 -1
- package/dist/internal/package-metadata.d.ts +1 -1
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/positioning-strategy.d.ts +3 -1
- package/dist/internal/state-part.d.ts +49 -0
- package/dist/internal/state-part.js +1 -0
- package/dist/internal/variants.styles.js +1 -1
- package/dist/lyra.d.ts +1 -1
- package/dist/svelte.d.ts +2 -2
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/testing/lyra-tag-event-map.d.ts +2 -2
- package/dist/testing/lyra-tag-event-map.js +1 -1
- package/dist/testing/wait-for-mount.d.ts +46 -0
- package/dist/testing/wait-for-mount.js +1 -0
- package/dist/theme/theme-bootstrap.js +1 -1
- package/dist/theme/theme.d.ts +11 -2
- package/dist/theme/theme.js +1 -1
- package/dist/translations/ar/layout.js +1 -1
- package/dist/translations/de/layout.js +1 -1
- package/dist/translations/es/layout.js +1 -1
- package/dist/translations/fa/layout.js +1 -1
- package/dist/translations/fr/layout.js +1 -1
- package/dist/translations/he/layout.js +1 -1
- package/dist/translations/it/layout.js +1 -1
- package/dist/translations/ja/layout.js +1 -1
- package/dist/translations/pt-BR/layout.js +1 -1
- package/dist/translations/ru/layout.js +1 -1
- package/dist/translations/zh-CN/layout.js +1 -1
- package/dist/utilities/format.d.ts +17 -0
- package/dist/utilities/format.js +1 -1
- package/dist/vue.d.ts +2 -2
- package/llms/components/lr-app-rail-group.md +87 -10
- package/llms/components/lr-app-rail-item.md +88 -11
- package/llms/components/lr-app-rail.md +88 -11
- package/llms/components/lr-attachment-trigger.md +21 -0
- package/llms/components/lr-bar-chart.md +3 -2
- package/llms/components/lr-bubble-chart.md +3 -2
- package/llms/components/lr-callout.md +10 -0
- package/llms/components/lr-chart.md +43 -12
- package/llms/components/lr-citation-badge.md +7 -1
- package/llms/components/lr-code-block.md +21 -0
- package/llms/components/lr-color-picker.md +12 -7
- package/llms/components/lr-combobox.md +13 -1
- package/llms/components/lr-confirm-bar.md +36 -7
- package/llms/components/lr-context-meter.md +17 -4
- package/llms/components/lr-date-input.md +7 -1
- package/llms/components/lr-date-picker.md +6 -0
- package/llms/components/lr-dialog.md +21 -0
- package/llms/components/lr-doughnut-chart.md +3 -2
- package/llms/components/lr-drawer.md +10 -0
- package/llms/components/lr-drop-zone.md +16 -7
- package/llms/components/lr-dropdown-item.md +7 -0
- package/llms/components/lr-entity-chip.md +7 -1
- package/llms/components/lr-export-button.md +7 -1
- package/llms/components/lr-file-input.md +21 -10
- package/llms/components/lr-filter-bar.md +91 -15
- package/llms/components/lr-flow-canvas.md +16 -9
- package/llms/components/lr-gauge.md +22 -2
- package/llms/components/lr-histogram.md +7 -2
- package/llms/components/lr-icon-button.md +15 -7
- package/llms/components/lr-input.md +3 -1
- package/llms/components/lr-line-chart.md +3 -2
- package/llms/components/lr-lite-chart.md +13 -0
- package/llms/components/lr-locale-picker.md +7 -1
- package/llms/components/lr-mention-popover.md +16 -3
- package/llms/components/lr-menu-item.md +7 -0
- package/llms/components/lr-menu.md +8 -1
- package/llms/components/lr-message-actions.md +10 -0
- package/llms/components/lr-model-select.md +8 -3
- package/llms/components/lr-native-time-input.md +8 -1
- package/llms/components/lr-number-input.md +8 -1
- package/llms/components/lr-option.md +12 -0
- package/llms/components/lr-otp-input.md +6 -0
- package/llms/components/lr-pie-chart.md +3 -2
- package/llms/components/lr-polar-area-chart.md +3 -2
- package/llms/components/lr-prompt-input.md +2 -2
- package/llms/components/lr-radar-chart.md +3 -2
- package/llms/components/lr-reorder-item.md +12 -0
- package/llms/components/lr-reorder-list.md +12 -0
- package/llms/components/lr-scatter-chart.md +3 -2
- package/llms/components/lr-sequence-strip.md +10 -4
- package/llms/components/lr-streaming-text-core.md +21 -8
- package/llms/components/lr-streaming-text.md +34 -4
- package/llms/components/lr-suggestion-chips.md +8 -4
- package/llms/components/lr-table.md +47 -10
- package/llms/components/lr-textarea.md +1 -1
- package/llms/components/lr-time-input.md +7 -1
- package/llms/components/lr-tool-call-chip.md +7 -1
- package/llms/components/lr-tour.md +7 -1
- package/llms/components/lr-usage-badge.md +7 -1
- package/llms/components/lr-voice-picker.md +7 -3
- package/llms/shared.md +169 -16
- package/llms/tokens.md +17 -1
- package/llms-full.txt +941 -147
- package/package.json +16 -2
- package/registrations.json +1 -1
- package/vscode-css-data.json +1 -1
- package/vscode-html-data.json +1 -1
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{registerLyraLocale}from"../../internal/localization-runtime.js";const strings={carousel:"carrossel",carouselLabel:"Carrossel",carouselSlide:"slide",carouselSlidePosition:"Slide {index} de {total}",carouselSlideAnnouncement:"{position}: {content}",carouselSlideAnnouncementSeparator:". ",carouselIndicators:"Slides do carrossel",carouselGoTo:"Ir para o slide {index}",scrollerLabel:"Conteúdo rolável",scrollPrevious:"Rolar para trás",scrollNext:"Rolar para frente",closeNavigation:"Fechar a navegação",openNavigation:"Abrir a navegação",resizeNavigation:"Redimensionar a navegação",appRailCollapse:"Recolher a navegação",appRailExpand:"Expandir a navegação",resizeValuePercent:"{value} por cento",commandPaletteLabel:"Paleta de comandos",commandPalettePlaceholder:"Pesquisar comandos…",commandPaletteEmpty:"Nenhum comando correspondente.",commandPaletteResults:"Comandos",dockPanelCollapse:"Recolher o painel",dockPanelExpand:"Expandir o painel",dockPanelResize:"Redimensionar o painel",responsivePanel:"Painel",breadcrumb:"Trilha de navegação",resizeDivider:"Redimensionar o divisor entre o painel {a} e o painel {b}",widgetFullscreenPanel:"Painel em tela cheia",widgetViewGroup:"Modo de exibição do painel",widgetExitFullscreen:"Sair da tela cheia",widgetExpandToFullscreen:"Expandir para tela cheia",widgetCollapse:"Recolher o painel",widgetExpand:"Expandir o painel",skipToContent:"Pular para o conteúdo",dashboardGridLabel:"Grade do painel",dashboardCellCollisionRejected:"Não é possível posicionar {label} aí porque sobrepõe outra célula.",dashboardCellMoved:"{label} movido para a coluna {x}, linha {y}.",dashboardCellResized:"{label} redimensionado para {w} de largura e {h} de altura.",filterBarReset:"Redefinir os filtros",filterBarActiveFilters:"Filtros ativos",drilldownDocuments:"Documentos",drilldownRuns:"Execuções do agente",drilldownEmpty:"Nenhum item selecionado",drilldownUntitledNode:"Etapa sem título",reorderMovePending:"Reordenação pendente.",reorderMoveCancelled:"Reordenação cancelada."};registerLyraLocale("pt-BR",strings);
|
|
1
|
+
import{registerLyraLocale}from"../../internal/localization-runtime.js";const strings={carousel:"carrossel",carouselLabel:"Carrossel",carouselSlide:"slide",carouselSlidePosition:"Slide {index} de {total}",carouselSlideAnnouncement:"{position}: {content}",carouselSlideAnnouncementSeparator:". ",carouselIndicators:"Slides do carrossel",carouselGoTo:"Ir para o slide {index}",scrollerLabel:"Conteúdo rolável",scrollPrevious:"Rolar para trás",scrollNext:"Rolar para frente",closeNavigation:"Fechar a navegação",openNavigation:"Abrir a navegação",resizeNavigation:"Redimensionar a navegação",appRailCollapse:"Recolher a navegação",appRailExpand:"Expandir a navegação",appRailItemCollapse:"Recolher {label}",appRailItemExpand:"Expandir {label}",resizeValuePercent:"{value} por cento",commandPaletteLabel:"Paleta de comandos",commandPalettePlaceholder:"Pesquisar comandos…",commandPaletteEmpty:"Nenhum comando correspondente.",commandPaletteResults:"Comandos",dockPanelCollapse:"Recolher o painel",dockPanelExpand:"Expandir o painel",dockPanelResize:"Redimensionar o painel",responsivePanel:"Painel",breadcrumb:"Trilha de navegação",resizeDivider:"Redimensionar o divisor entre o painel {a} e o painel {b}",widgetFullscreenPanel:"Painel em tela cheia",widgetViewGroup:"Modo de exibição do painel",widgetExitFullscreen:"Sair da tela cheia",widgetExpandToFullscreen:"Expandir para tela cheia",widgetCollapse:"Recolher o painel",widgetExpand:"Expandir o painel",skipToContent:"Pular para o conteúdo",dashboardGridLabel:"Grade do painel",dashboardCellCollisionRejected:"Não é possível posicionar {label} aí porque sobrepõe outra célula.",dashboardCellMoved:"{label} movido para a coluna {x}, linha {y}.",dashboardCellResized:"{label} redimensionado para {w} de largura e {h} de altura.",filterBarReset:"Redefinir os filtros",filterBarActiveFilters:"Filtros ativos",drilldownDocuments:"Documentos",drilldownRuns:"Execuções do agente",drilldownEmpty:"Nenhum item selecionado",drilldownUntitledNode:"Etapa sem título",reorderMovePending:"Reordenação pendente.",reorderMoveCancelled:"Reordenação cancelada."};registerLyraLocale("pt-BR",strings);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{registerLyraLocale}from"../../internal/localization-runtime.js";const strings={carousel:"карусель",carouselLabel:"Карусель",carouselSlide:"слайд",carouselSlidePosition:"Слайд {index} из {total}",carouselSlideAnnouncement:"{position}: {content}",carouselSlideAnnouncementSeparator:". ",carouselIndicators:"Слайды карусели",carouselGoTo:"Перейти к слайду {index}",scrollerLabel:"Прокручиваемое содержимое",scrollPrevious:"Прокрутить назад",scrollNext:"Прокрутить вперёд",closeNavigation:"Закрыть навигацию",openNavigation:"Открыть навигацию",resizeNavigation:"Изменить размер навигации",appRailCollapse:"Свернуть навигацию",appRailExpand:"Развернуть навигацию",resizeValuePercent:"{value} процентов",commandPaletteLabel:"Палитра команд",commandPalettePlaceholder:"Поиск команд…",commandPaletteEmpty:"Подходящих команд нет.",commandPaletteResults:"Команды",dockPanelCollapse:"Свернуть панель",dockPanelExpand:"Развернуть панель",dockPanelResize:"Изменить размер панели",responsivePanel:"Панель",breadcrumb:"Навигационная цепочка",resizeDivider:"Изменить размер: разделитель между панелями {a} и {b}",widgetFullscreenPanel:"Полноэкранная панель",widgetViewGroup:"Режим панели",widgetExitFullscreen:"Выйти из полноэкранного режима",widgetExpandToFullscreen:"Развернуть на весь экран",widgetCollapse:"Свернуть панель",widgetExpand:"Развернуть панель",skipToContent:"Перейти к содержимому",dashboardGridLabel:"Сетка панели мониторинга",dashboardCellCollisionRejected:"{label} нельзя разместить здесь: перекрытие с другой ячейкой.",dashboardCellMoved:"{label} перемещён в столбец {x}, строку {y}.",dashboardCellResized:"Размер {label} изменён: ширина {w}, высота {h}.",filterBarReset:"Сбросить фильтры",filterBarActiveFilters:"Активные фильтры",drilldownDocuments:"Документы",drilldownRuns:"Запуски агентов",drilldownEmpty:"Элемент не выбран",drilldownUntitledNode:"Шаг без названия",reorderMovePending:"Переупорядочивание ожидает завершения.",reorderMoveCancelled:"Переупорядочивание отменено."};registerLyraLocale("ru",strings);
|
|
1
|
+
import{registerLyraLocale}from"../../internal/localization-runtime.js";const strings={carousel:"карусель",carouselLabel:"Карусель",carouselSlide:"слайд",carouselSlidePosition:"Слайд {index} из {total}",carouselSlideAnnouncement:"{position}: {content}",carouselSlideAnnouncementSeparator:". ",carouselIndicators:"Слайды карусели",carouselGoTo:"Перейти к слайду {index}",scrollerLabel:"Прокручиваемое содержимое",scrollPrevious:"Прокрутить назад",scrollNext:"Прокрутить вперёд",closeNavigation:"Закрыть навигацию",openNavigation:"Открыть навигацию",resizeNavigation:"Изменить размер навигации",appRailCollapse:"Свернуть навигацию",appRailExpand:"Развернуть навигацию",appRailItemCollapse:"Свернуть {label}",appRailItemExpand:"Развернуть {label}",resizeValuePercent:"{value} процентов",commandPaletteLabel:"Палитра команд",commandPalettePlaceholder:"Поиск команд…",commandPaletteEmpty:"Подходящих команд нет.",commandPaletteResults:"Команды",dockPanelCollapse:"Свернуть панель",dockPanelExpand:"Развернуть панель",dockPanelResize:"Изменить размер панели",responsivePanel:"Панель",breadcrumb:"Навигационная цепочка",resizeDivider:"Изменить размер: разделитель между панелями {a} и {b}",widgetFullscreenPanel:"Полноэкранная панель",widgetViewGroup:"Режим панели",widgetExitFullscreen:"Выйти из полноэкранного режима",widgetExpandToFullscreen:"Развернуть на весь экран",widgetCollapse:"Свернуть панель",widgetExpand:"Развернуть панель",skipToContent:"Перейти к содержимому",dashboardGridLabel:"Сетка панели мониторинга",dashboardCellCollisionRejected:"{label} нельзя разместить здесь: перекрытие с другой ячейкой.",dashboardCellMoved:"{label} перемещён в столбец {x}, строку {y}.",dashboardCellResized:"Размер {label} изменён: ширина {w}, высота {h}.",filterBarReset:"Сбросить фильтры",filterBarActiveFilters:"Активные фильтры",drilldownDocuments:"Документы",drilldownRuns:"Запуски агентов",drilldownEmpty:"Элемент не выбран",drilldownUntitledNode:"Шаг без названия",reorderMovePending:"Переупорядочивание ожидает завершения.",reorderMoveCancelled:"Переупорядочивание отменено."};registerLyraLocale("ru",strings);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{registerLyraLocale}from"../../internal/localization-runtime.js";const strings={carousel:"轮播",carouselLabel:"轮播",carouselSlide:"幻灯片",carouselSlidePosition:"第{index}张幻灯片,共{total}张",carouselSlideAnnouncement:"{position}:{content}",carouselSlideAnnouncementSeparator:"。",carouselIndicators:"轮播幻灯片",carouselGoTo:"转到第{index}张幻灯片",scrollerLabel:"可滚动内容",scrollPrevious:"向前滚动",scrollNext:"向后滚动",closeNavigation:"关闭导航",openNavigation:"打开导航",resizeNavigation:"调整导航宽度",appRailCollapse:"收起导航",appRailExpand:"展开导航",resizeValuePercent:"百分之{value}",commandPaletteLabel:"命令面板",commandPalettePlaceholder:"搜索命令…",commandPaletteEmpty:"没有匹配的命令。",commandPaletteResults:"命令",dockPanelCollapse:"收起面板",dockPanelExpand:"展开面板",dockPanelResize:"调整面板大小",responsivePanel:"面板",breadcrumb:"面包屑导航",resizeDivider:"调整面板{a}与面板{b}之间的分隔条",widgetFullscreenPanel:"全屏面板",widgetViewGroup:"面板视图",widgetExitFullscreen:"退出全屏",widgetExpandToFullscreen:"展开为全屏",widgetCollapse:"收起面板",widgetExpand:"展开面板",skipToContent:"跳到主要内容",dashboardGridLabel:"仪表板网格",dashboardCellCollisionRejected:"{label}无法放置在此处,因为它与另一个单元格重叠。",dashboardCellMoved:"{label}已移动到第{x}列、第{y}行。",dashboardCellResized:"{label}的大小已调整为宽{w}、高{h}。",filterBarReset:"重置筛选条件",filterBarActiveFilters:"生效的筛选条件",drilldownDocuments:"文档",drilldownRuns:"智能体运行",drilldownEmpty:"未选择任何项",drilldownUntitledNode:"未命名步骤",reorderMovePending:"重新排序待处理。",reorderMoveCancelled:"重新排序已取消。"};registerLyraLocale("zh-CN",strings);
|
|
1
|
+
import{registerLyraLocale}from"../../internal/localization-runtime.js";const strings={carousel:"轮播",carouselLabel:"轮播",carouselSlide:"幻灯片",carouselSlidePosition:"第{index}张幻灯片,共{total}张",carouselSlideAnnouncement:"{position}:{content}",carouselSlideAnnouncementSeparator:"。",carouselIndicators:"轮播幻灯片",carouselGoTo:"转到第{index}张幻灯片",scrollerLabel:"可滚动内容",scrollPrevious:"向前滚动",scrollNext:"向后滚动",closeNavigation:"关闭导航",openNavigation:"打开导航",resizeNavigation:"调整导航宽度",appRailCollapse:"收起导航",appRailExpand:"展开导航",appRailItemCollapse:"收起{label}",appRailItemExpand:"展开{label}",resizeValuePercent:"百分之{value}",commandPaletteLabel:"命令面板",commandPalettePlaceholder:"搜索命令…",commandPaletteEmpty:"没有匹配的命令。",commandPaletteResults:"命令",dockPanelCollapse:"收起面板",dockPanelExpand:"展开面板",dockPanelResize:"调整面板大小",responsivePanel:"面板",breadcrumb:"面包屑导航",resizeDivider:"调整面板{a}与面板{b}之间的分隔条",widgetFullscreenPanel:"全屏面板",widgetViewGroup:"面板视图",widgetExitFullscreen:"退出全屏",widgetExpandToFullscreen:"展开为全屏",widgetCollapse:"收起面板",widgetExpand:"展开面板",skipToContent:"跳到主要内容",dashboardGridLabel:"仪表板网格",dashboardCellCollisionRejected:"{label}无法放置在此处,因为它与另一个单元格重叠。",dashboardCellMoved:"{label}已移动到第{x}列、第{y}行。",dashboardCellResized:"{label}的大小已调整为宽{w}、高{h}。",filterBarReset:"重置筛选条件",filterBarActiveFilters:"生效的筛选条件",drilldownDocuments:"文档",drilldownRuns:"智能体运行",drilldownEmpty:"未选择任何项",drilldownUntitledNode:"未命名步骤",reorderMovePending:"重新排序待处理。",reorderMoveCancelled:"重新排序已取消。"};registerLyraLocale("zh-CN",strings);
|
|
@@ -21,6 +21,11 @@ export type LyraFormattableNumber=number|bigint|string;
|
|
|
21
21
|
* may be a `bigint` or a decimal string for exact-precision input (large ids, monetary amounts) --
|
|
22
22
|
* see {@link LyraFormattableNumber}. Invalid `options` (for example an unsupported currency code)
|
|
23
23
|
* throw the same `RangeError`/`TypeError` `Intl.NumberFormat`'s own constructor would.
|
|
24
|
+
*
|
|
25
|
+
* An omitted `locale` (or `'auto'`) resolves to the page's active `setLyraLocale()` locale,
|
|
26
|
+
* matching every rendered `<lr-*>` component -- see {@link resolveActiveOrExplicitLocale}. Falls
|
|
27
|
+
* back to `'en'` only once no active locale has ever been set, so a caller that never calls
|
|
28
|
+
* `setLyraLocale()` sees no change. An explicit tag always stays authoritative.
|
|
24
29
|
*/
|
|
25
30
|
export declare function formatNumber(value:LyraFormattableNumber,locale?:string,options?:Intl.NumberFormatOptions):string;
|
|
26
31
|
/**
|
|
@@ -30,6 +35,10 @@ export declare function formatNumber(value:LyraFormattableNumber,locale?:string,
|
|
|
30
35
|
* non-finite epoch, or a non-`Date` object) instead of throwing -- mirroring `resolveCssLength()`'s
|
|
31
36
|
* "unsupported input returns `undefined`" convention for a pure helper. Invalid `options` still
|
|
32
37
|
* throw, matching `Intl.DateTimeFormat`'s own constructor.
|
|
38
|
+
*
|
|
39
|
+
* An omitted `locale` (or `'auto'`) resolves the same way {@link formatNumber} does: to the page's
|
|
40
|
+
* active `setLyraLocale()` locale, falling back to `'en'` only once none has been set; an explicit
|
|
41
|
+
* tag always stays authoritative. See {@link resolveActiveOrExplicitLocale}.
|
|
33
42
|
*/
|
|
34
43
|
export declare function formatDate(value:string|number|Date,locale?:string,options?:Intl.DateTimeFormatOptions):string|undefined;export interface LyraFormatRelativeTimeOptions{
|
|
35
44
|
/** An explicit unit, or `'auto'` (default) to pick the largest unit the magnitude clears --
|
|
@@ -45,6 +54,10 @@ readonly now?:number;}
|
|
|
45
54
|
* `undefined` for an unresolvable source. This is a one-shot computation against `options.now` (or
|
|
46
55
|
* the current instant); it does not schedule a refresh -- pair it with your own timer, or use
|
|
47
56
|
* `<lr-relative-time sync>`, for text that must stay current while displayed.
|
|
57
|
+
*
|
|
58
|
+
* An omitted `locale` (or `'auto'`) resolves the same way {@link formatNumber} does: to the page's
|
|
59
|
+
* active `setLyraLocale()` locale, falling back to `'en'` only once none has been set; an explicit
|
|
60
|
+
* tag always stays authoritative. See {@link resolveActiveOrExplicitLocale}.
|
|
48
61
|
*/
|
|
49
62
|
export declare function formatRelativeTime(value:string|number|Date,locale?:string,options?:LyraFormatRelativeTimeOptions):string|undefined;export interface LyraFormatBytesOptions{readonly unit?:LyraFormatBytesUnit;readonly display?:LyraFormatDisplay;
|
|
50
63
|
/** The magnitude ladder step between units (`kilobyte` = 1000 bytes; pass `1024` for the binary
|
|
@@ -60,5 +73,9 @@ readonly unitStep?:number;readonly decimals?:number;}
|
|
|
60
73
|
* unparseable `value`, matching `formatDate()`/`formatRelativeTime()`'s "unresolvable input"
|
|
61
74
|
* convention -- `Intl.NumberFormat` throws for `style: 'unit'` paired with the undefined unit a
|
|
62
75
|
* `NaN` magnitude would otherwise select.
|
|
76
|
+
*
|
|
77
|
+
* An omitted `locale` (or `'auto'`) resolves the same way {@link formatNumber} does (this function
|
|
78
|
+
* delegates the actual number formatting to it): to the page's active `setLyraLocale()` locale,
|
|
79
|
+
* falling back to `'en'` only once none has been set; an explicit tag always stays authoritative.
|
|
63
80
|
*/
|
|
64
81
|
export declare function formatBytes(value:LyraFormattableNumber,locale?:string,options?:LyraFormatBytesOptions):string|undefined;
|
package/dist/utilities/format.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getDateTimeFormat,getNumberFormat,getRelativeTimeFormat}from"../internal/intl-cache.js";import{finiteInteger}from"../internal/numbers.js";import{byteFormat,byteUnitIndex,relativeTimeFormatOptions,resolveDateSource,resolveRelativeTimeState,safeByteUnitStep}from"../components/utility/format/format-options.js";function formatNumber(value,locale,options){return getNumberFormat(locale,options).format(value)}function formatDate(value,locale,options){const resolved=resolveDateSource(value);return resolved?getDateTimeFormat(locale,options).format(resolved):void 0}function formatRelativeTime(value,locale,options={}){const target=resolveDateSource(value)?.getTime();if(target===void 0)return;const now=options.now??Date.now(),state=resolveRelativeTimeState((target-now)/1e3,options.unit??"auto"),formatOptions=relativeTimeFormatOptions(options.format??"long",options.numeric??"auto");return getRelativeTimeFormat(locale,formatOptions).format(state.value,state.selected)}const DEFAULT_BYTES_UNIT_STEP=1e3,DEFAULT_BYTES_DECIMALS=1,DECIMAL_STRING_PATTERN=/^\s*(-?)(\d+)(?:\.(\d+))?\s*$/;function exactDecimal(value){if(typeof value=="bigint")return{numerator:value,scale:0};if(typeof value=="number")return Number.isFinite(value)&&Number.isInteger(value)?{numerator:BigInt(value),scale:0}:void 0;const match=DECIMAL_STRING_PATTERN.exec(value);if(!match)return;const[,sign,whole,fraction=""]=match;return{numerator:BigInt(`${sign}${whole}${fraction}`),scale:fraction.length}}function divideExact(numerator,scale,divisor,decimals){const negative=numerator<0n,magnitude=negative?-numerator:numerator,roundScale=10n**BigInt(decimals),denominator=10n**BigInt(scale)*divisor,scaledNumerator=magnitude*roundScale,quotient=scaledNumerator/denominator,digits=(scaledNumerator%denominator*2n>=denominator?quotient+1n:quotient).toString().padStart(decimals+1,"0"),integerPart=digits.slice(0,digits.length-decimals)||"0",fractionPart=decimals>0?digits.slice(digits.length-decimals):"",sign=negative?"-":"";return fractionPart?`${sign}${integerPart}.${fractionPart}`:`${sign}${integerPart}`}function formatBytes(value,locale,options={}){const unit=options.unit??"byte",display=options.display??"short",unitStep=options.unitStep??DEFAULT_BYTES_UNIT_STEP,decimals=finiteInteger(options.decimals??DEFAULT_BYTES_DECIMALS,1,0,10),exact=exactDecimal(value);if(exact===void 0){const numeric=typeof value=="number"?value:Number(value);if(!Number.isFinite(numeric))return;const{amount:amount2,options:formatOptions2}=byteFormat(numeric,unit,display,unitStep,decimals);return formatNumber(amount2,locale,formatOptions2)}const approximateMagnitude=Number(exact.numerator)/10**exact.scale,{options:formatOptions}=byteFormat(approximateMagnitude,unit,display,unitStep,decimals),index=byteUnitIndex(approximateMagnitude,unitStep),divisor=BigInt(Math.round(safeByteUnitStep(unitStep)))**BigInt(index),amount=divideExact(exact.numerator,exact.scale,divisor,decimals);return formatNumber(amount,locale,formatOptions)}export{formatBytes,formatDate,formatNumber,formatRelativeTime};
|
|
1
|
+
import{getDateTimeFormat,getNumberFormat,getRelativeTimeFormat}from"../internal/intl-cache.js";import{resolveActiveOrExplicitLocale}from"../internal/localization-runtime.js";import{finiteInteger}from"../internal/numbers.js";import{byteFormat,byteUnitIndex,relativeTimeFormatOptions,resolveDateSource,resolveRelativeTimeState,safeByteUnitStep}from"../components/utility/format/format-options.js";function formatNumber(value,locale,options){return getNumberFormat(resolveActiveOrExplicitLocale(locale),options).format(value)}function formatDate(value,locale,options){const resolved=resolveDateSource(value);return resolved?getDateTimeFormat(resolveActiveOrExplicitLocale(locale),options).format(resolved):void 0}function formatRelativeTime(value,locale,options={}){const target=resolveDateSource(value)?.getTime();if(target===void 0)return;const now=options.now??Date.now(),state=resolveRelativeTimeState((target-now)/1e3,options.unit??"auto"),formatOptions=relativeTimeFormatOptions(options.format??"long",options.numeric??"auto");return getRelativeTimeFormat(resolveActiveOrExplicitLocale(locale),formatOptions).format(state.value,state.selected)}const DEFAULT_BYTES_UNIT_STEP=1e3,DEFAULT_BYTES_DECIMALS=1,DECIMAL_STRING_PATTERN=/^\s*(-?)(\d+)(?:\.(\d+))?\s*$/;function exactDecimal(value){if(typeof value=="bigint")return{numerator:value,scale:0};if(typeof value=="number")return Number.isFinite(value)&&Number.isInteger(value)?{numerator:BigInt(value),scale:0}:void 0;const match=DECIMAL_STRING_PATTERN.exec(value);if(!match)return;const[,sign,whole,fraction=""]=match;return{numerator:BigInt(`${sign}${whole}${fraction}`),scale:fraction.length}}function divideExact(numerator,scale,divisor,decimals){const negative=numerator<0n,magnitude=negative?-numerator:numerator,roundScale=10n**BigInt(decimals),denominator=10n**BigInt(scale)*divisor,scaledNumerator=magnitude*roundScale,quotient=scaledNumerator/denominator,digits=(scaledNumerator%denominator*2n>=denominator?quotient+1n:quotient).toString().padStart(decimals+1,"0"),integerPart=digits.slice(0,digits.length-decimals)||"0",fractionPart=decimals>0?digits.slice(digits.length-decimals):"",sign=negative?"-":"";return fractionPart?`${sign}${integerPart}.${fractionPart}`:`${sign}${integerPart}`}function formatBytes(value,locale,options={}){const unit=options.unit??"byte",display=options.display??"short",unitStep=options.unitStep??DEFAULT_BYTES_UNIT_STEP,decimals=finiteInteger(options.decimals??DEFAULT_BYTES_DECIMALS,1,0,10),exact=exactDecimal(value);if(exact===void 0){const numeric=typeof value=="number"?value:Number(value);if(!Number.isFinite(numeric))return;const{amount:amount2,options:formatOptions2}=byteFormat(numeric,unit,display,unitStep,decimals);return formatNumber(amount2,locale,formatOptions2)}const approximateMagnitude=Number(exact.numerator)/10**exact.scale,{options:formatOptions}=byteFormat(approximateMagnitude,unit,display,unitStep,decimals),index=byteUnitIndex(approximateMagnitude,unitStep),divisor=BigInt(Math.round(safeByteUnitStep(unitStep)))**BigInt(index),amount=divideExact(exact.numerator,exact.scale,divisor,decimals);return formatNumber(amount,locale,formatOptions)}export{formatBytes,formatDate,formatNumber,formatRelativeTime};
|