@adminforth/universal-search 1.4.0 → 1.4.2

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.
@@ -20,8 +20,6 @@ steps:
20
20
  image: node:20
21
21
  when:
22
22
  - event: push
23
- volumes:
24
- - /var/run/docker.sock:/var/run/docker.sock
25
23
  commands:
26
24
  - apt update && apt install -y rsync
27
25
  - export $(cat /woodpecker/deploy.vault.env | xargs)
@@ -34,8 +32,8 @@ steps:
34
32
  when:
35
33
  - event: push
36
34
  status: [failure, success]
35
+ - event: push
37
36
  image: curlimages/curl
38
37
  commands:
39
38
  - export $(cat /woodpecker/deploy.vault.env | xargs)
40
39
  - /bin/sh ./.woodpecker/buildSlackNotify.sh
41
-
package/build.log CHANGED
@@ -7,5 +7,5 @@ custom/
7
7
  custom/UniversalSearchInput.vue
8
8
  custom/tsconfig.json
9
9
 
10
- sent 3,256 bytes received 58 bytes 6,628.00 bytes/sec
11
- total size is 3,032 speedup is 0.91
10
+ sent 2,849 bytes received 58 bytes 5,814.00 bytes/sec
11
+ total size is 2,625 speedup is 0.90
@@ -1,22 +1,22 @@
1
1
  <template>
2
2
  <div class="af-universal-search flex items-center gap-1">
3
3
  <slot name="prefix" />
4
- <input
5
- v-model="localValue"
6
- type="text"
7
- :placeholder="props.meta?.placeholder ?? ''"
8
- class="border rounded px-2 py-1 text-sm dark:bg-gray-800 dark:border-gray-600"
9
- :class="localValue ? 'w-[222px]' : 'w-64'"
10
- @keyup.enter="applyImmediate"
11
- />
12
- <button
13
- v-if="localValue"
14
- @click="clear"
15
- class="flex items-center py-1 px-2 text-sm font-medium text-lightListViewButtonText focus:outline-none bg-lightListViewButtonBackground rounded border border-lightListViewButtonBorder hover:bg-lightListViewButtonBackgroundHover hover:text-lightListViewButtonTextHover focus:z-10 focus:ring-4 focus:ring-lightListViewButtonFocusRing dark:focus:ring-darkListViewButtonFocusRing dark:bg-darkListViewButtonBackground dark:text-darkListViewButtonText dark:border-darkListViewButtonBorder dark:hover:text-darkListViewButtonTextHover dark:hover:bg-darkListViewButtonBackgroundHover rounded-default"
16
- type="button"
17
- >
18
-
19
- </button>
4
+ <div class="relative w-64">
5
+ <input
6
+ v-model="localValue"
7
+ type="text"
8
+ :placeholder="props.meta?.placeholder ?? ''"
9
+ class="w-full border rounded text-sm dark:bg-gray-800 dark:border-gray-600 dark:text-white px-2 py-1 pr-6"
10
+ @keyup.enter="applyImmediate"
11
+ >
12
+ <p
13
+ v-if="localValue"
14
+ @click="clear"
15
+ class="absolute right-2 top-1/2 -translate-y-1/2 hover:cursor-pointer hover:text-gray-600 dark:text-white dark:hover:text-gray-400 "
16
+ >
17
+
18
+ </p>
19
+ </div>
20
20
  <slot name="suffix" />
21
21
  </div>
22
22
  </template>
@@ -1,22 +1,22 @@
1
1
  <template>
2
2
  <div class="af-universal-search flex items-center gap-1">
3
3
  <slot name="prefix" />
4
- <input
5
- v-model="localValue"
6
- type="text"
7
- :placeholder="props.meta?.placeholder ?? ''"
8
- class="border rounded px-2 py-1 text-sm dark:bg-gray-800 dark:border-gray-600"
9
- :class="localValue ? 'w-[222px]' : 'w-64'"
10
- @keyup.enter="applyImmediate"
11
- />
12
- <button
13
- v-if="localValue"
14
- @click="clear"
15
- class="flex items-center py-1 px-2 text-sm font-medium text-lightListViewButtonText focus:outline-none bg-lightListViewButtonBackground rounded border border-lightListViewButtonBorder hover:bg-lightListViewButtonBackgroundHover hover:text-lightListViewButtonTextHover focus:z-10 focus:ring-4 focus:ring-lightListViewButtonFocusRing dark:focus:ring-darkListViewButtonFocusRing dark:bg-darkListViewButtonBackground dark:text-darkListViewButtonText dark:border-darkListViewButtonBorder dark:hover:text-darkListViewButtonTextHover dark:hover:bg-darkListViewButtonBackgroundHover rounded-default"
16
- type="button"
17
- >
18
-
19
- </button>
4
+ <div class="relative w-64">
5
+ <input
6
+ v-model="localValue"
7
+ type="text"
8
+ :placeholder="props.meta?.placeholder ?? ''"
9
+ class="w-full border rounded text-sm dark:bg-gray-800 dark:border-gray-600 dark:text-white px-2 py-1 pr-6"
10
+ @keyup.enter="applyImmediate"
11
+ >
12
+ <p
13
+ v-if="localValue"
14
+ @click="clear"
15
+ class="absolute right-2 top-1/2 -translate-y-1/2 hover:cursor-pointer hover:text-gray-600 dark:text-white dark:hover:text-gray-400 "
16
+ >
17
+
18
+ </p>
19
+ </div>
20
20
  <slot name="suffix" />
21
21
  </div>
22
22
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/universal-search",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "Universal quick search input plugin for AdminForth (injected before action buttons)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -18,9 +18,35 @@
18
18
  "publishConfig": {
19
19
  "access": "public"
20
20
  },
21
+ "release": {
22
+ "plugins": [
23
+ "@semantic-release/commit-analyzer",
24
+ "@semantic-release/release-notes-generator",
25
+ "@semantic-release/npm",
26
+ "@semantic-release/github",
27
+ [
28
+ "semantic-release-slack-bot",
29
+ {
30
+ "notifyOnSuccess": true,
31
+ "notifyOnFail": true,
32
+ "slackIcon": ":package:",
33
+ "markdownReleaseNotes": true
34
+ }
35
+ ]
36
+ ],
37
+ "branches": [
38
+ "main",
39
+ {
40
+ "name": "next",
41
+ "prerelease": true
42
+ }
43
+ ]
44
+ },
21
45
  "devDependencies": {
22
46
  "@types/node": "^22.18.6",
23
47
  "adminforth": "^2.7.17",
48
+ "semantic-release": "^24.2.9",
49
+ "semantic-release-slack-bot": "^4.0.2",
24
50
  "typescript": "^5.9.2"
25
51
  }
26
52
  }