infinity-forge 0.31.3 → 0.31.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/sites/components/brands-carousel/index.d.ts +1 -1
- package/dist/sites/components/brands-carousel/index.js +3 -3
- package/dist/sites/components/brands-carousel/interfaces.d.ts +1 -1
- package/dist/sites/components/carousel/component.d.ts +1 -1
- package/dist/sites/components/carousel/component.js +1 -1
- package/dist/sites/components/carousel/index.d.ts +1 -1
- package/dist/sites/components/carousel/index.js +1 -1
- package/dist/sites/components/carousel/interfaces.d.ts +1 -1
- package/dist/sites/components/carousel/versions/index.d.ts +1 -1
- package/dist/sites/components/carousel/versions/index.js +1 -1
- package/dist/sites/components/carousel/versions/version-01/component-01.d.ts +1 -1
- package/dist/sites/components/carousel/versions/version-01/component-01.js +1 -1
- package/dist/sites/components/counter/component.d.ts +1 -1
- package/dist/sites/components/counter/component.js +1 -1
- package/dist/sites/components/counter/index.d.ts +1 -1
- package/dist/sites/components/counter/index.js +1 -1
- package/dist/sites/components/counter/interfaces.d.ts +1 -1
- package/dist/sites/components/counter/versions/index.d.ts +1 -1
- package/dist/sites/components/counter/versions/index.js +1 -1
- package/dist/sites/components/counter/versions/version-01/box/index.d.ts +1 -1
- package/dist/sites/components/counter/versions/version-01/box/index.js +2 -2
- package/dist/sites/components/counter/versions/version-01/component.d.ts +1 -1
- package/dist/sites/components/counter/versions/version-01/component.js +3 -3
- package/dist/sites/components/head/component.d.ts +1 -1
- package/dist/sites/components/head/index.d.ts +2 -2
- package/dist/sites/components/head/index.js +2 -2
- package/dist/sites/components/header-link/component.d.ts +1 -1
- package/dist/sites/components/header-link/component.js +1 -1
- package/dist/sites/components/header-link/index.d.ts +1 -1
- package/dist/sites/components/header-link/index.js +1 -1
- package/dist/sites/components/header-link/interfaces.d.ts +1 -1
- package/dist/sites/components/header-link/versions/index.d.ts +1 -1
- package/dist/sites/components/header-link/versions/index.js +1 -1
- package/dist/sites/components/header-link/versions/version-01/component.js +2 -2
- package/dist/sites/components/header-link/versions/version-01/component.stories.d.ts +1 -1
- package/dist/sites/components/header-link/versions/version-01/component.stories.js +2 -2
- package/dist/sites/components/index.d.ts +6 -6
- package/dist/sites/components/index.js +6 -6
- package/dist/sites/components/mvv/component.d.ts +1 -1
- package/dist/sites/components/mvv/component.js +1 -1
- package/dist/sites/components/mvv/index.d.ts +1 -1
- package/dist/sites/components/mvv/index.js +1 -1
- package/dist/sites/components/mvv/interfaces.d.ts +1 -1
- package/dist/sites/components/mvv/versions/index.d.ts +1 -1
- package/dist/sites/components/mvv/versions/index.js +1 -1
- package/dist/sites/components/mvv/versions/version-01/component.d.ts +1 -1
- package/dist/sites/components/mvv/versions/version-01/component.js +2 -2
- package/dist/sites/context/configs/context.d.ts +1 -1
- package/dist/sites/context/configs/context.js +3 -3
- package/dist/sites/context/configs/index.d.ts +2 -2
- package/dist/sites/context/configs/index.js +2 -2
- package/dist/sites/context/configs/scripts/acept-cookies/index.js +2 -2
- package/dist/sites/context/configs/scripts/acept-ratedr/index.js +2 -2
- package/dist/sites/context/configs/scripts/component.d.ts +1 -1
- package/dist/sites/context/configs/scripts/component.js +4 -4
- package/dist/sites/context/configs/scripts/index.d.ts +5 -5
- package/dist/sites/context/configs/scripts/index.js +5 -5
- package/dist/sites/context/configs/scripts/interfaces.d.ts +1 -1
- package/dist/sites/context/configs/scripts/whatsapp-fixed/index.js +1 -1
- package/dist/sites/context/index.d.ts +1 -1
- package/dist/sites/context/index.js +1 -1
- package/dist/sites/hook/index.d.ts +3 -3
- package/dist/sites/hook/index.js +3 -3
- package/dist/sites/index.d.ts +4 -4
- package/dist/sites/index.js +4 -4
- 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/sites/utils/index.d.ts +1 -1
- package/dist/sites/utils/index.js +1 -1
- package/dist/system/container/admin/auth/container.js +0 -11
- package/dist/system/container/admin/auth/index.d.ts +0 -2
- package/dist/system/container/admin/auth/index.js +0 -19
- package/dist/system/container/admin/index.d.ts +0 -3
- package/dist/system/container/admin/index.js +0 -20
- package/dist/system/container/admin/menu/container.js +0 -11
- package/dist/system/container/admin/menu/index.d.ts +0 -2
- package/dist/system/container/admin/menu/index.js +0 -19
- package/dist/system/container/admin/users/container.js +0 -12
- package/dist/system/container/admin/users/index.d.ts +0 -2
- package/dist/system/container/admin/users/index.js +0 -19
- package/dist/system/container/index.d.ts +0 -4
- package/dist/system/container/index.js +0 -21
- package/dist/system/container/main.d.ts +0 -4
- package/dist/system/container/main.js +0 -14
- package/dist/system/container/types.js +0 -19
- package/dist/system/index.d.ts +5 -5
- package/dist/system/index.js +5 -5
- package/dist/system/presentation/components/data/avatar/index.js +2 -2
- package/dist/system/presentation/components/data/chat/card-message/index.d.ts +1 -1
- package/dist/system/presentation/components/data/chat/card-message/index.js +3 -3
- package/dist/system/presentation/components/data/chat/index.d.ts +1 -1
- package/dist/system/presentation/components/data/chat/index.js +5 -5
- package/dist/system/presentation/components/data/chat/interfaces.d.ts +1 -1
- package/dist/system/presentation/components/data/chat/loader/index.js +1 -1
- package/dist/system/presentation/components/data/highlight-text/index.d.ts +1 -1
- package/dist/system/presentation/components/data/highlight-text/index.js +2 -2
- package/dist/system/presentation/components/data/index.d.ts +9 -9
- package/dist/system/presentation/components/data/index.js +9 -9
- package/dist/system/presentation/components/data/input-search/index.d.ts +1 -1
- package/dist/system/presentation/components/data/input-search/index.js +3 -3
- 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/page-wrapper/interfaces.d.ts +1 -1
- 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/index.d.ts +3 -3
- package/dist/system/presentation/components/index.js +3 -3
- package/dist/system/presentation/components/layout/component.d.ts +1 -1
- package/dist/system/presentation/components/layout/component.js +2 -2
- 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/card/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.js +3 -3
- 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 +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/index.js +2 -2
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js +5 -5
- 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/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 +4 -4
- package/dist/system/presentation/components/layout/menu/index.js +1 -1
- package/dist/system/presentation/components/layout/menu/version-01/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/menu/version-01/index.js +2 -2
- package/dist/system/presentation/components/pages/index.d.ts +2 -2
- package/dist/system/presentation/components/pages/index.js +2 -2
- package/dist/system/presentation/components/pages/menus/index.d.ts +1 -1
- package/dist/system/presentation/components/pages/menus/index.js +1 -1
- package/dist/system/presentation/components/pages/menus/page.js +3 -3
- package/dist/system/presentation/components/pages/menus/table/columns.d.ts +2 -2
- package/dist/system/presentation/components/pages/menus/table/columns.js +1 -1
- package/dist/system/presentation/components/pages/menus/table/create.d.ts +2 -2
- package/dist/system/presentation/components/pages/menus/table/create.js +2 -2
- package/dist/system/presentation/components/pages/menus/table/delete.js +2 -2
- package/dist/system/presentation/components/pages/menus/table/edit.d.ts +2 -2
- package/dist/system/presentation/components/pages/menus/table/edit.js +2 -2
- package/dist/system/presentation/components/pages/menus/table/icon/index.js +1 -1
- package/dist/system/presentation/components/pages/menus/table/index.d.ts +4 -4
- package/dist/system/presentation/components/pages/menus/table/index.js +4 -4
- 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 +3 -3
- package/dist/system/presentation/components/pages/users/table/columns.d.ts +2 -2
- package/dist/system/presentation/components/pages/users/table/create.d.ts +2 -2
- package/dist/system/presentation/components/pages/users/table/create.js +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 +4 -4
- package/dist/system/presentation/components/pages/users/table/index.js +4 -4
- 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 +1 -1
- package/dist/system/presentation/context/auth/index.d.ts +5 -5
- package/dist/system/presentation/context/auth/index.js +5 -5
- package/dist/system/presentation/context/auth/interfaces.d.ts +1 -1
- package/dist/system/presentation/context/auth/login/index.js +3 -3
- package/dist/system/presentation/context/auth/private-page/index.js +3 -3
- package/dist/system/presentation/context/auth/unauthenticated/index.js +1 -1
- package/dist/system/presentation/context/container.js +3 -3
- package/dist/system/presentation/context/index.d.ts +3 -3
- package/dist/system/presentation/context/index.js +3 -3
- package/dist/system/presentation/context/system-configs/context.d.ts +1 -1
- package/dist/system/presentation/context/system-configs/context.js +1 -1
- package/dist/system/presentation/context/system-configs/index.d.ts +2 -2
- package/dist/system/presentation/context/system-configs/index.js +2 -2
- package/dist/system/presentation/hooks/index.d.ts +3 -3
- package/dist/system/presentation/hooks/index.js +3 -3
- 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/notifications/index.d.ts +2 -2
- package/dist/system/presentation/hooks/notifications/index.js +2 -2
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js +1 -1
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.d.ts +1 -1
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.js +1 -1
- package/dist/system/presentation/hooks/ui/index.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/component.d.ts +0 -8
- package/dist/system/presentation/hooks/ui/use-table/component.js +0 -26
- package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +0 -5
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +0 -109
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.d.ts +0 -4
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +0 -107
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.d.ts +0 -4
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +0 -35
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.d.ts +0 -4
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js +0 -128
- 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 +10 -10
- 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 +2 -2
- 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/skeleton-table/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +0 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +0 -50
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +0 -6
- package/dist/system/presentation/hooks/ui/use-table/index.d.ts +0 -4
- package/dist/system/presentation/hooks/ui/use-table/index.js +0 -21
- package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +0 -82
- package/dist/system/presentation/hooks/ui/use-table/query/get-query-arguments-table.d.ts +0 -2
- package/dist/system/presentation/hooks/ui/use-table/query/hook.d.ts +0 -5
- package/dist/system/presentation/hooks/ui/use-table/query/hook.js +0 -50
- package/dist/system/presentation/hooks/ui/use-table/query/index.d.ts +0 -2
- package/dist/system/presentation/hooks/ui/use-table/query/index.js +0 -19
- package/dist/system/presentation/index.d.ts +5 -5
- package/dist/system/presentation/index.js +5 -5
- package/dist/system/presentation/utils/index.d.ts +0 -1
- package/dist/system/presentation/utils/index.js +0 -18
- package/dist/system/presentation/utils/use-query/index.d.ts +0 -1
- package/dist/system/presentation/utils/use-query/index.js +0 -18
- package/dist/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 +2 -2
- 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 +0 -56
- package/dist/ui/components/form/handler/component.d.ts +0 -2
- package/dist/ui/components/form/handler/component.js +0 -25
- package/dist/ui/components/form/handler/custom-submit/index.d.ts +0 -16
- package/dist/ui/components/form/handler/custom-submit/index.js +0 -22
- package/dist/ui/components/form/handler/dynamic_form_handler/component.d.ts +0 -2
- package/dist/ui/components/form/handler/dynamic_form_handler/component.js +0 -113
- package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +0 -2
- package/dist/ui/components/form/handler/dynamic_form_handler/index.js +0 -19
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +0 -27
- package/dist/ui/components/form/handler/form-handler/index.d.ts +0 -2
- package/dist/ui/components/form/handler/form-handler/index.js +0 -201
- package/dist/ui/components/form/handler/index.d.ts +0 -5
- package/dist/ui/components/form/handler/index.js +0 -22
- package/dist/ui/components/form/handler/interfaces.d.ts +0 -31
- package/dist/ui/components/form/index.d.ts +0 -14
- package/dist/ui/components/form/index.js +0 -31
- package/dist/ui/components/form/input/index.d.ts +0 -2
- package/dist/ui/components/form/input/index.js +0 -41
- package/dist/ui/components/form/input-control/error/index.js +0 -34
- package/dist/ui/components/form/input-control/index.d.ts +0 -2
- package/dist/ui/components/form/input-control/index.js +0 -41
- package/dist/ui/components/form/input-control/label/index.js +0 -34
- package/dist/ui/components/form/input-control/loader-input/index.js +0 -34
- package/dist/ui/components/form/input-cpf-cnpj/index.d.ts +0 -2
- package/dist/ui/components/form/input-cpf-cnpj/index.js +0 -55
- package/dist/ui/components/form/input-currency/index.d.ts +0 -2
- package/dist/ui/components/form/input-currency/index.js +0 -27
- package/dist/ui/components/form/input-date/index.d.ts +0 -4
- package/dist/ui/components/form/input-date/index.js +0 -47
- package/dist/ui/components/form/input-file/file-card/index.d.ts +0 -5
- package/dist/ui/components/form/input-file/file-card/index.js +0 -65
- package/dist/ui/components/form/input-file/index.d.ts +0 -2
- package/dist/ui/components/form/input-file/index.js +0 -104
- package/dist/ui/components/form/input-mask/index.d.ts +0 -5
- package/dist/ui/components/form/input-mask/index.js +0 -35
- package/dist/ui/components/form/input-password/index.d.ts +0 -2
- package/dist/ui/components/form/input-password/index.js +0 -55
- package/dist/ui/components/form/input-switch/index.d.ts +0 -2
- package/dist/ui/components/form/input-switch/index.js +0 -24
- package/dist/ui/components/form/interfaces.d.ts +0 -23
- package/dist/ui/components/form/radio/index.js +0 -64
- package/dist/ui/components/form/select/index.d.ts +0 -2
- package/dist/ui/components/form/select/index.js +0 -85
- package/dist/ui/components/form/select/interfaces.d.ts +0 -32
- package/dist/ui/components/form/textarea/index.d.ts +0 -2
- package/dist/ui/components/form/textarea/index.js +0 -29
- package/dist/ui/components/index.d.ts +10 -10
- package/dist/ui/components/index.js +10 -10
- package/dist/ui/components/loader-circle/index.d.ts +0 -2
- package/dist/ui/components/loading-screen/index.d.ts +1 -1
- package/dist/ui/components/loading-screen/index.js +3 -3
- package/dist/ui/components/menu-mobile/components/nav-links/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/components/nav-links/index.js +2 -2
- package/dist/ui/components/menu-mobile/components/nav-links/interfaces.d.ts +1 -1
- package/dist/ui/components/menu-mobile/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/index.js +4 -4
- package/dist/ui/components/menu-mobile/top/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/top/index.js +2 -2
- package/dist/ui/components/menu-mobile/top/interfaces.d.ts +1 -1
- package/dist/ui/components/next-image/index.d.ts +1 -1
- package/dist/ui/components/next-image/index.js +3 -3
- package/dist/ui/components/sidebar/index.d.ts +1 -1
- package/dist/ui/components/sidebar/index.js +1 -1
- package/dist/ui/contexts/index.d.ts +3 -3
- package/dist/ui/contexts/index.js +3 -3
- package/dist/ui/contexts/theme/context.d.ts +1 -1
- 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/toast-item/index.d.ts +1 -1
- package/dist/ui/contexts/toast/toast-item/index.js +2 -2
- 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/dist/ui/utils/buffer/index.d.ts +1 -1
- package/dist/ui/utils/buffer/index.js +1 -1
- package/dist/ui/utils/facebook/index.d.ts +1 -1
- package/dist/ui/utils/facebook/index.js +1 -1
- package/dist/ui/utils/file/index.d.ts +2 -2
- package/dist/ui/utils/file/index.js +2 -2
- package/dist/ui/utils/file/load-file.d.ts +1 -1
- package/dist/ui/utils/file/load-file.js +1 -1
- package/dist/ui/utils/file/upload-file.d.ts +1 -1
- package/dist/ui/utils/file/upload-file.js +1 -1
- package/dist/ui/utils/index.d.ts +7 -7
- package/dist/ui/utils/index.js +7 -7
- package/dist/ui/utils/libs/index.d.ts +1 -1
- package/dist/ui/utils/libs/index.js +1 -1
- package/dist/ui/utils/libs/next/index.d.ts +2 -2
- package/dist/ui/utils/libs/next/index.js +2 -2
- package/dist/ui/utils/validations/index.d.ts +2 -2
- package/dist/ui/utils/validations/index.js +2 -2
- package/package.json +1 -1
|
@@ -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("./routes
|
|
18
|
-
__exportStar(require("./page-links
|
|
17
|
+
__exportStar(require("./routes"), exports);
|
|
18
|
+
__exportStar(require("./page-links"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AuthenticatedTemplate = void 0;
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var context_1 = require("../context
|
|
5
|
+
var context_1 = require("../context");
|
|
6
6
|
function AuthenticatedTemplate(_a) {
|
|
7
7
|
var children = _a.children;
|
|
8
8
|
var user = (0, context_1.useAuthAdmin)().user;
|
|
@@ -65,7 +65,7 @@ var react_1 = require("react");
|
|
|
65
65
|
var swr_1 = __importStar(require("swr"));
|
|
66
66
|
var router_1 = require("next/router");
|
|
67
67
|
var axios_1 = __importStar(require("axios"));
|
|
68
|
-
var system_1 = require("
|
|
68
|
+
var system_1 = require("@/system");
|
|
69
69
|
var AuthContext = (0, react_1.createContext)({});
|
|
70
70
|
function AuthAdminProvider(_a) {
|
|
71
71
|
var children = _a.children, onSignOut = _a.onSignOut;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./login
|
|
2
|
-
export * from "./context
|
|
3
|
-
export * from "./private-page
|
|
4
|
-
export * from "./authenticated
|
|
5
|
-
export * from "./unauthenticated
|
|
1
|
+
export * from "./login";
|
|
2
|
+
export * from "./context";
|
|
3
|
+
export * from "./private-page";
|
|
4
|
+
export * from "./authenticated";
|
|
5
|
+
export * from "./unauthenticated";
|
|
@@ -14,9 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./login
|
|
18
|
-
__exportStar(require("./context
|
|
19
|
-
__exportStar(require("./private-page
|
|
20
|
-
__exportStar(require("./authenticated
|
|
21
|
-
__exportStar(require("./unauthenticated
|
|
17
|
+
__exportStar(require("./login"), exports);
|
|
18
|
+
__exportStar(require("./context"), exports);
|
|
19
|
+
__exportStar(require("./private-page"), exports);
|
|
20
|
+
__exportStar(require("./authenticated"), exports);
|
|
21
|
+
__exportStar(require("./unauthenticated"), exports);
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -25,9 +25,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.Login = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var context_1 = require("../context
|
|
29
|
-
var ui_1 = require("
|
|
30
|
-
var S = __importStar(require("./styles
|
|
28
|
+
var context_1 = require("../context");
|
|
29
|
+
var ui_1 = require("@/ui");
|
|
30
|
+
var S = __importStar(require("./styles"));
|
|
31
31
|
function Login() {
|
|
32
32
|
var signIn = (0, context_1.useAuthAdmin)().signIn;
|
|
33
33
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'login', children: (0, jsx_runtime_1.jsxs)(S.Login, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'content', children: [(0, jsx_runtime_1.jsx)("div", { className: 'empty' }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: 'logo', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: '/images/login-logo.png', alt: ' ' }) }), (0, jsx_runtime_1.jsxs)("div", { className: 'text', children: [(0, jsx_runtime_1.jsx)("h5", { className: 'font-20-bold', children: "Seja bem vindo!" }), (0, jsx_runtime_1.jsx)("p", { className: 'font-16-medium', children: "Ao seu portal de gest\u00E3o" })] }), (0, jsx_runtime_1.jsxs)(ui_1.FormHandler, { button: { text: 'Entrar' }, initialData: { emailAddress: '', password: '' }, onSucess: signIn, children: [(0, jsx_runtime_1.jsx)(ui_1.Input, { type: 'email', label: 'Email', name: 'emailAddress', placeholder: 'Digite seu usu\u00E1rio' }), (0, jsx_runtime_1.jsx)(ui_1.InputPassword, { name: 'password', label: 'Senha', placeholder: 'Digite sua senha' })] })] }), (0, jsx_runtime_1.jsx)("div", { className: 'contact-footer', children: (0, jsx_runtime_1.jsxs)("span", { children: ["Powered by", ' ', (0, jsx_runtime_1.jsx)("a", { target: '_blank', href: 'https://codie.digital/', children: "Codie." }), ' ', "Todos os direitos reservados."] }) })] }), (0, jsx_runtime_1.jsx)("div", { className: 'image', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: '/images/login-left.png', alt: 'Imagem de login' }) })] }) }));
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PrivatePageAdmin = void 0;
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var ui_1 = require("
|
|
6
|
-
var login_1 = require("../login
|
|
7
|
-
var context_1 = require("../context
|
|
5
|
+
var ui_1 = require("@/ui");
|
|
6
|
+
var login_1 = require("../login");
|
|
7
|
+
var context_1 = require("../context");
|
|
8
8
|
function PrivatePageAdmin(_a) {
|
|
9
9
|
var children = _a.children;
|
|
10
10
|
var user = (0, context_1.useAuthAdmin)().user;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UnauthenticatedTemplate = void 0;
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var context_1 = require("../context
|
|
5
|
+
var context_1 = require("../context");
|
|
6
6
|
function UnauthenticatedTemplate(_a) {
|
|
7
7
|
var children = _a.children;
|
|
8
8
|
var user = (0, context_1.useAuthAdmin)().user;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InfinityForgeProviders = void 0;
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var ui_1 = require("
|
|
6
|
-
var auth_1 = require("./auth
|
|
7
|
-
var system_configs_1 = require("./system-configs
|
|
5
|
+
var ui_1 = require("@/ui");
|
|
6
|
+
var auth_1 = require("./auth");
|
|
7
|
+
var system_configs_1 = require("./system-configs");
|
|
8
8
|
function InfinityForgeProviders(_a) {
|
|
9
9
|
var children = _a.children, onSignOut = _a.onSignOut, toast = _a.toast;
|
|
10
10
|
return ((0, jsx_runtime_1.jsx)(auth_1.AuthAdminProvider, { onSignOut: onSignOut, children: (0, jsx_runtime_1.jsx)(system_configs_1.SystemConfigProvider, { children: (0, jsx_runtime_1.jsx)(ui_1.ToastProvider, { toast: toast, children: children }) }) }));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './auth
|
|
2
|
-
export * from './container
|
|
3
|
-
export * from './system-configs
|
|
1
|
+
export * from './auth';
|
|
2
|
+
export * from './container';
|
|
3
|
+
export * from './system-configs';
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./auth
|
|
18
|
-
__exportStar(require("./container
|
|
19
|
-
__exportStar(require("./system-configs
|
|
17
|
+
__exportStar(require("./auth"), exports);
|
|
18
|
+
__exportStar(require("./container"), exports);
|
|
19
|
+
__exportStar(require("./system-configs"), exports);
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { SystemConfigContextType } from './interfaces
|
|
2
|
+
import { SystemConfigContextType } from './interfaces';
|
|
3
3
|
declare const useSystemConfig: () => SystemConfigContextType;
|
|
4
4
|
declare const SystemConfigProvider: ({ children }: {
|
|
5
5
|
children: ReactNode;
|
|
@@ -15,7 +15,7 @@ exports.SystemConfigProvider = exports.useSystemConfig = void 0;
|
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
// src/contexts/SystemConfigContext.tsx
|
|
17
17
|
var react_1 = require("react");
|
|
18
|
-
var ui_1 = require("
|
|
18
|
+
var ui_1 = require("@/ui");
|
|
19
19
|
var defaultConfig = {
|
|
20
20
|
setConfig: function () { },
|
|
21
21
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './context
|
|
2
|
-
export * from './interfaces
|
|
1
|
+
export * from './context';
|
|
2
|
+
export * from './interfaces';
|
|
@@ -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("./context
|
|
18
|
-
__exportStar(require("./interfaces
|
|
17
|
+
__exportStar(require("./context"), exports);
|
|
18
|
+
__exportStar(require("./interfaces"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './ui
|
|
2
|
-
export * from './menu
|
|
3
|
-
export * from './notifications
|
|
1
|
+
export * from './ui';
|
|
2
|
+
export * from './menu';
|
|
3
|
+
export * from './notifications';
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ui
|
|
18
|
-
__exportStar(require("./menu
|
|
19
|
-
__exportStar(require("./notifications
|
|
17
|
+
__exportStar(require("./ui"), exports);
|
|
18
|
+
__exportStar(require("./menu"), exports);
|
|
19
|
+
__exportStar(require("./notifications"), exports);
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './use-load-menu
|
|
1
|
+
export * from './use-load-menu';
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./use-load-menu
|
|
17
|
+
__exportStar(require("./use-load-menu"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function useLoadMenu(): import("swr/dist/_internal").SWRResponse<import("
|
|
1
|
+
export declare function useLoadMenu(): import("swr/dist/_internal").SWRResponse<import("@/system").LoadAllMenu.Model, any, {
|
|
2
2
|
revalidateIfStale: false;
|
|
3
3
|
revalidateOnFocus: false;
|
|
4
4
|
revalidateOnReconnect: false;
|
|
@@ -40,7 +40,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
40
40
|
};
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.useLoadMenu = void 0;
|
|
43
|
-
var system_1 = require("
|
|
43
|
+
var system_1 = require("@/system");
|
|
44
44
|
var swr_1 = __importDefault(require("swr"));
|
|
45
45
|
function useLoadMenu() {
|
|
46
46
|
function fetcher() {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './use-load-all
|
|
2
|
-
export * from './use-load-no-read
|
|
1
|
+
export * from './use-load-all';
|
|
2
|
+
export * from './use-load-no-read';
|
|
@@ -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("./use-load-all
|
|
18
|
-
__exportStar(require("./use-load-no-read
|
|
17
|
+
__exportStar(require("./use-load-all"), exports);
|
|
18
|
+
__exportStar(require("./use-load-no-read"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -41,7 +41,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.useLoadAllNotifications = void 0;
|
|
43
43
|
var swr_1 = __importDefault(require("swr"));
|
|
44
|
-
var container_1 = require("
|
|
44
|
+
var container_1 = require("@/system/container");
|
|
45
45
|
function useLoadAllNotifications() {
|
|
46
46
|
var timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
47
47
|
function fetcher() {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LoadNoReadNotifications } from '
|
|
1
|
+
import { LoadNoReadNotifications } from '@/system/domain';
|
|
2
2
|
export declare function useLoadNoReadNotifications(): import("swr/dist/_internal").SWRResponse<LoadNoReadNotifications.Model, any, any>;
|
|
@@ -41,7 +41,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.useLoadNoReadNotifications = void 0;
|
|
43
43
|
var swr_1 = __importDefault(require("swr"));
|
|
44
|
-
var container_1 = require("
|
|
44
|
+
var container_1 = require("@/system/container");
|
|
45
45
|
function useLoadNoReadNotifications() {
|
|
46
46
|
function fetcher() {
|
|
47
47
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './use-table
|
|
2
|
-
export * from "./use-debounce
|
|
1
|
+
export * from './use-table';
|
|
2
|
+
export * from "./use-debounce";
|
|
@@ -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("./use-table
|
|
18
|
-
__exportStar(require("./use-debounce
|
|
17
|
+
__exportStar(require("./use-table"), exports);
|
|
18
|
+
__exportStar(require("./use-debounce"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.useTable = void 0;
|
|
15
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var components_1 = require("./components/index.js");
|
|
17
|
-
var hook_1 = require("./query/hook.js");
|
|
18
|
-
function useTable(props) {
|
|
19
|
-
var queryTable = props.query && (0, hook_1.useQueryTable)(props.query);
|
|
20
|
-
return {
|
|
21
|
-
query: queryTable,
|
|
22
|
-
Table: (0, jsx_runtime_1.jsx)(components_1.Table, __assign({}, props, { isFetching: queryTable === null || queryTable === void 0 ? void 0 : queryTable.isLoading, tableInformations: queryTable === null || queryTable === void 0 ? void 0 : queryTable.data })),
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
exports.useTable = useTable;
|
|
26
|
-
//# sourceMappingURL=component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./table
|
|
1
|
+
export * from "./table";
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./table
|
|
17
|
+
__exportStar(require("./table"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,109 +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 __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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
46
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
47
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
48
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49
|
-
function step(op) {
|
|
50
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
51
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
52
|
-
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;
|
|
53
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
54
|
-
switch (op[0]) {
|
|
55
|
-
case 0: case 1: t = op; break;
|
|
56
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
57
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
58
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
59
|
-
default:
|
|
60
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
61
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
62
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
63
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
64
|
-
if (t[2]) _.ops.pop();
|
|
65
|
-
_.trys.pop(); continue;
|
|
66
|
-
}
|
|
67
|
-
op = body.call(thisArg, _);
|
|
68
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
69
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
73
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
74
|
-
};
|
|
75
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76
|
-
exports.Actions = void 0;
|
|
77
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
78
|
-
var react_1 = require("react");
|
|
79
|
-
var link_1 = __importDefault(require("next/link"));
|
|
80
|
-
var semantic_ui_react_1 = require("semantic-ui-react");
|
|
81
|
-
var ui_1 = require("../../../../../../../../ui/index.js");
|
|
82
|
-
var S = __importStar(require("./styles.js"));
|
|
83
|
-
function Actions(_a) {
|
|
84
|
-
var _b;
|
|
85
|
-
var actions = _a.actions, table = _a.table;
|
|
86
|
-
var _c = (0, react_1.useState)(false), openEdit = _c[0], setOpenEdit = _c[1];
|
|
87
|
-
function onSuccessEdit(data) {
|
|
88
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
89
|
-
return __generator(this, function (_a) {
|
|
90
|
-
switch (_a.label) {
|
|
91
|
-
case 0: return [4 /*yield*/, actions.edit.onSucess(data, undefined, table)];
|
|
92
|
-
case 1:
|
|
93
|
-
_a.sent();
|
|
94
|
-
setOpenEdit(false);
|
|
95
|
-
return [2 /*return*/];
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
var payload = __assign(__assign({}, ((actions === null || actions === void 0 ? void 0 : actions.edit) || {})), { tableItem: table });
|
|
101
|
-
return ((0, jsx_runtime_1.jsx)(S.Actions, { children: (0, jsx_runtime_1.jsxs)("div", { children: [actions.edit &&
|
|
102
|
-
(((_b = actions.edit) === null || _b === void 0 ? void 0 : _b.link) ? ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Editar', trigger: (0, jsx_runtime_1.jsx)(link_1.default, { className: 'action-button', href: actions.edit.link.href(table), children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconEdit' }) }) })) : ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Modal, { open: openEdit, onClose: function () { return setOpenEdit(false); }, style: { maxWidth: 512, borderRadius: 5 }, trigger: (0, jsx_runtime_1.jsx)("span", { className: 'action-button', children: (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Editar', trigger: (0, jsx_runtime_1.jsx)("button", { type: 'button', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconEdit' }) }) }) }), content: openEdit && (0, jsx_runtime_1.jsx)(ui_1.DynamicFormHandler, __assign({}, payload, { onSucess: onSuccessEdit })), onOpen: function () {
|
|
103
|
-
setOpenEdit(true);
|
|
104
|
-
} }))), actions.detail && ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Detalhe', trigger: (0, jsx_runtime_1.jsx)(link_1.default, { className: 'action-button', href: actions.detail(table), children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconEye' }) }) })), actions.delete && ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Excluir', trigger: (0, jsx_runtime_1.jsx)("button", { className: 'action-button', onClick: function () { return actions.delete(table); }, type: 'button', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconDelete' }) }) })), actions.custom &&
|
|
105
|
-
actions.custom.length > 0 &&
|
|
106
|
-
actions.custom.map(function (Component, index) { return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Component, __assign({}, table)) }, 'custom' + index + Component.name)); })] }) }));
|
|
107
|
-
}
|
|
108
|
-
exports.Actions = Actions;
|
|
109
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,107 +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 __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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
46
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
47
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
48
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49
|
-
function step(op) {
|
|
50
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
51
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
52
|
-
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;
|
|
53
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
54
|
-
switch (op[0]) {
|
|
55
|
-
case 0: case 1: t = op; break;
|
|
56
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
57
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
58
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
59
|
-
default:
|
|
60
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
61
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
62
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
63
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
64
|
-
if (t[2]) _.ops.pop();
|
|
65
|
-
_.trys.pop(); continue;
|
|
66
|
-
}
|
|
67
|
-
op = body.call(thisArg, _);
|
|
68
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
69
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
73
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
74
|
-
};
|
|
75
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76
|
-
exports.CreateAction = void 0;
|
|
77
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
78
|
-
var react_1 = require("react");
|
|
79
|
-
var semantic_ui_react_1 = require("semantic-ui-react");
|
|
80
|
-
var ui_1 = require("../../../../../../../../ui/index.js");
|
|
81
|
-
var component_1 = require("../../../../../../../../ui/components/form/handler/dynamic_form_handler/component.js");
|
|
82
|
-
var link_1 = __importDefault(require("next/link"));
|
|
83
|
-
var S = __importStar(require("./styles.js"));
|
|
84
|
-
function CreateAction(_a) {
|
|
85
|
-
var _b, _c;
|
|
86
|
-
var actions = _a.actions;
|
|
87
|
-
var _d = (0, react_1.useState)(false), openCreate = _d[0], setOpenCreate = _d[1];
|
|
88
|
-
function onSuccessCreate(data) {
|
|
89
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
90
|
-
return __generator(this, function (_a) {
|
|
91
|
-
switch (_a.label) {
|
|
92
|
-
case 0: return [4 /*yield*/, actions.create.onSucess(data)];
|
|
93
|
-
case 1:
|
|
94
|
-
_a.sent();
|
|
95
|
-
setOpenCreate(false);
|
|
96
|
-
return [2 /*return*/];
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
if (!actions.create) {
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
return ((0, jsx_runtime_1.jsx)(S.Create, { children: ((_b = actions.create) === null || _b === void 0 ? void 0 : _b.link) ? ((0, jsx_runtime_1.jsxs)(link_1.default, { className: 'create-button font-14-regular', href: actions.create.link.href, children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: ((_c = actions === null || actions === void 0 ? void 0 : actions.create) === null || _c === void 0 ? void 0 : _c.icon) || 'IconPlusSharp' }) }), actions.create.text] })) : ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Modal, { open: openCreate, onClose: function () { return setOpenCreate(false); }, style: { maxWidth: 512, borderRadius: 10 }, trigger: (0, jsx_runtime_1.jsxs)("button", { className: 'create-button font-14-regular', type: 'button', children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: (actions === null || actions === void 0 ? void 0 : actions.create.icon) || 'IconPlusSharp' }) }), actions.create.text] }), content: (0, jsx_runtime_1.jsx)(component_1.DynamicFormHandler, __assign({}, actions.create, { onSucess: onSuccessCreate })), onOpen: function () { return setOpenCreate(true); } })) }));
|
|
105
|
-
}
|
|
106
|
-
exports.CreateAction = CreateAction;
|
|
107
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,35 +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.Export = void 0;
|
|
27
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var ui_1 = require("../../../../../../../../ui/index.js");
|
|
29
|
-
var S = __importStar(require("./styles.js"));
|
|
30
|
-
function Export(_a) {
|
|
31
|
-
var exports = _a.exports;
|
|
32
|
-
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Export', children: (0, jsx_runtime_1.jsxs)(S.Export, { className: 'font-14-regular', children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconUpload' }) }), "Exportar"] }) }));
|
|
33
|
-
}
|
|
34
|
-
exports.Export = Export;
|
|
35
|
-
//# sourceMappingURL=index.js.map
|