@fiduswriter/bibliography-manager 0.1.21 → 0.1.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,180 @@
1
+ #bib-dialog .fw-tabs-panel {
2
+ min-height: 0;
3
+ height: calc(100vh - 278px);
4
+ }
5
+
6
+ div.literal,
7
+ pre.long-literal {
8
+ box-sizing: border-box;
9
+ font-size: 14px;
10
+ line-height: 1.33em;
11
+ box-shadow: none;
12
+ border-radius: 0;
13
+ padding: 11px 10px 0;
14
+ min-height: 38px;
15
+ color: var(--cs-light-text);
16
+ background-color: var(--input-background-color);
17
+ }
18
+
19
+ pre.long-literal {
20
+ min-height: 112px;
21
+ height: auto;
22
+ }
23
+
24
+ div.literal strong,
25
+ pre.long-literal strong {
26
+ font-weight: bold;
27
+ }
28
+
29
+ div.literal em,
30
+ pre.long-literal em {
31
+ font-style: italic;
32
+ }
33
+
34
+ #bib-dialog .ProseMirror-focused div.literal,
35
+ #bib-dialog .ProseMirror-focused pre.long-literal {
36
+ background-color: var(--input-focus-background-color);
37
+ }
38
+
39
+ #bib-dialog .fw-pulldown.fw-center {
40
+ left: 10px;
41
+ top: 40px;
42
+ }
43
+
44
+ #bib-dialog .date-form input {
45
+ width: 66px;
46
+ margin-right: 1px;
47
+ }
48
+
49
+ #bib-dialog .date-form .separator {
50
+ display: inline-block;
51
+ width: 15px;
52
+ text-align: center;
53
+ }
54
+
55
+ #bib-dialog td .dk-selected,
56
+ #bib-dialog td .dk-select-options {
57
+ width: 486px !important;
58
+ }
59
+
60
+ #bib-dialog th .dk-selected,
61
+ #bib-dialog th .dk-select-options {
62
+ width: 140px !important;
63
+ }
64
+
65
+ #bib-dialog sup {
66
+ vertical-align: super;
67
+ font-size: smaller;
68
+ }
69
+
70
+ #bib-dialog sub {
71
+ vertical-align: sub;
72
+ font-size: smaller;
73
+ }
74
+
75
+ #bib-dialog .smallcaps {
76
+ font-variant: small-caps;
77
+ }
78
+
79
+ #bib-dialog .nocase {
80
+ text-decoration: underline;
81
+ }
82
+
83
+ .checkable-label {
84
+ width: 462px;
85
+ height: 36px;
86
+ border: solid 1px var(--cs-white-border);
87
+ line-height: 36px;
88
+ background-color: var(--cs-white-background);
89
+ padding: 0 12px;
90
+ font-size: 13px;
91
+ margin-bottom: 10px;
92
+ }
93
+
94
+ #source-type-selection {
95
+ position: relative;
96
+ display: block;
97
+ z-index: 2;
98
+ margin-bottom: 18px;
99
+ margin-right: 49px;
100
+ }
101
+
102
+ #source-type-selection .fw-pulldown > ul {
103
+ max-height: 230px;
104
+ overflow: scroll;
105
+ }
106
+
107
+ #selected-source-type-title {
108
+ display: inline-block;
109
+ white-space: nowrap;
110
+ overflow: hidden;
111
+ }
112
+
113
+ #source-type-selection .icon-down-dir {
114
+ position: absolute;
115
+ right: 10px;
116
+ }
117
+
118
+ #edit-categories {
119
+ width: 369px !important;
120
+ }
121
+
122
+ #edit-categories input[type="text"] {
123
+ width: 310px;
124
+ }
125
+
126
+ /* api search */
127
+
128
+ #bibimport-api-search button.api-import {
129
+ float: left;
130
+ margin-right: 10px;
131
+ margin-bottom: 10px;
132
+ }
133
+
134
+ #bibimport-api-search div.item {
135
+ margin-bottom: 10px;
136
+ }
137
+
138
+ #bibimport-api-search h3 {
139
+ font-weight: 700;
140
+ margin: 10px 0 10px 20px;
141
+ font-size: 1.1em;
142
+ }
143
+
144
+ #bibimport-api-search .bibimport-search-result,
145
+ #bibimport-api-search div.item {
146
+ clear: left;
147
+ }
148
+
149
+ /**
150
+ Modal header
151
+ */
152
+ .bib-dialog-header .fw-select-container {
153
+ display: inline-block;
154
+ vertical-align: middle;
155
+ margin: 0;
156
+ }
157
+
158
+ .entry-key-input-container {
159
+ display: inline-block;
160
+ vertical-align: middle;
161
+ margin-left: 10px;
162
+ }
163
+
164
+ #entry-key {
165
+ width: 200px;
166
+ }
167
+
168
+ .entry-key-warning {
169
+ color: var(--cs-1-text);
170
+ font-size: 0.85em;
171
+ margin-top: 2px;
172
+ min-height: 1em;
173
+ }
174
+
175
+ .fw-data-table-title .bib-entry-key {
176
+ display: block;
177
+ font-size: 0.8em;
178
+ color: var(--cs-light-text-secondary);
179
+ margin-top: 2px;
180
+ }
package/css/colors.css ADDED
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Bibliography-manager-specific custom properties — load after
3
+ * fwtoolkit/css/colors.css.
4
+ */
5
+
6
+ :root {
7
+ --tokenfield-color: #555555;
8
+ }
package/css/forms.css ADDED
@@ -0,0 +1,102 @@
1
+ /*
2
+ * Bibliography-manager-specific form overrides — load after
3
+ * fwtoolkit/css/forms.css and @fiduswriter/frontend/css/forms.css.
4
+ */
5
+
6
+ /* -----------------------------------------------------------------
7
+ * Upload image input
8
+ * ----------------------------------------------------------------- */
9
+ #uploadimage input.entry-form,
10
+ #uploadimage input.fw-input {
11
+ width: 486px;
12
+ }
13
+
14
+ /* -----------------------------------------------------------------
15
+ * Bibliography entry field error state
16
+ * ----------------------------------------------------------------- */
17
+ .fw-entry-field.fw-fomt-error input[type="text"],
18
+ .fw-entry-field.fw-fomt-error input[type="number"] {
19
+ background-color: var(--input-error-background-color);
20
+ }
21
+
22
+ .fw-entry-field input[type="checkbox"] {
23
+ margin-top: 12px;
24
+ }
25
+
26
+ .fw-entry-field .selection-list {
27
+ position: relative;
28
+ }
29
+
30
+ .fw-entry-field .fw-type-switch-input-inner select {
31
+ width: 100%;
32
+ }
33
+
34
+ .fw-entry-field .fw-select-arrow {
35
+ position: absolute;
36
+ top: 14px;
37
+ right: 16px;
38
+ pointer-events: none;
39
+ }
40
+
41
+ /* -----------------------------------------------------------------
42
+ * Tokenfield — bibliography category / keyword input
43
+ * ----------------------------------------------------------------- */
44
+ .tokenfield {
45
+ width: 686px;
46
+ position: relative;
47
+ max-width: 80vw;
48
+ }
49
+
50
+ .tokenfield::before,
51
+ .tokenfield::after {
52
+ content: " ";
53
+ display: table;
54
+ }
55
+
56
+ .tokenfield::after {
57
+ clear: both;
58
+ }
59
+
60
+ .tokenfield.tokenfield-mode-tokens {
61
+ display: block;
62
+ position: relative;
63
+ font-size: 14px;
64
+ line-height: 1.4286;
65
+ color: var(--tokenfield-color);
66
+ background-color: var(--cs-light-background-hover);
67
+ }
68
+
69
+ .tokenfield-set {
70
+ position: relative;
71
+ padding: 0 10px;
72
+ }
73
+
74
+ .tokenfield .tokenfield-set > ul {
75
+ margin: 0;
76
+ padding: 0;
77
+ list-style-type: none;
78
+ }
79
+
80
+ .tokenfield .tokenfield-set > ul > li {
81
+ display: inline-block;
82
+ margin: 8px 5px 0 0;
83
+ padding: 0 5px;
84
+ border-radius: 3px;
85
+ line-height: 1.5;
86
+ cursor: pointer;
87
+ color: var(--cs-6-text);
88
+ background: var(--cs-6-background);
89
+ border: 1px solid var(--cs-6-border);
90
+ }
91
+
92
+ .tokenfield .tokenfield-set > ul > li:last-child {
93
+ margin-bottom: 8px;
94
+ }
95
+
96
+ .tokenfield .tokenfield-set > ul > li a {
97
+ color: var(--cs-6-text);
98
+ }
99
+
100
+ .tokenfield .tokenfield-input {
101
+ outline: none;
102
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiduswriter/bibliography-manager",
3
- "version": "0.1.21",
3
+ "version": "0.1.24",
4
4
  "description": "Fidus Writer bibliography manager",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,10 +46,11 @@
46
46
  }
