@nathapp/na-cli 1.0.1-rc.6 → 1.0.2
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 +88 -20
- package/dist/index.js +36 -2
- package/dist/index.js.map +1 -1
- 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 +49 -39
- 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-api/test/jest-test.json +26 -0
- package/dist/templates/nestjs-library/.npmignore-rename +4 -0
- package/dist/templates/nestjs-library/package.json +8 -8
- 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 +122 -47
- 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/.gitignore-rename +0 -3
- 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/Dockerfile +0 -14
- package/dist/templates/mxw-base-api-express/Makefile +0 -84
- package/dist/templates/mxw-base-api-express/README.md +0 -71
- package/dist/templates/mxw-base-api-express/package.json +0 -55
- 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
package/dist/templates/vuexy-portal/src/@core/components/app-form-elements/AppDateTimePicker.vue
ADDED
|
@@ -0,0 +1,543 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import FlatPickr from 'vue-flatpickr-component'
|
|
3
|
+
import { useTheme } from 'vuetify'
|
|
4
|
+
|
|
5
|
+
// @ts-expect-error There won't be declaration file for it
|
|
6
|
+
import { VField, filterFieldProps, makeVFieldProps } from 'vuetify/lib/components/VField/VField'
|
|
7
|
+
|
|
8
|
+
// @ts-expect-error There won't be declaration file for it
|
|
9
|
+
import { VInput, makeVInputProps } from 'vuetify/lib/components/VInput/VInput'
|
|
10
|
+
|
|
11
|
+
// @ts-expect-error There won't be declaration file for it
|
|
12
|
+
import { filterInputAttrs } from 'vuetify/lib/util/helpers'
|
|
13
|
+
|
|
14
|
+
import { useConfigStore } from '@core/stores/config'
|
|
15
|
+
|
|
16
|
+
// inherit Attribute make false
|
|
17
|
+
defineOptions({
|
|
18
|
+
inheritAttrs: false,
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
const props = defineProps({
|
|
22
|
+
autofocus: Boolean,
|
|
23
|
+
counter: [Boolean, Number, String] as PropType<true | number | string>,
|
|
24
|
+
counterValue: Function as PropType<(value: any) => number>,
|
|
25
|
+
prefix: String,
|
|
26
|
+
placeholder: String,
|
|
27
|
+
persistentPlaceholder: Boolean,
|
|
28
|
+
persistentCounter: Boolean,
|
|
29
|
+
suffix: String,
|
|
30
|
+
type: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: 'text',
|
|
33
|
+
},
|
|
34
|
+
modelModifiers: Object as PropType<Record<string, boolean>>,
|
|
35
|
+
...makeVInputProps({
|
|
36
|
+
density: 'comfortable',
|
|
37
|
+
hideDetails: 'auto',
|
|
38
|
+
}),
|
|
39
|
+
...makeVFieldProps({
|
|
40
|
+
variant: 'outlined',
|
|
41
|
+
color: 'primary',
|
|
42
|
+
}),
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
const emit = defineEmits<Emit>()
|
|
46
|
+
|
|
47
|
+
interface Emit {
|
|
48
|
+
(e: 'click:control', val: MouseEvent): true
|
|
49
|
+
(e: 'mousedown:control', val: MouseEvent): true
|
|
50
|
+
(e: 'update:focused', val: MouseEvent): true
|
|
51
|
+
(e: 'update:modelValue', val: string): void
|
|
52
|
+
(e: 'click:clear', el: MouseEvent): void
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const configStore = useConfigStore()
|
|
56
|
+
const attrs = useAttrs()
|
|
57
|
+
|
|
58
|
+
const [rootAttrs, compAttrs] = filterInputAttrs(attrs)
|
|
59
|
+
const inputProps = ref(VInput.filterProps(props))
|
|
60
|
+
const fieldProps = ref(filterFieldProps(props))
|
|
61
|
+
|
|
62
|
+
const refFlatPicker = ref()
|
|
63
|
+
|
|
64
|
+
const { focused } = useFocus(refFlatPicker)
|
|
65
|
+
const isCalendarOpen = ref(false)
|
|
66
|
+
const isInlinePicker = ref(false)
|
|
67
|
+
|
|
68
|
+
// flat picker prop manipulation
|
|
69
|
+
if (compAttrs.config && compAttrs.config.inline) {
|
|
70
|
+
isInlinePicker.value = compAttrs.config.inline
|
|
71
|
+
Object.assign(compAttrs, { altInputClass: 'inlinePicker' })
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
compAttrs.config = {
|
|
75
|
+
...compAttrs.config,
|
|
76
|
+
prevArrow: '<i class="tabler-chevron-left v-icon" style="font-size: 20px; height: 20px; width: 20px;"></i>',
|
|
77
|
+
nextArrow: '<i class="tabler-chevron-right v-icon" style="font-size: 20px; height: 20px; width: 20px;"></i>',
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// v-field clear prop
|
|
81
|
+
const onClear = (el: MouseEvent) => {
|
|
82
|
+
el.stopPropagation()
|
|
83
|
+
|
|
84
|
+
nextTick(() => {
|
|
85
|
+
emit('update:modelValue', '')
|
|
86
|
+
|
|
87
|
+
emit('click:clear', el)
|
|
88
|
+
})
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const vuetifyTheme = useTheme()
|
|
92
|
+
|
|
93
|
+
const vuetifyThemesName = Object.keys(vuetifyTheme.themes.value)
|
|
94
|
+
|
|
95
|
+
// Themes class added to flat-picker component for light and dark support
|
|
96
|
+
const updateThemeClassInCalendar = () => {
|
|
97
|
+
// ℹ️ Flatpickr don't render it's instance in mobile and device simulator
|
|
98
|
+
if (!refFlatPicker.value.fp.calendarContainer)
|
|
99
|
+
return
|
|
100
|
+
|
|
101
|
+
vuetifyThemesName.forEach(t => {
|
|
102
|
+
refFlatPicker.value.fp.calendarContainer.classList.remove(`v-theme--${t}`)
|
|
103
|
+
})
|
|
104
|
+
refFlatPicker.value.fp.calendarContainer.classList.add(`v-theme--${vuetifyTheme.global.name.value}`)
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
watch(() => configStore.theme, updateThemeClassInCalendar)
|
|
108
|
+
|
|
109
|
+
onMounted(() => {
|
|
110
|
+
updateThemeClassInCalendar()
|
|
111
|
+
})
|
|
112
|
+
|
|
113
|
+
const emitModelValue = (val: string) => {
|
|
114
|
+
emit('update:modelValue', val)
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
watch(() => props, () => {
|
|
118
|
+
fieldProps.value = filterFieldProps(props)
|
|
119
|
+
inputProps.value = VInput.filterProps(props)
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
deep: true,
|
|
123
|
+
immediate: true,
|
|
124
|
+
})
|
|
125
|
+
|
|
126
|
+
const elementId = computed(() => {
|
|
127
|
+
// @ts-expect-error id or label will be there
|
|
128
|
+
const _elementIdToken = fieldProps.id || fieldProps.label
|
|
129
|
+
|
|
130
|
+
return _elementIdToken ? `app-picker-field-${_elementIdToken}-${Math.random().toString(36).slice(2, 7)}` : undefined
|
|
131
|
+
})
|
|
132
|
+
</script>
|
|
133
|
+
|
|
134
|
+
<template>
|
|
135
|
+
<div class="app-picker-field">
|
|
136
|
+
<!-- v-input -->
|
|
137
|
+
<VLabel
|
|
138
|
+
v-if="fieldProps.label"
|
|
139
|
+
class="mb-1 text-body-2"
|
|
140
|
+
:for="elementId"
|
|
141
|
+
:text="fieldProps.label"
|
|
142
|
+
/>
|
|
143
|
+
|
|
144
|
+
<VInput
|
|
145
|
+
v-bind="{ ...inputProps, ...rootAttrs }"
|
|
146
|
+
:model-value="modelValue"
|
|
147
|
+
:hide-details="props.hideDetails"
|
|
148
|
+
:class="[{
|
|
149
|
+
'v-text-field--prefixed': props.prefix,
|
|
150
|
+
'v-text-field--suffixed': props.suffix,
|
|
151
|
+
'v-text-field--flush-details': ['plain', 'underlined'].includes(props.variant),
|
|
152
|
+
}, props.class]"
|
|
153
|
+
class="position-relative v-text-field"
|
|
154
|
+
:style="props.style"
|
|
155
|
+
>
|
|
156
|
+
<template #default="{ id, isDirty, isValid, isDisabled, isReadonly }">
|
|
157
|
+
<!-- v-field -->
|
|
158
|
+
<VField
|
|
159
|
+
v-bind="{ ...fieldProps, label: undefined }"
|
|
160
|
+
:id="id.value"
|
|
161
|
+
role="textbox"
|
|
162
|
+
:active="focused || isDirty.value || isCalendarOpen"
|
|
163
|
+
:focused="focused || isCalendarOpen"
|
|
164
|
+
:dirty="isDirty.value || props.dirty"
|
|
165
|
+
:error="isValid.value === false"
|
|
166
|
+
:disabled="isDisabled.value"
|
|
167
|
+
@click:clear="onClear"
|
|
168
|
+
>
|
|
169
|
+
<template #default="{ props: vFieldProps }">
|
|
170
|
+
<div v-bind="vFieldProps">
|
|
171
|
+
<!-- flat-picker -->
|
|
172
|
+
<FlatPickr
|
|
173
|
+
v-if="!isInlinePicker"
|
|
174
|
+
v-bind="compAttrs"
|
|
175
|
+
ref="refFlatPicker"
|
|
176
|
+
:model-value="modelValue"
|
|
177
|
+
:placeholder="props.placeholder"
|
|
178
|
+
:readonly="isReadonly.value"
|
|
179
|
+
class="flat-picker-custom-style h-100 w-100"
|
|
180
|
+
:disabled="isReadonly.value"
|
|
181
|
+
@on-open="isCalendarOpen = true"
|
|
182
|
+
@on-close="isCalendarOpen = false"
|
|
183
|
+
@update:model-value="emitModelValue"
|
|
184
|
+
/>
|
|
185
|
+
|
|
186
|
+
<!-- simple input for inline prop -->
|
|
187
|
+
<input
|
|
188
|
+
v-if="isInlinePicker"
|
|
189
|
+
:value="modelValue"
|
|
190
|
+
:placeholder="props.placeholder"
|
|
191
|
+
:readonly="isReadonly.value"
|
|
192
|
+
class="flat-picker-custom-style h-100 w-100"
|
|
193
|
+
type="text"
|
|
194
|
+
>
|
|
195
|
+
</div>
|
|
196
|
+
</template>
|
|
197
|
+
</VField>
|
|
198
|
+
</template>
|
|
199
|
+
</VInput>
|
|
200
|
+
|
|
201
|
+
<!-- flat picker for inline props -->
|
|
202
|
+
<FlatPickr
|
|
203
|
+
v-if="isInlinePicker"
|
|
204
|
+
v-bind="compAttrs"
|
|
205
|
+
ref="refFlatPicker"
|
|
206
|
+
:model-value="modelValue"
|
|
207
|
+
@update:model-value="emitModelValue"
|
|
208
|
+
@on-open="isCalendarOpen = true"
|
|
209
|
+
@on-close="isCalendarOpen = false"
|
|
210
|
+
/>
|
|
211
|
+
</div>
|
|
212
|
+
</template>
|
|
213
|
+
|
|
214
|
+
<style lang="scss">
|
|
215
|
+
@use "@core/scss/template/mixins" as templateMixins;
|
|
216
|
+
|
|
217
|
+
/* stylelint-disable no-descending-specificity */
|
|
218
|
+
@use "flatpickr/dist/flatpickr.css";
|
|
219
|
+
@use "@core/scss/base/mixins";
|
|
220
|
+
|
|
221
|
+
.flat-picker-custom-style {
|
|
222
|
+
position: absolute;
|
|
223
|
+
color: inherit;
|
|
224
|
+
inline-size: 100%;
|
|
225
|
+
inset: 0;
|
|
226
|
+
outline: none;
|
|
227
|
+
padding-block: 0;
|
|
228
|
+
padding-inline: var(--v-field-padding-start);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
$heading-color: rgba(var(--v-theme-on-background), var(--v-high-emphasis-opacity));
|
|
232
|
+
$body-color: rgba(var(--v-theme-on-background), var(--v-high-emphasis-opacity));
|
|
233
|
+
$disabled-color: rgba(var(--v-theme-on-background), var(--v-disabled-opacity));
|
|
234
|
+
|
|
235
|
+
// hide the input when your picker is inline
|
|
236
|
+
input[altinputclass="inlinePicker"] {
|
|
237
|
+
display: none;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.flatpickr-time input.flatpickr-hour {
|
|
241
|
+
font-weight: 400;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.flatpickr-calendar {
|
|
245
|
+
@include mixins.elevation(6);
|
|
246
|
+
|
|
247
|
+
background-color: rgb(var(--v-theme-surface));
|
|
248
|
+
inline-size: 16.875rem;
|
|
249
|
+
|
|
250
|
+
.flatpickr-day:focus {
|
|
251
|
+
border-color: rgba(var(--v-border-color), var(--v-border-opacity));
|
|
252
|
+
background: rgba(var(--v-border-color), var(--v-border-opacity));
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.flatpickr-rContainer {
|
|
256
|
+
.flatpickr-weekdays {
|
|
257
|
+
block-size: 1.25rem;
|
|
258
|
+
padding-inline: 0.5625rem;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.flatpickr-days {
|
|
262
|
+
min-inline-size: 16.875rem;
|
|
263
|
+
|
|
264
|
+
.dayContainer {
|
|
265
|
+
justify-content: center !important;
|
|
266
|
+
inline-size: 16.875rem;
|
|
267
|
+
min-inline-size: 16.875rem;
|
|
268
|
+
padding-block: 0.75rem 0.5rem;
|
|
269
|
+
|
|
270
|
+
.flatpickr-day {
|
|
271
|
+
block-size: 2.25rem;
|
|
272
|
+
font-size: 0.9375rem;
|
|
273
|
+
line-height: 2.25rem;
|
|
274
|
+
margin-block-start: 0 !important;
|
|
275
|
+
max-inline-size: 2.25rem;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.flatpickr-day {
|
|
282
|
+
color: $body-color;
|
|
283
|
+
|
|
284
|
+
&.today {
|
|
285
|
+
&:not(.selected) {
|
|
286
|
+
border: none !important;
|
|
287
|
+
background: rgba(var(--v-theme-primary), 0.24);
|
|
288
|
+
color: rgb(var(--v-theme-primary));
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
&:hover {
|
|
292
|
+
border: none !important;
|
|
293
|
+
background: rgba(var(--v-theme-primary), 0.24);
|
|
294
|
+
color: rgb(var(--v-theme-primary));
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
&.selected,
|
|
299
|
+
&.selected:hover {
|
|
300
|
+
border-color: rgb(var(--v-theme-primary));
|
|
301
|
+
background: rgb(var(--v-theme-primary));
|
|
302
|
+
color: rgb(var(--v-theme-on-primary));
|
|
303
|
+
|
|
304
|
+
@include templateMixins.custom-elevation(var(--v-theme-primary), "sm");
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
&.inRange,
|
|
308
|
+
&.inRange:hover {
|
|
309
|
+
border: none;
|
|
310
|
+
background: rgba(var(--v-theme-primary), var(--v-activated-opacity)) !important;
|
|
311
|
+
box-shadow: none !important;
|
|
312
|
+
color: rgb(var(--v-theme-primary));
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
&.startRange {
|
|
316
|
+
@include templateMixins.custom-elevation(var(--v-theme-primary), "sm");
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
&.endRange {
|
|
320
|
+
@include templateMixins.custom-elevation(var(--v-theme-primary), "sm");
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
&.startRange,
|
|
324
|
+
&.endRange,
|
|
325
|
+
&.startRange:hover,
|
|
326
|
+
&.endRange:hover {
|
|
327
|
+
border-color: rgb(var(--v-theme-primary));
|
|
328
|
+
background: rgb(var(--v-theme-primary));
|
|
329
|
+
color: rgb(var(--v-theme-on-primary));
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
&.selected.startRange + .endRange:not(:nth-child(7n + 1)),
|
|
333
|
+
&.startRange.startRange + .endRange:not(:nth-child(7n + 1)),
|
|
334
|
+
&.endRange.startRange + .endRange:not(:nth-child(7n + 1)) {
|
|
335
|
+
box-shadow: -10px 0 0 rgb(var(--v-theme-primary));
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
&.flatpickr-disabled,
|
|
339
|
+
&.prevMonthDay:not(.startRange,.inRange),
|
|
340
|
+
&.nextMonthDay:not(.endRange,.inRange) {
|
|
341
|
+
opacity: var(--v-disabled-opacity);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
&:hover {
|
|
345
|
+
border-color: transparent;
|
|
346
|
+
background: rgba(var(--v-theme-on-surface), 0.06);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.flatpickr-weekday {
|
|
351
|
+
color: $heading-color;
|
|
352
|
+
font-size: 0.8125rem;
|
|
353
|
+
font-weight: 400;
|
|
354
|
+
inline-size: 2.25rem;
|
|
355
|
+
line-height: 1.25rem;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.flatpickr-days {
|
|
359
|
+
inline-size: 16.875rem;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
&::after,
|
|
363
|
+
&::before {
|
|
364
|
+
display: none;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.flatpickr-months {
|
|
368
|
+
.flatpickr-prev-month,
|
|
369
|
+
.flatpickr-next-month {
|
|
370
|
+
color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity));
|
|
371
|
+
fill: $body-color;
|
|
372
|
+
|
|
373
|
+
&:hover {
|
|
374
|
+
color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity));
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
&:hover i,
|
|
378
|
+
&:hover svg {
|
|
379
|
+
fill: $body-color;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.flatpickr-current-month span.cur-month {
|
|
385
|
+
font-weight: 300;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
&.open {
|
|
389
|
+
// Open calendar above overlay
|
|
390
|
+
z-index: 2401;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
&.hasTime.open {
|
|
394
|
+
.flatpickr-innerContainer + .flatpickr-time {
|
|
395
|
+
block-size: auto;
|
|
396
|
+
border-block-start: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.flatpickr-time {
|
|
400
|
+
border-block-start: none;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.flatpickr-hour,
|
|
404
|
+
.flatpickr-minute,
|
|
405
|
+
.flatpickr-am-pm {
|
|
406
|
+
font-size: 0.9375rem;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.v-theme--dark .flatpickr-calendar {
|
|
412
|
+
box-shadow: 0 3px 14px 0 rgb(15 20 34 / 38%);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
// Time picker hover & focus bg color
|
|
416
|
+
.flatpickr-time input:hover,
|
|
417
|
+
.flatpickr-time .flatpickr-am-pm:hover,
|
|
418
|
+
.flatpickr-time input:focus,
|
|
419
|
+
.flatpickr-time .flatpickr-am-pm:focus {
|
|
420
|
+
background: transparent;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
// Time picker
|
|
424
|
+
.flatpickr-time {
|
|
425
|
+
.flatpickr-am-pm,
|
|
426
|
+
.flatpickr-time-separator,
|
|
427
|
+
input {
|
|
428
|
+
color: $body-color;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.numInputWrapper {
|
|
432
|
+
span {
|
|
433
|
+
&.arrowUp {
|
|
434
|
+
&::after {
|
|
435
|
+
border-block-end-color: rgb(var(--v-border-color));
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
&.arrowDown {
|
|
440
|
+
&::after {
|
|
441
|
+
border-block-start-color: rgb(var(--v-border-color));
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
// Added bg color for flatpickr input only as it has default readonly attribute
|
|
449
|
+
.flatpickr-input[readonly],
|
|
450
|
+
.flatpickr-input ~ .form-control[readonly],
|
|
451
|
+
.flatpickr-human-friendly[readonly] {
|
|
452
|
+
background-color: inherit;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
// week sections
|
|
456
|
+
.flatpickr-weekdays {
|
|
457
|
+
margin-block: 0.375rem;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
// Month and year section
|
|
461
|
+
.flatpickr-current-month {
|
|
462
|
+
.flatpickr-monthDropdown-months {
|
|
463
|
+
appearance: none;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.flatpickr-monthDropdown-months,
|
|
467
|
+
.numInputWrapper {
|
|
468
|
+
padding: 2px;
|
|
469
|
+
border-radius: 4px;
|
|
470
|
+
color: $heading-color;
|
|
471
|
+
font-size: 0.9375rem;
|
|
472
|
+
font-weight: 400;
|
|
473
|
+
line-height: 1.375rem;
|
|
474
|
+
transition: all 0.15s ease-out;
|
|
475
|
+
|
|
476
|
+
span {
|
|
477
|
+
display: none;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.flatpickr-monthDropdown-month {
|
|
481
|
+
background-color: rgb(var(--v-theme-surface));
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.numInput.cur-year {
|
|
485
|
+
font-weight: 400;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.flatpickr-day.flatpickr-disabled,
|
|
491
|
+
.flatpickr-day.flatpickr-disabled:hover {
|
|
492
|
+
color: $body-color;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.flatpickr-months {
|
|
496
|
+
padding-block: 0.75rem;
|
|
497
|
+
padding-inline: 1rem;
|
|
498
|
+
|
|
499
|
+
.flatpickr-prev-month,
|
|
500
|
+
.flatpickr-next-month {
|
|
501
|
+
display: flex;
|
|
502
|
+
align-items: center;
|
|
503
|
+
justify-content: center;
|
|
504
|
+
padding: 0;
|
|
505
|
+
border-radius: 5rem;
|
|
506
|
+
background: rgba(var(--v-theme-on-surface), var(--v-selected-opacity));
|
|
507
|
+
block-size: 1.875rem;
|
|
508
|
+
inline-size: 1.875rem;
|
|
509
|
+
inset-block-start: 15px !important;
|
|
510
|
+
|
|
511
|
+
&.flatpickr-disabled {
|
|
512
|
+
display: inline;
|
|
513
|
+
opacity: var(--v-disabled-opacity);
|
|
514
|
+
pointer-events: none;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.flatpickr-next-month {
|
|
519
|
+
inset-inline-end: 1.05rem !important;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.flatpickr-prev-month {
|
|
523
|
+
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
524
|
+
right: 3.65rem;
|
|
525
|
+
left: unset !important;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.flatpickr-month {
|
|
529
|
+
display: flex;
|
|
530
|
+
align-items: center;
|
|
531
|
+
block-size: 2.125rem;
|
|
532
|
+
|
|
533
|
+
.flatpickr-current-month {
|
|
534
|
+
display: flex;
|
|
535
|
+
align-items: center;
|
|
536
|
+
padding: 0;
|
|
537
|
+
block-size: 1.75rem;
|
|
538
|
+
inset-inline-start: 0;
|
|
539
|
+
text-align: start;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
</style>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
defineOptions({
|
|
3
|
+
name: 'AppSelect',
|
|
4
|
+
inheritAttrs: false,
|
|
5
|
+
})
|
|
6
|
+
|
|
7
|
+
const elementId = computed(() => {
|
|
8
|
+
const attrs = useAttrs()
|
|
9
|
+
const _elementIdToken = attrs.id || attrs.label
|
|
10
|
+
|
|
11
|
+
return _elementIdToken ? `app-select-${_elementIdToken}-${Math.random().toString(36).slice(2, 7)}` : undefined
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
const label = computed(() => useAttrs().label as string | undefined)
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<div
|
|
19
|
+
class="app-select flex-grow-1"
|
|
20
|
+
:class="$attrs.class"
|
|
21
|
+
>
|
|
22
|
+
<VLabel
|
|
23
|
+
v-if="label"
|
|
24
|
+
:for="elementId"
|
|
25
|
+
class="mb-1 text-body-2"
|
|
26
|
+
style="line-height: 15px;"
|
|
27
|
+
:text="label"
|
|
28
|
+
/>
|
|
29
|
+
<VSelect
|
|
30
|
+
v-bind="{
|
|
31
|
+
...$attrs,
|
|
32
|
+
class: null,
|
|
33
|
+
label: undefined,
|
|
34
|
+
variant: 'outlined',
|
|
35
|
+
id: elementId,
|
|
36
|
+
menuProps: { contentClass: ['app-inner-list', 'app-select__content', 'v-select__content', $attrs.multiple !== undefined ? 'v-list-select-multiple' : ''] },
|
|
37
|
+
}"
|
|
38
|
+
>
|
|
39
|
+
<template
|
|
40
|
+
v-for="(_, name) in $slots"
|
|
41
|
+
#[name]="slotProps"
|
|
42
|
+
>
|
|
43
|
+
<slot
|
|
44
|
+
:name="name"
|
|
45
|
+
v-bind="slotProps || {}"
|
|
46
|
+
/>
|
|
47
|
+
</template>
|
|
48
|
+
</VSelect>
|
|
49
|
+
</div>
|
|
50
|
+
</template>
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
defineOptions({
|
|
3
|
+
name: 'AppTextField',
|
|
4
|
+
inheritAttrs: false,
|
|
5
|
+
})
|
|
6
|
+
|
|
7
|
+
const inputRef = ref<any>(null)
|
|
8
|
+
|
|
9
|
+
const elementId = computed(() => {
|
|
10
|
+
const attrs = useAttrs()
|
|
11
|
+
const _elementIdToken = attrs.id || attrs.label
|
|
12
|
+
|
|
13
|
+
return _elementIdToken ? `app-text-field-${_elementIdToken}-${Math.random().toString(36).slice(2, 7)}` : undefined
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
const hasError = computed(() => {
|
|
17
|
+
const input = inputRef.value
|
|
18
|
+
const count = input?.errorMessages.length || 0
|
|
19
|
+
|
|
20
|
+
return count > 0
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
const errMessages = computed(() => {
|
|
24
|
+
return inputRef.value?.errorMessages || []
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
const error = computed(() => {
|
|
28
|
+
return inputRef.value?.error
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
const dirty = computed(() => {
|
|
32
|
+
return inputRef.value?.dirty
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
const label = computed(() => useAttrs().label as string | undefined)
|
|
36
|
+
|
|
37
|
+
defineExpose({
|
|
38
|
+
hasError,
|
|
39
|
+
errMessages,
|
|
40
|
+
error,
|
|
41
|
+
dirty,
|
|
42
|
+
})
|
|
43
|
+
</script>
|
|
44
|
+
|
|
45
|
+
<template>
|
|
46
|
+
<div
|
|
47
|
+
class="app-text-field flex-grow-1"
|
|
48
|
+
:class="$attrs.class"
|
|
49
|
+
>
|
|
50
|
+
<VLabel
|
|
51
|
+
v-if="label"
|
|
52
|
+
:for="elementId"
|
|
53
|
+
class="mb-1 text-body-2 text-wrap"
|
|
54
|
+
style="line-height: 15px;"
|
|
55
|
+
:text="label"
|
|
56
|
+
/>
|
|
57
|
+
<VTextField
|
|
58
|
+
ref="inputRef"
|
|
59
|
+
v-bind="{
|
|
60
|
+
...$attrs,
|
|
61
|
+
class: null,
|
|
62
|
+
label: undefined,
|
|
63
|
+
variant: 'outlined',
|
|
64
|
+
id: elementId,
|
|
65
|
+
}"
|
|
66
|
+
>
|
|
67
|
+
<template
|
|
68
|
+
v-for="(_, name) in $slots"
|
|
69
|
+
#[name]="slotProps"
|
|
70
|
+
>
|
|
71
|
+
<slot
|
|
72
|
+
:name="name"
|
|
73
|
+
v-bind="slotProps || {}"
|
|
74
|
+
/>
|
|
75
|
+
</template>
|
|
76
|
+
</VTextField>
|
|
77
|
+
</div>
|
|
78
|
+
</template>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
defineOptions({
|
|
3
|
+
name: 'AppTextarea',
|
|
4
|
+
inheritAttrs: false,
|
|
5
|
+
})
|
|
6
|
+
|
|
7
|
+
// const { class: _class, label, variant: _, ...restAttrs } = useAttrs()
|
|
8
|
+
|
|
9
|
+
const elementId = computed (() => {
|
|
10
|
+
const attrs = useAttrs()
|
|
11
|
+
const _elementIdToken = attrs.id || attrs.label
|
|
12
|
+
|
|
13
|
+
return _elementIdToken ? `app-textarea-${_elementIdToken}-${Math.random().toString(36).slice(2, 7)}` : undefined
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
const label = computed(() => useAttrs().label as string | undefined)
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<div
|
|
21
|
+
class="app-textarea flex-grow-1"
|
|
22
|
+
:class="$attrs.class"
|
|
23
|
+
>
|
|
24
|
+
<VLabel
|
|
25
|
+
v-if="label"
|
|
26
|
+
:for="elementId"
|
|
27
|
+
class="mb-1 text-body-2"
|
|
28
|
+
:text="label"
|
|
29
|
+
/>
|
|
30
|
+
<VTextarea
|
|
31
|
+
v-bind="{
|
|
32
|
+
...$attrs,
|
|
33
|
+
class: null,
|
|
34
|
+
label: undefined,
|
|
35
|
+
variant: 'outlined',
|
|
36
|
+
id: elementId,
|
|
37
|
+
}"
|
|
38
|
+
>
|
|
39
|
+
<template
|
|
40
|
+
v-for="(_, name) in $slots"
|
|
41
|
+
#[name]="slotProps"
|
|
42
|
+
>
|
|
43
|
+
<slot
|
|
44
|
+
:name="name"
|
|
45
|
+
v-bind="slotProps || {}"
|
|
46
|
+
/>
|
|
47
|
+
</template>
|
|
48
|
+
</VTextarea>
|
|
49
|
+
</div>
|
|
50
|
+
</template>
|