@webiny/app-utils 5.43.3 → 6.0.0-alpha.1

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 (57) hide show
  1. package/fta/Domain/Models/Meta/Meta.js +13 -28
  2. package/fta/Domain/Models/Meta/Meta.js.map +1 -1
  3. package/fta/Domain/Models/Meta/MetaMapper.d.ts +1 -1
  4. package/fta/Domain/Models/Meta/MetaMapper.js +8 -23
  5. package/fta/Domain/Models/Meta/MetaMapper.js.map +1 -1
  6. package/fta/Domain/Models/Meta/index.js +2 -27
  7. package/fta/Domain/Models/Meta/index.js.map +1 -1
  8. package/fta/Domain/Models/Sorting/Sorting.js +6 -19
  9. package/fta/Domain/Models/Sorting/Sorting.js.map +1 -1
  10. package/fta/Domain/Models/Sorting/SortingMapper.d.ts +1 -1
  11. package/fta/Domain/Models/Sorting/SortingMapper.js +40 -53
  12. package/fta/Domain/Models/Sorting/SortingMapper.js.map +1 -1
  13. package/fta/Domain/Models/Sorting/index.js +2 -27
  14. package/fta/Domain/Models/Sorting/index.js.map +1 -1
  15. package/fta/Domain/Models/index.js +2 -27
  16. package/fta/Domain/Models/index.js.map +1 -1
  17. package/fta/Domain/Repositories/Loading/ILoadingRepository.d.ts +1 -0
  18. package/fta/Domain/Repositories/Loading/ILoadingRepository.js +1 -5
  19. package/fta/Domain/Repositories/Loading/ILoadingRepository.js.map +1 -1
  20. package/fta/Domain/Repositories/Loading/LoadingRepository.d.ts +3 -1
  21. package/fta/Domain/Repositories/Loading/LoadingRepository.js +30 -47
  22. package/fta/Domain/Repositories/Loading/LoadingRepository.js.map +1 -1
  23. package/fta/Domain/Repositories/Loading/LoadingRepositoryFactory.js +14 -32
  24. package/fta/Domain/Repositories/Loading/LoadingRepositoryFactory.js.map +1 -1
  25. package/fta/Domain/Repositories/Loading/index.js +3 -38
  26. package/fta/Domain/Repositories/Loading/index.js.map +1 -1
  27. package/fta/Domain/Repositories/Meta/IMetaRepository.d.ts +1 -1
  28. package/fta/Domain/Repositories/Meta/IMetaRepository.js +1 -5
  29. package/fta/Domain/Repositories/Meta/IMetaRepository.js.map +1 -1
  30. package/fta/Domain/Repositories/Meta/MetaRepository.d.ts +2 -2
  31. package/fta/Domain/Repositories/Meta/MetaRepository.js +38 -59
  32. package/fta/Domain/Repositories/Meta/MetaRepository.js.map +1 -1
  33. package/fta/Domain/Repositories/Meta/MetaRepositoryFactory.d.ts +1 -1
  34. package/fta/Domain/Repositories/Meta/MetaRepositoryFactory.js +14 -32
  35. package/fta/Domain/Repositories/Meta/MetaRepositoryFactory.js.map +1 -1
  36. package/fta/Domain/Repositories/Meta/index.js +3 -38
  37. package/fta/Domain/Repositories/Meta/index.js.map +1 -1
  38. package/fta/Domain/Repositories/Sorting/ISortingRepository.d.ts +2 -2
  39. package/fta/Domain/Repositories/Sorting/ISortingRepository.js +1 -5
  40. package/fta/Domain/Repositories/Sorting/ISortingRepository.js.map +1 -1
  41. package/fta/Domain/Repositories/Sorting/SortingRepository.d.ts +3 -3
  42. package/fta/Domain/Repositories/Sorting/SortingRepository.js +12 -28
  43. package/fta/Domain/Repositories/Sorting/SortingRepository.js.map +1 -1
  44. package/fta/Domain/Repositories/Sorting/SortingRepositoryFactory.d.ts +2 -2
  45. package/fta/Domain/Repositories/Sorting/SortingRepositoryFactory.js +14 -32
  46. package/fta/Domain/Repositories/Sorting/SortingRepositoryFactory.js.map +1 -1
  47. package/fta/Domain/Repositories/Sorting/index.js +3 -38
  48. package/fta/Domain/Repositories/Sorting/index.js.map +1 -1
  49. package/fta/Domain/Repositories/index.js +3 -38
  50. package/fta/Domain/Repositories/index.js.map +1 -1
  51. package/fta/Domain/index.js +2 -27
  52. package/fta/Domain/index.js.map +1 -1
  53. package/fta/index.js +1 -16
  54. package/fta/index.js.map +1 -1
  55. package/index.js +1 -16
  56. package/index.js.map +1 -1
  57. package/package.json +4 -4
@@ -1,40 +1,5 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _ILoadingRepository = require("./ILoadingRepository");
7
- Object.keys(_ILoadingRepository).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _ILoadingRepository[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _ILoadingRepository[key];
14
- }
15
- });
16
- });
17
- var _LoadingRepository = require("./LoadingRepository");
18
- Object.keys(_LoadingRepository).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _LoadingRepository[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function get() {
24
- return _LoadingRepository[key];
25
- }
26
- });
27
- });
28
- var _LoadingRepositoryFactory = require("./LoadingRepositoryFactory");
29
- Object.keys(_LoadingRepositoryFactory).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _LoadingRepositoryFactory[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function get() {
35
- return _LoadingRepositoryFactory[key];
36
- }
37
- });
38
- });
1
+ export * from "./ILoadingRepository";
2
+ export * from "./LoadingRepository";
3
+ export * from "./LoadingRepositoryFactory";
39
4
 
