mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Admin Portal - Profile
This commit is contained in:
parent
3e767e8547
commit
d3fc629688
91
public/main.profile.dart.js
vendored
91
public/main.profile.dart.js
vendored
@ -84052,10 +84052,12 @@
|
||||
this.$this = t0;
|
||||
this.entity = t1;
|
||||
},
|
||||
EntityDataTableSource_getRow_closure5: function EntityDataTableSource_getRow_closure5(t0, t1, t2) {
|
||||
this._box_0 = t0;
|
||||
this.$this = t1;
|
||||
this.entity = t2;
|
||||
EntityDataTableSource_getRow_closure5: function EntityDataTableSource_getRow_closure5(t0, t1, t2, t3) {
|
||||
var _ = this;
|
||||
_._box_0 = t0;
|
||||
_.$this = t1;
|
||||
_.wideFields = t2;
|
||||
_.entity = t3;
|
||||
},
|
||||
EntityDataTableSource_getRow__closure: function EntityDataTableSource_getRow__closure(t0, t1) {
|
||||
this.$this = t0;
|
||||
@ -385047,7 +385049,7 @@
|
||||
if (t2 == null || t1.relation == null)
|
||||
return new A.SizedBox(_null, _null, _null, _null);
|
||||
t1 = t2.get$listDisplayName();
|
||||
return A.MouseRegion$(A.GestureDetector$(_null, A.Text$(t1, _null, _null, _null, _null, _null, A.TextStyle$(_null, _null, _null, _null, _this._link_text$_isHovered ? B.TextDecoration_1 : B.TextDecoration_0, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, true, _null, _null, _null, _null, _null, _null, _null, _null), B.TextAlign_2, _null, _null), B.DragStartBehavior_1, false, _null, _null, _null, _null, _null, _null, _null, new A._LinkTextRelatedEntityState_build_closure(_this, context), _null, _null, _null, _null, _null, _null, _null, _null, new A._LinkTextRelatedEntityState_build_closure0(_this), _null, _null, _null, _null, _null, _null), B.C__DeferringMouseCursor, _null, _null, new A._LinkTextRelatedEntityState_build_closure1(_this), new A._LinkTextRelatedEntityState_build_closure2(_this));
|
||||
return A.MouseRegion$(A.GestureDetector$(_null, A.Text$(t1, _null, _null, _null, _null, _null, A.TextStyle$(_null, _null, _null, _null, _this._link_text$_isHovered ? B.TextDecoration_1 : B.TextDecoration_0, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, true, _null, _null, _null, _null, _null, _null, _null, _null), _null, _null, _null), B.DragStartBehavior_1, false, _null, _null, _null, _null, _null, _null, _null, new A._LinkTextRelatedEntityState_build_closure(_this, context), _null, _null, _null, _null, _null, _null, _null, _null, new A._LinkTextRelatedEntityState_build_closure0(_this), _null, _null, _null, _null, _null, _null), B.C__DeferringMouseCursor, _null, _null, new A._LinkTextRelatedEntityState_build_closure1(_this), new A._LinkTextRelatedEntityState_build_closure2(_this));
|
||||
}
|
||||
};
|
||||
A._LinkTextRelatedEntityState_build_closure2.prototype = {
|
||||
@ -388847,7 +388849,7 @@
|
||||
};
|
||||
A.EntityDataTableSource.prototype = {
|
||||
getRow$1(index) {
|
||||
var listState, uIState, t5, isSelected, rowColor, t6, backgroundColor, t7, t8, t9, t10, _this = this, _null = null, t1 = {},
|
||||
var listState, uIState, t5, isSelected, rowColor, t6, backgroundColor, t7, wideFields, t8, t9, t10, _this = this, _null = null, t1 = {},
|
||||
t2 = _this.context,
|
||||
state = A._lateReadCheck(A.StoreProvider_of(t2, type$.legacy_AppState).__Store__state, "_state"),
|
||||
t3 = _this.entityMap,
|
||||
@ -388887,8 +388889,10 @@
|
||||
t6 = backgroundColor;
|
||||
} else
|
||||
t6 = _null;
|
||||
t7 = type$.JSArray_legacy_String;
|
||||
wideFields = A._setArrayType(["public_notes", "private_notes", "description"], t7);
|
||||
if (t4)
|
||||
t3 = A._setArrayType([], type$.JSArray_legacy_String);
|
||||
t3 = A._setArrayType([], t7);
|
||||
t3 = J.contains$1$asx(t3, entity.get$id(entity));
|
||||
t7 = !t4 ? new A.EntityDataTableSource_getRow_closure0(_this, entity) : _null;
|
||||
t8 = A._setArrayType([], type$.JSArray_legacy_DataCell_2);
|
||||
@ -388908,7 +388912,7 @@
|
||||
t9 = _null;
|
||||
t8.push(new A.DataCell0(A.Row$(A._setArrayType([t2, A.ActionMenuButton$(entity, entity.getActions$3$client$includeEdit$userCompany(t9, t5, t4), _null, _null, false, new A.EntityDataTableSource_getRow_closure3(entity))], type$.JSArray_legacy_Widget), B.CrossAxisAlignment_2, B.MainAxisAlignment_0, B.MainAxisSize_1, _null), new A.EntityDataTableSource_getRow_closure4(_this, entity), t6));
|
||||
}
|
||||
B.JSArray_methods.addAll$1(t8, J.map$1$1$ax(_this.tableColumns, new A.EntityDataTableSource_getRow_closure5(t1, _this, entity), type$.legacy_DataCell));
|
||||
B.JSArray_methods.addAll$1(t8, J.map$1$1$ax(_this.tableColumns, new A.EntityDataTableSource_getRow_closure5(t1, _this, wideFields, entity), type$.legacy_DataCell));
|
||||
return new A.DataRow0(_null, t7, t3, t8);
|
||||
}
|
||||
};
|
||||
@ -388953,8 +388957,11 @@
|
||||
};
|
||||
A.EntityDataTableSource_getRow_closure5.prototype = {
|
||||
call$1(field) {
|
||||
var t1 = this.$this;
|
||||
return new A.DataCell0(t1.entityPresenter.getField$2$context$field(t1.context, field), new A.EntityDataTableSource_getRow__closure(t1, this.entity), this._box_0.backgroundColor);
|
||||
var _this = this,
|
||||
t1 = _this.$this,
|
||||
t2 = t1.entityPresenter.getField$2$context$field(t1.context, field),
|
||||
t3 = B.JSArray_methods.contains$1(_this.wideFields, field) ? 240 : 120;
|
||||
return new A.DataCell0(new A.ConstrainedBox(new A.BoxConstraints(80, t3, 0, 1 / 0), t2, null), new A.EntityDataTableSource_getRow__closure(t1, _this.entity), _this._box_0.backgroundColor);
|
||||
},
|
||||
$signature: 601
|
||||
};
|
||||
@ -389282,7 +389289,7 @@
|
||||
};
|
||||
A._EntityListState_build__closure5.prototype = {
|
||||
call$1(field) {
|
||||
var key, t1, t2, maxWidth, minWidth, _this = this, _null = null,
|
||||
var key, t1, t2, _this = this, _null = null,
|
||||
label = A.Localizations_of(_this.context, B.Type_AppLocalization_KyD, type$.legacy_AppLocalization).lookup$1(field);
|
||||
if (J.startsWith$1$s(field, "custom")) {
|
||||
key = B.JSString_methods.replaceFirst$2(field, "custom", A.toSnakeCase(_this.entityType.name));
|
||||
@ -389290,14 +389297,7 @@
|
||||
t2 = t1.uiState.selectedCompanyIndex;
|
||||
label = t1.userCompanyStates._list[t2].userCompany.company.getCustomFieldLabel$1(key);
|
||||
}
|
||||
if (field === "description") {
|
||||
maxWidth = 600;
|
||||
minWidth = 400;
|
||||
} else {
|
||||
maxWidth = 120;
|
||||
minWidth = 80;
|
||||
}
|
||||
return new A.DataColumn0(A.Container$(_null, A.Text$(label, _null, _null, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), B.Clip_0, _null, new A.BoxConstraints(minWidth, maxWidth, 0, 1 / 0), _null, _null, _null, _null, _null, _null, _null, _null, _null), new A._EntityListState_build___closure1(_this.$this, field));
|
||||
return new A.DataColumn0(A.Container$(_null, A.Text$(label, _null, _null, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), B.Clip_0, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), new A._EntityListState_build___closure1(_this.$this, field));
|
||||
},
|
||||
$signature: 2141
|
||||
};
|
||||
@ -391461,9 +391461,11 @@
|
||||
case "custom4":
|
||||
return A.Text$(_this.presentCustomField$2(context, client.customValue4), _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
case "public_notes":
|
||||
return A.Text$(client.publicNotes, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
t1 = client.publicNotes;
|
||||
return A.Tooltip$(A.Text$(t1, _null, 2, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), t1);
|
||||
case "private_notes":
|
||||
return A.Text$(client.privateNotes, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
t1 = client.privateNotes;
|
||||
return A.Tooltip$(A.Text$(t1, _null, 2, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), t1);
|
||||
case "task_rate":
|
||||
return A.Text$(A.formatNumber(client.settings.defaultTaskRate, context, _null, _null, B.FormatNumberType_0, true, _null, false), _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
case "documents":
|
||||
@ -396311,9 +396313,11 @@
|
||||
case "custom4":
|
||||
return A.Text$(_this.presentCustomField$2(context, credit.customValue4), _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
case "public_notes":
|
||||
return A.Text$(credit.publicNotes, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
t1 = credit.publicNotes;
|
||||
return A.Tooltip$(A.Text$(t1, _null, 2, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), t1);
|
||||
case "private_notes":
|
||||
return A.Text$(credit.privateNotes, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
t1 = credit.privateNotes;
|
||||
return A.Tooltip$(A.Text$(t1, _null, 2, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), t1);
|
||||
case "discount":
|
||||
t1 = credit.isAmountDiscount;
|
||||
t2 = credit.discount;
|
||||
@ -401791,11 +401795,13 @@
|
||||
case "tax_amount":
|
||||
return A.Text$(A.formatNumber(expense.get$taxAmount(), context, _null, expense.currencyId, B.FormatNumberType_0, true, _null, false), _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
case "public_notes":
|
||||
return A.Text$(expense.publicNotes, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
t1 = expense.publicNotes;
|
||||
return A.Tooltip$(A.Text$(t1, _null, 2, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), t1);
|
||||
case "number":
|
||||
return A.Text$(expense.number, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
case "private_notes":
|
||||
return A.Text$(expense.privateNotes, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
t1 = expense.privateNotes;
|
||||
return A.Tooltip$(A.Text$(t1, _null, 2, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), t1);
|
||||
case "should_be_invoiced":
|
||||
return A.Text$(B.JSBool_methods.toString$0(expense.shouldBeInvoiced), _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
case "transaction_id":
|
||||
@ -404528,8 +404534,8 @@
|
||||
t18 = invoice.remainingCycles;
|
||||
t19 = type$.legacy_int;
|
||||
t20 = A._setArrayType([A.DropdownMenuItem$(A.Text$(t1.get$endless(), _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, -1, t19)], type$.JSArray_legacy_DropdownMenuItem_legacy_int);
|
||||
_list = J.JSArray_JSArray$allocateGrowable(37, t19);
|
||||
for (i = 0; i < 37; ++i)
|
||||
_list = J.JSArray_JSArray$allocateGrowable(61, t19);
|
||||
for (i = 0; i < 61; ++i)
|
||||
_list[i] = i;
|
||||
t21 = A._arrayInstanceType(_list)._eval$1("MappedListIterable<1,DropdownMenuItem<int*>*>");
|
||||
B.JSArray_methods.addAll$1(t20, A.List_List$of(new A.MappedListIterable(_list, new A.InvoiceEditDesktopState_build_closure6(), t21), true, t21._eval$1("ListIterable.E")));
|
||||
@ -408890,9 +408896,11 @@
|
||||
case "custom4":
|
||||
return A.Text$(_this.presentCustomField$2(context, invoice.customValue4), _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
case "public_notes":
|
||||
return A.Text$(invoice.publicNotes, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
t1 = invoice.publicNotes;
|
||||
return A.Tooltip$(A.Text$(t1, _null, 2, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), t1);
|
||||
case "private_notes":
|
||||
return A.Text$(invoice.privateNotes, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
t1 = invoice.privateNotes;
|
||||
return A.Tooltip$(A.Text$(t1, _null, 2, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), t1);
|
||||
case "discount":
|
||||
t1 = invoice.isAmountDiscount;
|
||||
t2 = invoice.discount;
|
||||
@ -414202,10 +414210,10 @@
|
||||
return A.Text$(A.formatDate(project.dueDate, context, true, true, false), _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
case "public_notes":
|
||||
t1 = project.publicNotes;
|
||||
return A.Text$(t1, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
return A.Tooltip$(A.Text$(t1, _null, 2, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), t1);
|
||||
case "private_notes":
|
||||
t1 = project.privateNotes;
|
||||
return A.Text$(t1, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
return A.Tooltip$(A.Text$(t1, _null, 2, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), t1);
|
||||
case "budgeted_hours":
|
||||
return A.Text$(A.formatNumber(project.budgetedHours, context, _null, _null, B.FormatNumberType_3, true, _null, false), _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
case "number":
|
||||
@ -415479,9 +415487,11 @@
|
||||
case "custom4":
|
||||
return A.Text$(_this.presentCustomField$2(context, quote.customValue4), _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
case "public_notes":
|
||||
return A.Text$(quote.publicNotes, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
t1 = quote.publicNotes;
|
||||
return A.Tooltip$(A.Text$(t1, _null, 2, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), t1);
|
||||
case "private_notes":
|
||||
return A.Text$(quote.privateNotes, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
t1 = quote.privateNotes;
|
||||
return A.Tooltip$(A.Text$(t1, _null, 2, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), t1);
|
||||
case "discount":
|
||||
t1 = quote.isAmountDiscount;
|
||||
t2 = quote.discount;
|
||||
@ -416302,11 +416312,13 @@
|
||||
case "tax_amount":
|
||||
return A.Text$(A.formatNumber(expense.get$taxAmount(), context, _null, expense.currencyId, B.FormatNumberType_0, true, _null, false), _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
case "public_notes":
|
||||
return A.Text$(expense.publicNotes, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
t1 = expense.publicNotes;
|
||||
return A.Tooltip$(A.Text$(t1, _null, 2, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), t1);
|
||||
case "number":
|
||||
return A.Text$(expense.number, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
case "private_notes":
|
||||
return A.Text$(expense.privateNotes, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
t1 = expense.privateNotes;
|
||||
return A.Tooltip$(A.Text$(t1, _null, 2, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), t1);
|
||||
case "should_be_invoiced":
|
||||
return A.Text$(B.JSBool_methods.toString$0(expense.shouldBeInvoiced), _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
case "currency_id":
|
||||
@ -417353,9 +417365,11 @@
|
||||
case "custom4":
|
||||
return A.Text$(_this.presentCustomField$2(context, invoice.customValue4), _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
case "public_notes":
|
||||
return A.Text$(invoice.publicNotes, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
t1 = invoice.publicNotes;
|
||||
return A.Tooltip$(A.Text$(t1, _null, 2, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), t1);
|
||||
case "private_notes":
|
||||
return A.Text$(invoice.privateNotes, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
t1 = invoice.privateNotes;
|
||||
return A.Tooltip$(A.Text$(t1, _null, 2, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), t1);
|
||||
case "discount":
|
||||
t1 = invoice.isAmountDiscount;
|
||||
t2 = invoice.discount;
|
||||
@ -435113,7 +435127,8 @@
|
||||
t2 = state.uiState.selectedCompanyIndex;
|
||||
return new A.LinkTextRelatedEntity(t1._list[t2].projectState.$get$1(0, task.projectId), task, _null);
|
||||
case "description":
|
||||
return A.Text$(task.description, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
t1 = task.description;
|
||||
return A.Tooltip$(A.Text$(t1, _null, 2, B.TextOverflow_2, _null, _null, _null, _null, _null, _null), t1);
|
||||
case "duration":
|
||||
return A.Text$(A.formatDuration(task.calculateDuration$0(), true), _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
||||
case "number":
|
||||
|
Loading…
Reference in New Issue
Block a user