aloha-vue 2.62.1 → 2.63.0
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/CHANGELOG.md +1070 -1065
- package/dist/aloha-vue.css +14 -6
- package/dist/aloha-vue.css.map +1 -1
- package/dist/aloha-vue.es.js +17124 -16976
- package/dist/aloha-vue.umd.js +69 -69
- package/package.json +99 -99
- package/scss/_base.scss +62 -62
- package/scss/aloha-vue.scss +68 -68
- package/scss/components/AFilters.scss +304 -304
- package/scss/components/AFormElement/AValidatedJson.scss +6 -6
- package/scss/components/AMenu.scss +627 -627
- package/scss/components/AModal.scss +44 -44
- package/scss/components/APagination.scss +167 -167
- package/scss/components/ARate.scss +78 -78
- package/scss/components/AResizer.scss +63 -63
- package/scss/components/ATable.scss +819 -819
- package/scss/components/ATableForm.scss +309 -288
- package/scss/components/AVerticalScroll.scss +47 -47
- package/scss/components/AWizard.scss +669 -669
- package/scss/components/ui/ADatepicker.scss +342 -342
- package/scss/components/ui/ADatepickerRange.scss +45 -45
- package/scss/components/ui/AFieldset.scss +78 -78
- package/scss/components/ui/AInputNumber.scss +62 -62
- package/scss/components/ui/AInputNumberRange.scss +30 -30
- package/scss/components/ui/ASelect.scss +236 -236
- package/scss/components/ui/ASlider.scss +186 -186
- package/scss/components/ui/ASwitch.scss +148 -148
- package/scss/components/ui/ui.scss +254 -254
- package/scss/text/text_alignment.scss +39 -39
- package/scss/text/text_transform.scss +51 -51
- package/scss/text/text_wrapping.scss +40 -40
- package/scss/utils/badge.scss +45 -45
- package/scss/utils/checkbox_radio.scss +134 -134
- package/scss/utils/color.scss +46 -46
- package/scss/utils/dropdown.scss +185 -185
- package/scss/utils/list.scss +75 -75
- package/scss/utils/modal.scss +173 -173
- package/scss/utils/sizing.scss +137 -137
- package/scss/utils/spacing.scss +63 -63
- package/scss/utils/tooltip.scss +63 -63
- package/src/AAccordion/AAccordion.js +206 -206
- package/src/AAccordion/compositionAPI/IndexesForOpenAPI.js +63 -63
- package/src/AAccordion/compositionAPI/ToggleAPI.js +85 -85
- package/src/AAlert/AAlert.js +216 -216
- package/src/AAlert/compositionAPI/ClassAPI.js +21 -21
- package/src/AAlert/i18n/AAlertI18n.js +19 -19
- package/src/AAlert/i18n/ar.json +2 -2
- package/src/AAlert/i18n/de.json +2 -2
- package/src/AAlert/i18n/en.json +2 -2
- package/src/AAlert/i18n/es.json +2 -2
- package/src/AAlert/i18n/fr.json +2 -2
- package/src/AAlert/i18n/hr.json +2 -2
- package/src/AAlert/i18n/it.json +2 -2
- package/src/AAlert/i18n/ru.json +2 -2
- package/src/AButton/AButton.js +275 -275
- package/src/ACarousel/ACarousel.js +361 -361
- package/src/ACarousel/ACarouselBtn/ACarouselBtn.js +75 -75
- package/src/ACarousel/ACarouselBtn/compositionAPI/ClassAPI.js +16 -16
- package/src/ACarousel/ACarouselBtn/compositionAPI/TextAPI.js +25 -25
- package/src/ACarousel/ACarouselControls/ACarouselControls.js +114 -114
- package/src/ACarousel/ACarouselControls/ACarouselControlsIndicator/ACarouselControlsIndicator.js +146 -146
- package/src/ACarousel/ACarouselControls/ACarouselControlsIndicator/compositionAPI/ActiveAPI.js +33 -33
- package/src/ACarousel/ACarouselControls/ACarouselControlsIndicator/compositionAPI/AttributesAPI.js +40 -40
- package/src/ACarousel/ACarouselControls/ACarouselControlsIndicator/compositionAPI/EventsAPI.js +25 -25
- package/src/ACarousel/ACarouselControls/ACarouselControlsIndicator/compositionAPI/IconAPI.js +20 -20
- package/src/ACarousel/ACarouselControls/compositionAPI/AriaLabelAPI.js +20 -20
- package/src/ACarousel/ACarouselItem/ACarouselItem.js +83 -83
- package/src/ACarousel/ACarouselItem/compositionAPI/AttributesAPI.js +39 -39
- package/src/ACarousel/ACarouselItem/compositionAPI/IsActiveAPI.js +21 -21
- package/src/ACarousel/compositionAPI/ActiveAPI.js +111 -111
- package/src/ACarousel/compositionAPI/AriaLabelAPI.js +25 -25
- package/src/ACarousel/compositionAPI/ArrowsAPI.js +17 -17
- package/src/ACarousel/compositionAPI/ClassAPI.js +44 -44
- package/src/ACarousel/compositionAPI/DataAPI.js +41 -41
- package/src/ACarousel/compositionAPI/IndicatorsAPI.js +148 -148
- package/src/ACarousel/compositionAPI/TextsAPI.js +25 -25
- package/src/ACarousel/i18n/ACarouselI18n.js +19 -19
- package/src/ACarousel/i18n/ar.json +8 -8
- package/src/ACarousel/i18n/de.json +8 -8
- package/src/ACarousel/i18n/en.json +8 -8
- package/src/ACarousel/i18n/es.json +8 -8
- package/src/ACarousel/i18n/fr.json +8 -8
- package/src/ACarousel/i18n/hr.json +8 -8
- package/src/ACarousel/i18n/it.json +8 -8
- package/src/ACarousel/i18n/ru.json +8 -8
- package/src/ACollapse/ACollapse.js +103 -103
- package/src/ADropdown/ADropdown.js +544 -544
- package/src/ADropdown/ADropdownGroup.js +85 -85
- package/src/ADropdown/compositionAPI/ActionsAPI.js +147 -147
- package/src/ADropdown/compositionAPI/AttributesAPI.js +100 -100
- package/src/AElement/AElement.js +518 -518
- package/src/AElement/compositionAPI/AttributesAPI.js +51 -51
- package/src/AElement/compositionAPI/ClickAPI.js +30 -30
- package/src/AElement/compositionAPI/ComponentLocalAPI.js +23 -23
- package/src/AElement/compositionAPI/DisabledAPI.js +22 -22
- package/src/AElement/compositionAPI/HtmlTitleAPI.js +33 -33
- package/src/AElement/compositionAPI/KeydownAPI.js +35 -35
- package/src/AElement/compositionAPI/LoadingAPI.js +22 -22
- package/src/AElement/compositionAPI/RouterLinkAPI.js +20 -20
- package/src/AElement/compositionAPI/SwitchAPI.js +33 -33
- package/src/AElement/compositionAPI/TagAPI.js +34 -34
- package/src/AElement/compositionAPI/TextAPI.js +78 -78
- package/src/AElement/compositionAPI/TitleAPI.js +29 -29
- package/src/AFilters/AFilterCenter/AFilterCenter.js +154 -154
- package/src/AFilters/AFilterCenter/AFilterCenterItem/AFilterCenterItem.js +207 -207
- package/src/AFilters/AFilters/AFilters.js +282 -282
- package/src/AFilters/i18n/ar.json +30 -30
- package/src/AFilters/i18n/en.json +30 -30
- package/src/AFilters/i18n/es.json +30 -30
- package/src/AFilters/i18n/fr.json +30 -30
- package/src/AFilters/i18n/hr.json +30 -30
- package/src/AFilters/i18n/it.json +30 -30
- package/src/AFilters/i18n/ru.json +30 -30
- package/src/AGroupButtonDropdown/compositionAPI/ActionsAPI.js +143 -143
- package/src/ALink/ALink.js +253 -253
- package/src/AMenu/AMenu.js +578 -578
- package/src/AMenu/AMenuBreadcrumbs/compositionAPI/RenderTruncatedAPI.js +74 -74
- package/src/AMenu/AMenuButtonToggle/AMenuButtonToggle.js +94 -94
- package/src/AMenu/AMenuButtonToggle/compositionAPI/ToggleAPI.js +95 -95
- package/src/AMenu/AMenuPanelLink/AMenuPanelLink.js +250 -250
- package/src/AMenu/compositionAPI/BackdropAPI.js +42 -42
- package/src/AMenu/compositionAPI/KeydownAPI.js +197 -197
- package/src/AMenu/compositionAPI/LinkClickAPI.js +48 -48
- package/src/AMenu/compositionAPI/MenuAttributesAPI.js +51 -51
- package/src/AMenu/compositionAPI/PanelsAPI.js +78 -78
- package/src/AMenu/compositionAPI/ResizeAPI.js +74 -74
- package/src/AModal/AModal.js +530 -530
- package/src/AModalForm/AModalForm.js +383 -383
- package/src/AModalWizard/AModalWizard.js +563 -563
- package/src/ANotification/ANotification.js +60 -60
- package/src/APagination/APagination.js +111 -111
- package/src/APagination/APaginationCountPerPage/APaginationCountPerPage.js +209 -209
- package/src/APagination/APaginationCountPerPage/compositionAPI/MainAPI.js +40 -40
- package/src/APagination/APaginationCountPerPage/compositionAPI/TextsAPI.js +54 -54
- package/src/APagination/APaginationPages/APaginationPages.js +282 -282
- package/src/APagination/APaginationPages/compositionAPI/PaginationItemsAPI.js +102 -102
- package/src/APagination/APaginationPages/compositionAPI/TextsAPI.js +74 -74
- package/src/APagination/compositionAPI/ComponentsAPI.js +79 -79
- package/src/APagination/i18n/ar.json +12 -12
- package/src/APagination/i18n/es.json +12 -12
- package/src/APagination/i18n/fr.json +12 -12
- package/src/APagination/i18n/hr.json +12 -12
- package/src/APagination/i18n/it.json +12 -12
- package/src/APagination/i18n/ru.json +12 -12
- package/src/APopup/APopup.js +115 -115
- package/src/ATable/ATable.js +1163 -1163
- package/src/ATable/ATableHeaderThAction/ATableHeaderThAction.js +241 -241
- package/src/ATable/ATableSortingAdditional/__tests__/ATableSortingAdditional.ModelAPI.test.js +200 -200
- package/src/ATable/ATableSortingAdditional/compositionAPI/ModelAPI.js +152 -152
- package/src/ATable/ATableTd/ATableTd.js +145 -145
- package/src/ATable/ATableTdAction/ATableTdAction.js +223 -223
- package/src/ATable/ATableTopPanel/ATableTopPanel.js +433 -433
- package/src/ATable/compositionAPI/ColumnActionAPI.js +105 -105
- package/src/ATable/compositionAPI/ColumnStylesAPI.js +50 -50
- package/src/ATable/compositionAPI/ColumnsGroupedAPI.js +187 -187
- package/src/ATable/compositionAPI/PaginationModesAPI.js +44 -44
- package/src/ATable/compositionAPI/PreviewAPI.js +201 -201
- package/src/ATable/compositionAPI/PreviewRightResizeAPI.js +135 -135
- package/src/ATable/compositionAPI/ScrollControlAPI.js +249 -249
- package/src/ATable/compositionAPI/SortAPI.js +86 -86
- package/src/ATable/compositionAPI/WidthAPI.js +73 -73
- package/src/ATableForm/ATableForm.js +610 -602
- package/src/ATableForm/ATableFormCell/ATableFormCell.js +183 -183
- package/src/ATableForm/ATableFormCell/compositionAPI/DisabledAPI.js +20 -20
- package/src/ATableForm/ATableFormCell/compositionAPI/ReadonlyAPI.js +28 -28
- package/src/ATableForm/ATableFormCellAction/ATableFormCellAction.js +282 -282
- package/src/ATableForm/ATableFormCellAction/compositionAPI/DeleteAPI.js +80 -80
- package/src/ATableForm/ATableFormCellAction/compositionAPI/DisabledAPI.js +60 -60
- package/src/ATableForm/ATableFormCellAction/compositionAPI/HiddenAPI.js +46 -46
- package/src/ATableForm/ATableFormCellAction/compositionAPI/IdsAPI.js +31 -31
- package/src/ATableForm/ATableFormCellAction/compositionAPI/StylesAPI.js +29 -28
- package/src/ATableForm/ATableFormCellAction/compositionAPI/TitleAPI.js +47 -47
- package/src/ATableForm/ATableFormCellDnd/ATableFormCellDnd.js +6 -1
- package/src/ATableForm/ATableFormCellDnd/compositionAPI/IdAPI.js +21 -21
- package/src/ATableForm/ATableFormCellList/compositionAPI/DataAPI.js +61 -61
- package/src/ATableForm/ATableFormRow/ATableFormRow.js +580 -582
- package/src/ATableForm/ATableFormRow/compositionAPI/ErrorsAPI.js +40 -40
- package/src/ATableForm/ATableFormRow/compositionAPI/FocusAPI.js +55 -55
- package/src/ATableForm/ATableFormRow/compositionAPI/IdAPI.js +19 -19
- package/src/ATableForm/__tests__/ATableForm.DragAndDropAPI.test.js +48 -0
- package/src/ATableForm/__tests__/ATableForm.ListView.test.js +668 -495
- package/src/ATableForm/compositionAPI/ClassesAPI.js +23 -23
- package/src/ATableForm/compositionAPI/ColumnsAPI.js +4 -2
- package/src/ATableForm/compositionAPI/ColumnsGrowAPI.js +191 -190
- package/src/ATableForm/compositionAPI/DeleteAPI.js +9 -9
- package/src/ATableForm/compositionAPI/DragAndDropAPI.js +6 -5
- package/src/ATableForm/compositionAPI/EditAPI.js +127 -128
- package/src/ATableForm/compositionAPI/RowsAPI.js +42 -42
- package/src/ATableForm/compositionAPI/StylesAPI.js +62 -62
- package/src/ATableForm/compositionAPI/WidthsAPI.js +21 -21
- package/src/ATableForm/i18n/ATableFormI18n.js +19 -19
- package/src/ATabs/ATabsContent/ATabsContent.js +102 -102
- package/src/ATabs/ATabsTab/ATabsTab.js +185 -185
- package/src/ATooltip/ATooltip.js +221 -221
- package/src/ATranslation/compositionAPI/UtilsAPI.js +187 -187
- package/src/AVerticalScroll/compositionAPI/ScrollAPI.js +55 -55
- package/src/AWizard/AWizard.js +467 -467
- package/src/compositionAPI/AEventOutsideAPI.js +46 -46
- package/src/compositionAPI/AMobileAPI.js +32 -32
- package/src/compositionAPI/APageTabTitleAPI.js +84 -84
- package/src/compositionAPI/ARemPxAPI.js +47 -47
- package/src/compositionAPI/FocusByDestroyAPI.js +67 -67
- package/src/const/AKeys.js +9 -9
- package/src/directives/AOnHooks.js +0 -0
- package/src/i18n/allLanguages.js +377 -377
- package/src/i18n/ar.json +4 -4
- package/src/i18n/de.json +4 -4
- package/src/i18n/en.json +4 -4
- package/src/i18n/es.json +4 -4
- package/src/i18n/fr.json +4 -4
- package/src/i18n/hr.json +4 -4
- package/src/i18n/it.json +4 -4
- package/src/i18n/ru.json +4 -4
- package/src/index.js +402 -402
- package/src/plugins/AAlertPlugin.js +53 -53
- package/src/plugins/ACarouselPlugin.js +34 -34
- package/src/plugins/ADatepickerPlugin.js +57 -57
- package/src/plugins/AFiltersPlugin.js +102 -102
- package/src/plugins/AInputCurrencyPlugin.js +31 -31
- package/src/plugins/AMobilePlugin.js +32 -32
- package/src/plugins/ARemPxPlugin.js +37 -37
- package/src/plugins/ASelectPlugin.js +54 -54
- package/src/plugins/ASelectStylesPlugin.js +2376 -2376
- package/src/temp/px_to_rem_mapping_1_to_800.md +802 -802
- package/src/ui/ACheckbox/ACheckbox.js +929 -929
- package/src/ui/ACheckbox/ACheckboxItem/ACheckboxItem.js +0 -0
- package/src/ui/ACheckboxRadioGroups/ACheckboxRadioGroups.js +0 -0
- package/src/ui/ADatepicker/ADatepicker.js +807 -807
- package/src/ui/ADatepicker/ADatepickerCalendarPanel/ADatepickerCalendarPanel.js +796 -796
- package/src/ui/ADatepicker/ADatepickerCalendarPanel/compositionAPI/CalendarAPI.js +51 -51
- package/src/ui/ADatepicker/compositionAPI/LanguagesAPI.js +92 -92
- package/src/ui/ADatepicker/compositionAPI/PlaceholderAPI.js +55 -55
- package/src/ui/ADatepicker/i18n/ADatepickerI18n.js +19 -19
- package/src/ui/ADatepicker/i18n/ar.json +47 -47
- package/src/ui/ADatepicker/i18n/de.json +48 -48
- package/src/ui/ADatepicker/i18n/en.json +48 -48
- package/src/ui/ADatepicker/i18n/es.json +47 -47
- package/src/ui/ADatepicker/i18n/fr.json +47 -47
- package/src/ui/ADatepicker/i18n/hr.json +47 -47
- package/src/ui/ADatepicker/i18n/it.json +47 -47
- package/src/ui/ADatepicker/i18n/ru.json +48 -48
- package/src/ui/ADatepicker/panel/APanelDate/APanelDate.js +196 -196
- package/src/ui/ADatepicker/panel/APanelDate/compositionAPI/DatesAPI.js +66 -66
- package/src/ui/ADatepicker/panel/APanelDate/compositionAPI/FocusAPI.js +96 -96
- package/src/ui/ADatepicker/panel/APanelDate/compositionAPI/FocusActiveAPI.js +27 -27
- package/src/ui/ADatepicker/panel/APanelDate/compositionAPI/SelectAPI.js +21 -21
- package/src/ui/ADatepicker/panel/APanelDate/compositionAPI/TableAPI.js +128 -128
- package/src/ui/ADatepicker/panel/APanelMonth/APanelMonth.js +129 -129
- package/src/ui/ADatepicker/panel/APanelMonth/compositionAPI/FocusAPI.js +94 -94
- package/src/ui/ADatepicker/panel/APanelMonth/compositionAPI/FocusActiveAPI.js +21 -21
- package/src/ui/ADatepicker/panel/APanelMonth/compositionAPI/MonthsAPI.js +51 -51
- package/src/ui/ADatepicker/panel/APanelMonth/compositionAPI/SelectAPI.js +29 -29
- package/src/ui/ADatepicker/panel/APanelYearItem/APanelYearItem.js +75 -75
- package/src/ui/ADatepicker/panel/APanelYearItem/compositionAPI/AttributesAPI.js +35 -35
- package/src/ui/ADatepicker/panel/APanelYearItem/compositionAPI/SelectAPI.js +35 -35
- package/src/ui/ADatepickerRange/ADatepickerRange.js +537 -537
- package/src/ui/AErrors/AErrors.js +149 -149
- package/src/ui/AErrors/AErrorsElement/AErrorsElement.js +0 -0
- package/src/ui/AErrors/i18n/AErrorsI18n.js +19 -19
- package/src/ui/AErrors/i18n/ar.json +3 -3
- package/src/ui/AErrors/i18n/de.json +2 -2
- package/src/ui/AErrors/i18n/en.json +3 -3
- package/src/ui/AErrors/i18n/es.json +3 -3
- package/src/ui/AErrors/i18n/fr.json +3 -3
- package/src/ui/AErrors/i18n/hr.json +3 -3
- package/src/ui/AErrors/i18n/it.json +3 -3
- package/src/ui/AErrors/i18n/ru.json +3 -3
- package/src/ui/AErrorsText/AErrorsText.js +62 -62
- package/src/ui/AFieldset/AFieldset.js +535 -535
- package/src/ui/AFieldset/compositionAPI/ModelAPI.js +54 -54
- package/src/ui/AForm/AForm.js +252 -252
- package/src/ui/AFormElement/AFormElement.js +160 -160
- package/src/ui/AFormElementBtnClear/AFormElementBtnClear.js +86 -86
- package/src/ui/AFormElementBtnClear/i18n/AFormElementBtnClearI18n.js +19 -19
- package/src/ui/AFormElementBtnClear/i18n/ar.json +2 -2
- package/src/ui/AFormElementBtnClear/i18n/de.json +2 -2
- package/src/ui/AFormElementBtnClear/i18n/en.json +2 -2
- package/src/ui/AFormElementBtnClear/i18n/es.json +2 -2
- package/src/ui/AFormElementBtnClear/i18n/fr.json +2 -2
- package/src/ui/AFormElementBtnClear/i18n/hr.json +2 -2
- package/src/ui/AFormElementBtnClear/i18n/it.json +2 -2
- package/src/ui/AFormElementBtnClear/i18n/ru.json +2 -2
- package/src/ui/AFormHelpText/AFormHelpText.js +37 -37
- package/src/ui/AFormLabelDescription/AFormLabelDescription.js +43 -43
- package/src/ui/AFormReadonly/AFormReadonly.js +193 -193
- package/src/ui/AGroup/AGroup.js +427 -427
- package/src/ui/AInput/AInput.js +516 -516
- package/src/ui/AInput/compositionAPI/ClassAPI.js +43 -43
- package/src/ui/AInputCurrency/AInputCurrency.js +620 -620
- package/src/ui/AInputCurrency/compositionAPI/IncreaseDecreaseAPI.js +76 -76
- package/src/ui/AInputCurrency/compositionAPI/InputEventsAPI.js +751 -751
- package/src/ui/AInputCurrency/compositionAPI/ModelAPI.js +88 -88
- package/src/ui/AInputCurrency/compositionAPI/UtilsAPI.js +54 -54
- package/src/ui/AInputFile/AInputFile.js +247 -247
- package/src/ui/AInputNumber/AInputNumber.js +497 -497
- package/src/ui/AInputNumber/compositionAPI/InputEventsAPI.js +196 -196
- package/src/ui/AInputNumber/compositionAPI/ModelAPI.js +72 -72
- package/src/ui/AInputNumberRange/AInputNumberRange.js +517 -517
- package/src/ui/AJson/AJson.js +434 -434
- package/src/ui/ALabel/ALabel.js +0 -0
- package/src/ui/AMultiselectOrdered/AMultiselectOrdered.js +935 -935
- package/src/ui/AOneCheckbox/AOneCheckbox.js +366 -366
- package/src/ui/ARadio/ARadio.js +924 -924
- package/src/ui/ARadio/ARadioItem/ARadioItem.js +0 -0
- package/src/ui/ARequired/ARequired.js +0 -0
- package/src/ui/ARouterLinkConfig/ARouterLinkConfig.js +391 -391
- package/src/ui/ARouterLinkConfig/compositionAPI/DataFormAPI.js +102 -102
- package/src/ui/ARouterLinkConfig/compositionAPI/ModelLocalAPI.js +96 -96
- package/src/ui/ARouterLinkConfig/compositionAPI/RouteAPI.js +51 -51
- package/src/ui/ASelect/ASelect.js +1339 -1339
- package/src/ui/ASelect/ASelectElement/ASelectElement.js +0 -0
- package/src/ui/ASelect/ASelectValueCloseable/ASelectValueCloseable.js +1 -1
- package/src/ui/ASelect/ASelectValueCloseable/compositionAPI/CloseAPI.js +28 -28
- package/src/ui/ASelect/compositionAPI/ToggleAPI.js +255 -255
- package/src/ui/ASelect/i18n/ar.json +6 -6
- package/src/ui/ASelect/i18n/de.json +7 -7
- package/src/ui/ASelect/i18n/en.json +6 -6
- package/src/ui/ASelect/i18n/es.json +6 -6
- package/src/ui/ASelect/i18n/fr.json +6 -6
- package/src/ui/ASelect/i18n/hr.json +6 -6
- package/src/ui/ASelect/i18n/it.json +6 -6
- package/src/ui/ASelect/i18n/ru.json +6 -6
- package/src/ui/ASelectIcon/ASelectIcon.js +386 -386
- package/src/ui/ASelectStyle/ASelectStyle.js +391 -391
- package/src/ui/ASelectStyle/compositionAPI/DataAPI.js +68 -68
- package/src/ui/ASelectStyle/compositionAPI/EventsAPI.js +24 -24
- package/src/ui/ASelectStyle/compositionAPI/KeyLabelCallbackAPI.js +15 -15
- package/src/ui/ASelectStyle/compositionAPI/TypeAPI.js +24 -24
- package/src/ui/ASelectStyle/i18n/ASelectStyleI18n.js +19 -19
- package/src/ui/ASelectStyle/i18n/ar.json +277 -277
- package/src/ui/ASelectStyle/i18n/de.json +277 -277
- package/src/ui/ASelectStyle/i18n/en.json +277 -277
- package/src/ui/ASelectStyle/i18n/es.json +277 -277
- package/src/ui/ASelectStyle/i18n/fr.json +277 -277
- package/src/ui/ASelectStyle/i18n/hr.json +277 -277
- package/src/ui/ASelectStyle/i18n/it.json +277 -277
- package/src/ui/ASelectStyle/i18n/ru.json +277 -277
- package/src/ui/ASlider/ASlider.js +672 -672
- package/src/ui/ASlider/compositionAPI/AriaAttributesAPI.js +121 -121
- package/src/ui/ASlider/compositionAPI/AttributesAPI.js +15 -15
- package/src/ui/ASlider/compositionAPI/DataAPI.js +115 -115
- package/src/ui/ASlider/compositionAPI/DragAndDropAPI.js +198 -198
- package/src/ui/ASlider/compositionAPI/LabelAPI.js +13 -13
- package/src/ui/ASlider/compositionAPI/MarksAPI.js +32 -32
- package/src/ui/ASlider/compositionAPI/SliderAPI.js +289 -289
- package/src/ui/ASlider/compositionAPI/StopsAPI.js +47 -47
- package/src/ui/ASlider/compositionAPI/StylesAPI.js +79 -79
- package/src/ui/ASlider/compositionAPI/TitleAPI.js +42 -42
- package/src/ui/ASlider/i18n/ASliderI18n.js +19 -19
- package/src/ui/ASlider/i18n/en.json +4 -4
- package/src/ui/ASwitch/ASwitch.js +442 -442
- package/src/ui/ATemplate/ATemplate.js +0 -0
- package/src/ui/ATextarea/ATextarea.js +437 -437
- package/src/ui/AUiComponents.js +59 -59
- package/src/ui/AUiContainerComponents.js +12 -12
- package/src/ui/AValidatedJson/AValidatedJson.js +594 -594
- package/src/ui/AValidatedJson/AValidatedJsonItem/compositionAPI/DeleteAPI.js +63 -63
- package/src/ui/AValidatedJson/AValidatedJsonItem/compositionAPI/DetailsAPI.js +59 -59
- package/src/ui/AValidatedJson/AValidatedJsonItem/compositionAPI/MoveAPI.js +50 -50
- package/src/ui/AValidatedJson/AValidatedJsonItem/compositionAPI/UpdateAPI.js +48 -48
- package/src/ui/AValidatedJson/AValidatedJsonModalCreateOrUpdate/composiitionAPI/DataFormAPI.js +69 -69
- package/src/ui/AValidatedJson/AValidatedJsonModalCreateOrUpdate/composiitionAPI/DisabledAPI.js +35 -35
- package/src/ui/AValidatedJson/AValidatedJsonModalCreateOrUpdate/composiitionAPI/ModelAPI.js +31 -31
- package/src/ui/AValidatedJson/AValidatedJsonModalCreateOrUpdate/composiitionAPI/SaveAPI.js +115 -115
- package/src/ui/AValidatedJson/AValidatedJsonModalCreateOrUpdate/composiitionAPI/TextAPI.js +25 -25
- package/src/ui/AValidatedJson/compositionAPI/AValidatedJsonErrorLabelsAPI.js +18 -18
- package/src/ui/AValidatedJson/compositionAPI/AttributesAPI.js +15 -15
- package/src/ui/AValidatedJson/compositionAPI/ChildrenAPI.js +70 -70
- package/src/ui/AValidatedJson/compositionAPI/EventsAPI.js +19 -19
- package/src/ui/AValidatedJson/compositionAPI/JsonModeAPI.js +119 -119
- package/src/ui/AValidatedJson/compositionAPI/ListModeAPI.js +144 -144
- package/src/ui/AValidatedJson/compositionAPI/ModelAPI.js +38 -38
- package/src/ui/AValidatedJson/compositionAPI/SingleModeAPI.js +112 -112
- package/src/ui/AValidatedJson/compositionAPI/TranslateAPI.js +22 -22
- package/src/ui/AValidatedJson/i18n/AValidatedJsonI18n.js +19 -19
- package/src/ui/AValidatedJson/i18n/ar.json +3 -3
- package/src/ui/AValidatedJson/i18n/de.json +22 -22
- package/src/ui/AValidatedJson/i18n/en.json +3 -3
- package/src/ui/AValidatedJson/i18n/es.json +3 -3
- package/src/ui/AValidatedJson/i18n/fr.json +3 -3
- package/src/ui/AValidatedJson/i18n/hr.json +3 -3
- package/src/ui/AValidatedJson/i18n/it.json +3 -3
- package/src/ui/AValidatedJson/i18n/ru.json +6 -6
- package/src/ui/compositionApi/UIDataGroupAPI.js +94 -94
- package/src/ui/compositionApi/UiAPI.js +185 -185
- package/src/ui/compositionApi/UiClearButtonAPI.js +19 -19
- package/src/ui/compositionApi/UiDataSortAPI.js +29 -29
- package/src/ui/compositionApi/UiDataWithKeyIdAndLabelAPI.js +155 -155
- package/src/ui/const/AUiTypes.js +69 -69
- package/src/ui/mixins/UiMixinProps.js +129 -129
- package/src/ui/utils/utils.js +79 -79
- package/src/utils/__tests__/utils.aOrderBy.test.js +237 -237
- package/src/utils/__tests__/utils.aSortBy.test.js +331 -331
- package/src/utils/__tests__/utilsArray.aFirst.test.js +54 -54
- package/src/utils/__tests__/utilsArray.aLast.test.js +54 -54
- package/src/utils/__tests__/utilsLang.isArguments.test.js +52 -52
- package/src/utils/__tests__/utilsLang.isArray.test.js +50 -50
- package/src/utils/__tests__/utilsLang.isArrayBuffer.test.js +48 -48
- package/src/utils/__tests__/utilsLang.isBoolean.test.js +56 -56
- package/src/utils/__tests__/utilsLang.isBuffer.test.js +47 -47
- package/src/utils/__tests__/utilsLang.isDate.test.js +54 -54
- package/src/utils/__tests__/utilsLang.isElement.test.js +53 -53
- package/src/utils/__tests__/utilsLang.isError.test.js +52 -52
- package/src/utils/__tests__/utilsLang.isFinite.test.js +57 -57
- package/src/utils/__tests__/utilsLang.isFunction.test.js +46 -46
- package/src/utils/__tests__/utilsLang.isInteger.test.js +58 -58
- package/src/utils/__tests__/utilsLang.isMap.test.js +50 -50
- package/src/utils/__tests__/utilsLang.isNaN.test.js +55 -55
- package/src/utils/__tests__/utilsLang.isNil.test.js +57 -57
- package/src/utils/__tests__/utilsLang.isNull.test.js +53 -53
- package/src/utils/__tests__/utilsLang.isNumber.test.js +54 -54
- package/src/utils/__tests__/utilsLang.isObject.test.js +49 -49
- package/src/utils/__tests__/utilsLang.isObjectLike.test.js +45 -45
- package/src/utils/__tests__/utilsLang.isPlainObject.test.js +60 -60
- package/src/utils/__tests__/utilsLang.isPromise.test.js +93 -93
- package/src/utils/__tests__/utilsLang.isRegExp.test.js +46 -46
- package/src/utils/__tests__/utilsLang.isSet.test.js +50 -50
- package/src/utils/__tests__/utilsLang.isString.test.js +50 -50
- package/src/utils/__tests__/utilsLang.isSymbol.test.js +45 -45
- package/src/utils/__tests__/utilsLang.isUndefined.test.js +57 -57
- package/src/utils/__tests__/utilsLang.isWeakMap.test.js +49 -49
- package/src/utils/__tests__/utilsLang.isWeakSet.test.js +49 -49
- package/src/utils/actions.js +67 -67
- package/src/utils/autosize.js +277 -277
- package/src/utils/isBrowser.js +12 -12
- package/src/utils/utils.js +253 -253
- package/src/utils/utilsArray.js +29 -29
- package/src/utils/utilsDOM.js +188 -188
- package/src/utils/utilsLang.js +346 -346
package/src/ATable/ATable.js
CHANGED
|
@@ -1,1163 +1,1163 @@
|
|
|
1
|
-
import {
|
|
2
|
-
computed,
|
|
3
|
-
h,
|
|
4
|
-
provide,
|
|
5
|
-
watch,
|
|
6
|
-
} from "vue";
|
|
7
|
-
|
|
8
|
-
import AGet from "../AGet/AGet";
|
|
9
|
-
import ALoading from "../ALoading/ALoading";
|
|
10
|
-
import APagination from "../APagination/APagination";
|
|
11
|
-
import ATableGroupedHeader from "./ATableGroupedHeader/ATableGroupedHeader";
|
|
12
|
-
import ATableHeader from "./ATableHeader/ATableHeader";
|
|
13
|
-
import ATablePreviewRight from "./ATablePreviewRight/ATablePreviewRight";
|
|
14
|
-
import ATableTopPanel from "./ATableTopPanel/ATableTopPanel";
|
|
15
|
-
import ATableTr from "./ATableTr/ATableTr";
|
|
16
|
-
import ATranslation from "../ATranslation/ATranslation";
|
|
17
|
-
import {
|
|
18
|
-
getRowIdOrIndex,
|
|
19
|
-
} from "./utils/utils";
|
|
20
|
-
|
|
21
|
-
import ColumnActionAPI from "./compositionAPI/ColumnActionAPI";
|
|
22
|
-
import ColumnsAPI from "./compositionAPI/ColumnsAPI";
|
|
23
|
-
import ColumnsGroupedAPI from "./compositionAPI/ColumnsGroupedAPI";
|
|
24
|
-
import ColumnsOrderingAPI from "./compositionAPI/ColumnsOrderingAPI";
|
|
25
|
-
import CountAPI from "./compositionAPI/CountAPI";
|
|
26
|
-
import FocusTableAPI from "./compositionAPI/FocusTableAPI";
|
|
27
|
-
import InitAPI from "./compositionAPI/InitAPI";
|
|
28
|
-
import LimitOffsetAPI from "./compositionAPI/LimitOffsetAPI";
|
|
29
|
-
import MobileColumnsAPI from "./compositionAPI/MobileColumnsAPI";
|
|
30
|
-
import MultipleActionAPI from "./compositionAPI/MultipleActionAPI";
|
|
31
|
-
import PreviewAPI from "./compositionAPI/PreviewAPI";
|
|
32
|
-
import RowsAPI from "./compositionAPI/RowsAPI";
|
|
33
|
-
import ScrollControlAPI from "./compositionAPI/ScrollControlAPI";
|
|
34
|
-
import SimpleTableAPI from "./compositionAPI/SimpleTableAPI";
|
|
35
|
-
import SortAPI from "./compositionAPI/SortAPI";
|
|
36
|
-
import SortChangeAPI from "./compositionAPI/SortChangeAPI";
|
|
37
|
-
import StickyAPI from "./compositionAPI/StickyAPI";
|
|
38
|
-
import TableAttributesAPI from "./compositionAPI/TableAttributesAPI";
|
|
39
|
-
import TableColumnsVisibleFunctionAPI from "./compositionAPI/TableColumnsVisibleFunctionAPI";
|
|
40
|
-
import TextsAPI from "./compositionAPI/TextsAPI";
|
|
41
|
-
import VariablesAPI from "./compositionAPI/VariablesAPI";
|
|
42
|
-
import ViewsAPI from "./compositionAPI/ViewsAPI";
|
|
43
|
-
import WidthAPI from "./compositionAPI/WidthAPI";
|
|
44
|
-
import {
|
|
45
|
-
PaginationModesAPI,
|
|
46
|
-
} from "./compositionAPI/PaginationModesAPI";
|
|
47
|
-
|
|
48
|
-
import {
|
|
49
|
-
tablePluginOptions,
|
|
50
|
-
} from "../plugins/ATablePlugin";
|
|
51
|
-
import {
|
|
52
|
-
isInteger,
|
|
53
|
-
uniqueId,
|
|
54
|
-
} from "lodash-es";
|
|
55
|
-
|
|
56
|
-
export default {
|
|
57
|
-
name: "ATable",
|
|
58
|
-
props: {
|
|
59
|
-
additionalSortingColumns: {
|
|
60
|
-
type: Array,
|
|
61
|
-
required: false,
|
|
62
|
-
default: () => [],
|
|
63
|
-
},
|
|
64
|
-
clearSelectedRowsOnDataChange: {
|
|
65
|
-
type: Boolean,
|
|
66
|
-
required: false,
|
|
67
|
-
default: true,
|
|
68
|
-
},
|
|
69
|
-
columnActionsOnePlusDropdownOptions: {
|
|
70
|
-
type: Object,
|
|
71
|
-
required: false,
|
|
72
|
-
default: () => ({
|
|
73
|
-
actionsClasses: ["a_btn a_btn_primary a_text_truncate"],
|
|
74
|
-
btnGroupClass: "a_btn_group a_btn_group_table",
|
|
75
|
-
hasDividerBeforeDropdown: false,
|
|
76
|
-
indexFirstDropdownAction: 1,
|
|
77
|
-
indexFirstDropdownActionMobile: 1,
|
|
78
|
-
minDropdownActions: 1,
|
|
79
|
-
}),
|
|
80
|
-
},
|
|
81
|
-
columnActionsView: {
|
|
82
|
-
type: String,
|
|
83
|
-
required: false,
|
|
84
|
-
default: "dropdown",
|
|
85
|
-
validator: value => ["onePlusDropdown", "onePlusDropdownEmptyPlace", "dropdown"].indexOf(value) !== -1,
|
|
86
|
-
},
|
|
87
|
-
columnActionsWidth: {
|
|
88
|
-
type: Number,
|
|
89
|
-
required: false,
|
|
90
|
-
default: undefined,
|
|
91
|
-
},
|
|
92
|
-
columnActionsWidthDefaults: {
|
|
93
|
-
type: Object,
|
|
94
|
-
required: false,
|
|
95
|
-
default: () => ({
|
|
96
|
-
default: 170,
|
|
97
|
-
min: 50,
|
|
98
|
-
onePlusDropdown: 320,
|
|
99
|
-
onePlusDropdownMin: 200,
|
|
100
|
-
btnGroupMaxWidth: 180,
|
|
101
|
-
}),
|
|
102
|
-
},
|
|
103
|
-
columnActionsWidthMin: {
|
|
104
|
-
type: Number,
|
|
105
|
-
required: false,
|
|
106
|
-
default: undefined,
|
|
107
|
-
},
|
|
108
|
-
columns: {
|
|
109
|
-
type: Array,
|
|
110
|
-
required: true,
|
|
111
|
-
},
|
|
112
|
-
columnsDefaultValue: {
|
|
113
|
-
type: [String, Number],
|
|
114
|
-
required: false,
|
|
115
|
-
default: "",
|
|
116
|
-
},
|
|
117
|
-
columnWidthDefault: {
|
|
118
|
-
type: Number,
|
|
119
|
-
required: false,
|
|
120
|
-
default: 250,
|
|
121
|
-
},
|
|
122
|
-
countAllRows: {
|
|
123
|
-
type: Number,
|
|
124
|
-
required: false,
|
|
125
|
-
default: undefined,
|
|
126
|
-
},
|
|
127
|
-
countVisibleMobileColumns: {
|
|
128
|
-
type: Number,
|
|
129
|
-
required: false,
|
|
130
|
-
default: 4,
|
|
131
|
-
validator: value => value > 0,
|
|
132
|
-
},
|
|
133
|
-
borderType: {
|
|
134
|
-
type: String,
|
|
135
|
-
required: false,
|
|
136
|
-
default: () => tablePluginOptions.value.propsDefault.borderType,
|
|
137
|
-
validator: value => ["bordered", "innerBordered"].indexOf(value) !== -1,
|
|
138
|
-
},
|
|
139
|
-
data: {
|
|
140
|
-
type: [Array, Object, Promise],
|
|
141
|
-
required: false,
|
|
142
|
-
},
|
|
143
|
-
disabledActions: {
|
|
144
|
-
type: Boolean,
|
|
145
|
-
required: false,
|
|
146
|
-
},
|
|
147
|
-
disabledMultipleActions: {
|
|
148
|
-
type: Boolean,
|
|
149
|
-
required: false,
|
|
150
|
-
},
|
|
151
|
-
disabledOptions: {
|
|
152
|
-
type: Boolean,
|
|
153
|
-
required: false,
|
|
154
|
-
},
|
|
155
|
-
disabledPreview: {
|
|
156
|
-
type: Boolean,
|
|
157
|
-
required: false,
|
|
158
|
-
},
|
|
159
|
-
disabledPreviewRowCallback: {
|
|
160
|
-
type: Function,
|
|
161
|
-
required: false,
|
|
162
|
-
},
|
|
163
|
-
disabledRowActions: {
|
|
164
|
-
type: Boolean,
|
|
165
|
-
required: false,
|
|
166
|
-
},
|
|
167
|
-
disabledSort: {
|
|
168
|
-
type: Boolean,
|
|
169
|
-
required: false,
|
|
170
|
-
},
|
|
171
|
-
disabledViews: {
|
|
172
|
-
type: Boolean,
|
|
173
|
-
required: false,
|
|
174
|
-
},
|
|
175
|
-
extra: {
|
|
176
|
-
type: Object,
|
|
177
|
-
required: false,
|
|
178
|
-
default: undefined,
|
|
179
|
-
},
|
|
180
|
-
hasMobile: {
|
|
181
|
-
type: Boolean,
|
|
182
|
-
required: false,
|
|
183
|
-
default: true,
|
|
184
|
-
},
|
|
185
|
-
hasScrollClass: {
|
|
186
|
-
type: Boolean,
|
|
187
|
-
required: false,
|
|
188
|
-
default: true,
|
|
189
|
-
},
|
|
190
|
-
id: {
|
|
191
|
-
type: String,
|
|
192
|
-
required: false,
|
|
193
|
-
default: () => uniqueId("a_table"),
|
|
194
|
-
},
|
|
195
|
-
isActionColumnVisible: {
|
|
196
|
-
type: Boolean,
|
|
197
|
-
required: false,
|
|
198
|
-
default: false,
|
|
199
|
-
},
|
|
200
|
-
isActionIconVisible: {
|
|
201
|
-
type: Boolean,
|
|
202
|
-
required: false,
|
|
203
|
-
default: true,
|
|
204
|
-
},
|
|
205
|
-
isColumnsDnd: {
|
|
206
|
-
type: Boolean,
|
|
207
|
-
required: false,
|
|
208
|
-
default: false,
|
|
209
|
-
},
|
|
210
|
-
isLabelVisible: {
|
|
211
|
-
type: Boolean,
|
|
212
|
-
required: false,
|
|
213
|
-
default: true,
|
|
214
|
-
},
|
|
215
|
-
isLoadingMultipleActions: {
|
|
216
|
-
type: Boolean,
|
|
217
|
-
required: false,
|
|
218
|
-
},
|
|
219
|
-
isLoadingOptions: {
|
|
220
|
-
type: Boolean,
|
|
221
|
-
required: false,
|
|
222
|
-
},
|
|
223
|
-
isLoadingTable: {
|
|
224
|
-
type: Boolean,
|
|
225
|
-
required: false,
|
|
226
|
-
},
|
|
227
|
-
isQuickSearch: {
|
|
228
|
-
type: Boolean,
|
|
229
|
-
required: false,
|
|
230
|
-
},
|
|
231
|
-
isSimpleTable: {
|
|
232
|
-
type: Boolean,
|
|
233
|
-
required: false,
|
|
234
|
-
default: false,
|
|
235
|
-
},
|
|
236
|
-
isSortingMultiColumn: {
|
|
237
|
-
type: Boolean,
|
|
238
|
-
required: false,
|
|
239
|
-
default: false,
|
|
240
|
-
},
|
|
241
|
-
isSortingOutside: {
|
|
242
|
-
type: Boolean,
|
|
243
|
-
required: false,
|
|
244
|
-
},
|
|
245
|
-
isTree: {
|
|
246
|
-
type: Boolean,
|
|
247
|
-
required: false,
|
|
248
|
-
},
|
|
249
|
-
isTreeCollapsible: {
|
|
250
|
-
type: Boolean,
|
|
251
|
-
required: false,
|
|
252
|
-
default: true,
|
|
253
|
-
},
|
|
254
|
-
isTreeOpened: {
|
|
255
|
-
type: Boolean,
|
|
256
|
-
required: false,
|
|
257
|
-
},
|
|
258
|
-
keyCountAllRowsInData: {
|
|
259
|
-
type: String,
|
|
260
|
-
required: false,
|
|
261
|
-
default: "count",
|
|
262
|
-
},
|
|
263
|
-
keyId: {
|
|
264
|
-
type: String,
|
|
265
|
-
required: false,
|
|
266
|
-
default: undefined,
|
|
267
|
-
},
|
|
268
|
-
keyChildren: {
|
|
269
|
-
type: String,
|
|
270
|
-
required: false,
|
|
271
|
-
default: "children",
|
|
272
|
-
},
|
|
273
|
-
label: {
|
|
274
|
-
type: [String, Number],
|
|
275
|
-
required: false,
|
|
276
|
-
default: "",
|
|
277
|
-
},
|
|
278
|
-
labelClass: {
|
|
279
|
-
type: [String, Object],
|
|
280
|
-
required: false,
|
|
281
|
-
default: undefined,
|
|
282
|
-
},
|
|
283
|
-
labelTag: {
|
|
284
|
-
type: String,
|
|
285
|
-
required: false,
|
|
286
|
-
default: "h2",
|
|
287
|
-
},
|
|
288
|
-
modelColumnsOrdering: {
|
|
289
|
-
type: Array,
|
|
290
|
-
required: false,
|
|
291
|
-
default: () => [],
|
|
292
|
-
},
|
|
293
|
-
modelColumnsVisible: {
|
|
294
|
-
type: Object,
|
|
295
|
-
required: false,
|
|
296
|
-
default: () => ({}),
|
|
297
|
-
},
|
|
298
|
-
modelIsTableWithoutScrollStart: {
|
|
299
|
-
type: Boolean,
|
|
300
|
-
required: false,
|
|
301
|
-
default: false,
|
|
302
|
-
},
|
|
303
|
-
modelQuickSearch: {
|
|
304
|
-
type: String,
|
|
305
|
-
required: false,
|
|
306
|
-
default: "",
|
|
307
|
-
},
|
|
308
|
-
modelSort: {
|
|
309
|
-
type: [String, Array],
|
|
310
|
-
required: false,
|
|
311
|
-
default: () => [],
|
|
312
|
-
},
|
|
313
|
-
modelView: {
|
|
314
|
-
type: [String, Number],
|
|
315
|
-
required: false,
|
|
316
|
-
default: undefined,
|
|
317
|
-
},
|
|
318
|
-
multipleActions: {
|
|
319
|
-
type: Array,
|
|
320
|
-
required: false,
|
|
321
|
-
default: () => [],
|
|
322
|
-
},
|
|
323
|
-
offsetStart: {
|
|
324
|
-
type: Number,
|
|
325
|
-
required: false,
|
|
326
|
-
default: 0,
|
|
327
|
-
},
|
|
328
|
-
pagination: {
|
|
329
|
-
type: Object,
|
|
330
|
-
required: false,
|
|
331
|
-
default: () => ({
|
|
332
|
-
use: false,
|
|
333
|
-
maxPages: 5,
|
|
334
|
-
limitsPerPage: [],
|
|
335
|
-
limitStart: 10,
|
|
336
|
-
disabled: false,
|
|
337
|
-
isOutside: false,
|
|
338
|
-
outside: false,
|
|
339
|
-
position: "bottom",
|
|
340
|
-
modes: {
|
|
341
|
-
/*
|
|
342
|
-
* perPage: inline / select
|
|
343
|
-
* pagination: normal / short / loadMore
|
|
344
|
-
*/
|
|
345
|
-
desktop: {
|
|
346
|
-
pagination: {
|
|
347
|
-
mode: "normal",
|
|
348
|
-
position: 0,
|
|
349
|
-
},
|
|
350
|
-
perPage: {
|
|
351
|
-
mode: "inline",
|
|
352
|
-
position: 1,
|
|
353
|
-
},
|
|
354
|
-
},
|
|
355
|
-
mobile: {
|
|
356
|
-
pagination: {
|
|
357
|
-
mode: "loadMore",
|
|
358
|
-
},
|
|
359
|
-
},
|
|
360
|
-
},
|
|
361
|
-
}),
|
|
362
|
-
},
|
|
363
|
-
preview: {
|
|
364
|
-
type: String,
|
|
365
|
-
required: false,
|
|
366
|
-
default: undefined,
|
|
367
|
-
validator: value => ["right", "down"].indexOf(value) !== -1,
|
|
368
|
-
},
|
|
369
|
-
previewBoxWidth: {
|
|
370
|
-
type: Number,
|
|
371
|
-
required: false,
|
|
372
|
-
default: 300,
|
|
373
|
-
},
|
|
374
|
-
previewStyles: {
|
|
375
|
-
type: [String, Object],
|
|
376
|
-
required: false,
|
|
377
|
-
default: undefined,
|
|
378
|
-
},
|
|
379
|
-
rowActions: {
|
|
380
|
-
type: Array,
|
|
381
|
-
required: false,
|
|
382
|
-
default: () => [],
|
|
383
|
-
},
|
|
384
|
-
rowActionsClass: {
|
|
385
|
-
type: [String, Object],
|
|
386
|
-
required: false,
|
|
387
|
-
default: undefined,
|
|
388
|
-
},
|
|
389
|
-
rowActionsSticky: {
|
|
390
|
-
type: Boolean,
|
|
391
|
-
required: false,
|
|
392
|
-
default: true,
|
|
393
|
-
},
|
|
394
|
-
rowClass: {
|
|
395
|
-
type: [String, Object, Function],
|
|
396
|
-
required: false,
|
|
397
|
-
default: undefined,
|
|
398
|
-
},
|
|
399
|
-
rowsCountRenderPerTick: {
|
|
400
|
-
type: Number,
|
|
401
|
-
required: false,
|
|
402
|
-
default: 25,
|
|
403
|
-
validator: value => isInteger(value) && value >= 0,
|
|
404
|
-
},
|
|
405
|
-
rowsFooter: {
|
|
406
|
-
type: Array,
|
|
407
|
-
required: false,
|
|
408
|
-
default: () => [],
|
|
409
|
-
},
|
|
410
|
-
showCount: {
|
|
411
|
-
type: Boolean,
|
|
412
|
-
required: false,
|
|
413
|
-
default: true,
|
|
414
|
-
},
|
|
415
|
-
showFirstSortingSequenceNumber: {
|
|
416
|
-
type: Boolean,
|
|
417
|
-
required: false,
|
|
418
|
-
default: false,
|
|
419
|
-
},
|
|
420
|
-
sortingMultiColumnKey: {
|
|
421
|
-
type: String,
|
|
422
|
-
required: false,
|
|
423
|
-
default: "shift",
|
|
424
|
-
validator: value => ["shift", "ctrl", "alt"].indexOf(value) !== -1,
|
|
425
|
-
},
|
|
426
|
-
sortingSequenceNumberClass: {
|
|
427
|
-
type: [String, Object],
|
|
428
|
-
required: false,
|
|
429
|
-
default: "a_badge",
|
|
430
|
-
},
|
|
431
|
-
tableActions: {
|
|
432
|
-
type: Array,
|
|
433
|
-
required: false,
|
|
434
|
-
default: () => [],
|
|
435
|
-
},
|
|
436
|
-
tableActionsIndexFirstDropdownAction: {
|
|
437
|
-
type: Number,
|
|
438
|
-
required: false,
|
|
439
|
-
default: -1,
|
|
440
|
-
},
|
|
441
|
-
tableActionsIndexFirstDropdownActionMobile: {
|
|
442
|
-
type: Number,
|
|
443
|
-
required: false,
|
|
444
|
-
default: 0,
|
|
445
|
-
},
|
|
446
|
-
texts: {
|
|
447
|
-
type: Object,
|
|
448
|
-
required: false,
|
|
449
|
-
default: () => ({
|
|
450
|
-
empty: "_A_TABLE_EMPTY_TEXT_",
|
|
451
|
-
}),
|
|
452
|
-
},
|
|
453
|
-
useAdditionalSorting: {
|
|
454
|
-
type: Boolean,
|
|
455
|
-
required: false,
|
|
456
|
-
default: true,
|
|
457
|
-
},
|
|
458
|
-
useViewSlot: {
|
|
459
|
-
type: Boolean,
|
|
460
|
-
required: false,
|
|
461
|
-
},
|
|
462
|
-
useRem: {
|
|
463
|
-
type: Boolean,
|
|
464
|
-
required: false,
|
|
465
|
-
default: true,
|
|
466
|
-
},
|
|
467
|
-
valuesForColumnDefault: {
|
|
468
|
-
type: Array,
|
|
469
|
-
required: false,
|
|
470
|
-
default: () => [null, undefined, ""],
|
|
471
|
-
},
|
|
472
|
-
views: {
|
|
473
|
-
type: Array,
|
|
474
|
-
required: false,
|
|
475
|
-
default: () => [],
|
|
476
|
-
},
|
|
477
|
-
},
|
|
478
|
-
emits: [
|
|
479
|
-
"changeColumnsOrdering",
|
|
480
|
-
"changeColumnsVisible",
|
|
481
|
-
"changeLimit",
|
|
482
|
-
"changeOffset",
|
|
483
|
-
"changeSorting",
|
|
484
|
-
"mouseupResizePreviewRight",
|
|
485
|
-
"initTable",
|
|
486
|
-
"togglePreview",
|
|
487
|
-
"toggleMultipleActions",
|
|
488
|
-
"update:modelColumnsOrder",
|
|
489
|
-
"update:modelColumnsVisible",
|
|
490
|
-
"update:modelQuickSearch",
|
|
491
|
-
"updateModelIsTableWithoutScroll",
|
|
492
|
-
"updateView",
|
|
493
|
-
],
|
|
494
|
-
provide() {
|
|
495
|
-
return {
|
|
496
|
-
changeModelColumnsVisible: this.changeModelColumnsVisible,
|
|
497
|
-
columnActionsOnePlusDropdownOptions: computed(() => this.columnActionsOnePlusDropdownOptions),
|
|
498
|
-
columns: computed(() => this.columns),
|
|
499
|
-
columnsDefaultValue: computed(() => this.columnsDefaultValue),
|
|
500
|
-
isLoadingOptions: computed(() => this.isLoadingOptions),
|
|
501
|
-
isLoadingTable: computed(() => this.isLoadingTable),
|
|
502
|
-
keyId: computed(() => this.keyId),
|
|
503
|
-
rowActions: computed(() => this.rowActions),
|
|
504
|
-
tableId: computed(() => this.id),
|
|
505
|
-
valuesForColumnDefault: computed(() => this.valuesForColumnDefault),
|
|
506
|
-
useRem: computed(() => this.useRem),
|
|
507
|
-
};
|
|
508
|
-
},
|
|
509
|
-
setup(props, context) {
|
|
510
|
-
const {
|
|
511
|
-
columnActionsWidthDefaultsRemLocal,
|
|
512
|
-
columnActionsWidthMinRemLocal,
|
|
513
|
-
columnActionsWidthRemLocal,
|
|
514
|
-
columnWidthDefaultRemLocal,
|
|
515
|
-
previewBoxWidthRemLocal,
|
|
516
|
-
} = WidthAPI(props);
|
|
517
|
-
|
|
518
|
-
const {
|
|
519
|
-
initModelIsTableWithoutScroll,
|
|
520
|
-
isActionColumnVisibleLocal,
|
|
521
|
-
isActionIconVisibleLocal,
|
|
522
|
-
isColumnsDndLocal,
|
|
523
|
-
isMobile,
|
|
524
|
-
modelIsTableWithoutScroll,
|
|
525
|
-
modelIsTableWithoutScrollComputed,
|
|
526
|
-
} = SimpleTableAPI(props);
|
|
527
|
-
|
|
528
|
-
const {
|
|
529
|
-
countAllRowsLocal,
|
|
530
|
-
} = CountAPI(props);
|
|
531
|
-
|
|
532
|
-
const {
|
|
533
|
-
columnsScrollInvisible,
|
|
534
|
-
indexFirstScrollInvisibleColumn,
|
|
535
|
-
isMultipleActionsActive,
|
|
536
|
-
modelColumnsVisibleLocal,
|
|
537
|
-
tableGrandparentRef,
|
|
538
|
-
tableRef,
|
|
539
|
-
} = VariablesAPI(props);
|
|
540
|
-
|
|
541
|
-
const {
|
|
542
|
-
scrollToTable,
|
|
543
|
-
setFocusToTable,
|
|
544
|
-
} = FocusTableAPI({
|
|
545
|
-
tableRef,
|
|
546
|
-
});
|
|
547
|
-
|
|
548
|
-
const {
|
|
549
|
-
hasViews,
|
|
550
|
-
initViewCurrent,
|
|
551
|
-
isViewTableVisible,
|
|
552
|
-
updateViewCurrent,
|
|
553
|
-
viewCurrent,
|
|
554
|
-
} = ViewsAPI(props, context, {
|
|
555
|
-
closePreviewAll,
|
|
556
|
-
});
|
|
557
|
-
|
|
558
|
-
const {
|
|
559
|
-
dataSorted,
|
|
560
|
-
initModelSort,
|
|
561
|
-
modelSortLocal,
|
|
562
|
-
useAdditionalSortingLocal,
|
|
563
|
-
} = SortAPI(props, {
|
|
564
|
-
viewCurrent,
|
|
565
|
-
});
|
|
566
|
-
|
|
567
|
-
const {
|
|
568
|
-
columnsOrderedFromSimpleTable,
|
|
569
|
-
renderedGroupedColumns,
|
|
570
|
-
} = ColumnsGroupedAPI(props, {
|
|
571
|
-
modelSort: modelSortLocal,
|
|
572
|
-
});
|
|
573
|
-
|
|
574
|
-
const {
|
|
575
|
-
columnIdsGroupByLocked,
|
|
576
|
-
columnsFilteredForRender,
|
|
577
|
-
columnsFilteredForRenderIndexesMapping,
|
|
578
|
-
columnsOrdered,
|
|
579
|
-
countNotHiddenColumns,
|
|
580
|
-
} = ColumnsAPI(props, {
|
|
581
|
-
columnsScrollInvisible,
|
|
582
|
-
indexFirstScrollInvisibleColumn,
|
|
583
|
-
modelColumnsVisibleLocal,
|
|
584
|
-
modelIsTableWithoutScrollComputed,
|
|
585
|
-
columnsOrderedFromSimpleTable,
|
|
586
|
-
});
|
|
587
|
-
|
|
588
|
-
const {
|
|
589
|
-
changeLimit,
|
|
590
|
-
changeOffset,
|
|
591
|
-
initLocalVars,
|
|
592
|
-
limit,
|
|
593
|
-
offset,
|
|
594
|
-
usePaginationBottom,
|
|
595
|
-
usePaginationLocal,
|
|
596
|
-
usePaginationTop,
|
|
597
|
-
} = LimitOffsetAPI(props, context, {
|
|
598
|
-
closePreviewAll,
|
|
599
|
-
scrollToTable,
|
|
600
|
-
setFocusToTable,
|
|
601
|
-
viewCurrent,
|
|
602
|
-
});
|
|
603
|
-
|
|
604
|
-
const {
|
|
605
|
-
addRow,
|
|
606
|
-
deleteRow,
|
|
607
|
-
hasRows,
|
|
608
|
-
rowsLocal,
|
|
609
|
-
rowsLocalAll,
|
|
610
|
-
rowsLocalLength,
|
|
611
|
-
stopRenderRows,
|
|
612
|
-
updateRow,
|
|
613
|
-
} = RowsAPI(props, {
|
|
614
|
-
dataSorted,
|
|
615
|
-
limit,
|
|
616
|
-
offset,
|
|
617
|
-
setEmptySelectedRowsIndexes,
|
|
618
|
-
usePaginationLocal,
|
|
619
|
-
});
|
|
620
|
-
|
|
621
|
-
const {
|
|
622
|
-
columnActionsBtnGroupMaxWidthStyle,
|
|
623
|
-
columnActionsWidthLocal,
|
|
624
|
-
columnActionsWidthMinLocal,
|
|
625
|
-
isColumnActionWide,
|
|
626
|
-
} = ColumnActionAPI(props, {
|
|
627
|
-
columnActionsWidthDefaultsRemLocal,
|
|
628
|
-
columnActionsWidthMinRemLocal,
|
|
629
|
-
columnActionsWidthRemLocal,
|
|
630
|
-
isMobile,
|
|
631
|
-
rowsLocal,
|
|
632
|
-
});
|
|
633
|
-
|
|
634
|
-
const {
|
|
635
|
-
aTableRef,
|
|
636
|
-
changeModelIsTableWithoutScroll,
|
|
637
|
-
checkVisibleColumns,
|
|
638
|
-
columnsVisibleAdditionalSpaceForOneGrow,
|
|
639
|
-
onWatchMobileScrollControl,
|
|
640
|
-
} = ScrollControlAPI(props, context, {
|
|
641
|
-
columnActionsWidthLocal,
|
|
642
|
-
columnActionsWidthMinLocal,
|
|
643
|
-
columnsOrdered,
|
|
644
|
-
columnsScrollInvisible,
|
|
645
|
-
columnWidthDefaultRemLocal,
|
|
646
|
-
indexFirstScrollInvisibleColumn,
|
|
647
|
-
isMobile,
|
|
648
|
-
isMultipleActionsActive,
|
|
649
|
-
modelColumnsVisibleLocal,
|
|
650
|
-
modelIsTableWithoutScroll,
|
|
651
|
-
modelIsTableWithoutScrollComputed,
|
|
652
|
-
});
|
|
653
|
-
|
|
654
|
-
const {
|
|
655
|
-
changeColumnsOrdering,
|
|
656
|
-
checkColumnsOrdering,
|
|
657
|
-
} = ColumnsOrderingAPI(props, context, {
|
|
658
|
-
checkVisibleColumns,
|
|
659
|
-
columnIdsGroupByLocked,
|
|
660
|
-
columnsFilteredForRenderIndexesMapping,
|
|
661
|
-
});
|
|
662
|
-
|
|
663
|
-
const {
|
|
664
|
-
isRowActionsStickyLocal,
|
|
665
|
-
} = StickyAPI(props, {
|
|
666
|
-
isMobile,
|
|
667
|
-
modelIsTableWithoutScrollComputed,
|
|
668
|
-
});
|
|
669
|
-
|
|
670
|
-
const {
|
|
671
|
-
areAllRowsSelected,
|
|
672
|
-
areAllVisibleRowsSelected,
|
|
673
|
-
areSomeRowsSelected,
|
|
674
|
-
closeMultipleActionsActive,
|
|
675
|
-
currentMultipleActions,
|
|
676
|
-
hasMultipleActions,
|
|
677
|
-
selectedRows,
|
|
678
|
-
selectedRowsIndexes,
|
|
679
|
-
setEmptySelectedRowsIndexes: _setEmptySelectedRowsIndexes,
|
|
680
|
-
setSelectedRowsIndexes,
|
|
681
|
-
toggleBtnAllRows,
|
|
682
|
-
toggleMultipleActionsActive,
|
|
683
|
-
} = MultipleActionAPI(props, context, {
|
|
684
|
-
checkVisibleColumns,
|
|
685
|
-
isMultipleActionsActive,
|
|
686
|
-
rowsLocalAll,
|
|
687
|
-
rowsLocalLength,
|
|
688
|
-
});
|
|
689
|
-
|
|
690
|
-
const {
|
|
691
|
-
changeModelColumnsVisible,
|
|
692
|
-
} = TableColumnsVisibleFunctionAPI(props, context, {
|
|
693
|
-
modelColumnsVisibleLocal,
|
|
694
|
-
checkVisibleColumns,
|
|
695
|
-
});
|
|
696
|
-
|
|
697
|
-
const {
|
|
698
|
-
closePreview,
|
|
699
|
-
closePreviewAll: _closePreviewAll,
|
|
700
|
-
hasPreview,
|
|
701
|
-
isPreviewRightOpen,
|
|
702
|
-
onTogglePreview,
|
|
703
|
-
mousedownResizePreviewRight,
|
|
704
|
-
mousemoveResizePreviewRight,
|
|
705
|
-
mouseupResizePreviewRight,
|
|
706
|
-
previewDownRowIds,
|
|
707
|
-
previewRightRowIndex,
|
|
708
|
-
previewRightRowIndexLast,
|
|
709
|
-
togglePreviewResize,
|
|
710
|
-
} = PreviewAPI(props, context, {
|
|
711
|
-
aTableRef,
|
|
712
|
-
isMobile,
|
|
713
|
-
previewBoxWidthRemLocal,
|
|
714
|
-
rowsLocalAll,
|
|
715
|
-
tableGrandparentRef,
|
|
716
|
-
});
|
|
717
|
-
|
|
718
|
-
const {
|
|
719
|
-
tableChildRole,
|
|
720
|
-
tableLabelId,
|
|
721
|
-
tableRoleAttributes,
|
|
722
|
-
} = TableAttributesAPI(props, {
|
|
723
|
-
countNotHiddenColumns,
|
|
724
|
-
isMobile,
|
|
725
|
-
});
|
|
726
|
-
|
|
727
|
-
const {
|
|
728
|
-
allVisibleMobileColumns,
|
|
729
|
-
} = MobileColumnsAPI({
|
|
730
|
-
columnsOrdered,
|
|
731
|
-
isMobile,
|
|
732
|
-
modelColumnsVisibleLocal,
|
|
733
|
-
});
|
|
734
|
-
|
|
735
|
-
const {
|
|
736
|
-
changeModelSort,
|
|
737
|
-
} = SortChangeAPI(props, context, {
|
|
738
|
-
modelSortLocal,
|
|
739
|
-
closePreviewAll,
|
|
740
|
-
});
|
|
741
|
-
|
|
742
|
-
const {
|
|
743
|
-
paginationModes,
|
|
744
|
-
} = PaginationModesAPI(props, {
|
|
745
|
-
isMobile,
|
|
746
|
-
});
|
|
747
|
-
|
|
748
|
-
const {
|
|
749
|
-
initTable,
|
|
750
|
-
} = InitAPI(props, context, {
|
|
751
|
-
checkColumnsOrdering,
|
|
752
|
-
checkVisibleColumns,
|
|
753
|
-
modelColumnsVisibleLocal,
|
|
754
|
-
});
|
|
755
|
-
|
|
756
|
-
const {
|
|
757
|
-
emptyText,
|
|
758
|
-
} = TextsAPI(props);
|
|
759
|
-
|
|
760
|
-
function closePreviewAll() {
|
|
761
|
-
_closePreviewAll();
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
function setEmptySelectedRowsIndexes() {
|
|
765
|
-
_setEmptySelectedRowsIndexes();
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
watch(isMobile, newValue => {
|
|
769
|
-
onWatchMobileScrollControl(newValue);
|
|
770
|
-
closePreviewAll();
|
|
771
|
-
});
|
|
772
|
-
|
|
773
|
-
watch(isColumnActionWide, (newValue, oldValue) => {
|
|
774
|
-
if (newValue !== oldValue) {
|
|
775
|
-
checkVisibleColumns();
|
|
776
|
-
}
|
|
777
|
-
});
|
|
778
|
-
|
|
779
|
-
provide("changeModelIsTableWithoutScroll", changeModelIsTableWithoutScroll);
|
|
780
|
-
provide("changeModelSort", changeModelSort);
|
|
781
|
-
provide("columnsOrdered", columnsOrdered);
|
|
782
|
-
provide("columnsFilteredForRender", columnsFilteredForRender);
|
|
783
|
-
provide("columnsScrollInvisible", columnsScrollInvisible);
|
|
784
|
-
provide("columnWidthDefault", columnWidthDefaultRemLocal);
|
|
785
|
-
provide("columnsVisibleAdditionalSpaceForOneGrow", columnsVisibleAdditionalSpaceForOneGrow);
|
|
786
|
-
provide("columnActionsWidthLocal", columnActionsWidthLocal);
|
|
787
|
-
provide("columnActionsWidthMinLocal", columnActionsWidthMinLocal);
|
|
788
|
-
provide("currentMultipleActions", currentMultipleActions);
|
|
789
|
-
provide("hasPreview", hasPreview);
|
|
790
|
-
provide("indexFirstScrollInvisibleColumn", indexFirstScrollInvisibleColumn);
|
|
791
|
-
provide("isActionColumnVisible", isActionColumnVisibleLocal);
|
|
792
|
-
provide("isActionIconVisible", isActionIconVisibleLocal);
|
|
793
|
-
provide("isColumnsDnd", isColumnsDndLocal);
|
|
794
|
-
provide("isMobile", isMobile);
|
|
795
|
-
provide("isMultipleActionsActive", isMultipleActionsActive);
|
|
796
|
-
provide("modelIsTableWithoutScroll", modelIsTableWithoutScrollComputed);
|
|
797
|
-
provide("onTogglePreview", onTogglePreview);
|
|
798
|
-
provide("previewRightRowIndex", previewRightRowIndex);
|
|
799
|
-
provide("previewRightRowIndexLast", previewRightRowIndexLast);
|
|
800
|
-
|
|
801
|
-
provide("rowsLocalAll", rowsLocalAll);
|
|
802
|
-
provide("modelColumnsVisibleLocal", modelColumnsVisibleLocal);
|
|
803
|
-
provide("changeColumnsOrdering", changeColumnsOrdering);
|
|
804
|
-
|
|
805
|
-
initLocalVars();
|
|
806
|
-
initModelIsTableWithoutScroll();
|
|
807
|
-
initViewCurrent();
|
|
808
|
-
initTable();
|
|
809
|
-
initModelSort();
|
|
810
|
-
|
|
811
|
-
return {
|
|
812
|
-
addRow,
|
|
813
|
-
allVisibleMobileColumns,
|
|
814
|
-
areAllRowsSelected,
|
|
815
|
-
areAllVisibleRowsSelected,
|
|
816
|
-
areSomeRowsSelected,
|
|
817
|
-
aTableRef,
|
|
818
|
-
changeLimit,
|
|
819
|
-
changeModelColumnsVisible,
|
|
820
|
-
changeOffset,
|
|
821
|
-
checkVisibleColumns,
|
|
822
|
-
closeMultipleActionsActive,
|
|
823
|
-
closePreview,
|
|
824
|
-
closePreviewAll,
|
|
825
|
-
columnActionsBtnGroupMaxWidthStyle,
|
|
826
|
-
columnsFilteredForRender,
|
|
827
|
-
columnsOrdered,
|
|
828
|
-
countAllRowsLocal,
|
|
829
|
-
deleteRow,
|
|
830
|
-
emptyText,
|
|
831
|
-
hasMultipleActions,
|
|
832
|
-
hasRows,
|
|
833
|
-
hasViews,
|
|
834
|
-
isMobile,
|
|
835
|
-
isMultipleActionsActive,
|
|
836
|
-
isPreviewRightOpen,
|
|
837
|
-
isRowActionsStickyLocal,
|
|
838
|
-
isViewTableVisible,
|
|
839
|
-
limit,
|
|
840
|
-
modelColumnsVisibleLocal,
|
|
841
|
-
modelIsTableWithoutScrollComputed,
|
|
842
|
-
modelSortLocal,
|
|
843
|
-
mousedownResizePreviewRight,
|
|
844
|
-
mousemoveResizePreviewRight,
|
|
845
|
-
mouseupResizePreviewRight,
|
|
846
|
-
offset,
|
|
847
|
-
onTogglePreview,
|
|
848
|
-
paginationModes,
|
|
849
|
-
previewDownRowIds,
|
|
850
|
-
previewRightRowIndex,
|
|
851
|
-
renderedGroupedColumns,
|
|
852
|
-
rowsLocal,
|
|
853
|
-
rowsLocalAll,
|
|
854
|
-
rowsLocalLength,
|
|
855
|
-
selectedRows,
|
|
856
|
-
selectedRowsIndexes,
|
|
857
|
-
setEmptySelectedRowsIndexes,
|
|
858
|
-
setSelectedRowsIndexes,
|
|
859
|
-
stopRenderRows,
|
|
860
|
-
tableChildRole,
|
|
861
|
-
tableGrandparentRef,
|
|
862
|
-
tableLabelId,
|
|
863
|
-
tableRef,
|
|
864
|
-
tableRoleAttributes,
|
|
865
|
-
toggleBtnAllRows,
|
|
866
|
-
toggleMultipleActionsActive,
|
|
867
|
-
togglePreviewResize,
|
|
868
|
-
updateRow,
|
|
869
|
-
updateViewCurrent,
|
|
870
|
-
useAdditionalSortingLocal,
|
|
871
|
-
usePaginationBottom,
|
|
872
|
-
usePaginationLocal,
|
|
873
|
-
usePaginationTop,
|
|
874
|
-
viewCurrent,
|
|
875
|
-
};
|
|
876
|
-
},
|
|
877
|
-
data() {
|
|
878
|
-
return {
|
|
879
|
-
resolved: undefined,
|
|
880
|
-
error: undefined,
|
|
881
|
-
};
|
|
882
|
-
},
|
|
883
|
-
computed: {
|
|
884
|
-
hasRowsFooter() {
|
|
885
|
-
return this.rowsFooter.length > 0;
|
|
886
|
-
},
|
|
887
|
-
},
|
|
888
|
-
methods: {
|
|
889
|
-
updateModelQuickSearch(model) {
|
|
890
|
-
this.$emit("update:modelQuickSearch", model);
|
|
891
|
-
},
|
|
892
|
-
},
|
|
893
|
-
render() {
|
|
894
|
-
return h("div", {
|
|
895
|
-
ref: "tableGrandparentRef",
|
|
896
|
-
class: ["a_table__grandparent", {
|
|
897
|
-
a_table_mobile: this.isMobile,
|
|
898
|
-
a_table__grandparent_without_scroll: !this.hasScrollClass,
|
|
899
|
-
}],
|
|
900
|
-
}, [
|
|
901
|
-
this.$slots.tablePrepend &&
|
|
902
|
-
this.$slots.tablePrepend({
|
|
903
|
-
id: this.id,
|
|
904
|
-
}),
|
|
905
|
-
h("div", {
|
|
906
|
-
ref: "aTableRef",
|
|
907
|
-
class: ["a_table__parent", {
|
|
908
|
-
a_table__parent_scrollable: this.hasScrollClass && !this.modelIsTableWithoutScrollComputed,
|
|
909
|
-
}],
|
|
910
|
-
}, [
|
|
911
|
-
h(ATableTopPanel, {
|
|
912
|
-
additionalSortingColumns: this.additionalSortingColumns,
|
|
913
|
-
areAllRowsSelected: this.areAllRowsSelected,
|
|
914
|
-
areSomeRowsSelected: this.areSomeRowsSelected,
|
|
915
|
-
closeMultipleActionsActive: this.closeMultipleActionsActive,
|
|
916
|
-
countAllRows: this.countAllRowsLocal,
|
|
917
|
-
disabledActions: this.disabledActions,
|
|
918
|
-
disabledMultipleActions: this.disabledMultipleActions,
|
|
919
|
-
disabledSort: this.disabledSort,
|
|
920
|
-
disabledViews: this.disabledViews,
|
|
921
|
-
extra: this.extra,
|
|
922
|
-
hasViews: this.hasViews,
|
|
923
|
-
isLabelVisible: this.isLabelVisible,
|
|
924
|
-
isLoadingMultipleActions: this.isLoadingMultipleActions,
|
|
925
|
-
isQuickSearch: this.isQuickSearch,
|
|
926
|
-
isSortingMultiColumn: this.isSortingMultiColumn,
|
|
927
|
-
label: this.label,
|
|
928
|
-
labelClass: this.labelClass,
|
|
929
|
-
labelTag: this.labelTag,
|
|
930
|
-
modelQuickSearch: this.modelQuickSearch,
|
|
931
|
-
modelSort: this.modelSortLocal,
|
|
932
|
-
modelView: this.modelView,
|
|
933
|
-
multipleActions: this.multipleActions,
|
|
934
|
-
selectedRows: this.selectedRows,
|
|
935
|
-
showCount: this.showCount,
|
|
936
|
-
tableActions: this.tableActions,
|
|
937
|
-
tableActionsIndexFirstDropdownAction: this.tableActionsIndexFirstDropdownAction,
|
|
938
|
-
tableActionsIndexFirstDropdownActionMobile: this.tableActionsIndexFirstDropdownActionMobile,
|
|
939
|
-
useAdditionalSorting: this.useAdditionalSortingLocal,
|
|
940
|
-
useViewSlot: this.useViewSlot,
|
|
941
|
-
viewCurrent: this.viewCurrent,
|
|
942
|
-
views: this.views,
|
|
943
|
-
onUpdateViewCurrent: this.updateViewCurrent,
|
|
944
|
-
onUpdateModelQuickSearch: this.updateModelQuickSearch,
|
|
945
|
-
onToggleMultipleActionsActive: this.toggleMultipleActionsActive,
|
|
946
|
-
onToggleBtnAllRows: this.toggleBtnAllRows,
|
|
947
|
-
}, this.$slots),
|
|
948
|
-
this.$slots.topPanelAppend ?
|
|
949
|
-
this.$slots.topPanelAppend() :
|
|
950
|
-
"",
|
|
951
|
-
(this.usePaginationLocal && this.usePaginationTop && this.hasRows) ?
|
|
952
|
-
h(APagination, {
|
|
953
|
-
class: "a_table__pagination_top",
|
|
954
|
-
disabled: this.pagination.disabled,
|
|
955
|
-
limit: this.limit,
|
|
956
|
-
limitsPerPage: this.pagination.limitsPerPage,
|
|
957
|
-
modes: this.paginationModes,
|
|
958
|
-
maxPages: this.pagination.maxPages,
|
|
959
|
-
offset: this.offset,
|
|
960
|
-
rowsLength: this.rowsLocalLength,
|
|
961
|
-
totalCount: this.countAllRowsLocal,
|
|
962
|
-
"onUpdate:limit": this.changeLimit,
|
|
963
|
-
"onUpdate:offset": this.changeOffset,
|
|
964
|
-
}) :
|
|
965
|
-
"",
|
|
966
|
-
this.isViewTableVisible && h("div", {
|
|
967
|
-
ref: "tableRef",
|
|
968
|
-
"aria-labelledby": this.isLabelVisible ?
|
|
969
|
-
this.tableLabelId :
|
|
970
|
-
undefined,
|
|
971
|
-
class: [
|
|
972
|
-
"a_table",
|
|
973
|
-
{
|
|
974
|
-
a_table_simple: this.isSimpleTable,
|
|
975
|
-
a_table_bordered: this.borderType === "bordered",
|
|
976
|
-
a_table_inner_bordered: this.borderType === "innerBordered",
|
|
977
|
-
},
|
|
978
|
-
],
|
|
979
|
-
...this.tableRoleAttributes,
|
|
980
|
-
}, [
|
|
981
|
-
this.isSimpleTable ?
|
|
982
|
-
h(ATableGroupedHeader, {
|
|
983
|
-
areAllRowsSelected: this.areAllRowsSelected,
|
|
984
|
-
areAllVisibleRowsSelected: this.areAllVisibleRowsSelected,
|
|
985
|
-
areSomeRowsSelected: this.areSomeRowsSelected,
|
|
986
|
-
disabledOptions: this.disabledOptions,
|
|
987
|
-
disabledSort: this.disabledSort,
|
|
988
|
-
hasMultipleActions: this.hasMultipleActions,
|
|
989
|
-
isRowActionsStickyLocal: this.isRowActionsStickyLocal,
|
|
990
|
-
isSortingMultiColumn: this.isSortingMultiColumn,
|
|
991
|
-
modelSort: this.modelSortLocal,
|
|
992
|
-
rowsLocalLength: this.rowsLocalLength,
|
|
993
|
-
showFirstSortingSequenceNumber: this.showFirstSortingSequenceNumber,
|
|
994
|
-
sortingSequenceNumberClass: this.sortingSequenceNumberClass,
|
|
995
|
-
onSetSelectedRowsIndexes: this.setSelectedRowsIndexes,
|
|
996
|
-
columnsForRender: this.renderedGroupedColumns,
|
|
997
|
-
}) :
|
|
998
|
-
h(ATableHeader, {
|
|
999
|
-
areAllRowsSelected: this.areAllRowsSelected,
|
|
1000
|
-
areAllVisibleRowsSelected: this.areAllVisibleRowsSelected,
|
|
1001
|
-
areSomeRowsSelected: this.areSomeRowsSelected,
|
|
1002
|
-
disabledOptions: this.disabledOptions,
|
|
1003
|
-
disabledSort: this.disabledSort,
|
|
1004
|
-
hasMultipleActions: this.hasMultipleActions,
|
|
1005
|
-
isRowActionsStickyLocal: this.isRowActionsStickyLocal,
|
|
1006
|
-
isSortingMultiColumn: this.isSortingMultiColumn,
|
|
1007
|
-
modelSort: this.modelSortLocal,
|
|
1008
|
-
rowsLocalLength: this.rowsLocalLength,
|
|
1009
|
-
showFirstSortingSequenceNumber: this.showFirstSortingSequenceNumber,
|
|
1010
|
-
sortingSequenceNumberClass: this.sortingSequenceNumberClass,
|
|
1011
|
-
onSetSelectedRowsIndexes: this.setSelectedRowsIndexes,
|
|
1012
|
-
}),
|
|
1013
|
-
h("div", {
|
|
1014
|
-
class: "a_table__loading",
|
|
1015
|
-
}, [
|
|
1016
|
-
h(ALoading, {
|
|
1017
|
-
isLoading: this.isLoadingTable,
|
|
1018
|
-
}, () => [
|
|
1019
|
-
h("div", {
|
|
1020
|
-
class: "a_table__body",
|
|
1021
|
-
role: this.tableChildRole,
|
|
1022
|
-
}, {
|
|
1023
|
-
default: () => this.rowsLocal.map((row, rowIndex) => {
|
|
1024
|
-
const ROW_ID = getRowIdOrIndex({ row, rowIndex, keyId: this.keyId });
|
|
1025
|
-
|
|
1026
|
-
return h(ATableTr, {
|
|
1027
|
-
key: ROW_ID,
|
|
1028
|
-
allVisibleMobileColumns: this.allVisibleMobileColumns,
|
|
1029
|
-
areAllRowsSelected: this.areAllRowsSelected,
|
|
1030
|
-
columnActionsBtnGroupMaxWidthStyle: this.columnActionsBtnGroupMaxWidthStyle,
|
|
1031
|
-
columnActionsView: this.columnActionsView,
|
|
1032
|
-
countVisibleMobileColumns: this.countVisibleMobileColumns,
|
|
1033
|
-
disabledPreview: this.disabledPreview,
|
|
1034
|
-
disabledPreviewRowCallback: this.disabledPreviewRowCallback,
|
|
1035
|
-
disabledRowActions: this.disabledRowActions,
|
|
1036
|
-
isFooter: false,
|
|
1037
|
-
isPreviewDownOpen: this.previewDownRowIds[ROW_ID],
|
|
1038
|
-
isRowActionsStickyLocal: this.isRowActionsStickyLocal,
|
|
1039
|
-
isTree: this.isTree,
|
|
1040
|
-
isTreeCollapsible: this.isTreeCollapsible,
|
|
1041
|
-
isTreeOpened: this.isTreeOpened,
|
|
1042
|
-
keyChildren: this.keyChildren,
|
|
1043
|
-
keyId: this.keyId,
|
|
1044
|
-
level: 1,
|
|
1045
|
-
row,
|
|
1046
|
-
rowActionsClass: this.rowActionsClass,
|
|
1047
|
-
rowClass: this.rowClass,
|
|
1048
|
-
rowIndex,
|
|
1049
|
-
rowsLength: this.rowsLocal.length,
|
|
1050
|
-
selectedRowsIndexes: this.selectedRowsIndexes,
|
|
1051
|
-
onSetSelectedRowsIndexes: this.setSelectedRowsIndexes,
|
|
1052
|
-
}, {
|
|
1053
|
-
get: vm => [
|
|
1054
|
-
h(AGet, {
|
|
1055
|
-
data: vm.row,
|
|
1056
|
-
keyLabel: vm.column.keyLabel,
|
|
1057
|
-
filter: vm.column.filter,
|
|
1058
|
-
filterParameters: vm.column.filterParameters,
|
|
1059
|
-
defaultValue: vm.column.defaultValue,
|
|
1060
|
-
tag: vm.column.filterTag || "div",
|
|
1061
|
-
}),
|
|
1062
|
-
],
|
|
1063
|
-
...this.$slots,
|
|
1064
|
-
});
|
|
1065
|
-
}),
|
|
1066
|
-
}),
|
|
1067
|
-
(this.isViewTableVisible && !this.hasRows) && h(ATranslation, {
|
|
1068
|
-
class: "a_table__empty_text",
|
|
1069
|
-
text: this.emptyText,
|
|
1070
|
-
}),
|
|
1071
|
-
this.hasRowsFooter && h("div", {
|
|
1072
|
-
class: "a_table__footer",
|
|
1073
|
-
role: this.tableChildRole,
|
|
1074
|
-
}, this.rowsFooter.map((row, rowIndex) => {
|
|
1075
|
-
const ROW_ID = getRowIdOrIndex({ row, rowIndex, keyId: this.keyId });
|
|
1076
|
-
|
|
1077
|
-
return h(ATableTr, {
|
|
1078
|
-
key: ROW_ID,
|
|
1079
|
-
allVisibleMobileColumns: this.allVisibleMobileColumns,
|
|
1080
|
-
areAllRowsSelected: this.areAllRowsSelected,
|
|
1081
|
-
columnActionsBtnGroupMaxWidthStyle: this.columnActionsBtnGroupMaxWidthStyle,
|
|
1082
|
-
columnActionsView: this.columnActionsView,
|
|
1083
|
-
countVisibleMobileColumns: this.countVisibleMobileColumns,
|
|
1084
|
-
disabledPreview: this.disabledPreview,
|
|
1085
|
-
disabledPreviewRowCallback: this.disabledPreviewRowCallback,
|
|
1086
|
-
disabledRowActions: this.disabledRowActions,
|
|
1087
|
-
isFooter: true,
|
|
1088
|
-
isRowActionsStickyLocal: this.isRowActionsStickyLocal,
|
|
1089
|
-
isTree: this.isTree,
|
|
1090
|
-
isTreeCollapsible: this.isTreeCollapsible,
|
|
1091
|
-
isTreeOpened: this.isTreeOpened,
|
|
1092
|
-
keyChildren: this.keyChildren,
|
|
1093
|
-
keyId: this.keyId,
|
|
1094
|
-
level: 1,
|
|
1095
|
-
row,
|
|
1096
|
-
rowActionsClass: this.rowActionsClass,
|
|
1097
|
-
rowClass: this.rowClass,
|
|
1098
|
-
rowIndex,
|
|
1099
|
-
rowsLength: this.rowsFooter.length,
|
|
1100
|
-
selectedRowsIndexes: this.selectedRowsIndexes,
|
|
1101
|
-
onSetSelectedRowsIndexes: this.setSelectedRowsIndexes,
|
|
1102
|
-
}, {
|
|
1103
|
-
get: vm => [
|
|
1104
|
-
h(AGet, {
|
|
1105
|
-
data: vm.row,
|
|
1106
|
-
keyLabel: vm.column.footerPath,
|
|
1107
|
-
filter: vm.column.footerFilter,
|
|
1108
|
-
filterParameters: vm.column.footerFilterParameters,
|
|
1109
|
-
defaultValue: vm.column.footerDefaultValue,
|
|
1110
|
-
}),
|
|
1111
|
-
],
|
|
1112
|
-
...this.$slots,
|
|
1113
|
-
});
|
|
1114
|
-
})),
|
|
1115
|
-
]),
|
|
1116
|
-
]),
|
|
1117
|
-
|
|
1118
|
-
]),
|
|
1119
|
-
(!this.isViewTableVisible && this.viewCurrent && this.$slots[this.viewCurrent.type]) &&
|
|
1120
|
-
this.$slots[this.viewCurrent.type]({
|
|
1121
|
-
isLoading: this.isLoadingTable,
|
|
1122
|
-
rows: this.rowsLocalAll,
|
|
1123
|
-
}),
|
|
1124
|
-
(this.usePaginationLocal && this.usePaginationBottom && this.hasRows) ?
|
|
1125
|
-
h(APagination, {
|
|
1126
|
-
class: "a_table__pagination_bottom",
|
|
1127
|
-
disabled: this.pagination.disabled,
|
|
1128
|
-
limit: this.limit,
|
|
1129
|
-
limitsPerPage: this.pagination.limitsPerPage,
|
|
1130
|
-
maxPages: this.pagination.maxPages,
|
|
1131
|
-
modes: this.paginationModes,
|
|
1132
|
-
offset: this.offset,
|
|
1133
|
-
rowsLength: this.rowsLocalLength,
|
|
1134
|
-
totalCount: this.countAllRowsLocal,
|
|
1135
|
-
"onUpdate:limit": this.changeLimit,
|
|
1136
|
-
"onUpdate:offset": this.changeOffset,
|
|
1137
|
-
}) :
|
|
1138
|
-
"",
|
|
1139
|
-
this.isPreviewRightOpen ?
|
|
1140
|
-
h(ATablePreviewRight, {
|
|
1141
|
-
countAllRows: this.countAllRowsLocal,
|
|
1142
|
-
isMobile: this.isMobile,
|
|
1143
|
-
isLoadingTable: this.isLoadingTable,
|
|
1144
|
-
limitPagination: this.limit,
|
|
1145
|
-
offsetPagination: this.offset,
|
|
1146
|
-
previewStyles: this.previewStyles,
|
|
1147
|
-
rowIndex: this.previewRightRowIndex,
|
|
1148
|
-
rows: this.rowsLocalAll,
|
|
1149
|
-
disabledPreviewRowCallback: this.disabledPreviewRowCallback,
|
|
1150
|
-
usePagination: !!this.usePaginationLocal,
|
|
1151
|
-
onClosePreview: this.closePreview,
|
|
1152
|
-
onMousedownResizePreviewRight: this.mousedownResizePreviewRight,
|
|
1153
|
-
onMousemoveResizePreviewRight: this.mousemoveResizePreviewRight,
|
|
1154
|
-
onMouseupResizePreviewRight: this.mouseupResizePreviewRight,
|
|
1155
|
-
onTogglePreview: this.onTogglePreview,
|
|
1156
|
-
onTogglePreviewResize: this.togglePreviewResize,
|
|
1157
|
-
"onUpdate:offset": this.changeOffset,
|
|
1158
|
-
}, this.$slots) :
|
|
1159
|
-
"",
|
|
1160
|
-
]),
|
|
1161
|
-
]);
|
|
1162
|
-
},
|
|
1163
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
computed,
|
|
3
|
+
h,
|
|
4
|
+
provide,
|
|
5
|
+
watch,
|
|
6
|
+
} from "vue";
|
|
7
|
+
|
|
8
|
+
import AGet from "../AGet/AGet";
|
|
9
|
+
import ALoading from "../ALoading/ALoading";
|
|
10
|
+
import APagination from "../APagination/APagination";
|
|
11
|
+
import ATableGroupedHeader from "./ATableGroupedHeader/ATableGroupedHeader";
|
|
12
|
+
import ATableHeader from "./ATableHeader/ATableHeader";
|
|
13
|
+
import ATablePreviewRight from "./ATablePreviewRight/ATablePreviewRight";
|
|
14
|
+
import ATableTopPanel from "./ATableTopPanel/ATableTopPanel";
|
|
15
|
+
import ATableTr from "./ATableTr/ATableTr";
|
|
16
|
+
import ATranslation from "../ATranslation/ATranslation";
|
|
17
|
+
import {
|
|
18
|
+
getRowIdOrIndex,
|
|
19
|
+
} from "./utils/utils";
|
|
20
|
+
|
|
21
|
+
import ColumnActionAPI from "./compositionAPI/ColumnActionAPI";
|
|
22
|
+
import ColumnsAPI from "./compositionAPI/ColumnsAPI";
|
|
23
|
+
import ColumnsGroupedAPI from "./compositionAPI/ColumnsGroupedAPI";
|
|
24
|
+
import ColumnsOrderingAPI from "./compositionAPI/ColumnsOrderingAPI";
|
|
25
|
+
import CountAPI from "./compositionAPI/CountAPI";
|
|
26
|
+
import FocusTableAPI from "./compositionAPI/FocusTableAPI";
|
|
27
|
+
import InitAPI from "./compositionAPI/InitAPI";
|
|
28
|
+
import LimitOffsetAPI from "./compositionAPI/LimitOffsetAPI";
|
|
29
|
+
import MobileColumnsAPI from "./compositionAPI/MobileColumnsAPI";
|
|
30
|
+
import MultipleActionAPI from "./compositionAPI/MultipleActionAPI";
|
|
31
|
+
import PreviewAPI from "./compositionAPI/PreviewAPI";
|
|
32
|
+
import RowsAPI from "./compositionAPI/RowsAPI";
|
|
33
|
+
import ScrollControlAPI from "./compositionAPI/ScrollControlAPI";
|
|
34
|
+
import SimpleTableAPI from "./compositionAPI/SimpleTableAPI";
|
|
35
|
+
import SortAPI from "./compositionAPI/SortAPI";
|
|
36
|
+
import SortChangeAPI from "./compositionAPI/SortChangeAPI";
|
|
37
|
+
import StickyAPI from "./compositionAPI/StickyAPI";
|
|
38
|
+
import TableAttributesAPI from "./compositionAPI/TableAttributesAPI";
|
|
39
|
+
import TableColumnsVisibleFunctionAPI from "./compositionAPI/TableColumnsVisibleFunctionAPI";
|
|
40
|
+
import TextsAPI from "./compositionAPI/TextsAPI";
|
|
41
|
+
import VariablesAPI from "./compositionAPI/VariablesAPI";
|
|
42
|
+
import ViewsAPI from "./compositionAPI/ViewsAPI";
|
|
43
|
+
import WidthAPI from "./compositionAPI/WidthAPI";
|
|
44
|
+
import {
|
|
45
|
+
PaginationModesAPI,
|
|
46
|
+
} from "./compositionAPI/PaginationModesAPI";
|
|
47
|
+
|
|
48
|
+
import {
|
|
49
|
+
tablePluginOptions,
|
|
50
|
+
} from "../plugins/ATablePlugin";
|
|
51
|
+
import {
|
|
52
|
+
isInteger,
|
|
53
|
+
uniqueId,
|
|
54
|
+
} from "lodash-es";
|
|
55
|
+
|
|
56
|
+
export default {
|
|
57
|
+
name: "ATable",
|
|
58
|
+
props: {
|
|
59
|
+
additionalSortingColumns: {
|
|
60
|
+
type: Array,
|
|
61
|
+
required: false,
|
|
62
|
+
default: () => [],
|
|
63
|
+
},
|
|
64
|
+
clearSelectedRowsOnDataChange: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
required: false,
|
|
67
|
+
default: true,
|
|
68
|
+
},
|
|
69
|
+
columnActionsOnePlusDropdownOptions: {
|
|
70
|
+
type: Object,
|
|
71
|
+
required: false,
|
|
72
|
+
default: () => ({
|
|
73
|
+
actionsClasses: ["a_btn a_btn_primary a_text_truncate"],
|
|
74
|
+
btnGroupClass: "a_btn_group a_btn_group_table",
|
|
75
|
+
hasDividerBeforeDropdown: false,
|
|
76
|
+
indexFirstDropdownAction: 1,
|
|
77
|
+
indexFirstDropdownActionMobile: 1,
|
|
78
|
+
minDropdownActions: 1,
|
|
79
|
+
}),
|
|
80
|
+
},
|
|
81
|
+
columnActionsView: {
|
|
82
|
+
type: String,
|
|
83
|
+
required: false,
|
|
84
|
+
default: "dropdown",
|
|
85
|
+
validator: value => ["onePlusDropdown", "onePlusDropdownEmptyPlace", "dropdown"].indexOf(value) !== -1,
|
|
86
|
+
},
|
|
87
|
+
columnActionsWidth: {
|
|
88
|
+
type: Number,
|
|
89
|
+
required: false,
|
|
90
|
+
default: undefined,
|
|
91
|
+
},
|
|
92
|
+
columnActionsWidthDefaults: {
|
|
93
|
+
type: Object,
|
|
94
|
+
required: false,
|
|
95
|
+
default: () => ({
|
|
96
|
+
default: 170,
|
|
97
|
+
min: 50,
|
|
98
|
+
onePlusDropdown: 320,
|
|
99
|
+
onePlusDropdownMin: 200,
|
|
100
|
+
btnGroupMaxWidth: 180,
|
|
101
|
+
}),
|
|
102
|
+
},
|
|
103
|
+
columnActionsWidthMin: {
|
|
104
|
+
type: Number,
|
|
105
|
+
required: false,
|
|
106
|
+
default: undefined,
|
|
107
|
+
},
|
|
108
|
+
columns: {
|
|
109
|
+
type: Array,
|
|
110
|
+
required: true,
|
|
111
|
+
},
|
|
112
|
+
columnsDefaultValue: {
|
|
113
|
+
type: [String, Number],
|
|
114
|
+
required: false,
|
|
115
|
+
default: "",
|
|
116
|
+
},
|
|
117
|
+
columnWidthDefault: {
|
|
118
|
+
type: Number,
|
|
119
|
+
required: false,
|
|
120
|
+
default: 250,
|
|
121
|
+
},
|
|
122
|
+
countAllRows: {
|
|
123
|
+
type: Number,
|
|
124
|
+
required: false,
|
|
125
|
+
default: undefined,
|
|
126
|
+
},
|
|
127
|
+
countVisibleMobileColumns: {
|
|
128
|
+
type: Number,
|
|
129
|
+
required: false,
|
|
130
|
+
default: 4,
|
|
131
|
+
validator: value => value > 0,
|
|
132
|
+
},
|
|
133
|
+
borderType: {
|
|
134
|
+
type: String,
|
|
135
|
+
required: false,
|
|
136
|
+
default: () => tablePluginOptions.value.propsDefault.borderType,
|
|
137
|
+
validator: value => ["bordered", "innerBordered"].indexOf(value) !== -1,
|
|
138
|
+
},
|
|
139
|
+
data: {
|
|
140
|
+
type: [Array, Object, Promise],
|
|
141
|
+
required: false,
|
|
142
|
+
},
|
|
143
|
+
disabledActions: {
|
|
144
|
+
type: Boolean,
|
|
145
|
+
required: false,
|
|
146
|
+
},
|
|
147
|
+
disabledMultipleActions: {
|
|
148
|
+
type: Boolean,
|
|
149
|
+
required: false,
|
|
150
|
+
},
|
|
151
|
+
disabledOptions: {
|
|
152
|
+
type: Boolean,
|
|
153
|
+
required: false,
|
|
154
|
+
},
|
|
155
|
+
disabledPreview: {
|
|
156
|
+
type: Boolean,
|
|
157
|
+
required: false,
|
|
158
|
+
},
|
|
159
|
+
disabledPreviewRowCallback: {
|
|
160
|
+
type: Function,
|
|
161
|
+
required: false,
|
|
162
|
+
},
|
|
163
|
+
disabledRowActions: {
|
|
164
|
+
type: Boolean,
|
|
165
|
+
required: false,
|
|
166
|
+
},
|
|
167
|
+
disabledSort: {
|
|
168
|
+
type: Boolean,
|
|
169
|
+
required: false,
|
|
170
|
+
},
|
|
171
|
+
disabledViews: {
|
|
172
|
+
type: Boolean,
|
|
173
|
+
required: false,
|
|
174
|
+
},
|
|
175
|
+
extra: {
|
|
176
|
+
type: Object,
|
|
177
|
+
required: false,
|
|
178
|
+
default: undefined,
|
|
179
|
+
},
|
|
180
|
+
hasMobile: {
|
|
181
|
+
type: Boolean,
|
|
182
|
+
required: false,
|
|
183
|
+
default: true,
|
|
184
|
+
},
|
|
185
|
+
hasScrollClass: {
|
|
186
|
+
type: Boolean,
|
|
187
|
+
required: false,
|
|
188
|
+
default: true,
|
|
189
|
+
},
|
|
190
|
+
id: {
|
|
191
|
+
type: String,
|
|
192
|
+
required: false,
|
|
193
|
+
default: () => uniqueId("a_table"),
|
|
194
|
+
},
|
|
195
|
+
isActionColumnVisible: {
|
|
196
|
+
type: Boolean,
|
|
197
|
+
required: false,
|
|
198
|
+
default: false,
|
|
199
|
+
},
|
|
200
|
+
isActionIconVisible: {
|
|
201
|
+
type: Boolean,
|
|
202
|
+
required: false,
|
|
203
|
+
default: true,
|
|
204
|
+
},
|
|
205
|
+
isColumnsDnd: {
|
|
206
|
+
type: Boolean,
|
|
207
|
+
required: false,
|
|
208
|
+
default: false,
|
|
209
|
+
},
|
|
210
|
+
isLabelVisible: {
|
|
211
|
+
type: Boolean,
|
|
212
|
+
required: false,
|
|
213
|
+
default: true,
|
|
214
|
+
},
|
|
215
|
+
isLoadingMultipleActions: {
|
|
216
|
+
type: Boolean,
|
|
217
|
+
required: false,
|
|
218
|
+
},
|
|
219
|
+
isLoadingOptions: {
|
|
220
|
+
type: Boolean,
|
|
221
|
+
required: false,
|
|
222
|
+
},
|
|
223
|
+
isLoadingTable: {
|
|
224
|
+
type: Boolean,
|
|
225
|
+
required: false,
|
|
226
|
+
},
|
|
227
|
+
isQuickSearch: {
|
|
228
|
+
type: Boolean,
|
|
229
|
+
required: false,
|
|
230
|
+
},
|
|
231
|
+
isSimpleTable: {
|
|
232
|
+
type: Boolean,
|
|
233
|
+
required: false,
|
|
234
|
+
default: false,
|
|
235
|
+
},
|
|
236
|
+
isSortingMultiColumn: {
|
|
237
|
+
type: Boolean,
|
|
238
|
+
required: false,
|
|
239
|
+
default: false,
|
|
240
|
+
},
|
|
241
|
+
isSortingOutside: {
|
|
242
|
+
type: Boolean,
|
|
243
|
+
required: false,
|
|
244
|
+
},
|
|
245
|
+
isTree: {
|
|
246
|
+
type: Boolean,
|
|
247
|
+
required: false,
|
|
248
|
+
},
|
|
249
|
+
isTreeCollapsible: {
|
|
250
|
+
type: Boolean,
|
|
251
|
+
required: false,
|
|
252
|
+
default: true,
|
|
253
|
+
},
|
|
254
|
+
isTreeOpened: {
|
|
255
|
+
type: Boolean,
|
|
256
|
+
required: false,
|
|
257
|
+
},
|
|
258
|
+
keyCountAllRowsInData: {
|
|
259
|
+
type: String,
|
|
260
|
+
required: false,
|
|
261
|
+
default: "count",
|
|
262
|
+
},
|
|
263
|
+
keyId: {
|
|
264
|
+
type: String,
|
|
265
|
+
required: false,
|
|
266
|
+
default: undefined,
|
|
267
|
+
},
|
|
268
|
+
keyChildren: {
|
|
269
|
+
type: String,
|
|
270
|
+
required: false,
|
|
271
|
+
default: "children",
|
|
272
|
+
},
|
|
273
|
+
label: {
|
|
274
|
+
type: [String, Number],
|
|
275
|
+
required: false,
|
|
276
|
+
default: "",
|
|
277
|
+
},
|
|
278
|
+
labelClass: {
|
|
279
|
+
type: [String, Object],
|
|
280
|
+
required: false,
|
|
281
|
+
default: undefined,
|
|
282
|
+
},
|
|
283
|
+
labelTag: {
|
|
284
|
+
type: String,
|
|
285
|
+
required: false,
|
|
286
|
+
default: "h2",
|
|
287
|
+
},
|
|
288
|
+
modelColumnsOrdering: {
|
|
289
|
+
type: Array,
|
|
290
|
+
required: false,
|
|
291
|
+
default: () => [],
|
|
292
|
+
},
|
|
293
|
+
modelColumnsVisible: {
|
|
294
|
+
type: Object,
|
|
295
|
+
required: false,
|
|
296
|
+
default: () => ({}),
|
|
297
|
+
},
|
|
298
|
+
modelIsTableWithoutScrollStart: {
|
|
299
|
+
type: Boolean,
|
|
300
|
+
required: false,
|
|
301
|
+
default: false,
|
|
302
|
+
},
|
|
303
|
+
modelQuickSearch: {
|
|
304
|
+
type: String,
|
|
305
|
+
required: false,
|
|
306
|
+
default: "",
|
|
307
|
+
},
|
|
308
|
+
modelSort: {
|
|
309
|
+
type: [String, Array],
|
|
310
|
+
required: false,
|
|
311
|
+
default: () => [],
|
|
312
|
+
},
|
|
313
|
+
modelView: {
|
|
314
|
+
type: [String, Number],
|
|
315
|
+
required: false,
|
|
316
|
+
default: undefined,
|
|
317
|
+
},
|
|
318
|
+
multipleActions: {
|
|
319
|
+
type: Array,
|
|
320
|
+
required: false,
|
|
321
|
+
default: () => [],
|
|
322
|
+
},
|
|
323
|
+
offsetStart: {
|
|
324
|
+
type: Number,
|
|
325
|
+
required: false,
|
|
326
|
+
default: 0,
|
|
327
|
+
},
|
|
328
|
+
pagination: {
|
|
329
|
+
type: Object,
|
|
330
|
+
required: false,
|
|
331
|
+
default: () => ({
|
|
332
|
+
use: false,
|
|
333
|
+
maxPages: 5,
|
|
334
|
+
limitsPerPage: [],
|
|
335
|
+
limitStart: 10,
|
|
336
|
+
disabled: false,
|
|
337
|
+
isOutside: false,
|
|
338
|
+
outside: false,
|
|
339
|
+
position: "bottom",
|
|
340
|
+
modes: {
|
|
341
|
+
/*
|
|
342
|
+
* perPage: inline / select
|
|
343
|
+
* pagination: normal / short / loadMore
|
|
344
|
+
*/
|
|
345
|
+
desktop: {
|
|
346
|
+
pagination: {
|
|
347
|
+
mode: "normal",
|
|
348
|
+
position: 0,
|
|
349
|
+
},
|
|
350
|
+
perPage: {
|
|
351
|
+
mode: "inline",
|
|
352
|
+
position: 1,
|
|
353
|
+
},
|
|
354
|
+
},
|
|
355
|
+
mobile: {
|
|
356
|
+
pagination: {
|
|
357
|
+
mode: "loadMore",
|
|
358
|
+
},
|
|
359
|
+
},
|
|
360
|
+
},
|
|
361
|
+
}),
|
|
362
|
+
},
|
|
363
|
+
preview: {
|
|
364
|
+
type: String,
|
|
365
|
+
required: false,
|
|
366
|
+
default: undefined,
|
|
367
|
+
validator: value => ["right", "down"].indexOf(value) !== -1,
|
|
368
|
+
},
|
|
369
|
+
previewBoxWidth: {
|
|
370
|
+
type: Number,
|
|
371
|
+
required: false,
|
|
372
|
+
default: 300,
|
|
373
|
+
},
|
|
374
|
+
previewStyles: {
|
|
375
|
+
type: [String, Object],
|
|
376
|
+
required: false,
|
|
377
|
+
default: undefined,
|
|
378
|
+
},
|
|
379
|
+
rowActions: {
|
|
380
|
+
type: Array,
|
|
381
|
+
required: false,
|
|
382
|
+
default: () => [],
|
|
383
|
+
},
|
|
384
|
+
rowActionsClass: {
|
|
385
|
+
type: [String, Object],
|
|
386
|
+
required: false,
|
|
387
|
+
default: undefined,
|
|
388
|
+
},
|
|
389
|
+
rowActionsSticky: {
|
|
390
|
+
type: Boolean,
|
|
391
|
+
required: false,
|
|
392
|
+
default: true,
|
|
393
|
+
},
|
|
394
|
+
rowClass: {
|
|
395
|
+
type: [String, Object, Function],
|
|
396
|
+
required: false,
|
|
397
|
+
default: undefined,
|
|
398
|
+
},
|
|
399
|
+
rowsCountRenderPerTick: {
|
|
400
|
+
type: Number,
|
|
401
|
+
required: false,
|
|
402
|
+
default: 25,
|
|
403
|
+
validator: value => isInteger(value) && value >= 0,
|
|
404
|
+
},
|
|
405
|
+
rowsFooter: {
|
|
406
|
+
type: Array,
|
|
407
|
+
required: false,
|
|
408
|
+
default: () => [],
|
|
409
|
+
},
|
|
410
|
+
showCount: {
|
|
411
|
+
type: Boolean,
|
|
412
|
+
required: false,
|
|
413
|
+
default: true,
|
|
414
|
+
},
|
|
415
|
+
showFirstSortingSequenceNumber: {
|
|
416
|
+
type: Boolean,
|
|
417
|
+
required: false,
|
|
418
|
+
default: false,
|
|
419
|
+
},
|
|
420
|
+
sortingMultiColumnKey: {
|
|
421
|
+
type: String,
|
|
422
|
+
required: false,
|
|
423
|
+
default: "shift",
|
|
424
|
+
validator: value => ["shift", "ctrl", "alt"].indexOf(value) !== -1,
|
|
425
|
+
},
|
|
426
|
+
sortingSequenceNumberClass: {
|
|
427
|
+
type: [String, Object],
|
|
428
|
+
required: false,
|
|
429
|
+
default: "a_badge",
|
|
430
|
+
},
|
|
431
|
+
tableActions: {
|
|
432
|
+
type: Array,
|
|
433
|
+
required: false,
|
|
434
|
+
default: () => [],
|
|
435
|
+
},
|
|
436
|
+
tableActionsIndexFirstDropdownAction: {
|
|
437
|
+
type: Number,
|
|
438
|
+
required: false,
|
|
439
|
+
default: -1,
|
|
440
|
+
},
|
|
441
|
+
tableActionsIndexFirstDropdownActionMobile: {
|
|
442
|
+
type: Number,
|
|
443
|
+
required: false,
|
|
444
|
+
default: 0,
|
|
445
|
+
},
|
|
446
|
+
texts: {
|
|
447
|
+
type: Object,
|
|
448
|
+
required: false,
|
|
449
|
+
default: () => ({
|
|
450
|
+
empty: "_A_TABLE_EMPTY_TEXT_",
|
|
451
|
+
}),
|
|
452
|
+
},
|
|
453
|
+
useAdditionalSorting: {
|
|
454
|
+
type: Boolean,
|
|
455
|
+
required: false,
|
|
456
|
+
default: true,
|
|
457
|
+
},
|
|
458
|
+
useViewSlot: {
|
|
459
|
+
type: Boolean,
|
|
460
|
+
required: false,
|
|
461
|
+
},
|
|
462
|
+
useRem: {
|
|
463
|
+
type: Boolean,
|
|
464
|
+
required: false,
|
|
465
|
+
default: true,
|
|
466
|
+
},
|
|
467
|
+
valuesForColumnDefault: {
|
|
468
|
+
type: Array,
|
|
469
|
+
required: false,
|
|
470
|
+
default: () => [null, undefined, ""],
|
|
471
|
+
},
|
|
472
|
+
views: {
|
|
473
|
+
type: Array,
|
|
474
|
+
required: false,
|
|
475
|
+
default: () => [],
|
|
476
|
+
},
|
|
477
|
+
},
|
|
478
|
+
emits: [
|
|
479
|
+
"changeColumnsOrdering",
|
|
480
|
+
"changeColumnsVisible",
|
|
481
|
+
"changeLimit",
|
|
482
|
+
"changeOffset",
|
|
483
|
+
"changeSorting",
|
|
484
|
+
"mouseupResizePreviewRight",
|
|
485
|
+
"initTable",
|
|
486
|
+
"togglePreview",
|
|
487
|
+
"toggleMultipleActions",
|
|
488
|
+
"update:modelColumnsOrder",
|
|
489
|
+
"update:modelColumnsVisible",
|
|
490
|
+
"update:modelQuickSearch",
|
|
491
|
+
"updateModelIsTableWithoutScroll",
|
|
492
|
+
"updateView",
|
|
493
|
+
],
|
|
494
|
+
provide() {
|
|
495
|
+
return {
|
|
496
|
+
changeModelColumnsVisible: this.changeModelColumnsVisible,
|
|
497
|
+
columnActionsOnePlusDropdownOptions: computed(() => this.columnActionsOnePlusDropdownOptions),
|
|
498
|
+
columns: computed(() => this.columns),
|
|
499
|
+
columnsDefaultValue: computed(() => this.columnsDefaultValue),
|
|
500
|
+
isLoadingOptions: computed(() => this.isLoadingOptions),
|
|
501
|
+
isLoadingTable: computed(() => this.isLoadingTable),
|
|
502
|
+
keyId: computed(() => this.keyId),
|
|
503
|
+
rowActions: computed(() => this.rowActions),
|
|
504
|
+
tableId: computed(() => this.id),
|
|
505
|
+
valuesForColumnDefault: computed(() => this.valuesForColumnDefault),
|
|
506
|
+
useRem: computed(() => this.useRem),
|
|
507
|
+
};
|
|
508
|
+
},
|
|
509
|
+
setup(props, context) {
|
|
510
|
+
const {
|
|
511
|
+
columnActionsWidthDefaultsRemLocal,
|
|
512
|
+
columnActionsWidthMinRemLocal,
|
|
513
|
+
columnActionsWidthRemLocal,
|
|
514
|
+
columnWidthDefaultRemLocal,
|
|
515
|
+
previewBoxWidthRemLocal,
|
|
516
|
+
} = WidthAPI(props);
|
|
517
|
+
|
|
518
|
+
const {
|
|
519
|
+
initModelIsTableWithoutScroll,
|
|
520
|
+
isActionColumnVisibleLocal,
|
|
521
|
+
isActionIconVisibleLocal,
|
|
522
|
+
isColumnsDndLocal,
|
|
523
|
+
isMobile,
|
|
524
|
+
modelIsTableWithoutScroll,
|
|
525
|
+
modelIsTableWithoutScrollComputed,
|
|
526
|
+
} = SimpleTableAPI(props);
|
|
527
|
+
|
|
528
|
+
const {
|
|
529
|
+
countAllRowsLocal,
|
|
530
|
+
} = CountAPI(props);
|
|
531
|
+
|
|
532
|
+
const {
|
|
533
|
+
columnsScrollInvisible,
|
|
534
|
+
indexFirstScrollInvisibleColumn,
|
|
535
|
+
isMultipleActionsActive,
|
|
536
|
+
modelColumnsVisibleLocal,
|
|
537
|
+
tableGrandparentRef,
|
|
538
|
+
tableRef,
|
|
539
|
+
} = VariablesAPI(props);
|
|
540
|
+
|
|
541
|
+
const {
|
|
542
|
+
scrollToTable,
|
|
543
|
+
setFocusToTable,
|
|
544
|
+
} = FocusTableAPI({
|
|
545
|
+
tableRef,
|
|
546
|
+
});
|
|
547
|
+
|
|
548
|
+
const {
|
|
549
|
+
hasViews,
|
|
550
|
+
initViewCurrent,
|
|
551
|
+
isViewTableVisible,
|
|
552
|
+
updateViewCurrent,
|
|
553
|
+
viewCurrent,
|
|
554
|
+
} = ViewsAPI(props, context, {
|
|
555
|
+
closePreviewAll,
|
|
556
|
+
});
|
|
557
|
+
|
|
558
|
+
const {
|
|
559
|
+
dataSorted,
|
|
560
|
+
initModelSort,
|
|
561
|
+
modelSortLocal,
|
|
562
|
+
useAdditionalSortingLocal,
|
|
563
|
+
} = SortAPI(props, {
|
|
564
|
+
viewCurrent,
|
|
565
|
+
});
|
|
566
|
+
|
|
567
|
+
const {
|
|
568
|
+
columnsOrderedFromSimpleTable,
|
|
569
|
+
renderedGroupedColumns,
|
|
570
|
+
} = ColumnsGroupedAPI(props, {
|
|
571
|
+
modelSort: modelSortLocal,
|
|
572
|
+
});
|
|
573
|
+
|
|
574
|
+
const {
|
|
575
|
+
columnIdsGroupByLocked,
|
|
576
|
+
columnsFilteredForRender,
|
|
577
|
+
columnsFilteredForRenderIndexesMapping,
|
|
578
|
+
columnsOrdered,
|
|
579
|
+
countNotHiddenColumns,
|
|
580
|
+
} = ColumnsAPI(props, {
|
|
581
|
+
columnsScrollInvisible,
|
|
582
|
+
indexFirstScrollInvisibleColumn,
|
|
583
|
+
modelColumnsVisibleLocal,
|
|
584
|
+
modelIsTableWithoutScrollComputed,
|
|
585
|
+
columnsOrderedFromSimpleTable,
|
|
586
|
+
});
|
|
587
|
+
|
|
588
|
+
const {
|
|
589
|
+
changeLimit,
|
|
590
|
+
changeOffset,
|
|
591
|
+
initLocalVars,
|
|
592
|
+
limit,
|
|
593
|
+
offset,
|
|
594
|
+
usePaginationBottom,
|
|
595
|
+
usePaginationLocal,
|
|
596
|
+
usePaginationTop,
|
|
597
|
+
} = LimitOffsetAPI(props, context, {
|
|
598
|
+
closePreviewAll,
|
|
599
|
+
scrollToTable,
|
|
600
|
+
setFocusToTable,
|
|
601
|
+
viewCurrent,
|
|
602
|
+
});
|
|
603
|
+
|
|
604
|
+
const {
|
|
605
|
+
addRow,
|
|
606
|
+
deleteRow,
|
|
607
|
+
hasRows,
|
|
608
|
+
rowsLocal,
|
|
609
|
+
rowsLocalAll,
|
|
610
|
+
rowsLocalLength,
|
|
611
|
+
stopRenderRows,
|
|
612
|
+
updateRow,
|
|
613
|
+
} = RowsAPI(props, {
|
|
614
|
+
dataSorted,
|
|
615
|
+
limit,
|
|
616
|
+
offset,
|
|
617
|
+
setEmptySelectedRowsIndexes,
|
|
618
|
+
usePaginationLocal,
|
|
619
|
+
});
|
|
620
|
+
|
|
621
|
+
const {
|
|
622
|
+
columnActionsBtnGroupMaxWidthStyle,
|
|
623
|
+
columnActionsWidthLocal,
|
|
624
|
+
columnActionsWidthMinLocal,
|
|
625
|
+
isColumnActionWide,
|
|
626
|
+
} = ColumnActionAPI(props, {
|
|
627
|
+
columnActionsWidthDefaultsRemLocal,
|
|
628
|
+
columnActionsWidthMinRemLocal,
|
|
629
|
+
columnActionsWidthRemLocal,
|
|
630
|
+
isMobile,
|
|
631
|
+
rowsLocal,
|
|
632
|
+
});
|
|
633
|
+
|
|
634
|
+
const {
|
|
635
|
+
aTableRef,
|
|
636
|
+
changeModelIsTableWithoutScroll,
|
|
637
|
+
checkVisibleColumns,
|
|
638
|
+
columnsVisibleAdditionalSpaceForOneGrow,
|
|
639
|
+
onWatchMobileScrollControl,
|
|
640
|
+
} = ScrollControlAPI(props, context, {
|
|
641
|
+
columnActionsWidthLocal,
|
|
642
|
+
columnActionsWidthMinLocal,
|
|
643
|
+
columnsOrdered,
|
|
644
|
+
columnsScrollInvisible,
|
|
645
|
+
columnWidthDefaultRemLocal,
|
|
646
|
+
indexFirstScrollInvisibleColumn,
|
|
647
|
+
isMobile,
|
|
648
|
+
isMultipleActionsActive,
|
|
649
|
+
modelColumnsVisibleLocal,
|
|
650
|
+
modelIsTableWithoutScroll,
|
|
651
|
+
modelIsTableWithoutScrollComputed,
|
|
652
|
+
});
|
|
653
|
+
|
|
654
|
+
const {
|
|
655
|
+
changeColumnsOrdering,
|
|
656
|
+
checkColumnsOrdering,
|
|
657
|
+
} = ColumnsOrderingAPI(props, context, {
|
|
658
|
+
checkVisibleColumns,
|
|
659
|
+
columnIdsGroupByLocked,
|
|
660
|
+
columnsFilteredForRenderIndexesMapping,
|
|
661
|
+
});
|
|
662
|
+
|
|
663
|
+
const {
|
|
664
|
+
isRowActionsStickyLocal,
|
|
665
|
+
} = StickyAPI(props, {
|
|
666
|
+
isMobile,
|
|
667
|
+
modelIsTableWithoutScrollComputed,
|
|
668
|
+
});
|
|
669
|
+
|
|
670
|
+
const {
|
|
671
|
+
areAllRowsSelected,
|
|
672
|
+
areAllVisibleRowsSelected,
|
|
673
|
+
areSomeRowsSelected,
|
|
674
|
+
closeMultipleActionsActive,
|
|
675
|
+
currentMultipleActions,
|
|
676
|
+
hasMultipleActions,
|
|
677
|
+
selectedRows,
|
|
678
|
+
selectedRowsIndexes,
|
|
679
|
+
setEmptySelectedRowsIndexes: _setEmptySelectedRowsIndexes,
|
|
680
|
+
setSelectedRowsIndexes,
|
|
681
|
+
toggleBtnAllRows,
|
|
682
|
+
toggleMultipleActionsActive,
|
|
683
|
+
} = MultipleActionAPI(props, context, {
|
|
684
|
+
checkVisibleColumns,
|
|
685
|
+
isMultipleActionsActive,
|
|
686
|
+
rowsLocalAll,
|
|
687
|
+
rowsLocalLength,
|
|
688
|
+
});
|
|
689
|
+
|
|
690
|
+
const {
|
|
691
|
+
changeModelColumnsVisible,
|
|
692
|
+
} = TableColumnsVisibleFunctionAPI(props, context, {
|
|
693
|
+
modelColumnsVisibleLocal,
|
|
694
|
+
checkVisibleColumns,
|
|
695
|
+
});
|
|
696
|
+
|
|
697
|
+
const {
|
|
698
|
+
closePreview,
|
|
699
|
+
closePreviewAll: _closePreviewAll,
|
|
700
|
+
hasPreview,
|
|
701
|
+
isPreviewRightOpen,
|
|
702
|
+
onTogglePreview,
|
|
703
|
+
mousedownResizePreviewRight,
|
|
704
|
+
mousemoveResizePreviewRight,
|
|
705
|
+
mouseupResizePreviewRight,
|
|
706
|
+
previewDownRowIds,
|
|
707
|
+
previewRightRowIndex,
|
|
708
|
+
previewRightRowIndexLast,
|
|
709
|
+
togglePreviewResize,
|
|
710
|
+
} = PreviewAPI(props, context, {
|
|
711
|
+
aTableRef,
|
|
712
|
+
isMobile,
|
|
713
|
+
previewBoxWidthRemLocal,
|
|
714
|
+
rowsLocalAll,
|
|
715
|
+
tableGrandparentRef,
|
|
716
|
+
});
|
|
717
|
+
|
|
718
|
+
const {
|
|
719
|
+
tableChildRole,
|
|
720
|
+
tableLabelId,
|
|
721
|
+
tableRoleAttributes,
|
|
722
|
+
} = TableAttributesAPI(props, {
|
|
723
|
+
countNotHiddenColumns,
|
|
724
|
+
isMobile,
|
|
725
|
+
});
|
|
726
|
+
|
|
727
|
+
const {
|
|
728
|
+
allVisibleMobileColumns,
|
|
729
|
+
} = MobileColumnsAPI({
|
|
730
|
+
columnsOrdered,
|
|
731
|
+
isMobile,
|
|
732
|
+
modelColumnsVisibleLocal,
|
|
733
|
+
});
|
|
734
|
+
|
|
735
|
+
const {
|
|
736
|
+
changeModelSort,
|
|
737
|
+
} = SortChangeAPI(props, context, {
|
|
738
|
+
modelSortLocal,
|
|
739
|
+
closePreviewAll,
|
|
740
|
+
});
|
|
741
|
+
|
|
742
|
+
const {
|
|
743
|
+
paginationModes,
|
|
744
|
+
} = PaginationModesAPI(props, {
|
|
745
|
+
isMobile,
|
|
746
|
+
});
|
|
747
|
+
|
|
748
|
+
const {
|
|
749
|
+
initTable,
|
|
750
|
+
} = InitAPI(props, context, {
|
|
751
|
+
checkColumnsOrdering,
|
|
752
|
+
checkVisibleColumns,
|
|
753
|
+
modelColumnsVisibleLocal,
|
|
754
|
+
});
|
|
755
|
+
|
|
756
|
+
const {
|
|
757
|
+
emptyText,
|
|
758
|
+
} = TextsAPI(props);
|
|
759
|
+
|
|
760
|
+
function closePreviewAll() {
|
|
761
|
+
_closePreviewAll();
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
function setEmptySelectedRowsIndexes() {
|
|
765
|
+
_setEmptySelectedRowsIndexes();
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
watch(isMobile, newValue => {
|
|
769
|
+
onWatchMobileScrollControl(newValue);
|
|
770
|
+
closePreviewAll();
|
|
771
|
+
});
|
|
772
|
+
|
|
773
|
+
watch(isColumnActionWide, (newValue, oldValue) => {
|
|
774
|
+
if (newValue !== oldValue) {
|
|
775
|
+
checkVisibleColumns();
|
|
776
|
+
}
|
|
777
|
+
});
|
|
778
|
+
|
|
779
|
+
provide("changeModelIsTableWithoutScroll", changeModelIsTableWithoutScroll);
|
|
780
|
+
provide("changeModelSort", changeModelSort);
|
|
781
|
+
provide("columnsOrdered", columnsOrdered);
|
|
782
|
+
provide("columnsFilteredForRender", columnsFilteredForRender);
|
|
783
|
+
provide("columnsScrollInvisible", columnsScrollInvisible);
|
|
784
|
+
provide("columnWidthDefault", columnWidthDefaultRemLocal);
|
|
785
|
+
provide("columnsVisibleAdditionalSpaceForOneGrow", columnsVisibleAdditionalSpaceForOneGrow);
|
|
786
|
+
provide("columnActionsWidthLocal", columnActionsWidthLocal);
|
|
787
|
+
provide("columnActionsWidthMinLocal", columnActionsWidthMinLocal);
|
|
788
|
+
provide("currentMultipleActions", currentMultipleActions);
|
|
789
|
+
provide("hasPreview", hasPreview);
|
|
790
|
+
provide("indexFirstScrollInvisibleColumn", indexFirstScrollInvisibleColumn);
|
|
791
|
+
provide("isActionColumnVisible", isActionColumnVisibleLocal);
|
|
792
|
+
provide("isActionIconVisible", isActionIconVisibleLocal);
|
|
793
|
+
provide("isColumnsDnd", isColumnsDndLocal);
|
|
794
|
+
provide("isMobile", isMobile);
|
|
795
|
+
provide("isMultipleActionsActive", isMultipleActionsActive);
|
|
796
|
+
provide("modelIsTableWithoutScroll", modelIsTableWithoutScrollComputed);
|
|
797
|
+
provide("onTogglePreview", onTogglePreview);
|
|
798
|
+
provide("previewRightRowIndex", previewRightRowIndex);
|
|
799
|
+
provide("previewRightRowIndexLast", previewRightRowIndexLast);
|
|
800
|
+
|
|
801
|
+
provide("rowsLocalAll", rowsLocalAll);
|
|
802
|
+
provide("modelColumnsVisibleLocal", modelColumnsVisibleLocal);
|
|
803
|
+
provide("changeColumnsOrdering", changeColumnsOrdering);
|
|
804
|
+
|
|
805
|
+
initLocalVars();
|
|
806
|
+
initModelIsTableWithoutScroll();
|
|
807
|
+
initViewCurrent();
|
|
808
|
+
initTable();
|
|
809
|
+
initModelSort();
|
|
810
|
+
|
|
811
|
+
return {
|
|
812
|
+
addRow,
|
|
813
|
+
allVisibleMobileColumns,
|
|
814
|
+
areAllRowsSelected,
|
|
815
|
+
areAllVisibleRowsSelected,
|
|
816
|
+
areSomeRowsSelected,
|
|
817
|
+
aTableRef,
|
|
818
|
+
changeLimit,
|
|
819
|
+
changeModelColumnsVisible,
|
|
820
|
+
changeOffset,
|
|
821
|
+
checkVisibleColumns,
|
|
822
|
+
closeMultipleActionsActive,
|
|
823
|
+
closePreview,
|
|
824
|
+
closePreviewAll,
|
|
825
|
+
columnActionsBtnGroupMaxWidthStyle,
|
|
826
|
+
columnsFilteredForRender,
|
|
827
|
+
columnsOrdered,
|
|
828
|
+
countAllRowsLocal,
|
|
829
|
+
deleteRow,
|
|
830
|
+
emptyText,
|
|
831
|
+
hasMultipleActions,
|
|
832
|
+
hasRows,
|
|
833
|
+
hasViews,
|
|
834
|
+
isMobile,
|
|
835
|
+
isMultipleActionsActive,
|
|
836
|
+
isPreviewRightOpen,
|
|
837
|
+
isRowActionsStickyLocal,
|
|
838
|
+
isViewTableVisible,
|
|
839
|
+
limit,
|
|
840
|
+
modelColumnsVisibleLocal,
|
|
841
|
+
modelIsTableWithoutScrollComputed,
|
|
842
|
+
modelSortLocal,
|
|
843
|
+
mousedownResizePreviewRight,
|
|
844
|
+
mousemoveResizePreviewRight,
|
|
845
|
+
mouseupResizePreviewRight,
|
|
846
|
+
offset,
|
|
847
|
+
onTogglePreview,
|
|
848
|
+
paginationModes,
|
|
849
|
+
previewDownRowIds,
|
|
850
|
+
previewRightRowIndex,
|
|
851
|
+
renderedGroupedColumns,
|
|
852
|
+
rowsLocal,
|
|
853
|
+
rowsLocalAll,
|
|
854
|
+
rowsLocalLength,
|
|
855
|
+
selectedRows,
|
|
856
|
+
selectedRowsIndexes,
|
|
857
|
+
setEmptySelectedRowsIndexes,
|
|
858
|
+
setSelectedRowsIndexes,
|
|
859
|
+
stopRenderRows,
|
|
860
|
+
tableChildRole,
|
|
861
|
+
tableGrandparentRef,
|
|
862
|
+
tableLabelId,
|
|
863
|
+
tableRef,
|
|
864
|
+
tableRoleAttributes,
|
|
865
|
+
toggleBtnAllRows,
|
|
866
|
+
toggleMultipleActionsActive,
|
|
867
|
+
togglePreviewResize,
|
|
868
|
+
updateRow,
|
|
869
|
+
updateViewCurrent,
|
|
870
|
+
useAdditionalSortingLocal,
|
|
871
|
+
usePaginationBottom,
|
|
872
|
+
usePaginationLocal,
|
|
873
|
+
usePaginationTop,
|
|
874
|
+
viewCurrent,
|
|
875
|
+
};
|
|
876
|
+
},
|
|
877
|
+
data() {
|
|
878
|
+
return {
|
|
879
|
+
resolved: undefined,
|
|
880
|
+
error: undefined,
|
|
881
|
+
};
|
|
882
|
+
},
|
|
883
|
+
computed: {
|
|
884
|
+
hasRowsFooter() {
|
|
885
|
+
return this.rowsFooter.length > 0;
|
|
886
|
+
},
|
|
887
|
+
},
|
|
888
|
+
methods: {
|
|
889
|
+
updateModelQuickSearch(model) {
|
|
890
|
+
this.$emit("update:modelQuickSearch", model);
|
|
891
|
+
},
|
|
892
|
+
},
|
|
893
|
+
render() {
|
|
894
|
+
return h("div", {
|
|
895
|
+
ref: "tableGrandparentRef",
|
|
896
|
+
class: ["a_table__grandparent", {
|
|
897
|
+
a_table_mobile: this.isMobile,
|
|
898
|
+
a_table__grandparent_without_scroll: !this.hasScrollClass,
|
|
899
|
+
}],
|
|
900
|
+
}, [
|
|
901
|
+
this.$slots.tablePrepend &&
|
|
902
|
+
this.$slots.tablePrepend({
|
|
903
|
+
id: this.id,
|
|
904
|
+
}),
|
|
905
|
+
h("div", {
|
|
906
|
+
ref: "aTableRef",
|
|
907
|
+
class: ["a_table__parent", {
|
|
908
|
+
a_table__parent_scrollable: this.hasScrollClass && !this.modelIsTableWithoutScrollComputed,
|
|
909
|
+
}],
|
|
910
|
+
}, [
|
|
911
|
+
h(ATableTopPanel, {
|
|
912
|
+
additionalSortingColumns: this.additionalSortingColumns,
|
|
913
|
+
areAllRowsSelected: this.areAllRowsSelected,
|
|
914
|
+
areSomeRowsSelected: this.areSomeRowsSelected,
|
|
915
|
+
closeMultipleActionsActive: this.closeMultipleActionsActive,
|
|
916
|
+
countAllRows: this.countAllRowsLocal,
|
|
917
|
+
disabledActions: this.disabledActions,
|
|
918
|
+
disabledMultipleActions: this.disabledMultipleActions,
|
|
919
|
+
disabledSort: this.disabledSort,
|
|
920
|
+
disabledViews: this.disabledViews,
|
|
921
|
+
extra: this.extra,
|
|
922
|
+
hasViews: this.hasViews,
|
|
923
|
+
isLabelVisible: this.isLabelVisible,
|
|
924
|
+
isLoadingMultipleActions: this.isLoadingMultipleActions,
|
|
925
|
+
isQuickSearch: this.isQuickSearch,
|
|
926
|
+
isSortingMultiColumn: this.isSortingMultiColumn,
|
|
927
|
+
label: this.label,
|
|
928
|
+
labelClass: this.labelClass,
|
|
929
|
+
labelTag: this.labelTag,
|
|
930
|
+
modelQuickSearch: this.modelQuickSearch,
|
|
931
|
+
modelSort: this.modelSortLocal,
|
|
932
|
+
modelView: this.modelView,
|
|
933
|
+
multipleActions: this.multipleActions,
|
|
934
|
+
selectedRows: this.selectedRows,
|
|
935
|
+
showCount: this.showCount,
|
|
936
|
+
tableActions: this.tableActions,
|
|
937
|
+
tableActionsIndexFirstDropdownAction: this.tableActionsIndexFirstDropdownAction,
|
|
938
|
+
tableActionsIndexFirstDropdownActionMobile: this.tableActionsIndexFirstDropdownActionMobile,
|
|
939
|
+
useAdditionalSorting: this.useAdditionalSortingLocal,
|
|
940
|
+
useViewSlot: this.useViewSlot,
|
|
941
|
+
viewCurrent: this.viewCurrent,
|
|
942
|
+
views: this.views,
|
|
943
|
+
onUpdateViewCurrent: this.updateViewCurrent,
|
|
944
|
+
onUpdateModelQuickSearch: this.updateModelQuickSearch,
|
|
945
|
+
onToggleMultipleActionsActive: this.toggleMultipleActionsActive,
|
|
946
|
+
onToggleBtnAllRows: this.toggleBtnAllRows,
|
|
947
|
+
}, this.$slots),
|
|
948
|
+
this.$slots.topPanelAppend ?
|
|
949
|
+
this.$slots.topPanelAppend() :
|
|
950
|
+
"",
|
|
951
|
+
(this.usePaginationLocal && this.usePaginationTop && this.hasRows) ?
|
|
952
|
+
h(APagination, {
|
|
953
|
+
class: "a_table__pagination_top",
|
|
954
|
+
disabled: this.pagination.disabled,
|
|
955
|
+
limit: this.limit,
|
|
956
|
+
limitsPerPage: this.pagination.limitsPerPage,
|
|
957
|
+
modes: this.paginationModes,
|
|
958
|
+
maxPages: this.pagination.maxPages,
|
|
959
|
+
offset: this.offset,
|
|
960
|
+
rowsLength: this.rowsLocalLength,
|
|
961
|
+
totalCount: this.countAllRowsLocal,
|
|
962
|
+
"onUpdate:limit": this.changeLimit,
|
|
963
|
+
"onUpdate:offset": this.changeOffset,
|
|
964
|
+
}) :
|
|
965
|
+
"",
|
|
966
|
+
this.isViewTableVisible && h("div", {
|
|
967
|
+
ref: "tableRef",
|
|
968
|
+
"aria-labelledby": this.isLabelVisible ?
|
|
969
|
+
this.tableLabelId :
|
|
970
|
+
undefined,
|
|
971
|
+
class: [
|
|
972
|
+
"a_table",
|
|
973
|
+
{
|
|
974
|
+
a_table_simple: this.isSimpleTable,
|
|
975
|
+
a_table_bordered: this.borderType === "bordered",
|
|
976
|
+
a_table_inner_bordered: this.borderType === "innerBordered",
|
|
977
|
+
},
|
|
978
|
+
],
|
|
979
|
+
...this.tableRoleAttributes,
|
|
980
|
+
}, [
|
|
981
|
+
this.isSimpleTable ?
|
|
982
|
+
h(ATableGroupedHeader, {
|
|
983
|
+
areAllRowsSelected: this.areAllRowsSelected,
|
|
984
|
+
areAllVisibleRowsSelected: this.areAllVisibleRowsSelected,
|
|
985
|
+
areSomeRowsSelected: this.areSomeRowsSelected,
|
|
986
|
+
disabledOptions: this.disabledOptions,
|
|
987
|
+
disabledSort: this.disabledSort,
|
|
988
|
+
hasMultipleActions: this.hasMultipleActions,
|
|
989
|
+
isRowActionsStickyLocal: this.isRowActionsStickyLocal,
|
|
990
|
+
isSortingMultiColumn: this.isSortingMultiColumn,
|
|
991
|
+
modelSort: this.modelSortLocal,
|
|
992
|
+
rowsLocalLength: this.rowsLocalLength,
|
|
993
|
+
showFirstSortingSequenceNumber: this.showFirstSortingSequenceNumber,
|
|
994
|
+
sortingSequenceNumberClass: this.sortingSequenceNumberClass,
|
|
995
|
+
onSetSelectedRowsIndexes: this.setSelectedRowsIndexes,
|
|
996
|
+
columnsForRender: this.renderedGroupedColumns,
|
|
997
|
+
}) :
|
|
998
|
+
h(ATableHeader, {
|
|
999
|
+
areAllRowsSelected: this.areAllRowsSelected,
|
|
1000
|
+
areAllVisibleRowsSelected: this.areAllVisibleRowsSelected,
|
|
1001
|
+
areSomeRowsSelected: this.areSomeRowsSelected,
|
|
1002
|
+
disabledOptions: this.disabledOptions,
|
|
1003
|
+
disabledSort: this.disabledSort,
|
|
1004
|
+
hasMultipleActions: this.hasMultipleActions,
|
|
1005
|
+
isRowActionsStickyLocal: this.isRowActionsStickyLocal,
|
|
1006
|
+
isSortingMultiColumn: this.isSortingMultiColumn,
|
|
1007
|
+
modelSort: this.modelSortLocal,
|
|
1008
|
+
rowsLocalLength: this.rowsLocalLength,
|
|
1009
|
+
showFirstSortingSequenceNumber: this.showFirstSortingSequenceNumber,
|
|
1010
|
+
sortingSequenceNumberClass: this.sortingSequenceNumberClass,
|
|
1011
|
+
onSetSelectedRowsIndexes: this.setSelectedRowsIndexes,
|
|
1012
|
+
}),
|
|
1013
|
+
h("div", {
|
|
1014
|
+
class: "a_table__loading",
|
|
1015
|
+
}, [
|
|
1016
|
+
h(ALoading, {
|
|
1017
|
+
isLoading: this.isLoadingTable,
|
|
1018
|
+
}, () => [
|
|
1019
|
+
h("div", {
|
|
1020
|
+
class: "a_table__body",
|
|
1021
|
+
role: this.tableChildRole,
|
|
1022
|
+
}, {
|
|
1023
|
+
default: () => this.rowsLocal.map((row, rowIndex) => {
|
|
1024
|
+
const ROW_ID = getRowIdOrIndex({ row, rowIndex, keyId: this.keyId });
|
|
1025
|
+
|
|
1026
|
+
return h(ATableTr, {
|
|
1027
|
+
key: ROW_ID,
|
|
1028
|
+
allVisibleMobileColumns: this.allVisibleMobileColumns,
|
|
1029
|
+
areAllRowsSelected: this.areAllRowsSelected,
|
|
1030
|
+
columnActionsBtnGroupMaxWidthStyle: this.columnActionsBtnGroupMaxWidthStyle,
|
|
1031
|
+
columnActionsView: this.columnActionsView,
|
|
1032
|
+
countVisibleMobileColumns: this.countVisibleMobileColumns,
|
|
1033
|
+
disabledPreview: this.disabledPreview,
|
|
1034
|
+
disabledPreviewRowCallback: this.disabledPreviewRowCallback,
|
|
1035
|
+
disabledRowActions: this.disabledRowActions,
|
|
1036
|
+
isFooter: false,
|
|
1037
|
+
isPreviewDownOpen: this.previewDownRowIds[ROW_ID],
|
|
1038
|
+
isRowActionsStickyLocal: this.isRowActionsStickyLocal,
|
|
1039
|
+
isTree: this.isTree,
|
|
1040
|
+
isTreeCollapsible: this.isTreeCollapsible,
|
|
1041
|
+
isTreeOpened: this.isTreeOpened,
|
|
1042
|
+
keyChildren: this.keyChildren,
|
|
1043
|
+
keyId: this.keyId,
|
|
1044
|
+
level: 1,
|
|
1045
|
+
row,
|
|
1046
|
+
rowActionsClass: this.rowActionsClass,
|
|
1047
|
+
rowClass: this.rowClass,
|
|
1048
|
+
rowIndex,
|
|
1049
|
+
rowsLength: this.rowsLocal.length,
|
|
1050
|
+
selectedRowsIndexes: this.selectedRowsIndexes,
|
|
1051
|
+
onSetSelectedRowsIndexes: this.setSelectedRowsIndexes,
|
|
1052
|
+
}, {
|
|
1053
|
+
get: vm => [
|
|
1054
|
+
h(AGet, {
|
|
1055
|
+
data: vm.row,
|
|
1056
|
+
keyLabel: vm.column.keyLabel,
|
|
1057
|
+
filter: vm.column.filter,
|
|
1058
|
+
filterParameters: vm.column.filterParameters,
|
|
1059
|
+
defaultValue: vm.column.defaultValue,
|
|
1060
|
+
tag: vm.column.filterTag || "div",
|
|
1061
|
+
}),
|
|
1062
|
+
],
|
|
1063
|
+
...this.$slots,
|
|
1064
|
+
});
|
|
1065
|
+
}),
|
|
1066
|
+
}),
|
|
1067
|
+
(this.isViewTableVisible && !this.hasRows) && h(ATranslation, {
|
|
1068
|
+
class: "a_table__empty_text",
|
|
1069
|
+
text: this.emptyText,
|
|
1070
|
+
}),
|
|
1071
|
+
this.hasRowsFooter && h("div", {
|
|
1072
|
+
class: "a_table__footer",
|
|
1073
|
+
role: this.tableChildRole,
|
|
1074
|
+
}, this.rowsFooter.map((row, rowIndex) => {
|
|
1075
|
+
const ROW_ID = getRowIdOrIndex({ row, rowIndex, keyId: this.keyId });
|
|
1076
|
+
|
|
1077
|
+
return h(ATableTr, {
|
|
1078
|
+
key: ROW_ID,
|
|
1079
|
+
allVisibleMobileColumns: this.allVisibleMobileColumns,
|
|
1080
|
+
areAllRowsSelected: this.areAllRowsSelected,
|
|
1081
|
+
columnActionsBtnGroupMaxWidthStyle: this.columnActionsBtnGroupMaxWidthStyle,
|
|
1082
|
+
columnActionsView: this.columnActionsView,
|
|
1083
|
+
countVisibleMobileColumns: this.countVisibleMobileColumns,
|
|
1084
|
+
disabledPreview: this.disabledPreview,
|
|
1085
|
+
disabledPreviewRowCallback: this.disabledPreviewRowCallback,
|
|
1086
|
+
disabledRowActions: this.disabledRowActions,
|
|
1087
|
+
isFooter: true,
|
|
1088
|
+
isRowActionsStickyLocal: this.isRowActionsStickyLocal,
|
|
1089
|
+
isTree: this.isTree,
|
|
1090
|
+
isTreeCollapsible: this.isTreeCollapsible,
|
|
1091
|
+
isTreeOpened: this.isTreeOpened,
|
|
1092
|
+
keyChildren: this.keyChildren,
|
|
1093
|
+
keyId: this.keyId,
|
|
1094
|
+
level: 1,
|
|
1095
|
+
row,
|
|
1096
|
+
rowActionsClass: this.rowActionsClass,
|
|
1097
|
+
rowClass: this.rowClass,
|
|
1098
|
+
rowIndex,
|
|
1099
|
+
rowsLength: this.rowsFooter.length,
|
|
1100
|
+
selectedRowsIndexes: this.selectedRowsIndexes,
|
|
1101
|
+
onSetSelectedRowsIndexes: this.setSelectedRowsIndexes,
|
|
1102
|
+
}, {
|
|
1103
|
+
get: vm => [
|
|
1104
|
+
h(AGet, {
|
|
1105
|
+
data: vm.row,
|
|
1106
|
+
keyLabel: vm.column.footerPath,
|
|
1107
|
+
filter: vm.column.footerFilter,
|
|
1108
|
+
filterParameters: vm.column.footerFilterParameters,
|
|
1109
|
+
defaultValue: vm.column.footerDefaultValue,
|
|
1110
|
+
}),
|
|
1111
|
+
],
|
|
1112
|
+
...this.$slots,
|
|
1113
|
+
});
|
|
1114
|
+
})),
|
|
1115
|
+
]),
|
|
1116
|
+
]),
|
|
1117
|
+
|
|
1118
|
+
]),
|
|
1119
|
+
(!this.isViewTableVisible && this.viewCurrent && this.$slots[this.viewCurrent.type]) &&
|
|
1120
|
+
this.$slots[this.viewCurrent.type]({
|
|
1121
|
+
isLoading: this.isLoadingTable,
|
|
1122
|
+
rows: this.rowsLocalAll,
|
|
1123
|
+
}),
|
|
1124
|
+
(this.usePaginationLocal && this.usePaginationBottom && this.hasRows) ?
|
|
1125
|
+
h(APagination, {
|
|
1126
|
+
class: "a_table__pagination_bottom",
|
|
1127
|
+
disabled: this.pagination.disabled,
|
|
1128
|
+
limit: this.limit,
|
|
1129
|
+
limitsPerPage: this.pagination.limitsPerPage,
|
|
1130
|
+
maxPages: this.pagination.maxPages,
|
|
1131
|
+
modes: this.paginationModes,
|
|
1132
|
+
offset: this.offset,
|
|
1133
|
+
rowsLength: this.rowsLocalLength,
|
|
1134
|
+
totalCount: this.countAllRowsLocal,
|
|
1135
|
+
"onUpdate:limit": this.changeLimit,
|
|
1136
|
+
"onUpdate:offset": this.changeOffset,
|
|
1137
|
+
}) :
|
|
1138
|
+
"",
|
|
1139
|
+
this.isPreviewRightOpen ?
|
|
1140
|
+
h(ATablePreviewRight, {
|
|
1141
|
+
countAllRows: this.countAllRowsLocal,
|
|
1142
|
+
isMobile: this.isMobile,
|
|
1143
|
+
isLoadingTable: this.isLoadingTable,
|
|
1144
|
+
limitPagination: this.limit,
|
|
1145
|
+
offsetPagination: this.offset,
|
|
1146
|
+
previewStyles: this.previewStyles,
|
|
1147
|
+
rowIndex: this.previewRightRowIndex,
|
|
1148
|
+
rows: this.rowsLocalAll,
|
|
1149
|
+
disabledPreviewRowCallback: this.disabledPreviewRowCallback,
|
|
1150
|
+
usePagination: !!this.usePaginationLocal,
|
|
1151
|
+
onClosePreview: this.closePreview,
|
|
1152
|
+
onMousedownResizePreviewRight: this.mousedownResizePreviewRight,
|
|
1153
|
+
onMousemoveResizePreviewRight: this.mousemoveResizePreviewRight,
|
|
1154
|
+
onMouseupResizePreviewRight: this.mouseupResizePreviewRight,
|
|
1155
|
+
onTogglePreview: this.onTogglePreview,
|
|
1156
|
+
onTogglePreviewResize: this.togglePreviewResize,
|
|
1157
|
+
"onUpdate:offset": this.changeOffset,
|
|
1158
|
+
}, this.$slots) :
|
|
1159
|
+
"",
|
|
1160
|
+
]),
|
|
1161
|
+
]);
|
|
1162
|
+
},
|
|
1163
|
+
};
|