40
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_ILoadingRepository","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_LoadingRepository","_LoadingRepositoryFactory"],"sources":["index.ts"],"sourcesContent":["export * from \"./ILoadingRepository\";\nexport * from \"./LoadingRepository\";\nexport * from \"./LoadingRepositoryFactory\";\n"],"mappings":";;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,mBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,mBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,mBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,kBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,kBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,kBAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,kBAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,yBAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,yBAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,yBAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAE,yBAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ILoadingRepository\";\nexport * from \"./LoadingRepository\";\nexport * from \"./LoadingRepositoryFactory\";\n"],"mappings":"AAAA;AACA;AACA","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { Meta } from "../../Models";
1
+ import type { Meta } from "../../Models";
2
2
  export interface IMetaRepository {
3
3
  get: () => Meta;
4
4
  set: (meta: Meta) => Promise<void>;
@@ -1,7 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ export {};
6
2
 
7
3
  //# sourceMappingURL=IMetaRepository.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["IMetaRepository.ts"],"sourcesContent":["import { Meta } from \"../../Models\";\n\nexport interface IMetaRepository {\n get: () => Meta;\n set: (meta: Meta) => Promise<void>;\n increaseTotalCount: (count?: number) => Promise<void>;\n decreaseTotalCount: (count?: number) => Promise<void>;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["IMetaRepository.ts"],"sourcesContent":["import type { Meta } from \"../../Models\";\n\nexport interface IMetaRepository {\n get: () => Meta;\n set: (meta: Meta) => Promise<void>;\n increaseTotalCount: (count?: number) => Promise<void>;\n decreaseTotalCount: (count?: number) => Promise<void>;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import { IMetaRepository } from "./IMetaRepository";
2
- import { MetaDTO } from "../../Models/Meta";
1
+ import type { IMetaRepository } from "./IMetaRepository";
2
+ import type { MetaDTO } from "../../Models/Meta";
3
3
  export declare class MetaRepository implements IMetaRepository {
4
4
  private meta;
5
5
  constructor();
@@ -1,65 +1,44 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.MetaRepository = void 0;
8
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
9
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
- var _mobx = require("mobx");
12
- var _utils = require("@webiny/utils");
13
- var _Meta = require("../../Models/Meta");
14
- var MetaRepository = exports.MetaRepository = /*#__PURE__*/function () {
15
- function MetaRepository() {
16
- (0, _classCallCheck2.default)(this, MetaRepository);
17
- this.meta = _Meta.Meta.createEmpty();
18
- (0, _mobx.makeAutoObservable)(this);
1
+ import { makeAutoObservable, runInAction } from "mobx";
2
+ import { decodeCursor, encodeCursor } from "@webiny/utils";
3
+ import { Meta, MetaMapper } from "../../Models/Meta";
4
+ export class MetaRepository {
5
+ constructor() {
6
+ this.meta = Meta.createEmpty();
7
+ makeAutoObservable(this);
8
+ }
9
+ async set(meta) {
10
+ runInAction(() => {
11
+ this.meta = Meta.create(meta);
12
+ });
13
+ }
14
+ get() {
15
+ return MetaMapper.toDto(this.meta);
19
16
  }
20
- return (0, _createClass2.default)(MetaRepository, [{
21
- key: "set",
22
- value: async function set(meta) {
23
- this.meta = _Meta.Meta.create(meta);
24
- }
25
- }, {
26
- key: "get",
27
- value: function get() {
28
- return _Meta.MetaMapper.toDto(this.meta);
29
- }
30
- }, {
31
- key: "decreaseTotalCount",
32
- value: async function decreaseTotalCount() {
33
- var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
34
- return await this.updateMetaOnColumnDeltaChange(-count);
35
- }
36
- }, {
37
- key: "increaseTotalCount",
38
- value: async function increaseTotalCount() {
39
- var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
40
- return await this.updateMetaOnColumnDeltaChange(count);
41
- }
42
- }, {
43
- key: "updateMetaOnColumnDeltaChange",
44
- value: async function updateMetaOnColumnDeltaChange(countDelta) {
45
- // Retrieve the current meta
46
- var current = this.get();
17
+ async decreaseTotalCount(count = 1) {
18
+ return await this.updateMetaOnColumnDeltaChange(-count);
19
+ }
20
+ async increaseTotalCount(count = 1) {
21
+ return await this.updateMetaOnColumnDeltaChange(count);
22
+ }
23
+ async updateMetaOnColumnDeltaChange(countDelta) {
24
+ // Retrieve the current meta
25
+ const current = this.get();
47
26
 
48
- // Calculate the new totalCount based on the delta change
49
- var totalCount = current.totalCount + countDelta;
27
+ // Calculate the new totalCount based on the delta change
28
+ const totalCount = current.totalCount + countDelta;
50
29
 
51
- // Calculate the new cursor position based on the delta change
52
- var cursorDecoded = (0, _utils.decodeCursor)(current.cursor);
53
- var newCursorDecoded = String(Number(cursorDecoded) + countDelta);
54
- var cursor = (0, _utils.encodeCursor)(newCursorDecoded);
30
+ // Calculate the new cursor position based on the delta change
31
+ const cursorDecoded = decodeCursor(current.cursor);
32
+ const newCursorDecoded = String(Number(cursorDecoded) + countDelta);
33
+ const cursor = encodeCursor(newCursorDecoded);
55
34
 
56
- // Update the meta with the new totalCount and cursor
57
- return await this.set((0, _objectSpread2.default)((0, _objectSpread2.default)({}, current), {}, {
58
- totalCount: totalCount,
59
- cursor: cursor
60
- }));
61
- }
62
- }]);
63
- }();
35
+ // Update the meta with the new totalCount and cursor
36
+ return await this.set({
37
+ ...current,
38
+ totalCount,
39
+ cursor
40
+ });
41
+ }
42
+ }
64
43
 
65
44
  //# sourceMappingURL=MetaRepository.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_mobx","require","_utils","_Meta","MetaRepository","exports","_classCallCheck2","default","meta","Meta","createEmpty","makeAutoObservable","_createClass2","key","value","set","create","get","MetaMapper","toDto","decreaseTotalCount","count","arguments","length","undefined","updateMetaOnColumnDeltaChange","increaseTotalCount","countDelta","current","totalCount","cursorDecoded","decodeCursor","cursor","newCursorDecoded","String","Number","encodeCursor","_objectSpread2"],"sources":["MetaRepository.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport { decodeCursor, encodeCursor } from \"@webiny/utils\";\nimport { IMetaRepository } from \"./IMetaRepository\";\nimport { Meta, MetaDTO, MetaMapper } from \"~/fta/Domain/Models/Meta\";\n\nexport class MetaRepository implements IMetaRepository {\n private meta: Meta;\n\n constructor() {\n this.meta = Meta.createEmpty();\n makeAutoObservable(this);\n }\n\n async set(meta: MetaDTO) {\n this.meta = Meta.create(meta);\n }\n\n get() {\n return MetaMapper.toDto(this.meta);\n }\n\n async decreaseTotalCount(count = 1) {\n return await this.updateMetaOnColumnDeltaChange(-count);\n }\n\n async increaseTotalCount(count = 1) {\n return await this.updateMetaOnColumnDeltaChange(count);\n }\n\n private async updateMetaOnColumnDeltaChange(countDelta: number) {\n // Retrieve the current meta\n const current = this.get();\n\n // Calculate the new totalCount based on the delta change\n const totalCount = current.totalCount + countDelta;\n\n // Calculate the new cursor position based on the delta change\n const cursorDecoded = decodeCursor(current.cursor);\n const newCursorDecoded = String(Number(cursorDecoded) + countDelta);\n const cursor = encodeCursor(newCursorDecoded);\n\n // Update the meta with the new totalCount and cursor\n return await this.set({ ...current, totalCount, cursor });\n }\n}\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAF,OAAA;AAAqE,IAExDG,cAAc,GAAAC,OAAA,CAAAD,cAAA;EAGvB,SAAAA,eAAA,EAAc;IAAA,IAAAE,gBAAA,CAAAC,OAAA,QAAAH,cAAA;IACV,IAAI,CAACI,IAAI,GAAGC,UAAI,CAACC,WAAW,CAAC,CAAC;IAC9B,IAAAC,wBAAkB,EAAC,IAAI,CAAC;EAC5B;EAAC,WAAAC,aAAA,CAAAL,OAAA,EAAAH,cAAA;IAAAS,GAAA;IAAAC,KAAA,EAED,eAAMC,GAAGA,CAACP,IAAa,EAAE;MACrB,IAAI,CAACA,IAAI,GAAGC,UAAI,CAACO,MAAM,CAACR,IAAI,CAAC;IACjC;EAAC;IAAAK,GAAA;IAAAC,KAAA,EAED,SAAAG,GAAGA,CAAA,EAAG;MACF,OAAOC,gBAAU,CAACC,KAAK,CAAC,IAAI,CAACX,IAAI,CAAC;IACtC;EAAC;IAAAK,GAAA;IAAAC,KAAA,EAED,eAAMM,kBAAkBA,CAAA,EAAY;MAAA,IAAXC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;MAC9B,OAAO,MAAM,IAAI,CAACG,6BAA6B,CAAC,CAACJ,KAAK,CAAC;IAC3D;EAAC;IAAAR,GAAA;IAAAC,KAAA,EAED,eAAMY,kBAAkBA,CAAA,EAAY;MAAA,IAAXL,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;MAC9B,OAAO,MAAM,IAAI,CAACG,6BAA6B,CAACJ,KAAK,CAAC;IAC1D;EAAC;IAAAR,GAAA;IAAAC,KAAA,EAED,eAAcW,6BAA6BA,CAACE,UAAkB,EAAE;MAC5D;MACA,IAAMC,OAAO,GAAG,IAAI,CAACX,GAAG,CAAC,CAAC;;MAE1B;MACA,IAAMY,UAAU,GAAGD,OAAO,CAACC,UAAU,GAAGF,UAAU;;MAElD;MACA,IAAMG,aAAa,GAAG,IAAAC,mBAAY,EAACH,OAAO,CAACI,MAAM,CAAC;MAClD,IAAMC,gBAAgB,GAAGC,MAAM,CAACC,MAAM,CAACL,aAAa,CAAC,GAAGH,UAAU,CAAC;MACnE,IAAMK,MAAM,GAAG,IAAAI,mBAAY,EAACH,gBAAgB,CAAC;;MAE7C;MACA,OAAO,MAAM,IAAI,CAAClB,GAAG,KAAAsB,cAAA,CAAA9B,OAAA,MAAA8B,cAAA,CAAA9B,OAAA,MAAMqB,OAAO;QAAEC,UAAU,EAAVA,UAAU;QAAEG,MAAM,EAANA;MAAM,EAAE,CAAC;IAC7D;EAAC;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["makeAutoObservable","runInAction","decodeCursor","encodeCursor","Meta","MetaMapper","MetaRepository","constructor","meta","createEmpty","set","create","get","toDto","decreaseTotalCount","count","updateMetaOnColumnDeltaChange","increaseTotalCount","countDelta","current","totalCount","cursorDecoded","cursor","newCursorDecoded","String","Number"],"sources":["MetaRepository.ts"],"sourcesContent":["import { makeAutoObservable, runInAction } from \"mobx\";\nimport { decodeCursor, encodeCursor } from \"@webiny/utils\";\nimport type { IMetaRepository } from \"./IMetaRepository\";\nimport type { MetaDTO } from \"~/fta/Domain/Models/Meta\";\nimport { Meta, MetaMapper } from \"~/fta/Domain/Models/Meta\";\n\nexport class MetaRepository implements IMetaRepository {\n private meta: Meta;\n\n constructor() {\n this.meta = Meta.createEmpty();\n makeAutoObservable(this);\n }\n\n async set(meta: MetaDTO) {\n runInAction(() => {\n this.meta = Meta.create(meta);\n });\n }\n\n get() {\n return MetaMapper.toDto(this.meta);\n }\n\n async decreaseTotalCount(count = 1) {\n return await this.updateMetaOnColumnDeltaChange(-count);\n }\n\n async increaseTotalCount(count = 1) {\n return await this.updateMetaOnColumnDeltaChange(count);\n }\n\n private async updateMetaOnColumnDeltaChange(countDelta: number) {\n // Retrieve the current meta\n const current = this.get();\n\n // Calculate the new totalCount based on the delta change\n const totalCount = current.totalCount + countDelta;\n\n // Calculate the new cursor position based on the delta change\n const cursorDecoded = decodeCursor(current.cursor);\n const newCursorDecoded = String(Number(cursorDecoded) + countDelta);\n const cursor = encodeCursor(newCursorDecoded);\n\n // Update the meta with the new totalCount and cursor\n return await this.set({ ...current, totalCount, cursor });\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,WAAW,QAAQ,MAAM;AACtD,SAASC,YAAY,EAAEC,YAAY,QAAQ,eAAe;AAG1D,SAASC,IAAI,EAAEC,UAAU;AAEzB,OAAO,MAAMC,cAAc,CAA4B;EAGnDC,WAAWA,CAAA,EAAG;IACV,IAAI,CAACC,IAAI,GAAGJ,IAAI,CAACK,WAAW,CAAC,CAAC;IAC9BT,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMU,GAAGA,CAACF,IAAa,EAAE;IACrBP,WAAW,CAAC,MAAM;MACd,IAAI,CAACO,IAAI,GAAGJ,IAAI,CAACO,MAAM,CAACH,IAAI,CAAC;IACjC,CAAC,CAAC;EACN;EAEAI,GAAGA,CAAA,EAAG;IACF,OAAOP,UAAU,CAACQ,KAAK,CAAC,IAAI,CAACL,IAAI,CAAC;EACtC;EAEA,MAAMM,kBAAkBA,CAACC,KAAK,GAAG,CAAC,EAAE;IAChC,OAAO,MAAM,IAAI,CAACC,6BAA6B,CAAC,CAACD,KAAK,CAAC;EAC3D;EAEA,MAAME,kBAAkBA,CAACF,KAAK,GAAG,CAAC,EAAE;IAChC,OAAO,MAAM,IAAI,CAACC,6BAA6B,CAACD,KAAK,CAAC;EAC1D;EAEA,MAAcC,6BAA6BA,CAACE,UAAkB,EAAE;IAC5D;IACA,MAAMC,OAAO,GAAG,IAAI,CAACP,GAAG,CAAC,CAAC;;IAE1B;IACA,MAAMQ,UAAU,GAAGD,OAAO,CAACC,UAAU,GAAGF,UAAU;;IAElD;IACA,MAAMG,aAAa,GAAGnB,YAAY,CAACiB,OAAO,CAACG,MAAM,CAAC;IAClD,MAAMC,gBAAgB,GAAGC,MAAM,CAACC,MAAM,CAACJ,aAAa,CAAC,GAAGH,UAAU,CAAC;IACnE,MAAMI,MAAM,GAAGnB,YAAY,CAACoB,gBAAgB,CAAC;;IAE7C;IACA,OAAO,MAAM,IAAI,CAACb,GAAG,CAAC;MAAE,GAAGS,OAAO;MAAEC,UAAU;MAAEE;IAAO,CAAC,CAAC;EAC7D;AACJ","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  import { MetaRepository } from "./MetaRepository";
2
2
  export declare class MetaRepositoryFactory {
3
3
  private cache;
4
- getRepository(): MetaRepository;
4
+ getRepository(namespace?: string): MetaRepository;
5
5
  private getCacheKey;
6
6
  }
7
7
  export declare const metaRepositoryFactory: MetaRepositoryFactory;
@@ -1,35 +1,17 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.metaRepositoryFactory = exports.MetaRepositoryFactory = void 0;
8
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
- var _MetaRepository = require("./MetaRepository");
12
- var MetaRepositoryFactory = exports.MetaRepositoryFactory = /*#__PURE__*/function () {
13
- function MetaRepositoryFactory() {
14
- (0, _classCallCheck2.default)(this, MetaRepositoryFactory);
15
- (0, _defineProperty2.default)(this, "cache", new Map());
16
- }
17
- return (0, _createClass2.default)(MetaRepositoryFactory, [{
18
- key: "getRepository",
19
- value: function getRepository() {
20
- var cacheKey = this.getCacheKey();
21
- if (!this.cache.has(cacheKey)) {
22
- this.cache.set(cacheKey, new _MetaRepository.MetaRepository());
23
- }
24
- return this.cache.get(cacheKey);
25
- }
26
- }, {
27
- key: "getCacheKey",
28
- value: function getCacheKey() {
29
- return Date.now().toString();
1
+ import { MetaRepository } from "./MetaRepository";
2
+ export class MetaRepositoryFactory {
3
+ cache = new Map();
4
+ getRepository(namespace) {
5
+ const cacheKey = this.getCacheKey(namespace);
6
+ if (!this.cache.has(cacheKey)) {
7
+ this.cache.set(cacheKey, new MetaRepository());
30
8
  }
31
- }]);
32
- }();
33
- var metaRepositoryFactory = exports.metaRepositoryFactory = new MetaRepositoryFactory();
9
+ return this.cache.get(cacheKey);
10
+ }
11
+ getCacheKey(namespace) {
12
+ return namespace ?? Date.now().toString();
13
+ }
14
+ }
15
+ export const metaRepositoryFactory = new MetaRepositoryFactory();
34
16
 
35
17
  //# sourceMappingURL=MetaRepositoryFactory.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_MetaRepository","require","MetaRepositoryFactory","exports","_classCallCheck2","default","_defineProperty2","Map","_createClass2","key","value","getRepository","cacheKey","getCacheKey","cache","has","set","MetaRepository","get","Date","now","toString","metaRepositoryFactory"],"sources":["MetaRepositoryFactory.ts"],"sourcesContent":["import { MetaRepository } from \"./MetaRepository\";\n\nexport class MetaRepositoryFactory {\n private cache: Map<string, MetaRepository> = new Map();\n\n getRepository() {\n const cacheKey = this.getCacheKey();\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(cacheKey, new MetaRepository());\n }\n\n return this.cache.get(cacheKey) as MetaRepository;\n }\n\n private getCacheKey() {\n return Date.now().toString();\n }\n}\n\nexport const metaRepositoryFactory = new MetaRepositoryFactory();\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAAkD,IAErCC,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA;EAAA,SAAAA,sBAAA;IAAA,IAAAE,gBAAA,CAAAC,OAAA,QAAAH,qBAAA;IAAA,IAAAI,gBAAA,CAAAD,OAAA,iBACe,IAAIE,GAAG,CAAC,CAAC;EAAA;EAAA,WAAAC,aAAA,CAAAH,OAAA,EAAAH,qBAAA;IAAAO,GAAA;IAAAC,KAAA,EAEtD,SAAAC,aAAaA,CAAA,EAAG;MACZ,IAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAAC,CAAC;MAEnC,IAAI,CAAC,IAAI,CAACC,KAAK,CAACC,GAAG,CAACH,QAAQ,CAAC,EAAE;QAC3B,IAAI,CAACE,KAAK,CAACE,GAAG,CAACJ,QAAQ,EAAE,IAAIK,8BAAc,CAAC,CAAC,CAAC;MAClD;MAEA,OAAO,IAAI,CAACH,KAAK,CAACI,GAAG,CAACN,QAAQ,CAAC;IACnC;EAAC;IAAAH,GAAA;IAAAC,KAAA,EAED,SAAQG,WAAWA,CAAA,EAAG;MAClB,OAAOM,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;IAChC;EAAC;AAAA;AAGE,IAAMC,qBAAqB,GAAAnB,OAAA,CAAAmB,qBAAA,GAAG,IAAIpB,qBAAqB,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["MetaRepository","MetaRepositoryFactory","cache","Map","getRepository","namespace","cacheKey","getCacheKey","has","set","get","Date","now","toString","metaRepositoryFactory"],"sources":["MetaRepositoryFactory.ts"],"sourcesContent":["import { MetaRepository } from \"./MetaRepository\";\n\nexport class MetaRepositoryFactory {\n private cache: Map<string, MetaRepository> = new Map();\n\n getRepository(namespace?: string) {\n const cacheKey = this.getCacheKey(namespace);\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(cacheKey, new MetaRepository());\n }\n\n return this.cache.get(cacheKey) as MetaRepository;\n }\n\n private getCacheKey(namespace?: string) {\n return namespace ?? Date.now().toString();\n }\n}\n\nexport const metaRepositoryFactory = new MetaRepositoryFactory();\n"],"mappings":"AAAA,SAASA,cAAc;AAEvB,OAAO,MAAMC,qBAAqB,CAAC;EACvBC,KAAK,GAAgC,IAAIC,GAAG,CAAC,CAAC;EAEtDC,aAAaA,CAACC,SAAkB,EAAE;IAC9B,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAACF,SAAS,CAAC;IAE5C,IAAI,CAAC,IAAI,CAACH,KAAK,CAACM,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACJ,KAAK,CAACO,GAAG,CAACH,QAAQ,EAAE,IAAIN,cAAc,CAAC,CAAC,CAAC;IAClD;IAEA,OAAO,IAAI,CAACE,KAAK,CAACQ,GAAG,CAACJ,QAAQ,CAAC;EACnC;EAEQC,WAAWA,CAACF,SAAkB,EAAE;IACpC,OAAOA,SAAS,IAAIM,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAC7C;AACJ;AAEA,OAAO,MAAMC,qBAAqB,GAAG,IAAIb,qBAAqB,CAAC,CAAC","ignoreList":[]}
@@ -1,40 +1,5 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _IMetaRepository = require("./IMetaRepository");
7
- Object.keys(_IMetaRepository).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _IMetaRepository[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _IMetaRepository[key];
14
- }
15
- });
16
- });
17
- var _MetaRepository = require("./MetaRepository");
18
- Object.keys(_MetaRepository).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _MetaRepository[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function get() {
24
- return _MetaRepository[key];
25
- }
26
- });
27
- });
28
- var _MetaRepositoryFactory = require("./MetaRepositoryFactory");
29
- Object.keys(_MetaRepositoryFactory).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _MetaRepositoryFactory[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function get() {
35
- return _MetaRepositoryFactory[key];
36
- }
37
- });
38
- });
1
+ export * from "./IMetaRepository";
2
+ export * from "./MetaRepository";
3
+ export * from "./MetaRepositoryFactory";
39
4
 
