@myrmidon/cadmus-part-general-pg 0.0.13 → 0.3.0
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/README.md +24 -24
- package/esm2020/lib/bibliography-part-feature/bibliography-part-feature.component.mjs +31 -0
- package/esm2020/lib/bibliography-part-feature/edit-bibliography-part.query.mjs +16 -0
- package/esm2020/lib/bibliography-part-feature/edit-bibliography-part.service.mjs +18 -0
- package/esm2020/lib/bibliography-part-feature/edit-bibliography-part.store.mjs +27 -0
- package/esm2020/lib/cadmus-part-general-pg.module.mjs +225 -0
- package/esm2020/lib/categories-part-feature/categories-part-feature.component.mjs +26 -0
- package/esm2020/lib/categories-part-feature/edit-categories-part.query.mjs +16 -0
- package/esm2020/lib/categories-part-feature/edit-categories-part.service.mjs +18 -0
- package/esm2020/lib/categories-part-feature/edit-categories-part.store.mjs +27 -0
- package/esm2020/lib/chronology-fragment-feature/chronology-fragment-feature.component.mjs +28 -0
- package/esm2020/lib/chronology-fragment-feature/edit-chronology-fragment.query.mjs +17 -0
- package/esm2020/lib/chronology-fragment-feature/edit-chronology-fragment.service.mjs +18 -0
- package/esm2020/lib/chronology-fragment-feature/edit-chronology-fragment.store.mjs +28 -0
- package/esm2020/lib/comment-fragment-feature/comment-fragment-feature.component.mjs +36 -0
- package/esm2020/lib/comment-fragment-feature/edit-comment-fragment.query.mjs +17 -0
- package/esm2020/lib/comment-fragment-feature/edit-comment-fragment.service.mjs +18 -0
- package/esm2020/lib/comment-fragment-feature/edit-comment-fragment.store.mjs +28 -0
- package/esm2020/lib/comment-part-feature/comment-part-feature.component.mjs +33 -0
- package/esm2020/lib/comment-part-feature/edit-comment-part.query.mjs +16 -0
- package/esm2020/lib/comment-part-feature/edit-comment-part.service.mjs +18 -0
- package/esm2020/lib/comment-part-feature/edit-comment-part.store.mjs +27 -0
- package/esm2020/lib/doc-references-part-feature/doc-references-part-feature.component.mjs +26 -0
- package/esm2020/lib/doc-references-part-feature/edit-doc-references-part.query.mjs +16 -0
- package/esm2020/lib/doc-references-part-feature/edit-doc-references-part.service.mjs +18 -0
- package/esm2020/lib/doc-references-part-feature/edit-doc-references-part.store.mjs +27 -0
- package/esm2020/lib/historical-date-part-feature/edit-historical-date-part.query.mjs +16 -0
- package/esm2020/lib/historical-date-part-feature/edit-historical-date-part.service.mjs +18 -0
- package/esm2020/lib/historical-date-part-feature/edit-historical-date-part.store.mjs +27 -0
- package/esm2020/lib/historical-date-part-feature/historical-date-part-feature.component.mjs +26 -0
- package/esm2020/lib/index-keywords-part-feature/edit-index-keywords-part.query.mjs +16 -0
- package/esm2020/lib/index-keywords-part-feature/edit-index-keywords-part.service.mjs +18 -0
- package/esm2020/lib/index-keywords-part-feature/edit-index-keywords-part.store.mjs +27 -0
- package/esm2020/lib/index-keywords-part-feature/index-keywords-part-feature.component.mjs +26 -0
- package/esm2020/lib/keywords-part-feature/edit-keywords-part.query.mjs +16 -0
- package/esm2020/lib/keywords-part-feature/edit-keywords-part.service.mjs +18 -0
- package/esm2020/lib/keywords-part-feature/edit-keywords-part.store.mjs +27 -0
- package/esm2020/lib/keywords-part-feature/keywords-part-feature.component.mjs +26 -0
- package/esm2020/lib/note-part-feature/edit-note-part.query.mjs +16 -0
- package/esm2020/lib/note-part-feature/edit-note-part.service.mjs +18 -0
- package/esm2020/lib/note-part-feature/edit-note-part.store.mjs +27 -0
- package/esm2020/lib/note-part-feature/note-part-feature.component.mjs +26 -0
- package/esm2020/lib/tiled-text-layer-part-feature/tiled-text-layer-part-feature.component.mjs +248 -0
- package/esm2020/lib/tiled-text-layer-part-feature/tiled-text-layer-view.mjs +380 -0
- package/esm2020/lib/tiled-text-part-feature/edit-tiled-text-part.query.mjs +16 -0
- package/esm2020/lib/tiled-text-part-feature/edit-tiled-text-part.service.mjs +36 -0
- package/esm2020/lib/tiled-text-part-feature/edit-tiled-text-part.store.mjs +27 -0
- package/esm2020/lib/tiled-text-part-feature/tiled-text-part-feature.component.mjs +26 -0
- package/esm2020/lib/token-text-layer-part-feature/token-text-layer-part-feature.component.mjs +200 -0
- package/esm2020/lib/token-text-part-feature/edit-token-text-part.query.mjs +16 -0
- package/esm2020/lib/token-text-part-feature/edit-token-text-part.service.mjs +18 -0
- package/esm2020/lib/token-text-part-feature/edit-token-text-part.store.mjs +27 -0
- package/esm2020/lib/token-text-part-feature/token-text-part-feature.component.mjs +26 -0
- package/esm2020/myrmidon-cadmus-part-general-pg.mjs +5 -0
- package/esm2020/public-api.mjs +19 -0
- package/fesm2015/myrmidon-cadmus-part-general-pg.mjs +1804 -0
- package/fesm2015/myrmidon-cadmus-part-general-pg.mjs.map +1 -0
- package/fesm2020/myrmidon-cadmus-part-general-pg.mjs +1798 -0
- package/fesm2020/myrmidon-cadmus-part-general-pg.mjs.map +1 -0
- package/lib/bibliography-part-feature/bibliography-part-feature.component.d.ts +3 -0
- package/lib/bibliography-part-feature/edit-bibliography-part.query.d.ts +3 -0
- package/lib/bibliography-part-feature/edit-bibliography-part.service.d.ts +3 -0
- package/lib/bibliography-part-feature/edit-bibliography-part.store.d.ts +3 -0
- package/lib/cadmus-part-general-pg.module.d.ts +29 -0
- package/lib/categories-part-feature/categories-part-feature.component.d.ts +3 -0
- package/lib/categories-part-feature/edit-categories-part.query.d.ts +3 -0
- package/lib/categories-part-feature/edit-categories-part.service.d.ts +3 -0
- package/lib/categories-part-feature/edit-categories-part.store.d.ts +3 -0
- package/lib/chronology-fragment-feature/chronology-fragment-feature.component.d.ts +6 -3
- package/lib/chronology-fragment-feature/edit-chronology-fragment.query.d.ts +3 -0
- package/lib/chronology-fragment-feature/edit-chronology-fragment.service.d.ts +3 -0
- package/lib/chronology-fragment-feature/edit-chronology-fragment.store.d.ts +3 -0
- package/lib/comment-fragment-feature/comment-fragment-feature.component.d.ts +6 -3
- package/lib/comment-fragment-feature/edit-comment-fragment.query.d.ts +3 -0
- package/lib/comment-fragment-feature/edit-comment-fragment.service.d.ts +3 -0
- package/lib/comment-fragment-feature/edit-comment-fragment.store.d.ts +3 -0
- package/lib/comment-part-feature/comment-part-feature.component.d.ts +4 -1
- package/lib/comment-part-feature/edit-comment-part.query.d.ts +3 -0
- package/lib/comment-part-feature/edit-comment-part.service.d.ts +3 -0
- package/lib/comment-part-feature/edit-comment-part.store.d.ts +3 -0
- package/lib/doc-references-part-feature/doc-references-part-feature.component.d.ts +4 -1
- package/lib/doc-references-part-feature/edit-doc-references-part.query.d.ts +3 -0
- package/lib/doc-references-part-feature/edit-doc-references-part.service.d.ts +3 -0
- package/lib/doc-references-part-feature/edit-doc-references-part.store.d.ts +3 -0
- package/lib/historical-date-part-feature/edit-historical-date-part.query.d.ts +3 -0
- package/lib/historical-date-part-feature/edit-historical-date-part.service.d.ts +3 -0
- package/lib/historical-date-part-feature/edit-historical-date-part.store.d.ts +3 -0
- package/lib/historical-date-part-feature/historical-date-part-feature.component.d.ts +5 -2
- package/lib/index-keywords-part-feature/edit-index-keywords-part.query.d.ts +3 -0
- package/lib/index-keywords-part-feature/edit-index-keywords-part.service.d.ts +3 -0
- package/lib/index-keywords-part-feature/edit-index-keywords-part.store.d.ts +3 -0
- package/lib/index-keywords-part-feature/index-keywords-part-feature.component.d.ts +5 -2
- package/lib/keywords-part-feature/edit-keywords-part.query.d.ts +3 -0
- package/lib/keywords-part-feature/edit-keywords-part.service.d.ts +3 -0
- package/lib/keywords-part-feature/edit-keywords-part.store.d.ts +3 -0
- package/lib/keywords-part-feature/keywords-part-feature.component.d.ts +5 -2
- package/lib/note-part-feature/edit-note-part.query.d.ts +3 -0
- package/lib/note-part-feature/edit-note-part.service.d.ts +3 -0
- package/lib/note-part-feature/edit-note-part.store.d.ts +3 -0
- package/lib/note-part-feature/note-part-feature.component.d.ts +5 -2
- package/lib/tiled-text-layer-part-feature/tiled-text-layer-part-feature.component.d.ts +18 -15
- package/lib/tiled-text-part-feature/edit-tiled-text-part.query.d.ts +3 -0
- package/lib/tiled-text-part-feature/edit-tiled-text-part.service.d.ts +5 -2
- package/lib/tiled-text-part-feature/edit-tiled-text-part.store.d.ts +3 -0
- package/lib/tiled-text-part-feature/tiled-text-part-feature.component.d.ts +5 -2
- package/lib/token-text-layer-part-feature/token-text-layer-part-feature.component.d.ts +15 -12
- package/lib/token-text-part-feature/edit-token-text-part.query.d.ts +3 -0
- package/lib/token-text-part-feature/edit-token-text-part.service.d.ts +3 -0
- package/lib/token-text-part-feature/edit-token-text-part.store.d.ts +3 -0
- package/lib/token-text-part-feature/token-text-part-feature.component.d.ts +4 -1
- package/myrmidon-cadmus-part-general-pg.d.ts +1 -38
- package/package.json +27 -15
- package/public-api.d.ts +2 -0
- package/bundles/myrmidon-cadmus-part-general-pg.umd.js +0 -2342
- package/bundles/myrmidon-cadmus-part-general-pg.umd.js.map +0 -1
- package/esm2015/lib/bibliography-part-feature/bibliography-part-feature.component.js +0 -36
- package/esm2015/lib/bibliography-part-feature/edit-bibliography-part.query.js +0 -18
- package/esm2015/lib/bibliography-part-feature/edit-bibliography-part.service.js +0 -23
- package/esm2015/lib/bibliography-part-feature/edit-bibliography-part.store.js +0 -27
- package/esm2015/lib/cadmus-part-general-pg.module.js +0 -164
- package/esm2015/lib/categories-part-feature/categories-part-feature.component.js +0 -31
- package/esm2015/lib/categories-part-feature/edit-categories-part.query.js +0 -18
- package/esm2015/lib/categories-part-feature/edit-categories-part.service.js +0 -23
- package/esm2015/lib/categories-part-feature/edit-categories-part.store.js +0 -27
- package/esm2015/lib/chronology-fragment-feature/chronology-fragment-feature.component.js +0 -35
- package/esm2015/lib/chronology-fragment-feature/edit-chronology-fragment.query.js +0 -19
- package/esm2015/lib/chronology-fragment-feature/edit-chronology-fragment.service.js +0 -23
- package/esm2015/lib/chronology-fragment-feature/edit-chronology-fragment.store.js +0 -27
- package/esm2015/lib/comment-fragment-feature/comment-fragment-feature.component.js +0 -42
- package/esm2015/lib/comment-fragment-feature/edit-comment-fragment.query.js +0 -19
- package/esm2015/lib/comment-fragment-feature/edit-comment-fragment.service.js +0 -23
- package/esm2015/lib/comment-fragment-feature/edit-comment-fragment.store.js +0 -27
- package/esm2015/lib/comment-part-feature/comment-part-feature.component.js +0 -38
- package/esm2015/lib/comment-part-feature/edit-comment-part.query.js +0 -18
- package/esm2015/lib/comment-part-feature/edit-comment-part.service.js +0 -23
- package/esm2015/lib/comment-part-feature/edit-comment-part.store.js +0 -27
- package/esm2015/lib/doc-references-part-feature/doc-references-part-feature.component.js +0 -31
- package/esm2015/lib/doc-references-part-feature/edit-doc-references-part.query.js +0 -18
- package/esm2015/lib/doc-references-part-feature/edit-doc-references-part.service.js +0 -23
- package/esm2015/lib/doc-references-part-feature/edit-doc-references-part.store.js +0 -27
- package/esm2015/lib/historical-date-part-feature/edit-historical-date-part.query.js +0 -18
- package/esm2015/lib/historical-date-part-feature/edit-historical-date-part.service.js +0 -23
- package/esm2015/lib/historical-date-part-feature/edit-historical-date-part.store.js +0 -27
- package/esm2015/lib/historical-date-part-feature/historical-date-part-feature.component.js +0 -31
- package/esm2015/lib/index-keywords-part-feature/edit-index-keywords-part.query.js +0 -18
- package/esm2015/lib/index-keywords-part-feature/edit-index-keywords-part.service.js +0 -23
- package/esm2015/lib/index-keywords-part-feature/edit-index-keywords-part.store.js +0 -27
- package/esm2015/lib/index-keywords-part-feature/index-keywords-part-feature.component.js +0 -31
- package/esm2015/lib/keywords-part-feature/edit-keywords-part.query.js +0 -18
- package/esm2015/lib/keywords-part-feature/edit-keywords-part.service.js +0 -23
- package/esm2015/lib/keywords-part-feature/edit-keywords-part.store.js +0 -27
- package/esm2015/lib/keywords-part-feature/keywords-part-feature.component.js +0 -31
- package/esm2015/lib/note-part-feature/edit-note-part.query.js +0 -18
- package/esm2015/lib/note-part-feature/edit-note-part.service.js +0 -23
- package/esm2015/lib/note-part-feature/edit-note-part.store.js +0 -27
- package/esm2015/lib/note-part-feature/note-part-feature.component.js +0 -31
- package/esm2015/lib/tiled-text-layer-part-feature/tiled-text-layer-part-feature.component.js +0 -213
- package/esm2015/lib/tiled-text-layer-part-feature/tiled-text-layer-view.js +0 -380
- package/esm2015/lib/tiled-text-part-feature/edit-tiled-text-part.query.js +0 -18
- package/esm2015/lib/tiled-text-part-feature/edit-tiled-text-part.service.js +0 -41
- package/esm2015/lib/tiled-text-part-feature/edit-tiled-text-part.store.js +0 -27
- package/esm2015/lib/tiled-text-part-feature/tiled-text-part-feature.component.js +0 -31
- package/esm2015/lib/token-text-layer-part-feature/token-text-layer-part-feature.component.js +0 -171
- package/esm2015/lib/token-text-part-feature/edit-token-text-part.query.js +0 -18
- package/esm2015/lib/token-text-part-feature/edit-token-text-part.service.js +0 -23
- package/esm2015/lib/token-text-part-feature/edit-token-text-part.store.js +0 -27
- package/esm2015/lib/token-text-part-feature/token-text-part-feature.component.js +0 -31
- package/esm2015/myrmidon-cadmus-part-general-pg.js +0 -43
- package/esm2015/public-api.js +0 -17
- package/fesm2015/myrmidon-cadmus-part-general-pg.js +0 -1849
- package/fesm2015/myrmidon-cadmus-part-general-pg.js.map +0 -1
- package/myrmidon-cadmus-part-general-pg.metadata.json +0 -1
|
@@ -1,2342 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@myrmidon/cadmus-state'), require('@angular/router'), require('@datorama/akita'), require('@myrmidon/cadmus-part-general-ui'), require('@myrmidon/cadmus-api'), require('@angular/material/snack-bar'), require('@myrmidon/cadmus-core'), require('@myrmidon/cadmus-ui'), require('@angular/common'), require('@angular/forms'), require('@myrmidon/cadmus-material'), require('@myrmidon/cadmus-ui-pg')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@myrmidon/cadmus-part-general-pg', ['exports', '@angular/core', '@myrmidon/cadmus-state', '@angular/router', '@datorama/akita', '@myrmidon/cadmus-part-general-ui', '@myrmidon/cadmus-api', '@angular/material/snack-bar', '@myrmidon/cadmus-core', '@myrmidon/cadmus-ui', '@angular/common', '@angular/forms', '@myrmidon/cadmus-material', '@myrmidon/cadmus-ui-pg'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.myrmidon = global.myrmidon || {}, global.myrmidon['cadmus-part-general-pg'] = {}), global.ng.core, global['@myrmidon/cadmus-state'], global.ng.router, global['@datorama/akita'], global['@myrmidon/cadmus-part-general-ui'], global['@myrmidon/cadmus-api'], global.ng.material.snackBar, global['@myrmidon/cadmus-core'], global['@myrmidon/cadmus-ui'], global.ng.common, global.ng.forms, global['@myrmidon/cadmus-material'], global['@myrmidon/cadmus-ui-pg']));
|
|
5
|
-
}(this, (function (exports, i0, cadmusState, router, akita, cadmusPartGeneralUi, i2, snackBar, cadmusCore, cadmusUi, common, forms, cadmusMaterial, cadmusUiPg) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n['default'] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
29
|
-
|
|
30
|
-
/*! *****************************************************************************
|
|
31
|
-
Copyright (c) Microsoft Corporation.
|
|
32
|
-
|
|
33
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
34
|
-
purpose with or without fee is hereby granted.
|
|
35
|
-
|
|
36
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
37
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
38
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
39
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
40
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
41
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
42
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
43
|
-
***************************************************************************** */
|
|
44
|
-
/* global Reflect, Promise */
|
|
45
|
-
var extendStatics = function (d, b) {
|
|
46
|
-
extendStatics = Object.setPrototypeOf ||
|
|
47
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
48
|
-
function (d, b) { for (var p in b)
|
|
49
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
50
|
-
d[p] = b[p]; };
|
|
51
|
-
return extendStatics(d, b);
|
|
52
|
-
};
|
|
53
|
-
function __extends(d, b) {
|
|
54
|
-
if (typeof b !== "function" && b !== null)
|
|
55
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
56
|
-
extendStatics(d, b);
|
|
57
|
-
function __() { this.constructor = d; }
|
|
58
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
59
|
-
}
|
|
60
|
-
var __assign = function () {
|
|
61
|
-
__assign = Object.assign || function __assign(t) {
|
|
62
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
63
|
-
s = arguments[i];
|
|
64
|
-
for (var p in s)
|
|
65
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
66
|
-
t[p] = s[p];
|
|
67
|
-
}
|
|
68
|
-
return t;
|
|
69
|
-
};
|
|
70
|
-
return __assign.apply(this, arguments);
|
|
71
|
-
};
|
|
72
|
-
function __rest(s, e) {
|
|
73
|
-
var t = {};
|
|
74
|
-
for (var p in s)
|
|
75
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
76
|
-
t[p] = s[p];
|
|
77
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
78
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
79
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
80
|
-
t[p[i]] = s[p[i]];
|
|
81
|
-
}
|
|
82
|
-
return t;
|
|
83
|
-
}
|
|
84
|
-
function __decorate(decorators, target, key, desc) {
|
|
85
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
86
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
87
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
88
|
-
else
|
|
89
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
90
|
-
if (d = decorators[i])
|
|
91
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
92
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
93
|
-
}
|
|
94
|
-
function __param(paramIndex, decorator) {
|
|
95
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
96
|
-
}
|
|
97
|
-
function __metadata(metadataKey, metadataValue) {
|
|
98
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
99
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
100
|
-
}
|
|
101
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
102
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
103
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
104
|
-
function fulfilled(value) { try {
|
|
105
|
-
step(generator.next(value));
|
|
106
|
-
}
|
|
107
|
-
catch (e) {
|
|
108
|
-
reject(e);
|
|
109
|
-
} }
|
|
110
|
-
function rejected(value) { try {
|
|
111
|
-
step(generator["throw"](value));
|
|
112
|
-
}
|
|
113
|
-
catch (e) {
|
|
114
|
-
reject(e);
|
|
115
|
-
} }
|
|
116
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
117
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
function __generator(thisArg, body) {
|
|
121
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
122
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
123
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
124
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
125
|
-
function step(op) {
|
|
126
|
-
if (f)
|
|
127
|
-
throw new TypeError("Generator is already executing.");
|
|
128
|
-
while (_)
|
|
129
|
-
try {
|
|
130
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
131
|
-
return t;
|
|
132
|
-
if (y = 0, t)
|
|
133
|
-
op = [op[0] & 2, t.value];
|
|
134
|
-
switch (op[0]) {
|
|
135
|
-
case 0:
|
|
136
|
-
case 1:
|
|
137
|
-
t = op;
|
|
138
|
-
break;
|
|
139
|
-
case 4:
|
|
140
|
-
_.label++;
|
|
141
|
-
return { value: op[1], done: false };
|
|
142
|
-
case 5:
|
|
143
|
-
_.label++;
|
|
144
|
-
y = op[1];
|
|
145
|
-
op = [0];
|
|
146
|
-
continue;
|
|
147
|
-
case 7:
|
|
148
|
-
op = _.ops.pop();
|
|
149
|
-
_.trys.pop();
|
|
150
|
-
continue;
|
|
151
|
-
default:
|
|
152
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
153
|
-
_ = 0;
|
|
154
|
-
continue;
|
|
155
|
-
}
|
|
156
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
157
|
-
_.label = op[1];
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
161
|
-
_.label = t[1];
|
|
162
|
-
t = op;
|
|
163
|
-
break;
|
|
164
|
-
}
|
|
165
|
-
if (t && _.label < t[2]) {
|
|
166
|
-
_.label = t[2];
|
|
167
|
-
_.ops.push(op);
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
if (t[2])
|
|
171
|
-
_.ops.pop();
|
|
172
|
-
_.trys.pop();
|
|
173
|
-
continue;
|
|
174
|
-
}
|
|
175
|
-
op = body.call(thisArg, _);
|
|
176
|
-
}
|
|
177
|
-
catch (e) {
|
|
178
|
-
op = [6, e];
|
|
179
|
-
y = 0;
|
|
180
|
-
}
|
|
181
|
-
finally {
|
|
182
|
-
f = t = 0;
|
|
183
|
-
}
|
|
184
|
-
if (op[0] & 5)
|
|
185
|
-
throw op[1];
|
|
186
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
190
|
-
if (k2 === undefined)
|
|
191
|
-
k2 = k;
|
|
192
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
193
|
-
}) : (function (o, m, k, k2) {
|
|
194
|
-
if (k2 === undefined)
|
|
195
|
-
k2 = k;
|
|
196
|
-
o[k2] = m[k];
|
|
197
|
-
});
|
|
198
|
-
function __exportStar(m, o) {
|
|
199
|
-
for (var p in m)
|
|
200
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
201
|
-
__createBinding(o, m, p);
|
|
202
|
-
}
|
|
203
|
-
function __values(o) {
|
|
204
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
205
|
-
if (m)
|
|
206
|
-
return m.call(o);
|
|
207
|
-
if (o && typeof o.length === "number")
|
|
208
|
-
return {
|
|
209
|
-
next: function () {
|
|
210
|
-
if (o && i >= o.length)
|
|
211
|
-
o = void 0;
|
|
212
|
-
return { value: o && o[i++], done: !o };
|
|
213
|
-
}
|
|
214
|
-
};
|
|
215
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
216
|
-
}
|
|
217
|
-
function __read(o, n) {
|
|
218
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
219
|
-
if (!m)
|
|
220
|
-
return o;
|
|
221
|
-
var i = m.call(o), r, ar = [], e;
|
|
222
|
-
try {
|
|
223
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
224
|
-
ar.push(r.value);
|
|
225
|
-
}
|
|
226
|
-
catch (error) {
|
|
227
|
-
e = { error: error };
|
|
228
|
-
}
|
|
229
|
-
finally {
|
|
230
|
-
try {
|
|
231
|
-
if (r && !r.done && (m = i["return"]))
|
|
232
|
-
m.call(i);
|
|
233
|
-
}
|
|
234
|
-
finally {
|
|
235
|
-
if (e)
|
|
236
|
-
throw e.error;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
return ar;
|
|
240
|
-
}
|
|
241
|
-
/** @deprecated */
|
|
242
|
-
function __spread() {
|
|
243
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
244
|
-
ar = ar.concat(__read(arguments[i]));
|
|
245
|
-
return ar;
|
|
246
|
-
}
|
|
247
|
-
/** @deprecated */
|
|
248
|
-
function __spreadArrays() {
|
|
249
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
250
|
-
s += arguments[i].length;
|
|
251
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
252
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
253
|
-
r[k] = a[j];
|
|
254
|
-
return r;
|
|
255
|
-
}
|
|
256
|
-
function __spreadArray(to, from) {
|
|
257
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
258
|
-
to[j] = from[i];
|
|
259
|
-
return to;
|
|
260
|
-
}
|
|
261
|
-
function __await(v) {
|
|
262
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
263
|
-
}
|
|
264
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
265
|
-
if (!Symbol.asyncIterator)
|
|
266
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
267
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
268
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
269
|
-
function verb(n) { if (g[n])
|
|
270
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
271
|
-
function resume(n, v) { try {
|
|
272
|
-
step(g[n](v));
|
|
273
|
-
}
|
|
274
|
-
catch (e) {
|
|
275
|
-
settle(q[0][3], e);
|
|
276
|
-
} }
|
|
277
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
278
|
-
function fulfill(value) { resume("next", value); }
|
|
279
|
-
function reject(value) { resume("throw", value); }
|
|
280
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
281
|
-
resume(q[0][0], q[0][1]); }
|
|
282
|
-
}
|
|
283
|
-
function __asyncDelegator(o) {
|
|
284
|
-
var i, p;
|
|
285
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
286
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
287
|
-
}
|
|
288
|
-
function __asyncValues(o) {
|
|
289
|
-
if (!Symbol.asyncIterator)
|
|
290
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
291
|
-
var m = o[Symbol.asyncIterator], i;
|
|
292
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
293
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
294
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
295
|
-
}
|
|
296
|
-
function __makeTemplateObject(cooked, raw) {
|
|
297
|
-
if (Object.defineProperty) {
|
|
298
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
299
|
-
}
|
|
300
|
-
else {
|
|
301
|
-
cooked.raw = raw;
|
|
302
|
-
}
|
|
303
|
-
return cooked;
|
|
304
|
-
}
|
|
305
|
-
;
|
|
306
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
307
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
308
|
-
}) : function (o, v) {
|
|
309
|
-
o["default"] = v;
|
|
310
|
-
};
|
|
311
|
-
function __importStar(mod) {
|
|
312
|
-
if (mod && mod.__esModule)
|
|
313
|
-
return mod;
|
|
314
|
-
var result = {};
|
|
315
|
-
if (mod != null)
|
|
316
|
-
for (var k in mod)
|
|
317
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
318
|
-
__createBinding(result, mod, k);
|
|
319
|
-
__setModuleDefault(result, mod);
|
|
320
|
-
return result;
|
|
321
|
-
}
|
|
322
|
-
function __importDefault(mod) {
|
|
323
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
324
|
-
}
|
|
325
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
326
|
-
if (kind === "a" && !f)
|
|
327
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
328
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
329
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
330
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
331
|
-
}
|
|
332
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
333
|
-
if (kind === "m")
|
|
334
|
-
throw new TypeError("Private method is not writable");
|
|
335
|
-
if (kind === "a" && !f)
|
|
336
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
337
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
338
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
339
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
exports.ɵb = /** @class */ (function (_super) {
|
|
343
|
-
__extends(EditCategoriesPartStore, _super);
|
|
344
|
-
function EditCategoriesPartStore() {
|
|
345
|
-
return _super.call(this, cadmusState.editPartInitialState) || this;
|
|
346
|
-
}
|
|
347
|
-
EditCategoriesPartStore.prototype.setDirty = function (value) {
|
|
348
|
-
this.update({ dirty: value });
|
|
349
|
-
};
|
|
350
|
-
EditCategoriesPartStore.prototype.setSaving = function (value) {
|
|
351
|
-
this.update({ saving: value });
|
|
352
|
-
};
|
|
353
|
-
return EditCategoriesPartStore;
|
|
354
|
-
}(akita.Store));
|
|
355
|
-
exports.ɵb.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditCategoriesPartStore_Factory() { return new exports.ɵb(); }, token: exports.ɵb, providedIn: "root" });
|
|
356
|
-
exports.ɵb.decorators = [
|
|
357
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
358
|
-
];
|
|
359
|
-
exports.ɵb.ctorParameters = function () { return []; };
|
|
360
|
-
exports.ɵb = __decorate([
|
|
361
|
-
akita.StoreConfig({ name: cadmusPartGeneralUi.CATEGORIES_PART_TYPEID })
|
|
362
|
-
], exports.ɵb);
|
|
363
|
-
|
|
364
|
-
var EditCategoriesPartQuery = /** @class */ (function (_super) {
|
|
365
|
-
__extends(EditCategoriesPartQuery, _super);
|
|
366
|
-
function EditCategoriesPartQuery(store) {
|
|
367
|
-
return _super.call(this, store) || this;
|
|
368
|
-
}
|
|
369
|
-
return EditCategoriesPartQuery;
|
|
370
|
-
}(cadmusState.EditPartQueryBase));
|
|
371
|
-
EditCategoriesPartQuery.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditCategoriesPartQuery_Factory() { return new EditCategoriesPartQuery(i0__namespace.ɵɵinject(exports.ɵb)); }, token: EditCategoriesPartQuery, providedIn: "root" });
|
|
372
|
-
EditCategoriesPartQuery.decorators = [
|
|
373
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
374
|
-
];
|
|
375
|
-
EditCategoriesPartQuery.ctorParameters = function () { return [
|
|
376
|
-
{ type: exports.ɵb }
|
|
377
|
-
]; };
|
|
378
|
-
|
|
379
|
-
var EditCategoriesPartService = /** @class */ (function (_super) {
|
|
380
|
-
__extends(EditCategoriesPartService, _super);
|
|
381
|
-
function EditCategoriesPartService(editPartStore, itemService, thesaurusService) {
|
|
382
|
-
var _this = _super.call(this, itemService, thesaurusService) || this;
|
|
383
|
-
_this.store = editPartStore;
|
|
384
|
-
return _this;
|
|
385
|
-
}
|
|
386
|
-
return EditCategoriesPartService;
|
|
387
|
-
}(cadmusState.EditPartServiceBase));
|
|
388
|
-
EditCategoriesPartService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditCategoriesPartService_Factory() { return new EditCategoriesPartService(i0__namespace.ɵɵinject(exports.ɵb), i0__namespace.ɵɵinject(i2__namespace.ItemService), i0__namespace.ɵɵinject(i2__namespace.ThesaurusService)); }, token: EditCategoriesPartService, providedIn: "root" });
|
|
389
|
-
EditCategoriesPartService.decorators = [
|
|
390
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
391
|
-
];
|
|
392
|
-
EditCategoriesPartService.ctorParameters = function () { return [
|
|
393
|
-
{ type: exports.ɵb },
|
|
394
|
-
{ type: i2.ItemService },
|
|
395
|
-
{ type: i2.ThesaurusService }
|
|
396
|
-
]; };
|
|
397
|
-
|
|
398
|
-
var CategoriesPartFeatureComponent = /** @class */ (function (_super) {
|
|
399
|
-
__extends(CategoriesPartFeatureComponent, _super);
|
|
400
|
-
function CategoriesPartFeatureComponent(router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) {
|
|
401
|
-
return _super.call(this, router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) || this;
|
|
402
|
-
}
|
|
403
|
-
CategoriesPartFeatureComponent.prototype.ngOnInit = function () {
|
|
404
|
-
this.initEditor(['categories']);
|
|
405
|
-
};
|
|
406
|
-
return CategoriesPartFeatureComponent;
|
|
407
|
-
}(cadmusState.EditPartFeatureBase));
|
|
408
|
-
CategoriesPartFeatureComponent.decorators = [
|
|
409
|
-
{ type: i0.Component, args: [{
|
|
410
|
-
selector: 'cadmus-categories-part-feature',
|
|
411
|
-
template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-categories-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-categories-part>\r\n",
|
|
412
|
-
styles: [""]
|
|
413
|
-
},] }
|
|
414
|
-
];
|
|
415
|
-
CategoriesPartFeatureComponent.ctorParameters = function () { return [
|
|
416
|
-
{ type: router.Router },
|
|
417
|
-
{ type: router.ActivatedRoute },
|
|
418
|
-
{ type: snackBar.MatSnackBar },
|
|
419
|
-
{ type: EditCategoriesPartQuery },
|
|
420
|
-
{ type: EditCategoriesPartService },
|
|
421
|
-
{ type: cadmusState.EditItemQuery },
|
|
422
|
-
{ type: cadmusState.EditItemService }
|
|
423
|
-
]; };
|
|
424
|
-
|
|
425
|
-
exports.ɵe = /** @class */ (function (_super) {
|
|
426
|
-
__extends(EditChronologyFragmentStore, _super);
|
|
427
|
-
function EditChronologyFragmentStore() {
|
|
428
|
-
return _super.call(this, cadmusState.editFragmentInitialState) || this;
|
|
429
|
-
}
|
|
430
|
-
EditChronologyFragmentStore.prototype.setDirty = function (value) {
|
|
431
|
-
this.update({ dirty: value });
|
|
432
|
-
};
|
|
433
|
-
EditChronologyFragmentStore.prototype.setSaving = function (value) {
|
|
434
|
-
this.update({ saving: value });
|
|
435
|
-
};
|
|
436
|
-
return EditChronologyFragmentStore;
|
|
437
|
-
}(akita.Store));
|
|
438
|
-
exports.ɵe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditChronologyFragmentStore_Factory() { return new exports.ɵe(); }, token: exports.ɵe, providedIn: "root" });
|
|
439
|
-
exports.ɵe.decorators = [
|
|
440
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
441
|
-
];
|
|
442
|
-
exports.ɵe.ctorParameters = function () { return []; };
|
|
443
|
-
exports.ɵe = __decorate([
|
|
444
|
-
akita.StoreConfig({ name: cadmusPartGeneralUi.CHRONOLOGY_FRAGMENT_TYPEID })
|
|
445
|
-
], exports.ɵe);
|
|
446
|
-
|
|
447
|
-
var EditChronologyFragmentQuery = /** @class */ (function (_super) {
|
|
448
|
-
__extends(EditChronologyFragmentQuery, _super);
|
|
449
|
-
function EditChronologyFragmentQuery(store) {
|
|
450
|
-
var _this = _super.call(this, store) || this;
|
|
451
|
-
_this.store = store;
|
|
452
|
-
return _this;
|
|
453
|
-
}
|
|
454
|
-
return EditChronologyFragmentQuery;
|
|
455
|
-
}(cadmusState.EditFragmentQueryBase));
|
|
456
|
-
EditChronologyFragmentQuery.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditChronologyFragmentQuery_Factory() { return new EditChronologyFragmentQuery(i0__namespace.ɵɵinject(exports.ɵe)); }, token: EditChronologyFragmentQuery, providedIn: "root" });
|
|
457
|
-
EditChronologyFragmentQuery.decorators = [
|
|
458
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
459
|
-
];
|
|
460
|
-
EditChronologyFragmentQuery.ctorParameters = function () { return [
|
|
461
|
-
{ type: exports.ɵe }
|
|
462
|
-
]; };
|
|
463
|
-
|
|
464
|
-
var EditChronologyFragmentService = /** @class */ (function (_super) {
|
|
465
|
-
__extends(EditChronologyFragmentService, _super);
|
|
466
|
-
function EditChronologyFragmentService(editPartStore, itemService, thesaurusService) {
|
|
467
|
-
var _this = _super.call(this, itemService, thesaurusService) || this;
|
|
468
|
-
_this.store = editPartStore;
|
|
469
|
-
return _this;
|
|
470
|
-
}
|
|
471
|
-
return EditChronologyFragmentService;
|
|
472
|
-
}(cadmusState.EditFragmentServiceBase));
|
|
473
|
-
EditChronologyFragmentService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditChronologyFragmentService_Factory() { return new EditChronologyFragmentService(i0__namespace.ɵɵinject(exports.ɵe), i0__namespace.ɵɵinject(i2__namespace.ItemService), i0__namespace.ɵɵinject(i2__namespace.ThesaurusService)); }, token: EditChronologyFragmentService, providedIn: "root" });
|
|
474
|
-
EditChronologyFragmentService.decorators = [
|
|
475
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
476
|
-
];
|
|
477
|
-
EditChronologyFragmentService.ctorParameters = function () { return [
|
|
478
|
-
{ type: exports.ɵe },
|
|
479
|
-
{ type: i2.ItemService },
|
|
480
|
-
{ type: i2.ThesaurusService }
|
|
481
|
-
]; };
|
|
482
|
-
|
|
483
|
-
var ChronologyFragmentFeatureComponent = /** @class */ (function (_super) {
|
|
484
|
-
__extends(ChronologyFragmentFeatureComponent, _super);
|
|
485
|
-
function ChronologyFragmentFeatureComponent(router, route, snackbar, editFrQuery, editFrService, editItemQuery, editItemService, editLayersQuery, editLayersService, libraryRouteService) {
|
|
486
|
-
return _super.call(this, router, route, snackbar, editFrQuery, editFrService, editItemQuery, editItemService, editLayersQuery, editLayersService, libraryRouteService) || this;
|
|
487
|
-
}
|
|
488
|
-
ChronologyFragmentFeatureComponent.prototype.ngOnInit = function () {
|
|
489
|
-
this.initEditor(['chronology-tags']);
|
|
490
|
-
};
|
|
491
|
-
return ChronologyFragmentFeatureComponent;
|
|
492
|
-
}(cadmusState.EditFragmentFeatureBase));
|
|
493
|
-
ChronologyFragmentFeatureComponent.decorators = [
|
|
494
|
-
{ type: i0.Component, args: [{
|
|
495
|
-
selector: 'cadmus-chronology-fragment-feature',
|
|
496
|
-
template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"baseText$ | async\"\r\n [locations]=\"[frLoc]\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-chronology-fragment\r\n [model]=\"fragment$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-chronology-fragment>\r\n",
|
|
497
|
-
styles: [""]
|
|
498
|
-
},] }
|
|
499
|
-
];
|
|
500
|
-
ChronologyFragmentFeatureComponent.ctorParameters = function () { return [
|
|
501
|
-
{ type: router.Router },
|
|
502
|
-
{ type: router.ActivatedRoute },
|
|
503
|
-
{ type: snackBar.MatSnackBar },
|
|
504
|
-
{ type: EditChronologyFragmentQuery },
|
|
505
|
-
{ type: EditChronologyFragmentService },
|
|
506
|
-
{ type: cadmusState.EditItemQuery },
|
|
507
|
-
{ type: cadmusState.EditItemService },
|
|
508
|
-
{ type: cadmusState.EditLayerPartQuery },
|
|
509
|
-
{ type: cadmusState.EditLayerPartService },
|
|
510
|
-
{ type: cadmusCore.LibraryRouteService }
|
|
511
|
-
]; };
|
|
512
|
-
|
|
513
|
-
exports.ɵh = /** @class */ (function (_super) {
|
|
514
|
-
__extends(EditCommentFragmentStore, _super);
|
|
515
|
-
function EditCommentFragmentStore() {
|
|
516
|
-
return _super.call(this, cadmusState.editFragmentInitialState) || this;
|
|
517
|
-
}
|
|
518
|
-
EditCommentFragmentStore.prototype.setDirty = function (value) {
|
|
519
|
-
this.update({ dirty: value });
|
|
520
|
-
};
|
|
521
|
-
EditCommentFragmentStore.prototype.setSaving = function (value) {
|
|
522
|
-
this.update({ saving: value });
|
|
523
|
-
};
|
|
524
|
-
return EditCommentFragmentStore;
|
|
525
|
-
}(akita.Store));
|
|
526
|
-
exports.ɵh.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditCommentFragmentStore_Factory() { return new exports.ɵh(); }, token: exports.ɵh, providedIn: "root" });
|
|
527
|
-
exports.ɵh.decorators = [
|
|
528
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
529
|
-
];
|
|
530
|
-
exports.ɵh.ctorParameters = function () { return []; };
|
|
531
|
-
exports.ɵh = __decorate([
|
|
532
|
-
akita.StoreConfig({ name: cadmusPartGeneralUi.COMMENT_FRAGMENT_TYPEID })
|
|
533
|
-
], exports.ɵh);
|
|
534
|
-
|
|
535
|
-
var EditCommentFragmentQuery = /** @class */ (function (_super) {
|
|
536
|
-
__extends(EditCommentFragmentQuery, _super);
|
|
537
|
-
function EditCommentFragmentQuery(store) {
|
|
538
|
-
var _this = _super.call(this, store) || this;
|
|
539
|
-
_this.store = store;
|
|
540
|
-
return _this;
|
|
541
|
-
}
|
|
542
|
-
return EditCommentFragmentQuery;
|
|
543
|
-
}(cadmusState.EditFragmentQueryBase));
|
|
544
|
-
EditCommentFragmentQuery.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditCommentFragmentQuery_Factory() { return new EditCommentFragmentQuery(i0__namespace.ɵɵinject(exports.ɵh)); }, token: EditCommentFragmentQuery, providedIn: "root" });
|
|
545
|
-
EditCommentFragmentQuery.decorators = [
|
|
546
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
547
|
-
];
|
|
548
|
-
EditCommentFragmentQuery.ctorParameters = function () { return [
|
|
549
|
-
{ type: exports.ɵh }
|
|
550
|
-
]; };
|
|
551
|
-
|
|
552
|
-
var EditCommentFragmentService = /** @class */ (function (_super) {
|
|
553
|
-
__extends(EditCommentFragmentService, _super);
|
|
554
|
-
function EditCommentFragmentService(editPartStore, itemService, thesaurusService) {
|
|
555
|
-
var _this = _super.call(this, itemService, thesaurusService) || this;
|
|
556
|
-
_this.store = editPartStore;
|
|
557
|
-
return _this;
|
|
558
|
-
}
|
|
559
|
-
return EditCommentFragmentService;
|
|
560
|
-
}(cadmusState.EditFragmentServiceBase));
|
|
561
|
-
EditCommentFragmentService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditCommentFragmentService_Factory() { return new EditCommentFragmentService(i0__namespace.ɵɵinject(exports.ɵh), i0__namespace.ɵɵinject(i2__namespace.ItemService), i0__namespace.ɵɵinject(i2__namespace.ThesaurusService)); }, token: EditCommentFragmentService, providedIn: "root" });
|
|
562
|
-
EditCommentFragmentService.decorators = [
|
|
563
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
564
|
-
];
|
|
565
|
-
EditCommentFragmentService.ctorParameters = function () { return [
|
|
566
|
-
{ type: exports.ɵh },
|
|
567
|
-
{ type: i2.ItemService },
|
|
568
|
-
{ type: i2.ThesaurusService }
|
|
569
|
-
]; };
|
|
570
|
-
|
|
571
|
-
var CommentFragmentFeatureComponent = /** @class */ (function (_super) {
|
|
572
|
-
__extends(CommentFragmentFeatureComponent, _super);
|
|
573
|
-
function CommentFragmentFeatureComponent(router, route, snackbar, editFrQuery, editFrService, editItemQuery, editItemService, editLayersQuery, editLayersService, libraryRouteService) {
|
|
574
|
-
return _super.call(this, router, route, snackbar, editFrQuery, editFrService, editItemQuery, editItemService, editLayersQuery, editLayersService, libraryRouteService) || this;
|
|
575
|
-
}
|
|
576
|
-
CommentFragmentFeatureComponent.prototype.ngOnInit = function () {
|
|
577
|
-
this.initEditor([
|
|
578
|
-
'comment-tags',
|
|
579
|
-
'doc-reference-tags',
|
|
580
|
-
'categories',
|
|
581
|
-
'languages',
|
|
582
|
-
'keyword-indexes',
|
|
583
|
-
'keyword-tags'
|
|
584
|
-
]);
|
|
585
|
-
};
|
|
586
|
-
return CommentFragmentFeatureComponent;
|
|
587
|
-
}(cadmusState.EditFragmentFeatureBase));
|
|
588
|
-
CommentFragmentFeatureComponent.decorators = [
|
|
589
|
-
{ type: i0.Component, args: [{
|
|
590
|
-
selector: 'cadmus-comment-fragment-feature',
|
|
591
|
-
template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"baseText$ | async\"\r\n [locations]=\"[frLoc]\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-comment-editor\r\n [model]=\"fragment$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-comment-editor>\r\n",
|
|
592
|
-
styles: ["div.base-text{margin:12px;border:1px solid #f0f0f0;border-radius:4px;padding:8px}"]
|
|
593
|
-
},] }
|
|
594
|
-
];
|
|
595
|
-
CommentFragmentFeatureComponent.ctorParameters = function () { return [
|
|
596
|
-
{ type: router.Router },
|
|
597
|
-
{ type: router.ActivatedRoute },
|
|
598
|
-
{ type: snackBar.MatSnackBar },
|
|
599
|
-
{ type: EditCommentFragmentQuery },
|
|
600
|
-
{ type: EditCommentFragmentService },
|
|
601
|
-
{ type: cadmusState.EditItemQuery },
|
|
602
|
-
{ type: cadmusState.EditItemService },
|
|
603
|
-
{ type: cadmusState.EditLayerPartQuery },
|
|
604
|
-
{ type: cadmusState.EditLayerPartService },
|
|
605
|
-
{ type: cadmusCore.LibraryRouteService }
|
|
606
|
-
]; };
|
|
607
|
-
|
|
608
|
-
exports.ɵk = /** @class */ (function (_super) {
|
|
609
|
-
__extends(EditCommentPartStore, _super);
|
|
610
|
-
function EditCommentPartStore() {
|
|
611
|
-
return _super.call(this, cadmusState.editPartInitialState) || this;
|
|
612
|
-
}
|
|
613
|
-
EditCommentPartStore.prototype.setDirty = function (value) {
|
|
614
|
-
this.update({ dirty: value });
|
|
615
|
-
};
|
|
616
|
-
EditCommentPartStore.prototype.setSaving = function (value) {
|
|
617
|
-
this.update({ saving: value });
|
|
618
|
-
};
|
|
619
|
-
return EditCommentPartStore;
|
|
620
|
-
}(akita.Store));
|
|
621
|
-
exports.ɵk.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditCommentPartStore_Factory() { return new exports.ɵk(); }, token: exports.ɵk, providedIn: "root" });
|
|
622
|
-
exports.ɵk.decorators = [
|
|
623
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
624
|
-
];
|
|
625
|
-
exports.ɵk.ctorParameters = function () { return []; };
|
|
626
|
-
exports.ɵk = __decorate([
|
|
627
|
-
akita.StoreConfig({ name: cadmusPartGeneralUi.COMMENT_PART_TYPEID })
|
|
628
|
-
], exports.ɵk);
|
|
629
|
-
|
|
630
|
-
var EditCommentPartService = /** @class */ (function (_super) {
|
|
631
|
-
__extends(EditCommentPartService, _super);
|
|
632
|
-
function EditCommentPartService(editPartStore, itemService, thesaurusService) {
|
|
633
|
-
var _this = _super.call(this, itemService, thesaurusService) || this;
|
|
634
|
-
_this.store = editPartStore;
|
|
635
|
-
return _this;
|
|
636
|
-
}
|
|
637
|
-
return EditCommentPartService;
|
|
638
|
-
}(cadmusState.EditPartServiceBase));
|
|
639
|
-
EditCommentPartService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditCommentPartService_Factory() { return new EditCommentPartService(i0__namespace.ɵɵinject(exports.ɵk), i0__namespace.ɵɵinject(i2__namespace.ItemService), i0__namespace.ɵɵinject(i2__namespace.ThesaurusService)); }, token: EditCommentPartService, providedIn: "root" });
|
|
640
|
-
EditCommentPartService.decorators = [
|
|
641
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
642
|
-
];
|
|
643
|
-
EditCommentPartService.ctorParameters = function () { return [
|
|
644
|
-
{ type: exports.ɵk },
|
|
645
|
-
{ type: i2.ItemService },
|
|
646
|
-
{ type: i2.ThesaurusService }
|
|
647
|
-
]; };
|
|
648
|
-
|
|
649
|
-
var EditCommentPartQuery = /** @class */ (function (_super) {
|
|
650
|
-
__extends(EditCommentPartQuery, _super);
|
|
651
|
-
function EditCommentPartQuery(store) {
|
|
652
|
-
return _super.call(this, store) || this;
|
|
653
|
-
}
|
|
654
|
-
return EditCommentPartQuery;
|
|
655
|
-
}(cadmusState.EditPartQueryBase));
|
|
656
|
-
EditCommentPartQuery.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditCommentPartQuery_Factory() { return new EditCommentPartQuery(i0__namespace.ɵɵinject(exports.ɵk)); }, token: EditCommentPartQuery, providedIn: "root" });
|
|
657
|
-
EditCommentPartQuery.decorators = [
|
|
658
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
659
|
-
];
|
|
660
|
-
EditCommentPartQuery.ctorParameters = function () { return [
|
|
661
|
-
{ type: exports.ɵk }
|
|
662
|
-
]; };
|
|
663
|
-
|
|
664
|
-
var CommentPartFeatureComponent = /** @class */ (function (_super) {
|
|
665
|
-
__extends(CommentPartFeatureComponent, _super);
|
|
666
|
-
function CommentPartFeatureComponent(router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) {
|
|
667
|
-
return _super.call(this, router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) || this;
|
|
668
|
-
}
|
|
669
|
-
CommentPartFeatureComponent.prototype.ngOnInit = function () {
|
|
670
|
-
this.initEditor([
|
|
671
|
-
'comment-tags',
|
|
672
|
-
'doc-reference-tags',
|
|
673
|
-
'categories',
|
|
674
|
-
'languages',
|
|
675
|
-
'keyword-indexes',
|
|
676
|
-
'keyword-tags',
|
|
677
|
-
]);
|
|
678
|
-
};
|
|
679
|
-
return CommentPartFeatureComponent;
|
|
680
|
-
}(cadmusState.EditPartFeatureBase));
|
|
681
|
-
CommentPartFeatureComponent.decorators = [
|
|
682
|
-
{ type: i0.Component, args: [{
|
|
683
|
-
selector: 'cadmus-comment-part-feature',
|
|
684
|
-
template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-comment-editor\n [itemId]=\"itemId\"\n [roleId]=\"roleId\"\n [model]=\"part$ | async\"\n (modelChange)=\"save($event)\"\n [thesauri]=\"thesauri$ | async\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-comment-editor>\n",
|
|
685
|
-
styles: [""]
|
|
686
|
-
},] }
|
|
687
|
-
];
|
|
688
|
-
CommentPartFeatureComponent.ctorParameters = function () { return [
|
|
689
|
-
{ type: router.Router },
|
|
690
|
-
{ type: router.ActivatedRoute },
|
|
691
|
-
{ type: snackBar.MatSnackBar },
|
|
692
|
-
{ type: EditCommentPartQuery },
|
|
693
|
-
{ type: EditCommentPartService },
|
|
694
|
-
{ type: cadmusState.EditItemQuery },
|
|
695
|
-
{ type: cadmusState.EditItemService }
|
|
696
|
-
]; };
|
|
697
|
-
|
|
698
|
-
exports.ɵn = /** @class */ (function (_super) {
|
|
699
|
-
__extends(EditDocReferencesPartStore, _super);
|
|
700
|
-
function EditDocReferencesPartStore() {
|
|
701
|
-
return _super.call(this, cadmusState.editPartInitialState) || this;
|
|
702
|
-
}
|
|
703
|
-
EditDocReferencesPartStore.prototype.setDirty = function (value) {
|
|
704
|
-
this.update({ dirty: value });
|
|
705
|
-
};
|
|
706
|
-
EditDocReferencesPartStore.prototype.setSaving = function (value) {
|
|
707
|
-
this.update({ saving: value });
|
|
708
|
-
};
|
|
709
|
-
return EditDocReferencesPartStore;
|
|
710
|
-
}(akita.Store));
|
|
711
|
-
exports.ɵn.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditDocReferencesPartStore_Factory() { return new exports.ɵn(); }, token: exports.ɵn, providedIn: "root" });
|
|
712
|
-
exports.ɵn.decorators = [
|
|
713
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
714
|
-
];
|
|
715
|
-
exports.ɵn.ctorParameters = function () { return []; };
|
|
716
|
-
exports.ɵn = __decorate([
|
|
717
|
-
akita.StoreConfig({ name: cadmusPartGeneralUi.DOC_REFERENCES_PART_TYPEID })
|
|
718
|
-
], exports.ɵn);
|
|
719
|
-
|
|
720
|
-
var EditDocReferencesPartService = /** @class */ (function (_super) {
|
|
721
|
-
__extends(EditDocReferencesPartService, _super);
|
|
722
|
-
function EditDocReferencesPartService(editPartStore, itemService, thesaurusService) {
|
|
723
|
-
var _this = _super.call(this, itemService, thesaurusService) || this;
|
|
724
|
-
_this.store = editPartStore;
|
|
725
|
-
return _this;
|
|
726
|
-
}
|
|
727
|
-
return EditDocReferencesPartService;
|
|
728
|
-
}(cadmusState.EditPartServiceBase));
|
|
729
|
-
EditDocReferencesPartService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditDocReferencesPartService_Factory() { return new EditDocReferencesPartService(i0__namespace.ɵɵinject(exports.ɵn), i0__namespace.ɵɵinject(i2__namespace.ItemService), i0__namespace.ɵɵinject(i2__namespace.ThesaurusService)); }, token: EditDocReferencesPartService, providedIn: "root" });
|
|
730
|
-
EditDocReferencesPartService.decorators = [
|
|
731
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
732
|
-
];
|
|
733
|
-
EditDocReferencesPartService.ctorParameters = function () { return [
|
|
734
|
-
{ type: exports.ɵn },
|
|
735
|
-
{ type: i2.ItemService },
|
|
736
|
-
{ type: i2.ThesaurusService }
|
|
737
|
-
]; };
|
|
738
|
-
|
|
739
|
-
var EditDocReferencesPartQuery = /** @class */ (function (_super) {
|
|
740
|
-
__extends(EditDocReferencesPartQuery, _super);
|
|
741
|
-
function EditDocReferencesPartQuery(store) {
|
|
742
|
-
return _super.call(this, store) || this;
|
|
743
|
-
}
|
|
744
|
-
return EditDocReferencesPartQuery;
|
|
745
|
-
}(cadmusState.EditPartQueryBase));
|
|
746
|
-
EditDocReferencesPartQuery.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditDocReferencesPartQuery_Factory() { return new EditDocReferencesPartQuery(i0__namespace.ɵɵinject(exports.ɵn)); }, token: EditDocReferencesPartQuery, providedIn: "root" });
|
|
747
|
-
EditDocReferencesPartQuery.decorators = [
|
|
748
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
749
|
-
];
|
|
750
|
-
EditDocReferencesPartQuery.ctorParameters = function () { return [
|
|
751
|
-
{ type: exports.ɵn }
|
|
752
|
-
]; };
|
|
753
|
-
|
|
754
|
-
var DocReferencesPartFeatureComponent = /** @class */ (function (_super) {
|
|
755
|
-
__extends(DocReferencesPartFeatureComponent, _super);
|
|
756
|
-
function DocReferencesPartFeatureComponent(router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) {
|
|
757
|
-
return _super.call(this, router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) || this;
|
|
758
|
-
}
|
|
759
|
-
DocReferencesPartFeatureComponent.prototype.ngOnInit = function () {
|
|
760
|
-
this.initEditor(['doc-reference-tags']);
|
|
761
|
-
};
|
|
762
|
-
return DocReferencesPartFeatureComponent;
|
|
763
|
-
}(cadmusState.EditPartFeatureBase));
|
|
764
|
-
DocReferencesPartFeatureComponent.decorators = [
|
|
765
|
-
{ type: i0.Component, args: [{
|
|
766
|
-
selector: 'cadmus-doc-references-part-feature',
|
|
767
|
-
template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-doc-references-part\n [itemId]=\"itemId\"\n [roleId]=\"roleId\"\n [model]=\"part$ | async\"\n (modelChange)=\"save($event)\"\n [thesauri]=\"thesauri$ | async\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-doc-references-part>\n",
|
|
768
|
-
styles: [""]
|
|
769
|
-
},] }
|
|
770
|
-
];
|
|
771
|
-
DocReferencesPartFeatureComponent.ctorParameters = function () { return [
|
|
772
|
-
{ type: router.Router },
|
|
773
|
-
{ type: router.ActivatedRoute },
|
|
774
|
-
{ type: snackBar.MatSnackBar },
|
|
775
|
-
{ type: EditDocReferencesPartQuery },
|
|
776
|
-
{ type: EditDocReferencesPartService },
|
|
777
|
-
{ type: cadmusState.EditItemQuery },
|
|
778
|
-
{ type: cadmusState.EditItemService }
|
|
779
|
-
]; };
|
|
780
|
-
|
|
781
|
-
exports.ɵq = /** @class */ (function (_super) {
|
|
782
|
-
__extends(EditHistoricalDatePartStore, _super);
|
|
783
|
-
function EditHistoricalDatePartStore() {
|
|
784
|
-
return _super.call(this, cadmusState.editPartInitialState) || this;
|
|
785
|
-
}
|
|
786
|
-
EditHistoricalDatePartStore.prototype.setDirty = function (value) {
|
|
787
|
-
this.update({ dirty: value });
|
|
788
|
-
};
|
|
789
|
-
EditHistoricalDatePartStore.prototype.setSaving = function (value) {
|
|
790
|
-
this.update({ saving: value });
|
|
791
|
-
};
|
|
792
|
-
return EditHistoricalDatePartStore;
|
|
793
|
-
}(akita.Store));
|
|
794
|
-
exports.ɵq.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditHistoricalDatePartStore_Factory() { return new exports.ɵq(); }, token: exports.ɵq, providedIn: "root" });
|
|
795
|
-
exports.ɵq.decorators = [
|
|
796
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
797
|
-
];
|
|
798
|
-
exports.ɵq.ctorParameters = function () { return []; };
|
|
799
|
-
exports.ɵq = __decorate([
|
|
800
|
-
akita.StoreConfig({ name: cadmusPartGeneralUi.HISTORICAL_DATE_PART_TYPEID })
|
|
801
|
-
], exports.ɵq);
|
|
802
|
-
|
|
803
|
-
var EditHistoricalDatePartQuery = /** @class */ (function (_super) {
|
|
804
|
-
__extends(EditHistoricalDatePartQuery, _super);
|
|
805
|
-
function EditHistoricalDatePartQuery(store) {
|
|
806
|
-
return _super.call(this, store) || this;
|
|
807
|
-
}
|
|
808
|
-
return EditHistoricalDatePartQuery;
|
|
809
|
-
}(cadmusState.EditPartQueryBase));
|
|
810
|
-
EditHistoricalDatePartQuery.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditHistoricalDatePartQuery_Factory() { return new EditHistoricalDatePartQuery(i0__namespace.ɵɵinject(exports.ɵq)); }, token: EditHistoricalDatePartQuery, providedIn: "root" });
|
|
811
|
-
EditHistoricalDatePartQuery.decorators = [
|
|
812
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
813
|
-
];
|
|
814
|
-
EditHistoricalDatePartQuery.ctorParameters = function () { return [
|
|
815
|
-
{ type: exports.ɵq }
|
|
816
|
-
]; };
|
|
817
|
-
|
|
818
|
-
var EditHistoricalDatePartService = /** @class */ (function (_super) {
|
|
819
|
-
__extends(EditHistoricalDatePartService, _super);
|
|
820
|
-
function EditHistoricalDatePartService(editPartStore, itemService, thesaurusService) {
|
|
821
|
-
var _this = _super.call(this, itemService, thesaurusService) || this;
|
|
822
|
-
_this.store = editPartStore;
|
|
823
|
-
return _this;
|
|
824
|
-
}
|
|
825
|
-
return EditHistoricalDatePartService;
|
|
826
|
-
}(cadmusState.EditPartServiceBase));
|
|
827
|
-
EditHistoricalDatePartService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditHistoricalDatePartService_Factory() { return new EditHistoricalDatePartService(i0__namespace.ɵɵinject(exports.ɵq), i0__namespace.ɵɵinject(i2__namespace.ItemService), i0__namespace.ɵɵinject(i2__namespace.ThesaurusService)); }, token: EditHistoricalDatePartService, providedIn: "root" });
|
|
828
|
-
EditHistoricalDatePartService.decorators = [
|
|
829
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
830
|
-
];
|
|
831
|
-
EditHistoricalDatePartService.ctorParameters = function () { return [
|
|
832
|
-
{ type: exports.ɵq },
|
|
833
|
-
{ type: i2.ItemService },
|
|
834
|
-
{ type: i2.ThesaurusService }
|
|
835
|
-
]; };
|
|
836
|
-
|
|
837
|
-
var HistoricalDatePartFeatureComponent = /** @class */ (function (_super) {
|
|
838
|
-
__extends(HistoricalDatePartFeatureComponent, _super);
|
|
839
|
-
function HistoricalDatePartFeatureComponent(router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) {
|
|
840
|
-
return _super.call(this, router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) || this;
|
|
841
|
-
}
|
|
842
|
-
HistoricalDatePartFeatureComponent.prototype.ngOnInit = function () {
|
|
843
|
-
this.initEditor(null);
|
|
844
|
-
};
|
|
845
|
-
return HistoricalDatePartFeatureComponent;
|
|
846
|
-
}(cadmusState.EditPartFeatureBase));
|
|
847
|
-
HistoricalDatePartFeatureComponent.decorators = [
|
|
848
|
-
{ type: i0.Component, args: [{
|
|
849
|
-
selector: 'cadmus-historical-date-part-feature',
|
|
850
|
-
template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-historical-date-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-historical-date-part>\r\n",
|
|
851
|
-
styles: [""]
|
|
852
|
-
},] }
|
|
853
|
-
];
|
|
854
|
-
HistoricalDatePartFeatureComponent.ctorParameters = function () { return [
|
|
855
|
-
{ type: router.Router },
|
|
856
|
-
{ type: router.ActivatedRoute },
|
|
857
|
-
{ type: snackBar.MatSnackBar },
|
|
858
|
-
{ type: EditHistoricalDatePartQuery },
|
|
859
|
-
{ type: EditHistoricalDatePartService },
|
|
860
|
-
{ type: cadmusState.EditItemQuery },
|
|
861
|
-
{ type: cadmusState.EditItemService }
|
|
862
|
-
]; };
|
|
863
|
-
|
|
864
|
-
exports.ɵt = /** @class */ (function (_super) {
|
|
865
|
-
__extends(EditKeywordsPartStore, _super);
|
|
866
|
-
function EditKeywordsPartStore() {
|
|
867
|
-
return _super.call(this, cadmusState.editPartInitialState) || this;
|
|
868
|
-
}
|
|
869
|
-
EditKeywordsPartStore.prototype.setDirty = function (value) {
|
|
870
|
-
this.update({ dirty: value });
|
|
871
|
-
};
|
|
872
|
-
EditKeywordsPartStore.prototype.setSaving = function (value) {
|
|
873
|
-
this.update({ saving: value });
|
|
874
|
-
};
|
|
875
|
-
return EditKeywordsPartStore;
|
|
876
|
-
}(akita.Store));
|
|
877
|
-
exports.ɵt.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditKeywordsPartStore_Factory() { return new exports.ɵt(); }, token: exports.ɵt, providedIn: "root" });
|
|
878
|
-
exports.ɵt.decorators = [
|
|
879
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
880
|
-
];
|
|
881
|
-
exports.ɵt.ctorParameters = function () { return []; };
|
|
882
|
-
exports.ɵt = __decorate([
|
|
883
|
-
akita.StoreConfig({ name: cadmusPartGeneralUi.KEYWORDS_PART_TYPEID })
|
|
884
|
-
], exports.ɵt);
|
|
885
|
-
|
|
886
|
-
var EditKeywordsPartQuery = /** @class */ (function (_super) {
|
|
887
|
-
__extends(EditKeywordsPartQuery, _super);
|
|
888
|
-
function EditKeywordsPartQuery(store) {
|
|
889
|
-
return _super.call(this, store) || this;
|
|
890
|
-
}
|
|
891
|
-
return EditKeywordsPartQuery;
|
|
892
|
-
}(cadmusState.EditPartQueryBase));
|
|
893
|
-
EditKeywordsPartQuery.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditKeywordsPartQuery_Factory() { return new EditKeywordsPartQuery(i0__namespace.ɵɵinject(exports.ɵt)); }, token: EditKeywordsPartQuery, providedIn: "root" });
|
|
894
|
-
EditKeywordsPartQuery.decorators = [
|
|
895
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
896
|
-
];
|
|
897
|
-
EditKeywordsPartQuery.ctorParameters = function () { return [
|
|
898
|
-
{ type: exports.ɵt }
|
|
899
|
-
]; };
|
|
900
|
-
|
|
901
|
-
var EditKeywordsPartService = /** @class */ (function (_super) {
|
|
902
|
-
__extends(EditKeywordsPartService, _super);
|
|
903
|
-
function EditKeywordsPartService(editPartStore, itemService, thesaurusService) {
|
|
904
|
-
var _this = _super.call(this, itemService, thesaurusService) || this;
|
|
905
|
-
_this.store = editPartStore;
|
|
906
|
-
return _this;
|
|
907
|
-
}
|
|
908
|
-
return EditKeywordsPartService;
|
|
909
|
-
}(cadmusState.EditPartServiceBase));
|
|
910
|
-
EditKeywordsPartService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditKeywordsPartService_Factory() { return new EditKeywordsPartService(i0__namespace.ɵɵinject(exports.ɵt), i0__namespace.ɵɵinject(i2__namespace.ItemService), i0__namespace.ɵɵinject(i2__namespace.ThesaurusService)); }, token: EditKeywordsPartService, providedIn: "root" });
|
|
911
|
-
EditKeywordsPartService.decorators = [
|
|
912
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
913
|
-
];
|
|
914
|
-
EditKeywordsPartService.ctorParameters = function () { return [
|
|
915
|
-
{ type: exports.ɵt },
|
|
916
|
-
{ type: i2.ItemService },
|
|
917
|
-
{ type: i2.ThesaurusService }
|
|
918
|
-
]; };
|
|
919
|
-
|
|
920
|
-
var KeywordsPartFeatureComponent = /** @class */ (function (_super) {
|
|
921
|
-
__extends(KeywordsPartFeatureComponent, _super);
|
|
922
|
-
function KeywordsPartFeatureComponent(router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) {
|
|
923
|
-
return _super.call(this, router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) || this;
|
|
924
|
-
}
|
|
925
|
-
KeywordsPartFeatureComponent.prototype.ngOnInit = function () {
|
|
926
|
-
this.initEditor(['languages']);
|
|
927
|
-
};
|
|
928
|
-
return KeywordsPartFeatureComponent;
|
|
929
|
-
}(cadmusState.EditPartFeatureBase));
|
|
930
|
-
KeywordsPartFeatureComponent.decorators = [
|
|
931
|
-
{ type: i0.Component, args: [{
|
|
932
|
-
selector: 'cadmus-keywords-part-feature',
|
|
933
|
-
template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-keywords-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-keywords-part>\r\n",
|
|
934
|
-
styles: [""]
|
|
935
|
-
},] }
|
|
936
|
-
];
|
|
937
|
-
KeywordsPartFeatureComponent.ctorParameters = function () { return [
|
|
938
|
-
{ type: router.Router },
|
|
939
|
-
{ type: router.ActivatedRoute },
|
|
940
|
-
{ type: snackBar.MatSnackBar },
|
|
941
|
-
{ type: EditKeywordsPartQuery },
|
|
942
|
-
{ type: EditKeywordsPartService },
|
|
943
|
-
{ type: cadmusState.EditItemQuery },
|
|
944
|
-
{ type: cadmusState.EditItemService }
|
|
945
|
-
]; };
|
|
946
|
-
|
|
947
|
-
exports.ɵw = /** @class */ (function (_super) {
|
|
948
|
-
__extends(EditNotePartStore, _super);
|
|
949
|
-
function EditNotePartStore() {
|
|
950
|
-
return _super.call(this, cadmusState.editPartInitialState) || this;
|
|
951
|
-
}
|
|
952
|
-
EditNotePartStore.prototype.setDirty = function (value) {
|
|
953
|
-
this.update({ dirty: value });
|
|
954
|
-
};
|
|
955
|
-
EditNotePartStore.prototype.setSaving = function (value) {
|
|
956
|
-
this.update({ saving: value });
|
|
957
|
-
};
|
|
958
|
-
return EditNotePartStore;
|
|
959
|
-
}(akita.Store));
|
|
960
|
-
exports.ɵw.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditNotePartStore_Factory() { return new exports.ɵw(); }, token: exports.ɵw, providedIn: "root" });
|
|
961
|
-
exports.ɵw.decorators = [
|
|
962
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
963
|
-
];
|
|
964
|
-
exports.ɵw.ctorParameters = function () { return []; };
|
|
965
|
-
exports.ɵw = __decorate([
|
|
966
|
-
akita.StoreConfig({ name: cadmusPartGeneralUi.NOTE_PART_TYPEID })
|
|
967
|
-
], exports.ɵw);
|
|
968
|
-
|
|
969
|
-
var EditNotePartService = /** @class */ (function (_super) {
|
|
970
|
-
__extends(EditNotePartService, _super);
|
|
971
|
-
function EditNotePartService(editPartStore, itemService, thesaurusService) {
|
|
972
|
-
var _this = _super.call(this, itemService, thesaurusService) || this;
|
|
973
|
-
_this.store = editPartStore;
|
|
974
|
-
return _this;
|
|
975
|
-
}
|
|
976
|
-
return EditNotePartService;
|
|
977
|
-
}(cadmusState.EditPartServiceBase));
|
|
978
|
-
EditNotePartService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditNotePartService_Factory() { return new EditNotePartService(i0__namespace.ɵɵinject(exports.ɵw), i0__namespace.ɵɵinject(i2__namespace.ItemService), i0__namespace.ɵɵinject(i2__namespace.ThesaurusService)); }, token: EditNotePartService, providedIn: "root" });
|
|
979
|
-
EditNotePartService.decorators = [
|
|
980
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
981
|
-
];
|
|
982
|
-
EditNotePartService.ctorParameters = function () { return [
|
|
983
|
-
{ type: exports.ɵw },
|
|
984
|
-
{ type: i2.ItemService },
|
|
985
|
-
{ type: i2.ThesaurusService }
|
|
986
|
-
]; };
|
|
987
|
-
|
|
988
|
-
var EditNotePartQuery = /** @class */ (function (_super) {
|
|
989
|
-
__extends(EditNotePartQuery, _super);
|
|
990
|
-
function EditNotePartQuery(store) {
|
|
991
|
-
return _super.call(this, store) || this;
|
|
992
|
-
}
|
|
993
|
-
return EditNotePartQuery;
|
|
994
|
-
}(cadmusState.EditPartQueryBase));
|
|
995
|
-
EditNotePartQuery.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditNotePartQuery_Factory() { return new EditNotePartQuery(i0__namespace.ɵɵinject(exports.ɵw)); }, token: EditNotePartQuery, providedIn: "root" });
|
|
996
|
-
EditNotePartQuery.decorators = [
|
|
997
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
998
|
-
];
|
|
999
|
-
EditNotePartQuery.ctorParameters = function () { return [
|
|
1000
|
-
{ type: exports.ɵw }
|
|
1001
|
-
]; };
|
|
1002
|
-
|
|
1003
|
-
var NotePartFeatureComponent = /** @class */ (function (_super) {
|
|
1004
|
-
__extends(NotePartFeatureComponent, _super);
|
|
1005
|
-
function NotePartFeatureComponent(router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) {
|
|
1006
|
-
return _super.call(this, router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) || this;
|
|
1007
|
-
}
|
|
1008
|
-
NotePartFeatureComponent.prototype.ngOnInit = function () {
|
|
1009
|
-
this.initEditor(['note-tags']);
|
|
1010
|
-
};
|
|
1011
|
-
return NotePartFeatureComponent;
|
|
1012
|
-
}(cadmusState.EditPartFeatureBase));
|
|
1013
|
-
NotePartFeatureComponent.decorators = [
|
|
1014
|
-
{ type: i0.Component, args: [{
|
|
1015
|
-
selector: 'cadmus-note-part-feature',
|
|
1016
|
-
template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-note-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-note-part>\r\n",
|
|
1017
|
-
styles: [""]
|
|
1018
|
-
},] }
|
|
1019
|
-
];
|
|
1020
|
-
NotePartFeatureComponent.ctorParameters = function () { return [
|
|
1021
|
-
{ type: router.Router },
|
|
1022
|
-
{ type: router.ActivatedRoute },
|
|
1023
|
-
{ type: snackBar.MatSnackBar },
|
|
1024
|
-
{ type: EditNotePartQuery },
|
|
1025
|
-
{ type: EditNotePartService },
|
|
1026
|
-
{ type: cadmusState.EditItemQuery },
|
|
1027
|
-
{ type: cadmusState.EditItemService }
|
|
1028
|
-
]; };
|
|
1029
|
-
|
|
1030
|
-
/**
|
|
1031
|
-
* The layer view model for a tiled text.
|
|
1032
|
-
*/
|
|
1033
|
-
var TiledTextLayerView = /** @class */ (function () {
|
|
1034
|
-
/**
|
|
1035
|
-
* Create a new view from the specified tiled text.
|
|
1036
|
-
* @param rows The tiled text rows.
|
|
1037
|
-
*/
|
|
1038
|
-
function TiledTextLayerView(rows) {
|
|
1039
|
-
// setup rows to reflect the text
|
|
1040
|
-
this._rows = [];
|
|
1041
|
-
if (rows) {
|
|
1042
|
-
// for each row
|
|
1043
|
-
for (var i = 0; i < rows.length; i++) {
|
|
1044
|
-
this._rows[i] = {
|
|
1045
|
-
tiles: [],
|
|
1046
|
-
};
|
|
1047
|
-
// for each tile in row
|
|
1048
|
-
for (var j = 0; j < (rows[i].tiles ? rows[i].tiles.length : 0); j++) {
|
|
1049
|
-
this._rows[i].tiles[j] = {
|
|
1050
|
-
checked: false,
|
|
1051
|
-
frIndex: -1,
|
|
1052
|
-
model: rows[i].tiles[j],
|
|
1053
|
-
};
|
|
1054
|
-
}
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
Object.defineProperty(TiledTextLayerView.prototype, "rows", {
|
|
1059
|
-
/**
|
|
1060
|
-
* The internal rows view models.
|
|
1061
|
-
*/
|
|
1062
|
-
get: function () {
|
|
1063
|
-
return this._rows;
|
|
1064
|
-
},
|
|
1065
|
-
enumerable: false,
|
|
1066
|
-
configurable: true
|
|
1067
|
-
});
|
|
1068
|
-
/**
|
|
1069
|
-
* Get the tile at the specified coordinates.
|
|
1070
|
-
*
|
|
1071
|
-
* @param y The tile's y coordinate.
|
|
1072
|
-
* @param x The tile's x coordinate.
|
|
1073
|
-
*/
|
|
1074
|
-
TiledTextLayerView.prototype.getTileAt = function (y, x) {
|
|
1075
|
-
return this._rows[y - 1].tiles[x - 1];
|
|
1076
|
-
};
|
|
1077
|
-
/**
|
|
1078
|
-
* Set the view state of all the tiles.
|
|
1079
|
-
*
|
|
1080
|
-
* @param state The state values to set in each tile's state.
|
|
1081
|
-
* @param setChecked True to set the checked property of states.
|
|
1082
|
-
* @param setFrIndex True to set the frIndex property of states.
|
|
1083
|
-
*/
|
|
1084
|
-
TiledTextLayerView.prototype.setAllTilesViewState = function (state) {
|
|
1085
|
-
var hasChecked = state.hasOwnProperty('checked');
|
|
1086
|
-
var hasFrIndex = state.hasOwnProperty('frIndex');
|
|
1087
|
-
if (!hasChecked && !hasFrIndex) {
|
|
1088
|
-
return;
|
|
1089
|
-
}
|
|
1090
|
-
// for each row
|
|
1091
|
-
for (var i = 0; i < this._rows.length; i++) {
|
|
1092
|
-
var row = this._rows[i];
|
|
1093
|
-
// for each tile in row
|
|
1094
|
-
for (var j = 0; j < row.tiles.length; j++) {
|
|
1095
|
-
var tile = row.tiles[j];
|
|
1096
|
-
row.tiles[j] = {
|
|
1097
|
-
checked: hasChecked ? state.checked : tile.checked,
|
|
1098
|
-
frIndex: hasFrIndex ? state.frIndex : tile.frIndex,
|
|
1099
|
-
model: tile.model,
|
|
1100
|
-
};
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
|
-
};
|
|
1104
|
-
/**
|
|
1105
|
-
* Set the fragment index of each tile in this view. This is equal to the
|
|
1106
|
-
* index to the fragment including the tile, when the tile is inside that
|
|
1107
|
-
* fragment, or to -1, when the tile is outside any fragment. Fragment indexes
|
|
1108
|
-
* refer to their locations, as received by this function.
|
|
1109
|
-
*
|
|
1110
|
-
* @param locations Fragments locations.
|
|
1111
|
-
*/
|
|
1112
|
-
TiledTextLayerView.prototype.setFragmentLocations = function (locations) {
|
|
1113
|
-
// reset all the tiles fragment indexes
|
|
1114
|
-
this.setAllTilesViewState({ frIndex: -1 });
|
|
1115
|
-
// for each fragment's location
|
|
1116
|
-
for (var i = 0; i < locations.length; i++) {
|
|
1117
|
-
var loc = locations[i];
|
|
1118
|
-
if (loc.secondary) {
|
|
1119
|
-
// range
|
|
1120
|
-
for (var y = loc.primary.y; y <= loc.secondary.y; y++) {
|
|
1121
|
-
var row = this._rows[y - 1];
|
|
1122
|
-
for (var x = y === loc.primary.y ? loc.primary.x : 1; y === loc.secondary.y
|
|
1123
|
-
? x <= loc.secondary.x
|
|
1124
|
-
: x <= row.tiles.length; x++) {
|
|
1125
|
-
var tile = row.tiles[x - 1];
|
|
1126
|
-
row.tiles[x - 1] = {
|
|
1127
|
-
checked: tile.checked,
|
|
1128
|
-
frIndex: i,
|
|
1129
|
-
model: tile.model,
|
|
1130
|
-
};
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
else {
|
|
1135
|
-
// point
|
|
1136
|
-
var tile = this.getTileAt(loc.primary.y, loc.primary.x);
|
|
1137
|
-
if (tile) {
|
|
1138
|
-
this._rows[loc.primary.y - 1].tiles[loc.primary.x - 1] = {
|
|
1139
|
-
checked: tile.checked,
|
|
1140
|
-
frIndex: i,
|
|
1141
|
-
model: tile.model,
|
|
1142
|
-
};
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
};
|
|
1147
|
-
/**
|
|
1148
|
-
* Find the coordinates of the first tile having the specified checked state,
|
|
1149
|
-
* starting from the specified coordinates.
|
|
1150
|
-
*
|
|
1151
|
-
* @param y The y coordinates to start from.
|
|
1152
|
-
* @param x The x coordinates to start from.
|
|
1153
|
-
* @param checked True to find checked tiles, false to find unchecked tiles.
|
|
1154
|
-
* @param reverse True to find in reverse direction.
|
|
1155
|
-
* @returns The coordinates, or null if not found.
|
|
1156
|
-
*/
|
|
1157
|
-
TiledTextLayerView.prototype.findFirstCheckedCoords = function (y, x, checked, reverse) {
|
|
1158
|
-
if (reverse === void 0) { reverse = false; }
|
|
1159
|
-
if (reverse) {
|
|
1160
|
-
var xstart = x;
|
|
1161
|
-
while (true) {
|
|
1162
|
-
for (var xi = xstart; xi >= 1; xi--) {
|
|
1163
|
-
if (this.getTileAt(y, xi).checked === checked) {
|
|
1164
|
-
return {
|
|
1165
|
-
y: y,
|
|
1166
|
-
x: xi,
|
|
1167
|
-
};
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
|
-
if (--y > 0) {
|
|
1171
|
-
xstart = this._rows[y - 1].tiles.length;
|
|
1172
|
-
}
|
|
1173
|
-
else {
|
|
1174
|
-
break;
|
|
1175
|
-
}
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
else {
|
|
1179
|
-
var xstart = x;
|
|
1180
|
-
while (true) {
|
|
1181
|
-
for (var xi = xstart; xi <= this._rows[y - 1].tiles.length; xi++) {
|
|
1182
|
-
if (this.getTileAt(y, xi).checked === checked) {
|
|
1183
|
-
return {
|
|
1184
|
-
y: y,
|
|
1185
|
-
x: xi,
|
|
1186
|
-
};
|
|
1187
|
-
}
|
|
1188
|
-
}
|
|
1189
|
-
if (++y <= this._rows.length) {
|
|
1190
|
-
xstart = 1;
|
|
1191
|
-
}
|
|
1192
|
-
else {
|
|
1193
|
-
break;
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
return null;
|
|
1198
|
-
};
|
|
1199
|
-
/**
|
|
1200
|
-
* "Linearly" set the checked state in the specified range of checked tiles.
|
|
1201
|
-
*
|
|
1202
|
-
* @param y1 The start y coordinate.
|
|
1203
|
-
* @param x1 The start x coordinate.
|
|
1204
|
-
* @param y2 The end y coordinate (included).
|
|
1205
|
-
* @param x2 The end x coordinate (included).
|
|
1206
|
-
* @param checked The state to be set.
|
|
1207
|
-
*/
|
|
1208
|
-
TiledTextLayerView.prototype.linearSetCheck = function (y1, x1, y2, x2, checked) {
|
|
1209
|
-
for (var y = y1; y <= y2; y++) {
|
|
1210
|
-
var row = this._rows[y - 1];
|
|
1211
|
-
for (var x = y === y1 ? x1 : 1; y === y2 ? x <= x2 : x <= row.tiles.length; x++) {
|
|
1212
|
-
var tile = row.tiles[x - 1];
|
|
1213
|
-
row.tiles[x - 1] = {
|
|
1214
|
-
frIndex: tile.frIndex,
|
|
1215
|
-
checked: checked,
|
|
1216
|
-
model: tile.model,
|
|
1217
|
-
};
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
};
|
|
1221
|
-
/**
|
|
1222
|
-
* Get the coordinates of the next tile starting from the specified origin
|
|
1223
|
-
* tile. The next tile is the tile to the right of the origin tile in the
|
|
1224
|
-
* same row, or the first tile of the next row (if any) when the origin is
|
|
1225
|
-
* the last tile in its row.
|
|
1226
|
-
*
|
|
1227
|
-
* @param y The y coordinate of the origin tile.
|
|
1228
|
-
* @param x The x coordinate of the origin tile.
|
|
1229
|
-
* @returns The coordinates, or null if no other tiles after origin.
|
|
1230
|
-
*/
|
|
1231
|
-
TiledTextLayerView.prototype.getNextTileCoords = function (y, x) {
|
|
1232
|
-
if (x < this._rows[y - 1].tiles.length) {
|
|
1233
|
-
return {
|
|
1234
|
-
y: y,
|
|
1235
|
-
x: x + 1,
|
|
1236
|
-
};
|
|
1237
|
-
}
|
|
1238
|
-
y++;
|
|
1239
|
-
while (y <= this._rows.length) {
|
|
1240
|
-
if (this._rows[y - 1].tiles.length > 0) {
|
|
1241
|
-
return {
|
|
1242
|
-
y: y,
|
|
1243
|
-
x: 1,
|
|
1244
|
-
};
|
|
1245
|
-
}
|
|
1246
|
-
y++;
|
|
1247
|
-
}
|
|
1248
|
-
return null;
|
|
1249
|
-
};
|
|
1250
|
-
/**
|
|
1251
|
-
* Get the coordinates of the previous tile starting from the specified origin
|
|
1252
|
-
* tile. The previous tile is the tile to the left of the origin tile in the
|
|
1253
|
-
* same row, or the last tile of the previous row (if any) when the origin is
|
|
1254
|
-
* the first tile in its row.
|
|
1255
|
-
*
|
|
1256
|
-
* @param y The y coordinate of the origin tile.
|
|
1257
|
-
* @param x The x coordinate of the origin tile.
|
|
1258
|
-
* @returns The coordinates, or null if no other tiles before origin.
|
|
1259
|
-
*/
|
|
1260
|
-
TiledTextLayerView.prototype.getPrevTileCoords = function (y, x) {
|
|
1261
|
-
if (x > 1) {
|
|
1262
|
-
return {
|
|
1263
|
-
y: y,
|
|
1264
|
-
x: x - 1,
|
|
1265
|
-
};
|
|
1266
|
-
}
|
|
1267
|
-
y--;
|
|
1268
|
-
while (y > 0) {
|
|
1269
|
-
if (this._rows[y - 1].tiles.length > 0) {
|
|
1270
|
-
return {
|
|
1271
|
-
y: y,
|
|
1272
|
-
x: this._rows[y - 1].tiles.length,
|
|
1273
|
-
};
|
|
1274
|
-
}
|
|
1275
|
-
y--;
|
|
1276
|
-
}
|
|
1277
|
-
return null;
|
|
1278
|
-
};
|
|
1279
|
-
/**
|
|
1280
|
-
* "Linearly" toggle the tiles according to the specified toggle action
|
|
1281
|
-
* in the specified set of tiles rows. When users toggle a tile from unchecked
|
|
1282
|
-
* to checked, and any other tile was checked, the checked state must be
|
|
1283
|
-
* extended so that all the tiles between the newly checked tile and the old
|
|
1284
|
-
* one(s) are checked, so that they form a continuous "line", eventually
|
|
1285
|
-
* spanning rows. The same inversely applies when un-checking tiles. This
|
|
1286
|
-
* ensures that users can select a single range of tiles by toggling at any
|
|
1287
|
-
* of its ends.
|
|
1288
|
-
*
|
|
1289
|
-
* @param y The y coordinate of the tile which was toggled.
|
|
1290
|
-
* @param x The x coordinate of the tile which was toggled.
|
|
1291
|
-
* @param checked The new checked state after toggling the tile.
|
|
1292
|
-
*/
|
|
1293
|
-
TiledTextLayerView.prototype.toggleLinearTileCheck = function (y, x, checked) {
|
|
1294
|
-
// if it was checked, it was toggled from unchecked
|
|
1295
|
-
if (checked) {
|
|
1296
|
-
// find 1st next checked:
|
|
1297
|
-
var yx = this.findFirstCheckedCoords(y, x, true);
|
|
1298
|
-
// found: extend from it to y,x
|
|
1299
|
-
if (yx) {
|
|
1300
|
-
this.linearSetCheck(yx.y, yx.x, y, x, true);
|
|
1301
|
-
return;
|
|
1302
|
-
}
|
|
1303
|
-
// not found: find 1st prev checked:
|
|
1304
|
-
yx = this.findFirstCheckedCoords(y, x, true, true);
|
|
1305
|
-
// found: extend from it to y,x
|
|
1306
|
-
if (yx) {
|
|
1307
|
-
this.linearSetCheck(yx.y, yx.x, y, x, true);
|
|
1308
|
-
return;
|
|
1309
|
-
}
|
|
1310
|
-
// not found: check y,x
|
|
1311
|
-
var tile = this.getTileAt(y, x);
|
|
1312
|
-
this._rows[y - 1].tiles[x - 1] = {
|
|
1313
|
-
checked: true,
|
|
1314
|
-
frIndex: tile.frIndex,
|
|
1315
|
-
model: tile.model,
|
|
1316
|
-
};
|
|
1317
|
-
}
|
|
1318
|
-
else {
|
|
1319
|
-
// it was toggled from checked:
|
|
1320
|
-
// find 1st prev non-checked and set origin (y1,x1) equal to 1 if not found,
|
|
1321
|
-
// else to the tile next to the one found. Then uncheck all from origin
|
|
1322
|
-
// to y,x.
|
|
1323
|
-
var y1 = void 0;
|
|
1324
|
-
var x1 = void 0;
|
|
1325
|
-
var yx = this.findFirstCheckedCoords(y, x, false, true);
|
|
1326
|
-
if (yx) {
|
|
1327
|
-
var next = this.getNextTileCoords(yx.y, yx.x);
|
|
1328
|
-
if (!next) {
|
|
1329
|
-
y1 = y;
|
|
1330
|
-
x1 = x;
|
|
1331
|
-
}
|
|
1332
|
-
else {
|
|
1333
|
-
y1 = next.y;
|
|
1334
|
-
x1 = next.x;
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
else {
|
|
1338
|
-
y1 = 1;
|
|
1339
|
-
x1 = 1;
|
|
1340
|
-
}
|
|
1341
|
-
this.linearSetCheck(y1, x1, yx.y, yx.x, false);
|
|
1342
|
-
}
|
|
1343
|
-
};
|
|
1344
|
-
/**
|
|
1345
|
-
* Get the location of the checked tiles, if any. As tiles are checked
|
|
1346
|
-
* only as an uninterrupted sequence, there can be only 0 or 1 location
|
|
1347
|
-
* in a set.
|
|
1348
|
-
*
|
|
1349
|
-
* @returns The location, or null if no tiles are checked.
|
|
1350
|
-
*/
|
|
1351
|
-
TiledTextLayerView.prototype.getCheckedLocation = function () {
|
|
1352
|
-
var start = this.findFirstCheckedCoords(1, 1, true);
|
|
1353
|
-
if (!start) {
|
|
1354
|
-
return null;
|
|
1355
|
-
}
|
|
1356
|
-
var end = this.findFirstCheckedCoords(start.y, start.x, false);
|
|
1357
|
-
if (!end || (end.y === start.y && end.x === start.x)) {
|
|
1358
|
-
return;
|
|
1359
|
-
}
|
|
1360
|
-
var last = this.getPrevTileCoords(end.y, end.x);
|
|
1361
|
-
return last.y === start.y && last.x === start.x
|
|
1362
|
-
? new cadmusCore.TokenLocation(new cadmusCore.TokenPoint(start.y, start.x))
|
|
1363
|
-
: new cadmusCore.TokenLocation(new cadmusCore.TokenPoint(start.y, start.x), new cadmusCore.TokenPoint(last.y, last.x));
|
|
1364
|
-
};
|
|
1365
|
-
/**
|
|
1366
|
-
* Get the location of the checked tiles, together with the index to the
|
|
1367
|
-
* fragment including them (or a part of them). Should the tiles be included
|
|
1368
|
-
* in more than 1 fragment, no fragment will be returned.
|
|
1369
|
-
*
|
|
1370
|
-
* @returns Object with fragment=fragment index or -1, and location=location
|
|
1371
|
-
* of checked tiles; or null if no checked tile.
|
|
1372
|
-
*/
|
|
1373
|
-
TiledTextLayerView.prototype.getCheckedLocationAndFragment = function () {
|
|
1374
|
-
var loc = this.getCheckedLocation();
|
|
1375
|
-
if (!loc) {
|
|
1376
|
-
return null;
|
|
1377
|
-
}
|
|
1378
|
-
var y2;
|
|
1379
|
-
var x2;
|
|
1380
|
-
if (loc.secondary) {
|
|
1381
|
-
y2 = loc.secondary.y;
|
|
1382
|
-
x2 = loc.secondary.x;
|
|
1383
|
-
}
|
|
1384
|
-
else {
|
|
1385
|
-
y2 = loc.primary.y;
|
|
1386
|
-
x2 = loc.primary.x;
|
|
1387
|
-
}
|
|
1388
|
-
var fr = -1;
|
|
1389
|
-
for (var y = loc.primary.y; y <= y2; y++) {
|
|
1390
|
-
var row = this._rows[y - 1];
|
|
1391
|
-
for (var x = y === loc.primary.y ? loc.primary.x : 1; x <= (y === y2 ? x2 : row.tiles.length); x++) {
|
|
1392
|
-
if (row.tiles[x - 1].frIndex > -1) {
|
|
1393
|
-
if (fr > -1) {
|
|
1394
|
-
if (fr !== row.tiles[x - 1].frIndex) {
|
|
1395
|
-
return {
|
|
1396
|
-
fragment: -1,
|
|
1397
|
-
location: loc,
|
|
1398
|
-
};
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
else {
|
|
1402
|
-
fr = row.tiles[x - 1].frIndex;
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
}
|
|
1407
|
-
return {
|
|
1408
|
-
fragment: fr,
|
|
1409
|
-
location: loc,
|
|
1410
|
-
};
|
|
1411
|
-
};
|
|
1412
|
-
return TiledTextLayerView;
|
|
1413
|
-
}());
|
|
1414
|
-
|
|
1415
|
-
/**
|
|
1416
|
-
* Tiled text layer part editor.
|
|
1417
|
-
* This editor allows picking any layer and see all the text tiles included
|
|
1418
|
-
* in a fragment with a color highlight. Users can check any number of tiles
|
|
1419
|
-
* not belonging to any fragment in the selected layer, and add a new fragment
|
|
1420
|
-
* in the selected layer; or check any number of tiles belonging to a fragment
|
|
1421
|
-
* of the selected layer, and edit or delete it.
|
|
1422
|
-
* Tiles are thus colorized by the UI to render the fragments extent; and freely
|
|
1423
|
-
* checked by users to select the fragments to operate with.
|
|
1424
|
-
* All the checked tiles must follow each other, in one or more rows. Users can
|
|
1425
|
-
* just check the first and the last of a sequence to get the whole sequence
|
|
1426
|
-
* checked.
|
|
1427
|
-
*/
|
|
1428
|
-
var TiledTextLayerPartFeatureComponent = /** @class */ (function () {
|
|
1429
|
-
function TiledTextLayerPartFeatureComponent(route, _router, _editQuery, _editService, _editItemQuery, _editItemService, _libraryRouteService, _dialogService, authService) {
|
|
1430
|
-
this._router = _router;
|
|
1431
|
-
this._editQuery = _editQuery;
|
|
1432
|
-
this._editService = _editService;
|
|
1433
|
-
this._editItemQuery = _editItemQuery;
|
|
1434
|
-
this._editItemService = _editItemService;
|
|
1435
|
-
this._libraryRouteService = _libraryRouteService;
|
|
1436
|
-
this._dialogService = _dialogService;
|
|
1437
|
-
this.itemId = route.snapshot.params['iid'];
|
|
1438
|
-
this.partId = route.snapshot.params['pid'];
|
|
1439
|
-
if (this.partId === 'new') {
|
|
1440
|
-
this.partId = null;
|
|
1441
|
-
}
|
|
1442
|
-
this.roleId = route.snapshot.queryParams['rid'];
|
|
1443
|
-
if (this.roleId === 'default') {
|
|
1444
|
-
this.roleId = null;
|
|
1445
|
-
}
|
|
1446
|
-
this.userLevel = authService.getCurrentUserLevel();
|
|
1447
|
-
}
|
|
1448
|
-
TiledTextLayerPartFeatureComponent.prototype.canDeactivate = function () {
|
|
1449
|
-
return true;
|
|
1450
|
-
};
|
|
1451
|
-
TiledTextLayerPartFeatureComponent.prototype.ensureItemLoaded = function (id) {
|
|
1452
|
-
if (!this._editItemQuery.hasItem(id)) {
|
|
1453
|
-
this._editItemService.load(id);
|
|
1454
|
-
}
|
|
1455
|
-
};
|
|
1456
|
-
TiledTextLayerPartFeatureComponent.prototype.ngOnInit = function () {
|
|
1457
|
-
var _this = this;
|
|
1458
|
-
// base text: connect rows to the base text part
|
|
1459
|
-
this.rows$ = this._editQuery.select(function (state) { var _a; return (_a = state.baseTextPart) === null || _a === void 0 ? void 0 : _a.rows; });
|
|
1460
|
-
// layers part
|
|
1461
|
-
this.loading$ = this._editQuery.selectLoading();
|
|
1462
|
-
this.error$ = this._editQuery.selectError();
|
|
1463
|
-
this.baseText$ = this._editQuery.select(function (state) { return state.baseText; });
|
|
1464
|
-
this.locations$ = this._editQuery.select(function (state) { return state.locations; });
|
|
1465
|
-
this.refreshingBreakChance$ = this._editQuery.selectRefreshingBreakChance();
|
|
1466
|
-
this.breakChance$ = this._editQuery.selectBreakChance();
|
|
1467
|
-
this.layerHints$ = this._editQuery.selectLayerHints();
|
|
1468
|
-
this.patchingLayer$ = this._editQuery.selectPatchingLayers();
|
|
1469
|
-
this.deletingFragment$ = this._editQuery.selectDeletingFragment();
|
|
1470
|
-
// when the base text changes, load all the fragments locations
|
|
1471
|
-
// and setup their UI state
|
|
1472
|
-
this.rows$.subscribe(function (rows) {
|
|
1473
|
-
var _a;
|
|
1474
|
-
_this.view = rows ? new TiledTextLayerView(rows) : null;
|
|
1475
|
-
(_a = _this.view) === null || _a === void 0 ? void 0 : _a.setFragmentLocations(_this._editQuery.getValue().locations);
|
|
1476
|
-
});
|
|
1477
|
-
// ensure that the container item is loaded
|
|
1478
|
-
this.ensureItemLoaded(this.itemId);
|
|
1479
|
-
// load the layer part
|
|
1480
|
-
this._editService.load(this.itemId, this.partId);
|
|
1481
|
-
};
|
|
1482
|
-
TiledTextLayerPartFeatureComponent.prototype.refreshBreakChance = function () {
|
|
1483
|
-
this._editService.refreshBreakChance();
|
|
1484
|
-
};
|
|
1485
|
-
TiledTextLayerPartFeatureComponent.prototype.onTileChecked = function (y, x, checked) {
|
|
1486
|
-
this.view.toggleLinearTileCheck(y, x, checked);
|
|
1487
|
-
};
|
|
1488
|
-
TiledTextLayerPartFeatureComponent.prototype.getSelectedTileCoords = function () {
|
|
1489
|
-
if (!this.selectedTile || !this.view) {
|
|
1490
|
-
return null;
|
|
1491
|
-
}
|
|
1492
|
-
for (var i = 0; i < this.view.rows.length; i++) {
|
|
1493
|
-
var j = this.view.rows[i].tiles.indexOf(this.selectedTile);
|
|
1494
|
-
if (j > -1) {
|
|
1495
|
-
return { y: i + 1, x: j + 1 };
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
|
-
return null;
|
|
1499
|
-
};
|
|
1500
|
-
TiledTextLayerPartFeatureComponent.prototype.selectPrevTile = function () {
|
|
1501
|
-
var yx = this.getSelectedTileCoords();
|
|
1502
|
-
if (yx) {
|
|
1503
|
-
yx = this.view.getPrevTileCoords(yx.y, yx.x);
|
|
1504
|
-
if (yx) {
|
|
1505
|
-
this.selectedTile = this.view.rows[yx.y - 1].tiles[yx.x - 1];
|
|
1506
|
-
}
|
|
1507
|
-
}
|
|
1508
|
-
};
|
|
1509
|
-
TiledTextLayerPartFeatureComponent.prototype.selectNextTile = function () {
|
|
1510
|
-
var yx = this.getSelectedTileCoords();
|
|
1511
|
-
if (yx) {
|
|
1512
|
-
yx = this.view.getNextTileCoords(yx.y, yx.x);
|
|
1513
|
-
if (yx) {
|
|
1514
|
-
this.selectedTile = this.view.rows[yx.y - 1].tiles[yx.x - 1];
|
|
1515
|
-
}
|
|
1516
|
-
}
|
|
1517
|
-
};
|
|
1518
|
-
TiledTextLayerPartFeatureComponent.prototype.deleteFragment = function () {
|
|
1519
|
-
var _this = this;
|
|
1520
|
-
var lf = this.view.getCheckedLocationAndFragment();
|
|
1521
|
-
if (!lf || lf.fragment === -1) {
|
|
1522
|
-
return;
|
|
1523
|
-
}
|
|
1524
|
-
var locations = this._editQuery.getValue().locations;
|
|
1525
|
-
var loc = locations[lf.fragment];
|
|
1526
|
-
this._dialogService
|
|
1527
|
-
.confirm('Delete Fragment', "Delete the fragment at " + loc + "?")
|
|
1528
|
-
.subscribe(function (ok) {
|
|
1529
|
-
if (ok) {
|
|
1530
|
-
// find the fragment and remove it from the part
|
|
1531
|
-
var i = _this._editQuery.getValue().part.fragments.findIndex(function (p) {
|
|
1532
|
-
return cadmusCore.TokenLocation.parse(p.location).overlaps(loc);
|
|
1533
|
-
});
|
|
1534
|
-
if (i === -1) {
|
|
1535
|
-
return;
|
|
1536
|
-
}
|
|
1537
|
-
_this._editService.deleteFragment(loc);
|
|
1538
|
-
}
|
|
1539
|
-
});
|
|
1540
|
-
};
|
|
1541
|
-
TiledTextLayerPartFeatureComponent.prototype.deleteFragmentFromHint = function (hint) {
|
|
1542
|
-
var loc = cadmusCore.TokenLocation.parse(hint.location);
|
|
1543
|
-
this._editService.deleteFragment(loc);
|
|
1544
|
-
};
|
|
1545
|
-
TiledTextLayerPartFeatureComponent.prototype.navigateToFragmentEditor = function (loc) {
|
|
1546
|
-
var part = this._editQuery.getValue().part;
|
|
1547
|
-
var _b = this._libraryRouteService.buildFragmentEditorRoute(this._editItemQuery.getValue().facet.partDefinitions, part.itemId, part.id, part.typeId, part.roleId, loc), route = _b.route, rid = _b.rid;
|
|
1548
|
-
// navigate to the editor
|
|
1549
|
-
this._router.navigate([route], rid
|
|
1550
|
-
? {
|
|
1551
|
-
queryParams: {
|
|
1552
|
-
rid: part.roleId,
|
|
1553
|
-
},
|
|
1554
|
-
}
|
|
1555
|
-
: {});
|
|
1556
|
-
};
|
|
1557
|
-
TiledTextLayerPartFeatureComponent.prototype.editFragment = function () {
|
|
1558
|
-
var lf = this.view.getCheckedLocationAndFragment();
|
|
1559
|
-
if (!lf || lf.fragment === -1) {
|
|
1560
|
-
return;
|
|
1561
|
-
}
|
|
1562
|
-
var locations = this._editQuery.getValue().locations;
|
|
1563
|
-
this.navigateToFragmentEditor(locations[lf.fragment].toString());
|
|
1564
|
-
};
|
|
1565
|
-
TiledTextLayerPartFeatureComponent.prototype.editFragmentFromHint = function (hint) {
|
|
1566
|
-
this.navigateToFragmentEditor(hint.location);
|
|
1567
|
-
};
|
|
1568
|
-
TiledTextLayerPartFeatureComponent.prototype.moveFragmentFromHint = function (hint) {
|
|
1569
|
-
if (!this.pickedLocation || this.pickedLocation === hint.location) {
|
|
1570
|
-
return;
|
|
1571
|
-
}
|
|
1572
|
-
this._editService.applyLayerPatches(this.partId, [
|
|
1573
|
-
"mov " + hint.location + " " + this.pickedLocation,
|
|
1574
|
-
]);
|
|
1575
|
-
};
|
|
1576
|
-
TiledTextLayerPartFeatureComponent.prototype.addFragment = function () {
|
|
1577
|
-
var lf = this.view.getCheckedLocationAndFragment();
|
|
1578
|
-
if (!lf || lf.fragment > -1) {
|
|
1579
|
-
return;
|
|
1580
|
-
}
|
|
1581
|
-
this.navigateToFragmentEditor(lf.location.toString());
|
|
1582
|
-
};
|
|
1583
|
-
TiledTextLayerPartFeatureComponent.prototype.pickLocation = function () {
|
|
1584
|
-
var lf = this.view.getCheckedLocationAndFragment();
|
|
1585
|
-
if (!lf) {
|
|
1586
|
-
return;
|
|
1587
|
-
}
|
|
1588
|
-
var locations = this._editQuery.getValue().locations;
|
|
1589
|
-
this.pickedLocation = (lf.fragment === -1
|
|
1590
|
-
? lf.location
|
|
1591
|
-
: locations[lf.fragment]).toString();
|
|
1592
|
-
};
|
|
1593
|
-
TiledTextLayerPartFeatureComponent.prototype.clearTileChecks = function () {
|
|
1594
|
-
this.view.setAllTilesViewState({ checked: false });
|
|
1595
|
-
this.pickedLocation = null;
|
|
1596
|
-
};
|
|
1597
|
-
TiledTextLayerPartFeatureComponent.prototype.applyLayerPatches = function (patches) {
|
|
1598
|
-
this._editService.applyLayerPatches(this.partId, patches);
|
|
1599
|
-
};
|
|
1600
|
-
TiledTextLayerPartFeatureComponent.prototype.close = function () {
|
|
1601
|
-
this._router.navigate(['/items', this.itemId]);
|
|
1602
|
-
};
|
|
1603
|
-
return TiledTextLayerPartFeatureComponent;
|
|
1604
|
-
}());
|
|
1605
|
-
TiledTextLayerPartFeatureComponent.decorators = [
|
|
1606
|
-
{ type: i0.Component, args: [{
|
|
1607
|
-
selector: 'cadmus-tiled-text-layer-part-feature',
|
|
1608
|
-
template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<mat-card>\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>view_headline</mat-icon>\r\n </div>\r\n <mat-card-title>\r\n Tiles-Based Text Layers\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n [ngSwitch]=\"breakChance$ | async\"\r\n (click)=\"refreshBreakChance()\"\r\n >\r\n <mat-icon *ngSwitchCase=\"-1\" matTooltip=\"Checking...\">refresh</mat-icon>\r\n <mat-icon *ngSwitchCase=\"0\" matTooltip=\"Valid\">check_circle</mat-icon>\r\n <mat-icon *ngSwitchCase=\"1\" matTooltip=\"Potentially broken\" color=\"warn\"\r\n >warning</mat-icon\r\n >\r\n <mat-icon *ngSwitchCase=\"2\" matTooltip=\"Broken\" color=\"warn\"\r\n >error</mat-icon\r\n >\r\n </button>\r\n </mat-card-title>\r\n <cadmus-current-layer-part-bar></cadmus-current-layer-part-bar>\r\n </mat-card-header>\r\n <mat-card-actions *ngIf=\"!(loading$ | async)\">\r\n <mat-toolbar>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"editFragment()\"\r\n matTooltip=\"Edit the selected fragment\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteFragment()\"\r\n matTooltip=\"Delete the selected fragment\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"pickLocation()\"\r\n matTooltip=\"Pick the selection location for a new fragment\"\r\n >\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"clearTileChecks()\"\r\n matTooltip=\"Clear any selection\"\r\n >\r\n <mat-icon>clear</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"addFragment()\"\r\n matTooltip=\"Add a new fragment at selection\"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n <span>{{ pickedLocation }}</span>\r\n </mat-toolbar>\r\n </mat-card-actions>\r\n\r\n <mat-card-content fxLayout=\"row\">\r\n <div *ngIf=\"loading$ | async\" fxFlex fxLayoutAlign=\"center center\">\r\n <mat-spinner [diameter]=\"48\" [strokeWidth]=\"4\"></mat-spinner>\r\n </div>\r\n <div *ngIf=\"error$ | async as error\" class=\"error-message\">{{ error }}</div>\r\n\r\n <!-- rows -->\r\n <div *ngIf=\"view\">\r\n <div\r\n *ngFor=\"let row of view.rows; let iy = index\"\r\n class=\"tile-row\"\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"start center\"\r\n >\r\n <span class=\"row-nr\">{{ iy + 1 }}</span>\r\n <!-- tile -->\r\n <cadmus-text-tile\r\n *ngFor=\"let tile of row.tiles || []; let ix = index\"\r\n [tile]=\"tile.model\"\r\n [readonly]=\"true\"\r\n [selected]=\"tile === selectedTile\"\r\n [checkable]=\"true\"\r\n [checked]=\"tile.checked\"\r\n [color]=\"tile.frIndex > -1 ? 'yellow' : 'transparent'\"\r\n fxFlex=\"none\"\r\n (click)=\"selectedTile = tile\"\r\n (checkedChange)=\"onTileChecked(iy + 1, ix + 1, $event)\"\r\n (keydown.control.arrowleft)=\"selectPrevTile(iy + 1, ix + 1)\"\r\n (keydown.control.arrowright)=\"selectNextTile(iy + 1, ix + 1)\"\r\n >\r\n </cadmus-text-tile>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-raised-button\r\n color=\"warn\"\r\n matTooltip=\"Close this editor\"\r\n (click)=\"close()\"\r\n >\r\n <mat-icon>cancel</mat-icon>\r\n close\r\n </button>\r\n </div>\r\n <mat-expansion-panel *ngIf=\"layerHints$ | async as layerHints\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Layer hints</mat-panel-title>\r\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <cadmus-layer-hints\r\n [hints]=\"layerHints\"\r\n [disabled]=\"\r\n (loading$ | async) ||\r\n (patchingLayer$ | async) ||\r\n (deletingFragment$ | async)\r\n \"\r\n [readonly]=\"userLevel < 2\"\r\n [targetLocation]=\"pickedLocation\"\r\n (requestEdit)=\"editFragmentFromHint($event)\"\r\n (requestDelete)=\"deleteFragmentFromHint($event)\"\r\n (requestMove)=\"moveFragmentFromHint($event)\"\r\n (requestPatch)=\"applyLayerPatches($event)\"\r\n ></cadmus-layer-hints>\r\n </mat-expansion-panel>\r\n</mat-card>\r\n",
|
|
1609
|
-
styles: ["div.tile-row{margin-bottom:6px}span.row-nr{color:silver;font-weight:700}"]
|
|
1610
|
-
},] }
|
|
1611
|
-
];
|
|
1612
|
-
TiledTextLayerPartFeatureComponent.ctorParameters = function () { return [
|
|
1613
|
-
{ type: router.ActivatedRoute },
|
|
1614
|
-
{ type: router.Router },
|
|
1615
|
-
{ type: cadmusState.EditLayerPartQuery },
|
|
1616
|
-
{ type: cadmusState.EditLayerPartService },
|
|
1617
|
-
{ type: cadmusState.EditItemQuery },
|
|
1618
|
-
{ type: cadmusState.EditItemService },
|
|
1619
|
-
{ type: cadmusCore.LibraryRouteService },
|
|
1620
|
-
{ type: cadmusUi.DialogService },
|
|
1621
|
-
{ type: i2.AuthService }
|
|
1622
|
-
]; };
|
|
1623
|
-
|
|
1624
|
-
exports.ɵz = /** @class */ (function (_super) {
|
|
1625
|
-
__extends(EditTiledTextPartStore, _super);
|
|
1626
|
-
function EditTiledTextPartStore() {
|
|
1627
|
-
return _super.call(this, cadmusState.editPartInitialState) || this;
|
|
1628
|
-
}
|
|
1629
|
-
EditTiledTextPartStore.prototype.setDirty = function (value) {
|
|
1630
|
-
this.update({ dirty: value });
|
|
1631
|
-
};
|
|
1632
|
-
EditTiledTextPartStore.prototype.setSaving = function (value) {
|
|
1633
|
-
this.update({ saving: value });
|
|
1634
|
-
};
|
|
1635
|
-
return EditTiledTextPartStore;
|
|
1636
|
-
}(akita.Store));
|
|
1637
|
-
exports.ɵz.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditTiledTextPartStore_Factory() { return new exports.ɵz(); }, token: exports.ɵz, providedIn: "root" });
|
|
1638
|
-
exports.ɵz.decorators = [
|
|
1639
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
1640
|
-
];
|
|
1641
|
-
exports.ɵz.ctorParameters = function () { return []; };
|
|
1642
|
-
exports.ɵz = __decorate([
|
|
1643
|
-
akita.StoreConfig({ name: cadmusPartGeneralUi.TILED_TEXT_PART_TYPEID })
|
|
1644
|
-
], exports.ɵz);
|
|
1645
|
-
|
|
1646
|
-
var EditTiledTextPartService = /** @class */ (function (_super) {
|
|
1647
|
-
__extends(EditTiledTextPartService, _super);
|
|
1648
|
-
function EditTiledTextPartService(editPartStore, itemService, thesaurusService) {
|
|
1649
|
-
var _this = _super.call(this, itemService, thesaurusService) || this;
|
|
1650
|
-
_this.store = editPartStore;
|
|
1651
|
-
return _this;
|
|
1652
|
-
}
|
|
1653
|
-
/**
|
|
1654
|
-
* Load the part, a base text part, from its item's ID.
|
|
1655
|
-
* This relies on the convention that every base text part should have
|
|
1656
|
-
* a "base-text" role ID.
|
|
1657
|
-
*
|
|
1658
|
-
* @param itemId The item's ID.
|
|
1659
|
-
* @param thesauriIds The optional thesauri IDs.
|
|
1660
|
-
*/
|
|
1661
|
-
EditTiledTextPartService.prototype.loadBaseTextPart = function (itemId, thesauriIds) {
|
|
1662
|
-
var _this = this;
|
|
1663
|
-
if (thesauriIds === void 0) { thesauriIds = null; }
|
|
1664
|
-
// get the base text part ID from the item's ID
|
|
1665
|
-
this.itemService
|
|
1666
|
-
.getPartFromTypeAndRole(itemId, null, 'base-text')
|
|
1667
|
-
.subscribe(function (part) {
|
|
1668
|
-
_this.load(part.id, thesauriIds);
|
|
1669
|
-
}, function (error) {
|
|
1670
|
-
_this.store.setError('Error retrieving base text part of item ' + itemId);
|
|
1671
|
-
});
|
|
1672
|
-
};
|
|
1673
|
-
return EditTiledTextPartService;
|
|
1674
|
-
}(cadmusState.EditPartServiceBase));
|
|
1675
|
-
EditTiledTextPartService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditTiledTextPartService_Factory() { return new EditTiledTextPartService(i0__namespace.ɵɵinject(exports.ɵz), i0__namespace.ɵɵinject(i2__namespace.ItemService), i0__namespace.ɵɵinject(i2__namespace.ThesaurusService)); }, token: EditTiledTextPartService, providedIn: "root" });
|
|
1676
|
-
EditTiledTextPartService.decorators = [
|
|
1677
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
1678
|
-
];
|
|
1679
|
-
EditTiledTextPartService.ctorParameters = function () { return [
|
|
1680
|
-
{ type: exports.ɵz },
|
|
1681
|
-
{ type: i2.ItemService },
|
|
1682
|
-
{ type: i2.ThesaurusService }
|
|
1683
|
-
]; };
|
|
1684
|
-
|
|
1685
|
-
var EditTiledTextPartQuery = /** @class */ (function (_super) {
|
|
1686
|
-
__extends(EditTiledTextPartQuery, _super);
|
|
1687
|
-
function EditTiledTextPartQuery(store) {
|
|
1688
|
-
return _super.call(this, store) || this;
|
|
1689
|
-
}
|
|
1690
|
-
return EditTiledTextPartQuery;
|
|
1691
|
-
}(cadmusState.EditPartQueryBase));
|
|
1692
|
-
EditTiledTextPartQuery.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditTiledTextPartQuery_Factory() { return new EditTiledTextPartQuery(i0__namespace.ɵɵinject(exports.ɵz)); }, token: EditTiledTextPartQuery, providedIn: "root" });
|
|
1693
|
-
EditTiledTextPartQuery.decorators = [
|
|
1694
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
1695
|
-
];
|
|
1696
|
-
EditTiledTextPartQuery.ctorParameters = function () { return [
|
|
1697
|
-
{ type: exports.ɵz }
|
|
1698
|
-
]; };
|
|
1699
|
-
|
|
1700
|
-
var TiledTextPartFeatureComponent = /** @class */ (function (_super) {
|
|
1701
|
-
__extends(TiledTextPartFeatureComponent, _super);
|
|
1702
|
-
function TiledTextPartFeatureComponent(router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) {
|
|
1703
|
-
return _super.call(this, router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) || this;
|
|
1704
|
-
}
|
|
1705
|
-
TiledTextPartFeatureComponent.prototype.ngOnInit = function () {
|
|
1706
|
-
this.initEditor(null);
|
|
1707
|
-
};
|
|
1708
|
-
return TiledTextPartFeatureComponent;
|
|
1709
|
-
}(cadmusState.EditPartFeatureBase));
|
|
1710
|
-
TiledTextPartFeatureComponent.decorators = [
|
|
1711
|
-
{ type: i0.Component, args: [{
|
|
1712
|
-
selector: 'cadmus-tiled-text-part-feature',
|
|
1713
|
-
template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-tiled-text-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-tiled-text-part>\r\n",
|
|
1714
|
-
styles: [""]
|
|
1715
|
-
},] }
|
|
1716
|
-
];
|
|
1717
|
-
TiledTextPartFeatureComponent.ctorParameters = function () { return [
|
|
1718
|
-
{ type: router.Router },
|
|
1719
|
-
{ type: router.ActivatedRoute },
|
|
1720
|
-
{ type: snackBar.MatSnackBar },
|
|
1721
|
-
{ type: EditTiledTextPartQuery },
|
|
1722
|
-
{ type: EditTiledTextPartService },
|
|
1723
|
-
{ type: cadmusState.EditItemQuery },
|
|
1724
|
-
{ type: cadmusState.EditItemService }
|
|
1725
|
-
]; };
|
|
1726
|
-
|
|
1727
|
-
/**
|
|
1728
|
-
* Token-based text layer part feature editor. This is a special type of editor,
|
|
1729
|
-
* rather than being a simple wrapper like the others; it is used for editing
|
|
1730
|
-
* any text layer (using token-based coordinates), whatever the type of its
|
|
1731
|
-
* fragments. Being a sort of portal for accessing a fragments editor, it has
|
|
1732
|
-
* no save capability: the single fragments are edited and saved as needed.
|
|
1733
|
-
*/
|
|
1734
|
-
var TokenTextLayerPartFeatureComponent = /** @class */ (function () {
|
|
1735
|
-
function TokenTextLayerPartFeatureComponent(route, _router, _editQuery, _editService, _textLayerService, _editItemQuery, _editItemService, _libraryRouteService, _dialogService, authService) {
|
|
1736
|
-
this._router = _router;
|
|
1737
|
-
this._editQuery = _editQuery;
|
|
1738
|
-
this._editService = _editService;
|
|
1739
|
-
this._textLayerService = _textLayerService;
|
|
1740
|
-
this._editItemQuery = _editItemQuery;
|
|
1741
|
-
this._editItemService = _editItemService;
|
|
1742
|
-
this._libraryRouteService = _libraryRouteService;
|
|
1743
|
-
this._dialogService = _dialogService;
|
|
1744
|
-
this.textSize = 14;
|
|
1745
|
-
this.itemId = route.snapshot.params.iid;
|
|
1746
|
-
this.partId = route.snapshot.params.pid;
|
|
1747
|
-
if (this.partId === 'new') {
|
|
1748
|
-
this.partId = null;
|
|
1749
|
-
}
|
|
1750
|
-
this.roleId = route.snapshot.queryParams.rid;
|
|
1751
|
-
if (this.roleId === 'default') {
|
|
1752
|
-
this.roleId = null;
|
|
1753
|
-
}
|
|
1754
|
-
this.userLevel = authService.getCurrentUserLevel();
|
|
1755
|
-
}
|
|
1756
|
-
TokenTextLayerPartFeatureComponent.prototype.canDeactivate = function () {
|
|
1757
|
-
return true;
|
|
1758
|
-
};
|
|
1759
|
-
TokenTextLayerPartFeatureComponent.prototype.ensureItemLoaded = function (id) {
|
|
1760
|
-
if (!this._editItemQuery.hasItem(id)) {
|
|
1761
|
-
this._editItemService.load(id);
|
|
1762
|
-
}
|
|
1763
|
-
};
|
|
1764
|
-
TokenTextLayerPartFeatureComponent.prototype.makeLarger = function () {
|
|
1765
|
-
var size = this.textSize + 2;
|
|
1766
|
-
if (size > 24) {
|
|
1767
|
-
return;
|
|
1768
|
-
}
|
|
1769
|
-
this.textSize = size;
|
|
1770
|
-
};
|
|
1771
|
-
TokenTextLayerPartFeatureComponent.prototype.makeSmaller = function () {
|
|
1772
|
-
var size = this.textSize - 2;
|
|
1773
|
-
if (size < 12) {
|
|
1774
|
-
return;
|
|
1775
|
-
}
|
|
1776
|
-
this.textSize = size;
|
|
1777
|
-
};
|
|
1778
|
-
TokenTextLayerPartFeatureComponent.prototype.ngOnInit = function () {
|
|
1779
|
-
this.loading$ = this._editQuery.selectLoading();
|
|
1780
|
-
this.error$ = this._editQuery.selectError();
|
|
1781
|
-
this.baseText$ = this._editQuery.select(function (state) { return state.baseText; });
|
|
1782
|
-
this.locations$ = this._editQuery.select(function (state) { return state.locations; });
|
|
1783
|
-
this.refreshingBreakChance$ = this._editQuery.selectRefreshingBreakChance();
|
|
1784
|
-
this.breakChance$ = this._editQuery.selectBreakChance();
|
|
1785
|
-
this.layerHints$ = this._editQuery.selectLayerHints();
|
|
1786
|
-
this.patchingLayer$ = this._editQuery.selectPatchingLayers();
|
|
1787
|
-
this.deletingFragment$ = this._editQuery.selectDeletingFragment();
|
|
1788
|
-
// when the base text changes, load all the fragments locations
|
|
1789
|
-
// this.baseText$.subscribe(_ => {
|
|
1790
|
-
// this.loadAllFragmentLocations();
|
|
1791
|
-
// });
|
|
1792
|
-
// ensure the container item is loaded
|
|
1793
|
-
this.ensureItemLoaded(this.itemId);
|
|
1794
|
-
// load the layer part data
|
|
1795
|
-
this._editService.load(this.itemId, this.partId);
|
|
1796
|
-
};
|
|
1797
|
-
TokenTextLayerPartFeatureComponent.prototype.deleteFragment = function () {
|
|
1798
|
-
var _this = this;
|
|
1799
|
-
var location = this._textLayerService.getSelectedLocationForEdit(this._textLayerService.getSelectedRange());
|
|
1800
|
-
if (!location) {
|
|
1801
|
-
return;
|
|
1802
|
-
}
|
|
1803
|
-
this._dialogService
|
|
1804
|
-
.confirm('Delete Fragment', "Delete the fragment at " + location + "?")
|
|
1805
|
-
.subscribe(function (ok) {
|
|
1806
|
-
if (ok) {
|
|
1807
|
-
// find the fragment and remove it from the part
|
|
1808
|
-
var i = _this._editQuery.getValue().part.fragments.findIndex(function (p) {
|
|
1809
|
-
return cadmusCore.TokenLocation.parse(p.location).overlaps(location);
|
|
1810
|
-
});
|
|
1811
|
-
if (i === -1) {
|
|
1812
|
-
return;
|
|
1813
|
-
}
|
|
1814
|
-
_this._editService.deleteFragment(location);
|
|
1815
|
-
}
|
|
1816
|
-
});
|
|
1817
|
-
};
|
|
1818
|
-
TokenTextLayerPartFeatureComponent.prototype.deleteFragmentFromHint = function (hint) {
|
|
1819
|
-
var loc = cadmusCore.TokenLocation.parse(hint.location);
|
|
1820
|
-
this._editService.deleteFragment(loc);
|
|
1821
|
-
};
|
|
1822
|
-
TokenTextLayerPartFeatureComponent.prototype.refreshBreakChance = function () {
|
|
1823
|
-
this._editService.refreshBreakChance();
|
|
1824
|
-
};
|
|
1825
|
-
TokenTextLayerPartFeatureComponent.prototype.navigateToFragmentEditor = function (loc) {
|
|
1826
|
-
var part = this._editQuery.getValue().part;
|
|
1827
|
-
var _a = this._libraryRouteService.buildFragmentEditorRoute(this._editItemQuery.getValue().facet.partDefinitions, part.itemId, part.id, part.typeId, part.roleId, loc), route = _a.route, rid = _a.rid;
|
|
1828
|
-
// navigate to the editor
|
|
1829
|
-
this._router.navigate([route], rid
|
|
1830
|
-
? {
|
|
1831
|
-
queryParams: {
|
|
1832
|
-
rid: part.roleId,
|
|
1833
|
-
},
|
|
1834
|
-
}
|
|
1835
|
-
: {});
|
|
1836
|
-
};
|
|
1837
|
-
TokenTextLayerPartFeatureComponent.prototype.editFragment = function () {
|
|
1838
|
-
var location = this._textLayerService.getSelectedLocationForEdit(this._textLayerService.getSelectedRange());
|
|
1839
|
-
if (location) {
|
|
1840
|
-
this.navigateToFragmentEditor(location.toString());
|
|
1841
|
-
}
|
|
1842
|
-
};
|
|
1843
|
-
TokenTextLayerPartFeatureComponent.prototype.editFragmentFromHint = function (hint) {
|
|
1844
|
-
this.navigateToFragmentEditor(hint.location);
|
|
1845
|
-
};
|
|
1846
|
-
TokenTextLayerPartFeatureComponent.prototype.addFragment = function () {
|
|
1847
|
-
var location = this._textLayerService.getSelectedLocationForNew(this._textLayerService.getSelectedRange(), this._editQuery.getValue().baseText);
|
|
1848
|
-
if (location) {
|
|
1849
|
-
this.navigateToFragmentEditor(location.toString());
|
|
1850
|
-
}
|
|
1851
|
-
};
|
|
1852
|
-
TokenTextLayerPartFeatureComponent.prototype.moveFragmentFromHint = function (hint) {
|
|
1853
|
-
if (!this.pickedLocation || this.pickedLocation === hint.location) {
|
|
1854
|
-
return;
|
|
1855
|
-
}
|
|
1856
|
-
this._editService.applyLayerPatches(this.partId, [
|
|
1857
|
-
"mov " + hint.location + " " + this.pickedLocation,
|
|
1858
|
-
]);
|
|
1859
|
-
};
|
|
1860
|
-
TokenTextLayerPartFeatureComponent.prototype.applyLayerPatches = function (patches) {
|
|
1861
|
-
this._editService.applyLayerPatches(this.partId, patches);
|
|
1862
|
-
};
|
|
1863
|
-
TokenTextLayerPartFeatureComponent.prototype.pickLocation = function () {
|
|
1864
|
-
var location = this._textLayerService.getSelectedLocationForNew(this._textLayerService.getSelectedRange(), this._editQuery.getValue().baseText);
|
|
1865
|
-
if (location) {
|
|
1866
|
-
this.pickedLocation = location.toString();
|
|
1867
|
-
}
|
|
1868
|
-
};
|
|
1869
|
-
TokenTextLayerPartFeatureComponent.prototype.close = function () {
|
|
1870
|
-
this._router.navigate(['/items', this.itemId]);
|
|
1871
|
-
};
|
|
1872
|
-
return TokenTextLayerPartFeatureComponent;
|
|
1873
|
-
}());
|
|
1874
|
-
TokenTextLayerPartFeatureComponent.decorators = [
|
|
1875
|
-
{ type: i0.Component, args: [{
|
|
1876
|
-
selector: 'cadmus-token-text-layer-part-feature',
|
|
1877
|
-
template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<mat-card>\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>view_headline</mat-icon>\r\n </div>\r\n <mat-card-title>\r\n Token-Based Text Layers\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n [ngSwitch]=\"breakChance$ | async\"\r\n (click)=\"refreshBreakChance()\"\r\n >\r\n <mat-icon *ngSwitchCase=\"-1\" matTooltip=\"Checking...\">refresh</mat-icon>\r\n <mat-icon *ngSwitchCase=\"0\" matTooltip=\"Valid\">check_circle</mat-icon>\r\n <mat-icon *ngSwitchCase=\"1\" matTooltip=\"Potentially broken\" color=\"warn\"\r\n >warning</mat-icon\r\n >\r\n <mat-icon *ngSwitchCase=\"2\" matTooltip=\"Broken\" color=\"warn\"\r\n >error</mat-icon\r\n >\r\n </button>\r\n </mat-card-title>\r\n <cadmus-current-layer-part-bar></cadmus-current-layer-part-bar>\r\n </mat-card-header>\r\n <mat-card-actions *ngIf=\"!(loading$ | async)\">\r\n <mat-toolbar>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"editFragment()\"\r\n matTooltip=\"Edit the selected fragment\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteFragment()\"\r\n matTooltip=\"Delete the selected fragment\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Larger text\"\r\n (click)=\"makeLarger()\"\r\n [disabled]=\"textSize >= 24\"\r\n >\r\n <mat-icon>format_size</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Smaller text\"\r\n (click)=\"makeSmaller()\"\r\n [disabled]=\"textSize <= 12\"\r\n >\r\n <mat-icon>text_fields</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"pickLocation()\"\r\n matTooltip=\"Pick the selection location for a new fragment\"\r\n >\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"addFragment()\"\r\n matTooltip=\"Add a new fragment at selection\"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n <span>{{ pickedLocation }}</span>\r\n </mat-toolbar>\r\n </mat-card-actions>\r\n <mat-card-content fxLayout=\"row\">\r\n <div *ngIf=\"loading$ | async\" fxFlex fxLayoutAlign=\"center center\">\r\n <mat-spinner [diameter]=\"48\" [strokeWidth]=\"4\"></mat-spinner>\r\n </div>\r\n <div *ngIf=\"error$ | async as error\" class=\"error-message\">{{ error }}</div>\r\n\r\n <div [style.font-size]=\"textSize + 'px'\">\r\n <cadmus-decorated-token-text\r\n *ngIf=\"baseText$ | async as baseText\"\r\n [baseText]=\"baseText\"\r\n [locations]=\"locations$ | async\"\r\n ></cadmus-decorated-token-text>\r\n </div>\r\n </mat-card-content>\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-raised-button\r\n color=\"warn\"\r\n matTooltip=\"Close this editor\"\r\n (click)=\"close()\"\r\n >\r\n <mat-icon>cancel</mat-icon>\r\n close\r\n </button>\r\n </div>\r\n <mat-expansion-panel *ngIf=\"layerHints$ | async as layerHints\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Layer hints</mat-panel-title>\r\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <cadmus-layer-hints\r\n [hints]=\"layerHints\"\r\n [disabled]=\"\r\n (loading$ | async) ||\r\n (patchingLayer$ | async) ||\r\n (deletingFragment$ | async)\r\n \"\r\n [readonly]=\"userLevel < 2\"\r\n [targetLocation]=\"pickedLocation\"\r\n (requestEdit)=\"editFragmentFromHint($event)\"\r\n (requestDelete)=\"deleteFragmentFromHint($event)\"\r\n (requestMove)=\"moveFragmentFromHint($event)\"\r\n (requestPatch)=\"applyLayerPatches($event)\"\r\n ></cadmus-layer-hints>\r\n </mat-expansion-panel>\r\n</mat-card>\r\n",
|
|
1878
|
-
styles: [""]
|
|
1879
|
-
},] }
|
|
1880
|
-
];
|
|
1881
|
-
TokenTextLayerPartFeatureComponent.ctorParameters = function () { return [
|
|
1882
|
-
{ type: router.ActivatedRoute },
|
|
1883
|
-
{ type: router.Router },
|
|
1884
|
-
{ type: cadmusState.EditLayerPartQuery },
|
|
1885
|
-
{ type: cadmusState.EditLayerPartService },
|
|
1886
|
-
{ type: cadmusCore.TextLayerService },
|
|
1887
|
-
{ type: cadmusState.EditItemQuery },
|
|
1888
|
-
{ type: cadmusState.EditItemService },
|
|
1889
|
-
{ type: cadmusCore.LibraryRouteService },
|
|
1890
|
-
{ type: cadmusUi.DialogService },
|
|
1891
|
-
{ type: i2.AuthService }
|
|
1892
|
-
]; };
|
|
1893
|
-
|
|
1894
|
-
exports.ɵbc = /** @class */ (function (_super) {
|
|
1895
|
-
__extends(EditTokenTextPartStore, _super);
|
|
1896
|
-
function EditTokenTextPartStore() {
|
|
1897
|
-
return _super.call(this, cadmusState.editPartInitialState) || this;
|
|
1898
|
-
}
|
|
1899
|
-
EditTokenTextPartStore.prototype.setDirty = function (value) {
|
|
1900
|
-
this.update({ dirty: value });
|
|
1901
|
-
};
|
|
1902
|
-
EditTokenTextPartStore.prototype.setSaving = function (value) {
|
|
1903
|
-
this.update({ saving: value });
|
|
1904
|
-
};
|
|
1905
|
-
return EditTokenTextPartStore;
|
|
1906
|
-
}(akita.Store));
|
|
1907
|
-
exports.ɵbc.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditTokenTextPartStore_Factory() { return new exports.ɵbc(); }, token: exports.ɵbc, providedIn: "root" });
|
|
1908
|
-
exports.ɵbc.decorators = [
|
|
1909
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
1910
|
-
];
|
|
1911
|
-
exports.ɵbc.ctorParameters = function () { return []; };
|
|
1912
|
-
exports.ɵbc = __decorate([
|
|
1913
|
-
akita.StoreConfig({ name: cadmusPartGeneralUi.TOKEN_TEXT_PART_TYPEID })
|
|
1914
|
-
], exports.ɵbc);
|
|
1915
|
-
|
|
1916
|
-
var EditTokenTextPartQuery = /** @class */ (function (_super) {
|
|
1917
|
-
__extends(EditTokenTextPartQuery, _super);
|
|
1918
|
-
function EditTokenTextPartQuery(store) {
|
|
1919
|
-
return _super.call(this, store) || this;
|
|
1920
|
-
}
|
|
1921
|
-
return EditTokenTextPartQuery;
|
|
1922
|
-
}(cadmusState.EditPartQueryBase));
|
|
1923
|
-
EditTokenTextPartQuery.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditTokenTextPartQuery_Factory() { return new EditTokenTextPartQuery(i0__namespace.ɵɵinject(exports.ɵbc)); }, token: EditTokenTextPartQuery, providedIn: "root" });
|
|
1924
|
-
EditTokenTextPartQuery.decorators = [
|
|
1925
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
1926
|
-
];
|
|
1927
|
-
EditTokenTextPartQuery.ctorParameters = function () { return [
|
|
1928
|
-
{ type: exports.ɵbc }
|
|
1929
|
-
]; };
|
|
1930
|
-
|
|
1931
|
-
var EditTokenTextPartService = /** @class */ (function (_super) {
|
|
1932
|
-
__extends(EditTokenTextPartService, _super);
|
|
1933
|
-
function EditTokenTextPartService(editPartStore, itemService, thesaurusService) {
|
|
1934
|
-
var _this = _super.call(this, itemService, thesaurusService) || this;
|
|
1935
|
-
_this.store = editPartStore;
|
|
1936
|
-
return _this;
|
|
1937
|
-
}
|
|
1938
|
-
return EditTokenTextPartService;
|
|
1939
|
-
}(cadmusState.EditPartServiceBase));
|
|
1940
|
-
EditTokenTextPartService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditTokenTextPartService_Factory() { return new EditTokenTextPartService(i0__namespace.ɵɵinject(exports.ɵbc), i0__namespace.ɵɵinject(i2__namespace.ItemService), i0__namespace.ɵɵinject(i2__namespace.ThesaurusService)); }, token: EditTokenTextPartService, providedIn: "root" });
|
|
1941
|
-
EditTokenTextPartService.decorators = [
|
|
1942
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
1943
|
-
];
|
|
1944
|
-
EditTokenTextPartService.ctorParameters = function () { return [
|
|
1945
|
-
{ type: exports.ɵbc },
|
|
1946
|
-
{ type: i2.ItemService },
|
|
1947
|
-
{ type: i2.ThesaurusService }
|
|
1948
|
-
]; };
|
|
1949
|
-
|
|
1950
|
-
var TokenTextPartFeatureComponent = /** @class */ (function (_super) {
|
|
1951
|
-
__extends(TokenTextPartFeatureComponent, _super);
|
|
1952
|
-
function TokenTextPartFeatureComponent(router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) {
|
|
1953
|
-
return _super.call(this, router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) || this;
|
|
1954
|
-
}
|
|
1955
|
-
TokenTextPartFeatureComponent.prototype.ngOnInit = function () {
|
|
1956
|
-
this.initEditor(null);
|
|
1957
|
-
};
|
|
1958
|
-
return TokenTextPartFeatureComponent;
|
|
1959
|
-
}(cadmusState.EditPartFeatureBase));
|
|
1960
|
-
TokenTextPartFeatureComponent.decorators = [
|
|
1961
|
-
{ type: i0.Component, args: [{
|
|
1962
|
-
selector: 'cadmus-token-text-part-feature',
|
|
1963
|
-
template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-token-text-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n></cadmus-token-text-part>\r\n",
|
|
1964
|
-
styles: [""]
|
|
1965
|
-
},] }
|
|
1966
|
-
];
|
|
1967
|
-
TokenTextPartFeatureComponent.ctorParameters = function () { return [
|
|
1968
|
-
{ type: router.Router },
|
|
1969
|
-
{ type: router.ActivatedRoute },
|
|
1970
|
-
{ type: snackBar.MatSnackBar },
|
|
1971
|
-
{ type: EditTokenTextPartQuery },
|
|
1972
|
-
{ type: EditTokenTextPartService },
|
|
1973
|
-
{ type: cadmusState.EditItemQuery },
|
|
1974
|
-
{ type: cadmusState.EditItemService }
|
|
1975
|
-
]; };
|
|
1976
|
-
|
|
1977
|
-
exports.ɵbk = /** @class */ (function (_super) {
|
|
1978
|
-
__extends(EditIndexKeywordsPartStore, _super);
|
|
1979
|
-
function EditIndexKeywordsPartStore() {
|
|
1980
|
-
return _super.call(this, cadmusState.editPartInitialState) || this;
|
|
1981
|
-
}
|
|
1982
|
-
EditIndexKeywordsPartStore.prototype.setDirty = function (value) {
|
|
1983
|
-
this.update({ dirty: value });
|
|
1984
|
-
};
|
|
1985
|
-
EditIndexKeywordsPartStore.prototype.setSaving = function (value) {
|
|
1986
|
-
this.update({ saving: value });
|
|
1987
|
-
};
|
|
1988
|
-
return EditIndexKeywordsPartStore;
|
|
1989
|
-
}(akita.Store));
|
|
1990
|
-
exports.ɵbk.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditIndexKeywordsPartStore_Factory() { return new exports.ɵbk(); }, token: exports.ɵbk, providedIn: "root" });
|
|
1991
|
-
exports.ɵbk.decorators = [
|
|
1992
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
1993
|
-
];
|
|
1994
|
-
exports.ɵbk.ctorParameters = function () { return []; };
|
|
1995
|
-
exports.ɵbk = __decorate([
|
|
1996
|
-
akita.StoreConfig({ name: cadmusPartGeneralUi.INDEX_KEYWORDS_PART_TYPEID })
|
|
1997
|
-
], exports.ɵbk);
|
|
1998
|
-
|
|
1999
|
-
var EditIndexKeywordsPartQuery = /** @class */ (function (_super) {
|
|
2000
|
-
__extends(EditIndexKeywordsPartQuery, _super);
|
|
2001
|
-
function EditIndexKeywordsPartQuery(store) {
|
|
2002
|
-
return _super.call(this, store) || this;
|
|
2003
|
-
}
|
|
2004
|
-
return EditIndexKeywordsPartQuery;
|
|
2005
|
-
}(cadmusState.EditPartQueryBase));
|
|
2006
|
-
EditIndexKeywordsPartQuery.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditIndexKeywordsPartQuery_Factory() { return new EditIndexKeywordsPartQuery(i0__namespace.ɵɵinject(exports.ɵbk)); }, token: EditIndexKeywordsPartQuery, providedIn: "root" });
|
|
2007
|
-
EditIndexKeywordsPartQuery.decorators = [
|
|
2008
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2009
|
-
];
|
|
2010
|
-
EditIndexKeywordsPartQuery.ctorParameters = function () { return [
|
|
2011
|
-
{ type: exports.ɵbk }
|
|
2012
|
-
]; };
|
|
2013
|
-
|
|
2014
|
-
var EditIndexKeywordsPartService = /** @class */ (function (_super) {
|
|
2015
|
-
__extends(EditIndexKeywordsPartService, _super);
|
|
2016
|
-
function EditIndexKeywordsPartService(editPartStore, itemService, thesaurusService) {
|
|
2017
|
-
var _this = _super.call(this, itemService, thesaurusService) || this;
|
|
2018
|
-
_this.store = editPartStore;
|
|
2019
|
-
return _this;
|
|
2020
|
-
}
|
|
2021
|
-
return EditIndexKeywordsPartService;
|
|
2022
|
-
}(cadmusState.EditPartServiceBase));
|
|
2023
|
-
EditIndexKeywordsPartService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditIndexKeywordsPartService_Factory() { return new EditIndexKeywordsPartService(i0__namespace.ɵɵinject(exports.ɵbk), i0__namespace.ɵɵinject(i2__namespace.ItemService), i0__namespace.ɵɵinject(i2__namespace.ThesaurusService)); }, token: EditIndexKeywordsPartService, providedIn: "root" });
|
|
2024
|
-
EditIndexKeywordsPartService.decorators = [
|
|
2025
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2026
|
-
];
|
|
2027
|
-
EditIndexKeywordsPartService.ctorParameters = function () { return [
|
|
2028
|
-
{ type: exports.ɵbk },
|
|
2029
|
-
{ type: i2.ItemService },
|
|
2030
|
-
{ type: i2.ThesaurusService }
|
|
2031
|
-
]; };
|
|
2032
|
-
|
|
2033
|
-
var IndexKeywordsPartFeatureComponent = /** @class */ (function (_super) {
|
|
2034
|
-
__extends(IndexKeywordsPartFeatureComponent, _super);
|
|
2035
|
-
function IndexKeywordsPartFeatureComponent(router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) {
|
|
2036
|
-
return _super.call(this, router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) || this;
|
|
2037
|
-
}
|
|
2038
|
-
IndexKeywordsPartFeatureComponent.prototype.ngOnInit = function () {
|
|
2039
|
-
this.initEditor(['languages', 'keyword-indexes', 'keyword-tags']);
|
|
2040
|
-
};
|
|
2041
|
-
return IndexKeywordsPartFeatureComponent;
|
|
2042
|
-
}(cadmusState.EditPartFeatureBase));
|
|
2043
|
-
IndexKeywordsPartFeatureComponent.decorators = [
|
|
2044
|
-
{ type: i0.Component, args: [{
|
|
2045
|
-
selector: 'cadmus-index-keywords-part-feature',
|
|
2046
|
-
template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-index-keywords-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-index-keywords-part>\r\n",
|
|
2047
|
-
styles: [""]
|
|
2048
|
-
},] }
|
|
2049
|
-
];
|
|
2050
|
-
IndexKeywordsPartFeatureComponent.ctorParameters = function () { return [
|
|
2051
|
-
{ type: router.Router },
|
|
2052
|
-
{ type: router.ActivatedRoute },
|
|
2053
|
-
{ type: snackBar.MatSnackBar },
|
|
2054
|
-
{ type: EditIndexKeywordsPartQuery },
|
|
2055
|
-
{ type: EditIndexKeywordsPartService },
|
|
2056
|
-
{ type: cadmusState.EditItemQuery },
|
|
2057
|
-
{ type: cadmusState.EditItemService }
|
|
2058
|
-
]; };
|
|
2059
|
-
|
|
2060
|
-
exports.ɵbg = /** @class */ (function (_super) {
|
|
2061
|
-
__extends(EditBibliographyPartStore, _super);
|
|
2062
|
-
function EditBibliographyPartStore() {
|
|
2063
|
-
return _super.call(this, cadmusState.editPartInitialState) || this;
|
|
2064
|
-
}
|
|
2065
|
-
EditBibliographyPartStore.prototype.setDirty = function (value) {
|
|
2066
|
-
this.update({ dirty: value });
|
|
2067
|
-
};
|
|
2068
|
-
EditBibliographyPartStore.prototype.setSaving = function (value) {
|
|
2069
|
-
this.update({ saving: value });
|
|
2070
|
-
};
|
|
2071
|
-
return EditBibliographyPartStore;
|
|
2072
|
-
}(akita.Store));
|
|
2073
|
-
exports.ɵbg.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditBibliographyPartStore_Factory() { return new exports.ɵbg(); }, token: exports.ɵbg, providedIn: "root" });
|
|
2074
|
-
exports.ɵbg.decorators = [
|
|
2075
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2076
|
-
];
|
|
2077
|
-
exports.ɵbg.ctorParameters = function () { return []; };
|
|
2078
|
-
exports.ɵbg = __decorate([
|
|
2079
|
-
akita.StoreConfig({ name: cadmusPartGeneralUi.BIBLIOGRAPHY_PART_TYPEID })
|
|
2080
|
-
], exports.ɵbg);
|
|
2081
|
-
|
|
2082
|
-
var EditBibliographyPartService = /** @class */ (function (_super) {
|
|
2083
|
-
__extends(EditBibliographyPartService, _super);
|
|
2084
|
-
function EditBibliographyPartService(editPartStore, itemService, thesaurusService) {
|
|
2085
|
-
var _this = _super.call(this, itemService, thesaurusService) || this;
|
|
2086
|
-
_this.store = editPartStore;
|
|
2087
|
-
return _this;
|
|
2088
|
-
}
|
|
2089
|
-
return EditBibliographyPartService;
|
|
2090
|
-
}(cadmusState.EditPartServiceBase));
|
|
2091
|
-
EditBibliographyPartService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditBibliographyPartService_Factory() { return new EditBibliographyPartService(i0__namespace.ɵɵinject(exports.ɵbg), i0__namespace.ɵɵinject(i2__namespace.ItemService), i0__namespace.ɵɵinject(i2__namespace.ThesaurusService)); }, token: EditBibliographyPartService, providedIn: "root" });
|
|
2092
|
-
EditBibliographyPartService.decorators = [
|
|
2093
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2094
|
-
];
|
|
2095
|
-
EditBibliographyPartService.ctorParameters = function () { return [
|
|
2096
|
-
{ type: exports.ɵbg },
|
|
2097
|
-
{ type: i2.ItemService },
|
|
2098
|
-
{ type: i2.ThesaurusService }
|
|
2099
|
-
]; };
|
|
2100
|
-
|
|
2101
|
-
var EditBibliographyPartQuery = /** @class */ (function (_super) {
|
|
2102
|
-
__extends(EditBibliographyPartQuery, _super);
|
|
2103
|
-
function EditBibliographyPartQuery(store) {
|
|
2104
|
-
return _super.call(this, store) || this;
|
|
2105
|
-
}
|
|
2106
|
-
return EditBibliographyPartQuery;
|
|
2107
|
-
}(cadmusState.EditPartQueryBase));
|
|
2108
|
-
EditBibliographyPartQuery.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EditBibliographyPartQuery_Factory() { return new EditBibliographyPartQuery(i0__namespace.ɵɵinject(exports.ɵbg)); }, token: EditBibliographyPartQuery, providedIn: "root" });
|
|
2109
|
-
EditBibliographyPartQuery.decorators = [
|
|
2110
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2111
|
-
];
|
|
2112
|
-
EditBibliographyPartQuery.ctorParameters = function () { return [
|
|
2113
|
-
{ type: exports.ɵbg }
|
|
2114
|
-
]; };
|
|
2115
|
-
|
|
2116
|
-
var BibliographyPartFeatureComponent = /** @class */ (function (_super) {
|
|
2117
|
-
__extends(BibliographyPartFeatureComponent, _super);
|
|
2118
|
-
function BibliographyPartFeatureComponent(router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) {
|
|
2119
|
-
return _super.call(this, router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) || this;
|
|
2120
|
-
}
|
|
2121
|
-
BibliographyPartFeatureComponent.prototype.ngOnInit = function () {
|
|
2122
|
-
this.initEditor([
|
|
2123
|
-
'bibliography-languages',
|
|
2124
|
-
'bibliography-types',
|
|
2125
|
-
'bibliography-tags',
|
|
2126
|
-
'bibliography-author-roles'
|
|
2127
|
-
]);
|
|
2128
|
-
};
|
|
2129
|
-
return BibliographyPartFeatureComponent;
|
|
2130
|
-
}(cadmusState.EditPartFeatureBase));
|
|
2131
|
-
BibliographyPartFeatureComponent.decorators = [
|
|
2132
|
-
{ type: i0.Component, args: [{
|
|
2133
|
-
selector: 'cadmus-bibliography-part-feature',
|
|
2134
|
-
template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-bibliography-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-bibliography-part>\r\n",
|
|
2135
|
-
styles: [""]
|
|
2136
|
-
},] }
|
|
2137
|
-
];
|
|
2138
|
-
BibliographyPartFeatureComponent.ctorParameters = function () { return [
|
|
2139
|
-
{ type: router.Router },
|
|
2140
|
-
{ type: router.ActivatedRoute },
|
|
2141
|
-
{ type: snackBar.MatSnackBar },
|
|
2142
|
-
{ type: EditBibliographyPartQuery },
|
|
2143
|
-
{ type: EditBibliographyPartService },
|
|
2144
|
-
{ type: cadmusState.EditItemQuery },
|
|
2145
|
-
{ type: cadmusState.EditItemService }
|
|
2146
|
-
]; };
|
|
2147
|
-
|
|
2148
|
-
// https://github.com/ng-packagr/ng-packagr/issues/778
|
|
2149
|
-
var RouterModuleForChild = router.RouterModule.forChild([
|
|
2150
|
-
{
|
|
2151
|
-
path: cadmusPartGeneralUi.BIBLIOGRAPHY_PART_TYPEID + "/:pid",
|
|
2152
|
-
pathMatch: 'full',
|
|
2153
|
-
component: BibliographyPartFeatureComponent,
|
|
2154
|
-
canDeactivate: [cadmusCore.PendingChangesGuard],
|
|
2155
|
-
},
|
|
2156
|
-
{
|
|
2157
|
-
path: cadmusPartGeneralUi.CATEGORIES_PART_TYPEID + "/:pid",
|
|
2158
|
-
pathMatch: 'full',
|
|
2159
|
-
component: CategoriesPartFeatureComponent,
|
|
2160
|
-
canDeactivate: [cadmusCore.PendingChangesGuard],
|
|
2161
|
-
},
|
|
2162
|
-
{
|
|
2163
|
-
path: cadmusPartGeneralUi.COMMENT_PART_TYPEID + "/:pid",
|
|
2164
|
-
pathMatch: 'full',
|
|
2165
|
-
component: CommentPartFeatureComponent,
|
|
2166
|
-
canDeactivate: [cadmusCore.PendingChangesGuard],
|
|
2167
|
-
},
|
|
2168
|
-
{
|
|
2169
|
-
path: cadmusPartGeneralUi.DOC_REFERENCES_PART_TYPEID + "/:pid",
|
|
2170
|
-
pathMatch: 'full',
|
|
2171
|
-
component: DocReferencesPartFeatureComponent,
|
|
2172
|
-
canDeactivate: [cadmusCore.PendingChangesGuard],
|
|
2173
|
-
},
|
|
2174
|
-
{
|
|
2175
|
-
path: cadmusPartGeneralUi.HISTORICAL_DATE_PART_TYPEID + "/:pid",
|
|
2176
|
-
pathMatch: 'full',
|
|
2177
|
-
component: HistoricalDatePartFeatureComponent,
|
|
2178
|
-
canDeactivate: [cadmusCore.PendingChangesGuard],
|
|
2179
|
-
},
|
|
2180
|
-
{
|
|
2181
|
-
path: cadmusPartGeneralUi.KEYWORDS_PART_TYPEID + "/:pid",
|
|
2182
|
-
pathMatch: 'full',
|
|
2183
|
-
component: KeywordsPartFeatureComponent,
|
|
2184
|
-
canDeactivate: [cadmusCore.PendingChangesGuard],
|
|
2185
|
-
},
|
|
2186
|
-
{
|
|
2187
|
-
path: cadmusPartGeneralUi.INDEX_KEYWORDS_PART_TYPEID + "/:pid",
|
|
2188
|
-
pathMatch: 'full',
|
|
2189
|
-
component: IndexKeywordsPartFeatureComponent,
|
|
2190
|
-
canDeactivate: [cadmusCore.PendingChangesGuard],
|
|
2191
|
-
},
|
|
2192
|
-
{
|
|
2193
|
-
path: cadmusPartGeneralUi.NOTE_PART_TYPEID + "/:pid",
|
|
2194
|
-
pathMatch: 'full',
|
|
2195
|
-
component: NotePartFeatureComponent,
|
|
2196
|
-
canDeactivate: [cadmusCore.PendingChangesGuard],
|
|
2197
|
-
},
|
|
2198
|
-
{
|
|
2199
|
-
path: cadmusPartGeneralUi.TOKEN_TEXT_PART_TYPEID + "/:pid",
|
|
2200
|
-
pathMatch: 'full',
|
|
2201
|
-
component: TokenTextPartFeatureComponent,
|
|
2202
|
-
canDeactivate: [cadmusCore.PendingChangesGuard],
|
|
2203
|
-
},
|
|
2204
|
-
{
|
|
2205
|
-
path: cadmusPartGeneralUi.TILED_TEXT_PART_TYPEID + "/:pid",
|
|
2206
|
-
pathMatch: 'full',
|
|
2207
|
-
component: TiledTextPartFeatureComponent,
|
|
2208
|
-
canDeactivate: [cadmusCore.PendingChangesGuard],
|
|
2209
|
-
},
|
|
2210
|
-
{
|
|
2211
|
-
path: 'it.vedph.token-text-layer/:pid',
|
|
2212
|
-
pathMatch: 'full',
|
|
2213
|
-
component: TokenTextLayerPartFeatureComponent,
|
|
2214
|
-
canDeactivate: [cadmusCore.PendingChangesGuard],
|
|
2215
|
-
},
|
|
2216
|
-
{
|
|
2217
|
-
path: 'it.vedph.tiled-text-layer/:pid',
|
|
2218
|
-
pathMatch: 'full',
|
|
2219
|
-
component: TiledTextLayerPartFeatureComponent,
|
|
2220
|
-
canDeactivate: [cadmusCore.PendingChangesGuard],
|
|
2221
|
-
},
|
|
2222
|
-
{
|
|
2223
|
-
path: "fragment/:pid/" + cadmusPartGeneralUi.COMMENT_FRAGMENT_TYPEID + "/:loc",
|
|
2224
|
-
pathMatch: 'full',
|
|
2225
|
-
component: CommentFragmentFeatureComponent,
|
|
2226
|
-
canDeactivate: [cadmusCore.PendingChangesGuard],
|
|
2227
|
-
},
|
|
2228
|
-
{
|
|
2229
|
-
path: "fragment/:pid/" + cadmusPartGeneralUi.CHRONOLOGY_FRAGMENT_TYPEID + "/:loc",
|
|
2230
|
-
pathMatch: 'full',
|
|
2231
|
-
component: ChronologyFragmentFeatureComponent,
|
|
2232
|
-
canDeactivate: [cadmusCore.PendingChangesGuard],
|
|
2233
|
-
},
|
|
2234
|
-
]);
|
|
2235
|
-
var CadmusPartGeneralPgModule = /** @class */ (function () {
|
|
2236
|
-
function CadmusPartGeneralPgModule() {
|
|
2237
|
-
}
|
|
2238
|
-
return CadmusPartGeneralPgModule;
|
|
2239
|
-
}());
|
|
2240
|
-
CadmusPartGeneralPgModule.decorators = [
|
|
2241
|
-
{ type: i0.NgModule, args: [{
|
|
2242
|
-
imports: [
|
|
2243
|
-
common.CommonModule,
|
|
2244
|
-
forms.FormsModule,
|
|
2245
|
-
forms.ReactiveFormsModule,
|
|
2246
|
-
RouterModuleForChild,
|
|
2247
|
-
// cadmus
|
|
2248
|
-
cadmusCore.CadmusCoreModule,
|
|
2249
|
-
cadmusMaterial.CadmusMaterialModule,
|
|
2250
|
-
cadmusUi.CadmusUiModule,
|
|
2251
|
-
cadmusPartGeneralUi.CadmusPartGeneralUiModule,
|
|
2252
|
-
cadmusState.CadmusStateModule,
|
|
2253
|
-
cadmusUiPg.CadmusUiPgModule,
|
|
2254
|
-
],
|
|
2255
|
-
declarations: [
|
|
2256
|
-
BibliographyPartFeatureComponent,
|
|
2257
|
-
CategoriesPartFeatureComponent,
|
|
2258
|
-
ChronologyFragmentFeatureComponent,
|
|
2259
|
-
CommentFragmentFeatureComponent,
|
|
2260
|
-
CommentPartFeatureComponent,
|
|
2261
|
-
DocReferencesPartFeatureComponent,
|
|
2262
|
-
HistoricalDatePartFeatureComponent,
|
|
2263
|
-
IndexKeywordsPartFeatureComponent,
|
|
2264
|
-
KeywordsPartFeatureComponent,
|
|
2265
|
-
NotePartFeatureComponent,
|
|
2266
|
-
TiledTextLayerPartFeatureComponent,
|
|
2267
|
-
TiledTextPartFeatureComponent,
|
|
2268
|
-
TokenTextLayerPartFeatureComponent,
|
|
2269
|
-
TokenTextPartFeatureComponent,
|
|
2270
|
-
],
|
|
2271
|
-
exports: [
|
|
2272
|
-
BibliographyPartFeatureComponent,
|
|
2273
|
-
CategoriesPartFeatureComponent,
|
|
2274
|
-
ChronologyFragmentFeatureComponent,
|
|
2275
|
-
CommentFragmentFeatureComponent,
|
|
2276
|
-
CommentPartFeatureComponent,
|
|
2277
|
-
DocReferencesPartFeatureComponent,
|
|
2278
|
-
HistoricalDatePartFeatureComponent,
|
|
2279
|
-
IndexKeywordsPartFeatureComponent,
|
|
2280
|
-
KeywordsPartFeatureComponent,
|
|
2281
|
-
NotePartFeatureComponent,
|
|
2282
|
-
TiledTextLayerPartFeatureComponent,
|
|
2283
|
-
TiledTextPartFeatureComponent,
|
|
2284
|
-
TokenTextLayerPartFeatureComponent,
|
|
2285
|
-
TokenTextPartFeatureComponent,
|
|
2286
|
-
],
|
|
2287
|
-
},] }
|
|
2288
|
-
];
|
|
2289
|
-
|
|
2290
|
-
/*
|
|
2291
|
-
* Public API Surface of cadmus-part-general-pg
|
|
2292
|
-
*/
|
|
2293
|
-
|
|
2294
|
-
/**
|
|
2295
|
-
* Generated bundle index. Do not edit.
|
|
2296
|
-
*/
|
|
2297
|
-
|
|
2298
|
-
exports.CadmusPartGeneralPgModule = CadmusPartGeneralPgModule;
|
|
2299
|
-
exports.CategoriesPartFeatureComponent = CategoriesPartFeatureComponent;
|
|
2300
|
-
exports.ChronologyFragmentFeatureComponent = ChronologyFragmentFeatureComponent;
|
|
2301
|
-
exports.CommentFragmentFeatureComponent = CommentFragmentFeatureComponent;
|
|
2302
|
-
exports.CommentPartFeatureComponent = CommentPartFeatureComponent;
|
|
2303
|
-
exports.DocReferencesPartFeatureComponent = DocReferencesPartFeatureComponent;
|
|
2304
|
-
exports.HistoricalDatePartFeatureComponent = HistoricalDatePartFeatureComponent;
|
|
2305
|
-
exports.KeywordsPartFeatureComponent = KeywordsPartFeatureComponent;
|
|
2306
|
-
exports.NotePartFeatureComponent = NotePartFeatureComponent;
|
|
2307
|
-
exports.RouterModuleForChild = RouterModuleForChild;
|
|
2308
|
-
exports.TiledTextLayerPartFeatureComponent = TiledTextLayerPartFeatureComponent;
|
|
2309
|
-
exports.TiledTextPartFeatureComponent = TiledTextPartFeatureComponent;
|
|
2310
|
-
exports.TokenTextLayerPartFeatureComponent = TokenTextLayerPartFeatureComponent;
|
|
2311
|
-
exports.TokenTextPartFeatureComponent = TokenTextPartFeatureComponent;
|
|
2312
|
-
exports.ɵa = EditCategoriesPartQuery;
|
|
2313
|
-
exports.ɵba = EditTiledTextPartService;
|
|
2314
|
-
exports.ɵbb = EditTokenTextPartQuery;
|
|
2315
|
-
exports.ɵbd = EditTokenTextPartService;
|
|
2316
|
-
exports.ɵbe = BibliographyPartFeatureComponent;
|
|
2317
|
-
exports.ɵbf = EditBibliographyPartQuery;
|
|
2318
|
-
exports.ɵbh = EditBibliographyPartService;
|
|
2319
|
-
exports.ɵbi = IndexKeywordsPartFeatureComponent;
|
|
2320
|
-
exports.ɵbj = EditIndexKeywordsPartQuery;
|
|
2321
|
-
exports.ɵbl = EditIndexKeywordsPartService;
|
|
2322
|
-
exports.ɵc = EditCategoriesPartService;
|
|
2323
|
-
exports.ɵd = EditChronologyFragmentQuery;
|
|
2324
|
-
exports.ɵf = EditChronologyFragmentService;
|
|
2325
|
-
exports.ɵg = EditCommentFragmentQuery;
|
|
2326
|
-
exports.ɵi = EditCommentFragmentService;
|
|
2327
|
-
exports.ɵj = EditCommentPartQuery;
|
|
2328
|
-
exports.ɵl = EditCommentPartService;
|
|
2329
|
-
exports.ɵm = EditDocReferencesPartQuery;
|
|
2330
|
-
exports.ɵo = EditDocReferencesPartService;
|
|
2331
|
-
exports.ɵp = EditHistoricalDatePartQuery;
|
|
2332
|
-
exports.ɵr = EditHistoricalDatePartService;
|
|
2333
|
-
exports.ɵs = EditKeywordsPartQuery;
|
|
2334
|
-
exports.ɵu = EditKeywordsPartService;
|
|
2335
|
-
exports.ɵv = EditNotePartQuery;
|
|
2336
|
-
exports.ɵx = EditNotePartService;
|
|
2337
|
-
exports.ɵy = EditTiledTextPartQuery;
|
|
2338
|
-
|
|
2339
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2340
|
-
|
|
2341
|
-
})));
|
|
2342
|
-
//# sourceMappingURL=myrmidon-cadmus-part-general-pg.umd.js.map
|