@egen-civitas/esm-styleguide 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/_all.scss +29 -0
- package/dist/_carbon-bridge.scss +194 -0
- package/dist/_glass.scss +75 -0
- package/dist/_overrides.scss +767 -0
- package/dist/_panel.scss +123 -0
- package/dist/_vars.scss +111 -0
- package/dist/brand.d.ts +8 -0
- package/dist/brand.d.ts.map +1 -0
- package/dist/brand.js +18 -0
- package/dist/breakpoints/index.d.ts +12 -0
- package/dist/breakpoints/index.d.ts.map +1 -0
- package/dist/breakpoints/index.js +28 -0
- package/dist/cards/card-header.component.d.ts +12 -0
- package/dist/cards/card-header.component.d.ts.map +1 -0
- package/dist/cards/card-header.component.js +22 -0
- package/dist/cards/card-header.module.scss +45 -0
- package/dist/cards/card-header.stories.js +32 -0
- package/dist/cards/decorated-card/_decoration-bleed.scss +26 -0
- package/dist/cards/decorated-card/card-decorations.d.ts +9 -0
- package/dist/cards/decorated-card/card-decorations.d.ts.map +1 -0
- package/dist/cards/decorated-card/card-decorations.js +106 -0
- package/dist/cards/decorated-card/decorated-card.component.d.ts +25 -0
- package/dist/cards/decorated-card/decorated-card.component.d.ts.map +1 -0
- package/dist/cards/decorated-card/decorated-card.component.js +134 -0
- package/dist/cards/decorated-card/decorated-card.module.scss +357 -0
- package/dist/cards/decorated-card/decorated-card.types.d.ts +26 -0
- package/dist/cards/decorated-card/decorated-card.types.d.ts.map +1 -0
- package/dist/cards/decorated-card/decorated-card.types.js +1 -0
- package/dist/cards/decorated-card/index.d.ts +3 -0
- package/dist/cards/decorated-card/index.d.ts.map +1 -0
- package/dist/cards/decorated-card/index.js +2 -0
- package/dist/cards/index.d.ts +3 -0
- package/dist/cards/index.d.ts.map +1 -0
- package/dist/cards/index.js +2 -0
- package/dist/carousel/circular-gallery/circular-gallery.component.d.ts +21 -0
- package/dist/carousel/circular-gallery/circular-gallery.component.d.ts.map +1 -0
- package/dist/carousel/circular-gallery/circular-gallery.component.js +130 -0
- package/dist/carousel/circular-gallery/circular-gallery.module.scss +165 -0
- package/dist/carousel/circular-gallery/circular-gallery.types.d.ts +17 -0
- package/dist/carousel/circular-gallery/circular-gallery.types.d.ts.map +1 -0
- package/dist/carousel/circular-gallery/circular-gallery.types.js +1 -0
- package/dist/carousel/circular-gallery/gallery-image.component.d.ts +23 -0
- package/dist/carousel/circular-gallery/gallery-image.component.d.ts.map +1 -0
- package/dist/carousel/circular-gallery/gallery-image.component.js +151 -0
- package/dist/carousel/circular-gallery/gallery-tabs.component.d.ts +10 -0
- package/dist/carousel/circular-gallery/gallery-tabs.component.d.ts.map +1 -0
- package/dist/carousel/circular-gallery/gallery-tabs.component.js +54 -0
- package/dist/carousel/circular-gallery/index.d.ts +3 -0
- package/dist/carousel/circular-gallery/index.d.ts.map +1 -0
- package/dist/carousel/circular-gallery/index.js +2 -0
- package/dist/carousel/image-swiper/image-swiper.component.d.ts +18 -0
- package/dist/carousel/image-swiper/image-swiper.component.d.ts.map +1 -0
- package/dist/carousel/image-swiper/image-swiper.component.js +200 -0
- package/dist/carousel/image-swiper/image-swiper.module.scss +43 -0
- package/dist/carousel/image-swiper/image-swiper.types.d.ts +17 -0
- package/dist/carousel/image-swiper/image-swiper.types.d.ts.map +1 -0
- package/dist/carousel/image-swiper/image-swiper.types.js +1 -0
- package/dist/carousel/image-swiper/index.d.ts +3 -0
- package/dist/carousel/image-swiper/index.d.ts.map +1 -0
- package/dist/carousel/image-swiper/index.js +2 -0
- package/dist/carousel/index.d.ts +5 -0
- package/dist/carousel/index.d.ts.map +1 -0
- package/dist/carousel/index.js +9 -0
- package/dist/carousel/slider/carousel.component.d.ts +29 -0
- package/dist/carousel/slider/carousel.component.d.ts.map +1 -0
- package/dist/carousel/slider/carousel.component.js +108 -0
- package/dist/carousel/slider/index.d.ts +9 -0
- package/dist/carousel/slider/index.d.ts.map +1 -0
- package/dist/carousel/slider/index.js +7 -0
- package/dist/carousel/slider/slider-container.component.d.ts +11 -0
- package/dist/carousel/slider/slider-container.component.d.ts.map +1 -0
- package/dist/carousel/slider/slider-container.component.js +21 -0
- package/dist/carousel/slider/slider-dot-button.component.d.ts +12 -0
- package/dist/carousel/slider/slider-dot-button.component.d.ts.map +1 -0
- package/dist/carousel/slider/slider-dot-button.component.js +29 -0
- package/dist/carousel/slider/slider.component.d.ts +11 -0
- package/dist/carousel/slider/slider.component.d.ts.map +1 -0
- package/dist/carousel/slider/slider.component.js +17 -0
- package/dist/carousel/slider/slider.context.d.ts +16 -0
- package/dist/carousel/slider/slider.context.d.ts.map +1 -0
- package/dist/carousel/slider/slider.context.js +9 -0
- package/dist/carousel/slider/slider.module.scss +176 -0
- package/dist/carousel/slider/slider.types.d.ts +40 -0
- package/dist/carousel/slider/slider.types.d.ts.map +1 -0
- package/dist/carousel/slider/slider.types.js +1 -0
- package/dist/carousel/slider/thumbs-slider.component.d.ts +16 -0
- package/dist/carousel/slider/thumbs-slider.component.d.ts.map +1 -0
- package/dist/carousel/slider/thumbs-slider.component.js +45 -0
- package/dist/carousel/testimonial-card/index.d.ts +4 -0
- package/dist/carousel/testimonial-card/index.d.ts.map +1 -0
- package/dist/carousel/testimonial-card/index.js +3 -0
- package/dist/carousel/testimonial-card/testimonial-card-stack.component.d.ts +29 -0
- package/dist/carousel/testimonial-card/testimonial-card-stack.component.d.ts.map +1 -0
- package/dist/carousel/testimonial-card/testimonial-card-stack.component.js +79 -0
- package/dist/carousel/testimonial-card/testimonial-card-stack.module.scss +18 -0
- package/dist/carousel/testimonial-card/testimonial-card.component.d.ts +36 -0
- package/dist/carousel/testimonial-card/testimonial-card.component.d.ts.map +1 -0
- package/dist/carousel/testimonial-card/testimonial-card.component.js +98 -0
- package/dist/carousel/testimonial-card/testimonial-card.module.scss +73 -0
- package/dist/carousel/testimonial-card/testimonial-card.types.d.ts +65 -0
- package/dist/carousel/testimonial-card/testimonial-card.types.d.ts.map +1 -0
- package/dist/carousel/testimonial-card/testimonial-card.types.js +1 -0
- package/dist/cascading-nav-dropdown/cascading-nav-dropdown.component.d.ts +33 -0
- package/dist/cascading-nav-dropdown/cascading-nav-dropdown.component.d.ts.map +1 -0
- package/dist/cascading-nav-dropdown/cascading-nav-dropdown.component.js +195 -0
- package/dist/cascading-nav-dropdown/cascading-nav-dropdown.module.scss +210 -0
- package/dist/cascading-nav-dropdown/cascading-nav-dropdown.types.d.ts +36 -0
- package/dist/cascading-nav-dropdown/cascading-nav-dropdown.types.d.ts.map +1 -0
- package/dist/cascading-nav-dropdown/cascading-nav-dropdown.types.js +1 -0
- package/dist/cascading-nav-dropdown/column-with-search.component.d.ts +15 -0
- package/dist/cascading-nav-dropdown/column-with-search.component.d.ts.map +1 -0
- package/dist/cascading-nav-dropdown/column-with-search.component.js +99 -0
- package/dist/cascading-nav-dropdown/index.d.ts +4 -0
- package/dist/cascading-nav-dropdown/index.d.ts.map +1 -0
- package/dist/cascading-nav-dropdown/index.js +3 -0
- package/dist/classification-tags/classification-tags.component.d.ts +32 -0
- package/dist/classification-tags/classification-tags.component.d.ts.map +1 -0
- package/dist/classification-tags/classification-tags.component.js +40 -0
- package/dist/classification-tags/index.d.ts +2 -0
- package/dist/classification-tags/index.d.ts.map +1 -0
- package/dist/classification-tags/index.js +1 -0
- package/dist/components/_breadcrumbs.scss +11 -0
- package/dist/components/_canvas.scss +8 -0
- package/dist/components/_general.scss +121 -0
- package/dist/components/_main-content.scss +24 -0
- package/dist/components/_panel-overrides.scss +150 -0
- package/dist/config-schema.d.ts +43 -0
- package/dist/config-schema.d.ts.map +1 -0
- package/dist/config-schema.js +107 -0
- package/dist/containers/folder-gallery/folder-gallery.component.d.ts +24 -0
- package/dist/containers/folder-gallery/folder-gallery.component.d.ts.map +1 -0
- package/dist/containers/folder-gallery/folder-gallery.component.js +168 -0
- package/dist/containers/folder-gallery/folder-gallery.module.scss +201 -0
- package/dist/containers/folder-gallery/folder-gallery.types.d.ts +27 -0
- package/dist/containers/folder-gallery/folder-gallery.types.d.ts.map +1 -0
- package/dist/containers/folder-gallery/folder-gallery.types.js +1 -0
- package/dist/containers/folder-gallery/index.d.ts +3 -0
- package/dist/containers/folder-gallery/index.d.ts.map +1 -0
- package/dist/containers/folder-gallery/index.js +2 -0
- package/dist/containers/index.d.ts +3 -0
- package/dist/containers/index.d.ts.map +1 -0
- package/dist/containers/index.js +8 -0
- package/dist/containers/layout-grid/index.d.ts +3 -0
- package/dist/containers/layout-grid/index.d.ts.map +1 -0
- package/dist/containers/layout-grid/index.js +2 -0
- package/dist/containers/layout-grid/layout-grid.component.d.ts +30 -0
- package/dist/containers/layout-grid/layout-grid.component.d.ts.map +1 -0
- package/dist/containers/layout-grid/layout-grid.component.js +152 -0
- package/dist/containers/layout-grid/layout-grid.module.scss +143 -0
- package/dist/containers/layout-grid/layout-grid.types.d.ts +19 -0
- package/dist/containers/layout-grid/layout-grid.types.d.ts.map +1 -0
- package/dist/containers/layout-grid/layout-grid.types.js +1 -0
- package/dist/custom-overflow-menu/custom-overflow-menu.component.d.ts +24 -0
- package/dist/custom-overflow-menu/custom-overflow-menu.component.d.ts.map +1 -0
- package/dist/custom-overflow-menu/custom-overflow-menu.component.js +133 -0
- package/dist/custom-overflow-menu/custom-overflow-menu.module.scss +38 -0
- package/dist/custom-overflow-menu/custom-overflow-menu.stories.js +64 -0
- package/dist/custom-overflow-menu/index.d.ts +2 -0
- package/dist/custom-overflow-menu/index.d.ts.map +1 -0
- package/dist/custom-overflow-menu/index.js +1 -0
- package/dist/dashboard-extension/dashboard.module.scss +13 -0
- package/dist/dashboard-extension/index.d.ts +13 -0
- package/dist/dashboard-extension/index.d.ts.map +1 -0
- package/dist/dashboard-extension/index.js +59 -0
- package/dist/data-table-batch-actions/data-table-batch-actions.component.d.ts +5 -0
- package/dist/data-table-batch-actions/data-table-batch-actions.component.d.ts.map +1 -0
- package/dist/data-table-batch-actions/data-table-batch-actions.component.js +24 -0
- package/dist/data-table-batch-actions/index.d.ts +2 -0
- package/dist/data-table-batch-actions/index.d.ts.map +1 -0
- package/dist/data-table-batch-actions/index.js +1 -0
- package/dist/datepicker/auto-close-dialog.component.d.ts +7 -0
- package/dist/datepicker/auto-close-dialog.component.d.ts.map +1 -0
- package/dist/datepicker/auto-close-dialog.component.js +16 -0
- package/dist/datepicker/calendar-popover.component.d.ts +28 -0
- package/dist/datepicker/calendar-popover.component.d.ts.map +1 -0
- package/dist/datepicker/calendar-popover.component.js +68 -0
- package/dist/datepicker/date-picker-icon.component.d.ts +9 -0
- package/dist/datepicker/date-picker-icon.component.d.ts.map +1 -0
- package/dist/datepicker/date-picker-icon.component.js +23 -0
- package/dist/datepicker/date-picker-input.component.d.ts +12 -0
- package/dist/datepicker/date-picker-input.component.d.ts.map +1 -0
- package/dist/datepicker/date-picker-input.component.js +70 -0
- package/dist/datepicker/date-range-picker.stories.js +44 -0
- package/dist/datepicker/date-segment.component.d.ts +11 -0
- package/dist/datepicker/date-segment.component.d.ts.map +1 -0
- package/dist/datepicker/date-segment.component.js +53 -0
- package/dist/datepicker/datepicker.module.scss +502 -0
- package/dist/datepicker/datepicker.stories.js +47 -0
- package/dist/datepicker/defaults.d.ts +10 -0
- package/dist/datepicker/defaults.d.ts.map +1 -0
- package/dist/datepicker/defaults.js +8 -0
- package/dist/datepicker/egen-date-picker.component.d.ts +27 -0
- package/dist/datepicker/egen-date-picker.component.d.ts.map +1 -0
- package/dist/datepicker/egen-date-picker.component.js +142 -0
- package/dist/datepicker/egen-date-range-picker.component.d.ts +22 -0
- package/dist/datepicker/egen-date-range-picker.component.d.ts.map +1 -0
- package/dist/datepicker/egen-date-range-picker.component.js +172 -0
- package/dist/datepicker/hooks.d.ts +911 -0
- package/dist/datepicker/hooks.d.ts.map +1 -0
- package/dist/datepicker/hooks.js +103 -0
- package/dist/datepicker/i18n-wrapper.component.d.ts +7 -0
- package/dist/datepicker/i18n-wrapper.component.d.ts.map +1 -0
- package/dist/datepicker/i18n-wrapper.component.js +8 -0
- package/dist/datepicker/index.d.ts +3 -0
- package/dist/datepicker/index.d.ts.map +1 -0
- package/dist/datepicker/index.js +2 -0
- package/dist/datepicker/month-year.component.d.ts +11 -0
- package/dist/datepicker/month-year.component.d.ts.map +1 -0
- package/dist/datepicker/month-year.component.js +80 -0
- package/dist/datepicker/types.d.ts +31 -0
- package/dist/datepicker/types.d.ts.map +1 -0
- package/dist/datepicker/types.js +3 -0
- package/dist/datepicker/utils.d.ts +16 -0
- package/dist/datepicker/utils.d.ts.map +1 -0
- package/dist/datepicker/utils.js +35 -0
- package/dist/declarations.d.js +0 -0
- package/dist/dialogs/card-modal/card-modal.animations.d.ts +5 -0
- package/dist/dialogs/card-modal/card-modal.animations.d.ts.map +1 -0
- package/dist/dialogs/card-modal/card-modal.animations.js +102 -0
- package/dist/dialogs/card-modal/card-modal.component.d.ts +40 -0
- package/dist/dialogs/card-modal/card-modal.component.d.ts.map +1 -0
- package/dist/dialogs/card-modal/card-modal.component.js +284 -0
- package/dist/dialogs/card-modal/card-modal.module.scss +103 -0
- package/dist/dialogs/card-modal/card-modal.types.d.ts +64 -0
- package/dist/dialogs/card-modal/card-modal.types.d.ts.map +1 -0
- package/dist/dialogs/card-modal/card-modal.types.js +1 -0
- package/dist/dialogs/card-modal/index.d.ts +4 -0
- package/dist/dialogs/card-modal/index.d.ts.map +1 -0
- package/dist/dialogs/card-modal/index.js +3 -0
- package/dist/dialogs/index.d.ts +2 -0
- package/dist/dialogs/index.d.ts.map +1 -0
- package/dist/dialogs/index.js +12 -0
- package/dist/empty-card/empty-card-registration.d.ts +2 -0
- package/dist/empty-card/empty-card-registration.d.ts.map +1 -0
- package/dist/empty-card/empty-card-registration.js +5 -0
- package/dist/empty-card/empty-card.component.d.ts +18 -0
- package/dist/empty-card/empty-card.component.d.ts.map +1 -0
- package/dist/empty-card/empty-card.component.js +52 -0
- package/dist/empty-card/empty-card.module.scss +27 -0
- package/dist/empty-card/empty-card.stories.js +23 -0
- package/dist/empty-card/empty-data-illustration.svg +1 -0
- package/dist/empty-card/index.d.ts +2 -0
- package/dist/empty-card/index.d.ts.map +1 -0
- package/dist/empty-card/index.js +1 -0
- package/dist/entity-banner/actions-menu/entity-banner-actions-menu.component.d.ts +19 -0
- package/dist/entity-banner/actions-menu/entity-banner-actions-menu.component.d.ts.map +1 -0
- package/dist/entity-banner/actions-menu/entity-banner-actions-menu.component.js +137 -0
- package/dist/entity-banner/actions-menu/entity-banner-actions-menu.module.scss +23 -0
- package/dist/entity-banner/contact-details/entity-banner-contact-details.component.d.ts +9 -0
- package/dist/entity-banner/contact-details/entity-banner-contact-details.component.d.ts.map +1 -0
- package/dist/entity-banner/contact-details/entity-banner-contact-details.component.js +207 -0
- package/dist/entity-banner/contact-details/entity-banner-contact-details.module.scss +47 -0
- package/dist/entity-banner/contact-details/entity-banner-toggle-contact-details-button.component.d.ts +12 -0
- package/dist/entity-banner/contact-details/entity-banner-toggle-contact-details-button.component.d.ts.map +1 -0
- package/dist/entity-banner/contact-details/entity-banner-toggle-contact-details-button.component.js +15 -0
- package/dist/entity-banner/contact-details/types.d.ts +48 -0
- package/dist/entity-banner/contact-details/types.d.ts.map +1 -0
- package/dist/entity-banner/contact-details/types.js +1 -0
- package/dist/entity-banner/contact-details/useEntityAttributes.d.ts +14 -0
- package/dist/entity-banner/contact-details/useEntityAttributes.d.ts.map +1 -0
- package/dist/entity-banner/contact-details/useEntityAttributes.js +12 -0
- package/dist/entity-banner/contact-details/useEntityGroupsForEntity.d.ts +11 -0
- package/dist/entity-banner/contact-details/useEntityGroupsForEntity.d.ts.map +1 -0
- package/dist/entity-banner/contact-details/useEntityGroupsForEntity.js +9 -0
- package/dist/entity-banner/contact-details/useRelationships.d.ts +35 -0
- package/dist/entity-banner/contact-details/useRelationships.d.ts.map +1 -0
- package/dist/entity-banner/contact-details/useRelationships.js +37 -0
- package/dist/entity-banner/entity-info/entity-banner-entity-identifiers.component.d.ts +9 -0
- package/dist/entity-banner/entity-info/entity-banner-entity-identifiers.component.d.ts.map +1 -0
- package/dist/entity-banner/entity-info/entity-banner-entity-identifiers.component.js +77 -0
- package/dist/entity-banner/entity-info/entity-banner-entity-info.component.d.ts +9 -0
- package/dist/entity-banner/entity-info/entity-banner-entity-info.component.d.ts.map +1 -0
- package/dist/entity-banner/entity-info/entity-banner-entity-info.component.js +72 -0
- package/dist/entity-banner/entity-info/entity-banner-entity-info.module.scss +165 -0
- package/dist/entity-banner/index.d.ts +5 -0
- package/dist/entity-banner/index.d.ts.map +1 -0
- package/dist/entity-banner/index.js +4 -0
- package/dist/entity-photo/entity-photo.component.d.ts +21 -0
- package/dist/entity-photo/entity-photo.component.d.ts.map +1 -0
- package/dist/entity-photo/entity-photo.component.js +111 -0
- package/dist/entity-photo/entity-photo.module.scss +21 -0
- package/dist/entity-photo/index.d.ts +3 -0
- package/dist/entity-photo/index.d.ts.map +1 -0
- package/dist/entity-photo/index.js +2 -0
- package/dist/entity-photo/placeholder-icon.component.d.ts +9 -0
- package/dist/entity-photo/placeholder-icon.component.d.ts.map +1 -0
- package/dist/entity-photo/placeholder-icon.component.js +26 -0
- package/dist/entity-photo/useEntityPhoto.d.ts +29 -0
- package/dist/entity-photo/useEntityPhoto.d.ts.map +1 -0
- package/dist/entity-photo/useEntityPhoto.js +37 -0
- package/dist/error-state/error-state.component.d.ts +11 -0
- package/dist/error-state/error-state.component.d.ts.map +1 -0
- package/dist/error-state/error-state.component.js +32 -0
- package/dist/error-state/error-state.module.scss +21 -0
- package/dist/error-state/error-state.stories.js +32 -0
- package/dist/error-state/index.d.ts +2 -0
- package/dist/error-state/index.d.ts.map +1 -0
- package/dist/error-state/index.js +1 -0
- package/dist/fields/dynamic-field.component.d.ts +39 -0
- package/dist/fields/dynamic-field.component.d.ts.map +1 -0
- package/dist/fields/dynamic-field.component.js +169 -0
- package/dist/fields/dynamic-field.module.scss +474 -0
- package/dist/fields/dynamic-field.stories.js +103 -0
- package/dist/fields/dynamic-field.types.d.ts +70 -0
- package/dist/fields/dynamic-field.types.d.ts.map +1 -0
- package/dist/fields/dynamic-field.types.js +7 -0
- package/dist/fields/field-icon.component.d.ts +11 -0
- package/dist/fields/field-icon.component.d.ts.map +1 -0
- package/dist/fields/field-icon.component.js +16 -0
- package/dist/fields/index.d.ts +3 -0
- package/dist/fields/index.d.ts.map +1 -0
- package/dist/fields/index.js +2 -0
- package/dist/fields/kinetic-label.component.d.ts +16 -0
- package/dist/fields/kinetic-label.component.d.ts.map +1 -0
- package/dist/fields/kinetic-label.component.js +53 -0
- package/dist/fields/use-field-validation.hook.d.ts +12 -0
- package/dist/fields/use-field-validation.hook.d.ts.map +1 -0
- package/dist/fields/use-field-validation.hook.js +72 -0
- package/dist/fields/validation-icon.component.d.ts +10 -0
- package/dist/fields/validation-icon.component.d.ts.map +1 -0
- package/dist/fields/validation-icon.component.js +40 -0
- package/dist/glass-card/index.d.ts +3 -0
- package/dist/glass-card/index.d.ts.map +1 -0
- package/dist/glass-card/index.js +2 -0
- package/dist/glass-card/liquid-glass-card.component.d.ts +23 -0
- package/dist/glass-card/liquid-glass-card.component.d.ts.map +1 -0
- package/dist/glass-card/liquid-glass-card.component.js +175 -0
- package/dist/glass-card/liquid-glass-card.module.scss +154 -0
- package/dist/glass-card/liquid-glass-card.types.d.ts +27 -0
- package/dist/glass-card/liquid-glass-card.types.d.ts.map +1 -0
- package/dist/glass-card/liquid-glass-card.types.js +1 -0
- package/dist/icons/error-filled.icon.d.ts +18 -0
- package/dist/icons/error-filled.icon.d.ts.map +1 -0
- package/dist/icons/error-filled.icon.js +22 -0
- package/dist/icons/icon-registration.d.ts +2 -0
- package/dist/icons/icon-registration.d.ts.map +1 -0
- package/dist/icons/icon-registration.js +191 -0
- package/dist/icons/icons.d.ts +334 -0
- package/dist/icons/icons.d.ts.map +1 -0
- package/dist/icons/icons.js +916 -0
- package/dist/icons/icons.module.scss +5 -0
- package/dist/icons/icons.stories.js +61 -0
- package/dist/icons/index.d.ts +3 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +2 -0
- package/dist/icons/svgs/activity.svg +1 -0
- package/dist/icons/svgs/add.svg +1 -0
- package/dist/icons/svgs/arrow-down.svg +1 -0
- package/dist/icons/svgs/arrow-left.svg +1 -0
- package/dist/icons/svgs/arrow-right.svg +1 -0
- package/dist/icons/svgs/arrow-up.svg +1 -0
- package/dist/icons/svgs/baby.svg +1 -0
- package/dist/icons/svgs/calendar--heat-map.svg +1 -0
- package/dist/icons/svgs/calendar.svg +1 -0
- package/dist/icons/svgs/caret-down.svg +1 -0
- package/dist/icons/svgs/caret-left.svg +1 -0
- package/dist/icons/svgs/caret-right.svg +1 -0
- package/dist/icons/svgs/caret-up.svg +1 -0
- package/dist/icons/svgs/chart-average.svg +1 -0
- package/dist/icons/svgs/chart-line.svg +1 -0
- package/dist/icons/svgs/checkmark--filled.svg +1 -0
- package/dist/icons/svgs/checkmark--outline.svg +1 -0
- package/dist/icons/svgs/chemistry.svg +1 -0
- package/dist/icons/svgs/chevron-down.svg +1 -0
- package/dist/icons/svgs/chevron-left.svg +1 -0
- package/dist/icons/svgs/chevron-right.svg +1 -0
- package/dist/icons/svgs/chevron-up.svg +1 -0
- package/dist/icons/svgs/close--filled.svg +1 -0
- package/dist/icons/svgs/close--outline.svg +1 -0
- package/dist/icons/svgs/close.svg +1 -0
- package/dist/icons/svgs/document-attachment.svg +1 -0
- package/dist/icons/svgs/document.svg +1 -0
- package/dist/icons/svgs/download.svg +1 -0
- package/dist/icons/svgs/drug-order.svg +1 -0
- package/dist/icons/svgs/edit.svg +1 -0
- package/dist/icons/svgs/event-schedule.svg +1 -0
- package/dist/icons/svgs/events.svg +1 -0
- package/dist/icons/svgs/gender-female.svg +1 -0
- package/dist/icons/svgs/gender-male.svg +1 -0
- package/dist/icons/svgs/gender-other.svg +1 -0
- package/dist/icons/svgs/gender-unknown.svg +1 -0
- package/dist/icons/svgs/generic-order-type.svg +1 -0
- package/dist/icons/svgs/group-access.svg +1 -0
- package/dist/icons/svgs/group.svg +1 -0
- package/dist/icons/svgs/hospital-bed.svg +1 -0
- package/dist/icons/svgs/image-medical.svg +1 -0
- package/dist/icons/svgs/information--filled.svg +1 -0
- package/dist/icons/svgs/information--square.svg +1 -0
- package/dist/icons/svgs/information.svg +1 -0
- package/dist/icons/svgs/inventory-management.svg +1 -0
- package/dist/icons/svgs/lab-order.svg +1 -0
- package/dist/icons/svgs/list-checked.svg +1 -0
- package/dist/icons/svgs/location.svg +1 -0
- package/dist/icons/svgs/material-order.svg +1 -0
- package/dist/icons/svgs/maximize.svg +1 -0
- package/dist/icons/svgs/medication.svg +1 -0
- package/dist/icons/svgs/message-queue.svg +1 -0
- package/dist/icons/svgs/microscope.svg +1 -0
- package/dist/icons/svgs/money.svg +1 -0
- package/dist/icons/svgs/mother.svg +1 -0
- package/dist/icons/svgs/movement.svg +1 -0
- package/dist/icons/svgs/overflow-menu--horizontal.svg +1 -0
- package/dist/icons/svgs/overflow-menu--vertical.svg +1 -0
- package/dist/icons/svgs/password.svg +1 -0
- package/dist/icons/svgs/pedestrian-family.svg +1 -0
- package/dist/icons/svgs/pen.svg +1 -0
- package/dist/icons/svgs/printer.svg +1 -0
- package/dist/icons/svgs/procedure-order.svg +1 -0
- package/dist/icons/svgs/programs.svg +1 -0
- package/dist/icons/svgs/referral-order.svg +1 -0
- package/dist/icons/svgs/renew.svg +1 -0
- package/dist/icons/svgs/report.svg +1 -0
- package/dist/icons/svgs/reset.svg +1 -0
- package/dist/icons/svgs/save.svg +1 -0
- package/dist/icons/svgs/search.svg +1 -0
- package/dist/icons/svgs/settings.svg +1 -0
- package/dist/icons/svgs/shopping-cart--arrow-down.svg +1 -0
- package/dist/icons/svgs/shopping-cart.svg +1 -0
- package/dist/icons/svgs/sticky-note-add.svg +1 -0
- package/dist/icons/svgs/switcher.svg +1 -0
- package/dist/icons/svgs/syringe.svg +1 -0
- package/dist/icons/svgs/table-of-contents.svg +1 -0
- package/dist/icons/svgs/table.svg +1 -0
- package/dist/icons/svgs/time.svg +1 -0
- package/dist/icons/svgs/tools.svg +1 -0
- package/dist/icons/svgs/translate.svg +1 -0
- package/dist/icons/svgs/trash-can.svg +1 -0
- package/dist/icons/svgs/tree-view--alt.svg +1 -0
- package/dist/icons/svgs/user-avatar.svg +1 -0
- package/dist/icons/svgs/user-follow.svg +1 -0
- package/dist/icons/svgs/user-xray.svg +1 -0
- package/dist/icons/svgs/user.svg +1 -0
- package/dist/icons/svgs/view-off.svg +1 -0
- package/dist/icons/svgs/view.svg +1 -0
- package/dist/icons/svgs/warning.svg +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +26 -0
- package/dist/internal.d.ts +43 -0
- package/dist/internal.d.ts.map +1 -0
- package/dist/internal.js +42 -0
- package/dist/left-nav/index.d.ts +24 -0
- package/dist/left-nav/index.d.ts.map +1 -0
- package/dist/left-nav/index.js +58 -0
- package/dist/left-nav/left-nav.module.scss +43 -0
- package/dist/location-picker/index.d.ts +2 -0
- package/dist/location-picker/index.d.ts.map +1 -0
- package/dist/location-picker/index.js +1 -0
- package/dist/location-picker/location-picker.component.d.ts +11 -0
- package/dist/location-picker/location-picker.component.d.ts.map +1 -0
- package/dist/location-picker/location-picker.component.js +114 -0
- package/dist/location-picker/location-picker.module.scss +71 -0
- package/dist/location-picker/location-picker.resource.d.ts +53 -0
- package/dist/location-picker/location-picker.resource.d.ts.map +1 -0
- package/dist/location-picker/location-picker.resource.js +98 -0
- package/dist/logo/_logo.scss +34 -0
- package/dist/logo/egen-logo-full.svg +1 -0
- package/dist/logo/egen-logo-icon.svg +1 -0
- package/dist/logo/egen-logo-partial.svg +1 -0
- package/dist/logo/egen-logo-white.svg +1 -0
- package/dist/logo/index.d.ts +8 -0
- package/dist/logo/index.d.ts.map +1 -0
- package/dist/logo/index.js +22 -0
- package/dist/master-detail/entity-detail-browser/entity-detail-browser.component.d.ts +30 -0
- package/dist/master-detail/entity-detail-browser/entity-detail-browser.component.d.ts.map +1 -0
- package/dist/master-detail/entity-detail-browser/entity-detail-browser.component.js +327 -0
- package/dist/master-detail/entity-detail-browser/entity-detail-browser.module.scss +335 -0
- package/dist/master-detail/entity-detail-browser/entity-detail-browser.types.d.ts +37 -0
- package/dist/master-detail/entity-detail-browser/entity-detail-browser.types.d.ts.map +1 -0
- package/dist/master-detail/entity-detail-browser/entity-detail-browser.types.js +1 -0
- package/dist/master-detail/entity-detail-browser/gradient-blur.component.d.ts +9 -0
- package/dist/master-detail/entity-detail-browser/gradient-blur.component.d.ts.map +1 -0
- package/dist/master-detail/entity-detail-browser/gradient-blur.component.js +16 -0
- package/dist/master-detail/entity-detail-browser/index.d.ts +4 -0
- package/dist/master-detail/entity-detail-browser/index.d.ts.map +1 -0
- package/dist/master-detail/entity-detail-browser/index.js +3 -0
- package/dist/master-detail/index.d.ts +2 -0
- package/dist/master-detail/index.d.ts.map +1 -0
- package/dist/master-detail/index.js +7 -0
- package/dist/modals/_modals.scss +13 -0
- package/dist/modals/index.d.ts +26 -0
- package/dist/modals/index.d.ts.map +1 -0
- package/dist/modals/index.js +173 -0
- package/dist/notifications/_actionable-notifications.scss +23 -0
- package/dist/notifications/_notifications.scss +22 -0
- package/dist/notifications/actionable-notification.component.d.ts +21 -0
- package/dist/notifications/actionable-notification.component.d.ts.map +1 -0
- package/dist/notifications/actionable-notification.component.js +26 -0
- package/dist/notifications/actionable-notification.stories.js +48 -0
- package/dist/notifications/active-actionable-notifications.component.d.ts +9 -0
- package/dist/notifications/active-actionable-notifications.component.d.ts.map +1 -0
- package/dist/notifications/active-actionable-notifications.component.js +21 -0
- package/dist/notifications/active-notifications.component.d.ts +9 -0
- package/dist/notifications/active-notifications.component.d.ts.map +1 -0
- package/dist/notifications/active-notifications.component.js +21 -0
- package/dist/notifications/index.d.ts +20 -0
- package/dist/notifications/index.d.ts.map +1 -0
- package/dist/notifications/index.js +78 -0
- package/dist/notifications/notification.component.d.ts +20 -0
- package/dist/notifications/notification.component.d.ts.map +1 -0
- package/dist/notifications/notification.component.js +15 -0
- package/dist/notifications/notification.stories.js +54 -0
- package/dist/numeric-datapoint/index.d.ts +4 -0
- package/dist/numeric-datapoint/index.d.ts.map +1 -0
- package/dist/numeric-datapoint/index.js +3 -0
- package/dist/numeric-datapoint/interpretation-utils.d.ts +27 -0
- package/dist/numeric-datapoint/interpretation-utils.d.ts.map +1 -0
- package/dist/numeric-datapoint/interpretation-utils.js +66 -0
- package/dist/numeric-datapoint/numeric-datapoint.component.d.ts +44 -0
- package/dist/numeric-datapoint/numeric-datapoint.component.d.ts.map +1 -0
- package/dist/numeric-datapoint/numeric-datapoint.component.js +110 -0
- package/dist/numeric-datapoint/numeric-datapoint.module.scss +141 -0
- package/dist/numeric-datapoint/use-concept-reference-range.d.ts +13 -0
- package/dist/numeric-datapoint/use-concept-reference-range.d.ts.map +1 -0
- package/dist/numeric-datapoint/use-concept-reference-range.js +31 -0
- package/dist/page-header/index.d.ts +2 -0
- package/dist/page-header/index.d.ts.map +1 -0
- package/dist/page-header/index.js +1 -0
- package/dist/page-header/page-header.component.d.ts +61 -0
- package/dist/page-header/page-header.component.d.ts.map +1 -0
- package/dist/page-header/page-header.component.js +89 -0
- package/dist/page-header/page-header.module.scss +28 -0
- package/dist/page-header/page-header.stories.js +21 -0
- package/dist/pagination/index.d.ts +2 -0
- package/dist/pagination/index.d.ts.map +1 -0
- package/dist/pagination/index.js +1 -0
- package/dist/pagination/pagination.component.d.ts +23 -0
- package/dist/pagination/pagination.component.d.ts.map +1 -0
- package/dist/pagination/pagination.component.js +49 -0
- package/dist/pagination/pagination.module.scss +66 -0
- package/dist/pagination/pagination.stories.js +45 -0
- package/dist/pictograms/index.d.ts +2 -0
- package/dist/pictograms/index.d.ts.map +1 -0
- package/dist/pictograms/index.js +1 -0
- package/dist/pictograms/pictogram-registration.d.ts +2 -0
- package/dist/pictograms/pictogram-registration.d.ts.map +1 -0
- package/dist/pictograms/pictogram-registration.js +62 -0
- package/dist/pictograms/pictograms.d.ts +66 -0
- package/dist/pictograms/pictograms.d.ts.map +1 -0
- package/dist/pictograms/pictograms.js +281 -0
- package/dist/pictograms/pictograms.module.scss +5 -0
- package/dist/pictograms/pictograms.stories.js +47 -0
- package/dist/pictograms/svgs/appointments.svg +1 -0
- package/dist/pictograms/svgs/assessment-1.svg +1 -0
- package/dist/pictograms/svgs/assessment-2.svg +1 -0
- package/dist/pictograms/svgs/blood-bank.svg +1 -0
- package/dist/pictograms/svgs/cardiology.svg +1 -0
- package/dist/pictograms/svgs/ct-scan.svg +1 -0
- package/dist/pictograms/svgs/dentistry.svg +1 -0
- package/dist/pictograms/svgs/emergency-department.svg +1 -0
- package/dist/pictograms/svgs/facility.svg +1 -0
- package/dist/pictograms/svgs/geriatrics.svg +1 -0
- package/dist/pictograms/svgs/gynaecology.svg +1 -0
- package/dist/pictograms/svgs/in-patient.svg +1 -0
- package/dist/pictograms/svgs/inventory.svg +1 -0
- package/dist/pictograms/svgs/labs-2.svg +1 -0
- package/dist/pictograms/svgs/labs.svg +1 -0
- package/dist/pictograms/svgs/obstetrics.svg +1 -0
- package/dist/pictograms/svgs/patient-search.svg +1 -0
- package/dist/pictograms/svgs/patients.svg +1 -0
- package/dist/pictograms/svgs/payments-desk.svg +1 -0
- package/dist/pictograms/svgs/pharmacy-1.svg +1 -0
- package/dist/pictograms/svgs/pharmacy-2.svg +1 -0
- package/dist/pictograms/svgs/registration.svg +1 -0
- package/dist/pictograms/svgs/service-queues.svg +1 -0
- package/dist/pictograms/svgs/transfer.svg +1 -0
- package/dist/pictograms/svgs/triage.svg +1 -0
- package/dist/pictograms/svgs/x-ray.svg +1 -0
- package/dist/public.d.ts +38 -0
- package/dist/public.d.ts.map +1 -0
- package/dist/public.js +34 -0
- package/dist/responsive-wrapper/index.d.ts +2 -0
- package/dist/responsive-wrapper/index.d.ts.map +1 -0
- package/dist/responsive-wrapper/index.js +1 -0
- package/dist/responsive-wrapper/responsive-wrapper.component.d.ts +12 -0
- package/dist/responsive-wrapper/responsive-wrapper.component.d.ts.map +1 -0
- package/dist/responsive-wrapper/responsive-wrapper.component.js +20 -0
- package/dist/responsive-wrapper/responsive-wrapper.stories.js +28 -0
- package/dist/selections/index.d.ts +3 -0
- package/dist/selections/index.d.ts.map +1 -0
- package/dist/selections/index.js +8 -0
- package/dist/selections/interactive-selector/index.d.ts +3 -0
- package/dist/selections/interactive-selector/index.d.ts.map +1 -0
- package/dist/selections/interactive-selector/index.js +2 -0
- package/dist/selections/interactive-selector/interactive-selector.component.d.ts +37 -0
- package/dist/selections/interactive-selector/interactive-selector.component.d.ts.map +1 -0
- package/dist/selections/interactive-selector/interactive-selector.component.js +154 -0
- package/dist/selections/interactive-selector/interactive-selector.module.scss +212 -0
- package/dist/selections/interactive-selector/interactive-selector.types.d.ts +32 -0
- package/dist/selections/interactive-selector/interactive-selector.types.d.ts.map +1 -0
- package/dist/selections/interactive-selector/interactive-selector.types.js +1 -0
- package/dist/selections/select-popover/index.d.ts +5 -0
- package/dist/selections/select-popover/index.d.ts.map +1 -0
- package/dist/selections/select-popover/index.js +4 -0
- package/dist/selections/select-popover/select-avatar.component.d.ts +9 -0
- package/dist/selections/select-popover/select-avatar.component.d.ts.map +1 -0
- package/dist/selections/select-popover/select-avatar.component.js +19 -0
- package/dist/selections/select-popover/select-content.component.d.ts +5 -0
- package/dist/selections/select-popover/select-content.component.d.ts.map +1 -0
- package/dist/selections/select-popover/select-content.component.js +198 -0
- package/dist/selections/select-popover/select-popover.module.scss +230 -0
- package/dist/selections/select-popover/select-popover.types.d.ts +56 -0
- package/dist/selections/select-popover/select-popover.types.d.ts.map +1 -0
- package/dist/selections/select-popover/select-popover.types.js +9 -0
- package/dist/selections/select-popover/select-trigger.component.d.ts +5 -0
- package/dist/selections/select-popover/select-trigger.component.d.ts.map +1 -0
- package/dist/selections/select-popover/select-trigger.component.js +46 -0
- package/dist/selections/select-popover/select.component.d.ts +19 -0
- package/dist/selections/select-popover/select.component.d.ts.map +1 -0
- package/dist/selections/select-popover/select.component.js +61 -0
- package/dist/sheet/index.d.ts +15 -0
- package/dist/sheet/index.d.ts.map +1 -0
- package/dist/sheet/index.js +13 -0
- package/dist/sheet/sheet-content.component.d.ts +21 -0
- package/dist/sheet/sheet-content.component.d.ts.map +1 -0
- package/dist/sheet/sheet-content.component.js +224 -0
- package/dist/sheet/sheet-overlay.component.d.ts +8 -0
- package/dist/sheet/sheet-overlay.component.d.ts.map +1 -0
- package/dist/sheet/sheet-overlay.component.js +36 -0
- package/dist/sheet/sheet-parts.component.d.ts +23 -0
- package/dist/sheet/sheet-parts.component.d.ts.map +1 -0
- package/dist/sheet/sheet-parts.component.js +20 -0
- package/dist/sheet/sheet-portal.component.d.ts +9 -0
- package/dist/sheet/sheet-portal.component.d.ts.map +1 -0
- package/dist/sheet/sheet-portal.component.js +17 -0
- package/dist/sheet/sheet-root.component.d.ts +25 -0
- package/dist/sheet/sheet-root.component.d.ts.map +1 -0
- package/dist/sheet/sheet-root.component.js +36 -0
- package/dist/sheet/sheet-trigger.component.d.ts +15 -0
- package/dist/sheet/sheet-trigger.component.d.ts.map +1 -0
- package/dist/sheet/sheet-trigger.component.js +45 -0
- package/dist/sheet/sheet.context.d.ts +16 -0
- package/dist/sheet/sheet.context.d.ts.map +1 -0
- package/dist/sheet/sheet.context.js +9 -0
- package/dist/sheet/sheet.module.scss +143 -0
- package/dist/snackbars/_snackbars.scss +31 -0
- package/dist/snackbars/active-snackbar.component.d.ts +10 -0
- package/dist/snackbars/active-snackbar.component.d.ts.map +1 -0
- package/dist/snackbars/active-snackbar.component.js +25 -0
- package/dist/snackbars/index.d.ts +14 -0
- package/dist/snackbars/index.d.ts.map +1 -0
- package/dist/snackbars/index.js +37 -0
- package/dist/snackbars/snackbar.component.d.ts +23 -0
- package/dist/snackbars/snackbar.component.d.ts.map +1 -0
- package/dist/snackbars/snackbar.component.js +64 -0
- package/dist/snackbars/snackbar.module.scss +30 -0
- package/dist/snackbars/snackbar.stories.js +68 -0
- package/dist/spinner/_spinner.scss +14 -0
- package/dist/spinner/index.d.ts +3 -0
- package/dist/spinner/index.d.ts.map +1 -0
- package/dist/spinner/index.js +10 -0
- package/dist/staggered-menu/index.d.ts +3 -0
- package/dist/staggered-menu/index.d.ts.map +1 -0
- package/dist/staggered-menu/index.js +2 -0
- package/dist/staggered-menu/menu-toggle-button.component.d.ts +22 -0
- package/dist/staggered-menu/menu-toggle-button.component.d.ts.map +1 -0
- package/dist/staggered-menu/menu-toggle-button.component.js +235 -0
- package/dist/staggered-menu/staggered-menu-panel.component.d.ts +57 -0
- package/dist/staggered-menu/staggered-menu-panel.component.d.ts.map +1 -0
- package/dist/staggered-menu/staggered-menu-panel.component.js +389 -0
- package/dist/svg-utils.d.ts +17 -0
- package/dist/svg-utils.d.ts.map +1 -0
- package/dist/svg-utils.js +69 -0
- package/dist/test-utils.d.ts +7 -0
- package/dist/test-utils.d.ts.map +1 -0
- package/dist/test-utils.js +17 -0
- package/dist/toasts/_toasts.scss +22 -0
- package/dist/toasts/active-toasts.component.d.ts +10 -0
- package/dist/toasts/active-toasts.component.d.ts.map +1 -0
- package/dist/toasts/active-toasts.component.js +27 -0
- package/dist/toasts/index.d.ts +14 -0
- package/dist/toasts/index.d.ts.map +1 -0
- package/dist/toasts/index.js +39 -0
- package/dist/toasts/toast-kind.config.d.ts +15 -0
- package/dist/toasts/toast-kind.config.d.ts.map +1 -0
- package/dist/toasts/toast-kind.config.js +33 -0
- package/dist/toasts/toast-progress-bar.component.d.ts +13 -0
- package/dist/toasts/toast-progress-bar.component.d.ts.map +1 -0
- package/dist/toasts/toast-progress-bar.component.js +36 -0
- package/dist/toasts/toast.component.d.ts +24 -0
- package/dist/toasts/toast.component.d.ts.map +1 -0
- package/dist/toasts/toast.component.js +175 -0
- package/dist/toasts/toast.module.scss +181 -0
- package/dist/toasts/toast.stories.js +112 -0
- package/dist/toasts/toast.types.d.ts +45 -0
- package/dist/toasts/toast.types.d.ts.map +1 -0
- package/dist/toasts/toast.types.js +1 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +17 -0
- package/dist/workspaces/action-menu-button/action-menu-button.component.d.ts +16 -0
- package/dist/workspaces/action-menu-button/action-menu-button.component.d.ts.map +1 -0
- package/dist/workspaces/action-menu-button/action-menu-button.component.js +79 -0
- package/dist/workspaces/action-menu-button/action-menu-button.module.scss +111 -0
- package/dist/workspaces/container/action-menu.component.d.ts +10 -0
- package/dist/workspaces/container/action-menu.component.d.ts.map +1 -0
- package/dist/workspaces/container/action-menu.component.js +40 -0
- package/dist/workspaces/container/action-menu.module.scss +89 -0
- package/dist/workspaces/container/workspace-container.component.d.ts +68 -0
- package/dist/workspaces/container/workspace-container.component.d.ts.map +1 -0
- package/dist/workspaces/container/workspace-container.component.js +227 -0
- package/dist/workspaces/container/workspace-renderer.component.d.ts +9 -0
- package/dist/workspaces/container/workspace-renderer.component.d.ts.map +1 -0
- package/dist/workspaces/container/workspace-renderer.component.js +46 -0
- package/dist/workspaces/container/workspace.module.scss +276 -0
- package/dist/workspaces/index.d.ts +6 -0
- package/dist/workspaces/index.d.ts.map +1 -0
- package/dist/workspaces/index.js +5 -0
- package/dist/workspaces/notification/workspace-notification.component.d.ts +7 -0
- package/dist/workspaces/notification/workspace-notification.component.d.ts.map +1 -0
- package/dist/workspaces/notification/workspace-notification.component.js +89 -0
- package/dist/workspaces/notification/workspace-notification.module.scss +5 -0
- package/dist/workspaces/public.d.ts +5 -0
- package/dist/workspaces/public.d.ts.map +1 -0
- package/dist/workspaces/public.js +3 -0
- package/dist/workspaces/workspace-sidebar-store/useWorkspaceGroupStore.d.ts +12 -0
- package/dist/workspaces/workspace-sidebar-store/useWorkspaceGroupStore.d.ts.map +1 -0
- package/dist/workspaces/workspace-sidebar-store/useWorkspaceGroupStore.js +38 -0
- package/dist/workspaces/workspaces.d.ts +254 -0
- package/dist/workspaces/workspaces.d.ts.map +1 -0
- package/dist/workspaces/workspaces.js +504 -0
- package/dist/workspaces2/action-menu2/action-menu-button2.component.d.ts +38 -0
- package/dist/workspaces2/action-menu2/action-menu-button2.component.d.ts.map +1 -0
- package/dist/workspaces2/action-menu2/action-menu-button2.component.js +112 -0
- package/dist/workspaces2/action-menu2/action-menu-button2.module.scss +113 -0
- package/dist/workspaces2/action-menu2/action-menu2.component.d.ts +17 -0
- package/dist/workspaces2/action-menu2/action-menu2.component.d.ts.map +1 -0
- package/dist/workspaces2/action-menu2/action-menu2.component.js +46 -0
- package/dist/workspaces2/action-menu2/action-menu2.module.scss +87 -0
- package/dist/workspaces2/active-workspace-window.component.d.ts +12 -0
- package/dist/workspaces2/active-workspace-window.component.d.ts.map +1 -0
- package/dist/workspaces2/active-workspace-window.component.js +150 -0
- package/dist/workspaces2/index.d.ts +4 -0
- package/dist/workspaces2/index.d.ts.map +1 -0
- package/dist/workspaces2/index.js +3 -0
- package/dist/workspaces2/scope-utils.d.ts +10 -0
- package/dist/workspaces2/scope-utils.d.ts.map +1 -0
- package/dist/workspaces2/scope-utils.js +30 -0
- package/dist/workspaces2/workspace-windows-and-menu.component.d.ts +2 -0
- package/dist/workspaces2/workspace-windows-and-menu.component.d.ts.map +1 -0
- package/dist/workspaces2/workspace-windows-and-menu.component.js +82 -0
- package/dist/workspaces2/workspace-windows-and-menu.module.scss +32 -0
- package/dist/workspaces2/workspace2-close-prompt.modal.d.ts +12 -0
- package/dist/workspaces2/workspace2-close-prompt.modal.d.ts.map +1 -0
- package/dist/workspaces2/workspace2-close-prompt.modal.js +45 -0
- package/dist/workspaces2/workspace2-close-prompt.module.scss +8 -0
- package/dist/workspaces2/workspace2.component.d.ts +51 -0
- package/dist/workspaces2/workspace2.component.d.ts.map +1 -0
- package/dist/workspaces2/workspace2.component.js +160 -0
- package/dist/workspaces2/workspace2.d.ts +187 -0
- package/dist/workspaces2/workspace2.d.ts.map +1 -0
- package/dist/workspaces2/workspace2.js +566 -0
- package/dist/workspaces2/workspace2.module.scss +228 -0
- package/mock-jest.tsx +220 -0
- package/mock.tsx +222 -0
- package/package.json +146 -0
- package/src/_vars.scss +111 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** @module @category UI */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface EntityBannerActionsMenuProps {
|
|
4
|
+
entity: fhir.Patient;
|
|
5
|
+
entityUuid: string;
|
|
6
|
+
actionsSlotName: string;
|
|
7
|
+
/**
|
|
8
|
+
* Parts of the actions slot extension state that don't really make sense go in this object,
|
|
9
|
+
* so as to keep the EntityBannerActionsMenu API clean.
|
|
10
|
+
*/
|
|
11
|
+
additionalActionsSlotState?: object;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Overflow menu for the entity banner whose items come from an ExtensionSlot
|
|
15
|
+
* rather than direct React children. Arrow key navigation is handled at the
|
|
16
|
+
* container level via onKeyDown.
|
|
17
|
+
*/
|
|
18
|
+
export declare function EntityBannerActionsMenu({ entity, entityUuid, actionsSlotName, additionalActionsSlotState, }: EntityBannerActionsMenuProps): React.JSX.Element | null;
|
|
19
|
+
//# sourceMappingURL=entity-banner-actions-menu.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-banner-actions-menu.component.d.ts","sourceRoot":"","sources":["../../../src/entity-banner/actions-menu/entity-banner-actions-menu.component.tsx"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,KAAmE,MAAM,OAAO,CAAC;AAQxF,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACrC;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,UAAU,EACV,eAAe,EACf,0BAA0B,GAC3B,EAAE,4BAA4B,4BA0H9B"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/** @module @category UI */ import React, { useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { OverflowMenuVertical } from "@carbon/react/icons";
|
|
5
|
+
import { ExtensionSlot, useExtensionSlot, useLayoutType, useOnClickOutside } from "@egen-civitas/esm-react-utils";
|
|
6
|
+
import { getCoreTranslation } from "@egen-civitas/esm-translations";
|
|
7
|
+
import customOverflowMenuStyles from "../../custom-overflow-menu/custom-overflow-menu.module.scss";
|
|
8
|
+
import styles from "./entity-banner-actions-menu.module.scss";
|
|
9
|
+
/**
|
|
10
|
+
* Overflow menu for the entity banner whose items come from an ExtensionSlot
|
|
11
|
+
* rather than direct React children. Arrow key navigation is handled at the
|
|
12
|
+
* container level via onKeyDown.
|
|
13
|
+
*/ export function EntityBannerActionsMenu({ entity, entityUuid, actionsSlotName, additionalActionsSlotState }) {
|
|
14
|
+
const [menuIsOpen, setMenuIsOpen] = useState(false);
|
|
15
|
+
const { extensions: entityActions } = useExtensionSlot(actionsSlotName);
|
|
16
|
+
const isTablet = useLayoutType() === 'tablet';
|
|
17
|
+
const ref = useOnClickOutside(()=>setMenuIsOpen(false), menuIsOpen);
|
|
18
|
+
const triggerRef = useRef(null);
|
|
19
|
+
const menuRef = useRef(null);
|
|
20
|
+
const uniqueId = useId();
|
|
21
|
+
const triggerId = `entity-actions-menu-trigger-${uniqueId}`;
|
|
22
|
+
const menuId = `entity-actions-menu-${uniqueId}`;
|
|
23
|
+
const toggleShowMenu = useCallback(()=>setMenuIsOpen((state)=>!state), []);
|
|
24
|
+
const closeMenuAndFocusTrigger = useCallback(()=>{
|
|
25
|
+
setMenuIsOpen(false);
|
|
26
|
+
triggerRef.current?.focus();
|
|
27
|
+
}, []);
|
|
28
|
+
const handleMenuKeyDown = useCallback((e)=>{
|
|
29
|
+
if (e.key === 'Escape' && menuIsOpen) {
|
|
30
|
+
e.stopPropagation();
|
|
31
|
+
closeMenuAndFocusTrigger();
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
if ((e.key === 'ArrowDown' || e.key === 'ArrowUp') && menuIsOpen) {
|
|
35
|
+
e.preventDefault();
|
|
36
|
+
const enabledItems = menuRef.current?.querySelectorAll('[role="menuitem"]:not([disabled])');
|
|
37
|
+
if (!enabledItems?.length) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const activeItem = document.activeElement?.closest?.('[role="menuitem"]') ?? document.activeElement;
|
|
41
|
+
const currentPos = Array.from(enabledItems).indexOf(activeItem);
|
|
42
|
+
if (currentPos === -1) {
|
|
43
|
+
enabledItems[e.key === 'ArrowDown' ? 0 : enabledItems.length - 1]?.focus();
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const direction = e.key === 'ArrowDown' ? 1 : -1;
|
|
47
|
+
const nextPos = currentPos + direction;
|
|
48
|
+
const wrappedPos = nextPos < 0 ? enabledItems.length - 1 : nextPos >= enabledItems.length ? 0 : nextPos;
|
|
49
|
+
enabledItems[wrappedPos]?.focus();
|
|
50
|
+
}
|
|
51
|
+
}, [
|
|
52
|
+
closeMenuAndFocusTrigger,
|
|
53
|
+
menuIsOpen
|
|
54
|
+
]);
|
|
55
|
+
useEffect(()=>{
|
|
56
|
+
if (menuIsOpen && menuRef.current) {
|
|
57
|
+
const firstItem = menuRef.current.querySelector('[role="menuitem"]:not([disabled])');
|
|
58
|
+
firstItem?.focus();
|
|
59
|
+
}
|
|
60
|
+
}, [
|
|
61
|
+
menuIsOpen
|
|
62
|
+
]);
|
|
63
|
+
const entityActionsSlotState = useMemo(()=>({
|
|
64
|
+
entityUuid,
|
|
65
|
+
entity,
|
|
66
|
+
closeMenu: closeMenuAndFocusTrigger,
|
|
67
|
+
...additionalActionsSlotState
|
|
68
|
+
}), [
|
|
69
|
+
entityUuid,
|
|
70
|
+
entity,
|
|
71
|
+
closeMenuAndFocusTrigger,
|
|
72
|
+
additionalActionsSlotState
|
|
73
|
+
]);
|
|
74
|
+
if (entityActions.length === 0) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
78
|
+
className: styles.overflowMenuContainer,
|
|
79
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
80
|
+
"data-overflow-menu": true,
|
|
81
|
+
className: classNames('cds--overflow-menu', customOverflowMenuStyles.container),
|
|
82
|
+
ref: ref,
|
|
83
|
+
children: [
|
|
84
|
+
/*#__PURE__*/ _jsxs("button", {
|
|
85
|
+
className: classNames('cds--btn', 'cds--btn--ghost', 'cds--overflow-menu__trigger', {
|
|
86
|
+
'cds--overflow-menu--open': menuIsOpen
|
|
87
|
+
}, customOverflowMenuStyles.overflowMenuButton),
|
|
88
|
+
"aria-controls": menuId,
|
|
89
|
+
"aria-expanded": menuIsOpen,
|
|
90
|
+
"aria-haspopup": "true",
|
|
91
|
+
id: triggerId,
|
|
92
|
+
onClick: toggleShowMenu,
|
|
93
|
+
onKeyDown: handleMenuKeyDown,
|
|
94
|
+
ref: triggerRef,
|
|
95
|
+
children: [
|
|
96
|
+
/*#__PURE__*/ _jsx("span", {
|
|
97
|
+
className: styles.actionsButtonText,
|
|
98
|
+
children: getCoreTranslation('actions', 'Actions')
|
|
99
|
+
}),
|
|
100
|
+
' ',
|
|
101
|
+
/*#__PURE__*/ _jsx(OverflowMenuVertical, {
|
|
102
|
+
size: 16,
|
|
103
|
+
style: {
|
|
104
|
+
marginLeft: '0.5rem',
|
|
105
|
+
fill: '#78A9FF'
|
|
106
|
+
}
|
|
107
|
+
})
|
|
108
|
+
]
|
|
109
|
+
}),
|
|
110
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
111
|
+
className: classNames('cds--overflow-menu-options', 'cds--overflow-menu--flip', customOverflowMenuStyles.menu, {
|
|
112
|
+
[customOverflowMenuStyles.show]: menuIsOpen
|
|
113
|
+
}),
|
|
114
|
+
"aria-labelledby": triggerId,
|
|
115
|
+
"data-floating-menu-direction": "bottom",
|
|
116
|
+
id: menuId,
|
|
117
|
+
onKeyDown: handleMenuKeyDown,
|
|
118
|
+
ref: menuRef,
|
|
119
|
+
role: "menu",
|
|
120
|
+
tabIndex: -1,
|
|
121
|
+
children: [
|
|
122
|
+
/*#__PURE__*/ _jsx("ul", {
|
|
123
|
+
className: classNames('cds--overflow-menu-options__content', {
|
|
124
|
+
'cds--overflow-menu-options--lg': isTablet
|
|
125
|
+
}),
|
|
126
|
+
children: /*#__PURE__*/ _jsx(ExtensionSlot, {
|
|
127
|
+
name: actionsSlotName,
|
|
128
|
+
state: entityActionsSlotState
|
|
129
|
+
}, actionsSlotName)
|
|
130
|
+
}),
|
|
131
|
+
/*#__PURE__*/ _jsx("span", {})
|
|
132
|
+
]
|
|
133
|
+
})
|
|
134
|
+
]
|
|
135
|
+
})
|
|
136
|
+
});
|
|
137
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use '@carbon/colors';
|
|
2
|
+
@use '@carbon/layout';
|
|
3
|
+
@use '@carbon/type';
|
|
4
|
+
@use '../../vars' as *;
|
|
5
|
+
|
|
6
|
+
.actionsButtonText {
|
|
7
|
+
@include type.type-style('body-compact-01');
|
|
8
|
+
color: $interactive-01;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Overriding styles for RTL support
|
|
12
|
+
html[dir='rtl'] {
|
|
13
|
+
.overflowMenuContainer {
|
|
14
|
+
& > div {
|
|
15
|
+
margin-left: unset;
|
|
16
|
+
margin-right: -(layout.$spacing-06);
|
|
17
|
+
& > div {
|
|
18
|
+
left: unset;
|
|
19
|
+
right: -6.025rem;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** @module @category UI */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface ContactDetailsProps {
|
|
4
|
+
entityId: string;
|
|
5
|
+
inactive: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function EntityBannerContactDetails({ entityId, inactive }: ContactDetailsProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=entity-banner-contact-details.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-banner-contact-details.component.d.ts","sourceRoot":"","sources":["../../../src/entity-banner/contact-details/entity-banner-contact-details.component.tsx"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAuKD,wBAAgB,0BAA0B,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,mBAAmB,qBAyBrF"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/** @module @category UI */ import React, { useMemo } from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { InlineLoading } from "@carbon/react";
|
|
5
|
+
import { getCoreTranslation } from "@egen-civitas/esm-translations";
|
|
6
|
+
import { ConfigurableLink, useEntity } from "@egen-civitas/esm-react-utils";
|
|
7
|
+
import { parseDate } from "@egen-civitas/esm-utils";
|
|
8
|
+
import { useEntityContactAttributes } from "./useEntityAttributes.js";
|
|
9
|
+
import { useEntityGroupsForEntity } from "./useEntityGroupsForEntity.js";
|
|
10
|
+
import { useRelationships } from "./useRelationships.js";
|
|
11
|
+
import styles from "./entity-banner-contact-details.module.scss";
|
|
12
|
+
const EntityGroups = ({ entityUuid })=>{
|
|
13
|
+
const { groups = [], isLoading } = useEntityGroupsForEntity(entityUuid);
|
|
14
|
+
return /*#__PURE__*/ _jsxs(_Fragment, {
|
|
15
|
+
children: [
|
|
16
|
+
/*#__PURE__*/ _jsxs("p", {
|
|
17
|
+
className: styles.heading,
|
|
18
|
+
children: [
|
|
19
|
+
getCoreTranslation('entityGroups', 'Entity Groups'),
|
|
20
|
+
" (",
|
|
21
|
+
groups?.length ?? 0,
|
|
22
|
+
")"
|
|
23
|
+
]
|
|
24
|
+
}),
|
|
25
|
+
isLoading ? /*#__PURE__*/ _jsx(InlineLoading, {
|
|
26
|
+
description: `${getCoreTranslation('loading', 'Loading')} ...`,
|
|
27
|
+
role: "progressbar"
|
|
28
|
+
}) : /*#__PURE__*/ _jsxs("ul", {
|
|
29
|
+
children: [
|
|
30
|
+
(()=>{
|
|
31
|
+
if (groups?.length > 0) {
|
|
32
|
+
const sortedGroups = groups.sort((a, b)=>parseDate(a?.startDate).getTime() - parseDate(b?.startDate).getTime());
|
|
33
|
+
const slicedGroups = sortedGroups.slice(0, 3);
|
|
34
|
+
return slicedGroups?.map((group)=>/*#__PURE__*/ _jsx("li", {
|
|
35
|
+
children: /*#__PURE__*/ _jsx(ConfigurableLink, {
|
|
36
|
+
to: `${window.spaBase}/home/entity-groups/${group.uuid}`,
|
|
37
|
+
children: group.name
|
|
38
|
+
}, group.uuid)
|
|
39
|
+
}, group.uuid));
|
|
40
|
+
}
|
|
41
|
+
return /*#__PURE__*/ _jsx("li", {
|
|
42
|
+
children: "--"
|
|
43
|
+
});
|
|
44
|
+
})(),
|
|
45
|
+
groups.length > 3 && /*#__PURE__*/ _jsx("li", {
|
|
46
|
+
className: styles.link,
|
|
47
|
+
children: /*#__PURE__*/ _jsx(ConfigurableLink, {
|
|
48
|
+
to: `${window.spaBase}/home/entity-groups`,
|
|
49
|
+
children: getCoreTranslation('seeMoreGroups', 'See {{count}} more groups', {
|
|
50
|
+
count: groups?.length - 3
|
|
51
|
+
})
|
|
52
|
+
})
|
|
53
|
+
})
|
|
54
|
+
]
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
const Address = ({ entityId })=>{
|
|
60
|
+
const { entity, isLoading } = useEntity(entityId);
|
|
61
|
+
const address = entity?.address?.find((a)=>a.use === 'home');
|
|
62
|
+
const getAddressKey = (url)=>url.split('#')[1];
|
|
63
|
+
if (isLoading) {
|
|
64
|
+
return /*#__PURE__*/ _jsx(InlineLoading, {
|
|
65
|
+
description: `${getCoreTranslation('loading', 'Loading')} ...`,
|
|
66
|
+
role: "progressbar"
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return /*#__PURE__*/ _jsxs(_Fragment, {
|
|
70
|
+
children: [
|
|
71
|
+
/*#__PURE__*/ _jsx("p", {
|
|
72
|
+
className: styles.heading,
|
|
73
|
+
children: getCoreTranslation('address', 'Address')
|
|
74
|
+
}),
|
|
75
|
+
/*#__PURE__*/ _jsx("ul", {
|
|
76
|
+
children: address ? Object.entries(address).filter(([key])=>key !== 'id' && key !== 'use').map(([key, value])=>key === 'extension' ? address.extension?.[0]?.extension?.map((add, i)=>/*#__PURE__*/ _jsxs("li", {
|
|
77
|
+
children: [
|
|
78
|
+
getCoreTranslation(getAddressKey(add.url), getAddressKey(add.url)),
|
|
79
|
+
": ",
|
|
80
|
+
add.valueString
|
|
81
|
+
]
|
|
82
|
+
}, `address-${key}-${i}`)) : /*#__PURE__*/ _jsxs("li", {
|
|
83
|
+
children: [
|
|
84
|
+
getCoreTranslation(key, key),
|
|
85
|
+
": ",
|
|
86
|
+
value
|
|
87
|
+
]
|
|
88
|
+
}, `address-${key}`)) : /*#__PURE__*/ _jsx("li", {
|
|
89
|
+
children: "--"
|
|
90
|
+
})
|
|
91
|
+
})
|
|
92
|
+
]
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
const Contact = ({ entityUuid })=>{
|
|
96
|
+
const { isLoading: isLoadingAttributes, contactAttributes } = useEntityContactAttributes(entityUuid);
|
|
97
|
+
const contacts = useMemo(()=>contactAttributes ? [
|
|
98
|
+
...contactAttributes?.map((contact)=>[
|
|
99
|
+
contact.attributeType.display ? getCoreTranslation(contact.attributeType.display, contact.attributeType.display) : '',
|
|
100
|
+
contact.value
|
|
101
|
+
])
|
|
102
|
+
] : [], [
|
|
103
|
+
contactAttributes
|
|
104
|
+
]);
|
|
105
|
+
return /*#__PURE__*/ _jsxs(_Fragment, {
|
|
106
|
+
children: [
|
|
107
|
+
/*#__PURE__*/ _jsx("p", {
|
|
108
|
+
className: styles.heading,
|
|
109
|
+
children: getCoreTranslation('contactDetails', 'Contact Details')
|
|
110
|
+
}),
|
|
111
|
+
isLoadingAttributes ? /*#__PURE__*/ _jsx(InlineLoading, {
|
|
112
|
+
description: `${getCoreTranslation('loading', 'Loading')} ...`,
|
|
113
|
+
role: "progressbar"
|
|
114
|
+
}) : /*#__PURE__*/ _jsx("ul", {
|
|
115
|
+
children: contacts.length ? contacts.map(([label, value], index)=>/*#__PURE__*/ _jsxs("li", {
|
|
116
|
+
children: [
|
|
117
|
+
label,
|
|
118
|
+
": ",
|
|
119
|
+
value
|
|
120
|
+
]
|
|
121
|
+
}, `${label}-${value}-${index}`)) : /*#__PURE__*/ _jsx("li", {
|
|
122
|
+
children: "--"
|
|
123
|
+
})
|
|
124
|
+
})
|
|
125
|
+
]
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
const Relationships = ({ entityId })=>{
|
|
129
|
+
const { data: relationships, isLoading } = useRelationships(entityId);
|
|
130
|
+
return /*#__PURE__*/ _jsxs(_Fragment, {
|
|
131
|
+
children: [
|
|
132
|
+
/*#__PURE__*/ _jsx("p", {
|
|
133
|
+
className: styles.heading,
|
|
134
|
+
children: getCoreTranslation('relationships', 'Relationships')
|
|
135
|
+
}),
|
|
136
|
+
isLoading ? /*#__PURE__*/ _jsx(InlineLoading, {
|
|
137
|
+
description: `${getCoreTranslation('loading', 'Loading')} ...`,
|
|
138
|
+
role: "progressbar"
|
|
139
|
+
}) : /*#__PURE__*/ _jsx("ul", {
|
|
140
|
+
children: relationships && relationships.length > 0 ? /*#__PURE__*/ _jsx(_Fragment, {
|
|
141
|
+
children: relationships.map((r)=>/*#__PURE__*/ _jsxs("li", {
|
|
142
|
+
className: styles.relationship,
|
|
143
|
+
children: [
|
|
144
|
+
/*#__PURE__*/ _jsx("div", {
|
|
145
|
+
children: /*#__PURE__*/ _jsx(ConfigurableLink, {
|
|
146
|
+
to: `${window.spaBase}/entity/${r.relativeUuid}/detail`,
|
|
147
|
+
children: r.display
|
|
148
|
+
})
|
|
149
|
+
}),
|
|
150
|
+
/*#__PURE__*/ _jsx("div", {
|
|
151
|
+
children: r.relationshipType
|
|
152
|
+
}),
|
|
153
|
+
/*#__PURE__*/ _jsx("div", {
|
|
154
|
+
children: `${r.relativeAge ? r.relativeAge : '--'} ${r.relativeAge ? r.relativeAge === 1 ? getCoreTranslation('yearAbbreviation', 'yr') : getCoreTranslation('yearsAbbreviation', 'yrs') : ''}`
|
|
155
|
+
})
|
|
156
|
+
]
|
|
157
|
+
}, r.uuid))
|
|
158
|
+
}) : /*#__PURE__*/ _jsx("li", {
|
|
159
|
+
children: "--"
|
|
160
|
+
})
|
|
161
|
+
})
|
|
162
|
+
]
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
export function EntityBannerContactDetails({ entityId, inactive }) {
|
|
166
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
167
|
+
className: classNames(styles.contactDetails, {
|
|
168
|
+
[styles.inactive]: inactive
|
|
169
|
+
}),
|
|
170
|
+
children: [
|
|
171
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
172
|
+
className: styles.row,
|
|
173
|
+
children: [
|
|
174
|
+
/*#__PURE__*/ _jsx("div", {
|
|
175
|
+
className: styles.col,
|
|
176
|
+
children: /*#__PURE__*/ _jsx(Address, {
|
|
177
|
+
entityId: entityId
|
|
178
|
+
})
|
|
179
|
+
}),
|
|
180
|
+
/*#__PURE__*/ _jsx("div", {
|
|
181
|
+
className: styles.col,
|
|
182
|
+
children: /*#__PURE__*/ _jsx(Contact, {
|
|
183
|
+
entityUuid: entityId
|
|
184
|
+
})
|
|
185
|
+
})
|
|
186
|
+
]
|
|
187
|
+
}),
|
|
188
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
189
|
+
className: styles.row,
|
|
190
|
+
children: [
|
|
191
|
+
/*#__PURE__*/ _jsx("div", {
|
|
192
|
+
className: styles.col,
|
|
193
|
+
children: /*#__PURE__*/ _jsx(Relationships, {
|
|
194
|
+
entityId: entityId
|
|
195
|
+
})
|
|
196
|
+
}),
|
|
197
|
+
/*#__PURE__*/ _jsx("div", {
|
|
198
|
+
className: styles.col,
|
|
199
|
+
children: /*#__PURE__*/ _jsx(EntityGroups, {
|
|
200
|
+
entityUuid: entityId
|
|
201
|
+
})
|
|
202
|
+
})
|
|
203
|
+
]
|
|
204
|
+
})
|
|
205
|
+
]
|
|
206
|
+
});
|
|
207
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use '@carbon/colors';
|
|
2
|
+
@use '@carbon/layout';
|
|
3
|
+
@use '@carbon/type';
|
|
4
|
+
@use '../../vars' as *;
|
|
5
|
+
|
|
6
|
+
.contactDetails,
|
|
7
|
+
.deceased {
|
|
8
|
+
color: $text-02;
|
|
9
|
+
width: 100%;
|
|
10
|
+
border-top: 1px solid $ui-03;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.heading {
|
|
14
|
+
@include type.type-style('heading-compact-01');
|
|
15
|
+
color: $text-02;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.row {
|
|
19
|
+
@include type.type-style('body-compact-01');
|
|
20
|
+
display: flex;
|
|
21
|
+
|
|
22
|
+
&:first-child {
|
|
23
|
+
border-bottom: 1px solid $ui-03;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.row > .col {
|
|
28
|
+
flex: 1;
|
|
29
|
+
padding: layout.$spacing-05;
|
|
30
|
+
|
|
31
|
+
&:nth-of-type(2n + 1) {
|
|
32
|
+
border-right: 1px solid $ui-03;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.row li {
|
|
37
|
+
margin: layout.$spacing-03 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.relationship {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-flow: row nowrap;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.relationship div {
|
|
46
|
+
flex: 1 1;
|
|
47
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** @module @category UI */
|
|
2
|
+
import React, { type MouseEvent } from 'react';
|
|
3
|
+
export interface EntityBannerToggleContactDetailsButtonProps {
|
|
4
|
+
/** Whether the contact details are currently being displayed */
|
|
5
|
+
showContactDetails: boolean;
|
|
6
|
+
/** Function called when this button is clicked. */
|
|
7
|
+
toggleContactDetails: (e: MouseEvent) => void;
|
|
8
|
+
/** Passed through to the Carbon Button component */
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function EntityBannerToggleContactDetailsButton({ showContactDetails, toggleContactDetails, className, }: EntityBannerToggleContactDetailsButtonProps): React.JSX.Element;
|
|
12
|
+
//# sourceMappingURL=entity-banner-toggle-contact-details-button.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-banner-toggle-contact-details-button.component.d.ts","sourceRoot":"","sources":["../../../src/entity-banner/contact-details/entity-banner-toggle-contact-details-button.component.tsx"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,OAAO,KAAK,EAAE,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAK/C,MAAM,WAAW,2CAA2C;IAC1D,gEAAgE;IAChE,kBAAkB,EAAE,OAAO,CAAC;IAC5B,mDAAmD;IACnD,oBAAoB,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IAC9C,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,sCAAsC,CAAC,EACrD,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,GACV,EAAE,2CAA2C,qBAY7C"}
|
package/dist/entity-banner/contact-details/entity-banner-toggle-contact-details-button.component.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/** @module @category UI */ import React from "react";
|
|
3
|
+
import { Button } from "@carbon/react";
|
|
4
|
+
import { getCoreTranslation } from "@egen-civitas/esm-translations";
|
|
5
|
+
import { ChevronDownIcon, ChevronUpIcon } from "../../public.js";
|
|
6
|
+
export function EntityBannerToggleContactDetailsButton({ showContactDetails, toggleContactDetails, className }) {
|
|
7
|
+
return /*#__PURE__*/ _jsx(Button, {
|
|
8
|
+
className: className,
|
|
9
|
+
iconDescription: "Toggle contact details",
|
|
10
|
+
kind: "ghost",
|
|
11
|
+
onClick: toggleContactDetails,
|
|
12
|
+
renderIcon: showContactDetails ? ChevronUpIcon : ChevronDownIcon,
|
|
13
|
+
children: showContactDetails ? getCoreTranslation('showLess', 'Show less') : getCoreTranslation('showMore', 'Show more')
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type EgenResource } from '@egen-civitas/esm-api';
|
|
2
|
+
export interface Location {
|
|
3
|
+
uuid: string;
|
|
4
|
+
display?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface VisitType {
|
|
8
|
+
uuid: string;
|
|
9
|
+
display: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface Patient {
|
|
13
|
+
uuid: string;
|
|
14
|
+
display: string;
|
|
15
|
+
identifiers: Array<any>;
|
|
16
|
+
person: Person;
|
|
17
|
+
}
|
|
18
|
+
export interface Person {
|
|
19
|
+
age: number;
|
|
20
|
+
attributes: Array<Attribute>;
|
|
21
|
+
birthDate: string;
|
|
22
|
+
gender: string;
|
|
23
|
+
display: string;
|
|
24
|
+
preferredAddress: EgenResource;
|
|
25
|
+
uuid: string;
|
|
26
|
+
}
|
|
27
|
+
export interface Attribute {
|
|
28
|
+
attributeType: EgenResource;
|
|
29
|
+
display: string;
|
|
30
|
+
uuid: string;
|
|
31
|
+
value: string | number;
|
|
32
|
+
}
|
|
33
|
+
export interface CohortMemberResponse {
|
|
34
|
+
results: Array<CohortMember>;
|
|
35
|
+
}
|
|
36
|
+
interface CohortMember {
|
|
37
|
+
uuid: string;
|
|
38
|
+
patient: EgenResource;
|
|
39
|
+
cohort: Cohort;
|
|
40
|
+
}
|
|
41
|
+
interface Cohort {
|
|
42
|
+
uuid: string;
|
|
43
|
+
name: string;
|
|
44
|
+
startDate: string;
|
|
45
|
+
endDate: string | null;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/entity-banner/contact-details/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,YAAY,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,SAAS;IACxB,aAAa,EAAE,YAAY,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAC9B;AAED,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,YAAY,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,MAAM;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface AttributeType {
|
|
2
|
+
display: string;
|
|
3
|
+
uuid: string;
|
|
4
|
+
}
|
|
5
|
+
interface Attribute {
|
|
6
|
+
attributeType: AttributeType;
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function useEntityContactAttributes(entityUuid: string): {
|
|
10
|
+
contactAttributes: Attribute[] | undefined;
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=useEntityAttributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEntityAttributes.d.ts","sourceRoot":"","sources":["../../../src/entity-banner/contact-details/useEntityAttributes.ts"],"names":[],"mappings":"AAKA,UAAU,aAAa;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,SAAS;IACjB,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf;AAMD,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM;;;EAe5D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { restBaseUrl } from "@egen-civitas/esm-api";
|
|
2
|
+
import { useConfig } from "@egen-civitas/esm-react-utils";
|
|
3
|
+
import useSWRImmutable from "swr/immutable";
|
|
4
|
+
export function useEntityContactAttributes(entityUuid) {
|
|
5
|
+
const { contactAttributeTypes } = useConfig();
|
|
6
|
+
const { data, isLoading } = useSWRImmutable(entityUuid ? `${restBaseUrl}/entity/${entityUuid}?v=custom:(attributes:(attributeType:(display,uuid),value))` : null, (url)=>fetch(url).then((res)=>res.json()));
|
|
7
|
+
const contactAttributes = data?.data?.attributes?.filter((attr)=>contactAttributeTypes?.uuids?.includes(attr.attributeType.uuid));
|
|
8
|
+
return {
|
|
9
|
+
contactAttributes,
|
|
10
|
+
isLoading
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface EntityGroup {
|
|
2
|
+
uuid: string;
|
|
3
|
+
name: string;
|
|
4
|
+
startDate: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function useEntityGroupsForEntity(entityUuid: string): {
|
|
7
|
+
groups: EntityGroup[];
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=useEntityGroupsForEntity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEntityGroupsForEntity.d.ts","sourceRoot":"","sources":["../../../src/entity-banner/contact-details/useEntityGroupsForEntity.ts"],"names":[],"mappings":"AAGA,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,MAAM;;;EAO1D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { restBaseUrl } from "@egen-civitas/esm-api";
|
|
2
|
+
import useSWRImmutable from "swr/immutable";
|
|
3
|
+
export function useEntityGroupsForEntity(entityUuid) {
|
|
4
|
+
const { data, isLoading } = useSWRImmutable(entityUuid ? `${restBaseUrl}/cohort?v=custom:(uuid,name,startDate)&member=${entityUuid}` : null, (url)=>fetch(url).then((res)=>res.json()));
|
|
5
|
+
return {
|
|
6
|
+
groups: data?.data?.results ?? [],
|
|
7
|
+
isLoading
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare function useRelationships(entityUuid: string): {
|
|
2
|
+
data: ExtractedRelationship[] | null;
|
|
3
|
+
error: Error | undefined;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
isValidating: boolean;
|
|
6
|
+
};
|
|
7
|
+
interface ExtractedRelationship {
|
|
8
|
+
uuid: string;
|
|
9
|
+
display: string;
|
|
10
|
+
relativeAge: number;
|
|
11
|
+
relativeUuid: string;
|
|
12
|
+
relationshipType: string;
|
|
13
|
+
}
|
|
14
|
+
export interface Relationship {
|
|
15
|
+
display: string;
|
|
16
|
+
uuid: number;
|
|
17
|
+
personA: {
|
|
18
|
+
uuid: string;
|
|
19
|
+
age: number;
|
|
20
|
+
display: string;
|
|
21
|
+
};
|
|
22
|
+
personB: {
|
|
23
|
+
uuid: string;
|
|
24
|
+
age: number;
|
|
25
|
+
display: string;
|
|
26
|
+
};
|
|
27
|
+
relationshipType: {
|
|
28
|
+
uuid: string;
|
|
29
|
+
display: string;
|
|
30
|
+
aIsToB: string;
|
|
31
|
+
bIsToA: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=useRelationships.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRelationships.d.ts","sourceRoot":"","sources":["../../../src/entity-banner/contact-details/useRelationships.ts"],"names":[],"mappings":"AAMA,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM;;;;;EAkBlD;AAiCD,UAAU,qBAAqB;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,gBAAgB,EAAE;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH"}
|