@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,45 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ModalHeader, ModalBody, ModalFooter, Button } from "@carbon/react";
|
|
4
|
+
import { getCoreTranslation } from "@egen-civitas/esm-translations";
|
|
5
|
+
import styles from "./workspace2-close-prompt.module.scss";
|
|
6
|
+
/**
|
|
7
|
+
* This modal is used for prompting user to confirm closing currently opened workspace.
|
|
8
|
+
*/ const Workspace2ClosePromptModal = ({ onConfirm, onCancel, affectedWorkspaceTitles })=>{
|
|
9
|
+
return /*#__PURE__*/ _jsxs(_Fragment, {
|
|
10
|
+
children: [
|
|
11
|
+
/*#__PURE__*/ _jsx(ModalHeader, {
|
|
12
|
+
closeModal: onCancel,
|
|
13
|
+
title: getCoreTranslation('closeWorkspaces2PromptTitle')
|
|
14
|
+
}),
|
|
15
|
+
/*#__PURE__*/ _jsxs(ModalBody, {
|
|
16
|
+
children: [
|
|
17
|
+
/*#__PURE__*/ _jsx("p", {
|
|
18
|
+
children: getCoreTranslation('closeWorkspaces2PromptBody')
|
|
19
|
+
}),
|
|
20
|
+
/*#__PURE__*/ _jsx("ul", {
|
|
21
|
+
className: styles.workspaceList,
|
|
22
|
+
children: affectedWorkspaceTitles.map((title)=>/*#__PURE__*/ _jsx("li", {
|
|
23
|
+
children: title
|
|
24
|
+
}, title))
|
|
25
|
+
})
|
|
26
|
+
]
|
|
27
|
+
}),
|
|
28
|
+
/*#__PURE__*/ _jsxs(ModalFooter, {
|
|
29
|
+
children: [
|
|
30
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
31
|
+
kind: "secondary",
|
|
32
|
+
onClick: onCancel,
|
|
33
|
+
children: getCoreTranslation('cancel', 'Cancel')
|
|
34
|
+
}),
|
|
35
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
36
|
+
kind: "danger",
|
|
37
|
+
onClick: onConfirm,
|
|
38
|
+
children: getCoreTranslation('discardChanges', 'Discard changes')
|
|
39
|
+
})
|
|
40
|
+
]
|
|
41
|
+
})
|
|
42
|
+
]
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
export default Workspace2ClosePromptModal;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
interface Workspace2Props {
|
|
3
|
+
title: string;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
hasUnsavedChanges?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @experimental
|
|
9
|
+
*/
|
|
10
|
+
export interface Workspace2DefinitionProps<WorkspaceProps extends object = object, WindowProps extends object = object, GroupProps extends object = object> {
|
|
11
|
+
/**
|
|
12
|
+
* This function launches a child workspace. Unlike `launchWorkspace()`, this function is meant
|
|
13
|
+
* to be called from the a workspace, and it does not allow passing (or changing)
|
|
14
|
+
* the window props or group props
|
|
15
|
+
* @param workspaceName
|
|
16
|
+
* @param workspaceProps
|
|
17
|
+
*/
|
|
18
|
+
launchChildWorkspace<Props extends object>(workspaceName: string, workspaceProps?: Props): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* closes the current workspace, along with its children.
|
|
21
|
+
* @param options Optional configuration for closing the workspace.
|
|
22
|
+
* @param options.closeWindow If true, the workspace's window, along with all workspaces within it, will be closed as well.
|
|
23
|
+
* @param options.discardUnsavedChanges If true, the "unsaved changes" modal will be suppressed, and the value of `hasUnsavedChanges` will be ignored. Use this when closing the workspace immediately after changes are saved.
|
|
24
|
+
* @returns a Promise that resolves to true if the workspace is closed, false otherwise.
|
|
25
|
+
*/
|
|
26
|
+
closeWorkspace(options?: {
|
|
27
|
+
closeWindow?: boolean;
|
|
28
|
+
discardUnsavedChanges?: boolean;
|
|
29
|
+
}): Promise<boolean>;
|
|
30
|
+
workspaceProps: WorkspaceProps | null;
|
|
31
|
+
windowProps: WindowProps | null;
|
|
32
|
+
groupProps: GroupProps | null;
|
|
33
|
+
workspaceName: string;
|
|
34
|
+
windowName: string;
|
|
35
|
+
isRootWorkspace: boolean;
|
|
36
|
+
showActionMenu: boolean;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @experimental
|
|
40
|
+
*/
|
|
41
|
+
export type Workspace2Definition<WorkspaceProps extends object, WindowProps extends object, GroupProps extends object> = React.FC<Workspace2DefinitionProps<WorkspaceProps, WindowProps, GroupProps>>;
|
|
42
|
+
/**
|
|
43
|
+
* The Workspace2 component is used as a top-level container to render
|
|
44
|
+
* its children as content within a workspace. When creating a workspace
|
|
45
|
+
* component, `<Workspace2>` should be the top-level component returned,
|
|
46
|
+
* wrapping all of the workspace content.
|
|
47
|
+
* @experimental
|
|
48
|
+
*/
|
|
49
|
+
export declare const Workspace2: React.FC<Workspace2Props>;
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=workspace2.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace2.component.d.ts","sourceRoot":"","sources":["../../src/workspaces2/workspace2.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAWzD,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB,CACxC,cAAc,SAAS,MAAM,GAAG,MAAM,EACtC,WAAW,SAAS,MAAM,GAAG,MAAM,EACnC,UAAU,SAAS,MAAM,GAAG,MAAM;IAElC;;;;;;OAMG;IACH,oBAAoB,CAAC,KAAK,SAAS,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzG;;;;;;OAMG;IACH,cAAc,CAAC,OAAO,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,OAAO,CAAC;QAAC,qBAAqB,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEvG,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;IACtC,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,CAC9B,cAAc,SAAS,MAAM,EAC7B,WAAW,SAAS,MAAM,EAC1B,UAAU,SAAS,MAAM,IACvB,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAAC,cAAc,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC;AAEjF;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmJhD,CAAC"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import React, { useEffect } from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { Header, HeaderGlobalAction, HeaderGlobalBar, HeaderName } from "@carbon/react";
|
|
5
|
+
import { DownToBottom, Maximize, Minimize } from "@carbon/react/icons";
|
|
6
|
+
import { isDesktop, useLayoutType } from "@egen-civitas/esm-react-utils";
|
|
7
|
+
import { getCoreTranslation } from "@egen-civitas/esm-translations";
|
|
8
|
+
import { getOpenedWindowIndexByWorkspace } from "@egen-civitas/esm-extensions";
|
|
9
|
+
import { ArrowRightIcon, CloseIcon } from "../icons/index.js";
|
|
10
|
+
import { useWorkspace2Store, useWorkspace2Context, closeWorkspaceGroup2 } from "./workspace2.js";
|
|
11
|
+
import styles from "./workspace2.module.scss";
|
|
12
|
+
/**
|
|
13
|
+
* The Workspace2 component is used as a top-level container to render
|
|
14
|
+
* its children as content within a workspace. When creating a workspace
|
|
15
|
+
* component, `<Workspace2>` should be the top-level component returned,
|
|
16
|
+
* wrapping all of the workspace content.
|
|
17
|
+
* @experimental
|
|
18
|
+
*/ export const Workspace2 = ({ title, children, hasUnsavedChanges = false })=>{
|
|
19
|
+
const layout = useLayoutType();
|
|
20
|
+
const { setWindowMaximized, hideWindow, setHasUnsavedChanges, openedWindows, openedGroup, registeredGroupsByName, registeredWindowsByName, registeredWorkspacesByName, workspaceTitleByWorkspaceName, setWorkspaceTitle, isMostRecentlyOpenedWindowHidden } = useWorkspace2Store();
|
|
21
|
+
const { workspaceName, isRootWorkspace, closeWorkspace, showActionMenu } = useWorkspace2Context();
|
|
22
|
+
const openedWindowIndex = getOpenedWindowIndexByWorkspace(workspaceName);
|
|
23
|
+
const openedWindow = openedWindows[openedWindowIndex];
|
|
24
|
+
const openedWorkspace = openedWindow?.openedWorkspaces.find((workspace)=>workspace.workspaceName === workspaceName);
|
|
25
|
+
useEffect(()=>{
|
|
26
|
+
if (openedWorkspace?.hasUnsavedChanges != hasUnsavedChanges) {
|
|
27
|
+
setHasUnsavedChanges(workspaceName, hasUnsavedChanges ?? false);
|
|
28
|
+
}
|
|
29
|
+
}, [
|
|
30
|
+
openedWorkspace?.hasUnsavedChanges,
|
|
31
|
+
hasUnsavedChanges,
|
|
32
|
+
workspaceName,
|
|
33
|
+
setHasUnsavedChanges
|
|
34
|
+
]);
|
|
35
|
+
useEffect(()=>{
|
|
36
|
+
if (workspaceTitleByWorkspaceName[workspaceName] !== title) {
|
|
37
|
+
setWorkspaceTitle(workspaceName, title);
|
|
38
|
+
}
|
|
39
|
+
}, [
|
|
40
|
+
workspaceTitleByWorkspaceName,
|
|
41
|
+
workspaceName,
|
|
42
|
+
title,
|
|
43
|
+
setWorkspaceTitle
|
|
44
|
+
]);
|
|
45
|
+
if (openedWindowIndex < 0 || openedGroup == null || openedWorkspace == null) {
|
|
46
|
+
// workspace window / group has likely just closed
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
const group = registeredGroupsByName[openedGroup.groupName];
|
|
50
|
+
if (!group) {
|
|
51
|
+
throw new Error(`Cannot find registered workspace group ${openedGroup.groupName}`);
|
|
52
|
+
}
|
|
53
|
+
const workspaceDef = registeredWorkspacesByName[workspaceName];
|
|
54
|
+
const windowName = workspaceDef.window;
|
|
55
|
+
const windowDef = registeredWindowsByName[windowName];
|
|
56
|
+
if (!windowDef) {
|
|
57
|
+
throw new Error(`Cannot find registered workspace window ${windowName}`);
|
|
58
|
+
}
|
|
59
|
+
const { icon, canMaximize } = windowDef;
|
|
60
|
+
const canCloseGroup = group.persistence === 'closable';
|
|
61
|
+
const canHide = !!icon && !canCloseGroup;
|
|
62
|
+
const { maximized } = openedWindow;
|
|
63
|
+
const width = windowDef?.width ?? 'narrow';
|
|
64
|
+
const isActionMenuOpened = Object.values(registeredWindowsByName).some((window)=>window.group === openedGroup.groupName && window.icon !== undefined);
|
|
65
|
+
const isWindowHidden = openedWindowIndex < openedWindows.length - 1 || isMostRecentlyOpenedWindowHidden;
|
|
66
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
67
|
+
className: classNames(styles.workspaceOuterContainer, {
|
|
68
|
+
[styles.narrowWorkspace]: width === 'narrow',
|
|
69
|
+
[styles.widerWorkspace]: width === 'wider',
|
|
70
|
+
[styles.extraWideWorkspace]: width === 'extra-wide',
|
|
71
|
+
[styles.isActionMenuOpened]: isActionMenuOpened
|
|
72
|
+
}),
|
|
73
|
+
children: [
|
|
74
|
+
/*#__PURE__*/ _jsx("div", {
|
|
75
|
+
className: classNames(styles.workspaceSpacer, {
|
|
76
|
+
[styles.hidden]: isWindowHidden
|
|
77
|
+
})
|
|
78
|
+
}),
|
|
79
|
+
/*#__PURE__*/ _jsx("div", {
|
|
80
|
+
className: classNames(styles.workspaceMiddleContainer, {
|
|
81
|
+
[styles.maximized]: maximized,
|
|
82
|
+
[styles.hidden]: isWindowHidden,
|
|
83
|
+
[styles.isRootWorkspace]: isRootWorkspace,
|
|
84
|
+
[styles.showActionMenu]: showActionMenu
|
|
85
|
+
}),
|
|
86
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
87
|
+
className: classNames(styles.workspaceInnerContainer, {
|
|
88
|
+
[styles.maximized]: maximized,
|
|
89
|
+
[styles.hidden]: isWindowHidden,
|
|
90
|
+
[styles.isRootWorkspace]: isRootWorkspace
|
|
91
|
+
}),
|
|
92
|
+
children: [
|
|
93
|
+
/*#__PURE__*/ _jsxs(Header, {
|
|
94
|
+
"aria-label": getCoreTranslation('workspaceHeader'),
|
|
95
|
+
className: styles.header,
|
|
96
|
+
children: [
|
|
97
|
+
/*#__PURE__*/ _jsx(HeaderName, {
|
|
98
|
+
prefix: "",
|
|
99
|
+
children: title
|
|
100
|
+
}),
|
|
101
|
+
/*#__PURE__*/ _jsx("div", {
|
|
102
|
+
className: styles.overlayHeaderSpacer
|
|
103
|
+
}),
|
|
104
|
+
/*#__PURE__*/ _jsx(HeaderGlobalBar, {
|
|
105
|
+
className: styles.headerButtons,
|
|
106
|
+
children: isDesktop(layout) ? /*#__PURE__*/ _jsxs(_Fragment, {
|
|
107
|
+
children: [
|
|
108
|
+
(canMaximize || maximized) && /*#__PURE__*/ _jsx(HeaderGlobalAction, {
|
|
109
|
+
"aria-label": maximized ? getCoreTranslation('minimize') : getCoreTranslation('maximize'),
|
|
110
|
+
onClick: ()=>setWindowMaximized(windowName, !maximized),
|
|
111
|
+
children: maximized ? /*#__PURE__*/ _jsx(Minimize, {}) : /*#__PURE__*/ _jsx(Maximize, {})
|
|
112
|
+
}),
|
|
113
|
+
canHide && /*#__PURE__*/ _jsx(HeaderGlobalAction, {
|
|
114
|
+
"aria-label": getCoreTranslation('hide'),
|
|
115
|
+
onClick: ()=>hideWindow(),
|
|
116
|
+
children: /*#__PURE__*/ _jsx(ArrowRightIcon, {})
|
|
117
|
+
}),
|
|
118
|
+
!canCloseGroup && /*#__PURE__*/ _jsx(HeaderGlobalAction, {
|
|
119
|
+
"aria-label": getCoreTranslation('close'),
|
|
120
|
+
onClick: ()=>closeWorkspace({
|
|
121
|
+
closeWindow: true
|
|
122
|
+
}),
|
|
123
|
+
children: /*#__PURE__*/ _jsx(CloseIcon, {})
|
|
124
|
+
})
|
|
125
|
+
]
|
|
126
|
+
}) : /*#__PURE__*/ _jsxs(_Fragment, {
|
|
127
|
+
children: [
|
|
128
|
+
canHide && /*#__PURE__*/ _jsx(HeaderGlobalAction, {
|
|
129
|
+
"aria-label": getCoreTranslation('hide'),
|
|
130
|
+
onClick: ()=>hideWindow(),
|
|
131
|
+
children: /*#__PURE__*/ _jsx(DownToBottom, {})
|
|
132
|
+
}),
|
|
133
|
+
/*#__PURE__*/ _jsx(HeaderGlobalAction, {
|
|
134
|
+
"aria-label": getCoreTranslation('close'),
|
|
135
|
+
onClick: ()=>{
|
|
136
|
+
if (canCloseGroup) {
|
|
137
|
+
closeWorkspaceGroup2();
|
|
138
|
+
} else {
|
|
139
|
+
closeWorkspace({
|
|
140
|
+
closeWindow: true
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
children: /*#__PURE__*/ _jsx(CloseIcon, {})
|
|
145
|
+
})
|
|
146
|
+
]
|
|
147
|
+
})
|
|
148
|
+
})
|
|
149
|
+
]
|
|
150
|
+
}),
|
|
151
|
+
/*#__PURE__*/ _jsx("div", {
|
|
152
|
+
className: classNames(styles.workspaceContent),
|
|
153
|
+
children: children
|
|
154
|
+
})
|
|
155
|
+
]
|
|
156
|
+
})
|
|
157
|
+
})
|
|
158
|
+
]
|
|
159
|
+
});
|
|
160
|
+
};
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { type OpenedWindow, type WorkspaceStoreState2 } from '@egen-civitas/esm-extensions';
|
|
2
|
+
import { type Workspace2DefinitionProps } from './workspace2.component.js';
|
|
3
|
+
/**
|
|
4
|
+
* Attempts to launch the specified workspace group with the given group props. Note that only one workspace group
|
|
5
|
+
* may be opened at any given time. If a workspace group is already opened, calling `launchWorkspaceGroup2` with
|
|
6
|
+
* either a different group name, or same group name but different incompatible props**, will result in prompting to
|
|
7
|
+
* confirm closing workspaces. If the user confirms, the opened group, along with its windows (and their workspaces), is closed, and
|
|
8
|
+
* the requested group is immediately opened.
|
|
9
|
+
*
|
|
10
|
+
* ** 2 sets of props are compatible if either one is nullish, or if they are shallow equal.
|
|
11
|
+
* @experimental
|
|
12
|
+
* @param groupName
|
|
13
|
+
* @param groupProps
|
|
14
|
+
* @returns a Promise that resolves to true if the specified workspace group with the specified group props
|
|
15
|
+
* is successfully opened, or that it already is opened.
|
|
16
|
+
*/
|
|
17
|
+
export declare function launchWorkspaceGroup2<GroupProps extends object>(groupName: string, groupProps: GroupProps | null): Promise<boolean>;
|
|
18
|
+
/**
|
|
19
|
+
* Closes the workspace group that is currently opened. Note that only one workspace group
|
|
20
|
+
* may be opened at any given time
|
|
21
|
+
* @experimental
|
|
22
|
+
* @param discardUnsavedChanges If true, then the workspace group is forced closed, with no prompt
|
|
23
|
+
* for confirmation for unsaved changes in any opened workspace. This should be used sparingly
|
|
24
|
+
* for clean-up purpose, ex: when exiting an app.
|
|
25
|
+
* @returns a Promise that resolves to true if there is no opened group to begin with or we successfully closed
|
|
26
|
+
* the opened group; false otherwise.
|
|
27
|
+
*/
|
|
28
|
+
export declare function closeWorkspaceGroup2(discardUnsavedChanges?: boolean): Promise<boolean>;
|
|
29
|
+
/**
|
|
30
|
+
* Attempts to launch the specified workspace with the given workspace props. This also implicitly opens
|
|
31
|
+
* the workspace window to which the workspace belongs (if it's not opened already),
|
|
32
|
+
* and the workspace group to which the window belongs (if it's not opened already).
|
|
33
|
+
*
|
|
34
|
+
* When calling `launchWorkspace2`, we need to also pass in the workspace props. While not required,
|
|
35
|
+
* we can also pass in the window props (shared by other workspaces in the window) and the group props
|
|
36
|
+
* (shared by all windows and their workspaces). Omitting the window props or the group props[^1] means the caller
|
|
37
|
+
* explicitly does not care what the current window props and group props are, and that they may be set
|
|
38
|
+
* by other actions (like calling `launchWorkspace2` on a different workspace with those props passed in)
|
|
39
|
+
* at a later time.
|
|
40
|
+
*
|
|
41
|
+
* If there is already an opened workspace group, and it's not the group the workspace belongs to
|
|
42
|
+
* or has incompatible[^2] group props, then we prompt the user to close the group (and its windows and their workspaces).
|
|
43
|
+
* On user confirm, the existing opened group is closed and the new workspace, along with its window and its group,
|
|
44
|
+
* is opened.
|
|
45
|
+
*
|
|
46
|
+
* If the window is already opened, but with incompatible window props, we prompt the user to close
|
|
47
|
+
* the window (and all its opened workspaces), and reopen the window with (only) the newly requested workspace.
|
|
48
|
+
*
|
|
49
|
+
* If the workspace is already opened, but with incompatible workspace props, we also prompt the user to close
|
|
50
|
+
* the **window** (and all its opened workspaces), and reopen the window with (only) the newly requested workspace.
|
|
51
|
+
* This is true regardless of whether the already opened workspace has any child workspaces.
|
|
52
|
+
*
|
|
53
|
+
* Note that calling this function *never* results in creating a child workspace in the affected window.
|
|
54
|
+
* To do so, we need to call `launchChildWorkspace` instead.
|
|
55
|
+
*
|
|
56
|
+
* [^1] Omitting window or group props is useful for workspaces that don't have ties to the window or group "context" (props).
|
|
57
|
+
* For example, in the patient chart, the visit notes / clinical forms / order basket action menu button all share
|
|
58
|
+
* a "group context" of the current visit. However, the "patient list" action menu button does not need to share that group
|
|
59
|
+
* context, so opening that workspace should not need to cause other workspaces / windows / groups to potentially close.
|
|
60
|
+
* The "patient search" workspace in the queues and ward apps is another example.
|
|
61
|
+
*
|
|
62
|
+
* [^2] 2 sets of props are compatible if either one is nullish, or if they are shallow equal.
|
|
63
|
+
* @experimental
|
|
64
|
+
*/
|
|
65
|
+
export declare function launchWorkspace2<WorkspaceProps extends object, WindowProps extends object, GroupProp extends object>(workspaceName: string, workspaceProps?: WorkspaceProps | null, windowProps?: WindowProps | null, groupProps?: GroupProp | null): Promise<boolean>;
|
|
66
|
+
type PromptReason = {
|
|
67
|
+
reason: 'CLOSE_WORKSPACE_GROUP';
|
|
68
|
+
explicit: boolean;
|
|
69
|
+
} | {
|
|
70
|
+
reason: 'CLOSE_WINDOW';
|
|
71
|
+
explicit: boolean;
|
|
72
|
+
windowName: string;
|
|
73
|
+
} | {
|
|
74
|
+
reason: 'CLOSE_WORKSPACE';
|
|
75
|
+
explicit: boolean;
|
|
76
|
+
windowName: string;
|
|
77
|
+
workspaceName: string;
|
|
78
|
+
} | {
|
|
79
|
+
reason: 'CLOSE_OTHER_WINDOWS';
|
|
80
|
+
explicit: false;
|
|
81
|
+
windowNameToSpare: string;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* A user can perform actions that explicitly result in closing workspaces
|
|
85
|
+
* (such that clicking the 'X' button for the workspace or workspace group), or
|
|
86
|
+
* implicitly (by opening a workspace with different props than the one that is already opened).
|
|
87
|
+
* Calls to closeWorkspace2() or closeWorkspaceGroup2() are considered explicit, while calls
|
|
88
|
+
* to launchWorkspace2() or launchWorkspaceGroup2() are considered implicit.
|
|
89
|
+
*
|
|
90
|
+
* This function prompts the user for confirmation to close workspaces with a modal dialog.
|
|
91
|
+
* When the closing is explicit, it prompts for confirmation for affected workspaces with unsaved changes.
|
|
92
|
+
* When the closing is implicit, it prompts for confirmation for all affected workspaces, regardless of
|
|
93
|
+
* whether they have unsaved changes.
|
|
94
|
+
* @experimental
|
|
95
|
+
* @param promptReason
|
|
96
|
+
* @returns a Promise that resolves to true if the user confirmed closing the workspaces; false otherwise.
|
|
97
|
+
*/
|
|
98
|
+
export declare function promptForClosingWorkspaces(promptReason: PromptReason): Promise<boolean>;
|
|
99
|
+
export declare const workspace2StoreActions: {
|
|
100
|
+
setWindowMaximized(state: WorkspaceStoreState2, windowName: string, maximized: boolean): {
|
|
101
|
+
openedWindows: OpenedWindow[];
|
|
102
|
+
registeredGroupsByName: Record<string, import("@egen-civitas/esm-globals").WorkspaceGroupDefinition2 & {
|
|
103
|
+
moduleName: string;
|
|
104
|
+
}>;
|
|
105
|
+
registeredWindowsByName: Record<string, import("@egen-civitas/esm-globals").WorkspaceWindowDefinition2 & {
|
|
106
|
+
moduleName: string;
|
|
107
|
+
}>;
|
|
108
|
+
registeredWorkspacesByName: Record<string, import("@egen-civitas/esm-globals").WorkspaceDefinition2 & {
|
|
109
|
+
moduleName: string;
|
|
110
|
+
}>;
|
|
111
|
+
openedGroup: import("@egen-civitas/esm-extensions").OpenedGroup | null;
|
|
112
|
+
isMostRecentlyOpenedWindowHidden: boolean;
|
|
113
|
+
workspaceTitleByWorkspaceName: Record<string, string>;
|
|
114
|
+
};
|
|
115
|
+
hideWindow(state: WorkspaceStoreState2): {
|
|
116
|
+
isMostRecentlyOpenedWindowHidden: true;
|
|
117
|
+
registeredGroupsByName: Record<string, import("@egen-civitas/esm-globals").WorkspaceGroupDefinition2 & {
|
|
118
|
+
moduleName: string;
|
|
119
|
+
}>;
|
|
120
|
+
registeredWindowsByName: Record<string, import("@egen-civitas/esm-globals").WorkspaceWindowDefinition2 & {
|
|
121
|
+
moduleName: string;
|
|
122
|
+
}>;
|
|
123
|
+
registeredWorkspacesByName: Record<string, import("@egen-civitas/esm-globals").WorkspaceDefinition2 & {
|
|
124
|
+
moduleName: string;
|
|
125
|
+
}>;
|
|
126
|
+
openedGroup: import("@egen-civitas/esm-extensions").OpenedGroup | null;
|
|
127
|
+
openedWindows: Array<OpenedWindow>;
|
|
128
|
+
workspaceTitleByWorkspaceName: Record<string, string>;
|
|
129
|
+
};
|
|
130
|
+
restoreWindow(state: WorkspaceStoreState2, windowName: string): {
|
|
131
|
+
openedWindows: OpenedWindow[];
|
|
132
|
+
isMostRecentlyOpenedWindowHidden: false;
|
|
133
|
+
registeredGroupsByName: Record<string, import("@egen-civitas/esm-globals").WorkspaceGroupDefinition2 & {
|
|
134
|
+
moduleName: string;
|
|
135
|
+
}>;
|
|
136
|
+
registeredWindowsByName: Record<string, import("@egen-civitas/esm-globals").WorkspaceWindowDefinition2 & {
|
|
137
|
+
moduleName: string;
|
|
138
|
+
}>;
|
|
139
|
+
registeredWorkspacesByName: Record<string, import("@egen-civitas/esm-globals").WorkspaceDefinition2 & {
|
|
140
|
+
moduleName: string;
|
|
141
|
+
}>;
|
|
142
|
+
openedGroup: import("@egen-civitas/esm-extensions").OpenedGroup | null;
|
|
143
|
+
workspaceTitleByWorkspaceName: Record<string, string>;
|
|
144
|
+
};
|
|
145
|
+
closeWorkspace(state: WorkspaceStoreState2, workspaceName: string): WorkspaceStoreState2;
|
|
146
|
+
openChildWorkspace(state: WorkspaceStoreState2, parentWorkspaceName: string, childWorkspaceName: string, childWorkspaceProps: Record<string, any>): {
|
|
147
|
+
openedWindows: OpenedWindow[];
|
|
148
|
+
};
|
|
149
|
+
setHasUnsavedChanges(state: WorkspaceStoreState2, workspaceName: string, hasUnsavedChanges: boolean): WorkspaceStoreState2;
|
|
150
|
+
setWorkspaceTitle(state: WorkspaceStoreState2, workspaceName: string, title: string | null): {
|
|
151
|
+
workspaceTitleByWorkspaceName: {
|
|
152
|
+
[x: string]: string;
|
|
153
|
+
};
|
|
154
|
+
registeredGroupsByName: Record<string, import("@egen-civitas/esm-globals").WorkspaceGroupDefinition2 & {
|
|
155
|
+
moduleName: string;
|
|
156
|
+
}>;
|
|
157
|
+
registeredWindowsByName: Record<string, import("@egen-civitas/esm-globals").WorkspaceWindowDefinition2 & {
|
|
158
|
+
moduleName: string;
|
|
159
|
+
}>;
|
|
160
|
+
registeredWorkspacesByName: Record<string, import("@egen-civitas/esm-globals").WorkspaceDefinition2 & {
|
|
161
|
+
moduleName: string;
|
|
162
|
+
}>;
|
|
163
|
+
openedGroup: import("@egen-civitas/esm-extensions").OpenedGroup | null;
|
|
164
|
+
openedWindows: Array<OpenedWindow>;
|
|
165
|
+
isMostRecentlyOpenedWindowHidden: boolean;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
export declare function useWorkspace2Store(): WorkspaceStoreState2 & {
|
|
169
|
+
setWindowMaximized: (windowName: string, maximized: boolean) => void;
|
|
170
|
+
hideWindow: () => void;
|
|
171
|
+
restoreWindow: (windowName: string) => void;
|
|
172
|
+
closeWorkspace: (workspaceName: string) => void;
|
|
173
|
+
openChildWorkspace: (parentWorkspaceName: string, childWorkspaceName: string, childWorkspaceProps: Record<string, any>) => void;
|
|
174
|
+
setHasUnsavedChanges: (workspaceName: string, hasUnsavedChanges: boolean) => void;
|
|
175
|
+
setWorkspaceTitle: (workspaceName: string, title: string | null) => void;
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* Returns the react Context containing props passed into a workspace.
|
|
179
|
+
* This hook MUST be called inside a child of <Workspace2>
|
|
180
|
+
*/
|
|
181
|
+
export declare const useWorkspace2Context: () => Workspace2DefinitionProps<object, object, object>;
|
|
182
|
+
/**
|
|
183
|
+
* @returns a list of registered workspaces.
|
|
184
|
+
*/
|
|
185
|
+
export declare const getRegisteredWorkspace2Names: () => string[];
|
|
186
|
+
export {};
|
|
187
|
+
//# sourceMappingURL=workspace2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace2.d.ts","sourceRoot":"","sources":["../../src/workspaces2/workspace2.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,YAAY,EAGjB,KAAK,oBAAoB,EAC1B,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAE3E;;;;;;;;;;;;;GAaG;AACH,wBAAsB,qBAAqB,CAAC,UAAU,SAAS,MAAM,EACnE,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,UAAU,GAAG,IAAI,GAC5B,OAAO,CAAC,OAAO,CAAC,CA4BlB;AAED;;;;;;;;;GASG;AACH,wBAAsB,oBAAoB,CAAC,qBAAqB,CAAC,EAAE,OAAO,oBAsBzE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,gBAAgB,CACpC,cAAc,SAAS,MAAM,EAC7B,WAAW,SAAS,MAAM,EAC1B,SAAS,SAAS,MAAM,EAExB,aAAa,EAAE,MAAM,EACrB,cAAc,GAAE,cAAc,GAAG,IAAW,EAC5C,WAAW,GAAE,WAAW,GAAG,IAAW,EACtC,UAAU,GAAE,SAAS,GAAG,IAAW,GAClC,OAAO,CAAC,OAAO,CAAC,CAmLlB;AAoBD,KAAK,YAAY,GACb;IAAE,MAAM,EAAE,uBAAuB,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,GACtD;IAAE,MAAM,EAAE,cAAc,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GACjE;IAAE,MAAM,EAAE,iBAAiB,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,GAC3F;IAAE,MAAM,EAAE,qBAAqB,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,CAAC;AAElF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,0BAA0B,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,CAkEvF;AAED,eAAO,MAAM,sBAAsB;8BACP,oBAAoB,cAAc,MAAM,aAAa,OAAO;;;;;;;;;;;;;;;sBAapE,oBAAoB;;;;;;;;;;;;;;;yBAMjB,oBAAoB,cAAc,MAAM;;;;;;;;;;;;;;;+DAUxB,MAAM;yEAmCpB,MAAM,sBACP,MAAM,uBACL,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;gCAiDd,oBAAoB,iBAAiB,MAAM,qBAAqB,OAAO;6BA0B1E,oBAAoB,iBAAiB,MAAM,SAAS,MAAM,GAAG,IAAI;;;;;;;;;;;;;;;;;CAcnD,CAAC;AAE1C,wBAAgB,kBAAkB;;;;;;;;EAEjC;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,yDACyE,CAAC;AAE3G;;GAEG;AACH,eAAO,MAAM,4BAA4B,gBAExC,CAAC"}
|