@digigov/ui 0.35.1 → 0.35.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -1
- package/admin/AccessibilityMenu/index.d.ts +3 -3
- package/admin/AccessibilityMenu/index.js +23 -23
- package/admin/AutoComplete/Status/index.d.ts +1 -1
- package/admin/AutoComplete/Status/index.js +2 -2
- package/admin/AutoComplete/__stories__/Default.js +2 -2
- package/admin/AutoComplete/__stories__/WithAutoSelect.js +2 -2
- package/admin/AutoComplete/__stories__/WithDefaultValue.js +2 -2
- package/admin/AutoComplete/__stories__/WithInLine.js +2 -2
- package/admin/AutoComplete/__stories__/WithMinLength.js +2 -2
- package/admin/AutoComplete/__stories__/WithPlaceHolder.js +2 -2
- package/admin/AutoComplete/__stories__/WithShowAllValues.js +2 -2
- package/admin/AutoComplete/index.d.ts +2 -3
- package/admin/AutoComplete/index.js +3 -3
- package/admin/CircularProgress/__stories__/Default.js +2 -2
- package/admin/CopyToClipboard/index.js +2 -2
- package/admin/Drawer/__stories__/Default.js +2 -2
- package/admin/Dropdown/__stories__/AlignRight.js +5 -5
- package/admin/Dropdown/__stories__/Default.js +5 -5
- package/admin/Dropdown/__stories__/PlacementTop.js +5 -5
- package/admin/Modal/__stories__/Default.js +2 -2
- package/admin/Pagination/Pagination.stories.d.ts +2 -0
- package/admin/Pagination/Pagination.stories.js +28 -0
- package/admin/Pagination/__stories__/Default.js +13 -71
- package/admin/Pagination/__stories__/PaginationSmall.js +3 -3
- package/admin/Pagination/__stories__/WithInactiveValues.d.ts +2 -0
- package/admin/Pagination/__stories__/WithInactiveValues.js +88 -0
- package/admin/Pagination/__stories__/WithResultsPerPage.d.ts +2 -0
- package/admin/Pagination/__stories__/WithResultsPerPage.js +60 -0
- package/admin/Pagination/index.d.ts +1 -1
- package/admin/Pagination/index.js +5 -5
- package/admin/Pagination/index.mdx +8 -0
- package/admin/StepNav/__stories__/Default.js +4 -4
- package/admin/StepNav/index.d.ts +8 -8
- package/admin/StepNav/index.js +12 -12
- package/admin/TaskList/__stories__/Default.js +2 -2
- package/admin/Timeline/__stories__/Default.js +5 -5
- package/api/index.spec.js +4 -4
- package/api/useResource.js +2 -2
- package/api/useResourceAction.js +2 -2
- package/api/useResourceQuery.js +2 -2
- package/api/utils.d.ts +1 -1
- package/app/BottomInfoContent/index.d.ts +1 -1
- package/app/Footer/__stories__/DefaultCopyright.js +4 -4
- package/app/Footer/__stories__/FooterAllInclusive.js +4 -4
- package/app/Footer/__stories__/FooterWithLink.js +5 -5
- package/app/Footer/__stories__/FooterWithLogo.js +4 -4
- package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +4 -4
- package/app/Footer/__stories__/YearCopyright.js +4 -4
- package/app/Header/__stories__/Default.js +2 -2
- package/app/Header/__stories__/WithHeaderNavigation.js +7 -7
- package/app/Header/__stories__/WithNavigation.js +6 -6
- package/app/Header/__stories__/WithServiceName.js +3 -3
- package/app/Header/__stories__/WithServiceNameAndLogo.js +4 -4
- package/app/OutdatedBrowserBanner.js +5 -5
- package/app/PhaseBannerHeader/index.js +2 -2
- package/app/QrCodeScanner/__stories__/Default.js +2 -2
- package/app/ThemeOptionsForm/index.js +4 -4
- package/app/ThemePaletteForm/index.js +2 -2
- package/core/Accordion/__stories__/Default.js +2 -2
- package/core/Accordion/__stories__/WithHints.js +4 -4
- package/core/Accordion/index.d.ts +2 -2
- package/core/Accordion/index.js +20 -20
- package/core/Card/__stories__/Default.js +2 -2
- package/core/Card/__stories__/WithDarkBorder.js +2 -2
- package/core/Card/__stories__/WithDarkTopBorder.js +2 -2
- package/core/Card/__stories__/WithDivider.js +2 -2
- package/core/Card/__stories__/WithGrayBorder.js +2 -2
- package/core/Card/__stories__/WithGrayTopBorder.js +2 -2
- package/core/Card/__stories__/WithGroupButton.js +2 -2
- package/core/Checkbox/__stories__/ConditionalReveal.js +2 -2
- package/core/Checkbox/__stories__/NoneAnswerWithError.js +3 -3
- package/core/Checkbox/__stories__/WithErrorMessage.js +3 -3
- package/core/DateInputContainer/__stories__/WithErrorMessage.js +4 -4
- package/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +4 -4
- package/core/ErrorMessage/__stories__/Default.js +3 -3
- package/core/ErrorSummary/__stories__/Default.js +2 -2
- package/core/ErrorSummary/__stories__/LinkedToCheckbox.js +7 -7
- package/core/ErrorSummary/__stories__/LinkedToField.js +7 -7
- package/core/ErrorSummary/__stories__/LinkedToInput.js +7 -7
- package/core/FileUpload/__stories__/Default.js +2 -2
- package/core/FileUpload/__stories__/WithErrorMessage.js +4 -4
- package/core/Link/__stories__/DarkBackground.js +2 -2
- package/core/Link/__stories__/DarkBackgroundNoUnderline.js +2 -2
- package/core/List/ListItemTitle.d.ts +1 -1
- package/core/List/ListItemTitle.js +2 -2
- package/core/List/__stories__/Default.js +2 -2
- package/core/Masthead/__stories__/Default.js +4 -4
- package/core/NavList/NavListAuto/NavListAuto.js +2 -2
- package/core/NavList/NavListAuto/NavListContextAuto.d.ts +1 -1
- package/core/NavList/NavListAuto/NavListContextAuto.js +2 -2
- package/core/NavList/NavListAuto/NavListItemAnchorAuto.js +2 -2
- package/core/NavList/NavListAuto/NavListItemButtonAuto.js +3 -3
- package/core/NavList/NavListAuto/NavListMenuAuto.js +3 -3
- package/core/NavList/NavListItemBase.js +4 -4
- package/core/NavList/__stories__/Default.js +2 -2
- package/core/NavList/__stories__/NavVerticalLayout.js +2 -2
- package/core/NavList/types.d.ts +1 -1
- package/core/NotificationBanner/index.d.ts +1 -1
- package/core/NotificationBanner/index.js +2 -2
- package/core/PhaseBanner/__stories__/Default.js +2 -2
- package/core/PhaseBanner/__stories__/Underlined.js +2 -2
- package/core/RadioContainer/__stories__/ConditionalReveal.js +2 -2
- package/core/RadioContainer/__stories__/Default.js +2 -2
- package/core/RadioContainer/__stories__/Inline.js +2 -2
- package/core/RadioContainer/__stories__/MultipleQuestions.js +2 -2
- package/core/RadioContainer/__stories__/NoneAnswer.js +2 -2
- package/core/RadioContainer/__stories__/WithErrorMessage.js +4 -4
- package/core/RadioContainer/__stories__/WithHints.js +2 -2
- package/core/SelectContainer/__stories__/Default.js +2 -2
- package/core/SelectContainer/__stories__/DisabledInput.js +2 -2
- package/core/SelectContainer/__stories__/WithHint.js +2 -2
- package/core/ServiceBadge/index.js +2 -2
- package/core/SingleCharacterInputContainer/__stories__/Default.js +2 -2
- package/core/SingleCharacterInputContainer/__stories__/WithDefaultError.js +4 -4
- package/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.js +4 -4
- package/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.js +4 -4
- package/core/SummaryList/__stories__/Default.js +2 -2
- package/core/SummaryList/__stories__/RowVariations.js +2 -2
- package/core/SummaryList/__stories__/WithActions.js +4 -4
- package/core/SummaryList/__stories__/WithKeyAndAction.js +4 -4
- package/core/Table/__stories__/WithFloatingScroll.js +2 -2
- package/core/Table/__stories__/WithLoader.js +4 -4
- package/core/Table/index.js +2 -2
- package/core/Tabs/__stories__/Default.js +5 -5
- package/core/TextArea/__stories__/DisabledInput.js +2 -2
- package/core/TextArea/__stories__/LimitedCharacters.js +2 -2
- package/core/TextArea/__stories__/MultipleQuestions.js +2 -2
- package/core/TextArea/__stories__/WithDeclaredRows.js +2 -2
- package/core/TextArea/__stories__/WithErrorMessage.js +4 -4
- package/core/TextArea/__stories__/WithHint.js +2 -2
- package/core/TextInput/__stories__/AskingForNumbers.js +2 -2
- package/core/TextInput/__stories__/Default.js +2 -2
- package/core/TextInput/__stories__/DisabledInput.js +2 -2
- package/core/TextInput/__stories__/FixedWidths.js +2 -2
- package/core/TextInput/__stories__/FluidWidths.js +2 -2
- package/core/TextInput/__stories__/MultipleQuestions.js +2 -2
- package/core/TextInput/__stories__/WithErrorMessage.js +3 -3
- package/core/TextInput/__stories__/WithHint.js +2 -2
- package/core/VisuallyHidden/__stories__/Default.js +4 -4
- package/es/admin/AccessibilityMenu/index.js +3 -3
- package/es/admin/AutoComplete/Status/index.js +1 -1
- package/es/admin/AutoComplete/__stories__/Default.js +1 -1
- package/es/admin/AutoComplete/__stories__/WithAutoSelect.js +1 -1
- package/es/admin/AutoComplete/__stories__/WithDefaultValue.js +1 -1
- package/es/admin/AutoComplete/__stories__/WithInLine.js +1 -1
- package/es/admin/AutoComplete/__stories__/WithMinLength.js +1 -1
- package/es/admin/AutoComplete/__stories__/WithPlaceHolder.js +1 -1
- package/es/admin/AutoComplete/__stories__/WithShowAllValues.js +1 -1
- package/es/admin/AutoComplete/index.js +3 -4
- package/es/admin/CircularProgress/__stories__/Default.js +1 -1
- package/es/admin/CopyToClipboard/index.js +1 -1
- package/es/admin/Drawer/__stories__/Default.js +2 -3
- package/es/admin/Dropdown/__stories__/AlignRight.js +4 -5
- package/es/admin/Dropdown/__stories__/Default.js +4 -5
- package/es/admin/Dropdown/__stories__/PlacementTop.js +4 -5
- package/es/admin/Modal/__stories__/Default.js +1 -1
- package/es/admin/Pagination/Pagination.stories.js +2 -0
- package/es/admin/Pagination/__stories__/Default.js +13 -71
- package/es/admin/Pagination/__stories__/PaginationSmall.js +3 -3
- package/es/admin/Pagination/__stories__/WithInactiveValues.js +71 -0
- package/es/admin/Pagination/__stories__/WithResultsPerPage.js +42 -0
- package/es/admin/Pagination/index.js +3 -3
- package/es/admin/Pagination/index.mdx +8 -0
- package/es/admin/StepNav/__stories__/Default.js +3 -3
- package/es/admin/StepNav/index.js +8 -8
- package/es/admin/TaskList/__stories__/Default.js +1 -1
- package/es/admin/Timeline/__stories__/Default.js +3 -3
- package/es/api/index.spec.js +2 -2
- package/es/api/useResource.js +2 -2
- package/es/api/useResourceAction.js +1 -1
- package/es/api/useResourceQuery.js +1 -1
- package/es/app/Footer/__stories__/DefaultCopyright.js +2 -3
- package/es/app/Footer/__stories__/FooterAllInclusive.js +4 -5
- package/es/app/Footer/__stories__/FooterWithLink.js +3 -4
- package/es/app/Footer/__stories__/FooterWithLogo.js +3 -4
- package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +4 -5
- package/es/app/Footer/__stories__/YearCopyright.js +2 -3
- package/es/app/Header/__stories__/Default.js +1 -1
- package/es/app/Header/__stories__/WithHeaderNavigation.js +4 -5
- package/es/app/Header/__stories__/WithNavigation.js +3 -3
- package/es/app/Header/__stories__/WithServiceName.js +2 -2
- package/es/app/Header/__stories__/WithServiceNameAndLogo.js +2 -2
- package/es/app/Header/index.spec.js +1 -1
- package/es/app/OutdatedBrowserBanner.js +3 -3
- package/es/app/PhaseBannerHeader/index.js +1 -1
- package/es/app/QrCodeScanner/__stories__/Default.js +1 -1
- package/es/app/ThemeOptionsForm/index.js +3 -3
- package/es/app/ThemePaletteForm/index.js +1 -1
- package/es/core/Accordion/__stories__/Default.js +1 -1
- package/es/core/Accordion/__stories__/WithHints.js +2 -2
- package/es/core/Accordion/index.js +3 -3
- package/es/core/Card/__stories__/Default.js +1 -1
- package/es/core/Card/__stories__/WithDarkBorder.js +1 -1
- package/es/core/Card/__stories__/WithDarkTopBorder.js +1 -1
- package/es/core/Card/__stories__/WithDivider.js +1 -1
- package/es/core/Card/__stories__/WithGrayBorder.js +1 -1
- package/es/core/Card/__stories__/WithGrayTopBorder.js +1 -1
- package/es/core/Card/__stories__/WithGroupButton.js +1 -1
- package/es/core/Checkbox/__stories__/ConditionalReveal.js +1 -1
- package/es/core/Checkbox/__stories__/NoneAnswerWithError.js +2 -2
- package/es/core/Checkbox/__stories__/WithErrorMessage.js +2 -2
- package/es/core/DateInputContainer/__stories__/WithErrorMessage.js +2 -2
- package/es/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +2 -2
- package/es/core/ErrorMessage/__stories__/Default.js +2 -2
- package/es/core/ErrorSummary/__stories__/Default.js +1 -1
- package/es/core/ErrorSummary/__stories__/LinkedToCheckbox.js +5 -5
- package/es/core/ErrorSummary/__stories__/LinkedToField.js +5 -5
- package/es/core/ErrorSummary/__stories__/LinkedToInput.js +5 -6
- package/es/core/FileUpload/__stories__/Default.js +1 -1
- package/es/core/FileUpload/__stories__/WithErrorMessage.js +3 -3
- package/es/core/Link/__stories__/DarkBackground.js +1 -1
- package/es/core/Link/__stories__/DarkBackgroundNoUnderline.js +1 -1
- package/es/core/List/ListItemTitle.js +1 -1
- package/es/core/List/__stories__/Default.js +1 -1
- package/es/core/Masthead/__stories__/Default.js +2 -2
- package/es/core/NavList/NavListAuto/NavListAuto.js +1 -1
- package/es/core/NavList/NavListAuto/NavListContextAuto.js +1 -1
- package/es/core/NavList/NavListAuto/NavListItemAnchorAuto.js +2 -2
- package/es/core/NavList/NavListAuto/NavListItemButtonAuto.js +2 -2
- package/es/core/NavList/NavListAuto/NavListMenuAuto.js +2 -2
- package/es/core/NavList/NavListItemBase.js +2 -2
- package/es/core/NavList/__stories__/Default.js +1 -1
- package/es/core/NavList/__stories__/NavVerticalLayout.js +1 -1
- package/es/core/NotificationBanner/index.js +1 -1
- package/es/core/PhaseBanner/__stories__/Default.js +1 -1
- package/es/core/PhaseBanner/__stories__/Underlined.js +1 -1
- package/es/core/RadioContainer/__stories__/ConditionalReveal.js +1 -1
- package/es/core/RadioContainer/__stories__/Default.js +1 -1
- package/es/core/RadioContainer/__stories__/Inline.js +1 -1
- package/es/core/RadioContainer/__stories__/MultipleQuestions.js +1 -1
- package/es/core/RadioContainer/__stories__/NoneAnswer.js +1 -1
- package/es/core/RadioContainer/__stories__/WithErrorMessage.js +3 -3
- package/es/core/RadioContainer/__stories__/WithHints.js +1 -1
- package/es/core/SelectContainer/__stories__/Default.js +1 -1
- package/es/core/SelectContainer/__stories__/DisabledInput.js +1 -1
- package/es/core/SelectContainer/__stories__/WithHint.js +1 -1
- package/es/core/ServiceBadge/index.js +1 -1
- package/es/core/SingleCharacterInputContainer/__stories__/Default.js +1 -1
- package/es/core/SingleCharacterInputContainer/__stories__/WithDefaultError.js +3 -3
- package/es/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.js +3 -3
- package/es/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.js +3 -3
- package/es/core/SummaryList/__stories__/Default.js +1 -1
- package/es/core/SummaryList/__stories__/RowVariations.js +1 -1
- package/es/core/SummaryList/__stories__/WithActions.js +2 -2
- package/es/core/SummaryList/__stories__/WithKeyAndAction.js +2 -2
- package/es/core/Table/__stories__/WithFloatingScroll.js +2 -2
- package/es/core/Table/__stories__/WithLoader.js +4 -4
- package/es/core/Table/index.js +1 -1
- package/es/core/Tabs/__stories__/Default.js +3 -3
- package/es/core/TextArea/__stories__/Default.js +1 -2
- package/es/core/TextArea/__stories__/DisabledInput.js +2 -3
- package/es/core/TextArea/__stories__/LimitedCharacters.js +2 -3
- package/es/core/TextArea/__stories__/MultipleQuestions.js +1 -1
- package/es/core/TextArea/__stories__/WithDeclaredRows.js +2 -3
- package/es/core/TextArea/__stories__/WithErrorMessage.js +3 -4
- package/es/core/TextArea/__stories__/WithHint.js +2 -3
- package/es/core/TextInput/__stories__/AskingForNumbers.js +2 -3
- package/es/core/TextInput/__stories__/Default.js +2 -3
- package/es/core/TextInput/__stories__/DisabledInput.js +2 -3
- package/es/core/TextInput/__stories__/FixedWidths.js +2 -3
- package/es/core/TextInput/__stories__/FluidWidths.js +2 -3
- package/es/core/TextInput/__stories__/MultipleQuestions.js +1 -1
- package/es/core/TextInput/__stories__/WithErrorMessage.js +3 -4
- package/es/core/TextInput/__stories__/WithHint.js +2 -3
- package/es/core/VisuallyHidden/__stories__/Default.js +2 -2
- package/es/govgr/Footer/index.js +2 -2
- package/es/hooks/useNavList.js +1 -1
- package/es/hooks/useSort.js +1 -2
- package/es/layouts/Basic/__stories__/MultipleRowsLayout.js +1 -1
- package/es/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +1 -1
- package/es/layouts/Grid/__stories__/Default.js +1 -1
- package/es/layouts/Grid/__stories__/Inline.js +1 -1
- package/es/locales/el.js +1 -1
- package/es/typography/HeadingCaption/__stories__/Default.js +1 -1
- package/es/typography/NormalText/__stories__/FontSizes.js +1 -1
- package/es/typography/NormalText/__stories__/FontWeight.js +1 -1
- package/es/typography/NormalText/__stories__/Variants.js +1 -1
- package/es/utils/Kitchensink/KitchensinkComponent.js +2 -2
- package/es/utils/Kitchensink/KitchensinkDashboard.js +1 -1
- package/esm/admin/AccessibilityMenu/index.js +3 -3
- package/esm/admin/AutoComplete/Status/index.js +1 -1
- package/esm/admin/AutoComplete/__stories__/Default.js +1 -1
- package/esm/admin/AutoComplete/__stories__/WithAutoSelect.js +1 -1
- package/esm/admin/AutoComplete/__stories__/WithDefaultValue.js +1 -1
- package/esm/admin/AutoComplete/__stories__/WithInLine.js +1 -1
- package/esm/admin/AutoComplete/__stories__/WithMinLength.js +1 -1
- package/esm/admin/AutoComplete/__stories__/WithPlaceHolder.js +1 -1
- package/esm/admin/AutoComplete/__stories__/WithShowAllValues.js +1 -1
- package/esm/admin/AutoComplete/index.js +3 -4
- package/esm/admin/CircularProgress/__stories__/Default.js +1 -1
- package/esm/admin/CopyToClipboard/index.js +1 -1
- package/esm/admin/Drawer/__stories__/Default.js +2 -3
- package/esm/admin/Dropdown/__stories__/AlignRight.js +4 -5
- package/esm/admin/Dropdown/__stories__/Default.js +4 -5
- package/esm/admin/Dropdown/__stories__/PlacementTop.js +4 -5
- package/esm/admin/Modal/__stories__/Default.js +1 -1
- package/esm/admin/Pagination/Pagination.stories.js +2 -0
- package/esm/admin/Pagination/__stories__/Default.js +13 -71
- package/esm/admin/Pagination/__stories__/PaginationSmall.js +3 -3
- package/esm/admin/Pagination/__stories__/WithInactiveValues.js +71 -0
- package/esm/admin/Pagination/__stories__/WithResultsPerPage.js +42 -0
- package/esm/admin/Pagination/index.js +3 -3
- package/esm/admin/Pagination/index.mdx +8 -0
- package/esm/admin/StepNav/__stories__/Default.js +3 -3
- package/esm/admin/StepNav/index.js +8 -8
- package/esm/admin/TaskList/__stories__/Default.js +1 -1
- package/esm/admin/Timeline/__stories__/Default.js +3 -3
- package/esm/api/index.spec.js +2 -2
- package/esm/api/useResource.js +2 -2
- package/esm/api/useResourceAction.js +1 -1
- package/esm/api/useResourceQuery.js +1 -1
- package/esm/app/Footer/__stories__/DefaultCopyright.js +2 -3
- package/esm/app/Footer/__stories__/FooterAllInclusive.js +4 -5
- package/esm/app/Footer/__stories__/FooterWithLink.js +3 -4
- package/esm/app/Footer/__stories__/FooterWithLogo.js +3 -4
- package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +4 -5
- package/esm/app/Footer/__stories__/YearCopyright.js +2 -3
- package/esm/app/Header/__stories__/Default.js +1 -1
- package/esm/app/Header/__stories__/WithHeaderNavigation.js +4 -5
- package/esm/app/Header/__stories__/WithNavigation.js +3 -3
- package/esm/app/Header/__stories__/WithServiceName.js +2 -2
- package/esm/app/Header/__stories__/WithServiceNameAndLogo.js +2 -2
- package/esm/app/Header/index.spec.js +1 -1
- package/esm/app/OutdatedBrowserBanner.js +3 -3
- package/esm/app/PhaseBannerHeader/index.js +1 -1
- package/esm/app/QrCodeScanner/__stories__/Default.js +1 -1
- package/esm/app/ThemeOptionsForm/index.js +3 -3
- package/esm/app/ThemePaletteForm/index.js +1 -1
- package/esm/core/Accordion/__stories__/Default.js +1 -1
- package/esm/core/Accordion/__stories__/WithHints.js +2 -2
- package/esm/core/Accordion/index.js +3 -3
- package/esm/core/Card/__stories__/Default.js +1 -1
- package/esm/core/Card/__stories__/WithDarkBorder.js +1 -1
- package/esm/core/Card/__stories__/WithDarkTopBorder.js +1 -1
- package/esm/core/Card/__stories__/WithDivider.js +1 -1
- package/esm/core/Card/__stories__/WithGrayBorder.js +1 -1
- package/esm/core/Card/__stories__/WithGrayTopBorder.js +1 -1
- package/esm/core/Card/__stories__/WithGroupButton.js +1 -1
- package/esm/core/Checkbox/__stories__/ConditionalReveal.js +1 -1
- package/esm/core/Checkbox/__stories__/NoneAnswerWithError.js +2 -2
- package/esm/core/Checkbox/__stories__/WithErrorMessage.js +2 -2
- package/esm/core/DateInputContainer/__stories__/WithErrorMessage.js +2 -2
- package/esm/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +2 -2
- package/esm/core/ErrorMessage/__stories__/Default.js +2 -2
- package/esm/core/ErrorSummary/__stories__/Default.js +1 -1
- package/esm/core/ErrorSummary/__stories__/LinkedToCheckbox.js +5 -5
- package/esm/core/ErrorSummary/__stories__/LinkedToField.js +5 -5
- package/esm/core/ErrorSummary/__stories__/LinkedToInput.js +5 -6
- package/esm/core/FileUpload/__stories__/Default.js +1 -1
- package/esm/core/FileUpload/__stories__/WithErrorMessage.js +3 -3
- package/esm/core/Link/__stories__/DarkBackground.js +1 -1
- package/esm/core/Link/__stories__/DarkBackgroundNoUnderline.js +1 -1
- package/esm/core/List/ListItemTitle.js +1 -1
- package/esm/core/List/__stories__/Default.js +1 -1
- package/esm/core/Masthead/__stories__/Default.js +2 -2
- package/esm/core/NavList/NavListAuto/NavListAuto.js +1 -1
- package/esm/core/NavList/NavListAuto/NavListContextAuto.js +1 -1
- package/esm/core/NavList/NavListAuto/NavListItemAnchorAuto.js +2 -2
- package/esm/core/NavList/NavListAuto/NavListItemButtonAuto.js +2 -2
- package/esm/core/NavList/NavListAuto/NavListMenuAuto.js +2 -2
- package/esm/core/NavList/NavListItemBase.js +2 -2
- package/esm/core/NavList/__stories__/Default.js +1 -1
- package/esm/core/NavList/__stories__/NavVerticalLayout.js +1 -1
- package/esm/core/NotificationBanner/index.js +1 -1
- package/esm/core/PhaseBanner/__stories__/Default.js +1 -1
- package/esm/core/PhaseBanner/__stories__/Underlined.js +1 -1
- package/esm/core/RadioContainer/__stories__/ConditionalReveal.js +1 -1
- package/esm/core/RadioContainer/__stories__/Default.js +1 -1
- package/esm/core/RadioContainer/__stories__/Inline.js +1 -1
- package/esm/core/RadioContainer/__stories__/MultipleQuestions.js +1 -1
- package/esm/core/RadioContainer/__stories__/NoneAnswer.js +1 -1
- package/esm/core/RadioContainer/__stories__/WithErrorMessage.js +3 -3
- package/esm/core/RadioContainer/__stories__/WithHints.js +1 -1
- package/esm/core/SelectContainer/__stories__/Default.js +1 -1
- package/esm/core/SelectContainer/__stories__/DisabledInput.js +1 -1
- package/esm/core/SelectContainer/__stories__/WithHint.js +1 -1
- package/esm/core/ServiceBadge/index.js +1 -1
- package/esm/core/SingleCharacterInputContainer/__stories__/Default.js +1 -1
- package/esm/core/SingleCharacterInputContainer/__stories__/WithDefaultError.js +3 -3
- package/esm/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.js +3 -3
- package/esm/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.js +3 -3
- package/esm/core/SummaryList/__stories__/Default.js +1 -1
- package/esm/core/SummaryList/__stories__/RowVariations.js +1 -1
- package/esm/core/SummaryList/__stories__/WithActions.js +2 -2
- package/esm/core/SummaryList/__stories__/WithKeyAndAction.js +2 -2
- package/esm/core/Table/__stories__/WithFloatingScroll.js +2 -2
- package/esm/core/Table/__stories__/WithLoader.js +4 -4
- package/esm/core/Table/index.js +1 -1
- package/esm/core/Tabs/__stories__/Default.js +3 -3
- package/esm/core/TextArea/__stories__/Default.js +1 -2
- package/esm/core/TextArea/__stories__/DisabledInput.js +2 -3
- package/esm/core/TextArea/__stories__/LimitedCharacters.js +2 -3
- package/esm/core/TextArea/__stories__/MultipleQuestions.js +1 -1
- package/esm/core/TextArea/__stories__/WithDeclaredRows.js +2 -3
- package/esm/core/TextArea/__stories__/WithErrorMessage.js +3 -4
- package/esm/core/TextArea/__stories__/WithHint.js +2 -3
- package/esm/core/TextInput/__stories__/AskingForNumbers.js +2 -3
- package/esm/core/TextInput/__stories__/Default.js +2 -3
- package/esm/core/TextInput/__stories__/DisabledInput.js +2 -3
- package/esm/core/TextInput/__stories__/FixedWidths.js +2 -3
- package/esm/core/TextInput/__stories__/FluidWidths.js +2 -3
- package/esm/core/TextInput/__stories__/MultipleQuestions.js +1 -1
- package/esm/core/TextInput/__stories__/WithErrorMessage.js +3 -4
- package/esm/core/TextInput/__stories__/WithHint.js +2 -3
- package/esm/core/VisuallyHidden/__stories__/Default.js +2 -2
- package/esm/govgr/Footer/index.js +2 -2
- package/esm/hooks/useNavList.js +1 -1
- package/esm/hooks/useSort.js +1 -2
- package/esm/index.js +1 -1
- package/esm/layouts/Basic/__stories__/MultipleRowsLayout.js +1 -1
- package/esm/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +1 -1
- package/esm/layouts/Grid/__stories__/Default.js +1 -1
- package/esm/layouts/Grid/__stories__/Inline.js +1 -1
- package/esm/locales/el.js +1 -1
- package/esm/typography/HeadingCaption/__stories__/Default.js +1 -1
- package/esm/typography/NormalText/__stories__/FontSizes.js +1 -1
- package/esm/typography/NormalText/__stories__/FontWeight.js +1 -1
- package/esm/typography/NormalText/__stories__/Variants.js +1 -1
- package/esm/utils/Kitchensink/KitchensinkComponent.js +2 -2
- package/esm/utils/Kitchensink/KitchensinkDashboard.js +1 -1
- package/govgr/Footer/index.js +4 -4
- package/hooks/useNavList.js +2 -2
- package/layouts/Basic/__stories__/MultipleRowsLayout.js +2 -2
- package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +2 -2
- package/layouts/Grid/__stories__/Default.js +2 -2
- package/layouts/Grid/__stories__/Inline.js +2 -2
- package/locales/el.js +1 -1
- package/package.json +3 -3
- package/src/admin/AccessibilityMenu/index.tsx +6 -6
- package/src/admin/AutoComplete/Status/index.tsx +1 -1
- package/src/admin/AutoComplete/__stories__/Default.tsx +1 -1
- package/src/admin/AutoComplete/__stories__/WithAutoSelect.tsx +1 -1
- package/src/admin/AutoComplete/__stories__/WithDefaultValue.tsx +1 -1
- package/src/admin/AutoComplete/__stories__/WithInLine.tsx +1 -1
- package/src/admin/AutoComplete/__stories__/WithMinLength.tsx +1 -1
- package/src/admin/AutoComplete/__stories__/WithPlaceHolder.tsx +1 -1
- package/src/admin/AutoComplete/__stories__/WithShowAllValues.tsx +1 -1
- package/src/admin/AutoComplete/index.tsx +3 -4
- package/src/admin/CircularProgress/__stories__/Default.tsx +1 -1
- package/src/admin/CopyToClipboard/index.tsx +1 -1
- package/src/admin/Drawer/__stories__/Default.tsx +2 -3
- package/src/admin/Dropdown/__stories__/AlignRight.tsx +4 -5
- package/src/admin/Dropdown/__stories__/Default.tsx +4 -5
- package/src/admin/Dropdown/__stories__/PlacementTop.tsx +4 -5
- package/src/admin/Modal/__stories__/Default.tsx +1 -1
- package/src/admin/Pagination/Pagination.stories.js +2 -0
- package/src/admin/Pagination/__stories__/Default.tsx +11 -87
- package/src/admin/Pagination/__stories__/PaginationSmall.tsx +3 -3
- package/src/admin/Pagination/__stories__/WithInactiveValues.tsx +90 -0
- package/src/admin/Pagination/__stories__/WithResultsPerPage.tsx +66 -0
- package/src/admin/Pagination/index.mdx +8 -0
- package/src/admin/Pagination/index.tsx +3 -3
- package/src/admin/StepNav/__stories__/Default.tsx +3 -3
- package/src/admin/StepNav/index.tsx +8 -8
- package/src/admin/TaskList/__stories__/Default.tsx +8 -8
- package/src/admin/Timeline/__stories__/Default.tsx +6 -6
- package/src/api/index.spec.tsx +2 -2
- package/src/api/useResource.tsx +2 -2
- package/src/api/useResourceAction.tsx +2 -2
- package/src/api/useResourceQuery.tsx +1 -1
- package/src/api/utils.tsx +1 -1
- package/src/app/Footer/__stories__/DefaultCopyright.tsx +6 -6
- package/src/app/Footer/__stories__/FooterAllInclusive.tsx +6 -5
- package/src/app/Footer/__stories__/FooterWithLink.tsx +6 -6
- package/src/app/Footer/__stories__/FooterWithLogo.tsx +6 -5
- package/src/app/Footer/__stories__/FooterWithSecondaryNavigation.tsx +6 -5
- package/src/app/Footer/__stories__/YearCopyright.tsx +6 -6
- package/src/app/Header/__stories__/Default.tsx +1 -1
- package/src/app/Header/__stories__/WithHeaderNavigation.tsx +4 -5
- package/src/app/Header/__stories__/WithNavigation.tsx +3 -3
- package/src/app/Header/__stories__/WithServiceName.tsx +2 -2
- package/src/app/Header/__stories__/WithServiceNameAndLogo.tsx +2 -2
- package/src/app/Header/index.spec.tsx +1 -1
- package/src/app/OutdatedBrowserBanner.tsx +3 -3
- package/src/app/PhaseBannerHeader/index.tsx +1 -1
- package/src/app/QrCodeScanner/__stories__/Default.tsx +1 -1
- package/src/app/QrCodeViewer/index.tsx +1 -1
- package/src/app/ThemeOptionsForm/index.tsx +7 -7
- package/src/app/ThemePaletteForm/index.tsx +1 -1
- package/src/core/Accordion/__stories__/Default.tsx +1 -1
- package/src/core/Accordion/__stories__/WithHints.tsx +2 -2
- package/src/core/Accordion/index.tsx +3 -3
- package/src/core/Card/__stories__/Default.tsx +2 -2
- package/src/core/Card/__stories__/WithDarkBorder.tsx +2 -2
- package/src/core/Card/__stories__/WithDarkTopBorder.tsx +2 -2
- package/src/core/Card/__stories__/WithDivider.tsx +2 -2
- package/src/core/Card/__stories__/WithGrayBorder.tsx +2 -2
- package/src/core/Card/__stories__/WithGrayTopBorder.tsx +2 -2
- package/src/core/Card/__stories__/WithGroupButton.tsx +2 -2
- package/src/core/Checkbox/__stories__/ConditionalReveal.tsx +2 -2
- package/src/core/Checkbox/__stories__/NoneAnswerWithError.tsx +3 -3
- package/src/core/Checkbox/__stories__/WithErrorMessage.tsx +3 -3
- package/src/core/DateInputContainer/__stories__/WithErrorMessage.tsx +3 -3
- package/src/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.tsx +3 -3
- package/src/core/ErrorMessage/__stories__/Default.tsx +3 -3
- package/src/core/ErrorSummary/__stories__/Default.tsx +1 -1
- package/src/core/ErrorSummary/__stories__/LinkedToCheckbox.tsx +7 -7
- package/src/core/ErrorSummary/__stories__/LinkedToField.tsx +8 -8
- package/src/core/ErrorSummary/__stories__/LinkedToInput.tsx +5 -6
- package/src/core/FileUpload/__stories__/Default.tsx +1 -1
- package/src/core/FileUpload/__stories__/WithErrorMessage.tsx +4 -4
- package/src/core/Link/__stories__/DarkBackground.tsx +1 -1
- package/src/core/Link/__stories__/DarkBackgroundNoUnderline.tsx +1 -1
- package/src/core/List/ListItemTitle.tsx +1 -1
- package/src/core/List/__stories__/Default.tsx +1 -1
- package/src/core/Masthead/__stories__/Default.tsx +3 -3
- package/src/core/NavList/NavListAuto/NavListAuto.tsx +1 -1
- package/src/core/NavList/NavListAuto/NavListBaseAuto.tsx +1 -1
- package/src/core/NavList/NavListAuto/NavListContextAuto.tsx +2 -2
- package/src/core/NavList/NavListAuto/NavListItemAnchorAuto.tsx +2 -2
- package/src/core/NavList/NavListAuto/NavListItemButtonAuto.tsx +2 -2
- package/src/core/NavList/NavListAuto/NavListMenuAuto.tsx +3 -3
- package/src/core/NavList/NavListItemBase.tsx +5 -5
- package/src/core/NavList/__stories__/Default.tsx +1 -1
- package/src/core/NavList/__stories__/NavVerticalLayout.tsx +1 -1
- package/src/core/NavList/types.tsx +1 -1
- package/src/core/NotificationBanner/index.tsx +1 -1
- package/src/core/PhaseBanner/__stories__/Default.tsx +2 -2
- package/src/core/PhaseBanner/__stories__/Underlined.tsx +2 -2
- package/src/core/RadioContainer/__stories__/ConditionalReveal.tsx +6 -6
- package/src/core/RadioContainer/__stories__/Default.tsx +2 -2
- package/src/core/RadioContainer/__stories__/Inline.tsx +2 -2
- package/src/core/RadioContainer/__stories__/MultipleQuestions.tsx +2 -2
- package/src/core/RadioContainer/__stories__/NoneAnswer.tsx +2 -2
- package/src/core/RadioContainer/__stories__/WithErrorMessage.tsx +3 -3
- package/src/core/RadioContainer/__stories__/WithHints.tsx +2 -2
- package/src/core/SelectContainer/__stories__/Default.tsx +3 -3
- package/src/core/SelectContainer/__stories__/DisabledInput.tsx +3 -3
- package/src/core/SelectContainer/__stories__/WithHint.tsx +3 -3
- package/src/core/ServiceBadge/index.tsx +1 -1
- package/src/core/SingleCharacterInputContainer/__stories__/Default.tsx +5 -5
- package/src/core/SingleCharacterInputContainer/__stories__/WithDefaultError.tsx +6 -6
- package/src/core/SingleCharacterInputContainer/__stories__/WithErrorMessageInvalidCode.tsx +6 -6
- package/src/core/SingleCharacterInputContainer/__stories__/WithErrorMessageLessDigit.tsx +6 -6
- package/src/core/SummaryList/__stories__/Default.tsx +2 -2
- package/src/core/SummaryList/__stories__/RowVariations.tsx +2 -2
- package/src/core/SummaryList/__stories__/WithActions.tsx +3 -3
- package/src/core/SummaryList/__stories__/WithKeyAndAction.tsx +3 -3
- package/src/core/Table/__stories__/WithFloatingScroll.tsx +9 -9
- package/src/core/Table/__stories__/WithLoader.tsx +6 -6
- package/src/core/Table/index.tsx +1 -1
- package/src/core/Tabs/__stories__/Default.tsx +10 -10
- package/src/core/TextArea/__stories__/Default.tsx +1 -2
- package/src/core/TextArea/__stories__/DisabledInput.tsx +2 -3
- package/src/core/TextArea/__stories__/LimitedCharacters.tsx +2 -3
- package/src/core/TextArea/__stories__/MultipleQuestions.tsx +1 -1
- package/src/core/TextArea/__stories__/WithDeclaredRows.tsx +2 -3
- package/src/core/TextArea/__stories__/WithErrorMessage.tsx +3 -4
- package/src/core/TextArea/__stories__/WithHint.tsx +2 -3
- package/src/core/TextInput/__stories__/AskingForNumbers.tsx +2 -3
- package/src/core/TextInput/__stories__/Default.tsx +2 -3
- package/src/core/TextInput/__stories__/DisabledInput.tsx +2 -3
- package/src/core/TextInput/__stories__/FixedWidths.tsx +2 -3
- package/src/core/TextInput/__stories__/FluidWidths.tsx +2 -3
- package/src/core/TextInput/__stories__/MultipleQuestions.tsx +1 -1
- package/src/core/TextInput/__stories__/WithErrorMessage.tsx +3 -4
- package/src/core/TextInput/__stories__/WithHint.tsx +2 -3
- package/src/core/VisuallyHidden/__stories__/Default.tsx +4 -4
- package/src/govgr/Footer/index.tsx +2 -2
- package/src/hooks/useNavList.ts +1 -1
- package/src/hooks/useSort.tsx +1 -2
- package/src/layouts/Basic/__stories__/MultipleRowsLayout.tsx +1 -1
- package/src/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.tsx +1 -1
- package/src/layouts/Grid/__stories__/Default.tsx +1 -1
- package/src/layouts/Grid/__stories__/Inline.tsx +1 -1
- package/src/locales/el.ts +1 -1
- package/src/typography/HeadingCaption/__stories__/Default.tsx +1 -1
- package/src/typography/NormalText/__stories__/FontSizes.tsx +1 -1
- package/src/typography/NormalText/__stories__/FontWeight.tsx +1 -1
- package/src/typography/NormalText/__stories__/Variants.tsx +1 -1
- package/src/utils/Kitchensink/KitchensinkComponent.tsx +2 -2
- package/src/utils/Kitchensink/KitchensinkDashboard.tsx +1 -1
- package/typography/HeadingCaption/__stories__/Default.js +2 -2
- package/typography/NormalText/__stories__/FontSizes.js +2 -2
- package/typography/NormalText/__stories__/FontWeight.js +2 -2
- package/typography/NormalText/__stories__/Variants.js +2 -2
- package/utils/Kitchensink/KitchensinkComponent.js +3 -3
- package/utils/Kitchensink/KitchensinkDashboard.js +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Pagination, PaginationList, PaginationListItem, PaginationLabel } from '@digigov/ui/admin/Pagination';
|
|
3
|
-
import {
|
|
3
|
+
import { I18NProvider } from '@digigov/ui/app/i18n';
|
|
4
4
|
import { Link } from '@digigov/ui/core/Link';
|
|
5
5
|
import { SectionBreak } from '@digigov/ui/core/SectionBreak';
|
|
6
|
-
import {
|
|
6
|
+
import { ArrowIcon } from '@digigov/ui/core/SvgIcon';
|
|
7
7
|
|
|
8
8
|
var _ref = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
9
9
|
start: 10,
|
|
@@ -12,19 +12,19 @@ var _ref = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React
|
|
|
12
12
|
}), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
13
13
|
direction: "left"
|
|
14
14
|
}), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
15
|
-
href: "
|
|
15
|
+
href: "#page1"
|
|
16
16
|
}, "1")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
17
17
|
currentPage: true
|
|
18
18
|
}, "2"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
19
|
-
href: "
|
|
19
|
+
href: "#page3"
|
|
20
20
|
}, "3")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
21
21
|
variant: "dots"
|
|
22
22
|
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
23
|
-
href: "
|
|
23
|
+
href: "#page5"
|
|
24
24
|
}, "5")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
25
|
-
href: "
|
|
25
|
+
href: "#page6"
|
|
26
26
|
}, "6")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
27
|
-
href: "
|
|
27
|
+
href: "#page7"
|
|
28
28
|
}, "7")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
29
29
|
direction: "right"
|
|
30
30
|
})))));
|
|
@@ -34,83 +34,25 @@ var _ref2 = /*#__PURE__*/React.createElement(SectionBreak, {
|
|
|
34
34
|
});
|
|
35
35
|
|
|
36
36
|
var _ref3 = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
37
|
-
start: 10,
|
|
38
|
-
end: 20,
|
|
39
|
-
total: 10000
|
|
40
|
-
}), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
41
|
-
inactive: true
|
|
42
|
-
}, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
43
|
-
direction: "left"
|
|
44
|
-
}), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
45
|
-
currentPage: true
|
|
46
|
-
}, "1"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
47
|
-
href: "/page2"
|
|
48
|
-
}, "2")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
49
|
-
href: "/page3"
|
|
50
|
-
}, "3")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
51
|
-
variant: "dots"
|
|
52
|
-
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
53
|
-
href: "/page5"
|
|
54
|
-
}, "5")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
55
|
-
href: "/page6"
|
|
56
|
-
}, "6")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
57
|
-
href: "/page7"
|
|
58
|
-
}, "7")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
59
|
-
direction: "right"
|
|
60
|
-
})))));
|
|
61
|
-
|
|
62
|
-
var _ref4 = /*#__PURE__*/React.createElement(SectionBreak, {
|
|
63
|
-
size: "l"
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
var _ref5 = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
67
|
-
start: 10,
|
|
68
|
-
end: 20,
|
|
69
|
-
total: 10000
|
|
70
|
-
}), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
71
|
-
direction: "left"
|
|
72
|
-
}), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
73
|
-
href: "/page1"
|
|
74
|
-
}, "1")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "2")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
75
|
-
href: "/page3"
|
|
76
|
-
}, "3")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
77
|
-
variant: "dots"
|
|
78
|
-
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
79
|
-
href: "/page5"
|
|
80
|
-
}, "5")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
81
|
-
href: "/page6"
|
|
82
|
-
}, "6")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
83
|
-
currentPage: true
|
|
84
|
-
}, "7"), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
85
|
-
inactive: true
|
|
86
|
-
}, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
87
|
-
direction: "right"
|
|
88
|
-
})))));
|
|
89
|
-
|
|
90
|
-
var _ref6 = /*#__PURE__*/React.createElement(SectionBreak, {
|
|
91
|
-
size: "l"
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
var _ref7 = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
95
37
|
start: 1,
|
|
96
38
|
end: 10,
|
|
97
39
|
total: 15
|
|
98
40
|
}), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
99
41
|
direction: "left"
|
|
100
42
|
}), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
101
|
-
href: "
|
|
43
|
+
href: "#page1"
|
|
102
44
|
}, "1")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
103
45
|
variant: "dots"
|
|
104
46
|
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
105
|
-
href: "
|
|
106
|
-
}, "
|
|
47
|
+
href: "#page7"
|
|
48
|
+
}, "7")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
107
49
|
currentPage: true
|
|
108
50
|
}, "8"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
109
|
-
href: "
|
|
51
|
+
href: "#page9"
|
|
110
52
|
}, "9")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
111
53
|
variant: "dots"
|
|
112
54
|
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
113
|
-
href: "
|
|
55
|
+
href: "#page20"
|
|
114
56
|
}, "20")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
115
57
|
direction: "right"
|
|
116
58
|
})))));
|
|
@@ -122,6 +64,6 @@ export var Default = function Default() {
|
|
|
122
64
|
t: function t(str) {
|
|
123
65
|
return str;
|
|
124
66
|
}
|
|
125
|
-
}, _ref, _ref2, _ref3
|
|
67
|
+
}, _ref, _ref2, _ref3));
|
|
126
68
|
};
|
|
127
69
|
export default Default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Pagination, PaginationList, PaginationListItem, PaginationLabel } from '@digigov/ui/admin/Pagination';
|
|
3
|
-
import {
|
|
3
|
+
import { I18NProvider } from '@digigov/ui/app/i18n';
|
|
4
4
|
import { Link } from '@digigov/ui/core/Link';
|
|
5
5
|
import { SectionBreak } from '@digigov/ui/core/SectionBreak';
|
|
6
|
-
import {
|
|
6
|
+
import { ArrowIcon } from '@digigov/ui/core/SvgIcon';
|
|
7
7
|
|
|
8
8
|
var _ref = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
9
9
|
start: 1,
|
|
@@ -16,7 +16,7 @@ var _ref = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React
|
|
|
16
16
|
}))), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
17
17
|
currentPage: true
|
|
18
18
|
}, "1"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
19
|
-
href: "
|
|
19
|
+
href: "#page2"
|
|
20
20
|
}, "2")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
21
21
|
direction: "right"
|
|
22
22
|
})))));
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Pagination, PaginationList, PaginationListItem, PaginationLabel } from '@digigov/ui/admin/Pagination';
|
|
3
|
+
import { ArrowIcon } from '@digigov/ui/core/SvgIcon';
|
|
4
|
+
import { Link } from '@digigov/ui/core/Link';
|
|
5
|
+
import { SectionBreak } from '@digigov/ui/core/SectionBreak';
|
|
6
|
+
import { I18NProvider } from '@digigov/ui/app/i18n';
|
|
7
|
+
|
|
8
|
+
var _ref = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
9
|
+
start: 10,
|
|
10
|
+
end: 20,
|
|
11
|
+
total: 10000
|
|
12
|
+
}), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
13
|
+
inactive: true
|
|
14
|
+
}, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
15
|
+
direction: "left"
|
|
16
|
+
}), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
17
|
+
currentPage: true
|
|
18
|
+
}, "1"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
19
|
+
href: "#page2"
|
|
20
|
+
}, "2")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
21
|
+
href: "#page3"
|
|
22
|
+
}, "3")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
23
|
+
variant: "dots"
|
|
24
|
+
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
25
|
+
href: "#page5"
|
|
26
|
+
}, "5")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
27
|
+
href: "#page6"
|
|
28
|
+
}, "6")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
29
|
+
href: "#page7"
|
|
30
|
+
}, "7")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
31
|
+
direction: "right"
|
|
32
|
+
})))));
|
|
33
|
+
|
|
34
|
+
var _ref2 = /*#__PURE__*/React.createElement(SectionBreak, {
|
|
35
|
+
size: "l"
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
var _ref3 = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
39
|
+
start: 10,
|
|
40
|
+
end: 20,
|
|
41
|
+
total: 10000
|
|
42
|
+
}), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
43
|
+
direction: "left"
|
|
44
|
+
}), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
45
|
+
href: "#page1"
|
|
46
|
+
}, "1")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "2")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
47
|
+
href: "#page3"
|
|
48
|
+
}, "3")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
49
|
+
variant: "dots"
|
|
50
|
+
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
51
|
+
href: "#page5"
|
|
52
|
+
}, "5")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
53
|
+
href: "#page6"
|
|
54
|
+
}, "6")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
55
|
+
currentPage: true
|
|
56
|
+
}, "7"), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
57
|
+
inactive: true
|
|
58
|
+
}, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
59
|
+
direction: "right"
|
|
60
|
+
})))));
|
|
61
|
+
|
|
62
|
+
export var WithInactiveValues = function WithInactiveValues() {
|
|
63
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
64
|
+
className: "example"
|
|
65
|
+
}, /*#__PURE__*/React.createElement(I18NProvider, {
|
|
66
|
+
t: function t(str) {
|
|
67
|
+
return str;
|
|
68
|
+
}
|
|
69
|
+
}, _ref, _ref2, _ref3));
|
|
70
|
+
};
|
|
71
|
+
export default WithInactiveValues;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Pagination, PaginationList, PaginationListItem, PaginationLabel } from '@digigov/ui/admin/Pagination';
|
|
3
|
+
import { SelectContainer, SelectOption } from '@digigov/ui/core/SelectContainer';
|
|
4
|
+
import { ArrowIcon } from '@digigov/ui/core/SvgIcon';
|
|
5
|
+
import { Link } from '@digigov/ui/core/Link';
|
|
6
|
+
import { I18NProvider } from '@digigov/ui/app/i18n';
|
|
7
|
+
import { LabelContainer } from '@digigov/react-core';
|
|
8
|
+
|
|
9
|
+
var _ref = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
10
|
+
start: 1,
|
|
11
|
+
end: 10,
|
|
12
|
+
total: 15
|
|
13
|
+
}), /*#__PURE__*/React.createElement(LabelContainer, null, "\u0391\u03C0\u03BF\u03C4\u03B5\u03BB\u03AD\u03C3\u03BC\u03B1\u03C4\u03B1 \u03B1\u03BD\u03AC \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1", /*#__PURE__*/React.createElement(SelectContainer, null, /*#__PURE__*/React.createElement(SelectOption, null, "5"), /*#__PURE__*/React.createElement(SelectOption, null, "10"), /*#__PURE__*/React.createElement(SelectOption, null, "15"))), /*#__PURE__*/React.createElement(PaginationList, null, /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
14
|
+
direction: "left"
|
|
15
|
+
}), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
16
|
+
href: "#page1"
|
|
17
|
+
}, "1")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
18
|
+
variant: "dots"
|
|
19
|
+
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
20
|
+
href: "#page2"
|
|
21
|
+
}, "2")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
22
|
+
currentPage: true
|
|
23
|
+
}, "8"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
24
|
+
href: "#page9"
|
|
25
|
+
}, "9")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
26
|
+
variant: "dots"
|
|
27
|
+
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
28
|
+
href: "#page20"
|
|
29
|
+
}, "20")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
30
|
+
direction: "right"
|
|
31
|
+
})))));
|
|
32
|
+
|
|
33
|
+
export var WithResultsPerPage = function WithResultsPerPage() {
|
|
34
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
className: "example"
|
|
36
|
+
}, /*#__PURE__*/React.createElement(I18NProvider, {
|
|
37
|
+
t: function t(str) {
|
|
38
|
+
return str;
|
|
39
|
+
}
|
|
40
|
+
}, _ref));
|
|
41
|
+
};
|
|
42
|
+
export default WithResultsPerPage;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import Pagination from '@digigov/react-extensions/admin/Pagination';
|
|
2
3
|
import PaginationLabelContainer from '@digigov/react-extensions/admin/PaginationLabelContainer';
|
|
3
|
-
import { I18nText } from '@digigov/ui/app/I18nText';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* PaginationLabel component is used for placing the pagination results label.
|
|
@@ -13,11 +13,11 @@ export var PaginationLabel = /*#__PURE__*/React.forwardRef(function PaginationLa
|
|
|
13
13
|
ref: ref
|
|
14
14
|
}, /*#__PURE__*/React.createElement(I18nText, {
|
|
15
15
|
i18nKey: "pagination.label"
|
|
16
|
-
}, "Showing ", /*#__PURE__*/React.createElement("b", null, start), " to ", /*#__PURE__*/React.createElement("b", null, end), " of ", /*#__PURE__*/React.createElement("b", null, total), " results
|
|
16
|
+
}, "Showing ", /*#__PURE__*/React.createElement("b", null, start), " to ", /*#__PURE__*/React.createElement("b", null, end), " of ", /*#__PURE__*/React.createElement("b", null, total), " results"));
|
|
17
17
|
});
|
|
18
18
|
export * from '@digigov/react-extensions/admin/Pagination';
|
|
19
19
|
export * from '@digigov/react-extensions/admin/PaginationList';
|
|
20
20
|
export * from '@digigov/react-extensions/admin/PaginationListItem';
|
|
21
21
|
export { PaginationLabelContainer };
|
|
22
|
-
import
|
|
22
|
+
import { I18nText } from '@digigov/ui/app/I18nText';
|
|
23
23
|
export default Pagination;
|
|
@@ -11,6 +11,14 @@ import Pagination from '@digigov/ui/app/Pagination';
|
|
|
11
11
|
|
|
12
12
|
<Story packageName="@digigov/ui" component="admin/Pagination" story="Default.tsx" />
|
|
13
13
|
|
|
14
|
+
## With inactive values
|
|
15
|
+
|
|
16
|
+
<Story packageName="@digigov/ui" component="admin/Pagination" story="WithInactiveValues.tsx" />
|
|
17
|
+
|
|
18
|
+
## With results per page
|
|
19
|
+
|
|
20
|
+
<Story packageName="@digigov/ui" component="admin/Pagination" story="WithResultsPerPage.tsx" />
|
|
21
|
+
|
|
14
22
|
## API
|
|
15
23
|
|
|
16
24
|
<PropTypes packageName="@digigov/ui" component="Pagination" />
|
|
@@ -2,12 +2,12 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import React, { useState, useEffect } from 'react';
|
|
4
4
|
import { StepNav, StepNavCircleΝumber, StepNavControls, StepNavList, StepNavListItem, StepNavAccordionOpened, StepNavAccordionClosed, StepNavAccordion, StepNavAccordionContent, StepNavAccordionSummary, StepNavAccordionSummaryHeading, StepNavAccordionHeadingTitle, StepNavAccordionHeadingText } from '@digigov/ui/admin/StepNav';
|
|
5
|
-
import {
|
|
5
|
+
import { Button } from '@digigov/ui/core/Button';
|
|
6
|
+
import { Link } from '@digigov/ui/core/Link';
|
|
6
7
|
import { List } from '@digigov/ui/core/List/List';
|
|
7
8
|
import { ListItem } from '@digigov/ui/core/List/ListItem';
|
|
8
|
-
import { Link } from '@digigov/ui/core/Link';
|
|
9
9
|
import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
10
|
-
import {
|
|
10
|
+
import { Paragraph } from '@digigov/ui/typography/Paragraph';
|
|
11
11
|
var data = [{
|
|
12
12
|
title: 'Title-1',
|
|
13
13
|
description: 'Some description here',
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import StepNavCircleΝumber from '@digigov/react-extensions/admin/StepNavCircleΝumber';
|
|
2
1
|
import StepNav from '@digigov/react-extensions/admin/StepNav';
|
|
3
|
-
import StepNavControls from '@digigov/react-extensions/admin/StepNavControls';
|
|
4
|
-
import StepNavList from '@digigov/react-extensions/admin/StepNavList';
|
|
5
|
-
import StepNavListItem from '@digigov/react-extensions/admin/StepNavListItem';
|
|
6
2
|
import StepNavAccordion from '@digigov/react-extensions/admin/StepNavAccordion';
|
|
3
|
+
import StepNavAccordionClosed from '@digigov/react-extensions/admin/StepNavAccordionClosed';
|
|
7
4
|
import StepNavAccordionContent from '@digigov/react-extensions/admin/StepNavAccordionContent';
|
|
8
|
-
import
|
|
5
|
+
import StepNavAccordionHeadingText from '@digigov/react-extensions/admin/StepNavAccordionHeadingText';
|
|
6
|
+
import StepNavAccordionHeadingTitle from '@digigov/react-extensions/admin/StepNavAccordionHeadingTitle';
|
|
9
7
|
import StepNavAccordionOpened from '@digigov/react-extensions/admin/StepNavAccordionOpened';
|
|
10
|
-
import
|
|
8
|
+
import StepNavAccordionSummary from '@digigov/react-extensions/admin/StepNavAccordionSummary';
|
|
11
9
|
import StepNavAccordionSummaryHeading from '@digigov/react-extensions/admin/StepNavAccordionSummaryHeading';
|
|
12
|
-
import
|
|
13
|
-
import
|
|
10
|
+
import StepNavCircleΝumber from '@digigov/react-extensions/admin/StepNavCircleΝumber';
|
|
11
|
+
import StepNavControls from '@digigov/react-extensions/admin/StepNavControls';
|
|
12
|
+
import StepNavList from '@digigov/react-extensions/admin/StepNavList';
|
|
13
|
+
import StepNavListItem from '@digigov/react-extensions/admin/StepNavListItem';
|
|
14
14
|
export { StepNavAccordion, StepNavAccordionContent, StepNavAccordionSummary, StepNavAccordionSummaryHeading, StepNavAccordionHeadingTitle, StepNavAccordionHeadingText, StepNavCircleΝumber, StepNavAccordionOpened, StepNavAccordionClosed, StepNav, StepNavControls, StepNavList, StepNavListItem };
|
|
15
15
|
export default StepNav;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { TaskList, TaskListItem, TaskListItemHeading, TaskListItemContent, TaskListItemTag } from '@digigov/ui/admin/TaskList';
|
|
2
3
|
import { LinkBase } from '@digigov/ui/core/Link';
|
|
3
4
|
import { SummaryList, SummaryListItem, SummaryListItemAction, SummaryListItemKey } from '@digigov/ui/core/SummaryList';
|
|
4
|
-
import { TaskList, TaskListItem, TaskListItemHeading, TaskListItemContent, TaskListItemTag } from '@digigov/ui/admin/TaskList';
|
|
5
5
|
var fields = [{
|
|
6
6
|
title: 'Check before you start',
|
|
7
7
|
tasks: [{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Timeline, TimelineItem, TimelineHeading, TimelineContent, TimelineActions } from '@digigov/ui/admin/Timeline';
|
|
2
3
|
import { Button } from '@digigov/ui/core/Button';
|
|
4
|
+
import { Details, DetailsSummary, DetailsContent } from '@digigov/ui/core/Details';
|
|
5
|
+
import { LinkBase } from '@digigov/ui/core/Link';
|
|
3
6
|
import { Hint } from '@digigov/ui/typography/Hint';
|
|
4
7
|
import { Paragraph } from '@digigov/ui/typography/Paragraph';
|
|
5
|
-
import { LinkBase } from '@digigov/ui/core/Link';
|
|
6
|
-
import { Timeline, TimelineItem, TimelineHeading, TimelineContent, TimelineActions } from '@digigov/ui/admin/Timeline';
|
|
7
|
-
import { Details, DetailsSummary, DetailsContent } from '@digigov/ui/core/Details';
|
|
8
8
|
var data = [{
|
|
9
9
|
title: 'Application requires confirmation',
|
|
10
10
|
date: '14 June 2019 at 2:01pm',
|
package/es/api/index.spec.js
CHANGED
|
@@ -9,10 +9,10 @@ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyri
|
|
|
9
9
|
import React, { Suspense, useEffect } from 'react';
|
|
10
10
|
import { render, fireEvent } from '@testing-library/react';
|
|
11
11
|
import fetchMock from 'fetch-mock';
|
|
12
|
+
import 'whatwg-fetch';
|
|
13
|
+
import fetchAPI from '@digigov/ui/api/fetchAPI';
|
|
12
14
|
import { APIProvider, useResource, useResourceAction, useResourceMany, APIErrors } from '@digigov/ui/api/index';
|
|
13
15
|
import delay from '@digigov/ui/test-utils/delay';
|
|
14
|
-
import fetchAPI from '@digigov/ui/api/fetchAPI';
|
|
15
|
-
import 'whatwg-fetch';
|
|
16
16
|
|
|
17
17
|
var _ref2 = /*#__PURE__*/React.createElement("span", null, "something went wrong");
|
|
18
18
|
|
package/es/api/useResource.js
CHANGED
|
@@ -4,10 +4,10 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
|
|
5
5
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { useState } from 'react';
|
|
8
8
|
import { useQuery, queryCache } from 'react-query';
|
|
9
9
|
import { useAPI } from '@digigov/ui/api';
|
|
10
|
-
import {
|
|
10
|
+
import { getQueryKey, processResponse } from '@digigov/ui/api/utils';
|
|
11
11
|
export function useResource(resource, id, query, options, suspense) {
|
|
12
12
|
var _useAPI = useAPI(),
|
|
13
13
|
baseURL = _useAPI.config.baseURL,
|
|
@@ -5,9 +5,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
5
5
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
6
6
|
|
|
7
7
|
import { useState, useEffect } from 'react';
|
|
8
|
-
import { getQueryKey, processResponse } from '@digigov/ui/api/utils';
|
|
9
8
|
import { useMutation } from 'react-query';
|
|
10
9
|
import { useAPI } from '@digigov/ui/api';
|
|
10
|
+
import { getQueryKey, processResponse } from '@digigov/ui/api/utils';
|
|
11
11
|
export function useResourceAction(resource, id) {
|
|
12
12
|
var method = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'POST';
|
|
13
13
|
var data = arguments.length > 3 ? arguments[3] : undefined;
|
|
@@ -8,9 +8,9 @@ var _excluded = ["data"];
|
|
|
8
8
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
9
9
|
|
|
10
10
|
import { useEffect, useMemo, useState, useCallback } from 'react';
|
|
11
|
-
import { getQueryKey, processResponse } from '@digigov/ui/api/utils';
|
|
12
11
|
import { usePaginatedQuery, queryCache } from 'react-query';
|
|
13
12
|
import { useAPI } from '@digigov/ui/api';
|
|
13
|
+
import { getQueryKey, processResponse } from '@digigov/ui/api/utils';
|
|
14
14
|
var DEFAULT_PAGINATION_LIMIT = 30;
|
|
15
15
|
var DEFAULT_LIMIT_OPTIONS = [10, 30, 60, 100];
|
|
16
16
|
export function useResourceManyBase(resource, query, options) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Footer, FooterMeta, FooterMetaItem, FooterContent, FooterInlineList, FooterInlineListItem, FooterLink } from "@digigov/ui/app/Footer";
|
|
3
|
+
import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
2
4
|
import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
|
|
3
5
|
import { HellenicRepublicLogo } from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
|
|
4
|
-
import { Footer } from '@digigov/ui/app/Footer';
|
|
5
|
-
import { FooterMeta, FooterMetaItem, FooterContent, FooterInlineList, FooterInlineListItem, FooterLink } from '@digigov/ui/app/Footer';
|
|
6
|
-
import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
7
6
|
|
|
8
7
|
var _ref = /*#__PURE__*/React.createElement(Footer, null, /*#__PURE__*/React.createElement(FooterMeta, null, /*#__PURE__*/React.createElement(FooterMetaItem, {
|
|
9
8
|
grow: true
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Footer } from
|
|
3
|
-
import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
|
|
4
|
-
import { HellenicRepublicLogo } from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
|
|
5
|
-
import { FooterMeta, FooterMetaItem, FooterContent, FooterNavigation, FooterSection, FooterHeading, FooterList, FooterListItem, FooterLink, FooterInlineList, FooterInlineListItem, FooterContentLogos, FooterImage } from '@digigov/ui/app/Footer';
|
|
6
|
-
import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
2
|
+
import { Footer, FooterMeta, FooterMetaItem, FooterContent, FooterNavigation, FooterSection, FooterHeading, FooterList, FooterListItem, FooterLink, FooterInlineList, FooterInlineListItem, FooterContentLogos, FooterImage } from "@digigov/ui/app/Footer";
|
|
7
3
|
import { Link } from '@digigov/ui/core/Link';
|
|
8
4
|
import { SectionBreak } from '@digigov/ui/core/SectionBreak';
|
|
5
|
+
import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
6
|
+
import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
|
|
7
|
+
import { HellenicRepublicLogo } from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
|
|
9
8
|
import logo1 from '@digigov/ui/govgr/images/greek-government-base64';
|
|
10
9
|
import logo2 from '@digigov/ui/govgr/images/grnet-logo-base64';
|
|
11
10
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Footer, FooterMeta, FooterMetaItem, FooterContent, FooterInlineList, FooterInlineListItem, FooterLink } from "@digigov/ui/app/Footer";
|
|
3
|
+
import { Link } from '@digigov/ui/core/Link';
|
|
4
|
+
import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
2
5
|
import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
|
|
3
6
|
import { HellenicRepublicLogo } from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
|
|
4
|
-
import { Footer } from '@digigov/ui/app/Footer';
|
|
5
|
-
import { FooterMeta, FooterMetaItem, FooterContent, FooterInlineList, FooterInlineListItem, FooterLink } from '@digigov/ui/app/Footer';
|
|
6
|
-
import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
7
|
-
import { Link } from '@digigov/ui/core/Link';
|
|
8
7
|
|
|
9
8
|
var _ref = /*#__PURE__*/React.createElement(Footer, null, /*#__PURE__*/React.createElement(FooterMeta, null, /*#__PURE__*/React.createElement(FooterMetaItem, {
|
|
10
9
|
grow: true
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Footer } from
|
|
2
|
+
import { Footer, FooterMeta, FooterMetaItem, FooterContent, FooterContentLogos, FooterImage } from "@digigov/ui/app/Footer";
|
|
3
|
+
import { Link } from '@digigov/ui/core/Link';
|
|
4
|
+
import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
3
5
|
import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
|
|
4
6
|
import { HellenicRepublicLogo } from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
|
|
5
|
-
import { FooterMeta, FooterMetaItem, FooterContent, FooterContentLogos, FooterImage } from '@digigov/ui/app/Footer';
|
|
6
|
-
import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
7
|
-
import { Link } from '@digigov/ui/core/Link';
|
|
8
7
|
import logo1 from '@digigov/ui/govgr/images/greek-government-base64';
|
|
9
8
|
import logo2 from '@digigov/ui/govgr/images/grnet-logo-base64';
|
|
10
9
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Footer } from
|
|
3
|
-
import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
|
|
4
|
-
import { HellenicRepublicLogo } from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
|
|
5
|
-
import { FooterMeta, FooterMetaItem, FooterContent, FooterNavigation, FooterSection, FooterHeading, FooterList, FooterListItem, FooterLink } from '@digigov/ui/app/Footer';
|
|
6
|
-
import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
2
|
+
import { Footer, FooterMeta, FooterMetaItem, FooterContent, FooterNavigation, FooterSection, FooterHeading, FooterList, FooterListItem, FooterLink } from "@digigov/ui/app/Footer";
|
|
7
3
|
import { Link } from '@digigov/ui/core/Link';
|
|
8
4
|
import { SectionBreak } from '@digigov/ui/core/SectionBreak';
|
|
5
|
+
import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
6
|
+
import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
|
|
7
|
+
import { HellenicRepublicLogo } from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
|
|
9
8
|
|
|
10
9
|
var _ref = /*#__PURE__*/React.createElement(Footer, null, /*#__PURE__*/React.createElement(FooterNavigation, null, /*#__PURE__*/React.createElement(FooterSection, null, /*#__PURE__*/React.createElement(FooterHeading, null, "\u03A4\u03AF\u03C4\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03C4\u03BF \u03BC\u03B5\u03BD\u03BF\u03CD"), /*#__PURE__*/React.createElement(FooterList, {
|
|
11
10
|
columns: 2
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Footer, FooterMeta, FooterMetaItem, FooterContent, FooterInlineList, FooterInlineListItem, FooterLink } from "@digigov/ui/app/Footer";
|
|
3
|
+
import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
2
4
|
import { Copyright, getCopyright } from '@digigov/ui/govgr/Footer/Copyright';
|
|
3
5
|
import { HellenicRepublicLogo } from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
|
|
4
|
-
import { Footer } from '@digigov/ui/app/Footer';
|
|
5
|
-
import { FooterMeta, FooterMetaItem, FooterContent, FooterInlineList, FooterInlineListItem, FooterLink } from '@digigov/ui/app/Footer';
|
|
6
|
-
import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
7
6
|
|
|
8
7
|
var _ref = /*#__PURE__*/React.createElement(VisuallyHidden, null, "\u03A0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B5\u03C2 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2");
|
|
9
8
|
|