@dereekb/dbx-web 10.0.23 → 10.0.24
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/calendar/package.json +1 -1
- package/esm2022/lib/extension/download/index.mjs +2 -0
- package/esm2022/lib/extension/download/text/download.text.component.mjs +126 -0
- package/esm2022/lib/extension/download/text/download.text.mjs +2 -0
- package/esm2022/lib/extension/download/text/download.text.module.mjs +42 -0
- package/esm2022/lib/extension/download/text/index.mjs +4 -0
- package/esm2022/lib/extension/index.mjs +3 -2
- package/esm2022/lib/layout/content/content.pit.directive.mjs +8 -5
- package/esm2022/lib/loading/loading-progress.component.mjs +4 -4
- package/fesm2022/dereekb-dbx-web.mjs +187 -40
- package/fesm2022/dereekb-dbx-web.mjs.map +1 -1
- package/lib/extension/download/index.d.ts +1 -0
- package/lib/extension/download/text/download.text.component.d.ts +40 -0
- package/lib/extension/download/text/download.text.component.scss +0 -0
- package/lib/extension/download/text/download.text.d.ts +5 -0
- package/lib/extension/download/text/download.text.module.d.ts +12 -0
- package/lib/extension/download/text/index.d.ts +3 -0
- package/lib/extension/index.d.ts +1 -0
- package/lib/layout/content/_content.scss +6 -0
- package/lib/layout/content/content.pit.directive.d.ts +3 -1
- package/lib/layout/style/_style.scss +4 -0
- package/lib/loading/_loading.scss +4 -0
- package/mapbox/package.json +1 -1
- package/package.json +1 -1
- package/table/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './text';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
3
|
+
import { AbstractSubscriptionDirective, HandleActionFunction } from '@dereekb/dbx-core';
|
|
4
|
+
import { LoadingState } from '@dereekb/rxjs';
|
|
5
|
+
import { Maybe } from '@dereekb/util';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import { Clipboard } from '@angular/cdk/clipboard';
|
|
8
|
+
import { DownloadTextContent } from './download.text';
|
|
9
|
+
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* DbxStructureDirective used specifically on the body of the app.
|
|
13
|
+
*/
|
|
14
|
+
export declare class DbxDownloadTextViewComponent extends AbstractSubscriptionDirective {
|
|
15
|
+
private readonly _clipboard;
|
|
16
|
+
private readonly _matSnackbar;
|
|
17
|
+
private readonly _sanitizer;
|
|
18
|
+
loadingText?: Maybe<string>;
|
|
19
|
+
linear?: Maybe<boolean>;
|
|
20
|
+
showTitle: boolean;
|
|
21
|
+
showPreview: boolean;
|
|
22
|
+
private _downloadButton;
|
|
23
|
+
readonly downloadButton$: Observable<Maybe<ElementRef<any>>>;
|
|
24
|
+
private _contentLoadingState;
|
|
25
|
+
readonly contentLoadingState$: Observable<LoadingState<DownloadTextContent>>;
|
|
26
|
+
readonly content$: Observable<Maybe<DownloadTextContent>>;
|
|
27
|
+
readonly contentData$: Observable<string | undefined>;
|
|
28
|
+
readonly context: import("@dereekb/rxjs").LoadingStateContextInstance<unknown, LoadingState<DownloadTextContent>>;
|
|
29
|
+
readonly fileName$: Observable<string>;
|
|
30
|
+
readonly fileUrl$: Observable<Maybe<SafeResourceUrl>>;
|
|
31
|
+
readonly downloadReady$: Observable<boolean>;
|
|
32
|
+
constructor(_clipboard: Clipboard, _matSnackbar: MatSnackBar, _sanitizer: DomSanitizer);
|
|
33
|
+
set content(content: Maybe<DownloadTextContent>);
|
|
34
|
+
set contentState(contentState: Maybe<LoadingState<DownloadTextContent>>);
|
|
35
|
+
set downloadButton(downloadButton: ElementRef);
|
|
36
|
+
ngOnDestroy(): void;
|
|
37
|
+
readonly handleCopyToClipboard: HandleActionFunction;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxDownloadTextViewComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxDownloadTextViewComponent, "dbx-download-text-view", never, { "loadingText": { "alias": "loadingText"; "required": false; }; "linear": { "alias": "linear"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "showPreview": { "alias": "showPreview"; "required": false; }; "content": { "alias": "content"; "required": false; }; "contentState": { "alias": "contentState"; "required": false; }; }, {}, never, never, false, never>;
|
|
40
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./download.text.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../../../loading/loading.module";
|
|
5
|
+
import * as i4 from "../../../button/button.module";
|
|
6
|
+
import * as i5 from "../../../action/action.module";
|
|
7
|
+
import * as i6 from "@angular/material/snack-bar";
|
|
8
|
+
export declare class DbxDownloadTextModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxDownloadTextModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxDownloadTextModule, [typeof i1.DbxDownloadTextViewComponent], [typeof i2.CommonModule, typeof i3.DbxLoadingModule, typeof i4.DbxButtonModule, typeof i5.DbxActionModule, typeof i6.MatSnackBarModule], [typeof i1.DbxDownloadTextViewComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxDownloadTextModule>;
|
|
12
|
+
}
|
package/lib/extension/index.d.ts
CHANGED
|
@@ -52,6 +52,12 @@ $scroll-content-bottom-padding: 42px;
|
|
|
52
52
|
opacity: 0.66; // increase opacity slightly to make it easier to read against background
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
.dbx-content-pit-scrollable {
|
|
56
|
+
max-height: 140px; // TODO: Allow configuring height
|
|
57
|
+
max-width: 100%;
|
|
58
|
+
overflow-y: scroll;
|
|
59
|
+
}
|
|
60
|
+
|
|
55
61
|
.dbx-content-end {
|
|
56
62
|
margin-bottom: $content-end-margin;
|
|
57
63
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { Maybe } from '@dereekb/util';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* Component used to wrap content in a pit with a label.
|
|
4
5
|
*/
|
|
5
6
|
export declare class DbxContentPitDirective {
|
|
7
|
+
scrollable?: Maybe<boolean>;
|
|
6
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxContentPitDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentPitDirective, "dbx-content-pit, [dbxContentPit]", never, {}, {}, never, never, false, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentPitDirective, "dbx-content-pit, [dbxContentPit]", never, { "scrollable": { "alias": "scrollable"; "required": false; }; }, {}, never, never, false, never>;
|
|
8
10
|
}
|
package/mapbox/package.json
CHANGED
package/package.json
CHANGED