40
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_IMetaRepository","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_MetaRepository","_MetaRepositoryFactory"],"sources":["index.ts"],"sourcesContent":["export * from \"./IMetaRepository\";\nexport * from \"./MetaRepository\";\nexport * from \"./MetaRepositoryFactory\";\n"],"mappings":";;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,gBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,gBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,gBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,eAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,eAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,eAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,eAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,sBAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,sBAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,sBAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAE,sBAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./IMetaRepository\";\nexport * from \"./MetaRepository\";\nexport * from \"./MetaRepositoryFactory\";\n"],"mappings":"AAAA;AACA;AACA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import { Sorting } from "../../Models";
1
+ import type { Sorting } from "../../Models";
2
2
  export interface ISortingRepository {
3
- set: (sorts: Sorting[]) => void;
3
+ set: (sorts: Sorting[]) => Promise<void>;
4
4
  get: () => Sorting[];
5
5
  }
@@ -1,7 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ export {};
6
2
 
7
3
  //# sourceMappingURL=ISortingRepository.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["ISortingRepository.ts"],"sourcesContent":["import { Sorting } from \"~/fta/Domain/Models\";\n\nexport interface ISortingRepository {\n set: (sorts: Sorting[]) => void;\n get: () => Sorting[];\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["ISortingRepository.ts"],"sourcesContent":["import type { Sorting } from \"~/fta/Domain/Models\";\n\nexport interface ISortingRepository {\n set: (sorts: Sorting[]) => Promise<void>;\n get: () => Sorting[];\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,8 +1,8 @@
