ps-toolkit-ui 0.0.210 → 0.0.211
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/karma.conf.js +32 -0
- package/ng-package.json +16 -0
- package/package.json +19 -22
- package/src/lib/classes/chart.class.ts +140 -0
- package/src/lib/classes/enum.class.ts +193 -0
- package/src/lib/classes/excel.class.ts +46 -0
- package/src/lib/classes/form.class.ts +528 -0
- package/src/lib/classes/helper.class.ts +283 -0
- package/src/lib/classes/lang.class.ts +32 -0
- package/src/lib/classes/login.class.ts +27 -0
- package/src/lib/classes/modal.class.ts +59 -0
- package/src/lib/classes/permission.class.ts +55 -0
- package/src/lib/classes/request.class.ts +255 -0
- package/src/lib/classes/safestyle.class.ts +4 -0
- package/src/lib/classes/sidebar.class.ts +20 -0
- package/src/lib/classes/steps.class.ts +19 -0
- package/src/lib/classes/string.class.ts +219 -0
- package/src/lib/classes/table.class.ts +228 -0
- package/src/lib/components/accordion/accordion.component.css +116 -0
- package/src/lib/components/accordion/accordion.component.html +19 -0
- package/src/lib/components/accordion/accordion.component.ts +41 -0
- package/src/lib/components/alert/alert.component.css +112 -0
- package/src/lib/components/alert/alert.component.html +1 -0
- package/src/lib/components/alert/alert.component.ts +35 -0
- package/src/lib/components/base.component.ts +38 -0
- package/src/lib/components/calendar/calendar.component.css +206 -0
- package/src/lib/components/calendar/calendar.component.html +36 -0
- package/src/lib/components/calendar/calendar.component.ts +99 -0
- package/src/lib/components/chart/chart.component.css +24 -0
- package/src/lib/components/chart/chart.component.html +6 -0
- package/src/lib/components/chart/chart.component.ts +14 -0
- package/src/lib/components/clock/clock.component.css +141 -0
- package/src/lib/components/clock/clock.component.html +10 -0
- package/src/lib/components/clock/clock.component.ts +37 -0
- package/src/lib/components/confirm/confirm.component.css +112 -0
- package/src/lib/components/confirm/confirm.component.html +1 -0
- package/src/lib/components/confirm/confirm.component.ts +47 -0
- package/src/lib/components/footer/footer.component.css +46 -0
- package/src/lib/components/footer/footer.component.html +9 -0
- package/src/lib/components/footer/footer.component.ts +18 -0
- package/src/lib/components/form/bank-card/form.bank-card.component.css +115 -0
- package/src/lib/components/form/bank-card/form.bank-card.component.html +13 -0
- package/src/lib/components/form/bank-card/form.bank-card.component.ts +144 -0
- package/src/lib/components/form/button/form.button.component.css +222 -0
- package/src/lib/components/form/button/form.button.component.html +16 -0
- package/src/lib/components/form/button/form.button.component.ts +65 -0
- package/src/lib/components/form/car/form.car.component.css +287 -0
- package/src/lib/components/form/car/form.car.component.html +11 -0
- package/src/lib/components/form/car/form.car.component.ts +82 -0
- package/src/lib/components/form/car/search/form.car.search.component.css +287 -0
- package/src/lib/components/form/car/search/form.car.search.component.html +15 -0
- package/src/lib/components/form/car/search/form.car.search.component.ts +170 -0
- package/src/lib/components/form/checkbox/form.checkbox.component.css +128 -0
- package/src/lib/components/form/checkbox/form.checkbox.component.html +8 -0
- package/src/lib/components/form/checkbox/form.checkbox.component.ts +64 -0
- package/src/lib/components/form/date/form.date.component.css +310 -0
- package/src/lib/components/form/date/form.date.component.html +46 -0
- package/src/lib/components/form/date/form.date.component.ts +247 -0
- package/src/lib/components/form/datetime/form.datetime.component.css +157 -0
- package/src/lib/components/form/datetime/form.datetime.component.html +11 -0
- package/src/lib/components/form/datetime/form.datetime.component.ts +98 -0
- package/src/lib/components/form/file/form.file.component.css +151 -0
- package/src/lib/components/form/file/form.file.component.html +12 -0
- package/src/lib/components/form/file/form.file.component.ts +130 -0
- package/src/lib/components/form/finger/form.finger.component.css +215 -0
- package/src/lib/components/form/finger/form.finger.component.html +59 -0
- package/src/lib/components/form/finger/form.finger.component.ts +131 -0
- package/src/lib/components/form/hidden/form.hidden.component.css +0 -0
- package/src/lib/components/form/hidden/form.hidden.component.html +0 -0
- package/src/lib/components/form/hidden/form.hidden.component.ts +29 -0
- package/src/lib/components/form/icon/form.icon.component.css +108 -0
- package/src/lib/components/form/icon/form.icon.component.html +14 -0
- package/src/lib/components/form/icon/form.icon.component.ts +73 -0
- package/src/lib/components/form/index/form.component.css +89 -0
- package/src/lib/components/form/index/form.component.html +35 -0
- package/src/lib/components/form/index/form.component.ts +45 -0
- package/src/lib/components/form/label/form.label.component.css +45 -0
- package/src/lib/components/form/label/form.label.component.html +2 -0
- package/src/lib/components/form/label/form.label.component.ts +30 -0
- package/src/lib/components/form/plaque/form.plaque.component.css +76 -0
- package/src/lib/components/form/plaque/form.plaque.component.html +10 -0
- package/src/lib/components/form/plaque/form.plaque.component.ts +178 -0
- package/src/lib/components/form/plaque/select/form.plaque.select.component.css +167 -0
- package/src/lib/components/form/plaque/select/form.plaque.select.component.html +19 -0
- package/src/lib/components/form/plaque/select/form.plaque.select.component.ts +385 -0
- package/src/lib/components/form/radio/form.radio.component.css +158 -0
- package/src/lib/components/form/radio/form.radio.component.html +16 -0
- package/src/lib/components/form/radio/form.radio.component.ts +78 -0
- package/src/lib/components/form/select/form.select.component.css +326 -0
- package/src/lib/components/form/select/form.select.component.html +16 -0
- package/src/lib/components/form/select/form.select.component.ts +358 -0
- package/src/lib/components/form/select/item/form.select.item.component.css +59 -0
- package/src/lib/components/form/select/item/form.select.item.component.html +10 -0
- package/src/lib/components/form/select/item/form.select.item.component.ts +40 -0
- package/src/lib/components/form/table/form.table.component.css +50 -0
- package/src/lib/components/form/table/form.table.component.html +8 -0
- package/src/lib/components/form/table/form.table.component.ts +94 -0
- package/src/lib/components/form/textarea/form.textarea.component.css +109 -0
- package/src/lib/components/form/textarea/form.textarea.component.html +10 -0
- package/src/lib/components/form/textarea/form.textarea.component.ts +76 -0
- package/src/lib/components/form/textbox/form.textbox.component.css +296 -0
- package/src/lib/components/form/textbox/form.textbox.component.html +13 -0
- package/src/lib/components/form/textbox/form.textbox.component.ts +185 -0
- package/src/lib/components/form/time/form.time.component.css +205 -0
- package/src/lib/components/form/time/form.time.component.html +22 -0
- package/src/lib/components/form/time/form.time.component.ts +139 -0
- package/src/lib/components/form/tree/form.tree.component.css +109 -0
- package/src/lib/components/form/tree/form.tree.component.html +11 -0
- package/src/lib/components/form/tree/form.tree.component.ts +98 -0
- package/src/lib/components/form/tree/item/form.tree.item.component.css +142 -0
- package/src/lib/components/form/tree/item/form.tree.item.component.html +9 -0
- package/src/lib/components/form/tree/item/form.tree.item.component.ts +49 -0
- package/src/lib/components/header/header.component.css +57 -0
- package/src/lib/components/header/header.component.html +5 -0
- package/src/lib/components/header/header.component.ts +28 -0
- package/src/lib/components/header/sub/sub.header.component.css +62 -0
- package/src/lib/components/header/sub/sub.header.component.html +8 -0
- package/src/lib/components/header/sub/sub.header.component.ts +11 -0
- package/src/lib/components/layout/layout.component.css +300 -0
- package/src/lib/components/layout/layout.component.html +20 -0
- package/src/lib/components/layout/layout.component.ts +21 -0
- package/src/lib/components/loading/loading.component.css +39 -0
- package/src/lib/components/loading/loading.component.html +8 -0
- package/src/lib/components/loading/loading.component.ts +18 -0
- package/src/lib/components/login/login.component.css +389 -0
- package/src/lib/components/login/login.component.html +27 -0
- package/src/lib/components/login/login.component.ts +145 -0
- package/src/lib/components/modal/modal.component.css +60 -0
- package/src/lib/components/modal/modal.component.html +12 -0
- package/src/lib/components/modal/modal.component.ts +23 -0
- package/src/lib/components/notfound/notfound.component.css +134 -0
- package/src/lib/components/notfound/notfound.component.html +10 -0
- package/src/lib/components/notfound/notfound.component.ts +25 -0
- package/src/lib/components/notification/notification.component.css +45 -0
- package/src/lib/components/notification/notification.component.html +2 -0
- package/src/lib/components/notification/notification.component.ts +11 -0
- package/src/lib/components/sidebar/item/sidebar.item.component.css +236 -0
- package/src/lib/components/sidebar/item/sidebar.item.component.html +16 -0
- package/src/lib/components/sidebar/item/sidebar.item.component.ts +54 -0
- package/src/lib/components/sidebar/sidebar.component.css +42 -0
- package/src/lib/components/sidebar/sidebar.component.html +10 -0
- package/src/lib/components/sidebar/sidebar.component.ts +60 -0
- package/src/lib/components/steps/steps.component.css +320 -0
- package/src/lib/components/steps/steps.component.html +18 -0
- package/src/lib/components/steps/steps.component.ts +44 -0
- package/src/lib/components/table/loading/table.loading.component.css +29 -0
- package/src/lib/components/table/loading/table.loading.component.html +9 -0
- package/src/lib/components/table/loading/table.loading.component.ts +14 -0
- package/src/lib/components/table/pagination/table.pagination.component.css +138 -0
- package/src/lib/components/table/pagination/table.pagination.component.html +9 -0
- package/src/lib/components/table/pagination/table.pagination.component.ts +89 -0
- package/src/lib/components/table/report/table.report.component.css +125 -0
- package/src/lib/components/table/report/table.report.component.html +19 -0
- package/src/lib/components/table/report/table.report.component.ts +238 -0
- package/src/lib/components/table/row/table.row.component.css +170 -0
- package/src/lib/components/table/row/table.row.component.html +21 -0
- package/src/lib/components/table/row/table.row.component.ts +373 -0
- package/src/lib/components/table/table.component.css +116 -0
- package/src/lib/components/table/table.component.html +62 -0
- package/src/lib/components/table/table.component.ts +180 -0
- package/src/lib/components/tooltip/tooltip.component.css +159 -0
- package/src/lib/components/tooltip/tooltip.component.html +1 -0
- package/src/lib/components/tooltip/tooltip.component.ts +15 -0
- package/src/lib/ps-toolkit-ui.module.ts +94 -0
- package/src/lib/services/config.service.ts +8 -0
- package/{public-api.d.ts → src/public-api.ts} +53 -48
- package/src/test.ts +26 -0
- package/tsconfig.lib.json +25 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/tslint.json +17 -0
- package/bundles/ps-toolkit-ui.umd.js +0 -7646
- package/bundles/ps-toolkit-ui.umd.js.map +0 -1
- package/bundles/ps-toolkit-ui.umd.min.js +0 -2
- package/bundles/ps-toolkit-ui.umd.min.js.map +0 -1
- package/esm2015/lib/classes/chart.class.js +0 -140
- package/esm2015/lib/classes/enum.class.js +0 -187
- package/esm2015/lib/classes/form.class.js +0 -481
- package/esm2015/lib/classes/helper.class.js +0 -284
- package/esm2015/lib/classes/lang.class.js +0 -32
- package/esm2015/lib/classes/login.class.js +0 -22
- package/esm2015/lib/classes/modal.class.js +0 -52
- package/esm2015/lib/classes/permission.class.js +0 -61
- package/esm2015/lib/classes/request.class.js +0 -256
- package/esm2015/lib/classes/safestyle.class.js +0 -15
- package/esm2015/lib/classes/sidebar.class.js +0 -14
- package/esm2015/lib/classes/steps.class.js +0 -20
- package/esm2015/lib/classes/string.class.js +0 -220
- package/esm2015/lib/classes/table.class.js +0 -215
- package/esm2015/lib/components/accordion/accordion.component.js +0 -45
- package/esm2015/lib/components/alert/alert.component.js +0 -39
- package/esm2015/lib/components/base.component.js +0 -45
- package/esm2015/lib/components/calendar/calendar.component.js +0 -97
- package/esm2015/lib/components/chart/chart.component.js +0 -17
- package/esm2015/lib/components/clock/clock.component.js +0 -33
- package/esm2015/lib/components/confirm/confirm.component.js +0 -50
- package/esm2015/lib/components/footer/footer.component.js +0 -23
- package/esm2015/lib/components/form/bank-card/form.bank-card.component.js +0 -148
- package/esm2015/lib/components/form/button/form.button.component.js +0 -68
- package/esm2015/lib/components/form/car/form.car.component.js +0 -84
- package/esm2015/lib/components/form/car/search/form.car.search.component.js +0 -172
- package/esm2015/lib/components/form/checkbox/form.checkbox.component.js +0 -66
- package/esm2015/lib/components/form/date/form.date.component.js +0 -254
- package/esm2015/lib/components/form/datetime/form.datetime.component.js +0 -104
- package/esm2015/lib/components/form/file/form.file.component.js +0 -133
- package/esm2015/lib/components/form/finger/form.finger.component.js +0 -138
- package/esm2015/lib/components/form/hidden/form.hidden.component.js +0 -31
- package/esm2015/lib/components/form/icon/form.icon.component.js +0 -76
- package/esm2015/lib/components/form/index/form.component.js +0 -48
- package/esm2015/lib/components/form/label/form.label.component.js +0 -32
- package/esm2015/lib/components/form/plaque/form.plaque.component.js +0 -176
- package/esm2015/lib/components/form/plaque/select/form.plaque.select.component.js +0 -390
- package/esm2015/lib/components/form/radio/form.radio.component.js +0 -79
- package/esm2015/lib/components/form/select/form.select.component.js +0 -374
- package/esm2015/lib/components/form/select/item/form.select.item.component.js +0 -43
- package/esm2015/lib/components/form/table/form.table.component.js +0 -98
- package/esm2015/lib/components/form/textarea/form.textarea.component.js +0 -78
- package/esm2015/lib/components/form/textbox/form.textbox.component.js +0 -186
- package/esm2015/lib/components/form/time/form.time.component.js +0 -145
- package/esm2015/lib/components/form/tree/form.tree.component.js +0 -99
- package/esm2015/lib/components/form/tree/item/form.tree.item.component.js +0 -48
- package/esm2015/lib/components/header/header.component.js +0 -33
- package/esm2015/lib/components/header/sub/sub.header.component.js +0 -14
- package/esm2015/lib/components/layout/layout.component.js +0 -25
- package/esm2015/lib/components/loading/loading.component.js +0 -22
- package/esm2015/lib/components/login/login.component.js +0 -148
- package/esm2015/lib/components/modal/modal.component.js +0 -25
- package/esm2015/lib/components/notfound/notfound.component.js +0 -29
- package/esm2015/lib/components/notification/notification.component.js +0 -14
- package/esm2015/lib/components/sidebar/item/sidebar.item.component.js +0 -53
- package/esm2015/lib/components/sidebar/sidebar.component.js +0 -67
- package/esm2015/lib/components/steps/steps.component.js +0 -51
- package/esm2015/lib/components/table/loading/table.loading.component.js +0 -17
- package/esm2015/lib/components/table/pagination/table.pagination.component.js +0 -84
- package/esm2015/lib/components/table/report/table.report.component.js +0 -246
- package/esm2015/lib/components/table/row/table.row.component.js +0 -379
- package/esm2015/lib/components/table/table.component.js +0 -179
- package/esm2015/lib/components/tooltip/tooltip.component.js +0 -19
- package/esm2015/lib/ps-toolkit-ui.module.js +0 -95
- package/esm2015/lib/services/config.service.js +0 -14
- package/esm2015/ps-toolkit-ui.js +0 -20
- package/esm2015/public-api.js +0 -52
- package/fesm2015/ps-toolkit-ui.js +0 -6566
- package/fesm2015/ps-toolkit-ui.js.map +0 -1
- package/lib/classes/chart.class.d.ts +0 -11
- package/lib/classes/enum.class.d.ts +0 -158
- package/lib/classes/form.class.d.ts +0 -173
- package/lib/classes/helper.class.d.ts +0 -28
- package/lib/classes/lang.class.d.ts +0 -5
- package/lib/classes/login.class.d.ts +0 -17
- package/lib/classes/modal.class.d.ts +0 -19
- package/lib/classes/permission.class.d.ts +0 -31
- package/lib/classes/request.class.d.ts +0 -12
- package/lib/classes/safestyle.class.d.ts +0 -7
- package/lib/classes/sidebar.class.d.ts +0 -11
- package/lib/classes/steps.class.d.ts +0 -17
- package/lib/classes/string.class.d.ts +0 -218
- package/lib/classes/table.class.d.ts +0 -69
- package/lib/components/accordion/accordion.component.d.ts +0 -7
- package/lib/components/alert/alert.component.d.ts +0 -10
- package/lib/components/base.component.d.ts +0 -14
- package/lib/components/calendar/calendar.component.d.ts +0 -26
- package/lib/components/chart/chart.component.d.ts +0 -5
- package/lib/components/clock/clock.component.d.ts +0 -11
- package/lib/components/confirm/confirm.component.d.ts +0 -14
- package/lib/components/footer/footer.component.d.ts +0 -6
- package/lib/components/form/bank-card/form.bank-card.component.d.ts +0 -22
- package/lib/components/form/button/form.button.component.d.ts +0 -15
- package/lib/components/form/car/form.car.component.d.ts +0 -16
- package/lib/components/form/car/search/form.car.search.component.d.ts +0 -17
- package/lib/components/form/checkbox/form.checkbox.component.d.ts +0 -14
- package/lib/components/form/date/form.date.component.d.ts +0 -42
- package/lib/components/form/datetime/form.datetime.component.d.ts +0 -13
- package/lib/components/form/file/form.file.component.d.ts +0 -17
- package/lib/components/form/finger/form.finger.component.d.ts +0 -15
- package/lib/components/form/hidden/form.hidden.component.d.ts +0 -7
- package/lib/components/form/icon/form.icon.component.d.ts +0 -15
- package/lib/components/form/index/form.component.d.ts +0 -10
- package/lib/components/form/label/form.label.component.d.ts +0 -8
- package/lib/components/form/plaque/form.plaque.component.d.ts +0 -22
- package/lib/components/form/plaque/select/form.plaque.select.component.d.ts +0 -36
- package/lib/components/form/radio/form.radio.component.d.ts +0 -13
- package/lib/components/form/select/form.select.component.d.ts +0 -39
- package/lib/components/form/select/item/form.select.item.component.d.ts +0 -12
- package/lib/components/form/table/form.table.component.d.ts +0 -9
- package/lib/components/form/textarea/form.textarea.component.d.ts +0 -13
- package/lib/components/form/textbox/form.textbox.component.d.ts +0 -20
- package/lib/components/form/time/form.time.component.d.ts +0 -25
- package/lib/components/form/tree/form.tree.component.d.ts +0 -16
- package/lib/components/form/tree/item/form.tree.item.component.d.ts +0 -17
- package/lib/components/header/header.component.d.ts +0 -9
- package/lib/components/header/sub/sub.header.component.d.ts +0 -3
- package/lib/components/layout/layout.component.d.ts +0 -8
- package/lib/components/loading/loading.component.d.ts +0 -5
- package/lib/components/login/login.component.d.ts +0 -13
- package/lib/components/modal/modal.component.d.ts +0 -9
- package/lib/components/notfound/notfound.component.d.ts +0 -8
- package/lib/components/notification/notification.component.d.ts +0 -3
- package/lib/components/sidebar/item/sidebar.item.component.d.ts +0 -14
- package/lib/components/sidebar/sidebar.component.d.ts +0 -19
- package/lib/components/steps/steps.component.d.ts +0 -10
- package/lib/components/table/loading/table.loading.component.d.ts +0 -5
- package/lib/components/table/pagination/table.pagination.component.d.ts +0 -15
- package/lib/components/table/report/table.report.component.d.ts +0 -34
- package/lib/components/table/row/table.row.component.d.ts +0 -34
- package/lib/components/table/table.component.d.ts +0 -40
- package/lib/components/tooltip/tooltip.component.d.ts +0 -5
- package/lib/ps-toolkit-ui.module.d.ts +0 -4
- package/lib/services/config.service.d.ts +0 -6
- package/ps-toolkit-ui.d.ts +0 -19
- package/ps-toolkit-ui.metadata.json +0 -1
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
#Login {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
float: right;
|
|
5
|
+
border-radius: 5px;
|
|
6
|
+
display: table;
|
|
7
|
+
background-color: white;
|
|
8
|
+
height: 100vh;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
#Login .form-c {
|
|
12
|
+
display: table-cell;
|
|
13
|
+
width: 50%;
|
|
14
|
+
vertical-align: middle;
|
|
15
|
+
position: relative;
|
|
16
|
+
z-index: 2;
|
|
17
|
+
box-shadow: 19px 0 35px -7px rgba(0,0,0,.05);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
#Login .about-c {
|
|
21
|
+
display: table-cell;
|
|
22
|
+
width: 50%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
vertical-align: middle;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
#Login .form {
|
|
28
|
+
width: 70%;
|
|
29
|
+
margin: 0 auto;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
#Login .about {
|
|
33
|
+
width: 100%;
|
|
34
|
+
position: relative;
|
|
35
|
+
float: right;
|
|
36
|
+
border-radius: 0 5px 5px 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
#Login .about .info {
|
|
40
|
+
width: 100%;
|
|
41
|
+
position: relative;
|
|
42
|
+
float: right;
|
|
43
|
+
z-index: 2;
|
|
44
|
+
border-radius: 0 5px 5px 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
#Login .triangles {
|
|
48
|
+
position: absolute;
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
z-index: 1;
|
|
53
|
+
border-radius: 0 5px 5px 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
#Login .triangles .triangle {
|
|
57
|
+
position: absolute;
|
|
58
|
+
color: var(--base);
|
|
59
|
+
opacity: 0.2;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
#Login .triangles .triangle-1 {
|
|
63
|
+
font-size: 656px;
|
|
64
|
+
top: -10px;
|
|
65
|
+
right: -50px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
#Login .triangles .triangle-2 {
|
|
69
|
+
font-size: 1000px;
|
|
70
|
+
top: 80px;
|
|
71
|
+
right: -60px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
#Login .triangles .triangle-3 {
|
|
75
|
+
font-size: 900px;
|
|
76
|
+
top: -347px;
|
|
77
|
+
right: -46px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
#Login .about .logo {
|
|
81
|
+
height: 200px;
|
|
82
|
+
width: 200px;
|
|
83
|
+
background-position: center center;
|
|
84
|
+
background-repeat: no-repeat;
|
|
85
|
+
background-size: cover;
|
|
86
|
+
margin: 0 auto;
|
|
87
|
+
position: relative;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
#Login .about .title {
|
|
91
|
+
width: 100%;
|
|
92
|
+
float: right;
|
|
93
|
+
text-align: center;
|
|
94
|
+
font-size: 25px;
|
|
95
|
+
height: 40px;
|
|
96
|
+
line-height: 40px;
|
|
97
|
+
font-family: VazirBold;
|
|
98
|
+
position: relative;
|
|
99
|
+
margin-top: 20px;
|
|
100
|
+
font-weight: bolder;
|
|
101
|
+
}
|
|
102
|
+
#Login .about .sub-title {
|
|
103
|
+
float: right;
|
|
104
|
+
text-align: center;
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
line-height: 30px;
|
|
107
|
+
position: relative;
|
|
108
|
+
padding: 20px;
|
|
109
|
+
width: 80%;
|
|
110
|
+
margin-right: 10%;
|
|
111
|
+
font-family: VazirLight;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
#Login .form .title {
|
|
115
|
+
width: 100%;
|
|
116
|
+
margin-top: 30px;
|
|
117
|
+
float: right;
|
|
118
|
+
text-align: center;
|
|
119
|
+
font-size: 25px;
|
|
120
|
+
height: 50px;
|
|
121
|
+
line-height: 50px;
|
|
122
|
+
font-family: VazirBold;
|
|
123
|
+
margin-bottom: 10px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
#Login .form .sub-title {
|
|
127
|
+
width: 100%;
|
|
128
|
+
float: right;
|
|
129
|
+
color: var(--black-88);
|
|
130
|
+
text-align: center;
|
|
131
|
+
font-size: 12px;
|
|
132
|
+
height: 30px;
|
|
133
|
+
line-height: 30px;
|
|
134
|
+
font-family: VazirLight;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
#Login .form .title i {
|
|
138
|
+
font-size: 30px;
|
|
139
|
+
color: var(--base);
|
|
140
|
+
margin-left: 5px;
|
|
141
|
+
position: relative;
|
|
142
|
+
top: 7px;
|
|
143
|
+
left: 5px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
::ng-deep #Login .form .title{
|
|
147
|
+
width: 100%;
|
|
148
|
+
margin-top: 30px;
|
|
149
|
+
float: right;
|
|
150
|
+
text-align: center;
|
|
151
|
+
font-size: 25px;
|
|
152
|
+
height: 50px;
|
|
153
|
+
line-height: 50px;
|
|
154
|
+
font-family: VazirBold;
|
|
155
|
+
margin-bottom: 10px;
|
|
156
|
+
}
|
|
157
|
+
::ng-deep #Login .form .sub-title{
|
|
158
|
+
margin-bottom: 20px;
|
|
159
|
+
text-align: center;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
::ng-deep #Login .form .sub-title:after{
|
|
163
|
+
background-image: none !important;
|
|
164
|
+
}
|
|
165
|
+
@media (max-width: 399.98px) {
|
|
166
|
+
#Login {
|
|
167
|
+
padding: 20px 0;
|
|
168
|
+
}
|
|
169
|
+
#Login {
|
|
170
|
+
display: unset;
|
|
171
|
+
width: 90%;
|
|
172
|
+
margin-right: 5%;
|
|
173
|
+
}
|
|
174
|
+
#Login .form-c{
|
|
175
|
+
display: unset;
|
|
176
|
+
width: 100%;
|
|
177
|
+
}
|
|
178
|
+
#Login .about-c{
|
|
179
|
+
display: unset;
|
|
180
|
+
width: 100%;
|
|
181
|
+
float: right;
|
|
182
|
+
height: 80px;
|
|
183
|
+
}
|
|
184
|
+
#Login .about, #Login .triangles, #Login .about .info{
|
|
185
|
+
border-radius: 5px 5px 0 0;
|
|
186
|
+
}
|
|
187
|
+
#Login .form{
|
|
188
|
+
width: 90%;
|
|
189
|
+
}
|
|
190
|
+
#Login .about .info{
|
|
191
|
+
padding: 10px 5px 5px 5px;
|
|
192
|
+
}
|
|
193
|
+
#Login .about .logo{
|
|
194
|
+
display: inline-block;
|
|
195
|
+
float: right;
|
|
196
|
+
margin: unset;
|
|
197
|
+
margin-right: 10%;
|
|
198
|
+
width: 80px;
|
|
199
|
+
height: 80px;
|
|
200
|
+
}
|
|
201
|
+
#Login .about .title{
|
|
202
|
+
display: inline-block;
|
|
203
|
+
width: calc(80% - 80px);
|
|
204
|
+
line-height: 80px;
|
|
205
|
+
height: 80px;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@media (min-width: 400px) and (max-width: 499.98px) {
|
|
210
|
+
#Login {
|
|
211
|
+
padding: 50px 0;
|
|
212
|
+
}
|
|
213
|
+
#Login {
|
|
214
|
+
display: unset;
|
|
215
|
+
width: 80%;
|
|
216
|
+
margin-right: 10%;
|
|
217
|
+
}
|
|
218
|
+
#Login .form-c{
|
|
219
|
+
display: unset;
|
|
220
|
+
width: 100%;
|
|
221
|
+
float: right;
|
|
222
|
+
}
|
|
223
|
+
#Login .about-c{
|
|
224
|
+
display: unset;
|
|
225
|
+
width: 100%;
|
|
226
|
+
float: right;
|
|
227
|
+
height: 100px;
|
|
228
|
+
}
|
|
229
|
+
#Login .about, #Login .triangles, #Login .about .info{
|
|
230
|
+
border-radius: 5px 5px 0 0;
|
|
231
|
+
}
|
|
232
|
+
#Login .form{
|
|
233
|
+
width: 80%;
|
|
234
|
+
float: right;
|
|
235
|
+
margin-right: 10%;
|
|
236
|
+
}
|
|
237
|
+
#Login .about .info{
|
|
238
|
+
padding: 10px;
|
|
239
|
+
}
|
|
240
|
+
#Login .about .logo{
|
|
241
|
+
display: inline-block;
|
|
242
|
+
float: right;
|
|
243
|
+
margin: unset;
|
|
244
|
+
margin-right: 10%;
|
|
245
|
+
width: 100px;
|
|
246
|
+
height: 100px;
|
|
247
|
+
}
|
|
248
|
+
#Login .about .title{
|
|
249
|
+
display: inline-block;
|
|
250
|
+
width: calc(80% - 100px);
|
|
251
|
+
line-height: 100px;
|
|
252
|
+
height: 100px;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
@media (min-width: 500px) and (max-width: 599.98px) {
|
|
257
|
+
#Login {
|
|
258
|
+
padding: 50px 0;
|
|
259
|
+
}
|
|
260
|
+
#Login {
|
|
261
|
+
display: unset;
|
|
262
|
+
width: 80%;
|
|
263
|
+
margin-right: 10%;
|
|
264
|
+
}
|
|
265
|
+
#Login .form-c{
|
|
266
|
+
display: unset;
|
|
267
|
+
width: 100%;
|
|
268
|
+
float: right;
|
|
269
|
+
}
|
|
270
|
+
#Login .about-c{
|
|
271
|
+
display: unset;
|
|
272
|
+
width: 100%;
|
|
273
|
+
float: right;
|
|
274
|
+
height: 100px;
|
|
275
|
+
}
|
|
276
|
+
#Login .about, #Login .triangles, #Login .about .info{
|
|
277
|
+
border-radius: 5px 5px 0 0;
|
|
278
|
+
}
|
|
279
|
+
#Login .form{
|
|
280
|
+
width: 70%;
|
|
281
|
+
float: right;
|
|
282
|
+
margin-right: 15%;
|
|
283
|
+
}
|
|
284
|
+
#Login .about .info{
|
|
285
|
+
padding: 10px;
|
|
286
|
+
}
|
|
287
|
+
#Login .about .logo{
|
|
288
|
+
display: inline-block;
|
|
289
|
+
float: right;
|
|
290
|
+
margin: unset;
|
|
291
|
+
margin-right: 10%;
|
|
292
|
+
width: 100px;
|
|
293
|
+
height: 100px;
|
|
294
|
+
}
|
|
295
|
+
#Login .about .title{
|
|
296
|
+
display: inline-block;
|
|
297
|
+
width: calc(80% - 100px);
|
|
298
|
+
line-height: 100px;
|
|
299
|
+
height: 100px;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
@media (min-width: 600px) and (max-width: 699.98px) {
|
|
304
|
+
#Login {
|
|
305
|
+
padding: 50px 0;
|
|
306
|
+
}
|
|
307
|
+
#Login {
|
|
308
|
+
display: unset;
|
|
309
|
+
width: 80%;
|
|
310
|
+
margin-right: 10%;
|
|
311
|
+
}
|
|
312
|
+
#Login .form-c{
|
|
313
|
+
display: unset;
|
|
314
|
+
width: 100%;
|
|
315
|
+
float: right;
|
|
316
|
+
}
|
|
317
|
+
#Login .about-c{
|
|
318
|
+
display: unset;
|
|
319
|
+
width: 100%;
|
|
320
|
+
float: right;
|
|
321
|
+
height: 100px;
|
|
322
|
+
}
|
|
323
|
+
#Login .about, #Login .triangles, #Login .about .info{
|
|
324
|
+
border-radius: 5px 5px 0 0;
|
|
325
|
+
}
|
|
326
|
+
#Login .form{
|
|
327
|
+
width: 70%;
|
|
328
|
+
float: right;
|
|
329
|
+
margin-right: 15%;
|
|
330
|
+
}
|
|
331
|
+
#Login .about .info{
|
|
332
|
+
padding: 10px;
|
|
333
|
+
}
|
|
334
|
+
#Login .about .logo{
|
|
335
|
+
display: inline-block;
|
|
336
|
+
float: right;
|
|
337
|
+
margin: unset;
|
|
338
|
+
margin-right: 10%;
|
|
339
|
+
width: 100px;
|
|
340
|
+
height: 100px;
|
|
341
|
+
}
|
|
342
|
+
#Login .about .title{
|
|
343
|
+
display: inline-block;
|
|
344
|
+
width: calc(80% - 100px);
|
|
345
|
+
line-height: 100px;
|
|
346
|
+
height: 100px;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
@media (min-width: 700px) and (max-width: 799.98px) {
|
|
351
|
+
#Login {
|
|
352
|
+
padding: 50px 0;
|
|
353
|
+
}
|
|
354
|
+
#Login {
|
|
355
|
+
width: 90%;
|
|
356
|
+
margin-right: 5%;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
@media (min-width: 800px) and (max-width: 899.98px) {
|
|
361
|
+
#Login {
|
|
362
|
+
width: 80%;
|
|
363
|
+
margin-right: 10%;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
@media (min-width: 900px) and (max-width: 999.98px) {
|
|
368
|
+
#Login {
|
|
369
|
+
width: 80%;
|
|
370
|
+
margin-right: 10%;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
@media (min-width: 1000px) and (max-width: 1099.98px) {
|
|
375
|
+
#Login {
|
|
376
|
+
width: 70%;
|
|
377
|
+
margin-right: 15%;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
@media (min-width: 1100px) and (max-width: 1199.98px) {
|
|
382
|
+
#Login {
|
|
383
|
+
width: 70%;
|
|
384
|
+
margin-right: 15%;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
@media (min-width: 1200px) {
|
|
389
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<div id="Login">
|
|
2
|
+
<div class="triangles">
|
|
3
|
+
<i class="triangle triangle-1 fas fa-caret-left"></i>
|
|
4
|
+
<i class="triangle triangle-2 fas fa-caret-left"></i>
|
|
5
|
+
<i class="triangle triangle-3 fas fa-caret-left"></i>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="about-c">
|
|
8
|
+
<div class="about">
|
|
9
|
+
<div class="info">
|
|
10
|
+
<div class="logo"></div>
|
|
11
|
+
<div class="title">
|
|
12
|
+
{{ l('Base') }}
|
|
13
|
+
</div>
|
|
14
|
+
<div class="sub-title">
|
|
15
|
+
{{ l('BaseDesc') }}
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="form-c">
|
|
21
|
+
<ng-container *ngFor="let step of login.steps; let i = index">
|
|
22
|
+
<div class="form" *ngIf="i === login.active">
|
|
23
|
+
<lib-form [form]=step.form></lib-form>
|
|
24
|
+
</div>
|
|
25
|
+
</ng-container>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import {Component, Input, OnInit} from '@angular/core';
|
|
2
|
+
import {LangClass} from '../../classes/lang.class';
|
|
3
|
+
import {LoginClass, LoginStepClass} from '../../classes/login.class';
|
|
4
|
+
import {FormClass, InputClass, Progress} from '../../classes/form.class';
|
|
5
|
+
import {InputError, InputType, Method} from '../../classes/enum.class';
|
|
6
|
+
import {RequestClass} from '../../classes/request.class';
|
|
7
|
+
import {HelperClass} from '../../classes/helper.class';
|
|
8
|
+
import {PsToolkitUiConfigService} from '../../services/config.service';
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
selector: 'lib-login',
|
|
12
|
+
templateUrl: './login.component.html',
|
|
13
|
+
styleUrls: ['./login.component.css']
|
|
14
|
+
})
|
|
15
|
+
export class LoginComponent implements OnInit{
|
|
16
|
+
@Input()
|
|
17
|
+
login: LoginClass;
|
|
18
|
+
mobile: InputClass;
|
|
19
|
+
username: InputClass;
|
|
20
|
+
l: (k, v?) => string;
|
|
21
|
+
constructor(public config: PsToolkitUiConfigService){
|
|
22
|
+
const lang = new LangClass(config.currentLang, config.strings);
|
|
23
|
+
this.l = (key: string, v = null): string => {
|
|
24
|
+
return lang.get('Public', 'Login', key, v);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
ngOnInit(): void {
|
|
28
|
+
if (this.login.type === 'Sms'){
|
|
29
|
+
const sendCodeForm = new FormClass(this.config.environment, this.l, 'SendCode', true, this.login.sendCodeUrl, 'p-h-50');
|
|
30
|
+
const sendCode = new InputClass(this.config.environment, this.l, 'SendCode', 'fa-duotone fa-paper-plane', InputType.Submit);
|
|
31
|
+
sendCodeForm.subName = 'SendCodeSubTitle';
|
|
32
|
+
this.mobile = new InputClass(this.config.environment, this.l, 'Mobile',
|
|
33
|
+
'fa-duotone fa-mobile-alt', InputType.Mobile, 'm-b-10 h-45', '', true, 4, 50);
|
|
34
|
+
sendCodeForm.onSuccess = () => {
|
|
35
|
+
loginForm.subName = this.l('LoginSmsSubTitle', this.mobile.data());
|
|
36
|
+
this.mobile.type = InputType.Hidden;
|
|
37
|
+
code.progress.start();
|
|
38
|
+
this.login.steps[1].show();
|
|
39
|
+
setTimeout(() => {
|
|
40
|
+
code.focus();
|
|
41
|
+
}, 100);
|
|
42
|
+
};
|
|
43
|
+
sendCodeForm.inputs = [
|
|
44
|
+
this.mobile,
|
|
45
|
+
sendCode
|
|
46
|
+
];
|
|
47
|
+
sendCode.onClick = () => {
|
|
48
|
+
sendCodeForm.submit();
|
|
49
|
+
};
|
|
50
|
+
const loginForm = new FormClass(this.config.environment, this.l, 'LoginSms', true, this.login.loginUrl, 'p-h-50');
|
|
51
|
+
loginForm.subName = this.l('LoginSmsSubTitle', '');
|
|
52
|
+
loginForm.onSuccess = (result) => {
|
|
53
|
+
this.login.setCookie(result);
|
|
54
|
+
if (this.login.steps.length > 2 && result.CurrentUser === null){
|
|
55
|
+
this.login.steps[2].show(result.StepData);
|
|
56
|
+
} else {
|
|
57
|
+
this.login.onSuccess(result);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
loginForm.onFailed = (msg) => {
|
|
61
|
+
code.clear();
|
|
62
|
+
this.mobile.error = InputError.NotExist;
|
|
63
|
+
this.mobile.type = InputType.Mobile;
|
|
64
|
+
setTimeout(() => {
|
|
65
|
+
this.mobile.focus();
|
|
66
|
+
}, 100);
|
|
67
|
+
this.login.steps[0].show();
|
|
68
|
+
};
|
|
69
|
+
const code = new InputClass(this.config.environment, this.l, 'Code',
|
|
70
|
+
'fa-duotone fa-unlock-alt', InputType.Number, 'm-b-10 h-45', null, true, 1111, 9999);
|
|
71
|
+
const labelResend = new InputClass(this.config.environment, this.l, 'ReSendCodeDes',
|
|
72
|
+
null, InputType.Label, 'comp resend-code');
|
|
73
|
+
code.progress = new Progress(120);
|
|
74
|
+
code.progress.onStart = () => {
|
|
75
|
+
labelResend.value = null;
|
|
76
|
+
};
|
|
77
|
+
code.progress.onEnd = () => {
|
|
78
|
+
labelResend.value = 'ReSendCodeDes';
|
|
79
|
+
};
|
|
80
|
+
labelResend.onClick = () => {
|
|
81
|
+
labelResend.name = '(' + this.l('LoadingComp', 'Send') + ')';
|
|
82
|
+
new RequestClass(this.config.environment).send(this.login.reSendCodeUrl, Method.Post, loginForm.data(), null, () => {
|
|
83
|
+
labelResend.name = 'ReSendCodeDes';
|
|
84
|
+
code.progress.start();
|
|
85
|
+
}, (error) => {
|
|
86
|
+
HelperClass.addNotification(this.l(error));
|
|
87
|
+
labelResend.name = 'ReSendCodeDes';
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
const login = new InputClass(this.config.environment, this.l, 'LoginSms', 'fa-duotone fa-sign-in-alt', InputType.Submit);
|
|
91
|
+
loginForm.inputs = [
|
|
92
|
+
this.mobile,
|
|
93
|
+
code,
|
|
94
|
+
labelResend,
|
|
95
|
+
login
|
|
96
|
+
];
|
|
97
|
+
login.onClick = () => {
|
|
98
|
+
loginForm.submit();
|
|
99
|
+
};
|
|
100
|
+
const loginStep = new LoginStepClass(loginForm);
|
|
101
|
+
loginStep.show = () => {
|
|
102
|
+
this.login.active = 1;
|
|
103
|
+
};
|
|
104
|
+
const sendCodeStep = new LoginStepClass(sendCodeForm);
|
|
105
|
+
sendCodeStep.show = () => {
|
|
106
|
+
this.login.active = 0;
|
|
107
|
+
};
|
|
108
|
+
this.login.steps.unshift(loginStep);
|
|
109
|
+
this.login.steps.unshift(sendCodeStep);
|
|
110
|
+
setTimeout(() => {
|
|
111
|
+
this.mobile.focus();
|
|
112
|
+
}, 100);
|
|
113
|
+
} else if (this.login.type === 'Password'){
|
|
114
|
+
const loginForm = new FormClass(this.config.environment, this.l, 'LoginPassword', true, this.login.loginUrl, 'p-h-50');
|
|
115
|
+
loginForm.subName = 'LoginPasswordSubTitle';
|
|
116
|
+
const login = new InputClass(this.config.environment, this.l, 'LoginPassword', 'fa-duotone fa-sign-in-alt', InputType.Submit);
|
|
117
|
+
loginForm.onSuccess = (result) => {
|
|
118
|
+
this.login.setCookie(result);
|
|
119
|
+
if (this.login.steps.length > 1 && result.CurrentUser === null){
|
|
120
|
+
this.login.steps[1].show(result.StepData);
|
|
121
|
+
} else {
|
|
122
|
+
this.login.onSuccess(result);
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
this.username = new InputClass(this.config.environment, this.l, 'Username',
|
|
126
|
+
'fa-duotone fa-user', InputType.Text, 'm-b-10 h-45', '', true, 4, 50);
|
|
127
|
+
loginForm.inputs = [
|
|
128
|
+
this.username,
|
|
129
|
+
new InputClass(this.config.environment, this.l, 'Password', 'fa-duotone fa-key', InputType.Password, 'm-b-10 h-45', '', true, 5, 50),
|
|
130
|
+
login
|
|
131
|
+
];
|
|
132
|
+
login.onClick = () => {
|
|
133
|
+
loginForm.submit();
|
|
134
|
+
};
|
|
135
|
+
const loginStep = new LoginStepClass(loginForm);
|
|
136
|
+
loginStep.show = () => {
|
|
137
|
+
this.login.active = 0;
|
|
138
|
+
};
|
|
139
|
+
this.login.steps.unshift(loginStep);
|
|
140
|
+
setTimeout(() => {
|
|
141
|
+
this.username.focus();
|
|
142
|
+
}, 100);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
.modal{
|
|
2
|
+
display: none;
|
|
3
|
+
position: fixed;
|
|
4
|
+
overflow-y: auto;
|
|
5
|
+
top: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
background-color: var(--black-t-44);
|
|
10
|
+
z-index: 999;
|
|
11
|
+
}
|
|
12
|
+
.modal .content{
|
|
13
|
+
float: right;
|
|
14
|
+
width: 40%;
|
|
15
|
+
margin: 50px 30%;
|
|
16
|
+
background-color: white;
|
|
17
|
+
border-radius: 5px;
|
|
18
|
+
box-shadow: var(--box-shadow-modal);
|
|
19
|
+
z-index: 2;
|
|
20
|
+
position: relative;
|
|
21
|
+
}
|
|
22
|
+
.modal .content .header{
|
|
23
|
+
float: right;
|
|
24
|
+
width: 100%;
|
|
25
|
+
position: relative;
|
|
26
|
+
text-align: center;
|
|
27
|
+
}
|
|
28
|
+
.modal .content .header .title{
|
|
29
|
+
height: 40px;
|
|
30
|
+
width: 100%;
|
|
31
|
+
line-height: 40px;
|
|
32
|
+
float: left;
|
|
33
|
+
font-family: VazirBold;
|
|
34
|
+
font-size: 18px;
|
|
35
|
+
}
|
|
36
|
+
::ng-deep .modal .content > lib-form-button .form-input-con.button{
|
|
37
|
+
position: absolute;
|
|
38
|
+
left: -25px;
|
|
39
|
+
top: -10px;
|
|
40
|
+
z-index: 5;
|
|
41
|
+
}
|
|
42
|
+
.modal .content .body{
|
|
43
|
+
float: right;
|
|
44
|
+
width: 100%;
|
|
45
|
+
position: relative;
|
|
46
|
+
}
|
|
47
|
+
.modal .content .footer{
|
|
48
|
+
float: right;
|
|
49
|
+
width: 100%;
|
|
50
|
+
background-color: var(--base-22);
|
|
51
|
+
height: 50px;
|
|
52
|
+
}
|
|
53
|
+
.modal .content .footer:before{
|
|
54
|
+
content:"";
|
|
55
|
+
border: 0;
|
|
56
|
+
height: 1px;
|
|
57
|
+
width: 100%;
|
|
58
|
+
float: right;
|
|
59
|
+
background-image: linear-gradient(to right, rgba(51, 51, 51, 0), rgba(51, 51, 51, 0.25), rgba(51, 51, 51, 0));
|
|
60
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<div [id]="modal.id + 'Modal'" class="modal">
|
|
2
|
+
<div [className]="(modal.class ? modal.class : '') + ' content'">
|
|
3
|
+
<lib-form-button [inp]="close"></lib-form-button>
|
|
4
|
+
<div class="body">
|
|
5
|
+
<ng-content></ng-content>
|
|
6
|
+
<lib-form *ngIf="modal.form != null && modal.firstForm" [form]="modal.form"></lib-form>
|
|
7
|
+
<lib-table *ngIf="modal.table != null" [table]="modal.table"></lib-table>
|
|
8
|
+
<lib-form *ngIf="modal.form != null && !modal.firstForm" [form]="modal.form"></lib-form>
|
|
9
|
+
<lib-accordion *ngIf="modal.accordion != null" [accordion]="modal.accordion"></lib-accordion>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {Component, Input, OnInit} from '@angular/core';
|
|
2
|
+
import {ModalClass} from '../../classes/modal.class';
|
|
3
|
+
import {InputClass} from '../../classes/form.class';
|
|
4
|
+
import {InputType} from '../../classes/enum.class';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'lib-modal',
|
|
8
|
+
templateUrl: './modal.component.html',
|
|
9
|
+
styleUrls: ['./modal.component.css']
|
|
10
|
+
})
|
|
11
|
+
export class ModalComponent implements OnInit{
|
|
12
|
+
@Input()
|
|
13
|
+
modal: ModalClass;
|
|
14
|
+
close: InputClass;
|
|
15
|
+
constructor(){
|
|
16
|
+
}
|
|
17
|
+
ngOnInit(): void {
|
|
18
|
+
this.close = new InputClass(this.modal.environment, this.modal.l, null, 'fa-duotone fa-times', InputType.Icon, 'w-u h-30 red');
|
|
19
|
+
this.close.onClick = () => {
|
|
20
|
+
this.modal.hide();
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|