Skip to content
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

Update vue #1529

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
126 changes: 69 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
},
"peerDependencies": {
"@prefecthq/vue-compositions": "^1.11.0",
"vue": "^3.4.27",
"vue": "^3.5.0",
"vue-router": "^4.1.6"
},
"dependencies": {
Expand Down
12 changes: 4 additions & 8 deletions src/components/BaseInput/PBaseInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@
</div>
</template>

<script lang="ts">
export default {
name: 'BaseInput',
expose: [],
inheritAttrs: false,
}
</script>

<script lang="ts" setup>
import { computed, ref } from 'vue'
import PIcon from '@/components/Icon/PIcon.vue'
Expand All @@ -36,6 +28,10 @@
import { State } from '@/types/state'
import { asArray } from '@/utilities'

defineOptions({
inheritAttrs: false,
})

const props = defineProps<{
state?: State,
prepend?: string,
Expand Down
12 changes: 4 additions & 8 deletions src/components/Checkbox/PCheckbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,17 @@
</PLabel>
</template>

<script lang="ts">
export default {
name: 'PCheckbox',
expose: [],
inheritAttrs: false,
}
</script>

<script lang="ts" setup>
import { computed, useSlots } from 'vue'
import { useAttrsStylesAndClasses } from '@/compositions'
import { CheckboxModel } from '@/types/checkbox'
import { State } from '@/types/state'
import { isDefined } from '@/utilities'

defineOptions({
inheritAttrs: false,
})

const props = defineProps<{
modelValue: CheckboxModel | null,
label?: string,
Expand Down
12 changes: 4 additions & 8 deletions src/components/CheckboxGroup/PCheckboxGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,16 @@
</fieldset>
</template>

<script lang="ts">
export default {
name: 'PCheckboxGroup',
expose: [],
inheritAttrs: false,
}
</script>

<script lang="ts" setup>
import { computed } from 'vue'
import { PCheckbox } from '@/components/Checkbox'
import { useAttrsStylesAndClasses } from '@/compositions'
import { normalizeSelectOption, SelectOptionNormalized } from '@/types'

defineOptions({
inheritAttrs: false,
})

const props = defineProps<{
modelValue: string[] | number[] | boolean[],
options: string[] | number[] | boolean[] | SelectOptionNormalized[],
Expand Down
7 changes: 0 additions & 7 deletions src/components/Code/PCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@
<pre v-else class="p-code-container p-code-container--block"><code><slot /></code></pre>
</template>

<script lang="ts">
export default {
name: 'PCode',
expose: [],
}
</script>

<script lang="ts" setup>
defineProps<{
/**
Expand Down
12 changes: 4 additions & 8 deletions src/components/Drawer/PDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,17 @@
</teleport>
</template>

<script lang="ts">
export default {
name: 'PDrawer',
expose: [],
inheritAttrs: false,
}
</script>

<script lang="ts" setup>
import { computed, useAttrs } from 'vue'
import { useDrawer, useGlobalEventListener } from '@/compositions'
import { PLayoutResizable } from '@/layouts'
import { DrawerPlacement, keys } from '@/types'
import { isKeyEvent } from '@/utilities'

defineOptions({
inheritAttrs: false,
})

const props = withDefaults(defineProps<{
resizable?: boolean,
placement?: DrawerPlacement,
Expand Down
12 changes: 4 additions & 8 deletions src/components/Frame/PFrame.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,14 @@
</teleport>
</template>

<script lang="ts">
export default {
name: 'PFrame',
expose: [],
inheritAttrs: false,
}
</script>

<script lang="ts" setup>
import { useElementRect } from '@prefecthq/vue-compositions'
import { ref, watch, computed } from 'vue'

defineOptions({
inheritAttrs: false,
})

const props = defineProps<{
bodyClass: Record<string, boolean> | string | string[],
}>()
Expand Down
12 changes: 4 additions & 8 deletions src/components/IconButtonMenu/PIconButtonMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@
</PPopOver>
</template>

<script lang="ts">
export default {
name: 'PIconButtonMenu',
expose: [],
inheritAttrs: false,
}
</script>

<script lang="ts" setup>
import { ref } from 'vue'
import PButton from '@/components/Button/PButton.vue'
Expand All @@ -35,6 +27,10 @@
import { Icon } from '@/types/icon'
import { topRight, bottomRight, bottomLeft, topLeft } from '@/utilities/position'

defineOptions({
inheritAttrs: false,
})

withDefaults(defineProps<{
icon?: Icon,
}>(), {
Expand Down
Loading
Loading