@masterkeymaterial/ui 0.2.12 → 0.2.15
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.
|
@@ -3422,7 +3422,6 @@ class UiDropZone {
|
|
|
3422
3422
|
continue;
|
|
3423
3423
|
}
|
|
3424
3424
|
output.data.push({
|
|
3425
|
-
url: null,
|
|
3426
3425
|
base64: base64,
|
|
3427
3426
|
name: file.name,
|
|
3428
3427
|
size: file.size,
|
|
@@ -5566,7 +5565,6 @@ class FieldsUpload extends BaseFieldsForm {
|
|
|
5566
5565
|
continue;
|
|
5567
5566
|
}
|
|
5568
5567
|
this.onAddFile([{
|
|
5569
|
-
url: null,
|
|
5570
5568
|
base64,
|
|
5571
5569
|
name: newFile.name,
|
|
5572
5570
|
size: newFile.size,
|
|
@@ -6170,6 +6168,7 @@ class FormAction extends BaseFieldsValues {
|
|
|
6170
6168
|
this.result = null;
|
|
6171
6169
|
// Obtem os valores do formulário.
|
|
6172
6170
|
let valores = LibUtil.clonar(this.form.values());
|
|
6171
|
+
let errorMessage = "";
|
|
6173
6172
|
// Inicia o envio.
|
|
6174
6173
|
try {
|
|
6175
6174
|
this.form.isEnviando = true;
|
|
@@ -6183,10 +6182,11 @@ class FormAction extends BaseFieldsValues {
|
|
|
6183
6182
|
}
|
|
6184
6183
|
}
|
|
6185
6184
|
catch (e) {
|
|
6186
|
-
|
|
6185
|
+
console.error("❌ ERRO ao Enviar Valores. ", e);
|
|
6186
|
+
errorMessage = e instanceof Error ? e.message : String(e);
|
|
6187
6187
|
}
|
|
6188
6188
|
// Qualquer outro caso, indica falha.
|
|
6189
|
-
return { s: false, m:
|
|
6189
|
+
return { s: false, m: `Erro ao enviar valores: ${errorMessage}` };
|
|
6190
6190
|
}
|
|
6191
6191
|
}]);
|
|
6192
6192
|
}
|
|
@@ -6225,7 +6225,7 @@ class FormAction extends BaseFieldsValues {
|
|
|
6225
6225
|
task.message = s.m;
|
|
6226
6226
|
}).catch(f => {
|
|
6227
6227
|
task.success = false;
|
|
6228
|
-
task.message =
|
|
6228
|
+
task.message = `Erro na execução da tarefa: ${f instanceof Error ? f.message : String(f)}`;
|
|
6229
6229
|
});
|
|
6230
6230
|
await r;
|
|
6231
6231
|
task.done = true;
|
|
@@ -6490,11 +6490,10 @@ class GridCellService {
|
|
|
6490
6490
|
this.gridParams.set(params);
|
|
6491
6491
|
}
|
|
6492
6492
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: GridCellService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6493
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: GridCellService
|
|
6493
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: GridCellService });
|
|
6494
6494
|
}
|
|
6495
6495
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: GridCellService, decorators: [{
|
|
6496
|
-
type: Injectable
|
|
6497
|
-
args: [{ providedIn: 'root' }]
|
|
6496
|
+
type: Injectable
|
|
6498
6497
|
}] });
|
|
6499
6498
|
|
|
6500
6499
|
const PROP_CONTROLE_ATIVO$1 = 'is_ativo';
|
|
@@ -6609,11 +6608,11 @@ class GridCellHandler {
|
|
|
6609
6608
|
};
|
|
6610
6609
|
}
|
|
6611
6610
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: GridCellHandler, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6612
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.10", type: GridCellHandler, isStandalone: true, selector: "lib-grid-cell-handler", inputs: { lista: { classPropertyName: "lista", publicName: "lista", isSignal: true, isRequired: true, transformFunction: null }, linha: { classPropertyName: "linha", publicName: "linha", isSignal: true, isRequired: true, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, localColuna: { classPropertyName: "localColuna", publicName: "localColuna", isSignal: true, isRequired: true, transformFunction: null }, localColunas: { classPropertyName: "localColunas", publicName: "localColunas", isSignal: true, isRequired: true, transformFunction: null }, inputSearchText: { classPropertyName: "inputSearchText", publicName: "inputSearchText", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class.table-inativo": "!ativo()" } }, viewQueries: [{ propertyName: "vcr", first: true, predicate: ["cellComponent"], descendants: true, read: ViewContainerRef, isSignal: true }], usesOnChanges: true, ngImport: i0, template: "@if(localColuna().cellComponent){\n<div class=\"d-none\" #cellComponent></div>\n} @else {\n<div [innerHTML]=\"valueToRender\"></div>\n}", styles: [":host{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}:host>div{display:contents}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6611
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.10", type: GridCellHandler, isStandalone: true, selector: "lib-grid-cell-handler", inputs: { lista: { classPropertyName: "lista", publicName: "lista", isSignal: true, isRequired: true, transformFunction: null }, linha: { classPropertyName: "linha", publicName: "linha", isSignal: true, isRequired: true, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, localColuna: { classPropertyName: "localColuna", publicName: "localColuna", isSignal: true, isRequired: true, transformFunction: null }, localColunas: { classPropertyName: "localColunas", publicName: "localColunas", isSignal: true, isRequired: true, transformFunction: null }, inputSearchText: { classPropertyName: "inputSearchText", publicName: "inputSearchText", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class.table-inativo": "!ativo()" } }, providers: [GridCellService], viewQueries: [{ propertyName: "vcr", first: true, predicate: ["cellComponent"], descendants: true, read: ViewContainerRef, isSignal: true }], usesOnChanges: true, ngImport: i0, template: "@if(localColuna().cellComponent){\n<div class=\"d-none\" #cellComponent></div>\n} @else {\n<div [innerHTML]=\"valueToRender\"></div>\n}", styles: [":host{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}:host>div{display:contents}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6613
6612
|
}
|
|
6614
6613
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: GridCellHandler, decorators: [{
|
|
6615
6614
|
type: Component,
|
|
6616
|
-
args: [{ selector: 'lib-grid-cell-handler', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
6615
|
+
args: [{ selector: 'lib-grid-cell-handler', changeDetection: ChangeDetectionStrategy.OnPush, providers: [GridCellService], host: {
|
|
6617
6616
|
'[class.table-inativo]': '!ativo()'
|
|
6618
6617
|
}, template: "@if(localColuna().cellComponent){\n<div class=\"d-none\" #cellComponent></div>\n} @else {\n<div [innerHTML]=\"valueToRender\"></div>\n}", styles: [":host{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}:host>div{display:contents}\n"] }]
|
|
6619
6618
|
}], propDecorators: { lista: [{ type: i0.Input, args: [{ isSignal: true, alias: "lista", required: true }] }], linha: [{ type: i0.Input, args: [{ isSignal: true, alias: "linha", required: true }] }], config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], localColuna: [{ type: i0.Input, args: [{ isSignal: true, alias: "localColuna", required: true }] }], localColunas: [{ type: i0.Input, args: [{ isSignal: true, alias: "localColunas", required: true }] }], inputSearchText: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputSearchText", required: true }] }], vcr: [{ type: i0.ViewChild, args: ['cellComponent', { ...{ read: ViewContainerRef }, isSignal: true }] }] } });
|