@procore/core-react 12.8.1 → 12.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/Banner/Banner.styles.js +10 -10
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Button/Button.js +8 -1
- package/dist/Button/Button.js.map +1 -1
- package/dist/Button/Button.styles.js +15 -6
- package/dist/Button/Button.styles.js.map +1 -1
- package/dist/Button/Button.types.d.ts +1 -1
- package/dist/Button/Button.types.js.map +1 -1
- package/dist/Calendar/Calendar.styles.js +8 -8
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.js +6 -6
- package/dist/Checkbox/CheckboxTooltip.js +1 -1
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.js +7 -0
- package/dist/DateInput/DateInput.js.map +1 -1
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DetailPage/DetailPage.styles.js +8 -8
- package/dist/DetailPage/DetailPage.styles.js.map +1 -1
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/Dropzone/Dropzone.js +1 -1
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/EmptyState/EmptyState.styles.js +6 -6
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.styles.js +4 -4
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
- package/dist/FileSelect/FileSelect.styles.js +2 -2
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
- package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
- package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileToken/FileToken.styles.js +4 -4
- package/dist/FilterToken/FilterToken.styles.js +2 -2
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.styles.js +14 -14
- package/dist/Form/StyledFormikForm.styles.js +2 -2
- package/dist/Grid/Grid.styles.js +2 -2
- package/dist/GroupSelect/GroupSelect.styles.js +1 -1
- package/dist/Input/Input.styles.js +1 -1
- package/dist/Link/Link.styles.js +1 -1
- package/dist/ListPage/ListPage.d.ts +7 -0
- package/dist/ListPage/ListPage.js +8 -0
- package/dist/ListPage/ListPage.js.map +1 -1
- package/dist/ListPage/ListPage.styles.js +8 -8
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/MenuImperative/MenuImperative.styles.js +10 -10
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/Notation/Notation.js +1 -1
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/PageLayout/PageLayout.styles.d.ts +3 -1
- package/dist/PageLayout/PageLayout.styles.js +29 -23
- package/dist/PageLayout/PageLayout.styles.js.map +1 -1
- package/dist/Pagination/Pagination.js +1 -1
- package/dist/Pagination/Pagination.js.map +1 -1
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.js +7 -2
- package/dist/Panel/Panel.js.map +1 -1
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.js +2 -2
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- package/dist/Popover/Popover.styles.js +2 -2
- package/dist/Portal/Portal.styles.js +1 -1
- package/dist/ProgressBar/ProgressBar.styles.js +2 -2
- package/dist/RadioButton/RadioButton.styles.js +3 -3
- package/dist/Required/Required.styles.js +3 -3
- package/dist/Search/Search.styles.js +5 -5
- package/dist/Section/Section.js +4 -3
- package/dist/Section/Section.js.map +1 -1
- package/dist/Section/Section.styles.d.ts +1 -0
- package/dist/Section/Section.styles.js +10 -6
- package/dist/Section/Section.styles.js.map +1 -1
- package/dist/Section/Section.types.d.ts +4 -0
- package/dist/Section/Section.types.js.map +1 -1
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.styles.js +7 -7
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SplitViewCard/SplitViewCard.context.d.ts +3 -4
- package/dist/SplitViewCard/SplitViewCard.context.js +27 -9
- package/dist/SplitViewCard/SplitViewCard.context.js.map +1 -1
- package/dist/SplitViewCard/SplitViewCard.d.ts +23 -22
- package/dist/SplitViewCard/SplitViewCard.js +106 -39
- package/dist/SplitViewCard/SplitViewCard.js.map +1 -1
- package/dist/SplitViewCard/SplitViewCard.styles.d.ts +9 -3
- package/dist/SplitViewCard/SplitViewCard.styles.js +30 -18
- package/dist/SplitViewCard/SplitViewCard.styles.js.map +1 -1
- package/dist/SplitViewCard/SplitViewCard.types.d.ts +29 -6
- package/dist/SplitViewCard/SplitViewCard.types.js.map +1 -1
- package/dist/SplitViewCard/index.d.ts +0 -2
- package/dist/SplitViewCard/index.js +0 -2
- package/dist/SplitViewCard/index.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +37 -37
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.styles.js +28 -28
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.styles.js +15 -15
- package/dist/Tearsheet/Tearsheet.styles.js +5 -5
- package/dist/TextArea/TextArea.styles.js +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.hooks.d.ts +4 -2
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/Tile/Tile.styles.js +8 -8
- package/dist/Title/Title.styles.js +7 -7
- package/dist/Toast/Toast.styles.js +3 -3
- package/dist/ToggleButton/ToggleButton.styles.js +1 -1
- package/dist/Token/Token.styles.js +3 -3
- package/dist/ToolHeader/ToolHeader.d.ts +9 -0
- package/dist/ToolHeader/ToolHeader.js +10 -0
- package/dist/ToolHeader/ToolHeader.js.map +1 -1
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/ToolLandingPage/ToolLandingPage.d.ts +25 -0
- package/dist/ToolLandingPage/ToolLandingPage.js +78 -0
- package/dist/ToolLandingPage/ToolLandingPage.js.map +1 -0
- package/dist/ToolLandingPage/ToolLandingPage.styles.d.ts +4 -0
- package/dist/ToolLandingPage/ToolLandingPage.styles.js +16 -0
- package/dist/ToolLandingPage/ToolLandingPage.styles.js.map +1 -0
- package/dist/ToolLandingPage/ToolLandingPage.types.d.ts +11 -0
- package/dist/ToolLandingPage/ToolLandingPage.types.js +2 -0
- package/dist/ToolLandingPage/ToolLandingPage.types.js.map +1 -0
- package/dist/ToolLandingPage/index.d.ts +2 -0
- package/dist/ToolLandingPage/index.js +2 -0
- package/dist/ToolLandingPage/index.js.map +1 -0
- package/dist/Tooltip/Tooltip.styles.js +2 -2
- package/dist/Tree/Tree.styles.js +9 -9
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/_hooks/I18n.d.ts +79 -1
- package/dist/_hooks/I18n.js +10 -1
- package/dist/_hooks/I18n.js.map +1 -1
- package/dist/_hooks/getI18nProviderLocale.d.ts +6 -0
- package/dist/_hooks/getI18nProviderLocale.js +12 -2
- package/dist/_hooks/getI18nProviderLocale.js.map +1 -1
- package/dist/_locales/de-DE.json +9 -4
- package/dist/_locales/en-AU.json +6 -1
- package/dist/_locales/en-CA.json +6 -1
- package/dist/_locales/en-GB.json +6 -1
- package/dist/_locales/en.json +1 -1
- package/dist/_locales/es-ES.json +6 -1
- package/dist/_locales/es.json +11 -6
- package/dist/_locales/fr-CA.json +11 -6
- package/dist/_locales/fr-FR.json +14 -9
- package/dist/_locales/is-IS.json +6 -1
- package/dist/_locales/ja-JP.json +46 -41
- package/dist/_locales/pl-PL.json +3 -0
- package/dist/_locales/pseudo.json +6 -1
- package/dist/_locales/pt-BR.json +9 -4
- package/dist/_locales/th-TH.json +6 -1
- package/dist/_locales/zh-SG.json +6 -1
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +13 -13
- package/dist/_typedoc/Box/Box.types.json +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
- package/dist/_typedoc/Button/Button.types.json +14 -14
- package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
- package/dist/_typedoc/Card/Card.types.json +6 -6
- package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
- package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
- package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
- package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
- package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
- package/dist/_typedoc/Dropdown/Dropdown.types.json +39 -39
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
- package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
- package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
- package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
- package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
- package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
- package/dist/_typedoc/Flex/Flex.types.json +27 -27
- package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
- package/dist/_typedoc/Form/Form.types.json +726 -726
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +4 -4
- package/dist/_typedoc/ListPage/ListPage.json +9 -0
- package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
- package/dist/_typedoc/Menu/Menu.types.json +62 -62
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
- package/dist/_typedoc/Modal/Modal.types.json +46 -46
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
- package/dist/_typedoc/PageLayout/PageLayout.types.json +28 -28
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +38 -28
- package/dist/_typedoc/Pill/Pill.types.json +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +47 -47
- package/dist/_typedoc/Popover/Popover.types.json +14 -14
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
- package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
- package/dist/_typedoc/Required/Required.types.json +5 -5
- package/dist/_typedoc/Search/Search.types.json +18 -18
- package/dist/_typedoc/Section/Section.types.json +24 -14
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
- package/dist/_typedoc/Select/Select.types.json +58 -58
- package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
- package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +134 -0
- package/dist/_typedoc/Switch/Switch.types.json +3 -3
- package/dist/_typedoc/Table/Table.types.json +99 -99
- package/dist/_typedoc/Tabs/Tabs.types.json +19 -19
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
- package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +44 -44
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
- package/dist/_typedoc/Tile/Tile.types.json +30 -30
- package/dist/_typedoc/Title/Title.types.json +1 -1
- package/dist/_typedoc/Toast/Toast.types.json +4 -4
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
- package/dist/_typedoc/Token/Token.types.json +4 -4
- package/dist/_typedoc/ToolHeader/ToolHeader.json +9 -0
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +84 -0
- package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
- package/dist/_typedoc/Tree/Tree.types.json +86 -86
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +9 -9
- package/dist/_typedoc/_utils/types.json +3 -3
- package/dist/_typedoc/deprecations.json +1 -1
- package/dist/_utils/CalendarHelpers.js +3 -2
- package/dist/_utils/CalendarHelpers.js.map +1 -1
- package/dist/_utils/TinyMCE.js +2 -1
- package/dist/_utils/TinyMCE.js.map +1 -1
- package/dist/_utils/propsTypedoc.d.ts +4 -0
- package/dist/_utils/propsTypedoc.js +4 -1
- package/dist/_utils/propsTypedoc.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/NextListPage/NextListPage.d.ts +0 -24
- package/dist/NextListPage/NextListPage.js +0 -44
- package/dist/NextListPage/NextListPage.js.map +0 -1
- package/dist/NextListPage/NextListPage.types.d.ts +0 -3
- package/dist/NextListPage/NextListPage.types.js +0 -2
- package/dist/NextListPage/NextListPage.types.js.map +0 -1
- package/dist/NextListPage/index.d.ts +0 -2
- package/dist/NextListPage/index.js +0 -2
- package/dist/NextListPage/index.js.map +0 -1
- package/dist/SplitViewCard/useSplitViewCard.d.ts +0 -5
- package/dist/SplitViewCard/useSplitViewCard.js +0 -14
- package/dist/SplitViewCard/useSplitViewCard.js.map +0 -1
|
@@ -5,11 +5,11 @@ import { colors } from '../_styles/colors';
|
|
|
5
5
|
import { getTypographyIntent } from './Typography.styles';
|
|
6
6
|
var StyledBodyCell = /*#__PURE__*/styled(Table.BodyCell).withConfig({
|
|
7
7
|
displayName: "StyledBodyCell",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_10_0__sc-p4v7d-0"
|
|
9
9
|
})([""]);
|
|
10
10
|
var StyledTextCell = /*#__PURE__*/styled(Table.TextCell).withConfig({
|
|
11
11
|
displayName: "StyledTextCell",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-12_10_0__sc-p4v7d-1"
|
|
13
13
|
})(["", " color:", ";"], getTypographyIntent('body'), colors.blue50);
|
|
14
14
|
function BodyCell() {
|
|
15
15
|
return /*#__PURE__*/React.createElement(StyledBodyCell, {
|
package/dist/_hooks/I18n.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { I18njs, I18njsConfig } from '@procore/core-i18n-js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare type I18nConfig = Omit<I18njsConfig, 'I18n'>;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated this type will no longer be supported from core-i18n-js,
|
|
6
|
+
* to have a type safe Locale use TmsSupportedLocale or AllLocales from [Globalization toolkit](https://github.com/procore/globalization-toolkit)
|
|
7
|
+
* @deprecatedSince 12.10.0
|
|
8
|
+
*/
|
|
9
|
+
export declare type Locale = 'de-DE' | 'en-AE' | 'en-AU' | 'en-CA' | 'en-GB' | 'en-SG' | 'en' | 'es-ES' | 'es' | 'fr-CA' | 'fr-FR' | 'is-IS' | 'ja-JP' | 'pt-BR' | 'th-TH' | 'zh-SG' | 'pseudo' | 'pl-PL';
|
|
5
10
|
export declare const coreTranslations: {
|
|
6
11
|
readonly 'de-DE': {
|
|
7
12
|
core: {
|
|
@@ -301,6 +306,11 @@ export declare const coreTranslations: {
|
|
|
301
306
|
clear: string;
|
|
302
307
|
search: string;
|
|
303
308
|
};
|
|
309
|
+
splitViewCard: {
|
|
310
|
+
a11y: {
|
|
311
|
+
close: string;
|
|
312
|
+
};
|
|
313
|
+
};
|
|
304
314
|
tabs: {
|
|
305
315
|
more: string;
|
|
306
316
|
};
|
|
@@ -1026,6 +1036,11 @@ export declare const coreTranslations: {
|
|
|
1026
1036
|
clear: string;
|
|
1027
1037
|
search: string;
|
|
1028
1038
|
};
|
|
1039
|
+
splitViewCard: {
|
|
1040
|
+
a11y: {
|
|
1041
|
+
close: string;
|
|
1042
|
+
};
|
|
1043
|
+
};
|
|
1029
1044
|
tabs: {
|
|
1030
1045
|
more: string;
|
|
1031
1046
|
};
|
|
@@ -1386,6 +1401,11 @@ export declare const coreTranslations: {
|
|
|
1386
1401
|
clear: string;
|
|
1387
1402
|
search: string;
|
|
1388
1403
|
};
|
|
1404
|
+
splitViewCard: {
|
|
1405
|
+
a11y: {
|
|
1406
|
+
close: string;
|
|
1407
|
+
};
|
|
1408
|
+
};
|
|
1389
1409
|
tabs: {
|
|
1390
1410
|
more: string;
|
|
1391
1411
|
};
|
|
@@ -1746,6 +1766,11 @@ export declare const coreTranslations: {
|
|
|
1746
1766
|
clear: string;
|
|
1747
1767
|
search: string;
|
|
1748
1768
|
};
|
|
1769
|
+
splitViewCard: {
|
|
1770
|
+
a11y: {
|
|
1771
|
+
close: string;
|
|
1772
|
+
};
|
|
1773
|
+
};
|
|
1749
1774
|
tabs: {
|
|
1750
1775
|
more: string;
|
|
1751
1776
|
};
|
|
@@ -2106,6 +2131,11 @@ export declare const coreTranslations: {
|
|
|
2106
2131
|
clear: string;
|
|
2107
2132
|
search: string;
|
|
2108
2133
|
};
|
|
2134
|
+
splitViewCard: {
|
|
2135
|
+
a11y: {
|
|
2136
|
+
close: string;
|
|
2137
|
+
};
|
|
2138
|
+
};
|
|
2109
2139
|
tabs: {
|
|
2110
2140
|
more: string;
|
|
2111
2141
|
};
|
|
@@ -2466,6 +2496,11 @@ export declare const coreTranslations: {
|
|
|
2466
2496
|
clear: string;
|
|
2467
2497
|
search: string;
|
|
2468
2498
|
};
|
|
2499
|
+
splitViewCard: {
|
|
2500
|
+
a11y: {
|
|
2501
|
+
close: string;
|
|
2502
|
+
};
|
|
2503
|
+
};
|
|
2469
2504
|
tabs: {
|
|
2470
2505
|
more: string;
|
|
2471
2506
|
};
|
|
@@ -2826,6 +2861,11 @@ export declare const coreTranslations: {
|
|
|
2826
2861
|
clear: string;
|
|
2827
2862
|
search: string;
|
|
2828
2863
|
};
|
|
2864
|
+
splitViewCard: {
|
|
2865
|
+
a11y: {
|
|
2866
|
+
close: string;
|
|
2867
|
+
};
|
|
2868
|
+
};
|
|
2829
2869
|
tabs: {
|
|
2830
2870
|
more: string;
|
|
2831
2871
|
};
|
|
@@ -3186,6 +3226,11 @@ export declare const coreTranslations: {
|
|
|
3186
3226
|
clear: string;
|
|
3187
3227
|
search: string;
|
|
3188
3228
|
};
|
|
3229
|
+
splitViewCard: {
|
|
3230
|
+
a11y: {
|
|
3231
|
+
close: string;
|
|
3232
|
+
};
|
|
3233
|
+
};
|
|
3189
3234
|
tabs: {
|
|
3190
3235
|
more: string;
|
|
3191
3236
|
};
|
|
@@ -3546,6 +3591,11 @@ export declare const coreTranslations: {
|
|
|
3546
3591
|
clear: string;
|
|
3547
3592
|
search: string;
|
|
3548
3593
|
};
|
|
3594
|
+
splitViewCard: {
|
|
3595
|
+
a11y: {
|
|
3596
|
+
close: string;
|
|
3597
|
+
};
|
|
3598
|
+
};
|
|
3549
3599
|
tabs: {
|
|
3550
3600
|
more: string;
|
|
3551
3601
|
};
|
|
@@ -3906,6 +3956,11 @@ export declare const coreTranslations: {
|
|
|
3906
3956
|
clear: string;
|
|
3907
3957
|
search: string;
|
|
3908
3958
|
};
|
|
3959
|
+
splitViewCard: {
|
|
3960
|
+
a11y: {
|
|
3961
|
+
close: string;
|
|
3962
|
+
};
|
|
3963
|
+
};
|
|
3909
3964
|
tabs: {
|
|
3910
3965
|
more: string;
|
|
3911
3966
|
};
|
|
@@ -4266,6 +4321,11 @@ export declare const coreTranslations: {
|
|
|
4266
4321
|
clear: string;
|
|
4267
4322
|
search: string;
|
|
4268
4323
|
};
|
|
4324
|
+
splitViewCard: {
|
|
4325
|
+
a11y: {
|
|
4326
|
+
close: string;
|
|
4327
|
+
};
|
|
4328
|
+
};
|
|
4269
4329
|
tabs: {
|
|
4270
4330
|
more: string;
|
|
4271
4331
|
};
|
|
@@ -4626,6 +4686,11 @@ export declare const coreTranslations: {
|
|
|
4626
4686
|
clear: string;
|
|
4627
4687
|
search: string;
|
|
4628
4688
|
};
|
|
4689
|
+
splitViewCard: {
|
|
4690
|
+
a11y: {
|
|
4691
|
+
close: string;
|
|
4692
|
+
};
|
|
4693
|
+
};
|
|
4629
4694
|
tabs: {
|
|
4630
4695
|
more: string;
|
|
4631
4696
|
};
|
|
@@ -4986,6 +5051,11 @@ export declare const coreTranslations: {
|
|
|
4986
5051
|
clear: string;
|
|
4987
5052
|
search: string;
|
|
4988
5053
|
};
|
|
5054
|
+
splitViewCard: {
|
|
5055
|
+
a11y: {
|
|
5056
|
+
close: string;
|
|
5057
|
+
};
|
|
5058
|
+
};
|
|
4989
5059
|
tabs: {
|
|
4990
5060
|
more: string;
|
|
4991
5061
|
};
|
|
@@ -5346,6 +5416,11 @@ export declare const coreTranslations: {
|
|
|
5346
5416
|
clear: string;
|
|
5347
5417
|
search: string;
|
|
5348
5418
|
};
|
|
5419
|
+
splitViewCard: {
|
|
5420
|
+
a11y: {
|
|
5421
|
+
close: string;
|
|
5422
|
+
};
|
|
5423
|
+
};
|
|
5349
5424
|
tabs: {
|
|
5350
5425
|
more: string;
|
|
5351
5426
|
};
|
|
@@ -5408,6 +5483,9 @@ export declare const coreTranslations: {
|
|
|
5408
5483
|
};
|
|
5409
5484
|
};
|
|
5410
5485
|
};
|
|
5486
|
+
readonly 'pl-PL': {
|
|
5487
|
+
core: {};
|
|
5488
|
+
};
|
|
5411
5489
|
};
|
|
5412
5490
|
export declare function useI18n({ locale: _locale, translations: _translations, }: I18njsConfig): I18njs;
|
|
5413
5491
|
export declare const I18nContext: React.Context<I18njs>;
|
package/dist/_hooks/I18n.js
CHANGED
|
@@ -15,11 +15,19 @@ import frCA from '../_locales/fr-CA.json';
|
|
|
15
15
|
import frFR from '../_locales/fr-FR.json';
|
|
16
16
|
import isIS from '../_locales/is-IS.json';
|
|
17
17
|
import jaJP from '../_locales/ja-JP.json';
|
|
18
|
+
import plPL from '../_locales/pl-PL.json';
|
|
18
19
|
import pseudo from '../_locales/pseudo.json';
|
|
19
20
|
import ptBR from '../_locales/pt-BR.json';
|
|
20
21
|
import thTH from '../_locales/th-TH.json';
|
|
21
22
|
import zhSG from '../_locales/zh-SG.json';
|
|
22
23
|
import { OVERWRITE_LOCALE_MAP } from './getI18nProviderLocale';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated this type will no longer be supported from core-i18n-js,
|
|
27
|
+
* to have a type safe Locale use TmsSupportedLocale or AllLocales from [Globalization toolkit](https://github.com/procore/globalization-toolkit)
|
|
28
|
+
* @deprecatedSince 12.10.0
|
|
29
|
+
*/
|
|
30
|
+
|
|
23
31
|
/* Set up i18n-js */
|
|
24
32
|
export var coreTranslations = {
|
|
25
33
|
'de-DE': deDE,
|
|
@@ -36,7 +44,8 @@ export var coreTranslations = {
|
|
|
36
44
|
pseudo: pseudo,
|
|
37
45
|
'pt-BR': ptBR,
|
|
38
46
|
'th-TH': thTH,
|
|
39
|
-
'zh-SG': zhSG
|
|
47
|
+
'zh-SG': zhSG,
|
|
48
|
+
'pl-PL': plPL
|
|
40
49
|
};
|
|
41
50
|
function getValidLocale(_ref) {
|
|
42
51
|
var locale = _ref.locale,
|
package/dist/_hooks/I18n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"I18n.js","names":["createI18njs","R","React","deDE","enAU","enCA","enGB","en","esES","es","frCA","frFR","isIS","jaJP","pseudo","ptBR","thTH","zhSG","OVERWRITE_LOCALE_MAP","coreTranslations","getValidLocale","_ref","locale","translations","FALLBACK_LOCALE_MAP","getTranslationFallbacks","setTranslationFallbacks","_ref2","I18n","locales","useI18n","_ref3","_locale","_ref3$translations","_translations","mergeDeepLeft","I18nContext","createContext","I18nProvider","_ref4","children","props","_objectWithoutProperties","_excluded","createElement","Provider","value","useI18nContext","ctx","useContext"],"sources":["../../src/_hooks/I18n.tsx"],"sourcesContent":["import type { I18njs, I18njsConfig } from '@procore/core-i18n-js'\nimport { createI18njs } from '@procore/core-i18n-js'\nimport * as R from 'ramda'\nimport React from 'react'\nimport deDE from '../_locales/de-DE.json'\nimport enAU from '../_locales/en-AU.json'\nimport enCA from '../_locales/en-CA.json'\nimport enGB from '../_locales/en-GB.json'\nimport en from '../_locales/en.json'\nimport esES from '../_locales/es-ES.json'\nimport es from '../_locales/es.json'\nimport frCA from '../_locales/fr-CA.json'\nimport frFR from '../_locales/fr-FR.json'\nimport isIS from '../_locales/is-IS.json'\nimport jaJP from '../_locales/ja-JP.json'\nimport pseudo from '../_locales/pseudo.json'\nimport ptBR from '../_locales/pt-BR.json'\nimport thTH from '../_locales/th-TH.json'\nimport zhSG from '../_locales/zh-SG.json'\nimport { OVERWRITE_LOCALE_MAP } from './getI18nProviderLocale'\n\ntype I18nConfig = Omit<I18njsConfig, 'I18n'>\n\ntype RequiredI18nConfig = {\n I18n: I18njs\n locale: string\n}\n\nexport type Locale =\n | 'de-DE'\n | 'en-AE'\n | 'en-AU'\n | 'en-CA'\n | 'en-GB'\n | 'en-SG'\n | 'en'\n | 'es-ES'\n | 'es'\n | 'fr-CA'\n | 'fr-FR'\n | 'is-IS'\n | 'ja-JP'\n | 'pt-BR'\n | 'th-TH'\n | 'zh-SG'\n | 'pseudo'\n\n/* Set up i18n-js */\nexport const coreTranslations = {\n 'de-DE': deDE,\n en,\n 'en-AU': enAU,\n 'en-CA': enCA,\n 'en-GB': enGB,\n es,\n 'es-ES': esES,\n 'fr-CA': frCA,\n 'fr-FR': frFR,\n 'is-IS': isIS,\n 'ja-JP': jaJP,\n pseudo,\n 'pt-BR': ptBR,\n 'th-TH': thTH,\n 'zh-SG': zhSG,\n} as const\n\nfunction getValidLocale({ locale, translations }: I18njsConfig) {\n return locale\n}\n\nconst FALLBACK_LOCALE_MAP: Record<string, string> = {\n 'es-ES': 'es',\n 'fr-FR': 'fr-CA',\n}\n\nfunction getTranslationFallbacks(locale: string) {\n if (locale === 'en') {\n return ['en']\n }\n\n if (OVERWRITE_LOCALE_MAP[locale]) {\n return [OVERWRITE_LOCALE_MAP[locale], 'en']\n }\n\n if (FALLBACK_LOCALE_MAP[locale]) {\n return [locale, FALLBACK_LOCALE_MAP[locale], 'en']\n }\n\n return [locale, 'en']\n}\n\nfunction setTranslationFallbacks({ I18n, locale }: RequiredI18nConfig) {\n I18n.locales[locale] = function () {\n return getTranslationFallbacks(locale)\n }\n\n return I18n\n}\n\nexport function useI18n({\n locale: _locale,\n translations: _translations = {},\n}: I18njsConfig): I18njs {\n const translations = R.mergeDeepLeft(_translations, coreTranslations)\n const locale = getValidLocale({ locale: _locale, translations })\n const I18n = createI18njs({\n locale,\n translations,\n })\n return setTranslationFallbacks({ I18n, locale: locale || 'en' })\n}\n\nexport const I18nContext: React.Context<I18njs> = React.createContext(\n createI18njs({\n locale: 'en',\n translations: coreTranslations, // inject our translations\n })\n)\n\nexport function I18nProvider({\n children,\n ...props\n}: I18nConfig & { children: React.ReactNode }) {\n return (\n <I18nContext.Provider value={useI18n(props)}>\n {children}\n </I18nContext.Provider>\n )\n}\n\nexport function useI18nContext() {\n const ctx = React.useContext(I18nContext)\n\n if (!ctx) {\n // TODO investigate a way to do warnings that won't annoy people\n // we probably need to introduce a build system to have nice dev warnings\n // console.warn()\n }\n\n return ctx\n}\n"],"mappings":";;;AACA,SAASA,YAAY,QAAQ,uBAAuB;AACpD,OAAO,KAAKC,CAAC,MAAM,OAAO;AAC1B,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,EAAE,MAAM,qBAAqB;AACpC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,EAAE,MAAM,qBAAqB;AACpC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,MAAM,MAAM,yBAAyB;AAC5C,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,SAASC,oBAAoB,QAAQ,yBAAyB;
|
|
1
|
+
{"version":3,"file":"I18n.js","names":["createI18njs","R","React","deDE","enAU","enCA","enGB","en","esES","es","frCA","frFR","isIS","jaJP","plPL","pseudo","ptBR","thTH","zhSG","OVERWRITE_LOCALE_MAP","coreTranslations","getValidLocale","_ref","locale","translations","FALLBACK_LOCALE_MAP","getTranslationFallbacks","setTranslationFallbacks","_ref2","I18n","locales","useI18n","_ref3","_locale","_ref3$translations","_translations","mergeDeepLeft","I18nContext","createContext","I18nProvider","_ref4","children","props","_objectWithoutProperties","_excluded","createElement","Provider","value","useI18nContext","ctx","useContext"],"sources":["../../src/_hooks/I18n.tsx"],"sourcesContent":["import type { I18njs, I18njsConfig } from '@procore/core-i18n-js'\nimport { createI18njs } from '@procore/core-i18n-js'\nimport * as R from 'ramda'\nimport React from 'react'\nimport deDE from '../_locales/de-DE.json'\nimport enAU from '../_locales/en-AU.json'\nimport enCA from '../_locales/en-CA.json'\nimport enGB from '../_locales/en-GB.json'\nimport en from '../_locales/en.json'\nimport esES from '../_locales/es-ES.json'\nimport es from '../_locales/es.json'\nimport frCA from '../_locales/fr-CA.json'\nimport frFR from '../_locales/fr-FR.json'\nimport isIS from '../_locales/is-IS.json'\nimport jaJP from '../_locales/ja-JP.json'\nimport plPL from '../_locales/pl-PL.json'\nimport pseudo from '../_locales/pseudo.json'\nimport ptBR from '../_locales/pt-BR.json'\nimport thTH from '../_locales/th-TH.json'\nimport zhSG from '../_locales/zh-SG.json'\nimport { OVERWRITE_LOCALE_MAP } from './getI18nProviderLocale'\n\ntype I18nConfig = Omit<I18njsConfig, 'I18n'>\n\ntype RequiredI18nConfig = {\n I18n: I18njs\n locale: string\n}\n\n/**\n * @deprecated this type will no longer be supported from core-i18n-js,\n * to have a type safe Locale use TmsSupportedLocale or AllLocales from [Globalization toolkit](https://github.com/procore/globalization-toolkit)\n * @deprecatedSince 12.10.0\n */\nexport type Locale =\n | 'de-DE'\n | 'en-AE'\n | 'en-AU'\n | 'en-CA'\n | 'en-GB'\n | 'en-SG'\n | 'en'\n | 'es-ES'\n | 'es'\n | 'fr-CA'\n | 'fr-FR'\n | 'is-IS'\n | 'ja-JP'\n | 'pt-BR'\n | 'th-TH'\n | 'zh-SG'\n | 'pseudo'\n | 'pl-PL'\n\n/* Set up i18n-js */\nexport const coreTranslations = {\n 'de-DE': deDE,\n en,\n 'en-AU': enAU,\n 'en-CA': enCA,\n 'en-GB': enGB,\n es,\n 'es-ES': esES,\n 'fr-CA': frCA,\n 'fr-FR': frFR,\n 'is-IS': isIS,\n 'ja-JP': jaJP,\n pseudo,\n 'pt-BR': ptBR,\n 'th-TH': thTH,\n 'zh-SG': zhSG,\n 'pl-PL': plPL,\n} as const\n\nfunction getValidLocale({ locale, translations }: I18njsConfig) {\n return locale\n}\n\nconst FALLBACK_LOCALE_MAP: Record<string, string> = {\n 'es-ES': 'es',\n 'fr-FR': 'fr-CA',\n}\n\nfunction getTranslationFallbacks(locale: string) {\n if (locale === 'en') {\n return ['en']\n }\n\n if (OVERWRITE_LOCALE_MAP[locale]) {\n return [OVERWRITE_LOCALE_MAP[locale], 'en']\n }\n\n if (FALLBACK_LOCALE_MAP[locale]) {\n return [locale, FALLBACK_LOCALE_MAP[locale], 'en']\n }\n\n return [locale, 'en']\n}\n\nfunction setTranslationFallbacks({ I18n, locale }: RequiredI18nConfig) {\n I18n.locales[locale] = function () {\n return getTranslationFallbacks(locale)\n }\n\n return I18n\n}\n\nexport function useI18n({\n locale: _locale,\n translations: _translations = {},\n}: I18njsConfig): I18njs {\n const translations = R.mergeDeepLeft(_translations, coreTranslations)\n const locale = getValidLocale({ locale: _locale, translations })\n const I18n = createI18njs({\n locale,\n translations,\n })\n return setTranslationFallbacks({ I18n, locale: locale || 'en' })\n}\n\nexport const I18nContext: React.Context<I18njs> = React.createContext(\n createI18njs({\n locale: 'en',\n translations: coreTranslations, // inject our translations\n })\n)\n\nexport function I18nProvider({\n children,\n ...props\n}: I18nConfig & { children: React.ReactNode }) {\n return (\n <I18nContext.Provider value={useI18n(props)}>\n {children}\n </I18nContext.Provider>\n )\n}\n\nexport function useI18nContext() {\n const ctx = React.useContext(I18nContext)\n\n if (!ctx) {\n // TODO investigate a way to do warnings that won't annoy people\n // we probably need to introduce a build system to have nice dev warnings\n // console.warn()\n }\n\n return ctx\n}\n"],"mappings":"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"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { Locale } from './I18n';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated you can use OVERWRITE_LOCALE_MAP from [Globalization toolkit](https://github.com/procore/globalization-toolkit)
|
|
4
|
+
* @deprecatedSince 12.10.0
|
|
5
|
+
*/
|
|
2
6
|
export declare const OVERWRITE_LOCALE_MAP: Record<string, Locale>;
|
|
3
7
|
/**
|
|
8
|
+
* @deprecatedSince 12.10.0
|
|
9
|
+
* @deprecated you can use getOverrideLocale from [Globalization toolkit](https://procore.github.io/globalization-toolkit/#md:getoverridelocale-function)
|
|
4
10
|
* Returns the locale that should be used for the I18nProvider based on the environment locale
|
|
5
11
|
* @param envLocale - the locale from the environment
|
|
6
12
|
* @returns the locale that should be used for the I18nProvider
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
// All and only locales that will receive
|
|
2
|
-
|
|
1
|
+
// All and only locales that will receive Smartling translations and can be directly fed into <I18nProvider>
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated you can use TMS_SUPPORTED_LOCALE from [Globalization toolkit](https://github.com/procore/globalization-toolkit)
|
|
4
|
+
* @deprecatedSince 12.10.0
|
|
5
|
+
*/ // TODO breaking change requiring a new minimum version of the peerDep, replace with GTK imports
|
|
6
|
+
var SUPPORTED_LOCALES = ['de-DE', 'en-AU', 'en-CA', 'en-GB', 'en', 'es-ES', 'es', 'fr-CA', 'fr-FR', 'is-IS', 'ja-JP', 'pl-PL', 'pseudo', 'pt-BR', 'th-TH', 'zh-SG'];
|
|
3
7
|
/*
|
|
4
8
|
all locales that should directly use a different locale. Any other unsupported locale will fallback to 'en'
|
|
5
9
|
this should match https://github.com/procore/procore/blob/d0515461046b8d018c8fa8ede1ca8b7aa2fcacf8/config/application.rb#L234C1-L240C7
|
|
6
10
|
for any locales that are not listed in SUPPORTED_LOCALES
|
|
7
11
|
*/
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated you can use OVERWRITE_LOCALE_MAP from [Globalization toolkit](https://github.com/procore/globalization-toolkit)
|
|
14
|
+
* @deprecatedSince 12.10.0
|
|
15
|
+
*/
|
|
8
16
|
export var OVERWRITE_LOCALE_MAP = {
|
|
9
17
|
'en-AE': 'en-GB',
|
|
10
18
|
'en-SG': 'en-GB',
|
|
@@ -12,6 +20,8 @@ export var OVERWRITE_LOCALE_MAP = {
|
|
|
12
20
|
};
|
|
13
21
|
|
|
14
22
|
/**
|
|
23
|
+
* @deprecatedSince 12.10.0
|
|
24
|
+
* @deprecated you can use getOverrideLocale from [Globalization toolkit](https://procore.github.io/globalization-toolkit/#md:getoverridelocale-function)
|
|
15
25
|
* Returns the locale that should be used for the I18nProvider based on the environment locale
|
|
16
26
|
* @param envLocale - the locale from the environment
|
|
17
27
|
* @returns the locale that should be used for the I18nProvider
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getI18nProviderLocale.js","names":["SUPPORTED_LOCALES","OVERWRITE_LOCALE_MAP","getI18nProviderLocale","envLocale","includes"],"sources":["../../src/_hooks/getI18nProviderLocale.ts"],"sourcesContent":["import type { Locale } from './I18n'\n\n// All and only locales that will receive
|
|
1
|
+
{"version":3,"file":"getI18nProviderLocale.js","names":["SUPPORTED_LOCALES","OVERWRITE_LOCALE_MAP","getI18nProviderLocale","envLocale","includes"],"sources":["../../src/_hooks/getI18nProviderLocale.ts"],"sourcesContent":["import type { Locale } from './I18n'\n\n// All and only locales that will receive Smartling translations and can be directly fed into <I18nProvider>\n/**\n * @deprecated you can use TMS_SUPPORTED_LOCALE from [Globalization toolkit](https://github.com/procore/globalization-toolkit)\n * @deprecatedSince 12.10.0\n */\n// TODO breaking change requiring a new minimum version of the peerDep, replace with GTK imports\nconst SUPPORTED_LOCALES: Locale[] = [\n 'de-DE',\n 'en-AU',\n 'en-CA',\n 'en-GB',\n 'en',\n 'es-ES',\n 'es',\n 'fr-CA',\n 'fr-FR',\n 'is-IS',\n 'ja-JP',\n 'pl-PL',\n 'pseudo',\n 'pt-BR',\n 'th-TH',\n 'zh-SG',\n]\n/*\n all locales that should directly use a different locale. Any other unsupported locale will fallback to 'en'\n this should match https://github.com/procore/procore/blob/d0515461046b8d018c8fa8ede1ca8b7aa2fcacf8/config/application.rb#L234C1-L240C7\n for any locales that are not listed in SUPPORTED_LOCALES\n*/\n/**\n * @deprecated you can use OVERWRITE_LOCALE_MAP from [Globalization toolkit](https://github.com/procore/globalization-toolkit)\n * @deprecatedSince 12.10.0\n */\nexport const OVERWRITE_LOCALE_MAP: Record<string, Locale> = {\n 'en-AE': 'en-GB',\n 'en-SG': 'en-GB',\n 'es-419': 'es',\n} as const\n\n/**\n * @deprecatedSince 12.10.0\n * @deprecated you can use getOverrideLocale from [Globalization toolkit](https://procore.github.io/globalization-toolkit/#md:getoverridelocale-function)\n * Returns the locale that should be used for the I18nProvider based on the environment locale\n * @param envLocale - the locale from the environment\n * @returns the locale that should be used for the I18nProvider\n */\nexport function getI18nProviderLocale(envLocale: string): Locale {\n if (SUPPORTED_LOCALES.includes(envLocale as Locale)) {\n return envLocale as Locale\n }\n if (OVERWRITE_LOCALE_MAP[envLocale]) {\n return OVERWRITE_LOCALE_MAP[envLocale]\n }\n\n return 'en'\n}\n"],"mappings":"AAEA;AACA;AACA;AACA;AACA,GAHA,CAIA;AACA,IAAMA,iBAA2B,GAAG,CAClC,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,OAAO,EACP,OAAO,EACP,OAAO,CACR;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,oBAA4C,GAAG;EAC1D,OAAO,EAAE,OAAO;EAChB,OAAO,EAAE,OAAO;EAChB,QAAQ,EAAE;AACZ,CAAU;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,qBAAqBA,CAACC,SAAiB,EAAU;EAC/D,IAAIH,iBAAiB,CAACI,QAAQ,CAACD,SAAmB,CAAC,EAAE;IACnD,OAAOA,SAAS;EAClB;EACA,IAAIF,oBAAoB,CAACE,SAAS,CAAC,EAAE;IACnC,OAAOF,oBAAoB,CAACE,SAAS,CAAC;EACxC;EAEA,OAAO,IAAI;AACb"}
|
package/dist/_locales/de-DE.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"selectAlbum" : "Album auswählen",
|
|
19
19
|
"selectAnAlbum" : "Album auswählen",
|
|
20
20
|
"selectArea" : "Bereich auswählen",
|
|
21
|
-
"selectAnArea" : "
|
|
21
|
+
"selectAnArea" : "Bereich auswählen",
|
|
22
22
|
"selectDiscipline" : "Gewerk auswählen",
|
|
23
23
|
"selectADiscipline" : "Gewerk auswählen",
|
|
24
24
|
"selectSet" : "Satz auswählen",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"startNewCommunication" : "Um einen neuen Kommunikations-Thread zu diesem Element zu starten, senden Sie eine E-Mail an",
|
|
56
56
|
"emptyStateTitle" : "Senden Sie eine E-Mail, um loszulegen",
|
|
57
57
|
"emptyStateDescription" : "Wenn Sie und Ihr Team E-Mails zu diesem Element senden, können Sie hier darauf verweisen.",
|
|
58
|
-
"reply" : "
|
|
58
|
+
"reply" : "Antworten",
|
|
59
59
|
"cancel" : "Abbrechen",
|
|
60
60
|
"subject" : "Betreff",
|
|
61
61
|
"subjectPlaceholder" : "Betreff hier eingeben"
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"panelTitle" : "Verlinkte Elemente verknüpfen",
|
|
101
101
|
"search" : "Suchen",
|
|
102
102
|
"searchItemType" : "Elementtyp suchen",
|
|
103
|
-
"submit" : "
|
|
103
|
+
"submit" : "Verknüpfen",
|
|
104
104
|
"toast" : {
|
|
105
105
|
"itemAdded" : "Das verknüpfte Element wurde erfolgreich verlinkt.",
|
|
106
106
|
"itemAdditionFailed" : "Leider konnte das Element nicht angehängt werden. Bitte versuchen Sie es erneut.",
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"pagination" : {
|
|
285
285
|
"interval" : "von",
|
|
286
286
|
"notation" : "{{start}}–{{end}} von {{totalItems}}",
|
|
287
|
-
"page" : "Seite",
|
|
287
|
+
"page" : "Seite:",
|
|
288
288
|
"nextPage" : "Nächste Seite",
|
|
289
289
|
"prevPage" : "Vorherige Seite"
|
|
290
290
|
},
|
|
@@ -296,6 +296,11 @@
|
|
|
296
296
|
"clear" : "Feld löschen",
|
|
297
297
|
"search" : "Suchen"
|
|
298
298
|
},
|
|
299
|
+
"splitViewCard" : {
|
|
300
|
+
"a11y" : {
|
|
301
|
+
"close" : "Schließen"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
299
304
|
"tabs" : {
|
|
300
305
|
"more" : "Mehr"
|
|
301
306
|
},
|
package/dist/_locales/en-AU.json
CHANGED
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"pagination" : {
|
|
285
285
|
"interval" : "of",
|
|
286
286
|
"notation" : "{{start}}-{{end}} of {{totalItems}}",
|
|
287
|
-
"page" : "Page",
|
|
287
|
+
"page" : "Page:",
|
|
288
288
|
"nextPage" : "Next page",
|
|
289
289
|
"prevPage" : "Previous page"
|
|
290
290
|
},
|
|
@@ -296,6 +296,11 @@
|
|
|
296
296
|
"clear" : "Delete field",
|
|
297
297
|
"search" : "Search"
|
|
298
298
|
},
|
|
299
|
+
"splitViewCard" : {
|
|
300
|
+
"a11y" : {
|
|
301
|
+
"close" : "Close"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
299
304
|
"tabs" : {
|
|
300
305
|
"more" : "More"
|
|
301
306
|
},
|
package/dist/_locales/en-CA.json
CHANGED
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"pagination" : {
|
|
285
285
|
"interval" : "of",
|
|
286
286
|
"notation" : "{{start}}-{{end}} of {{totalItems}}",
|
|
287
|
-
"page" : "Page",
|
|
287
|
+
"page" : "Page:",
|
|
288
288
|
"nextPage" : "Next page",
|
|
289
289
|
"prevPage" : "Previous page"
|
|
290
290
|
},
|
|
@@ -296,6 +296,11 @@
|
|
|
296
296
|
"clear" : "Delete field",
|
|
297
297
|
"search" : "Search"
|
|
298
298
|
},
|
|
299
|
+
"splitViewCard" : {
|
|
300
|
+
"a11y" : {
|
|
301
|
+
"close" : "Close"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
299
304
|
"tabs" : {
|
|
300
305
|
"more" : "More"
|
|
301
306
|
},
|
package/dist/_locales/en-GB.json
CHANGED
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"pagination" : {
|
|
285
285
|
"interval" : "of",
|
|
286
286
|
"notation" : "{{start}}-{{end}} of {{totalItems}}",
|
|
287
|
-
"page" : "Page",
|
|
287
|
+
"page" : "Page:",
|
|
288
288
|
"nextPage" : "Next page",
|
|
289
289
|
"prevPage" : "Previous page"
|
|
290
290
|
},
|
|
@@ -296,6 +296,11 @@
|
|
|
296
296
|
"clear" : "Delete field",
|
|
297
297
|
"search" : "Search"
|
|
298
298
|
},
|
|
299
|
+
"splitViewCard" : {
|
|
300
|
+
"a11y" : {
|
|
301
|
+
"close" : "Close"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
299
304
|
"tabs" : {
|
|
300
305
|
"more" : "More"
|
|
301
306
|
},
|
package/dist/_locales/en.json
CHANGED
package/dist/_locales/es-ES.json
CHANGED
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"pagination" : {
|
|
285
285
|
"interval" : "de",
|
|
286
286
|
"notation" : "{{start}}-{{end}} de {{totalItems}}",
|
|
287
|
-
"page" : "Página",
|
|
287
|
+
"page" : "Página:",
|
|
288
288
|
"nextPage" : "Página siguiente",
|
|
289
289
|
"prevPage" : "Página anterior"
|
|
290
290
|
},
|
|
@@ -296,6 +296,11 @@
|
|
|
296
296
|
"clear" : "Eliminar campo",
|
|
297
297
|
"search" : "Buscar"
|
|
298
298
|
},
|
|
299
|
+
"splitViewCard" : {
|
|
300
|
+
"a11y" : {
|
|
301
|
+
"close" : "Cerrar"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
299
304
|
"tabs" : {
|
|
300
305
|
"more" : "Más"
|
|
301
306
|
},
|
package/dist/_locales/es.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"forms" : "Formularios",
|
|
17
17
|
"photos" : "Fotos",
|
|
18
18
|
"selectAlbum" : "Seleccionar álbum",
|
|
19
|
-
"selectAnAlbum" : "Seleccionar un
|
|
19
|
+
"selectAnAlbum" : "Seleccionar un álbum",
|
|
20
20
|
"selectArea" : "Seleccionar área",
|
|
21
21
|
"selectAnArea" : "Seleccione un área",
|
|
22
22
|
"selectDiscipline" : "Seleccionar disciplina",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"selectSet" : "Seleccionar juego",
|
|
25
25
|
"selectASet" : "Seleccione un juego",
|
|
26
26
|
"selectTemplate" : "Seleccionar plantilla",
|
|
27
|
-
"selectATemplate" : "Seleccionar una
|
|
27
|
+
"selectATemplate" : "Seleccionar una plantilla"
|
|
28
28
|
},
|
|
29
29
|
"emails" : {
|
|
30
30
|
"emailSendErrorTitle" : "Lo sentimos, no pudimos enviar este mensaje.",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"downloadAll" : "Descargar todo",
|
|
41
41
|
"showAll" : "Mostrar todo",
|
|
42
42
|
"showLess" : "Mostrar menos",
|
|
43
|
-
"composeEmailPageTitle" : "
|
|
43
|
+
"composeEmailPageTitle" : "Escribir nuevo correo electrónico",
|
|
44
44
|
"emailSentMessage" : "El correo electrónico se envió correctamente.",
|
|
45
45
|
"from" : "De",
|
|
46
46
|
"to" : "Para",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"privateLabel" : "Privado",
|
|
53
53
|
"settingsLink" : "Configuraciones",
|
|
54
54
|
"composeNewEmail" : "Escribir correo electrónico",
|
|
55
|
-
"startNewCommunication" : "Para iniciar una comunicación nueva asociada con este ítem,
|
|
55
|
+
"startNewCommunication" : "Para iniciar una comunicación nueva asociada con este ítem, envíe un correo electrónico a",
|
|
56
56
|
"emptyStateTitle" : "Envíe un correo electrónico para comenzar",
|
|
57
57
|
"emptyStateDescription" : "Cuando usted y su equipo envíen correos electrónicos sobre este ítem, puede hacer referencia a ellos aquí.",
|
|
58
58
|
"reply" : "Responder",
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"pagination" : {
|
|
285
285
|
"interval" : "de",
|
|
286
286
|
"notation" : "{{start}}-{{end}} de {{totalItems}}",
|
|
287
|
-
"page" : "Página",
|
|
287
|
+
"page" : "Página:",
|
|
288
288
|
"nextPage" : "Página siguiente",
|
|
289
289
|
"prevPage" : "Página anterior"
|
|
290
290
|
},
|
|
@@ -296,6 +296,11 @@
|
|
|
296
296
|
"clear" : "Eliminar campo",
|
|
297
297
|
"search" : "Buscar"
|
|
298
298
|
},
|
|
299
|
+
"splitViewCard" : {
|
|
300
|
+
"a11y" : {
|
|
301
|
+
"close" : "Cerrar"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
299
304
|
"tabs" : {
|
|
300
305
|
"more" : "Más"
|
|
301
306
|
},
|
|
@@ -346,7 +351,7 @@
|
|
|
346
351
|
"maxNumberOfFilesSelected" : "Número máximo de archivos seleccionados"
|
|
347
352
|
},
|
|
348
353
|
"required" : {
|
|
349
|
-
"requiredFields" : "
|
|
354
|
+
"requiredFields" : "Campos obligatorios"
|
|
350
355
|
},
|
|
351
356
|
"avatarStack" : {
|
|
352
357
|
"viewAll" : "Ver todo",
|
package/dist/_locales/fr-CA.json
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"settingsLink" : "Paramètres",
|
|
54
54
|
"composeNewEmail" : "Rédiger un courriel",
|
|
55
55
|
"startNewCommunication" : "Pour initier un nouveau fil de communication associé à cet item, envoyez un courriel à l'adresse suivante",
|
|
56
|
-
"emptyStateTitle" : "
|
|
56
|
+
"emptyStateTitle" : "Envoyer un courriel pour commencer",
|
|
57
57
|
"emptyStateDescription" : "Lorsque vous et votre équipe envoyez des courriels à propos de cet item, vous pouvez les référencer ici.",
|
|
58
58
|
"reply" : "Répondre",
|
|
59
59
|
"cancel" : "Annuler",
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
},
|
|
78
78
|
"itemName" : "Nom de l'item",
|
|
79
79
|
"loading" : "Chargement",
|
|
80
|
-
"notes" : "
|
|
80
|
+
"notes" : "Notes",
|
|
81
81
|
"notesPlaceholder" : "Explication facultative de la raison pour laquelle cet item est relié",
|
|
82
|
-
"newItem" : "Lier un item
|
|
82
|
+
"newItem" : "Lier un item apparenté",
|
|
83
83
|
"noRelatedItems" : {
|
|
84
84
|
"title" : "Lier des items apparentés pour commencer",
|
|
85
85
|
"description" : "Lier des items à {{itemName}} permet, à vous et à votre équipe, de trouver plus facilement des informations pertinentes dans Procore."
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"description" : "S'il vous plaît, vérifiez votre connexion Internet et réessayez.",
|
|
98
98
|
"action" : "Réessayer"
|
|
99
99
|
},
|
|
100
|
-
"panelTitle" : "Lier un
|
|
100
|
+
"panelTitle" : "Lier un item apparenté",
|
|
101
101
|
"search" : "Rechercher",
|
|
102
102
|
"searchItemType" : "Rechercher le type d'item",
|
|
103
103
|
"submit" : "Lien",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"resetToDefault" : "Réinitialiser les valeurs par défaut",
|
|
138
138
|
"rowHeight" : "Hauteur de la rangée",
|
|
139
139
|
"small" : "Petit",
|
|
140
|
-
"medium" : "
|
|
140
|
+
"medium" : "Moyenne",
|
|
141
141
|
"large" : "Grand",
|
|
142
142
|
"tableSettings" : "Paramètres du tableau"
|
|
143
143
|
}
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"pagination" : {
|
|
285
285
|
"interval" : "sur",
|
|
286
286
|
"notation" : "{{start}} - {{end}} sur {{totalItems}}",
|
|
287
|
-
"page" : "Page",
|
|
287
|
+
"page" : "Page :",
|
|
288
288
|
"nextPage" : "Page suivante",
|
|
289
289
|
"prevPage" : "Page précédente"
|
|
290
290
|
},
|
|
@@ -296,6 +296,11 @@
|
|
|
296
296
|
"clear" : "Supprimer le champ",
|
|
297
297
|
"search" : "Rechercher"
|
|
298
298
|
},
|
|
299
|
+
"splitViewCard" : {
|
|
300
|
+
"a11y" : {
|
|
301
|
+
"close" : "Fermer"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
299
304
|
"tabs" : {
|
|
300
305
|
"more" : "Plus"
|
|
301
306
|
},
|