@everymatrix/user-transaction-history 1.44.0 → 1.45.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 (65) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-4699d9a2.js +1382 -0
  3. package/dist/cjs/loader.cjs.js +7 -13
  4. package/dist/cjs/user-transaction-history.cjs.entry.js +291 -295
  5. package/dist/cjs/user-transaction-history.cjs.js +17 -11
  6. package/dist/collection/collection-manifest.json +3 -3
  7. package/dist/collection/components/internal/filters.js +11 -20
  8. package/dist/collection/components/internal/loader.js +2 -14
  9. package/dist/collection/components/internal/page-size.js +3 -5
  10. package/dist/collection/components/internal/table.js +18 -29
  11. package/dist/collection/components/internal/transaction.js +4 -14
  12. package/dist/collection/components/user-transaction-history/index.js +1 -0
  13. package/dist/collection/components/user-transaction-history/user-transaction-history.js +334 -343
  14. package/dist/collection/global/app.js +1 -1
  15. package/dist/collection/utils/currency.utils.js +15 -15
  16. package/dist/collection/utils/date.util.js +6 -6
  17. package/dist/collection/utils/locale.util.js +60 -60
  18. package/dist/collection/utils/utils.js +3 -0
  19. package/dist/esm/app-globals-0f993ce5.js +3 -0
  20. package/dist/esm/index-b111cb50.js +1353 -0
  21. package/dist/esm/loader.js +7 -13
  22. package/dist/esm/user-transaction-history.entry.js +291 -295
  23. package/dist/esm/user-transaction-history.js +14 -11
  24. package/dist/stencil.config.dev.js +17 -0
  25. package/dist/stencil.config.js +14 -19
  26. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/stencil.config.d.ts +2 -0
  27. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/stencil.config.dev.d.ts +2 -0
  28. package/dist/types/components/internal/filters.d.ts +4 -4
  29. package/dist/types/components/internal/page-size.d.ts +4 -4
  30. package/dist/types/components/internal/table.d.ts +2 -2
  31. package/dist/types/components/user-transaction-history/index.d.ts +1 -0
  32. package/dist/types/components/user-transaction-history/user-transaction-history.d.ts +37 -37
  33. package/dist/types/contracts/translation.d.ts +2 -2
  34. package/dist/types/models/transactions-response.model.d.ts +17 -17
  35. package/dist/types/stencil-public-runtime.d.ts +142 -33
  36. package/dist/types/utils/currency.utils.d.ts +2 -2
  37. package/dist/types/utils/date.util.d.ts +2 -2
  38. package/dist/types/utils/locale.util.d.ts +38 -38
  39. package/dist/types/utils/utils.d.ts +1 -0
  40. package/dist/user-transaction-history/p-57173b50.js +2 -0
  41. package/dist/user-transaction-history/p-653991ac.entry.js +1 -0
  42. package/dist/user-transaction-history/p-e1255160.js +1 -0
  43. package/dist/user-transaction-history/user-transaction-history.esm.js +1 -1
  44. package/loader/cdn.js +1 -3
  45. package/loader/index.cjs.js +1 -3
  46. package/loader/index.d.ts +13 -1
  47. package/loader/index.es2017.js +1 -3
  48. package/loader/index.js +1 -3
  49. package/loader/package.json +1 -0
  50. package/package.json +8 -1
  51. package/dist/cjs/index-206e75cb.js +0 -1416
  52. package/dist/components/index.d.ts +0 -26
  53. package/dist/components/index.js +0 -1
  54. package/dist/components/user-transaction-history.d.ts +0 -11
  55. package/dist/components/user-transaction-history.js +0 -378
  56. package/dist/esm/index-32e3ae05.js +0 -1388
  57. package/dist/esm/polyfills/core-js.js +0 -11
  58. package/dist/esm/polyfills/css-shim.js +0 -1
  59. package/dist/esm/polyfills/dom.js +0 -79
  60. package/dist/esm/polyfills/es5-html-element.js +0 -1
  61. package/dist/esm/polyfills/index.js +0 -34
  62. package/dist/esm/polyfills/system.js +0 -6
  63. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/user-transaction-history/.stencil/packages/user-transaction-history/stencil.config.d.ts +0 -2
  64. package/dist/user-transaction-history/p-10b5b959.js +0 -1
  65. package/dist/user-transaction-history/p-4e4fb37e.entry.js +0 -1
@@ -1,19 +1,25 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-206e75cb.js');
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-4699d9a2.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
4
7
 
5
8
  /*
6
- Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
7
10
  */
8
- const patchBrowser = () => {
9
- const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('user-transaction-history.cjs.js', document.baseURI).href));
10
- const opts = {};
11
- if (importMeta !== '') {
12
- opts.resourcesUrl = new URL('.', importMeta).href;
13
- }
14
- return index.promiseResolve(opts);
11
+ var patchBrowser = () => {
12
+ const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('user-transaction-history.cjs.js', document.baseURI).href));
13
+ const opts = {};
14
+ if (importMeta !== "") {
15
+ opts.resourcesUrl = new URL(".", importMeta).href;
16
+ }
17
+ return index.promiseResolve(opts);
15
18
  };
