vueless 0.0.327 → 0.0.329
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/adatper.locale/locales/en.js +11 -11
- package/adatper.locale/vueless.js +1 -1
- package/{composable.ui/index.js → composables/useUI.js} +3 -3
- package/{directive.tooltip/index.js → directives/vTooltip.js} +2 -2
- package/index.js +14 -14
- package/package.json +3 -3
- package/preset.tailwind.js +120 -2
- package/ui.button/{index.vue → UButton.vue} +7 -8
- package/{ui.button-toggle → ui.button/storybook}/Docs.mdx +3 -3
- package/ui.button/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.button/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.button-link/{index.vue → ULink.vue} +5 -6
- package/{ui.button-toggle-item → ui.button-link/storybook}/Docs.mdx +3 -3
- package/ui.button-link/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.button-link/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.button-toggle/{index.vue → UToggle.vue} +7 -8
- package/{ui.button → ui.button-toggle/storybook}/Docs.mdx +3 -3
- package/ui.button-toggle/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.button-toggle/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.button-toggle-item/{index.vue → UToggleItem.vue} +6 -7
- package/ui.button-toggle-item/{configs/default.config.js → config.js} +3 -3
- package/{ui.button-link → ui.button-toggle-item/storybook}/Docs.mdx +3 -3
- package/ui.button-toggle-item/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.button-toggle-item/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.container-accordion/{index.vue → UAccordion.vue} +7 -8
- package/ui.container-accordion/storybook/Docs.mdx +16 -0
- package/ui.container-accordion/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.container-accordion/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.container-card/{index.vue → UCard.vue} +8 -9
- package/ui.container-card/storybook/Docs.mdx +16 -0
- package/ui.container-card/{index.stories.js → storybook/stories.js} +9 -9
- package/ui.container-card/{composable/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.container-col/{index.vue → UCol.vue} +5 -6
- package/ui.container-col/storybook/Docs.mdx +16 -0
- package/ui.container-col/{index.stories.js → storybook/stories.js} +6 -6
- package/{ui.form-input-number/composables/attrs.composable.js → ui.container-col/useAttrs.js} +3 -3
- package/ui.container-divider/{index.vue → UDivider.vue} +5 -6
- package/ui.container-divider/storybook/Docs.mdx +16 -0
- package/ui.container-divider/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.container-divider/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.container-group/{index.vue → UGroup.vue} +7 -8
- package/ui.container-group/storybook/Docs.mdx +16 -0
- package/ui.container-group/{index.stories.js → storybook/stories.js} +7 -7
- package/{ui.navigation-tabs/composables/attrs.composable.js → ui.container-group/useAttrs.js} +3 -3
- package/ui.container-modal/{index.vue → UModal.vue} +9 -10
- package/ui.container-modal/storybook/Docs.mdx +16 -0
- package/ui.container-modal/{index.stories.js → storybook/stories.js} +10 -10
- package/ui.container-modal/{composables/attrs.composable.js → useAttrs.js} +4 -4
- package/ui.container-modal-confirm/{index.vue → UModalConfirm.vue} +8 -9
- package/ui.container-modal-confirm/storybook/Docs.mdx +16 -0
- package/ui.container-modal-confirm/{index.stories.js → storybook/stories.js} +8 -8
- package/ui.container-modal-confirm/{composable/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.container-page/{index.vue → UPage.vue} +9 -10
- package/ui.container-page/storybook/Docs.mdx +16 -0
- package/ui.container-page/{index.stories.js → storybook/stories.js} +11 -11
- package/ui.container-page/{composables/attrs.composable.js → useAttrs.js} +4 -4
- package/ui.container-row/{index.vue → URow.vue} +5 -6
- package/ui.container-row/storybook/Docs.mdx +16 -0
- package/ui.container-row/{index.stories.js → storybook/stories.js} +7 -7
- package/{ui.form-checkbox-group/composables/attrs.composable.js → ui.container-row/useAttrs.js} +3 -3
- package/ui.data-list/{index.vue → UDataList.vue} +11 -12
- package/ui.data-list/{Docs.mdx → storybook/Docs.mdx} +3 -3
- package/ui.data-list/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.data-list/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.data-table/{components/TableRow.vue → TableRow.vue} +33 -31
- package/ui.data-table/{index.vue → UTable.vue} +14 -15
- package/ui.data-table/storybook/Docs.mdx +16 -0
- package/ui.data-table/{index.stories.js → storybook/stories.js} +11 -11
- package/ui.data-table/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.dropdown-badge/{index.vue → UDropdownBadge.vue} +9 -10
- package/ui.dropdown-badge/storybook/Docs.mdx +16 -0
- package/ui.dropdown-badge/{index.stories.js → storybook/stories.js} +6 -6
- package/ui.dropdown-badge/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.dropdown-button/{index.vue → UDropdownButton.vue} +9 -10
- package/ui.dropdown-button/storybook/Docs.mdx +16 -0
- package/ui.dropdown-button/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.dropdown-button/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.dropdown-link/{index.vue → UDropdownLink.vue} +9 -10
- package/ui.dropdown-link/storybook/Docs.mdx +16 -0
- package/ui.dropdown-link/{index.stories.js → storybook/stories.js} +6 -6
- package/ui.dropdown-link/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.dropdown-list/{index.vue → UDropdownList.vue} +10 -11
- package/ui.dropdown-list/{configs/default.config.js → config.js} +2 -1
- package/ui.dropdown-list/storybook/Docs.mdx +16 -0
- package/ui.dropdown-list/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.dropdown-list/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-calendar/{index.vue → UCalendar.vue} +12 -18
- package/ui.form-calendar/{components/DayView.vue → UCalendarDayView.vue} +5 -5
- package/ui.form-calendar/{components/MonthView.vue → UCalendarMonthView.vue} +6 -6
- package/ui.form-calendar/{components/YearView.vue → UCalendarYearView.vue} +6 -6
- package/ui.form-calendar/{configs/default.config.js → config.js} +4 -1
- package/ui.form-calendar/{Docs.mdx → storybook/Docs.mdx} +3 -3
- package/ui.form-calendar/{index.stories.js → storybook/stories.js} +4 -4
- package/ui.form-calendar/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-calendar/{services/calendar.service.js → utilCalendar.js} +3 -3
- package/ui.form-calendar/{services/date.service.js → utilDate.js} +1 -1
- package/ui.form-checkbox/{index.vue → UCheckbox.vue} +7 -8
- package/ui.form-checkbox/storybook/Docs.mdx +16 -0
- package/ui.form-checkbox/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.form-checkbox/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-checkbox-group/{index.vue → UCheckboxGroup.vue} +7 -8
- package/ui.form-checkbox-group/storybook/Docs.mdx +16 -0
- package/ui.form-checkbox-group/{index.stories.js → storybook/stories.js} +8 -8
- package/{ui.container-row/composables/attrs.composable.js → ui.form-checkbox-group/useAttrs.js} +3 -3
- package/ui.form-checkbox-multi-state/{index.vue → UCheckboxMultiState.vue} +6 -7
- package/ui.form-checkbox-multi-state/storybook/Docs.mdx +16 -0
- package/ui.form-checkbox-multi-state/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.form-checkbox-multi-state/{composables/attrs.composable.js → useAttrs.js} +7 -7
- package/ui.form-color-picker/{index.vue → UColorPicker.vue} +8 -9
- package/ui.form-color-picker/storybook/Docs.mdx +16 -0
- package/ui.form-color-picker/{index.stories.js → storybook/stories.js} +6 -5
- package/ui.form-color-picker/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-date-picker/{index.vue → UDatePicker.vue} +11 -12
- package/ui.form-date-picker/index.js +5 -0
- package/ui.form-date-picker/{Docs.mdx → storybook/Docs.mdx} +3 -3
- package/ui.form-date-picker/{index.stories.js → storybook/stories.js} +6 -6
- package/ui.form-date-picker/{composables/attrs.composable.js → useAttrs.js} +4 -4
- package/ui.form-date-picker-range/{index.vue → UDatePickerRange.vue} +18 -27
- package/ui.form-date-picker-range/{configs/default.config.js → config.js} +4 -1
- package/ui.form-date-picker-range/storybook/Docs.mdx +16 -0
- package/ui.form-date-picker-range/{index.stories.js → storybook/stories.js} +34 -34
- package/ui.form-date-picker-range/{composables/attrs.composable.js → useAttrs.js} +4 -4
- package/ui.form-date-picker-range/{services/dateRange.service.js → utilDateRange.js} +1 -1
- package/ui.form-date-picker-range/{services/validation.service.js → utilValidation.js} +1 -1
- package/ui.form-input/{index.vue → UInput.vue} +7 -8
- package/ui.form-input/{configs/default.config.js → config.js} +2 -2
- package/ui.form-input/storybook/Docs.mdx +16 -0
- package/ui.form-input/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.form-input/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-input-file/{index.vue → UInputFile.vue} +11 -12
- package/ui.form-input-file/storybook/Docs.mdx +16 -0
- package/ui.form-input-file/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.form-input-file/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-input-money/{index.vue → UMoney.vue} +21 -13
- package/ui.form-input-money/{configs/default.config.js → config.js} +2 -1
- package/ui.form-input-money/storybook/Docs.mdx +16 -0
- package/ui.form-input-money/{index.stories.js → storybook/stories.js} +12 -9
- package/ui.form-input-money/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-input-money/{composables/useFormatCurrency.js → useFormatCurrency.js} +1 -1
- package/ui.form-input-money/{services/format.service.js → utilFormat.js} +12 -4
- package/ui.form-input-number/{index.vue → UInputNumber.vue} +7 -8
- package/ui.form-input-number/storybook/Docs.mdx +16 -0
- package/ui.form-input-number/{index.stories.js → storybook/stories.js} +5 -5
- package/{ui.container-col/composables/attrs.composable.js → ui.form-input-number/useAttrs.js} +3 -3
- package/ui.form-input-rating/{index.vue → UInputRating.vue} +7 -8
- package/ui.form-input-rating/storybook/Docs.mdx +16 -0
- package/ui.form-input-rating/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.form-input-rating/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-input-search/{index.vue → UInputSearch.vue} +11 -12
- package/ui.form-input-search/storybook/Docs.mdx +16 -0
- package/ui.form-input-search/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.form-input-search/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-label/{index.vue → ULabel.vue} +5 -6
- package/ui.form-label/storybook/Docs.mdx +16 -0
- package/ui.form-label/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.form-label/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-radio/{index.vue → URadio.vue} +6 -7
- package/ui.form-radio/storybook/Docs.mdx +16 -0
- package/ui.form-radio/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.form-radio/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-radio-group/{index.vue → URadioGroup.vue} +7 -8
- package/ui.form-radio-group/{Docs.mdx → storybook/Docs.mdx} +3 -3
- package/ui.form-radio-group/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.form-radio-group/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-select/{index.vue → USelect.vue} +11 -12
- package/ui.form-select/storybook/Docs.mdx +16 -0
- package/ui.form-select/{index.stories.js → storybook/stories.js} +8 -8
- package/ui.form-select/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-switch/{index.vue → USwitch.vue} +8 -9
- package/ui.form-switch/{configs/default.config.js → config.js} +15 -3
- package/ui.form-switch/storybook/Docs.mdx +16 -0
- package/ui.form-switch/{index.stories.js → storybook/stories.js} +6 -6
- package/ui.form-switch/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-switch/{services/variant.service.js → utilVariant.js} +1 -1
- package/ui.form-textarea/{index.vue → UTextarea.vue} +6 -7
- package/ui.form-textarea/{configs/default.config.js → config.js} +4 -3
- package/ui.form-textarea/storybook/Docs.mdx +16 -0
- package/ui.form-textarea/{index.stories.js → storybook/stories.js} +6 -6
- package/ui.form-textarea/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.image-avatar/{index.vue → UAvatar.vue} +6 -7
- package/ui.image-avatar/storybook/Docs.mdx +16 -0
- package/ui.image-avatar/{index.stories.js → storybook/stories.js} +7 -7
- package/{ui.image-icon/composables/attrs.composable.js → ui.image-avatar/useAttrs.js} +3 -3
- package/ui.image-icon/{index.vue → UIcon.vue} +6 -10
- package/ui.image-icon/storybook/Docs.mdx +16 -0
- package/ui.image-icon/{index.stories.js → storybook/stories.js} +5 -5
- package/{ui.loader-top/composables/attrs.composable.js → ui.image-icon/useAttrs.js} +3 -3
- package/ui.loader/{index.vue → ULoader.vue} +5 -6
- package/ui.loader/storybook/Docs.mdx +16 -0
- package/ui.loader/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.loader/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.loader-rendering/{index.vue → ULoaderRendering.vue} +7 -8
- package/ui.loader-rendering/{Docs.mdx → storybook/Docs.mdx} +3 -3
- package/ui.loader-rendering/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.loader-rendering/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.loader-top/{index.vue → ULoaderTop.vue} +8 -9
- package/ui.loader-top/{Docs.mdx → storybook/Docs.mdx} +3 -3
- package/ui.loader-top/{index.stories.js → storybook/stories.js} +10 -10
- package/{ui.image-avatar/composables/attrs.composable.js → ui.loader-top/useAttrs.js} +3 -3
- package/ui.loader-top/{composables/useLoaderTop.js → useLoaderTop.js} +1 -1
- package/ui.navigation-pagination/{index.vue → UPagination.vue} +7 -8
- package/ui.navigation-pagination/storybook/Docs.mdx +16 -0
- package/ui.navigation-pagination/{index.stories.js → storybook/stories.js} +4 -4
- package/ui.navigation-pagination/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.navigation-progress/{components/StepperProgress.vue → StepperProgress.vue} +2 -2
- package/ui.navigation-progress/{index.vue → UProgress.vue} +7 -8
- package/ui.navigation-progress/{configs/default.config.js → config.js} +4 -1
- package/ui.navigation-progress/storybook/Docs.mdx +16 -0
- package/ui.navigation-progress/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.navigation-progress/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.navigation-tab/{index.vue → UTab.vue} +5 -6
- package/ui.navigation-tab/storybook/Docs.mdx +16 -0
- package/ui.navigation-tab/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.navigation-tab/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.navigation-tabs/{index.vue → UTabs.vue} +6 -7
- package/ui.navigation-tabs/storybook/Docs.mdx +16 -0
- package/ui.navigation-tabs/{index.stories.js → storybook/stories.js} +4 -4
- package/{ui.container-group/composables/attrs.composable.js → ui.navigation-tabs/useAttrs.js} +3 -3
- package/ui.other-dot/{index.vue → UDot.vue} +5 -6
- package/ui.other-dot/storybook/Docs.mdx +16 -0
- package/ui.other-dot/{index.stories.js → storybook/stories.js} +8 -9
- package/ui.other-dot/useAttrs.js +38 -0
- package/ui.text-alert/{index.vue → UAlert.vue} +8 -9
- package/ui.text-alert/storybook/Docs.mdx +16 -0
- package/ui.text-alert/{index.stories.js → storybook/stories.js} +8 -8
- package/ui.text-alert/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.text-badge/{index.vue → UBadge.vue} +6 -7
- package/ui.text-badge/storybook/Docs.mdx +16 -0
- package/ui.text-badge/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.text-badge/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.text-block/{index.vue → UText.vue} +5 -6
- package/ui.text-block/storybook/Docs.mdx +16 -0
- package/ui.text-block/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.text-block/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.text-empty/{index.vue → UEmpty.vue} +7 -8
- package/ui.text-empty/storybook/Docs.mdx +16 -0
- package/ui.text-empty/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.text-empty/useAttrs.js +37 -0
- package/ui.text-file/{index.vue → UFile.vue} +7 -8
- package/ui.text-file/storybook/Docs.mdx +16 -0
- package/ui.text-file/{index.stories.js → storybook/stories.js} +4 -4
- package/ui.text-file/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.text-files/{index.vue → UFiles.vue} +8 -9
- package/ui.text-files/storybook/Docs.mdx +16 -0
- package/ui.text-files/{index.stories.js → storybook/stories.js} +4 -4
- package/ui.text-files/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.text-header/{index.vue → UHeader.vue} +5 -6
- package/ui.text-header/{configs/default.config.js → config.js} +1 -1
- package/ui.text-header/storybook/Docs.mdx +16 -0
- package/ui.text-header/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.text-header/useAttrs.js +38 -0
- package/ui.text-money/{index.vue → UMoney.vue} +6 -7
- package/ui.text-money/storybook/Docs.mdx +16 -0
- package/ui.text-money/{index.stories.js → storybook/stories.js} +9 -9
- package/ui.text-money/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.text-notify/{index.vue → UNotify.vue} +7 -8
- package/ui.text-notify/{Docs.mdx → storybook/Docs.mdx} +3 -3
- package/ui.text-notify/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.text-notify/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.text-notify/{services/index.js → utilNotify.js} +2 -2
- package/{service.theme/index.js → utils/utilTheme.js} +2 -2
- package/{service.ui/index.js → utils/utilUI.js} +2 -2
- package/web-types.json +702 -701
- package/preset.tailwind/index.js +0 -120
- package/ui.container-accordion/Docs.mdx +0 -16
- package/ui.container-card/Docs.mdx +0 -16
- package/ui.container-col/Docs.mdx +0 -16
- package/ui.container-divider/Docs.mdx +0 -16
- package/ui.container-group/Docs.mdx +0 -16
- package/ui.container-modal/Docs.mdx +0 -16
- package/ui.container-modal-confirm/Docs.mdx +0 -16
- package/ui.container-page/Docs.mdx +0 -16
- package/ui.container-row/Docs.mdx +0 -16
- package/ui.data-table/Docs.mdx +0 -16
- package/ui.dropdown-badge/Docs.mdx +0 -16
- package/ui.dropdown-button/Docs.mdx +0 -16
- package/ui.dropdown-link/Docs.mdx +0 -16
- package/ui.dropdown-list/Docs.mdx +0 -16
- package/ui.form-checkbox/Docs.mdx +0 -16
- package/ui.form-checkbox-group/Docs.mdx +0 -16
- package/ui.form-checkbox-multi-state/Docs.mdx +0 -16
- package/ui.form-color-picker/Docs.mdx +0 -16
- package/ui.form-date-picker-range/Docs.mdx +0 -16
- package/ui.form-input/Docs.mdx +0 -16
- package/ui.form-input-file/Docs.mdx +0 -16
- package/ui.form-input-money/Docs.mdx +0 -16
- package/ui.form-input-number/Docs.mdx +0 -16
- package/ui.form-input-rating/Docs.mdx +0 -16
- package/ui.form-input-search/Docs.mdx +0 -16
- package/ui.form-label/Docs.mdx +0 -16
- package/ui.form-radio/Docs.mdx +0 -16
- package/ui.form-select/Docs.mdx +0 -16
- package/ui.form-switch/Docs.mdx +0 -16
- package/ui.form-textarea/Docs.mdx +0 -16
- package/ui.image-avatar/Docs.mdx +0 -16
- package/ui.image-icon/Docs.mdx +0 -16
- package/ui.loader/Docs.mdx +0 -16
- package/ui.navigation-pagination/Docs.mdx +0 -16
- package/ui.navigation-progress/Docs.mdx +0 -16
- package/ui.navigation-tab/Docs.mdx +0 -16
- package/ui.navigation-tabs/Docs.mdx +0 -16
- package/ui.other-dot/Docs.mdx +0 -16
- package/ui.other-dot/composables/attrs.composable.js +0 -38
- package/ui.text-alert/Docs.mdx +0 -16
- package/ui.text-badge/Docs.mdx +0 -16
- package/ui.text-block/Docs.mdx +0 -16
- package/ui.text-empty/Docs.mdx +0 -16
- package/ui.text-empty/composables/attrs.composable.js +0 -37
- package/ui.text-file/Docs.mdx +0 -16
- package/ui.text-files/Docs.mdx +0 -16
- package/ui.text-header/Docs.mdx +0 -16
- package/ui.text-header/composables/attrs.composable.js +0 -38
- package/ui.text-money/Docs.mdx +0 -16
- /package/{composable.autoPosition/index.js → composables/useAutoPosition.js} +0 -0
- /package/{composable.breakpoint/index.js → composables/useBreakpoint.js} +0 -0
- /package/{composable.locale/index.js → composables/useLocale.js} +0 -0
- /package/{composable.mutationObserver/index.js → composables/useMutationObserver.js} +0 -0
- /package/{constants/index.js → constants.js} +0 -0
- /package/{directive.clickOutside/index.js → directives/vClickOutside.js} +0 -0
- /package/ui.button/{configs/default.config.js → config.js} +0 -0
- /package/ui.button/{constants/index.js → constants.js} +0 -0
- /package/ui.button-link/{configs/default.config.js → config.js} +0 -0
- /package/ui.button-link/{constants/index.js → constants.js} +0 -0
- /package/ui.button-toggle/{configs/default.config.js → config.js} +0 -0
- /package/ui.button-toggle/{constants/index.js → constants.js} +0 -0
- /package/ui.button-toggle-item/{constants/index.js → constants.js} +0 -0
- /package/ui.container-accordion/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-accordion/{constants/index.js → constants.js} +0 -0
- /package/ui.container-card/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-card/{constants/index.js → constants.js} +0 -0
- /package/ui.container-col/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-col/{constants/index.js → constants.js} +0 -0
- /package/ui.container-divider/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-divider/{constants/index.js → constants.js} +0 -0
- /package/ui.container-group/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-group/{constants/index.js → constants.js} +0 -0
- /package/ui.container-modal/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-modal/{constants/index.js → constants.js} +0 -0
- /package/ui.container-modal-confirm/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-modal-confirm/{constants/index.js → constants.js} +0 -0
- /package/ui.container-page/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-page/{constants/index.js → constants.js} +0 -0
- /package/ui.container-row/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-row/{constants/index.js → constants.js} +0 -0
- /package/ui.data-list/{configs/default.config.js → config.js} +0 -0
- /package/ui.data-list/{constants/index.js → constants.js} +0 -0
- /package/ui.data-table/{configs/default.config.js → config.js} +0 -0
- /package/ui.data-table/{constants/index.js → constants.js} +0 -0
- /package/ui.data-table/{services/table.service.js → utilTable.js} +0 -0
- /package/ui.dropdown-badge/{configs/default.config.js → config.js} +0 -0
- /package/ui.dropdown-badge/{constants/index.js → constants.js} +0 -0
- /package/ui.dropdown-button/{configs/default.config.js → config.js} +0 -0
- /package/ui.dropdown-button/{constants/index.js → constants.js} +0 -0
- /package/ui.dropdown-link/{configs/default.config.js → config.js} +0 -0
- /package/ui.dropdown-link/{constants/index.js → constants.js} +0 -0
- /package/ui.dropdown-list/{constants/index.js → constants.js} +0 -0
- /package/ui.dropdown-list/{composables/usePointer.js → usePointer.js} +0 -0
- /package/ui.form-calendar/{constants/index.js → constants.js} +0 -0
- /package/ui.form-calendar/{services/formatting.service.js → utilFormatting.js} +0 -0
- /package/ui.form-checkbox/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-checkbox/{constants/index.js → constants.js} +0 -0
- /package/ui.form-checkbox-group/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-checkbox-group/{constants/index.js → constants.js} +0 -0
- /package/ui.form-checkbox-multi-state/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-checkbox-multi-state/{constants/index.js → constants.js} +0 -0
- /package/ui.form-color-picker/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-color-picker/{constants/index.js → constants.js} +0 -0
- /package/ui.form-date-picker/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-date-picker/{constants/index.js → constants.js} +0 -0
- /package/ui.form-date-picker-range/{constants/index.js → constants.js} +0 -0
- /package/ui.form-input/{constants/index.js → constants.js} +0 -0
- /package/ui.form-input-file/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-input-file/{constants/index.js → constants.js} +0 -0
- /package/ui.form-input-file/{services/fileForm.service.js → utilFileForm.js} +0 -0
- /package/ui.form-input-money/{constants/index.js → constants.js} +0 -0
- /package/ui.form-input-number/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-input-number/{constants/index.js → constants.js} +0 -0
- /package/ui.form-input-rating/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-input-rating/{constants/index.js → constants.js} +0 -0
- /package/ui.form-input-search/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-input-search/{constants/index.js → constants.js} +0 -0
- /package/ui.form-label/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-label/{constants/index.js → constants.js} +0 -0
- /package/ui.form-radio/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-radio/{constants/index.js → constants.js} +0 -0
- /package/ui.form-radio-group/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-radio-group/{constants/index.js → constants.js} +0 -0
- /package/ui.form-select/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-select/{constants/index.js → constants.js} +0 -0
- /package/ui.form-select/{services/select.service.js → utilSelect.js} +0 -0
- /package/ui.form-switch/{constants/index.js → constants.js} +0 -0
- /package/ui.form-textarea/{constants/index.js → constants.js} +0 -0
- /package/ui.image-avatar/{configs/default.config.js → config.js} +0 -0
- /package/ui.image-avatar/{constants/index.js → constants.js} +0 -0
- /package/ui.image-icon/{configs/default.config.js → config.js} +0 -0
- /package/ui.image-icon/{constants/index.js → constants.js} +0 -0
- /package/ui.loader/{configs/default.config.js → config.js} +0 -0
- /package/ui.loader/{constants/index.js → constants.js} +0 -0
- /package/ui.loader-rendering/{configs/default.config.js → config.js} +0 -0
- /package/ui.loader-rendering/{constants/index.js → constants.js} +0 -0
- /package/ui.loader-rendering/{composables/useLoaderRendering.js → useLoaderRendering.js} +0 -0
- /package/ui.loader-rendering/{services/loaderRedering.service.js → utilLoaderRedering.js} +0 -0
- /package/ui.loader-top/{configs/default.config.js → config.js} +0 -0
- /package/ui.loader-top/{constants/index.js → constants.js} +0 -0
- /package/ui.loader-top/{services/loaderTop.service.js → utilLoaderTop.js} +0 -0
- /package/ui.navigation-pagination/{configs/default.config.js → config.js} +0 -0
- /package/ui.navigation-pagination/{constants/index.js → constants.js} +0 -0
- /package/ui.navigation-progress/{constants/index.js → constants.js} +0 -0
- /package/ui.navigation-tab/{configs/default.config.js → config.js} +0 -0
- /package/ui.navigation-tab/{constants/index.js → constants.js} +0 -0
- /package/ui.navigation-tabs/{configs/default.config.js → config.js} +0 -0
- /package/ui.navigation-tabs/{constants/index.js → constants.js} +0 -0
- /package/ui.other-dot/{configs/default.config.js → config.js} +0 -0
- /package/ui.other-dot/{constants/index.js → constants.js} +0 -0
- /package/ui.text-alert/{configs/default.config.js → config.js} +0 -0
- /package/ui.text-alert/{constatns/index.js → constants.js} +0 -0
- /package/ui.text-badge/{configs/default.config.js → config.js} +0 -0
- /package/ui.text-badge/{constants/index.js → constants.js} +0 -0
- /package/ui.text-block/{configs/default.config.js → config.js} +0 -0
- /package/ui.text-block/{constatns/index.js → constants.js} +0 -0
- /package/ui.text-empty/{configs/default.config.js → config.js} +0 -0
- /package/ui.text-empty/{constants/index.js → constants.js} +0 -0
- /package/ui.text-file/{configs/default.config.js → config.js} +0 -0
- /package/ui.text-file/{constants/index.js → constants.js} +0 -0
- /package/ui.text-files/{configs/default.config.js → config.js} +0 -0
- /package/ui.text-files/{constants/index.js → constants.js} +0 -0
- /package/ui.text-header/{constants/index.js → constants.js} +0 -0
- /package/ui.text-money/{configs/default.config.js → config.js} +0 -0
- /package/ui.text-money/{constants/index.js → constants.js} +0 -0
- /package/ui.text-money/{services/money.services.js → utilMoney.js} +0 -0
- /package/ui.text-notify/{configs/default.config.js → config.js} +0 -0
- /package/ui.text-notify/{constants/index.js → constants.js} +0 -0
- /package/{service.helper/index.js → utils/utilHelper.js} +0 -0
- /package/{service.platform/index.js → utils/utilPlatform.js} +0 -0
- /package/{service.storybook/index.js → utils/utilStorybook.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { getArgTypes, getSlotNames, getSlotsFragment } from "
|
|
1
|
+
import { getArgTypes, getSlotNames, getSlotsFragment } from "../../utils/utilStorybook.js";
|
|
2
2
|
|
|
3
|
-
import UPage from "
|
|
4
|
-
import UCard from "
|
|
5
|
-
import URow from "
|
|
6
|
-
import UInput from "
|
|
7
|
-
import UTextarea from "
|
|
8
|
-
import UButton from "
|
|
9
|
-
import UIcon from "
|
|
10
|
-
import UHeader from "
|
|
3
|
+
import UPage from "../../ui.container-page/UPage.vue";
|
|
4
|
+
import UCard from "../../ui.container-card/UCard.vue";
|
|
5
|
+
import URow from "../../ui.container-row/URow.vue";
|
|
6
|
+
import UInput from "../../ui.form-input/UInput.vue";
|
|
7
|
+
import UTextarea from "../../ui.form-textarea/UTextarea.vue";
|
|
8
|
+
import UButton from "../../ui.button/UButton.vue";
|
|
9
|
+
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
10
|
+
import UHeader from "../../ui.text-header/UHeader.vue";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* The `UPage` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.container-page)
|
|
@@ -21,7 +21,7 @@ export default {
|
|
|
21
21
|
gray: true,
|
|
22
22
|
},
|
|
23
23
|
argTypes: {
|
|
24
|
-
...getArgTypes(UPage.
|
|
24
|
+
...getArgTypes(UPage.__name),
|
|
25
25
|
},
|
|
26
26
|
};
|
|
27
27
|
|
|
@@ -47,7 +47,7 @@ const DefaultTemplate = (args) => ({
|
|
|
47
47
|
UHeader,
|
|
48
48
|
},
|
|
49
49
|
setup() {
|
|
50
|
-
const slots = getSlotNames(UPage.
|
|
50
|
+
const slots = getSlotNames(UPage.__name);
|
|
51
51
|
|
|
52
52
|
return { args, slots };
|
|
53
53
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import useUI from "
|
|
2
|
-
import { cva, cx } from "
|
|
3
|
-
import { isMobileApp } from "
|
|
1
|
+
import useUI from "../composables/useUI.js";
|
|
2
|
+
import { cva, cx } from "../utils/utilUI.js";
|
|
3
|
+
import { isMobileApp } from "../utils/utilPlatform.js";
|
|
4
4
|
|
|
5
|
-
import defaultConfig from "
|
|
5
|
+
import defaultConfig from "./config.js";
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
|
|
8
8
|
export default function useAttrs(props, { isMobileBreakpoint }) {
|
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import { getDefault } from "../
|
|
9
|
+
import { getDefault } from "../utils/utilUI.js";
|
|
10
10
|
|
|
11
|
-
import { URow } from "./constants";
|
|
12
|
-
import defaultConfig from "./
|
|
13
|
-
import useAttrs from "./
|
|
11
|
+
import { URow } from "./constants.js";
|
|
12
|
+
import defaultConfig from "./config.js";
|
|
13
|
+
import useAttrs from "./useAttrs.js";
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
defineOptions({ name: "URow", inheritAttrs: false });
|
|
15
|
+
defineOptions({ inheritAttrs: false });
|
|
17
16
|
|
|
18
17
|
const props = defineProps({
|
|
19
18
|
/**
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/blocks";
|
|
2
|
+
import { getSource } from "../../utils/utilStorybook.js";
|
|
3
|
+
|
|
4
|
+
import * as stories from "./stories.js";
|
|
5
|
+
import defaultConfig from "../config.js?raw"
|
|
6
|
+
|
|
7
|
+
<Meta of={stories} />
|
|
8
|
+
<Title of={stories} />
|
|
9
|
+
<Subtitle of={stories} />
|
|
10
|
+
<Description of={stories} />
|
|
11
|
+
<Primary of={stories} />
|
|
12
|
+
<Controls of={stories.Default} />
|
|
13
|
+
<Stories of={stories} />
|
|
14
|
+
|
|
15
|
+
## Default config
|
|
16
|
+
<Source code={getSource(defaultConfig)} language="jsx" dark />
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getArgTypes, getSlotNames, getSlotsFragment } from "
|
|
1
|
+
import { getArgTypes, getSlotNames, getSlotsFragment } from "../../utils/utilStorybook.js";
|
|
2
2
|
|
|
3
|
-
import URow from "
|
|
4
|
-
import UInput from "
|
|
5
|
-
import UCol from "
|
|
6
|
-
import UButton from "
|
|
3
|
+
import URow from "../../ui.container-row/URow.vue";
|
|
4
|
+
import UInput from "../../ui.form-input/UInput.vue";
|
|
5
|
+
import UCol from "../../ui.container-col/UCol.vue";
|
|
6
|
+
import UButton from "../../ui.button/UButton.vue";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The `URow` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.container-row)
|
|
@@ -13,7 +13,7 @@ export default {
|
|
|
13
13
|
title: "Containers / Row",
|
|
14
14
|
component: URow,
|
|
15
15
|
argTypes: {
|
|
16
|
-
...getArgTypes(URow.
|
|
16
|
+
...getArgTypes(URow.__name),
|
|
17
17
|
},
|
|
18
18
|
};
|
|
19
19
|
|
|
@@ -25,7 +25,7 @@ const defaultTemplate = `
|
|
|
25
25
|
const DefaultTemplate = (args) => ({
|
|
26
26
|
components: { URow, UInput, UButton },
|
|
27
27
|
setup() {
|
|
28
|
-
const slots = getSlotNames(URow.
|
|
28
|
+
const slots = getSlotNames(URow.__name);
|
|
29
29
|
|
|
30
30
|
return { args, slots };
|
|
31
31
|
},
|
package/{ui.form-checkbox-group/composables/attrs.composable.js → ui.container-row/useAttrs.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import useUI from "
|
|
1
|
+
import useUI from "../composables/useUI.js";
|
|
2
|
+
import defaultConfig from "./config.js";
|
|
3
|
+
import { cva } from "../utils/utilUI.js";
|
|
2
4
|
import { computed } from "vue";
|
|
3
|
-
import { cva } from "../../service.ui";
|
|
4
|
-
import defaultConfig from "../configs/default.config";
|
|
5
5
|
|
|
6
6
|
export default function useAttrs(props) {
|
|
7
7
|
const { config, getAttrs, isSystemKey, hasSlotContent, isCVA } = useUI(
|
|
@@ -138,18 +138,17 @@ import { computed } from "vue";
|
|
|
138
138
|
import draggable from "vuedraggable";
|
|
139
139
|
import { merge } from "lodash-es";
|
|
140
140
|
|
|
141
|
-
import UIcon from "../ui.image-icon";
|
|
142
|
-
import UEmpty from "../ui.text-empty";
|
|
143
|
-
import UDivider from "../ui.container-divider";
|
|
144
|
-
import { getDefault } from "../
|
|
145
|
-
|
|
146
|
-
import { UDataList as UDataListName } from "./constants";
|
|
147
|
-
import defaultConfig from "./
|
|
148
|
-
import useAttrs from "./
|
|
149
|
-
import { useLocale } from "../
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
defineOptions({ name: "UDataList", inheritAttrs: true });
|
|
141
|
+
import UIcon from "../ui.image-icon/UIcon.vue";
|
|
142
|
+
import UEmpty from "../ui.text-empty/UEmpty.vue";
|
|
143
|
+
import UDivider from "../ui.container-divider/UDivider.vue";
|
|
144
|
+
import { getDefault } from "../utils/utilUI.js";
|
|
145
|
+
|
|
146
|
+
import { UDataList as UDataListName } from "./constants.js";
|
|
147
|
+
import defaultConfig from "./config.js";
|
|
148
|
+
import useAttrs from "./useAttrs.js";
|
|
149
|
+
import { useLocale } from "../composables/useLocale.js";
|
|
150
|
+
|
|
151
|
+
defineOptions({ inheritAttrs: false });
|
|
153
152
|
|
|
154
153
|
const props = defineProps({
|
|
155
154
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/blocks";
|
|
2
|
-
import { getSource } from "
|
|
2
|
+
import { getSource } from "../../utils/utilStorybook.js";
|
|
3
3
|
|
|
4
|
-
import * as stories from "./
|
|
5
|
-
import defaultConfig from "
|
|
4
|
+
import * as stories from "./stories.js";
|
|
5
|
+
import defaultConfig from "../config.js?raw"
|
|
6
6
|
|
|
7
7
|
<Meta of={stories} />
|
|
8
8
|
<Title of={stories} />
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getArgTypes, getSlotNames, getSlotsFragment } from "
|
|
1
|
+
import { getArgTypes, getSlotNames, getSlotsFragment } from "../../utils/utilStorybook.js";
|
|
2
2
|
|
|
3
|
-
import UDataList from "
|
|
4
|
-
import UIcon from "
|
|
5
|
-
import UButton from "
|
|
6
|
-
import URow from "
|
|
3
|
+
import UDataList from "../../ui.data-list/UDataList.vue";
|
|
4
|
+
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
5
|
+
import UButton from "../../ui.button/UButton.vue";
|
|
6
|
+
import URow from "../../ui.container-row/URow.vue";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The `UDataList` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.data-list)
|
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
],
|
|
39
39
|
},
|
|
40
40
|
argTypes: {
|
|
41
|
-
...getArgTypes(UDataList.
|
|
41
|
+
...getArgTypes(UDataList.__name),
|
|
42
42
|
},
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -49,7 +49,7 @@ const DefaultTemplate = (args) => ({
|
|
|
49
49
|
this.list = value;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
const slots = getSlotNames(UDataList.
|
|
52
|
+
const slots = getSlotNames(UDataList.__name);
|
|
53
53
|
|
|
54
54
|
return { args, slots, onDragSort };
|
|
55
55
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import useUI from "
|
|
2
|
-
import defaultConfig from "
|
|
1
|
+
import useUI from "../composables/useUI.js";
|
|
2
|
+
import defaultConfig from "./config.js";
|
|
3
3
|
import { computed } from "vue";
|
|
4
|
-
import { cva, cx } from "
|
|
4
|
+
import { cva, cx } from "../utils/utilUI.js";
|
|
5
5
|
|
|
6
6
|
export default function useAttrs(props) {
|
|
7
7
|
const { config, getAttrs, hasSlotContent, isSystemKey, isCVA } = useUI(
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
<div
|
|
47
47
|
v-bind="attrs.bodyCellPrimaryAttrs"
|
|
48
48
|
ref="cellRef"
|
|
49
|
-
:title="isElementOverflown(cellRef?.[index]) ? value.primary : ''"
|
|
50
49
|
:data-test="`${dataTest}-${key}-cell`"
|
|
51
50
|
>
|
|
52
51
|
{{ value.primary || HYPHEN_SYMBOL }}
|
|
@@ -54,23 +53,14 @@
|
|
|
54
53
|
|
|
55
54
|
<div v-bind="attrs.bodyCellSecondaryAttrs">
|
|
56
55
|
<template v-if="Array.isArray(value.secondary)">
|
|
57
|
-
<div
|
|
58
|
-
v-for="(secondary, idx) in value.secondary"
|
|
59
|
-
ref="cellRef"
|
|
60
|
-
:key="idx"
|
|
61
|
-
:title="isElementOverflown(cellRef?.[index]) ? value.secondary : ''"
|
|
62
|
-
>
|
|
56
|
+
<div v-for="(secondary, idx) in value.secondary" ref="cellRef" :key="idx">
|
|
63
57
|
<span v-bind="attrs.bodyCellSecondaryEmptyAttrs">
|
|
64
58
|
{{ secondary }}
|
|
65
59
|
</span>
|
|
66
60
|
</div>
|
|
67
61
|
</template>
|
|
68
62
|
|
|
69
|
-
<div
|
|
70
|
-
v-else
|
|
71
|
-
ref="cellRef"
|
|
72
|
-
:title="isElementOverflown(cellRef?.[index]) ? value.secondary : ''"
|
|
73
|
-
>
|
|
63
|
+
<div v-else ref="cellRef">
|
|
74
64
|
{{ value.secondary }}
|
|
75
65
|
</div>
|
|
76
66
|
</div>
|
|
@@ -82,7 +72,6 @@
|
|
|
82
72
|
<div
|
|
83
73
|
v-bind="attrs.bodyCellPrimaryAttrs"
|
|
84
74
|
ref="cellRef"
|
|
85
|
-
:title="isElementOverflown(cellRef?.[index]) ? value : ''"
|
|
86
75
|
:data-test="`${dataTest}-${key}-cell`"
|
|
87
76
|
>
|
|
88
77
|
{{ value || value === 0 ? value : HYPHEN_SYMBOL }}
|
|
@@ -109,45 +98,52 @@
|
|
|
109
98
|
</template>
|
|
110
99
|
|
|
111
100
|
<script setup>
|
|
112
|
-
import { computed, ref } from "vue";
|
|
101
|
+
import { computed, onMounted, ref } from "vue";
|
|
113
102
|
|
|
114
|
-
import { HYPHEN_SYMBOL } from "
|
|
115
|
-
import { getFilteredRow } from "
|
|
103
|
+
import { HYPHEN_SYMBOL } from "../constants.js";
|
|
104
|
+
import { getFilteredRow } from "./utilTable.js";
|
|
116
105
|
|
|
117
|
-
import { useMutationObserver } from "
|
|
106
|
+
import { useMutationObserver } from "../composables/useMutationObserver.js";
|
|
118
107
|
|
|
119
|
-
import UIcon from "
|
|
120
|
-
import UCheckbox from "
|
|
108
|
+
import UIcon from "../ui.image-icon/UIcon.vue";
|
|
109
|
+
import UCheckbox from "../ui.form-checkbox/UCheckbox.vue";
|
|
121
110
|
|
|
122
111
|
const props = defineProps({
|
|
123
112
|
row: {
|
|
124
113
|
type: Object,
|
|
125
114
|
required: true,
|
|
126
115
|
},
|
|
116
|
+
|
|
127
117
|
columns: {
|
|
128
118
|
type: Array,
|
|
129
119
|
required: true,
|
|
130
120
|
},
|
|
121
|
+
|
|
131
122
|
tag: {
|
|
132
123
|
type: String,
|
|
133
124
|
default: "tr",
|
|
134
125
|
},
|
|
126
|
+
|
|
135
127
|
selectable: {
|
|
136
128
|
type: Boolean,
|
|
137
129
|
default: false,
|
|
138
130
|
},
|
|
131
|
+
|
|
139
132
|
nestedLevel: {
|
|
140
133
|
type: Number,
|
|
141
134
|
default: 0,
|
|
142
135
|
},
|
|
136
|
+
|
|
143
137
|
dataTest: {
|
|
144
138
|
type: String,
|
|
145
139
|
required: true,
|
|
146
140
|
},
|
|
141
|
+
|
|
147
142
|
attrs: {
|
|
148
143
|
type: Object,
|
|
149
144
|
required: true,
|
|
150
145
|
},
|
|
146
|
+
|
|
151
147
|
config: {
|
|
152
148
|
type: Object,
|
|
153
149
|
required: true,
|
|
@@ -158,7 +154,7 @@ const emit = defineEmits(["toggleRowVisibility", "click"]);
|
|
|
158
154
|
|
|
159
155
|
const selectedRows = defineModel("selectedRows", { type: Array, default: () => [] });
|
|
160
156
|
|
|
161
|
-
const cellRef = ref(
|
|
157
|
+
const cellRef = ref([]);
|
|
162
158
|
|
|
163
159
|
useMutationObserver(cellRef, setCellTitle, { childList: true });
|
|
164
160
|
|
|
@@ -170,6 +166,10 @@ const toggleIconConfig = computed(() =>
|
|
|
170
166
|
|
|
171
167
|
const shift = computed(() => (props.row.row ? 1.5 : 2));
|
|
172
168
|
|
|
169
|
+
onMounted(() => {
|
|
170
|
+
cellRef.value.forEach(setElementTitle);
|
|
171
|
+
});
|
|
172
|
+
|
|
173
173
|
function getCellClasses(key, row, cellIndex) {
|
|
174
174
|
const isNestedRow = (row.row || props.nestedLevel) && cellIndex === 0;
|
|
175
175
|
|
|
@@ -196,21 +196,23 @@ function setCellTitle(mutations) {
|
|
|
196
196
|
mutations.forEach((mutation) => {
|
|
197
197
|
const { target } = mutation;
|
|
198
198
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
if (isOverflown) {
|
|
202
|
-
target.setAttribute("title", target.textContent);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
if (!isOverflown && target.hasAttribute("title")) {
|
|
206
|
-
target.removeAttribute("title");
|
|
207
|
-
}
|
|
199
|
+
setElementTitle(target);
|
|
208
200
|
});
|
|
209
201
|
}
|
|
210
202
|
|
|
211
203
|
function isElementOverflown(element) {
|
|
212
|
-
if (!cellRef.value) return false;
|
|
213
|
-
|
|
214
204
|
return element.clientWidth < element.scrollWidth || element.clientHeight < element.scrollHeight;
|
|
215
205
|
}
|
|
206
|
+
|
|
207
|
+
function setElementTitle(element) {
|
|
208
|
+
const isOverflown = isElementOverflown(element);
|
|
209
|
+
|
|
210
|
+
if (isOverflown) {
|
|
211
|
+
element.setAttribute("title", element.textContent);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
if (!isOverflown && element.hasAttribute("title")) {
|
|
215
|
+
element.removeAttribute("title");
|
|
216
|
+
}
|
|
217
|
+
}
|
|
216
218
|
</script>
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
|
|
179
179
|
<TableRow
|
|
180
180
|
v-bind="bodyRowAttrs(getRowClasses(row))"
|
|
181
|
-
v-model:
|
|
181
|
+
v-model:selected-rows="selectedRows"
|
|
182
182
|
:selectable="selectable"
|
|
183
183
|
:data-test="`${dataTest}-row`"
|
|
184
184
|
:row="row"
|
|
@@ -274,15 +274,15 @@ import {
|
|
|
274
274
|
} from "vue";
|
|
275
275
|
import { merge } from "lodash-es";
|
|
276
276
|
|
|
277
|
-
import UEmpty from "../ui.text-empty";
|
|
278
|
-
import UDivider from "../ui.container-divider";
|
|
279
|
-
import UCheckbox from "../ui.form-checkbox";
|
|
280
|
-
import ULoaderTop from "../ui.loader-top";
|
|
281
|
-
import TableRow from "./
|
|
277
|
+
import UEmpty from "../ui.text-empty/UEmpty.vue";
|
|
278
|
+
import UDivider from "../ui.container-divider/UDivider.vue";
|
|
279
|
+
import UCheckbox from "../ui.form-checkbox/UCheckbox.vue";
|
|
280
|
+
import ULoaderTop from "../ui.loader-top/ULoaderTop.vue";
|
|
281
|
+
import TableRow from "./TableRow.vue";
|
|
282
282
|
|
|
283
|
-
import { getDefault } from "../
|
|
283
|
+
import { getDefault } from "../utils/utilUI.js";
|
|
284
284
|
|
|
285
|
-
import defaultConfig from "./
|
|
285
|
+
import defaultConfig from "./config.js";
|
|
286
286
|
import {
|
|
287
287
|
normalizeColumns,
|
|
288
288
|
getFilteredRow,
|
|
@@ -290,15 +290,14 @@ import {
|
|
|
290
290
|
toggleRowVisibility,
|
|
291
291
|
switchRowCheck,
|
|
292
292
|
getFlatRows,
|
|
293
|
-
} from "./
|
|
293
|
+
} from "./utilTable.js";
|
|
294
294
|
|
|
295
|
-
import { PX_IN_REM } from "../constants";
|
|
296
|
-
import { UTable } from "./constants";
|
|
297
|
-
import useAttrs from "./
|
|
298
|
-
import { useLocale } from "../
|
|
295
|
+
import { PX_IN_REM } from "../constants.js";
|
|
296
|
+
import { UTable } from "./constants.js";
|
|
297
|
+
import useAttrs from "./useAttrs.js";
|
|
298
|
+
import { useLocale } from "../composables/useLocale.js";
|
|
299
299
|
|
|
300
|
-
|
|
301
|
-
defineOptions({ name: "UTable", inheritAttrs: false });
|
|
300
|
+
defineOptions({ inheritAttrs: false });
|
|
302
301
|
|
|
303
302
|
const props = defineProps({
|
|
304
303
|
/**
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/blocks";
|
|
2
|
+
import { getSource } from "../../utils/utilStorybook.js";
|
|
3
|
+
|
|
4
|
+
import * as stories from "./stories.js";
|
|
5
|
+
import defaultConfig from "../config.js?raw"
|
|
6
|
+
|
|
7
|
+
<Meta of={stories} />
|
|
8
|
+
<Title of={stories} />
|
|
9
|
+
<Subtitle of={stories} />
|
|
10
|
+
<Description of={stories} />
|
|
11
|
+
<Primary of={stories} />
|
|
12
|
+
<Controls of={stories.Default} />
|
|
13
|
+
<Stories of={stories} />
|
|
14
|
+
|
|
15
|
+
## Default config
|
|
16
|
+
<Source code={getSource(defaultConfig)} language="jsx" dark />
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { getArgTypes, getSlotNames, getSlotsFragment } from "
|
|
2
|
-
import { getRandomId } from "
|
|
1
|
+
import { getArgTypes, getSlotNames, getSlotsFragment } from "../../utils/utilStorybook.js";
|
|
2
|
+
import { getRandomId } from "../../utils/utilUI.js";
|
|
3
3
|
|
|
4
|
-
import UTable from "
|
|
5
|
-
import UButton from "
|
|
6
|
-
import ULink from "
|
|
7
|
-
import UMoney from "
|
|
8
|
-
import UBadge from "
|
|
9
|
-
import URow from "
|
|
4
|
+
import UTable from "../../ui.data-table/UTable.vue";
|
|
5
|
+
import UButton from "../../ui.button/UButton.vue";
|
|
6
|
+
import ULink from "../../ui.button-link/ULink.vue";
|
|
7
|
+
import UMoney from "../../ui.text-money/UMoney.vue";
|
|
8
|
+
import UBadge from "../../ui.text-badge/UBadge.vue";
|
|
9
|
+
import URow from "../../ui.container-row/URow.vue";
|
|
10
10
|
|
|
11
11
|
const STICKY_PARAMETERS = {
|
|
12
12
|
docs: {
|
|
@@ -25,7 +25,7 @@ export default {
|
|
|
25
25
|
title: "Data / Table",
|
|
26
26
|
component: UTable,
|
|
27
27
|
argTypes: {
|
|
28
|
-
...getArgTypes(UTable.
|
|
28
|
+
...getArgTypes(UTable.__name),
|
|
29
29
|
row: {
|
|
30
30
|
description:
|
|
31
31
|
"The row of the table. It's not a prop (it created for ease of work with storybook).",
|
|
@@ -159,7 +159,7 @@ function getRow() {
|
|
|
159
159
|
const DefaultTemplate = (args) => ({
|
|
160
160
|
components: { UTable, UButton, ULink, UMoney, UBadge, URow },
|
|
161
161
|
setup() {
|
|
162
|
-
const slots = getSlotNames(UTable.
|
|
162
|
+
const slots = getSlotNames(UTable.__name);
|
|
163
163
|
|
|
164
164
|
return { args, slots };
|
|
165
165
|
},
|
|
@@ -187,7 +187,7 @@ const DefaultTemplate = (args) => ({
|
|
|
187
187
|
const EmptyTemplate = (args) => ({
|
|
188
188
|
components: { UTable },
|
|
189
189
|
setup() {
|
|
190
|
-
const slots = getSlotNames(UTable.
|
|
190
|
+
const slots = getSlotNames(UTable.__name);
|
|
191
191
|
|
|
192
192
|
return { args, slots };
|
|
193
193
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import useUI from "
|
|
2
|
-
import defaultConfig from "
|
|
3
|
-
import { cva, cx } from "
|
|
1
|
+
import useUI from "../composables/useUI.js";
|
|
2
|
+
import defaultConfig from "./config.js";
|
|
3
|
+
import { cva, cx } from "../utils/utilUI.js";
|
|
4
4
|
import { computed } from "vue";
|
|
5
5
|
|
|
6
6
|
export default function useAttrs(
|
|
@@ -66,20 +66,19 @@
|
|
|
66
66
|
<script setup>
|
|
67
67
|
import { provide, ref, watch } from "vue";
|
|
68
68
|
|
|
69
|
-
import UIcon from "../ui.image-icon";
|
|
70
|
-
import UBadge from "../ui.text-badge";
|
|
71
|
-
import UDropdownList from "../ui.dropdown-list";
|
|
69
|
+
import UIcon from "../ui.image-icon/UIcon.vue";
|
|
70
|
+
import UBadge from "../ui.text-badge/UBadge.vue";
|
|
71
|
+
import UDropdownList from "../ui.dropdown-list/UDropdownList.vue";
|
|
72
72
|
|
|
73
|
-
import { getRandomId, getDefault } from "../
|
|
73
|
+
import { getRandomId, getDefault } from "../utils/utilUI.js";
|
|
74
74
|
|
|
75
|
-
import vClickOutside from "../
|
|
75
|
+
import vClickOutside from "../directives/vClickOutside.js";
|
|
76
76
|
|
|
77
|
-
import defaultConfig from "./
|
|
78
|
-
import { UDropdownBadge } from "./constants";
|
|
79
|
-
import useAttrs from "./
|
|
77
|
+
import defaultConfig from "./config.js";
|
|
78
|
+
import { UDropdownBadge } from "./constants.js";
|
|
79
|
+
import useAttrs from "./useAttrs.js";
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
defineOptions({ name: "UDropdownBadge", inheritAttrs: false });
|
|
81
|
+
defineOptions({ inheritAttrs: false });
|
|
83
82
|
|
|
84
83
|
const props = defineProps({
|
|
85
84
|
/**
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/blocks";
|
|
2
|
+
import { getSource } from "../../utils/utilStorybook.js";
|
|
3
|
+
|
|
4
|
+
import * as stories from "./stories.js";
|
|
5
|
+
import defaultConfig from "../config.js?raw"
|
|
6
|
+
|
|
7
|
+
<Meta of={stories} />
|
|
8
|
+
<Title of={stories} />
|
|
9
|
+
<Subtitle of={stories} />
|
|
10
|
+
<Description of={stories} />
|
|
11
|
+
<Primary of={stories} />
|
|
12
|
+
<Controls of={stories.Default} />
|
|
13
|
+
<Stories of={stories} />
|
|
14
|
+
|
|
15
|
+
## Default config
|
|
16
|
+
<Source code={getSource(defaultConfig)} language="jsx" dark />
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getArgTypes, getSlotNames, getSlotsFragment } from "
|
|
1
|
+
import { getArgTypes, getSlotNames, getSlotsFragment } from "../../utils/utilStorybook.js";
|
|
2
2
|
|
|
3
|
-
import UDropdownBadge from "
|
|
4
|
-
import URow from "
|
|
5
|
-
import UIcon from "
|
|
3
|
+
import UDropdownBadge from "../../ui.dropdown-badge/UDropdownBadge.vue";
|
|
4
|
+
import URow from "../../ui.container-row/URow.vue";
|
|
5
|
+
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* The `UDropdownBadge` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.dropdown-badge)
|
|
@@ -20,7 +20,7 @@ export default {
|
|
|
20
20
|
],
|
|
21
21
|
},
|
|
22
22
|
argTypes: {
|
|
23
|
-
...getArgTypes(UDropdownBadge.
|
|
23
|
+
...getArgTypes(UDropdownBadge.__name),
|
|
24
24
|
},
|
|
25
25
|
parameters: {
|
|
26
26
|
docs: {
|
|
@@ -34,7 +34,7 @@ export default {
|
|
|
34
34
|
const DefaultTemplate = (args) => ({
|
|
35
35
|
components: { UDropdownBadge, UIcon },
|
|
36
36
|
setup() {
|
|
37
|
-
const slots = getSlotNames(UDropdownBadge.
|
|
37
|
+
const slots = getSlotNames(UDropdownBadge.__name);
|
|
38
38
|
|
|
39
39
|
return { args, slots };
|
|
40
40
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import useUI from "
|
|
2
|
-
import { cva, cx } from "
|
|
1
|
+
import useUI from "../composables/useUI.js";
|
|
2
|
+
import { cva, cx } from "../utils/utilUI.js";
|
|
3
3
|
|
|
4
|
-
import defaultConfig from "
|
|
4
|
+
import defaultConfig from "./config.js";
|
|
5
5
|
import { computed } from "vue";
|
|
6
6
|
|
|
7
7
|
export default function useAttrs(props, { isShownOptions }) {
|
|
@@ -68,20 +68,19 @@
|
|
|
68
68
|
<script setup>
|
|
69
69
|
import { computed, provide, ref, watch } from "vue";
|
|
70
70
|
|
|
71
|
-
import UIcon from "../ui.image-icon";
|
|
72
|
-
import UButton from "../ui.button";
|
|
73
|
-
import UDropdownList from "../ui.dropdown-list";
|
|
71
|
+
import UIcon from "../ui.image-icon/UIcon.vue";
|
|
72
|
+
import UButton from "../ui.button/UButton.vue";
|
|
73
|
+
import UDropdownList from "../ui.dropdown-list/UDropdownList.vue";
|
|
74
74
|
|
|
75
|
-
import { getRandomId, getDefault } from "../
|
|
75
|
+
import { getRandomId, getDefault } from "../utils/utilUI.js";
|
|
76
76
|
|
|
77
|
-
import vClickOutside from "../
|
|
77
|
+
import vClickOutside from "../directives/vClickOutside.js";
|
|
78
78
|
|
|
79
|
-
import defaultConfig from "./
|
|
80
|
-
import useAttrs from "./
|
|
81
|
-
import { UDropdownButton, BUTTON_VARIANT } from "./constants";
|
|
79
|
+
import defaultConfig from "./config.js";
|
|
80
|
+
import useAttrs from "./useAttrs.js";
|
|
81
|
+
import { UDropdownButton, BUTTON_VARIANT } from "./constants.js";
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
defineOptions({ name: "UDropdownButton", inheritAttrs: false });
|
|
83
|
+
defineOptions({ inheritAttrs: false });
|
|
85
84
|
|
|
86
85
|
const props = defineProps({
|
|
87
86
|
/**
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/blocks";
|
|
2
|
+
import { getSource } from "../../utils/utilStorybook.js";
|
|
3
|
+
|
|
4
|
+
import * as stories from "./stories.js";
|
|
5
|
+
import defaultConfig from "../config.js?raw"
|
|
6
|
+
|
|
7
|
+
<Meta of={stories} />
|
|
8
|
+
<Title of={stories} />
|
|
9
|
+
<Subtitle of={stories} />
|
|
10
|
+
<Description of={stories} />
|
|
11
|
+
<Primary of={stories} />
|
|
12
|
+
<Controls of={stories.Default} />
|
|
13
|
+
<Stories of={stories} />
|
|
14
|
+
|
|
15
|
+
## Default config
|
|
16
|
+
<Source code={getSource(defaultConfig)} language="jsx" dark />
|