@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,209 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<h1>Platform library VueJS BMS</h1>
|
|
3
|
+
<h2>H2 title</h2>
|
|
4
|
+
<h3>H3 title</h3>
|
|
5
|
+
|
|
6
|
+
<bms-button>coucou</bms-button>
|
|
7
|
+
|
|
8
|
+
<hr />
|
|
9
|
+
|
|
10
|
+
<bms-button @click="notifySuccess">Notify Success</bms-button>
|
|
11
|
+
|
|
12
|
+
<hr />
|
|
13
|
+
|
|
14
|
+
<bms-button @click="notifyError">Notify Error</bms-button>
|
|
15
|
+
|
|
16
|
+
<hr />
|
|
17
|
+
|
|
18
|
+
<bms-button @click="onConfirm">Confirm Dialog</bms-button>
|
|
19
|
+
|
|
20
|
+
<hr />
|
|
21
|
+
|
|
22
|
+
<bms-button :to="{ name: 'tabs' }">Navigation vers Tabs w/obj </bms-button>
|
|
23
|
+
|
|
24
|
+
<hr />
|
|
25
|
+
|
|
26
|
+
<bms-button to="/tabs">Navigation vers Tabs</bms-button>
|
|
27
|
+
|
|
28
|
+
<hr />
|
|
29
|
+
|
|
30
|
+
<bms-button to="http://google.fr">Navigation vers Extérieur</bms-button>
|
|
31
|
+
|
|
32
|
+
<hr />
|
|
33
|
+
|
|
34
|
+
<BmsIconButton :mode="StatusType.Danger" tooltipText="Icon tooltip">
|
|
35
|
+
ICON
|
|
36
|
+
</BmsIconButton>
|
|
37
|
+
|
|
38
|
+
<hr />
|
|
39
|
+
|
|
40
|
+
<BmsIconButton>Normal</BmsIconButton>
|
|
41
|
+
|
|
42
|
+
<hr />
|
|
43
|
+
|
|
44
|
+
<div class="tooltip-flex">
|
|
45
|
+
<bms-tooltip tooltipText="This is a very large text" direction="top">
|
|
46
|
+
top Tooltip
|
|
47
|
+
</bms-tooltip>
|
|
48
|
+
<bms-tooltip tooltipText="This is a very large text" direction="right">
|
|
49
|
+
right Tooltip
|
|
50
|
+
</bms-tooltip>
|
|
51
|
+
<bms-tooltip tooltipText="This is a very large text" direction="bottom">
|
|
52
|
+
bottom Tooltip
|
|
53
|
+
</bms-tooltip>
|
|
54
|
+
<bms-tooltip tooltipText="This is a very large text" direction="left">
|
|
55
|
+
left Tooltip
|
|
56
|
+
</bms-tooltip>
|
|
57
|
+
<bms-tooltip
|
|
58
|
+
tooltipText="This is a very large text that overflows because it's too much longer"
|
|
59
|
+
>
|
|
60
|
+
Longer tooltip
|
|
61
|
+
</bms-tooltip>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<hr />
|
|
65
|
+
|
|
66
|
+
<bms-button @click="modal = !modal">Toggle modal</bms-button>
|
|
67
|
+
|
|
68
|
+
<bms-modal v-model="modal" :loading="isLoading" loading-text="Chargement...">
|
|
69
|
+
<p>
|
|
70
|
+
<bms-tooltip tooltipText="Tooltip">Content !</bms-tooltip>
|
|
71
|
+
</p>
|
|
72
|
+
<bms-button @click="isLoading = true">Toggle loading</bms-button>
|
|
73
|
+
</bms-modal>
|
|
74
|
+
|
|
75
|
+
<hr />
|
|
76
|
+
|
|
77
|
+
<BmsButton submit>Submit</BmsButton>
|
|
78
|
+
|
|
79
|
+
<hr />
|
|
80
|
+
|
|
81
|
+
<bms-loader></bms-loader>
|
|
82
|
+
|
|
83
|
+
<hr />
|
|
84
|
+
|
|
85
|
+
<BmsTag @click="onTagClick">
|
|
86
|
+
<Activity />
|
|
87
|
+
message
|
|
88
|
+
</BmsTag>
|
|
89
|
+
<BmsTag @click="onTagClick" :dismissable="false">
|
|
90
|
+
<Activity />
|
|
91
|
+
message
|
|
92
|
+
</BmsTag>
|
|
93
|
+
<BmsTag @click="onTagClick" :active="true">
|
|
94
|
+
<Activity />
|
|
95
|
+
message
|
|
96
|
+
</BmsTag>
|
|
97
|
+
<BmsTag @click="onTagClick" :active="true" :disabled="true">
|
|
98
|
+
<Activity />
|
|
99
|
+
message
|
|
100
|
+
</BmsTag>
|
|
101
|
+
<BmsTag @click="onTagClick" :active="false" :disabled="true">
|
|
102
|
+
<Activity />
|
|
103
|
+
message
|
|
104
|
+
</BmsTag>
|
|
105
|
+
|
|
106
|
+
<hr />
|
|
107
|
+
|
|
108
|
+
<div class="chips">
|
|
109
|
+
<BmsChip>Content</BmsChip>
|
|
110
|
+
<BmsChip :color="ChipColor.Blue">Content</BmsChip>
|
|
111
|
+
<BmsChip :color="ChipColor.Green">Content</BmsChip>
|
|
112
|
+
<BmsChip :color="ChipColor.Grey">Content</BmsChip>
|
|
113
|
+
<BmsChip :color="ChipColor.Orange">Content</BmsChip>
|
|
114
|
+
<BmsChip :color="ChipColor.Red">Content</BmsChip>
|
|
115
|
+
<BmsChip :color="'tata' as any">Content</BmsChip>
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
<hr />
|
|
119
|
+
|
|
120
|
+
<p>FeatureA is On : {{ isFeatureEnabled('featureA') }}</p>
|
|
121
|
+
</template>
|
|
122
|
+
|
|
123
|
+
<script lang="ts" setup>
|
|
124
|
+
import { useNotifications } from '@/plugins/notifications';
|
|
125
|
+
import { useConfirm } from '@/plugins/confirm';
|
|
126
|
+
import { onMounted, Ref, ref } from 'vue';
|
|
127
|
+
import {
|
|
128
|
+
BmsButton,
|
|
129
|
+
BmsIconButton,
|
|
130
|
+
BmsInputText,
|
|
131
|
+
BmsTag,
|
|
132
|
+
ChipColor,
|
|
133
|
+
StatusType,
|
|
134
|
+
useFeatureFlipper,
|
|
135
|
+
} from '@/index';
|
|
136
|
+
import { Activity } from 'lucide-vue-next';
|
|
137
|
+
import BmsChip from '@/components/form/BmsChip.vue';
|
|
138
|
+
|
|
139
|
+
const { success, error } = useNotifications();
|
|
140
|
+
const { isFeatureEnabled } = useFeatureFlipper();
|
|
141
|
+
const isLoading = ref(false);
|
|
142
|
+
const modal = ref(false);
|
|
143
|
+
const text = ref('');
|
|
144
|
+
const selected = ref('');
|
|
145
|
+
const { confirm } = useConfirm();
|
|
146
|
+
const files: Ref<File[]> = ref([]);
|
|
147
|
+
const inputText0 = ref(null);
|
|
148
|
+
const dateTime = ref('');
|
|
149
|
+
|
|
150
|
+
onMounted(async () => {
|
|
151
|
+
const response = await fetch(
|
|
152
|
+
'https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png',
|
|
153
|
+
);
|
|
154
|
+
const blob = await response.blob();
|
|
155
|
+
files.value = [
|
|
156
|
+
new File([blob], 'image.jpeg', {
|
|
157
|
+
type: blob.type,
|
|
158
|
+
}),
|
|
159
|
+
];
|
|
160
|
+
if (inputText0.value) {
|
|
161
|
+
(inputText0.value as typeof BmsInputText).setFocus();
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
const onSubmit = (e: any) => {
|
|
166
|
+
e.preventDefault();
|
|
167
|
+
success(text.value + ' ' + selected.value);
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
const notifySuccess = () => {
|
|
171
|
+
success('This is a success', 'This is a details message');
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
const notifyError = () => {
|
|
175
|
+
error(
|
|
176
|
+
'This is an error This is an error This is an error This is an error This is an error This is an error This is an error',
|
|
177
|
+
{
|
|
178
|
+
type: 'https://problems.bms.live/fake-problem/bo/loop-problem',
|
|
179
|
+
title: '[FAKE] Une boucle de redirection a été detectée',
|
|
180
|
+
status: 400,
|
|
181
|
+
loop: '/ -> /another-url -> /',
|
|
182
|
+
} as any,
|
|
183
|
+
);
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
const onConfirm = async () => {
|
|
187
|
+
if (await confirm('Coucou', 'This is an optional confirm title')) {
|
|
188
|
+
console.log('it was confirmed');
|
|
189
|
+
} else {
|
|
190
|
+
console.log('it was discard');
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
const onTagClick = () => {
|
|
195
|
+
console.log('tag clicked');
|
|
196
|
+
};
|
|
197
|
+
</script>
|
|
198
|
+
|
|
199
|
+
<style lang="scss" scoped>
|
|
200
|
+
.tooltip-flex {
|
|
201
|
+
display: flex;
|
|
202
|
+
gap: 16px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.chips {
|
|
206
|
+
display: flex;
|
|
207
|
+
gap: 8px;
|
|
208
|
+
}
|
|
209
|
+
</style>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import BmsCard from '@/components/layout/BmsCard.vue';
|
|
3
|
+
import BmsContentPageLayout from '@/components/layout/BmsContentPageLayout.vue';
|
|
4
|
+
import BmsPagination from '@/components/table/BmsPagination.vue';
|
|
5
|
+
import { computed, ref } from 'vue';
|
|
6
|
+
import { pokemons } from '@/showroom/db.json';
|
|
7
|
+
|
|
8
|
+
const size = 5;
|
|
9
|
+
const paginatedPokemons = computed(() =>
|
|
10
|
+
pokemons.slice(page.value * size, (page.value + 1) * size),
|
|
11
|
+
);
|
|
12
|
+
const page = ref(0);
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<BmsContentPageLayout>
|
|
17
|
+
<div class="cards">
|
|
18
|
+
<BmsCard
|
|
19
|
+
v-for="pokemon in paginatedPokemons"
|
|
20
|
+
:key="pokemon.id"
|
|
21
|
+
class="card"
|
|
22
|
+
>
|
|
23
|
+
<h2>{{ pokemon.name }}</h2>
|
|
24
|
+
{{ pokemon.type }}
|
|
25
|
+
</BmsCard>
|
|
26
|
+
</div>
|
|
27
|
+
<BmsPagination
|
|
28
|
+
:total="151"
|
|
29
|
+
:pages="31"
|
|
30
|
+
:sizes="[5, 10]"
|
|
31
|
+
:currentPage="page"
|
|
32
|
+
:currentSize="5"
|
|
33
|
+
@next="page++"
|
|
34
|
+
@prev="page--"
|
|
35
|
+
@go="(i) => (page = i)"
|
|
36
|
+
/>
|
|
37
|
+
</BmsContentPageLayout>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<style lang="scss" scoped>
|
|
41
|
+
.cards {
|
|
42
|
+
display: flex;
|
|
43
|
+
gap: 1em;
|
|
44
|
+
.card {
|
|
45
|
+
width: 500px;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
</style>
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<bms-server-table
|
|
3
|
+
v-model:selectedItems="selectedItems"
|
|
4
|
+
v-model:selectMode="selectMode"
|
|
5
|
+
mode="dense"
|
|
6
|
+
:headers="serverHeaders"
|
|
7
|
+
:request="customFetchData"
|
|
8
|
+
:filters="filters"
|
|
9
|
+
:initial-page="1"
|
|
10
|
+
:canSaveFilters="true"
|
|
11
|
+
:savedFilters="savedFilters"
|
|
12
|
+
:selectable="true"
|
|
13
|
+
:total="totalItems"
|
|
14
|
+
@saveFilter="onSaveFilter"
|
|
15
|
+
@deleteSavedFilter="onDeleteSavedFilter"
|
|
16
|
+
>
|
|
17
|
+
<template #default="{ row }: { row: any }">
|
|
18
|
+
<td>
|
|
19
|
+
{{ row.id }}
|
|
20
|
+
</td>
|
|
21
|
+
<td>
|
|
22
|
+
{{ row.name }}
|
|
23
|
+
</td>
|
|
24
|
+
<td>
|
|
25
|
+
{{ row.type.join(', ') }}
|
|
26
|
+
</td>
|
|
27
|
+
</template>
|
|
28
|
+
</bms-server-table>
|
|
29
|
+
<div>type de selection {{ selectMode }}</div>
|
|
30
|
+
<div>Nb Selected items: {{ selectedItems.length }}</div>
|
|
31
|
+
<div>
|
|
32
|
+
Selected items:
|
|
33
|
+
{{
|
|
34
|
+
selectMode === SelectMode.ALL &&
|
|
35
|
+
selectedItems?.map((i: any) => '#' + i.id + ' : ' + i.name).join(', ')
|
|
36
|
+
}}
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script lang="ts" setup>
|
|
41
|
+
import { Filter, SavedFilter, SelectMode } from '@/models';
|
|
42
|
+
import axios from 'axios';
|
|
43
|
+
import { Ref, ref } from 'vue';
|
|
44
|
+
import { isEmptyStringOrNotDefined } from '@/helpers';
|
|
45
|
+
|
|
46
|
+
const serverHeaders = [
|
|
47
|
+
{ label: 'Numéro', key: 'id' },
|
|
48
|
+
{ label: 'Name', key: 'name' },
|
|
49
|
+
{ label: 'Type', key: 'type' },
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
const filters = [
|
|
53
|
+
{
|
|
54
|
+
label: 'Name',
|
|
55
|
+
key: 'name',
|
|
56
|
+
type: 'input',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: 'Number',
|
|
60
|
+
key: 'idBetween',
|
|
61
|
+
type: 'betweenNumber',
|
|
62
|
+
inputType: 'number',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: 'Type',
|
|
66
|
+
key: 'type',
|
|
67
|
+
type: 'autocomplete',
|
|
68
|
+
autocompleteOptions: [
|
|
69
|
+
'Grass',
|
|
70
|
+
'Poison',
|
|
71
|
+
'Fire',
|
|
72
|
+
'Flying',
|
|
73
|
+
'Water',
|
|
74
|
+
'Bug',
|
|
75
|
+
'Normal',
|
|
76
|
+
'Electric',
|
|
77
|
+
'Ground',
|
|
78
|
+
'Fairy',
|
|
79
|
+
'Fighting',
|
|
80
|
+
'Psychic',
|
|
81
|
+
'Rock',
|
|
82
|
+
'Steel',
|
|
83
|
+
'Ice',
|
|
84
|
+
'Ghost',
|
|
85
|
+
'Dragon',
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
];
|
|
89
|
+
|
|
90
|
+
const savedFilters: Ref<SavedFilter[]> = ref<SavedFilter[]>([]);
|
|
91
|
+
const selectedItems = ref<any[]>([]);
|
|
92
|
+
const selectMode = ref<SelectMode>(SelectMode.DEFAULT);
|
|
93
|
+
const totalItems = ref(151);
|
|
94
|
+
|
|
95
|
+
const onSaveFilter = (savedFilter: SavedFilter) => {
|
|
96
|
+
savedFilters.value.push(savedFilter);
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const onDeleteSavedFilter = (savedFilter: SavedFilter) => {
|
|
100
|
+
savedFilters.value = savedFilters.value.filter(
|
|
101
|
+
(filter) => filter.id !== savedFilter.id,
|
|
102
|
+
);
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const customFetchData = async (
|
|
106
|
+
params: any,
|
|
107
|
+
abortController: AbortController,
|
|
108
|
+
) => {
|
|
109
|
+
const queryParams: any = {
|
|
110
|
+
size: params.size,
|
|
111
|
+
page: params.page,
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
if (params.filters) {
|
|
115
|
+
params.filters.forEach((filter: Filter) => {
|
|
116
|
+
if (filter.value !== null && filter.value !== '') {
|
|
117
|
+
queryParams[filter.key] = filter.value;
|
|
118
|
+
}
|
|
119
|
+
if (!isEmptyStringOrNotDefined(filter.valueFrom)) {
|
|
120
|
+
queryParams[filter.key] = filter.valueFrom;
|
|
121
|
+
}
|
|
122
|
+
if (!isEmptyStringOrNotDefined(filter.valueTo)) {
|
|
123
|
+
queryParams[filter.key] =
|
|
124
|
+
queryParams[filter.key] + '|' + filter.valueTo;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (params.search) {
|
|
130
|
+
queryParams['name'] = params.search;
|
|
131
|
+
}
|
|
132
|
+
const { data } = await axios.get('http://localhost:3000/pokemons', {
|
|
133
|
+
signal: abortController.signal,
|
|
134
|
+
params: queryParams,
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
return {
|
|
138
|
+
total: 151,
|
|
139
|
+
data,
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
const customQueryBuilder = (
|
|
144
|
+
size: number,
|
|
145
|
+
_: number,
|
|
146
|
+
page: number,
|
|
147
|
+
search: string,
|
|
148
|
+
) => {
|
|
149
|
+
const params: any = {
|
|
150
|
+
size: '' + size,
|
|
151
|
+
page: '' + (page + 1),
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
if (search) {
|
|
155
|
+
params['beer_name'] = search;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
return params;
|
|
159
|
+
};
|
|
160
|
+
</script>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<bms-stepper :currentStep="currentStep" @stepClick="onStepClick">
|
|
3
|
+
<bms-step
|
|
4
|
+
stepLabel="Label"
|
|
5
|
+
:stepComplete="true"
|
|
6
|
+
previousLabel=""
|
|
7
|
+
@next="currentStep = 1"
|
|
8
|
+
>
|
|
9
|
+
<div>coucou</div>
|
|
10
|
+
</bms-step>
|
|
11
|
+
<bms-step
|
|
12
|
+
stepLabel="Label 2"
|
|
13
|
+
:stepComplete="false"
|
|
14
|
+
@previous="currentStep = 0"
|
|
15
|
+
@next="currentStep = 2"
|
|
16
|
+
>
|
|
17
|
+
<div>toto</div>
|
|
18
|
+
</bms-step>
|
|
19
|
+
<bms-step
|
|
20
|
+
stepLabel="Label 3"
|
|
21
|
+
:stepComplete="false"
|
|
22
|
+
nextLabel=""
|
|
23
|
+
@previous="currentStep = 1"
|
|
24
|
+
>
|
|
25
|
+
<div>titi</div>
|
|
26
|
+
</bms-step>
|
|
27
|
+
</bms-stepper>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script setup lang="ts">
|
|
31
|
+
import { Ref, ref } from 'vue';
|
|
32
|
+
|
|
33
|
+
const currentStep: Ref<number> = ref(0);
|
|
34
|
+
const onStepClick = (step: number) => {
|
|
35
|
+
currentStep.value = step;
|
|
36
|
+
};
|
|
37
|
+
</script>
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<BmsBackButton :fallback="{ path: '/' }" />
|
|
3
|
+
<bms-table
|
|
4
|
+
:headers="headers"
|
|
5
|
+
:filters="filters"
|
|
6
|
+
:items="items"
|
|
7
|
+
mode="dense"
|
|
8
|
+
:size="5"
|
|
9
|
+
:canSaveFilters="true"
|
|
10
|
+
:savedFilters="savedFilters"
|
|
11
|
+
:selectable="true"
|
|
12
|
+
help-link="/help-path"
|
|
13
|
+
activity-link="/activity-path"
|
|
14
|
+
v-model:selectedItems="selectedItems"
|
|
15
|
+
@saveFilter="onSaveFilter"
|
|
16
|
+
@deleteSavedFilter="onDeleteSavedFilter"
|
|
17
|
+
>
|
|
18
|
+
<template #date="{ row }">
|
|
19
|
+
<bms-tooltip :tooltip-text="row.date.toUTCString()">
|
|
20
|
+
{{ row.date.toLocaleDateString() }}
|
|
21
|
+
</bms-tooltip>
|
|
22
|
+
</template>
|
|
23
|
+
<template #dateUpdate="{ row }">
|
|
24
|
+
<bms-tooltip :tooltip-text="row.dateUpdate.toUTCString()">
|
|
25
|
+
{{ row.dateUpdate.toLocaleDateString() }}
|
|
26
|
+
</bms-tooltip>
|
|
27
|
+
</template>
|
|
28
|
+
<template #dateDelete="{ row }">
|
|
29
|
+
<bms-tooltip :tooltip-text="row.dateDelete.toUTCString()">
|
|
30
|
+
{{ row.dateDelete.toLocaleDateString() }}
|
|
31
|
+
</bms-tooltip>
|
|
32
|
+
</template>
|
|
33
|
+
<template #choice2="{ row }">
|
|
34
|
+
<BmsTooltip tooltipText="tooltip">
|
|
35
|
+
{{ row.choice2 }}
|
|
36
|
+
</BmsTooltip>
|
|
37
|
+
</template>
|
|
38
|
+
<template #deepValue="{ row }">
|
|
39
|
+
{{ row.deepValue.deepAttr }}
|
|
40
|
+
</template>
|
|
41
|
+
<template #tooltip>
|
|
42
|
+
<BmsTooltip tooltip-text="Looooooooooooooooooooooooong tooltip">
|
|
43
|
+
tooltip
|
|
44
|
+
</BmsTooltip>
|
|
45
|
+
</template>
|
|
46
|
+
<template #action>
|
|
47
|
+
<BmsIconButton> <Save /> </BmsIconButton>
|
|
48
|
+
<BmsIconButton :mode="StatusType.Danger"> <Trash /> </BmsIconButton>
|
|
49
|
+
</template>
|
|
50
|
+
</bms-table>
|
|
51
|
+
<BmsButton @click="goBack">Go Back</BmsButton>
|
|
52
|
+
<div>selectedItems Size = {{ selectedItems.length }}</div>
|
|
53
|
+
<div>
|
|
54
|
+
selectedItems :
|
|
55
|
+
{{ selectedItems }}
|
|
56
|
+
</div>
|
|
57
|
+
</template>
|
|
58
|
+
|
|
59
|
+
<script lang="ts" setup>
|
|
60
|
+
import { BmsBackButton, BmsButton } from '@/index';
|
|
61
|
+
import {
|
|
62
|
+
Filter,
|
|
63
|
+
InputType,
|
|
64
|
+
SavedFilter,
|
|
65
|
+
SortValue,
|
|
66
|
+
StatusType,
|
|
67
|
+
} from '@/models';
|
|
68
|
+
import { Ref, ref } from 'vue';
|
|
69
|
+
import { useRouterHistory } from '@/plugins/router-history/router-history.composable';
|
|
70
|
+
import BmsShortLinkMenu from '@/components/navigation/BmsShortLinkMenu.vue';
|
|
71
|
+
import BmsTooltip from '@/components/feedback/BmsTooltip.vue';
|
|
72
|
+
import BmsIconButton from '@/components/button/BmsIconButton.vue';
|
|
73
|
+
import { Delete, Save, Trash } from 'lucide-vue-next';
|
|
74
|
+
|
|
75
|
+
const { goBack } = useRouterHistory();
|
|
76
|
+
|
|
77
|
+
const headers = [
|
|
78
|
+
{ label: 'Colonne 1', key: 'column1', sortable: true },
|
|
79
|
+
{ label: 'actions', key: 'action', action: true },
|
|
80
|
+
{ label: 'Colonne 2', key: 'column2' },
|
|
81
|
+
{ label: 'Date', key: 'date' },
|
|
82
|
+
{ label: 'DateUpdate', key: 'dateUpdate' },
|
|
83
|
+
{ label: 'DateDelete', key: 'dateDelete' },
|
|
84
|
+
{ label: 'choice1', key: 'choice1' },
|
|
85
|
+
{ label: 'choice2', key: 'choice2' },
|
|
86
|
+
{
|
|
87
|
+
label: 'DeepValue',
|
|
88
|
+
key: 'deepValue',
|
|
89
|
+
sortable: true,
|
|
90
|
+
sortFunction: (a: any, b: any, sort: SortValue) => {
|
|
91
|
+
if (a.deepValue.deepAttr < b.deepValue.deepAttr) {
|
|
92
|
+
return sort === SortValue.asc ? -1 : 1;
|
|
93
|
+
}
|
|
94
|
+
if (a.deepValue.deepAttr > b.deepValue.deepAttr) {
|
|
95
|
+
return sort === SortValue.asc ? 1 : -1;
|
|
96
|
+
}
|
|
97
|
+
return 0;
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
{ label: 'isOk', key: 'isOk', sortable: true },
|
|
101
|
+
{ label: 'number', key: 'number' },
|
|
102
|
+
{ label: 'tooltip', key: 'tooltip' },
|
|
103
|
+
];
|
|
104
|
+
|
|
105
|
+
const randomDate = () =>
|
|
106
|
+
new Date(
|
|
107
|
+
new Date('2023-01-01').getTime() +
|
|
108
|
+
Math.random() *
|
|
109
|
+
(new Date('2026-01-01').getTime() - new Date('2023-01-01').getTime()),
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
const items = Array(100)
|
|
113
|
+
.fill(0)
|
|
114
|
+
.map((_, index) => ({
|
|
115
|
+
column1: "Nom de l'item " + index,
|
|
116
|
+
column2: 'little-slug-' + index,
|
|
117
|
+
date: randomDate(),
|
|
118
|
+
dateUpdate: randomDate(),
|
|
119
|
+
dateDelete: randomDate(),
|
|
120
|
+
choice1: Math.random() < 0.5 ? Math.random() * 3 : 'toto',
|
|
121
|
+
choice2:
|
|
122
|
+
Math.random() < 0.5 ? (Math.random() < 0.5 ? 'huey' : 'dewey') : 'louie',
|
|
123
|
+
deepValue: {
|
|
124
|
+
deepAttr: index % 2 === 0,
|
|
125
|
+
},
|
|
126
|
+
isOk: Math.random() < 0.5,
|
|
127
|
+
number: Math.random(),
|
|
128
|
+
}));
|
|
129
|
+
|
|
130
|
+
const savedFilters: Ref<SavedFilter[]> = ref<SavedFilter[]>([]);
|
|
131
|
+
const selectedItems: Ref<any[]> = ref([]);
|
|
132
|
+
|
|
133
|
+
const onSaveFilter = (savedFilter: SavedFilter) => {
|
|
134
|
+
savedFilters.value.push(savedFilter);
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
const onDeleteSavedFilter = (savedFilter: SavedFilter) => {
|
|
138
|
+
savedFilters.value = savedFilters.value.filter(
|
|
139
|
+
(filter) => filter.id !== savedFilter.id,
|
|
140
|
+
);
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
const filters: Filter[] = [
|
|
144
|
+
{
|
|
145
|
+
label: 'inputText Colonne 1',
|
|
146
|
+
key: 'column1',
|
|
147
|
+
type: 'input',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
label: 'autocomplete choice',
|
|
151
|
+
key: 'choice1',
|
|
152
|
+
type: 'autocomplete',
|
|
153
|
+
autocompleteOptions: ['titi', 'toto'],
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
label: 'choice',
|
|
157
|
+
key: 'choice2',
|
|
158
|
+
type: 'select',
|
|
159
|
+
selectOptions: [
|
|
160
|
+
{ label: 'huey', value: 'huey' },
|
|
161
|
+
{ label: 'dewey', value: 'dewey' },
|
|
162
|
+
{ label: 'louie', value: 'louie' },
|
|
163
|
+
],
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
label: 'Date update greater than',
|
|
167
|
+
key: 'dateUpdate',
|
|
168
|
+
type: 'inputDate',
|
|
169
|
+
inputType: InputType.DATE,
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
label: 'Datetime delete greater than',
|
|
173
|
+
key: 'dateDelete',
|
|
174
|
+
type: 'inputDate',
|
|
175
|
+
inputType: InputType.DATETIME,
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
label: 'Date',
|
|
179
|
+
key: 'date',
|
|
180
|
+
type: 'betweenDate',
|
|
181
|
+
inputType: InputType.DATE,
|
|
182
|
+
},
|
|
183
|
+
{ label: 'isOk', key: 'isOk', type: 'boolean' },
|
|
184
|
+
{
|
|
185
|
+
label: 'custom bool > 0.5',
|
|
186
|
+
key: 'number',
|
|
187
|
+
type: 'boolean',
|
|
188
|
+
customFilter: (item: any, value: any, target: string) =>
|
|
189
|
+
item[target] > 0.5 === value,
|
|
190
|
+
},
|
|
191
|
+
];
|
|
192
|
+
</script>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<bms-tabs
|
|
4
|
+
title="Title"
|
|
5
|
+
:tabs="[
|
|
6
|
+
{ name: 'Titi', routePath: '/tabs/titi' },
|
|
7
|
+
{ name: 'Toto', routePath: '/tabs/toto' },
|
|
8
|
+
{ name: 'Tutu', routePath: '/tabs/tutu' },
|
|
9
|
+
]"
|
|
10
|
+
>
|
|
11
|
+
</bms-tabs>
|
|
12
|
+
<template v-if="currentTab === 'titi'">
|
|
13
|
+
<div>titi</div>
|
|
14
|
+
</template>
|
|
15
|
+
<template v-if="currentTab === 'toto'">
|
|
16
|
+
<div>toto</div>
|
|
17
|
+
</template>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script setup lang="ts">
|
|
22
|
+
import { computed } from 'vue';
|
|
23
|
+
import { useRouter } from 'vue-router';
|
|
24
|
+
|
|
25
|
+
const { currentRoute } = useRouter();
|
|
26
|
+
|
|
27
|
+
const currentTab = computed(() => currentRoute.value.params.tabName);
|
|
28
|
+
</script>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createRouter, createWebHistory } from 'vue-router';
|
|
2
|
+
import generatedRoutes from '~pages';
|
|
3
|
+
|
|
4
|
+
export const customRoutes = [
|
|
5
|
+
{
|
|
6
|
+
name: 'tabs',
|
|
7
|
+
path: '/tabs',
|
|
8
|
+
redirect: { path: '/tabs/titi' },
|
|
9
|
+
},
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
export const router = createRouter({
|
|
13
|
+
history: createWebHistory(),
|
|
14
|
+
routes: [...generatedRoutes, ...customRoutes],
|
|
15
|
+
});
|