@masterkeymaterial/ui 0.0.4 → 0.0.5

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.
@@ -4,8 +4,52 @@ import { autoUpdate, computePosition, offset, flip, shift } from '@floating-ui/d
4
4
  import { NgComponentOutlet } from '@angular/common';
5
5
  import { DomSanitizer } from '@angular/platform-browser';
6
6
 
7
+ ////////////////////////////////////
8
+ // CONSOLES: LOG - WARN - ERR ...
9
+ ////////////////////////////////////
10
+ // LibUtil.loglevel: 1,2,3 => Bigger will see more
11
+ let loglevel = 0;
12
+ const setLogLevel = (level) => {
13
+ loglevel = level;
14
+ };
15
+ const LOG = (level, ...attr) => {
16
+ if ((loglevel ?? 0) >= level) {
17
+ return console.log(...attr);
18
+ }
19
+ };
20
+ // export const WARN = (level: number, ...attr: any) => {
21
+ // if ((loglevel ?? 0) >= level) {
22
+ // return console.warn(...attr);
23
+ // }
24
+ // }
25
+ // export const ERR = (level: number, ...attr: any) => {
26
+ // if ((loglevel ?? 0) >= level) {
27
+ // return console.error(...attr);
28
+ // }
29
+ // }
30
+ const G_START = (level, ...attr) => {
31
+ if ((loglevel ?? 0) >= level) {
32
+ return console.groupCollapsed(...attr);
33
+ }
34
+ };
35
+ const G_START_OPEN = (level, ...attr) => {
36
+ if ((loglevel ?? 0) >= level) {
37
+ return console.group(...attr);
38
+ }
39
+ };
40
+ const G_END = (level, ...attr) => {
41
+ if ((loglevel ?? 0) >= level) {
42
+ return console.groupEnd();
43
+ }
44
+ };
45
+ // LOG COLAPSADO
46
+ const LOGC = (level, title, ...attr) => {
47
+ G_START(level, title);
48
+ LOG(level, ...attr);
49
+ G_END(level);
50
+ };
51
+
7
52
  class LibUtil {
8
- static loglevel = 0;
9
53
  static formConfigs = {};
10
54
  static classof = (o) => {
11
55
  let nomeClasse = Object.prototype.toString.call(o).slice(8, -1).toLowerCase();
@@ -2012,9 +2056,6 @@ class LibUtil {
2012
2056
  return texto + "s";
2013
2057
  }
2014
2058
  }
2015
- static setLogLevel(level) {
2016
- LibUtil.loglevel = level;
2017
- }
2018
2059
  static setFormConfigs(configs) {
2019
2060
  LibUtil.formConfigs = configs;
2020
2061
  }
@@ -2081,46 +2122,6 @@ class LibUtil {
2081
2122
  return texto;
2082
2123
  }
2083
2124
  }
2084
- ////////////////////////////////////
2085
- // CONSOLES: LOG - WARN - ERR ...
2086
- ////////////////////////////////////
2087
- // LibUtil.loglevel: 1,2,3 => Bigger will see more
2088
- const LOG = (level, ...attr) => {
2089
- if (LibUtil.loglevel >= level) {
2090
- return console.log(...attr);
2091
- }
2092
- };
2093
- // export const WARN = (level: number, ...attr: any) => {
2094
- // if (LibUtil.loglevel >= level) {
2095
- // return console.warn(...attr);
2096
- // }
2097
- // }
2098
- // export const ERR = (level: number, ...attr: any) => {
2099
- // if (LibUtil.loglevel >= level) {
2100
- // return console.error(...attr);
2101
- // }
2102
- // }
2103
- const G_START = (level, ...attr) => {
2104
- if (LibUtil.loglevel >= level) {
2105
- return console.groupCollapsed(...attr);
2106
- }
2107
- };
2108
- const G_START_OPEN = (level, ...attr) => {
2109
- if (LibUtil.loglevel >= level) {
2110
- return console.group(...attr);
2111
- }
2112
- };
2113
- const G_END = (level, ...attr) => {
2114
- if (LibUtil.loglevel >= level) {
2115
- return console.groupEnd();
2116
- }
2117
- };
2118
- // LOG COLAPSADO
2119
- const LOGC = (level, title, ...attr) => {
2120
- G_START(level, title);
2121
- LOG(level, ...attr);
2122
- G_END(level);
2123
- };
2124
2125
 
2125
2126
  class Formulario {
2126
2127
  campos = signal({}, ...(ngDevMode ? [{ debugName: "campos" }] : /* istanbul ignore next */ []));
@@ -6453,5 +6454,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
6453
6454
  * Generated bundle index. Do not edit.
6454
6455
  */
6455
6456
 
6456
- export { BaseFieldsForm, BaseFieldsValues, CampoDe, FieldsGeneric, FiltroDe, FormAction, FormFilter, FormNoAction, FormatedValues, Formulario, G_END, G_START, G_START_OPEN, IField, IRegraTipo, LOG, LOGC, LibUtil, Regra, SingleValues, UiButton, UiCheckBox, UiChip, UiDropZone, UiFileList, UiListErrors, UiLoading, UiMenu, UiProcurar, UiProgress, UiSelect, UiSlide };
6457
+ export { BaseFieldsForm, BaseFieldsValues, CampoDe, FieldsGeneric, FiltroDe, FormAction, FormFilter, FormNoAction, FormatedValues, Formulario, IField, IRegraTipo, LibUtil, Regra, SingleValues, UiButton, UiCheckBox, UiChip, UiDropZone, UiFileList, UiListErrors, UiLoading, UiMenu, UiProcurar, UiProgress, UiSelect, UiSlide };
6457
6458
  //# sourceMappingURL=masterkeymaterial-ui.mjs.map