@fiduswriter/bibliography-manager 0.1.4 → 0.1.5

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.
Files changed (73) hide show
  1. package/dist/database/index.d.ts +34 -0
  2. package/dist/database/index.d.ts.map +1 -0
  3. package/dist/database/server_connector.d.ts +22 -0
  4. package/dist/database/server_connector.d.ts.map +1 -0
  5. package/dist/export/index.d.ts +7 -0
  6. package/dist/export/index.d.ts.map +1 -0
  7. package/dist/form/cats.d.ts +9 -0
  8. package/dist/form/cats.d.ts.map +1 -0
  9. package/dist/form/fields/date.d.ts +10 -0
  10. package/dist/form/fields/date.d.ts.map +1 -0
  11. package/dist/form/fields/key.d.ts +17 -0
  12. package/dist/form/fields/key.d.ts.map +1 -0
  13. package/dist/form/fields/key_list.d.ts +12 -0
  14. package/dist/form/fields/key_list.d.ts.map +1 -0
  15. package/dist/form/fields/literal.d.ts +9 -0
  16. package/dist/form/fields/literal.d.ts.map +1 -0
  17. package/dist/form/fields/literal_list.d.ts +11 -0
  18. package/dist/form/fields/literal_list.d.ts.map +1 -0
  19. package/dist/form/fields/literal_long.d.ts +9 -0
  20. package/dist/form/fields/literal_long.d.ts.map +1 -0
  21. package/dist/form/fields/name.d.ts +35 -0
  22. package/dist/form/fields/name.d.ts.map +1 -0
  23. package/dist/form/fields/name_list.d.ts +11 -0
  24. package/dist/form/fields/name_list.d.ts.map +1 -0
  25. package/dist/form/fields/range.d.ts +16 -0
  26. package/dist/form/fields/range.d.ts.map +1 -0
  27. package/dist/form/fields/range_list.d.ts +11 -0
  28. package/dist/form/fields/range_list.d.ts.map +1 -0
  29. package/dist/form/fields/tag_list.d.ts +10 -0
  30. package/dist/form/fields/tag_list.d.ts.map +1 -0
  31. package/dist/form/fields/title.d.ts +9 -0
  32. package/dist/form/fields/title.d.ts.map +1 -0
  33. package/dist/form/fields/uri.d.ts +10 -0
  34. package/dist/form/fields/uri.d.ts.map +1 -0
  35. package/dist/form/fields/verbatim.d.ts +10 -0
  36. package/dist/form/fields/verbatim.d.ts.map +1 -0
  37. package/dist/form/index.d.ts +35 -0
  38. package/dist/form/index.d.ts.map +1 -0
  39. package/dist/form/strings.d.ts +12 -0
  40. package/dist/form/strings.d.ts.map +1 -0
  41. package/dist/form/templates.d.ts +6 -0
  42. package/dist/form/templates.d.ts.map +1 -0
  43. package/dist/import/bibliography_import.d.ts +11 -0
  44. package/dist/import/bibliography_import.d.ts.map +1 -0
  45. package/dist/import/dialog.d.ts +12 -0
  46. package/dist/import/dialog.d.ts.map +1 -0
  47. package/dist/import/index.d.ts +3 -0
  48. package/dist/import/index.d.ts.map +1 -0
  49. package/dist/import/templates.d.ts +2 -0
  50. package/dist/import/templates.d.ts.map +1 -0
  51. package/dist/index.d.ts +4 -0
  52. package/dist/index.d.ts.map +1 -0
  53. package/dist/overview/index.d.ts +59 -0
  54. package/dist/overview/index.d.ts.map +1 -0
  55. package/dist/overview/menu.d.ts +45 -0
  56. package/dist/overview/menu.d.ts.map +1 -0
  57. package/dist/overview/templates.d.ts +4 -0
  58. package/dist/overview/templates.d.ts.map +1 -0
  59. package/dist/plugins/bibliography_overview/index.d.ts +2 -0
  60. package/dist/plugins/bibliography_overview/index.d.ts.map +1 -0
  61. package/dist/schema/common.d.ts +10 -0
  62. package/dist/schema/common.d.ts.map +1 -0
  63. package/dist/schema/csl_bib.d.ts +3 -0
  64. package/dist/schema/csl_bib.d.ts.map +1 -0
  65. package/dist/schema/literal.d.ts +3 -0
  66. package/dist/schema/literal.d.ts.map +1 -0
  67. package/dist/schema/literal_long.d.ts +3 -0
  68. package/dist/schema/literal_long.d.ts.map +1 -0
  69. package/dist/schema/title.d.ts +3 -0
  70. package/dist/schema/title.d.ts.map +1 -0
  71. package/dist/tools.d.ts +4 -0
  72. package/dist/tools.d.ts.map +1 -0
  73. package/package.json +34 -9
