@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.
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ export interface DownloadTextContent {
2
+ readonly content: string;
3
+ readonly name: string;
4
+ readonly mimeType?: string;
5
+ }
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ export * from './download.text.component';
2
+ export * from './download.text.module';
3
+ export * from './download.text';
@@ -1,3 +1,4 @@
1
1
  export * from './model';
2
+ export * from './download';
2
3
  export * from './structure';
3
4
  export * from './widget';
@@ -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
  }
@@ -34,6 +34,10 @@ $dbx-success-color-var: --dbx-success-color;
34
34
  margin: $padding !important;
35
35
  }
36
36
 
37
+ .dbx-mb#{$i} {
38
+ margin-bottom: $padding !important;
39
+ }
40
+
37
41
  .dbx-mv#{$i} {
38
42
  margin: $padding 0 !important;
39
43
  }
@@ -10,6 +10,10 @@ $linear-line-height: 4px;
10
10
  .dbx-loading-linear-done-padding {
11
11
  padding-top: $linear-line-height;
12
12
  }
13
+
14
+ .dbx-loading-progress-hint {
15
+ padding-top: 4px;
16
+ }
13
17
  }
14
18
 
15
19
  @mixin color($theme-config) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-web/mapbox",
3
- "version": "10.0.23",
3
+ "version": "10.0.24",
4
4
  "module": "fesm2022/dereekb-dbx-web-mapbox.mjs",
5
5
  "typings": "index.d.ts",
6
6
  "exports": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-web",
3
- "version": "10.0.23",
3
+ "version": "10.0.24",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.2.12",
6
6
  "@angular/core": "^16.2.12",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-web/table",
3
- "version": "10.0.23",
3
+ "version": "10.0.24",
4
4
  "module": "fesm2022/dereekb-dbx-web-table.mjs",
5
5
  "typings": "index.d.ts",
6
6
  "exports": {