eco-vue-js 0.10.3 → 0.10.5
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/dist/assets/icons/default/IconAdd.svg.js +1 -1
- package/dist/assets/icons/default/IconArrow.svg.js +1 -1
- package/dist/assets/icons/default/IconAvatar.svg.js +1 -1
- package/dist/assets/icons/default/IconBack.svg.js +1 -1
- package/dist/assets/icons/default/IconCancel.svg.js +1 -1
- package/dist/assets/icons/default/IconCheck.svg.js +1 -1
- package/dist/assets/icons/default/IconDanger.svg.js +1 -1
- package/dist/assets/icons/default/IconDojo.svg.js +1 -1
- package/dist/assets/icons/default/IconEdit.svg.js +1 -1
- package/dist/assets/icons/default/IconFalsePositive.svg.js +1 -1
- package/dist/assets/icons/default/IconFeedback.svg.js +1 -1
- package/dist/assets/icons/default/IconFilter.svg.js +1 -1
- package/dist/assets/icons/default/IconInProgress.svg.js +1 -1
- package/dist/assets/icons/default/IconJira.svg.js +1 -1
- package/dist/assets/icons/default/IconLogout.svg.js +1 -1
- package/dist/assets/icons/default/IconMore.svg.js +1 -1
- package/dist/assets/icons/default/IconNotification.svg.js +1 -1
- package/dist/assets/icons/default/IconProfile.svg.js +1 -1
- package/dist/assets/icons/default/IconSearch.svg.js +1 -1
- package/dist/assets/icons/default/IconSettings.svg.js +1 -1
- package/dist/assets/icons/default/IconSort.svg.js +1 -1
- package/dist/assets/icons/default/IconStar.svg.js +1 -1
- package/dist/assets/icons/default/IconSuccess.svg.js +1 -1
- package/dist/assets/icons/default/IconTask.svg.js +1 -1
- package/dist/assets/icons/default/IconTime.svg.js +1 -1
- package/dist/assets/icons/default/IconWarn.svg.js +1 -1
- package/dist/assets/icons/sax/IconAdd.svg.js +1 -1
- package/dist/assets/icons/sax/IconAddCircle.svg.js +1 -1
- package/dist/assets/icons/sax/IconAddSquare.svg.js +1 -1
- package/dist/assets/icons/sax/IconAlarm.svg.js +1 -1
- package/dist/assets/icons/sax/IconArchiveBook.svg.js +1 -1
- package/dist/assets/icons/sax/IconCandle.svg.js +1 -1
- package/dist/assets/icons/sax/IconCelery.svg.js +1 -1
- package/dist/assets/icons/sax/IconChart.svg.js +1 -1
- package/dist/assets/icons/sax/IconCheckCircle.svg.js +1 -1
- package/dist/assets/icons/sax/IconClose.svg.js +1 -1
- package/dist/assets/icons/sax/IconCloseCircle.svg.js +1 -1
- package/dist/assets/icons/sax/IconCopy.svg.js +1 -1
- package/dist/assets/icons/sax/IconCopySuccess.svg.js +1 -1
- package/dist/assets/icons/sax/IconCopyright.svg.js +1 -1
- package/dist/assets/icons/sax/IconDedupe.svg.js +1 -1
- package/dist/assets/icons/sax/IconDojo.svg.js +1 -1
- package/dist/assets/icons/sax/IconDrag.svg.js +1 -1
- package/dist/assets/icons/sax/IconEdit.svg.js +1 -1
- package/dist/assets/icons/sax/IconEditCircle.svg.js +1 -1
- package/dist/assets/icons/sax/IconElement.svg.js +1 -1
- package/dist/assets/icons/sax/IconExport.svg.js +1 -1
- package/dist/assets/icons/sax/IconEye.svg.js +1 -1
- package/dist/assets/icons/sax/IconEyeSlash.svg.js +1 -1
- package/dist/assets/icons/sax/IconFilter.svg.js +1 -1
- package/dist/assets/icons/sax/IconFilterRemove.svg.js +1 -1
- package/dist/assets/icons/sax/IconFinding.svg.js +1 -1
- package/dist/assets/icons/sax/IconFolder.svg.js +1 -1
- package/dist/assets/icons/sax/IconFolderCross.svg.js +1 -1
- package/dist/assets/icons/sax/IconGrid.svg.js +24 -0
- package/dist/assets/icons/sax/IconJira.svg.js +1 -1
- package/dist/assets/icons/sax/IconKey.svg.js +1 -1
- package/dist/assets/icons/sax/IconKeySquare.svg.js +1 -1
- package/dist/assets/icons/sax/IconLayer.svg.js +1 -1
- package/dist/assets/icons/sax/IconLink.svg.js +1 -1
- package/dist/assets/icons/sax/IconLinkBold.svg.js +1 -1
- package/dist/assets/icons/sax/IconLinkOutline.svg.js +1 -1
- package/dist/assets/icons/sax/IconLogout.svg.js +1 -1
- package/dist/assets/icons/sax/IconMenu.svg.js +1 -1
- package/dist/assets/icons/sax/IconMinusCircle.svg.js +1 -1
- package/dist/assets/icons/sax/IconNegate.svg.js +1 -1
- package/dist/assets/icons/sax/IconNegativeInfo.svg.js +1 -1
- package/dist/assets/icons/sax/IconNote.svg.js +1 -1
- package/dist/assets/icons/sax/IconOutlineCheckCircle.svg.js +1 -1
- package/dist/assets/icons/sax/IconOutlineCloseCircle.svg.js +1 -1
- package/dist/assets/icons/sax/IconOutlineEdit.svg.js +1 -1
- package/dist/assets/icons/sax/IconOutlineFolderAdd.svg.js +1 -1
- package/dist/assets/icons/sax/IconOutlineRefresh.svg.js +1 -1
- package/dist/assets/icons/sax/IconOutlineStar.svg.js +1 -1
- package/dist/assets/icons/sax/IconPaste.svg.js +1 -1
- package/dist/assets/icons/sax/IconProfile.svg.js +1 -1
- package/dist/assets/icons/sax/IconRadar.svg.js +1 -1
- package/dist/assets/icons/sax/IconRefresh.svg.js +1 -1
- package/dist/assets/icons/sax/IconSearch.svg.js +1 -1
- package/dist/assets/icons/sax/IconSettings.svg.js +1 -1
- package/dist/assets/icons/sax/IconSlash.svg.js +1 -1
- package/dist/assets/icons/sax/IconStar.svg.js +1 -1
- package/dist/assets/icons/sax/IconSummary.svg.js +1 -1
- package/dist/assets/icons/sax/IconTable.svg.js +24 -0
- package/dist/assets/icons/sax/IconTableSettings.svg.js +1 -1
- package/dist/assets/icons/sax/IconTag.svg.js +1 -1
- package/dist/assets/icons/sax/IconTask.svg.js +1 -1
- package/dist/assets/icons/sax/IconTime.svg.js +1 -1
- package/dist/assets/icons/sax/IconTrash.svg.js +1 -1
- package/dist/assets/icons/sax/IconUser.svg.js +1 -1
- package/dist/assets/icons/sax/IconVersionControl.svg.js +1 -1
- package/dist/assets/icons/sax/IconWeight.svg.js +1 -1
- package/dist/components/ActionsBar/WActionsBar.vue.js +1 -1
- package/dist/components/BottomSheet/WBottomSheet.vue.js +1 -1
- package/dist/components/Button/WButton.vue.js +2 -2
- package/dist/components/Button/WButtonAction.vue.js +1 -1
- package/dist/components/Button/WButtonCopy.vue.js +1 -1
- package/dist/components/Button/WButtonDropdown.vue.js +8 -6
- package/dist/components/Button/WButtonGroup.vue.js +1 -1
- package/dist/components/Button/WButtonMore.vue.js +1 -1
- package/dist/components/Button/WButtonMoreItem.vue.js +1 -1
- package/dist/components/Button/WButtonSelection.vue.d.ts +1 -0
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelection.vue.js +18 -28
- package/dist/components/Button/WButtonSelectionAction.vue.d.ts +4 -2
- package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelectionAction.vue.js +8 -4
- package/dist/components/Checkbox/WCheckbox.vue.js +1 -1
- package/dist/components/Chip/WChip.vue.js +1 -1
- package/dist/components/ClickOutside/WClickOutside.vue.js +1 -1
- package/dist/components/Counter/WCounter.vue.js +1 -1
- package/dist/components/DatePicker/WDatePicker.vue.js +2 -2
- package/dist/components/DatePicker/WDatePickerSingle.vue.js +2 -2
- package/dist/components/DatePicker/components/CalendarDay.vue.js +1 -1
- package/dist/components/DatePicker/components/CalendarMonth.vue.js +1 -1
- package/dist/components/DatePicker/components/CalendarToggle.vue.js +1 -1
- package/dist/components/DatePicker/components/CalendarValue.vue.js +1 -1
- package/dist/components/DatePicker/components/CalendarWeek.vue.js +1 -1
- package/dist/components/Dropdown/WDropdown.vue.js +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +1 -1
- package/dist/components/Expansion/WExpansion.vue.js +1 -1
- package/dist/components/Expansion/WExpansionItem.vue.js +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +3 -1
- package/dist/components/FieldWrapper/components/FilterButton.vue.js +1 -1
- package/dist/components/FilePicker/WFilePicker.vue.js +1 -1
- package/dist/components/FilePicker/components/FilePickerItem.vue.js +1 -1
- package/dist/components/FilePicker/components/FilePickerSvg.vue.js +1 -1
- package/dist/components/FilterWrapper/WFilterWrapper.vue.js +1 -1
- package/dist/components/Form/WForm.vue.js +2 -2
- package/dist/components/Form/WFormValidator.vue.js +3 -1
- package/dist/components/Form/models/utils.js +2 -0
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +1 -1
- package/dist/components/FormAsync/WFormAsyncInput.vue.js +1 -1
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +1 -1
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +1 -1
- package/dist/components/FormAsync/WFormAsyncToggle.vue.js +1 -1
- package/dist/components/FormAsync/use/useFormAsync.js +2 -0
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +0 -3
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -1
- package/dist/components/HeaderBar/WHeaderBar.vue.js +6 -5
- package/dist/components/HeaderBar/use/useHeaderPadding.d.ts +5 -0
- package/dist/components/HeaderBar/use/useHeaderPadding.d.ts.map +1 -0
- package/dist/components/HeaderBar/use/useHeaderPadding.js +14 -0
- package/dist/components/ImageViewer/WImageViewer.vue.js +1 -1
- package/dist/components/ImageViewer/components/ImageModal.vue2.js +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +1 -5
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +7 -16
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts +2 -11
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +8 -11
- package/dist/components/InfiniteList/components/InfiniteListButton.vue.js +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +0 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +6 -10
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.js +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.js +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts +0 -1
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.js +2 -4
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.js +1 -1
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +1 -0
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts.map +1 -1
- package/dist/components/InfiniteList/use/useInfiniteListHeader.js +11 -6
- package/dist/components/InfoCard/WInfoCard.vue.js +1 -1
- package/dist/components/InfoCard/WInfoCardNegative.vue.js +1 -1
- package/dist/components/Input/WInput.vue.js +1 -1
- package/dist/components/Input/WInputAsync.vue.js +1 -1
- package/dist/components/Input/WInputDate.vue.js +1 -1
- package/dist/components/Input/WInputOptions.vue.js +1 -1
- package/dist/components/Input/WInputSuggest.vue.js +1 -1
- package/dist/components/Input/components/InputActions.vue.js +1 -1
- package/dist/components/Input/components/InputActionsButton.vue.js +1 -1
- package/dist/components/Link/WLink.vue.d.ts +0 -1
- package/dist/components/Link/WLink.vue.d.ts.map +1 -1
- package/dist/components/Link/WLink.vue.js +3 -12
- package/dist/components/Link/WLinkArrow.vue.js +1 -1
- package/dist/components/List/WList.vue.d.ts +9 -9
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/List/WList.vue.js +239 -193
- package/dist/components/List/WListCard.vue.d.ts +26 -22
- package/dist/components/List/WListCard.vue.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +77 -47
- package/dist/components/List/WListCardField.vue.d.ts.map +1 -1
- package/dist/components/List/WListCardField.vue.js +3 -4
- package/dist/components/List/WListHeader.vue.js +1 -1
- package/dist/components/List/WListHeaderItem.vue.d.ts.map +1 -1
- package/dist/components/List/WListHeaderItem.vue.js +21 -37
- package/dist/components/List/components/HeaderFieldNested.vue.js +2 -2
- package/dist/components/List/components/HeaderItemResizer.vue.js +1 -1
- package/dist/components/List/components/HeaderSettings.vue.d.ts +5 -1
- package/dist/components/List/components/HeaderSettings.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSettings.vue.js +94 -40
- package/dist/components/List/components/HeaderSettingsItem.vue.js +1 -1
- package/dist/components/List/components/HeaderSettingsModeButton.vue.d.ts +9 -0
- package/dist/components/List/components/HeaderSettingsModeButton.vue.d.ts.map +1 -0
- package/dist/components/List/components/HeaderSettingsModeButton.vue.js +23 -0
- package/dist/components/List/components/HeaderSettingsModeButton.vue2.js +5 -0
- package/dist/components/List/components/HeaderSort.vue.d.ts +32 -0
- package/dist/components/List/components/HeaderSort.vue.d.ts.map +1 -0
- package/dist/components/List/components/HeaderSort.vue.js +84 -0
- package/dist/components/List/components/HeaderSort.vue2.js +5 -0
- package/dist/components/List/components/HeaderSortItem.vue.d.ts +22 -0
- package/dist/components/List/components/HeaderSortItem.vue.d.ts.map +1 -0
- package/dist/components/List/components/HeaderSortItem.vue.js +67 -0
- package/dist/components/List/components/HeaderSortItem.vue2.js +5 -0
- package/dist/components/List/components/ListCardFieldNested.vue.d.ts +3 -1
- package/dist/components/List/components/ListCardFieldNested.vue.d.ts.map +1 -1
- package/dist/components/List/components/ListCardFieldNested.vue.js +11 -10
- package/dist/components/List/components/ListCardFieldNestedItem.vue.js +1 -1
- package/dist/components/List/types.d.ts +10 -3
- package/dist/components/List/types.d.ts.map +1 -1
- package/dist/components/List/types.js +4 -0
- package/dist/components/List/use/useListConfig.d.ts +24 -0
- package/dist/components/List/use/useListConfig.d.ts.map +1 -0
- package/dist/components/List/use/{useFieldConfigMap.js → useListConfig.js} +54 -13
- package/dist/components/List/use/useOrdering.d.ts +7 -0
- package/dist/components/List/use/useOrdering.d.ts.map +1 -0
- package/dist/components/List/use/useOrdering.js +36 -0
- package/dist/components/MenuItem/WMenuItem.vue.js +1 -1
- package/dist/components/Modal/WModal.vue.js +1 -1
- package/dist/components/Modal/WModalStepper.vue.js +5 -5
- package/dist/components/Modal/WModalWrapper.vue.js +1 -1
- package/dist/components/Modal/components/ModalCloseButton.vue.js +1 -1
- package/dist/components/Modal/modals/Confirm/ConfirmModal.vue2.js +1 -1
- package/dist/components/Nav/WNavBar.vue.js +1 -1
- package/dist/components/Nav/WNavItem.vue.js +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.js +3 -1
- package/dist/components/Nav/WNavItemTransition.vue.js +1 -1
- package/dist/components/Notify/WNotify.vue.js +1 -1
- package/dist/components/Notify/components/NotifyCard.vue.js +1 -1
- package/dist/components/NumberFormatter/WNumberFormatter.vue.js +1 -1
- package/dist/components/Page/WPage.vue.js +1 -1
- package/dist/components/Page/WPageNumerator.vue.js +1 -1
- package/dist/components/Page/WPageTitle.vue.js +1 -1
- package/dist/components/Progress/WProgress.vue.js +1 -1
- package/dist/components/Select/WSelect.vue.js +6 -6
- package/dist/components/Select/WSelectAsync.vue.js +5 -5
- package/dist/components/Select/WSelectAsyncList.vue.js +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue.js +1 -1
- package/dist/components/Select/WSelectSingle.vue.js +1 -1
- package/dist/components/Select/WSelectStringified.vue.js +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.js +1 -1
- package/dist/components/Select/components/SelectAsyncPrefix.vue.js +1 -1
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +1 -1
- package/dist/components/Select/components/SelectOption.vue.js +1 -1
- package/dist/components/Select/components/SelectOptionPrefix.vue.js +1 -1
- package/dist/components/Skeleton/WSkeleton.vue.js +1 -1
- package/dist/components/Spinner/WSpinner.vue.js +1 -1
- package/dist/components/Tabs/WTabs.vue.js +4 -2
- package/dist/components/Tabs/WTabsColumns.vue.js +1 -1
- package/dist/components/Tabs/components/TabItem.vue.js +1 -1
- package/dist/components/Tabs/components/TabTitleButton.vue.js +1 -1
- package/dist/components/Toggle/WToggle.vue.js +1 -1
- package/dist/components/Tooltip/WTooltip.vue.js +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.js +1 -1
- package/dist/components/Tooltip/components/TooltipContainer.vue.js +1 -1
- package/dist/types/global.d.ts +8 -0
- package/package.json +2 -2
- package/tailwind-base/index.ts +2 -0
- package/tailwind-base/plugins/container-queries.ts +92 -0
- package/tailwind-base/plugins/default.ts +25 -5
- package/dist/components/List/use/useFieldConfigMap.d.ts +0 -10
- package/dist/components/List/use/useFieldConfigMap.d.ts.map +0 -1
@@ -1,8 +1,8 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, ref,
|
1
|
+
import { defineComponent, useTemplateRef, ref, createBlock, openBlock, withCtx, createVNode, renderSlot, unref, createTextVNode, toDisplayString } from 'vue';
|
2
2
|
import _sfc_main$3 from '../Button/WButton.vue.js';
|
3
3
|
import _sfc_main$1 from './WModalWrapper.vue.js';
|
4
|
-
import _sfc_main$
|
5
|
-
import _sfc_main$
|
4
|
+
import _sfc_main$4 from '../Progress/WProgress.vue.js';
|
5
|
+
import _sfc_main$2 from '../Tabs/WTabs.vue.js';
|
6
6
|
import { SemanticType } from '../../utils/SemanticType.js';
|
7
7
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -37,7 +37,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
37
37
|
])
|
38
38
|
]),
|
39
39
|
subtitle: withCtx(() => [
|
40
|
-
createVNode(_sfc_main$
|
40
|
+
createVNode(_sfc_main$4, { "model-value": progress.value }, null, 8, ["model-value"])
|
41
41
|
]),
|
42
42
|
actions: withCtx(() => [
|
43
43
|
first.value ? (openBlock(), createBlock(_sfc_main$3, {
|
@@ -90,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
90
90
|
}, 8, ["semantic-type", "loading", "disabled"]))
|
91
91
|
]),
|
92
92
|
default: withCtx(() => [
|
93
|
-
createVNode(_sfc_main$
|
93
|
+
createVNode(_sfc_main$2, {
|
94
94
|
ref: "tabsStepper",
|
95
95
|
stepper: "",
|
96
96
|
"no-header": "",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent,
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, renderSlot } from 'vue';
|
2
2
|
|
3
3
|
const _hoisted_1 = { class: "bg-default dark:bg-default-dark sticky top-0 z-[1]" };
|
4
4
|
const _hoisted_2 = { class: "text-accent sm-not:text-xl flex items-center justify-center text-balance p-[var(--modal-wrapper-padding,2rem)] text-center text-2xl font-semibold" };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, onMounted,
|
1
|
+
import { defineComponent, useTemplateRef, onMounted, createElementBlock, openBlock } from 'vue';
|
2
2
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
4
|
__name: "ModalCloseButton",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref,
|
1
|
+
import { defineComponent, ref, createBlock, openBlock, withCtx, createElementVNode, toDisplayString, createVNode, createCommentVNode, withModifiers, unref, createTextVNode } from 'vue';
|
2
2
|
import _sfc_main$2 from '../../../Button/WButton.vue.js';
|
3
3
|
import _sfc_main$1 from '../../WModalWrapper.vue.js';
|
4
4
|
import { SemanticType } from '../../../../utils/SemanticType.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref,
|
1
|
+
import { defineComponent, ref, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, Transition, withCtx, createCommentVNode, withModifiers, normalizeClass, renderSlot, unref } from 'vue';
|
2
2
|
import IconMenu from '../../assets/icons/sax/IconMenu.svg.js';
|
3
3
|
import { isClientSide } from '../../utils/utils.js';
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, computed, watch, onBeforeUnmount,
|
1
|
+
import { defineComponent, computed, watch, onBeforeUnmount, createBlock, openBlock, unref, normalizeClass, withCtx, createVNode, createElementVNode, Transition, createElementBlock, createCommentVNode, renderSlot, resolveDynamicComponent, toDisplayString, createTextVNode } from 'vue';
|
2
2
|
import { useRoute, useRouter, RouterLink } from 'vue-router';
|
3
3
|
import _sfc_main$1 from '../Counter/WCounter.vue.js';
|
4
4
|
import WSkeleton from '../Skeleton/WSkeleton.vue.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, useSlots, computed, ref, reactive, watch, onBeforeUnmount,
|
1
|
+
import { defineComponent, useSlots, computed, ref, reactive, watch, onBeforeUnmount, createElementBlock, openBlock, createVNode, withCtx, unref, normalizeClass, renderSlot, Fragment, renderList, createBlock, resolveDynamicComponent } from 'vue';
|
2
2
|
import _sfc_main$2 from '../Expansion/WExpansion.vue.js';
|
3
3
|
import IconArrow from '../../assets/icons/default/IconArrow.svg.js';
|
4
4
|
import '../Button/WButtonAction.vue.js';
|
@@ -10,9 +10,11 @@ import '../Dropdown/utils/DropdownStyle.js';
|
|
10
10
|
import 'vue-router';
|
11
11
|
import '../../utils/Modal.js';
|
12
12
|
import '../Input/WInputSuggest.vue.js';
|
13
|
+
import '../HeaderBar/use/useHeaderPadding.js';
|
13
14
|
import '../Input/WInputDate.vue.js';
|
14
15
|
import '../Link/WLink.vue.js';
|
15
16
|
import '@tanstack/vue-query';
|
17
|
+
import '../List/use/useListConfig.js';
|
16
18
|
import _sfc_main$1 from './WNavItem.vue.js';
|
17
19
|
import WNavItemTransition from './WNavItemTransition.vue.js';
|
18
20
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref, onBeforeMount, onBeforeUnmount,
|
1
|
+
import { defineComponent, ref, onBeforeMount, onBeforeUnmount, createBlock, openBlock, TransitionGroup, withCtx, createElementBlock, Fragment, renderList } from 'vue';
|
2
2
|
import { initNotify } from '../../utils/Notify.js';
|
3
3
|
import _sfc_main$1 from './components/NotifyCard.vue.js';
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, ref, computed, watch,
|
1
|
+
import { defineComponent, useTemplateRef, ref, computed, watch, createElementBlock, openBlock, normalizeStyle, createElementVNode, withDirectives, createVNode, vShow, createBlock, createCommentVNode, unref, toDisplayString, createTextVNode, withCtx } from 'vue';
|
2
2
|
import { useRouter } from 'vue-router';
|
3
3
|
import _sfc_main$2 from '../../Button/WButton.vue.js';
|
4
4
|
import _sfc_main$1 from '../../Counter/WCounter.vue.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, computed,
|
1
|
+
import { defineComponent, computed, createBlock, openBlock, resolveDynamicComponent, withCtx, createTextVNode, createCommentVNode, toDisplayString } from 'vue';
|
2
2
|
import _sfc_main$1 from '../EmptyComponent/WEmptyComponent.vue.js';
|
3
3
|
import _sfc_main$2 from '../Tooltip/WTooltip.vue.js';
|
4
4
|
import { percentCompactFormatter, numberCompactFormatter, percentFormatter, numberFormatter } from '../../utils/utils.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, ref, watch, nextTick, resolveComponent,
|
1
|
+
import { defineComponent, useTemplateRef, ref, watch, nextTick, resolveComponent, createElementBlock, openBlock, Fragment, createElementVNode, createBlock, createCommentVNode, normalizeClass, createVNode, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent, toDisplayString, unref, createSlots, withCtx } from 'vue';
|
2
2
|
import { dateFormat } from '../../utils/dateTime.js';
|
3
3
|
import _sfc_main$1 from './WPageTitle.vue.js';
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent,
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, toDisplayString } from 'vue';
|
2
2
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
4
|
__name: "WPageTitle",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent,
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createElementVNode, normalizeStyle } from 'vue';
|
2
2
|
|
3
3
|
const _hoisted_1 = { class: "h-1 w-full bg-gray-200 dark:bg-gray-700" };
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { defineComponent, ref, useTemplateRef, computed, toRef, watch, nextTick,
|
1
|
+
import { defineComponent, ref, useTemplateRef, computed, toRef, watch, nextTick, createBlock, openBlock, mergeProps, unref, withModifiers, createSlots, withCtx, createElementBlock, createCommentVNode, createElementVNode, toDisplayString, Fragment, renderList, renderSlot, resolveDynamicComponent } from 'vue';
|
2
2
|
import _sfc_main$1 from '../Input/WInputSuggest.vue.js';
|
3
3
|
import { ApiError } from '../../utils/api.js';
|
4
4
|
import { getIsMobile } from '../../utils/mobile.js';
|
5
5
|
import { debounce } from '../../utils/utils.js';
|
6
|
-
import _sfc_main$
|
7
|
-
import _sfc_main$
|
6
|
+
import _sfc_main$2 from './components/SelectOption.vue.js';
|
7
|
+
import _sfc_main$3 from './components/SelectOptionPrefix.vue.js';
|
8
8
|
|
9
9
|
const _hoisted_1 = {
|
10
10
|
key: 0,
|
@@ -266,7 +266,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
266
266
|
}), createSlots({
|
267
267
|
prefix: withCtx(({ unclickable }) => [
|
268
268
|
(_ctx.hidePrefix ? unref(isMobile) ? unclickable || !focused.value : !isOpen.value : true) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(prefixList.value, (option, index) => {
|
269
|
-
return openBlock(), createBlock(_sfc_main$
|
269
|
+
return openBlock(), createBlock(_sfc_main$3, {
|
270
270
|
key: _ctx.valueGetter(option),
|
271
271
|
option,
|
272
272
|
"option-component": _ctx.optionComponent,
|
@@ -297,7 +297,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
297
297
|
createElementVNode("div", _hoisted_2, toDisplayString(!search.value && _ctx.emptyStub ? _ctx.emptyStub : "No match"), 1)
|
298
298
|
])) : createCommentVNode("", true),
|
299
299
|
(openBlock(true), createElementBlock(Fragment, null, renderList(optionsFiltered.value, (option, index) => {
|
300
|
-
return openBlock(), createBlock(_sfc_main$
|
300
|
+
return openBlock(), createBlock(_sfc_main$2, {
|
301
301
|
key: _ctx.valueGetter(option),
|
302
302
|
"is-selected": _ctx.modelValue.includes(_ctx.valueGetter(option)),
|
303
303
|
"is-cursor": index === cursor.value,
|
@@ -331,7 +331,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
331
331
|
_: 2
|
332
332
|
}, 1032, ["is-selected", "is-cursor", "loading", "scroll", "hide-option-icon", "onSelect", "onUnselect", "onMouseenter"]);
|
333
333
|
}), 128)),
|
334
|
-
hasCreateOption.value ? (openBlock(), createBlock(_sfc_main$
|
334
|
+
hasCreateOption.value ? (openBlock(), createBlock(_sfc_main$2, {
|
335
335
|
key: 1,
|
336
336
|
"is-selected": false,
|
337
337
|
"is-cursor": cursor.value === optionsFiltered.value.length,
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { defineComponent, ref, useTemplateRef, computed, watch,
|
1
|
+
import { defineComponent, ref, useTemplateRef, computed, watch, createBlock, openBlock, mergeProps, unref, withModifiers, createSlots, withCtx, createVNode, renderSlot, resolveDynamicComponent, createCommentVNode, nextTick } from 'vue';
|
2
2
|
import _sfc_main$1 from '../Input/WInputSuggest.vue.js';
|
3
3
|
import { getIsMobile } from '../../utils/mobile.js';
|
4
|
-
import _sfc_main$
|
5
|
-
import _sfc_main$
|
4
|
+
import _sfc_main$2 from './components/SelectAsyncList.vue.js';
|
5
|
+
import _sfc_main$3 from './components/SelectAsyncPrefix.vue.js';
|
6
6
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
8
8
|
...{ inheritAttrs: false },
|
@@ -192,7 +192,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
192
192
|
})
|
193
193
|
}), createSlots({
|
194
194
|
prefix: withCtx(({ unclickable }) => [
|
195
|
-
(_ctx.hidePrefix ? unref(isMobile) ? unclickable || !focused.value : !isOpen.value : true) ? (openBlock(), createBlock(_sfc_main$
|
195
|
+
(_ctx.hidePrefix ? unref(isMobile) ? unclickable || !focused.value : !isOpen.value : true) ? (openBlock(), createBlock(_sfc_main$3, {
|
196
196
|
key: 0,
|
197
197
|
"use-query-fn": _ctx.useQueryFnPrefix ?? _ctx.useQueryFnOptions,
|
198
198
|
"model-value": _ctx.modelValue,
|
@@ -228,7 +228,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
228
228
|
]), 1032, ["use-query-fn", "model-value", "disabled", "loading", "option-component", "option-component-props", "disable-clear", "preview-data", "created-data", "value-getter", "value-query-key"])) : createCommentVNode("", true)
|
229
229
|
]),
|
230
230
|
content: withCtx(() => [
|
231
|
-
createVNode(_sfc_main$
|
231
|
+
createVNode(_sfc_main$2, {
|
232
232
|
ref: "list",
|
233
233
|
"model-value": _ctx.modelValue,
|
234
234
|
"use-query-fn": _ctx.useQueryFnOptions,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, openBlock,
|
1
|
+
import { defineComponent, useTemplateRef, createElementBlock, openBlock, createCommentVNode, createBlock, Fragment, createTextVNode, toDisplayString, createVNode, unref, createSlots, withCtx, renderSlot } from 'vue';
|
2
2
|
import WSkeleton from '../Skeleton/WSkeleton.vue.js';
|
3
3
|
import _sfc_main$1 from './components/SelectAsyncList.vue.js';
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, computed, watch, toRef,
|
1
|
+
import { defineComponent, useTemplateRef, computed, watch, toRef, createBlock, openBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
|
2
2
|
import _sfc_main$1 from './WSelectAsync.vue.js';
|
3
3
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, computed, watch, toRef,
|
1
|
+
import { defineComponent, useTemplateRef, computed, watch, toRef, createBlock, openBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
|
2
2
|
import _sfc_main$1 from './WSelect.vue.js';
|
3
3
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, computed,
|
1
|
+
import { defineComponent, useTemplateRef, computed, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot } from 'vue';
|
2
2
|
import _sfc_main$1 from './WSelect.vue.js';
|
3
3
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref,
|
1
|
+
import { defineComponent, ref, createElementBlock, openBlock, createVNode, createBlock, createCommentVNode, withCtx, normalizeClass, renderSlot, createElementVNode } from 'vue';
|
2
2
|
import _sfc_main$1 from '../../InfiniteList/WInfiniteList.vue.js';
|
3
3
|
import { debounce } from '../../../utils/utils.js';
|
4
4
|
import _sfc_main$2 from './SelectOption.vue.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref, computed, watch, onBeforeUnmount,
|
1
|
+
import { defineComponent, ref, computed, watch, onBeforeUnmount, createElementBlock, createCommentVNode, openBlock, Fragment, createVNode, createSlots, withCtx, renderSlot, createElementVNode, toDisplayString, unref, withModifiers, normalizeClass } from 'vue';
|
2
2
|
import IconCancel from '../../../assets/icons/default/IconCancel.svg.js';
|
3
3
|
import { numberFormatter } from '../../../utils/utils.js';
|
4
4
|
import _sfc_main$1 from './SelectAsyncPrefixPage.vue.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, computed, toRef, watch, onBeforeUnmount,
|
1
|
+
import { defineComponent, computed, toRef, watch, onBeforeUnmount, createElementBlock, openBlock, Fragment, renderList, normalizeClass, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, mergeProps, createSlots, withCtx, createElementVNode, withModifiers, createVNode, unref } from 'vue';
|
2
2
|
import IconCancel from '../../../assets/icons/default/IconCancel.svg.js';
|
3
3
|
|
4
4
|
const _hoisted_1 = ["onClick"];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, watch, watchEffect, onUnmounted, openBlock,
|
1
|
+
import { defineComponent, useTemplateRef, watch, watchEffect, onUnmounted, createElementBlock, openBlock, withModifiers, normalizeClass, renderSlot, createElementVNode, createVNode, Transition, withCtx, createCommentVNode, createBlock, unref } from 'vue';
|
2
2
|
import WSpinner from '../../Spinner/WSpinner.vue.js';
|
3
3
|
import IconCheck from '../../../assets/icons/default/IconCheck.svg.js';
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent,
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, mergeProps, withCtx, withModifiers, createVNode, unref } from 'vue';
|
2
2
|
import IconCancel from '../../../assets/icons/default/IconCancel.svg.js';
|
3
3
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -1,20 +1,22 @@
|
|
1
|
-
import { defineComponent, useSlots, useTemplateRef, computed, ref, inject, watch, onMounted, onUnmounted,
|
1
|
+
import { defineComponent, useSlots, useTemplateRef, computed, ref, inject, watch, onMounted, onUnmounted, createBlock, openBlock, normalizeClass, withCtx, createElementBlock, createCommentVNode, Fragment, renderList, unref, createSlots, resolveDynamicComponent, mergeProps, normalizeStyle, createVNode, TransitionGroup } from 'vue';
|
2
2
|
import _sfc_main$1 from '../Form/WForm.vue.js';
|
3
3
|
import '../Button/WButtonAction.vue.js';
|
4
4
|
import '../Button/WButton.vue.js';
|
5
5
|
import { getIsMobile } from '../../utils/mobile.js';
|
6
6
|
import { Notify } from '../../utils/Notify.js';
|
7
7
|
import '../Button/WButtonDropdown.vue.js';
|
8
|
-
import {
|
8
|
+
import { throttle, debounce } from '../../utils/utils.js';
|
9
9
|
import '../../utils/supportsPassive.js';
|
10
10
|
import '../Dropdown/utils/DropdownStyle.js';
|
11
11
|
import 'vue-router';
|
12
12
|
import { wTabItemListener, wTabItemUnlistener } from './models/injection.js';
|
13
13
|
import '../../utils/Modal.js';
|
14
14
|
import '../Input/WInputSuggest.vue.js';
|
15
|
+
import '../HeaderBar/use/useHeaderPadding.js';
|
15
16
|
import '../Input/WInputDate.vue.js';
|
16
17
|
import '../Link/WLink.vue.js';
|
17
18
|
import '@tanstack/vue-query';
|
19
|
+
import '../List/use/useListConfig.js';
|
18
20
|
import _sfc_main$3 from './components/TabItem.vue.js';
|
19
21
|
import _sfc_main$2 from './components/TabTitleButton.vue.js';
|
20
22
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, unref, openBlock,
|
1
|
+
import { defineComponent, createBlock, createElementBlock, unref, openBlock, withCtx, renderSlot, normalizeStyle, Fragment, renderList, resolveDynamicComponent } from 'vue';
|
2
2
|
import _sfc_main$1 from './WTabs.vue.js';
|
3
3
|
import { getIsMobile } from '../../utils/mobile.js';
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, watch, nextTick, toRef, withDirectives,
|
1
|
+
import { defineComponent, useTemplateRef, watch, nextTick, toRef, withDirectives, createCommentVNode, createBlock, openBlock, withCtx, renderSlot, vShow } from 'vue';
|
2
2
|
import _sfc_main$1 from '../../Form/WForm.vue.js';
|
3
3
|
import { useTabItemActiveListener } from '../use/useTabItemActiveListener.js';
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, watch, nextTick, onMounted,
|
1
|
+
import { defineComponent, useTemplateRef, watch, nextTick, onMounted, createElementBlock, openBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode, createBlock, unref, createVNode, normalizeProps, mergeProps, createTextVNode, Suspense, withCtx, resolveDynamicComponent, toDisplayString, guardReactiveProps, Transition } from 'vue';
|
2
2
|
import IconCheckCircle from '../../../assets/icons/sax/IconCheckCircle.svg.js';
|
3
3
|
import IconClose from '../../../assets/icons/sax/IconClose.svg.js';
|
4
4
|
import IconNegativeInfo from '../../../assets/icons/sax/IconNegativeInfo.svg.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, computed,
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, createElementVNode, createCommentVNode, toDisplayString, createBlock } from 'vue';
|
2
2
|
import WSpinner from '../Spinner/WSpinner.vue.js';
|
3
3
|
import { Notify } from '../../utils/Notify.js';
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, useSlots, useTemplateRef, ref, computed, watch, toRef, onBeforeUnmount,
|
1
|
+
import { defineComponent, useSlots, useTemplateRef, ref, computed, watch, toRef, onBeforeUnmount, createElementBlock, createCommentVNode, unref, openBlock, markRaw } from 'vue';
|
2
2
|
import { Tooltip } from '../../utils/Tooltip.js';
|
3
3
|
import { getIsTouchDevice } from '../../utils/mobile.js';
|
4
4
|
import { getIncrement } from './models/utils.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref, onBeforeMount, onMounted, onBeforeUnmount, onUnmounted,
|
1
|
+
import { defineComponent, ref, onBeforeMount, onMounted, onBeforeUnmount, onUnmounted, createBlock, openBlock, Transition, withCtx, createCommentVNode, unref, createVNode, createElementBlock, resolveDynamicComponent, toDisplayString, markRaw } from 'vue';
|
2
2
|
import _sfc_main$1 from '../Dropdown/WDropdown.vue.js';
|
3
3
|
import { HorizontalAlign } from '../../utils/HorizontalAlign.js';
|
4
4
|
import { initTooltip } from '../../utils/Tooltip.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, useTemplateRef, ref, watch, toRef, onMounted,
|
1
|
+
import { defineComponent, useTemplateRef, ref, watch, toRef, onMounted, createElementBlock, openBlock, createElementVNode, normalizeClass, normalizeStyle, renderSlot, nextTick } from 'vue';
|
2
2
|
import { isClientSide } from '../../../utils/utils.js';
|
3
3
|
|
4
4
|
const _hoisted_1 = { class: "pointer-events-none flex flex-col items-center justify-center drop-shadow-md dark:drop-shadow-none" };
|
package/dist/types/global.d.ts
CHANGED
@@ -199,3 +199,11 @@ declare type IsTuple<T> = [T] extends [never]
|
|
199
199
|
? false
|
200
200
|
: true
|
201
201
|
: false
|
202
|
+
|
203
|
+
declare type Join<Data, Separator extends string> = Data extends [infer Head, ...infer Tail]
|
204
|
+
? Head extends string
|
205
|
+
? Tail extends readonly string[]
|
206
|
+
? `${ Head }${ Separator }${ Join<Tail, Separator> }`
|
207
|
+
: Head
|
208
|
+
: Join<Tail, Separator>
|
209
|
+
: ''
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"type": "git",
|
5
5
|
"url": "https://github.com/rsmple/eco-vue-js.git"
|
6
6
|
},
|
7
|
-
"version": "0.10.
|
7
|
+
"version": "0.10.5",
|
8
8
|
"scripts": {
|
9
9
|
"build": "run-p type-check \"build-only {@}\" --",
|
10
10
|
"preview": "vite preview",
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"postcss-import": "16.1.0",
|
47
47
|
"tailwindcss": "3.4.16",
|
48
48
|
"typescript": "5.6.3",
|
49
|
-
"vite": "6.0
|
49
|
+
"vite": "6.1.0",
|
50
50
|
"vite-plugin-dts": "4.3.0",
|
51
51
|
"vite-svg-loader": "5.1.0",
|
52
52
|
"vue-tsc": "2.1.10"
|
package/tailwind-base/index.ts
CHANGED
@@ -2,6 +2,7 @@ import type {Config} from 'tailwindcss'
|
|
2
2
|
|
3
3
|
import colors from 'tailwindcss/colors.js'
|
4
4
|
|
5
|
+
import pluginContainerQueries from './plugins/container-queries.js'
|
5
6
|
import pluginDefault from './plugins/default.js'
|
6
7
|
import animations from './theme/animations.js'
|
7
8
|
import score from './theme/score.js'
|
@@ -117,6 +118,7 @@ const tailwindBase = {
|
|
117
118
|
},
|
118
119
|
plugins: [
|
119
120
|
pluginDefault,
|
121
|
+
pluginContainerQueries,
|
120
122
|
],
|
121
123
|
} satisfies Config
|
122
124
|
|
@@ -0,0 +1,92 @@
|
|
1
|
+
import plugin from 'tailwindcss/plugin'
|
2
|
+
|
3
|
+
const pluginContainerQueries = plugin(
|
4
|
+
function containerQueries({matchUtilities, matchVariant, theme}) {
|
5
|
+
const values: Record<string, string> = theme('containers') ?? {}
|
6
|
+
|
7
|
+
function parseValue(value: string) {
|
8
|
+
const numericValue = value.match(/^(\d+\.\d+|\d+|\.\d+)\D+/)?.[1] ?? null
|
9
|
+
if (numericValue === null) return null
|
10
|
+
|
11
|
+
return parseFloat(value)
|
12
|
+
}
|
13
|
+
|
14
|
+
matchUtilities(
|
15
|
+
{
|
16
|
+
'@container': (value, {modifier}) => {
|
17
|
+
return {
|
18
|
+
'container-type': value,
|
19
|
+
'container-name': modifier,
|
20
|
+
}
|
21
|
+
},
|
22
|
+
},
|
23
|
+
{
|
24
|
+
values: {
|
25
|
+
DEFAULT: 'inline-size',
|
26
|
+
normal: 'normal',
|
27
|
+
},
|
28
|
+
modifiers: 'any',
|
29
|
+
},
|
30
|
+
)
|
31
|
+
|
32
|
+
const createVariant = (prefix: string, property: string) => {
|
33
|
+
matchVariant(
|
34
|
+
prefix,
|
35
|
+
(value = '', {modifier}) => {
|
36
|
+
const parsed = parseValue(value)
|
37
|
+
|
38
|
+
return parsed !== null ? `@container ${ modifier ?? '' } (${ property }: ${ value })` : []
|
39
|
+
},
|
40
|
+
{
|
41
|
+
values,
|
42
|
+
sort(aVariant, zVariant) {
|
43
|
+
const a = parseFloat(aVariant.value)
|
44
|
+
const z = parseFloat(zVariant.value)
|
45
|
+
|
46
|
+
if (a === null || z === null) return 0
|
47
|
+
|
48
|
+
// Sort values themselves regardless of unit
|
49
|
+
if (a - z !== 0) return a - z
|
50
|
+
|
51
|
+
const aLabel = aVariant.modifier ?? ''
|
52
|
+
const zLabel = zVariant.modifier ?? ''
|
53
|
+
|
54
|
+
// Explicitly move empty labels to the end
|
55
|
+
if (aLabel === '' && zLabel !== '') {
|
56
|
+
return 1
|
57
|
+
} else if (aLabel !== '' && zLabel === '') {
|
58
|
+
return -1
|
59
|
+
}
|
60
|
+
|
61
|
+
// Sort labels alphabetically in the English locale
|
62
|
+
// We are intentionally overriding the locale because we do not want the sort to
|
63
|
+
// be affected by the machine's locale (be it a developer or CI environment)
|
64
|
+
return aLabel.localeCompare(zLabel, 'en', {numeric: true})
|
65
|
+
},
|
66
|
+
},
|
67
|
+
)
|
68
|
+
}
|
69
|
+
|
70
|
+
createVariant('@', 'min-width')
|
71
|
+
createVariant('@not', 'max-width')
|
72
|
+
},
|
73
|
+
{
|
74
|
+
theme: {
|
75
|
+
containers: {
|
76
|
+
xs: '20rem',
|
77
|
+
sm: '24rem',
|
78
|
+
md: '28rem',
|
79
|
+
lg: '32rem',
|
80
|
+
xl: '36rem',
|
81
|
+
'2xl': '42rem',
|
82
|
+
'3xl': '48rem',
|
83
|
+
'4xl': '56rem',
|
84
|
+
'5xl': '64rem',
|
85
|
+
'6xl': '72rem',
|
86
|
+
'7xl': '80rem',
|
87
|
+
},
|
88
|
+
},
|
89
|
+
},
|
90
|
+
)
|
91
|
+
|
92
|
+
export default pluginContainerQueries
|
@@ -121,6 +121,10 @@ const pluginDefault = plugin(function ({matchUtilities, addVariant, addUtilities
|
|
121
121
|
addVariant('resizer', '&::-webkit-resizer')
|
122
122
|
addVariant('last-not', '&:not(:last-child)')
|
123
123
|
addVariant('first-not', '&:not(:first-child)')
|
124
|
+
addVariant('card', ['.w-card &'])
|
125
|
+
addVariant('card-l', ['&.w-card'])
|
126
|
+
addVariant('list', ['.w-list &'])
|
127
|
+
addVariant('list-l', ['&.w-list'])
|
124
128
|
|
125
129
|
addBase({
|
126
130
|
'.w-input': {
|
@@ -458,11 +462,8 @@ const pluginDefault = plugin(function ({matchUtilities, addVariant, addUtilities
|
|
458
462
|
|
459
463
|
matchUtilities(
|
460
464
|
{
|
461
|
-
'w-skeleton-w': value => {
|
462
|
-
|
463
|
-
'--skeleton-width': value,
|
464
|
-
}
|
465
|
-
},
|
465
|
+
'w-skeleton-w': value => ({'--skeleton-width': value}),
|
466
|
+
'w-list-card-w': value => ({'--w-list-card-width': value}),
|
466
467
|
},
|
467
468
|
{
|
468
469
|
values: theme('width'),
|
@@ -487,11 +488,30 @@ const pluginDefault = plugin(function ({matchUtilities, addVariant, addUtilities
|
|
487
488
|
'w-button-rounded': value => ({'--w-button-rounded': value}),
|
488
489
|
'w-skeleton-rounded': value => ({'--w-skeleton-rounded': value}),
|
489
490
|
'w-ripple-rounded': value => ({'--w-ripple-rounded': value}),
|
491
|
+
'w-list-rounded': value => ({'--w-list-rounded': value}),
|
490
492
|
},
|
491
493
|
{
|
492
494
|
values: theme('borderRadius'),
|
493
495
|
},
|
494
496
|
)
|
497
|
+
|
498
|
+
matchUtilities(
|
499
|
+
{
|
500
|
+
'w-list-gap': value => ({'--w-list-gap': value}),
|
501
|
+
},
|
502
|
+
{
|
503
|
+
values: theme('gap'),
|
504
|
+
},
|
505
|
+
)
|
506
|
+
|
507
|
+
addBase({
|
508
|
+
'cols-span-full': {
|
509
|
+
'grid-column': '1 / -1',
|
510
|
+
},
|
511
|
+
'row-span-full': {
|
512
|
+
'grid-row': '1 / -1',
|
513
|
+
},
|
514
|
+
})
|
495
515
|
})
|
496
516
|
|
497
517
|
export default pluginDefault
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { FieldConfig, FieldConfigMap, ListField, ListFields } from '../types';
|
2
|
-
import { MaybeRef } from 'vue';
|
3
|
-
export declare const filterFields: <F extends ListFields<any, any>>(fields: F, method: (field: ListField<unknown>) => boolean) => F;
|
4
|
-
export declare const getFirstFieldLabel: <F extends ListFields<any, any>[number]>(field: F) => string;
|
5
|
-
export declare const useFieldConfigMap: <Fields extends ListFields<any, any>>(key: MaybeRef<string>, fields: MaybeRef<Fields>, defaultConfigMap: MaybeRef<FieldConfigMap<Fields>>) => {
|
6
|
-
fieldConfigMap: import('vue').WritableComputedRef<Record<string, FieldConfig>, Record<string, FieldConfig>>;
|
7
|
-
hasSaved: import('vue').Ref<boolean, boolean>;
|
8
|
-
reset: () => void;
|
9
|
-
};
|
10
|
-
//# sourceMappingURL=useFieldConfigMap.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useFieldConfigMap.d.ts","sourceRoot":"","sources":["../../../../src/components/List/use/useFieldConfigMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAC,MAAM,UAAU,CAAA;AAEhF,OAAO,EAAC,KAAK,QAAQ,EAAqC,MAAM,KAAK,CAAA;AA6DrE,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,KAAK,OAAO,KAAG,CAUxH,CAAA;AAGD,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,KAAG,MAErF,CAAA;AAGD,eAAO,MAAM,iBAAiB,GAAI,MAAM,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,OAAO,QAAQ,CAAC,MAAM,CAAC,UAAU,QAAQ,CAAC,MAAM,CAAC,oBAAoB,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;;;;CAoCzK,CAAA"}
|