brainloper-ui 14.0.17 → 14.0.19
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/esm2020/brainloper-ui.mjs +5 -0
- package/esm2020/public_api.mjs +51 -0
- package/esm2020/src/app/modules/brainloper-ui/brainloper-ui.module.mjs +305 -0
- package/esm2020/src/app/modules/brainloper-ui/components/bread-crumb/bread-crumb.component.mjs +29 -0
- package/esm2020/src/app/modules/brainloper-ui/components/buttons/button-icon/button-icon.component.mjs +23 -0
- package/esm2020/src/app/modules/brainloper-ui/components/buttons/button-label/button-label.component.mjs +83 -0
- package/esm2020/src/app/modules/brainloper-ui/components/carousel/carousel.component.mjs +31 -0
- package/esm2020/src/app/modules/brainloper-ui/components/combos/combos.component.mjs +176 -0
- package/esm2020/src/app/modules/brainloper-ui/components/data-table/data-table.component.mjs +691 -0
- package/esm2020/src/app/modules/brainloper-ui/components/data-table/table-modal/table-modal.component.mjs +118 -0
- package/esm2020/src/app/modules/brainloper-ui/components/file-input/file-input.component.mjs +185 -0
- package/esm2020/src/app/modules/brainloper-ui/components/file-input/imagenes/doc.mjs +2 -0
- package/esm2020/src/app/modules/brainloper-ui/components/file-input/imagenes/fondoTransparente.mjs +2 -0
- package/esm2020/src/app/modules/brainloper-ui/components/file-input/imagenes/pdf.mjs +2 -0
- package/esm2020/src/app/modules/brainloper-ui/components/filters/filters.component.mjs +222 -0
- package/esm2020/src/app/modules/brainloper-ui/components/report/generate-pdf/generate-pdf.component.mjs +80 -0
- package/esm2020/src/app/modules/brainloper-ui/components/report/template-fuel/template-fuel.component.mjs +81 -0
- package/esm2020/src/app/modules/brainloper-ui/components/select-filter/select-filter.component.mjs +108 -0
- package/esm2020/src/app/modules/interfaces/buttons/button-icon.mjs +2 -0
- package/esm2020/src/app/modules/interfaces/buttons/button-lavel-edit.mjs +2 -0
- package/esm2020/src/app/modules/interfaces/combos/combos-configuration.mjs +2 -0
- package/esm2020/src/app/modules/interfaces/data-table/params.mjs +2 -0
- package/esm2020/src/app/modules/interfaces/data-table/rules.mjs +2 -0
- package/esm2020/src/app/modules/interfaces/data-table/table-columns.mjs +2 -0
- package/esm2020/src/app/modules/interfaces/data-table/table-configuration.mjs +2 -0
- package/esm2020/src/app/modules/interfaces/enum/enumActions.mjs +7 -0
- package/esm2020/src/app/modules/interfaces/enum/enumRules.mjs +8 -0
- package/esm2020/src/app/modules/interfaces/file-forms-service/file-forms-params.mjs +2 -0
- package/esm2020/src/app/modules/interfaces/file-forms-service/file-input-params.mjs +2 -0
- package/esm2020/src/app/modules/interfaces/filters/header-filters.mjs +2 -0
- package/esm2020/src/app/modules/interfaces/menu-break-crumb/menu-break-crumb.mjs +8 -0
- package/esm2020/src/app/modules/interfaces/report/template-pdf-ot.mjs +2 -0
- package/esm2020/src/app/modules/interfaces/report/template-pfd-fo.mjs +2 -0
- package/esm2020/src/app/modules/services/crypto.service.mjs +37 -0
- package/esm2020/src/app/modules/services/export-data.service.mjs +166 -0
- package/esm2020/src/app/modules/services/file-forms.service.mjs +24 -0
- package/esm2020/src/app/modules/services/functions.service.mjs +54 -0
- package/esm2020/src/app/modules/services/generate-pdf.service.mjs +58 -0
- package/esm2020/src/app/modules/services/http.service.mjs +154 -0
- package/esm2020/src/app/modules/services/loading/loading.component.mjs +28 -0
- package/esm2020/src/app/modules/services/local-storage.service.mjs +115 -0
- package/esm2020/src/app/modules/services/message.service.mjs +200 -0
- package/esm2020/src/app/modules/services/screen-size-util.mjs +6 -0
- package/esm2020/src/app/modules/services/session.service.mjs +42 -0
- package/fesm2015/brainloper-ui.mjs +2945 -0
- package/fesm2015/brainloper-ui.mjs.map +1 -0
- package/fesm2020/brainloper-ui.mjs +2906 -0
- package/fesm2020/brainloper-ui.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/package.json +2 -5
- package/public_api.d.ts +50 -0
- package/src/app/modules/brainloper-ui/brainloper-ui.module.d.ts +73 -0
- package/src/app/modules/brainloper-ui/components/bread-crumb/bread-crumb.component.d.ts +13 -0
- package/src/app/modules/brainloper-ui/components/buttons/button-icon/button-icon.component.d.ts +10 -0
- package/src/app/modules/brainloper-ui/components/buttons/button-label/button-label.component.d.ts +24 -0
- package/src/app/modules/brainloper-ui/components/carousel/carousel.component.d.ts +12 -0
- package/src/app/modules/brainloper-ui/components/combos/combos.component.d.ts +46 -0
- package/src/app/modules/brainloper-ui/components/data-table/data-table.component.d.ts +121 -0
- package/src/app/modules/brainloper-ui/components/data-table/table-modal/table-modal.component.d.ts +21 -0
- package/src/app/modules/brainloper-ui/components/file-input/file-input.component.d.ts +42 -0
- package/src/app/modules/brainloper-ui/components/file-input/imagenes/doc.d.ts +2 -0
- package/src/app/modules/brainloper-ui/components/file-input/imagenes/fondoTransparente.d.ts +2 -0
- package/src/app/modules/brainloper-ui/components/file-input/imagenes/pdf.d.ts +2 -0
- package/src/app/modules/brainloper-ui/components/filters/filters.component.d.ts +30 -0
- package/src/app/modules/brainloper-ui/components/report/generate-pdf/generate-pdf.component.d.ts +35 -0
- package/src/app/modules/brainloper-ui/components/report/template-fuel/template-fuel.component.d.ts +36 -0
- package/src/app/modules/brainloper-ui/components/select-filter/select-filter.component.d.ts +26 -0
- package/src/app/modules/interfaces/buttons/button-icon.d.ts +9 -0
- package/src/app/modules/interfaces/buttons/button-lavel-edit.d.ts +6 -0
- package/src/app/modules/interfaces/combos/combos-configuration.d.ts +13 -0
- package/src/app/modules/interfaces/data-table/params.d.ts +7 -0
- package/src/app/modules/interfaces/data-table/rules.d.ts +8 -0
- package/src/app/modules/interfaces/data-table/table-columns.d.ts +25 -0
- package/src/app/modules/interfaces/data-table/table-configuration.d.ts +25 -0
- package/src/app/modules/interfaces/enum/enumActions.d.ts +5 -0
- package/src/app/modules/interfaces/enum/enumRules.d.ts +6 -0
- package/src/app/modules/interfaces/file-forms-service/file-forms-params.d.ts +4 -0
- package/src/app/modules/interfaces/file-forms-service/file-input-params.d.ts +13 -0
- package/src/app/modules/interfaces/filters/header-filters.d.ts +13 -0
- package/src/app/modules/interfaces/menu-break-crumb/menu-break-crumb.d.ts +10 -0
- package/src/app/modules/interfaces/report/template-pdf-ot.d.ts +19 -0
- package/src/app/modules/interfaces/report/template-pfd-fo.d.ts +20 -0
- package/src/app/modules/services/crypto.service.d.ts +10 -0
- package/src/app/modules/services/export-data.service.d.ts +18 -0
- package/src/app/modules/services/file-forms.service.d.ts +7 -0
- package/src/app/modules/services/functions.service.d.ts +13 -0
- package/src/app/modules/services/generate-pdf.service.d.ts +12 -0
- package/src/app/modules/services/http.service.d.ts +21 -0
- package/src/app/modules/services/loading/loading.component.d.ts +15 -0
- package/src/app/modules/services/local-storage.service.d.ts +49 -0
- package/src/app/modules/services/message.service.d.ts +23 -0
- package/src/app/modules/services/screen-size-util.d.ts +3 -0
- package/src/app/modules/services/session.service.d.ts +14 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./crypto.service";
|
|
4
|
+
export class SessionService {
|
|
5
|
+
constructor(cripto) {
|
|
6
|
+
this.cripto = cripto;
|
|
7
|
+
this.key = "V2xoU2JHTnBRbnBpTWxvd1pESkdlVnBUUW10YVYzaHNaRzFXZG1OSE1XeGlibEU9"; //btoa 3 rounds
|
|
8
|
+
}
|
|
9
|
+
getMain() {
|
|
10
|
+
const info = sessionStorage.getItem(this.key);
|
|
11
|
+
if (info) {
|
|
12
|
+
return this.cripto.decode(info);
|
|
13
|
+
}
|
|
14
|
+
return {};
|
|
15
|
+
}
|
|
16
|
+
keyAssign(key) {
|
|
17
|
+
this.key = key;
|
|
18
|
+
}
|
|
19
|
+
getData(key) {
|
|
20
|
+
var sesion = this.getMain();
|
|
21
|
+
return sesion[key] || '';
|
|
22
|
+
}
|
|
23
|
+
setData(key, value) {
|
|
24
|
+
var actual = this.getMain() || {};
|
|
25
|
+
actual[key] = value;
|
|
26
|
+
const dataF = this.cripto.encode(actual);
|
|
27
|
+
sessionStorage.setItem(this.key, dataF);
|
|
28
|
+
}
|
|
29
|
+
getSessionVars() {
|
|
30
|
+
const info = this.getMain();
|
|
31
|
+
return info || {};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
SessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SessionService, deps: [{ token: i1.CryptoService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
35
|
+
SessionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SessionService, providedIn: 'root' });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SessionService, decorators: [{
|
|
37
|
+
type: Injectable,
|
|
38
|
+
args: [{
|
|
39
|
+
providedIn: 'root'
|
|
40
|
+
}]
|
|
41
|
+
}], ctorParameters: function () { return [{ type: i1.CryptoService }]; } });
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Vzc2lvbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9tb2R1bGVzL3NlcnZpY2VzL3Nlc3Npb24uc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7QUFNM0MsTUFBTSxPQUFPLGNBQWM7SUFHdkIsWUFBb0IsTUFBcUI7UUFBckIsV0FBTSxHQUFOLE1BQU0sQ0FBZTtRQUR6QyxRQUFHLEdBQUcsa0VBQWtFLENBQUMsQ0FBRSxlQUFlO0lBRTFGLENBQUM7SUFFTyxPQUFPO1FBQ1gsTUFBTSxJQUFJLEdBQUcsY0FBYyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQU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