@everymatrix/pam-account-balance-modal 0.1.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.
Files changed (56) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-f01eba32.js +1227 -0
  3. package/dist/cjs/index.cjs.js +10 -0
  4. package/dist/cjs/loader.cjs.js +15 -0
  5. package/dist/cjs/pam-account-balance-modal-81ade12d.js +1704 -0
  6. package/dist/cjs/pam-account-balance-modal.cjs.js +25 -0
  7. package/dist/cjs/pam-account-balance-modal_2.cjs.entry.js +175 -0
  8. package/dist/collection/collection-manifest.json +19 -0
  9. package/dist/collection/components/pam-account-balance-modal/index.js +1 -0
  10. package/dist/collection/components/pam-account-balance-modal/pam-account-balance-modal.css +217 -0
  11. package/dist/collection/components/pam-account-balance-modal/pam-account-balance-modal.interface.js +1 -0
  12. package/dist/collection/components/pam-account-balance-modal/pam-account-balance-modal.js +635 -0
  13. package/dist/collection/index.js +1 -0
  14. package/dist/collection/utils/locale.utils.js +227 -0
  15. package/dist/esm/app-globals-0f993ce5.js +3 -0
  16. package/dist/esm/index-ee727666.js +1200 -0
  17. package/dist/esm/index.js +2 -0
  18. package/dist/esm/loader.js +11 -0
  19. package/dist/esm/pam-account-balance-modal-8ebcc863.js +1702 -0
  20. package/dist/esm/pam-account-balance-modal.js +20 -0
  21. package/dist/esm/pam-account-balance-modal_2.entry.js +170 -0
  22. package/dist/index.cjs.js +1 -0
  23. package/dist/index.js +1 -0
  24. package/dist/pam-account-balance-modal/index.esm.js +1 -0
  25. package/dist/pam-account-balance-modal/p-86b371f2.js +2 -0
  26. package/dist/pam-account-balance-modal/p-b60c42bd.js +7 -0
  27. package/dist/pam-account-balance-modal/p-d74c687e.entry.js +1 -0
  28. package/dist/pam-account-balance-modal/p-e1255160.js +1 -0
  29. package/dist/pam-account-balance-modal/pam-account-balance-modal.esm.js +1 -0
  30. package/dist/stencil.config.dev.js +19 -0
  31. package/dist/stencil.config.js +18 -0
  32. package/dist/storybook/main.js +43 -0
  33. package/dist/storybook/preview.js +9 -0
  34. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  35. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/packages/stencil/pam-account-balance-modal/stencil.config.d.ts +2 -0
  36. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/packages/stencil/pam-account-balance-modal/stencil.config.dev.d.ts +2 -0
  37. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/packages/stencil/pam-account-balance-modal/storybook/main.d.ts +3 -0
  38. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/packages/stencil/pam-account-balance-modal/storybook/preview.d.ts +70 -0
  39. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/tools/plugins/index.d.ts +3 -0
  40. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  41. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  42. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-account-balance-modal/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  43. package/dist/types/components/pam-account-balance-modal/index.d.ts +1 -0
  44. package/dist/types/components/pam-account-balance-modal/pam-account-balance-modal.d.ts +52 -0
  45. package/dist/types/components/pam-account-balance-modal/pam-account-balance-modal.interface.d.ts +10 -0
  46. package/dist/types/components.d.ts +65 -0
  47. package/dist/types/index.d.ts +1 -0
  48. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  49. package/dist/types/utils/locale.utils.d.ts +31 -0
  50. package/loader/cdn.js +1 -0
  51. package/loader/index.cjs.js +1 -0
  52. package/loader/index.d.ts +24 -0
  53. package/loader/index.es2017.js +1 -0
  54. package/loader/index.js +2 -0
  55. package/loader/package.json +11 -0
  56. package/package.json +27 -0
