eco-vue-js 0.10.3 → 0.10.4
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 -10
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/List/WList.vue.js +96 -55
- package/dist/components/List/WListCard.vue.d.ts +24 -22
- package/dist/components/List/WListCard.vue.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +76 -48
- 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 +1 -1
- package/dist/components/List/components/ListCardFieldNested.vue.d.ts.map +1 -1
- package/dist/components/List/components/ListCardFieldNested.vue.js +9 -9
- 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 +23 -5
- package/dist/components/List/use/useFieldConfigMap.d.ts +0 -10
- package/dist/components/List/use/useFieldConfigMap.d.ts.map +0 -1
@@ -0,0 +1,32 @@
|
|
1
|
+
import { FieldConfig, ListFields } from '../types';
|
2
|
+
import { OrderItem } from '../../../utils/order';
|
3
|
+
import { ListMode } from '../use/useListConfig';
|
4
|
+
declare const _default: <Data extends DefaultData, QueryParams>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
5
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
6
|
+
readonly "onUpdate:field-config-map"?: ((value: Record<string, FieldConfig>) => any) | undefined;
|
7
|
+
readonly "onUpdate:mode"?: ((value: ListMode) => any) | undefined;
|
8
|
+
readonly "onClick:reset"?: (() => any) | undefined;
|
9
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:field-config-map" | "onUpdate:mode" | "onClick:reset"> & {
|
10
|
+
ordering: OrderItem<keyof Data>[];
|
11
|
+
fields: ListFields<Data, QueryParams>;
|
12
|
+
queryParams: QueryParams;
|
13
|
+
disabled?: boolean;
|
14
|
+
}> & import('vue').PublicProps;
|
15
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
16
|
+
attrs: any;
|
17
|
+
slots: {};
|
18
|
+
emit: {
|
19
|
+
(e: "update:field-config-map", value: Record<string, FieldConfig>): void;
|
20
|
+
(e: "update:mode", value: ListMode): void;
|
21
|
+
(e: "click:reset"): void;
|
22
|
+
};
|
23
|
+
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
24
|
+
[key: string]: any;
|
25
|
+
}> & {
|
26
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
27
|
+
};
|
28
|
+
export default _default;
|
29
|
+
type __VLS_PrettifyLocal<T> = {
|
30
|
+
[K in keyof T]: T[K];
|
31
|
+
} & {};
|
32
|
+
//# sourceMappingURL=HeaderSort.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HeaderSort.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/HeaderSort.vue"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAAC,WAAW,EAAa,UAAU,EAAC,MAAM,UAAU,CAAA;AAChE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAc5C,OAAO,EAAC,KAAK,QAAQ,EAAC,MAAM,sBAAsB,CAAA;yBAGjC,IAAI,SAAS,WAAW,EAAE,WAAW,eACxC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAyLxD,mBAAmB,CAAC;;;;;kBAnLlB,SAAS,CAAC,MAAM,IAAI,CAAC,EAAE;gBACzB,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC;qBACxB,WAAW;mBACb,OAAO;KAgLmE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;YA7KP,yBAAyB,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,IAAI;YACpE,aAAa,SAAS,QAAQ,GAAG,IAAI;YACrC,aAAa,GAAG,IAAI;;;;;YAgLkB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAnMvE,wBAmM4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
import { defineComponent, ref, computed, createBlock, createCommentVNode, openBlock, unref, withCtx, createVNode, createElementBlock, Fragment, renderList, markRaw } from 'vue';
|
2
|
+
import _sfc_main$4 from '../../Button/WButtonSelectionAction.vue.js';
|
3
|
+
import _sfc_main$2 from '../../ClickOutside/WClickOutside.vue.js';
|
4
|
+
import _sfc_main$1 from '../../DropdownMenu/WDropdownMenu.vue.js';
|
5
|
+
import IconSort from '../../../assets/icons/default/IconSort.svg.js';
|
6
|
+
import '../../Button/WButtonAction.vue.js';
|
7
|
+
import '../../Button/WButton.vue.js';
|
8
|
+
import '../../Button/WButtonDropdown.vue.js';
|
9
|
+
import { HorizontalAlign } from '../../../utils/HorizontalAlign.js';
|
10
|
+
import 'vue-router';
|
11
|
+
import '../../../utils/supportsPassive.js';
|
12
|
+
import '../../Dropdown/utils/DropdownStyle.js';
|
13
|
+
import '../../../utils/Modal.js';
|
14
|
+
import '../../Input/WInputSuggest.vue.js';
|
15
|
+
import '../../HeaderBar/use/useHeaderPadding.js';
|
16
|
+
import '../../Input/WInputDate.vue.js';
|
17
|
+
import '../../Link/WLink.vue.js';
|
18
|
+
import '@tanstack/vue-query';
|
19
|
+
import '../use/useListConfig.js';
|
20
|
+
import _sfc_main$3 from './HeaderSortItem.vue.js';
|
21
|
+
|
22
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
23
|
+
__name: "HeaderSort",
|
24
|
+
props: {
|
25
|
+
ordering: {},
|
26
|
+
fields: {},
|
27
|
+
queryParams: {},
|
28
|
+
disabled: { type: Boolean }
|
29
|
+
},
|
30
|
+
emits: ["update:field-config-map", "update:mode", "click:reset"],
|
31
|
+
setup(__props) {
|
32
|
+
const props = __props;
|
33
|
+
const isOpen = ref(false);
|
34
|
+
const fieldsFlat = computed(() => {
|
35
|
+
const result = [];
|
36
|
+
const processField = (field) => {
|
37
|
+
if ("field" in field && field.field !== void 0) result.push(field);
|
38
|
+
else if ("fields" in field) field.fields.forEach(processField);
|
39
|
+
};
|
40
|
+
props.fields.forEach(processField);
|
41
|
+
return result;
|
42
|
+
});
|
43
|
+
return (_ctx, _cache) => {
|
44
|
+
return fieldsFlat.value.length ? (openBlock(), createBlock(_sfc_main$1, {
|
45
|
+
key: 0,
|
46
|
+
"is-open": isOpen.value,
|
47
|
+
"max-width": 300,
|
48
|
+
"max-height": 300,
|
49
|
+
"horizontal-align": unref(HorizontalAlign).RIGHT_INNER
|
50
|
+
}, {
|
51
|
+
toggle: withCtx(() => [
|
52
|
+
createVNode(_sfc_main$4, {
|
53
|
+
icon: markRaw(unref(IconSort)),
|
54
|
+
disabled: _ctx.disabled,
|
55
|
+
active: isOpen.value,
|
56
|
+
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
57
|
+
}, null, 8, ["icon", "disabled", "active"])
|
58
|
+
]),
|
59
|
+
content: withCtx(() => [
|
60
|
+
createVNode(_sfc_main$2, {
|
61
|
+
class: "bg-default dark:bg-default-dark my-2 grid grid-cols-1 overflow-hidden rounded-xl shadow-md dark:outline dark:outline-1 dark:outline-gray-800",
|
62
|
+
onClick: _cache[1] || (_cache[1] = ($event) => isOpen.value = false)
|
63
|
+
}, {
|
64
|
+
default: withCtx(() => [
|
65
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(fieldsFlat.value, (field) => {
|
66
|
+
return openBlock(), createBlock(_sfc_main$3, {
|
67
|
+
key: field.label,
|
68
|
+
title: typeof field.title === "string" ? field.title : field.title(_ctx.queryParams),
|
69
|
+
field: typeof field.field === "string" ? field.field : field.field(_ctx.queryParams),
|
70
|
+
ordering: _ctx.ordering,
|
71
|
+
disabled: _ctx.disabled
|
72
|
+
}, null, 8, ["title", "field", "ordering", "disabled"]);
|
73
|
+
}), 128))
|
74
|
+
]),
|
75
|
+
_: 1
|
76
|
+
})
|
77
|
+
]),
|
78
|
+
_: 1
|
79
|
+
}, 8, ["is-open", "horizontal-align"])) : createCommentVNode("", true);
|
80
|
+
};
|
81
|
+
}
|
82
|
+
});
|
83
|
+
|
84
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { OrderItem } from '../../../utils/order';
|
2
|
+
declare const _default: <Data extends DefaultData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
|
4
|
+
ordering: OrderItem<keyof Data>[];
|
5
|
+
field: keyof Data;
|
6
|
+
title: string;
|
7
|
+
disabled?: boolean;
|
8
|
+
}> & import('vue').PublicProps;
|
9
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
10
|
+
attrs: any;
|
11
|
+
slots: {};
|
12
|
+
emit: {};
|
13
|
+
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
14
|
+
[key: string]: any;
|
15
|
+
}> & {
|
16
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
17
|
+
};
|
18
|
+
export default _default;
|
19
|
+
type __VLS_PrettifyLocal<T> = {
|
20
|
+
[K in keyof T]: T[K];
|
21
|
+
} & {};
|
22
|
+
//# sourceMappingURL=HeaderSortItem.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HeaderSortItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/HeaderSortItem.vue"],"names":[],"mappings":"AAuEA,OAAO,EAAC,KAAK,SAAS,EAAC,MAAM,eAAe,CAAA;yBAK3B,IAAI,SAAS,WAAW,eAC3B,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAyIxD,mBAAmB,CAAC;kBArIlB,SAAS,CAAC,MAAM,IAAI,CAAC,EAAE;eAC1B,MAAM,IAAI;eACV,MAAM;mBACF,OAAO;KAkImE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;UAEJ,EAAE;;;;YAGiC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAnJvE,wBAmJ4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import { defineComponent, toRef, createBlock, openBlock, unref, withCtx, createElementVNode, toDisplayString, createVNode, Transition, createCommentVNode, normalizeClass, createElementBlock } from 'vue';
|
2
|
+
import _sfc_main$1 from '../../MenuItem/WMenuItem.vue.js';
|
3
|
+
import IconBack from '../../../assets/icons/default/IconBack.svg.js';
|
4
|
+
import { useOrdering } from '../use/useOrdering.js';
|
5
|
+
|
6
|
+
const _hoisted_1 = { class: "flex-1 truncate text-base font-normal" };
|
7
|
+
const _hoisted_2 = { class: "ml-auto flex w-8 items-center justify-between" };
|
8
|
+
const _hoisted_3 = {
|
9
|
+
key: 0,
|
10
|
+
class: "text-base font-semibold"
|
11
|
+
};
|
12
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
13
|
+
__name: "HeaderSortItem",
|
14
|
+
props: {
|
15
|
+
ordering: {},
|
16
|
+
field: {},
|
17
|
+
title: {},
|
18
|
+
disabled: { type: Boolean }
|
19
|
+
},
|
20
|
+
setup(__props) {
|
21
|
+
const props = __props;
|
22
|
+
const { index, setOrdering } = useOrdering(toRef(props, "ordering"), toRef(props, "field"));
|
23
|
+
return (_ctx, _cache) => {
|
24
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
25
|
+
disabled: _ctx.disabled,
|
26
|
+
onClick: unref(setOrdering)
|
27
|
+
}, {
|
28
|
+
default: withCtx(() => [
|
29
|
+
createElementVNode("div", _hoisted_1, toDisplayString(_ctx.title), 1),
|
30
|
+
createElementVNode("div", _hoisted_2, [
|
31
|
+
createVNode(Transition, {
|
32
|
+
"enter-active-class": "transition-opacity",
|
33
|
+
"leave-active-class": "transition-opacity",
|
34
|
+
"enter-from-class": "opacity-0",
|
35
|
+
"leave-to-class": "opacity-0"
|
36
|
+
}, {
|
37
|
+
default: withCtx(() => [
|
38
|
+
unref(index) !== -1 ? (openBlock(), createBlock(unref(IconBack), {
|
39
|
+
key: 0,
|
40
|
+
class: normalizeClass(["square-4 transition-transform", {
|
41
|
+
"rotate-90": _ctx.ordering[unref(index)]?.order === "ASC",
|
42
|
+
"-rotate-90": _ctx.ordering[unref(index)]?.order === "DESC"
|
43
|
+
}])
|
44
|
+
}, null, 8, ["class"])) : createCommentVNode("", true)
|
45
|
+
]),
|
46
|
+
_: 1
|
47
|
+
}),
|
48
|
+
createVNode(Transition, {
|
49
|
+
"enter-active-class": "transition-opacity",
|
50
|
+
"leave-active-class": "transition-opacity",
|
51
|
+
"enter-from-class": "opacity-0",
|
52
|
+
"leave-to-class": "opacity-0"
|
53
|
+
}, {
|
54
|
+
default: withCtx(() => [
|
55
|
+
unref(index) !== -1 && _ctx.ordering.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(unref(index) + 1), 1)) : createCommentVNode("", true)
|
56
|
+
]),
|
57
|
+
_: 1
|
58
|
+
})
|
59
|
+
])
|
60
|
+
]),
|
61
|
+
_: 1
|
62
|
+
}, 8, ["disabled", "onClick"]);
|
63
|
+
};
|
64
|
+
}
|
65
|
+
});
|
66
|
+
|
67
|
+
export { _sfc_main as default };
|
@@ -5,7 +5,7 @@ declare const _default: <Data extends DefaultData, QueryParams>(__VLS_props: Non
|
|
5
5
|
item: Data;
|
6
6
|
nested?: boolean;
|
7
7
|
skeleton: boolean;
|
8
|
-
|
8
|
+
card: boolean;
|
9
9
|
}> & import('vue').PublicProps;
|
10
10
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
11
11
|
attrs: any;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ListCardFieldNested.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/ListCardFieldNested.vue"],"names":[],"mappings":"AA0FA,OAAO,KAAK,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,UAAU,CAAA;yBASlC,IAAI,SAAS,WAAW,EAAE,WAAW,eACxC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAoIxD,mBAAmB,CAAC;gBAhIpB,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC;cAC/B,IAAI;iBACD,OAAO;kBACN,OAAO;
|
1
|
+
{"version":3,"file":"ListCardFieldNested.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/ListCardFieldNested.vue"],"names":[],"mappings":"AA0FA,OAAO,KAAK,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,UAAU,CAAA;yBASlC,IAAI,SAAS,WAAW,EAAE,WAAW,eACxC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAoIxD,mBAAmB,CAAC;gBAhIpB,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC;cAC/B,IAAI;iBACD,OAAO;kBACN,OAAO;cACX,OAAO;KA4HwE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;iBAzHF,CAAC,KAAK,EAAE;YAAC,KAAK,EAAE,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;YAAC,IAAI,EAAE,IAAI,CAAA;SAAC,KAAK,IAAI;;iBAAlE,CAAC,KAAK,EAAE;YAAC,KAAK,EAAE,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;YAAC,IAAI,EAAE,IAAI,CAAA;SAAC,KAAK,IAAI;;UA2HpE,EAAE;;;;YAGiC,OAAO,CAAC,OAAO,WAAW,CAAC;;AA9IvE,wBA8I4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { defineComponent, resolveComponent,
|
1
|
+
import { defineComponent, resolveComponent, createElementBlock, openBlock, Fragment, renderList, unref, renderSlot, createBlock, resolveDynamicComponent, mergeProps, withCtx, createVNode, createElementVNode, normalizeClass } from 'vue';
|
2
2
|
import _sfc_main$2 from '../../EmptyComponent/WEmptyComponent.vue.js';
|
3
3
|
import _sfc_main$1 from './ListCardFieldNestedItem.vue.js';
|
4
|
-
import { getFirstFieldLabel } from '../use/
|
4
|
+
import { getFirstFieldLabel } from '../use/useListConfig.js';
|
5
5
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
7
7
|
__name: "ListCardFieldNested",
|
@@ -10,7 +10,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
item: {},
|
11
11
|
nested: { type: Boolean },
|
12
12
|
skeleton: { type: Boolean },
|
13
|
-
|
13
|
+
card: { type: Boolean }
|
14
14
|
},
|
15
15
|
setup(__props) {
|
16
16
|
return (_ctx, _cache) => {
|
@@ -23,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
23
23
|
"keyArray" in field || "getterArray" in field ? (openBlock(), createBlock(resolveDynamicComponent(field.componentArray ?? "div"), mergeProps({
|
24
24
|
key: 0,
|
25
25
|
ref_for: true
|
26
|
-
}, field.componentArray ? { item: _ctx.item, skeleton: _ctx.skeleton,
|
26
|
+
}, field.componentArray ? { item: _ctx.item, skeleton: _ctx.skeleton, card: _ctx.card } : void 0, {
|
27
27
|
class: field.cssClassArray
|
28
28
|
}), {
|
29
29
|
default: withCtx(() => [
|
@@ -31,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
31
31
|
items: _ctx.skeleton ? [_ctx.item] : "keyArray" in field ? _ctx.item[field.keyArray] : field.getterArray(_ctx.item)
|
32
32
|
}, {
|
33
33
|
default: withCtx(({ inner, index, last, first }) => [
|
34
|
-
(openBlock(), createBlock(resolveDynamicComponent(field.componentItem ?? _sfc_main$2), mergeProps({ ref_for: true }, field.componentItem ? { item: _ctx.item, skeleton: _ctx.skeleton,
|
34
|
+
(openBlock(), createBlock(resolveDynamicComponent(field.componentItem ?? _sfc_main$2), mergeProps({ ref_for: true }, field.componentItem ? { item: _ctx.item, skeleton: _ctx.skeleton, card: _ctx.card, index, last, first } : void 0), {
|
35
35
|
default: withCtx(() => [
|
36
36
|
createElementVNode("div", {
|
37
37
|
class: normalizeClass(["flex", field.cssClass])
|
@@ -40,14 +40,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
40
40
|
fields: field.fields,
|
41
41
|
item: inner,
|
42
42
|
skeleton: _ctx.skeleton,
|
43
|
-
|
43
|
+
card: _ctx.card,
|
44
44
|
nested: ""
|
45
45
|
}, {
|
46
46
|
default: withCtx((defaultScope) => [
|
47
47
|
renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, defaultScope))
|
48
48
|
]),
|
49
49
|
_: 2
|
50
|
-
}, 1032, ["fields", "item", "skeleton", "
|
50
|
+
}, 1032, ["fields", "item", "skeleton", "card"])
|
51
51
|
], 2)
|
52
52
|
]),
|
53
53
|
_: 2
|
@@ -65,14 +65,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
65
65
|
fields: field.fields,
|
66
66
|
item: "keyEntity" in field ? _ctx.item[field.keyEntity] : "getterEntity" in field ? field.getterEntity(_ctx.item) : _ctx.item,
|
67
67
|
skeleton: _ctx.skeleton,
|
68
|
-
|
68
|
+
card: _ctx.card,
|
69
69
|
nested: ""
|
70
70
|
}, {
|
71
71
|
default: withCtx((defaultScope) => [
|
72
72
|
renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, defaultScope))
|
73
73
|
]),
|
74
74
|
_: 2
|
75
|
-
}, 1032, ["fields", "item", "skeleton", "
|
75
|
+
}, 1032, ["fields", "item", "skeleton", "card"])
|
76
76
|
], 2))
|
77
77
|
], 64)) : renderSlot(_ctx.$slots, "default", {
|
78
78
|
key: 1,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent,
|
1
|
+
import { defineComponent, createElementBlock, openBlock, Fragment, renderList, renderSlot, mergeProps } from 'vue';
|
2
2
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
4
|
__name: "ListCardFieldNestedItem",
|
@@ -3,17 +3,17 @@ export type FieldComponent<Data> = Component<{
|
|
3
3
|
item: Data;
|
4
4
|
skeleton: boolean;
|
5
5
|
readonly: boolean;
|
6
|
-
|
6
|
+
card: boolean;
|
7
7
|
}>;
|
8
8
|
export type FieldComponentNested<Data> = Component<{
|
9
9
|
item: Data;
|
10
10
|
skeleton: boolean;
|
11
|
-
|
11
|
+
card: boolean;
|
12
12
|
}>;
|
13
13
|
export type FieldComponentItem<Data> = Component<{
|
14
14
|
item: Data;
|
15
15
|
skeleton: boolean;
|
16
|
-
|
16
|
+
card: boolean;
|
17
17
|
index: number;
|
18
18
|
first: boolean;
|
19
19
|
last: boolean;
|
@@ -91,5 +91,12 @@ type GetFieldLabelsTuple<Fields> = Fields extends [infer Head, ...infer Tail] ?
|
|
91
91
|
} ? [...GetFieldLabelsTuple<InnerFields>, ...GetFieldLabelsTuple<Tail>] : GetFieldLabelsTuple<Tail> : [];
|
92
92
|
export type GetFieldLabels<Fields extends ListFields<unknown>> = GetFieldLabelsTuple<Fields>[number];
|
93
93
|
export type FieldConfigMap<Fields extends ListFields<any, any>> = Record<GetFieldLabels<Fields>, FieldConfig>;
|
94
|
+
export declare const AREA_SELECT = "area_select";
|
95
|
+
export declare const AREA_MORE = "area_more";
|
96
|
+
export type CardAreas<Fields extends ListFields<any, any>, Length extends number> = (readonly (GetFieldLabels<Fields> | typeof AREA_SELECT | typeof AREA_MORE | '.')[] & {
|
97
|
+
length: Length;
|
98
|
+
})[];
|
99
|
+
type GridColValue = 'auto' | '1fr' | `${number}rem`;
|
100
|
+
export type GridCol = GridColValue | `minmax(${GridColValue}, ${GridColValue})`;
|
94
101
|
export {};
|
95
102
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/List/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAE,GAAG,EAAC,MAAM,KAAK,CAAA;AAEvC,MAAM,MAAM,cAAc,CAAC,IAAI,IAAI,SAAS,CAAC;IAC3C,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/List/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAE,GAAG,EAAC,MAAM,KAAK,CAAA;AAEvC,MAAM,MAAM,cAAc,CAAC,IAAI,IAAI,SAAS,CAAC;IAC3C,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;CACd,CAAC,CAAA;AAEF,MAAM,MAAM,oBAAoB,CAAC,IAAI,IAAI,SAAS,CAAC;IACjD,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;CACd,CAAC,CAAA;AAEF,MAAM,MAAM,kBAAkB,CAAC,IAAI,IAAI,SAAS,CAAC;IAC/C,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,EAAE,OAAO,CAAA;CACd,CAAC,CAAA;AAEF,MAAM,MAAM,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,IAAI;IACnD,SAAS,EAAE,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAA;IACpC,KAAK,EAAE,MAAM,GAAG,CAAC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AE,CAAC,EAAE,CAAA;AAE9L,KAAK,YAAY,GAAG,MAAM,GAAG,KAAK,GAAG,GAAI,MAAO,KAAK,CAAA;AACrD,MAAM,MAAM,OAAO,GAAG,YAAY,GAAG,UAAW,YAAa,KAAM,YAAa,GAAG,CAAA"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { FieldConfig, FieldConfigMap, ListField, ListFields } from '../types';
|
2
|
+
import { MaybeRef } from 'vue';
|
3
|
+
export declare enum ListMode {
|
4
|
+
TABLE = "table",
|
5
|
+
GRID = "grid"
|
6
|
+
}
|
7
|
+
export declare const listModeList: ListMode[];
|
8
|
+
export declare const listModeIconMap: Record<ListMode, SVGComponent>;
|
9
|
+
export type ListConfig<Fields extends ListFields<unknown>> = {
|
10
|
+
fields: FieldConfigMap<Fields>;
|
11
|
+
mode: ListMode;
|
12
|
+
};
|
13
|
+
export declare const filterFields: <F extends ListFields<any, any>>(fields: F, method: (field: ListField<unknown>) => boolean) => F;
|
14
|
+
export declare const getFirstFieldLabel: <F extends ListFields<any, any>[number]>(field: F) => string;
|
15
|
+
export declare const useListConfig: <Fields extends ListFields<any, any>>(key: MaybeRef<string>, fields: MaybeRef<Fields>, defaultConfigMap: MaybeRef<FieldConfigMap<Fields>>) => {
|
16
|
+
listConfig: import('vue').ComputedRef<ListConfig<Fields>>;
|
17
|
+
fieldConfigMap: import('vue').WritableComputedRef<Record<string, FieldConfig>, Record<string, FieldConfig>>;
|
18
|
+
isGrid: import('vue').ComputedRef<boolean>;
|
19
|
+
hasSaved: import('vue').Ref<boolean, boolean>;
|
20
|
+
reset: () => void;
|
21
|
+
save: () => void;
|
22
|
+
updateMode: (mode: ListMode) => void;
|
23
|
+
};
|
24
|
+
//# sourceMappingURL=useListConfig.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useListConfig.d.ts","sourceRoot":"","sources":["../../../../src/components/List/use/useListConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAC,MAAM,UAAU,CAAA;AAEhF,OAAO,EAAC,KAAK,QAAQ,EAA8C,MAAM,KAAK,CAAA;AAK9E,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,eAAO,MAAM,YAAY,YAGxB,CAAA;AAUD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,YAAY,CAG1D,CAAA;AAED,MAAM,MAAM,UAAU,CAAC,MAAM,SAAS,UAAU,CAAC,OAAO,CAAC,IAAI;IAC3D,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;IAC9B,IAAI,EAAE,QAAQ,CAAA;CACf,CAAA;AAoED,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,aAAa,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;;;;;;;uBAiC1I,QAAQ;CA2BnC,CAAA"}
|
@@ -1,5 +1,21 @@
|
|
1
|
-
import { ref, unref, computed, isRef, watch } from 'vue';
|
1
|
+
import { markRaw, ref, unref, computed, isRef, watch } from 'vue';
|
2
|
+
import IconGrid from '../../../assets/icons/sax/IconGrid.svg.js';
|
3
|
+
import IconTable from '../../../assets/icons/sax/IconTable.svg.js';
|
2
4
|
|
5
|
+
const listModeList = [
|
6
|
+
"table" /* TABLE */,
|
7
|
+
"grid" /* GRID */
|
8
|
+
];
|
9
|
+
const isListMode = (value) => {
|
10
|
+
return typeof value === "string" && listModeList.includes(value);
|
11
|
+
};
|
12
|
+
const parseListMode = (value) => {
|
13
|
+
return isListMode(value) ? value : "table" /* TABLE */;
|
14
|
+
};
|
15
|
+
const listModeIconMap = {
|
16
|
+
["table" /* TABLE */]: markRaw(IconTable),
|
17
|
+
["grid" /* GRID */]: markRaw(IconGrid)
|
18
|
+
};
|
3
19
|
const fieldConfigKeyLength = 3;
|
4
20
|
const isFieldConfig = (value) => {
|
5
21
|
return value instanceof Object && Object.keys(value).length <= fieldConfigKeyLength && (!("width" in value) || value.width === null || typeof value.width === "number") && (!("visible" in value) || typeof value.visible === "boolean") && (!("order" in value) || typeof value.order === "number");
|
@@ -31,7 +47,13 @@ const parseFieldConfigMap = (value, fields, defaultConfigMap) => {
|
|
31
47
|
});
|
32
48
|
return configMap;
|
33
49
|
};
|
34
|
-
const
|
50
|
+
const parseListConfig = (value, fields, defaultConfigMap) => {
|
51
|
+
return {
|
52
|
+
fields: parseFieldConfigMap(value instanceof Object && "fields" in value ? value.fields : void 0, fields, defaultConfigMap),
|
53
|
+
mode: parseListMode(value instanceof Object && "mode" in value ? value.mode : void 0)
|
54
|
+
};
|
55
|
+
};
|
56
|
+
const getListConfig = (key) => {
|
35
57
|
const value = localStorage.getItem(key);
|
36
58
|
if (typeof value !== "string") return void 0;
|
37
59
|
try {
|
@@ -52,37 +74,56 @@ const filterFields = (fields, method) => {
|
|
52
74
|
const getFirstFieldLabel = (field) => {
|
53
75
|
return "label" in field ? field.label : getFirstFieldLabel(field.fields[0]);
|
54
76
|
};
|
55
|
-
const
|
56
|
-
const value = ref(
|
77
|
+
const useListConfig = (key, fields, defaultConfigMap) => {
|
78
|
+
const value = ref(
|
79
|
+
parseListConfig(
|
80
|
+
getListConfig(unref(key)),
|
81
|
+
unref(fields),
|
82
|
+
unref(defaultConfigMap)
|
83
|
+
)
|
84
|
+
);
|
57
85
|
const hasSaved = ref(localStorage.getItem(unref(key)) !== null);
|
86
|
+
const listConfig = computed(() => value.value);
|
58
87
|
const fieldConfigMap = computed({
|
59
|
-
get: () => value.value,
|
88
|
+
get: () => value.value.fields,
|
60
89
|
set: (newValue) => {
|
61
|
-
value.value = newValue;
|
62
|
-
|
63
|
-
localStorage.setItem(unref(key), JSON.stringify(newValue));
|
90
|
+
value.value.fields = newValue;
|
91
|
+
save();
|
64
92
|
}
|
65
93
|
});
|
94
|
+
const isGrid = computed(() => value.value.mode === "grid" /* GRID */);
|
66
95
|
const reset = () => {
|
67
|
-
value.value =
|
96
|
+
value.value = parseListConfig(void 0, unref(fields), unref(defaultConfigMap));
|
68
97
|
hasSaved.value = false;
|
69
98
|
localStorage.removeItem(unref(key));
|
70
99
|
};
|
100
|
+
const save = () => {
|
101
|
+
localStorage.setItem(unref(key), JSON.stringify(value.value));
|
102
|
+
hasSaved.value = true;
|
103
|
+
};
|
104
|
+
const updateMode = (mode) => {
|
105
|
+
value.value.mode = mode;
|
106
|
+
save();
|
107
|
+
};
|
71
108
|
if (isRef(key)) {
|
72
109
|
watch(key, (newKey) => {
|
73
|
-
value.value =
|
110
|
+
value.value = parseListConfig(getListConfig(unref(newKey)), unref(fields), unref(defaultConfigMap));
|
74
111
|
hasSaved.value = localStorage.getItem(unref(key)) !== null;
|
75
112
|
});
|
76
113
|
}
|
77
114
|
if (isRef(defaultConfigMap)) watch(defaultConfigMap, (newValue) => {
|
78
|
-
value.value =
|
115
|
+
value.value = parseListConfig(getListConfig(unref(key)), unref(fields), newValue);
|
79
116
|
hasSaved.value = localStorage.getItem(unref(key)) !== null;
|
80
117
|
});
|
81
118
|
return {
|
119
|
+
listConfig,
|
82
120
|
fieldConfigMap,
|
121
|
+
isGrid,
|
83
122
|
hasSaved,
|
84
|
-
reset
|
123
|
+
reset,
|
124
|
+
save,
|
125
|
+
updateMode
|
85
126
|
};
|
86
127
|
};
|
87
128
|
|
88
|
-
export { filterFields, getFirstFieldLabel,
|
129
|
+
export { filterFields, getFirstFieldLabel, listModeIconMap, listModeList, useListConfig };
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
import { OrderItem } from '../../../utils/order';
|
3
|
+
export declare const useOrdering: <Field>(ordering: Ref<OrderItem<Field>[]>, field: Ref<Field>) => {
|
4
|
+
index: import('vue').ComputedRef<number>;
|
5
|
+
setOrdering: () => void;
|
6
|
+
};
|
7
|
+
//# sourceMappingURL=useOrdering.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useOrdering.d.ts","sourceRoot":"","sources":["../../../../src/components/List/use/useOrdering.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,GAAG,EAAW,MAAM,KAAK,CAAA;AAGtC,OAAO,EAAQ,KAAK,SAAS,EAAiB,MAAM,eAAe,CAAA;AAEnE,eAAO,MAAM,WAAW,GAAI,KAAK,YAAY,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,SAAS,GAAG,CAAC,KAAK,CAAC;;uBAmB7D,IAAI;CAkB7B,CAAA"}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { computed } from 'vue';
|
2
|
+
import { useRoute, useRouter } from 'vue-router';
|
3
|
+
import { Order, encodeOrdering } from '../../../utils/order.js';
|
4
|
+
|
5
|
+
const useOrdering = (ordering, field) => {
|
6
|
+
const route = useRoute();
|
7
|
+
const router = useRouter();
|
8
|
+
const index = computed(() => ordering.value.findIndex((item) => item.field === field.value));
|
9
|
+
const updateQuery = (newOrdering) => {
|
10
|
+
const newOrderingValue = encodeOrdering(newOrdering);
|
11
|
+
if (route.query.ordering === newOrderingValue) return;
|
12
|
+
router.replace({
|
13
|
+
query: {
|
14
|
+
...route.query,
|
15
|
+
ordering: newOrderingValue
|
16
|
+
}
|
17
|
+
});
|
18
|
+
};
|
19
|
+
const setOrdering = () => {
|
20
|
+
const newOrdering = ordering.value.slice();
|
21
|
+
if (index.value === -1) {
|
22
|
+
newOrdering.push({ field: field.value, order: Order.ASC });
|
23
|
+
} else if (newOrdering[index.value].order === Order.ASC) {
|
24
|
+
newOrdering[index.value].order = Order.DESC;
|
25
|
+
} else {
|
26
|
+
newOrdering.splice(index.value, 1);
|
27
|
+
}
|
28
|
+
updateQuery(newOrdering);
|
29
|
+
};
|
30
|
+
return {
|
31
|
+
index,
|
32
|
+
setOrdering
|
33
|
+
};
|
34
|
+
};
|
35
|
+
|
36
|
+
export { useOrdering };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent,
|
1
|
+
import { defineComponent, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, withCtx, renderSlot } from 'vue';
|
2
2
|
import { RouterLink } from 'vue-router';
|
3
3
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref, reactive, watch, onBeforeMount, onBeforeUnmount,
|
1
|
+
import { defineComponent, ref, reactive, watch, onBeforeMount, onBeforeUnmount, createElementBlock, openBlock, createVNode, Transition, withCtx, createCommentVNode, normalizeStyle, TransitionGroup, Fragment, renderList, createElementVNode, createBlock, withModifiers, resolveDynamicComponent, mergeProps } from 'vue';
|
2
2
|
import { Modal, initModal } from '../../utils/Modal.js';
|
3
3
|
import { SemanticType } from '../../utils/SemanticType.js';
|
4
4
|
import _sfc_main$1 from './components/ModalCloseButton.vue.js';
|
@@ -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" };
|