@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/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,c=l.getDateRange(s),_=l.DATE_RANGE_OPTIONS.find(({value:e})=>e===s),E="25",T="1",A="order",b=200,p=[10,25,50,100],n={DATE_RANGE_FILTERS:a,SEARCH_FILTER_ID:d,NUMBER_RANGE_FILTERS:o,DEFAULT_DATE_SELECTION:s,DEFAULT_DATE_RANGE:c,DEFAULT_DATE_PRESET:_,DEFAULT_PAGE_SIZE:E,DEFAULT_PAGE_NUMBER:T,VIEW_TYPE:A,FILTERS_DEBOUCE_INTERVAL_MS:b,PAGE_SIZE_OPTIONS:p},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}},L=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=L;
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 o, getDateRange as s, DateRanges as r } from "@veeqo/ui";
2
- import { BusinessLogicManager as n } from "./index8.js";
3
- const d = ["due_date"], u = ["product_count"], i = "filter[search]", l = r.TODAY, _ = s(l), c = o.find(
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
- ), T = "25", A = "1", E = "order", b = 200, p = [10, 25, 50, 100], L = {
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: i,
8
- NUMBER_RANGE_FILTERS: u,
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: T,
13
- DEFAULT_PAGE_NUMBER: A,
14
- VIEW_TYPE: E,
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
- }, D = () => {
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
- }, F = (e) => {
155
- const t = D(), a = { ...L, ...t, ...e };
156
- n.setBusinessLogic(a);
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
- u as NUMBER_RANGE_FILTERS,
161
- L as customAppBusinessLogic,
162
- D as generateMockedFilterMaps,
163
- F as setMockedBusinessLogic
162
+ _ as NUMBER_RANGE_FILTERS,
163
+ S as customAppBusinessLogic,
164
+ h as generateMockedFilterMaps,
165
+ M as setMockedBusinessLogic
164
166
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veeqo/transfigure",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "main": "dist/index.cjs",