@myrmidon/cadmus-layer-demo 2.0.0 → 5.0.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.
@@ -1,27 +1,27 @@
1
- import { ElementRef } from '@angular/core';
2
- import { FormGroup, FormControl, FormBuilder } from '@angular/forms';
3
- import { TextLayerService, TokenLocation } from '@myrmidon/cadmus-core';
4
- import * as i0 from "@angular/core";
5
- export declare class LayerDemoComponent {
6
- private _textLayerService;
7
- _resultElement?: ElementRef;
8
- locations: TokenLocation[];
9
- result: string;
10
- userLocation?: TokenLocation;
11
- rendition: FormGroup;
12
- text: FormControl<string | null>;
13
- location: FormControl<string | null>;
14
- textSize: number;
15
- constructor(formBuilder: FormBuilder, _textLayerService: TextLayerService);
16
- makeLarger(): void;
17
- makeSmaller(): void;
18
- private removeOverlaps;
19
- addLocation(): void;
20
- removeLocation(loc: TokenLocation): void;
21
- clearLocations(): void;
22
- render(): void;
23
- getLocationForNew(): void;
24
- getLocationForEdit(): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<LayerDemoComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<LayerDemoComponent, "cadmus-layer-demo", never, {}, {}, never, never, false, never>;
27
- }
1
+ import { ElementRef } from '@angular/core';
2
+ import { FormGroup, FormControl, FormBuilder } from '@angular/forms';
3
+ import { TextLayerService, TokenLocation } from '@myrmidon/cadmus-core';
4
+ import * as i0 from "@angular/core";
5
+ export declare class LayerDemoComponent {
6
+ private _textLayerService;
7
+ _resultElement?: ElementRef;
8
+ locations: TokenLocation[];
9
+ result: string;
10
+ userLocation?: TokenLocation;
11
+ rendition: FormGroup;
12
+ text: FormControl<string | null>;
13
+ location: FormControl<string | null>;
14
+ textSize: number;
15
+ constructor(formBuilder: FormBuilder, _textLayerService: TextLayerService);
16
+ makeLarger(): void;
17
+ makeSmaller(): void;
18
+ private removeOverlaps;
19
+ addLocation(): void;
20
+ removeLocation(loc: TokenLocation): void;
21
+ clearLocations(): void;
22
+ render(): void;
23
+ getLocationForNew(): void;
24
+ getLocationForEdit(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayerDemoComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<LayerDemoComponent, "cadmus-layer-demo", never, {}, {}, never, never, false, never>;
27
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myrmidon/cadmus-layer-demo",
3
- "version": "2.0.0",
3
+ "version": "5.0.0",
4
4
  "description": "Cadmus - text layer demo page.",
5
5
  "keywords": [
6
6
  "Cadmus"
@@ -14,17 +14,13 @@
14
14
  "name": "Daniele Fusi"
15
15
  },
16
16
  "peerDependencies": {
17
- "@angular/common": "^15.0.0",
18
- "@angular/core": "^15.0.0"
17
+ "@angular/common": "^16.0.0",
18
+ "@angular/core": "^16.0.0"
19
19
  },
20
20
  "dependencies": {
21
- "tslib": "^2.3.0"
21
+ "tslib": "^2.5.0"
22
22
  },
23
- "module": "fesm2015/myrmidon-cadmus-layer-demo.mjs",
24
- "es2020": "fesm2020/myrmidon-cadmus-layer-demo.mjs",
25
- "esm2020": "esm2020/myrmidon-cadmus-layer-demo.mjs",
26
- "fesm2020": "fesm2020/myrmidon-cadmus-layer-demo.mjs",
27
- "fesm2015": "fesm2015/myrmidon-cadmus-layer-demo.mjs",
23
+ "module": "fesm2022/myrmidon-cadmus-layer-demo.mjs",
28
24
  "typings": "index.d.ts",
29
25
  "exports": {
30
26
  "./package.json": {
@@ -32,11 +28,9 @@
32
28
  },
33
29
  ".": {
34
30
  "types": "./index.d.ts",
35
- "esm2020": "./esm2020/myrmidon-cadmus-layer-demo.mjs",
36
- "es2020": "./fesm2020/myrmidon-cadmus-layer-demo.mjs",
37
- "es2015": "./fesm2015/myrmidon-cadmus-layer-demo.mjs",
38
- "node": "./fesm2015/myrmidon-cadmus-layer-demo.mjs",
39
- "default": "./fesm2020/myrmidon-cadmus-layer-demo.mjs"
31
+ "esm2022": "./esm2022/myrmidon-cadmus-layer-demo.mjs",
32
+ "esm": "./esm2022/myrmidon-cadmus-layer-demo.mjs",
33
+ "default": "./fesm2022/myrmidon-cadmus-layer-demo.mjs"
40
34
  }
41
35
  },
42
36
  "sideEffects": false
package/public-api.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './lib/layer-demo/layer-demo.component';
2
- export * from './lib/cadmus-layer-demo.module';
1
+ export * from './lib/layer-demo/layer-demo.component';
2
+ export * from './lib/cadmus-layer-demo.module';
@@ -1,81 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
4
- import { RouterModule } from '@angular/router';
5
- import { MatButtonModule } from '@angular/material/button';
6
- import { MatCardModule } from '@angular/material/card';
7
- import { MatFormFieldModule } from '@angular/material/form-field';
8
- import { MatIconModule } from '@angular/material/icon';
9
- import { MatInputModule } from '@angular/material/input';
10
- import { MatToolbarModule } from '@angular/material/toolbar';
11
- import { MatTooltipModule } from '@angular/material/tooltip';
12
- import { CadmusCoreModule } from '@myrmidon/cadmus-core';
13
- import { CadmusUiModule } from '@myrmidon/cadmus-ui';
14
- import { LayerDemoComponent } from './layer-demo/layer-demo.component';
15
- import { NgToolsModule } from '@myrmidon/ng-tools';
16
- import * as i0 from "@angular/core";
17
- import * as i1 from "@angular/router";
18
- // https://github.com/ng-packagr/ng-packagr/issues/778
19
- export const RouterModuleForChild = RouterModule.forChild([
20
- { path: '', pathMatch: 'full', component: LayerDemoComponent },
21
- ]);
22
- export class CadmusLayerDemoModule {
23
- }
24
- CadmusLayerDemoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CadmusLayerDemoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
25
- CadmusLayerDemoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: CadmusLayerDemoModule, declarations: [LayerDemoComponent], imports: [CommonModule,
26
- FormsModule,
27
- ReactiveFormsModule, i1.RouterModule,
28
- // material
29
- MatButtonModule,
30
- MatCardModule,
31
- MatFormFieldModule,
32
- MatIconModule,
33
- MatInputModule,
34
- MatToolbarModule,
35
- MatTooltipModule,
36
- // cadmus
37
- NgToolsModule,
38
- CadmusCoreModule,
39
- CadmusUiModule], exports: [LayerDemoComponent] });
40
- CadmusLayerDemoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CadmusLayerDemoModule, imports: [CommonModule,
41
- FormsModule,
42
- ReactiveFormsModule,
43
- RouterModuleForChild,
44
- // material
45
- MatButtonModule,
46
- MatCardModule,
47
- MatFormFieldModule,
48
- MatIconModule,
49
- MatInputModule,
50
- MatToolbarModule,
51
- MatTooltipModule,
52
- // cadmus
53
- NgToolsModule,
54
- CadmusCoreModule,
55
- CadmusUiModule] });
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CadmusLayerDemoModule, decorators: [{
57
- type: NgModule,
58
- args: [{
59
- imports: [
60
- CommonModule,
61
- FormsModule,
62
- ReactiveFormsModule,
63
- RouterModuleForChild,
64
- // material
65
- MatButtonModule,
66
- MatCardModule,
67
- MatFormFieldModule,
68
- MatIconModule,
69
- MatInputModule,
70
- MatToolbarModule,
71
- MatTooltipModule,
72
- // cadmus
73
- NgToolsModule,
74
- CadmusCoreModule,
75
- CadmusUiModule,
76
- ],
77
- declarations: [LayerDemoComponent],
78
- exports: [LayerDemoComponent],
79
- }]
80
- }] });
81
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FkbXVzLWxheWVyLWRlbW8ubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbXlybWlkb24vY2FkbXVzLWxheWVyLWRlbW8vc3Jj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xyXG4gICAgQ2FkbXVzQ29yZU1vZHVsZSxcclxuICAgIENhZG11c1VpTW9kdWxlLFxyXG4gIF0sXHJcbiAgZGVjbGFyYXRpb25zOiBbTGF5ZXJEZW1vQ29tcG9uZW50XSxcclxuICBleHBvcnRzOiBbTGF5ZXJEZW1vQ29tcG9uZW50XSxcclxufSlcclxuZXhwb3J0IGNsYXNzIENhZG11c0xheWVyRGVtb01vZHVsZSB7fVxyXG4iXX0=
@@ -1,116 +0,0 @@
1
- import { Component, ViewChild } from '@angular/core';
2
- import { TokenLocation } from '@myrmidon/cadmus-core';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/forms";
5
- import * as i2 from "@myrmidon/cadmus-core";
6
- import * as i3 from "@angular/common";
7
- import * as i4 from "@angular/material/button";
8
- import * as i5 from "@angular/material/card";
9
- import * as i6 from "@angular/material/form-field";
10
- import * as i7 from "@angular/material/icon";
11
- import * as i8 from "@angular/material/input";
12
- import * as i9 from "@angular/material/toolbar";
13
- import * as i10 from "@angular/material/tooltip";
14
- import * as i11 from "@myrmidon/ng-tools";
15
- export class LayerDemoComponent {
16
- constructor(formBuilder, _textLayerService) {
17
- this._textLayerService = _textLayerService;
18
- this.textSize = 14;
19
- this.locations = [];
20
- this.text = formBuilder.control('alpha beta\ngamma\ndelta epsilon waw\nzeta');
21
- this.location = formBuilder.control('1.2@2x2');
22
- this.rendition = formBuilder.group({
23
- text: this.text,
24
- location: this.location,
25
- });
26
- this.result = '';
27
- }
28
- makeLarger() {
29
- const size = this.textSize + 2;
30
- if (size > 24) {
31
- return;
32
- }
33
- this.textSize = size;
34
- }
35
- makeSmaller() {
36
- const size = this.textSize - 2;
37
- if (size < 12) {
38
- return;
39
- }
40
- this.textSize = size;
41
- }
42
- removeOverlaps(loc) {
43
- for (let i = this.locations.length - 1; i > -1; i--) {
44
- if (loc === this.locations[i]) {
45
- continue;
46
- }
47
- if (loc.overlaps(this.locations[i])) {
48
- this.locations.splice(i, 1);
49
- }
50
- }
51
- }
52
- addLocation() {
53
- if (!this.location.value) {
54
- return;
55
- }
56
- const loc = TokenLocation.parse(this.location.value);
57
- if (!loc) {
58
- return;
59
- }
60
- let done = false;
61
- for (let i = 0; i < this.locations.length && !done; i++) {
62
- const n = loc.compareTo(this.locations[i]);
63
- // nothing to do if equal
64
- if (n === 0) {
65
- return;
66
- }
67
- // insert before nearest bigger sort value
68
- if (n < 0) {
69
- this.locations.splice(i, 0, loc);
70
- done = true;
71
- }
72
- }
73
- // append if not yet inserted
74
- if (!done) {
75
- this.locations.push(loc);
76
- }
77
- // remove all the overlapping locations
78
- this.removeOverlaps(loc);
79
- }
80
- removeLocation(loc) {
81
- const i = this.locations.indexOf(loc);
82
- if (i > -1) {
83
- this.locations.splice(i, 1);
84
- }
85
- }
86
- clearLocations() {
87
- this.locations.length = 0;
88
- }
89
- render() {
90
- if (!this.text.value) {
91
- return;
92
- }
93
- this.result = this._textLayerService.render(this.text.value, this.locations);
94
- }
95
- getLocationForNew() {
96
- if (!this.text.value) {
97
- return;
98
- }
99
- this.userLocation =
100
- this._textLayerService.getSelectedLocationForNew(this._textLayerService.getSelectedRange(), this.text.value) || undefined;
101
- }
102
- getLocationForEdit() {
103
- this.userLocation =
104
- this._textLayerService.getSelectedLocationForEdit(this._textLayerService.getSelectedRange()) || undefined;
105
- }
106
- }
107
- LayerDemoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LayerDemoComponent, deps: [{ token: i1.FormBuilder }, { token: i2.TextLayerService }], target: i0.ɵɵFactoryTarget.Component });
108
- LayerDemoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: LayerDemoComponent, selector: "cadmus-layer-demo", viewQueries: [{ propertyName: "_resultElement", first: true, predicate: ["resultElem"], descendants: true }], ngImport: i0, template: "<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <h2>Layered Text Demo</h2>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <article>\r\n <p>\r\n Enter some base text and zero or more layer fragments locations, then\r\n click the render button. This renders the base text with all its ranges.\r\n </p>\r\n <p>\r\n Once the text has been decorated, select any portion of it, either\r\n including a decorated part, or not. Then, if you selected a part\r\n including decorations, click the location button with the checkmark\r\n (=get the location of the fragment to edit); else, click the location\r\n button with the plus (=get the location of a new fragment).\r\n </p>\r\n <p>\r\n This will show you the token-based coordinates corresponding to your\r\n selection, provided that if you include any portion of a decorated text\r\n you will get the full coordinates of the decoration; otherwise, you will\r\n just get the coordinates of the selected character(s).\r\n </p>\r\n <p>\r\n This behavior is used to allow users edit existing part fragments by\r\n just selecting any part of it, even partially; while they must be\r\n precise when they are creating a new fragment.\r\n </p>\r\n </article>\r\n <hr />\r\n\r\n <form [formGroup]=\"rendition\" (ngSubmit)=\"render()\">\r\n <div>\r\n <mat-form-field>\r\n <mat-label>base text</mat-label>\r\n <textarea\r\n matInput\r\n type=\"text\"\r\n id=\"text\"\r\n maxlength=\"1000\"\r\n spellcheck=\"false\"\r\n formControlName=\"text\"\r\n ></textarea>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div>\r\n <mat-form-field>\r\n <mat-label>location</mat-label>\r\n <input\r\n matInput\r\n type=\"text\"\r\n id=\"location\"\r\n required\r\n spellcheck=\"false\"\r\n formControlName=\"location\"\r\n />\r\n <mat-hint>Y.X@AxR</mat-hint>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div>\r\n <mat-toolbar>\r\n <span>\r\n <button\r\n mat-icon-button\r\n (click)=\"addLocation()\"\r\n type=\"button\"\r\n matTooltip=\"Add the specified location\"\r\n >\r\n <mat-icon style=\"color: #66cc75\">add_circle</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n color=\"warn\"\r\n (click)=\"clearLocations()\"\r\n type=\"button\"\r\n matTooltip=\"Remove all the locations\"\r\n >\r\n <mat-icon>delete_sweep</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n color=\"primary\"\r\n type=\"submit\"\r\n matTooltip=\"Render the decorated base text\"\r\n >\r\n <mat-icon>play_circle_outline</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n (click)=\"getLocationForNew()\"\r\n type=\"button\"\r\n matTooltip=\"Get location for new item\"\r\n >\r\n <mat-icon>playlist_add</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n (click)=\"getLocationForEdit()\"\r\n type=\"button\"\r\n matTooltip=\"Get location for selected item\"\r\n >\r\n <mat-icon>playlist_add_check</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 </span>\r\n <span class=\"tb-fill-remaining-space\"></span>\r\n <span>{{ userLocation }}</span>\r\n </mat-toolbar>\r\n </div>\r\n\r\n <table>\r\n <tbody>\r\n <tr *ngFor=\"let loc of locations\">\r\n <td>\r\n <button\r\n mat-icon-button\r\n color=\"warn\"\r\n (click)=\"removeLocation(loc)\"\r\n >\r\n <mat-icon>remove_circle</mat-icon>\r\n </button>\r\n </td>\r\n <td>{{ loc.toString() }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </form>\r\n </mat-card-content>\r\n</mat-card>\r\n\r\n<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <h3>Rendition</h3>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <div\r\n [style.font-size]=\"textSize + 'px'\"\r\n [innerHtml]=\"result | safeHtml: 'html'\"\r\n id=\"result\"\r\n #resultElem\r\n ></div>\r\n <hr />\r\n <div>\r\n <code>{{ result }}</code>\r\n </div>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: ["textarea#text{min-width:300px;min-height:100px}:host ::ng-deep div#result{counter-reset:text-y-counter}:host ::ng-deep div#result p:before{content:counter(text-y-counter);counter-increment:text-y-counter;margin-right:6px;color:#a0a0a0}:host ::ng-deep span.fr{background-color:#ff0;border:1px solid silver;border-radius:6px}article{column-width:20em}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i5.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i5.MatCardHeader, selector: "mat-card-header" }, { kind: "component", type: i6.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i8.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i9.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: i10.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "pipe", type: i11.SafeHtmlPipe, name: "safeHtml" }] });
109
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LayerDemoComponent, decorators: [{
110
- type: Component,
111
- args: [{ selector: 'cadmus-layer-demo', template: "<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <h2>Layered Text Demo</h2>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <article>\r\n <p>\r\n Enter some base text and zero or more layer fragments locations, then\r\n click the render button. This renders the base text with all its ranges.\r\n </p>\r\n <p>\r\n Once the text has been decorated, select any portion of it, either\r\n including a decorated part, or not. Then, if you selected a part\r\n including decorations, click the location button with the checkmark\r\n (=get the location of the fragment to edit); else, click the location\r\n button with the plus (=get the location of a new fragment).\r\n </p>\r\n <p>\r\n This will show you the token-based coordinates corresponding to your\r\n selection, provided that if you include any portion of a decorated text\r\n you will get the full coordinates of the decoration; otherwise, you will\r\n just get the coordinates of the selected character(s).\r\n </p>\r\n <p>\r\n This behavior is used to allow users edit existing part fragments by\r\n just selecting any part of it, even partially; while they must be\r\n precise when they are creating a new fragment.\r\n </p>\r\n </article>\r\n <hr />\r\n\r\n <form [formGroup]=\"rendition\" (ngSubmit)=\"render()\">\r\n <div>\r\n <mat-form-field>\r\n <mat-label>base text</mat-label>\r\n <textarea\r\n matInput\r\n type=\"text\"\r\n id=\"text\"\r\n maxlength=\"1000\"\r\n spellcheck=\"false\"\r\n formControlName=\"text\"\r\n ></textarea>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div>\r\n <mat-form-field>\r\n <mat-label>location</mat-label>\r\n <input\r\n matInput\r\n type=\"text\"\r\n id=\"location\"\r\n required\r\n spellcheck=\"false\"\r\n formControlName=\"location\"\r\n />\r\n <mat-hint>Y.X@AxR</mat-hint>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div>\r\n <mat-toolbar>\r\n <span>\r\n <button\r\n mat-icon-button\r\n (click)=\"addLocation()\"\r\n type=\"button\"\r\n matTooltip=\"Add the specified location\"\r\n >\r\n <mat-icon style=\"color: #66cc75\">add_circle</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n color=\"warn\"\r\n (click)=\"clearLocations()\"\r\n type=\"button\"\r\n matTooltip=\"Remove all the locations\"\r\n >\r\n <mat-icon>delete_sweep</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n color=\"primary\"\r\n type=\"submit\"\r\n matTooltip=\"Render the decorated base text\"\r\n >\r\n <mat-icon>play_circle_outline</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n (click)=\"getLocationForNew()\"\r\n type=\"button\"\r\n matTooltip=\"Get location for new item\"\r\n >\r\n <mat-icon>playlist_add</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n (click)=\"getLocationForEdit()\"\r\n type=\"button\"\r\n matTooltip=\"Get location for selected item\"\r\n >\r\n <mat-icon>playlist_add_check</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 </span>\r\n <span class=\"tb-fill-remaining-space\"></span>\r\n <span>{{ userLocation }}</span>\r\n </mat-toolbar>\r\n </div>\r\n\r\n <table>\r\n <tbody>\r\n <tr *ngFor=\"let loc of locations\">\r\n <td>\r\n <button\r\n mat-icon-button\r\n color=\"warn\"\r\n (click)=\"removeLocation(loc)\"\r\n >\r\n <mat-icon>remove_circle</mat-icon>\r\n </button>\r\n </td>\r\n <td>{{ loc.toString() }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </form>\r\n </mat-card-content>\r\n</mat-card>\r\n\r\n<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <h3>Rendition</h3>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <div\r\n [style.font-size]=\"textSize + 'px'\"\r\n [innerHtml]=\"result | safeHtml: 'html'\"\r\n id=\"result\"\r\n #resultElem\r\n ></div>\r\n <hr />\r\n <div>\r\n <code>{{ result }}</code>\r\n </div>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: ["textarea#text{min-width:300px;min-height:100px}:host ::ng-deep div#result{counter-reset:text-y-counter}:host ::ng-deep div#result p:before{content:counter(text-y-counter);counter-increment:text-y-counter;margin-right:6px;color:#a0a0a0}:host ::ng-deep span.fr{background-color:#ff0;border:1px solid silver;border-radius:6px}article{column-width:20em}\n"] }]
112
- }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.TextLayerService }]; }, propDecorators: { _resultElement: [{
113
- type: ViewChild,
114
- args: ['resultElem']
115
- }] } });
116
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG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yXG4gICAgICAgICAgICByZXF1aXJlZFxyXG4gICAgICAgICAgICBzcGVsbGNoZWNrPVwiZmFsc2VcIlxyXG4gICAgICAgICAgICBmb3JtQ29udHJvbE5hbWU9XCJsb2NhdGlvblwiXHJcbiAgICAgICAgICAvPlxyXG4gICAgICAgICAgPG1hdC1oaW50PlkuWEBBeFI8L21hdC1oaW50PlxyXG4gICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgIDwvZGl2PlxyXG5cclxuICAgICAgPGRpdj5cclxuICAgICAgICA8bWF0LXRvb2xiYXI+XHJcbiAgICAgICAgICA8c3Bhbj5cclxuICAgICAgICAgICAgPGJ1dHRvblxyXG4gICAgICAgICAgICAgIG1hdC1pY29uLWJ1dHRvblxyXG4gICAgICAgICAgICAgIChjbGljayk9XCJhZGRMb2NhdGlvbigpXCJcclxuICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcclxuICAgICAgICAgICAgICBtYXRUb29sdGlwPVwiQWRkIHRoZSBzcGVjaWZpZWQgbG9jYXRpb25cIlxyXG4gICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgPG1hdC1pY29uIHN0eWxlPVwiY29sb3I6ICM2NmNjNzVcIj5hZGRfY2lyY2xlPC9tYXQtaWNvbj5cclxuICAgICAgICAgICAgPC9idXR0b24+XHJcbiAgICAgICAgICAgIDxidXR0b25cclxuICAgICAgICAgICAgICBtYXQtaWNvbi1idXR0b25cclxuICAgICAgICAgICAgICBjb2xvcj1cIndhcm5cIlxyXG4gICAgICAgICAgICAgIChjbGljayk9XCJjbGVhckxvY2F0aW9ucygpXCJcclxuICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcclxuICAgICAgICAgICAgICBtYXRUb29sdGlwPVwiUmVtb3ZlIGFsbCB0aGUgbG9jYXRpb25zXCJcclxuICAgICAgICAgICAgPlxyXG4gICAgICAgICAgICAgIDxtYXQtaWNvbj5kZWxldGVfc3dlZXA8L21hdC1pY29uPlxyXG4gICAgICAgICAgICA8L2J1dHRvbj5cclxuICAgICAgICAgICAgPGJ1dHRvblxyXG4gICAgICAgICAgICAgIG1hdC1pY29uLWJ1dHRvblxyXG4gICAgICAgICAgICAgIGNvbG9yPVwicHJpbWFyeVwiXHJcbiAgICAgICAgICAgICAgdHlwZT1cInN1Ym1pdFwiXHJcbiAgICAgICAgICAgICAgbWF0VG9vbHRpcD1cIlJlbmRlciB0aGUgZGVjb3JhdGVkIGJhc2UgdGV4dFwiXHJcbiAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICA8bWF0LWljb24+cGxheV9jaXJjbGVfb3V0bGluZTwvbWF0LWljb24+XHJcbiAgICAgICAgICAgIDwvYnV0dG9uPlxyXG4gICAgICAgICAgICA8YnV0dG9uXHJcbiAgICAgICAgICAgICAgbWF0LWljb24tYnV0dG9uXHJcbiAgICAgICAgICAgICAgKGNsaWNrKT1cImdldExvY2F0aW9uRm9yTmV3KClcIlxyXG4gICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxyXG4gICAgICAgICAgICAgIG1hdFRvb2x0aXA9XCJHZXQgbG9jYXRpb24gZm9yIG5ldyBpdGVtXCJcclxuICAgICAgICAgICAgPlxyXG4gICAgICAgICAgICAgIDxtYXQtaWNvbj5wbGF5bGlzdF9hZGQ8L21hdC1pY29uPlxyXG4gICAgICAgICAgICA8L2J1dHRvbj5cclxuICAgICAgICAgICAgPGJ1dHRvblxyXG4gICAgICAgICAgICAgIG1hdC1pY29uLWJ1dHRvblxyXG4gICAgICAgICAgICAgIChjbGljayk9XCJnZXRMb2NhdGlvbkZvckVkaXQoKVwiXHJcbiAgICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXHJcbiAgICAgICAgICAgICAgbWF0VG9vbHRpcD1cIkdldCBsb2NhdGlvbiBmb3Igc2VsZWN0ZWQgaXRlbVwiXHJcbiAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICA8bWF0LWljb24+cGxheWxpc3RfYWRkX2NoZWNrPC9tYXQtaWNvbj5cclxuICAgICAgICAgICAgPC9idXR0b24+XHJcbiAgICAgICAgICAgIDxidXR0b25cclxuICAgICAgICAgICAgICBtYXQtaWNvbi1idXR0b25cclxuICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcclxuICAgICAgICAgICAgICBtYXRUb29sdGlwPVwiTGFyZ2VyIHRleHRcIlxyXG4gICAgICAgICAgICAgIChjbGljayk9XCJtYWtlTGFyZ2VyKClcIlxyXG4gICAgICAgICAgICAgIFtkaXNhYmxlZF09XCJ0ZXh0U2l6ZSA+PSAyNFwiXHJcbiAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICA8bWF0LWljb24+Zm9ybWF0X3NpemU8L21hdC1pY29uPlxyXG4gICAgICAgICAgICA8L2J1dHRvbj5cclxuICAgICAgICAgICAgPGJ1dHRvblxyXG4gICAgICAgICAgICAgIG1hdC1pY29uLWJ1dHRvblxyXG4gICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxyXG4gICAgICAgICAgICAgIG1hdFRvb2x0aXA9XCJTbWFsbGVyIHRleHRcIlxyXG4gICAgICAgICAgICAgIChjbGljayk9XCJtYWtlU21hbGxlcigpXCJcclxuICAgICAgICAgICAgICBbZGlzYWJsZWRdPVwidGV4dFNpemUgPD0gMTJcIlxyXG4gICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgPG1hdC1pY29uPnRleHRfZmllbGRzPC9tYXQtaWNvbj5cclxuICAgICAgICAgICAgPC9idXR0b24+XHJcbiAgICAgICAgICA8L3NwYW4+XHJcbiAgICAgICAgICA8c3BhbiBjbGFzcz1cInRiLWZpbGwtcmVtYWluaW5nLXNwYWNlXCI+PC9zcGFuPlxyXG4gICAgICAgICAgPHNwYW4+e3sgdXNlckxvY2F0aW9uIH19PC9zcGFuPlxyXG4gICAgICAgIDwvbWF0LXRvb2xiYXI+XHJcbiAgICAgIDwvZGl2PlxyXG5cclxuICAgICAgPHRhYmxlPlxyXG4gICAgICAgIDx0Ym9keT5cclxuICAgICAgICAgIDx0ciAqbmdGb3I9XCJsZXQgbG9jIG9mIGxvY2F0aW9uc1wiPlxyXG4gICAgICAgICAgICA8dGQ+XHJcbiAgICAgICAgICAgICAgPGJ1dHRvblxyXG4gICAgICAgICAgICAgICAgbWF0LWljb24tYnV0dG9uXHJcbiAgICAgICAgICAgICAgICBjb2xvcj1cIndhcm5cIlxyXG4gICAgICAgICAgICAgICAgKGNsaWNrKT1cInJlbW92ZUxvY2F0aW9uKGxvYylcIlxyXG4gICAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICAgIDxtYXQtaWNvbj5yZW1vdmVfY2lyY2xlPC9tYXQtaWNvbj5cclxuICAgICAgICAgICAgICA8L2J1dHRvbj5cclxuICAgICAgICAgICAgPC90ZD5cclxuICAgICAgICAgICAgPHRkPnt7IGxvYy50b1N0cmluZygpIH19PC90ZD5cclxuICAgICAgICAgIDwvdHI+XHJcbiAgICAgICAgPC90Ym9keT5cclxuICAgICAgPC90YWJsZT5cclxuICAgIDwvZm9ybT5cclxuICA8L21hdC1jYXJkLWNvbnRlbnQ+XHJcbjwvbWF0LWNhcmQ+XHJcblxyXG48bWF0LWNhcmQgYXBwZWFyYW5jZT1cIm91dGxpbmVkXCI+XHJcbiAgPG1hdC1jYXJkLWhlYWRlcj5cclxuICAgIDxoMz5SZW5kaXRpb248L2gzPlxyXG4gIDwvbWF0LWNhcmQtaGVhZGVyPlxyXG4gIDxtYXQtY2FyZC1jb250ZW50PlxyXG4gICAgPGRpdlxyXG4gICAgICBbc3R5bGUuZm9udC1zaXplXT1cInRleHRTaXplICsgJ3B4J1wiXHJcbiAgICAgIFtpbm5lckh0bWxdPVwicmVzdWx0IHwgc2FmZUh0bWw6ICdodG1sJ1wiXHJcbiAgICAgIGlkPVwicmVzdWx0XCJcclxuICAgICAgI3Jlc3VsdEVsZW1cclxuICAgID48L2Rpdj5cclxuICAgIDxociAvPlxyXG4gICAgPGRpdj5cclxuICAgICAgPGNvZGU+e3sgcmVzdWx0IH19PC9jb2RlPlxyXG4gICAgPC9kaXY+XHJcbiAgPC9tYXQtY2FyZC1jb250ZW50PlxyXG48L21hdC1jYXJkPlxyXG4iXX0=
@@ -1,205 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Component, ViewChild, NgModule } from '@angular/core';
3
- import * as i2 from '@myrmidon/cadmus-core';
4
- import { TokenLocation, CadmusCoreModule } from '@myrmidon/cadmus-core';
5
- import * as i1 from '@angular/forms';
6
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
7
- import * as i3 from '@angular/common';
8
- import { CommonModule } from '@angular/common';
9
- import * as i4 from '@angular/material/button';
10
- import { MatButtonModule } from '@angular/material/button';
11
- import * as i5 from '@angular/material/card';
12
- import { MatCardModule } from '@angular/material/card';
13
- import * as i6 from '@angular/material/form-field';
14
- import { MatFormFieldModule } from '@angular/material/form-field';
15
- import * as i7 from '@angular/material/icon';
16
- import { MatIconModule } from '@angular/material/icon';
17
- import * as i8 from '@angular/material/input';
18
- import { MatInputModule } from '@angular/material/input';
19
- import * as i9 from '@angular/material/toolbar';
20
- import { MatToolbarModule } from '@angular/material/toolbar';
21
- import * as i10 from '@angular/material/tooltip';
22
- import { MatTooltipModule } from '@angular/material/tooltip';
23
- import * as i11 from '@myrmidon/ng-tools';
24
- import { NgToolsModule } from '@myrmidon/ng-tools';
25
- import * as i1$1 from '@angular/router';
26
- import { RouterModule } from '@angular/router';
27
- import { CadmusUiModule } from '@myrmidon/cadmus-ui';
28
-
29
- class LayerDemoComponent {
30
- constructor(formBuilder, _textLayerService) {
31
- this._textLayerService = _textLayerService;
32
- this.textSize = 14;
33
- this.locations = [];
34
- this.text = formBuilder.control('alpha beta\ngamma\ndelta epsilon waw\nzeta');
35
- this.location = formBuilder.control('1.2@2x2');
36
- this.rendition = formBuilder.group({
37
- text: this.text,
38
- location: this.location,
39
- });
40
- this.result = '';
41
- }
42
- makeLarger() {
43
- const size = this.textSize + 2;
44
- if (size > 24) {
45
- return;
46
- }
47
- this.textSize = size;
48
- }
49
- makeSmaller() {
50
- const size = this.textSize - 2;
51
- if (size < 12) {
52
- return;
53
- }
54
- this.textSize = size;
55
- }
56
- removeOverlaps(loc) {
57
- for (let i = this.locations.length - 1; i > -1; i--) {
58
- if (loc === this.locations[i]) {
59
- continue;
60
- }
61
- if (loc.overlaps(this.locations[i])) {
62
- this.locations.splice(i, 1);
63
- }
64
- }
65
- }
66
- addLocation() {
67
- if (!this.location.value) {
68
- return;
69
- }
70
- const loc = TokenLocation.parse(this.location.value);
71
- if (!loc) {
72
- return;
73
- }
74
- let done = false;
75
- for (let i = 0; i < this.locations.length && !done; i++) {
76
- const n = loc.compareTo(this.locations[i]);
77
- // nothing to do if equal
78
- if (n === 0) {
79
- return;
80
- }
81
- // insert before nearest bigger sort value
82
- if (n < 0) {
83
- this.locations.splice(i, 0, loc);
84
- done = true;
85
- }
86
- }
87
- // append if not yet inserted
88
- if (!done) {
89
- this.locations.push(loc);
90
- }
91
- // remove all the overlapping locations
92
- this.removeOverlaps(loc);
93
- }
94
- removeLocation(loc) {
95
- const i = this.locations.indexOf(loc);
96
- if (i > -1) {
97
- this.locations.splice(i, 1);
98
- }
99
- }
100
- clearLocations() {
101
- this.locations.length = 0;
102
- }
103
- render() {
104
- if (!this.text.value) {
105
- return;
106
- }
107
- this.result = this._textLayerService.render(this.text.value, this.locations);
108
- }
109
- getLocationForNew() {
110
- if (!this.text.value) {
111
- return;
112
- }
113
- this.userLocation =
114
- this._textLayerService.getSelectedLocationForNew(this._textLayerService.getSelectedRange(), this.text.value) || undefined;
115
- }
116
- getLocationForEdit() {
117
- this.userLocation =
118
- this._textLayerService.getSelectedLocationForEdit(this._textLayerService.getSelectedRange()) || undefined;
119
- }
120
- }
121
- LayerDemoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LayerDemoComponent, deps: [{ token: i1.FormBuilder }, { token: i2.TextLayerService }], target: i0.ɵɵFactoryTarget.Component });
122
- LayerDemoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: LayerDemoComponent, selector: "cadmus-layer-demo", viewQueries: [{ propertyName: "_resultElement", first: true, predicate: ["resultElem"], descendants: true }], ngImport: i0, template: "<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <h2>Layered Text Demo</h2>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <article>\r\n <p>\r\n Enter some base text and zero or more layer fragments locations, then\r\n click the render button. This renders the base text with all its ranges.\r\n </p>\r\n <p>\r\n Once the text has been decorated, select any portion of it, either\r\n including a decorated part, or not. Then, if you selected a part\r\n including decorations, click the location button with the checkmark\r\n (=get the location of the fragment to edit); else, click the location\r\n button with the plus (=get the location of a new fragment).\r\n </p>\r\n <p>\r\n This will show you the token-based coordinates corresponding to your\r\n selection, provided that if you include any portion of a decorated text\r\n you will get the full coordinates of the decoration; otherwise, you will\r\n just get the coordinates of the selected character(s).\r\n </p>\r\n <p>\r\n This behavior is used to allow users edit existing part fragments by\r\n just selecting any part of it, even partially; while they must be\r\n precise when they are creating a new fragment.\r\n </p>\r\n </article>\r\n <hr />\r\n\r\n <form [formGroup]=\"rendition\" (ngSubmit)=\"render()\">\r\n <div>\r\n <mat-form-field>\r\n <mat-label>base text</mat-label>\r\n <textarea\r\n matInput\r\n type=\"text\"\r\n id=\"text\"\r\n maxlength=\"1000\"\r\n spellcheck=\"false\"\r\n formControlName=\"text\"\r\n ></textarea>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div>\r\n <mat-form-field>\r\n <mat-label>location</mat-label>\r\n <input\r\n matInput\r\n type=\"text\"\r\n id=\"location\"\r\n required\r\n spellcheck=\"false\"\r\n formControlName=\"location\"\r\n />\r\n <mat-hint>Y.X@AxR</mat-hint>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div>\r\n <mat-toolbar>\r\n <span>\r\n <button\r\n mat-icon-button\r\n (click)=\"addLocation()\"\r\n type=\"button\"\r\n matTooltip=\"Add the specified location\"\r\n >\r\n <mat-icon style=\"color: #66cc75\">add_circle</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n color=\"warn\"\r\n (click)=\"clearLocations()\"\r\n type=\"button\"\r\n matTooltip=\"Remove all the locations\"\r\n >\r\n <mat-icon>delete_sweep</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n color=\"primary\"\r\n type=\"submit\"\r\n matTooltip=\"Render the decorated base text\"\r\n >\r\n <mat-icon>play_circle_outline</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n (click)=\"getLocationForNew()\"\r\n type=\"button\"\r\n matTooltip=\"Get location for new item\"\r\n >\r\n <mat-icon>playlist_add</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n (click)=\"getLocationForEdit()\"\r\n type=\"button\"\r\n matTooltip=\"Get location for selected item\"\r\n >\r\n <mat-icon>playlist_add_check</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 </span>\r\n <span class=\"tb-fill-remaining-space\"></span>\r\n <span>{{ userLocation }}</span>\r\n </mat-toolbar>\r\n </div>\r\n\r\n <table>\r\n <tbody>\r\n <tr *ngFor=\"let loc of locations\">\r\n <td>\r\n <button\r\n mat-icon-button\r\n color=\"warn\"\r\n (click)=\"removeLocation(loc)\"\r\n >\r\n <mat-icon>remove_circle</mat-icon>\r\n </button>\r\n </td>\r\n <td>{{ loc.toString() }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </form>\r\n </mat-card-content>\r\n</mat-card>\r\n\r\n<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <h3>Rendition</h3>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <div\r\n [style.font-size]=\"textSize + 'px'\"\r\n [innerHtml]=\"result | safeHtml: 'html'\"\r\n id=\"result\"\r\n #resultElem\r\n ></div>\r\n <hr />\r\n <div>\r\n <code>{{ result }}</code>\r\n </div>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: ["textarea#text{min-width:300px;min-height:100px}:host ::ng-deep div#result{counter-reset:text-y-counter}:host ::ng-deep div#result p:before{content:counter(text-y-counter);counter-increment:text-y-counter;margin-right:6px;color:#a0a0a0}:host ::ng-deep span.fr{background-color:#ff0;border:1px solid silver;border-radius:6px}article{column-width:20em}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i5.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i5.MatCardHeader, selector: "mat-card-header" }, { kind: "component", type: i6.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i8.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i9.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: i10.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "pipe", type: i11.SafeHtmlPipe, name: "safeHtml" }] });
123
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: LayerDemoComponent, decorators: [{
124
- type: Component,
125
- args: [{ selector: 'cadmus-layer-demo', template: "<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <h2>Layered Text Demo</h2>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <article>\r\n <p>\r\n Enter some base text and zero or more layer fragments locations, then\r\n click the render button. This renders the base text with all its ranges.\r\n </p>\r\n <p>\r\n Once the text has been decorated, select any portion of it, either\r\n including a decorated part, or not. Then, if you selected a part\r\n including decorations, click the location button with the checkmark\r\n (=get the location of the fragment to edit); else, click the location\r\n button with the plus (=get the location of a new fragment).\r\n </p>\r\n <p>\r\n This will show you the token-based coordinates corresponding to your\r\n selection, provided that if you include any portion of a decorated text\r\n you will get the full coordinates of the decoration; otherwise, you will\r\n just get the coordinates of the selected character(s).\r\n </p>\r\n <p>\r\n This behavior is used to allow users edit existing part fragments by\r\n just selecting any part of it, even partially; while they must be\r\n precise when they are creating a new fragment.\r\n </p>\r\n </article>\r\n <hr />\r\n\r\n <form [formGroup]=\"rendition\" (ngSubmit)=\"render()\">\r\n <div>\r\n <mat-form-field>\r\n <mat-label>base text</mat-label>\r\n <textarea\r\n matInput\r\n type=\"text\"\r\n id=\"text\"\r\n maxlength=\"1000\"\r\n spellcheck=\"false\"\r\n formControlName=\"text\"\r\n ></textarea>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div>\r\n <mat-form-field>\r\n <mat-label>location</mat-label>\r\n <input\r\n matInput\r\n type=\"text\"\r\n id=\"location\"\r\n required\r\n spellcheck=\"false\"\r\n formControlName=\"location\"\r\n />\r\n <mat-hint>Y.X@AxR</mat-hint>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div>\r\n <mat-toolbar>\r\n <span>\r\n <button\r\n mat-icon-button\r\n (click)=\"addLocation()\"\r\n type=\"button\"\r\n matTooltip=\"Add the specified location\"\r\n >\r\n <mat-icon style=\"color: #66cc75\">add_circle</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n color=\"warn\"\r\n (click)=\"clearLocations()\"\r\n type=\"button\"\r\n matTooltip=\"Remove all the locations\"\r\n >\r\n <mat-icon>delete_sweep</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n color=\"primary\"\r\n type=\"submit\"\r\n matTooltip=\"Render the decorated base text\"\r\n >\r\n <mat-icon>play_circle_outline</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n (click)=\"getLocationForNew()\"\r\n type=\"button\"\r\n matTooltip=\"Get location for new item\"\r\n >\r\n <mat-icon>playlist_add</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n (click)=\"getLocationForEdit()\"\r\n type=\"button\"\r\n matTooltip=\"Get location for selected item\"\r\n >\r\n <mat-icon>playlist_add_check</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 </span>\r\n <span class=\"tb-fill-remaining-space\"></span>\r\n <span>{{ userLocation }}</span>\r\n </mat-toolbar>\r\n </div>\r\n\r\n <table>\r\n <tbody>\r\n <tr *ngFor=\"let loc of locations\">\r\n <td>\r\n <button\r\n mat-icon-button\r\n color=\"warn\"\r\n (click)=\"removeLocation(loc)\"\r\n >\r\n <mat-icon>remove_circle</mat-icon>\r\n </button>\r\n </td>\r\n <td>{{ loc.toString() }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </form>\r\n </mat-card-content>\r\n</mat-card>\r\n\r\n<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <h3>Rendition</h3>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <div\r\n [style.font-size]=\"textSize + 'px'\"\r\n [innerHtml]=\"result | safeHtml: 'html'\"\r\n id=\"result\"\r\n #resultElem\r\n ></div>\r\n <hr />\r\n <div>\r\n <code>{{ result }}</code>\r\n </div>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: ["textarea#text{min-width:300px;min-height:100px}:host ::ng-deep div#result{counter-reset:text-y-counter}:host ::ng-deep div#result p:before{content:counter(text-y-counter);counter-increment:text-y-counter;margin-right:6px;color:#a0a0a0}:host ::ng-deep span.fr{background-color:#ff0;border:1px solid silver;border-radius:6px}article{column-width:20em}\n"] }]
126
- }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.TextLayerService }]; }, propDecorators: { _resultElement: [{
127
- type: ViewChild,
128
- args: ['resultElem']
129
- }] } });
130
-
131
- // https://github.com/ng-packagr/ng-packagr/issues/778
132
- const RouterModuleForChild = RouterModule.forChild([
133
- { path: '', pathMatch: 'full', component: LayerDemoComponent },
134
- ]);
135
- class CadmusLayerDemoModule {
136
- }
137
- CadmusLayerDemoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CadmusLayerDemoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
138
- CadmusLayerDemoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: CadmusLayerDemoModule, declarations: [LayerDemoComponent], imports: [CommonModule,
139
- FormsModule,
140
- ReactiveFormsModule, i1$1.RouterModule,
141
- // material
142
- MatButtonModule,
143
- MatCardModule,
144
- MatFormFieldModule,
145
- MatIconModule,
146
- MatInputModule,
147
- MatToolbarModule,
148
- MatTooltipModule,
149
- // cadmus
150
- NgToolsModule,
151
- CadmusCoreModule,
152
- CadmusUiModule], exports: [LayerDemoComponent] });
153
- CadmusLayerDemoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CadmusLayerDemoModule, imports: [CommonModule,
154
- FormsModule,
155
- ReactiveFormsModule,
156
- RouterModuleForChild,
157
- // material
158
- MatButtonModule,
159
- MatCardModule,
160
- MatFormFieldModule,
161
- MatIconModule,
162
- MatInputModule,
163
- MatToolbarModule,
164
- MatTooltipModule,
165
- // cadmus
166
- NgToolsModule,
167
- CadmusCoreModule,
168
- CadmusUiModule] });
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CadmusLayerDemoModule, decorators: [{
170
- type: NgModule,
171
- args: [{
172
- imports: [
173
- CommonModule,
174
- FormsModule,
175
- ReactiveFormsModule,
176
- RouterModuleForChild,
177
- // material
178
- MatButtonModule,
179
- MatCardModule,
180
- MatFormFieldModule,
181
- MatIconModule,
182
- MatInputModule,
183
- MatToolbarModule,
184
- MatTooltipModule,
185
- // cadmus
186
- NgToolsModule,
187
- CadmusCoreModule,
188
- CadmusUiModule,
189
- ],
190
- declarations: [LayerDemoComponent],
191
- exports: [LayerDemoComponent],
192
- }]
193
- }] });
194
-
195
- /*
196
- * Public API Surface of cadmus-layer-demo
197
- */
198
-
199
- /**
200
- * Generated bundle index. Do not edit.
201
- */
202
-
203
- export { CadmusLayerDemoModule, LayerDemoComponent, RouterModuleForChild };
204
- //# sourceMappingURL=myrmidon-cadmus-layer-demo.mjs.map
205
- //# sourceMappingURL=myrmidon-cadmus-layer-demo.mjs.map