@veeqo/transfigure 0.0.3 → 0.0.4
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/BusinessLogic/types.d.ts +2 -0
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +1 -1
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +1 -1
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +1 -1
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +1 -1
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +230 -230
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +28 -23
- package/dist/index76.cjs +19 -1
- package/dist/index76.js +23 -28
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +1 -1
- package/dist/index78.cjs +11 -18
- package/dist/index78.js +12 -20
- package/dist/index79.cjs +80 -1
- package/dist/index79.js +95 -22
- package/dist/index80.cjs +1 -80
- package/dist/index80.js +22 -95
- package/dist/index81.cjs +1 -12
- package/dist/index81.js +24 -16
- package/dist/index83.cjs +13 -1
- package/dist/index83.js +14 -33
- package/dist/index84.cjs +80 -1
- package/dist/index84.js +94 -62
- package/dist/index85.cjs +1 -13
- package/dist/index85.js +33 -14
- package/dist/index86.cjs +1 -80
- package/dist/index86.js +62 -94
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +21 -19
- package/package.json +1 -1
package/dist/index9.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@veeqo/ui"),i=require("./index8.cjs"),a=["due_date"],o=["product_count"],d="filter[search]",s=l.DateRanges.TODAY,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@veeqo/ui"),i=require("./index8.cjs"),a=["due_date"],o=["product_count"],d="filter[search]",s=l.DateRanges.TODAY,_=l.getDateRange(s),c=l.DATE_RANGE_OPTIONS.find(({value:e})=>e===s),E="25",T="1",A="order",b=200,p=[10,25,50,100],L="page[number]",D="page[size]",n={DATE_RANGE_FILTERS:a,SEARCH_FILTER_ID:d,NUMBER_RANGE_FILTERS:o,DEFAULT_DATE_SELECTION:s,DEFAULT_DATE_RANGE:_,DEFAULT_DATE_PRESET:c,DEFAULT_PAGE_SIZE:E,DEFAULT_PAGE_NUMBER:T,VIEW_TYPE:A,FILTERS_DEBOUCE_INTERVAL_MS:b,PAGE_SIZE_OPTIONS:p,PAGE_NUMBER_FILTER_ID:L,PAGE_SIZE_FILTER_ID:D},r=()=>{const e=new Map,t=new Map;return e.set("order_number",{id:"order_number",label:"Order number",filterType:"text",isFilterAllowed:!0}),t.set("order",{id:"order",label:"Order",fields:[e.get("order_number")]}),e.set("shoe_size",{id:"shoe_size",label:"Shoe size",filterType:"radio",isFilterAllowed:!0,options:[{label:"One",value:"1"},{label:"Two",value:"2"},{label:"Three",value:"3"},{label:"Four",value:"4"},{label:"Five",value:"5"}]}),t.set("shoe",{id:"shoe",label:"Shoe",fields:[e.get("shoe_size")]}),e.set("channel_id",{id:"channel_id",label:"Channel",filterType:"checkbox",isFilterAllowed:!0,fetchAsyncFilterOptions:{URL:"/channels",labelProperty:"name",valueProperty:"id",fetcher:"fetcherV1"}}),t.set("channel",{id:"channel",label:"Channel",fields:[e.get("channel_id")]}),e.set("product_count",{id:"product_count",label:"Product count",filterType:"number_range",isFilterAllowed:!0,options:[{label:"Min",value:"0"},{label:"Max",value:"100"}]}),t.set("product_count",{id:"product_count",label:"Product count",fields:[e.get("product_count")]}),e.set("due_date",{id:"due_date",label:"Due date",filterType:"date_range",isFilterAllowed:!0,options:[{label:"Today",value:"TODAY"},{label:"Yesterday",value:"YESTERDAY"},{label:"Last 7 days",value:"LAST_7_DAYS"},{label:"Last 30 days",value:"LAST_30_DAYS"},{label:"Last 90 days",value:"LAST_90_DAYS"},{label:"Last month",value:"LAST_MONTH"},{label:"Last 12 months",value:"LAST_12_MONTHS"},{label:"Week to date",value:"WEEK_TO_DATE"},{label:"Month to date",value:"MONTH_TO_DATE"},{label:"Year to date",value:"YEAR_TO_DATE"}]}),t.set("due",{id:"due",label:"Due",fields:[e.get("due_date")]}),e.set("max_products",{id:"max_products",label:"Max products",filterType:"number",isFilterAllowed:!0}),t.set("max_count",{id:"max_count",label:"Max count",fields:[e.get("max_products")]}),{FIELDS_MAP:e,GROUP_MAP:t}},S=e=>{const t=r(),u={...n,...t,...e};i.BusinessLogicManager.setBusinessLogic(u)};exports.DATE_RANGE_FILTERS=a;exports.NUMBER_RANGE_FILTERS=o;exports.customAppBusinessLogic=n;exports.generateMockedFilterMaps=r;exports.setMockedBusinessLogic=S;
|
package/dist/index9.js
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import { DATE_RANGE_OPTIONS as
|
|
2
|
-
import { BusinessLogicManager as
|
|
3
|
-
const d = ["due_date"],
|
|
1
|
+
import { DATE_RANGE_OPTIONS as s, getDateRange as o, DateRanges as n } from "@veeqo/ui";
|
|
2
|
+
import { BusinessLogicManager as r } from "./index8.js";
|
|
3
|
+
const d = ["due_date"], _ = ["product_count"], u = "filter[search]", l = n.TODAY, i = o(l), c = s.find(
|
|
4
4
|
({ value: e }) => e === l
|
|
5
|
-
),
|
|
5
|
+
), E = "25", T = "1", A = "order", b = 200, p = [10, 25, 50, 100], L = "page[number]", D = "page[size]", S = {
|
|
6
6
|
DATE_RANGE_FILTERS: d,
|
|
7
|
-
SEARCH_FILTER_ID:
|
|
8
|
-
NUMBER_RANGE_FILTERS:
|
|
7
|
+
SEARCH_FILTER_ID: u,
|
|
8
|
+
NUMBER_RANGE_FILTERS: _,
|
|
9
9
|
DEFAULT_DATE_SELECTION: l,
|
|
10
|
-
DEFAULT_DATE_RANGE:
|
|
10
|
+
DEFAULT_DATE_RANGE: i,
|
|
11
11
|
DEFAULT_DATE_PRESET: c,
|
|
12
|
-
DEFAULT_PAGE_SIZE:
|
|
13
|
-
DEFAULT_PAGE_NUMBER:
|
|
14
|
-
VIEW_TYPE:
|
|
12
|
+
DEFAULT_PAGE_SIZE: E,
|
|
13
|
+
DEFAULT_PAGE_NUMBER: T,
|
|
14
|
+
VIEW_TYPE: A,
|
|
15
15
|
FILTERS_DEBOUCE_INTERVAL_MS: b,
|
|
16
|
-
PAGE_SIZE_OPTIONS: p
|
|
17
|
-
|
|
16
|
+
PAGE_SIZE_OPTIONS: p,
|
|
17
|
+
PAGE_NUMBER_FILTER_ID: L,
|
|
18
|
+
PAGE_SIZE_FILTER_ID: D
|
|
19
|
+
}, h = () => {
|
|
18
20
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
|
|
19
21
|
return e.set("order_number", {
|
|
20
22
|
id: "order_number",
|
|
@@ -151,14 +153,14 @@ const d = ["due_date"], u = ["product_count"], i = "filter[search]", l = r.TODAY
|
|
|
151
153
|
label: "Max count",
|
|
152
154
|
fields: [e.get("max_products")]
|
|
153
155
|
}), { FIELDS_MAP: e, GROUP_MAP: t };
|
|
154
|
-
},
|
|
155
|
-
const t =
|
|
156
|
-
|
|
156
|
+
}, M = (e) => {
|
|
157
|
+
const t = h(), a = { ...S, ...t, ...e };
|
|
158
|
+
r.setBusinessLogic(a);
|
|
157
159
|
};
|
|
158
160
|
export {
|
|
159
161
|
d as DATE_RANGE_FILTERS,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
_ as NUMBER_RANGE_FILTERS,
|
|
163
|
+
S as customAppBusinessLogic,
|
|
164
|
+
h as generateMockedFilterMaps,
|
|
165
|
+
M as setMockedBusinessLogic
|
|
164
166
|
};
|