@@ -0,0 +1,52 @@
1
+ import { EventSourcePolyfill } from 'event-source-polyfill';
2
+ import { Balances } from './pam-account-balance-modal.interface';
3
+ import "../../../../../../dist/packages/stencil/ui-skeleton/dist/types/index";
4
+ export declare class PamAccountBalanceModal {
5
+ userId: string;
6
+ session: string;
7
+ endpoint: string;
8
+ customLocaleIdentifier: string;
9
+ displayBalanceOption: string;
10
+ totalCalculationMode: string;
11
+ currencySeparator: string;
12
+ currencyDecimal: string;
13
+ currencyPrecision: string;
14
+ mbSource: string;
15
+ clientStyling: string;
16
+ clientStylingUrl: string;
17
+ translationUrl: string;
18
+ language: string;
19
+ private stylingContainer;
20
+ private stylingSubscription;
21
+ isLoading: boolean;
22
+ isModalDisplayed: boolean;
23
+ isSplitWallet: boolean;
24
+ currentStream: EventSourcePolyfill;
25
+ currency: string;
26
+ updateRealAmountState: Record<string, any>;
27
+ balances: Balances;
28
+ totalCalculationModes: string[];
29
+ handleClientStylingChange(newValue: any, oldValue: any): void;
30
+ handleClientStylingUrlChange(newValue: any, oldValue: any): void;
31
+ handleMbSourceChange(newValue: any, oldValue: any): void;
32
+ componentWillLoad(): void;
33
+ componentDidLoad(): void;
34
+ disconnectedCallback(): void;
35
+ setLocaleIdentifier: () => string | undefined;
36
+ formatBalance: (balance: number) => string;
37
+ getBalances: () => Promise<Record<string, any>>;
38
+ setBalances(balanceData: Record<string, any>): void;
39
+ setBalancesWhenSingleWallet(balanceData: Record<string, any>): void;
40
+ setBalancesWhenSplitWallet(balanceData: Record<string, any>): void;
41
+ subscribeToBalanceUpdates: () => void;
42
+ parseData: (data: string) => Record<string, any>;
43
+ updateRealAmount: (currentRealAmount: number, state: Record<string, any>, balanceItem: Record<string, any>) => number;
44
+ updateTotalAmount: () => void;
45
+ updateBalances: (e: MessageEvent) => void;
46
+ balanceModalOpenDeposit: () => void;
47
+ validateTotalCalculationMode: () => void;
48
+ messageHandler: (e: MessageEvent) => any;
49
+ updateBalanceStyling: () => void;
50
+ toggleModal: (action: string) => void;
51
+ render(): any;
52
+ }
@@ -0,0 +1,10 @@
1
+ export interface BalanceItem {
2
+ amount: number;
3
+ productType: string;
4
+ }
5
+ export interface Balances {
6
+ Total: BalanceItem[];
7
+ Real: BalanceItem[];
8
+ Bonus: BalanceItem[];
9
+ Credit: BalanceItem[];
10
+ }
@@ -0,0 +1,65 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ export namespace Components {
9
+ interface PamAccountBalanceModal {
10
+ "clientStyling": string;
11
+ "clientStylingUrl": string;
12
+ "currencyDecimal": string;
13
+ "currencyPrecision": string;
14
+ "currencySeparator": string;
15
+ "customLocaleIdentifier": string;
16
+ "displayBalanceOption": string;
17
+ "endpoint": string;
18
+ "language": string;
19
+ "mbSource": string;
20
+ "session": string;
21
+ "totalCalculationMode": string;
22
+ "translationUrl": string;
23
+ "userId": string;
24
+ }
25
+ }
26
+ declare global {
27
+ interface HTMLPamAccountBalanceModalElement extends Components.PamAccountBalanceModal, HTMLStencilElement {
28
+ }
29
+ var HTMLPamAccountBalanceModalElement: {
30
+ prototype: HTMLPamAccountBalanceModalElement;
31
+ new (): HTMLPamAccountBalanceModalElement;
32
+ };
33
+ interface HTMLElementTagNameMap {
34
+ "pam-account-balance-modal": HTMLPamAccountBalanceModalElement;
35
+ }
36
+ }
37
+ declare namespace LocalJSX {
38
+ interface PamAccountBalanceModal {
39
+ "clientStyling"?: string;
40
+ "clientStylingUrl"?: string;
41
+ "currencyDecimal"?: string;
42
+ "currencyPrecision"?: string;
43
+ "currencySeparator"?: string;
44
+ "customLocaleIdentifier"?: string;
45
+ "displayBalanceOption"?: string;
46
+ "endpoint"?: string;
47
+ "language"?: string;
48
+ "mbSource"?: string;
49
+ "session"?: string;
50
+ "totalCalculationMode"?: string;
51
+ "translationUrl"?: string;
52
+ "userId"?: string;
53
+ }
54
+ interface IntrinsicElements {
55
+ "pam-account-balance-modal": PamAccountBalanceModal;
56
+ }
57
+ }
58
+ export { LocalJSX as JSX };
59
+ declare module "@stencil/core" {
60
+ export namespace JSX {
61
+ interface IntrinsicElements {
62
+ "pam-account-balance-modal": LocalJSX.PamAccountBalanceModal & JSXBase.HTMLAttributes<HTMLPamAccountBalanceModalElement>;
63
+ }
64
+ }
65
+ }
@@ -0,0 +1 @@
1
+ export * from './components/pam-account-balance-modal';