@pristy/pristy-libvue 1.21.2 → 1.21.3
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/README.md +12 -0
- package/dist/pristy-libvue.es.js +1936 -1918
- package/dist/pristy-libvue.es.js.map +1 -1
- package/dist/pristy-libvue.umd.js +6 -6
- package/dist/pristy-libvue.umd.js.map +1 -1
- package/dist/src/components/search/AdvancedSearchPanel.vue.d.ts.map +1 -1
- package/dist/src/components/search/ExactSearch.vue.d.ts.map +1 -1
- package/dist/src/i18n/index.d.ts +2 -0
- package/dist/src/i18n/index.d.ts.map +1 -1
- package/dist/src/services/userSearchQuery.d.ts +31 -0
- package/dist/src/services/userSearchQuery.d.ts.map +1 -0
- package/dist/src/stores/search.d.ts +2 -0
- package/dist/src/stores/search.d.ts.map +1 -1
- package/package.json +13 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdvancedSearchPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/search/AdvancedSearchPanel.vue"],"names":[],"mappings":";;;;;;;;;;;;;AAiNA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAsdA,KAzWK,CAyWL,aAzWmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAyWnB,
|
|
1
|
+
{"version":3,"file":"AdvancedSearchPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/search/AdvancedSearchPanel.vue"],"names":[],"mappings":";;;;;;;;;;;;;AAiNA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAsdA,KAzWK,CAyWL,aAzWmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAyWnB,KAhOuB;;2BAgOvB,KA7LU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BA6LV,KAzWK,CAyWL,aAzWmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAgXG,oBAAoB;yBACjB,uBAAuB;yBAEvB,uBAAuB;sBAC1B,oBAAoB;mBACvB,iBAAiB;mBAGjB,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExactSearch.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/search/ExactSearch.vue"],"names":[],"mappings":";;AAgCA;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ExactSearch.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/search/ExactSearch.vue"],"names":[],"mappings":";;AAgCA;;;;;;;;;;;;;;;;;;;;6BAuKm+E,KAAK;;uBAAs0B,KAAK;;;;;;;;;;;;;;;8BA9FrxG,uBAAuB"}
|
package/dist/src/i18n/index.d.ts
CHANGED
|
@@ -100,6 +100,7 @@ declare const i18n: I18n<{
|
|
|
100
100
|
getAccessToken: {
|
|
101
101
|
"404": string;
|
|
102
102
|
"500": string;
|
|
103
|
+
"501": string;
|
|
103
104
|
};
|
|
104
105
|
getCollaboraExtensions: {
|
|
105
106
|
"404": string;
|
|
@@ -932,6 +933,7 @@ declare const i18n: I18n<{
|
|
|
932
933
|
getAccessToken: {
|
|
933
934
|
"404": string;
|
|
934
935
|
"500": string;
|
|
936
|
+
"501": string;
|
|
935
937
|
};
|
|
936
938
|
getCollaboraExtensions: {
|
|
937
939
|
"404": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/index.js"],"names":[],"mappings":";;AAsBA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/index.js"],"names":[],"mappings":";;AAsBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAOG"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Splits a raw user input into search terms.
|
|
3
|
+
*
|
|
4
|
+
* A double-quoted segment yields a single term, so it keeps being rendered as
|
|
5
|
+
* a phrase by the SEARCH_USER_QUERY template.
|
|
6
|
+
*
|
|
7
|
+
* @param {string} userQuery raw user input
|
|
8
|
+
* @returns {string[]} the terms, in input order
|
|
9
|
+
*/
|
|
10
|
+
export function splitUserQueryTerms(userQuery: string): string[];
|
|
11
|
+
/**
|
|
12
|
+
* Builds the loose (non exact) AFTS query: the SEARCH_USER_QUERY template is
|
|
13
|
+
* applied to each term separately and the resulting blocks are joined with
|
|
14
|
+
* AND, so a document matches when every term is found, whichever field holds
|
|
15
|
+
* it.
|
|
16
|
+
*
|
|
17
|
+
* @param {string} template SEARCH_USER_QUERY, holding %s placeholders
|
|
18
|
+
* @param {string} userQuery raw user input
|
|
19
|
+
* @returns {string} the AFTS query
|
|
20
|
+
*/
|
|
21
|
+
export function buildLooseUserQuery(template: string, userQuery: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* Builds the exact AFTS query: the whole input is rendered as a single phrase
|
|
24
|
+
* and the template wildcards are dropped.
|
|
25
|
+
*
|
|
26
|
+
* @param {string} template SEARCH_USER_QUERY, holding %s placeholders
|
|
27
|
+
* @param {string} userQuery raw user input
|
|
28
|
+
* @returns {string} the AFTS query
|
|
29
|
+
*/
|
|
30
|
+
export function buildExactUserQuery(template: string, userQuery: string): string;
|
|
31
|
+
//# sourceMappingURL=userSearchQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userSearchQuery.d.ts","sourceRoot":"","sources":["../../../src/services/userSearchQuery.js"],"names":[],"mappings":"AAmBA;;;;;;;;GAQG;AACH,+CAHW,MAAM,GACJ,MAAM,EAAE,CAWpB;AAED;;;;;;;;;GASG;AACH,8CAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAQlB;AAED;;;;;;;GAOG;AACH,8CAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAIlB"}
|
|
@@ -32,6 +32,8 @@ import { ResultSetPaging } from '@alfresco/js-api';
|
|
|
32
32
|
* Actions:
|
|
33
33
|
* - reset: Resets the store state to its initial configuration using default values and external configurations.
|
|
34
34
|
* - defineUserQuery(userQuery): Constructs and updates the search query using the provided user input.
|
|
35
|
+
* Exact search renders the whole input as one phrase; loose search matches every term of the input,
|
|
36
|
+
* whichever field holds it.
|
|
35
37
|
* - queryStore(searchInput, page): Executes the configured search query and updates the store with the results.
|
|
36
38
|
* - addSortField(sortField): Adds a custom sort criterion.
|
|
37
39
|
* - removeSortField: Clears the existing sort configuration.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/stores/search.js"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/stores/search.js"],"names":[],"mappings":";;AAwBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2JI;;;;OAIG;2BAFe,KAAK,GACV,OAAO;;IA8BpB;;;;OAIG;qBAFe,KAAK,GACV,OAAO;;GAiBrB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristy/pristy-libvue",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.3",
|
|
4
4
|
"description": "Core library used by all Pristy applications",
|
|
5
5
|
"homepage": "https://pristy.fr/en/",
|
|
6
6
|
"author": "JECI SARL",
|
|
@@ -48,14 +48,15 @@
|
|
|
48
48
|
"@codemirror/lang-xml": "^6.1.0",
|
|
49
49
|
"@codemirror/lang-yaml": "^6.1.3",
|
|
50
50
|
"@codemirror/language": "^6.12.4",
|
|
51
|
-
"@codemirror/legacy-modes": "^6.5.
|
|
51
|
+
"@codemirror/legacy-modes": "^6.5.4",
|
|
52
52
|
"@codemirror/lint": "^6.9.7",
|
|
53
53
|
"@codemirror/merge": "^6.12.2",
|
|
54
|
-
"@codemirror/search": "^6.7.
|
|
55
|
-
"@codemirror/state": "^6.7.
|
|
54
|
+
"@codemirror/search": "^6.7.2",
|
|
55
|
+
"@codemirror/state": "^6.7.4",
|
|
56
56
|
"@codemirror/theme-one-dark": "^6.1.3",
|
|
57
|
-
"@codemirror/view": "^6.43.
|
|
57
|
+
"@codemirror/view": "^6.43.11",
|
|
58
58
|
"codemirror": "6.0.2",
|
|
59
|
+
"remixicon": "^4.9.1",
|
|
59
60
|
"vue": "^3.5.42",
|
|
60
61
|
"vue-i18n": "^11.4.10",
|
|
61
62
|
"vue-router": "^4.6.4"
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
"@vueuse/core": "^12.8.2",
|
|
71
72
|
"async-retry": "^1.3.3",
|
|
72
73
|
"axios": "^1.20.0",
|
|
73
|
-
"dompurify": "^3.4.
|
|
74
|
+
"dompurify": "^3.4.15",
|
|
74
75
|
"email-validator": "^2.0.4",
|
|
75
76
|
"highlight.js": "^11.12.0",
|
|
76
77
|
"keycloak-js": "^26.2.4",
|
|
@@ -91,21 +92,21 @@
|
|
|
91
92
|
"@eslint/js": "^10.0.1",
|
|
92
93
|
"@vitejs/plugin-legacy": "^7.2.1",
|
|
93
94
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
94
|
-
"@vitest/coverage-v8": "^
|
|
95
|
+
"@vitest/coverage-v8": "^5.0.0",
|
|
95
96
|
"@vue/test-utils": "^2.5.0",
|
|
96
|
-
"eslint": "^10.
|
|
97
|
+
"eslint": "^10.10.0",
|
|
97
98
|
"eslint-plugin-prettier": "^5.5.6",
|
|
98
|
-
"eslint-plugin-vue": "^10.
|
|
99
|
-
"globals": "^17.
|
|
99
|
+
"eslint-plugin-vue": "^10.11.0",
|
|
100
|
+
"globals": "^17.12.0",
|
|
100
101
|
"jsdom": "^27.4.0",
|
|
101
102
|
"prettier": "^3.9.6",
|
|
102
103
|
"rollup-plugin-visualizer": "^6.0.11",
|
|
103
|
-
"sass": "^1.
|
|
104
|
+
"sass": "^1.104.0",
|
|
104
105
|
"svgo": "^4.1.0",
|
|
105
106
|
"typescript": "^6.0.3",
|
|
106
107
|
"vite": "^7.3.6",
|
|
107
108
|
"vite-plugin-dts": "^4.5.4",
|
|
108
|
-
"vitest": "^
|
|
109
|
+
"vitest": "^5.0.0"
|
|
109
110
|
},
|
|
110
111
|
"browserslist": [
|
|
111
112
|
"defaults",
|