@codetectonics/mantle 1.2.2 → 1.2.4

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/index.d.ts CHANGED
@@ -11,6 +11,8 @@ import * as i108 from '@angular/cdk/layout';
11
11
  import { BreakpointObserver } from '@angular/cdk/layout';
12
12
  import * as i8 from '@angular/material/dialog';
13
13
  import { MatDialog, MatDialogRef, MatDialogConfig } from '@angular/material/dialog';
14
+ import * as quill_table_better_dist_types_keyboard from 'quill-table-better/dist/types/keyboard';
15
+ import Quill from 'quill';
14
16
  import * as i25 from '@angular/material/snack-bar';
15
17
  import { MatSnackBar, MatSnackBarRef } from '@angular/material/snack-bar';
16
18
  import * as i6 from '@angular/material/chips';
@@ -610,11 +612,77 @@ declare class MultiselectDisplayComponent {
610
612
  static ɵcmp: i0.ɵɵComponentDeclaration<MultiselectDisplayComponent, "mantle-multiselect-display", never, { "value": { "alias": "value"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, false, never>;
611
613
  }
612
614
 
613
- declare class RichTextDisplayComponent {
614
- quillModules: {
615
- toolbar: boolean;
615
+ declare abstract class RichTextBaseComponent {
616
+ protected buildModules(options?: {
617
+ mentionSource?: (searchTerm: string, renderList: any) => void;
618
+ }): {
619
+ clipboard: {
620
+ matchVisual: boolean;
621
+ };
622
+ table: boolean;
623
+ toolbar: (string[] | {
624
+ header: (string | boolean)[];
625
+ }[] | {
626
+ list: string;
627
+ }[] | {
628
+ indent: string;
629
+ }[] | {
630
+ align: never[];
631
+ }[])[];
632
+ 'table-better': {
633
+ language: string;
634
+ menus: string[];
635
+ toolbarTable: boolean;
636
+ };
637
+ keyboard: {
638
+ bindings: {
639
+ [propName: string]: quill_table_better_dist_types_keyboard.BindingObject;
640
+ };
641
+ };
642
+ mention: {
643
+ allowedChars: RegExp;
644
+ mentionDenotationChars: string[];
645
+ positioningStrategy: string;
646
+ source: (searchTerm: string, renderList: any) => void;
647
+ };
616
648
  };
649
+ protected loadHtmlIntoEditor(quill: Quill, html: string): void;
650
+ }
651
+
652
+ declare class RichTextDisplayComponent extends RichTextBaseComponent {
617
653
  value: any;
654
+ quillModules: {
655
+ clipboard: {
656
+ matchVisual: boolean;
657
+ };
658
+ table: boolean;
659
+ toolbar: (string[] | {
660
+ header: (string | boolean)[];
661
+ }[] | {
662
+ list: string;
663
+ }[] | {
664
+ indent: string;
665
+ }[] | {
666
+ align: never[];
667
+ }[])[];
668
+ 'table-better': {
669
+ language: string;
670
+ menus: string[];
671
+ toolbarTable: boolean;
672
+ };
673
+ keyboard: {
674
+ bindings: {
675
+ [propName: string]: quill_table_better_dist_types_keyboard.BindingObject;
676
+ };
677
+ };
678
+ mention: {
679
+ allowedChars: RegExp;
680
+ mentionDenotationChars: string[];
681
+ positioningStrategy: string;
682
+ source: (searchTerm: string, renderList: any) => void;
683
+ };
684
+ };
685
+ onEditorCreated(quill: Quill): void;
618
686
  static ɵfac: i0.ɵɵFactoryDeclaration<RichTextDisplayComponent, never>;
619
687
  static ɵcmp: i0.ɵɵComponentDeclaration<RichTextDisplayComponent, "mantle-rich-text-display", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
620
688
  }
@@ -1190,7 +1258,7 @@ declare class MultiselectInputComponent implements ControlValueAccessor {
1190
1258
  static ɵcmp: i0.ɵɵComponentDeclaration<MultiselectInputComponent, "mantle-multiselect-input", never, { "label": { "alias": "label"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disable": { "alias": "disable"; "required": false; }; "required": { "alias": "required"; "required": false; }; "error": { "alias": "error"; "required": false; }; }, {}, never, never, false, never>;
1191
1259
  }
1192
1260
 
1193
- declare class RichTextInputComponent implements ControlValueAccessor {
1261
+ declare class RichTextInputComponent extends RichTextBaseComponent implements ControlValueAccessor {
1194
1262
  label: string;
1195
1263
  tooltip?: string;
1196
1264
  options: {
@@ -1207,14 +1275,25 @@ declare class RichTextInputComponent implements ControlValueAccessor {
1207
1275
  clipboard: {
1208
1276
  matchVisual: boolean;
1209
1277
  };
1210
- toolbar: {
1211
- container: (string[] | {
1212
- header: (string | boolean)[];
1213
- }[] | {
1214
- list: string;
1215
- }[] | {
1216
- align: never[];
1217
- }[])[];
1278
+ table: boolean;
1279
+ toolbar: (string[] | {
1280
+ header: (string | boolean)[];
1281
+ }[] | {
1282
+ list: string;
1283
+ }[] | {
1284
+ indent: string;
1285
+ }[] | {
1286
+ align: never[];
1287
+ }[])[];
1288
+ 'table-better': {
1289
+ language: string;
1290
+ menus: string[];
1291
+ toolbarTable: boolean;
1292
+ };
1293
+ keyboard: {
1294
+ bindings: {
1295
+ [propName: string]: quill_table_better_dist_types_keyboard.BindingObject;
1296
+ };
1218
1297
  };
1219
1298
  mention: {
1220
1299
  allowedChars: RegExp;
@@ -1223,12 +1302,12 @@ declare class RichTextInputComponent implements ControlValueAccessor {
1223
1302
  source: (searchTerm: string, renderList: any) => void;
1224
1303
  };
1225
1304
  };
1226
- constructor();
1227
1305
  onChange: (newValue: string) => void;
1228
1306
  registerOnChange(fn: (newValue: string) => void): void;
1229
1307
  onTouched: () => void;
1230
1308
  registerOnTouched(fn: () => void): void;
1231
1309
  writeValue(newValue: any): void;
1310
+ onEditorCreated(quill: Quill): void;
1232
1311
  onContentChanged(event: any): void;
1233
1312
  static ɵfac: i0.ɵɵFactoryDeclaration<RichTextInputComponent, never>;
1234
1313
  static ɵcmp: i0.ɵɵComponentDeclaration<RichTextInputComponent, "mantle-rich-text-input", never, { "label": { "alias": "label"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disable": { "alias": "disable"; "required": false; }; "required": { "alias": "required"; "required": false; }; "error": { "alias": "error"; "required": false; }; }, {}, never, never, false, never>;
@@ -1621,14 +1700,14 @@ interface ListPageService {
1621
1700
  noun(): string;
1622
1701
  listColumns(): ListPageColumn[];
1623
1702
  searchFields(): DynamicFormField[];
1703
+ onListContentLoaded(content: any[]): void;
1624
1704
  listPageExportOptions(): ListPageExportOption[];
1625
1705
  listPageBulkExportOptions(): ListPageBulkExportOption[];
1626
1706
  additionalListPageButtons(): ListPageButton[];
1627
1707
  getList(params: WebApiListRequest): Observable<WebApiListResponse>;
1628
1708
  onRecordChecked(record: any): void;
1629
1709
  onRecordUnchecked(record: any): void;
1630
- onCheckAll(records: any[]): void;
1631
- onUncheckAll(): void;
1710
+ isRowSelectable(record: any): boolean;
1632
1711
  openParent(): void;
1633
1712
  openRecord(record: any): void;
1634
1713
  openForm(record?: any, initData?: any): void;
@@ -3060,13 +3139,13 @@ declare class FeatureConfigService implements WebApiCrudAdapter, WebsocketAdapte
3060
3139
  beforeSave(value: any): void;
3061
3140
  onSaveSuccess(response: WebApiSaveResponse): void;
3062
3141
  onSaveFailure(response: WebApiSaveResponse): void;
3142
+ onListContentLoaded(content: any[]): void;
3063
3143
  listPageExportOptions(): ListPageExportOption[];
3064
3144
  listPageBulkExportOptions(): ListPageBulkExportOption[];
3065
3145
  additionalListPageButtons(): ListPageButton[];
3066
3146
  onRecordChecked(record: any): void;
3067
3147
  onRecordUnchecked(record: any): void;
3068
- onCheckAll(records: any[]): void;
3069
- onUncheckAll(): void;
3148
+ isRowSelectable(record: any): boolean;
3070
3149
  }
3071
3150
 
3072
3151
  interface ExportPageService {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codetectonics/mantle",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "dependencies": {
5
5
  "@angular/animations": "^20",
6
6
  "@angular/cdk": "^20",
@@ -30,6 +30,7 @@
30
30
  "ngx-markdown": "^20",
31
31
  "ngx-quill": "^28.0.1",
32
32
  "quill": "^2.0.3",
33
+ "quill-table-better": "^1.2.3",
33
34
  "quill-mention": "^6.1.1",
34
35
  "rxjs": "^7.8.0",
35
36
  "svg2pdf.js": "^2.5.0",