@ouestfrance/sipa-bms-ui 7.14.1
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 +280 -0
- package/dist/assets/animated-icons/AnimatedActivityIcon.vue.d.ts +133 -0
- package/dist/assets/animated-icons/AnimatedCircleHelpIcon.vue.d.ts +133 -0
- package/dist/assets/animated-icons/AnimatedHomeIcon.vue.d.ts +133 -0
- package/dist/components/button/BmsButton.spec.d.ts +1 -0
- package/dist/components/button/BmsButton.vue.d.ts +24 -0
- package/dist/components/button/BmsIconButton.vue.d.ts +23 -0
- package/dist/components/button/UiButton.vue.d.ts +26 -0
- package/dist/components/button/UiButtonLink.vue.d.ts +20 -0
- package/dist/components/feedback/BmsAlert.vue.d.ts +24 -0
- package/dist/components/feedback/BmsBadge.vue.d.ts +18 -0
- package/dist/components/feedback/BmsCaption.vue.d.ts +6 -0
- package/dist/components/feedback/BmsCircularProgress.spec.d.ts +1 -0
- package/dist/components/feedback/BmsCircularProgress.vue.d.ts +6 -0
- package/dist/components/feedback/BmsLoader.spec.d.ts +1 -0
- package/dist/components/feedback/BmsLoader.vue.d.ts +9 -0
- package/dist/components/feedback/BmsTooltip.vue.d.ts +28 -0
- package/dist/components/feedback/UiTooltip.spec.d.ts +1 -0
- package/dist/components/feedback/UiTooltip.vue.d.ts +27 -0
- package/dist/components/feedback/tooltip.helper.d.ts +45 -0
- package/dist/components/feedback/tooltip.helper.spec.d.ts +1 -0
- package/dist/components/form/BmsAutocomplete.vue.d.ts +31 -0
- package/dist/components/form/BmsBetweenInput.vue.d.ts +32 -0
- package/dist/components/form/BmsChip.vue.d.ts +15 -0
- package/dist/components/form/BmsFilePicker.spec.d.ts +1 -0
- package/dist/components/form/BmsFilePicker.vue.d.ts +12 -0
- package/dist/components/form/BmsInputBooleanCheckbox.vue.d.ts +30 -0
- package/dist/components/form/BmsInputCheckboxCaption.spec.d.ts +1 -0
- package/dist/components/form/BmsInputCheckboxCaption.vue.d.ts +31 -0
- package/dist/components/form/BmsInputCheckboxCaptionGroup.vue.d.ts +25 -0
- package/dist/components/form/BmsInputCheckboxGroup.vue.d.ts +24 -0
- package/dist/components/form/BmsInputCode.vue.d.ts +27 -0
- package/dist/components/form/BmsInputDateTime.vue.d.ts +24 -0
- package/dist/components/form/BmsInputFile.spec.d.ts +1 -0
- package/dist/components/form/BmsInputFile.vue.d.ts +27 -0
- package/dist/components/form/BmsInputNumber.spec.d.ts +1 -0
- package/dist/components/form/BmsInputNumber.vue.d.ts +26 -0
- package/dist/components/form/BmsInputRadio.vue.d.ts +28 -0
- package/dist/components/form/BmsInputRadioCaption.vue.d.ts +30 -0
- package/dist/components/form/BmsInputRadioCaptionGroup.vue.d.ts +30 -0
- package/dist/components/form/BmsInputRadioGroup.vue.d.ts +30 -0
- package/dist/components/form/BmsInputText.spec.d.ts +1 -0
- package/dist/components/form/BmsInputText.vue.d.ts +128 -0
- package/dist/components/form/BmsInputToggle.vue.d.ts +15 -0
- package/dist/components/form/BmsSearch.spec.d.ts +1 -0
- package/dist/components/form/BmsSearch.vue.d.ts +187 -0
- package/dist/components/form/BmsSelect.spec.d.ts +1 -0
- package/dist/components/form/BmsSelect.vue.d.ts +34 -0
- package/dist/components/form/BmsTag.vue.d.ts +25 -0
- package/dist/components/form/BmsTextArea.spec.d.ts +1 -0
- package/dist/components/form/BmsTextArea.vue.d.ts +26 -0
- package/dist/components/form/RawAutocomplete.spec.d.ts +1 -0
- package/dist/components/form/RawAutocomplete.vue.d.ts +130 -0
- package/dist/components/form/RawInputText.vue.d.ts +42 -0
- package/dist/components/form/UiBmsInputCheckbox.vue.d.ts +28 -0
- package/dist/components/form/UiBmsSwitch.vue.d.ts +14 -0
- package/dist/components/layout/BmsCard.vue.d.ts +21 -0
- package/dist/components/layout/BmsContentPageLayout.vue.d.ts +17 -0
- package/dist/components/layout/BmsForm.vue.d.ts +7 -0
- package/dist/components/layout/BmsHeader.vue.d.ts +9 -0
- package/dist/components/layout/BmsHeaderTitle.vue.d.ts +22 -0
- package/dist/components/layout/BmsModal.spec.d.ts +1 -0
- package/dist/components/layout/BmsModal.vue.d.ts +60 -0
- package/dist/components/layout/BmsOverlay.vue.d.ts +13 -0
- package/dist/components/layout/BmsSection.vue.d.ts +15 -0
- package/dist/components/layout/BmsStep.vue.d.ts +27 -0
- package/dist/components/layout/BmsStepper.vue.d.ts +13 -0
- package/dist/components/layout/UiPopoverMenu.vue.d.ts +23 -0
- package/dist/components/navigation/BmsBackButton.vue.d.ts +13 -0
- package/dist/components/navigation/BmsBreadcrumb.vue.d.ts +12 -0
- package/dist/components/navigation/BmsLink.spec.d.ts +1 -0
- package/dist/components/navigation/BmsLink.vue.d.ts +22 -0
- package/dist/components/navigation/BmsMenu.spec.d.ts +1 -0
- package/dist/components/navigation/BmsMenu.vue.d.ts +21 -0
- package/dist/components/navigation/BmsMenuNav.spec.d.ts +1 -0
- package/dist/components/navigation/BmsMenuNav.vue.d.ts +23 -0
- package/dist/components/navigation/BmsShortLinkMenu.vue.d.ts +20 -0
- package/dist/components/navigation/BmsTabs.vue.d.ts +7 -0
- package/dist/components/navigation/BmsTenantSwitcher.vue.d.ts +22 -0
- package/dist/components/navigation/UiMenuItem.vue.d.ts +11 -0
- package/dist/components/navigation/UiTab.vue.d.ts +15 -0
- package/dist/components/navigation/UiTenantImage.vue.d.ts +6 -0
- package/dist/components/navigation/UiTenantLabel.vue.d.ts +12 -0
- package/dist/components/navigation/UiTenantSwitcher.spec.d.ts +1 -0
- package/dist/components/navigation/UiTenantSwitcher.vue.d.ts +189 -0
- package/dist/components/table/BmsEmptyScreen.vue.d.ts +6 -0
- package/dist/components/table/BmsPagination.spec.d.ts +1 -0
- package/dist/components/table/BmsPagination.vue.d.ts +35 -0
- package/dist/components/table/BmsServerTable.vue.d.ts +74 -0
- package/dist/components/table/BmsTable.spec.d.ts +1 -0
- package/dist/components/table/BmsTable.vue.d.ts +53 -0
- package/dist/components/table/BmsTableFilters.spec.d.ts +1 -0
- package/dist/components/table/BmsTableFilters.vue.d.ts +188 -0
- package/dist/components/table/DraggableList.vue.d.ts +26 -0
- package/dist/components/table/UiBmsTable.spec.d.ts +1 -0
- package/dist/components/table/UiBmsTable.vue.d.ts +66 -0
- package/dist/components/table/UiFilterButton.vue.d.ts +13 -0
- package/dist/components/utils/BmsCocarde.vue.d.ts +11 -0
- package/dist/components/utils/BmsProblem.vue.d.ts +9 -0
- package/dist/components/utils/BmsRelativeTime.spec.d.ts +1 -0
- package/dist/components/utils/BmsRelativeTime.vue.d.ts +11 -0
- package/dist/composables/clipboard.composable.d.ts +3 -0
- package/dist/composables/index.d.ts +5 -0
- package/dist/composables/pagination.composable.d.ts +14 -0
- package/dist/composables/pagination.composable.spec.d.ts +1 -0
- package/dist/composables/search.composable.d.ts +52 -0
- package/dist/composables/search.composable.spec.d.ts +1 -0
- package/dist/composables/search.helper.d.ts +7 -0
- package/dist/composables/search.helper.spec.d.ts +1 -0
- package/dist/composables/sort.composable.d.ts +10 -0
- package/dist/composables/sort.composable.spec.d.ts +1 -0
- package/dist/composables/userPref.composable.d.ts +6 -0
- package/dist/composables/userPref.composable.spec.d.ts +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/helpers/cocarde.helper.d.ts +1 -0
- package/dist/helpers/cocarde.helper.spec.d.ts +1 -0
- package/dist/helpers/date.helper.d.ts +26 -0
- package/dist/helpers/date.helper.spec.d.ts +1 -0
- package/dist/helpers/file.helper.d.ts +5 -0
- package/dist/helpers/file.helper.spec.d.ts +1 -0
- package/dist/helpers/index.d.ts +6 -0
- package/dist/helpers/location.helper.d.ts +10 -0
- package/dist/helpers/location.helper.spec.d.ts +1 -0
- package/dist/helpers/problem.helper.d.ts +1 -0
- package/dist/helpers/problem.helper.spec.d.ts +1 -0
- package/dist/helpers/string.helper.d.ts +9 -0
- package/dist/helpers/string.helper.spec.d.ts +1 -0
- package/dist/helpers/table.helper.d.ts +16 -0
- package/dist/helpers/table.helper.spec.d.ts +1 -0
- package/dist/index.d.ts +72 -0
- package/dist/logo.png +0 -0
- package/dist/main.d.ts +0 -0
- package/dist/mockServiceWorker.js +344 -0
- package/dist/models/breadcrumb.model.d.ts +5 -0
- package/dist/models/caption.model.d.ts +6 -0
- package/dist/models/chip.model.d.ts +8 -0
- package/dist/models/cocarde.model.d.ts +4 -0
- package/dist/models/form.model.d.ts +25 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/menu.model.d.ts +18 -0
- package/dist/models/modal.model.d.ts +8 -0
- package/dist/models/problem.model.d.ts +14 -0
- package/dist/models/sort.model.d.ts +11 -0
- package/dist/models/status-type.model.d.ts +7 -0
- package/dist/models/tab.model.d.ts +7 -0
- package/dist/models/table.model.d.ts +53 -0
- package/dist/models/tenant.model.d.ts +7 -0
- package/dist/models/tooltip.model.d.ts +6 -0
- package/dist/plugins/confirm/index.d.ts +9 -0
- package/dist/plugins/feature-flipper/FeatureFlipper.vue.d.ts +9 -0
- package/dist/plugins/feature-flipper/FeatureFlipperIndicator.vue.d.ts +6 -0
- package/dist/plugins/feature-flipper/FeatureFlipperModal.vue.d.ts +16 -0
- package/dist/plugins/feature-flipper/featureFlipper.composable.d.ts +10 -0
- package/dist/plugins/feature-flipper/featureFlipper.composable.spec.d.ts +1 -0
- package/dist/plugins/feature-flipper/featureFlipper.model.d.ts +3 -0
- package/dist/plugins/feature-flipper/index.d.ts +4 -0
- package/dist/plugins/field/FieldComponent.spec.d.ts +1 -0
- package/dist/plugins/field/FieldComponent.vue.d.ts +25 -0
- package/dist/plugins/field/FieldDatalist.vue.d.ts +27 -0
- package/dist/plugins/field/index.d.ts +2 -0
- package/dist/plugins/keycloak-auth-adapter/index.d.ts +20 -0
- package/dist/plugins/notifications/NotificationItem.vue.d.ts +12 -0
- package/dist/plugins/notifications/NotificationWidget.vue.d.ts +2 -0
- package/dist/plugins/notifications/index.d.ts +11 -0
- package/dist/plugins/notifications/notification.model.d.ts +20 -0
- package/dist/plugins/router-history/index.d.ts +6 -0
- package/dist/plugins/router-history/router-history.composable.d.ts +7 -0
- package/dist/plugins/router-history/router-history.composable.spec.d.ts +1 -0
- package/dist/plugins/runtime-env/index.d.ts +7 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/konami.service.d.ts +2 -0
- package/dist/showroom/App.vue.d.ts +2 -0
- package/dist/showroom/router.d.ts +8 -0
- package/dist/sipa-bms-ui.css +3024 -0
- package/dist/sipa-bms-ui.es.js +102694 -0
- package/dist/sipa-bms-ui.es.js.map +1 -0
- package/dist/sipa-bms-ui.umd.js +102815 -0
- package/dist/sipa-bms-ui.umd.js.map +1 -0
- package/package.json +126 -0
- package/src/assets/animated-icons/AnimatedActivityIcon.vue +77 -0
- package/src/assets/animated-icons/AnimatedCircleHelpIcon.vue +67 -0
- package/src/assets/animated-icons/AnimatedHomeIcon.vue +69 -0
- package/src/assets/empty.svg +1 -0
- package/src/assets/scss/_conf.scss +203 -0
- package/src/assets/scss/_formkit.scss +353 -0
- package/src/assets/scss/app.scss +11 -0
- package/src/assets/scss/global-variables.scss +56 -0
- package/src/components/button/BmsAllButtons.stories.js +56 -0
- package/src/components/button/BmsButton.spec.ts +37 -0
- package/src/components/button/BmsButton.stories.js +84 -0
- package/src/components/button/BmsButton.vue +50 -0
- package/src/components/button/BmsIconButton.stories.js +67 -0
- package/src/components/button/BmsIconButton.vue +34 -0
- package/src/components/button/UiButton.stories.js +131 -0
- package/src/components/button/UiButton.vue +37 -0
- package/src/components/button/UiButtonLink.vue +186 -0
- package/src/components/feedback/BmsAlert.stories.js +75 -0
- package/src/components/feedback/BmsAlert.vue +91 -0
- package/src/components/feedback/BmsBadge.stories.js +34 -0
- package/src/components/feedback/BmsBadge.vue +76 -0
- package/src/components/feedback/BmsCaption.stories.js +59 -0
- package/src/components/feedback/BmsCaption.vue +88 -0
- package/src/components/feedback/BmsCircularProgress.spec.ts +14 -0
- package/src/components/feedback/BmsCircularProgress.stories.js +45 -0
- package/src/components/feedback/BmsCircularProgress.vue +64 -0
- package/src/components/feedback/BmsLoader.spec.ts +7 -0
- package/src/components/feedback/BmsLoader.stories.js +31 -0
- package/src/components/feedback/BmsLoader.vue +82 -0
- package/src/components/feedback/BmsTooltip.stories.js +65 -0
- package/src/components/feedback/BmsTooltip.vue +102 -0
- package/src/components/feedback/Notification.stories.js +37 -0
- package/src/components/feedback/UiTooltip.spec.ts +62 -0
- package/src/components/feedback/UiTooltip.stories.js +71 -0
- package/src/components/feedback/UiTooltip.vue +219 -0
- package/src/components/feedback/tooltip.helper.spec.ts +92 -0
- package/src/components/feedback/tooltip.helper.ts +121 -0
- package/src/components/form/BmsAutocomplete.stories.js +90 -0
- package/src/components/form/BmsAutocomplete.vue +100 -0
- package/src/components/form/BmsBetweenInput.stories.js +69 -0
- package/src/components/form/BmsBetweenInput.vue +146 -0
- package/src/components/form/BmsChip.stories.js +65 -0
- package/src/components/form/BmsChip.vue +92 -0
- package/src/components/form/BmsFilePicker.spec.ts +94 -0
- package/src/components/form/BmsFilePicker.stories.js +53 -0
- package/src/components/form/BmsFilePicker.vue +186 -0
- package/src/components/form/BmsInputBooleanCheckbox.stories.js +90 -0
- package/src/components/form/BmsInputBooleanCheckbox.vue +70 -0
- package/src/components/form/BmsInputCheckboxCaption.spec.ts +45 -0
- package/src/components/form/BmsInputCheckboxCaption.stories.js +92 -0
- package/src/components/form/BmsInputCheckboxCaption.vue +126 -0
- package/src/components/form/BmsInputCheckboxCaptionGroup.stories.js +153 -0
- package/src/components/form/BmsInputCheckboxCaptionGroup.vue +81 -0
- package/src/components/form/BmsInputCheckboxGroup.stories.js +94 -0
- package/src/components/form/BmsInputCheckboxGroup.vue +94 -0
- package/src/components/form/BmsInputCode.stories.js +43 -0
- package/src/components/form/BmsInputCode.vue +71 -0
- package/src/components/form/BmsInputDateTime.stories.js +71 -0
- package/src/components/form/BmsInputDateTime.vue +55 -0
- package/src/components/form/BmsInputFile.spec.ts +90 -0
- package/src/components/form/BmsInputFile.stories.js +156 -0
- package/src/components/form/BmsInputFile.vue +310 -0
- package/src/components/form/BmsInputNumber.spec.ts +40 -0
- package/src/components/form/BmsInputNumber.stories.js +79 -0
- package/src/components/form/BmsInputNumber.vue +67 -0
- package/src/components/form/BmsInputRadio.stories.js +79 -0
- package/src/components/form/BmsInputRadio.vue +121 -0
- package/src/components/form/BmsInputRadioCaption.stories.js +98 -0
- package/src/components/form/BmsInputRadioCaption.vue +110 -0
- package/src/components/form/BmsInputRadioCaptionGroup.stories.js +166 -0
- package/src/components/form/BmsInputRadioCaptionGroup.vue +81 -0
- package/src/components/form/BmsInputRadioGroup.stories.js +108 -0
- package/src/components/form/BmsInputRadioGroup.vue +93 -0
- package/src/components/form/BmsInputText.spec.ts +37 -0
- package/src/components/form/BmsInputText.stories.js +78 -0
- package/src/components/form/BmsInputText.vue +79 -0
- package/src/components/form/BmsInputToggle.stories.js +37 -0
- package/src/components/form/BmsInputToggle.vue +66 -0
- package/src/components/form/BmsSearch.spec.ts +41 -0
- package/src/components/form/BmsSearch.stories.js +70 -0
- package/src/components/form/BmsSearch.vue +62 -0
- package/src/components/form/BmsSelect.spec.ts +57 -0
- package/src/components/form/BmsSelect.stories.js +131 -0
- package/src/components/form/BmsSelect.vue +225 -0
- package/src/components/form/BmsTag.stories.js +64 -0
- package/src/components/form/BmsTag.vue +109 -0
- package/src/components/form/BmsTextArea.spec.ts +37 -0
- package/src/components/form/BmsTextArea.stories.js +74 -0
- package/src/components/form/BmsTextArea.vue +112 -0
- package/src/components/form/Form.stories.js +35 -0
- package/src/components/form/RawAutocomplete.spec.ts +103 -0
- package/src/components/form/RawAutocomplete.vue +218 -0
- package/src/components/form/RawInputText.vue +173 -0
- package/src/components/form/UiBmsInputCheckbox.stories.js +77 -0
- package/src/components/form/UiBmsInputCheckbox.vue +126 -0
- package/src/components/form/UiBmsSwitch.stories.js +40 -0
- package/src/components/form/UiBmsSwitch.vue +80 -0
- package/src/components/layout/BmsCard.stories.js +77 -0
- package/src/components/layout/BmsCard.vue +133 -0
- package/src/components/layout/BmsContentPageLayout.vue +92 -0
- package/src/components/layout/BmsForm.stories.js +30 -0
- package/src/components/layout/BmsForm.vue +42 -0
- package/src/components/layout/BmsHeader.stories.js +29 -0
- package/src/components/layout/BmsHeader.vue +16 -0
- package/src/components/layout/BmsHeaderTitle.stories.js +68 -0
- package/src/components/layout/BmsHeaderTitle.vue +76 -0
- package/src/components/layout/BmsModal.spec.ts +174 -0
- package/src/components/layout/BmsModal.stories.js +153 -0
- package/src/components/layout/BmsModal.vue +359 -0
- package/src/components/layout/BmsOverlay.stories.js +34 -0
- package/src/components/layout/BmsOverlay.vue +28 -0
- package/src/components/layout/BmsSection.stories.js +45 -0
- package/src/components/layout/BmsSection.vue +35 -0
- package/src/components/layout/BmsStep.stories.js +71 -0
- package/src/components/layout/BmsStep.vue +60 -0
- package/src/components/layout/BmsStepper.stories.js +57 -0
- package/src/components/layout/BmsStepper.vue +195 -0
- package/src/components/layout/UiPopoverMenu.vue +167 -0
- package/src/components/navigation/BmsBackButton.stories.js +27 -0
- package/src/components/navigation/BmsBackButton.vue +38 -0
- package/src/components/navigation/BmsBreadcrumb.stories.js +80 -0
- package/src/components/navigation/BmsBreadcrumb.vue +45 -0
- package/src/components/navigation/BmsLink.spec.ts +45 -0
- package/src/components/navigation/BmsLink.vue +59 -0
- package/src/components/navigation/BmsMenu.spec.ts +95 -0
- package/src/components/navigation/BmsMenu.stories.js +85 -0
- package/src/components/navigation/BmsMenu.vue +148 -0
- package/src/components/navigation/BmsMenuNav.spec.ts +140 -0
- package/src/components/navigation/BmsMenuNav.stories.js +187 -0
- package/src/components/navigation/BmsMenuNav.vue +217 -0
- package/src/components/navigation/BmsShortLinkMenu.stories.js +55 -0
- package/src/components/navigation/BmsShortLinkMenu.vue +59 -0
- package/src/components/navigation/BmsTabs.stories.js +30 -0
- package/src/components/navigation/BmsTabs.vue +46 -0
- package/src/components/navigation/BmsTenantSwitcher.stories.js +89 -0
- package/src/components/navigation/BmsTenantSwitcher.vue +135 -0
- package/src/components/navigation/UiMenuItem.stories.js +73 -0
- package/src/components/navigation/UiMenuItem.vue +116 -0
- package/src/components/navigation/UiMenuItemStatus.stories.js +58 -0
- package/src/components/navigation/UiTab.stories.js +56 -0
- package/src/components/navigation/UiTab.vue +71 -0
- package/src/components/navigation/UiTenantImage.vue +22 -0
- package/src/components/navigation/UiTenantLabel.vue +94 -0
- package/src/components/navigation/UiTenantSwitcher.spec.ts +167 -0
- package/src/components/navigation/UiTenantSwitcher.stories.js +70 -0
- package/src/components/navigation/UiTenantSwitcher.vue +161 -0
- package/src/components/table/BmsEmptyScreen.stories.js +32 -0
- package/src/components/table/BmsEmptyScreen.vue +54 -0
- package/src/components/table/BmsPagination.spec.ts +73 -0
- package/src/components/table/BmsPagination.stories.js +34 -0
- package/src/components/table/BmsPagination.vue +154 -0
- package/src/components/table/BmsServerTable.stories.js +422 -0
- package/src/components/table/BmsServerTable.vue +402 -0
- package/src/components/table/BmsTable.spec.ts +309 -0
- package/src/components/table/BmsTable.stories.js +930 -0
- package/src/components/table/BmsTable.vue +308 -0
- package/src/components/table/BmsTableFilters.spec.ts +494 -0
- package/src/components/table/BmsTableFilters.stories.js +114 -0
- package/src/components/table/BmsTableFilters.vue +268 -0
- package/src/components/table/DraggableList.stories.js +29 -0
- package/src/components/table/DraggableList.vue +179 -0
- package/src/components/table/UiBmsTable.spec.ts +373 -0
- package/src/components/table/UiBmsTable.stories.js +563 -0
- package/src/components/table/UiBmsTable.vue +617 -0
- package/src/components/table/UiFilterButton.stories.js +37 -0
- package/src/components/table/UiFilterButton.vue +85 -0
- package/src/components/utils/BmsCocarde.stories.js +47 -0
- package/src/components/utils/BmsCocarde.vue +66 -0
- package/src/components/utils/BmsProblem.stories.js +82 -0
- package/src/components/utils/BmsProblem.vue +223 -0
- package/src/components/utils/BmsRelativeTime.spec.ts +41 -0
- package/src/components/utils/BmsRelativeTime.stories.js +48 -0
- package/src/components/utils/BmsRelativeTime.vue +57 -0
- package/src/composables/clipboard.composable.ts +14 -0
- package/src/composables/index.ts +5 -0
- package/src/composables/pagination.composable.spec.ts +258 -0
- package/src/composables/pagination.composable.ts +111 -0
- package/src/composables/search.composable.spec.ts +1296 -0
- package/src/composables/search.composable.ts +316 -0
- package/src/composables/search.helper.spec.ts +339 -0
- package/src/composables/search.helper.ts +103 -0
- package/src/composables/sort.composable.spec.ts +349 -0
- package/src/composables/sort.composable.ts +129 -0
- package/src/composables/userPref.composable.spec.ts +115 -0
- package/src/composables/userPref.composable.ts +43 -0
- package/src/documentation/ColorTile.vue +23 -0
- package/src/documentation/assets/BmsIcon.png +0 -0
- package/src/documentation/assets/CoverBmsUI.png +0 -0
- package/src/documentation/assets/button/CoverPrimaryButton.png +0 -0
- package/src/documentation/assets/button/CoverSecondaryButton.png +0 -0
- package/src/documentation/assets/button/DoButtonLabel.png +0 -0
- package/src/documentation/assets/button/DontButtonLabel.png +0 -0
- package/src/documentation/assets/button/PrimaryButtonRepresentation.png +0 -0
- package/src/documentation/assets/cards/CardRepresentation.png +0 -0
- package/src/documentation/assets/cards/CoverCard.png +0 -0
- package/src/documentation/assets/chip/ChipRepresentation.png +0 -0
- package/src/documentation/assets/chip/CoverChips.png +0 -0
- package/src/documentation/assets/fields/Anatomy.png +0 -0
- package/src/documentation/assets/fields/CaptionRepresentation.png +0 -0
- package/src/documentation/assets/fields/CaptionTextRepresentation.png +0 -0
- package/src/documentation/assets/fields/CoverFieldsAnatomy.png +0 -0
- package/src/documentation/assets/fields/CoverInputFile.png +0 -0
- package/src/documentation/assets/fields/CoverInputText.png +0 -0
- package/src/documentation/assets/fields/CoverRadioCaptionGroup.png +0 -0
- package/src/documentation/assets/fields/CoverRadioGroup.png +0 -0
- package/src/documentation/assets/fields/CoverSearch.png +0 -0
- package/src/documentation/assets/fields/CoverSelect.png +0 -0
- package/src/documentation/assets/fields/CoverTextArea.png +0 -0
- package/src/documentation/assets/fields/FieldLabel.png +0 -0
- package/src/documentation/assets/fields/InputMediaRepresentation.png +0 -0
- package/src/documentation/assets/fields/InputRepresentation.png +0 -0
- package/src/documentation/assets/fields/InputSearchRepresentation.png +0 -0
- package/src/documentation/assets/fields/InputText.png +0 -0
- package/src/documentation/assets/fields/InputTextAreaRepresentation.png +0 -0
- package/src/documentation/assets/fields/LabelDo.png +0 -0
- package/src/documentation/assets/fields/LabelDont.png +0 -0
- package/src/documentation/assets/fields/LabelRepresentation.png +0 -0
- package/src/documentation/assets/fields/RadioCaptionGroupRepresentation.png +0 -0
- package/src/documentation/assets/fields/RadioGroupRepresentation.png +0 -0
- package/src/documentation/assets/fields/SelectRepresentation.png +0 -0
- package/src/documentation/assets/tag/CoverTag.png +0 -0
- package/src/documentation/assets/tag/TagRepresentation.png +0 -0
- package/src/documentation/button.mdx +24 -0
- package/src/documentation/card.mdx +28 -0
- package/src/documentation/chip.mdx +28 -0
- package/src/documentation/colors.mdx +118 -0
- package/src/documentation/fields.mdx +52 -0
- package/src/documentation/fields_text.mdx +31 -0
- package/src/documentation/icons.mdx +33 -0
- package/src/documentation/inputFile.mdx +28 -0
- package/src/documentation/primaryButton.mdx +20 -0
- package/src/documentation/principles.mdx +23 -0
- package/src/documentation/radioCaptionGroup.mdx +34 -0
- package/src/documentation/radioGroup.mdx +34 -0
- package/src/documentation/search.mdx +28 -0
- package/src/documentation/secondaryButton.mdx +17 -0
- package/src/documentation/select.mdx +31 -0
- package/src/documentation/tag.mdx +28 -0
- package/src/documentation/template_field_dependency.mdx +19 -0
- package/src/documentation/textArea.mdx +27 -0
- package/src/documentation/typography.mdx +93 -0
- package/src/documentation/typography.stories.js +26 -0
- package/src/helpers/cocarde.helper.spec.ts +14 -0
- package/src/helpers/cocarde.helper.ts +22 -0
- package/src/helpers/date.helper.spec.ts +91 -0
- package/src/helpers/date.helper.ts +105 -0
- package/src/helpers/file.helper.spec.ts +60 -0
- package/src/helpers/file.helper.ts +24 -0
- package/src/helpers/index.ts +6 -0
- package/src/helpers/location.helper.spec.ts +195 -0
- package/src/helpers/location.helper.ts +53 -0
- package/src/helpers/problem.helper.spec.ts +21 -0
- package/src/helpers/problem.helper.ts +4 -0
- package/src/helpers/string.helper.spec.ts +186 -0
- package/src/helpers/string.helper.ts +83 -0
- package/src/helpers/table.helper.spec.ts +141 -0
- package/src/helpers/table.helper.ts +88 -0
- package/src/index.ts +203 -0
- package/src/main.ts +25 -0
- package/src/models/breadcrumb.model.ts +6 -0
- package/src/models/caption.model.ts +7 -0
- package/src/models/chip.model.ts +8 -0
- package/src/models/cocarde.model.ts +4 -0
- package/src/models/form.model.ts +30 -0
- package/src/models/index.ts +14 -0
- package/src/models/menu.model.ts +20 -0
- package/src/models/modal.model.ts +9 -0
- package/src/models/problem.model.ts +10 -0
- package/src/models/sort.model.ts +13 -0
- package/src/models/status-type.model.ts +7 -0
- package/src/models/tab.model.ts +7 -0
- package/src/models/table.model.ts +58 -0
- package/src/models/tenant.model.ts +7 -0
- package/src/models/tooltip.model.ts +6 -0
- package/src/pages/Form.stories.js +83 -0
- package/src/pages/List.stories.js +88 -0
- package/src/plugins/confirm/index.ts +109 -0
- package/src/plugins/feature-flipper/FeatureFlipper.vue +23 -0
- package/src/plugins/feature-flipper/FeatureFlipperIndicator.vue +27 -0
- package/src/plugins/feature-flipper/FeatureFlipperModal.vue +68 -0
- package/src/plugins/feature-flipper/featureFlipper.composable.spec.ts +107 -0
- package/src/plugins/feature-flipper/featureFlipper.composable.ts +68 -0
- package/src/plugins/feature-flipper/featureFlipper.model.ts +1 -0
- package/src/plugins/feature-flipper/index.ts +15 -0
- package/src/plugins/field/FieldComponent.spec.ts +34 -0
- package/src/plugins/field/FieldComponent.stories.js +78 -0
- package/src/plugins/field/FieldComponent.vue +208 -0
- package/src/plugins/field/FieldDatalist.stories.js +35 -0
- package/src/plugins/field/FieldDatalist.vue +68 -0
- package/src/plugins/field/index.ts +31 -0
- package/src/plugins/keycloak-auth-adapter/index.ts +102 -0
- package/src/plugins/notifications/NotificationItem.stories.js +60 -0
- package/src/plugins/notifications/NotificationItem.vue +116 -0
- package/src/plugins/notifications/NotificationWidget.vue +129 -0
- package/src/plugins/notifications/index.ts +83 -0
- package/src/plugins/notifications/notification.model.ts +24 -0
- package/src/plugins/notifications/notifications.spec.js +78 -0
- package/src/plugins/router-history/index.ts +23 -0
- package/src/plugins/router-history/router-history.composable.spec.ts +323 -0
- package/src/plugins/router-history/router-history.composable.ts +47 -0
- package/src/plugins/runtime-env/index.ts +19 -0
- package/src/services/index.ts +1 -0
- package/src/services/konami.service.ts +28 -0
- package/src/showroom/App.vue +109 -0
- package/src/showroom/db.json +1967 -0
- package/src/showroom/pages/autocomplete.vue +54 -0
- package/src/showroom/pages/draggable-list.vue +20 -0
- package/src/showroom/pages/file-picker.vue +74 -0
- package/src/showroom/pages/forms.vue +389 -0
- package/src/showroom/pages/index.vue +209 -0
- package/src/showroom/pages/paginated-cards.vue +48 -0
- package/src/showroom/pages/server-table.vue +160 -0
- package/src/showroom/pages/stepper.vue +37 -0
- package/src/showroom/pages/table.vue +192 -0
- package/src/showroom/pages/tabs/[tabName].vue +28 -0
- package/src/showroom/router.ts +15 -0
- package/src/showroom/server.js +45 -0
- package/src/vite-env.d.ts +9 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import UiBmsInputCheckbox from '@/components/form/UiBmsInputCheckbox.vue';
|
|
2
|
+
import { ref } from 'vue';
|
|
3
|
+
|
|
4
|
+
import template from '@/documentation/template_field_dependency.mdx';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
parameters: {
|
|
8
|
+
docs: {
|
|
9
|
+
page: template,
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
title: 'Composants/form/BmsInputCheckbox/Ui',
|
|
13
|
+
component: UiBmsInputCheckbox,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const Template = (args) => ({
|
|
17
|
+
setup() {
|
|
18
|
+
const curentValue = ref(args.modelValue);
|
|
19
|
+
return { args, curentValue };
|
|
20
|
+
},
|
|
21
|
+
components: {
|
|
22
|
+
UiBmsInputCheckbox,
|
|
23
|
+
},
|
|
24
|
+
template: `
|
|
25
|
+
<div>
|
|
26
|
+
<UiBmsInputCheckbox v-bind="{...args}" v-model="curentValue">
|
|
27
|
+
<template v-if="args.labelSlot" #label>
|
|
28
|
+
<span v-html='args.labelSlot'/>
|
|
29
|
+
</template>
|
|
30
|
+
</UiBmsInputCheckbox>
|
|
31
|
+
Valeur de mon champ : {{ curentValue }}
|
|
32
|
+
</div>
|
|
33
|
+
`,
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export const Default = Template.bind({});
|
|
37
|
+
Default.args = {
|
|
38
|
+
modelValue: true,
|
|
39
|
+
name: 'myCheckboxName',
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export const WithNotBooleanValue = Template.bind({});
|
|
43
|
+
WithNotBooleanValue.args = {
|
|
44
|
+
modelValue: false,
|
|
45
|
+
value: 'Super!',
|
|
46
|
+
name: 'myCheckboxName',
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const WithLabel = Template.bind({});
|
|
50
|
+
WithLabel.args = {
|
|
51
|
+
label: 'My label',
|
|
52
|
+
modelValue: false,
|
|
53
|
+
name: 'myCheckboxName',
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export const WithLabelAsSlot = Template.bind({});
|
|
57
|
+
WithLabelAsSlot.args = {
|
|
58
|
+
name: 'myCheckboxName',
|
|
59
|
+
modelValue: false,
|
|
60
|
+
labelSlot: '<strong>This is a slotted label</strong>',
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export const Disabled = Template.bind({});
|
|
64
|
+
Disabled.args = {
|
|
65
|
+
name: 'myCheckboxName',
|
|
66
|
+
label: 'My label',
|
|
67
|
+
modelValue: false,
|
|
68
|
+
disabled: true,
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export const Error = Template.bind({});
|
|
72
|
+
Error.args = {
|
|
73
|
+
name: 'myCheckboxName',
|
|
74
|
+
label: 'My label',
|
|
75
|
+
modelValue: false,
|
|
76
|
+
error: true,
|
|
77
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="input-checkbox" :class="{ disabled, error }">
|
|
3
|
+
<label>
|
|
4
|
+
<input
|
|
5
|
+
type="checkbox"
|
|
6
|
+
:disabled="disabled"
|
|
7
|
+
:name="name"
|
|
8
|
+
v-model="inputValue"
|
|
9
|
+
:value="value"
|
|
10
|
+
/>
|
|
11
|
+
<span v-if="hasLabel" class="input-checkbox-info">
|
|
12
|
+
<slot name="label">{{ label }}</slot>
|
|
13
|
+
</span>
|
|
14
|
+
</label>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script lang="ts" setup>
|
|
19
|
+
import { computed, useSlots } from 'vue';
|
|
20
|
+
|
|
21
|
+
export interface Props {
|
|
22
|
+
modelValue: any;
|
|
23
|
+
value?: any;
|
|
24
|
+
name: string;
|
|
25
|
+
label?: string;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
error?: boolean;
|
|
28
|
+
required?: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
32
|
+
modelValue: false,
|
|
33
|
+
value: true,
|
|
34
|
+
required: false,
|
|
35
|
+
label: '',
|
|
36
|
+
disabled: false,
|
|
37
|
+
errors: () => [],
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
const slots = useSlots();
|
|
41
|
+
|
|
42
|
+
const $emits = defineEmits<{
|
|
43
|
+
(e: 'update:modelValue', value: any): void;
|
|
44
|
+
}>();
|
|
45
|
+
|
|
46
|
+
const hasLabel = computed(() => slots.label || props.label);
|
|
47
|
+
|
|
48
|
+
const inputValue = computed({
|
|
49
|
+
get() {
|
|
50
|
+
return props.modelValue;
|
|
51
|
+
},
|
|
52
|
+
set(val: any) {
|
|
53
|
+
$emits('update:modelValue', val);
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<style lang="scss" scoped>
|
|
59
|
+
.input-checkbox {
|
|
60
|
+
--input-checkbox-default-color: var(--bms-grey-100);
|
|
61
|
+
--input-checkbox-default-color-checked: var(--bms-main-100);
|
|
62
|
+
--input-checkbox-default-background-color: transparent;
|
|
63
|
+
|
|
64
|
+
width: fit-content;
|
|
65
|
+
|
|
66
|
+
label {
|
|
67
|
+
display: flex;
|
|
68
|
+
gap: 4px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.error {
|
|
72
|
+
--input-checkbox-default-color: var(--bms-danger-color);
|
|
73
|
+
--input-checkbox-default-color-checked: var(--bms-danger-color);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&.disabled {
|
|
77
|
+
--input-checkbox-default-color: var(--bms-grey-50);
|
|
78
|
+
--input-checkbox-default-color-checked: var(--bms-grey-50);
|
|
79
|
+
--input-checkbox-default-background-color: var(--bms-grey-25);
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
input-checkbox-info {
|
|
82
|
+
color: var(--bms-grey-50);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&-info {
|
|
87
|
+
line-height: 16px;
|
|
88
|
+
cursor: default;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
input[type='checkbox'] {
|
|
92
|
+
appearance: none;
|
|
93
|
+
margin: 0;
|
|
94
|
+
width: 16px;
|
|
95
|
+
height: 16px;
|
|
96
|
+
border: 1px solid var(--input-checkbox-default-color);
|
|
97
|
+
border-radius: 2px;
|
|
98
|
+
display: grid;
|
|
99
|
+
place-content: center;
|
|
100
|
+
background-color: var(--input-checkbox-default-background-color);
|
|
101
|
+
|
|
102
|
+
&::before {
|
|
103
|
+
content: '';
|
|
104
|
+
width: 8px;
|
|
105
|
+
height: 8px;
|
|
106
|
+
transform: scale(0);
|
|
107
|
+
transition: 120ms transform ease-in-out;
|
|
108
|
+
background-color: var(--input-checkbox-default-color-checked);
|
|
109
|
+
transform-origin: bottom left;
|
|
110
|
+
clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&:hover {
|
|
114
|
+
border: 2px solid var(--input-checkbox-default-color-checked);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&:checked {
|
|
118
|
+
border: 2px solid var(--input-checkbox-default-color-checked);
|
|
119
|
+
background-color: transparent;
|
|
120
|
+
|
|
121
|
+
&::before {
|
|
122
|
+
transform: scale(1);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
</style>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import UiBmsSwitch from '@/components/form/UiBmsSwitch.vue';
|
|
2
|
+
|
|
3
|
+
import template from '@/documentation/template_field_dependency.mdx';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
page: template,
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
title: 'Composants/form/Switch',
|
|
12
|
+
component: UiBmsSwitch,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const Template = (args) => ({
|
|
16
|
+
setup() {
|
|
17
|
+
return { args };
|
|
18
|
+
},
|
|
19
|
+
components: {
|
|
20
|
+
UiBmsSwitch,
|
|
21
|
+
},
|
|
22
|
+
template: `
|
|
23
|
+
<UiBmsSwitch v-bind="args"/>
|
|
24
|
+
`,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export const Default = Template.bind({});
|
|
28
|
+
Default.args = {};
|
|
29
|
+
|
|
30
|
+
export const On = Template.bind({});
|
|
31
|
+
On.args = { modelValue: true };
|
|
32
|
+
|
|
33
|
+
export const Off = Template.bind({});
|
|
34
|
+
Off.args = { modelValue: false };
|
|
35
|
+
|
|
36
|
+
export const DisabledOn = Template.bind({});
|
|
37
|
+
DisabledOn.args = { disabled: true, modelValue: true };
|
|
38
|
+
|
|
39
|
+
export const DisabledOff = Template.bind({});
|
|
40
|
+
DisabledOff.args = { disabled: true, modelValue: false };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<input
|
|
3
|
+
type="checkbox"
|
|
4
|
+
:disabled="disabled"
|
|
5
|
+
:name="name"
|
|
6
|
+
v-model="inputValue"
|
|
7
|
+
/>
|
|
8
|
+
<div class="switch-wrapper" :class="{ isOn: modelValue, disabled }"></div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script lang="ts" setup>
|
|
12
|
+
import { computed } from 'vue';
|
|
13
|
+
|
|
14
|
+
const props = withDefaults(
|
|
15
|
+
defineProps<{
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
name: string;
|
|
18
|
+
modelValue: boolean;
|
|
19
|
+
}>(),
|
|
20
|
+
{
|
|
21
|
+
disabled: false,
|
|
22
|
+
modelValue: false,
|
|
23
|
+
},
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
const $emits = defineEmits<{
|
|
27
|
+
(e: 'update:modelValue', value: any): void;
|
|
28
|
+
}>();
|
|
29
|
+
|
|
30
|
+
const inputValue = computed({
|
|
31
|
+
get() {
|
|
32
|
+
return props.modelValue;
|
|
33
|
+
},
|
|
34
|
+
set(val: any) {
|
|
35
|
+
$emits('update:modelValue', val);
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<style lang="scss" scoped>
|
|
41
|
+
input {
|
|
42
|
+
display: none;
|
|
43
|
+
}
|
|
44
|
+
.switch-wrapper {
|
|
45
|
+
--switch-background-color: var(--bms-grey-25);
|
|
46
|
+
--switch-color: var(--bms-grey-100);
|
|
47
|
+
--switch-transform: none;
|
|
48
|
+
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: flex-start;
|
|
52
|
+
padding: 0 0.25em;
|
|
53
|
+
background-color: var(--switch-background-color);
|
|
54
|
+
width: 2em;
|
|
55
|
+
height: 1em;
|
|
56
|
+
border-radius: var(--bms-border-radius-xlarge);
|
|
57
|
+
position: relative;
|
|
58
|
+
transition: 0.2s;
|
|
59
|
+
|
|
60
|
+
&::before {
|
|
61
|
+
content: '';
|
|
62
|
+
transition: 0.5s;
|
|
63
|
+
transform: var(--switch-transform);
|
|
64
|
+
width: 0.5em;
|
|
65
|
+
height: 0.5em;
|
|
66
|
+
background-color: var(--switch-color);
|
|
67
|
+
display: block;
|
|
68
|
+
border-radius: var(--bms-border-radius);
|
|
69
|
+
}
|
|
70
|
+
&.isOn {
|
|
71
|
+
--switch-transform: translateX(1em);
|
|
72
|
+
--switch-background-color: var(--bms-main-100);
|
|
73
|
+
--switch-color: var(--bms-white);
|
|
74
|
+
}
|
|
75
|
+
&.disabled {
|
|
76
|
+
--switch-background-color: var(--bms-grey-25);
|
|
77
|
+
--switch-color: var(--bms-grey-50);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
</style>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import BmsCard from '@/components/layout/BmsCard.vue';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Composants/layout/Card',
|
|
5
|
+
component: BmsCard,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const Template = (args) => ({
|
|
9
|
+
components: {
|
|
10
|
+
BmsCard,
|
|
11
|
+
},
|
|
12
|
+
setup() {
|
|
13
|
+
return { args };
|
|
14
|
+
},
|
|
15
|
+
template: `
|
|
16
|
+
<BmsCard v-bind="args" style="width: 300px; height: 200px;">
|
|
17
|
+
<template #default>
|
|
18
|
+
<div>This is content</div>
|
|
19
|
+
</template>
|
|
20
|
+
</BmsCard>
|
|
21
|
+
`,
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export const Default = Template.bind({});
|
|
25
|
+
Default.args = {};
|
|
26
|
+
|
|
27
|
+
export const Animated = Template.bind({});
|
|
28
|
+
Animated.args = { animated: true };
|
|
29
|
+
|
|
30
|
+
export const Success = Template.bind({});
|
|
31
|
+
Success.args = { type: 'success' };
|
|
32
|
+
|
|
33
|
+
export const Danger = Template.bind({});
|
|
34
|
+
Danger.args = { type: 'danger' };
|
|
35
|
+
|
|
36
|
+
export const Warning = Template.bind({});
|
|
37
|
+
Warning.args = { type: 'warning' };
|
|
38
|
+
|
|
39
|
+
export const Information = Template.bind({});
|
|
40
|
+
Information.args = { type: 'information' };
|
|
41
|
+
|
|
42
|
+
const TemplateWithAction = (args) => ({
|
|
43
|
+
components: {
|
|
44
|
+
BmsCard,
|
|
45
|
+
},
|
|
46
|
+
setup() {
|
|
47
|
+
return { args };
|
|
48
|
+
},
|
|
49
|
+
template: `
|
|
50
|
+
<BmsCard v-bind="args" style="width: 300px; height: 200px;">
|
|
51
|
+
<template #default>
|
|
52
|
+
<div>This is content</div>
|
|
53
|
+
</template>
|
|
54
|
+
<template #action>
|
|
55
|
+
action
|
|
56
|
+
</template>
|
|
57
|
+
</BmsCard>
|
|
58
|
+
`,
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export const DefaultWithAction = TemplateWithAction.bind({});
|
|
62
|
+
DefaultWithAction.args = {};
|
|
63
|
+
|
|
64
|
+
export const AnimatedWithAction = TemplateWithAction.bind({});
|
|
65
|
+
AnimatedWithAction.args = { animated: true };
|
|
66
|
+
|
|
67
|
+
export const SuccessWithAction = TemplateWithAction.bind({});
|
|
68
|
+
SuccessWithAction.args = { type: 'success' };
|
|
69
|
+
|
|
70
|
+
export const DangerWithAction = TemplateWithAction.bind({});
|
|
71
|
+
DangerWithAction.args = { type: 'danger' };
|
|
72
|
+
|
|
73
|
+
export const WarningWithAction = TemplateWithAction.bind({});
|
|
74
|
+
WarningWithAction.args = { type: 'warning' };
|
|
75
|
+
|
|
76
|
+
export const InformationWithAction = TemplateWithAction.bind({});
|
|
77
|
+
InformationWithAction.args = { type: 'information' };
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="card" :class="`card--${props.type.toLocaleLowerCase()}`">
|
|
3
|
+
<div ref="blob" class="blob" v-show="animated" />
|
|
4
|
+
<div
|
|
5
|
+
ref="mainComponent"
|
|
6
|
+
class="card__body"
|
|
7
|
+
:class="{ animated, hasAction: !!$slots.action }"
|
|
8
|
+
>
|
|
9
|
+
<div class="card__body__content">
|
|
10
|
+
<slot></slot>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="card__body__action" v-if="!!$slots.action">
|
|
13
|
+
<slot name="action"></slot>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script lang="ts" setup>
|
|
20
|
+
import { StatusType } from '@/models';
|
|
21
|
+
import { ref } from 'vue';
|
|
22
|
+
|
|
23
|
+
const props = withDefaults(
|
|
24
|
+
defineProps<{
|
|
25
|
+
animated?: boolean;
|
|
26
|
+
|
|
27
|
+
type?: StatusType;
|
|
28
|
+
}>(),
|
|
29
|
+
{
|
|
30
|
+
animated: false,
|
|
31
|
+
type: StatusType.Default,
|
|
32
|
+
},
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
const blob = ref<HTMLDivElement | null>(null);
|
|
36
|
+
const mainComponent = ref<HTMLDivElement | null>(null);
|
|
37
|
+
|
|
38
|
+
const onMouseMove = (e: MouseEvent) => {
|
|
39
|
+
if (!!props.animated && blob.value && mainComponent.value) {
|
|
40
|
+
const rec = mainComponent.value.getBoundingClientRect();
|
|
41
|
+
const x = e.clientX - rec.left - rec.width / 2;
|
|
42
|
+
const y = e.clientY - rec.top - rec.height / 2;
|
|
43
|
+
blob.value?.animate([{ transform: `translate(${x}px, ${y}px)` }], {
|
|
44
|
+
duration: 300,
|
|
45
|
+
fill: 'forwards',
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
window.addEventListener('mousemove', onMouseMove);
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<style lang="scss" scoped>
|
|
53
|
+
.card {
|
|
54
|
+
--summary-card-background-color: rgba(255, 255, 255, 0.5);
|
|
55
|
+
--summary-card-color: var(--bms-font-color);
|
|
56
|
+
--card-margin: 2px;
|
|
57
|
+
border: 1px solid var(--bms-grey-10);
|
|
58
|
+
border-radius: var(--bms-border-radius-large);
|
|
59
|
+
|
|
60
|
+
position: relative;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
|
|
63
|
+
&.card--information {
|
|
64
|
+
--summary-card-color: white;
|
|
65
|
+
--summary-card-background-color: var(--bms-main-100);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.card--success {
|
|
69
|
+
--summary-card-color: white;
|
|
70
|
+
--summary-card-background-color: var(--bms-success-color);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.card--warning {
|
|
74
|
+
--summary-card-color: white;
|
|
75
|
+
--summary-card-background-color: var(--bms-warning-color);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.card--danger {
|
|
79
|
+
--summary-card-color: white;
|
|
80
|
+
--summary-card-background-color: var(--bms-danger-color);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
--card-content-border-radius: var(--bms-border-radius-large);
|
|
84
|
+
.hasAction {
|
|
85
|
+
--card-content-border-radius: var(--bms-border-radius-large)
|
|
86
|
+
var(--bms-border-radius-large) 0 0;
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&__body {
|
|
91
|
+
position: relative;
|
|
92
|
+
min-height: 50px;
|
|
93
|
+
min-width: 50px;
|
|
94
|
+
margin: var(--card-margin);
|
|
95
|
+
width: calc(100% - 2 * var(--card-margin));
|
|
96
|
+
height: calc(100% - 2 * var(--card-margin));
|
|
97
|
+
|
|
98
|
+
display: flex;
|
|
99
|
+
justify-content: space-between;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
|
|
102
|
+
&__content {
|
|
103
|
+
height: 100%;
|
|
104
|
+
border-radius: var(--card-content-border-radius);
|
|
105
|
+
background-color: var(--summary-card-background-color);
|
|
106
|
+
backdrop-filter: blur(40px);
|
|
107
|
+
color: var(--summary-card-color);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&__action {
|
|
111
|
+
border-top: 1px solid var(--bms-grey-10);
|
|
112
|
+
border-radius: 0 0 var(--bms-border-radius-large)
|
|
113
|
+
var(--bms-border-radius-large);
|
|
114
|
+
background-color: var(--bms-white);
|
|
115
|
+
color: var(--bms-main-100);
|
|
116
|
+
padding: 0.5em;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.blob {
|
|
122
|
+
transform: translate(10px, 10px);
|
|
123
|
+
width: 60%;
|
|
124
|
+
height: 60%;
|
|
125
|
+
min-height: 50px;
|
|
126
|
+
min-width: 50px;
|
|
127
|
+
background-color: var(--bms-main-25);
|
|
128
|
+
position: absolute;
|
|
129
|
+
border-radius: 50%;
|
|
130
|
+
filter: blur(10px);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
</style>
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="wrapperClasses">
|
|
3
|
+
<div class="page__breadcrumb">
|
|
4
|
+
<slot name="breadcrumb" />
|
|
5
|
+
</div>
|
|
6
|
+
<slot name="tabs" />
|
|
7
|
+
<div class="page__header">
|
|
8
|
+
<slot name="header" />
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<main>
|
|
12
|
+
<slot />
|
|
13
|
+
</main>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script setup lang="ts">
|
|
18
|
+
import { computed } from 'vue';
|
|
19
|
+
|
|
20
|
+
const props = withDefaults(
|
|
21
|
+
defineProps<{ size?: 'small' | 'medium' | 'large' | 'full' }>(),
|
|
22
|
+
{ size: 'large' },
|
|
23
|
+
);
|
|
24
|
+
const wrapperClasses = computed(() => `page page--${props.size}`);
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<style lang="scss" scoped>
|
|
28
|
+
.page {
|
|
29
|
+
margin: 0 auto;
|
|
30
|
+
width: var(--wrapper-width, calc(100% - 3.2rem));
|
|
31
|
+
max-width: 126rem;
|
|
32
|
+
padding: 2em 0;
|
|
33
|
+
min-height: calc(100% - var(--bms-header-height));
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
gap: 2em;
|
|
37
|
+
|
|
38
|
+
$sizes: (
|
|
39
|
+
'small': 80rem,
|
|
40
|
+
'medium': 126rem,
|
|
41
|
+
'large': 144rem,
|
|
42
|
+
'full': 100%,
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
@each $type, $size in $sizes {
|
|
46
|
+
&--#{$type} {
|
|
47
|
+
max-width: #{$size};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:empty {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&__tabs,
|
|
56
|
+
&__breadcrumb,
|
|
57
|
+
&__header {
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: space-between;
|
|
60
|
+
align-items: center;
|
|
61
|
+
&:empty {
|
|
62
|
+
display: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
::v-deep(h1, h2, h3, h4, h5) {
|
|
66
|
+
margin-top: 0;
|
|
67
|
+
margin-bottom: 0;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:deep(.header) {
|
|
72
|
+
width: 100%;
|
|
73
|
+
|
|
74
|
+
.title {
|
|
75
|
+
width: 100%;
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
gap: 16px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.actions {
|
|
82
|
+
flex-grow: 1;
|
|
83
|
+
display: flex;
|
|
84
|
+
justify-content: flex-end;
|
|
85
|
+
|
|
86
|
+
.add-button {
|
|
87
|
+
text-align: end;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
</style>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import BmsForm from '@/components/layout/BmsForm.vue';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Composants/layout/Form',
|
|
5
|
+
component: BmsForm,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const Template = (args) => ({
|
|
9
|
+
components: {
|
|
10
|
+
BmsForm,
|
|
11
|
+
},
|
|
12
|
+
setup() {
|
|
13
|
+
return { args };
|
|
14
|
+
},
|
|
15
|
+
template: `
|
|
16
|
+
<BmsForm v-bind="args">
|
|
17
|
+
<template #organization>
|
|
18
|
+
<p>custom slot you can define whith any name(organization)</p>
|
|
19
|
+
</template>
|
|
20
|
+
<template #actions>
|
|
21
|
+
<div>Slot for Actions components</div>
|
|
22
|
+
</template>
|
|
23
|
+
<template #site>
|
|
24
|
+
<p>custom slot you can define whith any name (site)</p>
|
|
25
|
+
</template>
|
|
26
|
+
</BmsForm>
|
|
27
|
+
`,
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export const Default = Template.bind({});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="form-section">
|
|
3
|
+
<template v-for="(_, name) in slots">
|
|
4
|
+
<section v-if="!slotIsAction(name)" :style="'border'">
|
|
5
|
+
<slot :name="name" />
|
|
6
|
+
</section>
|
|
7
|
+
</template>
|
|
8
|
+
<template v-for="(_, name) in slots">
|
|
9
|
+
<div v-if="slotIsAction(name)" class="actions">
|
|
10
|
+
<slot name="actions" />
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<style lang="scss" scoped>
|
|
17
|
+
.form-section {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
gap: 1em;
|
|
21
|
+
|
|
22
|
+
section {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
gap: 0.5em;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.actions {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: flex-end;
|
|
32
|
+
gap: 1em;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
</style>
|
|
36
|
+
<script lang="ts" setup>
|
|
37
|
+
const slots = defineSlots();
|
|
38
|
+
|
|
39
|
+
const slotIsAction = (slotName: string): boolean => {
|
|
40
|
+
return slotName === 'actions';
|
|
41
|
+
};
|
|
42
|
+
</script>
|