@prefecthq/prefect-ui-library 3.0.2 → 3.0.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/{RunsPageWithDefaultFilter-BCl1-RE3.mjs → RunsPageWithDefaultFilter-C2Bxz1gx.mjs} +2 -2
- package/dist/{RunsPageWithDefaultFilter-BCl1-RE3.mjs.map → RunsPageWithDefaultFilter-C2Bxz1gx.mjs.map} +1 -1
- package/dist/{index-O7uqAfLu.mjs → index-DlSGmSSb.mjs} +5522 -5514
- package/dist/{index-O7uqAfLu.mjs.map → index-DlSGmSSb.mjs.map} +1 -1
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +24 -24
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/components/BlockDocumentsTable.vue +7 -5
- package/src/components/DeploymentList.vue +4 -3
- package/src/components/FlowList.vue +4 -3
- package/src/components/VariablesTable.vue +3 -2
- package/src/maps/savedSearchFilter.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prefecthq/prefect-ui-library",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"vue-tsc": "^2.0.17"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@prefecthq/prefect-design": "^2.10.
|
|
79
|
+
"@prefecthq/prefect-design": "^2.10.5",
|
|
80
80
|
"@prefecthq/vue-charts": "^2.0.3",
|
|
81
81
|
"@prefecthq/vue-compositions": "^1.11.4",
|
|
82
82
|
"vee-validate": "^4.7.0",
|
|
@@ -58,13 +58,13 @@
|
|
|
58
58
|
</template>
|
|
59
59
|
</p-table>
|
|
60
60
|
|
|
61
|
-
<p-pager v-if="pages > 1" v-model:page="page" :pages="pages" />
|
|
61
|
+
<p-pager v-if="pages > 1" v-model:limit="limit" v-model:page="page" :pages="pages" />
|
|
62
62
|
</div>
|
|
63
63
|
</template>
|
|
64
64
|
|
|
65
65
|
<script lang="ts" setup>
|
|
66
66
|
import { media, TableColumn, PEmptyResults } from '@prefecthq/prefect-design'
|
|
67
|
-
import { NumberRouteParam, useDebouncedRef, useRouteQueryParam } from '@prefecthq/vue-compositions'
|
|
67
|
+
import { NumberRouteParam, useDebouncedRef, useLocalStorage, useRouteQueryParam } from '@prefecthq/vue-compositions'
|
|
68
68
|
import merge from 'lodash.merge'
|
|
69
69
|
import { computed, ref, ComputedRef } from 'vue'
|
|
70
70
|
import BlockSchemaCapabilities from '@/components/BlockSchemaCapabilities.vue'
|
|
@@ -113,7 +113,9 @@
|
|
|
113
113
|
const searchTerm = ref('')
|
|
114
114
|
const searchTermDebounced = useDebouncedRef(searchTerm, 500)
|
|
115
115
|
|
|
116
|
-
const {
|
|
116
|
+
const { value: limit } = useLocalStorage('block-documents-table-limit', 10)
|
|
117
|
+
|
|
118
|
+
const { filter: routeFilter } = useBlockDocumentsFilterFromRoute({
|
|
117
119
|
blockSchemas: {
|
|
118
120
|
blockCapabilities: capabilities,
|
|
119
121
|
},
|
|
@@ -123,11 +125,11 @@
|
|
|
123
125
|
blockTypes: {
|
|
124
126
|
slug: blockTypes,
|
|
125
127
|
},
|
|
126
|
-
limit
|
|
128
|
+
limit,
|
|
127
129
|
sort: 'BLOCK_TYPE_AND_NAME_ASC',
|
|
128
130
|
})
|
|
129
131
|
|
|
130
|
-
const { blockDocuments, total, pages, subscriptions } = useBlockDocuments(() => merge({}, props.filter,
|
|
132
|
+
const { blockDocuments, total, pages, subscriptions } = useBlockDocuments(() => merge({}, props.filter, routeFilter), {
|
|
131
133
|
page,
|
|
132
134
|
})
|
|
133
135
|
|
|
@@ -114,13 +114,13 @@
|
|
|
114
114
|
</template>
|
|
115
115
|
</p-table>
|
|
116
116
|
|
|
117
|
-
<p-pager v-if="pages > 1" v-model:page="page" :pages="pages" />
|
|
117
|
+
<p-pager v-if="pages > 1" v-model:limit="limit" v-model:page="page" :pages="pages" />
|
|
118
118
|
</p-content>
|
|
119
119
|
</template>
|
|
120
120
|
|
|
121
121
|
<script lang="ts" setup>
|
|
122
122
|
import { TableColumn, media } from '@prefecthq/prefect-design'
|
|
123
|
-
import { NumberRouteParam, useDebouncedRef, useRouteQueryParam } from '@prefecthq/vue-compositions'
|
|
123
|
+
import { NumberRouteParam, useDebouncedRef, useLocalStorage, useRouteQueryParam } from '@prefecthq/vue-compositions'
|
|
124
124
|
import { secondsInWeek } from 'date-fns/constants'
|
|
125
125
|
import { snakeCase } from 'lodash'
|
|
126
126
|
import merge from 'lodash.merge'
|
|
@@ -160,12 +160,13 @@
|
|
|
160
160
|
|
|
161
161
|
const nameLike = ref<string>()
|
|
162
162
|
const nameLikeDebounced = useDebouncedRef(nameLike, 1200)
|
|
163
|
+
const { value: limit } = useLocalStorage('deployment-list-limit', 10)
|
|
163
164
|
|
|
164
165
|
const { filter, clear, isCustomFilter } = useDeploymentsFilterFromRoute(merge({}, props.filter, {
|
|
165
166
|
deployments: {
|
|
166
167
|
flowOrDeploymentNameLike: nameLikeDebounced,
|
|
167
168
|
},
|
|
168
|
-
limit
|
|
169
|
+
limit,
|
|
169
170
|
}), props.prefix)
|
|
170
171
|
|
|
171
172
|
const page = useRouteQueryParam('page', NumberRouteParam, 1)
|
|
@@ -81,13 +81,13 @@
|
|
|
81
81
|
</template>
|
|
82
82
|
</p-table>
|
|
83
83
|
|
|
84
|
-
<p-pager v-if="pages > 1" v-model:page="page" :pages="pages" />
|
|
84
|
+
<p-pager v-if="pages > 1" v-model:page="page" v-model:limit="limit" :pages="pages" />
|
|
85
85
|
</p-content>
|
|
86
86
|
</template>
|
|
87
87
|
|
|
88
88
|
<script lang="ts" setup>
|
|
89
89
|
import { ColumnClassesMethod, TableColumn } from '@prefecthq/prefect-design'
|
|
90
|
-
import { NumberRouteParam, useDebouncedRef, useRouteQueryParam, useSubscriptionWithDependencies } from '@prefecthq/vue-compositions'
|
|
90
|
+
import { NumberRouteParam, useDebouncedRef, useLocalStorage, useRouteQueryParam, useSubscriptionWithDependencies } from '@prefecthq/vue-compositions'
|
|
91
91
|
import { secondsInWeek } from 'date-fns/constants'
|
|
92
92
|
import merge from 'lodash.merge'
|
|
93
93
|
import { computed, ref, toRef } from 'vue'
|
|
@@ -121,13 +121,14 @@
|
|
|
121
121
|
const can = useCan()
|
|
122
122
|
const routes = useWorkspaceRoutes()
|
|
123
123
|
|
|
124
|
+
const { value: limit } = useLocalStorage('flow-list-limit', 10)
|
|
124
125
|
const flowNameLike = ref<string>()
|
|
125
126
|
const flowNameLikeDebounced = useDebouncedRef(flowNameLike, 1200)
|
|
126
127
|
const { filter, clear, isCustomFilter } = useFlowsFilterFromRoute(merge({}, props.filter, {
|
|
127
128
|
flows: {
|
|
128
129
|
nameLike: flowNameLikeDebounced,
|
|
129
130
|
},
|
|
130
|
-
limit
|
|
131
|
+
limit,
|
|
131
132
|
}))
|
|
132
133
|
|
|
133
134
|
const page = useRouteQueryParam('page', NumberRouteParam, 1)
|
|
@@ -68,13 +68,13 @@
|
|
|
68
68
|
</template>
|
|
69
69
|
</p-table>
|
|
70
70
|
|
|
71
|
-
<p-pager v-if="variables.length" v-model:page="page" :pages="pages" />
|
|
71
|
+
<p-pager v-if="variables.length" v-model:limit="limit" v-model:page="page" :pages="pages" />
|
|
72
72
|
</p-content>
|
|
73
73
|
</template>
|
|
74
74
|
|
|
75
75
|
<script lang="ts" setup>
|
|
76
76
|
import { PTable, PEmptyResults, TableColumn, ClassValue } from '@prefecthq/prefect-design'
|
|
77
|
-
import { useDebouncedRef, useSubscription } from '@prefecthq/vue-compositions'
|
|
77
|
+
import { useDebouncedRef, useLocalStorage, useSubscription } from '@prefecthq/vue-compositions'
|
|
78
78
|
import merge from 'lodash.merge'
|
|
79
79
|
import { computed, ref } from 'vue'
|
|
80
80
|
import { VariablesDeleteButton, VariableMenu, ResultsCount, SearchInput, SelectedCount, VariableTagsInput } from '@/components'
|
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
return (page.value - 1) * DEFAULT_LIMIT
|
|
102
102
|
})
|
|
103
103
|
const pages = computed(() => Math.ceil((variablesCount.value ?? DEFAULT_LIMIT) / DEFAULT_LIMIT))
|
|
104
|
+
const { value: limit } = useLocalStorage('variables-table-limit', 10)
|
|
104
105
|
|
|
105
106
|
const { filter, isCustomFilter, clear } = useVariablesFilter(merge({}, props.filter, {
|
|
106
107
|
variables: {
|
|
@@ -58,8 +58,8 @@ export const mapSavedSearchFilterToTaskRunsFilter: MapFunction<SavedSearchFilter
|
|
|
58
58
|
state: {
|
|
59
59
|
name: stateNames,
|
|
60
60
|
},
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
startTimeAfter: startDate,
|
|
62
|
+
startTimeBefore: endDate,
|
|
63
63
|
},
|
|
64
64
|
}
|
|
65
65
|
}
|