1
- import { ISortingRepository } from "./ISortingRepository";
2
- import { Sorting } from "../../Models";
1
+ import type { ISortingRepository } from "./ISortingRepository";
2
+ import type { Sorting } from "../../Models";
3
3
  export declare class SortingRepository implements ISortingRepository {
4
4
  private sorting;
5
5
  constructor();
6
6
  get(): Sorting[];
7
- set(sorts: Sorting[]): void;
7
+ set(sorts: Sorting[]): Promise<void>;
8
8
  }
@@ -1,31 +1,15 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.SortingRepository = void 0;
8
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
- var _mobx = require("mobx");
12
- var SortingRepository = exports.SortingRepository = /*#__PURE__*/function () {
13
- function SortingRepository() {
14
- (0, _classCallCheck2.default)(this, SortingRepository);
15
- (0, _defineProperty2.default)(this, "sorting", []);
16
- (0, _mobx.makeAutoObservable)(this);
1
+ import { makeAutoObservable } from "mobx";
2
+ export class SortingRepository {
3
+ sorting = [];
4
+ constructor() {
5
+ makeAutoObservable(this);
6
+ }
7
+ get() {
8
+ return this.sorting;
9
+ }
10
+ async set(sorts) {
11
+ this.sorting = sorts;
17
12
  }
18
- return (0, _createClass2.default)(SortingRepository, [{
19
- key: "get",
20
- value: function get() {
21
- return this.sorting;
22
- }
23
- }, {
24
- key: "set",
25
- value: function set(sorts) {
26
- this.sorting = sorts;
27
- }
28
- }]);
29
- }();
13
+ }
30
14
 
31
15
  //# sourceMappingURL=SortingRepository.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_mobx","require","SortingRepository","exports","_classCallCheck2","default","_defineProperty2","makeAutoObservable","_createClass2","key","value","get","sorting","set","sorts"],"sources":["SortingRepository.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport { ISortingRepository } from \"./ISortingRepository\";\nimport { Sorting } from \"~/fta/Domain/Models\";\n\nexport class SortingRepository implements ISortingRepository {\n private sorting: Sorting[] = [];\n\n constructor() {\n makeAutoObservable(this);\n }\n\n get() {\n return this.sorting;\n }\n\n set(sorts: Sorting[]) {\n this.sorting = sorts;\n }\n}\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAA0C,IAI7BC,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA;EAG1B,SAAAA,kBAAA,EAAc;IAAA,IAAAE,gBAAA,CAAAC,OAAA,QAAAH,iBAAA;IAAA,IAAAI,gBAAA,CAAAD,OAAA,mBAFe,EAAE;IAG3B,IAAAE,wBAAkB,EAAC,IAAI,CAAC;EAC5B;EAAC,WAAAC,aAAA,CAAAH,OAAA,EAAAH,iBAAA;IAAAO,GAAA;IAAAC,KAAA,EAED,SAAAC,GAAGA,CAAA,EAAG;MACF,OAAO,IAAI,CAACC,OAAO;IACvB;EAAC;IAAAH,GAAA;IAAAC,KAAA,EAED,SAAAG,GAAGA,CAACC,KAAgB,EAAE;MAClB,IAAI,CAACF,OAAO,GAAGE,KAAK;IACxB;EAAC;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["makeAutoObservable","SortingRepository","sorting","constructor","get","set","sorts"],"sources":["SortingRepository.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISortingRepository } from \"./ISortingRepository\";\nimport type { Sorting } from \"~/fta/Domain/Models\";\n\nexport class SortingRepository implements ISortingRepository {\n private sorting: Sorting[] = [];\n\n constructor() {\n makeAutoObservable(this);\n }\n\n get() {\n return this.sorting;\n }\n\n async set(sorts: Sorting[]) {\n this.sorting = sorts;\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,OAAO,MAAMC,iBAAiB,CAA+B;EACjDC,OAAO,GAAc,EAAE;EAE/BC,WAAWA,CAAA,EAAG;IACVH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAI,GAAGA,CAAA,EAAG;IACF,OAAO,IAAI,CAACF,OAAO;EACvB;EAEA,MAAMG,GAAGA,CAACC,KAAgB,EAAE;IACxB,IAAI,CAACJ,OAAO,GAAGI,KAAK;EACxB;AACJ","ignoreList":[]}
@@ -1,7 +1,7 @@
1
- import { SortingRepository } from "./SortingRepository";
1
+ import type { ISortingRepository } from "../../../index.js";
2
2
  export declare class SortingRepositoryFactory {
3
3
  private cache;
4
- getRepository(): SortingRepository;
4
+ getRepository(namespace?: string): ISortingRepository;
5
5
  private getCacheKey;
6
6
  }
7
7
  export declare const sortRepositoryFactory: SortingRepositoryFactory;
@@ -1,35 +1,17 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.sortRepositoryFactory = exports.SortingRepositoryFactory = void 0;
8
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
- var _SortingRepository = require("./SortingRepository");
12
- var SortingRepositoryFactory = exports.SortingRepositoryFactory = /*#__PURE__*/function () {
13
- function SortingRepositoryFactory() {
14
- (0, _classCallCheck2.default)(this, SortingRepositoryFactory);
15
- (0, _defineProperty2.default)(this, "cache", new Map());
16
- }
17
- return (0, _createClass2.default)(SortingRepositoryFactory, [{
18
- key: "getRepository",
19
- value: function getRepository() {
20
- var cacheKey = this.getCacheKey();
21
- if (!this.cache.has(cacheKey)) {
22
- this.cache.set(cacheKey, new _SortingRepository.SortingRepository());
23
- }
24
- return this.cache.get(cacheKey);
25
- }
26
- }, {
27
- key: "getCacheKey",
28
- value: function getCacheKey() {
29
- return Date.now().toString();
1
+ import { SortingRepository } from "./SortingRepository";
2
+ export class SortingRepositoryFactory {
3
+ cache = new Map();
4
+ getRepository(namespace) {
5
+ const cacheKey = this.getCacheKey(namespace);
6
+ if (!this.cache.has(cacheKey)) {
7
+ this.cache.set(cacheKey, new SortingRepository());
30
8
  }
31
- }]);
32
- }();
33
- var sortRepositoryFactory = exports.sortRepositoryFactory = new SortingRepositoryFactory();
9
+ return this.cache.get(cacheKey);
10
+ }
11
+ getCacheKey(namespace) {
12
+ return namespace ?? Date.now().toString();
13
+ }
14
+ }
15
+ export const sortRepositoryFactory = new SortingRepositoryFactory();
34
16
 
35
17
  //# sourceMappingURL=SortingRepositoryFactory.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_SortingRepository","require","SortingRepositoryFactory","exports","_classCallCheck2","default","_defineProperty2","Map","_createClass2","key","value","getRepository","cacheKey","getCacheKey","cache","has","set","SortingRepository","get","Date","now","toString","sortRepositoryFactory"],"sources":["SortingRepositoryFactory.ts"],"sourcesContent":["import { SortingRepository } from \"./SortingRepository\";\n\nexport class SortingRepositoryFactory {\n private cache: Map<string, SortingRepository> = new Map();\n\n getRepository() {\n const cacheKey = this.getCacheKey();\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(cacheKey, new SortingRepository());\n }\n\n return this.cache.get(cacheKey) as SortingRepository;\n }\n\n private getCacheKey() {\n return Date.now().toString();\n }\n}\n\nexport const sortRepositoryFactory = new SortingRepositoryFactory();\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAAwD,IAE3CC,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA;EAAA,SAAAA,yBAAA;IAAA,IAAAE,gBAAA,CAAAC,OAAA,QAAAH,wBAAA;IAAA,IAAAI,gBAAA,CAAAD,OAAA,iBACe,IAAIE,GAAG,CAAC,CAAC;EAAA;EAAA,WAAAC,aAAA,CAAAH,OAAA,EAAAH,wBAAA;IAAAO,GAAA;IAAAC,KAAA,EAEzD,SAAAC,aAAaA,CAAA,EAAG;MACZ,IAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAAC,CAAC;MAEnC,IAAI,CAAC,IAAI,CAACC,KAAK,CAACC,GAAG,CAACH,QAAQ,CAAC,EAAE;QAC3B,IAAI,CAACE,KAAK,CAACE,GAAG,CAACJ,QAAQ,EAAE,IAAIK,oCAAiB,CAAC,CAAC,CAAC;MACrD;MAEA,OAAO,IAAI,CAACH,KAAK,CAACI,GAAG,CAACN,QAAQ,CAAC;IACnC;EAAC;IAAAH,GAAA;IAAAC,KAAA,EAED,SAAQG,WAAWA,CAAA,EAAG;MAClB,OAAOM,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;IAChC;EAAC;AAAA;AAGE,IAAMC,qBAAqB,GAAAnB,OAAA,CAAAmB,qBAAA,GAAG,IAAIpB,wBAAwB,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["SortingRepository","SortingRepositoryFactory","cache","Map","getRepository","namespace","cacheKey","getCacheKey","has","set","get","Date","now","toString","sortRepositoryFactory"],"sources":["SortingRepositoryFactory.ts"],"sourcesContent":["import { SortingRepository } from \"./SortingRepository\";\nimport type { ISortingRepository } from \"~/fta/index.js\";\n\nexport class SortingRepositoryFactory {\n private cache: Map<string, ISortingRepository> = new Map();\n\n getRepository(namespace?: string) {\n const cacheKey = this.getCacheKey(namespace);\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(cacheKey, new SortingRepository());\n }\n\n return this.cache.get(cacheKey) as ISortingRepository;\n }\n\n private getCacheKey(namespace?: string) {\n return namespace ?? Date.now().toString();\n }\n}\n\nexport const sortRepositoryFactory = new SortingRepositoryFactory();\n"],"mappings":"AAAA,SAASA,iBAAiB;AAG1B,OAAO,MAAMC,wBAAwB,CAAC;EAC1BC,KAAK,GAAoC,IAAIC,GAAG,CAAC,CAAC;EAE1DC,aAAaA,CAACC,SAAkB,EAAE;IAC9B,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAACF,SAAS,CAAC;IAE5C,IAAI,CAAC,IAAI,CAACH,KAAK,CAACM,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACJ,KAAK,CAACO,GAAG,CAACH,QAAQ,EAAE,IAAIN,iBAAiB,CAAC,CAAC,CAAC;IACrD;IAEA,OAAO,IAAI,CAACE,KAAK,CAACQ,GAAG,CAACJ,QAAQ,CAAC;EACnC;EAEQC,WAAWA,CAACF,SAAkB,EAAE;IACpC,OAAOA,SAAS,IAAIM,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAC7C;AACJ;AAEA,OAAO,MAAMC,qBAAqB,GAAG,IAAIb,wBAAwB,CAAC,CAAC","ignoreList":[]}
@@ -1,40 +1,5 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _ISortingRepository = require("./ISortingRepository");
7
- Object.keys(_ISortingRepository).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _ISortingRepository[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _ISortingRepository[key];
14
- }
15
- });
16
- });
17
- var _SortingRepository = require("./SortingRepository");
18
- Object.keys(_SortingRepository).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _SortingRepository[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function get() {
24
- return _SortingRepository[key];
25
- }
26
- });
27
- });
28
- var _SortingRepositoryFactory = require("./SortingRepositoryFactory");
29
- Object.keys(_SortingRepositoryFactory).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _SortingRepositoryFactory[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function get() {
35
- return _SortingRepositoryFactory[key];
36
- }
37
- });
38
- });
1
+ export * from "./ISortingRepository";
2
+ export * from "./SortingRepository";
3
+ export * from "./SortingRepositoryFactory";
39
4
 
