@digigov/ui 0.35.3 → 0.35.5
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 +20 -3
- package/admin/AccessibilityMenu/index.d.ts +4 -4
- 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 +4 -4
- package/admin/AutoComplete/index.js +6 -12
- package/admin/Chip/Chip.stories.d.ts +12 -0
- package/admin/Chip/Chip.stories.js +88 -0
- package/admin/Chip/__stories__/ClickableChip.d.ts +2 -0
- package/admin/Chip/__stories__/ClickableChip.js +24 -0
- package/admin/Chip/__stories__/ClickableDeletableChip.d.ts +2 -0
- package/admin/Chip/__stories__/ClickableDeletableChip.js +27 -0
- package/admin/Chip/__stories__/Default.d.ts +2 -0
- package/admin/Chip/__stories__/Default.js +22 -0
- package/admin/Chip/__stories__/DeletableChip.d.ts +2 -0
- package/admin/Chip/__stories__/DeletableChip.js +24 -0
- package/admin/Chip/__stories__/GroupOfChips.d.ts +2 -0
- package/admin/Chip/__stories__/GroupOfChips.js +28 -0
- package/admin/Chip/index.d.ts +0 -1
- package/admin/Chip/index.js +0 -14
- 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/Dropdown/index.d.ts +1 -1
- package/admin/Modal/__stories__/Default.js +2 -2
- package/admin/Modal/index.d.ts +2 -2
- package/admin/Pagination/Pagination.stories.d.ts +1 -0
- package/admin/Pagination/Pagination.stories.js +14 -0
- package/admin/Pagination/__stories__/Default.js +2 -2
- package/admin/Pagination/__stories__/PaginationSmall.js +2 -2
- package/admin/Pagination/__stories__/PaginationWithSmallFont.d.ts +2 -0
- package/admin/Pagination/__stories__/PaginationWithSmallFont.js +62 -0
- package/admin/Pagination/index.d.ts +2 -2
- package/admin/Pagination/index.js +4 -4
- package/admin/StepNav/__stories__/Default.js +9 -11
- package/admin/StepNav/index.d.ts +7 -9
- package/admin/StepNav/index.js +10 -26
- 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/BottomInfoContainer/index.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/Header.stories.playwright.json +16 -0
- 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 +5 -5
- package/core/Accordion/index.js +20 -20
- package/core/Button/BackButton.d.ts +1 -1
- 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 +4 -4
- package/core/Checkbox/__stories__/Default.js +3 -3
- package/core/Checkbox/__stories__/MultipleQuestions.js +3 -3
- package/core/Checkbox/__stories__/NoneAnswer.js +3 -4
- package/core/Checkbox/__stories__/NoneAnswerWithError.js +9 -10
- package/core/Checkbox/__stories__/WithErrorMessage.js +7 -7
- package/core/Checkbox/__stories__/WithHint.js +6 -6
- package/core/DateInputContainer/__stories__/WithErrorMessage.js +4 -4
- package/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +4 -4
- package/core/Divider/index.d.ts +2 -1
- package/core/Divider/index.js +16 -0
- 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 +10 -11
- package/core/RadioContainer/__stories__/WithErrorMessage.js +8 -8
- 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.d.ts +1 -1
- 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 +8 -6
- package/es/admin/Chip/Chip.stories.js +12 -0
- package/es/admin/Chip/__stories__/ClickableChip.js +10 -0
- package/es/admin/Chip/__stories__/ClickableDeletableChip.js +13 -0
- package/es/admin/Chip/__stories__/Default.js +9 -0
- package/es/admin/Chip/__stories__/DeletableChip.js +10 -0
- package/es/admin/Chip/__stories__/GroupOfChips.js +9 -0
- package/es/admin/Chip/index.js +0 -1
- package/es/admin/CircularProgress/__stories__/Default.js +1 -1
- package/es/admin/CopyToClipboard/index.js +1 -1
- package/es/admin/Drawer/__stories__/Default.js +3 -2
- package/es/admin/Dropdown/__stories__/AlignRight.js +5 -4
- package/es/admin/Dropdown/__stories__/Default.js +5 -4
- package/es/admin/Dropdown/__stories__/PlacementTop.js +5 -4
- package/es/admin/Modal/__stories__/Default.js +1 -1
- package/es/admin/Pagination/Pagination.stories.js +2 -1
- package/es/admin/Pagination/__stories__/Default.js +2 -2
- package/es/admin/Pagination/__stories__/PaginationSmall.js +2 -2
- package/es/admin/Pagination/__stories__/PaginationWithSmallFont.js +44 -0
- package/es/admin/Pagination/index.js +2 -2
- package/es/admin/StepNav/__stories__/Default.js +9 -11
- package/es/admin/StepNav/index.js +7 -9
- 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 +3 -2
- package/es/app/Footer/__stories__/FooterAllInclusive.js +5 -4
- package/es/app/Footer/__stories__/FooterWithLink.js +4 -3
- package/es/app/Footer/__stories__/FooterWithLogo.js +4 -3
- package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +5 -4
- package/es/app/Footer/__stories__/YearCopyright.js +3 -2
- package/es/app/Header/Header.stories.playwright.json +16 -0
- package/es/app/Header/__stories__/Default.js +1 -1
- package/es/app/Header/__stories__/WithHeaderNavigation.js +5 -4
- 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 +3 -3
- package/es/core/Checkbox/__stories__/Default.js +3 -3
- package/es/core/Checkbox/__stories__/MultipleQuestions.js +3 -3
- package/es/core/Checkbox/__stories__/NoneAnswer.js +3 -4
- package/es/core/Checkbox/__stories__/NoneAnswerWithError.js +8 -9
- package/es/core/Checkbox/__stories__/WithErrorMessage.js +6 -6
- package/es/core/Checkbox/__stories__/WithHint.js +6 -6
- package/es/core/DateInputContainer/__stories__/WithErrorMessage.js +2 -2
- package/es/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +2 -2
- package/es/core/Divider/index.js +1 -0
- 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 +6 -5
- 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 +9 -10
- package/es/core/RadioContainer/__stories__/WithErrorMessage.js +7 -7
- 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 +2 -1
- package/es/core/TextArea/__stories__/DisabledInput.js +3 -2
- package/es/core/TextArea/__stories__/LimitedCharacters.js +3 -2
- package/es/core/TextArea/__stories__/MultipleQuestions.js +1 -1
- package/es/core/TextArea/__stories__/WithDeclaredRows.js +3 -2
- package/es/core/TextArea/__stories__/WithErrorMessage.js +4 -3
- package/es/core/TextArea/__stories__/WithHint.js +3 -2
- package/es/core/TextInput/__stories__/AskingForNumbers.js +3 -2
- package/es/core/TextInput/__stories__/Default.js +3 -2
- package/es/core/TextInput/__stories__/DisabledInput.js +3 -2
- package/es/core/TextInput/__stories__/FixedWidths.js +3 -2
- package/es/core/TextInput/__stories__/FluidWidths.js +3 -2
- package/es/core/TextInput/__stories__/MultipleQuestions.js +1 -1
- package/es/core/TextInput/__stories__/WithErrorMessage.js +4 -3
- package/es/core/TextInput/__stories__/WithHint.js +3 -2
- 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 +2 -1
- 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 +14 -0
- package/es/locales/en.js +14 -0
- package/es/registry.js +3 -0
- 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 +8 -6
- package/esm/admin/Chip/Chip.stories.js +12 -0
- package/esm/admin/Chip/__stories__/ClickableChip.js +10 -0
- package/esm/admin/Chip/__stories__/ClickableDeletableChip.js +13 -0
- package/esm/admin/Chip/__stories__/Default.js +9 -0
- package/esm/admin/Chip/__stories__/DeletableChip.js +10 -0
- package/esm/admin/Chip/__stories__/GroupOfChips.js +9 -0
- package/esm/admin/Chip/index.js +0 -1
- package/esm/admin/CircularProgress/__stories__/Default.js +1 -1
- package/esm/admin/CopyToClipboard/index.js +1 -1
- package/esm/admin/Drawer/__stories__/Default.js +3 -2
- package/esm/admin/Dropdown/__stories__/AlignRight.js +5 -4
- package/esm/admin/Dropdown/__stories__/Default.js +5 -4
- package/esm/admin/Dropdown/__stories__/PlacementTop.js +5 -4
- package/esm/admin/Modal/__stories__/Default.js +1 -1
- package/esm/admin/Pagination/Pagination.stories.js +2 -1
- package/esm/admin/Pagination/__stories__/Default.js +2 -2
- package/esm/admin/Pagination/__stories__/PaginationSmall.js +2 -2
- package/esm/admin/Pagination/__stories__/PaginationWithSmallFont.js +44 -0
- package/esm/admin/Pagination/index.js +2 -2
- package/esm/admin/StepNav/__stories__/Default.js +9 -11
- package/esm/admin/StepNav/index.js +7 -9
- 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 +3 -2
- package/esm/app/Footer/__stories__/FooterAllInclusive.js +5 -4
- package/esm/app/Footer/__stories__/FooterWithLink.js +4 -3
- package/esm/app/Footer/__stories__/FooterWithLogo.js +4 -3
- package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +5 -4
- package/esm/app/Footer/__stories__/YearCopyright.js +3 -2
- package/esm/app/Header/Header.stories.playwright.json +16 -0
- package/esm/app/Header/__stories__/Default.js +1 -1
- package/esm/app/Header/__stories__/WithHeaderNavigation.js +5 -4
- 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 +3 -3
- package/esm/core/Checkbox/__stories__/Default.js +3 -3
- package/esm/core/Checkbox/__stories__/MultipleQuestions.js +3 -3
- package/esm/core/Checkbox/__stories__/NoneAnswer.js +3 -4
- package/esm/core/Checkbox/__stories__/NoneAnswerWithError.js +8 -9
- package/esm/core/Checkbox/__stories__/WithErrorMessage.js +6 -6
- package/esm/core/Checkbox/__stories__/WithHint.js +6 -6
- package/esm/core/DateInputContainer/__stories__/WithErrorMessage.js +2 -2
- package/esm/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +2 -2
- package/esm/core/Divider/index.js +1 -0
- 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 +6 -5
- 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 +9 -10
- package/esm/core/RadioContainer/__stories__/WithErrorMessage.js +7 -7
- 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 +2 -1
- package/esm/core/TextArea/__stories__/DisabledInput.js +3 -2
- package/esm/core/TextArea/__stories__/LimitedCharacters.js +3 -2
- package/esm/core/TextArea/__stories__/MultipleQuestions.js +1 -1
- package/esm/core/TextArea/__stories__/WithDeclaredRows.js +3 -2
- package/esm/core/TextArea/__stories__/WithErrorMessage.js +4 -3
- package/esm/core/TextArea/__stories__/WithHint.js +3 -2
- package/esm/core/TextInput/__stories__/AskingForNumbers.js +3 -2
- package/esm/core/TextInput/__stories__/Default.js +3 -2
- package/esm/core/TextInput/__stories__/DisabledInput.js +3 -2
- package/esm/core/TextInput/__stories__/FixedWidths.js +3 -2
- package/esm/core/TextInput/__stories__/FluidWidths.js +3 -2
- package/esm/core/TextInput/__stories__/MultipleQuestions.js +1 -1
- package/esm/core/TextInput/__stories__/WithErrorMessage.js +4 -3
- package/esm/core/TextInput/__stories__/WithHint.js +3 -2
- 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 +2 -1
- 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 +14 -0
- package/esm/locales/en.js +14 -0
- package/esm/registry.js +3 -0
- 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/Content/index.d.ts +1 -1
- package/layouts/Basic/Side/index.d.ts +1 -1
- 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.d.ts +14 -0
- package/locales/el.js +14 -0
- package/locales/en.d.ts +14 -0
- package/locales/en.js +14 -0
- package/package.json +3 -3
- package/registry.d.ts +2 -0
- package/registry.js +4 -0
- 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 +7 -6
- package/src/admin/Chip/Chip.stories.js +12 -0
- package/src/admin/Chip/__stories__/ClickableChip.tsx +16 -0
- package/src/admin/Chip/__stories__/ClickableDeletableChip.tsx +19 -0
- package/src/admin/Chip/__stories__/Default.tsx +10 -0
- package/src/admin/Chip/__stories__/DeletableChip.tsx +16 -0
- package/src/admin/Chip/__stories__/GroupOfChips.tsx +15 -0
- package/src/admin/Chip/index.tsx +0 -1
- package/src/admin/CircularProgress/__stories__/Default.tsx +1 -1
- package/src/admin/CopyToClipboard/index.tsx +1 -1
- package/src/admin/Drawer/__stories__/Default.tsx +3 -2
- package/src/admin/Dropdown/__stories__/AlignRight.tsx +5 -4
- package/src/admin/Dropdown/__stories__/Default.tsx +5 -4
- package/src/admin/Dropdown/__stories__/PlacementTop.tsx +5 -4
- package/src/admin/Modal/__stories__/Default.tsx +1 -1
- package/src/admin/Pagination/Pagination.stories.js +1 -0
- package/src/admin/Pagination/__stories__/Default.tsx +2 -3
- package/src/admin/Pagination/__stories__/PaginationSmall.tsx +2 -2
- package/src/admin/Pagination/__stories__/PaginationWithSmallFont.tsx +66 -0
- package/src/admin/Pagination/index.tsx +2 -2
- package/src/admin/StepNav/__stories__/Default.tsx +12 -26
- package/src/admin/StepNav/index.tsx +7 -11
- 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 +5 -6
- package/src/app/Footer/__stories__/FooterWithLink.tsx +6 -6
- package/src/app/Footer/__stories__/FooterWithLogo.tsx +5 -6
- package/src/app/Footer/__stories__/FooterWithSecondaryNavigation.tsx +5 -6
- package/src/app/Footer/__stories__/YearCopyright.tsx +6 -6
- package/src/app/Header/Header.stories.playwright.json +16 -0
- package/src/app/Header/__stories__/Default.tsx +1 -1
- package/src/app/Header/__stories__/WithHeaderNavigation.tsx +5 -4
- 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 +4 -4
- package/src/core/Checkbox/__stories__/Default.tsx +3 -3
- package/src/core/Checkbox/__stories__/MultipleQuestions.tsx +3 -3
- package/src/core/Checkbox/__stories__/NoneAnswer.tsx +1 -2
- package/src/core/Checkbox/__stories__/NoneAnswerWithError.tsx +6 -7
- package/src/core/Checkbox/__stories__/WithErrorMessage.tsx +5 -5
- package/src/core/Checkbox/__stories__/WithHint.tsx +3 -3
- package/src/core/DateInputContainer/__stories__/WithErrorMessage.tsx +3 -3
- package/src/core/DateInputContainer/__stories__/WithErrorMessageForSingleField.tsx +3 -3
- package/src/core/Divider/index.tsx +1 -0
- 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 +6 -5
- 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 +5 -6
- package/src/core/RadioContainer/__stories__/WithErrorMessage.tsx +5 -5
- 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 +2 -1
- package/src/core/TextArea/__stories__/DisabledInput.tsx +3 -2
- package/src/core/TextArea/__stories__/LimitedCharacters.tsx +3 -2
- package/src/core/TextArea/__stories__/MultipleQuestions.tsx +1 -1
- package/src/core/TextArea/__stories__/WithDeclaredRows.tsx +3 -2
- package/src/core/TextArea/__stories__/WithErrorMessage.tsx +4 -3
- package/src/core/TextArea/__stories__/WithHint.tsx +3 -2
- package/src/core/TextInput/__stories__/AskingForNumbers.tsx +3 -2
- package/src/core/TextInput/__stories__/Default.tsx +3 -2
- package/src/core/TextInput/__stories__/DisabledInput.tsx +3 -2
- package/src/core/TextInput/__stories__/FixedWidths.tsx +3 -2
- package/src/core/TextInput/__stories__/FluidWidths.tsx +3 -2
- package/src/core/TextInput/__stories__/MultipleQuestions.tsx +1 -1
- package/src/core/TextInput/__stories__/WithErrorMessage.tsx +4 -3
- package/src/core/TextInput/__stories__/WithHint.tsx +3 -2
- 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 +2 -1
- 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 +14 -0
- package/src/locales/en.ts +14 -0
- package/src/registry.js +3 -0
- 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/Caption/index.d.ts +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,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Dropdown, DropdownButton, DropdownContent } from '@digigov/ui/admin/Dropdown';
|
|
3
|
-
import { Button } from '@digigov/ui/core/Button';
|
|
4
3
|
import { FieldContainer } from '@digigov/ui/core/FieldContainer';
|
|
5
|
-
import { LabelContainer
|
|
6
|
-
import { NavVertical } from '@digigov/ui/core/NavList/NavVertical';
|
|
7
|
-
import { NavVerticalItem } from '@digigov/ui/core/NavList/NavVerticalItem';
|
|
4
|
+
import { LabelContainer } from '@digigov/ui/core/LabelContainer';
|
|
8
5
|
import { SectionBreak } from '@digigov/ui/core/SectionBreak';
|
|
6
|
+
import { NavVertical } from '@digigov/ui/core/NavList/NavVertical';
|
|
7
|
+
import { LabelTitle } from '@digigov/ui/core/LabelContainer';
|
|
9
8
|
import { TextInput } from '@digigov/ui/core/TextInput';
|
|
9
|
+
import { NavVerticalItem } from '@digigov/ui/core/NavList/NavVerticalItem';
|
|
10
|
+
import { Button } from '@digigov/ui/core/Button';
|
|
10
11
|
|
|
11
12
|
var _ref = /*#__PURE__*/React.createElement(Dropdown, {
|
|
12
13
|
placement: "top"
|
|
@@ -2,9 +2,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import { Modal, ModalHeading, ModalContent, ModalAction } from '@digigov/ui/admin/Modal';
|
|
4
4
|
import { Button } from '@digigov/ui/core/Button';
|
|
5
|
+
import { TextInput } from '@digigov/ui/core/TextInput';
|
|
5
6
|
import { FieldContainer } from '@digigov/ui/core/FieldContainer';
|
|
6
7
|
import { LabelContainer } from '@digigov/ui/core/LabelContainer';
|
|
7
|
-
import { TextInput } from '@digigov/ui/core/TextInput';
|
|
8
8
|
|
|
9
9
|
var _ref = /*#__PURE__*/React.createElement(ModalHeading, {
|
|
10
10
|
id: "modal-label"
|
|
@@ -9,4 +9,5 @@ export default {
|
|
|
9
9
|
export * from '@digigov/ui/admin/Pagination/__stories__/Default';
|
|
10
10
|
export * from '@digigov/ui/admin/Pagination/__stories__/WithInactiveValues';
|
|
11
11
|
export * from '@digigov/ui/admin/Pagination/__stories__/WithResultsPerPage';
|
|
12
|
-
export * from '@digigov/ui/admin/Pagination/__stories__/PaginationSmall';
|
|
12
|
+
export * from '@digigov/ui/admin/Pagination/__stories__/PaginationSmall';
|
|
13
|
+
export * from '@digigov/ui/admin/Pagination/__stories__/PaginationWithSmallFont';
|
|
@@ -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 { ArrowIcon } from '@digigov/ui/core/SvgIcon';
|
|
4
4
|
import { Link } from '@digigov/ui/core/Link';
|
|
5
5
|
import { SectionBreak } from '@digigov/ui/core/SectionBreak';
|
|
6
|
-
import {
|
|
6
|
+
import { I18NProvider } from '@digigov/ui/app/i18n';
|
|
7
7
|
|
|
8
8
|
var _ref = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
9
9
|
start: 10,
|
|
@@ -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 { ArrowIcon } from '@digigov/ui/core/SvgIcon';
|
|
4
4
|
import { Link } from '@digigov/ui/core/Link';
|
|
5
5
|
import { SectionBreak } from '@digigov/ui/core/SectionBreak';
|
|
6
|
-
import {
|
|
6
|
+
import { I18NProvider } from '@digigov/ui/app/i18n';
|
|
7
7
|
|
|
8
8
|
var _ref = /*#__PURE__*/React.createElement(Pagination, null, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
9
9
|
start: 1,
|
|
@@ -0,0 +1,44 @@
|
|
|
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, {
|
|
10
|
+
fontSize: "sm"
|
|
11
|
+
}, /*#__PURE__*/React.createElement(PaginationLabel, {
|
|
12
|
+
start: 1,
|
|
13
|
+
end: 10,
|
|
14
|
+
total: 15
|
|
15
|
+
}), /*#__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, {
|
|
16
|
+
direction: "left"
|
|
17
|
+
}), "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
18
|
+
href: "#page1"
|
|
19
|
+
}, "1")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
20
|
+
variant: "dots"
|
|
21
|
+
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
22
|
+
href: "#page2"
|
|
23
|
+
}, "2")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
24
|
+
currentPage: true
|
|
25
|
+
}, "8"), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
26
|
+
href: "#page9"
|
|
27
|
+
}, "9")), /*#__PURE__*/React.createElement(PaginationListItem, {
|
|
28
|
+
variant: "dots"
|
|
29
|
+
}), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, {
|
|
30
|
+
href: "#page20"
|
|
31
|
+
}, "20")), /*#__PURE__*/React.createElement(PaginationListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF", /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
32
|
+
direction: "right"
|
|
33
|
+
})))));
|
|
34
|
+
|
|
35
|
+
export var PaginationWithSmallFont = function PaginationWithSmallFont() {
|
|
36
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
37
|
+
className: "example"
|
|
38
|
+
}, /*#__PURE__*/React.createElement(I18NProvider, {
|
|
39
|
+
t: function t(str) {
|
|
40
|
+
return str;
|
|
41
|
+
}
|
|
42
|
+
}, _ref));
|
|
43
|
+
};
|
|
44
|
+
export default PaginationWithSmallFont;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Pagination from '@digigov/react-extensions/admin/Pagination';
|
|
3
2
|
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.
|
|
@@ -19,5 +19,5 @@ 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 Pagination from '@digigov/react-extensions/admin/Pagination';
|
|
23
23
|
export default Pagination;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
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
|
-
import { StepNav,
|
|
5
|
-
import {
|
|
6
|
-
import { Link } from '@digigov/ui/core/Link';
|
|
4
|
+
import { StepNav, StepNavCircleNumber, StepNavControls, StepNavList, StepNavListItem, StepNavAccordion, StepNavAccordionContent, StepNavAccordionSummary, StepNavAccordionSummaryHeading, StepNavAccordionHeadingTitle, StepNavAccordionHeadingText } from '@digigov/ui/admin/StepNav';
|
|
5
|
+
import { Paragraph } from '@digigov/ui/typography/Paragraph';
|
|
7
6
|
import { List } from '@digigov/ui/core/List/List';
|
|
8
7
|
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 { Button } from '@digigov/ui/core/Button';
|
|
11
11
|
var data = [{
|
|
12
12
|
title: 'Title-1',
|
|
13
13
|
description: 'Some description here',
|
|
@@ -26,23 +26,19 @@ var data = [{
|
|
|
26
26
|
link: 'A link to navigate'
|
|
27
27
|
}];
|
|
28
28
|
|
|
29
|
-
var _ref = /*#__PURE__*/React.createElement(
|
|
29
|
+
var _ref = /*#__PURE__*/React.createElement(StepNavCircleNumber, {
|
|
30
30
|
border: false
|
|
31
31
|
}, /*#__PURE__*/React.createElement(VisuallyHidden, null, "Step"), "and");
|
|
32
32
|
|
|
33
33
|
var _ref2 = /*#__PURE__*/React.createElement(VisuallyHidden, null, "Step");
|
|
34
34
|
|
|
35
|
-
var _ref3 = /*#__PURE__*/React.createElement(StepNavAccordionOpened, null, "\u0391\u03C0\u03CC\u03BA\u03C1\u03C5\u03C8\u03B7");
|
|
36
|
-
|
|
37
|
-
var _ref4 = /*#__PURE__*/React.createElement(StepNavAccordionClosed, null, "\u0395\u03BC\u03C6\u03AC\u03BD\u03B9\u03C3\u03B7");
|
|
38
|
-
|
|
39
35
|
export var Default = function Default() {
|
|
40
36
|
var _useState = useState(false),
|
|
41
37
|
_useState2 = _slicedToArray(_useState, 2),
|
|
42
38
|
open = _useState2[0],
|
|
43
39
|
SetOpen = _useState2[1];
|
|
44
40
|
|
|
45
|
-
var _useState3 = useState(
|
|
41
|
+
var _useState3 = useState(Array(data.length).fill(false)),
|
|
46
42
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
47
43
|
openItem = _useState4[0],
|
|
48
44
|
setOpenItem = _useState4[1];
|
|
@@ -90,7 +86,9 @@ export var Default = function Default() {
|
|
|
90
86
|
}
|
|
91
87
|
}, /*#__PURE__*/React.createElement(StepNavAccordionSummaryHeading, {
|
|
92
88
|
"aria-controls": "content1"
|
|
93
|
-
}, index === 2 ? _ref : /*#__PURE__*/React.createElement(
|
|
89
|
+
}, index === 2 ? _ref : /*#__PURE__*/React.createElement(StepNavCircleNumber, null, _ref2, index + 1), /*#__PURE__*/React.createElement(StepNavAccordionHeadingTitle, null, /*#__PURE__*/React.createElement(StepNavAccordionHeadingText, {
|
|
90
|
+
open: openItem[index]
|
|
91
|
+
}, dt.title)))), /*#__PURE__*/React.createElement(StepNavAccordionContent, {
|
|
94
92
|
id: "content1"
|
|
95
93
|
}, /*#__PURE__*/React.createElement(Paragraph, null, dt.description), /*#__PURE__*/React.createElement(List, null, /*#__PURE__*/React.createElement(ListItem, null, /*#__PURE__*/React.createElement(Link, null, dt.link))))));
|
|
96
94
|
})));
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import StepNav from '@digigov/react-extensions/admin/StepNav';
|
|
2
|
+
import StepNavCircleNumber from '@digigov/react-extensions/admin/StepNavCircleNumber';
|
|
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';
|
|
2
6
|
import StepNavAccordion from '@digigov/react-extensions/admin/StepNavAccordion';
|
|
3
|
-
import StepNavAccordionClosed from '@digigov/react-extensions/admin/StepNavAccordionClosed';
|
|
4
7
|
import StepNavAccordionContent from '@digigov/react-extensions/admin/StepNavAccordionContent';
|
|
5
|
-
import StepNavAccordionHeadingText from '@digigov/react-extensions/admin/StepNavAccordionHeadingText';
|
|
6
|
-
import StepNavAccordionHeadingTitle from '@digigov/react-extensions/admin/StepNavAccordionHeadingTitle';
|
|
7
|
-
import StepNavAccordionOpened from '@digigov/react-extensions/admin/StepNavAccordionOpened';
|
|
8
8
|
import StepNavAccordionSummary from '@digigov/react-extensions/admin/StepNavAccordionSummary';
|
|
9
9
|
import StepNavAccordionSummaryHeading from '@digigov/react-extensions/admin/StepNavAccordionSummaryHeading';
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
import StepNavListItem from '@digigov/react-extensions/admin/StepNavListItem';
|
|
14
|
-
export { StepNavAccordion, StepNavAccordionContent, StepNavAccordionSummary, StepNavAccordionSummaryHeading, StepNavAccordionHeadingTitle, StepNavAccordionHeadingText, StepNavCircleΝumber, StepNavAccordionOpened, StepNavAccordionClosed, StepNav, StepNavControls, StepNavList, StepNavListItem };
|
|
10
|
+
import StepNavAccordionHeadingTitle from '@digigov/react-extensions/admin/StepNavAccordionHeadingTitle';
|
|
11
|
+
import StepNavAccordionHeadingText from '@digigov/react-extensions/admin/StepNavAccordionHeadingText';
|
|
12
|
+
export { StepNavAccordion, StepNavAccordionContent, StepNavAccordionSummary, StepNavAccordionSummaryHeading, StepNavAccordionHeadingTitle, StepNavAccordionHeadingText, StepNavCircleNumber, StepNav, StepNavControls, StepNavList, StepNavListItem };
|
|
15
13
|
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';
|
|
3
2
|
import { LinkBase } from '@digigov/ui/core/Link';
|
|
4
3
|
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';
|
|
3
2
|
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';
|
|
6
3
|
import { Hint } from '@digigov/ui/typography/Hint';
|
|
7
4
|
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/esm/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';
|
|
14
12
|
import { APIProvider, useResource, useResourceAction, useResourceMany, APIErrors } from '@digigov/ui/api/index';
|
|
15
13
|
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/esm/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 { getQueryKey, processResponse } from '@digigov/ui/api/utils';
|
|
8
8
|
import { useQuery, queryCache } from 'react-query';
|
|
9
9
|
import { useAPI } from '@digigov/ui/api';
|
|
10
|
-
import {
|
|
10
|
+
import { useState } from 'react';
|
|
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';
|
|
8
9
|
import { useMutation } from 'react-query';
|
|
9
10
|
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';
|
|
11
12
|
import { usePaginatedQuery, queryCache } from 'react-query';
|
|
12
13
|
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,8 +1,9 @@
|
|
|
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';
|
|
4
2
|
import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
|
|
5
3
|
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';
|
|
6
7
|
|
|
7
8
|
var _ref = /*#__PURE__*/React.createElement(Footer, null, /*#__PURE__*/React.createElement(FooterMeta, null, /*#__PURE__*/React.createElement(FooterMetaItem, {
|
|
8
9
|
grow: true
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Footer
|
|
3
|
-
import { Link } from '@digigov/ui/core/Link';
|
|
4
|
-
import { SectionBreak } from '@digigov/ui/core/SectionBreak';
|
|
5
|
-
import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
2
|
+
import { Footer } from '@digigov/ui/app/Footer';
|
|
6
3
|
import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
|
|
7
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';
|
|
7
|
+
import { Link } from '@digigov/ui/core/Link';
|
|
8
|
+
import { SectionBreak } from '@digigov/ui/core/SectionBreak';
|
|
8
9
|
import logo1 from '@digigov/ui/govgr/images/greek-government-base64';
|
|
9
10
|
import logo2 from '@digigov/ui/govgr/images/grnet-logo-base64';
|
|
10
11
|
|
|
@@ -1,9 +1,10 @@
|
|
|
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';
|
|
5
2
|
import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
|
|
6
3
|
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';
|
|
7
8
|
|
|
8
9
|
var _ref = /*#__PURE__*/React.createElement(Footer, null, /*#__PURE__*/React.createElement(FooterMeta, null, /*#__PURE__*/React.createElement(FooterMetaItem, {
|
|
9
10
|
grow: true
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Footer
|
|
3
|
-
import { Link } from '@digigov/ui/core/Link';
|
|
4
|
-
import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
2
|
+
import { Footer } from '@digigov/ui/app/Footer';
|
|
5
3
|
import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
|
|
6
4
|
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';
|
|
7
8
|
import logo1 from '@digigov/ui/govgr/images/greek-government-base64';
|
|
8
9
|
import logo2 from '@digigov/ui/govgr/images/grnet-logo-base64';
|
|
9
10
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Footer
|
|
3
|
-
import { Link } from '@digigov/ui/core/Link';
|
|
4
|
-
import { SectionBreak } from '@digigov/ui/core/SectionBreak';
|
|
5
|
-
import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
|
|
2
|
+
import { Footer } from '@digigov/ui/app/Footer';
|
|
6
3
|
import { Copyright } from '@digigov/ui/govgr/Footer/Copyright';
|
|
7
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';
|
|
7
|
+
import { Link } from '@digigov/ui/core/Link';
|
|
8
|
+
import { SectionBreak } from '@digigov/ui/core/SectionBreak';
|
|
8
9
|
|
|
9
10
|
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, {
|
|
10
11
|
columns: 2
|
|
@@ -1,8 +1,9 @@
|
|
|
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';
|
|
4
2
|
import { Copyright, getCopyright } from '@digigov/ui/govgr/Footer/Copyright';
|
|
5
3
|
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';
|
|
6
7
|
|
|
7
8
|
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");
|
|
8
9
|
|
|
@@ -28,6 +28,22 @@
|
|
|
28
28
|
"title": "Keyboard navigation"
|
|
29
29
|
}
|
|
30
30
|
]
|
|
31
|
+
},
|
|
32
|
+
"digigov-ui-app-header--with-header-navigation": {
|
|
33
|
+
"actionSets": [
|
|
34
|
+
{
|
|
35
|
+
"actions": [
|
|
36
|
+
{
|
|
37
|
+
"name": "hover",
|
|
38
|
+
"args": {
|
|
39
|
+
"selector": "html>body>div:nth-child(5)>div>header>div>div:nth-child(2)>details>summary"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"id": "CweCKhM6Ql7t",
|
|
44
|
+
"title": "Hover on dropdown"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
31
47
|
}
|
|
32
48
|
}
|
|
33
49
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Header } from '@digigov/ui/app/Header';
|
|
3
|
-
import { HeaderContent } from '@digigov/ui/app/Header/HeaderContent';
|
|
4
3
|
import { HeaderSection } from '@digigov/ui/app/Header/HeaderSection';
|
|
4
|
+
import { HeaderContent } from '@digigov/ui/app/Header/HeaderContent';
|
|
5
5
|
import { GovGRLogo } from '@digigov/ui/govgr/GovGRLogo';
|
|
6
6
|
|
|
7
7
|
var _ref = /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(HeaderSection, null, /*#__PURE__*/React.createElement(HeaderContent, null, /*#__PURE__*/React.createElement(GovGRLogo, {
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ArrowIcon, BurgerIcon, MoreVertIcon } from "@digigov/ui";
|
|
3
|
-
import { Dropdown, DropdownButton, DropdownContent } from '@digigov/ui/admin';
|
|
4
2
|
import Header from '@digigov/ui/app/Header';
|
|
5
|
-
import HeaderContent from '@digigov/ui/app/Header/HeaderContent';
|
|
6
|
-
import HeaderNavMenuContent from '@digigov/ui/app/Header/HeaderNavMenuContent';
|
|
7
3
|
import HeaderSection from '@digigov/ui/app/Header/HeaderSection';
|
|
4
|
+
import HeaderNavMenuContent from '@digigov/ui/app/Header/HeaderNavMenuContent';
|
|
8
5
|
import HeaderTitle from '@digigov/ui/app/Header/HeaderTitle';
|
|
9
6
|
import NavList from '@digigov/ui/core/NavList/NavList';
|
|
10
7
|
import NavListItem from '@digigov/ui/core/NavList/NavListItem';
|
|
11
8
|
import NavListItemLink from '@digigov/ui/core/NavList/NavListItemLink';
|
|
9
|
+
import HeaderContent from '@digigov/ui/app/Header/HeaderContent';
|
|
12
10
|
import GovGRLogo from '@digigov/ui/govgr/GovGRLogo';
|
|
13
11
|
import { Top } from '@digigov/ui/layouts/Basic';
|
|
12
|
+
import { ArrowIcon } from '@digigov/ui';
|
|
13
|
+
import { Dropdown, DropdownButton, DropdownContent } from '@digigov/ui/admin';
|
|
14
|
+
import { BurgerIcon, MoreVertIcon } from '@digigov/ui';
|
|
14
15
|
|
|
15
16
|
var _ref = /*#__PURE__*/React.createElement(Top, null, /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(HeaderSection, null, /*#__PURE__*/React.createElement(HeaderContent, null, /*#__PURE__*/React.createElement(GovGRLogo, null), /*#__PURE__*/React.createElement(HeaderTitle, {
|
|
16
17
|
href: "#"
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { SectionBreak } from '@digigov/ui';
|
|
4
3
|
import { Header } from '@digigov/ui/app/Header';
|
|
5
|
-
import { HeaderContent } from '@digigov/ui/app/Header/HeaderContent';
|
|
6
4
|
import { HeaderSection } from '@digigov/ui/app/Header/HeaderSection';
|
|
5
|
+
import { HeaderContent } from '@digigov/ui/app/Header/HeaderContent';
|
|
7
6
|
import { Nav } from '@digigov/ui/core/NavList/Nav';
|
|
8
7
|
import { NavList } from '@digigov/ui/core/NavList/NavList';
|
|
9
8
|
import { NavListItem } from '@digigov/ui/core/NavList/NavListItem';
|
|
10
9
|
import { GovGRLogo } from '@digigov/ui/govgr/GovGRLogo';
|
|
11
|
-
import { useNavList } from '@digigov/ui/hooks/useNavList';
|
|
12
10
|
import { Top } from '@digigov/ui/layouts/Basic';
|
|
11
|
+
import { SectionBreak } from '@digigov/ui';
|
|
12
|
+
import { useNavList } from '@digigov/ui/hooks/useNavList';
|
|
13
13
|
|
|
14
14
|
var _ref = /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(HeaderSection, null, /*#__PURE__*/React.createElement(HeaderContent, null, /*#__PURE__*/React.createElement(GovGRLogo, {
|
|
15
15
|
href: "#"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Header } from '@digigov/ui/app/Header';
|
|
3
|
-
import { HeaderContent } from '@digigov/ui/app/Header/HeaderContent';
|
|
4
3
|
import { HeaderSection } from '@digigov/ui/app/Header/HeaderSection';
|
|
5
|
-
import {
|
|
4
|
+
import { HeaderContent } from '@digigov/ui/app/Header/HeaderContent';
|
|
6
5
|
import { GovGRLogo } from '@digigov/ui/govgr/GovGRLogo';
|
|
6
|
+
import { HeaderTitle } from '@digigov/ui/app/Header/HeaderTitle';
|
|
7
7
|
|
|
8
8
|
var _ref = /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(HeaderSection, null, /*#__PURE__*/React.createElement(HeaderContent, null, /*#__PURE__*/React.createElement(GovGRLogo, {
|
|
9
9
|
href: "#"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Header } from '@digigov/ui/app/Header';
|
|
3
|
+
import { HeaderSection } from '@digigov/ui/app/Header/HeaderSection';
|
|
3
4
|
import { HeaderContent } from '@digigov/ui/app/Header/HeaderContent';
|
|
5
|
+
import { GovGRLogo } from '@digigov/ui/govgr/GovGRLogo';
|
|
4
6
|
import { HeaderSecondaryLogo } from '@digigov/ui/app/Header/HeaderSecondaryLogo';
|
|
5
|
-
import { HeaderSection } from '@digigov/ui/app/Header/HeaderSection';
|
|
6
7
|
import { HeaderTitle } from '@digigov/ui/app/Header/HeaderTitle';
|
|
7
|
-
import { GovGRLogo } from '@digigov/ui/govgr/GovGRLogo';
|
|
8
8
|
import logo3 from '@digigov/ui/govgr/images/minedu-logo-base64';
|
|
9
9
|
|
|
10
10
|
var _ref = /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(HeaderSection, null, /*#__PURE__*/React.createElement(HeaderContent, null, /*#__PURE__*/React.createElement(GovGRLogo, {
|