@@ -0,0 +1,34 @@
1
+ export class BibliographyDB {
2
+ constructor(app: any);
3
+ app: any;
4
+ db: {};
5
+ cats: any[];
6
+ sc: BibliographyDBServerConnector;
7
+ /** Get the bibliography from the server and create as this.db.
8
+ * @function getDB
9
+ */
10
+ getDB(): Promise<void>;
11
+ /** Saves a bibliography entry to the database on the server.
12
+ * @function saveBibEntries
13
+ * @param tmpDB The bibliography DB with temporary IDs to be send to the server.
14
+ */
15
+ saveBibEntries(tmpDB: any, isNew: any): Promise<any>;
16
+ updateLocalBibEntries(tmpDB: any, idTranslations: any): any;
17
+ /** Update or create new category
18
+ * @function saveCategories
19
+ * @param cats The category objects to add.
20
+ */
21
+ saveCategories(cats: any): Promise<void | any[]>;
22
+ /** Delete a categories
23
+ * @function deleteCategory
24
+ * @param ids A list of ids to delete.
25
+ */
26
+ deleteCategory(ids: any): Promise<any>;
27
+ /** Delete a list of bibliography items both locally and on the server.
28
+ * @function deleteBibEntries
29
+ * @param ids A list of bibliography item ids that are to be deleted.
30
+ */
31
+ deleteBibEntries(ids: any): Promise<any>;
32
+ }
33
+ import { BibliographyDBServerConnector } from "./server_connector.js";
34
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database/index.js"],"names":[],"mappings":"AAKA;IACI,sBAKC;IAJG,SAAc;IACd,OAAY;IACZ,YAAc;IACd,kCAA6C;IAGjD;;OAEG;IAEH,uBA+EC;IAED;;;OAGG;IACH,qDAsBC;IAED,4DAMC;IAED;;;OAGG;IACH,iDAkCC;IAED;;;OAGG;IACH,uCAeC;IAED;;;OAGG;IACH,yCAiCC;CACJ;8CAxO2C,uBAAuB"}
@@ -0,0 +1,22 @@
1
+ export class BibliographyDBServerConnector {
2
+ getDB(lastModified: any, numberOfEntries: any, localStorageOwnerId: any): Promise<{
3
+ bibCats: any;
4
+ bibList: any;
5
+ lastModified: any;
6
+ numberOfEntries: any;
7
+ userId: any;
8
+ }>;
9
+ /** Converts a bibliography item as it arrives from the server to a BibDB object.
10
+ * @function serverBibItemToBibDB
11
+ * @param item The bibliography item from the server.
12
+ */
13
+ serverBibItemToBibDB(bibDBEntry: any): {
14
+ id: any;
15
+ bibDBEntry: any;
16
+ };
17
+ saveBibEntries(tmpDB: any, isNew: any): Promise<any>;
18
+ saveCategories(cats: any): Promise<any>;
19
+ deleteCategory(ids: any): Promise<Response>;
20
+ deleteBibEntries(ids: any): Promise<Response>;
21
+ }
22
+ //# sourceMappingURL=server_connector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server_connector.d.ts","sourceRoot":"","sources":["../../src/database/server_connector.js"],"names":[],"mappings":"AAGA;IAGI;;;;;;OAkBC;IAED;;;OAGG;IACH;;;MAEC;IAED,qDAKC;IAED,wCAMC;IAED,4CAEC;IAED,8CAEC;CACJ"}
@@ -0,0 +1,7 @@
1
+ export class BibLatexFileExporter {
2
+ constructor(bibDB: any, pks: any);
3
+ pks: any;
4
+ bibDB: any;
5
+ init(): void;
6
+ }
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/export/index.js"],"names":[],"mappings":"AAGA;IACI,kCAGC;IAFG,SAAc;IACd,WAAkB;IAGtB,aAgBC;CACJ"}
@@ -0,0 +1,9 @@
1
+ export class CatsForm {
2
+ constructor(dom: any, initialValue?: any[], options?: any[]);
3
+ dom: any;
4
+ checkableList: CheckableList;
5
+ init(): void;
6
+ get value(): (string | number)[];
7
+ }
8
+ import { CheckableList } from "fwtoolkit";
9
+ //# sourceMappingURL=cats.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cats.d.ts","sourceRoot":"","sources":["../../src/form/cats.js"],"names":[],"mappings":"AAEA;IACI,6DAWC;IAVG,SAAc;IACd,6BAQE;IAGN,aAEC;IAED,iCAEC;CACJ;8BAvB2B,WAAW"}
@@ -0,0 +1,10 @@
1
+ export class DateFieldForm {
2
+ constructor(dom: any, initialValue?: string, placeHolder?: string);
3
+ dom: any;
4
+ initialValue: string;
5
+ placeHolder: string;
6
+ init(): void;
7
+ get value(): any;
8
+ check(): boolean;
9
+ }
10
+ //# sourceMappingURL=date.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../src/form/fields/date.js"],"names":[],"mappings":"AAEA;IACI,mEAIC;IAHG,SAAc;IACd,qBAAgC;IAChC,oBAA8B;IAGlC,aAEC;IAED,iBAIC;IAED,iBAUC;CACJ"}
@@ -0,0 +1,17 @@
1
+ export class KeyFieldForm {
2
+ constructor(dom: any, initialValue: any, _unused: any, fieldType?: undefined);
3
+ currentValue: {};
4
+ dom: any;
5
+ fieldType: any;
6
+ predefined: boolean;
7
+ init(): void;
8
+ typeSwitch: TypeSwitch | undefined;
9
+ drawForm(): void;
10
+ drawSelectionListForm(): void;
11
+ drawCustomInputForm(): void;
12
+ fields: {} | undefined;
13
+ get value(): any;
14
+ check(): boolean;
15
+ }
16
+ import { TypeSwitch } from "fwtoolkit";
17
+ //# sourceMappingURL=key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"key.d.ts","sourceRoot":"","sources":["../../../src/form/fields/key.js"],"names":[],"mappings":"AAIA;IACI,8EAYC;IAXG,iBAAsB;IACtB,SAAc;IACd,eAA0B;IAGtB,oBAAuB;IAQ/B,aAuBC;IAtBG,mCAoBE;IAIN,iBAMC;IAED,8BA0BC;IAED,4BAQC;IAPG,uBAAgB;IASpB,iBAiBC;IAED,iBAEC;CACJ;2BAhHwB,WAAW"}
@@ -0,0 +1,12 @@
1
+ export class KeyListForm {
2
+ constructor(dom: any, initialValue: string[] | undefined, _unused: any, fieldType?: undefined);
3
+ dom: any;
4
+ fieldType: any;
5
+ fieldHandlers: WeakMap<object, any>;
6
+ inputList: InputList<string>;
7
+ init(): void;
8
+ get value(): false | string[];
9
+ check(): boolean;
10
+ }
11
+ import { InputList } from "fwtoolkit";
12
+ //# sourceMappingURL=key_list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"key_list.d.ts","sourceRoot":"","sources":["../../../src/form/fields/key_list.js"],"names":[],"mappings":"AAGA;IACI,+FAuBC;IAtBG,SAAc;IACd,eAA0B;IAC1B,oCAAkC;IAClC,6BAkBE;IAGN,aAEC;IAED,8BAMC;IAED,iBAEC;CACJ;0BA5CuB,WAAW"}
@@ -0,0 +1,9 @@
1
+ export class LiteralFieldForm {
2
+ constructor(dom: any, initialValue?: any[], placeHolder?: boolean);
3
+ inlineInput: InlineInput;
4
+ init(): void;
5
+ get value(): false | Record<string, unknown>[];
6
+ check(): boolean;
7
+ }
8
+ import { InlineInput } from "fwtoolkit";
9
+ //# sourceMappingURL=literal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"literal.d.ts","sourceRoot":"","sources":["../../../src/form/fields/literal.js"],"names":[],"mappings":"AAMA;IACI,mEA6BC;IA5BG,yBA2BE;IAGN,aAAS;IAET,+CAEC;IAED,iBAEC;CACJ;4BA7C+B,WAAW"}
@@ -0,0 +1,11 @@
1
+ export class LiteralListForm {
2
+ constructor(dom: any, initialValue?: never[][]);
3
+ dom: any;
4
+ fieldHandlers: WeakMap<object, any>;
5
+ inputList: InputList<never[]>;
6
+ init(): void;
7
+ get value(): false | never[][];
8
+ check(): boolean;
9
+ }
10
+ import { InputList } from "fwtoolkit";
11
+ //# sourceMappingURL=literal_list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"literal_list.d.ts","sourceRoot":"","sources":["../../../src/form/fields/literal_list.js"],"names":[],"mappings":"AAGA;IACI,gDAoBC;IAnBG,SAAc;IACd,oCAAkC;IAClC,8BAgBE;IAGN,aAEC;IAED,+BAMC;IAED,iBAEC;CACJ;0BAzCuB,WAAW"}
@@ -0,0 +1,9 @@
1
+ export class LiteralLongFieldForm {
2
+ constructor(dom: any, initialValue?: any[]);
3
+ inlineInput: InlineInput;
4
+ init(): void;
5
+ get value(): false | Record<string, unknown>[];
6
+ check(): boolean;
7
+ }
8
+ import { InlineInput } from "fwtoolkit";
9
+ //# sourceMappingURL=literal_long.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"literal_long.d.ts","sourceRoot":"","sources":["../../../src/form/fields/literal_long.js"],"names":[],"mappings":"AAMA;IACI,4CA4BC;IA3BG,yBA0BE;IAGN,aAAS;IAET,+CAEC;IAED,iBAEC;CACJ;4BA5C+B,WAAW"}
@@ -0,0 +1,35 @@
1
+ export class NameFieldForm {
2
+ constructor(dom: any, initialValue?: {
3
+ given: never[];
4
+ family: never[];
5
+ prefix: never[];
6
+ suffix: never[];
7
+ useprefix: boolean;
8
+ literal: never[];
9
+ });
10
+ currentValue: {
11
+ given: never[];
12
+ family: never[];
13
+ prefix: never[];
14
+ suffix: never[];
15
+ useprefix: boolean;
16
+ literal: never[];
17
+ };
18
+ dom: any;
19
+ realPerson: boolean;
20
+ init(): void;
21
+ typeSwitch: TypeSwitch | undefined;
22
+ drawForm(): void;
23
+ drawPersonForm(): void;
24
+ fields: {} | undefined;
25
+ drawOrganizationForm(): void;
26
+ get value(): false | {
27
+ family: any;
28
+ given: any;
29
+ } | {
30
+ literal: any;
31
+ };
32
+ check(): boolean;
33
+ }
34
+ import { TypeSwitch } from "fwtoolkit";
35
+ //# sourceMappingURL=name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"name.d.ts","sourceRoot":"","sources":["../../../src/form/fields/name.js"],"names":[],"mappings":"AAOA;IACI;;;;;;;OAmBC;IARG;;;;;;;MAAgC;IAChC,SAAc;IAGV,oBAAuB;IAM/B,aAoBC;IAnBG,mCAiBE;IAIN,iBAMC;IAED,uBAqCC;IApCG,uBAAgB;IAsCpB,6BASC;IAED;;;;;MAqCC;IAED,iBAEC;CACJ;2BAvJsD,WAAW"}
@@ -0,0 +1,11 @@
1
+ export class NameListForm {
2
+ constructor(dom: any, initialValue?: never[][]);
3
+ dom: any;
4
+ fieldHandlers: WeakMap<object, any>;
5
+ inputList: InputList<never[]>;
6
+ init(): void;
7
+ get value(): false | never[][];
8
+ check(): boolean;
9
+ }
10
+ import { InputList } from "fwtoolkit";
11
+ //# sourceMappingURL=name_list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"name_list.d.ts","sourceRoot":"","sources":["../../../src/form/fields/name_list.js"],"names":[],"mappings":"AAGA;IACI,gDAoBC;IAnBG,SAAc;IACd,oCAAkC;IAClC,8BAgBE;IAGN,aAEC;IAED,+BAMC;IAED,iBAEC;CACJ;0BAzCuB,WAAW"}
@@ -0,0 +1,16 @@
1
+ export class RangeFieldForm {
2
+ constructor(dom: any, initialValue?: never[][]);
3
+ currentValue: never[][];
4
+ dom: any;
5
+ range: boolean;
6
+ init(): void;
7
+ typeSwitch: TypeSwitch | undefined;
8
+ drawForm(): void;
9
+ drawSingleValueForm(): void;
10
+ fields: {} | undefined;
11
+ drawRangeForm(): void;
12
+ get value(): false | any[];
13
+ check(): boolean;
14
+ }
15
+ import { TypeSwitch } from "fwtoolkit";
16
+ //# sourceMappingURL=range.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../src/form/fields/range.js"],"names":[],"mappings":"AAOA;IACI,gDASC;IARG,wBAAgC;IAChC,SAAc;IAGV,eAAiB;IAMzB,aAoBC;IAnBG,mCAiBE;IAIN,iBAMC;IAED,4BAQC;IAPG,uBAAgB;IASpB,sBAkBC;IAED,2BAmBC;IAED,iBAEC;CACJ;2BAvGsD,WAAW"}
@@ -0,0 +1,11 @@
1
+ export class RangeListForm {
2
+ constructor(dom: any, initialValue?: never[][]);
3
+ dom: any;
4
+ fieldHandlers: WeakMap<object, any>;
5
+ inputList: InputList<never[]>;
6
+ init(): void;
7
+ get value(): false | never[][];
8
+ check(): boolean;
9
+ }
10
+ import { InputList } from "fwtoolkit";
11
+ //# sourceMappingURL=range_list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range_list.d.ts","sourceRoot":"","sources":["../../../src/form/fields/range_list.js"],"names":[],"mappings":"AAGA;IACI,gDAoBC;IAnBG,SAAc;IACd,oCAAkC;IAClC,8BAgBE;IAGN,aAEC;IAED,+BAMC;IAED,iBAEC;CACJ;0BAzCuB,WAAW"}
@@ -0,0 +1,10 @@
1
+ export class TagListForm {
2
+ constructor(dom: any, initialValue?: any[]);
3
+ dom: any;
4
+ initialValue: any[];
5
+ init(): void;
6
+ tokenInput: any;
7
+ get value(): any;
8
+ check(): boolean;
9
+ }
10
+ //# sourceMappingURL=tag_list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag_list.d.ts","sourceRoot":"","sources":["../../../src/form/fields/tag_list.js"],"names":[],"mappings":"AAEA;IACI,4CAGC;IAFG,SAAc;IACd,oBAAgC;IAGpC,aAWC;IATG,gBAQE;IAGN,iBAMC;IAED,iBAEC;CACJ"}
@@ -0,0 +1,9 @@
1
+ export class TitleFieldForm {
2
+ constructor(dom: any, initialValue: any);
3
+ inlineInput: InlineInput;
4
+ init(): void;
5
+ get value(): false | Record<string, unknown>[];
6
+ check(): boolean;
7
+ }
8
+ import { InlineInput } from "fwtoolkit";
9
+ //# sourceMappingURL=title.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../src/form/fields/title.js"],"names":[],"mappings":"AAMA;IACI,yCAgCC;IA/BG,yBA8BE;IAGN,aAAS;IAET,+CAEC;IAED,iBAEC;CACJ;4BAhD+B,WAAW"}
@@ -0,0 +1,10 @@
1
+ export class URIFieldForm {
2
+ constructor(dom: any, initialValue?: string, placeHolder?: string);
3
+ dom: any;
4
+ initialValue: string;
5
+ placeHolder: string;
6
+ init(): void;
7
+ get value(): any;
8
+ check(): boolean;
9
+ }
10
+ //# sourceMappingURL=uri.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uri.d.ts","sourceRoot":"","sources":["../../../src/form/fields/uri.js"],"names":[],"mappings":"AAeA;IACI,mEAIC;IAHG,SAAc;IACd,qBAAgC;IAChC,oBAA8B;IAGlC,aAEC;IAED,iBAIC;IAED,iBASC;CACJ"}
@@ -0,0 +1,10 @@
1
+ export class VerbatimFieldForm {
2
+ constructor(dom: any, initialValue?: string, placeHolder?: string);
3
+ dom: any;
4
+ initialValue: string;
5
+ placeHolder: string;
6
+ init(): void;
7
+ get value(): any;
8
+ check(): boolean;
9
+ }
10
+ //# sourceMappingURL=verbatim.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verbatim.d.ts","sourceRoot":"","sources":["../../../src/form/fields/verbatim.js"],"names":[],"mappings":"AAAA;IACI,mEAIC;IAHG,SAAc;IACd,qBAAgC;IAChC,oBAA8B;IAGlC,aAEC;IAED,iBAIC;IAED,iBAEC;CACJ"}
@@ -0,0 +1,35 @@
1
+ export class BibEntryForm {
2
+ constructor(bibDB: any, app?: boolean, itemId?: boolean);
3
+ bibDB: any;
4
+ itemId: boolean;
5
+ app: boolean;
6
+ fields: {};
7
+ currentValues: {};
8
+ init(): Promise<any>;
9
+ dialogHeader: any;
10
+ addDialogToDOM(): Promise<any>;
11
+ entryKeyAutoGenerate: boolean | undefined;
12
+ programmaticallySettingKey: boolean | undefined;
13
+ lastAutoGeneratedKey: string | null | undefined;
14
+ dialog: Dialog | undefined;
15
+ dialogTabs: DialogTabs | undefined;
16
+ addField(fieldName: any, dom: any): void;
17
+ createForm(): Promise<any>;
18
+ catsForm: CatsForm | undefined;
19
+ changeBibType(): Promise<any>;
20
+ createEntryKey(bibItem: any): void;
21
+ maybeAutoGenerateEntryKey(): void;
22
+ checkEntryKey(): void;
23
+ get value(): {
24
+ bib_type: any;
25
+ cats: (string | number)[];
26
+ entry_key: any;
27
+ fields: {};
28
+ };
29
+ save(): any;
30
+ check(): boolean;
31
+ }
32
+ import { Dialog } from "fwtoolkit";
33
+ import { DialogTabs } from "fwtoolkit";
34
+ import { CatsForm } from "./cats.js";
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/form/index.js"],"names":[],"mappings":"AAwCA;IACI,yDAMC;IALG,WAAkB;IAClB,gBAAoB;IACpB,aAAc;IACd,WAAgB;IAChB,kBAAuB;IAG3B,qBAyBC;IAbO,kBAA0C;IAelD,+BA6FC;IAxEO,0CAAyD;IACzD,gDAAuC;IACvC,gDAAgC;IAGhC,2BAUE;IAIF,mCAuBC;IAgCT,yCAyBC;IAED,2BAgCC;IATW,+BAIC;IAOb,8BAWC;IAED,mCAuBC;IAED,kCAmEC;IAED,sBA+BC;IAED;;;;;MAkBC;IAED,YAWC;IAED,iBAiBC;CACJ;uBAtamD,WAAW;2BAAX,WAAW;yBAExC,WAAW"}
@@ -0,0 +1,12 @@
1
+ export function getBibFieldTitle(fieldKey: any, bibType?: null): any;
2
+ export function getBibTypeTitle(typeKey: any): string;
3
+ export function getBibFieldHelp(fieldKey: any): string | undefined;
4
+ export function getBibOptionTitle(optionKey: any): string;
5
+ export function getBibLangidTitle(langidKey: any): string;
6
+ export function getAllTypeTitles(): {};
7
+ export function getAllFieldHelp(): {};
8
+ export const BibFieldTitles: {};
9
+ export const BibTypeTitles: {};
10
+ export const BibFieldHelp: {};
11
+ export const BibOptionTitles: {};
12
+ //# sourceMappingURL=strings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/form/strings.js"],"names":[],"mappings":"AAyBA,qEAWC;AAGD,sDAGC;AAGD,mEAGC;AAGD,0DAGC;AAGD,0DAGC;AAyCD,uCAOC;AAGD,sCAUC;AAzDD,gCAOC;AAED,+BAOC;AAED,8BAOC;AAED,iCAOC"}
@@ -0,0 +1,6 @@
1
+ export function bibDialog({ bib_type, BibTypes, hasCats }: {
2
+ bib_type: any;
3
+ BibTypes: any;
4
+ hasCats: any;
5
+ }): string;
6
+ //# sourceMappingURL=templates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/form/templates.js"],"names":[],"mappings":"AAqBO;;;;WAgDN"}
@@ -0,0 +1,11 @@
1
+ export class BibliographyImporter {
2
+ constructor(fileContents: any, bibDB: any, addToListCall: any, callback: any, showAlerts?: boolean);
3
+ fileContents: any;
4
+ bibDB: any;
5
+ addToListCall: any;
6
+ callback: any;
7
+ showAlerts: boolean;
8
+ init(): void;
9
+ onMessage(message: any): void;
10
+ }
11
+ //# sourceMappingURL=bibliography_import.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bibliography_import.d.ts","sourceRoot":"","sources":["../../src/import/bibliography_import.js"],"names":[],"mappings":"AAmBA;IACI,oGAYC;IALG,kBAAgC;IAChC,WAAkB;IAClB,mBAAkC;IAClC,cAAwB;IACxB,oBAA4B;IAGhC,aAuBC;IAED,8BA2CC;CACJ"}
@@ -0,0 +1,12 @@
1
+ /** First step of the bibliography file import. Creates a dialog box to specify upload file.
2
+ * Supports multiple formats: BibTeX/BibLaTeX, CSL-JSON, RIS, EndNote, Citavi, NBIB, ODT/DOCX citations.
3
+ */
4
+ export class BibliographyFileImportDialog {
5
+ constructor(bibDB: any, addToListCall: any, app: any);
6
+ bibDB: any;
7
+ addToListCall: any;
8
+ tmpDB: boolean;
9
+ app: any;
10
+ init(): void;
11
+ }
12
+ //# sourceMappingURL=dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/import/dialog.js"],"names":[],"mappings":"AAEA;;GAEG;AAEH;IACI,sDAKC;IAJG,WAAkB;IAClB,mBAAkC;IAClC,eAAkB;IAClB,SAAc;IAGlB,aA+EC;CACJ"}
@@ -0,0 +1,3 @@
1
+ export { BibliographyFileImportDialog } from "./dialog.js";
2
+ export { BibliographyImporter } from "./bibliography_import.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/import/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export function importBibFileTemplate(): string;
2
+ //# sourceMappingURL=templates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/import/templates.js"],"names":[],"mappings":"AACO,gDAUK"}
@@ -0,0 +1,4 @@
1
+ export { BibliographyOverview } from "./overview/index.js";
2
+ export { BibEntryForm } from "./form/index.js";
3
+ export { BibliographyDB } from "./database/index.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,59 @@
1
+ export class BibliographyOverview {
2
+ constructor({ app, user }: {
3
+ app: any;
4
+ user: any;
5
+ });
6
+ app: any;
7
+ user: any;
8
+ lastSort: {
9
+ column: number;
10
+ dir: string;
11
+ };
12
+ /** Bind the init function to doc loading.
13
+ * @function bind
14
+ */
15
+ init(): Promise<void>;
16
+ menu: OverviewMenuView | null | undefined;
17
+ render(): void;
18
+ dom: HTMLBodyElement | undefined;
19
+ onResize(): void;
20
+ initTable(ids: any): void;
21
+ overviewTable: OverviewDataTable | null | undefined;
22
+ table: import("simple-datatables").DataTable | null | undefined;
23
+ dtBulk: import("fwtoolkit").DatatableBulk | null | undefined;
24
+ /** Adds a list of bibliography categories to current list of bibliography categories.
25
+ * @function setBibCategoryList
26
+ * @param newBibCategories The new categories which will be added to the existing ones.
27
+ */
28
+ setBibCategoryList(bibCategories: any): void;
29
+ /** This takes a list of new bib entries and adds them to BibDB and the bibliography table
30
+ * @function updateTable
31
+ */
32
+ updateTable(ids: any): void;
33
+ createTableRow(id: any): any[];
34
+ removeTableRows(ids: any): void;
35
+ /** Opens a dialog for editing categories.
36
+ * @function editCategoriesDialog
37
+ */
38
+ editCategoriesDialog(): void;
39
+ /** Dialog to confirm deletion of bibliography items.
40
+ * @function deleteBibEntryDialog
41
+ * @param ids Ids of items that are to be deleted.
42
+ */
43
+ deleteBibEntryDialog(ids: any): void;
44
+ getSelected(): number[];
45
+ activatePlugins(): Promise<any> | undefined;
46
+ plugins: {} | undefined;
47
+ /** Initialize the bibliography table and bind interactive parts.
48
+ * @function bibEvents
49
+ */
50
+ bindEvents(): void;
51
+ handleActivation(event: any): void;
52
+ getBibtex(text: any): boolean;
53
+ saveCategories(cats: any): void;
54
+ deleteBibEntries(ids: any): void;
55
+ close(): void;
56
+ }
57
+ import { OverviewMenuView } from "fwtoolkit";
58
+ import { OverviewDataTable } from "fwtoolkit";
59
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/overview/index.js"],"names":[],"mappings":"AAqBA;IACI;;;OAKC;IAJG,SAAc;IACd,UAAgB;IAEhB;;;MAAuC;IAG3C;;OAEG;IACH,sBAeC;IAVO,0CAAiD;IAYzD,eAiBC;IAhBG,iCAAyC;IAkB7C,iBAKC;IAGD,0BAwHC;IArHO,oDAAyB;IAE7B,gEAAiB;IACjB,6DAAkB;IAoHtB;;;OAGG;IACH,6CA+BC;IAED;;OAEG;IACH,4BAMC;IAED,+BAmBC;IAED,gCAeC;IAED;;OAEG;IACH,6BA0DC;IAED;;;OAGG;IACH,qCAuBC;IAGD,wBAIC;IAED,4CA6BC;IAvBG,wBAAiB;IAyBrB;;OAEG;IACH,mBAwCC;IAED,mCA8CC;IAGD,8BAWC;IAED,gCAIC;IAED,iCAIC;IAED,cAaC;CACJ;iCAthBM,WAAW;kCAAX,WAAW"}
@@ -0,0 +1,45 @@
1
+ export function bulkMenuModel(): {
2
+ content: {
3
+ title: any;
4
+ tooltip: any;
5
+ action: (overview: any) => void;
6
+ disabled: (overview: any) => any;
7
+ }[];
8
+ };
9
+ export function menuModel(): {
10
+ content: ({
11
+ type: string;
12
+ id: string;
13
+ keys: string;
14
+ content: {
15
+ title: any;
16
+ action: (_overview: any) => void;
17
+ }[];
18
+ order: number;
19
+ title?: undefined;
20
+ action?: undefined;
21
+ icon?: undefined;
22
+ input?: undefined;
23
+ } | {
24
+ type: string;
25
+ title: any;
26
+ keys: string;
27
+ action: (overview: any) => any;
28
+ order: number;
29
+ id?: undefined;
30
+ content?: undefined;
31
+ icon?: undefined;
32
+ input?: undefined;
33
+ } | {
34
+ type: string;
35
+ icon: string;
36
+ title: any;
37
+ keys: string;
38
+ input: (overview: any, text: any) => any;
39
+ order: number;
40
+ id?: undefined;
41
+ content?: undefined;
42
+ action?: undefined;
43
+ })[];
44
+ };
45
+ //# sourceMappingURL=menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/overview/menu.js"],"names":[],"mappings":"AAGO;;;;;;;EAiCL;AAEK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEL"}
@@ -0,0 +1,4 @@
1
+ export function editCategoriesTemplate({ categories }: {
2
+ categories: any;
3
+ }): string;
4
+ //# sourceMappingURL=templates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/overview/templates.js"],"names":[],"mappings":"AAwBO;;WAKM"}
@@ -0,0 +1,2 @@
1
+ export const plugins: any[];
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/bibliography_overview/index.js"],"names":[],"mappings":"AAAA,4BAAyB"}
@@ -0,0 +1,10 @@
1
+ import type { MarkSpec, NodeSpec } from "prosemirror-model";
2
+ export declare const text: NodeSpec;
3
+ export declare const literal: NodeSpec;
4
+ export declare const variable: NodeSpec;
5
+ export declare const sup: MarkSpec;
6
+ export declare const sub: MarkSpec;
7
+ export declare const smallcaps: MarkSpec;
8
+ export declare const url: MarkSpec;
9
+ export declare const enquote: MarkSpec;
10
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/schema/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAA;AAEzD,eAAO,MAAM,IAAI,EAAE,QAElB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,QAarB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,QAwBtB,CAAA;AAED,eAAO,MAAM,GAAG,EAAE,QAQjB,CAAA;AAED,eAAO,MAAM,GAAG,EAAE,QAQjB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,QAWvB,CAAA;AAID,eAAO,MAAM,GAAG,EAAE,QAKjB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,QAKrB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { Schema } from "prosemirror-model";
2
+ export declare const cslBibSchema: Schema<"cslbib" | "doc" | "cslentry" | "cslinline" | "cslblock" | "cslleftmargin" | "cslrightinline" | "cslindent" | "text", "sup" | "sub" | "smallcaps" | "em" | "strong">;
3
+ //# sourceMappingURL=csl_bib.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"csl_bib.d.ts","sourceRoot":"","sources":["../../src/schema/csl_bib.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAA;AAwHxC,eAAO,MAAM,YAAY,6KAmBvB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export const litSchema: Schema<"literal" | "variable" | "doc" | "text", "sup" | "sub" | "smallcaps" | "url" | "enquote" | "em" | "strong">;
2
+ import { Schema } from "prosemirror-model";
3
+ //# sourceMappingURL=literal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"literal.d.ts","sourceRoot":"","sources":["../../src/schema/literal.js"],"names":[],"mappings":"AAiBA,2IAgBE;uBAvBmB,mBAAmB"}
@@ -0,0 +1,3 @@
1
+ export const longLitSchema: Schema<"variable" | "doc" | "text" | "longliteral", "sup" | "sub" | "smallcaps" | "url" | "enquote" | "em" | "strong">;
2
+ import { Schema } from "prosemirror-model";
3
+ //# sourceMappingURL=literal_long.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"literal_long.d.ts","sourceRoot":"","sources":["../../src/schema/literal_long.js"],"names":[],"mappings":"AAiCA,mJAgBE;uBAxCmB,mBAAmB"}
@@ -0,0 +1,3 @@
1
+ export const titleSchema: Schema<"literal" | "variable" | "doc" | "text", "sup" | "sub" | "smallcaps" | "url" | "enquote" | "em" | "strong" | "nocase">;
2
+ import { Schema } from "prosemirror-model";
3
+ //# sourceMappingURL=title.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../src/schema/title.js"],"names":[],"mappings":"AAwBA,wJAiBE;uBA/BmB,mBAAmB"}
@@ -0,0 +1,4 @@
1
+ export function dateToYear(dateStr: any): any;
2
+ export function litToText(litStringArray: any): string;
3
+ export function nameToText(nameList: any): string;
4
+ //# sourceMappingURL=tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.js"],"names":[],"mappings":"AAEA,8CAQC;AAGD,uDAQC;AAeD,kDAqBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiduswriter/bibliography-manager",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Fidus Writer bibliography manager",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,15 +10,40 @@
10
10
  "author": "Johannes Wilm",
