@bizdoc/core 1.13.36 → 1.13.37
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/lib/browse/expanded-item/expanded-item.component.mjs +3 -3
- package/esm2020/lib/chat/chat-info.mjs +2 -3
- package/esm2020/lib/chat/conversation.component.mjs +2 -2
- package/esm2020/lib/chat/conversation.pane.component.mjs +11 -2
- package/esm2020/lib/compose/trace/flow.component.mjs +4 -4
- package/esm2020/lib/compose/trace/trace.component.mjs +2 -2
- package/esm2020/lib/core/slots/slots.component.mjs +2 -2
- package/fesm2015/bizdoc-core.mjs +19 -11
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +19 -11
- package/fesm2020/bizdoc-core.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/bizdoc-core.mjs
CHANGED
|
@@ -7082,11 +7082,10 @@ class ChatInfo {
|
|
|
7082
7082
|
open(userId, options) {
|
|
7083
7083
|
let contact = this._session.profile.contacts.find(c => c.id === userId);
|
|
7084
7084
|
if (!contact) {
|
|
7085
|
-
const now = new Date();
|
|
7086
7085
|
contact = {
|
|
7087
7086
|
id: userId,
|
|
7088
7087
|
accepted: false,
|
|
7089
|
-
time:
|
|
7088
|
+
time: new Date().toJSON(),
|
|
7090
7089
|
count: 0
|
|
7091
7090
|
};
|
|
7092
7091
|
this._session.profile.contacts.push(contact);
|
|
@@ -7426,7 +7425,7 @@ class ExpandedItemComponent {
|
|
|
7426
7425
|
this._refreshTask = setInterval(() => this._refresh(), REFRESH_TIME);
|
|
7427
7426
|
}
|
|
7428
7427
|
async _note() {
|
|
7429
|
-
const { ownerId, issued, substituteId, received, replied, log, id, note, byId, action, escalated, originId } = this.model;
|
|
7428
|
+
const { ownerId, issued, substituteId, received, replied, log, id, note, byId, action, escalated, originId, draft } = this.model;
|
|
7430
7429
|
let target;
|
|
7431
7430
|
if (action) {
|
|
7432
7431
|
target = await this._target(id);
|
|
@@ -7496,7 +7495,7 @@ class ExpandedItemComponent {
|
|
|
7496
7495
|
this.note = this._translate.get('ActionBy', adjective, who.name);
|
|
7497
7496
|
}
|
|
7498
7497
|
}
|
|
7499
|
-
else if (ownerId === this._session.profile.userId &&
|
|
7498
|
+
else if (ownerId === this._session.profile.userId && !draft) {
|
|
7500
7499
|
const time = this._fromNow(issued);
|
|
7501
7500
|
if (byId) {
|
|
7502
7501
|
if (byId === this._session.profile.byId)
|
|
@@ -13844,7 +13843,7 @@ class FlowViewComponent extends TraceBase {
|
|
|
13844
13843
|
};
|
|
13845
13844
|
this.scrollSettings = {
|
|
13846
13845
|
minZoom: .5,
|
|
13847
|
-
scrollLimit: '
|
|
13846
|
+
scrollLimit: 'Diagram',
|
|
13848
13847
|
canAutoScroll: true,
|
|
13849
13848
|
currentZoom: 1.2,
|
|
13850
13849
|
padding: { top: 0, bottom: 0 },
|
|
@@ -13978,7 +13977,7 @@ class FlowViewComponent extends TraceBase {
|
|
|
13978
13977
|
let configuration = this._configuration[node.type];
|
|
13979
13978
|
let recipients = this.model.recipients.
|
|
13980
13979
|
filter(r => r.nodeId === node.id &&
|
|
13981
|
-
r.received >= this.model.issued)
|
|
13980
|
+
(!this.model.issued || r.received >= this.model.issued))
|
|
13982
13981
|
.sort((r0, r1) => r0.received > r1.received ? 1 : -1);
|
|
13983
13982
|
if (recipients.length) {
|
|
13984
13983
|
let r = 0;
|
|
@@ -14179,7 +14178,7 @@ class FlowViewComponent extends TraceBase {
|
|
|
14179
14178
|
if (node.error)
|
|
14180
14179
|
tooltip.error = node.error;
|
|
14181
14180
|
let annotation, state;
|
|
14182
|
-
const log = this.model.log.filter(l => l.nodeId === node.id && l.time >= this.model.issued);
|
|
14181
|
+
const log = this.model.log.filter(l => l.nodeId === node.id && (!this.model.issued || l.time >= this.model.issued));
|
|
14183
14182
|
const stateLog = log.find(l => l.type === 'StateChange');
|
|
14184
14183
|
if (stateLog) {
|
|
14185
14184
|
state = this._session.profile.states.find(s => s.name === stateLog.state);
|
|
@@ -14759,7 +14758,7 @@ class TraceViewComponent extends TraceBase {
|
|
|
14759
14758
|
_filter() {
|
|
14760
14759
|
switch (this._showMode) {
|
|
14761
14760
|
case 'active':
|
|
14762
|
-
this.data = this._data.filter(l => l.time >= this.model.issued);
|
|
14761
|
+
this.data = this.model.issued ? this._data.filter(l => l.time >= this.model.issued) : this._data;
|
|
14763
14762
|
break;
|
|
14764
14763
|
case 'route':
|
|
14765
14764
|
this.data = this._data.filter(l => l.type === 'ActionTaken' || l.type === 'Estimate' || l.type === 'Pending');
|
|
@@ -16864,7 +16863,7 @@ class ConversationComponent {
|
|
|
16864
16863
|
}
|
|
16865
16864
|
_persist() {
|
|
16866
16865
|
this._input.text && this._input.text.length &&
|
|
16867
|
-
window.localStorage.setItem(this.
|
|
16866
|
+
window.localStorage.setItem(this.contact.id, this._input.text);
|
|
16868
16867
|
}
|
|
16869
16868
|
}
|
|
16870
16869
|
ConversationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.5", ngImport: i0, type: ConversationComponent, deps: [{ token: BIZDOC_CONFIG }, { token: ChatService }, { token: HubService }, { token: TranslateService }, { token: AccountService }, { token: PromptService }, { token: i0.ViewContainerRef }, { token: i1$4.Overlay }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -16894,7 +16893,16 @@ class ConversationPaneComponent {
|
|
|
16894
16893
|
pane.paramsChange.subscribe(p => {
|
|
16895
16894
|
pane.group = translate.get('Chat');
|
|
16896
16895
|
const id = p['id'];
|
|
16897
|
-
this.contact = session.profile.contacts.find(c => c.id === id)
|
|
16896
|
+
this.contact = session.profile.contacts.find(c => c.id === id);
|
|
16897
|
+
if (!this.contact) {
|
|
16898
|
+
this.contact = {
|
|
16899
|
+
id,
|
|
16900
|
+
accepted: false,
|
|
16901
|
+
time: new Date().toJSON(),
|
|
16902
|
+
count: 0
|
|
16903
|
+
};
|
|
16904
|
+
session.profile.contacts.push(this.contact);
|
|
16905
|
+
}
|
|
16898
16906
|
accounts.get(id).subscribe(u => pane.title = u.name);
|
|
16899
16907
|
});
|
|
16900
16908
|
chat.change.pipe(takeUntil$1(this._destroy)).
|
|
@@ -19333,7 +19341,7 @@ function prepareRoutes(routes, treePath) {
|
|
|
19333
19341
|
fullPath,
|
|
19334
19342
|
regEx: new RegExp('^' + fullPath.
|
|
19335
19343
|
replace('/', '\\/').
|
|
19336
|
-
replace(PANE_PARAMS_REGEX, e => `(?<${e.substr(1)}>[\\w
|
|
19344
|
+
replace(PANE_PARAMS_REGEX, e => `(?<${e.substr(1)}>[\\w@\\-]*)`))
|
|
19337
19345
|
});
|
|
19338
19346
|
if (route.children) {
|
|
19339
19347
|
let children = prepareRoutes(route.children, fullPath);
|