robbyson-frontend-library 0.0.1-rc11 → 0.0.1-rc12
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/circular-general-level/circular-general-level.interface.js +1 -0
- package/dist/components/circular-indicator-goal/circular-indicator-goal.interface.js +1 -0
- package/dist/components/circular-progress/circular-progress.interface.js +1 -0
- package/dist/components/daily-chart/daily-chart.interface.js +1 -0
- package/dist/components/dropdown/dropdown.interface.js +1 -0
- package/dist/components/insight-chart/insight-chart.interface.js +1 -0
- package/dist/components/mountain-chart/mountain-chart.interface.js +1 -0
- package/dist/components/pages/base-app-page.component.js +11 -1
- package/dist/components/result-chart/result-chart.interface.js +1 -0
- package/dist/components/text-area/text-area.interface.js +1 -0
- package/dist/components/weekly-chart/weekly-chart.interface.js +1 -0
- package/dist/index.js +10 -2
- package/dist/models/agenda-invited-users.model.js +24 -0
- package/dist/models/agenda.model.js +36 -0
- package/dist/models/chat.model.js +11 -0
- package/dist/models/friendship-team-list.model.js +1 -0
- package/dist/models/quiz-answered.model.js +24 -0
- package/dist/models/quiz-not-answered.model.js +24 -0
- package/dist/models/quiz.model.js +24 -0
- package/dist/models/theme-base.js +8 -0
- package/dist/models/user-list.model.js +24 -0
- package/dist/models/user.model.js +24 -0
- package/dist/repositories/agenda.repository.interface.js +1 -0
- package/dist/repositories/chat.repository.interface.js +1 -0
- package/dist/repositories/configuration.repository.interface.js +1 -0
- package/dist/repositories/friendship.repository.interface.js +1 -0
- package/dist/repositories/quiz.repository.interface.js +1 -0
- package/dist/services/agenda.service.interface.js +1 -0
- package/dist/services/chat.service.interface.js +1 -0
- package/dist/services/dtos/agenda.dto.js +1 -0
- package/dist/services/dtos/chat.dto.js +1 -0
- package/dist/services/dtos/friendship.dto.js +1 -0
- package/dist/services/dtos/index.js +5 -0
- package/dist/services/dtos/quiz.dto.js +1 -0
- package/dist/services/dtos/user.dto.js +1 -0
- package/dist/services/friendship.service.interface.js +1 -0
- package/dist/services/quiz.service.interface.js +1 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/timer.utils.js +22 -0
- package/index.d.ts +13 -0
- package/package.json +2 -2
- package/src/components/basic-button/basic-button.interface.ts +0 -1
- package/src/components/checkbox/checkbox.interface.ts +2 -0
- package/src/components/circular-general-level/circular-general-level.interface.ts +13 -0
- package/src/components/circular-general-level/circular-general-level.types.d.ts +9 -0
- package/src/components/circular-general-level/index.d.ts +1 -0
- package/src/components/circular-indicator-goal/circular-indicator-goal.interface.ts +13 -0
- package/src/components/circular-indicator-goal/circular-indicator-goal.types.d.ts +9 -0
- package/src/components/circular-indicator-goal/index.d.ts +1 -0
- package/src/components/circular-progress/circular-progress.interface.ts +12 -0
- package/src/components/circular-progress/circular-progress.types.d.ts +9 -0
- package/src/components/circular-progress/index.d.ts +1 -0
- package/src/components/daily-chart/daily-chart.interface.ts +22 -0
- package/src/components/daily-chart/daily-chart.types.d.ts +9 -0
- package/src/components/daily-chart/index.d.ts +1 -0
- package/src/components/date-picker/date-picker.interface.ts +4 -2
- package/src/components/dropdown/dropdown.interface.ts +52 -0
- package/src/components/dropdown/dropdown.types.d.ts +9 -0
- package/src/components/dropdown/index.d.ts +1 -0
- package/src/components/filter/filter.interface.tsx +1 -1
- package/src/components/icon-button/icon-button.interface.ts +1 -1
- package/src/components/insight-chart/index.d.ts +1 -0
- package/src/components/insight-chart/insight-chart.interface.ts +23 -0
- package/src/components/insight-chart/insight-chart.types.d.ts +9 -0
- package/src/components/mountain-chart/index.d.ts +1 -0
- package/src/components/mountain-chart/mountain-chart.interface.ts +11 -0
- package/src/components/mountain-chart/mountain-chart.types.d.ts +9 -0
- package/src/components/pages/base-app-page.component.tsx +11 -2
- package/src/components/pagination/pagination.interface.ts +3 -0
- package/src/components/profile-image/profile-image.interface.ts +1 -1
- package/src/components/progress-bar/progress-bar.interface.ts +15 -5
- package/src/components/progress-bar/progress-bar.types.d.ts +1 -1
- package/src/components/result-chart/index.d.ts +1 -0
- package/src/components/result-chart/result-chart.interface.ts +25 -0
- package/src/components/result-chart/result-chart.types.d.ts +9 -0
- package/src/components/scroll-box/scroll-box.interface.ts +3 -1
- package/src/components/tab/tab.interface.ts +1 -0
- package/src/components/tag-expand/tag-expand.interface.ts +1 -0
- package/src/components/text-area/index.d.ts +1 -0
- package/src/components/text-area/text-area.interface.ts +3 -0
- package/src/components/text-area/text-area.types.d.ts +9 -0
- package/src/components/text-field/text-field.interface.ts +11 -2
- package/src/components/toggle-icon-button/toggle-icon-button.interface.ts +0 -3
- package/src/components/tooltip/tooltip.interface.ts +3 -5
- package/src/components/weekly-chart/index.d.ts +1 -0
- package/src/components/weekly-chart/weekly-chart.interface.ts +22 -0
- package/src/components/weekly-chart/weekly-chart.types.d.ts +9 -0
- package/src/index.ts +11 -3
- package/src/models/agenda-invited-users.model.ts +37 -0
- package/src/models/agenda.model.ts +31 -0
- package/src/models/chat.model.ts +28 -0
- package/src/models/friendship-team-list.model.ts +47 -0
- package/src/models/index.d.ts +9 -0
- package/src/models/quiz-answered.model.ts +28 -0
- package/src/models/quiz-not-answered.model.ts +5 -0
- package/src/models/quiz.model.ts +55 -0
- package/src/models/theme-base.ts +38 -28
- package/src/models/user-list.model.ts +26 -0
- package/src/models/user.model.ts +21 -0
- package/src/repositories/agenda.repository.interface.ts +26 -0
- package/src/repositories/chat.repository.interface.ts +10 -0
- package/src/repositories/configuration.repository.interface.ts +5 -0
- package/src/repositories/friendship.repository.interface.ts +6 -0
- package/src/repositories/index.d.ts +12 -7
- package/src/repositories/quiz.repository.interface.ts +14 -0
- package/src/repositories/user.repository.interface.ts +9 -3
- package/src/services/agenda.service.interface.ts +39 -0
- package/src/services/angel-friend.service.interface.ts +1 -1
- package/src/services/chat.service.interface.ts +12 -0
- package/src/services/dtos/agenda.dto.ts +38 -0
- package/src/services/dtos/chat.dto.ts +24 -0
- package/src/services/dtos/friendship.dto.ts +6 -0
- package/src/services/dtos/index.ts +6 -1
- package/src/services/dtos/quiz.dto.ts +10 -0
- package/src/services/dtos/user.dto.ts +24 -0
- package/src/services/friendship.service.interface.ts +6 -0
- package/src/services/index.d.ts +5 -1
- package/src/services/quiz.service.interface.ts +16 -0
- package/src/services/theme.service.interface.ts +1 -1
- package/src/services/user.service.interface.ts +12 -7
- package/src/services/validations.service.interface.ts +1 -0
- package/src/states/main-container/root-app.state.interface.ts +24 -18
- package/src/utils/index.ts +3 -1
- package/src/utils/timer.utils.ts +19 -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 {};
|
|
@@ -33,10 +33,19 @@ var BaseAppPage = /** @class */ (function (_super) {
|
|
|
33
33
|
var _this = _super.call(this, props) || this;
|
|
34
34
|
_this.headerLocale = "Header Locale";
|
|
35
35
|
_this.translate = _this.translate.bind(_this);
|
|
36
|
+
_this.redirect = _this.redirect.bind(_this);
|
|
36
37
|
_this._localeService = IoC.GetInstance("LocaleService");
|
|
37
38
|
_this._themeService = IoC.GetInstance("ThemeService");
|
|
38
39
|
return _this;
|
|
39
40
|
}
|
|
41
|
+
BaseAppPage.prototype.redirect = function () {
|
|
42
|
+
if (this._linkToOverride) {
|
|
43
|
+
RobbysonNavigate.to(this._linkToOverride);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
RobbysonNavigate.back();
|
|
47
|
+
}
|
|
48
|
+
};
|
|
40
49
|
BaseAppPage.prototype.translate = function (text) {
|
|
41
50
|
var _a;
|
|
42
51
|
var args = [];
|
|
@@ -46,11 +55,12 @@ var BaseAppPage = /** @class */ (function (_super) {
|
|
|
46
55
|
return (_a = this._localeService).getLocaleByHandle.apply(_a, __spreadArray([text || ""], args, false));
|
|
47
56
|
};
|
|
48
57
|
BaseAppPage.prototype.render = function () {
|
|
58
|
+
var _this = this;
|
|
49
59
|
QueryParamsFactory.validate(this.paramsValidValues, this.paramsDefaultValues);
|
|
50
60
|
return (React.createElement(PageContainer, null,
|
|
51
61
|
React.createElement(Header, null,
|
|
52
62
|
React.createElement("div", null,
|
|
53
|
-
React.createElement(LeftArrowLarge, { src: this._themeService.getIconAssetUrl("left-arrow-large"), onClick: function () { return
|
|
63
|
+
React.createElement(LeftArrowLarge, { src: this._themeService.getIconAssetUrl("left-arrow-large"), onClick: function () { return _this.redirect(); } }),
|
|
54
64
|
React.createElement(Block, null),
|
|
55
65
|
React.createElement(Title, null, this.translate(this.headerLocale))),
|
|
56
66
|
React.createElement(ContextMenu, { className: "body-2-book" }, this.contextMenu())),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -7,11 +7,19 @@ export * from "./models/user-mirror.model";
|
|
|
7
7
|
export * from "./models/user-session.model";
|
|
8
8
|
export * from "./models/send-user-to-login.model";
|
|
9
9
|
export * from "./models/angel-friend-status.model";
|
|
10
|
-
export * from
|
|
10
|
+
export * from "./models/document.model";
|
|
11
11
|
export * from "./models/guidance-category.model";
|
|
12
12
|
export * from "./models/guidance.model";
|
|
13
13
|
export * from "./models/guidance-query.model";
|
|
14
14
|
export * from "./models/http-response.model";
|
|
15
|
+
export * from "./models/quiz.model";
|
|
16
|
+
export * from "./models/quiz-not-answered.model";
|
|
17
|
+
export * from "./models/quiz-answered.model";
|
|
18
|
+
export * from "./models/chat.model";
|
|
19
|
+
export * from "./models/agenda.model";
|
|
20
|
+
export * from "./models/agenda-invited-users.model";
|
|
21
|
+
export * from "./models/user-list.model";
|
|
22
|
+
export * from "./models/friendship-team-list.model";
|
|
15
23
|
// Repositories
|
|
16
24
|
export * from "./repositories/base.repository";
|
|
17
25
|
// Components
|
|
@@ -20,7 +28,7 @@ export * from "./components";
|
|
|
20
28
|
export * from "./states";
|
|
21
29
|
// Utils
|
|
22
30
|
export * from "./utils";
|
|
23
|
-
// Constants
|
|
31
|
+
// Constants
|
|
24
32
|
export * from "./constants";
|
|
25
33
|
// DTOs
|
|
26
34
|
export * from "./services/dtos";
|
|
@@ -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 AgendaInvitedUsersModel = /** @class */ (function (_super) {
|
|
18
|
+
__extends(AgendaInvitedUsersModel, _super);
|
|
19
|
+
function AgendaInvitedUsersModel() {
|
|
20
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
21
|
+
}
|
|
22
|
+
return AgendaInvitedUsersModel;
|
|
23
|
+
}(BaseRepositoryModel));
|
|
24
|
+
export { AgendaInvitedUsersModel };
|
|
@@ -0,0 +1,36 @@
|
|
|
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 AppointmentEdit = /** @class */ (function (_super) {
|
|
18
|
+
__extends(AppointmentEdit, _super);
|
|
19
|
+
function AppointmentEdit() {
|
|
20
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
21
|
+
}
|
|
22
|
+
return AppointmentEdit;
|
|
23
|
+
}(BaseRepositoryModel));
|
|
24
|
+
var AgendaModel = /** @class */ (function (_super) {
|
|
25
|
+
__extends(AgendaModel, _super);
|
|
26
|
+
function AgendaModel() {
|
|
27
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
28
|
+
}
|
|
29
|
+
return AgendaModel;
|
|
30
|
+
}(AppointmentEdit));
|
|
31
|
+
export { AgendaModel };
|
|
32
|
+
var AppointmentConfirmation = /** @class */ (function () {
|
|
33
|
+
function AppointmentConfirmation() {
|
|
34
|
+
}
|
|
35
|
+
return AppointmentConfirmation;
|
|
36
|
+
}());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 QuizAnsweredModel = /** @class */ (function (_super) {
|
|
18
|
+
__extends(QuizAnsweredModel, _super);
|
|
19
|
+
function QuizAnsweredModel() {
|
|
20
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
21
|
+
}
|
|
22
|
+
return QuizAnsweredModel;
|
|
23
|
+
}(BaseRepositoryModel));
|
|
24
|
+
export { QuizAnsweredModel };
|
|
@@ -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 QuizNotAnsweredModel = /** @class */ (function (_super) {
|
|
18
|
+
__extends(QuizNotAnsweredModel, _super);
|
|
19
|
+
function QuizNotAnsweredModel() {
|
|
20
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
21
|
+
}
|
|
22
|
+
return QuizNotAnsweredModel;
|
|
23
|
+
}(BaseRepositoryModel));
|
|
24
|
+
export { QuizNotAnsweredModel };
|
|
@@ -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 QuizModel = /** @class */ (function (_super) {
|
|
18
|
+
__extends(QuizModel, _super);
|
|
19
|
+
function QuizModel() {
|
|
20
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
21
|
+
}
|
|
22
|
+
return QuizModel;
|
|
23
|
+
}(BaseRepositoryModel));
|
|
24
|
+
export { QuizModel };
|
|
@@ -3,6 +3,7 @@ var ThemeBaseColors = /** @class */ (function () {
|
|
|
3
3
|
}
|
|
4
4
|
return ThemeBaseColors;
|
|
5
5
|
}());
|
|
6
|
+
export var ICON_HANDLES = ['active-bold', 'active-thin', 'avatar-login', 'add-challenge-bold', 'add-challenge-thin', 'add-notification-bold', 'add-notification-thin', 'add-quiz-bold', 'add-quiz-thin', 'angel-friend-add-bold', 'angel-friend-add-thin', 'angel-friend-bold', 'angel-friend-thin', 'attachment-bold', 'attachment-thin', 'auction-bold', 'auction-thin', 'available-bold', 'available-thin', 'broadcast-bold', 'broadcast-thin', 'calendar-bold', 'calendar-thin', 'camera-bold', 'camera-thin', 'cancel-bold', 'cancel-thin', 'challenge-bold', 'challenge-thin', 'chat-bold', 'chatbot-bold', 'chatbot-thin', 'chat-fil-bold', 'chat-fill-thin', 'chat-smile-bold', 'chat-smile-thin', 'chat-thin', 'check-bold', 'check-thin', 'chocolate-menu', 'chronometer-bold', 'chronometer-thin', 'clock-bold', 'clock-thin', 'close-bold', 'close-thin', 'cloud-bold', 'cloud-thin', 'coin-bold', 'coin-thin', 'column-view-active-bold', 'column-view-active-thin', 'column-view-bold', 'column-view-thin', 'contacts-bold', 'contacts-thin', 'delete-bold', 'delete-thin', 'documents-bold', 'documents-thin', 'down-arrow', 'download-bold', 'download-thin', 'downward-arrow-bold', 'downward-arrow-thin', 'duplicate-bold', 'duplicate-thin', 'eagle-bold', 'eagle-thin', 'edit-bold', 'edit-thin', 'emoji-bold', 'emoji-thin', 'family-bold', 'family-thin', 'filter-active-bold', 'filter-active-thin', 'filter-inactive-bold', 'filter-inactive-thin', 'filter', 'forward-bold', 'forward-thin', 'goal-bold', 'goal-thin', 'grid-view-active-bold', 'grid-view-active-thin', 'grid-view-bold', 'grid-view-thin', 'group-bold', 'group-brackets-bold', 'group-brackets-thin', 'group-fill-bold', 'group-fill-thin', 'group-thin', 'guide-bold', 'guide-thin', 'health-bold', 'health-thin', 'heart-bold', 'heart-fill-bold', 'heart-fill-thin', 'heart-thin', 'humor-bold', 'humor-thin', 'inactive-bold', 'inactive-thin', 'indicator-bold', 'indicator-thin', 'info-bold', 'info-thin', 'integration-bold', 'integration-thin', 'learning-bold', 'learning-thin', 'leave-bold', 'leave-thin', 'left-arrow-large', 'left-arrow-small', 'like-bold', 'like-fill-bold', 'like-fill-thin', 'like-thin', 'magnifying-glass-bold', 'magnifying-glass-thin', 'minus', 'more-vert', 'mountain-bold', 'mountain-thin', 'new-document-bold', 'new-document-thin', 'new-tip-thin-1', 'new-tip-thin', 'notification-bold', 'notification-thin', 'objetive-bold', 'objetive-thin', 'order-bold-1', 'order-bold', 'order-thin-1', 'order-thin', 'performance-bold', 'performance-thin', 'phone-bold', 'phone-thin', 'plus', 'quiz-bold', 'quiz-thin', 'raffle-bold', 'raffle-draw-bold', 'raffle-draw-thin', 'raffle-thin', 'relationship-bold', 'relationship-thin', 'reports-bold', 'reports-thin', 'right-arrow-large', 'right-arrow-small', 'send-bold', 'send-thin', 'settings-bold', 'settings-thin', 'star-bold', 'star-thin', 'store-bold', 'store-item-bold', 'store-item-thin', 'store-thin', 'tag-bold', 'tag-thin', 'test-bold', 'test-thin', 'tips-bold', 'tips-thin', 'tree-bold', 'tree-thin', 'trophy-bold', 'trophy-thin', 'up-arrow', 'upload-bold', 'upload-thin', 'upward-arrow-bold', 'upward-arrow-thin', 'user-bold', 'user-thin', 'variable-pay-bold', 'variable-pay-thin', 'view-bold', 'view-thin', 'not-view-thin', 'not-view-bold', 'work-bold', 'working', 'work-thin', 'no-results-found', 'not-found-bold', 'hamburger-menu', 'cloud-circle', 'mountain-circle', 'star-circle', 'expand-image-bold', 'camera-off-bold', 'minimize-image-bold', 'phone-call-bold', 'microphone-bold', 'microphone-off-bold', 'share-screen-bold', 'ead-play-button'];
|
|
6
7
|
var ThemeBaseRect = /** @class */ (function () {
|
|
7
8
|
function ThemeBaseRect() {
|
|
8
9
|
}
|
|
@@ -23,6 +24,12 @@ var ThemeAssets = /** @class */ (function () {
|
|
|
23
24
|
}
|
|
24
25
|
return ThemeAssets;
|
|
25
26
|
}());
|
|
27
|
+
var Typography = /** @class */ (function () {
|
|
28
|
+
function Typography() {
|
|
29
|
+
}
|
|
30
|
+
return Typography;
|
|
31
|
+
}());
|
|
32
|
+
;
|
|
26
33
|
var ThemeBase = /** @class */ (function () {
|
|
27
34
|
function ThemeBase() {
|
|
28
35
|
this.colors = new ThemeBaseColors();
|
|
@@ -40,6 +47,7 @@ var ThemeBase = /** @class */ (function () {
|
|
|
40
47
|
humorImbadCircle: new ThemeAssets(),
|
|
41
48
|
logoMobile: new ThemeAssets(),
|
|
42
49
|
loginRobbysonAvatar: new ThemeAssets(),
|
|
50
|
+
quizThankYouAvatar: new ThemeAssets(),
|
|
43
51
|
};
|
|
44
52
|
}
|
|
45
53
|
return ThemeBase;
|
|
@@ -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 UserListModel = /** @class */ (function (_super) {
|
|
18
|
+
__extends(UserListModel, _super);
|
|
19
|
+
function UserListModel() {
|
|
20
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
21
|
+
}
|
|
22
|
+
return UserListModel;
|
|
23
|
+
}(BaseRepositoryModel));
|
|
24
|
+
export { UserListModel };
|
|
@@ -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 UserModel = /** @class */ (function (_super) {
|
|
18
|
+
__extends(UserModel, _super);
|
|
19
|
+
function UserModel() {
|
|
20
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
21
|
+
}
|
|
22
|
+
return UserModel;
|
|
23
|
+
}(BaseRepositoryModel));
|
|
24
|
+
export { UserModel };
|
|
@@ -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 {};
|
package/dist/utils/index.js
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var TimerUtils = /** @class */ (function () {
|
|
2
|
+
function TimerUtils() {
|
|
3
|
+
}
|
|
4
|
+
TimerUtils.delay = function (time) {
|
|
5
|
+
return new Promise(function (resolve) {
|
|
6
|
+
return setTimeout(function () { return resolve(undefined); }, time);
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
TimerUtils.stopwatch = (function SetInterval() {
|
|
10
|
+
var interval;
|
|
11
|
+
return function () { return ({
|
|
12
|
+
initInterval: function (func, time) {
|
|
13
|
+
interval = setInterval(func, time);
|
|
14
|
+
},
|
|
15
|
+
clearInterval: function () {
|
|
16
|
+
clearInterval(interval);
|
|
17
|
+
},
|
|
18
|
+
}); };
|
|
19
|
+
})();
|
|
20
|
+
return TimerUtils;
|
|
21
|
+
}());
|
|
22
|
+
export { TimerUtils };
|
package/index.d.ts
CHANGED
|
@@ -54,3 +54,16 @@ export * from "./src/components/tree-date-picker";
|
|
|
54
54
|
export * from "./src/components/tab";
|
|
55
55
|
export * from "./src/components/filter";
|
|
56
56
|
export * from "./src/components/time-picker";
|
|
57
|
+
export * from "./src/components/circular-indicator-goal";
|
|
58
|
+
export * from "./src/components/circular-general-level";
|
|
59
|
+
export * from "./src/components/text-area";
|
|
60
|
+
export * from "./src/components/result-chart";
|
|
61
|
+
export * from "./src/components/insight-chart";
|
|
62
|
+
export * from "./src/components/mountain-chart";
|
|
63
|
+
export * from "./src/components/daily-chart";
|
|
64
|
+
export * from "./src/components/weekly-chart";
|
|
65
|
+
export * from "./src/components/circular-indicator-goal";
|
|
66
|
+
export * from "./src/components/circular-general-level";
|
|
67
|
+
export * from "./src/components/text-area";
|
|
68
|
+
export * from "./src/components/dropdown";
|
|
69
|
+
export * from "./src/components/circular-progress";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "robbyson-frontend-library",
|
|
3
|
-
"version": "0.0.1-
|
|
3
|
+
"version": "0.0.1-rc12",
|
|
4
4
|
"description": "Robbyson frontend Library",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@types/axios": "^0.14.0",
|
|
21
21
|
"@types/crypto-js": "^4.1.1",
|
|
22
22
|
"@types/lodash": "^4.14.199",
|
|
23
|
-
"@types/react": "~18.0
|
|
23
|
+
"@types/react": "~18.2.0",
|
|
24
24
|
"@types/styled-components": "^5.1.26",
|
|
25
25
|
"styled-components": "^5.3.9",
|
|
26
26
|
"typescript": "^4.9.5"
|
|
@@ -5,7 +5,6 @@ export type BasicButtonVariant = 'primary' | 'secondary' | 'tertiary';
|
|
|
5
5
|
|
|
6
6
|
export interface IBasicButtonProps<T> extends React.ButtonHTMLAttributes<T>, IBaseComponentProp {
|
|
7
7
|
iconAlign?: string;
|
|
8
|
-
hasIcon?: Boolean;
|
|
9
8
|
iconHandle?: IconHandle;
|
|
10
9
|
textLocaleHandle?: string;
|
|
11
10
|
variant: BasicButtonVariant
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IconHandle } from "../../models";
|
|
2
|
+
import { IBaseComponentProp } from "../base-component.prop.interface";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
|
|
5
|
+
export interface ICircularGeneralLevelProps extends IBaseComponentProp {
|
|
6
|
+
percentage: number;
|
|
7
|
+
nextStepValue?: number;
|
|
8
|
+
color: string;
|
|
9
|
+
iconHandle?: IconHandle;
|
|
10
|
+
nextIconHandle?: IconHandle;
|
|
11
|
+
centeredElement?: ReactNode
|
|
12
|
+
profileImage?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
///<reference types="react" />
|
|
2
|
+
///<reference types="robbyson-frontend-library" />
|
|
3
|
+
|
|
4
|
+
declare module 'styleguide/CircularGeneralLevel' {
|
|
5
|
+
import { ICircularGeneralLevelProps } from "robbyson-frontend-library";
|
|
6
|
+
const CircularGeneralLevel: React.ComponentType<ICircularGeneralLevelProps>;
|
|
7
|
+
|
|
8
|
+
export default CircularGeneralLevel;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './circular-general-level.interface';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IconHandle } from "../../models";
|
|
2
|
+
import { IBaseComponentProp } from "../base-component.prop.interface";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
|
|
5
|
+
export interface ICircularIndicatorGoalProps extends IBaseComponentProp {
|
|
6
|
+
value: number;
|
|
7
|
+
total: number;
|
|
8
|
+
color: string;
|
|
9
|
+
iconHandle?: IconHandle;
|
|
10
|
+
nextIconHandle?: IconHandle;
|
|
11
|
+
centeredElement?: ReactNode
|
|
12
|
+
fullPercentage?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
///<reference types="react" />
|
|
2
|
+
///<reference types="robbyson-frontend-library" />
|
|
3
|
+
|
|
4
|
+
declare module 'styleguide/CircularIndicatorGoal' {
|
|
5
|
+
import { ICircularIndicatorGoalProps } from "robbyson-frontend-library";
|
|
6
|
+
const CircularIndicatorGoal: React.ComponentType<ICircularIndicatorGoalProps>;
|
|
7
|
+
|
|
8
|
+
export default CircularIndicatorGoal;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './circular-indicator-goal.interface';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {IBaseComponentProp} from "../base-component.prop.interface";
|
|
2
|
+
import {IconHandle} from "../../models";
|
|
3
|
+
|
|
4
|
+
export interface ICircularProgressProps extends IBaseComponentProp {
|
|
5
|
+
iconHandle: IconHandle;
|
|
6
|
+
color: string;
|
|
7
|
+
value: number;
|
|
8
|
+
total: number;
|
|
9
|
+
time?: string;
|
|
10
|
+
totalTime?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
///<reference types="react" />
|
|
2
|
+
///<reference types="robbyson-frontend-library" />
|
|
3
|
+
|
|
4
|
+
declare module "styleguide/CircularProgressComponent" {
|
|
5
|
+
import { ICircularProgressProps } from "robbyson-frontend-library";
|
|
6
|
+
const CircularProgressComponent: React.ComponentType<ICircularProgressProps>;
|
|
7
|
+
|
|
8
|
+
export default CircularProgressComponent;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './circular-progress.interface';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IconHandle } from "../../models";
|
|
2
|
+
import { IBaseComponentProp } from "../base-component.prop.interface";
|
|
3
|
+
|
|
4
|
+
export interface IDailyChartProps extends IBaseComponentProp {
|
|
5
|
+
titleLocaleHandle: string;
|
|
6
|
+
updatedAt:string;
|
|
7
|
+
money: string;
|
|
8
|
+
totalMoney: string;
|
|
9
|
+
minute: string;
|
|
10
|
+
totalMinute: string;
|
|
11
|
+
data: IChartData;
|
|
12
|
+
colorDivision: number[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type IChartData = {
|
|
16
|
+
percentage?: number;
|
|
17
|
+
date: string;
|
|
18
|
+
fullDate: string;
|
|
19
|
+
hour?: string;
|
|
20
|
+
metaHour?: string;
|
|
21
|
+
icon?: IconHandle;
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
///<reference types="react" />
|
|
2
|
+
///<reference types="robbyson-frontend-library" />
|
|
3
|
+
|
|
4
|
+
declare module "styleguide/DailyChart" {
|
|
5
|
+
import { IDailyChartProps } from "robbyson-frontend-library";
|
|
6
|
+
const DailyChart: React.ComponentType<IDailyChartProps>;
|
|
7
|
+
|
|
8
|
+
export default DailyChart;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './daily-chart.interface';
|
|
@@ -4,10 +4,12 @@ import { ITextFieldProps } from "../text-field";
|
|
|
4
4
|
export interface IDatePickerProps extends IBaseComponentProp {
|
|
5
5
|
onConfirm: (date: Date) => void;
|
|
6
6
|
selectedDate: Date | null;
|
|
7
|
-
customInputOptions?: Omit<ITextFieldProps, "value"
|
|
7
|
+
customInputOptions?: Omit<ITextFieldProps, "value"> & {
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
maxDate?: Date;
|
|
8
11
|
}
|
|
9
12
|
|
|
10
13
|
export interface IDatePickerState {
|
|
11
14
|
selectedDate: Date | null;
|
|
12
15
|
}
|
|
13
|
-
|