Skip to content

fix: add compatConfig #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/TAlert.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ import CloseIcon from '../icons/CloseIcon.vue';
import Transitionable from './misc/Transitionable.vue';
import useConfigurationWithClassesList from '../use/useConfigurationWithClassesList';
import { getVariantPropsWithClassesList } from '../utils/getVariantProps';
import { getGlobalComponentOptions } from '../utils/getGlobalComponentOptions';

// @vue/component
export default defineComponent({
...getGlobalComponentOptions(),
name: 'TAlert',
components: {
CustomIcon,
Expand Down
2 changes: 2 additions & 0 deletions src/components/TButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ import { defineComponent, PropType } from 'vue';
import { TButtonOptions, VueRouteAriaCurrentValue, VueRouteRouteLocationRaw } from '../types';
import useConfiguration from '../use/useConfiguration';
import { getVariantProps } from '../utils/getVariantProps';
import { getGlobalComponentOptions } from '../utils/getGlobalComponentOptions';

export default defineComponent({
...getGlobalComponentOptions(),
name: 'TButton',
props: {
...getVariantProps<TButtonOptions>(),
Expand Down
2 changes: 2 additions & 0 deletions src/components/TCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ import { defineComponent } from 'vue';
import { TCardOptions } from '../types';
import useConfigurationWithClassesList from '../use/useConfigurationWithClassesList';
import { getVariantPropsWithClassesList } from '../utils/getVariantProps';
import { getGlobalComponentOptions } from '../utils/getGlobalComponentOptions';

// @vue/component
export default defineComponent({
...getGlobalComponentOptions(),
name: 'TCard',
props: {
...getVariantPropsWithClassesList<TCardOptions, TCardClassesValidKeys>(),
Expand Down
2 changes: 2 additions & 0 deletions src/components/TCheckbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ import { TCheckboxOptions, TCheckboxValue } from '../types';
import { getVariantProps } from '../utils/getVariantProps';
import useConfiguration from '../use/useConfiguration';
import useVModel from '../use/useVModel';
import { getGlobalComponentOptions } from '../utils/getGlobalComponentOptions';

// @vue/component
export default defineComponent({
...getGlobalComponentOptions(),
name: 'TCheckbox',
props: {
...getVariantProps<TCheckboxOptions>(),
Expand Down
2 changes: 2 additions & 0 deletions src/components/TDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,11 @@ import CrossCircleIcon from '../icons/CrossCircleIcon.vue';
import SolidCrossCircleIcon from '../icons/SolidCrossCircleIcon.vue';
import LoadingIcon from '../icons/LoadingIcon.vue';
import CloseIcon from '../icons/CloseIcon.vue';
import { getGlobalComponentOptions } from '../utils/getGlobalComponentOptions';

// @vue/component
export default defineComponent({
...getGlobalComponentOptions(),
name: 'TDialog',
components: {
TModal,
Expand Down
2 changes: 2 additions & 0 deletions src/components/TDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ import { TDropdownOptions } from '../types';
import useConfigurationWithClassesList from '../use/useConfigurationWithClassesList';
import { getVariantPropsWithClassesList } from '../utils/getVariantProps';
import Transitionable from './misc/Transitionable.vue';
import { getGlobalComponentOptions } from '../utils/getGlobalComponentOptions';

export const validDropdownPlacements = [
'auto',
Expand All @@ -99,6 +100,7 @@ export const validDropdownPlacements = [

// @vue/component
export default defineComponent({
...getGlobalComponentOptions(),
name: 'TDropdown',
components: { Transitionable },
inheritAttrs: false,
Expand Down
2 changes: 2 additions & 0 deletions src/components/TInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ import { TInputOptions, TInputValue } from '../types/components/t-input';
import { getVariantProps } from '../utils/getVariantProps';
import useVModel from '../use/useVModel';
import useConfiguration from '../use/useConfiguration';
import { getGlobalComponentOptions } from '../utils/getGlobalComponentOptions';

export default defineComponent({
...getGlobalComponentOptions(),
name: 'TInput',
props: {
...getVariantProps<TInputOptions>(),
Expand Down
2 changes: 2 additions & 0 deletions src/components/TModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,11 @@ import { getVariantPropsWithClassesList } from '../utils/getVariantProps';
import CloseIcon from '../icons/CloseIcon.vue';
import useVModel from '../use/useVModel';
import Transitionable from './misc/Transitionable.vue';
import { getGlobalComponentOptions } from '../utils/getGlobalComponentOptions';

// @vue/component
export default defineComponent({
...getGlobalComponentOptions(),
name: 'TModal',
components: {
CloseIcon,
Expand Down
2 changes: 2 additions & 0 deletions src/components/TRadio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ import { TRadioOptions, TRadioValue } from '../types';
import useConfiguration from '../use/useConfiguration';
import useVModel from '../use/useVModel';
import { getVariantProps } from '../utils/getVariantProps';
import { getGlobalComponentOptions } from '../utils/getGlobalComponentOptions';

// @vue/component
export default defineComponent({
...getGlobalComponentOptions(),
name: 'TRadio',
props: {
...getVariantProps<TRadioOptions>(),
Expand Down
2 changes: 2 additions & 0 deletions src/components/TRichSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,11 @@ import RichSelectClearButton from './TRichSelect/RichSelectClearButton.vue';
import TDropdown, { validDropdownPlacements } from './TDropdown.vue';
import TSelect from './TSelect.vue';
import { sameWidthModifier } from '../utils/popper';
import { getGlobalComponentOptions } from '../utils/getGlobalComponentOptions';

// @vue/component
export default defineComponent({
...getGlobalComponentOptions(),
name: 'TRichSelect',
components: {
RichSelectTrigger,
Expand Down
2 changes: 2 additions & 0 deletions src/components/TRichSelect/RichSelectClearButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
import { defineComponent } from 'vue';
import CloseIcon from '../../icons/CloseIcon.vue';
import useInjectsClassesListClass from '../../use/useInjectsClassesListClass';
import { getGlobalComponentOptions } from '../../utils/getGlobalComponentOptions';

export default defineComponent({
...getGlobalComponentOptions(),
name: 'RichSelectClearButton',
components: {
CloseIcon,
Expand Down
2 changes: 2 additions & 0 deletions src/components/TRichSelect/RichSelectDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ import RichSelectOptionsList from './RichSelectOptionsList.vue';
import RichSelectSearchInput from './RichSelectSearchInput.vue';
import RichSelectState from './RichSelectState.vue';
import useInjectsClassesListClass from '../../use/useInjectsClassesListClass';
import { getGlobalComponentOptions } from '../../utils/getGlobalComponentOptions';

export default defineComponent({
...getGlobalComponentOptions(),
name: 'RichSelectDropdown',
components: {
RichSelectOptionsList,
Expand Down
2 changes: 2 additions & 0 deletions src/components/TRichSelect/RichSelectOption.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ import {
import { CSSClass, NormalizedOption, normalizedOptionIsDisabled } from '@variantjs/core';
import useInjectsClassesList from '../../use/useInjectsClassesList';
import CheckmarkIcon from '../../icons/CheckmarkIcon.vue';
import { getGlobalComponentOptions } from '../../utils/getGlobalComponentOptions';

export default defineComponent({
...getGlobalComponentOptions(),
name: 'RichSelectOption',
components: {
CheckmarkIcon,
Expand Down
2 changes: 2 additions & 0 deletions src/components/TRichSelect/RichSelectOptionsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ import { debounce, NormalizedOptions, normalizeMeasure } from '@variantjs/core';
import RichSelectOption from './RichSelectOption.vue';
import { TRichSelectOptions } from '../../types';
import useInjectsClassesList from '../../use/useInjectsClassesList';
import { getGlobalComponentOptions } from '../../utils/getGlobalComponentOptions';

export default defineComponent({
...getGlobalComponentOptions(),
name: 'RichSelectOptionsList',
components: {
RichSelectOption,
Expand Down
2 changes: 2 additions & 0 deletions src/components/TRichSelect/RichSelectSearchInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ import {
import { TRichSelectOptions } from '../../types/components/t-rich-select';
import useInjectsClassesList from '../../use/useInjectsClassesList';
import useInjectsConfiguration from '../../use/useInjectsConfiguration';
import { getGlobalComponentOptions } from '../../utils/getGlobalComponentOptions';

export default defineComponent({
...getGlobalComponentOptions(),
name: 'RichSelectSearchInput',
setup() {
const search = ref<HTMLInputElement>();
Expand Down
2 changes: 2 additions & 0 deletions src/components/TRichSelect/RichSelectState.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ import {
import { TRichSelectOptions } from '../../types/components/t-rich-select';
import useInjectsClassesList from '../../use/useInjectsClassesList';
import useInjectsConfiguration from '../../use/useInjectsConfiguration';
import { getGlobalComponentOptions } from '../../utils/getGlobalComponentOptions';

export default defineComponent({
...getGlobalComponentOptions(),
name: 'RichSelectState',
setup() {
const options = inject<ComputedRef<TRichSelectOptions>>('options')!;
Expand Down
2 changes: 2 additions & 0 deletions src/components/TRichSelect/RichSelectTrigger.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ import LoadingIcon from '../../icons/LoadingIcon.vue';
import { TRichSelectOptions } from '../../types/components/t-rich-select';
import useInjectsClassesList from '../../use/useInjectsClassesList';
import useInjectsConfiguration from '../../use/useInjectsConfiguration';
import { getGlobalComponentOptions } from '../../utils/getGlobalComponentOptions';

export default defineComponent({
...getGlobalComponentOptions(),
name: 'RichSelectTrigger',
components: {
RichSelectTriggerTags,
Expand Down
2 changes: 2 additions & 0 deletions src/components/TRichSelect/RichSelectTriggerTags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ import { NormalizedOption } from '@variantjs/core';
import { ComputedRef, defineComponent, inject } from 'vue';
import RichSelectTriggerTagsTag from './RichSelectTriggerTagsTag.vue';
import useInjectsClassesListClass from '../../use/useInjectsClassesListClass';
import { getGlobalComponentOptions } from '../../utils/getGlobalComponentOptions';

export default defineComponent({
...getGlobalComponentOptions(),
name: 'RichSelectTriggerTags',
components: {
RichSelectTriggerTagsTag,
Expand Down
2 changes: 2 additions & 0 deletions src/components/TRichSelect/RichSelectTriggerTagsTag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ import { NormalizedOption, normalizedOptionIsDisabled } from '@variantjs/core';
import { defineComponent, inject, PropType } from 'vue';
import CloseIcon from '../../icons/CloseIcon.vue';
import useInjectsClassesList from '../../use/useInjectsClassesList';
import { getGlobalComponentOptions } from '../../utils/getGlobalComponentOptions';

export default defineComponent({
...getGlobalComponentOptions(),
name: 'RichSelectTriggerTagsTag',
components: {
CloseIcon,
Expand Down
2 changes: 2 additions & 0 deletions src/components/TSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ import useMulipleableVModel from '../use/useMulipleableVModel';
import useMultioptions from '../use/useMultioptions';
import useConfiguration from '../use/useConfiguration';
import { getVariantProps } from '../utils/getVariantProps';
import { getGlobalComponentOptions } from '../utils/getGlobalComponentOptions';

// @vue/component
export default defineComponent({
...getGlobalComponentOptions(),
name: 'TSelect',
components: {
TSelectOption,
Expand Down
2 changes: 2 additions & 0 deletions src/components/TSelect/TSelectOption.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
<script lang="ts">
import { NormalizedOption } from '@variantjs/core';
import { defineComponent, PropType } from 'vue';
import { getGlobalComponentOptions } from '../../utils/getGlobalComponentOptions';

// @vue/component
export default defineComponent({
...getGlobalComponentOptions(),
name: 'TSelectOption',
props: {
option: {
Expand Down
2 changes: 2 additions & 0 deletions src/components/TTag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ import { defineComponent } from 'vue';
import { TTagOptions } from '../types';
import useConfiguration from '../use/useConfiguration';
import { getVariantProps } from '../utils/getVariantProps';
import { getGlobalComponentOptions } from '../utils/getGlobalComponentOptions';

// @vue/component
export default defineComponent({
...getGlobalComponentOptions(),
name: 'TTag',
props: {
...getVariantProps<TTagOptions>(),
Expand Down
2 changes: 2 additions & 0 deletions src/components/TTextarea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ import { TTextareaOptions, TTextareaValue } from '../types';
import { getVariantProps } from '../utils/getVariantProps';
import useVModel from '../use/useVModel';
import useConfiguration from '../use/useConfiguration';
import { getGlobalComponentOptions } from '../utils/getGlobalComponentOptions';

export default defineComponent({
...getGlobalComponentOptions(),
name: 'TTextarea',
props: {
...getVariantProps<TTextareaOptions>(),
Expand Down
2 changes: 2 additions & 0 deletions src/components/TToggle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ import {
import useConfigurationWithClassesList from '../use/useConfigurationWithClassesList';
import { getVariantPropsWithClassesList } from '../utils/getVariantProps';
import { TToggleOptions, TToggleValue } from '../types/components/t-toggle';
import { getGlobalComponentOptions } from '../utils/getGlobalComponentOptions';

// @vue/component
export default defineComponent({
...getGlobalComponentOptions(),
name: 'TToggle',
props: {
...getVariantPropsWithClassesList<TToggleOptions, TToggleClassesValidKeys>(),
Expand Down
2 changes: 2 additions & 0 deletions src/components/misc/TextPlaceholder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
<script lang="ts">
import { defineComponent } from 'vue';
import useInjectsClassesListClass from '../../use/useInjectsClassesListClass';
import { getGlobalComponentOptions } from '../../utils/getGlobalComponentOptions';

export default defineComponent({
...getGlobalComponentOptions(),
name: 'TextPlaceholder',
props: {
classProperty: {
Expand Down
2 changes: 2 additions & 0 deletions src/components/misc/Transitionable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@

<script lang="ts">
import { defineComponent } from 'vue';
import { getGlobalComponentOptions } from '../../utils/getGlobalComponentOptions';

// @vue/component
export default defineComponent({
...getGlobalComponentOptions(),
name: 'Transitionable',
props: {
classesList: {
Expand Down
7 changes: 7 additions & 0 deletions src/utils/getGlobalComponentOptions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export const getGlobalComponentOptions = () => {
return {
compatConfig: {
MODE: 3,
},
};
}