qumra-engine 2.0.149 → 2.0.150
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/controllers/localize/currency.controller.d.ts +1 -0
- package/dist/controllers/localize/currency.controller.js +34 -1
- package/dist/controllers/localize/lang.controller.js +0 -1
- package/dist/extensions/logic/all_products.js +0 -2
- package/dist/extensions/logic/content.d.ts +1 -1
- package/dist/extensions/logic/content.js +86 -69
- package/dist/extensions/logic/seo.js +0 -3
- package/dist/extensions/logic/template copy.d.ts +10 -0
- package/dist/extensions/logic/template copy.js +70 -0
- package/dist/extensions/logic/template.d.ts +5 -4
- package/dist/extensions/logic/template.js +61 -54
- package/dist/extensions/logic/ui.d.ts +5 -4
- package/dist/extensions/logic/ui.js +42 -17
- package/dist/extensions/logic/widget.d.ts +5 -4
- package/dist/extensions/logic/widget.js +47 -22
- package/dist/extensions/registerAllExtensions.js +0 -2
- package/dist/filters/index.d.ts +136 -22
- package/dist/filters/index.js +186 -49
- package/dist/filters/logic/array/index.d.ts +0 -19
- package/dist/filters/logic/array/index.js +0 -43
- package/dist/filters/logic/cart/index.d.ts +0 -2
- package/dist/filters/logic/cart/index.js +0 -9
- package/dist/filters/logic/colors/index.d.ts +0 -16
- package/dist/filters/logic/colors/index.js +0 -37
- package/dist/filters/logic/customer/index.d.ts +0 -4
- package/dist/filters/logic/customer/index.js +0 -13
- package/dist/filters/logic/default/index.d.ts +0 -1
- package/dist/filters/logic/default/index.js +0 -7
- package/dist/filters/logic/format/index.d.ts +0 -4
- package/dist/filters/logic/format/index.js +0 -13
- package/dist/filters/logic/format/unit_price_with_measurement.js +1 -1
- package/dist/filters/logic/format/weight_with_unit.d.ts +1 -1
- package/dist/filters/logic/format/weight_with_unit.js +1 -1
- package/dist/filters/logic/html/index.d.ts +0 -7
- package/dist/filters/logic/html/index.js +0 -19
- package/dist/filters/logic/localization/currency_selector.d.ts +1 -7
- package/dist/filters/logic/localization/currency_selector.js +10 -36
- package/dist/filters/logic/localization/index.d.ts +0 -2
- package/dist/filters/logic/localization/index.js +0 -9
- package/dist/filters/logic/math/index.d.ts +0 -11
- package/dist/filters/logic/math/index.js +0 -27
- package/dist/filters/logic/media/external_video_tag.d.ts +1 -1
- package/dist/filters/logic/media/external_video_tag.js +21 -1
- package/dist/filters/logic/media/image_url.d.ts +1 -1
- package/dist/filters/logic/media/image_url.js +30 -2
- package/dist/filters/logic/media/index.d.ts +0 -8
- package/dist/filters/logic/media/index.js +0 -21
- package/dist/filters/registerAllFilters.js +3 -36
- package/dist/functions/render-handler.js +29 -7
- package/dist/globals/logic/all_products.js +0 -1
- package/dist/graphql/query/findAllCountries.d.ts +2 -0
- package/dist/graphql/query/findAllCountries.js +41 -0
- package/dist/graphql/query/index.d.ts +2 -1
- package/dist/graphql/query/index.js +3 -1
- package/dist/middleware/init.middleware.js +0 -3
- package/dist/middleware/nunjucks.middleware.js +1 -1
- package/dist/middleware/prepareData.middleware.js +1 -1
- package/dist/middleware/render.middleware.js +14 -5
- package/dist/middleware.js +0 -1
- package/dist/nunjucksEnv.d.ts +1 -1
- package/dist/nunjucksEnv.js +2 -1
- package/dist/utils/client.js +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const nunjucks_1 = __importDefault(require("nunjucks"));
|
|
7
7
|
const normalizeWidgetPath_1 = require("../../utils/normalizeWidgetPath");
|
|
8
8
|
const resolveTranslations_1 = require("../../utils/resolveTranslations");
|
|
9
|
+
function renderAsync(env, templatePath, data) {
|
|
10
|
+
return new Promise((resolve, reject) => {
|
|
11
|
+
env.render(templatePath, data, (err, res) => {
|
|
12
|
+
if (err)
|
|
13
|
+
reject(err);
|
|
14
|
+
else
|
|
15
|
+
resolve(res);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
}
|
|
9
19
|
exports.default = new (class WidgetExtension {
|
|
10
20
|
constructor() {
|
|
11
21
|
this.tags = ["widget"];
|
|
@@ -14,34 +24,49 @@ exports.default = new (class WidgetExtension {
|
|
|
14
24
|
const tok = parser.nextToken();
|
|
15
25
|
const args = parser.parseSignature(true, true);
|
|
16
26
|
parser.advanceAfterBlockEnd(tok.value);
|
|
17
|
-
return new nodes.
|
|
27
|
+
return new nodes.CallExtensionAsync(this, "run", args);
|
|
18
28
|
}
|
|
19
|
-
run({ ctx, env }, widgetPath) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
run({ ctx, env }, widgetPath, ...args) {
|
|
30
|
+
// ⭐ الـ callback دائماً آخر parameter
|
|
31
|
+
const callback = args[args.length - 1];
|
|
32
|
+
// ⭐ أي parameters إضافية (لو موجودة)
|
|
33
|
+
const extraParams = args.slice(0, -1);
|
|
34
|
+
try {
|
|
35
|
+
if (["footer", "header"].includes(widgetPath)) {
|
|
36
|
+
return callback(null, new nunjucks_1.default.runtime.SafeString(`
|
|
37
|
+
<div style="padding: 12px; background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; border-radius: 4px; margin: 8px 0;">
|
|
38
|
+
⚠️ <strong>لا يمكن تضمين ${widgetPath} بشكل مباشر:</strong>
|
|
39
|
+
</div>
|
|
40
|
+
`));
|
|
41
|
+
}
|
|
42
|
+
const widget = (0, normalizeWidgetPath_1.normalizeWidgetPath)(widgetPath);
|
|
43
|
+
if (!widget) {
|
|
44
|
+
return callback(null, new nunjucks_1.default.runtime.SafeString(`
|
|
30
45
|
<div style="padding: 12px; background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; border-radius: 4px; margin: 8px 0;">
|
|
31
46
|
⚠️ <strong>مسار الويجيت غير صالح:</strong> ${widgetPath}
|
|
32
47
|
</div>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
48
|
+
`));
|
|
49
|
+
}
|
|
50
|
+
// استخدام renderAsync بدلاً من render المباشر
|
|
51
|
+
renderAsync(env, widget, (0, resolveTranslations_1.resolveTranslations)(ctx, env.getGlobal("t")))
|
|
52
|
+
.then((rendered) => {
|
|
53
|
+
const output = new nunjucks_1.default.runtime.SafeString(rendered);
|
|
54
|
+
callback(null, output);
|
|
55
|
+
})
|
|
56
|
+
.catch((err) => {
|
|
57
|
+
callback(null, new nunjucks_1.default.runtime.SafeString(`
|
|
58
|
+
<div style="padding: 12px; background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; border-radius: 4px; margin: 8px 0;">
|
|
59
|
+
⚠️ <strong>تعذر تضمين الويجيت:</strong> ${widget}
|
|
60
|
+
</div>
|
|
61
|
+
`));
|
|
62
|
+
});
|
|
38
63
|
}
|
|
39
64
|
catch (err) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
`);
|
|
65
|
+
callback(null, new nunjucks_1.default.runtime.SafeString(`
|
|
66
|
+
<div style="padding: 12px; background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; border-radius: 4px; margin: 8px 0;">
|
|
67
|
+
⚠️ <strong>تعذر تضمين الويجيت:</strong> ${widgetPath}
|
|
68
|
+
</div>
|
|
69
|
+
`));
|
|
45
70
|
}
|
|
46
71
|
}
|
|
47
72
|
})();
|
|
@@ -36,14 +36,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.default = registerAllExtensions;
|
|
37
37
|
const extensions = __importStar(require(".")); // بيجمع كل الإضافات
|
|
38
38
|
function registerAllExtensions(env) {
|
|
39
|
-
console.log("🚀 ~ registerAllExtensions ~ extensions:", extensions);
|
|
40
39
|
Object.entries(extensions).forEach(([name, instance]) => {
|
|
41
40
|
if (instance &&
|
|
42
41
|
typeof instance === "object" &&
|
|
43
42
|
typeof instance.parse === "function" &&
|
|
44
43
|
typeof instance.run === "function") {
|
|
45
44
|
env.addExtension(name, instance);
|
|
46
|
-
console.log(`✅ Registered Nunjucks extension: ${name}`);
|
|
47
45
|
}
|
|
48
46
|
else {
|
|
49
47
|
console.warn(`[nunjucks] ⚠️ تخطى Extension '${name}'`);
|
package/dist/filters/index.d.ts
CHANGED
|
@@ -1,22 +1,136 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import first from './logic/array/first';
|
|
2
|
+
import find from './logic/array/find';
|
|
3
|
+
import concat from './logic/array/concat';
|
|
4
|
+
import sort_natural from './logic/array/sort_natural';
|
|
5
|
+
import sum from './logic/array/sum';
|
|
6
|
+
import split from './logic/array/split';
|
|
7
|
+
import color_extract from './logic/colors/color_extract';
|
|
8
|
+
import color_modify from './logic/colors/color_modify';
|
|
9
|
+
import login_button from './logic/customer/login_button';
|
|
10
|
+
import default_pagination from './logic/default/default_pagination';
|
|
11
|
+
import weight_with_unit from './logic/format/weight_with_unit';
|
|
12
|
+
import highlight from './logic/html/highlight';
|
|
13
|
+
import link_to from './logic/html/link_to';
|
|
14
|
+
import preload_tag from './logic/html/preload_tag';
|
|
15
|
+
import script_tag from './logic/html/script_tag';
|
|
16
|
+
import stylesheet_tag from './logic/html/stylesheet_tag';
|
|
17
|
+
import time_tag from './logic/html/time_tag';
|
|
18
|
+
import format_address from './logic/localization/format_address';
|
|
19
|
+
import external_video_tag from './logic/media/external_video_tag';
|
|
20
|
+
import external_video_url from './logic/media/external_video_url';
|
|
21
|
+
import image_url from './logic/media/image_url';
|
|
22
|
+
import image_tag from './logic/media/image_tag';
|
|
23
|
+
import media_tag from './logic/media/media_tag';
|
|
24
|
+
import video_tag from './logic/media/video_tag';
|
|
25
|
+
import at_least from './logic/math/at_least';
|
|
26
|
+
import truncate from './logic/strings/truncate';
|
|
27
|
+
import date from './logic/data/formatDate';
|
|
28
|
+
export declare const filters: ({
|
|
29
|
+
fn: typeof first;
|
|
30
|
+
name: string;
|
|
31
|
+
async: boolean;
|
|
32
|
+
} | {
|
|
33
|
+
fn: typeof find;
|
|
34
|
+
name: string;
|
|
35
|
+
async: boolean;
|
|
36
|
+
} | {
|
|
37
|
+
fn: typeof concat;
|
|
38
|
+
name: string;
|
|
39
|
+
async: boolean;
|
|
40
|
+
} | {
|
|
41
|
+
fn: typeof sort_natural;
|
|
42
|
+
name: string;
|
|
43
|
+
async: boolean;
|
|
44
|
+
} | {
|
|
45
|
+
fn: typeof sum;
|
|
46
|
+
name: string;
|
|
47
|
+
async: boolean;
|
|
48
|
+
} | {
|
|
49
|
+
fn: typeof split;
|
|
50
|
+
name: string;
|
|
51
|
+
async: boolean;
|
|
52
|
+
} | {
|
|
53
|
+
fn: typeof color_extract;
|
|
54
|
+
name: string;
|
|
55
|
+
async: boolean;
|
|
56
|
+
} | {
|
|
57
|
+
fn: typeof color_modify;
|
|
58
|
+
name: string;
|
|
59
|
+
async: boolean;
|
|
60
|
+
} | {
|
|
61
|
+
fn: typeof login_button;
|
|
62
|
+
name: string;
|
|
63
|
+
async: boolean;
|
|
64
|
+
} | {
|
|
65
|
+
fn: typeof default_pagination;
|
|
66
|
+
name: string;
|
|
67
|
+
async: boolean;
|
|
68
|
+
} | {
|
|
69
|
+
fn: typeof weight_with_unit;
|
|
70
|
+
name: string;
|
|
71
|
+
async: boolean;
|
|
72
|
+
} | {
|
|
73
|
+
fn: typeof highlight;
|
|
74
|
+
name: string;
|
|
75
|
+
async: boolean;
|
|
76
|
+
} | {
|
|
77
|
+
fn: typeof link_to;
|
|
78
|
+
name: string;
|
|
79
|
+
async: boolean;
|
|
80
|
+
} | {
|
|
81
|
+
fn: typeof preload_tag;
|
|
82
|
+
name: string;
|
|
83
|
+
async: boolean;
|
|
84
|
+
} | {
|
|
85
|
+
fn: typeof script_tag;
|
|
86
|
+
name: string;
|
|
87
|
+
async: boolean;
|
|
88
|
+
} | {
|
|
89
|
+
fn: typeof stylesheet_tag;
|
|
90
|
+
name: string;
|
|
91
|
+
async: boolean;
|
|
92
|
+
} | {
|
|
93
|
+
fn: typeof time_tag;
|
|
94
|
+
name: string;
|
|
95
|
+
async: boolean;
|
|
96
|
+
} | {
|
|
97
|
+
fn: typeof format_address;
|
|
98
|
+
name: string;
|
|
99
|
+
async: boolean;
|
|
100
|
+
} | {
|
|
101
|
+
fn: typeof external_video_tag;
|
|
102
|
+
name: string;
|
|
103
|
+
async: boolean;
|
|
104
|
+
} | {
|
|
105
|
+
fn: typeof external_video_url;
|
|
106
|
+
name: string;
|
|
107
|
+
async: boolean;
|
|
108
|
+
} | {
|
|
109
|
+
fn: typeof image_url;
|
|
110
|
+
name: string;
|
|
111
|
+
async: boolean;
|
|
112
|
+
} | {
|
|
113
|
+
fn: typeof image_tag;
|
|
114
|
+
name: string;
|
|
115
|
+
async: boolean;
|
|
116
|
+
} | {
|
|
117
|
+
fn: typeof media_tag;
|
|
118
|
+
name: string;
|
|
119
|
+
async: boolean;
|
|
120
|
+
} | {
|
|
121
|
+
fn: typeof video_tag;
|
|
122
|
+
name: string;
|
|
123
|
+
async: boolean;
|
|
124
|
+
} | {
|
|
125
|
+
fn: typeof at_least;
|
|
126
|
+
name: string;
|
|
127
|
+
async: boolean;
|
|
128
|
+
} | {
|
|
129
|
+
fn: typeof truncate;
|
|
130
|
+
name: string;
|
|
131
|
+
async: boolean;
|
|
132
|
+
} | {
|
|
133
|
+
fn: typeof date;
|
|
134
|
+
name: string;
|
|
135
|
+
async: boolean;
|
|
136
|
+
})[];
|
package/dist/filters/index.js
CHANGED
|
@@ -1,54 +1,191 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
4
|
};
|
|
19
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
6
|
+
exports.filters = void 0;
|
|
7
|
+
// array
|
|
8
|
+
const first_1 = __importDefault(require("./logic/array/first"));
|
|
9
|
+
const size_1 = __importDefault(require("./logic/array/size"));
|
|
10
|
+
const last_1 = __importDefault(require("./logic/array/last"));
|
|
11
|
+
const find_1 = __importDefault(require("./logic/array/find"));
|
|
12
|
+
const find_index_1 = __importDefault(require("./logic/array/find_index"));
|
|
13
|
+
const join_1 = __importDefault(require("./logic/array/join"));
|
|
14
|
+
const where_1 = __importDefault(require("./logic/array/where"));
|
|
15
|
+
const compact_1 = __importDefault(require("./logic/array/compact"));
|
|
16
|
+
const concat_1 = __importDefault(require("./logic/array/concat"));
|
|
17
|
+
const has_1 = __importDefault(require("./logic/array/has"));
|
|
18
|
+
const map_1 = __importDefault(require("./logic/array/map"));
|
|
19
|
+
const reject_1 = __importDefault(require("./logic/array/reject"));
|
|
20
|
+
const reverse_1 = __importDefault(require("./logic/array/reverse"));
|
|
21
|
+
const sort_natural_1 = __importDefault(require("./logic/array/sort_natural"));
|
|
22
|
+
const sort_1 = __importDefault(require("./logic/array/sort"));
|
|
23
|
+
const sum_1 = __importDefault(require("./logic/array/sum"));
|
|
24
|
+
const uniq_1 = __importDefault(require("./logic/array/uniq"));
|
|
25
|
+
const uniq_by_1 = __importDefault(require("./logic/array/uniq_by"));
|
|
26
|
+
const split_1 = __importDefault(require("./logic/array/split"));
|
|
27
|
+
// cart
|
|
28
|
+
const item_count_for_variant_1 = __importDefault(require("./logic/cart/item_count_for_variant"));
|
|
29
|
+
const line_items_for_1 = __importDefault(require("./logic/cart/line_items_for"));
|
|
30
|
+
// color
|
|
31
|
+
const brightness_difference_1 = __importDefault(require("./logic/colors/brightness_difference"));
|
|
32
|
+
const color_brightness_1 = __importDefault(require("./logic/colors/color_brightness"));
|
|
33
|
+
const color_contrast_1 = __importDefault(require("./logic/colors/color_contrast"));
|
|
34
|
+
const color_darken_1 = __importDefault(require("./logic/colors/color_darken"));
|
|
35
|
+
const color_desaturate_1 = __importDefault(require("./logic/colors/color_desaturate"));
|
|
36
|
+
const color_difference_1 = __importDefault(require("./logic/colors/color_difference"));
|
|
37
|
+
const color_extract_1 = __importDefault(require("./logic/colors/color_extract"));
|
|
38
|
+
const color_lighten_1 = __importDefault(require("./logic/colors/color_lighten"));
|
|
39
|
+
const color_mix_1 = __importDefault(require("./logic/colors/color_mix"));
|
|
40
|
+
const color_modify_1 = __importDefault(require("./logic/colors/color_modify"));
|
|
41
|
+
const color_saturate_1 = __importDefault(require("./logic/colors/color_saturate"));
|
|
42
|
+
const color_to_hex_1 = __importDefault(require("./logic/colors/color_to_hex"));
|
|
43
|
+
const color_to_hsl_1 = __importDefault(require("./logic/colors/color_to_hsl"));
|
|
44
|
+
const color_to_oklch_1 = __importDefault(require("./logic/colors/color_to_oklch"));
|
|
45
|
+
const color_to_rgb_1 = __importDefault(require("./logic/colors/color_to_rgb"));
|
|
46
|
+
const hex_to_rgba_1 = __importDefault(require("./logic/colors/hex_to_rgba"));
|
|
47
|
+
//customer
|
|
48
|
+
const customer_login_link_1 = __importDefault(require("./logic/customer/customer_login_link"));
|
|
49
|
+
const customer_logout_link_1 = __importDefault(require("./logic/customer/customer_logout_link"));
|
|
50
|
+
const customer_register_link_1 = __importDefault(require("./logic/customer/customer_register_link"));
|
|
51
|
+
const login_button_1 = __importDefault(require("./logic/customer/login_button"));
|
|
52
|
+
// paginations
|
|
53
|
+
const default_pagination_1 = __importDefault(require("./logic/default/default_pagination"));
|
|
54
|
+
// format
|
|
55
|
+
const date_1 = __importDefault(require("./logic/format/date"));
|
|
56
|
+
const structured_data_1 = __importDefault(require("./logic/format/structured_data"));
|
|
57
|
+
const unit_price_with_measurement_1 = __importDefault(require("./logic/format/unit_price_with_measurement"));
|
|
58
|
+
const weight_with_unit_1 = __importDefault(require("./logic/format/weight_with_unit"));
|
|
59
|
+
//html
|
|
60
|
+
const highlight_1 = __importDefault(require("./logic/html/highlight"));
|
|
61
|
+
const link_to_1 = __importDefault(require("./logic/html/link_to"));
|
|
62
|
+
const preload_tag_1 = __importDefault(require("./logic/html/preload_tag"));
|
|
63
|
+
const script_tag_1 = __importDefault(require("./logic/html/script_tag"));
|
|
64
|
+
const stylesheet_tag_1 = __importDefault(require("./logic/html/stylesheet_tag"));
|
|
65
|
+
const placeholder_svg_tag_1 = __importDefault(require("./logic/html/placeholder_svg_tag"));
|
|
66
|
+
const time_tag_1 = __importDefault(require("./logic/html/time_tag"));
|
|
67
|
+
// localization
|
|
68
|
+
const currency_selector_1 = __importDefault(require("./logic/localization/currency_selector"));
|
|
69
|
+
const format_address_1 = __importDefault(require("./logic/localization/format_address"));
|
|
70
|
+
// media
|
|
71
|
+
const external_video_tag_1 = __importDefault(require("./logic/media/external_video_tag"));
|
|
72
|
+
const external_video_url_1 = __importDefault(require("./logic/media/external_video_url"));
|
|
73
|
+
const image_url_1 = __importDefault(require("./logic/media/image_url"));
|
|
74
|
+
const image_tag_1 = __importDefault(require("./logic/media/image_tag"));
|
|
75
|
+
const image_url_2 = __importDefault(require("./logic/media/image_url"));
|
|
76
|
+
const media_tag_1 = __importDefault(require("./logic/media/media_tag"));
|
|
77
|
+
const model_viewer_tag_1 = __importDefault(require("./logic/media/model_viewer_tag"));
|
|
78
|
+
const video_tag_1 = __importDefault(require("./logic/media/video_tag"));
|
|
79
|
+
// math
|
|
80
|
+
const abs_1 = __importDefault(require("./logic/math/abs"));
|
|
81
|
+
const at_least_1 = __importDefault(require("./logic/math/at_least"));
|
|
82
|
+
const at_most_1 = __importDefault(require("./logic/math/at_most"));
|
|
83
|
+
const ceil_1 = __importDefault(require("./logic/math/ceil"));
|
|
84
|
+
const divided_by_1 = __importDefault(require("./logic/math/divided_by"));
|
|
85
|
+
const floor_1 = __importDefault(require("./logic/math/floor"));
|
|
86
|
+
const minus_1 = __importDefault(require("./logic/math/minus"));
|
|
87
|
+
const modulo_1 = __importDefault(require("./logic/math/modulo"));
|
|
88
|
+
const plus_1 = __importDefault(require("./logic/math/plus"));
|
|
89
|
+
const round_1 = __importDefault(require("./logic/math/round"));
|
|
90
|
+
const times_1 = __importDefault(require("./logic/math/times"));
|
|
91
|
+
const upcase_1 = __importDefault(require("./logic/strings/upcase"));
|
|
92
|
+
const capitalize_1 = __importDefault(require("./logic/strings/capitalize"));
|
|
93
|
+
const remove_1 = __importDefault(require("./logic/strings/remove"));
|
|
94
|
+
const downcase_1 = __importDefault(require("./logic/strings/downcase"));
|
|
95
|
+
const strip_1 = __importDefault(require("./logic/strings/strip"));
|
|
96
|
+
const truncate_1 = __importDefault(require("./logic/strings/truncate"));
|
|
97
|
+
const money_with_currency_1 = __importDefault(require("./logic/money/money_with_currency"));
|
|
98
|
+
const formatDate_1 = __importDefault(require("./logic/data/formatDate"));
|
|
99
|
+
const discountLabel_1 = __importDefault(require("./logic/money/discountLabel"));
|
|
100
|
+
const json_1 = __importDefault(require("./logic/json/json"));
|
|
101
|
+
const money_without_trailing_zeros_1 = __importDefault(require("./logic/money/money_without_trailing_zeros"));
|
|
102
|
+
// assets
|
|
103
|
+
const assets_1 = __importDefault(require("./logic/urls/assets"));
|
|
104
|
+
exports.filters = [
|
|
105
|
+
{ fn: first_1.default, name: 'first', async: false },
|
|
106
|
+
{ fn: size_1.default, name: 'size', async: false },
|
|
107
|
+
{ fn: last_1.default, name: 'last', async: false },
|
|
108
|
+
{ fn: find_1.default, name: 'find', async: false },
|
|
109
|
+
{ fn: find_index_1.default, name: 'find_index', async: false },
|
|
110
|
+
{ fn: join_1.default, name: 'join', async: false },
|
|
111
|
+
{ fn: where_1.default, name: 'where', async: false },
|
|
112
|
+
{ fn: compact_1.default, name: 'compact', async: false },
|
|
113
|
+
{ fn: concat_1.default, name: 'concat', async: false },
|
|
114
|
+
{ fn: has_1.default, name: 'has', async: false },
|
|
115
|
+
{ fn: map_1.default, name: 'map', async: false },
|
|
116
|
+
{ fn: reject_1.default, name: 'reject', async: false },
|
|
117
|
+
{ fn: reverse_1.default, name: 'reverse', async: false },
|
|
118
|
+
{ fn: sort_natural_1.default, name: 'sort_natural', async: false },
|
|
119
|
+
{ fn: sort_1.default, name: 'sort', async: false },
|
|
120
|
+
{ fn: sum_1.default, name: 'sum', async: false },
|
|
121
|
+
{ fn: uniq_1.default, name: 'uniq', async: false },
|
|
122
|
+
{ fn: uniq_by_1.default, name: 'uniq_by', async: false },
|
|
123
|
+
{ fn: split_1.default, name: 'split', async: false },
|
|
124
|
+
{ fn: item_count_for_variant_1.default, name: 'item_count_for_variant', async: false },
|
|
125
|
+
{ fn: line_items_for_1.default, name: 'line_items_for', async: false },
|
|
126
|
+
{ fn: brightness_difference_1.default, name: 'brightness_difference', async: false },
|
|
127
|
+
{ fn: color_brightness_1.default, name: 'color_brightness', async: false },
|
|
128
|
+
{ fn: color_contrast_1.default, name: 'color_contrast', async: false },
|
|
129
|
+
{ fn: color_darken_1.default, name: 'color_darken', async: false },
|
|
130
|
+
{ fn: color_desaturate_1.default, name: 'color_desaturate', async: false },
|
|
131
|
+
{ fn: color_difference_1.default, name: 'color_difference', async: false },
|
|
132
|
+
{ fn: color_extract_1.default, name: 'color_extract', async: false },
|
|
133
|
+
{ fn: color_lighten_1.default, name: 'color_lighten', async: false },
|
|
134
|
+
{ fn: color_mix_1.default, name: 'color_mix', async: false },
|
|
135
|
+
{ fn: color_modify_1.default, name: 'color_modify', async: false },
|
|
136
|
+
{ fn: color_saturate_1.default, name: 'color_saturate', async: false },
|
|
137
|
+
{ fn: color_to_hex_1.default, name: 'color_to_hex', async: false },
|
|
138
|
+
{ fn: color_to_hsl_1.default, name: 'color_to_hsl', async: false },
|
|
139
|
+
{ fn: color_to_oklch_1.default, name: 'color_to_oklch', async: false },
|
|
140
|
+
{ fn: color_to_rgb_1.default, name: 'color_to_rgb', async: false },
|
|
141
|
+
{ fn: hex_to_rgba_1.default, name: 'hex_to_rgba', async: false },
|
|
142
|
+
{ fn: customer_login_link_1.default, name: 'customer_login_link', async: false },
|
|
143
|
+
{ fn: customer_logout_link_1.default, name: 'customer_logout_link', async: false },
|
|
144
|
+
{ fn: customer_register_link_1.default, name: 'customer_register_link', async: false },
|
|
145
|
+
{ fn: login_button_1.default, name: 'login_button', async: false },
|
|
146
|
+
{ fn: default_pagination_1.default, name: 'default_pagination', async: false },
|
|
147
|
+
{ fn: date_1.default, name: 'dateFilter', async: false },
|
|
148
|
+
{ fn: structured_data_1.default, name: 'structured_data', async: false },
|
|
149
|
+
{ fn: unit_price_with_measurement_1.default, name: 'unit_price_with_measurement', async: false },
|
|
150
|
+
{ fn: weight_with_unit_1.default, name: 'weight_with_unit', async: false },
|
|
151
|
+
{ fn: highlight_1.default, name: 'highlight', async: false },
|
|
152
|
+
{ fn: link_to_1.default, name: 'link_to', async: false },
|
|
153
|
+
{ fn: preload_tag_1.default, name: 'preload_tag', async: false },
|
|
154
|
+
{ fn: script_tag_1.default, name: 'script_tag', async: false },
|
|
155
|
+
{ fn: stylesheet_tag_1.default, name: 'stylesheet_tag', async: false },
|
|
156
|
+
{ fn: placeholder_svg_tag_1.default, name: 'placeholder_svg_tag', async: false },
|
|
157
|
+
{ fn: time_tag_1.default, name: 'time_tag', async: false },
|
|
158
|
+
{ fn: currency_selector_1.default, name: 'currency_selector', async: true },
|
|
159
|
+
{ fn: format_address_1.default, name: 'format_address', async: false },
|
|
160
|
+
{ fn: external_video_tag_1.default, name: 'external_video_tag', async: false },
|
|
161
|
+
{ fn: external_video_url_1.default, name: 'external_video_url', async: false },
|
|
162
|
+
{ fn: image_url_1.default, name: 'image_url', async: false },
|
|
163
|
+
{ fn: image_tag_1.default, name: 'image_tag', async: false },
|
|
164
|
+
{ fn: image_url_2.default, name: 'img_url', async: false },
|
|
165
|
+
{ fn: media_tag_1.default, name: 'media_tag', async: false },
|
|
166
|
+
{ fn: model_viewer_tag_1.default, name: 'model_viewer_tag', async: false },
|
|
167
|
+
{ fn: video_tag_1.default, name: 'video_tag', async: false },
|
|
168
|
+
{ fn: abs_1.default, name: 'abs', async: false },
|
|
169
|
+
{ fn: at_least_1.default, name: 'at_least', async: false },
|
|
170
|
+
{ fn: at_most_1.default, name: 'at_most', async: false },
|
|
171
|
+
{ fn: ceil_1.default, name: 'ceil', async: false },
|
|
172
|
+
{ fn: divided_by_1.default, name: 'divided_by', async: false },
|
|
173
|
+
{ fn: floor_1.default, name: 'floor', async: false },
|
|
174
|
+
{ fn: minus_1.default, name: 'minus', async: false },
|
|
175
|
+
{ fn: modulo_1.default, name: 'modulo', async: false },
|
|
176
|
+
{ fn: plus_1.default, name: 'plus', async: false },
|
|
177
|
+
{ fn: round_1.default, name: 'round', async: false },
|
|
178
|
+
{ fn: times_1.default, name: 'times', async: false },
|
|
179
|
+
{ fn: upcase_1.default, name: 'upcase', async: false },
|
|
180
|
+
{ fn: capitalize_1.default, name: 'capitalize', async: false },
|
|
181
|
+
{ fn: remove_1.default, name: 'remove', async: false },
|
|
182
|
+
{ fn: downcase_1.default, name: 'downcase', async: false },
|
|
183
|
+
{ fn: strip_1.default, name: 'strip', async: false },
|
|
184
|
+
{ fn: truncate_1.default, name: 'truncate', async: false },
|
|
185
|
+
{ fn: money_with_currency_1.default, name: 'money', async: false },
|
|
186
|
+
{ fn: formatDate_1.default, name: 'date', async: false },
|
|
187
|
+
{ fn: discountLabel_1.default, name: 'discountLabel', async: false },
|
|
188
|
+
{ fn: json_1.default, name: 'json', async: false },
|
|
189
|
+
{ fn: money_without_trailing_zeros_1.default, name: 'money_without_trailing_zeros', async: false },
|
|
190
|
+
{ fn: assets_1.default, name: 'assets', async: false },
|
|
191
|
+
];
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export { default as first } from './first';
|
|
2
|
-
export { default as size } from './size';
|
|
3
|
-
export { default as last } from './last';
|
|
4
|
-
export { default as find } from './find';
|
|
5
|
-
export { default as find_index } from './find_index';
|
|
6
|
-
export { default as join } from './join';
|
|
7
|
-
export { default as where } from './where';
|
|
8
|
-
export { default as compact } from './compact';
|
|
9
|
-
export { default as concat } from './concat';
|
|
10
|
-
export { default as has } from './has';
|
|
11
|
-
export { default as map } from './map';
|
|
12
|
-
export { default as reject } from './reject';
|
|
13
|
-
export { default as reverse } from './reverse';
|
|
14
|
-
export { default as sort_natural } from './sort_natural';
|
|
15
|
-
export { default as sort } from './sort';
|
|
16
|
-
export { default as sum } from './sum';
|
|
17
|
-
export { default as uniq } from './uniq';
|
|
18
|
-
export { default as uniq_by } from './uniq_by';
|
|
19
|
-
export { default as split } from './split';
|
|
@@ -1,44 +1 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.split = exports.uniq_by = exports.uniq = exports.sum = exports.sort = exports.sort_natural = exports.reverse = exports.reject = exports.map = exports.has = exports.concat = exports.compact = exports.where = exports.join = exports.find_index = exports.find = exports.last = exports.size = exports.first = void 0;
|
|
7
|
-
var first_1 = require("./first");
|
|
8
|
-
Object.defineProperty(exports, "first", { enumerable: true, get: function () { return __importDefault(first_1).default; } });
|
|
9
|
-
var size_1 = require("./size");
|
|
10
|
-
Object.defineProperty(exports, "size", { enumerable: true, get: function () { return __importDefault(size_1).default; } });
|
|
11
|
-
var last_1 = require("./last");
|
|
12
|
-
Object.defineProperty(exports, "last", { enumerable: true, get: function () { return __importDefault(last_1).default; } });
|
|
13
|
-
var find_1 = require("./find");
|
|
14
|
-
Object.defineProperty(exports, "find", { enumerable: true, get: function () { return __importDefault(find_1).default; } });
|
|
15
|
-
var find_index_1 = require("./find_index");
|
|
16
|
-
Object.defineProperty(exports, "find_index", { enumerable: true, get: function () { return __importDefault(find_index_1).default; } });
|
|
17
|
-
var join_1 = require("./join");
|
|
18
|
-
Object.defineProperty(exports, "join", { enumerable: true, get: function () { return __importDefault(join_1).default; } });
|
|
19
|
-
var where_1 = require("./where");
|
|
20
|
-
Object.defineProperty(exports, "where", { enumerable: true, get: function () { return __importDefault(where_1).default; } });
|
|
21
|
-
var compact_1 = require("./compact");
|
|
22
|
-
Object.defineProperty(exports, "compact", { enumerable: true, get: function () { return __importDefault(compact_1).default; } });
|
|
23
|
-
var concat_1 = require("./concat");
|
|
24
|
-
Object.defineProperty(exports, "concat", { enumerable: true, get: function () { return __importDefault(concat_1).default; } });
|
|
25
|
-
var has_1 = require("./has");
|
|
26
|
-
Object.defineProperty(exports, "has", { enumerable: true, get: function () { return __importDefault(has_1).default; } });
|
|
27
|
-
var map_1 = require("./map");
|
|
28
|
-
Object.defineProperty(exports, "map", { enumerable: true, get: function () { return __importDefault(map_1).default; } });
|
|
29
|
-
var reject_1 = require("./reject");
|
|
30
|
-
Object.defineProperty(exports, "reject", { enumerable: true, get: function () { return __importDefault(reject_1).default; } });
|
|
31
|
-
var reverse_1 = require("./reverse");
|
|
32
|
-
Object.defineProperty(exports, "reverse", { enumerable: true, get: function () { return __importDefault(reverse_1).default; } });
|
|
33
|
-
var sort_natural_1 = require("./sort_natural");
|
|
34
|
-
Object.defineProperty(exports, "sort_natural", { enumerable: true, get: function () { return __importDefault(sort_natural_1).default; } });
|
|
35
|
-
var sort_1 = require("./sort");
|
|
36
|
-
Object.defineProperty(exports, "sort", { enumerable: true, get: function () { return __importDefault(sort_1).default; } });
|
|
37
|
-
var sum_1 = require("./sum");
|
|
38
|
-
Object.defineProperty(exports, "sum", { enumerable: true, get: function () { return __importDefault(sum_1).default; } });
|
|
39
|
-
var uniq_1 = require("./uniq");
|
|
40
|
-
Object.defineProperty(exports, "uniq", { enumerable: true, get: function () { return __importDefault(uniq_1).default; } });
|
|
41
|
-
var uniq_by_1 = require("./uniq_by");
|
|
42
|
-
Object.defineProperty(exports, "uniq_by", { enumerable: true, get: function () { return __importDefault(uniq_by_1).default; } });
|
|
43
|
-
var split_1 = require("./split");
|
|
44
|
-
Object.defineProperty(exports, "split", { enumerable: true, get: function () { return __importDefault(split_1).default; } });
|
|
@@ -1,10 +1 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.line_items_for = exports.item_count_for_variant = void 0;
|
|
7
|
-
var item_count_for_variant_1 = require("./item_count_for_variant");
|
|
8
|
-
Object.defineProperty(exports, "item_count_for_variant", { enumerable: true, get: function () { return __importDefault(item_count_for_variant_1).default; } });
|
|
9
|
-
var line_items_for_1 = require("./line_items_for");
|
|
10
|
-
Object.defineProperty(exports, "line_items_for", { enumerable: true, get: function () { return __importDefault(line_items_for_1).default; } });
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export { default as brightness_difference } from './brightness_difference';
|
|
2
|
-
export { default as color_brightness } from './color_brightness';
|
|
3
|
-
export { default as color_contrast } from './color_contrast';
|
|
4
|
-
export { default as color_darken } from './color_darken';
|
|
5
|
-
export { default as color_desaturate } from './color_desaturate';
|
|
6
|
-
export { default as color_difference } from './color_difference';
|
|
7
|
-
export { default as color_extract } from './color_extract';
|
|
8
|
-
export { default as color_lighten } from './color_lighten';
|
|
9
|
-
export { default as color_mix } from './color_mix';
|
|
10
|
-
export { default as color_modify } from './color_modify';
|
|
11
|
-
export { default as color_saturate } from './color_saturate';
|
|
12
|
-
export { default as color_to_hex } from './color_to_hex';
|
|
13
|
-
export { default as color_to_hsl } from './color_to_hsl';
|
|
14
|
-
export { default as color_to_oklch } from './color_to_oklch';
|
|
15
|
-
export { default as color_to_rgb } from './color_to_rgb';
|
|
16
|
-
export { default as hex_to_rgba } from './hex_to_rgba';
|