infinity-forge 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +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 -1
- package/dist/system/container/admin/index.js +3 -1
- package/dist/system/container/admin/index.js.map +1 -1
- package/dist/system/container/admin/menu/container.d.ts +3 -0
- package/dist/system/container/admin/menu/container.js +11 -0
- package/dist/system/container/admin/menu/container.js.map +1 -0
- package/dist/system/container/admin/menu/index.d.ts +2 -0
- package/dist/system/container/admin/menu/index.js +19 -0
- package/dist/system/container/admin/menu/index.js.map +1 -0
- package/dist/system/container/admin/menu/types.d.ts +3 -0
- package/dist/system/container/admin/menu/types.js +7 -0
- package/dist/system/container/admin/menu/types.js.map +1 -0
- package/dist/system/container/admin/users/container.d.ts +3 -0
- package/dist/system/container/admin/users/container.js +12 -0
- package/dist/system/container/admin/users/container.js.map +1 -0
- package/dist/system/container/admin/users/index.d.ts +2 -0
- package/dist/system/container/admin/users/index.js +19 -0
- package/dist/system/container/admin/users/index.js.map +1 -0
- package/dist/system/container/admin/users/types.d.ts +4 -0
- package/dist/system/container/admin/users/types.js +8 -0
- package/dist/system/container/admin/users/types.js.map +1 -0
- 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 +2 -2
- package/dist/system/container/main.js +4 -4
- package/dist/system/container/main.js.map +1 -1
- package/dist/system/container/types.d.ts +3 -0
- package/dist/system/container/types.js +2 -2
- package/dist/system/container/types.js.map +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 +4 -4
- package/dist/system/data/use-cases/auth/remote-auth-admin.js +4 -4
- package/dist/system/data/use-cases/index.d.ts +3 -1
- package/dist/system/data/use-cases/index.js +3 -1
- package/dist/system/data/use-cases/index.js.map +1 -1
- package/dist/system/data/use-cases/menu/index.d.ts +1 -0
- package/dist/system/data/use-cases/menu/index.js +18 -0
- package/dist/system/data/use-cases/menu/index.js.map +1 -0
- package/dist/system/data/use-cases/menu/remote-get-menu.d.ts +8 -0
- package/dist/system/data/use-cases/menu/remote-get-menu.js +109 -0
- package/dist/system/data/use-cases/menu/remote-get-menu.js.map +1 -0
- package/dist/system/data/use-cases/users/index.d.ts +2 -0
- package/dist/system/data/use-cases/users/index.js +19 -0
- package/dist/system/data/use-cases/users/index.js.map +1 -0
- package/dist/system/data/use-cases/users/remote-load-user-admin.d.ts +8 -0
- package/dist/system/data/use-cases/users/remote-load-user-admin.js +109 -0
- package/dist/system/data/use-cases/users/remote-load-user-admin.js.map +1 -0
- package/dist/system/data/use-cases/users/remote-users.d.ts +12 -0
- package/dist/system/data/use-cases/users/remote-users.js +177 -0
- package/dist/system/data/use-cases/users/remote-users.js.map +1 -0
- package/dist/system/domain/generics/index.d.ts +2 -1
- package/dist/system/domain/generics/index.js +2 -1
- package/dist/system/domain/generics/index.js.map +1 -1
- package/dist/system/domain/generics/pagination.d.ts +14 -0
- package/dist/system/domain/generics/pagination.js +3 -0
- package/dist/system/domain/generics/pagination.js.map +1 -0
- package/dist/system/domain/generics/return-type.d.ts +8 -0
- package/dist/system/domain/generics/return-type.js +3 -0
- package/dist/system/domain/generics/return-type.js.map +1 -0
- package/dist/system/domain/index.d.ts +3 -3
- package/dist/system/domain/index.js +3 -3
- package/dist/system/domain/index.js.map +1 -1
- package/dist/system/domain/protocols/cache/get-storage.d.ts +2 -2
- 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 +2 -2
- package/dist/system/domain/protocols/http/errors/http-errors/conflict-error.d.ts +8 -0
- package/dist/system/domain/protocols/http/errors/http-errors/conflict-error.js +11 -0
- package/dist/system/domain/protocols/http/errors/http-errors/conflict-error.js.map +1 -0
- 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 +2 -1
- package/dist/system/domain/protocols/http/http-client.js +1 -0
- package/dist/system/domain/protocols/http/http-client.js.map +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/auth-admin.d.ts +3 -4
- 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 -1
- package/dist/system/domain/use-cases/index.js +3 -1
- package/dist/system/domain/use-cases/index.js.map +1 -1
- package/dist/system/domain/use-cases/menu/index.d.ts +1 -0
- package/dist/system/domain/use-cases/menu/index.js +18 -0
- package/dist/system/domain/use-cases/menu/index.js.map +1 -0
- package/dist/system/domain/use-cases/menu/load-menu.d.ts +15 -0
- package/dist/system/domain/use-cases/menu/load-menu.js +3 -0
- package/dist/system/domain/use-cases/menu/load-menu.js.map +1 -0
- package/dist/system/domain/use-cases/users/create-user.d.ts +15 -0
- package/dist/system/domain/use-cases/users/create-user.js +3 -0
- package/dist/system/domain/use-cases/users/create-user.js.map +1 -0
- package/dist/system/domain/use-cases/users/delete-user.d.ts +10 -0
- package/dist/system/domain/use-cases/users/delete-user.js +3 -0
- package/dist/system/domain/use-cases/users/delete-user.js.map +1 -0
- package/dist/system/domain/use-cases/users/edit-user.d.ts +8 -0
- package/dist/system/domain/use-cases/users/edit-user.js +3 -0
- package/dist/system/domain/use-cases/users/edit-user.js.map +1 -0
- package/dist/system/domain/use-cases/users/get-detail-user.d.ts +10 -0
- package/dist/system/domain/use-cases/users/get-detail-user.js +3 -0
- package/dist/system/domain/use-cases/users/get-detail-user.js.map +1 -0
- package/dist/system/domain/use-cases/users/index.d.ts +6 -0
- package/dist/system/domain/use-cases/users/index.js +23 -0
- package/dist/system/domain/use-cases/users/index.js.map +1 -0
- package/dist/system/domain/use-cases/users/load-all-users.d.ts +23 -0
- package/dist/system/domain/use-cases/users/load-all-users.js +3 -0
- package/dist/system/domain/use-cases/users/load-all-users.js.map +1 -0
- package/dist/system/domain/use-cases/users/load-user-admin.d.ts +15 -0
- package/dist/system/domain/use-cases/users/load-user-admin.js +3 -0
- package/dist/system/domain/use-cases/users/load-user-admin.js.map +1 -0
- package/dist/system/index.d.ts +5 -6
- package/dist/system/index.js +5 -6
- package/dist/system/index.js.map +1 -1
- package/dist/system/infra/cache/cookie-storage-adapter.d.ts +4 -4
- package/dist/system/infra/cache/cookie-storage-adapter.js +6 -50
- package/dist/system/infra/cache/cookie-storage-adapter.js.map +1 -1
- 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 +7 -2
- package/dist/system/infra/http/axios-http-client.js.map +1 -1
- 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 +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 -2
- package/dist/system/presentation/components/index.js +3 -2
- package/dist/system/presentation/components/index.js.map +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 +4 -4
- package/dist/system/presentation/components/layout/header/version-01/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/version-01/styles.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/version-01/styles.js +2 -2
- package/dist/system/presentation/components/layout/header/version-01/styles.js.map +1 -1
- package/dist/system/presentation/components/layout/index.d.ts +3 -3
- package/dist/system/presentation/components/layout/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 +8 -7
- package/dist/system/presentation/components/layout/menu/components/menu/index.js.map +1 -1
- 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 -0
- package/dist/system/presentation/components/pages/index.js +18 -0
- package/dist/system/presentation/components/pages/index.js.map +1 -0
- package/dist/system/presentation/components/pages/users/index.d.ts +1 -0
- package/dist/system/{pages → presentation/components/pages/users}/index.js +1 -1
- package/dist/system/presentation/components/pages/users/index.js.map +1 -0
- package/dist/system/presentation/components/pages/users/page.d.ts +1 -0
- package/dist/system/presentation/components/pages/users/page.js +33 -0
- package/dist/system/presentation/components/pages/users/page.js.map +1 -0
- package/dist/system/presentation/components/pages/users/table/columns.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/columns.js +9 -0
- package/dist/system/presentation/components/pages/users/table/columns.js.map +1 -0
- package/dist/system/presentation/components/pages/users/table/delete.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/delete.js +74 -0
- package/dist/system/presentation/components/pages/users/table/delete.js.map +1 -0
- package/dist/system/presentation/components/pages/users/table/edit.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/edit.js +87 -0
- package/dist/system/presentation/components/pages/users/table/edit.js.map +1 -0
- package/dist/system/presentation/components/pages/users/table/index.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/index.js +20 -0
- package/dist/system/presentation/components/pages/users/table/index.js.map +1 -0
- package/dist/system/presentation/configs/index.d.ts +2 -3
- package/dist/system/presentation/configs/index.js +2 -3
- package/dist/system/presentation/configs/index.js.map +1 -1
- package/dist/system/presentation/configs/menu.d.ts +1 -1
- package/dist/system/presentation/context/auth/authenticated/index.js +1 -1
- package/dist/system/presentation/context/auth/context.d.ts +1 -6
- package/dist/system/presentation/context/auth/context.js +37 -9
- 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 +6 -0
- package/dist/system/presentation/context/auth/interfaces.js +3 -0
- package/dist/system/presentation/context/auth/interfaces.js.map +1 -0
- package/dist/system/presentation/context/auth/login/index.js +3 -3
- package/dist/system/presentation/context/auth/private-page/index.js +4 -4
- package/dist/system/presentation/context/auth/private-page/index.js.map +1 -1
- package/dist/system/presentation/context/auth/unauthenticated/index.js +1 -1
- package/dist/system/presentation/context/index.d.ts +1 -1
- package/dist/system/presentation/context/index.js +1 -1
- package/dist/system/presentation/hooks/index.d.ts +2 -1
- package/dist/system/presentation/hooks/index.js +2 -1
- package/dist/system/presentation/hooks/index.js.map +1 -1
- package/dist/system/presentation/hooks/menu/index.d.ts +1 -0
- package/dist/system/presentation/hooks/menu/index.js +18 -0
- package/dist/system/presentation/hooks/menu/index.js.map +1 -0
- package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +1 -0
- package/dist/system/presentation/hooks/menu/use-load-menu.js +70 -0
- package/dist/system/presentation/hooks/menu/use-load-menu.js.map +1 -0
- 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 +2 -3
- package/dist/system/presentation/hooks/ui/use-table/component.js +16 -5
- package/dist/system/presentation/hooks/ui/use-table/component.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +1 -3
- package/dist/system/presentation/hooks/ui/use-table/components/index.js +1 -3
- package/dist/system/presentation/hooks/ui/use-table/components/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/index.js +4 -4
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +5 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +78 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +33 -33
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +4 -4
- 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 +2 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +68 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/service.d.ts +25 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/service.js +53 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/service.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.d.ts +2 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.js +14 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.js.map +1 -0
- 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 +3 -4
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/index.d.ts +3 -5
- package/dist/system/presentation/hooks/ui/use-table/index.js +3 -5
- package/dist/system/presentation/hooks/ui/use-table/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +38 -39
- package/dist/system/presentation/hooks/ui/use-table/query/index.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/query/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/query/interfaces.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/query/service.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/query.d.ts +3 -0
- package/dist/system/presentation/hooks/ui/use-table/query.js +68 -0
- package/dist/system/presentation/hooks/ui/use-table/query.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/utils/filter-empty-values.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/utils/index.d.ts +4 -4
- package/dist/system/presentation/hooks/ui/use-table/utils/index.js +4 -4
- package/dist/system/presentation/hooks/users/load-all-users.d.ts +1 -0
- package/dist/system/presentation/hooks/users/load-all-users.js +9 -0
- package/dist/system/presentation/hooks/users/load-all-users.js.map +1 -0
- package/dist/system/presentation/index.d.ts +5 -4
- package/dist/system/presentation/index.js +5 -4
- package/dist/system/presentation/index.js.map +1 -1
- package/dist/system/presentation/utils/index.d.ts +1 -0
- package/dist/system/presentation/utils/index.js +18 -0
- package/dist/system/presentation/utils/index.js.map +1 -0
- package/dist/system/presentation/utils/use-query/call-api-one-time.d.ts +5 -0
- package/dist/system/presentation/utils/use-query/call-api-one-time.js +9 -0
- package/dist/system/presentation/utils/use-query/call-api-one-time.js.map +1 -0
- package/dist/system/presentation/utils/use-query/index.d.ts +1 -0
- package/dist/system/presentation/utils/use-query/index.js +18 -0
- package/dist/system/presentation/utils/use-query/index.js.map +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 +23 -23
- package/dist/ui/components/breadcrumb/index.js.map +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 +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 +2 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/index.js +62 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/index.js.map +1 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +21 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.js +3 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.js.map +1 -0
- package/dist/ui/components/form/handler/form-handler/index.d.ts +1 -1
- package/dist/ui/components/form/handler/form-handler/index.js +9 -4
- package/dist/ui/components/form/handler/form-handler/index.js.map +1 -1
- 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 +2 -2
- package/dist/ui/components/form/handler/styles.js +1 -1
- package/dist/ui/components/form/handler/styles.js.map +1 -1
- 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 +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-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/interfaces.d.ts +1 -1
- package/dist/ui/components/form/radio/index.js +1 -1
- 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 -9
- package/dist/ui/components/index.js +10 -9
- package/dist/ui/components/index.js.map +1 -1
- package/dist/ui/components/loader-circle/index.d.ts +1 -1
- package/dist/ui/components/loading-screen/index.d.ts +3 -0
- package/dist/{system/pages/usuarios → ui/components/loading-screen}/index.js +12 -29
- package/dist/ui/components/loading-screen/index.js.map +1 -0
- package/dist/ui/components/loading-screen/interfaces.d.ts +4 -0
- package/dist/ui/components/loading-screen/interfaces.js +3 -0
- package/dist/ui/components/loading-screen/interfaces.js.map +1 -0
- package/dist/ui/components/loading-screen/styles.d.ts +4 -0
- package/dist/ui/components/loading-screen/styles.js +39 -0
- package/dist/ui/components/loading-screen/styles.js.map +1 -0
- 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 +47 -46
- package/dist/ui/icons/index.js +47 -46
- package/dist/ui/icons/index.js.map +1 -1
- 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/LongArrowRight.js +1 -1
- package/dist/ui/icons/render/LongArrowRight.js.map +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/Map.js +1 -1
- package/dist/ui/icons/render/Map.js.map +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/exclamation.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-right-arrow.d.ts +1 -1
- package/dist/ui/icons/render/loading.d.ts +2 -0
- package/dist/ui/icons/render/loading.js +10 -0
- package/dist/ui/icons/render/loading.js.map +1 -0
- package/dist/ui/icons/render/phone-message.d.ts +1 -1
- package/dist/ui/icons/render/phone-message.js +1 -1
- package/dist/ui/icons/render/phone-message.js.map +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/user.js +1 -1
- package/dist/ui/icons/render/user.js.map +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/@tanstack/index.d.ts +1 -1
- package/dist/ui/utils/libs/@tanstack/index.js +1 -1
- package/dist/ui/utils/libs/@tanstack/react-query/index.d.ts +1 -1
- package/dist/ui/utils/libs/@tanstack/react-query/index.js +1 -1
- package/dist/ui/utils/libs/index.d.ts +2 -2
- package/dist/ui/utils/libs/index.js +2 -2
- package/dist/ui/utils/libs/next/index.d.ts +2 -1
- package/dist/ui/utils/libs/next/index.js +2 -1
- package/dist/ui/utils/libs/next/index.js.map +1 -1
- package/dist/ui/utils/libs/next/update-route.d.ts +6 -0
- package/dist/ui/utils/libs/next/update-route.js +31 -0
- package/dist/ui/utils/libs/next/update-route.js.map +1 -0
- package/dist/ui/utils/validations/index.d.ts +2 -2
- package/dist/ui/utils/validations/index.js +2 -2
- package/package.json +1 -1
- package/dist/system/pages/index.d.ts +0 -1
- package/dist/system/pages/index.js.map +0 -1
- package/dist/system/pages/usuarios/index.d.ts +0 -1
- package/dist/system/pages/usuarios/index.js.map +0 -1
- package/dist/system/pages/usuarios/styles.d.ts +0 -4
- package/dist/system/pages/usuarios/styles.js +0 -14
- package/dist/system/pages/usuarios/styles.js.map +0 -1
|
@@ -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("./component"), exports);
|
|
18
|
-
__exportStar(require("./interfaces"), exports);
|
|
17
|
+
__exportStar(require("./component.js"), exports);
|
|
18
|
+
__exportStar(require("./interfaces.js"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IContainerProps } from './interfaces';
|
|
1
|
+
import { IContainerProps } from './interfaces.js';
|
|
2
2
|
export declare function Container({ children }: IContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IErrorBoundary } from './interfaces';
|
|
1
|
+
import { IErrorBoundary } from './interfaces.js';
|
|
2
2
|
export declare function Error({ name, children }: IErrorBoundary): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Error = void 0;
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
var react_error_boundary_1 = require("react-error-boundary");
|
|
6
|
-
var error_body_1 = require("./error-body");
|
|
6
|
+
var error_body_1 = require("./error-body.js");
|
|
7
7
|
function Error(_a) {
|
|
8
8
|
var name = _a.name, children = _a.children;
|
|
9
9
|
return (0, jsx_runtime_1.jsx)(react_error_boundary_1.ErrorBoundary, { FallbackComponent: function () { return (0, error_body_1.ErrorBoundaryComponent)({ name: name }); }, children: children });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IErrorBoundaryComponentProps } from './interfaces';
|
|
1
|
+
import { IErrorBoundaryComponentProps } from './interfaces.js';
|
|
2
2
|
export declare const ErrorBoundaryComponent: ({ name }: IErrorBoundaryComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './component';
|
|
2
|
-
export * from './interfaces';
|
|
1
|
+
export * from './component.js';
|
|
2
|
+
export * from './interfaces.js';
|
|
@@ -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("./component"), exports);
|
|
18
|
-
__exportStar(require("./interfaces"), exports);
|
|
17
|
+
__exportStar(require("./component.js"), exports);
|
|
18
|
+
__exportStar(require("./interfaces.js"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -37,8 +37,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.InputCheckbox = void 0;
|
|
38
38
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
39
|
var formik_1 = require("formik");
|
|
40
|
-
var error_1 = require("../input-control/error");
|
|
41
|
-
var S = __importStar(require("./styles"));
|
|
40
|
+
var error_1 = require("../input-control/error/index.js");
|
|
41
|
+
var S = __importStar(require("./styles.js"));
|
|
42
42
|
function InputCheckbox(props) {
|
|
43
43
|
var field = (0, formik_1.useField)({ name: props.name })[0];
|
|
44
44
|
return ((0, jsx_runtime_1.jsxs)(S.InputCheckbox, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'list-radios', children: props.options.map(function (option, index) { return ((0, jsx_runtime_1.jsx)("label", { htmlFor: props.name + index, children: (0, jsx_runtime_1.jsx)("input", __assign({ id: props.name + index }, field, { type: 'checkbox', value: option.value })) }, option.value)); }) }), (0, jsx_runtime_1.jsx)(error_1.ErrorMessage, { name: props.name })] }));
|
|
@@ -13,7 +13,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.CustomSubmitButton = void 0;
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var ui_1 = require("
|
|
16
|
+
var ui_1 = require("../../../../../ui/index.js");
|
|
17
17
|
function CustomSubmitButton(_a) {
|
|
18
18
|
var props = _a.props, action = _a.action, stateForm = _a.stateForm, onSubmit = _a.onSubmit;
|
|
19
19
|
return (0, jsx_runtime_1.jsx)(ui_1.Button, __assign({}, props, { type: 'button', onClick: function () { return onSubmit(action); }, loading: stateForm.state === 'loading' }));
|
|
@@ -0,0 +1,62 @@
|
|
|
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.DynamicFormHandler = void 0;
|
|
38
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
+
var __1 = require("../index.js");
|
|
40
|
+
var react_query_1 = require("@tanstack/react-query");
|
|
41
|
+
var loader_circle_1 = require("../../../../../ui/components/loader-circle/index.js");
|
|
42
|
+
var Inputs = __importStar(require("../../index.js"));
|
|
43
|
+
function DynamicFormHandler(props) {
|
|
44
|
+
var _a = (0, react_query_1.useQuery)({
|
|
45
|
+
queryKey: props.getDetails.key(props.tableItem),
|
|
46
|
+
queryFn: function () { return props.getDetails.fetcher(props.tableItem); },
|
|
47
|
+
retryOnMount: false,
|
|
48
|
+
refetchIntervalInBackground: false,
|
|
49
|
+
refetchOnWindowFocus: false,
|
|
50
|
+
}), data = _a.data, isFetching = _a.isFetching;
|
|
51
|
+
if (isFetching) {
|
|
52
|
+
return (0, jsx_runtime_1.jsx)(loader_circle_1.LoaderCircle, { size: 30, color: '#000' });
|
|
53
|
+
}
|
|
54
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: { padding: 20 }, children: (0, jsx_runtime_1.jsx)(__1.FormHandler, __assign({}, props, { initialData: __assign(__assign({}, data.data), (props.initialData || {})), children: props.inputs.map(function (row, index) {
|
|
55
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: { display: 'grid', gap: 15, gridTemplateColumns: "repeat(".concat(row.length, ", 1fr)") }, children: row.map(function (input) {
|
|
56
|
+
var Element = Inputs[input.inputComponent];
|
|
57
|
+
return (0, jsx_runtime_1.jsx)(Element, __assign({}, input), input.name);
|
|
58
|
+
}) }, index));
|
|
59
|
+
}) })) }));
|
|
60
|
+
}
|
|
61
|
+
exports.DynamicFormHandler = DynamicFormHandler;
|
|
62
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/handler/dynamic_form_handler/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAAgC;AAChC,qDAAgD;AAChD,+DAA4D;AAI5D,kDAAqC;AAErC,SAAgB,kBAAkB,CAAC,KAA8B;IAEzD,IAAA,KAAuB,IAAA,sBAAQ,EAAC;QACpC,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC;QAC/C,OAAO,EAAE,cAAM,OAAA,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,EAAzC,CAAyC;QACxD,YAAY,EAAE,KAAK;QACnB,2BAA2B,EAAE,KAAK;QAClC,oBAAoB,EAAE,KAAK;KAC5B,CAAC,EANM,IAAI,UAAA,EAAE,UAAU,gBAMtB,CAAA;IAEF,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,uBAAC,4BAAY,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,MAAM,GAAG,CAAA;IAChD,CAAC;IAED,OAAO,CACL,gCAAK,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,YACzB,uBAAC,eAAW,eAAM,KAAa,IAAE,WAAW,wBAAM,IAAI,CAAC,IAAI,GAAK,CAAC,KAAK,CAAC,WAAW,IAAI,EAAE,CAAC,aACtF,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,UAAC,GAAG,EAAE,KAAK;gBAC3B,OAAO,CACL,gCAAiB,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,mBAAmB,EAAE,iBAAU,GAAG,CAAC,MAAM,WAAQ,EAAE,YACpG,GAAG,CAAC,GAAG,CAAC,UAAC,KAAK;wBACb,IAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;wBAE5C,OAAO,uBAAC,OAAO,eAAuB,KAAa,GAA9B,KAAK,CAAC,IAAI,CAAwB,CAAA;oBACzD,CAAC,CAAC,IALM,KAAK,CAMT,CACP,CAAA;YACH,CAAC,CAAC,IACU,GACV,CACP,CAAA;AACH,CAAC;AA/BD,gDA+BC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IFormHandler } from '../interfaces.js';
|
|
2
|
+
import { ISelectProps } from '../../interfaces.js';
|
|
3
|
+
import * as Inputs from '../../index.js';
|
|
4
|
+
type InputProps<T = any> = {
|
|
5
|
+
name: keyof T;
|
|
6
|
+
inputComponent: keyof typeof Inputs;
|
|
7
|
+
} & Partial<Omit<ISelectProps, 'name'>>;
|
|
8
|
+
export type DynamicFormHandlerProps<T = any> = Partial<IFormHandler> & {
|
|
9
|
+
tableItem?: any;
|
|
10
|
+
title: string;
|
|
11
|
+
inputs: InputProps<T>[][];
|
|
12
|
+
getDetails: {
|
|
13
|
+
key: (params: {
|
|
14
|
+
[key in keyof T]: T[key];
|
|
15
|
+
}) => any[];
|
|
16
|
+
fetcher: (params: {
|
|
17
|
+
[key in keyof T]: T[key];
|
|
18
|
+
}) => Promise<any>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/handler/dynamic_form_handler/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IFormHandler } from '../interfaces';
|
|
1
|
+
import { IFormHandler } from '../interfaces.js';
|
|
2
2
|
export default function FormElement({ button, children, onSucess, customSubmit, onChangeForm }: IFormHandler): import("react/jsx-runtime").JSX.Element;
|
|
@@ -82,10 +82,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
82
82
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
83
83
|
var react_1 = require("react");
|
|
84
84
|
var formik_1 = require("formik");
|
|
85
|
-
var ui_1 = require("
|
|
86
|
-
var custom_submit_1 = require("../custom-submit");
|
|
87
|
-
var S = __importStar(require("../styles"));
|
|
88
|
-
var system_1 = require("
|
|
85
|
+
var ui_1 = require("../../../../../ui/index.js");
|
|
86
|
+
var custom_submit_1 = require("../custom-submit/index.js");
|
|
87
|
+
var S = __importStar(require("../styles.js"));
|
|
88
|
+
var system_1 = require("../../../../../system/index.js");
|
|
89
|
+
var conflict_error_1 = require("../../../../../system/domain/protocols/http/errors/http-errors/conflict-error.js");
|
|
89
90
|
function FormElement(_a) {
|
|
90
91
|
var button = _a.button, children = _a.children, onSucess = _a.onSucess, customSubmit = _a.customSubmit, onChangeForm = _a.onChangeForm;
|
|
91
92
|
var _b = (0, react_1.useState)({ state: '', message: '' }), stateForm = _b[0], setStateForm = _b[1];
|
|
@@ -116,6 +117,10 @@ function FormElement(_a) {
|
|
|
116
117
|
setStateForm({ state: 'error', message: err_1.error.message });
|
|
117
118
|
return [2 /*return*/];
|
|
118
119
|
}
|
|
120
|
+
if (err_1 instanceof conflict_error_1.ConflictError) {
|
|
121
|
+
setStateForm({ state: 'error', message: err_1.error.message });
|
|
122
|
+
return [2 /*return*/];
|
|
123
|
+
}
|
|
119
124
|
if (err_1 instanceof system_1.ValidationError) {
|
|
120
125
|
setStateForm({ state: 'default', message: '' });
|
|
121
126
|
validationErrors_1 = err_1.errors;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/handler/form-handler/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA2C;AAE3C,iCAAyC;AAEzC,2BAA6B;AAC7B,kDAAyE;AAIzE,2CAA8B;AAC9B,mCAA2D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/handler/form-handler/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA2C;AAE3C,iCAAyC;AAEzC,2BAA6B;AAC7B,kDAAyE;AAIzE,2CAA8B;AAC9B,mCAA2D;AAC3D,mGAAgG;AAEhG,SAAwB,WAAW,CAAC,EAAwE;QAAtE,MAAM,YAAA,EAAE,QAAQ,cAAA,EAAE,QAAQ,cAAA,EAAE,YAAY,kBAAA,EAAE,YAAY,kBAAA;IACpF,IAAA,KAA4B,IAAA,gBAAQ,EAAC,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,EAA/D,SAAS,QAAA,EAAE,YAAY,QAAwC,CAAA;IAEhE,IAAA,KAAuC,IAAA,yBAAgB,GAAE,EAAvD,MAAM,YAAA,EAAE,SAAS,eAAA,EAAE,aAAa,mBAAuB,CAAA;IAE/D,SAAe,QAAQ,CAAC,MAAqC;;;;;;;wBAEzD,YAAY,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAA;wBAE/C,SAAS,CAAC,EAAE,CAAC,CAAA;wBAEb,KAAA,QAAQ,IAAI,CAAC,MAAM,CAAA;iCAAnB,wBAAmB;wBAAK,qBAAM,QAAQ,CAAC,MAAM,CAAC,EAAA;;wBAAvB,KAAA,CAAC,SAAsB,CAAC,CAAA;;;wBAA/C,GAA+C;wBAE/C,CAAC,MAAM,IAAI,YAAY,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAA;wBAEvD,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;;;;wBAEtC,IAAI,KAAG,YAAY,wBAAe,EAAE,CAAC;4BACnC,YAAY,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAG,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;4BAE5D,sBAAM;wBACR,CAAC;wBAED,IAAG,KAAG,YAAY,8BAAa,EAAE,CAAC;4BAChC,YAAY,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAG,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;4BAE5D,sBAAM;wBACR,CAAC;wBAED,IAAI,KAAG,YAAY,wBAAe,EAAE,CAAC;4BACnC,YAAY,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAA;4BAEzC,qBAAmB,KAAG,CAAC,MAAM,CAAA;4BAEnC,MAAM,CAAC,IAAI,CAAC,kBAAgB,CAAC,CAAC,OAAO,CAAC,UAAC,GAAG;gCACxC,aAAa,CAAC,GAAG,EAAE,kBAAgB,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;4BACrD,CAAC,CAAC,CAAA;wBACJ,CAAC;;;;;;KAEJ;IAED,SAAS,YAAY,CAAC,MAAY;QAChC,QAAQ,CAAC,MAAM,CAAC,CAAA;IAClB,CAAC;IAED,IAAA,iBAAS,EAAC;QACR,YAAY,IAAI,YAAY,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;IACrD,CAAC,iBAAG,MAAM,GAAK,CAAC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,sBAAsB,KAAI,EAAE,CAAC,QAAE,CAAA;IAE7D,OAAO,CACL,wBAAC,CAAC,CAAC,WAAW,eACX,SAAS,CAAC,KAAK,KAAK,OAAO,IAAI,iCAAM,SAAS,EAAC,YAAY,YAAE,SAAS,CAAC,OAAO,GAAQ,EAEtF,QAAQ,EAET,iCAAK,SAAS,EAAC,aAAa,aACzB,MAAM,IAAI,CACT,uBAAC,WAAM,eAAK,MAAM,IAAE,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,cAAM,OAAA,YAAY,EAAE,EAAd,CAAc,EAAE,OAAO,EAAE,SAAS,CAAC,KAAK,KAAK,SAAS,IAAI,CAC5G,EAEA,YAAY;wBACX,YAAY,CAAC,MAAM,GAAG,CAAC;wBACvB,YAAY,CAAC,GAAG,CAAC,UAAC,MAAM,EAAE,KAAK,IAAK,OAAA,CAClC,uBAAC,kCAAkB,eAAiB,MAAM,IAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,KAA/D,KAAK,CAA8D,CAC7F,EAFmC,CAEnC,CAAC,IACA,IACQ,CACjB,CAAA;AACH,CAAC;AApED,8BAoEC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IFormHandler } from './interfaces';
|
|
1
|
+
import { IFormHandler } from './interfaces.js';
|
|
2
2
|
export declare function FormHandler(props: IFormHandler): import("react/jsx-runtime").JSX.Element;
|
|
@@ -17,7 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.FormHandler = void 0;
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
19
|
var formik_1 = require("formik");
|
|
20
|
-
var form_handler_1 = __importDefault(require("./form-handler"));
|
|
20
|
+
var form_handler_1 = __importDefault(require("./form-handler/index.js"));
|
|
21
21
|
function FormHandler(props) {
|
|
22
22
|
return ((0, jsx_runtime_1.jsx)(formik_1.Formik, { initialValues: props.initialData || {}, onSubmit: function () { }, children: (0, jsx_runtime_1.jsx)(formik_1.Form, { children: (0, jsx_runtime_1.jsx)(form_handler_1.default, __assign({}, props, { children: props.children })) }) }));
|
|
23
23
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ButtonProps } from '
|
|
3
|
-
import { ICustomSubmitProps } from './custom-submit';
|
|
2
|
+
import { ButtonProps } from '../../../../ui/index.js';
|
|
3
|
+
import { ICustomSubmitProps } from './custom-submit/index.js';
|
|
4
4
|
export interface IFormHandler {
|
|
5
5
|
ref?: any;
|
|
6
6
|
onSucess?: (data: any) => void;
|
|
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.FormHandler = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.FormHandler = (0, styled_components_1.default)("div")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n\n .error-form {\n color: red;\n margin-bottom: 10px;\n display: block;\n text-align: center;\n }\n"], ["\n width: 100%;\n\n .error-form {\n color: red;\n margin-bottom: 10px;\n display: block;\n text-align: center;\n }\n"])));
|
|
12
|
+
exports.FormHandler = (0, styled_components_1.default)("div")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n\n .error-form {\n color: red;\n margin-bottom: 10px;\n display: block;\n text-align: center;\n }\n\n .form-button {\n\n button {\n width: 100%;\n font-size: 14px;\n background-color: #000;\n height: 36px;\n color: #fff;\n }\n }\n"], ["\n width: 100%;\n\n .error-form {\n color: red;\n margin-bottom: 10px;\n display: block;\n text-align: center;\n }\n\n .form-button {\n\n button {\n width: 100%;\n font-size: 14px;\n background-color: #000;\n height: 36px;\n color: #fff;\n }\n }\n"])));
|
|
13
13
|
var templateObject_1;
|
|
14
14
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/handler/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAuC;AAE1B,QAAA,WAAW,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/handler/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAuC;AAE1B,QAAA,WAAW,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,4WAAA,ySAoBvC,KAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from "./input";
|
|
2
|
-
export * from "./radio";
|
|
3
|
-
export * from "./select";
|
|
4
|
-
export * from "./handler";
|
|
5
|
-
export * from "./textarea";
|
|
6
|
-
export * from "./checkbox";
|
|
7
|
-
export * from "./input-mask";
|
|
8
|
-
export * from "./input-file";
|
|
9
|
-
export * from "./input-switch";
|
|
10
|
-
export * from "./input-control";
|
|
11
|
-
export * from "./input-password";
|
|
12
|
-
export * from "./input-cpf-cnpj";
|
|
1
|
+
export * from "./input/index.js";
|
|
2
|
+
export * from "./radio/index.js";
|
|
3
|
+
export * from "./select/index.js";
|
|
4
|
+
export * from "./handler/index.js";
|
|
5
|
+
export * from "./textarea/index.js";
|
|
6
|
+
export * from "./checkbox/index.js";
|
|
7
|
+
export * from "./input-mask/index.js";
|
|
8
|
+
export * from "./input-file/index.js";
|
|
9
|
+
export * from "./input-switch/index.js";
|
|
10
|
+
export * from "./input-control/index.js";
|
|
11
|
+
export * from "./input-password/index.js";
|
|
12
|
+
export * from "./input-cpf-cnpj/index.js";
|
|
@@ -14,16 +14,16 @@ 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("./input"), exports);
|
|
18
|
-
__exportStar(require("./radio"), exports);
|
|
19
|
-
__exportStar(require("./select"), exports);
|
|
20
|
-
__exportStar(require("./handler"), exports);
|
|
21
|
-
__exportStar(require("./textarea"), exports);
|
|
22
|
-
__exportStar(require("./checkbox"), exports);
|
|
23
|
-
__exportStar(require("./input-mask"), exports);
|
|
24
|
-
__exportStar(require("./input-file"), exports);
|
|
25
|
-
__exportStar(require("./input-switch"), exports);
|
|
26
|
-
__exportStar(require("./input-control"), exports);
|
|
27
|
-
__exportStar(require("./input-password"), exports);
|
|
28
|
-
__exportStar(require("./input-cpf-cnpj"), exports);
|
|
17
|
+
__exportStar(require("./input/index.js"), exports);
|
|
18
|
+
__exportStar(require("./radio/index.js"), exports);
|
|
19
|
+
__exportStar(require("./select/index.js"), exports);
|
|
20
|
+
__exportStar(require("./handler/index.js"), exports);
|
|
21
|
+
__exportStar(require("./textarea/index.js"), exports);
|
|
22
|
+
__exportStar(require("./checkbox/index.js"), exports);
|
|
23
|
+
__exportStar(require("./input-mask/index.js"), exports);
|
|
24
|
+
__exportStar(require("./input-file/index.js"), exports);
|
|
25
|
+
__exportStar(require("./input-switch/index.js"), exports);
|
|
26
|
+
__exportStar(require("./input-control/index.js"), exports);
|
|
27
|
+
__exportStar(require("./input-password/index.js"), exports);
|
|
28
|
+
__exportStar(require("./input-cpf-cnpj/index.js"), exports);
|
|
29
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InputProps } from '../interfaces';
|
|
1
|
+
import { InputProps } from '../interfaces.js';
|
|
2
2
|
export declare function Input(props: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,7 +14,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
exports.Input = void 0;
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
var formik_1 = require("formik");
|
|
17
|
-
var input_control_1 = require("../input-control");
|
|
17
|
+
var input_control_1 = require("../input-control/index.js");
|
|
18
18
|
function Input(props) {
|
|
19
19
|
var field = (0, formik_1.useField)({ name: props.name })[0];
|
|
20
20
|
return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { children: (0, jsx_runtime_1.jsx)("input", __assign({}, field, props, { id: props.name })) })));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InputProps } from '../../interfaces';
|
|
1
|
+
import { InputProps } from '../../interfaces.js';
|
|
2
2
|
export declare function ErrorMessage({ name }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.ErrorMessage = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
28
|
var formik_1 = require("formik");
|
|
29
|
-
var S = __importStar(require("./styles"));
|
|
29
|
+
var S = __importStar(require("./styles.js"));
|
|
30
30
|
function ErrorMessage(_a) {
|
|
31
31
|
var name = _a.name;
|
|
32
32
|
var errors = (0, formik_1.useFormikContext)().errors;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InputProps } from '../interfaces';
|
|
1
|
+
import { InputProps } from '../interfaces.js';
|
|
2
2
|
export declare function InputControl({ name, label, loading, children }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -25,11 +25,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.InputControl = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var ui_1 = require("
|
|
29
|
-
var label_1 = require("./label");
|
|
30
|
-
var error_1 = require("./error");
|
|
31
|
-
var loader_input_1 = require("./loader-input");
|
|
32
|
-
var S = __importStar(require("./styles"));
|
|
28
|
+
var ui_1 = require("../../../../ui/index.js");
|
|
29
|
+
var label_1 = require("./label/index.js");
|
|
30
|
+
var error_1 = require("./error/index.js");
|
|
31
|
+
var loader_input_1 = require("./loader-input/index.js");
|
|
32
|
+
var S = __importStar(require("./styles.js"));
|
|
33
33
|
function InputControl(_a) {
|
|
34
34
|
var name = _a.name, label = _a.label, loading = _a.loading, children = _a.children;
|
|
35
35
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: "input-control-".concat(name), children: (0, jsx_runtime_1.jsxs)(S.InputControl, { "$loading": loading, children: [label && (0, jsx_runtime_1.jsx)(label_1.Label, { inputId: name, label: label }), (0, jsx_runtime_1.jsxs)("div", { className: 'input-content', children: [loading && (0, jsx_runtime_1.jsx)(loader_input_1.LoaderInput, {}), (0, jsx_runtime_1.jsx)("div", { children: children })] }), (0, jsx_runtime_1.jsx)(error_1.ErrorMessage, { name: name })] }) }));
|
|
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.Label = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var S = __importStar(require("./styles"));
|
|
28
|
+
var S = __importStar(require("./styles.js"));
|
|
29
29
|
function Label(_a) {
|
|
30
30
|
var inputId = _a.inputId, label = _a.label;
|
|
31
31
|
return ((0, jsx_runtime_1.jsx)(S.Label, { children: (0, jsx_runtime_1.jsx)("label", { htmlFor: inputId, children: label }) }));
|
|
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.LoaderInput = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var ui_1 = require("
|
|
29
|
-
var S = __importStar(require("./styles"));
|
|
28
|
+
var ui_1 = require("../../../../../ui/index.js");
|
|
29
|
+
var S = __importStar(require("./styles.js"));
|
|
30
30
|
function LoaderInput() {
|
|
31
31
|
return ((0, jsx_runtime_1.jsx)(S.LoaderInput, { children: (0, jsx_runtime_1.jsx)(ui_1.LoaderCircle, { size: 20, color: '#000' }) }));
|
|
32
32
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InputProps } from '../interfaces';
|
|
1
|
+
import { InputProps } from '../interfaces.js';
|
|
2
2
|
export declare function InputCpfCnpj(props: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,7 +15,7 @@ exports.InputCpfCnpj = void 0;
|
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
var formik_1 = require("formik");
|
|
17
17
|
var mask_1 = require("@react-input/mask");
|
|
18
|
-
var input_control_1 = require("../input-control");
|
|
18
|
+
var input_control_1 = require("../input-control/index.js");
|
|
19
19
|
function InputCpfCnpj(props) {
|
|
20
20
|
var _a = (0, formik_1.useField)({ name: props.name }), field = _a[0], _ = _a[1], helpers = _a[2];
|
|
21
21
|
function modify(value) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InputProps } from '../interfaces';
|
|
1
|
+
import { InputProps } from '../interfaces.js';
|
|
2
2
|
export declare function InputFile(props: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.InputFile = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
28
|
var formik_1 = require("formik");
|
|
29
|
-
var S = __importStar(require("./styles"));
|
|
29
|
+
var S = __importStar(require("./styles.js"));
|
|
30
30
|
function InputFile(props) {
|
|
31
31
|
var field = (0, formik_1.useField)({ name: props.name })[0];
|
|
32
32
|
return ((0, jsx_runtime_1.jsx)(S.InputFile, { children: (0, jsx_runtime_1.jsx)("input", { type: "file" }) }));
|
|
@@ -15,7 +15,7 @@ exports.InputMask = void 0;
|
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
var formik_1 = require("formik");
|
|
17
17
|
var mask_1 = require("@react-input/mask");
|
|
18
|
-
var input_control_1 = require("../input-control");
|
|
18
|
+
var input_control_1 = require("../input-control/index.js");
|
|
19
19
|
function InputMask(props) {
|
|
20
20
|
var field = (0, formik_1.useField)({ name: props.name })[0];
|
|
21
21
|
var inputRef = (0, mask_1.useMask)({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InputProps } from '../interfaces';
|
|
1
|
+
import { InputProps } from '../interfaces.js';
|
|
2
2
|
export declare function InputPassword(props: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -38,8 +38,8 @@ exports.InputPassword = void 0;
|
|
|
38
38
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
39
|
var react_1 = require("react");
|
|
40
40
|
var formik_1 = require("formik");
|
|
41
|
-
var input_control_1 = require("../input-control");
|
|
42
|
-
var S = __importStar(require("./styles"));
|
|
41
|
+
var input_control_1 = require("../input-control/index.js");
|
|
42
|
+
var S = __importStar(require("./styles.js"));
|
|
43
43
|
function InputPassword(props) {
|
|
44
44
|
var _a = (0, react_1.useState)(false), showPassword = _a[0], setShowPassword = _a[1];
|
|
45
45
|
var field = (0, formik_1.useField)(props.name)[0];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InputProps } from '../interfaces';
|
|
1
|
+
import { InputProps } from '../interfaces.js';
|
|
2
2
|
export declare function InputSwitch(props: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,7 +15,7 @@ exports.InputSwitch = void 0;
|
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
var formik_1 = require("formik");
|
|
17
17
|
var semantic_ui_react_1 = require("semantic-ui-react");
|
|
18
|
-
var input_control_1 = require("../input-control");
|
|
18
|
+
var input_control_1 = require("../input-control/index.js");
|
|
19
19
|
function InputSwitch(props) {
|
|
20
20
|
var field = (0, formik_1.useField)({ name: props.name, type: "checkbox" })[0];
|
|
21
21
|
return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { children: (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Checkbox, __assign({ toggle: true }, field, { id: props.name })) })));
|
|
@@ -9,6 +9,6 @@ export interface IOptionSelect {
|
|
|
9
9
|
label: string;
|
|
10
10
|
value: string;
|
|
11
11
|
}
|
|
12
|
-
export type InputProps = JSX.IntrinsicElements["input"] & JSX.IntrinsicElements["textarea"] & Props;
|
|
13
12
|
export type ISelectProps = JSX.IntrinsicElements["select"] & InputProps;
|
|
13
|
+
export type InputProps = JSX.IntrinsicElements["input"] & JSX.IntrinsicElements["textarea"] & Props;
|
|
14
14
|
export {};
|
|
@@ -37,7 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.InputRadio = void 0;
|
|
38
38
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
39
|
var formik_1 = require("formik");
|
|
40
|
-
var S = __importStar(require("./styles"));
|
|
40
|
+
var S = __importStar(require("./styles.js"));
|
|
41
41
|
function InputRadio(props) {
|
|
42
42
|
var field = (0, formik_1.useField)({ name: props.name })[0];
|
|
43
43
|
return ((0, jsx_runtime_1.jsx)(S.InputRadio, { children: (0, jsx_runtime_1.jsx)("div", { className: 'list-radios', children: props.options.map(function (option, index) { return ((0, jsx_runtime_1.jsx)("label", { htmlFor: props.name + index, children: (0, jsx_runtime_1.jsx)("input", __assign({ id: props.name + index }, field, { type: 'radio', value: option.value })) }, option.value)); }) }) }));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ISelectProps } from './interfaces';
|
|
1
|
+
import { ISelectProps } from './interfaces.js';
|
|
2
2
|
export declare function Select(props: ISelectProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -41,8 +41,8 @@ exports.Select = void 0;
|
|
|
41
41
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
42
|
var formik_1 = require("formik");
|
|
43
43
|
var react_select_1 = __importDefault(require("react-select"));
|
|
44
|
-
var ui_1 = require("
|
|
45
|
-
var S = __importStar(require("./styles"));
|
|
44
|
+
var ui_1 = require("../../../../ui/index.js");
|
|
45
|
+
var S = __importStar(require("./styles.js"));
|
|
46
46
|
function Select(props) {
|
|
47
47
|
var _a;
|
|
48
48
|
var _b = (0, formik_1.useField)({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InputProps } from '../interfaces';
|
|
1
|
+
import { InputProps } from '../interfaces.js';
|
|
2
2
|
export declare function Textarea(props: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,7 +14,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
exports.Textarea = void 0;
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
var formik_1 = require("formik");
|
|
17
|
-
var input_control_1 = require("../input-control");
|
|
17
|
+
var input_control_1 = require("../input-control/index.js");
|
|
18
18
|
function Textarea(props) {
|
|
19
19
|
var field = (0, formik_1.useField)({ name: props.name })[0];
|
|
20
20
|
return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { children: (0, jsx_runtime_1.jsx)("textarea", __assign({ id: props.name, className: "font-16-regular" }, props, field)) })));
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export * from './form';
|
|
2
|
-
export * from './button';
|
|
3
|
-
export * from './sidebar';
|
|
4
|
-
export * from './container';
|
|
5
|
-
export * from './next-image';
|
|
6
|
-
export * from './breadcrumb';
|
|
7
|
-
export * from './menu-mobile';
|
|
8
|
-
export * from './loader-circle';
|
|
9
|
-
export * from './error-boundary';
|
|
1
|
+
export * from './form/index.js';
|
|
2
|
+
export * from './button/index.js';
|
|
3
|
+
export * from './sidebar/index.js';
|
|
4
|
+
export * from './container/index.js';
|
|
5
|
+
export * from './next-image/index.js';
|
|
6
|
+
export * from './breadcrumb/index.js';
|
|
7
|
+
export * from './menu-mobile/index.js';
|
|
8
|
+
export * from './loader-circle/index.js';
|
|
9
|
+
export * from './error-boundary/index.js';
|
|
10
|
+
export * from './loading-screen/index.js';
|