16
19
 
17
- patchBrowser().then(options => {
18
- return index.bootstrapLazy([["user-transaction-history.cjs",[[1,"user-transaction-history",{"endpoint":[513],"session":[513],"language":[513],"userId":[513,"user-id"],"translationUrl":[513,"translation-url"],"mobile":[516],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"page":[32],"pageSize":[32],"showMobileFilter":[32],"to":[32],"from":[32],"type":[32],"transactions":[32],"showLoader":[32]},[[9,"resize","getComponentHeight"]]]]]], options);
20
+ patchBrowser().then(async (options) => {
21
+ await appGlobals.globalScripts();
22
+ return index.bootstrapLazy([["user-transaction-history.cjs",[[1,"user-transaction-history",{"endpoint":[513],"session":[513],"language":[513],"userId":[513,"user-id"],"translationUrl":[513,"translation-url"],"mobile":[516],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"page":[32],"pageSize":[32],"showMobileFilter":[32],"to":[32],"from":[32],"type":[32],"transactions":[32],"showLoader":[32]},[[9,"resize","getComponentHeight"]],{"page":["watchMultiple"],"type":["watchMultiple"],"session":["watchMultiple"],"userId":["watchMultiple"],"pageSize":["watchMultiple"],"showMobileFilter":["getComponentHeight"]}]]]], options);
19
23
  });
24
+
25
+ exports.setNonce = index.setNonce;
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "entries": [
3
- "./components/user-transaction-history/user-transaction-history.js"
3
+ "components/user-transaction-history/user-transaction-history.js"
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "2.15.2",
8
- "typescriptVersion": "4.5.4"
7
+ "version": "4.20.0",
8
+ "typescriptVersion": "5.5.3"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []
@@ -1,22 +1,13 @@
1
- import { h } from '@stencil/core';
2
- import { Localization } from '../../utils/locale.util';
1
+ import { h } from "@stencil/core";
2
+ import { Localization } from "../../utils/locale.util";
3
3
  export const Filters = ({ from, to, applyFilters, language }) => {
4
- let fromPicker;
5
- let toPicker;
6
- const fromChange = () => {
7
- from = fromPicker.value;
8
- };
9
- const toChange = () => {
10
- to = toPicker.value;
11
- };
12
- return (h("div", { class: "period" },
13
- h("div", { class: "period-content" },
14
- h("div", { class: "date-input" },
15
- h("vaadin-date-picker", { value: from, ref: el => (fromPicker = el), label: Localization.translate('from', language), onChange: fromChange })),
16
- h("span", null,
17
- h("svg", { width: "24px", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
18
- h("path", { d: "m21 11.75c0-.414-.336-.75-.75-.75h-16.5c-.414 0-.75.336-.75.75s.336.75.75.75h16.5c.414 0 .75-.336.75-.75z", "fill-rule": "nonzero", fill: '#5d687b' }))),
19
- h("div", { class: "date-input" },
20
- h("vaadin-date-picker", { value: to, ref: el => (toPicker = el), label: Localization.translate('to', language), onChange: toChange })),
21
- h("button", { class: "filter-btn", onClick: () => applyFilters(from, to) }, Localization.translate('filter', language)))));
4
+ let fromPicker;
5
+ let toPicker;
6
+ const fromChange = () => {
7
+ from = fromPicker.value;
8
+ };
9
+ const toChange = () => {
10
+ to = toPicker.value;
11
+ };
12
+ return (h("div", { class: "period" }, h("div", { class: "period-content" }, h("div", { class: "date-input" }, h("vaadin-date-picker", { value: from, ref: el => (fromPicker = el), label: Localization.translate('from', language), onChange: fromChange })), h("span", null, h("svg", { width: "24px", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "m21 11.75c0-.414-.336-.75-.75-.75h-16.5c-.414 0-.75.336-.75.75s.336.75.75.75h16.5c.414 0 .75-.336.75-.75z", "fill-rule": "nonzero", fill: '#5d687b' }))), h("div", { class: "date-input" }, h("vaadin-date-picker", { value: to, ref: el => (toPicker = el), label: Localization.translate('to', language), onChange: toChange })), h("button", { class: "filter-btn", onClick: () => applyFilters(from, to) }, Localization.translate('filter', language)))));
22
13
  };
@@ -1,14 +1,2 @@
1
- import { h } from '@stencil/core';
2
- export const Loader = () => (h("div", { class: "loader" },
3
- h("div", null),
4
- h("div", null),
5
- h("div", null),
6
- h("div", null),
7
- h("div", null),
8
- h("div", null),
9
- h("div", null),
10
- h("div", null),
11
- h("div", null),
12
- h("div", null),
13
- h("div", null),
14
- h("div", null)));
1
+ import { h } from "@stencil/core";
2
+ export const Loader = () => (h("div", { class: "loader" }, h("div", null), h("div", null), h("div", null), h("div", null), h("div", null), h("div", null), h("div", null), h("div", null), h("div", null), h("div", null), h("div", null), h("div", null)));
@@ -1,7 +1,5 @@
1
- import { h } from '@stencil/core';
2
- import { Localization } from '../../utils/locale.util';
1
+ import { h } from "@stencil/core";
2
+ import { Localization } from "../../utils/locale.util";
3
3
  export const PageSize = (props) => {
4
- return (h("div", { class: "page-size" },
5
- h("span", null, Localization.translate('show', props.language)),
6
- props.pageSizes.map(pageSize => (h("button", { class: props.currentPageSize === pageSize ? 'active' : '', onClick: () => props.changePageSize(pageSize) }, pageSize)))));
4
+ return (h("div", { class: "page-size" }, h("span", null, Localization.translate('show', props.language)), props.pageSizes.map(pageSize => (h("button", { class: props.currentPageSize === pageSize ? 'active' : '', onClick: () => props.changePageSize(pageSize) }, pageSize)))));
7
5
  };
@@ -1,31 +1,20 @@
1
- import { h } from '@stencil/core';
2
- import { CurrencyFormatter } from '../../utils/currency.utils';
3
- import { DateTransformer } from '../../utils/date.util';
4
- import { Localization } from '../../utils/locale.util';
1
+ import { h } from "@stencil/core";
2
+ import { CurrencyFormatter } from "../../utils/currency.utils";
3
+ import { DateTransformer } from "../../utils/date.util";
4
+ import { Localization } from "../../utils/locale.util";
5
5
  export const TableComponent = ({ source, language }) => {
6
- const columns = [
7
- { name: Localization.translate('transactionId', language) },
8
- {
9
- name: Localization.translate('date', language),
10
- },
11
- {
12
- name: Localization.translate('amount', language),
13
- },
14
- { name: Localization.translate('productType', language) },
15
- {
16
- name: Localization.translate('status', language),
17
- },
18
- ];
19
- return (h("table", null,
20
- h("thead", null,
21
- h("tr", null, columns.map(column => h("th", null, column.name)))),
22
- h("tbody", null, source.map(transaction => h("tr", null,
23
- h("td", null, transaction.transId),
24
- h("td", null, DateTransformer.dateToFormatedString(new Date(transaction.created))),
25
- h("td", null,
26
- CurrencyFormatter.format(transaction.currency, transaction.realAmount),
27
- " "),
28
- h("td", null, transaction.productType),
29
- h("td", null,
30
- h("span", { class: transaction.status.toLowerCase() }, transaction.status)))))));
6
+ const columns = [
7
+ { name: Localization.translate('transactionId', language) },
8
+ {
9
+ name: Localization.translate('date', language),
10
+ },
11
+ {
12
+ name: Localization.translate('amount', language),
13
+ },
14
+ { name: Localization.translate('productType', language) },
15
+ {
16
+ name: Localization.translate('status', language),
17
+ },
18
+ ];
19
+ return (h("table", null, h("thead", null, h("tr", null, columns.map(column => h("th", null, column.name)))), h("tbody", null, source.map(transaction => h("tr", null, h("td", null, transaction.transId), h("td", null, DateTransformer.dateToFormatedString(new Date(transaction.created))), h("td", null, CurrencyFormatter.format(transaction.currency, transaction.realAmount), " "), h("td", null, transaction.productType), h("td", null, h("span", { class: transaction.status.toLowerCase() }, transaction.status)))))));
31
20
  };
@@ -1,14 +1,4 @@
1
- import { h } from '@stencil/core';
2
- import { DateTransformer } from '../../utils/date.util';
3
- import { CurrencyFormatter } from '../../utils/currency.utils';
4
- export const TransactionComponent = (transaction) => (h("div", { class: "data-transaction" },
5
- h("p", null, transaction.productType),
6
- h("p", { class: "text-style text-style-status" },
7
- h("span", { class: transaction.status.toLowerCase() }, transaction.status)),
8
- h("p", { class: "date" },
9
- transaction.transId,
10
- " | ",
11
- DateTransformer.dateToFormatedString(new Date(transaction.created))),
12
- h("p", { class: "text-style" },
13
- CurrencyFormatter.format(transaction.currency, transaction.realAmount),
14
- " ")));
1
+ import { h } from "@stencil/core";
2
+ import { DateTransformer } from "../../utils/date.util";
3
+ import { CurrencyFormatter } from "../../utils/currency.utils";
4
+ export const TransactionComponent = (transaction) => (h("div", { class: "data-transaction" }, h("p", null, transaction.productType), h("p", { class: "text-style text-style-status" }, h("span", { class: transaction.status.toLowerCase() }, transaction.status)), h("p", { class: "date" }, transaction.transId, " | ", DateTransformer.dateToFormatedString(new Date(transaction.created))), h("p", { class: "text-style" }, CurrencyFormatter.format(transaction.currency, transaction.realAmount), " ")));
@@ -0,0 +1 @@
1
+ export { UserTransactionHistory } from './user-transaction-history';