@bikdotai/bik-component-library 0.0.331-discount-modal-beta-4 → 0.0.331

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.
Files changed (49) hide show
  1. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +2 -2
  2. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -1
  3. package/dist/cjs/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -1
  4. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  5. package/dist/cjs/components/discount-modal/DiscountModal.d.ts +0 -7
  6. package/dist/cjs/components/discount-modal/DiscountModal.js +1 -1
  7. package/dist/cjs/components/discount-modal/DiscountUtils.d.ts +0 -2
  8. package/dist/cjs/components/discount-modal/DiscountUtils.js +1 -1
  9. package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.d.ts +0 -1
  10. package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
  11. package/dist/cjs/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -1
  12. package/dist/cjs/components/discount-modal/type.d.ts +2 -11
  13. package/dist/cjs/components/discount-modal/type.js +1 -1
  14. package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
  15. package/dist/cjs/components/dropdown/type.d.ts +0 -1
  16. package/dist/cjs/components/input/Input.js +1 -1
  17. package/dist/cjs/components/product-picker-v2/modal.d.ts +0 -7
  18. package/dist/cjs/components/product-picker-v2/modal.js +1 -1
  19. package/dist/cjs/components/product-picker-v2/productScreen.d.ts +0 -8
  20. package/dist/cjs/components/product-picker-v2/productScreen.js +1 -1
  21. package/dist/esm/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +2 -2
  22. package/dist/esm/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -1
  23. package/dist/esm/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -1
  24. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  25. package/dist/esm/components/discount-modal/DiscountModal.d.ts +0 -7
  26. package/dist/esm/components/discount-modal/DiscountModal.js +1 -1
  27. package/dist/esm/components/discount-modal/DiscountUtils.d.ts +0 -2
  28. package/dist/esm/components/discount-modal/DiscountUtils.js +1 -1
  29. package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.d.ts +0 -1
  30. package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
  31. package/dist/esm/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -1
  32. package/dist/esm/components/discount-modal/type.d.ts +2 -11
  33. package/dist/esm/components/discount-modal/type.js +1 -1
  34. package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
  35. package/dist/esm/components/dropdown/type.d.ts +0 -1
  36. package/dist/esm/components/input/Input.js +1 -1
  37. package/dist/esm/components/product-picker-v2/modal.d.ts +0 -7
  38. package/dist/esm/components/product-picker-v2/modal.js +1 -1
  39. package/dist/esm/components/product-picker-v2/productScreen.d.ts +0 -8
  40. package/dist/esm/components/product-picker-v2/productScreen.js +1 -1
  41. package/package.json +1 -1
  42. package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.d.ts +0 -33
  43. package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.js +0 -1
  44. package/dist/cjs/components/product-picker-v2/type.d.ts +0 -6
  45. package/dist/cjs/components/product-picker-v2/type.js +0 -1
  46. package/dist/esm/components/product-picker-v2/helpers/ProductHelper.d.ts +0 -33
  47. package/dist/esm/components/product-picker-v2/helpers/ProductHelper.js +0 -1
  48. package/dist/esm/components/product-picker-v2/type.d.ts +0 -6
  49. package/dist/esm/components/product-picker-v2/type.js +0 -1
