@alphakits/ui 2.1.0 → 2.1.1
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/__internal/utils/clear-text.js +0 -1
- package/dist/__internal/utils/getDataTestId.js +0 -1
- package/dist/__internal/utils/index.js +0 -1
- package/dist/amount/component.d.ts +0 -12
- package/dist/amount/component.js +0 -1
- package/dist/amount/index.js +0 -1
- package/dist/amount/index.module.css.js +2 -2
- package/dist/amount-input/component.d.ts +0 -67
- package/dist/amount-input/component.js +0 -1
- package/dist/amount-input/index.js +0 -1
- package/dist/amount-input/index.module.css.js +2 -2
- package/dist/amount-input/utils/index.js +0 -1
- package/dist/avatar/component.d.ts +0 -3
- package/dist/avatar/component.js +0 -1
- package/dist/avatar/index.js +0 -1
- package/dist/avatar/index.module.css.js +2 -2
- package/dist/back-button/component.js +0 -1
- package/dist/back-button/index.js +0 -1
- package/dist/back-button/index.module.css.js +2 -2
- package/dist/badge/component.d.ts +0 -24
- package/dist/badge/component.js +0 -1
- package/dist/badge/index.js +0 -1
- package/dist/badge/index.module.css.js +2 -2
- package/dist/base-card/component.d.ts +0 -30
- package/dist/base-card/component.js +0 -1
- package/dist/base-card/index.js +0 -1
- package/dist/base-card/index.module.css.js +2 -2
- package/dist/bottom-sheet/component.js +0 -1
- package/dist/bottom-sheet/index.js +0 -1
- package/dist/bottom-sheet/index.module.css.js +2 -2
- package/dist/box/component.js +0 -1
- package/dist/box/index.js +0 -1
- package/dist/box/index.module.css.js +2 -2
- package/dist/button/component.d.ts +0 -30
- package/dist/button/component.js +0 -1
- package/dist/button/index.js +0 -1
- package/dist/button/index.module.css.js +2 -2
- package/dist/button-arrow/component.js +0 -1
- package/dist/button-arrow/index.js +0 -1
- package/dist/button-arrow/index.module.css.js +2 -2
- package/dist/calendar/component.d.ts +0 -46
- package/dist/calendar/component.js +76 -77
- package/dist/calendar/components/days-table/component.d.ts +0 -18
- package/dist/calendar/components/days-table/component.js +0 -1
- package/dist/calendar/components/days-table/index.js +0 -1
- package/dist/calendar/components/days-table/index.module.css.js +2 -2
- package/dist/calendar/components/header/index.js +0 -1
- package/dist/calendar/components/header/index.module.css.js +2 -2
- package/dist/calendar/components/header//321/201omponent.d.ts +0 -27
- package/dist/calendar/components/header//321/201omponent.js +22 -23
- package/dist/calendar/components/months-table/index.js +0 -1
- package/dist/calendar/components/months-table/index.module.css.js +2 -2
- package/dist/calendar/components/months-table//321/201omponent.d.ts +0 -10
- package/dist/calendar/components/months-table//321/201omponent.js +0 -1
- package/dist/calendar/components/select-button/index.js +0 -1
- package/dist/calendar/components/select-button/index.module.css.js +2 -2
- package/dist/calendar/components/select-button//321/201omponent.d.ts +0 -12
- package/dist/calendar/components/select-button//321/201omponent.js +0 -1
- package/dist/calendar/components/years-table/index.js +0 -1
- package/dist/calendar/components/years-table/index.module.css.js +2 -2
- package/dist/calendar/components/years-table//321/201omponent.d.ts +0 -12
- package/dist/calendar/components/years-table//321/201omponent.js +0 -1
- package/dist/calendar/index.js +0 -1
- package/dist/calendar/index.module.css.js +2 -2
- package/dist/calendar/use-calendar.d.ts +0 -39
- package/dist/calendar/use-calendar.js +0 -1
- package/dist/calendar/use-period.d.ts +0 -9
- package/dist/calendar/use-period.js +0 -1
- package/dist/calendar/utils.d.ts +0 -37
- package/dist/calendar/utils.js +0 -1
- package/dist/calendar-input/component.d.ts +0 -110
- package/dist/calendar-input/component.js +0 -1
- package/dist/calendar-input/index.js +0 -1
- package/dist/calendar-input/index.module.css.js +2 -2
- package/dist/calendar-input/utils.d.ts +0 -3
- package/dist/calendar-input/utils.js +1 -2
- package/dist/card/component.js +0 -1
- package/dist/card/images/index.js +0 -1
- package/dist/card/images/index.module.css.js +2 -2
- package/dist/card/index.js +0 -1
- package/dist/card/index.module.css.js +2 -2
- package/dist/cell/base/component.d.ts +0 -9
- package/dist/cell/base/component.js +1 -2
- package/dist/cell/base/index.module.css.js +2 -2
- package/dist/cell/component.d.ts +0 -11
- package/dist/cell/component.js +0 -1
- package/dist/cell/index.js +0 -1
- package/dist/cell/pure/component.d.ts +0 -12
- package/dist/cell/pure/component.js +0 -1
- package/dist/cell/pure/index.js +0 -1
- package/dist/cell/pure/index.module.css.js +2 -2
- package/dist/checkbox/component.d.ts +0 -60
- package/dist/checkbox/component.js +0 -1
- package/dist/checkbox/index.js +0 -1
- package/dist/checkbox/index.module.css.js +2 -2
- package/dist/checkbox-group/component.js +26 -27
- package/dist/checkbox-group/index.js +0 -1
- package/dist/checkbox-group/index.module.css.js +2 -2
- package/dist/checkbox-lists/component.js +59 -60
- package/dist/checkbox-lists/index.js +0 -1
- package/dist/checkbox-lists/index.module.css.js +2 -2
- package/dist/collapsable-row/addons.js +0 -1
- package/dist/collapsable-row/component.d.ts +0 -15
- package/dist/collapsable-row/component.js +0 -1
- package/dist/collapsable-row/index.js +0 -1
- package/dist/collapsable-row/index.module.css.js +2 -2
- package/dist/collapse/component.d.ts +0 -39
- package/dist/collapse/component.js +55 -57
- package/dist/collapse/index.js +0 -1
- package/dist/collapse/index.module.css.js +2 -2
- package/dist/copy-button/component.js +0 -1
- package/dist/copy-button/index.js +0 -1
- package/dist/copy-button/index.module.css.js +2 -2
- package/dist/date/component.d.ts +0 -166
- package/dist/date/component.js +0 -1
- package/dist/date/index.js +0 -1
- package/dist/date-switcher/component.d.ts +0 -2
- package/dist/date-switcher/component.js +0 -1
- package/dist/date-switcher/index.js +0 -1
- package/dist/date-switcher/index.module.css.js +2 -2
- package/dist/decorated-item/component.d.ts +0 -15
- package/dist/decorated-item/component.js +0 -1
- package/dist/decorated-item/index.js +0 -1
- package/dist/decorated-item/index.module.css.js +2 -2
- package/dist/divider/component.d.ts +0 -12
- package/dist/divider/component.js +0 -1
- package/dist/divider/index.js +0 -1
- package/dist/divider/index.module.css.js +2 -2
- package/dist/dot/component.js +0 -1
- package/dist/dot/index.js +0 -1
- package/dist/dot/index.module.css.js +2 -2
- package/dist/empty-page/component.js +26 -27
- package/dist/empty-page/index.js +0 -1
- package/dist/empty-page/index.module.css.js +2 -2
- package/dist/filter-tag/component.js +0 -1
- package/dist/filter-tag/index.js +0 -1
- package/dist/filter-tag/index.module.css.js +2 -2
- package/dist/flex/component.js +0 -1
- package/dist/flex/index.js +0 -1
- package/dist/flex/index.module.css.js +2 -2
- package/dist/flex-columns/component.d.ts +0 -12
- package/dist/flex-columns/component.js +0 -1
- package/dist/flex-columns/index.js +0 -1
- package/dist/flex-columns/index.module.css.js +2 -2
- package/dist/footer/component.js +0 -1
- package/dist/footer/contact-block.d.ts +0 -6
- package/dist/footer/contact-block.js +0 -1
- package/dist/footer/index.js +0 -1
- package/dist/footer/index.module.css.js +2 -2
- package/dist/form/component.js +73 -74
- package/dist/form/components/form-loading/index.js +0 -1
- package/dist/form/components/form-loading/index.module.css.js +2 -2
- package/dist/form/index.js +0 -1
- package/dist/form/templates/base-form/index.d.ts +0 -1
- package/dist/form/templates/base-form/index.js +0 -1
- package/dist/form/templates/filters-form/index.js +0 -1
- package/dist/form/templates/rest-form/form.js +43 -44
- package/dist/form/templates/rest-form/index.d.ts +0 -2
- package/dist/form/templates/rest-form/index.js +0 -1
- package/dist/form/utils/get-default-values.js +0 -1
- package/dist/form/utils/remove-undefined-from-object.js +0 -1
- package/dist/form-control/component.d.ts +0 -108
- package/dist/form-control/component.js +0 -1
- package/dist/form-control/index.js +0 -1
- package/dist/form-control/index.module.css.js +2 -2
- package/dist/formik/index.d.ts +0 -3
- package/dist/formik/index.js +0 -1
- package/dist/grid/component.js +0 -1
- package/dist/grid/index.js +0 -1
- package/dist/grid/index.module.css.js +2 -2
- package/dist/header-search/component.js +16 -17
- package/dist/header-search/index.js +0 -1
- package/dist/header-search/index.module.css.js +2 -2
- package/dist/hooks/index.js +0 -1
- package/dist/hooks/use-crud-form-requests/index.js +24 -25
- package/dist/hooks/use-get-one/index.js +0 -1
- package/dist/hooks/useClickOutside/index.js +9 -13
- package/dist/hooks/useFocus/index.d.ts +0 -6
- package/dist/hooks/useFocus/index.js +0 -1
- package/dist/hooks/usePrevious/index.js +0 -1
- package/dist/icon-button/component.d.ts +0 -30
- package/dist/icon-button/component.js +0 -1
- package/dist/icon-button/index.js +0 -1
- package/dist/icon-button/index.module.css.js +2 -2
- package/dist/image/component.js +0 -1
- package/dist/image/image-base.js +0 -1
- package/dist/image/index.js +0 -1
- package/dist/image/index.module.css.js +2 -2
- package/dist/image/types.d.ts +0 -31
- package/dist/image/types.js +0 -1
- package/dist/image/use-image-render-component.js +30 -31
- package/dist/image/utils.js +0 -1
- package/dist/image-gallery/component.d.ts +5 -4
- package/dist/image-gallery/component.js +99 -36
- package/dist/image-gallery/index.css +1 -0
- package/dist/image-gallery/index.js +0 -1
- package/dist/image-gallery/index.module.css.js +31 -0
- package/dist/image-uploader/component.js +25 -32
- package/dist/image-uploader/index.js +0 -1
- package/dist/image-uploader/index.module.css.js +2 -2
- package/dist/index.js +0 -1
- package/dist/info-block-header/component.d.ts +0 -2
- package/dist/info-block-header/component.js +0 -1
- package/dist/info-block-header/index.js +0 -1
- package/dist/info-block-header/index.module.css.js +2 -2
- package/dist/info-block-item/component.d.ts +0 -5
- package/dist/info-block-item/component.js +0 -1
- package/dist/info-block-item/index.js +0 -1
- package/dist/info-block-item/index.module.css.js +2 -2
- package/dist/info-block-wrapper/component.d.ts +0 -4
- package/dist/info-block-wrapper/component.js +0 -1
- package/dist/info-block-wrapper/index.js +0 -1
- package/dist/info-block-wrapper/index.module.css.js +2 -2
- package/dist/input/component.d.ts +0 -168
- package/dist/input/component.js +0 -1
- package/dist/input/index.js +0 -1
- package/dist/input/index.module.css.js +2 -2
- package/dist/input-autocomplete/autocomplete-field/index.js +0 -1
- package/dist/input-autocomplete/autocomplete-field/index.module.css.js +2 -2
- package/dist/input-autocomplete/component.d.ts +2 -48
- package/dist/input-autocomplete/component.js +0 -1
- package/dist/input-autocomplete/index.js +0 -1
- package/dist/input-ghost/component.js +0 -1
- package/dist/input-ghost/index.js +0 -1
- package/dist/input-ghost/index.module.css.js +2 -2
- package/dist/link/component.d.ts +0 -60
- package/dist/link/component.js +0 -1
- package/dist/link/index.js +0 -1
- package/dist/link/index.module.css.js +2 -2
- package/dist/list-allert/component.d.ts +0 -12
- package/dist/list-allert/component.js +0 -1
- package/dist/list-allert/index.js +0 -1
- package/dist/list-allert/index.module.css.js +2 -2
- package/dist/loader/component.d.ts +0 -6
- package/dist/loader/component.js +0 -1
- package/dist/loader/index.js +0 -1
- package/dist/loader/index.module.css.js +2 -2
- package/dist/masked-input/component.d.ts +0 -17
- package/dist/masked-input/component.js +0 -1
- package/dist/masked-input/index.js +0 -1
- package/dist/masked-input/index.module.css.js +2 -2
- package/dist/menu/component.js +0 -1
- package/dist/menu/components/content-header/index.js +0 -1
- package/dist/menu/components/content-header/index.module.css.js +2 -2
- package/dist/menu/components/index.js +0 -1
- package/dist/menu/components/menu-avatar/index.js +0 -1
- package/dist/menu/components/menu-avatar/index.module.css.js +2 -2
- package/dist/menu/components/menu-back-button/index.js +0 -1
- package/dist/menu/components/menu-back-button/index.module.css.js +2 -2
- package/dist/menu/components/menu-button/index.js +0 -1
- package/dist/menu/components/menu-button/index.module.css.js +2 -2
- package/dist/menu/components/menu-buttons-list/index.js +16 -18
- package/dist/menu/components/menu-buttons-list/index.module.css.js +2 -2
- package/dist/menu/components/user-button/index.js +0 -1
- package/dist/menu/components/user-button/index.module.css.js +2 -2
- package/dist/menu/hooks/use-menu.js +0 -1
- package/dist/menu/index.js +0 -1
- package/dist/menu/index.module.css.js +2 -2
- package/dist/message/component.d.ts +0 -30
- package/dist/message/component.js +0 -1
- package/dist/message/index.js +0 -1
- package/dist/message/index.module.css.js +2 -2
- package/dist/modal/components/modals/index.js +0 -1
- package/dist/modal/components/modals/index.module.css.js +2 -2
- package/dist/modal/components/modals/modal.js +2 -3
- package/dist/modal/context.js +0 -1
- package/dist/modal/hooks/use-modal.js +11 -13
- package/dist/modal/index.js +0 -1
- package/dist/modal/utils/delete-property-by-id.js +0 -1
- package/dist/modal/utils/is-last.js +0 -1
- package/dist/mq/component.d.ts +0 -9
- package/dist/mq/component.js +1 -2
- package/dist/mq/index.js +0 -1
- package/dist/mq/mq-list.d.ts +0 -1
- package/dist/mq/mq-list.js +0 -1
- package/dist/mq/use-match-media.d.ts +0 -4
- package/dist/mq/use-match-media.js +0 -1
- package/dist/mq/utils.d.ts +0 -16
- package/dist/mq/utils.js +3 -5
- package/dist/notification/component.d.ts +0 -42
- package/dist/notification/component.js +0 -1
- package/dist/notification/index.js +0 -1
- package/dist/notification/index.module.css.js +2 -2
- package/dist/notification/utils/index.js +0 -1
- package/dist/padding/component.d.ts +0 -6
- package/dist/padding/component.js +0 -1
- package/dist/padding/index.js +0 -1
- package/dist/page-container/component.js +0 -1
- package/dist/page-container/index.js +0 -1
- package/dist/page-container/index.module.css.js +2 -2
- package/dist/page-loading/component.js +0 -1
- package/dist/page-loading/index.js +0 -1
- package/dist/page-loading/index.module.css.js +2 -2
- package/dist/page-with-controls/component.js +0 -1
- package/dist/page-with-controls/index.js +0 -1
- package/dist/picker-button/common/index.js +0 -1
- package/dist/picker-button/common/labeled-button/index.js +0 -1
- package/dist/picker-button/common/labeled-button/index.module.css.js +2 -2
- package/dist/picker-button/component.d.ts +0 -6
- package/dist/picker-button/component.js +0 -1
- package/dist/picker-button/field/Component.js +0 -1
- package/dist/picker-button/field/index.js +0 -1
- package/dist/picker-button/field/index.module.css.js +2 -2
- package/dist/picker-button/index.js +0 -1
- package/dist/picker-button/index.module.css.js +2 -2
- package/dist/popover/component.d.ts +0 -51
- package/dist/popover/component.js +49 -51
- package/dist/popover/index.js +0 -1
- package/dist/popover/index.module.css.js +2 -2
- package/dist/portal/component.d.ts +0 -4
- package/dist/portal/component.js +0 -1
- package/dist/portal/index.js +0 -1
- package/dist/portal/utils.js +0 -1
- package/dist/progress-bar/component.js +0 -1
- package/dist/progress-bar/index.js +0 -1
- package/dist/progress-bar/index.module.css.js +2 -2
- package/dist/progress-index/component.js +0 -1
- package/dist/progress-index/index.js +0 -1
- package/dist/progress-index/index.module.css.js +2 -2
- package/dist/radio/component.d.ts +0 -72
- package/dist/radio/component.js +0 -1
- package/dist/radio/index.js +0 -1
- package/dist/radio/index.module.css.js +2 -2
- package/dist/radio-group/component.js +32 -33
- package/dist/radio-group/index.js +0 -1
- package/dist/radio-group/index.module.css.js +2 -2
- package/dist/radio-groups/component.js +22 -23
- package/dist/radio-groups/index.js +0 -1
- package/dist/radio-groups/index.module.css.js +2 -2
- package/dist/section-wrapper/component.d.ts +0 -12
- package/dist/section-wrapper/component.js +0 -1
- package/dist/section-wrapper/index.js +0 -1
- package/dist/section-wrapper/index.module.css.js +2 -2
- package/dist/select/component.d.ts +0 -2
- package/dist/select/component.js +34 -38
- package/dist/select/components/arrow/component.js +0 -1
- package/dist/select/components/arrow/index.js +0 -1
- package/dist/select/components/arrow/index.module.css.js +2 -2
- package/dist/select/components/base-select/component.js +240 -252
- package/dist/select/components/base-select/index.js +0 -1
- package/dist/select/components/base-select/index.module.css.js +2 -2
- package/dist/select/components/checkmark/component.js +0 -1
- package/dist/select/components/checkmark/index.js +0 -1
- package/dist/select/components/checkmark/index.module.css.js +2 -2
- package/dist/select/components/field/component.js +0 -1
- package/dist/select/components/field/index.js +0 -1
- package/dist/select/components/field/index.module.css.js +2 -2
- package/dist/select/components/index.js +0 -1
- package/dist/select/components/native-select/component.d.ts +0 -12
- package/dist/select/components/native-select/component.js +0 -1
- package/dist/select/components/native-select/index.js +0 -1
- package/dist/select/components/optgroup/component.js +0 -1
- package/dist/select/components/optgroup/index.js +0 -1
- package/dist/select/components/optgroup/index.module.css.js +2 -2
- package/dist/select/components/option/component.js +24 -25
- package/dist/select/components/option/index.js +0 -1
- package/dist/select/components/option/index.module.css.js +2 -2
- package/dist/select/components/options-list/component.js +24 -25
- package/dist/select/components/options-list/index.js +0 -1
- package/dist/select/components/options-list/index.module.css.js +2 -2
- package/dist/select/components/select-search/index.js +62 -64
- package/dist/select/components/select-search/index.module.css.js +2 -2
- package/dist/select/components/virtual-options-list/component.d.ts +0 -3
- package/dist/select/components/virtual-options-list/component.js +0 -1
- package/dist/select/components/virtual-options-list/index.js +0 -1
- package/dist/select/components/virtual-options-list/index.module.css.js +2 -2
- package/dist/select/index.js +0 -1
- package/dist/select/presets/index.js +0 -1
- package/dist/select/presets/use-lazy-loading/index.d.ts +0 -12
- package/dist/select/presets/use-lazy-loading/index.js +66 -72
- package/dist/select/presets/use-select-with-loading/hook.js +0 -1
- package/dist/select/presets/use-select-with-loading/index.module.css.js +2 -2
- package/dist/select/typings.d.ts +0 -305
- package/dist/select/utils.d.ts +0 -15
- package/dist/select/utils.js +0 -1
- package/dist/sidepanel/component.js +0 -1
- package/dist/sidepanel/index.js +0 -1
- package/dist/sidepanel/index.module.css.js +2 -2
- package/dist/sidepanel-header/component.d.ts +0 -15
- package/dist/sidepanel-header/component.js +0 -1
- package/dist/sidepanel-header/index.js +0 -1
- package/dist/sidepanel-header/index.module.css.js +2 -2
- package/dist/skeleton/component.d.ts +0 -12
- package/dist/skeleton/component.js +0 -1
- package/dist/skeleton/index.js +0 -1
- package/dist/skeleton/index.module.css.js +2 -2
- package/dist/space/Item.js +0 -1
- package/dist/space/component.d.ts +0 -30
- package/dist/space/component.js +0 -1
- package/dist/space/index.js +0 -1
- package/dist/space/index.module.css.js +2 -2
- package/dist/space/utils.js +0 -1
- package/dist/spinner/component.d.ts +0 -18
- package/dist/spinner/component.js +0 -1
- package/dist/spinner/index.js +0 -1
- package/dist/spinner/index.module.css.js +2 -2
- package/dist/stack/component.d.ts +0 -8
- package/dist/stack/component.js +0 -1
- package/dist/stack/context.d.ts +0 -19
- package/dist/stack/context.js +0 -1
- package/dist/stack/index.js +0 -1
- package/dist/status/component.d.ts +0 -18
- package/dist/status/component.js +0 -1
- package/dist/status/index.js +0 -1
- package/dist/status/index.module.css.js +2 -2
- package/dist/stepped-progress-bar/components/step-bar.js +0 -1
- package/dist/stepped-progress-bar/index.d.ts +0 -18
- package/dist/stepped-progress-bar/index.js +18 -19
- package/dist/stepped-progress-bar/index.module.css.js +2 -2
- package/dist/sticker/component.d.ts +0 -12
- package/dist/sticker/component.js +0 -1
- package/dist/sticker/index.js +0 -1
- package/dist/sticker/index.module.css.js +2 -2
- package/dist/suffix-input/component.d.ts +0 -33
- package/dist/suffix-input/component.js +0 -1
- package/dist/suffix-input/index.js +0 -1
- package/dist/suffix-input/index.module.css.js +2 -2
- package/dist/super-list-header/component.d.ts +0 -5
- package/dist/super-list-header/component.js +0 -1
- package/dist/super-list-header/index.js +0 -1
- package/dist/super-list-header/index.module.css.js +2 -2
- package/dist/super-list-item/component.d.ts +0 -15
- package/dist/super-list-item/component.js +0 -1
- package/dist/super-list-item/index.js +0 -1
- package/dist/super-list-item/index.module.css.js +2 -2
- package/dist/switch/component.d.ts +0 -54
- package/dist/switch/component.js +0 -1
- package/dist/switch/index.js +0 -1
- package/dist/switch/index.module.css.js +2 -2
- package/dist/table/columns.js +0 -1
- package/dist/table/component.js +0 -1
- package/dist/table/components/cell/component.d.ts +0 -3
- package/dist/table/components/cell/component.js +36 -37
- package/dist/table/components/cell/index.js +0 -1
- package/dist/table/components/cell/index.module.css.js +2 -2
- package/dist/table/components/cells/index.js +0 -1
- package/dist/table/components/cells/index.module.css.js +2 -2
- package/dist/table/components/empty-list/index.js +0 -1
- package/dist/table/components/empty-list/index.module.css.js +2 -2
- package/dist/table/components/error/index.js +0 -1
- package/dist/table/components/error/index.module.css.js +2 -2
- package/dist/table/components/loading/index.js +0 -1
- package/dist/table/components/loading/index.module.css.js +2 -2
- package/dist/table/components/pagination/index.js +0 -1
- package/dist/table/components/pagination/index.module.css.js +2 -2
- package/dist/table/components/table-header/index.js +61 -62
- package/dist/table/components/table-header/index.module.css.js +2 -2
- package/dist/table/hooks/use-table-data.d.ts +0 -1
- package/dist/table/hooks/use-table-data.js +68 -74
- package/dist/table/index.js +0 -1
- package/dist/table/index.module.css.js +2 -2
- package/dist/table/languages/index.js +0 -1
- package/dist/table/table.d.ts +0 -1
- package/dist/table/table.js +115 -116
- package/dist/table/utils/add-query-param.js +0 -1
- package/dist/table/utils/get-query-from-url.js +0 -1
- package/dist/table/utils/get-tags.js +0 -1
- package/dist/table/utils/index.js +0 -1
- package/dist/table/utils/is-object.js +0 -1
- package/dist/table/utils/parse-query-params.js +0 -1
- package/dist/table/utils/prepare-rows.js +40 -42
- package/dist/table/utils/query-adapter.js +0 -1
- package/dist/table/utils/remove-query-param.js +0 -1
- package/dist/table/utils/reset-query-param.js +0 -1
- package/dist/table/utils/serialize-data.js +7 -9
- package/dist/table/utils/set-query-to-url.js +0 -1
- package/dist/table/utils/sort-array.js +0 -1
- package/dist/table-status/component.js +0 -1
- package/dist/table-status/index.js +0 -1
- package/dist/table-status/index.module.css.js +2 -2
- package/dist/tag/component.d.ts +0 -6
- package/dist/tag/component.js +0 -1
- package/dist/tag/index.js +0 -1
- package/dist/tag/index.module.css.js +2 -2
- package/dist/tags-list/component.js +9 -10
- package/dist/tags-list/index.js +0 -1
- package/dist/tags-list/index.module.css.js +2 -2
- package/dist/textarea/component.d.ts +0 -144
- package/dist/textarea/component.js +59 -60
- package/dist/textarea/index.js +0 -1
- package/dist/textarea/index.module.css.js +2 -2
- package/dist/theme-provider/component.js +2 -3
- package/dist/theme-provider/default-themes.js +0 -1
- package/dist/theme-provider/index.js +0 -1
- package/dist/toast/component.d.ts +1 -29
- package/dist/toast/component.js +0 -1
- package/dist/toast/index.js +0 -1
- package/dist/toast/index.module.css.js +2 -2
- package/dist/toast-notifier/component.d.ts +0 -15
- package/dist/toast-notifier/component.js +27 -28
- package/dist/toast-notifier/index.js +0 -1
- package/dist/toast-notifier/index.module.css.js +2 -2
- package/dist/toast-notifier/use-timer.js +0 -1
- package/dist/toast-plate/component.d.ts +0 -66
- package/dist/toast-plate/component.js +0 -1
- package/dist/toast-plate/index.js +0 -1
- package/dist/toast-plate/index.module.css.js +2 -2
- package/dist/tooltip/component.d.ts +0 -49
- package/dist/tooltip/component.js +0 -1
- package/dist/tooltip/index.js +0 -1
- package/dist/tooltip/index.module.css.js +2 -2
- package/dist/tooltip/node-resolver.d.ts +0 -19
- package/dist/tooltip/node-resolver.js +8 -10
- package/dist/typography/colors.js +0 -1
- package/dist/typography/colors.module.css.js +2 -2
- package/dist/typography/component.js +0 -1
- package/dist/typography/index.js +0 -1
- package/dist/typography/text/component.d.ts +0 -21
- package/dist/typography/text/component.js +0 -1
- package/dist/typography/text/index.js +0 -1
- package/dist/typography/text/index.module.css.js +2 -2
- package/dist/typography/title/common.module.css.js +2 -2
- package/dist/typography/title/component.d.ts +0 -24
- package/dist/typography/title/component.js +0 -1
- package/dist/typography/title/index.js +0 -1
- package/dist/typography/title/index.module.css.js +2 -2
- package/dist/utils/data/currency-codes.js +0 -1
- package/dist/utils/date/index.d.ts +0 -10
- package/dist/utils/date/index.js +120 -125
- package/dist/utils/debounce.d.ts +0 -3
- package/dist/utils/debounce.js +0 -1
- package/dist/utils/format-amount/util.d.ts +0 -3
- package/dist/utils/format-amount/util.js +0 -1
- package/dist/utils/format-date/index.js +11 -13
- package/dist/utils/get-currency-symbol/util.d.ts +0 -5
- package/dist/utils/get-currency-symbol/util.js +0 -1
- package/dist/utils/get-service-error/index.d.ts +0 -4
- package/dist/utils/get-service-error/index.js +1 -2
- package/dist/utils/get-service-error/is-axios-error.d.ts +0 -4
- package/dist/utils/get-service-error/is-axios-error.js +0 -1
- package/dist/utils/get-service-error/is-network-error.d.ts +0 -4
- package/dist/utils/get-service-error/is-network-error.js +1 -2
- package/dist/utils/index.js +0 -1
- package/dist/utils/safe-stringify.d.ts +0 -1
- package/dist/utils/safe-stringify.js +1 -2
- package/dist/utils/show-toast/index.js +0 -1
- package/dist/utils/split-amount/util.d.ts +0 -10
- package/dist/utils/split-amount/util.js +0 -1
- package/dist/utils/string.d.ts +0 -1
- package/dist/utils/string.js +0 -1
- package/dist/welcome-layout/component.d.ts +0 -15
- package/dist/welcome-layout/component.js +0 -1
- package/dist/welcome-layout/index.js +0 -1
- package/dist/welcome-layout/index.module.css.js +2 -2
- package/dist/with-suffix/component.d.ts +0 -14
- package/dist/with-suffix/component.js +0 -1
- package/dist/with-suffix/index.js +0 -1
- package/dist/with-suffix/index.module.css.js +2 -2
- package/package.json +1 -2
- package/dist/__internal/utils/clear-text.js.map +0 -1
- package/dist/__internal/utils/getDataTestId.js.map +0 -1
- package/dist/__internal/utils/index.js.map +0 -1
- package/dist/amount/component.js.map +0 -1
- package/dist/amount/index.js.map +0 -1
- package/dist/amount/index.module.css.js.map +0 -1
- package/dist/amount-input/component.js.map +0 -1
- package/dist/amount-input/index.js.map +0 -1
- package/dist/amount-input/index.module.css.js.map +0 -1
- package/dist/amount-input/utils/index.js.map +0 -1
- package/dist/avatar/component.js.map +0 -1
- package/dist/avatar/index.js.map +0 -1
- package/dist/avatar/index.module.css.js.map +0 -1
- package/dist/back-button/component.js.map +0 -1
- package/dist/back-button/index.js.map +0 -1
- package/dist/back-button/index.module.css.js.map +0 -1
- package/dist/badge/component.js.map +0 -1
- package/dist/badge/index.js.map +0 -1
- package/dist/badge/index.module.css.js.map +0 -1
- package/dist/base-card/component.js.map +0 -1
- package/dist/base-card/index.js.map +0 -1
- package/dist/base-card/index.module.css.js.map +0 -1
- package/dist/bottom-sheet/component.js.map +0 -1
- package/dist/bottom-sheet/index.js.map +0 -1
- package/dist/bottom-sheet/index.module.css.js.map +0 -1
- package/dist/box/component.js.map +0 -1
- package/dist/box/index.js.map +0 -1
- package/dist/box/index.module.css.js.map +0 -1
- package/dist/button/component.js.map +0 -1
- package/dist/button/index.js.map +0 -1
- package/dist/button/index.module.css.js.map +0 -1
- package/dist/button-arrow/component.js.map +0 -1
- package/dist/button-arrow/index.js.map +0 -1
- package/dist/button-arrow/index.module.css.js.map +0 -1
- package/dist/calendar/component.js.map +0 -1
- package/dist/calendar/components/days-table/component.js.map +0 -1
- package/dist/calendar/components/days-table/index.js.map +0 -1
- package/dist/calendar/components/days-table/index.module.css.js.map +0 -1
- package/dist/calendar/components/header/index.js.map +0 -1
- package/dist/calendar/components/header/index.module.css.js.map +0 -1
- package/dist/calendar/components/header//321/201omponent.js.map +0 -1
- package/dist/calendar/components/months-table/index.js.map +0 -1
- package/dist/calendar/components/months-table/index.module.css.js.map +0 -1
- package/dist/calendar/components/months-table//321/201omponent.js.map +0 -1
- package/dist/calendar/components/select-button/index.js.map +0 -1
- package/dist/calendar/components/select-button/index.module.css.js.map +0 -1
- package/dist/calendar/components/select-button//321/201omponent.js.map +0 -1
- package/dist/calendar/components/years-table/index.js.map +0 -1
- package/dist/calendar/components/years-table/index.module.css.js.map +0 -1
- package/dist/calendar/components/years-table//321/201omponent.js.map +0 -1
- package/dist/calendar/index.js.map +0 -1
- package/dist/calendar/index.module.css.js.map +0 -1
- package/dist/calendar/use-calendar.js.map +0 -1
- package/dist/calendar/use-period.js.map +0 -1
- package/dist/calendar/utils.js.map +0 -1
- package/dist/calendar-input/component.js.map +0 -1
- package/dist/calendar-input/index.js.map +0 -1
- package/dist/calendar-input/index.module.css.js.map +0 -1
- package/dist/calendar-input/utils.js.map +0 -1
- package/dist/card/component.js.map +0 -1
- package/dist/card/images/index.js.map +0 -1
- package/dist/card/images/index.module.css.js.map +0 -1
- package/dist/card/index.js.map +0 -1
- package/dist/card/index.module.css.js.map +0 -1
- package/dist/cell/base/component.js.map +0 -1
- package/dist/cell/base/index.module.css.js.map +0 -1
- package/dist/cell/component.js.map +0 -1
- package/dist/cell/index.js.map +0 -1
- package/dist/cell/pure/component.js.map +0 -1
- package/dist/cell/pure/index.js.map +0 -1
- package/dist/cell/pure/index.module.css.js.map +0 -1
- package/dist/checkbox/component.js.map +0 -1
- package/dist/checkbox/index.js.map +0 -1
- package/dist/checkbox/index.module.css.js.map +0 -1
- package/dist/checkbox-group/component.js.map +0 -1
- package/dist/checkbox-group/index.js.map +0 -1
- package/dist/checkbox-group/index.module.css.js.map +0 -1
- package/dist/checkbox-lists/component.js.map +0 -1
- package/dist/checkbox-lists/index.js.map +0 -1
- package/dist/checkbox-lists/index.module.css.js.map +0 -1
- package/dist/collapsable-row/addons.js.map +0 -1
- package/dist/collapsable-row/component.js.map +0 -1
- package/dist/collapsable-row/index.js.map +0 -1
- package/dist/collapsable-row/index.module.css.js.map +0 -1
- package/dist/collapse/component.js.map +0 -1
- package/dist/collapse/index.js.map +0 -1
- package/dist/collapse/index.module.css.js.map +0 -1
- package/dist/copy-button/component.js.map +0 -1
- package/dist/copy-button/index.js.map +0 -1
- package/dist/copy-button/index.module.css.js.map +0 -1
- package/dist/date/component.js.map +0 -1
- package/dist/date/index.js.map +0 -1
- package/dist/date-switcher/component.js.map +0 -1
- package/dist/date-switcher/index.js.map +0 -1
- package/dist/date-switcher/index.module.css.js.map +0 -1
- package/dist/decorated-item/component.js.map +0 -1
- package/dist/decorated-item/index.js.map +0 -1
- package/dist/decorated-item/index.module.css.js.map +0 -1
- package/dist/divider/component.js.map +0 -1
- package/dist/divider/index.js.map +0 -1
- package/dist/divider/index.module.css.js.map +0 -1
- package/dist/dot/component.js.map +0 -1
- package/dist/dot/index.js.map +0 -1
- package/dist/dot/index.module.css.js.map +0 -1
- package/dist/empty-page/component.js.map +0 -1
- package/dist/empty-page/index.js.map +0 -1
- package/dist/empty-page/index.module.css.js.map +0 -1
- package/dist/filter-tag/component.js.map +0 -1
- package/dist/filter-tag/index.js.map +0 -1
- package/dist/filter-tag/index.module.css.js.map +0 -1
- package/dist/flex/component.js.map +0 -1
- package/dist/flex/index.js.map +0 -1
- package/dist/flex/index.module.css.js.map +0 -1
- package/dist/flex-columns/component.js.map +0 -1
- package/dist/flex-columns/index.js.map +0 -1
- package/dist/flex-columns/index.module.css.js.map +0 -1
- package/dist/footer/component.js.map +0 -1
- package/dist/footer/contact-block.js.map +0 -1
- package/dist/footer/index.js.map +0 -1
- package/dist/footer/index.module.css.js.map +0 -1
- package/dist/form/component.js.map +0 -1
- package/dist/form/components/form-loading/index.js.map +0 -1
- package/dist/form/components/form-loading/index.module.css.js.map +0 -1
- package/dist/form/index.js.map +0 -1
- package/dist/form/templates/base-form/index.js.map +0 -1
- package/dist/form/templates/filters-form/index.js.map +0 -1
- package/dist/form/templates/rest-form/form.js.map +0 -1
- package/dist/form/templates/rest-form/index.js.map +0 -1
- package/dist/form/utils/get-default-values.js.map +0 -1
- package/dist/form/utils/remove-undefined-from-object.js.map +0 -1
- package/dist/form-control/component.js.map +0 -1
- package/dist/form-control/index.js.map +0 -1
- package/dist/form-control/index.module.css.js.map +0 -1
- package/dist/formik/index.js.map +0 -1
- package/dist/grid/component.js.map +0 -1
- package/dist/grid/index.js.map +0 -1
- package/dist/grid/index.module.css.js.map +0 -1
- package/dist/header-search/component.js.map +0 -1
- package/dist/header-search/index.js.map +0 -1
- package/dist/header-search/index.module.css.js.map +0 -1
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/use-crud-form-requests/index.js.map +0 -1
- package/dist/hooks/use-get-one/index.js.map +0 -1
- package/dist/hooks/useClickOutside/index.js.map +0 -1
- package/dist/hooks/useFocus/index.js.map +0 -1
- package/dist/hooks/usePrevious/index.js.map +0 -1
- package/dist/icon-button/component.js.map +0 -1
- package/dist/icon-button/index.js.map +0 -1
- package/dist/icon-button/index.module.css.js.map +0 -1
- package/dist/image/component.js.map +0 -1
- package/dist/image/image-base.js.map +0 -1
- package/dist/image/index.js.map +0 -1
- package/dist/image/index.module.css.js.map +0 -1
- package/dist/image/types.js.map +0 -1
- package/dist/image/use-image-render-component.js.map +0 -1
- package/dist/image/utils.js.map +0 -1
- package/dist/image-gallery/component.js.map +0 -1
- package/dist/image-gallery/index.js.map +0 -1
- package/dist/image-uploader/component.js.map +0 -1
- package/dist/image-uploader/index.js.map +0 -1
- package/dist/image-uploader/index.module.css.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/info-block-header/component.js.map +0 -1
- package/dist/info-block-header/index.js.map +0 -1
- package/dist/info-block-header/index.module.css.js.map +0 -1
- package/dist/info-block-item/component.js.map +0 -1
- package/dist/info-block-item/index.js.map +0 -1
- package/dist/info-block-item/index.module.css.js.map +0 -1
- package/dist/info-block-wrapper/component.js.map +0 -1
- package/dist/info-block-wrapper/index.js.map +0 -1
- package/dist/info-block-wrapper/index.module.css.js.map +0 -1
- package/dist/input/component.js.map +0 -1
- package/dist/input/index.js.map +0 -1
- package/dist/input/index.module.css.js.map +0 -1
- package/dist/input-autocomplete/autocomplete-field/index.js.map +0 -1
- package/dist/input-autocomplete/autocomplete-field/index.module.css.js.map +0 -1
- package/dist/input-autocomplete/component.js.map +0 -1
- package/dist/input-autocomplete/index.js.map +0 -1
- package/dist/input-ghost/component.js.map +0 -1
- package/dist/input-ghost/index.js.map +0 -1
- package/dist/input-ghost/index.module.css.js.map +0 -1
- package/dist/link/component.js.map +0 -1
- package/dist/link/index.js.map +0 -1
- package/dist/link/index.module.css.js.map +0 -1
- package/dist/list-allert/component.js.map +0 -1
- package/dist/list-allert/index.js.map +0 -1
- package/dist/list-allert/index.module.css.js.map +0 -1
- package/dist/loader/component.js.map +0 -1
- package/dist/loader/index.js.map +0 -1
- package/dist/loader/index.module.css.js.map +0 -1
- package/dist/masked-input/component.js.map +0 -1
- package/dist/masked-input/index.js.map +0 -1
- package/dist/masked-input/index.module.css.js.map +0 -1
- package/dist/menu/component.js.map +0 -1
- package/dist/menu/components/content-header/index.js.map +0 -1
- package/dist/menu/components/content-header/index.module.css.js.map +0 -1
- package/dist/menu/components/index.js.map +0 -1
- package/dist/menu/components/menu-avatar/index.js.map +0 -1
- package/dist/menu/components/menu-avatar/index.module.css.js.map +0 -1
- package/dist/menu/components/menu-back-button/index.js.map +0 -1
- package/dist/menu/components/menu-back-button/index.module.css.js.map +0 -1
- package/dist/menu/components/menu-button/index.js.map +0 -1
- package/dist/menu/components/menu-button/index.module.css.js.map +0 -1
- package/dist/menu/components/menu-buttons-list/index.js.map +0 -1
- package/dist/menu/components/menu-buttons-list/index.module.css.js.map +0 -1
- package/dist/menu/components/user-button/index.js.map +0 -1
- package/dist/menu/components/user-button/index.module.css.js.map +0 -1
- package/dist/menu/hooks/use-menu.js.map +0 -1
- package/dist/menu/index.js.map +0 -1
- package/dist/menu/index.module.css.js.map +0 -1
- package/dist/message/component.js.map +0 -1
- package/dist/message/index.js.map +0 -1
- package/dist/message/index.module.css.js.map +0 -1
- package/dist/modal/components/modals/index.js.map +0 -1
- package/dist/modal/components/modals/index.module.css.js.map +0 -1
- package/dist/modal/components/modals/modal.js.map +0 -1
- package/dist/modal/context.js.map +0 -1
- package/dist/modal/hooks/use-modal.js.map +0 -1
- package/dist/modal/index.js.map +0 -1
- package/dist/modal/types.js +0 -2
- package/dist/modal/types.js.map +0 -1
- package/dist/modal/utils/delete-property-by-id.js.map +0 -1
- package/dist/modal/utils/is-last.js.map +0 -1
- package/dist/mq/component.js.map +0 -1
- package/dist/mq/index.js.map +0 -1
- package/dist/mq/mq-list.js.map +0 -1
- package/dist/mq/use-match-media.js.map +0 -1
- package/dist/mq/utils.js.map +0 -1
- package/dist/notification/component.js.map +0 -1
- package/dist/notification/index.js.map +0 -1
- package/dist/notification/index.module.css.js.map +0 -1
- package/dist/notification/utils/index.js.map +0 -1
- package/dist/padding/component.js.map +0 -1
- package/dist/padding/index.js.map +0 -1
- package/dist/page-container/component.js.map +0 -1
- package/dist/page-container/index.js.map +0 -1
- package/dist/page-container/index.module.css.js.map +0 -1
- package/dist/page-loading/component.js.map +0 -1
- package/dist/page-loading/index.js.map +0 -1
- package/dist/page-loading/index.module.css.js.map +0 -1
- package/dist/page-with-controls/component.js.map +0 -1
- package/dist/page-with-controls/index.js.map +0 -1
- package/dist/picker-button/common/index.js.map +0 -1
- package/dist/picker-button/common/labeled-button/index.js.map +0 -1
- package/dist/picker-button/common/labeled-button/index.module.css.js.map +0 -1
- package/dist/picker-button/component.js.map +0 -1
- package/dist/picker-button/field/Component.js.map +0 -1
- package/dist/picker-button/field/index.js.map +0 -1
- package/dist/picker-button/field/index.module.css.js.map +0 -1
- package/dist/picker-button/index.js.map +0 -1
- package/dist/picker-button/index.module.css.js.map +0 -1
- package/dist/popover/component.js.map +0 -1
- package/dist/popover/index.js.map +0 -1
- package/dist/popover/index.module.css.js.map +0 -1
- package/dist/portal/component.js.map +0 -1
- package/dist/portal/index.js.map +0 -1
- package/dist/portal/utils.js.map +0 -1
- package/dist/progress-bar/component.js.map +0 -1
- package/dist/progress-bar/index.js.map +0 -1
- package/dist/progress-bar/index.module.css.js.map +0 -1
- package/dist/progress-index/component.js.map +0 -1
- package/dist/progress-index/index.js.map +0 -1
- package/dist/progress-index/index.module.css.js.map +0 -1
- package/dist/radio/component.js.map +0 -1
- package/dist/radio/index.js.map +0 -1
- package/dist/radio/index.module.css.js.map +0 -1
- package/dist/radio-group/component.js.map +0 -1
- package/dist/radio-group/index.js.map +0 -1
- package/dist/radio-group/index.module.css.js.map +0 -1
- package/dist/radio-groups/component.js.map +0 -1
- package/dist/radio-groups/index.js.map +0 -1
- package/dist/radio-groups/index.module.css.js.map +0 -1
- package/dist/section-wrapper/component.js.map +0 -1
- package/dist/section-wrapper/index.js.map +0 -1
- package/dist/section-wrapper/index.module.css.js.map +0 -1
- package/dist/select/component.js.map +0 -1
- package/dist/select/components/arrow/component.js.map +0 -1
- package/dist/select/components/arrow/index.js.map +0 -1
- package/dist/select/components/arrow/index.module.css.js.map +0 -1
- package/dist/select/components/base-select/component.js.map +0 -1
- package/dist/select/components/base-select/index.js.map +0 -1
- package/dist/select/components/base-select/index.module.css.js.map +0 -1
- package/dist/select/components/checkmark/component.js.map +0 -1
- package/dist/select/components/checkmark/index.js.map +0 -1
- package/dist/select/components/checkmark/index.module.css.js.map +0 -1
- package/dist/select/components/field/component.js.map +0 -1
- package/dist/select/components/field/index.js.map +0 -1
- package/dist/select/components/field/index.module.css.js.map +0 -1
- package/dist/select/components/index.js.map +0 -1
- package/dist/select/components/native-select/component.js.map +0 -1
- package/dist/select/components/native-select/index.js.map +0 -1
- package/dist/select/components/optgroup/component.js.map +0 -1
- package/dist/select/components/optgroup/index.js.map +0 -1
- package/dist/select/components/optgroup/index.module.css.js.map +0 -1
- package/dist/select/components/option/component.js.map +0 -1
- package/dist/select/components/option/index.js.map +0 -1
- package/dist/select/components/option/index.module.css.js.map +0 -1
- package/dist/select/components/options-list/component.js.map +0 -1
- package/dist/select/components/options-list/index.js.map +0 -1
- package/dist/select/components/options-list/index.module.css.js.map +0 -1
- package/dist/select/components/select-search/index.js.map +0 -1
- package/dist/select/components/select-search/index.module.css.js.map +0 -1
- package/dist/select/components/virtual-options-list/component.js.map +0 -1
- package/dist/select/components/virtual-options-list/index.js.map +0 -1
- package/dist/select/components/virtual-options-list/index.module.css.js.map +0 -1
- package/dist/select/index.js.map +0 -1
- package/dist/select/presets/index.js.map +0 -1
- package/dist/select/presets/use-lazy-loading/index.js.map +0 -1
- package/dist/select/presets/use-select-with-loading/hook.js.map +0 -1
- package/dist/select/presets/use-select-with-loading/index.module.css.js.map +0 -1
- package/dist/select/utils.js.map +0 -1
- package/dist/sidepanel/component.js.map +0 -1
- package/dist/sidepanel/index.js.map +0 -1
- package/dist/sidepanel/index.module.css.js.map +0 -1
- package/dist/sidepanel-header/component.js.map +0 -1
- package/dist/sidepanel-header/index.js.map +0 -1
- package/dist/sidepanel-header/index.module.css.js.map +0 -1
- package/dist/skeleton/component.js.map +0 -1
- package/dist/skeleton/index.js.map +0 -1
- package/dist/skeleton/index.module.css.js.map +0 -1
- package/dist/space/Item.js.map +0 -1
- package/dist/space/component.js.map +0 -1
- package/dist/space/index.js.map +0 -1
- package/dist/space/index.module.css.js.map +0 -1
- package/dist/space/utils.js.map +0 -1
- package/dist/spinner/component.js.map +0 -1
- package/dist/spinner/index.js.map +0 -1
- package/dist/spinner/index.module.css.js.map +0 -1
- package/dist/stack/component.js.map +0 -1
- package/dist/stack/context.js.map +0 -1
- package/dist/stack/index.js.map +0 -1
- package/dist/status/component.js.map +0 -1
- package/dist/status/index.js.map +0 -1
- package/dist/status/index.module.css.js.map +0 -1
- package/dist/stepped-progress-bar/components/step-bar.js.map +0 -1
- package/dist/stepped-progress-bar/index.js.map +0 -1
- package/dist/stepped-progress-bar/index.module.css.js.map +0 -1
- package/dist/sticker/component.js.map +0 -1
- package/dist/sticker/index.js.map +0 -1
- package/dist/sticker/index.module.css.js.map +0 -1
- package/dist/suffix-input/component.js.map +0 -1
- package/dist/suffix-input/index.js.map +0 -1
- package/dist/suffix-input/index.module.css.js.map +0 -1
- package/dist/super-list-header/component.js.map +0 -1
- package/dist/super-list-header/index.js.map +0 -1
- package/dist/super-list-header/index.module.css.js.map +0 -1
- package/dist/super-list-item/component.js.map +0 -1
- package/dist/super-list-item/index.js.map +0 -1
- package/dist/super-list-item/index.module.css.js.map +0 -1
- package/dist/switch/component.js.map +0 -1
- package/dist/switch/index.js.map +0 -1
- package/dist/switch/index.module.css.js.map +0 -1
- package/dist/table/columns.js.map +0 -1
- package/dist/table/component.js.map +0 -1
- package/dist/table/components/cell/component.js.map +0 -1
- package/dist/table/components/cell/index.js.map +0 -1
- package/dist/table/components/cell/index.module.css.js.map +0 -1
- package/dist/table/components/cells/index.js.map +0 -1
- package/dist/table/components/cells/index.module.css.js.map +0 -1
- package/dist/table/components/empty-list/index.js.map +0 -1
- package/dist/table/components/empty-list/index.module.css.js.map +0 -1
- package/dist/table/components/error/index.js.map +0 -1
- package/dist/table/components/error/index.module.css.js.map +0 -1
- package/dist/table/components/loading/index.js.map +0 -1
- package/dist/table/components/loading/index.module.css.js.map +0 -1
- package/dist/table/components/pagination/index.js.map +0 -1
- package/dist/table/components/pagination/index.module.css.js.map +0 -1
- package/dist/table/components/table-header/index.js.map +0 -1
- package/dist/table/components/table-header/index.module.css.js.map +0 -1
- package/dist/table/hooks/use-table-data.js.map +0 -1
- package/dist/table/index.js.map +0 -1
- package/dist/table/index.module.css.js.map +0 -1
- package/dist/table/languages/index.js.map +0 -1
- package/dist/table/table.js.map +0 -1
- package/dist/table/types.js +0 -2
- package/dist/table/types.js.map +0 -1
- package/dist/table/utils/add-query-param.js.map +0 -1
- package/dist/table/utils/get-query-from-url.js.map +0 -1
- package/dist/table/utils/get-tags.js.map +0 -1
- package/dist/table/utils/index.js.map +0 -1
- package/dist/table/utils/is-object.js.map +0 -1
- package/dist/table/utils/parse-query-params.js.map +0 -1
- package/dist/table/utils/prepare-rows.js.map +0 -1
- package/dist/table/utils/query-adapter.js.map +0 -1
- package/dist/table/utils/remove-query-param.js.map +0 -1
- package/dist/table/utils/reset-query-param.js.map +0 -1
- package/dist/table/utils/serialize-data.js.map +0 -1
- package/dist/table/utils/set-query-to-url.js.map +0 -1
- package/dist/table/utils/sort-array.js.map +0 -1
- package/dist/table-status/component.js.map +0 -1
- package/dist/table-status/index.js.map +0 -1
- package/dist/table-status/index.module.css.js.map +0 -1
- package/dist/tag/component.js.map +0 -1
- package/dist/tag/index.js.map +0 -1
- package/dist/tag/index.module.css.js.map +0 -1
- package/dist/tags-list/component.js.map +0 -1
- package/dist/tags-list/index.js.map +0 -1
- package/dist/tags-list/index.module.css.js.map +0 -1
- package/dist/textarea/component.js.map +0 -1
- package/dist/textarea/index.js.map +0 -1
- package/dist/textarea/index.module.css.js.map +0 -1
- package/dist/theme-provider/component.js.map +0 -1
- package/dist/theme-provider/default-themes.js.map +0 -1
- package/dist/theme-provider/index.js.map +0 -1
- package/dist/toast/component.js.map +0 -1
- package/dist/toast/index.js.map +0 -1
- package/dist/toast/index.module.css.js.map +0 -1
- package/dist/toast-notifier/component.js.map +0 -1
- package/dist/toast-notifier/index.js.map +0 -1
- package/dist/toast-notifier/index.module.css.js.map +0 -1
- package/dist/toast-notifier/use-timer.js.map +0 -1
- package/dist/toast-plate/component.js.map +0 -1
- package/dist/toast-plate/index.js.map +0 -1
- package/dist/toast-plate/index.module.css.js.map +0 -1
- package/dist/tooltip/component.js.map +0 -1
- package/dist/tooltip/index.js.map +0 -1
- package/dist/tooltip/index.module.css.js.map +0 -1
- package/dist/tooltip/node-resolver.js.map +0 -1
- package/dist/typings/api.js +0 -2
- package/dist/typings/api.js.map +0 -1
- package/dist/typography/colors.js.map +0 -1
- package/dist/typography/colors.module.css.js.map +0 -1
- package/dist/typography/component.js.map +0 -1
- package/dist/typography/index.js.map +0 -1
- package/dist/typography/text/component.js.map +0 -1
- package/dist/typography/text/index.js.map +0 -1
- package/dist/typography/text/index.module.css.js.map +0 -1
- package/dist/typography/title/common.module.css.js.map +0 -1
- package/dist/typography/title/component.js.map +0 -1
- package/dist/typography/title/index.js.map +0 -1
- package/dist/typography/title/index.module.css.js.map +0 -1
- package/dist/utils/data/currency-codes.js.map +0 -1
- package/dist/utils/date/index.js.map +0 -1
- package/dist/utils/debounce.js.map +0 -1
- package/dist/utils/format-amount/util.js.map +0 -1
- package/dist/utils/format-date/index.js.map +0 -1
- package/dist/utils/get-currency-symbol/util.js.map +0 -1
- package/dist/utils/get-service-error/index.js.map +0 -1
- package/dist/utils/get-service-error/is-axios-error.js.map +0 -1
- package/dist/utils/get-service-error/is-network-error.js.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/safe-stringify.js.map +0 -1
- package/dist/utils/show-toast/index.js.map +0 -1
- package/dist/utils/split-amount/util.js.map +0 -1
- package/dist/utils/string.js.map +0 -1
- package/dist/welcome-layout/component.js.map +0 -1
- package/dist/welcome-layout/index.js.map +0 -1
- package/dist/welcome-layout/index.module.css.js.map +0 -1
- package/dist/with-suffix/component.js.map +0 -1
- package/dist/with-suffix/index.js.map +0 -1
- package/dist/with-suffix/index.module.css.js.map +0 -1
- /package/dist/amount/{index.module.css → index.css} +0 -0
- /package/dist/amount-input/{index.module.css → index.css} +0 -0
- /package/dist/avatar/{index.module.css → index.css} +0 -0
- /package/dist/back-button/{index.module.css → index.css} +0 -0
- /package/dist/badge/{index.module.css → index.css} +0 -0
- /package/dist/base-card/{index.module.css → index.css} +0 -0
- /package/dist/bottom-sheet/{index.module.css → index.css} +0 -0
- /package/dist/box/{index.module.css → index.css} +0 -0
- /package/dist/button/{index.module.css → index.css} +0 -0
- /package/dist/button-arrow/{index.module.css → index.css} +0 -0
- /package/dist/calendar/components/days-table/{index.module.css → index.css} +0 -0
- /package/dist/calendar/components/header/{index.module.css → index.css} +0 -0
- /package/dist/calendar/components/months-table/{index.module.css → index.css} +0 -0
- /package/dist/calendar/components/select-button/{index.module.css → index.css} +0 -0
- /package/dist/calendar/components/years-table/{index.module.css → index.css} +0 -0
- /package/dist/calendar/{index.module.css → index.css} +0 -0
- /package/dist/calendar-input/{index.module.css → index.css} +0 -0
- /package/dist/card/images/{index.module.css → index.css} +0 -0
- /package/dist/card/{index.module.css → index.css} +0 -0
- /package/dist/cell/base/{index.module.css → index.css} +0 -0
- /package/dist/cell/pure/{index.module.css → index.css} +0 -0
- /package/dist/checkbox/{index.module.css → index.css} +0 -0
- /package/dist/checkbox-group/{index.module.css → index.css} +0 -0
- /package/dist/checkbox-lists/{index.module.css → index.css} +0 -0
- /package/dist/collapsable-row/{index.module.css → index.css} +0 -0
- /package/dist/collapse/{index.module.css → index.css} +0 -0
- /package/dist/copy-button/{index.module.css → index.css} +0 -0
- /package/dist/date-switcher/{index.module.css → index.css} +0 -0
- /package/dist/decorated-item/{index.module.css → index.css} +0 -0
- /package/dist/divider/{index.module.css → index.css} +0 -0
- /package/dist/dot/{index.module.css → index.css} +0 -0
- /package/dist/empty-page/{index.module.css → index.css} +0 -0
- /package/dist/filter-tag/{index.module.css → index.css} +0 -0
- /package/dist/flex/{index.module.css → index.css} +0 -0
- /package/dist/flex-columns/{index.module.css → index.css} +0 -0
- /package/dist/footer/{index.module.css → index.css} +0 -0
- /package/dist/form/components/form-loading/{index.module.css → index.css} +0 -0
- /package/dist/form-control/{index.module.css → index.css} +0 -0
- /package/dist/grid/{index.module.css → index.css} +0 -0
- /package/dist/header-search/{index.module.css → index.css} +0 -0
- /package/dist/icon-button/{index.module.css → index.css} +0 -0
- /package/dist/image/{index.module.css → index.css} +0 -0
- /package/dist/image-uploader/{index.module.css → index.css} +0 -0
- /package/dist/info-block-header/{index.module.css → index.css} +0 -0
- /package/dist/info-block-item/{index.module.css → index.css} +0 -0
- /package/dist/info-block-wrapper/{index.module.css → index.css} +0 -0
- /package/dist/input/{index.module.css → index.css} +0 -0
- /package/dist/input-autocomplete/autocomplete-field/{index.module.css → index.css} +0 -0
- /package/dist/input-ghost/{index.module.css → index.css} +0 -0
- /package/dist/link/{index.module.css → index.css} +0 -0
- /package/dist/list-allert/{index.module.css → index.css} +0 -0
- /package/dist/loader/{index.module.css → index.css} +0 -0
- /package/dist/masked-input/{index.module.css → index.css} +0 -0
- /package/dist/menu/components/content-header/{index.module.css → index.css} +0 -0
- /package/dist/menu/components/menu-avatar/{index.module.css → index.css} +0 -0
- /package/dist/menu/components/menu-back-button/{index.module.css → index.css} +0 -0
- /package/dist/menu/components/menu-button/{index.module.css → index.css} +0 -0
- /package/dist/menu/components/menu-buttons-list/{index.module.css → index.css} +0 -0
- /package/dist/menu/components/user-button/{index.module.css → index.css} +0 -0
- /package/dist/menu/{index.module.css → index.css} +0 -0
- /package/dist/message/{index.module.css → index.css} +0 -0
- /package/dist/modal/components/modals/{index.module.css → index.css} +0 -0
- /package/dist/notification/{index.module.css → index.css} +0 -0
- /package/dist/page-container/{index.module.css → index.css} +0 -0
- /package/dist/page-loading/{index.module.css → index.css} +0 -0
- /package/dist/picker-button/common/labeled-button/{index.module.css → index.css} +0 -0
- /package/dist/picker-button/field/{index.module.css → index.css} +0 -0
- /package/dist/picker-button/{index.module.css → index.css} +0 -0
- /package/dist/popover/{index.module.css → index.css} +0 -0
- /package/dist/progress-bar/{index.module.css → index.css} +0 -0
- /package/dist/progress-index/{index.module.css → index.css} +0 -0
- /package/dist/radio/{index.module.css → index.css} +0 -0
- /package/dist/radio-group/{index.module.css → index.css} +0 -0
- /package/dist/radio-groups/{index.module.css → index.css} +0 -0
- /package/dist/section-wrapper/{index.module.css → index.css} +0 -0
- /package/dist/select/components/arrow/{index.module.css → index.css} +0 -0
- /package/dist/select/components/base-select/{index.module.css → index.css} +0 -0
- /package/dist/select/components/checkmark/{index.module.css → index.css} +0 -0
- /package/dist/select/components/field/{index.module.css → index.css} +0 -0
- /package/dist/select/components/optgroup/{index.module.css → index.css} +0 -0
- /package/dist/select/components/option/{index.module.css → index.css} +0 -0
- /package/dist/select/components/options-list/{index.module.css → index.css} +0 -0
- /package/dist/select/components/select-search/{index.module.css → index.css} +0 -0
- /package/dist/select/components/virtual-options-list/{index.module.css → index.css} +0 -0
- /package/dist/select/presets/use-select-with-loading/{index.module.css → index.css} +0 -0
- /package/dist/sidepanel/{index.module.css → index.css} +0 -0
- /package/dist/sidepanel-header/{index.module.css → index.css} +0 -0
- /package/dist/skeleton/{index.module.css → index.css} +0 -0
- /package/dist/space/{index.module.css → index.css} +0 -0
- /package/dist/spinner/{index.module.css → index.css} +0 -0
- /package/dist/status/{index.module.css → index.css} +0 -0
- /package/dist/stepped-progress-bar/{index.module.css → index.css} +0 -0
- /package/dist/sticker/{index.module.css → index.css} +0 -0
- /package/dist/suffix-input/{index.module.css → index.css} +0 -0
- /package/dist/super-list-header/{index.module.css → index.css} +0 -0
- /package/dist/super-list-item/{index.module.css → index.css} +0 -0
- /package/dist/switch/{index.module.css → index.css} +0 -0
- /package/dist/table/components/cell/{index.module.css → index.css} +0 -0
- /package/dist/table/components/cells/{index.module.css → index.css} +0 -0
- /package/dist/table/components/empty-list/{index.module.css → index.css} +0 -0
- /package/dist/table/components/error/{index.module.css → index.css} +0 -0
- /package/dist/table/components/loading/{index.module.css → index.css} +0 -0
- /package/dist/table/components/pagination/{index.module.css → index.css} +0 -0
- /package/dist/table/components/table-header/{index.module.css → index.css} +0 -0
- /package/dist/table/{index.module.css → index.css} +0 -0
- /package/dist/table-status/{index.module.css → index.css} +0 -0
- /package/dist/tag/{index.module.css → index.css} +0 -0
- /package/dist/tags-list/{index.module.css → index.css} +0 -0
- /package/dist/textarea/{index.module.css → index.css} +0 -0
- /package/dist/toast/{index.module.css → index.css} +0 -0
- /package/dist/toast-notifier/{index.module.css → index.css} +0 -0
- /package/dist/toast-plate/{index.module.css → index.css} +0 -0
- /package/dist/tooltip/{index.module.css → index.css} +0 -0
- /package/dist/typography/{colors.module.css → colors.css} +0 -0
- /package/dist/typography/text/{index.module.css → index.css} +0 -0
- /package/dist/typography/title/{common.module.css → common.css} +0 -0
- /package/dist/typography/title/{index.module.css → index.css} +0 -0
- /package/dist/welcome-layout/{index.module.css → index.css} +0 -0
- /package/dist/with-suffix/{index.module.css → index.css} +0 -0
|
@@ -1,118 +1,112 @@
|
|
|
1
|
-
import { useState as
|
|
2
|
-
import { addQueryParam as
|
|
3
|
-
import { getQueryFromUrl as
|
|
1
|
+
import { useState as u, useCallback as y, useEffect as h } from "react";
|
|
2
|
+
import { addQueryParam as z } from "../utils/add-query-param.js";
|
|
3
|
+
import { getQueryFromUrl as I } from "../utils/get-query-from-url.js";
|
|
4
4
|
import "query-string";
|
|
5
|
-
import { removeQueryParam as
|
|
6
|
-
import { resetQueryParam as
|
|
7
|
-
import { serializeData as
|
|
8
|
-
const
|
|
5
|
+
import { removeQueryParam as R } from "../utils/remove-query-param.js";
|
|
6
|
+
import { resetQueryParam as V } from "../utils/reset-query-param.js";
|
|
7
|
+
import { serializeData as D } from "../utils/serialize-data.js";
|
|
8
|
+
const w = {
|
|
9
9
|
page: 1,
|
|
10
10
|
limit: 10,
|
|
11
11
|
where: {}
|
|
12
12
|
// остальное добавится по мере нужды (searchText, sort, order и т.д.)
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
const r = a != null ? a : Q, o = {
|
|
14
|
+
function b(c, s) {
|
|
15
|
+
const r = c ?? w, a = {
|
|
17
16
|
...r,
|
|
18
17
|
...s,
|
|
19
18
|
where: {
|
|
20
|
-
...
|
|
21
|
-
...
|
|
19
|
+
...r.where ?? {},
|
|
20
|
+
...s.where ?? {}
|
|
22
21
|
}
|
|
23
22
|
};
|
|
24
|
-
return
|
|
23
|
+
return a.page && (a.page = +a.page), a.limit && (a.limit = +a.limit), a;
|
|
25
24
|
}
|
|
26
|
-
function
|
|
27
|
-
const [
|
|
28
|
-
(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const t = d(e);
|
|
36
|
-
if (Array.isArray(s) && (A(!1), c(P(s, t))), m(t), a) {
|
|
37
|
-
x(!1), A(!0);
|
|
25
|
+
function K({ promise: c, records: s, fromPath: r = !0 }) {
|
|
26
|
+
const [a, A] = u([]), [v, g] = u(!0), [E, d] = u(!1), [C, L] = u(0), [P, S] = u(1), [i, f] = u(void 0), Q = y(
|
|
27
|
+
(t) => r ? I() : t ?? i ?? w,
|
|
28
|
+
[r, i]
|
|
29
|
+
), n = y(
|
|
30
|
+
async (t) => {
|
|
31
|
+
const e = Q(t);
|
|
32
|
+
if (Array.isArray(s) && (g(!1), A(D(s, e))), f(e), c) {
|
|
33
|
+
d(!1), g(!0);
|
|
38
34
|
try {
|
|
39
35
|
const {
|
|
40
|
-
data: { items:
|
|
41
|
-
} = await
|
|
42
|
-
|
|
43
|
-
} catch
|
|
44
|
-
|
|
36
|
+
data: { items: o, meta: m }
|
|
37
|
+
} = await c(e);
|
|
38
|
+
L(m.totalItems), S(m.totalPages), A(o || []);
|
|
39
|
+
} catch {
|
|
40
|
+
d(!0);
|
|
45
41
|
} finally {
|
|
46
|
-
|
|
42
|
+
g(!1);
|
|
47
43
|
}
|
|
48
44
|
}
|
|
49
45
|
},
|
|
50
|
-
[
|
|
51
|
-
),
|
|
52
|
-
(
|
|
46
|
+
[Q, s, c]
|
|
47
|
+
), T = y(
|
|
48
|
+
(t) => {
|
|
53
49
|
if (r) {
|
|
54
|
-
|
|
50
|
+
z(t), n();
|
|
55
51
|
return;
|
|
56
52
|
}
|
|
57
|
-
const
|
|
58
|
-
|
|
53
|
+
const e = b(i, t);
|
|
54
|
+
f(e), n(e);
|
|
59
55
|
},
|
|
60
|
-
[r,
|
|
61
|
-
),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
...
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
C.length ? l.where[t] = C : delete l.where[t];
|
|
56
|
+
[r, i, n]
|
|
57
|
+
), U = (t, e, o) => {
|
|
58
|
+
const m = t ?? w, l = {
|
|
59
|
+
...m,
|
|
60
|
+
where: { ...m.where ?? {} }
|
|
61
|
+
}, p = l.where?.[e];
|
|
62
|
+
if (Array.isArray(p) && o != null) {
|
|
63
|
+
const x = p.filter((k) => String(k) !== String(o));
|
|
64
|
+
x.length ? l.where[e] = x : delete l.where[e];
|
|
70
65
|
} else
|
|
71
|
-
l.where &&
|
|
66
|
+
l.where && e in l.where && delete l.where[e];
|
|
72
67
|
return l;
|
|
73
|
-
},
|
|
74
|
-
(
|
|
68
|
+
}, q = y(
|
|
69
|
+
(t, e) => {
|
|
75
70
|
if (r) {
|
|
76
|
-
|
|
71
|
+
R(t, e), n();
|
|
77
72
|
return;
|
|
78
73
|
}
|
|
79
|
-
const
|
|
80
|
-
|
|
74
|
+
const o = U(i, t, e);
|
|
75
|
+
f(o), n(o);
|
|
81
76
|
},
|
|
82
|
-
[r,
|
|
83
|
-
),
|
|
84
|
-
(
|
|
77
|
+
[r, i, n]
|
|
78
|
+
), F = y(
|
|
79
|
+
(t) => {
|
|
85
80
|
if (r) {
|
|
86
|
-
|
|
81
|
+
V(t), n();
|
|
87
82
|
return;
|
|
88
83
|
}
|
|
89
|
-
const
|
|
90
|
-
|
|
84
|
+
const e = b(w, t);
|
|
85
|
+
f(e), n(e);
|
|
91
86
|
},
|
|
92
87
|
[r, n]
|
|
93
88
|
);
|
|
94
|
-
return
|
|
89
|
+
return h(() => {
|
|
95
90
|
n();
|
|
96
|
-
}, []),
|
|
91
|
+
}, []), h(() => {
|
|
97
92
|
if (Array.isArray(s)) {
|
|
98
|
-
const
|
|
99
|
-
|
|
93
|
+
const t = Q();
|
|
94
|
+
f(t), g(!1), A(D(s, t));
|
|
100
95
|
}
|
|
101
96
|
}, [s]), {
|
|
102
|
-
loading:
|
|
103
|
-
error:
|
|
104
|
-
data:
|
|
105
|
-
total:
|
|
106
|
-
params:
|
|
107
|
-
pagesCount:
|
|
97
|
+
loading: v,
|
|
98
|
+
error: E,
|
|
99
|
+
data: a,
|
|
100
|
+
total: C,
|
|
101
|
+
params: i,
|
|
102
|
+
pagesCount: P,
|
|
108
103
|
updateData: n,
|
|
109
104
|
// НОВОЕ: наружу отдаём универсальные методы для управления параметрами
|
|
110
|
-
addParam:
|
|
111
|
-
removeParam:
|
|
112
|
-
resetParams:
|
|
105
|
+
addParam: T,
|
|
106
|
+
removeParam: q,
|
|
107
|
+
resetParams: F
|
|
113
108
|
};
|
|
114
109
|
}
|
|
115
110
|
export {
|
|
116
|
-
|
|
111
|
+
K as useTableData
|
|
117
112
|
};
|
|
118
|
-
//# sourceMappingURL=use-table-data.js.map
|
package/dist/table/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import './index.
|
|
1
|
+
import * as __css from './index.css';
|
|
2
|
+
export const __cssModule = __css;
|
|
2
3
|
const t = "table_wrapper_SeB5", l = "table_9sbd", e = "no_footer_julO", c = "fill_Q-ic", o = "compact_kbrU", a = "clickable_k4S8", _ = {
|
|
3
4
|
table_wrapper: t,
|
|
4
5
|
table: l,
|
|
@@ -17,4 +18,3 @@ export {
|
|
|
17
18
|
l as table,
|
|
18
19
|
t as table_wrapper
|
|
19
20
|
};
|
|
20
|
-
//# sourceMappingURL=index.module.css.js.map
|
package/dist/table/table.d.ts
CHANGED
|
@@ -33,7 +33,6 @@ export type TableProps<T extends object> = Records<T> & {
|
|
|
33
33
|
refetch?: () => void;
|
|
34
34
|
onRowClick?: (params: T, refech: () => void) => void;
|
|
35
35
|
language: 'de' | 'ru' | 'en';
|
|
36
|
-
/** true — параметры из URL; false — только локальное состояние. */
|
|
37
36
|
fromPath?: boolean;
|
|
38
37
|
} & FiltersButton;
|
|
39
38
|
export declare function Table<T extends object>({ columns, searchPlaceholder, records, hideSearch, rightHeaderAddons, leftHeaderAddons, filtersButtonLabel, createButtonLabel, loading, height, view, tagsBuilder, promise, onRowClick, onCreateClick, onFiltersClick, refetch, language, fromPath, }: TableProps<T>): React.JSX.Element;
|
package/dist/table/table.js
CHANGED
|
@@ -1,145 +1,144 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { Cells as
|
|
5
|
-
import { EmptyList as
|
|
6
|
-
import { Error as
|
|
7
|
-
import { Loading as
|
|
8
|
-
import { Pagination as
|
|
9
|
-
import { TableHeader as
|
|
10
|
-
import { useTableData as
|
|
11
|
-
import { getTags as
|
|
12
|
-
import { prepareRows as
|
|
13
|
-
import
|
|
14
|
-
function
|
|
15
|
-
columns:
|
|
16
|
-
searchPlaceholder:
|
|
17
|
-
records:
|
|
18
|
-
hideSearch:
|
|
19
|
-
rightHeaderAddons:
|
|
20
|
-
leftHeaderAddons:
|
|
21
|
-
filtersButtonLabel:
|
|
22
|
-
createButtonLabel:
|
|
23
|
-
loading:
|
|
24
|
-
height:
|
|
25
|
-
view:
|
|
26
|
-
tagsBuilder:
|
|
27
|
-
promise:
|
|
28
|
-
onRowClick:
|
|
29
|
-
onCreateClick:
|
|
30
|
-
onFiltersClick:
|
|
31
|
-
refetch:
|
|
32
|
-
language:
|
|
33
|
-
fromPath:
|
|
1
|
+
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import X, { useMemo as E, useCallback as Y } from "react";
|
|
3
|
+
import P from "classnames";
|
|
4
|
+
import { Cells as Z } from "./components/cells/index.js";
|
|
5
|
+
import { EmptyList as $ } from "./components/empty-list/index.js";
|
|
6
|
+
import { Error as A } from "./components/error/index.js";
|
|
7
|
+
import { Loading as aa } from "./components/loading/index.js";
|
|
8
|
+
import { Pagination as ta } from "./components/pagination/index.js";
|
|
9
|
+
import { TableHeader as ra } from "./components/table-header/index.js";
|
|
10
|
+
import { useTableData as oa } from "./hooks/use-table-data.js";
|
|
11
|
+
import { getTags as ea } from "./utils/get-tags.js";
|
|
12
|
+
import { prepareRows as sa } from "./utils/prepare-rows.js";
|
|
13
|
+
import o from "./index.module.css.js";
|
|
14
|
+
function ya({
|
|
15
|
+
columns: m,
|
|
16
|
+
searchPlaceholder: N = "Поиск по таблице",
|
|
17
|
+
records: j,
|
|
18
|
+
hideSearch: h,
|
|
19
|
+
rightHeaderAddons: b,
|
|
20
|
+
leftHeaderAddons: g,
|
|
21
|
+
filtersButtonLabel: H,
|
|
22
|
+
createButtonLabel: R,
|
|
23
|
+
loading: S,
|
|
24
|
+
height: _ = "fill",
|
|
25
|
+
view: e = "default",
|
|
26
|
+
tagsBuilder: w,
|
|
27
|
+
promise: u,
|
|
28
|
+
onRowClick: y,
|
|
29
|
+
onCreateClick: c,
|
|
30
|
+
onFiltersClick: l,
|
|
31
|
+
refetch: B,
|
|
32
|
+
language: i,
|
|
33
|
+
fromPath: F = !0
|
|
34
34
|
}) {
|
|
35
35
|
const {
|
|
36
|
-
loading:
|
|
37
|
-
error:
|
|
38
|
-
data:
|
|
39
|
-
total:
|
|
36
|
+
loading: M,
|
|
37
|
+
error: C,
|
|
38
|
+
data: T,
|
|
39
|
+
total: V,
|
|
40
40
|
params: t,
|
|
41
|
-
pagesCount:
|
|
42
|
-
updateData:
|
|
43
|
-
addParam:
|
|
44
|
-
removeParam:
|
|
45
|
-
resetParams:
|
|
46
|
-
} =
|
|
47
|
-
promise:
|
|
48
|
-
records:
|
|
49
|
-
fromPath:
|
|
50
|
-
}),
|
|
51
|
-
() => [...
|
|
52
|
-
(
|
|
41
|
+
pagesCount: q,
|
|
42
|
+
updateData: n,
|
|
43
|
+
addParam: z,
|
|
44
|
+
removeParam: G,
|
|
45
|
+
resetParams: k
|
|
46
|
+
} = oa({
|
|
47
|
+
promise: u,
|
|
48
|
+
records: j,
|
|
49
|
+
fromPath: F
|
|
50
|
+
}), x = E(
|
|
51
|
+
() => [...T || []].sort(
|
|
52
|
+
(a, s) => (a.sortPosition || 0) - (s.sortPosition || 0)
|
|
53
53
|
),
|
|
54
|
-
[
|
|
55
|
-
),
|
|
56
|
-
(
|
|
57
|
-
|
|
54
|
+
[T]
|
|
55
|
+
), I = (a) => y?.(a, n), J = c ? () => c(n) : void 0, K = Y(
|
|
56
|
+
(a) => {
|
|
57
|
+
k(a);
|
|
58
58
|
},
|
|
59
|
-
[
|
|
60
|
-
),
|
|
61
|
-
submitCallback: (
|
|
59
|
+
[k]
|
|
60
|
+
), L = () => l ? l({
|
|
61
|
+
submitCallback: (a) => K(a),
|
|
62
62
|
initialValues: t
|
|
63
|
-
}) : null,
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
params:
|
|
69
|
-
onDelete:
|
|
70
|
-
tagsBuilder:
|
|
71
|
-
onClick:
|
|
72
|
-
}),
|
|
73
|
-
() =>
|
|
74
|
-
columns:
|
|
75
|
-
view:
|
|
76
|
-
data:
|
|
77
|
-
refetch:
|
|
63
|
+
}) : null, d = (a) => {
|
|
64
|
+
z(a);
|
|
65
|
+
}, O = (a, s) => {
|
|
66
|
+
G(a, s);
|
|
67
|
+
}, Q = ea({
|
|
68
|
+
params: t?.where || {},
|
|
69
|
+
onDelete: O,
|
|
70
|
+
tagsBuilder: w,
|
|
71
|
+
onClick: L
|
|
72
|
+
}), v = E(
|
|
73
|
+
() => sa({
|
|
74
|
+
columns: m,
|
|
75
|
+
view: e,
|
|
76
|
+
data: x,
|
|
77
|
+
refetch: B || n
|
|
78
78
|
}),
|
|
79
79
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
80
|
-
[
|
|
81
|
-
),
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
(!
|
|
84
|
-
|
|
80
|
+
[x, m, e]
|
|
81
|
+
), p = M || S, D = !!u;
|
|
82
|
+
return /* @__PURE__ */ f("div", { className: P(o.table_wrapper, o[_], o[e]), children: [
|
|
83
|
+
(!h || b || g || c || l) && /* @__PURE__ */ r(
|
|
84
|
+
ra,
|
|
85
85
|
{
|
|
86
|
-
language:
|
|
87
|
-
hideSearch:
|
|
88
|
-
rightHeaderAddons:
|
|
89
|
-
leftHeaderAddons:
|
|
90
|
-
searchText:
|
|
91
|
-
addParam:
|
|
92
|
-
searchPlaceholder:
|
|
93
|
-
filtersButtonLabel:
|
|
94
|
-
tags:
|
|
95
|
-
onCreateClick:
|
|
96
|
-
createButtonLabel:
|
|
97
|
-
onFiltersClick:
|
|
98
|
-
showFiltersButton: !!
|
|
99
|
-
compact:
|
|
86
|
+
language: i,
|
|
87
|
+
hideSearch: h,
|
|
88
|
+
rightHeaderAddons: b,
|
|
89
|
+
leftHeaderAddons: g,
|
|
90
|
+
searchText: t?.searchText || "",
|
|
91
|
+
addParam: d,
|
|
92
|
+
searchPlaceholder: N,
|
|
93
|
+
filtersButtonLabel: H,
|
|
94
|
+
tags: Q,
|
|
95
|
+
onCreateClick: J,
|
|
96
|
+
createButtonLabel: R,
|
|
97
|
+
onFiltersClick: L,
|
|
98
|
+
showFiltersButton: !!l,
|
|
99
|
+
compact: e === "compact"
|
|
100
100
|
}
|
|
101
101
|
),
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
|
|
102
|
+
/* @__PURE__ */ r("div", { className: P(o.table, { [o.no_footer]: !D }), children: /* @__PURE__ */ f("table", { cellSpacing: "0", cellPadding: "0", children: [
|
|
103
|
+
/* @__PURE__ */ r(
|
|
104
|
+
Z,
|
|
105
105
|
{
|
|
106
|
-
sort: t
|
|
107
|
-
order: t
|
|
108
|
-
addParam:
|
|
109
|
-
columns:
|
|
110
|
-
compact:
|
|
106
|
+
sort: t?.sort,
|
|
107
|
+
order: t?.order,
|
|
108
|
+
addParam: d,
|
|
109
|
+
columns: m,
|
|
110
|
+
compact: e === "compact"
|
|
111
111
|
}
|
|
112
112
|
),
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
|
|
115
|
-
!
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
/* @__PURE__ */ f("tbody", { children: [
|
|
114
|
+
C && /* @__PURE__ */ r(A, { language: i }),
|
|
115
|
+
!v.length && !p && !C && /* @__PURE__ */ r($, { language: i }),
|
|
116
|
+
p && /* @__PURE__ */ r(aa, { columnsLength: m.length }),
|
|
117
|
+
v.map(({ row: a, cells: s }) => /* @__PURE__ */ r(
|
|
118
118
|
"tr",
|
|
119
119
|
{
|
|
120
|
-
onClick: () =>
|
|
121
|
-
className:
|
|
122
|
-
style: { visibility:
|
|
123
|
-
children: s.map((
|
|
120
|
+
onClick: () => I(a),
|
|
121
|
+
className: P({ [o.clickable]: !!y }),
|
|
122
|
+
style: { visibility: p ? "collapse" : "visible" },
|
|
123
|
+
children: s.map((U, W) => X.cloneElement(U, { key: W }))
|
|
124
124
|
},
|
|
125
|
-
String(
|
|
125
|
+
String(a.id)
|
|
126
126
|
))
|
|
127
127
|
] })
|
|
128
128
|
] }) }),
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
D && /* @__PURE__ */ r(
|
|
130
|
+
ta,
|
|
131
131
|
{
|
|
132
|
-
language:
|
|
132
|
+
language: i,
|
|
133
133
|
currentPage: t ? +t.page : 1,
|
|
134
134
|
recordsPerPage: t ? +t.limit : 10,
|
|
135
|
-
pagesCount: +
|
|
136
|
-
addParam:
|
|
137
|
-
total: +
|
|
135
|
+
pagesCount: +q,
|
|
136
|
+
addParam: d,
|
|
137
|
+
total: +V
|
|
138
138
|
}
|
|
139
139
|
)
|
|
140
140
|
] });
|
|
141
141
|
}
|
|
142
142
|
export {
|
|
143
|
-
|
|
143
|
+
ya as Table
|
|
144
144
|
};
|
|
145
|
-
//# sourceMappingURL=table.js.map
|
|
@@ -1,73 +1,71 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import g from "@alphakits/icons/dist/PhotoM";
|
|
3
3
|
import { Image as f } from "../../image/component.js";
|
|
4
|
-
import { TableCell as
|
|
5
|
-
function p(t, i,
|
|
6
|
-
return t ? typeof t == "string" ? i[t] : typeof t == "function" ? t({ row: i, refetch:
|
|
4
|
+
import { TableCell as d } from "../components/cell/component.js";
|
|
5
|
+
function p(t, i, r) {
|
|
6
|
+
return t ? typeof t == "string" ? i[t] : typeof t == "function" ? t({ row: i, refetch: r }) : null : null;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
return t ? typeof t == "string" ? i[t] : typeof t == "function" ? t({ row: i, refetch:
|
|
8
|
+
function c(t, i, r) {
|
|
9
|
+
return t ? typeof t == "string" ? i[t] : typeof t == "function" ? t({ row: i, refetch: r }) : null : null;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function w({
|
|
12
12
|
columns: t,
|
|
13
13
|
view: i = "default",
|
|
14
|
-
data:
|
|
15
|
-
refetch:
|
|
14
|
+
data: r,
|
|
15
|
+
refetch: s
|
|
16
16
|
}) {
|
|
17
|
-
const
|
|
18
|
-
return
|
|
19
|
-
row:
|
|
20
|
-
cells: t.map((
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
l = a ? /* @__PURE__ */ r(
|
|
17
|
+
const l = i === "compact";
|
|
18
|
+
return r.map((n) => ({
|
|
19
|
+
row: n,
|
|
20
|
+
cells: t.map((e) => {
|
|
21
|
+
const u = c(e.row?.title || e.accessor, n, s);
|
|
22
|
+
let m;
|
|
23
|
+
if (e.row?.image) {
|
|
24
|
+
const a = p(e.row?.image, n, s);
|
|
25
|
+
m = a ? /* @__PURE__ */ o(
|
|
27
26
|
f,
|
|
28
27
|
{
|
|
29
28
|
bgColor: "secondary",
|
|
30
29
|
src: a,
|
|
31
|
-
text:
|
|
30
|
+
text: u?.toString(),
|
|
32
31
|
view: "ellipse",
|
|
33
|
-
size:
|
|
32
|
+
size: l ? "xs" : "m"
|
|
34
33
|
}
|
|
35
|
-
) : /* @__PURE__ */
|
|
34
|
+
) : /* @__PURE__ */ o(
|
|
36
35
|
f,
|
|
37
36
|
{
|
|
38
37
|
bgColor: "secondary",
|
|
39
|
-
icon: /* @__PURE__ */
|
|
40
|
-
text:
|
|
38
|
+
icon: /* @__PURE__ */ o(g, {}),
|
|
39
|
+
text: u?.toString(),
|
|
41
40
|
view: "ellipse",
|
|
42
|
-
size:
|
|
41
|
+
size: l ? "xs" : "m"
|
|
43
42
|
}
|
|
44
43
|
);
|
|
45
|
-
} else if (
|
|
46
|
-
const a = p(
|
|
47
|
-
|
|
44
|
+
} else if (e.row?.icon) {
|
|
45
|
+
const a = p(e.row?.icon, n, s);
|
|
46
|
+
m = /* @__PURE__ */ o(
|
|
48
47
|
f,
|
|
49
48
|
{
|
|
50
|
-
icon: a || /* @__PURE__ */
|
|
51
|
-
text:
|
|
49
|
+
icon: a || /* @__PURE__ */ o(g, {}),
|
|
50
|
+
text: u?.toString(),
|
|
52
51
|
view: "ellipse",
|
|
53
|
-
size:
|
|
52
|
+
size: l ? "xs" : "m"
|
|
54
53
|
}
|
|
55
54
|
);
|
|
56
|
-
} else
|
|
57
|
-
return /* @__PURE__ */
|
|
58
|
-
|
|
55
|
+
} else e.row?.customAddon && (m = p(e.row?.customAddon, n, s));
|
|
56
|
+
return /* @__PURE__ */ o(
|
|
57
|
+
d,
|
|
59
58
|
{
|
|
60
|
-
title:
|
|
61
|
-
align:
|
|
62
|
-
compact:
|
|
63
|
-
subtitle:
|
|
64
|
-
addon:
|
|
59
|
+
title: u,
|
|
60
|
+
align: e.align,
|
|
61
|
+
compact: l,
|
|
62
|
+
subtitle: l ? void 0 : e.row?.subtitle && c(e.row?.subtitle, n, s),
|
|
63
|
+
addon: m
|
|
65
64
|
}
|
|
66
65
|
);
|
|
67
66
|
})
|
|
68
67
|
}));
|
|
69
68
|
}
|
|
70
69
|
export {
|
|
71
|
-
|
|
70
|
+
w as prepareRows
|
|
72
71
|
};
|
|
73
|
-
//# sourceMappingURL=prepare-rows.js.map
|