robbyson-frontend-library 0.0.1-rc1
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/components/accordion/accordion.interface.js +1 -0
- package/dist/components/assets/assets.interfaces.js +1 -0
- package/dist/components/badge/badge.interface.js +1 -0
- package/dist/components/balloon/balloon.interface.js +1 -0
- package/dist/components/base-component.prop.interface.js +1 -0
- package/dist/components/base-page.prop.interface.js +1 -0
- package/dist/components/base-test.prop.interface.js +1 -0
- package/dist/components/basic-button/basic-button.interface.js +1 -0
- package/dist/components/checkbox/checkbox.interface.js +1 -0
- package/dist/components/colors/colors.interfaces.js +1 -0
- package/dist/components/context-menu/context-menu.interface.js +1 -0
- package/dist/components/divider/divider.interface.js +1 -0
- package/dist/components/icon-button/icon-button.interface.js +1 -0
- package/dist/components/image-progress-graph/image-progress-graph.interface.js +1 -0
- package/dist/components/index.js +5 -0
- package/dist/components/menu.interface.js +1 -0
- package/dist/components/modal/modal.interface.js +1 -0
- package/dist/components/mood-button/mood-button.interface.js +1 -0
- package/dist/components/pages/base-app-page.component.js +46 -0
- package/dist/components/pages/base-app-page.styles.js +13 -0
- package/dist/components/pagination/pagination.interface.js +1 -0
- package/dist/components/profile-image/profile-image.interface.js +1 -0
- package/dist/components/progress-bar/progress-bar.interface.js +1 -0
- package/dist/components/progress-tracker/progress-tracker.interface.js +1 -0
- package/dist/components/radio-button/radio-button.interface.js +1 -0
- package/dist/components/scroll-box/scroll-box.interface.js +1 -0
- package/dist/components/search-input/search-input.interfaces.js +1 -0
- package/dist/components/select/select.interface.js +1 -0
- package/dist/components/sidebar/sidebar.interface.js +1 -0
- package/dist/components/snackbar/snackbar.interface.js +1 -0
- package/dist/components/speed-dial/speed-dial.interface.js +1 -0
- package/dist/components/spin-edit/spin-edit.interface.js +1 -0
- package/dist/components/switch/switch.interface.js +1 -0
- package/dist/components/tag-expand/tag-expand.interface.js +1 -0
- package/dist/components/tags/tags.interface.js +1 -0
- package/dist/components/text-field/text-field.interface.js +1 -0
- package/dist/components/timer/timer.interface.js +1 -0
- package/dist/components/toggle-icon-button/toggle-icon-button.interface.js +1 -0
- package/dist/components/tooltip/tooltip.interface.js +1 -0
- package/dist/components/transitions/transitions.interfaces.js +1 -0
- package/dist/components/typography/typography.interfaces.js +1 -0
- package/dist/components/upload/upload.interface.js +1 -0
- package/dist/constants/index.js +1 -0
- package/dist/constants/layout-dimensions.constants.js +10 -0
- package/dist/factories/base.factory.js +6 -0
- package/dist/factories/index.js +1 -0
- package/dist/factories/response.factory.js +77 -0
- package/dist/index.js +19 -0
- package/dist/ioc.js +18 -0
- package/dist/models/angel-friend-status.model.js +25 -0
- package/dist/models/base.repository.model.js +6 -0
- package/dist/models/result-level.model.js +24 -0
- package/dist/models/send-user-to-login.model.js +6 -0
- package/dist/models/term-of-use.model.js +24 -0
- package/dist/models/theme-base.js +44 -0
- package/dist/models/user-mirror.model.js +24 -0
- package/dist/models/user-session.model.js +24 -0
- package/dist/repositories/angel-friend.repository.interface.js +1 -0
- package/dist/repositories/authentication.repository.interface.js +1 -0
- package/dist/repositories/base.repository.js +185 -0
- package/dist/repositories/locale.repository.interface.js +1 -0
- package/dist/repositories/results.repository.interface.js +1 -0
- package/dist/repositories/terms-of-use.repository.interface.js +1 -0
- package/dist/repositories/theme.repository.interface.js +1 -0
- package/dist/repositories/user.repository.interface.js +1 -0
- package/dist/services/angel-friend.service.interface.js +1 -0
- package/dist/services/authentication.service.interface.js +1 -0
- package/dist/services/locale.service.interface.js +1 -0
- package/dist/services/results.service.interface.js +1 -0
- package/dist/services/terms-of-use.service.interface.js +1 -0
- package/dist/services/theme.service.interface.js +1 -0
- package/dist/services/user.service.interface.js +1 -0
- package/dist/states/index.js +3 -0
- package/dist/states/main-container/app.state.interface.js +2 -0
- package/dist/states/main-container/plataform.state.interface.js +1 -0
- package/dist/states/main-container/root-app.state.interface.js +1 -0
- package/dist/utils/build-error/buildError.util.interface.js +1 -0
- package/dist/utils/build-error/buildError.util.js +13 -0
- package/dist/utils/cache-control.js +121 -0
- package/dist/utils/index.js +5 -0
- package/dist/utils/query-params/index.js +34 -0
- package/dist/utils/robbyson-navigate.js +53 -0
- package/importComponents.js +113 -0
- package/index.d.ts +43 -0
- package/package.json +40 -0
- package/src/components/accordion/accordion.interface.ts +26 -0
- package/src/components/accordion/accordion.types.d.ts +9 -0
- package/src/components/accordion/index.d.ts +1 -0
- package/src/components/assets/assets.interfaces.tsx +5 -0
- package/src/components/assets/assets.types.d.ts +9 -0
- package/src/components/assets/index.d.ts +1 -0
- package/src/components/badge/badge.interface.ts +11 -0
- package/src/components/badge/badge.types.d.ts +9 -0
- package/src/components/badge/index.d.ts +1 -0
- package/src/components/balloon/balloon.interface.ts +14 -0
- package/src/components/balloon/balloon.types.d.ts +9 -0
- package/src/components/balloon/index.d.ts +1 -0
- package/src/components/base-component.prop.interface.tsx +4 -0
- package/src/components/base-page.prop.interface.tsx +4 -0
- package/src/components/base-test.prop.interface.tsx +3 -0
- package/src/components/basic-button/basic-button.interface.tsx +10 -0
- package/src/components/basic-button/basic-button.types.d.ts +9 -0
- package/src/components/basic-button/index.d.ts +1 -0
- package/src/components/checkbox/checkbox.interface.ts +8 -0
- package/src/components/checkbox/checkbox.types.d.ts +9 -0
- package/src/components/checkbox/index.d.ts +1 -0
- package/src/components/colors/colors.interfaces.tsx +5 -0
- package/src/components/colors/colors.types.d.ts +9 -0
- package/src/components/colors/index.d.ts +1 -0
- package/src/components/context-menu/context-menu.interface.ts +22 -0
- package/src/components/context-menu/context-menu.types.d.ts +9 -0
- package/src/components/context-menu/index.d.ts +1 -0
- package/src/components/divider/divider.interface.tsx +4 -0
- package/src/components/divider/divider.types.d.ts +9 -0
- package/src/components/divider/index.d.ts +1 -0
- package/src/components/icon-button/icon-button.interface.ts +7 -0
- package/src/components/icon-button/icon-button.types.d.ts +9 -0
- package/src/components/icon-button/index.d.ts +1 -0
- package/src/components/image-progress-graph/image-progress-graph.interface.ts +13 -0
- package/src/components/image-progress-graph/image-progress-graph.types.d.ts +9 -0
- package/src/components/image-progress-graph/index.d.ts +1 -0
- package/src/components/index.tsx +5 -0
- package/src/components/menu.interface.tsx +10 -0
- package/src/components/modal/index.d.ts +1 -0
- package/src/components/modal/modal.interface.ts +20 -0
- package/src/components/modal/modal.types.d.ts +10 -0
- package/src/components/mood-button/index.d.ts +1 -0
- package/src/components/mood-button/mood-button.interface.ts +10 -0
- package/src/components/mood-button/mood-button.types.d.ts +9 -0
- package/src/components/pages/base-app-page.component.tsx +65 -0
- package/src/components/pages/base-app-page.styles.ts +45 -0
- package/src/components/pagination/index.d.ts +1 -0
- package/src/components/pagination/pagination.interface.ts +14 -0
- package/src/components/pagination/pagination.types.d.ts +10 -0
- package/src/components/profile-image/index.d.ts +1 -0
- package/src/components/profile-image/profile-image.interface.ts +6 -0
- package/src/components/profile-image/profile-image.types.d.ts +9 -0
- package/src/components/progress-bar/index.d.ts +1 -0
- package/src/components/progress-bar/progress-bar.interface.tsx +8 -0
- package/src/components/progress-bar/progress-bar.types.d.ts +9 -0
- package/src/components/progress-tracker/index.d.ts +1 -0
- package/src/components/progress-tracker/progress-tracker.interface.tsx +6 -0
- package/src/components/progress-tracker/progress-tracker.types.d.ts +9 -0
- package/src/components/radio-button/index.d.ts +1 -0
- package/src/components/radio-button/radio-button.interface.ts +5 -0
- package/src/components/radio-button/radio-button.types.d.ts +9 -0
- package/src/components/scroll-box/index.d.ts +1 -0
- package/src/components/scroll-box/scroll-box.interface.ts +9 -0
- package/src/components/scroll-box/scroll-box.types.d.ts +9 -0
- package/src/components/search-input/index.d.ts +1 -0
- package/src/components/search-input/search-input.interfaces.ts +14 -0
- package/src/components/search-input/search-input.types.d.ts +9 -0
- package/src/components/select/index.d.ts +1 -0
- package/src/components/select/select.interface.tsx +18 -0
- package/src/components/select/select.types.d.ts +9 -0
- package/src/components/sidebar/index.d.ts +1 -0
- package/src/components/sidebar/sidebar.interface.ts +12 -0
- package/src/components/sidebar/sidebar.types.d.ts +9 -0
- package/src/components/snackbar/index.d.ts +1 -0
- package/src/components/snackbar/snackbar.interface.ts +16 -0
- package/src/components/snackbar/snackbar.types.d.ts +9 -0
- package/src/components/speed-dial/index.d.ts +1 -0
- package/src/components/speed-dial/speed-dial.interface.ts +16 -0
- package/src/components/speed-dial/speed-dial.types.d.ts +9 -0
- package/src/components/spin-edit/index.d.ts +1 -0
- package/src/components/spin-edit/spin-edit.interface.ts +12 -0
- package/src/components/spin-edit/spin-edit.types.d.ts +9 -0
- package/src/components/switch/index.d.ts +1 -0
- package/src/components/switch/switch.interface.ts +7 -0
- package/src/components/switch/switch.types.d.ts +9 -0
- package/src/components/tag-expand/index.d.ts +1 -0
- package/src/components/tag-expand/tag-expand.interface.ts +9 -0
- package/src/components/tag-expand/tag-expand.types.d.ts +9 -0
- package/src/components/tags/index.d.ts +1 -0
- package/src/components/tags/tags.interface.ts +16 -0
- package/src/components/tags/tags.types.d.ts +9 -0
- package/src/components/text-field/index.d.ts +1 -0
- package/src/components/text-field/text-field.interface.tsx +27 -0
- package/src/components/text-field/text-field.types.d.ts +9 -0
- package/src/components/timer/index.d.ts +1 -0
- package/src/components/timer/timer.interface.ts +12 -0
- package/src/components/timer/timer.types.d.ts +9 -0
- package/src/components/toggle-icon-button/index.d.ts +1 -0
- package/src/components/toggle-icon-button/toggle-icon-button.interface.ts +16 -0
- package/src/components/toggle-icon-button/toggle-icon-button.types.d.ts +9 -0
- package/src/components/tooltip/index.d.ts +1 -0
- package/src/components/tooltip/tooltip.interface.ts +21 -0
- package/src/components/tooltip/tooltip.types.d.ts +9 -0
- package/src/components/transitions/index.d.ts +1 -0
- package/src/components/transitions/transitions.interfaces.ts +5 -0
- package/src/components/transitions/transitions.types.d.ts +9 -0
- package/src/components/typography/index.d.ts +1 -0
- package/src/components/typography/typography.interfaces.tsx +5 -0
- package/src/components/typography/typography.types.d.ts +9 -0
- package/src/components/upload/index.d.ts +1 -0
- package/src/components/upload/upload.interface.tsx +20 -0
- package/src/components/upload/upload.types.d.ts +7 -0
- package/src/constants/index.ts +1 -0
- package/src/constants/layout-dimensions.constants.ts +6 -0
- package/src/factories/base.factory.ts +1 -0
- package/src/factories/index.ts +1 -0
- package/src/factories/response.factory.ts +79 -0
- package/src/index.ts +26 -0
- package/src/ioc.ts +18 -0
- package/src/models/angel-friend-status.model.ts +7 -0
- package/src/models/base.repository.model.ts +3 -0
- package/src/models/index.d.ts +7 -0
- package/src/models/result-level.model.ts +6 -0
- package/src/models/send-user-to-login.model.ts +10 -0
- package/src/models/term-of-use.model.ts +6 -0
- package/src/models/theme-base.ts +171 -0
- package/src/models/user-mirror.model.ts +10 -0
- package/src/models/user-session.model.ts +103 -0
- package/src/repositories/angel-friend.repository.interface.ts +5 -0
- package/src/repositories/authentication.repository.interface.ts +14 -0
- package/src/repositories/base.repository.tsx +128 -0
- package/src/repositories/index.d.ts +7 -0
- package/src/repositories/locale.repository.interface.ts +4 -0
- package/src/repositories/results.repository.interface.ts +5 -0
- package/src/repositories/terms-of-use.repository.interface.ts +6 -0
- package/src/repositories/theme.repository.interface.ts +5 -0
- package/src/repositories/user.repository.interface.ts +15 -0
- package/src/services/angel-friend.service.interface.ts +3 -0
- package/src/services/authentication.service.interface.ts +17 -0
- package/src/services/index.d.ts +7 -0
- package/src/services/locale.service.interface.ts +4 -0
- package/src/services/results.service.interface.ts +3 -0
- package/src/services/terms-of-use.service.interface.ts +7 -0
- package/src/services/theme.service.interface.ts +8 -0
- package/src/services/user.service.interface.ts +14 -0
- package/src/states/index.ts +3 -0
- package/src/states/main-container/app.state.interface.ts +7 -0
- package/src/states/main-container/plataform.state.interface.ts +5 -0
- package/src/states/main-container/root-app.state.interface.ts +15 -0
- package/src/utils/build-error/buildError.util.interface.ts +5 -0
- package/src/utils/build-error/buildError.util.ts +13 -0
- package/src/utils/cache-control.tsx +92 -0
- package/src/utils/index.ts +5 -0
- package/src/utils/query-params/index.ts +38 -0
- package/src/utils/robbyson-navigate.ts +76 -0
- package/tsconfig.json +30 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import React from "react";
|
|
17
|
+
import { IoC } from "../../ioc";
|
|
18
|
+
import SVG from "react-inlinesvg";
|
|
19
|
+
import { PageContainer, Header, Title, ContextMenu, Content, } from "./base-app-page.styles";
|
|
20
|
+
import { RobbysonNavigate } from "../../utils";
|
|
21
|
+
var BaseAppPage = /** @class */ (function (_super) {
|
|
22
|
+
__extends(BaseAppPage, _super);
|
|
23
|
+
function BaseAppPage(props) {
|
|
24
|
+
var _this = _super.call(this, props) || this;
|
|
25
|
+
_this.headerLocale = "Header Locale";
|
|
26
|
+
_this.translate = _this.translate.bind(_this);
|
|
27
|
+
_this._localeService = IoC.GetInstance("LocaleService");
|
|
28
|
+
_this._authenticationService = IoC.GetInstance("AuthenticationService");
|
|
29
|
+
_this._themeService = IoC.GetInstance("ThemeService");
|
|
30
|
+
return _this;
|
|
31
|
+
}
|
|
32
|
+
BaseAppPage.prototype.translate = function (text) {
|
|
33
|
+
return this._localeService.getLocaleByHandle(text || "");
|
|
34
|
+
};
|
|
35
|
+
BaseAppPage.prototype.render = function () {
|
|
36
|
+
return (React.createElement(PageContainer, null,
|
|
37
|
+
React.createElement(Header, null,
|
|
38
|
+
React.createElement("div", null,
|
|
39
|
+
React.createElement(SVG, { src: this._themeService.getIconAssetUrl("left-arrow-large"), onClick: function () { return RobbysonNavigate.back(); } }),
|
|
40
|
+
React.createElement(Title, null, this.translate(this.headerLocale))),
|
|
41
|
+
React.createElement(ContextMenu, { className: "body-2-book" }, this.contextMenu())),
|
|
42
|
+
React.createElement(Content, null, this.renderPage())));
|
|
43
|
+
};
|
|
44
|
+
return BaseAppPage;
|
|
45
|
+
}(React.Component));
|
|
46
|
+
export { BaseAppPage };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import { LayoutDimensions } from "../../constants";
|
|
6
|
+
import styled from "styled-components";
|
|
7
|
+
var SIDEBAR_WIDTH = 72;
|
|
8
|
+
export var PageContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 32px 55px 47px calc(", "px + 55px);\n\n background: var(--solid-background);\n height: 100%;\n\n @media (max-width: ", "px) {\n padding: 32px 24px 24px calc(", "px + 24px);\n }\n\n @media (max-width: ", "px) {\n padding: 24px 16px 16px calc(", "px + 16px);\n }\n"], ["\n padding: 32px 55px 47px calc(", "px + 55px);\n\n background: var(--solid-background);\n height: 100%;\n\n @media (max-width: ", "px) {\n padding: 32px 24px 24px calc(", "px + 24px);\n }\n\n @media (max-width: ", "px) {\n padding: 24px 16px 16px calc(", "px + 16px);\n }\n"])), SIDEBAR_WIDTH, LayoutDimensions._width.ipadMini, SIDEBAR_WIDTH, LayoutDimensions._width.mobile, SIDEBAR_WIDTH);
|
|
9
|
+
export var Header = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex !important;\n flex-direction: row !important;\n justify-content: space-between !important;\n align-items: center !important;\n padding-bottom: 8px;\n gap: 16px !important;\n\n & > div {\n display: flex;\n align-items: center;\n }\n\n svg {\n cursor: pointer;\n }\n"], ["\n display: flex !important;\n flex-direction: row !important;\n justify-content: space-between !important;\n align-items: center !important;\n padding-bottom: 8px;\n gap: 16px !important;\n\n & > div {\n display: flex;\n align-items: center;\n }\n\n svg {\n cursor: pointer;\n }\n"])));
|
|
10
|
+
export var ContextMenu = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject([""], [""])));
|
|
11
|
+
export var Title = styled.h4(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-left: 12px;\n"], ["\n margin-left: 12px;\n"])));
|
|
12
|
+
export var Content = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject([""], [""])));
|
|
13
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./layout-dimensions.constants";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './response.factory';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
var ResponseStatusLogType;
|
|
2
|
+
(function (ResponseStatusLogType) {
|
|
3
|
+
ResponseStatusLogType[ResponseStatusLogType["SERVER_RESPONSE"] = 1] = "SERVER_RESPONSE";
|
|
4
|
+
ResponseStatusLogType[ResponseStatusLogType["VALIDATION_RESPONSE"] = 2] = "VALIDATION_RESPONSE";
|
|
5
|
+
ResponseStatusLogType[ResponseStatusLogType["SUCCESS_RESPONSE"] = 3] = "SUCCESS_RESPONSE";
|
|
6
|
+
ResponseStatusLogType[ResponseStatusLogType["FAIL_AUTHENTICATE_RESPONSE"] = 4] = "FAIL_AUTHENTICATE_RESPONSE";
|
|
7
|
+
})(ResponseStatusLogType || (ResponseStatusLogType = {}));
|
|
8
|
+
var ResponseStatusLogMessages = /** @class */ (function () {
|
|
9
|
+
function ResponseStatusLogMessages() {
|
|
10
|
+
}
|
|
11
|
+
return ResponseStatusLogMessages;
|
|
12
|
+
}());
|
|
13
|
+
export { ResponseStatusLogMessages };
|
|
14
|
+
var ResponseStatusLog = /** @class */ (function () {
|
|
15
|
+
function ResponseStatusLog() {
|
|
16
|
+
}
|
|
17
|
+
return ResponseStatusLog;
|
|
18
|
+
}());
|
|
19
|
+
var RobbysonResponse = /** @class */ (function () {
|
|
20
|
+
function RobbysonResponse() {
|
|
21
|
+
}
|
|
22
|
+
return RobbysonResponse;
|
|
23
|
+
}());
|
|
24
|
+
export { RobbysonResponse };
|
|
25
|
+
var RobbysonResponseError = /** @class */ (function () {
|
|
26
|
+
function RobbysonResponseError(data) {
|
|
27
|
+
if (data && this.isRobbysonError(data))
|
|
28
|
+
this.buildRobbysonError(data);
|
|
29
|
+
else
|
|
30
|
+
this.buildGenericError();
|
|
31
|
+
}
|
|
32
|
+
RobbysonResponseError.prototype.buildRobbysonError = function (data) {
|
|
33
|
+
this.data = data.statusLog[0].messages.map(function (message) {
|
|
34
|
+
if (typeof message === "string") {
|
|
35
|
+
return { title: message, text: message };
|
|
36
|
+
}
|
|
37
|
+
return message;
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
RobbysonResponseError.prototype.buildGenericError = function () {
|
|
41
|
+
this.data = [
|
|
42
|
+
{
|
|
43
|
+
title: "generic_systemErrorTitle",
|
|
44
|
+
text: "generic_systemErrorText",
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
};
|
|
48
|
+
RobbysonResponseError.prototype.isRobbysonError = function (data) {
|
|
49
|
+
var _a;
|
|
50
|
+
if ((data === null || data === void 0 ? void 0 : data.statusLog) &&
|
|
51
|
+
data.statusLog.length &&
|
|
52
|
+
((_a = data.statusLog[0].messages) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
return false;
|
|
56
|
+
};
|
|
57
|
+
return RobbysonResponseError;
|
|
58
|
+
}());
|
|
59
|
+
export { RobbysonResponseError };
|
|
60
|
+
var ResponseFactory = /** @class */ (function () {
|
|
61
|
+
function ResponseFactory() {
|
|
62
|
+
}
|
|
63
|
+
ResponseFactory.checkResponseError = function (response) {
|
|
64
|
+
if (response instanceof Error)
|
|
65
|
+
throw new RobbysonResponseError();
|
|
66
|
+
if (response.data.statusLog &&
|
|
67
|
+
response.data.statusLog.length &&
|
|
68
|
+
response.data.statusLog[0].type !== ResponseStatusLogType.SUCCESS_RESPONSE)
|
|
69
|
+
throw new RobbysonResponseError(response.data);
|
|
70
|
+
};
|
|
71
|
+
ResponseFactory.Create = function (response) {
|
|
72
|
+
this.checkResponseError(response);
|
|
73
|
+
return response.data.data;
|
|
74
|
+
};
|
|
75
|
+
return ResponseFactory;
|
|
76
|
+
}());
|
|
77
|
+
export { ResponseFactory };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from "./ioc";
|
|
2
|
+
// Factories
|
|
3
|
+
export * from "./factories";
|
|
4
|
+
// Models
|
|
5
|
+
export * from "./models/theme-base";
|
|
6
|
+
export * from "./models/user-mirror.model";
|
|
7
|
+
export * from "./models/user-session.model";
|
|
8
|
+
export * from "./models/send-user-to-login.model";
|
|
9
|
+
export * from "./models/angel-friend-status.model";
|
|
10
|
+
// Repositories
|
|
11
|
+
export * from "./repositories/base.repository";
|
|
12
|
+
// Components
|
|
13
|
+
export * from "./components";
|
|
14
|
+
// States
|
|
15
|
+
export * from "./states";
|
|
16
|
+
// Utils
|
|
17
|
+
export * from "./utils";
|
|
18
|
+
// Constants
|
|
19
|
+
export * from "./constants";
|
package/dist/ioc.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var IoC = /** @class */ (function () {
|
|
2
|
+
function IoC() {
|
|
3
|
+
}
|
|
4
|
+
IoC.GetInstance = function (instanceIdentifier) {
|
|
5
|
+
var implementation;
|
|
6
|
+
IoC._registed.forEach(function (registeredInstance) {
|
|
7
|
+
if (registeredInstance.identifier === instanceIdentifier)
|
|
8
|
+
implementation = registeredInstance.instance;
|
|
9
|
+
});
|
|
10
|
+
return implementation;
|
|
11
|
+
};
|
|
12
|
+
IoC.Register = function (instanceIdentifier, instance) {
|
|
13
|
+
IoC._registed.push({ identifier: instanceIdentifier, instance: instance });
|
|
14
|
+
};
|
|
15
|
+
IoC._registed = [];
|
|
16
|
+
return IoC;
|
|
17
|
+
}());
|
|
18
|
+
export { IoC };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import { BaseRepositoryModel } from "./base.repository.model";
|
|
17
|
+
// TODO: ADD OTHERS TYPES
|
|
18
|
+
var AngelFriendStatusModel = /** @class */ (function (_super) {
|
|
19
|
+
__extends(AngelFriendStatusModel, _super);
|
|
20
|
+
function AngelFriendStatusModel() {
|
|
21
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
22
|
+
}
|
|
23
|
+
return AngelFriendStatusModel;
|
|
24
|
+
}(BaseRepositoryModel));
|
|
25
|
+
export { AngelFriendStatusModel };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import { BaseRepositoryModel } from "./base.repository.model";
|
|
17
|
+
var ResultLevelModel = /** @class */ (function (_super) {
|
|
18
|
+
__extends(ResultLevelModel, _super);
|
|
19
|
+
function ResultLevelModel() {
|
|
20
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
21
|
+
}
|
|
22
|
+
return ResultLevelModel;
|
|
23
|
+
}(BaseRepositoryModel));
|
|
24
|
+
export { ResultLevelModel };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import { BaseRepositoryModel } from "./base.repository.model";
|
|
17
|
+
var TermsOfUseModel = /** @class */ (function (_super) {
|
|
18
|
+
__extends(TermsOfUseModel, _super);
|
|
19
|
+
function TermsOfUseModel() {
|
|
20
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
21
|
+
}
|
|
22
|
+
return TermsOfUseModel;
|
|
23
|
+
}(BaseRepositoryModel));
|
|
24
|
+
export { TermsOfUseModel };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var ThemeBaseColors = /** @class */ (function () {
|
|
2
|
+
function ThemeBaseColors() {
|
|
3
|
+
}
|
|
4
|
+
return ThemeBaseColors;
|
|
5
|
+
}());
|
|
6
|
+
var ThemeBaseRect = /** @class */ (function () {
|
|
7
|
+
function ThemeBaseRect() {
|
|
8
|
+
}
|
|
9
|
+
return ThemeBaseRect;
|
|
10
|
+
}());
|
|
11
|
+
var ThemeTypography = /** @class */ (function () {
|
|
12
|
+
function ThemeTypography() {
|
|
13
|
+
}
|
|
14
|
+
return ThemeTypography;
|
|
15
|
+
}());
|
|
16
|
+
var ThemeTransition = /** @class */ (function () {
|
|
17
|
+
function ThemeTransition() {
|
|
18
|
+
}
|
|
19
|
+
return ThemeTransition;
|
|
20
|
+
}());
|
|
21
|
+
var ThemeAssets = /** @class */ (function () {
|
|
22
|
+
function ThemeAssets() {
|
|
23
|
+
}
|
|
24
|
+
return ThemeAssets;
|
|
25
|
+
}());
|
|
26
|
+
var ThemeBase = /** @class */ (function () {
|
|
27
|
+
function ThemeBase() {
|
|
28
|
+
this.colors = new ThemeBaseColors();
|
|
29
|
+
this.assets = {
|
|
30
|
+
logoText: new ThemeAssets(),
|
|
31
|
+
logoComplete: new ThemeAssets(),
|
|
32
|
+
logoIcon: new ThemeAssets(),
|
|
33
|
+
logoTextNegative: new ThemeAssets(),
|
|
34
|
+
logoCompleteNegative: new ThemeAssets(),
|
|
35
|
+
logoIconNegative: new ThemeAssets(),
|
|
36
|
+
backgroundLogo: new ThemeAssets(),
|
|
37
|
+
logoMobile: new ThemeAssets(),
|
|
38
|
+
loginRobbysonAvatar: new ThemeAssets(),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
return ThemeBase;
|
|
42
|
+
}());
|
|
43
|
+
export { ThemeBase };
|
|
44
|
+
;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import { BaseRepositoryModel } from "./base.repository.model";
|
|
17
|
+
var UserMirrorModel = /** @class */ (function (_super) {
|
|
18
|
+
__extends(UserMirrorModel, _super);
|
|
19
|
+
function UserMirrorModel() {
|
|
20
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
21
|
+
}
|
|
22
|
+
return UserMirrorModel;
|
|
23
|
+
}(BaseRepositoryModel));
|
|
24
|
+
export { UserMirrorModel };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import { BaseRepositoryModel } from "./base.repository.model";
|
|
17
|
+
var UserSessionModel = /** @class */ (function (_super) {
|
|
18
|
+
__extends(UserSessionModel, _super);
|
|
19
|
+
function UserSessionModel() {
|
|
20
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
21
|
+
}
|
|
22
|
+
return UserSessionModel;
|
|
23
|
+
}(BaseRepositoryModel));
|
|
24
|
+
export { UserSessionModel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|