@@ -1,33 +0,0 @@
1
- import { Product, ProductVariant } from '../modal';
2
- import { OUT_OF_STOCK_ACTION } from '../type';
3
- export declare class ProductHelper {
4
- /**
5
- * how to know if a product is out of stock? currentCombination.quantity === 0 (OOS)
6
- * how to know if a product is hidden ? skipSync === true (not-synced)
7
- *
8
- * if outOfStockAction === OUT_OF_STOCK_ACTION.HIDE
9
- * - not-synced && OOS => NOT_SYNCED
10
- * - not-synced && !OOS => NOT_SYNCED
11
- * - !not-synced && OOS => NOT_SYNCED
12
- * - !not-synced && !OOS => NORMAL
13
- *
14
- *
15
- * if outOfStockAction === OUT_OF_STOCK_ACTION.BLUR
16
- * - not-synced && OOS => NOT_SYNCED
17
- * - not-synced && !OOS => NOT_SYNCED
18
- * - !not-synced && OOS => OUT_OF_STOCK
19
- * - !not-synced && !OOS => NORMAL
20
- *
21
- *
22
- * if outOfStockAction === OUT_OF_STOCK_ACTION.NORMAL
23
- * - not-synced && OOS => NOT_SYNCED
24
- * - not-synced && !OOS => NOT_SYNCED
25
- * - !not-synced && OOS => NORMAL
26
- * - !not-synced && !OOS => NORMAL
27
- *
28
- * @param product
29
- * @param currentCombination
30
- * @param outOfStockAction
31
- */
32
- static getProductLabels(productVariant: Product | ProductVariant, outOfStockAction?: OUT_OF_STOCK_ACTION): string | null;
33
- }
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("../type.js");const t={NORMAL:null,NOT_SYNCED:"Hidden",OUT_OF_STOCK:"Out of Stock"};exports.ProductHelper=class{static getProductLabels(i){let u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.OUT_OF_STOCK_ACTION.NORMAL,l="NORMAL";if(i.variants)return t[l];const O=i;return u===n.OUT_OF_STOCK_ACTION.HIDE&&(!O.skipSync||0!==(null==O?void 0:O.quantity)&&-2!==(null==O?void 0:O.quantity)||(l="NOT_SYNCED"),O.skipSync&&0!==(null==O?void 0:O.quantity)&&-2!==(null==O?void 0:O.quantity)&&(l="NOT_SYNCED"),O.skipSync||0!==(null==O?void 0:O.quantity)&&-2!==(null==O?void 0:O.quantity)||(l="NOT_SYNCED"),O.skipSync||0===(null==O?void 0:O.quantity)||-2===(null==O?void 0:O.quantity)||(l="NORMAL")),u===n.OUT_OF_STOCK_ACTION.BLUR&&(!O.skipSync||0!==(null==O?void 0:O.quantity)&&-2!==(null==O?void 0:O.quantity)||(l="NOT_SYNCED"),O.skipSync&&0!==(null==O?void 0:O.quantity)&&-2!==(null==O?void 0:O.quantity)&&(l="NOT_SYNCED"),O.skipSync||0!==(null==O?void 0:O.quantity)&&-2!==(null==O?void 0:O.quantity)||(l="OUT_OF_STOCK"),O.skipSync||0===(null==O?void 0:O.quantity)||-2===(null==O?void 0:O.quantity)||(l="NORMAL")),u===n.OUT_OF_STOCK_ACTION.NORMAL&&(!O.skipSync||0!==(null==O?void 0:O.quantity)&&-2!==(null==O?void 0:O.quantity)||(l="NOT_SYNCED"),O.skipSync&&0!==(null==O?void 0:O.quantity)&&-2!==(null==O?void 0:O.quantity)&&(l="NOT_SYNCED"),O.skipSync||0!==(null==O?void 0:O.quantity)&&-2!==(null==O?void 0:O.quantity)||(l="NORMAL"),O.skipSync||0===(null==O?void 0:O.quantity)||-2===(null==O?void 0:O.quantity)||(l="NORMAL")),t[l]}};
@@ -1,6 +0,0 @@
1
- export declare enum OUT_OF_STOCK_ACTION {
2
- HIDE = "HIDE",
3
- NORMAL = "NORMAL",
4
- /** @description shows OOS label */
5
- BLUR = "BLUR"
6
- }
@@ -1 +0,0 @@
1
- "use strict";var O;Object.defineProperty(exports,"__esModule",{value:!0}),exports.OUT_OF_STOCK_ACTION=void 0,(O=exports.OUT_OF_STOCK_ACTION||(exports.OUT_OF_STOCK_ACTION={})).HIDE="HIDE",O.NORMAL="NORMAL",O.BLUR="BLUR";
@@ -1,33 +0,0 @@
1
- import { Product, ProductVariant } from '../modal';
2
- import { OUT_OF_STOCK_ACTION } from '../type';
3
- export declare class ProductHelper {
4
- /**
5
- * how to know if a product is out of stock? currentCombination.quantity === 0 (OOS)
6
- * how to know if a product is hidden ? skipSync === true (not-synced)
7
- *
8
- * if outOfStockAction === OUT_OF_STOCK_ACTION.HIDE
9
- * - not-synced && OOS => NOT_SYNCED
10
- * - not-synced && !OOS => NOT_SYNCED
11
- * - !not-synced && OOS => NOT_SYNCED
12
- * - !not-synced && !OOS => NORMAL
13
- *
14
- *
15
- * if outOfStockAction === OUT_OF_STOCK_ACTION.BLUR
16
- * - not-synced && OOS => NOT_SYNCED
17
- * - not-synced && !OOS => NOT_SYNCED
18
- * - !not-synced && OOS => OUT_OF_STOCK
19
- * - !not-synced && !OOS => NORMAL
20
- *
21
- *
22
- * if outOfStockAction === OUT_OF_STOCK_ACTION.NORMAL
23
- * - not-synced && OOS => NOT_SYNCED
24
- * - not-synced && !OOS => NOT_SYNCED
25
- * - !not-synced && OOS => NORMAL
26
- * - !not-synced && !OOS => NORMAL
27
- *
28
- * @param product
29
- * @param currentCombination
30
- * @param outOfStockAction
31
- */
32
- static getProductLabels(productVariant: Product | ProductVariant, outOfStockAction?: OUT_OF_STOCK_ACTION): string | null;
33
- }
@@ -1 +0,0 @@
1
- import{OUT_OF_STOCK_ACTION as n}from"../type.js";const i={NORMAL:null,NOT_SYNCED:"Hidden",OUT_OF_STOCK:"Out of Stock"};class t{static getProductLabels(t){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.NORMAL,u="NORMAL";if(t.variants)return i[u];const y=t;return l===n.HIDE&&(!y.skipSync||0!==(null==y?void 0:y.quantity)&&-2!==(null==y?void 0:y.quantity)||(u="NOT_SYNCED"),y.skipSync&&0!==(null==y?void 0:y.quantity)&&-2!==(null==y?void 0:y.quantity)&&(u="NOT_SYNCED"),y.skipSync||0!==(null==y?void 0:y.quantity)&&-2!==(null==y?void 0:y.quantity)||(u="NOT_SYNCED"),y.skipSync||0===(null==y?void 0:y.quantity)||-2===(null==y?void 0:y.quantity)||(u="NORMAL")),l===n.BLUR&&(!y.skipSync||0!==(null==y?void 0:y.quantity)&&-2!==(null==y?void 0:y.quantity)||(u="NOT_SYNCED"),y.skipSync&&0!==(null==y?void 0:y.quantity)&&-2!==(null==y?void 0:y.quantity)&&(u="NOT_SYNCED"),y.skipSync||0!==(null==y?void 0:y.quantity)&&-2!==(null==y?void 0:y.quantity)||(u="OUT_OF_STOCK"),y.skipSync||0===(null==y?void 0:y.quantity)||-2===(null==y?void 0:y.quantity)||(u="NORMAL")),l===n.NORMAL&&(!y.skipSync||0!==(null==y?void 0:y.quantity)&&-2!==(null==y?void 0:y.quantity)||(u="NOT_SYNCED"),y.skipSync&&0!==(null==y?void 0:y.quantity)&&-2!==(null==y?void 0:y.quantity)&&(u="NOT_SYNCED"),y.skipSync||0!==(null==y?void 0:y.quantity)&&-2!==(null==y?void 0:y.quantity)||(u="NORMAL"),y.skipSync||0===(null==y?void 0:y.quantity)||-2===(null==y?void 0:y.quantity)||(u="NORMAL")),i[u]}}export{t as ProductHelper};
@@ -1,6 +0,0 @@
1
- export declare enum OUT_OF_STOCK_ACTION {
2
- HIDE = "HIDE",
3
- NORMAL = "NORMAL",
4
- /** @description shows OOS label */
5
- BLUR = "BLUR"
6
- }
@@ -1 +0,0 @@
1
- var L;!function(L){L.HIDE="HIDE",L.NORMAL="NORMAL",L.BLUR="BLUR"}(L||(L={}));export{L as OUT_OF_STOCK_ACTION};