@bizdoc/core 1.11.0-next.7 → 1.11.1
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/assets/themes/brown.min.css +18 -16
- package/assets/themes/dark.min.css +17 -15
- package/assets/themes/deep-purple-teal.min.css +92 -0
- package/assets/themes/default.min.css +18 -16
- package/assets/themes/green.min.css +18 -16
- package/assets/themes/indigo.min.css +18 -16
- package/esm2020/lib/admin/document-trace/document-trace.component.mjs +3 -3
- package/esm2020/lib/admin/document-trace/trace-element.component.mjs +2 -2
- package/esm2020/lib/admin/form/workflow/role-node.component.mjs +5 -4
- package/esm2020/lib/compose/action/action-picker.component.mjs +7 -36
- package/esm2020/lib/compose/action/action.base.mjs +43 -0
- package/esm2020/lib/compose/action/action.pane.dialog.exp.mjs +70 -0
- package/esm2020/lib/compose/form.component.mjs +20 -22
- package/esm2020/lib/compose/trace/flow.component.mjs +5 -4
- package/esm2020/lib/core/configuration.mjs +8 -10
- package/esm2020/lib/core/controls/address.input.mjs +4 -3
- package/esm2020/lib/core/controls/file.input.mjs +38 -11
- package/esm2020/lib/core/mailbox.service.mjs +4 -4
- package/esm2020/lib/core/translations.mjs +3 -1
- package/esm2020/lib/cube/cube.service.mjs +8 -9
- package/esm2020/lib/cube/grid/spreadsheet.component.mjs +3 -2
- package/esm2020/lib/cube/matrix/matrix.pane.component.mjs +4 -6
- package/esm2020/lib/cube/matrix/table.component.mjs +61 -10
- package/esm2020/lib/cube/pivot/pivot.component.mjs +3 -1
- package/esm2020/lib/desktop.module.mjs +6 -6
- package/esm2020/lib/routes.desktop.mjs +13 -7
- package/esm2020/lib/views/cube/cube-base.mjs +7 -9
- package/fesm2015/bizdoc-core.mjs +375 -275
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +375 -275
- package/fesm2020/bizdoc-core.mjs.map +1 -1
- package/lib/compose/action/action-picker.component.d.ts +4 -6
- package/lib/compose/action/action.base.d.ts +11 -0
- package/lib/compose/action/action.pane.dialog.exp.d.ts +29 -0
- package/lib/core/configuration.d.ts +8 -10
- package/lib/core/controls/file.input.d.ts +1 -0
- package/lib/core/mailbox.service.d.ts +5 -2
- package/lib/core/translations.d.ts +2 -0
- package/lib/cube/cube.service.d.ts +1 -4
- package/lib/cube/matrix/table.component.d.ts +4 -1
- package/lib/desktop.module.d.ts +2 -2
- package/package.json +1 -1
- package/esm2020/lib/compose/action/action.pane.dialog.mjs +0 -59
- package/lib/compose/action/action.pane.dialog.d.ts +0 -26
@@ -2,24 +2,22 @@ import { AfterViewInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/
|
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
3
3
|
import { MailboxService } from '../../core/mailbox.service';
|
4
4
|
import { Action, RecipientModel } from '../../core/models';
|
5
|
-
import { PromptService } from '../../core/prompt.service';
|
6
5
|
import { SessionService } from '../../core/session.service';
|
6
|
+
import { ActionBase } from './action.base';
|
7
|
+
import { PromptService } from '../../core/prompt.service';
|
7
8
|
import * as i0 from "@angular/core";
|
8
|
-
export declare class ActionPicker implements OnChanges, AfterViewInit {
|
9
|
+
export declare class ActionPicker extends ActionBase implements OnChanges, AfterViewInit {
|
9
10
|
model: RecipientModel<any>;
|
10
11
|
private _session;
|
11
|
-
private _mailbox;
|
12
12
|
private _dialog;
|
13
|
-
private _sb;
|
14
13
|
working: boolean;
|
15
14
|
readonly workingChange: EventEmitter<boolean>;
|
16
15
|
actions: Action[];
|
17
|
-
constructor(model: RecipientModel<any>, _session: SessionService,
|
16
|
+
constructor(model: RecipientModel<any>, _session: SessionService, mailbox: MailboxService, _dialog: MatDialog, sb: PromptService);
|
18
17
|
ngAfterViewInit(): void;
|
19
18
|
ngOnChanges(changes: SimpleChanges): void;
|
20
19
|
private _sortActions;
|
21
20
|
send(action: Action): void;
|
22
|
-
private _handleError;
|
23
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionPicker, never>;
|
24
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<ActionPicker, "bizdoc-action-picker", never, { "working": "working"; }, { "workingChange": "workingChange"; }, never, never>;
|
25
23
|
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { MailboxService } from '../../core/mailbox.service';
|
2
|
+
import { Action, RecipientModel } from '../../core/models';
|
3
|
+
import { PromptService } from '../../core/prompt.service';
|
4
|
+
export declare abstract class ActionBase {
|
5
|
+
private _mailbox;
|
6
|
+
protected _sb: PromptService;
|
7
|
+
model: RecipientModel<any>;
|
8
|
+
constructor(_mailbox: MailboxService, _sb: PromptService);
|
9
|
+
protected _ok(action: Action, args: any): import("rxjs").Observable<RecipientModel<any>>;
|
10
|
+
private _handleError;
|
11
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { ComponentFactoryResolver, EventEmitter, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
2
|
+
import { SessionService } from '../../core/session.service';
|
3
|
+
import { Action } from '../../core/models';
|
4
|
+
import { BizDocComponentFactoryResolver } from '../../core/component-factory-resolver';
|
5
|
+
import { PaneRef } from '../../core/slots/pane-ref';
|
6
|
+
import { MailboxService } from '../../core/mailbox.service';
|
7
|
+
import { PromptService } from '../../core/prompt.service';
|
8
|
+
import { ParamMap } from '../../core/configuration';
|
9
|
+
import { ActionBase } from './action.base';
|
10
|
+
import * as i0 from "@angular/core";
|
11
|
+
export declare class ActionPaneComponent extends ActionBase implements OnInit, OnDestroy {
|
12
|
+
private _pane;
|
13
|
+
private _fr;
|
14
|
+
private _fr2;
|
15
|
+
container: ViewContainerRef;
|
16
|
+
arguments: {};
|
17
|
+
readonly action: Action;
|
18
|
+
valid: boolean;
|
19
|
+
readonly okChange: EventEmitter<ParamMap>;
|
20
|
+
private readonly _destroy;
|
21
|
+
/** action-dialog ctor */
|
22
|
+
constructor(_pane: PaneRef<ActionPaneComponent>, mailbox: MailboxService, _fr: BizDocComponentFactoryResolver, _fr2: ComponentFactoryResolver, sb: PromptService, session: SessionService);
|
23
|
+
close(): void;
|
24
|
+
ok(): void;
|
25
|
+
ngOnInit(): void;
|
26
|
+
ngOnDestroy(): void;
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionPaneComponent, never>;
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionPaneComponent, "bizdoc-action-dialog.pane", never, {}, {}, never, never>;
|
29
|
+
}
|
@@ -25,18 +25,16 @@ export interface CanDismiss<T> {
|
|
25
25
|
onDismiss(component: T): boolean | Promise<boolean> | Observable<boolean>;
|
26
26
|
}
|
27
27
|
export declare enum OpenPolicy {
|
28
|
-
|
28
|
+
Pane = 1,
|
29
29
|
Clear = 2,
|
30
|
-
|
30
|
+
Defer = 4,
|
31
31
|
Pinnable = 8,
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
}
|
39
|
-
export declare const DEFAULT_POLICY: number;
|
32
|
+
Expandable = 16,
|
33
|
+
Tab = 48,
|
34
|
+
Dialog = 112,
|
35
|
+
Dismissable = 128
|
36
|
+
}
|
37
|
+
export declare const DEFAULT_POLICY: OpenPolicy;
|
40
38
|
export interface BizDocChildConfig {
|
41
39
|
components: Type<any>[];
|
42
40
|
}
|
@@ -50,6 +50,7 @@ export declare class FileInput implements MatFormFieldControl<number | number[]>
|
|
50
50
|
checkIn(item: AttachmentExtra): void;
|
51
51
|
checkOut(item: AttachmentExtra): void;
|
52
52
|
discard(item: AttachmentExtra): void;
|
53
|
+
private _handleError;
|
53
54
|
ngOnInit(): void;
|
54
55
|
handleDocumentDrop(event: KeyboardEvent): void;
|
55
56
|
handleDrop(event: DragEvent): void;
|
@@ -36,9 +36,12 @@ export declare class MailboxService {
|
|
36
36
|
*/
|
37
37
|
changeState(documentId: number, stateId: string, userId?: string): Observable<any>;
|
38
38
|
move(id: number, folderId: string): Observable<any>;
|
39
|
-
checkOut(recipientId: number, version: number, attachmentId: number): Observable<
|
39
|
+
checkOut(recipientId: number, version: number, attachmentId: number): Observable<Attachment>;
|
40
40
|
checkIn(recipientId: number, version: number, attachmentId: number, file: File): Observable<Attachment>;
|
41
|
-
upload(recipientId: number, formId: string, version: number,
|
41
|
+
upload(recipientId: number, formId: string, version: number, file: File, options?: {
|
42
|
+
isPrivate?: boolean;
|
43
|
+
}): Observable<Attachment>;
|
44
|
+
upload(recipientId: number, formId: string, version: number, files: File[], options?: {
|
42
45
|
isPrivate?: boolean;
|
43
46
|
}): Observable<Attachment[]>;
|
44
47
|
/**
|
@@ -84,6 +84,7 @@ export declare const STRINGS: {
|
|
84
84
|
CheckedIn: string;
|
85
85
|
DragFile: string;
|
86
86
|
Expand: string;
|
87
|
+
Condition: string;
|
87
88
|
WorkingHome: string;
|
88
89
|
Emoji: string;
|
89
90
|
NextLevel: string;
|
@@ -513,6 +514,7 @@ export declare const STRINGS: {
|
|
513
514
|
Working: string;
|
514
515
|
};
|
515
516
|
'he-IL': {
|
517
|
+
Condition: string;
|
516
518
|
DragFile: string;
|
517
519
|
Mention: string;
|
518
520
|
Working: string;
|
@@ -23,7 +23,6 @@ export declare class CubeService {
|
|
23
23
|
private _type;
|
24
24
|
private _session;
|
25
25
|
private readonly _cache;
|
26
|
-
private readonly _exchangeRates;
|
27
26
|
constructor(_config: BizDocConfig, _http: HttpClient, _type: DatasourceService, _session: SessionService);
|
28
27
|
private _cacheOr;
|
29
28
|
/** system currency */
|
@@ -103,9 +102,7 @@ export declare class CubeService {
|
|
103
102
|
* @param axes
|
104
103
|
* @param cube
|
105
104
|
*/
|
106
|
-
nameOf(axes:
|
107
|
-
[axis: string]: AxisType;
|
108
|
-
}, cube: string): Observable<string>;
|
105
|
+
nameOf(axes: AxesMap, cube: string): Observable<string>;
|
109
106
|
/**
|
110
107
|
* explore indices by axis
|
111
108
|
* @param cube name
|
@@ -5,12 +5,14 @@ import { DatasourceService } from '../../core/datasource.service';
|
|
5
5
|
import { PromptService } from '../../core/prompt.service';
|
6
6
|
import { AxesMap, Cube, CubeAxis, CubeIndex } from '../../core/models';
|
7
7
|
import { ScopeType } from '../../core/configuration';
|
8
|
+
import { TranslateService } from '../../core/translate.service';
|
8
9
|
import * as i0 from "@angular/core";
|
9
10
|
/** cube matrix component*/
|
10
11
|
export declare class CubeMatrixComponent implements OnChanges {
|
11
12
|
private _sb;
|
12
13
|
private _service;
|
13
14
|
private _session;
|
15
|
+
private _translate;
|
14
16
|
private _ds;
|
15
17
|
readonly PRECISION: string;
|
16
18
|
readonly LANGUAGE: string;
|
@@ -49,7 +51,7 @@ export declare class CubeMatrixComponent implements OnChanges {
|
|
49
51
|
series: CubeAxis;
|
50
52
|
private _data;
|
51
53
|
private _prepare;
|
52
|
-
constructor(_sb: PromptService, _service: CubeService, _session: SessionService, _ds: DatasourceService);
|
54
|
+
constructor(_sb: PromptService, _service: CubeService, _session: SessionService, _translate: TranslateService, _ds: DatasourceService);
|
53
55
|
ngOnChanges(changes: SimpleChanges): void;
|
54
56
|
private _addsumheaders;
|
55
57
|
refresh(): void;
|
@@ -58,6 +60,7 @@ export declare class CubeMatrixComponent implements OnChanges {
|
|
58
60
|
private _calculatesum;
|
59
61
|
private _format;
|
60
62
|
explore(column: HeaderInfo, row: HeaderInfo): void;
|
63
|
+
export(): void;
|
61
64
|
move(x: any, y: any): void;
|
62
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<CubeMatrixComponent, never>;
|
63
66
|
static ɵcmp: i0.ɵɵComponentDeclaration<CubeMatrixComponent, "bizdoc-cube-matrix", never, { "seriesTotalLabel": "seriesTotalLabel"; "xAxisTotalLabel": "xAxisTotalLabel"; "_cube": "cube"; "_xAxis": "xAxis"; "_series": "series"; "_indices": "indices"; "scope": "scope"; "sum": "sum"; "filters": "filters"; "loading": "loading"; "interactive": "interactive"; }, { "onExplore": "explore"; "loadingChange": "loadingChange"; }, never, never>;
|
package/lib/desktop.module.d.ts
CHANGED
@@ -19,7 +19,7 @@ import * as i15 from "./cube/explore/explore.pane.component";
|
|
19
19
|
import * as i16 from "./notifications/notifications.pane.component";
|
20
20
|
import * as i17 from "./compose/trace/trace.pane.component";
|
21
21
|
import * as i18 from "./compose/version-compare/version.pane.component";
|
22
|
-
import * as i19 from "./compose/action/action.pane.dialog";
|
22
|
+
import * as i19 from "./compose/action/action.pane.dialog.exp";
|
23
23
|
import * as i20 from "./compose/comments/Comments.pane.component";
|
24
24
|
import * as i21 from "./reports/reports-menu.component";
|
25
25
|
import * as i22 from "./reports/report.pane.component";
|
@@ -40,6 +40,6 @@ import * as i36 from "./shared.module";
|
|
40
40
|
export declare class DesktopModule {
|
41
41
|
static forChild(config: BizDocChildConfig): ModuleWithProviders<DesktopModule>;
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<DesktopModule, never>;
|
43
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DesktopModule, [typeof i1.DocumentInfoPaneComponent, typeof i2.DocumentViewPaneComponent, typeof i3.QuickToolsComponent, typeof i4.QuickNotificationsComponent, typeof i5.DashboardPaneComponent, typeof i6.AdminMenuComponent, typeof i7.HomeComponent, typeof i8.QuickSignComponent, typeof i9.QuickOptionsComponent, typeof i10.SlotRouterDirective, typeof i11.SlotsComponent, typeof i12.CubeMenuComponent, typeof i13.CubeViewPaneComponent, typeof i14.ExploreItemPaneComponent, typeof i15.CubeExplorePaneComponent, typeof i16.NotificationsPaneComponent, typeof i17.TracePaneComponent, typeof i18.VersionPaneComponent, typeof i19.
|
43
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DesktopModule, [typeof i1.DocumentInfoPaneComponent, typeof i2.DocumentViewPaneComponent, typeof i3.QuickToolsComponent, typeof i4.QuickNotificationsComponent, typeof i5.DashboardPaneComponent, typeof i6.AdminMenuComponent, typeof i7.HomeComponent, typeof i8.QuickSignComponent, typeof i9.QuickOptionsComponent, typeof i10.SlotRouterDirective, typeof i11.SlotsComponent, typeof i12.CubeMenuComponent, typeof i13.CubeViewPaneComponent, typeof i14.ExploreItemPaneComponent, typeof i15.CubeExplorePaneComponent, typeof i16.NotificationsPaneComponent, typeof i17.TracePaneComponent, typeof i18.VersionPaneComponent, typeof i19.ActionPaneComponent, typeof i20.CommentsPaneComponent, typeof i21.ReportsMenuComponent, typeof i22.ReportPaneComponent, typeof i23.FoldersMenuComponent, typeof i24.BrowsePaneComponent, typeof i25.ComposeMenuComponent, typeof i26.ComposePaneComponent, typeof i27.CubeMatrixPaneComponent, typeof i28.SchedulerPaneComponent, typeof i29.ContactsPaneComponent, typeof i30.ConversationPaneComponent], [typeof i31.CommonModule, typeof i32.HttpClientModule, typeof i33.ReactiveFormsModule, typeof i34.FlexLayoutModule, typeof i35.RouterModule, typeof i36.SharedModule], [typeof i10.SlotRouterDirective, typeof i11.SlotsComponent, typeof i5.DashboardPaneComponent, typeof i12.CubeMenuComponent, typeof i13.CubeViewPaneComponent, typeof i14.ExploreItemPaneComponent, typeof i15.CubeExplorePaneComponent, typeof i16.NotificationsPaneComponent, typeof i17.TracePaneComponent, typeof i18.VersionPaneComponent, typeof i19.ActionPaneComponent, typeof i20.CommentsPaneComponent, typeof i21.ReportsMenuComponent, typeof i22.ReportPaneComponent, typeof i23.FoldersMenuComponent, typeof i24.BrowsePaneComponent, typeof i25.ComposeMenuComponent, typeof i26.ComposePaneComponent, typeof i27.CubeMatrixPaneComponent, typeof i28.SchedulerPaneComponent, typeof i29.ContactsPaneComponent, typeof i30.ConversationPaneComponent]>;
|
44
44
|
static ɵinj: i0.ɵɵInjectorDeclaration<DesktopModule>;
|
45
45
|
}
|
package/package.json
CHANGED
@@ -1,59 +0,0 @@
|
|
1
|
-
import { Component, ViewChild } from '@angular/core';
|
2
|
-
import { Subject } from 'rxjs';
|
3
|
-
import { takeUntil } from 'rxjs/operators';
|
4
|
-
import { LayoutComponent } from '../../core/layout/layout.component';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
import * as i1 from "../../core/slots/pane-ref";
|
7
|
-
import * as i2 from "../../core/component-factory-resolver";
|
8
|
-
import * as i3 from "../../core/session.service";
|
9
|
-
import * as i4 from "@angular/material/button";
|
10
|
-
import * as i5 from "@angular/material/dialog";
|
11
|
-
import * as i6 from "@angular/common";
|
12
|
-
import * as i7 from "../../core/pipes/translate.pipe";
|
13
|
-
/** action-dialog component*/
|
14
|
-
export class ActionPaneDialog {
|
15
|
-
constructor(slot, _fr, _fr2, session) {
|
16
|
-
this._fr = _fr;
|
17
|
-
this._fr2 = _fr2;
|
18
|
-
this.arguments = {};
|
19
|
-
/** action-dialog ctor */
|
20
|
-
this._destroy = new Subject();
|
21
|
-
this.action = session.profile.actions.find(a => a.name === slot.params.action);
|
22
|
-
}
|
23
|
-
ngOnInit() {
|
24
|
-
if (this.action.template) {
|
25
|
-
const factory = this._fr.resolve(this.action.template);
|
26
|
-
const cRef = this.container.createComponent(factory);
|
27
|
-
cRef.instance.form.valueChanges.pipe(takeUntil(this._destroy)).subscribe(v => this.arguments = v);
|
28
|
-
cRef.instance.form.statusChanges.pipe(takeUntil(this._destroy)).
|
29
|
-
subscribe(() => this.valid = cRef.instance.form.valid);
|
30
|
-
}
|
31
|
-
else {
|
32
|
-
if (this.action.arguments.length === 0)
|
33
|
-
this.valid = true;
|
34
|
-
else {
|
35
|
-
const factory = this._fr2.resolveComponentFactory(LayoutComponent);
|
36
|
-
const cRef = this.container.createComponent(factory);
|
37
|
-
cRef.instance.fields = this.action.arguments;
|
38
|
-
cRef.instance.modelChange.pipe(takeUntil(this._destroy)).subscribe(v => this.arguments = v);
|
39
|
-
cRef.instance.validChange.pipe(takeUntil(this._destroy)).subscribe(v => this.valid = v);
|
40
|
-
}
|
41
|
-
}
|
42
|
-
}
|
43
|
-
ngOnDestroy() {
|
44
|
-
this._destroy.next();
|
45
|
-
this._destroy.complete();
|
46
|
-
}
|
47
|
-
}
|
48
|
-
ActionPaneDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ActionPaneDialog, deps: [{ token: i1.PaneRef }, { token: i2.BizDocComponentFactoryResolver }, { token: i0.ComponentFactoryResolver }, { token: i3.SessionService }], target: i0.ɵɵFactoryTarget.Component });
|
49
|
-
ActionPaneDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: ActionPaneDialog, selector: "bizdoc-action-dialog.pane", host: { classAttribute: "pane" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: "<h2 mat-dialog-title>{{action.title}}</h2>\r\n<mat-dialog-content>\r\n <p *ngIf=\"!action.arguments.length\">\r\n {{ 'ActionAsk' | translate : (action.verb || action.title).toLowerCase() }}\r\n </p>\r\n <ng-container #container>\r\n </ng-container>\r\n</mat-dialog-content>\r\n<mat-dialog-actions>\r\n <button mat-button type=\"submit\" [disabled]=\"!valid\" [mat-dialog-close]=\"arguments\" color=\"primary\" cdkFocusInitial>{{'Yes'|translate}}</button>\r\n <button mat-button mat-dialog-close>{{'No' | translate}}</button>\r\n</mat-dialog-actions>\r\n", styles: [":host ::ng-deep form{display:flex}\n"], components: [{ type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i5.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i5.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i5.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }], pipes: { "translate": i7.TranslatePipe } });
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ActionPaneDialog, decorators: [{
|
51
|
-
type: Component,
|
52
|
-
args: [{ selector: 'bizdoc-action-dialog.pane', host: {
|
53
|
-
class: 'pane'
|
54
|
-
}, template: "<h2 mat-dialog-title>{{action.title}}</h2>\r\n<mat-dialog-content>\r\n <p *ngIf=\"!action.arguments.length\">\r\n {{ 'ActionAsk' | translate : (action.verb || action.title).toLowerCase() }}\r\n </p>\r\n <ng-container #container>\r\n </ng-container>\r\n</mat-dialog-content>\r\n<mat-dialog-actions>\r\n <button mat-button type=\"submit\" [disabled]=\"!valid\" [mat-dialog-close]=\"arguments\" color=\"primary\" cdkFocusInitial>{{'Yes'|translate}}</button>\r\n <button mat-button mat-dialog-close>{{'No' | translate}}</button>\r\n</mat-dialog-actions>\r\n", styles: [":host ::ng-deep form{display:flex}\n"] }]
|
55
|
-
}], ctorParameters: function () { return [{ type: i1.PaneRef }, { type: i2.BizDocComponentFactoryResolver }, { type: i0.ComponentFactoryResolver }, { type: i3.SessionService }]; }, propDecorators: { container: [{
|
56
|
-
type: ViewChild,
|
57
|
-
args: ['container']
|
58
|
-
}] } });
|
59
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLnBhbmUuZGlhbG9nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicmFyaWVzL2NvcmUvc3JjL2xpYi9jb21wb3NlL2FjdGlvbi9hY3Rpb24ucGFuZS5kaWFsb2cudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2NvbXBvc2UvYWN0aW9uL2FjdGlvbi5wYW5lLmRpYWxvZy5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQStDLFNBQVMsRUFBb0IsTUFBTSxlQUFlLENBQUM7QUFDcEgsT0FBTyxFQUFF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93ZXJDYXNlKCkgfX1cclxuICA8L3A+XHJcbiAgPG5nLWNvbnRhaW5lciAjY29udGFpbmVyPlxyXG4gIDwvbmctY29udGFpbmVyPlxyXG48L21hdC1kaWFsb2ctY29udGVudD5cclxuPG1hdC1kaWFsb2ctYWN0aW9ucz5cclxuICA8YnV0dG9uIG1hdC1idXR0b24gdHlwZT1cInN1Ym1pdFwiIFtkaXNhYmxlZF09XCIhdmFsaWRcIiBbbWF0LWRpYWxvZy1jbG9zZV09XCJhcmd1bWVudHNcIiBjb2xvcj1cInByaW1hcnlcIiBjZGtGb2N1c0luaXRpYWw+e3snWWVzJ3x0cmFuc2xhdGV9fTwvYnV0dG9uPlxyXG4gIDxidXR0b24gbWF0LWJ1dHRvbiBtYXQtZGlhbG9nLWNsb3NlPnt7J05vJyB8IHRyYW5zbGF0ZX19PC9idXR0b24+XHJcbjwvbWF0LWRpYWxvZy1hY3Rpb25zPlxyXG4iXX0=
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { ComponentFactoryResolver, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
2
|
-
import { SessionService } from '../../core/session.service';
|
3
|
-
import { Action } from '../../core/models';
|
4
|
-
import { BizDocComponentFactoryResolver } from '../../core/component-factory-resolver';
|
5
|
-
import { PaneRef } from '../../core/slots/pane-ref';
|
6
|
-
import * as i0 from "@angular/core";
|
7
|
-
export declare class ActionPaneDialog implements OnInit, OnDestroy {
|
8
|
-
private _fr;
|
9
|
-
private _fr2;
|
10
|
-
container: ViewContainerRef;
|
11
|
-
arguments: {};
|
12
|
-
readonly action: Action;
|
13
|
-
valid: boolean;
|
14
|
-
data: ActionDialogData;
|
15
|
-
/** action-dialog ctor */
|
16
|
-
private readonly _destroy;
|
17
|
-
constructor(slot: PaneRef<ActionPaneDialog>, _fr: BizDocComponentFactoryResolver, _fr2: ComponentFactoryResolver, session: SessionService);
|
18
|
-
ngOnInit(): void;
|
19
|
-
ngOnDestroy(): void;
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ActionPaneDialog, never>;
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionPaneDialog, "bizdoc-action-dialog.pane", never, {}, {}, never, never>;
|
22
|
-
}
|
23
|
-
export interface ActionDialogData {
|
24
|
-
action: string;
|
25
|
-
multiple?: boolean;
|
26
|
-
}
|