infinity-forge 0.3.4 → 0.3.5
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 +4 -4
- package/dist/sites/components/brands-carousel/glider-configs.d.ts +39 -0
- package/dist/sites/components/brands-carousel/glider-configs.js +41 -0
- package/dist/sites/components/brands-carousel/glider-configs.js.map +1 -0
- package/dist/sites/components/brands-carousel/index.d.ts +2 -1
- package/dist/sites/components/brands-carousel/index.js +16 -3
- package/dist/sites/components/brands-carousel/index.js.map +1 -1
- package/dist/sites/components/brands-carousel/interfaces.d.ts +2 -1
- package/dist/sites/components/brands-carousel/interfaces.js +0 -1
- package/dist/sites/components/brands-carousel/interfaces.js.map +1 -1
- package/dist/sites/components/brands-carousel/styles.js +1 -1
- package/dist/sites/components/brands-carousel/styles.js.map +1 -1
- package/dist/sites/components/carousel/component.js +3 -1
- package/dist/sites/components/carousel/component.js.map +1 -1
- package/dist/sites/components/carousel/interfaces.d.ts +1 -0
- package/dist/sites/components/carousel/versions/version-01/component-01.d.ts +1 -1
- package/dist/sites/components/carousel/versions/version-01/component-01.js +17 -2
- package/dist/sites/components/carousel/versions/version-01/component-01.js.map +1 -1
- package/dist/sites/context/configs/scripts/acept-cookies/index.js +0 -2
- package/dist/sites/context/configs/scripts/acept-cookies/index.js.map +1 -1
- package/dist/sites/hook/index.d.ts +3 -0
- package/dist/{system/components/layout/menu/components → sites/hook}/index.js +3 -2
- package/dist/sites/hook/index.js.map +1 -0
- package/dist/sites/hook/use-footer.d.ts +3 -0
- package/dist/sites/hook/use-footer.js +26 -0
- package/dist/sites/hook/use-footer.js.map +1 -0
- package/dist/sites/hook/use-header.d.ts +3 -0
- package/dist/sites/hook/use-header.js +26 -0
- package/dist/sites/hook/use-header.js.map +1 -0
- package/dist/sites/hook/useScreen.d.ts +5 -0
- package/dist/sites/hook/useScreen.js +36 -0
- package/dist/sites/hook/useScreen.js.map +1 -0
- package/dist/system/container/admin/auth/container.d.ts +3 -0
- package/dist/system/container/admin/auth/container.js +11 -0
- package/dist/system/container/admin/auth/container.js.map +1 -0
- package/dist/system/container/admin/auth/index.d.ts +2 -0
- package/dist/system/{components/data/cards → container/admin/auth}/index.js +2 -1
- package/dist/system/container/admin/auth/index.js.map +1 -0
- package/dist/system/container/admin/auth/types.d.ts +3 -0
- package/dist/system/container/admin/auth/types.js +7 -0
- package/dist/system/container/admin/auth/types.js.map +1 -0
- package/dist/system/container/admin/index.d.ts +1 -0
- package/dist/system/{infra/server → container/admin}/index.js +1 -1
- package/dist/system/container/admin/index.js.map +1 -0
- package/dist/system/container/decorators/authorize-http-client-decorator.js +6 -7
- package/dist/system/container/decorators/authorize-http-client-decorator.js.map +1 -1
- package/dist/system/container/infra/container.js +2 -4
- package/dist/system/container/infra/container.js.map +1 -1
- package/dist/system/container/infra/make-api-url.js +1 -1
- package/dist/system/container/infra/make-api-url.js.map +1 -1
- package/dist/system/container/main.d.ts +3 -2
- package/dist/system/container/main.js +7 -2
- package/dist/system/container/main.js.map +1 -1
- package/dist/system/container/types.d.ts +3 -0
- package/dist/system/container/types.js +17 -0
- package/dist/system/container/types.js.map +1 -0
- package/dist/system/data/use-cases/auth/remote-auth-admin.d.ts +5 -5
- package/dist/system/data/use-cases/auth/remote-auth-admin.js +8 -16
- package/dist/system/data/use-cases/auth/remote-auth-admin.js.map +1 -1
- package/dist/system/domain/generics/index.d.ts +2 -0
- package/dist/system/domain/{entities/users → generics}/index.js +2 -1
- package/dist/system/domain/generics/index.js.map +1 -0
- package/dist/system/domain/generics/list.d.ts +3 -0
- package/dist/system/{infra/server/headers.js → domain/generics/list.js} +1 -1
- package/dist/system/domain/generics/list.js.map +1 -0
- package/dist/system/domain/generics/return-type.d.ts +8 -0
- package/dist/system/{components/data/page-wrapper/interfaces.js → domain/generics/return-type.js} +1 -1
- package/dist/system/domain/generics/return-type.js.map +1 -0
- package/dist/system/domain/index.d.ts +1 -1
- package/dist/system/domain/index.js +1 -1
- package/dist/system/domain/protocols/cache/cache-keys.d.ts +2 -3
- package/dist/system/domain/protocols/http/errors/system-errors-model/validation-errors-model.d.ts +5 -5
- package/dist/system/domain/protocols/http/errors/system-errors-model/validation-errors-model.js.map +1 -1
- package/dist/system/domain/use-cases/auth/admin/auth-admin.d.ts +5 -11
- package/dist/system/index.d.ts +4 -0
- package/dist/system/index.js +4 -0
- package/dist/system/index.js.map +1 -1
- package/dist/system/infra/cache/cookie-storage-adapter.js +2 -32
- package/dist/system/infra/cache/cookie-storage-adapter.js.map +1 -1
- package/dist/system/infra/http/axios-http-client.d.ts +2 -2
- package/dist/system/infra/http/axios-http-client.js +33 -31
- package/dist/system/infra/http/axios-http-client.js.map +1 -1
- package/dist/system/infra/index.d.ts +1 -2
- package/dist/system/infra/index.js +1 -2
- package/dist/system/infra/index.js.map +1 -1
- package/dist/system/presentation/components/data/index.d.ts +0 -1
- package/dist/system/presentation/components/data/index.js +0 -1
- package/dist/system/presentation/components/data/index.js.map +1 -1
- package/dist/system/presentation/components/data/logo/index.js +1 -1
- package/dist/system/presentation/components/data/logo/index.js.map +1 -1
- package/dist/system/presentation/components/data/logo/styles.js +1 -1
- package/dist/system/presentation/components/data/logo/styles.js.map +1 -1
- package/dist/system/presentation/components/data/overlay/styles.js +2 -2
- package/dist/system/presentation/components/data/overlay/styles.js.map +1 -1
- package/dist/system/presentation/components/layout/component.js +1 -1
- package/dist/system/presentation/components/layout/component.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +29 -21
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js +26 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +2 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js +2 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/styles.js +3 -2
- package/dist/system/presentation/components/layout/header/components/menu-right/styles.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +1 -1
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/styles.js +1 -1
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/styles.js.map +1 -1
- package/dist/system/presentation/components/layout/header/version-01/index.js +1 -1
- package/dist/system/presentation/components/layout/header/version-01/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/version-01/styles.js +1 -1
- package/dist/system/presentation/components/layout/header/version-01/styles.js.map +1 -1
- package/dist/system/presentation/components/layout/index.d.ts +3 -3
- package/dist/system/presentation/components/layout/menu/components/menu/index.js +8 -16
- package/dist/system/presentation/components/layout/menu/components/menu/index.js.map +1 -1
- package/dist/system/presentation/components/layout/menu/components/menu/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/menu/components/menu/styles.js +4 -3
- package/dist/system/presentation/components/layout/menu/components/menu/styles.js.map +1 -1
- package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js +23 -15
- package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js.map +1 -1
- package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.js +1 -1
- package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.js.map +1 -1
- package/dist/system/presentation/components/layout/menu/version-01/index.js +1 -1
- package/dist/system/presentation/components/layout/menu/version-01/index.js.map +1 -1
- package/dist/system/presentation/components/layout/menu/version-01/styles.js +1 -1
- package/dist/system/presentation/components/layout/menu/version-01/styles.js.map +1 -1
- package/dist/system/presentation/components/layout/styles.js +1 -1
- package/dist/system/presentation/components/layout/styles.js.map +1 -1
- package/dist/system/presentation/configs/menu.d.ts +15 -9
- package/dist/system/presentation/configs/menu.js +127 -7
- package/dist/system/presentation/configs/menu.js.map +1 -1
- package/dist/system/presentation/context/auth/authenticated/index.d.ts +3 -0
- package/dist/system/presentation/context/auth/authenticated/index.js +15 -0
- package/dist/system/presentation/context/auth/authenticated/index.js.map +1 -0
- package/dist/system/presentation/context/auth/context.d.ts +12 -0
- package/dist/system/presentation/context/auth/context.js +113 -0
- package/dist/system/presentation/context/auth/context.js.map +1 -0
- package/dist/system/presentation/context/auth/index.d.ts +5 -0
- package/dist/system/{components/layout → presentation/context/auth}/index.js +5 -3
- package/dist/system/presentation/context/auth/index.js.map +1 -0
- package/dist/system/presentation/context/auth/login/index.d.ts +1 -0
- package/dist/system/presentation/{components/data/sign-in → context/auth/login}/index.js +6 -6
- package/dist/system/presentation/context/auth/login/index.js.map +1 -0
- package/dist/system/{hooks/ui/use-table/components/table → presentation/context/auth/login}/styles.d.ts +1 -1
- package/dist/system/presentation/context/auth/login/styles.js +14 -0
- package/dist/system/presentation/context/auth/login/styles.js.map +1 -0
- package/dist/system/{components/layout/component.d.ts → presentation/context/auth/private-page/index.d.ts} +1 -1
- package/dist/system/presentation/context/auth/private-page/index.js +17 -0
- package/dist/system/presentation/context/auth/private-page/index.js.map +1 -0
- package/dist/system/presentation/context/auth/unauthenticated/index.d.ts +3 -0
- package/dist/system/presentation/context/auth/unauthenticated/index.js +15 -0
- package/dist/system/presentation/context/auth/unauthenticated/index.js.map +1 -0
- package/dist/system/presentation/context/index.d.ts +1 -0
- package/dist/system/{domain/entities/roles → presentation/context}/index.js +1 -1
- package/dist/system/presentation/context/index.js.map +1 -0
- package/dist/system/presentation/index.d.ts +1 -0
- package/dist/system/presentation/index.js +1 -0
- package/dist/system/presentation/index.js.map +1 -1
- package/dist/ui/components/form/handler/form-handler/index.js +1 -1
- package/dist/ui/components/form/handler/form-handler/index.js.map +1 -1
- package/dist/ui/components/form/handler/index.js +1 -1
- package/dist/ui/components/form/handler/index.js.map +1 -1
- package/dist/ui/components/form/index.d.ts +1 -1
- package/dist/ui/components/form/index.js +1 -1
- package/dist/ui/components/form/index.js.map +1 -1
- package/dist/ui/components/form/input/index.js +2 -10
- package/dist/ui/components/form/input/index.js.map +1 -1
- package/dist/ui/components/form/input-control/index.d.ts +1 -1
- package/dist/ui/components/form/input-control/index.js +2 -2
- package/dist/ui/components/form/input-control/index.js.map +1 -1
- package/dist/ui/components/form/input-cpf-cnpj/index.js +1 -4
- package/dist/ui/components/form/input-cpf-cnpj/index.js.map +1 -1
- package/dist/ui/components/form/input-password/index.js +4 -4
- package/dist/ui/components/form/input-password/index.js.map +1 -1
- package/dist/ui/components/form/input-switch/index.d.ts +2 -0
- package/dist/ui/components/form/input-switch/index.js +24 -0
- package/dist/ui/components/form/input-switch/index.js.map +1 -0
- package/dist/ui/components/form/interfaces.d.ts +0 -2
- package/dist/ui/components/form/radio/index.js +2 -3
- package/dist/ui/components/form/radio/index.js.map +1 -1
- package/dist/ui/components/form/select/index.js +1 -1
- package/dist/ui/components/form/select/index.js.map +1 -1
- package/dist/ui/components/form/textarea/index.js +2 -5
- package/dist/ui/components/form/textarea/index.js.map +1 -1
- package/dist/ui/components/index.d.ts +2 -1
- package/dist/ui/components/index.js +1 -0
- package/dist/ui/components/index.js.map +1 -1
- package/dist/ui/components/sidebar/index.d.ts +2 -0
- package/dist/{system/components/layout/header/components/menu-right → ui/components/sidebar}/index.js +12 -9
- package/dist/ui/components/sidebar/index.js.map +1 -0
- package/dist/ui/components/sidebar/interfaces.d.ts +8 -0
- package/dist/ui/components/sidebar/interfaces.js.map +1 -0
- package/dist/ui/components/sidebar/styles.d.ts +10 -0
- package/dist/ui/components/sidebar/styles.js +16 -0
- package/dist/ui/components/sidebar/styles.js.map +1 -0
- package/dist/ui/icons/index.d.ts +7 -0
- package/dist/ui/icons/index.js +7 -0
- package/dist/ui/icons/index.js.map +1 -1
- package/dist/ui/icons/render/File.js +1 -1
- package/dist/ui/icons/render/File.js.map +1 -1
- package/dist/ui/icons/render/calendar.d.ts +2 -0
- package/dist/ui/icons/render/calendar.js +10 -0
- package/dist/ui/icons/render/calendar.js.map +1 -0
- package/dist/ui/icons/render/chat.d.ts +2 -0
- package/dist/ui/icons/render/chat.js +10 -0
- package/dist/ui/icons/render/chat.js.map +1 -0
- package/dist/ui/icons/render/exclamation.d.ts +2 -0
- package/dist/ui/icons/render/exclamation.js +10 -0
- package/dist/ui/icons/render/exclamation.js.map +1 -0
- package/dist/ui/icons/render/image.d.ts +2 -0
- package/dist/ui/icons/render/image.js +10 -0
- package/dist/ui/icons/render/image.js.map +1 -0
- package/dist/ui/icons/render/keyboard-right-arrow.d.ts +2 -0
- package/dist/ui/icons/render/keyboard-right-arrow.js +10 -0
- package/dist/ui/icons/render/keyboard-right-arrow.js.map +1 -0
- package/dist/ui/icons/render/shopping.d.ts +2 -0
- package/dist/ui/icons/render/shopping.js +10 -0
- package/dist/ui/icons/render/shopping.js.map +1 -0
- package/package.json +1 -1
- package/dist/sites/components/counter/componente.stories.d.ts +0 -3
- package/dist/sites/components/counter/componente.stories.js +0 -32
- package/dist/sites/components/counter/componente.stories.js.map +0 -1
- package/dist/sites/components/counter/versions/version-01/component.stories.d.ts +0 -13
- package/dist/sites/components/counter/versions/version-01/component.stories.js +0 -32
- package/dist/sites/components/counter/versions/version-01/component.stories.js.map +0 -1
- package/dist/sites/components/header-link/componente.stories.d.ts +0 -3
- package/dist/sites/components/header-link/componente.stories.js +0 -41
- package/dist/sites/components/header-link/componente.stories.js.map +0 -1
- package/dist/sites/components/mvv/componente.stories.d.ts +0 -3
- package/dist/sites/components/mvv/componente.stories.js +0 -30
- package/dist/sites/components/mvv/componente.stories.js.map +0 -1
- package/dist/sites/components/mvv/versions/version-01/component.stories.d.ts +0 -3
- package/dist/sites/components/mvv/versions/version-01/component.stories.js +0 -27
- package/dist/sites/components/mvv/versions/version-01/component.stories.js.map +0 -1
- package/dist/system/components/data/avatar/index.d.ts +0 -4
- package/dist/system/components/data/avatar/index.js +0 -57
- package/dist/system/components/data/avatar/index.js.map +0 -1
- package/dist/system/components/data/avatar/styles.d.ts +0 -2
- package/dist/system/components/data/avatar/styles.js +0 -14
- package/dist/system/components/data/avatar/styles.js.map +0 -1
- package/dist/system/components/data/cards/index.d.ts +0 -1
- package/dist/system/components/data/cards/index.js.map +0 -1
- package/dist/system/components/data/cards/message-card/index.d.ts +0 -2
- package/dist/system/components/data/cards/message-card/index.js +0 -37
- package/dist/system/components/data/cards/message-card/index.js.map +0 -1
- package/dist/system/components/data/cards/message-card/styles.d.ts +0 -2
- package/dist/system/components/data/cards/message-card/styles.js +0 -14
- package/dist/system/components/data/cards/message-card/styles.js.map +0 -1
- package/dist/system/components/data/index.d.ts +0 -9
- package/dist/system/components/data/index.js +0 -26
- package/dist/system/components/data/index.js.map +0 -1
- package/dist/system/components/data/logo/index.d.ts +0 -1
- package/dist/system/components/data/logo/index.js +0 -34
- package/dist/system/components/data/logo/index.js.map +0 -1
- package/dist/system/components/data/logo/styles.d.ts +0 -2
- package/dist/system/components/data/logo/styles.js +0 -14
- package/dist/system/components/data/logo/styles.js.map +0 -1
- package/dist/system/components/data/overlay/index.d.ts +0 -2
- package/dist/system/components/data/overlay/index.js +0 -35
- package/dist/system/components/data/overlay/index.js.map +0 -1
- package/dist/system/components/data/overlay/interfaces.d.ts +0 -7
- package/dist/system/components/data/overlay/interfaces.js.map +0 -1
- package/dist/system/components/data/overlay/styles.d.ts +0 -7
- package/dist/system/components/data/overlay/styles.js +0 -15
- package/dist/system/components/data/overlay/styles.js.map +0 -1
- package/dist/system/components/data/page-wrapper/index.d.ts +0 -2
- package/dist/system/components/data/page-wrapper/index.js +0 -35
- package/dist/system/components/data/page-wrapper/index.js.map +0 -1
- package/dist/system/components/data/page-wrapper/interfaces.d.ts +0 -5
- package/dist/system/components/data/page-wrapper/interfaces.js.map +0 -1
- package/dist/system/components/data/page-wrapper/styles.d.ts +0 -4
- package/dist/system/components/data/page-wrapper/styles.js +0 -14
- package/dist/system/components/data/page-wrapper/styles.js.map +0 -1
- package/dist/system/components/data/popover/index.d.ts +0 -2
- package/dist/system/components/data/popover/index.js +0 -10
- package/dist/system/components/data/popover/index.js.map +0 -1
- package/dist/system/components/data/popover/interfaces.d.ts +0 -8
- package/dist/system/components/data/popover/interfaces.js +0 -3
- package/dist/system/components/data/popover/interfaces.js.map +0 -1
- package/dist/system/components/data/sign-in/index.d.ts +0 -1
- package/dist/system/components/data/sign-in/index.js +0 -36
- package/dist/system/components/data/sign-in/index.js.map +0 -1
- package/dist/system/components/data/sign-in/styles.d.ts +0 -4
- package/dist/system/components/data/sign-in/styles.js +0 -14
- package/dist/system/components/data/sign-in/styles.js.map +0 -1
- package/dist/system/components/data/sign-up/index.d.ts +0 -1
- package/dist/system/components/data/sign-up/index.js +0 -36
- package/dist/system/components/data/sign-up/index.js.map +0 -1
- package/dist/system/components/data/sign-up/styles.d.ts +0 -4
- package/dist/system/components/data/sign-up/styles.js +0 -14
- package/dist/system/components/data/sign-up/styles.js.map +0 -1
- package/dist/system/components/data/skeleton/index.d.ts +0 -2
- package/dist/system/components/data/skeleton/index.js +0 -35
- package/dist/system/components/data/skeleton/index.js.map +0 -1
- package/dist/system/components/data/skeleton/interfaces.d.ts +0 -4
- package/dist/system/components/data/skeleton/interfaces.js +0 -3
- package/dist/system/components/data/skeleton/interfaces.js.map +0 -1
- package/dist/system/components/data/skeleton/styles.d.ts +0 -4
- package/dist/system/components/data/skeleton/styles.js +0 -14
- package/dist/system/components/data/skeleton/styles.js.map +0 -1
- package/dist/system/components/index.d.ts +0 -2
- package/dist/system/components/index.js +0 -19
- package/dist/system/components/index.js.map +0 -1
- package/dist/system/components/layout/component.js +0 -36
- package/dist/system/components/layout/component.js.map +0 -1
- package/dist/system/components/layout/header/components/index.d.ts +0 -2
- package/dist/system/components/layout/header/components/index.js +0 -19
- package/dist/system/components/layout/header/components/index.js.map +0 -1
- package/dist/system/components/layout/header/components/menu-right/index.d.ts +0 -1
- package/dist/system/components/layout/header/components/menu-right/index.js.map +0 -1
- package/dist/system/components/layout/header/components/menu-right/messages/content/index.d.ts +0 -2
- package/dist/system/components/layout/header/components/menu-right/messages/content/index.js +0 -54
- package/dist/system/components/layout/header/components/menu-right/messages/content/index.js.map +0 -1
- package/dist/system/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +0 -6
- package/dist/system/components/layout/header/components/menu-right/messages/content/interfaces.js +0 -3
- package/dist/system/components/layout/header/components/menu-right/messages/content/interfaces.js.map +0 -1
- package/dist/system/components/layout/header/components/menu-right/messages/content/styles.d.ts +0 -2
- package/dist/system/components/layout/header/components/menu-right/messages/content/styles.js +0 -14
- package/dist/system/components/layout/header/components/menu-right/messages/content/styles.js.map +0 -1
- package/dist/system/components/layout/header/components/menu-right/messages/index.d.ts +0 -1
- package/dist/system/components/layout/header/components/menu-right/messages/index.js +0 -31
- package/dist/system/components/layout/header/components/menu-right/messages/index.js.map +0 -1
- package/dist/system/components/layout/header/components/menu-right/messages/styles.d.ts +0 -2
- package/dist/system/components/layout/header/components/menu-right/messages/styles.js +0 -14
- package/dist/system/components/layout/header/components/menu-right/messages/styles.js.map +0 -1
- package/dist/system/components/layout/header/components/menu-right/notifications/index.d.ts +0 -1
- package/dist/system/components/layout/header/components/menu-right/notifications/index.js +0 -11
- package/dist/system/components/layout/header/components/menu-right/notifications/index.js.map +0 -1
- package/dist/system/components/layout/header/components/menu-right/notifications/styles.d.ts +0 -2
- package/dist/system/components/layout/header/components/menu-right/notifications/styles.js +0 -14
- package/dist/system/components/layout/header/components/menu-right/notifications/styles.js.map +0 -1
- package/dist/system/components/layout/header/components/menu-right/profile/content/index.d.ts +0 -1
- package/dist/system/components/layout/header/components/menu-right/profile/content/index.js +0 -56
- package/dist/system/components/layout/header/components/menu-right/profile/content/index.js.map +0 -1
- package/dist/system/components/layout/header/components/menu-right/profile/content/styles.d.ts +0 -2
- package/dist/system/components/layout/header/components/menu-right/profile/content/styles.js +0 -14
- package/dist/system/components/layout/header/components/menu-right/profile/content/styles.js.map +0 -1
- package/dist/system/components/layout/header/components/menu-right/profile/index.d.ts +0 -1
- package/dist/system/components/layout/header/components/menu-right/profile/index.js +0 -37
- package/dist/system/components/layout/header/components/menu-right/profile/index.js.map +0 -1
- package/dist/system/components/layout/header/components/menu-right/profile/styles.d.ts +0 -2
- package/dist/system/components/layout/header/components/menu-right/profile/styles.js +0 -14
- package/dist/system/components/layout/header/components/menu-right/profile/styles.js.map +0 -1
- package/dist/system/components/layout/header/components/menu-right/settings/index.d.ts +0 -1
- package/dist/system/components/layout/header/components/menu-right/settings/index.js +0 -42
- package/dist/system/components/layout/header/components/menu-right/settings/index.js.map +0 -1
- package/dist/system/components/layout/header/components/menu-right/settings/styles.d.ts +0 -2
- package/dist/system/components/layout/header/components/menu-right/settings/styles.js +0 -14
- package/dist/system/components/layout/header/components/menu-right/settings/styles.js.map +0 -1
- package/dist/system/components/layout/header/components/menu-right/styles.d.ts +0 -2
- package/dist/system/components/layout/header/components/menu-right/styles.js +0 -14
- package/dist/system/components/layout/header/components/menu-right/styles.js.map +0 -1
- package/dist/system/components/layout/header/components/search-modal/index.d.ts +0 -1
- package/dist/system/components/layout/header/components/search-modal/index.js +0 -39
- package/dist/system/components/layout/header/components/search-modal/index.js.map +0 -1
- package/dist/system/components/layout/header/components/search-modal/search-list/index.d.ts +0 -4
- package/dist/system/components/layout/header/components/search-modal/search-list/index.js +0 -61
- package/dist/system/components/layout/header/components/search-modal/search-list/index.js.map +0 -1
- package/dist/system/components/layout/header/components/search-modal/search-list/styles.d.ts +0 -2
- package/dist/system/components/layout/header/components/search-modal/search-list/styles.js +0 -14
- package/dist/system/components/layout/header/components/search-modal/search-list/styles.js.map +0 -1
- package/dist/system/components/layout/header/components/search-modal/styles.d.ts +0 -2
- package/dist/system/components/layout/header/components/search-modal/styles.js +0 -14
- package/dist/system/components/layout/header/components/search-modal/styles.js.map +0 -1
- package/dist/system/components/layout/header/components/search-modal/trigger/index.d.ts +0 -1
- package/dist/system/components/layout/header/components/search-modal/trigger/index.js +0 -45
- package/dist/system/components/layout/header/components/search-modal/trigger/index.js.map +0 -1
- package/dist/system/components/layout/header/components/search-modal/trigger/styles.d.ts +0 -2
- package/dist/system/components/layout/header/components/search-modal/trigger/styles.js +0 -14
- package/dist/system/components/layout/header/components/search-modal/trigger/styles.js.map +0 -1
- package/dist/system/components/layout/header/index.d.ts +0 -1
- package/dist/system/components/layout/header/index.js +0 -15
- package/dist/system/components/layout/header/index.js.map +0 -1
- package/dist/system/components/layout/header/version-01/index.d.ts +0 -1
- package/dist/system/components/layout/header/version-01/index.js +0 -36
- package/dist/system/components/layout/header/version-01/index.js.map +0 -1
- package/dist/system/components/layout/header/version-01/styles.d.ts +0 -6
- package/dist/system/components/layout/header/version-01/styles.js +0 -37
- package/dist/system/components/layout/header/version-01/styles.js.map +0 -1
- package/dist/system/components/layout/index.d.ts +0 -3
- package/dist/system/components/layout/index.js.map +0 -1
- package/dist/system/components/layout/menu/components/index.d.ts +0 -2
- package/dist/system/components/layout/menu/components/index.js.map +0 -1
- package/dist/system/components/layout/menu/components/menu/index.d.ts +0 -1
- package/dist/system/components/layout/menu/components/menu/index.js +0 -59
- package/dist/system/components/layout/menu/components/menu/index.js.map +0 -1
- package/dist/system/components/layout/menu/components/menu/styles.d.ts +0 -2
- package/dist/system/components/layout/menu/components/menu/styles.js +0 -14
- package/dist/system/components/layout/menu/components/menu/styles.js.map +0 -1
- package/dist/system/components/layout/menu/components/select-workspace/index.d.ts +0 -1
- package/dist/system/components/layout/menu/components/select-workspace/index.js +0 -78
- package/dist/system/components/layout/menu/components/select-workspace/index.js.map +0 -1
- package/dist/system/components/layout/menu/components/select-workspace/styles.d.ts +0 -2
- package/dist/system/components/layout/menu/components/select-workspace/styles.js +0 -14
- package/dist/system/components/layout/menu/components/select-workspace/styles.js.map +0 -1
- package/dist/system/components/layout/menu/index.d.ts +0 -1
- package/dist/system/components/layout/menu/index.js +0 -15
- package/dist/system/components/layout/menu/index.js.map +0 -1
- package/dist/system/components/layout/menu/version-01/index.d.ts +0 -1
- package/dist/system/components/layout/menu/version-01/index.js +0 -35
- package/dist/system/components/layout/menu/version-01/index.js.map +0 -1
- package/dist/system/components/layout/menu/version-01/styles.d.ts +0 -2
- package/dist/system/components/layout/menu/version-01/styles.js +0 -14
- package/dist/system/components/layout/menu/version-01/styles.js.map +0 -1
- package/dist/system/components/layout/styles.d.ts +0 -4
- package/dist/system/components/layout/styles.js +0 -14
- package/dist/system/components/layout/styles.js.map +0 -1
- package/dist/system/configs/index.d.ts +0 -3
- package/dist/system/configs/index.js +0 -20
- package/dist/system/configs/index.js.map +0 -1
- package/dist/system/configs/menu.d.ts +0 -10
- package/dist/system/configs/menu.js +0 -18
- package/dist/system/configs/menu.js.map +0 -1
- package/dist/system/configs/page-links.d.ts +0 -7
- package/dist/system/configs/page-links.js +0 -319
- package/dist/system/configs/page-links.js.map +0 -1
- package/dist/system/configs/routes.d.ts +0 -10
- package/dist/system/configs/routes.js +0 -14
- package/dist/system/configs/routes.js.map +0 -1
- package/dist/system/domain/entities/departament.d.ts +0 -4
- package/dist/system/domain/entities/departament.js +0 -3
- package/dist/system/domain/entities/departament.js.map +0 -1
- package/dist/system/domain/entities/index.d.ts +0 -3
- package/dist/system/domain/entities/index.js +0 -20
- package/dist/system/domain/entities/index.js.map +0 -1
- package/dist/system/domain/entities/roles/index.d.ts +0 -1
- package/dist/system/domain/entities/roles/index.js.map +0 -1
- package/dist/system/domain/entities/roles/permission.d.ts +0 -6
- package/dist/system/domain/entities/roles/permission.js +0 -3
- package/dist/system/domain/entities/roles/permission.js.map +0 -1
- package/dist/system/domain/entities/users/index.d.ts +0 -1
- package/dist/system/domain/entities/users/index.js.map +0 -1
- package/dist/system/domain/entities/users/user-controller.d.ts +0 -9
- package/dist/system/domain/entities/users/user-controller.js +0 -3
- package/dist/system/domain/entities/users/user-controller.js.map +0 -1
- package/dist/system/hooks/index.d.ts +0 -1
- package/dist/system/hooks/index.js +0 -18
- package/dist/system/hooks/index.js.map +0 -1
- package/dist/system/hooks/ui/index.d.ts +0 -1
- package/dist/system/hooks/ui/index.js +0 -18
- package/dist/system/hooks/ui/index.js.map +0 -1
- package/dist/system/hooks/ui/use-table/component.d.ts +0 -5
- package/dist/system/hooks/ui/use-table/component.js +0 -14
- package/dist/system/hooks/ui/use-table/component.js.map +0 -1
- package/dist/system/hooks/ui/use-table/components/active-indicator/index.d.ts +0 -1
- package/dist/system/hooks/ui/use-table/components/active-indicator/index.js +0 -33
- package/dist/system/hooks/ui/use-table/components/active-indicator/index.js.map +0 -1
- package/dist/system/hooks/ui/use-table/components/active-indicator/styles.d.ts +0 -4
- package/dist/system/hooks/ui/use-table/components/active-indicator/styles.js +0 -14
- package/dist/system/hooks/ui/use-table/components/active-indicator/styles.js.map +0 -1
- package/dist/system/hooks/ui/use-table/components/index.d.ts +0 -3
- package/dist/system/hooks/ui/use-table/components/index.js +0 -20
- package/dist/system/hooks/ui/use-table/components/index.js.map +0 -1
- package/dist/system/hooks/ui/use-table/components/searchbar/active-indicator/index.d.ts +0 -1
- package/dist/system/hooks/ui/use-table/components/searchbar/active-indicator/index.js +0 -33
- package/dist/system/hooks/ui/use-table/components/searchbar/active-indicator/index.js.map +0 -1
- package/dist/system/hooks/ui/use-table/components/searchbar/active-indicator/styles.d.ts +0 -4
- package/dist/system/hooks/ui/use-table/components/searchbar/active-indicator/styles.js +0 -14
- package/dist/system/hooks/ui/use-table/components/searchbar/active-indicator/styles.js.map +0 -1
- package/dist/system/hooks/ui/use-table/components/searchbar/index.d.ts +0 -2
- package/dist/system/hooks/ui/use-table/components/searchbar/index.js +0 -56
- package/dist/system/hooks/ui/use-table/components/searchbar/index.js.map +0 -1
- package/dist/system/hooks/ui/use-table/components/searchbar/interfaces.d.ts +0 -7
- package/dist/system/hooks/ui/use-table/components/searchbar/interfaces.js +0 -3
- package/dist/system/hooks/ui/use-table/components/searchbar/interfaces.js.map +0 -1
- package/dist/system/hooks/ui/use-table/components/searchbar/styles.d.ts +0 -8
- package/dist/system/hooks/ui/use-table/components/searchbar/styles.js +0 -14
- package/dist/system/hooks/ui/use-table/components/searchbar/styles.js.map +0 -1
- package/dist/system/hooks/ui/use-table/components/table/index.d.ts +0 -2
- package/dist/system/hooks/ui/use-table/components/table/index.js +0 -92
- package/dist/system/hooks/ui/use-table/components/table/index.js.map +0 -1
- package/dist/system/hooks/ui/use-table/components/table/interfaces.d.ts +0 -16
- package/dist/system/hooks/ui/use-table/components/table/interfaces.js +0 -3
- package/dist/system/hooks/ui/use-table/components/table/interfaces.js.map +0 -1
- package/dist/system/hooks/ui/use-table/components/table/loader-table/index.d.ts +0 -1
- package/dist/system/hooks/ui/use-table/components/table/loader-table/index.js +0 -33
- package/dist/system/hooks/ui/use-table/components/table/loader-table/index.js.map +0 -1
- package/dist/system/hooks/ui/use-table/components/table/loader-table/styles.d.ts +0 -4
- package/dist/system/hooks/ui/use-table/components/table/loader-table/styles.js +0 -14
- package/dist/system/hooks/ui/use-table/components/table/loader-table/styles.js.map +0 -1
- package/dist/system/hooks/ui/use-table/components/table/styles.js +0 -14
- package/dist/system/hooks/ui/use-table/components/table/styles.js.map +0 -1
- package/dist/system/hooks/ui/use-table/components/table/thead-item/index.d.ts +0 -2
- package/dist/system/hooks/ui/use-table/components/table/thead-item/index.js +0 -50
- package/dist/system/hooks/ui/use-table/components/table/thead-item/index.js.map +0 -1
- package/dist/system/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +0 -6
- package/dist/system/hooks/ui/use-table/components/table/thead-item/interfaces.js +0 -3
- package/dist/system/hooks/ui/use-table/components/table/thead-item/interfaces.js.map +0 -1
- package/dist/system/hooks/ui/use-table/components/table/thead-item/styles.d.ts +0 -4
- package/dist/system/hooks/ui/use-table/components/table/thead-item/styles.js +0 -14
- package/dist/system/hooks/ui/use-table/components/table/thead-item/styles.js.map +0 -1
- package/dist/system/hooks/ui/use-table/index.d.ts +0 -5
- package/dist/system/hooks/ui/use-table/index.js +0 -22
- package/dist/system/hooks/ui/use-table/index.js.map +0 -1
- package/dist/system/hooks/ui/use-table/interfaces.d.ts +0 -58
- package/dist/system/hooks/ui/use-table/interfaces.js +0 -3
- package/dist/system/hooks/ui/use-table/interfaces.js.map +0 -1
- package/dist/system/hooks/ui/use-table/query/index.d.ts +0 -6
- package/dist/system/hooks/ui/use-table/query/index.js +0 -30
- package/dist/system/hooks/ui/use-table/query/index.js.map +0 -1
- package/dist/system/hooks/ui/use-table/query/interfaces.d.ts +0 -33
- package/dist/system/hooks/ui/use-table/query/interfaces.js +0 -3
- package/dist/system/hooks/ui/use-table/query/interfaces.js.map +0 -1
- package/dist/system/hooks/ui/use-table/query/service.d.ts +0 -25
- package/dist/system/hooks/ui/use-table/query/service.js +0 -113
- package/dist/system/hooks/ui/use-table/query/service.js.map +0 -1
- package/dist/system/hooks/ui/use-table/utils/buffer.d.ts +0 -3
- package/dist/system/hooks/ui/use-table/utils/buffer.js +0 -32
- package/dist/system/hooks/ui/use-table/utils/buffer.js.map +0 -1
- package/dist/system/hooks/ui/use-table/utils/filter-empty-values.d.ts +0 -1
- package/dist/system/hooks/ui/use-table/utils/filter-empty-values.js +0 -22
- package/dist/system/hooks/ui/use-table/utils/filter-empty-values.js.map +0 -1
- package/dist/system/hooks/ui/use-table/utils/index.d.ts +0 -4
- package/dist/system/hooks/ui/use-table/utils/index.js +0 -21
- package/dist/system/hooks/ui/use-table/utils/index.js.map +0 -1
- package/dist/system/hooks/ui/use-table/utils/is-object-empty.d.ts +0 -1
- package/dist/system/hooks/ui/use-table/utils/is-object-empty.js +0 -12
- package/dist/system/hooks/ui/use-table/utils/is-object-empty.js.map +0 -1
- package/dist/system/hooks/ui/use-table/utils/update-route.d.ts +0 -6
- package/dist/system/hooks/ui/use-table/utils/update-route.js +0 -31
- package/dist/system/hooks/ui/use-table/utils/update-route.js.map +0 -1
- package/dist/system/infra/server/headers.d.ts +0 -5
- package/dist/system/infra/server/headers.js.map +0 -1
- package/dist/system/infra/server/index.d.ts +0 -1
- package/dist/system/infra/server/index.js.map +0 -1
- package/dist/system/presentation/components/data/sign-in/index.d.ts +0 -1
- package/dist/system/presentation/components/data/sign-in/index.js.map +0 -1
- package/dist/system/presentation/components/data/sign-in/styles.d.ts +0 -4
- package/dist/system/presentation/components/data/sign-in/styles.js +0 -14
- package/dist/system/presentation/components/data/sign-in/styles.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/ui/components/form/helpers/index.d.ts +0 -1
- package/dist/ui/components/form/helpers/index.js +0 -18
- package/dist/ui/components/form/helpers/index.js.map +0 -1
- package/dist/ui/components/form/helpers/make-register-name.d.ts +0 -1
- package/dist/ui/components/form/helpers/make-register-name.js +0 -8
- package/dist/ui/components/form/helpers/make-register-name.js.map +0 -1
- /package/dist/{system/components/data/overlay → ui/components/sidebar}/interfaces.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/layout/menu/version-01/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,aAAa,GAAG,2BAAM,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/layout/menu/version-01/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,aAAa,GAAG,2BAAM,CAAC,KAAK,kWAAA,+RAexC,KAAA"}
|
|
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.Layout = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.Layout = (0, styled_components_1.default)(
|
|
12
|
+
exports.Layout = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n width: 100%;\n\n .content_layout {\n width: 100%;\n padding: 0 30px;\n }\n"], ["\n display: flex;\n width: 100%;\n\n .content_layout {\n width: 100%;\n padding: 0 30px;\n }\n"])));
|
|
13
13
|
var templateObject_1;
|
|
14
14
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/layout/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/layout/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,MAAM,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,6KAAA,0GAQlC,KAAA"}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { IconsNames } from '../../../ui/index.js';
|
|
2
|
+
export interface IMenu {
|
|
2
3
|
id: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
titulo: string;
|
|
5
|
+
icon: IconsNames;
|
|
6
|
+
href?: string;
|
|
7
|
+
menuItems?: IMenu[];
|
|
8
|
+
}
|
|
9
|
+
export interface ISideBarContent {
|
|
10
|
+
id: 1;
|
|
11
|
+
label: string;
|
|
12
|
+
items: IMenu[];
|
|
13
|
+
}
|
|
14
|
+
export declare const MENU: IMenu[];
|
|
15
|
+
export declare const AJUDA_SUPORTE: IMenu[];
|
|
16
|
+
export declare const SIDE_BAR_ITEMS: ISideBarContent[];
|
|
@@ -1,18 +1,138 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.SIDE_BAR_ITEMS = exports.AJUDA_SUPORTE = exports.MENU = void 0;
|
|
4
|
+
exports.MENU = [
|
|
5
5
|
{
|
|
6
6
|
id: '1',
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
titulo: 'Produtos',
|
|
8
|
+
icon: 'IconShopping',
|
|
9
9
|
menuItems: [
|
|
10
10
|
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
icon:
|
|
11
|
+
id: '1',
|
|
12
|
+
titulo: 'Produto 1',
|
|
13
|
+
icon: 'IconExclamation',
|
|
14
|
+
menuItems: [
|
|
15
|
+
{
|
|
16
|
+
id: '1',
|
|
17
|
+
titulo: 'Produto 1',
|
|
18
|
+
icon: 'IconExclamation',
|
|
19
|
+
href: '#produto-1',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: '2',
|
|
23
|
+
titulo: 'Produto 2',
|
|
24
|
+
icon: 'IconExclamation',
|
|
25
|
+
href: '#produto-2',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: '3',
|
|
29
|
+
titulo: 'Produto 3',
|
|
30
|
+
icon: 'IconExclamation',
|
|
31
|
+
menuItems: [
|
|
32
|
+
{
|
|
33
|
+
id: '1',
|
|
34
|
+
titulo: 'Produto 1',
|
|
35
|
+
icon: 'IconExclamation',
|
|
36
|
+
href: '#produto-1',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: '2',
|
|
40
|
+
titulo: 'Produto 2',
|
|
41
|
+
icon: 'IconExclamation',
|
|
42
|
+
href: '#produto-2',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: '3',
|
|
46
|
+
titulo: 'Produto 3',
|
|
47
|
+
icon: 'IconExclamation',
|
|
48
|
+
href: '#produto-3',
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: '2',
|
|
56
|
+
titulo: 'Produto 2',
|
|
57
|
+
icon: 'IconExclamation',
|
|
58
|
+
href: '#produto-2',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: '3',
|
|
62
|
+
titulo: 'Produto 3',
|
|
63
|
+
icon: 'IconExclamation',
|
|
64
|
+
href: '#produto-3',
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: '2',
|
|
70
|
+
titulo: 'Sobre nós',
|
|
71
|
+
icon: 'IconExclamation',
|
|
72
|
+
href: '#sobre-nos',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: '3',
|
|
76
|
+
titulo: 'Arquivos',
|
|
77
|
+
icon: 'IconFile',
|
|
78
|
+
menuItems: [
|
|
79
|
+
{
|
|
80
|
+
id: '1',
|
|
81
|
+
titulo: 'Produto 1',
|
|
82
|
+
icon: 'IconExclamation',
|
|
83
|
+
href: '#produto-1',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
id: '2',
|
|
87
|
+
titulo: 'Produto 2',
|
|
88
|
+
icon: 'IconExclamation',
|
|
89
|
+
href: '#produto-2',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: '3',
|
|
93
|
+
titulo: 'Produto 3',
|
|
94
|
+
icon: 'IconExclamation',
|
|
95
|
+
href: '#produto-3',
|
|
14
96
|
},
|
|
15
97
|
],
|
|
16
98
|
},
|
|
99
|
+
{
|
|
100
|
+
id: '5',
|
|
101
|
+
titulo: 'Galeria',
|
|
102
|
+
icon: 'IconImage',
|
|
103
|
+
href: '#galeria',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
id: '5',
|
|
107
|
+
titulo: 'Calendário',
|
|
108
|
+
icon: 'IconCalendar',
|
|
109
|
+
href: '#calendario',
|
|
110
|
+
},
|
|
111
|
+
];
|
|
112
|
+
exports.AJUDA_SUPORTE = [
|
|
113
|
+
{
|
|
114
|
+
id: '1',
|
|
115
|
+
titulo: 'Chat',
|
|
116
|
+
icon: 'IconChat',
|
|
117
|
+
href: '#chat',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
id: '2',
|
|
121
|
+
titulo: 'FAQ',
|
|
122
|
+
icon: 'IconExclamation',
|
|
123
|
+
href: '#faq',
|
|
124
|
+
},
|
|
125
|
+
];
|
|
126
|
+
exports.SIDE_BAR_ITEMS = [
|
|
127
|
+
{
|
|
128
|
+
id: 1,
|
|
129
|
+
label: 'MENU',
|
|
130
|
+
items: exports.MENU,
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
id: 1,
|
|
134
|
+
label: 'AJUDA E SUPORTE',
|
|
135
|
+
items: exports.AJUDA_SUPORTE,
|
|
136
|
+
},
|
|
17
137
|
];
|
|
18
138
|
//# sourceMappingURL=menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../../../src/system/presentation/configs/menu.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../../../src/system/presentation/configs/menu.ts"],"names":[],"mappings":";;;AAgBa,QAAA,IAAI,GAAY;IAC3B;QACE,EAAE,EAAE,GAAG;QACP,MAAM,EAAE,UAAU;QAClB,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE;YACT;gBACE,EAAE,EAAE,GAAG;gBACP,MAAM,EAAE,WAAW;gBACnB,IAAI,EAAE,iBAAiB;gBACvB,SAAS,EAAE;oBACT;wBACE,EAAE,EAAE,GAAG;wBACP,MAAM,EAAE,WAAW;wBACnB,IAAI,EAAE,iBAAiB;wBACvB,IAAI,EAAE,YAAY;qBACnB;oBACD;wBACE,EAAE,EAAE,GAAG;wBACP,MAAM,EAAE,WAAW;wBACnB,IAAI,EAAE,iBAAiB;wBACvB,IAAI,EAAE,YAAY;qBACnB;oBACD;wBACE,EAAE,EAAE,GAAG;wBACP,MAAM,EAAE,WAAW;wBACnB,IAAI,EAAE,iBAAiB;wBACvB,SAAS,EAAE;4BACT;gCACE,EAAE,EAAE,GAAG;gCACP,MAAM,EAAE,WAAW;gCACnB,IAAI,EAAE,iBAAiB;gCACvB,IAAI,EAAE,YAAY;6BACnB;4BACD;gCACE,EAAE,EAAE,GAAG;gCACP,MAAM,EAAE,WAAW;gCACnB,IAAI,EAAE,iBAAiB;gCACvB,IAAI,EAAE,YAAY;6BACnB;4BACD;gCACE,EAAE,EAAE,GAAG;gCACP,MAAM,EAAE,WAAW;gCACnB,IAAI,EAAE,iBAAiB;gCACvB,IAAI,EAAE,YAAY;6BACnB;yBACF;qBACF;iBACF;aACF;YACD;gBACE,EAAE,EAAE,GAAG;gBACP,MAAM,EAAE,WAAW;gBACnB,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,YAAY;aACnB;YACD;gBACE,EAAE,EAAE,GAAG;gBACP,MAAM,EAAE,WAAW;gBACnB,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,YAAY;aACnB;SACF;KACF;IACD;QACE,EAAE,EAAE,GAAG;QACP,MAAM,EAAE,WAAW;QACnB,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,YAAY;KACnB;IACD;QACE,EAAE,EAAE,GAAG;QACP,MAAM,EAAE,UAAU;QAClB,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE;YACT;gBACE,EAAE,EAAE,GAAG;gBACP,MAAM,EAAE,WAAW;gBACnB,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,YAAY;aACnB;YACD;gBACE,EAAE,EAAE,GAAG;gBACP,MAAM,EAAE,WAAW;gBACnB,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,YAAY;aACnB;YACD;gBACE,EAAE,EAAE,GAAG;gBACP,MAAM,EAAE,WAAW;gBACnB,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,YAAY;aACnB;SACF;KACF;IACD;QACE,EAAE,EAAE,GAAG;QACP,MAAM,EAAE,SAAS;QACjB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,EAAE,EAAE,GAAG;QACP,MAAM,EAAE,YAAY;QACpB,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,aAAa;KACpB;CACF,CAAA;AAEY,QAAA,aAAa,GAAY;IACpC;QACE,EAAE,EAAE,GAAG;QACP,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,OAAO;KACd;IACD;QACE,EAAE,EAAE,GAAG;QACP,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,MAAM;KACb;CACF,CAAA;AAEY,QAAA,cAAc,GAAsB;IAC/C;QACE,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,YAAI;KACZ;IACD;QACE,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,iBAAiB;QACxB,KAAK,EAAE,qBAAa;KACrB;CACF,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthenticatedTemplate = void 0;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
var context_1 = require("../context.js");
|
|
6
|
+
function AuthenticatedTemplate(_a) {
|
|
7
|
+
var children = _a.children;
|
|
8
|
+
var user = (0, context_1.useAuthAdmin)().user;
|
|
9
|
+
if (!user) {
|
|
10
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
11
|
+
}
|
|
12
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
|
|
13
|
+
}
|
|
14
|
+
exports.AuthenticatedTemplate = AuthenticatedTemplate;
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/context/auth/authenticated/index.tsx"],"names":[],"mappings":";;;;AAAA,sCAA0C;AAE1C,SAAgB,qBAAqB,CAAC,EAAY;QAAV,QAAQ,cAAA;IACtC,IAAA,IAAI,GAAK,IAAA,sBAAY,GAAE,KAAnB,CAAoB;IAEhC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,kDAAK,CAAC;IACf,CAAC;IAED,OAAO,2DAAG,QAAQ,GAAI,CAAC;AACzB,CAAC;AARD,sDAQC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { User, AuthAdmin } from '../../../../system/index.js';
|
|
3
|
+
interface IAuthContextType {
|
|
4
|
+
signOut(): void;
|
|
5
|
+
user: User | null;
|
|
6
|
+
signIn(params: AuthAdmin.Params): void;
|
|
7
|
+
}
|
|
8
|
+
declare function AuthAdminProvider({ children }: {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function useAuthAdmin(): IAuthContextType;
|
|
12
|
+
export { AuthAdminProvider, useAuthAdmin };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
35
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
36
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
37
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38
|
+
function step(op) {
|
|
39
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
40
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
41
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
42
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43
|
+
switch (op[0]) {
|
|
44
|
+
case 0: case 1: t = op; break;
|
|
45
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
46
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
47
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
48
|
+
default:
|
|
49
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
50
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
51
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
52
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
53
|
+
if (t[2]) _.ops.pop();
|
|
54
|
+
_.trys.pop(); continue;
|
|
55
|
+
}
|
|
56
|
+
op = body.call(thisArg, _);
|
|
57
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
58
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
+
exports.useAuthAdmin = exports.AuthAdminProvider = void 0;
|
|
63
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
64
|
+
var react_1 = require("react");
|
|
65
|
+
var router_1 = require("next/router");
|
|
66
|
+
var axios_1 = __importStar(require("axios"));
|
|
67
|
+
var system_1 = require("../../../../system/index.js");
|
|
68
|
+
var AuthContext = (0, react_1.createContext)({});
|
|
69
|
+
function AuthAdminProvider(_a) {
|
|
70
|
+
var children = _a.children;
|
|
71
|
+
var _b = (0, react_1.useState)(null), user = _b[0], setUser = _b[1];
|
|
72
|
+
var router = (0, router_1.useRouter)();
|
|
73
|
+
function signIn(payload) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
75
|
+
var response;
|
|
76
|
+
return __generator(this, function (_a) {
|
|
77
|
+
switch (_a.label) {
|
|
78
|
+
case 0: return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteAuthAdmin).auth(payload)];
|
|
79
|
+
case 1:
|
|
80
|
+
response = _a.sent();
|
|
81
|
+
setUser(response.data);
|
|
82
|
+
router.push('/');
|
|
83
|
+
return [2 /*return*/];
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function signOut() {
|
|
89
|
+
setUser(null);
|
|
90
|
+
system_1.container.get(system_1.InfraTypes.storage).set('token', { value: null });
|
|
91
|
+
}
|
|
92
|
+
(0, react_1.useEffect)(function () {
|
|
93
|
+
axios_1.default.interceptors.response.use(function (r) { return r; }, function (err) {
|
|
94
|
+
if (err instanceof axios_1.AxiosError) {
|
|
95
|
+
if (err.response.status === 401) {
|
|
96
|
+
signOut();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
throw err;
|
|
100
|
+
});
|
|
101
|
+
}, []);
|
|
102
|
+
return (0, jsx_runtime_1.jsx)(AuthContext.Provider, { value: { user: user, signIn: signIn, signOut: signOut }, children: children });
|
|
103
|
+
}
|
|
104
|
+
exports.AuthAdminProvider = AuthAdminProvider;
|
|
105
|
+
function useAuthAdmin() {
|
|
106
|
+
var context = (0, react_1.useContext)(AuthContext);
|
|
107
|
+
if (context === undefined) {
|
|
108
|
+
throw new Error('useAuthAdmin() must be used within a AuthProvider');
|
|
109
|
+
}
|
|
110
|
+
return context;
|
|
111
|
+
}
|
|
112
|
+
exports.useAuthAdmin = useAuthAdmin;
|
|
113
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/auth/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAsE;AAEtE,sCAAuC;AAEvC,6CAAyC;AAEzC,mCAAkG;AAQlG,IAAM,WAAW,GAAG,IAAA,qBAAa,EAAC,EAAsB,CAAC,CAAA;AAEzD,SAAS,iBAAiB,CAAC,EAA2C;QAAzC,QAAQ,cAAA;IAC7B,IAAA,KAAkB,IAAA,gBAAQ,EAAc,IAAI,CAAC,EAA5C,IAAI,QAAA,EAAE,OAAO,QAA+B,CAAA;IAEnD,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAE1B,SAAe,MAAM,CAAC,OAAyB;;;;;4BAC5B,qBAAM,kBAAS,CAAC,GAAG,CAAkB,cAAK,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAA;;wBAApF,QAAQ,GAAG,SAAyE;wBAE1F,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;wBAEtB,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;;;;;KACjB;IAED,SAAS,OAAO;QACd,OAAO,CAAC,IAAI,CAAC,CAAA;QAEb,kBAAS,CAAC,GAAG,CAAU,mBAAU,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;IAC1E,CAAC;IAED,IAAA,iBAAS,EAAC;QACR,eAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAC7B,UAAC,CAAC,IAAK,OAAA,CAAC,EAAD,CAAC,EACR,UAAC,GAAG;YACF,IAAI,GAAG,YAAY,kBAAU,EAAE,CAAC;gBAC9B,IAAI,GAAG,CAAC,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;oBAChC,OAAO,EAAE,CAAA;gBACX,CAAC;YACH,CAAC;YAED,MAAM,GAAG,CAAA;QACX,CAAC,CACF,CAAA;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,uBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,IAAI,MAAA,EAAE,MAAM,QAAA,EAAE,OAAO,SAAA,EAAE,YAAG,QAAQ,GAAwB,CAAA;AAClG,CAAC;AAWQ,8CAAiB;AAT1B,SAAS,YAAY;IACnB,IAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,WAAW,CAAC,CAAA;IAEvC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAA;IACtE,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC;AAE2B,oCAAY"}
|
|
@@ -14,7 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./login/index.js"), exports);
|
|
18
|
+
__exportStar(require("./context.js"), exports);
|
|
19
|
+
__exportStar(require("./private-page/index.js"), exports);
|
|
20
|
+
__exportStar(require("./authenticated/index.js"), exports);
|
|
21
|
+
__exportStar(require("./unauthenticated/index.js"), exports);
|
|
20
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,4CAAyB;AACzB,iDAA8B;AAC9B,kDAA+B;AAC/B,oDAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Login(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -23,14 +23,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.Login = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
+
var context_1 = require("../context.js");
|
|
28
29
|
var ui_1 = require("../../../../../ui/index.js");
|
|
29
|
-
var ui_2 = require("../../../../../ui/index.js");
|
|
30
30
|
var S = __importStar(require("./styles.js"));
|
|
31
|
-
function
|
|
32
|
-
|
|
33
|
-
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'login', children: (0, jsx_runtime_1.jsxs)(S.
|
|
31
|
+
function Login() {
|
|
32
|
+
var signIn = (0, context_1.useAuthAdmin)().signIn;
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'login', children: (0, jsx_runtime_1.jsxs)(S.Login, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'title', children: (0, jsx_runtime_1.jsxs)("h1", { className: 'font-36-bold', children: ["Bem Vindo! ", (0, jsx_runtime_1.jsx)("br", {}), "Entre com suas credenciais"] }) }), (0, jsx_runtime_1.jsxs)(ui_1.FormHandler, { button: { text: 'Entrar' }, initialData: { emailAddress: "", password: "" }, onSucess: signIn, children: [(0, jsx_runtime_1.jsx)(ui_1.Input, { type: 'email', label: 'Email', name: 'emailAddress', placeholder: 'clienteCodie@digital.com' }), (0, jsx_runtime_1.jsx)(ui_1.InputPassword, { label: 'Senha', name: 'password', placeholder: 'Senha' })] }), (0, jsx_runtime_1.jsxs)("div", { className: 'create-account', children: [(0, jsx_runtime_1.jsx)("span", { className: 'font-16-regular', children: "N\u00E3o tem uma conta?" }), (0, jsx_runtime_1.jsx)("a", { className: 'font-16-bold', href: '/sign-up', children: "Criar Conta" })] })] }) }));
|
|
34
34
|
}
|
|
35
|
-
exports.
|
|
35
|
+
exports.Login = Login;
|
|
36
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/context/auth/login/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAyC;AAEzC,2BAA+D;AAE/D,0CAA6B;AAE7B,SAAgB,KAAK;IACX,IAAA,MAAM,GAAK,IAAA,sBAAY,GAAE,OAAnB,CAAmB;IAEjC,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,OAAO,YACjB,wBAAC,CAAC,CAAC,KAAK,eACN,gCAAK,SAAS,EAAC,OAAO,YACpB,gCAAI,SAAS,EAAC,cAAc,4BACf,gCAAM,kCAEd,GACD,EAEN,wBAAC,gBAAW,IAAC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,aACxG,uBAAC,UAAK,IAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAC,cAAc,EAAC,WAAW,EAAC,0BAA0B,GAAG,EAE/F,uBAAC,kBAAa,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAC,UAAU,EAAC,WAAW,EAAC,OAAO,GAAG,IACvD,EAEd,iCAAK,SAAS,EAAC,gBAAgB,aAC7B,iCAAM,SAAS,EAAC,iBAAiB,wCAA0B,EAC3D,8BAAG,SAAS,EAAC,cAAc,EAAC,IAAI,EAAC,UAAU,4BAEvC,IACA,IACE,GACJ,CACT,CAAA;AACH,CAAC;AA5BD,sBA4BC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const Login: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
3
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
4
|
}, never>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.Login = void 0;
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
exports.Login = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n max-width: 576px;\n margin: 0 auto;\n padding: clamp(30px, 3.13vw, 60px) 0;\n\n .title {\n margin: 0 0 40px;\n\n h1 {\n text-align: center;\n }\n }\n\n form {\n .form-button {\n margin-top: 24px;\n\n button {\n background-color: #111111;\n height: 56px;\n border-radius: 6px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: transform 0.1s ease-in-out;\n\n span {\n font-size: 16px;\n font-weight: bold;\n }\n\n &:active {\n transform: translateY(0.7px);\n }\n }\n }\n\n input {\n height: 56px;\n padding: 10px 20px;\n width: 100%;\n border: 2px solid rgba(0, 0, 0, 0.08);\n border-radius: 6px;\n margin-top: 8px;\n transition: border 0.2s ease-in-out;\n color: #484848;\n\n &:hover {\n border: 1px solid rgba(0, 0, 0, 0.8);\n }\n }\n }\n\n .create-account {\n display: flex;\n align-items: center;\n gap: 4px;\n width: fit-content;\n margin: 36px auto 0;\n\n span {\n color: #666666;\n }\n\n a {\n color: #000;\n }\n }\n"], ["\n width: 100%;\n max-width: 576px;\n margin: 0 auto;\n padding: clamp(30px, 3.13vw, 60px) 0;\n\n .title {\n margin: 0 0 40px;\n\n h1 {\n text-align: center;\n }\n }\n\n form {\n .form-button {\n margin-top: 24px;\n\n button {\n background-color: #111111;\n height: 56px;\n border-radius: 6px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: transform 0.1s ease-in-out;\n\n span {\n font-size: 16px;\n font-weight: bold;\n }\n\n &:active {\n transform: translateY(0.7px);\n }\n }\n }\n\n input {\n height: 56px;\n padding: 10px 20px;\n width: 100%;\n border: 2px solid rgba(0, 0, 0, 0.08);\n border-radius: 6px;\n margin-top: 8px;\n transition: border 0.2s ease-in-out;\n color: #484848;\n\n &:hover {\n border: 1px solid rgba(0, 0, 0, 0.8);\n }\n }\n }\n\n .create-account {\n display: flex;\n align-items: center;\n gap: 4px;\n width: fit-content;\n margin: 36px auto 0;\n\n span {\n color: #666666;\n }\n\n a {\n color: #000;\n }\n }\n"])));
|
|
13
|
+
var templateObject_1;
|
|
14
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/context/auth/login/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,KAAK,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,ywCAAA,ssCAqEjC,KAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrivatePageAdmin = void 0;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
var ui_1 = require("../../../../../ui/index.js");
|
|
6
|
+
var login_1 = require("../login/index.js");
|
|
7
|
+
var context_1 = require("../context.js");
|
|
8
|
+
function PrivatePageAdmin(_a) {
|
|
9
|
+
var children = _a.children;
|
|
10
|
+
var user = (0, context_1.useAuthAdmin)().user;
|
|
11
|
+
if (!user) {
|
|
12
|
+
return (0, jsx_runtime_1.jsx)(ui_1.Error, { name: "private-page", children: children });
|
|
13
|
+
}
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: "private-page", children: (0, jsx_runtime_1.jsx)(login_1.Login, {}) }));
|
|
15
|
+
}
|
|
16
|
+
exports.PrivatePageAdmin = PrivatePageAdmin;
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/context/auth/private-page/index.tsx"],"names":[],"mappings":";;;;AAAA,2BAA6B;AAE7B,kCAAiC;AACjC,sCAA0C;AAE1C,SAAgB,gBAAgB,CAAC,EAA2C;QAAzC,QAAQ,cAAA;IACjC,IAAA,IAAI,GAAK,IAAA,sBAAY,GAAE,KAAnB,CAAoB;IAEhC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,uBAAC,UAAK,IAAC,IAAI,EAAC,cAAc,YAAE,QAAQ,GAAS,CAAC;IACvD,CAAC;IAED,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,cAAc,YACxB,uBAAC,aAAK,KAAG,GACH,CACT,CAAC;AACJ,CAAC;AAZD,4CAYC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnauthenticatedTemplate = void 0;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
var context_1 = require("../context.js");
|
|
6
|
+
function UnauthenticatedTemplate(_a) {
|
|
7
|
+
var children = _a.children;
|
|
8
|
+
var user = (0, context_1.useAuthAdmin)().user;
|
|
9
|
+
if (user) {
|
|
10
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
11
|
+
}
|
|
12
|
+
return children;
|
|
13
|
+
}
|
|
14
|
+
exports.UnauthenticatedTemplate = UnauthenticatedTemplate;
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/context/auth/unauthenticated/index.tsx"],"names":[],"mappings":";;;;AAAA,sCAAyC;AAEzC,SAAgB,uBAAuB,CAAC,EAAY;QAAV,QAAQ,cAAA;IACxC,IAAA,IAAI,GAAK,IAAA,sBAAY,GAAE,KAAnB,CAAoB;IAEhC,IAAI,IAAI,EAAE,CAAC;QACT,OAAO,kDAAK,CAAC;IACf,CAAC;IAED,OAAO,QAAQ,CAAA;AACjB,CAAC;AARD,0DAQC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./auth/index.js";
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./auth/index.js"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/presentation/context/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB"}
|
|
@@ -16,5 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./hooks/index.js"), exports);
|
|
18
18
|
__exportStar(require("./configs/index.js"), exports);
|
|
19
|
+
__exportStar(require("./context/index.js"), exports);
|
|
19
20
|
__exportStar(require("./components/index.js"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/presentation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,4CAAyB;AACzB,+CAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/presentation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,4CAAyB;AACzB,4CAAyB;AACzB,+CAA4B"}
|
|
@@ -79,7 +79,7 @@ var S = __importStar(require("../styles.js"));
|
|
|
79
79
|
function FormElement(_a) {
|
|
80
80
|
var button = _a.button, children = _a.children, onSucess = _a.onSucess, customSubmit = _a.customSubmit, onChangeForm = _a.onChangeForm;
|
|
81
81
|
var _b = (0, react_1.useState)({ state: '', message: '' }), stateForm = _b[0], setStateForm = _b[1];
|
|
82
|
-
var _c = (0, formik_1.useFormikContext)(), values = _c.values, setErrors = _c.setErrors;
|
|
82
|
+
var _c = (0, formik_1.useFormikContext)(), values = _c.values, setErrors = _c.setErrors, setFieldError = _c.setFieldError;
|
|
83
83
|
function onSubmit(action) {
|
|
84
84
|
return __awaiter(this, void 0, void 0, function () {
|
|
85
85
|
var _a, err_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/handler/form-handler/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA2C;AAE3C,iCAAyC;AAEzC,2BAA6B;AAC7B,kDAAyE;AAIzE,2CAA8B;AAE9B,SAAwB,WAAW,CAAC,EAAwE;QAAtE,MAAM,YAAA,EAAE,QAAQ,cAAA,EAAE,QAAQ,cAAA,EAAE,YAAY,kBAAA,EAAE,YAAY,kBAAA;IACpF,IAAA,KAA4B,IAAA,gBAAQ,EAAC,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,EAA/D,SAAS,QAAA,EAAE,YAAY,QAAwC,CAAA;IAEhE,IAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/handler/form-handler/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA2C;AAE3C,iCAAyC;AAEzC,2BAA6B;AAC7B,kDAAyE;AAIzE,2CAA8B;AAE9B,SAAwB,WAAW,CAAC,EAAwE;QAAtE,MAAM,YAAA,EAAE,QAAQ,cAAA,EAAE,QAAQ,cAAA,EAAE,YAAY,kBAAA,EAAE,YAAY,kBAAA;IACpF,IAAA,KAA4B,IAAA,gBAAQ,EAAC,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,EAA/D,SAAS,QAAA,EAAE,YAAY,QAAwC,CAAA;IAEhE,IAAA,KAAuC,IAAA,yBAAgB,GAAE,EAAvD,MAAM,YAAA,EAAE,SAAS,eAAA,EAAE,aAAa,mBAAuB,CAAA;IAE/D,SAAe,QAAQ,CAAC,MAAqC;;;;;;;wBAGzD,YAAY,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAA;wBAE/C,SAAS,CAAC,EAAE,CAAC,CAAA;wBAEb,KAAA,QAAQ,IAAI,CAAC,MAAM,CAAA;iCAAnB,wBAAmB;wBAAK,qBAAM,QAAQ,CAAC,MAAM,CAAC,EAAA;;wBAAvB,KAAA,CAAC,SAAsB,CAAC,CAAA;;;wBAA/C,GAA+C;wBAE/C,CAAC,MAAM,IAAI,YAAY,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAA;wBAEvD,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;;;;wBAEtC,YAAY,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAA;;;;;;KAElD;IAED,SAAS,YAAY,CAAC,MAAY;QAChC,QAAQ,CAAC,MAAM,CAAC,CAAA;IAClB,CAAC;IAED,IAAA,iBAAS,EAAC;QACR,YAAY,IAAI,YAAY,CAAC,MAAM,CAAC,CAAA;IACtC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAA;IAEZ,OAAO,CACL,wBAAC,CAAC,CAAC,WAAW,eACX,SAAS,CAAC,KAAK,KAAK,OAAO,IAAI,iCAAM,SAAS,EAAC,WAAW,YAAE,SAAS,CAAC,OAAO,GAAQ,EAErF,QAAQ,EAET,iCAAK,SAAS,EAAC,aAAa,aACzB,MAAM,IAAI,CACT,uBAAC,WAAM,eAAK,MAAM,IAAE,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,cAAM,OAAA,YAAY,EAAE,EAAd,CAAc,EAAE,OAAO,EAAE,SAAS,CAAC,KAAK,KAAK,SAAS,IAAI,CAC5G,EAEA,YAAY;wBACX,YAAY,CAAC,MAAM,GAAG,CAAC;wBACvB,YAAY,CAAC,GAAG,CAAC,UAAC,MAAM,EAAE,KAAK,IAAK,OAAA,CAClC,uBAAC,kCAAkB,eAAiB,MAAM,IAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,KAA/D,KAAK,CAA8D,CAC7F,EAFmC,CAEnC,CAAC,IACA,IACQ,CACjB,CAAA;AACH,CAAC;AAjDD,8BAiDC"}
|
|
@@ -19,7 +19,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
19
19
|
var formik_1 = require("formik");
|
|
20
20
|
var form_handler_1 = __importDefault(require("./form-handler/index.js"));
|
|
21
21
|
function FormHandler(props) {
|
|
22
|
-
return ((0, jsx_runtime_1.jsx)(formik_1.Formik, { initialValues: props.initialData, onSubmit: function () { }, children: (0, jsx_runtime_1.jsx)(formik_1.Form, { children: (0, jsx_runtime_1.jsx)(form_handler_1.default, __assign({}, props)) }) }));
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)(formik_1.Formik, { initialValues: props.initialData || {}, onSubmit: function () { }, children: (0, jsx_runtime_1.jsx)(formik_1.Form, { children: (0, jsx_runtime_1.jsx)(form_handler_1.default, __assign({}, props, { children: props.children })) }) }));
|
|
23
23
|
}
|
|
24
24
|
exports.FormHandler = FormHandler;
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/handler/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,iCAAqC;AAErC,gEAAwC;AAGxC,SAAgB,WAAW,CAAC,KAAmB;IAC7C,OAAO,CACL,uBAAC,eAAM,IAAC,aAAa,EAAE,KAAK,CAAC,WAAW,EAAE,QAAQ,EAAE,cAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/handler/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,iCAAqC;AAErC,gEAAwC;AAGxC,SAAgB,WAAW,CAAC,KAAmB;IAC7C,OAAO,CACL,uBAAC,eAAM,IAAC,aAAa,EAAE,KAAK,CAAC,WAAW,IAAI,EAAE,EAAE,QAAQ,EAAE,cAAO,CAAC,YAChE,uBAAC,aAAI,cACH,uBAAC,sBAAW,eAAK,KAAK,cAAG,KAAK,CAAC,QAAQ,IAAe,GACjD,GACA,CACV,CAAA;AACH,CAAC;AARD,kCAQC"}
|
|
@@ -2,11 +2,11 @@ export * from "./input/index.js";
|
|
|
2
2
|
export * from "./radio/index.js";
|
|
3
3
|
export * from "./select/index.js";
|
|
4
4
|
export * from "./handler/index.js";
|
|
5
|
-
export * from "./helpers/index.js";
|
|
6
5
|
export * from "./textarea/index.js";
|
|
7
6
|
export * from "./checkbox/index.js";
|
|
8
7
|
export * from "./input-mask/index.js";
|
|
9
8
|
export * from "./input-file/index.js";
|
|
9
|
+
export * from "./input-switch/index.js";
|
|
10
10
|
export * from "./input-control/index.js";
|
|
11
11
|
export * from "./input-password/index.js";
|
|
12
12
|
export * from "./input-cpf-cnpj/index.js";
|
|
@@ -18,11 +18,11 @@ __exportStar(require("./input/index.js"), exports);
|
|
|
18
18
|
__exportStar(require("./radio/index.js"), exports);
|
|
19
19
|
__exportStar(require("./select/index.js"), exports);
|
|
20
20
|
__exportStar(require("./handler/index.js"), exports);
|
|
21
|
-
__exportStar(require("./helpers/index.js"), exports);
|
|
22
21
|
__exportStar(require("./textarea/index.js"), exports);
|
|
23
22
|
__exportStar(require("./checkbox/index.js"), exports);
|
|
24
23
|
__exportStar(require("./input-mask/index.js"), exports);
|
|
25
24
|
__exportStar(require("./input-file/index.js"), exports);
|
|
25
|
+
__exportStar(require("./input-switch/index.js"), exports);
|
|
26
26
|
__exportStar(require("./input-control/index.js"), exports);
|
|
27
27
|
__exportStar(require("./input-password/index.js"), exports);
|
|
28
28
|
__exportStar(require("./input-cpf-cnpj/index.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/components/form/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,4CAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/components/form/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B;AAC3B,+CAA6B;AAC7B,+CAA6B;AAC7B,iDAA+B;AAC/B,kDAAgC;AAChC,mDAAiC;AACjC,mDAAiC"}
|