infinity-forge 0.5.3 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +11 -0
- package/dist/system/container/admin/auth/index.d.ts +2 -0
- package/dist/system/container/admin/auth/index.js +19 -0
- package/dist/system/container/admin/index.d.ts +3 -0
- package/dist/system/container/admin/index.js +20 -0
- package/dist/system/container/admin/menu/container.js +11 -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/users/container.js +12 -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/decorators/authorize-http-client-decorator.d.ts +8 -0
- package/dist/system/container/decorators/authorize-http-client-decorator.js +117 -0
- package/dist/system/container/decorators/index.d.ts +1 -0
- package/dist/system/container/decorators/index.js +18 -0
- package/dist/system/container/index.d.ts +2 -0
- package/dist/system/container/index.js +19 -0
- package/dist/system/container/infra/container.js +15 -0
- package/dist/system/container/infra/index.d.ts +3 -0
- package/dist/system/container/infra/index.js +20 -0
- package/dist/system/container/main.d.ts +4 -0
- package/dist/system/container/main.js +12 -0
- package/dist/system/container/types.js +17 -0
- package/dist/system/data/index.d.ts +1 -0
- package/dist/system/data/index.js +18 -0
- package/dist/system/data/use-cases/auth/index.d.ts +1 -0
- package/dist/system/data/use-cases/auth/index.js +18 -0
- package/dist/system/data/use-cases/auth/remote-auth-admin.d.ts +10 -0
- package/dist/system/data/use-cases/auth/remote-auth-admin.js +116 -0
- package/dist/system/data/use-cases/index.d.ts +3 -0
- package/dist/system/data/use-cases/index.js +20 -0
- 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/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/users/index.d.ts +2 -0
- package/dist/system/data/use-cases/users/index.js +19 -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-users.d.ts +12 -0
- package/dist/system/data/use-cases/users/remote-users.js +177 -0
- package/dist/system/domain/generics/index.d.ts +2 -0
- package/dist/system/domain/generics/index.js +19 -0
- package/dist/system/domain/index.d.ts +3 -0
- package/dist/system/domain/index.js +20 -0
- package/dist/system/domain/protocols/cache/get-storage.d.ts +4 -0
- package/dist/system/domain/protocols/cache/index.d.ts +3 -0
- package/dist/system/domain/protocols/cache/index.js +20 -0
- package/dist/system/domain/protocols/cache/set-storage.d.ts +4 -0
- package/dist/system/domain/protocols/http/errors/http-errors/index.d.ts +5 -0
- package/dist/system/domain/protocols/http/errors/http-errors/index.js +22 -0
- package/dist/system/domain/protocols/http/errors/index.d.ts +2 -0
- package/dist/system/domain/protocols/http/errors/index.js +19 -0
- package/dist/system/domain/protocols/http/errors/system-errors-model/index.d.ts +1 -0
- package/dist/system/domain/protocols/http/errors/system-errors-model/index.js +18 -0
- package/dist/system/domain/protocols/http/http-client.d.ts +33 -0
- package/dist/system/domain/protocols/http/index.d.ts +2 -0
- package/dist/system/domain/protocols/http/index.js +19 -0
- package/dist/system/domain/protocols/index.d.ts +2 -0
- package/dist/system/domain/protocols/index.js +19 -0
- package/dist/system/domain/use-cases/auth/admin/index.d.ts +1 -0
- package/dist/system/domain/use-cases/auth/admin/index.js +18 -0
- package/dist/system/domain/use-cases/auth/index.d.ts +1 -0
- package/dist/system/domain/use-cases/auth/index.js +18 -0
- package/dist/system/domain/use-cases/index.d.ts +3 -0
- package/dist/system/domain/use-cases/index.js +20 -0
- 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/load-menu.d.ts +15 -0
- package/dist/system/domain/use-cases/users/delete-user.d.ts +10 -0
- package/dist/system/domain/use-cases/users/edit-user.d.ts +8 -0
- package/dist/system/domain/use-cases/users/get-detail-user.d.ts +10 -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/load-all-users.d.ts +23 -0
- 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 +6 -0
- package/dist/system/infra/cache/index.d.ts +2 -0
- package/dist/system/infra/cache/index.js +19 -0
- package/dist/system/infra/cache/storage-type.d.ts +2 -0
- package/dist/system/infra/http/axios-http-client.d.ts +4 -0
- package/dist/system/infra/http/axios-http-client.js +115 -0
- package/dist/system/infra/http/index.d.ts +1 -0
- package/dist/system/infra/http/index.js +18 -0
- package/dist/system/infra/index.d.ts +3 -0
- package/dist/system/infra/index.js +20 -0
- package/dist/system/infra/type-models/index.d.ts +2 -0
- package/dist/system/infra/type-models/index.js +19 -0
- 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 +2 -2
- 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 +2 -2
- 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 +4 -0
- package/dist/system/presentation/hooks/ui/use-table/component.js +25 -0
- 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 +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/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 +3 -0
- package/dist/system/presentation/hooks/ui/use-table/index.js +20 -0
- package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +59 -0
- 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/index.d.ts +5 -5
- package/dist/system/presentation/index.js +5 -5
- package/dist/system/presentation/utils/index.d.ts +1 -0
- package/dist/system/presentation/utils/index.js +18 -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/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 +16 -0
- package/dist/ui/components/form/handler/custom-submit/index.js +22 -0
- 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/interfaces.d.ts +21 -0
- 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 +18 -0
- 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 +2 -0
- package/dist/ui/components/form/input/index.js +23 -0
- package/dist/ui/components/form/input-control/error/index.d.ts +2 -0
- package/dist/ui/components/form/input-control/error/index.js +40 -0
- package/dist/ui/components/form/input-control/index.d.ts +2 -0
- package/dist/ui/components/form/input-control/index.js +38 -0
- package/dist/ui/components/form/input-control/loader-input/index.js +34 -0
- 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 +46 -0
- package/dist/ui/components/form/select/index.d.ts +2 -0
- package/dist/ui/components/form/select/index.js +68 -0
- package/dist/ui/components/form/select/interfaces.d.ts +22 -0
- 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 +2 -0
- 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/index.d.ts +5 -5
- package/dist/ui/index.js +5 -5
- package/package.json +1 -1
- package/dist/system/domain/generics/return-type.d.ts +0 -8
- package/dist/system/domain/generics/return-type.js +0 -3
- package/dist/system/domain/generics/return-type.js.map +0 -1
- package/dist/system/presentation/configs/menu.d.ts +0 -16
- package/dist/system/presentation/configs/menu.js +0 -138
- package/dist/system/presentation/configs/menu.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/index.d.ts +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/index.js +0 -33
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/index.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/styles.d.ts +0 -4
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/styles.js +0 -14
- package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/styles.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.d.ts +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.js +0 -33
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.d.ts +0 -4
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.js +0 -14
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/index.d.ts +0 -2
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/index.js +0 -56
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/index.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.d.ts +0 -7
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.js +0 -3
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/styles.d.ts +0 -8
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/styles.js +0 -14
- package/dist/system/presentation/hooks/ui/use-table/components/searchbar/styles.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/query/index.d.ts +0 -6
- package/dist/system/presentation/hooks/ui/use-table/query/index.js +0 -30
- package/dist/system/presentation/hooks/ui/use-table/query/index.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/query/interfaces.d.ts +0 -33
- package/dist/system/presentation/hooks/ui/use-table/query/interfaces.js +0 -3
- package/dist/system/presentation/hooks/ui/use-table/query/interfaces.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/query/service.d.ts +0 -25
- package/dist/system/presentation/hooks/ui/use-table/query/service.js +0 -113
- package/dist/system/presentation/hooks/ui/use-table/query/service.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/utils/buffer.d.ts +0 -3
- package/dist/system/presentation/hooks/ui/use-table/utils/buffer.js +0 -32
- package/dist/system/presentation/hooks/ui/use-table/utils/buffer.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/utils/filter-empty-values.d.ts +0 -1
- package/dist/system/presentation/hooks/ui/use-table/utils/filter-empty-values.js +0 -22
- package/dist/system/presentation/hooks/ui/use-table/utils/filter-empty-values.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/utils/index.d.ts +0 -4
- package/dist/system/presentation/hooks/ui/use-table/utils/index.js +0 -21
- package/dist/system/presentation/hooks/ui/use-table/utils/index.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/utils/is-object-empty.d.ts +0 -1
- package/dist/system/presentation/hooks/ui/use-table/utils/is-object-empty.js +0 -12
- package/dist/system/presentation/hooks/ui/use-table/utils/is-object-empty.js.map +0 -1
- package/dist/system/presentation/hooks/ui/use-table/utils/update-route.d.ts +0 -6
- package/dist/system/presentation/hooks/ui/use-table/utils/update-route.js +0 -31
- package/dist/system/presentation/hooks/ui/use-table/utils/update-route.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ActiveIndicator = void 0;
|
|
11
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.ActiveIndicator = (0, styled_components_1.default)("div")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n width: 14px;\n height: 14px;\n border: 3px solid #fff;\n border-radius: 100%;\n background-color: #000;\n"], ["\n position: absolute;\n width: 14px;\n height: 14px;\n border: 3px solid #fff;\n border-radius: 100%;\n background-color: #000;\n"])));
|
|
13
|
-
var templateObject_1;
|
|
14
|
-
//# sourceMappingURL=styles.js.map
|
package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/styles.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/active-indicator/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAuC;AAE1B,QAAA,eAAe,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,6MAAA,0IAO3C,KAAC"}
|
package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ActiveIndicator(): import("react/jsx-runtime").JSX.Element;
|
package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.ActiveIndicator = void 0;
|
|
27
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var S = __importStar(require("./styles.js"));
|
|
29
|
-
function ActiveIndicator() {
|
|
30
|
-
return (0, jsx_runtime_1.jsx)(S.ActiveIndicator, { className: "active-indicator" });
|
|
31
|
-
}
|
|
32
|
-
exports.ActiveIndicator = ActiveIndicator;
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAA6B;AAE7B,SAAgB,eAAe;IAC3B,OAAO,uBAAC,CAAC,CAAC,eAAe,IAAC,SAAS,EAAC,kBAAkB,GAAE,CAAA;AAC5D,CAAC;AAFD,0CAEC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ActiveIndicator: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
-
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
|
-
}, never>>;
|
package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ActiveIndicator = void 0;
|
|
11
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.ActiveIndicator = (0, styled_components_1.default)("div")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n width: 14px;\n height: 14px;\n border: 3px solid #fff;\n border-radius: 100%;\n background-color: #000;\n"], ["\n position: absolute;\n width: 14px;\n height: 14px;\n border: 3px solid #fff;\n border-radius: 100%;\n background-color: #000;\n"])));
|
|
13
|
-
var templateObject_1;
|
|
14
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAuC;AAE1B,QAAA,eAAe,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,6MAAA,0IAO3C,KAAC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.SearchBar = void 0;
|
|
27
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var react_1 = require("react");
|
|
29
|
-
var router_1 = require("next/router");
|
|
30
|
-
var ui_1 = require("../../../../../../../ui/index.js");
|
|
31
|
-
var utils_1 = require("../../utils/index.js");
|
|
32
|
-
var active_indicator_1 = require("../active-indicator/index.js");
|
|
33
|
-
var S = __importStar(require("./styles.js"));
|
|
34
|
-
function SearchBar(_a) {
|
|
35
|
-
var _b, _c, _d;
|
|
36
|
-
var isFetching = _a.isFetching;
|
|
37
|
-
var router = (0, router_1.useRouter)();
|
|
38
|
-
var _e = (0, react_1.useState)(((_b = router.query) === null || _b === void 0 ? void 0 : _b.search) || ""), search = _e[0], setSearch = _e[1];
|
|
39
|
-
var _f = (0, react_1.useState)(false), error = _f[0], setError = _f[1];
|
|
40
|
-
function handleChange(ev) {
|
|
41
|
-
setSearch(ev.target.value);
|
|
42
|
-
(0, utils_1.updateRoute)({ params: { search: ev.target.value }, router: router });
|
|
43
|
-
}
|
|
44
|
-
(0, react_1.useEffect)(function () {
|
|
45
|
-
if (search.length > 0) {
|
|
46
|
-
setError(false);
|
|
47
|
-
}
|
|
48
|
-
}, [search]);
|
|
49
|
-
(0, react_1.useEffect)(function () {
|
|
50
|
-
var _a;
|
|
51
|
-
setSearch(((_a = router.query) === null || _a === void 0 ? void 0 : _a.search) || "");
|
|
52
|
-
}, [(_c = router.query) === null || _c === void 0 ? void 0 : _c.search]);
|
|
53
|
-
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: "search-table", children: (0, jsx_runtime_1.jsx)(S.SearchBar, { "$error": !!error, children: (0, jsx_runtime_1.jsx)("div", { className: "search", children: ((_d = router.query) === null || _d === void 0 ? void 0 : _d.search) && (0, jsx_runtime_1.jsx)(active_indicator_1.ActiveIndicator, {}) }) }) }));
|
|
54
|
-
}
|
|
55
|
-
exports.SearchBar = SearchBar;
|
|
56
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/searchbar/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA4C;AAE5C,sCAAwC;AAExC,2BAA6B;AAC7B,qCAA0C;AAC1C,wDAAsD;AAItD,0CAA8B;AAE9B,SAAgB,SAAS,CAAC,EAA2B;;QAAxB,UAAU,gBAAA;IACrC,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAC;IAErB,IAAA,KAAsB,IAAA,gBAAQ,EAAC,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,MAAM,KAAI,EAAE,CAAC,EAAzD,MAAM,QAAA,EAAE,SAAS,QAAwC,CAAC;IAC3D,IAAA,KAAoB,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAlC,KAAK,QAAA,EAAE,QAAQ,QAAmB,CAAC;IAE1C,SAAS,YAAY,CAAC,EAAE;QACtB,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAE3B,IAAA,mBAAW,EAAC,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAG,EAAE,MAAM,QAAA,EAAE,CAAC,CAAC;IAChE,CAAC;IAED,IAAA,iBAAS,EAAC;QACR,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACtB,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,IAAA,iBAAS,EAAC;;QACR,SAAS,CAAC,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,MAAM,KAAI,EAAE,CAAC,CAAC;IACxC,CAAC,EAAE,CAAC,MAAA,MAAM,CAAC,KAAK,0CAAE,MAAM,CAAC,CAAC,CAAC;IAE3B,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,cAAc,YACxB,uBAAC,CAAC,CAAC,SAAS,cAAS,CAAC,CAAC,KAAK,YAC1B,gCAAK,SAAS,EAAC,QAAQ,YAGpB,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,MAAM,KAAI,uBAAC,kCAAe,KAAG,GACxC,GACM,GACR,CACT,CAAC;AACJ,CAAC;AAjCD,8BAiCC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface SearchBarStyleProps {
|
|
3
|
-
$error: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const SearchBar: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
|
-
ref?: import("react").Ref<HTMLDivElement>;
|
|
7
|
-
}, SearchBarStyleProps>>;
|
|
8
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.SearchBar = void 0;
|
|
11
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.SearchBar = (0, styled_components_1.default)("div")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: flex-end;\n\n .active-indicator {\n top: 6px;\n right: 23px;\n z-index: 3;\n }\n\n .MuiSelect-select {\n width: 100px;\n }\n\n .search {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n width: 370px;\n position: relative;\n transition: 0.3;\n\n input {\n padding: 8px 12px;\n z-index: 1;\n position: relative;\n transition: 0.3;\n font-size: 14px;\n }\n\n input::placeholder {\n color: ", ";\n opacity: 1;\n }\n\n button {\n position: absolute;\n right: 0;\n z-index: 2;\n border-radius: 100%;\n }\n }\n"], ["\n display: flex;\n align-items: flex-end;\n\n .active-indicator {\n top: 6px;\n right: 23px;\n z-index: 3;\n }\n\n .MuiSelect-select {\n width: 100px;\n }\n\n .search {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n width: 370px;\n position: relative;\n transition: 0.3;\n\n input {\n padding: 8px 12px;\n z-index: 1;\n position: relative;\n transition: 0.3;\n font-size: 14px;\n }\n\n input::placeholder {\n color: ", ";\n opacity: 1;\n }\n\n button {\n position: absolute;\n right: 0;\n z-index: 2;\n border-radius: 100%;\n }\n }\n"])), function (props) { return (props.$error ? "#d32f2f" : "rgba(0, 0, 0, 0.87)"); });
|
|
13
|
-
var templateObject_1;
|
|
14
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/searchbar/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAuC;AAM1B,QAAA,SAAS,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,kuBAAqB,ugBA+B5C,EAA6D,sJAW3E,KAXc,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,EAAlD,CAAkD,EAW1E"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IResponseGetTableInformations } from "./service.js";
|
|
2
|
-
import { IUseQueryTable } from "./interfaces.js";
|
|
3
|
-
export declare function useQueryTable({ router, tableKey, configs }: IUseQueryTable): {
|
|
4
|
-
tableIsFetching: boolean;
|
|
5
|
-
tableInformations: IResponseGetTableInformations;
|
|
6
|
-
};
|
|
@@ -1,30 +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.useQueryTable = void 0;
|
|
15
|
-
var react_query_1 = require("@tanstack/react-query");
|
|
16
|
-
var service_1 = require("./service.js");
|
|
17
|
-
function useQueryTable(_a) {
|
|
18
|
-
var router = _a.router, tableKey = _a.tableKey, configs = _a.configs;
|
|
19
|
-
var _b = (0, react_query_1.useQuery)(__assign(__assign({}, service_1.configsQuery), { enabled: (configs === null || configs === void 0 ? void 0 : configs.disableFetch) ? false : !!(router === null || router === void 0 ? void 0 : router.isReady), queryKey: ["table-".concat(tableKey), router === null || router === void 0 ? void 0 : router.query], queryFn: function () {
|
|
20
|
-
return (0, service_1.getTableInformations)({ params: router === null || router === void 0 ? void 0 : router.query, tableKey: tableKey });
|
|
21
|
-
} })), data = _b.data, isFetching = _b.isFetching;
|
|
22
|
-
return {
|
|
23
|
-
tableIsFetching: isFetching,
|
|
24
|
-
tableInformations: (configs === null || configs === void 0 ? void 0 : configs.tableData)
|
|
25
|
-
? __assign(__assign({}, service_1.defaultResponseTableInformations), { items: configs === null || configs === void 0 ? void 0 : configs.tableData })
|
|
26
|
-
: data,
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
exports.useQueryTable = useQueryTable;
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/hooks/ui/use-table/query/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qDAAiD;AAEjD,qCAKmB;AAInB,SAAgB,aAAa,CAAC,EAA6C;QAA3C,MAAM,YAAA,EAAE,QAAQ,cAAA,EAAE,OAAO,aAAA;IAEjD,IAAA,KAAuB,IAAA,sBAAQ,wBAChC,sBAAY,KACf,OAAO,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAC,EAC5D,QAAQ,EAAE,CAAC,gBAAS,QAAQ,CAAE,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,CAAC,EAC9C,OAAO,EAAE;YACP,OAAA,IAAA,8BAAoB,EAAC,EAAE,MAAM,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,EAAE,QAAQ,UAAA,EAAE,CAAC;QAAzD,CAAyD,IAC3D,EANM,IAAI,UAAA,EAAE,UAAU,gBAMtB,CAAC;IAEH,OAAO;QACL,eAAe,EAAE,UAAU;QAC3B,iBAAiB,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS;YACnC,CAAC,CAAC,sBAAK,0CAAgC,KAAE,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,GAAmC;YACrG,CAAC,CAAC,IAAI;KACT,CAAC;AACJ,CAAC;AAhBD,sCAgBC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { NextRouter } from "next/router";
|
|
2
|
-
import { IConfigurationsTable } from "../interfaces.js";
|
|
3
|
-
export interface IUseQueryTable {
|
|
4
|
-
router?: NextRouter;
|
|
5
|
-
tableKey: string | null;
|
|
6
|
-
configs?: IConfigurationsTable;
|
|
7
|
-
}
|
|
8
|
-
export interface IFilterDate {
|
|
9
|
-
range: boolean;
|
|
10
|
-
endDate?: string;
|
|
11
|
-
startDate?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface IFilterConfigurationsTable {
|
|
14
|
-
date: IFilterDate;
|
|
15
|
-
searchOptions: {
|
|
16
|
-
label: string;
|
|
17
|
-
value: string;
|
|
18
|
-
}[];
|
|
19
|
-
filters: {
|
|
20
|
-
key: string;
|
|
21
|
-
title: string;
|
|
22
|
-
type: string;
|
|
23
|
-
options: {
|
|
24
|
-
label: string;
|
|
25
|
-
value: string;
|
|
26
|
-
}[];
|
|
27
|
-
}[];
|
|
28
|
-
exportFormats: {
|
|
29
|
-
label: string;
|
|
30
|
-
value: string;
|
|
31
|
-
contentType: string;
|
|
32
|
-
}[];
|
|
33
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/hooks/ui/use-table/query/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { ParsedUrlQuery } from 'querystring';
|
|
3
|
-
interface IGetTableService {
|
|
4
|
-
params?: ParsedUrlQuery;
|
|
5
|
-
tableKey: string | null;
|
|
6
|
-
}
|
|
7
|
-
export declare function getTablePayload(params: ParsedUrlQuery | undefined): any;
|
|
8
|
-
export interface IResponseGetTableInformations {
|
|
9
|
-
hasNextPage: boolean;
|
|
10
|
-
hasPreviousPage: boolean;
|
|
11
|
-
items: any[];
|
|
12
|
-
pageIndex: number;
|
|
13
|
-
pageSize: number;
|
|
14
|
-
totalCount: number;
|
|
15
|
-
totalPages: number;
|
|
16
|
-
}
|
|
17
|
-
export declare const defaultResponseTableInformations: IResponseGetTableInformations;
|
|
18
|
-
declare function getTableInformations({ params, tableKey, }: IGetTableService): Promise<IResponseGetTableInformations | undefined>;
|
|
19
|
-
declare const configsQuery: {
|
|
20
|
-
retry: number;
|
|
21
|
-
staleTime: number;
|
|
22
|
-
refetchInterval: number;
|
|
23
|
-
refetchOnWindowFocus: boolean;
|
|
24
|
-
};
|
|
25
|
-
export { configsQuery, getTableInformations };
|
|
@@ -1,113 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
-
exports.getTableInformations = exports.configsQuery = exports.defaultResponseTableInformations = exports.getTablePayload = void 0;
|
|
51
|
-
var buffer_1 = require("../utils/buffer.js");
|
|
52
|
-
function formatFilterParams(params) {
|
|
53
|
-
var filterDecoded = (0, buffer_1.fromBase64ToString)(params);
|
|
54
|
-
var formatedParams = Object.keys(filterDecoded).reduce(function (reducer, param) {
|
|
55
|
-
var _a;
|
|
56
|
-
var valueParam = Object.keys(filterDecoded[param]).reduce(function (r, value) {
|
|
57
|
-
return r ? r + ',' + value : value;
|
|
58
|
-
}, '');
|
|
59
|
-
var obj = (_a = {}, _a[param] = valueParam, _a);
|
|
60
|
-
return __assign(__assign({}, reducer), obj);
|
|
61
|
-
}, {});
|
|
62
|
-
return formatedParams;
|
|
63
|
-
}
|
|
64
|
-
function getTablePayload(params) {
|
|
65
|
-
var ord = {
|
|
66
|
-
asc: undefined,
|
|
67
|
-
ordIndex: undefined,
|
|
68
|
-
ord: (params === null || params === void 0 ? void 0 : params.ordIndex) ? String((params === null || params === void 0 ? void 0 : params.ordIndex) + ((params === null || params === void 0 ? void 0 : params.asc) === 'true' ? ':asc' : '')) : undefined,
|
|
69
|
-
};
|
|
70
|
-
var formatedFilterParams = formatFilterParams(params === null || params === void 0 ? void 0 : params.filter);
|
|
71
|
-
var queryParamsPayload = __assign(__assign({}, params), { filter: undefined });
|
|
72
|
-
return __assign(__assign(__assign(__assign(__assign({}, ord), { limit: '10' }), queryParamsPayload), formatedFilterParams), { init: undefined });
|
|
73
|
-
}
|
|
74
|
-
exports.getTablePayload = getTablePayload;
|
|
75
|
-
exports.defaultResponseTableInformations = {
|
|
76
|
-
hasNextPage: false,
|
|
77
|
-
hasPreviousPage: false,
|
|
78
|
-
items: [],
|
|
79
|
-
pageIndex: 1,
|
|
80
|
-
pageSize: 1,
|
|
81
|
-
totalCount: 1,
|
|
82
|
-
totalPages: 1,
|
|
83
|
-
};
|
|
84
|
-
function getTableInformations(_a) {
|
|
85
|
-
var params = _a.params, tableKey = _a.tableKey;
|
|
86
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
87
|
-
var payload, response, _b;
|
|
88
|
-
return __generator(this, function (_c) {
|
|
89
|
-
switch (_c.label) {
|
|
90
|
-
case 0:
|
|
91
|
-
_c.trys.push([0, 2, , 3]);
|
|
92
|
-
payload = getTablePayload(params);
|
|
93
|
-
return [4 /*yield*/, fetch(process.env.apiURL + tableKey, { method: 'get', body: payload }).then(function (r) { return r.json(); })];
|
|
94
|
-
case 1:
|
|
95
|
-
response = _c.sent();
|
|
96
|
-
return [2 /*return*/, response.body];
|
|
97
|
-
case 2:
|
|
98
|
-
_b = _c.sent();
|
|
99
|
-
return [2 /*return*/, exports.defaultResponseTableInformations];
|
|
100
|
-
case 3: return [2 /*return*/];
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
exports.getTableInformations = getTableInformations;
|
|
106
|
-
var configsQuery = {
|
|
107
|
-
retry: 0,
|
|
108
|
-
staleTime: 0,
|
|
109
|
-
refetchInterval: 0,
|
|
110
|
-
refetchOnWindowFocus: false,
|
|
111
|
-
};
|
|
112
|
-
exports.configsQuery = configsQuery;
|
|
113
|
-
//# sourceMappingURL=service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/hooks/ui/use-table/query/service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,0CAAoD;AAOpD,SAAS,kBAAkB,CAAC,MAAqC;IAC/D,IAAM,aAAa,GAAG,IAAA,2BAAkB,EAAC,MAAM,CAAC,CAAA;IAEhD,IAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,UAAC,OAAO,EAAE,KAAK;;QACtE,IAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,UAAC,CAAC,EAAE,KAAK;YACnE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAA;QACpC,CAAC,EAAE,EAAE,CAAC,CAAA;QAEN,IAAM,GAAG,aAAK,GAAC,KAAK,IAAG,UAAU,KAAE,CAAA;QAEnC,6BAAY,OAAO,GAAK,GAAG,EAAE;IAC/B,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,cAAc,CAAA;AACvB,CAAC;AAED,SAAgB,eAAe,CAAC,MAAkC;IAChE,IAAM,GAAG,GAAG;QACV,GAAG,EAAE,SAAS;QACd,QAAQ,EAAE,SAAS;QACnB,GAAG,EAAE,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,EAAC,CAAC,CAAC,MAAM,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,IAAG,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,GAAG,MAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;KACtG,CAAA;IAED,IAAM,oBAAoB,GAAG,kBAAkB,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAC,CAAA;IAE/D,IAAM,kBAAkB,yBACnB,MAAM,KACT,MAAM,EAAE,SAAS,GAClB,CAAA;IAED,wDACK,GAAG,KACN,KAAK,EAAE,IAAI,KACR,kBAAkB,GAClB,oBAAoB,KACvB,IAAI,EAAE,SAAS,IAChB;AACH,CAAC;AArBD,0CAqBC;AAYY,QAAA,gCAAgC,GAAkC;IAC7E,WAAW,EAAE,KAAK;IAClB,eAAe,EAAE,KAAK;IACtB,KAAK,EAAE,EAAE;IACT,SAAS,EAAE,CAAC;IACZ,QAAQ,EAAE,CAAC;IACX,UAAU,EAAE,CAAC;IACb,UAAU,EAAE,CAAC;CACd,CAAA;AAED,SAAe,oBAAoB,CAAC,EAGjB;QAFjB,MAAM,YAAA,EACN,QAAQ,cAAA;;;;;;;oBAGA,OAAO,GAAG,eAAe,CAAC,MAAM,CAAC,CAAA;oBAEtB,qBAAM,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,GAAG,QAAQ,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,IAAI,EAAE,EAAR,CAAQ,CAAC,EAAA;;oBAA3G,QAAQ,GAAG,SAAgG;oBAEjH,sBAAO,QAAQ,CAAC,IAAI,EAAA;;;oBAEpB,sBAAO,wCAAgC,EAAA;;;;;CAE1C;AASsB,oDAAoB;AAP3C,IAAM,YAAY,GAAG;IACnB,KAAK,EAAE,CAAC;IACR,SAAS,EAAE,CAAC;IACZ,eAAe,EAAE,CAAC;IAClB,oBAAoB,EAAE,KAAK;CAC5B,CAAA;AAEQ,oCAAY"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toBase64 = exports.fromBase64ToString = void 0;
|
|
4
|
-
function fromBase64ToString(value) {
|
|
5
|
-
if (!value) {
|
|
6
|
-
return "";
|
|
7
|
-
}
|
|
8
|
-
try {
|
|
9
|
-
var decodedString = Buffer.from(value, "base64").toString("utf-8");
|
|
10
|
-
return JSON.parse(decodedString);
|
|
11
|
-
}
|
|
12
|
-
catch (error) {
|
|
13
|
-
console.error("Invalid base64 or JSON:", error);
|
|
14
|
-
return undefined;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.fromBase64ToString = fromBase64ToString;
|
|
18
|
-
function toBase64(value) {
|
|
19
|
-
try {
|
|
20
|
-
var objJsonStr = JSON.stringify(value);
|
|
21
|
-
var base64 = Buffer.from(objJsonStr).toString("base64");
|
|
22
|
-
if (base64 === "e30=") {
|
|
23
|
-
return "";
|
|
24
|
-
}
|
|
25
|
-
return base64;
|
|
26
|
-
}
|
|
27
|
-
catch (_a) {
|
|
28
|
-
return "";
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.toBase64 = toBase64;
|
|
32
|
-
//# sourceMappingURL=buffer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buffer.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/hooks/ui/use-table/utils/buffer.ts"],"names":[],"mappings":";;;AAAA,SAAS,kBAAkB,CAAC,KAAoC;IAC9D,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,CAAC;QACH,IAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,KAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,CACnE,OAAO,CACR,CAAC;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IACnC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;QAChD,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAiBQ,gDAAkB;AAf3B,SAAS,QAAQ,CAAC,KAAc;IAC9B,IAAI,CAAC;QACH,IAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACzC,IAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAE1D,IAAG,MAAM,KAAK,MAAM,EAAE,CAAC;YACrB,OAAO,EAAE,CAAA;QACX,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,WAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAE4B,4BAAQ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function filterEmptyValues(obj: any): {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.filterEmptyValues = void 0;
|
|
4
|
-
var is_object_empty_1 = require("./is-object-empty.js");
|
|
5
|
-
function filterEmptyValues(obj) {
|
|
6
|
-
var filteredObj = {};
|
|
7
|
-
for (var key in obj) {
|
|
8
|
-
var value = obj[key];
|
|
9
|
-
if (typeof value === "object") {
|
|
10
|
-
var filteredValue = filterEmptyValues(value);
|
|
11
|
-
if (!(0, is_object_empty_1.isObjectEmpty)(filteredValue)) {
|
|
12
|
-
filteredObj[key] = filteredValue;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
else if (value !== "" && value !== false) {
|
|
16
|
-
filteredObj[key] = value;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return filteredObj;
|
|
20
|
-
}
|
|
21
|
-
exports.filterEmptyValues = filterEmptyValues;
|
|
22
|
-
//# sourceMappingURL=filter-empty-values.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-empty-values.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/hooks/ui/use-table/utils/filter-empty-values.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAElD,SAAgB,iBAAiB,CAAC,GAAG;IACnC,IAAM,WAAW,GAAG,EAAE,CAAC;IACvB,KAAK,IAAM,GAAG,IAAI,GAAG,EAAE,CAAC;QACtB,IAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;QACvB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,IAAM,aAAa,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;YAC/C,IAAI,CAAC,IAAA,+BAAa,EAAC,aAAa,CAAC,EAAE,CAAC;gBAClC,WAAW,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC;YACnC,CAAC;QACH,CAAC;aAAM,IAAI,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;YAC3C,WAAW,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QAC3B,CAAC;IACH,CAAC;IACD,OAAO,WAAW,CAAC;AACrB,CAAC;AAdD,8CAcC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./buffer.js"), exports);
|
|
18
|
-
__exportStar(require("./update-route.js"), exports);
|
|
19
|
-
__exportStar(require("./is-object-empty.js"), exports);
|
|
20
|
-
__exportStar(require("./filter-empty-values.js"), exports);
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/hooks/ui/use-table/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,iDAA8B;AAC9B,oDAAiC;AACjC,wDAAqC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isObjectEmpty(obj: any): boolean;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isObjectEmpty = void 0;
|
|
4
|
-
function isObjectEmpty(obj) {
|
|
5
|
-
for (var key in obj) {
|
|
6
|
-
if (obj.hasOwnProperty(key))
|
|
7
|
-
return false;
|
|
8
|
-
}
|
|
9
|
-
return true;
|
|
10
|
-
}
|
|
11
|
-
exports.isObjectEmpty = isObjectEmpty;
|
|
12
|
-
//# sourceMappingURL=is-object-empty.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-object-empty.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/hooks/ui/use-table/utils/is-object-empty.ts"],"names":[],"mappings":";;;AAAA,SAAgB,aAAa,CAAC,GAAG;IAC7B,KAAK,IAAM,GAAG,IAAI,GAAG,EAAE,CAAC;QACtB,IAAI,GAAG,CAAC,cAAc,CAAC,GAAG,CAAC;YACzB,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AANH,sCAMG"}
|
|
@@ -1,31 +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.updateRoute = void 0;
|
|
15
|
-
function updateRoute(_a) {
|
|
16
|
-
var reset = _a.reset, router = _a.router, params = _a.params;
|
|
17
|
-
if (reset) {
|
|
18
|
-
router.push({
|
|
19
|
-
pathname: router.pathname,
|
|
20
|
-
query: __assign({}, params),
|
|
21
|
-
});
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
router.push({
|
|
25
|
-
pathname: router.pathname,
|
|
26
|
-
query: __assign(__assign({}, router.query), params),
|
|
27
|
-
});
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
exports.updateRoute = updateRoute;
|
|
31
|
-
//# sourceMappingURL=update-route.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-route.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/hooks/ui/use-table/utils/update-route.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,SAAgB,WAAW,CAAC,EAQ3B;QAPC,KAAK,WAAA,EACL,MAAM,YAAA,EACN,MAAM,YAAA;IAMN,IAAI,KAAK,EAAE,CAAC;QACV,MAAM,CAAC,IAAI,CAAC;YACV,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,KAAK,eAAO,MAAM,CAAE;SACrB,CAAC,CAAC;QACH,OAAO;IACT,CAAC;IAED,MAAM,CAAC,IAAI,CAAC;QACV,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,KAAK,wBAAO,MAAM,CAAC,KAAK,GAAK,MAAM,CAAE;KACtC,CAAC,CAAC;IAEH,OAAO;AACT,CAAC;AAvBD,kCAuBC"}
|