@adminforth/quick-filters 3.0.0 → 4.0.1
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/build.log +2 -2
- package/custom/FiltersArea.vue +2 -1
- package/custom/QickFiltersSelect.vue +1 -1
- package/custom/UniversalSearchInput.vue +2 -2
- package/dist/custom/FiltersArea.vue +2 -1
- package/dist/custom/QickFiltersSelect.vue +1 -1
- package/dist/custom/UniversalSearchInput.vue +2 -2
- package/dist/index.js +1 -0
- package/index.ts +2 -1
- package/package.json +2 -2
package/build.log
CHANGED
|
@@ -10,5 +10,5 @@ custom/UniversalSearchInput.vue
|
|
|
10
10
|
custom/tsconfig.json
|
|
11
11
|
custom/types.ts
|
|
12
12
|
|
|
13
|
-
sent 5,
|
|
14
|
-
total size is 5,
|
|
13
|
+
sent 5,754 bytes received 115 bytes 11,738.00 bytes/sec
|
|
14
|
+
total size is 5,327 speedup is 0.91
|
package/custom/FiltersArea.vue
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
2
|
+
<!-- a narrow list header gives the filters a full row and fills it, a wide one keeps them in its single row -->
|
|
3
|
+
<div class="grid w-full grid-cols-[repeat(auto-fit,minmax(min(15rem,100%),1fr))] gap-2 @4xl/header:flex @4xl/header:w-auto @4xl/header:flex-wrap @4xl/header:items-center">
|
|
3
4
|
<template v-for="filter in meta.options" :key="filter.name" >
|
|
4
5
|
<UniversalSearchInput
|
|
5
6
|
v-if="filter.hasSearchInput"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="af-universal-search flex items-center gap-1">
|
|
2
|
+
<div class="af-universal-search flex w-full items-center gap-1 @4xl/header:w-auto">
|
|
3
3
|
<slot name="prefix" />
|
|
4
4
|
<!-- enter is handled on the wrapper so it fires once: Input spreads attrs on both its root and the input -->
|
|
5
|
-
<div class="w-64" @keyup.enter="applyImmediate">
|
|
5
|
+
<div class="min-w-0 flex-1 @4xl/header:w-64 @4xl/header:flex-none" @keyup.enter="applyImmediate">
|
|
6
6
|
<Input
|
|
7
7
|
v-model="localValue"
|
|
8
8
|
type="text"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
2
|
+
<!-- a narrow list header gives the filters a full row and fills it, a wide one keeps them in its single row -->
|
|
3
|
+
<div class="grid w-full grid-cols-[repeat(auto-fit,minmax(min(15rem,100%),1fr))] gap-2 @4xl/header:flex @4xl/header:w-auto @4xl/header:flex-wrap @4xl/header:items-center">
|
|
3
4
|
<template v-for="filter in meta.options" :key="filter.name" >
|
|
4
5
|
<UniversalSearchInput
|
|
5
6
|
v-if="filter.hasSearchInput"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="af-universal-search flex items-center gap-1">
|
|
2
|
+
<div class="af-universal-search flex w-full items-center gap-1 @4xl/header:w-auto">
|
|
3
3
|
<slot name="prefix" />
|
|
4
4
|
<!-- enter is handled on the wrapper so it fires once: Input spreads attrs on both its root and the input -->
|
|
5
|
-
<div class="w-64" @keyup.enter="applyImmediate">
|
|
5
|
+
<div class="min-w-0 flex-1 @4xl/header:w-64 @4xl/header:flex-none" @keyup.enter="applyImmediate">
|
|
6
6
|
<Input
|
|
7
7
|
v-model="localValue"
|
|
8
8
|
type="text"
|
package/dist/index.js
CHANGED
|
@@ -47,6 +47,7 @@ export default class extends AdminForthPlugin {
|
|
|
47
47
|
resourceConfig.options.pageInjections.list.beforeActionButtons.push({
|
|
48
48
|
file: this.componentPath('FiltersArea.vue'),
|
|
49
49
|
meta: {
|
|
50
|
+
thinEnoughToShrinkTable: true,
|
|
50
51
|
pluginInstanceId: this.pluginInstanceId,
|
|
51
52
|
resourceId: this.resourceConfig.resourceId,
|
|
52
53
|
options: frontendOptions
|
package/index.ts
CHANGED
|
@@ -42,7 +42,8 @@ export default class extends AdminForthPlugin {
|
|
|
42
42
|
{
|
|
43
43
|
file: this.componentPath('FiltersArea.vue'),
|
|
44
44
|
meta: {
|
|
45
|
-
|
|
45
|
+
thinEnoughToShrinkTable: true,
|
|
46
|
+
pluginInstanceId: this.pluginInstanceId,
|
|
46
47
|
resourceId: this.resourceConfig.resourceId,
|
|
47
48
|
options: frontendOptions
|
|
48
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/quick-filters",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"typescript": "^5.7.3"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"adminforth": "^4.
|
|
30
|
+
"adminforth": "^4.2.0"
|
|
31
31
|
},
|
|
32
32
|
"release": {
|
|
33
33
|
"plugins": [
|