vueless 0.0.474 → 0.0.475
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.d.ts +289 -0
- package/adatper.locale/vue-i18n.d.ts +9 -0
- package/adatper.locale/vueless.d.ts +11 -0
- package/composables/useAutoPosition.d.ts +15 -0
- package/composables/useBreakpoint.d.ts +7 -0
- package/composables/useBreakpoint.js +1 -1
- package/composables/useLocale.d.ts +3 -0
- package/composables/useMutationObserver.d.ts +7 -0
- package/composables/useUI.d.ts +17 -0
- package/composablesTs/useAutoPosition.d.ts +28 -0
- package/composablesTs/useAutoPosition.ts +115 -0
- package/composablesTs/useBreakpoint.d.ts +7 -0
- package/composablesTs/useBreakpoint.ts +106 -0
- package/composablesTs/useLocale.d.ts +3 -0
- package/composablesTs/useLocale.ts +25 -0
- package/composablesTs/useMutationObserver.d.ts +8 -0
- package/composablesTs/useMutationObserver.ts +50 -0
- package/composablesTs/useUI.d.ts +68 -0
- package/composablesTs/useUI.ts +566 -0
- package/constants.d.ts +42 -0
- package/constants.js +1 -1
- package/constants.ts +73 -0
- package/directives/clickOutside/storybook/stories.d.ts +653 -0
- package/directives/clickOutside/vClickOutside.d.ts +6 -0
- package/directives/clickOutside/vClickOutside.js +2 -2
- package/directives/index.d.ts +2 -0
- package/directives/tooltip/storybook/stories.d.ts +252 -0
- package/directives/tooltip/storybook/stories.js +5 -5
- package/directives/tooltip/vTooltip.d.ts +6 -0
- package/index.d.ts +15 -0
- package/{index.js → index.ts} +9 -6
- package/package.json +28 -17
- package/preset.tailwind.d.ts +116 -0
- package/{preset.tailwind.js → preset.tailwind.ts} +30 -22
- package/types.d.ts +131 -0
- package/types.ts +218 -0
- package/ui.button/UButton.vue.d.ts +73 -0
- package/ui.button/config.d.ts +130 -0
- package/ui.button/constants.d.ts +1 -0
- package/ui.button/storybook/stories.d.ts +3062 -0
- package/ui.button/useAttrs.d.ts +11 -0
- package/ui.button-link/ULink.vue +1 -1
- package/ui.button-link/ULink.vue.d.ts +66 -0
- package/ui.button-link/config.d.ts +101 -0
- package/ui.button-link/constants.d.ts +1 -0
- package/ui.button-link/storybook/stories.d.ts +4567 -0
- package/ui.button-link/useAttrs.d.ts +14 -0
- package/ui.button-toggle/UToggle.vue.d.ts +50 -0
- package/ui.button-toggle/config.d.ts +65 -0
- package/ui.button-toggle/constants.d.ts +3 -0
- package/ui.button-toggle/storybook/stories.d.ts +2683 -0
- package/ui.button-toggle/useAttrs.d.ts +11 -0
- package/ui.button-toggle-item/UToggleItem.vue.d.ts +36 -0
- package/ui.button-toggle-item/config.d.ts +41 -0
- package/ui.button-toggle-item/constants.d.ts +1 -0
- package/ui.button-toggle-item/storybook/stories.d.ts +495 -0
- package/ui.button-toggle-item/useAttrs.d.ts +15 -0
- package/ui.container-accordion/UAccordion.vue.d.ts +32 -0
- package/ui.container-accordion/config.d.ts +40 -0
- package/ui.container-accordion/constants.d.ts +1 -0
- package/ui.container-accordion/storybook/stories.d.ts +732 -0
- package/ui.container-accordion/useAttrs.d.ts +13 -0
- package/ui.container-card/UCard.vue.d.ts +31 -0
- package/ui.container-card/config.d.ts +13 -0
- package/ui.container-card/constants.d.ts +1 -0
- package/ui.container-card/storybook/stories.d.ts +3906 -0
- package/ui.container-card/useAttrs.d.ts +11 -0
- package/ui.container-col/UCol.vue.d.ts +33 -0
- package/ui.container-col/config.d.ts +81 -0
- package/ui.container-col/constants.d.ts +1 -0
- package/ui.container-col/storybook/stories.d.ts +840 -0
- package/ui.container-col/useAttrs.d.ts +11 -0
- package/ui.container-divider/UDivider.vue.d.ts +25 -0
- package/ui.container-divider/config.d.ts +102 -0
- package/ui.container-divider/constants.d.ts +1 -0
- package/ui.container-divider/storybook/stories.d.ts +577 -0
- package/ui.container-divider/useAttrs.d.ts +11 -0
- package/ui.container-group/UGroup.vue.d.ts +33 -0
- package/ui.container-group/config.d.ts +38 -0
- package/ui.container-group/constants.d.ts +1 -0
- package/ui.container-group/storybook/stories.d.ts +2869 -0
- package/ui.container-group/useAttrs.d.ts +11 -0
- package/ui.container-modal/UModal.vue.d.ts +59 -0
- package/ui.container-modal/config.d.ts +77 -0
- package/ui.container-modal/constants.d.ts +1 -0
- package/ui.container-modal/storybook/stories.d.ts +8377 -0
- package/ui.container-modal/useAttrs.d.ts +11 -0
- package/ui.container-modal-confirm/UModalConfirm.vue.d.ts +59 -0
- package/ui.container-modal-confirm/config.d.ts +23 -0
- package/ui.container-modal-confirm/constants.d.ts +1 -0
- package/ui.container-modal-confirm/storybook/stories.d.ts +4494 -0
- package/ui.container-modal-confirm/useAttrs.d.ts +11 -0
- package/ui.container-page/UPage.vue.d.ts +47 -0
- package/ui.container-page/config.d.ts +85 -0
- package/ui.container-page/constants.d.ts +1 -0
- package/ui.container-page/storybook/stories.d.ts +8723 -0
- package/ui.container-page/useAttrs.d.ts +13 -0
- package/ui.container-row/URow.vue.d.ts +35 -0
- package/ui.container-row/config.d.ts +85 -0
- package/ui.container-row/constants.d.ts +1 -0
- package/ui.container-row/storybook/stories.d.ts +2619 -0
- package/ui.container-row/useAttrs.d.ts +11 -0
- package/ui.data-list/UDataList.vue +4 -4
- package/ui.data-list/UDataList.vue.d.ts +74 -0
- package/ui.data-list/config.d.ts +48 -0
- package/ui.data-list/constants.d.ts +1 -0
- package/ui.data-list/storybook/stories.d.ts +3342 -0
- package/ui.data-list/useAttrs.d.ts +11 -0
- package/ui.data-table/UTable.vue.d.ts +90 -0
- package/ui.data-table/UTableRow.vue.d.ts +61 -0
- package/ui.data-table/config.d.ts +128 -0
- package/ui.data-table/constants.d.ts +1 -0
- package/ui.data-table/storybook/stories.d.ts +13069 -0
- package/ui.data-table/useAttrs.d.ts +17 -0
- package/ui.data-table/utilTable.d.ts +9 -0
- package/ui.dropdown-badge/UDropdownBadge.vue.d.ts +145 -0
- package/ui.dropdown-badge/config.d.ts +39 -0
- package/ui.dropdown-badge/constants.d.ts +1 -0
- package/ui.dropdown-badge/storybook/stories.d.ts +1246 -0
- package/ui.dropdown-badge/useAttrs.d.ts +13 -0
- package/ui.dropdown-button/UDropdownButton.vue.d.ts +151 -0
- package/ui.dropdown-button/config.d.ts +52 -0
- package/ui.dropdown-button/constants.d.ts +4 -0
- package/ui.dropdown-button/storybook/stories.d.ts +1912 -0
- package/ui.dropdown-button/useAttrs.d.ts +13 -0
- package/ui.dropdown-link/UDropdownLink.vue.d.ts +149 -0
- package/ui.dropdown-link/config.d.ts +37 -0
- package/ui.dropdown-link/constants.d.ts +1 -0
- package/ui.dropdown-link/storybook/stories.d.ts +1333 -0
- package/ui.dropdown-link/useAttrs.d.ts +13 -0
- package/ui.dropdown-list/UDropdownList.vue.d.ts +59 -0
- package/ui.dropdown-list/config.d.ts +77 -0
- package/ui.dropdown-list/constants.d.ts +1 -0
- package/ui.dropdown-list/storybook/stories.d.ts +783 -0
- package/ui.dropdown-list/useAttrs.d.ts +11 -0
- package/ui.dropdown-list/usePointer.d.ts +8 -0
- package/ui.form-calendar/UCalendar.vue.d.ts +31 -0
- package/ui.form-calendar/UCalendarDayView.vue.d.ts +26 -0
- package/ui.form-calendar/UCalendarMonthView.vue.d.ts +26 -0
- package/ui.form-calendar/UCalendarYearView.vue.d.ts +26 -0
- package/ui.form-calendar/config.d.ts +207 -0
- package/ui.form-calendar/constants.d.ts +66 -0
- package/ui.form-calendar/storybook/stories.d.ts +262 -0
- package/ui.form-calendar/useAttrs.d.ts +11 -0
- package/ui.form-calendar/utilCalendar.d.ts +8 -0
- package/ui.form-calendar/utilDate.d.ts +30 -0
- package/ui.form-calendar/utilFormatting.d.ts +68 -0
- package/ui.form-checkbox/UCheckbox.vue.d.ts +50 -0
- package/ui.form-checkbox/config.d.ts +67 -0
- package/ui.form-checkbox/constants.d.ts +1 -0
- package/ui.form-checkbox/storybook/stories.d.ts +1589 -0
- package/ui.form-checkbox/useAttrs.d.ts +14 -0
- package/ui.form-checkbox-group/UCheckboxGroup.vue.d.ts +40 -0
- package/ui.form-checkbox-group/config.d.ts +21 -0
- package/ui.form-checkbox-group/constants.d.ts +1 -0
- package/ui.form-checkbox-group/storybook/stories.d.ts +2441 -0
- package/ui.form-checkbox-group/useAttrs.d.ts +11 -0
- package/ui.form-checkbox-multi-state/UCheckboxMultiState.vue.d.ts +24 -0
- package/ui.form-checkbox-multi-state/config.d.ts +10 -0
- package/ui.form-checkbox-multi-state/constants.d.ts +1 -0
- package/ui.form-checkbox-multi-state/storybook/stories.d.ts +187 -0
- package/ui.form-checkbox-multi-state/useAttrs.d.ts +13 -0
- package/ui.form-color-picker/UColorPicker.vue.d.ts +28 -0
- package/ui.form-color-picker/config.d.ts +42 -0
- package/ui.form-color-picker/constants.d.ts +1 -0
- package/ui.form-color-picker/storybook/stories.d.ts +316 -0
- package/ui.form-color-picker/useAttrs.d.ts +11 -0
- package/ui.form-date-picker/UDatePicker.vue.d.ts +135 -0
- package/ui.form-date-picker/config.d.ts +184 -0
- package/ui.form-date-picker/constants.d.ts +1 -0
- package/ui.form-date-picker/index.d.ts +1 -0
- package/ui.form-date-picker/storybook/stories.d.ts +3242 -0
- package/ui.form-date-picker/useAttrs.d.ts +14 -0
- package/ui.form-date-picker-range/UDatePickerRange.vue.d.ts +545 -0
- package/ui.form-date-picker-range/UDatePickerRangeInputs.vue.d.ts +6 -0
- package/ui.form-date-picker-range/UDatePickerRangePeriodMenu.vue.d.ts +7 -0
- package/ui.form-date-picker-range/config.d.ts +265 -0
- package/ui.form-date-picker-range/constants.d.ts +20 -0
- package/ui.form-date-picker-range/storybook/stories.d.ts +5545 -0
- package/ui.form-date-picker-range/useAttrs.d.ts +17 -0
- package/ui.form-date-picker-range/useUserFormat.d.ts +3 -0
- package/ui.form-date-picker-range/utilDateRange.d.ts +20 -0
- package/ui.form-date-picker-range/utilValidation.d.ts +3 -0
- package/ui.form-input/UInput.vue +1 -1
- package/ui.form-input/UInput.vue.d.ts +59 -0
- package/ui.form-input/config.d.ts +59 -0
- package/ui.form-input/constants.d.ts +1 -0
- package/ui.form-input/storybook/stories.d.ts +5734 -0
- package/ui.form-input/useAttrs.d.ts +11 -0
- package/ui.form-input-file/UInputFile.vue.d.ts +57 -0
- package/ui.form-input-file/config.d.ts +94 -0
- package/ui.form-input-file/constants.d.ts +1 -0
- package/ui.form-input-file/storybook/stories.d.ts +1116 -0
- package/ui.form-input-file/useAttrs.d.ts +11 -0
- package/ui.form-input-file/utilFileForm.d.ts +1 -0
- package/ui.form-input-money/UInputMoney.vue.d.ts +183 -0
- package/ui.form-input-money/config.d.ts +17 -0
- package/ui.form-input-money/constants.d.ts +1 -0
- package/ui.form-input-money/storybook/stories.d.ts +7519 -0
- package/ui.form-input-money/useAttrs.d.ts +11 -0
- package/ui.form-input-money/useFormatCurrency.d.ts +5 -0
- package/ui.form-input-money/useFormatCurrency.js +1 -1
- package/ui.form-input-money/utilFormat.d.ts +7 -0
- package/ui.form-input-number/UInputNumber.vue +4 -3
- package/ui.form-input-number/UInputNumber.vue.d.ts +30 -0
- package/ui.form-input-number/config.d.ts +40 -0
- package/ui.form-input-number/constants.d.ts +1 -0
- package/ui.form-input-number/storybook/stories.d.ts +363 -0
- package/ui.form-input-number/useAttrs.d.ts +11 -0
- package/ui.form-input-rating/UInputRating.vue.d.ts +49 -0
- package/ui.form-input-rating/config.d.ts +56 -0
- package/ui.form-input-rating/constants.d.ts +1 -0
- package/ui.form-input-rating/storybook/stories.d.ts +1336 -0
- package/ui.form-input-rating/useAttrs.d.ts +11 -0
- package/ui.form-input-search/UInputSearch.vue.d.ts +177 -0
- package/ui.form-input-search/config.d.ts +21 -0
- package/ui.form-input-search/constants.d.ts +1 -0
- package/ui.form-input-search/storybook/stories.d.ts +3325 -0
- package/ui.form-input-search/useAttrs.d.ts +11 -0
- package/ui.form-label/ULabel.vue.d.ts +46 -0
- package/ui.form-label/config.d.ts +139 -0
- package/ui.form-label/config.js +2 -2
- package/ui.form-label/constants.d.ts +8 -0
- package/ui.form-label/storybook/stories.d.ts +1133 -0
- package/ui.form-label/useAttrs.d.ts +11 -0
- package/ui.form-radio/URadio.vue.d.ts +46 -0
- package/ui.form-radio/config.d.ts +30 -0
- package/ui.form-radio/constants.d.ts +1 -0
- package/ui.form-radio/storybook/stories.d.ts +1270 -0
- package/ui.form-radio/useAttrs.d.ts +14 -0
- package/ui.form-radio-group/URadioGroup.vue.d.ts +40 -0
- package/ui.form-radio-group/config.d.ts +21 -0
- package/ui.form-radio-group/constants.d.ts +1 -0
- package/ui.form-radio-group/storybook/stories.d.ts +1239 -0
- package/ui.form-radio-group/useAttrs.d.ts +11 -0
- package/ui.form-select/USelect.vue.d.ts +405 -0
- package/ui.form-select/config.d.ts +146 -0
- package/ui.form-select/constants.d.ts +13 -0
- package/ui.form-select/storybook/stories.d.ts +19025 -0
- package/ui.form-select/useAttrs.d.ts +15 -0
- package/ui.form-select/utilSelect.d.ts +11 -0
- package/ui.form-switch/USwitch.vue.d.ts +30 -0
- package/ui.form-switch/config.d.ts +106 -0
- package/ui.form-switch/constants.d.ts +1 -0
- package/ui.form-switch/storybook/stories.d.ts +703 -0
- package/ui.form-switch/useAttrs.d.ts +13 -0
- package/ui.form-switch/utilVariant.d.ts +169 -0
- package/ui.form-textarea/UTextarea.vue.d.ts +132 -0
- package/ui.form-textarea/config.d.ts +55 -0
- package/ui.form-textarea/constants.d.ts +1 -0
- package/ui.form-textarea/storybook/stories.d.ts +2175 -0
- package/ui.form-textarea/useAttrs.d.ts +11 -0
- package/ui.image-avatar/UAvatar.vue.d.ts +40 -0
- package/ui.image-avatar/config.d.ts +51 -0
- package/ui.image-avatar/constants.d.ts +1 -0
- package/ui.image-avatar/storybook/stories.d.ts +1640 -0
- package/ui.image-avatar/useAttrs.d.ts +11 -0
- package/ui.image-icon/UIcon.vue.d.ts +28 -0
- package/ui.image-icon/config.d.ts +52 -0
- package/ui.image-icon/constants.d.ts +1 -0
- package/ui.image-icon/storybook/stories.d.ts +516 -0
- package/ui.image-icon/useAttrs.d.ts +11 -0
- package/ui.loader/ULoader.vue.d.ts +23 -0
- package/ui.loader/config.d.ts +49 -0
- package/ui.loader/constants.d.ts +2 -0
- package/ui.loader/storybook/stories.d.ts +655 -0
- package/ui.loader/useAttrs.d.ts +11 -0
- package/ui.loader-overlay/ULoaderOverlay.vue.d.ts +21 -0
- package/ui.loader-overlay/config.d.ts +25 -0
- package/ui.loader-overlay/constants.d.ts +1 -0
- package/ui.loader-overlay/storybook/stories.d.ts +362 -0
- package/ui.loader-overlay/useAttrs.d.ts +11 -0
- package/ui.loader-overlay/useLoaderOverlay.d.ts +10 -0
- package/ui.loader-overlay/utilLoaderOverlay.d.ts +2 -0
- package/ui.loader-progress/ULoaderProgress.vue.d.ts +11 -0
- package/ui.loader-progress/config.d.ts +24 -0
- package/ui.loader-progress/constants.d.ts +3 -0
- package/ui.loader-progress/storybook/stories.d.ts +742 -0
- package/ui.loader-progress/useAttrs.d.ts +11 -0
- package/ui.loader-progress/useLoaderProgress.d.ts +15 -0
- package/ui.loader-progress/utilLoaderProgress.d.ts +5 -0
- package/ui.navigation-pagination/UPagination.vue.d.ts +54 -0
- package/ui.navigation-pagination/config.d.ts +41 -0
- package/ui.navigation-pagination/constants.d.ts +1 -0
- package/ui.navigation-pagination/storybook/stories.d.ts +1033 -0
- package/ui.navigation-pagination/useAttrs.d.ts +11 -0
- package/ui.navigation-progress/StepperProgress.vue.d.ts +15 -0
- package/ui.navigation-progress/UProgress.vue.d.ts +41 -0
- package/ui.navigation-progress/config.d.ts +139 -0
- package/ui.navigation-progress/constants.d.ts +5 -0
- package/ui.navigation-progress/storybook/stories.d.ts +2827 -0
- package/ui.navigation-progress/useAttrs.d.ts +11 -0
- package/ui.navigation-tab/UTab.vue.d.ts +27 -0
- package/ui.navigation-tab/config.d.ts +24 -0
- package/ui.navigation-tab/constants.d.ts +1 -0
- package/ui.navigation-tab/storybook/stories.d.ts +316 -0
- package/ui.navigation-tab/useAttrs.d.ts +14 -0
- package/ui.navigation-tabs/UTabs.vue.d.ts +30 -0
- package/ui.navigation-tabs/config.d.ts +24 -0
- package/ui.navigation-tabs/constants.d.ts +1 -0
- package/ui.navigation-tabs/storybook/stories.d.ts +354 -0
- package/ui.navigation-tabs/useAttrs.d.ts +11 -0
- package/ui.other-dot/UDot.vue.d.ts +13 -0
- package/ui.other-dot/config.d.ts +28 -0
- package/ui.other-dot/constants.d.ts +1 -0
- package/ui.other-dot/storybook/stories.d.ts +645 -0
- package/ui.other-dot/useAttrs.d.ts +11 -0
- package/ui.text-alert/UAlert.vue.d.ts +53 -0
- package/ui.text-alert/config.d.ts +75 -0
- package/ui.text-alert/constants.d.ts +1 -0
- package/ui.text-alert/storybook/stories.d.ts +4845 -0
- package/ui.text-alert/useAttrs.d.ts +11 -0
- package/ui.text-badge/UBadge.vue.d.ts +60 -0
- package/ui.text-badge/config.d.ts +102 -0
- package/ui.text-badge/constants.d.ts +1 -0
- package/ui.text-badge/storybook/stories.d.ts +1869 -0
- package/ui.text-badge/useAttrs.d.ts +11 -0
- package/ui.text-block/UText.vue +18 -62
- package/ui.text-block/UText.vue.d.ts +21 -0
- package/ui.text-block/config.d.ts +27 -0
- package/ui.text-block/constants.d.ts +1 -0
- package/ui.text-block/storybook/Docs.mdx +2 -2
- package/ui.text-block/storybook/stories.d.ts +12 -0
- package/ui.text-block/storybook/{stories.js → stories.ts} +12 -7
- package/ui.text-block/types.d.ts +9 -0
- package/ui.text-block/types.ts +33 -0
- package/ui.text-block/useAttrs.d.ts +3 -0
- package/ui.text-block/useAttrs.ts +18 -0
- package/ui.text-empty/UEmpty.vue.d.ts +29 -0
- package/ui.text-empty/config.d.ts +55 -0
- package/ui.text-empty/constants.d.ts +1 -0
- package/ui.text-empty/storybook/stories.d.ts +1212 -0
- package/ui.text-empty/useAttrs.d.ts +11 -0
- package/ui.text-file/UFile.vue +12 -14
- package/ui.text-file/UFile.vue.d.ts +57 -0
- package/ui.text-file/config.d.ts +42 -0
- package/ui.text-file/config.js +12 -2
- package/ui.text-file/constants.d.ts +1 -0
- package/ui.text-file/storybook/stories.d.ts +136 -0
- package/ui.text-file/useAttrs.d.ts +11 -0
- package/ui.text-files/UFiles.vue.d.ts +52 -0
- package/ui.text-files/config.d.ts +10 -0
- package/ui.text-files/config.js +1 -1
- package/ui.text-files/constants.d.ts +1 -0
- package/ui.text-files/storybook/stories.d.ts +131 -0
- package/ui.text-files/useAttrs.d.ts +11 -0
- package/ui.text-header/UHeader.vue.d.ts +33 -0
- package/ui.text-header/config.d.ts +54 -0
- package/ui.text-header/constants.d.ts +1 -0
- package/ui.text-header/storybook/stories.d.ts +694 -0
- package/ui.text-header/useAttrs.d.ts +11 -0
- package/ui.text-money/UMoney.vue.d.ts +48 -0
- package/ui.text-money/config.d.ts +77 -0
- package/ui.text-money/constants.d.ts +1 -0
- package/ui.text-money/storybook/stories.d.ts +2090 -0
- package/ui.text-money/useAttrs.d.ts +11 -0
- package/ui.text-money/utilMoney.d.ts +14 -0
- package/ui.text-money/utilMoney.js +2 -2
- package/ui.text-notify/UNotify.vue.d.ts +13 -0
- package/ui.text-notify/config.d.ts +58 -0
- package/ui.text-notify/constants.d.ts +20 -0
- package/ui.text-notify/storybook/stories.d.ts +653 -0
- package/ui.text-notify/useAttrs.d.ts +11 -0
- package/ui.text-notify/utilNotify.d.ts +7 -0
- package/utils/utilHelper.d.ts +9 -0
- package/utils/utilPlatform.d.ts +6 -0
- package/utils/utilStorybook.d.ts +15 -0
- package/utils/utilUI.d.ts +68 -0
- package/utilsTs/utilHelper.d.ts +9 -0
- package/utilsTs/utilHelper.ts +70 -0
- package/utilsTs/utilPlatform.d.ts +7 -0
- package/utilsTs/utilPlatform.ts +53 -0
- package/utilsTs/utilStorybook.d.ts +24 -0
- package/utilsTs/utilStorybook.ts +292 -0
- package/utilsTs/utilTailwind.d.ts +1 -0
- package/utilsTs/utilTailwind.ts +38 -0
- package/utilsTs/utilTheme.d.ts +8 -0
- package/{utils/utilTheme.js → utilsTs/utilTheme.ts} +31 -27
- package/utilsTs/utilUI.d.ts +67 -0
- package/utilsTs/utilUI.ts +142 -0
- package/web-types.json +30 -120
- package/ui.text-block/useAttrs.js +0 -15
- /package/ui.text-block/{config.js → config.ts} +0 -0
- /package/ui.text-block/{constants.js → constants.ts} +0 -0
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { vuelessConfig } from "./utilUI
|
|
4
|
-
import { isSSR, isCSR } from "./utilHelper.js";
|
|
1
|
+
import { fullTailwindConfig } from "./utilTailwind";
|
|
2
|
+
import { isSSR, isCSR } from "./utilHelper";
|
|
3
|
+
import { vuelessConfig } from "./utilUI";
|
|
5
4
|
import {
|
|
6
|
-
GRAY_COLOR,
|
|
7
|
-
COOL_COLOR,
|
|
8
5
|
BRAND_COLORS,
|
|
9
6
|
GRAYSCALE_COLOR,
|
|
10
7
|
DEFAULT_RING,
|
|
11
8
|
DEFAULT_RING_OFFSET,
|
|
12
|
-
DEFAULT_RING_OFFSET_COLOR_LIGHT,
|
|
13
|
-
DEFAULT_RING_OFFSET_COLOR_DARK,
|
|
14
9
|
DEFAULT_ROUNDING,
|
|
15
10
|
DEFAULT_BRAND_COLOR,
|
|
16
11
|
DEFAULT_GRAY_COLOR,
|
|
12
|
+
DEFAULT_RING_OFFSET_COLOR_LIGHT,
|
|
13
|
+
DEFAULT_RING_OFFSET_COLOR_DARK,
|
|
17
14
|
DARK_MODE_SELECTOR,
|
|
18
15
|
GRAY_COLORS,
|
|
19
16
|
PX_IN_REM,
|
|
20
|
-
} from "../constants
|
|
17
|
+
} from "../constants";
|
|
18
|
+
|
|
19
|
+
import type { ThemeConfig, GrayColors, BrandColors, VuelessCssVariables } from "../types";
|
|
20
|
+
|
|
21
|
+
interface InternalThemeConfig extends ThemeConfig {
|
|
22
|
+
systemDarkMode?: boolean;
|
|
23
|
+
}
|
|
21
24
|
|
|
22
25
|
export function themeInit() {
|
|
23
26
|
if (isSSR) return;
|
|
@@ -31,8 +34,12 @@ export function themeInit() {
|
|
|
31
34
|
);
|
|
32
35
|
}
|
|
33
36
|
|
|
34
|
-
export function setTheme(config = {}) {
|
|
37
|
+
export function setTheme(config: InternalThemeConfig = {}) {
|
|
35
38
|
const isDarkMode = setDarkMode(config);
|
|
39
|
+
const rounding = config?.rounding ?? vuelessConfig.rounding ?? DEFAULT_ROUNDING;
|
|
40
|
+
let brand: BrandColors | GrayColors = config?.brand ?? vuelessConfig.brand ?? DEFAULT_BRAND_COLOR;
|
|
41
|
+
const gray = config?.gray ?? vuelessConfig.gray ?? DEFAULT_GRAY_COLOR;
|
|
42
|
+
|
|
36
43
|
const ring = config?.ring ?? vuelessConfig.ring ?? DEFAULT_RING;
|
|
37
44
|
const ringOffset = config?.ringOffset ?? vuelessConfig.ringOffset ?? DEFAULT_RING_OFFSET;
|
|
38
45
|
|
|
@@ -46,10 +53,7 @@ export function setTheme(config = {}) {
|
|
|
46
53
|
vuelessConfig.ringOffsetColorLight ??
|
|
47
54
|
DEFAULT_RING_OFFSET_COLOR_LIGHT;
|
|
48
55
|
|
|
49
|
-
const
|
|
50
|
-
let brand = config?.brand ?? vuelessConfig.brand ?? DEFAULT_BRAND_COLOR;
|
|
51
|
-
let gray = config?.gray ?? vuelessConfig.gray ?? DEFAULT_GRAY_COLOR;
|
|
52
|
-
|
|
56
|
+
const colors = fullTailwindConfig.theme.colors;
|
|
53
57
|
const isBrandColor = BRAND_COLORS.some((color) => color === brand);
|
|
54
58
|
const isGrayColor = GRAY_COLORS.some((color) => color === gray);
|
|
55
59
|
|
|
@@ -69,29 +73,29 @@ export function setTheme(config = {}) {
|
|
|
69
73
|
? defaultRingOffsetColorDark
|
|
70
74
|
: defaultRingOffsetColorLight;
|
|
71
75
|
|
|
72
|
-
if (gray === COOL_COLOR) {
|
|
73
|
-
gray = GRAY_COLOR;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
76
|
if (brand === GRAYSCALE_COLOR) {
|
|
77
77
|
brand = gray;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
const variables = {
|
|
80
|
+
const variables: Partial<VuelessCssVariables> = {
|
|
81
|
+
"--vl-rounding": `${Number(rounding) / PX_IN_REM}rem`,
|
|
81
82
|
"--vl-ring": `${ring}px`,
|
|
82
83
|
"--vl-ring-offset": `${ringOffset}px`,
|
|
83
|
-
"--vl-ring-offset-color":
|
|
84
|
-
"--vl-rounding": `${Number(rounding) / PX_IN_REM}rem`,
|
|
84
|
+
"--vl-ring-offset-color": convertHexInRgb(defaultRingOffsetColor),
|
|
85
85
|
"--vl-color-gray-default": convertHexInRgb(colors[gray][defaultBrandShade]),
|
|
86
86
|
"--vl-color-brand-default": convertHexInRgb(colors[brand][defaultGrayShade]),
|
|
87
87
|
};
|
|
88
88
|
|
|
89
89
|
for (const key in colors[gray]) {
|
|
90
|
-
variables[`--vl-color-gray-${key}`] = convertHexInRgb(
|
|
90
|
+
variables[`--vl-color-gray-${key}` as keyof VuelessCssVariables] = convertHexInRgb(
|
|
91
|
+
colors[gray][key],
|
|
92
|
+
);
|
|
91
93
|
}
|
|
92
94
|
|
|
93
95
|
for (const key in colors[brand]) {
|
|
94
|
-
variables[`--vl-color-brand-${key}`] = convertHexInRgb(
|
|
96
|
+
variables[`--vl-color-brand-${key}` as keyof VuelessCssVariables] = convertHexInRgb(
|
|
97
|
+
colors[brand][key],
|
|
98
|
+
);
|
|
95
99
|
}
|
|
96
100
|
|
|
97
101
|
const stringVariables = Object.entries(variables)
|
|
@@ -110,14 +114,14 @@ export function setTheme(config = {}) {
|
|
|
110
114
|
return rootVariables;
|
|
111
115
|
}
|
|
112
116
|
|
|
113
|
-
function setDarkMode(config) {
|
|
117
|
+
function setDarkMode(config: InternalThemeConfig) {
|
|
114
118
|
config?.darkMode === undefined
|
|
115
119
|
? isCSR && localStorage.removeItem(DARK_MODE_SELECTOR)
|
|
116
|
-
: isCSR && localStorage.setItem(DARK_MODE_SELECTOR, Number(
|
|
120
|
+
: isCSR && localStorage.setItem(DARK_MODE_SELECTOR, Number(config?.darkMode).toString());
|
|
117
121
|
|
|
118
122
|
const storedDarkMode = isCSR ? localStorage.getItem(DARK_MODE_SELECTOR) : null;
|
|
119
123
|
|
|
120
|
-
|
|
124
|
+
const isDarkMode =
|
|
121
125
|
storedDarkMode !== null
|
|
122
126
|
? !!Number(storedDarkMode)
|
|
123
127
|
: !!(config?.darkMode ?? vuelessConfig.darkMode ?? config?.systemDarkMode);
|
|
@@ -129,7 +133,7 @@ function setDarkMode(config) {
|
|
|
129
133
|
return isDarkMode;
|
|
130
134
|
}
|
|
131
135
|
|
|
132
|
-
export function convertHexInRgb(hex) {
|
|
136
|
+
export function convertHexInRgb(hex: string) {
|
|
133
137
|
const color = hex.replace(/#/g, "");
|
|
134
138
|
|
|
135
139
|
let r, g, b;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { Config, ComponentNames, Component } from "../types";
|
|
2
|
+
export declare let vuelessConfig: Config;
|
|
3
|
+
export declare const cx: import("cva").CX, compose: import("cva").Compose, classVarianceAuthority: import("cva").CVA;
|
|
4
|
+
export declare const cva: ({ base, variants, compoundVariants, defaultVariants }: {
|
|
5
|
+
base?: string | undefined;
|
|
6
|
+
variants?: {} | undefined;
|
|
7
|
+
compoundVariants?: never[] | undefined;
|
|
8
|
+
defaultVariants?: {} | undefined;
|
|
9
|
+
}) => (props?: ({} & ({
|
|
10
|
+
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
} | null | undefined)[] | {
|
|
13
|
+
[x: string]: any;
|
|
14
|
+
} | null | undefined)[] | {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
} | null | undefined)[] | {
|
|
17
|
+
[x: string]: any;
|
|
18
|
+
} | null | undefined)[] | {
|
|
19
|
+
[x: string]: any;
|
|
20
|
+
} | null | undefined)[] | {
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
} | null | undefined)[] | {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
} | null | undefined)[] | {
|
|
25
|
+
[x: string]: any;
|
|
26
|
+
} | null | undefined)[] | {
|
|
27
|
+
[x: string]: any;
|
|
28
|
+
} | null | undefined)[] | {
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
} | null | undefined)[] | {
|
|
31
|
+
[x: string]: any;
|
|
32
|
+
} | null | undefined)[] | {
|
|
33
|
+
[x: string]: any;
|
|
34
|
+
} | null | undefined;
|
|
35
|
+
className?: never;
|
|
36
|
+
} | {
|
|
37
|
+
class?: never;
|
|
38
|
+
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
39
|
+
[x: string]: any;
|
|
40
|
+
} | null | undefined)[] | {
|
|
41
|
+
[x: string]: any;
|
|
42
|
+
} | null | undefined)[] | {
|
|
43
|
+
[x: string]: any;
|
|
44
|
+
} | null | undefined)[] | {
|
|
45
|
+
[x: string]: any;
|
|
46
|
+
} | null | undefined)[] | {
|
|
47
|
+
[x: string]: any;
|
|
48
|
+
} | null | undefined)[] | {
|
|
49
|
+
[x: string]: any;
|
|
50
|
+
} | null | undefined)[] | {
|
|
51
|
+
[x: string]: any;
|
|
52
|
+
} | null | undefined)[] | {
|
|
53
|
+
[x: string]: any;
|
|
54
|
+
} | null | undefined)[] | {
|
|
55
|
+
[x: string]: any;
|
|
56
|
+
} | null | undefined)[] | {
|
|
57
|
+
[x: string]: any;
|
|
58
|
+
} | null | undefined)[] | {
|
|
59
|
+
[x: string]: any;
|
|
60
|
+
} | null | undefined)[] | {
|
|
61
|
+
[x: string]: any;
|
|
62
|
+
} | null | undefined;
|
|
63
|
+
})) | undefined) => string;
|
|
64
|
+
export declare function getDefault(defaultConfig: Component, name: ComponentNames): Component;
|
|
65
|
+
export declare function getColor(color: string): string;
|
|
66
|
+
export declare function setColor(classes: string, color: string): string;
|
|
67
|
+
export declare function getRandomId(length?: number): string;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { merge } from "lodash-es";
|
|
2
|
+
import { defineConfig } from "cva";
|
|
3
|
+
import { extendTailwindMerge } from "tailwind-merge";
|
|
4
|
+
import { cloneDeep, isCSR, isSSR } from "./utilHelper.js";
|
|
5
|
+
import {
|
|
6
|
+
BRAND_COLOR,
|
|
7
|
+
GRAYSCALE_COLOR,
|
|
8
|
+
DEFAULT_BRAND_COLOR,
|
|
9
|
+
NESTED_COMPONENT_REG_EXP,
|
|
10
|
+
} from "../constants.js";
|
|
11
|
+
|
|
12
|
+
import type { BrandColors, Config, ComponentNames, Component } from "../types";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Load Vueless config from the project root.
|
|
16
|
+
* Both for server and client side renderings.
|
|
17
|
+
* IIFE for SSR is used to prevent top level await issue.
|
|
18
|
+
*/
|
|
19
|
+
export let vuelessConfig: Config = {};
|
|
20
|
+
|
|
21
|
+
if (isSSR) {
|
|
22
|
+
/* Load Vueless config from the project root in IIFE (no top-level await). */
|
|
23
|
+
(async () => {
|
|
24
|
+
try {
|
|
25
|
+
const filePath = `${process.cwd()}/vueless.config`;
|
|
26
|
+
|
|
27
|
+
vuelessConfig = (await import(/* @vite-ignore */ `${filePath}.js`)).default;
|
|
28
|
+
|
|
29
|
+
if (!vuelessConfig) {
|
|
30
|
+
vuelessConfig = (await import(/* @vite-ignore */ `${filePath}.ts`)).default;
|
|
31
|
+
}
|
|
32
|
+
} catch {
|
|
33
|
+
vuelessConfig = {};
|
|
34
|
+
}
|
|
35
|
+
})();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (isCSR) {
|
|
39
|
+
vuelessConfig =
|
|
40
|
+
Object.values(
|
|
41
|
+
import.meta.glob("/vueless.config.{js,ts}", { eager: true, import: "default" }),
|
|
42
|
+
)[0] || {};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Extend twMerge (tailwind merge) by vueless and user config:
|
|
47
|
+
* All list of rules available here:
|
|
48
|
+
* https://github.com/dcastil/tailwind-merge/blob/v2.3.0/src/lib/default-config.ts
|
|
49
|
+
*/
|
|
50
|
+
const twMerge = extendTailwindMerge(
|
|
51
|
+
merge(
|
|
52
|
+
{
|
|
53
|
+
extend: {
|
|
54
|
+
theme: {
|
|
55
|
+
spacing: ["safe-top", "safe-bottom", "safe-left", "safe-right"],
|
|
56
|
+
},
|
|
57
|
+
classGroups: {
|
|
58
|
+
"ring-w": [{ ring: ["dynamic"] }],
|
|
59
|
+
"ring-offset-w": [{ "ring-offset": ["dynamic"] }],
|
|
60
|
+
"ring-offset-color": [{ "ring-offset": ["dynamic"] }],
|
|
61
|
+
"font-size": [{ text: ["2xs"] }],
|
|
62
|
+
rounded: [{ rounded: ["dynamic"] }],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
vuelessConfig.tailwindMerge,
|
|
67
|
+
),
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Export cva (class variance authority) methods:
|
|
72
|
+
* – extended with tailwind-merge
|
|
73
|
+
* – remove all Vueless nested component names ({U...} strings) from class list string.
|
|
74
|
+
* Learn more here: https://beta.cva.style
|
|
75
|
+
*/
|
|
76
|
+
export const {
|
|
77
|
+
cx,
|
|
78
|
+
compose,
|
|
79
|
+
cva: classVarianceAuthority,
|
|
80
|
+
} = defineConfig({
|
|
81
|
+
hooks: {
|
|
82
|
+
onComplete: (classNames) => twMerge(classNames).replace(NESTED_COMPONENT_REG_EXP, ""),
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
/* This allows skipping some CVA config keys in vueless config. */
|
|
87
|
+
export const cva = ({ base = "", variants = {}, compoundVariants = [], defaultVariants = {} }) =>
|
|
88
|
+
classVarianceAuthority({
|
|
89
|
+
base,
|
|
90
|
+
variants,
|
|
91
|
+
compoundVariants,
|
|
92
|
+
defaultVariants,
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Return default values for component props, icons, etc..
|
|
97
|
+
*/
|
|
98
|
+
export function getDefault(defaultConfig: Component, name: ComponentNames) {
|
|
99
|
+
const defaults = merge(
|
|
100
|
+
cloneDeep(defaultConfig.defaults),
|
|
101
|
+
vuelessConfig.component ? vuelessConfig.component[name]?.defaults : {},
|
|
102
|
+
) as Component;
|
|
103
|
+
|
|
104
|
+
if (defaults.color) {
|
|
105
|
+
defaults.color = getColor(defaults.color as BrandColors);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return defaults;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Return `grayscale` color if in component config it `brand` but in vueless config it `grayscale`
|
|
113
|
+
* Otherwise return given color.
|
|
114
|
+
*/
|
|
115
|
+
export function getColor(color: string) {
|
|
116
|
+
return (vuelessConfig.brand ?? DEFAULT_BRAND_COLOR) === GRAYSCALE_COLOR && color === BRAND_COLOR
|
|
117
|
+
? GRAYSCALE_COLOR
|
|
118
|
+
: color;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Replace in tailwind classes `{color}` variable into given color.
|
|
123
|
+
*/
|
|
124
|
+
export function setColor(classes: string, color: string) {
|
|
125
|
+
return classes?.replace(/{color}/g, color);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Generates simple unique identifier.
|
|
130
|
+
*/
|
|
131
|
+
export function getRandomId(length = 15) {
|
|
132
|
+
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
133
|
+
const charactersLength = characters.length;
|
|
134
|
+
|
|
135
|
+
let id = "";
|
|
136
|
+
|
|
137
|
+
while (id.length < length) {
|
|
138
|
+
id += characters.charAt(Math.floor(Math.random() * charactersLength));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return id;
|
|
142
|
+
}
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "vueless",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.475",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -2575,7 +2575,6 @@
|
|
|
2575
2575
|
"description": "Use it add an icon before the date.",
|
|
2576
2576
|
"bindings": [
|
|
2577
2577
|
{
|
|
2578
|
-
"type": "string",
|
|
2579
2578
|
"name": "icon-name"
|
|
2580
2579
|
},
|
|
2581
2580
|
{
|
|
@@ -2589,11 +2588,9 @@
|
|
|
2589
2588
|
"description": "Use it add an icon after the date.",
|
|
2590
2589
|
"bindings": [
|
|
2591
2590
|
{
|
|
2592
|
-
"type": "string",
|
|
2593
2591
|
"name": "icon-name"
|
|
2594
2592
|
},
|
|
2595
2593
|
{
|
|
2596
|
-
"type": "string",
|
|
2597
2594
|
"name": "icon-size"
|
|
2598
2595
|
}
|
|
2599
2596
|
]
|
|
@@ -4073,15 +4070,6 @@
|
|
|
4073
4070
|
},
|
|
4074
4071
|
"default": "\"\""
|
|
4075
4072
|
},
|
|
4076
|
-
{
|
|
4077
|
-
"name": "removable",
|
|
4078
|
-
"description": "Show remove button.",
|
|
4079
|
-
"value": {
|
|
4080
|
-
"kind": "expression",
|
|
4081
|
-
"type": "boolean"
|
|
4082
|
-
},
|
|
4083
|
-
"default": "false"
|
|
4084
|
-
},
|
|
4085
4073
|
{
|
|
4086
4074
|
"name": "config",
|
|
4087
4075
|
"description": "Component config object.",
|
|
@@ -4101,20 +4089,6 @@
|
|
|
4101
4089
|
"default": "\"\""
|
|
4102
4090
|
}
|
|
4103
4091
|
],
|
|
4104
|
-
"events": [
|
|
4105
|
-
{
|
|
4106
|
-
"name": "remove",
|
|
4107
|
-
"description": "Triggers when remove button is clicked.",
|
|
4108
|
-
"properties": [
|
|
4109
|
-
{
|
|
4110
|
-
"type": [
|
|
4111
|
-
"string"
|
|
4112
|
-
],
|
|
4113
|
-
"name": "fileId"
|
|
4114
|
-
}
|
|
4115
|
-
]
|
|
4116
|
-
}
|
|
4117
|
-
],
|
|
4118
4092
|
"slots": [
|
|
4119
4093
|
{
|
|
4120
4094
|
"name": "left",
|
|
@@ -4198,15 +4172,6 @@
|
|
|
4198
4172
|
},
|
|
4199
4173
|
"default": "md"
|
|
4200
4174
|
},
|
|
4201
|
-
{
|
|
4202
|
-
"name": "removable",
|
|
4203
|
-
"description": "Show remove button for each file",
|
|
4204
|
-
"value": {
|
|
4205
|
-
"kind": "expression",
|
|
4206
|
-
"type": "boolean"
|
|
4207
|
-
},
|
|
4208
|
-
"default": "false"
|
|
4209
|
-
},
|
|
4210
4175
|
{
|
|
4211
4176
|
"name": "config",
|
|
4212
4177
|
"description": "Component config object.",
|
|
@@ -4226,20 +4191,6 @@
|
|
|
4226
4191
|
"default": "\"\""
|
|
4227
4192
|
}
|
|
4228
4193
|
],
|
|
4229
|
-
"events": [
|
|
4230
|
-
{
|
|
4231
|
-
"name": "remove",
|
|
4232
|
-
"description": "Triggers when remove button is clicked.",
|
|
4233
|
-
"properties": [
|
|
4234
|
-
{
|
|
4235
|
-
"type": [
|
|
4236
|
-
"string"
|
|
4237
|
-
],
|
|
4238
|
-
"name": "fileId"
|
|
4239
|
-
}
|
|
4240
|
-
]
|
|
4241
|
-
}
|
|
4242
|
-
],
|
|
4243
4194
|
"slots": [
|
|
4244
4195
|
{
|
|
4245
4196
|
"name": "default",
|
|
@@ -5016,15 +4967,6 @@
|
|
|
5016
4967
|
"name": "left",
|
|
5017
4968
|
"description": "Use it to add something before the placeholder."
|
|
5018
4969
|
},
|
|
5019
|
-
{
|
|
5020
|
-
"name": "right",
|
|
5021
|
-
"scoped": true,
|
|
5022
|
-
"bindings": [
|
|
5023
|
-
{
|
|
5024
|
-
"name": "file"
|
|
5025
|
-
}
|
|
5026
|
-
]
|
|
5027
|
-
},
|
|
5028
4970
|
{
|
|
5029
4971
|
"name": "bottom",
|
|
5030
4972
|
"description": "Use it to add something below the component content."
|
|
@@ -5351,7 +5293,7 @@
|
|
|
5351
5293
|
"kind": "expression",
|
|
5352
5294
|
"type": "'top' | 'topWithDesc' | 'left' | 'right'"
|
|
5353
5295
|
},
|
|
5354
|
-
"default": "
|
|
5296
|
+
"default": "getDefault(defaultConfig, UInputNumber).labelAlign"
|
|
5355
5297
|
},
|
|
5356
5298
|
{
|
|
5357
5299
|
"name": "description",
|
|
@@ -5387,7 +5329,7 @@
|
|
|
5387
5329
|
"kind": "expression",
|
|
5388
5330
|
"type": "boolean"
|
|
5389
5331
|
},
|
|
5390
|
-
"default": "
|
|
5332
|
+
"default": "getDefault(defaultConfig, UInputNumber).disabled"
|
|
5391
5333
|
},
|
|
5392
5334
|
{
|
|
5393
5335
|
"name": "config",
|
|
@@ -6303,15 +6245,6 @@
|
|
|
6303
6245
|
"type": "string|array"
|
|
6304
6246
|
},
|
|
6305
6247
|
"default": "\"\""
|
|
6306
|
-
},
|
|
6307
|
-
{
|
|
6308
|
-
"name": "loading",
|
|
6309
|
-
"description": "Loader state (shown / hidden).",
|
|
6310
|
-
"value": {
|
|
6311
|
-
"kind": "expression",
|
|
6312
|
-
"type": "boolean"
|
|
6313
|
-
},
|
|
6314
|
-
"default": "false"
|
|
6315
6248
|
}
|
|
6316
6249
|
],
|
|
6317
6250
|
"source": {
|
|
@@ -6745,7 +6678,7 @@
|
|
|
6745
6678
|
"description": "",
|
|
6746
6679
|
"attributes": [
|
|
6747
6680
|
{
|
|
6748
|
-
"name": "
|
|
6681
|
+
"name": "sum",
|
|
6749
6682
|
"description": "Money value.",
|
|
6750
6683
|
"value": {
|
|
6751
6684
|
"kind": "expression",
|
|
@@ -6808,17 +6741,8 @@
|
|
|
6808
6741
|
"default": "default"
|
|
6809
6742
|
},
|
|
6810
6743
|
{
|
|
6811
|
-
"name": "
|
|
6812
|
-
"description": "
|
|
6813
|
-
"value": {
|
|
6814
|
-
"kind": "expression",
|
|
6815
|
-
"type": "number"
|
|
6816
|
-
},
|
|
6817
|
-
"default": "0"
|
|
6818
|
-
},
|
|
6819
|
-
{
|
|
6820
|
-
"name": "maxFractionDigits",
|
|
6821
|
-
"description": "Maximal number of signs after the decimal separator (fractional part of a number).",
|
|
6744
|
+
"name": "decimalScale",
|
|
6745
|
+
"description": "Set the numeral decimal scale after the comma.",
|
|
6822
6746
|
"value": {
|
|
6823
6747
|
"kind": "expression",
|
|
6824
6748
|
"type": "number"
|
|
@@ -6835,22 +6759,22 @@
|
|
|
6835
6759
|
"default": ","
|
|
6836
6760
|
},
|
|
6837
6761
|
{
|
|
6838
|
-
"name": "
|
|
6839
|
-
"description": "
|
|
6762
|
+
"name": "align",
|
|
6763
|
+
"description": "Money align.",
|
|
6840
6764
|
"value": {
|
|
6841
6765
|
"kind": "expression",
|
|
6842
|
-
"type": "
|
|
6766
|
+
"type": "'right' | 'left'"
|
|
6843
6767
|
},
|
|
6844
|
-
"default": "
|
|
6768
|
+
"default": "left"
|
|
6845
6769
|
},
|
|
6846
6770
|
{
|
|
6847
|
-
"name": "
|
|
6848
|
-
"description": "
|
|
6771
|
+
"name": "integer",
|
|
6772
|
+
"description": "Make money sum integer.",
|
|
6849
6773
|
"value": {
|
|
6850
6774
|
"kind": "expression",
|
|
6851
|
-
"type": "
|
|
6775
|
+
"type": "boolean"
|
|
6852
6776
|
},
|
|
6853
|
-
"default": "
|
|
6777
|
+
"default": "false"
|
|
6854
6778
|
},
|
|
6855
6779
|
{
|
|
6856
6780
|
"name": "planned",
|
|
@@ -8554,15 +8478,6 @@
|
|
|
8554
8478
|
"type": "array"
|
|
8555
8479
|
}
|
|
8556
8480
|
},
|
|
8557
|
-
{
|
|
8558
|
-
"name": "emptyCellLabel",
|
|
8559
|
-
"description": "Label to display for empty cell values.",
|
|
8560
|
-
"value": {
|
|
8561
|
-
"kind": "expression",
|
|
8562
|
-
"type": "string"
|
|
8563
|
-
},
|
|
8564
|
-
"default": "—"
|
|
8565
|
-
},
|
|
8566
8481
|
{
|
|
8567
8482
|
"name": "dateDivider",
|
|
8568
8483
|
"description": "Show date divider line between dates.",
|
|
@@ -8609,13 +8524,13 @@
|
|
|
8609
8524
|
"default": "false"
|
|
8610
8525
|
},
|
|
8611
8526
|
{
|
|
8612
|
-
"name": "
|
|
8613
|
-
"description": "Set table loader
|
|
8527
|
+
"name": "resource",
|
|
8528
|
+
"description": "Set loader resource name to activate table progress loader exact for that resource (deprecated).",
|
|
8614
8529
|
"value": {
|
|
8615
8530
|
"kind": "expression",
|
|
8616
|
-
"type": "
|
|
8531
|
+
"type": "string"
|
|
8617
8532
|
},
|
|
8618
|
-
"default": "
|
|
8533
|
+
"default": "\"\""
|
|
8619
8534
|
},
|
|
8620
8535
|
{
|
|
8621
8536
|
"name": "config",
|
|
@@ -8826,15 +8741,6 @@
|
|
|
8826
8741
|
"type": "array"
|
|
8827
8742
|
}
|
|
8828
8743
|
},
|
|
8829
|
-
{
|
|
8830
|
-
"name": "emptyCellLabel",
|
|
8831
|
-
"required": true,
|
|
8832
|
-
"value": {
|
|
8833
|
-
"kind": "expression",
|
|
8834
|
-
"type": "string"
|
|
8835
|
-
},
|
|
8836
|
-
"default": "—"
|
|
8837
|
-
},
|
|
8838
8744
|
{
|
|
8839
8745
|
"name": "tag",
|
|
8840
8746
|
"value": {
|
|
@@ -9019,33 +8925,36 @@
|
|
|
9019
8925
|
"attributes": [
|
|
9020
8926
|
{
|
|
9021
8927
|
"name": "html",
|
|
9022
|
-
"
|
|
8928
|
+
"required": false,
|
|
8929
|
+
"description": "HTML markdown or plain text.",
|
|
9023
8930
|
"value": {
|
|
9024
8931
|
"kind": "expression",
|
|
9025
8932
|
"type": "string"
|
|
9026
|
-
}
|
|
9027
|
-
"default": "undefined"
|
|
8933
|
+
}
|
|
9028
8934
|
},
|
|
9029
8935
|
{
|
|
9030
8936
|
"name": "size",
|
|
8937
|
+
"required": false,
|
|
9031
8938
|
"description": "Text size.",
|
|
9032
8939
|
"value": {
|
|
9033
8940
|
"kind": "expression",
|
|
9034
|
-
"type": "
|
|
8941
|
+
"type": "union"
|
|
9035
8942
|
},
|
|
9036
8943
|
"default": "md"
|
|
9037
8944
|
},
|
|
9038
8945
|
{
|
|
9039
8946
|
"name": "align",
|
|
8947
|
+
"required": false,
|
|
9040
8948
|
"description": "Text align.",
|
|
9041
8949
|
"value": {
|
|
9042
8950
|
"kind": "expression",
|
|
9043
|
-
"type": "
|
|
8951
|
+
"type": "union"
|
|
9044
8952
|
},
|
|
9045
8953
|
"default": "left"
|
|
9046
8954
|
},
|
|
9047
8955
|
{
|
|
9048
8956
|
"name": "line",
|
|
8957
|
+
"required": false,
|
|
9049
8958
|
"description": "Remove line height (useful for 1-line text).",
|
|
9050
8959
|
"value": {
|
|
9051
8960
|
"kind": "expression",
|
|
@@ -9055,21 +8964,22 @@
|
|
|
9055
8964
|
},
|
|
9056
8965
|
{
|
|
9057
8966
|
"name": "config",
|
|
8967
|
+
"required": false,
|
|
9058
8968
|
"description": "Component config object.",
|
|
9059
8969
|
"value": {
|
|
9060
8970
|
"kind": "expression",
|
|
9061
8971
|
"type": "object"
|
|
9062
8972
|
},
|
|
9063
|
-
"default": "{}"
|
|
8973
|
+
"default": "() => ({})"
|
|
9064
8974
|
},
|
|
9065
8975
|
{
|
|
9066
8976
|
"name": "dataTest",
|
|
8977
|
+
"required": false,
|
|
9067
8978
|
"description": "Data-test attribute for automated testing.",
|
|
9068
8979
|
"value": {
|
|
9069
8980
|
"kind": "expression",
|
|
9070
8981
|
"type": "string"
|
|
9071
|
-
}
|
|
9072
|
-
"default": "\"\""
|
|
8982
|
+
}
|
|
9073
8983
|
}
|
|
9074
8984
|
],
|
|
9075
8985
|
"slots": [
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.js";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.js";
|
|
4
|
-
|
|
5
|
-
export default function useAttrs(props) {
|
|
6
|
-
const { config, getKeysAttrs, hasSlotContent } = useUI(defaultConfig, () => props.config);
|
|
7
|
-
|
|
8
|
-
const keysAttrs = getKeysAttrs();
|
|
9
|
-
|
|
10
|
-
return {
|
|
11
|
-
config,
|
|
12
|
-
...keysAttrs,
|
|
13
|
-
hasSlotContent,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
File without changes
|
|
File without changes
|