@milaboratories/uikit 2.10.14 → 2.10.16
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/.oxfmtrc.json +4 -0
- package/.oxlintrc.json +3 -0
- package/.prettierrc +1 -1
- package/.turbo/turbo-build.log +191 -191
- package/.turbo/turbo-formatter$colon$check.log +12 -0
- package/.turbo/turbo-linter$colon$check.log +10 -0
- package/.turbo/{turbo-type-check.log → turbo-types$colon$check.log} +2 -2
- package/CHANGELOG.md +16 -0
- package/build.browser-lib.config.js +6 -6
- package/dist/base/BtnBase.vue.js.map +1 -1
- package/dist/colors/color.d.ts.map +1 -1
- package/dist/colors/color.js.map +1 -1
- package/dist/colors/gradient.d.ts.map +1 -1
- package/dist/colors/gradient.js.map +1 -1
- package/dist/colors/palette.js.map +1 -1
- package/dist/components/ContextProvider.vue.js.map +1 -1
- package/dist/components/DataTable/BaseCellComponent.vue.js.map +1 -1
- package/dist/components/DataTable/ColumnCaret.vue.js.map +1 -1
- package/dist/components/DataTable/ColumnsCommandMenu.vue.d.ts.map +1 -1
- package/dist/components/DataTable/ColumnsCommandMenu.vue.js.map +1 -1
- package/dist/components/DataTable/RowsCommandMenu.vue.d.ts.map +1 -1
- package/dist/components/DataTable/RowsCommandMenu.vue.js.map +1 -1
- package/dist/components/DataTable/TScroll.vue.d.ts.map +1 -1
- package/dist/components/DataTable/TScroll.vue.js +6 -1
- package/dist/components/DataTable/TScroll.vue.js.map +1 -1
- package/dist/components/DataTable/TableComponent.vue.d.ts.map +1 -1
- package/dist/components/DataTable/TableComponent.vue.js.map +1 -1
- package/dist/components/DataTable/TdCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/TdCell.vue.js +3 -1
- package/dist/components/DataTable/TdCell.vue.js.map +1 -1
- package/dist/components/DataTable/ThCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/ThCell.vue.js.map +1 -1
- package/dist/components/DataTable/TrBody.vue.d.ts.map +1 -1
- package/dist/components/DataTable/TrBody.vue.js.map +1 -1
- package/dist/components/DataTable/adapters/AsyncData.d.ts +1 -1
- package/dist/components/DataTable/adapters/AsyncData.js.map +1 -1
- package/dist/components/DataTable/adapters/RawData.d.ts +1 -1
- package/dist/components/DataTable/adapters/RawData.js.map +1 -1
- package/dist/components/DataTable/assets/TableIcon.vue.d.ts.map +1 -1
- package/dist/components/DataTable/assets/TableIcon.vue.js.map +1 -1
- package/dist/components/DataTable/composition/useColumn.d.ts.map +1 -1
- package/dist/components/DataTable/composition/useColumn.js.map +1 -1
- package/dist/components/DataTable/composition/useMouseUp.js.map +1 -1
- package/dist/components/DataTable/composition/useResize.js.map +1 -1
- package/dist/components/DataTable/composition/useTableColumns.js.map +1 -1
- package/dist/components/DataTable/composition/useTableRows.js.map +1 -1
- package/dist/components/DataTable/domain.d.ts +1 -1
- package/dist/components/DataTable/domain.d.ts.map +1 -1
- package/dist/components/DataTable/domain.js.map +1 -1
- package/dist/components/DataTable/index.d.ts +1 -1
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/DataTable/index.js +5 -1
- package/dist/components/DataTable/index.js.map +1 -1
- package/dist/components/DataTable/keys.js.map +1 -1
- package/dist/components/DataTable/state.d.ts.map +1 -1
- package/dist/components/DataTable/state.js +10 -4
- package/dist/components/DataTable/state.js.map +1 -1
- package/dist/components/DataTable/types.d.ts +3 -3
- package/dist/components/DropdownListItem.vue.d.ts +1 -1
- package/dist/components/DropdownListItem.vue.d.ts.map +1 -1
- package/dist/components/DropdownListItem.vue.js.map +1 -1
- package/dist/components/GridTable/domain.d.ts +1 -1
- package/dist/components/GridTable/domain.d.ts.map +1 -1
- package/dist/components/GridTable/types.d.ts +4 -4
- package/dist/components/GridTable/types.d.ts.map +1 -1
- package/dist/components/GridTable/useColumn.d.ts.map +1 -1
- package/dist/components/HScroll.vue.js.map +1 -1
- package/dist/components/InputRange.vue.d.ts.map +1 -1
- package/dist/components/InputRange.vue.js +3 -1
- package/dist/components/InputRange.vue.js.map +1 -1
- package/dist/components/LongText.vue.d.ts.map +1 -1
- package/dist/components/LongText.vue.js +9 -7
- package/dist/components/LongText.vue.js.map +1 -1
- package/dist/components/PlAccordion/ExpandTransition.vue.d.ts.map +1 -1
- package/dist/components/PlAccordion/ExpandTransition.vue2.js.map +1 -1
- package/dist/components/PlAccordion/PlAccordion.vue.js.map +1 -1
- package/dist/components/PlAccordion/PlAccordionSection.vue2.js.map +1 -1
- package/dist/components/PlAlert/PlAlert.vue.d.ts.map +1 -1
- package/dist/components/PlAlert/PlAlert.vue.js.map +1 -1
- package/dist/components/PlAutocomplete/PlAutocomplete.vue.d.ts.map +1 -1
- package/dist/components/PlAutocomplete/PlAutocomplete.vue.js +40 -19
- package/dist/components/PlAutocomplete/PlAutocomplete.vue.js.map +1 -1
- package/dist/components/PlAutocompleteMulti/PlAutocompleteMulti.vue.d.ts +2 -2
- package/dist/components/PlAutocompleteMulti/PlAutocompleteMulti.vue.d.ts.map +1 -1
- package/dist/components/PlAutocompleteMulti/PlAutocompleteMulti.vue.js +22 -12
- package/dist/components/PlAutocompleteMulti/PlAutocompleteMulti.vue.js.map +1 -1
- package/dist/components/PlAutocompleteMulti/index.d.ts +1 -1
- package/dist/components/PlAutocompleteMulti/index.d.ts.map +1 -1
- package/dist/components/PlBtnAccent/PlBtnAccent.vue.js.map +1 -1
- package/dist/components/PlBtnDanger/PlBtnDanger.vue.js.map +1 -1
- package/dist/components/PlBtnGhost/PlBtnGhost.vue.js.map +1 -1
- package/dist/components/PlBtnGroup/PlBtnGroup.vue.js.map +1 -1
- package/dist/components/PlBtnLink/PlBtnLink.vue.d.ts.map +1 -1
- package/dist/components/PlBtnLink/PlBtnLink.vue.js.map +1 -1
- package/dist/components/PlBtnPrimary/PlBtnPrimary.vue.js.map +1 -1
- package/dist/components/PlBtnSecondary/PlBtnSecondary.vue.js.map +1 -1
- package/dist/components/PlBtnSplit/PlBtnSplit.vue.d.ts.map +1 -1
- package/dist/components/PlBtnSplit/PlBtnSplit.vue.js +6 -4
- package/dist/components/PlBtnSplit/PlBtnSplit.vue.js.map +1 -1
- package/dist/components/PlChartHistogram/PlChartHistogram.vue.d.ts.map +1 -1
- package/dist/components/PlChartHistogram/PlChartHistogram.vue2.js +8 -1
- package/dist/components/PlChartHistogram/PlChartHistogram.vue2.js.map +1 -1
- package/dist/components/PlChartHistogram/PlChartHistogram.vue3.js +4 -4
- package/dist/components/PlChartHistogram/createGridlines.d.ts.map +1 -1
- package/dist/components/PlChartHistogram/createGridlines.js +5 -1
- package/dist/components/PlChartHistogram/createGridlines.js.map +1 -1
- package/dist/components/PlChartHistogram/createLabels.d.ts.map +1 -1
- package/dist/components/PlChartHistogram/createLabels.js.map +1 -1
- package/dist/components/PlChartHistogram/createSvgContainer.js.map +1 -1
- package/dist/components/PlChartHistogram/drawBins.d.ts.map +1 -1
- package/dist/components/PlChartHistogram/drawBins.js.map +1 -1
- package/dist/components/PlChartHistogram/drawThreshold.js.map +1 -1
- package/dist/components/PlChartHistogram/histogram.d.ts.map +1 -1
- package/dist/components/PlChartHistogram/histogram.js +6 -2
- package/dist/components/PlChartHistogram/histogram.js.map +1 -1
- package/dist/components/PlChartHistogram/normalizeBins.js.map +1 -1
- package/dist/components/PlChartHistogram/types.d.ts +2 -2
- package/dist/components/PlChartHistogram/types.d.ts.map +1 -1
- package/dist/components/PlChartStackedBar/Legends.vue2.js.map +1 -1
- package/dist/components/PlChartStackedBar/PlChartStackedBar.vue.d.ts.map +1 -1
- package/dist/components/PlChartStackedBar/PlChartStackedBar.vue2.js +6 -4
- package/dist/components/PlChartStackedBar/PlChartStackedBar.vue2.js.map +1 -1
- package/dist/components/PlChartStackedBar/PlChartStackedBarCompact.vue2.js.map +1 -1
- package/dist/components/PlChartStackedBar/StackedRow.vue.d.ts.map +1 -1
- package/dist/components/PlChartStackedBar/StackedRow.vue2.js.map +1 -1
- package/dist/components/PlChartStackedBar/StackedRowCompact.vue.d.ts.map +1 -1
- package/dist/components/PlChartStackedBar/StackedRowCompact.vue2.js.map +1 -1
- package/dist/components/PlCheckbox/PlCheckbox.vue.js.map +1 -1
- package/dist/components/PlCheckbox/PlCheckboxBase.vue.d.ts.map +1 -1
- package/dist/components/PlCheckbox/PlCheckboxBase.vue.js.map +1 -1
- package/dist/components/PlCheckboxGroup/PlCheckboxGroup.vue.d.ts.map +1 -1
- package/dist/components/PlCheckboxGroup/PlCheckboxGroup.vue.js +8 -2
- package/dist/components/PlCheckboxGroup/PlCheckboxGroup.vue.js.map +1 -1
- package/dist/components/PlChip/PlChip.vue.d.ts.map +1 -1
- package/dist/components/PlChip/PlChip.vue.js.map +1 -1
- package/dist/components/PlClipboard/PlClipboard.vue2.js.map +1 -1
- package/dist/components/PlConfirmDialog.vue.d.ts.map +1 -1
- package/dist/components/PlConfirmDialog.vue.js.map +1 -1
- package/dist/components/PlDialogModal/PlDialogModal.vue.d.ts.map +1 -1
- package/dist/components/PlDialogModal/PlDialogModal.vue.js +4 -1
- package/dist/components/PlDialogModal/PlDialogModal.vue.js.map +1 -1
- package/dist/components/PlDropdown/OptionList.vue.d.ts +1 -1
- package/dist/components/PlDropdown/OptionList.vue.d.ts.map +1 -1
- package/dist/components/PlDropdown/OptionList.vue.js.map +1 -1
- package/dist/components/PlDropdown/PlDropdown.vue.d.ts.map +1 -1
- package/dist/components/PlDropdown/PlDropdown.vue.js.map +1 -1
- package/dist/components/PlDropdown/types.d.ts.map +1 -1
- package/dist/components/PlDropdown/useGroupBy.d.ts.map +1 -1
- package/dist/components/PlDropdown/useGroupBy.js.map +1 -1
- package/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.d.ts.map +1 -1
- package/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.js.map +1 -1
- package/dist/components/PlDropdownLine/PlDropdownLine.vue.d.ts +1 -1
- package/dist/components/PlDropdownLine/PlDropdownLine.vue.d.ts.map +1 -1
- package/dist/components/PlDropdownLine/PlDropdownLine.vue.js +5 -3
- package/dist/components/PlDropdownLine/PlDropdownLine.vue.js.map +1 -1
- package/dist/components/PlDropdownLine/ResizableInput.vue.d.ts.map +1 -1
- package/dist/components/PlDropdownLine/ResizableInput.vue.js.map +1 -1
- package/dist/components/PlDropdownMulti/PlDropdownMulti.vue.d.ts.map +1 -1
- package/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js.map +1 -1
- package/dist/components/PlDropdownMultiRef/PlDropdownMultiRef.vue.js.map +1 -1
- package/dist/components/PlDropdownRef/PlDropdownRef.vue.js.map +1 -1
- package/dist/components/PlEditableTitle/PlEditableTitle.vue.d.ts.map +1 -1
- package/dist/components/PlEditableTitle/PlEditableTitle.vue.js.map +1 -1
- package/dist/components/PlElementList/PlElementList.vue.d.ts.map +1 -1
- package/dist/components/PlElementList/PlElementList.vue2.js +9 -2
- package/dist/components/PlElementList/PlElementList.vue2.js.map +1 -1
- package/dist/components/PlElementList/PlElementList.vue3.js +4 -4
- package/dist/components/PlElementList/PlElementListItem.vue.d.ts.map +1 -1
- package/dist/components/PlElementList/PlElementListItem.vue2.js +25 -13
- package/dist/components/PlElementList/PlElementListItem.vue2.js.map +1 -1
- package/dist/components/PlElementList/PlElementListItem.vue3.js +20 -20
- package/dist/components/PlElementList/utils.d.ts.map +1 -1
- package/dist/components/PlElementList/utils.js +3 -1
- package/dist/components/PlElementList/utils.js.map +1 -1
- package/dist/components/PlErrorAlert/PlErrorAlert.vue2.js.map +1 -1
- package/dist/components/PlErrorBoundary/PlErrorBoundary.vue.d.ts.map +1 -1
- package/dist/components/PlErrorBoundary/PlErrorBoundary.vue.js +4 -1
- package/dist/components/PlErrorBoundary/PlErrorBoundary.vue.js.map +1 -1
- package/dist/components/PlFileDialog/Local.vue.d.ts.map +1 -1
- package/dist/components/PlFileDialog/Local.vue.js +6 -2
- package/dist/components/PlFileDialog/Local.vue.js.map +1 -1
- package/dist/components/PlFileDialog/PlFileDialog.vue.d.ts.map +1 -1
- package/dist/components/PlFileDialog/PlFileDialog.vue.js +3 -1
- package/dist/components/PlFileDialog/PlFileDialog.vue.js.map +1 -1
- package/dist/components/PlFileDialog/Remote.vue.d.ts.map +1 -1
- package/dist/components/PlFileDialog/Remote.vue.js +6 -2
- package/dist/components/PlFileDialog/Remote.vue.js.map +1 -1
- package/dist/components/PlFileDialog/Shortcuts.vue2.js.map +1 -1
- package/dist/components/PlFileDialog/Shortcuts.vue3.js +4 -4
- package/dist/components/PlFileDialog/pl-file-dialog.module.scss.js +21 -21
- package/dist/components/PlFileDialog/remote.js.map +1 -1
- package/dist/components/PlFileDialog/utils.js.map +1 -1
- package/dist/components/PlFileInput/PlFileInput.vue.d.ts.map +1 -1
- package/dist/components/PlFileInput/PlFileInput.vue.js.map +1 -1
- package/dist/components/PlIcon16/PlIcon16.vue2.js.map +1 -1
- package/dist/components/PlIcon24/PlIcon24.vue2.js.map +1 -1
- package/dist/components/PlLoaderCircular/PlLoaderCircular.vue.d.ts +1 -1
- package/dist/components/PlLoaderCircular/PlLoaderCircular.vue.d.ts.map +1 -1
- package/dist/components/PlLoaderCircular/PlLoaderCircular.vue.js +5 -1
- package/dist/components/PlLoaderCircular/PlLoaderCircular.vue.js.map +1 -1
- package/dist/components/PlLoaderLogo.vue.d.ts.map +1 -1
- package/dist/components/PlLoaderLogo.vue2.js +8 -8
- package/dist/components/PlLoaderLogo.vue2.js.map +1 -1
- package/dist/components/PlLogView/PlLogView.vue.d.ts.map +1 -1
- package/dist/components/PlLogView/PlLogView.vue.js +11 -7
- package/dist/components/PlLogView/PlLogView.vue.js.map +1 -1
- package/dist/components/PlLogView/useLogHandle.d.ts.map +1 -1
- package/dist/components/PlLogView/useLogHandle.js +16 -3
- package/dist/components/PlLogView/useLogHandle.js.map +1 -1
- package/dist/components/PlNotificationAlert/PlNotificationAlert.vue.d.ts +1 -1
- package/dist/components/PlNotificationAlert/PlNotificationAlert.vue.d.ts.map +1 -1
- package/dist/components/PlNotificationAlert/PlNotificationAlert.vue.js.map +1 -1
- package/dist/components/PlNumberField/PlNumberField.vue.d.ts.map +1 -1
- package/dist/components/PlNumberField/PlNumberField.vue.js +4 -6
- package/dist/components/PlNumberField/PlNumberField.vue.js.map +1 -1
- package/dist/components/PlNumberField/parseNumber.d.ts.map +1 -1
- package/dist/components/PlNumberField/parseNumber.js.map +1 -1
- package/dist/components/PlProgressBar/PlProgressBar.vue.js.map +1 -1
- package/dist/components/PlProgressCell/PlProgressCell.vue.d.ts.map +1 -1
- package/dist/components/PlProgressCell/PlProgressCell.vue.js +11 -2
- package/dist/components/PlProgressCell/PlProgressCell.vue.js.map +1 -1
- package/dist/components/PlProgressCell/types.d.ts +1 -1
- package/dist/components/PlRadio/PlRadio.vue2.js.map +1 -1
- package/dist/components/PlRadio/PlRadio.vue3.js +3 -3
- package/dist/components/PlRadio/PlRadioGroup.vue2.js.map +1 -1
- package/dist/components/PlRadio/PlRadioGroup.vue3.js +6 -6
- package/dist/components/PlRadio/keys.js.map +1 -1
- package/dist/components/PlSearchField/PlSearchField.vue.d.ts.map +1 -1
- package/dist/components/PlSearchField/PlSearchField.vue2.js.map +1 -1
- package/dist/components/PlSectionSeparator/PlSectionSeparator.vue2.js.map +1 -1
- package/dist/components/PlSectionSeparator/PlSectionSeparator.vue3.js +1 -1
- package/dist/components/PlSidebar/PlSidebarGroup.vue2.js.map +1 -1
- package/dist/components/PlSidebar/PlSidebarGroup.vue3.js +6 -6
- package/dist/components/PlSidebar/PlSidebarItem.vue.d.ts +6 -6
- package/dist/components/PlSidebar/PlSidebarItem.vue.d.ts.map +1 -1
- package/dist/components/PlSidebar/PlSidebarItem.vue2.js.map +1 -1
- package/dist/components/PlSidebar/PlSidebarItem.vue3.js +8 -8
- package/dist/components/PlSlideModal/PlPureSlideModal.vue.d.ts.map +1 -1
- package/dist/components/PlSlideModal/PlPureSlideModal.vue.js.map +1 -1
- package/dist/components/PlSlideModal/PlSlideModal.vue.d.ts.map +1 -1
- package/dist/components/PlSlideModal/PlSlideModal.vue2.js.map +1 -1
- package/dist/components/PlSlideModal/props.d.ts +8 -8
- package/dist/components/PlSlideModal/props.d.ts.map +1 -1
- package/dist/components/PlSlideModal/props.js.map +1 -1
- package/dist/components/PlSplash/PlSplash.vue.d.ts +1 -1
- package/dist/components/PlSplash/PlSplash.vue.d.ts.map +1 -1
- package/dist/components/PlSplash/PlSplash.vue.js +4 -1
- package/dist/components/PlSplash/PlSplash.vue.js.map +1 -1
- package/dist/components/PlStatusTag/PlStatusTag.vue.d.ts.map +1 -1
- package/dist/components/PlStatusTag/PlStatusTag.vue.js.map +1 -1
- package/dist/components/PlStatusTag/types.d.ts +1 -1
- package/dist/components/PlSvg/PlSvg.vue.d.ts.map +1 -1
- package/dist/components/PlSvg/PlSvg.vue2.js +7 -2
- package/dist/components/PlSvg/PlSvg.vue2.js.map +1 -1
- package/dist/components/PlSvg/registry.d.ts.map +1 -1
- package/dist/components/PlSvg/registry.js.map +1 -1
- package/dist/components/PlTabs/PlTabs.vue.d.ts.map +1 -1
- package/dist/components/PlTabs/PlTabs.vue.js +4 -1
- package/dist/components/PlTabs/PlTabs.vue.js.map +1 -1
- package/dist/components/PlTabs/Tab.vue.js.map +1 -1
- package/dist/components/PlTextArea/PlTextArea.vue.js.map +1 -1
- package/dist/components/PlTextField/PlTextField.vue.d.ts.map +1 -1
- package/dist/components/PlTextField/PlTextField.vue.js +3 -1
- package/dist/components/PlTextField/PlTextField.vue.js.map +1 -1
- package/dist/components/PlToggleSwitch/PlToggleSwitch.vue.js.map +1 -1
- package/dist/components/PlTooltip/Beak.vue.d.ts.map +1 -1
- package/dist/components/PlTooltip/Beak.vue.js.map +1 -1
- package/dist/components/PlTooltip/PlTooltip.vue.d.ts.map +1 -1
- package/dist/components/PlTooltip/PlTooltip.vue.js.map +1 -1
- package/dist/components/PlTooltip/useTooltipPosition.d.ts +1 -1
- package/dist/components/PlTooltip/useTooltipPosition.js.map +1 -1
- package/dist/components/Scrollable.vue.d.ts.map +1 -1
- package/dist/components/Scrollable.vue.js +10 -1
- package/dist/components/Scrollable.vue.js.map +1 -1
- package/dist/components/Slider.vue.d.ts.map +1 -1
- package/dist/components/Slider.vue.js +3 -1
- package/dist/components/Slider.vue.js.map +1 -1
- package/dist/components/SliderRange.vue.d.ts.map +1 -1
- package/dist/components/SliderRange.vue.js +15 -3
- package/dist/components/SliderRange.vue.js.map +1 -1
- package/dist/components/SliderRangeTriple.vue.d.ts.map +1 -1
- package/dist/components/SliderRangeTriple.vue.js +7 -1
- package/dist/components/SliderRangeTriple.vue.js.map +1 -1
- package/dist/components/TabItem.vue.js.map +1 -1
- package/dist/components/ThemeSwitcher.vue.js.map +1 -1
- package/dist/components/TransitionSlidePanel.vue.js.map +1 -1
- package/dist/components/VScroll.vue.js.map +1 -1
- package/dist/components/contextMenu/Menu.vue.js +1 -1
- package/dist/components/contextMenu/Menu.vue2.js.map +1 -1
- package/dist/components/contextMenu/index.js.map +1 -1
- package/dist/composition/computedCached.js.map +1 -1
- package/dist/composition/filters/metadata.d.ts.map +1 -1
- package/dist/composition/filters/metadata.js.map +1 -1
- package/dist/composition/filters/types.d.ts +1 -19
- package/dist/composition/filters/types.d.ts.map +1 -1
- package/dist/composition/useClickOutside.js.map +1 -1
- package/dist/composition/useComponentProp.d.ts.map +1 -1
- package/dist/composition/useComponentProp.js.map +1 -1
- package/dist/composition/useConfirm.js.map +1 -1
- package/dist/composition/useDraggable.d.ts.map +1 -1
- package/dist/composition/useDraggable.js.map +1 -1
- package/dist/composition/useEventListener.d.ts.map +1 -1
- package/dist/composition/useEventListener.js +11 -7
- package/dist/composition/useEventListener.js.map +1 -1
- package/dist/composition/useFilteredList.d.ts.map +1 -1
- package/dist/composition/useFilteredList.js.map +1 -1
- package/dist/composition/useFormState.js.map +1 -1
- package/dist/composition/useHover.d.ts.map +1 -1
- package/dist/composition/useHover.js.map +1 -1
- package/dist/composition/useInterval.js.map +1 -1
- package/dist/composition/useLocalStorage.js.map +1 -1
- package/dist/composition/useMouse.js.map +1 -1
- package/dist/composition/useMouseCapture.d.ts.map +1 -1
- package/dist/composition/useMouseCapture.js.map +1 -1
- package/dist/composition/usePollingQuery.d.ts.map +1 -1
- package/dist/composition/usePollingQuery.js +4 -1
- package/dist/composition/usePollingQuery.js.map +1 -1
- package/dist/composition/usePosition.d.ts.map +1 -1
- package/dist/composition/usePosition.js.map +1 -1
- package/dist/composition/useQuery.js.map +1 -1
- package/dist/composition/useResizeObserver.d.ts.map +1 -1
- package/dist/composition/useResizeObserver.js.map +1 -1
- package/dist/composition/useRipple.js.map +1 -1
- package/dist/composition/useScroll.d.ts.map +1 -1
- package/dist/composition/useScroll.js.map +1 -1
- package/dist/composition/useSliderBreakpoints.d.ts.map +1 -1
- package/dist/composition/useSliderBreakpoints.js.map +1 -1
- package/dist/composition/useSortable.js.map +1 -1
- package/dist/composition/useSortable2.d.ts.map +1 -1
- package/dist/composition/useSortable2.js +8 -5
- package/dist/composition/useSortable2.js.map +1 -1
- package/dist/composition/useTheme.d.ts +1 -1
- package/dist/composition/useTheme.d.ts.map +1 -1
- package/dist/composition/useTheme.js.map +1 -1
- package/dist/composition/useTransformedModel.d.ts.map +1 -1
- package/dist/composition/useTransformedModel.js.map +1 -1
- package/dist/composition/useWatchFetch.js.map +1 -1
- package/dist/composition/utils.js.map +1 -1
- package/dist/composition/watchCached.d.ts.map +1 -1
- package/dist/composition/watchCached.js.map +1 -1
- package/dist/demo-site-data/all-css-variables.d.ts.map +1 -1
- package/dist/demo-site-data/all-css-variables.js +52 -13
- package/dist/demo-site-data/all-css-variables.js.map +1 -1
- package/dist/generated/icons-16.js.map +1 -1
- package/dist/generated/icons-24.js.map +1 -1
- package/dist/global/resizeObserver.js.map +1 -1
- package/dist/helpers/dom.d.ts.map +1 -1
- package/dist/helpers/dom.js.map +1 -1
- package/dist/helpers/downloadContent.d.ts +1 -1
- package/dist/helpers/downloadContent.d.ts.map +1 -1
- package/dist/helpers/downloadContent.js +3 -1
- package/dist/helpers/downloadContent.js.map +1 -1
- package/dist/helpers/error.js +4 -1
- package/dist/helpers/error.js.map +1 -1
- package/dist/helpers/functions.d.ts.map +1 -1
- package/dist/helpers/functions.js.map +1 -1
- package/dist/helpers/objects.js.map +1 -1
- package/dist/helpers/utils.d.ts.map +1 -1
- package/dist/helpers/utils.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/layout/PlBlockPage/PlBlockPage.vue.d.ts.map +1 -1
- package/dist/layout/PlBlockPage/PlBlockPage.vue2.js.map +1 -1
- package/dist/layout/PlBlockPage/PlBlockPage.vue3.js +4 -4
- package/dist/layout/PlBlockPage/PlBlockPageTitleTeleportTarget.js.map +1 -1
- package/dist/layout/PlBlockPage/usePlBlockPageTitleTeleportTarget.js.map +1 -1
- package/dist/layout/PlContainer/PlContainer.vue.d.ts.map +1 -1
- package/dist/layout/PlContainer/PlContainer.vue.js.map +1 -1
- package/dist/layout/PlGrid/PlGrid.vue.js.map +1 -1
- package/dist/layout/PlPlaceholder/PlPlaceholder.vue.d.ts +1 -1
- package/dist/layout/PlPlaceholder/PlPlaceholder.vue.d.ts.map +1 -1
- package/dist/layout/PlPlaceholder/PlPlaceholder.vue2.js +8 -8
- package/dist/layout/PlPlaceholder/PlPlaceholder.vue2.js.map +1 -1
- package/dist/layout/PlPlaceholder/PlPlaceholder.vue3.js +15 -15
- package/dist/layout/PlPlaceholder/index.d.ts +1 -1
- package/dist/layout/PlPlaceholder/index.d.ts.map +1 -1
- package/dist/layout/PlPlaceholder/index.js.map +1 -1
- package/dist/layout/PlPlaceholder/paint-worklet.js +6 -6
- package/dist/layout/PlPlaceholder/paint-worklet.js.map +1 -1
- package/dist/layout/PlRow/PlRow.vue.js.map +1 -1
- package/dist/layout/PlSpacer/PlSpacer.vue.js.map +1 -1
- package/dist/types.d.ts +5 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/DoubleContour.vue.d.ts.map +1 -1
- package/dist/utils/DoubleContour.vue.js.map +1 -1
- package/dist/utils/DropdownOverlay/DropdownOverlay.vue.js.map +1 -1
- package/dist/utils/PlCloseModalBtn.vue.js.map +1 -1
- package/dist/utils/TextLabel.vue.js.map +1 -1
- package/dist/utils/useLabelNotch.d.ts.map +1 -1
- package/dist/utils/useLabelNotch.js.map +1 -1
- package/dist/utils/useValidation.js.map +1 -1
- package/package.json +22 -23
- package/scripts/parse-icons.js +20 -14
- package/src/__tests__/compositions/usePollingQuery.spec.ts +163 -165
- package/src/__tests__/compositions/useValidation.spec.ts +41 -28
- package/src/__tests__/setup.ts +1 -1
- package/src/__tests__/use-debounce-fn.test.ts +15 -11
- package/src/assets/animations.scss +5 -5
- package/src/assets/base-btn.scss +4 -3
- package/src/assets/base.scss +11 -8
- package/src/assets/common.scss +43 -43
- package/src/assets/dropdown-list-item.scss +53 -53
- package/src/assets/dropdown-tab-item.scss +4 -4
- package/src/assets/icons.scss +1 -1
- package/src/assets/input-range.scss +26 -27
- package/src/assets/layout.scss +1 -1
- package/src/assets/masks.scss +1 -1
- package/src/assets/mixins.scss +9 -17
- package/src/assets/scroll.scss +6 -6
- package/src/assets/slider.scss +6 -5
- package/src/assets/sortable.scss +1 -1
- package/src/assets/theme-switcher.scss +2 -2
- package/src/assets/typography.scss +16 -13
- package/src/assets/ui.scss +19 -19
- package/src/assets/utils.scss +19 -19
- package/src/assets/variables.scss +9 -10
- package/src/base/BtnBase.vue +6 -6
- package/src/colors/__tests__/colors.spec.ts +12 -10
- package/src/colors/color.ts +17 -12
- package/src/colors/gradient.ts +20 -17
- package/src/colors/index.ts +3 -3
- package/src/colors/palette.ts +194 -194
- package/src/components/ContextProvider.vue +1 -1
- package/src/components/DataTable/BaseCellComponent.vue +8 -8
- package/src/components/DataTable/ColumnCaret.vue +3 -3
- package/src/components/DataTable/ColumnsCommandMenu.vue +5 -3
- package/src/components/DataTable/RowsCommandMenu.vue +5 -3
- package/src/components/DataTable/TScroll.vue +11 -6
- package/src/components/DataTable/TableComponent.vue +41 -24
- package/src/components/DataTable/TdCell.vue +28 -15
- package/src/components/DataTable/ThCell.vue +14 -9
- package/src/components/DataTable/TrBody.vue +11 -4
- package/src/components/DataTable/adapters/AsyncData.ts +4 -4
- package/src/components/DataTable/adapters/RawData.ts +5 -5
- package/src/components/DataTable/assets/TableIcon.vue +6 -1
- package/src/components/DataTable/assets/data-table-style.scss +12 -10
- package/src/components/DataTable/composition/useColumn.ts +8 -5
- package/src/components/DataTable/composition/useMouseUp.ts +3 -3
- package/src/components/DataTable/composition/useResize.ts +16 -16
- package/src/components/DataTable/composition/useTableColumns.ts +8 -8
- package/src/components/DataTable/composition/useTableRows.ts +5 -5
- package/src/components/DataTable/domain.ts +8 -4
- package/src/components/DataTable/index.ts +26 -13
- package/src/components/DataTable/keys.ts +3 -3
- package/src/components/DataTable/state.ts +38 -18
- package/src/components/DataTable/types.ts +10 -10
- package/src/components/DropdownListItem.vue +18 -15
- package/src/components/GridTable/TdCell.vue +7 -7
- package/src/components/GridTable/ThCell.vue +14 -9
- package/src/components/GridTable/assets/TableIcon.vue +6 -1
- package/src/components/GridTable/assets/style.scss +6 -6
- package/src/components/GridTable/constants.ts +10 -10
- package/src/components/GridTable/domain.ts +8 -4
- package/src/components/GridTable/getColumnPositions.ts +4 -4
- package/src/components/GridTable/index.vue +41 -32
- package/src/components/GridTable/types.ts +14 -11
- package/src/components/GridTable/useColumn.ts +8 -5
- package/src/components/GridTable/useMouseUp.ts +3 -3
- package/src/components/GridTable/useResize.ts +13 -13
- package/src/components/HScroll.vue +10 -10
- package/src/components/InputRange.vue +9 -7
- package/src/components/LongText.vue +7 -5
- package/src/components/PlAccordion/ExpandTransition.vue +12 -6
- package/src/components/PlAccordion/PlAccordion.vue +3 -3
- package/src/components/PlAccordion/PlAccordionSection.vue +9 -9
- package/src/components/PlAccordion/index.ts +2 -2
- package/src/components/PlAlert/PlAlert.vue +21 -10
- package/src/components/PlAlert/index.ts +1 -1
- package/src/components/PlAlert/pl-alert.scss +1 -1
- package/src/components/PlAutocomplete/PlAutocomplete.vue +142 -82
- package/src/components/PlAutocomplete/__tests__/PlAutocomplete.spec.ts +19 -17
- package/src/components/PlAutocomplete/index.ts +1 -1
- package/src/components/PlAutocomplete/pl-autocomplete.scss +9 -7
- package/src/components/PlAutocompleteMulti/PlAutocompleteMulti.vue +92 -62
- package/src/components/PlAutocompleteMulti/__tests__/PlAutocompleteMulti.spec.ts +17 -16
- package/src/components/PlAutocompleteMulti/index.ts +4 -1
- package/src/components/PlAutocompleteMulti/pl-autocomplete-multi.scss +8 -6
- package/src/components/PlBtnAccent/PlBtnAccent.vue +4 -4
- package/src/components/PlBtnAccent/index.ts +1 -1
- package/src/components/PlBtnDanger/PlBtnDanger.vue +4 -4
- package/src/components/PlBtnDanger/index.ts +1 -1
- package/src/components/PlBtnDanger/pl-btn-danger.scss +1 -1
- package/src/components/PlBtnGhost/PlBtnGhost.vue +8 -8
- package/src/components/PlBtnGhost/index.ts +1 -1
- package/src/components/PlBtnGroup/PlBtnGroup.vue +10 -10
- package/src/components/PlBtnGroup/index.ts +1 -1
- package/src/components/PlBtnGroup/pl-btn-group.scss +4 -4
- package/src/components/PlBtnLink/PlBtnLink.vue +10 -5
- package/src/components/PlBtnLink/index.ts +1 -1
- package/src/components/PlBtnLink/pl-btn-link.scss +2 -1
- package/src/components/PlBtnPrimary/PlBtnPrimary.vue +4 -4
- package/src/components/PlBtnPrimary/__tests__/BtnPrimary.spec.ts +7 -7
- package/src/components/PlBtnPrimary/index.ts +1 -1
- package/src/components/PlBtnPrimary/pl-btn-primary.scss +2 -2
- package/src/components/PlBtnSecondary/PlBtnSecondary.vue +4 -4
- package/src/components/PlBtnSecondary/index.ts +1 -1
- package/src/components/PlBtnSecondary/pl-btn-secondary.scss +1 -1
- package/src/components/PlBtnSplit/PlBtnSplit.vue +42 -28
- package/src/components/PlBtnSplit/__tests__/PlBtnSplit.spec.ts +66 -66
- package/src/components/PlBtnSplit/index.ts +1 -1
- package/src/components/PlBtnSplit/pl-btn-split.scss +72 -75
- package/src/components/PlChartHistogram/PlChartHistogram.vue +29 -20
- package/src/components/PlChartHistogram/createGridlines.ts +28 -22
- package/src/components/PlChartHistogram/createLabels.ts +19 -17
- package/src/components/PlChartHistogram/createSvgContainer.ts +9 -9
- package/src/components/PlChartHistogram/drawBins.ts +27 -34
- package/src/components/PlChartHistogram/drawThreshold.ts +9 -9
- package/src/components/PlChartHistogram/histogram.ts +31 -34
- package/src/components/PlChartHistogram/index.ts +1 -1
- package/src/components/PlChartHistogram/normalizeBins.ts +3 -3
- package/src/components/PlChartHistogram/scales.spec.ts +5 -5
- package/src/components/PlChartHistogram/types.ts +6 -6
- package/src/components/PlChartStackedBar/Legends.vue +2 -2
- package/src/components/PlChartStackedBar/PlChartStackedBar.vue +16 -10
- package/src/components/PlChartStackedBar/PlChartStackedBarCompact.vue +4 -4
- package/src/components/PlChartStackedBar/StackedRow.vue +7 -9
- package/src/components/PlChartStackedBar/StackedRowCompact.vue +6 -8
- package/src/components/PlChartStackedBar/index.ts +3 -3
- package/src/components/PlChartStackedBar/types.ts +1 -1
- package/src/components/PlCheckbox/PlCheckbox.vue +5 -5
- package/src/components/PlCheckbox/PlCheckboxBase.vue +3 -5
- package/src/components/PlCheckbox/__tests__/PlCheckbox.spec.ts +15 -15
- package/src/components/PlCheckbox/index.ts +1 -1
- package/src/components/PlCheckbox/pl-checkbox-base.scss +13 -13
- package/src/components/PlCheckbox/pl-checkbox.scss +2 -2
- package/src/components/PlCheckboxGroup/PlCheckboxGroup.vue +24 -10
- package/src/components/PlCheckboxGroup/index.ts +1 -1
- package/src/components/PlCheckboxGroup/pl-checkbox-group.scss +1 -1
- package/src/components/PlChip/PlChip.vue +11 -5
- package/src/components/PlChip/index.ts +1 -1
- package/src/components/PlChip/pl-chip.scss +2 -2
- package/src/components/PlClipboard/PlClipboard.vue +7 -7
- package/src/components/PlClipboard/index.ts +1 -1
- package/src/components/PlConfirmDialog.vue +7 -6
- package/src/components/PlDialogModal/PlDialogModal.vue +52 -33
- package/src/components/PlDialogModal/index.ts +1 -1
- package/src/components/PlDialogModal/pl-dialog-modal.scss +2 -2
- package/src/components/PlDropdown/OptionList.vue +21 -10
- package/src/components/PlDropdown/PlDropdown.vue +65 -46
- package/src/components/PlDropdown/__tests__/PlDropdown.spec.ts +15 -15
- package/src/components/PlDropdown/index.ts +1 -1
- package/src/components/PlDropdown/pl-dropdown.scss +4 -2
- package/src/components/PlDropdown/types.ts +6 -2
- package/src/components/PlDropdown/useGroupBy.ts +7 -10
- package/src/components/PlDropdownLegacy/PlDropdownLegacy.vue +60 -43
- package/src/components/PlDropdownLegacy/__tests__/PlDropdownLegacy.spec.ts +16 -16
- package/src/components/PlDropdownLegacy/index.ts +1 -1
- package/src/components/PlDropdownLegacy/pl-dropdown-legacy.scss +6 -6
- package/src/components/PlDropdownLine/PlDropdownLine.vue +76 -54
- package/src/components/PlDropdownLine/ResizableInput.vue +15 -8
- package/src/components/PlDropdownLine/index.ts +1 -1
- package/src/components/PlDropdownLine/pl-dropdown-line.scss +132 -132
- package/src/components/PlDropdownLine/resizable-input.scss +38 -38
- package/src/components/PlDropdownMulti/PlDropdownMulti.vue +79 -45
- package/src/components/PlDropdownMulti/__tests__/PlDropdownMulti.spec.ts +15 -14
- package/src/components/PlDropdownMulti/index.ts +1 -1
- package/src/components/PlDropdownMulti/pl-dropdown-multi.scss +8 -6
- package/src/components/PlDropdownMultiRef/PlDropdownMultiRef.vue +5 -5
- package/src/components/PlDropdownMultiRef/__tests__/PlDropdownMultiRef.spec.ts +25 -24
- package/src/components/PlDropdownMultiRef/index.ts +1 -1
- package/src/components/PlDropdownRef/PlDropdownRef.vue +12 -12
- package/src/components/PlDropdownRef/__tests__/PlDropdownRef.spec.ts +23 -23
- package/src/components/PlDropdownRef/index.ts +1 -1
- package/src/components/PlEditableTitle/PlEditableTitle.vue +9 -10
- package/src/components/PlEditableTitle/index.ts +1 -1
- package/src/components/PlEditableTitle/pl-editable-title.module.scss +4 -4
- package/src/components/PlElementList/PlElementList.vue +60 -37
- package/src/components/PlElementList/PlElementListItem.vue +45 -29
- package/src/components/PlElementList/README.md +102 -119
- package/src/components/PlElementList/index.ts +1 -1
- package/src/components/PlElementList/utils.ts +3 -1
- package/src/components/PlErrorAlert/PlErrorAlert.vue +5 -5
- package/src/components/PlErrorAlert/index.ts +1 -1
- package/src/components/PlErrorBoundary/PlErrorBoundary.vue +8 -5
- package/src/components/PlErrorBoundary/index.ts +1 -1
- package/src/components/PlFileDialog/Local.vue +22 -16
- package/src/components/PlFileDialog/PlFileDialog.vue +27 -23
- package/src/components/PlFileDialog/Remote.vue +44 -34
- package/src/components/PlFileDialog/Shortcuts.vue +4 -4
- package/src/components/PlFileDialog/index.ts +1 -1
- package/src/components/PlFileDialog/pl-file-dialog.module.scss +15 -12
- package/src/components/PlFileDialog/remote.ts +9 -9
- package/src/components/PlFileDialog/utils.test.ts +20 -24
- package/src/components/PlFileDialog/utils.ts +8 -8
- package/src/components/PlFileInput/PlFileInput.vue +37 -26
- package/src/components/PlFileInput/index.ts +1 -1
- package/src/components/PlFileInput/pl-file-input.scss +3 -3
- package/src/components/PlFileInput/utils.ts +6 -6
- package/src/components/PlIcon16/PlIcon16.vue +7 -7
- package/src/components/PlIcon16/index.ts +1 -1
- package/src/components/PlIcon24/PlIcon24.vue +7 -7
- package/src/components/PlIcon24/index.ts +1 -1
- package/src/components/PlLoaderCircular/PlLoaderCircular.vue +24 -6
- package/src/components/PlLoaderCircular/index.ts +1 -1
- package/src/components/PlLoaderCircular/pl-loader-circular.scss +54 -50
- package/src/components/PlLoaderLogo.vue +8 -10
- package/src/components/PlLogView/PlLogView.vue +28 -22
- package/src/components/PlLogView/index.ts +1 -1
- package/src/components/PlLogView/pl-log-view.scss +10 -4
- package/src/components/PlLogView/useLogHandle.ts +32 -12
- package/src/components/PlMaskIcon16/index.ts +1 -1
- package/src/components/PlMaskIcon24/index.ts +1 -1
- package/src/components/PlNotificationAlert/PlNotificationAlert.vue +10 -5
- package/src/components/PlNotificationAlert/index.ts +1 -1
- package/src/components/PlNotificationAlert/pl-notification-alert.scss +43 -44
- package/src/components/PlNumberField/PlNumberField.vue +95 -68
- package/src/components/PlNumberField/__tests__/PlNumberField.spec.ts +71 -69
- package/src/components/PlNumberField/index.ts +1 -1
- package/src/components/PlNumberField/parseNumber.ts +20 -17
- package/src/components/PlProgressBar/PlProgressBar.vue +5 -5
- package/src/components/PlProgressBar/index.ts +1 -1
- package/src/components/PlProgressCell/PlProgressCell.vue +33 -14
- package/src/components/PlProgressCell/index.ts +2 -2
- package/src/components/PlProgressCell/pl-progress-cell.scss +70 -70
- package/src/components/PlProgressCell/types.ts +1 -1
- package/src/components/PlRadio/PlRadio.vue +54 -54
- package/src/components/PlRadio/PlRadioGroup.vue +16 -16
- package/src/components/PlRadio/__tests__/PlRadioGroup.spec.ts +50 -50
- package/src/components/PlRadio/index.ts +2 -2
- package/src/components/PlRadio/keys.ts +1 -1
- package/src/components/PlSearchField/PlSearchField.vue +21 -9
- package/src/components/PlSearchField/index.ts +1 -1
- package/src/components/PlSectionSeparator/PlSectionSeparator.vue +1 -1
- package/src/components/PlSectionSeparator/index.ts +1 -1
- package/src/components/PlSidebar/PlSidebarGroup.vue +2 -2
- package/src/components/PlSidebar/PlSidebarItem.vue +7 -7
- package/src/components/PlSidebar/index.ts +2 -2
- package/src/components/PlSlideModal/PlPureSlideModal.vue +18 -17
- package/src/components/PlSlideModal/PlSlideModal.vue +8 -12
- package/src/components/PlSlideModal/index.ts +2 -2
- package/src/components/PlSlideModal/pl-slide-modal.scss +2 -2
- package/src/components/PlSlideModal/props.ts +9 -9
- package/src/components/PlSpacer/PlSpacer.vue +1 -1
- package/src/components/PlSpacer/index.ts +1 -1
- package/src/components/PlSplash/PlSplash.vue +25 -17
- package/src/components/PlSplash/index.ts +1 -1
- package/src/components/PlSplash/pl-splash.module.scss +1 -1
- package/src/components/PlStatusTag/PlStatusTag.vue +13 -8
- package/src/components/PlStatusTag/index.ts +2 -2
- package/src/components/PlStatusTag/pl-status-tag.scss +18 -18
- package/src/components/PlStatusTag/types.ts +1 -1
- package/src/components/PlSvg/PlSvg.vue +24 -16
- package/src/components/PlSvg/index.ts +1 -1
- package/src/components/PlSvg/registry.ts +17 -21
- package/src/components/PlTabs/PlTabs.vue +10 -7
- package/src/components/PlTabs/Tab.vue +4 -4
- package/src/components/PlTabs/index.ts +2 -2
- package/src/components/PlTabs/pl-tabs.module.scss +3 -3
- package/src/components/PlTextArea/PlTextArea.vue +15 -15
- package/src/components/PlTextArea/__tests__/PlTextArea.spec.ts +12 -12
- package/src/components/PlTextArea/index.ts +1 -1
- package/src/components/PlTextArea/pl-textarea.scss +1 -1
- package/src/components/PlTextField/PlTextField.vue +48 -27
- package/src/components/PlTextField/__tests__/TextField.spec.ts +19 -19
- package/src/components/PlTextField/index.ts +1 -1
- package/src/components/PlToggleSwitch/PlToggleSwitch.vue +3 -3
- package/src/components/PlToggleSwitch/index.ts +1 -1
- package/src/components/PlToggleSwitch/pl-toggle-switch.scss +3 -2
- package/src/components/PlTooltip/Beak.vue +8 -1
- package/src/components/PlTooltip/PlTooltip.vue +33 -19
- package/src/components/PlTooltip/index.ts +1 -1
- package/src/components/PlTooltip/pl-tooltip.scss +4 -2
- package/src/components/PlTooltip/useTooltipPosition.ts +12 -12
- package/src/components/Scrollable.vue +17 -8
- package/src/components/Slider.vue +47 -23
- package/src/components/SliderRange.vue +72 -32
- package/src/components/SliderRangeTriple.vue +49 -31
- package/src/components/TabItem.vue +5 -5
- package/src/components/ThemeSwitcher.vue +1 -1
- package/src/components/TransitionSlidePanel.vue +2 -2
- package/src/components/VScroll.vue +10 -10
- package/src/components/contextMenu/Menu.vue +4 -4
- package/src/components/contextMenu/index.ts +6 -6
- package/src/composition/computedCached.ts +11 -7
- package/src/composition/filters/index.ts +2 -2
- package/src/composition/filters/metadata.ts +227 -220
- package/src/composition/filters/types.ts +44 -21
- package/src/composition/useClickOutside.ts +4 -4
- package/src/composition/useComponentProp.ts +5 -3
- package/src/composition/useConfirm.ts +5 -5
- package/src/composition/useDraggable.ts +16 -13
- package/src/composition/useEventListener.ts +13 -5
- package/src/composition/useFilteredList.ts +9 -6
- package/src/composition/useFormState.ts +3 -3
- package/src/composition/useHover.ts +10 -7
- package/src/composition/useInterval.ts +1 -1
- package/src/composition/useLocalStorage.ts +4 -4
- package/src/composition/useMouse.ts +3 -3
- package/src/composition/useMouseCapture.ts +10 -7
- package/src/composition/useNotificationPosition.ts +4 -4
- package/src/composition/usePollingQuery.ts +22 -20
- package/src/composition/usePosition.ts +13 -9
- package/src/composition/useQuery.ts +2 -2
- package/src/composition/useResizeObserver.ts +9 -6
- package/src/composition/useRipple.ts +6 -6
- package/src/composition/useScroll.ts +18 -12
- package/src/composition/useSliderBreakpoints.ts +6 -4
- package/src/composition/useSortable.ts +17 -17
- package/src/composition/useSortable2.ts +27 -24
- package/src/composition/useTheme.ts +11 -9
- package/src/composition/useTransformedModel.ts +6 -3
- package/src/composition/useWatchFetch.ts +3 -3
- package/src/composition/utils.ts +1 -1
- package/src/composition/watchCached.ts +2 -8
- package/src/demo-site-data/all-css-variables.ts +208 -169
- package/src/drafts/FileBaseInput.vue +35 -18
- package/src/generated/icons-16.ts +68 -68
- package/src/generated/icons-24.ts +211 -211
- package/src/global/resizeObserver.ts +1 -1
- package/src/helpers/dom.ts +12 -8
- package/src/helpers/downloadContent.ts +23 -21
- package/src/helpers/error.ts +6 -3
- package/src/helpers/functions.ts +5 -1
- package/src/helpers/objects.ts +1 -1
- package/src/helpers/utils.ts +23 -9
- package/src/index.ts +110 -110
- package/src/layout/PlBlockPage/PlBlockPage.vue +14 -19
- package/src/layout/PlBlockPage/PlBlockPageTitleTeleportTarget.ts +1 -1
- package/src/layout/PlBlockPage/index.ts +2 -2
- package/src/layout/PlBlockPage/pl-block-page.scss +1 -1
- package/src/layout/PlBlockPage/usePlBlockPageTitleTeleportTarget.ts +2 -2
- package/src/layout/PlContainer/PlContainer.vue +10 -5
- package/src/layout/PlContainer/index.ts +1 -1
- package/src/layout/PlContainer/pl-container.scss +1 -1
- package/src/layout/PlGrid/PlGrid.vue +3 -3
- package/src/layout/PlGrid/index.ts +1 -1
- package/src/layout/PlGrid/pl-grid.scss +1 -1
- package/src/layout/PlPlaceholder/PlPlaceholder.vue +19 -18
- package/src/layout/PlPlaceholder/index.ts +11 -14
- package/src/layout/PlPlaceholder/paint-worklet.js +6 -6
- package/src/layout/PlRow/PlRow.vue +2 -2
- package/src/layout/PlRow/index.ts +1 -1
- package/src/layout/PlRow/pl-row.scss +1 -1
- package/src/layout/PlSpacer/PlSpacer.vue +1 -1
- package/src/layout/PlSpacer/index.ts +1 -1
- package/src/types.ts +23 -17
- package/src/utils/DoubleContour.vue +18 -7
- package/src/utils/DropdownOverlay/DropdownOverlay.vue +13 -13
- package/src/utils/DropdownOverlay/index.ts +1 -1
- package/src/utils/PlCloseModalBtn.vue +1 -1
- package/src/utils/TextLabel.vue +1 -1
- package/src/utils/WebStopWatchElement.ts +5 -5
- package/src/utils/useLabelNotch.ts +12 -9
- package/src/utils/useValidation.ts +2 -2
- package/tsconfig.json +2 -7
- package/vitest.config.mts +9 -9
- package/.turbo/turbo-lint.log +0 -5
- package/eslint.config.mjs +0 -4
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import
|
|
3
|
-
import { ref, unref, onMounted, nextTick, watchPostEffect, watch, computed } from
|
|
4
|
-
import TdCell from
|
|
5
|
-
import type { TableSettings, TableData } from
|
|
6
|
-
import TableIcon from
|
|
7
|
-
import TrHead from
|
|
8
|
-
import ThCell from
|
|
9
|
-
import TrBody from
|
|
10
|
-
import ColumnCaret from
|
|
11
|
-
import { useEventListener } from
|
|
12
|
-
import { tapIf } from
|
|
13
|
-
import { useResize } from
|
|
14
|
-
import RowsCommandMenu from
|
|
15
|
-
import ColumnsCommandMenu from
|
|
16
|
-
import TScroll from
|
|
17
|
-
import { createState } from
|
|
2
|
+
import "./assets/data-table-style.scss";
|
|
3
|
+
import { ref, unref, onMounted, nextTick, watchPostEffect, watch, computed } from "vue";
|
|
4
|
+
import TdCell from "./TdCell.vue";
|
|
5
|
+
import type { TableSettings, TableData } from "./types";
|
|
6
|
+
import TableIcon from "./assets/TableIcon.vue";
|
|
7
|
+
import TrHead from "./TrHead.vue";
|
|
8
|
+
import ThCell from "./ThCell.vue";
|
|
9
|
+
import TrBody from "./TrBody.vue";
|
|
10
|
+
import ColumnCaret from "./ColumnCaret.vue";
|
|
11
|
+
import { useEventListener } from "../../index";
|
|
12
|
+
import { tapIf } from "@milaboratories/helpers";
|
|
13
|
+
import { useResize } from "./composition/useResize";
|
|
14
|
+
import RowsCommandMenu from "./RowsCommandMenu.vue";
|
|
15
|
+
import ColumnsCommandMenu from "./ColumnsCommandMenu.vue";
|
|
16
|
+
import TScroll from "./TScroll.vue";
|
|
17
|
+
import { createState } from "./state";
|
|
18
18
|
|
|
19
19
|
const emit = defineEmits<{
|
|
20
|
-
(e:
|
|
21
|
-
(e:
|
|
20
|
+
(e: "update:data", value: TableData): void;
|
|
21
|
+
(e: "change:sort", value: unknown): void;
|
|
22
22
|
}>();
|
|
23
23
|
|
|
24
24
|
const props = defineProps<{
|
|
@@ -30,10 +30,10 @@ const state = createState(props);
|
|
|
30
30
|
const hasNoData = computed(() => state.data.rows.length === 0);
|
|
31
31
|
|
|
32
32
|
const tableBodyStyle = computed(() => ({
|
|
33
|
-
height: hasNoData.value ?
|
|
33
|
+
height: hasNoData.value ? "212px" /* css value */ : state.data.bodyHeight + "px",
|
|
34
34
|
}));
|
|
35
35
|
|
|
36
|
-
watch(state.data, (v) => emit(
|
|
36
|
+
watch(state.data, (v) => emit("update:data", v), { deep: true });
|
|
37
37
|
|
|
38
38
|
watch(props, () => updateDimensions);
|
|
39
39
|
|
|
@@ -62,7 +62,7 @@ watchPostEffect(() => {
|
|
|
62
62
|
nextTick(updateDimensions);
|
|
63
63
|
});
|
|
64
64
|
|
|
65
|
-
useEventListener(window,
|
|
65
|
+
useEventListener(window, "resize", () => nextTick(updateDimensions));
|
|
66
66
|
|
|
67
67
|
const onWheel = (ev: WheelEvent) => {
|
|
68
68
|
ev.preventDefault();
|
|
@@ -78,7 +78,13 @@ const onWheel = (ev: WheelEvent) => {
|
|
|
78
78
|
</div>
|
|
79
79
|
<div ref="headRef" class="table-head">
|
|
80
80
|
<TrHead>
|
|
81
|
-
<ThCell
|
|
81
|
+
<ThCell
|
|
82
|
+
v-for="(col, i) in tableColumns"
|
|
83
|
+
:key="i"
|
|
84
|
+
:col="col"
|
|
85
|
+
:style="col.style"
|
|
86
|
+
@change:sort="$emit('change:sort', $event)"
|
|
87
|
+
/>
|
|
82
88
|
</TrHead>
|
|
83
89
|
</div>
|
|
84
90
|
<div ref="bodyRef" class="table-body" :style="tableBodyStyle" @wheel="onWheel">
|
|
@@ -89,11 +95,22 @@ const onWheel = (ev: WheelEvent) => {
|
|
|
89
95
|
</div>
|
|
90
96
|
</div>
|
|
91
97
|
<TrBody v-for="(row, i) in tableRows" :key="i" :row="row">
|
|
92
|
-
<TdCell
|
|
98
|
+
<TdCell
|
|
99
|
+
v-for="cell in row.cells"
|
|
100
|
+
:key="cell.column.id + ':' + i"
|
|
101
|
+
:cell="cell"
|
|
102
|
+
:style="cell.style"
|
|
103
|
+
/>
|
|
93
104
|
</TrBody>
|
|
94
105
|
</div>
|
|
95
106
|
<div class="carets">
|
|
96
|
-
<ColumnCaret
|
|
107
|
+
<ColumnCaret
|
|
108
|
+
v-for="(col, i) in tableColumns"
|
|
109
|
+
:key="i"
|
|
110
|
+
:column="col"
|
|
111
|
+
:style="col.style"
|
|
112
|
+
@change:sort="$emit('change:sort', $event)"
|
|
113
|
+
/>
|
|
97
114
|
</div>
|
|
98
115
|
<TScroll
|
|
99
116
|
:offset="state.data.scrollTop"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { tapIf } from
|
|
3
|
-
import { showContextMenu } from
|
|
4
|
-
import type { ContextOption } from
|
|
5
|
-
import { injectState } from
|
|
6
|
-
import type { Row, TableCell } from
|
|
7
|
-
import { computed, ref } from
|
|
8
|
-
import BaseCellComponent from
|
|
2
|
+
import { tapIf } from "@milaboratories/helpers";
|
|
3
|
+
import { showContextMenu } from "../contextMenu";
|
|
4
|
+
import type { ContextOption } from "../contextMenu/types";
|
|
5
|
+
import { injectState } from "./keys";
|
|
6
|
+
import type { Row, TableCell } from "./types";
|
|
7
|
+
import { computed, ref } from "vue";
|
|
8
|
+
import BaseCellComponent from "./BaseCellComponent.vue";
|
|
9
9
|
|
|
10
10
|
const props = defineProps<{
|
|
11
11
|
cell: TableCell;
|
|
@@ -32,7 +32,7 @@ const onClick = (ev: MouseEvent) => {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
const onContextMenu = (ev: MouseEvent, row: Row) => {
|
|
35
|
-
if (ev.type ===
|
|
35
|
+
if (ev.type === "contextmenu") {
|
|
36
36
|
ev.preventDefault();
|
|
37
37
|
} else {
|
|
38
38
|
return;
|
|
@@ -49,14 +49,14 @@ const onContextMenu = (ev: MouseEvent, row: Row) => {
|
|
|
49
49
|
if (onSelectedRows && onSelectedRows.length) {
|
|
50
50
|
if (isSelected) {
|
|
51
51
|
options.push({
|
|
52
|
-
text:
|
|
52
|
+
text: "Deselect row",
|
|
53
53
|
cb() {
|
|
54
54
|
state.data.selectedRows.delete(props.cell.row.primaryKey);
|
|
55
55
|
},
|
|
56
56
|
});
|
|
57
57
|
} else {
|
|
58
58
|
options.push({
|
|
59
|
-
text:
|
|
59
|
+
text: "Select row",
|
|
60
60
|
cb() {
|
|
61
61
|
state.selectRow(props.cell.row.primaryKey);
|
|
62
62
|
},
|
|
@@ -66,14 +66,14 @@ const onContextMenu = (ev: MouseEvent, row: Row) => {
|
|
|
66
66
|
|
|
67
67
|
if (onSelectedColumns && onSelectedColumns.length) {
|
|
68
68
|
options.push({
|
|
69
|
-
text:
|
|
69
|
+
text: "Select column",
|
|
70
70
|
cb() {
|
|
71
71
|
state.selectColumn(props.cell.column.id);
|
|
72
72
|
},
|
|
73
73
|
});
|
|
74
74
|
|
|
75
75
|
options.push({
|
|
76
|
-
text:
|
|
76
|
+
text: "Unselect column",
|
|
77
77
|
cb() {
|
|
78
78
|
state.unselectColumn(props.cell.column.id);
|
|
79
79
|
},
|
|
@@ -89,7 +89,9 @@ const onContextMenu = (ev: MouseEvent, row: Row) => {
|
|
|
89
89
|
|
|
90
90
|
const cellRef = ref<HTMLElement>();
|
|
91
91
|
|
|
92
|
-
const CustomComponent = computed(() =>
|
|
92
|
+
const CustomComponent = computed(() =>
|
|
93
|
+
props.cell.column.component ? props.cell.column.component() : undefined,
|
|
94
|
+
);
|
|
93
95
|
</script>
|
|
94
96
|
|
|
95
97
|
<template>
|
|
@@ -102,7 +104,18 @@ const CustomComponent = computed(() => (props.cell.column.component ? props.cell
|
|
|
102
104
|
@contextmenu="(ev) => onContextMenu(ev, cell.row)"
|
|
103
105
|
>
|
|
104
106
|
<div v-if="cell.control" class="control-cell">{{ cell.row.index }}</div>
|
|
105
|
-
<component
|
|
106
|
-
|
|
107
|
+
<component
|
|
108
|
+
:is="CustomComponent"
|
|
109
|
+
v-else-if="CustomComponent"
|
|
110
|
+
:model-value="cell.value"
|
|
111
|
+
@update:model-value="onInput"
|
|
112
|
+
/>
|
|
113
|
+
<BaseCellComponent
|
|
114
|
+
v-else
|
|
115
|
+
:model-value="cell.value"
|
|
116
|
+
:value-type="valueTypeRef"
|
|
117
|
+
:editable="cell.column.editable"
|
|
118
|
+
@update:model-value="onInput"
|
|
119
|
+
/>
|
|
107
120
|
</div>
|
|
108
121
|
</template>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { showContextMenu } from
|
|
3
|
-
import type { ContextOption } from
|
|
4
|
-
import { rotate } from
|
|
5
|
-
import type { ColumnSpecSettings } from
|
|
2
|
+
import { showContextMenu } from "../contextMenu";
|
|
3
|
+
import type { ContextOption } from "../contextMenu/types";
|
|
4
|
+
import { rotate } from "./domain";
|
|
5
|
+
import type { ColumnSpecSettings } from "./types";
|
|
6
6
|
|
|
7
|
-
const emit = defineEmits([
|
|
7
|
+
const emit = defineEmits(["delete:column", "expand:column", "change:sort"]);
|
|
8
8
|
|
|
9
9
|
defineProps<{
|
|
10
10
|
col: ColumnSpecSettings;
|
|
@@ -23,16 +23,21 @@ function onContextMenu(ev: MouseEvent) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
function onSort(col: ColumnSpecSettings) {
|
|
26
|
-
const v = col.sort?.direction ??
|
|
27
|
-
emit(
|
|
26
|
+
const v = col.sort?.direction ?? "DESC";
|
|
27
|
+
emit("change:sort", {
|
|
28
28
|
colId: col.id,
|
|
29
|
-
direction: rotate(v, [
|
|
29
|
+
direction: rotate(v, ["DESC", "ASC"]),
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
</script>
|
|
33
33
|
|
|
34
34
|
<template>
|
|
35
|
-
<div
|
|
35
|
+
<div
|
|
36
|
+
class="cell th-cell"
|
|
37
|
+
:data-col-id.attr="col.id"
|
|
38
|
+
:class="{ 'justify-center': col.justify, frozen: col.frozen }"
|
|
39
|
+
@contextmenu="onContextMenu"
|
|
40
|
+
>
|
|
36
41
|
<div v-if="col.valueType" :class="col.valueType" />
|
|
37
42
|
{{ col.label }}
|
|
38
43
|
<div v-if="col.sort" class="sort" :class="col.sort.direction" @click.stop="() => onSort(col)" />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { ref, nextTick } from
|
|
3
|
-
import type { TableRow } from
|
|
4
|
-
import { tapIf } from
|
|
2
|
+
import { ref, nextTick } from "vue";
|
|
3
|
+
import type { TableRow } from "./types";
|
|
4
|
+
import { tapIf } from "@milaboratories/helpers";
|
|
5
5
|
|
|
6
6
|
defineProps<{
|
|
7
7
|
row: TableRow;
|
|
@@ -18,7 +18,14 @@ const onScroll = () => {
|
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
20
|
<template>
|
|
21
|
-
<div
|
|
21
|
+
<div
|
|
22
|
+
ref="trRef"
|
|
23
|
+
class="tr-body"
|
|
24
|
+
scroll="no"
|
|
25
|
+
:style="row.style"
|
|
26
|
+
:class="{ selected: row.selected }"
|
|
27
|
+
@scroll="onScroll"
|
|
28
|
+
>
|
|
22
29
|
<slot />
|
|
23
30
|
</div>
|
|
24
31
|
</template>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type * as Types from
|
|
2
|
-
import type { DataRow, Row } from
|
|
3
|
-
import { GAP } from
|
|
4
|
-
import { clamp } from
|
|
1
|
+
import type * as Types from "../types";
|
|
2
|
+
import type { DataRow, Row } from "../types";
|
|
3
|
+
import { GAP } from "../constants";
|
|
4
|
+
import { clamp } from "@milaboratories/helpers";
|
|
5
5
|
|
|
6
6
|
export class AsyncData<D extends DataRow> implements Types.DataSource {
|
|
7
7
|
constructor(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type * as Types from
|
|
2
|
-
import type { DataRow, ResolvePrimaryKey, Row, ResolveRowHeight } from
|
|
3
|
-
import { GAP } from
|
|
4
|
-
import { sliceBy } from
|
|
5
|
-
import { notEmpty } from
|
|
1
|
+
import type * as Types from "../types";
|
|
2
|
+
import type { DataRow, ResolvePrimaryKey, Row, ResolveRowHeight } from "../types";
|
|
3
|
+
import { GAP } from "../constants";
|
|
4
|
+
import { sliceBy } from "../domain";
|
|
5
|
+
import { notEmpty } from "@milaboratories/helpers";
|
|
6
6
|
|
|
7
7
|
const rowsStore = new WeakMap<WeakKey, Row[]>();
|
|
8
8
|
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<path
|
|
3
|
+
<path
|
|
4
|
+
fill-rule="evenodd"
|
|
5
|
+
clip-rule="evenodd"
|
|
6
|
+
d="M24 41.5H9C7.61929 41.5 6.5 40.3807 6.5 39V24H9.5V38.5H24V41.5Z"
|
|
7
|
+
fill="#CFD1DB"
|
|
8
|
+
/>
|
|
4
9
|
<path
|
|
5
10
|
fill-rule="evenodd"
|
|
6
11
|
clip-rule="evenodd"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
bottom: 0;
|
|
28
28
|
width: 0;
|
|
29
29
|
z-index: 1;
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
> div {
|
|
32
32
|
position: absolute;
|
|
33
33
|
top: 6px;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
width: 100%;
|
|
49
49
|
height: 6px;
|
|
50
50
|
top: -6px;
|
|
51
|
-
content:
|
|
51
|
+
content: "";
|
|
52
52
|
}
|
|
53
53
|
&:after {
|
|
54
54
|
background-color: var(--handle-bg);
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
width: 100%;
|
|
58
58
|
height: 6px;
|
|
59
59
|
bottom: -6px;
|
|
60
|
-
content:
|
|
60
|
+
content: "";
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -100,13 +100,15 @@
|
|
|
100
100
|
padding: 0 12px;
|
|
101
101
|
|
|
102
102
|
/* Shadow M */
|
|
103
|
-
box-shadow:
|
|
103
|
+
box-shadow:
|
|
104
|
+
0px 4px 12px -2px rgba(15, 36, 77, 0.08),
|
|
105
|
+
0px 6px 24px -2px rgba(15, 36, 77, 0.08);
|
|
104
106
|
|
|
105
107
|
hr {
|
|
106
108
|
width: 1px;
|
|
107
109
|
height: 100%;
|
|
108
110
|
margin: 12px 0;
|
|
109
|
-
background-color: #
|
|
111
|
+
background-color: #9babcc;
|
|
110
112
|
opacity: 0.24;
|
|
111
113
|
}
|
|
112
114
|
|
|
@@ -149,7 +151,7 @@
|
|
|
149
151
|
|
|
150
152
|
.th-cell {
|
|
151
153
|
position: absolute;
|
|
152
|
-
background-color: #
|
|
154
|
+
background-color: #f7f8fa;
|
|
153
155
|
font-weight: 600;
|
|
154
156
|
font-size: 14px;
|
|
155
157
|
user-select: none;
|
|
@@ -233,7 +235,7 @@
|
|
|
233
235
|
bottom: 0;
|
|
234
236
|
left: 0;
|
|
235
237
|
right: 0;
|
|
236
|
-
content:
|
|
238
|
+
content: "";
|
|
237
239
|
background: var(--selected-bg);
|
|
238
240
|
pointer-events: none;
|
|
239
241
|
}
|
|
@@ -243,7 +245,7 @@
|
|
|
243
245
|
|
|
244
246
|
&__no-data {
|
|
245
247
|
height: 212px;
|
|
246
|
-
background-color: #
|
|
248
|
+
background-color: #f7f8fa;
|
|
247
249
|
display: flex;
|
|
248
250
|
align-items: center;
|
|
249
251
|
justify-content: center;
|
|
@@ -255,7 +257,7 @@
|
|
|
255
257
|
line-height: 32px;
|
|
256
258
|
letter-spacing: -0.56px;
|
|
257
259
|
|
|
258
|
-
>div {
|
|
260
|
+
> div {
|
|
259
261
|
display: flex;
|
|
260
262
|
flex-direction: column;
|
|
261
263
|
gap: 4px;
|
|
@@ -305,4 +307,4 @@
|
|
|
305
307
|
}
|
|
306
308
|
}
|
|
307
309
|
}
|
|
308
|
-
}
|
|
310
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { useEventListener } from
|
|
2
|
-
import { useMouseUp } from
|
|
3
|
-
import { requestTick } from
|
|
1
|
+
import { useEventListener } from "../../../composition/useEventListener.ts";
|
|
2
|
+
import { useMouseUp } from "./useMouseUp";
|
|
3
|
+
import { requestTick } from "../../../helpers";
|
|
4
4
|
|
|
5
|
-
export function useColumn(
|
|
5
|
+
export function useColumn(
|
|
6
|
+
cb: (state: { x: number; width: number; diff: number }) => void,
|
|
7
|
+
clear: () => void,
|
|
8
|
+
) {
|
|
6
9
|
let state = undefined as { x: number; width: number } | undefined;
|
|
7
10
|
|
|
8
11
|
function start(e: { x: number; width: number }) {
|
|
@@ -16,7 +19,7 @@ export function useColumn(cb: (state: { x: number; width: number; diff: number }
|
|
|
16
19
|
|
|
17
20
|
const handle = requestTick(cb);
|
|
18
21
|
|
|
19
|
-
useEventListener(window,
|
|
22
|
+
useEventListener(window, "mousemove", (e: { x: number }) => {
|
|
20
23
|
if (state) {
|
|
21
24
|
handle({
|
|
22
25
|
x: state.x,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { onMounted, onUnmounted } from
|
|
1
|
+
import { onMounted, onUnmounted } from "vue";
|
|
2
2
|
|
|
3
3
|
export function useMouseUp(update: (ev: globalThis.MouseEvent) => void) {
|
|
4
|
-
onMounted(() => window.addEventListener(
|
|
5
|
-
onUnmounted(() => window.removeEventListener(
|
|
4
|
+
onMounted(() => window.addEventListener("mouseup", update));
|
|
5
|
+
onUnmounted(() => window.removeEventListener("mouseup", update));
|
|
6
6
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import type { Ref } from
|
|
2
|
-
import { watchEffect, unref } from
|
|
3
|
-
import type { ResizeTh } from
|
|
4
|
-
import { useColumn } from
|
|
5
|
-
import { MIN_COLUMN_WIDTH, RESIZE_GAP } from
|
|
6
|
-
import { useMouse } from
|
|
7
|
-
import { useHover } from
|
|
8
|
-
import { tapIf, clamp } from
|
|
9
|
-
import { identity } from
|
|
10
|
-
import type { State } from
|
|
1
|
+
import type { Ref } from "vue";
|
|
2
|
+
import { watchEffect, unref } from "vue";
|
|
3
|
+
import type { ResizeTh } from "../types";
|
|
4
|
+
import { useColumn } from "./useColumn";
|
|
5
|
+
import { MIN_COLUMN_WIDTH, RESIZE_GAP } from "../constants";
|
|
6
|
+
import { useMouse } from "../../../composition/useMouse";
|
|
7
|
+
import { useHover } from "../../../composition/useHover";
|
|
8
|
+
import { tapIf, clamp } from "@milaboratories/helpers";
|
|
9
|
+
import { identity } from "@milaboratories/helpers";
|
|
10
|
+
import type { State } from "../state";
|
|
11
11
|
|
|
12
12
|
type MaybeRef<T> = T | Ref<T>;
|
|
13
13
|
|
|
14
14
|
export function getColumnPositions(tableRef: MaybeRef<HTMLElement | undefined>) {
|
|
15
|
-
const ths = tapIf(unref(tableRef)?.querySelectorAll(
|
|
15
|
+
const ths = tapIf(unref(tableRef)?.querySelectorAll(".th-cell"), (l) => [...l]) ?? [];
|
|
16
16
|
return ths
|
|
17
17
|
.map((th) => {
|
|
18
18
|
const { width, x } = th.getBoundingClientRect();
|
|
19
|
-
const colId = th.getAttribute(
|
|
19
|
+
const colId = th.getAttribute("data-col-id")!;
|
|
20
20
|
return identity<ResizeTh>({
|
|
21
21
|
colId,
|
|
22
22
|
width,
|
|
@@ -45,7 +45,7 @@ export function useResize(state: State, tableRef: Ref<HTMLElement | undefined>)
|
|
|
45
45
|
() => {
|
|
46
46
|
data.resize = false;
|
|
47
47
|
data.resizeTh = undefined;
|
|
48
|
-
document.body.style.cursor =
|
|
48
|
+
document.body.style.cursor = "";
|
|
49
49
|
},
|
|
50
50
|
);
|
|
51
51
|
|
|
@@ -61,7 +61,7 @@ export function useResize(state: State, tableRef: Ref<HTMLElement | undefined>)
|
|
|
61
61
|
|
|
62
62
|
watchEffect(() => {
|
|
63
63
|
if (!isHovered.value) {
|
|
64
|
-
document.body.style.cursor =
|
|
64
|
+
document.body.style.cursor = "";
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -74,11 +74,11 @@ export function useResize(state: State, tableRef: Ref<HTMLElement | undefined>)
|
|
|
74
74
|
});
|
|
75
75
|
|
|
76
76
|
if (th) {
|
|
77
|
-
document.body.style.cursor =
|
|
77
|
+
document.body.style.cursor = "col-resize";
|
|
78
78
|
data.resizeTh = th;
|
|
79
79
|
} else {
|
|
80
80
|
data.resizeTh = undefined;
|
|
81
|
-
document.body.style.cursor =
|
|
81
|
+
document.body.style.cursor = "";
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ColumnSpecSettings, TableSettings, TableColumn, TableData } from
|
|
2
|
-
import type { ComputedRef } from
|
|
3
|
-
import { computed } from
|
|
4
|
-
import { sliceBy } from
|
|
5
|
-
import { asConst } from
|
|
6
|
-
import { uniqueId } from
|
|
7
|
-
import { GAP } from
|
|
1
|
+
import type { ColumnSpecSettings, TableSettings, TableColumn, TableData } from "../types";
|
|
2
|
+
import type { ComputedRef } from "vue";
|
|
3
|
+
import { computed } from "vue";
|
|
4
|
+
import { sliceBy } from "@milaboratories/helpers";
|
|
5
|
+
import { asConst } from "@milaboratories/helpers";
|
|
6
|
+
import { uniqueId } from "@milaboratories/helpers";
|
|
7
|
+
import { GAP } from "../constants";
|
|
8
8
|
|
|
9
9
|
export function useTableColumns(state: { data: TableData; settings: ComputedRef<TableSettings> }) {
|
|
10
10
|
return computed<TableColumn[]>(() => {
|
|
@@ -20,7 +20,7 @@ export function useTableColumns(state: { data: TableData; settings: ComputedRef<
|
|
|
20
20
|
columns.unshift(
|
|
21
21
|
asConst<ColumnSpecSettings>({
|
|
22
22
|
id: controlId,
|
|
23
|
-
label:
|
|
23
|
+
label: "#",
|
|
24
24
|
width: 60,
|
|
25
25
|
frozen: true,
|
|
26
26
|
}),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { ComputedRef } from
|
|
2
|
-
import { computed } from
|
|
3
|
-
import type { TableCell, TableColumn, TableData, TableRow } from
|
|
4
|
-
import { identity } from
|
|
1
|
+
import type { ComputedRef } from "vue";
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import type { TableCell, TableColumn, TableData, TableRow } from "../types";
|
|
4
|
+
import { identity } from "@milaboratories/helpers";
|
|
5
5
|
|
|
6
6
|
export function useTableRows(data: TableData, tableColumns: ComputedRef<TableColumn[]>) {
|
|
7
7
|
const classesRef = computed(() =>
|
|
8
8
|
tableColumns.value.reduce(
|
|
9
9
|
(r, col) => {
|
|
10
|
-
r[col.id] = col.justify ?
|
|
10
|
+
r[col.id] = col.justify ? "justify-" + col.justify : "";
|
|
11
11
|
return r;
|
|
12
12
|
},
|
|
13
13
|
{} as Record<string | symbol, string>,
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
export function toComparable(v: unknown) {
|
|
2
|
-
if (typeof v ===
|
|
2
|
+
if (typeof v === "number") {
|
|
3
3
|
return v;
|
|
4
|
-
} else if (typeof v ===
|
|
4
|
+
} else if (typeof v === "string") {
|
|
5
5
|
return v;
|
|
6
6
|
} else {
|
|
7
7
|
return String(v);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export function compareRecords(
|
|
11
|
+
export function compareRecords(
|
|
12
|
+
sorts: Record<string, "ASC" | "DESC">,
|
|
13
|
+
a: Record<string, unknown>,
|
|
14
|
+
b: Record<string, unknown>,
|
|
15
|
+
) {
|
|
12
16
|
for (const [name, direction] of Object.entries(sorts)) {
|
|
13
17
|
const v1 = toComparable(a[name]);
|
|
14
18
|
const v2 = toComparable(b[name]);
|
|
15
19
|
|
|
16
|
-
const rev = direction ===
|
|
20
|
+
const rev = direction === "DESC" ? -1 : 1;
|
|
17
21
|
|
|
18
22
|
if (v1 === v2) {
|
|
19
23
|
continue;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { TableSettings } from
|
|
2
|
-
import Component from
|
|
3
|
-
import type * as Types from
|
|
4
|
-
import type { RawTableSettings } from
|
|
5
|
-
import type { ComputedRef } from
|
|
6
|
-
import { computed, h, reactive, unref } from
|
|
7
|
-
import { RawData } from
|
|
8
|
-
import type { MaybeRef } from
|
|
9
|
-
export { AsyncData } from
|
|
1
|
+
import type { TableSettings } from "./types";
|
|
2
|
+
import Component from "./TableComponent.vue";
|
|
3
|
+
import type * as Types from "./types";
|
|
4
|
+
import type { RawTableSettings } from "./types";
|
|
5
|
+
import type { ComputedRef } from "vue";
|
|
6
|
+
import { computed, h, reactive, unref } from "vue";
|
|
7
|
+
import { RawData } from "./adapters/RawData";
|
|
8
|
+
import type { MaybeRef } from "../../types";
|
|
9
|
+
export { AsyncData } from "./adapters/AsyncData";
|
|
10
10
|
|
|
11
11
|
type AnyRef<T> = MaybeRef<T> | ComputedRef<T>;
|
|
12
12
|
|
|
@@ -24,12 +24,22 @@ export { Types };
|
|
|
24
24
|
|
|
25
25
|
/** * Adapters ***/
|
|
26
26
|
|
|
27
|
-
export function rawDataSettings<D extends Types.DataRow>(
|
|
28
|
-
|
|
27
|
+
export function rawDataSettings<D extends Types.DataRow>(
|
|
28
|
+
rows: D[],
|
|
29
|
+
rawSettings: Types.RawTableSettings<D>,
|
|
30
|
+
): TableSettings {
|
|
31
|
+
const dataSource = new RawData<D>(
|
|
32
|
+
rows,
|
|
33
|
+
rawSettings.resolveRowHeight,
|
|
34
|
+
rawSettings.resolvePrimaryKey,
|
|
35
|
+
);
|
|
29
36
|
return { ...rawSettings, dataSource } as TableSettings;
|
|
30
37
|
}
|
|
31
38
|
|
|
32
|
-
export function useRawData<D extends Types.DataRow>(
|
|
39
|
+
export function useRawData<D extends Types.DataRow>(
|
|
40
|
+
rowsRef: AnyRef<D[]>,
|
|
41
|
+
raw: MaybeRef<RawTableSettings<D>>,
|
|
42
|
+
) {
|
|
33
43
|
return computed(() => {
|
|
34
44
|
const rows = unref(rowsRef);
|
|
35
45
|
return rawDataSettings(rows, unref(raw));
|
|
@@ -42,7 +52,10 @@ export function useRawData<D extends Types.DataRow>(rowsRef: AnyRef<D[]>, raw: M
|
|
|
42
52
|
* @param raw
|
|
43
53
|
* @returns
|
|
44
54
|
*/
|
|
45
|
-
export function useRawDataComponent<D extends Types.DataRow>(
|
|
55
|
+
export function useRawDataComponent<D extends Types.DataRow>(
|
|
56
|
+
rowsRef: AnyRef<D[]>,
|
|
57
|
+
raw: MaybeRef<RawTableSettings<D>>,
|
|
58
|
+
) {
|
|
46
59
|
const settings = computed(() => {
|
|
47
60
|
const rows = unref(rowsRef);
|
|
48
61
|
return rawDataSettings(rows, unref(raw));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type InjectionKey, type ComputedRef, inject } from
|
|
2
|
-
import type { TableSettings } from
|
|
3
|
-
import type { State } from
|
|
1
|
+
import { type InjectionKey, type ComputedRef, inject } from "vue";
|
|
2
|
+
import type { TableSettings } from "./types";
|
|
3
|
+
import type { State } from "./state";
|
|
4
4
|
|
|
5
5
|
export const settingsKey = Symbol() as InjectionKey<ComputedRef<TableSettings>>;
|
|
6
6
|
|