vueless 0.0.579 → 0.0.580
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/composables/useUI.ts +46 -60
- package/constants.js +3 -0
- package/package.json +1 -1
- package/types.ts +39 -48
- package/ui.button/UButton.vue +2 -3
- package/ui.button/types.ts +2 -2
- package/ui.button-link/ULink.vue +23 -24
- package/ui.button-link/storybook/stories.ts +2 -2
- package/ui.button-link/types.ts +7 -6
- package/ui.button-toggle/UToggle.vue +15 -16
- package/ui.button-toggle/storybook/stories.ts +2 -2
- package/ui.button-toggle/types.ts +6 -4
- package/ui.button-toggle-item/UToggleItem.vue +29 -20
- package/ui.button-toggle-item/storybook/stories.ts +2 -2
- package/ui.button-toggle-item/types.ts +5 -4
- package/ui.container-accordion/UAccordion.vue +22 -17
- package/ui.container-accordion/storybook/stories.ts +2 -2
- package/ui.container-accordion/types.ts +5 -4
- package/ui.container-card/UCard.vue +12 -5
- package/ui.container-card/storybook/stories.ts +2 -2
- package/ui.container-card/types.ts +4 -3
- package/ui.container-col/UCol.vue +11 -12
- package/ui.container-col/storybook/stories.ts +2 -2
- package/ui.container-col/types.ts +5 -3
- package/ui.container-divider/UDivider.vue +13 -13
- package/ui.container-divider/storybook/stories.ts +2 -2
- package/ui.container-divider/types.ts +5 -3
- package/ui.container-group/UGroup.vue +10 -8
- package/ui.container-group/storybook/stories.ts +2 -2
- package/ui.container-group/types.ts +5 -3
- package/ui.container-groups/UGroups.vue +10 -7
- package/ui.container-groups/storybook/stories.ts +2 -2
- package/ui.container-groups/types.ts +5 -3
- package/ui.container-modal/UModal.vue +43 -43
- package/ui.container-modal/storybook/stories.ts +2 -3
- package/ui.container-modal/types.ts +5 -3
- package/ui.container-modal-confirm/UModalConfirm.vue +14 -17
- package/ui.container-modal-confirm/storybook/stories.ts +8 -6
- package/ui.container-modal-confirm/types.ts +5 -3
- package/ui.container-page/UPage.vue +32 -31
- package/ui.container-page/storybook/stories.ts +2 -2
- package/ui.container-page/types.ts +4 -3
- package/ui.container-row/URow.vue +10 -13
- package/ui.container-row/storybook/stories.ts +2 -2
- package/ui.container-row/types.ts +5 -3
- package/ui.data-list/UDataList.vue +40 -51
- package/ui.data-list/storybook/stories.ts +2 -2
- package/ui.data-list/types.ts +4 -4
- package/ui.data-table/UTable.vue +61 -60
- package/ui.data-table/types.ts +4 -3
- package/ui.dropdown-badge/UDropdownBadge.vue +21 -25
- package/ui.dropdown-badge/storybook/stories.ts +3 -3
- package/ui.dropdown-badge/types.ts +4 -3
- package/ui.dropdown-button/UDropdownButton.vue +20 -23
- package/ui.dropdown-button/storybook/stories.ts +3 -3
- package/ui.dropdown-button/types.ts +4 -3
- package/ui.dropdown-link/UDropdownLink.vue +20 -23
- package/ui.dropdown-link/storybook/stories.ts +3 -3
- package/ui.dropdown-link/types.ts +4 -3
- package/ui.dropdown-list/UDropdownList.vue +28 -32
- package/ui.dropdown-list/storybook/stories.ts +4 -4
- package/ui.dropdown-list/types.ts +4 -4
- package/ui.form-calendar/UCalendar.vue +36 -34
- package/ui.form-calendar/UCalendarDayView.vue +28 -23
- package/ui.form-calendar/UCalendarMonthView.vue +24 -19
- package/ui.form-calendar/UCalendarYearView.vue +24 -19
- package/ui.form-calendar/config.ts +2 -2
- package/ui.form-calendar/storybook/stories.ts +2 -2
- package/ui.form-calendar/types.ts +8 -7
- package/ui.form-checkbox/UCheckbox.vue +23 -21
- package/ui.form-checkbox/storybook/stories.ts +2 -2
- package/ui.form-checkbox/types.ts +7 -5
- package/ui.form-checkbox-group/UCheckboxGroup.vue +17 -14
- package/ui.form-checkbox-group/storybook/stories.ts +2 -2
- package/ui.form-checkbox-group/types.ts +6 -6
- package/ui.form-checkbox-multi-state/UCheckboxMultiState.vue +33 -14
- package/ui.form-checkbox-multi-state/storybook/stories.ts +2 -2
- package/ui.form-checkbox-multi-state/types.ts +4 -4
- package/ui.form-color-picker/UColorPicker.vue +23 -21
- package/ui.form-color-picker/storybook/stories.ts +2 -2
- package/ui.form-color-picker/types.ts +5 -5
- package/ui.form-date-picker/UDatePicker.vue +42 -27
- package/ui.form-date-picker/config.ts +5 -5
- package/ui.form-date-picker/types.ts +5 -2
- package/ui.form-date-picker-range/UDatePickerRange.vue +80 -53
- package/ui.form-date-picker-range/types.ts +7 -4
- package/ui.form-input/UInput.vue +32 -28
- package/ui.form-input/storybook/stories.ts +2 -2
- package/ui.form-input/types.ts +5 -3
- package/ui.form-input-file/UInputFile.vue +37 -32
- package/ui.form-input-file/storybook/stories.ts +2 -2
- package/ui.form-input-file/types.ts +6 -4
- package/ui.form-input-money/UInputMoney.vue +13 -18
- package/ui.form-input-money/storybook/stories.ts +2 -2
- package/ui.form-input-money/types.ts +5 -3
- package/ui.form-input-number/UInputNumber.vue +23 -24
- package/ui.form-input-number/types.ts +4 -2
- package/ui.form-input-rating/UInputRating.vue +24 -19
- package/ui.form-input-rating/storybook/stories.ts +2 -2
- package/ui.form-input-rating/types.ts +5 -3
- package/ui.form-input-search/UInputSearch.vue +22 -20
- package/ui.form-input-search/storybook/stories.ts +2 -2
- package/ui.form-input-search/types.ts +5 -3
- package/ui.form-label/ULabel.vue +19 -11
- package/ui.form-label/config.ts +0 -1
- package/ui.form-label/storybook/stories.ts +2 -2
- package/ui.form-label/types.ts +10 -8
- package/ui.form-radio/URadio.vue +22 -12
- package/ui.form-radio/storybook/stories.ts +2 -2
- package/ui.form-radio/types.ts +5 -5
- package/ui.form-radio-group/URadioGroup.vue +16 -12
- package/ui.form-radio-group/storybook/stories.ts +2 -2
- package/ui.form-radio-group/types.ts +7 -7
- package/ui.form-select/USelect.vue +53 -39
- package/ui.form-switch/USwitch.vue +30 -23
- package/ui.form-switch/storybook/stories.ts +2 -2
- package/ui.form-switch/types.ts +5 -3
- package/ui.form-textarea/UTextarea.vue +19 -15
- package/ui.form-textarea/storybook/stories.ts +2 -2
- package/ui.form-textarea/types.ts +5 -3
- package/ui.image-avatar/UAvatar.vue +12 -11
- package/ui.image-avatar/types.ts +4 -2
- package/ui.image-icon/UIcon.vue +31 -18
- package/ui.image-icon/storybook/stories.ts +2 -2
- package/ui.image-icon/types.ts +12 -5
- package/ui.loader/ULoader.vue +11 -9
- package/ui.loader/storybook/stories.ts +2 -2
- package/ui.loader/types.ts +10 -3
- package/ui.loader-overlay/ULoaderOverlay.vue +11 -7
- package/ui.loader-overlay/storybook/stories.ts +2 -2
- package/ui.loader-overlay/types.ts +4 -3
- package/ui.loader-progress/ULoaderProgress.vue +14 -10
- package/ui.loader-progress/storybook/stories.ts +2 -2
- package/ui.loader-progress/types.ts +4 -3
- package/ui.navigation-pagination/UPagination.vue +34 -33
- package/ui.navigation-pagination/storybook/stories.ts +2 -2
- package/ui.navigation-pagination/types.ts +4 -3
- package/ui.navigation-progress/StepperProgress.vue +25 -12
- package/ui.navigation-progress/UProgress.vue +12 -12
- package/ui.navigation-progress/types.ts +4 -3
- package/ui.navigation-tab/UTab.vue +18 -9
- package/ui.navigation-tab/storybook/stories.ts +2 -2
- package/ui.navigation-tab/types.ts +4 -3
- package/ui.navigation-tabs/UTabs.vue +13 -8
- package/ui.navigation-tabs/storybook/stories.ts +2 -2
- package/ui.navigation-tabs/types.ts +5 -5
- package/ui.other-dot/UDot.vue +10 -8
- package/ui.other-dot/storybook/stories.ts +2 -2
- package/ui.other-dot/types.ts +4 -3
- package/ui.text-alert/UAlert.vue +24 -27
- package/ui.text-alert/storybook/stories.ts +2 -2
- package/ui.text-alert/types.ts +4 -3
- package/ui.text-badge/UBadge.vue +25 -13
- package/ui.text-badge/storybook/stories.ts +2 -2
- package/ui.text-badge/types.ts +4 -3
- package/ui.text-block/UText.vue +10 -9
- package/ui.text-block/storybook/stories.ts +2 -2
- package/ui.text-block/types.ts +4 -3
- package/ui.text-empty/UEmpty.vue +22 -19
- package/ui.text-empty/storybook/stories.ts +2 -2
- package/ui.text-empty/types.ts +4 -3
- package/ui.text-file/UFile.vue +23 -20
- package/ui.text-file/storybook/stories.ts +2 -2
- package/ui.text-file/types.ts +4 -3
- package/ui.text-files/UFiles.vue +16 -10
- package/ui.text-files/storybook/stories.ts +2 -2
- package/ui.text-files/types.ts +4 -3
- package/ui.text-header/UHeader.vue +11 -11
- package/ui.text-header/storybook/stories.ts +2 -2
- package/ui.text-header/types.ts +4 -3
- package/ui.text-money/UMoney.vue +20 -27
- package/ui.text-money/storybook/stories.ts +2 -2
- package/ui.text-money/types.ts +4 -3
- package/ui.text-notify/UNotify.vue +58 -41
- package/ui.text-notify/config.ts +3 -3
- package/ui.text-notify/constants.ts +18 -20
- package/ui.text-notify/storybook/stories.ts +2 -2
- package/ui.text-notify/types.ts +10 -5
- package/ui.text-notify/utilNotify.ts +17 -11
- package/utils/helper.ts +5 -5
- package/utils/storybook.ts +11 -1
- package/utils/ui.ts +19 -9
- package/web-types.json +521 -368
- package/ui.button-link/useAttrs.ts +0 -20
- package/ui.button-toggle/useAttrs.ts +0 -12
- package/ui.button-toggle-item/useAttrs.ts +0 -29
- package/ui.container-accordion/useAttrs.ts +0 -26
- package/ui.container-card/useAttrs.ts +0 -12
- package/ui.container-col/useAttrs.ts +0 -12
- package/ui.container-divider/useAttrs.ts +0 -17
- package/ui.container-group/useAttrs.ts +0 -12
- package/ui.container-groups/useAttrs.ts +0 -12
- package/ui.container-modal/useAttrs.ts +0 -12
- package/ui.container-modal-confirm/useAttrs.ts +0 -12
- package/ui.container-page/useAttrs.ts +0 -12
- package/ui.container-row/useAttrs.ts +0 -12
- package/ui.data-list/useAttrs.ts +0 -12
- package/ui.data-table/useAttrs.ts +0 -31
- package/ui.dropdown-badge/useAttrs.ts +0 -26
- package/ui.dropdown-button/useAttrs.ts +0 -26
- package/ui.dropdown-link/useAttrs.ts +0 -26
- package/ui.dropdown-list/useAttrs.ts +0 -12
- package/ui.form-calendar/useAttrs.ts +0 -12
- package/ui.form-checkbox/useAttrs.ts +0 -29
- package/ui.form-checkbox-group/useAttrs.ts +0 -12
- package/ui.form-checkbox-multi-state/useAttrs.ts +0 -37
- package/ui.form-color-picker/useAttrs.ts +0 -15
- package/ui.form-date-picker/useAttrs.ts +0 -43
- package/ui.form-date-picker-range/useAttrs.ts +0 -53
- package/ui.form-input/useAttrs.ts +0 -31
- package/ui.form-input-file/useAttrs.ts +0 -21
- package/ui.form-input-money/useAttrs.ts +0 -15
- package/ui.form-input-number/useAttrs.ts +0 -15
- package/ui.form-input-rating/useAttrs.ts +0 -14
- package/ui.form-input-search/useAttrs.ts +0 -15
- package/ui.form-label/useAttrs.ts +0 -20
- package/ui.form-radio/useAttrs.ts +0 -29
- package/ui.form-radio-group/useAttrs.ts +0 -12
- package/ui.form-select/useAttrs.js +0 -19
- package/ui.form-switch/useAttrs.ts +0 -28
- package/ui.form-textarea/useAttrs.ts +0 -21
- package/ui.image-avatar/useAttrs.ts +0 -12
- package/ui.image-icon/useAttrs.ts +0 -12
- package/ui.loader/useAttrs.ts +0 -12
- package/ui.loader-overlay/useAttrs.ts +0 -12
- package/ui.loader-progress/useAttrs.ts +0 -12
- package/ui.navigation-pagination/useAttrs.ts +0 -12
- package/ui.navigation-progress/useAttrs.ts +0 -17
- package/ui.navigation-tab/useAttrs.ts +0 -28
- package/ui.navigation-tabs/useAttrs.ts +0 -12
- package/ui.other-dot/useAttrs.ts +0 -12
- package/ui.text-alert/useAttrs.ts +0 -12
- package/ui.text-badge/useAttrs.ts +0 -21
- package/ui.text-block/useAttrs.ts +0 -12
- package/ui.text-empty/useAttrs.ts +0 -12
- package/ui.text-file/useAttrs.ts +0 -12
- package/ui.text-files/useAttrs.ts +0 -12
- package/ui.text-header/useAttrs.ts +0 -12
- package/ui.text-money/useAttrs.ts +0 -12
- package/ui.text-notify/useAttrs.ts +0 -12
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { computed, useSlots } from "vue";
|
|
2
|
-
import useUI from "../composables/useUI.ts";
|
|
3
|
-
import { hasSlotContent } from "../utils/helper.ts";
|
|
4
|
-
|
|
5
|
-
import defaultConfig from "./config.ts";
|
|
6
|
-
|
|
7
|
-
import type { UseAttrs } from "../types.ts";
|
|
8
|
-
import type { ULinkProps, Config } from "./types.ts";
|
|
9
|
-
|
|
10
|
-
export default function useAttrs(props: ULinkProps): UseAttrs<Config> {
|
|
11
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config, "link");
|
|
12
|
-
const slots = useSlots();
|
|
13
|
-
|
|
14
|
-
const mutatedProps = computed(() => ({
|
|
15
|
-
/* component state, not a props */
|
|
16
|
-
defaultSlot: hasSlotContent(slots["default"]),
|
|
17
|
-
}));
|
|
18
|
-
|
|
19
|
-
return { config, ...getKeysAttrs(mutatedProps) };
|
|
20
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.ts";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.ts";
|
|
4
|
-
|
|
5
|
-
import type { UseAttrs } from "../types.ts";
|
|
6
|
-
import type { UToggleProps, Config } from "./types.ts";
|
|
7
|
-
|
|
8
|
-
export default function useAttrs(props: UToggleProps): UseAttrs<Config> {
|
|
9
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
10
|
-
|
|
11
|
-
return { config, ...getKeysAttrs() };
|
|
12
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { computed, toValue, type Ref } from "vue";
|
|
2
|
-
import useUI from "../composables/useUI.ts";
|
|
3
|
-
|
|
4
|
-
import defaultConfig from "./config.ts";
|
|
5
|
-
|
|
6
|
-
import type { UseAttrs } from "../types.ts";
|
|
7
|
-
import type { UToggleItemProps, Config } from "./types.ts";
|
|
8
|
-
|
|
9
|
-
type itemState = {
|
|
10
|
-
isSelected: Ref<boolean>;
|
|
11
|
-
separated: boolean;
|
|
12
|
-
variant: string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default function useAttrs(
|
|
16
|
-
props: UToggleItemProps,
|
|
17
|
-
{ isSelected, separated, variant }: itemState,
|
|
18
|
-
): UseAttrs<Config> {
|
|
19
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
20
|
-
|
|
21
|
-
const mutatedProps = computed(() => ({
|
|
22
|
-
variant: toValue(variant),
|
|
23
|
-
separated: toValue(separated),
|
|
24
|
-
/* component state, not a props */
|
|
25
|
-
selected: isSelected.value,
|
|
26
|
-
}));
|
|
27
|
-
|
|
28
|
-
return { config, ...getKeysAttrs(mutatedProps) };
|
|
29
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { computed } from "vue";
|
|
2
|
-
import useUI from "../composables/useUI.ts";
|
|
3
|
-
|
|
4
|
-
import defaultConfig from "./config.ts";
|
|
5
|
-
|
|
6
|
-
import type { Ref } from "vue";
|
|
7
|
-
import type { UseAttrs } from "../types.ts";
|
|
8
|
-
import type { UAccordionProps, Config } from "./types.ts";
|
|
9
|
-
|
|
10
|
-
type ComponentState = {
|
|
11
|
-
isOpened: Ref<boolean>;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export default function useAttrs(
|
|
15
|
-
props: UAccordionProps,
|
|
16
|
-
{ isOpened }: ComponentState,
|
|
17
|
-
): UseAttrs<Config> {
|
|
18
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
19
|
-
|
|
20
|
-
const mutatedProps = computed(() => ({
|
|
21
|
-
/* component state, not a props */
|
|
22
|
-
opened: isOpened.value,
|
|
23
|
-
}));
|
|
24
|
-
|
|
25
|
-
return { config, ...getKeysAttrs(mutatedProps) };
|
|
26
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.ts";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.ts";
|
|
4
|
-
|
|
5
|
-
import type { UseAttrs } from "../types.ts";
|
|
6
|
-
import type { UCardProps, Config } from "./types.ts";
|
|
7
|
-
|
|
8
|
-
export default function useAttrs(props: UCardProps): UseAttrs<Config> {
|
|
9
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
10
|
-
|
|
11
|
-
return { config, ...getKeysAttrs() };
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.ts";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.ts";
|
|
4
|
-
|
|
5
|
-
import type { UseAttrs } from "../types.ts";
|
|
6
|
-
import type { UColProps, Config } from "./types.ts";
|
|
7
|
-
|
|
8
|
-
export default function useAttrs(props: UColProps): UseAttrs<Config> {
|
|
9
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
10
|
-
|
|
11
|
-
return { config, ...getKeysAttrs() };
|
|
12
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { computed } from "vue";
|
|
2
|
-
import useUI from "../composables/useUI.ts";
|
|
3
|
-
|
|
4
|
-
import defaultConfig from "./config.ts";
|
|
5
|
-
|
|
6
|
-
import type { UseAttrs } from "../types.ts";
|
|
7
|
-
import type { UDividerProps, Config } from "./types.ts";
|
|
8
|
-
|
|
9
|
-
export default function useAttrs(props: UDividerProps): UseAttrs<Config> {
|
|
10
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
11
|
-
|
|
12
|
-
const mutatedProps = computed(() => ({
|
|
13
|
-
label: Boolean(props.label),
|
|
14
|
-
}));
|
|
15
|
-
|
|
16
|
-
return { config, ...getKeysAttrs(mutatedProps) };
|
|
17
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.ts";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.ts";
|
|
4
|
-
|
|
5
|
-
import type { UseAttrs } from "../types.ts";
|
|
6
|
-
import type { UGroupProps, Config } from "./types.ts";
|
|
7
|
-
|
|
8
|
-
export default function useAttrs(props: UGroupProps): UseAttrs<Config> {
|
|
9
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
10
|
-
|
|
11
|
-
return { config, ...getKeysAttrs() };
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.ts";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.ts";
|
|
4
|
-
|
|
5
|
-
import type { UseAttrs } from "../types.ts";
|
|
6
|
-
import type { UGroupsProps, Config } from "./types.ts";
|
|
7
|
-
|
|
8
|
-
export default function useAttrs(props: UGroupsProps): UseAttrs<Config> {
|
|
9
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
10
|
-
|
|
11
|
-
return { config, ...getKeysAttrs() };
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.ts";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.ts";
|
|
4
|
-
|
|
5
|
-
import type { UseAttrs } from "../types.ts";
|
|
6
|
-
import type { UModalProps, Config } from "./types.ts";
|
|
7
|
-
|
|
8
|
-
export default function useAttrs(props: UModalProps): UseAttrs<Config> {
|
|
9
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config, "wrapper");
|
|
10
|
-
|
|
11
|
-
return { config, ...getKeysAttrs() };
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.ts";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.ts";
|
|
4
|
-
|
|
5
|
-
import type { UseAttrs } from "../types.ts";
|
|
6
|
-
import type { UModalConfirmProps, Config } from "./types.ts";
|
|
7
|
-
|
|
8
|
-
export default function useAttrs(props: UModalConfirmProps): UseAttrs<Config> {
|
|
9
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
10
|
-
|
|
11
|
-
return { config, ...getKeysAttrs() };
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.ts";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.ts";
|
|
4
|
-
|
|
5
|
-
import type { UseAttrs } from "../types.ts";
|
|
6
|
-
import type { UPageProps, Config } from "./types.ts";
|
|
7
|
-
|
|
8
|
-
export default function useAttrs(props: UPageProps): UseAttrs<Config> {
|
|
9
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config, "wrapper");
|
|
10
|
-
|
|
11
|
-
return { config, ...getKeysAttrs() };
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.ts";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.ts";
|
|
4
|
-
|
|
5
|
-
import type { UseAttrs } from "../types.ts";
|
|
6
|
-
import type { URowProps, Config } from "./types.ts";
|
|
7
|
-
|
|
8
|
-
export default function useAttrs(props: URowProps): UseAttrs<Config> {
|
|
9
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
10
|
-
|
|
11
|
-
return { config, ...getKeysAttrs() };
|
|
12
|
-
}
|
package/ui.data-list/useAttrs.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.ts";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.ts";
|
|
4
|
-
|
|
5
|
-
import type { UseAttrs } from "../types.ts";
|
|
6
|
-
import type { UDataListProps, Config } from "./types.ts";
|
|
7
|
-
|
|
8
|
-
export default function useAttrs(props: UDataListProps): UseAttrs<Config> {
|
|
9
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
10
|
-
|
|
11
|
-
return { config, ...getKeysAttrs() };
|
|
12
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { computed } from "vue";
|
|
2
|
-
import useUI from "../composables/useUI.ts";
|
|
3
|
-
|
|
4
|
-
import defaultConfig from "./config.ts";
|
|
5
|
-
|
|
6
|
-
import type { Row, UTableProps, Config } from "./types.ts";
|
|
7
|
-
import type { UseAttrs } from "../types.ts";
|
|
8
|
-
import type { Ref } from "vue";
|
|
9
|
-
|
|
10
|
-
export type ComponentState = {
|
|
11
|
-
tableRows: Ref<Row[]>;
|
|
12
|
-
isShownActionsHeader: Ref<boolean>;
|
|
13
|
-
isHeaderSticky: Ref<boolean>;
|
|
14
|
-
isFooterSticky: Ref<boolean>;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export default function useAttrs(
|
|
18
|
-
props: UTableProps,
|
|
19
|
-
{ isShownActionsHeader, isHeaderSticky, isFooterSticky }: ComponentState,
|
|
20
|
-
): UseAttrs<Config> {
|
|
21
|
-
const { config, getKeysAttrs } = useUI(defaultConfig, () => props.config);
|
|
22
|
-
|
|
23
|
-
const mutatedProps = computed(() => ({
|
|
24
|
-
/* component state, not a props */
|
|
25
|
-
actionsHeader: isShownActionsHeader.value,
|
|
26
|
-
stickedHeader: isHeaderSticky.value,
|
|
27
|
-
stickedFooter: isFooterSticky.value,
|
|
28
|
-
}));
|
|
29
|
-
|
|
30
|
-
return { config, ...getKeysAttrs(mutatedProps) };
|
|
31
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { computed } from "vue";
|
|
2
|
-
import useUI from "../composables/useUI.ts";
|
|
3
|
-
|
|
4
|
-
import defaultConfig from "./config.ts";
|
|
5
|
-
|
|
6
|
-
import type { Ref } from "vue";
|
|
7
|
-
import type { Config, UDropdownBadgeProps } from "./types.ts";
|
|
8
|
-
import type { UseAttrs } from "../types.ts";
|
|
9
|
-
|
|
10
|
-
interface ComponentState {
|
|
11
|
-
isShownOptions: Ref<boolean>;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export default function useAttrs(
|
|
15
|
-
props: UDropdownBadgeProps,
|
|
16
|
-
{ isShownOptions }: ComponentState,
|
|
17
|
-
): UseAttrs<Config> {
|
|
18
|
-
const { config, getKeysAttrs } = useUI(defaultConfig, () => props.config);
|
|
19
|
-
|
|
20
|
-
const mutatedProps = computed(() => ({
|
|
21
|
-
/* component state, not a props */
|
|
22
|
-
opened: isShownOptions.value,
|
|
23
|
-
}));
|
|
24
|
-
|
|
25
|
-
return { config, ...getKeysAttrs(mutatedProps) };
|
|
26
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { computed } from "vue";
|
|
2
|
-
import useUI from "../composables/useUI.ts";
|
|
3
|
-
|
|
4
|
-
import defaultConfig from "./config.ts";
|
|
5
|
-
|
|
6
|
-
import type { Ref } from "vue";
|
|
7
|
-
import type { Config, UDropdownButtonProps } from "./types.ts";
|
|
8
|
-
import type { UseAttrs } from "../types.ts";
|
|
9
|
-
|
|
10
|
-
interface DropdownButtonState {
|
|
11
|
-
isShownOptions: Ref<boolean>;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export default function useAttrs(
|
|
15
|
-
props: UDropdownButtonProps,
|
|
16
|
-
{ isShownOptions }: DropdownButtonState,
|
|
17
|
-
): UseAttrs<Config> {
|
|
18
|
-
const { config, getKeysAttrs } = useUI(defaultConfig, () => props.config);
|
|
19
|
-
|
|
20
|
-
const mutatedProps = computed(() => ({
|
|
21
|
-
/* component state, not a props */
|
|
22
|
-
opened: isShownOptions.value,
|
|
23
|
-
}));
|
|
24
|
-
|
|
25
|
-
return { config, ...getKeysAttrs(mutatedProps) };
|
|
26
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { computed } from "vue";
|
|
2
|
-
import useUI from "../composables/useUI.ts";
|
|
3
|
-
|
|
4
|
-
import defaultConfig from "./config.ts";
|
|
5
|
-
|
|
6
|
-
import type { Ref } from "vue";
|
|
7
|
-
import type { Config, UDropdownLinkProps } from "./types.ts";
|
|
8
|
-
import type { UseAttrs } from "../types.ts";
|
|
9
|
-
|
|
10
|
-
interface ComponentState {
|
|
11
|
-
isShownOptions: Ref<boolean>;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export default function useAttrs(
|
|
15
|
-
props: UDropdownLinkProps,
|
|
16
|
-
{ isShownOptions }: ComponentState,
|
|
17
|
-
): UseAttrs<Config> {
|
|
18
|
-
const { config, getKeysAttrs } = useUI(defaultConfig, () => props.config);
|
|
19
|
-
|
|
20
|
-
const mutatedProps = computed(() => ({
|
|
21
|
-
/* component state, not a props */
|
|
22
|
-
opened: isShownOptions.value,
|
|
23
|
-
}));
|
|
24
|
-
|
|
25
|
-
return { config, ...getKeysAttrs(mutatedProps) };
|
|
26
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.ts";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.ts";
|
|
4
|
-
|
|
5
|
-
import type { Config, UDropdownListProps } from "./types.ts";
|
|
6
|
-
import type { UseAttrs } from "../types.ts";
|
|
7
|
-
|
|
8
|
-
export default function useAttrs(props: UDropdownListProps): UseAttrs<Config> {
|
|
9
|
-
const { config, getKeysAttrs } = useUI(defaultConfig, () => props.config);
|
|
10
|
-
|
|
11
|
-
return { config, ...getKeysAttrs() };
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.ts";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.ts";
|
|
4
|
-
|
|
5
|
-
import type { UseAttrs } from "../types.ts";
|
|
6
|
-
import type { UCalendarProps, Config } from "./types.ts";
|
|
7
|
-
|
|
8
|
-
export default function useAttrs(props: UCalendarProps<unknown>): UseAttrs<Config> {
|
|
9
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
10
|
-
|
|
11
|
-
return { config, ...getKeysAttrs() };
|
|
12
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { computed } from "vue";
|
|
2
|
-
import useUI from "../composables/useUI.ts";
|
|
3
|
-
|
|
4
|
-
import defaultConfig from "./config.ts";
|
|
5
|
-
|
|
6
|
-
import type { Ref } from "vue";
|
|
7
|
-
import type { UseAttrs } from "../types.ts";
|
|
8
|
-
import type { UCheckboxProps, Config } from "./types.ts";
|
|
9
|
-
|
|
10
|
-
type ComponentState = {
|
|
11
|
-
checkboxColor: Ref<string>;
|
|
12
|
-
checkboxSize: Ref<string>;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default function useAttrs(
|
|
16
|
-
props: UCheckboxProps,
|
|
17
|
-
{ checkboxColor, checkboxSize }: ComponentState,
|
|
18
|
-
): UseAttrs<Config> {
|
|
19
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
20
|
-
|
|
21
|
-
const mutatedProps = computed(() => ({
|
|
22
|
-
color: checkboxColor.value,
|
|
23
|
-
size: checkboxSize.value,
|
|
24
|
-
label: Boolean(props.label),
|
|
25
|
-
error: Boolean(props.error),
|
|
26
|
-
}));
|
|
27
|
-
|
|
28
|
-
return { config, ...getKeysAttrs(mutatedProps) };
|
|
29
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.ts";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.ts";
|
|
4
|
-
|
|
5
|
-
import type { UseAttrs } from "../types.ts";
|
|
6
|
-
import type { UCheckboxGroupProps, Config } from "./types.ts";
|
|
7
|
-
|
|
8
|
-
export default function useAttrs(props: UCheckboxGroupProps): UseAttrs<Config> {
|
|
9
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
10
|
-
|
|
11
|
-
return { config, ...getKeysAttrs() };
|
|
12
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { computed } from "vue";
|
|
2
|
-
import useUI from "../composables/useUI.ts";
|
|
3
|
-
import defaultConfig from "./config.ts";
|
|
4
|
-
|
|
5
|
-
import type { Ref } from "vue";
|
|
6
|
-
import type { UseAttrs } from "../types.ts";
|
|
7
|
-
import type { UCheckboxMultiStateProps, Config } from "./types.ts";
|
|
8
|
-
import type { Config as CheckboxConfig } from "../ui.form-checkbox/types.ts";
|
|
9
|
-
|
|
10
|
-
type ComponentState = {
|
|
11
|
-
selected: Ref<{ icon?: string }>;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export default function useAttrs(
|
|
15
|
-
props: UCheckboxMultiStateProps,
|
|
16
|
-
{ selected }: ComponentState,
|
|
17
|
-
): UseAttrs<Config> {
|
|
18
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
19
|
-
const keysAttrs = getKeysAttrs();
|
|
20
|
-
|
|
21
|
-
const checkboxAttrs = keysAttrs.multiStateCheckboxAttrs as Ref<{
|
|
22
|
-
config?: { defaults?: CheckboxConfig };
|
|
23
|
-
}>;
|
|
24
|
-
|
|
25
|
-
keysAttrs.multiStateCheckboxAttrs = computed(() => {
|
|
26
|
-
if (selected.value.icon) {
|
|
27
|
-
checkboxAttrs.value = checkboxAttrs.value || {};
|
|
28
|
-
checkboxAttrs.value.config = checkboxAttrs.value.config || {};
|
|
29
|
-
checkboxAttrs.value.config.defaults = checkboxAttrs.value.config.defaults || {};
|
|
30
|
-
checkboxAttrs.value.config.defaults.checkedIcon = selected.value.icon;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return checkboxAttrs.value;
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
return { config, ...keysAttrs };
|
|
37
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.ts";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.ts";
|
|
4
|
-
|
|
5
|
-
import type { UseAttrs } from "../types.ts";
|
|
6
|
-
import type { UColorPickerProps, Config } from "./types.ts";
|
|
7
|
-
|
|
8
|
-
export default function useAttrs(props: UColorPickerProps): UseAttrs<Config> {
|
|
9
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
10
|
-
|
|
11
|
-
return {
|
|
12
|
-
config,
|
|
13
|
-
...getKeysAttrs(),
|
|
14
|
-
};
|
|
15
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { computed, watchEffect, type Ref } from "vue";
|
|
2
|
-
import { merge } from "lodash-es";
|
|
3
|
-
import useUI from "../composables/useUI.ts";
|
|
4
|
-
|
|
5
|
-
import defaultConfig from "./config.ts";
|
|
6
|
-
import { Direction } from "../composables/useAutoPosition.ts";
|
|
7
|
-
|
|
8
|
-
import type { UseAttrs } from "../types.ts";
|
|
9
|
-
import type { UDatePickerProps, Config } from "./types.ts";
|
|
10
|
-
import type { Config as UCalendarConfig } from "../ui.form-calendar/types.ts";
|
|
11
|
-
|
|
12
|
-
interface ComponentState {
|
|
13
|
-
isTop: Ref<boolean>;
|
|
14
|
-
isRight: Ref<boolean>;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export default function useAttrs(
|
|
18
|
-
props: UDatePickerProps<unknown>,
|
|
19
|
-
{ isTop, isRight }: ComponentState,
|
|
20
|
-
): UseAttrs<Config> {
|
|
21
|
-
const { config, getKeysAttrs } = useUI(defaultConfig, () => props.config);
|
|
22
|
-
|
|
23
|
-
const mutatedProps = computed(() => ({
|
|
24
|
-
openDirectionY: isTop.value ? Direction.Top : Direction.Bottom,
|
|
25
|
-
openDirectionX: isRight.value ? Direction.Right : Direction.Left,
|
|
26
|
-
error: Boolean(props.error),
|
|
27
|
-
description: Boolean(props.description),
|
|
28
|
-
}));
|
|
29
|
-
|
|
30
|
-
const keysAttrs = getKeysAttrs(mutatedProps);
|
|
31
|
-
|
|
32
|
-
/* Merging DatePicker's i18n translations into Calendar's i18n translations. */
|
|
33
|
-
watchEffect(() => {
|
|
34
|
-
const calendarAttrs = keysAttrs.calendarAttrs as Ref<{ config: UCalendarConfig }>;
|
|
35
|
-
const calendarConfig = calendarAttrs.value.config || {};
|
|
36
|
-
|
|
37
|
-
if (!calendarConfig.i18n || props.config?.i18n) {
|
|
38
|
-
calendarAttrs.value.config.i18n = merge(calendarConfig.i18n, config.value.i18n);
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
return { config, ...keysAttrs };
|
|
43
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { computed, watchEffect } from "vue";
|
|
2
|
-
import { merge } from "lodash-es";
|
|
3
|
-
|
|
4
|
-
import useUI from "../composables/useUI.ts";
|
|
5
|
-
|
|
6
|
-
import defaultConfig from "./config.ts";
|
|
7
|
-
import { Direction } from "../composables/useAutoPosition.ts";
|
|
8
|
-
|
|
9
|
-
import type { Ref } from "vue";
|
|
10
|
-
import type { UseAttrs } from "../types.ts";
|
|
11
|
-
import type { UDatePickerRangeProps, Config, IsPeriod } from "./types.ts";
|
|
12
|
-
import type { Config as UCalendarConfig } from "../ui.form-calendar/types.ts";
|
|
13
|
-
|
|
14
|
-
export interface DatePickerRangeState {
|
|
15
|
-
isShownMenu: Ref<boolean>;
|
|
16
|
-
isTop: Ref<boolean>;
|
|
17
|
-
isRight: Ref<boolean>;
|
|
18
|
-
isPeriod: Ref<IsPeriod>;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export default function useAttrs(
|
|
22
|
-
props: UDatePickerRangeProps<unknown>,
|
|
23
|
-
{ isShownMenu, isTop, isRight, isPeriod }: DatePickerRangeState,
|
|
24
|
-
): UseAttrs<Config> {
|
|
25
|
-
const { config, getKeysAttrs } = useUI(defaultConfig, () => props.config);
|
|
26
|
-
|
|
27
|
-
const mutatedProps = computed(() => ({
|
|
28
|
-
openDirectionY: isTop.value ? Direction.Top : Direction.Bottom,
|
|
29
|
-
openDirectionX: isRight.value ? Direction.Right : Direction.Left,
|
|
30
|
-
error: Boolean(props.error),
|
|
31
|
-
description: Boolean(props.description),
|
|
32
|
-
/* component state, not a props */
|
|
33
|
-
opened: isShownMenu.value,
|
|
34
|
-
week: isPeriod.value.week,
|
|
35
|
-
month: isPeriod.value.month,
|
|
36
|
-
quarter: isPeriod.value.quarter,
|
|
37
|
-
year: isPeriod.value.year,
|
|
38
|
-
}));
|
|
39
|
-
|
|
40
|
-
const keysAttrs = getKeysAttrs(mutatedProps);
|
|
41
|
-
|
|
42
|
-
/* Merging DatePickerRange's i18n translations into Calendar's i18n translations. */
|
|
43
|
-
watchEffect(() => {
|
|
44
|
-
const calendarAttrs = keysAttrs.calendarAttrs as Ref<{ config: UCalendarConfig }>;
|
|
45
|
-
const calendarConfig = calendarAttrs.value.config || {};
|
|
46
|
-
|
|
47
|
-
if (!calendarConfig.i18n || props.config?.i18n) {
|
|
48
|
-
calendarAttrs.value.config.i18n = merge(calendarConfig.i18n, config.value.i18n);
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
return { config, ...keysAttrs };
|
|
53
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { computed } from "vue";
|
|
2
|
-
import useUI from "../composables/useUI.ts";
|
|
3
|
-
|
|
4
|
-
import defaultConfig from "./config.ts";
|
|
5
|
-
|
|
6
|
-
import type { ComputedRef } from "vue";
|
|
7
|
-
import type { UseAttrs } from "../types.ts";
|
|
8
|
-
import type { UInputProps, Config } from "./types.ts";
|
|
9
|
-
|
|
10
|
-
type ComponentState = {
|
|
11
|
-
applyPasswordClasses: ComputedRef<boolean>;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export default function useAttrs(
|
|
15
|
-
props: UInputProps,
|
|
16
|
-
{ applyPasswordClasses }: ComponentState,
|
|
17
|
-
): UseAttrs<Config> {
|
|
18
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
19
|
-
|
|
20
|
-
const mutatedProps = computed(() => ({
|
|
21
|
-
error: Boolean(props.error),
|
|
22
|
-
label: Boolean(props.label),
|
|
23
|
-
/* component state, not a props */
|
|
24
|
-
typePassword: applyPasswordClasses.value,
|
|
25
|
-
}));
|
|
26
|
-
|
|
27
|
-
return {
|
|
28
|
-
config,
|
|
29
|
-
...getKeysAttrs(mutatedProps),
|
|
30
|
-
};
|
|
31
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { computed } from "vue";
|
|
2
|
-
import useUI from "../composables/useUI.ts";
|
|
3
|
-
|
|
4
|
-
import defaultConfig from "./config.ts";
|
|
5
|
-
|
|
6
|
-
import type { UseAttrs } from "../types.ts";
|
|
7
|
-
import type { UInputFileProps, Config } from "./types.ts";
|
|
8
|
-
|
|
9
|
-
export default function useAttrs(props: UInputFileProps): UseAttrs<Config> {
|
|
10
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
11
|
-
|
|
12
|
-
const mutatedProps = computed(() => ({
|
|
13
|
-
error: Boolean(props.error),
|
|
14
|
-
label: Boolean(props.label),
|
|
15
|
-
}));
|
|
16
|
-
|
|
17
|
-
return {
|
|
18
|
-
config,
|
|
19
|
-
...getKeysAttrs(mutatedProps),
|
|
20
|
-
};
|
|
21
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.ts";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.ts";
|
|
4
|
-
|
|
5
|
-
import type { UseAttrs } from "../types.ts";
|
|
6
|
-
import type { UInputMoneyProps, Config } from "./types.ts";
|
|
7
|
-
|
|
8
|
-
export default function useAttrs(props: UInputMoneyProps): UseAttrs<Config> {
|
|
9
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
10
|
-
|
|
11
|
-
return {
|
|
12
|
-
config,
|
|
13
|
-
...getKeysAttrs(),
|
|
14
|
-
};
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import useUI from "../composables/useUI.ts";
|
|
2
|
-
|
|
3
|
-
import defaultConfig from "./config.ts";
|
|
4
|
-
|
|
5
|
-
import type { UseAttrs } from "../types.ts";
|
|
6
|
-
import type { UInputNumberProps, Config } from "./types.ts";
|
|
7
|
-
|
|
8
|
-
export default function useAttrs(props: UInputNumberProps): UseAttrs<Config> {
|
|
9
|
-
const { config, getKeysAttrs } = useUI<Config>(defaultConfig, () => props.config);
|
|
10
|
-
|
|
11
|
-
return {
|
|
12
|
-
config,
|
|
13
|
-
...getKeysAttrs(),
|
|
14
|
-
};
|
|
15
|
-
}
|