@masterkeymaterial/ui 0.0.4 → 0.0.6
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 */ []));
|
|
@@ -4005,13 +4006,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
4005
4006
|
class UiProgress {
|
|
4006
4007
|
value = input(0, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
4007
4008
|
bufferValue = input(0, ...(ngDevMode ? [{ debugName: "bufferValue" }] : /* istanbul ignore next */ []));
|
|
4008
|
-
mode = input('
|
|
4009
|
+
mode = input('indeterminate', ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
4009
4010
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: UiProgress, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4010
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
4011
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: UiProgress, isStandalone: true, selector: "ui-progress", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, bufferValue: { classPropertyName: "bufferValue", publicName: "bufferValue", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@switch (mode()) {\n@case ('determinate'){\n<div class=\"bar-progress determinate\">\n\t<div class=\"bar-progress-filled\" [style.width.%]=\"value() ?? 0\"></div>\n</div>\n}\n\n@case ('indeterminate'){\n<div class=\"bar-progress indeterminate\">\n\t<div class=\"bar-progress-filled\"></div>\n</div>\n}\n\n@case ('buffer'){\n<div class=\"bar-progress buffer\">\n\t<div class=\"bar-progress-filled\" [style.width.%]=\"value() ?? 0\"></div>\n\t<div class=\"bar-progress-buffer\" [style.width.%]=\"bufferValue() ?? 0\"></div>\n</div>\n}\n\n@case ('query'){\n<div class=\"bar-progress query\">\n\t<div class=\"bar-progress-filled\"></div>\n</div>\n}\n\n@default {\n<div class=\"bar-progress indeterminate\">\n\t<div class=\"bar-progress-filled\"></div>\n</div>\n}\n\n}", styles: [".bar-progress{position:relative;width:100%;height:4px;background:color-mix(in srgb,var(--ui-background, var(--sys-background, hsl(210, 80%, 50%))) 25%,transparent);overflow:hidden}.bar-progress-filled{position:absolute;top:0;left:0;height:100%;background:var(--primary, hsl(210, 80%, 50%));transition:width .25s ease}.bar-progress-buffer{position:absolute;top:0;left:0;height:100%;background:color-mix(in srgb,var(--primary, hsl(210, 80%, 50%)) 40%,transparent);transition:width .25s ease;z-index:-1}.bar-progress.indeterminate .bar-progress-filled{width:50%;animation:indeterminate 1.5s cubic-bezier(.65,.815,.735,.395) infinite}@keyframes indeterminate{0%{left:-50%}to{left:100%}}.bar-progress.query .bar-progress-filled{width:30%;animation:query 1.5s cubic-bezier(.65,.815,.735,.395) infinite}@keyframes query{0%{left:100%}to{left:-30%}}\n"] });
|
|
4011
4012
|
}
|
|
4012
4013
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: UiProgress, decorators: [{
|
|
4013
4014
|
type: Component,
|
|
4014
|
-
args: [{ selector: 'ui-progress', template: "<progress [value]=\"value()\"></progress
|
|
4015
|
+
args: [{ selector: 'ui-progress', template: "@switch (mode()) {\n@case ('determinate'){\n<div class=\"bar-progress determinate\">\n\t<div class=\"bar-progress-filled\" [style.width.%]=\"value() ?? 0\"></div>\n</div>\n}\n\n@case ('indeterminate'){\n<div class=\"bar-progress indeterminate\">\n\t<div class=\"bar-progress-filled\"></div>\n</div>\n}\n\n@case ('buffer'){\n<div class=\"bar-progress buffer\">\n\t<div class=\"bar-progress-filled\" [style.width.%]=\"value() ?? 0\"></div>\n\t<div class=\"bar-progress-buffer\" [style.width.%]=\"bufferValue() ?? 0\"></div>\n</div>\n}\n\n@case ('query'){\n<div class=\"bar-progress query\">\n\t<div class=\"bar-progress-filled\"></div>\n</div>\n}\n\n@default {\n<div class=\"bar-progress indeterminate\">\n\t<div class=\"bar-progress-filled\"></div>\n</div>\n}\n\n}", styles: [".bar-progress{position:relative;width:100%;height:4px;background:color-mix(in srgb,var(--ui-background, var(--sys-background, hsl(210, 80%, 50%))) 25%,transparent);overflow:hidden}.bar-progress-filled{position:absolute;top:0;left:0;height:100%;background:var(--primary, hsl(210, 80%, 50%));transition:width .25s ease}.bar-progress-buffer{position:absolute;top:0;left:0;height:100%;background:color-mix(in srgb,var(--primary, hsl(210, 80%, 50%)) 40%,transparent);transition:width .25s ease;z-index:-1}.bar-progress.indeterminate .bar-progress-filled{width:50%;animation:indeterminate 1.5s cubic-bezier(.65,.815,.735,.395) infinite}@keyframes indeterminate{0%{left:-50%}to{left:100%}}.bar-progress.query .bar-progress-filled{width:30%;animation:query 1.5s cubic-bezier(.65,.815,.735,.395) infinite}@keyframes query{0%{left:100%}to{left:-30%}}\n"] }]
|
|
4015
4016
|
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], bufferValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "bufferValue", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }] } });
|
|
4016
4017
|
|
|
4017
4018
|
class UiSlide {
|
|
@@ -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,
|
|
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
|