@nathapp/na-cli 1.0.1-rc.6 → 1.0.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 +1 -1
- package/dist/index.js +0 -0
- package/dist/templates/k8s-cert-manager/README.md +60 -0
- package/dist/templates/k8s-cert-manager/cloudflare-cert-manager-issuer.yaml +26 -0
- package/dist/templates/k8s-deployment/templates/_deployment.tpl +1 -1
- package/dist/templates/k8s-deployment/templates/_endpointslice.tpl +42 -0
- package/dist/templates/k8s-deployment/templates/_gateway.tpl +94 -0
- package/dist/templates/k8s-deployment/templates/_grpcroute.tpl +186 -0
- package/dist/templates/k8s-deployment/templates/_httproute.tpl +209 -0
- package/dist/templates/k8s-deployment/templates/_ingressroute.tpl +178 -0
- package/dist/templates/k8s-deployment/templates/_middleware.tpl +553 -0
- package/dist/templates/k8s-deployment/templates/_serverstransport.tpl +73 -0
- package/dist/templates/k8s-deployment/templates/_service.tpl +4 -1
- package/dist/templates/k8s-helm-chart/templates/endpointslice.yaml +1 -0
- package/dist/templates/k8s-helm-chart/templates/gateway.yaml +1 -0
- package/dist/templates/k8s-helm-chart/templates/grpcroute.yaml +1 -0
- package/dist/templates/k8s-helm-chart/templates/httproute.yaml +1 -0
- package/dist/templates/k8s-helm-chart/templates/ingressroute.yaml +1 -0
- package/dist/templates/k8s-helm-chart/templates/middleware.yaml +1 -0
- package/dist/templates/k8s-helm-chart/templates/serverstransport.yaml +1 -0
- package/dist/templates/k8s-helm-chart/values.yaml +3 -5
- package/dist/templates/nestjs-api/{.env → .env.local} +5 -0
- package/dist/templates/nestjs-api/.gitignore-rename +2 -1
- package/dist/templates/nestjs-api/Dockerfile +33 -13
- package/dist/templates/nestjs-api/package.json +23 -14
- package/dist/templates/nestjs-api/src/i18n/en_US/date.json +7 -0
- package/dist/templates/nestjs-api/src/i18n/en_US/validation.json +16 -0
- package/dist/templates/nestjs-api/src/i18n/zh_CN/date.json +7 -0
- package/dist/templates/nestjs-api/src/i18n/zh_CN/validation.json +16 -0
- package/dist/templates/nestjs-api/src/i18n/zh_TW/date.json +7 -0
- package/dist/templates/nestjs-api/src/i18n/zh_TW/validation.json +16 -0
- package/dist/templates/nestjs-library/.npmignore-rename +4 -0
- package/dist/templates/nestjs-library/package.json +2 -2
- package/dist/templates/ts-library/.npmignore-rename +4 -0
- package/dist/templates/turbo-nestjs-vuexy/README.md +3 -0
- package/dist/templates/turbo-nestjs-vuexy/package.json +49 -0
- package/dist/templates/turbo-nestjs-vuexy/packages/eslint-config/README.md +3 -0
- package/dist/templates/turbo-nestjs-vuexy/packages/eslint-config/library.js +43 -0
- package/dist/templates/turbo-nestjs-vuexy/packages/eslint-config/package.json +18 -0
- package/dist/templates/turbo-nestjs-vuexy/packages/eslint-config/vue.js +236 -0
- package/dist/templates/{ts-library/tsconfig.json → turbo-nestjs-vuexy/packages/typescript-config/base.json} +4 -6
- package/dist/templates/turbo-nestjs-vuexy/packages/typescript-config/nestjs.json +12 -0
- package/dist/templates/turbo-nestjs-vuexy/packages/typescript-config/package.json +9 -0
- package/dist/templates/turbo-nestjs-vuexy/packages/typescript-config/vue.json +82 -0
- package/dist/templates/turbo-nestjs-vuexy/turbo.json +24 -0
- package/dist/templates/vuexy-portal/.editorconfig +1 -0
- package/dist/templates/vuexy-portal/.eslintrc.cjs +237 -0
- package/dist/templates/vuexy-portal/.gitignore-rename +42 -0
- package/dist/templates/vuexy-portal/.stylelintrc.json +46 -0
- package/dist/templates/vuexy-portal/Dockerfile +43 -0
- package/dist/templates/vuexy-portal/README.md +35 -0
- package/dist/templates/vuexy-portal/auto-imports.d.ts +1131 -0
- package/dist/templates/vuexy-portal/components.d.ts +68 -0
- package/dist/templates/vuexy-portal/dev.Dockerfile +25 -0
- package/dist/templates/vuexy-portal/docker-compose.dev.yml +14 -0
- package/dist/templates/vuexy-portal/docker-compose.prod.yml +13 -0
- package/dist/templates/vuexy-portal/entrypoint.sh +6 -0
- package/dist/templates/vuexy-portal/env.d.ts +12 -0
- package/dist/templates/vuexy-portal/index.html +57 -0
- package/dist/templates/vuexy-portal/nginx.conf +14 -0
- package/dist/templates/vuexy-portal/package.json +140 -0
- package/dist/templates/vuexy-portal/pnpm-lock.yaml +7963 -0
- package/dist/templates/vuexy-portal/prod.Dockerfile +41 -0
- package/dist/templates/vuexy-portal/public/favicon.ico +0 -0
- package/dist/templates/vuexy-portal/public/images/avatars/avatar-1.png +0 -0
- package/dist/templates/vuexy-portal/public/images/avatars/avatar-2.png +0 -0
- package/dist/templates/vuexy-portal/public/images/svg/discord.svg +10 -0
- package/dist/templates/vuexy-portal/public/images/svg/gift.svg +8 -0
- package/dist/templates/vuexy-portal/public/images/svg/keyboard.svg +8 -0
- package/dist/templates/vuexy-portal/public/images/svg/laptop.svg +8 -0
- package/dist/templates/vuexy-portal/public/images/svg/lightbulb.svg +8 -0
- package/dist/templates/vuexy-portal/public/images/svg/rocket.svg +8 -0
- package/dist/templates/vuexy-portal/public/loader.css +79 -0
- package/dist/templates/vuexy-portal/public/mockServiceWorker.js +287 -0
- package/dist/templates/vuexy-portal/shims.d.ts +15 -0
- package/dist/templates/vuexy-portal/src/@core/components/AppBarSearch.vue +278 -0
- package/dist/templates/vuexy-portal/src/@core/components/AppDrawerHeaderSection.vue +30 -0
- package/dist/templates/vuexy-portal/src/@core/components/AppStepper.vue +371 -0
- package/dist/templates/vuexy-portal/src/@core/components/BuyNow.vue +92 -0
- package/dist/templates/vuexy-portal/src/@core/components/CardStatisticsVerticalSimple.vue +35 -0
- package/dist/templates/vuexy-portal/src/@core/components/CustomizerSection.vue +27 -0
- package/dist/templates/vuexy-portal/src/@core/components/DialogCloseBtn.vue +25 -0
- package/dist/templates/vuexy-portal/src/@core/components/DropZone.vue +135 -0
- package/dist/templates/vuexy-portal/src/@core/components/I18n.vue +48 -0
- package/dist/templates/vuexy-portal/src/@core/components/MoreBtn.vue +24 -0
- package/dist/templates/vuexy-portal/src/@core/components/Notifications.vue +245 -0
- package/dist/templates/vuexy-portal/src/@core/components/ProductDescriptionEditor.vue +198 -0
- package/dist/templates/vuexy-portal/src/@core/components/ScrollToTop.vue +41 -0
- package/dist/templates/vuexy-portal/src/@core/components/Shortcuts.vue +99 -0
- package/dist/templates/vuexy-portal/src/@core/components/TablePagination.vue +39 -0
- package/dist/templates/vuexy-portal/src/@core/components/TheCustomizer.vue +618 -0
- package/dist/templates/vuexy-portal/src/@core/components/ThemeSwitcher.vue +61 -0
- package/dist/templates/vuexy-portal/src/@core/components/TiptapEditor.vue +166 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/AppAutocomplete.vue +57 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/AppCombobox.vue +57 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/AppDateTimePicker.vue +543 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/AppSelect.vue +50 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/AppTextField.vue +78 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/AppTextarea.vue +50 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/CustomCheckboxes.vue +81 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/CustomCheckboxesWithIcon.vue +95 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/CustomCheckboxesWithImage.vue +93 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/CustomRadios.vue +81 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/CustomRadiosWithIcon.vue +88 -0
- package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/CustomRadiosWithImage.vue +99 -0
- package/dist/templates/vuexy-portal/src/@core/components/cards/AppCardActions.vue +167 -0
- package/dist/templates/vuexy-portal/src/@core/components/cards/AppCardCode.vue +152 -0
- package/dist/templates/vuexy-portal/src/@core/components/cards/CardStatisticsHorizontal.vue +41 -0
- package/dist/templates/vuexy-portal/src/@core/components/cards/CardStatisticsVertical.vue +48 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_components.scss +185 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_dark.scss +16 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_default-layout-w-horizontal-nav.scss +45 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_default-layout-w-vertical-nav.scss +103 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_default-layout.scss +16 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_horizontal-nav.scss +194 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_index.scss +48 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_layouts.scss +63 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_misc.scss +20 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_mixins.scss +63 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_route-transitions.scss +70 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_utilities.scss +181 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_utils.scss +90 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_variables.scss +198 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/_vertical-nav.scss +255 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/libs/_perfect-scrollbar.scss +35 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/libs/vuetify/_index.scss +1 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/libs/vuetify/_overrides.scss +264 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/libs/vuetify/_variables.scss +62 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/placeholders/_default-layout-horizontal-nav.scss +27 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/placeholders/_default-layout-vertical-nav.scss +45 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/placeholders/_default-layout.scss +3 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/placeholders/_horizontal-nav.scss +98 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/placeholders/_index.scss +7 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/placeholders/_misc.scss +7 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/placeholders/_nav.scss +33 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/placeholders/_vertical-nav.scss +80 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/skins/_bordered.scss +72 -0
- package/dist/templates/vuexy-portal/src/@core/scss/base/skins/_index.scss +1 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/_default-layout-w-horizontal-nav.scss +9 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/_default-layout-w-vertical-nav.scss +20 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/_horizontal-nav.scss +40 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/_mixins.scss +6 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/_utilities.scss +49 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/_variables.scss +102 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/_vertical-nav.scss +47 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/index.scss +17 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/apex-chart.scss +108 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/full-calendar.scss +351 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/shepherd.scss +94 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/swiper.scss +5 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/_variables.scss +351 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_alert.scss +114 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_avatar.scss +27 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_badge.scss +25 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_button.scss +280 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_cards.scss +3 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_checkbox.scss +57 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_chip.scss +102 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_dialog.scss +27 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_expansion-panels.scss +106 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_field.scss +308 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_list.scss +30 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_menu.scss +35 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_otp-input.scss +17 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_pagination.scss +140 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_progress.scss +13 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_radio.scss +46 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_rating.scss +20 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_slider.scss +27 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_snackbar.scss +10 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_switch.scss +58 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_table.scss +48 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_tabs.scss +91 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_textarea.scss +9 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_timeline.scss +99 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/_tooltip.scss +6 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/components/index.scss +25 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/index.scss +3 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/libs/vuetify/overrides.scss +18 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/pages/misc.scss +20 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/pages/page-auth.scss +63 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/placeholders/_default-layout-horizontal-nav.scss +7 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/placeholders/_default-layout-vertical-nav.scss +8 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/placeholders/_horizontal-nav.scss +47 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/placeholders/_index.scss +6 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/placeholders/_misc.scss +3 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/placeholders/_nav.scss +27 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/placeholders/_vertical-nav.scss +35 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/skins/_bordered.scss +82 -0
- package/dist/templates/vuexy-portal/src/@core/scss/template/skins/_index.scss +1 -0
- package/dist/templates/vuexy-portal/src/@custom/assets/images/user-profile-header.png +0 -0
- package/dist/templates/vuexy-portal/src/@custom/components/ConfirmationDialog.vue +155 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/HorizontalNav.vue +35 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/HorizontalNavGroup.vue +110 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/HorizontalNavLayout.vue +150 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/HorizontalNavLink.vue +56 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/HorizontalNavPopper.vue +175 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/TransitionExpand.vue +92 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/VNodeRenderer.tsx +17 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/VerticalNav.vue +236 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/VerticalNavGroup.vue +267 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/VerticalNavLayout.vue +232 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/VerticalNavLink.vue +68 -0
- package/dist/templates/vuexy-portal/src/@layouts/components/VerticalNavSectionTitle.vue +37 -0
- package/dist/templates/vuexy-portal/src/@layouts/styles/_classes.scss +3 -0
- package/dist/templates/vuexy-portal/src/@layouts/styles/_default-layout.scss +35 -0
- package/dist/templates/vuexy-portal/src/@layouts/styles/_global.scss +10 -0
- package/dist/templates/vuexy-portal/src/@layouts/styles/_mixins.scss +30 -0
- package/dist/templates/vuexy-portal/src/@layouts/styles/_placeholders.scss +53 -0
- package/dist/templates/vuexy-portal/src/@layouts/styles/_rtl.scss +7 -0
- package/dist/templates/vuexy-portal/src/@layouts/styles/_variables.scss +29 -0
- package/dist/templates/vuexy-portal/src/@layouts/styles/index.scss +3 -0
- package/dist/templates/vuexy-portal/src/App.vue +26 -0
- package/dist/templates/vuexy-portal/src/assets/images/avatars/avatar-1.png +0 -0
- package/dist/templates/vuexy-portal/src/assets/images/customizer-icons/border-light.svg +16 -0
- package/dist/templates/vuexy-portal/src/assets/images/customizer-icons/collapsed-light.svg +17 -0
- package/dist/templates/vuexy-portal/src/assets/images/customizer-icons/compact-light.svg +11 -0
- package/dist/templates/vuexy-portal/src/assets/images/customizer-icons/default-light.svg +17 -0
- package/dist/templates/vuexy-portal/src/assets/images/customizer-icons/horizontal-light.svg +12 -0
- package/dist/templates/vuexy-portal/src/assets/images/customizer-icons/ltr-light.svg +15 -0
- package/dist/templates/vuexy-portal/src/assets/images/customizer-icons/rtl-light.svg +15 -0
- package/dist/templates/vuexy-portal/src/assets/images/customizer-icons/wide-light.svg +11 -0
- package/dist/templates/vuexy-portal/src/assets/images/logo.svg +6 -0
- package/dist/templates/vuexy-portal/src/assets/images/misc/3d-safe-box-with-golden-dollar-coins.png +0 -0
- package/dist/templates/vuexy-portal/src/assets/images/misc/3d-space-rocket-with-smoke.png +0 -0
- package/dist/templates/vuexy-portal/src/assets/images/misc/dollar-coins-flying-pink-piggy-bank.png +0 -0
- package/dist/templates/vuexy-portal/src/assets/images/misc/fleet-car.png +0 -0
- package/dist/templates/vuexy-portal/src/assets/images/pages/misc-mask-dark.png +0 -0
- package/dist/templates/vuexy-portal/src/assets/images/pages/misc-mask-light.png +0 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/Card.svg +8 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/Check.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/Diamond.svg +12 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/Suitcase.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/Wallet.svg +10 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/address.svg +25 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/auth-v1-bottom-shape.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/auth-v1-top-shape.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/cart.svg +5 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/checkbox-checked.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/checkbox-indeterminate.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/checkbox-unchecked.svg +10 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/discord.svg +10 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/gift.svg +8 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/home.svg +5 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/keyboard.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/laptop.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/lightbulb.svg +8 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/office.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/paper-send.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/payment.svg +21 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/radio-checked.svg +3 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/radio-unchecked.svg +3 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/rocket.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/trending.svg +14 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/user-info.svg +4 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/user.svg +6 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/wizard-account.svg +6 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/wizard-address.svg +18 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/wizard-personal.svg +6 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/wizard-social-link.svg +6 -0
- package/dist/templates/vuexy-portal/src/assets/images/svg/wizard-submit.svg +6 -0
- package/dist/templates/vuexy-portal/src/assets/styles/styles.scss +1 -0
- package/dist/templates/vuexy-portal/src/assets/styles/variables/_template.scss +6 -0
- package/dist/templates/vuexy-portal/src/assets/styles/variables/_vuetify.scss +7 -0
- package/dist/templates/vuexy-portal/src/components/AppLoadingIndicator.vue +63 -0
- package/dist/templates/vuexy-portal/src/components/AppPricing.vue +247 -0
- package/dist/templates/vuexy-portal/src/components/AppSearchHeader.vue +77 -0
- package/dist/templates/vuexy-portal/src/components/ErrorHeader.vue +40 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/AddAuthenticatorAppDialog.vue +101 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/AddEditAddressDialog.vue +238 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/AddEditPermissionDialog.vue +93 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/AddEditRoleDialog.vue +302 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/AddPaymentMethodDialog.vue +120 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/CardAddEditDialog.vue +153 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/ConfirmDialog.vue +151 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/CreateAppDialog.vue +459 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/EnableOneTimePasswordDialog.vue +85 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/PaymentProvidersDialog.vue +123 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/PricingPlanDialog.vue +34 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/ReferAndEarnDialog.vue +181 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/ShareProjectDialog.vue +198 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/TwoFactorAuthDialog.vue +120 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/UserInfoEditDialog.vue +246 -0
- package/dist/templates/vuexy-portal/src/components/dialogs/UserUpgradePlanDialog.vue +101 -0
- package/dist/templates/vuexy-portal/src/layouts/blank.vue +42 -0
- package/dist/templates/vuexy-portal/src/layouts/components/DefaultLayoutWithHorizontalNav.vue +75 -0
- package/dist/templates/vuexy-portal/src/layouts/components/DefaultLayoutWithVerticalNav.vue +79 -0
- package/dist/templates/vuexy-portal/src/layouts/components/Footer.vue +17 -0
- package/dist/templates/vuexy-portal/src/layouts/components/NavSearchBar.vue +266 -0
- package/dist/templates/vuexy-portal/src/layouts/components/NavbarShortcuts.vue +45 -0
- package/dist/templates/vuexy-portal/src/layouts/components/NavbarThemeSwitcher.vue +22 -0
- package/dist/templates/vuexy-portal/src/layouts/components/UserProfile.vue +114 -0
- package/dist/templates/vuexy-portal/src/layouts/default.vue +30 -0
- package/dist/templates/vuexy-portal/src/pages/[...error].vue +46 -0
- package/dist/templates/vuexy-portal/src/pages/account-settings/[tab].vue +57 -0
- package/dist/templates/vuexy-portal/src/pages/index.vue +32 -0
- package/dist/templates/vuexy-portal/src/pages/login.vue +178 -0
- package/dist/templates/vuexy-portal/src/pages/not-authorized.vue +47 -0
- package/dist/templates/vuexy-portal/src/pages/second-page.vue +13 -0
- package/dist/templates/vuexy-portal/src/plugins/casl/shims-ability.d.ts +8 -0
- package/dist/templates/vuexy-portal/src/plugins/i18n/locales/en_US.json +88 -0
- package/dist/templates/vuexy-portal/src/plugins/i18n/locales/zh_CN.json +88 -0
- package/dist/templates/vuexy-portal/src/plugins/i18n/vue-i18n.d.ts +17 -0
- package/dist/templates/vuexy-portal/src/plugins/iconify/icons.css +21039 -0
- package/dist/templates/vuexy-portal/src/plugins/iconify/package.json +3 -0
- package/dist/templates/vuexy-portal/src/views/account-settings/AccountSettingsSecurity.vue +179 -0
- package/dist/templates/vuexy-portal/typed-router.d.ts +146 -0
- package/dist/utils/template.js +1 -0
- package/dist/utils/template.js.map +1 -1
- package/package.json +1 -1
- package/.gitlab-ci.yml +0 -143
- package/Makefile +0 -62
- package/dist/templates/db-schema/.gitlab-ci.yml +0 -139
- package/dist/templates/db-schema/Makefile +0 -885
- package/dist/templates/k8s-deployment/.gitlab-ci.yml +0 -128
- package/dist/templates/k8s-deployment/Makefile +0 -196
- package/dist/templates/k8s-deployment/resources/charts/mysql/charts/mysql-install/script/Makefile +0 -12
- package/dist/templates/k8s-deployment/resources/charts/redis/charts/redis-install/script/Makefile +0 -8
- package/dist/templates/k8s-deployment/services/charts/hooks/charts/pre-delete-rsc/script/Makefile +0 -49
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-cypress/Makefile +0 -9
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/script/Makefile +0 -14
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/_t-0100-readiness-liveness.ts +0 -84
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/hub.ts +0 -372
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-contact.ts +0 -158
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-contract.ts +0 -328
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-kyc.ts +0 -304
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-onboard-app.ts +0 -823
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-onboard-web.ts +0 -493
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-profile.ts +0 -277
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/individual-whitelist.ts +0 -133
- package/dist/templates/k8s-deployment/services/charts/tests/charts/e2e-test-js/tests/t-0200-start.ts +0 -172
- package/dist/templates/mxw-base-api-express/.dockerignore +0 -2
- package/dist/templates/mxw-base-api-express/.env +0 -10
- package/dist/templates/mxw-base-api-express/.gitlab-ci.yml +0 -174
- package/dist/templates/mxw-base-api-express/.nvmrc +0 -1
- package/dist/templates/mxw-base-api-express/Makefile +0 -84
- package/dist/templates/mxw-base-api-express/src/app-service.test.ts +0 -94
- package/dist/templates/mxw-base-api-express/src/app-service.ts +0 -498
- package/dist/templates/mxw-base-api-express/src/auth/auth-user.test.ts +0 -215
- package/dist/templates/mxw-base-api-express/src/auth/auth-user.ts +0 -86
- package/dist/templates/mxw-base-api-express/src/auth/auth.ts +0 -81
- package/dist/templates/mxw-base-api-express/src/core-service.ts +0 -72
- package/dist/templates/mxw-base-api-express/src/crud.ts +0 -84
- package/dist/templates/mxw-base-api-express/src/http-handler.ts +0 -71
- package/dist/templates/mxw-base-api-express/src/server.ts +0 -54
- package/dist/templates/mxw-base-api-express/src/test.ts +0 -38
- package/dist/templates/mxw-base-api-express/src/utils/api-utilities.ts +0 -52
- package/dist/templates/mxw-base-api-express/src/utils/file-utilities.ts +0 -55
- package/dist/templates/mxw-base-api-express/tsconfig.json +0 -32
- package/dist/templates/nestjs-api/.dockerignore +0 -6
- package/dist/templates/nestjs-api/.gitlab-ci.yml +0 -174
- package/dist/templates/nestjs-api/.nvmrc +0 -1
- package/dist/templates/nestjs-api/.prettierrc +0 -4
- package/dist/templates/nestjs-api/Makefile +0 -95
- package/dist/templates/nestjs-api/nest-cli.json +0 -11
- package/dist/templates/nestjs-api/src/app.controller.spec.ts +0 -24
- package/dist/templates/nestjs-api/src/app.controller.ts +0 -27
- package/dist/templates/nestjs-api/src/app.module.ts +0 -49
- package/dist/templates/nestjs-api/src/app.service.ts +0 -27
- package/dist/templates/nestjs-api/src/main.ts +0 -26
- package/dist/templates/nestjs-api/test/app.e2e-spec.ts +0 -47
- package/dist/templates/nestjs-api/tsconfig.build.json +0 -4
- package/dist/templates/nestjs-api/tsconfig.json +0 -24
- package/dist/templates/nestjs-library/.eslintrc.js +0 -24
- package/dist/templates/nestjs-library/.gitlab-ci.yml +0 -138
- package/dist/templates/nestjs-library/.prettierrc +0 -6
- package/dist/templates/nestjs-library/Makefile +0 -60
- package/dist/templates/nestjs-library/index.ts +0 -1
- package/dist/templates/nestjs-library/lib/index.ts +0 -2
- package/dist/templates/nestjs-library/test/app/controller/hello.controller.ts +0 -7
- package/dist/templates/nestjs-library/tsconfig.build.json +0 -7
- package/dist/templates/nestjs-library/tsconfig.json +0 -18
- package/dist/templates/ts-library/.dockerignore +0 -2
- package/dist/templates/ts-library/.eslintrc.js +0 -24
- package/dist/templates/ts-library/.gitlab-ci.yml +0 -136
- package/dist/templates/ts-library/.prettierrc +0 -6
- package/dist/templates/ts-library/Makefile +0 -58
- package/dist/templates/ts-library/index.ts +0 -1
- package/dist/templates/ts-library/lib/index.ts +0 -1
- package/dist/templates/ts-library/lib/samples/index.ts +0 -5
- package/dist/templates/ts-library/lib/samples/samples-function.ts +0 -3
- package/dist/templates/ts-library/test/sample.e2e-spec.ts +0 -10
- package/dist/templates/ts-library/tsconfig.build.json +0 -4
- package/dist/utils/help.js +0 -8
- package/dist/utils/help.js.map +0 -1
- package/tsconfig.json +0 -24
- /package/dist/templates/{nestjs-api/.eslintrc.js → turbo-nestjs-vuexy/packages/eslint-config/nest.js} +0 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
<script setup lang="ts" generic="T extends unknown">
|
|
2
|
+
import { PerfectScrollbar } from 'vue3-perfect-scrollbar'
|
|
3
|
+
import { VList, VListItem } from 'vuetify/components/VList'
|
|
4
|
+
|
|
5
|
+
interface Emit {
|
|
6
|
+
(e: 'update:isDialogVisible', value: boolean): void
|
|
7
|
+
(e: 'search', value: string): void
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface Props {
|
|
11
|
+
isDialogVisible: boolean
|
|
12
|
+
searchResults: T[]
|
|
13
|
+
isLoading?: boolean
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const props = defineProps<Props>()
|
|
17
|
+
const emit = defineEmits<Emit>()
|
|
18
|
+
|
|
19
|
+
// 👉 Hotkey
|
|
20
|
+
// eslint-disable-next-line camelcase
|
|
21
|
+
const { ctrl_k, meta_k } = useMagicKeys({
|
|
22
|
+
passive: false,
|
|
23
|
+
onEventFired(e) {
|
|
24
|
+
if (e.ctrlKey && e.key === 'k' && e.type === 'keydown')
|
|
25
|
+
e.preventDefault()
|
|
26
|
+
},
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
const refSearchList = ref<VList>()
|
|
30
|
+
const refSearchInput = ref<HTMLInputElement>()
|
|
31
|
+
const searchQueryLocal = ref('')
|
|
32
|
+
|
|
33
|
+
// 👉 watching control + / to open dialog
|
|
34
|
+
/* eslint-disable camelcase */
|
|
35
|
+
watch([
|
|
36
|
+
ctrl_k, meta_k,
|
|
37
|
+
], () => {
|
|
38
|
+
emit('update:isDialogVisible', true)
|
|
39
|
+
})
|
|
40
|
+
/* eslint-enable */
|
|
41
|
+
|
|
42
|
+
// 👉 clear search result and close the dialog
|
|
43
|
+
const clearSearchAndCloseDialog = () => {
|
|
44
|
+
searchQueryLocal.value = ''
|
|
45
|
+
emit('update:isDialogVisible', false)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// 👉 get fucus on search list
|
|
49
|
+
const getFocusOnSearchList = (e: KeyboardEvent) => {
|
|
50
|
+
if (e.key === 'ArrowDown') {
|
|
51
|
+
e.preventDefault()
|
|
52
|
+
refSearchList.value?.focus('next')
|
|
53
|
+
}
|
|
54
|
+
else if (e.key === 'ArrowUp') {
|
|
55
|
+
e.preventDefault()
|
|
56
|
+
refSearchList.value?.focus('prev')
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const dialogModelValueUpdate = (val: boolean) => {
|
|
61
|
+
searchQueryLocal.value = ''
|
|
62
|
+
emit('update:isDialogVisible', val)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// 👉 clear search query when redirect to another page
|
|
66
|
+
watch(
|
|
67
|
+
() => props.isDialogVisible,
|
|
68
|
+
() => { searchQueryLocal.value = '' },
|
|
69
|
+
)
|
|
70
|
+
</script>
|
|
71
|
+
|
|
72
|
+
<template>
|
|
73
|
+
<VDialog
|
|
74
|
+
max-width="600"
|
|
75
|
+
:model-value="props.isDialogVisible"
|
|
76
|
+
:height="$vuetify.display.smAndUp ? '531' : '100%'"
|
|
77
|
+
:fullscreen="$vuetify.display.width < 600"
|
|
78
|
+
class="app-bar-search-dialog"
|
|
79
|
+
@update:model-value="dialogModelValueUpdate"
|
|
80
|
+
@keyup.esc="clearSearchAndCloseDialog"
|
|
81
|
+
>
|
|
82
|
+
<VCard
|
|
83
|
+
height="100%"
|
|
84
|
+
width="100%"
|
|
85
|
+
class="position-relative"
|
|
86
|
+
>
|
|
87
|
+
<VCardText
|
|
88
|
+
class="px-4"
|
|
89
|
+
style="padding-block: 1rem 1.2rem;"
|
|
90
|
+
>
|
|
91
|
+
<!-- 👉 Search Input -->
|
|
92
|
+
<VTextField
|
|
93
|
+
ref="refSearchInput"
|
|
94
|
+
v-model="searchQueryLocal"
|
|
95
|
+
autofocus
|
|
96
|
+
density="compact"
|
|
97
|
+
variant="plain"
|
|
98
|
+
class="app-bar-search-input"
|
|
99
|
+
@keyup.esc="clearSearchAndCloseDialog"
|
|
100
|
+
@keydown="getFocusOnSearchList"
|
|
101
|
+
@update:model-value="$emit('search', searchQueryLocal)"
|
|
102
|
+
>
|
|
103
|
+
<!-- 👉 Prepend Inner -->
|
|
104
|
+
<template #prepend-inner>
|
|
105
|
+
<div class="d-flex align-center text-high-emphasis me-1">
|
|
106
|
+
<VIcon
|
|
107
|
+
size="24"
|
|
108
|
+
icon="tabler-search"
|
|
109
|
+
/>
|
|
110
|
+
</div>
|
|
111
|
+
</template>
|
|
112
|
+
|
|
113
|
+
<!-- 👉 Append Inner -->
|
|
114
|
+
<template #append-inner>
|
|
115
|
+
<div class="d-flex align-start">
|
|
116
|
+
<div
|
|
117
|
+
class="text-base text-disabled cursor-pointer me-3"
|
|
118
|
+
@click="clearSearchAndCloseDialog"
|
|
119
|
+
>
|
|
120
|
+
[esc]
|
|
121
|
+
</div>
|
|
122
|
+
|
|
123
|
+
<VIcon
|
|
124
|
+
icon="tabler-x"
|
|
125
|
+
size="24"
|
|
126
|
+
@click="clearSearchAndCloseDialog"
|
|
127
|
+
/>
|
|
128
|
+
</div>
|
|
129
|
+
</template>
|
|
130
|
+
</VTextField>
|
|
131
|
+
</VCardText>
|
|
132
|
+
|
|
133
|
+
<!-- 👉 Divider -->
|
|
134
|
+
<VDivider />
|
|
135
|
+
|
|
136
|
+
<!-- 👉 Perfect Scrollbar -->
|
|
137
|
+
<PerfectScrollbar
|
|
138
|
+
:options="{ wheelPropagation: false, suppressScrollX: true }"
|
|
139
|
+
class="h-100"
|
|
140
|
+
>
|
|
141
|
+
<!-- 👉 Suggestions -->
|
|
142
|
+
<div
|
|
143
|
+
v-show="!!props.searchResults && !searchQueryLocal && $slots.suggestions"
|
|
144
|
+
class="h-100"
|
|
145
|
+
>
|
|
146
|
+
<slot name="suggestions" />
|
|
147
|
+
</div>
|
|
148
|
+
|
|
149
|
+
<template v-if="!isLoading">
|
|
150
|
+
<!-- 👉 Search List -->
|
|
151
|
+
<VList
|
|
152
|
+
v-show="searchQueryLocal.length && !!props.searchResults.length"
|
|
153
|
+
ref="refSearchList"
|
|
154
|
+
density="compact"
|
|
155
|
+
class="app-bar-search-list py-0"
|
|
156
|
+
>
|
|
157
|
+
<!-- 👉 list Item /List Sub header -->
|
|
158
|
+
<template
|
|
159
|
+
v-for="item in props.searchResults"
|
|
160
|
+
:key="item"
|
|
161
|
+
>
|
|
162
|
+
<slot
|
|
163
|
+
name="searchResult"
|
|
164
|
+
:item="item"
|
|
165
|
+
>
|
|
166
|
+
<VListItem>
|
|
167
|
+
{{ item }}
|
|
168
|
+
</VListItem>
|
|
169
|
+
</slot>
|
|
170
|
+
</template>
|
|
171
|
+
</VList>
|
|
172
|
+
|
|
173
|
+
<!-- 👉 No Data found -->
|
|
174
|
+
<div
|
|
175
|
+
v-show="!props.searchResults.length && searchQueryLocal.length"
|
|
176
|
+
class="h-100"
|
|
177
|
+
>
|
|
178
|
+
<slot name="noData">
|
|
179
|
+
<VCardText class="h-100">
|
|
180
|
+
<div class="app-bar-search-suggestions d-flex flex-column align-center justify-center text-high-emphasis pa-12">
|
|
181
|
+
<VIcon
|
|
182
|
+
size="64"
|
|
183
|
+
icon="tabler-file-alert"
|
|
184
|
+
/>
|
|
185
|
+
<div class="d-flex align-center flex-wrap justify-center gap-2 text-h5 mt-3">
|
|
186
|
+
<span>No Result For </span>
|
|
187
|
+
<span>"{{ searchQueryLocal }}"</span>
|
|
188
|
+
</div>
|
|
189
|
+
|
|
190
|
+
<slot name="noDataSuggestion" />
|
|
191
|
+
</div>
|
|
192
|
+
</VCardText>
|
|
193
|
+
</slot>
|
|
194
|
+
</div>
|
|
195
|
+
</template>
|
|
196
|
+
|
|
197
|
+
<!-- 👉 Loading -->
|
|
198
|
+
<template v-if="isLoading">
|
|
199
|
+
<VSkeletonLoader
|
|
200
|
+
v-for="i in 3"
|
|
201
|
+
:key="i"
|
|
202
|
+
type="list-item-two-line"
|
|
203
|
+
/>
|
|
204
|
+
</template>
|
|
205
|
+
</PerfectScrollbar>
|
|
206
|
+
</VCard>
|
|
207
|
+
</VDialog>
|
|
208
|
+
</template>
|
|
209
|
+
|
|
210
|
+
<style lang="scss">
|
|
211
|
+
.app-bar-search-suggestions {
|
|
212
|
+
.app-bar-search-suggestion {
|
|
213
|
+
&:hover {
|
|
214
|
+
color: rgb(var(--v-theme-primary));
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.app-bar-search-dialog {
|
|
220
|
+
.app-bar-search-input {
|
|
221
|
+
.v-field__input {
|
|
222
|
+
padding-block-start: 0.2rem;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.app-bar-search-list {
|
|
227
|
+
.v-list-item,
|
|
228
|
+
.v-list-subheader {
|
|
229
|
+
font-size: 0.75rem;
|
|
230
|
+
padding-inline: 1rem;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.v-list-item {
|
|
234
|
+
border-radius: 6px;
|
|
235
|
+
margin-block-end: 0.125rem;
|
|
236
|
+
margin-inline: 0.5rem;
|
|
237
|
+
|
|
238
|
+
.v-list-item__append {
|
|
239
|
+
.enter-icon {
|
|
240
|
+
visibility: hidden;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
&:hover,
|
|
245
|
+
&:active,
|
|
246
|
+
&:focus {
|
|
247
|
+
.v-list-item__append {
|
|
248
|
+
.enter-icon {
|
|
249
|
+
visibility: visible;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.v-list-subheader {
|
|
256
|
+
line-height: 1;
|
|
257
|
+
min-block-size: auto;
|
|
258
|
+
padding-block: 16px 8px;
|
|
259
|
+
padding-inline-start: 1rem;
|
|
260
|
+
text-transform: uppercase;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
@supports selector(:focus-visible) {
|
|
266
|
+
.app-bar-search-dialog {
|
|
267
|
+
.v-list-item:focus-visible::after {
|
|
268
|
+
content: none;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
</style>
|
|
273
|
+
|
|
274
|
+
<style lang="scss" scoped>
|
|
275
|
+
.card-list {
|
|
276
|
+
--v-card-list-gap: 16px;
|
|
277
|
+
}
|
|
278
|
+
</style>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const props = defineProps<{
|
|
3
|
+
title: string
|
|
4
|
+
}>()
|
|
5
|
+
|
|
6
|
+
defineEmits<{
|
|
7
|
+
(e: 'cancel', el: MouseEvent): void
|
|
8
|
+
}>()
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<div class="pa-6 d-flex align-center">
|
|
13
|
+
<h5 class="text-h5">
|
|
14
|
+
{{ props.title }}
|
|
15
|
+
</h5>
|
|
16
|
+
<VSpacer />
|
|
17
|
+
|
|
18
|
+
<slot name="beforeClose" />
|
|
19
|
+
|
|
20
|
+
<IconBtn
|
|
21
|
+
size="small"
|
|
22
|
+
@click="$emit('cancel', $event)"
|
|
23
|
+
>
|
|
24
|
+
<VIcon
|
|
25
|
+
size="24"
|
|
26
|
+
icon="tabler-x"
|
|
27
|
+
/>
|
|
28
|
+
</IconBtn>
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
interface Item {
|
|
3
|
+
title: string
|
|
4
|
+
icon?: string | object
|
|
5
|
+
size?: string
|
|
6
|
+
subtitle?: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type Direction = 'vertical' | 'horizontal'
|
|
10
|
+
|
|
11
|
+
interface Props {
|
|
12
|
+
items: Item[]
|
|
13
|
+
currentStep?: number
|
|
14
|
+
direction?: Direction
|
|
15
|
+
iconSize?: string | number
|
|
16
|
+
isActiveStepValid?: boolean
|
|
17
|
+
align?: 'start' | 'center' | 'end' | 'default'
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface Emit {
|
|
21
|
+
(e: 'update:currentStep', value: number): void
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
25
|
+
currentStep: 0,
|
|
26
|
+
direction: 'horizontal',
|
|
27
|
+
iconSize: 60,
|
|
28
|
+
isActiveStepValid: undefined,
|
|
29
|
+
align: 'default',
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
const emit = defineEmits<Emit>()
|
|
33
|
+
|
|
34
|
+
const currentStep = ref(props.currentStep || 0)
|
|
35
|
+
|
|
36
|
+
// check if step is completed or active and return class name accordingly
|
|
37
|
+
const activeOrCompletedStepsClasses = computed(() => (index: number) => (
|
|
38
|
+
index < currentStep.value
|
|
39
|
+
? 'stepper-steps-completed'
|
|
40
|
+
: index === currentStep.value ? 'stepper-steps-active' : ''
|
|
41
|
+
))
|
|
42
|
+
|
|
43
|
+
// check if step is horizontal and not last step
|
|
44
|
+
const isHorizontalAndNotLastStep = computed(() => (index: number) => (
|
|
45
|
+
props.direction === 'horizontal'
|
|
46
|
+
&& props.items.length - 1 !== index
|
|
47
|
+
))
|
|
48
|
+
|
|
49
|
+
// check if validation is enabled
|
|
50
|
+
const isValidationEnabled = computed(() => {
|
|
51
|
+
return props.isActiveStepValid !== undefined
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
watchEffect(() => {
|
|
55
|
+
// we need to check undefined because if we pass 0 as currentStep it will be falsy
|
|
56
|
+
if (
|
|
57
|
+
props.currentStep !== undefined
|
|
58
|
+
&& props.currentStep < props.items.length
|
|
59
|
+
&& props.currentStep >= 0
|
|
60
|
+
)
|
|
61
|
+
currentStep.value = props.currentStep
|
|
62
|
+
|
|
63
|
+
emit('update:currentStep', currentStep.value)
|
|
64
|
+
})
|
|
65
|
+
</script>
|
|
66
|
+
|
|
67
|
+
<template>
|
|
68
|
+
<VSlideGroup
|
|
69
|
+
v-model="currentStep"
|
|
70
|
+
class="app-stepper"
|
|
71
|
+
show-arrows
|
|
72
|
+
:direction="props.direction"
|
|
73
|
+
:class="`app-stepper-${props.align} ${props.items[0].icon ? 'app-stepper-icons' : ''}`"
|
|
74
|
+
>
|
|
75
|
+
<VSlideGroupItem
|
|
76
|
+
v-for="(item, index) in props.items"
|
|
77
|
+
:key="item.title"
|
|
78
|
+
:value="index"
|
|
79
|
+
>
|
|
80
|
+
<div
|
|
81
|
+
class="cursor-pointer app-stepper-step pa-1"
|
|
82
|
+
:class="[
|
|
83
|
+
(!props.isActiveStepValid && (isValidationEnabled)) && 'stepper-steps-invalid',
|
|
84
|
+
activeOrCompletedStepsClasses(index),
|
|
85
|
+
]"
|
|
86
|
+
@click="!isValidationEnabled && emit('update:currentStep', index)"
|
|
87
|
+
>
|
|
88
|
+
<!-- SECTION stepper step with icon -->
|
|
89
|
+
<template v-if="item.icon">
|
|
90
|
+
<div class="stepper-icon-step text-high-emphasis d-flex align-center ">
|
|
91
|
+
<!-- 👉 icon and title -->
|
|
92
|
+
<div
|
|
93
|
+
class="d-flex align-center gap-x-3 step-wrapper"
|
|
94
|
+
:class="[props.direction === 'horizontal' && 'flex-column']"
|
|
95
|
+
>
|
|
96
|
+
<div class="stepper-icon">
|
|
97
|
+
<template v-if="typeof item.icon === 'object'">
|
|
98
|
+
<Component :is="item.icon" />
|
|
99
|
+
</template>
|
|
100
|
+
|
|
101
|
+
<VIcon
|
|
102
|
+
v-else
|
|
103
|
+
:icon="item.icon"
|
|
104
|
+
:size="item.size || props.iconSize"
|
|
105
|
+
/>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<div>
|
|
109
|
+
<p class="stepper-title font-weight-medium mb-0">
|
|
110
|
+
{{ item.title }}
|
|
111
|
+
</p>
|
|
112
|
+
<p
|
|
113
|
+
v-if="item.subtitle"
|
|
114
|
+
class="stepper-subtitle mb-0"
|
|
115
|
+
>
|
|
116
|
+
{{ item.subtitle }}
|
|
117
|
+
</p>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
|
|
121
|
+
<!-- 👉 append chevron -->
|
|
122
|
+
<VIcon
|
|
123
|
+
v-if="isHorizontalAndNotLastStep(index)"
|
|
124
|
+
class="flip-in-rtl stepper-chevron-indicator mx-6"
|
|
125
|
+
size="20"
|
|
126
|
+
icon="tabler-chevron-right"
|
|
127
|
+
/>
|
|
128
|
+
</div>
|
|
129
|
+
</template>
|
|
130
|
+
<!-- !SECTION -->
|
|
131
|
+
|
|
132
|
+
<!-- SECTION stepper step without icon -->
|
|
133
|
+
<template v-else>
|
|
134
|
+
<div class="d-flex align-center gap-x-3">
|
|
135
|
+
<div>
|
|
136
|
+
<!-- 👉 custom circle icon -->
|
|
137
|
+
<template v-if="index >= currentStep">
|
|
138
|
+
<VAvatar
|
|
139
|
+
v-if="(!isValidationEnabled || props.isActiveStepValid || index !== currentStep)"
|
|
140
|
+
size="38"
|
|
141
|
+
rounded
|
|
142
|
+
:variant="index === currentStep ? 'elevated' : 'tonal'"
|
|
143
|
+
:color="index === currentStep ? 'primary' : 'default'"
|
|
144
|
+
>
|
|
145
|
+
<h5
|
|
146
|
+
class="text-h5"
|
|
147
|
+
:style="index === currentStep ? { color: '#fff' } : ''"
|
|
148
|
+
>
|
|
149
|
+
{{ index + 1 }}
|
|
150
|
+
</h5>
|
|
151
|
+
</VAvatar>
|
|
152
|
+
|
|
153
|
+
<VAvatar
|
|
154
|
+
v-else
|
|
155
|
+
color="error"
|
|
156
|
+
size="38"
|
|
157
|
+
rounded
|
|
158
|
+
>
|
|
159
|
+
<VIcon
|
|
160
|
+
|
|
161
|
+
icon="tabler-alert-circle"
|
|
162
|
+
size="22"
|
|
163
|
+
/>
|
|
164
|
+
</VAvatar>
|
|
165
|
+
</template>
|
|
166
|
+
|
|
167
|
+
<!-- 👉 step completed icon -->
|
|
168
|
+
|
|
169
|
+
<VAvatar
|
|
170
|
+
v-else
|
|
171
|
+
class="stepper-icon"
|
|
172
|
+
variant="tonal"
|
|
173
|
+
color="primary"
|
|
174
|
+
size="38"
|
|
175
|
+
rounded
|
|
176
|
+
>
|
|
177
|
+
<h5
|
|
178
|
+
class="text-h5"
|
|
179
|
+
style="color: rgb(var(--v-theme-primary));"
|
|
180
|
+
>
|
|
181
|
+
{{ index + 1 }}
|
|
182
|
+
</h5>
|
|
183
|
+
</VAvatar>
|
|
184
|
+
</div>
|
|
185
|
+
|
|
186
|
+
<!-- 👉 title and subtitle -->
|
|
187
|
+
<div class="d-flex flex-column justify-center">
|
|
188
|
+
<div class="stepper-title font-weight-medium">
|
|
189
|
+
{{ item.title }}
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
<div
|
|
193
|
+
v-if="item.subtitle"
|
|
194
|
+
class="stepper-subtitle text-sm text-disabled"
|
|
195
|
+
>
|
|
196
|
+
{{ item.subtitle }}
|
|
197
|
+
</div>
|
|
198
|
+
</div>
|
|
199
|
+
|
|
200
|
+
<!-- 👉 stepper step icon -->
|
|
201
|
+
<div
|
|
202
|
+
v-if="isHorizontalAndNotLastStep(index)"
|
|
203
|
+
class="stepper-step-line stepper-chevron-indicator mx-6"
|
|
204
|
+
>
|
|
205
|
+
<VIcon
|
|
206
|
+
icon="tabler-chevron-right"
|
|
207
|
+
size="20"
|
|
208
|
+
/>
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
</template>
|
|
212
|
+
<!-- !SECTION -->
|
|
213
|
+
</div>
|
|
214
|
+
</VSlideGroupItem>
|
|
215
|
+
</VSlideGroup>
|
|
216
|
+
</template>
|
|
217
|
+
|
|
218
|
+
<style lang="scss">
|
|
219
|
+
@use "@core/scss/template/mixins" as templateMixins;
|
|
220
|
+
|
|
221
|
+
.app-stepper {
|
|
222
|
+
// 👉 stepper step with bg color
|
|
223
|
+
&.stepper-icon-step-bg {
|
|
224
|
+
.stepper-icon-step {
|
|
225
|
+
.step-wrapper {
|
|
226
|
+
flex-direction: row !important;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.stepper-icon {
|
|
230
|
+
display: flex;
|
|
231
|
+
align-items: center;
|
|
232
|
+
justify-content: center;
|
|
233
|
+
border-radius: 0.375rem;
|
|
234
|
+
background-color: rgba(var(--v-theme-on-surface), var(--v-selected-opacity));
|
|
235
|
+
block-size: 2.375rem;
|
|
236
|
+
color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity));
|
|
237
|
+
inline-size: 2.375rem;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.stepper-steps-active {
|
|
242
|
+
.stepper-icon-step {
|
|
243
|
+
.stepper-icon {
|
|
244
|
+
@include templateMixins.custom-elevation(var(--v-theme-primary), "sm");
|
|
245
|
+
|
|
246
|
+
background-color: rgb(var(--v-theme-primary));
|
|
247
|
+
color: rgba(var(--v-theme-on-primary));
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.stepper-steps-completed {
|
|
253
|
+
.stepper-icon-step {
|
|
254
|
+
.stepper-icon {
|
|
255
|
+
background: rgba(var(--v-theme-primary), var(--v-activated-opacity));
|
|
256
|
+
color: rgba(var(--v-theme-primary));
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
&.app-stepper-icons:not(.stepper-icon-step-bg) {
|
|
263
|
+
/* stylelint-disable-next-line no-descending-specificity */
|
|
264
|
+
.stepper-icon {
|
|
265
|
+
line-height: 0;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.step-wrapper {
|
|
269
|
+
padding: 1.25rem;
|
|
270
|
+
gap: 0.5rem;
|
|
271
|
+
min-inline-size: 9.375rem;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.stepper-chevron-indicator {
|
|
275
|
+
margin-inline: 1rem !important;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.stepper-steps-completed,
|
|
279
|
+
.stepper-steps-active {
|
|
280
|
+
.stepper-icon-step,
|
|
281
|
+
.stepper-step-icon,
|
|
282
|
+
.stepper-title,
|
|
283
|
+
.stepper-subtitle {
|
|
284
|
+
color: rgb(var(--v-theme-primary)) !important;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
// 👉 stepper step with icon and default
|
|
290
|
+
.v-slide-group__content {
|
|
291
|
+
row-gap: 1rem;
|
|
292
|
+
|
|
293
|
+
/* stylelint-disable-next-line no-descending-specificity */
|
|
294
|
+
.stepper-title {
|
|
295
|
+
color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity));
|
|
296
|
+
font-size: 0.9375rem;
|
|
297
|
+
font-weight: 500 !important;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/* stylelint-disable-next-line no-descending-specificity */
|
|
301
|
+
.stepper-subtitle {
|
|
302
|
+
color: rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity));
|
|
303
|
+
font-size: 0.8125rem;
|
|
304
|
+
line-height: 1.25rem;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/* stylelint-disable-next-line no-descending-specificity */
|
|
308
|
+
.stepper-chevron-indicator {
|
|
309
|
+
color: rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity));
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/* stylelint-disable-next-line no-descending-specificity */
|
|
313
|
+
.stepper-steps-completed {
|
|
314
|
+
/* stylelint-disable-next-line no-descending-specificity */
|
|
315
|
+
.stepper-title,
|
|
316
|
+
.stepper-subtitle {
|
|
317
|
+
color: rgba(var(--v-theme-on-surface), var(--v-disabled-opacity));
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.stepper-chevron-indicator {
|
|
321
|
+
color: rgb(var(--v-theme-primary));
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/* stylelint-disable-next-line no-descending-specificity */
|
|
326
|
+
.stepper-steps-active {
|
|
327
|
+
.v-avatar.bg-primary {
|
|
328
|
+
@include templateMixins.custom-elevation(var(--v-theme-primary), "sm");
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.v-avatar.bg-error {
|
|
332
|
+
@include templateMixins.custom-elevation(var(--v-theme-error), "sm");
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.stepper-steps-invalid.stepper-steps-active {
|
|
337
|
+
.stepper-icon-step,
|
|
338
|
+
.step-number,
|
|
339
|
+
.stepper-title,
|
|
340
|
+
.stepper-subtitle {
|
|
341
|
+
color: rgb(var(--v-theme-error)) !important;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.app-stepper-step {
|
|
346
|
+
&:not(.stepper-steps-active,.stepper-steps-completed) .v-avatar--variant-tonal {
|
|
347
|
+
--v-activated-opacity: 0.06;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
// 👉 stepper alignment
|
|
353
|
+
&.app-stepper-center {
|
|
354
|
+
.v-slide-group__content {
|
|
355
|
+
justify-content: center;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
&.app-stepper-start {
|
|
360
|
+
.v-slide-group__content {
|
|
361
|
+
justify-content: start;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
&.app-stepper-end {
|
|
366
|
+
.v-slide-group__content {
|
|
367
|
+
justify-content: end;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
</style>
|