40
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_ISortingRepository","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_SortingRepository","_SortingRepositoryFactory"],"sources":["index.ts"],"sourcesContent":["export * from \"./ISortingRepository\";\nexport * from \"./SortingRepository\";\nexport * from \"./SortingRepositoryFactory\";\n"],"mappings":";;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,mBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,mBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,mBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,kBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,kBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,kBAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,kBAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,yBAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,yBAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,yBAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAE,yBAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ISortingRepository\";\nexport * from \"./SortingRepository\";\nexport * from \"./SortingRepositoryFactory\";\n"],"mappings":"AAAA;AACA;AACA","ignoreList":[]}
@@ -1,40 +1,5 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _Loading = require("./Loading");
7
- Object.keys(_Loading).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _Loading[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _Loading[key];
14
- }
15
- });
16
- });
17
- var _Meta = require("./Meta");
18
- Object.keys(_Meta).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _Meta[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function get() {
24
- return _Meta[key];
25
- }
26
- });
27
- });
28
- var _Sorting = require("./Sorting");
29
- Object.keys(_Sorting).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _Sorting[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function get() {
35
- return _Sorting[key];
36
- }
37
- });
38
- });
1
+ export * from "./Loading";
2
+ export * from "./Meta";
3
+ export * from "./Sorting";
39
4
 
40
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_Loading","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_Meta","_Sorting"],"sources":["index.ts"],"sourcesContent":["export * from \"./Loading\";\nexport * from \"./Meta\";\nexport * from \"./Sorting\";\n"],"mappings":";;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,QAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,QAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,QAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,KAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,KAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,KAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,KAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,QAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,QAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,QAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAE,QAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Loading\";\nexport * from \"./Meta\";\nexport * from \"./Sorting\";\n"],"mappings":"AAAA;AACA;AACA","ignoreList":[]}