infinity-forge 0.7.4 → 0.7.6
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 -3
- package/dist/sites/index.js +4 -3
- package/dist/sites/index.js.map +1 -1
- package/dist/sites/interfaces/api-data/index.d.ts +1 -0
- package/dist/sites/interfaces/api-data/index.js +18 -0
- package/dist/sites/interfaces/index.d.ts +2 -0
- package/dist/sites/interfaces/index.js +19 -0
- package/dist/sites/utils/format-number-currency.d.ts +5 -0
- package/dist/sites/utils/format-number-currency.js +14 -0
- package/dist/sites/utils/format-number-currency.js.map +1 -0
- package/dist/sites/utils/index.d.ts +1 -0
- package/dist/sites/utils/index.js +18 -0
- package/dist/sites/utils/index.js.map +1 -0
- package/dist/system/container/admin/auth/container.js +2 -2
- package/dist/system/container/admin/auth/index.d.ts +2 -2
- package/dist/system/container/admin/auth/index.js +2 -2
- package/dist/system/container/admin/index.d.ts +3 -3
- package/dist/system/container/admin/index.js +3 -3
- package/dist/system/container/admin/menu/container.js +2 -2
- package/dist/system/container/admin/menu/index.d.ts +2 -2
- package/dist/system/container/admin/menu/index.js +2 -2
- package/dist/system/container/admin/users/container.js +2 -2
- package/dist/system/container/admin/users/index.d.ts +2 -2
- package/dist/system/container/admin/users/index.js +2 -2
- package/dist/system/container/decorators/authorize-http-client-decorator.d.ts +2 -2
- package/dist/system/container/decorators/authorize-http-client-decorator.js +3 -3
- package/dist/system/container/decorators/index.d.ts +1 -1
- package/dist/system/container/decorators/index.js +1 -1
- package/dist/system/container/index.d.ts +2 -2
- package/dist/system/container/index.js +2 -2
- package/dist/system/container/infra/container.js +4 -4
- package/dist/system/container/infra/index.d.ts +3 -3
- package/dist/system/container/infra/index.js +3 -3
- package/dist/system/container/main.d.ts +1 -1
- package/dist/system/container/main.js +3 -3
- package/dist/system/container/types.js +1 -1
- package/dist/system/data/index.d.ts +1 -1
- package/dist/system/data/index.js +1 -1
- package/dist/system/data/use-cases/auth/index.d.ts +1 -1
- package/dist/system/data/use-cases/auth/index.js +1 -1
- package/dist/system/data/use-cases/auth/remote-auth-admin.d.ts +3 -3
- package/dist/system/data/use-cases/auth/remote-auth-admin.js +4 -4
- package/dist/system/data/use-cases/index.d.ts +3 -3
- package/dist/system/data/use-cases/index.js +3 -3
- package/dist/system/data/use-cases/menu/index.d.ts +1 -1
- package/dist/system/data/use-cases/menu/index.js +1 -1
- package/dist/system/data/use-cases/menu/remote-get-menu.d.ts +2 -2
- package/dist/system/data/use-cases/menu/remote-get-menu.js +3 -3
- package/dist/system/data/use-cases/users/index.d.ts +2 -2
- package/dist/system/data/use-cases/users/index.js +2 -2
- package/dist/system/data/use-cases/users/remote-load-user-admin.d.ts +2 -2
- package/dist/system/data/use-cases/users/remote-load-user-admin.js +3 -3
- package/dist/system/data/use-cases/users/remote-users.d.ts +2 -2
- package/dist/system/data/use-cases/users/remote-users.js +3 -3
- package/dist/system/domain/generics/index.d.ts +2 -2
- package/dist/system/domain/generics/index.js +2 -2
- package/dist/system/domain/index.d.ts +3 -3
- package/dist/system/domain/index.js +3 -3
- package/dist/system/domain/protocols/cache/get-storage.d.ts +1 -1
- package/dist/system/domain/protocols/cache/index.d.ts +3 -3
- package/dist/system/domain/protocols/cache/index.js +3 -3
- package/dist/system/domain/protocols/cache/set-storage.d.ts +1 -1
- package/dist/system/domain/protocols/http/errors/http-errors/index.d.ts +5 -5
- package/dist/system/domain/protocols/http/errors/http-errors/index.js +5 -5
- package/dist/system/domain/protocols/http/errors/index.d.ts +2 -2
- package/dist/system/domain/protocols/http/errors/index.js +2 -2
- package/dist/system/domain/protocols/http/errors/system-errors-model/index.d.ts +1 -1
- package/dist/system/domain/protocols/http/errors/system-errors-model/index.js +1 -1
- package/dist/system/domain/protocols/http/http-client.d.ts +1 -1
- package/dist/system/domain/protocols/http/index.d.ts +2 -2
- package/dist/system/domain/protocols/http/index.js +2 -2
- package/dist/system/domain/protocols/index.d.ts +2 -2
- package/dist/system/domain/protocols/index.js +2 -2
- package/dist/system/domain/use-cases/auth/admin/index.d.ts +1 -1
- package/dist/system/domain/use-cases/auth/admin/index.js +1 -1
- package/dist/system/domain/use-cases/auth/index.d.ts +1 -1
- package/dist/system/domain/use-cases/auth/index.js +1 -1
- package/dist/system/domain/use-cases/index.d.ts +3 -3
- package/dist/system/domain/use-cases/index.js +3 -3
- package/dist/system/domain/use-cases/menu/index.d.ts +1 -1
- package/dist/system/domain/use-cases/menu/index.js +1 -1
- package/dist/system/domain/use-cases/menu/load-menu.d.ts +2 -2
- package/dist/system/domain/use-cases/users/delete-user.d.ts +1 -1
- package/dist/system/domain/use-cases/users/edit-user.d.ts +1 -1
- package/dist/system/domain/use-cases/users/get-detail-user.d.ts +1 -1
- package/dist/system/domain/use-cases/users/index.d.ts +6 -6
- package/dist/system/domain/use-cases/users/index.js +6 -6
- package/dist/system/domain/use-cases/users/load-all-users.d.ts +1 -1
- package/dist/system/index.d.ts +5 -5
- package/dist/system/index.js +5 -5
- package/dist/system/infra/cache/cookie-storage-adapter.d.ts +2 -2
- package/dist/system/infra/cache/index.d.ts +2 -2
- package/dist/system/infra/cache/index.js +2 -2
- package/dist/system/infra/cache/storage-type.d.ts +1 -1
- package/dist/system/infra/http/axios-http-client.d.ts +1 -1
- package/dist/system/infra/http/axios-http-client.js +2 -2
- package/dist/system/infra/http/index.d.ts +1 -1
- package/dist/system/infra/http/index.js +1 -1
- package/dist/system/infra/index.d.ts +3 -3
- package/dist/system/infra/index.js +3 -3
- package/dist/system/infra/type-models/index.d.ts +2 -2
- package/dist/system/infra/type-models/index.js +2 -2
- package/dist/system/presentation/components/data/avatar/index.js +57 -0
- package/dist/system/presentation/components/data/cards/index.d.ts +1 -0
- package/dist/system/presentation/components/data/cards/index.js +18 -0
- package/dist/system/presentation/components/data/cards/message-card/index.d.ts +2 -0
- package/dist/system/presentation/components/data/cards/message-card/index.js +37 -0
- package/dist/system/presentation/components/data/index.d.ts +8 -0
- package/dist/system/presentation/components/data/index.js +25 -0
- package/dist/system/presentation/components/data/logo/index.js +34 -0
- package/dist/system/presentation/components/data/overlay/index.d.ts +2 -0
- package/dist/system/presentation/components/data/overlay/index.js +35 -0
- package/dist/system/presentation/components/data/page-wrapper/index.d.ts +2 -0
- package/dist/system/presentation/components/data/page-wrapper/index.js +35 -0
- package/dist/system/presentation/components/data/popover/index.d.ts +2 -0
- package/dist/system/presentation/components/data/sign-up/index.js +36 -0
- package/dist/system/presentation/components/data/skeleton/index.d.ts +2 -0
- package/dist/system/presentation/components/data/skeleton/index.js +35 -0
- package/dist/system/presentation/components/index.d.ts +3 -3
- package/dist/system/presentation/components/index.js +3 -3
- package/dist/system/presentation/components/layout/component.d.ts +1 -1
- package/dist/system/presentation/components/layout/component.js +3 -3
- package/dist/system/presentation/components/layout/header/components/index.d.ts +2 -2
- package/dist/system/presentation/components/layout/header/components/index.js +2 -2
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js +6 -6
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/search-modal/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +2 -2
- package/dist/system/presentation/components/layout/header/index.js +1 -1
- package/dist/system/presentation/components/layout/header/version-01/index.js +3 -3
- package/dist/system/presentation/components/layout/index.d.ts +3 -3
- package/dist/system/presentation/components/layout/index.js +3 -3
- package/dist/system/presentation/components/layout/menu/components/index.d.ts +2 -0
- package/dist/system/presentation/components/layout/menu/components/index.js +19 -0
- package/dist/system/presentation/components/layout/menu/components/menu/index.js +56 -0
- package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js +65 -0
- package/dist/system/presentation/components/layout/menu/index.js +1 -1
- package/dist/system/presentation/components/layout/menu/version-01/index.d.ts +4 -0
- package/dist/system/presentation/components/layout/menu/version-01/index.js +36 -0
- package/dist/system/presentation/components/pages/index.d.ts +1 -0
- package/dist/system/presentation/components/pages/index.js +18 -0
- package/dist/system/presentation/components/pages/users/index.d.ts +1 -0
- package/dist/system/presentation/components/pages/users/index.js +18 -0
- package/dist/system/presentation/components/pages/users/page.js +40 -0
- package/dist/system/presentation/components/pages/users/table/columns.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/create.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/create.js +74 -0
- package/dist/system/presentation/components/pages/users/table/delete.js +73 -0
- package/dist/system/presentation/components/pages/users/table/edit.d.ts +3 -0
- package/dist/system/presentation/components/pages/users/table/edit.js +82 -0
- package/dist/system/presentation/components/pages/users/table/index.d.ts +4 -0
- package/dist/system/presentation/components/pages/users/table/index.js +21 -0
- package/dist/system/presentation/configs/index.d.ts +2 -0
- package/dist/system/presentation/configs/index.js +19 -0
- package/dist/system/presentation/context/auth/authenticated/index.js +15 -0
- package/dist/system/presentation/context/auth/context.d.ts +7 -0
- package/dist/system/presentation/context/auth/context.js +130 -0
- package/dist/system/presentation/context/auth/index.d.ts +5 -0
- package/dist/system/presentation/context/auth/index.js +22 -0
- package/dist/system/presentation/context/auth/interfaces.d.ts +6 -0
- package/dist/system/presentation/context/auth/login/index.js +36 -0
- package/dist/system/presentation/context/auth/private-page/index.js +17 -0
- package/dist/system/presentation/context/auth/unauthenticated/index.js +15 -0
- package/dist/system/presentation/context/container.js +12 -0
- package/dist/system/presentation/context/index.d.ts +2 -0
- package/dist/system/presentation/context/index.js +19 -0
- package/dist/system/presentation/hooks/index.d.ts +2 -0
- package/dist/system/presentation/hooks/index.js +19 -0
- package/dist/system/presentation/hooks/menu/index.d.ts +1 -0
- package/dist/system/presentation/hooks/menu/index.js +18 -0
- package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +1 -0
- package/dist/system/presentation/hooks/menu/use-load-menu.js +62 -0
- package/dist/system/presentation/hooks/ui/index.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/index.js +18 -0
- package/dist/system/presentation/hooks/ui/use-table/component.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/component.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/index.js +18 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.d.ts +5 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +105 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +2 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +90 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +14 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/loader-table/index.js +33 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +2 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +62 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +2 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +49 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +6 -0
- package/dist/system/presentation/hooks/ui/use-table/index.d.ts +3 -3
- package/dist/system/presentation/hooks/ui/use-table/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +3 -3
- package/dist/system/presentation/hooks/ui/use-table/query.d.ts +2 -2
- package/dist/system/presentation/index.d.ts +5 -5
- package/dist/system/presentation/index.js +5 -5
- package/dist/system/presentation/utils/index.d.ts +1 -1
- package/dist/system/presentation/utils/index.js +1 -1
- package/dist/system/presentation/utils/use-query/index.d.ts +1 -1
- package/dist/system/presentation/utils/use-query/index.js +1 -1
- package/dist/ui/components/accordion/index..d.ts +1 -1
- package/dist/ui/components/accordion/index..js +2 -2
- package/dist/ui/components/breadcrumb/index.d.ts +1 -1
- package/dist/ui/components/breadcrumb/index.js +1 -1
- package/dist/ui/components/button/component.d.ts +1 -1
- package/dist/ui/components/button/component.js +2 -2
- package/dist/ui/components/button/index.d.ts +2 -2
- package/dist/ui/components/button/index.js +2 -2
- package/dist/ui/components/button/interfaces.d.ts +1 -1
- package/dist/ui/components/container/index.d.ts +1 -1
- package/dist/ui/components/error-boundary/component.d.ts +1 -1
- package/dist/ui/components/error-boundary/component.js +1 -1
- package/dist/ui/components/error-boundary/error-body.d.ts +1 -1
- package/dist/ui/components/error-boundary/index.d.ts +2 -2
- package/dist/ui/components/error-boundary/index.js +2 -2
- package/dist/ui/components/form/checkbox/index.js +3 -3
- package/dist/ui/components/form/handler/custom-submit/index.d.ts +1 -1
- package/dist/ui/components/form/handler/custom-submit/index.js +1 -1
- package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +1 -1
- package/dist/ui/components/form/handler/dynamic_form_handler/index.js +3 -3
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +4 -4
- package/dist/ui/components/form/handler/form-handler/index.d.ts +1 -1
- package/dist/ui/components/form/handler/form-handler/index.js +5 -5
- package/dist/ui/components/form/handler/index.d.ts +2 -0
- package/dist/ui/components/form/handler/index.js +25 -0
- package/dist/ui/components/form/handler/interfaces.d.ts +2 -2
- package/dist/ui/components/form/index.d.ts +13 -13
- package/dist/ui/components/form/index.js +13 -13
- package/dist/ui/components/form/input/index.d.ts +1 -1
- package/dist/ui/components/form/input/index.js +1 -1
- package/dist/ui/components/form/input-control/error/index.d.ts +1 -1
- package/dist/ui/components/form/input-control/error/index.js +1 -1
- package/dist/ui/components/form/input-control/index.d.ts +1 -1
- package/dist/ui/components/form/input-control/index.js +5 -5
- package/dist/ui/components/form/input-control/label/index.js +1 -1
- package/dist/ui/components/form/input-control/loader-input/index.js +2 -2
- package/dist/ui/components/form/input-cpf-cnpj/index.d.ts +1 -1
- package/dist/ui/components/form/input-cpf-cnpj/index.js +1 -1
- package/dist/ui/components/form/input-currency/index.d.ts +1 -1
- package/dist/ui/components/form/input-currency/index.js +1 -1
- package/dist/ui/components/form/input-file/index.d.ts +1 -1
- package/dist/ui/components/form/input-file/index.js +1 -1
- package/dist/ui/components/form/input-mask/index.d.ts +1 -1
- package/dist/ui/components/form/input-mask/index.js +1 -1
- package/dist/ui/components/form/input-password/index.d.ts +1 -1
- package/dist/ui/components/form/input-password/index.js +3 -3
- package/dist/ui/components/form/input-switch/index.d.ts +1 -1
- package/dist/ui/components/form/input-switch/index.js +1 -1
- package/dist/ui/components/form/radio/index.js +2 -2
- package/dist/ui/components/form/select/index.d.ts +1 -1
- package/dist/ui/components/form/select/index.js +2 -2
- package/dist/ui/components/form/select/interfaces.d.ts +1 -1
- package/dist/ui/components/form/textarea/index.d.ts +1 -1
- package/dist/ui/components/form/textarea/index.js +1 -1
- package/dist/ui/components/index.d.ts +10 -10
- package/dist/ui/components/index.js +10 -10
- package/dist/ui/components/loader-circle/index.d.ts +1 -1
- package/dist/ui/components/loading-screen/index.d.ts +1 -1
- package/dist/ui/components/loading-screen/index.js +3 -3
- package/dist/ui/components/menu-mobile/components/nav-links/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/components/nav-links/index.js +2 -2
- package/dist/ui/components/menu-mobile/components/nav-links/interfaces.d.ts +1 -1
- package/dist/ui/components/menu-mobile/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/index.js +4 -4
- package/dist/ui/components/menu-mobile/top/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/top/index.js +2 -2
- package/dist/ui/components/menu-mobile/top/interfaces.d.ts +1 -1
- package/dist/ui/components/next-image/index.d.ts +1 -1
- package/dist/ui/components/next-image/index.js +3 -3
- package/dist/ui/components/sidebar/index.d.ts +1 -1
- package/dist/ui/components/sidebar/index.js +1 -1
- package/dist/ui/contexts/index.d.ts +3 -3
- package/dist/ui/contexts/index.js +3 -3
- package/dist/ui/contexts/theme/context.js +1 -1
- package/dist/ui/contexts/theme/index.d.ts +2 -2
- package/dist/ui/contexts/theme/index.js +2 -2
- package/dist/ui/contexts/toast/index.d.ts +1 -1
- package/dist/ui/contexts/toast/index.js +3 -3
- package/dist/ui/contexts/toast/toast-item/index.d.ts +1 -1
- package/dist/ui/contexts/toast/toast-item/index.js +1 -1
- package/dist/ui/hooks/index.d.ts +2 -2
- package/dist/ui/hooks/index.js +2 -2
- package/dist/ui/icons/index.d.ts +55 -55
- package/dist/ui/icons/index.js +55 -55
- package/dist/ui/icons/render/Carousel-left-icon.d.ts +1 -1
- package/dist/ui/icons/render/Carousel-right-icon.d.ts +1 -1
- package/dist/ui/icons/render/Check.d.ts +1 -1
- package/dist/ui/icons/render/Clock.d.ts +1 -1
- package/dist/ui/icons/render/Close.d.ts +1 -1
- package/dist/ui/icons/render/Codie.d.ts +1 -1
- package/dist/ui/icons/render/Edit.d.ts +1 -1
- package/dist/ui/icons/render/Email.d.ts +1 -1
- package/dist/ui/icons/render/Eye.d.ts +1 -1
- package/dist/ui/icons/render/Facebook.d.ts +1 -1
- package/dist/ui/icons/render/File.d.ts +1 -1
- package/dist/ui/icons/render/Folder.d.ts +1 -1
- package/dist/ui/icons/render/Globe.d.ts +1 -1
- package/dist/ui/icons/render/Home.d.ts +1 -1
- package/dist/ui/icons/render/Insagram.d.ts +1 -1
- package/dist/ui/icons/render/Linkedin.d.ts +1 -1
- package/dist/ui/icons/render/LongArrowRight.d.ts +1 -1
- package/dist/ui/icons/render/Lupa.d.ts +1 -1
- package/dist/ui/icons/render/Map.d.ts +1 -1
- package/dist/ui/icons/render/Microphone.d.ts +1 -1
- package/dist/ui/icons/render/Minus.d.ts +1 -1
- package/dist/ui/icons/render/NavDown.d.ts +1 -1
- package/dist/ui/icons/render/NavLeft.d.ts +1 -1
- package/dist/ui/icons/render/NavRight.d.ts +1 -1
- package/dist/ui/icons/render/NavUp.d.ts +1 -1
- package/dist/ui/icons/render/Phone.d.ts +1 -1
- package/dist/ui/icons/render/Pin.d.ts +1 -1
- package/dist/ui/icons/render/Play.d.ts +1 -1
- package/dist/ui/icons/render/Plus.d.ts +1 -1
- package/dist/ui/icons/render/Share.d.ts +1 -1
- package/dist/ui/icons/render/TikTok.d.ts +1 -1
- package/dist/ui/icons/render/Twitter.d.ts +1 -1
- package/dist/ui/icons/render/YouTube.d.ts +1 -1
- package/dist/ui/icons/render/box.d.ts +1 -1
- package/dist/ui/icons/render/calendar.d.ts +1 -1
- package/dist/ui/icons/render/chat.d.ts +1 -1
- package/dist/ui/icons/render/component.d.ts +1 -1
- package/dist/ui/icons/render/component.js +1 -1
- package/dist/ui/icons/render/delete.d.ts +1 -1
- package/dist/ui/icons/render/exclamation.d.ts +1 -1
- package/dist/ui/icons/render/eye-off.d.ts +1 -1
- package/dist/ui/icons/render/fullfield-bell.d.ts +1 -1
- package/dist/ui/icons/render/fullfield-chat.d.ts +1 -1
- package/dist/ui/icons/render/image.d.ts +1 -1
- package/dist/ui/icons/render/index.d.ts +1 -1
- package/dist/ui/icons/render/index.js +1 -1
- package/dist/ui/icons/render/keyboard-left-arrow.d.ts +1 -1
- package/dist/ui/icons/render/keyboard-right-arrow.d.ts +1 -1
- package/dist/ui/icons/render/loading.d.ts +1 -1
- package/dist/ui/icons/render/not-found.d.ts +1 -1
- package/dist/ui/icons/render/phone-message.d.ts +1 -1
- package/dist/ui/icons/render/plus-sharp.d.ts +1 -1
- package/dist/ui/icons/render/shopping.d.ts +1 -1
- package/dist/ui/icons/render/transparent-mail.d.ts +1 -1
- package/dist/ui/icons/render/transparent-phone.d.ts +1 -1
- package/dist/ui/icons/render/user.d.ts +1 -1
- package/dist/ui/icons/render/whats.d.ts +1 -1
- package/dist/ui/icons/render-icon/index.d.ts +1 -1
- package/dist/ui/icons/render-icon/index.js +1 -1
- package/dist/ui/index.d.ts +5 -5
- package/dist/ui/index.js +5 -5
- package/dist/ui/utils/facebook/index.d.ts +1 -1
- package/dist/ui/utils/facebook/index.js +1 -1
- package/dist/ui/utils/index.d.ts +5 -5
- package/dist/ui/utils/index.js +5 -5
- package/dist/ui/utils/libs/index.d.ts +1 -1
- package/dist/ui/utils/libs/index.js +1 -1
- package/dist/ui/utils/libs/next/index.d.ts +2 -2
- package/dist/ui/utils/libs/next/index.js +2 -2
- package/dist/ui/utils/validations/index.d.ts +2 -2
- package/dist/ui/utils/validations/index.js +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./auth"), exports);
|
|
18
|
+
__exportStar(require("./container"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ui"), exports);
|
|
18
|
+
__exportStar(require("./menu"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-load-menu';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./use-load-menu"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useLoadMenu(): import("swr/dist/_internal").SWRResponse<import("../../../../system").LoadMenu.Model, any, any>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.useLoadMenu = void 0;
|
|
43
|
+
var system_1 = require("../../../../system");
|
|
44
|
+
var swr_1 = __importDefault(require("swr"));
|
|
45
|
+
function useLoadMenu() {
|
|
46
|
+
function fetcher() {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
48
|
+
var response;
|
|
49
|
+
return __generator(this, function (_a) {
|
|
50
|
+
switch (_a.label) {
|
|
51
|
+
case 0: return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteMenu).load()];
|
|
52
|
+
case 1:
|
|
53
|
+
response = _a.sent();
|
|
54
|
+
return [2 /*return*/, response];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return (0, swr_1.default)("RemoteMenu", fetcher);
|
|
60
|
+
}
|
|
61
|
+
exports.useLoadMenu = useLoadMenu;
|
|
62
|
+
//# sourceMappingURL=use-load-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./use-table";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./use-table"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -13,8 +13,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.useTable = void 0;
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var components_1 = require("./components
|
|
17
|
-
var query_1 = require("./query
|
|
16
|
+
var components_1 = require("./components");
|
|
17
|
+
var query_1 = require("./query");
|
|
18
18
|
function useTable(props) {
|
|
19
19
|
var queryTable = props.query && (0, query_1.useQueryTable)(props.query);
|
|
20
20
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./table";
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./table"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -78,9 +78,9 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
78
78
|
var react_1 = require("react");
|
|
79
79
|
var link_1 = __importDefault(require("next/link"));
|
|
80
80
|
var semantic_ui_react_1 = require("semantic-ui-react");
|
|
81
|
-
var ui_1 = require("../../../../../../../../ui
|
|
82
|
-
var dynamic_form_handler_1 = require("../../../../../../../../ui/components/form/handler/dynamic_form_handler
|
|
83
|
-
var S = __importStar(require("./styles
|
|
81
|
+
var ui_1 = require("../../../../../../../../ui");
|
|
82
|
+
var dynamic_form_handler_1 = require("../../../../../../../../ui/components/form/handler/dynamic_form_handler");
|
|
83
|
+
var S = __importStar(require("./styles"));
|
|
84
84
|
function Actions(_a) {
|
|
85
85
|
var _b;
|
|
86
86
|
var actions = _a.actions, table = _a.table;
|
|
@@ -0,0 +1,105 @@
|
|
|
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");
|
|
81
|
+
var dynamic_form_handler_1 = require("../../../../../../../../ui/components/form/handler/dynamic_form_handler");
|
|
82
|
+
var link_1 = __importDefault(require("next/link"));
|
|
83
|
+
var S = __importStar(require("./styles"));
|
|
84
|
+
function CreateAction(_a) {
|
|
85
|
+
var _b, _c, _d;
|
|
86
|
+
var actions = _a.actions, addButton = _a.addButton;
|
|
87
|
+
var _e = (0, react_1.useState)(false), openCreate = _e[0], setOpenCreate = _e[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
|
+
return ((0, jsx_runtime_1.jsx)(S.Create, { children: actions.create &&
|
|
102
|
+
(((_b = actions.create) === null || _b === void 0 ? void 0 : _b.link) ? ((0, jsx_runtime_1.jsxs)(link_1.default, { className: 'create-button', href: actions.create.link, children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: ((_d = (_c = actions === null || actions === void 0 ? void 0 : actions.create) === null || _c === void 0 ? void 0 : _c.link) === null || _d === void 0 ? void 0 : _d.icon) || 'IconPlusSharp' }) }), actions.create.link.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', type: 'button', children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: (addButton === null || addButton === void 0 ? void 0 : addButton.icon) || 'IconPlusSharp' }) }), addButton.text] }), content: (0, jsx_runtime_1.jsx)(dynamic_form_handler_1.DynamicFormHandler, __assign({}, actions.create, { onSucess: onSuccessCreate })), onOpen: function () { return setOpenCreate(true); } }))) }));
|
|
103
|
+
}
|
|
104
|
+
exports.CreateAction = CreateAction;
|
|
105
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.Table = void 0;
|
|
38
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
+
var router_1 = require("next/router");
|
|
40
|
+
var ui_1 = require("../../../../../../../ui");
|
|
41
|
+
var system_1 = require("../../../../../../../system");
|
|
42
|
+
var actions_1 = require("./actions");
|
|
43
|
+
var create_1 = require("./create");
|
|
44
|
+
var thead_item_1 = require("./thead-item");
|
|
45
|
+
var pagination_1 = require("./pagination");
|
|
46
|
+
var loader_table_1 = require("./loader-table");
|
|
47
|
+
var S = __importStar(require("./styles"));
|
|
48
|
+
function Table(_a) {
|
|
49
|
+
var _b, _c, _d;
|
|
50
|
+
var configs = _a.configs, isFetching = _a.isFetching, columnsConfiguration = _a.columnsConfiguration, tableInformations = _a.tableInformations;
|
|
51
|
+
var router = (0, router_1.useRouter)();
|
|
52
|
+
var paramToSearch = ((_c = (((_b = router.query) === null || _b === void 0 ? void 0 : _b.search) || '')) === null || _c === void 0 ? void 0 : _c.toLowerCase()) || '';
|
|
53
|
+
var tableItems = configs.tableData || (tableInformations === null || tableInformations === void 0 ? void 0 : tableInformations.items);
|
|
54
|
+
var tableFilered = (configs === null || configs === void 0 ? void 0 : configs.enableSearchInSelf)
|
|
55
|
+
? tableItems && tableItems.length > 0
|
|
56
|
+
? tableItems === null || tableItems === void 0 ? void 0 : tableItems.filter(function (item) {
|
|
57
|
+
var _a;
|
|
58
|
+
var stringfyItem = item ? JSON.stringify(item) : '';
|
|
59
|
+
return (_a = stringfyItem === null || stringfyItem === void 0 ? void 0 : stringfyItem.toLowerCase()) === null || _a === void 0 ? void 0 : _a.includes(paramToSearch);
|
|
60
|
+
})
|
|
61
|
+
: null
|
|
62
|
+
: null;
|
|
63
|
+
var tableData = tableFilered || tableItems || [];
|
|
64
|
+
if (configs.isLoading) {
|
|
65
|
+
return (0, jsx_runtime_1.jsx)(loader_table_1.LoaderTable, {});
|
|
66
|
+
}
|
|
67
|
+
return ((0, jsx_runtime_1.jsxs)(ui_1.Error, { name: 'table-component', children: [(0, jsx_runtime_1.jsx)(S.TopActions, { className: 'top-actions', children: (0, jsx_runtime_1.jsx)(create_1.CreateAction, { actions: columnsConfiguration.actions, addButton: configs.addButton }) }), !configs.isLoading && (tableData === null || tableData === void 0 ? void 0 : tableData.length) === 0 && (configs === null || configs === void 0 ? void 0 : configs.errorMessage), tableData && (tableData === null || tableData === void 0 ? void 0 : tableData.length) > 0 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(S.Table, { children: (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("table", { children: [(0, jsx_runtime_1.jsx)("thead", { children: (0, jsx_runtime_1.jsxs)("tr", { children: [(_d = columnsConfiguration.columns) === null || _d === void 0 ? void 0 : _d.map(function (colunm, index) {
|
|
68
|
+
return ((0, jsx_runtime_1.jsx)(thead_item_1.THeadItem, { index: index, colunm: colunm, disableOrdenationTable: configs === null || configs === void 0 ? void 0 : configs.disableOrdenationTable }, colunm.id + index));
|
|
69
|
+
}), columnsConfiguration.actions && (0, jsx_runtime_1.jsx)("th", { style: { width: '100px' } })] }) }), !isFetching && tableItems && (tableItems === null || tableItems === void 0 ? void 0 : tableItems.length) !== 0 && ((0, jsx_runtime_1.jsx)("tbody", { children: tableData === null || tableData === void 0 ? void 0 : tableData.map(function (table, index) {
|
|
70
|
+
var _a;
|
|
71
|
+
return ((0, jsx_runtime_1.jsxs)("tr", { children: [(_a = columnsConfiguration.columns) === null || _a === void 0 ? void 0 : _a.map(function (e, i) {
|
|
72
|
+
var _a, _b, _c, _d;
|
|
73
|
+
function getProps() {
|
|
74
|
+
var _a;
|
|
75
|
+
var props = Object.keys(((_a = e.Component) === null || _a === void 0 ? void 0 : _a.props) || {}).reduce(function (reducer, property) {
|
|
76
|
+
var _a;
|
|
77
|
+
var newReducer = reducer;
|
|
78
|
+
newReducer[property] = table[(_a = e.Component) === null || _a === void 0 ? void 0 : _a.props[property]];
|
|
79
|
+
return __assign({}, newReducer);
|
|
80
|
+
}, {});
|
|
81
|
+
return props;
|
|
82
|
+
}
|
|
83
|
+
var props = ((_a = e.Component) === null || _a === void 0 ? void 0 : _a.allProps) ? table : ((_b = e.Component) === null || _b === void 0 ? void 0 : _b.props) ? getProps() : {};
|
|
84
|
+
var defaultProps = ((_c = e.Component) === null || _c === void 0 ? void 0 : _c.defaultProps) ? (_d = e.Component) === null || _d === void 0 ? void 0 : _d.defaultProps : {};
|
|
85
|
+
return ((0, jsx_runtime_1.jsx)("td", { className: 'font-14-regular', children: e.Component ? (0, jsx_runtime_1.jsx)(e.Component.Element, __assign({}, props, defaultProps)) : table[e.id] }, String(index) + String(i)));
|
|
86
|
+
}), columnsConfiguration.actions && ((0, jsx_runtime_1.jsx)(actions_1.Actions, { actions: columnsConfiguration.actions, table: table }))] }, table.id + String(index)));
|
|
87
|
+
}) }))] }), isFetching && (0, jsx_runtime_1.jsx)(system_1.Skeleton, { type: 'table', spacing: 0 })] }) }), !(configs === null || configs === void 0 ? void 0 : configs.disablePagination) && ((0, jsx_runtime_1.jsx)(S.Pagination, { className: 'pagination', children: (0, jsx_runtime_1.jsx)(pagination_1.Pagination, __assign({}, (configs.pagination || tableInformations.pagination))) }))] }))] }));
|
|
88
|
+
}
|
|
89
|
+
exports.Table = Table;
|
|
90
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { List, Pagination } from '../../../../../../../system';
|
|
2
|
+
import { IUseTableProps } from '../../interfaces';
|
|
3
|
+
type colunm = keyof any;
|
|
4
|
+
interface IShowHiden {
|
|
5
|
+
text: string;
|
|
6
|
+
filterBased: colunm;
|
|
7
|
+
disable: string[];
|
|
8
|
+
enable: string[];
|
|
9
|
+
}
|
|
10
|
+
type ITableProps = {
|
|
11
|
+
isFetching: boolean;
|
|
12
|
+
tableInformations?: List<any> & Pagination;
|
|
13
|
+
} & IUseTableProps;
|
|
14
|
+
export type { ITableProps, IShowHiden };
|
|
@@ -0,0 +1,33 @@
|
|
|
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.LoaderTable = void 0;
|
|
27
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
+
var S = __importStar(require("./styles"));
|
|
29
|
+
function LoaderTable() {
|
|
30
|
+
return ((0, jsx_runtime_1.jsx)(S.LoaderTable, { children: "LOADER COLOCAR" }));
|
|
31
|
+
}
|
|
32
|
+
exports.LoaderTable = LoaderTable;
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,62 @@
|
|
|
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.Pagination = 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");
|
|
31
|
+
var service_1 = require("./service");
|
|
32
|
+
var S = __importStar(require("./styles"));
|
|
33
|
+
function Pagination(_a) {
|
|
34
|
+
var page = _a.page, endPage = _a.endPage, pageSize = _a.pageSize, totalItems = _a.totalItems, hasNextPage = _a.hasNextPage, hasPreviousPage = _a.hasPreviousPage;
|
|
35
|
+
var _b = (0, react_1.useState)(null), pagination = _b[0], setPagination = _b[1];
|
|
36
|
+
var router = (0, router_1.useRouter)();
|
|
37
|
+
(0, react_1.useEffect)(function () {
|
|
38
|
+
if (router.isReady) {
|
|
39
|
+
setPagination((0, service_1.paginate)({
|
|
40
|
+
totalPages: endPage,
|
|
41
|
+
pageSize: pageSize,
|
|
42
|
+
totalItems: totalItems,
|
|
43
|
+
hasNextPage: hasNextPage,
|
|
44
|
+
hasPreviousPage: hasPreviousPage,
|
|
45
|
+
currentPage: Number(router.query.pageIndex) <= 0 || !router.query.pageIndex ? 1 : Number(router.query.pageIndex),
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
}, [router.isReady]);
|
|
49
|
+
function onSelect(page) {
|
|
50
|
+
(0, ui_1.updateRoute)({ router: router, params: { page: page.toString() } });
|
|
51
|
+
}
|
|
52
|
+
if (!pagination || pagination.pages.length === 1) {
|
|
53
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
54
|
+
}
|
|
55
|
+
return ((0, jsx_runtime_1.jsxs)(S.PaginationStyle, { children: [hasPreviousPage && ((0, jsx_runtime_1.jsx)("span", { className: 'nav', style: { display: page == 1 ? 'none' : 'block' }, onClick: function () { return onSelect(page - 1); }, children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconKeyboardLeftArrow' }) })), (0, jsx_runtime_1.jsx)("div", { className: 'navigations', children: pagination.pages.map(function (pageItem) {
|
|
56
|
+
return ((0, jsx_runtime_1.jsx)("button", { type: 'button', className: "".concat(pagination.page === pageItem ? 'active' : ''), onClick: function () { return onSelect(pageItem); }, children: pageItem }, "".concat(pageItem, "-pagination}")));
|
|
57
|
+
}) }), hasNextPage && ((0, jsx_runtime_1.jsx)("span", { className: 'nav', style: {
|
|
58
|
+
display: pagination.pages[pagination.pages.length - 1] == pagination.page ? 'none' : 'block',
|
|
59
|
+
}, onClick: function () { return onSelect(pagination.page + 1); }, children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconKeyboardRightArrow' }) }))] }));
|
|
60
|
+
}
|
|
61
|
+
exports.Pagination = Pagination;
|
|
62
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
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.THeadItem = 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");
|
|
31
|
+
var S = __importStar(require("./styles"));
|
|
32
|
+
function THeadItem(_a) {
|
|
33
|
+
var _b, _c;
|
|
34
|
+
var colunm = _a.colunm, index = _a.index, disableOrdenationTable = _a.disableOrdenationTable;
|
|
35
|
+
var router = (0, router_1.useRouter)();
|
|
36
|
+
var isAtualOrd = !!(((_b = router.query) === null || _b === void 0 ? void 0 : _b.ordIndex) === String(index));
|
|
37
|
+
var ascIsActive = !!(((_c = router.query) === null || _c === void 0 ? void 0 : _c.asc) === 'true');
|
|
38
|
+
var _d = (0, react_1.useState)(!!(isAtualOrd && ascIsActive)), asc = _d[0], setAsc = _d[1];
|
|
39
|
+
function handleOrd(ascValue) {
|
|
40
|
+
if (disableOrdenationTable) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
// updateRoute({ params: { ordIndex: index, asc: ascValue }, router })
|
|
44
|
+
setAsc(ascValue);
|
|
45
|
+
}
|
|
46
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'thead-item', children: (0, jsx_runtime_1.jsx)("th", { style: { width: colunm.width + 'px' }, children: (0, jsx_runtime_1.jsxs)(S.THeadItem, { style: { width: colunm.width + 'px' }, children: [(0, jsx_runtime_1.jsx)("span", { onClick: function () { return handleOrd(!asc); }, className: 'font-12-bold uppercase', children: colunm.label }), !disableOrdenationTable && ((0, jsx_runtime_1.jsx)("div", { className: 'ord-actions', children: (0, jsx_runtime_1.jsx)("button", { type: 'button', onClick: function () { return handleOrd(!asc); } }) }))] }) }, colunm.id + index) }));
|
|
47
|
+
}
|
|
48
|
+
exports.THeadItem = THeadItem;
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/thead-item/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAgC;AAChC,sCAAuC;AAEvC,2BAA4B;AAG5B,0CAA6B;AAE7B,SAAgB,SAAS,CAAC,EAA0D;;QAAxD,MAAM,YAAA,EAAE,KAAK,WAAA,EAAE,sBAAsB,4BAAA;IAC/D,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAE1B,IAAM,UAAU,GAAG,CAAC,CAAC,CAAC,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,QAAQ,MAAK,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;IAC/D,IAAM,WAAW,GAAG,CAAC,CAAC,CAAC,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,GAAG,MAAK,MAAM,CAAC,CAAA;IAE9C,IAAA,KAAgB,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC,UAAU,IAAI,WAAW,CAAC,CAAC,EAAtD,GAAG,QAAA,EAAE,MAAM,QAA2C,CAAA;IAE7D,SAAS,SAAS,CAAC,QAAiB;QAClC,IAAI,sBAAsB,EAAE,CAAC;YAC3B,OAAM;QACR,CAAC;QAED,sEAAsE;QAEtE,MAAM,CAAC,QAAQ,CAAC,CAAA;IAClB,CAAC;IAED,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,YAAY,YACtB,+BAAwC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,GAAG,IAAI,EAAE,YAC3E,wBAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/thead-item/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAgC;AAChC,sCAAuC;AAEvC,2BAA4B;AAG5B,0CAA6B;AAE7B,SAAgB,SAAS,CAAC,EAA0D;;QAAxD,MAAM,YAAA,EAAE,KAAK,WAAA,EAAE,sBAAsB,4BAAA;IAC/D,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAE1B,IAAM,UAAU,GAAG,CAAC,CAAC,CAAC,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,QAAQ,MAAK,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;IAC/D,IAAM,WAAW,GAAG,CAAC,CAAC,CAAC,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,GAAG,MAAK,MAAM,CAAC,CAAA;IAE9C,IAAA,KAAgB,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC,UAAU,IAAI,WAAW,CAAC,CAAC,EAAtD,GAAG,QAAA,EAAE,MAAM,QAA2C,CAAA;IAE7D,SAAS,SAAS,CAAC,QAAiB;QAClC,IAAI,sBAAsB,EAAE,CAAC;YAC3B,OAAM;QACR,CAAC;QAED,sEAAsE;QAEtE,MAAM,CAAC,QAAQ,CAAC,CAAA;IAClB,CAAC;IAED,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,YAAY,YACtB,+BAAwC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,GAAG,IAAI,EAAE,YAC3E,wBAAC,CAAC,CAAC,SAAS,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,GAAG,IAAI,EAAE,aAChD,iCAAM,OAAO,EAAE,cAAM,OAAA,SAAS,CAAC,CAAC,GAAG,CAAC,EAAf,CAAe,EAAE,SAAS,EAAC,wBAAwB,YACrE,MAAM,CAAC,KAAK,GACR,EAEN,CAAC,sBAAsB,IAAI,CAC1B,gCAAK,SAAS,EAAC,aAAa,YAC1B,mCAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,cAAM,OAAA,SAAS,CAAC,CAAC,GAAG,CAAC,EAAf,CAAe,GAE3C,GACL,CACP,IACW,IAbN,MAAM,CAAC,EAAa,GAAG,KAAK,CAcjC,GACC,CACT,CAAA;AACH,CAAC;AArCD,8BAqCC"}
|