infinity-forge 2.6.7 → 2.6.9
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/sites/components/default-pages/blog/components/blog-item/index.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/blog-item/index.js +3 -3
- package/dist/sites/components/default-pages/blog/components/blog-item/intefaces.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/blog-item/share/index.js +2 -2
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.js +2 -2
- package/dist/sites/components/default-pages/blog/components/featured-blog/index.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/featured-blog/index.js +2 -2
- package/dist/sites/components/default-pages/blog/components/featured-blog/interfaces.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/side-box-categories/index.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/side-box-categories/index.js +2 -2
- package/dist/sites/components/default-pages/blog/components/side-box-categories/interfaces.d.ts +1 -1
- package/dist/sites/components/default-pages/blog/components/side-box-newsletter/index.js +3 -3
- package/dist/sites/components/default-pages/blog/components/title-blog/index.js +2 -2
- package/dist/system/domain/protocols/http/errors/http-errors/index.d.ts +7 -7
- package/dist/system/domain/protocols/http/errors/http-errors/index.js +7 -7
- 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/presentation/components/data/buttons/sidebar-button/index.js +3 -3
- 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/loader/index.js +1 -1
- package/dist/system/presentation/components/data/menu/components/index.d.ts +1 -1
- package/dist/system/presentation/components/data/menu/components/index.js +1 -1
- package/dist/system/presentation/components/data/menu/components/menu-item/index.js +3 -3
- package/dist/system/presentation/components/data/menu/modes/collapsed-menu/index.js +5 -5
- package/dist/system/presentation/components/data/menu/modes/collapsed-menu/styles.js +1 -1
- package/dist/system/presentation/components/data/menu/modes/index.d.ts +2 -2
- package/dist/system/presentation/components/data/menu/modes/index.js +2 -2
- package/dist/system/presentation/components/data/menu/modes/opened/index.js +3 -3
- package/dist/system/presentation/components/data/menu/modes/opened/styles.js +1 -1
- package/dist/system/presentation/components/data/notifications/card/index.d.ts +1 -1
- package/dist/system/presentation/components/data/notifications/card/index.js +2 -2
- package/dist/system/presentation/components/data/profile-infos/profile/index.d.ts +1 -1
- package/dist/system/presentation/components/data/profile-infos/profile/index.js +3 -3
- package/dist/system/presentation/components/data/tab/tab-item/index.d.ts +1 -1
- package/dist/system/presentation/components/data/tab/tab-item/index.js +2 -2
- package/dist/system/presentation/components/data/tab/tab-item/styles.d.ts +1 -1
- 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/component.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/component.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js +3 -3
- 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 +4 -4
- 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/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/version-01/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/version-01/index.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/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/context/auth/components/index.js +19 -0
- package/dist/system/presentation/context/auth/components/login/form-login/index.js +2 -2
- package/dist/system/presentation/context/auth/components/login/index.js +4 -4
- package/dist/system/presentation/context/auth/components/private-page/index.d.ts +1 -1
- package/dist/system/presentation/context/auth/components/private-page/index.js +3 -3
- package/dist/system/presentation/hooks/notifications/use-load-all/index.d.ts +1 -0
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js +63 -0
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.d.ts +2 -0
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.js +60 -0
- package/dist/system/presentation/hooks/ui/use-table/component.d.ts +8 -0
- package/dist/system/presentation/hooks/ui/use-table/component.js +26 -0
- package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.js +2 -2
- 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 +4 -4
- package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js +4 -4
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/styles.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/styles.js.map +1 -1
- 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/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 +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/index.d.ts +4 -0
- package/dist/system/presentation/hooks/ui/use-table/index.js +21 -0
- package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +93 -0
- package/dist/system/presentation/hooks/ui/use-table/query/get-query-arguments-table.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/query/hook.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/query/hook.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/query/index.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/query/index.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/components-shared/get-changed-params.js +51 -0
- package/dist/ui/components/carousel/carousel-lib/components-shared/get-element-params.js +148 -0
- package/dist/ui/components/carousel/carousel-lib/components-shared/get-params.js +61 -0
- package/dist/ui/components/carousel/carousel-lib/components-shared/mount-swiper.js +24 -0
- package/dist/ui/components/carousel/carousel-lib/components-shared/update-swiper.js +208 -0
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/getBreakpoint.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/index.d.ts +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/index.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/breakpoints/setBreakpoint.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/classes/index.d.ts +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/classes/index.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/core.js +654 -0
- package/dist/ui/components/carousel/carousel-lib/core/events/index.js +9 -9
- package/dist/ui/components/carousel/carousel-lib/core/events/onLoad.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/events/onTouchEnd.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/events/onTouchMove.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/events/onTouchStart.js +3 -3
- package/dist/ui/components/carousel/carousel-lib/core/grab-cursor/index.d.ts +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/grab-cursor/index.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/loop/index.d.ts +3 -3
- package/dist/ui/components/carousel/carousel-lib/core/loop/index.js +3 -3
- package/dist/ui/components/carousel/carousel-lib/core/loop/loopCreate.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/loop/loopFix.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/moduleExtendParams.js +42 -0
- package/dist/ui/components/carousel/carousel-lib/core/modules/observer/observer.js +2 -2
- package/dist/ui/components/carousel/carousel-lib/core/modules/resize/resize.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/slide/index.d.ts +7 -7
- package/dist/ui/components/carousel/carousel-lib/core/slide/index.js +7 -7
- package/dist/ui/components/carousel/carousel-lib/core/slide/slideTo.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/slide/slideToClickedSlide.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/transition/index.d.ts +3 -3
- package/dist/ui/components/carousel/carousel-lib/core/transition/index.js +3 -3
- package/dist/ui/components/carousel/carousel-lib/core/transition/transitionEnd.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/transition/transitionStart.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/translate/getTranslate.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/translate/index.d.ts +5 -5
- package/dist/ui/components/carousel/carousel-lib/core/translate/index.js +5 -5
- package/dist/ui/components/carousel/carousel-lib/core/translate/translateTo.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/update/index.d.ts +9 -9
- package/dist/ui/components/carousel/carousel-lib/core/update/index.js +9 -9
- package/dist/ui/components/carousel/carousel-lib/core/update/updateActiveIndex.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSize.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSlides.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/core/update/updateSlidesClasses.js +1 -1
- package/dist/ui/components/carousel/carousel-lib/modules/autoplay.js +336 -0
- package/dist/ui/components/carousel/carousel-lib/modules/effect-fade.js +63 -0
- package/dist/ui/components/carousel/carousel-lib/modules/free-mode.js +247 -0
- package/dist/ui/components/carousel/carousel-lib/modules/index.d.ts +6 -0
- package/dist/ui/components/carousel/carousel-lib/modules/index.js +23 -0
- package/dist/ui/components/carousel/carousel-lib/modules/navigation.js +223 -0
- package/dist/ui/components/carousel/carousel-lib/modules/pagination.js +514 -0
- package/dist/ui/components/carousel/carousel-lib/modules/virtual.js +379 -0
- package/dist/ui/components/carousel/carousel-lib/react/swiper-slide.js +88 -0
- package/dist/ui/components/carousel/carousel-lib/react/swiper.js +210 -0
- package/dist/ui/components/carousel/carousel-lib/shared/create-element-if-not-defined.js +22 -0
- package/dist/ui/components/carousel/carousel-lib/shared/create-shadow.js +15 -0
- package/dist/ui/components/carousel/carousel-lib/shared/effect-target.js +13 -0
- package/dist/ui/components/carousel/carousel-lib/shared/effect-virtual-transition-end.js +47 -0
- package/dist/ui/components/carousel/carousel-lib/shared/get-browser.js +43 -0
- package/dist/ui/components/carousel/carousel-lib/shared/get-device.js +69 -0
- package/dist/ui/components/carousel/carousel-lib/shared/get-support.js +25 -0
- package/dist/ui/components/carousel/carousel-lib/shared/utils.js +372 -0
- package/dist/ui/components/carousel/carousel-lib/ssr-window/document.js +65 -0
- package/dist/ui/components/carousel/carousel-lib/ssr-window/ssr-window.d.ts +4 -0
- package/dist/ui/components/carousel/carousel-lib/ssr-window/ssr-window.js +15 -0
- package/dist/ui/components/carousel/carousel-lib/ssr-window/window.js +71 -0
- package/dist/ui/components/carousel/carousel-lib/types/index.d.ts +5 -0
- package/dist/ui/components/carousel/carousel-lib/types/index.js +27 -0
- package/dist/ui/components/carousel/carousel-lib/types/swiper-events.d.ts +162 -0
- package/dist/ui/components/form/handler/custom-submit/index.d.ts +17 -0
- package/dist/ui/components/form/handler/custom-submit/index.js +25 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/component.d.ts +2 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/component.js +118 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +2 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/index.js +19 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +28 -0
- package/dist/ui/components/form/handler/form-handler/generate-schemas.js +111 -0
- package/dist/ui/components/form/handler/form-handler/index.d.ts +2 -0
- package/dist/ui/components/form/handler/form-handler/index.js +241 -0
- package/dist/ui/components/form/handler/form-handler/use-schemas.d.ts +2 -0
- package/dist/ui/components/form/handler/form-handler/use-schemas.js +115 -0
- package/dist/ui/components/form/handler/form-handler/use-send-file.d.ts +5 -0
- package/dist/ui/components/form/handler/form-handler/use-send-file.js +209 -0
- package/dist/ui/components/form/handler/i18n/capture-i18n-errors/index.d.ts +1 -1
- package/dist/ui/components/form/handler/i18n/index.d.ts +2 -0
- package/dist/ui/components/form/handler/i18n/index.js +57 -0
- package/dist/ui/components/form/input-cep/use-cep/hook.d.ts +5 -0
- package/dist/ui/components/form/input-cep/use-cep/hook.js +14 -0
- package/dist/ui/components/form/input-cep/use-cep/index.d.ts +2 -0
- package/dist/ui/components/form/input-cep/use-cep/index.js +19 -0
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.d.ts +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.js +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.d.ts +3 -3
- package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.js +3 -3
- package/dist/ui/components/form/input-cep/use-cep/providers/index.d.ts +1 -1
- package/dist/ui/components/form/input-cep/use-cep/providers/index.js +1 -1
- package/dist/ui/components/form/input-control/error/index.js +34 -0
- package/dist/ui/components/form/input-control/label/index.js +34 -0
- package/dist/ui/components/form/input-control/loader-input/index.js +34 -0
- package/dist/ui/components/form/input-currency/components/CurrencyInput.js +247 -0
- package/dist/ui/components/form/input-currency/components/index.d.ts +1 -0
- package/dist/ui/components/form/input-currency/components/index.js +18 -0
- package/dist/ui/components/form/input-currency/components/utils/cleanValue.d.ts +1 -1
- package/dist/ui/components/form/input-currency/components/utils/cleanValue.js +4 -4
- package/dist/ui/components/form/input-currency/components/utils/formatValue.d.ts +1 -1
- package/dist/ui/components/form/input-currency/components/utils/formatValue.js +2 -2
- package/dist/ui/components/form/input-currency/components/utils/getLocaleConfig.d.ts +1 -1
- package/dist/ui/components/form/input-currency/components/utils/getSuffix.js +1 -1
- package/dist/ui/components/form/input-currency/components/utils/index.d.ts +8 -8
- package/dist/ui/components/form/input-currency/components/utils/index.js +8 -8
- package/dist/ui/components/form/input-currency/components/utils/parseAbbrValue.js +1 -1
- package/dist/ui/components/form/input-currency/components/utils/removeInvalidChars.js +1 -1
- package/dist/ui/components/form/input-currency/components/utils/removeSeparators.js +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.js +3 -3
- package/dist/ui/components/form/input-date-picker/calendar/days/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/days/index.js +2 -2
- package/dist/ui/components/form/input-date-picker/calendar/index.d.ts +9 -0
- package/dist/ui/components/form/input-date-picker/calendar/index.js +58 -0
- package/dist/ui/components/form/input-date-picker/calendar/interface.d.ts +2 -2
- package/dist/ui/components/form/input-date-picker/calendar/months/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/months/index.js +2 -2
- package/dist/ui/components/form/input-date-picker/calendar/styles.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/mock/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/mock/index.js +1 -1
- package/dist/ui/components/form/input-file/hooks/index.d.ts +4 -4
- package/dist/ui/components/form/input-file/hooks/index.js +4 -4
- package/dist/ui/components/form/input-file/hooks/use-components-file.d.ts +2 -2
- package/dist/ui/components/form/input-file/hooks/use-components-file.js +2 -2
- package/dist/ui/components/form/input-file/hooks/use-file-elements.d.ts +1 -1
- package/dist/ui/components/form/input-file/hooks/use-file-elements.js +2 -2
- package/dist/ui/components/form/input-file/hooks/use-file.d.ts +2 -2
- package/dist/ui/components/form/input-file/hooks/use-file.js +2 -2
- package/dist/ui/components/form/input-file/hooks/use-rendered-file.d.ts +1 -1
- package/dist/ui/components/form/input-file/hooks/use-rendered-file.js +1 -1
- package/dist/ui/components/form/input-file/render-files/component.d.ts +1 -1
- package/dist/ui/components/form/input-file/render-files/component.js +2 -2
- package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.d.ts +1 -1
- package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.js +1 -1
- package/dist/ui/components/form/input-file/render-files/file-item/index.d.ts +2 -2
- package/dist/ui/components/form/input-file/render-files/file-item/index.js +3 -3
- package/dist/ui/components/form/input-file/render-files/index.d.ts +3 -3
- package/dist/ui/components/form/input-file/render-files/index.js +3 -3
- package/dist/ui/components/form/input-file/render-files/interfaces.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/core/errors/SyntheticChangeError.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.js +2 -2
- package/dist/ui/components/form/input-mask/lib/core/index.d.ts +5 -5
- package/dist/ui/components/form/input-mask/lib/core/index.js +4 -4
- package/dist/ui/components/form/input-mask/lib/core/utils/setInputAttributes.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/InputMask.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/mask/InputMask.js +2 -2
- package/dist/ui/components/form/input-mask/lib/mask/index.d.ts +5 -5
- package/dist/ui/components/form/input-mask/lib/mask/index.js +3 -3
- package/dist/ui/components/form/input-mask/lib/mask/types.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/useMask.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/useMask.js +7 -7
- package/dist/ui/components/form/input-mask/lib/mask/utils/filter.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/format.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/formatToParts.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/formatToReplacementObject.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.js +3 -3
- package/dist/ui/components/form/input-mask/lib/mask/utils/resolveSelection.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/mask/utils/unformat.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils/validate.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/mask/utils.js +5 -5
- package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.js +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/index.d.ts +4 -4
- package/dist/ui/components/form/input-mask/lib/number-format/index.js +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/types.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.js +6 -6
- package/dist/ui/components/form/input-mask/lib/number-format/utils/localizeValues.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.d.ts +2 -2
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.js +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveMinimumFractionDigits.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveOptions.d.ts +1 -1
- package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveSelection.d.ts +2 -2
- package/dist/ui/components/form/input-seo/input-meta-image/index.d.ts +1 -1
- package/dist/ui/components/form/input-seo/input-meta-image/index.js +2 -2
- 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 +3 -3
- package/dist/ui/components/menu-mobile/components/nav-links/interfaces.d.ts +1 -1
- package/dist/ui/icons/index.d.ts +1 -1
- package/dist/ui/icons/index.js +1 -1
- package/dist/ui/icons/index.js.map +1 -1
- package/dist/ui/icons/render/equalizer.d.ts +3 -0
- package/dist/ui/icons/render/equalizer.js +15 -0
- package/dist/ui/icons/render/equalizer.js.map +1 -0
- package/package.json +3 -2
- package/dist/ui/icons/render/arrow-lupa.d.ts +0 -3
- package/dist/ui/icons/render/arrow-lupa.js +0 -15
- package/dist/ui/icons/render/arrow-lupa.js.map +0 -1
|
@@ -82,9 +82,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
82
82
|
exports.Filters = void 0;
|
|
83
83
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
84
84
|
var router_1 = require("next/router");
|
|
85
|
-
var system_1 = require("../../../../../../../../system");
|
|
86
|
-
var ui_1 = require("../../../../../../../../ui");
|
|
87
|
-
var S = __importStar(require("./styles"));
|
|
85
|
+
var system_1 = require("../../../../../../../../system/index.js");
|
|
86
|
+
var ui_1 = require("../../../../../../../../ui/index.js");
|
|
87
|
+
var S = __importStar(require("./styles.js"));
|
|
88
88
|
function Filters(_a) {
|
|
89
89
|
var _b;
|
|
90
90
|
var configs = _a.configs, tableInformations = _a.tableInformations;
|
|
@@ -106,7 +106,7 @@ function Filters(_a) {
|
|
|
106
106
|
if (filters.length === 0) {
|
|
107
107
|
return (0, jsx_runtime_1.jsx)("div", {});
|
|
108
108
|
}
|
|
109
|
-
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Filters', children: (0, jsx_runtime_1.jsxs)(S.Filters, { "$gridColumns": filters.length + 1, children: [(0, jsx_runtime_1.jsx)("div", { className: 'filters-accordion', children: (0, jsx_runtime_1.jsx)(ui_1.Accordion, { openIcon: '
|
|
109
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Filters', children: (0, jsx_runtime_1.jsxs)(S.Filters, { "$gridColumns": filters.length + 1, children: [(0, jsx_runtime_1.jsx)("div", { className: 'filters-accordion', children: (0, jsx_runtime_1.jsx)(ui_1.Accordion, { openIcon: 'EqualizerLineIcon', closeIcon: 'EqualizerFillIcon', children: (0, jsx_runtime_1.jsx)(FiltersForm, { initialData: initialData, filters: filters, hasFiltersSelected: hasFiltersSelected, base64FiltersDecoded: base64FiltersDecoded, updateFilters: updateFilters }) }) }), (0, jsx_runtime_1.jsx)(FiltersForm, { base64FiltersDecoded: base64FiltersDecoded, filters: filters, hasFiltersSelected: hasFiltersSelected, initialData: initialData, updateFilters: updateFilters })] }) }));
|
|
110
110
|
}
|
|
111
111
|
exports.Filters = Filters;
|
|
112
112
|
function FiltersForm(_a) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/filters/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAuC;AAEvC,mCAA8C;AAC9C,2BAAuG;AAIvG,0CAA6B;AAE7B,SAAgB,OAAO,CAAC,EAA2C;;QAAzC,OAAO,aAAA,EAAE,iBAAiB,uBAAA;IAClD,IAAM,aAAa,GAAG,OAAO,CAAC,aAAa,IAAI,EAAE,CAAA;IACjD,IAAM,UAAU,GAAG,CAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,OAAO,KAAI,EAAE,CAAA;IAEnD,IAAM,OAAO,mCAAO,UAAU,SAAK,aAAa,OAAC,C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AAK,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,OAAO,UAAE,cAAc,UAAE,CAAA;4BACnE,CAAC;iCAAM,CAAC;gCACN,aAAa,CAAC,CAAC,cAAc,CAAC,CAAC,CAAA;4BACjC,CAAC;;;yBACF,EACD,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,UAAC,EAAE,IAAK,OAAA,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,EAArC,CAAqC,CAAC,IA9BrE,MAAM,CAAC,IAAI,CA+BhB,CACH,EAlCyB,CAkCzB,CAAC,EAEF,uBAAC,oBAAW,IAAC,QAAQ,EAAE,UAAC,KAAK,IAAK,OAAA,IAAA,gBAAW,EAAC,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,MAAM,QAAA,EAAE,CAAC,EAA3D,CAA2D,GAAI,IAC7F,GACM,CACf,CAAA;AACH,CAAC"}
|
|
@@ -9,7 +9,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.Filters = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.Filters = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n --inputHeight: 42px;\n --borderRadius: 5px;\n\n display: flex;\n align-items: center;\n gap: 15px;\n position: relative;\n z-index: 99;\n color: ", ";\n\n .filters-accordion {\n display: none !important;\n width: 100%;\n\n > div {\n box-shadow: unset;\n padding: 0;\n background-color: transparent;\n\n > button {\n margin-left: auto;\n
|
|
12
|
+
exports.Filters = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n --inputHeight: 42px;\n --borderRadius: 5px;\n\n display: flex;\n align-items: center;\n gap: 15px;\n position: relative;\n z-index: 99;\n color: ", ";\n\n .filters-accordion {\n display: none !important;\n width: 100%;\n\n > div {\n box-shadow: unset;\n padding: 0;\n background-color: transparent;\n\n > button {\n margin-left: auto;\n height: 40px;\n width: 40px;\n\n border: 1px solid currentColor;\n border-radius: 5px;\n\n color: #fff;\n background: ", ";\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n cursor: pointer;\n\n .actions {\n display: flex;\n }\n\n svg {\n fill: currentColor;\n width: 15px;\n height: auto;\n }\n\n &:hover {\n transition: all 0.1s;\n background: #fff;\n color: #000000;\n border: 1px solid currentColor;\n }\n }\n\n .content {\n width: 100%;\n\n .filters {\n width: 100%;\n grid-template-columns: repeat(1, 1fr);\n\n > div {\n width: 100%;\n }\n\n > div:last-child {\n .input-wrapper {\n width: 100%;\n display: flex;\n }\n }\n }\n }\n }\n }\n\n form {\n max-width: 950px;\n\n .filters {\n width: 100%;\n display: grid;\n grid-template-columns: repeat(", ", 1fr);\n row-gap: 0;\n gap: 10px;\n\n * {\n margin-bottom: 0;\n }\n\n > div {\n display: flex;\n align-items: flex-end;\n }\n }\n }\n\n @media only screen and (max-width: 1685px) {\n grid-template-columns: repeat(2, 1fr);\n }\n\n @media only screen and (max-width: 768px) {\n > form {\n display: none;\n }\n\n .filters-accordion {\n display: flex !important;\n }\n }\n"], ["\n --inputHeight: 42px;\n --borderRadius: 5px;\n\n display: flex;\n align-items: center;\n gap: 15px;\n position: relative;\n z-index: 99;\n color: ", ";\n\n .filters-accordion {\n display: none !important;\n width: 100%;\n\n > div {\n box-shadow: unset;\n padding: 0;\n background-color: transparent;\n\n > button {\n margin-left: auto;\n height: 40px;\n width: 40px;\n\n border: 1px solid currentColor;\n border-radius: 5px;\n\n color: #fff;\n background: ", ";\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n cursor: pointer;\n\n .actions {\n display: flex;\n }\n\n svg {\n fill: currentColor;\n width: 15px;\n height: auto;\n }\n\n &:hover {\n transition: all 0.1s;\n background: #fff;\n color: #000000;\n border: 1px solid currentColor;\n }\n }\n\n .content {\n width: 100%;\n\n .filters {\n width: 100%;\n grid-template-columns: repeat(1, 1fr);\n\n > div {\n width: 100%;\n }\n\n > div:last-child {\n .input-wrapper {\n width: 100%;\n display: flex;\n }\n }\n }\n }\n }\n }\n\n form {\n max-width: 950px;\n\n .filters {\n width: 100%;\n display: grid;\n grid-template-columns: repeat(", ", 1fr);\n row-gap: 0;\n gap: 10px;\n\n * {\n margin-bottom: 0;\n }\n\n > div {\n display: flex;\n align-items: flex-end;\n }\n }\n }\n\n @media only screen and (max-width: 1685px) {\n grid-template-columns: repeat(2, 1fr);\n }\n\n @media only screen and (max-width: 768px) {\n > form {\n display: none;\n }\n\n .filters-accordion {\n display: flex !important;\n }\n }\n"])), function (props) { return props.theme.darkColor; }, function (props) { return props.theme.darkColor; }, function (_a) {
|
|
13
13
|
var $gridColumns = _a.$gridColumns;
|
|
14
14
|
return $gridColumns;
|
|
15
15
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/filters/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,OAAO,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/filters/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,OAAO,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,6/DAA0B,8JASnD,EAAgC,mYAoBrB,EAAgC,48BAsDhB,EAAkC,ucA4BvE,KAtGU,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,SAAS,EAArB,CAAqB,EAoBrB,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,SAAS,EAArB,CAAqB,EAsDhB,UAAC,EAAgB;QAAd,YAAY,kBAAA;IAAO,OAAA,YAAY;AAAZ,CAAY,EA4BvE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ITableProps } from './interfaces';
|
|
1
|
+
import { ITableProps } from './interfaces.js';
|
|
2
2
|
export declare function Table(props: ITableProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -38,16 +38,16 @@ exports.Table = void 0;
|
|
|
38
38
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
39
|
var react_1 = require("react");
|
|
40
40
|
var router_1 = require("next/router");
|
|
41
|
-
var ui_1 = require("../../../../../../../ui");
|
|
42
|
-
var export_1 = require("./export");
|
|
43
|
-
var actions_1 = require("./actions");
|
|
44
|
-
var filters_1 = require("./filters");
|
|
45
|
-
var create_1 = require("./create");
|
|
46
|
-
var thead_item_1 = require("./thead-item");
|
|
47
|
-
var pagination_1 = require("./pagination");
|
|
48
|
-
var skeleton_table_1 = require("./skeleton-table");
|
|
49
|
-
var active_filters_1 = require("./active-filters");
|
|
50
|
-
var S = __importStar(require("./styles"));
|
|
41
|
+
var ui_1 = require("../../../../../../../ui/index.js");
|
|
42
|
+
var export_1 = require("./export/index.js");
|
|
43
|
+
var actions_1 = require("./actions/index.js");
|
|
44
|
+
var filters_1 = require("./filters/index.js");
|
|
45
|
+
var create_1 = require("./create/index.js");
|
|
46
|
+
var thead_item_1 = require("./thead-item/index.js");
|
|
47
|
+
var pagination_1 = require("./pagination/index.js");
|
|
48
|
+
var skeleton_table_1 = require("./skeleton-table/index.js");
|
|
49
|
+
var active_filters_1 = require("./active-filters/index.js");
|
|
50
|
+
var S = __importStar(require("./styles.js"));
|
|
51
51
|
function Table(props) {
|
|
52
52
|
var _a, _b, _c, _d;
|
|
53
53
|
var configs = props.configs, isFetching = props.isFetching, columnsConfiguration = props.columnsConfiguration, tableInformations = props.tableInformations;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { List, Pagination, TableConfiguration } from '../../../../../../../system';
|
|
2
|
-
import { IUseTableProps } from '../../interfaces';
|
|
1
|
+
import { List, Pagination, TableConfiguration } from '../../../../../../../system/index.js';
|
|
2
|
+
import { IUseTableProps } from '../../interfaces.js';
|
|
3
3
|
type colunm = keyof any;
|
|
4
4
|
interface IShowHiden {
|
|
5
5
|
text: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PaginationModel } from '../../../../../../../../system';
|
|
1
|
+
import { PaginationModel } from '../../../../../../../../system/index.js';
|
|
2
2
|
export declare function PaginationTable({ page, endPage, pages, pageSize, totalItems, hasNextPage, hasPreviousPage }: PaginationModel): import("react/jsx-runtime").JSX.Element;
|
|
@@ -26,9 +26,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.PaginationTable = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
28
|
var router_1 = require("next/router");
|
|
29
|
-
var ui_1 = require("../../../../../../../../ui");
|
|
30
|
-
var service_1 = require("./service");
|
|
31
|
-
var S = __importStar(require("./styles"));
|
|
29
|
+
var ui_1 = require("../../../../../../../../ui/index.js");
|
|
30
|
+
var service_1 = require("./service.js");
|
|
31
|
+
var S = __importStar(require("./styles.js"));
|
|
32
32
|
function PaginationTable(_a) {
|
|
33
33
|
var page = _a.page, endPage = _a.endPage, pages = _a.pages, pageSize = _a.pageSize, totalItems = _a.totalItems, hasNextPage = _a.hasNextPage, hasPreviousPage = _a.hasPreviousPage;
|
|
34
34
|
var router = (0, router_1.useRouter)();
|
package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js
CHANGED
|
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.SkeletonTable = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var ui_1 = require("../../../../../../../../ui");
|
|
29
|
-
var S = __importStar(require("./styles"));
|
|
28
|
+
var ui_1 = require("../../../../../../../../ui/index.js");
|
|
29
|
+
var S = __importStar(require("./styles.js"));
|
|
30
30
|
function SkeletonTable() {
|
|
31
31
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'skeleton', children: (0, jsx_runtime_1.jsxs)(S.SkeletonCustom, { "data-testid": 'skeleton', children: [(0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } })] }) }));
|
|
32
32
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ITHeadItemProps } from './interfaces';
|
|
1
|
+
import { ITHeadItemProps } from './interfaces.js';
|
|
2
2
|
export declare function THeadItem({ colunm, disableOrdenationTable }: ITHeadItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -26,8 +26,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.THeadItem = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
28
|
var router_1 = require("next/router");
|
|
29
|
-
var ui_1 = require("../../../../../../../../ui");
|
|
30
|
-
var S = __importStar(require("./styles"));
|
|
29
|
+
var ui_1 = require("../../../../../../../../ui/index.js");
|
|
30
|
+
var S = __importStar(require("./styles.js"));
|
|
31
31
|
function THeadItem(_a) {
|
|
32
32
|
var colunm = _a.colunm, disableOrdenationTable = _a.disableOrdenationTable;
|
|
33
33
|
var router = (0, router_1.useRouter)();
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./query/index.js"), exports);
|
|
18
|
+
__exportStar(require("./component.js"), exports);
|
|
19
|
+
__exportStar(require("./components/index.js"), exports);
|
|
20
|
+
__exportStar(require("./interfaces.js"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Filter, PaginationModel } from '../../../../../system/index.js';
|
|
3
|
+
import { IconsNames, DynamicFormHandlerProps, QueryOptions } from '../../../../../ui/index.js';
|
|
4
|
+
interface Column<T = any> {
|
|
5
|
+
id: keyof T;
|
|
6
|
+
label: string;
|
|
7
|
+
width?: number;
|
|
8
|
+
hasAsc?: boolean;
|
|
9
|
+
enabled?: boolean;
|
|
10
|
+
Component?: {
|
|
11
|
+
Element: (props: {
|
|
12
|
+
[key in keyof T]?: any;
|
|
13
|
+
} & {
|
|
14
|
+
index: number;
|
|
15
|
+
}) => JSX.Element;
|
|
16
|
+
allProps?: boolean;
|
|
17
|
+
props: {
|
|
18
|
+
[key in keyof T]?: any;
|
|
19
|
+
};
|
|
20
|
+
defaultProps?: {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
interface IParamsTable {
|
|
26
|
+
page?: number;
|
|
27
|
+
}
|
|
28
|
+
interface IConfigurationsTable {
|
|
29
|
+
tableData?: any;
|
|
30
|
+
isLoading?: boolean;
|
|
31
|
+
errorMessage: string;
|
|
32
|
+
customFilters?: Filter[];
|
|
33
|
+
disableGetFilter?: boolean;
|
|
34
|
+
disablePagination?: boolean;
|
|
35
|
+
enableSearchInSelf?: boolean;
|
|
36
|
+
pagination?: PaginationModel;
|
|
37
|
+
disableOrdenationTable?: boolean;
|
|
38
|
+
}
|
|
39
|
+
type QueryTable<M = any> = {
|
|
40
|
+
user?: any;
|
|
41
|
+
container?: any;
|
|
42
|
+
Types?: any;
|
|
43
|
+
queryKey: {
|
|
44
|
+
remoteName?: M;
|
|
45
|
+
customKey?: string;
|
|
46
|
+
};
|
|
47
|
+
requireUser?: boolean;
|
|
48
|
+
queryKeyParams?: string;
|
|
49
|
+
dynamicFiltersFromApi?: boolean;
|
|
50
|
+
debugMode?: boolean;
|
|
51
|
+
options?: QueryOptions;
|
|
52
|
+
customRemote?: (params: any) => any;
|
|
53
|
+
};
|
|
54
|
+
type TableActionCreate<T = any> = {
|
|
55
|
+
link?: {
|
|
56
|
+
href: string;
|
|
57
|
+
};
|
|
58
|
+
text?: string;
|
|
59
|
+
icon?: IconsNames;
|
|
60
|
+
} & DynamicFormHandlerProps<T>;
|
|
61
|
+
type TableActionEdit<T = any> = {
|
|
62
|
+
link?: {
|
|
63
|
+
href: (table: {
|
|
64
|
+
[key in keyof T]: string;
|
|
65
|
+
}) => string;
|
|
66
|
+
text: string;
|
|
67
|
+
icon?: IconsNames;
|
|
68
|
+
};
|
|
69
|
+
} & DynamicFormHandlerProps<T>;
|
|
70
|
+
type TableActionDelete<T> = (table: {
|
|
71
|
+
[key in keyof T]: T[key];
|
|
72
|
+
}) => void;
|
|
73
|
+
type FNComponent = (props: any) => JSX.Element;
|
|
74
|
+
type ActionsTable<T = any> = {
|
|
75
|
+
edit?: TableActionEdit<T>;
|
|
76
|
+
create?: TableActionCreate<T>;
|
|
77
|
+
custom?: FNComponent[];
|
|
78
|
+
modalStyles?: React.CSSProperties;
|
|
79
|
+
delete?: TableActionDelete<T>;
|
|
80
|
+
detail?: (table: {
|
|
81
|
+
[key in keyof T]: string;
|
|
82
|
+
}) => string;
|
|
83
|
+
};
|
|
84
|
+
type ColumnsConfiguration<T = any> = {
|
|
85
|
+
columns: Column<T>[];
|
|
86
|
+
actions?: ActionsTable<T>;
|
|
87
|
+
};
|
|
88
|
+
interface IUseTableProps<T = any, M = any> {
|
|
89
|
+
query?: QueryTable<M>;
|
|
90
|
+
configs: IConfigurationsTable;
|
|
91
|
+
columnsConfiguration: ColumnsConfiguration<T>;
|
|
92
|
+
}
|
|
93
|
+
export type { Column, QueryTable, FNComponent, ActionsTable, IParamsTable, IUseTableProps, TableActionEdit, TableActionCreate, TableActionDelete, IConfigurationsTable, ColumnsConfiguration, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { QueryTable } from '../interfaces';
|
|
1
|
+
import { QueryTable } from '../interfaces.js';
|
|
2
2
|
export declare function useGetQueryArgumentsTable(props: QueryTable): QueryTable;
|
|
@@ -13,7 +13,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.useQueryTable = void 0;
|
|
15
15
|
var router_1 = require("next/router");
|
|
16
|
-
var ui_1 = require("../../../../../../ui");
|
|
16
|
+
var ui_1 = require("../../../../../../ui/index.js");
|
|
17
17
|
function useQueryTable(props) {
|
|
18
18
|
var _a;
|
|
19
19
|
var _b = (0, router_1.useRouter)(), query = _b.query, isReady = _b.isReady;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './hook';
|
|
2
|
-
export * from './get-query-arguments-table';
|
|
1
|
+
export * from './hook.js';
|
|
2
|
+
export * from './get-query-arguments-table.js';
|
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./hook"), exports);
|
|
18
|
-
__exportStar(require("./get-query-arguments-table"), exports);
|
|
17
|
+
__exportStar(require("./hook.js"), exports);
|
|
18
|
+
__exportStar(require("./get-query-arguments-table.js"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getChangedParams = void 0;
|
|
4
|
+
var params_list_1 = require("./params-list.js");
|
|
5
|
+
var utils_1 = require("./utils.js");
|
|
6
|
+
function getChangedParams(swiperParams, oldParams, children, oldChildren, getKey) {
|
|
7
|
+
var keys = [];
|
|
8
|
+
if (!oldParams)
|
|
9
|
+
return keys;
|
|
10
|
+
var addKey = function (key) {
|
|
11
|
+
if (keys.indexOf(key) < 0)
|
|
12
|
+
keys.push(key);
|
|
13
|
+
};
|
|
14
|
+
if (children && oldChildren) {
|
|
15
|
+
var oldChildrenKeys = oldChildren.map(getKey);
|
|
16
|
+
var childrenKeys = children.map(getKey);
|
|
17
|
+
if (oldChildrenKeys.join('') !== childrenKeys.join(''))
|
|
18
|
+
addKey('children');
|
|
19
|
+
if (oldChildren.length !== children.length)
|
|
20
|
+
addKey('children');
|
|
21
|
+
}
|
|
22
|
+
var watchParams = params_list_1.paramsList.filter(function (key) { return key[0] === '_'; }).map(function (key) { return key.replace(/_/, ''); });
|
|
23
|
+
watchParams.forEach(function (key) {
|
|
24
|
+
if (key in swiperParams && key in oldParams) {
|
|
25
|
+
if ((0, utils_1.isObject)(swiperParams[key]) && (0, utils_1.isObject)(oldParams[key])) {
|
|
26
|
+
var newKeys = Object.keys(swiperParams[key]);
|
|
27
|
+
var oldKeys = Object.keys(oldParams[key]);
|
|
28
|
+
if (newKeys.length !== oldKeys.length) {
|
|
29
|
+
addKey(key);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
newKeys.forEach(function (newKey) {
|
|
33
|
+
if (swiperParams[key][newKey] !== oldParams[key][newKey]) {
|
|
34
|
+
addKey(key);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
oldKeys.forEach(function (oldKey) {
|
|
38
|
+
if (swiperParams[key][oldKey] !== oldParams[key][oldKey])
|
|
39
|
+
addKey(key);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
else if (swiperParams[key] !== oldParams[key]) {
|
|
44
|
+
addKey(key);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
return keys;
|
|
49
|
+
}
|
|
50
|
+
exports.getChangedParams = getChangedParams;
|
|
51
|
+
//# sourceMappingURL=get-changed-params.js.map
|
|
@@ -0,0 +1,148 @@
|
|
|
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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
14
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
15
|
+
if (ar || !(i in from)) {
|
|
16
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17
|
+
ar[i] = from[i];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
21
|
+
};
|
|
22
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.getParams = void 0;
|
|
27
|
+
//@ts-nocheck
|
|
28
|
+
var utils_1 = require("./utils.js");
|
|
29
|
+
var params_list_1 = require("./params-list.js");
|
|
30
|
+
var defaults_1 = __importDefault(require("../core/defaults.js"));
|
|
31
|
+
var formatValue = function (val) {
|
|
32
|
+
if (parseFloat(val) === Number(val))
|
|
33
|
+
return Number(val);
|
|
34
|
+
if (val === 'true')
|
|
35
|
+
return true;
|
|
36
|
+
if (val === '')
|
|
37
|
+
return true;
|
|
38
|
+
if (val === 'false')
|
|
39
|
+
return false;
|
|
40
|
+
if (val === 'null')
|
|
41
|
+
return null;
|
|
42
|
+
if (val === 'undefined')
|
|
43
|
+
return undefined;
|
|
44
|
+
if (typeof val === 'string' && val.includes('{') && val.includes('}') && val.includes('"')) {
|
|
45
|
+
var v = void 0;
|
|
46
|
+
try {
|
|
47
|
+
v = JSON.parse(val);
|
|
48
|
+
}
|
|
49
|
+
catch (err) {
|
|
50
|
+
v = val;
|
|
51
|
+
}
|
|
52
|
+
return v;
|
|
53
|
+
}
|
|
54
|
+
return val;
|
|
55
|
+
};
|
|
56
|
+
var modulesParamsList = [
|
|
57
|
+
'a11y',
|
|
58
|
+
'autoplay',
|
|
59
|
+
'controller',
|
|
60
|
+
'cards-effect',
|
|
61
|
+
'coverflow-effect',
|
|
62
|
+
'creative-effect',
|
|
63
|
+
'cube-effect',
|
|
64
|
+
'fade-effect',
|
|
65
|
+
'flip-effect',
|
|
66
|
+
'free-mode',
|
|
67
|
+
'grid',
|
|
68
|
+
'hash-navigation',
|
|
69
|
+
'history',
|
|
70
|
+
'keyboard',
|
|
71
|
+
'mousewheel',
|
|
72
|
+
'navigation',
|
|
73
|
+
'pagination',
|
|
74
|
+
'parallax',
|
|
75
|
+
'scrollbar',
|
|
76
|
+
'thumbs',
|
|
77
|
+
'virtual',
|
|
78
|
+
'zoom',
|
|
79
|
+
];
|
|
80
|
+
function getParams(element, propName, propValue) {
|
|
81
|
+
var params = {};
|
|
82
|
+
var passedParams = {};
|
|
83
|
+
(0, utils_1.extend)(params, defaults_1.default);
|
|
84
|
+
var localParamsList = __spreadArray(__spreadArray([], params_list_1.paramsList, true), ['on'], false);
|
|
85
|
+
var allowedParams = localParamsList.map(function (key) { return key.replace(/_/, ''); });
|
|
86
|
+
// First check props
|
|
87
|
+
localParamsList.forEach(function (paramName) {
|
|
88
|
+
paramName = paramName.replace('_', '');
|
|
89
|
+
if (typeof element[paramName] !== 'undefined') {
|
|
90
|
+
passedParams[paramName] = element[paramName];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
// Attributes
|
|
94
|
+
var attrsList = __spreadArray([], element.attributes, true);
|
|
95
|
+
if (typeof propName === 'string' && typeof propValue !== 'undefined') {
|
|
96
|
+
attrsList.push({ name: propName, value: (0, utils_1.isObject)(propValue) ? __assign({}, propValue) : propValue });
|
|
97
|
+
}
|
|
98
|
+
attrsList.forEach(function (attr) {
|
|
99
|
+
var moduleParam = modulesParamsList.filter(function (mParam) { return attr.name.indexOf("".concat(mParam, "-")) === 0; })[0];
|
|
100
|
+
if (moduleParam) {
|
|
101
|
+
var parentObjName = (0, utils_1.attrToProp)(moduleParam);
|
|
102
|
+
var subObjName = (0, utils_1.attrToProp)(attr.name.split("".concat(moduleParam, "-"))[1]);
|
|
103
|
+
if (typeof passedParams[parentObjName] === 'undefined')
|
|
104
|
+
passedParams[parentObjName] = {};
|
|
105
|
+
if (passedParams[parentObjName] === true) {
|
|
106
|
+
passedParams[parentObjName] = { enabled: true };
|
|
107
|
+
}
|
|
108
|
+
passedParams[parentObjName][subObjName] = formatValue(attr.value);
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
var name_1 = (0, utils_1.attrToProp)(attr.name);
|
|
112
|
+
if (!allowedParams.includes(name_1))
|
|
113
|
+
return;
|
|
114
|
+
var value = formatValue(attr.value);
|
|
115
|
+
if (passedParams[name_1] && modulesParamsList.includes(attr.name) && !(0, utils_1.isObject)(value)) {
|
|
116
|
+
if (passedParams[name_1].constructor !== Object) {
|
|
117
|
+
passedParams[name_1] = {};
|
|
118
|
+
}
|
|
119
|
+
passedParams[name_1].enabled = !!value;
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
passedParams[name_1] = value;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
(0, utils_1.extend)(params, passedParams);
|
|
127
|
+
if (params.navigation) {
|
|
128
|
+
params.navigation = __assign({ prevEl: '.swiper-button-prev', nextEl: '.swiper-button-next' }, (params.navigation !== true ? params.navigation : {}));
|
|
129
|
+
}
|
|
130
|
+
else if (params.navigation === false) {
|
|
131
|
+
delete params.navigation;
|
|
132
|
+
}
|
|
133
|
+
if (params.scrollbar) {
|
|
134
|
+
params.scrollbar = __assign({ el: '.swiper-scrollbar' }, (params.scrollbar !== true ? params.scrollbar : {}));
|
|
135
|
+
}
|
|
136
|
+
else if (params.scrollbar === false) {
|
|
137
|
+
delete params.scrollbar;
|
|
138
|
+
}
|
|
139
|
+
if (params.pagination) {
|
|
140
|
+
params.pagination = __assign({ el: '.swiper-pagination' }, (params.pagination !== true ? params.pagination : {}));
|
|
141
|
+
}
|
|
142
|
+
else if (params.pagination === false) {
|
|
143
|
+
delete params.pagination;
|
|
144
|
+
}
|
|
145
|
+
return { params: params, passedParams: passedParams };
|
|
146
|
+
}
|
|
147
|
+
exports.getParams = getParams;
|
|
148
|
+
//# sourceMappingURL=get-element-params.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getParams = void 0;
|
|
7
|
+
//@ts-nocheck
|
|
8
|
+
var utils_1 = require("./utils.js");
|
|
9
|
+
var params_list_1 = require("./params-list.js");
|
|
10
|
+
var defaults_1 = __importDefault(require("../core/defaults.js"));
|
|
11
|
+
function getParams(obj, splitEvents) {
|
|
12
|
+
if (obj === void 0) { obj = {}; }
|
|
13
|
+
if (splitEvents === void 0) { splitEvents = true; }
|
|
14
|
+
var params = {
|
|
15
|
+
on: {},
|
|
16
|
+
};
|
|
17
|
+
var events = {};
|
|
18
|
+
var passedParams = {};
|
|
19
|
+
(0, utils_1.extend)(params, defaults_1.default);
|
|
20
|
+
params._emitClasses = true;
|
|
21
|
+
params.init = false;
|
|
22
|
+
var rest = {};
|
|
23
|
+
var allowedParams = params_list_1.paramsList.map(function (key) { return key.replace(/_/, ''); });
|
|
24
|
+
var plainObj = Object.assign({}, obj);
|
|
25
|
+
Object.keys(plainObj).forEach(function (key) {
|
|
26
|
+
if (typeof obj[key] === 'undefined')
|
|
27
|
+
return;
|
|
28
|
+
if (allowedParams.indexOf(key) >= 0) {
|
|
29
|
+
if ((0, utils_1.isObject)(obj[key])) {
|
|
30
|
+
params[key] = {};
|
|
31
|
+
passedParams[key] = {};
|
|
32
|
+
(0, utils_1.extend)(params[key], obj[key]);
|
|
33
|
+
(0, utils_1.extend)(passedParams[key], obj[key]);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
params[key] = obj[key];
|
|
37
|
+
passedParams[key] = obj[key];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
else if (key.search(/on[A-Z]/) === 0 && typeof obj[key] === 'function') {
|
|
41
|
+
if (splitEvents) {
|
|
42
|
+
events["".concat(key[2].toLowerCase()).concat(key.substr(3))] = obj[key];
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
params.on["".concat(key[2].toLowerCase()).concat(key.substr(3))] = obj[key];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
rest[key] = obj[key];
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
['navigation', 'pagination', 'scrollbar'].forEach(function (key) {
|
|
53
|
+
if (params[key] === true)
|
|
54
|
+
params[key] = {};
|
|
55
|
+
if (params[key] === false)
|
|
56
|
+
delete params[key];
|
|
57
|
+
});
|
|
58
|
+
return { params: params, passedParams: passedParams, rest: rest, events: events };
|
|
59
|
+
}
|
|
60
|
+
exports.getParams = getParams;
|
|
61
|
+
//# sourceMappingURL=get-params.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mountSwiper = void 0;
|
|
4
|
+
var utils_1 = require("./utils.js");
|
|
5
|
+
function mountSwiper(_a, swiperParams) {
|
|
6
|
+
var el = _a.el, nextEl = _a.nextEl, prevEl = _a.prevEl, paginationEl = _a.paginationEl, scrollbarEl = _a.scrollbarEl, swiper = _a.swiper;
|
|
7
|
+
if ((0, utils_1.needsNavigation)(swiperParams) && nextEl && prevEl) {
|
|
8
|
+
swiper.params.navigation.nextEl = nextEl;
|
|
9
|
+
swiper.originalParams.navigation.nextEl = nextEl;
|
|
10
|
+
swiper.params.navigation.prevEl = prevEl;
|
|
11
|
+
swiper.originalParams.navigation.prevEl = prevEl;
|
|
12
|
+
}
|
|
13
|
+
if ((0, utils_1.needsPagination)(swiperParams) && paginationEl) {
|
|
14
|
+
swiper.params.pagination.el = paginationEl;
|
|
15
|
+
swiper.originalParams.pagination.el = paginationEl;
|
|
16
|
+
}
|
|
17
|
+
if ((0, utils_1.needsScrollbar)(swiperParams) && scrollbarEl) {
|
|
18
|
+
swiper.params.scrollbar.el = scrollbarEl;
|
|
19
|
+
swiper.originalParams.scrollbar.el = scrollbarEl;
|
|
20
|
+
}
|
|
21
|
+
swiper.init(el);
|
|
22
|
+
}
|
|
23
|
+
exports.mountSwiper = mountSwiper;
|
|
24
|
+
//# sourceMappingURL=mount-swiper.js.map
|