infinity-forge 0.7.2 → 0.7.4
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/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/sites/components/brands-carousel/index.d.ts +1 -1
- package/dist/sites/components/brands-carousel/index.js +3 -3
- package/dist/sites/components/brands-carousel/interfaces.d.ts +1 -1
- package/dist/sites/components/carousel/component.d.ts +1 -1
- package/dist/sites/components/carousel/component.js +1 -1
- package/dist/sites/components/carousel/index.d.ts +1 -1
- package/dist/sites/components/carousel/index.js +1 -1
- package/dist/sites/components/carousel/interfaces.d.ts +1 -1
- package/dist/sites/components/carousel/versions/index.d.ts +1 -1
- package/dist/sites/components/carousel/versions/index.js +1 -1
- 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 +1 -1
- package/dist/sites/components/counter/component.d.ts +1 -1
- package/dist/sites/components/counter/component.js +1 -1
- package/dist/sites/components/counter/index.d.ts +1 -1
- package/dist/sites/components/counter/index.js +1 -1
- package/dist/sites/components/counter/interfaces.d.ts +1 -1
- package/dist/sites/components/counter/versions/index.d.ts +1 -1
- package/dist/sites/components/counter/versions/index.js +1 -1
- package/dist/sites/components/counter/versions/version-01/box/index.d.ts +1 -1
- package/dist/sites/components/counter/versions/version-01/box/index.js +2 -2
- package/dist/sites/components/counter/versions/version-01/component.d.ts +1 -1
- package/dist/sites/components/counter/versions/version-01/component.js +3 -3
- package/dist/sites/components/head/component.d.ts +1 -1
- package/dist/sites/components/head/index.d.ts +2 -2
- package/dist/sites/components/head/index.js +2 -2
- package/dist/sites/components/header-link/component.d.ts +1 -1
- package/dist/sites/components/header-link/component.js +1 -1
- package/dist/sites/components/header-link/index.d.ts +1 -1
- package/dist/sites/components/header-link/index.js +1 -1
- package/dist/sites/components/header-link/interfaces.d.ts +1 -1
- package/dist/sites/components/header-link/versions/index.d.ts +1 -1
- package/dist/sites/components/header-link/versions/index.js +1 -1
- package/dist/sites/components/header-link/versions/version-01/component.js +2 -2
- package/dist/sites/components/header-link/versions/version-01/component.stories.d.ts +1 -1
- package/dist/sites/components/header-link/versions/version-01/component.stories.js +2 -2
- package/dist/sites/components/index.d.ts +6 -6
- package/dist/sites/components/index.js +6 -6
- package/dist/sites/components/mvv/component.d.ts +1 -1
- package/dist/sites/components/mvv/component.js +1 -1
- package/dist/sites/components/mvv/index.d.ts +1 -1
- package/dist/sites/components/mvv/index.js +1 -1
- package/dist/sites/components/mvv/interfaces.d.ts +1 -1
- package/dist/sites/components/mvv/versions/index.d.ts +1 -1
- package/dist/sites/components/mvv/versions/index.js +1 -1
- package/dist/sites/components/mvv/versions/version-01/component.d.ts +1 -1
- package/dist/sites/components/mvv/versions/version-01/component.js +2 -2
- package/dist/sites/context/configs/context.d.ts +1 -1
- package/dist/sites/context/configs/context.js +3 -3
- package/dist/sites/context/configs/index.d.ts +2 -2
- package/dist/sites/context/configs/index.js +2 -2
- package/dist/sites/context/configs/scripts/acept-cookies/index.js +2 -2
- package/dist/sites/context/configs/scripts/acept-ratedr/index.js +2 -2
- package/dist/sites/context/configs/scripts/component.d.ts +1 -1
- package/dist/sites/context/configs/scripts/component.js +4 -4
- package/dist/sites/context/configs/scripts/index.d.ts +5 -5
- package/dist/sites/context/configs/scripts/index.js +5 -5
- package/dist/sites/context/configs/scripts/interfaces.d.ts +1 -1
- package/dist/sites/context/configs/scripts/whatsapp-fixed/index.js +1 -1
- package/dist/sites/context/index.d.ts +1 -1
- package/dist/sites/context/index.js +1 -1
- package/dist/sites/hook/index.d.ts +3 -3
- package/dist/sites/hook/index.js +3 -3
- package/dist/sites/index.d.ts +3 -3
- package/dist/sites/index.js +3 -3
- package/dist/sites/interfaces/api-data/index.d.ts +0 -1
- package/dist/sites/interfaces/api-data/index.js +0 -18
- package/dist/sites/interfaces/index.d.ts +0 -2
- package/dist/sites/interfaces/index.js +0 -19
- package/dist/system/container/admin/auth/container.js +2 -2
- package/dist/system/container/admin/auth/index.d.ts +2 -2
- package/dist/system/container/admin/auth/index.js +2 -2
- package/dist/system/container/admin/index.d.ts +3 -3
- package/dist/system/container/admin/index.js +3 -3
- package/dist/system/container/admin/menu/container.js +2 -2
- package/dist/system/container/admin/menu/index.d.ts +2 -2
- package/dist/system/container/admin/menu/index.js +2 -2
- package/dist/system/container/admin/users/container.js +2 -2
- package/dist/system/container/admin/users/index.d.ts +2 -2
- package/dist/system/container/admin/users/index.js +2 -2
- package/dist/system/container/decorators/authorize-http-client-decorator.d.ts +2 -2
- package/dist/system/container/decorators/authorize-http-client-decorator.js +3 -3
- package/dist/system/container/decorators/index.d.ts +1 -1
- package/dist/system/container/decorators/index.js +1 -1
- package/dist/system/container/index.d.ts +2 -2
- package/dist/system/container/index.js +2 -2
- package/dist/system/container/infra/container.js +4 -4
- package/dist/system/container/infra/index.d.ts +3 -3
- package/dist/system/container/infra/index.js +3 -3
- package/dist/system/container/main.d.ts +1 -1
- package/dist/system/container/main.js +3 -3
- package/dist/system/container/types.js +1 -1
- package/dist/system/data/index.d.ts +1 -1
- package/dist/system/data/index.js +1 -1
- package/dist/system/data/use-cases/auth/index.d.ts +1 -1
- package/dist/system/data/use-cases/auth/index.js +1 -1
- package/dist/system/data/use-cases/auth/remote-auth-admin.d.ts +3 -3
- package/dist/system/data/use-cases/auth/remote-auth-admin.js +4 -4
- package/dist/system/data/use-cases/index.d.ts +3 -3
- package/dist/system/data/use-cases/index.js +3 -3
- package/dist/system/data/use-cases/menu/index.d.ts +1 -1
- package/dist/system/data/use-cases/menu/index.js +1 -1
- package/dist/system/data/use-cases/menu/remote-get-menu.d.ts +2 -2
- package/dist/system/data/use-cases/menu/remote-get-menu.js +3 -3
- package/dist/system/data/use-cases/users/index.d.ts +2 -2
- package/dist/system/data/use-cases/users/index.js +2 -2
- package/dist/system/data/use-cases/users/remote-load-user-admin.d.ts +2 -2
- package/dist/system/data/use-cases/users/remote-load-user-admin.js +3 -3
- package/dist/system/data/use-cases/users/remote-users.d.ts +2 -2
- package/dist/system/data/use-cases/users/remote-users.js +3 -3
- package/dist/system/domain/generics/index.d.ts +2 -2
- package/dist/system/domain/generics/index.js +2 -2
- package/dist/system/domain/index.d.ts +3 -3
- package/dist/system/domain/index.js +3 -3
- package/dist/system/domain/protocols/cache/get-storage.d.ts +1 -1
- package/dist/system/domain/protocols/cache/index.d.ts +3 -3
- package/dist/system/domain/protocols/cache/index.js +3 -3
- package/dist/system/domain/protocols/cache/set-storage.d.ts +1 -1
- package/dist/system/domain/protocols/http/errors/http-errors/index.d.ts +5 -5
- package/dist/system/domain/protocols/http/errors/http-errors/index.js +5 -5
- package/dist/system/domain/protocols/http/errors/index.d.ts +2 -2
- package/dist/system/domain/protocols/http/errors/index.js +2 -2
- package/dist/system/domain/protocols/http/errors/system-errors-model/index.d.ts +1 -1
- package/dist/system/domain/protocols/http/errors/system-errors-model/index.js +1 -1
- package/dist/system/domain/protocols/http/http-client.d.ts +1 -1
- package/dist/system/domain/protocols/http/index.d.ts +2 -2
- package/dist/system/domain/protocols/http/index.js +2 -2
- package/dist/system/domain/protocols/index.d.ts +2 -2
- package/dist/system/domain/protocols/index.js +2 -2
- package/dist/system/domain/use-cases/auth/admin/index.d.ts +1 -1
- package/dist/system/domain/use-cases/auth/admin/index.js +1 -1
- package/dist/system/domain/use-cases/auth/index.d.ts +1 -1
- package/dist/system/domain/use-cases/auth/index.js +1 -1
- package/dist/system/domain/use-cases/index.d.ts +3 -3
- package/dist/system/domain/use-cases/index.js +3 -3
- package/dist/system/domain/use-cases/menu/index.d.ts +1 -1
- package/dist/system/domain/use-cases/menu/index.js +1 -1
- package/dist/system/domain/use-cases/menu/load-menu.d.ts +2 -2
- package/dist/system/domain/use-cases/users/delete-user.d.ts +1 -1
- package/dist/system/domain/use-cases/users/edit-user.d.ts +1 -1
- package/dist/system/domain/use-cases/users/get-detail-user.d.ts +1 -1
- package/dist/system/domain/use-cases/users/index.d.ts +6 -6
- package/dist/system/domain/use-cases/users/index.js +6 -6
- package/dist/system/domain/use-cases/users/load-all-users.d.ts +1 -1
- package/dist/system/index.d.ts +5 -5
- package/dist/system/index.js +5 -5
- package/dist/system/infra/cache/cookie-storage-adapter.d.ts +2 -2
- package/dist/system/infra/cache/index.d.ts +2 -2
- package/dist/system/infra/cache/index.js +2 -2
- package/dist/system/infra/cache/storage-type.d.ts +1 -1
- package/dist/system/infra/http/axios-http-client.d.ts +1 -1
- package/dist/system/infra/http/axios-http-client.js +2 -2
- package/dist/system/infra/http/index.d.ts +1 -1
- package/dist/system/infra/http/index.js +1 -1
- package/dist/system/infra/index.d.ts +3 -3
- package/dist/system/infra/index.js +3 -3
- package/dist/system/infra/type-models/index.d.ts +2 -2
- package/dist/system/infra/type-models/index.js +2 -2
- package/dist/system/presentation/components/data/avatar/index.js +0 -57
- package/dist/system/presentation/components/data/cards/index.d.ts +0 -1
- package/dist/system/presentation/components/data/cards/index.js +0 -18
- package/dist/system/presentation/components/data/cards/message-card/index.d.ts +0 -2
- package/dist/system/presentation/components/data/cards/message-card/index.js +0 -37
- package/dist/system/presentation/components/data/index.d.ts +0 -8
- package/dist/system/presentation/components/data/index.js +0 -25
- package/dist/system/presentation/components/data/logo/index.js +0 -34
- package/dist/system/presentation/components/data/overlay/index.d.ts +0 -2
- package/dist/system/presentation/components/data/overlay/index.js +0 -35
- package/dist/system/presentation/components/data/page-wrapper/index.d.ts +0 -2
- package/dist/system/presentation/components/data/page-wrapper/index.js +0 -35
- package/dist/system/presentation/components/data/popover/index.d.ts +0 -2
- package/dist/system/presentation/components/data/sign-up/index.js +0 -36
- package/dist/system/presentation/components/data/skeleton/index.d.ts +0 -2
- package/dist/system/presentation/components/data/skeleton/index.js +0 -35
- package/dist/system/presentation/components/index.d.ts +3 -3
- package/dist/system/presentation/components/index.js +3 -3
- package/dist/system/presentation/components/layout/component.d.ts +1 -1
- package/dist/system/presentation/components/layout/component.js +3 -3
- package/dist/system/presentation/components/layout/header/components/index.d.ts +2 -2
- package/dist/system/presentation/components/layout/header/components/index.js +2 -2
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js +6 -6
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/search-modal/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +2 -2
- package/dist/system/presentation/components/layout/header/index.js +1 -1
- package/dist/system/presentation/components/layout/header/version-01/index.js +3 -3
- package/dist/system/presentation/components/layout/index.d.ts +3 -3
- package/dist/system/presentation/components/layout/index.js +3 -3
- package/dist/system/presentation/components/layout/menu/components/index.d.ts +0 -2
- package/dist/system/presentation/components/layout/menu/components/index.js +0 -19
- package/dist/system/presentation/components/layout/menu/components/menu/index.js +0 -56
- package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js +0 -65
- package/dist/system/presentation/components/layout/menu/index.js +1 -1
- package/dist/system/presentation/components/layout/menu/version-01/index.d.ts +0 -4
- package/dist/system/presentation/components/layout/menu/version-01/index.js +0 -36
- package/dist/system/presentation/components/pages/index.d.ts +0 -1
- package/dist/system/presentation/components/pages/index.js +0 -18
- package/dist/system/presentation/components/pages/users/index.d.ts +0 -1
- package/dist/system/presentation/components/pages/users/index.js +0 -18
- package/dist/system/presentation/components/pages/users/page.js +0 -40
- package/dist/system/presentation/components/pages/users/table/columns.d.ts +0 -3
- package/dist/system/presentation/components/pages/users/table/create.d.ts +0 -3
- package/dist/system/presentation/components/pages/users/table/create.js +0 -74
- package/dist/system/presentation/components/pages/users/table/delete.js +0 -73
- package/dist/system/presentation/components/pages/users/table/edit.d.ts +0 -3
- package/dist/system/presentation/components/pages/users/table/edit.js +0 -82
- package/dist/system/presentation/components/pages/users/table/index.d.ts +0 -4
- package/dist/system/presentation/components/pages/users/table/index.js +0 -21
- package/dist/system/presentation/configs/index.d.ts +0 -2
- package/dist/system/presentation/configs/index.js +0 -19
- package/dist/system/presentation/context/auth/authenticated/index.js +0 -15
- package/dist/system/presentation/context/auth/context.d.ts +0 -7
- package/dist/system/presentation/context/auth/context.js +0 -130
- package/dist/system/presentation/context/auth/index.d.ts +0 -5
- package/dist/system/presentation/context/auth/index.js +0 -22
- package/dist/system/presentation/context/auth/interfaces.d.ts +0 -6
- package/dist/system/presentation/context/auth/login/index.js +0 -36
- package/dist/system/presentation/context/auth/private-page/index.js +0 -17
- package/dist/system/presentation/context/auth/unauthenticated/index.js +0 -15
- package/dist/system/presentation/context/container.js +0 -12
- package/dist/system/presentation/context/index.d.ts +0 -2
- package/dist/system/presentation/context/index.js +0 -19
- package/dist/system/presentation/hooks/index.d.ts +0 -2
- package/dist/system/presentation/hooks/index.js +0 -19
- package/dist/system/presentation/hooks/menu/index.d.ts +0 -1
- package/dist/system/presentation/hooks/menu/index.js +0 -18
- package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +0 -1
- package/dist/system/presentation/hooks/menu/use-load-menu.js +0 -62
- package/dist/system/presentation/hooks/ui/index.d.ts +0 -1
- package/dist/system/presentation/hooks/ui/index.js +0 -18
- package/dist/system/presentation/hooks/ui/use-table/component.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/component.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/index.js +0 -18
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.d.ts +0 -5
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +0 -105
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +0 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +0 -90
- package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +0 -14
- package/dist/system/presentation/hooks/ui/use-table/components/table/loader-table/index.js +0 -33
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +0 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +0 -62
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +0 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +0 -49
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +0 -6
- package/dist/system/presentation/hooks/ui/use-table/index.d.ts +3 -3
- package/dist/system/presentation/hooks/ui/use-table/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +3 -3
- package/dist/system/presentation/hooks/ui/use-table/query.d.ts +2 -2
- package/dist/system/presentation/index.d.ts +5 -5
- package/dist/system/presentation/index.js +5 -5
- package/dist/system/presentation/utils/index.d.ts +1 -1
- package/dist/system/presentation/utils/index.js +1 -1
- package/dist/system/presentation/utils/use-query/index.d.ts +1 -1
- package/dist/system/presentation/utils/use-query/index.js +1 -1
- package/dist/ui/components/accordion/index..d.ts +1 -1
- package/dist/ui/components/accordion/index..js +2 -2
- package/dist/ui/components/breadcrumb/index.d.ts +1 -1
- package/dist/ui/components/breadcrumb/index.js +1 -1
- package/dist/ui/components/button/component.d.ts +1 -1
- package/dist/ui/components/button/component.js +2 -2
- package/dist/ui/components/button/index.d.ts +2 -2
- package/dist/ui/components/button/index.js +2 -2
- package/dist/ui/components/button/interfaces.d.ts +1 -1
- package/dist/ui/components/container/index.d.ts +1 -1
- package/dist/ui/components/error-boundary/component.d.ts +1 -1
- package/dist/ui/components/error-boundary/component.js +1 -1
- package/dist/ui/components/error-boundary/error-body.d.ts +1 -1
- package/dist/ui/components/error-boundary/index.d.ts +2 -2
- package/dist/ui/components/error-boundary/index.js +2 -2
- package/dist/ui/components/form/checkbox/index.js +3 -3
- package/dist/ui/components/form/handler/custom-submit/index.d.ts +1 -1
- package/dist/ui/components/form/handler/custom-submit/index.js +1 -1
- package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +1 -1
- package/dist/ui/components/form/handler/dynamic_form_handler/index.js +3 -3
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +4 -4
- package/dist/ui/components/form/handler/form-handler/index.d.ts +1 -1
- package/dist/ui/components/form/handler/form-handler/index.js +5 -5
- package/dist/ui/components/form/handler/index.d.ts +0 -2
- package/dist/ui/components/form/handler/index.js +0 -25
- package/dist/ui/components/form/handler/interfaces.d.ts +2 -2
- package/dist/ui/components/form/index.d.ts +13 -13
- package/dist/ui/components/form/index.js +13 -13
- package/dist/ui/components/form/input/index.d.ts +1 -1
- package/dist/ui/components/form/input/index.js +1 -1
- package/dist/ui/components/form/input-control/error/index.d.ts +1 -1
- package/dist/ui/components/form/input-control/error/index.js +1 -1
- package/dist/ui/components/form/input-control/index.d.ts +1 -1
- package/dist/ui/components/form/input-control/index.js +5 -5
- package/dist/ui/components/form/input-control/label/index.js +1 -1
- package/dist/ui/components/form/input-control/loader-input/index.js +2 -2
- package/dist/ui/components/form/input-cpf-cnpj/index.d.ts +1 -1
- package/dist/ui/components/form/input-cpf-cnpj/index.js +1 -1
- package/dist/ui/components/form/input-currency/index.d.ts +1 -1
- package/dist/ui/components/form/input-currency/index.js +1 -1
- package/dist/ui/components/form/input-file/index.d.ts +1 -1
- package/dist/ui/components/form/input-file/index.js +1 -1
- package/dist/ui/components/form/input-mask/index.d.ts +1 -1
- package/dist/ui/components/form/input-mask/index.js +1 -1
- package/dist/ui/components/form/input-password/index.d.ts +1 -1
- package/dist/ui/components/form/input-password/index.js +3 -3
- package/dist/ui/components/form/input-switch/index.d.ts +1 -1
- package/dist/ui/components/form/input-switch/index.js +1 -1
- package/dist/ui/components/form/radio/index.js +2 -2
- package/dist/ui/components/form/select/index.d.ts +1 -1
- package/dist/ui/components/form/select/index.js +2 -2
- package/dist/ui/components/form/select/interfaces.d.ts +1 -1
- package/dist/ui/components/form/textarea/index.d.ts +1 -1
- package/dist/ui/components/form/textarea/index.js +1 -1
- package/dist/ui/components/index.d.ts +10 -10
- package/dist/ui/components/index.js +10 -10
- package/dist/ui/components/loader-circle/index.d.ts +1 -1
- package/dist/ui/components/loading-screen/index.d.ts +1 -1
- package/dist/ui/components/loading-screen/index.js +3 -3
- package/dist/ui/components/menu-mobile/components/nav-links/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/components/nav-links/index.js +2 -2
- package/dist/ui/components/menu-mobile/components/nav-links/interfaces.d.ts +1 -1
- package/dist/ui/components/menu-mobile/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/index.js +4 -4
- package/dist/ui/components/menu-mobile/top/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/top/index.js +2 -2
- package/dist/ui/components/menu-mobile/top/interfaces.d.ts +1 -1
- package/dist/ui/components/next-image/index.d.ts +1 -1
- package/dist/ui/components/next-image/index.js +3 -3
- package/dist/ui/components/sidebar/index.d.ts +1 -1
- package/dist/ui/components/sidebar/index.js +1 -1
- package/dist/ui/contexts/index.d.ts +3 -3
- package/dist/ui/contexts/index.js +3 -3
- package/dist/ui/contexts/theme/context.js +1 -1
- package/dist/ui/contexts/theme/index.d.ts +2 -2
- package/dist/ui/contexts/theme/index.js +2 -2
- package/dist/ui/contexts/toast/index.d.ts +1 -1
- package/dist/ui/contexts/toast/index.js +3 -3
- package/dist/ui/contexts/toast/toast-item/index.d.ts +1 -1
- package/dist/ui/contexts/toast/toast-item/index.js +1 -1
- package/dist/ui/hooks/index.d.ts +2 -2
- package/dist/ui/hooks/index.js +2 -2
- package/dist/ui/icons/index.d.ts +55 -55
- package/dist/ui/icons/index.js +55 -55
- package/dist/ui/icons/render/Carousel-left-icon.d.ts +1 -1
- package/dist/ui/icons/render/Carousel-right-icon.d.ts +1 -1
- package/dist/ui/icons/render/Check.d.ts +1 -1
- package/dist/ui/icons/render/Clock.d.ts +1 -1
- package/dist/ui/icons/render/Close.d.ts +1 -1
- package/dist/ui/icons/render/Codie.d.ts +1 -1
- package/dist/ui/icons/render/Edit.d.ts +1 -1
- package/dist/ui/icons/render/Email.d.ts +1 -1
- package/dist/ui/icons/render/Eye.d.ts +1 -1
- package/dist/ui/icons/render/Facebook.d.ts +1 -1
- package/dist/ui/icons/render/File.d.ts +1 -1
- package/dist/ui/icons/render/Folder.d.ts +1 -1
- package/dist/ui/icons/render/Globe.d.ts +1 -1
- package/dist/ui/icons/render/Home.d.ts +1 -1
- package/dist/ui/icons/render/Insagram.d.ts +1 -1
- package/dist/ui/icons/render/Linkedin.d.ts +1 -1
- package/dist/ui/icons/render/LongArrowRight.d.ts +1 -1
- package/dist/ui/icons/render/Lupa.d.ts +1 -1
- package/dist/ui/icons/render/Map.d.ts +1 -1
- package/dist/ui/icons/render/Microphone.d.ts +1 -1
- package/dist/ui/icons/render/Minus.d.ts +1 -1
- package/dist/ui/icons/render/NavDown.d.ts +1 -1
- package/dist/ui/icons/render/NavLeft.d.ts +1 -1
- package/dist/ui/icons/render/NavRight.d.ts +1 -1
- package/dist/ui/icons/render/NavUp.d.ts +1 -1
- package/dist/ui/icons/render/Phone.d.ts +1 -1
- package/dist/ui/icons/render/Pin.d.ts +1 -1
- package/dist/ui/icons/render/Play.d.ts +1 -1
- package/dist/ui/icons/render/Plus.d.ts +1 -1
- package/dist/ui/icons/render/Share.d.ts +1 -1
- package/dist/ui/icons/render/TikTok.d.ts +1 -1
- package/dist/ui/icons/render/Twitter.d.ts +1 -1
- package/dist/ui/icons/render/YouTube.d.ts +1 -1
- package/dist/ui/icons/render/box.d.ts +1 -1
- package/dist/ui/icons/render/calendar.d.ts +1 -1
- package/dist/ui/icons/render/chat.d.ts +1 -1
- package/dist/ui/icons/render/component.d.ts +1 -1
- package/dist/ui/icons/render/component.js +1 -1
- package/dist/ui/icons/render/delete.d.ts +1 -1
- package/dist/ui/icons/render/exclamation.d.ts +1 -1
- package/dist/ui/icons/render/eye-off.d.ts +1 -1
- package/dist/ui/icons/render/fullfield-bell.d.ts +1 -1
- package/dist/ui/icons/render/fullfield-chat.d.ts +1 -1
- package/dist/ui/icons/render/image.d.ts +1 -1
- package/dist/ui/icons/render/index.d.ts +1 -1
- package/dist/ui/icons/render/index.js +1 -1
- package/dist/ui/icons/render/keyboard-left-arrow.d.ts +1 -1
- package/dist/ui/icons/render/keyboard-right-arrow.d.ts +1 -1
- package/dist/ui/icons/render/loading.d.ts +1 -1
- package/dist/ui/icons/render/not-found.d.ts +1 -1
- package/dist/ui/icons/render/phone-message.d.ts +1 -1
- package/dist/ui/icons/render/plus-sharp.d.ts +1 -1
- package/dist/ui/icons/render/shopping.d.ts +1 -1
- package/dist/ui/icons/render/transparent-mail.d.ts +1 -1
- package/dist/ui/icons/render/transparent-phone.d.ts +1 -1
- package/dist/ui/icons/render/user.d.ts +1 -1
- package/dist/ui/icons/render/whats.d.ts +1 -1
- package/dist/ui/icons/render-icon/index.d.ts +1 -1
- package/dist/ui/icons/render-icon/index.js +1 -1
- package/dist/ui/index.d.ts +5 -5
- package/dist/ui/index.js +5 -5
- package/dist/ui/utils/facebook/index.d.ts +1 -1
- package/dist/ui/utils/facebook/index.js +1 -1
- package/dist/ui/utils/index.d.ts +5 -5
- package/dist/ui/utils/index.js +5 -5
- package/dist/ui/utils/libs/index.d.ts +1 -1
- package/dist/ui/utils/libs/index.js +1 -1
- package/dist/ui/utils/libs/next/index.d.ts +2 -2
- package/dist/ui/utils/libs/next/index.js +2 -2
- package/dist/ui/utils/validations/index.d.ts +2 -2
- package/dist/ui/utils/validations/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
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;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.useCreateTable = void 0;
|
|
40
|
-
var swr_1 = require("swr");
|
|
41
|
-
var ui_1 = require("@/ui");
|
|
42
|
-
var system_1 = require("@/system");
|
|
43
|
-
function useCreateTable(queryKey) {
|
|
44
|
-
var _this = this;
|
|
45
|
-
var createToast = (0, ui_1.useToast)().createToast;
|
|
46
|
-
var createTable = {
|
|
47
|
-
title: 'Criar usuário',
|
|
48
|
-
button: { text: 'Criar' },
|
|
49
|
-
initialData: { isExternal: false },
|
|
50
|
-
onSucess: function (data) { return __awaiter(_this, void 0, void 0, function () {
|
|
51
|
-
return __generator(this, function (_a) {
|
|
52
|
-
switch (_a.label) {
|
|
53
|
-
case 0: return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteUsers).create(data)];
|
|
54
|
-
case 1:
|
|
55
|
-
_a.sent();
|
|
56
|
-
(0, swr_1.mutate)(queryKey);
|
|
57
|
-
createToast({ message: 'Criado com sucesso!', status: 'success' });
|
|
58
|
-
return [2 /*return*/];
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
}); },
|
|
62
|
-
inputs: [
|
|
63
|
-
[{ name: 'emailAddress', inputComponent: 'Input', type: 'email', label: 'Email' }],
|
|
64
|
-
[
|
|
65
|
-
{ name: 'firstName', inputComponent: 'Input', type: 'text', label: 'Primeiro Nome' },
|
|
66
|
-
{ name: 'lastName', inputComponent: 'Input', type: 'text', label: 'Sobrenome' },
|
|
67
|
-
],
|
|
68
|
-
[{ name: 'password', inputComponent: 'InputPassword', type: 'password', label: 'Senha' }],
|
|
69
|
-
],
|
|
70
|
-
};
|
|
71
|
-
return createTable;
|
|
72
|
-
}
|
|
73
|
-
exports.useCreateTable = useCreateTable;
|
|
74
|
-
//# sourceMappingURL=create.js.map
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
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;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.useDeleteTable = void 0;
|
|
40
|
-
var container_1 = require("@/system/container");
|
|
41
|
-
var ui_1 = require("@/ui");
|
|
42
|
-
var swr_1 = require("swr");
|
|
43
|
-
function useDeleteTable(queryKey) {
|
|
44
|
-
var createToast = (0, ui_1.useToast)().createToast;
|
|
45
|
-
function executeDelete(tableItem) {
|
|
46
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
47
|
-
var _a;
|
|
48
|
-
return __generator(this, function (_b) {
|
|
49
|
-
switch (_b.label) {
|
|
50
|
-
case 0:
|
|
51
|
-
_b.trys.push([0, 2, , 3]);
|
|
52
|
-
return [4 /*yield*/, container_1.container.get(container_1.Types.RemoteUsers).delete({ id: tableItem.id })];
|
|
53
|
-
case 1:
|
|
54
|
-
_b.sent();
|
|
55
|
-
createToast({ status: 'success', message: 'Usuário deletado com sucesso.' });
|
|
56
|
-
(0, swr_1.mutate)(queryKey);
|
|
57
|
-
return [3 /*break*/, 3];
|
|
58
|
-
case 2:
|
|
59
|
-
_a = _b.sent();
|
|
60
|
-
createToast({
|
|
61
|
-
status: 'error',
|
|
62
|
-
message: 'Aconteceu um erro ao tentar deletar, tente novamente mais tarde.',
|
|
63
|
-
});
|
|
64
|
-
return [3 /*break*/, 3];
|
|
65
|
-
case 3: return [2 /*return*/];
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
return { executeDelete: executeDelete };
|
|
71
|
-
}
|
|
72
|
-
exports.useDeleteTable = useDeleteTable;
|
|
73
|
-
//# sourceMappingURL=delete.js.map
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
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;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.useEditTable = void 0;
|
|
40
|
-
var swr_1 = require("swr");
|
|
41
|
-
var ui_1 = require("@/ui");
|
|
42
|
-
var system_1 = require("@/system");
|
|
43
|
-
function useEditTable(queryKey) {
|
|
44
|
-
var _this = this;
|
|
45
|
-
var createToast = (0, ui_1.useToast)().createToast;
|
|
46
|
-
var editTable = {
|
|
47
|
-
title: 'Editar usuário',
|
|
48
|
-
button: { text: 'Editar' },
|
|
49
|
-
getDetails: {
|
|
50
|
-
key: function (tableItem) { return 'EditUser' + tableItem.id; },
|
|
51
|
-
fetcher: function (tableItem) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
52
|
-
switch (_a.label) {
|
|
53
|
-
case 0: return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteUsers).getDetail({ id: tableItem.id })];
|
|
54
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
55
|
-
}
|
|
56
|
-
}); }); },
|
|
57
|
-
},
|
|
58
|
-
onSucess: function (data) { return __awaiter(_this, void 0, void 0, function () {
|
|
59
|
-
return __generator(this, function (_a) {
|
|
60
|
-
switch (_a.label) {
|
|
61
|
-
case 0: return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteUsers).edit(data)];
|
|
62
|
-
case 1:
|
|
63
|
-
_a.sent();
|
|
64
|
-
(0, swr_1.mutate)(queryKey);
|
|
65
|
-
createToast({ message: 'Editado com sucesso!', status: 'success' });
|
|
66
|
-
return [2 /*return*/];
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}); },
|
|
70
|
-
inputs: [
|
|
71
|
-
[{ name: 'emailAddress', inputComponent: 'Input', type: 'email', label: 'Email' }],
|
|
72
|
-
[
|
|
73
|
-
{ name: 'firstName', inputComponent: 'Input', type: 'text', label: 'Primeiro Nome' },
|
|
74
|
-
{ name: 'lastName', inputComponent: 'Input', type: 'text', label: 'Sobrenome' },
|
|
75
|
-
],
|
|
76
|
-
[{ name: 'roleGate', inputComponent: 'Input', type: 'text', label: 'Role' }],
|
|
77
|
-
],
|
|
78
|
-
};
|
|
79
|
-
return editTable;
|
|
80
|
-
}
|
|
81
|
-
exports.useEditTable = useEditTable;
|
|
82
|
-
//# sourceMappingURL=edit.js.map
|
|
@@ -1,21 +0,0 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./edit"), exports);
|
|
18
|
-
__exportStar(require("./create"), exports);
|
|
19
|
-
__exportStar(require("./delete"), exports);
|
|
20
|
-
__exportStar(require("./columns"), exports);
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,19 +0,0 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./routes"), exports);
|
|
18
|
-
__exportStar(require("./page-links"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,15 +0,0 @@
|
|
|
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");
|
|
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
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IAuthContextType } from './interfaces';
|
|
3
|
-
declare function AuthAdminProvider({ children }: {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function useAuthAdmin(): IAuthContextType;
|
|
7
|
-
export { AuthAdminProvider, useAuthAdmin };
|
|
@@ -1,130 +0,0 @@
|
|
|
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 swr_1 = __importStar(require("swr"));
|
|
66
|
-
var axios_1 = __importStar(require("axios"));
|
|
67
|
-
var ui_1 = require("@/ui");
|
|
68
|
-
var system_1 = require("@/system");
|
|
69
|
-
var AuthContext = (0, react_1.createContext)({});
|
|
70
|
-
function AuthAdminProvider(_a) {
|
|
71
|
-
var children = _a.children;
|
|
72
|
-
var _b = (0, react_1.useState)(undefined), user = _b[0], setUser = _b[1];
|
|
73
|
-
function loadUser() {
|
|
74
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
75
|
-
var user;
|
|
76
|
-
return __generator(this, function (_a) {
|
|
77
|
-
switch (_a.label) {
|
|
78
|
-
case 0: return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteLoadUserAdmin).load()];
|
|
79
|
-
case 1:
|
|
80
|
-
user = _a.sent();
|
|
81
|
-
setUser(user);
|
|
82
|
-
return [2 /*return*/];
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
function signIn(payload) {
|
|
88
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
89
|
-
return __generator(this, function (_a) {
|
|
90
|
-
switch (_a.label) {
|
|
91
|
-
case 0: return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteAuthAdmin).auth(payload)];
|
|
92
|
-
case 1:
|
|
93
|
-
_a.sent();
|
|
94
|
-
return [4 /*yield*/, loadUser()];
|
|
95
|
-
case 2:
|
|
96
|
-
_a.sent();
|
|
97
|
-
return [2 /*return*/];
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
function signOut() {
|
|
103
|
-
setUser(null);
|
|
104
|
-
(0, swr_1.mutate)(function () { return true; }, undefined, { revalidate: false });
|
|
105
|
-
system_1.container.get(system_1.InfraTypes.storage).set('token', { value: null });
|
|
106
|
-
}
|
|
107
|
-
(0, swr_1.default)(user !== null && 'load_user', loadUser);
|
|
108
|
-
(0, react_1.useEffect)(function () {
|
|
109
|
-
axios_1.default.interceptors.response.use(function (r) { return r; }, function (err) {
|
|
110
|
-
var _a;
|
|
111
|
-
if (err instanceof axios_1.AxiosError) {
|
|
112
|
-
if (((_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.status) === 401) {
|
|
113
|
-
signOut();
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
throw err;
|
|
117
|
-
});
|
|
118
|
-
}, []);
|
|
119
|
-
return ((0, jsx_runtime_1.jsxs)(AuthContext.Provider, { value: { user: user, signIn: signIn, signOut: signOut }, children: [user === undefined && (0, jsx_runtime_1.jsx)(ui_1.LoadingScreen, { size: 30, color: '#000' }), children] }));
|
|
120
|
-
}
|
|
121
|
-
exports.AuthAdminProvider = AuthAdminProvider;
|
|
122
|
-
function useAuthAdmin() {
|
|
123
|
-
var context = (0, react_1.useContext)(AuthContext);
|
|
124
|
-
if (context === undefined) {
|
|
125
|
-
throw new Error('useAuthAdmin() must be used within a AuthProvider');
|
|
126
|
-
}
|
|
127
|
-
return context;
|
|
128
|
-
}
|
|
129
|
-
exports.useAuthAdmin = useAuthAdmin;
|
|
130
|
-
//# sourceMappingURL=context.js.map
|
|
@@ -1,22 +0,0 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./login"), exports);
|
|
18
|
-
__exportStar(require("./context"), exports);
|
|
19
|
-
__exportStar(require("./private-page"), exports);
|
|
20
|
-
__exportStar(require("./authenticated"), exports);
|
|
21
|
-
__exportStar(require("./unauthenticated"), exports);
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.Login = void 0;
|
|
27
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var context_1 = require("../context");
|
|
29
|
-
var ui_1 = require("@/ui");
|
|
30
|
-
var S = __importStar(require("./styles"));
|
|
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
|
-
}
|
|
35
|
-
exports.Login = Login;
|
|
36
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,17 +0,0 @@
|
|
|
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");
|
|
6
|
-
var login_1 = require("../login");
|
|
7
|
-
var context_1 = require("../context");
|
|
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
|
|
@@ -1,15 +0,0 @@
|
|
|
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");
|
|
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
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InfinityForgeProviders = void 0;
|
|
4
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var ui_1 = require("@/ui");
|
|
6
|
-
var auth_1 = require("./auth");
|
|
7
|
-
function InfinityForgeProviders(_a) {
|
|
8
|
-
var children = _a.children;
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(auth_1.AuthAdminProvider, { children: (0, jsx_runtime_1.jsx)(ui_1.ToastProvider, { children: children }) }));
|
|
10
|
-
}
|
|
11
|
-
exports.InfinityForgeProviders = InfinityForgeProviders;
|
|
12
|
-
//# sourceMappingURL=container.js.map
|
|
@@ -1,19 +0,0 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./auth"), exports);
|
|
18
|
-
__exportStar(require("./container"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,19 +0,0 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ui"), exports);
|
|
18
|
-
__exportStar(require("./menu"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './use-load-menu';
|
|
@@ -1,18 +0,0 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./use-load-menu"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useLoadMenu(): import("swr/dist/_internal").SWRResponse<import("@/system").LoadMenu.Model, any, any>;
|