infinity-forge 0.5.0 → 0.5.3
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 +1 -1
- package/dist/sites/interfaces/api-data/index.js +1 -1
- package/dist/sites/interfaces/index.d.ts +2 -2
- package/dist/sites/interfaces/index.js +2 -2
- package/dist/system/container/admin/auth/container.js +0 -11
- package/dist/system/container/admin/auth/index.d.ts +0 -2
- package/dist/system/container/admin/auth/index.js +0 -19
- package/dist/system/container/admin/index.d.ts +0 -3
- package/dist/system/container/admin/index.js +0 -20
- package/dist/system/container/admin/menu/container.js +0 -11
- package/dist/system/container/admin/menu/index.d.ts +0 -2
- package/dist/system/container/admin/menu/index.js +0 -19
- package/dist/system/container/admin/users/container.js +0 -12
- package/dist/system/container/admin/users/index.d.ts +0 -2
- package/dist/system/container/admin/users/index.js +0 -19
- package/dist/system/container/decorators/authorize-http-client-decorator.d.ts +0 -8
- package/dist/system/container/decorators/authorize-http-client-decorator.js +0 -117
- package/dist/system/container/decorators/index.d.ts +0 -1
- package/dist/system/container/decorators/index.js +0 -18
- package/dist/system/container/index.d.ts +0 -2
- package/dist/system/container/index.js +0 -19
- package/dist/system/container/infra/container.js +0 -15
- package/dist/system/container/infra/index.d.ts +0 -3
- package/dist/system/container/infra/index.js +0 -20
- package/dist/system/container/main.d.ts +0 -4
- package/dist/system/container/main.js +0 -12
- package/dist/system/container/types.js +0 -17
- package/dist/system/data/index.d.ts +0 -1
- package/dist/system/data/index.js +0 -18
- package/dist/system/data/use-cases/auth/index.d.ts +0 -1
- package/dist/system/data/use-cases/auth/index.js +0 -18
- package/dist/system/data/use-cases/auth/remote-auth-admin.d.ts +0 -10
- package/dist/system/data/use-cases/auth/remote-auth-admin.js +0 -116
- package/dist/system/data/use-cases/index.d.ts +0 -3
- package/dist/system/data/use-cases/index.js +0 -20
- package/dist/system/data/use-cases/menu/index.d.ts +0 -1
- package/dist/system/data/use-cases/menu/index.js +0 -18
- package/dist/system/data/use-cases/menu/remote-get-menu.d.ts +0 -8
- package/dist/system/data/use-cases/menu/remote-get-menu.js +0 -109
- package/dist/system/data/use-cases/users/index.d.ts +0 -2
- package/dist/system/data/use-cases/users/index.js +0 -19
- package/dist/system/data/use-cases/users/remote-load-user-admin.d.ts +0 -8
- package/dist/system/data/use-cases/users/remote-load-user-admin.js +0 -109
- package/dist/system/data/use-cases/users/remote-users.d.ts +0 -12
- package/dist/system/data/use-cases/users/remote-users.js +0 -177
- package/dist/system/domain/generics/index.d.ts +0 -2
- package/dist/system/domain/generics/index.js +0 -19
- package/dist/system/domain/index.d.ts +0 -3
- package/dist/system/domain/index.js +0 -20
- package/dist/system/domain/protocols/cache/get-storage.d.ts +0 -4
- package/dist/system/domain/protocols/cache/index.d.ts +0 -3
- package/dist/system/domain/protocols/cache/index.js +0 -20
- package/dist/system/domain/protocols/cache/set-storage.d.ts +0 -4
- package/dist/system/domain/protocols/http/errors/http-errors/index.d.ts +0 -5
- package/dist/system/domain/protocols/http/errors/http-errors/index.js +0 -22
- package/dist/system/domain/protocols/http/errors/index.d.ts +0 -2
- package/dist/system/domain/protocols/http/errors/index.js +0 -19
- package/dist/system/domain/protocols/http/errors/system-errors-model/index.d.ts +0 -1
- package/dist/system/domain/protocols/http/errors/system-errors-model/index.js +0 -18
- package/dist/system/domain/protocols/http/http-client.d.ts +0 -33
- package/dist/system/domain/protocols/http/index.d.ts +0 -2
- package/dist/system/domain/protocols/http/index.js +0 -19
- package/dist/system/domain/protocols/index.d.ts +0 -2
- package/dist/system/domain/protocols/index.js +0 -19
- package/dist/system/domain/use-cases/auth/admin/index.d.ts +0 -1
- package/dist/system/domain/use-cases/auth/admin/index.js +0 -18
- package/dist/system/domain/use-cases/auth/index.d.ts +0 -1
- package/dist/system/domain/use-cases/auth/index.js +0 -18
- package/dist/system/domain/use-cases/index.d.ts +0 -3
- package/dist/system/domain/use-cases/index.js +0 -20
- package/dist/system/domain/use-cases/menu/index.d.ts +0 -1
- package/dist/system/domain/use-cases/menu/index.js +0 -18
- package/dist/system/domain/use-cases/menu/load-menu.d.ts +0 -15
- package/dist/system/domain/use-cases/users/delete-user.d.ts +0 -10
- package/dist/system/domain/use-cases/users/edit-user.d.ts +0 -8
- package/dist/system/domain/use-cases/users/get-detail-user.d.ts +0 -10
- package/dist/system/domain/use-cases/users/index.d.ts +0 -6
- package/dist/system/domain/use-cases/users/index.js +0 -23
- package/dist/system/domain/use-cases/users/load-all-users.d.ts +0 -23
- 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 +0 -6
- package/dist/system/infra/cache/index.d.ts +0 -2
- package/dist/system/infra/cache/index.js +0 -19
- package/dist/system/infra/cache/storage-type.d.ts +0 -2
- package/dist/system/infra/http/axios-http-client.d.ts +0 -4
- package/dist/system/infra/http/axios-http-client.js +0 -116
- package/dist/system/infra/http/axios-http-client.js.map +1 -1
- package/dist/system/infra/http/index.d.ts +0 -1
- package/dist/system/infra/http/index.js +0 -18
- package/dist/system/infra/index.d.ts +0 -3
- package/dist/system/infra/index.js +0 -20
- package/dist/system/infra/type-models/index.d.ts +0 -2
- package/dist/system/infra/type-models/index.js +0 -19
- package/dist/system/presentation/components/data/avatar/index.js +2 -2
- package/dist/system/presentation/components/data/cards/index.d.ts +1 -1
- package/dist/system/presentation/components/data/cards/index.js +1 -1
- package/dist/system/presentation/components/data/cards/message-card/index.d.ts +1 -1
- package/dist/system/presentation/components/data/cards/message-card/index.js +3 -3
- package/dist/system/presentation/components/data/index.d.ts +8 -8
- package/dist/system/presentation/components/data/index.js +8 -8
- package/dist/system/presentation/components/data/logo/index.js +2 -2
- package/dist/system/presentation/components/data/overlay/index.d.ts +1 -1
- package/dist/system/presentation/components/data/overlay/index.js +2 -2
- package/dist/system/presentation/components/data/page-wrapper/index.d.ts +1 -1
- package/dist/system/presentation/components/data/page-wrapper/index.js +2 -2
- package/dist/system/presentation/components/data/popover/index.d.ts +1 -1
- package/dist/system/presentation/components/data/sign-up/index.js +3 -3
- package/dist/system/presentation/components/data/skeleton/index.d.ts +1 -1
- package/dist/system/presentation/components/data/skeleton/index.js +2 -2
- 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.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 +2 -2
- package/dist/system/presentation/components/layout/menu/components/index.js +2 -2
- package/dist/system/presentation/components/layout/menu/components/menu/index.js +3 -3
- package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js +2 -2
- package/dist/system/presentation/components/layout/menu/index.js +1 -1
- package/dist/system/presentation/components/layout/menu/version-01/index.js +3 -3
- package/dist/system/presentation/components/pages/index.d.ts +1 -1
- package/dist/system/presentation/components/pages/index.js +1 -1
- package/dist/system/presentation/components/pages/users/index.d.ts +1 -1
- package/dist/system/presentation/components/pages/users/index.js +1 -1
- package/dist/system/presentation/components/pages/users/page.js +2 -2
- package/dist/system/presentation/components/pages/users/table/columns.d.ts +2 -2
- package/dist/system/presentation/components/pages/users/table/delete.js +2 -2
- package/dist/system/presentation/components/pages/users/table/edit.d.ts +2 -2
- package/dist/system/presentation/components/pages/users/table/edit.js +2 -2
- package/dist/system/presentation/components/pages/users/table/index.d.ts +3 -3
- package/dist/system/presentation/components/pages/users/table/index.js +3 -3
- package/dist/system/presentation/configs/index.d.ts +2 -2
- package/dist/system/presentation/configs/index.js +2 -2
- package/dist/system/presentation/context/auth/authenticated/index.js +1 -1
- package/dist/system/presentation/context/auth/context.d.ts +1 -1
- package/dist/system/presentation/context/auth/context.js +4 -3
- package/dist/system/presentation/context/auth/context.js.map +1 -1
- package/dist/system/presentation/context/auth/index.d.ts +5 -5
- package/dist/system/presentation/context/auth/index.js +5 -5
- package/dist/system/presentation/context/auth/interfaces.d.ts +1 -1
- package/dist/system/presentation/context/auth/login/index.js +3 -3
- package/dist/system/presentation/context/auth/private-page/index.js +3 -3
- package/dist/system/presentation/context/auth/unauthenticated/index.js +1 -1
- package/dist/system/presentation/context/container.js +33 -3
- package/dist/system/presentation/context/container.js.map +1 -1
- package/dist/system/presentation/context/index.d.ts +2 -2
- package/dist/system/presentation/context/index.js +2 -2
- package/dist/system/presentation/hooks/index.d.ts +2 -2
- package/dist/system/presentation/hooks/index.js +2 -2
- package/dist/system/presentation/hooks/menu/index.d.ts +1 -1
- package/dist/system/presentation/hooks/menu/index.js +1 -1
- package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +1 -1
- package/dist/system/presentation/hooks/menu/use-load-menu.js +1 -1
- package/dist/system/presentation/hooks/ui/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/component.d.ts +0 -4
- package/dist/system/presentation/hooks/ui/use-table/component.js +0 -25
- package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +0 -5
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +0 -78
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +7 -7
- package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/loader-table/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/index.d.ts +0 -3
- package/dist/system/presentation/hooks/ui/use-table/index.js +0 -20
- package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +0 -59
- package/dist/system/presentation/hooks/ui/use-table/query.d.ts +0 -3
- package/dist/system/presentation/hooks/ui/use-table/query.js +0 -68
- 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 +0 -1
- package/dist/system/presentation/utils/index.js +0 -18
- package/dist/system/presentation/utils/use-query/index.d.ts +0 -1
- package/dist/system/presentation/utils/use-query/index.js +0 -18
- package/dist/tsconfig.tsbuildinfo +1 -0
- 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 +2 -2
- package/dist/ui/components/form/handler/custom-submit/index.d.ts +0 -16
- package/dist/ui/components/form/handler/custom-submit/index.js +0 -22
- package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +0 -2
- package/dist/ui/components/form/handler/dynamic_form_handler/index.js +0 -62
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +0 -21
- 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 +1 -1
- package/dist/ui/components/form/handler/index.js +1 -1
- package/dist/ui/components/form/handler/interfaces.d.ts +0 -18
- package/dist/ui/components/form/index.d.ts +12 -12
- package/dist/ui/components/form/index.js +12 -12
- package/dist/ui/components/form/input/index.d.ts +0 -2
- package/dist/ui/components/form/input/index.js +0 -23
- package/dist/ui/components/form/input-control/error/index.d.ts +0 -2
- package/dist/ui/components/form/input-control/error/index.js +0 -40
- package/dist/ui/components/form/input-control/index.d.ts +0 -2
- package/dist/ui/components/form/input-control/index.js +0 -38
- package/dist/ui/components/form/input-control/loader-input/index.js +0 -34
- 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-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 +2 -2
- 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 +0 -46
- package/dist/ui/components/form/select/index.d.ts +0 -2
- package/dist/ui/components/form/select/index.js +0 -68
- package/dist/ui/components/form/select/interfaces.d.ts +0 -22
- 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 +0 -2
- 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/icons/render/Eye.d.ts +1 -1
- package/dist/ui/icons/render/Globe.d.ts +1 -1
- package/dist/ui/icons/render/LongArrowRight.d.ts +1 -1
- package/dist/ui/icons/render/loading.js +1 -1
- package/dist/ui/icons/render/loading.js.map +1 -1
- package/dist/ui/index.d.ts +5 -5
- package/dist/ui/index.js +5 -5
- package/package.json +1 -1
|
@@ -75,8 +75,8 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
75
75
|
var react_1 = require("react");
|
|
76
76
|
var axios_1 = __importStar(require("axios"));
|
|
77
77
|
var react_query_1 = require("@tanstack/react-query");
|
|
78
|
-
var ui_1 = require("
|
|
79
|
-
var system_1 = require("
|
|
78
|
+
var ui_1 = require("@/ui");
|
|
79
|
+
var system_1 = require("@/system");
|
|
80
80
|
var AuthContext = (0, react_1.createContext)({});
|
|
81
81
|
function AuthAdminProvider(_a) {
|
|
82
82
|
var children = _a.children;
|
|
@@ -119,8 +119,9 @@ function AuthAdminProvider(_a) {
|
|
|
119
119
|
(0, react_query_1.useQuery)(__assign(__assign({ queryKey: ["load_user"], queryFn: loadUser }, system_1.callApiOneTime), { retry: 0 }));
|
|
120
120
|
(0, react_1.useEffect)(function () {
|
|
121
121
|
axios_1.default.interceptors.response.use(function (r) { return r; }, function (err) {
|
|
122
|
+
var _a;
|
|
122
123
|
if (err instanceof axios_1.AxiosError) {
|
|
123
|
-
if (err.response.status === 401) {
|
|
124
|
+
if (((_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.status) === 401) {
|
|
124
125
|
signOut();
|
|
125
126
|
}
|
|
126
127
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/auth/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAsE;AAEtE,6CAAyC;AACzC,qDAAgE;AAEhE,2BAAoC;AACpC,mCAA6I;AAI7I,IAAM,WAAW,GAAG,IAAA,qBAAa,EAAC,EAAsB,CAAC,CAAA;AAEzD,SAAS,iBAAiB,CAAC,EAA2C;QAAzC,QAAQ,cAAA;IAC7B,IAAA,KAAkB,IAAA,gBAAQ,EAA+B,SAAS,CAAC,EAAlE,IAAI,QAAA,EAAE,OAAO,QAAqD,CAAA;IAEzE,IAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IAEpC,SAAe,QAAQ;;;;;4BACR,qBAAM,kBAAS,CAAC,GAAG,CAAsB,cAAK,CAAC,mBAAmB,CAAC,CAAC,IAAI,EAAE,EAAA;;wBAAjF,IAAI,GAAG,SAA0E;wBACvF,OAAO,CAAC,IAAI,CAAC,CAAA;;;;;KACd;IAED,SAAe,MAAM,CAAC,OAAyB;;;;4BAC7C,qBAAM,kBAAS,CAAC,GAAG,CAAkB,cAAK,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAA;;wBAAzE,SAAyE,CAAA;wBACzE,qBAAM,QAAQ,EAAE,EAAA;;wBAAhB,SAAgB,CAAA;;;;;KACjB;IAED,SAAS,OAAO;QACd,OAAO,CAAC,IAAI,CAAC,CAAA;QACb,WAAW,CAAC,iBAAiB,EAAE,CAAC;QAChC,kBAAS,CAAC,GAAG,CAAU,mBAAU,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;IAC1E,CAAC;IAED,IAAA,sBAAQ,sBAAG,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,QAAQ,IAAK,uBAAc,KAAE,KAAK,EAAE,CAAC,IAAG,CAAC;IAEtF,IAAA,iBAAS,EAAC;QACR,eAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAC7B,UAAC,CAAC,IAAK,OAAA,CAAC,EAAD,CAAC,EACR,UAAC,GAAG
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/auth/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAsE;AAEtE,6CAAyC;AACzC,qDAAgE;AAEhE,2BAAoC;AACpC,mCAA6I;AAI7I,IAAM,WAAW,GAAG,IAAA,qBAAa,EAAC,EAAsB,CAAC,CAAA;AAEzD,SAAS,iBAAiB,CAAC,EAA2C;QAAzC,QAAQ,cAAA;IAC7B,IAAA,KAAkB,IAAA,gBAAQ,EAA+B,SAAS,CAAC,EAAlE,IAAI,QAAA,EAAE,OAAO,QAAqD,CAAA;IAEzE,IAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IAEpC,SAAe,QAAQ;;;;;4BACR,qBAAM,kBAAS,CAAC,GAAG,CAAsB,cAAK,CAAC,mBAAmB,CAAC,CAAC,IAAI,EAAE,EAAA;;wBAAjF,IAAI,GAAG,SAA0E;wBACvF,OAAO,CAAC,IAAI,CAAC,CAAA;;;;;KACd;IAED,SAAe,MAAM,CAAC,OAAyB;;;;4BAC7C,qBAAM,kBAAS,CAAC,GAAG,CAAkB,cAAK,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAA;;wBAAzE,SAAyE,CAAA;wBACzE,qBAAM,QAAQ,EAAE,EAAA;;wBAAhB,SAAgB,CAAA;;;;;KACjB;IAED,SAAS,OAAO;QACd,OAAO,CAAC,IAAI,CAAC,CAAA;QACb,WAAW,CAAC,iBAAiB,EAAE,CAAC;QAChC,kBAAS,CAAC,GAAG,CAAU,mBAAU,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;IAC1E,CAAC;IAED,IAAA,sBAAQ,sBAAG,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,QAAQ,IAAK,uBAAc,KAAE,KAAK,EAAE,CAAC,IAAG,CAAC;IAEtF,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,CAAA,MAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,QAAQ,0CAAE,MAAM,MAAK,GAAG,EAAE,CAAC;oBAClC,OAAO,EAAE,CAAA;gBACX,CAAC;YACH,CAAC;YAED,MAAM,GAAG,CAAA;QACX,CAAC,CACF,CAAA;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,CACL,wBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,IAAI,MAAA,EAAE,MAAM,QAAA,EAAE,OAAO,SAAA,EAAE,aACnD,IAAI,KAAK,SAAS,IAAI,uBAAC,kBAAa,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,MAAM,GAAG,EAE9D,QAAQ,IACY,CACxB,CAAA;AACH,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./login
|
|
2
|
-
export * from "./context
|
|
3
|
-
export * from "./private-page
|
|
4
|
-
export * from "./authenticated
|
|
5
|
-
export * from "./unauthenticated
|
|
1
|
+
export * from "./login";
|
|
2
|
+
export * from "./context";
|
|
3
|
+
export * from "./private-page";
|
|
4
|
+
export * from "./authenticated";
|
|
5
|
+
export * from "./unauthenticated";
|
|
@@ -14,9 +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("./login
|
|
18
|
-
__exportStar(require("./context
|
|
19
|
-
__exportStar(require("./private-page
|
|
20
|
-
__exportStar(require("./authenticated
|
|
21
|
-
__exportStar(require("./unauthenticated
|
|
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
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -25,9 +25,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.Login = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var context_1 = require("../context
|
|
29
|
-
var ui_1 = require("
|
|
30
|
-
var S = __importStar(require("./styles
|
|
28
|
+
var context_1 = require("../context");
|
|
29
|
+
var ui_1 = require("@/ui");
|
|
30
|
+
var S = __importStar(require("./styles"));
|
|
31
31
|
function Login() {
|
|
32
32
|
var signIn = (0, context_1.useAuthAdmin)().signIn;
|
|
33
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" })] })] }) }));
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PrivatePageAdmin = void 0;
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var ui_1 = require("
|
|
6
|
-
var login_1 = require("../login
|
|
7
|
-
var context_1 = require("../context
|
|
5
|
+
var ui_1 = require("@/ui");
|
|
6
|
+
var login_1 = require("../login");
|
|
7
|
+
var context_1 = require("../context");
|
|
8
8
|
function PrivatePageAdmin(_a) {
|
|
9
9
|
var children = _a.children;
|
|
10
10
|
var user = (0, context_1.useAuthAdmin)().user;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UnauthenticatedTemplate = void 0;
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var context_1 = require("../context
|
|
5
|
+
var context_1 = require("../context");
|
|
6
6
|
function UnauthenticatedTemplate(_a) {
|
|
7
7
|
var children = _a.children;
|
|
8
8
|
var user = (0, context_1.useAuthAdmin)().user;
|
|
@@ -1,14 +1,44 @@
|
|
|
1
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
exports.InfinityForgeProviders = exports.queryClient = void 0;
|
|
4
30
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var ui_1 = require("
|
|
6
|
-
var auth_1 = require("./auth
|
|
31
|
+
var ui_1 = require("@/ui");
|
|
32
|
+
var auth_1 = require("./auth");
|
|
33
|
+
var dynamic_1 = __importDefault(require("next/dynamic"));
|
|
7
34
|
var react_query_1 = require("@tanstack/react-query");
|
|
35
|
+
var QueryClientProvider = (0, dynamic_1.default)(function () { return Promise.resolve().then(function () { return __importStar(require("@tanstack/react-query")); }).then(function (e) { return e.QueryClientProvider; }); }, {
|
|
36
|
+
ssr: false,
|
|
37
|
+
});
|
|
8
38
|
exports.queryClient = new react_query_1.QueryClient();
|
|
9
39
|
function InfinityForgeProviders(_a) {
|
|
10
40
|
var children = _a.children;
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
41
|
+
return ((0, jsx_runtime_1.jsx)(QueryClientProvider, { client: exports.queryClient, children: (0, jsx_runtime_1.jsx)(auth_1.AuthAdminProvider, { children: (0, jsx_runtime_1.jsx)(ui_1.ToastProvider, { children: children }) }) }));
|
|
12
42
|
}
|
|
13
43
|
exports.InfinityForgeProviders = InfinityForgeProviders;
|
|
14
44
|
//# sourceMappingURL=container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/system/presentation/context/container.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/system/presentation/context/container.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAoC;AACpC,+BAA0C;AAE1C,yDAAkC;AAElC,qDAAmD;AAEnD,IAAM,mBAAmB,GAAG,IAAA,iBAAO,EACjC,cAAM,OAAA,iEAAO,uBAAuB,OAAE,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,mBAAmB,EAArB,CAAqB,CAAC,EAAlE,CAAkE,EACxE;IACE,GAAG,EAAE,KAAK;CACX,CACF,CAAC;AAEW,QAAA,WAAW,GAAG,IAAI,yBAAW,EAAE,CAAA;AAE5C,SAAgB,sBAAsB,CAAC,EAAY;QAAV,QAAQ,cAAA;IAC/C,OAAO,CACL,uBAAC,mBAAmB,IAAC,MAAM,EAAE,mBAAW,YACtC,uBAAC,wBAAiB,cAChB,uBAAC,kBAAa,cAAE,QAAQ,GAAiB,GACvB,GACA,CACvB,CAAA;AACH,CAAC;AARD,wDAQC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./auth
|
|
2
|
-
export * from "./container
|
|
1
|
+
export * from "./auth";
|
|
2
|
+
export * from "./container";
|
|
@@ -14,6 +14,6 @@ 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("./auth
|
|
18
|
-
__exportStar(require("./container
|
|
17
|
+
__exportStar(require("./auth"), exports);
|
|
18
|
+
__exportStar(require("./container"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './ui
|
|
2
|
-
export * from './menu
|
|
1
|
+
export * from './ui';
|
|
2
|
+
export * from './menu';
|
|
@@ -14,6 +14,6 @@ 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("./ui
|
|
18
|
-
__exportStar(require("./menu
|
|
17
|
+
__exportStar(require("./ui"), exports);
|
|
18
|
+
__exportStar(require("./menu"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './use-load-menu
|
|
1
|
+
export * from './use-load-menu';
|
|
@@ -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("./use-load-menu
|
|
17
|
+
__exportStar(require("./use-load-menu"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function useLoadMenu(): import("@tanstack/react-query/build/legacy/types").UseQueryResult<import("
|
|
1
|
+
export declare function useLoadMenu(): import("@tanstack/react-query/build/legacy/types").UseQueryResult<import("@/system").LoadMenu.Model, Error>;
|
|
@@ -48,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
};
|
|
49
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
50
|
exports.useLoadMenu = void 0;
|
|
51
|
-
var system_1 = require("
|
|
51
|
+
var system_1 = require("@/system");
|
|
52
52
|
var react_query_1 = require("@tanstack/react-query");
|
|
53
53
|
function useLoadMenu() {
|
|
54
54
|
function fetcher() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./use-table
|
|
1
|
+
export * from "./use-table";
|
|
@@ -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("./use-table
|
|
17
|
+
__exportStar(require("./use-table"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.useTable = void 0;
|
|
15
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var components_1 = require("./components/index.js");
|
|
17
|
-
var query_1 = require("./query.js");
|
|
18
|
-
function useTable(props) {
|
|
19
|
-
var queryTable = props.query && (0, query_1.useQueryTable)(props.query);
|
|
20
|
-
return {
|
|
21
|
-
Table: (0, jsx_runtime_1.jsx)(components_1.Table, __assign({}, props, { isFetching: queryTable === null || queryTable === void 0 ? void 0 : queryTable.isFetching, tableInformations: queryTable === null || queryTable === void 0 ? void 0 : queryTable.data })),
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
exports.useTable = useTable;
|
|
25
|
-
//# sourceMappingURL=component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./table
|
|
1
|
+
export * from "./table";
|
|
@@ -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("./table
|
|
17
|
+
__exportStar(require("./table"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
-
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;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
50
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
|
-
};
|
|
52
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
-
exports.Actions = void 0;
|
|
54
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
55
|
-
var react_1 = require("react");
|
|
56
|
-
var link_1 = __importDefault(require("next/link"));
|
|
57
|
-
var semantic_ui_react_1 = require("semantic-ui-react");
|
|
58
|
-
var dynamic_form_handler_1 = require("../../../../../../../../ui/components/form/handler/dynamic_form_handler/index.js");
|
|
59
|
-
function Actions(_a) {
|
|
60
|
-
var actions = _a.actions, table = _a.table;
|
|
61
|
-
var _b = (0, react_1.useState)(false), open = _b[0], setOpen = _b[1];
|
|
62
|
-
function onSuccess(data) {
|
|
63
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
64
|
-
return __generator(this, function (_a) {
|
|
65
|
-
switch (_a.label) {
|
|
66
|
-
case 0: return [4 /*yield*/, actions.edit.onSucess(data)];
|
|
67
|
-
case 1:
|
|
68
|
-
_a.sent();
|
|
69
|
-
setOpen(false);
|
|
70
|
-
return [2 /*return*/];
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
return ((0, jsx_runtime_1.jsxs)("td", { style: { width: '100px' }, children: [actions.edit && ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Modal, { open: open, onClose: function () { return setOpen(false); }, style: { maxWidth: 512, borderRadius: 10 }, trigger: (0, jsx_runtime_1.jsx)("button", { type: 'button', children: "Editar" }), content: (0, jsx_runtime_1.jsx)(dynamic_form_handler_1.DynamicFormHandler, __assign({}, actions.edit, { onSucess: onSuccess, tableItem: table })), onOpen: function () { return setOpen(true); } })), actions.detail && (0, jsx_runtime_1.jsx)(link_1.default, { href: actions.detail(table), children: "Detalhe" }), actions.delete && ((0, jsx_runtime_1.jsx)("button", { type: 'button', onClick: function () { return actions.delete(table); }, children: "Excluir" }))] }));
|
|
76
|
-
}
|
|
77
|
-
exports.Actions = Actions;
|
|
78
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ITableProps } from './interfaces
|
|
1
|
+
import { ITableProps } from './interfaces';
|
|
2
2
|
export declare function Table({ configs, isFetching, columnsConfiguration, tableInformations }: ITableProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -37,13 +37,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.Table = void 0;
|
|
38
38
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
39
|
var router_1 = require("next/router");
|
|
40
|
-
var ui_1 = require("
|
|
41
|
-
var system_1 = require("
|
|
42
|
-
var actions_1 = require("./actions
|
|
43
|
-
var thead_item_1 = require("./thead-item
|
|
44
|
-
var pagination_1 = require("./pagination
|
|
45
|
-
var loader_table_1 = require("./loader-table
|
|
46
|
-
var S = __importStar(require("./styles
|
|
40
|
+
var ui_1 = require("@/ui");
|
|
41
|
+
var system_1 = require("@/system");
|
|
42
|
+
var actions_1 = require("./actions");
|
|
43
|
+
var thead_item_1 = require("./thead-item");
|
|
44
|
+
var pagination_1 = require("./pagination");
|
|
45
|
+
var loader_table_1 = require("./loader-table");
|
|
46
|
+
var S = __importStar(require("./styles"));
|
|
47
47
|
function Table(_a) {
|
|
48
48
|
var _b, _c, _d;
|
|
49
49
|
var configs = _a.configs, isFetching = _a.isFetching, columnsConfiguration = _a.columnsConfiguration, tableInformations = _a.tableInformations;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { List, Pagination } from "
|
|
2
|
-
import { IUseTableProps } from "../../interfaces
|
|
1
|
+
import { List, Pagination } from "@/system";
|
|
2
|
+
import { IUseTableProps } from "../../interfaces";
|
|
3
3
|
type colunm = keyof any;
|
|
4
4
|
interface IShowHiden {
|
|
5
5
|
text: string;
|
|
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.LoaderTable = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var S = __importStar(require("./styles
|
|
28
|
+
var S = __importStar(require("./styles"));
|
|
29
29
|
function LoaderTable() {
|
|
30
30
|
return ((0, jsx_runtime_1.jsx)(S.LoaderTable, { children: "LOADER COLOCAR" }));
|
|
31
31
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PaginationModel } from "
|
|
1
|
+
import { PaginationModel } from "@/system";
|
|
2
2
|
export declare function Pagination({ page, endPage, pageSize, totalItems, hasNextPage, hasPreviousPage, }: PaginationModel): import("react/jsx-runtime").JSX.Element;
|
|
@@ -27,9 +27,9 @@ exports.Pagination = void 0;
|
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
28
|
var react_1 = require("react");
|
|
29
29
|
var router_1 = require("next/router");
|
|
30
|
-
var ui_1 = require("
|
|
31
|
-
var service_1 = require("./service
|
|
32
|
-
var S = __importStar(require("./styles
|
|
30
|
+
var ui_1 = require("@/ui");
|
|
31
|
+
var service_1 = require("./service");
|
|
32
|
+
var S = __importStar(require("./styles"));
|
|
33
33
|
function Pagination(_a) {
|
|
34
34
|
var page = _a.page, endPage = _a.endPage, pageSize = _a.pageSize, totalItems = _a.totalItems, hasNextPage = _a.hasNextPage, hasPreviousPage = _a.hasPreviousPage;
|
|
35
35
|
var _b = (0, react_1.useState)(null), pagination = _b[0], setPagination = _b[1];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ITHeadItemProps } from './interfaces
|
|
1
|
+
import { ITHeadItemProps } from './interfaces';
|
|
2
2
|
export declare function THeadItem({ colunm, index, disableOrdenationTable }: ITHeadItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -27,8 +27,8 @@ exports.THeadItem = void 0;
|
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
28
|
var react_1 = require("react");
|
|
29
29
|
var router_1 = require("next/router");
|
|
30
|
-
var ui_1 = require("
|
|
31
|
-
var S = __importStar(require("./styles
|
|
30
|
+
var ui_1 = require("@/ui");
|
|
31
|
+
var S = __importStar(require("./styles"));
|
|
32
32
|
function THeadItem(_a) {
|
|
33
33
|
var _b, _c;
|
|
34
34
|
var colunm = _a.colunm, index = _a.index, disableOrdenationTable = _a.disableOrdenationTable;
|
|
@@ -1,20 +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("./component.js"), exports);
|
|
18
|
-
__exportStar(require("./components/index.js"), exports);
|
|
19
|
-
__exportStar(require("./interfaces.js"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PaginationModel } from '../../../../../system/index.js';
|
|
3
|
-
import { DynamicFormHandlerProps } from '../../../../../ui/components/form/handler/dynamic_form_handler/interfaces.js';
|
|
4
|
-
interface Column<T = any> {
|
|
5
|
-
id: keyof T;
|
|
6
|
-
label: string;
|
|
7
|
-
width?: number;
|
|
8
|
-
Component?: {
|
|
9
|
-
Element: (props: {
|
|
10
|
-
[key in keyof T]?: any;
|
|
11
|
-
}) => JSX.Element;
|
|
12
|
-
allProps?: boolean;
|
|
13
|
-
props: {
|
|
14
|
-
[key in keyof T]?: any;
|
|
15
|
-
};
|
|
16
|
-
defaultProps?: {
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
interface IParamsTable {
|
|
22
|
-
page?: number;
|
|
23
|
-
}
|
|
24
|
-
interface IConfigurationsTable {
|
|
25
|
-
tableData?: any;
|
|
26
|
-
isLoading?: boolean;
|
|
27
|
-
errorMessage: string;
|
|
28
|
-
disableGetFilter?: boolean;
|
|
29
|
-
disablePagination?: boolean;
|
|
30
|
-
enableSearchInSelf?: boolean;
|
|
31
|
-
pagination?: PaginationModel;
|
|
32
|
-
disableOrdenationTable?: boolean;
|
|
33
|
-
}
|
|
34
|
-
type QueryTable<M = any> = {
|
|
35
|
-
user?: any;
|
|
36
|
-
container?: any;
|
|
37
|
-
Types?: any;
|
|
38
|
-
queryKey: M;
|
|
39
|
-
requireUser?: boolean;
|
|
40
|
-
};
|
|
41
|
-
type ActionsTable<T = any> = {
|
|
42
|
-
delete?: (table: {
|
|
43
|
-
[key in keyof T]: T[key];
|
|
44
|
-
}) => void;
|
|
45
|
-
edit?: DynamicFormHandlerProps<T>;
|
|
46
|
-
detail?: (table: {
|
|
47
|
-
[key in keyof T]: string;
|
|
48
|
-
}) => string;
|
|
49
|
-
};
|
|
50
|
-
type ColumnsConfiguration<T = any> = {
|
|
51
|
-
columns: Column<T>[];
|
|
52
|
-
actions?: ActionsTable<T>;
|
|
53
|
-
};
|
|
54
|
-
interface IUseTableProps<T = any, M = any> {
|
|
55
|
-
query?: QueryTable<M>;
|
|
56
|
-
configs: IConfigurationsTable;
|
|
57
|
-
columnsConfiguration: ColumnsConfiguration<T>;
|
|
58
|
-
}
|
|
59
|
-
export type { Column, QueryTable, ActionsTable, IParamsTable, IUseTableProps, IConfigurationsTable, ColumnsConfiguration, };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { List, Pagination } from '../../../../../system/index.js';
|
|
2
|
-
import { QueryTable } from './interfaces.js';
|
|
3
|
-
export declare function useQueryTable({ queryKey, user, requireUser, Types, container }: QueryTable): import("@tanstack/react-query/build/legacy/types").UseQueryResult<List<any> & Pagination, Error>;
|