47
47
  },
48
48
  "files": [
49
+ "css/",
49
50
  "dist/",
50
51
  "src/",
51
- "README.md",
52
52
  "LICENSE",
53
+ "README.md",
53
54
  "logo.svg"
54
55
  ],
55
56
  "scripts": {
@@ -62,12 +63,13 @@
62
63
  "format": "prettier --write .",
63
64
  "format:check": "prettier --check .",
64
65
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.js",
65
- "install-hooks": "husky"
66
+ "install-hooks": "husky",
67
+ "demo": "echo \"Open demo/standalone/index.html in a browser or run: npx http-server demo/standalone -p 8081 -c-1\""
66
68
  },
67
69
  "dependencies": {
68
70
  "bibliojson": "^4.0.4",
69
71
  "fix-utf8": "2.0.1",
70
- "fwtoolkit": "^0.2.0",
72
+ "fwtoolkit": "^0.2.3",
71
73
  "prosemirror-commands": "^1.7.0",
72
74
  "prosemirror-model": "^1.25.0",
73
75
  "simple-datatables": "^10.2.0",
@@ -77,16 +79,43 @@
77
79
  "@eslint/js": "^10.0.1",
78
80
  "@types/jest": "^30.0.0",
79
81
  "eslint": "^10.6.0",
82
+ "gettext-parser": "^9.1.1",
80
83
  "globals": "^15.15.0",
81
84
  "happy-dom": "^20.10.6",
85
+ "husky": "^9.1.7",
82
86
  "jest": "^30.4.2",
87
+ "lint-staged": "^17.0.8",
83
88
  "prettier": "^3.5.3",
84
89
  "ts-jest": "^29.4.11",
85
90
  "ts-jest-resolver": "^2.0.1",
86
91
  "typescript": "^6.0.3",
87
- "typescript-eslint": "^8.62.0",
88
- "husky": "^9.1.7",
89
- "lint-staged": "^17.0.8"
92
+ "typescript-eslint": "^8.62.0"
93
+ },
94
+ "fiduswriter": {
95
+ "css": {
96
+ "fwtoolkit": [
97
+ "colors.css",
98
+ "forms.css",
99
+ "buttons.css",
100
+ "dialog.css",
101
+ "data_table.css",
102
+ "dialog_table.css",
103
+ "common.css",
104
+ "pulldown.css",
105
+ "ui_tabs.css",
106
+ "content_menu.css",
107
+ "loader.css"
108
+ ],
109
+ "own": {
110
+ "additive": [
111
+ "colors.css",
112
+ "forms.css"
113
+ ],
114
+ "component": [
115
+ "bibliography.css"
116
+ ]
117
+ }
118
+ }
90
119
  },
91
120
  "lint-staged": {
92
121
  "*.{ts,js,mjs,css,md,json,html}": [