@astryx-vue/core 0.7.27 → 0.7.29
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/AlertDialog/index.d.ts +1 -1
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-DZpJzvOC.js → AlertDialog-BO2LucRK.js} +3 -3
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-D7ik41g-.js → AppShell-CeFsQXNh.js} +8 -3
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-D_C9RBJb.js → Avatar-76xnfD9n.js} +3 -2
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-CFvNDgU-.js → AvatarGroup-Beuljwpu.js} +5 -3
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-C1B7DsHS.js → Banner-C-8DEWdJ.js} +4 -3
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-BgiZY7un.js → Breadcrumbs-sakAtNnr.js} +1 -1
- package/dist/Button/index.d.ts +2 -2
- package/dist/Button/index.js +1 -1
- package/dist/{Button-DsjdehLZ.js → Button-BeNp2zq_.js} +7 -4
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-CSW7a9vq.js → ButtonGroup-CosYAili.js} +15 -4
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-Bzgi-XyF.js → Calendar-DwFAzDky.js} +4 -3
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel--VycM-Sa.js → Carousel-C8kE0YJh.js} +4 -3
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-C1DlnlCQ.js → Chat-Bl_Wr2lK.js} +26 -25
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-uk8nuCEf.js → CheckboxInput-iCg8FgRv.js} +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-Dr4kQ-BC.js → CheckboxList-Dr40y9ME.js} +5 -4
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-BAFsn6N1.js → Citation-CSgRYxGU.js} +3 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-PSnUWX57.js → CodeBlock-CSxQPryb.js} +1 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-lewtyQrO.js → CommandPalette-C1duZfmg.js} +8 -7
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BUnqjeW5.js → ComplexSelector-DFKi6sKq.js} +6 -5
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-IDkvorRp.js → ContextMenu-DN_nTBgW.js} +6 -5
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-DTxxFz9-.js → DateInput-CI1_FFPZ.js} +14 -9
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-D4Us58KW.js → DateRangeInput-lTx_eqfT.js} +14 -8
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-CliLnI7P.js → DateTimeInput-BouEOOwo.js} +16 -8
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +1 -1
- package/dist/{DialogHeader-Hk419KW1.js → DialogHeader-cr9rFLYM.js} +4 -3
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-DoQ9hjKz.js → Drawer-Ba-yG1rk.js} +1 -1
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-BF2Z5T4h.js → DropdownMenu-BJicFgwf.js} +4 -5
- package/dist/{DropdownMenu-B2iga1fe.js → DropdownMenu-BPZjqbcw.js} +3 -4
- package/dist/{DropdownMenuRadioItem.vue-D455cIQQ.d.ts → DropdownMenuRadioItem.vue-C9DdN6UE.d.ts} +1 -1
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-if5a58LO.js → Field-Dc15m78p.js} +1 -1
- package/dist/{FieldInfoTip-BJAaKJjM.js → FieldInfoTip-BouJddgS.js} +1 -1
- package/dist/{FieldLabel-C-IaUcP4.js → FieldLabel-CfO3zaZ5.js} +4 -3
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-0zBWfO8h.js → FileInput-CFUgV2px.js} +6 -5
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/Icon/index.d.ts +3 -3
- package/dist/IconButton/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-Crtfruc0.js → IconButton-C91rhbvu.js} +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-DNQy7wqB.js → InfoTip-iKOp_vUV.js} +3 -2
- package/dist/{InputClearButton-DhvxPkK6.js → InputClearButton-BiF7qGMR.js} +8 -5
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-B1kG0rBN.js → InputGroup-CIKleAu8.js} +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-CUEIHCf4.js → InternationalizationProvider-CcEXq6fT.js} +2 -3
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-DyxKNYtE.js → Kbd-D4JPY4VI.js} +3 -2
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-B8uMFPOS.js → Lightbox-VlvxtZn4.js} +5 -4
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Kc2RQFHc.js → Link-k1Z20GSP.js} +3 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-NVkHi_tk.js → Markdown-DsE-40yq.js} +9 -4
- package/dist/{MediaTheme-Bt7WBTkq.js → MediaTheme-BVKUsMfC.js} +37 -1
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-4GnMi6s9.js → MetadataList-n3YXiP4a.js} +3 -2
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-TMDrnXfG.js → MobileNavToggle-_dutVRGj.js} +4 -3
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-CpGEXWCd.js → MoreMenu-1lxF-JY5.js} +4 -3
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-Baca6xNx.js → MultiSelector-Slqiulwd.js} +8 -7
- package/dist/{NavHeadingSurface-j2gzMVKt.js → NavHeadingSurface-Cjp2DHPt.js} +3 -2
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-BBFGZ4Fg.js → NumberInput-Bsz7bmRp.js} +6 -5
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-BgDOI3ar.js → Outline-BXu7HCHp.js} +3 -2
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-D4fC5s_q.js → OverflowList-CJZgNVSb.js} +3 -2
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Do_MIlo4.js → Pagination-DOw8gHjL.js} +4 -3
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-Bd93LlDd.js → Popover-cnfHz2tm.js} +4 -3
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DyqItMHo.js → PowerSearch-2jO62NSM.js} +19 -18
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-Dzp4qSgm.js → RadioGroup-D3TXgdwV.js} +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-CAIgB1j_.js → RadioList-Boj8QfPe.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-GAmiHb0-.js → ResizeHandle-Bon51yNV.js} +3 -2
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-B9lINQRM.js → Selector-DCrEaxnG.js} +6 -5
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DzZ12DIq.js → SideNav-DeVtoFFq.js} +8 -7
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-Cuk2ul9w.js → Slider-BFc5GTXb.js} +1 -1
- package/dist/Spinner/index.js +1 -1
- package/dist/{Spinner-ke63bQPv.js → Spinner-DEVPDsD0.js} +3 -2
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-C68f_iJG.js → Stepper-B_CDbhCW.js} +4 -3
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-bnxiN6Qe.js → Switch-B0E8cZy7.js} +4 -3
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-8dlO0Ws6.js → TabList-DBSXa5QT.js} +3 -2
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-j_DCDbcI.js → Table-sKQpWVKc.js} +24 -23
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-Bzz_KcKT.js → TextArea-BzcHz2qI.js} +11 -6
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-givkH9HQ.js → TextInput-BeJNEQL6.js} +7 -6
- package/dist/Theme/index.d.ts +3 -3
- package/dist/Theme/index.js +3 -3
- package/dist/{Theme-BQe--DY6.js → Theme-1r_aWHvr.js} +330 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-CZOWP5HN.js → Thumbnail-CTkLFo-A.js} +9 -4
- package/dist/{TimeField-ByoS5s_I.js → TimeField-BGtS_m-U.js} +10 -5
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-D9kvMQso.js → TimeInput-BKfg3SZ7.js} +2 -2
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-CEdNhKc5.js → Timestamp-B7H0KScU.js} +5 -4
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-CnZrcU-G.js → Toast-aI9QMW-L.js} +5 -4
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-BMn4yJXe.js → ToggleButton-DI9I-LBH.js} +14 -7
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DWCDMawn.js → Token-CtG_XE6z.js} +3 -2
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-R0eC1BOk.js → Tokenizer-XeyJuIJ7.js} +6 -5
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-DHunql9h.js → TopNav-zpU9w-mH.js} +5 -4
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-Dg5gtkOu.js → TreeList-DeknLfbQ.js} +3 -2
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-BkmCC6DX.js → Typeahead-GOdnQXcB.js} +7 -6
- package/dist/{TypeaheadMenu-CFeJCv-6.js → TypeaheadMenu-BOzaCvSb.js} +1 -1
- package/dist/avatar-group-Dcn6i_ne.js +13 -0
- package/dist/banner-Bv76b50U.js +17 -0
- package/dist/calendar-Cs2vIPsV.js +31 -0
- package/dist/carousel-BHUqW44m.js +18 -0
- package/dist/chat-mh_siWVp.js +94 -0
- package/dist/checkbox-list-uI6q4y3V.js +13 -0
- package/dist/citation-h6fyz-JH.js +7 -0
- package/dist/command-palette-DuNs5XAd.js +34 -0
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.js +2 -2
- package/dist/{composables-DqJzanJ5.js → composables-lCxHhZQY.js} +4 -3
- package/dist/context-B8IEFCDR.js +51 -0
- package/dist/context-BJ9RkXYX.js +676 -0
- package/dist/context-menu-9i6CObx3.js +7 -0
- package/dist/date-input-Bj3KSuoJ.js +38 -0
- package/dist/date-range-input-CoCiWt9_.js +18 -0
- package/dist/dialog-CNjGcdd1.js +7 -0
- package/dist/dropdown-menu-BDu4gWwQ.js +15 -0
- package/dist/field-CehUqCe0.js +15 -0
- package/dist/file-input-C2JFODtb.js +40 -0
- package/dist/{locale-BA52q_fh.js → format-CiN0Dt_H.js} +1 -30
- package/dist/{index-BU78NOP-.d.ts → index-B0R5CLPF.d.ts} +1 -1
- package/dist/{index-rbhycKiu.d.ts → index-B16Jb5mf.d.ts} +11 -11
- package/dist/{index-CfPGC9aW.d.ts → index-BMCjAlq6.d.ts} +1 -1
- package/dist/{index-D57GW53K.d.ts → index-BMVI4cM5.d.ts} +1 -1
- package/dist/{index-rszZajcw.d.ts → index-BPf_jmME.d.ts} +2 -2
- package/dist/{index-BgT6mH3U.d.ts → index-BR3MOBYd.d.ts} +2 -2
- package/dist/{index-CbNLiaWw.d.ts → index-Bfm6mF-r.d.ts} +47 -2
- package/dist/{index-CAoenU4T.d.ts → index-BlhbRf58.d.ts} +1 -1
- package/dist/{index-gw92L7ZG.d.ts → index-BmYnVNI-.d.ts} +5 -5
- package/dist/{index-3t5RAfNP.d.ts → index-Bn-v89Vt.d.ts} +4 -4
- package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
- package/dist/{index-BZuEYd9y.d.ts → index-BvWBeoa8.d.ts} +2 -2
- package/dist/{index-BOCb89V9.d.ts → index-BxWCX2pJ.d.ts} +1 -1
- package/dist/{index-DyALKpjX.d.ts → index-CM2L3SUw.d.ts} +4 -4
- package/dist/{index-B-3EGjfQ.d.ts → index-CO9GW-ik.d.ts} +1 -1
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-CvquEEGw.d.ts → index-CXOAA8us.d.ts} +2 -2
- package/dist/{index-YKCx03zD.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-BPyRH3WL.d.ts → index-CfXW4km8.d.ts} +1 -1
- package/dist/{index-Be7N3B5F.d.ts → index-CvLWh-d-.d.ts} +2 -2
- package/dist/{index-DaXzQxos.d.ts → index-CxdKu7d2.d.ts} +2 -2
- package/dist/{index-BzZC2Y7c.d.ts → index-Cz72NaF_.d.ts} +1 -1
- package/dist/{index-C3f1zsJR.d.ts → index-D4FgX9h3.d.ts} +4 -4
- package/dist/{index-DkF8wxHr.d.ts → index-DCxdesMw.d.ts} +8 -8
- package/dist/{index-C16d2Fc4.d.ts → index-DDAcxZAP.d.ts} +1 -1
- package/dist/{index-DCU6dy7n.d.ts → index-DKgonPjs.d.ts} +1 -1
- package/dist/{index-CL8JvxHW.d.ts → index-DY8Wph-A.d.ts} +2 -2
- package/dist/{index-IfiA8CSr.d.ts → index-DZKv1WNB.d.ts} +3 -3
- package/dist/{index-CM8KfpBL.d.ts → index-Dlq0cFK-.d.ts} +2 -2
- package/dist/{index--tm6L1ot.d.ts → index-DpYJBFJj.d.ts} +1 -1
- package/dist/{index-DN1RqxjP.d.ts → index-DxR6cZBf.d.ts} +1 -1
- package/dist/{index-IFFGXlhq.d.ts → index-GmoeIuhl.d.ts} +1 -1
- package/dist/{index-_VG-Bc2K.d.ts → index-MOtVbTwK.d.ts} +5 -5
- package/dist/{index-DhMCql2U.d.ts → index-NHtQmIIM.d.ts} +1 -1
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/{index-D21zdEgS.d.ts → index-Uh-ddE5F.d.ts} +1 -1
- package/dist/{index-BSlzqFzV.d.ts → index-a1jCiQP7.d.ts} +5 -5
- package/dist/{index-D4zmrP2a.d.ts → index-dRBNR7Tq.d.ts} +80 -80
- package/dist/{index-BjbPK91B.d.ts → index-pACjRM0E.d.ts} +8 -2
- package/dist/{index-Dy746dfn.d.ts → index-unAZVFGz.d.ts} +1 -1
- package/dist/index.d.ts +48 -48
- package/dist/index.js +80 -81
- package/dist/info-tip-BV42YsA4.js +7 -0
- package/dist/input-DUSvqqG_.js +17 -0
- package/dist/kbd-C-D_nOfU.js +41 -0
- package/dist/keyboard-hint-KWx0-7kD.js +7 -0
- package/dist/layout-DzxSsBe8.js +17 -0
- package/dist/lightbox-BrvPVD8I.js +32 -0
- package/dist/loadCatalog-BHlH2S6H.js +2349 -0
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +4 -4
- package/dist/{useTranslator-Q85hi4qz.js → locale-BGrZM4ow.js} +31 -3
- package/dist/markdown-JcCeKquw.js +23 -0
- package/dist/metadata-list-BEmAuMYs.js +13 -0
- package/dist/more-menu-B_dod4C-.js +7 -0
- package/dist/multi-selector-B_pe6KkZ.js +48 -0
- package/dist/nav-CoUOgByC.js +50 -0
- package/dist/number-input-Dw5NSQxh.js +18 -0
- package/dist/outline-BflaJV62.js +7 -0
- package/dist/pagination-Ds3yXCJw.js +58 -0
- package/dist/popover-DxCyd_Ua.js +7 -0
- package/dist/{searchResultMessage-CFmIy2Da.js → searchResultMessage-BEqDlHdV.js} +3 -2
- package/dist/selector-qWbffnIX.js +30 -0
- package/dist/{semantic-CXHSMwPK.d.ts → semantic-Dj507RuV.d.ts} +1 -1
- package/dist/shared-aoQdb_6V.js +23 -0
- package/dist/spinner-DVia-eDf.js +7 -0
- package/dist/stepper-BOgJs2Ht.js +32 -0
- package/dist/switch-B9xwxdOU.js +7 -0
- package/dist/tab-list-B_q2n-9d.js +7 -0
- package/dist/text-area-Co4Egt6b.js +14 -0
- package/dist/text-input-BtwGEoGv.js +8 -0
- package/dist/thumbnail-BI82Ijpj.js +15 -0
- package/dist/time-input-DL1_SV7j.js +68 -0
- package/dist/timestamp-CFBVCsHF.js +17 -0
- package/dist/toast-BvAnX6Vc.js +13 -0
- package/dist/token-DcbdjdZ2.js +7 -0
- package/dist/tokenizer-DD_UBzR7.js +29 -0
- package/dist/tree-list-NZ1EZhtd.js +7 -0
- package/dist/typeahead-BzrhssJi.js +24 -0
- package/dist/{types-Dcai2Icw.d.ts → types-D8t_HevJ.d.ts} +1 -0
- package/dist/{types-hB0M54I7.d.ts → types-DRpOiAlm.d.ts} +1 -1
- package/dist/{types-BwVJBE-G.d.ts → types-bAQk3F8G.d.ts} +1 -1
- package/dist/{types-Bq4Yl6CS.d.ts → types-uWxXh1Jm.d.ts} +7 -2
- package/dist/{useActionGroupTracking-BncJjk1A.js → useActionGroupTracking-B4niQ_tR.js} +3 -3
- package/dist/{useInputStatusIcon-DCnx00BM.js → useInputStatusIcon-Da2FiXwF.js} +1 -1
- package/dist/{useMenuDrillIn-C5eJCuO1.js → useMenuDrillIn-uQtOSny6.js} +9 -1
- package/package.json +1 -1
- package/styles/avatar.css +2 -2
- package/styles/badge.css +8 -0
- package/styles/button.css +3 -0
- package/styles/chat.css +10 -3
- package/styles/dropdown-menu.css +3 -3
- package/styles/field.css +9 -9
- package/styles/icon.css +4 -0
- package/styles/input-group.css +6 -6
- package/styles/list.css +7 -0
- package/styles/more-menu.css +4 -4
- package/styles/number-input.css +6 -6
- package/styles/power-search.css +3 -3
- package/styles/progress-bar.css +8 -0
- package/styles/status-dot.css +21 -1
- package/styles/stepper.css +11 -3
- package/styles/text-area.css +1 -1
- package/styles/touch-hit-area.css +37 -0
- package/styles.css +1 -0
- package/dist/context-CV6TrhJY.js +0 -2080
- package/dist/context-CZP3jfy-.js +0 -125
- package/dist/loadCatalog-Bulk4H7U.js +0 -143
- package/dist/upstreamMap-DrkVNtXW.js +0 -1073
- package/dist/{index-BqhgeAT4.d.ts → index-J6YRJ7Ul.d.ts} +1 -1
|
@@ -0,0 +1,2349 @@
|
|
|
1
|
+
import { a as useAstryxLocale, n as astryxMessagesKey } from "./context-B8IEFCDR.js";
|
|
2
|
+
import { t as kbdMessages } from "./kbd-C-D_nOfU.js";
|
|
3
|
+
import { t as keyboardHintMessages } from "./keyboard-hint-KWx0-7kD.js";
|
|
4
|
+
import { t as layoutMessages } from "./layout-DzxSsBe8.js";
|
|
5
|
+
import { n as englishPlural, r as formatCount } from "./shared-aoQdb_6V.js";
|
|
6
|
+
import { t as navMessages } from "./nav-CoUOgByC.js";
|
|
7
|
+
import { t as avatarGroupMessages } from "./avatar-group-Dcn6i_ne.js";
|
|
8
|
+
import { t as bannerMessages } from "./banner-Bv76b50U.js";
|
|
9
|
+
import { t as dropdownMenuMessages } from "./dropdown-menu-BDu4gWwQ.js";
|
|
10
|
+
import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
|
|
11
|
+
import { t as carouselMessages } from "./carousel-BHUqW44m.js";
|
|
12
|
+
import { t as chatMessages } from "./chat-mh_siWVp.js";
|
|
13
|
+
import { t as spinnerMessages } from "./spinner-DVia-eDf.js";
|
|
14
|
+
import { t as infoTipMessages } from "./info-tip-BV42YsA4.js";
|
|
15
|
+
import { t as fieldMessages } from "./field-CehUqCe0.js";
|
|
16
|
+
import { t as checkboxListMessages } from "./checkbox-list-uI6q4y3V.js";
|
|
17
|
+
import { t as citationMessages } from "./citation-h6fyz-JH.js";
|
|
18
|
+
import { t as commandPaletteMessages } from "./command-palette-DuNs5XAd.js";
|
|
19
|
+
import { t as selectorMessages } from "./selector-qWbffnIX.js";
|
|
20
|
+
import { t as popoverMessages } from "./popover-DxCyd_Ua.js";
|
|
21
|
+
import { t as contextMenuMessages } from "./context-menu-9i6CObx3.js";
|
|
22
|
+
import { t as dateInputMessages } from "./date-input-Bj3KSuoJ.js";
|
|
23
|
+
import { t as dateRangeInputMessages } from "./date-range-input-CoCiWt9_.js";
|
|
24
|
+
import { n as dateTimeInputMessages, t as timeInputMessages } from "./time-input-DL1_SV7j.js";
|
|
25
|
+
import { t as dialogMessages } from "./dialog-CNjGcdd1.js";
|
|
26
|
+
import { t as fileInputMessages } from "./file-input-C2JFODtb.js";
|
|
27
|
+
import { t as inputMessages } from "./input-DUSvqqG_.js";
|
|
28
|
+
import { t as lightboxMessages } from "./lightbox-BrvPVD8I.js";
|
|
29
|
+
import { t as markdownMessages } from "./markdown-JcCeKquw.js";
|
|
30
|
+
import { t as metadataListMessages } from "./metadata-list-BEmAuMYs.js";
|
|
31
|
+
import { t as moreMenuMessages } from "./more-menu-B_dod4C-.js";
|
|
32
|
+
import { t as multiSelectorMessages } from "./multi-selector-B_pe6KkZ.js";
|
|
33
|
+
import { t as numberInputMessages } from "./number-input-Dw5NSQxh.js";
|
|
34
|
+
import { t as outlineMessages } from "./outline-BflaJV62.js";
|
|
35
|
+
import { t as paginationMessages } from "./pagination-Ds3yXCJw.js";
|
|
36
|
+
import { t as stepperMessages } from "./stepper-BOgJs2Ht.js";
|
|
37
|
+
import { t as switchMessages } from "./switch-B9xwxdOU.js";
|
|
38
|
+
import { t as tabListMessages } from "./tab-list-B_q2n-9d.js";
|
|
39
|
+
import { t as textAreaMessages } from "./text-area-Co4Egt6b.js";
|
|
40
|
+
import { t as textInputMessages } from "./text-input-BtwGEoGv.js";
|
|
41
|
+
import { t as thumbnailMessages } from "./thumbnail-BI82Ijpj.js";
|
|
42
|
+
import { t as timestampMessages } from "./timestamp-CFBVCsHF.js";
|
|
43
|
+
import { t as toastMessages } from "./toast-BvAnX6Vc.js";
|
|
44
|
+
import { t as tokenMessages } from "./token-DcbdjdZ2.js";
|
|
45
|
+
import { t as tokenizerMessages } from "./tokenizer-DD_UBzR7.js";
|
|
46
|
+
import { t as treeListMessages } from "./tree-list-NZ1EZhtd.js";
|
|
47
|
+
import { t as typeaheadMessages } from "./typeahead-BzrhssJi.js";
|
|
48
|
+
import { computed, inject, toValue } from "vue";
|
|
49
|
+
//#region src/locale/messages/alert-dialog.ts
|
|
50
|
+
const alertDialogMessages = {
|
|
51
|
+
"en": { cancel: "Cancel" },
|
|
52
|
+
"zh-CN": { cancel: "取消" }
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/locale/messages/breadcrumbs.ts
|
|
56
|
+
const breadcrumbsMessages = {
|
|
57
|
+
"en": { label: "Breadcrumb" },
|
|
58
|
+
"zh-CN": { label: "面包屑导航" }
|
|
59
|
+
};
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/locale/messages/button.ts
|
|
62
|
+
const buttonMessages = {
|
|
63
|
+
"en": { loading: "Loading" },
|
|
64
|
+
"zh-CN": { loading: "加载中" }
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/locale/messages/code-block.ts
|
|
68
|
+
const codeBlockMessages = {
|
|
69
|
+
"en": {
|
|
70
|
+
copied: "Copied",
|
|
71
|
+
copyCode: "Copy code",
|
|
72
|
+
code: "Code"
|
|
73
|
+
},
|
|
74
|
+
"zh-CN": {
|
|
75
|
+
copied: "已复制",
|
|
76
|
+
copyCode: "复制代码",
|
|
77
|
+
code: "代码"
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/locale/messages/comment-composer.ts
|
|
82
|
+
const commentComposerMessages = {
|
|
83
|
+
"en": {
|
|
84
|
+
addEmoji: "Add emoji",
|
|
85
|
+
agents: "Agents",
|
|
86
|
+
attachImages: "Attach images",
|
|
87
|
+
cancel: "Cancel",
|
|
88
|
+
chooseImages: "Choose images",
|
|
89
|
+
imageAlt: "Image attachment",
|
|
90
|
+
imagesOnly: "Only image files can be added",
|
|
91
|
+
noAgents: "No agents",
|
|
92
|
+
placeholder: "Write a comment…",
|
|
93
|
+
removeQuote: "Remove quoted text",
|
|
94
|
+
uploadFailed: "Images couldn't be added"
|
|
95
|
+
},
|
|
96
|
+
"zh-CN": {
|
|
97
|
+
addEmoji: "添加表情",
|
|
98
|
+
agents: "智能体",
|
|
99
|
+
attachImages: "添加图片",
|
|
100
|
+
cancel: "取消",
|
|
101
|
+
chooseImages: "选择图片",
|
|
102
|
+
imageAlt: "图片附件",
|
|
103
|
+
imagesOnly: "只能添加图片文件",
|
|
104
|
+
noAgents: "没有智能体",
|
|
105
|
+
placeholder: "写一条评论…",
|
|
106
|
+
removeQuote: "移除引用文字",
|
|
107
|
+
uploadFailed: "图片没能添加。"
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/locale/icu.ts
|
|
112
|
+
const pluralRules = /* @__PURE__ */ new Map();
|
|
113
|
+
const ordinalRules = /* @__PURE__ */ new Map();
|
|
114
|
+
const numberFormats = /* @__PURE__ */ new Map();
|
|
115
|
+
function rulesFor(locale, ordinal) {
|
|
116
|
+
const cache = ordinal ? ordinalRules : pluralRules;
|
|
117
|
+
let rules = cache.get(locale);
|
|
118
|
+
if (rules == null) {
|
|
119
|
+
rules = new Intl.PluralRules(locale, ordinal ? { type: "ordinal" } : void 0);
|
|
120
|
+
cache.set(locale, rules);
|
|
121
|
+
}
|
|
122
|
+
return rules;
|
|
123
|
+
}
|
|
124
|
+
function numberFor(locale) {
|
|
125
|
+
let format = numberFormats.get(locale);
|
|
126
|
+
if (format == null) {
|
|
127
|
+
format = new Intl.NumberFormat(locale);
|
|
128
|
+
numberFormats.set(locale, format);
|
|
129
|
+
}
|
|
130
|
+
return format;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* 解析原版目录里的 ICU MessageFormat。
|
|
134
|
+
* 覆盖 `{name}`、`{name, number}`、`plural`、`selectordinal` 和 `select`。
|
|
135
|
+
* 解析失败时抛错,调用方负责把这个键记进未映射列表。
|
|
136
|
+
*/
|
|
137
|
+
function formatIcu(message, values, locale) {
|
|
138
|
+
return render(parseMessage(message), values, locale, void 0);
|
|
139
|
+
}
|
|
140
|
+
function icuPlaceholderNames(message) {
|
|
141
|
+
return Object.keys(icuArgumentKinds(message));
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* 每个占位符名字用到的写法,已排序去重。
|
|
145
|
+
* 译文和原文的这张表一致,说明两边收同样的值;字面文字和占位符顺序不算在内。
|
|
146
|
+
* 解析失败时抛错。
|
|
147
|
+
*/
|
|
148
|
+
function icuArgumentKinds(message) {
|
|
149
|
+
const kinds = /* @__PURE__ */ new Map();
|
|
150
|
+
collectKinds(parseMessage(message), kinds);
|
|
151
|
+
return Object.fromEntries([...kinds].map(([name, set]) => [name, [...set].sort()]));
|
|
152
|
+
}
|
|
153
|
+
function collectKinds(nodes, kinds) {
|
|
154
|
+
for (const node of nodes) {
|
|
155
|
+
if (node.type === "text" || node.type === "pound") continue;
|
|
156
|
+
const kind = node.type === "arg" ? "argument" : node.type === "plural" && node.ordinal ? "selectordinal" : node.type;
|
|
157
|
+
const set = kinds.get(node.name) ?? /* @__PURE__ */ new Set();
|
|
158
|
+
set.add(kind);
|
|
159
|
+
kinds.set(node.name, set);
|
|
160
|
+
if (node.type === "plural" || node.type === "select") for (const option of node.options) collectKinds(option.nodes, kinds);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
function render(nodes, values, locale, pound) {
|
|
164
|
+
let text = "";
|
|
165
|
+
for (const node of nodes) text += renderNode(node, values, locale, pound);
|
|
166
|
+
return text;
|
|
167
|
+
}
|
|
168
|
+
function renderNode(node, values, locale, pound) {
|
|
169
|
+
if (node.type === "text") return node.value;
|
|
170
|
+
if (node.type === "pound") return pound == null ? "" : numberFor(locale).format(pound);
|
|
171
|
+
if (node.type === "arg") return textValue(values[node.name]);
|
|
172
|
+
if (node.type === "number") {
|
|
173
|
+
const value = numericValue(values[node.name]);
|
|
174
|
+
return value == null ? "" : numberFor(locale).format(value);
|
|
175
|
+
}
|
|
176
|
+
if (node.type === "select") return renderChoice(node.options, selectSelector(values[node.name]), values, locale, pound);
|
|
177
|
+
const value = numericValue(values[node.name]);
|
|
178
|
+
const rounded = value == null ? void 0 : value - node.offset;
|
|
179
|
+
const selector = value == null ? "other" : pluralSelector(value, node.options, locale, node.ordinal);
|
|
180
|
+
return renderChoice(node.options, selector, values, locale, rounded);
|
|
181
|
+
}
|
|
182
|
+
function pluralSelector(value, options, locale, ordinal) {
|
|
183
|
+
const exact = exactSelector(value);
|
|
184
|
+
if (exact != null && options.some((option) => option.selector === exact)) return exact;
|
|
185
|
+
return rulesFor(locale, ordinal).select(value);
|
|
186
|
+
}
|
|
187
|
+
function renderChoice(options, selector, values, locale, pound) {
|
|
188
|
+
const match = options.find((option) => option.selector === selector) ?? options.find((option) => option.selector === "other") ?? options[0];
|
|
189
|
+
return match == null ? "" : render(match.nodes, values, locale, pound);
|
|
190
|
+
}
|
|
191
|
+
function textValue(value) {
|
|
192
|
+
if (value == null) return "";
|
|
193
|
+
return typeof value === "number" ? String(value) : value;
|
|
194
|
+
}
|
|
195
|
+
function numericValue(value) {
|
|
196
|
+
if (typeof value === "number" && Number.isFinite(value)) return value;
|
|
197
|
+
if (typeof value === "string" && value.trim() !== "") {
|
|
198
|
+
const parsed = Number(value);
|
|
199
|
+
if (Number.isFinite(parsed)) return parsed;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
function exactSelector(value) {
|
|
203
|
+
return Number.isInteger(value) ? `=${value}` : void 0;
|
|
204
|
+
}
|
|
205
|
+
function selectSelector(value) {
|
|
206
|
+
if (value == null) return "other";
|
|
207
|
+
return String(value);
|
|
208
|
+
}
|
|
209
|
+
function startsQuote(next, pluralPound) {
|
|
210
|
+
return next === "{" || next === "}" || next === "<" || next === ">" || pluralPound && next === "#";
|
|
211
|
+
}
|
|
212
|
+
function parseMessage(input) {
|
|
213
|
+
let index = 0;
|
|
214
|
+
function parseNodes(stop, pluralPound) {
|
|
215
|
+
const nodes = [];
|
|
216
|
+
let text = "";
|
|
217
|
+
const flush = () => {
|
|
218
|
+
if (text !== "") {
|
|
219
|
+
nodes.push({
|
|
220
|
+
type: "text",
|
|
221
|
+
value: text
|
|
222
|
+
});
|
|
223
|
+
text = "";
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
while (index < input.length) {
|
|
227
|
+
const char = input[index];
|
|
228
|
+
if (char === "'") {
|
|
229
|
+
const next = input[index + 1];
|
|
230
|
+
if (next === "'") {
|
|
231
|
+
text += "'";
|
|
232
|
+
index += 2;
|
|
233
|
+
continue;
|
|
234
|
+
}
|
|
235
|
+
if (!startsQuote(next, pluralPound)) {
|
|
236
|
+
text += "'";
|
|
237
|
+
index += 1;
|
|
238
|
+
continue;
|
|
239
|
+
}
|
|
240
|
+
index += 1;
|
|
241
|
+
while (index < input.length) {
|
|
242
|
+
if (input[index] === "'") {
|
|
243
|
+
if (input[index + 1] === "'") {
|
|
244
|
+
text += "'";
|
|
245
|
+
index += 2;
|
|
246
|
+
continue;
|
|
247
|
+
}
|
|
248
|
+
index += 1;
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
text += input[index];
|
|
252
|
+
index += 1;
|
|
253
|
+
}
|
|
254
|
+
continue;
|
|
255
|
+
}
|
|
256
|
+
if (char === "#" && pluralPound) {
|
|
257
|
+
flush();
|
|
258
|
+
nodes.push({ type: "pound" });
|
|
259
|
+
index += 1;
|
|
260
|
+
continue;
|
|
261
|
+
}
|
|
262
|
+
if (char === "{") {
|
|
263
|
+
flush();
|
|
264
|
+
index += 1;
|
|
265
|
+
nodes.push(parseArgument());
|
|
266
|
+
continue;
|
|
267
|
+
}
|
|
268
|
+
if (stop != null && char === stop) {
|
|
269
|
+
flush();
|
|
270
|
+
return nodes;
|
|
271
|
+
}
|
|
272
|
+
text += char;
|
|
273
|
+
index += 1;
|
|
274
|
+
}
|
|
275
|
+
if (stop != null) throw new Error("ICU 消息没有闭合");
|
|
276
|
+
flush();
|
|
277
|
+
return nodes;
|
|
278
|
+
}
|
|
279
|
+
function parseArgument() {
|
|
280
|
+
skipSpace();
|
|
281
|
+
const name = readIdentifier();
|
|
282
|
+
skipSpace();
|
|
283
|
+
if (input[index] === "}") {
|
|
284
|
+
index += 1;
|
|
285
|
+
return {
|
|
286
|
+
type: "arg",
|
|
287
|
+
name
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
if (input[index] !== ",") throw new Error(`ICU 参数 ${name} 格式不对`);
|
|
291
|
+
index += 1;
|
|
292
|
+
skipSpace();
|
|
293
|
+
const kind = readIdentifier();
|
|
294
|
+
skipSpace();
|
|
295
|
+
if (kind === "number") {
|
|
296
|
+
if (input[index] === ",") skipNumberStyle();
|
|
297
|
+
expectChar("}");
|
|
298
|
+
index += 1;
|
|
299
|
+
return {
|
|
300
|
+
type: "number",
|
|
301
|
+
name
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
if (kind === "plural" || kind === "selectordinal" || kind === "select") {
|
|
305
|
+
expectChar(",");
|
|
306
|
+
index += 1;
|
|
307
|
+
skipSpace();
|
|
308
|
+
let offset = 0;
|
|
309
|
+
if (kind !== "select" && input.startsWith("offset:", index)) {
|
|
310
|
+
index += 7;
|
|
311
|
+
skipSpace();
|
|
312
|
+
offset = readInteger();
|
|
313
|
+
skipSpace();
|
|
314
|
+
}
|
|
315
|
+
const options = [];
|
|
316
|
+
while (index < input.length && input[index] !== "}") {
|
|
317
|
+
skipSpace();
|
|
318
|
+
if (input[index] === "}") break;
|
|
319
|
+
const selector = readSelector();
|
|
320
|
+
skipSpace();
|
|
321
|
+
expectChar("{");
|
|
322
|
+
index += 1;
|
|
323
|
+
const nodes = parseNodes("}", kind !== "select");
|
|
324
|
+
expectChar("}");
|
|
325
|
+
index += 1;
|
|
326
|
+
options.push({
|
|
327
|
+
selector,
|
|
328
|
+
nodes
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
expectChar("}");
|
|
332
|
+
index += 1;
|
|
333
|
+
if (options.length === 0) throw new Error(`ICU ${kind} 没有选项`);
|
|
334
|
+
if (kind === "select") return {
|
|
335
|
+
type: "select",
|
|
336
|
+
name,
|
|
337
|
+
options
|
|
338
|
+
};
|
|
339
|
+
return {
|
|
340
|
+
type: "plural",
|
|
341
|
+
name,
|
|
342
|
+
offset,
|
|
343
|
+
ordinal: kind === "selectordinal",
|
|
344
|
+
options
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
throw new Error(`不支持的 ICU 类型 ${kind}`);
|
|
348
|
+
}
|
|
349
|
+
function skipNumberStyle() {
|
|
350
|
+
let depth = 0;
|
|
351
|
+
while (index < input.length) {
|
|
352
|
+
const char = input[index];
|
|
353
|
+
if (char === "{") depth += 1;
|
|
354
|
+
else if (char === "}") {
|
|
355
|
+
if (depth === 0) return;
|
|
356
|
+
depth -= 1;
|
|
357
|
+
}
|
|
358
|
+
index += 1;
|
|
359
|
+
}
|
|
360
|
+
throw new Error("ICU number 没有闭合");
|
|
361
|
+
}
|
|
362
|
+
function skipSpace() {
|
|
363
|
+
while (index < input.length && (input[index] === " " || input[index] === "\n" || input[index] === "\r" || input[index] === " ")) index += 1;
|
|
364
|
+
}
|
|
365
|
+
function readIdentifier() {
|
|
366
|
+
const start = index;
|
|
367
|
+
while (index < input.length && /[\w$]/.test(input[index])) index += 1;
|
|
368
|
+
if (start === index) throw new Error("ICU 缺少参数名");
|
|
369
|
+
return input.slice(start, index);
|
|
370
|
+
}
|
|
371
|
+
function readSelector() {
|
|
372
|
+
if (input[index] === "=") {
|
|
373
|
+
index += 1;
|
|
374
|
+
const sign = input[index] === "-" ? "-" : "";
|
|
375
|
+
if (sign) index += 1;
|
|
376
|
+
return `=${sign}${readInteger()}`;
|
|
377
|
+
}
|
|
378
|
+
return readIdentifier();
|
|
379
|
+
}
|
|
380
|
+
function readInteger() {
|
|
381
|
+
const start = index;
|
|
382
|
+
while (index < input.length && input[index] >= "0" && input[index] <= "9") index += 1;
|
|
383
|
+
if (start === index) throw new Error("ICU 缺少数字");
|
|
384
|
+
return Number(input.slice(start, index));
|
|
385
|
+
}
|
|
386
|
+
function expectChar(char) {
|
|
387
|
+
if (input[index] !== char) throw new Error(`ICU 期望 ${char}`);
|
|
388
|
+
}
|
|
389
|
+
return parseNodes(null, false);
|
|
390
|
+
}
|
|
391
|
+
//#endregion
|
|
392
|
+
//#region src/locale/messages/comments.ts
|
|
393
|
+
function fill$1(template, locale, values) {
|
|
394
|
+
return formatIcu(template, values, locale).replace(/[ \t]{2,}/g, " ").trim();
|
|
395
|
+
}
|
|
396
|
+
const commentsMessages = {
|
|
397
|
+
"en": {
|
|
398
|
+
actionsLabel: (name) => fill$1("Actions for {name}'s comment", "en", { name }),
|
|
399
|
+
addReaction: "Add reaction",
|
|
400
|
+
agentBadge: "Agent",
|
|
401
|
+
agentLogo: (name) => fill$1("{name} logo", "en", { name }),
|
|
402
|
+
chooseReaction: "Choose a reaction",
|
|
403
|
+
commentsLabel: (label) => fill$1("Threads in {label}", "en", { label }),
|
|
404
|
+
copyLink: "Copy comment link",
|
|
405
|
+
currentVersion: "Current version",
|
|
406
|
+
delete: "Delete",
|
|
407
|
+
deleteDescription: (name) => fill$1("Delete {name}'s comment? This action cannot be undone.", "en", { name }),
|
|
408
|
+
deleteFailed: "This comment couldn't be deleted.",
|
|
409
|
+
deleteFailedRetry: "This comment couldn't be deleted. Try again.",
|
|
410
|
+
deleteTitle: "Delete comment?",
|
|
411
|
+
edit: "Edit",
|
|
412
|
+
editFailed: "Your edit couldn't be saved.",
|
|
413
|
+
editPlaceholder: "Edit comment",
|
|
414
|
+
edited: "Edited",
|
|
415
|
+
editingContext: "Editing comment",
|
|
416
|
+
emptyDescription: "Start the discussion with a comment.",
|
|
417
|
+
emptyReadOnlyDescription: "There is no discussion on this item.",
|
|
418
|
+
emptyTitle: "No comments yet",
|
|
419
|
+
hideReplies: "Hide replies",
|
|
420
|
+
historyEmptyDescription: "This comment has no earlier versions.",
|
|
421
|
+
historyEmptyTitle: "No edit history",
|
|
422
|
+
historyFailed: "Edit history couldn't load",
|
|
423
|
+
historyLoadFailed: "The comment's edit history couldn't be loaded. Try again.",
|
|
424
|
+
historyLoading: "Loading edit history",
|
|
425
|
+
historySubtitle: (name) => fill$1("Comment by {name}", "en", { name }),
|
|
426
|
+
historyTitle: "Edit history",
|
|
427
|
+
label: "Comments",
|
|
428
|
+
linkCopied: "Comment link copied",
|
|
429
|
+
loadFailed: "Comments couldn't load",
|
|
430
|
+
loadOlder: "Load earlier comments",
|
|
431
|
+
loading: "Loading comments",
|
|
432
|
+
olderFailed: "Earlier comments couldn't load",
|
|
433
|
+
otherReactors: (count) => fill$1("{count, plural, one {# other} other {# others}}", "en", { count }),
|
|
434
|
+
outdated: "Outdated",
|
|
435
|
+
postFailed: "Your comment couldn't be posted.",
|
|
436
|
+
reactionCelebrate: "Celebrate",
|
|
437
|
+
reactionCount: (reaction, count) => fill$1("{reaction}: {count, number}", "en", {
|
|
438
|
+
reaction,
|
|
439
|
+
count
|
|
440
|
+
}),
|
|
441
|
+
reactionFailed: "Your reaction couldn't be saved.",
|
|
442
|
+
reactionLaugh: "Haha",
|
|
443
|
+
reactionLike: "Like",
|
|
444
|
+
reactionLove: "Love",
|
|
445
|
+
reactionSad: "Sad",
|
|
446
|
+
reactionWow: "Wow",
|
|
447
|
+
reopen: "Reopen",
|
|
448
|
+
reopenFailed: "This thread couldn't be reopened.",
|
|
449
|
+
reply: "Reply",
|
|
450
|
+
replyFailed: "Your reply couldn't be posted.",
|
|
451
|
+
replyPlaceholder: (name) => fill$1("Reply to {name}…", "en", { name }),
|
|
452
|
+
replyingContext: (name) => fill$1("Replying to {name}", "en", { name }),
|
|
453
|
+
resolve: "Mark as resolved",
|
|
454
|
+
resolveFailed: "This thread couldn't be resolved.",
|
|
455
|
+
resolved: "Resolved",
|
|
456
|
+
resolvedBy: (name) => fill$1("Resolved by {name}", "en", { name }),
|
|
457
|
+
retry: "Retry",
|
|
458
|
+
retryFailed: "Retrying didn't work.",
|
|
459
|
+
sendFailed: "Couldn't send this comment.",
|
|
460
|
+
threadLabel: (name) => fill$1("Thread by {name}", "en", { name }),
|
|
461
|
+
unread: "New",
|
|
462
|
+
unsavedDraft: "Unsaved draft. Dismiss again to discard it.",
|
|
463
|
+
versionAuthor: (name) => fill$1("by {name}", "en", { name }),
|
|
464
|
+
viewHistory: "View edit history",
|
|
465
|
+
viewReplies: (count) => fill$1("View {count, plural, one {# reply} other {# replies}}", "en", { count }),
|
|
466
|
+
reactionsLabel: "Reactions",
|
|
467
|
+
reactionWith: (count, emoji) => `${count} ${count === 1 ? "reaction" : "reactions"} with ${emoji}`
|
|
468
|
+
},
|
|
469
|
+
"zh-CN": {
|
|
470
|
+
actionsLabel: (name) => fill$1("{name} 这条评论的操作", "zh-CN", { name }),
|
|
471
|
+
addReaction: "添加回应",
|
|
472
|
+
agentBadge: "智能体",
|
|
473
|
+
agentLogo: (name) => fill$1("{name} 的标志", "zh-CN", { name }),
|
|
474
|
+
chooseReaction: "选择回应",
|
|
475
|
+
commentsLabel: (label) => fill$1("{label} 中的讨论串", "zh-CN", { label }),
|
|
476
|
+
copyLink: "复制评论链接",
|
|
477
|
+
currentVersion: "当前版本",
|
|
478
|
+
delete: "删除",
|
|
479
|
+
deleteDescription: (name) => fill$1("要删除 {name} 的评论吗?此操作无法撤销。", "zh-CN", { name }),
|
|
480
|
+
deleteFailed: "这条评论没能删除。",
|
|
481
|
+
deleteFailedRetry: "这条评论没能删除。请再试一次。",
|
|
482
|
+
deleteTitle: "删除评论?",
|
|
483
|
+
edit: "编辑",
|
|
484
|
+
editFailed: "这次编辑没能保存。",
|
|
485
|
+
editPlaceholder: "编辑评论",
|
|
486
|
+
edited: "已编辑",
|
|
487
|
+
editingContext: "正在编辑评论",
|
|
488
|
+
emptyDescription: "写一条评论,开始讨论。",
|
|
489
|
+
emptyReadOnlyDescription: "这项还没有讨论。",
|
|
490
|
+
emptyTitle: "还没有评论",
|
|
491
|
+
hideReplies: "隐藏回复",
|
|
492
|
+
historyEmptyDescription: "这条评论没有更早的版本。",
|
|
493
|
+
historyEmptyTitle: "没有编辑历史",
|
|
494
|
+
historyFailed: "编辑历史没能加载",
|
|
495
|
+
historyLoadFailed: "这条评论的编辑历史没能加载。请再试一次。",
|
|
496
|
+
historyLoading: "正在加载编辑历史",
|
|
497
|
+
historySubtitle: (name) => fill$1("{name} 的评论", "zh-CN", { name }),
|
|
498
|
+
historyTitle: "编辑历史",
|
|
499
|
+
label: "评论",
|
|
500
|
+
linkCopied: "评论链接已复制",
|
|
501
|
+
loadFailed: "评论没能加载",
|
|
502
|
+
loadOlder: "加载更早的评论",
|
|
503
|
+
loading: "正在加载评论",
|
|
504
|
+
olderFailed: "更早的评论没能加载",
|
|
505
|
+
otherReactors: (count) => fill$1("{count, plural, other {另外 # 人}}", "zh-CN", { count }),
|
|
506
|
+
outdated: "已过期",
|
|
507
|
+
postFailed: "这条评论没能发出。",
|
|
508
|
+
reactionCelebrate: "庆祝",
|
|
509
|
+
reactionCount: (reaction, count) => fill$1("{reaction}:{count, number}", "zh-CN", {
|
|
510
|
+
reaction,
|
|
511
|
+
count
|
|
512
|
+
}),
|
|
513
|
+
reactionFailed: "这次回应没能保存。",
|
|
514
|
+
reactionLaugh: "哈哈",
|
|
515
|
+
reactionLike: "赞",
|
|
516
|
+
reactionLove: "喜欢",
|
|
517
|
+
reactionSad: "难过",
|
|
518
|
+
reactionWow: "哇",
|
|
519
|
+
reopen: "重新打开",
|
|
520
|
+
reopenFailed: "这个讨论串没能重新打开。",
|
|
521
|
+
reply: "回复",
|
|
522
|
+
replyFailed: "这条回复没能发出。",
|
|
523
|
+
replyPlaceholder: (name) => fill$1("回复 {name}…", "zh-CN", { name }),
|
|
524
|
+
replyingContext: (name) => fill$1("正在回复 {name}", "zh-CN", { name }),
|
|
525
|
+
resolve: "标为已解决",
|
|
526
|
+
resolveFailed: "这个讨论串没能标为已解决。",
|
|
527
|
+
resolved: "已解决",
|
|
528
|
+
resolvedBy: (name) => fill$1("由 {name} 标为已解决", "zh-CN", { name }),
|
|
529
|
+
retry: "重试",
|
|
530
|
+
retryFailed: "重试没有成功。",
|
|
531
|
+
sendFailed: "这条评论没能发出。",
|
|
532
|
+
threadLabel: (name) => fill$1("{name} 的讨论串", "zh-CN", { name }),
|
|
533
|
+
unread: "新",
|
|
534
|
+
unsavedDraft: "草稿还没保存。再关闭一次就会丢掉。",
|
|
535
|
+
versionAuthor: (name) => fill$1("由 {name}", "zh-CN", { name }),
|
|
536
|
+
viewHistory: "查看编辑历史",
|
|
537
|
+
viewReplies: (count) => fill$1("查看 {count, plural, other {# 条回复}}", "zh-CN", { count }),
|
|
538
|
+
reactionsLabel: "回应",
|
|
539
|
+
reactionWith: (count, emoji) => `${count} 次 ${emoji} 回应`
|
|
540
|
+
}
|
|
541
|
+
};
|
|
542
|
+
//#endregion
|
|
543
|
+
//#region src/locale/messages/emoji-picker.ts
|
|
544
|
+
function fill(template, locale, values) {
|
|
545
|
+
return formatIcu(template, values, locale).replace(/[ \t]{2,}/g, " ").trim();
|
|
546
|
+
}
|
|
547
|
+
const emojiPickerMessages = {
|
|
548
|
+
"en": {
|
|
549
|
+
frequentlyUsed: "Frequently used",
|
|
550
|
+
groupActivities: "Activities",
|
|
551
|
+
groupAnimalsNature: "Animals & nature",
|
|
552
|
+
groupFlags: "Flags",
|
|
553
|
+
groupFoodDrink: "Food & drink",
|
|
554
|
+
groupObjects: "Objects",
|
|
555
|
+
groupPeopleBody: "People & body",
|
|
556
|
+
groupSmileysEmotion: "Smileys & emotion",
|
|
557
|
+
groupSymbols: "Symbols",
|
|
558
|
+
groupTravelPlaces: "Travel & places",
|
|
559
|
+
label: "Emoji",
|
|
560
|
+
loadFailed: "More emoji couldn't be loaded.",
|
|
561
|
+
loading: "Loading emoji",
|
|
562
|
+
noResults: (query) => fill("No emoji match “{query}”", "en", { query }),
|
|
563
|
+
searchLabel: "Search emoji",
|
|
564
|
+
searchResults: "Search results",
|
|
565
|
+
pickLabel: "Pick an emoji",
|
|
566
|
+
reactWith: (name) => `React with ${name}`
|
|
567
|
+
},
|
|
568
|
+
"zh-CN": {
|
|
569
|
+
frequentlyUsed: "常用",
|
|
570
|
+
groupActivities: "活动",
|
|
571
|
+
groupAnimalsNature: "动物与自然",
|
|
572
|
+
groupFlags: "旗帜",
|
|
573
|
+
groupFoodDrink: "食物与饮品",
|
|
574
|
+
groupObjects: "物品",
|
|
575
|
+
groupPeopleBody: "人物与身体",
|
|
576
|
+
groupSmileysEmotion: "表情与情绪",
|
|
577
|
+
groupSymbols: "符号",
|
|
578
|
+
groupTravelPlaces: "旅行与地点",
|
|
579
|
+
label: "表情",
|
|
580
|
+
loadFailed: "更多表情没能加载。",
|
|
581
|
+
loading: "正在加载表情",
|
|
582
|
+
noResults: (query) => fill("没有和“{query}”匹配的表情", "zh-CN", { query }),
|
|
583
|
+
searchLabel: "搜索表情",
|
|
584
|
+
searchResults: "搜索结果",
|
|
585
|
+
pickLabel: "选择表情",
|
|
586
|
+
reactWith: (name) => `用${name}回应`
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
//#endregion
|
|
590
|
+
//#region src/locale/messages/list-input.ts
|
|
591
|
+
const listInputMessages = {
|
|
592
|
+
"en": {
|
|
593
|
+
emptyTitle: (itemName) => `No ${itemName}s yet`,
|
|
594
|
+
emptyDescription: (itemName) => `Add a ${itemName} to get started.`,
|
|
595
|
+
addItem: (itemName) => `Add ${itemName}`,
|
|
596
|
+
removeItem: (itemName, position) => `Remove ${itemName} ${formatCount(position, "en")}`,
|
|
597
|
+
removeUnavailable: "Remove is unavailable while the list is disabled",
|
|
598
|
+
reorderItem: (itemName, position) => `Reorder ${itemName} ${formatCount(position, "en")}`,
|
|
599
|
+
fieldLabelWithPosition: (header, itemName, position, total) => `${header}, ${itemName} ${formatCount(position, "en")} of ${formatCount(total, "en")}`,
|
|
600
|
+
reorderInstructions: "Use Arrow Up or Arrow Down to move this item one position. Press Space or Enter to pick it up for extended keyboard reordering.",
|
|
601
|
+
announceAdded: (itemName, position) => `Added ${itemName} ${formatCount(position, "en")}.`,
|
|
602
|
+
announceRemoved: (itemName, position) => `Removed ${itemName} ${formatCount(position, "en")}.`,
|
|
603
|
+
announceGrabbed: (itemName, position) => `${itemName} ${formatCount(position, "en")} grabbed. Use arrow keys to move, Space or Enter to drop, and Escape to cancel.`,
|
|
604
|
+
announceMovedToPosition: (itemName, position, total) => `${itemName} moved to position ${formatCount(position, "en")} of ${formatCount(total, "en")}.`,
|
|
605
|
+
announceReorderCancelled: "Reordering cancelled.",
|
|
606
|
+
announceReturnedToPosition: (itemName, position) => `${itemName} returned to position ${formatCount(position, "en")}.`,
|
|
607
|
+
announceDropped: (itemName, position, total) => `${itemName} dropped at position ${formatCount(position, "en")} of ${formatCount(total, "en")}.`,
|
|
608
|
+
alreadyAtBoundary: (itemName, boundary) => `This ${itemName} is already ${boundary === "first" ? "first" : boundary === "last" ? "last" : ""}.`
|
|
609
|
+
},
|
|
610
|
+
"zh-CN": {
|
|
611
|
+
emptyTitle: (itemName) => `还没有${itemName}`,
|
|
612
|
+
emptyDescription: (itemName) => `添加一个${itemName}就可以开始了。`,
|
|
613
|
+
addItem: (itemName) => `添加${itemName}`,
|
|
614
|
+
removeItem: (itemName, position) => `删除第 ${formatCount(position, "zh-CN")} 个${itemName}`,
|
|
615
|
+
removeUnavailable: "列表禁用时不能删除",
|
|
616
|
+
reorderItem: (itemName, position) => `调整第 ${formatCount(position, "zh-CN")} 个${itemName}的顺序`,
|
|
617
|
+
fieldLabelWithPosition: (header, itemName, position, total) => `${header},${itemName}第 ${formatCount(position, "zh-CN")} 个,共 ${formatCount(total, "zh-CN")} 个`,
|
|
618
|
+
reorderInstructions: "按上方向键或下方向键把这个条目挪一位。按空格键或回车键可以拿起它,用键盘继续调整顺序。",
|
|
619
|
+
announceAdded: (itemName, position) => `已添加第 ${formatCount(position, "zh-CN")} 个${itemName}。`,
|
|
620
|
+
announceRemoved: (itemName, position) => `已删除第 ${formatCount(position, "zh-CN")} 个${itemName}。`,
|
|
621
|
+
announceGrabbed: (itemName, position) => `已拿起${itemName}第 ${formatCount(position, "zh-CN")} 个。用方向键移动,按空格键或回车键放下,按 Escape 取消。`,
|
|
622
|
+
announceMovedToPosition: (itemName, position, total) => `${itemName}已移动到第 ${formatCount(position, "zh-CN")} 个,共 ${formatCount(total, "zh-CN")} 个。`,
|
|
623
|
+
announceReorderCancelled: "已取消调整顺序。",
|
|
624
|
+
announceReturnedToPosition: (itemName, position) => `${itemName}回到了第 ${formatCount(position, "zh-CN")} 个。`,
|
|
625
|
+
announceDropped: (itemName, position, total) => `${itemName}已放在第 ${formatCount(position, "zh-CN")} 个,共 ${formatCount(total, "zh-CN")} 个。`,
|
|
626
|
+
alreadyAtBoundary: (itemName, boundary) => `这个${itemName}已经在${boundary === "first" ? "最前" : boundary === "last" ? "最后" : ""}了。`
|
|
627
|
+
}
|
|
628
|
+
};
|
|
629
|
+
const powerSearchMessages = {
|
|
630
|
+
"en": {
|
|
631
|
+
label: "Search",
|
|
632
|
+
placeholder: "Search…",
|
|
633
|
+
clear: "Clear all",
|
|
634
|
+
results: "Search results",
|
|
635
|
+
empty: "No results",
|
|
636
|
+
removeFilter: (label) => `Remove ${label}`,
|
|
637
|
+
resultCount: (count) => `${formatCount(count, "en")} ${englishPlural(count, "result", "results")}`,
|
|
638
|
+
itemsCount: (count) => `${formatCount(count, "en")} ${englishPlural(count, "item", "items")}`,
|
|
639
|
+
entitiesCount: (count) => `${formatCount(count, "en")} ${englishPlural(count, "entity", "entities")}`,
|
|
640
|
+
filtersCount: (count) => `${formatCount(count, "en")} ${englishPlural(count, "filter", "filters")}`,
|
|
641
|
+
more: (count) => `${formatCount(count, "en")} more`,
|
|
642
|
+
dateRange: "date range",
|
|
643
|
+
operators: {
|
|
644
|
+
contains: "contains",
|
|
645
|
+
notContains: "does not contain",
|
|
646
|
+
startsWith: "starts with",
|
|
647
|
+
notStartsWith: "does not start with",
|
|
648
|
+
endsWith: "ends with",
|
|
649
|
+
notEndsWith: "does not end with",
|
|
650
|
+
is: "is",
|
|
651
|
+
isNot: "is not",
|
|
652
|
+
equals: "is",
|
|
653
|
+
notEquals: "is not",
|
|
654
|
+
greaterThan: "is greater than",
|
|
655
|
+
lessThan: "is less than",
|
|
656
|
+
greaterThanOrEqual: "is greater than or equal to",
|
|
657
|
+
lessThanOrEqual: "is less than or equal to",
|
|
658
|
+
before: "is before",
|
|
659
|
+
after: "is after",
|
|
660
|
+
between: "is between",
|
|
661
|
+
isTrue: "is true",
|
|
662
|
+
isFalse: "is false",
|
|
663
|
+
isAnyOf: "is any of",
|
|
664
|
+
isNoneOf: "is none of"
|
|
665
|
+
},
|
|
666
|
+
editor: {
|
|
667
|
+
field: "Field",
|
|
668
|
+
operator: "Operator",
|
|
669
|
+
addFilter: "+ Add filter",
|
|
670
|
+
removeFilter: "Remove filter",
|
|
671
|
+
group: "Group",
|
|
672
|
+
groupOperator: "Group operator",
|
|
673
|
+
delete: "Delete",
|
|
674
|
+
cancel: "Cancel",
|
|
675
|
+
apply: "Apply",
|
|
676
|
+
editing: "Edit filter"
|
|
677
|
+
},
|
|
678
|
+
value: {
|
|
679
|
+
value: "Value",
|
|
680
|
+
values: "Values",
|
|
681
|
+
time: "Time",
|
|
682
|
+
date: "Date",
|
|
683
|
+
relativeDate: "Relative date",
|
|
684
|
+
startDate: "Start date",
|
|
685
|
+
endDate: "End date",
|
|
686
|
+
entities: "Entities",
|
|
687
|
+
searchPlaceholder: "Search…",
|
|
688
|
+
enterValuePlaceholder: "Enter value…",
|
|
689
|
+
addValuesPlaceholder: "Add values…",
|
|
690
|
+
enterNumberPlaceholder: "Enter number…",
|
|
691
|
+
selectPlaceholder: "Select…",
|
|
692
|
+
selectValuesPlaceholder: "Select values…"
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
"zh-CN": {
|
|
696
|
+
label: "搜索",
|
|
697
|
+
placeholder: "搜索……",
|
|
698
|
+
clear: "全部清除",
|
|
699
|
+
results: "搜索结果",
|
|
700
|
+
empty: "没有结果",
|
|
701
|
+
removeFilter: (label) => `移除${label}`,
|
|
702
|
+
resultCount: (count) => `${formatCount(count, "zh-CN")} 个结果`,
|
|
703
|
+
itemsCount: (count) => `${formatCount(count, "zh-CN")} 个项目`,
|
|
704
|
+
entitiesCount: (count) => `${formatCount(count, "zh-CN")} 个实体`,
|
|
705
|
+
filtersCount: (count) => `${formatCount(count, "zh-CN")} 个筛选条件`,
|
|
706
|
+
more: (count) => `另外 ${formatCount(count, "zh-CN")} 个`,
|
|
707
|
+
dateRange: "日期范围",
|
|
708
|
+
operators: {
|
|
709
|
+
contains: "包含",
|
|
710
|
+
notContains: "不包含",
|
|
711
|
+
startsWith: "开头是",
|
|
712
|
+
notStartsWith: "开头不是",
|
|
713
|
+
endsWith: "结尾是",
|
|
714
|
+
notEndsWith: "结尾不是",
|
|
715
|
+
is: "是",
|
|
716
|
+
isNot: "不是",
|
|
717
|
+
equals: "等于",
|
|
718
|
+
notEquals: "不等于",
|
|
719
|
+
greaterThan: "大于",
|
|
720
|
+
lessThan: "小于",
|
|
721
|
+
greaterThanOrEqual: "大于或等于",
|
|
722
|
+
lessThanOrEqual: "小于或等于",
|
|
723
|
+
before: "早于",
|
|
724
|
+
after: "晚于",
|
|
725
|
+
between: "介于",
|
|
726
|
+
isTrue: "为真",
|
|
727
|
+
isFalse: "为假",
|
|
728
|
+
isAnyOf: "是其中任一",
|
|
729
|
+
isNoneOf: "不是其中任何一个"
|
|
730
|
+
},
|
|
731
|
+
editor: {
|
|
732
|
+
field: "字段",
|
|
733
|
+
operator: "运算符",
|
|
734
|
+
addFilter: "+ 添加筛选条件",
|
|
735
|
+
removeFilter: "移除筛选条件",
|
|
736
|
+
group: "分组",
|
|
737
|
+
groupOperator: "组内条件关系",
|
|
738
|
+
delete: "删除",
|
|
739
|
+
cancel: "取消",
|
|
740
|
+
apply: "应用",
|
|
741
|
+
editing: "编辑筛选条件"
|
|
742
|
+
},
|
|
743
|
+
value: {
|
|
744
|
+
value: "值",
|
|
745
|
+
values: "值",
|
|
746
|
+
time: "时间",
|
|
747
|
+
date: "日期",
|
|
748
|
+
relativeDate: "相对日期",
|
|
749
|
+
startDate: "开始日期",
|
|
750
|
+
endDate: "结束日期",
|
|
751
|
+
entities: "实体",
|
|
752
|
+
searchPlaceholder: "搜索……",
|
|
753
|
+
enterValuePlaceholder: "输入值……",
|
|
754
|
+
addValuesPlaceholder: "添加值……",
|
|
755
|
+
enterNumberPlaceholder: "输入数字……",
|
|
756
|
+
selectPlaceholder: "选择……",
|
|
757
|
+
selectValuesPlaceholder: "选择值……"
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
};
|
|
761
|
+
//#endregion
|
|
762
|
+
//#region src/locale/messages/rich-text-editor.ts
|
|
763
|
+
const richTextEditorMessages = {
|
|
764
|
+
"en": {
|
|
765
|
+
tabEscapeHint: "Press Escape then Tab to move focus out of the editor.",
|
|
766
|
+
toolbar: {
|
|
767
|
+
label: "Text formatting",
|
|
768
|
+
actions: "Formatting actions",
|
|
769
|
+
undo: "Undo",
|
|
770
|
+
redo: "Redo",
|
|
771
|
+
historyDivider: "History and block formats",
|
|
772
|
+
blockFormat: "Block format",
|
|
773
|
+
formatDivider: "Block and inline formats",
|
|
774
|
+
paragraph: "Paragraph",
|
|
775
|
+
heading1: "Heading 1",
|
|
776
|
+
heading2: "Heading 2",
|
|
777
|
+
heading3: "Heading 3",
|
|
778
|
+
bulletedList: "Bulleted list",
|
|
779
|
+
numberedList: "Numbered list",
|
|
780
|
+
blockQuote: "Block quote",
|
|
781
|
+
bold: "Bold",
|
|
782
|
+
italic: "Italic",
|
|
783
|
+
underline: "Underline",
|
|
784
|
+
strikethrough: "Strikethrough",
|
|
785
|
+
inlineCode: "Inline code",
|
|
786
|
+
link: "Link"
|
|
787
|
+
},
|
|
788
|
+
link: {
|
|
789
|
+
insertTitle: "Insert link",
|
|
790
|
+
editTitle: "Edit link",
|
|
791
|
+
url: "URL",
|
|
792
|
+
invalidUrl: "Enter a valid http, https, mailto, or tel URL.",
|
|
793
|
+
remove: "Remove link",
|
|
794
|
+
cancel: "Cancel",
|
|
795
|
+
add: "Add link",
|
|
796
|
+
update: "Update link"
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
"zh-CN": {
|
|
800
|
+
tabEscapeHint: "按 Esc 再按 Tab,可以把焦点移出编辑器。",
|
|
801
|
+
toolbar: {
|
|
802
|
+
label: "文字格式",
|
|
803
|
+
actions: "格式操作",
|
|
804
|
+
undo: "撤销",
|
|
805
|
+
redo: "重做",
|
|
806
|
+
historyDivider: "历史记录与块格式",
|
|
807
|
+
blockFormat: "块格式",
|
|
808
|
+
formatDivider: "块格式与行内格式",
|
|
809
|
+
paragraph: "正文",
|
|
810
|
+
heading1: "一级标题",
|
|
811
|
+
heading2: "二级标题",
|
|
812
|
+
heading3: "三级标题",
|
|
813
|
+
bulletedList: "无序列表",
|
|
814
|
+
numberedList: "有序列表",
|
|
815
|
+
blockQuote: "引用",
|
|
816
|
+
bold: "加粗",
|
|
817
|
+
italic: "斜体",
|
|
818
|
+
underline: "下划线",
|
|
819
|
+
strikethrough: "删除线",
|
|
820
|
+
inlineCode: "行内代码",
|
|
821
|
+
link: "链接"
|
|
822
|
+
},
|
|
823
|
+
link: {
|
|
824
|
+
insertTitle: "插入链接",
|
|
825
|
+
editTitle: "编辑链接",
|
|
826
|
+
url: "网址",
|
|
827
|
+
invalidUrl: "请输入有效的 http、https、mailto 或 tel 网址。",
|
|
828
|
+
remove: "移除链接",
|
|
829
|
+
cancel: "取消",
|
|
830
|
+
add: "添加链接",
|
|
831
|
+
update: "更新链接"
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
};
|
|
835
|
+
//#endregion
|
|
836
|
+
//#region src/locale/messages/table.ts
|
|
837
|
+
const tableMessages = {
|
|
838
|
+
"en": {
|
|
839
|
+
label: "Table",
|
|
840
|
+
noData: "No data",
|
|
841
|
+
filterAll: "All",
|
|
842
|
+
reset: "Reset",
|
|
843
|
+
apply: "Apply",
|
|
844
|
+
selectAllRows: "Select all rows",
|
|
845
|
+
selectRow: "Select row",
|
|
846
|
+
selectRowNamed: (label) => `Select ${label}`,
|
|
847
|
+
sortAscending: "Sort ascending",
|
|
848
|
+
sortDescending: "Sort descending",
|
|
849
|
+
clearSort: "Clear sort",
|
|
850
|
+
sortedAscending: "ascending",
|
|
851
|
+
sortedDescending: "descending",
|
|
852
|
+
sortBy: (label) => `Sort by ${label}`,
|
|
853
|
+
sortedBy: (label, direction) => `Sort by ${label}, sorted ${direction}`,
|
|
854
|
+
sortedByWithPriority: (label, direction, rank, total) => `Sort by ${label}, sorted ${direction}, priority ${formatCount(rank, "en")} of ${formatCount(total, "en")}`,
|
|
855
|
+
filterByColumn: (header) => `Filter ${header}`,
|
|
856
|
+
bulkActionsLabel: "Bulk actions",
|
|
857
|
+
clearAll: "Unselect All",
|
|
858
|
+
selectedCount: (count) => `${formatCount(count, "en")} selected`,
|
|
859
|
+
paginationLabel: "Table pagination",
|
|
860
|
+
paginationLabelAbove: (label) => `${label} (top)`,
|
|
861
|
+
paginationLabelBelow: (label) => `${label} (bottom)`,
|
|
862
|
+
resizeColumn: (label) => `Resize column ${label}`,
|
|
863
|
+
expandGroup: (groupKey) => `Expand group ${groupKey}`,
|
|
864
|
+
collapseGroup: (groupKey) => `Collapse group ${groupKey}`,
|
|
865
|
+
expandRow: "Expand row",
|
|
866
|
+
collapseRow: "Collapse row",
|
|
867
|
+
expandAllRows: "Expand all rows",
|
|
868
|
+
collapseAllRows: "Collapse all rows",
|
|
869
|
+
rowExpansion: "Row expansion",
|
|
870
|
+
rowStatus: "Row status",
|
|
871
|
+
treeExpandRow: "Expand row",
|
|
872
|
+
treeCollapseRow: "Collapse row",
|
|
873
|
+
treeExpandAllRows: "Expand all rows",
|
|
874
|
+
treeCollapseAllRows: "Collapse all rows"
|
|
875
|
+
},
|
|
876
|
+
"zh-CN": {
|
|
877
|
+
label: "表格",
|
|
878
|
+
noData: "暂无数据",
|
|
879
|
+
filterAll: "全部",
|
|
880
|
+
reset: "重置",
|
|
881
|
+
apply: "应用",
|
|
882
|
+
selectAllRows: "选择所有行",
|
|
883
|
+
selectRow: "选择行",
|
|
884
|
+
selectRowNamed: (label) => `选择 ${label}`,
|
|
885
|
+
sortAscending: "升序排序",
|
|
886
|
+
sortDescending: "降序排序",
|
|
887
|
+
clearSort: "清除排序",
|
|
888
|
+
sortedAscending: "升序",
|
|
889
|
+
sortedDescending: "降序",
|
|
890
|
+
sortBy: (label) => `按${label}排序`,
|
|
891
|
+
sortedBy: (label, direction) => `按${label}排序,当前为${direction}`,
|
|
892
|
+
sortedByWithPriority: (label, direction, rank, total) => `按${label}排序,当前为${direction},优先级 ${formatCount(rank, "zh-CN")}/${formatCount(total, "zh-CN")}`,
|
|
893
|
+
filterByColumn: (header) => `筛选${header}`,
|
|
894
|
+
bulkActionsLabel: "批量操作",
|
|
895
|
+
clearAll: "取消全选",
|
|
896
|
+
selectedCount: (count) => `已选择 ${formatCount(count, "zh-CN")} 项`,
|
|
897
|
+
paginationLabel: "表格分页",
|
|
898
|
+
paginationLabelAbove: (label) => `${label}(顶部)`,
|
|
899
|
+
paginationLabelBelow: (label) => `${label}(底部)`,
|
|
900
|
+
resizeColumn: (label) => `调整列宽 ${label}`,
|
|
901
|
+
expandGroup: (groupKey) => `展开分组 ${groupKey}`,
|
|
902
|
+
collapseGroup: (groupKey) => `折叠分组 ${groupKey}`,
|
|
903
|
+
expandRow: "展开行",
|
|
904
|
+
collapseRow: "折叠行",
|
|
905
|
+
expandAllRows: "展开所有行",
|
|
906
|
+
collapseAllRows: "折叠所有行",
|
|
907
|
+
rowExpansion: "行展开",
|
|
908
|
+
rowStatus: "行状态",
|
|
909
|
+
treeExpandRow: "展开行",
|
|
910
|
+
treeCollapseRow: "折叠行",
|
|
911
|
+
treeExpandAllRows: "展开所有行",
|
|
912
|
+
treeCollapseAllRows: "折叠所有行"
|
|
913
|
+
}
|
|
914
|
+
};
|
|
915
|
+
//#endregion
|
|
916
|
+
//#region src/locale/messages/transfer-list-selector.ts
|
|
917
|
+
const transferListSelectorMessages = {
|
|
918
|
+
"en": {
|
|
919
|
+
apply: "Apply",
|
|
920
|
+
cancel: "Cancel",
|
|
921
|
+
triggerLabel: (count) => `${formatCount(count, "en")} selected`
|
|
922
|
+
},
|
|
923
|
+
"zh-CN": {
|
|
924
|
+
apply: "应用",
|
|
925
|
+
cancel: "取消",
|
|
926
|
+
triggerLabel: (count) => `已选 ${formatCount(count, "zh-CN")} 项`
|
|
927
|
+
}
|
|
928
|
+
};
|
|
929
|
+
//#endregion
|
|
930
|
+
//#region src/locale/messages/transfer-list.ts
|
|
931
|
+
const transferListMessages = {
|
|
932
|
+
"en": {
|
|
933
|
+
selectedLabel: "Selected",
|
|
934
|
+
availableLabel: "Available",
|
|
935
|
+
ungroupedLabel: "Other",
|
|
936
|
+
searchPlaceholder: "Search…",
|
|
937
|
+
searchLabel: (label) => `Search ${label}`,
|
|
938
|
+
selectedEmpty: "No selected options",
|
|
939
|
+
availableEmpty: "No available options",
|
|
940
|
+
noResults: "No results",
|
|
941
|
+
clear: "Clear",
|
|
942
|
+
addAll: "Add all",
|
|
943
|
+
addOption: (label) => `Add ${label}`,
|
|
944
|
+
removeOption: (label) => `Remove ${label}`,
|
|
945
|
+
reorderOption: (label) => `Reorder ${label}`,
|
|
946
|
+
transferDisabled: (label) => `${label} cannot be moved`,
|
|
947
|
+
reorderDisabled: (label) => `${label} cannot be reordered`,
|
|
948
|
+
reorderInstructions: "Press Space or Enter to pick up an item. Use Arrow Up, Arrow Down, Home, or End to move it. Press Space or Enter to drop, or Escape to cancel.",
|
|
949
|
+
announceAdded: (label, count) => `${label} added. ${formatCount(count, "en")} ${englishPlural(count, "item", "items")} selected.`,
|
|
950
|
+
announceRemoved: (label, count) => `${label} removed. ${formatCount(count, "en")} ${englishPlural(count, "item", "items")} selected.`,
|
|
951
|
+
announceBulkAdded: (count) => `${formatCount(count, "en")} ${englishPlural(count, "item", "items")} added.`,
|
|
952
|
+
announceBulkRemoved: (count) => `${formatCount(count, "en")} ${englishPlural(count, "item", "items")} removed.`,
|
|
953
|
+
announceGrabbed: (label, position, total) => `${label} picked up, position ${formatCount(position, "en")} of ${formatCount(total, "en")}. Use arrow keys to move, Space or Enter to drop, or Escape to cancel.`,
|
|
954
|
+
announceMoveCancelled: (label) => `${label} move cancelled.`,
|
|
955
|
+
announceDropped: (label, position, total) => `${label} dropped at position ${formatCount(position, "en")} of ${formatCount(total, "en")}.`,
|
|
956
|
+
announceReturned: (label, position) => `${label} returned to position ${formatCount(position, "en")}.`,
|
|
957
|
+
announceMovedToPosition: (label, position, total) => `${label}, position ${formatCount(position, "en")} of ${formatCount(total, "en")}.`,
|
|
958
|
+
announceSearchResults: (count) => `${formatCount(count, "en")} ${englishPlural(count, "item", "items")} found.`
|
|
959
|
+
},
|
|
960
|
+
"zh-CN": {
|
|
961
|
+
selectedLabel: "已选",
|
|
962
|
+
availableLabel: "可选",
|
|
963
|
+
ungroupedLabel: "其它",
|
|
964
|
+
searchPlaceholder: "搜索…",
|
|
965
|
+
searchLabel: (label) => `搜索${label}`,
|
|
966
|
+
selectedEmpty: "还没有选中任何选项",
|
|
967
|
+
availableEmpty: "没有可选的选项了",
|
|
968
|
+
noResults: "没有匹配结果",
|
|
969
|
+
clear: "清空",
|
|
970
|
+
addAll: "全部添加",
|
|
971
|
+
addOption: (label) => `添加${label}`,
|
|
972
|
+
removeOption: (label) => `移除${label}`,
|
|
973
|
+
reorderOption: (label) => `调整${label}的顺序`,
|
|
974
|
+
transferDisabled: (label) => `${label}不能移动`,
|
|
975
|
+
reorderDisabled: (label) => `${label}不能调整顺序`,
|
|
976
|
+
reorderInstructions: "按空格键或回车键拿起一项。用上方向键、下方向键、Home 或 End 移动它。按空格键或回车键放下,按 Escape 取消。",
|
|
977
|
+
announceAdded: (label, count) => `已添加${label}。当前已选 ${formatCount(count, "zh-CN")} 项。`,
|
|
978
|
+
announceRemoved: (label, count) => `已移除${label}。当前已选 ${formatCount(count, "zh-CN")} 项。`,
|
|
979
|
+
announceBulkAdded: (count) => `已添加 ${formatCount(count, "zh-CN")} 项。`,
|
|
980
|
+
announceBulkRemoved: (count) => `已移除 ${formatCount(count, "zh-CN")} 项。`,
|
|
981
|
+
announceGrabbed: (label, position, total) => `已拿起${label},第 ${formatCount(position, "zh-CN")} 个,共 ${formatCount(total, "zh-CN")} 个。用方向键移动,按空格键或回车键放下,按 Escape 取消。`,
|
|
982
|
+
announceMoveCancelled: (label) => `已取消移动${label}。`,
|
|
983
|
+
announceDropped: (label, position, total) => `${label}已放在第 ${formatCount(position, "zh-CN")} 个,共 ${formatCount(total, "zh-CN")} 个。`,
|
|
984
|
+
announceReturned: (label, position) => `${label}回到了第 ${formatCount(position, "zh-CN")} 个。`,
|
|
985
|
+
announceMovedToPosition: (label, position, total) => `${label},第 ${formatCount(position, "zh-CN")} 个,共 ${formatCount(total, "zh-CN")} 个。`,
|
|
986
|
+
announceSearchResults: (count) => `找到 ${formatCount(count, "zh-CN")} 项。`
|
|
987
|
+
}
|
|
988
|
+
};
|
|
989
|
+
//#endregion
|
|
990
|
+
//#region src/locale/messages.ts
|
|
991
|
+
const astryxMessages = {
|
|
992
|
+
"en": {
|
|
993
|
+
alertDialog: alertDialogMessages.en,
|
|
994
|
+
avatarGroup: avatarGroupMessages.en,
|
|
995
|
+
banner: bannerMessages.en,
|
|
996
|
+
breadcrumbs: breadcrumbsMessages.en,
|
|
997
|
+
button: buttonMessages.en,
|
|
998
|
+
calendar: calendarMessages.en,
|
|
999
|
+
carousel: carouselMessages.en,
|
|
1000
|
+
chat: chatMessages.en,
|
|
1001
|
+
checkboxList: checkboxListMessages.en,
|
|
1002
|
+
citation: citationMessages.en,
|
|
1003
|
+
codeBlock: codeBlockMessages.en,
|
|
1004
|
+
commandPalette: commandPaletteMessages.en,
|
|
1005
|
+
commentComposer: commentComposerMessages.en,
|
|
1006
|
+
comments: commentsMessages.en,
|
|
1007
|
+
contextMenu: contextMenuMessages.en,
|
|
1008
|
+
dateInput: dateInputMessages.en,
|
|
1009
|
+
dateRangeInput: dateRangeInputMessages.en,
|
|
1010
|
+
dateTimeInput: dateTimeInputMessages.en,
|
|
1011
|
+
dialog: dialogMessages.en,
|
|
1012
|
+
dropdownMenu: dropdownMenuMessages.en,
|
|
1013
|
+
emojiPicker: emojiPickerMessages.en,
|
|
1014
|
+
field: fieldMessages.en,
|
|
1015
|
+
fileInput: fileInputMessages.en,
|
|
1016
|
+
infoTip: infoTipMessages.en,
|
|
1017
|
+
input: inputMessages.en,
|
|
1018
|
+
kbd: kbdMessages.en,
|
|
1019
|
+
keyboardHint: keyboardHintMessages.en,
|
|
1020
|
+
layout: layoutMessages.en,
|
|
1021
|
+
lightbox: lightboxMessages.en,
|
|
1022
|
+
listInput: listInputMessages.en,
|
|
1023
|
+
markdown: markdownMessages.en,
|
|
1024
|
+
metadataList: metadataListMessages.en,
|
|
1025
|
+
moreMenu: moreMenuMessages.en,
|
|
1026
|
+
multiSelector: multiSelectorMessages.en,
|
|
1027
|
+
nav: navMessages.en,
|
|
1028
|
+
numberInput: numberInputMessages.en,
|
|
1029
|
+
outline: outlineMessages.en,
|
|
1030
|
+
pagination: paginationMessages.en,
|
|
1031
|
+
popover: popoverMessages.en,
|
|
1032
|
+
powerSearch: powerSearchMessages.en,
|
|
1033
|
+
richTextEditor: richTextEditorMessages.en,
|
|
1034
|
+
selector: selectorMessages.en,
|
|
1035
|
+
spinner: spinnerMessages.en,
|
|
1036
|
+
stepper: stepperMessages.en,
|
|
1037
|
+
switch: switchMessages.en,
|
|
1038
|
+
tabList: tabListMessages.en,
|
|
1039
|
+
table: tableMessages.en,
|
|
1040
|
+
textArea: textAreaMessages.en,
|
|
1041
|
+
textInput: textInputMessages.en,
|
|
1042
|
+
thumbnail: thumbnailMessages.en,
|
|
1043
|
+
timeInput: timeInputMessages.en,
|
|
1044
|
+
timestamp: timestampMessages.en,
|
|
1045
|
+
toast: toastMessages.en,
|
|
1046
|
+
token: tokenMessages.en,
|
|
1047
|
+
tokenizer: tokenizerMessages.en,
|
|
1048
|
+
transferListSelector: transferListSelectorMessages.en,
|
|
1049
|
+
transferList: transferListMessages.en,
|
|
1050
|
+
treeList: treeListMessages.en,
|
|
1051
|
+
typeahead: typeaheadMessages.en
|
|
1052
|
+
},
|
|
1053
|
+
"zh-CN": {
|
|
1054
|
+
alertDialog: alertDialogMessages["zh-CN"],
|
|
1055
|
+
avatarGroup: avatarGroupMessages["zh-CN"],
|
|
1056
|
+
banner: bannerMessages["zh-CN"],
|
|
1057
|
+
breadcrumbs: breadcrumbsMessages["zh-CN"],
|
|
1058
|
+
button: buttonMessages["zh-CN"],
|
|
1059
|
+
calendar: calendarMessages["zh-CN"],
|
|
1060
|
+
carousel: carouselMessages["zh-CN"],
|
|
1061
|
+
chat: chatMessages["zh-CN"],
|
|
1062
|
+
checkboxList: checkboxListMessages["zh-CN"],
|
|
1063
|
+
citation: citationMessages["zh-CN"],
|
|
1064
|
+
codeBlock: codeBlockMessages["zh-CN"],
|
|
1065
|
+
commandPalette: commandPaletteMessages["zh-CN"],
|
|
1066
|
+
commentComposer: commentComposerMessages["zh-CN"],
|
|
1067
|
+
comments: commentsMessages["zh-CN"],
|
|
1068
|
+
contextMenu: contextMenuMessages["zh-CN"],
|
|
1069
|
+
dateInput: dateInputMessages["zh-CN"],
|
|
1070
|
+
dateRangeInput: dateRangeInputMessages["zh-CN"],
|
|
1071
|
+
dateTimeInput: dateTimeInputMessages["zh-CN"],
|
|
1072
|
+
dialog: dialogMessages["zh-CN"],
|
|
1073
|
+
dropdownMenu: dropdownMenuMessages["zh-CN"],
|
|
1074
|
+
emojiPicker: emojiPickerMessages["zh-CN"],
|
|
1075
|
+
field: fieldMessages["zh-CN"],
|
|
1076
|
+
fileInput: fileInputMessages["zh-CN"],
|
|
1077
|
+
infoTip: infoTipMessages["zh-CN"],
|
|
1078
|
+
input: inputMessages["zh-CN"],
|
|
1079
|
+
kbd: kbdMessages["zh-CN"],
|
|
1080
|
+
keyboardHint: keyboardHintMessages["zh-CN"],
|
|
1081
|
+
layout: layoutMessages["zh-CN"],
|
|
1082
|
+
lightbox: lightboxMessages["zh-CN"],
|
|
1083
|
+
listInput: listInputMessages["zh-CN"],
|
|
1084
|
+
markdown: markdownMessages["zh-CN"],
|
|
1085
|
+
metadataList: metadataListMessages["zh-CN"],
|
|
1086
|
+
moreMenu: moreMenuMessages["zh-CN"],
|
|
1087
|
+
multiSelector: multiSelectorMessages["zh-CN"],
|
|
1088
|
+
nav: navMessages["zh-CN"],
|
|
1089
|
+
numberInput: numberInputMessages["zh-CN"],
|
|
1090
|
+
outline: outlineMessages["zh-CN"],
|
|
1091
|
+
pagination: paginationMessages["zh-CN"],
|
|
1092
|
+
popover: popoverMessages["zh-CN"],
|
|
1093
|
+
powerSearch: powerSearchMessages["zh-CN"],
|
|
1094
|
+
richTextEditor: richTextEditorMessages["zh-CN"],
|
|
1095
|
+
selector: selectorMessages["zh-CN"],
|
|
1096
|
+
spinner: spinnerMessages["zh-CN"],
|
|
1097
|
+
stepper: stepperMessages["zh-CN"],
|
|
1098
|
+
switch: switchMessages["zh-CN"],
|
|
1099
|
+
tabList: tabListMessages["zh-CN"],
|
|
1100
|
+
table: tableMessages["zh-CN"],
|
|
1101
|
+
textArea: textAreaMessages["zh-CN"],
|
|
1102
|
+
textInput: textInputMessages["zh-CN"],
|
|
1103
|
+
thumbnail: thumbnailMessages["zh-CN"],
|
|
1104
|
+
timeInput: timeInputMessages["zh-CN"],
|
|
1105
|
+
timestamp: timestampMessages["zh-CN"],
|
|
1106
|
+
toast: toastMessages["zh-CN"],
|
|
1107
|
+
token: tokenMessages["zh-CN"],
|
|
1108
|
+
tokenizer: tokenizerMessages["zh-CN"],
|
|
1109
|
+
transferListSelector: transferListSelectorMessages["zh-CN"],
|
|
1110
|
+
transferList: transferListMessages["zh-CN"],
|
|
1111
|
+
treeList: treeListMessages["zh-CN"],
|
|
1112
|
+
typeahead: typeaheadMessages["zh-CN"]
|
|
1113
|
+
}
|
|
1114
|
+
};
|
|
1115
|
+
//#endregion
|
|
1116
|
+
//#region src/locale/fullMessages.ts
|
|
1117
|
+
/**
|
|
1118
|
+
* 一个语言标签对应的整份内置文案。只有简体中文有自己的一份,其余语言都用英文。
|
|
1119
|
+
* 别的语言要显示本地文字,得通过 `messages` 交进来。
|
|
1120
|
+
*/
|
|
1121
|
+
function builtInMessages(locale) {
|
|
1122
|
+
return locale === "zh-CN" ? astryxMessages["zh-CN"] : astryxMessages.en;
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
* 整份 `AstryxMessages`。外层 provider 交了文案树就用它,否则用当前语言的内置文案。
|
|
1126
|
+
* 会把全部命名空间的内置文案带进包里;组件内部改用 `useComponentMessages` 按命名空间读。
|
|
1127
|
+
*/
|
|
1128
|
+
function useAstryxMessages() {
|
|
1129
|
+
const locale = useAstryxLocale();
|
|
1130
|
+
const provided = inject(astryxMessagesKey, void 0);
|
|
1131
|
+
return computed(() => {
|
|
1132
|
+
if (provided != null) return toValue(provided);
|
|
1133
|
+
return builtInMessages(locale.value);
|
|
1134
|
+
});
|
|
1135
|
+
}
|
|
1136
|
+
//#endregion
|
|
1137
|
+
//#region src/locale/upstream/chat.ts
|
|
1138
|
+
/** Chat 家族。 */
|
|
1139
|
+
const chatUpstreamMap = {
|
|
1140
|
+
"@astryx.chat.status.sending": [{ path: "chat.statusSending" }],
|
|
1141
|
+
"@astryx.chat.status.sent": [{ path: "chat.statusSent" }],
|
|
1142
|
+
"@astryx.chat.status.delivered": [{ path: "chat.statusDelivered" }],
|
|
1143
|
+
"@astryx.chat.status.read": [{ path: "chat.statusRead" }],
|
|
1144
|
+
"@astryx.chat.status.failed": [{ path: "chat.statusFailed" }],
|
|
1145
|
+
"@astryx.chat.messageAriaLabel": [{
|
|
1146
|
+
path: "chat.messageStatus",
|
|
1147
|
+
args: ["status"]
|
|
1148
|
+
}],
|
|
1149
|
+
"@astryx.chat.pastedText.expand": [{ path: "chat.expandPastedText" }],
|
|
1150
|
+
"@astryx.chat.composer.placeholder": [{ path: "chat.placeholder" }],
|
|
1151
|
+
"@astryx.chat.composerDrawer.label": [{ path: "chat.drawerLabel" }],
|
|
1152
|
+
"@astryx.chat.composerInput.label": [{ path: "chat.inputLabel" }],
|
|
1153
|
+
"@astryx.chat.speechRecognition.noSpeechDetected": [{ path: "chat.noSpeechDetected" }],
|
|
1154
|
+
"@astryx.chatTypingIndicator.one": [{
|
|
1155
|
+
path: "chat.typingOne",
|
|
1156
|
+
args: ["name"]
|
|
1157
|
+
}],
|
|
1158
|
+
"@astryx.chatTypingIndicator.many": [{
|
|
1159
|
+
path: "chat.typingNames",
|
|
1160
|
+
args: ["names"]
|
|
1161
|
+
}],
|
|
1162
|
+
"@astryx.chatTypingIndicator.others": [{
|
|
1163
|
+
path: "chat.typingOthers",
|
|
1164
|
+
args: ["count"]
|
|
1165
|
+
}],
|
|
1166
|
+
"@astryx.chatComposerDrawer.expand": [{
|
|
1167
|
+
path: "chat.drawerExpand",
|
|
1168
|
+
args: ["label"]
|
|
1169
|
+
}],
|
|
1170
|
+
"@astryx.chatComposerDrawer.collapse": [{
|
|
1171
|
+
path: "chat.drawerCollapse",
|
|
1172
|
+
args: ["label"]
|
|
1173
|
+
}],
|
|
1174
|
+
"@astryx.chatDictationButton.startDictation": [{ path: "chat.startDictation" }],
|
|
1175
|
+
"@astryx.chatDictationButton.stopDictation": [{ path: "chat.stopDictation" }],
|
|
1176
|
+
"@astryx.chatLayout.newMessages": [{ path: "chat.newMessages" }],
|
|
1177
|
+
"@astryx.chatLayoutScrollButton.scrollToBottom": [{ path: "chat.scrollToBottom" }],
|
|
1178
|
+
"@astryx.chatMessage.messageFrom": [{
|
|
1179
|
+
path: "chat.messageFrom",
|
|
1180
|
+
args: ["sender"]
|
|
1181
|
+
}],
|
|
1182
|
+
"@astryx.chatSendButton.stop": [{ path: "chat.stop" }],
|
|
1183
|
+
"@astryx.chatSendButton.send": [{ path: "chat.send" }],
|
|
1184
|
+
"@astryx.chatToolCalls.error": [{
|
|
1185
|
+
path: "chat.toolError",
|
|
1186
|
+
args: ["message"]
|
|
1187
|
+
}],
|
|
1188
|
+
"@astryx.chatToolCalls.groupLabel": [{
|
|
1189
|
+
path: "chat.toolGroup",
|
|
1190
|
+
args: ["count"]
|
|
1191
|
+
}],
|
|
1192
|
+
"@astryx.chatToolCalls.status.pending": [{ path: "chat.toolPending" }],
|
|
1193
|
+
"@astryx.chatToolCalls.status.running": [{ path: "chat.toolRunning" }],
|
|
1194
|
+
"@astryx.chatToolCalls.status.complete": [{ path: "chat.toolComplete" }],
|
|
1195
|
+
"@astryx.chatToolCalls.status.error": [{ path: "chat.toolFailed" }],
|
|
1196
|
+
"@astryx.chatTriggerMenu.suggestions": [{ path: "chat.suggestions" }]
|
|
1197
|
+
};
|
|
1198
|
+
//#endregion
|
|
1199
|
+
//#region src/locale/upstream/comments.ts
|
|
1200
|
+
/**
|
|
1201
|
+
* 表情选择器、评论和评论输入框。
|
|
1202
|
+
* 评论组件还没落地;键先接进来,`useTranslator` 可以按原版键取文案。
|
|
1203
|
+
*/
|
|
1204
|
+
const commentsUpstreamMap = {
|
|
1205
|
+
"@astryx.emojiPicker.frequentlyUsed": [{ path: "emojiPicker.frequentlyUsed" }],
|
|
1206
|
+
"@astryx.emojiPicker.groupActivities": [{ path: "emojiPicker.groupActivities" }],
|
|
1207
|
+
"@astryx.emojiPicker.groupAnimalsNature": [{ path: "emojiPicker.groupAnimalsNature" }],
|
|
1208
|
+
"@astryx.emojiPicker.groupFlags": [{ path: "emojiPicker.groupFlags" }],
|
|
1209
|
+
"@astryx.emojiPicker.groupFoodDrink": [{ path: "emojiPicker.groupFoodDrink" }],
|
|
1210
|
+
"@astryx.emojiPicker.groupObjects": [{ path: "emojiPicker.groupObjects" }],
|
|
1211
|
+
"@astryx.emojiPicker.groupPeopleBody": [{ path: "emojiPicker.groupPeopleBody" }],
|
|
1212
|
+
"@astryx.emojiPicker.groupSmileysEmotion": [{ path: "emojiPicker.groupSmileysEmotion" }],
|
|
1213
|
+
"@astryx.emojiPicker.groupSymbols": [{ path: "emojiPicker.groupSymbols" }],
|
|
1214
|
+
"@astryx.emojiPicker.groupTravelPlaces": [{ path: "emojiPicker.groupTravelPlaces" }],
|
|
1215
|
+
"@astryx.emojiPicker.label": [{ path: "emojiPicker.label" }],
|
|
1216
|
+
"@astryx.emojiPicker.loadFailed": [{ path: "emojiPicker.loadFailed" }],
|
|
1217
|
+
"@astryx.emojiPicker.loading": [{ path: "emojiPicker.loading" }],
|
|
1218
|
+
"@astryx.emojiPicker.noResults": [{
|
|
1219
|
+
path: "emojiPicker.noResults",
|
|
1220
|
+
args: ["query"]
|
|
1221
|
+
}],
|
|
1222
|
+
"@astryx.emojiPicker.searchLabel": [{ path: "emojiPicker.searchLabel" }],
|
|
1223
|
+
"@astryx.emojiPicker.searchResults": [{ path: "emojiPicker.searchResults" }],
|
|
1224
|
+
"@astryx.comments.actionsLabel": [{
|
|
1225
|
+
path: "comments.actionsLabel",
|
|
1226
|
+
args: ["name"]
|
|
1227
|
+
}],
|
|
1228
|
+
"@astryx.comments.addReaction": [{ path: "comments.addReaction" }],
|
|
1229
|
+
"@astryx.comments.agentBadge": [{ path: "comments.agentBadge" }],
|
|
1230
|
+
"@astryx.comments.agentLogo": [{
|
|
1231
|
+
path: "comments.agentLogo",
|
|
1232
|
+
args: ["name"]
|
|
1233
|
+
}],
|
|
1234
|
+
"@astryx.comments.chooseReaction": [{ path: "comments.chooseReaction" }],
|
|
1235
|
+
"@astryx.comments.commentsLabel": [{
|
|
1236
|
+
path: "comments.commentsLabel",
|
|
1237
|
+
args: ["label"]
|
|
1238
|
+
}],
|
|
1239
|
+
"@astryx.comments.copyLink": [{ path: "comments.copyLink" }],
|
|
1240
|
+
"@astryx.comments.currentVersion": [{ path: "comments.currentVersion" }],
|
|
1241
|
+
"@astryx.comments.delete": [{ path: "comments.delete" }],
|
|
1242
|
+
"@astryx.comments.deleteDescription": [{
|
|
1243
|
+
path: "comments.deleteDescription",
|
|
1244
|
+
args: ["name"]
|
|
1245
|
+
}],
|
|
1246
|
+
"@astryx.comments.deleteFailed": [{ path: "comments.deleteFailed" }],
|
|
1247
|
+
"@astryx.comments.deleteFailedRetry": [{ path: "comments.deleteFailedRetry" }],
|
|
1248
|
+
"@astryx.comments.deleteTitle": [{ path: "comments.deleteTitle" }],
|
|
1249
|
+
"@astryx.comments.edit": [{ path: "comments.edit" }],
|
|
1250
|
+
"@astryx.comments.editFailed": [{ path: "comments.editFailed" }],
|
|
1251
|
+
"@astryx.comments.editPlaceholder": [{ path: "comments.editPlaceholder" }],
|
|
1252
|
+
"@astryx.comments.edited": [{ path: "comments.edited" }],
|
|
1253
|
+
"@astryx.comments.editingContext": [{ path: "comments.editingContext" }],
|
|
1254
|
+
"@astryx.comments.emptyDescription": [{ path: "comments.emptyDescription" }],
|
|
1255
|
+
"@astryx.comments.emptyReadOnlyDescription": [{ path: "comments.emptyReadOnlyDescription" }],
|
|
1256
|
+
"@astryx.comments.emptyTitle": [{ path: "comments.emptyTitle" }],
|
|
1257
|
+
"@astryx.comments.hideReplies": [{ path: "comments.hideReplies" }],
|
|
1258
|
+
"@astryx.comments.historyEmptyDescription": [{ path: "comments.historyEmptyDescription" }],
|
|
1259
|
+
"@astryx.comments.historyEmptyTitle": [{ path: "comments.historyEmptyTitle" }],
|
|
1260
|
+
"@astryx.comments.historyFailed": [{ path: "comments.historyFailed" }],
|
|
1261
|
+
"@astryx.comments.historyLoadFailed": [{ path: "comments.historyLoadFailed" }],
|
|
1262
|
+
"@astryx.comments.historyLoading": [{ path: "comments.historyLoading" }],
|
|
1263
|
+
"@astryx.comments.historySubtitle": [{
|
|
1264
|
+
path: "comments.historySubtitle",
|
|
1265
|
+
args: ["name"]
|
|
1266
|
+
}],
|
|
1267
|
+
"@astryx.comments.historyTitle": [{ path: "comments.historyTitle" }],
|
|
1268
|
+
"@astryx.comments.label": [{ path: "comments.label" }],
|
|
1269
|
+
"@astryx.comments.linkCopied": [{ path: "comments.linkCopied" }],
|
|
1270
|
+
"@astryx.comments.loadFailed": [{ path: "comments.loadFailed" }],
|
|
1271
|
+
"@astryx.comments.loadOlder": [{ path: "comments.loadOlder" }],
|
|
1272
|
+
"@astryx.comments.loading": [{ path: "comments.loading" }],
|
|
1273
|
+
"@astryx.comments.olderFailed": [{ path: "comments.olderFailed" }],
|
|
1274
|
+
"@astryx.comments.otherReactors": [{
|
|
1275
|
+
path: "comments.otherReactors",
|
|
1276
|
+
args: ["count"]
|
|
1277
|
+
}],
|
|
1278
|
+
"@astryx.comments.outdated": [{ path: "comments.outdated" }],
|
|
1279
|
+
"@astryx.comments.postFailed": [{ path: "comments.postFailed" }],
|
|
1280
|
+
"@astryx.comments.reactionCelebrate": [{ path: "comments.reactionCelebrate" }],
|
|
1281
|
+
"@astryx.comments.reactionCount": [{
|
|
1282
|
+
path: "comments.reactionCount",
|
|
1283
|
+
args: ["reaction", "count"]
|
|
1284
|
+
}],
|
|
1285
|
+
"@astryx.comments.reactionFailed": [{ path: "comments.reactionFailed" }],
|
|
1286
|
+
"@astryx.comments.reactionLaugh": [{ path: "comments.reactionLaugh" }],
|
|
1287
|
+
"@astryx.comments.reactionLike": [{ path: "comments.reactionLike" }],
|
|
1288
|
+
"@astryx.comments.reactionLove": [{ path: "comments.reactionLove" }],
|
|
1289
|
+
"@astryx.comments.reactionSad": [{ path: "comments.reactionSad" }],
|
|
1290
|
+
"@astryx.comments.reactionWow": [{ path: "comments.reactionWow" }],
|
|
1291
|
+
"@astryx.comments.reopen": [{ path: "comments.reopen" }],
|
|
1292
|
+
"@astryx.comments.reopenFailed": [{ path: "comments.reopenFailed" }],
|
|
1293
|
+
"@astryx.comments.reply": [{ path: "comments.reply" }],
|
|
1294
|
+
"@astryx.comments.replyFailed": [{ path: "comments.replyFailed" }],
|
|
1295
|
+
"@astryx.comments.replyPlaceholder": [{
|
|
1296
|
+
path: "comments.replyPlaceholder",
|
|
1297
|
+
args: ["name"]
|
|
1298
|
+
}],
|
|
1299
|
+
"@astryx.comments.replyingContext": [{
|
|
1300
|
+
path: "comments.replyingContext",
|
|
1301
|
+
args: ["name"]
|
|
1302
|
+
}],
|
|
1303
|
+
"@astryx.comments.resolve": [{ path: "comments.resolve" }],
|
|
1304
|
+
"@astryx.comments.resolveFailed": [{ path: "comments.resolveFailed" }],
|
|
1305
|
+
"@astryx.comments.resolved": [{ path: "comments.resolved" }],
|
|
1306
|
+
"@astryx.comments.resolvedBy": [{
|
|
1307
|
+
path: "comments.resolvedBy",
|
|
1308
|
+
args: ["name"]
|
|
1309
|
+
}],
|
|
1310
|
+
"@astryx.comments.retry": [{ path: "comments.retry" }],
|
|
1311
|
+
"@astryx.comments.retryFailed": [{ path: "comments.retryFailed" }],
|
|
1312
|
+
"@astryx.comments.sendFailed": [{ path: "comments.sendFailed" }],
|
|
1313
|
+
"@astryx.comments.threadLabel": [{
|
|
1314
|
+
path: "comments.threadLabel",
|
|
1315
|
+
args: ["name"]
|
|
1316
|
+
}],
|
|
1317
|
+
"@astryx.comments.unread": [{ path: "comments.unread" }],
|
|
1318
|
+
"@astryx.comments.unsavedDraft": [{ path: "comments.unsavedDraft" }],
|
|
1319
|
+
"@astryx.comments.versionAuthor": [{
|
|
1320
|
+
path: "comments.versionAuthor",
|
|
1321
|
+
args: ["name"]
|
|
1322
|
+
}],
|
|
1323
|
+
"@astryx.comments.viewHistory": [{ path: "comments.viewHistory" }],
|
|
1324
|
+
"@astryx.comments.viewReplies": [{
|
|
1325
|
+
path: "comments.viewReplies",
|
|
1326
|
+
args: ["count"]
|
|
1327
|
+
}],
|
|
1328
|
+
"@astryx.commentComposer.addEmoji": [{ path: "commentComposer.addEmoji" }],
|
|
1329
|
+
"@astryx.commentComposer.agents": [{ path: "commentComposer.agents" }],
|
|
1330
|
+
"@astryx.commentComposer.attachImages": [{ path: "commentComposer.attachImages" }],
|
|
1331
|
+
"@astryx.commentComposer.cancel": [{ path: "commentComposer.cancel" }],
|
|
1332
|
+
"@astryx.commentComposer.chooseImages": [{ path: "commentComposer.chooseImages" }],
|
|
1333
|
+
"@astryx.commentComposer.imageAlt": [{ path: "commentComposer.imageAlt" }],
|
|
1334
|
+
"@astryx.commentComposer.imagesOnly": [{ path: "commentComposer.imagesOnly" }],
|
|
1335
|
+
"@astryx.commentComposer.noAgents": [{ path: "commentComposer.noAgents" }],
|
|
1336
|
+
"@astryx.commentComposer.placeholder": [{ path: "commentComposer.placeholder" }],
|
|
1337
|
+
"@astryx.commentComposer.removeQuote": [{ path: "commentComposer.removeQuote" }],
|
|
1338
|
+
"@astryx.commentComposer.uploadFailed": [{ path: "commentComposer.uploadFailed" }]
|
|
1339
|
+
};
|
|
1340
|
+
//#endregion
|
|
1341
|
+
//#region src/locale/upstream/data.ts
|
|
1342
|
+
/** 表格。 */
|
|
1343
|
+
const dataUpstreamMap = {
|
|
1344
|
+
"@astryx.table.label": [{ path: "table.label" }],
|
|
1345
|
+
"@astryx.table.noData": [{ path: "table.noData" }],
|
|
1346
|
+
"@astryx.table.filter.allPlaceholder": [{ path: "table.filterAll" }],
|
|
1347
|
+
"@astryx.table.filter.reset": [{ path: "table.reset" }],
|
|
1348
|
+
"@astryx.table.filter.apply": [{ path: "table.apply" }],
|
|
1349
|
+
"@astryx.tableFiltering.filterByColumn": [{
|
|
1350
|
+
path: "table.filterByColumn",
|
|
1351
|
+
args: ["header"]
|
|
1352
|
+
}],
|
|
1353
|
+
"@astryx.table.selection.selectAllRows": [{ path: "table.selectAllRows" }],
|
|
1354
|
+
"@astryx.table.selection.selectRow": [{ path: "table.selectRow" }],
|
|
1355
|
+
"@astryx.table.selection.selectRowNamed": [{
|
|
1356
|
+
path: "table.selectRowNamed",
|
|
1357
|
+
args: ["label"]
|
|
1358
|
+
}],
|
|
1359
|
+
"@astryx.table.selection.bulkActionsLabel": [{ path: "table.bulkActionsLabel" }],
|
|
1360
|
+
"@astryx.table.selection.clearAll": [{ path: "table.clearAll" }],
|
|
1361
|
+
"@astryx.table.selection.selectedCount": [{
|
|
1362
|
+
path: "table.selectedCount",
|
|
1363
|
+
args: ["count"]
|
|
1364
|
+
}, {
|
|
1365
|
+
path: "multiSelector.selected",
|
|
1366
|
+
args: ["count"]
|
|
1367
|
+
}],
|
|
1368
|
+
"@astryx.table.sort.ascending": [{ path: "table.sortAscending" }],
|
|
1369
|
+
"@astryx.table.sort.descending": [{ path: "table.sortDescending" }],
|
|
1370
|
+
"@astryx.table.sort.clear": [{ path: "table.clearSort" }],
|
|
1371
|
+
"@astryx.table.sort.direction.ascending": [{ path: "table.sortedAscending" }],
|
|
1372
|
+
"@astryx.table.sort.direction.descending": [{ path: "table.sortedDescending" }],
|
|
1373
|
+
"@astryx.table.sort.sortBy": [{
|
|
1374
|
+
path: "table.sortBy",
|
|
1375
|
+
args: ["label"]
|
|
1376
|
+
}],
|
|
1377
|
+
"@astryx.table.sort.sortedBy": [{
|
|
1378
|
+
path: "table.sortedBy",
|
|
1379
|
+
args: ["label", "direction"]
|
|
1380
|
+
}],
|
|
1381
|
+
"@astryx.table.sort.sortedByWithPriority": [{
|
|
1382
|
+
path: "table.sortedByWithPriority",
|
|
1383
|
+
args: [
|
|
1384
|
+
"label",
|
|
1385
|
+
"direction",
|
|
1386
|
+
"rank",
|
|
1387
|
+
"total"
|
|
1388
|
+
]
|
|
1389
|
+
}],
|
|
1390
|
+
"@astryx.table.pagination.label": [{ path: "table.paginationLabel" }],
|
|
1391
|
+
"@astryx.table.pagination.labelAbove": [{
|
|
1392
|
+
path: "table.paginationLabelAbove",
|
|
1393
|
+
args: ["label"]
|
|
1394
|
+
}],
|
|
1395
|
+
"@astryx.table.pagination.labelBelow": [{
|
|
1396
|
+
path: "table.paginationLabelBelow",
|
|
1397
|
+
args: ["label"]
|
|
1398
|
+
}],
|
|
1399
|
+
"@astryx.tableGroupedRows.expandGroup": [{
|
|
1400
|
+
path: "table.expandGroup",
|
|
1401
|
+
args: ["groupKey"]
|
|
1402
|
+
}],
|
|
1403
|
+
"@astryx.tableGroupedRows.collapseGroup": [{
|
|
1404
|
+
path: "table.collapseGroup",
|
|
1405
|
+
args: ["groupKey"]
|
|
1406
|
+
}],
|
|
1407
|
+
"@astryx.tableRowExpansion.expandRow": [{ path: "table.expandRow" }],
|
|
1408
|
+
"@astryx.tableRowExpansion.collapseRow": [{ path: "table.collapseRow" }],
|
|
1409
|
+
"@astryx.tableRowExpansion.expandAllRows": [{ path: "table.expandAllRows" }],
|
|
1410
|
+
"@astryx.tableRowExpansion.collapseAllRows": [{ path: "table.collapseAllRows" }],
|
|
1411
|
+
"@astryx.tableRowExpansion.columnHeader": [{ path: "table.rowExpansion" }],
|
|
1412
|
+
"@astryx.table.rowStatus.columnHeader": [{ path: "table.rowStatus" }],
|
|
1413
|
+
"@astryx.tableTree.expandRow": [{ path: "table.treeExpandRow" }],
|
|
1414
|
+
"@astryx.tableTree.collapseRow": [{ path: "table.treeCollapseRow" }],
|
|
1415
|
+
"@astryx.tableTree.expandAllRows": [{ path: "table.treeExpandAllRows" }],
|
|
1416
|
+
"@astryx.tableTree.collapseAllRows": [{ path: "table.treeCollapseAllRows" }]
|
|
1417
|
+
};
|
|
1418
|
+
//#endregion
|
|
1419
|
+
//#region src/locale/upstream/dates.ts
|
|
1420
|
+
/** 日历和日期时间输入家族。 */
|
|
1421
|
+
const datesUpstreamMap = {
|
|
1422
|
+
"@astryx.calendar.previousMonth": [{ path: "calendar.previousMonth" }],
|
|
1423
|
+
"@astryx.calendar.nextMonth": [{ path: "calendar.nextMonth" }],
|
|
1424
|
+
"@astryx.calendar.rangeStartAnnounce": [{
|
|
1425
|
+
path: "calendar.rangeStart",
|
|
1426
|
+
args: ["date"]
|
|
1427
|
+
}],
|
|
1428
|
+
"@astryx.calendar.rangeClearedAnnounce": [{
|
|
1429
|
+
path: "calendar.rangeCleared",
|
|
1430
|
+
args: ["date"]
|
|
1431
|
+
}],
|
|
1432
|
+
"@astryx.calendar.rangeCompleteAnnounce": [{
|
|
1433
|
+
path: "calendar.rangeComplete",
|
|
1434
|
+
args: ["start", "end"]
|
|
1435
|
+
}],
|
|
1436
|
+
"@astryx.calendar.dayRangeStart": [{
|
|
1437
|
+
path: "calendar.rangeStartName",
|
|
1438
|
+
args: ["date"]
|
|
1439
|
+
}],
|
|
1440
|
+
"@astryx.calendar.dayRangeEnd": [{
|
|
1441
|
+
path: "calendar.rangeEndName",
|
|
1442
|
+
args: ["date"]
|
|
1443
|
+
}],
|
|
1444
|
+
"@astryx.calendar.dayRangeStartAndEnd": [{
|
|
1445
|
+
path: "calendar.rangeBoth",
|
|
1446
|
+
args: ["date"]
|
|
1447
|
+
}],
|
|
1448
|
+
"@astryx.calendar.daySelected": [{
|
|
1449
|
+
path: "calendar.daySelected",
|
|
1450
|
+
args: ["date"]
|
|
1451
|
+
}],
|
|
1452
|
+
"@astryx.calendar.dayInRange": [{
|
|
1453
|
+
path: "calendar.dayInRange",
|
|
1454
|
+
args: ["date"]
|
|
1455
|
+
}],
|
|
1456
|
+
"@astryx.dateInput.placeholder": [{ path: "dateInput.placeholder" }],
|
|
1457
|
+
"@astryx.dateInput.dialogLabel": [{ path: "dateInput.dialogLabel" }],
|
|
1458
|
+
"@astryx.dateInput.openCalendar": [{ path: "dateInput.openCalendar" }],
|
|
1459
|
+
"@astryx.dateInput.closeCalendar": [{ path: "dateInput.closeCalendar" }],
|
|
1460
|
+
"@astryx.dateInput.toggleCalendarClose": [{ path: "dateInput.toggleCalendarClose" }],
|
|
1461
|
+
"@astryx.dateInput.clear": [
|
|
1462
|
+
{
|
|
1463
|
+
path: "dateInput.clear",
|
|
1464
|
+
args: ["label"]
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
path: "dateRangeInput.clear",
|
|
1468
|
+
args: ["label"]
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
path: "dateTimeInput.clear",
|
|
1472
|
+
args: ["label"]
|
|
1473
|
+
}
|
|
1474
|
+
],
|
|
1475
|
+
"@astryx.dateInput.invalidDate": [{ path: "dateInput.invalidDate" }],
|
|
1476
|
+
"@astryx.dateInput.resetPicking": [{ path: "dateInput.resetPicking" }],
|
|
1477
|
+
"@astryx.dateInput.savePicking": [{ path: "dateInput.savePicking" }],
|
|
1478
|
+
"@astryx.dateInput.doneChoosingMonth": [{ path: "dateInput.doneChoosingMonth" }],
|
|
1479
|
+
"@astryx.dateInput.chooseMonthYear": [{
|
|
1480
|
+
path: "dateInput.chooseMonthYear",
|
|
1481
|
+
args: ["monthYear"]
|
|
1482
|
+
}],
|
|
1483
|
+
"@astryx.dateInput.monthWheel": [{ path: "dateInput.monthWheel" }],
|
|
1484
|
+
"@astryx.dateInput.yearWheel": [{ path: "dateInput.yearWheel" }],
|
|
1485
|
+
"@astryx.dateRangeInput.placeholder": [{ path: "dateRangeInput.placeholder" }],
|
|
1486
|
+
"@astryx.dateRangeInput.dialogLabel": [{ path: "dateRangeInput.dialogLabel" }],
|
|
1487
|
+
"@astryx.dateRangeInput.presetDateRanges": [{ path: "dateRangeInput.presetDateRanges" }],
|
|
1488
|
+
"@astryx.dateTimeInput.dateTab": [{ path: "dateTimeInput.dateLabel" }],
|
|
1489
|
+
"@astryx.dateTimeInput.timeTab": [{ path: "dateTimeInput.timeLabel" }],
|
|
1490
|
+
"@astryx.dateTimeInput.timeHint12h": [{ path: "timeInput.formatHint12" }],
|
|
1491
|
+
"@astryx.dateTimeInput.timeHint24h": [{ path: "timeInput.formatHint24" }],
|
|
1492
|
+
"@astryx.dateTimeInput.placeholder": [{ path: "dateTimeInput.placeholder" }],
|
|
1493
|
+
"@astryx.dateTimeInput.timePlaceholder": [{ path: "dateTimeInput.timePlaceholder" }],
|
|
1494
|
+
"@astryx.dateTimeInput.dialogLabel": [{ path: "dateTimeInput.dialogLabel" }],
|
|
1495
|
+
"@astryx.dateTimeInput.timeSuffix": [{
|
|
1496
|
+
path: "dateTimeInput.timeSuffix",
|
|
1497
|
+
args: ["label"]
|
|
1498
|
+
}],
|
|
1499
|
+
"@astryx.dateTimeInput.timeOptionsLabel": [{
|
|
1500
|
+
path: "dateTimeInput.timeOptionsLabel",
|
|
1501
|
+
args: ["label"]
|
|
1502
|
+
}],
|
|
1503
|
+
"@astryx.dateTimeInput.pickerMode": [{ path: "dateTimeInput.pickerMode" }],
|
|
1504
|
+
"@astryx.dateTimeInput.openTimePicker": [{
|
|
1505
|
+
path: "dateTimeInput.openTimePicker",
|
|
1506
|
+
args: ["label"]
|
|
1507
|
+
}],
|
|
1508
|
+
"@astryx.dateTimeInput.saveDatePicking": [{ path: "dateTimeInput.saveDatePicking" }],
|
|
1509
|
+
"@astryx.dateTimeInput.hourWheel": [{ path: "dateTimeInput.hourWheel" }],
|
|
1510
|
+
"@astryx.dateTimeInput.minuteWheel": [{ path: "dateTimeInput.minuteWheel" }],
|
|
1511
|
+
"@astryx.dateTimeInput.secondWheel": [{ path: "dateTimeInput.secondWheel" }],
|
|
1512
|
+
"@astryx.dateTimeInput.meridiemWheel": [{ path: "dateTimeInput.meridiemWheel" }],
|
|
1513
|
+
"@astryx.dateTimeInput.meridiemAM": [{ path: "dateTimeInput.meridiemAM" }],
|
|
1514
|
+
"@astryx.dateTimeInput.meridiemPM": [{ path: "dateTimeInput.meridiemPM" }],
|
|
1515
|
+
"@astryx.timeInput.placeholder": [{ path: "timeInput.placeholder" }],
|
|
1516
|
+
"@astryx.timeInput.clearLabel": [{
|
|
1517
|
+
path: "timeInput.clear",
|
|
1518
|
+
args: ["label"]
|
|
1519
|
+
}],
|
|
1520
|
+
"@astryx.timeInput.invalidTime": [{ path: "timeInput.invalidTime" }],
|
|
1521
|
+
"@astryx.timeInput.openPicker": [{
|
|
1522
|
+
path: "timeInput.openPicker",
|
|
1523
|
+
args: ["label"]
|
|
1524
|
+
}],
|
|
1525
|
+
"@astryx.timestamp.copyValue": [{
|
|
1526
|
+
path: "timestamp.copyValue",
|
|
1527
|
+
args: ["value"]
|
|
1528
|
+
}],
|
|
1529
|
+
"@astryx.timestamp.copy": [{ path: "timestamp.copy" }],
|
|
1530
|
+
"@astryx.timestamp.copied": [{ path: "timestamp.copied" }],
|
|
1531
|
+
"@astryx.timestamp.detailsLabel": [{ path: "timestamp.detailsLabel" }]
|
|
1532
|
+
};
|
|
1533
|
+
//#endregion
|
|
1534
|
+
//#region src/locale/upstream/forms.ts
|
|
1535
|
+
/** 输入框、勾选、选择器家族。 */
|
|
1536
|
+
const formsUpstreamMap = {
|
|
1537
|
+
"@astryx.button.loading": [
|
|
1538
|
+
{ path: "button.loading" },
|
|
1539
|
+
{ path: "checkboxList.loading" },
|
|
1540
|
+
{ path: "selector.loading" },
|
|
1541
|
+
{ path: "multiSelector.loading" },
|
|
1542
|
+
{ path: "dateInput.loading" }
|
|
1543
|
+
],
|
|
1544
|
+
"@astryx.spinner.loading": [{ path: "spinner.loading" }],
|
|
1545
|
+
"@astryx.switch.loading": [{ path: "switch.loading" }],
|
|
1546
|
+
"@astryx.checkboxList.item.checkbox": [{ path: "checkboxList.checkbox" }],
|
|
1547
|
+
"@astryx.field.optional": [{ path: "field.optional" }],
|
|
1548
|
+
"@astryx.field.required": [{ path: "field.required" }],
|
|
1549
|
+
"@astryx.inputClearButton.tooltip": [
|
|
1550
|
+
{ path: "input.tooltip" },
|
|
1551
|
+
{ path: "fileInput.clear" },
|
|
1552
|
+
{ path: "selector.clear" },
|
|
1553
|
+
{ path: "multiSelector.clear" }
|
|
1554
|
+
],
|
|
1555
|
+
"@astryx.input.statusButton.error": [{ path: "input.statusError" }],
|
|
1556
|
+
"@astryx.input.statusButton.warning": [{ path: "input.statusWarning" }],
|
|
1557
|
+
"@astryx.input.statusButton.success": [{ path: "input.statusSuccess" }],
|
|
1558
|
+
"@astryx.input.readOnly": [{ path: "selector.readOnly" }, { path: "multiSelector.readOnly" }],
|
|
1559
|
+
"@astryx.textInput.clearLabel": [{
|
|
1560
|
+
path: "textInput.clear",
|
|
1561
|
+
args: ["label"]
|
|
1562
|
+
}],
|
|
1563
|
+
"@astryx.textArea.charactersRemaining": [{
|
|
1564
|
+
path: "textArea.charactersRemaining",
|
|
1565
|
+
args: ["count"]
|
|
1566
|
+
}],
|
|
1567
|
+
"@astryx.textArea.charactersOverLimit": [{
|
|
1568
|
+
path: "textArea.charactersOverLimit",
|
|
1569
|
+
args: ["count"]
|
|
1570
|
+
}],
|
|
1571
|
+
"@astryx.numberInput.incrementLabel": [{
|
|
1572
|
+
path: "numberInput.increment",
|
|
1573
|
+
args: ["label"]
|
|
1574
|
+
}],
|
|
1575
|
+
"@astryx.numberInput.decrementLabel": [{
|
|
1576
|
+
path: "numberInput.decrement",
|
|
1577
|
+
args: ["label"]
|
|
1578
|
+
}],
|
|
1579
|
+
"@astryx.numberInput.clearLabel": [{
|
|
1580
|
+
path: "numberInput.clear",
|
|
1581
|
+
args: ["label"]
|
|
1582
|
+
}],
|
|
1583
|
+
"@astryx.numberInput.invalidNumber": [{ path: "numberInput.invalidNumber" }],
|
|
1584
|
+
"@astryx.fileInput.placeholder": [{ path: "fileInput.placeholder" }],
|
|
1585
|
+
"@astryx.fileInput.placeholderMultiple": [{ path: "fileInput.placeholderMultiple" }],
|
|
1586
|
+
"@astryx.fileInput.required": [{ path: "fileInput.required" }],
|
|
1587
|
+
"@astryx.fileInput.clearLabel": [{
|
|
1588
|
+
path: "fileInput.clearField",
|
|
1589
|
+
args: ["label"]
|
|
1590
|
+
}],
|
|
1591
|
+
"@astryx.fileInput.dropHint": [{ path: "fileInput.dropHint" }],
|
|
1592
|
+
"@astryx.fileInput.triggerWithFiles": [{
|
|
1593
|
+
path: "fileInput.triggerWithFiles",
|
|
1594
|
+
args: ["label", "fileNames"]
|
|
1595
|
+
}],
|
|
1596
|
+
"@astryx.fileInput.fileSelected": [{
|
|
1597
|
+
path: "fileInput.fileSelected",
|
|
1598
|
+
args: ["fileName"]
|
|
1599
|
+
}],
|
|
1600
|
+
"@astryx.fileInput.filesSelected": [{
|
|
1601
|
+
path: "fileInput.filesSelected",
|
|
1602
|
+
args: ["count"]
|
|
1603
|
+
}],
|
|
1604
|
+
"@astryx.fileInput.errorInvalidType": [{
|
|
1605
|
+
path: "fileInput.errorType",
|
|
1606
|
+
args: ["fileName"]
|
|
1607
|
+
}],
|
|
1608
|
+
"@astryx.fileInput.errorMaxSize": [{
|
|
1609
|
+
path: "fileInput.errorSize",
|
|
1610
|
+
args: ["fileName", "maxSize"]
|
|
1611
|
+
}],
|
|
1612
|
+
"@astryx.fileInput.errorMaxFiles": [{
|
|
1613
|
+
path: "fileInput.errorCount",
|
|
1614
|
+
args: ["maxFiles"]
|
|
1615
|
+
}],
|
|
1616
|
+
"@astryx.selector.placeholder": [{ path: "selector.placeholder" }],
|
|
1617
|
+
"@astryx.selector.searchPlaceholder": [{ path: "selector.search" }],
|
|
1618
|
+
"@astryx.selector.searchOptions": [{ path: "selector.searchOptions" }],
|
|
1619
|
+
"@astryx.selector.clearLabel": [{
|
|
1620
|
+
path: "selector.clearField",
|
|
1621
|
+
args: ["label"]
|
|
1622
|
+
}],
|
|
1623
|
+
"@astryx.selector.empty": [{ path: "selector.empty" }],
|
|
1624
|
+
"@astryx.selector.emptySearchResults": [{ path: "selector.emptySearch" }],
|
|
1625
|
+
"@astryx.selector.resultCount": [{
|
|
1626
|
+
path: "selector.resultCount",
|
|
1627
|
+
args: ["count"]
|
|
1628
|
+
}],
|
|
1629
|
+
"@astryx.multiSelector.selectPlaceholder": [{ path: "multiSelector.placeholder" }],
|
|
1630
|
+
"@astryx.multiSelector.searchPlaceholder": [{ path: "multiSelector.search" }],
|
|
1631
|
+
"@astryx.multiSelector.searchOptions": [{ path: "multiSelector.searchOptions" }],
|
|
1632
|
+
"@astryx.multiSelector.clearAll": [{
|
|
1633
|
+
path: "multiSelector.clearAll",
|
|
1634
|
+
args: ["label"]
|
|
1635
|
+
}],
|
|
1636
|
+
"@astryx.multiSelector.empty": [{ path: "multiSelector.empty" }],
|
|
1637
|
+
"@astryx.multiSelector.emptySearchResults": [{ path: "multiSelector.emptySearch" }],
|
|
1638
|
+
"@astryx.multiSelector.selectAll": [{ path: "multiSelector.selectAll" }],
|
|
1639
|
+
"@astryx.multiSelector.selectAllPartiallySelected": [{
|
|
1640
|
+
path: "multiSelector.selectAllPartial",
|
|
1641
|
+
args: ["label"]
|
|
1642
|
+
}],
|
|
1643
|
+
"@astryx.multiSelector.resultCount": [{
|
|
1644
|
+
path: "multiSelector.resultCount",
|
|
1645
|
+
args: ["count"]
|
|
1646
|
+
}],
|
|
1647
|
+
"@astryx.multiSelector.createOption": [{
|
|
1648
|
+
path: "multiSelector.create",
|
|
1649
|
+
args: ["query"]
|
|
1650
|
+
}, {
|
|
1651
|
+
path: "tokenizer.create",
|
|
1652
|
+
args: ["query"]
|
|
1653
|
+
}],
|
|
1654
|
+
"@astryx.multiSelector.optionCreated": [{
|
|
1655
|
+
path: "multiSelector.created",
|
|
1656
|
+
args: ["label"]
|
|
1657
|
+
}],
|
|
1658
|
+
"@astryx.multiSelector.selectionCleared": [{ path: "multiSelector.selectionCleared" }],
|
|
1659
|
+
"@astryx.multiSelector.allSelected": [{ path: "multiSelector.allSelected" }],
|
|
1660
|
+
"@astryx.multiSelector.selectionCount": [{
|
|
1661
|
+
path: "multiSelector.selectionCount",
|
|
1662
|
+
args: ["count", "total"]
|
|
1663
|
+
}],
|
|
1664
|
+
"@astryx.typeahead.searchPlaceholder": [{ path: "typeahead.placeholder" }],
|
|
1665
|
+
"@astryx.typeahead.emptySearchResults": [{ path: "typeahead.empty" }, { path: "tokenizer.empty" }],
|
|
1666
|
+
"@astryx.typeahead.loading": [{ path: "typeahead.loading" }, { path: "tokenizer.loading" }],
|
|
1667
|
+
"@astryx.typeahead.clearSelection": [{ path: "typeahead.clear" }],
|
|
1668
|
+
"@astryx.typeahead.resultCount": [{
|
|
1669
|
+
path: "typeahead.resultCount",
|
|
1670
|
+
args: ["count"]
|
|
1671
|
+
}],
|
|
1672
|
+
"@astryx.typeahead.searchResults": [
|
|
1673
|
+
{ path: "typeahead.results" },
|
|
1674
|
+
{ path: "tokenizer.results" },
|
|
1675
|
+
{ path: "powerSearch.results" }
|
|
1676
|
+
],
|
|
1677
|
+
"@astryx.token.remove": [{
|
|
1678
|
+
path: "token.remove",
|
|
1679
|
+
args: ["label"]
|
|
1680
|
+
}],
|
|
1681
|
+
"@astryx.tokenizer.clearAll": [{ path: "tokenizer.clear" }, { path: "powerSearch.clear" }],
|
|
1682
|
+
"@astryx.tokenizer.tokenAdded": [{
|
|
1683
|
+
path: "tokenizer.added",
|
|
1684
|
+
args: ["label"]
|
|
1685
|
+
}],
|
|
1686
|
+
"@astryx.tokenizer.tokenRemoved": [{
|
|
1687
|
+
path: "tokenizer.removed",
|
|
1688
|
+
args: ["label"]
|
|
1689
|
+
}]
|
|
1690
|
+
};
|
|
1691
|
+
//#endregion
|
|
1692
|
+
//#region src/locale/upstream/lab.ts
|
|
1693
|
+
/** lab 包里的记录编辑器与两栏选择器。文案由 lab 组件自己取,core 只负责保存。 */
|
|
1694
|
+
const labUpstreamMap = {
|
|
1695
|
+
"@astryx.listInput.emptyTitle": [{
|
|
1696
|
+
path: "listInput.emptyTitle",
|
|
1697
|
+
args: ["itemName"]
|
|
1698
|
+
}],
|
|
1699
|
+
"@astryx.listInput.emptyDescription": [{
|
|
1700
|
+
path: "listInput.emptyDescription",
|
|
1701
|
+
args: ["itemName"]
|
|
1702
|
+
}],
|
|
1703
|
+
"@astryx.listInput.addItem": [{
|
|
1704
|
+
path: "listInput.addItem",
|
|
1705
|
+
args: ["itemName"]
|
|
1706
|
+
}],
|
|
1707
|
+
"@astryx.listInput.removeItem": [{
|
|
1708
|
+
path: "listInput.removeItem",
|
|
1709
|
+
args: ["itemName", "position"]
|
|
1710
|
+
}],
|
|
1711
|
+
"@astryx.listInput.removeUnavailable": [{ path: "listInput.removeUnavailable" }],
|
|
1712
|
+
"@astryx.listInput.reorderItem": [{
|
|
1713
|
+
path: "listInput.reorderItem",
|
|
1714
|
+
args: ["itemName", "position"]
|
|
1715
|
+
}],
|
|
1716
|
+
"@astryx.listInput.fieldLabelWithPosition": [{
|
|
1717
|
+
path: "listInput.fieldLabelWithPosition",
|
|
1718
|
+
args: [
|
|
1719
|
+
"header",
|
|
1720
|
+
"itemName",
|
|
1721
|
+
"position",
|
|
1722
|
+
"total"
|
|
1723
|
+
]
|
|
1724
|
+
}],
|
|
1725
|
+
"@astryx.listInput.reorderInstructions": [{ path: "listInput.reorderInstructions" }],
|
|
1726
|
+
"@astryx.listInput.announceAdded": [{
|
|
1727
|
+
path: "listInput.announceAdded",
|
|
1728
|
+
args: ["itemName", "position"]
|
|
1729
|
+
}],
|
|
1730
|
+
"@astryx.listInput.announceRemoved": [{
|
|
1731
|
+
path: "listInput.announceRemoved",
|
|
1732
|
+
args: ["itemName", "position"]
|
|
1733
|
+
}],
|
|
1734
|
+
"@astryx.listInput.announceGrabbed": [{
|
|
1735
|
+
path: "listInput.announceGrabbed",
|
|
1736
|
+
args: ["itemName", "position"]
|
|
1737
|
+
}],
|
|
1738
|
+
"@astryx.listInput.announceMovedToPosition": [{
|
|
1739
|
+
path: "listInput.announceMovedToPosition",
|
|
1740
|
+
args: [
|
|
1741
|
+
"itemName",
|
|
1742
|
+
"position",
|
|
1743
|
+
"total"
|
|
1744
|
+
]
|
|
1745
|
+
}],
|
|
1746
|
+
"@astryx.listInput.announceReorderCancelled": [{ path: "listInput.announceReorderCancelled" }],
|
|
1747
|
+
"@astryx.listInput.announceReturnedToPosition": [{
|
|
1748
|
+
path: "listInput.announceReturnedToPosition",
|
|
1749
|
+
args: ["itemName", "position"]
|
|
1750
|
+
}],
|
|
1751
|
+
"@astryx.listInput.announceDropped": [{
|
|
1752
|
+
path: "listInput.announceDropped",
|
|
1753
|
+
args: [
|
|
1754
|
+
"itemName",
|
|
1755
|
+
"position",
|
|
1756
|
+
"total"
|
|
1757
|
+
]
|
|
1758
|
+
}],
|
|
1759
|
+
"@astryx.transferList.selectedLabel": [{ path: "transferList.selectedLabel" }],
|
|
1760
|
+
"@astryx.transferList.availableLabel": [{ path: "transferList.availableLabel" }],
|
|
1761
|
+
"@astryx.transferList.ungroupedLabel": [{ path: "transferList.ungroupedLabel" }],
|
|
1762
|
+
"@astryx.transferList.searchPlaceholder": [{ path: "transferList.searchPlaceholder" }],
|
|
1763
|
+
"@astryx.transferList.searchLabel": [{
|
|
1764
|
+
path: "transferList.searchLabel",
|
|
1765
|
+
args: ["label"]
|
|
1766
|
+
}],
|
|
1767
|
+
"@astryx.transferList.selectedEmpty": [{ path: "transferList.selectedEmpty" }],
|
|
1768
|
+
"@astryx.transferList.availableEmpty": [{ path: "transferList.availableEmpty" }],
|
|
1769
|
+
"@astryx.transferList.noResults": [{ path: "transferList.noResults" }],
|
|
1770
|
+
"@astryx.transferList.clear": [{ path: "transferList.clear" }],
|
|
1771
|
+
"@astryx.transferList.addAll": [{ path: "transferList.addAll" }],
|
|
1772
|
+
"@astryx.transferList.addOption": [{
|
|
1773
|
+
path: "transferList.addOption",
|
|
1774
|
+
args: ["label"]
|
|
1775
|
+
}],
|
|
1776
|
+
"@astryx.transferList.removeOption": [{
|
|
1777
|
+
path: "transferList.removeOption",
|
|
1778
|
+
args: ["label"]
|
|
1779
|
+
}],
|
|
1780
|
+
"@astryx.transferList.reorderOption": [{
|
|
1781
|
+
path: "transferList.reorderOption",
|
|
1782
|
+
args: ["label"]
|
|
1783
|
+
}],
|
|
1784
|
+
"@astryx.transferList.transferDisabled": [{
|
|
1785
|
+
path: "transferList.transferDisabled",
|
|
1786
|
+
args: ["label"]
|
|
1787
|
+
}],
|
|
1788
|
+
"@astryx.transferList.reorderDisabled": [{
|
|
1789
|
+
path: "transferList.reorderDisabled",
|
|
1790
|
+
args: ["label"]
|
|
1791
|
+
}],
|
|
1792
|
+
"@astryx.transferList.reorderInstructions": [{ path: "transferList.reorderInstructions" }],
|
|
1793
|
+
"@astryx.transferList.announceAdded": [{
|
|
1794
|
+
path: "transferList.announceAdded",
|
|
1795
|
+
args: ["label", "count"]
|
|
1796
|
+
}],
|
|
1797
|
+
"@astryx.transferList.announceRemoved": [{
|
|
1798
|
+
path: "transferList.announceRemoved",
|
|
1799
|
+
args: ["label", "count"]
|
|
1800
|
+
}],
|
|
1801
|
+
"@astryx.transferList.announceBulkAdded": [{
|
|
1802
|
+
path: "transferList.announceBulkAdded",
|
|
1803
|
+
args: ["count"]
|
|
1804
|
+
}],
|
|
1805
|
+
"@astryx.transferList.announceBulkRemoved": [{
|
|
1806
|
+
path: "transferList.announceBulkRemoved",
|
|
1807
|
+
args: ["count"]
|
|
1808
|
+
}],
|
|
1809
|
+
"@astryx.transferList.announceGrabbed": [{
|
|
1810
|
+
path: "transferList.announceGrabbed",
|
|
1811
|
+
args: [
|
|
1812
|
+
"label",
|
|
1813
|
+
"position",
|
|
1814
|
+
"total"
|
|
1815
|
+
]
|
|
1816
|
+
}],
|
|
1817
|
+
"@astryx.transferList.announceMoveCancelled": [{
|
|
1818
|
+
path: "transferList.announceMoveCancelled",
|
|
1819
|
+
args: ["label"]
|
|
1820
|
+
}],
|
|
1821
|
+
"@astryx.transferList.announceDropped": [{
|
|
1822
|
+
path: "transferList.announceDropped",
|
|
1823
|
+
args: [
|
|
1824
|
+
"label",
|
|
1825
|
+
"position",
|
|
1826
|
+
"total"
|
|
1827
|
+
]
|
|
1828
|
+
}],
|
|
1829
|
+
"@astryx.transferList.announceReturned": [{
|
|
1830
|
+
path: "transferList.announceReturned",
|
|
1831
|
+
args: ["label", "position"]
|
|
1832
|
+
}],
|
|
1833
|
+
"@astryx.transferList.announceMovedToPosition": [{
|
|
1834
|
+
path: "transferList.announceMovedToPosition",
|
|
1835
|
+
args: [
|
|
1836
|
+
"label",
|
|
1837
|
+
"position",
|
|
1838
|
+
"total"
|
|
1839
|
+
]
|
|
1840
|
+
}],
|
|
1841
|
+
"@astryx.transferList.announceSearchResults": [{
|
|
1842
|
+
path: "transferList.announceSearchResults",
|
|
1843
|
+
args: ["count"]
|
|
1844
|
+
}],
|
|
1845
|
+
"@astryx.transferListSelector.apply": [{ path: "transferListSelector.apply" }],
|
|
1846
|
+
"@astryx.transferListSelector.cancel": [{ path: "transferListSelector.cancel" }],
|
|
1847
|
+
"@astryx.transferListSelector.triggerLabel": [{
|
|
1848
|
+
path: "transferListSelector.triggerLabel",
|
|
1849
|
+
args: ["count"]
|
|
1850
|
+
}]
|
|
1851
|
+
};
|
|
1852
|
+
//#endregion
|
|
1853
|
+
//#region src/locale/upstream/navigation.ts
|
|
1854
|
+
/** 导航、布局、分页与菜单。 */
|
|
1855
|
+
const navigationUpstreamMap = {
|
|
1856
|
+
"@astryx.pagination.label": [{ path: "pagination.nav" }],
|
|
1857
|
+
"@astryx.pagination.previous": [{ path: "pagination.previousPage" }, { path: "pagination.previous" }],
|
|
1858
|
+
"@astryx.pagination.next": [{ path: "pagination.nextPage" }, { path: "pagination.next" }],
|
|
1859
|
+
"@astryx.pagination.previousBy": [{
|
|
1860
|
+
path: "pagination.previousPages",
|
|
1861
|
+
args: ["step"]
|
|
1862
|
+
}, {
|
|
1863
|
+
path: "pagination.previousBy",
|
|
1864
|
+
args: ["step"]
|
|
1865
|
+
}],
|
|
1866
|
+
"@astryx.pagination.nextBy": [{
|
|
1867
|
+
path: "pagination.nextPages",
|
|
1868
|
+
args: ["step"]
|
|
1869
|
+
}, {
|
|
1870
|
+
path: "pagination.nextBy",
|
|
1871
|
+
args: ["step"]
|
|
1872
|
+
}],
|
|
1873
|
+
"@astryx.pagination.first": [{ path: "pagination.first" }],
|
|
1874
|
+
"@astryx.pagination.last": [{ path: "pagination.last" }],
|
|
1875
|
+
"@astryx.pagination.pageAnnounce": [{
|
|
1876
|
+
path: "pagination.page",
|
|
1877
|
+
args: ["current"]
|
|
1878
|
+
}],
|
|
1879
|
+
"@astryx.pagination.goToPage": [{
|
|
1880
|
+
path: "pagination.goToPageNumber",
|
|
1881
|
+
args: ["page"]
|
|
1882
|
+
}],
|
|
1883
|
+
"@astryx.pagination.goToPageInput": [{ path: "pagination.goToPage" }],
|
|
1884
|
+
"@astryx.pagination.pageLabel": [{ path: "pagination.pageLabel" }],
|
|
1885
|
+
"@astryx.pagination.ofTotalPages": [{
|
|
1886
|
+
path: "pagination.ofTotal",
|
|
1887
|
+
args: ["total"]
|
|
1888
|
+
}],
|
|
1889
|
+
"@astryx.pagination.pageIndicators": [{ path: "pagination.pageIndicators" }],
|
|
1890
|
+
"@astryx.pagination.itemsPerPage": [{ path: "pagination.itemsPerPage" }, { path: "pagination.perPage" }],
|
|
1891
|
+
"@astryx.pagination.count": [{
|
|
1892
|
+
path: "pagination.total",
|
|
1893
|
+
args: [
|
|
1894
|
+
"total",
|
|
1895
|
+
"from",
|
|
1896
|
+
"to"
|
|
1897
|
+
]
|
|
1898
|
+
}],
|
|
1899
|
+
"@astryx.pagination.pageOfTotal": [{
|
|
1900
|
+
path: "pagination.pageOf",
|
|
1901
|
+
args: ["current", "total"]
|
|
1902
|
+
}],
|
|
1903
|
+
"@astryx.appShell.skipToContent": [{ path: "layout.skipToContent" }],
|
|
1904
|
+
"@astryx.appShell.mobileNavigation": [{ path: "layout.mobileNavigation" }],
|
|
1905
|
+
"@astryx.resizable.handle.label": [{ path: "layout.resizeHandle" }],
|
|
1906
|
+
"@astryx.resizable.collapsed": [{ path: "layout.collapsed" }],
|
|
1907
|
+
"@astryx.sideNav.label": [{ path: "nav.sideNav" }],
|
|
1908
|
+
"@astryx.sideNav.resizeSidebar": [{ path: "nav.resizeSidebar" }],
|
|
1909
|
+
"@astryx.sideNav.heading.openMenu": [{ path: "nav.openMenu" }],
|
|
1910
|
+
"@astryx.sideNav.heading.dialogLabel": [{ path: "nav.headingDialog" }],
|
|
1911
|
+
"@astryx.topNav.heading.dialogLabel": [{ path: "nav.topNavHeadingDialog" }],
|
|
1912
|
+
"@astryx.topNav.landmarkLabel": [{ path: "nav.topNav" }],
|
|
1913
|
+
"@astryx.topNav.heading.openMenu": [{ path: "nav.topNavOpenMenu" }],
|
|
1914
|
+
"@astryx.mobileNav.navigation": [{ path: "nav.mobileNav" }],
|
|
1915
|
+
"@astryx.mobileNav.toggle.open": [{ path: "nav.openNavigation" }],
|
|
1916
|
+
"@astryx.mobileNav.closeNavigation": [{ path: "nav.close" }],
|
|
1917
|
+
"@astryx.sideNavCollapseButton.collapseSidebar": [{ path: "nav.collapseSidebar" }],
|
|
1918
|
+
"@astryx.sideNavCollapseButton.expandSidebar": [{ path: "nav.expandSidebar" }],
|
|
1919
|
+
"@astryx.sideNavItem.expand": [{
|
|
1920
|
+
path: "nav.expandItem",
|
|
1921
|
+
args: ["label"]
|
|
1922
|
+
}],
|
|
1923
|
+
"@astryx.sideNavItem.collapse": [{
|
|
1924
|
+
path: "nav.collapseItem",
|
|
1925
|
+
args: ["label"]
|
|
1926
|
+
}],
|
|
1927
|
+
"@astryx.sideNavItem.submenuLabel": [{
|
|
1928
|
+
path: "nav.submenu",
|
|
1929
|
+
args: ["label"]
|
|
1930
|
+
}],
|
|
1931
|
+
"@astryx.link.newTab": [{ path: "nav.opensInNewTab" }],
|
|
1932
|
+
"@astryx.avatarGroup.overflow": [{
|
|
1933
|
+
path: "nav.avatarOverflow",
|
|
1934
|
+
args: ["count"]
|
|
1935
|
+
}],
|
|
1936
|
+
"@astryx.avatar.nameWithStatus": [{
|
|
1937
|
+
path: "nav.avatarNameWithStatus",
|
|
1938
|
+
args: ["name", "status"]
|
|
1939
|
+
}],
|
|
1940
|
+
"@astryx.avatarGroup.label": [{ path: "avatarGroup.label" }],
|
|
1941
|
+
"@astryx.avatarGroup.keyboardHint": [{ path: "avatarGroup.keyboardHint" }],
|
|
1942
|
+
"@astryx.breadcrumbs.label": [{ path: "breadcrumbs.label" }],
|
|
1943
|
+
"@astryx.tabList.label": [{ path: "tabList.label" }],
|
|
1944
|
+
"@astryx.outline.label": [{ path: "outline.label" }],
|
|
1945
|
+
"@astryx.treeList.toggleChildren": [{ path: "treeList.toggleChildren" }],
|
|
1946
|
+
"@astryx.metadataList.showMore": [{ path: "metadataList.showMore" }],
|
|
1947
|
+
"@astryx.metadataList.showLess": [{ path: "metadataList.showLess" }],
|
|
1948
|
+
"@astryx.dropdownMenu.label": [{ path: "dropdownMenu.label" }],
|
|
1949
|
+
"@astryx.dropdownMenu.back": [{ path: "dropdownMenu.back" }],
|
|
1950
|
+
"@astryx.dropdownMenu.backTo": [{
|
|
1951
|
+
path: "dropdownMenu.backTo",
|
|
1952
|
+
args: ["parent"]
|
|
1953
|
+
}],
|
|
1954
|
+
"@astryx.contextMenu.label": [{ path: "contextMenu.label" }],
|
|
1955
|
+
"@astryx.moreMenu.label": [{ path: "moreMenu.label" }],
|
|
1956
|
+
"@astryx.keyboardHint.toNavigate": [{ path: "keyboardHint.navigate" }],
|
|
1957
|
+
"@astryx.stepper.label": [{ path: "stepper.progress" }],
|
|
1958
|
+
"@astryx.stepper.previousStep": [{ path: "stepper.previous" }],
|
|
1959
|
+
"@astryx.stepper.nextStep": [{ path: "stepper.next" }],
|
|
1960
|
+
"@astryx.step.optional": [{ path: "stepper.optional" }],
|
|
1961
|
+
"@astryx.step.goToStep": [{
|
|
1962
|
+
path: "stepper.goToStep",
|
|
1963
|
+
args: ["stepNumber", "label"]
|
|
1964
|
+
}],
|
|
1965
|
+
"@astryx.step.goToStepWithStatus": [{
|
|
1966
|
+
path: "stepper.goToStepWithStatus",
|
|
1967
|
+
args: [
|
|
1968
|
+
"stepNumber",
|
|
1969
|
+
"label",
|
|
1970
|
+
"status"
|
|
1971
|
+
]
|
|
1972
|
+
}],
|
|
1973
|
+
"@astryx.step.status.completed": [{ path: "stepper.status.completed" }],
|
|
1974
|
+
"@astryx.step.status.warning": [{ path: "stepper.status.warning" }],
|
|
1975
|
+
"@astryx.step.status.error": [{ path: "stepper.status.error" }]
|
|
1976
|
+
};
|
|
1977
|
+
//#endregion
|
|
1978
|
+
//#region src/locale/upstream/overlays.ts
|
|
1979
|
+
/** 浮层、反馈与媒体查看。 */
|
|
1980
|
+
const overlaysUpstreamMap = {
|
|
1981
|
+
"@astryx.alertDialog.cancel": [{ path: "alertDialog.cancel" }],
|
|
1982
|
+
"@astryx.dialog.close": [{ path: "dialog.close" }],
|
|
1983
|
+
"@astryx.popover.close": [{ path: "popover.close" }],
|
|
1984
|
+
"@astryx.toast.dismiss": [{ path: "toast.dismiss" }],
|
|
1985
|
+
"@astryx.toast.viewport": [{ path: "toast.viewport" }],
|
|
1986
|
+
"@astryx.banner.dismiss": [{ path: "banner.dismiss" }],
|
|
1987
|
+
"@astryx.banner.dismissTitled": [{
|
|
1988
|
+
path: "banner.dismissTitled",
|
|
1989
|
+
args: ["dismiss", "title"]
|
|
1990
|
+
}],
|
|
1991
|
+
"@astryx.banner.collapse": [{ path: "banner.collapse" }],
|
|
1992
|
+
"@astryx.banner.expand": [{ path: "banner.expand" }],
|
|
1993
|
+
"@astryx.lightbox.close": [{ path: "lightbox.close" }],
|
|
1994
|
+
"@astryx.lightbox.previous": [{ path: "lightbox.previous" }],
|
|
1995
|
+
"@astryx.lightbox.next": [{ path: "lightbox.next" }],
|
|
1996
|
+
"@astryx.lightbox.mediaViewer": [{ path: "lightbox.mediaViewer" }],
|
|
1997
|
+
"@astryx.lightbox.zoom": [{ path: "lightbox.zoom" }],
|
|
1998
|
+
"@astryx.lightbox.zoomedIn": [{ path: "lightbox.zoomedIn" }],
|
|
1999
|
+
"@astryx.lightbox.zoomedOut": [{ path: "lightbox.zoomedOut" }],
|
|
2000
|
+
"@astryx.lightbox.captionMore": [{ path: "lightbox.captionMore" }],
|
|
2001
|
+
"@astryx.lightbox.captionLess": [{ path: "lightbox.captionLess" }],
|
|
2002
|
+
"@astryx.lightbox.imagePosition": [{
|
|
2003
|
+
path: "lightbox.imagePosition",
|
|
2004
|
+
args: ["index", "total"]
|
|
2005
|
+
}],
|
|
2006
|
+
"@astryx.lightbox.mediaPosition": [{
|
|
2007
|
+
path: "lightbox.mediaPosition",
|
|
2008
|
+
args: [
|
|
2009
|
+
"alt",
|
|
2010
|
+
"index",
|
|
2011
|
+
"total"
|
|
2012
|
+
]
|
|
2013
|
+
}],
|
|
2014
|
+
"@astryx.carousel.label": [{ path: "carousel.label" }],
|
|
2015
|
+
"@astryx.carousel.scrollLeft": [{ path: "carousel.scrollLeft" }],
|
|
2016
|
+
"@astryx.carousel.scrollRight": [{ path: "carousel.scrollRight" }],
|
|
2017
|
+
"@astryx.carousel.slideLabel": [{
|
|
2018
|
+
path: "carousel.slide",
|
|
2019
|
+
args: ["current", "total"]
|
|
2020
|
+
}],
|
|
2021
|
+
"@astryx.thumbnail.remove": [{
|
|
2022
|
+
path: "thumbnail.remove",
|
|
2023
|
+
args: ["accessibleName"]
|
|
2024
|
+
}],
|
|
2025
|
+
"@astryx.thumbnail.open": [{
|
|
2026
|
+
path: "thumbnail.open",
|
|
2027
|
+
args: ["accessibleName"]
|
|
2028
|
+
}],
|
|
2029
|
+
"@astryx.thumbnail.fallbackName": [{ path: "thumbnail.fallbackName" }],
|
|
2030
|
+
"@astryx.citation.label": [{
|
|
2031
|
+
path: "citation.label",
|
|
2032
|
+
args: ["number", "title"]
|
|
2033
|
+
}],
|
|
2034
|
+
"@astryx.codeBlock.copied": [{ path: "codeBlock.copied" }],
|
|
2035
|
+
"@astryx.codeBlock.copyCode": [{ path: "codeBlock.copyCode" }],
|
|
2036
|
+
"@astryx.codeBlock.code": [{ path: "codeBlock.code" }],
|
|
2037
|
+
"@astryx.markdownHeadingLinks.copy": [{
|
|
2038
|
+
path: "markdown.headingLinkCopy",
|
|
2039
|
+
args: ["heading"]
|
|
2040
|
+
}],
|
|
2041
|
+
"@astryx.markdownHeadingLinks.copied": [{ path: "markdown.headingLinkCopied" }],
|
|
2042
|
+
"@astryx.markdown.taskList": [{ path: "markdown.taskList" }],
|
|
2043
|
+
"@astryx.markdown.table": [{ path: "markdown.table" }]
|
|
2044
|
+
};
|
|
2045
|
+
//#endregion
|
|
2046
|
+
//#region src/locale/upstream/richtext.ts
|
|
2047
|
+
/** 富文本编辑器(`@astryx-vue/richtext`)。文案由 richtext 自己取,core 只负责保存。 */
|
|
2048
|
+
const richtextUpstreamMap = {
|
|
2049
|
+
"@astryx.richTextEditor.tabEscapeHint": [{ path: "richTextEditor.tabEscapeHint" }],
|
|
2050
|
+
"@astryx.richTextEditor.toolbar.label": [{ path: "richTextEditor.toolbar.label" }],
|
|
2051
|
+
"@astryx.richTextEditor.toolbar.actions": [{ path: "richTextEditor.toolbar.actions" }],
|
|
2052
|
+
"@astryx.richTextEditor.toolbar.undo": [{ path: "richTextEditor.toolbar.undo" }],
|
|
2053
|
+
"@astryx.richTextEditor.toolbar.redo": [{ path: "richTextEditor.toolbar.redo" }],
|
|
2054
|
+
"@astryx.richTextEditor.toolbar.historyDivider": [{ path: "richTextEditor.toolbar.historyDivider" }],
|
|
2055
|
+
"@astryx.richTextEditor.toolbar.blockFormat": [{ path: "richTextEditor.toolbar.blockFormat" }],
|
|
2056
|
+
"@astryx.richTextEditor.toolbar.formatDivider": [{ path: "richTextEditor.toolbar.formatDivider" }],
|
|
2057
|
+
"@astryx.richTextEditor.toolbar.paragraph": [{ path: "richTextEditor.toolbar.paragraph" }],
|
|
2058
|
+
"@astryx.richTextEditor.toolbar.heading1": [{ path: "richTextEditor.toolbar.heading1" }],
|
|
2059
|
+
"@astryx.richTextEditor.toolbar.heading2": [{ path: "richTextEditor.toolbar.heading2" }],
|
|
2060
|
+
"@astryx.richTextEditor.toolbar.heading3": [{ path: "richTextEditor.toolbar.heading3" }],
|
|
2061
|
+
"@astryx.richTextEditor.toolbar.bulletedList": [{ path: "richTextEditor.toolbar.bulletedList" }],
|
|
2062
|
+
"@astryx.richTextEditor.toolbar.numberedList": [{ path: "richTextEditor.toolbar.numberedList" }],
|
|
2063
|
+
"@astryx.richTextEditor.toolbar.blockQuote": [{ path: "richTextEditor.toolbar.blockQuote" }],
|
|
2064
|
+
"@astryx.richTextEditor.toolbar.bold": [{ path: "richTextEditor.toolbar.bold" }],
|
|
2065
|
+
"@astryx.richTextEditor.toolbar.italic": [{ path: "richTextEditor.toolbar.italic" }],
|
|
2066
|
+
"@astryx.richTextEditor.toolbar.underline": [{ path: "richTextEditor.toolbar.underline" }],
|
|
2067
|
+
"@astryx.richTextEditor.toolbar.strikethrough": [{ path: "richTextEditor.toolbar.strikethrough" }],
|
|
2068
|
+
"@astryx.richTextEditor.toolbar.inlineCode": [{ path: "richTextEditor.toolbar.inlineCode" }],
|
|
2069
|
+
"@astryx.richTextEditor.toolbar.link": [{ path: "richTextEditor.toolbar.link" }],
|
|
2070
|
+
"@astryx.richTextEditor.link.insertTitle": [{ path: "richTextEditor.link.insertTitle" }],
|
|
2071
|
+
"@astryx.richTextEditor.link.editTitle": [{ path: "richTextEditor.link.editTitle" }],
|
|
2072
|
+
"@astryx.richTextEditor.link.url": [{ path: "richTextEditor.link.url" }],
|
|
2073
|
+
"@astryx.richTextEditor.link.invalidUrl": [{ path: "richTextEditor.link.invalidUrl" }],
|
|
2074
|
+
"@astryx.richTextEditor.link.remove": [{ path: "richTextEditor.link.remove" }],
|
|
2075
|
+
"@astryx.richTextEditor.link.cancel": [{ path: "richTextEditor.link.cancel" }],
|
|
2076
|
+
"@astryx.richTextEditor.link.add": [{ path: "richTextEditor.link.add" }],
|
|
2077
|
+
"@astryx.richTextEditor.link.update": [{ path: "richTextEditor.link.update" }]
|
|
2078
|
+
};
|
|
2079
|
+
//#endregion
|
|
2080
|
+
//#region src/locale/upstream/search.ts
|
|
2081
|
+
const operatorNames = [
|
|
2082
|
+
"contains",
|
|
2083
|
+
"notContains",
|
|
2084
|
+
"startsWith",
|
|
2085
|
+
"notStartsWith",
|
|
2086
|
+
"endsWith",
|
|
2087
|
+
"notEndsWith",
|
|
2088
|
+
"is",
|
|
2089
|
+
"isNot",
|
|
2090
|
+
"equals",
|
|
2091
|
+
"notEquals",
|
|
2092
|
+
"greaterThan",
|
|
2093
|
+
"lessThan",
|
|
2094
|
+
"greaterThanOrEqual",
|
|
2095
|
+
"lessThanOrEqual",
|
|
2096
|
+
"before",
|
|
2097
|
+
"after",
|
|
2098
|
+
"between",
|
|
2099
|
+
"isTrue",
|
|
2100
|
+
"isFalse",
|
|
2101
|
+
"isAnyOf",
|
|
2102
|
+
"isNoneOf"
|
|
2103
|
+
];
|
|
2104
|
+
const valueNames = [
|
|
2105
|
+
"value",
|
|
2106
|
+
"values",
|
|
2107
|
+
"time",
|
|
2108
|
+
"date",
|
|
2109
|
+
"relativeDate",
|
|
2110
|
+
"startDate",
|
|
2111
|
+
"endDate",
|
|
2112
|
+
"entities",
|
|
2113
|
+
"searchPlaceholder",
|
|
2114
|
+
"enterValuePlaceholder",
|
|
2115
|
+
"addValuesPlaceholder",
|
|
2116
|
+
"enterNumberPlaceholder",
|
|
2117
|
+
"selectValuesPlaceholder"
|
|
2118
|
+
];
|
|
2119
|
+
const editorNames = [
|
|
2120
|
+
"field",
|
|
2121
|
+
"operator",
|
|
2122
|
+
"addFilter",
|
|
2123
|
+
"removeFilter",
|
|
2124
|
+
"group",
|
|
2125
|
+
"groupOperator",
|
|
2126
|
+
"delete",
|
|
2127
|
+
"cancel",
|
|
2128
|
+
"apply"
|
|
2129
|
+
];
|
|
2130
|
+
function namedTargets(keyPrefix, pathPrefix, names) {
|
|
2131
|
+
return Object.fromEntries(names.map((name) => [`${keyPrefix}.${name}`, [{ path: `${pathPrefix}.${name}` }]]));
|
|
2132
|
+
}
|
|
2133
|
+
//#endregion
|
|
2134
|
+
//#region src/locale/upstreamMap.ts
|
|
2135
|
+
const parts = [
|
|
2136
|
+
formsUpstreamMap,
|
|
2137
|
+
datesUpstreamMap,
|
|
2138
|
+
navigationUpstreamMap,
|
|
2139
|
+
overlaysUpstreamMap,
|
|
2140
|
+
dataUpstreamMap,
|
|
2141
|
+
{
|
|
2142
|
+
"@astryx.powersearch.label": [{ path: "powerSearch.label" }],
|
|
2143
|
+
"@astryx.powersearch.placeholder": [{ path: "powerSearch.placeholder" }],
|
|
2144
|
+
"@astryx.powersearch.resultCount": [{
|
|
2145
|
+
path: "powerSearch.resultCount",
|
|
2146
|
+
args: ["count"]
|
|
2147
|
+
}],
|
|
2148
|
+
"@astryx.powersearch.valueEditor.itemsCount": [{
|
|
2149
|
+
path: "powerSearch.itemsCount",
|
|
2150
|
+
args: ["count"]
|
|
2151
|
+
}],
|
|
2152
|
+
"@astryx.powersearch.valueEditor.entitiesCount": [{
|
|
2153
|
+
path: "powerSearch.entitiesCount",
|
|
2154
|
+
args: ["count"]
|
|
2155
|
+
}],
|
|
2156
|
+
"@astryx.powersearch.valueEditor.filtersCount": [{
|
|
2157
|
+
path: "powerSearch.filtersCount",
|
|
2158
|
+
args: ["count"]
|
|
2159
|
+
}],
|
|
2160
|
+
"@astryx.powersearch.valueEditor.dateRange": [{ path: "powerSearch.dateRange" }],
|
|
2161
|
+
...namedTargets("@astryx.powersearch.editor", "powerSearch.editor", editorNames),
|
|
2162
|
+
...namedTargets("@astryx.powersearch.operator", "powerSearch.operators", operatorNames),
|
|
2163
|
+
...namedTargets("@astryx.powersearch.valueEditor", "powerSearch.value", valueNames),
|
|
2164
|
+
"@astryx.commandPalette.label": [{ path: "commandPalette.label" }],
|
|
2165
|
+
"@astryx.commandPalette.emptySearch": [
|
|
2166
|
+
{ path: "commandPalette.emptySearch" },
|
|
2167
|
+
{ path: "powerSearch.empty" },
|
|
2168
|
+
{ path: "chat.noResults" }
|
|
2169
|
+
],
|
|
2170
|
+
"@astryx.commandPalette.emptyBootstrap": [{ path: "commandPalette.emptyBootstrap" }],
|
|
2171
|
+
"@astryx.commandPalette.input.placeholder": [{ path: "commandPalette.placeholder" }],
|
|
2172
|
+
"@astryx.commandPalette.input.label": [{ path: "commandPalette.inputLabel" }],
|
|
2173
|
+
"@astryx.commandPalette.list.label": [{ path: "commandPalette.listLabel" }],
|
|
2174
|
+
"@astryx.commandPalette.loading": [{ path: "commandPalette.loading" }],
|
|
2175
|
+
"@astryx.commandPalette.noResultsFor": [{
|
|
2176
|
+
path: "commandPalette.noResultsFor",
|
|
2177
|
+
args: ["query"]
|
|
2178
|
+
}],
|
|
2179
|
+
"@astryx.commandPalette.resultCount": [{
|
|
2180
|
+
path: "commandPalette.resultCount",
|
|
2181
|
+
args: ["count"]
|
|
2182
|
+
}],
|
|
2183
|
+
"@astryx.commandPalette.footer.navigate": [{ path: "commandPalette.navigate" }],
|
|
2184
|
+
"@astryx.commandPalette.footer.select": [{ path: "commandPalette.select" }],
|
|
2185
|
+
"@astryx.commandPalette.footer.close": [{ path: "commandPalette.close" }]
|
|
2186
|
+
},
|
|
2187
|
+
chatUpstreamMap,
|
|
2188
|
+
commentsUpstreamMap,
|
|
2189
|
+
labUpstreamMap,
|
|
2190
|
+
richtextUpstreamMap
|
|
2191
|
+
];
|
|
2192
|
+
function mergeParts(list) {
|
|
2193
|
+
const merged = {};
|
|
2194
|
+
for (const part of list) for (const [key, targets] of Object.entries(part)) {
|
|
2195
|
+
if (Object.hasOwn(merged, key)) throw new Error(`原版键 ${key} 在 upstream/ 下写了两次`);
|
|
2196
|
+
merged[key] = targets;
|
|
2197
|
+
}
|
|
2198
|
+
return merged;
|
|
2199
|
+
}
|
|
2200
|
+
/**
|
|
2201
|
+
* 原版 `@astryx.*` 键到 `AstryxMessages` 字段的对照,按组件家族拆在 `upstream/` 下。
|
|
2202
|
+
* 一个键可以填多个字段。占位符对不上的键不会写入,由加载器列出来。
|
|
2203
|
+
*
|
|
2204
|
+
* 没写进这里的原版键有两类:一类属于还没移植的包(charts、DiffViewer 等),
|
|
2205
|
+
* 另一类在 `scripts/i18n-catalog/coverage.mjs` 里逐条写了理由。
|
|
2206
|
+
*/
|
|
2207
|
+
const upstreamMessageMap = mergeParts(parts);
|
|
2208
|
+
//#endregion
|
|
2209
|
+
//#region src/locale/loadCatalog.ts
|
|
2210
|
+
/**
|
|
2211
|
+
* 把一份原版 Astryx locale JSON 映射成 `AstryxMessages`。
|
|
2212
|
+
* 内置的 `en` 和 `zh-CN` 不会被改掉。返回值要交给 `provideAstryxLocale` 的第二个参数。
|
|
2213
|
+
* `unmapped` 列出每一个没写进文案树的键。
|
|
2214
|
+
*/
|
|
2215
|
+
function loadAstryxCatalog(locale, catalog) {
|
|
2216
|
+
const messages = cloneMessages(astryxMessages.en);
|
|
2217
|
+
const tree = messages;
|
|
2218
|
+
const assigned = /* @__PURE__ */ new Set();
|
|
2219
|
+
const unmapped = [];
|
|
2220
|
+
const present = /* @__PURE__ */ new Set();
|
|
2221
|
+
for (const key of Object.keys(catalog).sort()) {
|
|
2222
|
+
present.add(key);
|
|
2223
|
+
const read = readMessage(catalog[key]);
|
|
2224
|
+
if (read.message == null) {
|
|
2225
|
+
unmapped.push({
|
|
2226
|
+
key,
|
|
2227
|
+
message: read.invalid,
|
|
2228
|
+
reason: "invalid-entry"
|
|
2229
|
+
});
|
|
2230
|
+
continue;
|
|
2231
|
+
}
|
|
2232
|
+
const targets = upstreamMessageMap[key];
|
|
2233
|
+
if (targets == null) {
|
|
2234
|
+
unmapped.push({
|
|
2235
|
+
key,
|
|
2236
|
+
message: read.message,
|
|
2237
|
+
reason: "no-slot"
|
|
2238
|
+
});
|
|
2239
|
+
continue;
|
|
2240
|
+
}
|
|
2241
|
+
if (!writeTargets(tree, assigned, targets, read.message, locale)) unmapped.push({
|
|
2242
|
+
key,
|
|
2243
|
+
message: read.message,
|
|
2244
|
+
reason: failureReason(targets, assigned, read.message)
|
|
2245
|
+
});
|
|
2246
|
+
}
|
|
2247
|
+
const missingKeys = Object.keys(upstreamMessageMap).filter((key) => !present.has(key)).sort();
|
|
2248
|
+
const fallbackFields = collectLeaves(tree).filter((path) => !assigned.has(path)).sort();
|
|
2249
|
+
unmapped.sort((a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0);
|
|
2250
|
+
return {
|
|
2251
|
+
locale,
|
|
2252
|
+
messages,
|
|
2253
|
+
unmapped,
|
|
2254
|
+
missingKeys,
|
|
2255
|
+
fallbackFields
|
|
2256
|
+
};
|
|
2257
|
+
}
|
|
2258
|
+
function writeTargets(tree, assigned, targets, message, locale) {
|
|
2259
|
+
let wrote = false;
|
|
2260
|
+
let names;
|
|
2261
|
+
try {
|
|
2262
|
+
names = icuPlaceholderNames(message);
|
|
2263
|
+
} catch {
|
|
2264
|
+
return false;
|
|
2265
|
+
}
|
|
2266
|
+
for (const target of targets) {
|
|
2267
|
+
if (assigned.has(target.path)) continue;
|
|
2268
|
+
const args = target.args ?? [];
|
|
2269
|
+
if (names.some((name) => !args.includes(name))) continue;
|
|
2270
|
+
let value;
|
|
2271
|
+
try {
|
|
2272
|
+
value = target.args == null ? cleanup(formatIcu(message, {}, locale)) : bindMessage(message, target.args, locale);
|
|
2273
|
+
} catch {
|
|
2274
|
+
continue;
|
|
2275
|
+
}
|
|
2276
|
+
setPath(tree, target.path, value);
|
|
2277
|
+
assigned.add(target.path);
|
|
2278
|
+
wrote = true;
|
|
2279
|
+
}
|
|
2280
|
+
return wrote;
|
|
2281
|
+
}
|
|
2282
|
+
function failureReason(targets, assigned, message) {
|
|
2283
|
+
let names;
|
|
2284
|
+
try {
|
|
2285
|
+
names = icuPlaceholderNames(message);
|
|
2286
|
+
} catch {
|
|
2287
|
+
return "unsupported-message";
|
|
2288
|
+
}
|
|
2289
|
+
const openTargets = targets.filter((target) => !assigned.has(target.path));
|
|
2290
|
+
if (openTargets.length === 0) return "slot-taken";
|
|
2291
|
+
return openTargets.some((target) => {
|
|
2292
|
+
const args = target.args ?? [];
|
|
2293
|
+
return names.some((name) => !args.includes(name));
|
|
2294
|
+
}) ? "placeholder-mismatch" : "unsupported-message";
|
|
2295
|
+
}
|
|
2296
|
+
function bindMessage(message, args, locale) {
|
|
2297
|
+
return (...values) => {
|
|
2298
|
+
const bag = {};
|
|
2299
|
+
args.forEach((name, index) => {
|
|
2300
|
+
bag[name] = coerce(values[index]);
|
|
2301
|
+
});
|
|
2302
|
+
return cleanup(formatIcu(message, bag, locale));
|
|
2303
|
+
};
|
|
2304
|
+
}
|
|
2305
|
+
function coerce(value) {
|
|
2306
|
+
if (typeof value === "number" || typeof value === "string") return value;
|
|
2307
|
+
if (value == null) return void 0;
|
|
2308
|
+
return String(value);
|
|
2309
|
+
}
|
|
2310
|
+
function cleanup(text) {
|
|
2311
|
+
return text.replace(/[ \t]{2,}/g, " ").trim();
|
|
2312
|
+
}
|
|
2313
|
+
function readMessage(entry) {
|
|
2314
|
+
if (typeof entry === "string") return { message: entry };
|
|
2315
|
+
if (entry != null && typeof entry === "object" && typeof entry.defaultMessage === "string") return { message: entry.defaultMessage };
|
|
2316
|
+
return { invalid: JSON.stringify(entry) };
|
|
2317
|
+
}
|
|
2318
|
+
function cloneMessages(source) {
|
|
2319
|
+
return cloneValue(source);
|
|
2320
|
+
}
|
|
2321
|
+
function cloneValue(value) {
|
|
2322
|
+
if (typeof value === "function" || value == null || typeof value !== "object") return value;
|
|
2323
|
+
const copy = {};
|
|
2324
|
+
for (const [key, child] of Object.entries(value)) copy[key] = cloneValue(child);
|
|
2325
|
+
return copy;
|
|
2326
|
+
}
|
|
2327
|
+
function setPath(tree, path, value) {
|
|
2328
|
+
const parts = path.split(".");
|
|
2329
|
+
let cursor = tree;
|
|
2330
|
+
for (const part of parts.slice(0, -1)) {
|
|
2331
|
+
const next = cursor[part];
|
|
2332
|
+
if (next == null || typeof next === "function" || typeof next === "string") throw new Error(`消息路径不存在:${path}`);
|
|
2333
|
+
cursor = next;
|
|
2334
|
+
}
|
|
2335
|
+
const leaf = parts[parts.length - 1];
|
|
2336
|
+
if (leaf == null || !Object.hasOwn(cursor, leaf)) throw new Error(`消息路径不存在:${path}`);
|
|
2337
|
+
cursor[leaf] = value;
|
|
2338
|
+
}
|
|
2339
|
+
function collectLeaves(tree, prefix = "") {
|
|
2340
|
+
const paths = [];
|
|
2341
|
+
for (const [key, value] of Object.entries(tree)) {
|
|
2342
|
+
const path = prefix === "" ? key : `${prefix}.${key}`;
|
|
2343
|
+
if (typeof value === "string" || typeof value === "function") paths.push(path);
|
|
2344
|
+
else paths.push(...collectLeaves(value, path));
|
|
2345
|
+
}
|
|
2346
|
+
return paths;
|
|
2347
|
+
}
|
|
2348
|
+
//#endregion
|
|
2349
|
+
export { tableMessages as a, icuPlaceholderNames as c, useAstryxMessages as i, upstreamMessageMap as n, powerSearchMessages as o, builtInMessages as r, formatIcu as s, loadAstryxCatalog as t };
|