ps-toolkit-ui 0.0.80 → 0.0.84
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/bundles/ps-toolkit-ui.umd.js +20 -8
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/header/header.component.js +10 -5
- package/esm2015/lib/components/layout/layout.component.js +6 -4
- package/esm2015/lib/components/login/login.component.js +5 -1
- package/esm2015/lib/components/notfound/notfound.component.js +3 -3
- package/fesm2015/ps-toolkit-ui.js +19 -8
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/components/header/header.component.d.ts +3 -1
- package/lib/components/layout/layout.component.d.ts +2 -0
- package/lib/components/notfound/notfound.component.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1996,14 +1996,17 @@
|
|
|
1996
1996
|
|
|
1997
1997
|
var HeaderComponent = /** @class */ (function () {
|
|
1998
1998
|
function HeaderComponent(config) {
|
|
1999
|
+
var _this = this;
|
|
1999
2000
|
this.config = config;
|
|
2001
|
+
this.logout = new core.EventEmitter();
|
|
2000
2002
|
var lang = new LangClass(config.currentLang, config.strings);
|
|
2001
2003
|
var l = function (key, v) {
|
|
2002
2004
|
if (v === void 0) { v = null; }
|
|
2003
2005
|
return lang.get('Public', 'Header', key, v);
|
|
2004
2006
|
};
|
|
2005
|
-
this.
|
|
2006
|
-
this.
|
|
2007
|
+
this.logoutInp = new InputClass(config.environment, l, 'Logout', null, exports.InputType.Button, 'grey h-30');
|
|
2008
|
+
this.logoutInp.onClick = function () {
|
|
2009
|
+
_this.logout.emit();
|
|
2007
2010
|
};
|
|
2008
2011
|
}
|
|
2009
2012
|
return HeaderComponent;
|
|
@@ -2011,13 +2014,16 @@
|
|
|
2011
2014
|
HeaderComponent.decorators = [
|
|
2012
2015
|
{ type: core.Component, args: [{
|
|
2013
2016
|
selector: 'lib-header',
|
|
2014
|
-
template: "<div id=\"Header\" class=\"underline\">\r\n <div class=\"logout\">\r\n <lib-form-button [inp]=\"
|
|
2017
|
+
template: "<div id=\"Header\" class=\"underline\">\r\n <div class=\"logout\">\r\n <lib-form-button [inp]=\"logoutInp\"></lib-form-button>\r\n </div>\r\n</div>\r\n",
|
|
2015
2018
|
styles: ["#Header{background-color:#fff;float:right;height:50px;position:relative;width:100%;z-index:11}#Header .logout{float:left;margin:10px 30px;width:80px}@media (max-width:399.98px){#Header .toggle-sidebar{display:block}}@media (min-width:400px) and (max-width:499.98px){#Header .toggle-sidebar{display:block}}@media (min-width:500px) and (max-width:599.98px){#Header .toggle-sidebar{display:block}}@media (min-width:600px) and (max-width:699.98px){#Header .toggle-sidebar{display:block}}@media (min-width:700px) and (max-width:799.98px){#Header .toggle-sidebar{display:block}}"]
|
|
2016
2019
|
},] }
|
|
2017
2020
|
];
|
|
2018
2021
|
HeaderComponent.ctorParameters = function () { return [
|
|
2019
2022
|
{ type: PsToolkitUiConfigService }
|
|
2020
|
-
]; };
|
|
2023
|
+
]; };
|
|
2024
|
+
HeaderComponent.propDecorators = {
|
|
2025
|
+
logout: [{ type: core.Output }]
|
|
2026
|
+
};
|
|
2021
2027
|
|
|
2022
2028
|
var ModalComponent = /** @class */ (function () {
|
|
2023
2029
|
function ModalComponent() {
|
|
@@ -5956,11 +5962,11 @@
|
|
|
5956
5962
|
function NotfoundComponent(config) {
|
|
5957
5963
|
this.config = config;
|
|
5958
5964
|
var lang = new LangClass(config.currentLang, config.strings);
|
|
5959
|
-
|
|
5965
|
+
this.l = function (key, v) {
|
|
5960
5966
|
if (v === void 0) { v = null; }
|
|
5961
5967
|
return lang.get('Public', 'Notfound', key, v);
|
|
5962
5968
|
};
|
|
5963
|
-
this.back = new InputClass(config.environment, l, 'Back', 'fad fa-arrow-right', exports.InputType.Button, '');
|
|
5969
|
+
this.back = new InputClass(config.environment, this.l, 'Back', 'fad fa-arrow-right', exports.InputType.Button, '');
|
|
5964
5970
|
this.back.onClick = function () {
|
|
5965
5971
|
window.history.back();
|
|
5966
5972
|
};
|
|
@@ -6691,6 +6697,8 @@
|
|
|
6691
6697
|
sendCodeForm.subName = 'SendCodeSubTitle';
|
|
6692
6698
|
this.mobile = new InputClass(this.config.environment, this.l, 'Mobile', 'fad fa-mobile-alt', exports.InputType.Mobile, 'm-b-10 h-45', '', true, 4, 50);
|
|
6693
6699
|
sendCodeForm.onSuccess = function () {
|
|
6700
|
+
console.log(_this.l('LoginSmsSubTitle', _this.mobile.data()));
|
|
6701
|
+
console.log(_this.login.steps);
|
|
6694
6702
|
loginForm_1.subName = _this.l('LoginSmsSubTitle', _this.mobile.data());
|
|
6695
6703
|
_this.mobile.type = exports.InputType.Hidden;
|
|
6696
6704
|
code_1.progress.start();
|
|
@@ -6754,10 +6762,12 @@
|
|
|
6754
6762
|
};
|
|
6755
6763
|
var loginStep = new LoginStepClass(loginForm_1);
|
|
6756
6764
|
loginStep.show = function () {
|
|
6765
|
+
console.log('loginStep.show');
|
|
6757
6766
|
_this.login.active = 0;
|
|
6758
6767
|
};
|
|
6759
6768
|
var sendCodeStep = new LoginStepClass(sendCodeForm);
|
|
6760
6769
|
sendCodeStep.show = function () {
|
|
6770
|
+
console.log('sendCodeStep.show');
|
|
6761
6771
|
_this.login.active = 1;
|
|
6762
6772
|
};
|
|
6763
6773
|
this.login.steps.unshift(loginStep);
|
|
@@ -6852,6 +6862,7 @@
|
|
|
6852
6862
|
var LayoutComponent = /** @class */ (function () {
|
|
6853
6863
|
function LayoutComponent() {
|
|
6854
6864
|
this.permissions = [];
|
|
6865
|
+
this.logout = new core.EventEmitter();
|
|
6855
6866
|
}
|
|
6856
6867
|
LayoutComponent.prototype.toggleSidebar = function () {
|
|
6857
6868
|
$__namespace('#Layout .panel').toggleClass('open-sidebar').toggleClass('close-sidebar');
|
|
@@ -6861,14 +6872,15 @@
|
|
|
6861
6872
|
LayoutComponent.decorators = [
|
|
6862
6873
|
{ type: core.Component, args: [{
|
|
6863
6874
|
selector: 'lib-layout',
|
|
6864
|
-
template: "<div id=\"Layout\">\r\n <div class=\"layout-con\">\r\n <div class=\"panel open-sidebar\">\r\n <div class=\"sidebar-shadow\" (click)=\"toggleSidebar()\"></div>\r\n <div class=\"sidebar\">\r\n <div class=\"sidebar-scroll\" style=\"overflow-y: auto\">\r\n <lib-sidebar [permissions]=\"permissions\" (toggleSidebar)=\"toggleSidebar()\" [area]=\"area\"></lib-sidebar>\r\n </div>\r\n </div>\r\n <div class=\"content\">\r\n <lib-header></lib-header>\r\n <div class=\"content-scroll-con\" style=\"overflow-y: auto\">\r\n <div class=\"content-scroll\">\r\n <router-outlet></router-outlet>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
6875
|
+
template: "<div id=\"Layout\">\r\n <div class=\"layout-con\">\r\n <div class=\"panel open-sidebar\">\r\n <div class=\"sidebar-shadow\" (click)=\"toggleSidebar()\"></div>\r\n <div class=\"sidebar\">\r\n <div class=\"sidebar-scroll\" style=\"overflow-y: auto\">\r\n <lib-sidebar [permissions]=\"permissions\" (toggleSidebar)=\"toggleSidebar()\" [area]=\"area\"></lib-sidebar>\r\n </div>\r\n </div>\r\n <div class=\"content\">\r\n <lib-header (logout)=\"logout.emit()\"></lib-header>\r\n <div class=\"content-scroll-con\" style=\"overflow-y: auto\">\r\n <div class=\"content-scroll\">\r\n <router-outlet></router-outlet>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
6865
6876
|
styles: ["#Layout,#Layout .layout-con,#Layout .panel{float:right;width:100%}#Layout .panel{position:relative}#Layout .panel .sidebar{background-color:var(--base);height:calc(100vh - 35px);min-height:calc(100vh - 35px);transition:width .3s;width:78px}#Layout .panel .sidebar,#Layout .panel .sidebar-shadow{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;direction:ltr;float:right;overflow:hidden;position:absolute;z-index:9}#Layout .panel .sidebar-shadow{background-color:var(--black);height:calc(100vh - 85px);left:0;min-height:calc(100vh - 85px);opacity:0;transition:all .3s;visibility:hidden;width:100%}#Layout .panel.open-sidebar .sidebar{width:260px}#Layout .panel .sidebar .sidebar-scroll{height:100%;width:100%}#Layout .panel .content{background-color:var(--base-11);direction:rtl;float:left;overflow:hidden;position:relative;transition:width .3s;width:calc(100% - 78px)}#Layout .panel.open-sidebar .content{width:calc(100% - 260px)}#Layout .panel .content .content-scroll-con{height:calc(100vh - 85px);min-height:calc(100vh - 85px);width:100%}#Layout .panel .content .content-scroll-con .content-scroll{float:right;padding:20px;width:100%}@media (max-width:399.98px){#Layout .panel .sidebar{height:calc(100vh - 110px);min-height:calc(100vh - 110px);right:0;width:200px}#Layout .panel.open-sidebar .sidebar{right:-200px}#Layout .panel.open-sidebar .content{width:100%}#Layout .panel .content{width:100%}#Layout .panel .content,#Layout .panel .sidebar-shadow{height:calc(100vh - 110px);min-height:calc(100vh - 110px)}#Layout .panel .sidebar-shadow{opacity:.7;visibility:visible;width:calc(100% - 200px)}#Layout .panel.open-sidebar .sidebar-shadow{opacity:0;visibility:hidden;width:100%}}@media (min-width:400px) and (max-width:499.98px){#Layout .panel .sidebar{height:calc(100vh - 110px);min-height:calc(100vh - 110px);right:0;width:200px}#Layout .panel.open-sidebar .sidebar{right:-200px}#Layout .panel.open-sidebar .content{width:100%}#Layout .panel .content{width:100%}#Layout .panel .content,#Layout .panel .sidebar-shadow{height:calc(100vh - 110px);min-height:calc(100vh - 110px)}#Layout .panel .sidebar-shadow{opacity:.7;visibility:visible;width:calc(100% - 200px)}#Layout .panel.open-sidebar .sidebar-shadow{opacity:0;visibility:hidden;width:100%}}@media (min-width:500px) and (max-width:599.98px){#Layout .panel .sidebar{height:calc(100vh - 110px);min-height:calc(100vh - 110px);right:0;width:200px}#Layout .panel.open-sidebar .sidebar{right:-200px}#Layout .panel.open-sidebar .content{width:100%}#Layout .panel .content{width:100%}#Layout .panel .content,#Layout .panel .sidebar-shadow{height:calc(100vh - 110px);min-height:calc(100vh - 110px)}#Layout .panel .sidebar-shadow{opacity:.7;visibility:visible;width:calc(100% - 200px)}#Layout .panel.open-sidebar .sidebar-shadow{opacity:0;visibility:hidden;width:100%}}@media (min-width:600px) and (max-width:699.98px){#Layout .panel .sidebar{right:0;width:200px}#Layout .panel.open-sidebar .sidebar{right:-200px}#Layout .panel .content,#Layout .panel.open-sidebar .content{width:100%}#Layout .panel .sidebar-shadow{opacity:.7;visibility:visible;width:calc(100% - 200px)}#Layout .panel.open-sidebar .sidebar-shadow{opacity:0;visibility:hidden;width:100%}}@media (min-width:700px) and (max-width:799.98px){#Layout .panel .sidebar{right:0;width:200px}#Layout .panel.open-sidebar .sidebar{right:-200px}#Layout .panel .content,#Layout .panel.open-sidebar .content{width:100%}#Layout .panel .sidebar-shadow{opacity:.7;visibility:visible;width:calc(100% - 200px)}#Layout .panel.open-sidebar .sidebar-shadow{opacity:0;visibility:hidden;width:100%}}@media (min-width:800px) and (max-width:899.98px){#Layout .panel .sidebar{right:-200px;width:200px}#Layout .panel .content{width:100%}#Layout .panel.open-sidebar .sidebar{right:0}#Layout .panel.open-sidebar .content{width:calc(100% - 200px)}}@media (min-width:900px) and (max-width:999.98px){#Layout .panel .sidebar{right:-200px;width:200px}#Layout .panel .content{width:100%}#Layout .panel.open-sidebar .sidebar{right:0}#Layout .panel.open-sidebar .content{width:calc(100% - 200px)}}@media (min-width:1000px) and (max-width:1099.98px){#Layout .panel .sidebar{right:-200px;width:200px}#Layout .panel .content{width:100%}#Layout .panel.open-sidebar .sidebar{right:0}#Layout .panel.open-sidebar .content{width:calc(100% - 200px)}}@media (min-width:1100px) and (max-width:1199.98px){#Layout .panel .sidebar{right:-200px;width:200px}#Layout .panel .content{width:100%}#Layout .panel.open-sidebar .sidebar{right:0}#Layout .panel.open-sidebar .content{width:calc(100% - 200px)}}"]
|
|
6866
6877
|
},] }
|
|
6867
6878
|
];
|
|
6868
6879
|
LayoutComponent.ctorParameters = function () { return []; };
|
|
6869
6880
|
LayoutComponent.propDecorators = {
|
|
6870
6881
|
permissions: [{ type: core.Input }],
|
|
6871
|
-
area: [{ type: core.Input }]
|
|
6882
|
+
area: [{ type: core.Input }],
|
|
6883
|
+
logout: [{ type: core.Output }]
|
|
6872
6884
|
};
|
|
6873
6885
|
|
|
6874
6886
|
var PsToolkitUiModule = /** @class */ (function () {
|