@chayns-components/core 5.0.0-beta.36 → 5.0.0-beta.360
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/README.md +3 -9
- package/lib/api/image/post.d.ts +16 -0
- package/lib/api/image/post.js +34 -0
- package/lib/api/image/post.js.map +1 -0
- package/lib/api/video/post.d.ts +16 -0
- package/lib/api/video/post.js +31 -0
- package/lib/api/video/post.js.map +1 -0
- package/lib/components/accordion/Accordion.d.ts +24 -3
- package/lib/components/accordion/Accordion.js +38 -33
- package/lib/components/accordion/Accordion.js.map +1 -1
- package/lib/components/accordion/Accordion.styles.d.ts +6 -4
- package/lib/components/accordion/Accordion.styles.js +70 -35
- package/lib/components/accordion/Accordion.styles.js.map +1 -1
- package/lib/components/accordion/accordion-body/AccordionBody.d.ts +21 -2
- package/lib/components/accordion/accordion-body/AccordionBody.js +17 -17
- package/lib/components/accordion/accordion-body/AccordionBody.js.map +1 -1
- package/lib/components/accordion/accordion-body/AccordionBody.styles.d.ts +268 -1
- package/lib/components/accordion/accordion-body/AccordionBody.styles.js +15 -11
- package/lib/components/accordion/accordion-body/AccordionBody.styles.js.map +1 -1
- package/lib/components/accordion/accordion-content/AccordionContent.d.ts +10 -2
- package/lib/components/accordion/accordion-content/AccordionContent.js +7 -10
- package/lib/components/accordion/accordion-content/AccordionContent.js.map +1 -1
- package/lib/components/accordion/accordion-content/AccordionContent.styles.d.ts +7 -4
- package/lib/components/accordion/accordion-content/AccordionContent.styles.js +18 -13
- package/lib/components/accordion/accordion-content/AccordionContent.styles.js.map +1 -1
- package/lib/components/accordion/accordion-group/AccordionGroup.d.ts +4 -3
- package/lib/components/accordion/accordion-group/AccordionGroup.js +6 -14
- package/lib/components/accordion/accordion-group/AccordionGroup.js.map +1 -1
- package/lib/components/accordion/accordion-head/AccordionHead.d.ts +1 -1
- package/lib/components/accordion/accordion-head/AccordionHead.js +6 -19
- package/lib/components/accordion/accordion-head/AccordionHead.js.map +1 -1
- package/lib/components/accordion/accordion-head/AccordionHead.styles.d.ts +2687 -12
- package/lib/components/accordion/accordion-head/AccordionHead.styles.js +104 -45
- package/lib/components/accordion/accordion-head/AccordionHead.styles.js.map +1 -1
- package/lib/components/accordion/accordion-intro/AccordionIntro.d.ts +8 -2
- package/lib/components/accordion/accordion-intro/AccordionIntro.js +1 -7
- package/lib/components/accordion/accordion-intro/AccordionIntro.js.map +1 -1
- package/lib/components/accordion/accordion-intro/AccordionIntro.styles.d.ts +273 -1
- package/lib/components/accordion/accordion-intro/AccordionIntro.styles.js +3 -10
- package/lib/components/accordion/accordion-intro/AccordionIntro.styles.js.map +1 -1
- package/lib/components/accordion/accordion-item/AccordionItem.d.ts +9 -0
- package/lib/components/accordion/accordion-item/AccordionItem.js +27 -0
- package/lib/components/accordion/accordion-item/AccordionItem.js.map +1 -0
- package/lib/components/accordion/accordion-item/AccordionItem.styles.d.ts +7 -0
- package/lib/components/accordion/accordion-item/AccordionItem.styles.js +33 -0
- package/lib/components/accordion/accordion-item/AccordionItem.styles.js.map +1 -0
- package/lib/components/accordion/utils.js +1 -5
- package/lib/components/accordion/utils.js.map +1 -1
- package/lib/components/amount-control/AmountControl.d.ts +22 -0
- package/lib/components/amount-control/AmountControl.js +185 -0
- package/lib/components/amount-control/AmountControl.js.map +1 -0
- package/lib/components/amount-control/AmountControl.styles.d.ts +288 -0
- package/lib/components/amount-control/AmountControl.styles.js +58 -0
- package/lib/components/amount-control/AmountControl.styles.js.map +1 -0
- package/lib/components/amount-control/utils.d.ts +7 -0
- package/lib/components/amount-control/utils.js +22 -0
- package/lib/components/amount-control/utils.js.map +1 -0
- package/lib/components/badge/Badge.d.ts +1 -1
- package/lib/components/badge/Badge.js +1 -8
- package/lib/components/badge/Badge.js.map +1 -1
- package/lib/components/badge/Badge.styles.d.ts +5 -3
- package/lib/components/badge/Badge.styles.js +14 -14
- package/lib/components/badge/Badge.styles.js.map +1 -1
- package/lib/components/button/Button.d.ts +6 -2
- package/lib/components/button/Button.js +55 -14
- package/lib/components/button/Button.js.map +1 -1
- package/lib/components/button/Button.styles.d.ts +808 -4
- package/lib/components/button/Button.styles.js +59 -23
- package/lib/components/button/Button.styles.js.map +1 -1
- package/lib/components/checkbox/Checkbox.d.ts +33 -0
- package/lib/components/checkbox/Checkbox.js +51 -0
- package/lib/components/checkbox/Checkbox.js.map +1 -0
- package/lib/components/checkbox/Checkbox.styles.d.ts +585 -0
- package/lib/components/checkbox/Checkbox.styles.js +140 -0
- package/lib/components/checkbox/Checkbox.styles.js.map +1 -0
- package/lib/components/code-highlighter/CodeHighlighter.d.ts +36 -0
- package/lib/components/code-highlighter/CodeHighlighter.js +82 -0
- package/lib/components/code-highlighter/CodeHighlighter.js.map +1 -0
- package/lib/components/code-highlighter/CodeHighlighter.styles.d.ts +16 -0
- package/lib/components/code-highlighter/CodeHighlighter.styles.js +88 -0
- package/lib/components/code-highlighter/CodeHighlighter.styles.js.map +1 -0
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.d.ts +9 -0
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.js +41 -0
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.js.map +1 -0
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.styles.d.ts +280 -0
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.styles.js +24 -0
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.styles.js.map +1 -0
- package/lib/components/color-scheme-provider/ColorSchemeProvider.d.ts +3 -2
- package/lib/components/color-scheme-provider/ColorSchemeProvider.js +20 -27
- package/lib/components/color-scheme-provider/ColorSchemeProvider.js.map +1 -1
- package/lib/components/color-scheme-provider/font.d.ts +6 -0
- package/lib/components/color-scheme-provider/font.js +59 -0
- package/lib/components/color-scheme-provider/font.js.map +1 -0
- package/lib/components/combobox/ComboBox.d.ts +25 -0
- package/lib/components/combobox/ComboBox.js +143 -0
- package/lib/components/combobox/ComboBox.js.map +1 -0
- package/lib/components/combobox/ComboBox.styles.d.ts +821 -0
- package/lib/components/combobox/ComboBox.styles.js +123 -0
- package/lib/components/combobox/ComboBox.styles.js.map +1 -0
- package/lib/components/combobox/combobox-item/ComboBoxItem.d.ts +18 -0
- package/lib/components/combobox/combobox-item/ComboBoxItem.js +29 -0
- package/lib/components/combobox/combobox-item/ComboBoxItem.js.map +1 -0
- package/lib/components/combobox/combobox-item/ComboBoxItem.styles.d.ts +4 -0
- package/lib/components/combobox/combobox-item/ComboBoxItem.styles.js +27 -0
- package/lib/components/combobox/combobox-item/ComboBoxItem.styles.js.map +1 -0
- package/lib/components/content-card/ContentCard.d.ts +13 -0
- package/lib/components/content-card/ContentCard.js +21 -0
- package/lib/components/content-card/ContentCard.js.map +1 -0
- package/lib/components/content-card/ContentCard.styles.d.ts +273 -0
- package/lib/components/content-card/ContentCard.styles.js +22 -0
- package/lib/components/content-card/ContentCard.styles.js.map +1 -0
- package/lib/components/context-menu/ContextMenu.d.ts +5 -5
- package/lib/components/context-menu/ContextMenu.js +20 -42
- package/lib/components/context-menu/ContextMenu.js.map +1 -1
- package/lib/components/context-menu/ContextMenu.styles.d.ts +273 -1
- package/lib/components/context-menu/ContextMenu.styles.js +3 -10
- package/lib/components/context-menu/ContextMenu.styles.js.map +1 -1
- package/lib/components/context-menu/constants/alignment.js +3 -5
- package/lib/components/context-menu/constants/alignment.js.map +1 -1
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.d.ts +1 -1
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.js +11 -11
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.js.map +1 -1
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.styles.d.ts +813 -8
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.styles.js +80 -39
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.styles.js.map +1 -1
- package/lib/components/date-info/DateInfo.d.ts +40 -0
- package/lib/components/date-info/DateInfo.js +108 -0
- package/lib/components/date-info/DateInfo.js.map +1 -0
- package/lib/components/date-info/utils/format.d.ts +43 -0
- package/lib/components/date-info/utils/format.js +287 -0
- package/lib/components/date-info/utils/format.js.map +1 -0
- package/lib/components/date-info/utils/language.d.ts +1 -0
- package/lib/components/date-info/utils/language.js +35 -0
- package/lib/components/date-info/utils/language.js.map +1 -0
- package/lib/components/file-input/FileInput.d.ts +21 -0
- package/lib/components/file-input/FileInput.js +104 -0
- package/lib/components/file-input/FileInput.js.map +1 -0
- package/lib/components/file-input/FileInput.styles.d.ts +544 -0
- package/lib/components/file-input/FileInput.styles.js +35 -0
- package/lib/components/file-input/FileInput.styles.js.map +1 -0
- package/lib/components/file-input/file-list/FileListItem.d.ts +9 -0
- package/lib/components/file-input/file-list/FileListItem.js +36 -0
- package/lib/components/file-input/file-list/FileListItem.js.map +1 -0
- package/lib/components/file-input/file-list/FileListItem.styles.d.ts +273 -0
- package/lib/components/file-input/file-list/FileListItem.styles.js +10 -0
- package/lib/components/file-input/file-list/FileListItem.styles.js.map +1 -0
- package/lib/components/filter-buttons/FilterButtons.d.ts +22 -0
- package/lib/components/filter-buttons/FilterButtons.js +88 -0
- package/lib/components/filter-buttons/FilterButtons.js.map +1 -0
- package/lib/components/filter-buttons/FilterButtons.styles.d.ts +273 -0
- package/lib/components/filter-buttons/FilterButtons.styles.js +14 -0
- package/lib/components/filter-buttons/FilterButtons.styles.js.map +1 -0
- package/lib/components/filter-buttons/filter-button/FilterButton.d.ts +14 -0
- package/lib/components/filter-buttons/filter-button/FilterButton.js +47 -0
- package/lib/components/filter-buttons/filter-button/FilterButton.js.map +1 -0
- package/lib/components/filter-buttons/filter-button/FilterButton.styles.d.ts +557 -0
- package/lib/components/filter-buttons/filter-button/FilterButton.styles.js +104 -0
- package/lib/components/filter-buttons/filter-button/FilterButton.styles.js.map +1 -0
- package/lib/components/filter-buttons/types.d.ts +15 -0
- package/lib/components/filter-buttons/types.js +17 -0
- package/lib/components/filter-buttons/types.js.map +1 -0
- package/lib/components/grid-image/GridImage.d.ts +1 -1
- package/lib/components/grid-image/GridImage.js +3 -10
- package/lib/components/grid-image/GridImage.js.map +1 -1
- package/lib/components/grid-image/GridImage.styles.d.ts +12 -11
- package/lib/components/grid-image/GridImage.styles.js +52 -32
- package/lib/components/grid-image/GridImage.styles.js.map +1 -1
- package/lib/components/icon/Icon.d.ts +1 -1
- package/lib/components/icon/Icon.js +2 -16
- package/lib/components/icon/Icon.js.map +1 -1
- package/lib/components/icon/Icon.styles.d.ts +7 -7
- package/lib/components/icon/Icon.styles.js +35 -29
- package/lib/components/icon/Icon.styles.js.map +1 -1
- package/lib/components/icon/utils.js +1 -5
- package/lib/components/icon/utils.js.map +1 -1
- package/lib/components/input/Input.d.ts +35 -3
- package/lib/components/input/Input.js +62 -24
- package/lib/components/input/Input.js.map +1 -1
- package/lib/components/input/Input.styles.d.ts +1081 -6
- package/lib/components/input/Input.styles.js +80 -28
- package/lib/components/input/Input.styles.js.map +1 -1
- package/lib/components/list/List.d.ts +1 -1
- package/lib/components/list/List.js +4 -14
- package/lib/components/list/List.js.map +1 -1
- package/lib/components/list/list-item/ListItem.d.ts +1 -1
- package/lib/components/list/list-item/ListItem.js +7 -20
- package/lib/components/list/list-item/ListItem.js.map +1 -1
- package/lib/components/list/list-item/ListItem.styles.d.ts +6 -4
- package/lib/components/list/list-item/ListItem.styles.js +30 -32
- package/lib/components/list/list-item/ListItem.styles.js.map +1 -1
- package/lib/components/list/list-item/list-item-body/ListItemBody.d.ts +6 -2
- package/lib/components/list/list-item/list-item-body/ListItemBody.js +28 -12
- package/lib/components/list/list-item/list-item-body/ListItemBody.js.map +1 -1
- package/lib/components/list/list-item/list-item-body/ListItemBody.styles.d.ts +267 -1
- package/lib/components/list/list-item/list-item-body/ListItemBody.styles.js +3 -10
- package/lib/components/list/list-item/list-item-body/ListItemBody.styles.js.map +1 -1
- package/lib/components/list/list-item/list-item-content/ListItemContent.d.ts +8 -2
- package/lib/components/list/list-item/list-item-content/ListItemContent.js +1 -7
- package/lib/components/list/list-item/list-item-content/ListItemContent.js.map +1 -1
- package/lib/components/list/list-item/list-item-content/ListItemContent.styles.d.ts +273 -1
- package/lib/components/list/list-item/list-item-content/ListItemContent.styles.js +5 -11
- package/lib/components/list/list-item/list-item-content/ListItemContent.styles.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/ListItemHead.d.ts +1 -1
- package/lib/components/list/list-item/list-item-head/ListItemHead.js +4 -17
- package/lib/components/list/list-item/list-item-head/ListItemHead.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/ListItemHead.styles.d.ts +2434 -14
- package/lib/components/list/list-item/list-item-head/ListItemHead.styles.js +75 -55
- package/lib/components/list/list-item/list-item-head/ListItemHead.styles.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.d.ts +1 -1
- package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.js +1 -8
- package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.d.ts +273 -1
- package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.js +14 -12
- package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.d.ts +1 -1
- package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.js +3 -15
- package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.d.ts +8 -7
- package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.js +25 -18
- package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.js.map +1 -1
- package/lib/components/mention-finder/MentionFinder.d.ts +31 -0
- package/lib/components/mention-finder/MentionFinder.js +139 -0
- package/lib/components/mention-finder/MentionFinder.js.map +1 -0
- package/lib/components/mention-finder/MentionFinder.styles.d.ts +540 -0
- package/lib/components/mention-finder/MentionFinder.styles.js +92 -0
- package/lib/components/mention-finder/MentionFinder.styles.js.map +1 -0
- package/lib/components/mention-finder/constants/alignment.d.ts +4 -0
- package/lib/components/mention-finder/constants/alignment.js +12 -0
- package/lib/components/mention-finder/constants/alignment.js.map +1 -0
- package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.d.ts +10 -0
- package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.js +31 -0
- package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.js.map +1 -0
- package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.styles.d.ts +1102 -0
- package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.styles.js +91 -0
- package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.styles.js.map +1 -0
- package/lib/components/number-input/NumberInput.d.ts +46 -0
- package/lib/components/number-input/NumberInput.js +123 -0
- package/lib/components/number-input/NumberInput.js.map +1 -0
- package/lib/components/number-input/constants/number.d.ts +4 -0
- package/lib/components/number-input/constants/number.js +11 -0
- package/lib/components/number-input/constants/number.js.map +1 -0
- package/lib/components/number-input/utils/number.d.ts +21 -0
- package/lib/components/number-input/utils/number.js +64 -0
- package/lib/components/number-input/utils/number.js.map +1 -0
- package/lib/components/popup/Popup.d.ts +26 -0
- package/lib/components/popup/Popup.js +153 -0
- package/lib/components/popup/Popup.js.map +1 -0
- package/lib/components/popup/Popup.styles.d.ts +276 -0
- package/lib/components/popup/Popup.styles.js +25 -0
- package/lib/components/popup/Popup.styles.js.map +1 -0
- package/lib/components/popup/popup-content/PopupContent.d.ts +9 -0
- package/lib/components/popup/popup-content/PopupContent.js +68 -0
- package/lib/components/popup/popup-content/PopupContent.js.map +1 -0
- package/lib/components/popup/popup-content/PopupContent.styles.d.ts +544 -0
- package/lib/components/popup/popup-content/PopupContent.styles.js +94 -0
- package/lib/components/popup/popup-content/PopupContent.styles.js.map +1 -0
- package/lib/components/popup/types.d.ts +16 -0
- package/lib/components/popup/types.js +16 -0
- package/lib/components/popup/types.js.map +1 -0
- package/lib/components/progress-bar/ProgressBar.d.ts +9 -0
- package/lib/components/progress-bar/ProgressBar.js +38 -0
- package/lib/components/progress-bar/ProgressBar.js.map +1 -0
- package/lib/components/progress-bar/ProgressBar.styles.d.ts +541 -0
- package/lib/components/progress-bar/ProgressBar.styles.js +36 -0
- package/lib/components/progress-bar/ProgressBar.styles.js.map +1 -0
- package/lib/components/radio-button/RadioButton.d.ts +26 -0
- package/lib/components/radio-button/RadioButton.js +85 -0
- package/lib/components/radio-button/RadioButton.js.map +1 -0
- package/lib/components/radio-button/RadioButton.styles.d.ts +22 -0
- package/lib/components/radio-button/RadioButton.styles.js +95 -0
- package/lib/components/radio-button/RadioButton.styles.js.map +1 -0
- package/lib/components/radio-button/radio-button-group/RadioButtonGroup.d.ts +17 -0
- package/lib/components/radio-button/radio-button-group/RadioButtonGroup.js +46 -0
- package/lib/components/radio-button/radio-button-group/RadioButtonGroup.js.map +1 -0
- package/lib/components/radio-button/types.d.ts +4 -0
- package/lib/components/radio-button/types.js +2 -0
- package/lib/components/radio-button/types.js.map +1 -0
- package/lib/components/scroll-view/ScrollView.d.ts +13 -0
- package/lib/components/scroll-view/ScrollView.js +22 -0
- package/lib/components/scroll-view/ScrollView.js.map +1 -0
- package/lib/components/scroll-view/ScrollView.styles.d.ts +7 -0
- package/lib/components/scroll-view/ScrollView.styles.js +26 -0
- package/lib/components/scroll-view/ScrollView.styles.js.map +1 -0
- package/lib/components/search-box/SearchBox.d.ts +30 -0
- package/lib/components/search-box/SearchBox.js +179 -0
- package/lib/components/search-box/SearchBox.js.map +1 -0
- package/lib/components/search-box/SearchBox.styles.d.ts +542 -0
- package/lib/components/search-box/SearchBox.styles.js +56 -0
- package/lib/components/search-box/SearchBox.styles.js.map +1 -0
- package/lib/components/search-box/search-box-item/SearchBoxItem.d.ts +9 -0
- package/lib/components/search-box/search-box-item/SearchBoxItem.js +29 -0
- package/lib/components/search-box/search-box-item/SearchBoxItem.js.map +1 -0
- package/lib/components/search-box/search-box-item/SearchBoxItem.styles.d.ts +7 -0
- package/lib/components/search-box/search-box-item/SearchBoxItem.styles.js +28 -0
- package/lib/components/search-box/search-box-item/SearchBoxItem.styles.js.map +1 -0
- package/lib/components/search-box/types.d.ts +4 -0
- package/lib/components/search-box/types.js +2 -0
- package/lib/components/search-box/types.js.map +1 -0
- package/lib/components/search-box/utils.d.ts +7 -0
- package/lib/components/search-box/utils.js +23 -0
- package/lib/components/search-box/utils.js.map +1 -0
- package/lib/components/search-input/SearchInput.d.ts +33 -0
- package/lib/components/search-input/SearchInput.js +102 -0
- package/lib/components/search-input/SearchInput.js.map +1 -0
- package/lib/components/search-input/SearchInput.styles.d.ts +1074 -0
- package/lib/components/search-input/SearchInput.styles.js +26 -0
- package/lib/components/search-input/SearchInput.styles.js.map +1 -0
- package/lib/components/setup-wizard/SetupWizard.d.ts +23 -0
- package/lib/components/setup-wizard/SetupWizard.js +79 -0
- package/lib/components/setup-wizard/SetupWizard.js.map +1 -0
- package/lib/components/setup-wizard/SetupWizard.styles.d.ts +273 -0
- package/lib/components/setup-wizard/SetupWizard.styles.js +10 -0
- package/lib/components/setup-wizard/SetupWizard.styles.js.map +1 -0
- package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.d.ts +25 -0
- package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.js +60 -0
- package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.js.map +1 -0
- package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.styles.d.ts +544 -0
- package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.styles.js +14 -0
- package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.styles.js.map +1 -0
- package/lib/components/sharing-bar/SharingBar.d.ts +18 -0
- package/lib/components/sharing-bar/SharingBar.js +110 -0
- package/lib/components/sharing-bar/SharingBar.js.map +1 -0
- package/lib/components/sharing-bar/SharingBar.styles.d.ts +547 -0
- package/lib/components/sharing-bar/SharingBar.styles.js +24 -0
- package/lib/components/sharing-bar/SharingBar.styles.js.map +1 -0
- package/lib/components/slider/Slider.d.ts +21 -0
- package/lib/components/slider/Slider.js +51 -0
- package/lib/components/slider/Slider.js.map +1 -0
- package/lib/components/slider/Slider.styles.d.ts +281 -0
- package/lib/components/slider/Slider.styles.js +74 -0
- package/lib/components/slider/Slider.styles.js.map +1 -0
- package/lib/components/small-wait-cursor/SmallWaitCursor.d.ts +31 -0
- package/lib/components/small-wait-cursor/SmallWaitCursor.js +42 -0
- package/lib/components/small-wait-cursor/SmallWaitCursor.js.map +1 -0
- package/lib/components/small-wait-cursor/SmallWaitCursor.styles.d.ts +19 -0
- package/lib/components/small-wait-cursor/SmallWaitCursor.styles.js +101 -0
- package/lib/components/small-wait-cursor/SmallWaitCursor.styles.js.map +1 -0
- package/lib/components/text-area/TextArea.d.ts +29 -0
- package/lib/components/text-area/TextArea.js +72 -0
- package/lib/components/text-area/TextArea.js.map +1 -0
- package/lib/components/text-area/TextArea.styles.d.ts +283 -0
- package/lib/components/text-area/TextArea.styles.js +79 -0
- package/lib/components/text-area/TextArea.styles.js.map +1 -0
- package/lib/components/tooltip/Tooltip.d.ts +18 -0
- package/lib/components/tooltip/Tooltip.js +32 -0
- package/lib/components/tooltip/Tooltip.js.map +1 -0
- package/lib/components/tooltip/Tooltip.styles.d.ts +273 -0
- package/lib/components/tooltip/Tooltip.styles.js +10 -0
- package/lib/components/tooltip/Tooltip.styles.js.map +1 -0
- package/lib/components/tooltip/interface.d.ts +4 -0
- package/lib/components/tooltip/interface.js +2 -0
- package/lib/components/tooltip/interface.js.map +1 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.d.ts +7 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.js +20 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.js.map +1 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.styles.d.ts +279 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.styles.js +29 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.styles.js.map +1 -0
- package/lib/components/truncation/Truncation.d.ts +25 -0
- package/lib/components/truncation/Truncation.js +92 -0
- package/lib/components/truncation/Truncation.js.map +1 -0
- package/lib/components/truncation/Truncation.styles.d.ts +1088 -0
- package/lib/components/truncation/Truncation.styles.js +27 -0
- package/lib/components/truncation/Truncation.styles.js.map +1 -0
- package/lib/constants/codeHighlighter.d.ts +7 -0
- package/lib/constants/codeHighlighter.js +13 -0
- package/lib/constants/codeHighlighter.js.map +1 -0
- package/lib/hooks/uuid.js +0 -4
- package/lib/hooks/uuid.js.map +1 -1
- package/lib/index.d.ts +41 -0
- package/lib/index.js +244 -14
- package/lib/index.js.map +1 -1
- package/lib/types/chayns.d.ts +56 -0
- package/lib/types/chayns.js +3 -5
- package/lib/types/chayns.js.map +1 -1
- package/lib/types/codeHighlighter.d.ts +10 -0
- package/lib/types/codeHighlighter.js +12 -0
- package/lib/types/codeHighlighter.js.map +1 -0
- package/lib/types/file.d.ts +42 -0
- package/lib/types/file.js +2 -0
- package/lib/types/file.js.map +1 -0
- package/lib/types/parser/prettier-parser-babel.d.js +2 -0
- package/lib/types/parser/prettier-parser-babel.d.js.map +1 -0
- package/lib/types/parser/prettier-parser-graphql.d.js +2 -0
- package/lib/types/parser/prettier-parser-graphql.d.js.map +1 -0
- package/lib/types/parser/prettier-parser-html.d.js +2 -0
- package/lib/types/parser/prettier-parser-html.d.js.map +1 -0
- package/lib/types/parser/prettier-parser-markdown.d.js +2 -0
- package/lib/types/parser/prettier-parser-markdown.d.js.map +1 -0
- package/lib/types/parser/prettier-parser-postcss.d.js +2 -0
- package/lib/types/parser/prettier-parser-postcss.d.js.map +1 -0
- package/lib/types/parser/prettier-parser-yaml.d.js +2 -0
- package/lib/types/parser/prettier-parser-yaml.d.js.map +1 -0
- package/lib/utils/calculate.d.ts +3 -0
- package/lib/utils/calculate.js +49 -0
- package/lib/utils/calculate.js.map +1 -0
- package/lib/utils/codeHighlighter.d.ts +3 -0
- package/lib/utils/codeHighlighter.js +67 -0
- package/lib/utils/codeHighlighter.js.map +1 -0
- package/lib/utils/file.d.ts +363 -0
- package/lib/utils/file.js +402 -0
- package/lib/utils/file.js.map +1 -0
- package/lib/utils/fileDialog.d.ts +7 -0
- package/lib/utils/fileDialog.js +73 -0
- package/lib/utils/fileDialog.js.map +1 -0
- package/lib/utils/isTobitEmployee.d.ts +1 -0
- package/lib/utils/isTobitEmployee.js +28 -0
- package/lib/utils/isTobitEmployee.js.map +1 -0
- package/lib/utils/uploadFile.d.ts +9 -0
- package/lib/utils/uploadFile.js +47 -0
- package/lib/utils/uploadFile.js.map +1 -0
- package/package.json +29 -21
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getYearFormat = exports.getTimeTillNow = exports.getMonthFormat = exports.getFormattedTime = exports.getFormattedPastTimeString = exports.getFormattedFutureTimeString = exports.getFormattedDayOfWeek = exports.TimeType = void 0;
|
|
7
|
+
var _dateFns = require("date-fns");
|
|
8
|
+
const getYearFormat = _ref => {
|
|
9
|
+
let {
|
|
10
|
+
date,
|
|
11
|
+
shouldShowThisYear
|
|
12
|
+
} = _ref;
|
|
13
|
+
if (shouldShowThisYear) {
|
|
14
|
+
return ' yyyy';
|
|
15
|
+
}
|
|
16
|
+
return (0, _dateFns.isThisYear)(date) ? '' : ' yyyy';
|
|
17
|
+
};
|
|
18
|
+
exports.getYearFormat = getYearFormat;
|
|
19
|
+
const getMonthFormat = _ref2 => {
|
|
20
|
+
let {
|
|
21
|
+
shouldUseShortText
|
|
22
|
+
} = _ref2;
|
|
23
|
+
if (shouldUseShortText) {
|
|
24
|
+
return 'LLL.';
|
|
25
|
+
}
|
|
26
|
+
return 'LLLL';
|
|
27
|
+
};
|
|
28
|
+
exports.getMonthFormat = getMonthFormat;
|
|
29
|
+
const getFormattedDayOfWeek = _ref3 => {
|
|
30
|
+
let {
|
|
31
|
+
shouldShowRelativeDayOfWeek,
|
|
32
|
+
shouldShowDayOfWeek,
|
|
33
|
+
shouldUseShortText,
|
|
34
|
+
date
|
|
35
|
+
} = _ref3;
|
|
36
|
+
if (!shouldShowDayOfWeek && !shouldShowRelativeDayOfWeek) {
|
|
37
|
+
return '';
|
|
38
|
+
}
|
|
39
|
+
if (shouldShowRelativeDayOfWeek) {
|
|
40
|
+
if ((0, _dateFns.isToday)(date)) {
|
|
41
|
+
return 'Heute, ';
|
|
42
|
+
}
|
|
43
|
+
if ((0, _dateFns.isTomorrow)(date)) {
|
|
44
|
+
return 'Morgen, ';
|
|
45
|
+
}
|
|
46
|
+
if ((0, _dateFns.isYesterday)(date)) {
|
|
47
|
+
return 'Gestern, ';
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (shouldUseShortText) {
|
|
51
|
+
return (0, _dateFns.format)(date, 'E., ');
|
|
52
|
+
}
|
|
53
|
+
return (0, _dateFns.format)(date, 'EEEE, ');
|
|
54
|
+
};
|
|
55
|
+
exports.getFormattedDayOfWeek = getFormattedDayOfWeek;
|
|
56
|
+
const getFormattedTime = _ref4 => {
|
|
57
|
+
let {
|
|
58
|
+
shouldShowTime,
|
|
59
|
+
date
|
|
60
|
+
} = _ref4;
|
|
61
|
+
if (!shouldShowTime) {
|
|
62
|
+
return '';
|
|
63
|
+
}
|
|
64
|
+
return `, ${(0, _dateFns.format)(date, 'HH:mm')} Uhr`;
|
|
65
|
+
};
|
|
66
|
+
exports.getFormattedTime = getFormattedTime;
|
|
67
|
+
let TimeType = exports.TimeType = /*#__PURE__*/function (TimeType) {
|
|
68
|
+
TimeType[TimeType["Seconds"] = 0] = "Seconds";
|
|
69
|
+
TimeType[TimeType["Minutes"] = 1] = "Minutes";
|
|
70
|
+
TimeType[TimeType["Hours"] = 2] = "Hours";
|
|
71
|
+
TimeType[TimeType["Days"] = 3] = "Days";
|
|
72
|
+
TimeType[TimeType["Weeks"] = 4] = "Weeks";
|
|
73
|
+
TimeType[TimeType["Months"] = 5] = "Months";
|
|
74
|
+
TimeType[TimeType["Years"] = 6] = "Years";
|
|
75
|
+
return TimeType;
|
|
76
|
+
}({});
|
|
77
|
+
const getTimeTillNow = _ref5 => {
|
|
78
|
+
let {
|
|
79
|
+
date,
|
|
80
|
+
currentDate
|
|
81
|
+
} = _ref5;
|
|
82
|
+
const time = {
|
|
83
|
+
value: 0,
|
|
84
|
+
type: TimeType.Years,
|
|
85
|
+
isPast: false
|
|
86
|
+
};
|
|
87
|
+
if ((0, _dateFns.isPast)(date)) {
|
|
88
|
+
const elapsedMilliseconds = currentDate.getTime() - date.getTime();
|
|
89
|
+
switch (true) {
|
|
90
|
+
case elapsedMilliseconds < 60000:
|
|
91
|
+
time.value = Math.floor(elapsedMilliseconds / 1000);
|
|
92
|
+
time.type = TimeType.Seconds;
|
|
93
|
+
break;
|
|
94
|
+
case elapsedMilliseconds < 3600000:
|
|
95
|
+
time.value = Math.floor(elapsedMilliseconds / 60000);
|
|
96
|
+
time.type = TimeType.Minutes;
|
|
97
|
+
break;
|
|
98
|
+
case elapsedMilliseconds < 86400000:
|
|
99
|
+
time.value = Math.floor(elapsedMilliseconds / 3600000);
|
|
100
|
+
time.type = TimeType.Hours;
|
|
101
|
+
break;
|
|
102
|
+
case elapsedMilliseconds < 604800000:
|
|
103
|
+
time.value = Math.floor(elapsedMilliseconds / 86400000);
|
|
104
|
+
time.type = TimeType.Days;
|
|
105
|
+
break;
|
|
106
|
+
case elapsedMilliseconds < 2592000000:
|
|
107
|
+
time.value = Math.floor(elapsedMilliseconds / 604800000);
|
|
108
|
+
time.type = TimeType.Weeks;
|
|
109
|
+
break;
|
|
110
|
+
case elapsedMilliseconds < 31536000000:
|
|
111
|
+
time.value = Math.floor(elapsedMilliseconds / 2592000000);
|
|
112
|
+
time.type = TimeType.Months;
|
|
113
|
+
break;
|
|
114
|
+
default:
|
|
115
|
+
time.value = Math.floor(elapsedMilliseconds / 31536000000);
|
|
116
|
+
time.type = TimeType.Years;
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
return `${time.value} ${getFormattedPastTimeString(time)}`;
|
|
120
|
+
}
|
|
121
|
+
const remainingMilliseconds = date.getTime() - currentDate.getTime();
|
|
122
|
+
switch (true) {
|
|
123
|
+
case remainingMilliseconds < 60000:
|
|
124
|
+
time.value = Math.floor(remainingMilliseconds / 1000);
|
|
125
|
+
time.type = TimeType.Seconds;
|
|
126
|
+
break;
|
|
127
|
+
case remainingMilliseconds < 3600000:
|
|
128
|
+
time.value = Math.floor(remainingMilliseconds / 60000);
|
|
129
|
+
time.type = TimeType.Minutes;
|
|
130
|
+
break;
|
|
131
|
+
case remainingMilliseconds < 86400000:
|
|
132
|
+
time.value = Math.floor(remainingMilliseconds / 3600000);
|
|
133
|
+
time.type = TimeType.Hours;
|
|
134
|
+
break;
|
|
135
|
+
case remainingMilliseconds < 604800000:
|
|
136
|
+
time.value = Math.floor(remainingMilliseconds / 86400000);
|
|
137
|
+
time.type = TimeType.Days;
|
|
138
|
+
break;
|
|
139
|
+
case remainingMilliseconds < 2592000000:
|
|
140
|
+
time.value = Math.floor(remainingMilliseconds / 604800000);
|
|
141
|
+
time.type = TimeType.Weeks;
|
|
142
|
+
break;
|
|
143
|
+
case remainingMilliseconds < 31536000000:
|
|
144
|
+
time.value = Math.floor(remainingMilliseconds / 2592000000);
|
|
145
|
+
time.type = TimeType.Months;
|
|
146
|
+
break;
|
|
147
|
+
default:
|
|
148
|
+
time.value = Math.floor(remainingMilliseconds / 31536000000);
|
|
149
|
+
time.type = TimeType.Years;
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
return `${time.value} ${getFormattedFutureTimeString(time)}`;
|
|
153
|
+
};
|
|
154
|
+
exports.getTimeTillNow = getTimeTillNow;
|
|
155
|
+
const timeTypeStrings = {
|
|
156
|
+
past: {
|
|
157
|
+
seconds: {
|
|
158
|
+
singular: 'Sekunde',
|
|
159
|
+
plural: 'Sekunden'
|
|
160
|
+
},
|
|
161
|
+
minutes: {
|
|
162
|
+
singular: 'Minute',
|
|
163
|
+
plural: 'Minuten'
|
|
164
|
+
},
|
|
165
|
+
hours: {
|
|
166
|
+
singular: 'Stunde',
|
|
167
|
+
plural: 'Stunden'
|
|
168
|
+
},
|
|
169
|
+
days: {
|
|
170
|
+
singular: 'Tag',
|
|
171
|
+
plural: 'Tagen'
|
|
172
|
+
},
|
|
173
|
+
weeks: {
|
|
174
|
+
singular: 'Woche',
|
|
175
|
+
plural: 'Wochen'
|
|
176
|
+
},
|
|
177
|
+
months: {
|
|
178
|
+
singular: 'Monat',
|
|
179
|
+
plural: 'Monaten'
|
|
180
|
+
},
|
|
181
|
+
years: {
|
|
182
|
+
singular: 'Jahr',
|
|
183
|
+
plural: 'Jahren'
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
future: {
|
|
187
|
+
seconds: {
|
|
188
|
+
singular: 'Sekunde',
|
|
189
|
+
plural: 'Sekunden'
|
|
190
|
+
},
|
|
191
|
+
minutes: {
|
|
192
|
+
singular: 'Minute',
|
|
193
|
+
plural: 'Minuten'
|
|
194
|
+
},
|
|
195
|
+
hours: {
|
|
196
|
+
singular: 'Stunde',
|
|
197
|
+
plural: 'Stunden'
|
|
198
|
+
},
|
|
199
|
+
days: {
|
|
200
|
+
singular: 'Tag',
|
|
201
|
+
plural: 'Tagen'
|
|
202
|
+
},
|
|
203
|
+
weeks: {
|
|
204
|
+
singular: 'Woche',
|
|
205
|
+
plural: 'Wochen'
|
|
206
|
+
},
|
|
207
|
+
months: {
|
|
208
|
+
singular: 'Monat',
|
|
209
|
+
plural: 'Monaten'
|
|
210
|
+
},
|
|
211
|
+
years: {
|
|
212
|
+
singular: 'Jahr',
|
|
213
|
+
plural: 'Jahren'
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
const getFormattedPastTimeString = time => {
|
|
218
|
+
const {
|
|
219
|
+
value,
|
|
220
|
+
type
|
|
221
|
+
} = time;
|
|
222
|
+
const {
|
|
223
|
+
past: {
|
|
224
|
+
seconds,
|
|
225
|
+
days,
|
|
226
|
+
weeks,
|
|
227
|
+
months,
|
|
228
|
+
years,
|
|
229
|
+
minutes,
|
|
230
|
+
hours
|
|
231
|
+
}
|
|
232
|
+
} = timeTypeStrings;
|
|
233
|
+
const isSingular = value === 1;
|
|
234
|
+
switch (true) {
|
|
235
|
+
case type === TimeType.Seconds:
|
|
236
|
+
return isSingular ? seconds.singular : seconds.plural;
|
|
237
|
+
case type === TimeType.Minutes:
|
|
238
|
+
return isSingular ? minutes.singular : minutes.plural;
|
|
239
|
+
case type === TimeType.Hours:
|
|
240
|
+
return isSingular ? hours.singular : hours.plural;
|
|
241
|
+
case type === TimeType.Days:
|
|
242
|
+
return isSingular ? days.singular : days.plural;
|
|
243
|
+
case type === TimeType.Weeks:
|
|
244
|
+
return isSingular ? weeks.singular : weeks.plural;
|
|
245
|
+
case type === TimeType.Months:
|
|
246
|
+
return isSingular ? months.singular : months.plural;
|
|
247
|
+
default:
|
|
248
|
+
return isSingular ? years.singular : years.plural;
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
exports.getFormattedPastTimeString = getFormattedPastTimeString;
|
|
252
|
+
const getFormattedFutureTimeString = time => {
|
|
253
|
+
const {
|
|
254
|
+
value,
|
|
255
|
+
type
|
|
256
|
+
} = time;
|
|
257
|
+
const {
|
|
258
|
+
future: {
|
|
259
|
+
seconds,
|
|
260
|
+
days,
|
|
261
|
+
weeks,
|
|
262
|
+
months,
|
|
263
|
+
years,
|
|
264
|
+
minutes,
|
|
265
|
+
hours
|
|
266
|
+
}
|
|
267
|
+
} = timeTypeStrings;
|
|
268
|
+
const isSingular = value === 1;
|
|
269
|
+
switch (true) {
|
|
270
|
+
case type === TimeType.Seconds:
|
|
271
|
+
return isSingular ? seconds.singular : seconds.plural;
|
|
272
|
+
case type === TimeType.Minutes:
|
|
273
|
+
return isSingular ? minutes.singular : minutes.plural;
|
|
274
|
+
case type === TimeType.Hours:
|
|
275
|
+
return isSingular ? hours.singular : hours.plural;
|
|
276
|
+
case type === TimeType.Days:
|
|
277
|
+
return isSingular ? days.singular : days.plural;
|
|
278
|
+
case type === TimeType.Weeks:
|
|
279
|
+
return isSingular ? weeks.singular : weeks.plural;
|
|
280
|
+
case type === TimeType.Months:
|
|
281
|
+
return isSingular ? months.singular : months.plural;
|
|
282
|
+
default:
|
|
283
|
+
return isSingular ? years.singular : years.plural;
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
exports.getFormattedFutureTimeString = getFormattedFutureTimeString;
|
|
287
|
+
//# sourceMappingURL=format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.js","names":["_dateFns","require","getYearFormat","_ref","date","shouldShowThisYear","isThisYear","exports","getMonthFormat","_ref2","shouldUseShortText","getFormattedDayOfWeek","_ref3","shouldShowRelativeDayOfWeek","shouldShowDayOfWeek","isToday","isTomorrow","isYesterday","format","getFormattedTime","_ref4","shouldShowTime","TimeType","getTimeTillNow","_ref5","currentDate","time","value","type","Years","isPast","elapsedMilliseconds","getTime","Math","floor","Seconds","Minutes","Hours","Days","Weeks","Months","getFormattedPastTimeString","remainingMilliseconds","getFormattedFutureTimeString","timeTypeStrings","past","seconds","singular","plural","minutes","hours","days","weeks","months","years","future","isSingular"],"sources":["../../../../src/components/date-info/utils/format.ts"],"sourcesContent":["import { format, isPast, isThisYear, isToday, isTomorrow, isYesterday } from 'date-fns';\n\ninterface GetFormattedYearOptions {\n date: Date;\n shouldShowThisYear?: boolean;\n}\n\nexport const getYearFormat = ({ date, shouldShowThisYear }: GetFormattedYearOptions) => {\n if (shouldShowThisYear) {\n return ' yyyy';\n }\n\n return isThisYear(date) ? '' : ' yyyy';\n};\n\ninterface GetFormattedMonthOptions {\n shouldUseShortText?: boolean;\n}\n\nexport const getMonthFormat = ({ shouldUseShortText }: GetFormattedMonthOptions) => {\n if (shouldUseShortText) {\n return 'LLL.';\n }\n\n return 'LLLL';\n};\n\ninterface GetFormattedDayOfWeekOptions {\n shouldShowDayOfWeek?: boolean;\n shouldShowRelativeDayOfWeek?: boolean;\n shouldUseShortText?: boolean;\n date: Date;\n}\n\nexport const getFormattedDayOfWeek = ({\n shouldShowRelativeDayOfWeek,\n shouldShowDayOfWeek,\n shouldUseShortText,\n date,\n}: GetFormattedDayOfWeekOptions) => {\n if (!shouldShowDayOfWeek && !shouldShowRelativeDayOfWeek) {\n return '';\n }\n\n if (shouldShowRelativeDayOfWeek) {\n if (isToday(date)) {\n return 'Heute, ';\n }\n\n if (isTomorrow(date)) {\n return 'Morgen, ';\n }\n\n if (isYesterday(date)) {\n return 'Gestern, ';\n }\n }\n\n if (shouldUseShortText) {\n return format(date, 'E., ');\n }\n\n return format(date, 'EEEE, ');\n};\n\ninterface GetFormattedTimeOptions {\n shouldShowTime?: boolean;\n date: Date;\n}\n\nexport const getFormattedTime = ({ shouldShowTime, date }: GetFormattedTimeOptions) => {\n if (!shouldShowTime) {\n return '';\n }\n\n return `, ${format(date, 'HH:mm')} Uhr`;\n};\n\nexport interface Time {\n value: number;\n type: TimeType;\n isPast: boolean;\n}\n\nexport enum TimeType {\n Seconds,\n Minutes,\n Hours,\n Days,\n Weeks,\n Months,\n Years,\n}\n\ninterface GetTimeTillNowOptions {\n date: Date;\n currentDate: Date;\n}\n\nexport const getTimeTillNow = ({ date, currentDate }: GetTimeTillNowOptions): string => {\n const time: Time = {\n value: 0,\n type: TimeType.Years,\n isPast: false,\n };\n\n if (isPast(date)) {\n const elapsedMilliseconds = currentDate.getTime() - date.getTime();\n\n switch (true) {\n case elapsedMilliseconds < 60000:\n time.value = Math.floor(elapsedMilliseconds / 1000);\n time.type = TimeType.Seconds;\n break;\n case elapsedMilliseconds < 3600000:\n time.value = Math.floor(elapsedMilliseconds / 60000);\n time.type = TimeType.Minutes;\n break;\n case elapsedMilliseconds < 86400000:\n time.value = Math.floor(elapsedMilliseconds / 3600000);\n time.type = TimeType.Hours;\n break;\n case elapsedMilliseconds < 604800000:\n time.value = Math.floor(elapsedMilliseconds / 86400000);\n time.type = TimeType.Days;\n break;\n case elapsedMilliseconds < 2592000000:\n time.value = Math.floor(elapsedMilliseconds / 604800000);\n time.type = TimeType.Weeks;\n break;\n case elapsedMilliseconds < 31536000000:\n time.value = Math.floor(elapsedMilliseconds / 2592000000);\n time.type = TimeType.Months;\n break;\n default:\n time.value = Math.floor(elapsedMilliseconds / 31536000000);\n time.type = TimeType.Years;\n break;\n }\n\n return `${time.value} ${getFormattedPastTimeString(time)}`;\n }\n\n const remainingMilliseconds = date.getTime() - currentDate.getTime();\n\n switch (true) {\n case remainingMilliseconds < 60000:\n time.value = Math.floor(remainingMilliseconds / 1000);\n time.type = TimeType.Seconds;\n break;\n case remainingMilliseconds < 3600000:\n time.value = Math.floor(remainingMilliseconds / 60000);\n time.type = TimeType.Minutes;\n break;\n case remainingMilliseconds < 86400000:\n time.value = Math.floor(remainingMilliseconds / 3600000);\n time.type = TimeType.Hours;\n break;\n case remainingMilliseconds < 604800000:\n time.value = Math.floor(remainingMilliseconds / 86400000);\n time.type = TimeType.Days;\n break;\n case remainingMilliseconds < 2592000000:\n time.value = Math.floor(remainingMilliseconds / 604800000);\n time.type = TimeType.Weeks;\n break;\n case remainingMilliseconds < 31536000000:\n time.value = Math.floor(remainingMilliseconds / 2592000000);\n time.type = TimeType.Months;\n break;\n default:\n time.value = Math.floor(remainingMilliseconds / 31536000000);\n time.type = TimeType.Years;\n break;\n }\n\n return `${time.value} ${getFormattedFutureTimeString(time)}`;\n};\n\nconst timeTypeStrings = {\n past: {\n seconds: {\n singular: 'Sekunde',\n plural: 'Sekunden',\n },\n minutes: {\n singular: 'Minute',\n plural: 'Minuten',\n },\n hours: {\n singular: 'Stunde',\n plural: 'Stunden',\n },\n days: {\n singular: 'Tag',\n plural: 'Tagen',\n },\n weeks: {\n singular: 'Woche',\n plural: 'Wochen',\n },\n months: {\n singular: 'Monat',\n plural: 'Monaten',\n },\n years: {\n singular: 'Jahr',\n plural: 'Jahren',\n },\n },\n future: {\n seconds: {\n singular: 'Sekunde',\n plural: 'Sekunden',\n },\n minutes: {\n singular: 'Minute',\n plural: 'Minuten',\n },\n hours: {\n singular: 'Stunde',\n plural: 'Stunden',\n },\n days: {\n singular: 'Tag',\n plural: 'Tagen',\n },\n weeks: {\n singular: 'Woche',\n plural: 'Wochen',\n },\n months: {\n singular: 'Monat',\n plural: 'Monaten',\n },\n years: {\n singular: 'Jahr',\n plural: 'Jahren',\n },\n },\n};\n\nexport const getFormattedPastTimeString = (time: Time): string => {\n const { value, type } = time;\n const {\n past: { seconds, days, weeks, months, years, minutes, hours },\n } = timeTypeStrings;\n const isSingular = value === 1;\n\n switch (true) {\n case type === TimeType.Seconds:\n return isSingular ? seconds.singular : seconds.plural;\n case type === TimeType.Minutes:\n return isSingular ? minutes.singular : minutes.plural;\n case type === TimeType.Hours:\n return isSingular ? hours.singular : hours.plural;\n case type === TimeType.Days:\n return isSingular ? days.singular : days.plural;\n case type === TimeType.Weeks:\n return isSingular ? weeks.singular : weeks.plural;\n case type === TimeType.Months:\n return isSingular ? months.singular : months.plural;\n default:\n return isSingular ? years.singular : years.plural;\n }\n};\n\nexport const getFormattedFutureTimeString = (time: Time): string => {\n const { value, type } = time;\n const {\n future: { seconds, days, weeks, months, years, minutes, hours },\n } = timeTypeStrings;\n const isSingular = value === 1;\n\n switch (true) {\n case type === TimeType.Seconds:\n return isSingular ? seconds.singular : seconds.plural;\n case type === TimeType.Minutes:\n return isSingular ? minutes.singular : minutes.plural;\n case type === TimeType.Hours:\n return isSingular ? hours.singular : hours.plural;\n case type === TimeType.Days:\n return isSingular ? days.singular : days.plural;\n case type === TimeType.Weeks:\n return isSingular ? weeks.singular : weeks.plural;\n case type === TimeType.Months:\n return isSingular ? months.singular : months.plural;\n default:\n return isSingular ? years.singular : years.plural;\n }\n};\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,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AAEL,OAAO;MAAEC;IAAM;EAClE,CAAC,GAAGN,eAAe;EACnB,MAAMY,UAAU,GAAG7B,KAAK,KAAK,CAAC;EAE9B,QAAQ,IAAI;IACR,KAAKC,IAAI,KAAKN,QAAQ,CAACa,OAAO;MAC1B,OAAOqB,UAAU,GAAGV,OAAO,CAACC,QAAQ,GAAGD,OAAO,CAACE,MAAM;IACzD,KAAKpB,IAAI,KAAKN,QAAQ,CAACc,OAAO;MAC1B,OAAOoB,UAAU,GAAGP,OAAO,CAACF,QAAQ,GAAGE,OAAO,CAACD,MAAM;IACzD,KAAKpB,IAAI,KAAKN,QAAQ,CAACe,KAAK;MACxB,OAAOmB,UAAU,GAAGN,KAAK,CAACH,QAAQ,GAAGG,KAAK,CAACF,MAAM;IACrD,KAAKpB,IAAI,KAAKN,QAAQ,CAACgB,IAAI;MACvB,OAAOkB,UAAU,GAAGL,IAAI,CAACJ,QAAQ,GAAGI,IAAI,CAACH,MAAM;IACnD,KAAKpB,IAAI,KAAKN,QAAQ,CAACiB,KAAK;MACxB,OAAOiB,UAAU,GAAGJ,KAAK,CAACL,QAAQ,GAAGK,KAAK,CAACJ,MAAM;IACrD,KAAKpB,IAAI,KAAKN,QAAQ,CAACkB,MAAM;MACzB,OAAOgB,UAAU,GAAGH,MAAM,CAACN,QAAQ,GAAGM,MAAM,CAACL,MAAM;IACvD;MACI,OAAOQ,UAAU,GAAGF,KAAK,CAACP,QAAQ,GAAGO,KAAK,CAACN,MAAM;EACzD;AACJ,CAAC;AAACzC,OAAA,CAAAoC,4BAAA,GAAAA,4BAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getLanguage: () => Locale;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getLanguage = void 0;
|
|
7
|
+
var _chaynsApi = require("chayns-api");
|
|
8
|
+
var _locale = require("date-fns/locale");
|
|
9
|
+
const getLanguage = () => {
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
11
|
+
switch ((0, _chaynsApi.getLanguage)().translation || (0, _chaynsApi.getLanguage)().site) {
|
|
12
|
+
case 'en':
|
|
13
|
+
return _locale.enGB;
|
|
14
|
+
case 'nl':
|
|
15
|
+
return _locale.nl;
|
|
16
|
+
case 'fr':
|
|
17
|
+
return _locale.fr;
|
|
18
|
+
case 'it':
|
|
19
|
+
return _locale.it;
|
|
20
|
+
case 'pl':
|
|
21
|
+
return _locale.pl;
|
|
22
|
+
case 'pt':
|
|
23
|
+
return _locale.pt;
|
|
24
|
+
case 'es':
|
|
25
|
+
return _locale.es;
|
|
26
|
+
case 'tr':
|
|
27
|
+
return _locale.tr;
|
|
28
|
+
case 'uk':
|
|
29
|
+
return _locale.uk;
|
|
30
|
+
default:
|
|
31
|
+
return _locale.de;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.getLanguage = getLanguage;
|
|
35
|
+
//# sourceMappingURL=language.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language.js","names":["_chaynsApi","require","_locale","getLanguage","getChaynsLanguage","translation","site","enGB","nl","fr","it","pl","pt","es","tr","uk","de","exports"],"sources":["../../../../src/components/date-info/utils/language.ts"],"sourcesContent":["import { getLanguage as getChaynsLanguage } from 'chayns-api';\nimport { de, enGB, es, fr, it, nl, pl, pt, tr, uk } from 'date-fns/locale';\n\nexport const getLanguage = (): Locale => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n switch (getChaynsLanguage().translation || getChaynsLanguage().site) {\n case 'en':\n return enGB;\n case 'nl':\n return nl;\n case 'fr':\n return fr;\n case 'it':\n return it;\n case 'pl':\n return pl;\n case 'pt':\n return pt;\n case 'es':\n return es;\n case 'tr':\n return tr;\n case 'uk':\n return uk;\n default:\n return de;\n }\n};\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAEO,MAAME,WAAW,GAAGA,CAAA,KAAc;EACrC;EACA,QAAQ,IAAAC,sBAAiB,EAAC,CAAC,CAACC,WAAW,IAAI,IAAAD,sBAAiB,EAAC,CAAC,CAACE,IAAI;IAC/D,KAAK,IAAI;MACL,OAAOC,YAAI;IACf,KAAK,IAAI;MACL,OAAOC,UAAE;IACb,KAAK,IAAI;MACL,OAAOC,UAAE;IACb,KAAK,IAAI;MACL,OAAOC,UAAE;IACb,KAAK,IAAI;MACL,OAAOC,UAAE;IACb,KAAK,IAAI;MACL,OAAOC,UAAE;IACb,KAAK,IAAI;MACL,OAAOC,UAAE;IACb,KAAK,IAAI;MACL,OAAOC,UAAE;IACb,KAAK,IAAI;MACL,OAAOC,UAAE;IACb;MACI,OAAOC,UAAE;EACjB;AACJ,CAAC;AAACC,OAAA,CAAAd,WAAA,GAAAA,WAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export type FileInputProps = {
|
|
3
|
+
/**
|
|
4
|
+
* An array of icons that should be displayed inside the FileInput
|
|
5
|
+
*/
|
|
6
|
+
icons?: string[];
|
|
7
|
+
/**
|
|
8
|
+
* A function to be executed when files are added.
|
|
9
|
+
*/
|
|
10
|
+
onAdd?: (files: File[]) => void;
|
|
11
|
+
/**
|
|
12
|
+
* A function to be executed when a file is removed.
|
|
13
|
+
*/
|
|
14
|
+
onRemove?: (file: File) => void;
|
|
15
|
+
/**
|
|
16
|
+
* The text that should be displayed inside the FileInput
|
|
17
|
+
*/
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
};
|
|
20
|
+
declare const FileInput: FC<FileInputProps>;
|
|
21
|
+
export default FileInput;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _framerMotion = require("framer-motion");
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _file = require("../../utils/file");
|
|
10
|
+
var _fileDialog = require("../../utils/fileDialog");
|
|
11
|
+
var _Icon = _interopRequireDefault(require("../icon/Icon"));
|
|
12
|
+
var _List = _interopRequireDefault(require("../list/List"));
|
|
13
|
+
var _FileListItem = _interopRequireDefault(require("./file-list/FileListItem"));
|
|
14
|
+
var _FileInput = require("./FileInput.styles");
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
|
+
const FileInput = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
icons = ['fa fa-upload'],
|
|
21
|
+
onRemove,
|
|
22
|
+
onAdd,
|
|
23
|
+
placeholder = 'Dateien hinzufügen'
|
|
24
|
+
} = _ref;
|
|
25
|
+
const [internalFiles, setInternalFiles] = (0, _react.useState)([]);
|
|
26
|
+
const handleAddFiles = (0, _react.useCallback)(files => {
|
|
27
|
+
const newFileItems = [];
|
|
28
|
+
files.forEach(file => {
|
|
29
|
+
if (file && !(0, _file.filterDuplicateFile)({
|
|
30
|
+
files: internalFiles,
|
|
31
|
+
newFile: file
|
|
32
|
+
})) {
|
|
33
|
+
newFileItems.push(file);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
if (newFileItems.length > 0 && typeof onAdd === 'function') {
|
|
37
|
+
onAdd(newFileItems);
|
|
38
|
+
}
|
|
39
|
+
setInternalFiles(prevState => [...prevState, ...newFileItems]);
|
|
40
|
+
}, [internalFiles, onAdd]);
|
|
41
|
+
const handleDeleteFile = (0, _react.useCallback)(fileName => {
|
|
42
|
+
let fileToDelete;
|
|
43
|
+
const filteredFiles = internalFiles.filter(file => {
|
|
44
|
+
const {
|
|
45
|
+
name
|
|
46
|
+
} = file;
|
|
47
|
+
if (name === fileName) {
|
|
48
|
+
fileToDelete = file;
|
|
49
|
+
}
|
|
50
|
+
return name !== fileName;
|
|
51
|
+
});
|
|
52
|
+
setInternalFiles(filteredFiles);
|
|
53
|
+
if (!fileToDelete || typeof onRemove !== 'function') {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
onRemove(fileToDelete);
|
|
57
|
+
}, [internalFiles, onRemove]);
|
|
58
|
+
const handleClick = (0, _react.useCallback)(async () => {
|
|
59
|
+
const files = await (0, _fileDialog.selectFiles)({
|
|
60
|
+
multiple: true
|
|
61
|
+
});
|
|
62
|
+
handleAddFiles(files);
|
|
63
|
+
}, [handleAddFiles]);
|
|
64
|
+
const handleDrop = (0, _react.useCallback)(e => {
|
|
65
|
+
e.preventDefault();
|
|
66
|
+
const draggedFiles = Array.from(e.dataTransfer.files);
|
|
67
|
+
handleAddFiles(draggedFiles);
|
|
68
|
+
}, [handleAddFiles]);
|
|
69
|
+
const content = (0, _react.useMemo)(() => {
|
|
70
|
+
const items = internalFiles.map(file => /*#__PURE__*/_react.default.createElement(_FileInput.StyledMotionFileInputList, {
|
|
71
|
+
animate: {
|
|
72
|
+
height: 'auto',
|
|
73
|
+
opacity: 1
|
|
74
|
+
},
|
|
75
|
+
exit: {
|
|
76
|
+
height: 0,
|
|
77
|
+
opacity: 0
|
|
78
|
+
},
|
|
79
|
+
key: file.name,
|
|
80
|
+
transition: {
|
|
81
|
+
duration: 0.25,
|
|
82
|
+
type: 'tween'
|
|
83
|
+
}
|
|
84
|
+
}, /*#__PURE__*/_react.default.createElement(_FileListItem.default, {
|
|
85
|
+
fileType: file.type,
|
|
86
|
+
fileName: file.name,
|
|
87
|
+
fileSize: file.size,
|
|
88
|
+
onRemove: handleDeleteFile
|
|
89
|
+
})));
|
|
90
|
+
return items;
|
|
91
|
+
}, [handleDeleteFile, internalFiles]);
|
|
92
|
+
return (0, _react.useMemo)(() => /*#__PURE__*/_react.default.createElement(_FileInput.StyledFileInput, null, /*#__PURE__*/_react.default.createElement(_FileInput.StyledFileInputContainer, {
|
|
93
|
+
onClick: () => void handleClick(),
|
|
94
|
+
onDragOver: e => e.preventDefault(),
|
|
95
|
+
onDrop: e => void handleDrop(e)
|
|
96
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
97
|
+
icons: icons
|
|
98
|
+
}), /*#__PURE__*/_react.default.createElement(_FileInput.StyledFileInputText, null, placeholder)), /*#__PURE__*/_react.default.createElement(_List.default, null, /*#__PURE__*/_react.default.createElement(_framerMotion.AnimatePresence, {
|
|
99
|
+
initial: false
|
|
100
|
+
}, content))), [content, handleClick, handleDrop, icons, placeholder]);
|
|
101
|
+
};
|
|
102
|
+
FileInput.displayName = 'FileInput';
|
|
103
|
+
var _default = exports.default = FileInput;
|
|
104
|
+
//# sourceMappingURL=FileInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileInput.js","names":["_framerMotion","require","_react","_interopRequireWildcard","_file","_fileDialog","_Icon","_interopRequireDefault","_List","_FileListItem","_FileInput","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","FileInput","_ref","icons","onRemove","onAdd","placeholder","internalFiles","setInternalFiles","useState","handleAddFiles","useCallback","files","newFileItems","forEach","file","filterDuplicateFile","newFile","push","length","prevState","handleDeleteFile","fileName","fileToDelete","filteredFiles","filter","name","handleClick","selectFiles","multiple","handleDrop","preventDefault","draggedFiles","Array","from","dataTransfer","content","useMemo","items","map","createElement","StyledMotionFileInputList","animate","height","opacity","exit","key","transition","duration","type","fileType","fileSize","size","StyledFileInput","StyledFileInputContainer","onClick","onDragOver","onDrop","StyledFileInputText","AnimatePresence","initial","displayName","_default","exports"],"sources":["../../../src/components/file-input/FileInput.tsx"],"sourcesContent":["import { AnimatePresence } from 'framer-motion';\nimport React, { DragEvent, FC, ReactElement, useCallback, useMemo, useState } from 'react';\nimport { filterDuplicateFile } from '../../utils/file';\nimport { selectFiles } from '../../utils/fileDialog';\nimport Icon from '../icon/Icon';\nimport List from '../list/List';\nimport FileListItem from './file-list/FileListItem';\nimport {\n StyledFileInput,\n StyledFileInputContainer,\n StyledFileInputText,\n StyledMotionFileInputList,\n} from './FileInput.styles';\n\nexport type FileInputProps = {\n /**\n * An array of icons that should be displayed inside the FileInput\n */\n icons?: string[];\n /**\n * A function to be executed when files are added.\n */\n onAdd?: (files: File[]) => void;\n /**\n * A function to be executed when a file is removed.\n */\n onRemove?: (file: File) => void;\n /**\n * The text that should be displayed inside the FileInput\n */\n placeholder?: string;\n};\n\nconst FileInput: FC<FileInputProps> = ({\n icons = ['fa fa-upload'],\n onRemove,\n onAdd,\n placeholder = 'Dateien hinzufügen',\n}) => {\n const [internalFiles, setInternalFiles] = useState<File[]>([]);\n\n const handleAddFiles = useCallback(\n (files: File[]) => {\n const newFileItems: File[] = [];\n\n files.forEach((file) => {\n if (file && !filterDuplicateFile({ files: internalFiles, newFile: file })) {\n newFileItems.push(file);\n }\n });\n\n if (newFileItems.length > 0 && typeof onAdd === 'function') {\n onAdd(newFileItems);\n }\n\n setInternalFiles((prevState) => [...prevState, ...newFileItems]);\n },\n [internalFiles, onAdd],\n );\n\n const handleDeleteFile = useCallback(\n (fileName?: string) => {\n let fileToDelete: File | undefined;\n\n const filteredFiles = internalFiles.filter((file) => {\n const { name } = file;\n\n if (name === fileName) {\n fileToDelete = file;\n }\n\n return name !== fileName;\n });\n\n setInternalFiles(filteredFiles);\n\n if (!fileToDelete || typeof onRemove !== 'function') {\n return;\n }\n\n onRemove(fileToDelete);\n },\n [internalFiles, onRemove],\n );\n\n const handleClick = useCallback(async () => {\n const files = await selectFiles({\n multiple: true,\n });\n\n handleAddFiles(files);\n }, [handleAddFiles]);\n\n const handleDrop = useCallback(\n (e: DragEvent<HTMLDivElement>) => {\n e.preventDefault();\n const draggedFiles = Array.from(e.dataTransfer.files);\n\n handleAddFiles(draggedFiles);\n },\n [handleAddFiles],\n );\n\n const content = useMemo(() => {\n const items: ReactElement[] = internalFiles.map((file) => (\n <StyledMotionFileInputList\n animate={{ height: 'auto', opacity: 1 }}\n exit={{ height: 0, opacity: 0 }}\n key={file.name}\n transition={{ duration: 0.25, type: 'tween' }}\n >\n <FileListItem\n fileType={file.type}\n fileName={file.name}\n fileSize={file.size}\n onRemove={handleDeleteFile}\n />\n </StyledMotionFileInputList>\n ));\n\n return items;\n }, [handleDeleteFile, internalFiles]);\n\n return useMemo(\n () => (\n <StyledFileInput>\n <StyledFileInputContainer\n onClick={() => void handleClick()}\n onDragOver={(e: DragEvent<HTMLDivElement>) => e.preventDefault()}\n onDrop={(e: DragEvent<HTMLDivElement>) => void handleDrop(e)}\n >\n <Icon icons={icons} />\n <StyledFileInputText>{placeholder}</StyledFileInputText>\n </StyledFileInputContainer>\n <List>\n <AnimatePresence initial={false}>{content}</AnimatePresence>\n </List>\n </StyledFileInput>\n ),\n [content, handleClick, handleDrop, icons, placeholder],\n );\n};\n\nFileInput.displayName = 'FileInput';\n\nexport default FileInput;\n"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OA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