11
11
  "type": "module",
12
12
  "main": "./dist/index.js",
13
+ "types": "./dist/index.d.ts",
13
14
  "exports": {
14
- ".": "./dist/index.js",
15
- "./overview": "./dist/overview/index.js",
16
- "./form": "./dist/form/index.js",
17
- "./database": "./dist/database/index.js",
18
- "./import": "./dist/import/index.js",
19
- "./export": "./dist/export/index.js",
20
- "./schema/*": "./dist/schema/*.js",
21
- "./*": "./dist/*.js"
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.js"
18
+ },
19
+ "./overview": {
20
+ "types": "./dist/overview/index.d.ts",
21
+ "default": "./dist/overview/index.js"
22
+ },
23
+ "./form": {
24
+ "types": "./dist/form/index.d.ts",
25
+ "default": "./dist/form/index.js"
26
+ },
27
+ "./database": {
28
+ "types": "./dist/database/index.d.ts",
29
+ "default": "./dist/database/index.js"
30
+ },
31
+ "./import": {
32
+ "types": "./dist/import/index.d.ts",
33
+ "default": "./dist/import/index.js"
34
+ },
35
+ "./export": {
36
+ "types": "./dist/export/index.d.ts",
37
+ "default": "./dist/export/index.js"
38
+ },
39
+ "./schema/*": {
40
+ "types": "./dist/schema/*.d.ts",
41
+ "default": "./dist/schema/*.js"
42
+ },
43
+ "./*": {
44
+ "types": "./dist/*.d.ts",
45
+ "default": "./dist/*.js"
46
+ }
22
47
  },
23
48
  "files": [
24
49
  "dist/",