@mindful-web/marko-web-search 1.27.2 → 1.33.0
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/components/build-href.marko.js +2 -2
- package/components/filters/content-types.marko.js +2 -2
- package/components/filters/filter-block.marko.js +2 -2
- package/components/filters/filter-container.marko.js +2 -2
- package/components/filters/selected/index.marko.js +2 -2
- package/components/filters/selected/item.marko.js +2 -2
- package/components/filters/website-sections-by-alias.marko.js +2 -2
- package/components/filters/website-sections.marko.js +2 -2
- package/components/form/index.marko.js +2 -2
- package/components/form/input.marko.js +2 -2
- package/components/links/link.marko.js +2 -2
- package/components/links/next-page.marko.js +2 -2
- package/components/links/previous-page.marko.js +2 -2
- package/components/links/reset-filter.marko.js +2 -2
- package/components/links/set-filter-value.marko.js +2 -2
- package/components/pagination-controls.marko +21 -13
- package/components/pagination-controls.marko.js +36 -27
- package/components/query-child-sections.marko.js +2 -2
- package/components/query.marko.js +2 -2
- package/components/sort-by/index.marko.js +2 -2
- package/index.js +1 -1
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/build-href.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
8
8
|
defaultValue = module_defaultValue.default || module_defaultValue,
|
|
@@ -42,5 +42,5 @@ marko_template._ = marko_renderer(render, {
|
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
marko_template.meta = {
|
|
45
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
45
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/build-href.marko"
|
|
46
46
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/filters/content-types.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
8
8
|
defaultValue = module_defaultValue.default || module_defaultValue,
|
|
@@ -35,7 +35,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
marko_template.meta = {
|
|
38
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
38
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/filters/content-types.marko",
|
|
39
39
|
tags: [
|
|
40
40
|
"./filter-block.marko"
|
|
41
41
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/filters/filter-block.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
8
8
|
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
@@ -141,7 +141,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
141
141
|
});
|
|
142
142
|
|
|
143
143
|
marko_template.meta = {
|
|
144
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
144
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/filters/filter-block.marko",
|
|
145
145
|
tags: [
|
|
146
146
|
"@mindful-web/marko-web/components/browser-component.marko",
|
|
147
147
|
"../links/set-filter-value.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/filters/filter-container.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
8
8
|
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
@@ -76,7 +76,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
marko_template.meta = {
|
|
79
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
79
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/filters/filter-container.marko",
|
|
80
80
|
tags: [
|
|
81
81
|
"@mindful-web/marko-web/components/browser-component.marko",
|
|
82
82
|
"@mindful-web/marko-web/components/element/index.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/filters/selected/index.marko",
|
|
6
6
|
marko_component = require("./index.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
@@ -105,7 +105,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
105
105
|
}, marko_component);
|
|
106
106
|
|
|
107
107
|
marko_template.meta = {
|
|
108
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
108
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/filters/selected/index.marko",
|
|
109
109
|
component: "./index.marko",
|
|
110
110
|
tags: [
|
|
111
111
|
"./item.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/filters/selected/item.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
8
8
|
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
@@ -91,7 +91,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
91
91
|
});
|
|
92
92
|
|
|
93
93
|
marko_template.meta = {
|
|
94
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
94
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/filters/selected/item.marko",
|
|
95
95
|
tags: [
|
|
96
96
|
"@mindful-web/marko-web/components/element/index.marko",
|
|
97
97
|
"@mindful-web/marko-web-icons/components/icon.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/filters/website-sections-by-alias.marko",
|
|
6
6
|
marko_component = require("./website-sections-by-alias.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
@@ -130,7 +130,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
130
130
|
}, marko_component);
|
|
131
131
|
|
|
132
132
|
marko_template.meta = {
|
|
133
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
133
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/filters/website-sections-by-alias.marko",
|
|
134
134
|
component: "./website-sections-by-alias.marko",
|
|
135
135
|
tags: [
|
|
136
136
|
"../links/set-filter-value.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/filters/website-sections.marko",
|
|
6
6
|
marko_component = require("./website-sections.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
@@ -114,7 +114,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
114
114
|
}, marko_component);
|
|
115
115
|
|
|
116
116
|
marko_template.meta = {
|
|
117
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
117
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/filters/website-sections.marko",
|
|
118
118
|
component: "./website-sections.marko",
|
|
119
119
|
tags: [
|
|
120
120
|
"../links/set-filter-value.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/form/index.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
8
8
|
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
@@ -78,7 +78,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
78
78
|
});
|
|
79
79
|
|
|
80
80
|
marko_template.meta = {
|
|
81
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
81
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/form/index.marko",
|
|
82
82
|
tags: [
|
|
83
83
|
"@mindful-web/marko-web/components/element/block.marko"
|
|
84
84
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/form/input.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
marko_mergeAttrs = require("marko/dist/runtime/html/helpers/merge-attrs");
|
|
8
8
|
|
|
@@ -26,5 +26,5 @@ marko_template._ = marko_renderer(render, {
|
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
marko_template.meta = {
|
|
29
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
29
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/form/input.marko"
|
|
30
30
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/links/link.marko",
|
|
6
6
|
marko_component = require("./link.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
marko_dynamicTag = require("marko/dist/runtime/helpers/dynamic-tag"),
|
|
@@ -38,7 +38,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
38
38
|
}, marko_component);
|
|
39
39
|
|
|
40
40
|
marko_template.meta = {
|
|
41
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
41
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/links/link.marko",
|
|
42
42
|
component: "./link.marko",
|
|
43
43
|
tags: [
|
|
44
44
|
"@mindful-web/marko-web/components/element/link.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/links/next-page.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_utils_module = require("@mindful-web/utils"),
|
|
8
8
|
utils_module = module_utils_module.default || module_utils_module,
|
|
@@ -62,7 +62,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
62
62
|
});
|
|
63
63
|
|
|
64
64
|
marko_template.meta = {
|
|
65
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
65
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/links/next-page.marko",
|
|
66
66
|
tags: [
|
|
67
67
|
"./link.marko"
|
|
68
68
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/links/previous-page.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_utils_module = require("@mindful-web/utils"),
|
|
8
8
|
utils_module = module_utils_module.default || module_utils_module,
|
|
@@ -62,7 +62,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
62
62
|
});
|
|
63
63
|
|
|
64
64
|
marko_template.meta = {
|
|
65
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
65
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/links/previous-page.marko",
|
|
66
66
|
tags: [
|
|
67
67
|
"./link.marko"
|
|
68
68
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/links/reset-filter.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
8
8
|
defaultValue = module_defaultValue.default || module_defaultValue,
|
|
@@ -48,7 +48,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
48
48
|
});
|
|
49
49
|
|
|
50
50
|
marko_template.meta = {
|
|
51
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
51
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/links/reset-filter.marko",
|
|
52
52
|
tags: [
|
|
53
53
|
"./link.marko"
|
|
54
54
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/links/set-filter-value.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
8
8
|
defaultValue = module_defaultValue.default || module_defaultValue,
|
|
@@ -79,7 +79,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
79
79
|
});
|
|
80
80
|
|
|
81
81
|
marko_template.meta = {
|
|
82
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
82
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/links/set-filter-value.marko",
|
|
83
83
|
tags: [
|
|
84
84
|
"./link.marko"
|
|
85
85
|
]
|
|
@@ -3,13 +3,18 @@ import { get } from "@mindful-web/object-path";
|
|
|
3
3
|
import { isFunction } from '@mindful-web/utils';
|
|
4
4
|
|
|
5
5
|
$ const { $markoWebSearch: search, i18n } = out.global;
|
|
6
|
+
$ const { useMindful } = search.config;
|
|
6
7
|
$ const totalCount = defaultValue(input.totalCount, 0);
|
|
7
8
|
$ const pageInfo = defaultValue(input.pageInfo, {});
|
|
8
9
|
$ const linkClasses = get(input.link, "class");
|
|
9
10
|
|
|
10
11
|
$ const blockName = "marko-web-search-pagination-controls";
|
|
12
|
+
$ const showControls = (() => {
|
|
13
|
+
if (useMindful) return true;
|
|
14
|
+
return Boolean(totalCount);
|
|
15
|
+
})();
|
|
11
16
|
|
|
12
|
-
<if(
|
|
17
|
+
<if(showControls)>
|
|
13
18
|
<marko-web-block ...input.block name=blockName>
|
|
14
19
|
<marko-web-search-previous-page-link
|
|
15
20
|
...input.link
|
|
@@ -18,21 +23,24 @@ $ const blockName = "marko-web-search-pagination-controls";
|
|
|
18
23
|
/>
|
|
19
24
|
|
|
20
25
|
<marko-web-element block-name=blockName name="pages">
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<!-- default rendering -->
|
|
29
|
-
<if(isFunction(i18n))>
|
|
30
|
-
${i18n("Page")} ${currentPage} ${i18n("of")} ${totalPages}
|
|
26
|
+
<if(!useMindful)>
|
|
27
|
+
<!-- only display page counts when _not_ using mindful cursor pagination -->
|
|
28
|
+
$ const currentPage = search.getCurrentPage(pageInfo);
|
|
29
|
+
$ const totalPages = search.getTotalPages(totalCount, pageInfo);
|
|
30
|
+
<if(input.renderBody)>
|
|
31
|
+
<!-- custom rendering -->
|
|
32
|
+
<${input.renderBody} current-page=currentPage total-pages=totalPages />
|
|
31
33
|
</if>
|
|
32
34
|
<else>
|
|
33
|
-
|
|
35
|
+
<!-- default rendering -->
|
|
36
|
+
<if(isFunction(i18n))>
|
|
37
|
+
${i18n("Page")} ${currentPage} ${i18n("of")} ${totalPages}
|
|
38
|
+
</if>
|
|
39
|
+
<else>
|
|
40
|
+
Page ${currentPage} of ${totalPages}
|
|
41
|
+
</else>
|
|
34
42
|
</else>
|
|
35
|
-
</
|
|
43
|
+
</if>
|
|
36
44
|
</marko-web-element>
|
|
37
45
|
|
|
38
46
|
<marko-web-search-next-page-link
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/pagination-controls.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
8
8
|
defaultValue = module_defaultValue.default || module_defaultValue,
|
|
@@ -31,6 +31,8 @@ function render(input, out, __component, component, state) {
|
|
|
31
31
|
|
|
32
32
|
const { $markoWebSearch: search, i18n } = out.global;
|
|
33
33
|
|
|
34
|
+
const { useMindful } = search.config;
|
|
35
|
+
|
|
34
36
|
const totalCount = defaultValue(input.totalCount, 0);
|
|
35
37
|
|
|
36
38
|
const pageInfo = defaultValue(input.pageInfo, {});
|
|
@@ -39,7 +41,12 @@ function render(input, out, __component, component, state) {
|
|
|
39
41
|
|
|
40
42
|
const blockName = "marko-web-search-pagination-controls";
|
|
41
43
|
|
|
42
|
-
|
|
44
|
+
const showControls = (() => {
|
|
45
|
+
if (useMindful) return true;
|
|
46
|
+
return Boolean(totalCount);
|
|
47
|
+
})();
|
|
48
|
+
|
|
49
|
+
if (showControls) {
|
|
43
50
|
marko_web_block_tag(marko_assign({
|
|
44
51
|
name: "block",
|
|
45
52
|
tag: "div"
|
|
@@ -56,31 +63,33 @@ function render(input, out, __component, component, state) {
|
|
|
56
63
|
tag: "div",
|
|
57
64
|
blockName: blockName,
|
|
58
65
|
renderBody: function(out) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
if (isFunction(i18n)) {
|
|
72
|
-
out.w(marko_escapeXml(i18n("Page")) +
|
|
73
|
-
" " +
|
|
74
|
-
marko_escapeXml(currentPage) +
|
|
75
|
-
" " +
|
|
76
|
-
marko_escapeXml(i18n("of")) +
|
|
77
|
-
" " +
|
|
78
|
-
marko_escapeXml(totalPages));
|
|
66
|
+
if (!useMindful) {
|
|
67
|
+
const currentPage = search.getCurrentPage(pageInfo);
|
|
68
|
+
|
|
69
|
+
const totalPages = search.getTotalPages(totalCount, pageInfo);
|
|
70
|
+
|
|
71
|
+
if (input.renderBody) {
|
|
72
|
+
marko_dynamicTag(out, input.renderBody, function() {
|
|
73
|
+
return {
|
|
74
|
+
"current-page": currentPage,
|
|
75
|
+
"total-pages": totalPages
|
|
76
|
+
};
|
|
77
|
+
}, null, null, null, __component, "3");
|
|
79
78
|
} else {
|
|
80
|
-
|
|
81
|
-
marko_escapeXml(
|
|
82
|
-
|
|
83
|
-
|
|
79
|
+
if (isFunction(i18n)) {
|
|
80
|
+
out.w(marko_escapeXml(i18n("Page")) +
|
|
81
|
+
" " +
|
|
82
|
+
marko_escapeXml(currentPage) +
|
|
83
|
+
" " +
|
|
84
|
+
marko_escapeXml(i18n("of")) +
|
|
85
|
+
" " +
|
|
86
|
+
marko_escapeXml(totalPages));
|
|
87
|
+
} else {
|
|
88
|
+
out.w("Page " +
|
|
89
|
+
marko_escapeXml(currentPage) +
|
|
90
|
+
" of " +
|
|
91
|
+
marko_escapeXml(totalPages));
|
|
92
|
+
}
|
|
84
93
|
}
|
|
85
94
|
}
|
|
86
95
|
}
|
|
@@ -102,7 +111,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
102
111
|
});
|
|
103
112
|
|
|
104
113
|
marko_template.meta = {
|
|
105
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
114
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/pagination-controls.marko",
|
|
106
115
|
tags: [
|
|
107
116
|
"./links/previous-page.marko",
|
|
108
117
|
"@mindful-web/marko-web/components/element/index.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/query-child-sections.marko",
|
|
6
6
|
marko_component = require("./query-child-sections.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_gql = require("graphql-tag"),
|
|
@@ -52,7 +52,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
52
52
|
}, marko_component);
|
|
53
53
|
|
|
54
54
|
marko_template.meta = {
|
|
55
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
55
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/query-child-sections.marko",
|
|
56
56
|
component: "./query-child-sections.marko",
|
|
57
57
|
tags: [
|
|
58
58
|
"@mindful-web/marko-core/components/queries/website-sections.marko"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/query.marko",
|
|
6
6
|
marko_component = require("./query.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_loader = require("../loaders/search"),
|
|
@@ -69,7 +69,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
69
69
|
}, marko_component);
|
|
70
70
|
|
|
71
71
|
marko_template.meta = {
|
|
72
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
72
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/query.marko",
|
|
73
73
|
component: "./query.marko",
|
|
74
74
|
tags: [
|
|
75
75
|
"@mindful-web/marko-core/components/resolve.marko"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-search$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-search$1.33.0/components/sort-by/index.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
8
8
|
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
@@ -64,7 +64,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
64
64
|
});
|
|
65
65
|
|
|
66
66
|
marko_template.meta = {
|
|
67
|
-
id: "/@mindful-web/marko-web-search$1.
|
|
67
|
+
id: "/@mindful-web/marko-web-search$1.33.0/components/sort-by/index.marko",
|
|
68
68
|
tags: [
|
|
69
69
|
"@mindful-web/marko-web/components/browser-component.marko",
|
|
70
70
|
"@mindful-web/marko-web/components/element/block.marko"
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindful-web/marko-web-search",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"author": "Jacob Bare <jacob@parameter1.com>",
|
|
5
5
|
"repository": "https://github.com/parameter1/mindful-web/tree/main/packages/marko-web-search",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@mindful-web/marko-web-icons": "^1.27.2",
|
|
17
17
|
"@mindful-web/object-path": "^1.11.9",
|
|
18
18
|
"@mindful-web/utils": "^1.11.9",
|
|
19
|
-
"@mindful-web/web-common": "^1.
|
|
19
|
+
"@mindful-web/web-common": "^1.28.0",
|
|
20
20
|
"@parameter1/joi": "^1.2.10",
|
|
21
21
|
"graphql": "^14.7.0",
|
|
22
22
|
"graphql-tag": "^2.12.6"
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "daf7524499189f8c3001643c87ff82872aacdf33"
|
|
32
32
|
}
|