aloha-vue 2.62.0 → 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 -1061
- package/dist/aloha-vue.css +14 -6
- package/dist/aloha-vue.css.map +1 -1
- package/dist/aloha-vue.es.js +17124 -16970
- 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 -574
- 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 +672 -460
- 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
|
@@ -1,584 +1,590 @@
|
|
|
1
|
-
import {
|
|
2
|
-
h,
|
|
3
|
-
nextTick,
|
|
4
|
-
} from "vue";
|
|
5
|
-
import {
|
|
6
|
-
AAlert,
|
|
7
|
-
AErrors,
|
|
8
|
-
} from "../../index";
|
|
9
|
-
|
|
10
|
-
import ATableFormCell from "../ATableFormCell/ATableFormCell";
|
|
11
|
-
import ATableFormCellAction from "../ATableFormCellAction/ATableFormCellAction";
|
|
12
|
-
import ATableFormCellDnd from "../ATableFormCellDnd/ATableFormCellDnd";
|
|
13
|
-
import ATableFormCellList from "../ATableFormCellList/ATableFormCellList";
|
|
14
|
-
import ATableFormTh from "../ATableFormTh/ATableFormTh";
|
|
15
|
-
|
|
16
|
-
import ClassAPI from "./compositionAPI/ClassAPI";
|
|
17
|
-
import EditAPI from "./compositionAPI/EditAPI";
|
|
18
|
-
import ErrorsAPI from "./compositionAPI/ErrorsAPI";
|
|
19
|
-
import FocusAPI from "./compositionAPI/FocusAPI";
|
|
20
|
-
import IdAPI from "./compositionAPI/IdAPI";
|
|
21
|
-
|
|
22
|
-
import {
|
|
23
|
-
cloneDeep,
|
|
24
|
-
get,
|
|
25
|
-
isFunction,
|
|
26
|
-
} from "lodash-es";
|
|
27
|
-
|
|
28
|
-
const INTERACTIVE_ROW_CLICK_SELECTOR = [
|
|
29
|
-
"a",
|
|
30
|
-
"button",
|
|
31
|
-
"[contenteditable]",
|
|
32
|
-
"[role='button']",
|
|
33
|
-
"[role='checkbox']",
|
|
34
|
-
"[role='combobox']",
|
|
35
|
-
"[role='link']",
|
|
36
|
-
"[role='menuitem']",
|
|
37
|
-
"[role='option']",
|
|
38
|
-
"[role='radio']",
|
|
39
|
-
"[role='switch']",
|
|
40
|
-
"[role='textbox']",
|
|
41
|
-
].join(",");
|
|
42
|
-
|
|
43
|
-
const isDisabledOrReadonlyElement = element => {
|
|
44
|
-
return !!element && (
|
|
45
|
-
element.disabled ||
|
|
46
|
-
element.hasAttribute("readonly") ||
|
|
47
|
-
element.getAttribute("aria-disabled") === "true" ||
|
|
48
|
-
element.getAttribute("aria-readonly") === "true"
|
|
49
|
-
);
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
const getColumnIdFromRowClickEvent = ($event, idTr) => {
|
|
53
|
-
const columnElement = $event.target?.closest?.("[data-column-id]");
|
|
54
|
-
|
|
55
|
-
if (columnElement?.dataset.columnId) {
|
|
56
|
-
return columnElement.dataset.columnId;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const elementWithId = $event.target?.closest?.("[id]");
|
|
60
|
-
const elementId = elementWithId?.id;
|
|
61
|
-
|
|
62
|
-
if (elementId?.startsWith(idTr)) {
|
|
63
|
-
return elementId.slice(idTr.length);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return undefined;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export default {
|
|
70
|
-
name: "ATableFormRow",
|
|
71
|
-
props: {
|
|
72
|
-
actionsClasses: {
|
|
73
|
-
type: Object,
|
|
74
|
-
required: false,
|
|
75
|
-
default: () => ({}),
|
|
76
|
-
},
|
|
77
|
-
actionsDisabledCallback: {
|
|
78
|
-
type: Object,
|
|
79
|
-
required: false,
|
|
80
|
-
default: () => ({}),
|
|
81
|
-
},
|
|
82
|
-
actionsHideCallback: {
|
|
83
|
-
type: Object,
|
|
84
|
-
required: false,
|
|
85
|
-
default: () => ({}),
|
|
86
|
-
},
|
|
87
|
-
actionsTitleCallback: {
|
|
88
|
-
type: Object,
|
|
89
|
-
required: false,
|
|
90
|
-
default: () => ({}),
|
|
91
|
-
},
|
|
92
|
-
allColumnsLength: {
|
|
93
|
-
type: Number,
|
|
94
|
-
required: true,
|
|
95
|
-
},
|
|
96
|
-
canMoveRowDown: {
|
|
97
|
-
type: Function,
|
|
98
|
-
required: true,
|
|
99
|
-
},
|
|
100
|
-
canMoveRowUp: {
|
|
101
|
-
type: Function,
|
|
102
|
-
required: true,
|
|
103
|
-
},
|
|
104
|
-
cellTag: {
|
|
105
|
-
type: String,
|
|
106
|
-
required: false,
|
|
107
|
-
default: undefined,
|
|
108
|
-
},
|
|
109
|
-
changeModel: {
|
|
110
|
-
type: Function,
|
|
111
|
-
required: false,
|
|
112
|
-
default: undefined,
|
|
113
|
-
},
|
|
114
|
-
columns: {
|
|
115
|
-
type: Array,
|
|
116
|
-
required: true,
|
|
117
|
-
},
|
|
118
|
-
columnsStylesGrow: {
|
|
119
|
-
type: Object,
|
|
120
|
-
required: false,
|
|
121
|
-
default: () => ({}),
|
|
122
|
-
},
|
|
123
|
-
draggedRowIndex: {
|
|
124
|
-
type: Number,
|
|
125
|
-
required: false,
|
|
126
|
-
default: undefined,
|
|
127
|
-
},
|
|
128
|
-
editModel: {
|
|
129
|
-
type: Object,
|
|
130
|
-
required: false,
|
|
131
|
-
default: undefined,
|
|
132
|
-
},
|
|
133
|
-
editFocusColumnId: {
|
|
134
|
-
type: [String, Number],
|
|
135
|
-
required: false,
|
|
136
|
-
default: undefined,
|
|
137
|
-
},
|
|
138
|
-
errorIcon: {
|
|
139
|
-
type: String,
|
|
140
|
-
required: false,
|
|
141
|
-
default: undefined,
|
|
142
|
-
},
|
|
143
|
-
extra: {
|
|
144
|
-
type: Object,
|
|
145
|
-
required: false,
|
|
146
|
-
default: undefined,
|
|
147
|
-
},
|
|
148
|
-
hasActionsColumn: {
|
|
149
|
-
type: Boolean,
|
|
150
|
-
required: false,
|
|
151
|
-
default: false,
|
|
152
|
-
},
|
|
153
|
-
hasActiveEditRow: {
|
|
154
|
-
type: Boolean,
|
|
155
|
-
required: false,
|
|
156
|
-
default: false,
|
|
157
|
-
},
|
|
158
|
-
id: {
|
|
159
|
-
type: String,
|
|
160
|
-
required: true,
|
|
161
|
-
},
|
|
162
|
-
isActionsSticky: {
|
|
163
|
-
type: Boolean,
|
|
164
|
-
required: false,
|
|
165
|
-
default: false,
|
|
166
|
-
},
|
|
167
|
-
isActiveEditMode: {
|
|
168
|
-
type: Boolean,
|
|
169
|
-
required: false,
|
|
170
|
-
default: false,
|
|
171
|
-
},
|
|
172
|
-
isCreateMode: {
|
|
173
|
-
type: Boolean,
|
|
174
|
-
required: false,
|
|
175
|
-
default: false,
|
|
176
|
-
},
|
|
177
|
-
isDeletable: {
|
|
178
|
-
type: Boolean,
|
|
179
|
-
required: false,
|
|
180
|
-
default: false,
|
|
181
|
-
},
|
|
182
|
-
isDeletableConfirm: {
|
|
183
|
-
type: Boolean,
|
|
184
|
-
required: false,
|
|
185
|
-
default: false,
|
|
186
|
-
},
|
|
1
|
+
import {
|
|
2
|
+
h,
|
|
3
|
+
nextTick,
|
|
4
|
+
} from "vue";
|
|
5
|
+
import {
|
|
6
|
+
AAlert,
|
|
7
|
+
AErrors,
|
|
8
|
+
} from "../../index";
|
|
9
|
+
|
|
10
|
+
import ATableFormCell from "../ATableFormCell/ATableFormCell";
|
|
11
|
+
import ATableFormCellAction from "../ATableFormCellAction/ATableFormCellAction";
|
|
12
|
+
import ATableFormCellDnd from "../ATableFormCellDnd/ATableFormCellDnd";
|
|
13
|
+
import ATableFormCellList from "../ATableFormCellList/ATableFormCellList";
|
|
14
|
+
import ATableFormTh from "../ATableFormTh/ATableFormTh";
|
|
15
|
+
|
|
16
|
+
import ClassAPI from "./compositionAPI/ClassAPI";
|
|
17
|
+
import EditAPI from "./compositionAPI/EditAPI";
|
|
18
|
+
import ErrorsAPI from "./compositionAPI/ErrorsAPI";
|
|
19
|
+
import FocusAPI from "./compositionAPI/FocusAPI";
|
|
20
|
+
import IdAPI from "./compositionAPI/IdAPI";
|
|
21
|
+
|
|
22
|
+
import {
|
|
23
|
+
cloneDeep,
|
|
24
|
+
get,
|
|
25
|
+
isFunction,
|
|
26
|
+
} from "lodash-es";
|
|
27
|
+
|
|
28
|
+
const INTERACTIVE_ROW_CLICK_SELECTOR = [
|
|
29
|
+
"a",
|
|
30
|
+
"button",
|
|
31
|
+
"[contenteditable]",
|
|
32
|
+
"[role='button']",
|
|
33
|
+
"[role='checkbox']",
|
|
34
|
+
"[role='combobox']",
|
|
35
|
+
"[role='link']",
|
|
36
|
+
"[role='menuitem']",
|
|
37
|
+
"[role='option']",
|
|
38
|
+
"[role='radio']",
|
|
39
|
+
"[role='switch']",
|
|
40
|
+
"[role='textbox']",
|
|
41
|
+
].join(",");
|
|
42
|
+
|
|
43
|
+
const isDisabledOrReadonlyElement = element => {
|
|
44
|
+
return !!element && (
|
|
45
|
+
element.disabled ||
|
|
46
|
+
element.hasAttribute("readonly") ||
|
|
47
|
+
element.getAttribute("aria-disabled") === "true" ||
|
|
48
|
+
element.getAttribute("aria-readonly") === "true"
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const getColumnIdFromRowClickEvent = ($event, idTr) => {
|
|
53
|
+
const columnElement = $event.target?.closest?.("[data-column-id]");
|
|
54
|
+
|
|
55
|
+
if (columnElement?.dataset.columnId) {
|
|
56
|
+
return columnElement.dataset.columnId;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const elementWithId = $event.target?.closest?.("[id]");
|
|
60
|
+
const elementId = elementWithId?.id;
|
|
61
|
+
|
|
62
|
+
if (elementId?.startsWith(idTr)) {
|
|
63
|
+
return elementId.slice(idTr.length);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return undefined;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export default {
|
|
70
|
+
name: "ATableFormRow",
|
|
71
|
+
props: {
|
|
72
|
+
actionsClasses: {
|
|
73
|
+
type: Object,
|
|
74
|
+
required: false,
|
|
75
|
+
default: () => ({}),
|
|
76
|
+
},
|
|
77
|
+
actionsDisabledCallback: {
|
|
78
|
+
type: Object,
|
|
79
|
+
required: false,
|
|
80
|
+
default: () => ({}),
|
|
81
|
+
},
|
|
82
|
+
actionsHideCallback: {
|
|
83
|
+
type: Object,
|
|
84
|
+
required: false,
|
|
85
|
+
default: () => ({}),
|
|
86
|
+
},
|
|
87
|
+
actionsTitleCallback: {
|
|
88
|
+
type: Object,
|
|
89
|
+
required: false,
|
|
90
|
+
default: () => ({}),
|
|
91
|
+
},
|
|
92
|
+
allColumnsLength: {
|
|
93
|
+
type: Number,
|
|
94
|
+
required: true,
|
|
95
|
+
},
|
|
96
|
+
canMoveRowDown: {
|
|
97
|
+
type: Function,
|
|
98
|
+
required: true,
|
|
99
|
+
},
|
|
100
|
+
canMoveRowUp: {
|
|
101
|
+
type: Function,
|
|
102
|
+
required: true,
|
|
103
|
+
},
|
|
104
|
+
cellTag: {
|
|
105
|
+
type: String,
|
|
106
|
+
required: false,
|
|
107
|
+
default: undefined,
|
|
108
|
+
},
|
|
109
|
+
changeModel: {
|
|
110
|
+
type: Function,
|
|
111
|
+
required: false,
|
|
112
|
+
default: undefined,
|
|
113
|
+
},
|
|
114
|
+
columns: {
|
|
115
|
+
type: Array,
|
|
116
|
+
required: true,
|
|
117
|
+
},
|
|
118
|
+
columnsStylesGrow: {
|
|
119
|
+
type: Object,
|
|
120
|
+
required: false,
|
|
121
|
+
default: () => ({}),
|
|
122
|
+
},
|
|
123
|
+
draggedRowIndex: {
|
|
124
|
+
type: Number,
|
|
125
|
+
required: false,
|
|
126
|
+
default: undefined,
|
|
127
|
+
},
|
|
128
|
+
editModel: {
|
|
129
|
+
type: Object,
|
|
130
|
+
required: false,
|
|
131
|
+
default: undefined,
|
|
132
|
+
},
|
|
133
|
+
editFocusColumnId: {
|
|
134
|
+
type: [String, Number],
|
|
135
|
+
required: false,
|
|
136
|
+
default: undefined,
|
|
137
|
+
},
|
|
138
|
+
errorIcon: {
|
|
139
|
+
type: String,
|
|
140
|
+
required: false,
|
|
141
|
+
default: undefined,
|
|
142
|
+
},
|
|
143
|
+
extra: {
|
|
144
|
+
type: Object,
|
|
145
|
+
required: false,
|
|
146
|
+
default: undefined,
|
|
147
|
+
},
|
|
148
|
+
hasActionsColumn: {
|
|
149
|
+
type: Boolean,
|
|
150
|
+
required: false,
|
|
151
|
+
default: false,
|
|
152
|
+
},
|
|
153
|
+
hasActiveEditRow: {
|
|
154
|
+
type: Boolean,
|
|
155
|
+
required: false,
|
|
156
|
+
default: false,
|
|
157
|
+
},
|
|
158
|
+
id: {
|
|
159
|
+
type: String,
|
|
160
|
+
required: true,
|
|
161
|
+
},
|
|
162
|
+
isActionsSticky: {
|
|
163
|
+
type: Boolean,
|
|
164
|
+
required: false,
|
|
165
|
+
default: false,
|
|
166
|
+
},
|
|
167
|
+
isActiveEditMode: {
|
|
168
|
+
type: Boolean,
|
|
169
|
+
required: false,
|
|
170
|
+
default: false,
|
|
171
|
+
},
|
|
172
|
+
isCreateMode: {
|
|
173
|
+
type: Boolean,
|
|
174
|
+
required: false,
|
|
175
|
+
default: false,
|
|
176
|
+
},
|
|
177
|
+
isDeletable: {
|
|
178
|
+
type: Boolean,
|
|
179
|
+
required: false,
|
|
180
|
+
default: false,
|
|
181
|
+
},
|
|
182
|
+
isDeletableConfirm: {
|
|
183
|
+
type: Boolean,
|
|
184
|
+
required: false,
|
|
185
|
+
default: false,
|
|
186
|
+
},
|
|
187
187
|
isDndDisabled: {
|
|
188
188
|
type: Boolean,
|
|
189
189
|
required: false,
|
|
190
190
|
default: false,
|
|
191
191
|
},
|
|
192
|
-
|
|
193
|
-
type: Boolean,
|
|
194
|
-
required: false,
|
|
195
|
-
default: false,
|
|
196
|
-
},
|
|
197
|
-
isEditable: {
|
|
198
|
-
type: Boolean,
|
|
199
|
-
required: false,
|
|
200
|
-
default: false,
|
|
201
|
-
},
|
|
202
|
-
isEditOnRowClick: {
|
|
192
|
+
isDndLocked: {
|
|
203
193
|
type: Boolean,
|
|
204
194
|
required: false,
|
|
205
195
|
default: false,
|
|
206
196
|
},
|
|
207
|
-
|
|
208
|
-
type: Boolean,
|
|
209
|
-
required: false,
|
|
210
|
-
default: false,
|
|
211
|
-
},
|
|
212
|
-
|
|
213
|
-
type: Boolean,
|
|
214
|
-
required: false,
|
|
215
|
-
default: false,
|
|
216
|
-
},
|
|
217
|
-
|
|
218
|
-
type:
|
|
219
|
-
required:
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
},
|
|
292
|
-
|
|
293
|
-
type:
|
|
294
|
-
required: false,
|
|
295
|
-
default:
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
},
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
} =
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
if (
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
197
|
+
isDragAndDrop: {
|
|
198
|
+
type: Boolean,
|
|
199
|
+
required: false,
|
|
200
|
+
default: false,
|
|
201
|
+
},
|
|
202
|
+
isEditable: {
|
|
203
|
+
type: Boolean,
|
|
204
|
+
required: false,
|
|
205
|
+
default: false,
|
|
206
|
+
},
|
|
207
|
+
isEditOnRowClick: {
|
|
208
|
+
type: Boolean,
|
|
209
|
+
required: false,
|
|
210
|
+
default: false,
|
|
211
|
+
},
|
|
212
|
+
isFooter: {
|
|
213
|
+
type: Boolean,
|
|
214
|
+
required: false,
|
|
215
|
+
default: false,
|
|
216
|
+
},
|
|
217
|
+
isHeader: {
|
|
218
|
+
type: Boolean,
|
|
219
|
+
required: false,
|
|
220
|
+
default: false,
|
|
221
|
+
},
|
|
222
|
+
moveRowDown: {
|
|
223
|
+
type: Function,
|
|
224
|
+
required: true,
|
|
225
|
+
},
|
|
226
|
+
moveRowUp: {
|
|
227
|
+
type: Function,
|
|
228
|
+
required: true,
|
|
229
|
+
},
|
|
230
|
+
onCancelEditRow: {
|
|
231
|
+
type: Function,
|
|
232
|
+
required: true,
|
|
233
|
+
},
|
|
234
|
+
onDeleteRow: {
|
|
235
|
+
type: Function,
|
|
236
|
+
required: true,
|
|
237
|
+
},
|
|
238
|
+
onDragend: {
|
|
239
|
+
type: Function,
|
|
240
|
+
required: true,
|
|
241
|
+
},
|
|
242
|
+
onDragleave: {
|
|
243
|
+
type: Function,
|
|
244
|
+
required: false,
|
|
245
|
+
default: undefined,
|
|
246
|
+
},
|
|
247
|
+
onDragover: {
|
|
248
|
+
type: Function,
|
|
249
|
+
required: false,
|
|
250
|
+
default: undefined,
|
|
251
|
+
},
|
|
252
|
+
onDragstart: {
|
|
253
|
+
type: Function,
|
|
254
|
+
required: true,
|
|
255
|
+
},
|
|
256
|
+
onDrop: {
|
|
257
|
+
type: Function,
|
|
258
|
+
required: false,
|
|
259
|
+
default: undefined,
|
|
260
|
+
},
|
|
261
|
+
onEditRow: {
|
|
262
|
+
type: Function,
|
|
263
|
+
required: true,
|
|
264
|
+
},
|
|
265
|
+
row: {
|
|
266
|
+
type: Object,
|
|
267
|
+
required: true,
|
|
268
|
+
},
|
|
269
|
+
rowClass: {
|
|
270
|
+
type: [String, Object, Array, Function],
|
|
271
|
+
required: false,
|
|
272
|
+
default: undefined,
|
|
273
|
+
},
|
|
274
|
+
rowIndex: {
|
|
275
|
+
type: Number,
|
|
276
|
+
required: true,
|
|
277
|
+
},
|
|
278
|
+
rows: {
|
|
279
|
+
type: Array,
|
|
280
|
+
required: true,
|
|
281
|
+
},
|
|
282
|
+
rowView: {
|
|
283
|
+
type: String,
|
|
284
|
+
required: false,
|
|
285
|
+
default: "table",
|
|
286
|
+
validator: value => ["list", "table"].includes(value),
|
|
287
|
+
},
|
|
288
|
+
saveRow: {
|
|
289
|
+
type: Function,
|
|
290
|
+
required: true,
|
|
291
|
+
},
|
|
292
|
+
texts: {
|
|
293
|
+
type: Object,
|
|
294
|
+
required: false,
|
|
295
|
+
default: () => ({}),
|
|
296
|
+
},
|
|
297
|
+
trClass: {
|
|
298
|
+
type: [String, Object, Array],
|
|
299
|
+
required: false,
|
|
300
|
+
default: undefined,
|
|
301
|
+
},
|
|
302
|
+
widths: {
|
|
303
|
+
type: Object,
|
|
304
|
+
required: false,
|
|
305
|
+
default: () => ({}),
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
setup(props) {
|
|
309
|
+
const {
|
|
310
|
+
idTr,
|
|
311
|
+
} = IdAPI(props);
|
|
312
|
+
|
|
313
|
+
const {
|
|
314
|
+
focusEditableElementByColumnId,
|
|
315
|
+
focusFirstEditableElement,
|
|
316
|
+
} = FocusAPI({
|
|
317
|
+
idTr,
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
const {
|
|
321
|
+
errorsLocal,
|
|
322
|
+
hasErrors,
|
|
323
|
+
optionsListForErrors,
|
|
324
|
+
} = ErrorsAPI(props);
|
|
325
|
+
|
|
326
|
+
const {
|
|
327
|
+
rowClassLocal,
|
|
328
|
+
trClassLocal,
|
|
329
|
+
} = ClassAPI(props, {
|
|
330
|
+
hasErrors,
|
|
331
|
+
});
|
|
332
|
+
|
|
333
|
+
const {
|
|
334
|
+
cancelEditRow,
|
|
335
|
+
isSaving,
|
|
336
|
+
modelLocal,
|
|
337
|
+
saveEditRow,
|
|
338
|
+
updateModelLocal,
|
|
339
|
+
} = EditAPI(props, {
|
|
340
|
+
errorsLocal,
|
|
341
|
+
});
|
|
342
|
+
|
|
343
|
+
return {
|
|
344
|
+
cancelEditRow,
|
|
345
|
+
errorsLocal,
|
|
346
|
+
focusFirstEditableElement,
|
|
347
|
+
focusEditableElementByColumnId,
|
|
348
|
+
hasErrors,
|
|
349
|
+
rowClassLocal,
|
|
350
|
+
idTr,
|
|
351
|
+
isSaving,
|
|
352
|
+
modelLocal,
|
|
353
|
+
optionsListForErrors,
|
|
354
|
+
saveEditRow,
|
|
355
|
+
trClassLocal,
|
|
356
|
+
updateModelLocal,
|
|
357
|
+
};
|
|
358
|
+
},
|
|
359
|
+
computed: {
|
|
360
|
+
canEditOnRowClick() {
|
|
361
|
+
if (
|
|
362
|
+
!this.isEditOnRowClick ||
|
|
363
|
+
!this.isEditable ||
|
|
364
|
+
this.isActiveEditMode ||
|
|
365
|
+
this.isCreateMode ||
|
|
366
|
+
this.isFooter ||
|
|
367
|
+
this.isHeader ||
|
|
368
|
+
this.hasActiveEditRow
|
|
369
|
+
) {
|
|
370
|
+
return false;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
const editHideCallback = get(this.actionsHideCallback, "edit");
|
|
374
|
+
|
|
375
|
+
if (isFunction(editHideCallback) && editHideCallback({
|
|
376
|
+
row: this.row,
|
|
377
|
+
rowIndex: this.rowIndex,
|
|
378
|
+
})) {
|
|
379
|
+
return false;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
const editDisabledCallback = get(this.actionsDisabledCallback, "edit");
|
|
383
|
+
|
|
384
|
+
if (isFunction(editDisabledCallback) && editDisabledCallback({
|
|
385
|
+
row: this.row,
|
|
386
|
+
rowIndex: this.rowIndex,
|
|
387
|
+
})) {
|
|
388
|
+
return false;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
return true;
|
|
392
|
+
},
|
|
393
|
+
currentRowData() {
|
|
394
|
+
return this.isActiveEditMode && this.modelLocal ? this.modelLocal : this.row;
|
|
395
|
+
},
|
|
396
|
+
},
|
|
397
|
+
methods: {
|
|
398
|
+
onRowClick($event) {
|
|
399
|
+
if (!this.canEditOnRowClick) {
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
if ($event.target?.closest?.(".a_table_form__cell_actions, .a_table_form__cell_reorder")) {
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
const interactiveElement = $event.target?.closest?.(INTERACTIVE_ROW_CLICK_SELECTOR);
|
|
408
|
+
|
|
409
|
+
if (interactiveElement && !isDisabledOrReadonlyElement(interactiveElement)) {
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
this.onEditRow({
|
|
414
|
+
focusColumnId: getColumnIdFromRowClickEvent($event, this.idTr),
|
|
415
|
+
id: this.idTr,
|
|
416
|
+
row: this.row,
|
|
417
|
+
rowIndex: this.rowIndex,
|
|
418
|
+
});
|
|
419
|
+
},
|
|
420
|
+
},
|
|
421
|
+
watch: {
|
|
422
|
+
isActiveEditMode: {
|
|
423
|
+
immediate: true,
|
|
424
|
+
handler(isActiveEditMode) {
|
|
425
|
+
if (isActiveEditMode) {
|
|
426
|
+
this.modelLocal = cloneDeep(this.editModel === undefined ? this.row : this.editModel);
|
|
427
|
+
this.errorsLocal = {};
|
|
428
|
+
nextTick(() => {
|
|
429
|
+
if (!this.focusEditableElementByColumnId(this.editFocusColumnId)) {
|
|
430
|
+
this.focusFirstEditableElement();
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
return;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
this.errorsLocal = {};
|
|
437
|
+
this.isSaving = false;
|
|
438
|
+
},
|
|
439
|
+
},
|
|
440
|
+
},
|
|
441
|
+
render() {
|
|
442
|
+
const rows = [];
|
|
443
|
+
|
|
444
|
+
if (this.isActiveEditMode && this.texts.editInfoText) {
|
|
445
|
+
rows.push(h("tr", {
|
|
446
|
+
class: "a_table_form__row a_table_form__row_info",
|
|
447
|
+
key: `info_${ this.rowIndex }`,
|
|
448
|
+
}, [
|
|
449
|
+
h("td", {
|
|
450
|
+
class: "a_table_form__cell a_table_form__cell_info",
|
|
451
|
+
colspan: this.allColumnsLength,
|
|
452
|
+
}, [
|
|
453
|
+
h(AAlert, {
|
|
454
|
+
alertClass: "a_table_form__info",
|
|
455
|
+
html: this.texts.editInfoText,
|
|
456
|
+
isVisible: true,
|
|
457
|
+
type: "info",
|
|
458
|
+
}),
|
|
459
|
+
]),
|
|
460
|
+
]));
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
rows.push(h("tr", {
|
|
464
|
+
id: this.idTr,
|
|
465
|
+
"aria-grabbed": !this.isHeader && !this.isFooter ? this.draggedRowIndex === this.rowIndex : undefined,
|
|
466
|
+
class: [
|
|
467
|
+
this.trClassLocal,
|
|
468
|
+
{
|
|
469
|
+
a_table_form__row_edit_on_click: this.canEditOnRowClick,
|
|
470
|
+
},
|
|
471
|
+
],
|
|
472
|
+
key: `main_${ this.rowIndex }`,
|
|
473
|
+
onClick: this.onRowClick,
|
|
474
|
+
onDragleave: this.onDragleave && ($event => this.onDragleave($event, this.rowIndex)),
|
|
475
|
+
onDragover: this.onDragover && ($event => this.onDragover($event, this.rowIndex)),
|
|
476
|
+
onDrop: this.onDrop && ($event => this.onDrop($event, this.rowIndex)),
|
|
477
|
+
}, [
|
|
478
|
+
this.isDragAndDrop ?
|
|
479
|
+
h(ATableFormCellDnd, {
|
|
480
|
+
id: this.idTr,
|
|
481
|
+
canMoveRowDown: this.canMoveRowDown,
|
|
482
|
+
canMoveRowUp: this.canMoveRowUp,
|
|
483
|
+
isCreateMode: this.isCreateMode,
|
|
479
484
|
isDndDisabled: this.isDndDisabled,
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}
|
|
485
|
+
isDndLocked: this.isDndLocked,
|
|
486
|
+
isDragAndDrop: this.isDragAndDrop,
|
|
487
|
+
isFooter: this.isFooter,
|
|
488
|
+
isHeader: this.isHeader,
|
|
489
|
+
moveRowDown: this.moveRowDown,
|
|
490
|
+
moveRowUp: this.moveRowUp,
|
|
491
|
+
onDragend: this.onDragend,
|
|
492
|
+
onDragstart: this.onDragstart,
|
|
493
|
+
rowIndex: this.rowIndex,
|
|
494
|
+
texts: this.texts,
|
|
495
|
+
widths: this.widths,
|
|
496
|
+
}) :
|
|
497
|
+
null,
|
|
498
|
+
...(this.rowView === "list" && !this.isHeader ?
|
|
499
|
+
[h(ATableFormCellList, {
|
|
500
|
+
id: this.idTr,
|
|
501
|
+
columns: this.columns,
|
|
502
|
+
errors: this.errorsLocal,
|
|
503
|
+
isEditable: this.isEditable,
|
|
504
|
+
isEditMode: this.isActiveEditMode,
|
|
505
|
+
isFooter: this.isFooter,
|
|
506
|
+
onUpdateRowData: this.updateModelLocal,
|
|
507
|
+
row: this.row,
|
|
508
|
+
rowData: this.currentRowData,
|
|
509
|
+
rowIndex: this.rowIndex,
|
|
510
|
+
rows: this.rows,
|
|
511
|
+
}, this.$slots)] :
|
|
512
|
+
this.columns.map((column, columnIndex) => {
|
|
513
|
+
if (this.isHeader) {
|
|
514
|
+
return h(ATableFormTh, {
|
|
515
|
+
column,
|
|
516
|
+
columnStyle: this.columnsStylesGrow[column.id],
|
|
517
|
+
isEditable: this.isEditable,
|
|
518
|
+
}, this.$slots);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
return h(ATableFormCell, {
|
|
522
|
+
id: this.idTr,
|
|
523
|
+
column,
|
|
524
|
+
columnIndex,
|
|
525
|
+
columnStyle: this.columnsStylesGrow[column.id],
|
|
526
|
+
errorIcon: this.errorIcon,
|
|
527
|
+
errors: this.errorsLocal,
|
|
528
|
+
isEditable: this.isEditable,
|
|
529
|
+
isEditMode: this.isActiveEditMode,
|
|
530
|
+
isFooter: this.isFooter,
|
|
531
|
+
onUpdateRowData: this.updateModelLocal,
|
|
532
|
+
row: this.row,
|
|
533
|
+
rowData: this.currentRowData,
|
|
534
|
+
rowIndex: this.rowIndex,
|
|
535
|
+
rows: this.rows,
|
|
536
|
+
tag: this.cellTag,
|
|
537
|
+
}, this.$slots);
|
|
538
|
+
})),
|
|
539
|
+
this.hasActionsColumn ?
|
|
540
|
+
h(ATableFormCellAction, {
|
|
541
|
+
id: this.idTr,
|
|
542
|
+
actionsClasses: this.actionsClasses,
|
|
543
|
+
actionsDisabledCallback: this.actionsDisabledCallback,
|
|
544
|
+
actionsHideCallback: this.actionsHideCallback,
|
|
545
|
+
actionsTitleCallback: this.actionsTitleCallback,
|
|
546
|
+
extra: this.extra,
|
|
547
|
+
hasActiveEditRow: this.hasActiveEditRow,
|
|
548
|
+
isActionsSticky: this.isActionsSticky,
|
|
549
|
+
isActiveEditMode: this.isActiveEditMode,
|
|
550
|
+
isDeletable: this.isDeletable,
|
|
551
|
+
isDeletableConfirm: this.isDeletableConfirm,
|
|
552
|
+
isEditable: this.isEditable,
|
|
553
|
+
isFooter: this.isFooter,
|
|
554
|
+
isHeader: this.isHeader,
|
|
555
|
+
isSaving: this.isSaving,
|
|
556
|
+
onCancelEditRow: this.cancelEditRow,
|
|
557
|
+
onDeleteRow: this.onDeleteRow,
|
|
558
|
+
onEditRow: this.onEditRow,
|
|
559
|
+
onSaveEditRow: this.saveEditRow,
|
|
560
|
+
row: this.row,
|
|
561
|
+
rowIndex: this.rowIndex,
|
|
562
|
+
texts: this.texts,
|
|
563
|
+
widths: this.widths,
|
|
564
|
+
}) :
|
|
565
|
+
null,
|
|
566
|
+
]));
|
|
567
|
+
|
|
568
|
+
if (this.rowView === "table" && this.isActiveEditMode && this.hasErrors) {
|
|
569
|
+
rows.push(h("tr", {
|
|
570
|
+
class: "a_table_form__row a_table_form__row_errors",
|
|
571
|
+
key: `errors_${ this.rowIndex }`,
|
|
572
|
+
}, [
|
|
573
|
+
h("td", {
|
|
574
|
+
class: "a_table_form__cell a_table_form__cell_errors",
|
|
575
|
+
colspan: this.allColumnsLength,
|
|
576
|
+
}, [
|
|
577
|
+
h(AErrors, {
|
|
578
|
+
autoFocus: true,
|
|
579
|
+
closable: false,
|
|
580
|
+
errors: this.errorsLocal,
|
|
581
|
+
optionsList: this.optionsListForErrors,
|
|
582
|
+
idPrefix: this.idTr,
|
|
583
|
+
}),
|
|
584
|
+
]),
|
|
585
|
+
]));
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
return rows;
|
|
589
|
+
},
|
|
590
|
+
};
|